text stringlengths 8.71k 38.4k |
|---|
#include "synth.h"
#include <queue>
#include <unordered_set>
#include <ImGui/imgui.h>
#include "knob.h"
void Synth::update(Sample buf[BLOCK_SIZE]) {
for (auto const & component : components) {
for (auto & output : component->outputs) {
output.clear();
}
component->update(*this);
}
time += BLOCK_SIZE;
... |
//#if !SWEET_USE_PLANE_SPECTRAL_SPACE
// #error "Spectral space not activated"
//#endif
#if SWEET_GUI
# error "GUI not supported"
#endif
#include "../include/sweet/plane/PlaneData.hpp"
#include <sweet/SimulationVariables.hpp>
#include "../include/sweet/plane/PlaneOperators.hpp"
#include <math.h>
#include <ostream>
#... |
/**
* \file src/core/impl/graph/helper.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
* "AS... |
#include <netinet/tcp.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/dns.h>
#include <event2/event.h>
#include <event2/thread.h>
#include <event2/util.h>
#include "config.h"
#include "TCPConnection.h"
#include "distributions.h"
#include "Generator.h"
#include "mutilate.h"
#include "bi... |
#include "model.h"
#include "controller.h"
#include "atom.h"
#include "misc.h"
#include "special_chars.h"
#include "exception.h"
#include <chrono>
#include <array>
#include <string>
#include <vector>
//////////////////////
// CALCRESULTBUNDLE //
//////////////////////
std::array<double,3> CalcReportBun... |
// ksdep.cpp
// A shift-reduce dependency parser with best-first search
#include <algorithm>
#include <fstream>
#include <map>
#include <boost/algorithm/string/join.hpp>
#include <boost/algorithm/string.hpp>
#include <Eigen/Core>
#include <Eigen/Dense>
#include "param.h"
#include "neuralTM.h"
#include "neuralLM.h"... |
#pragma once
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <unistd.h>
#include <cassert>
#include <string>
#include <vector>
#include "translation.hpp"
#define BREAKPOINT_POS 1000000
struct alignment_t
{
uint64_t start_pos = 0;
... |
// rayTrace.cpp
// To compile:
// mex rayTrace.cpp
// Two more optimizations to improve speed (if necessary):
// 1. Filter out triangles that do not appear in the viewing frustrum.
// 2. Incorporate better splitting heuristic (e.g. SAH):
// http://www.flipcode.com/archives/Raytracing_Topics_Techniques-Part_7_Kd-Trees_... |
#include "pose_utils.h"
// Rotation ---------------------
mat ypr_to_R(const colvec &ypr)
{
double c, s;
mat Rz = zeros<mat>(3, 3);
double y = ypr(0);
c = cos(y);
s = sin(y);
Rz(0, 0) = c;
Rz(1, 0) = s;
Rz(0, 1) = -s;
Rz(1, 1) = c;
Rz(2, 2) = 1;
mat Ry = zeros<mat>(3, 3);
double p = ypr(1);
... |
// Copyright 2020 <NAME>
//
/// @file
/// @brief Corona A/C protocol
/// @note Unsupported:
/// - Auto/Max button press (special format)
#include "ir_Corona.h"
#include <algorithm>
#include <cstring>
#include "IRac.h"
#include "IRrecv.h"
#include "IRsend.h"
#include "IRtext.h"
#include "IRutils.h"
using irutils::a... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* 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 that it will be us... |
#include <mpi.h>
#include <chrono>
#include <CL/sycl.hpp>
#include <dpc_common.hpp>
#include <tuple>
#include <cstdlib>
#include <iostream>
#ifndef VARTYPE
#define VARTYPE double
#endif
#define NG 4UL
#define NM 8UL
#define BETA2 1.
#define ITHETA 3.
#define W000 (64./216.)
#define W100 (16./216.)
#define W11... |
#include <cstdio>
#include <cstdlib>
#include "utility/common.h"
#include <unistd.h>
#include <time.h>
#include "math/qmath.h"
#include "bcm_host.h"
#include "GLES2/gl2.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
#include "mqtt.h"
#define STBI_ONLY_PNG
#include "nanovg/src/stb_image.h"
#include "nanovg/src/nano... |
// Copyright (c) 2011 The Chromium Embedded Framework Authors.
// Portions copyright (c) 2006-2008 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.
// This file contains the implementation of BrowserWebViewDelegate, which... |
//
// Definition of Apple Cocoa Screen interface.
//
// Copyright 1998-2018 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the license at:
//
// h... |
#include "multicapa.cpp"
#include "particionar.cpp"
#include "../config.hpp"
#include <gnuplot-iostream.h>
mat reducirDimension(const mat& datos);
tuple<vec, double, int> entrenarPerceptron(const mat& datos,
int nEpocas,
double tasaA... |
/*
* (C) Copyright 2007-2013
* Allwinner Technology Co., Ltd. <www.allwinnertech.com>
* Charles <<EMAIL>>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* publis... |
/*
HipMer v 2.0, Copyright (c) 2020, The Regents of the University of California,
through Lawrence Berkeley National Laboratory (subject to receipt of any required
approvals from the U.S. Dept. of Energy). All rights reserved."
Redistribution and use in source and binary forms, with or without modification,
are ... |
#include "EDApp.h"
#include <windows.h>
#include "gl.h"
#include "glu.h"
//#include "extgl.h"
#include "EDDefault.h"
#include "../CollisionLibrary/CollisionLibrary.h"
#include "../CapsuleSphereLab/EDCommon.h"
#ifndef FLT_EPSILON
#define FLT_EPSILON 1.192092896e-07F
#endif
extern HWND ghMainWnd;
void DrawGro... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "MyRigidBody.h"
using namespace Simplex;
//Allocation
void MyRigidBody::Init(void) {
m_pMeshMngr = MeshManager::GetInstance();
m_bVisibleBS = false;
m_bVisibleOBB = true;
m_bVisibleARBB = false;
m_fRadius = 0.0f;
m_v3ColorColliding = C_RED;
m_v3ColorNotColliding = C_WHITE;
m_v3Center = ZERO_V3;
m_v... |
#include <vector>
#include <string>
#include "Nyx.H"
#include "reeber.H"
#define REEBER_EXTRA_INTEGRAL
#define REEBER_COMPUTE_GAS_VELOCITIES
// Reeber and DIY includes
#include <reeber-real.h>
#include <diy/master.hpp>
#include <diy/io/block.hpp>
#include <diy/io/shared.hpp>
#include <diy/resolve.hpp>
#include <di... |
// Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... |
/*
* File: BipartNj.cpp
* Author: root
*
* Created on January 25, 2011, 4:03 PM
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <signal.h>
#include <iostream>
#include <map>
#include <string>
#include <cmath>
#include "BipartNj.h"
using namespace ... |
// Copyright (c) 2012 Sirikata 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 <sirikata/pintoloc/ManualReplicatedClient.hpp>
#include <sirikata/core/service/Context.hpp>
#include <sirikata/core/network/Message.hpp> // par... |
/************************************************************************/
/* */
/* Copyright 2008-2011 by <NAME> and <NAME> */
/* */
/* This file is part of the VIGRA com... |
/*
* Project: Slot machine game for the Windows console, with basic and poker modes
* Author: <NAME>
* Date: 27-11-2018
*/
#include <iostream>
#include <string>
#include <random>
#include <algorithm>
#include <thread>
#include <chrono>
#include <cmath>
#include <Windows.h>
using namespace std;
... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include "histogram.hpp"
#include "utils.hpp"
vector<double> ComputeEHOG(Mat source, vector<vector<Point> > regions);
vector<double> ComputePD(Mat source, vector<vector<Point> > regions);
vector<double> ComputeStrokeWidth(Mat source, vector<vector<Point> > regions);
/*
* This method is used to find a value of the ... |
/*
* Copyright (C) 2016 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 2020 Poofee (https://github.com/Poofee)
//
// 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 ... |
//-----------------------------------------------------------------------------
// File : System.cpp
// Author : <NAME> <<EMAIL>>
// Created : 04/12/2011
// Project : General Purpose
//-----------------------------------------------------------------------------
// Description :
// Generic ... |
//#include <stdio.h>
#include <chuffed/core/propagator.h>
// AllDiff for mapping n vars to n values
// x[i] != x[j] for all i, j
template <int U = 0>
class AllDiffValue : public Propagator, public Checker {
public:
int const sz;
IntView<U> * const x;
int const range;
// Intermediate state
vec<int> new_fixed;
... |
/*
* controlAllegroHand.cpp
*
* Created on: Nov 15, 2012
* Added to Project: Jan 17, 2013
* Author: <NAME> & <NAME>
*/
// 20141210: kcchang: added polling style readDevice() and Update()
#include "allegro_hand_driver/controlAllegroHand.h"
#include <iostream>
#include <math.h>
#include <stdio.h>
#inclu... |
#include <iterator>
#include <iostream>
#include <vector>
#include <algorithm>
#include <ext/hash_map>
#include "eclat.h"
#include "lattice.h"
#include "calcdb.h"
#include "timetrack.h"
#include "chashtable.h"
#include "constraints.h"
extern double rulegen_time, mingen_time;
extern bool print_rules;
extern Constraint... |
// Extensions
#include "Engine/Extensions/Default.h"
#pragma region Engine includes
// Core engine includes
#include "Engine Includes/Core.h"
#include "Engine Includes/Models.h"
#include "Engine Includes/RenderBuffers.h"
#include "Engine Includes/Textures.h"
//
#include "Engine/Extensions/Safe.h"
// Audio engine us... |
/**
* @file
* @brief Player ghost and random Pandemonium demon handling.
**/
#include "AppHdr.h"
#include "ghost.h"
#include <vector>
#include "act-iter.h"
#include "colour.h"
#include "database.h"
#include "env.h"
#include "god-type.h"
#include "item-name.h"
#include "item-prop.h"
#include "mon-book.h"
#include ... |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2013 <NAME>, Jupiter Jazz Limited
// Copyright (c) 2014-2018 <NAME>, The appleseedhq Organization
//
// Permission is ... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
//----------------------------------------------------------------------
// File: ann2fig.cpp
// Programmer: <NAME>
// Last modified: 05/03/05
// Description: convert ann dump file to fig file
//----------------------------------------------------------------------
// Copyright (c) 1997-2005 University of Maryland ... |
/*
* Copyright 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.
* 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... |
/*******************************************************************\
Module: Java Convert Thread blocks
Author: <NAME>, <EMAIL>
\*******************************************************************/
#include "java_bytecode_concurrency_instrumentation.h"
#include "expr2java.h"
#include "java_types.h"
#include "java_... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/* Copyright (c) 2015, 2020, 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
/*
* Copyright (c) 2004-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#inc... |
/*
* 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... |
//
// structured - Tools for the Generation and Visualization of Large-scale
// Three-dimensional Reconstructions from Image Data. This software includes
// source code from other projects, which is subject to different licensing,
// see COPYING for details. If this project is used for research see COPYING
// for makin... |
/*
* @Author: UnsignedByte
* @Date: 2021-05-24 10:13:55
* @Last Modified by: UnsignedByte
* @Last Modified time: 2021-05-28 19:17:32
*/
#include <stdexcept>
#include "rtneat.hpp"
#include "utils.hpp"
#include "ant.hpp"
#include "render.hpp"
namespace nUtils {
void RANDOM_MUTATE(float& f, bool allowFlip, float ma... |
/*
* Vegetation.cpp
*
* Purpose: Defining vegetation structure
*
* History:
* June 28, 2011, by <NAME>:
* (1) added for constructing vegetation domain (plant community)
*
* Important:
* (1) Parameters are read from 'CohortLookup.cpp', and set to
* 'vegdimpar' (struct::vegpar_dim)
*... |
//===-- RegisterInfoPOSIX_arm64.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
//
//===---------------------------... |
/** \class CSCTMBData
*
* \author <NAME> - Rice
*/
#include "EventFilter/CSCRawToDigi/interface/CSCTMBData.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <iomanip> // dump for JK
#include <iostream>
#include <cstdio>
#include "EventFilter/CSCRawToDigi/interface/bitset_append.h"
#include "E... |
#include "GPU.h"
#include "MMU.h"
#include "InterruptServiceRoutine.h"
#include "GameWindow.h"
#include "Logger.h"
#include <iostream>
GPU::GPU(MMU& mmu, InterruptServiceRoutine& interruptService) : mmu(mmu), dma(mmu, oam), interruptService(interruptService) {}
GPU::~GPU() {}
u8 GPU::Read(u16 address) {
if (address... |
// @COPYRIGHT@
// Licensed under MIT license.
// See LICENSE.TXT file in the project root for more information.
// ==============================================================
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <iostream>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#i... |
#include "profile.h"
#include "event_translators/event_change.h"
#include "event_translators/translators.h"
#include "devices/device.h"
#include "parser.h"
#include <unordered_set>
profile::profile() {
}
profile::~profile() {
for (auto prof : subscriptions) {
if (auto profptr = prof.lock())
profptr->remove... |
// Copyright 2020 <NAME>
// This file is part of CIDE, licensed under the new BSD license.
// See the COPYING file in the project root for the license text.
#include "rename_dialog.h"
#include <clang-c/Index.h>
#include <QBoxLayout>
#include <QIcon>
#include <QLabel>
#include <QLineEdit>
#include <QMessageBox>
#inclu... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
int
n , rJFb,
T,Y/*V*/,/*x*/
lrOzS ,m6,
z,vwLexS
, bsY ,//e
oSi , MV ,
GQK7,P4r
,
Cky4
//D
, xrtBi,q7Z3 /*GK*/,A7N /*xN*/ ,
yFp
, ooEin , D ,
Im
,A,i,//
hWy/*6*/ ,Sow
,
nR /*W*/,
sJMG ,Ccnl0 ,/*7ci*/ oc9,g4 ,b//rD
,
Wy3E
,iF
, oM ,d8U ,JTD
,
N4g, /*1uDXzO*/udWyha
,
Rz
, //
lH1XL
; void f_f0(){
{for... |
//-----------------------------------------------------------------------------
// File: Sensors.cpp
// Desc: Implementations sensor board functionality.
//-----------------------------------------------------------------------------
#include "config.h"
#include "Arduino.h"
#include <Wire.h>
/*
Reference for basic sen... |
/*****************************************************************************
* *
* PLAST : Parallel Local Alignment Search Tool *
* Version 2.3, released November 2015 *
* ... |
// Shasta.
#include "LowHash1.hpp"
#include "AlignmentCandidates.hpp"
#include "Marker.hpp"
using namespace shasta;
// Standad library.
#include "algorithm.hpp"
#include "chrono.hpp"
LowHash1::LowHash1(
size_t m, // Number of consecutive markers that define a feature.
double hashFracti... |
/*
Name: drs4analysis.cxx
Purpose: Analyse data saved by drs4daq
*/
#include <cstring>
#include <math.h>
#include <fstream>
#include <vector>
#include "TGraph.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TProfile.h"
#include "TFile.h"
#include "TTree.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "T... |
//
// 20141209: kcchang: changed window version to linux
// myAllegroHand.cpp : Defines the entry point for the console application.
//
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <termios.h> //_getch
#include <string.h>
#include <pthread.h>
#include "canAPI.h"
#include "rDeviceAllegroHandCAN... |
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Project: Embedded Learning Library (ELL)
// File: IREmitterTest.cpp (emitters_test)
// Authors: <NAME>, <NAME>
//
//////////////////////////////////////////////////////////////////////////////////////////... |
/* Copyright (C) 2014 InfiniDB, Inc.
Copyright (C) 2016 MariaDB Corporation
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 in... |
///****************************************************************************
//*
//* Copyright (c) 2012 by <NAME>, all rights reserved.
//*
//* Author: <NAME>
//* Contact: <EMAIL>
//*
//* This software is partly based on the following open source:
//*
//* - OpenCV , AAMLibrary
//*
//*********************... |
/*
* ESmartImage.cpp
* pngviewer
*
* Created by Rockford on 07/04/10.
* Copyright 2010 Casual Games France. All rights reserved.
*
*/
#include "ESmartImage.h"
#include "MyGame.h"
#include "global.h"
#include "FontBank.h"
#include "ImageBank.h"
/* Contructeur simple */
ESmartImage::ESmartImage(KGraphic *lpG... |
///////////////////////////////////////////////////////////
//
// SuperDiskIndex
//
////////////////////
//
//
//
#include "Global.h"
#include "BitStream.h"
#include "FormatDiskAmiga.h"
#include "Buffer.h"
#include "MFM.h"
#include "Helpers.h"
#include "VirtualDisk.h"
#include <fcntl.h>
#include <sys/types.h>
#includ... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include "Entity.hpp"
/*
void Entity::processLogic()
{
}
*/
Entity::Entity(sf::RenderWindow& mWindow, b2World* world, float radius, std::vector<bodyData> *bDList, std::map<std::string, b2Joint*> *jMap)
: p_world(world)
, mWindow(mWindow)
, animatedSprite(sf::seconds(0.08), true, false)
,fixtureOnSensor(nullptr)
{
... |
// Copyright 2017 The Dawn 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 agreed t... |
//
// Created by david on 2019-07-06.
//
#include <general/nmspc_tensor_extra.h>
#include <general/nmspc_tensor_omp.h>
// textra must appear first
#include "class_mps_site.h"
#include <config/debug.h>
#include <math/hash.h>
#include <tools/common/log.h>
#include <tools/common/fmt.h>
#include <utility>
using Scalar = ... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
#include "TracksterAssociatorByEnergyScoreImpl.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimDataFormats/CaloAnalysis/interface/SimCluster.h"
TracksterAssociatorByEnergyScoreImpl::TracksterAssociatorByEnergyScoreImpl(
edm::EDProductGetter const& productGetter,
bool hardScatterOnly,... |
#include "nmpc_controller/nmpc_controller.h"
NMPCController::NMPCController(ros::NodeHandle &nh, int robot_id) {
nh_ = nh;
robot_id_ = robot_id;
SystemID default_system;
switch (robot_id_) {
case 0:
robot_ns_ = "spirit";
default_system = SPIRIT;
break;
case 1:
robot_ns_ = "a1";... |
// Garuda Robotics CoPilot Stereo Camera Image Processing Node
// Author: <NAME>, <EMAIL>
//
// This code contains the ROS2 Node class StereoImageProcessor to process the raw images
// obtained from topic name "sync_stereo/image_raw" on ROS2 CoPilot software.
//
// The Stereo Image Processor node will obtain disparty... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <cctype>
#include "qcms.h"
using std::isspace;
/* Nabbed from the http://www.jonh.net/~jonh/md5/crc32/crc32.c. License is
* "do anything, no restrictions." */
unsigned long crc32(const unsigned char *s, unsigned int len);
/*
* ... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
#include "global_pre.hpp"
#include <stdio.h>
#include <string>
#include <vector>
#include <unordered_map>
#include "alikins.hpp"
#include "ui.hpp"
#include "global_ui.hpp"
namespace rack_plugin_Alikins {
struct SpecificValue : Module
{
enum ParamIds
{
VALUE1_PARAM,
OCTAVE_PARAM,
NUM_P... |
// Copyright 2016 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... |
// Copyright 2017 <NAME>
//
// 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 conditions and the following disclaimer.
//
... |
// Copyright (c) 2019 The Bitcoin SV developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txn_validator.h"
#include "txn_validation_config.h"
#include "config.h"
#include "net_processing.h"
/** Constructor */
CT... |
// TODO: Fix insanity
#include "AESBlockCipher.h"
// !!! decrypt(...) AND genKeyMaterialAll(...) NOT IMPLEMENTED !!!
// Initial state of class caches
AESBlockCipher::Cache AESBlockCipher::cache =
{nullptr, nullptr, nullptr, nullptr, nullptr};
// ----- PUBLIC -----
AESBlockCipher::AESBlockCipher()
{
key = nul... |
// Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "reductions.h"
#include "label_dictionary.h"
#include "vw.h"
#include "cb_algs.h"
#include "vw_exception.h"
#inclu... |
#include <string>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <complex>
#include <algorithm>
#include <thread>
#include <climits>
#include <chrono>
#if defined(__AVX512BW__) || defined(__AVX__) || defined(__SSE__)
#include <immintrin.h>
#endif
#include <SDL2/SDL.h>
#include <SDL... |
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/ether.h>
#include <sys/socket.h>
#include <time.h>
#include <syslog.h>
#include <string>
#include <vector>
#include <cstring>
#include <iostream>
#include "converter.h"
#include "FlowTable.hh"
#include "FPMServer.hh"
u... |
/**
* TLS Fingerprinting application
* ==============================
*
* This application demonstrates how to extract and use TLS fingerprinting data using PcapPlusPlus.
* Please read the README.md file for more information.
*
* You can also run `TLSFingerprinting -h` for modes of operation and parameters.
*/
... |
/**************************************************************************
* Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/* Sirikata Jpeg Texture Transfer -- Texture Transfer management system
* SwitchableCompression.hpp
*
* Copyright (c) 2015, The Sirikata Authors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... |
/* LucidTronix write messages on the Heart Matrix.
* For instructions details and schematic, See:
* http://www.lucidtronix.com/tutorials/18
*/
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
#include "HeartMatrix.h"
// defines 5x7 ascii characters 0x20-0x7F (32-127)
... |
/*class BasicHepMCValidation
*
* Class to fill dqm monitor elements from existing EDM file
*
*/
#include "Validation/EventGenerator/interface/BasicHepMCValidation.h"
#include "CLHEP/Units/defs.h"
#include "CLHEP/Units/PhysicalConstants.h"
#include "Validation/EventGenerator/interface/DQMHelper.h"
using namespa... |
//==================================================================================
// BSD 2-Clause License
//
// Copyright (c) 2014-2022, NJIT, Duality Technologies Inc. and other contributors
//
// All rights reserved.
//
// Author TPOC: <EMAIL>
//
// Redistribution and use in source and binary forms, with or withou... |
/*
* 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 "RemoveRecursiveLocks.h"
#include <bitset>
#include <boost/optional.hpp>
#include <boost/variant.hpp>
#include <limits>
... |
#include <iostream>
#include <fstream>
#include "CDataSet.h"
#include <iomanip>
// #include <io.h>
#include <string>
#include <unordered_map>
#include <map>
#include <ctime>
#include <QDateTime>
#include <QFile>
#include <QDir>
#include <QList>
#include "ogrsf_frmts.h"
#include "gdal.h"
#include "gdal_priv.h"
using ... |
/*********************************************************************
This is a library for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
These displays use SPI to communicate, 4 or 5 pins are required to
interface
Adafruit... |
#include "game.h"
void Game::welcomeScreen (void) {
printf ("XXXXX XXXX XXXXXX XXXXXX XX XXXXXX XXXXX XX XX XX XXXX\n");
printf ("XX XX XX XX XX XX XX XX XX XX XX XX XX XX\n");
printf ("XXXXX XX XX XX XX XX XXXX XXXX XXXXXX XX XXXX\n");
printf ("XX XX XXXXXX XX... |
//************************************************************************
// *
// Copyright (C) 2004 *
// University Corporation for Atmospheric Research *
// All Rights Reserved *
// *
//************************************************************************/
//
// File: Renderer.cpp... |
/*
Copyright 2020 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of
the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed
unde... |
//#include <Afx.h> // force link order http://support.microsoft.com/kb/q148652/
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <io.h>
#include <math.h>
#include "pmac.h"
#include "angles.h"
#include "cbw.h"
//#include "arcLogger.h"
//#include "../include/pmac.h"
/... |
#include "lexer.h"
#include "lazystr.h"
#include <cstdlib>
#include <cstring>
using namespace ante;
using namespace std;
/*
* Maps each non-literal token to a string representing
* its type.
*/
map<int, const char*> tokDict = {
{Tok_Ident, "Identifier"},
{Tok_UserType, "UserType"},
{Tok_TypeVar, "Typ... |
/*
* Copyright 2020 California Institute of Technology (“Caltech”)
*
* 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 r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.