text:
<?php
$classid = $_GET['classid'];
$pdoid = $_GET['pdoid'];

include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'source.php');
include_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'functions/dbfunctions.php');

global $directorypath;
if(!checkSession()){
		redirect();
	} else {
$_SESSION['classid'] = $classid;
$_SESSION['pdoid'] = $pdoid;
	}

echo $header?>

		<?php echo $topmenu; ?>

			<?php echo $ClassMenu?>

				<?php echo $classid ?>

						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

Modal title

Here settings can be configured...

						<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
						<button type="button" class="btn btn-primary">Save changes</button>

	<?php echo $footer ?>


text:
Stock Information

<tabs>
    <tab [tabTitle]="'Table'">
        <data-table [companyData]="company_histories" [indexData]="index_data" [stockData]="this.stockData"></data-table>
    </tab>
    <tab tabTitle="History">
        <historical-data [company_data]="company_histories" [stockData]="this.stockData"></historical-data>
    </tab>
    <tab tabTitle="Charts">
        <basic-chart [companyData]="company_histories" [stockData]="this.stockData"></basic-chart>
    </tab>
</tabs>

redpajama_set_name: RedPajamaGithub


text:
AlternateNavURLFetcher::AlternateNavURLFetcher(
    const GURL& alternate_nav_url)
    : LinkInfoBarDelegate(NULL),
      alternate_nav_url_(alternate_nav_url),
      controller_(NULL),
      state_(NOT_STARTED),
      navigated_to_entry_(false),
      infobar_contents_(NULL) {
  registrar_.Add(this, NotificationType::NAV_ENTRY_PENDING,
                 NotificationService::AllSources());
}

void AlternateNavURLFetcher::Observe(NotificationType type,
                                     const NotificationSource& source,
                                     const NotificationDetails& details) {
  switch (type.value) {
    case NotificationType::NAV_ENTRY_PENDING:
      controller_ = Source<NavigationController>(source).ptr();
      DCHECK(controller_->pending_entry());

      // Unregister for this notification now that we're pending, and start
      // listening for the corresponding commit. We also need to listen for the
      // tab close command since that means the load will never commit!
      registrar_.Remove(this, NotificationType::NAV_ENTRY_PENDING,
                        NotificationService::AllSources());
      registrar_.Add(this, NotificationType::NAV_ENTRY_COMMITTED,
                     Source<NavigationController>(controller_));

      DCHECK_EQ(NOT_STARTED, state_);
      state_ = IN_PROGRESS;
      fetcher_.reset(new URLFetcher(GURL(alternate_nav_url_), URLFetcher::HEAD,
                                    this));
      fetcher_->set_request_context(
          controller_->profile()->GetRequestContext());
      fetcher_->Start();
      break;

    case NotificationType::NAV_ENTRY_COMMITTED:
      // The page was navigated, we can show the infobar now if necessary.
      registrar_.Remove(this, NotificationType::NAV_ENTRY_COMMITTED,
                        Source<NavigationController>(controller_));
      navigated_to_entry_ = true;
      ShowInfobarIfPossible();
      break;

    default:
      NOTREACHED();
  }
}

void AlternateNavURLFetcher::OnURLFetchComplete(const URLFetcher* source,
                                                const GURL& url,
                                                const URLRequestStatus& status,
                                                int response_code,
                                                const ResponseCookies& cookies,
                                                const std::string& data) {
  DCHECK(fetcher_.get() == source);
  if (status.is_success() &&
      // HTTP 2xx, 401, and 407 all indicate that the target address exists.
      (((response_code / 100) == 2) ||
       (response_code == 401) || (response_code == 407))) {
    state_ = SUCCEEDED;
    ShowInfobarIfPossible();
  } else {
    state_ = FAILED;
  }
}

std::wstring AlternateNavURLFetcher::GetMessageTextWithOffset(
    size_t* link_offset) const {
  const std::wstring label = l10n_util::GetStringF(
      IDS_ALTERNATE_NAV_URL_VIEW_LABEL, std::wstring(), link_offset);
  DCHECK(*link_offset != std::wstring::npos);
  return label;
}

std::wstring AlternateNavURLFetcher::GetLinkText() const {
  return UTF8ToWide(alternate_nav_url_.spec());
}

SkBitmap* AlternateNavURLFetcher::GetIcon() const {
  return ResourceBundle::GetSharedInstance().GetBitmapNamed(
      IDR_INFOBAR_ALT_NAV_URL);
}

bool AlternateNavURLFetcher::LinkClicked(WindowOpenDisposition disposition) {
  infobar_contents_->OpenURL(
      alternate_nav_url_, GURL(), disposition,
      // Pretend the user typed this URL, so that navigating to
      // it will be the default action when it's typed again in
      // the future.
      PageTransition::TYPED);

  // We should always close, even if the navigation did not occur within this
  // TabContents.
  return true;
}

void AlternateNavURLFetcher::InfoBarClosed() {
  delete this;
}

void AlternateNavURLFetcher::ShowInfobarIfPossible() {
  if (!navigated_to_entry_ || state_ != SUCCEEDED)
    return;

  infobar_contents_ = controller_->tab_contents();
  StoreActiveEntryUniqueID(infobar_contents_);
  // We will be deleted when the InfoBar is destroyed. (See InfoBarClosed).
  infobar_contents_->AddInfoBar(this);
}


text:
<?php
# Data: username 	-> speed
# 		fid 		-> folder
function sendError(){
	header("Location:./data/error.php");
}

include("./interface/exec/pulllib.php");
include("./interface/exec/image.php");
$valid=directCheckSessionData();
// HARDCODE, bc i fucked up
$valid = true;
if($valid && isset($_GET["fid"])){
	$fid = $_GET["fid"];
    $folders =getFolderArray();
    if(is_null($folders[$fid]))
        sendError();

    $dir="./data/$folders[$fid]";
    $frames = getFilesInFolderSQL($fid);
}else{
	sendError();
}
?>
<!DOCTYPE html>
<html>
<head>
	<title>WMS-Anzeige</title>
    <!-- 1. Download vom Server, 2. Neuladen nach zwei Stunden -->
    <meta http-equiv="expires" content="0;">
    <meta http-equiv="refresh" content="7200;"> <!-- 7200 = 2h -->
	<link rel="stylesheet" type="text/css" href="anzeige.css">
</head>
<body>
<div id="wms">

</div>
</body>
<script type="text/javascript">
var num = 0;
var wms = document.getElementById("wms");
var frames = [<?php
foreach ($frames as $key => $frame) {
    print("\"".$frame."\",");
}
// WARNING HARDCODING SPEED VARIABLE
// changing every n seconds
$speed = 14;
if ( $fid == 7 ){ // Wetter
	$speed = 7;
}
?>]
if(frames.length==0){
    frames[0]="Es liegen für diesen Ordner keine Inhalte auf dem Server vor.";
}else{
	wms.innerHTML = "";
	for (var imgid in frames) {
		if (frames.hasOwnProperty(imgid)) {
			wms.innerHTML += frames[imgid];
		}
	}
	for (var i = 0; i < frames.length; i++) {
		wms.children[i].setAttribute("class","loading");
	}
	wms.children[0].setAttribute("class","full");
}

