text stringlengths 3.08k 12.5k |
|---|
//===- ConvertGPULaunchFuncToVulkanLaunchFunc.cpp - MLIR conversion pass --===//
//
// 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
//
//===---------------------------... |
/////////////////////////////////////////////////////////////////////////////
// Name: src/gtk/scrolwin.cpp
// Purpose: wxScrolledWindow implementation
// Author: <NAME>
// Modified by: <NAME>
// <NAME>: removed 90% of duplicated common code
// Created: 01/02/97
// Copyright: (c) <NAM... |
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2019-2022 Xilinx, Inc. All rights reserved.
*/
// This file is delivered with core library (libxrt_core), see
// core/pcie/windows/CMakeLists.txt. To prevent compilation of this
// file from importing symbols from libxrt_core we define this source
// file to... |
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... |
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFPageDocumentHelper.hh>
#include <qpdf/QPDFPageObjectHelper.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/Buffer.hh>
#include <qpdf/QPDFWriter.hh>
#include <qpdf/QIntC.hh>
static char const* whoami = 0;
void usage()
{
... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
angle = 0;
oneShot = false;
pdfRendering = false;
ofBackground(225,225,225);
ofSetVerticalSync(true);
font.loadFont("frabk.ttf", 24, true, false, true);
dropZoneRects.assign(3, ofRectangle());
images... |
#include <gtest/gtest.h>
#include "sys.h"
TEST(StringTest, isEmptyWorks) {
String str;
ASSERT_TRUE( str.isEmpty() );
}
TEST(StringTest, setFromStopwatchWorks) {
String str;
str.setFromStopwatch(60 * 60 * 24);
ASSERT_STREQ("1 day, 0 hour", str);
str.setFromStopwatch(0);
ASSERT_STREQ("-", str);... |
#include "Blech.h"
#define CheckOne(ID) \
if (nevent != 1) { \
printf("bad event count %d != 1\n", nevent); \
exit(1); \
} \
if (eventarray[0].id != ID) { \
printf("bad event %d != " #ID "\n", eventarray[0].id); \
exit(1); \
}
struct {
int id, nvalues;
char name... |
#include "../ntfmt.hpp"
#include "../ntfmt_string.hpp"
#include <stdio.h>
#define BOOST_TEST_MODULE float_test
#include "test_main.hpp"
BOOST_AUTO_TEST_CASE(float_f_basic) {
TEST_FORMAT( 0.0, "%f");
//TEST_FORMAT(-0.0, "%f"); // result is difference between msvcrt and newlib
TEST_FORMAT( 0.5, "%f");
TE... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <PacketQueue.h>
#include <Types.h>
#include <iostream>
#include <Port.h>
#include <Comms.h>
#include <Message.h>
#include <PacketHandler.h>
PacketQueue::PacketQueue(){
}
void PacketQueue::addPacket(packet_t p) {
fflush(stdout);
//try{
//cout<< Comms::serviceTable.getService(p.packetHe... |
//
// "$Id: Fl_Tree_Item_Array.cxx,v 1.1 2011/12/10 04:53:51 rbsheth Exp $"
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <FL/Fl_Tree_Item_Array.H>
#include <FL/Fl_Tree_Item.H>
//////////////////////
// Fl_Tree_Item_Array.cxx
//////////////////////
//
// Fl_Tree -- This file is part of the F... |
// RUN: %clang_cc1 %s -std=c++11 -triple=x86_64-linux -finline-functions -emit-llvm -disable-llvm-optzns -o - | FileCheck %s --check-prefix=CHECK --check-prefix=SUITABLE
// RUN: %clang_cc1 %s -std=c++11 -triple=x86_64-linux -finline-hint-functions -emit-llvm -disable-llvm-optzns -o - | FileCheck %s --check-prefix=CHECK... |
/*
* Copyright 2021 Assured Information Security, 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 a... |
// Tencent is pleased to support the open source community by making Mars available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the Licens... |
/*********************************************************\
* Copyright (c) 2012-2021 The Unrimp Team
*
* 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 wit... |
#include "../../include/flu.h"
#include "../common/test_utils.h"
/*****************************************************
*
* Test suite for Flu class
*
*****************************************************/
// Tests
bool flu_generation();
bool flu_transitions();
bool flu_testing();
int main()
{
test_pass(flu_... |
/*
*/
#include <stdio.h>
#include <stdlib.h>
#include <ImfInputFile.h>
#include <ImfChannelList.h>
#include <ImfFrameBuffer.h>
#include <ImfRgbaFile.h>
#include <half.h>
#include <assert.h>
using namespace Imf;
using namespace Imath;
static bool ReadEXR(const char *name, float *&rgba, int &xRes, int &yRes, bool &has... |
/**
* 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... |
/*
* The sailboat demo.
*
* Part of the Cyclone physics system.
*
* Copyright (c) Icosagon 2003. All Rights Reserved.
*
* This software is distributed under licence. Use of this software
* implies agreement with all terms and conditions of the accompanying
* software licence.
*/
#include <cyclone... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <vector>
#include "Rtree.h"
#define DATASET_SIZE 1864620
// #define DATASET_SIZE 10000
#define DIMENTION 2
#define ELIPSON 1.5
#define MIN_POINTS 4
using namespace std;
struct Rect {
Rect() {}
long double... |
#include "demojson.h"
#include "demofile/demotypes.h"
#include <algorithm>
bool DemoJsonReader::ReadDemoHeader(base::JsonReaderObject& reader, demoheader_t& header)
{
base::JsonReaderObject object = reader.ReadObject("demoheader");
object.ReadString("demofilestamp", header.demofilestamp, sizeof(header.demofil... |
/*
* Copyright 2021, Synopsys, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-3-Clause license found in
* the LICENSE file in the root directory of this source tree.
*
*/
#include "face_detect_module.h"
#include <algorithm>
#include <cmath>
#include "tests_aux.h"
#include "model/util.h"
#... |
#include "Client.h"
Client::Client() : m_listenThread(&Client::Listen, this), m_connected(false) {}
Client::~Client() { m_socket.unbind(); }
bool Client::Connect() {
if (m_connected) return false;
m_socket.bind(sf::Socket::AnyPort);
std::cout << "Bound client to port: " << m_socket.getLocalPort() << std::endl;
... |
// Copyright 2017 <NAME> <<EMAIL>>
#include "thermal/models/pcsensor/temper1f.h"
#include <string>
#include <json.hpp>
#include "thermal/log.h"
#include "thermal/usb-sensor.h"
// Device constants.
#define CONFIG_ID 0x01
#define INTERFACE1 0x00
#define INTERFACE2 0x01
#define RESPONSE_LEN 8
#define TEMP_ENDPOINT 0x82... |
//
// Copyright (c) 2017-2018 Advanced Micro Devices, Inc. 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 deal
// in the Software without restriction, including without limitation the rig... |
#include <RDGeneral/test.h>
#include "RDValue.h"
#include "RDProps.h"
#include "Invariant.h"
#include "StreamOps.h"
#include <limits>
#include <vector>
#include <list>
#include <map>
#include <string>
#include <iostream>
#include <fstream>
#include <boost/math/special_functions/fpclassify.hpp>
using namespace RDKit;
... |
#pragma once
#include "file.hpp"
#include <array>
#include <cstdint>
#include <iostream>
#include <random>
static const std::string DeviceSignature = "PlotFS\nby: <NAME> <<EMAIL>> (@m3u8)\nDonate Chia to: xch1hsyyclxn2v59ysd4n8nk577sduw64sg90nr8z26c3h8emq7magdqqzq9n5\n";
class DeviceHandle : public FileHandle {
pri... |
#include "decoder_utils.h"
#include <algorithm>
#include <cmath>
#include <limits>
std::vector<std::pair<size_t, float>> get_pruned_log_probs(
const std::vector<double> &prob_step,
double cutoff_prob,
size_t cutoff_top_n) {
std::vector<std::pair<int, double>> prob_idx;
for (size_t i = 0; i < prob_step... |
#include "globals.h"
#include "flags.h"
#include "sector.h"
#include "imagereader/imagereader.h"
#include "image.h"
#include "proto.h"
#include "lib/config.pb.h"
#include "imagereader/imagereaderimpl.h"
#include "fmt/format.h"
#include <algorithm>
#include <iostream>
#include <fstream>
// reader based on this partial ... |
#include <Game.h>
#include <Constants.h>
#include <Ball.h>
#include <string>
Game::Game()
{
//Initialize the variables.
playing = false;
gameOver = false;
//Load the textures.
bg.loadFromFile("Assets/Textures/bg.png");
playerTexture.loadFromFile("Assets/Textures/sprites.png");
//Load the ... |
#include <library/binsaver/util_stream_io.h>
#include <library/binsaver/mem_io.h>
#include <library/binsaver/bin_saver.h>
#include <library/unittest/registar.h>
#include <util/stream/buffer.h>
#include <util/generic/map.h>
struct TBinarySerializable {
ui32 Data = 0;
};
struct TNonBinarySerializable {
ui32 Da... |
#include "HTTP_message.hpp"
#include "utils.hpp"
#include <iostream>
HTTP_message::HTTP_message(std::string& raw_message, unsigned int dir) {
message = raw_message;
direction = dir;
decompileMessage();
}
/**
* deconstruct the raw header in a map with key (option) -> value
*/
void HTTP_message::decompileHeader() ... |
/** \file
*
* \author <NAME> -- INFN Bari
*/
#include "RecoLocalMuon/GEMRecHit/plugins/GEMRecHitProducer.h"
#include "Geometry/GEMGeometry/interface/GEMEtaPartition.h"
#include "DataFormats/MuonDetId/interface/GEMDetId.h"
#include "DataFormats/GEMRecHit/interface/GEMRecHit.h"
#include "RecoLocalMuon/GEMRecHit/int... |
#include <ros_hats/nodes/HatNode/HatNodeProcess.h>
using namespace eros;
HatNodeProcess::HatNodeProcess() {
}
HatNodeProcess::~HatNodeProcess() {
}
Diagnostic::DiagnosticDefinition HatNodeProcess::finish_initialization() {
Diagnostic::DiagnosticDefinition diag;
return diag;
}
void HatNodeProcess::reset() {
}
Di... |
#include "chunk_renderer.h"
#include "../client_config.h"
#include "../gl/gl_errors.h"
#include <common/world/world_constants.h>
#include <numeric>
namespace {
/**
* @brief Find the index of a chunk in a chunk renderable list given its position
*
* @param position The position of the chunk to find
... |
#include "ModBusSlave.h"
ModBusSlave::ModBusSlave(
volatile uint8_t *ubrrh, volatile uint8_t *ubrrl,
volatile uint8_t *ucsra, volatile uint8_t *ucsrb,
volatile uint8_t *ucsrc, volatile uint8_t *udr, bool crcBigEndian) :
_ubrrh(ubrrh), _ubrrl(ubrrl),
_ucsra(ucsra), _ucsrb(ucsrb),
_ucsrc(ucsrc), _udr(ud... |
/*
Solving problems in 9x9 normal sudoku game rules;
input like this:
0 0 8 0 0 0 2 0 0
0 3 0 8 0 2 0 6 0
7 0 0 0 9 0 0 0 5
0 5 0 0 0 0 0 1 0
0 0 4 0 0 0 6 0 0
0 2 0 0 0 0 0 7 0
4 0 0 0 8 0 0 0 6
0 7 0 1 0 3 0 9 0
0 0 1 0 0 0 8 0 0
output like this:
6 1 8 7 3 5 2 4 9
5 3 9 8 4 2 7 6 1
7 4 2 6 9 1 3 8 5
3 5 7 4 2 6 9 1 ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "InkThread.h"
#include "inkcpp.h"
#include "InkRuntime.h"
#include "TagList.h"
#include "Choice.h"
#include "ink/runner.h"
// Unreal includes
#include "Internationalization/Regex.h"
UInkThread::UInkThread() : mbHasRun(false), mn... |
/*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 <NAME>.
This file is part of the Hork Engine Source Code.
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, in... |
#include "Fade.h"
FadeMode currentFade = NONE;
uint16_t fadeBrightness = 0;
uint16_t sunsetMaximumBrightness = 0;
Ticker fadeTicker;
Ticker hasBeenStartedResetTicker;
bool hasBeenStarted = false;
bool hasSunsetTime = false;
void initFade()
{
configTime(Config.timeZone * 3600, Config.summerTime * 3600, "pool.ntp.org... |
/* -*- Mode: C++; -*- */
/* (c) 2012 <NAME> */
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "PCH-rpgcraft.h"
#include "x-gpu-ifc.h"
#include "v-float.h"
#include "ajek-script.h"
#include "Scene.h"
#include "TileMapLayer.h"
// Probably need some sort of classification system here.
// Some terrains may change over time, such as grow moss after being crafted.
// - Maybe better handled as a generic ... |
#include "flow_forward_shift.h"
#include "cuda_common.h"
#include "cuda_arithmetic.h"
#include "cuda_renderer.h"
Flow_forward_shift::Flow_forward_shift(at::Tensor grid,
int nChannels_image,
int kernel_radius,
... |
/* Software License Agreement (BSD License)
*
* Copyright (c) 2014, <NAME> (<EMAIL>)
*
* 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,... |
#include <metahook.h>
#include <capstone.h>
#include "exportfuncs.h"
#include "privatefuncs.h"
cl_exportfuncs_t gExportfuncs;
mh_interface_t *g_pInterface;
metahook_api_t *g_pMetaHookAPI;
mh_enginesave_t *g_pMetaSave;
IFileSystem *g_pFileSystem;
bool g_IsClientVGUI2 = false;
bool g_IsSCClient = false;
HMODULE g_hClie... |
#include <iostream>
#include "fechahistorica.h"
#include <sstream>
#include <string>
#include <algorithm>
#include <cassert>
using namespace std;
#define fec m_pair.first
#define acs m_pair.second
// Constructor por defecto
FechaHistorica::FechaHistorica() {fec = 0;}
// Constructor con parámetros
FechaHistorica::Fec... |
/*
This file is part of VROOM.
Copyright (c) 2015-2018, <NAME>.
All rights reserved (see LICENSE).
*/
#include "output_json.h"
rapidjson::Document to_json(const solution& sol, bool geometry) {
rapidjson::Document json_output;
json_output.SetObject();
rapidjson::Document::AllocatorType& allocator = json_outpu... |
#include "tabGen.h"
// Returns a random integer 0 >= x > 30 to be converted into a PentaScale Position
int randPos()
{
return (int)(((double)(rand()) / RAND_MAX) * 35);
}
// Returns a random integer 0 >= x > 22 to be converted to a guitar fret
int randFret()
{
return (int)(((double)(rand()) / RAND_MAX) * 22);
}
//... |
//===-- ImportedFunctionsInliningStats.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
//
//===---------------------------... |
#include "SSLSocket.h"
#include "EventDispatch.h"
SSL_CTX *m_ssl_context;
SSL_CTX* InitServerCTX(void)
{
const SSL_METHOD *method;
SSL_CTX *ctx;
SSL_library_init();
OpenSSL_add_all_algorithms(); /* load & register all cryptos, etc. */
SSL_load_error_strings(); /* load all error... |
#include "Program.h"
#include <assert.h>
using namespace tdogl;
Program::Program(const std::vector<Shader>& shaders) :
_object(0)
{
if (shaders.size() <= 0)
{
throw std::runtime_error("No shaders provided to create program");
}
/*/ // 10/26/2016
Program Objects[2.11.3] [2.14.3]
uint CreateProgram(void);... |
/*
* Copyright (c) 2013 Regents of the University of California. 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
* ... |
#include "ChunkMeshBuilder.h"
#include "ChunkSection.h"
#include "ChunkMesh.h"
#include "../Block/BlockData.h"
#include "../Block/BlockDatabase.h"
#include <vector>
#include <iostream>
#include <cassert>
namespace
{
const std::array<GLfloat, 12> frontFace {
0, 0, 1,
1, 0, 1,
1, 1, 1,
0, 1, 1,
};
co... |
//
// threadcontrol.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 <chrono>
#include <leap/threadcontrol.h>
#include <leap/concurrentqueue.h>
#include <leap/util.h>
using n... |
#include "Engine/Core/BlockDescriptor.hpp"
#include "Engine/Core/TextureAtlas.hpp"
#include "Engine/Core/World.hpp"
#include "Engine/GUI/Button.hpp"
#include "Engine/GUI/GUIRoot.hpp"
#include "Engine/GUI/Window.hpp"
#include "Engine/Core/JSONSerializer.hpp"
#include <SFML/Graphics.hpp>
#include <cassert>
#include <... |
//
// main.cpp
// K-dTree
//
// Created by <NAME> on 31/03/2021.
// Copyright © 2021 <NAME>. All rights reserved.
//
#include <iostream>
using namespace std;
const int k = 2;
// A structure to represent node of kd tree
struct Node
{
int point[k]; // To store k dimensional point
Node *left, *right;
};
/... |
#include "Tools/Exception/exception.hpp"
#include "Module/Encoder/NO/Encoder_NO.hpp"
#include "Module/Encoder/AZCW/Encoder_AZCW.hpp"
#include "Module/Encoder/Coset/Encoder_coset.hpp"
#include "Module/Encoder/User/Encoder_user.hpp"
#include "Encoder.hpp"
using namespace aff3ct;
using namespace aff3ct::factory;
const... |
// ShaderFunctions.cpp
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h> // malloc, free
#endif
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <GL/glew.h>
#if 1
... |
#include <PCU.h>
#include <ROL_Algorithm.hpp>
#include <ROL_Bounds.hpp>
#include <ROL_LineSearchStep.hpp>
#include <ROL_Objective.hpp>
#include <ROL_ParameterList.hpp>
#include <ROL_Stream.hpp>
#include <Teuchos_YamlParameterListHelpers.hpp>
#include "arrays.hpp"
#include "adjoint_objective.hpp"
#include "control.hpp"
... |
#include <iostream>
#include <chrono>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <arpa/inet.h>
using namespace std::chrono;
using namespace std::chrono_literals;
using fractions = duration<std::int64_... |
/*
* Copyright (C) 2017 <NAME> <EMAIL>
* Source code 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 or in file COPYING-APACHE-2.0.txt
*
* U... |
//************************************************************************
// Copyright (C) 2020 Massachusetts Institute of Technology
// SPDX License Identifier: MIT
//
// File Name:
// Program: Common Evaluation Platform (CEP)
// Description:
// Notes:
//
//*********************************... |
/*
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "combatsim.h"
#include "utils.h"
namespace {
double damageTypeModifier(int damageType, int unitSize) {
if (damageType == 1) {... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <limits>
#include <pup.h>
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "Options/Options.hpp"
#include "Parallel/CharmPupable.hpp"
#include "PointwiseFunctions/Elasticity/ConstitutiveRelations/C... |
#include <iostream>
#include <iomanip>
#include <algorithm>
#include "outputLine.h"
#include "ftpServer.h"
#ifdef NXDK
#include <lwip/opt.h>
#include <lwip/arch.h>
#include <lwip/errno.h>
#include <lwip/debug.h>
#include <lwip/dhcp.h>
#include <lwip/init.h>
#include <lwip/netif.h>
#include <lwip/sys.h>
#include <lwip/... |
/*
Copyright (c) 2018, <NAME>. (<EMAIL>)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated doc... |
#include <GL/glut.h>
#include <math.h>
GLUnurbsObj *pNurb = NULL;// NURBS对象指针
GLint nNumPoints = 4; // 4 X 4
GLfloat ctrlPoints[4][4][3]= {{{ -6.0f, -6.0f, 0.0f}, // u = 0, v = 0
{ -6.0f, -2.0f, 0.0f}, // v = 1
{ -6.0f, 2.0f, 0.0f}, // v = 2
{ -6.0f, 6.0f, 0.0f}}, //... |
/*
wiringPi.cpp - Mock implementation of the wiringPi header for integration testing.
Revision 0
Features:
-
Notes:
-
2018/06/04, <NAME>
*/
#include "wiringPi.h"
#include <fstream>
#include <memory>
#include <iostream>
WiringTimer::WiringTimer() {
// Defaults.
triggerCnt = 0;
isrcb_0 =... |
#include "ring.h"
#include <assert.h>
#include <cmath>
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <map>
Lattice::Lattice(std::string filename) {
std::ifstream infile;
infile.open(filename.c_str());
if(!infile) std::cout<<"Error: ... |
/**
\file main.cpp
\author <EMAIL>
\copyright Valiant's Universal Circuit Construction Optimized for Private Function Evaluation
Copyright (C) 2016 Engineering Cryptographic Protocols Group, TU Darmstadt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Af... |
/**
* Copyright (c) 2007-2012, <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 conditi... |
/* --------------------------------------------------------------------------
*
* File CBullet.cpp
* Description Game Bullet
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSoft. All r... |
#include <iostream>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
/*Hopefully, a working ROV simulator!
*Use w,a,s,d to controll your ROV!
*You are moving throughout a 10 x 10 grid and picking up items
*Use z to pick up an item and x to drop it!
*/
class Rov //ROV class, used to cr... |
// DynaMix
// Copyright (c) 2013-2017 <NAME>, <NAME>
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <dynamix/dynamix.hpp>
#include <iostream>
using namespace std;
//[tutorial_mutation_A
/*`
For this tutorial let's beg... |
////////////////////////////////////////////////////////////////////////////////
// FreeSteel -- Computer Aided Manufacture Algorithms
// Copyright (C) 2004 <NAME> and <NAME>.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as publis... |
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
// Win32_COMClassAutoEmulator.cpp
//
/////////////////////////////////////////////////
#include "precomp.h"
#include "Win32_COMClassAutoEmulator.h"
#include <cregcls.h>
Win32_COMClassAutoEmulator MyWin32_COMClassAutoEmulator ( Win32_COM_CLAS... |
//
// witmotionController.cpp
// Created by <NAME> on 21/12/20.
//
#include "witmotionController.h"
witmotionController::witmotionController() {
}
witmotionController::~witmotionController() {
}
//----------------------------------------------------- setup.
void witmotionController::setup() {
getDeviceIDs(... |
//===--- EpilogueARCAnalysis.cpp ------------------------------------------===//
//
// 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... |
//===--- Randstruct.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 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/hpx.hpp>
#include <hpx/hpx_init.hpp>
#include <hpx/lcos/future.hpp>
#include <hp... |
// SPDX-License-Identifier: BSD-3-Clause
/* Copyright 2022, Intel Corporation */
#include <map>
#include <numeric>
#include <vector>
#include <rapidcheck.h>
#include "env_setter.hpp"
#include "mpmc_queue.h"
#include "thread_helpers.hpp"
#include "unittest.hpp"
namespace
{
auto make_mpmc_queue = make_instance_ctor(m... |
#include "dote.h"
#include "config_parser.h"
#include "syslog_logger.h"
#include "console_logger.h"
#include "log.h"
#include "pid_file.h"
#include "ip_lookup.h"
#ifdef __linux__
#include "vyatta.h"
#include "vyatta_check.h"
#endif
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#ifdef __linux__
#includ... |
/*
* EDDL Library - European Distributed Deep Learning Library.
* Version: 1.0
* copyright (c) 2021, Universitat Politècnica de València (UPV), PRHLT Research Centre
* Date: November 2021
* Author: PRHLT Research Centre, UPV, (<EMAIL>), (<EMAIL>)
* All rights reserved
*/
#include <cstdio>
#include <cstdlib>
#include ... |
#include "asm_translator.h"
const char *fore_block = "%include 'handy/handy.inc'\n"
"\n"
"segment .text\n"
"\tglobal _main\n"
"\n"
"_main:\n"
"\tpush\tesi\n"
... |
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <algorithm>
#include <string>
#include "firebase/app.h"
#include "firebase/remote_config.h"
#include "firebase/util.h"
#include "config_helper.h"
#include <direct.h>
#include <windows.h>
static bool quit = false;
std::string unicode2Ascii(const s... |
// MidPointPasswordFilterEncryptor.cpp : Defines the entry point for the console application.
/**
*
* Licensed under the Microsoft Public License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licen... |
//----------------------------------------------------------------------------
/** @file GoSafetyCommands.cpp
See GoSafetyCommands.h
*/
//----------------------------------------------------------------------------
#include "SgSystem.h"
#include "GoSafetyCommands.h"
#include "GoBensonSolver.h"
#include "GoBoard.h... |
//
// WOZ.cpp
// Clock Signal
//
// Created by <NAME> on 23/04/2018.
// Copyright 2018 <NAME>. All rights reserved.
//
#include "WOZ.hpp"
#include "../../Track/PCMTrack.hpp"
#include "../../Track/TrackSerialiser.hpp"
#include <cstring>
using namespace Storage::Disk;
WOZ::WOZ(const std::string &file_name) :
fi... |
//
// Simu5G
//
// Authors: <NAME>, <NAME>, <NAME> (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are part of the software itself,... |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar_unlocked()
#define pc(x) putchar_unlocked(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<type... |
/*
* Copyright (C) 2020-2021 German Aerospace Center (DLR-SC)
*
* Authors: <NAME>
*
* Contact: <NAME> <<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/... |
/*
* Based on
* Display.cpp - C64 graphics display, emulator window handling
* Display_SDL.i - C64 graphics display, emulator window handling,
* SDL specific stuff
*
* Frodo (C) 1994-1997,2002 <NAME>
*/
#include <SDL.h>
#include <signal.h>
#include <sys/time.h>
// Display surface
static... |
#include "menu.h"
#include "gui/element.h"
#include "gui/list.h"
#include "gui/layout.h"
#include "game.h"
#include "util/timer.h"
#include "util/levels.h"
#include "objects/asteroids.h"
#include "objects/ship.h"
#include "objects/particles.h"
#define LOG_TAG "AR_menu"
#include "util/logs.h"
Menu::Menu()
{
layout... |
// A module for keeping parents who have no driver in FBA
#include "burnint.h"
static unsigned char ParentReset = 0;
static struct BurnInputInfo ParentInputList[] = {
{"Reset" , BIT_DIGITAL , &ParentReset , "reset" },
};
STDINPUTINFO(Parent);
static int ParentInit()
{
... |
// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... |
/*
* httpget.cc: File download via HTTP GET request
*
* Copyright (C) 2003-2017 by <NAME>
*
* 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... |
#include "llvm/Pass.h"
#include "llvm/Module.h"
#include "llvm/Function.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Type.h"
#include "llvm/Instructions.h"
#include "llvm/Instruction.h"
#include "llvm/Support/IRBuilder.h"
#include <string>
#include <iostream>
#include <vector>
#include "Sdds.h"
#include "C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.