text stringlengths 7 961k |
|---|
#pragma once
#include <cstring>
#include "common.hpp"
class Mapper
{
uint8_t* rom;
bool chrRam = false;
protected:
uint32_t prgMap[4];
uint32_t chrMap[8];
uint8_t *prg, *chr, *prgRam;
uint32_t prgSize, chrSize, prgRamSize;
template <int pageKBs> void map_prg(int slot, int bank);
t... |
/*
* Copyright information and license terms for this software can be
* found in the file LICENSE that is included with the distribution
*/
/**
* @author mrk
*/
/* Author: Marty Kraimer */
#include <iostream>
#include <epicsGetopt.h>
#include <pv/pvaClientMultiChannel.h>
#include <pv/convert.h>
using std::tr1:... |
// 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.
//
// Copyright (C) 2018 Intel Corporation
#ifdef HAVE_FREETYPE
#include <codecvt>
#endif // HAVE_FREETYPE
#include "../tes... |
// This file has been auto generated.
#include "SkData.h"
#include "common.h"
static void deleteData(SkData* data) {
// std::cout << "Deleting [SkData " << data << "]" << std::endl;
data->unref();
}
SKIKO_EXPORT KNativePointer org_jetbrains_skia_Data__1nGetFinalizer(){
return reinterpret_cast<KNativePoin... |
#ifndef PHYSICS_HEADER
#define PHYSICS_HEADER
#include <ParticlePlay/Includes.hpp>
class ppPhysics{
protected:
float ptm;
b2World* world;
public:
ppPhysics(float gx, float gy);
b2World* GetWorld();
// ppEffect* GetEffect();
void Update(int delta);
void UpdateAllBody();
void SetPTM(float ptm);
float GetPTM();... |
/*************************************************************
* > File Name : P4720.cpp
* > Author : Tony
* > Created Time : 2019/05/15 13:08:45
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int max... |
/*
* Copyright (c) 2020, 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 ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/connect/model/DescribeAgentStatusResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <... |
/*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... |
/*
Copyright (c) 2018, Roland Bock
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 conditions and the following ... |
#include "VertexBuffer.h"
namespace Mawi1e {
float Clamp(float target, float min, float max) {
return (target < min ? min : (target > max ? max : target));
}
float RandF() {
return (float)rand() / (float)RAND_MAX;
}
float RandF(float a, float b) {
return a + (RandF() * (b - a));
}
int Rand(int a, int b... |
#include <cmath>
#include "triangle.h"
#include "point_functions.h"
// This function is only avaliable for this cpp file...
float distance(const Point& lhs, const Point& rhs)
{
const Point delta = lhs - rhs;
const float squaredDistance = delta.x * delta.x + delta.y * delta.y;
return std::sqrt(squaredDistan... |
/*******************************************************************************
* 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.
*
*... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Gpunion Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "interpreter.h"
#incl... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Configuration.... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__strdup_delete_char_01.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__strdup_delete.label.xml
Template File: sources-sinks-01.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routi... |
#ifndef MAPPING_HPP
#define MAPPING_HPP
#include <seq2map/sequence.hpp>
#include <seq2map/sparse_node.hpp>
#include <seq2map/geometry_problems.hpp>
namespace seq2map
{
class Landmark;
class Frame;
class Source;
/**
* Observation of a landmark
*/
struct Hit
{
public:
cons... |
/*
* 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 "quic/state/QuicStreamManager.h"
#include <quic/state/QuicStreamUtilities.h>
namespace quic {
/**
* Updates the hea... |
#include "mapper0.hpp"
Mapper0::Mapper0(uint8_t prgBanks, uint8_t chrBanks) : Mapper(prgBanks, chrBanks) {}
Mapper0::~Mapper0() {}
bool Mapper0::cpuMapRead(uint16_t addr, uint32_t &mapped_addr)
{
// maps to different areas if PRGROM is >16KB or >32KB
if (addr >= 0x8000 && addr <= 0xFFFF)
{
mapped... |
#include "tracer/span.h"
#include <tuple>
#include "common/random.h"
#include "common/utility.h"
#include "tracer/serialization.h"
#include "tracer/tag.h"
#include "tracer/utility.h"
#include <opentracing/ext/tags.h>
using opentracing::SteadyClock;
using opentracing::SteadyTime;
using opentracing::SystemClock;
usin... |
/*
* Copyright 2010-2017 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" fil... |
// Copyright (c) 2012-2017 The SteepCoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/server.h>
#include <rpc/client.h>
#include <base58.h>
#include <core_io.h>
#include <netbase.h>
#include <t... |
#pragma once
//===----------------------------------------------------------------------===//
#include <dtl/bitmap/bitwise_operations.hpp>
#include <dtl/dtl.hpp>
#include <boost/dynamic_bitset.hpp>
#include <memory>
//===----------------------------------------------------------------------===//
namespace dtl {
//===... |
//辅助Actor编程模型的消息机制
// - 支持发布-订阅模式
// - 支持请求-回复模式
// - 支持组合式设计
//生命周期管理启发自 http://nercury.github.io/c++/interesting/2016/02/22/weak_ptr-and-event-cleanup.html
//
//消息中间人broker可同时作为消息发布者publisher和请求发出者client
//作为publisher时,使用方式如下
// 1. 通过publish接口发送消息,注意只接收单个参数,发出时为const&
// 2. 要订阅消息可以使用以下接口
// 2.1 subscribe(publi... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#pragma once
#include <webanpick/plugins/follow/follow_plugin.hpp>
#include <webanpick/plugins/json_rpc/json_rpc_plugin.hpp>
#include <appbase/application.hpp>
#define WEBANPICK_FOLLOW_API_PLUGIN_NAME "follow_api"
namespace webanpick { namespace plugins { namespace follow {
using namespace appbase;
class follow_a... |
#ifndef STAN_MATH_REV_SCAL_FUN_VALUE_OF_HPP
#define STAN_MATH_REV_SCAL_FUN_VALUE_OF_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
namespace stan {
namespace math {
/**
* Return the value of the specified variable.
*
* <p>This function is used internally by auto-dif functions along
* wit... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/data/slime/slime.h>
#include <vespa/vespalib/data/slime/json_format.h>
#include <vespa/vespalib/objects/nbostream.h>
#include <ves... |
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
/*
* 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
A test plugin for testing Plugin's Dynamic Shared Objects (DSO)
@section license License
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. ... |
// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
#include "TwoConnectedRibs.hpp"
#include <iostream>
#include <cstdlib>
#include <vector>
using namespace std;
vector<pair<int,int> > FindMaxConnectedRibs(vector <pair<int,pair<int,int> > > graph,int *cost)
{
*cost=-1;
int n=graph.size();
vector<pair<int,int> > tree;
for(int i=0;i<n;i++)
{
in... |
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
/*=========================================================================
*
* 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... |
//------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... |
//////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
/**********************************************************************
*
* 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... |
// 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 "precomp.hpp"
#include "opencv2/flann.hpp"
#include "chessboard.hpp"
#include "math.h"
//#define CV_DETECTORS_CHESS... |
#include "ZoomGraphicsView.h"
ZoomGraphicsView::ZoomGraphicsView(QWidget *parent)
: QGraphicsView(parent)
{
_backgroundBrush = QBrush(QPixmap("://res/patterns_tweed.png"));
}
void ZoomGraphicsView::drawBackground(QPainter *painter, const QRectF &) {
painter->resetTransform();
painter->fillRect(visible... |
/*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. You may obtain a copy of the License at
*
* http://www.apache.org/li... |
/**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library 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 Fre... |
/*
* Copyright (c) 2011 Surfnet
* Copyright (c) 2011 .SE (The Internet Infrastructure Foundation).
* Copyright (c) 2011 OpenDNSSEC AB (svb)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
#include <sys/time.h>
#include <stdlib.h>
double get_current_time() {
struct timeval tv;
gettimeofday(&tv, NULL);
return (tv.tv_sec*1000.0 + tv.tv_usec/1000.0);
} |
//
// Arm82Pooling.cpp
// MNN
//
// Created by MNN on 2020/01/08.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifdef __aarch64__
#include "backend/arm82/Arm82Pooling.hpp"
#include "core/Concurrency.h"
#include "core/Macro.h"
#ifdef MNN_USE_NEON
#include <arm_neon.h>
#endif
namespace MNN {
static void p... |
#include <cstdint>
#include <cstdio>
#include <cstddef>
#define PRINT(type,member) printf(#type"."#member"->\t+%d, sz=%zu\n",offsetof(type,member),sizeof(type::member));
#define TEST(type,member,offset,size) PRINT(type,member);\
assert(offsetof(type,member)==offset);\
... |
/*
*
* Copyright (C) 2001-2018, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmjpeg
*
* Author: Marco Ei... |
// Copyright 2020 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 <fuchsia/io/llcpp/fidl.h>
#include "src/sys/appmgr/integration_tests/sandbox/namespace_test.h"
namespace fio = fuchsia_io;
TEST_F(NamespaceTest... |
#include <iostream>
#include <sstream>
#include <set>
#include <errno.h>
#include <strings.h>
#include <pthread.h>
#include <saga/saga.hpp>
class stream_container
{
private:
saga::stream::stream s_;
public:
stream_container (saga::stream::stream s)
: s_ (s)
{
}
stream_container (const... |
// Copyright (c) 2021 by Apex.AI 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 ap... |
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=1010;
const int Mod=10007;
const int inf=2147483647;
int n;
char Mp[maxN][maxN];
int Up[maxN][maxN],Down[maxN][maxN];
int F... |
/*******************************************************************************
* Copyright (c) 1991, 2015 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... |
#include "gpumon.h"
#include "gpumon.cuh"
#include "util.h"
#include <vector>
#include <algorithm>
#include <iterator>
#include <stdio.h>
struct block {
int thread;
clock64_t time;
};
struct kernel_invoke_data {
std::vector<block> load_minor;
std::vector<block> load_major;
std::vector<clock64_t> times;
std::... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2010) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
#include <stdexcept>
#include <re2/prog.h>
#include <re2/regexp.h>
#include "it.h"
#if RE2JIT_LIBJIT
#pragma message "target = LibJIT"
#include "it.libjit.cc"
#elif __x86_64__
#pragma message "target = x86_64 System V ABI"
#include "it.x64.cc"
#else
#pragma message "target = ??? [try ENABLE_VM=1... |
/*=========================================================================
*
* 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... |
#include "containers/retagshowcontainer.h"
#include <TGlobal>
// QDataStream &operator<<(QDataStream &stream, const RetagShowContainer &container)
// {
// stream << container.imagePath;
// stream << container.originalName;
// stream << container.tags;
// return stream;
// }
// QDataStream &operator>>... |
#include <algorithm>
#include <cegis/cegis-util/constant_width.h>
#include <cegis/cegis-util/program_helper.h>
#include <cegis/instrument/literals.h>
#include <cegis/instrument/meta_variables.h>
#include <cegis/constant/literals_collector.h>
namespace
{
std::string get_name(size_t index)
{
std::string name(CEGIS_CO... |
#include <gtest/gtest.h>
#include "util/logger.hpp"
#include <ros/ros.h>
#include <fstream>
#include "planner/PlanningInterface.h"
#include <moveit_visual_tools/moveit_visual_tools.h>
#include <tf2_eigen/tf2_eigen.h>
void visual_tool(moveit_visual_tools::MoveItVisualTools& visual_tools,
const std::vec... |
/*!
* Copyright (c) 2016 by Contributors
* \file c_api_symbolic.cc
* \brief C API of mxnet
*/
#include <mxnet/base.h>
#include <mxnet/c_api.h>
#include <nnvm/c_api.h>
#include <nnvm/pass.h>
#include <nnvm/pass_functions.h>
#include <nnvm/symbolic.h>
#include "./c_api_common.h"
#include "../operator/operator_common... |
// Copyright (c) 2021 Dr. Matthias Hölzl. See file LICENSE.md.
#include "tile_map.hpp"
namespace cr {
TileMapBase::TileMapBase(cg::ResourceManager& resourceManager)
: resourceManager(resourceManager) {}
} // namespace cr |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2021 The BitcoinFlex Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrdb.h>
#inclu... |
///////////////////////////////////////////////////////////////////////////////
/// \file xpressive_fwd.hpp
/// Forward declarations for all of xpressive's public data types.
//
// Copyright 2008 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or ... |
#include <iostream>
#include "opencv2/opencv.hpp"
using namespace std;
using namespace cv;
int top_slider = 10;
int top_slider_max = 200;
char TrackbarName[50];
Mat image, border;
void on_trackbar_canny(int, void*){
Canny(image, border, top_slider, 3*top_slider);
imshow("canny", border);
}
int main(int argc, ... |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.IEqualityComparer`1<UnityEngine.UI.IClipper>
struct IEqualityComparer_1_t2997E9F6A921108A908DB540... |
// File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cREgDistVal_Ebner.h"
cREgDistVal_Ebner::cREgDistVal_Ebner():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0,15));
Close(false);
}
void cREgDistVal_Ebner::ComputeVal()
{
double tmp0_ = mLocEbner_State_0_0 * mLocEbner_State_0... |
#include "vm.hpp"
#include "fiber_stack.hpp"
#include "fiber_data.hpp"
#include "configuration.hpp"
#include "bug.hpp"
#include "gc/gc.hpp"
#include <stdlib.h>
#ifdef HAVE_VALGRIND_H
#include <valgrind/valgrind.h>
#endif
namespace rubinius {
FiberStack::FiberStack(size_t size)
: address_(0)
, size_(size... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "arith_uint256.h"
#include "uint256.h"
#include "version.h"
#include "test/test_wificoin.h"
#include <boost/test/uni... |
/* $Id: VBoxNetLwfInstall.cpp $ */
/** @file
* NetLwfInstall - VBoxNetLwf installer command line tool
*/
/*
* Copyright (C) 2014-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribut... |
//
// Given a collection of distinct numbers, return all possible permutations.
//
//
//
// For example,
// [1,2,3] have the following permutations:
//
// [
// [1,2,3],
// [1,3,2],
// [2,1,3],
// [2,3,1],
// [3,1,2],
// [3,2,1]
// ]
//
//
class Solution {
public:
vector<vector<int>> permute(vector<int... |
#ifndef METRICTESTS_HPP
#define METRICTESTS_HPP
#include "dataSet.hpp"
#include "dataSetBruteForce.hpp"
#include <fmt/format.h>
// Compares values calculated from each method and reports results
void compareValues(double opti, double brute_pure, double brute_opti,
char const*const metric, char const*const dim)... |
/******************************************************************
*
* Copyright 2017 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
*
... |
#define CGLTF_IMPLEMENTATION
#include "../cgltf.h"
static void check(const char* a, const char* b) {
if (strcmp(a, b) != 0) {
fprintf(stderr, "Mismatch detected.\n");
exit(1);
}
}
int main(int, char**)
{
char string[64];
// cgltf_decode_string
strcpy(string, "");
cgltf_decode_... |
#include "OnlineMachine.h"
#include "Processor/Machine.h"
#include "Processor/OnlineOptions.h"
#include "Math/Setup.h"
#include "Protocols/Share.h"
#include "Tools/ezOptionParser.h"
#include "Networking/Server.h"
#include "Networking/CryptoPlayer.h"
#include <iostream>
#include <map>
#include <string>
#include <stdio.... |
#include "pch.h"
#include "Resource.h"
#include "MainFrame.h"
#include "SecurityHelper.h"
#include "AboutDlg.h"
#include "SortHelper.h"
#include "IconHelper.h"
#include "CreateKeyCommand.h"
#include "TreeHelper.h"
#include "FindAllDlg.h"
#include "RenameKeyCommand.h"
#include "CopyKeyCommand.h"
#include "ClipboardHelpe... |
#include <iostream>
using namespace std;
int main(){
int a[10] = {10, 20, 34, 3, 65, 45, 11, 66, 90, 74};
cout<<"Enter a number to be found : ";
int number;
cin>>number;
int count = 0;
int length = (int)(sizeof(a) / sizeof(a[0]));
for (int i = 0; i < length; i++){
count += 1;... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
// This file was automatically generated on Sat Oct 11 19:26:17 2014
// by libs/config/tools/generate.cpp
// Copyright John Maddock 2002-4.
// 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/L... |
// Copyright (c) 2019 ASMlover. 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 ofconditions and... |
/*
Copyright (c) 2008-2022, Benoit AUTHEMAN 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 a... |
//
// EntityServer.cpp
// assignment-client/src/entities
//
// Created by Brad Hefta-Gaub on 4/29/14
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QEventLoo... |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "AnimGraphNodeCommands.h"
#include "AnimGraphConnectionCommands.h"
#include "CommandManag... |
// Copyright (c) 2020 Pantor. All rights reserved.
#ifndef INCLUDE_INJA_INJA_HPP_
#define INCLUDE_INJA_INJA_HPP_
#include <Shared/JSON.hpp>
// #include "environment.hpp"
// Copyright (c) 2019 Pantor. All rights reserved.
#ifndef INCLUDE_INJA_ENVIRONMENT_HPP_
#define INCLUDE_INJA_ENVIRONMENT_HPP_
#include <fstream>... |
#include "msat_sort.h"
#include "exceptions.h"
using namespace std;
namespace smt {
// MsatSort implementation
std::size_t MsatSort::hash() const
{
// TODO: check this hash function
// mathsat doesn't hash types
// so we need to generate a type
std::size_t v = 1;
// giving lower 20 bits for representing... |
/*
* Copyright (c) 2021, Ali Mohammad Pur <mpfard@seguebaseos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GL/gl.h"
#include "GLContext.h"
extern GL::GLContext* g_gl_context;
GLuint glGenLists(GLsizei range)
{
return g_gl_context->gl_gen_lists(range);
}
void glCallList(GLuint list)
{
retu... |
/*
* Copyright 2010-2017 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" fil... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... |
//standard library headers
#include <deque>
#include <iostream>
#include <string>
//system headers
//local headers
#include "program.hpp"
Program::Program(std::string &raw_instructions, std::string &raw_stdin)
{
instructions = std::deque<unsigned char>(raw_instructions.begin(), raw_instructions.end());
stdin_deq... |
/*
* Copyright (c) 2003-2016, John Wiegley. 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 c... |
#include "stdafx.h"
#include "TipDict.h"
#define NAME_TIPDICT _T("\\server\\tipdict.dll")
template<>
CTipDict* SSingleton<CTipDict>::ms_Singleton = NULL;
CTipDict::CTipDict(SStringT strPath):m_hPlugin(NULL),m_funTipDict(NULL)
{
SStringT strDict = strPath + NAME_TIPDICT;
HMODULE hMod = LoadLibrary(strDict);
if(hM... |
#include "stdafx.h"
#include "game_sv_deathmatch.h"
#include "xrServer.h"
#include "xrMessages.h"
void game_sv_Deathmatch::OnEvent (NET_Packet &P, u16 type, u32 time, ClientID sender )
{
switch (type)
{
case GAME_EVENT_PLAYER_KILL: //dm only (g_kill)
{
u16 ID = P.r_u16();
xrClientData *l_pC = (xrClientDat... |
#include <stdio.h>
#include <cassert>
#include <string.h>
#include <inttypes.h>
#include <stdlib.h>
#define _INCLUDETAGE_
#include "predictor.h"
my_predictor *mypred;
#define prch(c) printf ("%u ", c)
/////////////////////////////////////////////////////////////
////////////////////////////////////////////////... |
/**
* 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... |
// 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/heap/heap.h"
#include "src/accessors.h"
#include "src/api.h"
#include "src/ast/scopeinfo.h"
#include "src/base/bits.h"
#include "src/base... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2021, sin-ack <sin-ack@protonmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/NonnullRefPtrVector.h>
#include <AK/Singleton.h>
#include <AK/StringBuilder.h>
#include <AK/StringView.h>
#include <Kernel/API/InodeWa... |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/command_stream_receiver_hw.h"
#include "opencl/source/command_queue/command_queue_hw.h"
#include "opencl/source/command_stream/aub_command_stream_receiver_hw.h"
#include "opencl/source/comm... |
// -*-c++-*-
/*!
\file field_analyzer.cpp
\brief miscellaneous field analysis Source File
*/
/*
*Copyright:
Copyright (C) Hidehisa AKIYAMA, Hiroki SHIMORA
This code 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... |
/**
* Copyright 2020 Huawei Technologies Co., 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... |
// generated from
// rosidl_typesupport_introspection_cpp/resource/msg__rosidl_typesupport_introspection_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef STD_MSGS__MSG__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_
#define STD_MSGS__MSG__FLOAT32__ROSIDL_TYPESUPPORT_INTROSPECTION_CPP_HPP_
... |
//
// Created by GWC-CHC-07 on 6/1/2020.
//
#include <cinder/app/AppBase.h>
#include <Card/funds.h>
#include <random>
#include "board.h"
#include "Tile/property.h"
#include "Tile/special.h"
#include "Card/move.h"
#include "Card/card.h"
using json = nlohmann::json;
namespace monopoly {
std::vector<Property*> Board:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.