text:
import { ServiceClientOptions, RequestOptions, ServiceCallback, ServiceClientCredentials } from 'ms-rest';
import * as operations from "./operations";

declare class DataLakeStoreFileSystemManagementClient {
    /**
     * @class
     * Initializes a new instance of the DataLakeStoreFileSystemManagementClient class.
     * @constructor
     *
     * @param {credentials} credentials - Credentials needed for the client to connect to Azure.
     *
     * @param {object} [options] - The parameter options
     *
     * @param {Array} [options.filters] - Filters to be added to the request pipeline
     *
     * @param {object} [options.requestOptions] - Options for the underlying request object
     * {@link https://github.com/request/request#requestoptions-callback Options doc}
     *
     * @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
     *
     * @param {string} [options.apiVersion] - Client Api Version.
     *
     * @param {string} [options.adlsFileSystemDnsSuffix] - Gets the URI used as the base for all cloud service requests.
     *
     * @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
     *
     * @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
     *
     * @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
     *
     */
    constructor(credentials: ServiceClientCredentials, options: ServiceClientOptions);

    credentials: ServiceClientCredentials;

    apiVersion: string;

    adlsFileSystemDnsSuffix: string;

    acceptLanguage: string;

    longRunningOperationRetryTimeout: number;

    generateClientRequestId: boolean;

    // Operation groups
    fileSystem: operations.FileSystem;
    }

export = DataLakeStoreFileSystemManagementClient;

redpajama_set_name: RedPajamaGithub


text:
import { Controller, Get, TYPE } from 'inversify-express-utils';
import { provideNamed } from '../ioc/ioc';
import TYPES from '../constant/types';
import TAGS from '../constant/tags';

@provideNamed(TYPE.Controller, TAGS.HomeController)
@Controller('/')
export class HomeController {
  @Get('/')
  public get(): string {
    return 'Home sweet home';
  }
}


text:
require 'sinatra/content_for'

module BlueSkies
  module Routes
    class Base < Sinatra::Base
      configure do
        set :views, 'app/views'
      end

      helpers Sinatra::ContentFor

      helpers do
        def asset_path(asset)
          '/assets/' + JSON.parse(File.read('assets-manifest.json')).fetch(asset)
        end

        def ordinal(number)
          abs_number = number.to_i.abs

          if (11..13).include?(abs_number % 100)
            "th"
          else
            case abs_number % 10
              when 1; "st"
              when 2; "nd"
              when 3; "rd"
              else    "th"
            end
          end
        end

        def interest_image(interest)
          @interests_images ||= {}
          @interests_images[interest.id] ||= begin
            interest.stems
              .map { |s| Dir.glob("./public/interests/#{s}/*.jpg") }
              .flatten
              .map { |path| path.gsub('./public', '') }
              .sample
          end
        end
      end

      not_found do
        erb :'404'
      end
    end
  end
end


text:
package com.company.kalia.engine.heart;

/**
 * Created by jimmy on 05/12/15.
 */
public abstract class Heart {

    private HeartType type;

    public Heart(HeartType type) {
        this.type = type;
    }

    public HeartType getType() {
        return type;
    }
}


text:
package amora.backend.services

import java.io.BufferedWriter
import java.io.File
import java.io.OutputStreamWriter

import scala.io.Codec
import scala.reflect.io.VirtualFile
import scala.util.Failure
import scala.util.Success

import amora.backend.Logger
import amora.converter.AmoraPhase
import amora.converter.protocol._
import dotty.tools.dotc.Compiler
import dotty.tools.dotc.config.PathResolver
import dotty.tools.dotc.core.Contexts._
import dotty.tools.dotc.util.SourceFile

class DottySourceIndexer(logger: Logger) extends ScalaService {

  def run(data: Seq[(String, String)]): String = {
    handleDottySource(Artifact(Project("testProject"), "o", "n", "v1"), data)

    response(s"""
      @prefix service:<http://amora.center/kb/Schema/Service/> .
      @prefix response:<http://amora.center/kb/ServiceResponse/> .
      <#this>
        a response: ;
        service:requestId <$requestId> ;
      .
    """)
  }

  private def handleDottySource(origin: Schema, data: Seq[(String, String)]): Unit = {
    ???
  }

  def convertToSchema(data: Seq[(String, String)]): Seq[(String, Seq[Hierarchy])] = {
    def srcOf[A : reflect.ClassTag] = reflect.classTag[A].runtimeClass.getProtectionDomain.getCodeSource.getLocation.toExternalForm
    var results = Vector[(String, Seq[Hierarchy])]()
    implicit val ctx = {
      val stdlibSrc = srcOf[Predef.type]
      val dottylibSrc = srcOf[dotty.DottyPredef.type]

      val ctx = new ContextBase().initialCtx.fresh
      ctx.setSetting(ctx.settings.classpath, Seq(stdlibSrc, dottylibSrc).mkString(File.pathSeparator))
      ctx
    }
    val compiler = new Compiler {
      override def phases = {
        val ps = super.phases
        // Right now there are 3 phases before typer
        // One can look up how many phases there are in the super implementation
        val beforeTyper = ps.take(3)
        beforeTyper :+ List(new AmoraPhase((unit, res) ⇒ {
          res match {
            case Success(res) ⇒
              results :+= unit.source.file.name → res
            case Failure(f) ⇒
              throw f
          }
        }))
      }
    }
    val sourceFiles = data map {
      case (fileName, sourceCode) ⇒
        val virtualFile = new VirtualFile(fileName)
        val writer = new BufferedWriter(new OutputStreamWriter(virtualFile.output, "UTF-8"))
        writer.write(sourceCode)
        writer.close()
        new SourceFile(virtualFile, Codec.UTF8)
    }
    val run = compiler.newRun
    logger.info("Compile sources with the following dotc configuration: " + new PathResolver().Calculated)
    run.compileSources(sourceFiles.toList)
    results.toSeq
  }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public class AirBender : Bender
{
    private double aerialIntegrity;

    public double AerialIntegrity
    {
        get { return this.aerialIntegrity; }
    }
}


text:
package com.yammer.schedulizer.resources;

import com.sun.jersey.core.util.MultivaluedMapImpl;
import com.yammer.schedulizer.entities.Employee;
import com.yammer.schedulizer.entities.Group;
import com.yammer.schedulizer.test.TestUtils;

import javax.ws.rs.core.MultivaluedMap;

public class GlobalAdminsResourceTest extends GetCreateDeleteResourceTest<Employee> {

    private String employeeName = "Luiz Filipe";
    private String imageUrlTemplate = "imageUrlTemplate";
    private String extAppId = TestUtils.nextExtAppId();
    private Group group;

    @Override
    protected MultivaluedMap getSamplePostForm() {
        MultivaluedMapImpl values = new MultivaluedMapImpl();
        values.add("name",  employeeName);
        values.add("extAppId", extAppId);
        values.add("imageUrlTemplate", imageUrlTemplate);
        return values;
    }

    @Override
    protected String getResourcePath() {
        return "/employees/admins";
    }

    @Override
    protected boolean checkCreatedEntity(Employee entity) {
        return entity.getName().equals(employeeName) &&
                entity.getImageUrlTemplate().equals(imageUrlTemplate) &&
                entity.getExtAppId().equals(extAppId);
    }

    @Override
    protected Class getEntityClass() {
        return Employee.class;
    }

    @Override
    protected Class getEntityArrayClass() {
        return Employee[].class;
    }

    @Override
    protected void initialize() {
        setNumberCreatedEntities(1); // Database test create a global admin by default
    }
}


text:
WARNINGS_DISABLE
#include <algorithm>

#include <QAbstractItemView>
#include <QDateTime>
#include <QKeyEvent>
#include <QListWidgetItem>
#include <QMessageBox>
#include <QRegExp>
#include <QSharedPointer>
#include <Qt>
WARNINGS_ENABLE

#include "messages/archiverestoreoptions.h"

#include "debug.h"
#include "persistentmodel/archive.h"
#include "widgets/archivelistwidgetitem.h"
#include "widgets/restoredialog.h"

#define DELETE_CONFIRMATION_THRESHOLD 10

ArchiveListWidget::ArchiveListWidget(QWidget *parent)
    : QListWidget(parent), _filter(new QRegExp), _highlightedItem(nullptr)
{
    // Set up filtering archive names.
    _filter->setCaseSensitivity(Qt::CaseInsensitive);
    _filter->setPatternSyntax(QRegExp::Wildcard);

    // Connection for showing info about an Archive.
    connect(this, &QListWidget::itemActivated, this,
            &ArchiveListWidget::handleItemActivated);
}

ArchiveListWidget::~ArchiveListWidget()
{
    clear();
    delete _filter;
}

static bool cmp_timestamp(const ArchivePtr &a, const ArchivePtr &b)
{
    return (a->timestamp() > b->timestamp());
}

void ArchiveListWidget::setArchives(QList<ArchivePtr> archives)
{
    // Sort archive list.
    std::sort(archives.begin(), archives.end(), cmp_timestamp);

    // Clear existing list and add archives (in sorted order).
    setUpdatesEnabled(false);
    clear();
    for(const ArchivePtr &archive : archives)
        insertArchive(archive, count());
    setUpdatesEnabled(true);
}

void ArchiveListWidget::addArchive(const ArchivePtr &archive)
{
    // Bail (if applicable).
    if(!archive)
    {
        DEBUG << "Null ArchivePtr passed.";
        return;
    }

    // Find insertion position based on sorted timestamps.
    int pos = 0;
    for(; pos < count(); ++pos)
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item(pos));
        if(archiveItem
           && (archive->timestamp() > archiveItem->archive()->timestamp()))
        {
            break;
        }
    }
    insertArchive(archive, pos);
}

void ArchiveListWidget::deleteItem()
{
    // Get item requesting the deletion.
    ArchiveListWidgetItem *archiveItem =
        qobject_cast<ArchiveListWidgetItem *>(sender());

    // Bail (if applicable).
    if(!archiveItem)
        return;

    // Get archive name.
    ArchivePtr archive = archiveItem->archive();

    // Confirm deletion.
    QMessageBox::StandardButton confirm =
        QMessageBox::question(this, tr("Confirm delete"),
                              tr("Are you sure you want to delete"
                                 " archive %1 (this cannot be undone)?")
                                  .arg(archive->name()));
    if(confirm != QMessageBox::Yes)
        return;

    // Delete archive.
    QList<ArchivePtr> archiveList;
    archiveList.append(archive);
    emit deleteArchives(archiveList);
}

