text stringlengths 7 961k |
|---|
/*++
Copyright (c) 1999 Microsoft Corporation
Abstract:
@doc
@module SsDlg.cpp | Implementation of the Snapshot Set dialog
@end
Author:
Adi Oltean [aoltean] 07/23/1999
Revision History:
Name Date Comments
aoltean 07/23/1999 Created
aoltean 08/05/1999 Splitt... |
/* *****************************************************************************
* A.L.E (Arcade Learning Environment)
* Copyright (c) 2009-2013 by Yavar Naddaf, Joel Veness, Marc G. Bellemare and
* the Reinforcement Learning and Artificial Intelligence Laboratory
* Released under the GNU General Public License;... |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "Shift.h"
#include "ShiftCharacter.h"
//////////////////////////////////////////////////////////////////////////
// AShiftCharacter
AShiftCharacter::AShiftCharacter()
{
// Set size for collision capsule
GetCapsuleComponent()->InitCapsuleSize(42.... |
// Copyright (c) 2010 The WebM 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 contributing projec... |
// 符号类型与无符号类型的区别
// 得到的两个数字分别是4294967285和84
// 4294967285本身无意义
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
unsigned i = 0;
int a = -53;
cout << i + a << endl;
cout << i + i << endl;
system("pause");
return 0;
} |
// C:\diabpsx\SOURCE\INTERFAC.CPP
#include "types.h"
// address: 0x8003AD4C
// line start: 299
// line end: 308
void interface_msg_pump__Fv() {
}
// address: 0x8003AD54
// line start: 333
// line end: 571
void ShowProgress__FUi(unsigned int uMsg) {
// register: 17
register int nol;
// register: 18
register ... |
#ifndef GEOMETRICKS_MEMORY_ALLOCATOR_HPP
#define GEOMETRICKS_MEMORY_ALLOCATOR_HPP
#include <type_traits>
#include <cstddef>
#include "allocator/malloc_allocator.hpp"
#include "geometricks/meta/detect.hpp"
#include "geometricks/meta/utils.hpp"
/**
* @file
* @brief Implements the allocator concepts used for the data s... |
/*
* Copyright 2009-2017 Alibaba Cloud 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 tests/loss_functions_test.cpp
* @author Dakshit Agrawal
* @author Sourabh Varshney
* @author Atharva Khandait
* @author Saksham Rastogi
*
* Tests for loss functions in mlpack::methods::ann:loss_functions.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of th... |
/****************************************************************************
** Copyright (c) 2019 Evgeny Teterin (nayk) <sutcedortal@gmail.com>
** All right reserved.
**
** Permission is hereby granted, free of charge, to any person obtaining
** a copy of this software and associated documentation files (the
** "Soft... |
#include "pch.h"
#include "CppUnitTest.h"
#include <set>
#include "../AKSPrimalityTest/AKS.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace AKStests
{
TEST_CLASS(AKStests)
{
public:
TEST_METHOD(TestBelow100)
{
std::set<int> primes = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 4... |
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Copyright (c) 2017 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "key.h"
#include "arith_uint256.h"
#include "crypto/common.h"
#include "... |
// Copyright 2015 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 <memory>
#include <string>
#include "ash/login_status.h"
#include "ash/public/cpp/ash_switches.h"
#include "ash/public/cpp/ash_view_ids.h"
#incl... |
/*
* Created by Hassan "Karajorma" Kazmi and Josh "jg18" Glatt for The FreeSpace 2 Source Code Project.
* You may not sell or otherwise commercially exploit the source or things you
* create based on the source.
*/
#include <algorithm>
#include <array>
#include <iterator>
#include "gamesequence/gamesequence.h"
#i... |
/*
* ClassLoader.cpp
*
* Created on: Feb 6, 2014
* Author: Shanee
*/
#include "ClassLoader.h"
namespace Android
{
ClassLoader::ClassLoader()
{
m_pEnv = NULL;
m_hClass = NULL;
m_pObject = NULL;
m_hFindClassMethod = NULL;
}
void ClassLoader::InitJNI( JNIEnv* pEnv, jclass hActivityClass,... |
#pragma once
namespace elasticsearch {
namespace request {
enum method_t {
get,
post
};
} // namespace request
} // namespace elasticsearch |
//-----------------------------------------------------------------------------
// 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... |
///*
// link: https://practice.geeksforgeeks.org/problems/reach-a-given-score-1587115621/1
//
// variation of unbound knapsack.
//
// how it is different than rop cutting problem?
// ans : In rope cutting we were aiming to return max length while here we want distict pairs
//
//*/
//
//// ------------------... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
#include "program-options.hh"
#include <regex>
namespace bpo = boost::program_options;
namespace hamtori {
namespace program_options {
hamtori::sstring get_or_default(const string_map& ss, const hamtori::sstring& key, const hamtori::sstring& def) {
const auto iter = ss.find(key);
if (iter != ss.end()) {
... |
// Copyright (c) 2019 by Robert Bosch GmbH. 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... |
// Copyright Vladimir Prus 2004.
// 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_VIRTUAL_CONSTRUCTORS_VP_2004_08_05
#define BOOST_VIRTUAL_CONSTRUCTORS_VP_2004_08_05
#include <boost/config.hpp>
#in... |
// Copyright (c) 2017-2018 The PIVX developers
// Copyright (c) 2018 The Wagerr developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "privacydialog.h"
#include "ui_privacydialog.h"
#include "addressbookpage.h"
#i... |
#include "infra/log.h"
#include <cstdlib>
#include <gtest/gtest.h>
using namespace testing;
int main(int argc, char** argv)
{
inf::Log::add_console_sink(inf::Log::Colored::On);
inf::LogRegistration logReg("UiInfraTest");
InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
} |
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list ... |
/***********************************************************************************************************************
* 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... |
// -*- C++ -*- Copyright (c) Microsoft Corporation; see license.txt
#include "libHh/Buffer.h"
#if defined(_WIN32)
#include <fcntl.h> // O_RDONLY
#include <io.h> // read(), write(), open(), dup()
#define WIN32_LEAN_AND_MEAN
#include <Windows.h> // WaitForSingleObject(), CreateThread(), SetEvent(), etc.
#define B... |
//===-- TargetSelectionDAGInfo.cpp - SelectionDAG Info --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "test_precomp.hpp"
using namespace std;
namespace opencv_test { namespace {
static inline long long getFileSize(c... |
#include <v4r/common/miscellaneous.h>
#include <v4r/common/impl/miscellaneous.hpp>
namespace v4r
{
template V4R_EXPORTS void convertToFLANN<flann::L1<float> > (const std::vector<std::vector<float> > &, boost::shared_ptr< flann::Index<flann::L1<float> > > &flann_index); // explicit instantiation.
template V4R_EXPORTS ... |
#include <stan/math/prim/scal.hpp>
#include <boost/math/distributions.hpp>
#include <gtest/gtest.h>
#include <boost/random/mersenne_twister.hpp>
#include <math/prim/scal/prob/util.hpp>
#include <limits>
#include <vector>
TEST(ProbDistributionsSkewNormal, error_check) {
boost::random::mt19937 rng;
EXPECT_NO_THROW(s... |
// This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/discovery/model/DeleteTagsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/cor... |
#include "nsasm/assembler.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/str_format.h"
namespace nsasm {
void Assembler::AddModule(Module&& module) {
modules_.push_back(std::move(module));
}
nsasm::ErrorOr<void> Assembler::AddAsmFile(const File& file) {
auto module = Module::LoadAsmFile(fil... |
/*******************************************************************************
* Copyright 2016-2020 Intel Corporation
*
* 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... |
#ifndef _FIXIE_LIB_CAPS_HPP_
#define _FIXIE_LIB_CAPS_HPP_
#include <vector>
#include <cstddef>
#include "fixie/fixie_gl_types.h"
#include "range.hpp"
namespace fixie
{
class caps
{
public:
caps();
GLsizei& max_lights();
const GLsizei& max_lights() const;
GLsizei& max_cli... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int t, n, a, x;
scanf("%d", &t);
while(t--)
{
x=0;
scanf("%d",&n);
for(int i=1; i<=n; i++)
{
scanf("%d",&a);
if(a&1) x=(x^i);
}
if(x==0) printf("Hanks Wins\n");
e... |
/*
Copyright (C) 2018-2019 UiPath, All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, p... |
#include "stdafx.h"
#include "../../SolutionAssemblyInfo.h"
using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;
//
// General Information about an assembly is con... |
#define CL_HPP_CL_1_2_DEFAULT_BUILD
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY 1
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
//OCL_CHECK doesn't work if call has templatized function call
#define OCL_CHECK(error,c... |
/*
* 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 "GrGpuFactory.h"
#include "GrGpu.h"
#include "gl/GrGLConfig.h"
#include "gl/GrGLGpu.h"
static CreateGpuProc gGpuFactories[kBackendCount] = { GrGLGpu::Create, nullp... |
// Copyright (c) 2018-2019, Zhirnov Andrey. For more information see 'LICENSE'
#include "stl/Algorithms/StringUtils.h"
#include "stl/Algorithms/EnumUtils.h"
#include "engine/Application.h"
#include "framework/Window/WindowGLFW.h"
#include "framework/Window/WindowSDL2.h"
namespace VTC
{
/*
=========================... |
//Author:LanceYu
#include<iostream>
#include<string>
#include<cstring>
#include<cstdio>
#include<fstream>
#include<iosfwd>
#include<sstream>
#include<fstream>
#include<cwchar>
#include<iomanip>
#include<ostream>
#include<vector>
#include<cstdlib>
#include<queue>
#include<set>
#include<ctime>
#include<algorithm>
#includ... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "../../common/array.hpp"
#include "../../common/halo_descriptor.hpp"
#include "wrap_argument.hpp"
template <typename val... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/accessanalyzer/model/UpdateFindingsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::AccessAnalyzer::Model;
using namespace Aws::Utils:... |
/****************************************************************************
Copyright (c) 2008-2010 Ricardo Quesada
Copyright (c) 2010-2012 cocos2d-x.org
Copyright (c) 2011 Zynga Inc.
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any... |
// Copyright 2018 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 <lib/fxl/log_level.h>
#include <lib/fxl/logging.h>
#include "fake-control-impl.h"
namespace simple_camera {
const char* kFakeVendorName = "Fake... |
#ifndef JSONUTILS_HPP
#define JSONUTILS_HPP
#include <QFileDialog>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QMessageBox>
#include <QPair>
#include <QVariant>
#include <QVector>
#include <includes/NetworkUtils.hpp>
namespace ju {
QString get_name(const QString& fileName);
QStrin... |
/**
* \file CrdWznmVer_evals.cpp
* job handler for job CrdWznmVer (implementation of availability/activation evaluation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
using namespace std;
using namespace... |
#ifndef TYPERESOLVER_HPP
#define TYPERESOLVER_HPP
#include "ast/node.hpp"
#include "ast/nodeVisitor.hpp"
#include "ast/vslContext.hpp"
#include "irgen/typeConverter/typeConverter.hpp"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
/**
* Gathers information on type declara... |
#pragma once
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <System.h>
#include <Shader.hpp>
#include <Camera.hpp>
#include <Model.hpp>
class ForwardRenderHeavy
{
public:
ForwardRenderHeavy()
{
forwardRender ... |
//===--- LexerUtils.cpp - clang-tidy---------------------------------------===//
//
// 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
//
//===---------------------------... |
class Foo
{
public:
Foo()
{
// code to do A
}
Foo(int nValue): Foo() // use Foo() default constructor to do A
{
// code to do B
}
}; |
/*
* Copyright (C) 2012 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condition... |
#pragma once
#include <cstdint>
#include <limits>
#include "L1_Peripheral/i2c.hpp"
#include "L2_HAL/sensors/movement/accelerometer.hpp"
#include "utility/bit.hpp"
#include "utility/enum.hpp"
#include "utility/map.hpp"
namespace sjsu
{
/// Driver for the Mpu6050 3-axis accelerometer
class Mpu6050 : public Acceleromet... |
// 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 "components/pdf/browser/pdf_web_contents_helper.h"
#include <utility>
#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
#inc... |
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <algorithm>
#include <glm/glm.hpp>
#include "Types.h"
#include "TetraMesh.h"
#include "TetraMeshIO.h"
using namespace std;
namespace{
int sgn(double val){
return ((double(0) < val) - (val < double(0)));
}
}
nam... |
/*!
* Copyright (c) 2016 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/log.h>
#include <LightGBM/utils/random.h>
#include <limits... |
#include <stdio.h>
#include <math.h>
#include <iostream>
//#include <RuntimeException.h>
using namespace std;
// function to compute b in x' = A x + b(t,z) + r
extern "C" void Rampb(double time, unsigned int sizeOfB, double* b, unsigned int sizeOfZ, double *z)
{
//double epsitime = 1e-15;
double VlowRamp = z[0];... |
#include <iostream>
#include <algorithm>
#include <string>
typedef long long int ll;
using namespace std;
#define NM 300
int N, M;
char a[NM][NM];
void input() {
cin >> N >> M;
for (int i = 1; i <= N; i++) {
for (int j = 1; j <= M; j++) {
cin >> a[i][j];
}
}
}
int dir[4][2] = { {1,0},{0,1},{-1,0},{0,-1} }... |
// Copyright (c) 2012-2018 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 <util.h>
#include <support/allocators/secure.h>
#include <test/test_veil.h>
#include <memory>
#include <boost/tes... |
#include <BWAPI/AIModule.h>
#include <Debug.h>
namespace BWAPI
{
AIModule::AIModule()
{ }
AIModule::~AIModule()
{ }
void AIModule::onStart()
{ }
void AIModule::onEnd(bool)
{ }
void AIModule::onFrame()
{ }
void AIModule::onSendText(std::string)
{ }
void AIModule::onReceiveText(Player, std::st... |
/*
* Copyright (c) 2011 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... |
/*
* \class PulseFitWithFunction
*
* \author: Patrick Jarry - CEA/Saclay
*/
// File PulseFitWithFunction.cxx
// ===========================================================
// == ==
// == Class for a function fit method ==
// == ... |
/***************************************************************************
qgsgridfilewriter.cpp
---------------------
begin : Marco 10, 2008
copyright : (C) 2008 by Marco Hugentobler
email : marco dot hugentobl... |
version https://git-lfs.github.com/spec/v1
oid sha256:9c629b67951f35b7f4fe46a58b594a954a5c0ccd92ff05b5ba2214e8306e6e56
size 4868 |
/*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_TOOL_CAMERA_HPP_INCLUDED
#define CAFU_TOOL_CAMERA_HPP_INCLUDED
#include "Tool.hpp"
#include "Math3D/Vector3.hpp"
#include "Templates/Array.hpp"
class C... |
/*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* 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 Foundation; either version 2 of the License, or (at your option)
* any later versi... |
// Copyright (c) 2013 The Chromium OS 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 "cryptohome/pkcs11_keystore.h"
#include <map>
#include <string>
#include <vector>
#include <base/strings/string_number_conversions.h>
#i... |
#include "DMK.h"
//int main() {
// //DMK::Matrix<int> localMatrix;
// //localMatrix.set({ {1, 2, 3} });
// //localMatrix.multiply(3);
// //auto container = localMatrix.get();
//
// return 0;
//} |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/waf/model/ChangeAction.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
nam... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
* Author: Deklyn Palmer.
* Editors:
* - Deklyn Palmer.
*/
#include "Animator.h"
namespace Kross
{
Animator::~Animator()
{
/* Clear the Data. */
for (int i = 0; i < m_Animations.size(); i++)
{
/* Destroy each Animation. */
Animation::OnDestroy(m_Animations[i]);
m_Animations[i] = nullptr;... |
/***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2021
//
// 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 "td/telegram/AnimationsManager.h"
#include "td/tele... |
// 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 "crazy_linker_shared_library.h"
#include <stdlib.h>
#include <sys/mman.h>
#include <elf.h>
#include "crazy_linker_ashmem.h"
#include "crazy_lin... |
// Copyright 2021 Intel Corporation
//
// 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... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* h... |
/**
* File : map.tcc
* Explain : C++ Ordered map implementation
* Author : Mehmet Ekemen
* Nickname : `hun
* Email : ekemenms@hotmail.com
* Date : 5.12.2012 (DD-MM-YYYY) (Updated)
* Github : github.com/hun756
* Resource : https://github.com/hun756... |
// Copyright (c) 2016 Intel Corporation
//
// 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) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
#pragma once
#include "utils/Logger.hpp"
class Blackboard;
class Adapter {
protected:
Adapter(Blackboard *blackboard) {
this->blackboard = blackboard;
llog(INFO) << "Adapter loaded" << std::endl;
}
Blackboard *blackboard;
}; |
/*
* Copyright 2017 Andrey Semashev
*
* Distributed under the Boost Software License, Version 1.0.
* See http://www.boost.org/LICENSE_1_0.txt
*
* This header is deprecated, use boost/winapi/get_last_error.hpp instead.
*/
#ifndef BOOST_DETAIL_WINAPI_GET_LAST_ERROR_HPP
#define BOOST_DETAIL_WINAPI_GET_LAST_ERROR_H... |
/*++
Copyright (C) Microsoft Corporation, 1992 - 1999
Module Name:
wmsgpack.hxx
Abstract:
This file contains the definitions of the packet formats used by
RPC on LPC.
Author:
Steven Zeck (stevez) 11/12/91
Revision History:
15-Dec-1992 mikemon
Rewrote the majority of the code.
... |
// 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 "gin/function_template.h"
namespace gin {
namespace internal {
CallbackHolderBase::CallbackHolderBase(v8::Isolate* isolate)
: v8_ref_(isol... |
/* Copyright 2007-2015 QReal Research Group
*
* 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) 2018, The TurtleCoin Developers
// Copyright (c) 2019, The GalacticBits Developers
//
// Please see the included LICENSE file for more information.
////////////////////////////////////
#include <zedwallet++/AddressBook.h>
////////////////////////////////////
#include <config/WalletConfig.h>
#includ... |
// dllmain.cpp : 定义 DLL 应用程序的入口点。
#include "pch.h"
#include <Windows.h>
#include "resource.h"
#include <stdio.h>
#include <WINSOCK2.H>
#include <ctime>
#include <stdlib.h>
#include "cJSON.h"
#include <atlstr.h>
#include "sendMessage.h"
#include "socketTool.h"
#include "RecevMessage.h"
#include "utils.h"
#include "ge... |
/*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* 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 2012 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/v8.h"
#include "src/accessors.h"
#include "src/api.h"
#include "src/base/bits.h"
#include "src/base/once.h"
#include "src/base/utils/rand... |
// dear imgui, v1.77 WIP
// (main code and documentation)
// Help:
// - Read FAQ at http://dearimgui.org/faq
// - Newcomers, read 'Programmer guide' below for notes on how to setup Dear ImGui in your codebase.
// - Call and read ImGui::ShowDemoWindow() in imgui_demo.cpp. All applications in examples/ are doing that.
/... |
/*
* Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... |
/*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... |
/*
* \brief Block device backend for lwext4
* \author Josef Soentgen
* \date 2017-08-01
*/
/*
* Copyright (C) 2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
/* Genode includes */
#include... |
#include <stdio.h>
#include "Halide.h"
using namespace Halide;
int main(int argc, char **argv) {
Var x, y;
Var xo, xi, yo, yi;
Func f, g;
printf("Defining function...\n");
f(x, y) = cast<float>(x);
g(x, y) = f(x+1, y) + f(x-1, y);
Target target = get_jit_target_from_environment();
... |
// Copyright (c) 2012-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "clientversion.h"
#include "tinyformat.h"
#include <string>
/**
* Name of client reported in the 'version' message. R... |
#include "Java.h"
#include <algorithm>
#include <stdexcept>
#include <string>
#include "SDK/java/lang/ClassLoader.h"
Java::~Java()
{
Release();
}
void Java::Init()
{
if ( !m_VM )
{
jsize Count;
if ( auto Error = JNI_GetCreatedJavaVMs( &m_VM, 1, &Count ); Error != JNI_OK || Count == 0 )
throw std::runtime_e... |
version https://git-lfs.github.com/spec/v1
oid sha256:c665a48cfd0a94eb572ed7488b6c55bf6aa521deca288db14285f8b7c4e13144
size 13449 |
#include "../Interfaces.h"
#include "Inventory.h"
#include "ItemGenerator.h"
#include "../Memory.h"
#include "../SDK/GlobalVars.h"
#include "../SDK/ItemSchema.h"
#include "../SDK/Panorama.h"
#include "StaticData.h"
#include "ToolUser.h"
#include "GameItems/Lookup.h"
#include "Inventory/Item.h"
#include "Inventory/Stru... |
//
// $Id: mzidtxt.cpp 2820 2011-06-27 22:51:16Z chambm $
//
//
// Original author: Robert Burke <robert.burke@proteowizard.org>
//
// Copyright 2010 Spielberg Family Center for Applied Proteomics
// University of Southern California, Los Angeles, California 90033
//
// Licensed under the Apache License, Version 2.0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.