text stringlengths 7 961k |
|---|
// 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 "apps/shell_window_geometry_cache.h"
#include "base/bind.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#... |
// $Id$
//
// Copyright (C) 2003-2006 Rational Discovery LLC
//
// @@ 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 <RDGeneral/Invari... |
// C++ wrapper for uJIT header files.
// Copyright (C) 2015-2019 IPONWEB Ltd. See Copyright Notice in COPYRIGHT
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "lextlib.h"
#include "ujit.h"
} |
/*
================================================================================
PROJECT:
John Eddy's Genetic Algorithms (JEGA)
CONTENTS:
Definition of class ConstraintTypeBase.
NOTES:
See notes of ConstraintTypeBase.hpp.
PROGRAMMERS:
John Eddy (jpeddy@sandia.go... |
#pragma once
#include "../../../JObject.hpp"
namespace android::content
{
class Context;
}
namespace android::os
{
class Parcel;
}
namespace android::util
{
class Size;
}
namespace android::view::inputmethod
{
class InlineSuggestionInfo;
}
class JObject;
class JString;
namespace android::view::inputmethod
{
cla... |
/*
* Copyright (c) 2017, The OpenThread 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 code must retain the above copyright
* notice, this ... |
#include "nr.h"
void NR::banmul(Mat_I_DP &a, const int m1, const int m2, Vec_I_DP &x,
Vec_O_DP &b)
{
int i,j,k,tmploop;
int n=a.nrows();
for (i=0;i<n;i++) {
k=i-m1;
tmploop=MIN(m1+m2+1,int(n-k));
b[i]=0.0;
for (j=MAX(0,-k);j<tmploop;j++) b[i] += a[i][j]*x[j+k];
}
} |
#include "taichi/common/task.h"
#include "taichi/gui/gui.h"
#include "taichi/util/bit.h"
#if defined(TI_GUI_COCOA)
#include <algorithm>
#include <optional>
#include <string>
#include <unordered_map>
#include "taichi/platform/mac/objc_api.h"
// https://stackoverflow.com/questions/4356441/mac-os-cocoa-draw-a-simple-p... |
#include "rzpch.h"
#include "SixDOF.h"
namespace Razor
{
SixDOF::SixDOF() : PhysicsConstraint()
{
}
SixDOF::~SixDOF()
{
}
} |
/*
* Copyright (c) 2013-2014 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is ... |
/*
THIS FILE HAS BEEN AUTOMATICALLY GENERATED - DO NOT EDIT
---
Copyright 2020 The Institute for Ethical AI & Machine Learning
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 ... |
/*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
#include "coherence/util/ArrayList.hpp"
#include "coherence/util/Collection.hpp"
... |
#include <cstring>
#include <dlfcn.h>
#include <android/log.h>
#include "IUnityInterface.h"
#include "IUnityProfilerCallbacks.h"
static IUnityProfilerCallbacks* s_UnityProfilerCallbacks = NULL;
typedef void (*fp_ATrace_beginSection) (const char* sectionName);
typedef void (*fp_ATrace_endSection) ();
typedef bool (*f... |
// Copyright 2014 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/compiler/js-typed-lowering.h"
#include "src/ast/modules.h"
#include "src/builtins/builtins-utils.h"
#include "src/codegen/code-factory.h"... |
/**
* @file shock_tube.cpp
* @brief This is a test to show the standard sod shock tube case.
* @details See https://doi.org/10.1016/j.jcp.2010.08.019 for the detailed problem setup.
* @author Zhentong Wang and Xiangyu Hu
*/
#include "sphinxsys.h"
using namespace SPH;
//------------------------------------------... |
/*******************************************************************\
Module: Unit tests for converting annotations
Author: Diffblue Ltd.
\*******************************************************************/
#include <java-testing-utils/load_java_class.h>
#include <java_bytecode/java_bytecode_convert_class.h>
#incl... |
/*
* Copyright 2017 The Polycube 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... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
vector<int> w(n),b(n);
for(auto &x:w) cin>>x;
for(auto &x:b) cin>>x;
sort(w.begin(),w.end());
sort(b.begin(),b.end());
int t =0;
for(int i =0;i<n;i++){
t+=abs(w[i]-b[i]);
}
cout<<t;
} |
#include "Collision/CollisionObject2.h"
#include "Collision/Collisions.h"
#include "Render/RenderHelper.h"
#include "Render/2D/Systems/RenderSystem2D.h"
#include "Render/Renderer.h"
#include "Engine/Engine.h"
namespace DAVA
{
CollisionObject2::CollisionObject2(eType _type)
{
type = _type;
updateFrameIndex = 0... |
#include <iostream>
int main (void)
{
//DECLARANDO AS VARIAVEIS
int diaDaSemana, categoria;
float preco;
// LENDO AS INFORMACOES PARA O CALCULO
std::cout<<"Insira o dia da semana : \n";
std::cout<<"1-Domingo"<<std::endl;
std::cout<<"2-Segunda-Feira"<<std::endl;
std::cout<<"3-Terca-Feira"<<std::endl;
std::cou... |
/*
Copyright (c) 2017, Arvid Norberg, Alden Torres
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... |
// Author: Jonas Byström
// Copyright (c) Pixel Doctrine
#include "pch.h"
#include "../../include/gui/uilabel.h"
#include <algorithm>
#include "../../include/gui/uidesktopwindow.h"
#include "../../include/uipainter.h"
namespace uitbc {
Label::Label(const Color& color, const wstr& text):
Parent(color),
icon_i... |
// 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 "chrome/browser/safe_browsing/signature_evaluator_mac.h"
#include <CoreFoundation/CoreFoundation.h>
#include <stdint.h>
#include <string.h>
#inc... |
#ifndef STAN_MATH_PRIM_SCAL_FUN_IF_ELSE_HPP
#define STAN_MATH_PRIM_SCAL_FUN_IF_ELSE_HPP
#include <stan/math/prim/meta.hpp>
namespace stan {
namespace math {
/**
* Return the second argument if the first argument is true
* and otherwise return the second argument.
*
* <p>This is just a convenience method to provi... |
https://practice.geeksforgeeks.org/problems/minimum-number-of-jumps-1587115620/1#
Given an array of integers where each element represents the max number of steps that can be made forward from that element. Write a function to return the minimum number
of jumps to reach the end of the array (starting from the first el... |
#include "ModuleConfiguration.h"
#include "Application.h"
#include "Utils/Logging.h"
#include "Utils/MSTimer.h"
#include "FileSystem/JsonValue.h"
#include "Modules/ModuleFiles.h"
#include "Modules/ModuleScene.h"
#include "Modules/ModuleTime.h"
#include "Modules/ModuleAudio.h"
#include "Modules/ModulePhysics.h"
#includ... |
// Copyright (c) 2013 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/common/gpu/media/android_video_decode_accelerator.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop/m... |
////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTIMULib
//
// Copyright (c) 2014, richards-tech
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal... |
#pragma once
#include "acmacs-base/enumerate.hh"
#include "acmacs-base/fmt.hh"
// ----------------------------------------------------------------------
namespace acmacs::tal::inline v3::tree
{
// ----------------------------------------------------------------------
template <typename N, typename F1> inli... |
/* ************************************************************************
* Copyright 2020-2021 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "clientcommon.hpp"
template <bool FORTRAN, typename T, typename U, typename V>
void getrf_npvt_checkBa... |
// 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/mouse_lock_dispatcher.h"
#include "base/logging.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
namespace con... |
#include <nau/animation/linearanimation.h>
#include <nau/math/vec3.h>
#include <nau/geometry/iboundingvolume.h>
using namespace nau::animation;
using namespace nau::math;
using namespace nau::geometry;
LinearAnimation::LinearAnimation(nau::scene::ISceneObject *aObject, nau::math::vec3 start, nau::math::vec3 end) :
... |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#include <QUrl>
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, QWidget *parent) :
... |
#include "console-common/command-registerer.h"
#include <algorithm>
#include <chrono>
#include <exception>
#include <iostream> // NOLINT
#include <map>
#include <sstream> // NOLINT
#include <string>
#include <unordered_map>
#include <utility>
#include <wordexp.h>
#include <aslam/common/timer.h>
#include <glog/loggi... |
// Copyright 2018 Your Name <your_email>
#ifndef INCLUDE_HEADER1_HPP_
#define INCLUDE_HEADER1_HPP_
#include <utility>
#include <stdexcept>
template <typename T>
class Stack
{
struct Node {
T data;
Node* next = nullptr;
Node(T&& arg) { data = std::forward<T>(arg); }
static Node* create(T&& arg, Node* pointe... |
#include "plug.h"
bool plugStatus = false;
Plug::Plug(byte plug)
{
// Use 'this->' to make the difference between the
// 'pin' attribute of the class and the
// local variable 'pin' created from the parameter.
this->plug = plug;
init();
}
void Plug::init()
{
pinMode(plug, OUTPUT);
// Always... |
/*
* 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... |
#include "viewerdraw.h"
#include "tapp.h"
#include "toonz/txsheethandle.h"
#include "toonz/tscenehandle.h"
#include "toonz/tframehandle.h"
#include "toonz/tcolumnhandle.h"
#include "toonz/tobjecthandle.h"
#include "toonz/cleanupparameters.h"
#include "sceneviewer.h"
#include "ruler.h"
#include "tgl.h"
#include "trop.h... |
#include <IO/AssimpLoader/AssimpLightDataLoader.hpp>
#include <assimp/scene.h>
#include <Core/Utils/Log.hpp>
#include <IO/AssimpLoader/AssimpWrapper.hpp>
namespace Ra {
namespace IO {
using namespace Core::Utils; // log
using namespace Core::Asset;
AssimpLightDataLoader::AssimpLightDataLoader( const std::string& ... |
#include "VisionSystemClient.hpp"
Coordinate::Coordinate() {
init(0, 0, 0);
}
Coordinate::Coordinate(double x, double y) {
init(x, y, 0);
}
Coordinate::Coordinate(double x, double y, double theta) {
init(x, y, theta);
}
void Coordinate::init(double x, double y, double theta) {
this->x = x;
this->y = y;
... |
#include <bits/stdc++.h>
using namespace std;
#define PI 2*acos(0)
typedef long long int ll;
// #define ll long long int
// other popular ones=> int64_t, uint64_t => use for 10^18
ll MODULO = 1e9+7;
bool myAssert(bool b);
void testDrivenDevelopment();
int start(int argc=0, char const *argv[] = NULL);
// int n,m;s
... |
/**
* Copyright 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 applicable law... |
// Copyright 2020 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 "quic/core/crypto/proof_source_x509.h"
#include <memory>
#include "absl/strings/string_view.h"
#include "third_party/boringssl/src/include/open... |
//
// FILE: Max44009.cpp
// AUTHOR: Rob Tillaart
// VERSION: 0.5.1
// PURPOSE: library for MAX44009 lux sensor Arduino
// URL: https://github.com/RobTillaart/MAX44009
//
// HISTORY
//
// 0.5.1 2021-12-21 update library.json, license, minor edits
// 0.5.0 2021-06-04 fix exponent math.
// 0.4.4 2021-0... |
// Copyright 2014 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/cxfa_ffcombobox.h"
#include <utility>
#include <vector>
#... |
# ifndef CPPAD_LOCAL_RECORD_COND_EXP_HPP
# define CPPAD_LOCAL_RECORD_COND_EXP_HPP
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-20 Bradley M. Bell
CppAD is distributed under the terms of the
Eclipse Public License V... |
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
typedef struct Point
{
int x;
int y;
} Point;
long long int isLeft(Point topPoint, Point underTopPoint, Point newPoint) //判断新的点是否在原直线的左边
{
return ((long long)topPoint.x - (long long)underTopPoint.x) * ((long long)newPoint.y - (long lon... |
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cstdint>
#include <cassert>
#include "cnf.h"
#include "clause.h"
#include "literal.h"
#include "variable.h"
int parseCnfFile(int argc, char *argv[], cnf & _cnfExpression )
{
if (argc != 2)
{
std::cerr << "Please specify name of fi... |
/*
Project 1: Server/Client Chat Application
Authors: Daniel Hartman and Joseph Castaner
*/
/*
Copyright 2021 Daniel S. Buckstein
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) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <openssl/bn.h>
#include <openssl/ecdsa.h>
#include <openssl/rand.h>
#include <openssl/obj_mac.h>
#include "key.h"
... |
// Copyright (c) 2011-2017 The Cryptonote developers
// Copyright (c) 2018 The Circle Foundation
//
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QMessageBox>
#include "AddressBookModel.h"
#include "AddressPro... |
/*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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkReferenceCount.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 softwar... |
#include "common/loaders/TextureLoader.hpp"
namespace id {
namespace loaders {
TextureLoader::TextureLoader() : m_width(0), m_height(0), m_texture(0) {}
TextureLoader::~TextureLoader() { unload(); };
int TextureLoader::getWidth() {
return m_width;
}
int Textur... |
/*
* Copyright (c) 2017-2019 ARM Limited
* 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 intellectual property relating
* to a hardware implementation of the ... |
#include <deque>
#include "Transaction.hpp"
#include "Halite.hpp"
namespace hlt {
/**
* Dump energy onto a cell.
*
* @param store The game store.
* @param location The location at which to dump.
* @param cell The cell at which to dump.
* @param energy The dumped amount of energy.
*/
void dump_energy(Store &s... |
#include "CommandAllocator.h"
#include "stdafx.h"
CommandAllocator::CommandAllocator():mDx12Allocater(NULL)
{
}
bool CommandAllocator::initialize(ID3D12Device* device,CommandType cmdtype)
{
HRESULT hr;
mType = cmdtype;
switch (cmdtype)
{
case COMMAND_TYPE_GRAPHICS:
hr = device->CreateCommandAllocator(D3D12_COM... |
// 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 "content/browser/devtools/protocol/fetch_handler.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/callback_helpers.... |
/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 ( the "License" );
you may not use this file except in compliance with the L... |
/* Copyright 2017 R. Thomas
* Copyright 2017 Quarkslab
*
* 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 appli... |
// Copyright (c) 2013 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/views/extensions/extension_message_bubble_view.h"
#include "base/strings/string_number_conversions.h"
#include "base/stri... |
#include "linux_parser.h"
#include <dirent.h>
#include <unistd.h>
#include <algorithm>
#include <filesystem>
#include <iostream>
#include <string>
#include <vector>
using std::stof;
using std::string;
using std::to_string;
using std::vector;
namespace fs = std::filesystem;
// DONE: An example of how to read data fro... |
#include "dns.h"
#include <cctype>
#include <cstdbool>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#define BUFLEN 512
#if defined IP_RECVDSTADDR
#define... |
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#define FML_USED_ON_EMBEDDER
#include "flutter/shell/platform/android/android_shell_holder.h"
#include <pthread.h>
#include <sys/resource.h>
#include <sy... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2020, 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... |
/* Copyright 2019 Chris Smeele
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
// nnet2bin/raw-nnet-info.cc
// Copyright 2013 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple 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... |
#include "stdafx.h"
#include "../../xr_3da/igame_persistent.h"
#include "../../xr_3da/environment.h"
//////////////////////////////////////////////////////////////////////////
// tables to calculate view-frustum bounds in world space
// note: D3D uses [0..1] range for Z
static constexpr Fvector3 corners[8] = {
{ -1, ... |
/***************************************************************************
# Copyright (c) 2015-21, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions... |
/*
* VersionedBTree.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
// Single-line comment
/*
* Multiple line comment
*/
#include "common.h"
template<typename T>
T power(T a, int n)
{
T res = 1;
int k = n;
T c = a;
while(k != 0)
{
if(k % 2 == 0)
{
c *= c;
k = k / 2;
}
else
{
k--;
res *= c;
}
}
return res;
}
int main(int argc, ch... |
#include "../includes/TokenVisitor.h"
#include "../includes/Token.h"
#include <iostream>
#include "../helpers/tokensToStrings.h"
void TokenPrinter::visit(Token * tok)
{
std::string tokValue = getStr(tok->getTokenType());
std::cout << tokValue;
}
void TokenPrinter::visit(IntegerLiteral * tok)
{
... |
#include <ripple/basics/contract.h>
#include <ripple/basics/Log.h>
#include <cstdlib>
#include <exception>
#include <iostream>
namespace ripple {
namespace detail {
[[noreturn]]
void
accessViolation() noexcept
{
int volatile* j = 0;
(void)*j;
std::abort ();
}
}
void
LogThrow (std::string const& title)... |
/*
* Copyright (c) 2012 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... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2018 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
*
* ... |
#include "detection_output_layer.h"
DetectionOutputLayer::DetectionOutputLayer()
{
}
DetectionOutputLayer::~DetectionOutputLayer()
{
}
void DetectionOutputLayer::layer_set_up(vector<Blob>& bottom_data_, vector<Blob>& top_data_)
{
objectness_score_ = 0.01;
num_classes_ = 21;
share_location_ = true;
num_loc_classe... |
/****************************************************************************
** Meta object code from reading C++ file 'walletmodel.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.3)
**
** WARNING! All changes made in this file will be lost!
*********************************************************... |
/*==============================================================================
Copyright (c) 2005-2010 Joel de Guzman
Copyright (c) 2010-2011 Thomas Heller
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) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparamsbase.h"
#include "util.h"
#include <assert.h>
#include <boost/assig... |
/*******************************************************************************
* Copyright 2017-2021 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 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The Jasmine developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-lic... |
/// @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... |
// Copyright (c) 2006-2008 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 "skia/ext/platform_device.h"
namespace skia {
PlatformSurface PlatformDevice::BeginPlatformPaint() {
return NULL;
}
void PlatformDe... |
//
// Created by marandil on 11.09.15.
//
#ifndef MDLUTILS_EXCEPTIONS_BREAK_OUT_EXCEPTION_HPP
#define MDLUTILS_EXCEPTIONS_BREAK_OUT_EXCEPTION_HPP
namespace mdl
{
struct break_out_exception
{
};
}
#endif //MDLUTILS_EXCEPTIONS_BREAK_OUT_EXCEPTION_HPP |
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The alicoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// clang-format off
#include "main.h"... |
#include<stdio.h>
int main()
{
int i,j,memR,memH,count=0,flag=0,req[100],hole[100],val=0,k,memory,sum=0,sub=999;
//freopen("file.txt","r",stdin);
printf("Enter no of Memory Requests: ");
scanf("%d",&memR);
printf("Enter the process requests: ");
for(i=0; i<memR; i++)
{
scanf("%d"... |
//
// UserLocationsDialog.cpp
// interface/src/ui
//
// Created by Ryan Huffman on 06/24/14.
// Copyright 2014 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 <QDebug>
#include <QInput... |
// Copyright(c) 2021, Intel Corporation
//
// 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 ... |
// 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 <algorithm>
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/singleton.h"
#include "base/path_service.h"
#incl... |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Char[]
struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34;
// System.Runtime.CompilerServices.CompilationRelaxationsAttribute
struct CompilationRelaxationsAttrib... |
#include <algorithm>
#include <iostream>
#include <opencv2/calib3d.hpp>
#include <opencv2/core.hpp>
#include <opencv2/features2d.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <vector>
constexpr auto kWindowName = "BRISK BF Matcher";
constexpr auto kThresholdTaskbar = "Threshold";
constexp... |
//
// Created by SUBHADEEP DUTTA on 09-03-2021.
//
#include <iostream>
#include <iomanip>
#include <cmath>
#include "myHashing.h"
using namespace std;
const double a = 0.618033;
myHashing::myHashing(): myHashing(5) {}
myHashing::myHashing(int s)
{
size = s;
ptr = new myLinkList[size];
}
myHashing::~myHashi... |
// 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 "Supernova.h"
#include "Scene.h"
#include "Polygon.h"
using namespace Supernova;
Polygon triangulo;
Scene cena;
void init(){
Engine::setCanvasSize(1000,480);
triangulo.addVertex(Vector3(0, -100, 0));
triangulo.addVertex(Vector3(-50, 50, 0));
triangulo.addVertex(Vector3(50, 50, 0));
tri... |
/**************************************************************
*
* 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... |
// Copyright David Abrahams 2002.
// Copyright Stefan Seefeld 2016.
// 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 <boost/python/module.hpp>
#include <boost/python/class.hpp>
#include <boost/python/cal... |
//
// FILE NAME: CIDMacroEng_EnumClass.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/11/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... |
#include <nan.h>
#include "nan_helpers.hpp"
#include "convert.hpp"
#include "sorting.hpp"
/**
* Bubble sort algorithm implementation.
*
* @param args Standart Nan function arguments list.
*/
void nan_bubble_sort(const Nan::FunctionCallbackInfo<v8::Value>& args) {
v8::Isolate* isolate = args.GetIsolate();
if (... |
#include "KinTree.h"
#include <iostream>
#include <unistd.h>
#include "util/FileUtil.h"
#include "sim/RBDUtil.h"
const int cKinTree::gPosDim = 3;
const int cKinTree::gRotDim = 4;
const int cKinTree::gRootDim = gPosDim + gRotDim;
const int cKinTree::gInvalidJointID = -1;
// Json keys
const std::string gJointTypeName... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.