text:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="tr">
<context>
    <name>MainUI</name>
    <message>
        <location filename="../MainUI.ui" line="14"/>
        <location filename="../MainUI.ui" line="24"/>
        <location filename="../MainUI.cpp" line="97"/>
        <source>File Information</source>
        <translation>Dosya Bilgisi</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="56"/>
        <source>Owner:</source>
        <translation>Sahibi:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="73"/>
        <source>Group:</source>
        <translation>Grup:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="90"/>
        <source>Permissions:</source>
        <translation>İzinler:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="104"/>
        <source>Created:</source>
        <translation>Oluşturulma:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="111"/>
        <source>Note: The time a file was created might be more recent than the time modified if the file permissions were changed recently.</source>
        <translation>Not: Dosya izinleri yakın zamanda değiştirildiyse, dosyanın oluşturulma zamanı değiştirilme zamanından daha yeni olabilir.</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="124"/>
        <source>Last Modified:</source>
        <translation>Son Değiştirme:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="131"/>
        <source>Type:</source>
        <translation>Tür:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="138"/>
        <source>MimeType:</source>
        <translation>MimTürü:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="185"/>
        <source>File Size:</source>
        <translation>Dosya Boyutu:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="216"/>
        <location filename="../MainUI.cpp" line="140"/>
        <source>Edit Shortcut</source>
        <translation>Kısayolu Düzenle</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="239"/>
        <source>Working Dir:</source>
        <translation>Çalışma Dizini:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="246"/>
        <source>Use startup notification</source>
        <translation>Başlangıç bildirimi kullan</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="260"/>
        <source>Icon:</source>
        <translation>Simge:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="267"/>
        <source>Command:</source>
        <translation>Komut:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="274"/>
        <source>Comment:</source>
        <translation>Açıklama:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="284"/>
        <source>Run in terminal</source>
        <translation>Uçbirimde çalıştır</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="291"/>
        <source>Name:</source>
        <translation>Ad:</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="298"/>
        <source>Options</source>
        <translation>Seçenekler</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="336"/>
        <source>No Icon</source>
        <translation>Simge Yok</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="392"/>
        <source>Save</source>
        <translation>Kaydet</translation>
    </message>
    <message>
        <location filename="../MainUI.ui" line="405"/>
        <source>Close</source>
        <translation>Kapat</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="61"/>
        <source>---Calculating---</source>
        <translation>---Hesaplanıyor---</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="70"/>
        <source>Read/Write</source>
        <translation>Oku/Yaz</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="71"/>
        <source>Read Only</source>
        <translation>Salt Okunur</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="72"/>
        <source>Write Only</source>
        <translation>Salt Yazılır</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="73"/>
        <source>No Access</source>
        <translation>Erişim yok</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="77"/>
        <source>XDG Shortcut</source>
        <translation>XDG Kısayolu</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="78"/>
        <source>Directory</source>
        <translation>Dizin</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="79"/>
        <source>Binary</source>
        <translation>İkili</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="81"/>
        <source>Hidden %1</source>
        <translation>Gizli %1</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="126"/>
        <source>URL:</source>
        <translation>URL:</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="249"/>
        <source>Save Application File</source>
        <translation type="unfinished"></translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="249"/>
        <source>Application Registrations (*.desktop)</source>
        <translation type="unfinished"></translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="290"/>
        <source>Select a binary</source>
        <translation>Bir ikili seç</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="293"/>
        <source>Error</source>
        <translation>Hata</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="293"/>
        <source>Invalid selection: Not a valid executable</source>
        <translation>Geçersiz seçim: Geçerli bir yürütülebilir değil</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="305"/>
        <source>Select a directory</source>
        <translation>Bir dizin seç</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="318"/>
        <source>Select an icon</source>
        <translation>Bir simge seç</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="318"/>
        <source>Images (%1);; All Files (*)</source>
        <translation>Görüntüler (%1);; Tüm Dosyalar (*)</translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="341"/>
        <location filename="../MainUI.cpp" line="343"/>
        <source> Folders: </source>
        <translation> Klasörler: </translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="341"/>
        <location filename="../MainUI.cpp" line="343"/>
        <source>Files: </source>
        <translation>Dosyalar: </translation>
    </message>
    <message>
        <location filename="../MainUI.cpp" line="343"/>
        <source>  Calculating...</source>
        <translation>  Hesaplanıyor...</translation>
    </message>
</context>
</TS>


text:
import test from 'ava';

import shell from '..';
import common from '../src/common';
import utils from './utils/utils';

shell.config.silent = true;

//
// Invalids
//

test('too few args', t => {
  t.throws(() => {
    common.expand();
  }, TypeError);
});

test('should be a list', t => {
  t.throws(() => {
    common.expand('resources');
  }, TypeError);
});

