text:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@drawable/com_taobao_tae_sdk_simple_toast_bg" >

    <LinearLayout
        android:id="@+id/com_taobao_tae_sdk_progress_dialog_body"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:baselineAligned="false"
        android:orientation="horizontal"
        android:paddingBottom="3dp"
        android:paddingLeft="8dip"
        android:paddingRight="8dip"
        android:paddingTop="3dp" >

        <ProgressBar
            android:id="@android:id/progress"
            android:layout_width="30dp"
            android:layout_height="30dp"
            android:max="10000" />

        <TextView
            android:id="@+id/com_taobao_tae_sdk_progress_dialog_message"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center_vertical"
            android:layout_marginLeft="12dip"
            android:textColor="#FFFFFF" />
    </LinearLayout>

</FrameLayout>


text:
package org.myrobotlab.swing.widget;

import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Insets;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.BorderFactory;
import javax.swing.JCheckBox;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.border.AbstractBorder;
import javax.swing.border.TitledBorder;

public class CheckBoxTitledBorder extends AbstractBorder {

  private static final long serialVersionUID = 1L;
  private final TitledBorder _parent;
  private final JCheckBox _checkBox;

  public CheckBoxTitledBorder(String title, boolean selected) {
    _parent = BorderFactory.createTitledBorder(title);
    _checkBox = new JCheckBox(title, selected);
    _checkBox.setHorizontalTextPosition(SwingConstants.LEFT);
  }

  public boolean isSelected() {
    return _checkBox.isSelected();
  }

  public void addActionListener(ActionListener listener) {
    _checkBox.addActionListener(listener);
  }

  @Override
  public boolean isBorderOpaque() {
    return true;
  }

  @Override
  public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
    Insets borderInsets = _parent.getBorderInsets(c);
    Insets insets = getBorderInsets(c);
    int temp = (insets.top - borderInsets.top) / 2;
    _parent.paintBorder(c, g, x, y + temp, width, height - temp);
    Dimension size = _checkBox.getPreferredSize();
    final Rectangle rectangle = new Rectangle(5, 0, size.width, size.height);

    final Container container = (Container) c;
    container.addMouseListener(new MouseAdapter() {
      private void dispatchEvent(MouseEvent me) {
        if (rectangle.contains(me.getX(), me.getY())) {
          Point pt = me.getPoint();
          pt.translate(-5, 0);
          _checkBox.setBounds(rectangle);
          _checkBox.dispatchEvent(new MouseEvent(_checkBox, me.getID(), me.getWhen(), me.getModifiers(), pt.x, pt.y, me.getClickCount(), me.isPopupTrigger(), me.getButton()));
          if (!_checkBox.isValid()) {
            container.repaint();
          }
        }
      }

      @Override
      public void mousePressed(MouseEvent me) {
        dispatchEvent(me);
      }

      @Override
      public void mouseReleased(MouseEvent me) {
        dispatchEvent(me);
      }
    });
    SwingUtilities.paintComponent(g, _checkBox, container, rectangle);
  }

  public JCheckBox getCheckBox() {
    return _checkBox;
  }

  @Override
  public Insets getBorderInsets(Component c) {
    Insets insets = _parent.getBorderInsets(c);
    insets.top = Math.max(insets.top, _checkBox.getPreferredSize().height);
    return insets;
  }

  public void removeActionListener(ActionListener l) {
    _checkBox.removeActionListener(l);
  }
}

redpajama_set_name: RedPajamaGithub


text:
module.exports = WordArray

/** An array of 32-bit words. */
function WordArray(words, sigBytes) {
  this.words = words || [];

  if (sigBytes != undefined) {
      this.sigBytes = sigBytes;
  } else {
      this.sigBytes = this.words.length * 4;
  }
}

/**
 * Concatenates a word array to this word array.
 *
 * @param {WordArray} wordArray The word array to append.
 *
 * @return {WordArray} This word array.
 *
 * @example
 *
 *     wordArray1.concat(wordArray2);
 */
WordArray.prototype.concat = function (wordArray) {
  if (Buffer.isBuffer(wordArray))
    wordArray = WordArray.fromBuffer(wordArray)

        // Shortcuts
        var thisWords = this.words;
        var thatWords = wordArray.words;
        var thisSigBytes = this.sigBytes;
        var thatSigBytes = wordArray.sigBytes;

        // Clamp excess bits
        this.clamp();

        // Concat
        if (thisSigBytes % 4) {
            // Copy one byte at a time
            for (var i = 0; i < thatSigBytes; i++) {
                var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
                thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
            }
        } else if (thatWords.length > 0xffff) {
            // Copy one word at a time
            for (var i = 0; i < thatSigBytes; i += 4) {
                thisWords[(thisSigBytes + i) >>> 2] = thatWords[i >>> 2];
            }
        } else {
            // Copy all words at once
            thisWords.push.apply(thisWords, thatWords);
        }
        this.sigBytes += thatSigBytes;

        // Chainable
        return this;
}

/**
 * Removes insignificant bits.
 *
 */
WordArray.prototype.clamp = function () {
  // Shortcuts
  var words = this.words;
  var sigBytes = this.sigBytes;

  // Clamp
  words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);
  words.length = Math.ceil(sigBytes / 4);
}

WordArray.prototype.clone = function() {
  var wa = new WordArray(this.words.slice(0))
  return wa
}

WordArray.prototype.toBuffer = function() {
  var buf = new Buffer(this.words.length * 4)
  for (var i = 0; i < this.words.length; ++i) {
    var w = this.words[i]
    buf.writeUInt32BE(w, i*4, true)
  }
  return buf
}

