text stringlengths 5 1.04M |
|---|
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtai... |
/*
* Copyright (c) 2015 - 2022, Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "config.h"
#include "RawMSRSignal.hpp"
#include "geopm_field.h"
#include "geopm_debug.hpp"
#include "MSRIO.hpp"
#include "geopm/Exception.hpp"
#include "geopm/Helper.hpp"
namespace geopm
{
RawMSRSignal::RawM... |
/* DO NOT EDIT THIS FILE - it is machine generated */
/* Copyright 2017-18, Emmanouil Antonios Platanios. 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
*
* h... |
/*
165. Compare Version Numbers
Compare two version numbers version1 and version2.
If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0.
You may assume that the version strings are non-empty and contain only digits and the . character.
The . character does not represent a decimal point... |
//
// Core/URI.h
// This file is part of the "Dream" project, and is released under the MIT license.
//
// Created by Samuel Williams on 22/10/07.
// Copyright (c) 2007 Samuel Williams. All rights reserved.
//
//
#ifndef _DREAM_CORE_URI_H
#define _DREAM_CORE_URI_H
#include "Strings.hpp"
#include "Path.hpp"
#incl... |
/#Name: Anonta Haque #Problm:
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <cctype>
#include <cstdio>
#include <vector>
#include <string>
#include <cmath>
#include <ctime>
#include <queue>
#include <stack>
#include <set... |
/**
* \file dnn/test/cuda/relayout_format.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* ... |
#include<iostream>
#include<cstdlib>
using namespace std;
long long sqr(long long a)
{
return a*a;
}
long long binPow(long long a, long long p, long long mod)
{
if(p==0)
return 1;
if(p&1)
return (binPow(a,p-1,mod)*a)%mod;
return sqr(binPow(a,p/2,mod))%mod;
}
int main()
{
i... |
#include <map>
#include "ur_client_library/comm/Server.h"
#include "ur_client_library/comm/SocketListener.h"
#include "ur_client_library/comm/SocketConnection.h"
namespace urcl::comm
{
class ServerMessageProcessor : public MessageProcessor
{
public:
ServerMessageProcessor(ServerImpl* pServerImpl) : m_pServerImpl(pS... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/flags_ui.h"
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/utf_string_conv... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 us... |
/***************************************************************************
* Copyright (C) 2008 by Alexey Balakin *
* mathgl.abalakin@gmail.com *
* *
* This pr... |
//===--- GenType.cpp - Swift IR Generation For Types ----------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
//----------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//--------------------------------------------------------------... |
#define CATCH_CONFIG_MAIN
#include <random>
#include <catch2/catch.hpp>
#include "delaunay.h"
TEST_CASE( "Delaunay triangulation should be able to triangulate 3 points as double", "[DelaunayTest]" ) {
std::vector<Vector2> points;
points.push_back(Vector2{0.0, 0.0});
points.push_back(Vector2{1.0, 0.0});
... |
#include "FEAdaptor.h"
#include "FEDataStructures.h"
#include <iostream>
#include <vtkCPDataDescription.h>
#include <vtkCPInputDataDescription.h>
#include <vtkCPProcessor.h>
#include <vtkCPPythonScriptPipeline.h>
#include <vtkCellData.h>
#include <vtkCellType.h>
#include <vtkDoubleArray.h>
#include <vtkFloatArray.h>
#... |
#include "facedetector.h"
// cascade: "./haarcascade_frontalface_alt2.xml"
int main()
{
//std::cout << "main";
std::string cascade_path = "../src/haarcascade_frontalface_alt2.xml";
std::string img_path = "../images/faces.jpg";
FaceDetector detector = FaceDetector(img_path, cascade_path);
detector.det... |
// Copyright (c) 2013-2016 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 "consensus/tx_verify.h"
#include "consensus/validation.h"
#include "data/sighash.json.h"
#include "hash.h"
#... |
/******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
#include "sct_assert.h"
#include ... |
// <Snippet1>
#using <System.Xml.dll>
using namespace System;
using namespace System::IO;
using namespace System::Xml;
int main()
{
XmlDocument^ doc = gcnew XmlDocument;
doc->LoadXml( "<book ISBN='1-861001-57-5'>"
"<title>Pride And Prejudice</title>"
"<price>19.95</price>"
"</book>" );
... |
#include "EditorParticleSystems.hpp"
#include "Particle/PaticleEmitter/ParticleEmitterSPH.hpp"
#include "Particle/ParticleModule/ModuleSPH.hpp"
#include "Particle/ParticleModule/ParticleSpawnModule.hpp"
#include <Gui/Gui.hpp>
#include <Gui/GuiSettings.hpp>
#include <Particle/ParticleSystemManager.hpp>
#include <iost... |
/*******************************************************************************
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
/**
* @brief Contains algorithmic tests for DML_OP_BATCH operation
* @date 4/17/... |
#include "stdafx.h"
#include "DefaultReader.h"
#include "cJSON.h"
#include "base64.h"
CDefaultReader::CDefaultReader()
{
}
CDefaultReader::~CDefaultReader()
{
}
void CDefaultReader::Parse(LPTSTR ip)
{
int ret = Receive(m_buf + m_length, SERVER_SOCKET_BUFFER_LENGTH - m_length);
if (ret > 0)
{
cJSON *root = cJSON... |
//==================================================================================================
/*!
@file
@copyright 2012-2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//======================... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
* Copyright (c) 2018,2019,2020,2021, by the ... |
//
// main.cpp
// VectorDemo
//
// Created by Hanzhou Shi on 5/26/15.
//
//
#include <iostream>
#include "Conductor.h"
using namespace GPUTest::VectorDemo;
int main(int argc, const char * argv[]) {
// hard-coded initialization of two input array.
VI op1;
VI op2;
for (auto i = 0; i != (1 << 23); ... |
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <boost/graph/graphviz.hpp>
#include <boost/graph/adjacency_list.hpp>
struct VerticeProps {
std::string name;
};
struct EdgeProps {
std::string name;
};
typedef boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS,
... |
//===----------------------------------------------------------------------===//
// DuckDB
//
// duckdb/execution/operator/scan/physical_dummy_scan.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/execution/physical_operat... |
#include <survive.h>
#include <stdio.h>
#include <stdlib.h>
extern "C" {
#include "linmath.h"
}
#include <string.h>
#include <stdint.h>
#include <math.h>
//#include <dclapack.h>
#include "opencv_pose_calc.h"
// QUESTION: what do I still need from this?
typedef struct
{
#define OLD_ANGLES_BUFF_LEN 3
FLT oldAngles[SENS... |
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... |
#include "selfdrive/camerad/cameras/camera_qcom2.h"
#include <fcntl.h>
#include <poll.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <unistd.h>
#include <atomic>
#include <cassert>
#include <cerrno>
#include <cmath>
#include <cstdio>
#include <cstring>
#include "media/cam_defs.h"
#include "media/cam_isp.h"... |
#include "templates.h"
#include "gtest/gtest.h"
#include <sstream>
using namespace std;
TEST(BigInt, plus1) {
const BigInt bi1 = "112233445566778899";
const BigInt bi2 = "9988776655443322";
const BigInt bi = bi1 + bi2;
stringstream ss;
ss << bi;
string ans;
ss >> ans;
ASSERT_EQ("122222222222222221", ans);
}
... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "pch.h"
#include <dplyr/main.h>
#include <dplyr/registration.h>
#include <dplyr/symbols.h>
using namespace Rcpp;
SEXP get_cache() {
static SEXP cache = 0;
if (!cache) {
SEXP vec = PROTECT(Rf_allocVector(VECSXP, 2));
SEXP date_classes = PROTECT(Rf_mkString("Date"));
SET_VECTOR_ELT(vec, 0, dat... |
//===-- tsan_platform_mac.cc ----------------------------------------------===//
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSan... |
#ifndef SKYLARK_HILBERT_OPTIONS_HPP
#define SKYLARK_HILBERT_OPTIONS_HPP
#ifndef SKYLARK_AVOID_BOOST_PO
#include <boost/program_options.hpp>
namespace po = boost::program_options;
#else
#include <boost/lexical_cast.hpp>
#endif
#define DEFAULT_LAMBDA 0.0
#define DEFAULT_RHO 1.0
#define DEFAULT_THREADS 1
#define DEF... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "policy/fees.h"
#include "txmempool.h"
#include "uint256.h"
#include "util.h"
#include "test/test_growth.h"
#inclu... |
/*
* If not stated otherwise in this file or this component's license file the
* following copyright and licenses apply:
*
* Copyright 2020 RDK Management
*
* 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 cop... |
/* Copyright 2019 Google LLC. 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 agree... |
//--------------------------------------------------------------------------------------------------
// Copyright (c) 2018 Marcus Geelnard
//
// This software is provided 'as-is', without any express or implied warranty. In no event will the
// authors be held liable for any damages arising from the use of this softwar... |
//******************************************************************************
//
// Copyright (c) Microsoft. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARR... |
/* Sirikata
* CBRLocationServiceCache.cpp
*
* Copyright (c) 2009, Ewen Cheslack-Postava
* 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 r... |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the "License");
// you may... |
#include <list>
#include <memory>
#include <string>
#include <vector>
#include "envoy/common/platform.h"
#include "envoy/config/core/v3/address.pb.h"
#include "envoy/event/dispatcher.h"
#include "envoy/network/address.h"
#include "envoy/network/dns.h"
#include "source/common/buffer/buffer_impl.h"
#include "source/com... |
// This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
#include "apm_partition_table.h"
#include "kaitai/exceptions.h"
apm_partition_table_t::apm_partition_table_t(kaitai::kstream* p__io, kaitai::kstruct* p__parent, apm_partition_table_t* p__root) : kaitai::kstruct(p__io) ... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// 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 "script/sign.h"
#include "key.h"
#include "keystore.h"
#include "policy... |
#include <arbor/schedule.hpp>
#include <arbor/common_types.hpp>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include "conversion.hpp"
#include "schedule.hpp"
#include "strprintf.hpp"
namespace pyarb {
std::ostream& operator<<(std::ostream& o, const regular_schedule_shim& x) {
return o << "<arbor.re... |
#pragma once
#include <clout/schema/schema_types/flat_map.hpp>
#include <clout/schema/schema_types/flat_set.hpp>
#include <clout/schema/schema_types/static_variant.hpp>
#include <clout/schema/schema_types/optional.hpp>
#include <clout/schema/schema_types/pair.hpp>
#include <clout/schema/schema_types/vector.hpp>
|
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2016, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following conditions ... |
/*
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Copyright 2010, Rene Gollent, rene@gollent.com.
* Distributed under the terms of the MIT License.
*/
#include <Function.h>
#include <FileSourceCode.h>
#include <FunctionID.h>
Function::Function()
:
fSourceCode(NULL),
fSourceCodeState(FUNCTION_SOURCE... |
//=================================================================================================
/*!
// \file src/mathtest/svecdvecsub/VCaV4a.cpp
// \brief Source file for the VCaV4a sparse vector/dense vector subtraction math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// This fi... |
#include <iostream>
#include <iomanip>
#include <vector>
using namespace std;
using ll = int64_t;
using ld = double;
// P[i][k] = probability of getting K with I dice.
// P[0][0] = 1.0.
// P[0][x] = 0.0.
// P[i][k] = \sum_{d-1}^6 P[i-1][k-d] / 6.0
int main() {
ll n, a, b;
cin >> n >> a >> b;
vector<vector<ld>>... |
// Copyright 2020 The Defold Foundation
// Licensed under the Defold License version 1.0 (the "License"); you may not use
// this file except in compliance with the License.
//
// You may obtain a copy of the License, together with FAQs at
// https://www.defold.com/license
//
// Unless required by applicable law or a... |
/**************************************************************
*
* 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 2004-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int n,x=1,y=1,fx=1,fy=-1;
int main()
{
ios::sync_with_stdio(0);
cin>>n;
for(int i=1;i<n;i++){
x+=fx;y+=fy;
if(x==0){x=1;fx=-fx;fy=-fy;}
if(y==0){y=1;fx=-fx;fy=-fy;}
}
cout<<y<<"/"<<x;
return 0;
}
|
//
// Created by Jerry on 19/6/2020.
//
#include "D3DIndexBuffer.h"
#include "Cuboid/Platform/DirectX/Renderer/D3DGraphicsContext.h"
#include "InitializeD3Devices.h"
namespace Cuboid
{
void D3DIndexBuffer::Bind() const
{
GraphicsEngine()->GetContext()->IASetIndexBuffer(m_pIndexBuffer, DXGI_FORMAT_R... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: IM.BaseDefine.proto
#include "IM.BaseDefine.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.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... |
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, World!";
return 0;
}
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "sendproxy.h"
#include <vespa/log/log.h>
LOG_SETUP(".sendproxy");
namespace mbus {
SendProxy::SendProxy(MessageBus &mbus, INetwork &net, Resender *resender) :
_mbus(mbus),
_net(net)... |
// PropertiesDialog.cpp : implementation file
//
#include "stdafx.h"
#include "ANTS.h"
#include "PropertiesDialog.h"
#include "afxdialogex.h"
// CPropertiesDialog dialog
IMPLEMENT_DYNAMIC(CPropertiesDialog, CDialogEx)
CPropertiesDialog::CPropertiesDialog(CWnd* pParent /*=NULL*/)
: CDialogEx(CPropert... |
#include "uop_msb.h"
#include <chrono>
#include <cstdint>
using namespace uop_msb;
using namespace chrono;
//Output
DigitalOut redLED(TRAF_RED1_PIN);
DigitalOut yellowLED(TRAF_YEL1_PIN);
DigitalOut greenLED(TRAF_GRN1_PIN);
//Analogue Inputs
AnalogIn pot(AN_POT_PIN);
Buzzer buzz;
int main()
{
while (true) {
... |
// Copyright 2017, Dawid Kurek, <dawikur@gmail.com>
#ifndef INCLUDE_LEL_HPP_
#define INCLUDE_LEL_HPP_
#include <functional>
#include "lel/lambda.hpp"
#include "lel/operator/binary.hpp"
#include "lel/operator/increment_decrement.hpp"
#include "lel/operator/unary.hpp"
#include "lel/rebind.hpp"
#include "lel/reference.... |
//============================================================================
// Name : Code.cpp
// Author : Yahya Milani
// Version :
// Copyright : Use as much as you like with author's name for noncommercial cases ONLY
// Description : C++, Ansi-style
//============================================... |
#include "compat.h"
#include "ctxin.h"
#include "ctxout.h"
#include "genesis.h"
#include "cdnsseeddata.h"
#include "caddress.h"
#include "ctransaction.h"
#include "cregtestparams.h"
CRegTestParams::CRegTestParams()
{
pchMessageStart[0] = 0x11;
pchMessageStart[1] = 0xbb;
pchMessageStart[2] = 0x0a;
... |
#include "main.h"
#include "internal.h"
TEST_CASE("TextLayout") {
auto nc_ = testing_notcurses();
if(!nc_){
return;
}
ncplane* n_ = notcurses_stdplane(nc_);
REQUIRE(n_);
const char str[] = "this is going to be broken up";
SUBCASE("LayoutLeft") {
struct ncplane_options nopts = {
.y = 0,
... |
#include "Commands2/ParticleForceRemoveCommand.h"
#include "Commands2/RECommandIDs.h"
ParticleForceRemoveCommand::ParticleForceRemoveCommand(DAVA::ParticleForce* _force, DAVA::ParticleLayer* _layer)
: RECommand(CMDID_PARTICLE_LAYER_REMOVE, "Remove particle force")
, force(_force)
, layer(_layer)
{
... |
/*
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/adjust_if.hpp>
#include <boost/hana/at_key.hpp>
#include <boost/hana/core/convert.hpp>
#include <boost/hana/core/is_a.hpp>
#... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoTamedInventoryComponent_BP_Bigfoot_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//-------------------------------------------... |
/**
* @file OrbSim.cc
* @brief This file contains functions to parse an init file and start the attitide calculation.
* @author Giuseppe Romeo
* @date Created: Nov 15, 2005
*
* $Header: /nfs/slac/g/glast/ground/cvs/orbitSim/src/OrbSim.cxx,v 1.9 2009/12/16 23:20:39 elwinter Exp $
*/
// These two libraries are ... |
/*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... |
// Copyright 2016 Open Source Robotics Foundation, 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 appli... |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
* Copyright (c) 2016 The Android Open Source Project
*
* Licensed under the Apache Lic... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... |
/*
Gordon's Text-Utilities Library
Copyright (C) 2009-2013 Assaf Gordon (assafgordon@gmail.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <iostream>
#include <string>
#include <exception>
using namespace std;
const unsigned int SIGN_BIT = 0x1 << 31;
int atoi_i(const ... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <functional>
#include "DexInstruction.h"
#include "DexUtil.h"
#include "IRCode.h"
#include "R... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
// 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... |
//
// cpp14/can_require_concept_free.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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 2017 Food Tiny 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:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions an... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_C4_FPV_AnimBP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//--------------------------------------------------------------------... |
#include "machinestates.h"
#include <iostream>
#include <limits>
#include <random>
// random number stuff
const int min = 2;
const int max = 12;
//the random device that will seed the generator
std::random_device seeder;
//then make a mersenne twister engine
static std::mt19937 engine(seeder());
//then the easy part..... |
#include "Sound.h"
#include "SoundIO.h"
#include "SoundUtils.h"
#include "TestConfig.h"
#include "TestUtils.h"
#include <QBuffer>
#include <QMetaProperty>
#include <QTemporaryDir>
#include <QUrl>
#include <catch2/catch.hpp>
static bool fuzzyEq(const Sound& s1, const Sound& s2) {
QMetaObject mo = BaseSound::stati... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/component_updater/pnacl_component_installer.h"
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#... |
#include "error.hpp"
#include <cstring>
namespace grower::utils {
std::string error_to_string(int error_number) {
char error_buffer[1024]{};
#if !_GNU_SOURCE
strerror_r(error_number, error_buffer, sizeof error_buffer);
return error_buffer;
#else
return strerror_r(error_number, erro... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
// -*- C++ -*-
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_macros.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE int
ACE_OS::getrlimit (int resource, struct rlimit *rl)
{
ACE_OS_TRACE ("ACE_OS::getrlimit");
#if defined (ACE_LACKS_RLIMIT)
ACE_UNUSED_ARG (resource);
ACE_UNUSED_ARG (rl);
... |
/*
Copyright 2011 Larry Gritz and the other authors and contributors.
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
noti... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2020
// MIT License
#pragma once
#include <ArduinoJson/Configuration.hpp>
#if ARDUINOJSON_DEBUG
#include <assert.h>
#define ARDUINOJSON_ASSERT(X) assert(X)
#else
#define ARDUINOJSON_ASSERT(X) ((void)0)
#endif
|
//===- LinalgToLLVM.cpp - conversion from Linalg to LLVM dialect ----------===//
//
// Copyright 2019 The MLIR 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.... |
/*******************************************************************************
*
*Copyright: f
*
*Author: f
*
*File name: csf_minimp4_file.hpp
*
*Version: 1.0
*
*Date: 11-12月-2019 18:37:30
*
*Description: Class(csf_minimp4_file)
*
*Others:
*
*History:
*
***************************************************************... |
#include "renderer/context/dynamic_functions.h"
#include "renderer/context/device.h"
#include <string>
namespace
{
template <class Func>
Func GetProcedure(const char *const name)
{
const auto func = reinterpret_cast<Func>(vkGetDeviceProcAddr(estun::DeviceLocator::GetLogicalDevice(), name));
... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.