window.setInterval(function(){
        if(num >= frames.length){
            num =0;
        }
		wms.children[num].setAttribute("class","full");
		if (num>0){
			wms.children[(num-1)%frames.length].setAttribute("class","loading");
		} else {
			wms.children[frames.length-1].setAttribute("class","loading");
		}
        num = num+1;
    }, <?php echo $speed * 1000; ?>);
</script>
</html>


text:
package com.dremio.exec.store.metadatarefresh.committer;

import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import java.util.function.Function;
import java.util.function.Predicate;

import com.dremio.exec.store.file.proto.FileProtobuf;
import com.dremio.exec.store.iceberg.IcebergPartitionData;
import com.google.protobuf.ByteString;

/**
 * Similar to {@link IncrementalRefreshReadSignatureProvider}, except updates mtime of only modified partitions
 */
public class PartialRefreshReadSignatureProvider extends AbstractReadSignatureProvider {

  private final ByteString oldReadSignatureBytes;
  private final Set<String> partitionsToModify = new HashSet<>();
  private final Set<String> partitionsToDelete = new HashSet<>();

  public PartialRefreshReadSignatureProvider(ByteString existingReadSignature,
                                             final String dataTableRoot, final long queryStartTime,
                                             Predicate<String> partitionExists) {
    super(dataTableRoot, queryStartTime, partitionExists);
    oldReadSignatureBytes = existingReadSignature;
  }

  private final Function<String, FileProtobuf.FileSystemCachedEntity> FCEfromPathMtime =
    path -> FileProtobuf.FileSystemCachedEntity.newBuilder()
      .setPath(path)
      .setLastModificationTime(queryStartTime)
      .build();

  @Override
  public ByteString compute(Set<IcebergPartitionData> addedPartitions, Set<IcebergPartitionData> deletedPartitions) {
    final FileProtobuf.FileUpdateKey oldReadSignature = decodeReadSignatureByteString(oldReadSignatureBytes);
    handleAddedPartitions(addedPartitions);
    handleDeletedPartitions(deletedPartitions);

    FileProtobuf.FileUpdateKey.Builder readSigBuilder = FileProtobuf.FileUpdateKey.newBuilder();
    oldReadSignature.getCachedEntitiesList().stream()
      .filter(fce -> !partitionsToDelete.contains(fce.getPath())) // exclude deleted partitions
      .forEach(fce -> {
        if (partitionsToModify.contains(fce.getPath())) { // update mtime if partition got modified
          readSigBuilder.addCachedEntities(
            FileProtobuf.FileSystemCachedEntity.newBuilder()
              .setPath(fce.getPath())
              .setLastModificationTime(queryStartTime)
              .build());
          partitionsToModify.remove(fce.getPath());
        } else { // add without changing mtime if partition was not modified
          readSigBuilder.addCachedEntities(fce);
        }
      });
    // add new partitions
    partitionsToModify.stream().map(FCEfromPathMtime).forEach(readSigBuilder::addCachedEntities);
    return readSigBuilder.build().toByteString();
  }

  private void handleAddedPartitions(Set<IcebergPartitionData> added) {
    added.stream().map(fileSystemPartitionToPathMapper)
      .flatMap(Collection::stream).forEach(partitionsToModify::add);
  }

  private void handleDeletedPartitions(Set<IcebergPartitionData> deleted) {
    deleted.stream().map(fileSystemPartitionToPathMapper).flatMap(x -> x.stream()).forEach(partitionsToModify::add);
    partitionsToModify.stream().filter(doesPartitionExist.negate()).forEach(partitionsToDelete::add);
    partitionsToModify.removeAll(partitionsToDelete);
  }
}


text:
<?php

namespace spec\Carcel\Bundle\UserBundle\Factory;

use Carcel\Bundle\UserBundle\Factory\RedirectResponseFactory;
use PhpSpec\ObjectBehavior;
use Symfony\Component\HttpFoundation\RedirectResponse;

class RedirectResponseFactorySpec extends ObjectBehavior
{
    function it_is_initializable()
    {
        $this->shouldHaveType(RedirectResponseFactory::class);
    }

    function it_creates_a_redirect_response()
    {
        $response = $this->create('/foobar');

        $response->shouldBeAnInstanceOf(RedirectResponse::class);
        $response->getTargetUrl()->shouldReturn('/foobar');
    }
}


text:
<?xml version="1.0"?>
<XnaContent><Asset Type="RolePlayingGameData.FixedCombat">
  <Name>Orc Misc 3d</Name>
  <Entries>
    <Item>
      <ContentName>OrcCaptain</ContentName>
      <Count>1</Count>
    </Item>
    <Item>
      <ContentName>GoblinMage</ContentName>
      <Count>4</Count>
    </Item>
  </Entries>
</Asset></XnaContent>


text:
function beCompile($compile) {
  'ngInject';

  return {
    link: (scope, element, attrs) => {
      scope.$watch(
        function(scope) {
          // watch the 'compile' expression for changes
          return scope.$eval(attrs.beCompile);
        },
        function(value) {
          // when the 'compile' expression changes
          // assign it into the current DOM
          element.html(value);

          // compile the new DOM and link it to the current
          // scope.
          // NOTE: we only compile .childNodes so that
          // we don't get into infinite loop compiling ourselves
          $compile(element.contents())(scope);
        }
      );
    }
  };
}
beCompile.$inject = ["$compile"];
export default beCompile;


text:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>

	<!-- REST Service (Guice + Jersey + Jackson) -->

	<listener>
		<listener-class>com.tectonica.api.RestConfig</listener-class>
	</listener>
	<filter>
		<filter-name>REST</filter-name>
		<filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>REST</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<!-- Blobstore Uploads/Downloads -->

	<servlet>
		<servlet-name>Blobstore</servlet-name>
		<servlet-class>com.tectonica.gae.GaeBlobServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>Blobstore</servlet-name>
		<url-pattern>/blob</url-pattern>
	</servlet-mapping>

</web-app>


text:
all: test generate-combined generate-documentation

clean:
	@echo cleaning...
	@cp .dygraph-combined-clean.js dygraph-combined.js
	rm -f docs/options.html

generate-combined:
	@echo Generating dygraph-combined.js
	@./generate-combined.sh

generate-documentation:
	@echo Generating docs/options.html
	@./generate-documentation.py > docs/options.html
	@chmod a+r docs/options.html

gwt: generate-gwt

generate-gwt:
	@echo Generating GWT JAR file
	@./generate-jar.sh

test:
	@./test.sh
	@./check-combined-unaffected.sh

test-combined: move-combined test clean-combined-test

move-combined: generate-combined
	mv dygraph-combined.js dygraph-dev.js

clean-combined-test: clean
	@echo restoring combined
	git checkout dygraph-dev.js
	rm dygraph-combined.js.map

lint:
	@./generate-combined.sh ls \
	    | grep -v 'polyfills' \
	    | xargs ./node_modules/.bin/jshint

# Commands to run for continuous integration on Travis-CI
travis: test test-combined lint