WordArray.fromBuffer = function(buf) {
  var len = buf.length
  var dif = len % 4
  var w = []

  if (!process.browser) {
    for (var i = 0; i < len; i += 4) {
      var n = buf.readUInt32BE(i, true)
      w.push(n)
    }
    return new WordArray(w, buf.length)
  } else { //bug in browserify / buffer
    for (var i = 0; i < len - dif; i += 4) {
      var n = buf.readUInt32BE(i)
      w.push(n)
    }
    var lw = 0x0
    var off = len - dif
    for (var j = 0; j < dif; j += 1) {
      lw |=  (buf.readUInt8(off + j) << ((3-j)*8))
    }
    if (dif > 0)
      w.push(lw)
    return new WordArray(w, buf.length)
  }
}


text:
package cn.edu.nju.utils;

import cn.edu.nju.controller.QuestionController;
import cn.edu.nju.info.ResultInfo;
import org.apache.http.HttpEntity;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.log4j.Logger;

import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.util.List;

public class HttpUtil {

    static ResultInfo post(String url, List<NameValuePair> params) {
        CloseableHttpClient client = HttpClientBuilder.create().build();
        HttpPost request = new HttpPost(url);
        try {
            HttpEntity entity = new UrlEncodedFormEntity(params, Charset.forName("UTF-8"));
            request.setEntity(entity);
            client.execute(request);
            return new ResultInfo(true, "请求发送成功", null);
        } catch (IOException e) {
            e.printStackTrace();
            Logger.getLogger(HttpUtil.class).error(e);
            return new ResultInfo(false, "网络异常", null);
        }
    }

    public static void fileDownload(String fileName, String targetName,
                                    HttpServletResponse response) {
        File file = new File(fileName);
        if(!file.exists()){
            Logger.getLogger(QuestionController.class)
                    .error("No such file: " + file.getName());
            return;
        }

        try (FileInputStream fileInputStream = new FileInputStream(file);
             OutputStream outputStream = response.getOutputStream()) {

            response.setHeader("Content-Disposition", "attachment;Filename=" + targetName);
            byte[] bytes = new byte[2048];
            int len;
            while ((len = fileInputStream.read(bytes))>0){
                outputStream.write(bytes,0,len);
            }
        } catch (IOException e) {
            e.printStackTrace();
            Logger.getLogger(QuestionController.class).error(e);
        }
    }
}


text:
/*
*	@name							Show Password
*	@descripton
*	@version						1.3
*	@requires						Jquery 1.5
*
*	@author							Jan Jarfalk
*	@author-email					jan.jarfalk@unwrongest.com
*	@author-website					http://www.unwrongest.com
*
*	@special-thanks					Michel Gratton
*
*	@licens							MIT License - http://www.opensource.org/licenses/mit-license.php
*/
(function($){
     $.fn.extend({
         showPassword: function(c) {

            // Setup callback object
			var callback 	= {'fn':null,'args':{}}
				callback.fn = c;

			// Clones passwords and turn the clones into text inputs
			var cloneElement = function( element ) {

				var $element = $(element);

				$clone = $("<input />");

				// Name added for JQuery Validation compatibility
				// Element name is required to avoid script warning.
				$clone.attr({
					'type'		:	'text',
					'class'		:	$element.attr('class'),
					'style'		:	$element.attr('style'),
					'size'		:	$element.attr('size'),
					'name'		:	$element.attr('name')+'-clone',
					'tabindex' 	:	$element.attr('tabindex')
				});

				return $clone;

			};

			// Transfers values between two elements
			var update = function(a,b){
				b.val(a.val());
			};

			// Shows a or b depending on checkbox
			var setState = function( checkbox, a, b ){

				if(checkbox.is(':checked')){
					update(a,b);
					b.show();
					a.hide();
				} else {
					update(b,a);
					b.hide();
					a.show();
				}

			};

            return this.each(function() {

            	var $input					= $(this),
            		$checkbox 				= $($input.data('typetoggle'));

            	// Create clone
				var $clone = cloneElement($input);
					$clone.insertAfter($input);

				// Set callback arguments
            	if(callback.fn){
            		callback.args.input		= $input;
            		callback.args.checkbox	= $checkbox;
					callback.args.clone 	= $clone;
            	}

				$checkbox.bind('click', function() {
					setState( $checkbox, $input, $clone );
				});

				$input.bind('keyup', function() {
					update( $input, $clone )
				});

				$clone.bind('keyup', function(){
					update( $clone, $input );

					// Added for JQuery Validation compatibility
					// This will trigger validation if it's ON for keyup event
					$input.trigger('keyup');

				});

				// Added for JQuery Validation compatibility
				// This will trigger validation if it's ON for blur event
				$clone.bind('blur', function() { $input.trigger('focusout'); });

				setState( $checkbox, $input, $clone );

				if( callback.fn ){
					callback.fn( callback.args );
				}

            });
        }
    });
})(jQuery);


text:
var TranslationSpecialization = Backbone.Model.extend({
    defaults: {
        id: 0,
    },

    isNew: function(){
        return this.get('id') == 0;
    }
});

var TranslationSpecializationCollection = Backbone.Collection.extend({
    model: TranslationSpecialization,

    url: ApiUtility.getApiRootUrl()+'/specialization-translation',

    parse: function(response) {
        return response['translationSpecializations'];
    }
});


text:
"use strict";
/**
 * check, whether units are listed twice in prefixUnit
 *
 * output:
 * - "check - prefixUnit duplicates" ... list of duplicates per ontology
 */

// includes
var Q        = require( 'q' ),
    Log      = require( './util/log.js' ),
    OntoStore= require( './util/OntoStore' );

// local settings
var localCfg = {
      moduleName: 'check - prefixUnit duplicates',
      moduleKey:  '1000'
    },
    log = function( msg, type ) {
      Log( localCfg.moduleName, msg, type );
    };

