text stringlengths 5 1.04M |
|---|
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_long_long_calloc_63b.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-63b.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memo... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include <stdlib.h>
#include <string.h>
#pragma prefast(push)
#pragma prefast(disable:26006, "Dont bother us with tchar, someone else owns that.")
#pragma prefast(disable:26007, "Dont bother us with tchar, someone else owns that.")
#pragma pre... |
/***********************************************************************
created: Mon Jul 18 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/***************************************************************************
* Copyrigh... |
// Copyright (c) 2009-2014 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/strength-config.h"
#endif
#include <cstddef>
#if defined(HAVE_SYS_SELECT_H)
#in... |
#include "../include/A.h"
//在类外定义函数 - 构造函数
A::A()
{
cout << "A()构造函数" << endl;
}
//在类外定义函数 - 析构函数
A::~A()
{
cout << "~A()析构函数" << endl;
}
//在类外定义函数 - f1()函数
void A::f1()
{
cout << "A::f1()函数被调用~~~" << endl;
}
//在类外定义函数 - f2()函数
void A::f2()
{
cout << "A::f2()函数被调用~~~" << endl;... |
// Copyright (c) 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 "chromeos/dbus/power/power_policy_controller.h"
#include <memory>
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#inclu... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/web_applications/preinstalled_web_apps/preinstalled_web_apps.h"
#include "base/test/bind.h"
#include "build/branding_buildflags.... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <stdlib.h>
#include <chrono>
#include <vector>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "deepeye_image_classifier_gpu.h"
#include "deepeye_util.h"
#include "cm_image.h"
#define TITLE "Visual Insp... |
//
// Copyright 2013 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
... |
/* Copyright 2019 FXCM Global Services, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use these files 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 agr... |
#include <QLabel>
#include <QMessageBox>
#include <QHeaderView>
#include <stdio.h>
#include <sqlite3.h>
#include <stdlib.h>
#include <iostream>
#include <swarmtv.h>
#include "sourcetablecontrol.hpp"
#include "sourceeditdialog.hpp"
#include "singleton.h"
#include "swarmtv.hpp"
#include "simplecell.hpp"
sourceTableCon... |
/**
* @file PyPlaceDB.cpp
* @author Yibo Lin (DREAMPlace), Rachel Selina Rajarathnam (DREAMPlaceFPGA)
* @date Mar 2021
* @brief Placement database for python
*/
#include <cmath>
#include <unordered_set>
#include <unordered_map>
#include "PyPlaceDB.h"
#include <boost/polygon/polygon.hpp>
DREAMPLACE_BEGIN_NAM... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBigPicture.h"
#include "SkCanvasPriv.h"
#include "SkPatchUtils.h"
#include "SkPicture.h"
#include "SkPictureUtils.h"
#include "SkRecorder.h"
#include "SkSurface.h"... |
#include <iostream> //cin cout
#include <algorithm> //min
using namespace std;
int main() {
// your code goes here
int totalNumberOfStudents;
cin>>totalNumberOfStudents;
int students[totalNumberOfStudents+1];
int programmer=0,maths=0,sports=0;
for(int i=1;i<=totalNumberOfStudents;i++){
cin>>s... |
#include "RNG.h"
int nev::RNG::getRandomVectorIndex(int vecSize)
{
return rand() % vecSize;
}
int nev::RNG::getRandomIntBetween(int from, int to)
{
if (from >= to)
return from;
int buf = (to - from) + 1;
int randomNumber = (rand() % buf) + from;
return randomNumber;
}
float nev::RNG::getRandomFloatBetween(... |
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "array_attribute_combiner_dfw.h"
#include "attribute_field_writer.h"
#include "docsum_field_writer_state.h"
#include "struct_fields_resolver.h"
#include <vespa/searchcommon/attribute/iattributecontext.h>
#... |
// Copyright(c) 2017-2019, Intel Corporation
//
// 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... |
#include<iostream>
using namespace std;
void menu()
{
cout << "Press 1 to calculate Sum of Numbers\n";
cout << "Press 2 to calculate Difference of Numbers\n";
cout << "Press 3 to calculate Product of numbers\n";
cout << "Press 4 to calculate Division of numbers\n";
cout << "Press X or x to t... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <proxygen/lib/http/codec/HTTP2Framer.h>
#include <folly/tracing/ScopedTraceSection.h>
us... |
/**
* 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... |
// Copyright (c) 2013 Elements of Programming Interviews. All rights reserved.
#include <algorithm>
#include <cassert>
#include <iostream>
#include <limits>
#include <random>
#include <string>
using std::cout;
using std::default_random_engine;
using std::endl;
using std::numeric_limits;
using std::random_device;
usin... |
// Copyright Epic Games, Inc. All Rights Reserved.
#include "MultiThreadingCharacter.h"
#include "HeadMountedDisplayFunctionLibrary.h"
#include "Camera/CameraComponent.h"
#include "Components/CapsuleComponent.h"
#include "Components/InputComponent.h"
#include "GameFramework/CharacterMovementComponent.h"
#include "Game... |
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
/*
* Copyright (c) 2021 Huawei Device 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 o... |
// Copyright (c) 2012-2017, The CryptoNote developers, The Bytecoin developers
// Copyright (c) 2014-2018, The Monero Project
// Copyright (c) 2018, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information.
#include "PaymentServiceJsonRpcServer.h"
#include <functional>
#include <Cryp... |
#include "mxCommonPopup.h"
#include "mxUtils.h"
#include "mxLongTextEditor.h"
#include "mxEnumerationEditor.h"
#include "mxThreeDotsUtils.h"
void mxCommonPopup::ProcessCommandEvent(wxCommandEvent &evt) {
if (!m_text_ctrl && !m_combo_box) return;
switch (evt.GetId()) {
case mxID_POPUPS_EDIT_AS_TEXT:
if (m_text_ctr... |
class Solution {
public:
int findMin(vector<int>& nums) {
int start = 0;
int end = nums.size() - 1;
while(start + 1 < end)
{
int mid = start + (end - start) / 2;
if (nums[mid] > nums[end])
{
start = mid;
... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtWidgets module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid com... |
/*
This file is part of:
NoahFrame
https://github.com/ketoo/NoahGameFrame
Copyright 2009 - 2019 NoahFrame(NoahGameFrame)
File creator: lvsheng.huang
NoahFrame is open-source software and you can redistribute it and/or modify
it under the terms of the License; b... |
#include <iostream>
#include "dyncycles.h"
using namespace std;
struct Elem: public Object {
Elem* next;
Elem* next2;
string name;
Elem(string name):Object() {
this->name = name;
}
~Elem() override {
cout << "delete " << name << endl;
lshared_release_single((Object**)&n... |
#include <Common/Exception.h>
#include <Columns/ColumnsNumber.h>
#include <DataTypes/DataTypesNumber.h>
#include <DataStreams/IProfilingBlockInputStream.h>
#include <DataStreams/LimitBlockInputStream.h>
#include <Storages/System/StorageSystemNumbers.h>
namespace DB
{
class NumbersBlockInputStream : public IProfiling... |
/*
* Copyright 2015, alex at staticlibs.net
*
* 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 ag... |
#include "../headers/deck.h"
namespace pkr
{
Deck::Deck()
{
//std::srand(std::time(NULL));
for(int i((int)CardSuit::club); i <= (int)CardSuit::spade; ++i)
{
for(int j((int)CardValue::two); j <= (int)CardValue::ace; ++j)
cards.insert(Card(j,i));
}
... |
#include "../CompanyManager.h"
#include "../Graphics/Colour.h"
#include "../Graphics/Gfx.h"
#include "../Graphics/ImageIds.h"
#include "../Input.h"
#include "../Interop/Interop.hpp"
#include "../Localisation/FormatArguments.hpp"
#include "../Localisation/StringIds.h"
#include "../Objects/CargoObject.h"
#include "../Obj... |
// Copyright (c) 2016 The Zcash developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "asyncrpcoperation.h"
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp... |
/*
* Copyright 2012, 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 applica... |
/*******************************************************************************
* 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://www.apa... |
#ifndef WAS_DIRECT2DCONTEXTBASE_HPP
#define WAS_DIRECT2DCONTEXTBASE_HPP
#include <d2d1.h>
#include <dwrite.h>
#include <wincodec.h>
#include <unordered_map>
#include "NUIE_DrawingContext.hpp"
#include "WAS_IncludeWindowsHeaders.hpp"
#include "WAS_Direct2DImageLoader.hpp"
namespace WAS
{
class Direct2DHandler
{
publ... |
//
// Copyright (c) 2016,2018 CNRS
//
#include "pinocchio/parsers/python.hpp"
#include <iostream>
#include <Python.h>
#include <boost/shared_ptr.hpp>
#include <boost/version.hpp>
// Boost 1.58
#if BOOST_VERSION / 100 % 1000 == 58
#include <fstream>
#endif
namespace pinocchio
{
namespace python
{
namespace b... |
#include <boost/callable_traits/args.hpp>
|
// 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 "webkit/plugins/ppapi/ppb_graphics_2d_impl.h"
#include <iterator>
#include "base/bind.h"
#include "base/debug/trace_event.h"
#include "base... |
// Author(s): A.J. (Hannes) pretorius
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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)
//
/// ... |
/*
* Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
#include "../stroustrup/std_lib_facilities.h"
//CAP 6 EX 04
class Name_value{
public:
string something;
int value;
Name_value(string n, int v)
:something(n), value(v) {}
};
bool check_repeating(vector<Name_value>names, string name)
{
for (Name_value h: names)
{
... |
// This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::UECS::SystemMngr> :
TypeInfoBase<Ubpa::UECS::SystemMngr>
{
#ifdef UBPA_USREFL_NOT_USE_NAMEOF
static constexpr char name[23] = "Ubpa::UECS::SystemMngr";
#endif
static ... |
//#include <algorithm>
//#include <bitset>
//#include <cassert>
//#include <cctype>
//#include <climits>
//#include <cmath>
//#include <cstdio>
//#include <cstdlib>
//#include <cstring>
//#include <fstream>
//#include <iostream>
//#include <iomanip>
//#include <iterator>
//#include <list>
//#include <map>
//#include <n... |
//
// stream_socket_service_ext.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com)
// Copyright (C) 2016-2019 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LI... |
/*
debug.cpp - Small debug library for my project
*/
#include "Arduino.h"
#include "debug.h"
void MyDebug::output(const char *x) {
#ifdef debugMode
Serial.print(x);
#endif
}
void MyDebug::show(char x[]) {
#ifdef debugMode
Serial.print(F("char[]: "));
Serial.print(x);
Serial.println(F(""));
... |
// File doc/quickbook/eglplus/quickref/enums/swap_behavior_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/eglplus/swap_behavior.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2019 Matus Chochlik.
// Distributed under the Boos... |
#include "Game/CardView/CardView.hpp"
#include <cmath>
#include <iostream>
namespace cge
{
CardView::CardView(void)
:
m_cardUnderMouse(-1),
m_lastMousePos(-10000,-10000),
m_maxSelectedCards(1),
m_cardAnimations(NULL),
m_animationManager(NULL),
m_cardContainer(104),
m_handGenerator(&m_cardContainer),
... |
#include "systems/InputSystem.hh"
#include "advanced/transform.hh"
void gamedev::InputSystem::AddEntity(InstanceHandle& handle, Signature entitySignature) {
mEntities.insert(handle);
}
void gamedev::InputSystem::RemoveEntity(InstanceHandle& handle, Signature entitySignature) {
mEntities.erase(handle);
}
void... |
#include <mbgl/storage/asset_file_source.hpp>
#include <mbgl/storage/database_file_source.hpp>
#include <mbgl/storage/file_source_manager.hpp>
#include <mbgl/storage/local_file_source.hpp>
#include <mbgl/storage/main_resource_loader.hpp>
#include <mbgl/storage/online_file_source.hpp>
#include <mbgl/storage/mbtiles_file... |
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "Utils/SpatialBasicAwaiter.h"
#include "Engine/World.h"
#include "TimerManager.h"
void USpatialBasicAwaiter::BeginDestroy()
{
InvokeQueuedDelegates(FString::Printf(TEXT("Awaiter '%s' was destroyed!"), *GetName()));
Super::BeginDestroy();
}
FDele... |
/**
* @file Tests.cpp
*
* @brief Test routines for Zerocoin.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT license.
**/
// Copyright (c) 20... |
#include "nsasm/decode.h"
#include "absl/memory/memory.h"
#include "nsasm/expression.h"
#include "nsasm/opcode_map.h"
namespace nsasm {
ErrorOr<Instruction> Decode(absl::Span<const uint8_t> bytes,
const StatusFlags& flags) {
if (bytes.empty()) {
return Error("Not enough bytes to dec... |
#include "aes.h"
unsigned char AES::sBox[] =
{ // 0 1 2 3 4 5 6 7 8 9 a b c d e f
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, //0
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa... |
/*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
//===----------------------------------------------------------------------===//
//
// Part of the libcu++ 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 (C) 2013-2017 MulticoreWare, Inc
*
* Authors: Peixuan Zhang <zhangpeixuancn@gmail.com>
* Chunli Zhang <chunli@multicorewareinc.com>
*
* This program is free software; you can redistribute it and/or modify
* it und... |
//
// Created by zing on 4/30/2020.
//
#include <vector>
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
vector<int> vec1;
vector<int> vec2(vec1);
vector<int> vec3 = vec2;
vector<int> vec4(10, -1);
vector<string> language = {"cpp", "rust", "java"};
... |
/*
* 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 <folly/portability/GTest.h>
#include <quic/common/test/TestUtils.h>
#include <quic/congestion_control/test/TestingCubic... |
/*
* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#include "AddTransformersCommand.h"
#include <new>
#include <stdio.h>
#include <string.h>
#include <Catalog.h>
#include <Locale.h>
#include "ShapeContainer.h"
#include "Shape.h"
... |
/*
* Copyright 2011-2018 Blender 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 applicable law or ag... |
//
// Created by william on 7/6/17.
//
#ifndef FAM_EXAMPLE
#define FAM_EXAMPLE
#include <fam.h>
#include <iostream>
#include <string.h>
class Fam
{
private:
FAMConnection* fc;
FAMRequest* fr;
// event data is put here. This pointer will be reused for each event.
FAMEvent* fe = new FA... |
#include "Board.hpp"
#include "doctest.h"
#include <string>
using namespace std;
using namespace ariel;
Board board;
TEST_CASE("Empty Board")
{
CHECK(board.read(0, 0, Direction::Horizontal, 0) == "");
CHECK(board.read(0, 0, Direction::Horizontal, 1) == string("_"));
CHECK(board.read(0, 0, Direction::Vertica... |
/******************************************************************************
Copyright (c) 2021, Farbod Farshidian. 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 mu... |
#pragma once
#include "../ColliderPrimitive.hpp"
namespace Engine5
{
class ColliderPlane
{
public:
ColliderPlane();
~ColliderPlane();
ColliderPlane(const ColliderPlane& rhs) = delete;
ColliderPlane& operator=(const ColliderPlane& rhs) = delete;
void Initi... |
#ifndef __NMC_TOOLS_HPP__
#define __NMC_TOOLS_HPP__
#include "NMC_numComp.hpp"
#ifdef __FILE__
#ifdef __LINE__
#define NMC_DEF_GETFILELINE 1
#endif
#endif
#ifdef NMC_DEF_GETFILELINE
#define NMC_GETFILELINE \
" on file: '" __FILE__ "' line: '" << __LINE__ << "' function: " << __func__
#... |
// <Snippet1>
#define _WINSOCKAPI_
#include <windows.h>
#include <sal.h>
#include <httpserv.h>
// Create the module class.
class MyHttpModule : public CHttpModule
{
public:
REQUEST_NOTIFICATION_STATUS
OnBeginRequest(
IN IHttpContext * pHttpContext,
IN IHttpEventProvider * pProvider
)
{
... |
/**
* @file paramgen.cpp
*
* @brief Parameter generation utility for Zerocoin.
*
* @author Ian Miers, Christina Garman and Matthew Green
* @date June 2013
*
* @copyright Copyright 2013 Ian Miers, Christina Garman and Matthew Green
* @license This project is released under the MIT licen... |
//
// TextureCacheScriptingInterface.cpp
// libraries/mmodel-networking/src/model-networking
//
// Created by David Rowe on 25 Jul 2018.
// Copyright 2018 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... |
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
private:
ListNode* mergeTwoLists... |
/*
Copyright (C): 2020, UMI Academy
modified by Ninh.D.H
*/
#include "pxt.h"
#include <map>
#include <vector>
#include "ReceiverIR.h"
using namespace pxt;
typedef vector<Action> vA;
enum class RemoteButton {
CH_MINUS = 0x45,
CH = 0x46,
CH_Add = 0x47,
PREV = 0x44,
PLAY = 0x43,
NUM_200 = 0xd,
... |
/* hyperloglog.c - Redis HyperLogLog probabilistic cardinality approximation.
* This file implements the algorithm and the exported Redis commands.
*
* Copyright (c) 2014, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
// stdafx.cpp : source file that includes just the standard includes
// testclassifier-gui.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
|
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/op/binary_convolution.hpp"
#include "itt.hpp"
#include "ngraph/attribute_visitor.hpp"
#include "ngraph/axis_vector.hpp"
#include "ngraph/coordinate_diff.hpp"
#include "ngraph/op/reshape.hpp"
#include "ngraph/util.h... |
/*
* Repast for High Performance Computing (Repast HPC)
*
* Copyright (c) 2010 Argonne National Laboratory
* All rights reserved.
*
* Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that the following
* conditions are met:
*
* Redistrib... |
/**
* eZmax API Definition (Full)
* This API expose all the functionnalities for the eZmax and eZsign applications.
*
* The version of the OpenAPI document: 1.1.7
* Contact: support-api@ezmax.ca
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-gener... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.Motion
#include... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/renderer_context_menu/render_view_context_menu.h"
#include "base/prefs/pref_service.h"
#include "chrome/app/chrome_command_ids.h... |
#include "RecoMuon/CosmicMuonProducer/src/CosmicMuonLinksProducer.h"
/**\class CosmicMuonLinksProducer
*
*
* Original Author: Chang Liu - Purdue University <chang.liu@cern.ch>
**/
// system include files
#include <memory>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCor... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 "interpreter.h"
#include "primitives/transaction.h"
#include "crypto/ri... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
//
// This file implements FunctionGroup, FunctionGroupAnalysis and
// FunctionGrou... |
/*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2019 Yermalayeu Ihar.
*
* 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 witho... |
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/
// Portions Copyright 2000-2004 Jonathan de Halleux
//
// 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:... |
/*
****************************************************************
****************************************************************
-> Coded by Stavros Chryselis
-> Visit my github for more solved problems over multiple sites
-> https://github.com/StavrosChryselis
-> Feel free to email me at stavrikios@gm... |
#include "insocket.h"
#include <stdio.h>
#include <iostream.h>
#define w aus
inSocket::inSocket(void)
{
addr.sin_addr.s_addr=INADDR_ANY;
addr.sin_family=AF_INET;
fd=-1;
type = SOCK_STREAM;
}
inSocket::inSocket(unsigned int port,addrType ad, int theType)
{
hostent * he;
type = theType;
create();
if... |
/*
*
* Copyright (c) 1998-2002
* John Maddock
*
* 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)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent versi... |
#include "stdafx.h"
#include "Utils.h"
//GLenum GetFormat(Format format)
//{
// switch (format)
// {
// case Format::B8G8R8A8_UNORM_SRGB:
// case Format::B8G8R8A8_UNORM:
// *glType = GL_UNSIGNED_BYTE;
// *glClientFormat =GL_BGRA_EXT;
// *interalFormat = GL_RGBA;
/... |
#include "cluster.h"
Cluster::Cluster ()
{
this->lastid = 0;
this->processors = 1;
this->maxprocessors = 1;
}
Cluster::Cluster (int p)
{
this->lastid = 0;
this->processors = p;
this->maxprocessors = p;
}
Cluster::~Cluster ()
{
}
// is there a waiting queue?
bool Cluster::isWaiting()
{
return !this->waiting.e... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... |
// Copyright 2019 The Crashpad 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 ... |
#include "midivaluedelegate.h"
#include "enums.h"
#include <QApplication>
bool hasLut(const QModelIndex &index) {
return index.data(MidiDataRole::MidiValues).isValid();
}
QStringList lut(const QModelIndex &index) {
Q_ASSERT(hasLut(index));
return index.data(MidiDataRole::MidiValues).toStringList();
}
... |
/*
* Build executable object file liking with cc_library lib file template.
*
* Copyright Paran Lee
*
*/
#include <iostream>
#include <string>
#include <memory>
#include "lib/Cuboid.hpp"
#include "main/Grid.hpp"
using namespace std;
int main(int argc, char** argv) {
Grid<int> myIntGrid;
Grid<double> m... |
#include "lualib.h"
#include "lgc.h"
#include "lobject.h"
#include "lapi.h"
#include "ltable.h"
#include "lstate.h"
#include <cpr/cpr.h>
#undef strdup
#define strdup _strdup
#undef strlwr
#define strlwr _strlwr
#define CPR_RESPONSE "cprResponse"
typedef struct ResponseData
{
//private:
cpr::Response* o... |
/**
* 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... |
#ifndef matching2D_hpp
#define matching2D_hpp
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <limits>
#include <opencv2/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/features2d.hpp>
#i... |
#include <boost/test/unit_test.hpp>
#include <vector>
#include "util.h"
#include "hash.h"
using namespace std;
BOOST_AUTO_TEST_SUITE(hash_tests)
BOOST_AUTO_TEST_CASE(murmurhash3)
{
#define T(expected, seed, data) BOOST_CHECK_EQUAL(MurmurHash3(seed, ParseHex(data)), expected)
// Test MurmurHash3 with various i... |
#include "stdafx.h"
#include "Docking/DockContainer.h"
#include "Docking/DockGroup.h"
#include "Docking/DockWidget.h"
#include <QtCore/QStringBuilder>
#include <lean/io/numeric.h>
#include "Utility/UI.h"
namespace
{
struct Dock
{
QString name;
DockWidget *widget;
bool bActive;
bool bMakeFron... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.