text stringlengths 3.08k 22k |
|---|
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
//
// Copyright (c) 2008-2022 the Urho3D project.
//
// 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, m... |
/*******************************************************************************************************
* Copyright 2018 Alliance for Sustainable Energy, LLC
*
* NOTICE: This software was developed at least in part by Alliance for Sustainable Energy, LLC
* ("Alliance") under Contract No. DE-AC36-08GO28308 with the... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include <bcl/bcl.hpp>
#include <bcl/containers/CircularQueue.hpp>
#include <bcl/containers/FastQueue.hpp>
#include <string>
#include <cstdlib>
#include <time.h>
#include <omp.h>
#include <algorithm>
#include <bitset>
#include <random>
double stealPerc;
bool verifyResults = false;
void multiply(double *matrix, double... |
/*=============================================================================
Phoenix V1.2.1
Copyright (c) 2001-2003 <NAME>
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.... |
/// This program takes as input any 3 strings and returns all solutions
/// to A,B,C such that A + B == C
/// The user is asked if he wants distinct values or not
/// The first digit of a number may be 0
#include<iostream>
#include<map>
#include<string.h>
using namespace std;
class syst{
private:
... |
/****************************************************************************
*
* Copyright (c) 2012-2014 PX4 Development Team. 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. Red... |
//===- NumberObjectConversionChecker.cpp -------------------------*- C++ -*-==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// $Id: AngularCorrelation.cc,v 1.1.1.1 2007/01/13 19:44:02 jordan Exp $
// The functions to evaluate angular correlation coefficients.
#include "AngularCorrelation.hh"
#include "AngularCorrelation_coeff.icc"
#include <iostream>
#include <fstream>
#include <cmath>
using std::cos;
using std::pow;
using std::cout;
usi... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... |
#include <cstdio>
#include <ctime>
#include <cstring> // memset
#include <cstdlib> // rand, RAND_MAX
#include <cmath> // sqrtf
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/com... |
// -*- C++ -*-
//
// Package: RPCSeedGenerator
// Class: RPCSeedGenerator
//
/**\class RPCSeedGenerator RPCSeedGenerator.cc RecoMuon/MuonSeedGenerator/src/RPCSeedGenerator.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: ... |
/** \class PhotonMIPHaloTragger
* Determine and Set whether a haol or not
*
* \author <NAME>, <NAME>, <NAME> : (UCDavis)
* \author <NAME> (FSU)
*/
#include "RecoEgamma/PhotonIdentification/interface/PhotonMIPHaloTagger.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/EcalDetId/interface... |
/*
* Copyright (c) 2016, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC)
* 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... |
/*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. You may obtain a copy of the License at
*
* http://www.apache.org/li... |
/**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "logdevice/common/test/ZookeeperClientInMemory.h"
#include <iostream>
#includ... |
/*
Name: <NAME>
COSC 1337 Spring 2020 MW10
Exam 2, Programming portion
When complete: Change course designator in filename from DDHH to MW10
Change "Lastname" to your lastname.
Upload file: TT10_X2_Lastname.cpp to BlackBoard Assignment link.
*/
#include <iostream>
#include <iomanip... |
#include "global.h"
#include "ScoreKeeperRave.h"
#include "ThemeManager.h"
#include "RageUtil.h"
#include "GameState.h"
#include "Character.h"
#include "ScreenManager.h"
#include "PrefsManager.h"
#include "ThemeMetric.h"
#include "PlayerState.h"
#include "NoteTypes.h"
ThemeMetric<float> ATTACK_DURATION_SECONDS ("Score... |
/*
* Copyright (C) 2019 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 app... |
// Les3.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <iomanip>
using namespace std;
void h2p17v1() {
int x = 2;
cout << "x != 2 && x > 0 | " << (x != 2 && x > 0) << "\n";
cout << "x == 2 && x > 0 | " << (x == 2 && x > 0) << ... |
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/tools/tld_cleanup/tld_cleanup_util.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/strings/string_number_conversion... |
#include "../../include/xtd/guid.h"
#include "../../include/xtd/argument_exception.h"
#include "../../include/xtd/format_exception.h"
#define __XTD_CORE_NATIVE_LIBRARY__
#include <xtd/native/guid.h>
#undef __XTD_CORE_NATIVE_LIBRARY__
using namespace xtd;
const guid guid::empty;
guid::guid(const std::vector<byte_t>& ... |
/*
Copyright (c) 2005-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.org/licenses/LICENSE-2.0
Unless required by applicable la... |
/* <orly/csv_to_bin/write_cc.cc>
Implements <orly/csv_to_bin/write_cc.h>.
Copyright 2010-2014 OrlyAtomics, 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.apac... |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... |
#include "baro.h"
#include "config.h"
#include "ricardo_pins.h"
#include "SPI.h"
#include "Storage/systemstatus.h"
#include "Storage/logController.h"
#include "sensorStructs.h"
#include <string>
Baro::Baro(SPIClass* spi,SystemStatus* systemstatus,LogController* logcontroller,raw_measurements_t* raw_data):
_barofilt... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
// This has to be included first.
// See http://code.google.com/p/googletest/issues/detail?id=371
#include "testing/gtest/include/gtest... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gridtools/gcl/halo_exchange.hpp>
#include <type_traits>
#include <vector>
#include <mpi.h>
#include <gmock/gmock.h>
#... |
/**
* \file src/core/impl/graph/var_node_mem_mgr/static_mem_alloc/impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Lic... |
#include "DtlsSocket.h"
#include "SessionWrap.h"
#include <stdlib.h>
#include "mbedtls/ssl_internal.h"
#include "mbedtls/pk.h"
using namespace Napi;
Napi::FunctionReference DtlsSocket::constructor;
Napi::Value DtlsSocket::Initialize(Napi::Env& env, Napi::Object& exports) {
Napi::HandleScope scope(env);
// Cons... |
/*
* Copyright (C) 2017-2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/sharings/d3d/d3d_surface.h"
#include "runtime/context/context.h"
#include "runtime/device/device.h"
#include "runtime/mem_obj/image.h"
#include "runtime/helpers/get_info.h"
#include "runtime/memory_manager/memor... |
#include "Model.hpp"
Model::Model() {
}
Model::Model(const vector<Trajectory*> & trajs, int numStates, int numActions, int L, bool JiangStyle) {
// Get the number of states and actions that have actually been observed
this->numStates = numStates;
this->numActions = numActions;
this->L = L;
N = (int)trajs.size();... |
/***************************************************************************
* Copyright (C) 2011 by <NAME> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms... |
// posit.cpp: components of a posit: cli to show the sign/scale/regime/exponent/fraction components of standard posit configurations
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <unive... |
#include "endtoendtest.h"
#include <iomanip>
#include <fstream>
using namespace std;
using namespace cv;
using namespace alpr;
EndToEndTest::EndToEndTest(string inputDir, string outputDir)
{
this->inputDir = inputDir;
this->outputDir = outputDir;
}
void EndToEndTest::runTest(string country, vector<std::string... |
// SacRunner.cpp : Defines the entry point for the console application.
//
#include "inclfile.h"
#include "..\SacCommunicator\SacCommunicator.h"
#include "ntlog.hxx"
#define BUFFER_SIZE 1024
LPCTSTR g_vConnectionParams[]= {"COM1", "9600", "8", "0", "1"};
BOOL g_bVerbose = FALSE;
LPCTSTR g... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using ... |
// Example: IMAGES=/opt/images/train/ ./image_test
#include <stdio.h>
#define __IMAGE_TESTS__
#include <assert.h>
#include <dirent.h>
#include <jpeglib.h>
#include <setjmp.h>
#include <stdint.h>
#include <string.h>
#include <functional>
#include <map>
#include <stdexcept>
#include <string>
#include <vector>
#includ... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "TypeSystem.h"
#include "DexUtil.h"
#include "Resolver.h"
#include "Show.h"
#include "Timer.h"
#include "Trace.h"
namesp... |
/* Copyright 2009, 2010 <NAME> */
/* ssd_plane.cpp is part of FlashSim. */
/* FlashSim 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
* any later version. */
/* Flash... |
// Task 6 - Generate a Bezier surface of variable density with UV coordinates.
// - Confine the Bezier data and associated methods into a reusable class.
// - Define a modelMatrix that uses position, rotation and scale.
// - Render the generated mesh with texturing applied.
// - Animate rota... |
/*
(c) Copyright [2017] Hewlett Packard Enterprise Development LP
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by app... |
// Copyright (c) 2018 <NAME>
// Copyright (c) 2018 <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_main.hpp>
#include <hpx/include/agas.hpp>
#include ... |
/* NAME:
GNRegister.c
DESCRIPTION:
Quesa generic renderer registration.
COPYRIGHT:
Copyright (c) 1999-2012, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwalker/Quesa>
Redistribution an... |
//
// SwingTwistConstraint.cpp
//
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "SwingTwistConstraint.h"
#include <algorithm>
#include <math.h>
#include <GeometryUt... |
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would... |
// user include files
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/ES... |
#include "AuxFunctions.h"
// char ssid[] = "APT_1206";
// char pass[] = <PASSWORD>*";
WiFiUDP udp;
IPAddress destIP(ip_1, ip_2, ip_3, ip_4);
// const unsigned int destPort = 7000;
int cycle = 0;
byte buffer[BUFFER_SIZE];
int indexBuffer = 0;
boolean loopCycleControl = true;
int loopCycleTime = 100;
int quantBlock... |
// Copyright (c) 2010, <NAME> <<EMAIL>>. 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
// ... |
// Copyright 2014 <NAME> (<EMAIL>).
// 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)
// Caution: this file contains Quickbook markup as well as code
// and comments, don't chan... |
/*
* MyRRTSolver.cpp
*
* Created on: Apr 10, 2013
* Author: okan
*/
#include "MyRRTSolver.h"
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <sstream>
#include <vector>
MyRRTSolver::MyRRTSolver() {
initialx = 0;
initialy = 0;
initialVertex = NULL;
targetx = 4;
targ... |
#include "openglwindow.hpp"
#include <fmt/core.h>
#include <imgui.h>
#include <cppitertools/itertools.hpp>
#include "abcg.hpp"
void OpenGLWindow::handleEvent(SDL_Event &event) {
if (event.key.keysym.sym == SDLK_UP && direction != Direction::Down) {
direction = Direction::Up;
}
if (event.key.key... |
/****************************************************************************
* Copyright (c) 2017-2021 by the ArborX authors *
* All rights reserved. *
* *
* This ... |
/****************************************************************************
* Copyright (c) 2021, CEA
* 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 retai... |
/*
* Copyright (C) 2007 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 app... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/* Copyright 2003-2017 GBDI-ICMC-USP <<EMAIL>>
*
* 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 agr... |
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <cstdint>
#include <limits>
namespace {
std::vector<int> ToBits(const std::string &s) {
std::vector<int> ret;
for (char c : s) {
std::vector<int> bits;
switch (c) {
case '0':
bits = {0, 0, 0... |
#include "category_widget.h"
#include "ui/widgets/misc.h"
#include "ui/imgui_util.h"
#include "imgui_stdlib.h"
void CategoryWidget::BeforeFrameUpdate() {
m_manager = m_workspace.getCurrentManager();
m_same_name = false;
for (auto cat_id : m_manager->getAllCategories()) {
auto cat = m_manager->get... |
// Copyright (C) 2011-2020 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <stdio.h>
#incl... |
#include "linkerwindow.h"
#include "mainctrl.h"
#include <QScrollArea>
LinkerWindow::LinkerWindow(zodiac::NodeHandle &node, QList<zodiac::NodeHandle> &nodeList, QWidget *parent)
: QDialog(parent)
, m_mainNode(node)
{
QList<zodiac::NodeHandle> connectedNarrativeNodes = getConnectedPlugs(node, "reqIn");
... |
#define _GLIBCXX_USE_NANOSLEEP // Workaround to use std::this_thread::sleep_for
#include <inttypes.h>
#include <iostream>
#include <iomanip>
#include <yaml-cpp/yaml.h>
#include <arpa/inet.h>
#include <thread>
#include <sys/mman.h>
#include <boost/atomic.hpp>
#include <cpsw_api_user.h>
#include "heartbeat.h"
const ... |
/*
* Copyright 2020 nPrint
* 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 https://www.apache.org/licenses/LICENSE-2.0
*/
#include "superpacket.hpp"
void SuperPacket::print_packet(FILE *... |
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
// Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames
// Copyright (C) 2015 Faust Logic, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and ... |
#include "cpu/rotate_nms.h"
#include "rotate_rect_ops.h"
template <typename scalar_t>
at::Tensor rotate_nms_cpu_kernel(const at::Tensor& dets,
const at::Tensor& scores,
const float threshold) {
AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tenso... |
/*
* 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
*
*/
#if defined(TARGET_LINUX_POWER)
#error "Source cannot be compiled for POWER architectures"
#include "xmm2alt... |
#include "CurveTrackEngine.h"
#include "Engine.h"
#include "Groove.h"
#include "Slide.h"
#include "SequenceUtils.h"
#include "core/Debug.h"
#include "core/utils/Random.h"
#include "core/math/Math.h"
#include "model/Curve.h"
#include "model/Types.h"
static Random rng;
static float evalStepShape(const CurveSequence:... |
/*
* Copyright (C) 2019 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... |
// 1999-06-10 bkoz
// Copyright (C) 1994, 1999, 2001, 2002 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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;... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2020, Analog Devices, 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 copyrigh... |
#include <blah/math/color.h>
#include <blah/math/vec3.h>
#include <blah/math/vec4.h>
using namespace Blah;
char const hex[16] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
#define LT_HEX_VALUE(n) ((n >= '0' && n <= '9') ? (n - '0') : ((n >= 'A' && n <= 'F') ? (10 + n - 'A') : (... |
/*
* Copyright (c) 2011 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
#include "stdafx.h"
#include "Animation.h"
Animation::Animation()
{
m_duration = 0U;
m_fps = 0U;
m_bonesCount = 0U;
m_loaded = false;
}
Animation::~Animation()
{
m_bones.clear();
}
void Animation::Clean()
{
std::cout << "Cleaning ..." << std::endl;
m_bones.clear();
m_duration = 0U;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <map>
#include <vector>
#include <queue>
#include "../include/html_parser.h"
#include "../include/spider_web.h"
#include "../include/spider.h"
using namespace std;
int add_vis(struct web *wb, struct node *nd, char *name, int v) {
if (nd == N... |
#include "trick/MemoryManager.hh"
#include "trick/bitfield_proto.h"
#include <sstream>
void Trick::MemoryManager::clear_rvalue( void* base_address, ATTRIBUTES* attr, int curr_dim, int offset) {
char* final_address;
int remaining_dimensions = attr->num_index - curr_dim;
/** @par Detailed Description: */
... |
// file: dispatch.hpp
// Kernel dispatcher.
#include "gespmm.h"
#include "gespmm_v2.h"
#include <iostream>
//
// most-simple algorithm selector
//
gespmmAlg_t gespmmAlgSel(int dense_ncol, bool transpose_BC)
{
if (transpose_BC) {
if (dense_ncol >= 32) return GESPMM_ALG_ROWCACHING_ROWBALANCE;
else if... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// 全排列的递归(dfs)函数
void permute_dfs(int t, int n, int x, int* path, int* visit, int** perm_lst, int* cnt)
{
if(t==n) {
// for(int i=1; i<=n; i++) {
// if(i>1) printf(" ");
// printf("%d", path[i]);
// }
// prin... |
// TODO: document further
/* unary operators are constructed in "build_DTGs" by calling
* "addTransition" with the appropriate arguments: for every
* pre-postcondition pair of an operator, an edge in the
* DTG is built between the corresponding values in the dtg of the
* variable, annotated with all prevail condit... |
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <RawPacket.h>
#include <Packet.h>
#include <PcapFileDevice.h>
#include <PcapPlusPlusVersion.h>
#include <SystemUtils.h>
#include <getopt.h>
#include "Logger.h"
#include "EthLayer.h"
#include "IPv4Layer.h"
#include "TcpLa... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
There are only a few differences between the video hardware of Mysterious
Stones and <NAME>. The tile bank select bit is different and the sprite
selection seems... |
/*
MGEAR is under the terms of the MIT License
Copyright (c) 2016 <NAME>, <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 u... |
#include "pch.h"
#include "Sqex_CommandLine.h"
#include "Utils_CallOnDestruction.h"
#include "Utils_Win32.h"
const char Sqex::CommandLine::ChecksumTable[17] = "fX1pGtdS5CAP4_VL";
const char Sqex::CommandLine::ObfuscationHead[13] = "//**sqex0003";
const char Sqex::CommandLine::ObfuscationTail[5] = "**//";
std::vector... |
/*
* Copyright 2005 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that this Notice and a... |
// \file fon9/Subr_UT.cpp
// \author <EMAIL>
#include "fon9/Subr.hpp"
#include "fon9/TestTools.hpp"
#include <atomic>
#include <thread>
//----------------------------------------------------------------------------
typedef uint64_t SubrMsg;
std::atomic<uint64_t> gMsgCount;
#ifdef _DEBUG
static const size_t ... |
// values.cpp : tests on values in scientific notation (sign, scale, fraction)
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
//#define POSIT_VERBOSE_OUTPUT
#define POSIT_TRACE_CONVERSION
#incl... |
/**
* @file
* @brief Example node to publish raw OS-1 output on ROS topics
*
* ROS Parameters
* os1_hostname: hostname or IP in dotted decimal form of the sensor
* os1_udp_dest: hostname or IP where the sensor will send data packets
* os1_lidar_port: port to which the sensor should send lidar data
* os1_imu_por... |
// Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#define _NBL_STATIC_LIB_
#include <iostream>
#include <cstdio>
#include <nabla.h>
#include "nbl/ext/ScreenShot/ScreenShot.h"
#include... |
/*=========================================================================
Program: ParaView
Module: $RCSfile: vtkCSVReader.cxx,v $
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ... |
// MeCab -- Yet Another Part-of-Speech and Morphological Analyzer
//
// $Id: dictionary_rewriter.cpp 173 2009-04-18 08:10:57Z taku-ku $;
//
// Copyright(C) 2001-2006 <NAME> <<EMAIL>>
// Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
#include <cstring>
#include <string>
#include <vector>
#include ... |
/* The MIT License
Copyright (c) 2013 <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... |
#include "game.hpp"
#include "assets.hpp"
#define SCREEN_WIDTH 160
#define SCREEN_HEIGHT 120
#define SPRITE_SIZE 8
#define PLAYER_X 32
#define PLAYER_UP 20
#define PLAYER_DOWN 20
// ^ maybe 30?
#define JUMP_VELOCITY 150
#define GRAVITY 500
#define MAX_VELOCITY 300
#define SC... |
/*
* Copyright (C) 2010-2014 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
//
// $Id: DataFetcherContainerTest.cpp 2051 2010-06-15 18:39:13Z chambm $
//
//
// Original author: <NAME> <<EMAIL>>
//
// Copyright 2009 Center for Applied Molecular Medicine
// University of Southern California, Los Angeles, CA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not us... |
#include "testrosenblat.h"
#include "gtc/random.hpp"
#include "gtx/compatibility.hpp"
#include <mutex>
TestRosenblat::TestRosenblat()
{
BatchRenderer::setShader(AssetManager::getShader("batch"));
rangeX = {0, 2*glm::pi<float>()};
rangeY = {-1, 1};
// random points
std::vector<vec2> pointsDrawI... |
#include <iostream>
#include <cstdio>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <regex>
#include <map>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/wait.h>
#include "utils.h"
#include "sandbox.h"
#include "config.h"
#include "testsuite.h"
#include "server_io.h"
... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies th... |
/*
* (c) Copyright 2014, Hewlett-Packard Development Company, LP
*/
/*
Shore-MT -- Multi-threaded port of the SHORE storage manager
Copyright (c) 2010-2014
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
... |
//
// main_spotlight.cpp
// HCI 557 Spotlight example
//
// Created by <NAME> on 5/28/15.
// Copyright (c) 2015 -. All rights reserved.
//
// stl include
#include <iostream>
#include <string>
// GLEW include
#include <GL/glew.h>
// GLM include files
#define GLM_FORCE_INLINE
#include <glm/glm.hpp>
#include <glm/g... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.