text:
    <title>YouCube - The Blog for Cube Puzzlers</title>

YouCube - The Blog for Cube Puzzlers

    <input type="button" id="search" value="Search the Blog" onclick="searchBlog();" />
    <input type="text" id="searchtext" name="searchtext" value="" />

    <input type="button" id="showall" value="Show All Blog Entries" onclick="showBlog();" />
    <input type="button" id="viewrandom" value="View a Random Blog Entry" onclick="randomBlog();" />


text:
{% extends 'base_member.html' %}
{% load static %}
{% load thumbnail %}

{% block content %}

                Find a mix!
                <form method="GET">

                            map
                          {{ form.city }}
                            City
                          {{ form.city.errors }}

                            apps
                          {{ form.category }}
                            Category
                          {{ form.category.errors }}

                    <button type="submit" class="waves-effect waves-light btn blue darken-4">
                        Search search
                    </button>
                </form>

    {% for event in events %}
        {% cycle '
' '' %}

<picture class="crop-event-img">
                          {% thumbnail event.image "640x360" crop="center" as im %}

                          {% endthumbnail %}
                      </picture>
                      {{ event.template.name    }}

City: {{ event.city.description }}

Location: {{ event.location.description }}

Category: {{ event.template.category.name }}

Date:  {{ event.datetime }}

                  remove_red_eye View

        {% if forloop.counter|divisibleby:2 or forloop.last %}
{% endif %}
    {% empty %}

Sorry! We don't have any event at this moment.

Why don't you start right now?

                Make a MIX

    {% endfor %}

{% endblock %}

redpajama_set_name: RedPajamaGithub


text:
[![Build Status](https://travis-ci.org/wallee-payment/php-sdk.svg?branch=master)](https://travis-ci.org/wallee-payment/php-sdk)

# wallee PHP Library

The wallee PHP library wraps around the wallee API. This library facilitates your interaction with various services such as transactions, accounts, and subscriptions.

## Documentation

[wallee Web Service API](https://app-wallee.com/doc/api/web-service)

## Requirements

- PHP 5.6.0 and above

## Installation

You can use **Composer** or **install manually**

### Composer

The preferred method is via [composer](https://getcomposer.org). Follow the
[installation instructions](https://getcomposer.org/doc/00-intro.md) if you do not already have
composer installed.

Once composer is installed, execute the following command in your project root to install this library:

```sh
composer require wallee/sdk
```

### Manual Installation

Alternatively you can download the package in its entirety. The [Releases](../../releases) page lists all stable versions.

Uncompress the zip file you download, and include the autoloader in your project:

```php
require_once '/path/to/php-sdk/autoload.php';
```

## Usage
The library needs to be configured with your account's space id, user id, and secret key which are available in your [wallee
account dashboard](https://app-wallee.com/account/select). Set `space_id`, `user_id`, and `api_secret` to their values.

### Configuring a Service

```php
require_once(__DIR__ . '/autoload.php');

// Configuration
$spaceId = 405;
$userId = 512;
$secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=';

// Setup API client
$client = new \Wallee\Sdk\ApiClient($userId, $secret);

// Get API service instance
$client->getTransactionService();
$client->getTransactionPaymentPageService();

```

To get started with sending transactions, please review the example below:

```php
require_once(__DIR__ . '/autoload.php');

// Configuration
$spaceId = 405;
$userId = 512;
$secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=';

// Setup API client
$client = new \Wallee\Sdk\ApiClient($userId, $secret);

// Create transaction
$lineItem = new \Wallee\Sdk\Model\LineItemCreate();
$lineItem->setName('Red T-Shirt');
$lineItem->setUniqueId('5412');
$lineItem->setSku('red-t-shirt-123');
$lineItem->setQuantity(1);
$lineItem->setAmountIncludingTax(29.95);
$lineItem->setType(\Wallee\Sdk\Model\LineItemType::PRODUCT);

$transactionPayload = new \Wallee\Sdk\Model\TransactionCreate();
$transactionPayload->setCurrency('EUR');
$transactionPayload->setLineItems(array($lineItem));
$transactionPayload->setAutoConfirmationEnabled(true);

$transaction = $client->getTransactionService()->create($spaceId, $transactionPayload);

// Create Payment Page URL:
$redirectionUrl = $client->getTransactionPaymentPageService()->paymentPageUrl($spaceId, $transaction->getId());

header('Location: ' . $redirectionUrl);

```
### HTTP Client
You can either use `php curl` or `php socket` extentions. It is recommend you install the necessary extentions and enable them on your system.

You have to ways two specify which HTTP client you prefer.

```php
$userId = 512;
$secret = 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=';

// Setup API client
$client = new \Wallee\Sdk\ApiClient($userId, $secret);

$httpClientType = \Wallee\Sdk\Http\HttpClientFactory::TYPE_CURL; // or \Wallee\Sdk\Http\HttpClientFactory::TYPE_SOCKET

$client->setHttpClientType($httpClientType);
```

You can also specify the HTTP client via the `WLE_HTTP_CLIENT` environment variable. The possible string values are `curl` or `socket`.

```php
<?php
putenv('WLE_HTTP_CLIENT=curl');
?>
```

## License

Please see the [license file](https://github.com/wallee-payment/php-sdk/blob/master/LICENSE) for more information.


text:
package folioxml.xml;

import folioxml.core.InvalidMarkupException;
import folioxml.slx.SlxRecord;
import org.apache.commons.lang3.NotImplementedException;

import java.io.IOException;
import java.util.ArrayDeque;
import java.util.Deque;

public class XmlRecord extends Node {

    public XmlRecord(String xml) throws IOException, InvalidMarkupException {
        super(xml);
    }

    protected XmlRecord(SlxRecord r, boolean copyChildren) {
        if (copyChildren) throw new NotImplementedException("Xml record children copy not implemented");
        r.copyTo(this, true);

        //Then deal with parent reference
        if (r.parent != null)
            parent = r.parent.slxXmlRecordTag; //The tag is applied by SlxToXmlTransformer to each record, so future records can translate their ancestry
    }

    public XmlRecord parent = null;

    public boolean isRootRecord() throws InvalidMarkupException {
        return (this.getLevelType() != null && this.getLevelType().equalsIgnoreCase("root"));
    }

    /**
     * Returns true if there is a value for the 'level' attribute
     *
     * @return
     */
    public boolean isLevelRecord() throws InvalidMarkupException {
        return getLevelType() != null;
    }

    /**
     * returns this.get("level"). Returns null if the string is empty.
     *
     * @return
     */
    public String getLevelType() throws InvalidMarkupException {
        String s = this.get("level");
        if (s == null || s.length() == 0) return null;
        return s;
    }

    public XmlRecord getRoot() {
        if (parent == null) return this;
        else return parent.getRoot();
    }

    public Deque<XmlRecord> getAncestors(boolean includeSelf) {
        Deque<XmlRecord> parents = new ArrayDeque<XmlRecord>();

        XmlRecord current = this;
        if (includeSelf) parents.add(this);
        while (current.parent != null) {
            parents.addLast(current.parent);
            current = current.parent;
        }
        return parents;
    }

    public XmlRecord getCommonAncestor(XmlRecord other, boolean includeSelves) {
        Deque<XmlRecord> parents = this.getAncestors(includeSelves);
        Deque<XmlRecord> otherParents = other.getAncestors(includeSelves);
        XmlRecord common = null;
        while (!parents.isEmpty() && !otherParents.isEmpty()) {
            XmlRecord c = parents.removeLast();
            if (c == otherParents.removeLast()) common = c;
            else break;
        }
        return common;
    }

}


text:
This file has moved to: http://kubernetes.github.io/docs/getting-started-guides/cloudstack/

<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/getting-started-guides/cloudstack.md?pixel)]()
<!-- END MUNGE: GENERATED_ANALYTICS -->


text:
require 'rails_helper'

RSpec.describe "conditional redirects for creditors in address_controller" do
  before(:each){ login_as create(:admin) }

  ['person', 'organization'].each do |type|
    it "coming from creditors index, then successfully editing a #{type} leads back to the creditors index" do
      @address = create type.to_sym
      visit '/creditors'
      click_on "edit_#{type}_#{@address.id}"
      click_on 'submit'
      expect(current_path).to eq(creditors_path)
      expect(page).to have_selector('div.alert-notice')
    end

    it "coming from the #{type}s page, then successfully editing a #{type.pluralize} leads back to the #{type}s page" do
      @address = create type.to_sym
      visit send("#{type}_path", @address)
      click_on 'edit'
      click_on 'submit'
      expect(current_path).to eq(send("#{type}_path", @address))
    end

    it "cancel editing a #{type} when coming from creditors index leads back to index" do
      @address = create type.to_sym
      visit '/creditors'
      click_on "edit_#{type}_#{@address.id}"
      click_on 'cancel'
      expect(current_path).to eq(creditors_path)
    end

    it "cancel editing a #{type} when coming from its show page leads back to its show page" do
      @address = create type.to_sym
      visit send("#{type}_path", @address)
      click_on 'edit'
      click_on 'cancel'
      expect(current_path).to eq(send("#{type}_path", @address))
    end

    it "deleting a #{type} leads back to creditors index" do
      @address = create type.to_sym
      visit creditors_path
      click_on "delete_#{type}_#{@address.id}"
      expect(current_path).to eq(creditors_path)
      expect(page).not_to have_selector("tr##{type}_#{@address.id}")
      expect(page).to have_selector('div.alert-notice')
    end

    it "creating a #{type} leads to the newly created record" do
      visit creditors_path
      click_on "add_#{type}"
      select 'Herr', from: "#{type}_salutation" if type == 'person'
      select 'GmbH', from: "#{type}_legal_form" if type == 'organization'
      fill_in "#{type}_first_name", with: 'First Name' if type == 'person'
      fill_in "#{type}_name", with: 'Name'
      fill_in "#{type}_street_number", with: 'Street Number'
      fill_in "#{type}_zip", with: 'Zip'
      fill_in "#{type}_city", with: 'City'
      select 'Deutschland', from: "#{type}_country_code", match: :first
      click_on 'submit'
      expect(current_path).to match(/\/#{type.pluralize}\/\d+/)
      expect(page).to have_selector('div.alert-notice')
    end
  end
end


text:
<?php

namespace Magento\Framework\App\Cache;

class StateTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var \PHPUnit_Framework_MockObject_MockObject
     */
    private $config;

    /**
     * @var \PHPUnit_Framework_MockObject_MockObject
     */
    private $writer;

    protected function setUp()
    {
        $this->config = $this->getMock('Magento\Framework\App\DeploymentConfig', [], [], '', false);
        $this->writer = $this->getMock('Magento\Framework\App\DeploymentConfig\Writer', [], [], '', false);
    }

    /**
     * @param string $cacheType
     * @param array $config
     * @param bool $banAll
     * @param bool $expectedIsEnabled
     * @dataProvider isEnabledDataProvider
     */
    public function testIsEnabled($cacheType, $config, $banAll, $expectedIsEnabled)
    {
        $model = new State($this->config, $this->writer, $banAll);
        if ($banAll) {
            $this->config->expects($this->never())->method('getSegment');
        } else {
            $this->config->expects($this->once())->method('getSegment')->willReturn($config);
        }
        $this->writer->expects($this->never())->method('update');
        $actualIsEnabled = $model->isEnabled($cacheType);
        $this->assertEquals($expectedIsEnabled, $actualIsEnabled);
    }

    /**
     * @return array
     */
    public static function isEnabledDataProvider()
    {
        return [
            'enabled' => [
                'cacheType' => 'cache_type',
                'config' => ['some_type' => false, 'cache_type' => true],
                'banAll' => false,
                'expectedIsEnabled' => true,
            ],
            'disabled' => [
                'cacheType' => 'cache_type',
                'config' => ['some_type' => true, 'cache_type' => false],
                'banAll' => false,
                'expectedIsEnabled' => false,
            ],
            'unknown is disabled' => [
                'cacheType' => 'unknown_cache_type',
                'config' => ['some_type' => true],
                'banAll' => false,
                'expectedIsEnabled' => false,
            ],
            'disabled, when all caches are banned' => [
                'cacheType' => 'cache_type',
                'config' => ['cache_type' => true],
                'banAll' => true,
                'expectedIsEnabled' => false,
            ]
        ];
    }

    public function testSetEnabled()
    {
        $model = new State($this->config, $this->writer);
        $this->assertFalse($model->isEnabled('cache_type'));
        $model->setEnabled('cache_type', true);
        $this->assertTrue($model->isEnabled('cache_type'));
        $model->setEnabled('cache_type', false);
        $this->assertFalse($model->isEnabled('cache_type'));
    }

    public function testPersist()
    {
        $model = new State($this->config, $this->writer);
        $constraint = new \PHPUnit_Framework_Constraint_IsInstanceOf('Magento\Framework\App\Cache\Type\ConfigSegment');
        $this->writer->expects($this->once())->method('update')->with($constraint);
        $model->persist();
    }
}


text:
ifeq ($(subdir),db2)
CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
endif

ifeq ($(subdir),gmon)
sysdep_routines += _mcount
endif

ifeq ($(subdir),gnulib)
sysdep_routines += divl divlu divq divqu reml remlu remq remqu
endif

ifeq ($(subdir),string)
sysdep_routines += stxcpy stxncpy
endif

ifeq ($(subdir),elf)
# The ld.so startup code cannot use literals until it self-relocates.
CFLAGS-rtld.c = -mbuild-constants
endif

# Build everything with full IEEE math support, and with dynamic rounding;
# there are a number of math routines that are defined to work with the
# "current" rounding mode, and it's easiest to set this with all of them.
sysdep-CFLAGS += -mieee -mfp-rounding-mode=d

# libc.so requires about 16k for the small data area, which is well
# below the 64k maximum.
pic-ccflag = -fpic


text:
SRC=/cygdrive/D/Illumina/MiSeqOutput/
DST=/backup/MiSeq

echo '' >> backup.log
echo '--------------------' >> backup.log
date >> backup.log
rsync -av --stats --exclude='Images*' --exclude='Alignment*' $SRC virologysrv10.uzh.ch:$DST &>> backup.log
echo 'backed up' >> backup.log
date >> backup.log
echo '--------------------' >> backup.log
echo '' >> backup.log


text:
<resources>
    <string name="fragment_title_application">应用</string>
    <string name="pc_connect">电脑互传</string>
    <string name="fragment_title_connect">连接</string>
    <string name="fragment_title_media">影音</string>
    <string name="fragment_title_office">文档</string>
    <string name="fragment_title_music">音乐</string>
    <string name="fragment_title_movie">电影</string>
    <string name="fragment_title_pic">照片</string>
    <string name="fragment_title_fileExplore">浏览</string>
    <string name="fragment_title_download">下载</string>
    <string name="app_name">快传</string>
    <string name="drawer_open">Open Drawer</string>
    <string name="drawer_close">Close Drawer</string>
    <string name="action_edit">Edit</string>
    <string name="hello_world">Hello world!</string>
    <string name="action_settings">Settings</string>
    <string name="no_file">无文件</string>
    <string name="empty"></string>
    <string name="sendFile">发送文件</string>
    <string name="add_to_sendfilelist_erorr">文件已在发送列表</string>
    <string name="clear_sendfilelist_alert_title">提示</string>
    <string name="clear_sendfilelist_alert_content">是否清空发送列表?</string>
    <string name="clear_sendfilelist_alert_button_sure">清空</string>
    <string name="clear_sendfilelist_alert_button_cancel">算了</string>
    <string name="delete_sendfilelist_popwin_title">移除要发送的文件</string>
    <string name="refresh_music_list">刷新</string>
    <string name="gain_permission_error">应用获取权限出错</string>
    <string name="inner_sdcard">内置SD卡</string>
    <string name="external_sdcard">外部SD卡</string>
    <string name="received_file_dir">收到的文件</string>
    <string name="root_dir">根目录</string>
    <string name="home_dir">家目录</string>
    <string name="installed_apps">已安装应用</string>
    <string name="searching_hit">正在搜索设备,请在另外一台手机上进入此界面搜索</string>
    <string name="connecting_device">正在连接设备</string>
    <string name="connect_successed">连接设备成功</string>
    <string name="connect_failed">连接设备失败</string>
    <string name="disconnected_device">连接已断开</string>
    <string name="server">服务端</string>
    <string name="client">客户端</string>

    <string name="type_application">应用</string>
    <string name="type_music">音乐</string>
    <string name="type_movie">电影</string>
    <string name="type_photo">图片</string>
    <string name="type_other">其他</string>

    <string name="group_failed_task">已失败</string>
    <string name="group_finished_task">已完成</string>
    <string name="group_sending_task">发送中</string>
    <string name="group_recevieing_task">接收中</string>
    <string name="group_paused_task">已暂停</string>

    <string name="state_transporting">传输中</string>
    <string name="state_finished">已完成</string>
    <string name="state_failed">已失败</string>
    <string name="state_paused">已暂停</string>
    <string name="state_waiting">等待中</string>

    <string name="menu_open">打开</string>
    <string name="menu_delete">删除</string>
    <string name="menu_uninstall">卸载</string>
    <string name="menu_property">属性</string>

    <string name="package_uninstalled">已卸载</string>

    <string name="enable_p2p_button">P2P On/Off</string>
    <string name="discover_peers_button">Discover</string>
    <string name="connect_peer_button">Connect</string>
    <string name="disconnect_peer_button">Disconnect</string>
    <string name="get_file_button">Launch Gallery</string>
    <string name="yes">yes</string>
    <string name="no">no</string>
    <string name="client_text">This device will act as a client. Click on Gallery button to pick a local(stored) file</string>
    <string name="empty_message">No devices found. Turn on P2P and perform discovery from the Action Bar</string>
    <string name="p2p_off_warning">Enable P2P from action bar button above or system settings</string>
    <string name="group_owner_text">"Am I the Group Owner? "</string>
    <string name="label_me">ME</string>
    <string name="label_peers">PEERS</string>

    <string name="connect">已连接</string>
    <string name="disconnect">未连接</string>
    <string name="download">下载管理</string>
    <string name="user_name">用户名</string>
    <string name="setting">设置</string>
    <string name="filter_size">最小文件大小</string>

    <string name="cancel">取消</string>
    <!-- 本地文件系统 -->
    <string name="localeFile">本地文件</string>
    <string name="curCatagoryNoFiles">该分类没有文件</string>
    <string name="curDirNoChilds">当前文件夹没有文件</string>
    <string name="bxfile_download">已下载文件</string>
    <string name="bxfile_ram">手机内存</string>
    <string name="bxfile_sdcard">SD卡内存</string>
    <string name="bxfile_extsdcard">扩展卡内存</string>
    <string name="bxfile_image">图片</string>
    <string name="bxfile_music">音乐</string>
    <string name="bxfile_video">视频</string>
    <string name="bxfile_media_cnt">(%1$s)</string>
    <string name="bxfile_choosed">已选</string>
    <string name="bxfile_choosedCnt">发送(%1$s)</string>
    <string name="fileViewer">文件查看</string>
    <string name="fileReSend">重新发送</string>
    <string name="openWithOtherApp">用其他应用打开</string>
    <string name="send">发送</string>
    <string name="attach_open_err">文件打开失败</string>
    <string name="SDCardNotMounted">SDCard未加载</string>

</resources>


text:
package org.apache.hadoop.yarn.server.timelineservice.reader;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.service.Service.STATE;
import org.apache.hadoop.yarn.conf.YarnConfiguration;
import org.apache.hadoop.yarn.exceptions.YarnRuntimeException;
import org.apache.hadoop.yarn.server.timelineservice.storage.FileSystemTimelineReaderImpl;
import org.apache.hadoop.yarn.server.timelineservice.storage.TimelineReader;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

public class TestTimelineReaderServer {

  @Test
  @Timeout(60000)
  void testStartStopServer() throws Exception {
    @SuppressWarnings("resource")
    TimelineReaderServer server = new TimelineReaderServer();
    Configuration config = new YarnConfiguration();
    config.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
    config.setFloat(YarnConfiguration.TIMELINE_SERVICE_VERSION, 2.0f);
    config.set(YarnConfiguration.TIMELINE_SERVICE_READER_WEBAPP_ADDRESS,
        "localhost:0");
    config.setClass(YarnConfiguration.TIMELINE_SERVICE_READER_CLASS,
        FileSystemTimelineReaderImpl.class, TimelineReader.class);
    try {
      server.init(config);
      assertEquals(STATE.INITED, server.getServiceState());
      assertEquals(2, server.getServices().size());

      server.start();
      assertEquals(STATE.STARTED, server.getServiceState());

      server.stop();
      assertEquals(STATE.STOPPED, server.getServiceState());
    } finally {
      server.stop();
    }
  }

  @Test
  @Timeout(60000)
  void testTimelineReaderServerWithInvalidTimelineReader() {
    assertThrows(YarnRuntimeException.class, () -> {
      Configuration conf = new YarnConfiguration();
      conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
      conf.setFloat(YarnConfiguration.TIMELINE_SERVICE_VERSION, 2.0f);
      conf.set(YarnConfiguration.TIMELINE_SERVICE_READER_WEBAPP_ADDRESS,
          "localhost:0");
      conf.set(YarnConfiguration.TIMELINE_SERVICE_READER_CLASS,
          Object.class.getName());
      runTimelineReaderServerWithConfig(conf);
    });
  }

  @Test
  @Timeout(60000)
  void testTimelineReaderServerWithNonexistentTimelineReader() {
    assertThrows(YarnRuntimeException.class, () -> {
      String nonexistentTimelineReaderClass = "org.apache.org.yarn.server." +
          "timelineservice.storage.XXXXXXXX";
      Configuration conf = new YarnConfiguration();
      conf.setBoolean(YarnConfiguration.TIMELINE_SERVICE_ENABLED, true);
      conf.setFloat(YarnConfiguration.TIMELINE_SERVICE_VERSION, 2.0f);
      conf.set(YarnConfiguration.TIMELINE_SERVICE_READER_WEBAPP_ADDRESS,
          "localhost:0");
      conf.set(YarnConfiguration.TIMELINE_SERVICE_READER_CLASS,
          nonexistentTimelineReaderClass);
      runTimelineReaderServerWithConfig(conf);
    });
  }

  /**
   * Run a TimelineReaderServer with a given configuration.
   * @param conf configuration to run TimelineReaderServer with
   */
  private static void runTimelineReaderServerWithConfig(
      final Configuration conf) {
    TimelineReaderServer server = new TimelineReaderServer();
    try {
      server.init(conf);
      server.start();
    } finally {
      server.stop();
    }
  }

}


text:
<?php

namespace Zikarsky\React\Gearman\Event;

use Zikarsky\React\Gearman\TaskInterface;

class TaskEvent implements TaskEventInterface
{
    protected TaskInterface $task;

    public function __construct(TaskInterface $task)
    {
        $this->task = $task;
    }

    public function getTask(): TaskInterface
    {
        return $this->task;
    }
}


text:
using UnityEngine;
using System.Collections.Generic;

[Prefab]
public class SoundManager : Singleton<SoundManager>
{

    public AudioSource musicAudioSource, sfxAudioSource;
    public string currentMusic;
    public AudioAssets audioAssets;
    public Dictionary<string, AudioClip> sfxNames;

    void Awake()
    {
        sfxNames = new Dictionary<string, AudioClip>();
        foreach (AudioClip a in audioAssets.musics) sfxNames[a.name] = a;
        foreach (AudioClip a in audioAssets.soundEffects) sfxNames[a.name] = a;
        DontDestroyOnLoad(gameObject);
    }

    public void playSfx(string sfxName)
    {
        if (sfxNames.ContainsKey(sfxName))
        {
            sfxAudioSource.PlayOneShot(sfxNames[sfxName]);
        }
        else Debug.LogWarning("Sound " + sfxName + " not found on AudioAssets!");
    }

    public void playMusic(string bgmusic)
    {
        if (sfxNames.ContainsKey(bgmusic))
        {
            musicAudioSource.clip = sfxNames[bgmusic];
            musicAudioSource.loop = true;
            musicAudioSource.Play();
        }
        else Debug.LogWarning("Music " + bgmusic + " not found on AudioAssets!");
    }

    public void stopMusic()
    {
        musicAudioSource.Stop();
    }

    public void stopSfx()
    {
        sfxAudioSource.Stop();
    }

    public void pauseMusic()
    {
        musicAudioSource.Pause();
    }

    public void unpauseMusic()
    {
        musicAudioSource.UnPause();
    }

    public void setSFXVolume(float volume)
    {
        sfxAudioSource.volume = volume;
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Python: module switch_mod.solve</title>
<meta charset="utf-8">

<big><big>switch_mod.solve</big></big>	index
/Users/siah/src/switch/switch_mod/solve.py

<tt>Command line front-end for running the Switch model solver.

Usage:  python -m switch_mod.solve [ARGS]</tt>

<big>Modules</big>

<tt>      </tt>

argparse

os

	pyomo

switch_mod

	sys

<big>Functions</big>

<tt>      </tt>

load(inputs_dir)

main(argv)


text:
void* init_snake( void *snake_init_struct );
void* init_food( void *_map );
void* init_keyboard( void * none );

void spawn_snakes(Map *map, int count, std::list<pthread_t> &threads) {
	for(int i=0; i<count; i++) {
		pthread_t thread;
		threads.push_front(thread);

		// random snake position
		int length = 3+(rand() % 5); // 3-5
		int speed = 2+(rand() % 15);
		int start_x = 1 + (rand() % (map->getWidth()-length-1));

		SnakeInitStruct *sis = new SnakeInitStruct(
			start_x,
			((i+1)*3),
			length,
			speed,
			map
		);

		pthread_create( &thread, NULL, init_snake, (void*) sis);
	}
}

void* init_food( void *_map ) {
	Map *map = (Map*) _map;

	map->spawnFood();
}

void* init_keyboard( void *_quit ) {
	int *quit = (int*) _quit;

	while (1)
	{
	  char c = getch();
	  if(c == 'q') {
	  	*quit = 1;
	  }
	}
}

void* init_snake( void *snake_init_struct ) {
	SnakeInitStruct *sis = (SnakeInitStruct*)snake_init_struct;
	Snake *snake = new Snake(sis->start_x, sis->start_y, sis->length, sis->speed, sis->map);
}

void init_color_sets( void ) {
	init_pair(COLOR_DEFAUL, 0, 0);
	init_pair(COLOR_SNAKE, COLOR_YELLOW, COLOR_RED);
	init_pair(COLOR_WALL, COLOR_RED, COLOR_GREEN);
	init_pair(COLOR_FOOD, COLOR_WHITE, 0);
}

int main() {
	int *quit = new int;
	*quit = 0;

	// reset for future random usage
	srand ( time(NULL) );

	initscr();
	start_color();
	noecho();
	curs_set(0);

	init_color_sets();

	// create threads list
	std::list<pthread_t> threads;

	// create map
	Map *map = new Map(40,40);
	map->draw();

	spawn_snakes(map, 10, threads);

	// helper threads
	pthread_t food, keyboard;
	pthread_create( &food, NULL, init_food, (void*) map);
	pthread_create( &keyboard, NULL, init_keyboard, quit);
	pthread_cond_init(&(Snake::dead),NULL);

	while(!*quit);

	// close threads
	std::list<pthread_t>::iterator it;
	for (it = threads.begin(); it != threads.end(); it++) {
		pthread_cancel(*it);
	}
	pthread_cancel(food);
	pthread_cancel(keyboard);

	for (it = threads.begin(); it != threads.end(); it++) {
		pthread_join(*it,NULL);
	}
	pthread_join(food, NULL);
	pthread_join(keyboard, NULL);

	// destory mutex
	pthread_mutex_destroy(&(Map::mutex));
    pthread_mutex_destroy(&(Snake::mutex));
    pthread_mutex_destroy(&(Snake::dead_mutex));
	endwin();

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>uk.co.exemel.disco</groupId>
        <artifactId>disco-test</artifactId>
        <version>3.3-SNAPSHOT</version>
    </parent>

    <artifactId>disco-ci-test-listener</artifactId>
    <name>${project.artifactId}</name>

    <dependencies>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>${testng.version}</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>uk.co.exemel.disco</groupId>
            <artifactId>disco-test-utils</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>
</project>


text:
We love pull requests from everyone. By participating in this project, you
agree to abide by the lovvedit [code of conduct].

[code of conduct]: https://github.com/lovvedit/lovvedit/blob/master/CODE_OF_CONDUCT.md

Fork, then clone the repo:

```bash
git clone git@github.com:<your_username>/lovvedit.git
```

Make your change. Add tests for your change. Make the tests pass:

```bash
docker-compose exec node yarn test
```

Push to your fork and [submit a pull request][pr].

[pr]: https://github.com/lovvedit/lovvedit/compare/

At this point you're waiting on us. We like to at least comment on pull requests
within three business days (and, typically, one business day). We may suggest
some changes or improvements or alternatives.

Some things that will increase the chance that your pull request is accepted:

* Write tests.
* Follow our [style guide][style].
* Write a [good commit message][commit].

[style]: https://github.com/airbnb/javascript
[commit]: https://chris.beams.io/posts/git-commit/


text:
executable   = ./job_dagman_noop_node-node_conditional.pl
arguments    = $(nodename)
universe     = scheduler
output       = job_dagman_noop_node-$(nodename).out
error        = job_dagman_noop_node-$(nodename).err
log          = job_dagman_noop_node-nodeD.log
Notification = NEVER
queue


text:
package com.xiaomi.smarthome.device.api.spec.operation;

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

public class ActionParam {
    private String did;
    private int siid;
    private int aiid;
    private List<Object> in = new ArrayList<>();
    private List<Object> out = new ArrayList<>();
    private int resultCode = -1;

    public ActionParam() {
    }

    public ActionParam(String did, int siid, int aiid, List<Object> in) {
        this.did = did;
        this.siid = siid;
        this.aiid = aiid;
        this.in = in;
    }

    public String getDid() {
        return did;
    }

    public void setDid(String did) {
        this.did = did;
    }

    public int getSiid() {
        return siid;
    }

    public void setSiid(int siid) {
        this.siid = siid;
    }

    public int getAiid() {
        return aiid;
    }

    public void setAiid(int aiid) {
        this.aiid = aiid;
    }

    public List<Object> getIn() {
        return in;
    }

    public void setIn(List<Object> in) {
        this.in = in;
    }

    public List<Object> getOut() {
        return out;
    }

    public void setOut(List<Object> out) {
        this.out = out;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }
}


text:
package patdroid.core;

import java.lang.reflect.Modifier;

import com.google.common.collect.ImmutableCollection;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import patdroid.util.Log;

import static com.google.common.base.Preconditions.checkState;

/**
 * The class representation. Each class is uniquely identified by its full name.
 * So given a class full name, there is exactly one ClassInfo representing it.
 * ClassInfo works in a late-bind manner with ClassDetail.
 * A ClassInfo could just refer to a type without any details about its methods, fields, etc.
 * Then later on, when the class details become available, a ClassDetail iobject is created and
 * attached to the ClassInfo.
 *

 * ClassInfos are obtained by find-series functions not created by constructors.
 */
public final class ClassInfo {
    private static final ClassDetail MISSING_DETAIL = new ClassDetail.Builder().build();
    public final FullMethodSignature STATIC_INITIALIZER;
    public final FullMethodSignature DEFAULT_CONSTRUCTOR;

    public final Scope scope;
    public final String fullName;
    public ClassDetail mutableDetail = MISSING_DETAIL;

    /**
     * @param scope the scope that this ClassInfo belongs to
     * @param fullName the full name of the class
     */
    public ClassInfo(Scope scope, String fullName) {
        this.scope = scope;
        this.fullName = fullName;
        this.DEFAULT_CONSTRUCTOR = new FullMethodSignature(scope.primitiveVoid, MethodInfo.CONSTRUCTOR, this);
        this.STATIC_INITIALIZER = new FullMethodSignature(scope.primitiveVoid, MethodInfo.STATIC_INITIALIZER);
    }

    /**
     * A framework class is a class that is not found in the apk being parsed
     *

     * Note: this might start class loading if the class is not loaded yet
     * @return if the class is a framework class
     */
    public boolean isFrameworkClass() {
        return mutableDetail.isFrameworkClass;
    }

    /**
     * Sometimes the apk has missing classes. A missing class is not
     * a framework class and cannot be found in the apk
     * @return if this class is missing
     */
    public boolean isMissing() {
        return mutableDetail == MISSING_DETAIL;
    }

    /**
     * Get the type of a non-static field. This functions will look into the base class.
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param fieldName the name of the field.
     * @return the type, or null if not found or the class is missing
     */
    public ClassInfo getFieldType(String fieldName) {
        return mutableDetail.getFieldType(fieldName);
    }

    /**
     * Get the type of a static field. This functions might look into its base class.
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param fieldName the name of the static field
     * @return the type of the static field, or null if not found or the class is missing
     */
    public ClassInfo getStaticFieldType(String fieldName) {
        return mutableDetail.getStaticFieldType(fieldName);
    }

    /**
     * Get all the fields declared in this class.
     *

     * Note: this might start class loading if the class is not loaded yet
     * @return a key-value store mapping field name to their types
     */
    public ImmutableMap<String, ClassInfo> getAllFieldsHere() {
        return mutableDetail.fields;
    }

    /**
     * Get all the static fields declared in this class.
     *

     * Note: this might start class loading if the class is not loaded yet
     * @return a key-value store mapping static field name to their types
     */
    public ImmutableMap<String, ClassInfo> getAllStaticFieldsHere() {
        return mutableDetail.staticFields;
    }

    /**
     *
     * @return all methods in the class
     */
    public ImmutableCollection<MethodInfo> getAllMethods() {
        return mutableDetail.methods.values();
    }

    /**
     * Find a method declared in this class
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param signature the method signature
     * @return the method in this class, or null if not found or the class is missing
     */
    public MethodInfo findMethodHere(FullMethodSignature signature) {
        return mutableDetail.methods.get(signature);
    }

    /**
     * Find all methods that have the give name and are declared in this class
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param name the method name
     * @return an array of methods, or null if the class is missing.
     * An empty array will be returned in case of not finding any method
     */
    public MethodInfo[] findMethodsHere(String name) {
        return mutableDetail.findMethodsHere(name);
    }

    /**
     * Find all methods that have the give name. This might need to look into base classes
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param name the method name
     * @return an array of methods, or null if the class is missing.
     * An empty array will be returned in case of not finding any method
     */
    public MethodInfo[] findMethods(String name) {
        return mutableDetail.findMethods(name);
    }

    /**
     * Find a method with given function prototype. This might need to look into base classes
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param signature the method signature
     * @return  the method representation, or null if not found or the class is missing
     */
    public MethodInfo findMethod(FullMethodSignature signature) {
        return mutableDetail.findMethod(signature);
    }

    /**
     * TypeA is convertible to TypeB if and only if TypeB is an indirect
     * base type or an indirect interface of TypeA.
     *

     * Note: this might start class loading if the class is not loaded yet
     * @param type type B
     * @return if this class can be converted to the other.
     */
    public boolean isConvertibleTo(ClassInfo type) {
        if (type.isPrimitive()) {
            return (type == scope.primitiveVoid || isPrimitive());
        } else {
            return mutableDetail.isConvertibleTo(type);
        }
    }

    @Override
    public String toString() {
        return fullName;
    }

    /**
     * @return if this class is an array type
     */
    public boolean isArray() {
        return fullName.startsWith("[");
    }

    /**
     * Return the element type given this class as an array type.
     * @return the element type
     */
    public ClassInfo getElementClass() {
        checkState(isArray(), "Try getting the element class of a non-array class " + this);
        final char first = fullName.charAt(1);
        switch (first) {
        case 'C': return scope.primitiveChar;
        case 'I': return scope.primitiveInt;
        case 'B': return scope.primitiveByte;
        case 'Z': return scope.primitiveBoolean;
        case 'F': return scope.primitiveFloat;
        case 'D': return scope.primitiveDouble;
        case 'S': return scope.primitiveShort;
        case 'J': return scope.primitiveLong;
        case 'V': return scope.primitiveVoid;
        case 'L': return scope.findOrCreateClass(fullName.substring(2, fullName.length() - 1));
        case '[': return scope.findOrCreateClass(fullName.substring(1));
        default:
            Log.err("unknown element type for:" + fullName);
            return null;
        }
    }

    /**
     *
     * Note: this might cause class loading if the class is not loaded yet
     * @return the base type, or null if this class is java.lang.Object
     */
    public ClassInfo getBaseType() {
        return mutableDetail.baseType;
    }

    /**
     * Get the interfaces that the current class implements
     * @return interfaces
     */
    public ImmutableList<ClassInfo> getInterfaces() { return mutableDetail.interfaces; }

    /**
     * Change the super class of this class to a new super class, the
     * derivedClasses will be updated accordingly.
     * @param baseType new super class for this class
     */
    public void setBaseType(ClassInfo baseType) {
        ClassDetail origDetails = mutableDetail;
        origDetails.removeDerivedClasses(this);
        mutableDetail = origDetails.changeBaseType(baseType);
        mutableDetail.updateDerivedClasses(this);
    }

    /**
     * @return if this class is an inner class
     */
    public boolean isInnerClass() {
        return fullName.lastIndexOf('$') != -1;
    }

    /**
     * @return the outer class
     */
    public ClassInfo getOuterClass() {
        checkState(isInnerClass(), "Try getting the outer class from a non-inner class" + this);
        return scope.findOrCreateClass(fullName.substring(0, fullName.lastIndexOf('$')));
    }

    /**
     * @return true if the class is a primitive type
     */
    public boolean isPrimitive() {
        return scope.primitives.contains(this);
    }

    /**
     * @return if the class is final
     */
    public boolean isFinal() {
        return Modifier.isFinal(mutableDetail.accessFlags);
    }

    /**
     * @return if the class is an interface
     */
    public boolean isInterface() {
        return Modifier.isInterface(mutableDetail.accessFlags);
    }

    public boolean isAbstract() {
        return Modifier.isAbstract(mutableDetail.accessFlags);
    }

    /**
     * Get the default constructor
     *

     * Note: this might start class loading if the class is not loaded yet
     * @return the default constructor, or null if not found
     */
    public MethodInfo getDefaultConstructor() {
        return findMethodHere(DEFAULT_CONSTRUCTOR);
    }

    /**
     * Find the static initializer method of the class
     *

     * Note: this might start class loading if the class is not loaded yet
     * @return the static initializer or null if not found
     */
    public MethodInfo getStaticInitializer() {
        return findMethod(STATIC_INITIALIZER);
    }

    /**
     * Get the short name of the class. The short name is the part after the last
     * '.' in the full name of the class
     * @return the short name
     */
    public String getShortName() {
        final int idx = fullName.lastIndexOf('.');
        if (idx == -1) {
            return fullName;
        } else {
            return fullName.substring(idx+1, fullName.length());
        }
    }

    /**
     * An almost final class has no derived classes in the current class tree
     * @return if a class is "almost final"
     */
    public boolean isAlmostFinal() {
        return mutableDetail.derivedClasses.isEmpty();
    }
}


text:
/**
 *
 * BVH-Objects are only the Nodes and Leafs of a BVHTree.
 *
 * They only have the raycasting function and the data information of Nodes and Leafs.
 * All other functions to create and manage the tree must be put in the different BVHTree-Managers.
 *
 */

THREE.BVH = {};

THREE.BVH.TreeNode = function ( parentNode ) {
		'use strict';

		this.parentNode = (parentNode !== undefined ? parentNode : null);
		this.childNodes	= [];

		this.boundingBox		= null;
		this.boundingSphere		= null;

};

THREE.BVH.TreeNode.prototype = {

	constructor	: THREE.BVHTreeNode,

	intersectsRay : function ( ray, precision, near, far, intersects ) {
		'use strict';

		var hit, i, l;

		// test if the ray hits our node.
		if (this.boundingBox) {

			hit = ray.isIntersectionBox( this.boundingBox );

		} else if (this.boundingSphere) {

			hit = ray.isIntersectionSphere( this.boundingSphere ) ;

		} else {

			throw('Bounding volume is not set or not yet supported from the intersectRay function.');

		}

		// if the ray hits the bounding volume we ned to test the child nodes.
		if (hit) {

			for (i = 0, l = this.childNodes.length; i < l; i+=1) {

				this.childNodes[i].intersectsRay( ray, precision, near, far, intersects );

			}

		}

	}

};

THREE.BVH.FaceLeaf = function(parentNode) {
	'use strict';

	this.parentNode = (parentNode !== undefined ? parentNode : null);

	this.mesh		= null;
	this.faceIndex	= null;
	this.bufferGeometryIndexOffset = 0;

	this.boundingSphere		= null;
	this.boundingBox		= null;
};

THREE.BVH.FaceLeaf.prototype = {

	constructor	: THREE.BVHTreeLeaf_Face,

	// Test if the ray hit the face.
	intersectsRay : function ( ray, precision, near, far, intersects ) {

		this.mesh.rayIntersectsFace(this.faceIndex, this.bufferGeometryIndexOffset, ray, precision, near, far,  intersects)

	}

};


text:
<?php
declare(strict_types=1);

namespace PhpMultiCurl;

use PhpMultiCurl\Helper\Queue;
use PhpMultiCurl\Thread\Manager as ThreadsManager;

final class PhpMultiCurl
{
    private $numberOfThreads = 1;

    public function setNumberOfThreads(int $number): void
    {
        $this->numberOfThreads = $number > 0 ? $number : 1;
    }

    public function getNumberOfThreads(): int
    {
        return $this->numberOfThreads;
    }

    public function executeTasks(Queue $queue): bool
    {
        if ($queue->count() === 0) {
            throw new \LogicException('Task queue can not be empty');
        }

        $manager = new ThreadsManager($this->getNumberOfThreads());
        $manager->executeLoop($queue);

        return true;
    }
}


text: Förderverein zur Pflege der niederländischen Kultur in Potsdam e.V., Fotografin Alie Ziel


text:
class Dla():
    def __init__(self, central_wavelength, col_density=0):
        self.central_wavelength = central_wavelength        # spectrum
        self.col_density = col_density


text:
class Main {

  public static void main(String[] args) {
    Practice pr = new Practice();
    pr.randomNum();
    pr.switchTest();
    pr.doTest();
    pr.stringArTest();
  }

}


text:
package com.marcinjasinski.sshpasswords.core.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.marcinjasinski.sshpasswords.core.enums.AttackResult;
import com.marcinjasinski.sshpasswords.core.map.AttackResultJsonSerialize;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Class PositionResult
 *
 * @author Marcin Jasiński {@literal <mkjasinski@gmail.com>}
 */
@Entity
@Table(name = "position_result", schema = "public")
public class PositionResult extends BaseEntity {

    @Column(name = "attack_result", nullable = false)
    @Enumerated(EnumType.STRING)
    @JsonSerialize(using = AttackResultJsonSerialize.class)
    private AttackResult attackResult;

    @Column(name = "message")
    private String message;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "position_id")
    private Position position;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "password_id")
    private Password password;

    @Column(name = "created_date", nullable = false)
    private Date createdDate = new Date();

    public PositionResult() {
    }

    public PositionResult(Long id) {
        super(id);
    }

    public AttackResult getAttackResult() {
        return attackResult;
    }

    public void setAttackResult(AttackResult attackResult) {
        this.attackResult = attackResult;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Position getPosition() {
        return position;
    }

    public void setPosition(Position position) {
        this.position = position;
    }

    public Password getPassword() {
        return password;
    }

    public void setPassword(Password password) {
        this.password = password;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    @Override
    public String toString() {
        return "PositionResult{" +
               "attackResult=" + attackResult +
               ", message='" + message + '\'' +
               ", position=" + position +
               ", password=" + password +
               ", createdDate=" + createdDate +
               '}';
    }
}