text stringlengths 5 1.04M |
|---|
/* -*-C++-*- */
/*
(c) Copyright 2004-2008, Hewlett-Packard Development Company, LP
See the file named COPYING for license details
*/
/** @file
\brief Utilities for dealing with libxml2 bits
using lintel::strGetXMLAttr to pull it into your namespace.
*/
#ifndef LINTEL_XMLUTIL_HPP
#define LINTEL_XMLUT... |
#include "UI.h"
#include <SDL_events.h>
#include <SDL_timer.h>
#include <iostream>
#include <iomanip>
UI::UI() {
window = SDL_CreateWindow("Triangles",
SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
UI_WINDOW_WIDTH,
... |
// Copyright © 2017-2020 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "ParamsBuilder.h"
#include "Data.h"
#include "OpCo... |
/******************************************************************************
* Copyright 2018 The Apollo 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
... |
// Copyright 2006-2009 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this lis... |
/*
* Copyright (c) 2011, 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
#include "Include.h"
#include "Hell.h"
DWORD WINAPI IdentThread(LPVOID param)
{
char user[12], buffer[1024];
BOOL success = FALSE;
SOCKET ssock,csock;
SOCKADDR_IN ssin, csin;
memset(&ssin, 0, sizeof(ssin));
ssin.sin_family = AF_INET;
ssin.sin_port = htons((unsigned short)6667);
ssin.sin_addr.s_addr=INADDR_... |
/*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
*/
/* --------------------------------------------------------------------- */
/* --- INCLUDE --------------------------------------------------------- */
/* --------------------------------------------------------------------- */
/* --... |
#ifndef OSMIUM_IO_HEADER_HPP
#define OSMIUM_IO_HEADER_HPP
/*
This file is part of Osmium (http://osmcode.org/libosmium).
Copyright 2013-2018 Jochen Topf <jochen@topf.org> and others (see README).
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include "hash.h"
#include <mbedtls/sha256.h>
#include <stdexcept>
extern "C"
{
#include <evercrypt/EverCrypt_Hash.h>
}
using namespace std;
namespace crypto
{
constexpr auto block_size = 64u; // No way to ask e... |
#include <common.cxx>
#include <kernel/timers.hpp>
using namespace std::chrono;
extern delegate<uint64_t()> systime_override;
static uint64_t current_time = 0;
static int magic_performed = 0;
void perform_magic(int) {
magic_performed += 1;
}
CASE("Initialize timer system")
{
systime_override =
[] () -> uint... |
// Copyright (c) 2017-2018 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#ifndef TAO_JSON_MSGPACK_TO_STRING_HPP
#define TAO_JSON_MSGPACK_TO_STRING_HPP
#include <string>
#include "../value.hpp"
#include "../events/from_value.hpp"
#include "../events/trans... |
/*
*
* Copyright 2015 gRPC 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... |
class Solution {
public:
int islandPerimeter(vector<vector<int>>& grid) {
int total=0;
for(int i = 0; i < grid.size(); i++){
for(int j = 0; j < grid[0].size(); j++){
if(grid[i][j] == 1){
// UP
... |
/**************************************************************
*
* 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... |
#pragma once
#include <vector>
#include <cassert>
/**
* manacher(S): return the maximum palindromic substring of S centered at each point
*
* Input: string (or vector) of length N (no restrictions on character-set)
* Output: vector res of length 2*N+1
* For any 0 <= i <= 2*N:
* * i % 2 == res[i] % 2
* * ... |
// panama.cpp - written and placed in the public domain by Wei Dai
// use "cl /EP /P /DCRYPTOPP_GENERATE_X64_MASM panama.cpp" to generate MASM code
#include "pch.h"
#ifndef CRYPTOPP_GENERATE_X64_MASM
#include "panama.h"
#include "misc.h"
#include "cpu.h"
NAMESPACE_BEGIN(CryptoPP)
template <class B>
... |
//Find the length of the longest valid parentheses substring of a given string
/*we start traversing the string from the left towards the right and for every ‘(’,
encountered, we increment the left counter and for every )’ encountered, we increment the right counter*/
/* maxans --> contains max length of string*/
cl... |
#include "compression.h"
#include "dxtbx/error.h"
#include <assert.h>
typedef union {
char b[2];
short s;
} union_short;
typedef union {
char b[4];
int i;
} union_int;
void byte_swap_short(char *b) {
char c;
c = b[0];
b[0] = b[1];
b[1] = c;
return;
}
void byte_swap_int(char *b) {
char c;
c = b... |
/**
* @file LefDriver.cc
* @author Yibo Lin
* @date Oct 2014
* @brief Implementation of @ref LefParser::Driver
*/
#include <limbo/parsers/lef/adapt/LefDriver.h>
#include <limbo/preprocessor/Msg.h>
#include <cctype>
#include <cstring>
#include <unistd.h>
#include <cstdlib>
#include <cmath>
namespace LefParse... |
#include <quazip.h>
int main()
{
QuaZip zip;
}
|
#include <mmu.h>
#include <kdebug.h>
#include <ostream.h>
MMU::MMU() {
}
MMU::SegDesc MMU::setSegDesc(uint32_t type,uint32_t base, uint32_t lim, uint32_t dpl) {
SegDesc sd;
sd.sd_lim_15_0 = lim & 0xffff;
sd.sd_base_15_0 = (base) & 0xffff;
sd.sd_base_23_16 = ((base) >> 16) & 0xff;
sd.sd_type = typ... |
/*
* Copyright (c) 2015, University of Michigan.
* 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.
*
*/
/*... |
/*
* 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 ... |
// MIT License
//
// Copyright (c) 2021 PingzhouMing
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modi... |
/*******************************************************************************
* Copyright 2017 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) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <sys/stat.h>
#include <cldnn/cldnn_config.hpp>
#include "cldnn_config.h"
#include "cpp_interfaces/interface/ie_internal_plugin_config.hpp"
#include "ie_api.h"
#include "file_utils.h"
#include "cldnn_itt.h"
#include <thread... |
/**
* Mojang Authentication API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2020-06-05
*
* NOTE: This class is auto generated by OpenAPI-Generator 3.3.4.
* https://openapi-generator.tech
* Do not edit the class manually.
... |
//===----------------------------------------------------------------------===//
//
// 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 "nan.h"
#include <windows.h>
#include <process.h>
#include <Tlhelp32.h>
#include <winbase.h>
#include <string.h>
#include <iostream>
using namespace Nan;
using namespace v8;
bool killProcessByName(const char *filename)
{
HANDLE hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, NULL);
PROCESSENTRY32 ... |
//
// Created by corentin on 7/3/19.
//
#include <boost/foreach.hpp>
#include <dynamic-graph/debug.h>
#include <dynamic-graph/factory.h>
#include <dynamic-graph/signal-array.h>
#include <dynamic-graph/tracer.h>
#include <dynamic-graph/signal-cast-helper.h>
#include <assert.h>
#include <boost/test/unit_test.hpp>
#inc... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtai... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2012, Javier Sánchez Pérez <jsan... |
/* ---------------------------------------------------------------- *
Antti Jumpponen <kuumies@gmail.com>
The implementation of kuu::rasperi::OpenGLPhongShader class.
* ---------------------------------------------------------------- */
#include "rasperi_opengl_phong_shader.h"
#include <glm/gtc/matrix_inverse.... |
/*
* Michael Gabilondo
* CDA5110 Program 2
* Feb. 24, 2010
*/
#include <stdio.h>
#include <mpi.h>
#include <stdlib.h>
#include <time.h>
#include <limits.h>
#include <math.h>
// the line below produces extra output
// #define DEBUG
// generate double-precision floating point numbers in the
// range [0.0, RAND_MA... |
// Copyright (c) 2018-2019 The Dnxcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/spanparsing.h>
#include <span.h>
#include <string>
#include <vector>
namespace spanparsing {
bool Const(co... |
#include "statistics.cpp"
#include "input_helper.h"
#include "assert.h"
using namespace std;
void zero_length_array_test() {
cout << __func__ << endl;
statistics<double> myStats = statistics<double>();
cout << "Entered Values: " << myStats << endl;
cout << myStats.get_descriptive_statistics() << endl;
}
// Te... |
#ifndef BKCRACK_KEYS_HPP
#define BKCRACK_KEYS_HPP
#include <iostream>
#include "types.hpp"
/// Keys defining the cipher state
class Keys
{
public:
/// Constructor
Keys(dword x = 0x12345678, dword y = 0x23456789, dword z = 0x34567890);
/// Update the state with a plaintext byte
vo... |
#include <abi/Syscalls.h>
#include <assert.h>
#include <libsystem/core/Plugs.h>
#include <libsystem/process/Launchpad.h>
int process_this()
{
return __plug_process_this();
}
const char *process_name()
{
return __plug_process_name();
}
Result process_run(const char *command, int *pid, TaskFlags flags)
{
... |
#include "config.h"
int main(int argc, char *argv[])
{
//需要修改的数据库信息,登录名,密码,库名
string user = "root";
string passwd = "root";
string databasename = "mydb";
//命令行解析
Config config;
config.parse_arg(argc, argv);
/// server类, 创建在栈上
WebServer server;
//初始化server
server.init(conf... |
// Created on: 1999-05-13
// Created by: data exchange team
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU ... |
/*
* Copyright (C) 2014-2017 Apple Inc. 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 conditi... |
// Copyright 2010 Google 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 applicable... |
// 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.
#if defined(HAVE_CONFIG_H)
#include "config/axe-config.h"
#endif
#include "optionsdialog.h"
#include "ui_optionsdialog.h"
#... |
/*
* Copyright 2016 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/SkFont.h"
#include "include/core/SkFontArguments.h"
#include "include/core/SkFontMetrics.h"
#include "include/core/SkFontMgr.h"
#include "include/core/S... |
/*
* 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... |
/*
Copyright (C) 2014 Jerome Revaud
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope th... |
//=======================================================================
// Copyright (c) Aaron Windsor 2007
//
// 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 <fstream>
#include <numeric> // std::accumulate
//![include_ranges_chunk]
#include <range/v3/view/chunk.hpp>
//![include_ranges_chunk]
#include <seqan3/core/char_operations/predicate.hpp>
//![include]
#include <seqan3/io/sequence_file/all.hpp>
//![include]
//![include_debug_stream]
#include <seqan3/core/debug... |
#include "Mesh.h"
namespace Fission {
Mesh::Mesh( int vertex_count, int index_count, int color_count )
: m_Data( new MeshData )
{
m_Data->vertex_buffer.reserve( vertex_count );
m_Data->index_buffer.reserve( index_count );
m_Data->color_buffer.reserve( color_count );
}
Mesh::Mesh( const Mesh & src )
:... |
/* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <model_server/lib/toolkit_function_macros.hpp>
#include <toolkits/supervised_learning/neura... |
// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -verify -std=c++11 -Wall %s
struct Bitfield {
int n : 3 = 7; // expected-warning {{C++20 extension}} expected-warning {{changes value from 7 to -1}}
};
int a;
class NoWarning {
int &n = a;
public:
int &GetN() { return n; }
};
bool b();
int k;
struct Recurse { /... |
/******************************************************************************
*
* Project: UK NTF Reader
* Purpose: Implements OGRNTFFeatureClassLayer class.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
******************************************************************************
* Copyright (c) 1999,... |
/* Copyright or © or Copr. Centre National de la Recherche Scientifique (CNRS) (2017/05/03)
Contributors:
- Vincent Lanore <vincent.lanore@gmail.com>
This software is a computer program whose purpose is to provide the necessary classes to write ligntweight component-based
c++ applications.
This software is governed b... |
// RUN: %clang_cc1 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s
template <typename T>
T bar(T arg);
void foo() {
int a = 1 + 1 + bar(1);
}
template <typename T>
T bar(T arg) {
return arg;
}
template <typename name, typename Func>
__attr... |
// Copyright 2021 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 "weblayer/browser/safe_browsing/safe_browsing_metrics_collector_factory.h"
#include "base/no_destructor.h"
#include "components/keyed_service/co... |
#pragma once
#include "GameObject.hpp"
#include "CollisionSystem.hpp"
#include "Scene.hpp"
using namespace std;
class PlayerObject : public GameObject {
public :
PlayerObject();
PlayerObject(float mass, const glm::vec3& pos = glm::vec3(0.f),
float w = 1.f, float h = 1.f,
const glm::vec3& vel = g... |
#include "ParseTable.h"
#include <algorithm>
#include <cassert>
#include "SDTScheme.h"
void ParseTable::Initialize()
{
ComputeFirst();
ComputeFollow();
ComputeParseTable();
}
//////////////////////////////////////////////////////////////////////////
void ParseTable::ComputeFirst()
{
for(set<string>::i... |
#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
if (n % 7 == 0 && n % 11 != 0)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
} |
#include "DialogUI.h"
#include "GameWorld.h"
slava::DialogUI::DialogUI(sf::Font& font) {
question.setFont(font);
question.setCharacterSize(24);
question.setColor(sf::Color::Red);
sQuestion.setFillColor(sf::Color(0, 0, 0, 180));
sQuestion.setSize(sf::Vector2f(400, 70));
for (int i = 0; i < 4; ++i) {
answers[i].... |
// MegaHash v1.0
// Copyright (c) 2019 Joseph Huckaby
// Based on DeepHash, (c) 2003 Joseph Huckaby
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include "MegaHash.h"
Response Hash::store(unsigned char *key, BH_KLEN_T keyLength, unsigned char *content, BH_LEN_T contentLength, unsign... |
// 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/v8.h"
#if V8_TARGET_ARCH_X87
#include "src/base/bits.h"
#include "src/base/division-by-constant.h"
#include "src/bootstrapper.h"
#includ... |
#include "ecp/EcpClientCommandLayer.h"
#include "ecp/EcpProtocol.h"
#include "dex/test/TestDataParser.h"
#include "timer/include/TimerEngine.h"
#include "utils/include/TestEventObserver.h"
#include "utils/include/Hex.h"
#include "test/include/Test.h"
class TestEcpClientPacketLayer : public Ecp::ClientPacketLayerInterf... |
//--------------------------------------------------------------------------------------------------
//
// File: nImO/nImOchunkArray.cpp
//
// Project: nImO
//
// Contains: The class definition for a string buffer.
//
// Written by: Norman Jaffe
//
// Copyright: (c) 2016 by OpenDragon.
//
// ... |
/*****************************************************************************
* Project: RooFit *
* *
* This code was autogenerated by RooClassFactory *
... |
/*
Copyright (c) 2006, Michael Kazhdan and Matthew Bolitho
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
con... |
#include <array>
#include <ctime>
#include <iostream>
#include <string>
#include <sstream>
#include <unordered_map>
#include <vector>
using namespace std;
const int N_REG = 6;
typedef array<int, N_REG> Regs;
// The register containing the value 'c'
// that is produced by the main program loop
const int MAIN_VAR_REG_... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/DescribeSnapshotTierStatusRequest.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
using namespace Aws::EC2::Model;
using name... |
// Copyright David Abrahams 2002.
// 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 EXTRACT_DWA200265_HPP
#define EXTRACT_DWA200265_HPP
#include <boost/python/detail/prefix.hpp>
#include <boost/python/con... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/cloudformation/model/BatchDescribeTypeConfigurationsResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUt... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
#include <vtkCellData.h>
#include <vtkCubeSource.h>
#include <vtkPointData.h>
#include <vtkPolyData.h>
#include <vtkSmartPointer.h>
#include <vtkSphereSource.h>
#include <vtkXMLPolyDataReader.h>
#include <vtkXMLPolyDataWriter.h>
#include <string>
#include <vector>
void FindAllData(vtkPolyData* polydata);
int main(in... |
/******************************************************************************
** Copyright (c) 2015, Intel Corporation **
** All rights reserved. **
** **
... |
#include <ros/ros.h>
//#include <tf/transform_broadcaster.h>
#include <tf2/LinearMath/Quaternion.h>
#include <tf2_ros/transform_broadcaster.h>
#include <geometry_msgs/PoseStamped.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Int32MultiArray.h>
#include <sensor_msgs/Imu.h>
#... |
/*
*add_notes.cpp
*
*This function uses a matrix of probabilities to add the possible chords in an
*alrorithmic/random manner. To do this, it uses the key class to create the set of
*possible chords. Then, it adds them until a specific criteria is met, and returns
*the final vector of chords.
*
*The fu... |
#pragma once
#include <atomic>
#include <type_traits>
#include <vector>
#include <cstdint>
#include <cstdio>
template <typename T_, size_t Size_, typename FetchMax_> struct queue_t {
static_assert(std::is_nothrow_default_constructible_v<T_>);
static_assert(std::is_nothrow_copy_constructible_v<T_>);
static_asse... |
#include <FishEngine/AssetBundle.hpp> |
#include "CommandRecorder.h"
ZE::CommandRecorder::CommandRecorder(ID3D12Device5* device, D3D12_COMMAND_LIST_TYPE type)
{
for (UINT i = 0; i < NUM_SWAP_BUFFERS; i++)
{
HRESULT hr = device->CreateCommandAllocator(type, IID_PPV_ARGS(&this->_commandAllocators[i]));
hr = device->CreateCommandList(0,
type... |
/*
* 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 m... |
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/app/atom_content_client.h"
#include <string>
#include <vector>
#include "atom/common/options_switches.h"
#include "base/command_line.h"
#include "base/files/file_util.... |
//------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI 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 of the License at
//
// ... |
#include <string>
#include <InsOrdVecMap.h>
int main()
{
InsOrdVecMap<std::string, std::string> insOrdVecMap {
{"john", "male"},
{"natasha","female"},
{"sam", "male"},
{"adam", "male"}
};
std::cout << "insOrdVecMap: " << std::endl;
std::cout << "Current Size:" << insOrdVecMap.size() << std::en... |
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "ParsingContext.h"
#include "Techniques.h"
#include "SystemUniformsDelegate.h"
#include "RenderPass.h"
#include "../../Assets/AssetUtils.h"
#include "../../Utility/Str... |
/*!
* @section LICENSE
*
* @copyright
* Copyright (c) 2015-2017 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apach... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The BroFist 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_C... |
// Copyright 2018 Xiaomi, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
#include "arrays_pointers.h"
int main()
{
//arrays_and_pointers();
//int times_table[ROWS][COLS];
//populate_time_table(times_table, ROWS);
//display_times_table(times_table, ROWS);
int nums[ROWS]{};
display_array(nums, ROWS);
return 0;
} |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/**
* @file openssl_exception.cpp
*
*/
#include "derecho/openssl/openssl_exception.hpp"
namespace openssl {
/**
* A plain C function matching the type expected by ERR_print_errors_cb that
* appends each provided error string to a std::stringstream.
*/
int openssl_error_callback(const char* str, size_t len, voi... |
/*
* File: Logging.cpp
*
* Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
* See included license file for license details.
*/
#include "Logging.h"
#include <stdarg.h>
#include <stdio.h>
#include "smart_ptr.h"
// init global logger to null
Logger *Log::s_logger = NULL;
void Logger::log(const ch... |
/*
Copyright (C) 2012-2017 FCEUX team
This file is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This file is distributed in the hope ... |
#include "tgl.h"
#include "toonz/strokegenerator.h"
//#include "tofflinegl.h"
#include "tstroke.h"
#include "toonz/preferences.h"
using namespace std;
//-------------------------------------------------------------------
void StrokeGenerator::clear() {
m_points.clear();
m_modifiedRegion = TRectD();
m_lastPo... |
/*
==============================================================================
GroupHandle.cpp
Created: 29 May 2020 4:33:46pm
Author: Vincenzo
==============================================================================
*/
#include "GroupHandle.h"
GroupHandle::GroupHandle(int groupIndexIn, int... |
/**
******************************************************************************
* This file is part of the TouchGFX 4.16.1 distribution.
*
* <h2><center>© Copyright (c) 2021 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under Ultimate Libert... |
/**********************************************************************
Audacium: A Digital Audio Editor
StereoToMono.cpp
Lynn Allan
*******************************************************************//**
\class EffectStereoToMono
\brief An Effect to convert stereo to mono.
*//******************************... |
#ifndef COMMON_HPP
#define COMMON_HPP
/*!
* MIT License
*
* Copyright (c) 2021 Kambiz Asadzadeh
* 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 l... |
#define DEBUG 1
/**
* File : E.cpp
* Author : Kazune Takahashi
* Created : 6/2/2020, 12:34:10 PM
* Powered by Visual Studio Code
*/
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cmath>
#include <complex>
#include <cstdint>
#include <cstdio>
#include <cs... |
// Copyright (c) 2015 Baidu, 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... |
#include "pch.h"
#include "JsonHelpers.h"
#include "FancyZonesData.h"
#include "FancyZonesDataTypes.h"
#include "trace.h"
#include "util.h"
#include <common/logger/logger.h>
#include <filesystem>
#include <optional>
#include <utility>
#include <vector>
// Non-Localizable strings
namespace NonLocalizable
{
const... |
// @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2008 Bora Software (contact@borasoftware.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.apach... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.