text stringlengths 7 961k |
|---|
#include "../run2.h"
void grad_case6(float (&C)[8][16][3][3], float (&dA)[2][8][5][5],float (&dB)[2][16][7][7]) {
float _tmp0[2][16][7][7] = {0};
for (int n = 0; n < 2; ++n) {
for (int c = 0; c < 16; ++c) {
for (int z0 = 0; z0 < 7; ++z0) {
for (int z1 = 0; z1 < 7; ++z1) {
for (int k = 0; k < 8; ++k) {
... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The Gaon Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Mathematics
/// @file bindings/python/src/OpenSpaceToolkitMathematicsPy/Geometry/3D/Transformations/Rotatio... |
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.... |
#ifndef CTRE__EVALUATION__HPP
#define CTRE__EVALUATION__HPP
#include "flags_and_modes.hpp"
#include "atoms.hpp"
#include "atoms_unicode.hpp"
#include "starts_with_anchor.hpp"
#include "utility.hpp"
#include "return_type.hpp"
#include "find_captures.hpp"
#include "first.hpp"
#include <iterator>
// remove me when MSVC ... |
/*
* 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... |
/*-*- mode:c++;tab-width:4;indent-tabs-mode:nil;c-file-style:"ellemtel";c-basic-offset:4;c-file-offsets:((innamespace . 0)(inlambda . 0)) -*-*/
/*******************************************************************************
FILE : unittest_bitvector.cpp
COPYRIGHT : Yakov Markovitch, 2020
... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#include "include/c... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageWrapPad.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... |
#include "../../JIntArray.hpp"
#include "../../JBooleanArray.hpp"
#include "../hardware/BatteryState.hpp"
#include "../hardware/SensorManager.hpp"
#include "../hardware/lights/LightsManager.hpp"
#include "../os/Parcel.hpp"
#include "../os/Vibrator.hpp"
#include "../os/VibratorManager.hpp"
#include "./InputDevice_Motion... |
//! c/c++ headers
//! dependency headers
#include "TestData.h" // unit test configuration data (generated by CMake)
//! googletest
#include "gtest/gtest.h"
//! unit-under-test header
#include "nmsac/sampling.hpp"
using namespace nmsac;
//! The fixture for testing class.
class SamplingTest : public ::testing::Test {
... |
#ifndef HDF5_HELPER_HPP
#define HDF5_HELPER_HPP
#include "defines.hpp"
#include <hdf5.h>
#include <hdf5_hl.h>
#ifndef HYPJAC_IDADIM_SIZE
#define HYPJAC_IDADIM_SIZE static_cast<size_t>(4u)
#else /* HYPJAC_IDADIM_SIZE */
#error HYPJAC_IDADIM_SIZE not definable externally
#endif /* ?HYPJAC_IDADIM_SIZE */
#ifndef HDF5_... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackNSISGenerator.h"
#include "cmCPackComponentGroup.h"
#include "cmCPackGenerator.h"
#include "cmCPackLog.h"
#include "cmDuration.h"
#include "cmGeneratedFil... |
/***
Copyright 2014 Dave Cridland
Copyright 2014 Surevine Ltd
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, me... |
#include "format_parser.hpp"
#include <random>
namespace OLC
{
NucleotideLetter FormatParser::getRandomNucleotide() const
{
std::random_device rd;
std::mt19937 generator(rd());
std::uniform_int_distribution<> distribution(0, 3);
const uint32_t randomNucleotide = distribution(generator);
return static_cast<... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "PropertyEditorPrivatePCH.h"
#include "PropertyNode.h"
#include "PropertyHandleImpl.h"
#include "PropertyEditorHelpers.h"
#include "IPropertyUtilities.h"
FDetailLayoutBuilderImpl::FDetailLayoutBuilderImpl(FClassToPropertyMap& InPropertyMap, const ... |
// Generated by Haxe 4.1.4
#include <hxcpp.h>
#ifndef INCLUDED_verb_core_ArrayExtensions
#include <verb/core/ArrayExtensions.h>
#endif
#ifndef INCLUDED_verb_core_BoundingBox
#include <verb/core/BoundingBox.h>
#endif
#ifndef INCLUDED_verb_core_Mesh
#include <verb/core/Mesh.h>
#endif
#ifndef INCLUDED_verb_core_MeshBound... |
#ifndef DATA_BUFFER_H
#define DATA_BUFFER_H
#include "logger.hpp"
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <string>
#include <vector>
#define EXTRA_LEN (10*1024)
#define PRE_RESERVE_HEADER_SIZE 200
class data_buffer
{
public:
data_buffer(size_t data_size = EXTRA_LEN);
~data_buffer... |
/**
* 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 writing, software
* distributed... |
/**
* @file
* The lightweight name service implementation
*/
/******************************************************************************
* Copyright (c) 2010-2011, 2014, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with o... |
#include <iostream>
using namespace std;
int main(){
string s;
cout<<"S="; cin>>s;
for(int i=0; i<=s.length();i++){
s[i] = tolower(s[i]);
}
cout<<s;
} |
//===-- main.cpp ------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// main.cpp : Defines the entry point for the application.
//
#include "framework.h"
#include "3DPrimitives.h"
#include "../PrimitivesApp/PrimitivesApp.h"
#define MAX_LOADSTRING 100
// Global Variables:
HINSTANCE hInst; // current instance
WCHAR szTitle[MAX_LOADSTRING]; ... |
/*
**==============================================================================
**
** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE
** for license information.
**
**==============================================================================
*/
#include <ut/ut.h>
#include <math.h>
#i... |
/**************************************************************
*
* 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... |
/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-Signed Receipts... |
#include "TestModuleFactory.h"
#include "Logger.h"
#include "LLVMCompatibility.h"
#include <llvm/AsmParser/Parser.h>
#include <llvm/IR/LLVMContext.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Verifier.h>
#include <llvm/Support/Debug.h>
#include <llvm/Support/MemoryBuffer.h>
#include <llvm/Support/SourceMgr.h>
#inc... |
#include "remean.h"
void ReMean::run(cudnnHandle_t h,
cudnnTensorDescriptor_t const *inputDesc, float *input,
cudnnTensorDescriptor_t *outputDesc, float **output,
TagUnionExtraRet *extra)
{
checkCUDNN(cudnnAddTensor(h,
&negOne, avgTsr... |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 4.0.1
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do... |
namespace cradle {
template<class Pixel, class SrcSP>
void shrink_image(image<2,Pixel,unique>& result,
image<2,Pixel,SrcSP> const& src, unsigned factor)
{
vector2u result_size;
for (unsigned i = 0; i < 2; ++i)
result_size[i] = src.size[i] / factor;
create_image(result, result_size);
copy_va... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2017, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
// $Id: driver2.cpp 1574 2011-01-05 01:13:55Z lou $
// Copyright (C) 2005, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#if defined(_MSC_VER)
// Turn off compiler warning about long names
# pragma warning... |
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
using namespace std;
enum TipEmail {NORMAL, IMPORTANT=100, EVENIMENT};
class Email {
const int idEmail; //obligatoriu
char subject[50]; //obligatoriu
string from; //obligatoriu
string * to = NULL;
int nrAdreseDestinatie = 0;
char* conti... |
// Copyright 2014 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... |
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
struct Students
{
/* data */
int num;
string name;
char sex;
int age;
};
int main()
{
Students stu = { 2331 , "Lin", 'M', 18};
return 0;
} |
#include "config.h"
Config::Config()
{
initColors();
}
void Config::initColors()
{
skinColors.append("rgb(22, 154, 218)");
skinColors.append("rgb(40, 138, 221)");
skinColors.append("rgb(49, 166, 107)");
skinColors.append("rgb(218, 67, 78)");
skinColors.append("rgb(229, 98, 129)");
skinCol... |
/*=========================================================================
*
* Copyright RTK 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
*
* http://www.apa... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
// Optimise
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/home/shahraaz/bin/debug.h"
#else
#define db(...)
#endif
using ll = long long;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
const int NAX = 2e5 + 5, MOD = 1000000007;
string s;
int sum[NAX], t... |
// https://leetcode.com/problems/climbing-stairs/description/
/******************************************************************************************************
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb... |
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include "transformation.hpp"
#define abs(a) ((a<0)?(-a):(a))
#define sign(a) ((a>0)?1:-1) // NOTE: sign(0) = 0
int n;
struct point points[100];
int angle;
void initGL() {
glClear(GL_COLOR_BUFFER_BIT);
glMatrixMode( GL_PROJECTION );
glLoadIde... |
#include <memory>
#include <utility>
#include "base_test.hpp"
#include "expression/expression_functional.hpp"
#include "expression/expression_utils.hpp"
#include "hyrise.hpp"
#include "logical_query_plan/join_node.hpp"
#include "logical_query_plan/mock_node.hpp"
#include "logical_query_plan/stored_table_node.hpp"
#in... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "consensus/yac/impl/yac_crypto_provider_impl.hpp"
#include "backend/plain/signature.hpp"
#include "common/result.hpp"
#include "consensus/yac/transport/yac_pb_converters.hpp"
#include "cryptography/crypto_pro... |
#include "precomp.h"
//
// SWL.CPP
// Shared Window List
//
// Copyright(c) Microsoft 1997-
//
#define MLZ_FILE_ZONE ZONE_CORE
//
// SWL strategy when network packets are not available
//
// The SWL only sends one type of message - the window structure message.
// When no network packets are available the SWL will... |
// 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... |
#define GL_SILENCE_DEPRECATION
#include "shader.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
bool ShaderProgram::load(const char* vertexFilePath, const char* fr... |
/*
* Copyright (C) 2011 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 conditio... |
/**
* @author : rbrugo, momokrono
* @file : circle
* @created : Friday Mar 05, 2021 12:54:22 CET
* @license : MIT
* */
#ifndef PRIMITIVES_CIRCLE_HPP
#define PRIMITIVES_CIRCLE_HPP
#include "spl/primitives/line.hpp"
#include "spl/viewport.hpp"
namespace spl::graphics
{
class circle
{
vert... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
/*
Copyright (c) 2011, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... |
/*
* Copyright (c) 2017-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Domain/DomainCreators/Rectangle.hpp"
#include <array>
#include <vector>
#include "Domain/Block.hpp" // IWYU pragma: keep
#include "Domain/BlockNeighbor.hpp" // IWYU pragma: keep
#include "Domain/CoordinateMaps/Affine.hpp"
#incl... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
#include <stdio.h>
#ifdef WIN32
#else
#include <sys/socket.h>
#include <netinet/in.h> // PF_INET/AF_INET
#include <arpa/inet.h>
#include <sys/un.h> // AF_UNIX
#endif
#include <sys/types.h> // mkfifo
#include <sys/stat.h> // mkfifo
#include <fcntl.h>
#include "Transport.h"
using namespace std;
#ifdef WIN32
uint... |
// 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 "media/filters/video_decoder_selector.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/logging.h"
#include "base/... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
#include <stdexcept>
#include <unistd.h> // for usleep
#include "db-sqlite3.h"
#include "types.h"
#define SQLRES(f, good) \
result = (sqlite3_##f);\
if (result != good) {\
throw std::runtime_error(sqlite3_errmsg(db));\
}
#define SQLOK(f) SQLRES(f, SQLITE_OK)
DBSQLite3::DBSQLite3(const std::string &mapdir)
{
in... |
//===--- Attr.cpp - Swift Language Attr ASTs ------------------------------===//
//
// 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) 2012-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 <compressor.h>
#include <util.h>
#include <test/test_unite.h>
#include <stdint.h>
#include <boost/test/unit_test.h... |
/*
* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
//////////////////////////////////////////////////////////////////////////////
/// 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
/// ... |
//
// buffered_write_stream.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 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)
//
// Disable autoli... |
// Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_COR_CONFIG_HPP
#define HOU_COR_CONFIG_HPP
#include "hou/config.hpp"
#if defined(HOU_COR_EXPORTS)
#define HOU_COR_API HOU_EXPORT
#else
#define HOU_COR_API HOU_IMPORT
#endif
#endif |
/*************************************
** Tsunagari Tile Engine **
** pack-writer.cpp **
** Copyright 2016-2019 Paul Merrill **
*************************************/
// **********
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associ... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/metrics/perf/perf_events_collector.h"
#include <algorithm>
#include <utility>
#include "base/bind.h"
#include "base/files/file_... |
/*
* 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
*
*/
/* symbol initialization for Fortran */
#include "scutil.h"
#include "gbldefs.h"
#include "global.h"
#includ... |
/*****************************************************************************
StageProcSseV4.hpp
Author: Laurent de Soras, 2005
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under ... |
// Copyright (c) 2017-2019 The Energi Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "trafficgraphdata.h"
const int TrafficGraphData::RangeMinutes[] = {5,10,15,30,60,120,180,360,720,1440};
const int Tra... |
version https://git-lfs.github.com/spec/v1
oid sha256:8ff0a395f24c52d3046b12408a9e055e661bd471df98964acef37ec3e51e5110
size 5379 |
/*=============================================================================
Copyright (c) 2011-2014 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/** \file softpoint.cpp
- Project: SOFTSUSY
- Author: Ben Allanach
- Manual: hep-ph/0104145, Comp. Phys. Comm. 143 (2002) 305
- Webpage: http://allanach.home.cern.ch/allanach/softsusy.html
- Description: main calling program: command line interface
$Log: softpoint.cpp,v $
Revisio... |
// GPS_Test.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "vDUT.h"
#include "TestManager.h"
#include "GPS_Test.h"
#include "IQlite_Timer.h"
#include "IQlite_Logger.h"
#include "GPS_Test_Internal.h"
#include "IQmeasure.h"
// This global variable is declared in GPS_Test_Internal.... |
/* Copyright 2017 - 2021 R. Thomas
* Copyright 2017 - 2021 Quarkslab
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "m... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Exception
#inc... |
#pragma once
#include <Godot.hpp>
namespace gdn {
namespace sqlite {
class GDNSQLite : public godot::Reference {
GODOT_CLASS(GDNSQLite, Reference)
public:
static void _register_methods();
GDNSQLite();
~GDNSQLite();
void _init();
godot::String git_version_hash() const;
godot::String plugin_name() ... |
/**
* @file resource_locator.cpp
* @brief Resource locator functions
*
* @author John Wason
* @date October 25, 2019
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2019, Wason Technology, LLC
*
* @par License
* Software License Agreement (Apache License)
* @par
* Licensed under the Apac... |
#ifndef __OPERATORS_EXPR_IMPL_HPP__
#define __OPERATORS_EXPR_IMPL_HPP__
#include <assert.h>
#include "Operators/ExprVisitor.h"
#include "Operators/Matrix.h"
#include "Operators/Operator.h"
#include "Operators/Scalar.h"
using namespace Operators;
template<typename S, typename T, typename Derived>
template<typename ... |
#include "propertiesfilenamesgenerator.h"
PropertiesFileNamesGenerator::PropertiesFileNamesGenerator(const QString& baseName, const QString& format, qint32 maxFilesCount)
: Super(baseName, format, maxFilesCount)
, m_maxCount(Name(QString("FileGuards/%1.%2").arg(baseName, format)), 0, 0, 1000)
{
m_maxCount... |
/***************************************************************************
* Copyright 1998-2020 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxCoreRender. *
* ... |
#include <boost/test/unit_test.hpp>
#include <stdlib.h>
#include <chain.h>
#include <rpc/blockchain.h>
#include <test/setup_common.h>
/* Equality between doubles is imprecise. Comparison should be done
* with a small threshold of tolerance, rather than exact equality.
*/
static bool DoubleEquals(double a, double b... |
// Generated from argmin_3.mod.py
// DO NOT EDIT
// clang-format off
#include "TestHarness.h"
using namespace test_helper;
namespace generated_tests::argmin_3 {
const TestModel& get_test_model() {
static TestModel model = {
.expectFailure = false,
.expectedMultinomialDistributionTolerance = 0,
... |
// Copyright 2020-present Open Networking Foundation
//
// SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
#include "gtp_tables.h"
static gtpTables *table = nullptr;
extern "C"
{
#include "gtp_cpp_wrapper.h"
void init_cpp_gtp_tables(void)
{
table = new gtpTables();
}
int add_gt... |
/*
* (C) 2019 Nuno Goncalves <nunojpg@gmail.com>
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_SOCKETS) && (defined(BOTAN_TARGET_OS_HAS_SOCKETS) || defined(BOTAN_TARGET_OS_HAS_WINSOCK2))
#include <botan/internal/uri.h>
namespace Botan_Tests {
c... |
/*
* Copyright 2009, 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 conditio... |
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "legitbot.h"
#include "..\lagcompensation\animation_system.h"
#include "..\autowall\autowall.h"
bool IsNotTarget(player_t* e)
{
... |
// DO NOT EDIT. This file is generated
#include "../Precompiled.h"
#include "../AngelScript/APITemplates.h"
#include "../AngelScript/GeneratedIncludes.h"
#include "../AngelScript/Manual.h"
namespace Urho3D
{
void FakeAddRef(void* ptr);
void FakeReleaseRef(void* ptr);
// void UIElement::AddTags(const StringVector& ... |
#ifndef _GRAPH_BUFFER_H_
#define _GRAPH_BUFFER_H_
#include <assert.h>
#include <cstddef>
/** This file defines the buffer data structure used in graph processing */
template<typename T>
class base_buffer {
protected:
size_t bsize; // buffer current size
size_t capacity;
T *array;
};
template<typename T>... |
#ifndef wali_TAGGED_WEIGHT_GUARD
#define wali_TAGGED_WEIGHT_GUARD 1
/*!
* @author Akash Lal
*/
#include "wali/SemElem.hpp"
#include <iostream>
namespace wali
{
namespace walienum {
enum ETag {NONE, CALL, RETURN};
}
class TaggedWeight : public Printable {
public:
TaggedWeight() { }
Tagged... |
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: support@coronalabs.com
//
////////////////////////... |
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_container/walker_partition_interface.h"
#include "shared/test/common/cmd_parse/gen_cmd_parse.h"
#include "shared/test/common/cmd_parse/hw_parse.h"
#include "shared/test/common/fixtures/implicit_scaling_... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "walletdb.h"
#include "bitcoinrpc.h"
#include "net.h"
#inc... |
// Copyright (c) 2006, 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 conditi... |
#include "rapch.h"
#include "Rage/Core/Window.h"
#ifdef RA_PLATFORM_WINDOWS
#include "Platform/Windows/WindowsWindow.h"
#endif
namespace Rage
{
Scope<Window> Window::Create(const WindowProps& props)
{
#ifdef RA_PLATFORM_WINDOWS
return CreateScope<WindowsWindow>(props);
#else
RA_CORE_ASSERT(false, "Unknown pl... |
// 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 "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#inc... |
#include <string.h>
#include <IO/BitHelpers.h>
#include <common/types.h>
#include <IO/MemoryReadWriteBuffer.h>
#include <IO/ReadBufferFromMemory.h>
#include <Common/BitHelpers.h>
#include <Common/PODArray.h>
#include <cmath>
#include <memory>
#include <bitset>
#include <string>
#include <vector>
#include <typeinfo>
#... |
///////////////////////////////////////////////////////////////////////////////////
/// OpenGL Mathematics (glm.g-truc.net)
///
/// Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net)
/// Permission is hereby granted, free of charge, to any person obtaining a copy
/// of this software and associated documentatio... |
/*************************************************************************/
/* sem_osx.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <map>
#include <vector>
#include <cstdio>
#include <solution.h>
/*
std::vector<int> Solution::twoSum(std::vector<int>& nums, int target) {
std::map<int, int> hash_map;
std::vector<int>::iterator vec_begin = nums.begin();
std::vector<int>::iterator vec_end = nums.end();
for (auto it = vec_begi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.