function dupSearch() {

  log( 'checking for duplicates in prefixUnit' );

  // prepare results
  var resultsPerOntology = {};

  // get list of ontologies to check
  var ontos = OntoStore.getOntologies();

  for( var onto of ontos ) {

    // load data
    var units = OntoStore.getData( onto, 'prefixUnit' );

    // build lookup
    var lookup = {};
    for( var entry of units ) {

      lookup[ entry.unit ] = lookup[ entry.unit ] || [];
      lookup[ entry.unit ].push( entry );

    }

    // find URIs with multiple entries
    var dups = Object.keys( lookup )
                     .filter( (key) => lookup[ key ].length > 1 )
                     .map( (key) => lookup[ key ] );

    // add to result
    resultsPerOntology[ onto ] = dups;

    // logging
    log( '   ' + onto + ' - total: ' + units.length );
    log( '      duplicates: ' + dups.length, dups.length > 0 ? Log.WARNING : Log.MESSAGE );

  }

  // persist results
  OntoStore.storeResult( localCfg.moduleKey, localCfg.moduleName, resultsPerOntology );

  return Q( true );

}

/* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Export XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX */

// if called directly, execute, else export
if(require.main === module) {
  dupSearch().done();
} else {
  module.exports = dupSearch;
}


text:
package config

import (
	"encoding/json"
	"errors"
	"github.com/minishift/minishift/pkg/minishift/hostfolder/config"
	"io/ioutil"
	"os"
)

var AllInstancesConfig *GlobalConfigType

type GlobalConfigType struct {
	FilePath string `json:"-"`

	HostFolders   []config.HostFolderConfig
	ActiveProfile string
	SftpdPID      int
	ProxyPID      int
	SystrayPID    int
}

// Create new object with data if file exists or
// Create json file and return object if doesn't exists
func NewAllInstancesConfig(path string) (*GlobalConfigType, error) {
	cfg := &GlobalConfigType{HostFolders: []config.HostFolderConfig{}}
	cfg.FilePath = path

	// Check json file existence
	_, err := os.Stat(cfg.FilePath)
	if os.IsNotExist(err) {
		if errWrite := cfg.Write(); errWrite != nil {
			return nil, errWrite
		}
	} else {
		if errRead := cfg.read(); errRead != nil {
			return nil, errRead
		}
	}

	return cfg, nil
}

func (cfg *GlobalConfigType) Write() error {
	jsonData, err := json.MarshalIndent(cfg, "", "\t")
	if err != nil {
		return err
	}

	if err = ioutil.WriteFile(cfg.FilePath, jsonData, 0644); err != nil {
		return err
	}

	return nil
}

func (cfg *GlobalConfigType) Delete() error {
	if err := os.Remove(cfg.FilePath); err != nil {
		return err
	}

	return nil
}

