text:
from django.core.exceptions import ValidationError
from django.test import TestCase

from fjord.base.forms import EnhancedURLField, StringListField

class StringListTestCase(TestCase):
    def test_prepare_value(self):
        test_data = [
            # test data, expected
            ([], u''),
            ([u'a'], u'a'),
            ([u'a', u'b'], u'a\nb'),
        ]
        field = StringListField(required=False)
        for testcase, expected in test_data:
            assert field.prepare_value(testcase) == expected

    def test_clean(self):
        test_data = [
            # test data, expected
            (u'', []),
            (u'a', [u'a']),
            (u'a\nb', [u'a', u'b']),
            (u'  a  \n b\n\n', [u'a', u'b'])
        ]
        field = StringListField(required=False)
        for testcase, expected in test_data:
            assert field.clean(testcase) == expected

class EnhancedURLFieldTestCase(TestCase):
    def test_valid(self):
        test_data = [
            # expected, url
            ('about:mozilla', 'about:mozilla'),
            ('chrome://foo', 'chrome://foo'),
            ('ftp://example.com/', 'ftp://example.com'),

            # From Django's URLField test data
            ('http://localhost/', 'http://localhost'),
            ('http://example.com/', 'http://example.com'),
            ('http://example.com./', 'http://example.com.'),
            ('http://www.example.com/', 'http://www.example.com'),
            ('http://www.example.com:8000/test',
             'http://www.example.com:8000/test'),
            ('http://valid-with-hyphens.com/', 'valid-with-hyphens.com'),
            ('http://subdomain.domain.com/', 'subdomain.domain.com'),
            ('http://200.8.9.10/', 'http://200.8.9.10'),
            ('http://200.8.9.10:8000/test', 'http://200.8.9.10:8000/test'),
            ('http://valid-----hyphens.com/', 'http://valid-----hyphens.com'),
            ('http://www.example.com/s/http://code.djangoproject.com/tkt/13',
             'www.example.com/s/http://code.djangoproject.com/tkt/13'),
        ]

        f = EnhancedURLField()

        for expected, url in test_data:
            try:
                assert f.clean(url) == expected
            except ValidationError:
                print url
                raise

    def test_invalid(self):
        test_data = [
            # From Django's URLField test data
            ('This field is required.', ''),
            ('This field is required.', None),
            ('Enter a valid URL.', 'foo'),
            ('Enter a valid URL.', 'http://'),
            ('Enter a valid URL.', 'http://example'),
            ('Enter a valid URL.', 'http://example.'),
            ('Enter a valid URL.', 'com.'),
            ('Enter a valid URL.', '.'),
            ('Enter a valid URL.', 'http://.com'),
            ('Enter a valid URL.', 'http://invalid-.com'),
            ('Enter a valid URL.', 'http://-invalid.com'),
            ('Enter a valid URL.', 'http://inv-.alid-.com'),
            ('Enter a valid URL.', 'http://inv-.-alid.com'),
            ('Enter a valid URL.', '[a'),
            ('Enter a valid URL.', 'http://[a'),
        ]

        f = EnhancedURLField()

        for msg, url in test_data:
            try:
                f.clean(url)
            except ValidationError as exc:
                assert exc.messages == [msg]


text:
/* jshint esnext: true */

import {linearInterpolation}    from '../../lib/interpolation';

export default class Scale {

    static fromCoord(coord) {
        const type = coord.scale;
        var out, out2;
        if(type === undefined || type === 'linear') {
        	if(!coord.range) { coord.range = coord.domain; }
          out = linearInterpolation(coord.domain, coord.range);
        }

        return out;
    }

  	static getScaleFn(obj) {
	    var {coord, dataFn} = obj;
	    var scale      = Scale.fromCoord(coord);
	    return function(d, i) { return scale(dataFn(d, i)); };
  }

}

redpajama_set_name: RedPajamaGithub


text:
package go_mergesort

import (
	"github.com/jcscottiii/mergesort_benchmark/mergesort"
	"golang.org/x/mobile/bind/seq"
)

func proxy_GoMergeSortEntry(out, in *seq.Buffer) {
	param_size := in.ReadInt()
	param_ascending := in.ReadInt()
	res := mergesort.GoMergeSortEntry(param_size, param_ascending)
	out.WriteInt(res)
}

func init() {
	seq.Register("mergesort", 1, proxy_GoMergeSortEntry)
}


text:
estanciafemsa-mx
-------

Tech this uses [thnx]:

- http://gulpjs.com/
- https://github.com/WebDevStudios/CMB2


text:
'use strict';
import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';

var SuccessModal = React.createClass({
  displayName: 'SuccessModal',
  propTypes: {
    visible: React.PropTypes.bool,
    errors: React.PropTypes.string
  },

  getInitialState: function () {
    return {
      visible: false
    };
  },

  toggleModal: function (event) {
    this.setState({visible: !this.state.visible});
  },

  componentDidMount: function () {
    if (!this.props.errors && this.props.visible) this.toggleModal();
  },

  modal: function () {
    if (!this.state.visible) return null;
    return (

Validation Success!

              <button className='modal__button-dismiss' title='Close' onClick={() => this.toggleModal()}>Dismiss</button>

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce scelerisque
              libero vitae odio fringilla, et consequat magna auctor. Ut accumsan quam in velit
              consequat, sit amet sodales sapien auctor.

    );
  },

  render: function () {
    return (
      <ReactCSSTransitionGroup
        component='div'
        transitionName='modal'
        transitionEnterTimeout={300}
        transitionLeaveTimeout={300} >
          {this.modal()}
      </ReactCSSTransitionGroup>
    );
  }
});

module.exports = SuccessModal;


text:
package uk.co.nevarneyok.interfaces;

import uk.co.nevarneyok.entities.delivery.Payment;

public interface PaymentDialogInterface {
    void onPaymentSelected(Payment payment);
}


text:
'use strict';

var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var io = require('socket.io');
var lowladb = require('lowladb-node');

var app = express();
var server = require('http').Server(app);

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(cookieParser());
app.use('/dist', express.static(path.join(__dirname, '../dist')));
app.use(express.static(path.join(__dirname, 'todomvc')));

lowladb.configureRoutes(app, {io: io(server)});

// catch 404 and forward to error handler
app.use(function (req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});

// error handlers

// development error handler
// will print stacktrace
if (app.get('env') === 'development') {
  app.use(function (err, req, res, next) {
    res.status(err.status || 500);
    res.render('error', {
      message: err.message,
      error: err
    });
  });
}

// production error handler
// no stacktraces leaked to user
app.use(function (err, req, res, next) {
  res.status(err.status || 500);
  res.render('error', {
    message: err.message,
    error: {}
  });
});

app.set('port', process.env.PORT || 3000);
server.listen(app.get('port'));


text:
<?php

namespace Setting\Bundle\AppearanceBundle\Service;

use Doctrine\ORM\EntityManager;
use Doctrine\Bundle\DoctrineBundle\Registry;
use Doctrine\ORM\EntityRepository;
use Doctrine\DBAL\Connection;

use Setting\Bundle\AppearanceBundle\Entity\MenuGrouping;
use Symfony\Component\Debug\Debug;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * RequestManager
 *
 * This class was generated by the Doctrine ORM. Add your own custom
 * repository methods below.
 */

class MenuGroupingManager

{

    /**
     * @var EntityManager
     */
    protected  $em;
    /**
     * @var \Doctrine\Bundle\DoctrineBundle\Registry
     */
    private $doctrine;

    public function  __construct(Registry $doctrine)
    {
        $this->doctrine = $doctrine;
        $this->em = $doctrine->getManager();
    }

}


text:
package internal

import (
	context "context"

	gomock "github.com/golang/mock/gomock"
	fosite "github.com/ory/fosite"
)

// Mock of ClientCredentialsGrantStorage interface
type MockClientCredentialsGrantStorage struct {
	ctrl     *gomock.Controller
	recorder *_MockClientCredentialsGrantStorageRecorder
}

// Recorder for MockClientCredentialsGrantStorage (not exported)
type _MockClientCredentialsGrantStorageRecorder struct {
	mock *MockClientCredentialsGrantStorage
}

func NewMockClientCredentialsGrantStorage(ctrl *gomock.Controller) *MockClientCredentialsGrantStorage {
	mock := &MockClientCredentialsGrantStorage{ctrl: ctrl}
	mock.recorder = &_MockClientCredentialsGrantStorageRecorder{mock}
	return mock
}

func (_m *MockClientCredentialsGrantStorage) EXPECT() *_MockClientCredentialsGrantStorageRecorder {
	return _m.recorder
}

func (_m *MockClientCredentialsGrantStorage) CreateAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error {
	ret := _m.ctrl.Call(_m, "CreateAccessTokenSession", _param0, _param1, _param2)
	ret0, _ := ret[0].(error)
	return ret0
}

func (_mr *_MockClientCredentialsGrantStorageRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
	return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateAccessTokenSession", arg0, arg1, arg2)
}

