text stringlengths 7 961k |
|---|
//===------------------------- AddressSpace.hpp ---------------------------===//
//
// 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.
//
//
// Abstracts accessing local vs remote add... |
/**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
#include "munition_instance.h"
#include "../engines/physics/projectile.h"
MunitionBullet::MunitionBullet(int id, std::vector<float> d, std::vector<float> v, std::vector<float> p, std::vector<float> r, std::vector<float> y) : Munition(id, 25, d, v, p, r, y, 0, 600) {
this->type = ObjType::BULLET;
}
MunitionBomb::Munit... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkMatrix.h"
#include "include/core/SkPath.h"
#include "include/core/SkRect.h"
#include "src/core/SkDrawShadowInfo.h"
#include "src/utils/SkPolyUtils.h"
... |
#include "MyLabel.h"
MyLabel::MyLabel(Ui::Form ui, QWidget *parent ) : QLabel(parent)
{
this->ui = ui;
}
MyLabel::~MyLabel()
{
}
//when the system calls setImage, we'll set the label's pixmap
void MyLabel::setImage(QImage image) {
QPixmap pixmap = QPixmap::fromImage(image);
pixmap = pixmap.transformed(QTrans... |
/*=========================================================================
*
* 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... |
/*
* Copyright (c) 2020, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
/*
* Dawn Engine
* Written by David Avedissian (c) 2012-2019 (git@dga.dev)
*/
#include "Base.h"
#include "renderer/FrameBuffer.h"
#include "renderer/Renderer.h"
namespace dw {
FrameBuffer::FrameBuffer(Context* ctx, const Vec2i& size, gfx::TextureFormat format)
: FrameBuffer(ctx, {Texture::createTexture2D(ctx, s... |
/**
* Copyright (c) 2017-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... |
/*
* 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 ... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include <cstdio>
#include "ops/exponent/ExponentOp.h"
#include "ops/matrix/MatrixOpData.h"
#include "transforms/CDLTransform.cpp"
#include "testutils/UnitTest.h"
#include "UnitTestUtils.h"
#include "Platform.h"
namespa... |
#pragma once
#include "flite/cg/cg.hpp"
#include "./vc.hpp"
#define LENGTH 256
#define INFTY ((double)1.0e+38)
#define INFTY2 ((double)1.0e+19)
#define INVINF ((double)1.0e-38)
#define INVINF2 ((double)1.0e-19)
#ifdef M_PI
#define PI M_PI
#else
#define PI 3.1415926535897932385
#endif
#define WLEFT 0
#define WRIGHT... |
/*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==... |
#include <string>
#include <vector>
#include "envoy/common/time.h"
#include "source/common/protobuf/utility.h"
#include "source/extensions/tracers/xray/daemon.pb.h"
#include "source/extensions/tracers/xray/daemon.pb.validate.h"
#include "source/extensions/tracers/xray/tracer.h"
#include "source/extensions/tracers/xra... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_array_class_calloc_54d.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete_array.label.xml
Template File: sources-sinks-54d.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Manageme... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include "Tools/Display/bash_tools.h"
#include "Terminal_EXIT.hpp"
using namespace aff3ct;
using namespace aff3ct::tools;
template <typename B, typename R>
Terminal_EXIT<B,R>
::Terminal_EXIT(const module::Monitor_EXIT<B,R> &monitor)
: Terminal(),
monitor(m... |
// 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 "src/lib/util/status_codes.h"
namespace cobalt::util {
std::optional<StatusCode> ErrnoToStatusCode(int error_number) {
switch (error_number) {... |
/***
*
* Copyright (c) 1996-2001, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* obje... |
// 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/timer/elapsed_timer.h"
namespace base {
namespace {
bool g_mock_elapsed_timers_for_test = false;
} // namespace
ElapsedTimer::ElapsedTi... |
// Copyright Kevlin Henney, 2000-2005.
// Copyright Alexander Nasonov, 2006-2010.
// Copyright Antony Polukhin, 2011-2014.
//
// 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)
//
// what: lexical_cast custom keywo... |
#include "frame_main.h"
#include "frame_setting.h"
#include "frame_keyboard.h"
#include "frame_factorytest.h"
#include "frame_wifiscan.h"
#include "frame_lifegame.h"
#include "frame_fileindex.h"
#include "frame_compare.h"
#include "frame_home.h"
enum
{
kKeyFactoryTest = 0,
kKeySetting,
kKeyKeyboard,
kK... |
#include<bits/stdc++.h>
using namespace std;
const int N = 1005;
const long long inf = 1e18 + 1;
string s[N];
long long dp[N][N][4]; int n, m;
long long yo(int i, int j, int d) {
long long &ret = dp[i][j][d];
if (ret != -1) return ret;
ret = 1;
int ni = i, nj = j;
if (d == 0) ni--;
else if (d == 1) ni++;
else... |
//==================================================================================================
/**
Copyright 2017 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
**/
//====================================... |
//////////////////////////////////////////////////////////////////////////////
/// 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
/// ... |
//
// Copyright (c) 2019 The Aquarium 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 "Context.h"
#include <sstream>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_internal.h"
#include "Aquariu... |
#include "HealthDisplay.h"
#include "../../GameObject/Player/Player.h"
#include "../../Atla.h"
HealthDisplay::HealthDisplay(UIManager* _parent, SDL_Texture* _spritesheet)
{
m_parent = _parent;
m_spritesheet = _spritesheet;
activeTexture = SDL_CreateTexture(m_parent->GetEngine()->RENDERER, NULL, SDL_TEXTUREACCESS_TA... |
/*
* Copyright 2019 Xilinx 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 <iostream>
#include <sstream>
#include <string>
int main(){
int max_size;
int a;
std::cin >> a;
max_size = a%2==0?a+1:a;
int* arr = new int[max_size]{};
std::string str;
std::getline(std::cin, str);
std::getline(std::cin, str);
std::stringstream ss;
ss << str;
for(int i{}; i < a;... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "JSLibInternal.h"
#include "hermes/VM/CellKind.h"
#include "hermes/VM/JSWeakMapImpl.h"
#include "hermes/VM/StringPrimit... |
/*
* Copyright 1999 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
// Cmd_Password.cpp
#include "stdafx.h"
#include "p4win.h"
#include "cmd_password.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMEN... |
//===-test_sub_example_dnnl.cc-----------------------------------------------------------===//
//
// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
//
// 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 o... |
// Copyright 2018 The MACE 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 appl... |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... |
#include "gameData.h"
using namespace gameData;
namespace gameData {
std::shared_ptr<Board> gameBoard = std::make_shared<Board>(boardX, boardY);
void initBoard() {
for (int x = 0; x < boardX; x++) {
for (int y = 0; y < (boardY - 1); y++) {
gameBoard->setField(x, y, NOTHING);
}
}
for (int x = 0... |
#include "BaseJsonList.h"
BaseJsonList::BaseJsonList(BaseJsonNode *pParent){
mParent = pParent;
}
BaseJsonNode* BaseJsonList::getParent(){
return mParent;
} |
#include "decoderhdlc.h"
DecoderHdlc::DecoderHdlc(QObject *parent,Configuration *config) :
DecoderBin(parent,config)
{
hdlc_esc = QByteArray::fromHex(config->get("_setup_","hdlc_esc","7d").toUtf8())[0];
hdlc_sep = QByteArray::fromHex(config->get("_setup_","hdlc_sep","7e").toUtf8())[0];
hdlc_xor = QByte... |
// dear imgui: Renderer for OpenGL3 / OpenGL ES2 / OpenGL ES3 (modern OpenGL with shaders / programmatic pipeline)
// This needs to be used along with a Platform Binding (e.g. GLFW, SDL, Win32, custom..)
// (Note: We are using GL3W as a helper library to access OpenGL functions since there is no standard header to acce... |
// 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 "wallet.h"
#include "walletexcept.h"
#include "sigmaspendbuilder.h"
#inc... |
#include "SetStartPositionList.h"
#include "Globals.h"
#include "Utils/BitConverter.h"
#include "Utils/StringHelper.h"
#include "ZFile.h"
#include "ZRoom/ZNames.h"
#include "ZRoom/ZRoom.h"
SetStartPositionList::SetStartPositionList(ZFile* nParent) : ZRoomCommand(nParent)
{
}
void SetStartPositionList::ParseRawData()... |
#include <bits/stdc++.h>
#include "Student.cpp"
using namespace std;
int main()
{
Student s1(100, 23);
// s1.x = age;
s1.age = 30;
cout << s1.rollNumber << " " << s1.age << " " << s1.x << endl;
Student const s2 = s1;
cout << s2.getRollNumber() << " " << s2.getAge() << endl;
} |
/*
* 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 "hermes/SynthTraceParser.h"
#include "hermes/Parser/JSLexer.h"
#include "hermes/Parser/JSONParser.h"
#include "hermes/Supp... |
// Copyright (c) 2011-2013 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 "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#inc... |
#include "res.h"
namespace res
{
Resources ui;
void load()
{
ui.loadXML("xmls/ui.xml");
}
void free()
{
ui.free();
}
} |
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/ime/text_input_client.h"
#include "ui/views/ime/input_method_base.h"
#include "ui/views/ime/text_input_type_tracker.h"
#include "ui/... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Helveticum Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "utilmoneystr.h"
#include "primitives/transaction.h"
#include "tinyf... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE590_Free_Memory_Not_on_Heap__delete_char_declare_53c.cpp
Label Definition File: CWE590_Free_Memory_Not_on_Heap__delete.nonpointer.label.xml
Template File: sources-sink-53c.tmpl.cpp
*/
/*
* @description
* CWE: 590 Free Memory Not on Heap
* BadSource: declare Data buffe... |
// 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 <stddef.h>
#include <limits>
#include <vector>
#include "base/logging.h"
#include "base/numerics/math_constants.h"
#include "base/stl_util.h"
#... |
#include <iostream>
#include <vector>
#include <unordered_set>
#include <utility>
#include <string>
#include <filesystem>
#include <sstream>
#include <fstream>
#include <defines.hpp>
int main(int argc, char *argv[]){
// Print usage
if(argc < 4){
std::cerr << "Usage: " << argv[0] << " <solutions_dir> <o... |
/****************************************************************************
**
** Copyright (C) 2017 TU Wien, ACIN, Vision 4 Robotics (V4R) group
** Contact: v4r.acin.tuwien.ac.at
**
** This file is part of V4R
**
** V4R is distributed under dual licenses - GPLv3 or closed source.
**
** GNU General Public License Usa... |
// Copyright 2017 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/wasm/baseline/liftoff-assembler.h"
#include <sstream>
#include "src/base/optional.h"
#include "src/base/platform/wrappers.h"
#include "s... |
#pragma once
namespace mrs::testing {
template <typename Node, uint64_t max_int>
void test_node() {
std::cout << "# " << Node::name() << " # fanout " << Node::fanout
<< " # max_int " << max_int << std::endl;
typedef typename Node::key_type uint_type;
std::vector<uint_type> A(Node::fanout);
... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/drive/debug_info_collector.h"
#include "base/callback.h"
#include "base/logging.h"
#include "chrome/browser/google_apis... |
// | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Jordi Cotela
//
// System includes
// Externa... |
// This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited.
#pragma once
#include "column/column_builder.h"
#include "column/column_helper.h"
#include "column/column_viewer.h"
#include "column/hash_set.h"
#include "common/object_pool.h"
#include "exprs/predicate.h"
namespace starrocks {... |
//
// GA-SDK-CPP
// Copyright 2018 GameAnalytics C++ SDK. All rights reserved.
//
#if !USE_UWP
#include "GAHTTPApi.h"
#include "GAState.h"
#include "GALogger.h"
#include "GAUtilities.h"
#include "GAValidator.h"
#include "curl_exception.h"
#include "curl_ios.h"
#include <ostream>
#include <future>
#if USE_TIZEN
#includ... |
/*
* SleuthKit support code for fiwalk
*
*
* The software provided here is released by the Naval Postgraduate
* School, an agency of the U.S. Department of Navy. The software
* bears no warranty, either expressed or implied. NPS does not assume
* legal liability nor responsibility for a User's use of the softwa... |
// Copyright (c) 2009-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 "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"
#inc... |
// 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 "ui/gl/android_native_window.h"
#include <android/native_window.h>
namespace gfx {
AndroidNativeWindow::AndroidNativeWindow(ANativeWindow*... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/**
* MOAB, a Mesh-Oriented datABase, is a software component for creating,
* storing and accessing finite element mesh data.
*
* Copyright 2004 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government
* retains certain rights in this software.
*
* This ... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
/*
* 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 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w... |
//*****************************************************************************
// Copyright 2017-2019 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... |
// Licensed to the LF AI & Data foundation 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 not use th... |
//
// Copyright (c) 2013, Ford Motor Company
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this
// list of condit... |
/*
*
* Copyright 2018 Asylo 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 agree... |
#include "steam_defs.h"
#include "steamworks_sdk_131/steam_api.h"
#include "steamclient_private.h"
#include "cppISteamApps_STEAMAPPS_INTERFACE_VERSION006.h"
#ifdef __cplusplus
extern "C" {
#endif
#include "struct_converters_131.h"
bool cppISteamApps_STEAMAPPS_INTERFACE_VERSION006_BIsSubscribed(void *linux_side)
{
r... |
#include "PropertyList.h"
#include "PropertyBase.h"
#include "PropertyInt.h"
#include "PropertyDouble.h"
#include "PropertyString.h"
#include "PropertyColor.h"
#include "PropertyBool.h"
#include "PropertyPoint.h"
#include <QString>
#include <assert.h>
namespace DataProperty
{
PropertyList::~PropertyList()
{
clearP... |
/*=============================================================================
* This is a part of the yLib Software Development Kit.
* Copyright (C) 1998-2000 YEAsoft Int'l.
* All rights reserved.
*=============================================================================
* Copyright (c) 1998-2000 YEAsoft Int... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#include "bitcoinunits.h"
#include "clientmodel.h"
#include "guiconstants.h"
#include "guiutil.h"
#i... |
///////////////////////////////////////////////////////////////////////
// File: params_training_featdef.cpp
// Description: Utility functions for params training features.
// Author: David Eger
// Created: Mon Jun 11 11:26:42 PDT 2012
//
// (C) Copyright 2012, Google Inc.
// Licensed under the Apache L... |
#include "command/builtin/help.h"
#include "console.h"
namespace clidevt {
void BuiltInHelpCommand::execute(std::string param) {
std::string str = param;
str = str.erase(0, str.find_first_not_of(" "));
str = str.erase(str.find_last_not_of(" ")+1);
Command* cmd = _console->getCommand(str);
if(cmd =... |
#include "StdAfx.h"
#include "ControlFactory.h"
namespace DuiLib {
CControlFactory *CControlFactory::m_pThis = NULL;
CControlFactory::CControlFactory() {
INNER_REGISTER_DUICONTROL(CControlUI);
INNER_REGISTER_DUICONTROL(CContainerUI);
INNER_REGISTER_DUICONTROL(CButtonUI);
INNE... |
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2014, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// xh_calb.cpp - wxCalendarBox handler
//
///////////////////////////////////////////... |
#include "thcrap.h"
#include <sstream>
#include <cstring>
#include "update.h"
#include "server.h"
#include "strings_array.h"
#include "3rdparty/crc32.h"
Update::Update(Update::filter_t filterCallback,
progress_callback_t progressCallback, void *progressData)
: filterCallback(filterCallback), progres... |
#include <cstdint>
#include <list>
#include <memory>
#include <string>
#include "envoy/common/exception.h"
#include "envoy/config/core/v3/address.pb.h"
#include "source/common/common/thread.h"
#include "source/common/network/address_impl.h"
#include "source/common/network/io_socket_handle_impl.h"
#include "source/com... |
/*
Copyright (c) DataStax, 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 in writing, so... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
#include <iostream>
#define _CRT_SECURE_NO_WARNINGS
#include "editor.h"
void print(int* Array, int N) {
int i;
for (i = 0; i < N; i++) {
std::cout << Array[i];
std::cout << " ";
}
}
int main()
{
int N, K, i, S = 0, L;
editor::matrix_editor matrix[10];
editor::matrix_editor mer... |
#pragma once
#include "rs-io/utility.hpp"
#include "rs-format/string.hpp"
#include "rs-tl/types.hpp"
#include <cstdlib>
#include <functional>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
namespace RS::IO {
class Uri:
public TL::TotalOrder<Uri> {
public:
static const... |
/*
* Regression test for https://github.com/armoniax/amax.cdt/issues/582
*
* Verifies that separate cpp and hpp files can be compile without `-o`
*/
#include "separate_cpp_hpp.hpp"
void separate_cpp_hpp::act() {
eosio::print("ok\n");
} |
/**
* @file spsa_test.cpp
* @author N Rajiv Vaidyanathan
* @author Marcus Edel
*
* Test file for the SPSA optimizer.
*
* ensmallen is free software; you may redistribute it and/or modify it under
* the terms of the 3-clause BSD license. You should have received a copy of
* the 3-clause BSD license along with ... |
//===--- AArch64.cpp - Implement AArch64 target feature support -----------===//
//
// 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
//
//===---------------------------... |
/* $Id: direnum-win.cpp $ */
/** @file
* IPRT - Directory Enumeration, Windows.
*/
/*
* Copyright (C) 2006-2017 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 redistribute it and/or modify it ... |
#include "APU.h"
#include "NES.h"
//APU channels
#include "APU_DMC.h"
#include "APU_Noise.h"
#include "APU_Square.h"
#include "APU_Triangle.h"
#include "APU_Square2.h"
static ALfloat ListenerPos[] = { 0.0f, 0.0f, 0.0f };
static ALfloat ListenerVel[] = { 0.0f, 0.0f, 0.0f };
static ALfloat ListenerOri[] = { 0.0f, 0.0f,... |
#include<cstdio>
#include<algorithm>
#include<queue>
using namespace std;
struct node{
int data;
int height;
node* lchild;
node* rchild;
};
node* newNode(int x){
node* root = new node;
root->data = x;
root->height = 1;
root->lchild = root->rchild = NULL;
return root;
}
int getHeight(node* root){
if(root =... |
/**************************************************************
*
* 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 y... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include "../channels.h"
#include "crypto/verifier.h"
#include "ds/hex.h"
#include "node/entities.h"
#include "node/node_to_node.h"
#include "node/node_types.h"
#include <algorithm>
#include <cstring>
#include <queu... |
#ifndef TEST_PROB_UTILITY_HPP
#define TEST_PROB_UTILITY_HPP
#include <stan/math/mix.hpp>
using stan::is_constant_all;
using stan::is_vector;
using stan::math::fvar;
using stan::math::var;
using stan::scalar_type;
using std::vector;
typedef stan::math::index_type<Eigen::Matrix<double, 1, 1> >::type size_type;
// ---... |
//===- TestMatchers.cpp - Pass to test matchers ---------------------------===//
//
// 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
//
//===---------------------------... |
// Autogenerated from KST: please remove this line if doing any edits by hand!
#include <boost/test/unit_test.hpp>
#include "combine_enum.h"
#include <iostream>
#include <fstream>
#include <vector>
BOOST_AUTO_TEST_CASE(test_combine_enum) {
std::ifstream ifs("src/enum_0.bin", std::ifstream::binary);
kaitai::ks... |
#include "stardust/rect/Rect.h"
#include "stardust/math/Math.h"
namespace stardust
{
[[nodiscard]] Rect Rect::GetMinimumEnslosingRect(const Vector<IVec2>& points)
{
Rect minimumEnslosingRect;
SDL_EnclosePoints(reinterpret_cast<const SDL_Point*>(points.data()), static_cast<i32>(points.size()), ... |
//
// basic_deadline_timer.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef ASIO_BASIC_... |
/**
* Copyright (c) 2016-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... |
// TestCache.cpp
//------------------------------------------------------------------------------
// Includes
//------------------------------------------------------------------------------
#include "FBuildTest.h"
// FBuild
#include "Tools/FBuild/FBuildCore/FBuild.h"
#include "Tools/FBuild/FBuildCore/Graph/ObjectNod... |
#include "systemmessagegenerator.h"
#include <cassert>
#include "containers/messagecontainer.h"
#include "containers/usermessage.h"
#include "primitives/dialog.h"
#include <libintl.h>
// enum class Status{NEW = 0, CREATE_REQUEST, WAIT_CONFIRM, ACCEPTED_WAIT,
// CANCEL_WAIT, ACTIVE, CLOSED, CANCELED, ABORTED};
std::s... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkAdiosReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software i... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.