text stringlengths 5.71k 33.7k |
|---|
/* pubkey-enc.c - Process a public key encoded packet.
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2006, 2009,
* 2010 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... |
/*
Angie Engine Source Code
MIT License
Copyright (C) 2017-2021 <NAME>.
This file is part of the Angie 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, ... |
/*
** Copyright (C) 2012 <NAME> <<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 version 2 of the License, or
** (at your option) any later version.
**
** This program is d... |
/*
This program solves various problems related to the Fibonacci Series
1) Find the nth Fibonacci Number using an efficient algorithm
2) Find the last digit of the nth Fibonacci Number
3) Find the value of the nth Fibonacci Number modulo m (n <= 10^14)
4) Find the last digit of the sum of the first n Fibonacci Numbers ... |
#include "stdafx.h"
#include <dinput.h>
#include "../xr_ioconsole.h"
#include "../xr_input.h"
#include "../xr_ioc_cmd.h"
#include "xr_level_controller.h"
//************************************************ Input
int key_binding [ 2048 ];
_keybind keybind[] = {
{ "left", kLEFT },
{ "right", kR... |
#include <iostream>
#include <algorithm>
#include <cassert>
// #include <random>
using namespace std;
bool debug = false;
// 大域変数・定数
const int T = 9; // 全ターン数
const int P = 4; // プレイヤー(大名)数
const int N = 6; // 領主の数
const int remain[10] = {23, 9, 8, 7, 6, 5, 8, 7, 6, 5}; // 見込み投票数
const int maxpt = 6;
const int minpt ... |
/*
* Copyright (c) 2013-2014,2016,2019-2021 - Adjacent Link LLC,
* Bridgewater, New Jersey
* 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 reta... |
#include "autonomous.h"
void doNothing() {}
struct SwitcherMenu {
const char * name;
vector<SwitcherMenu> submenus;
vfptr fnc;
SwitcherMenu(const char *name, std::initializer_list<SwitcherMenu> menus, vfptr fnc = nullptr) :
name(name), fnc(fnc) {
for (auto &&m : menus) {
... |
#include <iostream>
#include <chrono>
#include <stdio.h>
#include <dirent.h>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <time.h>
#include <stdio.h>
#include <opencv2/core/core.hpp>
// #include <opencv2/core/eigen.hpp>
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Geometry>
#include <eigen... |
#include "levering_up.h"
#include <fstream>
#include <solvehfvc.h>
#include <RobotUtilities/utilities.h>
#include <RobotUtilities/TimerLinux.h>
// Matlab CodeGen files
#include <stddef.h>
#include <stdlib.h>
#include <rtwtypes.h>
#include <jacobian_levering_up.h>
#include <jacobian_levering_up_types.h>
#include <jaco... |
//----------------------------------------------------------------------
// Titel : ATMegaRacer
//----------------------------------------------------------------------
// Funktion : Kleines ATMega Racer spiel
// Schaltung : ATMega32
//----------------------------------------------------------------------
//... |
/*
* DummyUDPFrameDecoder.cpp
*
* ODIN data frame decoder plugin for dummy UDP frame streams - used in integration testing
*
* Created on: May 12, 2017
* Author: <NAME>, STFC Application Engineering Group
*/
#include <sstream>
#include "DummyUDPFrameDecoder.h"
#include "version.h"
#include "gettime.h"
... |
//##########################################################################
//# #
//# CLOUDCOMPARE PLUGIN: qFacets #
//# #
//# This pr... |
/**************************************************************************
*
* Copyright 2017 Intel Corporation
* 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 Softwar... |
#include "stdlib.h"
#include "stdio.h"
#include "string.h"
#include "assert.h"
#include "stdint.h"
#include "versat.hpp"
#include "parser.hpp"
#define ARRAY_SIZE(array) sizeof(array) / sizeof(array[0])
int CalculateLatency_(PortInstance portInst, std::unordered_map<PortInstance,int,SimpleHash<PortInstance>,SimpleEqu... |
/***********************************************************************
Changes made by: <NAME>
Date: 19th May
This node publishes the Final output to the high level planner in PoseStamped form
in the odom frame.
*************************************************************************/
#include <waypoint_selector.... |
/**
* ofxTimeline
* openFrameworks graphical timeline addon
*
* Copyright (c) 2011-2012 <NAME>
* Development Supported by YCAM InterLab http://interlab.ycam.jp/en/
* http://jamesgeorge.org + http://flightphase.com
* http://github.com/obviousjim + http://github.com/flightphase
*
* Permission is hereby granted, ... |
// Copyright (c) 2017 Graphcore Ltd. All rights reserved.
#include <algorithm>
#include <boost/multi_array.hpp>
#include <boost/optional.hpp>
#include <boost/optional/optional_io.hpp>
#include <boost/program_options.hpp>
#include <boost/test/tools/floating_point_comparison.hpp>
#include <cassert>
#include <exception>
#... |
// app.cpp
// E3DConv: Convert various 3D formats to internal E3D format
//
// Copyright (c) 2004-2017 Elements Interactive B.V.
///////////////////////////////////////////////////////////////////
//Link Edge
#pragma comment(lib, "edge.lib")
#include "edgemain.h"
//Windows headers
#include <direct.h>
#inc... |
#ifdef _WIN32
#include <conio.h>
#else
#include <sys/select.h>
#include <termios.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdio.h>
// #include <curses.h>
#include <unistd.h>
#endif
#include "cykTools.h"
// #include "armaMex.hpp"
// #include <time.h>
#include <math.h>
//#include "mat.h"
... |
#include "Connection.h"
#include "Request.h"
#include "APIHandlers.h"
#include "DAW.h"
#include "FieldParser.h"
#include "Base64.h"
#include "Exception.h"
#include "Logger.h"
#include "sha1.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h... |
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsMutex.h>
#include <epicsString.h>
#include <epicsStdio.h>
#include <epicsMutex.h>
#include <epicsExport.h>
#include <iocsh.h>
#include "elcomat3000.h"
#include ... |
#include "imagelabel.h"
ImageLabel::ImageLabel(QWidget *parent) :
QLabel(parent)
{
setMinimumSize(1,1);
setAlignment(Qt::AlignCenter);
setMouseTracking(true);
// This is important to preserve the aspect ratio
setScaledContents(true);
// Dark background
setBackgroundRole(QPalette::Shad... |
// FOVE DirextX11 Example
// This shows how to display content in a FOVE HMD via the FOVE SDK & DirectX 11
#include "DXUtil.h"
#include "IFVRCompositor.h"
#include "IFVRHeadset.h"
#include "Model.h"
#include "NativeUtil.h"
#include "Util.h"
#include <atlbase.h>
#include <chrono>
#include <d3d11_1.h>
#inclu... |
#include "ScanNetScan2CADLoader.h"
//
// Created by sc on 5/14/20.
//
#include <utility>
#include "../../Files/Label_NYU40.h"
#include "../../Files/Label_SunCG11.h"
#include "../../ConnectedComponent/ConnectedComponent/CPU/ConnectedComponent_CPU.h"
#include <pcl/kdtree/kdtree_flann.h>
ScanNetScan2CadMesh_Loader::ScanN... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
//===- LoopFusionUtils.cpp ---- Utilities for loop fusion ----------===//
//
// Copyright 2019 The MLIR 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.... |
#include "audiothread.h"
bool endOfMusic;
Track *curTrack;
bool changedMeta;
void __stdcall syncFunc(HSYNC handle, DWORD channel, DWORD data, void *user)
{
Q_UNUSED(data);
Q_UNUSED(user);
BASS_ChannelRemoveSync(channel, handle);
BASS_ChannelStop(channel);
endOfMusic = true;
}
void __stdcall syncM... |
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <sstream>
#include <string>
#include "matricks.hpp"
#include "flsode.hpp"
#include "calcPoincare.hpp"
using namespace std;
using namespace Matricks;
typedef struct {
double phisection;
double phishape;
} poincareParamsF;
// LSODE (FEX,... |
/*
* Copyright (c) 2015 <NAME>
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
// This file is the entry point for zig0, which is *only* used to build
// stage2, the self-hosted compiler, into an object file, which is then
// linked by the same build system (cmake)... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
/*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/particles/include/SkParticleEffect.h"
#include "include/core/SkPaint.h"
#include "modules/particles/include/SkParticleBinding.h"
#include "modules/particles/inclu... |
#include "TerrainResource.h"
#include <cmath>
using namespace PaintsNow;
TerrainResource::TerrainResource(ResourceManager& manager, const String& uniqueID) : BaseClass(manager, uniqueID), width(0), height(0), deltaHeight(0.05f) {}
void TerrainResource::Attach(IRender& render, void* deviceContext) {
}
void TerrainR... |
// Scintilla source code edit control
/** @file LineMarker.cxx
** Defines the look of a line marker in the margin.
**/
// Copyright 1998-2011 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which this software may be distributed.
#include <cstring>
#include <cmath>
#include <std... |
//----------------------------------------------------------------------
// File: bd_tree.cpp
// Programmer: <NAME>
// Description: Basic methods for bd-trees.
// Last modified: 01/04/05 (Version 1.0)
//----------------------------------------------------------------------
// Copyright (c) 1997-2005 University of M... |
/*
qview.cpp
Quick view panel
*/
/*
Copyright © 1996 <NAME>
Copyright © 2000 Far Group
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
... |
// Copyright 2021 The Khronos Group
// SPDX-License-Identifier: Apache-2.0
#include "MainWindow.h"
// std headers
#include <iomanip>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <unordered_map>
// imgui headers
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include "imgui_stdlib.... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. 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 rights to use,... |
#include <sstream>
#include <fstream>
#include <iostream>
#include <vector>
#include <cstdlib>
#include <trident/ml/transe.h>
#include <trident/ml/embeddings.h>
using namespace std;
#define DIMS 50
void update_gradient_matrix(std::vector<EntityGradient> &gradients,
std::vector<std::unique_ptr<float>> &signm... |
//
// "$Id$"
//
// Menu utilities for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2016 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 lic... |
/*
* Copyright 2010 Google Inc.
* Author: <NAME>
*
* 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 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "ktx.h"
#include "SkBitmap.h"
#include "SkStream.h"
#include "SkEndian.h"
#include "gl/GrGLDefines.h"
#include "GrConfig.h"
#include "etc1.h"
static inline uint32_... |
#include <cassert>
#include <chrono>
#include <iostream>
#include "matrix.hpp"
#include "shared.hpp"
#include "sparfun.hpp"
inline std::chrono::time_point<std::chrono::high_resolution_clock> now() {
return std::chrono::high_resolution_clock::now();
}
inline int to_seconds(std::chrono::time_point<std::chrono::high_r... |
/*
* ----------------------------------------------------------------------------
* Programmer(s): <NAME> @ LLNL
* ----------------------------------------------------------------------------
* SUNDIALS Copyright Start
* Copyright (c) 2002-2022, Lawrence Livermore National Security
* and Southern Methodist Univer... |
#include "Contact.hpp"
#include "../Rigidbody.hpp"
static fr::Real testTotalTime = 0.0f;
static unsigned int testCount = 0;
// todo optimize
void Contact::calculateContactBasisMatrix(fr::Mat3 &toWorld) const
{
//const fr::Vec3 &xAxis = normal;
//fr::Vec3 tmp{1, 0, 0};
//// pointing closer to world x axi... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2017 Jadavpur University, India
*
* 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 p... |
//
// Test_Envelopes.cpp -- C main functions for the basic CSL envelope and control patching tests.
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
// This program simply reads the run_tests() function (at the bottom of this file)
// and executes a list of basic CSL tests
//
#ifndef... |
/*************************************************************************/
/* scroll_container.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/// Pimpact
/// \author huppd
/// \date 2018
#include <mpi.h>
#include "Teuchos_CommandLineProcessor.hpp"
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_XMLParameterListCoreHelpers.hpp"
#include "Teuchos_RCP.hpp"
#include "Pimpact_Grid.hpp"
#include "Pimpact_Operator.hpp"
#include "Pimpact_MultiGrid.hpp"
#... |
#include "pch.h"
#include "sc.h"
#include "nacl_includes\crypto_int64.h"
#include "nacl_includes\crypto_uint32.h"
#include "nacl_includes\crypto_uint64.h"
static crypto_uint64 load_3(const unsigned char *in)
{
crypto_uint64 result;
result = (crypto_uint64) in[0];
result |= ((crypto_uint64) in[1]) << 8;
result ... |
/*
* The MIT License
*
* Copyright (c) 1997-2019 The University of Utah
*
is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, co... |
/*
* noise.c
*
* Copyright (C) 1989, 1991, <NAME>, <NAME>
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial prod... |
#define SHOWPROGRESS
#define TIMESTUFF
#include "ilqr.h"
using std::cout;
using std::endl;
using std::min;
using std::max;
double iLQR::init_traj(const VectorXd& x_0, const VecOfVecXd& u_0) {
T = u_0.size();
//initialize xs and us
xs.resize(T+1);
x0 = xs[0] = x_0;
us = u_0;
// call forward_pass to get ... |
/*
Nexus
Copyright(C) 2012 - <NAME>
ISTI - Italian National Research Council - Visual Computing Lab
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 2 of the License, or
(at your optio... |
//
// ModelBaker.cpp
// libraries/baking/src
//
// Created by <NAME> on 9/29/17.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ModelBaker.h"
#include <PathUtils.h... |
// nnetbin/nnet-train-mmi-sequential.cc
// Copyright 2012-2013 Brno University of Technology (author: <NAME>)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
/*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <cstdint>
#include <ostream>
#include <pup.h>
#include "Options/Options.hpp"
#include "Parallel/CharmPupable.hpp"
#include "Time/Time.hpp"
#include "Time/TimeSteppers/TimeStepper.hpp"
#include "Utilities/Co... |
#include <algorithm>
#include <cassert>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <unordered_map>
#include <utility>
#include <variant>
#include <vector>
enum TokenType {
DECL_INT, // integer declaration ("i")
DE... |
// Copyright 2014 PDFium 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 "testing/gtest/include/gtest/gtest.h"
#include "../../../testing/fx_string_testhelpers.h"
#include "../../include/fxcrt/fx_basic.h"
TEST(fxcrt, WideSt... |
/*
* This source code is public domain.
*
* Authors: <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>> (endian and char fixes for PPC)
*/
#include "stdafx.h"
#include "sndfile.h"
#include "tables.h"
#ifdef _MSC_VER
//#pragma warning(disable:4244)
#endif
//////////////////////////////////////////////////////
//... |
/*
* bluetooth.cpp
*
* This file is part of the QtSixA, the Sixaxis Joystick Manager
* Copyright 2008-10 <NAME> <<EMAIL>>
*
* QtSixA can be redistributed and/or modified under the terms of the GNU General
* Public License (Version 2), as published by the Free Software Foundation.
* A copy of the license is incl... |
/*
==============================================================================
Copyright (c) 2019, <NAME> - <NAME>
All rights reserved.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
... |
/******************************************************************************
Copyright 2019 <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/li... |
// ROS includes
#include <ros/ros.h>
// #include <image_transport/image_transport.h>
// #include <cv_bridge/cv_bridge.h>
// #include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/CompressedImage.h>
#include <ros/console.h> //DEBUG
// OpenCV includes
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgpr... |
/*
*********************************************************
This code is a proprietary of Kapil Rana
Following may not be used in part or in whole without the
prior permission of Kapil Rana
Author: <NAME>
Date: 20/06/2015
Purpose: PUSH FYI TCPReader
*********************************************************
... |
/* Copyright (C) 2017 <NAME> <<EMAIL>>
*
* This work is licensed under the MIT License.
* To view a copy of this license, visit:
* https://opensource.org/licenses/MIT
*
* This file is part of Madplotlib, a C++ library for building simple
* 2D plots inspired on matplotlib.
*/
/*
* plot() has many forms. Th... |
// ----------------------------------------
// OpenGL Cellular Automaton Engine 3D
// <NAME> <<EMAIL>>
//
// (c)2015 P1X
// http://p1x.in
//
// Repo:
// https://github.com/w84death/cellular-automaton
//
// Linux:
// gcc -Os ca3d.cpp -o ca3d.app -lglut -lGL -lGLU -lm
//
// OSX:
// gcc -o ca3d ca3d.cpp -framework GLUT -f... |
#include "utilities.h"
bool my_saveANO(QString ano_dir, QString fileNameHeader, QList<QString> suffix){
if(!ano_dir.endsWith('/')){ano_dir = ano_dir+'/';}
FILE * fp=0;
fp = fopen((char *)qPrintable(ano_dir+fileNameHeader+QString(".ano")), "wt");
if (!fp)
{
v3d_msg("Fail to open file to writ... |
// ****************************************************************************
// This file is part of the Integrating Vision Toolkit (IVT).
//
// The IVT is maintained by the Karlsruhe Institute of Technology (KIT)
// (www.kit.edu) in cooperation with the company Keyetech (www.keyetech.de).
//
// Copyright (C) 2014 K... |
/**
* @file phd_particle_filter.cpp
* @brief phd particle filter
* @author <NAME>
*/
#include "phd_particle_filter.hpp"
#ifndef PARAMS
const float POS_STD = 3.0;
const float SCALE_STD = 3.0;
const float THRESHOLD = 1000;
const float SURVIVAL_RATE = 0.9;
const float CLUTTER_RATE = 3.0;
c... |
#include "std.h"
#include "block.h"
#include "stm.h"
#include "toker.h"
#include "output.h"
using namespace CG;
static vector<FunBlock*> _funBlocks;
static vector<ClassBlock*> _classBlocks;
//******************** Block **********************
Block::Block( Block *o ):outer(o),cg_debug(0){
fun_block=outer ? outer->f... |
/** @file
SSL dynamic certificate loader
Loads certificates into a hash table as they are requested
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional inform... |
/*
* \file L1TRPCTF.cc
*
* \author <NAME>
*
*/
#include "DQM/L1TMonitor/interface/L1TRPCTF.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DataFormats/RPCDigi/interface/RPCDigi.h"
#include "DataFormats/RPCDigi/interface/RPCDigiCollection.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#inc... |
#ifdef WIN32
#define NOMINMAX
#endif
#define _USE_MATH_DEFINES
#include <math.h>
#include <app.h>
#include <NewtonFunctionMinimizer.h>
#include <RigidBodySimulation.h>
#include <MechanismOptimizer.h>
#include "mechanisms.h"
#include <iostream>
#include <chrono>
#include <algorithm>
#include <Eigen/Core>
using Ei... |
/*
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be usefu... |
// Copyright (c) 2013 The Sippet 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 "sippet/uri/uri.h"
#include <sstream>
#include <utility>
#include <string>
#include <algorithm>
#include "sippet/base/stl_extras.h... |
/*
* fb.cpp
* Simulated video feedback using the ArrayFire GPU library.
* Examples:
* fb --blur=3 --roll=1 --zoom=1.01 --blend=0.1 --crawl=1.1,-0.5,1.4,-1.3 --noise=0.05,0.01 --seed=0 --histeq
* fb --roll=1 --zoom=1.01 --blend=0.1 --noise=0.05,1.0 --seed=1 --histeq --dump=images --nframes=10
*/
#include <stdio.... |
// -*- C++ -*-
//
// Package: SiPixelMonitorRawData
// Class: SiPixelRawDataErrorSource
//
/**\class
Description:
Produces histograms for error information generated at the raw2digi stage for
the pixel tracker.
Implementation:
Takes a DetSetVector<SiPixelRawDataError> as input, and uses it to populate a... |
// Copyright (c) 2009, Whispersoft s.r.l.
// 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 cond... |
////////////////////////////////////////
// MeshObject.cpp
////////////////////////////////////////
#define _CRT_SECURE_NO_WARNINGS
#define GLM_ENABLE_EXPERIMENTAL
#include "MeshObject.h"
#include "LambertMaterial.h"
#include <glm/glm.hpp>
#include <string>
#include <unordered_map>
/////////////////////////////////... |
// $Id: AliHLTTPCGMSliceTrack.cxx 41769 2010-06-16 13:58:00Z sgorbuno $
// **************************************************************************
// This file is property of and copyright by the ALICE HLT Project *
// ALICE Experiment at CERN, All rights reserved. *
// ... |
/*
SIN Toolchain
ParseExpression.cpp
Copyright 2019 <NAME>
Contains the implementations of the functions to parse expressions, including:
- std::shared_ptr<Expression> parse_expression(size_t prec=0, std::string grouping_symbol = "(", bool not_binary = false);
- std::shared_ptr<Expression> create_dereference_object... |
#include "Audio.h"
Audio::Audio() {}
Audio::~Audio() {}
bool Audio::Step(u8 cycles, bool isDoubleSpeedEnabled) {
float delta = deltaTimePerEmulatedCycle * cycles;
if (isDoubleSpeedEnabled)
delta /= 2;
elapsedTime += delta;
UpdateChannel1(delta);
UpdateChannel2(delta);
UpdateChannel3(... |
/* --------------------------------------------------------------------------
*
* File Ch8_JSONWorldBuilder.cpp
* Ported By <NAME>
* Contact <EMAIL>
*
* Created By <NAME>
* Contact <EMAIL>
*
* -----------------------------------------------------... |
/*
*/
#include <memory>
#include <cstring>
#include <vector>
#include "network.hpp"
extern "C" {
#include <crc16.h>
}
#include <FS.h>
#include <scripting.hpp>
#define WIFI_getChipId() ESP.getChipId()
#define FileSystemFS SPIFFS
#define FileSystemFSBegin() SPIFFS.begin()
#include <WiFiManager.h> // https://github.c... |
/// \file The definition of AES 128 function
/// <NAME> (<EMAIL>)
#include "aes_128.h"
#include <ilang/ila/ast/expr.h>
#include <cassert>
unsigned S_table[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b,
0xfe, 0xd7, 0xab, 0x76, 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
... |
/*
* GLAM - GLSL Linear Algebra Math Library
*
* Copyright (c) 2013, <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 t... |
/* Copyright (C) 2011 Ion Torrent Systems, Inc. All Rights Reserved */
#include <sys/stat.h>
#ifdef __linux__
#include <sys/vfs.h>
#endif
#ifdef __APPLE__
#include <sys/uio.h>
#include <sys/mount.h>
#endif
#include <errno.h>
#include <assert.h>
#include "Image.h"
#include "crop/Acq.h"
#include "IonVersion.h"
#inclu... |
//=================================================================
// This file is a part of cdhit-dup.
// By <NAME> (<EMAIL>, <EMAIL>)
//=================================================================
#include <math.h>
#include <ctype.h>
#include "minString.hxx"
#include "minArray.hxx"
#include "minMap.hxx"
#incl... |
#include "global.h"
#include "menu02.h"
#include "shaderfactory.h"
#include "staticfunctions.h"
#include "iconlibrary.h"
#include <QFont>
#include <QColor>
#include <QtMath>
#include <QMessageBox>
#include <QApplication>
#include <QDir>
Menu02::Menu02() : QObject()
{
m_stepTexture = 0;
m_glTexture = 0;
m_glVert... |
/*
* File: alternative_transcript_collection.cc
* Author: <NAME> <thomas(at)bioinf.uni-leipzig.de>
*
* Created on May 13, 2016, 9:51 AM
*/
#include "alternative_transcript_collection.h"
#include "../../Datatype_Templates/move.h"
#include "../../Options/options.h"
#include "../../Datatype_Templates/reader_list... |
/**
* @file lloutputmonitorctrl.cpp
* @brief LLOutputMonitorCtrl base class
*
* $LicenseInfo:firstyear=2001&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU... |
#include "cminus_builder.hpp"
#include <iostream>
using namespace llvm;
using namespace std;
#define CONSTi32(num) ConstantInt::get(context, APInt(32, num))
static Function *curr_function = nullptr;
static vector<string> curr_func_arg_names;
static bool is_outermost_compound = false;
static bool last_returned = fals... |
/*********************************************************************
* This file provide implementations for the functions declared
* in Geometry.h
* It serves as an alternative to the now deprecated fixed-function
* pipeline that GLUT utilizes.
* Written in July 2016 by <NAME>. Extended September 2016 to support mor... |
/*
* Author: kayo
*/
#include <sstream>
#include "Method.h"
#include "../heap/Object.h"
#include "../heap/ArrayObject.h"
#include "../../symbol.h"
#include "../../classfile/constant.h"
#include "../../interpreter/interpreter.h"
using namespace std;
Method::ExceptionTable::ExceptionTable(Class *clazz, BytecodeReade... |
#include "log_writer.h"
#include "collector_controller.h"
#include <cstdlib>
#include "unistd.h"
#include <google/protobuf/util/delimited_message_util.h>
#include <google/protobuf/stubs/common.h>
#include "network.h"
#include <cstdint>
#include <stdio.h>
#include <pthread.h>
#include <string.h>
#include <dlfcn.h>
#incl... |
#include <fstream>
#include <map>
#include <iomanip>
#include "student.h"
#include "constants_and_globals.h"
//==========================================================================
bool is_lefty_seat(const std::string& s) {
return s.back() == 'L';
}
class ZoneInfo {
public:
ZoneInfo() { max = 0; count = 0... |
//
// AvatarMixerSlave.cpp
// assignment-client/src/avatar
//
// Created by <NAME> on 2/14/2017.
// Copyright 2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <algorithm>
#include ... |
/*
* $Id: LOD_ManMesh2.cpp 35147 2011-02-25 10:47:28Z jesterking $
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 2
* of the Licens... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.