//
// Valids
//

test('single file, array syntax', t => {
  const result = common.expand(['resources/file1.txt']);
  t.falsy(shell.error());
  t.deepEqual(result, ['resources/file1.txt']);
});

test('multiple file, glob syntax, * for file name', t => {
  const result = common.expand(['resources/file*.txt']);
  t.falsy(shell.error());
  t.deepEqual(result.sort(), ['resources/file1.txt', 'resources/file2.txt'].sort());
});

test('multiple file, glob syntax, * for directory name', t => {
  const result = common.expand(['r*/file*.txt']);
  t.falsy(shell.error());
  t.deepEqual(result.sort(), ['resources/file1.txt', 'resources/file2.txt'].sort());
});

test('multiple file, glob syntax, ** for directory name', t => {
  const result = common.expand(['resources/**/file*.js']);
  t.falsy(shell.error());
  t.deepEqual(
    result.sort(),
    ['resources/file1.js', 'resources/file2.js', 'resources/ls/file1.js', 'resources/ls/file2.js'].sort()
  );
});

test('broken links still expand', t => {
  const result = common.expand(['resources/b*dlink']);
  t.falsy(shell.error());
  t.deepEqual(result, ['resources/badlink']);
});

test('common.parseOptions (normal case)', t => {
  const result = common.parseOptions('-Rf', {
    R: 'recursive',
    f: 'force',
    r: 'reverse',
  });

  t.truthy(result.recursive);
  t.truthy(result.force);
  t.falsy(result.reverse);
});

test('common.parseOptions (with mutually-negating options)', t => {
  const result = common.parseOptions('-f', {
    n: 'no_force',
    f: '!no_force',
    R: 'recursive',
  });

  t.falsy(result.recursive);
  t.falsy(result.no_force);
  t.is(result.force, undefined); // this key shouldn't exist
});

test(
  'common.parseOptions (the last of the conflicting options should hold)',
  t => {
    const options = {
      n: 'no_force',
      f: '!no_force',
      R: 'recursive',
    };
    let result = common.parseOptions('-fn', options);
    t.false(result.recursive);
    t.truthy(result.no_force);
    t.is(result.force, undefined); // this key shouldn't exist
    result = common.parseOptions('-nf', options);
    t.false(result.recursive);
    t.false(result.no_force);
    t.is(result.force, undefined); // this key shouldn't exist
  }
);

test('common.parseOptions using an object to hold options', t => {
  const result = common.parseOptions({ '-v': 'some text here' }, {
    v: 'value',
    f: 'force',
    r: 'reverse',
  });

  t.is(result.value, 'some text here');
  t.false(result.force);
  t.false(result.reverse);
});

test('Some basic tests on the ShellString type', t => {
  const result = shell.ShellString('foo');
  t.is(result.toString(), 'foo');
  t.is(result.stdout, 'foo');
  t.is(typeof result.stderr, 'undefined');
  t.truthy(result.to);
  t.truthy(result.toEnd);
});

test.cb('Commands that fail will still output error messages to stderr', t => {
  const script = 'require(\'../global\'); ls(\'noexist\'); cd(\'noexist\');';
  utils.runScript(script, (err, stdout, stderr) => {
    t.is(stdout, '');
    t.is(
      stderr,
      'ls: no such file or directory: noexist\ncd: no such file or directory: noexist\n'
    );
    t.end();
  });
});

redpajama_set_name: RedPajamaGithub


text:
import enUS from './en-us';
import zhCN from './zh-cn';
export * from './index.d';

export default { enUS, zhCN };


text:
package org.apache.logging.log4j.mongodb4;

import org.apache.logging.log4j.Level;
import org.bson.BsonReader;
import org.bson.BsonWriter;
import org.bson.codecs.Codec;
import org.bson.codecs.DecoderContext;
import org.bson.codecs.EncoderContext;

/**
 * A BSON {@link Codec} for Log4j {@link Level}s.
 */
public class MongoDb4LevelCodec implements Codec<Level> {

    /**
     * The singleton instance.
     */
    public static final MongoDb4LevelCodec INSTANCE = new MongoDb4LevelCodec();

    @Override
    public Level decode(final BsonReader reader, final DecoderContext decoderContext) {
        return Level.getLevel(reader.readString());
    }

    @Override
    public void encode(final BsonWriter writer, final Level level, final EncoderContext encoderContext) {
        writer.writeString(level.name());
    }

    @Override
    public Class<Level> getEncoderClass() {
        return Level.class;
    }

}


text:
package org.ado.minesync.mock;

import org.ado.minesync.TestFileUtils;
import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

import static org.ado.atf.Config.APPLICATION_CACHE_DIR;
import static org.ado.minesync.minecraft.MinecraftConstants.MINECRAFT_WORLDS;

