text stringlengths 5 1.04M |
|---|
/*
Name:
Copyright:
Author:
Date: 14/01/16 12:33
Description: woj1289
*/
#include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main()
{
//freopen("in.txt","r",stdin);
//freopen("out.txt","w",stdout);
string str1,str2;
char map[]={'A','T','C','G'};
int... |
// Copyright (c) 2021-2022 The MetabaseNet developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "mode/basic_config.h"
#include "mode/config_macro.h"
namespace metabasenet
{
namespace po = boost::program_opti... |
#include "meta.h"
|
/*
-- MAGMA (version 2.1.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date August 2016
@generated from sparse-iter/control/magma_zmscale.cpp, normal z -> s, Tue Aug 30 09:38:49 2016
@author Hartwig Anzt
*/
#include "magmaspa... |
#include <Arduino.h>
#include <unity.h>
#define LED_BUILTIN (13) // LED is connected to IO13
// Modem serial port
#define SerialAT Serial1
// Modem pinning
#define MODEM_RST (5)
#define MODEM_PWKEY (4)
#define MODEM_POWER_ON (23)
#define MODEM_TX (27)
#define MODEM_RX (26)
// Configure TinyGSM library
#define TINY_... |
// Copyright (c) 2009-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 "key.h"
#include "arith_uint256.h"
#include "crypto/common.h"
#include "crypto/hmac_sha512.h"
#include "pu... |
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#define MAX_PRIME 2147483647
using namespace std;
int cnt;
long long sum;
int main()
{
int curCase = 1;
int n, i, least;
while (scanf("%d", &n), n)
{
sum = 0;
least = sqrt(n + 1);
printf("Case %d: ", curC... |
#define GLM_FORCE_MESSAGES
#include <glm/vec3.hpp>
#include <cstdio>
int test_compiler()
{
int Error(0);
if(GLM_COMPILER & GLM_COMPILER_VC)
{
switch(GLM_COMPILER)
{
case GLM_COMPILER_VC10:
std::printf("Visual C++ 10 - 2010\n");
break;
case GLM_COMPILER_VC11:
std::printf("Visual C++ 11 - 2012\n");... |
/**
* Copyright 2021 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... |
/*************************************************************************/
/* Xania (M)ulti(U)ser(D)ungeon server source code */
/* (C) 1995-2000 Xania Development Team */
/* See the header to file: merc.h for original code copyrights */
/* ... |
/*
* 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) 2016 Turi
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef GRAPHLAB_SGRAPH_SGRAPH_COMPUTE_VERTEX_BLOCK_HPP
#define GRAPHLAB_SGRAPH_SGRAPH_COMPUTE_VERTEX_BLOCK_HPP
#include <map>
#include ... |
#ifndef DUNE_AX1_ACME0_TOPERATOR_HH
#define DUNE_AX1_ACME0_TOPERATOR_HH
#include<dune/geometry/referenceelements.hh>
#include<dune/geometry/quadraturerules.hh>
#include<dune/pdelab/common/geometrywrapper.hh>
#include<dune/pdelab/localoperator/defaultimp.hh>
#include<dune/pdelab/localoperator/pattern.hh>
#include<dune/... |
#include "Composition.h"
Composition::Composition()
{
temp = parts.begin();
}
void Composition::writePart(std::vector<Part>::iterator temp) {
cout << "|";
for (auto itR : temp->right) {
cout << itR->getMidi() << " ";
}
cout << "|" << endl;
cout << "|";
for (auto itL : temp->left... |
/***
DEVSIM
Copyright 2013 Devsim 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 writing, soft... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/***************************************************************************
This is a library for the BNO055 orientation sensor
Designed specifically to work with the Adafruit BNO055 Breakout.
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/products
These sensors use I2C ... |
/*
* hango-arduino
* Copyright (c) 2020 Golagola
* MIT License
*/
#include "Arduino.h"
#include "Char2Int.h"
int char2int(int data){
int sensed_position = 0;
if (data >= 48 && data <= 58 ) {
sensed_position = int(data - 48);
}
return sensed_position;
}
|
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
MANGO Multimedia Development Platform
Copyright (C) 2012-2020 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <vector>
#include <mango/math/math.hpp>
using namespace mango;
void example1()
{
float32x4 a(1.0f, 2.0f, 3.0f, 4.0f);
float32x4 b = sin(a);
float32x4 c = cross(a, b) * 1.5f... |
/*****************************************************************************/
/* Copyright (c) 2016, Alessandro Pieropan */
/* All rights reserved. */
/* */
... |
/*
* Copyright 2016-present 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 a... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fldserver/base/sql/sql_features.h"
namespace sql
{
namespace features
{
// Enable WAL mode for all SQLite databases.
const base::Feature kEnabl... |
// 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/chromeos/file_system_provider/mount_path_util.h"
#include <memory>
#include <string>
#include "base/files/file.h"
#include "bas... |
/*!
@file
@author Shin'ichiro Nakaoka
*/
#include "SceneGraph.h"
#include "SceneNodeClassRegistry.h"
#include "CloneMap.h"
#include "Exception.h"
#include "UTF8.h"
#include <cnoid/stdx/filesystem>
#include <fmt/format.h>
#include <unordered_map>
#include <typeindex>
#include <mutex>
using namespace std;
using nam... |
#ifndef SOUNDDRIVER_HH
#define SOUNDDRIVER_HH
#include <cstdint>
namespace openmsx {
class SoundDriver
{
public:
virtual ~SoundDriver() = default;
/** Mute the sound system
*/
virtual void mute() = 0;
/** Unmute the sound system
*/
virtual void unmute() = 0;
/** Returns the actual sample frequency. This... |
#include<bits/stdc++.h>
#include"../include/input.h"
using namespace std;
vector<int> adj[100];
int n;
bool flag=0;
vector<bool> visited;
vector<int> tin, low;
int timer;
void dfs(vector<int>adj[], int n, int v, int p = -1) {
visited[v] = true;
tin[v] = low[v] = timer++;
int children=0;
for (in... |
/*
* BigInt Assignment Operators
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/bigint.h>
#include <botan/internal/mp_core.h>
#include <botan/internal/bit_ops.h>
#include <algorithm>
namespace Botan {
/*
* Addition Operator
*/
BigInt& BigInt::operator+=(const BigIn... |
// Tencent is pleased to support the open source community by making sluaunreal available.
// Copyright (C) 2018 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the BSD 3-Clause License (the "License");
// you may not use this file except in compliance with the License. You may obtain a cop... |
/*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 16:10:34 GMT-04:00
*/
#ifndef JS_PLEFTTOEBARBCONT_RIGHTSTANCE_HH
#define JS_PLEFTTOEBARBCONT_RIGHTSTANCE_HH
#ifdef MATLAB_MEX_FILE
// No need for external definitions
#else // MATLAB_MEX_FILE
#include "math2mat.hpp"
#include "mdefs.hpp"
namespace R... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "ngraph/op/util/unary_elementwise_arithmetic.hpp"
namespace ngraph
{
namespace op
{
namespace v0
{
/// \brief Elementwise hyperbolic tangent operation.
class NG... |
#include <test/jtx/impl/offer.cpp>
#include <test/jtx/impl/owners.cpp>
#include <test/jtx/impl/paths.cpp>
#include <test/jtx/impl/pay.cpp>
#include <test/jtx/impl/quality2.cpp>
#include <test/jtx/impl/rate.cpp>
#include <test/jtx/impl/regkey.cpp>
#include <test/jtx/impl/sendmax.cpp>
#include <test/jtx/impl/seq.cpp>
... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... |
//==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// Se... |
/*!
* Copyright (c) 2015 by Contributors
* \file sequence_mask.cc
* \brief
* \author Sebastian Bodenstein
*/
#include "./sequence_mask-inl.h"
namespace mshadow {
template <typename DType>
inline void SequenceMask(const Tensor<cpu, 3, DType> &dst,
const Tensor<cpu, 1, DType> label, DType v... |
#ifndef OTHELLO_HEURISTICPLAYER_HPP
#define OTHELLO_HEURISTICPLAYER_HPP
//Othello headers:
#include <othello/game/IPlayer.hpp>
#include <othello/game/Game.hpp>
#include <othello/ai/MoveEvaluator.hpp>
namespace othello
{
namespace ai
{
////////////////////////////////////////////////////////... |
bin = 0
p = 0
q = 0
r = 0
x = 0
bin=1
q=0
print("\t\t\tDisplay pascal Triangle",end='')
print("\n\n\nHow Many Row Do you want to input:",end='')
r = int(input())
print("\nPascal's Triangle:\n",end='')
while(q<r):
for p in range (40-3*q,0,-1):
print(" ",end='')
for x in range (0,q+1,1):
if(x==0 or q... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Dash Core developers
// Copyright (c) 2020 The roubzi 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)
#i... |
#include <betterchain/chain/rate_limiting.hpp>
namespace betterchain { namespace chain {
} } /// betterchain::chain
|
/*
* Copyright 2015 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... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "init.h"
#include "util.h"
#include "sync.h"
#include "ui_interface.h"
#includ... |
/* -----------------------------------------------------------------------------
* Rule_key_lifetime.hpp
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.5
* Produced : Mon Jan 08 13:30:55 CET 2018
*
* -------------------------------... |
/*************************************************************************/
/* os_unix.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "StdInc.h"
#include <ResourceCacheDeviceV2.h>
#include <mmsystem.h>
#include <mutex>
#include <optional>
#include <variant>
#include <tbb/concurrent_unordered_map.h>
#include <HttpClient.h>
#include <ResourceCache.h>
#include <ResourceManager.h>
#include <ICoreGameInit.h>
#include <StreamingEvents.h>
#... |
// $Id: Log_Msg_Test.cpp 90802 2010-06-23 14:19:07Z vzykov $
// ============================================================================
//
// = LIBRARY
// tests
//
// = FILENAME
// Log_Msg_Test.cpp
//
// = DESCRIPTION
// This program tests the <ACE_Log_Msg> class in various ways and
// a... |
// stdafx.cpp : source file that includes just the standard includes
// Lesson 4.pch will be the pre-compiled header
// stdafx.obj will contain the pre-compiled type information
#include "stdafx.h"
|
/**
* The MIT License (MIT)
*
* Copyright (c) 2013-2020 Winlin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use,... |
#include <iostream>
#include "sc2api/sc2_api.h"
#include "bot.h"
sc2::PlayerSetup CreateBot(Agent *bot) {
// return( sc2::CreateParticipant(sc2::Race::Zerg, bot) );
return( sc2::CreateParticipant(sc2::Race::Terran, bot) );
}
// code for local testing
#ifndef LADDEREXE
int main(int argc, char* argv[]) {
sc2::C... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*++
Module Name:
virtual.cpp
Abstract:
Implementation of virtual memory management functions.
--*/... |
/** Model stored as HDF5 file.
*/
#if !defined(geomodelgrids_serial_modelinfo_hh)
#define geomodelgrids_serial_modelinfo_hh
// Include directives -----------------------------------------------------------------------------
#include "serialfwd.hh" // forward declarations
#include <vector> // HASA std::std::vector
#... |
// Copyright (c) 2018-present The Alive2 Authors.
// Distributed under the MIT license that can be found in the LICENSE file.
#include "llvm_util/utils.h"
#include "ir/constant.h"
#include "ir/function.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/I... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms ... |
// <SNIPPET1>
using namespace System;
using namespace System::Security::Cryptography;
using namespace System::Text;
using namespace System::IO;
void EncryptTextToFile( String^ Data, String^ FileName, array<Byte>^Key, array<Byte>^IV )
{
try
{
// Create or open the specified file.
Fi... |
#include "Messages/internal/ROSTopicSubscribeMessage.h"
#include "DataHelpers.h"
void UROSTopicSubscribeMessage::ToData(ROSData& OutMessage) const
{
DataHelpers::Append<FString>(OutMessage, "op", "subscribe");
DataHelpers::Append<FString>(OutMessage, "id", ID);
DataHelpers::Append<FString>(OutMessage, "topic... |
/*
* Copyright 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free S... |
// Copyright 2014 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/compiler/backend/instruction-selector.h"
#include <limits>
#include "src/base/iterator.h"
#include "src/base/platform/wrappers.h"
#inclu... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/merkle.h"
#include "merkleblock.h"
#include "serialize.h"
#include "streams.h"
#include "uint256.h"
#incl... |
//===- DbiStreamBuilder.cpp - PDB Dbi Stream Creation -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2013-2014 The Dogecoin developers
// Copyright (c) 2014 The Inutoshi developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "checkpoints.h"... |
/**
@author Shin'ichiro Nakaoka
*/
#include "VRMLToSGConverter.h"
#include "SceneDrawables.h"
#include "SceneLights.h"
#include "SceneEffects.h"
#include "Triangulator.h"
#include "PolygonMeshTriangulator.h"
#include "MeshFilter.h"
#include "MeshGenerator.h"
#include "ImageIO.h"
#include "SceneLoader.h"
#include "E... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2017 The Iox developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYIN... |
#include <bits/stdc++.h>
using namespace std;
#define LSOne(S) ((S) & -(S)) // the key operation
typedef long long ll; // for extra flexibility
typedef vector<ll> vll;
typedef vector<int> vi;
class FenwickTree { // index 0 is not used
private... |
/*
* Copyright (C) 2015 David Devecsery
*/
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <map>
#include "include/Debug.h"
#include "include/ControlFlowGraph.h"
#include "include/SEG.h"
extern void T4(SEG &G, const SEG &Xp);
extern void T2(SEG &G, SEG &Xp);
extern void T7(SEG &G);
extern void... |
#include <iostream>
#include <string>
#define WITH_PLOTTING
#include "trignoclient.hpp"
using namespace trigno;
using namespace std::literals::chrono_literals;
void interruptHandler(int signum) {
printf("\nUser-requested shutdown\n");
exit(0);
}
int main(int argc, char const *argv[]) {
// register inte... |
#include <stdio.h>
int test(int a) {
return a;
}
int main() {
printf("%d\n", test(5));
return 0;
}
|
/*
* ****** COPS v7 Emulator - Open Source ******
* Copyright (C) 2012 - 2014 Jean-Philippe Boivin
*
* Please read the WARNING, DISCLAIMER and PATENTS
* sections in the LICENSE file.
*/
#include "atomic.h"
#include "script.h"
#include "client.h"
#include "player.h"
#include "allmsg.h"
#include "lua.hpp"
/* stat... |
#include <iostream>
#include <transport/TSocket.h>
#include <transport/TBufferTransports.h>
#include <protocol/TBinaryProtocol.h>
#include <concurrency/PosixThreadFactory.h>
#include <concurrency/Thread.h>
#include <concurrency/ThreadManager.h>
#include <concurrency/Mutex.h>
#include "RegistryProxy.h" // As an exam... |
#include "../includes/zs-math.h"
#include "../includes/zs-camera.h"
ZSPROJECTIONTYPE projection_type;
float FOV;
float ZNearPlane;
float ZFarPlane;
float CAMERA_PROJ_WIDTH;
float CAMERA_PROJ_HEIGHT;
ZSVECTOR3 camera_up = ZSVECTOR3(0.0f, 1.0f, 0.0f);
ZSVECTOR3 camera_pos = ZSVECTOR3(0.0f, 0.0f, -3.0f);
ZSVECTOR3 ... |
// 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"
#include "extern/beatsaber-hook/shared/u... |
/// \file stream.cpp
///
/// Unit tests for stream file external interface
#include <vg/io/stream.hpp>
#include <vg/io/protobuf_iterator.hpp>
#include <vg/io/protobuf_emitter.hpp>
#include <vg/vg.pb.h>
#include "catch.hpp"
#include <sstream>
#include <iostream>
#include <unordered_map>
namespace vg {
namespace u... |
/*************************************************************************/
/* aabb.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its 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 "logdevice/common/settings/Settings.h"
#include <cctype>
#include <limits>
#i... |
// 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... |
#include <iostream>
#include <cstring>
using namespace std;
int p[10001];
inline int getLen(int x) {
int len = 0;
while (p[x]) {
len++;
x = p[x];
}
return len;
}
int main() {
int t;
cin >> t;
while (t--) {
int n;
cin >> n;
memset(p, 0, sizeof(p));
... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... |
/**
* @brief RTF files into HTML сonverter
* @package rtf
* @file table.cpp
* @author dmryutov (dmryutov@gmail.com)
* @copyright lvu (https://github.com/lvu/rtf2html)
* @date 31.07.2016 -- 18.10.2017
*/
#include <algorithm>
#include <set>
#include "../../tools.hpp"
#include "table.hpp"
nam... |
#include "../config.h"
#ifdef HAVE_LIBUNRAR
#include "rar.h"
using namespace AhoViewer;
#ifndef _UNIX
#define _UNIX
#endif // _UNIX
#if defined(HAVE_LIBUNRAR_DLL_HPP)
#include <libunrar/dll.hpp>
#elif defined(HAVE_UNRAR_DLL_HPP)
#include <unrar/dll.hpp>
#endif
const char Rar::Magic[Rar::MagicSize] = { 'R', 'a', 'r'... |
/**
* \file
* \author Karsten Rink
* \date 2012-01-04
* \brief Implementation of the DirectConditionGenerator class.
*
* \copyright
* Copyright (c) 2012-2018, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/exo/keyboard.h"
#include "ash/accessibility/accessibility_controller_impl.h"
#include "ash/constants/app_types.h"
#include "ash/cons... |
//===-- GCNHazardRecognizers.cpp - GCN Hazard Recognizer Impls ------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "WiFiUdp.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
WiFiUDP::WiFiUDP() {
this->readBuffer = NULL;
this->writeBuffer = NULL;
this->readBufferLength = 0;
this->writeBufferLength = 0;
};
WiFiUDP::WiFiUDP(unsigned char *buffer, int length) {
this->readBuffer = NULL;
this->writeBuff... |
/*
* 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 "tests/RecordTestUtils.h"
#include "tests/Test.h"
#include "include/core/SkSurface.h"
#include "include/effects/SkImageFilters.h"
#include "src/core/SkImagePriv.h"
#... |
/* ------------------------------------------------------------------
Copyright (c) 2019 Marc Toussaint
email: marc.toussaint@informatik.uni-stuttgart.de
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
----------------------------------------------------... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmin/M3x3bMDb.cpp
// \brief Source file for the M3x3bMDb dense matrix/dense matrix minimum math test
//
// Copyright (C) 2012-2019 Klaus Iglberger - All Rights Reserved
//
// This fil... |
/****************************************************************************
Copyright (C) 2013 Henry van Merode. All rights reserved.
Copyright (c) 2015-2016 Chukong Technologies Inc.
Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge,... |
#pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Types/SimpleTypes.hpp>
#include <RED4ext/Types/generated/game/AlwaysSpawnedState.hpp>
#include <RED4ext/Types/generated/... |
/*******************************************************************************
* Copyright 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.apache.o... |
/*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
/**
* Copyright (c) 2006-2012 LOVE Development Team
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includin... |
//===- CastValueChecker - Model implementation of custom RTTIs --*- C++ -*-===//
//
// 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
//
//===---------------------------... |
// Problem Statement
// Implement a MyCalendar class to store your events.
// A new event can be added if adding the event will not cause a double booking.
//
// Your class will have the method, book(int start, int end). Formally,
// this represents a booking on the half open interval [start, end),
// the range of real... |
#include <iostream>
const int maxY = 128;
const int maxX = 128;
double fRand(int MIN, int MAX) {
return (double) (((rand() % (10 * MAX)) + (5 * MIN))) * 0.1;
}
int ArrCreator(double array[][maxX], int lines, int columns, int minIJ, int maxIJ) {
int res = 0;
int i;
int j;
if (lines <= 0 || column... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maille... |
#include "test.h"
using namespace std;
using namespace fun;
PARSE(Print, 0, R"(
print 42
print 3.14
print "foo"
print nil
print false
print true
)")
PARSE_ERR(Print, 1, R"(
print
)", ParserError)
//Parse, Print_2) {
// {
// ParseResult r;
// EXPECT_NO_THROW(r = parseAst(R"(
//print 42
//)"););
//
... |
///////////////////////////////////////////////////////////////////////////////
// bitfield.hpp: defines the bitfield_base type
//
// Copyright 2005 Frank Laub
// 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... |
/**
* \file dnn/src/arm_common/conv_bias/int8x8x16/algos.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distri... |
// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2020
// MIT License
#pragma once
#include <ArduinoJson/src/ArduinoJson/Strings/ConstRamStringAdapter.hpp>
#include <ArduinoJson/src/ArduinoJson/Strings/RamStringAdapter.hpp>
#include <ArduinoJson/src/ArduinoJson/Strings/SizedRamStringAdapter.hpp>
#if... |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkWin32OutputWindow.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.