text stringlengths 5 1.04M |
|---|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "crypto/hmac.h"
#include <openssl/hmac.h>
#include <algorithm>
#include <vector>
#include "base/logging.h"
#include "base/memory/scoped_pt... |
/*
* Copyright (c) 2010 by Cristian Maglie <c.maglie@bug.st>
* SPI Master library for arduino.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public License version 2.1, both as
* published ... |
/**
*
* NermalProxy
*
* Copyright 2019 Mark Slevinsky
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list
* of conditions and... |
//
// posix/stream_descriptor.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// 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)
//
#if... |
#include "ofxPatches/Manager.h"
using namespace ofxPatches;
Manager::Manager(){
name = "Manager";
filename = "";
output = NULL;
manager = this;
allowBypass = false;
fragmentShader = "void main(void){}";
}
Manager::~Manager(){
}
void Manager::setup(int nSources, string name, string filename){
nSources ++; // o... |
#include "uritests.h"
#include "../guiutil.h"
#include "../walletmodel.h"
#include <QUrl>
void URITests::uriTests()
{
SendCoinsRecipient rv;
QUrl uri;
uri.setUrl(QString("newyorkc:LQDPC5rbjDB72fGFVHu4enYhxGAZuRiFh9?req-dontexist="));
QVERIFY(!GUIUtil::parseBitcoinURI(uri, &rv));
uri.setUrl(QStrin... |
// Copyright John Maddock 2005-2008.
// Copyright (c) 2006-2008 Johan Rade
// Use, modification and distribution are subject to 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_MATH_FPCLASSIFY_HPP
#define BO... |
#include <iostream>
#include <regex.h>
#include <regex_tokenizer.h> // @manual
#include <sentencepiece.h> // @manual
#include <torch/script.h>
#include <vectors.h> // @manual
#include <vocab.h> // @manual
namespace torchtext {
TORCH_LIBRARY_FRAGMENT(torchtext, m) {
m.class_<Regex>("Regex")
.def(torch::init... |
/*
Copyright (c) 2012-2018, 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 ... |
//===--- ParseSIL.cpp - SIL File Parsing logic ----------------------------===//
//
// 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... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* 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 http://mozilla.org/MPL/2.0/. */
... |
/*
* Copyright (c) 2016, The OpenThread 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
int Solution::divide(int p, int q) {
long long A = p,B = q;
if(B==0) return INT_MAX;
if(B==1) return A;
bool sign = 0;
long long int ans = 0;
if(A<0) sign = (!sign);
if(B<0) sign = (!sign);
A = abs(A),B = abs(B);
if(B>A) return 0;
while(A>B){
for(long long int i=31;i>=0;i... |
/* Copyright 2015 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... |
#include "ShimClient.h"
#include "trace.h"
#include <iostream>
#include <Arduino.h>
#include <ctime>
extern "C" {
uint32_t millis(void) {
return time(0)*1000;
}
}
ShimClient::ShimClient() {
this->responseBuffer = new Buffer();
this->expectBuffer = new Buffer();
this->_allowConnect = true;
... |
//===----------------------------------------------------------------------===//
//
// PelotonDB
//
// workload.cpp
//
// Identification: benchmark/tpcc/workload.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===------------------------------------------------------... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
// RUN: %check_clang_tidy %s android-cloexec-dup %t
extern "C" int dup(int oldfd);
void f() {
dup(1);
// CHECK-MESSAGES: :[[@LINE-1]]:3: warning: prefer fcntl() to dup() because fcntl() allows F_DUPFD_CLOEXEC [android-cloexec-dup]
// CHECK-FIXES: fcntl(1, F_DUPFD_CLOEXEC);
int oldfd = 0;
dup(oldfd);
// CHE... |
/**
* @author SANKALP SAXENA
*/
#include <iostream>
#include <cstdio>
using namespace std;
/*
Add `int max_of_four(int a, int b, int c, int d)` here.
*/
int max_of_four(int a, int b, int c, int d) {
int max;
if((a > b) && (a > c) && (a > d))
max = a;
else if((b > a) && (b > c) && (b > d))
... |
/*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "dll_log.hpp"
#include "d3d12_device.hpp"
#include "d3d12_command_list.hpp"
#include "d3d12_command_queue.hpp"
#include "d3d12_command_queue_downlevel.hpp"
#include <malloc.h>
D3D12CommandQ... |
// 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 "base/bind.h"
#include "base/json/json_writer.h"
#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.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 a... |
/* Copyright 2021-2022 NVIDIA 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) 2009-2014 The Straks 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/straks-config.h"
#endif
#include <cstddef>
#if defined(HAVE_SYS_SELECT_H)
#inclu... |
/**
* Copyright (c) 2009 Carnegie Mellon University.
* 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... |
// speech-project.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <math.h>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <sstream>
#include <windows.h>
#define CONVERGE_ITERATIONS 200
#define M 32 //Number of obseva... |
/*
* Copyright (C) 2017 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... |
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
class Solution {
public:
int numIslands(vector<vector<char>>& grid) {
if (grid.empty()) {
return 0;
}
rows = grid.size();
cols = grid[0].size();
vector<vector<bool>> marked(rows, ve... |
#include "ZeloPreCompiledHeader.h"
#include "skybox.h"
SkyBox::SkyBox() {
float side = 50.0f;
float side2 = side / 2.0f;
float v[24 * 3] = {
// Front
-side2, -side2, side2,
side2, -side2, side2,
side2, side2, side2,
-side2, side2, side2,
... |
/******************************************************************************/
//
// DEVICE.CPP - Source code for the TSPIDevice class
//
// Copyright (C) 1994-2004 JulMar Enterta... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "EFBTTaskSetBlackboardVector.h"
#include "AIController.h"
#include "BehaviorTree/BlackboardComponent.h"
#include "BehaviorTree/Blackboard/BlackboardKeyType_Object.h"
#include "BehaviorTree/Blackboard/BlackboardKeyType_Vector.h"
... |
/* file: df_classification_train_dense_default_batch_fpt_cpu.cpp */
/*******************************************************************************
* Copyright 2014-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... |
// Copyright (c) 2011-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 "data/script_tests.json.h"
#include "core_io.h"
#include "key.h"
#include "keystore.h"
#include "script/script.h"
#... |
#include "L1Trigger/GlobalCaloTrigger/test/L1GctLutFromFile.h"
|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE476_NULL_Pointer_Dereference__class_45.cpp
Label Definition File: CWE476_NULL_Pointer_Dereference__class.label.xml
Template File: sources-sinks-45.tmpl.cpp
*/
/*
* @description
* CWE: 476 NULL Pointer Dereference
* BadSource: Set data to NULL
* GoodSource: ... |
/*
* Project2 - indexR
* EECS 3540 - Project 2
* Jospeh Livecchi
* Hash Table Source - A thread safe hash table with read/write locks.
dynamical resizes, collisions are handled by linked list
*/
#include "SafeHashTable.h"
SafeHashTable::SafeHashTable(){
//buckets = new vector<SafeBucket*>();
this->... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include <mango/simd/simd.hpp>
namespace mango::simd
{
// -----------------------------------------------------------------
// f64x2
// -------------------------------... |
/* ************************************************************************
* Copyright 2018-2019 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "cblas_interface.hpp"
#include "near.hpp"
#include "rocblas.hpp"
#include "rocblas_init.hpp"
#include "... |
// Copyright 2010-2021, 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 condit... |
/*
* EasyWave - A realtime tsunami simulation program with GPU support.
* Copyright (C) 2014 Andrey Babeyko, Johannes Spazier
* GFZ German Research Centre for Geosciences (http://www.gfz-potsdam.de)
*
* Parts of this program (especially the GPU extension) were developed
* within the context of the following publ... |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/device/device.h"
#include "shared/source/device_binary_format/elf/elf.h"
#include "shared/source/device_binary_format/elf/elf_decoder.h"
#include "shared/source/device_binary_format/elf/ocl_elf.h"
#include... |
/// @file
/// @brief QV/C++ port to ARM Cortex-M, ARM-CLANG toolset
/// @cond
///***************************************************************************
/// Last updated for version 6.9.1
/// Last updated on 2020-09-23
///
/// Q u a n t u m L e a P s
/// ---------------------... |
/*! \file csv.hpp
\brief Text input and output archives */
/*
Copyright (c) 2014, Randolph Voorhies, Shane Grant
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 sou... |
/*
* MIT License
*
* Copyright (c) 2020-2021 Jannis Weis
*
* 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, mo... |
/****************************************************************************************
* @author: kzvd4729 created: Jul/07/2019 16:03
* solution_verdict: Accepted language: GNU C++14
* run... |
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstring>
using namespace std;
const int MAX_SIZE = 80;
bool word_check(char* riga);
bool at_check(char* riga);
int main(int argc, char** argv)
{
if (argc != 3)
{
cerr << "Invalid number of parameters. Terminating..." << endl;
exit(EXIT_FAILURE... |
/*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... |
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: google/analytics/data/v1beta/analytics_data_api.proto
#include "google/analytics/data/v1beta/analytics_data_api.pb.h"
#include "google/analytics/data/v1beta/analytics_data_api.grpc.pb.h"
#include <functional>
#include ... |
#include "BioSequences.h"
//how to use the module
//g++ BioSequenceTest.cpp -L. -lbiosequences_core -lboost_filesystem -lboost_system
int main()
{
BioSequences bs;
string db_fa = "/home/xuan/biosequence/BioSequence/t2.fa";
int i = bs.guessFormat(db_fa);
int j = bs.getNumSeqs(db_fa);
cout << "i = " ... |
/*
* Copyright (c) 2014 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 (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 <cstring>
#include "base/strings/utf_string_conversions.h"
#include "ppapi/c/dev/ppb_memory_dev.h"
#include "ppapi/c/pp_errors.h"
#include "... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013. 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.
====... |
#include "App.h"
#include "Gui.h"
int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev, LPSTR args, int cmd)
{
Gui display("Visualiser: Press 'O' to open PPM file");
App app;
app.setupOpenCL();
app.setupMask();
display.onInput([&](int key, int state) {
if (key == GLFW_KEY_DOWN && state ... |
/**
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*
* Copyright (C) 2022 Elisha Riedlinger
*
* 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 from the us... |
/* Copyright 2018 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 ... |
////////////////////////////////////////////////////////////////////////////
// SSWND.CPP
//
// Implementation of CScreenSaverWindow
//
// History:
//
// Author Date Description
// ------ ---- -----------
// jaym 08/26/96 Created
// jaym 01/24/97 Added password verification
//... |
#include <iostream>
#include <string>
#include <vector>
#include <stdio.h>
#include <fstream>
// #include <IEGA/string_manip.hpp>
#include "gstd.hpp"
#include <sstream>
#include <bitset>
#include <map>
#include <cmath>
#include <ctgmath>
//CXCOMPILE make
#define NUM_WORD 8
#define COUT_ERROR cout << "ERROR [f='" << ... |
// 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 "components/exo/wm_helper_ash.h"
#include "ash/common/accessibility_delegate.h"
#include "ash/common/wm/maximize_mode/maximize_mode_controller.h... |
#pragma once
#include <moodycamel/blockingconcurrentqueue.h>
#include <thread>
#include "common.hpp"
#include "components/types.hpp"
#include "events/signal_fwd.hpp"
#include "events/signal_receiver.hpp"
#include "events/types.hpp"
#include "settings.hpp"
#include "utils/actions.hpp"
#include "utils/file.hpp"
#inclu... |
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <iosfwd> // for stringstream
#include <string>
#include "input.h"
#include "lexer.h"
std::stringstream buffer;
SourceLocation CurLoc;
SourceLocation LexLoc;
std::string IdentifierStr;
double NumVal;
auto getTokName(int Tok) -> std::string {
switch (... |
#include <ny/ny.hpp>
#include <SkBitmap.h>
#include <SkCanvas.h>
#include <SkImage.h>
#include <SkPath.h>
#include <SkSurface.h>
class MyEventHandler : public ny::EventHandler
{
public:
ny::BufferSurface* buffer;
public:
MyEventHandler(ny::LoopControl& mainLoop, ny::WindowContext& wc) : lc_(mainLoop), wc_(wc) {}
... |
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <string>
#include <sstream>
using namespace std;
#define PB push_back
#define MP make_pair
#define lowbit(x) ((x)&(-(x)))
#define ... |
/*
* Copyright 2010-2016 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" file... |
#include <stdlib.h>
#include "Game/Components/LinkedEntityComponent.h"
#include "Game/Components/PlayerCameraComponent.h"
#include "Game/Components/PlayerMovementComponent.h"
#include "GameBoard.h"
#include "GameEngine/EntitySystem/Components/CollidablePhysicsComponent.h"
#include "GameEngine/EntitySystem/Components/L... |
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2001-2002 Vivid Solutions Inc.
* Copyright (C) 2005 Refractions Research Inc.
*
* This is free software; you can redistribute and/or modify it under
* the ter... |
// Copyright (c) 2012-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 <dbwrapper.h>
#include <uint256.h>
#include <random.h>
#include <test/test_bytz.h>
#include <memory>
#include <boo... |
/*
* Copyright 2021 4Paradigm
*
* 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 w... |
///////////////////////////////////////////////////////////////
// BastArtifact.cpp
// BastArtefact - артефакт мочалка
///////////////////////////////////////////////////////////////
#include "StdAfx.h"
#include "BastArtifact.h"
#include "xrPhysics/PhysicsShell.h"
#include "xrPhysics/ExtendedGeom.h"
#include "Particle... |
#include <dae.h>
#include <dae/daeDom.h>
#include <1.5/dom/domJoint_limits.h>
#include <dae/daeMetaCMPolicy.h>
#include <dae/daeMetaSequence.h>
#include <dae/daeMetaChoice.h>
#include <dae/daeMetaGroup.h>
#include <dae/daeMetaAny.h>
#include <dae/daeMetaElementAttribute.h>
namespace ColladaDOM150 {
daeElementRef
domJ... |
#include "Utils_WS.h"
#include "TMath.h"
#include <Math/DistFunc.h>
#include <Math/QuantFuncMathCore.h>
namespace Utils_WS
{
double pvalueToSignificance(double p)
{
// return TMath::Sqrt(2.0) * TMath::ErfInverse(1.0 - 2.0 * p);
return TMath::NormQuantile(1.0 - p);
}
double significanceToPvalue(double z)
{
... |
// -----------------------------------------------------------------------------------------
// NVEnc by rigaya
// -----------------------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2014-2016 rigaya
//
// Permission is hereby granted, free of charge,... |
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkMultiBlockDataSetAlgorithmWrap.h"
#include "vtkStructuredGridPartitionerWrap.h"
#include "vtkObjectWrap.h"
#include "../../plus/plus.h"
usi... |
/*
* Copyright 2014-present IVK JSC. 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 appl... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Raven Core developers
// Copyright (c) 2020 The Chellit Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "editaddressd... |
#define USE_SWIZZLE
#include "CustomMaterialParameterFS.h"
#include "../../../../General/Template/TShaderMacro.h"
using namespace PaintsNow;
CustomMaterialParameterFS::CustomMaterialParameterFS() {
description = TShared<CustomMaterialDescription>::From(new CustomMaterialDescription());
}
String CustomMaterialParame... |
#include "core_headers.h"
//TODO : Currently, any strings with spaces will cause the star file (but not binary) reader to break - needs to be fixed.
// ADDING A NEW COLUMN
// ----------------------
// See top of cistem_parameters.cpp for documentation describing how to add a new column
cisTEMStarFileReader::cisTEMS... |
#include "sendcoinsdialog.h"
#include "ui_sendcoinsdialog.h"
#include "walletmodel.h"
#include "addresstablemodel.h"
#include "addressbookpage.h"
#include "bergcounits.h"
#include "addressbookpage.h"
#include "optionsmodel.h"
#include "sendcoinsentry.h"
#include "guiutil.h"
#include "askpassphrasedialog.h"
#include ... |
#include "SharkAnimInstance.h"
USharkAnimInstance::USharkAnimInstance() {
this->SharkState = ESharkEnemyState::Idle;
this->IsCloseToGround = false;
this->AttackConnected = false;
this->IsAttackingAndAttackNotConnected = false;
this->IsNotAttackingOrAttackConnected = false;
this->IsFalling = fal... |
// Copyright (c) 2011-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.
#define BOOST_TEST_MODULE BitenX Test Suite
#include "test_bitenx.h"
#include "chainparams.h"
#include "consensus/consensus... |
#include "lzma2.h"
#include "mordor/assert.h"
#include "mordor/exception.h"
#include "mordor/log.h"
#ifdef MSVC
#pragma comment(lib, "liblzma")
#endif
namespace Mordor {
static Logger::ptr g_log = Log::lookup("mordor:streams:lzma2");
LZMAStream::LZMAStream(Stream::ptr parent, uint32_t preset, lzma_check check, boo... |
/* Goal: use constant variables */
#include <iostream>
int main()
{
using std::cout;
const int weight_goal = 100;
cout << "WeightGoal = " << weight_goal << "\n";
// weight_goal = 200;
// cout << "WeightGoal = " << weight_goal << "\n";
}
|
/******************************************************************************
** Copyright (C) 2011 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: Jean-Luc Starck
**
** Date: 02/11/2011
**
** ... |
// _build.cpp
//
// $Id: _build.cpp,v 1.4 2004/06/10 15:39:34 sdennis Exp $
//
// MUX 2.4
// Copyright (C) 1998 through 2004 Solid Vertical Domains, Ltd. All
// rights not explicitly given are reserved.
//
#include "_build.h"
char szBuildDate[] = __DATE__ " " __TIME__;
char szBuildNum[] = "1";
|
#include <string>
#include <vector>
#include <iostream>
// 根据d字符串中提供的字符分割字符串
std::vector<std::string> StringSplit(const std::string& str, const std::string& d) {
std::string::size_type pos = 0;
std::vector<std::string> ret;
while (pos < str.size() && pos != std::string::npos) {
std::string::size_ty... |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//Special Function Registers
namespace SfrOhciicr{ ///<OHCI Interrupt Configuration Register
using Addr = Register::Address<0xf0038010,0xff7fffc8,0x00000000,unsigned>;
///USB PORTx RESET
constexpr Register::FieldLocation<Add... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the class library */
/* SoPlex --- the Sequential object-oriented simPlex. */
... |
/*
* Copyright © 2018 Google, Inc.
* Copyright © 2019 Facebook, Inc.
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purp... |
/**************************************************************************//**
* @file Conv_CPU.cpp
* @brief Module for performing Autocorrelation on the CPU using convolution.
* The module takes input data, width and height and returns the output matrix
* with the time taken.
* @author Ian Glass
* @date 14/10/20... |
// Copyright (C) 2007 Id Software, Inc.
//
#include "../../precompiled.h"
#pragma hdrstop
#include "../../Game_local.h" // for cvars and debug drawing
#include "../../Player.h"
#include "../../Misc.h"
#include "../../ContentMask.h"
#include "../../botai/BotThreadData.h"
#include "AAS_local.h"
#include ... |
/*########################################################################
Filename: MenuWndHook.cpp
----------------------------------------------------
Remarks: ...
----------------------------------------------------
Author: 成真
Email: anyou@sina.com
... |
#include "oblivious_tree_bin_builder.h"
#include <catboost/libs/helpers/set.h>
namespace NCatboostCuda {
namespace {
template <class TDataSet,
class TCtrSplitBuilder>
class TSplitHelper: public IBinarySplitProvider {
public:
TSplitHelper(TScopedCacheHolder& s... |
#include "stdafx.h"
#include "shibari_tls_linker.h"
shibari_tls_linker::shibari_tls_linker(std::vector<shibari_module*>* extended_modules, shibari_module* main_module)
: extended_modules(extended_modules), main_module(main_module) {}
shibari_tls_linker::~shibari_tls_linker()
{
}
shibari_linker_errors shibari_... |
// -*- C++ -*-
//
// michael a.g. aïvázis
// orthologue
// (c) 1998-2021 all rights reserved
//
#include <portinfo>
#include <Python.h>
#include <pyre/journal.h>
// my declarations
#include "device.h"
// local support
#include "exceptions.h"
// so I can build reasonable error messages
#include <sstream>
// access to... |
#pragma once
#include "Quasar/System/DllLoader.hpp"
#include <dlfcn.h>
namespace Quasar
{
template<typename T>
class LinuxDllLoader : public DllLoader<T>
{
private:
void *m_Handle;
std::string m_Filepath;
protected:
void openDll() override;
void closeDll() ov... |
// 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 "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
#include "ash/ash_switches.h"
#include "ash/display/display_controller.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 "device/bluetooth/bluetooth_gatt_service.h"
#include "build/build_config.h"
#include "device/bluetooth/bluetooth_remote_gatt_characteristic.h"
#... |
#include "ocr.h"
#include <iostream>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/timeb.h>
#include <stdint.h>
#include <stdio.h>
using namespace std;
pthread_mutex_t piReadSection; // 互斥锁
int SearchFiles(const char * pszPath, string *... |
// stdafx.cpp : source file that includes just the standard includes
// LockScreen.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
|
//--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file ds++/test/tstSortPermutation.cc
* \author Randy M. Roberts
* \date Mon Feb 14 14:20:45 2000
* \note Copyright (c) 2016-2020 Triad National Security, LLC.
* All rights reserved. */
//------... |
#ifndef INT2D_LINE_HPP
#define INT2D_LINE_HPP
// Generic Bressenham line algorithm code.
#include <cassert>
#include <cstdlib>
#include <functional>
#include <iterator>
#include "geometry.hpp"
#include "units.hpp"
namespace i2d {
// A wrapper around the state of Bressenham's line algorithm.
// NOTE: A direction ve... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.