void ArchiveListWidget::deleteSelectedItems()
{
    // Bail (if applicable).
    if(selectedItems().isEmpty())
        return;

    // Any archives pending deletion in the selection? if so deny action
    for(QListWidgetItem *item : selectedItems())
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item);
        if(!archiveItem || archiveItem->archive()->deleteScheduled())
            return;
    }

    // Confirm deletion.
    int selectedItemsCount = selectedItems().count();

    QMessageBox::StandardButton confirm =
        QMessageBox::question(this, tr("Confirm delete"),
                              tr("Are you sure you want to delete %1 "
                                 "selected archive(s) "
                                 "(this cannot be undone)?")
                                  .arg(selectedItemsCount));
    if(confirm != QMessageBox::Yes)
        return;

    // Some more deletion confirmation, if count of archives to be
    // removed is bigger than threshold
    if(selectedItemsCount >= DELETE_CONFIRMATION_THRESHOLD)
    {
        // Inform of purge operation if all archives are to be removed
        if(selectedItemsCount == count())
        {
            confirm =
                QMessageBox::question(this, tr("Confirm delete"),
                                      tr("Are you sure you want to delete "
                                         "all of your archives?\nFor your "
                                         "information, there's a purge "
                                         "action in Settings -> Account "
                                         "page that achieves the same "
                                         "thing but more efficiently."));
        }
        else
        {
            confirm = QMessageBox::question(this, tr("Confirm delete"),
                                            tr("This will permanently delete "
                                               "the %1 selected archives. "
                                               "Proceed?")
                                                .arg(selectedItemsCount));
        }
    }
    if(confirm != QMessageBox::Yes)
        return;

    // Schedule archives for deletion.
    QList<ArchivePtr> archivesToDelete;
    for(QListWidgetItem *item : selectedItems())
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item);
        archivesToDelete.append(archiveItem->archive());
    }
    if(!archivesToDelete.isEmpty())
        emit deleteArchives(archivesToDelete);
}

void ArchiveListWidget::inspectSelectedItem()
{
    // Bail (if applicable).
    if(selectedItems().isEmpty())
        return;

    ArchiveListWidgetItem *archiveItem =
        static_cast<ArchiveListWidgetItem *>(selectedItems().first());
    if(archiveItem && !archiveItem->archive()->deleteScheduled())
        goingToInspectItem(archiveItem);
}

void ArchiveListWidget::restoreSelectedItem()
{
    // Bail (if applicable).
    if(selectedItems().isEmpty())
        return;

    // Get first selected item.
    ArchiveListWidgetItem *archiveItem =
        static_cast<ArchiveListWidgetItem *>(selectedItems().first());

    // Bail (if applicable).
    if(!archiveItem || archiveItem->archive()->deleteScheduled())
        return;

    // Launch RestoreDialog.
    RestoreDialog *restoreDialog =
        new RestoreDialog(this, archiveItem->archive());
    connect(restoreDialog, &RestoreDialog::accepted, [this, restoreDialog] {
        emit restoreArchive(restoreDialog->archive(),
                            restoreDialog->getOptions());
    });
    restoreDialog->show();
}

void ArchiveListWidget::setFilter(const QString &regex)
{
    // Set up filter.
    setUpdatesEnabled(false);
    clearSelection();
    _filter->setPattern(regex);

    // Check archives against filter.
    for(int i = 0; i < count(); ++i)
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item(i));
        if(archiveItem)
        {
            if(archiveItem->archive()->name().contains(*_filter))
                archiveItem->setHidden(false);
            else
                archiveItem->setHidden(true);
        }
    }
    setUpdatesEnabled(true);

    // Notify about the number of visible items.
    emit countChanged(count(), visibleItemsCount());
}

void ArchiveListWidget::removeItem()
{
    ArchiveListWidgetItem *archiveItem =
        qobject_cast<ArchiveListWidgetItem *>(sender());
    // Bail (if applicable).
    if(!archiveItem)
        return;

    // Remove item from the list.
    delete archiveItem;

    // Notify about the number of visible items.
    emit countChanged(count(), visibleItemsCount());
}

void ArchiveListWidget::insertArchive(const ArchivePtr &archive, int pos)
{
    // Bail (if applicable).
    if(!archive)
    {
        DEBUG << "Null ArchivePtr passed.";
        return;
    }

    // Create new item.
    ArchiveListWidgetItem *item = new ArchiveListWidgetItem(archive);
    connect(item, &ArchiveListWidgetItem::requestDelete, this,
            &ArchiveListWidget::deleteItem);
    connect(item, &ArchiveListWidgetItem::requestInspect, this,
            &ArchiveListWidget::inspectItem);
    connect(item, &ArchiveListWidgetItem::requestRestore, this,
            &ArchiveListWidget::restoreItem);
    connect(item, &ArchiveListWidgetItem::requestGoToJob, this,
            &ArchiveListWidget::goToJob);
    connect(item, &ArchiveListWidgetItem::removeItem, this,
            &ArchiveListWidget::removeItem);

    // Add it to the list at the indicated position.
    insertItem(pos, item);
    setItemWidget(item, item->widget());

    // Check it against the name filter.
    item->setHidden(!archive->name().contains(*_filter));

    // Notify about the number of visible items.
    emit countChanged(count(), visibleItemsCount());
}

int ArchiveListWidget::visibleItemsCount()
{
    // Find the number of items which are not hidden.
    int count = 0;
    for(QListWidgetItem *item : findItems("*", Qt::MatchWildcard))
    {
        if(item && !item->isHidden())
            count++;
    }
    return (count);
}

void ArchiveListWidget::inspectItem()
{
    if(sender())
        goingToInspectItem(qobject_cast<ArchiveListWidgetItem *>(sender()));
}

void ArchiveListWidget::restoreItem()
{
    ArchiveListWidgetItem *archiveItem =
        qobject_cast<ArchiveListWidgetItem *>(sender());
    // Bail (if applicable).
    if(!archiveItem)
        return;

    // Launch RestoreDialog.
    RestoreDialog *restoreDialog =
        new RestoreDialog(this, archiveItem->archive());
    connect(restoreDialog, &RestoreDialog::accepted, [this, restoreDialog] {
        emit restoreArchive(restoreDialog->archive(),
                            restoreDialog->getOptions());
    });
    restoreDialog->show();
}

void ArchiveListWidget::goToJob()
{
    // Notify that we want to display the Job.
    if(sender())
        emit displayJobDetails(qobject_cast<ArchiveListWidgetItem *>(sender())
                                   ->archive()
                                   ->jobRef());
}

void ArchiveListWidget::selectArchive(const ArchivePtr &archive)
{
    // Bail (if applicable).
    if(!archive)
    {
        DEBUG << "Null ArchivePtr passed.";
        return;
    }

    // Find the archive in the list.
    for(int i = 0; i < count(); ++i)
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item(i));
        if(archiveItem
           && (archiveItem->archive()->objectKey() == archive->objectKey()))
        {
            // Select the desired archive.
            clearSelection();
            setCurrentItem(archiveItem);

            // Make sure the scroll are includes the archive.
            scrollToItem(currentItem(), QAbstractItemView::EnsureVisible);
            break;
        }
    }
}

void ArchiveListWidget::keyPressEvent(QKeyEvent *event)
{
    switch(event->key())
    {
    case Qt::Key_Delete:
        deleteSelectedItems();
        break;
    case Qt::Key_Escape:
        if(!selectedItems().isEmpty())
            clearSelection();
        else
            QListWidget::keyPressEvent(event);
        break;
    default:
        QListWidget::keyPressEvent(event);
    }
}

void ArchiveListWidget::noInspect()
{
    // Bail (if applicable).
    if(_highlightedItem == nullptr)
        return;

    // Indicate to the item that we're not showing it any more.
    _highlightedItem->setShowingDetails(false);
    _highlightedItem = nullptr;
}

void ArchiveListWidget::goingToInspectItem(ArchiveListWidgetItem *archiveItem)
{
    // Disable previous highlighting
    if(_highlightedItem != nullptr)
        _highlightedItem->setShowingDetails(false);

    // Toggle visibility (if already visible)
    if(_highlightedItem == archiveItem)
    {
        _highlightedItem = nullptr;
        emit clearInspectArchive();
        return;
    }

    // Highlight new item
    _highlightedItem = archiveItem;
    _highlightedItem->setShowingDetails(true);

    emit inspectArchive(archiveItem->archive());
}

void ArchiveListWidget::ensureCurrentItemVisible()
{
    scrollToItem(currentItem(), QAbstractItemView::EnsureVisible);
}

void ArchiveListWidget::handleItemActivated(QListWidgetItem *item)
{
    ArchiveListWidgetItem *archiveItem =
        static_cast<ArchiveListWidgetItem *>(item);

    // Sanity check
    if(!archiveItem)
    {
        DEBUG << "ArchiveListWidget::handleItemActivated(nullptr)";
        return;
    }

    // Toggle showing details about the item if it's being deleted
    if(!archiveItem->archive()->deleteScheduled())
        goingToInspectItem(archiveItem);
}

ArchivePtr ArchiveListWidget::findArchiveByName(const QString &archiveName)
{
    // Find the archive name in the list.
    for(int i = 0; i < count(); i++)
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item(i));
        if(archiveName == archiveItem->archive()->name())
            return (archiveItem->archive());
    }

    // We couldn't find the name.
#if(QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
    return (nullptr);
#else
    return (ArchivePtr(nullptr));
#endif
}

void ArchiveListWidget::updateIEC()
{
    // Update all items.
    for(int i = 0; i < count(); i++)
    {
        ArchiveListWidgetItem *archiveItem =
            static_cast<ArchiveListWidgetItem *>(item(i));
        archiveItem->updateIEC();
    }
}


text:
<?php

/*
 * This file is part of PHP CS Fixer.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *     Dariusz Rumiński <dariusz.ruminski@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace PhpCsFixer\Fixer\ClassNotation;

use PhpCsFixer\AbstractFixer;
use PhpCsFixer\FixerDefinition\CodeSample;
use PhpCsFixer\FixerDefinition\FixerDefinition;
use PhpCsFixer\Tokenizer\CT;
use PhpCsFixer\Tokenizer\Token;
use PhpCsFixer\Tokenizer\Tokens;

/**
 * @author SpacePossum
 */
final class SingleTraitInsertPerStatementFixer extends AbstractFixer
{
    public function getDefinition()
    {
        return new FixerDefinition(
            'Each trait `use` must be done as single statement.',
            [
                new CodeSample(
                    '<?php
final class Example
{
    use Foo, Bar;
}
'
                ),
            ]
        );
    }

    public function getPriority()
    {
        // must be run before Braces and SpaceAfterSemicolonFixer
        return 1;
    }

    public function isCandidate(Tokens $tokens)
    {
        return $tokens->isTokenKindFound(CT::T_USE_TRAIT);
    }

    protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        for ($index = \count($tokens) - 1; 1 < $index; --$index) {
            if ($tokens[$index]->isGivenKind(CT::T_USE_TRAIT)) {
                $candidates = $this->getCandidates($tokens, $index);
                if (\count($candidates) > 0) {
                    $this->fixTraitUse($tokens, array_reverse($candidates));
                }
            }
        }
    }

    /**
     * @param int[] $candidates ',' indexes to fix
     */
    private function fixTraitUse(Tokens $tokens, array $candidates)
    {
        foreach ($candidates as $nextInsertIndex) {
            $tokens[$nextInsertIndex] = new Token(';');
            $tokens->insertAt($nextInsertIndex + 1, new Token([CT::T_USE_TRAIT, 'use']));

            if (!$tokens[$nextInsertIndex + 2]->isWhitespace()) {
                $tokens->insertAt($nextInsertIndex + 2, new Token([T_WHITESPACE, ' ']));
            }
        }
    }

    /**
     * @param int $index
     *
     * @return int[]
     */
    private function getCandidates(Tokens $tokens, $index)
    {
        $indexes = [];
        $index = $tokens->getNextTokenOfKind($index, [',', ';', '{']);

        while (!$tokens[$index]->equals(';')) {
            if ($tokens[$index]->equals('{')) {
                return []; // do not fix use cases with grouping
            }

            $indexes[] = $index;
            $index = $tokens->getNextTokenOfKind($index, [',', ';', '{']);
        }

        return $indexes;
    }
}


text:
package org.nnsoft.guice.rocoto.variables;

import java.util.Map;

/**
 * Appender which just wraps a text fragment to render as is.
 *
 * @since 6.0
 */
final class TextAppender extends AbstractAppender
{

    public TextAppender( final String chunk )
    {
        super( chunk );
    }

    @Override
    protected void doAppend( StringBuilder buffer, Map<String, String> configuration, Tree<Appender> context )
    {
        buffer.append( chunk );
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( obj == this )
        {
            return true;
        }
        if ( obj instanceof TextAppender )
        {
            TextAppender other = (TextAppender) obj;
            return chunk != null ? chunk.equals( other.chunk ) : other.chunk == null;
        }
        return false;
    }

    @Override
    public int hashCode()
    {
        return chunk != null ? chunk.hashCode() : 0;
    }

    /**
     * @return Always false
     */
    public boolean needsResolving()
    {
        return false;
    }

}


text:
local http = require("coro-http")
local json = require("json")

local function getCat()
	local res, data = http.request('GET', "http://random.cat/meow")
	return json.parse(data).file
end

return function(message)
    coroutine.wrap(function()
        message.channel:broadcastTyping()
    end)()
    message.channel:sendMessage {
	    content = "Here's a cat! :cat:",
		file = getCat()
    }
end,
{
    description=locale("cat.description"),
    category="fun"
}


text:
'use strict';

var gulp = require('gulp'),
    exec = require('child_process').exec,
    args = require('../args'),
    del = require('del'),
    path = require('path'),
    config = require('../paths');

/** Performs a build.
 *
 * This takes any parameters passed into gulp and includes them in the build command.
 * May need to revisit this to allow for parameterized builds
 */
gulp.task('build', ['compile-ts'], function (cb) {
    var command = [
        'node build.js'
    ];

    var sw = '-';
    for (var arg in args) {
        if (args.hasOwnProperty(arg)) {
            if (arg.length == 1) {
                sw = '-';
            } else {
                sw = '--'
            }

            if (typeof args[arg] !== 'undefined' && args[arg] !== null) {
                // switches with values
                command.push(sw + arg + '=' + args[arg])
            } else {
                // boolean switches
                command.push(sw + arg)
            }
        }
    }

    var commandText = command.join(' ');
    console.log('Executing build: %s', commandText);
    exec(commandText, {
        cwd: path.normalize(__dirname+'/..')
    }, function (err, stdout, stderr) {
        console.log(stdout);
        console.log(stderr);
        cb(err);
    });
});

/**
 * Factory for creating a gulp task to build a specific output
 */
var runBuild = function (os, arch, asar) {
    return function (cb) {
        var command = [
            'node build.js'
        ];

        if (asar) command.push('--asar');
        if (arch) command.push('--arch ' + arch);
        if (os) command.push('--platform ' + os);

        var commandText = command.join(' ');
        exec(commandText, {
            cwd: path.normalize(__dirname+'/..')
        }, function (err, stdout, stderr) {
            console.log(stdout);
            console.log(stderr);
            cb(err);
        });
    }
};

gulp.task('build:linux:32', ['compile-ts'], runBuild('linux', 'ia32'));
gulp.task('build:linux:64', ['compile-ts'], runBuild('linux', 'x64'));
gulp.task('build:darwin:64', ['compile-ts'], runBuild('darwin', 'x64'));
gulp.task('build:windows:32', ['compile-ts'], runBuild('win32', 'ia32'));
gulp.task('build:windows:64', ['compile-ts'], runBuild('win32', 'x64'));


text:
package org.neuralnetwork.neuron;

import java.util.HashSet;
import java.util.Set;

import org.neuralnetwork.synapse.ISynapse;

public abstract class AbstractNeuron<Value, Synapse extends ISynapse<?, ?>>
		implements INeuron<Value, Synapse> {
	private Value value;
	private final Set<Synapse> synapses = new HashSet<Synapse>();

	public AbstractNeuron(Value initialValue) {
		value = initialValue;
	}

	@Override
	public Value getValue() {
		return value;
	}

	@Override
	public void addSynapse(Synapse synapse) {
		synapses.add(synapse);
	}

	@Override
	public void removeSynapse(Synapse synapse) {
		synapses.remove(synapse);
	}

	abstract protected Value computeValueFromInputs(Set<Synapse> inputs);

	@Override
	public void computeValue() {
		value = computeValueFromInputs(synapses);
	}

	@Override
	public Set<Synapse> getSynapses() {
		return synapses;
	}

	@Override
	public String toString() {
		return synapses.toArray().toString();
	}
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>ListMessageData (minibus 1.2.0 API)</title>
<meta name="date" content="2017-04-24">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

org.mini2Dx.minibus.messagedata

Class ListMessageData<T>

java.lang.Object

org.mini2Dx.minibus.messagedata.ListMessageData<T>

All Implemented Interfaces:

java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, MessageData

public class ListMessageData<T>
extends java.lang.Object
implements java.util.List<T>, MessageData

A MessageData that also implements the List message, backed by a
 List instance

Constructor Summary

Constructors

Constructor and Description

ListMessageData()

Constructs a ListMessageData backed by an ArrayList

ListMessageData(java.util.List<T> list)

Constructs a ListMessageData

Method Summary

All Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

void
add(int index,
   T element)

boolean
add(T e)

boolean
addAll(java.util.Collection<? extends T> c)

boolean
addAll(int index,
      java.util.Collection<? extends T> c)

void
clear()

boolean
contains(java.lang.Object o)

boolean
containsAll(java.util.Collection<?> c)

T
get(int index)

int
indexOf(java.lang.Object o)

boolean
isEmpty()

java.util.Iterator<T>
iterator()

int
lastIndexOf(java.lang.Object o)

java.util.ListIterator<T>
listIterator()

java.util.ListIterator<T>
listIterator(int index)

T
remove(int index)

boolean
remove(java.lang.Object o)

boolean
removeAll(java.util.Collection<?> c)

boolean
retainAll(java.util.Collection<?> c)

T
set(int index,
   T element)

int
size()

java.util.List<T>
subList(int fromIndex,
       int toIndex)

java.lang.Object[]
toArray()

<T> T[]
toArray(T[] a)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface java.util.List

equals, hashCode, replaceAll, sort, spliterator

Methods inherited from interface java.util.Collection

parallelStream, removeIf, stream

Methods inherited from interface java.lang.Iterable

forEach

Constructor Detail

ListMessageData

public ListMessageData()

Constructs a ListMessageData backed by an ArrayList

ListMessageData

public ListMessageData(java.util.List<T> list)

Constructs a ListMessageData

Parameters:

list - The backing List instance

Method Detail

size

public int size()

Specified by:

size in interface java.util.Collection<T>

Specified by:

size in interface java.util.List<T>

isEmpty

public boolean isEmpty()

Specified by:

isEmpty in interface java.util.Collection<T>

Specified by:

isEmpty in interface java.util.List<T>

contains

public boolean contains(java.lang.Object o)

Specified by:

contains in interface java.util.Collection<T>

Specified by:

contains in interface java.util.List<T>

iterator

public java.util.Iterator<T> iterator()

Specified by:

iterator in interface java.lang.Iterable<T>

Specified by:

iterator in interface java.util.Collection<T>

Specified by:

iterator in interface java.util.List<T>

toArray

public java.lang.Object[] toArray()

Specified by:

toArray in interface java.util.Collection<T>

Specified by:

toArray in interface java.util.List<T>

toArray

public <T> T[] toArray(T[] a)

Specified by:

toArray in interface java.util.Collection<T>

Specified by:

toArray in interface java.util.List<T>

add

public boolean add(T e)

Specified by:

add in interface java.util.Collection<T>

Specified by:

add in interface java.util.List<T>

remove

public boolean remove(java.lang.Object o)

Specified by:

remove in interface java.util.Collection<T>

Specified by:

remove in interface java.util.List<T>

containsAll

public boolean containsAll(java.util.Collection<?> c)

Specified by:

containsAll in interface java.util.Collection<T>

Specified by:

containsAll in interface java.util.List<T>

addAll

public boolean addAll(java.util.Collection<? extends T> c)

Specified by:

addAll in interface java.util.Collection<T>

Specified by:

addAll in interface java.util.List<T>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends T> c)

Specified by:

addAll in interface java.util.List<T>

removeAll

public boolean removeAll(java.util.Collection<?> c)

Specified by:

removeAll in interface java.util.Collection<T>

Specified by:

removeAll in interface java.util.List<T>

retainAll

public boolean retainAll(java.util.Collection<?> c)

Specified by:

retainAll in interface java.util.Collection<T>

Specified by:

retainAll in interface java.util.List<T>

clear

public void clear()

Specified by:

clear in interface java.util.Collection<T>

Specified by:

clear in interface java.util.List<T>

get

public T get(int index)

Specified by:

get in interface java.util.List<T>

set

public T set(int index,
             T element)

Specified by:

set in interface java.util.List<T>

add

public void add(int index,
                T element)

Specified by:

add in interface java.util.List<T>

remove

public T remove(int index)

Specified by:

remove in interface java.util.List<T>

indexOf

public int indexOf(java.lang.Object o)

Specified by:

indexOf in interface java.util.List<T>

lastIndexOf

public int lastIndexOf(java.lang.Object o)

Specified by:

lastIndexOf in interface java.util.List<T>

listIterator

public java.util.ListIterator<T> listIterator()

Specified by:

listIterator in interface java.util.List<T>

listIterator

public java.util.ListIterator<T> listIterator(int index)

Specified by:

listIterator in interface java.util.List<T>

subList

public java.util.List<T> subList(int fromIndex,
                                 int toIndex)

Specified by:

subList in interface java.util.List<T>

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
<!DOCTYPE html>
<html lang="en" class="html--no-js">

