text stringlengths 5 1.04M |
|---|
/*****************************************************************************
Copyright (c) 1995, 2011, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Founda... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_ALWAYS_VALID_VALIDATORS_HPP_
#define IROHA_ALWAYS_VALID_VALIDATORS_HPP_
#include "validators/abstract_validator.hpp"
/* These classes are supposed to be used in testing cases, where we need to
* create... |
/* Copyright 2021 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... |
//
// Created by Khyber on 8/14/2019.
//
#include "Script.h"
|
/*
* 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 ... |
#include<stdio.h>
int main()
{
int i=0;
while(i % 2 == 0)
{
printf("%d",i);
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... |
#include "move.h"
Move::Move()
{
}
QString Move::ToString()
{
QString pieceType;
switch (pieceMoved->type)
{
case Piece::PAWN:
pieceType = "Pawn";
break;
case Piece::ROOK:
pieceType = "Rook";
break;
case Piece::KNIGHT:
pieceType = "Knight";
brea... |
//////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016-20, Lawrence Livermore National Security, LLC and Umpire
// project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (MIT)
////////////////////////////////////////////////////////////////... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetVerticalSync(true);
ofSetFrameRate(60);
ofBackground(10, 10, 10);
ofEnableDepthTest();
// turn on smooth lighting //
bSmoothLighting = true;
ofSetSmoothLighting(true);
// lets make... |
#include <ATen/native/ReduceOps.h>
#include <ATen/ATen.h>
#include <ATen/ExpandUtils.h>
#include <ATen/NativeFunctions.h>
#include <ATen/WrapDimUtils.h>
#include <ATen/WrapDimUtilsMulti.h>
#include <ATen/native/ReduceOpsUtils.h>
#include <ATen/native/TensorIterator.h>
#include <ATen/NamedTensorUtils.h>
#include <ATen/... |
/** @file
*****************************************************************************
Implementation of interfaces for (square-and-multiply) exponentiation.
See exponentiation.hpp .
*****************************************************************************
* @author This file is part of libff, develope... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "protocol.h"
#include "util.h"
#include "utilstrencodings.h"
#ifndef W... |
// Read an INI file into easy-to-access name/value pairs.
// inih and INIReader are released under the New BSD license (see LICENSE.txt).
// Go to the project home page for more info:
//
// https://github.com/benhoyt/inih
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <algorithm>
#in... |
// Copyright (c) 2021, Kai Wolf - SW Consulting. All rights reserved.
// For the licensing terms see LICENSE file in the root directory. For the
// list of contributors see the AUTHORS file in the same directory.
#include "kwctoolkit/system/environment.h"
#include <gtest/gtest.h>
using namespace kwc::system;
TEST(E... |
// OJ: https://leetcode.com/problems/clone-graph
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(N)
class Solution {
private:
unordered_map<int, UndirectedGraphNode*> m;
public:
UndirectedGraphNode *cloneGraph(UndirectedGraphNode *node) {
if (!node) return NULL;
auto copy = new UndirectedGraphNod... |
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <cstring>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
int sum[310];
int f1[310][310];
int f2[310][310];
int n;
int main()
{
while (cin >> n)
{
sum[0] = 0;
std::memset(f1, 0x3f, sizeof(... |
// 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/importer/importer_unittest_utils.h"
#include "base/utf_string_conversions.h"
#include "chrome/test/base/testing_profile.h"
... |
#ifndef BOOST_MP11_TUPLE_HPP_INCLUDED
#define BOOST_MP11_TUPLE_HPP_INCLUDED
// Copyright 2015-2020 Peter Dimov.
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/mp11/integer_seq... |
/**
* firewall API
* Firewall Service
*
* OpenAPI spec version: 2.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not edit this file manually */
#include "FirewallJsonObject.h"
#include <regex>
nam... |
//------------------------------------------------------------------------------
// d3d11memoryvertexbufferloader.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "co... |
#include "optimizers/base.h"
int main(int argc, char **argv) {
if (argc != 4) {
fprintf(stderr, "Usage: %s N target optimizer\n", argv[0]);
exit(1);
}
Runner runner(argv[2]);
auto optimizer = Optimizer::Create(argv[3], &runner, atoll(argv[1]));
optimizer->Run();
}
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_st... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/**
* Copyright (C) 2014 10gen 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 useful... |
/*++
Copyright (c) 2011 Microsoft Corporation
Module Name:
seq_decl_plugin.h
Abstract:
decl_plugin for the theory of sequences
Author:
Nikolaj Bjorner (nbjorner) 2011-14-11
Revision History:
--*/
#include "util/gparams.h"
#include "ast/seq_decl_plugin.h"
#include "ast/arith_decl_plugin.h"
#include "... |
// PX2InputManager.hpp
#ifndef PX2INPUTMANAGER_HPP
#define PX2INPUTMANAGER_HPP
#include "PX2UnityPre.hpp"
#include "PX2Singleton_NeedNew.hpp"
#include "PX2InputEventListener.hpp"
namespace PX2
{
class PX2_UNITY_ITEM InputManager : public Singleton<InputManager>
{
public:
InputManager();
~InputManager();
I... |
//
// serial_port_base.hpp
// ~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2014 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (c) 2008 Rep Invariant Systems, Inc. (info@repinvariant.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or cop... |
#ifndef BOOST_DESCRIBE_CLASS_HPP_INCLUDED
#define BOOST_DESCRIBE_CLASS_HPP_INCLUDED
// Copyright 2020 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/describe/detail/config.hpp>
#if !defined(BOOST_DESCRIBE_CXX14)
#define BOOST_DESCRI... |
#include <doctest/doctest.h>
#include <set>
#include <vector>
// 287. Find the Duplicate Number
class Solution {
public:
int findDuplicate(const std::vector<int>& nums) {
std::set<int> s;
for (auto n : nums) {
if (s.find(n) == s.end()) {
s.insert(n);
} else {
return n;
}
... |
/*
* Copyright (C) 2013-2014 IMS LICENSE
* You may obtain a copy of the License at
*
* http://www.bitbucket.org/italiammarssociety/eras/src/
* LICENSE
*
* @author Kunal Tyagi
*
*/
#include "SwivelPlugin.hh"
using namespace gazebo;
GZ_REGISTER_MODEL_PLUGIN(SwivelPlugin)
/////////////... |
/*
* Copyright (C) 2016-2017 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
#include "BossFour.hpp"
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include <set>
#include <time.h>
/**
BossFour.cpp
Purpose: to update and control BossFour in regards to location , attacks, health
*/
//boss four shoots guided beams quickly toward player
namespace g35 {
BossFour... |
// 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 "chainparams.h"
#include "db.h"
#include "net.h"
#include "main.h"
#inclu... |
//===--- ParseExpr.cpp - Swift Language Parser for Expressions ------------===//
//
// 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 <bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t,i,n,k;
cin>>t;
while(t--)
{
cin>>n>>k;
ll r[n];
ll c[n];
ll x,y;
memset(r, 0, sizeof(r));
memset(c, 0, sizeof(c));
for(i=0;i<k;i++)
{
cin>... |
// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyright (c) 2011 The... |
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requir... |
/*
* sdio_sdcard.cpp
*
* Created on: Apr 24, 2015
* Author: walmis
*/
#include "sdio_sdcard.hpp"
using namespace xpcc;
using namespace stm32;
#define SDIO_STATIC_FLAGS (SDIO_HAL::Interrupt) ((uint32_t)0x000005FF)
#define SD_OCR_ERRORBITS ((uint32_t)0xFDFFE008)
#define DATATIMEO... |
#include "graphics/window.h"
#include <iostream>
using namespace SnowEngine;
using namespace SnowEngine::Graphics;
int main()
{
Window window("SnowEngine!", 1280, 720);
glClearColor(0.2f, 0.3f, 0.8f, 1.0f);
while (!window.shouldClose())
{
window.clear();
window.update();
}
return 0;
} |
/****************************************************************************
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2013-2016 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
/**
* \file
* \copyright
* Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*/
#include <numeric>
#include <Eigen/Eigen>
... |
class Solution {
vector<int> nums;
public:
Solution(vector<int>& nums) {
this->nums = nums;
}
/** Resets the array to its original configuration and return it. */
vector<int> reset() {
return nums;
}
/** Returns a random shuffling of the array. */
vector<int> sh... |
#include <iostream>
#include <cstdio>
#include <bits/stdc++.h>
using namespace std;
int max_of_four(int a, int b, int c, int d){
int max;
int numArray[4]={a,b,c,d};
int n = sizeof(numArray)/sizeof(numArray[4]);
std::sort(numArray,numArray+n);
max=numArray[3];
return max;
}
int main()... |
// Copyright 2022 Alejandro Gallo
//
// 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... |
#ifndef FSLGRAPHICS_RENDER_NINESLICEATLASTEXTURE2D_HPP
#define FSLGRAPHICS_RENDER_NINESLICEATLASTEXTURE2D_HPP
/****************************************************************************************************************************************************
* Copyright 2020 NXP
* All rights reserved.
*
* Redistri... |
// Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2015-2019 The PIVX developers
// Copyright (c) 2019-2020 The Altbet 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.... |
// Copyright (c) 2011-2014 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 <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoin... |
//===--- CGDecl.cpp - Emit LLVM Code for declarations ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#pragma once
#include <queue>
#include <sstream>
#include "JackToken.hpp"
#include "StatementCompiler.hpp"
using namespace std;
class LetCompiler : public StatementCompiler
{
public:
virtual void compile(queue<JackToken*>& tokens, ostringstream& result)
{
}
}; |
#include <argparse.h>
void setup_simple_positional_arg(argparse::argument_parser& parser)
{
parser.add_argument("foo").help("foo argument help.");
}
void setup_multiarg_example(argparse::argument_parser& parser)
{
parser.add_argument("foo").help("foo argument help.");
parser.add_argument("bar").num_args(3... |
// This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osg.h"
#include "wrap_referenced.h"
#include "Material.pypp.hpp"
namespace bp = boost::python;
struct Material_wrapper : osg::Material, bp::wrapper< osg::Material > {
Material_wrapper( )
: osg::Material( )
, bp::wrappe... |
// ***********************************************************************
// Code Created by James Michael Armstrong (https://github.com/BlazesRus)
// ***********************************************************************
#pragma once
#include "..\DLLAPI.h"
#include "VariableFormula.hpp"
#include "..\AltNum... |
// Copyright 2012 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 ... |
#include "component.h"
//-META-------------------------------------------------------------------------------------------//
COFFEE_BeginType(alien_controller::Component);
COFFEE_Ancestor(plugins::Component);
COFFEE_Attribute(real, _MoveSpeed, meta::MODE_Serializeable | meta::MODE_Editable | meta::MODE_Undoabl... |
// Copyright (c) 2009-2019 The Bitcoin Core developers
// Copyright (c) 2014-2019 The BitsCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/server.h>
#include <chainparams.h>
#include <clientver... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this sof... |
// This example uses an Adafruit Huzzah ESP8266
// to connect to shiftr.io.
//
// You can check on your device after a successful
// connection here: https://shiftr.io/try.
//
// by Joël Gähwiler
// https://github.com/256dpi/arduino-mqtt
#include <ESP8266WiFi.h>
#include <MQTT.h>
#include "wificonfig.h"
WiFiClient ne... |
/*!
@file
Defines `boost::hana::equal`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_EQUAL_HPP
#define BOOST_HANA_EQUAL_HPP
#include <boost/hana/fwd/equal.hpp>
#inclu... |
/**
*
* 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 ... |
/********************************************************************
* @file : time.hpp
* @author : zapline <zhuxianzhang@kingsoft.com>
* @date : 2012/11/19 20:37
* @brief :
*
*
*********************************************************************/
#ifndef _W_TIME_HPP_
#define _W_TIME_HPP_
#inclu... |
// Copyright (c) 2019, NVIDIA CORPORATION. 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 ... |
/*!
* @file
* @brief Stuff for representation of pieces of outgoing data.
*/
#pragma once
#include <arataga/acl_handler/buffers.hpp>
#include <arataga/utils/overloaded.hpp>
namespace arataga::acl_handler
{
/*!
* @brief Class for representation a single piece of data to be sent
* into a socket.
*
* The piece... |
/*
MIT License
Copyright (c) 2017 Alexander Zaitsev
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, co... |
//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id: BufferManager.cc 385 2010-05-27 15:58:30Z sriramsrao $
//
// Created 2009/06/06
//
// Copyright 2009 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "L... |
#include <Fsa/Dfs.hh>
#include "BestCell.hh"
#include "EpsilonClosure.hh"
#include "FsaCellMap.hh"
#include "FullCell.hh"
#include "Path.hh"
#include "StartEndCell.hh"
namespace Permute {
// Finds all arcs that match a given label in the given automaton, and adds
// them to the given cell.
class CellDfs : public... |
//////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2020 QMCPACK developers.
//
// File developed by: Peter Doak, doakpw@ornl.go... |
********************************
*Author: Jackie Marcano *
********************************
#include <iostream>
#include <iomanip>
using namespace std;
//Draws the table
void table(int tableSize)
{
const int row = 13;
const int col = 13;
int nums[row][col];
for (int row = 0; row <= tableSize; ro... |
/**
* Touhou Community Reliant Automatic Patcher
* Update module
*
* ----
*
* Digitally signed, automatic updates of thcrap itself.
*/
#include <thcrap.h>
#include <wincrypt.h>
#include "update.h"
#include "server.h"
#include "self.h"
#define TEMP_FN_LEN 41
const std::string SELF_SERVER = "http://thcra... |
// Copyright (c) 2020 ETH Zurich
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/properties/property.hpp>
|
/*
This file is a part of the NVDA project.
URL: http://www.nvda-project.org/
Copyright 2006-2010 NVDA contributers.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.0, as published by
the Free Software Foundation.
This p... |
#include "ros/ros.h"
#include <sstream>
#include <bits/stdc++.h>
#include <synchroniz/custommsg.h>
int main (int argc,char** argv) {
ros::init(argc, argv, "Node1");
ros::NodeHandle n;
ROS_INFO_STREAM("Node 1 has started running");
ros::Publisher pub=n.advertise<synchroniz::custommsg>("talker",5);
r... |
/* 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... |
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
mpfx.h
Abstract:
Multi precision fixed point numbers.
Author:
Leonardo de Moura (leonardo) 2012-09-19
Revision History:
--*/
#include <cstring>
#include<sstream>
#include<iomanip>
#include "util/mpfx.h"
#include "util/mpn.h"
#include "ut... |
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include <conio.h>
#include <stdio.h>
#include <filectrl.hpp>
#include "ToneThd.h"
#include "UMain.h"
#include "UTone.h"
#include "UEnv.h"
#include "... |
// Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
#pragma once
#include "base/mappable.hpp"
#include "geometry/grassmann.hpp"
#include "geometry/linear_map.hpp"
#include "geometry/r3_element.hpp"
#include "geometry/sign.hpp"
#include "serialization/geometry.pb.h"
namespace principia {
namespace geometry {
FORWARD_DECLARE_FROM(orthogonal_map,
... |
/*---------------------------------------------------------------------------*\
Copyright: ICE Stroemungsfoschungs GmbH
Copyright (C) 1991-2008 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is based on CAELUS.
CAELUS is free software: you can red... |
#include <vtkMultiBlockDataSet.h>
#include <vtkMultiBlockMergeFilter.h>
#include <vtkNew.h>
#include <vtkPoints.h>
#include <vtkPolyData.h>
#include <vtkSphereSource.h>
int main(int, char*[])
{
vtkNew<vtkSphereSource> sphereSource1;
sphereSource1->Update();
vtkNew<vtkSphereSource> sphereSource2;
sphereSource... |
#include "test/mocks/http/stream.h"
using testing::_;
using testing::Invoke;
namespace Envoy {
namespace Http {
MockStream::MockStream() {
ON_CALL(*this, addCallbacks(_)).WillByDefault(Invoke([this](StreamCallbacks& callbacks) -> void {
callbacks_.push_back(&callbacks);
}));
ON_CALL(*this, removeCallbacks... |
///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2011-2017, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#pragma once
namespace Zero
{
//lazy...cleanup later
ty... |
#include "clang/Basic/Attributes.h"
#include "clang/Basic/AttrSubjectMatchRules.h"
#include "clang/Basic/AttributeCommonInfo.h"
#include "clang/Basic/IdentifierTable.h"
#include "llvm/ADT/StringSwitch.h"
using namespace clang;
int clang::hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope,
... |
//
// SourceManager.cpp
// tinyscript
//
// Created by Amy Parent on 03/07/2018.
// Copyright © 2018 Amy Parent. All rights reserved.
//
#include <tinyscript/compiler/sourcemanager.hpp>
namespace tinyscript {
SourceManager::SourceManager(std::istream& input) {
std::string source(std::istreambuf_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 You under the Apache License, Version 2.0
* (the "License"); you may ... |
// Copyright (c) Sandeep Mistry. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#if defined(NRF51) || defined(NRF52) || defined(__RFduino__)
#ifdef __RFduino__
#include <utility/RFduino/ble.h>
#include <utility/RFduino/ble_hci.h>
#inclu... |
#pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
struct NWSync__CNWSync__ManifestMetaData
{
};
}
}
|
#include "keras_model.h"
int main() {
KerasModel model;
model.LoadModel("/beegfs/desy/user/amalara/output_varariables/Sequential/model_AK8_pt_300_500/model_crosscheck/mymodel.model");
Tensor in(13);
// in.data_ = {{ 1.52882206e-01, -7.82382991e-01, 4.58294465e-01, 1.62019307e-01, 6.77150193e-02, 9.386... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... |
/*
###############################################################################
#
# Temboo CoAP Edge Device library
#
# Copyright (C) 2017, Temboo 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 co... |
#include <iostream>
#include <string>
using namespace std;
void stringReverse( string, size_t );
int main()
{
string s = "Print this string backward.";
cout << s << '\n';
stringReverse( s, 0 );
cout << endl;
}
void stringReverse( string stringToReverse, size_t startSubscript )
{
static size_t str... |
#include "hdrpch.h"
#include "ParticleGravityForce.h"
namespace hedron
{
ParticleGravityForce::ParticleGravityForce(const vec3f32 gravity)
: m_Gravity{gravity}
{
}
void ParticleGravityForce::UpdateForce(Particle* particle, float duration)
{
// If the particle do not have infinite mass
if (!particle->HasFin... |
// Copyright (c) 2017-2018 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "blocksignature.h"
#include "main.h"
#include "zpivchain.h"
bool SignBlockWithKey(CBlock& block, const CKey& key)
{
if ... |
/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL (ES) Module
* -----------------------------------------------
*
* Copyright 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ... |
// Copyright (c) 2021 DNV AS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include "Reflection\TypeLibraries\TypeLibraryFactory.h"
#include "Reflection\Operators\DefineOperator.h"
#include "Reflection\Obj... |
#include "{{client_context['client-module-name']}}ClientObject.h"
#include "{{client_context['client-module-name']}}PrivatePCH.h"
|
/***************************************************************************
# Copyright (c) 2015-21, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions... |
#include "tests.h"
#include "test_tools.h"
#include <vector>
#include <iostream>
#include "../RMSDTools.h"
#include "../RMSDCalculator.h"
#include "../QCP/QCPSerialKernel.h"
#include "../QTRFIT/QTRFITOmpKernel.h"
#include "../factory/RMSDCalculatorFactory.h"
#include "../KABSCH/KABSCHSerialKernel.h"
#include "../RMSDCa... |
/*
***********************************************************************************************************************
*
* Copyright (c) 2016-2020 Advanced Micro Devices, Inc. All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associ... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2001-2011 Hartmut Kaiser
Copyright (c) 2011 Bryce Lelbach
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.