publish:
	./generate-combined.sh
	npm publish
	git checkout dygraph-combined.js


text:
//
//  UIViewController+RV.m
//  RXVerifyExample
//
//  Created by Rush.D.Xzj on 15/12/9.
//  Copyright © 2015年 Rush.D.Xzj. All rights reserved.
//

#import "UIViewController+RV.h"

@implementation UIViewController (RV)

#pragma mark - Override
#ifdef __IPHONE_7_0
//- (UIRectEdge)edgesForExtendedLayout {
//    return UIRectEdgeNone;
//}
#endif

/*

 #pragma mark - initialize UI And Data
 - (void)initializeUIAndData
 {

 self.view.backgroundColor = [UIColor redColor];
 }
 - (void)initializeAction
 {

 }

 #pragma mark - View Life Cycle

 - (void)viewDidLoad {
 [super viewDidLoad];
 // Do any additional setup after loading the view from its nib.

 [self initializeUIAndData];
 [self initializeAction];
 }

 */

@end


text:
package org.apache.syncope.client.console.policies;

import java.util.List;
import org.apache.syncope.client.console.rest.PolicyRestClient;
import org.apache.syncope.client.console.wicket.extensions.markup.html.repeater.data.table.BooleanPropertyColumn;
import org.apache.syncope.client.console.wicket.markup.html.form.ActionLink;
import org.apache.syncope.client.console.wicket.markup.html.form.ActionsPanel;
import org.apache.syncope.common.lib.policy.AttrReleasePolicyTO;
import org.apache.syncope.common.lib.policy.DefaultAttrReleasePolicyConf;
import org.apache.syncope.common.lib.types.IdRepoEntitlement;
import org.apache.syncope.common.lib.types.PolicyType;
import org.apache.wicket.PageReference;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.authroles.authorization.strategies.role.metadata.MetaDataRoleAuthorizationStrategy;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.StringResourceModel;

public class AttrReleasePolicyDirectoryPanel extends PolicyDirectoryPanel<AttrReleasePolicyTO> {

    private static final long serialVersionUID = 4984337552918213290L;

    public AttrReleasePolicyDirectoryPanel(final String id, final PageReference pageRef) {
        super(id, PolicyType.ATTR_RELEASE, pageRef);

        AttrReleasePolicyTO defaultItem = new AttrReleasePolicyTO();

        this.addNewItemPanelBuilder(
                new PolicyModalPanelBuilder<>(PolicyType.ATTR_RELEASE, defaultItem, modal, pageRef), true);
        MetaDataRoleAuthorizationStrategy.authorize(addAjaxLink, RENDER, IdRepoEntitlement.POLICY_CREATE);

        initResultTable();
    }

    @Override
    protected void addCustomColumnFields(final List<IColumn<AttrReleasePolicyTO, String>> columns) {
        columns.add(new PropertyColumn<>(new StringResourceModel("order", this), "order", "order"));
        columns.add(new BooleanPropertyColumn<>(new StringResourceModel("status", this), "status", "status"));
    }

    @Override
    protected void addCustomActions(
            final ActionsPanel<AttrReleasePolicyTO> panel,
            final IModel<AttrReleasePolicyTO> model) {

        panel.add(new ActionLink<>() {

            private static final long serialVersionUID = -3722207913631435501L;

            @Override
            public void onClick(final AjaxRequestTarget target, final AttrReleasePolicyTO ignore) {
                model.setObject(PolicyRestClient.read(type, model.getObject().getKey()));
                if (model.getObject().getConf() == null) {
                    model.getObject().setConf(new DefaultAttrReleasePolicyConf());
                }
                target.add(policySpecModal.setContent(
                        new AttrReleasePolicyModalPanel(policySpecModal, model, pageRef)));
                policySpecModal.header(new Model<>(getString("attrReleasePolicyConf.title", model)));
                policySpecModal.show(true);
            }
        }, ActionLink.ActionType.CHANGE_VIEW, IdRepoEntitlement.POLICY_UPDATE);
    }
}


text:
namespace Acuanet
{
    partial class FormaPLlegadas
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.dgv_llegadas = new System.Windows.Forms.DataGridView();
            this.gbox_estatus = new System.Windows.Forms.GroupBox();
            this.txt_numero = new System.Windows.Forms.TextBox();
            this.btn_revisar = new System.Windows.Forms.Button();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.dgv_llegadas)).BeginInit();
            this.gbox_estatus.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.SuspendLayout();
            //
            // timer1
            //
            this.timer1.Interval = 500;
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            //
            // dgv_llegadas
            //
            this.dgv_llegadas.AllowUserToAddRows = false;
            this.dgv_llegadas.AllowUserToDeleteRows = false;
            this.dgv_llegadas.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.dgv_llegadas.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgv_llegadas.Location = new System.Drawing.Point(12, 173);
            this.dgv_llegadas.Name = "dgv_llegadas";
            this.dgv_llegadas.ReadOnly = true;
            this.dgv_llegadas.Size = new System.Drawing.Size(1094, 315);
            this.dgv_llegadas.TabIndex = 0;
            //
            // gbox_estatus
            //
            this.gbox_estatus.BackColor = System.Drawing.Color.Transparent;
            this.gbox_estatus.Controls.Add(this.txt_numero);
            this.gbox_estatus.Controls.Add(this.btn_revisar);
            this.gbox_estatus.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.gbox_estatus.Location = new System.Drawing.Point(893, 25);
            this.gbox_estatus.Name = "gbox_estatus";
            this.gbox_estatus.Size = new System.Drawing.Size(213, 111);
            this.gbox_estatus.TabIndex = 1;
            this.gbox_estatus.TabStop = false;
            this.gbox_estatus.Text = "Estatus";
            //
            // txt_numero
            //
            this.txt_numero.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.txt_numero.Location = new System.Drawing.Point(40, 30);
            this.txt_numero.Name = "txt_numero";
            this.txt_numero.Size = new System.Drawing.Size(129, 29);
            this.txt_numero.TabIndex = 3;
            //
            // btn_revisar
            //
            this.btn_revisar.Location = new System.Drawing.Point(114, 73);
            this.btn_revisar.Name = "btn_revisar";
            this.btn_revisar.Size = new System.Drawing.Size(75, 23);
            this.btn_revisar.TabIndex = 2;
            this.btn_revisar.Text = "Revisar";
            this.btn_revisar.UseVisualStyleBackColor = true;
            this.btn_revisar.Click += new System.EventHandler(this.btn_revisar_Click);
            //
            // pictureBox1
            //
            this.pictureBox1.Image = global::Acuanet.Properties.Resources.Llegadas;
            this.pictureBox1.Location = new System.Drawing.Point(12, 6);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(283, 161);
            this.pictureBox1.TabIndex = 0;
            this.pictureBox1.TabStop = false;
            //
            // FormaPLlegadas
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackgroundImage = global::Acuanet.Properties.Resources.descarga1;
            this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.ClientSize = new System.Drawing.Size(1204, 577);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.gbox_estatus);
            this.Controls.Add(this.dgv_llegadas);
            this.Name = "FormaPLlegadas";
            this.Text = "PantallaLlegadas";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmPL_FormClosing);
            this.Load += new System.EventHandler(this.frmPL_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dgv_llegadas)).EndInit();
            this.gbox_estatus.ResumeLayout(false);
            this.gbox_estatus.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Timer timer1;
        private System.Windows.Forms.DataGridView dgv_llegadas;
        private System.Windows.Forms.GroupBox gbox_estatus;
        private System.Windows.Forms.TextBox txt_numero;
        private System.Windows.Forms.Button btn_revisar;
        private System.Windows.Forms.PictureBox pictureBox1;
    }
}