<head>
{% include head--common.html %}
    <!--production version of prebid.js-->
    <script async src="//cdn.jsdelivr.net/npm/prebid.js@latest/dist/not-for-prod/prebid.js"></script>

    <!--pbjs and player code -->

	<!-- use recent version of videojs to ensure proper functioning with the iOS devices -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/video.js/6.4.0/video-js.css">
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/video.js/6.4.0/video.js"></script>
        <!-- videojs-vast-vpaid -->
        <link href="https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css" rel="stylesheet">
        <script src="https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs_5.vast.vpaid.min.js"></script>

        <script>
            var pbjs = pbjs || {};
            pbjs.que = pbjs.que || [];

            /* Prebid video ad unit */

            var videoAdUnit = {
                code: 'video1',
                mediaTypes: {
                    video: {
			context: 'instream',
			playerSize: [640, 480],
			mimes: ['video/mp4'],
			protocols: [1, 2, 3, 4, 5, 6, 7, 8],
			playbackmethod: [2],
			skip: 1
                    }
                },
                bids: [{
                    bidder: 'appnexus',
                    params: {
                        placementId: 13232361
                    }
                }]
            };

            pbjs.que.push(function() {
                pbjs.addAdUnits(videoAdUnit);

                pbjs.setConfig({
                    debug: true,
                    cache: {
                        url: 'https://prebid.adnxs.com/pbc/v1/cache'
                    }
                });

                pbjs.requestBids({
                    bidsBackHandler: function(bids) {
                        var videoUrl = pbjs.adServers.dfp.buildVideoUrl({
                            adUnit: videoAdUnit,
                            params: {
                                iu: '/19968336/prebid_cache_video_adunit',
                                cust_params: {
                                    section: 'blog',
                                    anotherKey: 'anotherValue'
                                },
                                output: 'vast'
                            }
                        });
                        invokeVideoPlayer(videoUrl);
                    }
                });
            });

        </script>

</head>

<body>


text:
/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 4.0.2
 *
 * Do not make changes to this file unless you know what you are doing--modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */

package org.pjsip.pjsua2;

public class StringVector extends java.util.AbstractList<String> implements java.util.RandomAccess {
  private transient long swigCPtr;
  protected transient boolean swigCMemOwn;

