text
stringlengths
7
961k
// Copyright (c) 2018 Hartmut Kaiser // // 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) // Fixing #278: Python to PhySL Translation generates empty block #278 #include <phylanx/phylanx.hpp> #include <hpx/hpx_main...
/* Copyright 2019, Gurobi Optimization, LLC */ /* Assign workers to shifts; each worker may or may not be available on a particular day. We use multi-objective optimization to solve the model. The highest-priority objective minimizes the sum of the slacks (i.e., the total number of uncovered shifts). The seco...
// Copyright (C) 2012-2019 The VPaint Developers. // See the COPYRIGHT file at the top-level directory of this distribution // and at https://github.com/dalboris/vpaint/blob/master/COPYRIGHT // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the ...
#pragma once #include <bits/stdc++.h> using namespace std; // A splay tree with key operations (get_key()), order statistics (get_size()), lazy // propagation/aggregation, prev/next/parent pointers, but no persistency. // Most functions take a splay tree root parameter by reference as first argument, then // the rema...
/* * Copyright (C) 2020 Open Source Robotics 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 appl...
#include "inmdb.h" #include "inmdb_table.h" #include "test.h" #include <unistd.h> CInmemoryDB myInmemDB; CInmemoryTable<gateway>gw; int main(int argc,char *argv[]) { if(!myInmemDB.connect(IPC_PATH,IPC_ID)){ printf("Connect error. Create DB first.\n"); return 1; } printf("Connect DB success...
/* * Legal Notice * * This document and associated source code (the "Work") is a part of a * benchmark specification maintained by the TPC. * * The TPC reserves all right, title, and interest to the Work as provided * under U.S. and international laws, including without limitation all patent * and trademark rig...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsentry.h" #inc...
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fxge/cfx_path.h" #include <algorithm> #include <iterator> #in...
/* Copyright (c) 2005-2017, University of Oxford. All rights reserved. University of Oxford means the Chancellor, Masters and Scholars of the University of Oxford, having an administrative office at Wellington Square, Oxford OX1 2JD, UK. This file is part of Chaste. Redistribution and use in source and binary forms...
// Copyright (c) 2014-2018 The Array Developers // Copyright (c) 2011-2013 The PPCoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // Stake cache by Qtum // Copyright (c) 2016-2018 The Qtum developers #include "po...
#ifndef __AXIS_HPP #define __AXIS_HPP #ifndef __ODRIVE_MAIN_H #error "This file should not be included directly. Include odrive_main.h instead." #endif class Axis { public: enum Error_t { ERROR_NONE = 0x00, ERROR_INVALID_STATE = 0x01, //<! an invalid state was requested ERROR_DC_BUS_UNDER_...
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021 Vladimír Vondruš <mosra@centrum.cz> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
//%Header { /***************************************************************************** * * File: src/GL/GLTexture.cpp * * Copyright: Andy Southgate 2002-2007, 2020 * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Soft...
#include <bits/stdc++.h> #define lli long long int using namespace std; int getSize(lli number) { int s = 0; while (number) number >>= 1, s ++; return(s); } const int maxX = 4e6; lli x, numberSize; bool visited[maxX + 1][2]; set<lli> visitedBig[2]; vector<int> n; int t; bool solve(int i, lli number) { if (i ...
#ifndef __PARAMS__InvalidateGenerator__ #define __PARAMS__InvalidateGenerator__ class InvalidateGenerator; #include <cstddef> #include "base/types.hh" #include "params/DirectedGenerator.hh" struct InvalidateGeneratorParams : public DirectedGeneratorParams { InvalidateGenerator * create(); int addr_incre...
#include <iostream> #include <vector> using namespace std; struct ListNode { int val; ListNode* next; ListNode(int x) : val(x), next(nullptr) {} }; struct List { ListNode* head; List(const vector<int>& values) : head(nullptr) { for (auto it = values.rbegin(); it != values.rend(); ++it) { auto node = new Li...
#include "stdafx.h" bool Cheat::Controls::optionpress = false; bool Cheat::Controls::leftpress = false; bool Cheat::Controls::rightpress = false; bool Cheat::Controls::uppress = false; bool Cheat::Controls::downpress = false; int Cheat::Controls::openKey = VK_F5; int Cheat::Controls::previousOption = 0; int Cheat::Co...
#include <StdInc.h> #include <LocalDevice.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <dirent.h> #include <fcntl.h> namespace vfs { Device::THandle LocalDevice::Open(const std::string& fileName, bool readOnly) { int fd = open(fileName.c_str(), (readOnly) ? O_RDONLY : O_RDWR); if (f...
#include "../basic-abstract-game.h" #include "../assetgen.h" #include <set> #include <queue> const int COMPLETION_BONUS = 10.0f; const int POSITIVE_REWARD = 1.0f; const int PLAYER_BULLET = 1; const int BOSS = 2; const int SHIELDS = 3; const int ENEMY_BULLET = 4; const int LASER_TRAIL = 5; const int REFLECTED_BULLET =...
/** * @file getChildAttr.cc * @author Konrad Zemek * @copyright (C) 2016 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in * 'LICENSE.txt' */ #include "getChildAttr.h" #include "messages.pb.h" #include <cassert> #include <sstream> namespace one { namespace messages { names...
// 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/base/bits.h" #include "src/base/platform/wrappers.h" #include "src/codegen/assembler-inl.h" #include "src/codegen/machine-type.h" #include...
/* This file is part of Krest, and is distributed under the OSI-approved BSD * 3-Clause License. See top-level LICENSE file or * https://github.com/Kitware/krest/blob/master/LICENSE for details. */ #include <krest/core/VideoMetaData.hpp> namespace kv = kwiver::vital; namespace krest { namespace core { // =======...
/* * Professor.cpp * * Created on: 22/05/2017 * Author: cande */ #include "Professor.h" namespace std { //Construtor da classe, com inicilizaçõa de categoria por defeito Professor::Professor() { this->cat = Catedratico; } //Sobrecarga de construtor para introdução automatica de Professores Professor::Pr...
#ifdef PEGASUS_OS_HPUX #ifndef __UNIX_REMOTEPORT_PRIVATE_H #define __UNIX_REMOTEPORT_PRIVATE_H #endif #endif
#include "Projectile.h" /** Constructor - sets radius, initial position, direction of motion, and the target that the projectile will damage */ Projectile::Projectile(const float& radius, const sf::Vector2f& position, const float& direction, const Target& target) : _circleShape(radius),_xVel(direction / abs(directi...
// stdafx.cpp : source file that includes just the standard includes // MyMoney.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h"
//===- AttributeTest.cpp - Attribute unit tests ---------------------------===// // // 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 // //===---------------------------...
// AUTO GENERATED by vnxcppcodegen #include <vnx/package.hxx> #include <vnx/ModuleInterfaceClient.hxx> #include <vnx/ModuleInfo.hxx> #include <vnx/ModuleInterface_vnx_get_config.hxx> #include <vnx/ModuleInterface_vnx_get_config_return.hxx> #include <vnx/ModuleInterface_vnx_get_config_object.hxx> #include <vnx/ModuleIn...
// *************************************************************** // Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved. // This file is subject to the terms and conditions defined in // file 'LICENSE.txt', which is part of this source code package. // ***************************...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include "DataIterator.H" #include "IntVect.H" #include "SpreadingCopier.H" #...
/** * Autogenerated by Thrift * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #include <src/gen-py3/service/clients_wrapper.h> namespace cpp2 { MyServiceClientWrapper::MyServiceClientWrapper( std::shared_ptr<::cpp2::MyServiceAsyncClient> async_client, std::shared_p...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ camWidth = 320; // try to grab at this size. camHeight = 240; //sub selection part subSelWidth = 100; subSelHeight = 100; fbo.allocate(subSelWidth, subSelHeight); fbo.begin(); ofCl...
#ifndef CPPTOOL_EXPORT_API_HPP #define CPPTOOL_EXPORT_API_HPP #include <clang/AST/AST.h> namespace ct { class CTExport { public: virtual ~CTExport() = 0; //Names use PascalCase to avoid using keywords //HANDLES: #include virtual void Include(clang::FileEntry const *origin, cl...
// (C) Copyright Beman Dawes 2009 // 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) // See http://www.boost.org/libs/config for more information. // MACRO: BOOST_NO_...
// Copyright Carl Philipp Reh 2009 - 2018. // 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 FCPPT_IO_BASIC_SCOPED_RDBUF_FWD_HPP_INCLUDED #define FCPPT_IO_BASIC_SCOPED_RDBUF_FWD_HPP_I...
/* Copyright (c) 2010, The Cinder Project All rights reserved. This code is designed for use with the Cinder C++ library, http://libcinder.org Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of ...
/************************************************************************* Crytek Source File. Copyright (C), Crytek Studios, 2012 ------------------------------------------------------------------------- $Id$ $DateTime$ Description: Implements Multiple Actor Coop Anims. **********************************************...
/* * 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 2018 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 "fake-transport-base.h" #include <lib/async/cpp/task.h> #include <lib/fidl/llcpp/coding.h> #include <lib/zx/channel.h> #include <zircon/status.h>...
/* * 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 ...
#include "../core_include/api.h" #include "../core_include/rect.h" #include "../core_include/cmd_target.h" #include "../core_include/wnd.h" #include "../core_include/wave_ctrl.h" #include "../source/ui_ctrl_ex/wave_ctrl_ex.h" #include "../include/define.h" #include "../include/ctrl_id.h" #include "mini_wave_xml.h" #de...
#include <iostream> #include <string> #include <vector> #include <sstream> #include <algorithm> #include <map> #include <hash_map> #include <hash_set> #include <queue> using namespace std; class MyStack { public: explicit MyStack() = default; void push(int x) { queue.push(x); for (int i = 0; i < queue.si...
// Copyright Robert Heckendorn #include "bitHelpers.h" /////////////////////////////////////////////////// // // This file as a 32 and a 64 bit set of basic bit functions // // /////////////////////////////////////////////////// // // basic fast 32 bit helper functions // int bitCount(Bit32 w) { w = (0x55555555U...
// // Created by Gegel85 on 02/02/2022. // #include "Projectile.hpp" namespace SpiralOfFate { Projectile::Projectile(bool owner, unsigned int id, unsigned maxHit) : maxHit(maxHit), owner(owner), id(id) { } Projectile::Projectile(const std::vector<std::vector<FrameData>> &frameData, unsigned team, bool dire...
/* * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ShutdownDialog.h" #include "TaskbarWindow.h" #include <AK/Debug.h> #include <AK/LexicalPath.h> #include <AK/QuickSort.h> #include <LibCore/ConfigFile.h> #include <LibCore/DirIterator.h> #includ...
//BfElement.cpp // Copyright Querysoft Limited 2013 // // Permission is hereby granted, free of charge, to any person or organization // obtaining a copy of the software and accompanying documentation covered by // this license (the "Software") to use, reproduce, display, distribute, // execute, and transmit the Softw...
// // Created by Krisu on 2020-02-05. // #include "Scene.hpp" #include "GlobalTransform.hpp" #include "LightInformation.hpp" #include "Engine.hpp" #include "GameObject.hpp" #include "Skybox.hpp" #include "Light.hpp" #include "Material.hpp" #include "Renderer.hpp" #include "Mesh.hpp" #include "DirectionalShadow.hpp" #...
#include <cstdlib> using std::exit; using std::atoi; #include <cmath> using std::sqrt; #include <iostream> using std::cout; using std::cerr; using std::endl; #include <iomanip> using std::setw; double atan_series(double x, unsigned int N) { const double x2 = x*x; double val = 0.0; for (int n = N, m = 2*N+1...
// // $Id$ // // // Original author: Darren Kessner <darren@proteowizard.org> // // Copyright 2008 Spielberg Family Center for Applied Proteomics // Cedars-Sinai Medical Center, Los Angeles, California 90048 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in...
#include <iostream> #include <fstream> #include <random> #include <sstream> #include <chrono> #include <google/protobuf/message.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <stdio.h> #include "perftest_data.pb.h" using namespace google::protobuf; us...
/* ============================================================================== This file is part of the JUCE library. Copyright (c) 2020 - Raw Material Software Limited JUCE is an open source library subject to commercial or open-source licensing. By using JUCE, you agree to the terms of both the...
#include "transactiontablemodel.h" #include "guiutil.h" #include "transactionrecord.h" #include "guiconstants.h" #include "transactiondesc.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include "bitcoinunits.h" #include "wallet.h" #include "ui_interface.h" #include <QLocale> #in...
/// \file // Range v3 library // // Copyright Eric Niebler 2013-present // // Use, modification and distribution is 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) // // Project home: https://github.com/ericniebler...
//===- FunctionUtils.cpp - Implementation of function utilities -----------===// // // Enzyme Project // // Part of the Enzyme 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...
// Copyright Louis Dionne 2013-2017 // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) #include <boost/hana/at.hpp> #include <boost/hana/drop_front.hpp> #include <boost/hana/equal.hpp> #include <boost/hana/ext/std/array.hpp> ...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE121_Stack_Based_Buffer_Overflow__CWE806_wchar_t_alloca_ncpy_33.cpp Label Definition File: CWE121_Stack_Based_Buffer_Overflow__CWE806.label.xml Template File: sources-sink-33.tmpl.cpp */ /* * @description * CWE: 121 Stack Based Buffer Overflow * BadSource: Initialize ...
#include "iconventional.h" /* https://www.npmjs.com/package/conventional-changelog-writer */ using namespace StandardRelease; IConventionalCommit::IConventionalCommit() : m_valid(false) , m_error() , m_commits() , m_semver() { } IConventionalCommit::~IConventionalCommit() {} void IConventionalComm...
#include "test/integration/integration_test.h" #include <string> #include "envoy/config/bootstrap/v3/bootstrap.pb.h" #include "envoy/config/route/v3/route_components.pb.h" #include "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.pb.h" #include "common/http/header_map_impl.h" #inc...
// 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 "ash/components/phonehub/notification_interaction_handler_impl.h" #include <memory> #include "ash/components/phonehub/notification.h" #include ...
// Copyright (c) 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 "reverselock.h" #include "test/test_suncoin.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(reverselock...
#include<cstdio> #include<algorithm> #include<cstring> #include<iostream> #include<vector> #include<queue> #include<cmath> #include<map> #include<set> #define ll long long #define F(i,a,b) for(int i=(a);i<=(b);i++) #define mst(a,b) memset((a),(b),sizeof(a)) #define PII pair<int,int> #define rep(i,x,y) for(auto i=(x);i<...
// 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 "base/callback.h" #include <memory> #include "base/bind.h" #include "base/callback_helpers.h" #include "base/callback_internal.h" #include ...
/////////////////////////////////////////////////////////////////////////////// // Copyright 2011 John Maddock. 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 BOOST_MATH_BIG_NUM_DEF_OPS #define BOOST_MA...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkCanvas.h" #include "include/core/SkPaint.h" #include "include/core/SkPath.h" #include "include/core/SkRect.h" #include "include/cor...
/* +----------------------------------------------------------------------+ | HipHop for PHP | +----------------------------------------------------------------------+ | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) | +---------...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_src_wchar_t_cat_83a.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_src.label.xml Template File: sources-sink-83a.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: Initialize data as...
#include "ACMM.h" #include <cstdarg> void StringAppendV(std::string* dst, const char* format, va_list ap) { // First try with a small fixed size buffer. static const int kFixedBufferSize = 1024; char fixed_buffer[kFixedBufferSize]; // It is possible for methods that use a va_list to invalidate // the data ...
// Copyright (c) 2001-2010 Hartmut Kaiser // // 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) #if !defined(BOOST_SPIRIT_LEXER_MARCH_22_2007_0929PM) #define BOOST_SPIRIT_LEXER_MARCH_22_2007_0929PM #if defined(_...
#include <iostream> #include "baldr/pronunciation.h" #include "baldr/streetname.h" #include "baldr/streetname_us.h" namespace valhalla { namespace baldr { const std::vector<std::string> StreetNameUs::pre_dirs_{"North ", "East ", "South ", "West ", ...
// Boost version.hpp configuration header file ------------------------------// // (C) Copyright John maddock 1999. 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) // See http://www.boost.org/libs/config for...
#include "Runtime/Weapon/CEnergyProjectile.hpp" #include "Runtime/CSimplePool.hpp" #include "Runtime/CStateManager.hpp" #include "Runtime/GameGlobalObjects.hpp" #include "Runtime/Camera/CGameCamera.hpp" #include "Runtime/Particle/CDecalManager.hpp" #include "Runtime/World/CExplosion.hpp" #include "Runtime/World/CGameL...
/* dparallel_recursion: distributed parallel_recursion skeleton Copyright (C) 2015-2016 Carlos H. Gonzalez, Basilio B. Fraguela. Universidade da Coruna 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 Lic...
/** * @file base_body.cpp * @brief This is the base classes of SPH bodies. The real body is for * that with cell linked list and the fivtitious one doesnot. * Before the defination of the SPH bodies, the shapes with complex * geometries, i.e. those are produced by adavnced binary operation, * ...
#include<iostream> using namespace std; int count = 0; bool isSafe(int board[][11], int i, int j, int n) { for (int row = 0; row < i; row++) { if (board[row][j] == 1) return false; } int k = i; int y = j; while (k >= 0 && y < n) { if (board[k][y] == 1) return false; k--; y++; }...
// Project loggerpp // // MIT License // // Copyright (C) 2018 Dmitry Shatilov // // 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 righ...
// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #pragma once #include <mbgl/style/types.hpp> #include <mbgl/style/layer_properties.hpp> #include <mbgl/style/layers/fill_layer.hpp> #include <mbgl/style/layout_property.hpp> #include <mbgl/style/paint_property.hpp> #include <m...
#include "gtest/gtest.h" #include "ManagementClient.h" #include "common.h" TEST(TelemetryMetadataTest, get) { ManagementClient* managementClient = CreateManagementClient(); TelemetryDataSinksMetadataClient* telemetryDataSinksMetadataClient = managementClient->TelemetryDataSinksMetadata(); TelemetryDataSinksMetada...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. #include "Project_HorrorGameMode.h" #include "Project_HorrorCharacter.h" #include "UObject/ConstructorHelpers.h" AProject_HorrorGameMode::AProject_HorrorGameMode() { // set default pawn class to our Blueprinted character static ConstructorHelpers::FClassF...
#ifndef SPEAKERMAN_JACK_M_JACK_CLIENT_HPP #define SPEAKERMAN_JACK_M_JACK_CLIENT_HPP /* * speakerman/jack/JackClient.hpp * * Part of 'Speaker management system' * * Copyright (C) 2013-2014 Michel Fleur. * https://github.com/emmef/simpledsp * * Licensed under the Apache License, Version 2.0 (the "License"); * yo...
/*******************************************************************\ Module: C Language Conversion Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <cassert> #include <util/arith_tools.h> #include <util/std_expr.h> #include "../c_types....
#include <string> #include <map> #include <vector> #include <memory> /************************************ * Namespace for lattg ************************************/ namespace lattg { /**************************************** Main simulation class ****************************************/ typedef std::map<s...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
#include <gtest/gtest.h> #include <blitz/array.h> #include <string> #include <vector> #include "alphabet.h" class AlphabetTest : public testing::Test { protected: virtual void SetUp() { canonical_sym = "ABC"; gap_sym = "-"; degenerate_sym = "PR"; unknown_sym = "X"; none_...
// 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...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__wchar_t_console_w32_execv_81a.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-81a.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: console Read input from the console...
#ifndef TSL_FACE_HPP #define TSL_FACE_HPP #include "handles.hpp" namespace tsl { // Forward declarations class half_edge_handle; /** * @brief Represents a face in the tmesh data structure. */ struct face { explicit face(half_edge_handle edge) : edge(edge) {} /// One of the edges bounding this fac...
/*****************************************************************/ /* NAME: Michael Benjamin */ /* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */ /* FILE: main.cpp */ /* DATE: Nov 22nd 2011 ...
#include "custom_addmultipledron.h" #include <QJsonObject> /* * MarkerType: MARKER_CROSS = 0, //!< A crosshair marker shape MARKER_TILTED_CROSS = 1, //!< A 45 degree tilted crosshair marker shape MARKER_STAR = 2, //!< A star marker shape, combination of cross and tilted cross MARKER_DIAMOND...
/* * 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...
// // pl0.cc - PL/0 language (https://en.wikipedia.org/wiki/PL/0) // // Copyright (c) 2018 Yuji Hirose. All rights reserved. // MIT License // #include <peglib.h> #include <fstream> #include <iostream> #include <sstream> #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/GenericValue.h...
/* * Copyright (c) 2018, Sensirion AG <joahnnes.winkelmann@sensirion.com> * 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 co...
/*============================================================================ The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center (DKFZ) All rights reserved. Use of this source code is governed by a 3-clause BSD license that can be found in the LICENSE file. =================...
// System::Net::HttpWebResponse::StatusCode; System::Net::HttpWebResponse::StatusDescription /* This program demonstrates the 'StatusCode' and 'StatusDescription' property of the 'HttpWebResponse' class. It creates a web request and queries for a response. */ #using <System.dll> using namespace System; using namespa...
// Classic Shell (c) 2009-2017, Ivo Beltchev // Classic Start (c) 2017-2018, The Passionate-Coder Team // Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author #ifndef _WIN64 #define STRICT_TYPED_ITEMIDS #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS //...
#include <iostream> #include<bits/stdc++.h> #include <algorithm> #include <map> #include <cstdio> #include <stack> #include <cstdlib> #include <set> #include <map> #include <unordered_set> #include <unordered_map> #include <list> #include <vector> #include <queue> #include <climits> #include <cmath> #include <cstring> ...
namespace N1 { namespace O1 {}} namespace N1 { namespace N2 { namespace N3 { } } } namespace N1 { namespace N2 { namespace N3 { enum X { X1 = 0, X2 = 1, X3 = 2 }; } } } namespace N1::O1 { using namespace N2::N3; void foo() { X1; } }
#include "matricks.hpp" bool calcPoincare(Matricks::Vector<Matricks::p3vector<double> >& position, const Matricks::p3vector<double>& startPosition, int& numTransits, const int pointsPerTransit); bool calc_1pt_Poincare(Matricks::p3vector<double> & finalposition, const Matricks::p3vector<double>& s...
// //////////////////////////////////////////////////////// // # Title // Concealed Square // // # URL // https://projecteuler.net/problem=206 // http://euler.stephan-brumme.com/206/ // // # Problem // Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0, where each "_" is a single digit. // /...
// Copyright (c) 2020 The worldwideweb Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <crypto/aes.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/fuzz.h> #include <test/fuzz/util.h> #i...