text:
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.BatteryManager
       (js_getCharging, getCharging, js_getChargingTime, getChargingTime,
        js_getDischargingTime, getDischargingTime, js_getLevel, getLevel,
        chargingChange, chargingTimeChange, dischargingTimeChange,
        levelChange, BatteryManager, castToBatteryManager,
        gTypeBatteryManager)
       where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, maybe, fromIntegral, round, fmap, Show, Read, Eq, Ord)
import Data.Typeable (Typeable)
import GHCJS.Types (JSRef(..), JSString, castRef)
import GHCJS.Foreign (jsNull)
import GHCJS.Foreign.Callback (syncCallback, asyncCallback, syncCallback1, asyncCallback1, syncCallback2, asyncCallback2, OnBlocked(..))
import GHCJS.Marshal (ToJSRef(..), FromJSRef(..))
import GHCJS.Marshal.Pure (PToJSRef(..), PFromJSRef(..))
import Control.Monad.IO.Class (MonadIO(..))
import Data.Int (Int64)
import Data.Word (Word, Word64)
import GHCJS.DOM.Types
import Control.Applicative ((<$>))
import GHCJS.DOM.EventTargetClosures (EventName, unsafeEventName)
import GHCJS.DOM.Enums

foreign import javascript unsafe "($1[\"charging\"] ? 1 : 0)"
        js_getCharging :: JSRef BatteryManager -> IO Bool

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.charging Mozilla BatteryManager.charging documentation>
getCharging :: (MonadIO m) => BatteryManager -> m Bool
getCharging self = liftIO (js_getCharging (unBatteryManager self))

foreign import javascript unsafe "$1[\"chargingTime\"]"
        js_getChargingTime :: JSRef BatteryManager -> IO Double

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.chargingTime Mozilla BatteryManager.chargingTime documentation>
getChargingTime :: (MonadIO m) => BatteryManager -> m Double
getChargingTime self
  = liftIO (js_getChargingTime (unBatteryManager self))

foreign import javascript unsafe "$1[\"dischargingTime\"]"
        js_getDischargingTime :: JSRef BatteryManager -> IO Double

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.dischargingTime Mozilla BatteryManager.dischargingTime documentation>
getDischargingTime :: (MonadIO m) => BatteryManager -> m Double
getDischargingTime self
  = liftIO (js_getDischargingTime (unBatteryManager self))

foreign import javascript unsafe "$1[\"level\"]" js_getLevel ::
        JSRef BatteryManager -> IO Double

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.level Mozilla BatteryManager.level documentation>
getLevel :: (MonadIO m) => BatteryManager -> m Double
getLevel self = liftIO (js_getLevel (unBatteryManager self))

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.onchargingchange Mozilla BatteryManager.onchargingchange documentation>
chargingChange :: EventName BatteryManager Event
chargingChange = unsafeEventName (toJSString "chargingchange")

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.onchargingtimechange Mozilla BatteryManager.onchargingtimechange documentation>
chargingTimeChange :: EventName BatteryManager Event
chargingTimeChange
  = unsafeEventName (toJSString "chargingtimechange")

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.ondischargingtimechange Mozilla BatteryManager.ondischargingtimechange documentation>
dischargingTimeChange :: EventName BatteryManager Event
dischargingTimeChange
  = unsafeEventName (toJSString "dischargingtimechange")

-- | <https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager.onlevelchange Mozilla BatteryManager.onlevelchange documentation>
levelChange :: EventName BatteryManager Event
levelChange = unsafeEventName (toJSString "levelchange")


text:
RSpec.describe Message::UnhandledOperation do
  let(:message_type) { Message::UnhandledOperation::TYPE_CODE }

  let(:string) { message_type }

  describe '.new' do
    it 'should reuse the same singleton object' do
      expect(Message::UnhandledOperation.new.object_id).to eq \
      Message::UnhandledOperation.new.object_id
    end
  end

  describe '.parse' do
    it 'should parse correctly' do
      message = Message::UnhandledOperation.parse string

      expect(message).to be_a Message::UnhandledOperation
    end
  end

  describe '#to_s' do
    it 'should serialize correctly' do
      serialized = Message::UnhandledOperation.new.to_s

      expect(serialized).to eq string
    end
  end
end


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Sagedia graeweana Blomb.

### Remarks
null


text:
package com.sfxcode.sapphire.core.scene

import javafx.scene.control._
import javafx.scene.{ Node, Scene }
import javafx.stage.Stage

trait NodeLocator {

  def stage: Stage

  def scene: Scene

  def locateTextField(nodeId: String, parent: Node = null): Option[TextField] =
    locate[TextField](nodeId, parent)

  def locateLabel(nodeId: String, parent: Node = null): Option[Label] =
    locate[Label](nodeId, parent)

  def locateComboBox[T <: Any](nodeId: String, parent: Node = null): Option[ComboBox[T]] =
    locate[ComboBox[T]](nodeId, parent)

  def locateButton(nodeId: String, parent: Node = null): Option[Button] =
    locate[Button](nodeId, parent)

  def locate[A <: Node](nodeId: String, parent: Node = null): Option[A] = {
    val result = locateInternal(nodeId, parent)
    if (result.isDefined && result.get.isInstanceOf[A])
      result.asInstanceOf[Option[A]]
    else
      None
  }

  private def locateInternal(nodeId: String, parent: Node = null): Option[Node] =
    if (parent == null) {
      val lookupResult = scene.lookup(nodeId)
      if (lookupResult != null)
        Some(lookupResult)
      else {
        val lookupByIdResult = scene.lookup("#" + nodeId)
        Option(lookupByIdResult)
      }
    } else {
      val lookupResult = parent.lookup(nodeId)
      if (lookupResult != null)
        Some(lookupResult)
      else {
        val lookupByIdResult = parent.lookup("#" + nodeId)
        Option(lookupByIdResult)
      }
    }

}


text:
import { PhoneOutgoing32 } from "../../";

export = PhoneOutgoing32;


text:
Extensions to a node certificate can de defined for each Puppet managed node in order to define informations that can't be changed unless the same node certificate is recreated.

These settings are defined trusted facts, for this reason and are the most secure wa to set facts on a node which don't rely of some computation but just define some characteristics of the node itself (as its role, operational environment or other).

**Before** the first execution of Puppet edit ```/etc/puppetlabs/puppet/csr_attributes.yaml``` with a content like:

    ---
      extension_requests:
        pp_role: 'fe'
        pp_environment: 'devel'
        pp_datacenter: 'main'
        pp_application: 'voicemail'