/**
 * Created with IntelliJ IDEA.
 * User: andoni
 * Date: 20/10/13
 * Time: 11:08
 * To change this template use File | Settings | File Templates.
 */
public class MockMinecraftWorldFactory extends TestFileUtils {

    public static final File TMP_DIR = new File(System.getProperty("java.io.tmpdir"));

    public static File createWorld(String name) throws IOException {
        File worldDirectory = new File(MINECRAFT_WORLDS, name);
        FileUtils.forceMkdir(worldDirectory);
        addFile(worldDirectory, "mockworld/chunks.dat");
        addFile(worldDirectory, "mockworld/entities.dat");
        addFile(worldDirectory, "mockworld/level.dat");
        addFile(worldDirectory, "mockworld/level.dat_old");
        addFile(worldDirectory, "mockworld/players/197445472.dat");
        return worldDirectory;
    }

    public static File getMockZippedWorld(String filename) throws IOException {
//        File mockWorld = File.createTempFile("mock", "world");
//        mockWorld.createNewFile();
        File destination = new File(APPLICATION_CACHE_DIR, filename);
        FileUtils.copyURLToFile(getResource("bbbb-see-view.zip"), destination);
        return destination;
    }

}


text:
<!DOCTYPE html>

	<link href="js/bootstrap.min.css" rel="stylesheet"type="text/css">
	<link href="css/moncss.css" rel="stylesheet"type="text/css">

	<title>Comparison of regular expression engines - API features</title>
	<meta charset="utf-8">

Comparison of regular expression engines - API features

			<fieldset>

					<form action="" method="post">
						<legend style="color:red;font-weight: bold;font-style:italic;text-align: center;" >Formulaire</legend>

								Native UTF-8 support :

 <input type="radio" name="FeatureNative UTF-8 support" value="oui">Yes <input type="radio" name="FeatureNative UTF-8 support" value = "non">No <input type="radio" name="FeatureNative UTF-8 support" value = "non">Partial

								Partial match :
 <input id="0" type="text" name="Feature">

								Native UTF-16 support :

 <input type="radio" name="FeatureNative UTF-16 support" value="oui">Yes <input type="radio" name="FeatureNative UTF-16 support" value = "non">No <input type="radio" name="FeatureNative UTF-16 support" value = "non">Partial

								Multi-line matching :

 <input type="radio" name="FeatureMulti-line matching" value="oui">Yes <input type="radio" name="FeatureMulti-line matching" value = "non">No <input type="radio" name="FeatureMulti-line matching" value = "non">Partial

<input type="submit" class="btn btn-info" value="Ajouter un produit" />
					</form>

			</fieldset>


text:
package com.meinv.interactor;

/**
 * Author:  Tau.Chen
 * Email:   1076559197@qq.com | tauchen1990@gmail.com
 * Date:    2015/7/16.
 * Description:
 */
public interface GetVideoUserInteractor {

    public void getVideoUser(String requestTag, int user_id);
}


text:
"""
Contains common test fixtures used to run AWS Security Token Service (AWS STS) tests.
"""

import sys
import pytest
# This is needed so Python can find test_tools on the path.
sys.path.append('../../..')
from test_tools.fixtures.common import *

@pytest.fixture
def unique_names():
    return {
        'user': 'test-user',
        'role': 'test-role',
        'policy': 'test-policy',
        'user-policy': 'test-user-policy',
        'mfa': 'test-mfa'
    }


text:
<!DOCTYPE html>
<html>
 <head>
  <title>CSS Test Reference</title>
  <link rel="author" title="L. David Baron" href="https://dbaron.org/">
  <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/">
  <style>
   body { background: lime; color: black; }
  </style>
 </head>
 <body>
   This page should have a light green background.
 </body>
</html>


text:
/* --- AUTOGENERATED FILE -----------------------------
* If you make changes to this file delete this comment.
* Otherwise the file may be overwritten in the future.
* --------------------------------------------------- */

const { mergeLocMatchGroups } = require('../lib/matching/utils');
const { regexMatchLocs } = require('../lib/matching/regexMatch');

const allSetSrc = {
  type: 'website',
  url: 'https://resources.allsetlearning.com/chinese/grammar/ASG6ZI8L',
  name: 'AllSet Chinese Grammar Wiki',
};

