text stringlengths 5 1.04M |
|---|
//+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1996.
//
// File: seltrig.hxx
//
// Contents: Task wizard trigger selection property page.
//
// Classes: CSelectTriggerPage
//
// History: ... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
/**
* @file AzureBlobStorageClient.cpp
* AzureBlobStorageClient class implementation
*
* 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 licen... |
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "multisigdialog.h"
#include "forms/ui_multisigdialog.h"
#include "askpassphrasedialog.h"
#include "primitives/transacti... |
#include<bits/stdc++.h>
using namespace std;
void __print(int x){cout<<x;}void __print(long long x){cout<<x;}
void __print(double x){cout<<x;}void __print(long double x){cout<<x;}
void __print(char x){cout<<'\''<<x<<'\'';}void __print(const char *x){cout<<'\"'<<x<<'\"';}
void __print(const string &x){cout<<'... |
/* auth.cpp
Subroutines having to do with authentication. */
/*
* Copyright (c) 2002-2006 Nominum, Inc.
* All rights reserved.
*
* Copyright (c) 1998-2001 Internet Software Consortium.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitte... |
//
// Created by xiaofeng on 2019/11/29.
//
//The 0.4.0 version of solidity language will automatically supplement
//fallback function for contracts. The fallback functions provided by
//contract writers may bring security risks.
//source file
/*
author=__xiaofeng__
*/
#include <iostream>
#include "R... |
//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2016 Pivotal Software, Inc.
//
// @filename:
// var_expr_tree_generator.cc
//
// @doc:
// Object that generator code for variable expression.
//
//----------------------------------------------... |
/*
This file is part of Caelum.
See http://www.ogre3d.org/wiki/index.php/Caelum
Copyright (c) 2006-2007 Caelum team. See Contributors.txt for details.
Caelum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundatio... |
#include "_core.h"
class ::std::unique_ptr< struct ::statiskit::UnivariateDistributionEstimation, struct ::std::default_delete< struct ::statiskit::UnivariateDistributionEstimation > > (::statiskit::LazyEstimation< ::statiskit::GeometricDistribution, ::statiskit::DiscreteUnivariateDistributionEstimation >::*method_po... |
// *****************************************************************************
/*!
\file src/RNG/MKLRNG.hpp
\copyright 2012-2015 J. Bakosi,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file for det... |
#using <System.Xml.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
#using <System.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
public ref class Form1: public Form
{
protected:
Er... |
#ifndef DOMTreeWalkerImpl_HEADER_GUARD_
#define DOMTreeWalkerImpl_HEADER_GUARD_
/*
* 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 th... |
#include "token.h"
#include "color.h"
using namespace MiniC;
Token::Token(string kind, string value) : kind(move(kind)), value(move(value)), children(), loc(nullopt) {}
Token::Token(string kind) : kind(move(kind)), value(), children(), loc(nullopt) {}
Token::Token(string kind, string value, location loc) : kind(mov... |
//----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: AMT_ProvisioningCertificateHash.cpp
//
// Contents: A class derived from Credential that describes provisioning certificate hash entry.
//
// ... |
/* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2007 Robert McNeel & Associates. All rights reserved.
// Rhinoceros is a registered trademark of Robert McNeel & Assoicates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND O... |
// Copyright 2018 Google LLC
//
// 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 ... |
//
// This file contains the C++ code from Program 12.22 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/program... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "low_precision_transformations/fake_quantize_precision_selection_transformation.hpp"
#include "common_test_utils/test_constants.hpp"
#include "lpt_ngraph_functions/fake_quantize_function.hpp"
using names... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_dest_char_ncpy_65b.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_dest.string.label.xml
Template File: sources-sink-65b.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: All... |
/*
* 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
... |
// --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
#include <iostream>
#include <vector>
#include <string>
#include <regex>
using namespace std;
// Kriptografi tugas 1
// Name : Moch. bardizba Z.
// Student id : 4611416038
// Web :http://bardizba.com
// Created on : 17th August 2018
// require : g++ with c++11 std, run with : g++ tugas.cpp -o tugas -std=c... |
#include "Geometry/EcalAlgo/interface/WriteESAlignments.h"
#include "FWCore/Framework/interface/ConsumesCollector.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "CondCore/DBOutputService/interface/PoolDBOutputService.h"
#include "CondCore/CondDB/in... |
#include "header.h"
#include <iostream>
#include "JPGImage.h"
#include "templates.h"
#include "BaseEngine.h"
#include "Bxf03uWall.h"
#include "Bxf03uHook.h"
#include "Bxf03uStage.h"
#include "BXf03uPlayer.h"
#include "Bxf03uObstacle.h"
Bxf03uStage::Bxf03uStage()
{
//load background to memory
bg = ImageData();
bg.Lo... |
/********************************************************************************
* ReactPhysics3D physics library, http://www.reactphysics3d.com *
* Copyright (c) 2010-2020 Daniel Chappuis *
*************************************************************************... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "src/developer/debug/debug_agent/watchpoint.h"
#include <zircon/status.h>
#include <gtest/gtest.h>
#include "src/developer/debug/debug_agent/arch.... |
// Copyright (C) 2015 The Regents of the University of California (Regents).
// 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 (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... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Types/SimpleTypes.hpp>
#include <RED4ext/Types/generated/world/Node.hpp>
namespace RED4ext
{
namespace world { struct Effect; }
namespace world {
... |
/*
* Copyright 2019 Codeplay Software 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 or... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
// Copyright 2020 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/javascript_dialogs/javascript_tab_modal_dialog_manager_delegate_android.h"
#include "chrome/browser/android/tab_android.h"
#i... |
// Copyright (c) 2012-2016 The TMIcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/test/unit_test.hpp>
#include "cuckoocache.h"
#include "script/sigcache.h"
#include "test/test_tmicoin.h"
#incl... |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
/***********************************************************************
* Software License Agreement (BSD License)
*
* Copyright 2011-2022 Jose Luis Blanco (joseluisblancoc@gmail.com).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... |
/***************************************************************************
Copyright 2015 Ufora 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/licen... |
#define __libmd_src_file__
#ifndef libmd_h
#include "../../libmd.h"
#endif
template<ui dim> void md<dim>::thread_index_stick(ui i)
{
//!
//! This function copies the current position <tt>x[]</tt> of particle <tt>i</tt> to <tt>xsk[]</tt>, for use by md<dim>::test_index().
//!
memcpy(particles[i].xsk,par... |
// Copyright 2016 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 "blimp/engine/renderer/blimp_engine_picture_cache.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
namespace blimp {
namespace en... |
#include "Game.hpp"
Game::Game(){
this->player = new Player(this->playerPos,this->playerModel,this->camera);
};
Game::~Game(){
}
void Game::update(){
this->player->render();
this->player->update();
} |
/*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/**
* Generated file
* @file
*
* Generator Version : 11.0.0-1988
*/
#p... |
/*
* Copyright (c) 2017 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// Copyright Epic Games, Inc. All Rights Reserved.
// Modified version of Recast/Detour's source file
//
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// 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... |
// Copyright (c) 2017-2020 The Ocvcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <crypto/muhash.h>
#include <crypto/chacha20.h>
#include <crypto/common.h>
#include <hash.h>
#include <cassert>
#in... |
/**
* \file
* \date April 15, 2013
* \author Zermingore
* \namespace graphics
* \brief GraphicsEngine class declaration
*/
#ifndef GRAPHICS_GRAPHICS_ENGINE_HH_
# define GRAPHICS_GRAPHICS_ENGINE_HH_
# include <memory>
# include <mutex>
# include <SFML/Graphics/RenderWindow.hpp>
# include <SFML/Window/Event.hpp>... |
// Copyright (c) 2017-2018 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
#include<boost/asio.hpp>
#include "server.hpp"
#include <boost/array.hpp>
server::server(boost::asio::io_service* io_service, unsigned short port)
: acceptor(*io_service, boost::asio::local::stream_protocol::endpoint("/home/anghenfil/foobar")){
start_accept();
}
using boost::asio::ip::tcp;
void server::start_acce... |
#include "debug_lldb.h"
#include <stdio.h>
#ifdef __APPLE__
#include <stdlib.h>
#endif
#include <boost/filesystem.hpp>
#include <iostream>
#include "terminal.h"
#include "filesystem.h"
#include "process.hpp"
#include "config.h"
extern char **environ;
void log(const char *msg, void *) {
std::cout << "debugger log: "... |
// 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/extensions/extension_apitest.h"
#include "base/string_util.h"
#include "base/stringprintf.h"
#include "chrome/browser/extens... |
#include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GT... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2014. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE... |
/*
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
// Copyright (c) 2011-2019 The F44RedCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/f44redcoin-config.h>
#endif
#include <qt/rpcconsole.h>
#include <qt/forms/ui_... |
/*
* Copyright (c) 2015-present, 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.
*
*/
#inc... |
// prebeep.cpp : source file that includes just the standard includes
// prebeep.pch will be the pre-compiled header
// prebeep.obj will contain the pre-compiled type information
//
// This is a part of the Active Template Library.
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code i... |
/*
* Copyright (c) 2014, Oculus VR, 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.
*
*/
... |
#include <iostream>
// IMPORT THIRD-PARTY LIBRARIES
#include <pxr/usd/usd/clipsAPI.h>
#include <pxr/usd/usd/stage.h>
int main() {
auto stage = pxr::UsdStage::CreateInMemory();
stage->SetStartTimeCode(0);
stage->SetEndTimeCode(12);
auto prim = stage->DefinePrim(pxr::SdfPath("/Prim"));
auto model ... |
// Copyright 2018 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... |
//Q102: Ecological Bin Packing
//accepted at 2011-08-27 12:59:38
//run time = 0.116
#include <iostream>
using namespace std;
bool compareLower(int moves, int currentmin);
int main(){
struct bin{
char bname;
int B,C,G;
};
int min, totalmoves, currentMoves;
min = 0;
totalmoves = 0;
cur... |
/* Copyright 2016 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 2018 Samsung Electronics 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... |
#include "ID2D1DeviceContext2.h"
#include "ID2D1Device2.h"
#include "ID2D1Ink.h"
#include "ID2D1InkStyle.h"
#include "ID2D1GradientMesh.h"
#include "ID2D1LookupTable3D.h"
#include "ID2D1ImageSource.h"
#include "ID2D1ImageSourceFromWic.h"
#include "ID2D1Brush.h"
#include "ID2D1GdiMetafile.h"
#include "ID2D1TransformedIm... |
#include "Core.h"
Core::Core(QObject *parent) : QTcpServer(parent){
Write("Server Started!");
}
void Core::incomingConnection(int Socket){
QTcpSocket *client = new QTcpSocket(this);
client->setSocketDescriptor(Socket);
Clients.insert(client);
connect(client, SIGNAL(readyRead()), this, SLOT(ReadyRead(... |
/*=========================================================================
Program: MAF2
Module: mafGUIGizmoScaleTest
Authors: Stefano Perticoni
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; w... |
#define PROBLEM "https://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_5_B"
#include "../../library/template.hpp"
#include "../../library/tree/rerooting.hpp"
#include "../../library/monoid/max_monoid.hpp"
int main(){
int n; scanf("%d",&n);
weighted_graph<int> T(n);
rep(i,n-1){
int u,v,c; scanf("%d%d%d",&... |
//
// Created by mzy on 2021-06-03.
//
#include "Simp.hpp"
Tree<ASTNode>* simp(Tree<ASTNode>* n,Tree<ASTNode>* l,Tree<ASTNode>* r){
switch (n->root.type) {
case NodeType_t::LogicAnd:
if(l->root.type==NodeType_t::True || r->root.type==NodeType_t::False)return r;
if(l->root.t... |
/*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics 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 th... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/foxitlib.h"
#define FWLTHEME_CAPACITY_CXFormBorder 3
#define... |
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "carla/client/World.h"
#include "carla/Logging.h"
#include "carla/client/Actor.h"
#in... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/*
* Copyright (C) 2018 Nagisa Sekiguchi
*
* 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) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are perm... |
/*
* 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 ... |
/**********************************************************************
Audacity: A Digital Audio Editor
Effect.cpp
Dominic Mazzoni
Vaughan Johnson
Martyn Shaw
*******************************************************************//**
\class Effect
\brief Base class for many of the effects in Audacity.
*//... |
/********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... |
// Copyright (c) 2013-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 <boost/test/unit_test.hpp>
#include "base58.h"
#include "key.h"
#include "uint256.h"
#include "util.h"
#include "ut... |
#include "Scene/System/CollisionSystem/CollisionRenderObject.h"
CollisionRenderObject::CollisionRenderObject(DAVA::Entity* entity, btCollisionWorld* word, DAVA::RenderObject* renderObject)
: CollisionBaseObject(entity, word)
{
if ((renderObject == nullptr) || (word == nullptr))
return;
DAV... |
#include "dynet/dynet.h"
#include "dynet/training.h"
#include "dynet/expr.h"
#include "dynet/lstm.h"
#include "dynet/mp.h"
#include "rnnlm.h"
#include <boost/algorithm/string.hpp>
#include <iostream>
#include <fstream>
#include <vector>
/*
TODO:
- The shadow params in the trainers need to be shared.
*/
using namespac... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "TestFunctions.h"
namespace facebook {
namespace hermes {
namespace synthtest {
const char *hostFunctionCreatesObjectsTr... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/frame_host/render_frame_host_impl.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/containers/hash_table... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holdi... |
#include <jni.h>
#include "context.h"
#include "NativeLog.h"
using namespace std;
std::shared_ptr<context> g_ctx;
//查看类的方法签名: javap -s com.lxl.someiplib.SomeIPClient
void on_message(const std::shared_ptr<vsomeip::message> &_message) {
int status;
JNIEnv* env = NULL;
status = g_ctx->vm->GetEnv((void **)&e... |
#pragma once
#if ! defined(yyFlexLexerOnce)
#undef yyFlexLexer
#define yyFlexLexer Json_FlexLexer
#include <FlexLexer.h>
#endif
#include "json_parser.hpp"
#include "location.hh"
namespace json {
class scanner : public Json_FlexLexer {
public:
scanner(std::istream &in, std::ostream &out) : Json_FlexL... |
/***** Vca::VCohort Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
#include "VpSocket.h" // Needed for waitpid.
#include "VC... |
#include "Base.h"
#include "Effect.h"
#include "FileSystem.h"
#include "Game.h"
#define OPENGL_ES_DEFINE "OPENGL_ES"
namespace gameplay
{
// Cache of unique effects.
static std::map<std::string, Effect*> __effectCache;
static Effect* __currentEffect = NULL;
Effect::Effect() : _program(0)
{
}
Effect::~Effect()
{
... |
/*
* @file eeprom.cpp
* @author Mikhail Ezhov <ezhov93@gmail.com>
* @brief EEPROM source file.
*/
#include "eeprom.h"
#include "MDR32F9Qx_eeprom.h"
#include "MDR32F9Qx_rst_clk.h"
void Eeprom::begin(Bank blank) {
_bank = blank;
uint32_t cpu = SystemCoreClock / 1e6;
RST_CLK_PCLKcmd(RST_CLK_PCLK_EEPROM, ENA... |
#ifndef TCLOBJECT_HH
#define TCLOBJECT_HH
#include "string_view.hh"
#include "openmsx.hh"
#include "xxhash.hh"
#include <tcl.h>
#include <iterator>
#include <cassert>
struct Tcl_Obj;
namespace openmsx {
class Interpreter;
class TclObject
{
// For STL interface, see below
struct iterator {
iterator(const TclObj... |
/**
* Purpose: text file CSV input example, C++ style
* Author: Emanuele Rizzolo
* Class: 3XIN
* Date: 2020/04/26
* Note: CSV stands for Comma Separated Values
*/
// directive for standard io functions
#include <iostream>
// directive for io manipulation
#include <iomanip>
... |
// Copyright 2021 The Tint 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed ... |
//
// Created by Robert David Hernandez on 3/29/20.
//
#include "State.h"
State::State(int x, int y, double reward) : x(x), y(y), reward(reward) {}
State::~State() {
}
int State::getX() const {
return x;
}
void State::setX(int x) {
State::x = x;
}
int State::getY() const {
return y;
}
void State::se... |
#pragma once
#include <GLFW/glfw3.h>
#include "hazel/renderer/graphics_context.hpp"
#include "hazel/core/window.hpp"
namespace hazel
{
class WindowsWindow : public Window
{
public:
WindowsWindow(const WindowProps& props);
virtual ~WindowsWindow();
void on_update() override;
unsigned int width() const over... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.MonoBehaviour
#include "UnityEngine/MonoBeh... |
/*
* Copyright (C) 2017 Open Source Robotics 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 appl... |
#ifndef TEST_PLUGIN_LOADER_HPP
#define TEST_PLUGIN_LOADER_HPP
#include "core_unit_test/test_global_context.hpp"
#include <string>
#include <vector>
namespace wgt
{
/**
* Plugin loader to be used by unit tests.
*/
class TestPluginLoader
{
public:
typedef std::vector<std::wstring> PluginList;
TestPluginLoader();
v... |
// Copyright (c) 2019 The DailyCrypto developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/dailycrypto/receivedialog.h"
#include "qt/dailycrypto/forms/ui_receivedialog.h"
#include "qt/dailycrypto/qtutils.h"
#i... |
#include "renderer_ui_app.h"
bool MyApp::OnInit()
{
MyFrame *frame = new MyFrame( "Hello World", wxPoint(50, 50), wxSize(450, 340) );
frame->Show( true );
return true;
} |
// Copyright (c) 2014-2017 The VillageCoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "base58.h"
#include "clientversion.h"
#include "init.h"
#include "netbase.h"
#... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTwoPointRadialGradient.h"
/* Two-point radial gradients are specified by two circles, each with a center
point and radius. The gradient can be considered to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.