text stringlengths 3.08k 22k |
|---|
/**
* (C) Copyright 2020, 2021 IBM. All Rights Reserved.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modifications or derivati... |
/*
* api.cpp
* Main functions for running sketches
*
*/
#include <algorithm>
#include <limits>
#include <H5Cpp.h>
#include <omp.h>
#include <pybind11/pybind11.h>
#include "api.hpp"
#include "database/database.hpp"
#include "gpu/gpu.hpp"
#include "reference.hpp"
#include "sketch/progress.hpp"
using namespace Eig... |
//===---- DivergenceAnalysis.cpp --- Divergence Analysis Implementation ----==//
//
// 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
//
//===---------------------------... |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
#include "a5teroids.hpp"
const float Player::MAX_SPEED = 10.0f;
const float Player::MIN_SPEED = -10.0f;
const float Player::ACCEL = 0.006f;
const float Player::DECCEL = 0.001f;
bool Player::logic(int step)
{
if (!isDestructable && invincibleCount > 0) {
invincibleCount -= step;
if (invincibleCount <= 0... |
#include <adcs/constants.hpp>
#include <fsw/FCCode/Drivers/ADCS.hpp>
#include <Arduino.h>
#include <array>
#include <bitset>
#include <i2c_t3.h>
Devices::ADCS adcs_d(Wire, Devices::ADCS::ADDRESS);
int cnt;
#ifndef UNIT_TEST
void setup() {
Serial.begin(9600);
while(!Serial);
Wire.begin(I2C_MASTER, 0x00, I2... |
#include "eulerproblems.hpp"
#include <fstream>
#include <string>
#include <vector>
#include <queue>
#include <iostream>
#include <utility>
#include <array>
#include "message_writer.hpp"
#include "clock.hpp"
#include "graphs_and_grids.hpp"
#include "utils.hpp"
std::string Problem061()//does not work yet, no idea wh... |
/*****************************************************************************************
Copyright 2011 <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:
1. Redistributions of source code mus... |
/**
*@desc: 用reactor模式练习服务器程序
*@author: zhangyl
*@date: 2016.11.23
*/
#include <iostream>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h> //for htonl() and htons()
#include <unistd.h>
#include <fcntl.h>
#include <sys/epoll.h>
#include <signal.h... |
// Standard C libraries
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <tgmath.h>
// Standard C++ libraries
#include <iostream>
#include <complex>
using namespace std;
// LSODE (FEX, NEQ, Y, T, TOUT, ITOL, RTOL, ATOL, ITASK,
// ISTATE, IOPT, RWORK, LRW, IWORK, LIW, JEX, MF)
// from ODEPA... |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
#include "Git.h"
#include <QDir>
#include <QProcess>
#include <QUuid>
#include <QMessageBox>
#include <QFile>
#include <QTextStream>
#include <stdexcept>
#include <iostream>
using namespace std::literals;
Git::Git(QString gitUrl, QString login, const QString& password)
: m_gitCredUrl([&]{
return std::move... |
// ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY 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 Licens... |
/**
* Copyright (C) 2019 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* Copyright (C) 2008 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... |
//===-- TCPSocket.cpp -----------------------------------------------------===//
//
// 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
//
//===---------------------------... |
// Copyright (c) 2019, Lawrence Livermore National Security, LLC.
// See top-level LICENSE file for details.
#include "query_common.h"
#include "caliper/cali-mpi.h"
#include "caliper/cali.h"
#include "caliper/cali-manager.h"
#include "caliper/tools-util/Args.h"
#include "caliper/reader/Aggregator.h"
#include "calip... |
/*
* Copyright (c) 2022, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "WordGame.h"
#include <AK/QuickSort.h>
#include <AK/Random.h>
#include <LibConfig/Client.h>
#include <LibCore/File.h>
#include <LibGUI/Application.h>
#include <LibGUI/MessageBox.h>
#include <LibGUI/Painter.h>
#include <... |
#include <iostream>
#include <stdlib.h>
#include <stdint.h>
#include "network.h"
#include "software_weight_definitions.h"
#include <math.h>
#include <sys/time.h>
#include "xcl2.hpp"
#include <chrono>
// select number of images to process from dataset (max 10K)
//
#define INPUT_IMAGES 10000
auto constexpr num_cu = 4;
... |
/* libs/graphics/effects/SkBlurMask.cpp
**
** Copyright 2006, 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/L... |
#include "globals.h"
#include "decoders/decoders.h"
#include "encoders/encoders.h"
#include "macintosh.h"
#include "crc.h"
#include "readerwriter.h"
#include "image.h"
#include "mapper.h"
#include "fmt/format.h"
#include "lib/encoders/encoders.pb.h"
#include "arch/macintosh/macintosh.pb.h"
#include <ctype.h>
static bo... |
//
// matrix.cpp
//
// Copyright (C) <NAME>
//
// This code remains the property of the copyright holder.
// The code contained herein is licensed for use without limitation
//
#include <iostream>
#include <sstream>
#include <ctime>
#include <leap/lml/io.h>
#include <leap/lml/vector.h>
#include <leap/lml/matrix.h>
#in... |
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
#include "Geometry/HcalTowerAlgo/interface/HcalDDDGeometry.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <algorithm>
#include <mutex>
static std::mutex s_fillLock;
HcalDDDGeometry::HcalDDDGeometry(const HcalTopology& topo)
: to... |
// -------------------------------------------------------------------
//
// leo_erasure: Erasure code library for Erlang
//
// Copyright (c) 2012-2015 Rakuten, Inc.
//
// This file is provided to you under the Apache License,
// Version 2.0 (the "License"); you may not use this file
// except in compliance with the Li... |
//
// Copyright (C) 2007 by sinamas <sinamas at users.sourceforge.net>
//
// 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 Foundation.
//
// This program is distributed in the hope tha... |
/*
* Copyright 2017 The Polycube Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2015-2020 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
#include "waymatrix.h"
#include "world.h"
#include <algorithm>
#include <limits>
using namespace Tempest;
WayMatrix::WayMatrix(World &world, const ZenLoad::zCWayNetData &dat)
:world(world) {
wayPoints.resize(dat.waypoints.size());
for(size_t i=0;i<wayPoints.size();++i){
wayPoints[i] = WayPoint(dat.waypoin... |
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <readline/history.h>
#include <readline/readline.h>
#include <fstream>
#include <iom... |
/* *****************************************************************************
Copyright (c) 2016-2021, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... |
/*--------------------------------------------------------------------------
* Sweep-based solver routine.
*--------------------------------------------------------------------------*/
#include <Kripke.h>
#include <Kripke/Subdomain.h>
#include <Kripke/SubTVec.h>
#include <Kripke/ParallelComm.h>
#include <Kripke/Grid... |
/*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
//
// Copyright (c) 2008-2020 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, mod... |
#include <mruby.h>
#include <mruby/data.h>
#include <mruby/string.h>
#include <mruby/array.h>
#include <Fl/Fl_Browser.h>
#include "macros.h"
#include "helpers.h"
#include "group.h"
#include "browser.h"
// FLTK::Browser#initialize
mrb_value mrb_fltk_browser_initialize_instance_method( mrb_state *mrb, mrb_value self )... |
/******************************************************************************
* Copyright (C) 2021, Advanced Micro Devices, Inc. All rights reserved.
*******************************************************************************/
/*! @file liblame_hegst.cc
* @brief Test application to validate hegst() using ... |
#include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
#define long int64_t
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
template <typename T, int NDIMS>
struct tensor {
static_assert(NDIMS >= 0, "NDIMS must be nonnegative");
p... |
/**
* \file dnn/test/common/task_executor.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 License is distributed on an
* ... |
// inverse_chi_squared_distribution_example.cpp
// Copyright <NAME> 2010.
// Copyright <NAME> 2010.
// 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)
// Example 1 of using inve... |
/*
* Copyright 2016 Gigatribe
*
* 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 i... |
/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
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, mer... |
/*
* H.265 video codec.
* Copyright (c) 2013-2014 struktur AG, <NAME> <<EMAIL>>
*
* Authors: struktur AG, <NAME> <<EMAIL>>
*
* This file is part of libde265.
*
* libde265 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the... |
// Copyright (C) 2017 Electronic Arts Inc. All rights reserved.
#include "video_encoder.hpp"
#include "recorder.hpp"
#include <iostream>
#include <opencv2/highgui.hpp>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavutil/imgutils.h>
}
bool VideoWriter::s_global_init =... |
#include "TalkAssistant.h"
#include "OTPClientManager.h"
#include "DisneyClient.cpp"
#include "json/json.hpp"
using namespace std;
using json = nlohmann::json;
TalkPath::TalkPath(TalkAssistant *talk_assistant, OTPClientManager *manager,
DisneyClient& client, uint32_t av_id) :
Operator(manager, ... |
#include <iostream> // for standard I/O
#include <string> // for strings
#include <iomanip> // for controlling float print precision
#include <sstream> // string to number conversion
#include BLIK_OPENCV_V_opencv2__core__core_hpp //original-code:<opencv2/core/core.hpp> // Basic OpenCV structures (cv::Mat, S... |
/**
PinGUI
Copyright (c) 2017 <NAME> <<EMAIL>>
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... |
#include <QLabel>
#include "FeatureDataSource.h"
#include "FeatureTableModel.h"
const int DEFAULT_TABLE_SIZE = 0;
const int SAMPLE_COLUMNS_OFFSET = 5;
const int ANNOTATION_COLUMN_OFFSET = 4;
const QVariant TABLE_DEFAULT_VALUE = QVariant("0");
namespace ov {
FeatureTableModel::FeatureTableModel(QObject *parent, Fea... |
/*
* Copyright (c) 2013-2018, The University of Oxford
* 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 ... |
#include <LibDraw/Painter.h>
#include <LibDraw/StylePainter.h>
void StylePainter::paint_tab_button(Painter& painter, const Rect& rect, bool active, bool hovered, bool enabled)
{
Color base_color = Color::WarmGray;
Color highlight_color2 = Color::from_rgb(0xe8e7e4);
Color shadow_color1 = Color::from_rgb(0x8... |
/*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
/*
MIT LICENSE
Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
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... |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2016-21, Lawrence Livermore National Security, LLC
// and RAJA project contributors. See the RAJA/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... |
/*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 <NAME>
* Copyright (C) 2012 <NAME>
*/
#... |
#include "aby3/sh3/Sh3Encryptor.h"
#include "aby3/sh3/Sh3BinaryEvaluator.h"
#include "aby3/Circuit/CircuitLibrary.h"
#include "cryptoTools/Network/IOService.h"
#include "cryptoTools/Common/Log.h"
#include <random>
#include "cryptoTools/Crypto/PRNG.h"
using namespace oc;
using namespace aby3;
//
//void createBinarySha... |
#include "TextReportElement6DCollector.hpp"
#include <assert.h>
#include <boost/detail/limits.hpp>
#include "application/output/recordsets/TextReportRecordset.hpp"
#include "domain/algorithms/messages/ModelStateUpdateMessage.hpp"
#include "domain/analyses/NumericalModel.hpp"
namespace aaoc = axis::application::output:... |
// ======================================================================== //
// Copyright 2019 <NAME> //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// you ... |
#include "types.h"
#include "eigen3/Eigen/Dense"
///
/// \brief Ajusta una elipsoide a una nube de puntos.
/// \param data Nube de puntos, potencialmente con ruido.
/// \return Matriz de corrección que, al multiplicar cada punto, da una esfera de radio 1.
///
QMatrix4x4 FitAlignedEllipsoid(const std::vec... |
//==============================================================================
// This file is part of the SPNC project under the Apache License v2.0 by the
// Embedded Systems and Applications Group, TU Darmstadt.
// For the full copyright and license information, please view the LICENSE
// file that was distributed... |
/*! \file main.cpp
* \brief Elastic 3d collisions
* \author <NAME>
*/
#include "incppect/incppect.h"
#include <cmath>
#include <vector>
#include <cstdlib>
using incppect = Incppect<false>;
inline float frand() { return (float)(rand())/RAND_MAX; }
struct Ball {
float r = 0.0f;
float m = 0.0f;
floa... |
/***************************************************************************************
* A set of ytGraph drawing functions
* Platform: Arduino / ESP
*
* - supports M5Stack and TFT_eSPI()
* - fully scalable
* - scroll flicker free
* - dynamic x axis
* - up to 16 channels
* -
*
* <NAME> 2021
* https:... |
// Warpsharp.cpp
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <Bitmap.h>
#include <Message.h>
#include "bitmap_compression.h"
#include "bitmap_support.h"
#include "blending.h"
#include "defines.h"
#include "support.h"
#include "BoolProperty.h"
#include "CommonPropertyIDs.h"
#include "FilterFact... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <cmath>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <shader.h>
#include <camera.h>
#include <stb_image.h>
#include <mesh.h>
#include <model.h>
unsigned int colorIndex= 1;
bool draw... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: NodesTestData.cpp (nodes_test)
// Authors: <NAME>, <NAME>, <NAME>
//
/////////////////////////////////////////////////////////////////////////////////////... |
/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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... |
/* ************************************************************************
* file: autowiz.c Part of CircleMUD *
* Usage: self-updating wizlists *
* Written by <NAME> *
* All Rights Reserved... |
#include "LoadTerrainModel.h"
#include <stb_image.h>
#include <stb_image_write.h>
std::string TerrainLoader::createTerFileName(std::string heightmapFilename)
{
std::string terFileName = heightmapFilename;
terFileName.erase(terFileName.size() - 4, 4);
terFileName += TER_EXTENSION;
return terFileName;... |
/*
Desc:
FC Op for CNN in Xilinx FPGA.
Note:
Platform: ZCU102
Toolkit: SDx 2018.1
Date:
07/04/2018
Author:
<NAME>
*/
#include "sds_lib.h"
#include "../../include/fpga/fc_fpga.h"
#include "../../include/common.h"
#include "../../include/utils/che... |
#include "modules/input_handling/input_handling.h"
#include "modules/shared_memory_operations/shared_memory_operations.h"
#include "modules/semaphore_operations/semaphore_operations.h"
#include "modules/md5_hashing/md5_hashing.h"
#include <unistd.h>
#include <sys/wait.h>
using namespace std;
unsigned int N=0; /* Numb... |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Redistribution and use of this software 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 ... |
/*
Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
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; version 2 of the License.
This program is distributed i... |
// Copyright 2022 PingCAP, Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... |
#include "pch.h"
#include "App_Misc_GameInstallationDetector.h"
#include "XivAlexanderCommon/Utils_Win32_Process.h"
static std::string TestPublisher(const std::filesystem::path& path) {
// See: https://docs.microsoft.com/en-US/troubleshoot/windows/win32/get-information-authenticode-signed-executables
constexpr aut... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmapProcState.h"
#include "SkColorPriv.h"
#include "SkFilterProc.h"
#include "SkPaint.h"
#include "SkShader.h" // for tilemodes
#include "SkUtilsArm.h"
#if !S... |
/** @file dji_gimbal_module.cpp
* @version 4.0.0
* @date November 2019
*
* @brief Implementation of gimbal module for payload node
*
* @Copyright (c) 2019 DJI
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <iomanip>
using namespace std;
//FUNCTIONS
void window_quality();
void seq_reader();
void seq_show();
void quality_reader();
void quality_show();
void vertex_generator();
void edge_generator();
void clique_family(... |
// fixed-point implementation
#include "raycaster_fixed.h"
#include "raycaster_data.h"
#include "raycaster_tables.h"
// (v * f) >> 8
uint16_t RayCasterFixed::MulU(uint8_t v, uint16_t f)
{
const uint8_t f_h = f >> 8;
const uint8_t f_l = f % 256;
const uint16_t hm = v * f_h;
const uint16_t lm = v * f_l;... |
#include "GY953.h"
#define GY953_inRange(x, low, high) ((high >= x) && (x >= low))
#define GY953_SETREG 0x41
#define GY953_INTREG 0xC1
#define GY953_REFRESH_RATE_50 0x73
#define GY953_REFRESH_RATE_100 0x74
#define GY953_REFRESH_RATE_200 0x75
static volatile bool dataReady = false;
static byte buffer[41] = {... |
#include <iostream>
#include <dirent.h>
#include <util/StopWatch.hpp>
#include <rdf/RDFParserNtriples.hpp>
#include "../snapshot/combined_triple_iterator.h"
#include "evaluator.h"
#include "../simpleprogresslistener.h"
void Evaluator::init(string basePath, string patchesBasePatch, int startIndex, int endIndex, Progr... |
/**
* \file PathTree_bb.cc
* \brief Implementation of the Pathtree class
* \author <NAME>
*/
#include <map>
#include <sstream>
#include "cuddObj.hh"
#include "PathTree_bb.h"
#include "Analyzer.h"
#include "Pr.h"
void PathTree_bb::createBDDVars(BasicBlock * Start, std::set<BasicBlock*> * Pr, std::map<BasicBlock*,... |
#include <sys/mman.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <map>
using namespace std;
typedef unsigned long ul;
typedef uint64_t u64;
struct entry {
long key, addr, size;
};
#define ENTRIES_PER_BUCKET 8
struct bucket {
struct entry ... |
// 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 "build/build_config.h"
#if defined(OS_WIN)
#include <windows.h>
#include <objidl.h>
#include <mlang.h>
#endif
#include "content/renderer/re... |
/*Copyright (C) 2009 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This program is distributed i... |
#include <cassert>
#include <stdio.h>
#include <mutex>
#include <string>
#include <vector>
#include "pkcs11.h"
static CK_FUNCTION_LIST_PTR p11 = NULL_PTR;
extern "C" void *C_LoadModule(const char *name, CK_FUNCTION_LIST_PTR_PTR);
extern "C" CK_RV C_UnloadModule(void *module);
typedef std::vector<CK_BYTE> BYTE_VEC;... |
#include "Lcd.h"
#include "core/Debug.h"
#include "hal/Delay.h"
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/spi.h>
#include <libopencm3/stm32/dma.h>
#include <cmath>
#include <algorithm>
#define LCD_PORT GPIOB
#define LCD_CS GPIO1... |
//
// This file is part of nunn Library
// Copyright (c) <NAME> (<EMAIL>)
// All rights reserved.
// Licensed under the MIT License.
// See COPYING file in the project root for full license information.
//
/* -------------------------------------------------------------------------- */
#include "titanic.h"
/* -... |
/*
* File demo/example.cpp part of the SimpleJSON Library Demo - http://mjpa.in/json
*
* Copyright (C) 2010 <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... |
/**
* Copyright (c) 2009 Carnegie Mellon University.
* 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... |
/************************************************************************
Copyright 2021, eBay, 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
https://www.apache.org/licenses/LICENSE-2.0
... |
#include "Application.h"
#include "Panel.h"
#include "PanelAbout.h"
#include "PanelConsole.h"
#include "PanelInspector.h"
#include "PanelConfig.h"
#include "PanelHierarchy.h"
#include "PanelTimeManagement.h"
#include "PanelSaveScene.h"
#include "PanelLoadScene.h"
#include "PanelAssets.h"
#include "imGUI/imgui.h"
#inclu... |
/*
* Copyright (C) 2017 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... |
/*
* Copyright (C) 2015-2018 <NAME> <<EMAIL>>
* Copyright (C) 2019-2022 <NAME>, Barkhausen Institut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the fol... |
#include "StdAfx.h"
#include "UIComboBox.h"
#include "UITextureMaster.h"
#include "UIScrollBar.h"
#define CB_HEIGHT 23.0f
CUIComboBox::CUIComboBox()
{
AttachChild (&m_frameLine);
AttachChild (&m_text);
AttachChild (&m_list_frame);
m_list_frame.AttachChild(&m_list_box);
m_iListHeight = 0;
... |
/*
* Copyright (C) 2019 The Android Open Source Project
* 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, t... |
#include "single-gpu/depth-placement.hpp"
#include "common/spmd-tree.hpp"
#include "common/array-analysis.hpp"
#include <cassert>
#include "rose.h"
// Fix a g++ bug: some header (probably iostream) define 'used' to nothing
#undef used
#define DEBUG 1
bool DepthPlacement::isParallel(SPMD_Loop * loop) {
ScopTree ... |
/***** Vision Connection Architecture Query *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
********... |
//===- InterpreterPass.cpp ------------------------------------------------===//
//
// The ONNC Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "InterpreterPass.h"
#include <onnc/IR/Compute/Initializer.h... |
#include "../example_common.h"
using namespace put;
using namespace ecs;
namespace pen
{
pen_creation_params pen_entry(int argc, char** argv)
{
pen::pen_creation_params p;
p.window_width = 1280;
p.window_height = 720;
p.window_title = "complex_rigid_bodies";
p.window_sa... |
#include <stdexcept>
#include <string>
#include "OnlineDB/Oracle/interface/Oracle.h"
#include "OnlineDB/EcalCondDB/interface/DCUCCSDat.h"
#include "OnlineDB/EcalCondDB/interface/RunTag.h"
#include "OnlineDB/EcalCondDB/interface/RunIOV.h"
using namespace std;
using namespace oracle::occi;
DCUCCSDat::DCUCCSDat() {
m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.