text stringlengths 7 961k |
|---|
/*
By downloading, copying, installing or using the software you agree to this
license. If you do not agree to this license, do not download, install,
copy or use the software.
License Agreement
For Open Source Computer Vision Library
(3-clause BSD Licens... |
#include <bits/stdc++.h>
using namespace std;
// *****
struct Obstacle {
int X, Y;
};
struct range_t {
double aunder = 0.0, aover = INFINITY;
};
bool operator<(range_t lhs, range_t rhs) {
return tie(lhs.aunder, lhs.aover) < tie(rhs.aunder, rhs.aover);
}
int N, P, H;
vector<Obstacle> O;
double CEILING;... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
// 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 "components/drive/chromeos/file_system/set_property_operation.h"
#include "base/files/file_path.h"
#include "components/drive/drive.pb.h"
#inclu... |
#include "cpgf/scriptbind/gscriptservice.h"
#include "cpgf/scriptbind/gscriptbind.h"
#include "cpgf/scriptbind/gscriptbindutil.h"
#include "cpgf/metadata/metautility/gmetadata_metabytearray.h"
#include "cpgf/metadata/metautility/gmetadata_metaobjectarray.h"
#include "cpgf/metautility/gmetabytearray.h"
#include "cpgf/m... |
#include "storm/storage/prism/StateReward.h"
#include "storm/storage/expressions/Variable.h"
namespace storm {
namespace prism {
StateReward::StateReward(storm::expressions::Expression const& statePredicateExpression, storm::expressions::Expression const& rewardValueExpression, std::string const& filename,... |
// Copyright 2013 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/base/platform/time.h"
#if V8_OS_POSIX
#include <fcntl.h> // for O_RDONLY
#include <sys/time.h>
#include <unistd.h>
#endif
#if V8_OS_MACO... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
/// @version 1.2
///
/// @section License
/// Copyright 2019 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated documen... |
/*
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, ... |
#include <hacdMicroAllocator.h>
/*!
**
** Copyright (c) 2009 by John W. Ratcliff mailto:jratcliffscarab@gmail.com
**
** If you find this code useful or you are feeling particularily generous I would
** ask that you please go to http://www.amillionpixels.us and make a donation
** to Troy DeMolay.
**
**
** If you wish t... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatkron/DCbHDb.cpp
// \brief Source file for the DCbHDb sparse matrix/dense matrix Kronecker product math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// ... |
/*
Copyright (c) 2019 Sogou, 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/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writi... |
/**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2012 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organization... |
#include<iostream>
#include<vector>
#include <algorithm>
#include <math.h>
long maxProfit(int k, std::vector<int> profit) {
if(k > profit.size()/2){
return 0;
}
std::vector<long> result;
long temp = 0;
for(int i = 0; i + k -1 < profit.size()/2; i++){
int j = 0;
int it = i;
... |
#include <stdio.h>
#include <string.h>
#include <string>
#include <set>
#include <algorithm>
#include <iostream>
using namespace std;
const int N = 20;
const int M = 50;
int ans, g[N];
set<string> rec;
int d[M], c[M];
char sta[M][N];
void handle() {
for (int i = 0; i < 32; i++) {
int k = i, t = 0;
for (int j ... |
/// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
/// @version 2.0.0
///
/// @section License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated docum... |
// Copyright (c) 2011-2018 The PaydayCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/csvmodelwriter.h>
#include <QAbstractItemModel>
#include <QFile>
#include <QTextStream>
CSVModelWriter::CSV... |
/* PPPIPInterface.cpp */
/* Copyright (C) 2012 mbed.org, 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 rights to use,... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
/* Source file for the R2 solid class */
/* Include files */
#include "R2Shapes.h"
// Namespace
namespace gaps {
/* Public functions */
int
R2InitSolid()
{
/* Return success */
return TRUE;
}
void
R2StopSolid()
{
}
R2Solid::
R2Solid(void)
{
}
R2Solid::
~R2Solid(void)
{
}
const RNBoolea... |
// 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.
// Unit tests for denial-of-service detection/prevention code
#include "chainparams.h"
#include "keystore.h"
#include "net.h... |
// Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and A... |
#include <_param_cash_total_selling.hpp>
START_ATF_NAMESPACE
int _param_cash_total_selling::size()
{
using org_ptr = int (WINAPIV*)(struct _param_cash_total_selling*);
return (org_ptr(0x140304bb0L))(this);
};
END_ATF_NAMESPACE |
#include "controls/controller.h"
#include <cmath>
#ifndef USE_SDL1
#include "controls/devices/game_controller.h"
#endif
#include "controls/devices/joystick.h"
#include "controls/devices/kbcontroller.h"
namespace devilution {
void UnlockControllerState(const SDL_Event &event)
{
#ifndef USE_SDL1
GameController *cons... |
#include <despot/simple_tui.h>
#include "reg_demo.h"
using namespace despot;
class TUI: public SimpleTUI {
public:
TUI() {
}
DSPOMDP* InitializeModel(option::Option* options) {
DSPOMDP* model = !options[E_PARAMS_FILE] ?
new RegDemo() : new RegDemo(options[E_PARAMS_FILE].arg);
return model;
}
... |
#include "Planner.h"
#include <AI/Behaviour/ActionSequence.h>
#include <AI/PropActorBrain.h>
#include <Core/Factory.h>
const CString StrActTplPrefix("AI::CActionTpl");
namespace AI
{
static CArray<CActionTpl*> ActionsAdded;
using namespace Data;
void CPlanner::RegisterActionTpl(const char* Name, Data::PParams Para... |
/*
* Copyright (c) 2018 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-05-25
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
/**
* @file
* @copyright defined in roxe/LICENSE
*/
#pragma once
#include <roxe/chain/abi_def.hpp>
#include <roxe/chain/trace.hpp>
#include <roxe/chain/exceptions.hpp>
#include <fc/variant_object.hpp>
#include <fc/scoped_exit.hpp>
namespace roxe { namespace chain {
using std::map;
using std::string;
using std::f... |
#include <onepass/clientWrapper.hpp>
using namespace onepass::client;
ClientWrapper::ClientWrapper(int argc, char *argv[])
{
handleProgramOptions(argc, argv);
}
bool ClientWrapper::has(ParameterType optName)
{
return variablesMap.count(typeToString(optName)) ? true : false;
}
void ClientWrapper::printHelp()
{
... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2017-2018 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include <stdint.h>
#include <sstream>
#in... |
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <c... |
/**
* @file dual_perceptron.cpp
* @author Chase Geigle
*/
#include <numeric>
#include <random>
#include "meta/classify/kernel/all.h"
#include "meta/classify/classifier/dual_perceptron.h"
#include "meta/index/postings_data.h"
#include "meta/io/packed.h"
#include "meta/util/functional.h"
#include "meta/util/printing... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... |
/*
*
* Copyright (C) 2001-2016, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* As an exception of the above notice, the ... |
// Copyright 2010-2021, 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... |
/****************************************************************************
** Meta object code from reading C++ file 'richtextmessagewidget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.3)
**
** WARNING! All changes made in this file will be lost!
**********************************************... |
#include "mediapipe_api/framework/formats/image_frame.h"
MpReturnCode mp_ImageFrame__(mediapipe::ImageFrame** image_frame_out) {
TRY {
*image_frame_out = new mediapipe::ImageFrame();
RETURN_CODE(MpReturnCode::Success);
} CATCH_EXCEPTION
}
MpReturnCode mp_ImageFrame__ui_i_i_ui(mediapipe::ImageFormat::Forma... |
//
// 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... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "CuptiMetricInterface.h"
#include <chrono>
#include "Logger.h"
#include "cupti_call.h"
using... |
/* 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... |
/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file to you under
t... |
#include <iostream>
#include "BoardExtra.h"
#include <cstdlib>
using namespace std;
//Default constructor
Boarde::Boarde()
{
board_size = 0;
board = NULL;
copy = NULL;
}
//Destructor
Boarde::~Boarde()
{
for (int i = 0; i < board_size; i++)
{
delete []board[i];
delete []copy[i];
}
delete []board;
delete []c... |
// Copyright 2016 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 "cc/test/test_layer_tree_frame_sink.h"
#include <stdint.h>
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/single_t... |
//
// 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... |
//
// Copyright (C) 2014 Novartis Institutes for BioMedical Research
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <list>
#incl... |
// Copyright Carl Philipp Reh 2006 - 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 <sge/bvh/dummy_node.hpp>
#include <sge/bvh/object_impl.hpp>
#include <sge/bvh/tree_traits.... |
//===- lib/MC/MCDwarf.cpp - MCDwarf implementation ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright (C) 2019 The LineageOS 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 applicable la... |
// Copyright (c) 2009-2017 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/SIQS-config.h"
#endif
#include <cstring>
#if HAVE_DECL_STRNLEN == 0
size_t strn... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include"iostream"
#include"stdio.h"
using namespace std;
int main()
{
static int a[2]={1,2};
int* ptr[5];
int p=5,p2=6,*page,*page2;
int Test[2][3]={{1,2,3},{4,5,6}};
int Test2[3]={1,2,3};
page=&p;
page2=&p2;
ptr[0]=page;
ptr[1]=page2;
int (*A)[3],(*B)[3]; // 数组指针
A=&Test[1];
B=&Test2;
cout<<*page<<endl... |
/*
* BoolLit.cpp
*
* Created on: Jun 8, 2011
* Author: joe
*/
#include "BoolLit.h"
#include "../Domain.h"
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
bool BoolLit::doEquals(const Sentence& t) const {
const BoolLit *bt = dynamic_cast<const BoolLit*>(&t);
i... |
#include <spatial/ecs/EntityHandle.h>
#include <spatial/ecs/Registry.h>
namespace spatial::ecs
{
Registry::Registry() : mRegistry{}
{
}
Entity Registry::createEntity()
{
return mRegistry.create();
}
bool Registry::isValid(Entity entity) const noexcept
{
return mRegistry.valid(entity);
}
size_t Registry::getEntit... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... |
// Copyright 2007-2009 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 lis... |
/*
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/DOM/Element.h>
#include <LibWeb/HTML/Parser/HTMLParser.h>
#include <LibWeb/HTML/Parser/StackOfOpenElements.h>
namespace Web::HTML {
static Vector<FlyString> s_base_list { "applet", "caption... |
//===----------------------------------------------------------------------===//
//
// 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 (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 "chrome/browser/web_applications/preinstalled_web_app_manager.h"
#include <algorithm>
#include <memory>
#include <set>
#include <vector>
#i... |
// MIT Licensed (see LICENSE.md).
#include "Precompiled.hpp"
#define PlasmaLazyShaderCompositing
namespace Plasma
{
namespace Events
{
DefineEvent(ShaderInputsModified);
}
LightningDefineType(ShaderInputsEvent, builder, type)
{
type->AddAttribute(ObjectAttributes::cHidden);
}
LightningDefineType(GraphicsStatics,... |
//===============================================================================
// Copyright (c) 2007-2016 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2004-2006 ATI Technologies Inc.
//===============================================================================
//
// Permission is hereby gr... |
/*
* Copyright (C) 2019 TU Dresden
* All rights reserved.
*
* Authors:
* Christian Menard
*/
#ifndef REACTOR_CPP_ACTION_IMPL_HH
#define REACTOR_CPP_ACTION_IMPL_HH
#include "../assert.hh"
#include "../environment.hh"
namespace reactor {
template <class T> template <class Dur> void Action<T>::schedule(const I... |
// Copyright (c) 2014-2017, 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 o... |
// Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg, and University of
// of Connecticut School of Medicine.
// All rights reserved.
// Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
// Properties, Inc., University of Heidelberg,... |
#include <iostream>
#include <iomanip>
#include "color/color.hpp"
int main( int argc, char *argv[] )
{
::color::cmy< float > c0; //!< Instead of float you may put std::uint8_t,std::uint16_t, std::uint32_t, std::uint64_t, double, long double
::color::lms< std::uint8_t > c1; //!< Instead of std... |
// 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 "cryptohome/disk_cleanup_routines.h"
#include <memory>
#include <set>
#include <utility>
#include <vector>
#include <base/files/file_path.h>... |
class CfgFactionClasses {
class NO_CATEGORY;
class zei_interiors: NO_CATEGORY {
displayName = "Interiors (ZEI)";
};
class zei_interiors_dev: NO_CATEGORY {
displayName = "Interiors Development (ZEI)";
};
}; |
/*
* Copyright (c) 2017 - 2018, Intel Corporation
*
* 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, modify, ... |
/**********************************************************************************************************************
This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich.
Licensed under the BSD-2 license (see LICENSE file in main directory)
****************... |
/**
* MegBA is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2021 Megvii Inc. All rights reserved.
*
**/
#include <thrust/copy.h>
#include <thrust/iterator/constant_iterator.h>
#include <thrust/transform.h>
#include "operator/jet_vector.h"
#include "operator/jet_vector_math_imp... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once... |
/*
* Copyright (c) 2015-2022 The Khronos Group Inc.
* Copyright (c) 2015-2022 Valve Corporation
* Copyright (c) 2015-2022 LunarG, Inc.
* Copyright (c) 2015-2022 Google, Inc.
* Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (th... |
#include "Application/Application.h"
#include "Input/InputHandler.h"
#include "UserInterface/ImGuiLayer.h"
#include "Rendering/BufferLayout.h"
#include "Rendering/Renderer.h"
#include "UserInterface/OutputLog.h"
#include "Rendering/RenderTypes.h"
inline namespace MARS
{
Application* Application::Instance = nullptr;
... |
#include "hello_world.h"
#include "test/catch.hpp"
TEST_CASE("test_hello")
{
REQUIRE(hello_world::hello() == "Hello, World!");
}
TEST_CASE("test_backyard")
{
REQUIRE(hello_world::backyard() == "OMG! There's a giant branch!");
} |
//=================================================================================================
/*!
// \file src/blaze/DMatTDMatMult.cpp
// \brief Source file for the Blaze dense matrix/transpose dense matrix multiplication kernel
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This fi... |
// Purpose:
// Test that LimitStep commands can exist on the same from line.
//
// REQUIRES: system-linux
//
// RUN: %dexter_regression_test -- %s | FileCheck %s
// CHECK: limit_steps_same_line_conditional.cpp
int main() {
int val1 = 0;
int placeholder;
for(int ix = 0; ix != 4; ++ix) {
val1 = ix;
p... |
// Copyright (C) 2015-2018 Cameron Angus. All Rights Reserved.
#include "Charts/SKantanCartesianChart.h"
#include "IDataSeriesElement.h"
#include "KantanCartesianDatasourceInterface.h"
#include "SimpleRenderTarget.h"
#include "FloatRoundingLevel.h"
#include "AxisUtility.h"
#include "ChartConstants.h"
#include "Style/K... |
#pragma once
#include <glm/glm.hpp>
#define PI 3.14159265358979323846
namespace YokaiPhysics
{
/**
* @brief Calculates Rectangular Inertia Tensor
* @param ext
* @param mass
* @return glm::mat3x3
*/
glm::mat3x3 RectangleInertiaTensor(glm::dvec3 ext, double mass);
/**
* @br... |
#include <CQChartsExprDataModel.h>
CQChartsExprDataModel::
CQChartsExprDataModel(int n) :
CQDataModel(1, n), n_(n)
{
} |
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "Components/WidgetSwitcherSlot.h"
#include "SlateFwd.h"
#include "Components/Widget.h"
/////////////////////////////////////////////////////
// UWidgetSwitcherSlot
UWidgetSwitcherSlot::UWidgetSwitcherSlot(const FObjectInitializer& ObjectInitialize... |
// 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8SVGTSpanElement.h"
#include "bindings/core/... |
/*
* Copyright 2009-2017 Alibaba Cloud 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... |
// Author: btjanaka (Bryon Tjanaka)
// Problem: (UVa) 11906
#include <bits/stdc++.h>
#define GET(x) scanf("%d", &x)
#define GED(x) scanf("%lf", &x)
typedef long long ll;
using namespace std;
typedef pair<int, int> ii;
int r, c, m, n, w, ri, ci;
bool water[110][110];
vector<int> dr;
vector<int> dc;
int ditr; // how ma... |
#include "test_unsigned_int_to_char_vector.h"
void runTestUnsignedIntToCharVectorTests()
{
runTestUnsignedIntToCharVectorTestOne();
runTestUnsignedIntToCharVectorTestTwo();
runTestUnsignedIntToCharVectorTestThree();
runTestUnsignedIntToCharVectorTestFour();
}
void runTestUnsignedIntToCharVectorTestOne()
{
std::v... |
/*=============================================================================
Copyright (c) 2011-2017 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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) 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 ... |
#ifndef __REQUEST_DISPATCHER_HPP__
#define __REQUEST_DISPATCHER_CPP__
namespace http {
namespace server {
class request_dispatcher {
public:
request_dispatcher() {}
};
}
}
#endif |
#pragma once
#include <fc/exception/exception.hpp>
#include <snax/chain/exceptions.hpp>
#include <snax/chain/controller.hpp>
#include <snax/chain/wasm_snax_binary_ops.hpp>
#include <functional>
#include <vector>
#include <iostream>
#include "IR/Module.h"
#include "IR/Operators.h"
#include "WASM/WASM.h"
namespace snax... |
#include <Rcpp.h>
#include "sfheaders/cast/sfg_cast.hpp"
#include "sfheaders/cast/sfc_cast.hpp"
#include "sfheaders/cast/sf_cast.hpp"
// #include "sfheaders/cast/list_cast.hpp"
#include "sfheaders/sfc/sfc.hpp"
// [[Rcpp::export]]
Rcpp::IntegerVector rcpp_count_new_objects( SEXP sfg, std::string cast_to ) {
R_xlen_t ... |
#include "modules/reliable_module.h"
#include "builder/static_var.h"
#include "blocks/rce.h"
#include "modules/inorder_module.h"
#include "modules/identifier_module.h"
namespace net_blocks {
reliable_module reliable_module::instance;
void reliable_module::init_module(void) {
// This buffer helps us find waiting pa... |
/*
* (C) Copyright IBM Corporation 2018, 2019. All rights reserved.
* US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*/
/*
* Hopscotch hash table - template Key, Value, and allocators
*/
#include <type_traits> /* remove_const */
#incl... |
/*
Copyright (c) 2011, Arvid Norberg
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 conditions and the f... |
// 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 "content/renderer/pepper/pepper_platform_audio_input_impl.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop_pr... |
// Copyright 2019 Google 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 by applicable... |
// 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 <util.h>
#include <test/test_zenx.h>
#include <string>
#include <vector>
#include <boost/algorithm/string.hpp>
#in... |
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
int ret;
do {
MainWindow win;
win.show();
ret = app.exec();
} while(ret == 207);
return ret;
} |
#include <cvd/videosource.h>
namespace CVD{
template <> VideoBuffer<byte>* makeV4LBuffer(const std::string&, const ImageRef&, int, bool, bool)
{
throw VideoSourceException("V4LBuffer is not compiled in to libcvd.");
}
template <> VideoBuffer<bayer_grbg>* makeV4LBuffer(const std::string&, const ImageRef&, int, ... |
#pragma once
namespace mu
{
namespace llvmc
{
enum class predicates
{
icmp_eq,
icmp_ne,
icmp_ugt,
icmp_uge,
icmp_ult,
icmp_ule,
icmp_sgt,
icmp_sge,
icmp_slt,
icmp_sle
};
}
} |
//@COPYRIGHT@//
//
// Copyright (c) 2011, Tomoto S. Washio
// 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, ... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
#include <opencv\highgui.h>
#include <opencv\cv.h>
#include <iostream>
using namespace cv;
using namespace std;
string intToString(int number){
std::stringstream ss;
ss << number;
return ss.str();
}
int main(int argc, char* argv[])
{
VideoCapture cap(0); // open the video camera no. 0
cv::VideoWriter writer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.