text stringlengths 5 1.04M |
|---|
/*
* This file is covered under the Interval Academic License, see LICENCE.interval
*/
#include "interval_contention_boom_v1.h"
#include "core.h"
#include "stats.h"
IntervalContentionBoomV1::IntervalContentionBoomV1(const Core *core, const CoreModel *core_model)
: m_core_model(core_model)
{
for(unsigned int i... |
#include <iostream>
#include <QVector>
#include <QString>
#include <cassert>
using namespace std;
int main ()
{
QVector<QString> list;
list << "D" << "E";
assert(list.size() == 2);
assert(list.at(0) != "D");
assert(list.at(1) != "E");
return 0;
}
|
#include <clout/chain/clout_fwd.hpp>
#include <clout/plugins/token_emissions/token_emissions_plugin.hpp>
#include <clout/plugins/token_emissions/token_emissions_objects.hpp>
#include <clout/chain/database.hpp>
#include <clout/chain/index.hpp>
#include <clout/chain/smt_objects.hpp>
#include <clout/chain/util/smt_token.... |
void find(vector<int>array,int sum){//sum=100;
int i=0;
int size=array.size();
int num=0;
vector<vector<int> >store;
vector<int>temp;
while()
} |
// 2014-04-30
#include <iostream>
using namespace std;
const long long MOD = 10000007;
long long modexp(long long base, long long exponent) {
long long pwr = base;
long long res = 1;
while (exponent) {
if (exponent & 1) {
res = (res * pwr) % MOD;
}
exponent >>= 1;
... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. 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 (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-CHROMIUM file.
#include "browser/url_request_context_getter.h"
#include <algorithm>
#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#incl... |
// Copyright 2017 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/cxfa_defaulttypeface.h"
namespace {
const CXFA_Nod... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus's Graphical User Interface
// Copyright (C) 2012-2017 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
... |
/**********************************************************************
This source file is a part of Demi3D
__ ___ __ __ __
| \|_ |\/|| _)| \
|__/|__| || __)|__/
Copyright (c) 2013-2014 Demi team
https://github.com/wangyanxing/Demi3D
Released under the MIT License
https://github.com/wangyanxing/De... |
#include<iostream>
using namespace std;
//Default Arguments
int add(int,int,int=0);
int main()
{
int a,b;
cout<<"Enter any two numbers : ";
cin>>a>>b;
cout<<"Sum is : "<<add(a,b);
int c;
cout<<"Enter any three numbers : ";
cin>>a>>b>>c;
cout<<"The Sum is : "<<add(a,b,c);
return 0;
}
... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "CxxModuleWrapper.h"
#include <glog/logging.h>
#include <folly/ScopeGuard.h>
#include <dlfcn.h>
using namespace face... |
//
// GL41BackendQuery.cpp
// libraries/gpu/src/gpu
//
// Created by Sam Gateau on 7/7/2015.
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "GL41Backend.h"
#include ... |
/*
* Brian R Taylor
* brian.taylor@bolderflight.com
*
* Copyright (c) 2021 Bolder Flight Systems 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, including without ... |
/*
* Copyright 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" f... |
#define DPCT_USM_LEVEL_NONE
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
typedef float DTYPE;
void
maxpool3d(const DTYPE* i_img, DTYPE* o_img,
const int Hstride,
const int Vstride,
const int pool_width,
const int ... |
#include "TestingUtility.h"
#include "Pusher.h"
template <class SpeciesArrayType>
class PusherTest : public SpeciesTest<SpeciesArrayType> {
};
typedef ::testing::Types<
Species<Three, Electron, ParticleRepresentation_AoS>,
Species<Three, Positron, ParticleRepresentation_AoS>,
Species<Three, Proton, Part... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <sstream>
#include <OpenColorIO/OpenColorIO.h>
#include "BitDepthUtils.h"
#include "fileformats/FileFormatUtils.h"
#include "MathUtils.h"
#include "ops/lut1d... |
#include "parse_help.hpp"
#include "http_utils.hpp"
#include <string>
#include <cstring>
#include <cstdlib>
using namespace std;
/*
function: is_field_content, is_obs_fold
returns: 1 if string starts accordingly with
BNF-specified values , 0 otherwise
comment: part of BNF in field-value;
mid-level functi... |
#include <iostream>
#include <string>
using namespace std;
int main() {
int num1, num2;
int rightSum = 0;
int leftSum = 0;
cin >> num1 >> num2;
for(int currentNum = num1; currentNum <= num2; currentNum++) {
string digitString = to_string(currentNum);
for(int index = 0; index < digitString.length() / 2; ind... |
/*
* Copyright 2020-2021 Telecom Paris
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... |
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 - 2022 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
//
// ... |
/********************************************************************************
* File Name:
* master_slave.hpp
*
* Description:
* Models a physical communication model where one device acts as the host
* controller (master) and another acts as the client (slave).
*
* 2021 | Brandon Braun | brando... |
#include "meili/candidate_search.h"
#include "baldr/tilehierarchy.h"
#include "meili/geometry_helpers.h"
using namespace valhalla::midgard;
namespace valhalla {
namespace meili {
struct CandidateCollector {
public:
explicit CandidateCollector(baldr::GraphReader& reader) : reader_(reader) {
}
template <typena... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if defined INFINIT_WINDOWS
# include <process.h>
# include <elle/windows.hh>
# include <wincrypt.h>
#elif defined INFINIT_IOS
# include <Security/Security.h>
#endif
#include <system_error>
#include <iostream>
#include <fstream>
#include <openssl/engine.... |
/*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#include "os.hpp"
#include "config.h"
#include "codegen.hpp"
#include "analyze.hpp"
#include "compiler.hpp"
#include "install_files.h"
#include "glibc.hpp"
static const char *msv... |
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: Jaron T. ... |
//
// Copyright (c) 2008-2019 the Urho3D project.
//
// 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, mod... |
/* 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) 2019-2019, Nejcraft
// 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 ... |
// This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... |
#include<bits/stdc++.h>
using namespace std;
const int maxn = 2500 + 55;
bool dp[maxn][maxn]; // dp[i][j] 表示 A的前i个字符可以匹配 B的前j个字符
int main()
{
ios::sync_with_stdio(false);
int t;cin>>t;
while(t--)
{
string a,b;cin>>a>>b;
a = '#' + a;//转移的话就不用考虑-2/-1越界
b = '#' + b;
... |
// Boost.Units - A C++ library for zero-overhead dimensional analysis and
// unit/quantity manipulation and conversion
//
// Copyright (C) 2003-2008 Matthias Christian Schabel
// Copyright (C) 2008 Steven Watanabe
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.tx... |
// Copyright 2010-2020, 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 condit... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file nullAudioManager.cxx
*... |
/* ************************************************************************
* Copyright 2016-2021 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include "testing_getrs_strided_batched.hpp"
#include "utility.h"
#include <math.h>
#include <stdexcept>
#inc... |
// 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 "media/blink/resource_multibuffer_data_provider.h"
#include <stdint.h>
#include <algorithm>
#include <string>
#include <utility>
#include "base... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
#include <gtest/gtest.h>
#include <iostream>
#include <leetcode/anyorder.hpp>
#include <vector>
using namespace std;
/**
* This file is generated by leetcode_add.py v1.0
*
* 368.
* Largest Divisible Subset
*
* ––––––––––––––––––––––––––––– Description –––––––––––––––––––––––––––––
*
* Given a set of “d... |
/*****************************************************************************
* *
* OpenNI 2.x Alpha *
* Copyright (C) 2012 PrimeSense Ltd. *
* ... |
// Copyright (c) 2018 The EXCL developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <libzerocoin/Coin.h>
#include <tinyformat.h>
#include "deterministicmint.h"
CDeterministicMint::CDeterministicMint()
{
SetN... |
//---------------------------------------------------------------------------//
// Copyright (c) 2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwar... |
/****************************************************************************
** MIT License
**
** Copyright (C) 2018-2020 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com
** Author: André Somers <andre.somers@kdab.com>
**
** This file is part of KDToolBox (https://github... |
/**
* Copyright (c) Glow Contributors. See CONTRIBUTORS file.
*
* 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 b... |
/**********************************************************************
Audacity: A Digital Audio Editor
Audacity(R) is copyright (c) 1999-2012 Audacity Team.
License: GPL v2. See License.txt.
ODDecodeFFmpegTask.cpp
Michael Chinen
******************************************************************/
#... |
#include "com/mapswithme/maps/Framework.hpp"
#include "com/mapswithme/core/jni_helper.hpp"
#include "com/mapswithme/platform/Platform.hpp"
#include "map/place_page_info.hpp"
#include "partners_api/booking_api.hpp"
#include "partners_api/booking_block_params.hpp"
#include <chrono>
#include <functional>
#include <uti... |
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <engine/shared/config.h>
#include <game/mapitems.h>
#include <game/generated/protocol.h>
#include "entities/pickup.h"... |
/*
Copyright 2020 Victor Santos Reis
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, softwar... |
/*
* Copyright (c) 2010-2012, 2015, 2017 ARM Limited
* Copyright (c) 2013 Advanced Micro Devices, Inc.
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intelle... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "UnityEngine_U... |
#include "stdafx.h"
namespace ROC
{
extern const glm::mat4 g_identityMatrix(1.f);
extern const glm::mat4 g_emptyMat4(0.f);
extern const glm::vec2 g_emptyVec2(0.f);
extern const glm::vec3 g_emptyVec3(0.f);
extern const glm::vec4 g_emptyVec4(0.f);
extern const glm::vec3 g_defaultScale(1.f, 1.f, 1.f);
extern const glm::... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// (c) Copyright 1995-2022 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant ... |
//
// Created by cm on 07.06.21.
//
#include <gtest/gtest.h>
#include "../Headerfiles/berendsenThermostat.h"
#include "../Headerfiles/helperfunctions.h"
/** Test */
TEST(BerendsenExponentialDamp, ThermostatTest) {
/** Init */
unsigned int nbAtoms = 50;
double distance = 1;
double timestep = 1;
dou... |
#pragma once
#include <memory>
#include <vector>
#include "Api.h"
#include "Base/TypeMap.hh"
#include "Debug/Profiler.hh"
#include "Event/EventMatrix.hh"
namespace Ares
{
class Log; // (#include "Debug/Log.hh")
class Profiler; // (#include "Debug/Profiler.hh")
class TaskScheduler; // (#include "Task/TaskScheduler.hh... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
//===-- pi.cpp - PI utilities implementation -------------------*- C++ -*--===//
//
// 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
//
//===---------------------------... |
// 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 "function.h"
Function::Function()
{
}
//QWidget<T> *Function::getWidgetByName(QWidget *widget, QString *name)
//{
// // search parent of parent
// QWidget *parent = NULL;
// while (widget->parentWidget()) {
// parent = widget->parentWidget();
// }
// return parent->findChildren<T>(na... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Greenplum, Inc.
//
// @filename:
// funcs.cpp
//
// @doc:
// API for invoking optimizer using GPDB udfs
//
// @test:
//
//
//-------------------------------------------------------------------... |
#include <cradle/imaging/isobands.hpp>
#include <cstdio>
using namespace cradle::imaging::impl;
// on edge
isobands_table_vertex vertex(
char vertex0, char vertex1, char interpolation_level)
{
isobands_table_vertex v;
v.on_edge = 1;
v.vertex0 = vertex0;
v.vertex1 = vertex1;
v.interpolation_lev... |
#include "gcp/util/Constants.h"
#include "gcp/util/Cosmology.h"
#include "gcp/util/Density.h"
#include "gcp/util/HubbleConstant.h"
#include <cmath>
using namespace std;
using namespace gcp::util;
const double Cosmology::eps_ = 1e-12;
/**.......................................................................
* Con... |
#include <iostream>
#include "CUserInterface.h"
#include "CError.h"
#include "CTransaction.h"
#include "common_helper.h"
using namespace std;
void UserInterface::displayUI() {
char choice;
do {
system("cls");
system("Color F0");
cout << "\n\t\t\tTEAM 1 SUPERMARKET\n";
cout << "\n\t" << getDateString();
... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "FontEditorModule.h"
#include "Factories.h"
#include "Toolkits/IToolkitHost.h"
#include "SColorPicker.h"
#include "SFontEditorViewport.h"
#include "SCompositeFontEditor.h"
#include "FontEditor.h"
#include "Editor/WorkspaceMenuStructure/Public/Worksp... |
//
// Voice.cpp
// SpaceBass
//
// Created by Martin on 08.04.14.
// Changes by Isaac on 12.09.20
//
#include "Voice.h"
void Voice::setFree() {
isActive = false;
}
void Voice::reset() {
mNoteNumber = -1;
opManager.reset();
} |
/*
* 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... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
/*
This file is a part of libcds - Concurrent Data Structures library
(C) Copyright Maxim Khizhinsky (libcds.dev@gmail.com) 2006-2016
Source code repo: http://github.com/khizmax/libcds/
Download: http://sourceforge.net/projects/libcds/files/
Redistribution and use in source and binary forms, with... |
#include "addressbookpage.h"
#include "ui_addressbookpage.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "bitcoingui.h"
#include "editaddressdialog.h"
#include "csvmodelwriter.h"
#include "guiutil.h"
#ifdef USE_QRCODE
#include "qrcodedialog.h"
#endif
#include <QSortFilterProxyModel>
#include <Q... |
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "WithinAreaTrigger.h"
#include "LastMovementValue.h"
#include "Playerbots.h"
bool WithinAreaTrig... |
#ifndef SEMPR_GUI_SINGLECOMPONENTWIDGET_HPP_
#define SEMPR_GUI_SINGLECOMPONENTWIDGET_HPP_
#include "UsefulWidget.hpp"
#include "CustomDataRoles.hpp"
#include <sempr/Component.hpp>
#include <memory>
namespace sempr { namespace gui {
/**
The SingleComponentWidget is a UsefulWidget that is used to display and
... |
//===----------------------------------------------------------------------===//
//
// Peloton
//
// optimizer.cpp
//
// Identification: src/optimizer/optimizer.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===----------------------------------------------------... |
/*=========================================================================
*
* 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 (c) 2018, Steven Siloti
Copyright (c) 2013-2021, Arvid Norberg
Copyright (c) 2016-2018, Alden Torres
Copyright (c) 2018, d-komarov
All rights reserved.
You may use, distribute and modify this code under the terms of the BSD license,
see LICENSE file.
*/
#include "libTAU/session.hpp"
#include "libTAU/ses... |
/**
* Copyright 2019-2020 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... |
// C:\diabpsx\SOURCE\SPELLS.CPP
#include "types.h"
// address: 0x8006FD38
// line start: 45
// line end: 94
int GetManaAmount__Fii(int id, int sn) {
// register: 3
register int i;
// register: 8
register int sl;
// register: 6
register int ma;
// register: 7
register int adj;
}
// address: 0x80070000
// l... |
//
// RE_FCT.cpp
// RE_FCT
//
// Created by gflfof gflfof on 14-8-31.
// Copyright (c) 2014年 hit. All rights reserved.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <pthread.h>
#include <sstream>
#include <limits>
#include "FullFctModel.h"
#define SEM_EVAL 1
#define ACE_... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2015 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include <iostream>
using namespace std;
//# viết hàm arr_sum
/****************
Ho va ten : Nguyen Quang Huy
MSSV : 20183554
*/
template <typename T>
T arr_sum(T a[], int n, T b[], int m){
T sum;
for(int i=0; i<n; i++)
sum += a[i];
for(int i=0; i<m; i++)
sum += b[i];... |
// Copyright (c) 2014-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2018 The Sifcash Core developers
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h... |
#include <core.math/statistics/Average.h>
using namespace NS(CORE_MATH_NAMESPACE, statistics);
Average::Average(int samples) :_samples(samples){}
void Average::addSample(value_type sample){
_queue.push(sample);
}
auto Average::calculate()->value_type{
value_type result = 0;
for (int i = 0; i < _samples; i++){... |
/*
* Copyright (C) 2010 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 John Maddock 2008
// Use, modification and distribution are subject to 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)
//
// High precision test data generated with NTL::RR at 1000 bit presision, a few values
// (5) a... |
#include "Meteor.h"
const float SPEED = 0.25f;
Meteor::Meteor(sf::Vector2f pos)
{
sprite_.setTexture(GAME.getTexture("Resources/meteor.png"));
sprite_.setPosition(pos);
setCollisionCheckEnabled(true);
assignTag("meteor");
}
void Meteor::draw()
{
GAME.getRenderWindow().draw(sprite_);
}
void Meteor::update(sf::T... |
/* This file is part of the KDE project
Copyright 2009 Thomas Zander <zander@kde.org>
Copyright 2006-2007 Stefan Nikolaus <stefan.nikolaus@kdemail.net>
Copyright 2006 Robert Knight <robertknight@gmail.com>
Copyright 2006 Inge Wallin <inge@lysator.liu.se>
Copyright 1999-2002,2004 Laurent Montel <montel@kd... |
int MdApi::reqUserLogin(dict req, int nRequestID)
{
CThostFtdcReqUserLoginField myreq = CThostFtdcReqUserLoginField();
memset(&myreq, 0, sizeof(myreq));
getStr(req, "MacAddress", myreq.MacAddress);
getStr(req, "UserProductInfo", myreq.UserProductInfo);
getStr(req, "UserID", myreq.UserID);
getStr(req, "TradingDay"... |
//==============================================================================
// Copyright 2003 & onward LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 & onward LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
std::shared_ptr<impl::FFTBase<float>> GetDispatchImpl(int n, float);
std::shared_ptr<impl::FFTBase<double>> GetDispatchImpl(int n, double);
std::shared_ptr<impl::FFTVertBase<float>> GetVertDispatchImpl(int n, float);
std::shared_ptr<impl::FFTVertBase<double>> GetVertDispatchImpl(int n, double);
std::shared_ptr<impl::... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
#include "Vector2D.h"
#include <math.h>
Vector2D::Vector2D(float xv, float yv)
{
x = xv;
y = yv;
}
Vector2D::~Vector2D()
{
}
float Vector2D::modulo()
{
return (float)sqrt(x*x + y*y);
}
float Vector2D::argumento()
{
return (float)atan2(y, x);
}
Vector2D Vector2D::Unitario()
{
Vector2D... |
#include <iostream>
using namespace std;
int main()
{
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int a, b;
cin >> a >> b;
if (a != 0)
cout << (-b) / a;
else if ((a == 0) && (b == 0))
cout << "R";
else
cout << "NO SOLUTION";
return 0;
} |
// Copyright 2013 the V8 project 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pe... |
//*****************************************************************************
// Copyright 2017-2020 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 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 2015 Aldebaran
*
* 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... |
/*
* Copyright (c) 2017-2018, The Nirvana Developers.
* Portions Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers.
*
* This file is part of Nirvana.
*
* This file is subject to the terms and conditions defined in the
* file 'LICENSE', which is part of this source code package.
*/
#in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.