func (_m *MockClientCredentialsGrantStorage) DeleteAccessTokenSession(_param0 context.Context, _param1 string) error {
	ret := _m.ctrl.Call(_m, "DeleteAccessTokenSession", _param0, _param1)
	ret0, _ := ret[0].(error)
	return ret0
}

func (_mr *_MockClientCredentialsGrantStorageRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
	return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteAccessTokenSession", arg0, arg1)
}

func (_m *MockClientCredentialsGrantStorage) GetAccessTokenSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error) {
	ret := _m.ctrl.Call(_m, "GetAccessTokenSession", _param0, _param1, _param2)
	ret0, _ := ret[0].(fosite.Requester)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

func (_mr *_MockClientCredentialsGrantStorageRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
	return _mr.mock.ctrl.RecordCall(_mr.mock, "GetAccessTokenSession", arg0, arg1, arg2)
}


text:
package com.codereligion.bugsnag.logback.resource;

import com.codereligion.bugsnag.logback.model.NotificationVO;
import javax.ws.rs.Consumes;
import javax.ws.rs  .POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

/**
 * The specification of the bugsnag endpoint.
 *
 * @author Sebastian Gröbler
 */
@Path("/")
@Produces(MediaType.APPLICATION_JSON)
public interface NotifierResource {

    @POST
    @Consumes(MediaType.APPLICATION_JSON)
    Response sendNotification(NotificationVO notificationVO);
}


text:
Advanced Topics
===============

Missing Value Handle
--------------------

-  LightGBM enables the missing value handle by default, you can disable it by set ``use_missing=false``.

-  LightGBM uses NA (NaN) to represent the missing value by default, you can change it to use zero by set ``zero_as_missing=true``.

-  When ``zero_as_missing=false`` (default), the unshown value in sparse matrices (and LightSVM) is treated as zeros.

-  When ``zero_as_missing=true``, NA and zeros (including unshown value in sparse matrices (and LightSVM)) are treated as missing.

Categorical Feature Support
---------------------------

-  LightGBM can offer a good accuracy when using native categorical features. Not like simply one-hot coding, LightGBM can find the optimal split of categorical features.
   Such an optimal split can provide the much better accuracy than one-hot coding solution.

-  Use ``categorical_feature`` to specify the categorical features.
   Refer to the parameter ``categorical_feature`` in `Parameters <./Parameters.rst>`__.

-  Converting to ``int`` type is needed first, and there is support for non-negative numbers only.
   It is better to convert into continues ranges.

-  Use ``min_data_per_group``, ``cat_smooth`` to deal with over-fitting
   (when ``#data`` is small or ``#category`` is large).

-  For categorical features with high cardinality (``#category`` is large), it is better to convert it to numerical features.

LambdaRank
----------

-  The label should be ``int`` type, and larger numbers represent the higher relevance (e.g. 0:bad, 1:fair, 2:good, 3:perfect).

-  Use ``label_gain`` to set the gain(weight) of ``int`` label.

-  Use ``max_position`` to set the NDCG optimization position.

Parameters Tuning
-----------------

-  Refer to `Parameters Tuning <./Parameters-Tuning.rst>`__.

Parallel Learning
-----------------

-  Refer to `Parallel Learning Guide <./Parallel-Learning-Guide.rst>`__.

GPU Support
-----------

-  Refer to `GPU Tutorial <./GPU-Tutorial.rst>`__ and `GPU Targets <./GPU-Targets.rst>`__.

Recommendations for gcc Users (MinGW, \*nix)
--------------------------------------------

-  Refer to `gcc Tips <./gcc-Tips.rst>`__.


text:
<?php
namespace b2\tests\literal;

use b2\literal\BiOperation;
use b2\literal\Constant;
use b2\literal\Identifier;

class BiOperationTest extends \b2\tests\Base
{
	public function testToString() {
		$operand1 = new Constant(10);
		$operanb2 = new Identifier('hello');

		$o = new BiOperation($operand1, 'AND', $operanb2);
		$this->assertSame("'10' AND `hello`", $o->toString($this->quoter()));

		$o = new BiOperation($operanb2, '=', $operand1);
		$this->assertSame("`hello` = '10'", $o->toString($this->quoter()));

		$o = new BiOperation($operanb2, '=', $operanb2);
		$this->assertSame("`hello` = `hello`", $o->toString($this->quoter()));

		$operand3 = new BiOperation(new Identifier('sub'), '=', new Constant('val'));
		$o = new BiOperation($operanb2, 'AND', $operand3);
		$this->assertSame("`hello` AND (`sub` = 'val')", $o->toString($this->quoter()));
	}
}


text:
/**
 * Auto-configuration for reactive Spring Security.
 */
package org.springframework.boot.autoconfigure.security.reactive;


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
	Licensed to the Apache Software Foundation (ASF) under one
	or more contributor license agreements.  See the NOTICE file
	distributed with this work for additional information
	regarding copyright ownership.  The ASF licenses this file
	to you under the Apache License, Version 2.0 (the
	"License"); you may not use this file except in compliance
	with the License.  You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing,
	software distributed under the License is distributed on an
	"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
	KIND, either express or implied.  See the License for the
	specific language governing permissions and limitations
	under the License.
-->
<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>org.apache.uima</groupId>
    <artifactId>uima-addons-parent</artifactId>
    <version>2.3.2-SNAPSHOT</version>
    <relativePath>../uima-addons-parent</relativePath>
  </parent>

  <artifactId>Tagger</artifactId>
  <version>2.3.2-SNAPSHOT</version>
  <name>Apache UIMA Annotator: ${project.artifactId}</name>
  <description>An implementation of a Hidden Markov Model (HMM) statistical tagger</description>
  <url>${uimaWebsiteUrl}</url>

  <!-- Special inheritance note
       even though the <scm> element that follows is exactly the
       same as those in super poms, it cannot be inherited because
       there is some special code that computes the connection elements
       from the chain of parent poms, if this is omitted.

       Keeping this a bit factored allows cutting/pasting the <scm>
       element, and just changing the following two properties -->
  <scm>
    <connection>
      scm:svn:http://svn.apache.org/repos/asf/uima/addons/trunk/Tagger
    </connection>
    <developerConnection>
      scm:svn:https://svn.apache.org/repos/asf/uima/addons/trunk/Tagger
    </developerConnection>
    <url>
      http://svn.apache.org/viewvc/uima/addons/trunk/Tagger
    </url>
  </scm>

  <properties>
    <uimaScmProject>${project.artifactId}</uimaScmProject>
    <uimaDependencyVersion>2.3.1</uimaDependencyVersion>
    <pearMainDescriptor>desc/HmmTagger.xml</pearMainDescriptor>
    <bookNameRoot>hmmTaggerUsersGuide</bookNameRoot>
  </properties>

	<dependencies>
		<dependency>
			<groupId>org.apache.uima</groupId>
			<artifactId>uimaj-core</artifactId>
      <version>${uimaDependencyVersion}</version>
      <scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.uima</groupId>
			<artifactId>uimaj-test-util</artifactId>
      <version>${uimaDependencyVersion}</version>
      <scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.uima</groupId>
			<artifactId>uimaj-component-test-util</artifactId>
      <version>${uimaDependencyVersion}</version>
      <scope>test</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.uima</groupId>
			<artifactId>WhitespaceTokenizer</artifactId>
			<version>2.3.1</version>
   	</dependency>
	</dependencies>

  <build>
    <finalName>uima-an-tagger</finalName>

    <!-- don't use resources from normal spot, and
         use resources from proj/resources -->
    <resources>
      <resource>
        <directory>resources</directory>
      </resource>
    </resources>

    <!-- don't use test resources from normal spot, and
         use resources from proj/desc -->
    <testResources>
      <testResource>
        <directory>desc</directory>
      </testResource>
    </testResources>

    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.rat</groupId>
          <artifactId>apache-rat-plugin</artifactId>
          <executions>
            <execution>
              <id>default-cli</id>
              <configuration>
                <excludes>
                  <exclude>release.properties</exclude> <!-- release generated artifact -->
                  <exclude>README*</exclude>
                  <exclude>RELEASE_NOTES*</exclude>
                  <exclude>issuesFixed/**</exclude> <!-- generated file -->
                  <exclude>marker-file-identifying-*</exclude> <!-- empty file -->
                  <exclude>DEPENDENCIES</exclude>  <!-- generated file -->

                  <exclude>src/test/resources/moby-tag-list.txt</exclude> <!-- test data -->
                </excludes>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>

    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <configuration>
          <argLine>-Xmx500M</argLine>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>


text:
title: Dired Find
updated: 2017-06-07 01:22:50
tags: emacs
---
- [find dired](#org14f9434)

# find dired

we can run a find command in dired and get the list in a dired buffer with `find-dired` . it can be useful sometimes to make find specific files and preform dired magic on it . while running it it turns out that the the command takes argument from us and run

```shell
find . \(arg\) -ls
```

the `-ls` arg prints the result in ls format but the spaces and `` `unusaul` `` things are escaped and while running wdired it did not recognized those escapes and failed the documentation of find-dired `c-h f ret find-dired` says that there is a find-ls-option variable that specifies the find options going to customization and setting the ls option to `-print0 | xargs -0 ls -la` prints the find in better format and now we can use wdired


text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Cosmos.Debug.Common;
using Microsoft.VisualStudio.Debugger.Interop;

namespace Cosmos.Debug.VSDebugEngine {
    // This class manages breakpoints for the engine.
    public class BreakpointManager {
        public const int MaxBP = 256;
        protected AD7Engine mEngine;
        protected DebugConnector mDbgConnector;
        public List<AD7PendingBreakpoint> mPendingBPs = new List<AD7PendingBreakpoint>();
        public AD7BoundBreakpoint[] mActiveBPs = new AD7BoundBreakpoint[MaxBP];

        public BreakpointManager(AD7Engine aEngine) {
            mEngine = aEngine;
        }

        public void SetDebugConnector(DebugConnector aConnector) {
            mDbgConnector = aConnector;
        }

        // A helper method used to construct a new pending breakpoint.
        public void CreatePendingBreakpoint(IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP) {
            var pendingBreakpoint = new AD7PendingBreakpoint(pBPRequest, mEngine, this);
            ppPendingBP = (IDebugPendingBreakpoint2)pendingBreakpoint;
            mPendingBPs.Add(pendingBreakpoint);
        }

        // Called from the engine's detach method to remove the debugger's breakpoint instructions.
        public void ClearBoundBreakpoints() {
            foreach (AD7PendingBreakpoint pendingBreakpoint in mPendingBPs) {
                pendingBreakpoint.ClearBoundBreakpoints();
            }
        }

        // Creates an entry and remotely enables the breakpoint in the debug stub
        public int RemoteEnable(AD7BoundBreakpoint aBBP) {
            for (int xID = 0; xID < MaxBP; xID++) {
                if (mActiveBPs[xID] == null) {
                    mActiveBPs[xID] = aBBP;
                    var label = mEngine.mProcess.mDebugInfoDb.GetLabels(aBBP.mAddress)[0];
                    mEngine.mProcess.INT3sSet.Add(new KeyValuePair<uint, string>(aBBP.mAddress, label));
                    mDbgConnector.SetBreakpoint(xID, aBBP.mAddress);
                    return xID;
                }
            }
            throw new Exception("Maximum number of active breakpoints exceeded (" + MaxBP + ").");
        }

        public void RemoteDisable(AD7BoundBreakpoint aBBP) {
            mActiveBPs[aBBP.RemoteID] = null;

            int index = mEngine.mProcess.INT3sSet.FindIndex(x => x.Key == aBBP.mAddress);
            mEngine.mProcess.INT3sSet.RemoveAt(index);
            mDbgConnector.DeleteBreakpoint(aBBP.RemoteID);
        }

    }
}


text:
window.onfocus = function ()
{
		focus = true;
		document.getElementById('title').innerHTML="AceChat";
}


text:
import { ClientRequest, ClientResponse } from '..';

export abstract class NetworkTransportStrategy {
  abstract send(endpointUrl: string, request: ClientRequest): Promise<ClientResponse>;
}


text: <!DOCTYPE html>


text: doc generator


text:
module Comments (
  main
) where

import qualified Comments.C
import qualified Comments.Cpp
import Data.Char (isSpace, toLower)
import Data.List (partition)
import System.Environment (getArgs)
import System.FilePath (takeExtension)

--------------------------------------------------------------------------------

main :: IO ()
main = do
  args <- getArgs
  let (opts, files) = partition ((== "-") . take 1) args
  if any (`elem` ["-h", "--help"]) opts || null files
    then help
    else mapM_ (removeComments opts) files

help :: IO ()
help = mapM_ putStrLn [
    "Usage: comments [options] files"
  , "Description: Removes comments in files based on filetype."
  , "-l: Remove empty lines and lines with only spaces in them."
  ]

removeComments :: [String] -> FilePath -> IO ()
removeComments opts file = do
  str <- readFile file
  str' <- fmap removeEmptyLines . remove $ str
  length str `seq` writeFile file str'
  where
    removeEmptyLines = if "-l" `elem` opts
      then unlines . filter (not . all isSpace) . lines
      else id
    remove = case map toLower $ drop 1 $ takeExtension file of
      "" -> return
      "c" -> return . Comments.C.remove
      "cpp" -> return . Comments.Cpp.remove
      _ -> \str -> do
        putStrLn $ "Unknown filetype: Skipping " ++ file
        return str


text:
<!DOCTYPE html>
<html>
  <body>
    <script src="../../web-animations.js"></script>
    <script src="../../smil-in-javascript.js"></script>
    <script src="../harness.js"></script>
    <script src="freeze-check.js"></script>

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="600" height="600">
  <rect id="polyfillRect" x="100" y="100" width="100" height="100" fill="green" opacity="0.5">
    <animate attributeName="x" from="100" to="200" dur="2s" fill="freeze"/>
    <animate attributeName="height" from="100" to="200" dur="2s" fill="freeze"/>
    <animate attributeName="width" from="100" to="200" begin="2s" dur="2s" fill="freeze"/>
  </rect>

  <rect id="nativeRect" x="100" y="100" width="100" height="100" fill="red" opacity="0.5">
    <nativeAnimate attributeName="x" from="100" to="200" dur="2s" fill="freeze"/>
    <nativeAnimate attributeName="height" from="100" to="200" dur="2s" fill="freeze"/>
    <nativeAnimate attributeName="width" from="100" to="200" begin="2s" dur="2s" fill="freeze"/>
  </rect>
</svg>

  </body>
</html>


text:
package org.wso2.carbon.osgi.context;

import org.ops4j.pax.exam.Configuration;
import org.ops4j.pax.exam.ExamFactory;
import org.ops4j.pax.exam.Option;
import org.ops4j.pax.exam.spi.reactors.ExamReactorStrategy;
import org.ops4j.pax.exam.spi.reactors.PerClass;
import org.ops4j.pax.exam.testng.listener.PaxExam;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.Assert;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import org.wso2.carbon.container.CarbonContainerFactory;
import org.wso2.carbon.container.options.CopyFileOption;
import org.wso2.carbon.context.test.CarbonContextInvoker;
import org.wso2.carbon.kernel.CarbonServerInfo;
import org.wso2.carbon.kernel.Constants;
import org.wso2.carbon.kernel.context.CarbonContext;
import org.wso2.carbon.kernel.context.PrivilegedCarbonContext;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.Principal;
import javax.inject.Inject;

import static org.ops4j.pax.exam.CoreOptions.maven;
import static org.ops4j.pax.exam.CoreOptions.systemProperty;
import static org.wso2.carbon.container.options.CarbonDistributionOption.copyOSGiLibBundle;

/**
 * CarbonContextOSGiTest class is to test the functionality of the Carbon Context API.
 *
 * @since 5.1.0
 */
@Listeners(PaxExam.class)
@ExamReactorStrategy(PerClass.class)
@ExamFactory(CarbonContainerFactory.class)
public class CarbonContextOSGiTest {
    private static final Logger logger = LoggerFactory.getLogger(CarbonContextOSGiTest.class);
    private static final String TEST_TENANT_NAME = "test.tenant";
    private static final String DEPLOYMENT_FILENAME = "deployment.yaml";

    @Inject
    private CarbonServerInfo carbonServerInfo;

    @Configuration
    public Option[] createConfiguration() {
        return new Option[] { copyCarbonYAMLOption(), copyOSGiLibBundle(
                maven().artifactId("carbon-context-test-artifact").groupId("org.wso2.carbon").versionAsInProject()),
                systemProperty(Constants.TENANT_NAME).value(TEST_TENANT_NAME) };
    }

    @Test
    public void testCarbonContext() {
        CarbonContext carbonContext = CarbonContext.getCurrentContext();
        Assert.assertEquals(carbonContext.getUserPrincipal(), null);
        Assert.assertEquals(carbonContext.getProperty("someProperty"), null);
    }

    @Test(dependsOnMethods = "testCarbonContext")
    public void testPrivilegeCarbonContext() {
        Principal userPrincipal = () -> "test";
        String carbonContextPropertyKey = "KEY";
        Object carbonContextPropertyValue = "VALUE";

        try {
            PrivilegedCarbonContext privilegedCarbonContext = PrivilegedCarbonContext.getCurrentContext();
            privilegedCarbonContext.setUserPrincipal(userPrincipal);
            privilegedCarbonContext.setProperty(carbonContextPropertyKey, carbonContextPropertyValue);
            Assert.assertEquals(CarbonContext.getCurrentContext().getUserPrincipal(), userPrincipal);
            Assert.assertEquals(CarbonContext.getCurrentContext().getProperty(carbonContextPropertyKey),
                    carbonContextPropertyValue);
        } finally {
            PrivilegedCarbonContext.destroyCurrentContext();
        }
        Assert.assertEquals(CarbonContext.getCurrentContext().getUserPrincipal(), null);
    }

    @Test(dependsOnMethods = "testPrivilegeCarbonContext")
    public void testCarbonContextFaultyScenario() {
        PrivilegedCarbonContext.destroyCurrentContext();
        Principal userPrincipal1 = () -> "test1";
        Principal userPrincipal2 = () -> "test2";
        try {
            PrivilegedCarbonContext privilegedCarbonContext = PrivilegedCarbonContext.getCurrentContext();
            try {
                privilegedCarbonContext.setUserPrincipal(userPrincipal1);
                Assert.assertEquals(CarbonContext.getCurrentContext().getUserPrincipal(), userPrincipal1);
                privilegedCarbonContext.setUserPrincipal(userPrincipal2);
            } catch (Exception e) {
                Assert.assertTrue(e.getMessage().contains("Trying to override the already available user principal " +
                        "from " + userPrincipal1.toString() + " to " + userPrincipal2.toString()));
            }
        } finally {
            PrivilegedCarbonContext.destroyCurrentContext();
        }
    }

    @Test(dependsOnMethods = "testCarbonContextFaultyScenario")
    public void testCustomBundle() {
        String carbonContextPropertyKey = "carbonContextPropertyKey";
        Object carbonContextPropertyValue = "carbonContextPropertyValue";
        String userPrincipalName = "userPrincipalName";
        CarbonContextInvoker carbonContextInvoker = new CarbonContextInvoker(carbonContextPropertyKey,
                carbonContextPropertyValue, userPrincipalName);
        carbonContextInvoker.invoke();
        CarbonContext carbonContext = CarbonContext.getCurrentContext();
        Assert.assertEquals(carbonContext.getProperty(carbonContextPropertyKey), carbonContextPropertyValue);
        Assert.assertEquals(carbonContext.getUserPrincipal().getName(), userPrincipalName);
    }

    /**
     * Replace the existing deployment.yaml file with the file found at runtime resources directory.
     */
    private CopyFileOption copyCarbonYAMLOption() {
        Path carbonYmlFilePath;

        String basedir = System.getProperty("basedir");
        if (basedir == null) {
            basedir = Paths.get(".").toString();
        }
        carbonYmlFilePath = Paths.get(basedir, "src", "test", "resources", "carbon-context", DEPLOYMENT_FILENAME);
        return new CopyFileOption(carbonYmlFilePath, Paths.get("conf", "default", DEPLOYMENT_FILENAME));
    }
}


text:
describe('schema definition', function() {
  describe('of attributes', function() {
    var Model;

    beforeEach(function() {
      Model = Ember.Resource.define({
        schema: {
          id:       {type: Number, path: 'somewhere.deep.id'},
          size:     {type: Number},
          age:      Number,
          name:     String,
          birthday: Date,
          single:   Boolean
        }
      });
    });

    it('should use the specified path if given', function() {
      expect(Model.schema.id.path).toBe('somewhere.deep.id');
    });

    it('should use the attribute name as path if not specified', function() {
      expect(Model.schema.size.path).toBe('size');
    });

    it('should support Number', function() {
      expect(Model.schema.age.get('type')).toBe(Number);
      expect(Model.schema.age.path).toBe('age');
    });

    it('should support String', function() {
      expect(Model.schema.name.get('type')).toBe(String);
      expect(Model.schema.name.path).toBe('name');
    });

    it('should support Date', function() {
      expect(Model.schema.birthday.get('type')).toBe(Date);
      expect(Model.schema.birthday.path).toBe('birthday');
    });

    it('should support Boolean', function() {
      expect(Model.schema.single.get('type')).toBe(Boolean);
      expect(Model.schema.single.path).toBe('single');
    });
  });

  describe('of has-one associations', function() {
    var Model, Person, Address;

    beforeEach(function() {
      Address = Ember.Resource.define({
        schema: {
          street: String,
          zip:    Number
        }
      });

      Model = Ember.Resource.define({
        schema: {
          home_address:  {type: Address},
          work_address:  {type: Address, path: 'work_addr_id'},
          work_addr_id:  String,
          other_address: {type: Address, nested: true}
        }
      });
    });

    it('should use the specified path when given', function() {
      expect(Model.schema.work_address.get('path')).toBe('work_addr_id');
    });

    it('should guess a path from the name when not given', function() {
      expect(Model.schema.home_address.get('path')).toBe('home_address_id');
    });

    it('should define a Number attribute at the path if not present', function() {
      expect(Model.schema.home_address_id).toBeDefined();
      expect(Model.schema.home_address_id.get('type')).toBe(Number);
    });

    it('should not override the attribute at the path if present', function() {
      expect(Model.schema.work_addr_id).toBeDefined();
      expect(Model.schema.work_addr_id.get('type')).toBe(String);
    });

    it('should create an *_id attribute for nested associations', function() {
      expect(Model.schema.other_address).toBeDefined();
      expect(Model.schema.other_address_id).toBeDefined();
      expect(Model.schema.other_address_id instanceof Ember.Resource.HasOneNestedIdSchemaItem).toBe(true);
      expect(Model.schema.other_address_id.get('association')).toBe(Model.schema.other_address);
      expect(Model.schema.other_address_id.get('path')).toBe('other_address.id');
    });
  });

  it('should create Number properties', function() {
    var Model = Ember.Resource.define({
      schema: {
        id:   Number,
        size: Number
      }
    });
    var data = {id: 1, size: '5'};
    var instance = Model.create({}, data);
    data = instance.get('data');

    expect(instance.get('id')).toBe(1);
    expect(instance.get('size')).toBe(5);

    instance.set('id', '2');
    expect(instance.getPath('data.id')).toBe(2);

    instance.set('size', 3);
    expect(instance.getPath('data.size')).toBe(3);

    instance.set('size', 'foo');
    expect(instance.get('size')).toBeUndefined();
    expect(instance.getPath('data.size')).toBeUndefined();

    instance.set('size', NaN);
    expect(instance.get('size')).toBeUndefined();
    expect(instance.getPath('data.size')).toBeUndefined();
  });

  it('should create String properties', function() {
    var Model = Ember.Resource.define({
      schema: {
        id:   String,
        size: String
      }
    });
    var data = {id: 1, size: 'large'};
    var instance = Model.create({}, data);
    data = instance.get('data');

    expect(instance.get('id')).toBe('1');
    expect(instance.get('size')).toBe('large');

    instance.set('id', 2);
    expect(instance.getPath('data.id')).toBe('2');

    instance.set('size', 'small');
    expect(instance.getPath('data.size')).toBe('small');
  });

  it('should create Date properties', function() {
    var date = new Date();
    var dateString = date.toJSON();

    var Model = Ember.Resource.define({
      schema: {
        createdAt: Date,
        updatedAt: Date
      }
    });
    var data = {createdAt: dateString, updatedAt: date};
    var instance = Model.create({}, data);
    data = instance.get('data');

    expect(instance.get('createdAt')).toEqual(date);
    expect(instance.get('updatedAt')).toEqual(date);

    date = new Date();
    dateString = date.toJSON();

    instance.set('createdAt', date);
    expect(instance.getPath('data.createdAt')).toEqual(dateString, "convert a Date instance to a string");

    instance.set('updatedAt', dateString);
    expect(instance.getPath('data.updatedAt')).toEqual(dateString, 'convert a string ("' + dateString + '") to a string');
  });

  it('should create Boolean properties', function() {
    var Model = Ember.Resource.define({
      schema: {
        'public': Boolean,
        active:   Boolean,
        good:     Boolean,
        bad:      Boolean
      }
    });
    var data = {'public': true, active: false, good: 'true', bad: 'false'};
    var instance = Model.create({}, data);
    data = instance.get('data');

    expect(instance.get('public')).toBe(true);
    expect(instance.get('active')).toBe(false);
    expect(instance.get('good')).toBe(true);
    expect(instance.get('bad')).toBe(false);

    instance.set('public', 'true');
    expect(instance.getPath('data.public')).toBe(true, "convert 'true' to true");

    instance.set('public', 'false');
    expect(instance.getPath('data.public')).toBe(false, "convert 'false' to false");

    instance.set('public', true);
    expect(instance.getPath('data.public')).toBe(true, "convert true to true");

    instance.set('public', false);
    expect(instance.getPath('data.public')).toBe(false, "convert false to false");
  });
});


text:
//  Copyright (c) Microsoft Corporation.  All rights reserved.
//
//  The MIT License (MIT)
//
//  Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//
//  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
//  ---------------------------------------------------------------------------------

using System.Threading.Tasks;
using PhotoSharingApp.Universal.Models;
using Windows.Storage;
using Windows.UI.Xaml.Media.Imaging;

namespace PhotoSharingApp.Universal.Facades
{
    /// <summary>
    /// Encapsulates page navigation.
    /// </summary>
    public interface INavigationFacade
    {
        /// <summary>
        /// Goes back to the previews view(s).
        /// </summary>
        /// <param name="steps">Number of views to go back.</param>
        void GoBack(int steps = 1);

        /// <summary>
        /// Navidates to the Main Page
        /// </summary>
        void NavigateToMainPage();

        /// <summary>
        /// Navidates to the Main Page
        /// </summary>
        void NavigateToRegisterPage();

        /// <summary>
        /// Navidates to the SignIn Page
        /// </summary>
        void NavigateToSignInPage();

        /// <summary>
        /// Navigates to the about view.
        /// </summary>
        void NavigateToAboutView();

        /// <summary>
        /// Navigates to the camera view.
        /// </summary>
        /// <param name="category">The category.</param>
        void NavigateToCameraView(CategoryPreview category);

        /// <summary>
        /// Navigates to the camera view.
        /// </summary>
        void NavigateToCameraView();

        /// <summary>
        /// Navigates to the categories view.
        /// </summary>
        void NavigateToCategoriesView();

        /// <summary>
        /// Navigates to the crop view.
        /// </summary>
        /// <param name="file">The photo to crop.</param>
        /// <param name="category">The selected category for the photo.</param>
        void NavigateToCropView(StorageFile file, CategoryPreview category);

        /// <summary>
        /// Navigates to the crop view.
        /// </summary>
        /// <param name="file">The photo to crop.</param>
        void NavigateToCropView(StorageFile file);

        /// <summary>
        /// Navigates to the photo details view.
        /// </summary>
        /// <param name="category">The category.</param>
        /// <param name="photo">The photo.</param>
        void NavigateToPhotoDetailsView(CategoryPreview category, Photo photo);

        /// <summary>
        /// Navigates to the photo details view.
        /// </summary>
        /// <param name="photo">The photo.</param>
        void NavigateToPhotoDetailsView(Photo photo);

        /// <summary>
        /// Navigates to the photo details view.
        /// </summary>
        /// <param name="photoId">The photoId.</param>
        void NavigateToPhotoDetailsView(string photoId);

        /// <summary>
        /// Navigates to the photo stream view.
        /// </summary>
        /// <param name="category">The category preview instance.</param>
        void NavigateToPhotoStream(CategoryPreview category);

        void NavigateToCategoryPage(ReturnAccessoryCombination accessoryCombination);

        /// <summary>
        /// Navigates to the photo stream view.
        /// </summary>
        /// <param name="category">The category.</param>
        void NavigateToPhotoStream(Category category);

        /// <summary>
        /// Navigates to the photo stream view.
        /// </summary>
        /// <param name="categoryPreview">The category preview instance.</param>
        /// <param name="photoThumbnail">The photo thumbnail that will determine the scroll position.</param>
        void NavigateToPhotoStream(CategoryPreview categoryPreview, PhotoThumbnail photoThumbnail);

        void NavigateToAccessoryDetail(ReturnAccessoryCombination accessoryCombination, ReturnAccessory accessory);

        /// <summary>
        /// Navigates to the signed-in user's profile view.
        /// </summary>
        void NavigateToProfileView();

        /// <summary>
        /// Navigates to the given user's profile view.
        /// </summary>
        /// <param name="user">The user to show the profile view for.</param>
        void NavigateToProfileView(User user);

        /// <summary>
        /// Navigates to the sign-in view.
        /// </summary>
        void NavigateToSignInView();

        /// <summary>
        /// Navigates to the upload view.
        /// </summary>
        /// <param name="image">The image to upload.</param>
        /// <param name="category">The category to upload the image into.</param>
        void NavigateToUploadView(WriteableBitmap image, CategoryPreview category);

        /// <summary>
        /// Navigates to the upload view to update data of
        /// the existing photo.
        /// </summary>
        /// <param name="photo">The photo to update.</param>
        /// <param name="category">The associated category.</param>
        void NavigateToUploadView(Photo photo, Category category);

        /// <summary>
        /// Navigates to the Welcome view.
        /// </summary>
        void NavigateToWelcomeView();

        /// <summary>
        /// Removes the specified number of frames from the back stack.
        /// </summary>
        /// <param name="numberOfFrames">The number of frames.</param>
        void RemoveBackStackFrames(int numberOfFrames);

        /// <summary>
        /// Removes the frames associated with uploading a photo from the back stack.
        /// </summary>
        /// <param name="categoryIdNavigatedTo">The category id that was navigated to after photo upload.</param>
        void RemoveUploadPhotoFramesFromBackStack(string categoryIdNavigatedTo);

        /// <summary>
        /// Displays a dialog that lets the user pick
        /// a category.
        /// </summary>
        /// <returns>The category. If dialog is being canceled, null is returned.</returns>
        Task<Category> ShowCategoryChooserDialog();

        /// <summary>
        /// Displays a dialog that lets the user create
        /// a new category.
        /// </summary>
        Task ShowCreateCategoryDialog();

        /// <summary>
        /// Displays a dialog that lets the user give gold
        /// </summary>
        /// <returns>The annotation. If dialog is being canceled, null is returned.</returns>
        Task<Annotation> ShowGiveGoldDialog(Photo photo);
    }
}


text:
<?php

declare(strict_types=1);

namespace Money;

use InvalidArgumentException;

/**
 * This is a generated file. Do not edit it manually!
 *
 * @method static Money AED(numeric-string|int $amount)
 * @method static Money ALL(numeric-string|int $amount)
 * @method static Money AMD(numeric-string|int $amount)
 * @method static Money ANG(numeric-string|int $amount)
 * @method static Money AOA(numeric-string|int $amount)
 * @method static Money ARS(numeric-string|int $amount)
 * @method static Money AUD(numeric-string|int $amount)
 * @method static Money AWG(numeric-string|int $amount)
 * @method static Money AZN(numeric-string|int $amount)
 * @method static Money BAM(numeric-string|int $amount)
 * @method static Money BBD(numeric-string|int $amount)
 * @method static Money BDT(numeric-string|int $amount)
 * @method static Money BGN(numeric-string|int $amount)
 * @method static Money BHD(numeric-string|int $amount)
 * @method static Money BIF(numeric-string|int $amount)
 * @method static Money BMD(numeric-string|int $amount)
 * @method static Money BND(numeric-string|int $amount)
 * @method static Money BOB(numeric-string|int $amount)
 * @method static Money BOV(numeric-string|int $amount)
 * @method static Money BRL(numeric-string|int $amount)
 * @method static Money BSD(numeric-string|int $amount)
 * @method static Money BTN(numeric-string|int $amount)
 * @method static Money BWP(numeric-string|int $amount)
 * @method static Money BYN(numeric-string|int $amount)
 * @method static Money BZD(numeric-string|int $amount)
 * @method static Money CAD(numeric-string|int $amount)
 * @method static Money CDF(numeric-string|int $amount)
 * @method static Money CHE(numeric-string|int $amount)
 * @method static Money CHF(numeric-string|int $amount)
 * @method static Money CHW(numeric-string|int $amount)
 * @method static Money CLF(numeric-string|int $amount)
 * @method static Money CLP(numeric-string|int $amount)
 * @method static Money CNY(numeric-string|int $amount)
 * @method static Money COP(numeric-string|int $amount)
 * @method static Money COU(numeric-string|int $amount)
 * @method static Money CRC(numeric-string|int $amount)
 * @method static Money CUC(numeric-string|int $amount)
 * @method static Money CUP(numeric-string|int $amount)
 * @method static Money CVE(numeric-string|int $amount)
 * @method static Money CZK(numeric-string|int $amount)
 * @method static Money DJF(numeric-string|int $amount)
 * @method static Money DKK(numeric-string|int $amount)
 * @method static Money DOP(numeric-string|int $amount)
 * @method static Money DZD(numeric-string|int $amount)
 * @method static Money EGP(numeric-string|int $amount)
 * @method static Money ERN(numeric-string|int $amount)
 * @method static Money ETB(numeric-string|int $amount)
 * @method static Money EUR(numeric-string|int $amount)
 * @method static Money FJD(numeric-string|int $amount)
 * @method static Money FKP(numeric-string|int $amount)
 * @method static Money GBP(numeric-string|int $amount)
 * @method static Money GEL(numeric-string|int $amount)
 * @method static Money GHS(numeric-string|int $amount)
 * @method static Money GIP(numeric-string|int $amount)
 * @method static Money GMD(numeric-string|int $amount)
 * @method static Money GNF(numeric-string|int $amount)
 * @method static Money GTQ(numeric-string|int $amount)
 * @method static Money GYD(numeric-string|int $amount)
 * @method static Money HKD(numeric-string|int $amount)
 * @method static Money HNL(numeric-string|int $amount)
 * @method static Money HRK(numeric-string|int $amount)
 * @method static Money HTG(numeric-string|int $amount)
 * @method static Money HUF(numeric-string|int $amount)
 * @method static Money IDR(numeric-string|int $amount)
 * @method static Money ILS(numeric-string|int $amount)
 * @method static Money INR(numeric-string|int $amount)
 * @method static Money IQD(numeric-string|int $amount)
 * @method static Money IRR(numeric-string|int $amount)
 * @method static Money ISK(numeric-string|int $amount)
 * @method static Money JMD(numeric-string|int $amount)
 * @method static Money JOD(numeric-string|int $amount)
 * @method static Money JPY(numeric-string|int $amount)
 * @method static Money KES(numeric-string|int $amount)
 * @method static Money KGS(numeric-string|int $amount)
 * @method static Money KHR(numeric-string|int $amount)
 * @method static Money KMF(numeric-string|int $amount)
 * @method static Money KPW(numeric-string|int $amount)
 * @method static Money KRW(numeric-string|int $amount)
 * @method static Money KWD(numeric-string|int $amount)
 * @method static Money KYD(numeric-string|int $amount)
 * @method static Money KZT(numeric-string|int $amount)
 * @method static Money LAK(numeric-string|int $amount)
 * @method static Money LBP(numeric-string|int $amount)
 * @method static Money LKR(numeric-string|int $amount)
 * @method static Money LRD(numeric-string|int $amount)
 * @method static Money LSL(numeric-string|int $amount)
 * @method static Money LYD(numeric-string|int $amount)
 * @method static Money MAD(numeric-string|int $amount)
 * @method static Money MDL(numeric-string|int $amount)
 * @method static Money MGA(numeric-string|int $amount)
 * @method static Money MKD(numeric-string|int $amount)
 * @method static Money MMK(numeric-string|int $amount)
 * @method static Money MNT(numeric-string|int $amount)
 * @method static Money MOP(numeric-string|int $amount)
 * @method static Money MRU(numeric-string|int $amount)
 * @method static Money MUR(numeric-string|int $amount)
 * @method static Money MVR(numeric-string|int $amount)
 * @method static Money MWK(numeric-string|int $amount)
 * @method static Money MXN(numeric-string|int $amount)
 * @method static Money MXV(numeric-string|int $amount)
 * @method static Money MYR(numeric-string|int $amount)
 * @method static Money MZN(numeric-string|int $amount)
 * @method static Money NAD(numeric-string|int $amount)
 * @method static Money NGN(numeric-string|int $amount)
 * @method static Money NIO(numeric-string|int $amount)
 * @method static Money NOK(numeric-string|int $amount)
 * @method static Money NPR(numeric-string|int $amount)
 * @method static Money NZD(numeric-string|int $amount)
 * @method static Money OMR(numeric-string|int $amount)
 * @method static Money PAB(numeric-string|int $amount)
 * @method static Money PEN(numeric-string|int $amount)
 * @method static Money PGK(numeric-string|int $amount)
 * @method static Money PHP(numeric-string|int $amount)
 * @method static Money PKR(numeric-string|int $amount)
 * @method static Money PLN(numeric-string|int $amount)
 * @method static Money PYG(numeric-string|int $amount)
 * @method static Money QAR(numeric-string|int $amount)
 * @method static Money RON(numeric-string|int $amount)
 * @method static Money RSD(numeric-string|int $amount)
 * @method static Money RUB(numeric-string|int $amount)
 * @method static Money RWF(numeric-string|int $amount)
 * @method static Money SAR(numeric-string|int $amount)
 * @method static Money SBD(numeric-string|int $amount)
 * @method static Money SCR(numeric-string|int $amount)
 * @method static Money SDG(numeric-string|int $amount)
 * @method static Money SEK(numeric-string|int $amount)
 * @method static Money SGD(numeric-string|int $amount)
 * @method static Money SHP(numeric-string|int $amount)
 * @method static Money SLL(numeric-string|int $amount)
 * @method static Money SOS(numeric-string|int $amount)
 * @method static Money SRD(numeric-string|int $amount)
 * @method static Money SSP(numeric-string|int $amount)
 * @method static Money STN(numeric-string|int $amount)
 * @method static Money SVC(numeric-string|int $amount)
 * @method static Money SYP(numeric-string|int $amount)
 * @method static Money SZL(numeric-string|int $amount)
 * @method static Money THB(numeric-string|int $amount)
 * @method static Money TJS(numeric-string|int $amount)
 * @method static Money TMT(numeric-string|int $amount)
 * @method static Money TND(numeric-string|int $amount)
 * @method static Money TOP(numeric-string|int $amount)
 * @method static Money TRY(numeric-string|int $amount)
 * @method static Money TTD(numeric-string|int $amount)
 * @method static Money TWD(numeric-string|int $amount)
 * @method static Money TZS(numeric-string|int $amount)
 * @method static Money UAH(numeric-string|int $amount)
 * @method static Money UGX(numeric-string|int $amount)
 * @method static Money USD(numeric-string|int $amount)
 * @method static Money USN(numeric-string|int $amount)
 * @method static Money UYI(numeric-string|int $amount)
 * @method static Money UYU(numeric-string|int $amount)
 * @method static Money UYW(numeric-string|int $amount)
 * @method static Money UZS(numeric-string|int $amount)
 * @method static Money VES(numeric-string|int $amount)
 * @method static Money VND(numeric-string|int $amount)
 * @method static Money VUV(numeric-string|int $amount)
 * @method static Money WST(numeric-string|int $amount)
 * @method static Money XAF(numeric-string|int $amount)
 * @method static Money XAG(numeric-string|int $amount)
 * @method static Money XAU(numeric-string|int $amount)
 * @method static Money XBA(numeric-string|int $amount)
 * @method static Money XBB(numeric-string|int $amount)
 * @method static Money XBC(numeric-string|int $amount)
 * @method static Money XBD(numeric-string|int $amount)
 * @method static Money XBT(numeric-string|int $amount)
 * @method static Money XCD(numeric-string|int $amount)
 * @method static Money XDR(numeric-string|int $amount)
 * @method static Money XOF(numeric-string|int $amount)
 * @method static Money XPD(numeric-string|int $amount)
 * @method static Money XPF(numeric-string|int $amount)
 * @method static Money XPT(numeric-string|int $amount)
 * @method static Money XSU(numeric-string|int $amount)
 * @method static Money XTS(numeric-string|int $amount)
 * @method static Money XUA(numeric-string|int $amount)
 * @method static Money XXX(numeric-string|int $amount)
 * @method static Money YER(numeric-string|int $amount)
 * @method static Money ZAR(numeric-string|int $amount)
 * @method static Money ZMW(numeric-string|int $amount)
 * @method static Money ZWL(numeric-string|int $amount)
 * @psalm-immutable
 */
trait MoneyFactory
{
    /**
     * Convenience factory method for a Money object.
     *
     * <code>
     * $fiveDollar = Money::USD(500);
     * </code>
     *
     * @param array $arguments
     * @psalm-param non-empty-string          $method
     * @psalm-param array{numeric-string|int} $arguments
     *
     * @throws InvalidArgumentException If amount is not integer(ish).
     *
     * @psalm-pure
     */
    public static function __callStatic(string $method, array $arguments): Money
    {
        return new Money($arguments[0], new Currency($method));
    }
}


text:
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class vw_learner_VWIntLearner */

#ifndef _Included_vw_learner_VWIntLearner
#define _Included_vw_learner_VWIntLearner
#ifdef __cplusplus
extern "C"
{
#endif
/*
 * Class:     vw_learner_VWIntLearner
 * Method:    predictFloat
 * Signature: (Ljava/lang/String;ZJ)F
 */
JNIEXPORT jint JNICALL Java_vw_learner_VWIntLearner_predict
(JNIEnv *, jobject, jstring, jboolean, jlong);

#ifdef __cplusplus
}
#endif
#endif


text:
package org.kuali.kpme.edo.committeesready.dao;

import java.util.List;

import org.kuali.kpme.edo.committeesready.EdoCommitteesReadyBo;

public interface EdoCommitteesReadyDao {

	 public boolean saveOrUpdate(EdoCommitteesReadyBo submitButton );
	 public EdoCommitteesReadyBo getEdoCommitteesReady(String groupKeyCode);
	 public List<EdoCommitteesReadyBo> getEdoCommitteesReadyList();
}


text:
define(['ext','iweb/CoreModule'], function(Ext, Core) {
		return Ext.define('modules.report-roc.RocFormModel', {
		 extend: 'Ext.app.ViewModel',

		 alias: 'viewmodel.roc', // connects to viewModel

		 data: {
		    	incidentId: this.incidentId,
		    	incidentName: this.incidentName,
		    	formTypeId: this.formTypeId

		    },
		 formulas: {
		    	 report: function(get){
		    		 var report = {
		    				reportType: get('reportType'),
		    				rocDisplayName: get('rocDisplayName'),
		    				county: get('county'),
		    				date: get('date'),
		    				starttime: get('starttime'),
		    				location: get('location'),
		    				jurisdiction: get('jurisdiction'),
		    				incidentType: get('incidentType'),
		    				incidentCause: get('incidentCause'),
		    				scope: get('scope'),
		    				spreadRate: get('spreadRate'),
		    				fuelType: get('fuelType'),
		    				potential: get('potential'),
		    				percentContained: get('percentContained'),
		    				estimatedContainment: get('estimatedContainment'),
		    				estimatedControl: get('estimatedControl'),
		    				temperature: get('temperature'),
		    				relHumidity: get('relHumidity'),
		    				windSpeed: get('windSpeed'),
		    				windDirection: get('windDirection'),
		    				predictedWeather: get('predictedWeather'),
		    				evacuations: get('evacuations'),
		    				structuresThreat: get('structuresThreat'),
		    				infrastructuresThreat: get('infrastructuresThreat'),
		    				icpLocation: get('icpLocation'),
		    				airAttack: get('airAttack'),
		    				airTankers: get('airTankers'),
		    				helicopters: get('helicopters'),
		    				overhead: get('overhead'),
		    				typeIEngine: get('typeIEngine'),
		    				typeIIEngine: get('typeIIEngine'),
		    				typeIIIEngine: get('typeIIIEngine'),
		    				waterTender: get('waterTender'),
		    				dozers: get('dozers'),
		    				handcrews: get('handcrews'),
		    				comUnit: get('comUnit'),
		    				email: get('email'),
		    				simplifiedEmail: get('simplifiedEmail'),
		    				comments: get('comments'),
		    				reportBy: get('reportBy')

		    		};

		    		return report;
		    	}
		 }
	 });
});


text:
/*
 (c) 2013, Vladimir Agafonkin
 Simplify.js, a high-performance JS polyline simplification library
 mourner.github.io/simplify-js
*/

(function () { 'use strict';

// to suit your point format, run search/replace for '.x' and '.y';
// for 3D version, see 3d branch (configurability would draw significant performance overhead)

// square distance between 2 points
function getSqDist(p1, p2) {

    var dx = p1.x - p2.x,
        dy = p1.y - p2.y;

    return dx * dx + dy * dy;
}

// square distance from a point to a segment
function getSqSegDist(p, p1, p2) {

    var x = p1.x,
        y = p1.y,
        dx = p2.x - x,
        dy = p2.y - y;

    if (dx !== 0 || dy !== 0) {

        var t = ((p.x - x) * dx + (p.y - y) * dy) / (dx * dx + dy * dy);

        if (t > 1) {
            x = p2.x;
            y = p2.y;

        } else if (t > 0) {
            x += dx * t;
            y += dy * t;
        }
    }

    dx = p.x - x;
    dy = p.y - y;

    return dx * dx + dy * dy;
}
// rest of the code doesn't care about point format

// basic distance-based simplification
function simplifyRadialDist(points, sqTolerance) {

    var prevPoint = points[0],
        newPoints = [prevPoint],
        point;

    for (var i = 1, len = points.length; i < len; i++) {
        point = points[i];

        if (getSqDist(point, prevPoint) > sqTolerance) {
            newPoints.push(point);
            prevPoint = point;
        }
    }

    if (prevPoint !== point) newPoints.push(point);

    return newPoints;
}

function simplifyDPStep(points, first, last, sqTolerance, simplified) {
    var maxSqDist = 0,
        index;

    for (var i = first + 1; i < last; i++) {
        var sqDist = getSqSegDist(points[i], points[first], points[last]);

        if (sqDist > maxSqDist) {
            index = i;
            maxSqDist = sqDist;
        }
    }

    if (maxSqDist > sqTolerance) {
        if (index - first > 1) simplifyDPStep(points, first, index, sqTolerance, simplified);
        simplified.push(points[index]);
        if (last - index > 1) simplifyDPStep(points, index, last, sqTolerance, simplified);
    }
}

// simplification using Ramer-Douglas-Peucker algorithm
function simplifyDouglasPeucker(points, sqTolerance) {
    var last = points.length - 1;

    var simplified = [points[0]];
    simplifyDPStep(points, 0, last, sqTolerance, simplified);
    simplified.push(points[last]);

    return simplified;
}

// both algorithms combined for awesome performance
function simplify(points, tolerance, highestQuality) {

    if (points.length <= 2) return points;

    var sqTolerance = tolerance !== undefined ? tolerance * tolerance : 1;

    points = highestQuality ? points : simplifyRadialDist(points, sqTolerance);
    points = simplifyDouglasPeucker(points, sqTolerance);

    return points;
}

// export as AMD module / Node module / browser or worker variable
if (typeof define === 'function' && define.amd) define(function() { return simplify; });
else if (typeof module !== 'undefined') module.exports = simplify;
else if (typeof self !== 'undefined') self.simplify = simplify;
else window.simplify = simplify;

})();


text:
require "vagrant/util/busy"
require "vagrant/util/subprocess"

module VagrantPlugins
  module ProviderBhyve
    module Executor
      # This class is used to execute commands as subprocess.
      class Exec
	# When we need the command's exit code we should set parameter
	# exit_code to true, otherwise this method will return executed
	# command's stdout
	def execute(exit_code, *cmd, **opts, &block)
	  # Append in the options for subprocess
	  cmd << { notify: [:stdout, :stderr] }
	  cmd.unshift('sh', '-c')

	  interrupted = false
	  # Lambda to change interrupted to true
	  int_callback = ->{ interrupted = true }
	  result = ::Vagrant::Util::Busy.busy(int_callback) do
	    ::Vagrant::Util::Subprocess.execute(*cmd, &block)
	  end

	  return result.exit_code if exit_code

	  result.stderr.gsub!("\r\n", "\n")
	  result.stdout.gsub!("\r\n", "\n")

	  if result.exit_code != 0 || interrupted
	    raise Errors::ExecuteError
	  end

	  result.stdout[0..-2]
	end
      end
    end
  end
end


text:
<ng-template #modal let-d="dismiss">
    <form novalidate>

            <button (click)="d('')" aria-label="Close" class="close" type="button">
                ×
            </button>

                <date-input [(date)]="startDate"></date-input>

                <date-input [(date)]="endDate"></date-input>

                <button (click)="onResetFilter()" *ngIf="startDate || endDate" class="btn btn-secondary mb-2"></button>
                <button (click)="onFilterByDate()" [disabled]="!startDate && !endDate"
                        class="btn btn-primary action mb-2 space-left">{{'Filter'|translate}}</button>

                 {{ start }} - {{ end }}  {{ platformCompanyProductCount.totalCompanyCount }}

                    {{partyMap.get(companyProcessCount.partyId)}}

                    {{companyProcessCount.purchasesCount + companyProcessCount.salesCount}}
                    {{companyProcessCount.purchasesCount}}
                    {{companyProcessCount.salesCount}}

                <ngb-pagination (pageChange)="onChangePage($event)"
                                [(collectionSize)]="platformCompanyProductCount.totalCompanyCount"
                                [(page)]="page" [boundaryLinks]="true"
                                [maxSize]="5" [pageSize]="pageSize"></ngb-pagination>

        <call-status [callStatus]="retrieveProcessCountStatisticsCallStatus"></call-status>
    </form>
</ng-template>


text:
@interface SCAbstractEnvironmentObserver : NSObject<SCEnvironmentObserver>

@end


text:
require 'spec_helper'

module Landable
  describe HasTemplates do
    before(:each) do
      create_list :template, 2
      create :template, slug: 'I have a space'
    end

    let(:templates) { Landable::Template.last(3) }
    let(:subject) do
      build :page, body: "

{% template #{templates[0].slug} %}

{% template #{templates[1].slug} %}

{% template #{templates[2].slug} %}

        "
    end

    describe '#templates' do
      it 'should return templates' do
        slugs = [templates[0].slug, templates[1].slug, templates[2].slug]
        expect(subject.templates).to eq Landable::Template.where(slug: slugs)
      end
    end

    describe '#template_names' do
      it 'should pull template slugs out of the body' do
        expect(subject.template_names.sort).to eq templates.map(&:slug).uniq.sort
      end
    end

    describe '#save_templates!' do
      it 'should save the templates' do
        assets_double = double
        expect(subject).to receive(:templates) { assets_double }
        expect(subject).to receive(:templates=).with(assets_double)
        subject.save_templates!
      end

      it 'should be called during save' do
        expect(subject).to receive :save_templates!
        subject.save!
      end
    end

    describe 'body=' do
      it 'should reset the template_slug cache, then set the body' do
        subject.instance_eval { @template_slug = 'foo' }
        subject.body = 'bar'
        expect(subject.body).to eq 'bar'
        expect(subject.instance_eval { @template_slug }).to be_nil
        expect(subject.templates).to eq []
      end
    end

    describe '#templates_join_table_name' do
      it 'should generate the correct join_table, and then apologize for doing so' do
        expect(Page.send(:templates_join_table_name)).to eq "#{Landable.configuration.database_schema_prefix}landable.page_templates"
      end
    end
  end
end


text:
angular.module('alurapicServices', ['ngResource'])
	.factory('fotosResource', ['$resource', function($resource) {
		return $resource('v1/fotos/:fotoId', null, {
			update: { method: 'PUT' }
		});
	}])
	.factory('fotosService', ['fotosResource', '$q', function(fotosResource, $q) {
		return {
			salvaFoto: function(foto) {
				return $q(function(resolve, reject) {
					if(foto._id) {
						fotosResource.update({fotoId: foto._id}, foto,
							function() {
								resolve({
									inclusao: false,
									mensagem: 'Foto atualizada com sucesso.'
								});
							}, function(erro) {
								console.log(erro);
								reject({
									mensagem: 'Não foi possível atualizar a foto.'
								});
							});
					} else {
						fotosResource.save(foto,
							function() {
								resolve({
									inclusao: true,
									mensagem: 'Foto inserida com sucesso.'
								});
							}, function(erro) {
								console.log(erro);
								reject({
									mensagem: 'Não foi possível inserir a foto.'
								});
							});
					}
				});
			},
			apagaFoto: function(foto) {
				return $q(function(resolve, reject) {
					fotosResource.delete({fotoId: foto._id},
						function() {
							resolve({
								mensagem: 'Foto "' + foto.titulo + '" removida com sucesso.'
							});
						}, function(err) {
							console.log(err);
							reject({
								mensagem: 'Não foi possível remover a foto "' + foto.titulo + '".'
							});
						});
				});
			},
			carregaFotos: function() {
				return $q(function(resolve, reject) {
					fotosResource.query(resolve,
						function(err) {
							console.log(err);
							reject({
								mensagem: 'Ocorreu um erro ao carregar as fotos.'
							});
						});
				});
			},
			carregaFoto: function(id) {
				return $q(function(resolve, reject) {
					fotosResource.get({fotoId: id},
						resolve,
						function(err) {
							console.log(err);
							reject({
								mensagem: 'Ocorreu um erro ao carregar as fotos.'
							});
						});
				});
			}
		};
	}]);


text:
namespace MyLoggerReader
{
    partial class FormMain
    {
        /// <summary>
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows 窗体设计器生成的代码

        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.label1 = new System.Windows.Forms.Label();
            this.txtLoggerPath = new System.Windows.Forms.TextBox();
            this.btnBrowsePath = new System.Windows.Forms.Button();
            this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog();
            this.label2 = new System.Windows.Forms.Label();
            this.txtResultFile = new System.Windows.Forms.TextBox();
            this.btnBrowseResultFile = new System.Windows.Forms.Button();
            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
            this.statusStrip1 = new System.Windows.Forms.StatusStrip();
            this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
            this.toolStripProgressBar1 = new System.Windows.Forms.ToolStripProgressBar();
            this.btnGetFileCount = new System.Windows.Forms.Button();
            this.lblFileCount = new System.Windows.Forms.Label();
            this.btnReadFile = new System.Windows.Forms.Button();
            this.statusStrip1.SuspendLayout();
            this.SuspendLayout();
            //
            // label1
            //
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(25, 13);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(77, 12);
            this.label1.TabIndex = 0;
            this.label1.Text = "日志文件目录";
            //
            // txtLoggerPath
            //
            this.txtLoggerPath.Location = new System.Drawing.Point(117, 10);
            this.txtLoggerPath.Name = "txtLoggerPath";
            this.txtLoggerPath.Size = new System.Drawing.Size(427, 21);
            this.txtLoggerPath.TabIndex = 1;
            //
            // btnBrowsePath
            //
            this.btnBrowsePath.Location = new System.Drawing.Point(550, 8);
            this.btnBrowsePath.Name = "btnBrowsePath";
            this.btnBrowsePath.Size = new System.Drawing.Size(45, 23);
            this.btnBrowsePath.TabIndex = 2;
            this.btnBrowsePath.Text = "...";
            this.btnBrowsePath.UseVisualStyleBackColor = true;
            this.btnBrowsePath.Click += new System.EventHandler(this.btnBrowse_Click);
            //
            // label2
            //
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(27, 75);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(53, 12);
            this.label2.TabIndex = 3;
            this.label2.Text = "结果文件";
            //
            // txtResultFile
            //
            this.txtResultFile.Location = new System.Drawing.Point(117, 72);
            this.txtResultFile.Name = "txtResultFile";
            this.txtResultFile.Size = new System.Drawing.Size(427, 21);
            this.txtResultFile.TabIndex = 4;
            //
            // btnBrowseResultFile
            //
            this.btnBrowseResultFile.Location = new System.Drawing.Point(550, 72);
            this.btnBrowseResultFile.Name = "btnBrowseResultFile";
            this.btnBrowseResultFile.Size = new System.Drawing.Size(45, 23);
            this.btnBrowseResultFile.TabIndex = 5;
            this.btnBrowseResultFile.Text = "...";
            this.btnBrowseResultFile.UseVisualStyleBackColor = true;
            this.btnBrowseResultFile.Click += new System.EventHandler(this.btnBrowseResultFile_Click);
            //
            // statusStrip1
            //
            this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripStatusLabel1,
            this.toolStripProgressBar1});
            this.statusStrip1.Location = new System.Drawing.Point(0, 283);
            this.statusStrip1.Name = "statusStrip1";
            this.statusStrip1.Size = new System.Drawing.Size(607, 22);
            this.statusStrip1.TabIndex = 6;
            this.statusStrip1.Text = "statusStrip1";
            //
            // toolStripStatusLabel1
            //
            this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
            this.toolStripStatusLabel1.Size = new System.Drawing.Size(44, 17);
            this.toolStripStatusLabel1.Text = "Ready";
            //
            // toolStripProgressBar1
            //
            this.toolStripProgressBar1.Name = "toolStripProgressBar1";
            this.toolStripProgressBar1.Size = new System.Drawing.Size(100, 16);
            //
            // btnGetFileCount
            //
            this.btnGetFileCount.Location = new System.Drawing.Point(29, 119);
            this.btnGetFileCount.Name = "btnGetFileCount";
            this.btnGetFileCount.Size = new System.Drawing.Size(75, 23);
            this.btnGetFileCount.TabIndex = 7;
            this.btnGetFileCount.Text = "文件数获取";
            this.btnGetFileCount.UseVisualStyleBackColor = true;
            this.btnGetFileCount.Click += new System.EventHandler(this.btnGetFileCount_Click);
            //
            // lblFileCount
            //
            this.lblFileCount.AutoSize = true;
            this.lblFileCount.Location = new System.Drawing.Point(136, 124);
            this.lblFileCount.Name = "lblFileCount";
            this.lblFileCount.Size = new System.Drawing.Size(11, 12);
            this.lblFileCount.TabIndex = 8;
            this.lblFileCount.Text = "0";
            //
            // btnReadFile
            //
            this.btnReadFile.Location = new System.Drawing.Point(271, 119);
            this.btnReadFile.Name = "btnReadFile";
            this.btnReadFile.Size = new System.Drawing.Size(109, 23);
            this.btnReadFile.TabIndex = 9;
            this.btnReadFile.Text = "文件分析处理";
            this.btnReadFile.UseVisualStyleBackColor = true;
            this.btnReadFile.Click += new System.EventHandler(this.btnReadFile_Click);
            //
            // FormMain
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(607, 305);
            this.Controls.Add(this.btnReadFile);
            this.Controls.Add(this.lblFileCount);
            this.Controls.Add(this.btnGetFileCount);
            this.Controls.Add(this.statusStrip1);
            this.Controls.Add(this.btnBrowseResultFile);
            this.Controls.Add(this.txtResultFile);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.btnBrowsePath);
            this.Controls.Add(this.txtLoggerPath);
            this.Controls.Add(this.label1);
            this.Name = "FormMain";
            this.Text = "日志读取处理";
            this.statusStrip1.ResumeLayout(false);
            this.statusStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtLoggerPath;
        private System.Windows.Forms.Button btnBrowsePath;
        private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox txtResultFile;
        private System.Windows.Forms.Button btnBrowseResultFile;
        private System.Windows.Forms.SaveFileDialog saveFileDialog1;
        private System.Windows.Forms.StatusStrip statusStrip1;
        private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
        private System.Windows.Forms.ToolStripProgressBar toolStripProgressBar1;
        private System.Windows.Forms.Button btnGetFileCount;
        private System.Windows.Forms.Label lblFileCount;
        private System.Windows.Forms.Button btnReadFile;
    }
}


text:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ImportFromSharePointList
{
    public partial class FormatSelector : Form
    {
        public FormatSelector()
        {
            InitializeComponent();
            SAS.SharedUI.FormatsDialog fd
        }
    }
}


text:
package com.woorea.openstack.console.utils;

public class Column {

	public static final int ALIGN_LEFT = -1;
	public static final int ALIGN_RIGHT = 1;

	private String name;

	private int size;

	private int align;

	public Column(String name, int size, int align) {
		super();
		this.name = name;
		this.size = size;
		this.align = align;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	/**
	 * @param size the size to set
	 */
	public void setSize(int size) {
		this.size = size;
	}

	/**
	 * @return the align
	 */
	public int getAlign() {
		return align;
	}

	/**
	 * @param align the align to set
	 */
	public void setAlign(int align) {
		this.align = align;
	}

}


text:
import { ref, computed } from '@vue/composition-api'

export const darkMode = ref(false)

export function useDarkMode () {
  return {
    darkMode: computed(() => darkMode.value)
  }
}


text:
module AWSCloudSearch
  class CloudSearchConfig

  end
end