text stringlengths 3.08k 22k |
|---|
//-------------------------------------------------
//
// Class: L1MuGMTMIAUPhiPro1LUT
//
//
//
// Author :
// <NAME> HEPHY Vienna
//
// Migrated to CMSSW:
// <NAME>
//
//--------------------------------------------------
//-----------------------
// This Class's Header --
//---------------------... |
#include "wcda_txt.h"
#include <locale>
#include <limits>
#include <thread>
#include "utils.h"
Wcda_txt::Wcda_txt()
{
init_range(id_prim);
init_range(E_prim);
init_range(theta_prim);
init_range(phi_prim);
init_range(x_prim);
init_range(y_prim);
init_range(z_first_inter);
init_range(num);
i... |
//
// Copyright 2017 Animal Logic
//
// 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 ... |
#include <iostream>
#include <fstream>
#include <set>
#include <algebra/vector.h>
#include <algebra/infinite_vector.h>
#include <utils/function.h>
#include <utils/fixed_array1d.h>
#include <numerics/bvp.h>
#include <numerics/bezier.h>
#include <geometry/sampled_mapping.h>
//#include <interval/ds_basis.h>
#include <in... |
/*
* This file is part of staq.
*
* Copyright (c) 2019 - 2021 softwareQ Inc. All rights reserved.
*
* MIT License
*
* 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 restrictio... |
#include <fstream>
#include <iostream>
#include "llvm/ADT/MapVector.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Support/raw_ostream.h"
using CostPair = std::pair<std::string, std::string>;
using BBCostMap = llvm::MapVector<llvm::BasicBlock*, CostPair>;
struct CostModelPass ... |
#include<stdio.h>
#include<stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
#include <IL/il.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glew.h>
#include <GL/glut.h>
#include <iostream>
#endif
using namespace std;
//------------------------------------... |
/* opencv坐标系(row, col)
* 对应图象坐标系(y, x)
*/
#include <iostream>
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <algorithm>
#include <math.h>
using namespace std;
using namespace cv;
float gaussFunc(int x, int y, float sigma)
{
//... |
/*
The MIT License (MIT)
Copyright (c) 2013-2018 menonon
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, ... |
/*
* Copyright (c) 2019 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
// Copyright 2015 the V8 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.
#include "test/cctest/cctest.h"
#include "include/v8-experimental.h"
#include "include/v8.h"
#include "src/api.h"
#include "src/objects-inl.h"
namespa... |
//===- llvm-prof.cpp - Read in and process llvmprof.out data files --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#define BACKWARD_HAS_DW 1
#include "backward.hpp"
namespace backward
{
backward::SignalHandling sh;
}
#include "fsrk/shape/circle.h"
#include "fsrk/shape/ellipse.h"
#include <code_utils/cv_utils/randomcolor.h>
#include <code_utils/sys_utils/tic_toc.h>
#include <opencv2/opencv.hpp>
using namespace std;
#define WINDOW... |
/*
libmsgexchange - Client / Server Message Exchange Library
Copyright (C) 2012 BMS Informationstechnologie GmbH
*/
#include "msghandlerjson.h"
#include "msgjson.h"
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <malloc.h>
#include <syslog.h>
#include <unistd.h>
#include <sys/select.h>
... |
/*
* Copyright (c) 2019-2020, University of Southampton and Contributors.
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#pragma once
#include "mcu/ClockSourceIf.hpp"
#include "ps/PowerModelChannelIf.hpp"
#include <deque>
#include <systemc>
#include <tlm>
#include <unordered_set>
extern "C" {... |
#include "PresentMon.hpp"
#include "GPUInfoCallback.h"
GPUInfo g_gpuInfo;
// -------------------------------------------------------------------------------------------
GPUInfoConsoleData& GPUInfoConsoleData::operator= (const GPUInfoConsoleData& gid) {
processName = gid.processName;
processId = gid.proces... |
/**
* From the OpenGL Programming wikibook: http://en.wikibooks.org/wiki/Opengl::Programming
* This file is in the public domain.
* Contributors: <NAME>, <NAME>
*/
#include <cstdlib>
#include <iostream>
using namespace std;
/* Use glew.h instead of gl.h to get all the GL prototypes declared */
//#include <GL/glew.... |
/*
Copyright (c) 2013, The Linux Foundation. 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 co... |
#include <numpy_eigen/boost_python_headers.hpp>
#include <bsplines/BSpline.hpp>
using namespace bsplines;
using namespace boost::python;
// Function wrappers turn std::pairs into tuples.
boost::python::tuple timeInterval1(const bsplines::BSpline * bs)
{
std::pair<double,double> ti = bs->timeInterval();
return ... |
// -*-c++-*-
/*
*Copyright:
Copyright (C) <NAME>
This code is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This code is distributed in the hope t... |
#include <string>
using namespace std::string_literals;
#include <boost/functional/hash.hpp>
#include <fmt/format.h>
#include "vertex.hxx"
namespace vertex
{
std::size_t compile_vertex_attributes(graphics::vertex_layout &vertex_layout, vertex::SEMANTIC semantic, graphics::FORMAT format)
{
vertex_la... |
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <math.h>
#include "game_step.h"
/* randomly create atoms with the given params */
void init_rand_atoms(game_state *state, int n_atoms, atom_type atype, int max_x, int max_y)
{
int i, j;
float x, y;
atomDat atom;
printf("rando... |
/*
* Main authors:
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of Unison, see http://unison-code.github.io
*
* Copyright (c) 2016, RISE SICS AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... |
//===-- LanaiInstrInfo.cpp - Lanai Instruction Information ------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#ifdef __APPLE__
#include <GLUT/glut.h> // if we are on a Mac
#else
#include <GL/glut.h> // on linux
#endif
#include <math.h>
#include <iostream>
#include <string.h>
#include <sstream>
#include <png.h>
#include <stdlib.h>
#include <vector>
#include <fstream>
// User- Defined header files
#include "png_load.h"
#includ... |
#include <KOMO/komo.h>
#include <Kin/TM_default.h>
#include <Kin/F_PairCollision.h>
#include <Kin/viewer.h>
//===========================================================================
void TEST(Easy){
rai::Configuration C("arm.g");
cout <<"configuration space dim=" <<C.getJointStateDimension() <<endl;
KOMO... |
#include "simulator.h"
#include <Eigen/Eigenvalues>
#include <future>
#include <iomanip>
#include <iostream>
#include <limits>
#include <set>
using namespace Simulator;
std::string Simulator::AlgorithmToStr(const Algorithms algorithm)
{
switch (algorithm) {
case Algorithms::Metropolis:
return { "Me... |
/*
* Licensed Materials - Property of IBM
*
* trousers - An open source TCG Software Stack
*
* (C) Copyright International Business Machines Corp. 2006
*
*/
#include <trousers/tss.h>
#define TSS_ERROR_LAYER(x) (x & 0x3000)
#define TSS_ERROR_CODE(x) (x & TSS_MAX_ERROR)
// from common.c (ltp-tss)
... |
// HandThread implementation file
#include "HandThread.h"
#include <iostream>
using namespace std;
HandThread::HandThread(int rate, const char *name, const char *cfgF):
YARPRateThread(name, rate),
_handStatusOut(YARPOutputPort::DEFAULT_OUTPUTS, YARP_UDP),
_handForceOut(YARPOutputPort::DEFAULT_OUTPUTS, YARP_UDP)
{
cha... |
// Copyright 2020 The ShaderTrap Project 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 l... |
#include "midiKeySplit.hpp"
//-------------------------------------------------------------------------------------------------------
AudioEffect* createEffectInstance (audioMasterCallback audioMaster) {
return new MidiKeySplit (audioMaster);
}
MidiKeySplitProgram::MidiKeySplitProgram ()
{
// default Program Values... |
// #define NDEBUG
#include <test/gcstruct.h>
#include <collection/Array.h>
#include <gtest/gtest.h>
#include <map/HashSetProbing.h>
#include <map/HashSetTree.h>
#include <prng/xorshift.h>
#include <util/Bitset.h>
#include <util/Timer.h>
template <typename SET>
static void
run_bench(prng::xorshift32 &r, sp::TimerConte... |
// <NAME>
// CS 350
// The intent of this project is to measure runtime performance for
// the Quicksort algorithm using various pivot choosing strategies.
#include <iostream>
#include <fstream>
#include <chrono>
#include <algorithm>
#include "quicksort.h"
using namespace std::chrono;
typedef int (*partFunc)(int*,in... |
//
// LoaderOBJ.cpp : Defines the entry point for the console application.
//
// Specifique a Windows
#if _WIN32
#include <Windows.h>
#define FREEGLUT_LIB_PRAGMAS 0
#pragma comment(lib, "freeglut.lib")
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glew32s.lib")
#endif
// Entete OpenGL
#define GLEW_STATI... |
#include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<deque>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>... |
/** Shader compilation and use
* @file
*
* This source file is part of the Pegasus3d browser.
* See Copyright Notice in pegasus3d.h
*/
#include <stdio.h>
#include <stdlib.h>
#include "pegasus3d.h"
#include "xyzmath.h"
/** Structure for holding a ready-to-use shader program.
We do this so that we can depend on ... |
// Copyright 2016 Dr <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 law or ... |
/*
Copyright 2013 KLab 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 in wri... |
/* Copyright 2022 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... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
#include "xmol/io/pdb/PdbReader.h"
#include "xmol/io/pdb/PdbLine.h"
#include "xmol/io/pdb/PdbRecord.h"
#include "xmol/io/pdb/exceptions.h"
#include "xmol/utils/string.h"
using namespace xmol::io::pdb;
using namespace xmol;
namespace {
struct PdbLineSentinel {};
struct PdbLineInputIterator {
private:
std::istream*... |
#include "menu.h"
#include <algorithm>
#include <cute_files.h>
#include <SDL_inprint2.h>
#include <SDL.h>
#include "../../fs/util.h"
MenuSubModule::MenuSubModule(SharedState& gui, SDL_Window* window, SDL_Renderer* renderer)
: GUISubModule(gui, window, renderer)
{
fprintf(stderr, "[GUI][Menu] Initializing...\n");
... |
// Copyright 2017 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
#include "data.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <omp.h>
using namespace cv;
DataSet::DataSet(){
const Options& opt = Options::GetInstance();
int i;
for(i=0;i<opt.numThreads;i++){
x[i]=0;
y[i]=0;
srand(time(0)+i);
factor[i] = 1.+(float)... |
// This file is part of snark, a generic and flexible library for robotics research
// Copyright (c) 2011 The University of Sydney
// 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. Redistr... |
#include <tdme/audio/AudioStream.h>
#if defined(__APPLE__)
#include <OpenAL/al.h>
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__linux__) || defined(_WIN32) || defined(__HAIKU__)
#include <AL/al.h>
#endif
#include <array>
#include <string>
#include <vector>
#include <tdme/ut... |
#include <iostream>
#include <vector>
#include <ctime>
#include "v3d_message.h"
#include "tester.h"
#include "classification.h"
#include "mean_shift_fun.h"
#include "caffe/caffe.hpp"
using namespace std;
void Tester::test1()
{
QString model_file = inputStrings[0];
QString trained_file = inputStrings[1];
QString ... |
#include "glsl.hpp"
#include "opengl/opengl.hpp"
/* Remove the rightmost leading brackets.
*/
void clean_glsl_name(char * name, int & name_len) {
if (name_len && name[name_len - 1] == ']') {
name_len -= 1;
while (name_len && name[name_len] != '[') {
name_len -= 1;
}
}
n... |
//
// CoinTab.cpp
// PehlaSchool
//
// Created by <NAME> on 9/18/17.
//
//
#include "CoinTab.hpp"
#include "Managers/UserManager.hpp"
#include "Utils/TodoUtil.h"
#include "Common/Basic/SoundEffect.h"
int CoinTab::_numCoin;
#define TAG_COIN_IMAGE 1000
bool CoinTab::init()
{
if (!Node::init()) return fal... |
/*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
//
// Created by fabian on 17.05.21.
//
#include "Picture.hpp"
using namespace cv;
/**
* Filtered version of the image.
*/
void picture::show() const {
for (const auto & pair : this->images) {
if(not pair.img.empty()){
namedWindow("Image", WINDOW_AUTOSIZE);
imshow( "Image", pair.... |
// ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: //
// The MIT License (MIT)
// This source file is part of LORE
// ( Lightweight Object-oriented Rendering Engine )
//
// Copyright (c) 2017-2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of t... |
#include<bits/stdc++.h>
using namespace std;
using vi = vector<int>; using vvi = vector<vi>;
using ii = pair<int,int>; using vii = vector<ii>;
using l = long long; using vl = vector<l>; using vvl = vector<vl>;
using lu = unsigned long long;
using vb = vector<bool>; using vvb = vector<vb>;
using vd = vector<double>; us... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2019-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance... |
/*
* @file
* @author TPOC: <EMAIL>
*
* @copyright Copyright (c) 2017, New Jersey Institute of Technology (NJIT)
* 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 sour... |
#include "Road.h"
#include <Ogre.h>
#include <cassert>
#include <cmath>
using namespace Ogre;
enum {
POSITION_BINDING,
TEXCOORD_BINDING
};
CRoad::CRoad(Ogre::SceneNode *pOwnerNode, Ogre::String Name, OperationType opType)
{
initialize(opType, false);
setMaterial("BaseWhiteNoLighting");
mDirty = true;
mTessel... |
/*
* @name BookFiler Module - HTTP w/ Curl
* @author <NAME>
* @version 1.00
* @license MIT
* @brief HTTP module for BookFiler™ applications.
*/
// C++
#include <sstream>
#include <thread>
// Bookfiler Modules
#include <BookFilerModuleHttpLoader.hpp>
std::mutex globalMutex;
std::string authCode, userId, accessT... |
/*
* Copyright (c) 2019 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <vector>
#include <string>
#include <cassert>
#include <cstdlib>
#include <set>
#include <filesystem>
#if defined(_WIN32) // windows
# define NO... |
// C++ (and CasADi) from here on
#include <casadi.hpp>
#include "utils.h"
#include "biorbdCasadi_interface_common.h"
#include "AnimationCallback.h"
#include "biorbd.h"
extern biorbd::Model m;
biorbd::Model m("../../models/BrasViolon.bioMod");
const std::string optimizationName("UpAndDowsBowCasadi");
const ViolinStri... |
/**
*
* This file is part of the COIN-OR CBC MIP Solver
*
* Class responsible for separating clique cuts.
* It uses the Bron-Kerbosch (BK) algorithm.
*
* @file CglBKClique.hpp
* @brief Clique cut separator
* @author <NAME> and <NAME>
* Contact: <EMAIL> and <EMAIL>
* @date 03/27/2020
*
* \copyright{Copyrigh... |
/*
* VHDL code generation for logic devices.
*
* Copyright (C) 2008-2009 <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
* (... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of the BSD license as f... |
// Copyright 2020 The 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 to in... |
/*
* example-ms2-ms1-matching.cpp
*
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Copyright (c) 2010 <NAME> <<EMAIL>>
*
* This file is part of libfbi.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... |
#include "AI.h"
AI::AI(string FEN, color computerColor)
: aiColor(computerColor), nodesVisited(0),
currentAge(0)
{
genChessData data;
data.genMoveData(); // Generates bitboards needed for move generation
board.setupBoard(FEN);
transpositionHash = ZobristHash(static_cast<size_t>(1e7));
}
AI::AI(string FEN, color... |
// -*- C++ -*-
//
//
// Original Author: <NAME>,40 1-A28,+41227671915,
// Created: Tue Nov 12 17:03:19 CET 2013
// $Id$
//
//
// system include files
#include <memory>
#include <string>
// user include files
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/EDProducer.... |
/*
@file sql5300.cpp - main entry for the SQL Shell of
the relation manager
@author <NAME>, <NAME>
@ Seattle University, cpsc4300/5300, 2020 Spring
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "db_cxx.h"
#include "SQLParser.h"
#include "sqlhelper.h"
#include "heap_storage.h"
usin... |
#include <cmath>
#include <cstdio>
#include <cstring>
#include <queue>
#include <vector>
#include <algorithm>
#include <unordered_map>
using namespace std;
#define EPS 1e-8
#define INF 1e99
template <typename T>
inline bool eq(T x, decltype(x) y) {
return abs(x - y) < EPS;
}
#define NMAX 500
#define MMAX 50000... |
/**
* Copyright (c) 2017-present, Facebook, 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 ... |
//
// Created by grigorii on 9/8/19.
//
#include "behavior_planner.h"
#include <algorithm>
#include <iostream>
#include "helpers.h"
#include "spline.h"
std::string to_string(action a)
{
switch(a)
{
case(action::KL): return "action::KL";
case(action::LCL): return "action::LCL";
case(a... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
/*
... |
/*
* Copyright (c) 2021-2022 Valve Corporation
* Copyright (c) 2021-2022 LunarG, 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... |
#include <stdio.h>
#include <stdlib.h>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <glm/glm.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "ext.h"
static const char *const window_title = "Vismeit";
static const int initial_window_width = 640;
static const int initia... |
// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
//
// Copyright (c) 2006-2018, <NAME>, FU Berlin
// Copyright (c) 2016-2018, <NAME> & <NAME>
// All rig... |
// Copyright (C) 2018 <NAME>, <NAME>, <NAME>.
// Boost Software License - Version 1.0 - August 17th, 2003
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, dis... |
#include "main.h"
#include "ports.hpp"
#include "railscalib.hpp"
#include "feedback.hpp"
extern Feedback feedback;
extern bool doClearArm;
extern bool doUnclearArm;
extern bool doClearDropArm;
/**
* Main class for the Rails angling subsystem
* Wraps around AsyncPosIntegratedController and AsyncVelIntegratedControl... |
/*---------------------------------------------------------------------------*/
/* Volume Rendering Application Testing Tools */
/* Copyright (C) 2006-2007 <NAME> */
/* */
/* This so... |
#include "Thread.h"
Baton *Thread::baton = NULL;
uv_loop_t *Thread::loop = NULL;
void (*Thread::doExecute)() = NULL;
bool Thread::isWaiting = false;
bool Thread::isRan = false;
bool Thread::isDied = false;
static std::string GBKToUTF8(const std::string &strGBK)
{
static std::string strOutUTF8 = "";
WCHAR *str... |
//
// (C) <NAME> 2007-2010, all rights reserved. See the accompanying "License.txt" for licensed use.
//
#include "compliance.h"
#include "util.h"
#include "../src/charls.h"
#include <iostream>
#include <vector>
#include <cstring>
using namespace charls;
namespace
{
void Triplet2Planar(std::vect... |
#include <stdio.h>
#include <iostream>
#include <ippcore.h>
#include <ippvm.h>
#include <ipps.h>
#include <ippi.h>
#include <ippcv.h>
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "../timing.h"
#ifndef NRUNS
#define NRUNS 5
#endif
#ifndef SI... |
//
// Test wavetable oscillator
//
// Created by <NAME> on 4/31/12
// EarLevel Engineering: earlevel.com
// Copyright 2012 <NAME>
//
// For a complete explanation of the wavetable oscillator and code,
// read the series of articles by the author, starting here:
// www.earlevel.com/main/2012/05/03/a-wavetable-osc... |
/*----------------------------------------------------------------------------
util.cpp
utility functions for phone book server
Copyright (c) 1997-1998 Microsoft Corporation
All rights reserved.
Authors:
byao <NAME>
History:
1/23/97 byao -- Created
... |
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <objbase.h>
#include <comdef.h>
#include <comdefsp.h>
#include <iostream>
#include <tchar.h>
#include "nameof.hpp"
constexpr auto check = ::_com_util::CheckError;
enum class IDLFLAG : USHORT {
NONE = IDLFLAG_NONE,
FIN = IDLF... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
#include "Scenario.hpp"
#include <iostream>
#include "ANSITextGrid.hpp"
#include "Board.hpp"
std::ostream &operator<<(std::ostream &o,const Scenario &scen)
{
int i,j;
ANSITextGrid atg(10 * scen.GetWidth() - 1 + ((scen.GetHeight() > 1) ? 5 : 0),
(7 * (scen.GetHeight() - 1)) + 11);
for (i = 0 ; i < scen.G... |
// Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaCorePreCompiled.h"
#include "Aes256Decoder.h"
#include "Core/String/HeapString.h"
#include "Core/Memory/MemoryData.h"
#include "Core/IO/Stream/IStream... |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iostream>
#include "recpacketcache.hh"
#include "cachecleaner.hh"
#include "dns.hh"
#include "dnsparser.hh"
#include "namespaces.hh"
#include "lock.hh"
#include "dnswriter.hh"
#include "ednsoptions.hh"
RecursorPacketCache::RecursorPacketCache()
{
d_hits = d_... |
/*
* AgeEstimation.cpp
*
* Created on: Mar 22, 2015
* Author: wuxuef
*/
#include "AgeEstimation.h"
//#include <direct.h>
#define free2dvector(vec) \
{ \
for(int i = 0; i < vec.size(); i++) vec[i].clear(); \
vec.clear(); \
}
/* get reference to pixel at (col,row),
... |
// ------------------------------------------------------------------------ //
// Copyright 2021 SPTK Working Group //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
#include "level.h"
Level::Level() {
this->bgScroll = 0;
this->gameScrollX = 0;
this->gameScrollY = 0;
this->bgLayer = 0;
this->gameLayer = 0;
hero.inertia = 0;
}
Level::~Level() {
}
void Level::updateGameItem(GameItem &item) {
if(item.state == DISAPPEAR)
return;
item.curFrame... |
#include <stdlib.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include "fileio.h"
#include "simbox.h"
#include "exception.h"
#include "fileioutils.h"
#include "protocell.h"
void FileIO::ReadInputFile(Simbox* simbox)
{
FILE* f;
int nrlines;
char line[LINE_LENGTH];
// open parameter file
ch... |
#include "lib.h"
void unary_table_init(UNARY_TABLE *table) {
const uint32 INIT_SIZE = 1024;
uint64 *bitmap = (uint64 *) malloc(INIT_SIZE/8);
memset(bitmap, 0, INIT_SIZE/8);
table->bitmap = bitmap;
table->size = INIT_SIZE;
table->count = 0;
}
void unary_table_cleanup(UNARY_TABLE *table) {
free(table->bi... |
/*
* File: Test
* Author: <NAME>
*
*/
#include <gtest/gtest.h>
#include "TestHelper.hpp"
#include <ApiJsonObject.h>
#include <server/ApiServer.h>
class MyObject : public ApiJsonObject
{
public:
int i = 10;
string s = "";
bool b = false;
string pNonSave = "";
string pReadonly = "keep thi... |
/**
Copyright 2007-2020 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include "fost-core.hpp"
#include <fost/json.hpp>
#include <fost/insert.hpp>
#include <fost/unicode.hpp>
#include <fost/detail/coerce.hpp>
#include... |
#include "stdafx.h"
#include "r4.h"
#include "xrRenderCommon/ResourceManager.h"
#include "xrRenderCommon/fbasicvisual.h"
#include "xrEngine/fmesh.h"
#include "xrEngine/xrLevel.h"
#include "xrEngine/x_ray.h"
#include "xrEngine/IGame_Persistent.h"
#include "xrCore/stream_reader.h"
#include "xrRenderCommon/dxRenderDevice... |
//
// Created by <NAME> on 12/11/15.
//
#include "gtest/gtest.h"
#include "TVector3_test_types.h"
TEST(vector3, constructor) {
tvec3i a = {3, -8, -98};
tvec2i xy = {3, -8};
EXPECT_EQ(a.xy, xy);
a.xy = tvec2i(4,8);
EXPECT_EQ(a, tvec3i(4, 8, -98));
tvec3i zero = {0, 0, 0};
EXPECT_EQ(t... |
#define BOOST_TEST_MODULE AdvisorTest
#include <boost/test/unit_test.hpp>
#include "Advisor.h"
#include "Event.h"
#include "Link.h"
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/breadth_first_search.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/visitors.hpp>
#include <vector>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.