text stringlengths 7 961k |
|---|
/**
* Copyright (C) 2016 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
// Copyright (c) 2007, 2014 Peter Dimov
// Copyright (c) Beman Dawes 2011
// Copyright (c) 2015 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Us... |
//===- VectorMultiDimReductionTransforms.cpp - Multi-Reduction Transforms -===//
//
/// 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
//
//===------------------------... |
/*
SDL_FontCache: A C++ font cache for SDL and SDL_ttf
Original by Jonathan Dearborn
See SDL_FontCache.h for license info.
*/
#include "SDL_fontcache.h"
#include <stdio.h>
#include <stdlib.h>
std::string FC_GetVersion() {
return "@@VERSION@@";
}
// Visual C does not support static inline
#ifndef static_inline
#i... |
#ifndef INCLUDE_SENSORS_TELEMETRY_UbxNavRateCfg_MESSAGE_HPP_
#define INCLUDE_SENSORS_TELEMETRY_UbxNavRateCfg_MESSAGE_HPP_
#include "ubxcfgmessage.hpp"
class UbxNavRateCfg : public UbxCfgMessage
{
public:
UbxNavRateCfg();
void set_meas_rate_ms(uint16_t rate);
void set_rate_nav(uint16_t rate);
void set_... |
#include<iostream>
#include<vector>
#include<algorithm>
#include<iterator>
#include<stack>
using namespace std;
struct Edge
{
int from;
int to;
Edge(int from, int to)
{
this->from = from;
this->to = to;
}
};
void BreadthFirstSearch(vector < vector<int> > adjList, int start)
{
... |
//
// high_resolution_timer.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 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)
//
#ifndef BOOST_ASI... |
#include "vector.h"
#include "vector.h"
#include "vector.h"
#include "vector.h"
#include<iostream>
/*
Allocated dynamic memory
*/
template<typename T>
Vector<T>::Vector()
: size{ 0 }, nums{ nullptr }, space{ 0 }
{
}
/*
Allocated dynamic memory for an array of sz(size) elements
Initialized all of the array elements t... |
/* -------------------------------------------------------------------------- *
* MMB (MacroMoleculeBuilder) *
* -------------------------------------------------------------------------- *
* *
... |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... |
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2005-2009. 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://www.boost.org/libs/interpr... |
#include <iostream>
//
//int main() {
// std::cout << "Hello, World!" << std::endl;
// return 0;
//} |
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
extern "C" {
#include <ovsdb_wrapper.h>
};
#include <ovs_tor_agent/tor_agent_init.h>
#include <ovsdb_client.h>
#include <ovsdb_route_peer.h>
#include <ovsdb_client_connection_state.h>
#include <ha_stale_dev_vn.h>
#include <ha_stale_l2_route.h>
#... |
#include "mainwindow.h"
#include <cmath>
#include <QDebug>
#include <QTimer>
#include <QGraphicsScene>
#include "Logging/log.h"
#include "Logging/LogParams.h"
#include "Plots/pathplotdata.h"
#include "Plots/pidplotdata.h"
#include "Plots/LaserPlotData.h"
#include "ui_mainwindow.h"
#include "Logging/log.h"
#include... |
#include "stdafx.h"
#include "create_role_logic.h"
CreateRoleLogic::CreateRoleLogic()
{
m_hLoginDlg = NULL;
}
void CreateRoleLogic::SetCreateRoleDlg( HWND hWnd )
{
m_hLoginDlg = hWnd;
}
void CreateRoleLogic::SendCreateRole(const CString& strNickname, const uint8& gender, const uint8& belief, const uint8& cha... |
// Generated from /POI/java/org/apache/poi/ss/formula/ptg/MultiplyPtg.java
#include <org/apache/poi/ss/formula/ptg/MultiplyPtg.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/CharSequence.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/NullPointerE... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/clouddirectory/model/ListDevelopmentSchemaArnsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.... |
#include <random>
#include <algorithm>
#include <bitset>
#include <climits>
#include "sampling/ltl_sampling_simple.h"
double LTL_SamplingSimple::get_dist(std::vector<double> states_1, std::vector<double> states_2) {
double dist = sqrt(pow(states_1[0] - states_2[0], 2) + pow(states_1[1] - states_2[1], 2));
retu... |
// Copyright (c) 2011-2013 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 "optionsdialog.h"
#include "ui_optionsdialog.h"
#include "bitcoinunits.h"
#include "monitoreddatamapper.h"
#include ... |
// Copyright 2015 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... |
// Copyright (c) 2015-2019 The Nobilitas Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <vector>
#include <prevector.h>
#include <reverse_iterator.h>
#include <serialize.h>
#include <streams.h>
#inclu... |
// Copyright (c) 2012-2015 The 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/merkle.h"
#include "merkleblock.h"
#include "serialize.h"
#include "streams.h"
#include "uint256.h"
#... |
#ifdef PEGASUS_OS_SOLARIS
#ifndef __UNIX_CAHASPUBLICCERTIFICATE_PRIVATE_H
#define __UNIX_CAHASPUBLICCERTIFICATE_PRIVATE_H
#endif
#endif |
#include <iris/iris.h>
#include <cassert>
using namespace iris;
template<typename T>
void test_vmla_lane(T(*func)(T,T,T,int32_t)){
T v1, v2, v3;
for(size_t j = 0; j < T::length; j++) {
for(size_t i = 0; i < T::length; i++) {
v1.template at<typename T::elementType>(i) = 2*i;
v2.... |
//===-- FormatTests.cpp - Automatic code formatting tests -----------------===//
//
// 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
//
//===---------------------------... |
#define BOOST_TEST_MODULE "test_serialize_file"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <toml.hpp>
#include <deque>
#include <map>
#include <iostream>
#include <fstream>
template<typename Co... |
#include "../include/dataloader.h"
#include "../include/graph.h"
#include "../include/vertex_set.h"
#include "../include/common.h"
#include <cstdlib>
#include <cstring>
#include <algorithm>
// 加载图数据
bool DataLoader::load_data(Graph* &g, DataType type, const char* path, int oriented_type) {
if(type == Patents || ty... |
#include "pch.h"
#include "VssComponent.h"
namespace Alphaleonis { namespace Win32 { namespace Vss
{
VssComponent^ VssComponent::Adopt(::IVssComponent *vssWriterComponents)
{
try
{
return gcnew VssComponent(vssWriterComponents);
}
catch (...)
{
vssWriterComponent... |
#include "BBE/Mouse.h"
#include "BBE/Vector2.h"
#include "BBE/Exceptions.h"
bool bbe::Mouse::isButtonDown(bbe::MouseButton button)
{
if (!isMouseButtonValid(button))
{
throw NoSuchMouseButtonException();
}
return m_pButtonsThisFrame[(int)button];
}
bool bbe::Mouse::isButtonUp(bbe::MouseButton button)
{
if (!is... |
/**
* 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 (c) 2008-2015, NVIDIA CORPORATION. All rights reserved.
*
* NVIDIA CORPORATION and its licensors retain all intellectual property
* and proprietary rights in and to this software, related documentation
* and any modifications thereto. Any use, reproduction, disclosure or
* distribution of this so... |
/*!
* Copyright (c) 2017 by Contributors
* \file codegen.cc
* \brief Common utilities to generated C style code.
*/
#include <tvm/codegen.h>
#include <tvm/ir_pass.h>
#include <tvm/runtime/registry.h>
#include <tvm/runtime/module.h>
#include <dmlc/memory_io.h>
#include <sstream>
#include <iostream>
namespace tvm {... |
// 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 "net/dns/record_rdata.h"
#include <memory>
#include "net/dns/dns_response.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace net ... |
#include <bits/stdc++.h>
using namespace std;
void rotatestl(int a[][100],int m,int n){
for (int i = 0; i < m; i++)
{
int startcol = 0;
int endcol = m - 1;
while (startcol < endcol)
{
swap(a[i][startcol],a[i][endcol]);
startcol++;
endcol--;... |
// Test host codegen.
// RUN: %clang_cc1 -no-opaque-pointers -verify -fopenmp -fopenmp-version=45 -x c++ -triple powerpc64le-unknown-unknown -fopenmp-targets=powerpc64le-ibm-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefix CHECK --check-prefix CHECK-64 --check-prefix OMP45
// RUN: %clang_cc1 -no-opaque-pointe... |
/*
* 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 "EditorDefs.h"
#include "AboutDialog.h"
// Qt
#include <QPainter>
#include <QDesktopSer... |
/* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... |
/* --------------------------------------------------------------
Project: CDialog
Purpose: GTK+ Dialog classes
Author: Ho-Jung Kim (godmode2k@hotmail.com)
Date: Since June 28, 2012
Filename: CDialog.cpp
Last modified: July 17, 2012
License:
*
* Copyright (C) 2014 Ho-Jung Kim (godmode2k@hotmail.com)
*
* Licensed un... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
#include <boost/log/utility/setup/common_attributes.hpp> |
/*
* Copyright (c) 2011-2014, Intel 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:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of... |
/*****************************************************************
|
| Neptune - Trust Anchors
|
| This file is automatically generated by a script, do not edit!
|
| Copyright (c) 2002-2010, Axiomatic Systems, LLC.
| All rights reserved.
|
| Redistribution and use in source and binary forms, with or without
| modif... |
// Copyright 2017 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/snapshot/object-deserializer.h"
#include "src/codegen/assembler-inl.h"
#include "src/execution/isolate.h"
#include "src/execution/local-i... |
#include "stdafx.h"
#include "apophis/Training/StoppingConditions.h"
using namespace Apophis;
using namespace Apophis::Training::StoppingCondition;
bool AnyStoppingCondition::Check(Data::Metrics& metrics) const
{
for (auto& condition : m_Conditions)
if ((*condition)(metrics))
return true;
return false;
} |
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/problems/DPL_1_D"
#include "../header.cpp"
#include "../Miscellaneous/LIS_LDS.hpp"
void init() {
// initialize
}
void solve(int case_no) {
// implementation
int n;
cin >> n;
vector<int> v(n);
for (int i = 0; i < n; i++) cin >> v[i];
cout << LIS(v).size() << en... |
// modified from https://github.com/vgteam/vg/blob/master/src/version.cpp
#include "version.hpp"
// Get the git version macro from the build system
#include "../include/odgi_git_version.hpp"
#include <iostream>
#include <sstream>
// If the ODGI_GIT_VERSION deosn't exist at all, define a placeholder
// This lets us ... |
#include "simulator/simulator.h"
#include <assert.h>
#include <stdio.h>
#include <memory>
#include <string>
#include "common/float_util.h"
#include "common/macros.h"
using sicxe::machine::Machine;
using std::string;
namespace sicxe {
namespace simulator {
namespace {
uint32 ConditionCodeToHex(CpuState::ConditionId... |
#include "stdafx.h"
#include "ModelImporter.h"
#include <fstream>
#include <algorithm>
using namespace std;
using namespace wiGraphicsTypes;
using namespace wiSceneComponents;
Mesh* LoadMeshFromBinaryFile(const std::string& newName, const std::string& fname, const std::map<std::string, Material*>& materialColl, con... |
// Tencent is pleased to support the open source community by making UnLua available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the MIT License (the "License");
// you may not use this file except in compliance with the License. You may obtain a copy of 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.
//
// Library functions related to the Financial Server ping.
#include "rlz/lib/financial_ping.h"
#include "base/atomicops.h"
#include "base/basictyp... |
// 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... |
// Copyright (c) 2011-2020 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge,... |
/*
The MIT License (MIT)
Copyright (c) 2014 https://github.com/labyrinthofdreams
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 u... |
#include "duckdb/execution/column_binding_resolver.hpp"
#include "duckdb/planner/operator/logical_comparison_join.hpp"
#include "duckdb/planner/operator/logical_create_index.hpp"
#include "duckdb/planner/operator/logical_delim_join.hpp"
#include "duckdb/planner/expression/bound_columnref_expression.hpp"
#include "duc... |
#include <random>
#include <RNG.h>
pcg32 RNG::s_driver;
void RNG::seed()
{
pcg_extras::seed_seq_from<std::random_device> source;
s_driver = pcg32(source);
}
const int RNG::random(const int max)
{
return s_driver(max);
} |
#include <algorithm>
#include <vector>
#include <iostream>
#include <cassert>
#include "copy.h"
int
main(int argc, char** argv)
{
std::vector<value_type> a{1, 2, 3, 3, 3, 7, 8};
auto a_backup = a;
auto b = a;
copy(a.data(), a.size(), b.data());
assert(a == a_backup);
assert(a == b);
std::cout << "\tsucc... |
/* kompilator: MinGW 6.3.0 */
/* Czemu funkcja nie działa i zwraca liczbę inną jak podana? */
#include <iostream>
int main() {
int i;
scanf("%d",i);
printf("%d",i);
for(; i<=10; printf("%d ", i++ ) );
printf("\n");
for(; i<=10; printf("%d", ++i ) );
return 0;
}
//---------------... |
#include<iostream>
using namespace std;
int main(){
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
for(int i=1;i<n;i++)
{
int current=arr[i];
int j=i-1;
while(arr[j]>current && j>=0)
{
arr[j+1]=arr[j];
j--;
}
arr[j+1]=current;
}
for(int i=0;i<n;i++)
{
... |
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX
#include <windows.h>
#include "Utils/MemoryMgr.h"
#include "Utils/Patterns.h"
#include <shlwapi.h>
#include <ShlObj.h>
#include <shellapi.h>
#include <array>
#include <optional>
#include <string>
#include <Commctrl.h>
#define DIRECTINPUT_VERSION 0x0800
#include <dinput.... |
#include <stdlib.h>
#include <bsl_iostream.h>
namespace bde_verify { }
using namespace bde_verify;
using namespace bsl;
//=============================================================================
// TEST PLAN
//---------------------------------------------------------------------------... |
#include "weather.hpp"
#include <components/esm/weatherstate.hpp>
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwbase/soundmanager.hpp"
#include "../mwrender/renderingmanager.hpp"
#include "player.hpp"
#include "esmstore.hpp"
#include "fallback.hpp"
#include "cellstore.hpp"
usin... |
// 剑指 Offer 57. 和为s的两个数字
// 0422 二分法加双指针
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
int left = 0;
int right = nums.size() - 1;
// 二分法先找到第一个小于target的值
while (left <= right) {
int mid = (left + right) / 2;
int x = nums[mid];
... |
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --function-signature --include-generated-funcs --replace-value-regex "__omp_offloading_[0-9a-z]+_[0-9a-z]+" "reduction_size[.].+[.]" "pl_cond[.].+[.|,]" --prefix-filecheck-ir-name _
// RUN: %clang_cc1 -verify -triple x86_64-apple-da... |
// Copyright (c) 2008, 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 condi... |
/*
MIT License
Copyright (c) 2018 namreeb http://github.com/namreeb legal@namreeb.org
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 li... |
/*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 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... |
// System::Web::Services::Description.MimeMultipartRelatedBinding
// System::Web::Services::Description.MimeMultipartRelatedBinding::Parts;
/* The following program demonstrates the property 'Parts' of class 'MimeMultipartRelatedBinding'.
It reads 'MimeMultiPartRelatedSample_cpp.wsdl'file and instantiates a ServiceDes... |
// 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 "base/environment.h"
#include <memory>
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/pla... |
#include <vector>
#include <string>
#define MATHQ_DEBUG 0
#include "mathq.h"
template <typename T>
T adder(T v) {
return v;
}
template <typename T, typename... Args>
T adder(T first, Args... args) {
return first + adder(args...);
}
template <class D, template <typename> class F>
void printUnary() {
MOUT << ... |
/**
* @file main.cpp
*
* Created on: May 30, 2019
* @author: Peter N Robinson
*/
#include <iostream>
#include <string>
#include <memory>
#include "CLI11.hpp"
// the commands
#include "phenotoolscommand.h"
#include "hpocommand.h"
#include "annotcommand.h"
using std::string;
using std::cout;
using std::cerr;
u... |
/*
Copyright (c) 2005-2015, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followi... |
#include "asset.hpp"
#include "util/common.hpp"
#include "osdialog.h"
#if ARCH_MAC
#include <CoreFoundation/CoreFoundation.h>
#include <pwd.h>
#endif
#if ARCH_WIN
#include <Windows.h>
#include <Shlobj.h>
#include <Shlwapi.h>
#endif
#if ARCH_LIN
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#end... |
/*
*
* Copyright (c) 2018 Google LLC.
* Copyright (c) 2016-2018 Nest Labs, Inc.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
/*
* navframe.cpp
*
* Created on: Jan 23, 2013
* @author Ralph Schurade
*/
#include "navframe.h"
#include "navglwidget.h"
#include <QtWidgets>
NavFrame::NavFrame( QString name, int orient, QWidget *parent, const QGLWidget *shareWidget ) :
QFrame( parent )
{
//m_widget = new NavGLWidget( name, orient, par... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
#pragma once
// Description: C++18 DbIO interface for Service.
/*
* org.msscf.msscf.CFSec
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFSec 2.13 Security Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code Factory is avail... |
#include "CharParser.h"
#include <fstream>
#include <vector>
#include <cmath>
CharDesc::CharDesc(std::string filename)
{
std::ifstream in(filename);
if (!in.good())
{
printf("Fail to open character file %s\n", filename.c_str());
return;
}
json j;
in >> j;
json joints_json = j["Skeleton"]["Joint... |
// Copyright (c) 2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <validation.h>
#include <txmempool.h>
#include <amount.h>
#include <consensus/validation.h>
#include <primitives/transact... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017, Image Engine Design 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:
//
// * R... |
/*
* Copyright (c) 2011-2013 libbitcoin developers (see AUTHORS)
*
* This file is part of libbitcoin.
*
* libbitcoin is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License with
* additional permissions to the one published by the Free Software
* Fou... |
/*************************************************************************/
/* main_timer_sync.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
** i_gui.cpp
**
**---------------------------------------------------------------------------
** Copyright 2008 Randy Heit
** 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. Redist... |
/*
* RPLIDAR SDK
*
* Copyright (c) 2009 - 2014 RoboPeak Team
* http://www.robopeak.com
* Copyright (c) 2014 - 2016 Shanghai Slamtec Co., Ltd.
* http://www.slamtec.com
*
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... |
//===-- ConstantFolding.cpp - Fold instructions into constants ------------===//
//
// 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
//
//===---------------------------... |
#include <vcpkg/base/files.h>
#include <vcpkg/base/hash.h>
#include <vcpkg/base/messages.h>
#include <vcpkg/base/system.debug.h>
#include <vcpkg/base/system.print.h>
#include <vcpkg/base/util.h>
#include <vcpkg/binarycaching.h>
#include <vcpkg/build.h>
#include <vcpkg/cmakevars.h>
#include <vcpkg/commands.setinstalled... |
#ifndef MANDELBROT_HPP
#define MANDELBROT_HPP
#include <vector>
#include <cmath>
#include <complex>
#include <cstdint>
#include <iostream>
#include <thread>
#include <atomic>
#include <chrono>
#include "CImg.h"
struct ColorMapElement {
bool use;
unsigned char red, green, blue;
ColorMapElement(): use(fal... |
#include "automaton/core/common/status.h"
namespace automaton {
namespace core {
namespace common {
std::ostream& operator<<(std::ostream& os, const status& s) {
switch (s.code) {
case status::OK: os << "OK"; break;
case status::CANCELLED: os << "CANCELLED"; break;
case status::UNKNOWN: os << "UNKNOWN";... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
| Copyrigh... |
#include "EngineData.h"
#include "HardwareSerial.h"
#include "wiring_private.h"
EngineData::EngineData() {
this->lastTime = millis();
// Set gear to gear 4 (1:1) until we can get the current gear
this->curr_gear = 4;
}
const char * const IGN_OFF_MSG PROGMEM = "IGN. OFF!";
const char * const IDLE_MSG PROG... |
//-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Process.hpp>
# include <Proce... |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_alert.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, AlertCreateProjectResponseType* it... |
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#include "opentelemetry/exporters/fluentd/log/fluentd_exporter.h"
#include "opentelemetry/logs/provider.h"
#include "opentelemetry/sdk/logs/logger_provider.h"
#include "opentelemetry/sdk/logs/simple_log_processor.h"
// Using an exporter tha... |
// Copyright (c) 2012 Pieter Wuille
// Copyright (c) 2012-2014 The Bitcoin developers
// Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2018-2020 The Jdcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.... |
//===--- GenericSignatureBuilder.cpp - Generic Requirement Builder --------===//
//
// 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... |
#include "global.h"
void getAABBVertices(AABB aabb, float vertices[])
{
// int min_min_min[] = {1,5,15,16,25,30};
// int min_min_max[] = {7,12,17,29};
// int min_max_min[] = {6,14,31,35};
// int min_max_max[] = {11,13,18,36};
// int max_min_min[] = {3,20,22,26};
// int max_min_max[] = {8,24,27,28};
... |
//------------------------------------------------------------------------------
/*
Copyright (c) 2019 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permis... |
// Copyright 2009 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.