The first Puppet run should be done after this file has been generated.

Once created trusted facts can be accessed in Puppet code with a syntax like: ```$trusted['extensions']['pp_role']```.

Note that once a trusted fact is set, that can't be changed unless the client's certificate is recreated. This means, for example, that before changing the environment of a server (if ever needed) a (eventually manual) client re-certification has to be done.

In case of SSL errors always usual procedures apply:

  - Check times on client and server are synced
  - Eventually clean old certs with same name on client and server
  - Google

For more information: [SSL configuration: CSR attributes and certificate extensions](https://docs.puppet.com/puppet/latest/reference/ssl_attributes_extensions.html)

Note that once a trusted fact is set, that can't be changed unless the client's certificate is recreated. This means, for example, that before changing the environment of a server (if ever needed) a (eventually manual) client re-certification has to be done.

In this control-repo if trusted facts such facts are defined, they are used to populate top scope variables which are then used in hiera.yaml hierachy.

The top scope variables are defined in ```manifests/site.pp``` as follows:

    if $trusted['extensions']['pp_role'] {
      $role = $trusted['extensions']['pp_role']
    }
    if $trusted['extensions']['pp_environment'] {
      $env = $trusted['extensions']['pp_environment']
    }
    if $trusted['extensions']['pp_datacenter'] {
      $zone = $trusted['extensions']['pp_datacenter']
    }

In ```hiera3.yaml``` are then used these variables in the sample hierarchy:

    :hierarchy:
      - "hostname/%{::trusted.certname}"
      - "role/%{::role}-%{::env}"
      - "role/%{::role}"
      - "zone/%{::zone}"
      - common

A similar hierarchy is defined for Hiera version 5 alternative in ```hiera.yaml```.

### Setting and customise variables used in Hiera hierarchy

Feel free to adapt these variables names and kind to your own needs: you may want to define different variable names to use in Hiera hierarchy for different purposes and you may define their values in different ways, such as:

  - As *trusted facts*, as outlined here

  - As *external facts*, writing, possibly during provisioning, the relevant files under ```/etc/puppetlabs/facter/facts.d```

  - As global parameters set in a ```ENC``` (such as Puppet Enterprise or The Foreman).

  - In *manifests/site.pp* as result of the parsing of the hostname.

The latter case is possible when we have hostnames with a fixed pattern which contains information about the role, env, zone or whatever of a node.

For example if we have nodes with a naming pattern like: $role-$id-$env.$::domain (ie: fe-01-test.example42.com) we can have set top scope variables in our ```manifests/site.pp``` with something like:

    $node_array = split($::hostname,'-')
    $role = $node_array[0]
    $id = $node_array[1]
    $env = $node_array[2]


text:
package org.jabref.gui.maintable;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import javax.swing.event.ChangeEvent;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.TableColumnModelEvent;
import javax.swing.event.TableColumnModelListener;

import org.jabref.Globals;
import org.jabref.model.entry.FieldName;
import org.jabref.preferences.JabRefPreferences;

/**
 * Listens for TableColumnModelEvents to keep track of changes made to the
 * MainTable columns, like reordering or resizing.
 *
 * Changes to columns without a name and the "#" column are not saved. To have
 * consistent behavior (e.g. as in TableColumnsTab).
 *
 * @author Fabian Bieker
 * @author Daniel Waeber
 * @since 12/2008
 *
 */
public class PersistenceTableColumnListener implements TableColumnModelListener {

    private static final String SIMPLE_CLASS_NAME = PersistenceTableColumnListener.class.getSimpleName();

    // needed to get column names / indices mapped from view to model
    // and to access the table model
    private final MainTable mainTable;

    private static final String RECEIVED_NULL_EVENT = " received null event";

    /**
     * @param mainTable
     */
    public PersistenceTableColumnListener(final MainTable mainTable) {
        this.mainTable = mainTable;
    }

    /**
     * update columns names and their width, store it in the global prefs.
     */
    private void updateColumnPrefs() {
        final int columnCount = mainTable.getColumnCount();
        List<String> storedColumns = new ArrayList<>(columnCount - 1);
        List<String> columnsWidths = new ArrayList<>(columnCount - 1);
        int ncWidth = -1;

        for (int i = 0; i < columnCount; i++) {
            final String name = mainTable.getColumnName(i);
            if ((name != null) && !name.isEmpty()) {
                if (FieldName.NUMBER_COL.equals(name)) {
                    ncWidth = mainTable.getColumnModel().getColumn(i).getWidth();
                } else {
                    storedColumns.add(name.toLowerCase(Locale.ROOT));
                    columnsWidths.add(String.valueOf(mainTable.getColumnModel().getColumn(i).getWidth()));
                }
            }
        }

        // Finally, we store the new preferences.
        Globals.prefs.putStringList(JabRefPreferences.COLUMN_NAMES, storedColumns);
        Globals.prefs.putStringList(JabRefPreferences.COLUMN_WIDTHS, columnsWidths);

        // width of the number ("#") column
        Globals.prefs.putInt(JabRefPreferences.NUMBER_COL_WIDTH, ncWidth);
    }

    /**
     * @see javax.swing.event.TableColumnModelListener#columnAdded(javax.swing.event.TableColumnModelEvent)
     */
    @Override
    public void columnAdded(TableColumnModelEvent e) {
        assert e != null : PersistenceTableColumnListener.SIMPLE_CLASS_NAME + RECEIVED_NULL_EVENT;

        updateColumnPrefs();
    }

    /**
     * @see javax.swing.event.TableColumnModelListener#columnMarginChanged(javax.swing.event.ChangeEvent)
     */
    @Override
    public void columnMarginChanged(ChangeEvent e) {
        assert e != null : PersistenceTableColumnListener.SIMPLE_CLASS_NAME + RECEIVED_NULL_EVENT;

        updateColumnPrefs();
    }

    /**
     * @see javax.swing.event.TableColumnModelListener#columnMoved(javax.swing.event.TableColumnModelEvent)
     */
    @Override
    public void columnMoved(TableColumnModelEvent e) {
        assert e != null : PersistenceTableColumnListener.SIMPLE_CLASS_NAME + RECEIVED_NULL_EVENT;

        // not really moved, ignore ...
        if (e.getFromIndex() == e.getToIndex()) {
            return;
        }

        updateColumnPrefs();

    }

    /**
     * @see javax.swing.event.TableColumnModelListener#columnRemoved(javax.swing.event.TableColumnModelEvent)
     */
    @Override
    public void columnRemoved(TableColumnModelEvent e) {
        assert e != null : PersistenceTableColumnListener.SIMPLE_CLASS_NAME + RECEIVED_NULL_EVENT;

        updateColumnPrefs();

    }

    /**
     * @see javax.swing.event.TableColumnModelListener#columnSelectionChanged(javax.swing.event.ListSelectionEvent)
     */
    @Override
    public void columnSelectionChanged(ListSelectionEvent e) {
        // ignore
    }

}


text:
Template.hello.nameForm = function() {
  return EasyForm.form({
    'inputs': [
      {model: 'name'},
      {placeholder: 'Description of Whoever', model: 'description'},
    ],
    'submitName' : 'Save',
    'submitAction': function(event, template) {
      event.preventDefault();
      console.log(EasyForm.getValues(template));
    }
  });
};

Template.hello.person = function() {
  return { name: 'Bob', description: 'The Builder', email: 'bob@thebuilder.com'};
}

Template.hello.contactDetailsForm = function(data) {
  return EasyForm.form({
    'inputs': [
      {model: '_id', type: 'hidden'},
      {model: 'name'},
      {placeholder: 'Description of Whoever', model: 'description'},
      {model: 'email', type: 'email'},
      {model: 'mobile', validate: EasyForm.phoneNumber, error: 'must only be digits'},
      {model: 'address', validate: EasyForm.mustBeAlphaNumeric, error: 'must be alpha'},
      {model: 'city', options: [{value:'Aucland'}, {value:'Wellington'}], type: 'dropdown'},
      {model: 'password', type: 'password'},
    ],
    'onValidateError' : function(input, value, target, context, template) {
      var el = template.find('#' + input.id + '-error');
      if(el) $(el).show();
    },
    'onValidateOk' : function(input, value, target, context, template) {
      var el = template.find('#' + input.id + '-error');
      if(el) $(el).hide();
    },
    'submitName' : 'Save',
    'submitAction': function(event, template) {
      event.preventDefault();
      console.log(EasyForm.getValues(template));
      console.log(EasyForm.getChangedValues(template));
    }
  }, data);
};


text:
DIKB-Micropublication

=====================

Micropublication and Open Data Annotation for drug-drug interaction evidence synthesis

=====================

OBJECTIVE

The purpose of this project is to test various models for representing
drug-drug interactions claims using Micropublication, Open Data
Annotation, and the new Drug Interaction Data and Evidence Ontology
(DIDEO)

=====================

TEAM MEMBERS

Principal Investigators: Richard D Boyce, Phd
Lead Programmer: Yifan Ning, MS
Collaborators/Co-Investigators: Jodi Schneider, PhD, Samuel Rosko, Tim Clark, PhD, Paolo Ciccarese, PhD, Paul Groth, PhD

=====================

ACKNOWLEDGEMENTS

This project is supported by a grant from the National Library of
Medicine: "Addressing gaps in clinically useful evidence on drug-drug
interactions" (1R01LM011838-01)

=====================

PUBLICATIONS

Schneider, J., Brochhausen, M., Rosko, S., Ciccarese, S., Hogan, WR., Malone, D., Ning, Y., Clark, T., and Boyce, RD. Formalizing knowledge and evidence about potential drug-drug interactions. The International Workshop on Biomedical Data Mining, Modeling, and Semantic Integration: A Promising Approach to Solving Unmet Medical Needs (BDM2I 2015) at the 14th International Semantic Web Conference (ISWC). October 11th 2015. Bethlehem, PA. http://ceur-ws.org/Vol-1428/BDM2I_2015_paper_10.pdf.

Schneider, J., Collins, C., Hines, L., Horn, JR, Boyce, R. "Modeling Arguments in Scientific Papers." at the 12th Annual ArgDiaP Conference: From Real Data to Argument Mining. Warsaw, Poland, May 23-24 2014. http://jodischneider.com/pubs/argdiap2014.pdf

Schneider, J., Ciccarese, P., Clark, T., Boyce, RD. Using the Micropublications ontology and the Open Annotation Data Model to represent evidence within a drug-drug interaction knowledge base. The 4th Workshop on Linked Science 2014— Making Sense Out of Data (LISC2014). Collocated with the 13th International Semantic Web Conference (ISWC2014). October 19th and 20th, Riva del Garda, Trentino, Italy. http://ceur-ws.org/Vol-1282/.

=====================

MP/NP EXAMPLES (https://dbmi-icode-01.dbmi.pitt.edu/sparql)

A NP:
```
select *
from <ddi:ddi-spl-annotation-np-head-389>
where {
 ?s ?p ?o.
}
```

```
DESCRIBE <http://dbmi-icode-01.dbmi.pitt.edu/mp/ddi-spl-annotation-claim-1>
```
Or, view the queries in the [example queries](queries/)


text:
//
//  Generated by the J2ObjC translator.  DO NOT EDIT!
//  source: /Volumes/Personal/Documents/raspi-config/client-framework/build/j2oSources/com/google/common/collect/RegularImmutableSortedSet.java
//

#include "J2ObjC_header.h"

#pragma push_macro("INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableSortedSet")
#ifdef RESTRICT_ComGoogleCommonCollectRegularImmutableSortedSet
#define INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableSortedSet 0
#else
#define INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableSortedSet 1
#endif
#undef RESTRICT_ComGoogleCommonCollectRegularImmutableSortedSet

#if __has_feature(nullability)
#pragma clang diagnostic push
#pragma GCC diagnostic ignored "-Wnullability-completeness"
#endif

#if !defined (ComGoogleCommonCollectRegularImmutableSortedSet_) && (INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableSortedSet || defined(INCLUDE_ComGoogleCommonCollectRegularImmutableSortedSet))
#define ComGoogleCommonCollectRegularImmutableSortedSet_

#define RESTRICT_ComGoogleCommonCollectImmutableSortedSet 1
#define INCLUDE_ComGoogleCommonCollectImmutableSortedSet 1
#include "com/google/common/collect/ImmutableSortedSet.h"

@class ComGoogleCommonCollectImmutableList;
@class ComGoogleCommonCollectUnmodifiableIterator;
@class IOSObjectArray;
@protocol JavaUtilCollection;
@protocol JavaUtilComparator;
@protocol JavaUtilFunctionConsumer;
@protocol JavaUtilSpliterator;

@interface ComGoogleCommonCollectRegularImmutableSortedSet : ComGoogleCommonCollectImmutableSortedSet

#pragma mark Public

- (id)ceilingWithId:(id)element;

- (jboolean)containsWithId:(id)o;

- (jboolean)containsAllWithJavaUtilCollection:(id<JavaUtilCollection>)targets;

- (ComGoogleCommonCollectUnmodifiableIterator *)descendingIterator;

- (jboolean)isEqual:(id)object;

- (id)first;

- (id)floorWithId:(id)element;

- (void)forEachWithJavaUtilFunctionConsumer:(id<JavaUtilFunctionConsumer>)action;

- (id)higherWithId:(id)element;

- (ComGoogleCommonCollectUnmodifiableIterator *)iterator;

- (id)last;

- (id)lowerWithId:(id)element;

- (jint)size;

- (id<JavaUtilSpliterator>)spliterator;

#pragma mark Package-Private

- (instancetype)initWithComGoogleCommonCollectImmutableList:(ComGoogleCommonCollectImmutableList *)elements
                                     withJavaUtilComparator:(id<JavaUtilComparator>)comparator;

- (jint)copyIntoArrayWithNSObjectArray:(IOSObjectArray *)dst
                               withInt:(jint)offset OBJC_METHOD_FAMILY_NONE;

- (ComGoogleCommonCollectImmutableList *)createAsList;

- (ComGoogleCommonCollectImmutableSortedSet *)createDescendingSet;

- (ComGoogleCommonCollectRegularImmutableSortedSet *)getSubSetWithInt:(jint)newFromIndex
                                                              withInt:(jint)newToIndex;

- (jint)headIndexWithId:(id)toElement
            withBoolean:(jboolean)inclusive;

- (ComGoogleCommonCollectImmutableSortedSet *)headSetImplWithId:(id)toElement
                                                    withBoolean:(jboolean)inclusive;

- (jint)indexOfWithId:(id)target;

- (jboolean)isPartialView;

- (ComGoogleCommonCollectImmutableSortedSet *)subSetImplWithId:(id)fromElement
                                                   withBoolean:(jboolean)fromInclusive
                                                        withId:(id)toElement
                                                   withBoolean:(jboolean)toInclusive;

- (jint)tailIndexWithId:(id)fromElement
            withBoolean:(jboolean)inclusive;

- (ComGoogleCommonCollectImmutableSortedSet *)tailSetImplWithId:(id)fromElement
                                                    withBoolean:(jboolean)inclusive;

- (id<JavaUtilComparator>)unsafeComparator;

@end

J2OBJC_STATIC_INIT(ComGoogleCommonCollectRegularImmutableSortedSet)

inline ComGoogleCommonCollectRegularImmutableSortedSet *ComGoogleCommonCollectRegularImmutableSortedSet_get_NATURAL_EMPTY_SET();
/*! INTERNAL ONLY - Use accessor function from above. */
FOUNDATION_EXPORT ComGoogleCommonCollectRegularImmutableSortedSet *ComGoogleCommonCollectRegularImmutableSortedSet_NATURAL_EMPTY_SET;
J2OBJC_STATIC_FIELD_OBJ_FINAL(ComGoogleCommonCollectRegularImmutableSortedSet, NATURAL_EMPTY_SET, ComGoogleCommonCollectRegularImmutableSortedSet *)

FOUNDATION_EXPORT void ComGoogleCommonCollectRegularImmutableSortedSet_initWithComGoogleCommonCollectImmutableList_withJavaUtilComparator_(ComGoogleCommonCollectRegularImmutableSortedSet *self, ComGoogleCommonCollectImmutableList *elements, id<JavaUtilComparator> comparator);

FOUNDATION_EXPORT ComGoogleCommonCollectRegularImmutableSortedSet *new_ComGoogleCommonCollectRegularImmutableSortedSet_initWithComGoogleCommonCollectImmutableList_withJavaUtilComparator_(ComGoogleCommonCollectImmutableList *elements, id<JavaUtilComparator> comparator) NS_RETURNS_RETAINED;

FOUNDATION_EXPORT ComGoogleCommonCollectRegularImmutableSortedSet *create_ComGoogleCommonCollectRegularImmutableSortedSet_initWithComGoogleCommonCollectImmutableList_withJavaUtilComparator_(ComGoogleCommonCollectImmutableList *elements, id<JavaUtilComparator> comparator);

J2OBJC_TYPE_LITERAL_HEADER(ComGoogleCommonCollectRegularImmutableSortedSet)

#endif

#if __has_feature(nullability)
#pragma clang diagnostic pop
#endif
#pragma pop_macro("INCLUDE_ALL_ComGoogleCommonCollectRegularImmutableSortedSet")


text:
"""
Created on Oct 19, 2016

@author: Jafar Taghiyar (jtaghiyar@bccrc.ca)
"""

from django.conf.urls import url
from . import views

app_name = 'khayyam'
urlpatterns = [
url(r'^$', views.home_view, name='home'),
url(r'^run/new$', views.WorkflowRun.as_view(), name='workflow_run'),
url(r'^run/new/(?P<from_sequencing>\d+)$', views.WorkflowRun.as_view(), name='workflow_run_from_sequencing'),
url(r'^run/re/(?P<pk>\d+)$', views.workflow_re_run, name='workflow_re_run'),
url(r'^run/stop/(?P<pk>\d+)$', views.workflow_stop, name='workflow_stop'),
]


text:
class IFXOpenGL;
class IFXOpenGLOS;
class CIFXRenderOGL;

class CIFXRenderDeviceOGL : public CIFXRenderDevice
{
	U32 m_refCount;
public:
	U32 IFXAPI  AddRef ();
	U32 IFXAPI  Release ();
	IFXRESULT IFXAPI  QueryInterface (IFXREFIID interfaceId, void** ppInterface);

	friend IFXRESULT IFXAPI_CALLTYPE CIFXRenderDeviceOGLFactory(IFXREFIID intId, void** ppUnk);

	IFXRESULT IFXAPI Initialize(U32 uDeviceNum);

	IFXRESULT IFXAPI GetSupported(U32 uDeviceNum, BOOL& bSupported);

	IFXRESULT IFXAPI GetCaps(IFXRenderCaps& rCaps) const;

	IFXRESULT IFXAPI DrawMesh(IFXMesh& rMesh, U32& uNumRenderCalls, U8 uMeshType);

	U32 IFXAPI GetDeviceNum() { return m_uDeviceNum; }

	void* IFXAPI GetCurrent() const;

	IFXOpenGL* IFXAPI GetOpenGL() { return m_pOGL; }

	void IFXAPI GetOpenGLData(IFXOGLData& oglData)
	{
		memcpy(&oglData, &m_glData, sizeof(IFXOGLData));
	}

	void IFXAPI SetOpenGLData(IFXOGLData& oglData)
	{
		memcpy(&m_glData, &oglData, sizeof(IFXOGLData));
		SetDefaults();
	}

	void IFXAPI SetActiveTexUnit(U32 uTexUnit);

	U32	IFXAPI GetNumHWTexUnits() { return m_uNumTexUnits; }

	IFXRESULT IFXAPI MakeDeviceCurrent();

	BOOL IFXAPI SetCurrentOGLRender(CIFXRenderOGL* pRender)
	{
		if(m_pCurrentRender != pRender)
		{
			m_pCurrentRender = pRender;
			return TRUE;
		}

		return FALSE;
	}

	const IFXMatrix4x4& IFXAPI GetViewMatrix() const { return m_mViewMatrix; }
	const IFXMatrix4x4& IFXAPI GetWorldMatrix() const { return m_mWorldMatrix; }

protected:
	CIFXRenderDeviceOGL();
	virtual ~CIFXRenderDeviceOGL();

	void IFXAPI InitData();
	IFXRESULT IFXAPI Construct();

	void IFXAPI FillIFXRenderCaps();

	GLenum IFXAPI GetDepthFunc(IFXenum eCmp);

	IFXRESULT IFXAPI InitContext();

	// Blend Settings
	IFXRESULT IFXAPI SetHWBlendEnabled(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWBlendFunc(IFXenum eFunc);
	IFXRESULT IFXAPI SetHWTestRef(F32 fRef);
	IFXRESULT IFXAPI SetHWTestFunc(IFXenum eFunc);
	IFXRESULT IFXAPI SetHWAlphaTestEnabled(BOOL bEnabled);

	// Fog Settings
	IFXRESULT IFXAPI SetHWFogEnabled(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWMode(IFXenum eMode);
	IFXRESULT IFXAPI SetHWColor(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWLinearNear(F32 fNear);
	IFXRESULT IFXAPI SetHWFar(F32 fFar);

	// Material Settings
	IFXRESULT IFXAPI SetHWEmissive(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWAmbient(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWDiffuse(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWSpecular(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWShininess(F32 fShininess);
	IFXRESULT IFXAPI SetHWFastSpecular(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWRenderStyle(IFXenum eRenderStyle);
	IFXRESULT IFXAPI SetHWShadeModel(IFXenum eShadeModel);
	IFXRESULT IFXAPI SetHWMaterial();

	// Miscellaneous Settings
	IFXRESULT IFXAPI SetHWLighting(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWDepthTest(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWDepthWrite(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWDepthCompare(IFXenum eCompare);
	IFXRESULT IFXAPI SetHWCull(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWCullMode(IFXenum eCullMode);
	IFXRESULT IFXAPI SetHWLineOffset(U32 uOffset);
	IFXRESULT IFXAPI SetHWViewMatrix(const IFXMatrix4x4& mViewMatrix);
	IFXRESULT IFXAPI SetHWWorldMatrix(const IFXMatrix4x4& mWorldMatrix);
	IFXRESULT IFXAPI SetHWGlobalAmbient(const IFXVector4& vGlobalAmbient);
	IFXRESULT IFXAPI SetHWConstantColor(const IFXVector4& vColor);
	IFXRESULT IFXAPI SetHWNormalization(BOOL bNormalization);

	// Stencil Settings
	IFXRESULT IFXAPI SetHWStencilEnabled(BOOL bEnabled);
	IFXRESULT IFXAPI SetHWFailureOp(IFXenum eOp) { return m_Stencil.SetFailureOp(eOp); }
	IFXRESULT IFXAPI SetHWZFailureOp(IFXenum eOp) { return m_Stencil.SetZFailureOp(eOp); }
	IFXRESULT IFXAPI SetHWPassOp(IFXenum eOp) { return m_Stencil.SetPassOp(eOp); }
	IFXRESULT IFXAPI SetHWStencilFunc(IFXenum eFunc) { return m_Stencil.SetStencilFunc(eFunc); }
	IFXRESULT IFXAPI SetHWTestMask(U32 uMask) { return m_Stencil.SetTestMask(uMask); }
	IFXRESULT IFXAPI SetHWWriteMask(U32 uMask) { return m_Stencil.SetWriteMask(uMask); }
	IFXRESULT IFXAPI SetHWStencilRef(U32 uRef) { return m_Stencil.SetReference(uRef); }
	IFXRESULT IFXAPI SetHWStencil();
	GLenum IFXAPI GetGLStencilOp(IFXenum eOp);
	GLenum IFXAPI GetGLStencilFunc(IFXenum eFunc);

	// View Data
	IFXRESULT IFXAPI SetHWView();
	void IFXAPI CalcProjectionMatrix();

	// Blend Data
	GLenum m_uSrcBlend;
	GLenum m_uDestBlend;
	GLenum m_uTestFunc;

	// Material Data
	BOOL	m_bBlackSpecular;
	BOOL	m_bUsingColorMaterial;

	// OS Specific Implementations
	IFXRESULT IFXAPI DestroyOS();
	IFXRESULT IFXAPI InitializeOS();
	IFXRESULT IFXAPI InitContextOS();
	IFXRESULT IFXAPI InitWindowOS();

	IFXOGLData m_glData;

	IFXOpenGL* m_pOGL;
	IFXOpenGLOS* m_pOSOGL;

	CIFXRenderOGL* m_pCurrentRender;

	U32 m_uDeviceNum;

	IFXMatrix4x4 m_mWorldViewMatrix;

	CIFXDeviceLightOGLPtr		m_pspLightsOGL[IFX_MAX_LIGHTS];
	CIFXDeviceTexUnitOGLPtr		m_pspTexUnitsOGL[IFX_MAX_TEXUNITS];

	U32	m_uNumTexUnits;
	U32	m_uActiveTexUnit;

	IFXRenderCaps	m_RCaps;

};
typedef IFXSmartPtr<CIFXRenderDeviceOGL> CIFXRenderDeviceOGLPtr;

#endif // CIFX_RENDER_DEVICE_OGL_H

// END OF FILE


text:
from copy import copy

from django.views import generic
from django.core.urlresolvers import reverse
from django.conf import settings
from django.contrib import messages

from templated_email import send_templated_mail

from core.generic_views import FilterViewWithPagination
from .mixins import ErrorPostListMetadataMixin, ErrorPostMetadataMixin
from .filtersets import ExceptionSearchFilter
from .models import ErrorPost, ErrorPostPublished, ErrorPostNonPublished
from .forms import ErrorPostForm

class ErrorPostListView(ErrorPostListMetadataMixin, FilterViewWithPagination):
    template_name = 'error_posts/published_list.html'
    filterset_class = ExceptionSearchFilter
    paginate_by = 50

    def get_queryset(self):
        return ErrorPostPublished.objects.all()

class ErrorPostDetailView(ErrorPostMetadataMixin, generic.DetailView):
    template_name = 'error_posts/detail.html'

    def get_queryset(self):
        return ErrorPost.objects.all()

class NonPublishedErrorPostListView(ErrorPostListMetadataMixin, FilterViewWithPagination):
    template_name = 'error_posts/non_published_list.html'
    filterset_class = ExceptionSearchFilter
    paginate_by = 50

    def get_queryset(self):
        return ErrorPostNonPublished.objects.all()

class ErrorPostCreateView(generic.CreateView):
    template_name = 'error_posts/create.html'
    form_class = ErrorPostForm

    def get_initial(self):
        initial = {}
        for key, values in self.request.GET.items():
            initial[key] = values
        return initial

    def get_context_data(self, **kwargs):
        context = super().get_context_data(**kwargs)
        context['RECAPTCHA_KEY'] = settings.RECAPTCHA_KEY
        return context

    def get_form_kwargs(self):
        kwargs = super().get_form_kwargs()
        if self.request.method == 'POST':
            data = copy(kwargs.get('data', {}))
            data['recaptcha'] = data.get('g-recaptcha-response')
            kwargs['data'] = data
            kwargs['request'] = self.request
        return kwargs

    def form_valid(self, form):
        # When a user is redirected from the fixmydjango-lib to fixmydjango, the data of the
        # ErrorPost object is sent in the Url.
        if self.request.GET:
            form = form.save(data_came_from="lib")
        else:
            form = form.save(data_came_from="site")

        response = super().form_valid(form)
        messages.info(self.request,
                      "Thank you for adding a new exception! "
                      "Soon its solution will be available.")
        error_post_url = self.request.build_absolute_uri(
            reverse('admin:error_posts_errorpost_change', args=[form.id]))
        send_templated_mail(
            template_name='new_error_post',
            from_email=settings.DEFAULT_FROM_EMAIL,
            recipient_list=['contact@vinta.com.br'],
            context={
                'error_post': form,
                'error_post_url': error_post_url})
        return response

    def get_success_url(self):
        return reverse('error_posts:non_published_list')