text stringlengths 8.71k 38.4k |
|---|
/*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
// file: sift-driver.cpp
// author: <NAME>
// description: SIFT command line utility implementation
// AUTORIGTHS
#include "sift.hpp"
#include<string>
#include<iostream>
#include<iomanip>
#include<fstream>
#include<sstream>
#include<algorithm>
extern "C" {
#include<getopt.h>
#if defined (VL_MAC)
#includ... |
#include "StdAfx.h"
#include "MovingPapers.h"
#include "Configuration.h"
#include "Parameter.h"
#ifndef PI
#define PI 3.1415926f
#endif
const char *MovingPapers::texNames[NUM_PAPER_TEXTURES] =
{
"n1.tga",
"n2.tga",
"n3.tga",
"n17.tga",
"n28.tga",
"s1.tga",
"s2.tga",
"s3.tga",
"n4.tga",
"n5.tga",
"n6.tga",
... |
/*-------------------------------------------------------------------------
*
* sinvaladt.c
* POSTGRES shared cache invalidation data manager.
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
... |
//===- ArchiveWriter.cpp - ar File Format implementation --------*- 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
//
//===---------------------------... |
/***************************************************************************
*cr
*cr (C) Copyright 1995-2019 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
*cr
***************************************************************... |
#include "emp-sh2pc/emp-sh2pc.h"
#include <cmath>
#include "seal/util/uintarith.h"
#include "seal/util/uintarithsmallmod.h"
#include "LinearLayer/defines-HE.h"
#include <thread>
#include "LinearLayer/utils-HE.h"
#define MAX_THREADS 8
using namespace emp;
using namespace std;
enum neural_net {
NONE,
MINIONN,
CIF... |
//
// MIT License
//
//Copyright (c) 2018 <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 rights
//to use, copy, modify, merge,... |
// Creating a node graph editor for ImGui
// Quick demo, not production code! This is more of a demo of how to use ImGui to create custom stuff.
// Better version by @daniel_collin here https://gist.github.com/emoon/b8ff4b4ce4f1b43e79f2
// See https://github.com/ocornut/imgui/issues/306
// v0.03: fixed grid offset issu... |
//===--- SwiftSourceDocInfo.cpp -------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... |
#include "TreeMetrics.h"
#include "Globals.h"
#include <algorithm>
#include <lemon/matching.h>
// ILOG stuff
#include <ilcplex/ilocplex.h>
#include <ilconcert/iloalg.h>
using namespace std;
using namespace lemon;
ILOLAZYCONSTRAINTCALLBACK6(tree_callback, const ListGraph&, B, const ListGraph::EdgeMap<int>&, ID, con... |
#include <algorithm>
#include <bitset>
#include <fstream>
#include <iostream>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/classification.hpp>
#include "baldr/datetime.h"
#include "baldr/graphconstants.h"
#include "baldr/timedomain.h"
#include "midgard/logging.h"
#include ... |
// Copyright (C) 2000, International Business Machines
// Corporation and others. All Rights Reserved.
#include <algorithm>
#include "CoinHelperFunctions.hpp"
#include "CoinSort.hpp"
#include "CoinTime.hpp"
#ifdef MKC_COMPILE_WITH_OSL
#include "OsiOslSolverInterface.hpp"
#endif
#include "OsiClpSolverInterface.hpp"
#... |
#include "interiorMap.h"
#include "dgl/dgl.h"
#include "core/bitStream.h"
#include "game/gameConnection.h"
#include "math/mathIO.h"
#include "console/consoleTypes.h"
#include "collision/concretePolyList.h"
#include "dgl/gBitmap.h"
#include "math/mPlaneTransformer.h"
#define FRONTEPSILON 0.00001
//-------------------... |
// Copyright (c) 2015, Baidu.com, Inc. All Rights Reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: <EMAIL>
#include "namespace.h"
#include <fcntl.h>
#include <gflags/gflags.h>
#include <leveldb/db.h>
#include <leveldb/cache.h>
#include <le... |
/*
Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of
Technology
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 copyr... |
/*++
Copyright(c) 1998,99 Microsoft Corporation
Module Name:
host.cpp
Abstract:
Windows Load Balancing Service (WLBS)
Notifier object UI - host config tab
Author:
kyrilf
shouse
--*/
#include "pch.h"
#pragma hdrstop
#include "ncatlui.h"
#include "resource.h"... |
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <bits/stdc++.h>
#include <vector>
#include <math.h>
#include <cfloat>
#include "GL/glew.h"
#include "GL/glut.h"
#include "Angel-yjc.h"
#include "stb_image.c"
#include <cuda_gl_interop.h>
#include "ParticleSystem.cpp"
#include "Scene.... |
/* Test suite for ARIA v1.0
* <NAME> (<EMAIL>)
*/
#include <array>
#include <deque>
#include <iostream>
#include <iomanip>
#include <cassert>
#include <string>
#include "aria.h"
using namespace std;
using namespace aria;
bool eqseg(const segment& l, const segment& r){
bool equal = l.size() == r.size();
for... |
#include "bench_common.h"
#include <libdariadb/engines/engine.h>
#include <libdariadb/engines/shard.h>
#include <libdariadb/utils/async/thread_manager.h>
#include <libdariadb/utils/fs.h>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/program_options.hpp>
#include <atomic>
#include <iomanip>
#inc... |
#include <tiramisu/tiramisu.h>
#include <string.h>
#include "baryon_wrapper.h"
#include "complex_util.h"
#include "util.h"
using namespace tiramisu;
#define VECTORIZED 1
#define PARALLEL 1
typedef buffer *BufferPtrTy;
/**
* Helper function to allocate buffer for complex tensor
*/
void allocate_complex_buffers(
... |
#include "common.hpp"
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cassert>
#include <random>
#include <vector>
#include <utility>
#include <map>
#include <cmath>
#include <algorithm>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
// eigen
#include <Eigen/Core>
using namespace Eigen;
using namesp... |
#include "../include/plm.h"
#include "../include/graph.h"
#include "../include/modularity.h"
#include <mpi.h>
#include <map>
#include <string.h>
#include <chrono>
#define NUM_SPLIT 100
void print(std::vector<int> const &input)
{
for (int i = 0; i <(int)(input.size()); i++) {
std::cout << input.at(i) << '... |
/* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... |
/*
This program is free software; you can redistribute it and/or modify it under
the terms of the European Union Public Licence - EUPL v.1.1 as published by
the European Commission.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCH... |
//----------------------------------------------------
// file: BuilderLight.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "Builder.h"
#include "UI_Main.h"
#include "Scene.h"
#include "SceneClassList.h"
#include "SObject2.h"
#include "Light.h"
//--... |
// Houzi Game Engine
// Copyright (c) 2018 <NAME>
// Licensed under the MIT license.
#include "hou/test.hpp"
#include "hou/sys/display_mode.hpp"
using namespace hou;
using namespace testing;
namespace
{
class test_display_mode : public Test
{};
} // namespace
TEST_F(test_display_mode, default_constructor)
{... |
/// @brief
/// This program allows the user to run one filter operation on an image file.
/// This file contains main() as well as many functions named "Handle...()".
/// After reading the image files, depending on which filter was selected,
/// a different "Handle()" function will be invoked.
/// Each of these "Handle... |
/*This source code copyrighted by <NAME> (2004-2020)
and may not be redistributed without written permission.*/
//Using SDL, SDL_image, standard math, and strings
#include "main.hpp"
//The window we'll be rendering to
SDL_Window *gWindow = NULL;
//The window renderer
SDL_Renderer *gRenderer = NULL;
//Analog joysti... |
/*
* Copyright (c) 2000-2004,2011-2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exce... |
/*
* Copyright (C) 2016-2017 <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAI... |
#include "vmath_types.h"
#include <gtest/gtest.h>
#include <cmath>
#include <array>
#include <vector>
#include <numeric>
#include <limits>
namespace {
// predicates used in the tests
template <typename T>
bool matrix_array_equal(const math::Matrix4<T> &m1, const T *m2) {
bool is_equal = true;
for (uint8_t ... |
/*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... |
/*
###############################################################################
# If you use PhysiCell in your project, please cite PhysiCell and the version #
# number, such as below: #
# ... |
/*
* Copyright 2002-2020 <NAME> <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "DualSlider.h"
#include <stdio.h>
#include <Bitmap.h>
#include <ControlLook.h>
#include <LayoutUtils.h>
#include <GradientLinear.h>
#include <Looper.h>
#include <Message.h>
#include <Region... |
#define _USE_MATH_DEFINES
#include "GMM.h"
#include "Utils.h"
#include <random>
#include <ctime>
using namespace std; // ToDo: Test whether save to remove
using namespace arma;
/**
* A Gaussian Mixture Model.
* @param dim the number of dimensions
* @param max_components maximum number of components this GMM may comp... |
/*
* 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 "EnumUpcastAnalysis.h"
#include "EnumClinitAnalysis.h"
#include "Resolver.h"
#include "Walkers.h"
namespace {
using nam... |
#include "utils.h"
#include <unordered_map>
#include <unordered_set>
#include <boost/functional/hash.hpp>
#include <version.h>
#include <cfloat>
static_assert(
__cplusplus >= 201103L,
"This code needs to be compiled with a c++11 compatible compiler");
class site {
public:
string chr;
int pos;
string ref... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageDifference.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed W... |
// Uo Poko
#include "cave.h"
#include "ymz280b.h"
#define CAVE_VBLANK_LINES 12
static unsigned char DrvJoy1[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static unsigned char DrvJoy2[16] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
static unsigned short DrvInput[2] = {0x0000, 0x0000};
stat... |
/*
* Gender_Age_Lbp
*
* Contributing Authors: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
*
*
*
*/
#include <iostream>
#include <vector>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "fp16.h"
#include <time.h>
#include ... |
/*
* Copyright (c) 2015-2019, Intel Corporation
*
* 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, p... |
#include "camera_capture_libdc1394.h"
#include <iostream>
#include <fstream>
#include "libdc_helper.h"
namespace {
// Releases the cameras and exits
void CleanupAndExit(dc1394camera_t *camera)
{
dc1394_video_set_transmission(camera, DC1394_OFF);
dc1394_capture_stop(camera);
dc1394_camera_free(camera);
exit(... |
#include "main.h"
using namespace std;
using namespace sf;
Color ray_color = Color(255, 255, 255, 80);
Clock cl;
gamestate state = mainmenu;
bool gameStateChanged = true;
bool windowsHasFocus = true;
float ammountRecharge = 90;
int fps = 60;
float cost_wall = 5;
float cost_shot = 1;
int max_level = 4;
unique_ptr<Lev... |
#include<iostream>
#include<string>
#include<vector>
#include<bitset>
#include<fstream>
using namespace std;
#define MemSize 1000 // memory size, in reality, the memory size should be 2^32, but for this lab, for the space reason, we keep it as this large number, but the memory is still 32-bit addressable.
#define ADDU ... |
#include "ExperimentApp.h"
#include <algorithm>
NS_LOG_COMPONENT_DEFINE ("HyraxExperimentApp");
HyraxExperimentApp::HyraxExperimentApp()
{
NS_LOG_DEBUG("Starting HyraxExperimentApp");
}
HyraxExperimentApp::~HyraxExperimentApp()
{
NS_LOG_DEBUG("Destroy HyraxExperimentApp");
}
void HyraxExperimentApp::Setup(std::st... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
/*=============================================================================
ColorList.cpp: List of common colors implementation.
=============================================================================*/
#include "CorePrivatePCH.h"
#include "Color... |
#include "SteeringBehaviors.h"
#include <stdlib.h>
SteeringBehavior::SteeringBehavior(Vehicle* agent):
m_iFlags(0),
m_pVehicle(agent),
m_dWeightWander(1.0),
m_dWanderRadius(WanderRad),
m_dWanderJitter(WanderJitterPerSec),
... |
/* Multidimensional optimization using conjugate gradient descent.
*
* Can be used even without derivative information; falls back to
* a numeric gradient if analytic gradient is unavailable.
*
* SRE, Wed Jun 22 11:37:29 2005
* SVN $Id: esl_minimizer.c 438 2009-11-12 22:29:50Z wheelert $
*/
#include "esl_confi... |
/* Copyright (C) 2015 <NAME>
This file is part of arachne-pnr. Arachne-pnr is free software;
you can redistribute it and/or modify it under the terms of the GNU
General Public License version 2 as published by the Free Software
Foundation.
This program is distributed in the hope that it will be ... |
#include "md.hpp"
/* Variables */
extern std::random_device device;
extern std::mt19937 generator;
extern filePaths_ filePaths;
extern flags_ flags;
/* Operators */
vec3d operator*(const double &k, const vec3d &a)
{
return a * k;
}
std::ostream& operator<<(std::ostream &os, const vec3d &a)
{
os << "(" << a.x <... |
// Copyright 2009 <NAME>
// Copyright 2017, 2019 <NAME>
// Sharp remote emulation
#include "ir_Sharp.h"
#include <algorithm>
#ifndef ARDUINO
#include <string>
#endif
#include "IRrecv.h"
#include "IRsend.h"
#include "IRutils.h"
// Equipment it seems compatible with:
// * Sharp LC-52D62U
// * <Add models (devices & ... |
/*
* REminiscence - Flashback interpreter
* Copyright (C) 2005-2018 <NAME> (<EMAIL>)
*/
#include "file.h"
#include "mixer.h"
#include "mod_player.h"
#include "util.h"
#ifdef USE_MODPLUG
#include "modplug.h"
struct ModPlayer_impl {
ModPlugFile *_mf;
ModPlug_Settings _settings;
bool _repeatIntro;
ModPlayer_i... |
// -*- C++ -*-
//
// ======================================================================
//
// <NAME>, U.S. Geological Survey
// <NAME>, GNS Science
// <NAME>, University at Buffalo
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright ... |
#include <iomanip>
#include <iostream>
#include "plotter.hpp"
#include <array>
using namespace CarioGraphConstants;
void CGraph::CairoGraph::create_tickmark_labels(const Cairo::RefPtr<Cairo::Context> &cr)
{
constexpr int numlabels = 5;
std::array<Glib::ustring, numlabels> labely, labelx;
std::array<Glib::... |
// C++.
#include <cassert>
#include <sstream>
#include <set>
#include <algorithm>
// Qt.
#include <QDialog>
#include <QKeyEvent>
#include <QPushButton>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QVariant>
// Infra.
#include "QtCommon/Util/QtUtil.h"
// Local.
#include "radeon_gpu_analyze... |
#include "CGameExporter.h"
#include "CGameInfo.h"
#include "CResourceIterator.h"
#include "CResourceStore.h"
#include "Core/CompressionUtil.h"
#include "Core/Resource/CWorld.h"
#include "Core/Resource/Script/CGameTemplate.h"
#include <Common/Macros.h>
#include <Common/CScopedTimer.h>
#include <Common/FileIO.h>
#include... |
// UTILITY.C
// Random useful code for the game.
// Varmint's EITTRIS
// Copyright (C) 1996-2000, Purple Planet Software
#include "stdafx.h"
#include "eittris.h"
// These colors are set in SetDrawHandle()
int bgcolor;
int labelcolor;
int valuecolor;
int scoretable[7] = { 1,7,49,343,2401,16807L,117649L};
/*... |
/*
* Copyright 2015, Pythia authors (see AUTHORS file).
* 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... |
int
PC,H1A,
IB
,KVCK ,bT,
E3, NB4,ITd ,afh4 , JG3Aj,
n4w , MhA,//uZ
Rb1e/*9*/,aH ,
fN8, fg9 ,i49, PE7GW
, y3j ,jp, q6mh
, Lv4v,
QW
,
/*9*/vLmBHUyt,kqMf,OtoJ
,vfI ,
O5E/**/,VNw,KJ ,LT ,JhMRj/*L4L*/ ,VX8 ,
HCg9V ,WoHxU//1
, I8 ,/*ng*/l,EMa5b
,Xt, /*Ki3*/d,j,
dB
,Xp0Q3i,
ZNt , Yi
;//A
void
... |
/*
* k2hftfuse for file transaction by FUSE-based file system
*
* Copyright 2015 Yahoo Japan Corporation.
*
* k2hftfuse is file transaction system on FUSE file system with
* K2HASH and K2HASH TRANSACTION PLUGIN, CHMPX.
*
* For the full copyright and license information, please view
* the license file that w... |
#include <iostream>
#include <memory>
#include <vector>
#include <tuple>
#include <sstream>
#include <algorithm>
#include <locale>
#include <random>
#include <chrono>
#include <ncurses.h>
#include <form.h>
#define NBLINE 50
#define KEY_ALT_BACKSPACE 127
class _gui {
public:
typedef std::tuple<std::string... |
#include <string.h>
#include "JWModules.hpp"
#include "dsp/digital.hpp"
enum InputColor {
ORANGE_INPUT_COLOR,
YELLOW_INPUT_COLOR,
PURPLE_INPUT_COLOR,
BLUE_INPUT_COLOR,
WHITE_INPUT_COLOR
};
struct Ball {
Rect box;
Rect previousBox;
Vec vel;
SchmittTrigger resetTrigger, bumpTrigger;
PulseGenerator northPulse... |
#include "configuration.h"
#include <sdl/textureatlas.h>
#include <nlohmann/json.hpp>
#include <map>
#include <vector>
#include <fstream>
#include <sstream>
using nlohmann::json;
using namespace mwetris;
namespace sdl {
void from_json(const json& j, Color& color) {
auto textColor = j.get<std::string>();
if (... |
using namespace std;
// Parameters are modifiable
// Changing to observe the ant behaviour
#define STEP 1
#define CHILDREN_BASE 30
#define MAXSTEP 1500
#define MAXENERGY 1500
#define SLEEP_DURATION 0 // micro_seconds
#define PHEROMONE_FREQUENCY 1
enum class STATUS : bool
{
DEAD,
ALIVE,
};
struct pos_t;
class... |
// STD
#include <iostream>
#include <vector>
#include <fmt/format.h>
#include <opencv2/opencv.hpp>
// jhmr
#include "jhmrMultiObjMultiLevel2D3DRegi.h"
#include "jhmrCameraRayCastingGPU.h"
#include "jhmrCIOSFusionDICOM.h"
#include "jhmrLandmark2D3DRegi.h"
#include "jhmrProgOptUtils.h"
#include "jhmrHDF5.h"
#include "... |
//============================================================================
// Name : main.cpp
// Author : <NAME>, <NAME>, <NAME>
// Version :
// Copyright : Your copyright notice
// Description :
//============================================================================
#include <ctime>
#incl... |
#include "stdafx.h"
#include "TacomaSurface.h"
#include "MixParam.h"
#include "StringCruncher.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
///////////////////////////////... |
/* libezbc - EZBC subband coding/decoding
Copyright (C) 2004 <NAME>
This library is inspired from code originaly developped by <NAME> in MC-EZBC. This rewritten version may still contain code similar to his original implementation.
Reference paper: "Embedded Image Coding Using Zeroblocks Of Subband/... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include "../src/Ori.hpp"
#include "../src/IntrinsicModel.hpp"
#include "PlyHeaderParser.h"
#include "cmdparser.hpp"
#include "accelerators/kdtreeaccel.h"
#include "core/geometry.h"
#include "core/primitive.h"
#include "core/intersection.h"
#... |
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <vector>
#include <array>
#include <cmath>
#include <numeric>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <thread>
#include <openbabel/obconversion.h>
#include <openbabel/mol.h>
#include <boost/filesystem/operati... |
#include "seaview.h"
#include <ctype.h>
#include <FL/Fl_Multiline_Output.H>
int nbaagroup=5;
int aagroup[30];
char aalist[30] = "ACDEFGHIKLMNPQRSTVWY";
int TRANSVONLY=0;
char infotext[10000];
extern void *check_alloc(int nbrelt, int sizelt);
void bydefault_aagroups(){
int i;
sprintf(aalist, "EDQNHRKILMVAPSGTF... |
/*******************************************************************************
* Copyright (C) 2007 by the members of PG 510, University of Dortmund: *
* <EMAIL> *
* <NAME>, <NAME>, <NAME>, <NAME>, *
* <NAME>, <NAME>, <NAME>, <NAME>, *
* ... |
/*******************************************************************************
* nemesis. an experimental finite element code. *
* Copyright (C) 2004-2011 F.E.Karaoulanis [http://www.nemesis-project.org] *
* ... |
// C-headers
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <time.h>
#include <getopt.h>
#include <libgen.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <assert.h>
#include <fcntl.h>
// Custom-includes
#include "httpserver.h"
#include "segtree.... |
/*
GUIDO Library
Copyright (C) 2002 <NAME>, <NAME>, <NAME>
Copyright (C) 2003, 2004 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Research Labo... |
#include "ImguiWrap/ImguiUEWrap.h"
#include "imgui.h"
#include "imgui_internal.h"
#include "Config/ImguiConfig.h"
#include "Engine/TextureRenderTarget2D.h"
#include "ImguiWrap/ImguiResourceManager.h"
#include "Widgets/SImguiWidget.h"
static void _HelpMarker(const char* desc)
{
ImGui::TextDisabled("(?)");
if (ImGui::... |
//===--- PropertyUnification.cpp - Rules added w/ building property map ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... |
#include <iostream>
#include <fstream>
#include <string>
#include <deque>
#include <vector>
#include <algorithm>
#include <ctime>
#include <curl/curl.h>
#include <jsoncpp/json/json.h>
#include <boost/iostreams/filtering_streambuf.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filter/gzip.hpp>
#inc... |
/**
* parser entry point
* @author <NAME> <<EMAIL>>
* @date 20-dec-19
* @license GPLv3, see 'LICENSE' file
* @desc Forked on 18/July/2020 from my privately developed "matrix_calc" project (https://github.com/t-weber/matrix_calc).
*
* ----------------------------------------------------------------------------
*... |
#include "ofApp.h"
#include "ofxBinaryMesh.h"
#include <Alembic/AbcGeom/All.h>
#include <Alembic/AbcCoreHDF5/All.h>
#include "ofxAlembic.h"
using namespace Alembic::AbcGeom;
static string dataPath = "../../../sharedData/";
//void listDirs();
#ifndef NO_ALEMBIC
#include "ofxAlembic.h"
ofxAlembic::Reader abc;
#end... |
/********************************************************
Stanford Driving Software
Copyright (c) 2011 Stanford University
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... |
#include "engine.h"
Engine::Engine() : m_wireframe(false), m_World(VIEW_DISTANCE / (CHUNK_SIZE_X / 2), VIEW_DISTANCE / (CHUNK_SIZE_Z / 2))
{
}
Engine::~Engine()
{
}
void Engine::Init()
{
GLenum err = glewInit();
if (err != GLEW_OK)
{
std::cerr << " Error while initializing glew .. abording (" << ... |
// Do not remove the include below
#include "https_server.h"
using namespace httpsserver;
#define HEADER_USERNAME "X-USERNAME"
#define HEADER_GROUP "X-GROUP"
/**
* This callback will be linked to the web server root and answer with
* a small HTML page that shows the uptime of the esp.
*
* Note that the header... |
#include "DebugScene.h"
#include "cinder/app/App.h"
#include "cinder/gl/gl.h"
#include "cinder/Log.h"
//#include "cinder/CinderImGui.h"
#include "mason/extra/ImGuiStuff.h"
#include "mason/Assets.h"
#include "mason/Config.h"
using namespace ci;
using namespace std;
namespace im = ImGui;
namespace {
template<typenam... |
/*
Copyright (c) 2006, <NAME> and <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of
conditions and the following ... |
/*
* This file is part of ScoreBoard 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 applicable law... |
/*
* SVRTK : SVR reconstruction based on MIRTK
*
* Copyright 2008-2017 Imperial College London
* Copyright 2018-2020 King's College London
*
* 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 Licens... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2009 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modif... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
//
// SkeletonModel.cpp
// interface/src/avatar
//
// Created by <NAME> on 10/17/13.
// Copyright 2013 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 <glm/gtx/transform.hpp>
#include ... |
#include "epot_bicgstabsolver.hpp"
#include "epot_umfpacksolver.hpp"
#include "particledatabase.hpp"
#include "geometry.hpp"
#include "func_solid.hpp"
#include "epot_efield.hpp"
#include "meshvectorfield.hpp"
#include "ibsimu.hpp"
#include "error.hpp"
#include "particlediagplotter.hpp"
#include "geomplotter.hpp"
#inclu... |
// DGen/SDL v1.17+
// Megadrive C++ module
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "md.h"
// This is the 'static' StarScream/MZ80 multitasker
// which detects which megadrive is active (by which star_mz80_on() has been called
// and forwards to the appropriate misc_read/writebyte/word/z80 ... |
/*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2016 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... |
/******************************************************************************
* M5Stack Screen-Capture
* Software routines to save a screenshot of the display to the SD card
* or SPIFFS. The image can also be sent to a client via WiFi (view in web browser).
* The image can be saved in two formats: PPM or BMP... |
// 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 "L1Trigger/DTTriggerPhase2/interface/MuonPathAnalyzerInChamber.h"
#include <cmath>
#include <memory>
using namespace edm;
using namespace std;
using namespace cmsdt;
// ============================================================================
// Constructors and destructor
// ==============================... |
#include <iostream>
#include <fstream>
#include <iterator>
#include <algorithm>
#include <cstring>
#include <math.h>
#include <sys/time.h>
#include <chrono>
#include "Phase2_ClusterSearcher.h"
using namespace std;
string rel_path_to_target_dir1 = "./";
typedef chrono::system_clock Clock;
vector<ScoreResult> Phase2... |
/* A simple stack-based virtual machine to demonstrate
JIT-compilation.
Copyright (C) 2014-2017 Free Software Foundation, Inc.
This file is part of GCC.
GCC 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; ... |
#include "game.h"
#include "UI.h"
#include <cstdio>
#include <iostream>
#define SCALE 100
Game::Game()
{
RamkaPaliwa = sf::Shape::Rectangle(40, 40, 160, 70, sf::Color::Black, 1.0f, sf::Color::Black);
RamkaPaliwa.EnableFill(false);
Paliwo = sf::Shape::Rectangle(40, 40, 160, 70, sf::Color::Black, 0.5f, sf::C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.