module.exports = {
  id: 'wulun',
  structures: ['无论 + Circumstances + 都 / 也 + Inevitable Result'],
  description:
    '无论 (wúlùn)  means "no matter," and is generally used in the first part of the sentence. As with many other constructions, 都 and 也 can be used in the second part of the sentence to emphasize the action or decision will not change. It is more formal than 不管.',
  sources: [allSetSrc],
  match: sentence =>
    mergeLocMatchGroups([regexMatchLocs(sentence.text, /(无论)[^都也,]+((?:都|也|,))/)]),
  examples: [
    {
      zh: '无论怎么样,他都会放弃,别高估他。',
      en: "No matter what it's like, he will give up. Don't overestimate him.",
      src: allSetSrc,
    },
    {
      zh: '无论多么成功,他总觉得自己不够好。',
      en: "No matter how successful he is, he always thinks he isn't enough.",
      src: allSetSrc,
    },
    {
      zh: '无论你到哪儿我都会跟着你。',
      en: 'Wherever you go, I will follow you.',
      src: allSetSrc,
    },
    {
      zh: '无论你说还是不说,结果都一样。',
      en: 'Whatever you say, the result will be the same.',
      src: allSetSrc,
    },
  ],
};


text:
import * as chai from "chai";
import { SimpleLogger } from "../src";

const expect = chai.expect;

describe("Simple Logger", () => {
    let simpleLogger: SimpleLogger;

    beforeEach(() => {
        simpleLogger = new SimpleLogger();
    });

    it("should be created with an empty log", () => {
        expect(simpleLogger.getLog()).to.be.an("array").that.is.empty;
    });

    it("should add entries to the log", () => {
        const numberOfEntries = 12;

        for (let i = 0; i < numberOfEntries; i++) {
            simpleLogger.log("message" + i);
        }

        expect(simpleLogger.getLog().length).to.equal(numberOfEntries);
    });

    it("should be able to clear the log", () => {
        const numberOfEntries = 18;

        for (let i = 0; i < numberOfEntries; i++) {
            simpleLogger.log("message" + i);
        }

        expect(simpleLogger.getLog().length).to.equal(numberOfEntries);

        simpleLogger.clearLog();

        expect(simpleLogger.getLog()).to.be.an("array").that.is.empty;
    });
});


text:
At frontend (dark template required), simply add virtual tag to your form:

```html
<dark:use bundle="spiral:google-maps-bundle"/>
...
<form:google-maps key="yourGoogleMapsAPIKey"
                    style="width: 100%; height: 300px;"
                    lat="53.9045398" lng="27.561524400000053"
                    name-lat="location[latitude]" name-lng="location[longitude]"
                    zoom="14" marker="true" editable="true" search="true"/>
```
The code above will be transformed into html and will add required javascript.
Result html:
```html
<div class="js-sf-google-maps"
data-key="yourGoogleMapsAPIKey"
style="width: 100%; height: 300px;"
data-lat="53.9045398" data-lng="27.561524400000053"
data-name-lat="location[latitude]" data-name-lng="location[longitude]"
data-zoom="10" data-marker="true" data-editable="true" data-search="true">...google's code...</div>
```
Browser output:
![google map](https://cloud.githubusercontent.com/assets/5582266/12549495/b3946bb0-c36e-11e5-98eb-c67b0baee2e9.png)

## Options

* key (required) -- Google Maps API key
* lat (required) -- latitude
* lng (required) -- longitude
* name-lat (required) -- name for latitude data in hidden input (to send in form)
* name-lng (required) -- name for longitude data in hidden input (to send in form)
* zoom (optional, default = 13) -- initial zoom level
* marker (optional, default = false) -- show marker
* editable (optional, default = false) -- allow marker to be dragged
* search (optional, default = false) -- show search input on map

## Note
Please provide container size, because Google maps require some with and height of container.
`style="width: 100%; height: 300px;"`

## Local Development

### Installation

    npm install

### Building

    gulp build

## License

Copyright (c) 2016 Alex Chepura and contributors. Released under an [MIT license](https://github.com/spiral-modules/google-maps/blob/master/LICENSE).


text:
/**
 * Support titles, line highlights and more for code blocks
 */

const visit = require('unist-util-visit')
const parseAttr = require('md-attr-parser')

const defaultOptions = {
    defaultPrefix: '###',
    prefixMap: {
        javascript: '///',
        jsx: '///',
    },
    languageAliases: {},
    githubRegex: /^https:\/\/(github|raw.githubusercontent).com/,
    prompts: ['$'],
}

module.exports = ({ markdownAST }, userOptions = {}) => {
    const options = Object.assign({}, defaultOptions, userOptions)
    visit(markdownAST, 'code', node => {
        if (node.value) {
            const langName = node.lang || 'none'
            const lang = options.languageAliases[langName] || langName
            const prefix = options.prefixMap[lang] || options.defaultPrefix
            const lines = node.value.split('\n')
            let attrs = { lang }
            const firstLine = lines[0].trim()
            if (firstLine && firstLine.startsWith(prefix)) {
                const title = firstLine.slice(prefix.length).trim()
                attrs.title = title
                // Check for attributes in title, e.g. {executable="true"}
                const parsed = title.split(/\{(.*?)\}/)
                if (parsed.length >= 2 && parsed[1]) {
                    const { prop } = parseAttr(parsed[1])
                    attrs = { ...attrs, ...prop, title: parsed[0].trim(), lang }
                }
                // Overwrite the code text with the rest of the lines
                node.value = lines.slice(1).join('\n')
            } else if (firstLine && options.githubRegex.test(firstLine)) {
                // GitHub URL
                attrs.github = 'true'
            }
            // If it's a bash code block and single line, check for prompts
            if (lang === 'bash') {
                const [trueFirstLine, ...trueLines] = node.value.split('\n')
                for (let prompt of options.prompts) {
                    if (trueFirstLine.startsWith(prompt)) {
                        const content = [trueFirstLine.slice(prompt.length).trim(), ...trueLines]
                        attrs.prompt = prompt
                        node.value = content.join('\n')
                        break
                    }
                }
            }
            const data = node.data || (node.data = {})
            const hProps = data.hProperties || (data.hProperties = {})
            node.data.hProperties = Object.assign({}, hProps, attrs)
        }
    })
    return markdownAST
}


text:
Article 1096
----
La donation de biens à venir faite entre époux pendant le mariage est toujours
révocable.

La donation de biens présents qui prend effet au cours du mariage faite entre
époux n'est révocable que dans les conditions prévues par les articles 953 à
958.

Les donations faites entre époux de biens présents ou de biens à venir ne sont
pas révoquées par la survenance d'enfants.


text:
/**
* Game Over!!!
*/
CubeGame.GameOver = function() {
};
CubeGame.GameOver.prototype = {
    evaluateHiscore: function() {
        var hiscore = 0;
        var curHiscore = CubeGame.DataManager.getHiscore();
        var curScore = CubeGame.Score;
        if (curScore > curHiscore) {
            hiscore = curScore;
        }
        else hiscore = curHiscore;
        console.log(hiscore);
        return hiscore;
    },
    preload: function() {
    },
    create: function() {
        this.initGameOverMenu();
        this.initGameOverTweens();
    },
    initGameOverMenu: function() {
        this.game.stage.backgroundColor = "#eeeeee";

        // Group contains elements that show score.
        this.gameOverGroup = this.game.add.group();
        this.buttonsGroup = this.game.add.group();

        var hiscore = this.evaluateHiscore();
        var newHiscore = false;
        if (hiscore !== CubeGame.DataManager.getHiscore()) {
            CubeGame.DataManager.setHiscore(hiscore);
            newHiscore = true;
        }

        this.scoreIsText = CubeGame.factory.addText(150, 50, "The score is...", 30, "#5f5f5f");
        // Score text
        var scoreStr = CubeGame.Score.toString()+" pts";
        var hiscoreStr = "Hiscore: " + CubeGame.DataManager.getHiscore() +" pts";

        if (newHiscore) {
            this.newHiscoreText = CubeGame.factory.addText(500, 270, "New Hiscore!!!", 30, "#3498db");
            this.newHiscoreText.anchor.setTo(0.5, 0.5);
            this.newHiscoreText.angle = -10;
            this.newHiscoreTextTween = this.game.add.tween(this.newHiscoreText.scale)
                .to({x: 1.2,  y: 1.2}, 500).to({x: 1,  y: 1}, 500).loop(true).start();
        }

        this.scoreText = CubeGame.factory.addText(150, 120, scoreStr, 120, "#3498db");

        this.hiscoreText = CubeGame.factory.addText(150, 300, hiscoreStr, 30, "#5f5f5f");

        // Add these elements to the group
        if (newHiscore) {
            this.gameOverGroup.add(this.newHiscoreText);
        }
        this.gameOverGroup.add(this.scoreIsText);
        this.gameOverGroup.add(this.scoreText);
        this.gameOverGroup.add(this.hiscoreText);
    },
    initGameOverTweens: function() {
        this.gameOverSlideIn = this.game.add.tween(this.gameOverGroup).from({x:-300}, 200, Phaser.Easing.Sinusoidal.Out).start();

        this.replayButton = this.game.add.button(300, 400, "Textures", this.startPlay, this);
        this.replayButton.frameName = "PlayButton";
        this.menuButton = this.game.add.button(500, 400, "Textures", this.gotoMenu, this);
        this.menuButton.frameName = "MenuButton";
        this.buttonsGroup.add(this.replayButton);
        this.buttonsGroup.add(this.menuButton);

        this.buttonsSlideIn = this.game.add.tween(this.buttonsGroup).from({x:this.game.width + 200}, 500, Phaser.Easing.Sinusoidal.Out).start();
    },
    startPlay: function() {
        this.game.state.start("Play");
    },
    gotoMenu: function() {
        this.game.state.start("Menu");
    },
    update: function() {

    }
};


text:
layout: post
title: Trojrozměr
---

Zajímá Vás kultura Neslyšících? Chcete zažít zábavu a naučit se český znakový jazyk? Pak je Trojrozměr místo právě pro Vás!

##Trojrozměr
[Trojrozměr](http://www.trojrozmer.cz/) je brněnské občanské sdružení založené Neslyšícími. Jejich cílem a posláním je pořádat kurzy Českého znakového jazyka a rozšiřovat tak znalost mezi slyšícími lidmi.

Název Trojrozměr vychází z trojrozměrnosti znakového jazyka, což je jeho přirozená vlastnost.

(https://github.com/janafolkova/Elnessa.github.io/blob/master/images/Trojrozm%C4%9Br.jpg)

##Kurzy českého znakového jazyka
Brněnské centrum Trojrozměr nabízí kurzy českého znakového jazyka, což je v podstatě mateřský jazyk lidí, kteří jsou od narození nebo od raného věku neslyšící. Se znalostí znakového jazyka se můžete úplatnit nejen jako tlumočníci, ale i jako vyučující neslyšících nebo v různcýh organizacích neslyšících. Všechny kurzy vedou neslyšící lektoři, kteří mají několikaleté zkušenosti.

Jdete do toho? Přihlásit se můžete [zde](http://www.trojrozmer.cz/?kategorie=kurzy&podkategorie=prihlaska).

Obrázek zdroj: https://www.facebook.com/268979794619/photos/a.425144194619.231427.268979794619/10152537478564620/?type=3&theater


text:
@interface NewsFeedDataSource (Private)

- (void)setCache:(NSArray *)aCache;

@end

@implementation NewsFeedDataSource

@synthesize delegate;
@synthesize cache;

- (void)dealloc
{
    [service release];
    [cache release];
    [super dealloc];
}

#pragma mark Initialization

- (id)initWithNewsFeedService:(LighthouseNewsFeedService *)aService
                        cache:(NSArray *)aCache
{
    if (self = [super init]) {
        service = [aService retain];
        service.delegate = self;

        [self setCache:aCache];
        needsUpdating = YES;
    }

    return self;
}

#pragma mark Fetching current data

- (NSArray *)currentNewsFeed
{
    return cache;
}

#pragma mark Updating the contained data

- (BOOL)fetchNewsFeedIfNecessary
{
    if (needsUpdating)
        [service fetchNewsFeed];

    return needsUpdating;
}

- (void)refreshNewsFeed
{
    needsUpdating = YES;
    [self fetchNewsFeedIfNecessary];
}

#pragma mark LighthouseNewsFeedServiceDelegate implementation

- (void)fetchedNewsFeed:(NSArray *)newsFeed
{
    needsUpdating = NO;
    [self setCache:newsFeed];
    [delegate newsFeedUpdated:newsFeed];
}

- (void)failedToFetchNewsFeed:(NSError *)error
{
    [delegate failedToUpdateNewsFeed:error];
}

#pragma mark Accessors

- (LighthouseCredentials *)credentials
{
    return [service credentials];
}

- (void)setCredentials:(LighthouseCredentials *)credentials
{
    [service setCredentials:credentials];
}

- (void)setCache:(NSArray *)aCache
{
    NSArray * tmp = [aCache copy];
    [cache release];
    cache = tmp;
}

@end


text:
namespace Microsoft.Protocols.TestSuites.Common
{
    using System;
    using System.Runtime.InteropServices;

    /// <summary>
    /// RopIdFromLongTermId request buffer structure.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct RopIdFromLongTermIdRequest : ISerializable
    {
        /// <summary>
        /// This value specifies the type of remote operation. For this operation, this field is set to 0x44.
        /// </summary>
        public byte RopId;

        /// <summary>
        /// This value specifies the logon associated with this operation.
        /// </summary>
        public byte LogonId;

        /// <summary>
        /// This index specifies the location in the Server Object Handle Table where the handle for the input Server Object is stored.
        /// </summary>
        public byte InputHandleIndex;

        /// <summary>
        /// LongTermId structure. The structure specifies the long-term ID to be converted to a short-term ID.
        /// The format of the LongTermId structure is specified in [MS-OXCDATA] section 2.2.1.3.1.
        /// </summary>
        public LongTermId LongTermId;

        /// <summary>
        /// Serialize the ROP request buffer.
        /// </summary>
        /// <returns>The ROP request buffer serialized.</returns>
        public byte[] Serialize()
        {
            int index = 0;
            byte[] serializeBuffer = new byte[this.Size()];
            serializeBuffer[index++] = this.RopId;
            serializeBuffer[index++] = this.LogonId;
            serializeBuffer[index++] = this.InputHandleIndex;

            Array.Copy(this.LongTermId.Serialize(), 0, serializeBuffer, index, this.LongTermId.Size());
            index += this.LongTermId.Size();

            return serializeBuffer;
        }

        /// <summary>
        /// Return the size of this structure.
        /// </summary>
        /// <returns>The size of this structure.</returns>
        public int Size()
        {
            int size = sizeof(byte) * 3;
            size += this.LongTermId.Size();
            return size;
        }
    }

    /// <summary>
    /// RopIdFromLongTermId response buffer structure.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct RopIdFromLongTermIdResponse : IDeserializable
    {
        /// <summary>
        /// This value specifies the type of remote operation. For this operation, this field is set to 0x44.
        /// </summary>
        public byte RopId;

        /// <summary>
        /// This index MUST be set to the InputHandleIndex specified in the request.
        /// </summary>
        public byte InputHandleIndex;

        /// <summary>
        /// This value specifies the status of the remote operation. For this response, this field is set to 0x00000000.
        /// </summary>
        public uint ReturnValue;

        /// <summary>
        /// This value specifies the short-term ID that was converted from the long-term ID,
        /// which is specified in the LongTermId field of the request.
        /// </summary>
        public ulong ObjectId;

        /// <summary>
        /// Deserialize the ROP response buffer.
        /// </summary>
        /// <param name="ropBytes">ROPs bytes in response.</param>
        /// <param name="startIndex">The start index of this ROP.</param>
        /// <returns>The size of response buffer structure.</returns>
        public int Deserialize(byte[] ropBytes, int startIndex)
        {
            int index = startIndex;
            this.RopId = ropBytes[index++];
            this.InputHandleIndex = ropBytes[index++];
            this.ReturnValue = (uint)BitConverter.ToInt32(ropBytes, index);
            index += sizeof(uint);

            // Only success response has below fields
            if (this.ReturnValue == 0)
            {
                this.ObjectId = (ulong)BitConverter.ToInt64(ropBytes, index);
                index += sizeof(ulong);
            }

            return index - startIndex;
        }
    }
}


text:
layout: doc
title: Tagging - iD editor
permalink: /fr/hot-tips/tagging/
lang: fr
category: hot-tips
---

Tagging - iD editor
============

> Mis à jour le 2019-06-28

- TOC
{:toc}

![tagging][]

Pourquoi les tags sont nécessaires
-------------------

Sans un attribut, un élément n'a aucune signification et les cartes ne l'afficheront pas. L'attribut explique à l'ordinateur ce qu'est réellement l'élément cartographique. Si vous trouvez quelque chose où l'attribut a été "oubliée", veuillez l'ajouter. Si un élément est étiqueté, il aura une couleur, telle que la teinte rouge du bâtiment étiqueté dans l'image ci-dessus. **Si c'est blanc, faites une recherche et ajoutez l'attribut si il a été oublié. **

![tagged-building][]

L'auteur du projet dans le gestionnaire de tâches ne sait pas quel éditeur le cartographe va utiliser, donc les instructions peuvent souvent avoir un commentaire similaire à celui-ci ;

- Les bâtiments sont généralement des huttes rondes et doivent être étiquetés comme **Éléments de construction / Bâtiment** dans iD et **bâtiment=oui** dans JOSM.*

Si vous avez besoin de vérifier quel attribut se trouve réellement sur un élément, cliquer dessus, puis faites défiler jusqu'au bas du volet d'étiquetage et regardez sous **All Tags**.

#### Les attributs - une petite explication ####

Si vous sélectionnez un élément et cliquez sur **All tags**, vous verrez une étiquette telle que

**building    yes**

C'est l'attribut de construction la plus basique, et c'est la balise recommandée pour tracer des bâtiments à partir d'une tâche dans le Tasking Manager.

Si vous savez exactement ce qu'est le bâtiment, alors vous utiliserez un attribut plus détaillé tel que ;
  **building   house**
  **building   school**
ou un des nombreux autres attributs. Pour de plus amples informations sur l'étiquetage des bâtiments, voir <https://wiki.openstreetmap.org/wiki/Buildings>.

Pour plus d'informations sur le marquage des routes, reportez-vous à la rubrique {Routes - Conseils utiles] (/fr/hot-tips/highways/).

### Les relations - comme les bâtiments avec une cour ou des îles dans une rivière ####

Certaines fonctionnalités ont leurs balises sur une **Relation** et non sur l'élément cartographique lui-même. Si vous voyez la mention d'une relation, en tant que débutant complet, le meilleur conseil est de 'laisser tomber'.

Pour plus d'informations sur les relations (**sujet non débutant**) voir ;

[ApprendreOSM - JOSM - Relations](/en/josm/josm/josm-relations/) qui explique les relations mais utilise un éditeur OSM différent, ou
<https://wiki.openstreetmap.org/wiki/Relation>

Voir aussi
---------

Pour une liste plus complète des attributs, voir <https://wiki.openstreetmap.org/wiki/Map_Features>.

[![one-mnute-tutorial-videos]{: height="150px"}](https://www.youtube.com/playlist?list=PLb9506_-6FMHZ3nwn9heri3xjQKrSq1hN "Humanitarian OpenStreetMap Team - Tutoriels vidéo d'une minute")
*Sous-titres disponibles dans certaines langues*

[tagging]:/images/hot-tips/tagging.gif
[keymon]:/images/hot-tips/keymon.png
[tagged-building]:/images/hot-tips/tagged-building.png
[one-mnute-tutorial-videos]: /images/hot-tips/one-mnute-tutorial-videos.png "Humanitarian OpenStreetMap Team Tutoriels vidéo d'une minute"


text:
package com.greenlock.frau;

import sx.blah.discord.handle.obj.IChannel;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by LukeSmalley on 1/19/2017.
 */
public class ScriptService {

    private ScriptProperties properties;
    private Process process;
    private IChannel channel;

    private ScriptService(ScriptProperties properties, Process process, IChannel channel, Frau bot) {
        this.properties = properties;
        this.process = process;
        this.channel = channel;

        Thread stdoutListener = new Thread() {
            @Override
            public void run() {
                try {
                    BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getInputStream()));
                    String line;
                    while (process.isAlive()) {
                        while ((line = stdout.readLine()) != null) {
                            reply(line);
                        }
                    }
                } catch (Exception ex) {
                    QuickLog.failure("Failed to stay attached to stdout for script service '" + properties.getName() + "'.", "Cause is unknown.", ex);
                }
            }
        };
        stdoutListener.start();

        Thread stderrListener = new Thread() {
            @Override
            public void run() {
                try {
                    BufferedReader stdout = new BufferedReader(new InputStreamReader(process.getErrorStream()));
                    String line;
                    String error = "";
                    while (process.isAlive()) {
                        while ((line = stdout.readLine()) != null) {
                            error += line + "\n";
                        }
                    }
                    if (error.length() > 0) {
                        reply("'" + properties.getName() + "' had a problem and died:\n```\n" + error + "\n```");
                    }
                    bot.removeService(properties.getName());
                } catch (Exception ex) {
                    QuickLog.failure("Failed to stay attached to stderr for script service '" + properties.getName() + "'.", "Cause is unknown.", ex);
                }
            }
        };
        stderrListener.start();
    }

    public static ScriptService start(ScriptProperties properties, IChannel channel, Configuration configuration, Frau bot) throws Exception {
        List<String> pythonArgs = new ArrayList<>();
        pythonArgs.addAll(configuration.python);
        pythonArgs.add(new File(configuration.scriptDirectory + "/" + properties.getName() + ".py").getAbsolutePath());
        ProcessBuilder python = new ProcessBuilder()
                .command(pythonArgs)
                .directory(new File(configuration.scriptDirectory + "/" + properties.getName()));
        python.environment().put("PYTHONPATH", new File(configuration.scriptDirectory).getAbsolutePath());
        Process pythonProcess = python.start();
        return new ScriptService(properties, pythonProcess, channel, bot);
    }

    public void halt() {
        process.destroy();
        while (process.isAlive()) { }
    }

    public void send(String message) throws IOException {
        BufferedWriter stdin = new BufferedWriter(new OutputStreamWriter(process.getOutputStream()));
        stdin.write(message + "\n");
        stdin.flush();
    }

    private void reply(String response) {
        try {
            channel.sendMessage(response);
        } catch (Exception ex) {
            try { Thread.sleep(3000); } catch (InterruptedException iex) { }
            try {
                channel.sendMessage(response);
            } catch (Exception rex) {
                QuickLog.failure("Failed to reply to a message.", "The Discord message could not be sent.", rex);
            }
        }
    }

    public boolean isChatSubscriber() {
        return properties.isService();
    }
}


text:
Settings

        Synergy

        Antagonism

<button ng-click="reset()">Reset</button>

×


text:
CREATE TABLE  `kwc_log_duplicate` (
`id` INT NOT NULL auto_increment,
`source_component_id` VARCHAR( 200 ) NOT NULL ,
`target_component_id` VARCHAR( 200 ) NOT NULL ,
`date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY (  `id` ) ,
INDEX (  `source_component_id` )
) ENGINE = INNODB;
ALTER TABLE  `kwc_log_duplicate` ADD INDEX (  `target_component_id` );


text:
const config = require('../config');

function login(overrideLogin) {
  const loginConfig = Object.assign({}, config.DEFAULT_LOGIN, overrideLogin);
  const message = `login ${JSON.stringify(loginConfig)}`;
  return this.execute(message);
}

module.exports = login;