text stringlengths 7 961k |
|---|
#include <stdlib.h>
#include <assert.h>
#include <sys/types.h>
#include <regex.h>
#include "iwlregex.h"
void
IW_lregex::_default_values ()
{
_regcomp_flags = REG_EXTENDED;
_reg_eflags = 0;
_regmatch = NULL;
_regmatch_valid = 0;
_compiled = 0;
return;
}
IW_lregex::IW_lregex ()
{
_default_values ();
}... |
/************************************************************************/
/* */
/* FIFO245Test.cpp */
/* */
/* Code to test i... |
#include <torch/serialize/tensor.h>
//#include <torch/torch.h>
#include <torch/extension.h>
#include <vector>
#include <cuda.h>
#include <cuda_runtime_api.h>
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
#define CHECK_CONTIGUOUS(x) AT_CHECK(x.is_contiguous(), #x, " must be contiguous... |
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// CUDA backend has had no support for the generic address space yet
// XFAIL: cuda || hip
#include "exchang... |
#include "Rand.h"
std::mt19937 generator = std::mt19937(uint(std::chrono::high_resolution_clock::now().time_since_epoch().count()));
//Uniform Random Floating Point Number
float GetDistribution(std::uniform_real_distribution<float> distro) {
return distro(generator);
}
//Uniform Random Integer
int GetDistributio... |
// Copyright (c) 2011-2013 The Bitcoin Core developers
// Copyright (c) 2014-2017 The NETAVO Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#incl... |
#ifndef PIPES_OPTIONAL_HPP
#define PIPES_OPTIONAL_HPP
#include <type_traits>
namespace pipes
{
namespace detail
{
struct nullopt_t {};
static const nullopt_t nullopt;
template<typename T>
class optional
{
public:
optional(const T& object) : m_initialized(true) { new (m_object) T(objec... |
#include "./Gesture.hpp"
#include "../../java/io/InputStream.hpp"
#include "../../java/io/OutputStream.hpp"
#include "../../JString.hpp"
#include "../../java/util/ArrayList.hpp"
#include "./GestureStore.hpp"
namespace android::gesture
{
// Fields
jint GestureStore::ORIENTATION_INVARIANT()
{
return getStaticField<... |
/*
* mbrowrap -- A wrapper library around the mbrola binary
* providing a subset of the API from the Windows mbrola DLL.
*
* Copyright (C) 2010 by Nicolas Pitre <nico@fluxnic.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pu... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* 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 abo... |
/**
BSD-3-Clause
Copyright 2019 Alliance for Sustainable Energy, LLC
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 the... |
#include "netsettingdlg.h"
#include "ui_netsettingdlg.h"
NetSettingDlg::NetSettingDlg(QWidget *parent) :
QWidget(parent),
ui(new Ui::NetSettingDlg)
{
ui->setupUi(this);
initData();
}
NetSettingDlg::~NetSettingDlg()
{
delete ui;
}
void NetSettingDlg::on_pushButton_4_clicked()
{
// this->close(... |
/**********************************************************************/
/* */
/* This file is part of the RFSM package */
/* */
/* Copyright (c) 2018-prese... |
//
// Created by bear on 8/12/20.
// |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/empty.proto
#include <google/protobuf/empty.pb.h>
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf... |
// 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 "base/test/test_file_util.h"
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
... |
/*
* Copyright (C) 2012-2016 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... |
// SPDX-License-Identifier: Apache-2.0
//
// Copyright 2008-2016 Conrad Sanderson (http://conradsanderson.id.au)
// Copyright 2008-2016 National ICT Australia (NICTA)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may ob... |
#include <iostream>
#include <stdlib.h>
#include <time.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
int main(int argc, char** argv)
{
int numero=0;
//INICALIZA EL NUMERO RAMDON
srand(time(NULL));
for(int i=0; i<20; i++)
{
/... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Liberta Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain.h"
/**
* CChain implementation
*/
void CChain::SetTip(CBlockI... |
/**
* \file imperative/src/test/profiler.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "... |
/******************************Module*Header*******************************\
* Module Name: wndstuff.cpp
*
* Menu driven test environment.
*
* Created: 23 December 1999
* Author: Adrian Secchia [asecchia]
*
* Copyright (c) 1999 Microsoft Corporation
*
\*******************************************************************... |
#pragma once
#include "stoch_params.hpp"
#include "nanocv/math/average_vector.hpp"
#include <cassert>
namespace ncv
{
namespace optim
{
///
/// \brief stochastic AdaGrad
/// see "Adaptive subgradient methods for online learning and stochastic optimiz... |
// Copyright (c) 2015-2018 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include <Pothos/Framework.hpp>
#include <cstdint>
#include <iostream>
#include <complex>
#include <vector>
#include <cfloat> //FLT_MAX
#include <algorithm> //min/max
/***********************************************************************
* |P... |
// Copyright 2018 Xiaomi, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
#include <node.h>
#include <v8.h>
#include <uv.h>
#if defined _WIN32
#include <windows.h>
#else
#include <unistd.h>
#endif
struct async_req {
uv_work_t req;
int input;
int output;
v8::Isolate* isolate;
v8::Persistent<v8::Function> callback;
};
void DoAsync(uv_work_t* r) {
async_req* req = reinterpret_ca... |
//
// Package: RecoTracker/SingleTrackPattern
// Class: CosmicTrajectoryBuilder
// Original Author: Michele Pioppi-INFN perugia
#include <vector>
#include <iostream>
#include <cmath>
#include "RecoTracker/SingleTrackPattern/interface/CosmicTrajectoryBuilder.h"
#include "DataFormats/Common/interface/... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2020
// MIT License
#pragma once
#include <ArduinoJson/Array/ArrayRef.hpp>
#include <ArduinoJson/Configuration.hpp>
#include <ArduinoJson/Numbers/convertNumber.hpp>
#include <ArduinoJson/Numbers/parseNumber.hpp>
#include <ArduinoJson/Object/ObjectRef.... |
/*
* This file contains code from "C++ Primer, Fourth Edition", by Stanley B.
* Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the
* copyright and warranty notices given in that book:
*
* "Copyright (c) 2005 by Objectwrite, Inc., Jose Lajoie, and Barbara E. Moo."
*
*
* "The authors and publis... |
/**
* Copyright 2021 Scott Brauer
*
* Licensed under the Apache License, Version 2.0 (the );
* 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 writ... |
//===----------------------------------------------------------------------===//
//
// 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
//
//===---------------------------... |
#include "mysql.h"
MySql* MySql::sqlhand = nullptr;
void MySql::openDatabase()
{
//QString path = QCoreApplication::applicationDirPath();
//qDebug() << path;
if(QSqlDatabase::contains("qt_sql_default_connection")) {
database = QSqlDatabase::database("qt_sql_default_connection");
}
else {
... |
// (C) 2018 University of Bristol. See License.txt
// Client key file format:
// X25519 Public Key
// X25519 Secret Key
// Ed25519 Public Key
// Ed25519 Secret Key
// Server 1 X25519 Public Key
// Server 1 Ed25519 Public Key
// ...
// Server N Public Key
// Server N Ed25... |
#include <mfapi.h>
//#include <mfobjects.h>
#include <mfidl.h>
#include <mferror.h>
#include "webmmfbytestreamhandler.h"
#include "webmmfsource.h"
#include <new>
#include <cassert>
#ifdef _DEBUG
#include "odbgstream.h"
using std::endl;
#endif
_COM_SMARTPTR_TYPEDEF(IMFMediaSource, __uuidof(IMFMediaSource));
namespace ... |
#include <Util/System.hpp>
#include <Util/Logging/Log.hpp>
#include <cstring>
#include <ctime>
#include <iomanip>
#include <assert.h>
#ifdef _WIN32
#include <pdh.h>
#include <psapi.h>
#include <tchar.h>
#include <windows.h>
#else
#include <errno.h>
#include <pthread.h>
#include <sched.h>
#include <sys/stat.h>
#include... |
// Copyright 2013 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 conditi... |
// 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... |
//
// Created by damian on 23.05.2020.
//
#include "Tuple.h"
namespace util {
std::ostream &operator<<(std::ostream &o, const util::Tuple &t)
{
o << '(' << t.x() << ',' << t.y() << ',' << t.z() << ',' << t.w() << ')';
return o;
}
TupleType Tuple::magnitude() const
{
if(isPoint()) {
return 0.0;
}
return s... |
version https://git-lfs.github.com/spec/v1
oid sha256:988d1cddbe6b5f486296c76ff821ad59fe7f35d4c5d7b963be3db50bd36b95fd
size 6174 |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Entry.h"
#include "Address.h"
#include "Signer.h... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The Sprocket developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <n... |
#include "common.hpp"
#include "model_DMAload_class.hpp"
BIT_VEC model_DMAload::cppUpdateFun_rd_complete(BIT_VEC conf_done, BIT_VEC conf_num_hidden, BIT_VEC conf_num_loops, BIT_VEC conf_num_movies, BIT_VEC conf_num_testusers, BIT_VEC conf_num_users, BIT_VEC conf_num_visible, BIT_VEC data_in, BIT_VEC rd_grant, BIT_VEC ... |
#include "windowevent_linux.hpp"
#include "event.hpp"
#include "toolbox_io.hpp"
#include <fcntl.h>
#include <linux/input.h>
#include <unistd.h>
#include <array>
#include <cstdlib>
#include <iostream>
struct WindowEventLinux::Impl
{
struct EventInfo
{
using EventFilename_t = std::array<char, sizeof("... |
#include "group.hpp"
#include "../imgui/imgui.h"
namespace rev {
namespace debug {
GroupPush::GroupPush() {
ImGui::BeginGroup();
}
GroupPush::~GroupPush() {
ImGui::EndGroup();
}
}
} |
/**
* @file Table.hpp
* @author Marvin Smith
* @date 1/2/2014
*/
#ifndef __SRC_CPP_LLNMSCLI_UI_TABLE_HPP__
#define __SRC_CPP_LLNMSCLI_UI_TABLE_HPP__
#include <sstream>
#include <string>
#include <vector>
#include <utilities/CursesUtilities.hpp>
/**
* @class Table
*/
class Table{
public:
... |
// 389 Find the Difference
// https://leetcode.com/problems/find-the-difference
// version: 1; create time: 2020-02-01 14:27:39;
class Solution {
public:
char findTheDifference(string s, string t) {
int counter[26] = {0};
for (auto c : s) {
++counter[c - 'a'];
}
for (aut... |
// Copyright Benoit Blanchon 2014-2015
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#include <gtest/gtest.h>
#include <ArduinoJson.h>
class JsonParser_Array_Tests : public testing::Test {
protected:
void whenInputIs(const char *json) { strcpy(_jsonString, json); }
void w... |
#pragma once
#include <lol/common.hpp>
#include <lol/hash/dict.hpp>
#include <lol/hash/xxh64.hpp>
#include <lol/io/bytes.hpp>
#include <memory>
#include <optional>
namespace lol::wad {
enum class EntryType : unsigned char {
Raw = 0,
Link = 1,
Gzip = 2,
Zstd = 3,
ZstdMulti = ... |
#pragma once
#include <ysu/lib/numbers.hpp>
#include <atomic>
#include <functional>
#include <mutex>
#include <unordered_map>
#include <vector>
namespace ysu
{
class container_info_component;
class distributed_work;
class node;
class root;
struct work_request;
class distributed_work_factory final
{
public:
distrib... |
/******************************************************************************
* $Id$
*
* Project: S-57 Translator
* Purpose: Implements S57ClassRegistrar class for keeping track of
* information on S57 object classes.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
*****************************... |
#include <EnginePCH.h>
#include <iostream>
#include <fstream>
#include <string>
#include "../resource.h"
#include <Timer.h>
#include <Application.h>
#include <Camera.h>
#include <ProgressWindow.h>
#include "DX11/RenderDeviceDX11.h"
#include "DX11/RenderWindowDX11.h"
#if defined(_WIN32_WINNT_WIN10)
# include "DX1... |
//*****************************************************************************
// Copyright 2017-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://w... |
#include "addressbookpage.h"
#include "ui_addressbookpage.h"
#include "addresstablemodel.h"
#include "optionsmodel.h"
#include "bitcoingui.h"
#include "editaddressdialog.h"
#include "csvmodelwriter.h"
#include "guiutil.h"
#ifdef USE_QRCODE
#include "qrcodedialog.h"
#endif
#include <QSortFilterProxyModel>
#include <Q... |
//
// Copyright (c) 2017-2020 the rbfx project.
//
// 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, mer... |
#include "NuclearEoS.h"
#ifdef __CUDACC__
#include "CUAPI.h"
#include "CUFLU_Shared_FluUtility.cu"
#endif
#if ( MODEL == HYDRO && EOS == EOS_NUCLEAR )
#ifdef __CUDACC__
#include "NuclearEoS.cu"
__device__ static real EoS_DensEint2Pres_Nuclear( const real Dens_Code, const real Eint_Code, const real Passive_Code[]... |
#include "extensions/filters/listener/tls_inspector/tls_inspector.h"
#include <cstdint>
#include <string>
#include <vector>
#include "envoy/common/exception.h"
#include "envoy/common/platform.h"
#include "envoy/event/dispatcher.h"
#include "envoy/network/listen_socket.h"
#include "envoy/stats/scope.h"
#include "comm... |
// -*- mode: c++ -*-
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, JSK Lab
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the ... |
#include "sendcoinsentry.h"
#include "ui_sendcoinsentry.h"
#include "guiutil.h"
#include "bitcoinunits.h"
#include "addressbookpage.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "addresstablemodel.h"
#include <QApplication>
#include <QClipboard>
SendCoinsEntry::SendCoinsEntry(QWidget *parent) :
Q... |
#include "mod.h"
namespace Mod::Debug::Scale_Rate
{
ConVar cvar_hand_scale ("sig_debug_scale_rate_hand_scale", "1.0", FCVAR_NOTIFY, "Debug: value to be returned by CTFPlayer::GetDesiredHandScale");
ConVar cvar_head_scale ("sig_debug_scale_rate_head_scale", "1.0", FCVAR_NOTIFY, "Debug: value to be returned by CTFP... |
/* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "meta/processors/jobMan/FlushJobExecutor.h"
namespace nebula {
namespace meta {
FlushJobExecutor::FlushJobExe... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
// 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/app/blimp_metrics_service_client.h"
#include <list>
#include <string>
#include "base/memory/ref_counted.h"
#include "base/message... |
////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2015 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... |
/***********************************************************************************************************************
* 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... |
/*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... |
#include <cstdint>
#include <nexus/fuzz_test.hh>
#include <nexus/test.hh>
#include <clean-core/from_string.hh>
TEST("cc::from_string")
{
int32_t v;
CHECK(cc::from_string("123", v));
CHECK(v == 123);
CHECK(!cc::from_string("123 trailing text", v));
}
namespace
{
template <class T>
void check_range(tg... |
/* ****************************************************************
*
* Copyright 2014 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
*
... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PrimalItemConsumable_Egg_BogSpider_Fertilized_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------... |
//
// FILE NAME: CIDIDL_ParmaInfo.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 08/10/2004
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://opensour... |
class Solution {
public:
int XXX(int x) {
double a=2,b;
b = 0.5*(a+x/a);
while(fabs(b-a)>0.1){
a = b;
b = 0.5*(a+x/a);
}
return (int)b;
}
}; |
#include "list2.h"
template <class T>
void UnsortedList<T>::insertItem(T value)
{
this->insertAtStart(value);
}
template <class T>
void UnsortedList<T>::deleteItem(T value)
{
if(isEmpty())throw ListEmpty();
if(this->head->data==value){
this->deleteStart();
return;
}
node<T> *pre=NULL, *cur=(th... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "filestorhandlerimpl.h"
#include "filestormetrics.h"
#include <vespa/storageapi/message/bucketsplitting.h>
#include <vespa/storageapi/message/persistence.h>
#include <vespa/storageapi/message... |
/* Programmer une calculatrice proposant les opérations classiques */
#include <iostream>
int main()
{
int a;
int b;
char c;
std::cout << "Saisi une valeur : " << std::flush;
std::cin >> a;
std::cout << "Saisi une deuxième valeur : " << std::flush;
std::cin >> b;
std::cout << "Choisi un operateur p... |
///////////////////////////////////////////////////////////////////////////////
// foreach.hpp header file
//
// Copyright 2004 Eric Niebler.
// 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)
// See http://www.boos... |
//:>-----------------------------------------------------------------
//: FILE: FtfBaseTrack.cxx
//: HISTORY:
//: 28oct1996 version 1.00
//: 11aug1999 ppy primary flag in FtfPara replace with vertexConstrainedFit
//: 11aug1999 ppy primary flag in track filled now
//: 3sep1999... |
// @@@LICENSE
//
// Copyright (c) 2010-2013 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 require... |
/*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/linux/drm_buffer_object.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/os_interface/linux/drm_memory_manager.h"
... |
// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "Exceptions.h"
void ParseException::Print()
{
std::cout << "Parsing Failed: Cause: " << mp_CauseOfException << "; On Line: " << m_lineOfCodeNumber << "... |
#pragma once
namespace Flags {
bool showMenu = false;
bool showEntityListMenu = false;
bool freezeHealth = false;
bool freezeStamina = false;
} |
#include "mzParser.h"
int checkFileType(const char* fname){
char file[256];
char ext[256];
char *tok;
char preExt[256];
unsigned int i;
if (strlen(fname) < 4) {
cerr << "Incomplete file name. No file loaded: " << fname << endl;
return 0;
}
strcpy(ext,"");
strcpy(file,fname);
tok=strtok(f... |
//===- FuzzerLoop.cpp - Fuzzer's main loop --------------------------------===//
//
// 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
//
//===---------------------------... |
// Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_RENDERER_STATE_CORE_SAMPLER_FILTER_NORMAL_PARAMETERS_HPP_INCLUDED
#define SGE_RENDERER_... |
/** Kattis - primereduction
*
* Just follow the instructions, use the sieve and the prime factorization algorithms we have
* developed thus far.
*
* Time: O(1e7 log log 1e7) since the sieve is the main time limiting factor
* Space: O(1e7)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,sss... |
//
// WordKickerScene.hpp
// KitkitSchool
//
// Created by MilliSoftGames on 8/14/18.
//
//
#ifndef WordKickerScene_hpp
#define WordKickerScene_hpp
#include "WordKickerHeader.hpp"
#include "Common/Controls/ProgressIndicator.hpp"
BEGIN_NS_WORDKICKER;
struct WordKickerProblemStruct;
class WordKicker_NodeGoalpost;... |
#include "PreferencesPanel_Category.h"
#include "../Database_Category.h"
#include "../Exception.h"
#include <wx/msgdlg.h>
namespace Dialogs
{
struct DatabaseCallbackData
{
wxListCtrl *listCtrl = nullptr;
int count{0};
std::map<std::string, int> *dataToListCtrl = nullptr;
};
P... |
// Copyright (c) 2015-2018, Satoshi Tanda. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
/// @file
/// Implements DdiMon functions.
#include <ntifs.h>
#include "ddi_mon.h"
#include <ntimage.h>
#define NTSTRSAFE_NO_CB_FUNCTIONS
#include <nt... |
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2017 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided th... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/assistant/assistant_alarm_timer_controller_impl.h"
#include <cmath>
#include <utility>
#include "ash/assistant/assistant_controller_impl.h... |
#include <string>
#include "common/http/message_impl.h"
#include "extensions/filters/http/well_known_names.h"
#include "test/integration/http_integration.h"
#include "test/mocks/http/mocks.h"
#include "test/test_common/utility.h"
#include "absl/strings/match.h"
#include "gtest/gtest.h"
using Envoy::Http::HeaderVal... |
// Copyright (c) 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 "ui_interface.h"
#include "init.h"
#include <string>
static int noui_ThreadS... |
/*
* Copyright 2007 Stephen Liu
* For license terms, see the file COPYING along with this library.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <signal.h>
#include <unistd.h>
#include "spmsgdecoder.hpp"
#include "spbuffer.hpp"
#include "spserver.hpp"
#include "splfser... |
/*
Coin Change
Given an array of coin denomnation and integer M representing target money.
We need to find the min coins required to make the change.
Input:
coins = [1,3,7,10] , M = 15
Output = 3 (7 + 7 + 1)
*/
#include<iostream>
#include<vector>
#include<climits>
using namespace std;
//Dynamic Programing Bottom Up ... |
/*!
\file rendering_tile_test.cpp
\author Sho Ikeda
Copyright (c) 2015-2018 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
// Standard C++ library
#include <array>
// GoogleTest
#include "gtest/gtest.h"
// Zisc
#include "zisc/point.hpp"
// Nana... |
#include "offset.h"
#define _DEFINE_VARS
#include "d2ptrs.h"
#include "crc32.h"
#include <iostream>
#include <windows.h>
#include <sys/stat.h>
#include <sys/types.h>
namespace d2mapapi {
static D2Version d2version = D2_113c;
D2Version getD2Version() {
return d2version;
}
bool defineOffsets() {
const struc... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
* 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 version.
*
* This program is distributed in the hope that it will be use... |
// Copyright SpaceCatLabs. All Rights Reserved.
#include "HTriggerActivator.h"
void UHTriggerActivator::ActivateActivator() const
{
OnActivated.Broadcast(false, nullptr);
}
void UHTriggerActivator::ActivateActivatorByActor(AActor* InActivator) const
{
OnActivated.Broadcast(true, InActivator);
} |
//
// Created by Matthew Kwiatkowski on 2021-03-13.
//
#include "gtest/gtest.h"
extern "C" {
// Get declaration for f(int i, char c, float x)
#include "../command_handler.h"
#include "../control_module.h"
}
TEST(HandlerControlIntegrationtest, TestHoldingStateChange){
init_handler();
controlModuleInit();
ui... |
#include "NativeUnknown.h"
namespace SevenZip
{
namespace NativeWrapper
{
NativeUnknown::NativeUnknown(const GUID* supprtedInterfaceIds, Int16 supprtedInterfaceCount)
{
_supprtedInterfaceIds = supprtedInterfaceIds;
_supprtedInterfaceCount = supprtedInterfaceCount;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.