text stringlengths 7 961k |
|---|
#include <wmrde/surface/TriMeshSurf.h>
TriMeshSurf::TriMeshSurf() {
nv = 0;
nt = 0;
xmin = REALMAX;
xmax = -REALMAX;
ymin = REALMAX;
ymax = -REALMAX;
}
void TriMeshSurf::add_vertex(const Vec3 V) {
copyVec3(V,vertices[nv]);
nv++;
//bounding box
if (V[0] < xmin)
xmin = V[0];
if (V[0] > xmax)
xmax = V[0... |
#include "go_utils.h"
#include "net/spdy/spdy_header_block.h"
namespace net {
GoSpdyHeader* CreateGoSpdyHeader(const SpdyHeaderBlock& header_block) {
size_t N = header_block.size();
GoSpdyHeader* hdr = new GoSpdyHeader;
hdr->N = N;
hdr->Keys = new const char*[N];
hdr->Values = new const char*[N];
hdr->Ke... |
// 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... |
// ZeroTest.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
int Error(const char* msg) {
printf("%s: error=%d\n", msg, ::GetLastError());
return 1;
}
int main() {
HANDLE hDevice = ::CreateFile(L"\\\\.\\Zero", GENERIC_READ | GENERIC_WRITE, 0, nullptr,
OP... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include <mxtk/mx.h>
#include "resource.h"
#include "ExpressionProperties.h"
#include "mdlviewer.h"
static CExpressionParam... |
/*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 Alexander Samusev.
This file is part of the Hork Engine Source Code.
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 rest... |
// Copyright 2010-2017 Google
// 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 wri... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2018-2019, The DeployCoin Developers
//
// Please see the included LICENSE file for more information.
#include "ITimeProvider.h" |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/s3/model/GetObjectResult.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/utils/memory/... |
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
const char * ssid = "homewifi_D96";
const char * password = "16706115";
//Your Domain name with URL path or IP address with path
const char * serverName = "http://192.168.0.14:8000/records/";
// the following variables are unsigned lon... |
#include "ScriptTokenCache.h"
#include <atomic>
TokenCacheEntry& CachedTokens::Get(std::size_t key)
{
return this->container_[key];
}
TokenCacheEntry* CachedTokens::Append(ExpressionEvaluator &expEval)
{
return this->container_.Append(expEval);
}
std::size_t CachedTokens::Size() const
{
return container_.Size();... |
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
* Copyright (C) 2014-2017 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... |
#include <rabbit/systems/renderer.hpp>
#include <rabbit/graphics/graphics.hpp>
#include <rabbit/components/light.hpp>
#include <rabbit/platform/input.hpp>
#include <rabbit/core/settings.hpp>
#include <rabbit/core/format.hpp>
#include <rabbit/math/math.hpp>
// TODO: Calculate objects world matrices and store it in buff... |
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... |
//
// FILE NAME: CIDCtrls_ScrollBar.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/28/2017
//
// 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://openso... |
#pragma once
#include "RuntimeObjectSystem/RuntimeLinkLibrary.h"
#include "parameters/Parameter.hpp"
#ifdef _WIN32
#ifdef _DEBUG
RUNTIME_COMPILER_LINKLIBRARY("parametersd.lib")
#else
RUNTIME_COMPILER_LINKLIBRARY("parameters.lib")
#endif
#else
RUNTIME_COMPILER_LINKLIBRARY("-lparameters")
#endif |
/*
* Copyright (c) 2020, Sergey Bugaev <bugaevc@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 notice,... |
#include "Events/PartyEvents.hpp"
#include "API/CNWSPlayer.hpp"
#include "API/CNWSMessage.hpp"
#include "API/Functions.hpp"
#include "API/Constants.hpp"
#include "Events.hpp"
#include "Utils.hpp"
#include <cstring>
namespace Events {
using namespace NWNXLib;
using namespace NWNXLib::API;
using namespace NWNXLib::Plat... |
#ifdef PEGASUS_OS_STUB
#ifndef __UNIX_ABSTRACTINDICATIONSUBSCRIPTION_PRIVATE_H
#define __UNIX_ABSTRACTINDICATIONSUBSCRIPTION_PRIVATE_H
#endif
#endif |
// Copyright 2010-2014, 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... |
// Copyright 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 "ui/base/ime/dummy_input_method.h"
namespace ui {
DummyInputMethod::DummyInputMethod() {
}
DummyInputMethod::~DummyInputMethod() {
}
void Dum... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2006, 2007, 2008, 2010, 2011, 2015 Ferdinando Ametrano
Copyright (C) 2000, 2001, 2002, 2003 RiskMap srl
Copyright (C) 2009, 2012 StatPro Italia srl
This file is part of QuantLib, a free-software/open-source library
f... |
/*
//@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... |
// stdafx.cpp : source file that includes just the standard includes
// NeuralNetwork.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
// TODO: reference any additional headers you need in STDAFX.H
// and not in this file |
/* Copyright (c) 2008 - 2022 Advanced Micro Devices, 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 limitation the rights
to use, copy, modify, mer... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
#include "refreshwidget.h"
#include "ui_refreshwidget.h"
#include <QListWidget>
#include <QLabel>
RefreshWidget::RefreshWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::RefreshWidget)
{
ui->setupUi(this);
int startRow = ui->listWidget->count();
for ( int i = startRow; i < startRow+5; i++)
... |
// Copyright 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 "mojo/system/waiter_test_utils.h"
namespace mojo {
namespace system {
namespace test {
SimpleWaiterThread::SimpleWaiterThread(MojoResult* resul... |
#pragma once
#include <zk/config.hpp>
#include <zk/optional.hpp>
#include <stdexcept>
#include <string>
namespace zk::server::detail
{
/** Used to specify behavior of POSIX resources when \c exec is called. **/
enum class on_exec
{
/** Enable the close-on-exec flag for an opened handle. This means that any subp... |
#include "gv_base.h"
#if !GV_NO_LUA
#include "../lua/gv_lua_commandlet.hpp"
#endif
namespace gv
{
bool gv_commandlet_client_net_simulation::execute(const gv_string_tmp& str)
{
try
{
using namespace gv_lang_xml;
gv_xml_parser xml;
xml.load_string(str);
gv_string_tmp name;
xml >> name;
if (name == "set_net... |
// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef STORAGE_HPP
#define STORAGE_HPP
#include <vector>
#include "../common/cbasetypes.hpp"
#include "../common/mmo.hpp"
struct s_storage;
struct item;
struct map_session_data;
extern struct s_stor... |
// Copyright 2020 The Fuchsia 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 <fcntl.h>
#include <fidl/fuchsia.device/cpp/wire.h>
#include <fidl/fuchsia.gpu.magma/cpp/wire.h>
#include <lib/fdio/directory.h>
#include <lib/zx/... |
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/DebugInfo.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/Transforms/Utils/ModuleUtils.h"
#include "ProfilingInstrumentationPass.h"
using namespace cgprofiler;
namespace cgprofiler {
char ProfilingIn... |
//===----------------------------------------------------------------------===//
//
// 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 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 Joyent, Inc. and other Node contributors.
//
// 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, modi... |
// Copyright (c) 2009-2014 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 "core_io.h"
#include "primitives/block.h"
#include "primitives/transaction.h"
#include "script/script.h"
#include "... |
/*
* 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 ... |
// Boost string_algo library regex_find_format.hpp header file ---------------------------//
// Copyright Pavol Droba 2002-2003.
//
// 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)
// See http://... |
/*
* Copyright 2019 Google, LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrShaderCaps.h"
#include "src/sksl/SkSLCompiler.h"
#include "fuzz/Fuzz.h"
bool FuzzSKSL2SPIRV(sk_sp<SkData> bytes) {
SkSL::Compiler compiler;
SkSL:... |
// 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 <cmath>
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#inc... |
#include "iostream"
#include "base/Vector3D.h"
#include "base/SOA3D.h"
#include "base/Global.h"
#include <string>
#include <vector>
#include <ctime>
#include <cmath> //for sqrt
#include <stdlib.h>
#include <Vc/Vc>
#include "backend/vc/Backend.h"
#include "backend/vcfloat/Backend.h"
#include "base/Vector.h"
#include "... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2017 IDLab-imec
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distri... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/frame/default_frame_header.h"
#include <memory>
#include "ash/frame/caption_buttons/frame_back_button.h"
#include "ash/frame/caption_butto... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdint.h>
#include <vector>
#include "base/android/android_hardware_buffer_compat.h"
#include "base/memory/scoped_refptr.h"
#include "testing/... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
//===-- ObjDumper.cpp - Base dumper class -----------------------*- 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
//
//===---------------------------... |
// Copyright (c) 2009-2012 Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <iostream>
#include <fstream>
#include "init.h" // for pwalletMain
#include "bitcoinrpc.h"
#include "ui_interface.h"
#in... |
#include <ast/variable.hpp>
#include <ast/context.hpp>
#include <ast/exception.hpp>
#include <ast/node_visitor.hpp>
using namespace ast;
Variable::Variable(string name, Type::Pointer type)
: Node(NodeKind::Variable), mName(std::move(name)), mType(std::move(type))
{
assert(mType != nullptr);
}
// Only ca... |
#include "../../include/editor/CSelectionManager.h"
#include "../../include/editor/IEditorsManager.h"
#include "../../include/ecs/IWorld.h"
#include "../../include/ecs/CObjectsSelectionSystem.h"
#include "../../include/ecs/CEntity.h"
#include "../../include/editor/ecs/EditorComponents.h"
#include "../../include/utils/C... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "UserTypes.h"
#include <AzCore/std/functional_basic.h>
#include <AzCore/std/tuple.h>
nam... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#ifndef NGRAPH_OP
# warning "NGRAPH_OP not defined"
# define NGRAPH_OP(x, y)
#endif
NGRAPH_OP(Abs, op::v0)
NGRAPH_OP(BatchNormInference, op::v0)
NGRAPH_OP(Ceiling, op::v0)
NGRAPH_OP(Convert, op::v0)
NGRAPH_OP(CTCGreedyDecoder... |
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
template <typename EdgeOperation, typename VertexPreprocessOperation,
typename VertexPostprocessOperation>
void __global__ csr_sparse_advance_kernel(long long *_vertex_pointers,
... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017 The Agouti developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http:/... |
#include <SSVUtils/Core/Core.hpp>
#include <SSVUtils/Union/Union.hpp>
namespace Exp
{
using namespace ssvu;
namespace Impl
{
enum class ForAction
{
Continue,
Break
};
template <typename T>
struct TypeWrapper
{
using Type ... |
#ifndef MODEL_HEADER_HPP
#define MODEL_HEADER_HPP
float g_bones_tutorial[] =
{
0.000000f, 0.000000f, -1820.388916f, 0.707107f, 0.707107f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 1820.388916f, 1.000000f, 0.000000f, 0.000000f, 0.000000f,
0.000000f, 0.000000f, 5461.166504f, 1.000000f, 0.000000f, 0.000000f, 0.00... |
/*!
@file TestComponent.cpp
@author Rittikorn Tangtrongchit
@brief Contain the Implementation of TestComponent
*/
#include "Core/EC/Components/TestComponent.hpp"
namespace NightEngine
{
namespace EC
{
namespace Components
{
INIT_REFLECTION_AND_FACTORY(Controller, 10, 5)
INIT_REFLECTION_... |
// Copyright 2020 Tier IV, 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 i... |
/*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... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#if V8_TARGET_ARCH_ARM
#include "src/api/api-arguments.h"
#include "src/codegen/code-factory.h"
// For interpreter_entry_return_pc_offset. TODO(jkummer... |
/***************************************************************************
# Copyright (c) 2020, 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 of... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__char_listen_socket_fopen_54e.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-54e.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: listen_socket Read data using a lis... |
// Copyright Nikolay Mladenov 2007.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_PYTHON_OBJECT_PYTHON_TYPE_H
#define BOOST_PYTHON_OBJECT_PYTHON_TYPE_H
#include <boost/python/converter/registered... |
/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd. 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... |
// Copyright 2010, Shuo Chen. All rights reserved.
// http://code.google.com/p/muduo/
//
// Use of this source code is governed by a BSD-style license
// that can be found in the License file.
// Author: Shuo Chen (chenshuo at chenshuo dot com)
#include "muduo/net/TcpServer.h"
#include "muduo/base/Logging.h"
#inclu... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
#pragma once
#include "ECS/ECS.hpp"
#include "Game/BaseState.hpp"
#include "Engine/Physics/PhysicsEngine.hpp"
#include "Game/PrefabEditor/Components/PrefabGUI.hpp"
class PrefabEditor : public BaseState {
public:
PrefabEditor();
~PrefabEditor() override = default;
void Init() override;
void UnInit() o... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
#include "kucoin.h"
#include <openssl/hmac.h>
#include <sstream>
#include <random>
#include <thread>
#include <imtjson/object.h>
#include <imtjson/parser.h>
#include <imtjson/serializer.h>
#include <imtjson/binjson.tcc>
#include <imtjson/operations.h>
#include <shared/toString.h>
#include <simpleServer/urlencode.h>
#... |
/***************************************************************************
bbcodegenerator.cpp - description
-------------------
copyright : (C) 2011 by Andre Simon
email : andre.simon1@gmx.de
**************************************... |
// Copyright (c) 2011 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/public/browser/native_web_keyboard_event.h"
#include <gdk/gdk.h>
#include "third_party/WebKit/public/web/gtk/WebInputEventFactory.... |
// https://codeforces.com/contest/1037/problem/D
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
typedef unordered_set<int> si;
typedef vector<si> vsi;
int main() {
int n;
cin >> n;
vsi g(n);
for (int i = 0; i < n - 1; i++) {
int a, b;
cin >> a >> b;
a--; b--;
g[a].inser... |
// Copyright 2012 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/heap/heap.h"
#include <unordered_map>
#include <unordered_set>
#include "src/accessors.h"
#include "src/api-inl.h"
#include "src/assembl... |
#include "tesseract/lstm/recodebeam.h"
#include "tesseract/ccstruct/matrix.h"
#include "tesseract/ccstruct/pageres.h"
#include "tesseract/ccstruct/ratngs.h"
#include "tesseract/ccutil/genericvector.h"
#include "tesseract/ccutil/helpers.h"
#include "tesseract/ccutil/unicharcompress.h"
#include "tesseract/training/normst... |
#include "stdafx.h"
#include "IDirect3DDevice9.h"
#include "IDirect3DQuery9.h"
#include "IDirect3DSurface9.h"
#include "IDirect3DIndexBuffer9.h"
#include "IDirect3DVertexBuffer9.h"
#include "IDirect3DTexture9.h"
#include "IDirect3DVertexDeclaration9.h"
#include "IDirect3DVertexShader9.h"
#include "IDirect3DPixelShader... |
#include "tracerestore.h"
#include <iostream>
void RestoreTrace::setupOptions()
{
LogScannerCommand::setupOptions();
}
void RestoreTrace::run()
{
RestoreTraceHandler h;
BaseScanner* s = getScanner();
s->add_handler(&h);
s->fork();
s->join();
delete s;
}
RestoreTraceHandler::RestoreTraceH... |
// Copyright (c) 2010 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 "base/metrics/stats_counters.h"
namespace base {
StatsCounter::StatsCounter(const std::string& name)
: counter_id_(-1) {
// We prepen... |
#include "R2.h"
int main() {
try {
CBMP32x p(1000,1000,255,255,255);
Paint b(p,-30,30,-30,30);
int n = 0,n1 = 0,n2 = 0;
double *m,*m1,*m2, r; FILE *f;
f = fopen("data.txt","r");
while(fscanf(f,"%lf",&r) != EOF) n++;
rewind(f);
m = new double[n];
for(int i = 0; fscanf(f,"%lf",&r... |
#include "IDWriteTextLayout.h"
#include "IDWriteFactory.h"
#include "IDWriteFontCollection.h"
#include "IDWriteTypography.h"
#include "IDWriteInlineObject.h"
namespace D2DNet
{
namespace DWriteNet
{
IDWriteTextLayout::IDWriteTextLayout(
DWriteNet::IDWriteFactory ^factory,
System... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <map>
using namespace std;
const int MAX_N = 1e5 + 5;
int a[MAX_N];
map<long long, int> cnt;
int main() {
int n;
scanf("%d", &n);
long long p_sum = 0;
int ans = 0;
for (int i = 0; i < n; ++i) {
int t;
scanf("%d", &t);
p_sum +=... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/* Copyright (c) 2006-2014, Universities Space Research Association (USRA).
* 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
... |
//
// Boost.Process
// ~~~~~~~~~~~~~
//
// Copyright (c) 2006, 2007 Julio M. Merino Vidal
// Copyright (c) 2008, 2009 Boris Schaeling
//
// 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)
//
/**
* \file bo... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/Configuration... |
/**
@file
@author from CrypoNote (see copyright below; Andrey N. Sabelnikov)
@monero rfree
@brief the connection templated-class for one peer connection
*/
// Copyright (c) 2006-2013, Andrey N. Sabelnikov, www.sabelnikov.net
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or witho... |
//== BasicObjCFoundationChecks.cpp - Simple Apple-Foundation checks -*- C++ -*--
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "db/builder.h"
#include "db/filename.h"
#include "db/dbformat.h"
#include "db/table_cache.h"
... |
//===== Copyright (c) 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: Implements all the functions exported by the GameUI dll
//
// $NoKeywords: $
//===========================================================================//
#if defined( _WIN32 ) && !defined( _X360 )
#include <windows.h>
#... |
#include "Minion.h"
#include "de/hackcraft/lang/Runnable.h"
#include "de/hackcraft/log/Logger.h"
#include "de/hackcraft/util/concurrent/Semaphore.h"
Logger* Minion::logger = Logger::getLogger("de.hackcraft.util.concurrent.Minion");
Minion::Minion(Semaphore* jobMutex, std::queue<Runnable*>* jobQueue) {
t... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/bookmark_app_helper.h"
#include <cctype>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/e... |
#include <iostream>
#include <chrono>
using namespace std;
class Timer
{
public:
Timer()
: start_(std::chrono::high_resolution_clock::now())
{
}
~Timer()
{
const auto finish = std::chrono::high_resolution_clock::now();
std::cout << std::chrono::duration_cast<std::chrono::microseconds... |
#include <algorithm>
#include <cassert>
#include "Crypto.h"
#include "Log.h"
#include "FS.h"
#include "Timestamp.h"
#include "NetDb.h"
#include "Destination.h"
#include "util.h"
namespace i2p
{
namespace client
{
LeaseSetDestination::LeaseSetDestination (bool isPublic, const std::map<std::string, std::string> * param... |
// 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<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<math.h>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d %d",&x,&y);
#define sd3(x,y,z) scanf("%d %d %d",&x,&y,&z);
#define sull(x) scanf("%ull",&x)... |
//
// Created by florian on 22.10.15.
//
#ifndef EPOCHE_CPP
#define EPOCHE_CPP
#include <assert.h>
#include <iostream>
#include "Epoche.h"
using namespace ART;
inline DeletionList::~DeletionList() {
assert(deletitionListCount == 0 && headDeletionList == nullptr);
LabelDelete *cur = nullptr, *next = freeLabel... |
/*
* Copyright 2014-2021 Real Logic Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... |
#pragma once
#include "natalie_parser/node/node.hpp"
#include "natalie_parser/node/node_with_args.hpp"
#include "tm/hashmap.hpp"
#include "tm/string.hpp"
namespace NatalieParser {
using namespace TM;
class SplatNode : public Node {
public:
SplatNode(const Token &token)
: Node { token } { }
SplatNod... |
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int getMedian(vector<int> a, int start, int end) {
int median = 0;
int size = end - start + 1;
if (size % 2 == 0) {
median = (a[start+size/2-1] + a[start+size/2])/2;
}
else {
... |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
/*
* Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
*
* 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 requi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.