func (cfg *GlobalConfigType) read() error {
	raw, err := ioutil.ReadFile(cfg.FilePath)
	if err != nil {
		return err
	}

	if !json.Valid(raw) {
		return errors.New("Invalid JSON")
	}

	json.Unmarshal(raw, &cfg)
	return nil
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.2">
	<Width>85</Width>
	<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
	<AutoSaveDataInSettings>Use</AutoSaveDataInSettings>
	<Group>Horizontal</Group>
	<CommandSet>
		<ExcludedCommand>CustomizeForm</ExcludedCommand>
	</CommandSet>
	<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
		<ChildItems>
			<Button name="Выбрать" id="22">
				<Type>CommandBarButton</Type>
				<DefaultButton>true</DefaultButton>
				<SkipOnInput>false</SkipOnInput>
				<CommandName>Form.Command.Выбрать</CommandName>
				<ExtendedTooltip name="ВыбратьExtendedTooltip" id="55"/>
			</Button>
		</ChildItems>
	</AutoCommandBar>
	<Events>
		<Event name="ChoiceProcessing">ОбработкаВыбора</Event>
		<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
	</Events>
	<ChildItems>
		<Pages name="Страницы" id="23">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Страницы</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Страницы</v8:content>
				</v8:item>
			</ToolTip>
			<ExtendedTooltip name="СтраницыExtendedTooltip" id="56"/>
			<ChildItems>
				<Page name="Пользователи" id="24">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Пользователи</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Пользователи</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="ПользователиExtendedTooltip" id="57"/>
					<ChildItems>
						<CommandBar name="КоманднаяПанельПользователи" id="31">
							<Title>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Командная панель пользователи</v8:content>
								</v8:item>
							</Title>
							<ToolTip>
								<v8:item>
									<v8:lang>ru</v8:lang>
									<v8:content>Командная панель пользователи</v8:content>
								</v8:item>
							</ToolTip>
							<CommandSource>Item.СписокПользователи</CommandSource>
							<ExtendedTooltip name="КоманднаяПанельПользователиExtendedTooltip" id="58"/>
						</CommandBar>

							<Representation>List</Representation>
							<CommandBarLocation>None</CommandBarLocation>
							<SkipOnInput>false</SkipOnInput>
							<ChoiceMode>true</ChoiceMode>
							false
							<HorizontalLines>false</HorizontalLines>
							<VerticalLines>false</VerticalLines>
							<EnableStartDrag>true</EnableStartDrag>
							<EnableDrag>true</EnableDrag>
							<DataPath>СписокПользователи</DataPath>
							<RowPictureDataPath>СписокПользователи.НомерКартинки</RowPictureDataPath>
							<RowsPicture>
								<xr:Ref>CommonPicture.СостоянияПользователей</xr:Ref>
								<xr:LoadTransparent>false</xr:LoadTransparent>
							</RowsPicture>
							<CommandSet>
								<ExcludedCommand>Copy</ExcludedCommand>
								<ExcludedCommand>Create</ExcludedCommand>
								<ExcludedCommand>Choose</ExcludedCommand>
								<ExcludedCommand>SetDeletionMark</ExcludedCommand>
								<ExcludedCommand>Change</ExcludedCommand>
								<ExcludedCommand>Delete</ExcludedCommand>
							</CommandSet>
							<SearchStringLocation>None</SearchStringLocation>
							<ViewStatusLocation>None</ViewStatusLocation>
							<SearchControlLocation>None</SearchControlLocation>
							<AutoRefresh>false</AutoRefresh>
							<AutoRefreshPeriod>60</AutoRefreshPeriod>
							<Period>
								<v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant>
								<v8:startDate>0001-01-01T00:00:00</v8:startDate>
								<v8:endDate>0001-01-01T00:00:00</v8:endDate>
							</Period>
							<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
							<RestoreCurrentRow>false</RestoreCurrentRow>
							<TopLevelParent xsi:nil="true"/>
							<ShowRoot>true</ShowRoot>
							<AllowRootChoice>false</AllowRootChoice>
							<UpdateOnDataChange>Auto</UpdateOnDataChange>
							<ContextMenu name="СписокПользователиКонтекстноеМеню" id="2"/>
							<AutoCommandBar name="СписокПользователиКоманднаяПанель" id="3"/>
							<ExtendedTooltip name="СписокПользователиExtendedTooltip" id="59"/>
							<SearchStringAddition name="СписокПользователиSearchString" id="65">
								<AdditionSource>
									<Item>СписокПользователи</Item>
									<Type>SearchStringRepresentation</Type>
								</AdditionSource>
								<ContextMenu name="СписокПользователиSearchStringContextMenu" id="66"/>
								<ExtendedTooltip name="СписокПользователиSearchStringExtendedTooltip" id="67"/>
							</SearchStringAddition>
							<ViewStatusAddition name="СписокПользователиViewStatus" id="68">
								<AdditionSource>
									<Item>СписокПользователи</Item>
									<Type>ViewStatusRepresentation</Type>
								</AdditionSource>
								<ContextMenu name="СписокПользователиViewStatusContextMenu" id="69"/>
								<ExtendedTooltip name="СписокПользователиViewStatusExtendedTooltip" id="70"/>
							</ViewStatusAddition>
							<SearchControlAddition name="СписокПользователиSearchControl" id="71">
								<AdditionSource>
									<Item>СписокПользователи</Item>
									<Type>SearchControl</Type>
								</AdditionSource>
								<ContextMenu name="СписокПользователиSearchControlContextMenu" id="72"/>
								<ExtendedTooltip name="СписокПользователиSearchControlExtendedTooltip" id="73"/>
							</SearchControlAddition>
							<Events>
								<Event name="ValueChoice">СписокПользователиВыборЗначения</Event>
							</Events>
							<ChildItems>
								<LabelField name="Наименование" id="4">
									<DataPath>СписокПользователи.Description</DataPath>
									<DefaultItem>true</DefaultItem>
									<Width>20</Width>
									<ContextMenu name="НаименованиеКонтекстноеМеню" id="5"/>
									<ExtendedTooltip name="НаименованиеExtendedTooltip" id="60"/>
								</LabelField>
							</ChildItems>

					</ChildItems>
				</Page>
				<Page name="Роли" id="25">
					<Title>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Роли исполнителей</v8:content>
						</v8:item>
					</Title>
					<ToolTip>
						<v8:item>
							<v8:lang>ru</v8:lang>
							<v8:content>Роли</v8:content>
						</v8:item>
					</ToolTip>
					<ExtendedTooltip name="РолиExtendedTooltip" id="61"/>
					<ChildItems>

							<Representation>List</Representation>
							<SkipOnInput>false</SkipOnInput>
							<ChoiceMode>true</ChoiceMode>
							false
							<HorizontalLines>false</HorizontalLines>
							<VerticalLines>false</VerticalLines>
							<EnableStartDrag>true</EnableStartDrag>
							<DataPath>СписокРоли</DataPath>
							<RowPictureDataPath>СписокРоли.DefaultPicture</RowPictureDataPath>
							<CommandSet>
								<ExcludedCommand>Copy</ExcludedCommand>
								<ExcludedCommand>Create</ExcludedCommand>
								<ExcludedCommand>Choose</ExcludedCommand>
								<ExcludedCommand>SetDeletionMark</ExcludedCommand>
								<ExcludedCommand>Change</ExcludedCommand>
								<ExcludedCommand>Delete</ExcludedCommand>
							</CommandSet>
							<SearchStringLocation>None</SearchStringLocation>
							<ViewStatusLocation>None</ViewStatusLocation>
							<SearchControlLocation>None</SearchControlLocation>
							<AutoRefresh>false</AutoRefresh>
							<AutoRefreshPeriod>60</AutoRefreshPeriod>
							<Period>
								<v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant>
								<v8:startDate>0001-01-01T00:00:00</v8:startDate>
								<v8:endDate>0001-01-01T00:00:00</v8:endDate>
							</Period>
							<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
							<RestoreCurrentRow>false</RestoreCurrentRow>
							<TopLevelParent xsi:nil="true"/>
							<ShowRoot>true</ShowRoot>
							<AllowRootChoice>false</AllowRootChoice>
							<UpdateOnDataChange>Auto</UpdateOnDataChange>
							<ContextMenu name="СписокРолиКонтекстноеМеню" id="27"/>
							<AutoCommandBar name="СписокРолиКоманднаяПанель" id="28"/>
							<ExtendedTooltip name="СписокРолиExtendedTooltip" id="62"/>
							<SearchStringAddition name="СписокРолиSearchString" id="74">
								<AdditionSource>
									<Item>СписокРоли</Item>
									<Type>SearchStringRepresentation</Type>
								</AdditionSource>
								<ContextMenu name="СписокРолиSearchStringContextMenu" id="75"/>
								<ExtendedTooltip name="СписокРолиSearchStringExtendedTooltip" id="76"/>
							</SearchStringAddition>
							<ViewStatusAddition name="СписокРолиViewStatus" id="77">
								<AdditionSource>
									<Item>СписокРоли</Item>
									<Type>ViewStatusRepresentation</Type>
								</AdditionSource>
								<ContextMenu name="СписокРолиViewStatusContextMenu" id="78"/>
								<ExtendedTooltip name="СписокРолиViewStatusExtendedTooltip" id="79"/>
							</ViewStatusAddition>
							<SearchControlAddition name="СписокРолиSearchControl" id="80">
								<AdditionSource>
									<Item>СписокРоли</Item>
									<Type>SearchControl</Type>
								</AdditionSource>
								<ContextMenu name="СписокРолиSearchControlContextMenu" id="81"/>
								<ExtendedTooltip name="СписокРолиSearchControlExtendedTooltip" id="82"/>
							</SearchControlAddition>
							<Events>
								<Event name="ValueChoice">СписокРолиВыборЗначения</Event>
							</Events>
							<ChildItems>
								<LabelField name="НаименованиеРоли" id="29">
									<DataPath>СписокРоли.Description</DataPath>
									<ContextMenu name="НаименованиеРолиКонтекстноеМеню" id="30"/>
									<ExtendedTooltip name="НаименованиеРолиExtendedTooltip" id="63"/>
								</LabelField>
							</ChildItems>

						<InputField name="СписокРолиКомментарий" id="53">
							<DataPath>Items.СписокРоли.CurrentData.Комментарий</DataPath>
							<ReadOnly>true</ReadOnly>
							<TitleLocation>Left</TitleLocation>
							<ContextMenu name="СписокРолиКомментарийКонтекстноеМеню" id="54"/>
							<ExtendedTooltip name="СписокРолиКомментарийExtendedTooltip" id="64"/>
						</InputField>
					</ChildItems>
				</Page>
			</ChildItems>
		</Pages>
	</ChildItems>
	<Attributes>
		<Attribute name="СписокПользователи" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Список пользователи</v8:content>
				</v8:item>
			</Title>
			<Type>
				<v8:Type>cfg:DynamicList</v8:Type>
			</Type>
			<UseAlways>
				<Field>СписокПользователи.Ref</Field>
				<Field>1/40</Field>
			</UseAlways>
			<Settings xsi:type="DynamicList">
				<ManualQuery>true</ManualQuery>
				<DynamicDataRead>true</DynamicDataRead>
				<QueryText>ВЫБРАТЬ
	Пользователи.Ссылка,
	Пользователи.ПометкаУдаления,
	Пользователи.Предопределенный,
	Пользователи.Наименование,
	ВЫБОР
		КОГДА Пользователи.ПометкаУдаления
			ТОГДА 0
		ИНАЧЕ 1
	КОНЕЦ КАК НомерКартинки
ИЗ
	Справочник.Пользователи КАК Пользователи
ГДЕ
	Пользователи.Недействителен = ЛОЖЬ
	И Пользователи.Служебный = ЛОЖЬ
	И Пользователи.ПометкаУдаления = ЛОЖЬ</QueryText>
				<MainTable>Catalog.Пользователи</MainTable>
				<ListSettings>
					<dcsset:filter>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>dfcece9d-5077-440b-b6b3-45a5cb4538eb</dcsset:userSettingID>
					</dcsset:filter>
					<dcsset:order>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>88619765-ccb3-46c6-ac52-38e9c992ebd4</dcsset:userSettingID>
					</dcsset:order>
					<dcsset:conditionalAppearance>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>b75fecce-942b-4aed-abc9-e6a02e460fb3</dcsset:userSettingID>
					</dcsset:conditionalAppearance>
					<dcsset:itemsViewMode>Normal</dcsset:itemsViewMode>
					<dcsset:itemsUserSettingID>911b6018-f537-43e8-a417-da56b22f9aec</dcsset:itemsUserSettingID>
				</ListSettings>
			</Settings>
		</Attribute>
		<Attribute name="СписокРоли" id="3">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Список роли</v8:content>
				</v8:item>
			</Title>
			<Type>
				<v8:Type>cfg:DynamicList</v8:Type>
			</Type>
			<UseAlways>
				<Field>СписокРоли.ИспользуетсяСОбъектамиАдресации</Field>
				<Field>СписокРоли.Ref</Field>
			</UseAlways>
			<Settings xsi:type="DynamicList">
				<ManualQuery>true</ManualQuery>
				<DynamicDataRead>true</DynamicDataRead>
				<QueryText>ВЫБРАТЬ
	СправочникРолиИсполнителей.Ссылка,
	СправочникРолиИсполнителей.ВерсияДанных,
	СправочникРолиИсполнителей.ПометкаУдаления,
	СправочникРолиИсполнителей.Предопределенный,
	СправочникРолиИсполнителей.Код,
	СправочникРолиИсполнителей.Наименование,
	СправочникРолиИсполнителей.ИспользуетсяБезОбъектовАдресации,
	СправочникРолиИсполнителей.КраткоеПредставление,
	СправочникРолиИсполнителей.ИспользуетсяСОбъектамиАдресации,
	СправочникРолиИсполнителей.Комментарий,
	СправочникРолиИсполнителей.ТипыДополнительногоОбъектаАдресации,
	СправочникРолиИсполнителей.ТипыОсновногоОбъектаАдресации,
	СправочникРолиИсполнителей.ВнешняяРоль,
	СправочникРолиИсполнителей.УзелОбмена,
	ВЫБОР
		КОГДА СправочникРолиИсполнителей.ИспользуетсяСОбъектамиАдресации
			ТОГДА ИСТИНА
		КОГДА СправочникРолиИсполнителей.Ссылка В
				(ВЫБРАТЬ ПЕРВЫЕ 1
					РегистрСведений.ИсполнителиЗадач.РольИсполнителя.Ссылка
				ИЗ
					РегистрСведений.ИсполнителиЗадач
				ГДЕ
					РегистрСведений.ИсполнителиЗадач.РольИсполнителя = СправочникРолиИсполнителей.Ссылка)
			ТОГДА ИСТИНА
		ИНАЧЕ ЛОЖЬ
	КОНЕЦ КАК ЕстьИсполнители
ИЗ
	Справочник.РолиИсполнителей КАК СправочникРолиИсполнителей</QueryText>
				<MainTable>Catalog.РолиИсполнителей</MainTable>
				<ListSettings>
					<dcsset:filter>
						<dcsset:item xsi:type="dcsset:FilterItemComparison">
							<dcsset:use>false</dcsset:use>
							<dcsset:left xsi:type="dcscor:Field">ИспользуетсяБезОбъектовАдресации</dcsset:left>
							<dcsset:comparisonType>Equal</dcsset:comparisonType>
							<dcsset:right xsi:type="xs:boolean">false</dcsset:right>
						</dcsset:item>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>dfcece9d-5077-440b-b6b3-45a5cb4538eb</dcsset:userSettingID>
					</dcsset:filter>
					<dcsset:order>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>88619765-ccb3-46c6-ac52-38e9c992ebd4</dcsset:userSettingID>
					</dcsset:order>
					<dcsset:conditionalAppearance>
						<dcsset:item>
							<dcsset:selection/>
							<dcsset:filter>
								<dcsset:item xsi:type="dcsset:FilterItemComparison">
									<dcsset:left xsi:type="dcscor:Field">ВнешняяРоль</dcsset:left>
									<dcsset:comparisonType>Equal</dcsset:comparisonType>
									<dcsset:right xsi:type="xs:boolean">false</dcsset:right>
								</dcsset:item>
								<dcsset:item xsi:type="dcsset:FilterItemComparison">
									<dcsset:left xsi:type="dcscor:Field">ЕстьИсполнители</dcsset:left>
									<dcsset:comparisonType>Equal</dcsset:comparisonType>
									<dcsset:right xsi:type="xs:boolean">false</dcsset:right>
								</dcsset:item>
							</dcsset:filter>
							<dcsset:appearance>
								<dcscor:item xsi:type="dcsset:SettingsParameterValue">
									<dcscor:parameter>ЦветТекста</dcscor:parameter>
									<dcscor:value xsi:type="v8ui:Color">style:РольБезИсполнителей</dcscor:value>
								</dcscor:item>
							</dcsset:appearance>
						</dcsset:item>
						<dcsset:viewMode>Normal</dcsset:viewMode>
						<dcsset:userSettingID>b75fecce-942b-4aed-abc9-e6a02e460fb3</dcsset:userSettingID>
					</dcsset:conditionalAppearance>
					<dcsset:itemsViewMode>Normal</dcsset:itemsViewMode>
					<dcsset:itemsUserSettingID>911b6018-f537-43e8-a417-da56b22f9aec</dcsset:itemsUserSettingID>
				</ListSettings>
			</Settings>
		</Attribute>
	</Attributes>
	<Commands>
		<Command name="Выбрать" id="1">
			<Title>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Выбрать</v8:content>
				</v8:item>
			</Title>
			<ToolTip>
				<v8:item>
					<v8:lang>ru</v8:lang>
					<v8:content>Выбрать</v8:content>
				</v8:item>
			</ToolTip>
			<Picture>
				<xr:Ref>StdPicture.ChooseValue</xr:Ref>
				<xr:LoadTransparent>true</xr:LoadTransparent>
			</Picture>
			<Action>Выбрать</Action>
			<Representation>TextPicture</Representation>
		</Command>
	</Commands>
	<Parameters>
		<Parameter name="Исполнитель">
			<Type/>
		</Parameter>
		<Parameter name="ПоказыватьФункции">
			<Type>
				<v8:Type>xs:boolean</v8:Type>
			</Type>
		</Parameter>
		<Parameter name="ТолькоПростыеРоли">
			<Type>
				<v8:Type>xs:boolean</v8:Type>
			</Type>
		</Parameter>
		<Parameter name="БезВнешнихРолей">
			<Type>
				<v8:Type>xs:boolean</v8:Type>
			</Type>
		</Parameter>
	</Parameters>
	<CommandInterface>
		<CommandBar>
			<Item>
				<Command>0:84aada14-1a22-46de-b6dc-67e663d3a9f7</Command>
				<Type>Auto</Type>
				<DefaultVisible>false</DefaultVisible>
				<Visible>
					<xr:Common>false</xr:Common>
				</Visible>
			</Item>
			<Item>
				<Command>0</Command>
				<Type>Auto</Type>
				<DefaultVisible>false</DefaultVisible>
				<Visible>
					<xr:Common>false</xr:Common>
				</Visible>
			</Item>
			<Item>
				<Command>0</Command>
				<Type>Auto</Type>
				<DefaultVisible>false</DefaultVisible>
				<Visible>
					<xr:Common>false</xr:Common>
				</Visible>
			</Item>
			<Item>
				<Command>0</Command>
				<Type>Auto</Type>
				<DefaultVisible>false</DefaultVisible>
				<Visible>
					<xr:Common>false</xr:Common>
				</Visible>
			</Item>
			<Item>
				<Command>0</Command>
				<Type>Auto</Type>
				<DefaultVisible>false</DefaultVisible>
				<Visible>
					<xr:Common>false</xr:Common>
				</Visible>
			</Item>
		</CommandBar>
	</CommandInterface>
</Form>


text: __all__ = ['ttypes', 'constants', 'ThriftEventTransmissionService']


text:
// Copyright Joyent, Inc. and other Node contributors.
//
// 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.

'use strict';
/*
 * The goal of this test is to cover the Workers' implementation of
 * Worker.prototype.destroy. Worker.prototype.destroy is called within
 * the worker's context: once when the worker is still connected to the
 * master, and another time when it's not connected to it, so that we cover
 * both code paths.
 */

const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
let worker1, worker2;

if (cluster.isMaster) {
  worker1 = cluster.fork();
  worker2 = cluster.fork();

  [worker1, worker2].forEach(function(worker) {
    worker.on('disconnect', common.mustCall());
    worker.on('exit', common.mustCall());
  });
} else if (cluster.worker.id === 1) {
  // Call destroy when worker is disconnected
  cluster.worker.process.on('disconnect', function() {
    cluster.worker.destroy();
  });

  const w = cluster.worker.disconnect();
  assert.strictEqual(w, cluster.worker);
} else {
  // Call destroy when worker is not disconnected yet
  cluster.worker.destroy();
}


text:
start_test PageSpeed resources should have a content length.
HTML_URL="$EXAMPLE_ROOT/rewrite_css_images.html?PageSpeedFilters=rewrite_css"
fetch_until -save "$HTML_URL" "fgrep -c rewrite_css_images.css.pagespeed.cf" 1
# Pull the rewritten resource name out so we get an accurate hash.
REWRITTEN_URL=$(grep rewrite_css_images.css $FETCH_UNTIL_OUTFILE | \
                awk -F'"' '{print $(NF-1)}')
if [[ $REWRITTEN_URL == *//* ]]; then
  URL="$REWRITTEN_URL"
else
  URL="$REWRITTEN_ROOT/$REWRITTEN_URL"
fi
# This will use REWRITE_DOMAIN as an http_proxy if set, otherwise no proxy.
OUT=$(http_proxy=${REWRITE_DOMAIN:-} $WGET_DUMP $URL)
check_from "$OUT" grep "^Content-Length:"
check_not_from "$OUT" grep "^Transfer-Encoding: chunked"
check_not_from "$OUT" grep "^Cache-Control:.*private"


text:
module Dawn
		module Kb
			# Automatically created with rake on 2015-07-29
			class CVE_2015_3227
				include DependencyCheck

				def initialize
          message = "The (1) jdom.rb and (2) rexml.rb components in Active Support in Ruby on Rails before 4.1.11 and 4.2.x before 4.2.2, when JDOM or REXML is enabled, allow remote attackers to cause a denial of service (SystemStackError) via a large XML document depth."

          super({
            :name=>"CVE-2015-3227",
            :cvss=>"AV:N/AC:L/Au:N/C:N/I:N/A:P",
            :release_date => Date.new(2015, 7, 26),
            :cwe=>"",
            :owasp=>"A9",
            :applies=>["sinatra", "padrino", "rails"],
            :kind=>Dawn::KnowledgeBase::DEPENDENCY_CHECK,
            :message=>message,
            :mitigation=>"Please upgrade activesupport gem to latest version or at least 4.1.12 or 4.2.3. This is automatically done by upgrading your Rails environment if you are using it.",
            :aux_links=>["https://groups.google.com/forum/message/raw?msg=rubyonrails-security/bahr2JLnxvk/x4EocXnHPp8J"]
           })

          self.safe_dependencies = [{:name=>"activesupport", :version=>['4.1.12', '4.2.3']}]
				end
			end
		end
end


text:
layout: default

link: Tell them to support 2FA
tweet: Security is important, @TWITTERHANDLE. We'd like it if you supported two factor auth.

link_progress: Thank them for working on 2FA
tweet_progress: Thanks for working on support for two factor auth, @TWITTERHANDLE!
hash: SupportTwoFactorAuth
---

                Contribute

            Home

            Categories

                {% for section in site.data.main.sections %}

                    {{ section.title }}

                {% endfor %}

            Providers

Two Factor Auth (2FA)

List of websites and whether or not they support
                    2FA.

                    Also see the list of 2FA providers and the platforms they support.

                    Add your own favorite site by submitting a pull request on the
                    GitHub repo.

        {% for section in site.data.main.sections %}

{{ section.title }}

                            Docs
                            SMS
                            Phone Call
                            Email
                            Hardware Token
                            Software Implementation

                        {% assign section_file = site.data[section.id] %}

{% capture website_names %}
{% for website in section_file.websites %}
{{ website.name | downcase }}
{% unless forloop.last %},{% endunless %}
{% endfor %}
{% endcapture %}

                        {% assign lowercase_names = website_names | split:',' | sort %}

                        {% for item in (0..lowercase_names.size) %}
                            {% capture lowercase_name %}{{ lowercase_names[item] | strip | strip_newlines }}{% endcapture %}
                            {% for website in section_file.websites %}
                                {% assign current_name = website.name | downcase %}
                                {% if lowercase_name == current_name %}

                                        {% if website.tfa %}

                                            {% if website.img %}

                                            {% endif %}
                                                {{ website.name }}
                                                {% include international.html website=website %}

                                            {% if website.doc %}

                                            {% endif %}

                                            {% if website.sms %}

                                            {% endif %}

                                            {% if website.phone %}

                                            {% endif %}

                                            {% if website.email %}

                                            {% endif %}

                                            {% if website.hardware %}

                                            {% endif %}

                                            {% if website.software %}

                                            {% endif %}

                                        {% else %}

                                            {% if website.img %}

                                            {% endif %}
                                                {{ website.name }}
                                            {% if website.status %}

                                                         In Progress!

                                            {% endif %}

                                            {% if website.twitter %}

                                                {% if website.status %}
                                                     {{page.link_progress}}
                                                {% else %}
                                                     {{page.link}}

                                                {% endif %}
                                            {% else %}

                                            {% endif %}
                                        {% endif %}
                                {% endif %}
                            {% endfor %}
                        {% endfor %}

            {% unless forloop.last %}

            {% endunless %}

        {% endfor %}


text:
void gml_check(tinyxml2::XMLElement* root, const char* root_tag)
{
    if (root == nullptr)
        throw std::runtime_error("Invalid xml");
    if (root->NoChildren())
        throw std::runtime_error("Root has not children.");
    if (root->FirstChild()->ToElement()->Attribute("decimal") == nullptr)
        throw std::runtime_error("Coordinates has no decimal attribute.");
    if (root->FirstChild()->ToElement()->Attribute("cs") == nullptr)
        throw std::runtime_error("Coordinates has no cs attribute.");
    if (root->FirstChild()->ToElement()->Attribute("ts") == nullptr)
        throw std::runtime_error("Coordinates has no ts attribute.");

    using value_check = std::tuple<const char*, const char*, const char*>;
    std::vector<value_check> tag_checks = {
        value_check("", root_tag, root->Name()),
        value_check("", "gml:coordinates", root->FirstChild()->ToElement()->Name()),
        value_check("", ".", root->FirstChild()->ToElement()->Attribute("decimal")),
        value_check("", ",", root->FirstChild()->ToElement()->Attribute("cs")),
        value_check("", " ", root->FirstChild()->ToElement()->Attribute("ts")),
    };

    for (const auto& check : tag_checks) {
        if (std::string(std::get<1>(check)) != std::get<2>(check))
        {
            std::stringstream msg;
            msg << std::get<0>(check) << " " << std::get<1>(check) << " is not " << std::get<2>(check);
            throw std::runtime_error(msg.str());
        }
    }
}

#endif


text:
namespace blink {

InterpolationValue SVGLengthListInterpolationType::maybeConvertNeutral(const InterpolationValue& underlying, ConversionCheckers& conversionCheckers) const
{
    size_t underlyingLength = UnderlyingLengthChecker::getUnderlyingLength(underlying);
    conversionCheckers.append(UnderlyingLengthChecker::create(underlyingLength));

    if (underlyingLength == 0)
        return nullptr;

    OwnPtr<InterpolableList> result = InterpolableList::create(underlyingLength);
    for (size_t i = 0; i < underlyingLength; i++)
        result->set(i, SVGLengthInterpolationType::neutralInterpolableValue());
    return InterpolationValue(result.release());
}

InterpolationValue SVGLengthListInterpolationType::maybeConvertSVGValue(const SVGPropertyBase& svgValue) const
{
    if (svgValue.type() != AnimatedLengthList)
        return nullptr;

    const SVGLengthList& lengthList = toSVGLengthList(svgValue);
    OwnPtr<InterpolableList> result = InterpolableList::create(lengthList.length());
    for (size_t i = 0; i < lengthList.length(); i++) {
        InterpolationValue component = SVGLengthInterpolationType::convertSVGLength(*lengthList.at(i));
        result->set(i, component.interpolableValue.release());
    }
    return InterpolationValue(result.release());
}

PairwiseInterpolationValue SVGLengthListInterpolationType::mergeSingleConversions(InterpolationValue&& start, InterpolationValue&& end) const
{
    size_t startLength = toInterpolableList(*start.interpolableValue).length();
    size_t endLength = toInterpolableList(*end.interpolableValue).length();
    if (startLength != endLength)
        return nullptr;
    return InterpolationType::mergeSingleConversions(std::move(start), std::move(end));
}

void SVGLengthListInterpolationType::composite(UnderlyingValueOwner& underlyingValueOwner, double underlyingFraction, const InterpolationValue& value, double interpolationFraction) const
{
    size_t startLength = toInterpolableList(*underlyingValueOwner.value().interpolableValue).length();
    size_t endLength = toInterpolableList(*value.interpolableValue).length();

    if (startLength == endLength)
        InterpolationType::composite(underlyingValueOwner, underlyingFraction, value, interpolationFraction);
    else
        underlyingValueOwner.set(*this, value);
}

SVGPropertyBase* SVGLengthListInterpolationType::appliedSVGValue(const InterpolableValue& interpolableValue, const NonInterpolableValue*) const
{
    ASSERT_NOT_REACHED();
    // This function is no longer called, because apply has been overridden.
    return nullptr;
}

void SVGLengthListInterpolationType::apply(const InterpolableValue& interpolableValue, const NonInterpolableValue* nonInterpolableValue, InterpolationEnvironment& environment) const
{
    SVGElement& element = environment.svgElement();
    SVGLengthContext lengthContext(&element);

    SVGLengthList* result = SVGLengthList::create(m_unitMode);
    const InterpolableList& list = toInterpolableList(interpolableValue);
    for (size_t i = 0; i < list.length(); i++) {
        result->append(SVGLengthInterpolationType::resolveInterpolableSVGLength(*list.get(i), lengthContext, m_unitMode, m_negativeValuesForbidden));
    }

    element.setWebAnimatedAttribute(attribute(), result);
}

} // namespace blink


text:
require 'rubygems'
require 'csv'
require 'json'
require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'lib', 'csv2json-version.rb')

module JSON2CSV

    def parse(input, output, headers=nil, csvOptions=nil)
        json = JSON.parse(input)

        unless headers
            headers = json[0].keys
        end

        outputCSV = CSV.generate(csvOptions) do |csv|
            csv << headers

            json.each do |obj|
                sortedValues = Array.new(headers.length)

                obj.each do |key, val|
                    headers.each_index { |i|
                        sortedValues[i] = val if headers[i] == key
                    }
                end

                csv << sortedValues
            end
        end

        output << outputCSV
    end

    module_function :parse

end


text: Repo containing 8085 assembly programs as exercises