text stringlengths 5.71k 33.7k |
|---|
//===- PathNumbering.cpp --------------------------------------*- C++ -*---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* NDDriverStdArrays.cpp
*
* This is a driver for converting standard EPICS arrays (waveform records)
* into NDArrays.
*
* It allows any Channel Access client to inject NDArrays into an areaDetector IOC.
*
* <NAME>
* University of Chicago
*
* Created: November 8, 2016
*
*/
#include <stddef.h>
#include <... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any per... |
#include <EEPROM.h>
#include "wled.h"
/*
* DEPRECATED, do not use for new settings
* Only used to restore config from pre-0.11 installations using the deEEP() methods
*
* Methods to handle saving and loading to non-volatile memory
* EEPROM Map: https://github.com/Aircoookie/WLED/wiki/EEPROM-Map
*/
//eeprom Ver... |
/* Copyright 2021 The TensorFlow 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 by applicable law or a... |
/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* 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
*
* Unl... |
// -*- C++ -*-
//
// Package: GctFibreAnalyzer
// Class: GctFibreAnalyzer
//
/**\class GctFibreAnalyzer GctFibreAnalyzer.cc L1Trigger/L1GctAnalzyer/src/GctFibreAnalyzer.cc
Description: Analyzer individual fibre channels from the source card.
*/
//
// Original Author: <NAME>
// Created: Thu Jul 12 1... |
//-------------------------------------------------------------------------------------
//
// Copyright 2009 Intel Corporation
// All Rights Reserved
//
// Permission is granted to use, copy, distribute and prepare derivative works of this
// software for any purpose and without fee, provided, that the above copy... |
/*************************************************************************
"I Have No Tomatoes"
Copyright (c) 2004, <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arisin... |
#include <iostream>
#include <sstream>
#include <chrono>
#include "xlnt.hh"
#include "float.hh"
#include "record.hh"
#include "directories.hh"
// ----------------------------------------------------------------------
void dtra::v2::Record::importer_default(const xlnt::cell& /*cell*/)
{
} // dtra::v2::Record::import... |
#include "stereo_processor/stereo_processor.hpp"
void StereoProcessor::updateConfig(dsvo::dsvoConfig &config, uint32_t level) {
BLUR_SZ = 2*config.BLUR_SZ+1;
BLUR_VAR = config.BLUR_VAR;
FEATURE_BLOCKS = config.FEATURE_BLOCKS;
FEATURE_THRES = config.FEATURE_THRES;
FEATURES_PER_CELL = config.FEATURES_PER_CELL;... |
/******* \class DTRunConditionVarClient *******
*
* Description:
*
* detailed description
*
* \author : <NAME>, <NAME>
* $date : 23/09/2011 15:42:04 CET $
*
* Modification:
*
* threadsafe version (//-) oct/nov 2014 - WATWanAbdullah -ncpp-um-my
*
*
*********************************/
#include "DQM/DT... |
//#define NBOUNDSCHECK
#include "aos/vision/image/image_stream_legacy.h"
#include "eigen3/Eigen/Dense"
#include <limits>
#include <math.h>
#include <algorithm>
#include <vector>
#include <map>
#include <iostream>
#include "gflags/gflags.h"
#include "aos/vision/blobs.h"
#include "aos/vision/comp_geo/vector.h"
#includ... |
#include "Application.hpp"
#include "lang/Lang.hpp"
#include "Paths.hpp"
#include "ui/screen/Update.hpp"
#include "Updater.hpp"
#include "utils/FS.hpp"
#include "utils/Utils.hpp"
#include "utils/Zip.hpp"
// Font sizes
constexpr unsigned int headingFontSize = 24;
constexpr unsigned int bodyFontSize = 20;
namespace Scr... |
// Copyright 2018 The Fuchsia 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 "aml-thermal.h"
#include <string.h>
#include <zircon/syscalls/port.h>
#include <ddk/debug.h>
#include <ddk/device.h>
#include <ddk/driver.h>
#in... |
// Copyright 2013 <NAME>
// Distributed under Boost license
#ifdef __linux__
#define BOOST_TEST_DYN_LINK
#endif
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include "jsoncons/json.hpp"
#include "jsoncons/json_serializer.hpp"
#include "jsoncons/json_filter.hpp"
#include <sstream>
#include <vector>
#inc... |
/*******************************************************************************
*
* Copyright (C) 2017 Xilinx, 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 Softw... |
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "main.h"
#include "stars.h"
string Effect15::getName()
{
return "Hypnotic Patterns";
}
/* state variables */
static int frame_count = 0; /* number of frames drawn */... |
/* ----------------------------------------------------------------------
*
* *** Smooth Mach Dynamics ***
*
* This file is part of the USER-SMD package for LAMMPS.
* Copyright (2014) <NAME>, <EMAIL>
* Fraunhofer Ernst-Mach Institute for High-Speed Dynamics, EMI,
* Eckerstrasse 4, D-79104 Frei... |
// -*- C++ -*-
//
// Package: SoftLepton
// Class: SoftLepton
//
/**\class SoftLepton SoftLepton.cc RecoBTag/SoftLepton/src/SoftLepton.cc
Description: CMSSW EDProducer for soft lepton b tagging.
Implementation:
*/
// Original Author: fwyzard
// Created: Wed Oct 18 18:02:07 CEST 2006
#include <me... |
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu, Inc.
// Date 2014/10/24 16:44:30
#include <gtest/gtest.h>
#include <google/protobuf/descriptor.h>
#include "brpc/server.h"
#include "brpc/details/http_message.h"
#include "brpc/policy/http_rpc_protocol.h"
#include ... |
#include <vector>
#include <string>
#include <map>
#include <list>
#include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <nav_msgs/OccupancyGrid.h>
#include <nav_msgs/Path.h>
#include <geometry_msgs/PoseStamped.h>
#d... |
//============================================================================
// Name : PSO.cpp(Ubuntu_18_Ritesh)
// Author : Ritesh
// Version : v5
// Copyright : Your copyright notice
// Description : Particle Swarm Implementation in C++, Ansi-style
//===============================================... |
/****************************************************************************************************************************************************
* Copyright (c) 2014 Freescale Semiconductor, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permi... |
/**
* Copyright (C) 2010 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 ap... |
// Border tile constants.
enum {
BORDER_TOP_LEFT,
BORDER_TOP_RIGHT,
BORDER_BOTTOM_LEFT,
BORDER_BOTTOM_RIGHT,
BORDER_X_SOLID,
BORDER_Y_SOLID,
BORDER_JOINT_LEFT,
BORDER_JOINT_RIGHT,
BORDER_SOLID
};
// Tile constants.
enum {
TILE_COVERED,
TILE_UNCOVERED,
TILE_FLAGGED,
TILE_UNUSED1,
TILE_UNUSED2,
TILE_MINE1... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2000 <NAME> & <NAME>
* <EMAIL> <EMAIL>
*
* 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 v... |
/************************************************
Copyright (c) 2016, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright noti... |
/*
* optimize_1q.cpp
*
* Created on: Sep 28, 2018
* Author: prakash
*/
#include "circuit.hpp"
#include "optimize_1q.hpp"
#include "quaternion.hpp"
/**
* This implementation is adapted from the corresponding pass in Qiskit
* qiskit/transpiler/passes/optimize_1q_gates.py
*/
int is_multiple_of_2pi(double ... |
/*
* Driver for USB Audio Device Class devices.
* Copyright (c) 2009-13 S.Zharski <<EMAIL>>
* Distributed under the terms of the MIT license.
*
*/
#include "Stream.h"
#include <usb/USB_audio.h>
#include "Device.h"
#include "Driver.h"
#include "Settings.h"
Stream::Stream(Device* device, size_t interface, usb_... |
#include <iostream>
#include <cmath>
#include <omp.h>
#include <pthread.h>
#include "adabs/gasnet_config.h"
#include "adabs/adabs.h"
#include "adabs/matrix.h"
#include "adabs/remote_matrix.h"
#include "adabs/collective/vector.h"
#include "adabs/distributed/matrix.h"
using namespace std;
const int TILE_SIZE ... |
#include "shared.h"
#define RRR_OP_FUNC(OP) \
static inline void RRR_##OP(register u128 &rd, const register u128 &rs, const register u128 &rt) { \
asm volatile ( \
#OP " %0, %1, %2\n" \
: "+r"(rd) : "r"(rs), "r"(rt) \
); \
} \
static inline void ZRR_##OP(register u128 &rd, const register u128 &rs, const register... |
/*
* Copyright 2001-2015 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
* <NAME>, <EMAIL>
* <NAME>, <EMAIL>
* <NAME>
* <NAME>, <EMAIL>
*/
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <Bitmap.h>
#include <ControlL... |
/**
* Copyright (C) 2021 <NAME> <<EMAIL>> with support Kintech Lab
* Licensed under the Apache License, Version 2.0
**/
#include <algorithm>
#include "../../include/aiwlib/qplt/base"
#include "../../include/aiwlib/qplt/mesh"
#include "../../include/aiwlib/iostream"
using namespace aiw;
//-------------------------... |
/*
* level/level_io.cpp
*
* Loading and saving of levels
*
* For loading levels in the binary level format (LVL), see level_bi.cpp.
*
* Do not confuse this file with other/io.cpp. The latter file contains
* functions for generic L++-style IO.
*
*/
#include "level.h"
#include "obj_lib.h"
#include "../other/h... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
/*
Copyright (c) 2003, Xentronix
Author: <NAME> (<EMAIL>)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of ... |
#include "TensorRTEngine.hpp"
#include "NvInfer.h"
#include "NvUffParser.h"
#include "NvOnnxParser.h"
#include "NvUtils.h"
#include <cuda_runtime_api.h>
#include <FAST/Utility.hpp>
#include <fstream>
#include <FAST/Config.hpp>
#define CUDA_CHECK(status) \
if(status != 0) ... |
// Aleth: Ethereum C++ client, tools and libraries.
// Copyright 2015-2019 Aleth Authors.
// Licensed under the GNU General Public License, Version 3.
#include <json_spirit/JsonSpiritHeaders.h>
#include <libdevcore/Base64.h>
#include <libdevcore/CommonIO.h>
#include <libdevcore/RLP.h>
#include <libdevcore/SHA3.h>
#inc... |
/* Copyright 2001, 2019 IBM Corporation
*
* 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 d... |
/**
This code is based on Belvedere serving robot by wolffan
http://www.instructables.com/id/Belvedere-A-Butler-Robot/
@author <NAME>
Also thanks a lot for my old college Jochen for cleaning my code-chaos. Even though I'm eternaly C noob, I couldn't make it without your support
*/
#include <Arduino.h>... |
/*
Copyright (c) 2013, Trail of Bits
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the followin... |
/*
nodes.cpp - Implementation of the Nodes class.
Revision 0
Notes:
-
2017/10/29, <NAME> <<EMAIL>>
*/
#include "nodes.h"
#include <iostream>
using namespace std;
#include <Poco/Net/HTTPRequest.h>
#include <Poco/Net/HTTPResponse.h>
#include <Poco/StringTokenizer.h>
#include <Poco/String.h>
#include ... |
#include "Dx11Renderer.h"
#include "ObjReader.h"
#include <d3dcompiler.h>
#include <DXM/DirectXMath.h>
#include <imgui.h>
#include <imgui_impl_dx11.h>
#include <cstdio>
#include <winerror.h>
struct PerFrameData
{
DirectX::XMFLOAT4 time;
// Maybe try to combine the transforms on CPU side
DirectX::XMFLOA... |
#include "Lexer.hpp"
#include <IO/FileUtils.hpp>
#include <charconv>
#include <unordered_map>
#include <spdlog/spdlog.h>
namespace
{
std::unordered_map<std::string, crisp::sl::TokenType> createKeywordMap()
{
using namespace crisp::sl;
std::unordered_map<std::string, crisp::sl::TokenType> map... |
// 67d7842dbbe25473c3c32b93c0da8047785f30d78e8a024de1b57352245f9689
// (c) Copyright(C) 2013 - 2018 by Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws... |
#include <iostream>
#include <fstream>
#include <vector>
#include <limits>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;
#include "Matrix.h"
#include "logging.h"
Matrix mIdentity(int n) {
Matrix I(n,n,0.0);
for(int i=0; i<n*n; i+=n+1) I[i] = 1.;
return I;
}
Matrix mTm( const Matrix&... |
#include "Regulariser.hpp"
#include "Regulariser.cuh"
Regulariser::Regulariser(int rows, int cols, int layers,
float near, float far,
float alphaG, float betaG,
float theta_start, float theta_min,
float epsilon, float lambda, float scale_Eaux) :
rows(rows), cols(cols), layers(layers),
near(near), far(far),
a... |
/*
* Copyright (C) 2005-2017 <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/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/*
* See header file for a description of this class.
*
* \author <NAME> (Purdue University, West Lafayette, USA)
*/
#include "DQMOffline/Muon/interface/TriggerMatchMonitor.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/inte... |
#include <gflags/gflags.h>
#include <stdlib.h>
#include <string.h>
#include <limits>
#include <thread>
#include "libhrd_cpp/hrd.h"
static constexpr size_t kAppNumQPs = 1; // UD QPs used by server for RECVs
static constexpr size_t kAppBufSize = 4096;
static constexpr size_t kAppMaxPostlist = 64;
static constexpr size_... |
/*
* ST7735_LCD.cpp
*
* Created on: Dec 7, 2016
* Author: dearm
*/
#include "ST7735_LCD.hpp"
#include "Analog_To_Digital.hpp"
//#include "Joystick.hpp"
//part one
static const uint8_t commands[] = { // Init for 7735R, part 1 (red or green tab)
15, // 15 commands i... |
#include <sys/mman.h>
#include "elf.h"
#include "oxtra/utils/types.h"
using namespace elf;
const char* ElfException::error_string(Error e) {
switch (e) {
case Error::file_failed:
return "[file_failed] failed to open or read the file";
case Error::not_elf_file:
return "[not_elf_file] the file is not an elf-... |
/*
* Copyright 2008 sempr <<EMAIL>>
*
* Refacted and modified by zhblue<<EMAIL>>
* Bug report email <EMAIL>
*
* This file is part of HUSTOJ.
*
* HUSTOJ 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 Foundatio... |
#include "utils.h"
#include <fstream>
#include <iostream>
#include <ctime>
#include <boost/algorithm/string.hpp>
#include <boost/format.hpp>
auto random_engine = std::mt19937(std::time(0));
void train_with_features(std::string data_file_path,
std::string features_file_path,
... |
/****************************************************************************
* Copyright (c) 2021, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retai... |
// This parses the RC file.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <SDL.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "rc.h"
#include "pd-defs.h"
#include "md-phil.h"
// CTV names
char *ctv_names[NUM_CTV] = { "off", "blur", "scanline", "interlace" };
// The table of strings... |
/*
* ProceduralTerrainAppearance.cpp
*
* Created on: 31/01/2010
* Author: victor
*/
#include "ProceduralTerrainAppearance.h"
#include "TerrainGenerator.h"
#include "TerrainMaps.h"
#include "layer/boundaries/Boundary.h"
#include "layer/affectors/AffectorHeightConstant.h"
ProceduralTerrainAppearance::Procedu... |
#include <iostream>
#include <math.h>
#include "game.hpp"
#include "shader.hpp"
#include "fileloader.hpp"
#include "vector.hpp"
#include "collision.hpp"
using namespace Game;
const float32 PI = 3.14159265;
// Size of the window in world units (Origin is in the center of the window)
const Vec2 world_size = Vec2(16, ... |
/*
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 <loop_tool/loop_tool.h>
#include <string.h>
#include <chrono>
#include <random>
#include "test_utils.h"
using namespace loop_tool;
u... |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... |
/*****************************************************************************
*
* GARGOYLE_PSCAND: Gargoyle - Protection for Linux
*
* controller code for handling ip addr actions
*
* Copyright (c) 2017 - 2018, Bayshore Networks, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary form... |
//------------------------------------------------------------------------------
// Delta Robot v8 - Supports RUMBA 6-axis motor controller
// <EMAIL> 2014-01-07
//------------------------------------------------------------------------------
// Copyright at end of file.
// please see http://www.github.com/MarginallyCl... |
// math_pow.cpp: functional tests for pow function
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <cmath> // standard C++ version of pow()
// when you define POSIT_VERBOSE_OUTPUT the ... |
#include "stdafx.h"
#include <GWCA/Constants/Constants.h>
#include <GWCA/GameContainers/Array.h>
#include <GWCA/GameContainers/GamePos.h>
#include <GWCA/GameEntities/Hero.h>
#include <GWCA/Context/GameContext.h>
#include <GWCA/Context/WorldContext.h>
#include <GWCA/Managers/MapMgr.h>
#include <Modules/Resources.h>... |
#include "sandbox.h"
#include <iostream>
#include <string>
#include <array>
#include <system_error>
#include <vector>
#include <cstring>
#include <boost/format.hpp>
#include <boost/filesystem.hpp>
#include <yaml-cpp/yaml.h>
#include <wait.h>
#include <signal.h>
#include <seccomp.h>
#include <unistd.h>
#include <sys/... |
#include <iostream> //Biblioteca para o uso do cout
#include <stdio.h> //Biblioteca para usar o get char
#include <ctime> //Biblioteca para medir o tempo de execução
#include <fstream> //Biblioteca para escrita e leitura de arquivos txt
#include <stack> //Biblioteca com implementação de pilha
#include <queue> //Bibliot... |
/*
Watchwinder.cpp - Smart Watch Winder
Copyright (C) 2020 - 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the righ... |
#include "wiFont.h"
#include "wiRenderer.h"
#include "wiResourceManager.h"
#include "wiHelper.h"
#include "wiSceneComponents.h"
#include "ResourceMapping.h"
#include <fstream>
using namespace std;
using namespace wiGraphicsTypes;
#define MAX_TEXT 10000
#define WHITESPACE_SIZE 3
std::string wiFont::FONTPATH = "fo... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using Eigen::MatrixXd;
using Eigen::VectorXd;
/**
* Initializes Unscented Kalman filter
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during init)
use_laser_ = true;
// if this is false, radar measurements will be ... |
//===--- CompilerInvocation.cpp -------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* from http://source.macgimp.org/plug-ins/bmp/bmpread.c*/
/* bmpread.c reads any bitmap I could get for testing */
/* <EMAIL> */
/*
* The GIMP -- an image manipulation program
* Copyright (C) 1995 <NAME> and <NAME>
*
* This program is free software; you can redistribute it and/or modify
*... |
/*******************************************************************************
* Copyright (c) 2016 <NAME>
* All rights reserved
* Distributed under the terms of the MIT License
*******************************************************************************
*
* Filename: main.cpp
*
* Description:
* TCO-... |
//StiDetectorContainer.cxx
//<NAME> (Yale Software)
//02/02/01
#include <Stiostream.h>
#include <math.h>
#include <stdio.h>
#include <dirent.h>
#include <sys/stat.h>
#include <string>
#include <stdexcept>
#include <algorithm>
using std::find_if;
using std::for_each;
using std::binary_search;
#include "Sti/Base/Filter.... |
/*
* Copyright (c) 2006 <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 must retain the above copyright
* notice, this list of conditions an... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* <OWNER> = Apple Inc.
* <ORGANIZATION> = Apple Inc.
* <YE... |
// Copyright <NAME>
#include "GHIntersect.h"
#include "GHMath.h"
#include "math.h"
#include "GHFloat.h"
#include "GHSphere.h"
#include <cfloat>
inline bool validateT(float t)
{
return t >= 0 && t <= 1.f;
}
float GHIntersect::areaOfTriangle(const GHPoint2& p1,
const GHPoint2& p2,
... |
#include "RGBmatrixPanelDue.h"
#include "glcdfontDue.c"
#include <Arduino.h>
uint16_t RGBmatrixPanelDue::width() {return WIDTH; }
uint16_t RGBmatrixPanelDue::height() {return HEIGHT; }
RGBmatrixPanelDue::RGBmatrixPanelDue(uint8_t matrix_type, uint8_t xpanels, uint8_t ypanels, uint8_t planes) {
single_matrix_width ... |
/*
File: ManuvrSerial.cpp
Author: <NAME>
Date: 2015.03.17
Copyright 2016 Manuvr, 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 requ... |
/*
-------------------------------------------------------------------------------
Copyright (c) <NAME>.
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 a... |
#include "sgimage.h"
#include <QtCore/QDebug>
#include <QtCore/QFile>
#include <QtCore/QDataStream>
#include "display/binary/BinaryFormatter.hpp"
enum {
ISOMETRIC_TILE_WIDTH = 58,
ISOMETRIC_TILE_HEIGHT = 30,
ISOMETRIC_TILE_BYTES = 1800,
ISOMETRIC_LARGE_TILE_WIDTH = 78,
ISOMETRIC_LARGE_TILE_HEIGHT = 40,
ISOMETR... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: BackImg.cpp */
/* DATE: Nov 16th 2004 ... |
#include "do.h"
#include <memory.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h> /* for u_int*_t */
/*
#define BASE64_ENCODE_OUT_SIZE(s) ((unsigned int)((((s) + 2) / 3) * 4 + 1))
#define BASE64_DECODE_OUT_SIZE(s) ((unsigned int)(((s) / 4) * 3))
* out is null-terminated encode string.... |
/* ----------------------------------------------------------------- */
/* The HMM-Based Singing Voice Synthesis System "Sinsy" */
/* developed by Sinsy Working Group */
/* http://sinsy.sourceforge.net/ */
/* -----------------------------... |
/*
* Benchmark creates & deletes.
*/
// char *id = "$Id$\n";
#include <math.h>
#include "bench.h"
#include "confidence.h"
#include "timing.h"
#ifndef ITER
#define ITER 1000
#endif
#define S 5
void mkfile(char *s, int sz);
int
latfs_main(int ac, char **av)
{
static int sizes[] = { 0, 1024, 4096, 10*1024 };
exte... |
#include <executor.h>
#include <sstream>
#include <algorithm>
extern uint32_t GLOBAL_RECORD_SIZE;
PendingActionList::PendingActionList(uint32_t freeListSize)
{
freeList = (ActionListNode*)malloc(sizeof(ActionListNode)*freeListSize);
memset(freeList, 0x00, sizeof(ActionListNode)*freeListSize);
... |
//#define EIGEN_USE_MKL_ALL //uncomment if available
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "numpy/arrayobject.h"
#include "cover_tree.h"
#include <future>
#include <thread>
#include <iostream>
# include <iomanip>
// template<class UnaryFuncti... |
//===-- SPIRVIRTranslator.cpp - Override IRTranslator for SPIR-V *- 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 <iostream>
#include <glut.h>
#include <vector>
#include <string>
#include <stdlib.h>
#include <fstream>
//Constants
const int graphPlaceX = 400;
const int graphPlaceY = 400;
const int graphRadius = 200;
const int nodeRadius = 20;
const int arrowRadius = 5;
const int w = 1280;
const int h = 720;
void *font = ... |
#include "LWPlatform/LWWindow.h"
#include "LWPlatform/LWInputDevice.h"
#include "LWCore/LWTimer.h"
#include <iostream>
#include <cstdarg>
char WriteClipboardTextB[512];
char RecvClipboardTextB[512];
LWWindowContext *ClipboardContext = nullptr;
LWWindow *ClipboardWindow = nullptr;
bool ClipSet = false;
uin... |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/ocsp/nss_ocsp.h"
#include <certt.h>
#include <certdb.h>
#include <ocsp.h>
#include <nspr.h>
#include <nss.h>
#include <secerr.h>
#incl... |
#include "ix_index_handle.h"
#include "ix_scan.h"
IxIndexHandle::IxIndexHandle(int fd_) {
fd = fd_;
PfPager::read_page(fd, IX_FILE_HDR_PAGE, (uint8_t *) &hdr, sizeof(hdr));
}
void IxIndexHandle::insert_entry(const uint8_t *key, const Rid &rid) {
Iid iid = upper_bound(key);
IxNodeHandle node = fetch_n... |
#include "plugin.h"
#include "CTheZones.h"
#include "CMessages.h"
#include "CPopCycle.h"
#include "CClock.h"
#include "CGangWars.h"
#include "CGeneral.h"
#include "CPopulation.h"
#include "CCarCtrl.h"
#include "CTimer.h"
#include "CPathFind.h"
#include "CStreaming.h"
#include "CCheat.h"
#include "TestCheat... |
#include "StudentWorld.h"
#include "Actor.h"
#include "GraphObject.h"
#include <string>
#include <cmath>
GameWorld* createStudentWorld(std::string assetDir) {
return new StudentWorld(assetDir);
}
int StudentWorld::init() {
search = new BFSSearch(this); //creating new search
//initializing dirt and open locations ... |
#include <cstdlib>
#include <cstdio>
#include <string>
#include <mutex>
#include <deque>
#include <condition_variable>
#include <vector>
#include <thread>
#include <atomic>
extern "C"
{
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavfilter/avfilter.h>
#include <libavfilter/buffersink... |
#include "Arpeggiator.hpp"
#include "dsp/digital.hpp"
struct Arpeggiator : Module {
enum ParamIds {
CLOCK_PARAM,
RUN_PARAM,
RESET_PARAM,
STEPS_PARAM,
MODE_PARAM,
ROW1_PARAM,
ROW2_PARAM = ROW1_PARAM + 8,
ROW3_PARAM = ROW2_PARAM + 8,
ROW1_OCTAVE_PARAM = ROW3_PARAM + 8,
ROW2_OCTAVE_PARAM = ROW1... |
#include <stdio.h>
#include "gm_backend_cpp.h"
#include "gm_error.h"
#include "gm_typecheck.h"
#include "gm_transform_helper.h"
#include "gm_frontend.h"
#include "gm_rw_analysis.h"
static bool find_deferred_writes(ast_procdef* proc, std::list<gm_symtab_entry*>& target_syms, std::list<ast_foreach*>& target_foreach);
st... |
/*
* Copyright 2017 Cisco Systems, 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... |
/*
* Copyright 2020 OmniSci, 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 t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.