  protected StringVector(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  protected static long getCPtr(StringVector obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  @SuppressWarnings("deprecation")
  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        pjsua2JNI.delete_StringVector(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public StringVector(String[] initialElements) {
    this();
    reserve(initialElements.length);

    for (String element : initialElements) {
      add(element);
    }
  }

  public StringVector(Iterable<String> initialElements) {
    this();
    for (String element : initialElements) {
      add(element);
    }
  }

  public String get(int index) {
    return doGet(index);
  }

  public String set(int index, String e) {
    return doSet(index, e);
  }

  public boolean add(String e) {
    modCount++;
    doAdd(e);
    return true;
  }

  public void add(int index, String e) {
    modCount++;
    doAdd(index, e);
  }

  public String remove(int index) {
    modCount++;
    return doRemove(index);
  }

  protected void removeRange(int fromIndex, int toIndex) {
    modCount++;
    doRemoveRange(fromIndex, toIndex);
  }

  public int size() {
    return doSize();
  }

  public StringVector() {
    this(pjsua2JNI.new_StringVector__SWIG_0(), true);
  }

  public StringVector(StringVector other) {
    this(pjsua2JNI.new_StringVector__SWIG_1(StringVector.getCPtr(other), other), true);
  }

  public long capacity() {
    return pjsua2JNI.StringVector_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    pjsua2JNI.StringVector_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return pjsua2JNI.StringVector_isEmpty(swigCPtr, this);
  }

  public void clear() {
    pjsua2JNI.StringVector_clear(swigCPtr, this);
  }

  public StringVector(int count, String value) {
    this(pjsua2JNI.new_StringVector__SWIG_2(count, value), true);
  }

  private int doSize() {
    return pjsua2JNI.StringVector_doSize(swigCPtr, this);
  }

  private void doAdd(String x) {
    pjsua2JNI.StringVector_doAdd__SWIG_0(swigCPtr, this, x);
  }

  private void doAdd(int index, String x) {
    pjsua2JNI.StringVector_doAdd__SWIG_1(swigCPtr, this, index, x);
  }

  private String doRemove(int index) {
    return pjsua2JNI.StringVector_doRemove(swigCPtr, this, index);
  }

  private String doGet(int index) {
    return pjsua2JNI.StringVector_doGet(swigCPtr, this, index);
  }

  private String doSet(int index, String val) {
    return pjsua2JNI.StringVector_doSet(swigCPtr, this, index, val);
  }

  private void doRemoveRange(int fromIndex, int toIndex) {
    pjsua2JNI.StringVector_doRemoveRange(swigCPtr, this, fromIndex, toIndex);
  }

}


text:
module Flickr.Auth where

import Flickr.Types
import Flickr.Types.Import
import Flickr.Monad

-- | Returns a frob to be used during authentication.
-- This method call must be signed.
getFrob :: FM AuthFrob
getFrob = signedMethod $ do
  flickTranslate toAuthFrob $
    flickCall "flickr.auth.getFrob" []

-- | Returns the credentials attached to an authentication token.
-- This call must be signed as specified in the authentication API spec.
checkToken :: AuthTokenValue -> FM AuthToken
checkToken tok = signedMethod $ do
  flickTranslate toAuthToken $
    flickCall "flickr.auth.checkToken" [("auth_token", tok)]

getFullToken :: AuthMiniToken -> FM AuthToken
getFullToken mtok = signedMethod $ do
  flickTranslate toAuthToken $
    flickCall "flickr.auth.getFullToken" [("mini_token", mtok)]

-- | Returns the auth token for the given frob, if one has been
-- attached. This method call must be signed.
getToken :: AuthFrob -> FM AuthToken
getToken frob = signedMethod $ do
  flickTranslate toAuthToken $
   flickCall "flickr.auth.getToken" [("frob", aFrob frob)]


text:
/*
 * PyCon 2017 CSS: normalize.css + as few tweaks as possible (below)
 */

/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */

/**
 * 1. Change the default font family in all browsers (opinionated).
 * 2. Prevent adjustments of font size after orientation changes in IE and iOS.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 * 2. Add the correct display in IE.
 */

article,
aside,
details, /* 1 */
figcaption,
figure,
footer,
header,
main, /* 2 */
menu,
nav,
section,
summary { /* 1 */
  display: block;
}

/**
 * Add the correct display in IE 9-.
 */

audio,
canvas,
progress,
video {
  display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Add the correct display in IE 10-.
 * 1. Add the correct display in IE.
 */

template, /* 1 */
[hidden] {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */

a {
  background-color: transparent; /* 1 */
  -webkit-text-decoration-skip: objects; /* 2 */
}

/**
 * Remove the outline on focused links when they are also active or hovered
 * in all browsers (opinionated).
 */

a:active,
a:hover {
  outline-width: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * 1. Remove the bottom border in Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */

b,
strong {
  font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * Add the correct font style in Android 4.3-.
 */

dfn {
  font-style: italic;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Add the correct background and color in IE 9-.
 */

mark {
  background-color: #ff0;
  color: #000;
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10-.
 */

img {
  border-style: none;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct margin in IE 8.
 */

figure {
  margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/* Forms
   ========================================================================== */

/**
 * 1. Change font properties to `inherit` in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
select,
textarea {
  font: inherit; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Restore the font weight unset by the previous rule.
 */

optgroup {
  font-weight: bold;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */

button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Change the border, margin, and padding in all browsers (opinionated).
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
 */

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Correct the text style of placeholders in Chrome, Edge, and Safari.
 */

::-webkit-input-placeholder {
  color: inherit;
  opacity: 0.54;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*************************** end of normalize.css ***************************/

/* -------------------- Styles applying to all pages -------------------- */

html {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.4;
}
a {
    color: #004360; /* chroma('#136E8E').darken().hex() */
}

.logo-smaller {
    display: block;
    margin: 20px auto 10px;
    width: 540px;
    height: 260px;
    /* Rendered with: inkscape -f pycon2017.svg -w 540 -e pycon2017.png */
    background-image: url('../img/pycon2017.png');
    text-indent: -9999px;
}

/* Alerts at the top of the page. */

.messages {
    position: absolute;
}
.messages .message {
    margin: 1em;
    border: 1px solid #D98771;
    border-radius: 0.5em;
    background: #a55945;  /* chroma('#D98771').darken().hex() */
    padding: 0.5em;
    color: white;
}

/* The bar across the top saying whether you are logged in. */

.account-links {
    /* margin-bottom: 0.5em; */
    /* background-color: #CE624D; */
    background-color: #136E8E;
    text-align: center;
    color: #DBF8EB;
    font-weight: bold;
}
.account-links a {
    display: inline-block;
    color: #DBF8EB;
    padding: 0.5em;
    text-decoration: none;
}
.account-links a:hover {
    text-decoration: underline;
}
.account-links form {
    padding: 0 0.5em;
    display: inline-block;
}

/* The main logo. */

.beatrix-banner, .beatrix-banner img {
    display: block;
    width: 100%;
}

/* The navigation bar. */

nav > .nav {
    border-top: 1px solid #57b8dc;
    border-bottom: 1px solid #004360;
    background-color: #308898;
    background: linear-gradient(to bottom, #0B88AA 0%, #136E8E 100%);
    text-align: center;
    font-weight: bold;
    margin-top: 0;
}
.dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}
.dropdown a {
    display: block;
    padding: 0.5em;
    color: #fff;
    text-decoration: none;
}
.dropdown-toggle {
    /* Allow click event on iOS devices */
    cursor: pointer;
}
.dropdown-menu {
    display: none;
    position: absolute;
    z-index: 1;
    padding: 0.8em;
    background-color: #d8d8d8;
    list-style-type: none;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    color: #308898;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    text-decoration: underline;
}

/* The main content pane. */

#content {
    margin: 0 auto;
    max-width: 46em;
    padding: 1em;
    color: #110;
}
aside {
    float: right;
    margin: 0.8em;
    border-radius: 0.5em;
    max-width: 18em;
    padding: 0 1em;
    background-color: #eee;
}
dt {
    color: #CE624D;
    font-style: italic;
}
p {
    max-width: 46em;
    margin-left: auto;
    margin-right: auto;
}
pre {
    border: 1px solid #FBBF8B;
    border-radius: 0.5em;
    padding: 0.5em;
    font-size: 0.8333em;
}
table {
    border-collapse: collapse;
}
th {
    padding: 0 0.4em;
}
td {
    border: 2px solid #B4D3C6;
    padding: 0.5em;
}

/* The edit button that site admins are given. */

.edit-btn, .edit-toggle {
    display: block;

    /* float: right; */
    position: absolute;
    right: 0;

    margin-left: 0.3em;
    border-radius: 8px;
    background: #eee;
    padding: 0.5em;
    color: #308898;
    text-decoration: none;
}
.edit-btn:hover, .edit-toggle:hover {
    background: #ddd;
}

/* Forms, when there are no errors */

fieldset {
    border: none;
    border-radius: 1em;
    background-color: #f3f5d6; /* chroma('#A8AA8D').brighten(1.5).hex() */
    padding: 1em;
}
legend {
    margin: 1em 0;
    font-weight: bold;
}
.control-group {
    margin: 1em 0;
}
label {
    color: #550;
    font-weight: bold;
    font-size: 0.9em;
}
.controls .help-block {
    margin: 0;
    font-size: 0.8em;
}
.hide {
    display: none;
}
input[type=text], textarea {
    border-width: 2px;
    border-style: solid;
    border-color: #98917A #e2dac2 #e2dac2 #98917A;
    /* ^ chroma('#98917A').brighten(1.5).hex() */
    min-width: 80%;
}
.box-content .markedit > textarea {
    /* override the jQuery UI "markedit > textarea" styling */
    padding: 0;
}
.markedit .markedit-preview {
    /* override the jQuery UI "ui-widget-content" styling */
    margin: 1em 0;
    border: 2px dotted black;
    background: none;
    padding: 0.2em;
    color: #6a644e; /* chroma('#98917A').darken().hex() */
}

/* Forms, when an error message needs to display. */

.control-group.error input[type=text], .control-group.error textarea {
    border: 3px solid red;
}
span.help-inline {
    color: red;
    display: block;
}

/* Most proposal text-area fields should honor line breaks. */

.proposal-fields dd.significant-whitespace {
    white-space: pre-wrap;
    white-space: pre-line;
}

/* Except for the Description, which gets Markdown processing. */

.proposal-fields dd.description {
    white-space: normal;
}

/* The dashboard. */

.dashboard-panel {
    margin-bottom: 1em;
    border: 1px solid #e5e8ef;
    border-radius: 1em;
    background-color: #f5f8ff;
    padding: 1em;
}
.dashboard-panel .icon-briefcase {
    display: none;
}
.dashboard-panel h3 {
    margin: 0 0 0.5em;
}
.btn,
.dashboard-panel a.action,
.dataTables_paginate .paginate_button,
.dt-button {
    display: inline-block;
    margin: 0.2em;
    box-shadow: 0 0 0 1px #CE624D;
    border-top: 1px solid #FBBF8B;
    border-bottom: 1px solid black;
    border-left: none;
    border-right: none;
    border-radius: 5px;
    background-color: #CE624D;
    background: linear-gradient(to bottom, #e57257 0%, #ce624d 100%);
    padding: 0.2em 0.3em;
    color: white;
    font-weight: bold;
    text-decoration: none;
}
.btn[disabled] {
    box-shadow: none;
    border: 1px solid #aaa;
    background: linear-gradient(to bottom, #eee 0%, #ddd 100%);
}

/* Paginated tables within the dashboard. */

.pagination li {
    display: inline;
}
.pagination a {
    padding: 0.5em;
}
.pagination a:hover {
    background: #eef;
}

/* Sidebar navigation lists, like on /account/settings/. */

.nav-list {
    padding-left: 1em;
}

/* The footer at the bottom of every page. */

footer {
    clear: both;
    background-color: #B4D3C6;
    padding: 1em 1em 1em;
}
footer > div {
    margin: 0 auto;
    max-width: 46em;
}
footer img {
    float: right;
    margin: 0 0 1em 0.6em;
    box-shadow: 0px 0px 20px #2d483d;
    background-color: #2d483d;
    border-radius: 5px;
    padding: 5px;
}
footer p {
    margin: 1em auto;
}

/* -------------------- Styles for use in CMS editing -------------------- */

.box-content .label {  /* White words in a tight blue box, used in text. */
    border-radius: 3px;
    padding: 2px 10px;
    background: #136E8E;
    color: white;
    font-weight: bold;
}
.callout {  /* Paragraph in a rectangle with a light blue background. */
    border: 2px solid #B4D3C6;
    border-radius: 2em;
    padding: 1em 2em;
    background-color: #e6fff9;
    /* ^ chroma('#B4D3C6').brighten().hex() */
}
.hotel {
    display: inline-block;
    margin: 0.4em;
    background-color: #f3f5d6;
    width: 12em;
    padding: 0 0.8em;
    vertical-align: top;
}
.hotel h3 {
    color: #CE624D;
}

/* -------------------- Page-specific styles -------------------- */

/* The home page. */

.home-page #content, .home-page h2 {
    text-align: center;
}
.home-banner {
    background-color: #B4D3C6;
    text-align: center;
    font-size: 22px;
}
.home-banner h1 {
    margin: 0 auto;
    height: 368px;
    background: url('../img/pycon-cityscape.png') center no-repeat;
    text-indent: -9999px;
}
.home-banner p {
    display: inline-block;
    margin: 1em auto 2em;
}
.home-banner p span {
    /* Avoid "May 17-25" being split across lines on mobile. */
    white-space: nowrap;
}
.home-banner img {
    width: 100%;
}
#content_homepage-about p {
    margin-top: 2em;
    /* border: 5px solid #A8AA8D; */
    /* border-radius: 1em; */
    /* background-color: #e4e6c7; */
    max-width: 36em;
    padding: 1em;
    font-size: 20px;
}
.front-page-facets {
    text-align: center;
    max-width: none;
}
.front-page-facets div {
    display: inline-block;
    vertical-align: top;
    padding: 2em 2em 0em;
    max-width: 25em;
}
.front-page-facets.narrow div {
    max-width: 15em;
}
.front-page-facets h2 {
    text-align: center;
    font-weight: bold;
    font-size: 1em;
}
.front-page-facets img {
    border-radius: 10px;
    max-width: 100%;
}
.front-page-sponsors a {
    display: inline-block;
    vertical-align: middle;
    border: 2px solid white;
    padding: 1em;
}
.front-page-sponsors a:hover {
    border: 2px solid black;
}
.front-page-sponsors img {
    max-height: 120px;
    max-width: 240px;
}

/* The very wide schedule grid. */

.schedule-page #content {
    max-width: none;
    font-size: 14px;  /* slightly smaller */
}
table.calendar td {
    border: 1px solid black;
    text-align: center;
}
td.slot .title {
    font-weight: bold;
}
td.slot .title,
td.slot .speaker {
    display: block;
}
td.slot-Breakfast,
td.slot-Break,
td.slot-Lunch {
    background-color: #136E8E;
    color: #fff;
    font-weight: bold;
}
td.slot-plenary {
    background-color: #CE624D;
    color: #fff;
    font-weight: bold;
}
td.time {
    font-weight: bold;
}
.schedule-page .badges .btn {
    font-size: 0.8em;
    min-width: 1em;
}

/* The presentation lists for Talks, Tutorials, and Posters. */

.presentation-list #content {
    font-size: 16px;  /* slightly smaller */
}

/* The Job Listing page. */

.job-fair h1 {
    text-align: center;
}
.job-fair .sponsor-logo {
    float: right;
    margin: 0 0 1em 1em;
}
.job-fair .callout {
    margin-bottom: 1em;
}
@media (min-width: 600px) {
    .job-fair .callout {
        width: 30%;
        float: right;
        margin-left: 1em;
        padding: 0.3em;
    }
}

/* The sponsors page. */

.sponsor-level {
    text-align: center;
}
.sponsor-level h2 {
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}
.sponsor {
    display: inline-block;
    margin-top: 1em;
    padding-left: 0.4em;
    padding-right: 0.4em;
    vertical-align: top;
    max-width: 22em;
}
.sponsor > a {
    display: block;
}
.sponsor h3 {
    margin-bottom: 0.5em;
}
.sponsor > p {
    text-align: left;
}


text:
// This file was generated using Parlex's cpp_generator

#include "FUNCTION_MODIFIER_4.hpp"

#include "plange_grammar.hpp"

#include "parlex/detail/document.hpp"
#include "FUNCTION_MODIFIER_CALLING_CONVENTION.hpp"
#include "FUNCTION_MODIFIER_MODEL.hpp"

#include "FUNCTION_MODIFIER_4.hpp"

namespace plc {

FUNCTION_MODIFIER_4 FUNCTION_MODIFIER_4::build(parlex::detail::ast_node const & n) {
	static auto const * b = state_machine().behavior;
	parlex::detail::document::walk w{ n.children.cbegin(), n.children.cend() };
	return FUNCTION_MODIFIER_4(parlex::detail::document::element<FUNCTION_MODIFIER_4_base>::build(b, w));
}

} // namespace plc

parlex::detail::state_machine const & plc::FUNCTION_MODIFIER_4::state_machine() {
	static auto const & result = *static_cast<parlex::detail::state_machine const *>(&plange_grammar::get().get_recognizer(plange_grammar::get().FUNCTION_MODIFIER_4));
	return result;
}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="82dp"
    android:orientation="vertical"
    android:padding="16dp">

    <TextView
        android:id="@+id/date_textView"
        style="@style/text_small"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textColor="@color/grey_soft"
        tools:text="17 июля" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:id="@+id/current_cost_textView"
            style="@style/text_large"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@+id/trend_imageView"
            android:textColor="@color/green"
            tools:text="36,95р" />

        <ImageView
            android:id="@+id/trend_imageView"
            android:layout_width="22dp"
            android:layout_height="22dp"
            android:layout_centerVertical="true"
            android:layout_toLeftOf="@+id/cost_different_textView"
            tools:src="@drawable/ic_arrow_down" />

        <TextView
            android:id="@+id/cost_different_textView"
            style="@style/text_large"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="16dp"
            android:textColor="@color/green"
            tools:text="0.80" />
    </RelativeLayout>
</LinearLayout>


text:
import torch
import torch.nn as nn
import torchvision.datasets as dsets
import torchvision.transforms as transforms
from torch.autograd import Variable

# Hyper Parameters
input_size = 784
hidden_size = 256
dni_size = 1024
num_classes = 10
num_epochs = 50
batch_size = 500
learning_rate = 1e-3

use_cuda = torch.cuda.is_available()

# MNIST Dataset
train_dataset = dsets.MNIST(root='../data',
                            train=True,
                            transform=transforms.ToTensor(),
                            download=True)

test_dataset = dsets.MNIST(root='../data',
                           train=False,
                           transform=transforms.ToTensor())

# Data Loader (Input Pipeline)
train_loader = torch.utils.data.DataLoader(dataset=train_dataset,
                                           batch_size=batch_size,
                                           shuffle=True)

test_loader = torch.utils.data.DataLoader(dataset=test_dataset,
                                          batch_size=batch_size,
                                          shuffle=False)

class DNI(nn.Module):
    def __init__(self, input_size, hidden_size):
        super(DNI, self).__init__()
        self.fc1 = nn.Linear(input_size, hidden_size)
        self.bn1 = nn.BatchNorm1d(hidden_size)
        self.act1 = nn.ReLU()
        self.fc2 = nn.Linear(hidden_size, input_size)

    def forward(self, x):
        out = self.fc1(x)
        out = self.bn1(out)
        out = self.act1(out)
        out = self.fc2(out)
        return out

    def reset_parameters(self):
        super(DNI, self).reset_parameters()
        for param in self.fc2.parameters():
            param.data.zero_()

dni = DNI(hidden_size, dni_size)

class Net1(nn.Module):
    def __init__(self, input_size, hidden_size):
        super(Net1, self).__init__()
        self.mlp = nn.Sequential(nn.Linear(input_size, hidden_size),
                                 nn.BatchNorm1d(hidden_size),
                                 nn.ReLU())

    def forward(self, x):
        return self.mlp.forward(x)

net1 = Net1(input_size, hidden_size)

class Net2(nn.Module):
    def __init__(self, input_size, hidden_size, num_classes):
        super(Net2, self).__init__()
        self.mlp = nn.Sequential()
        self.mlp.add_module('fc1', nn.Linear(input_size, hidden_size))
        self.mlp.add_module('bn1', nn.BatchNorm1d(hidden_size))
        self.mlp.add_module('act1', nn.ReLU())

        self.mlp.add_module('fc', nn.Linear(hidden_size, num_classes))

    def forward(self, x):
        return self.mlp.forward(x)

net2 = Net2(hidden_size, hidden_size, num_classes)

# Loss
xent = nn.CrossEntropyLoss()
mse = nn.MSELoss()

# Optimizers
opt_net1 = torch.optim.Adam(net1.parameters(), lr=learning_rate)
opt_net2 = torch.optim.Adam(net2.parameters(), lr=learning_rate)
opt_dni = torch.optim.Adam(dni.parameters(), lr=learning_rate)

if use_cuda:
    net1.cuda()
    net2.cuda()
    dni.cuda()

# Train the Model
for epoch in range(num_epochs):
    for i, (images, labels) in enumerate(train_loader):
        # Convert torch tensor to Variable
        if use_cuda:
            images = images.cuda()
            labels = labels.cuda()
        images = Variable(images.view(-1, 28 * 28))
        labels = Variable(labels)

        # Forward + Backward + Optimize
        opt_net1.zero_grad()  # zero the gradient buffer
        opt_net2.zero_grad()  # zero the gradient buffer
        opt_dni.zero_grad()  # zero the gradient buffer

        # Forward, Stage1
        h = net1(images)
        h1 = Variable(h.data, requires_grad=True)
        h2 = Variable(h.data, requires_grad=False)

        # Forward, Stage2
        outputs = net2(h1)

        # Backward
        loss = xent(outputs, labels)
        loss.backward()

        # Synthetic gradient and backward
        grad = dni(h2)
        h.backward(grad)

        # regress
        regress_loss = mse(grad, Variable(h1.grad.data))
        regress_loss.backward()

        # optimize
        opt_net1.step()
        opt_net2.step()
        opt_dni.step()

        if (i + 1) % 100 == 0:
            print ('Epoch [%d/%d], Step [%d/%d], Loss: %.4f'
                   % (epoch + 1, num_epochs, i + 1, len(train_dataset) // batch_size, loss.data[0]))

# Test the Model
correct = 0
total = 0
for images, labels in test_loader:
    if use_cuda:
        images = images.cuda()
        labels = labels.cuda()
    images = Variable(images.view(-1, 28 * 28))
    outputs = net2(net1(images))
    _, predicted = torch.max(outputs.data, 1)
    total += labels.size(0)
    correct += (predicted == labels).sum()

print('Accuracy of the network on the 10000 test images: %d %%' %
      (100 * correct / total))


text:
<!DOCTYPE html>

<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="no-referrer-when-downgrade">

<title>retalls - La vista cansada</title>
<meta name="description" content="">

<link rel="alternate" type="application/rss+xml" href="https://carlesbellver.github.io/tags/retalls/index.xml" title="La vista cansada" />
<link rel="icon" type="image/x-icon" href="https://carlesbellver.github.io/favicon.ico">
<link rel="apple-touch-icon-precomposed" href="https://carlesbellver.github.io/favicon.png">

<link rel="stylesheet" href="https://carlesbellver.github.io/css/light.css?rnd=1602439751" />

<link rel="stylesheet" href="https://carlesbellver.github.io/css/style.css?rnd=1602439751" />

<meta property="og:title" content="retalls" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://carlesbellver.github.io/tags/retalls/" />
<meta property="og:updated_time" content="2020-10-01T16:20:42+00:00" />

<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="retalls"/>
<meta name="twitter:description" content=""/>

    Anar al contingut principal

    La vista cansada

        Informació

        Etiquetes

Etiqueta: retalls

        Totes les etiquetes

📎 How progressives could still win the 21st century, by Yanis Varoufakis

Després del col·lapse del bloc soviètic el 1991, i del capitalisme financer el 2008, ens trobem en una nova fase en què el capitalisme s'està morint i el socialisme es nega a nàixer.

Estem davant d’una cruïlla històrica, però, com diu el seu amic Zizek, la majoria de la gent es pot imaginar la fi del món molt més fàcilment que la fi del capitalisme. Sortosament, Varoufakis té més imaginació que la majoria, i una imaginació suficientment concreta en termes econòmics per a esbossar un postcapitalisme que sigui alhora versemblant i esperançador.

2020-10-01

#retalls

📎 Nicholas Carr: What is it like to be a smartphone?

Que els sistemes informàtics puguin adquirir consciència, a mesura que augmenta la seva complexitat, és un lloc comú de la ciència ficció (però també d'algunes versions de la neurociència, i d’aquest territori imprecís entre la ciència i la ficció que és l’onada actual de la intel·ligència artificial). No que pensin, en el sentit del test de Turing, sinó que tinguin experiències subjectives. Carr s’inspira en l’article clàssic de Thomas Nagel: What Is It Like to Be a Bat? Com seria ser un ratpenat, es preguntava Nagel. Una consciència encarnada en el substrat electrònic d’un telèfon, argüeix Carr, seria tan diferent de la d’un primat superior com nosaltres que potser no ens reconeixeríem mútuament com a éssers conscients.

Cfr. Wittgenstein: "Si un lleó pogués parlar, no el podríem entendre". Perquè la seva vida és massa diferent de la nostra. Doncs imagineu un ratpenat, o un iPhone.

Tot això planteja una altra possibilitat. Pot ser que ja estiguem envoltats d'intel·ligències artificials però no tinguem ni idea que existeixen. El seu ésser és invisible per a nosaltres, de la mateixa manera que el nostre n'és per a ells. Som objectes en un mateix espai, però com a éssers habitem universos diferents.

2020-09-29

#retalls

📎 Bruno Faidutti: Images et connaissance de la licorne

2020-09-07

#retalls

#fotos

—I quina és la certesa?

—La certesa és que si sabent què passa no fem res per canviar les coses, la pandèmia serà un assaig només d'allò que podria ser el món d'ací a una dècada a conseqüència del canvi climàtic.

Abans diu que ja no tenim grans relats històrics. Però esmenta l’ecologisme i el feminisme com a únics moviments socials i "grans motors d'aquesta dècada i les vinents". Potser no els copsem com a relats històrics perquè no ens pareixen tan grans —tan bons— com els d’abans. Potser és només un problema generacional.

📎 Joan Romero: ‘El País Valencià hauria de ser capaç de construir una identitat col·lectiva potent’

2020-09-01

#retalls

📎 Autonomy Online: A Case For The IndieWeb (Smashing Magazine)

La resistència infatigable —i l'evolució tecnològica— del web social anterior a Facebook i la resta de plataformes. La teva veu des del teu web personal i la interconnexió d'uns amb altres en temps real mitjançant estàndards.

There is an alternative to corporate bubbles online — it's called the IndieWeb. Build your own personal websites, control your online presence, and learn on your own terms.

2020-08-30

#retalls

📎 Evgeny Morozov: “Estoy a favor de la tecnología, pero tiene que estar vinculada a un sistema político y económico distinto para lograr justicia”

Tenemos ejemplos históricos de sistemas para compartir el conocimiento cuyo acceso hemos financiado: la biblioteca pública moderna. Para poder imaginar qué tipo de alternativas son posibles y poder implementarlas, se debe politizar la cuestión de la propiedad. También la cuestión de quién puede experimentar con las nuevas tecnologías e imaginar el futuro. Si solo se les permite a quienes trabajan en las startups y los fondos de capital de riesgo, tendrás un futuro en el que se trate de obtener ganancias con tus datos, con publicidad o esencialmente cobrándote por el acceso a ciertas cosas.

2020-08-25

#retalls

📎 Otto Scharmer: "Somos una civilización que se desmorona y se acaba"

Pero una nueva civilización que requiere una nueva manera de organizar la economía y recrear la manera en la que convivimos está al nacer.

2020-08-25

#retalls

📎 Lockdown was the longest period of quiet in recorded human history

El soroll sísmic —les vibracions de la Terra— s'associa generalment als terratrèmols. Però la sismologia també atèn a la interacció entre la terra i l'aigua, fent un seguiment de fenòmens com l’onatge dels oceans i els canvis de pressió atmosfèrica. Els humans som la tercera font de soroll sísmic… De les 268 estacions, 185 —un 69 %— han mostrat reduccions importants del soroll ambient sísmic d'alta freqüència, el còctel de soroll produït per humans i soroll ambient natural que ens envolta… La reducció del soroll humà també ha donat als científics l'oportunitat d'escoltar el funcionament interior de la terra més de prop que mai, sense que els humans l'ofeguéssim. Això pot contribuir al coneixement dels terratrèmols, particularment els petits en centres urbans, sovint emmascarats pel soroll sísmic humà.

2020-07-25

#retalls

📎 La ruta esclavista por las calles de Barcelona

Un itinerari que recorre les fites urbanes de les “dinàmiques d'esclavització transatlàntiques”. Els monuments són resultat d’una època i, sobretot, d’unes elits dirigents. Tampoc no van ser, en el seu moment, exempts de polèmica.

2020-07-05

#retalls

📎 Caroline Randall Williams: You Want a Confederate Monument? My Body Is a Confederate Monument

Sóc una dona negra, del Sud, i els meus avanpassats blancs immediats eren tots violadors. La meva mateixa existència és un vestigi de l'esclavitud i de Jim Crow.

2020-06-29

#retalls

                articles anteriors

Carles Bellver Torlà

    <button class="theme-switcher">
        Tema fosc
    </button>


text:
var assert = require('chai').assert;
var events = require('events');
var nlGames = require('../controllers/ActiveGames.js');

describe('Active Games module', function () {

  describe('New Game', function () {
    var newGame;
    it('should create a new game', function () {
      newGame = nlGames.newGame('snake', '3', '4');
      newGame.eventEmitter = new events.EventEmitter();
      newGame.eventEmitter.addListener('dataFromServer', function () {});
      assert.isNotNull(newGame, 'a value was returned');
      assert.isObject(newGame, 'an object was returned');
    }); // End it
  }); // End describe 'New Game'

  describe('Current Games', function () {
    var newGame = nlGames.newGame('snake', '1', '2');

    describe('Find Game', function () {
      var foundGame;
      it('should find a game by ID', function () {
        foundGame = nlGames.findGame(newGame.nlgPlayerOne.ID);
        assert.isNotNull(foundGame, 'a value was returned');
        assert.isObject(foundGame, 'an object was returned');
        assert.equal(newGame.GameID, foundGame.GameID);
      }); // End it
    }); // End describe 'Find Game'
    describe('Remove Game', function () {
      it('should remove a game', function () {
        var pid = newGame.nlgPlayerOne.ID;
        assert.isNotNull(newGame, 'the game object is not null');
        nlGames.removeGame(newGame);
        var foundGame = null;
        foundGame = nlGames.findGame(pid);
        assert.isNull(foundGame, 'the game object is null');
      }); // End it
    }); // End describe 'Remove Game'
  }); // End describe 'Current Games'

}); // End describe 'Active Games module'


text:
<?php

namespace Glooby\Debug\Formatter;

/**
 * @author Emil Kilhage
 */
class ExceptionFormatter implements FormatterInterface
{
    /**
     * @param \Exception $exception
     * @return string
     */
    public function format($exception)
    {
        $text = "$exception\n";

        return $text;
    }
}


text:
#ifndef _SDL_vitavideo_h
#define _SDL_vitavideo_h

#include "../../SDL_internal.h"
#include "../SDL_sysvideo.h"
#include "../SDL_egl_c.h"

#include <psp2/types.h>
#include <psp2/display.h>
#include <psp2/ime_dialog.h>
#include <psp2/sysmodule.h>

typedef struct SDL_VideoData
{
    SDL_bool egl_initialized;   /* OpenGL device initialization status */
    uint32_t egl_refcount;      /* OpenGL reference count              */

    SceWChar16 ime_buffer[SCE_IME_DIALOG_MAX_TEXT_LENGTH];
    SDL_bool ime_active;
} SDL_VideoData;

typedef struct SDL_DisplayData
{

} SDL_DisplayData;

typedef struct SDL_WindowData
{
    SDL_bool uses_gles;
    SceUID buffer_uid;
    void* buffer;
#if defined(SDL_VIDEO_VITA_PVR)
    EGLSurface egl_surface;
    EGLContext egl_context;
#endif
} SDL_WindowData;

extern SDL_Window * Vita_Window;

/****************************************************************************/
/* SDL_VideoDevice functions declaration                                    */
/****************************************************************************/

/* Display and window functions */
int VITA_VideoInit(_THIS);
void VITA_VideoQuit(_THIS);
void VITA_GetDisplayModes(_THIS, SDL_VideoDisplay * display);
int VITA_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode);
int VITA_CreateWindow(_THIS, SDL_Window * window);
int VITA_CreateWindowFrom(_THIS, SDL_Window * window, const void *data);
void VITA_SetWindowTitle(_THIS, SDL_Window * window);
void VITA_SetWindowIcon(_THIS, SDL_Window * window, SDL_Surface * icon);
void VITA_SetWindowPosition(_THIS, SDL_Window * window);
void VITA_SetWindowSize(_THIS, SDL_Window * window);
void VITA_ShowWindow(_THIS, SDL_Window * window);
void VITA_HideWindow(_THIS, SDL_Window * window);
void VITA_RaiseWindow(_THIS, SDL_Window * window);
void VITA_MaximizeWindow(_THIS, SDL_Window * window);
void VITA_MinimizeWindow(_THIS, SDL_Window * window);
void VITA_RestoreWindow(_THIS, SDL_Window * window);
void VITA_SetWindowGrab(_THIS, SDL_Window * window, SDL_bool grabbed);
void VITA_DestroyWindow(_THIS, SDL_Window * window);

/* Window manager function */
SDL_bool VITA_GetWindowWMInfo(_THIS, SDL_Window * window,
                             struct SDL_SysWMinfo *info);

#if SDL_VIDEO_DRIVER_VITA
#if defined(SDL_VIDEO_VITA_PVR_OGL)
/* OpenGL functions */
int VITA_GL_LoadLibrary(_THIS, const char *path);
SDL_GLContext VITA_GL_CreateContext(_THIS, SDL_Window * window);
void *VITA_GL_GetProcAddress(_THIS, const char *proc);
#endif

/* OpenGLES functions */
int VITA_GLES_LoadLibrary(_THIS, const char *path);
void *VITA_GLES_GetProcAddress(_THIS, const char *proc);
void VITA_GLES_UnloadLibrary(_THIS);
SDL_GLContext VITA_GLES_CreateContext(_THIS, SDL_Window * window);
int VITA_GLES_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context);
int VITA_GLES_SetSwapInterval(_THIS, int interval);
int VITA_GLES_GetSwapInterval(_THIS);
int VITA_GLES_SwapWindow(_THIS, SDL_Window * window);
void VITA_GLES_DeleteContext(_THIS, SDL_GLContext context);
#endif

/* VITA on screen keyboard */
SDL_bool VITA_HasScreenKeyboardSupport(_THIS);
void VITA_ShowScreenKeyboard(_THIS, SDL_Window *window);
void VITA_HideScreenKeyboard(_THIS, SDL_Window *window);
SDL_bool VITA_IsScreenKeyboardShown(_THIS, SDL_Window *window);

void VITA_PumpEvents(_THIS);

#endif /* _SDL_pspvideo_h */

/* vi: set ts=4 sw=4 expandtab: */


text:
/* tslint:disable */
/**
 * Created by HudaZulifqar on 8/18/2017.
 */
import {Component} from "@angular/core";
import {Player} from "./player";
import {Subject} from "rxjs/Subject";
import {DashboardService} from "../dashboard.service";

@Component({
  selector: 'top-players',
  templateUrl: 'topPlayers.html',
  styleUrls: ['topPlayers.scss'],
})
export class TopPlayersComponent {
  private ngUnsubscribe: Subject<void> = new Subject<void>();
  batting_recordsT20: any;
  batting_recordsT30: any;
  recordsObjectT20: any = [];
  recordsObjectT30: any = [];
  recordsDataT20: any = [];
  recordsDataT30: any = [];

  //Bowling
  bowling_recordsT20: any;
  bowling_recordsT30: any;
  bowling_object: any = [];
  /*bowling_objectT30: any = [];
  bowling_data_t20: any = [];*/
  bowling_data_t20: any = [];
  bowling_data_t30: any = [];

  constructor(private dashboardService: DashboardService) {
  }

  ngOnInit() {
    this.battingRecordsT20();
    this.battingRecordsT30();
    this.bowlingRecordsT20();
    this.bowlingRecordsT30();
  }

  battingRecordsT20() {
    console.info("Fetching battingRecords list: ")
    const types$ = this.dashboardService.getBattingRecords(31);
    types$.takeUntil(this.ngUnsubscribe).subscribe(responce => this.batting_recordsT20 = responce,
      (err) => console.error('battingRecords: Response Error =>', err),
      () => this.loadDataT20(this.batting_recordsT20));

  }

  battingRecordsT30() {
    console.info("Fetching battingRecords list: ")
    const types$ = this.dashboardService.getBattingRecords(30);
    types$.takeUntil(this.ngUnsubscribe).subscribe(responce => this.batting_recordsT30 = responce,
      (err) => console.error('battingRecords: Response Error =>', err),
      () => this.loadDataT30(this.batting_recordsT30));

  }

  bowlingRecordsT20() {
    console.info("Fetching battingRecords list: ")
    const types$ = this.dashboardService.getBowlingRecords(31);
    types$.takeUntil(this.ngUnsubscribe).subscribe(responce => this.bowling_recordsT20 = responce,
      (err) => console.error('getBowlingRecords20: Response Error =>', err),
      () => this.loadBowlingData(20, this.bowling_recordsT20));

  }

  bowlingRecordsT30() {
    console.info("Fetching battingRecords list: ")
    const types$ = this.dashboardService.getBowlingRecords(30);
    types$.takeUntil(this.ngUnsubscribe).subscribe(responce => this.bowling_recordsT30 = responce,
      (err) => console.error('getBowlingRecords30: Response Error =>', err),
      () => this.loadBowlingData(30, this.bowling_recordsT30));

  }

  loadDataT20(val) {

    for (let score of val) {
      if (!this.recordsDataT20[9]) {
        this.recordsDataT20.push({
          matches: score.matches,
          runs: score.runs,
          average: score.average,
          fifties: score.fifties,
          name: score.playerFullName
        })
      }
    }
    console.log("recordsDataT20 :", this.recordsDataT20);
    this.recordsObjectT20 = this.recordsDataT20;

  }

  loadDataT30(val) {

    for (let score of val) {
      if (!this.recordsDataT30[9]) {
        this.recordsDataT30.push({
          matches: score.matches,
          runs: score.runs,
          average: score.average,
          fifties: score.fifties,
          name: score.playerFullName
        })
      }
    }
    console.log("recordsDataT30 :", this.recordsDataT30);
    this.recordsObjectT30 = this.recordsDataT30;

  }

  loadBowlingData(league, rescords) {
    for (let score of rescords) {
      if (!this.bowling_object[9]) {
        this.bowling_object.push({
          matches: score.matches,
          runs: score.bowling_runs,
          average: score.average,
          wickets: score.wickets,
          name: score.full_name
        })
      }
    }
    console.log("Record Data :", this.recordsDataT30);
    if (league === 20) {
      this.bowling_data_t20 = this.bowling_object;
    }
    if (league === 30) {
      this.bowling_data_t30 = this.bowling_object;
    }
  }

  ngOnDestroy() {
    this.ngUnsubscribe.next();
    this.ngUnsubscribe.complete();
  }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<title>All Classes</title>
		<link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" />

All Classes

				CPPTokenizerTest

				ContinuationReaderTest

				LanguageVersionTest


text:
require 'celluloid/current'

class Worker
  include Celluloid

  def initialize(is_async = true)
    puts "initialize worker #{is_async}"
    async.start if is_async
    start unless is_async
  end

  def start
    loop do
      @times = (@times || 0) + 1
      raise 'error in get_data' if @times % 2 == 0
      puts "worker::get_data >> #{@times}"
      sleep 1
    end
  end
end

class ChildContainer < Celluloid::Supervision::Container
  supervise Worker, as: :container_worker

  def initialize(start_loop)
    super
    puts 'initialize child container'
    async.start_loop if start_loop
  end

  def start_loop
    puts 'started first container'
    every(1) { puts 'first container working' }
    # every(3) { raise 'first container loop error' }
  end
end

class ChildContainerCrash < Celluloid::Supervision::Container

  def initialize
    container = ChildContainer.run! args:[true]
    # sync setup will crash the group, because accessing the container may result in error before restart
    async.setup container
  end

  def setup(container)
    @container = container
    link @container
  end
end

ChildContainerCrash.run
# Will work with restart happening for container inside container


text:
Unified password and session management for seamless accountability and control over privileged accounts.

Each command is assigned a role. Users will not be able to run commands for which they are not assigned to the specific role for a command.

Fetch Credentials

For the fetch credentials function to work properly, you need to create a new asset, managed system, and managed account in BeyondTrust.

In the BeyondTrust platform, create a new asset.

Create a managed system.
The name of the system should be the name of the integration (service/platform) you want to use, which will make it easier to filter credentials.

In the managed system, create a managed account.
The name of the managed account will be the username/email (depending on how the instance is configured) and the password will be the password of the integration (when creating an instance).

Create a BeyondTrust API Key

To configure an integration instance, you need your BeyondTrust API key. The API key is generated after you configure an API Registration. For detailed instructions, see the BeyondTrust Password Safe Admin Guide.

Configure BeyondTrust Password Safe on Cortex XSOAR

Navigate to Settings > Integrations > Servers & Services.

Search for BeyondTrust Password Safe.

Click Add instance to create and configure a new integration instance.

Name: a textual name for the integration instance.

Server URL (e.g., https://192.168.0.1)

Username

API Key

Trust any certificate (not secure)

Use system proxy settings

Fetch credentials

System Name (optional for fetch credentials)

Click Test to validate the URLs, token, and connection.

Commands

You can execute these commands from the Cortex XSOAR CLI, as part of an automation, or in a playbook. After you successfully execute a command, a DBot message appears in the War Room with the command details.

Each command is assigned a role. Users will not be able to run commands for which they are not assigned to the specific role for a command.

Get a list of managed accounts for the current user: beyondtrust-get-managed-accounts

Get a list of managed systems: beyondtrust-get-managed-systems

Create a new credentials release request: beyondtrust-create-release-request

Check in or release a request: beyondtrust-check-in-credentials

Get credential for an approved credentials release request: beyondtrust-get-credentials

Update credentials for a managed account: beyondtrust-change-credentials

1. Get a list of managed accounts for the current user

Returns a list of managed accounts that the current user has permissions to request.

Base Command

beyondtrust-get-managed-accounts

Input

There are no inputs for this command.

Context Output

Path
Type
Description

BeyondTrust.Account.PlatformID
Number
ID of the managed system platform.

BeyondTrust.Account.SystemID
Number
ID of the managed system.

BeyondTrust.Account.SystemName
String
Name of the managed system.

BeyondTrust.Account.DomainName
Number
ID of the managed account.

BeyondTrust.Account.AccountName
String
Name of the managed account.

BeyondTrust.Account.InstanceName
String
Database instance name of a database-type managed system.

BeyondTrust.Account.DefualtReleaseDuration
Number
Default release duration.

BeyondTrust.Account.MaximumReleaseDuration
Number
Maximum release duration.

BeyondTrust.Account.LastChangeDate
Date
The date and time of the last password change.

BeyondTrust.Account.NexeChangeDate
Date
The date and time of the next scheduled password change.

BeyondTrust.Account.IsChanging
Boolean
True if the account credentials are in the process of changing, otherwise false.

BeyondTrust.Account.IsISAAccess
Boolean
True if the account is for Information Systems Administrator (ISA) access, otherwise false.

BeyondTrust.Account.AccountID
Number
ID of the managed account.

Command Example

!beyondtrust-get-managed-accounts

Human Readable Output

BeyondTrust Managed Accounts

AccountName
AccountID
AssetName
AssetID
LastChangeDate
NextChangeDate

demisto
1
Demisto-lab-server
1
2019-05-30T07:30:48.16
2019-07-01T21:00:00,

Test
2
Demisto-lab-server
1
2019-05-30T12:05:06.683
2019-07-01T21:00:00,

shelly
3
shelly-test
2
2019-05-30T12:59:12.313

2. Get a list of managed systems

Returns a list of managed systems.

Base Command

beyondtrust-get-managed-systems

Input

There are no inputs for this command.

Context Output

Path
Type
Description

BeyondTrust.System.Port
Number
The port used to connect to the host. If null and the related Platform.PortFlag is true, Password Safe uses Platform.DefaultPort for communication.

BeyondTrust.System.Timeout
String
Connection timeout – Length of time in seconds before a slow or unresponsive connection to the system fails.

BeyondTrust.System.ResetPasswordOnMismatchFlag
Boolean
True to queue a password change when scheduled password test fails, otherwise false.

BeyondTrust.System.ChangeFrequencyDays
Number
When ChangeFrequencyType is "xdays", the frequency with which the password changes (between 1-90 days).

BeyondTrust.System.ISAReleaseDuration
Number
Default Information Systems Administrator (ISA) release duration.

BeyondTrust.System.FunctionalAccountID
Number
ID of the functional account used for local Managed Account password changes.

BeyondTrust.System.ChangeFrequencyType
String
The change frequency for scheduled password changes: "first"– Changes are scheduled for the first day of the month; "last"– Changes are scheduled for the last day of the month; "xdays"– Changes are scheduled every "x" days (see ChangeFrequencyDays)

BeyondTrust.System.DirectoryID
Number
ID of the directory. Is set if the Managed System is a Directory.

BeyondTrust.System.ManagedAssetID
Number
ID of the Managed System.

BeyondTrust.System.AssetID
Number
ID of the asset. Is set if the Managed System is an Asset or a Database.

BeyondTrust.System.PlatformID
Number
ID of the Managed System Platform.

BeyondTrust.System.ElevationCommand
String
Elevation command to use (sudo, pbrun, or pmrun).

BeyondTrust.System.CheckPasswordFlag
Boolean
True to enable password testing, otherwise false.

BeyondTrust.System.CloudID
Number
ID of the Cloud System. Is set if the Managed System is a Cloud System.

BeyondTrust.System.DSSKeyRuleID
Number
ID of the default DSS Key Rule assigned to Managed Accounts that were created under this Managed System.

BeyondTrust.System.PasswordRuleID
Number
ID of the default Password Rule assigned to Managed Accounts that were created under this Managed System.

BeyondTrust.System.NetBiosName
String
Domain NetBIOS name. Setting this value will allow Password Safe to fall back to the NetBIOS name, if needed.

BeyondTrust.System.DatabaseID
Number
ID of the database. Is set if the Managed System is a Database.

BeyondTrust.System.MaxReleaseDuration
Number
Default maximum release duration.

BeyondTrust.System.ChangePasswordAfterAnyReleaseFlag
Boolean
True to change passwords on release of a request, otherwise false.

BeyondTrust.System.SystemName
String
Name of the related entity (Asset, Directory, Database, or Cloud).

BeyondTrust.System.ReleaseDuration
Number
Default release duration.

BeyondTrust.System.ContactEmail
String
Email address of the user that manages the system.

BeyondTrust.System.Description
String
The description of the system.

BeyondTrust.System.ChangeTime
String
Time (UTC) that password changes are scheduled to occur.

BeyondTrust.System.AutoManagementFlag
Boolean
True if password auto-management is enabled, otherwise false.

BeyondTrust.System.LoginAccountID
Number
ID of the Functional Account used for SSH session logins.

Command Example

!beyondtrust-get-managed-systems

Human Readable Output

BeyondTrust Managed Accounts

ManagedAssetID
ChangeFrequencyDays
AssetID
AssetName
PlatformID
Port

1
30
2
Demisto-lab-server
2
22,

2
30
3
shelly-test
2
22,

3
30
4
integration-test
2
22,

4
30
5
Cybereason
2
22

3. Create a new credentials release request

Creates a new credentials release request. This command gets the credentials (password) of the account for which the request was made. The outputs will show the credentials that were created for the account requested as plain text in the War Room,  so we recommend that after you run this command, you also run the beyondtrust-change-credentials command.

Base Command

beyondtrust-create-release-request

Input

Argument Name
Description
Required

access_type
The type of access requested (View, RDP, SSH). Defualt is "View".
Optional

system_id
ID of the Managed System to request. Get the ID from get-managed accounts command
Required

account_id
ID of the Managed Account to request. Get the ID from get-managed accounts command
Required

duration_minutes
The request duration (in minutes).
Required

reason
The reason for the request.
Optional

conflict_option
The conflict resolution option to use if an existing request is found for the same user, system and account ("reuse" or "renew").
Optional

Context Output

Path
Type
Description

BeyondTrust.Request.Credentials
String
The credentials for the requested ID.

BeyondTrust.Request.RequestID
Number
The request ID.

Command Example

!beyondtrust-create-release-request account_id=8 duration_minutes=2 system_id=3\

Human Readable Output

4. Check in or release a request

Checks-in/releases a request before it expires.

Base Command

beyondtrust-check-in-credentials

Input

Argument Name
Description
Required

request_id
ID of the request to release.
Required

reason
A reason or comment why the request is being released.
Optional

Context Output

There is no context output for this command.

Command Example

!beyondtrust-check-in-credentials request_id=295\

Human Readable Output

The release was successfully checked-in/released

5. Get credential for an approved credentials release request

Retrieves the credentials for an approved and active (not expired) credentials release request.

Base Command

beyondtrust-get-credentials

Input

Argument Name
Description
Required

request_id
ID of the Request for which to retrieve the credentials
Required

Context Output

There is no context output for this command.

Command Example

!beyondtrust-get-credentials request_id=294\

Human Readable Output

The credentials for BeyondTrust request: shelly

6. Update credentials for a managed account

Updates the credentials for a Managed Account, optionally applying the change to the Managed System.

Base Command

beyondtrust-change-credentials

Input

Argument Name
Description
Required

account_id
ID of the account for which to set the credentials.
Required

password
The new password to set. If not given, generates a new, random password.
Optional

public_key
The new public key to set on the host. This is required if PrivateKey is given and updateSystem=true.
Optional

private_key
The private key to set (provide Passphrase if encrypted).
Optional

pass_phrase
The passphrase to use for an encrypted private key.
Optional

update_system
Whether to update the credentials on the referenced system.
Optional

Context Output

There is no context output for this command.

Command Example

!beyondtrust-change-credentials account_id=8

Human Readable Output

The password has been changed


text:
function doPost(action, map) {
	var form = document.createElement('form');
	form.setAttribute('action', action);
	form.setAttribute('method', 'post');
	form.innerHTML = '';
	for ( var name in map) {
		form.innerHTML += '<input type="hidden" name="' + name + '" value="'
				+ map[name] + '" />';
	}
	document.body.appendChild(form);
	form.submit();
	return false;
};


text:
require 'json'
require 'colorize'
module Podrick
  class List
    attr_reader :response
    def initialize(response)
      @response = JSON.parse(response)
    end

    def display
      output_string = "name\tdescription\n".colorize(:red)
      output_string += response.map {|x| x['name'].colorize(:light_blue) + '\t' + x['description'] }.join("\n")
      output_string = "echo \"#{output_string}\" | column -s $'\t' -t"
      system output_string
    end
  end
end


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>net.ontopia.presto</groupId>
    <artifactId>presto</artifactId>
    <version>0.7.27-SNAPSHOT</version>
  </parent>

  <name>Presto - Riak data provider</name>
  <groupId>net.ontopia.presto</groupId>
  <artifactId>presto-riak</artifactId>
  <packaging>jar</packaging>
  <version>0.7.27-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>net.ontopia.presto</groupId>
       <artifactId>presto-core</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-api</artifactId>
    </dependency>
    <dependency>
      <groupId>com.basho.riak</groupId>
      <artifactId>riak-client</artifactId>
    </dependency>
  </dependencies>

</project>


text:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<scenarioConfiguration domain="APIMAnalytics" name="MarkovStateClassifier" scenario="MarkovStateClassifier">
	<description>Clasiffier configurations for Request Patterns</description>
	<executionParameters>null</executionParameters>
	<parameterMap>
		<entry>
			<key>transitionPeriod</key>
			<value>60 min</value>
		</entry>
	</parameterMap>
</scenarioConfiguration>