text stringlengths 3.08k 12.5k |
|---|
/**
* Copyright (c) 2017-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 ... |
// Copyright 2022 <NAME>
#include "../../../modules/task_3/chelebaev_a_graham_scan_tbb/graham_scan_tbb.h"
#include <stack>
std::vector<std::pair<double, double>> gen_random_points(std::size_t size) {
std::mt19937 rand_r(time(0));
std::vector<std::pair<double, double>> vec(size);
for (std::size_t i = 0; i < size... |
/*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, ISR University of Coimbra.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
#include <iostream>
#include "source/newtonian/test_1d/acoustic.hpp"
#include "source/newtonian/two_dimensional/hdsim2d.hpp"
#include "source/newtonian/two_dimensional/geometric_outer_boundaries/PeriodicBox.hpp"
#include "source/tessellation/VoronoiMesh.hpp"
#include "source/newtonian/common/ideal_gas.hpp"
#include "so... |
///
/// @file : Duchamp driver
///
///
/// Control parameters are passed in from a LOFAR ParameterSet file.
///
/// @copyright (c) 2007 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
//... |
// 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) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
#include "Street.h"
#include "Game.h"
#include "Common.h"
#include "Path.h"
#include <SFML\Graphics.hpp>
#include <list>
#include <fstream>
Street::Street()
{
m_lineColor = sf::Color::Black;
m_pLeftLanePath = std::make_shared<Path>();
m_pRightLanePath = std::make_shared<Path>();
}
Street::St... |
//////////////////////////////////////////////////////////////////////////////
/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
SortedSdoCollection.cpp
Abstract:
Implements the get__NewSortedEnum function.
Given an ISdoCollection interface pointer and a property ID, this function
gi... |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna and GreenWaves Technologies
*
* 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-... |
/*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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... |
/**
* @file oracle+dblp.cpp
*
* @copyright SPDX-FileCopyrightText: 2022 Battelle Memorial Institute
* @copyright SPDX-FileCopyrightText: 2022 University of Washington
*
* SPDX-License-Identifier: BSD-3-Clause
*
* @authors
* <NAME>
* <NAME>
* liux238
*
*/
#include <fstream>
#include <iostream>
#incl... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundatio... |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... |
/*************************************************************************/
/* camera_server.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
*
* 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 req... |
/**
* @project identt
* @file src/store/StoreLevel.cc
* @author <NAME> <<EMAIL> AT <EMAIL> DOT <EMAIL>>
* @version 1.0.0
*
* @section LICENSE
*
* Copyright (c) 2017 <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files ... |
#include "arealight.h"
#include "shape.h"
#include "utils.h"
#include "sampling.h"
int GetAreaLightSerializedSize() {
return 1 + // type
GetMaxShapeSerializedSize() + // shape
3; // emission
}
AreaLight::AreaLight(const Float &samplingW... |
#include "pch.h"
#if defined(__ANDROID__) || (__APPLE__) || (__linux__)
#define LOCALTIME(X,Y) (nullptr == localtime_r(Y, X))
#else
#define LOCALTIME(X,Y) localtime_s(X,Y)
#endif
#include "DateTimePreparsedToken.h"
#include "BaseCardElement.h"
#include "Enums.h"
#include <time.h>
#include "ElementParserRegistration.... |
#include "stdafx.h"
#include "../../SO3Represent.h"
namespace
{
static const LPCTSTR s_szFilePath = _T("Represent\\filepath.ini");
static const LPCTSTR s_szFilePathSection = _T("FILE_PATH");
}
KFilePath::KFilePath()
{
for (int nIndex = FILE_PATH_BEGIN; nIndex != FILE_PATH_END; ++nIndex)
m_aszFilePat... |
// copy-trees-ss.cc
//
// (c) <NAME>, 29th October 2004, last modified 10th May 2005
static const char usage[] =
"copy-trees-ss filename-base wsj-tree-filename-cmd < massi-ss-file\n"
"\n"
"reads Massi's supersense file from stdin, then reads the wsj file arguments\n"
"and writes out the trees in these files with their... |
// LAF Library
// Copyright (C) 2020-2021 Igara Studio S.A.
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "base/clamp.h"
#include "gfx/hsv.h"
#include "gfx/rgb.h"
#include "os/os.h"
#include <cstdarg>
#include <cstdlib>
#include <string>
#include <... |
#include <cstdlib>
#include <string.h>
#include "enclave_t.h"
#include "sgx_trts.h"
#include "sgx_tcrypto.h"
#include "sgx_tprotected_fs.h"
#define USER_FILENAME "secret_file.txt"
#define MAX_STRING 255
#define MAX_FILE_SIZE 4 * 1024
/* This sequence should be unique.
E.g. use some padding from PKCS#7 */
const char*... |
#include <OSUtil.h>
#include "emustubs.h"
#include <SegmentLdr.h>
#include <error/error.h>
#include <error/system_error.h>
#include <base/debugger.h>
#include <sound/soundopts.h>
#include <rsys/executor.h>
using namespace Executor;
static uint16_t bad_traps[10];
static int n_bad_traps = 0;
void
Executor::ROMlib_res... |
// File Name: A.cpp
// Author: YangYue
// Created Time: Thu Jun 12 22:59:58 2014
//headers
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <cstring>
#include <cmath>
#include <ctime>
#include <string>
#include <queue>
#include <set>
#include <map>
#include <iostream>
#include <vec... |
//===--- SILWitnessTable.cpp - Defines the SILWitnessTable class ----------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include "global.h"
#include "RageSoundDriver_DSound_Software.h"
#include "DSoundHelpers.h"
#include "RageLog.h"
#include "RageUtil.h"
#include "RageSoundManager.h"
#include "PrefsManager.h"
#include "archutils/Win32/ErrorStrings.h"
REGISTER_SOUND_DRIVER_CLASS2( DirectSound-sw, DSound_Software );
static const int ch... |
/*
* 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... |
// killer.cc
// Copyright 2019 <NAME>
//
// 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 <iostream>
#include <array>
#include <chrono>
#include "library/serial.h"
#include "library/platform.h"
/// Test speed of serial device connected to loop
/// It generates messages, sends them, recieves them and checks the values.
void testSpeed(Serial &serial, unsigned bps)
{
if (serial.setBaudRate(bps) ... |
#include "dns-storage.hh"
#include "record-types.hh"
#include <iomanip>
using namespace std;
//! Makes us relative to 'root', returns false if we weren't part of root
bool DNSName::makeRelative(const DNSName& root)
{
auto us = d_name, them=root.d_name;
while(!them.empty()) {
if(us.empty())
return false;
... |
/*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;}
int sub(int x... |
#include "window.h"
#include "keyboard.h"
#include "mixer.h"
#include "path.h"
#include "shared.h"
#include "tiles.h"
#include "config.h"
#include "mouse.h"
#include "editor.h"
#include "tiles.h"
#include "imgui.h"
#include "GUI/imgui_impl_allegro5.h"
static ALLEGRO_EVENT_QUEUE *g_queue = nullptr;
static ALLEGRO_DISPL... |
#include "parameters.h"
/**
* @brief Empty constructor. Setting all attributes to 0.
*/
MTL::MTL(){
this->number_sensor = 0;
this->julian_day = 0;
this->year = 0;
this->sun_elevation = 0;
this->rad_add_10 = 0;
this->rad_mult_10 = 0;
};
/**
* @brief Constructor receiving the metadata path.... |
/*
* Copyright 2013-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... |
// -*- c++ -*-
//=======================================================================
// Copyright 1997, 1998, 1999, 2000 University of Notre Dame.
// Authors: <NAME>, <NAME>, <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.bo... |
#include "global_defines.cuh"
void init_density( const int &lx, const int &ly, const int &lz, FLOATING *node_grid, FLOATING *node_hlp_grid){
const FLOATING t_0 = 1.0 / 3.0 ;
const FLOATING t_1 = 1.0 / 18.0 ;
const FLOATING t_2 = 1.0 / 36.0 ;
//Initialize density distribution function n with equilibrium ... |
#include <algorithm>
#include <cmath>
// Okay, it's ugly, I get it.
//
// I didn't use classes or a vector library. I use loops to
// 3 everywhere for vector operations, and I even write out dot
// products. My intent was to try to build a minimal sphere
// raycaster that I could convert simply to BASIC or FORTH or ... |
/*
* Copyright 2017 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 applicab... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
bool B[6][6];
const int di[] = { -2, -2, -1, 1, 2, 2, 1, -1 };
const int dj[] = { -1, 1, 2, 2, 1, -1, -2, -2 };
int get_r(const s... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
vector<string> G;
int m, n;
int dp[50][50][26];
int go(int i, int j, char c) {
if (i<0 || j<0 || i>=m || j>=n || G[i][j]!=c)
r... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// NOTE: This file is intended to be customised by the end user, and includes only local no... |
//
// Copyright (c) 2016-2018 <NAME> Silva.
//
// 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, modify, merge, ... |
#include "logger.hpp"
#include "timeline_profiler.hpp"
TimelineProfiler<2> timeline;
#include "mapping_pipe.hpp"
#include "calling_pipe.hpp"
#include "json.hpp"
#include <iostream>
#include <cstring>
int main(int argc, char *argv[]) {
Logger::priority = 4;
if (argc == 1) {
std::cerr << argv[0] << " ... |
#include <Arduino.h>
#include "MotorControl.h"
#include "settings.h"
MotorController::MotorController(int l0, int l1, int l2, int l3) {
pinMode(M0_STEP_PIN, OUTPUT);
pinMode(M1_STEP_PIN, OUTPUT);
pinMode(M2_STEP_PIN, OUTPUT);
pinMode(M3_STEP_PIN, OUTPUT);
pinMode(M0_DIR_PIN, OUTPUT);
pinMode(M... |
/*
* Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
#include "system/System.hpp"
#include "wrappers.hpp"
using namespace cpb;
template<class T>
void wrap_registry(py::module& m, char const* name) {
py::class_<T>(m, name)
.def_property_readonly("name_map", &T::name_map)
.def(py::pickle([](T const& r) {
return py::dict("energies"_a=r.get_e... |
#include <cstdlib>
#include <iostream>
#include <GL/glut.h>
#include <cmath>
#include "Transform.h"
#include "Vector3.h"
#include "Spider3D.h"
using namespace std;
GLint WINDOW_WIDTH = 800,
WINDOW_HEIGHT = 800;
void init();
void render();
void mouse_click(GLint button, GLint action, GLint x, GLint y);
void u... |
/*!
* @file
* @brief Test for the BLE UART Service
*
* @author <NAME>
* @date 2017-10-02
*
* @copyright © 2017 ubirch GmbH (https://ubirch.com)
*
* @section LICENSE
* ```
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... |
/*
* Copyright (c) 2013-2014 <NAME>
*
* 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, modify, merge, publish... |
/*
* Copyright (c) 2003-2017 <NAME> <<EMAIL>>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/**
* PerformConfigMigration() shou... |
// Copyright (c) 2017 <NAME>
//
// 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 <phylanx/phylanx.hpp>
#include <hpx/hpx_init.hpp>
#include <cstdint>
#include <iostream>
#include <string>
#include <u... |
#include <dis6/VariableDatum.h>
#include <iostream>
using namespace DIS;
VariableDatum::VariableDatum():
_variableDatumID(0),
_variableDatumLength(0),
_variableDatums(static_cast<std::size_t>(STATIC_ARRAY_LENGTH), char(0)), // can (theoretically) throw
_arrayLength(0)
{
}
VariableDatum::~VariableDatum... |
/* $Id: tstRTCircBuf.cpp $ */
/** @file
* IPRT Testcase - Lock free circular buffers.
*/
/*
* Copyright (C) 2010-2015 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 modi... |
#include "fft47pointers.h++"
#include "complex.h++"
#include "fallbackFFT.h++"
#include <math.h>
const double TAU = 6.2831853071795864769;
FFT::FFT(unsigned int n) {
double* cosines = new double[n];
for (unsigned int i = 0; i < n; i++) {
cosines[i] = cos(TAU * i / n);
}
const unsigned int quarterN = n >>... |
/*
Copyright (c) 2004, <NAME>
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 conditions and the following... |
// use tlm2.0 example SimpleBusAT.h as reference
#include "sc_initiator.hh"
#include "top.hh"
Initiator::Initiator(sc_core::sc_module_name name, axilite_bridge &bridge)
: sc_core::sc_module(name),
bridge(bridge),
target_socket("target_socket"),
initiator_socket("initiator_socket"),
request_peq("requ... |
#define _CRT_SECURE_NO_WARNINGS
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "csv.h"
#include "stringutil.h"
using namespace frame;
#define SET_CHAR(ptr,n,c) do{ *(ptr-n)=c; } while(0)
#define MV_CHAR(ptr,n) do{ if(n>0)*(ptr-n)=*ptr; } while(0)
namespace cfg
{
bool csv_par... |
/*
* Copyright (c) 2006-2007 <NAME> http://www.box2d.org
*
* 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,
... |
#include "../third_party/json.hpp"
#include "../third_party/sgp4ext.h"
#include "../third_party/sgp4unit.h"
#include <array>
#include <chrono>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
struct ymd_s_ns {
uint32_t ymd;
uint32_t hms;
uint32_t ns;
ymd_s_ns(const std::strin... |
/* The MIT License
Copyright (c) 2014 <NAME> <<EMAIL>>
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, mo... |
/*
Copyright 2018 <NAME>
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,... |
/*
Copyright (c) 2011, <NAME> and ESN Social Software AB
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 cond... |
#include <iostream>
#include <iomanip>
using namespace std;
// Prototype fungsi atau prosedur
void pesanan(int *menu, int *porsi, int *banyak_pesanan, int *status_pesanan);
int penentuan_harga(int menu, int porsi, float *diskon, int banyak_pesanan);
float penentuan_pajak(int status_pesanan, float total_harga_awal)... |
#include <TSqlORMapper>
#include <TSqlORMapperIterator>
#include <TSqlQueryORMapper>
#include <TSqlQueryORMapperIterator>
#include <TSqlJoin>
#include <TMongoODMapper>
#include <TModelUtil>
#if QT_VERSION >= 0x050000
# include <TJsonUtil>
#endif
#include <tglobal.h>
#include <tatomicptr.h>
#include <tatomic.h>
#include... |
/**
* \file kmer_options.cpp
* \author <NAME>
* \brief Defines options and related functions for the kmer_counting problem.
*/
#include "kmer_options.hpp"
#include <getopt.h>
#include <iostream>
using namespace kmers;
bool Options::printErrorAndReturnFalse(const std::string&& error)
{
std::cerr << error <<... |
#include <ros/ros.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Bool.h>
#include <sensor_msgs/Joy.h>
#include <buzzmobile/CarPose.h>
#include <buzzmobile/CarState.h>
#include <math.h>
using namespace buzzmobile;
// Buttons mapped to a PS4 controller using the Joy ROS node.
#define reverse_button buttons[15]
#... |
/*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "csv.h"
#include "simstring.h"
#include "../macros.h"
#include "../simtypes.h"
CSV_t::CSV_t (const char *csvdata) :
l... |
#include "utils.h"
#include "set"
//int main() {
// int n = 50000;
// int *arr1 = sortTestHelper::generateNearlyOrderArray(n, 1);
// int *arr2 = sortTestHelper::copyIntarray(arr1, n);
// int *arr3 = sortTestHelper::copyIntarray(arr1, n);
// int *arr4 = sortTestHelper::copyIntarray(arr1, n);
// int *a... |
/*
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ... |
// ---------------------------------------------------
// Author: <NAME> (www.shishirbhat.com)
// The MIT License (MIT)
// Copyright (c) 2016
//
#include "DASM.h"
// global variables
DWORD g_dwInputFileType; // set by fBeginFileScan()
BINFILEINFO g_binFileInfo;
// ** Controlling program options **
// true by def... |
#include <mpi.h>
#include "Complex.h"
#include <fftw3-mpi.h>
#include <iostream>
#include "getopt.h"
#include "seconds.h"
#include "timing.h"
#include "cmult-sse2.h"
#include "exmpiutils.h"
#include "../mpiutils.h"
using namespace std;
using namespace utils;
using namespace fftwpp;
void init(Complex* f, unsigned int... |
#include "pybind11/pybind11.h"
#include "pybind11/stl_bind.h"
#define FORCE_IMPORT_ARRAY
#include "ArgumentsDict.h"
namespace xt
{
#if defined(__GNUC__) && !defined(__clang__)
namespace workaround
{
inline void complex_allocator()
{
std::allocator<int> ai;
std::allocator<... |
// Copyright 2016 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 "media/base/ipc/media_param_traits.h"
#include "base/strings/stringprintf.h"
#include "ipc/ipc_message_utils.h"
#include "media/base/audio_param... |
#include <sstream>
#include <fstream>
#include "TvmSsdMxnet.hpp"
#include "dlru_utils.hpp"
#include <tvm/runtime/module.h>
#include <tvm/runtime/registry.h>
#include <tvm/runtime/packed_func.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#define THRESH 0.9
using std::endl;
using std::string;
u... |
/*
** Copyright 2011-2017 Centreon
**
** 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 t... |
#ifndef LOCAL
#pragma GCC optimize("O3,unroll-loops")
#pragma GCC target("avx,avx2,sse,sse2,sse3,sse4,popcnt,bmi,bmi2,lzcnt")
#endif
#include "bits/stdc++.h"
#ifdef DEBUG
#include "includes/debug/debug.hpp"
#else
#define debug(...) 0
#endif
using namespace std;
namespace IO {
constexpr bool UNSAFE =... |
#include "LVGLList.h"
#include <QIcon>
#include "LVGLObject.h"
#include "properties/LVGLPropertyList.h"
class LVGLPropertyListSingleMode : public LVGLPropertyBool
{
public:
QString name() const { return "Single mode"; }
QStringList function(LVGLObject *obj) const {
return QStringList() << QString("lv_list_set_si... |
/*
* \class TrackerSeedCleaner
* Reference class for seeds cleaning
* Seeds Cleaner based on sharedHits cleaning, direction cleaning and pt cleaning
\author <NAME> - Purdue University, Pavia University
*/
#include "RecoMuon/TrackerSeedGenerator/interface/TrackerSeedCleaner.h"
//---------------
// C++ Heade... |
/* This file contains the functions to write the AtomNetlist into a hypergraph
* (format: http://glaros.dtc.umn.edu/gkhome/fetch/sw/hmetis/manual.pdf) for hMetis to partition.
*
* Brief summary of formatting
* ===========================
* Hypergraph H = (V, Eh) with V vertices and Eh hyperedges stored in plain text fi... |
#include <3ds.h>
#include <string>
#include <cstring>
#include <vector>
#include <array>
#include <algorithm>
#include <time.h>
#include "gfx.h"
#include "file.hpp"
#include "structs.h"
#include "utils.h"
#include "save.h"
#include "common.h"
#include "nfs.h"
static Result SetACNLTitlesOnCart(void);
static Result SetA... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 Couchbase, 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
*
* h... |
/**************************************************************************
*
* Copyright 2013-2014 RAD Game Tools and Valve Software
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... |
#include <cstdio>
#include <cassert>
#include <cstring>
#include <queue>
#include <random>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
int query(const vector<int> &);
vector<bool> rax;
using vi = vector<int>;
struct Task;
void submit(int i, bool v);
void _require(int i, T... |
// license:BSD-3-Clause
// copyright-holders:Uki
/******************************************************************************
Markham (c) 1983 Sun Electronics
Strength & Skill (c) 1984 Sun Electronics
Video hardware driver by Uki
************************************************************************... |
#include <limits>
#include <iostream>
#include "RaZtracer/Math/Matrix.hpp"
#include "RaZtracer/Math/Quaternion.hpp"
#include "RaZtracer/Render/Scene.hpp"
namespace {
const float PHI = (std::sqrt(5.f) + 1) / 2;
std::mt19937 randomGenerator(0);
void buildOrthoBase(const Vec3f& yAxis, Vec3f& xAxis, Vec3f& zAxis) {
c... |
// Copyright 2021 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 ... |
#include "../include/BigInt.hpp"
//Constructor
BigInt::BigInt(std::string StrInt){
int size = StrInt.length();
base = BigInt::bdefault;
isPositive = (StrInt[0] != '-');
while (true){
if(size < 1) break;
if(!isPositive && size < 2) break;
int len(0), num(0) ,prefix(1);
... |
/*
Copyright (c) 2013, The Linux Foundation. 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... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#include "Angel.h"
typedef Angel::vec4 point4;
// Define a convenient type for referencing patch control points, which
// is used in the declaration of the vertices' array (used in "vertices.h")
typedef GLfloat point3[3];
#include "vertices.h"
#include "patches.h"
const int NumTimesToSubdivide = 3;
const int ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <set>
using namespace std;
/*int tree[17][1u<<16];
void insert(int x) { for (int i=0; i<17; ++i) { ++tree[i][x]; x /= 2; } }
void erase(int x) { ... |
#include <iostream>
#include <vector>
#include <stdexcept>
#include <iomanip>
typedef std::vector<std::vector<double>> Matrica;
Matrica horizontalnaMatrica(Matrica m) {
Matrica hm(m.size(), std::vector<double> (m[0].size()));
int d=m.size();
int s=m[0].size();
for(int i=0; i<d; i++) {
for(int j=0... |
/******************************************************************************
Towards learning Vulkan to integrate with a CSI camera
Dependencies:
* vulkan >= 1.1.100
* glfw3 >= 3.2
* spdlog >= 1.4.2
*****************************************************************************/
// GLFW
#define GLFW_INCLUDE_VULKA... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2015-2021, WWIV Software Services */
/* ... |
/*
* This constraint ensures integer value precedence of value s over value t across
* integer variable array X and proceeds to the appropriate filtering.
* This constraint is useful for breaking value symmetries.
* This constraint maintains Generalized Arc Consistency (GAC).
* A sequence of precedence can be ... |
// TImestream DAta Storage (TIDAS).
//
// Copyright (c) 2015-2019 by the parties listed in the AUTHORS file. All rights
// reserved. Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <tidas_internal.hpp>
#include <tidas_backend_hdf5.hpp>
#include <cstrin... |
#include "dynamic_graph.hpp"
#include "node.hpp"
#include <mblib/boost_variant.hpp>
#include <unordered_map>
#include <limits>
using boost::get;
using std::make_unique;
using std::move;
using std::string;
using std::pair;
using std::make_pair;
using std::vector;
using std::back_inserter;
using std::unordered_map;
... |
#include "QISI.h"
#include "IPF.h"
#include "Index.h"
#include "StatFuncs.h"
#include "Log.h"
namespace {
// TODO move somewhere appropriate (doesnt need to be member) (copy&paste from QSIPF)
size_t pick(const std::vector<double>& dist, double r)
{
// sum of dist should be 1, but we relax this
// r is in (0,1) s... |
#include <iostream>
#include <memory>
#include "Angular_Discretization_Parser.hh"
#include "Boundary_Source_Parser.hh"
#include "Cartesian_Distance.hh"
#include "Check_Equality.hh"
#include "Constructive_Solid_Geometry_Parser.hh"
#include "Distance.hh"
#include "Energy_Discretization_Parser.hh"
#include "Material_Pars... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.