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

<title>ArchiveInputStream</title>
<meta name="date" content="2016-09-23">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

no.nordicsemi.android.dfu.internal

Class ArchiveInputStream

java.lang.Object

java.io.InputStream

java.io.FilterInputStream

java.util.zip.InflaterInputStream

java.util.zip.ZipInputStream

no.nordicsemi.android.dfu.internal.ArchiveInputStream

All Implemented Interfaces:

java.io.Closeable, java.lang.AutoCloseable

public class ArchiveInputStream
extends java.util.zip.ZipInputStream

Reads the firmware files from the a ZIP file. The ZIP file must be either created using the nrf utility tool, available together with Master Control Panel v3.8.0+,
 or follow the backward compatibility syntax: must contain only files with names: application.hex/bin, softdevice.hex/dat or bootloader.hex/bin, optionally also application.dat
 and/or system.dat with init packets.

The ArchiveInputStream will read only files with types specified by types parameter of the constructor.

Field Summary

Fields inherited from class java.util.zip.ZipInputStream

CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER

Fields inherited from class java.util.zip.InflaterInputStream

buf, closed, inf, len

Fields inherited from class java.io.FilterInputStream

in

Constructor Summary

Constructors

Constructor and Description

ArchiveInputStream(java.io.InputStream stream,
                  int mbrSize,
                  int types)

 The ArchiveInputStream read HEX or BIN files from the Zip stream.

Method Summary

All Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

int
applicationImageSize()

Returns the total size of the Application firmware.

int
available()

Returns the number of bytes that has not been read yet.

int
bootloaderImageSize()

Returns the total size of the Bootloader firmware.

void
close()

byte[]
getApplicationInit()

Returns the content of the init file for the Application or null if no application file in the ZIP, or the DAT file is not provided.

int
getContentType()

Returns the content type based on the content of the ZIP file.

long
getCrc32()

Returns the CRC32 of the part of the firmware that was already read.

Manifest
getManifest()

Returns the manifest object if it was specified in the ZIP file.

byte[]
getSystemInit()

Returns the content of the init file for SoftDevice and/or Bootloader.

void
mark(int readlimit)

Marks the current position in the stream.

boolean
markSupported()

int
read(byte[] buffer)

void
reset()

int
setContentType(int type)

Truncates the current content type.

int
softDeviceImageSize()

Returns the total size of the SoftDevice firmware.

Methods inherited from class java.util.zip.ZipInputStream

closeEntry, createZipEntry, getNextEntry, read, skip

Methods inherited from class java.util.zip.InflaterInputStream

fill, read

Methods inherited from class java.lang.Object

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

Constructor Detail

ArchiveInputStream

public ArchiveInputStream(java.io.InputStream stream,
                          int mbrSize,
                          int types)
                   throws java.io.IOException

 The ArchiveInputStream read HEX or BIN files from the Zip stream. It may skip some of them, depending on the value of the types parameter.
 This is useful if the DFU service wants to send the Soft Device and Bootloader only, and then the Application in the following connection, despite
 the ZIP file contains all 3 HEX/BIN files.
 When types is equal to DfuBaseService.TYPE_AUTO all present files are read.

Use bit combination of the following types:

DfuBaseService.TYPE_SOFT_DEVICE

DfuBaseService.TYPE_BOOTLOADER

DfuBaseService.TYPE_APPLICATION

DfuBaseService.TYPE_AUTO

Parameters:

stream - the Zip Input Stream

mbrSize - The size of the MRB segment (Master Boot Record) on the device. The parser will cut data from addresses below that number from all HEX files.

types - File types that are to be read from the ZIP. Use DfuBaseService.TYPE_APPLICATION etc.

Throws:

java.io.IOException

Method Detail

close

public void close()
           throws java.io.IOException

Specified by:

close in interface java.io.Closeable

Specified by:

close in interface java.lang.AutoCloseable

Overrides:

close in class java.util.zip.ZipInputStream

Throws:

java.io.IOException

read

public int read(@NonNull
                byte[] buffer)
         throws java.io.IOException

Overrides:

read in class java.io.FilterInputStream

Throws:

java.io.IOException

markSupported

public boolean markSupported()

Overrides:

markSupported in class java.util.zip.InflaterInputStream

mark

public void mark(int readlimit)

Marks the current position in the stream. The parameter is ignored.

Overrides:

mark in class java.util.zip.InflaterInputStream

Parameters:

readlimit - this parameter is ignored, can be anything

reset

public void reset()
           throws java.io.IOException

Overrides:

reset in class java.util.zip.InflaterInputStream

Throws:

java.io.IOException

getCrc32

public long getCrc32()

Returns the CRC32 of the part of the firmware that was already read.

Returns:

the CRC

getManifest

public Manifest getManifest()

Returns the manifest object if it was specified in the ZIP file.

Returns:

the manifest object

getContentType

public int getContentType()

Returns the content type based on the content of the ZIP file. The content type may be truncated using setContentType(int).

Returns:

a bit field of TYPE_SOFT_DEVICE, TYPE_BOOTLOADER and TYPE_APPLICATION

setContentType

public int setContentType(int type)

Truncates the current content type. May be used to hide some files, f.e. to send Soft Device and Bootloader without Application or only the Application.

Parameters:

type - the new type

Returns:

the final type after truncating

available

public int available()

Returns the number of bytes that has not been read yet. This value includes only firmwares matching the content type set by the construcotor or the setContentType(int) method.

Overrides:

available in class java.util.zip.ZipInputStream

softDeviceImageSize

public int softDeviceImageSize()

Returns the total size of the SoftDevice firmware. In case the firmware was given as a HEX, this method returns the size of the BIN content of the file.

Returns:

the size of the SoftDevice firmware (BIN part)

bootloaderImageSize

public int bootloaderImageSize()

Returns the total size of the Bootloader firmware. In case the firmware was given as a HEX, this method returns the size of the BIN content of the file.

Returns:

the size of the Bootloader firmware (BIN part)

applicationImageSize

public int applicationImageSize()

Returns the total size of the Application firmware. In case the firmware was given as a HEX, this method returns the size of the BIN content of the file.

Returns:

the size of the Application firmware (BIN part)

getSystemInit

public byte[] getSystemInit()

Returns the content of the init file for SoftDevice and/or Bootloader. When both SoftDevice and Bootloader are present in the ZIP file (as two files using the compatibility mode
 or as one file using the new Distribution packet) the system init contains validation data for those two files combined (e.g. the CRC value). This method may return
 null if there is no SoftDevice nor Bootloader in the ZIP or the DAT file is not present there.

Returns:

the content of the init packet for SoftDevice and/or Bootloader

getApplicationInit

public byte[] getApplicationInit()

Returns the content of the init file for the Application or null if no application file in the ZIP, or the DAT file is not provided.

Returns:

the content of the init packet for Application

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
package org.apache.ddlutils.platform.mssql;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Types;

import org.apache.ddlutils.PlatformInfo;
import org.apache.ddlutils.model.Table;
import org.apache.ddlutils.platform.PlatformImplBase;

/**
 * The platform implementation for the Microsoft SQL Server database.
 *
 * @version $Revision: 231306 $
 */
public class MSSqlPlatform extends PlatformImplBase
{
    /** Database name of this platform. */
    public static final String DATABASENAME         = "MsSql";
    /** The standard SQLServer jdbc driver. */
    public static final String JDBC_DRIVER          = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    /** The new SQLServer 2005 jdbc driver which can also be used for SQL Server 2000. */
    public static final String JDBC_DRIVER_NEW      = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
    /** The subprotocol used by the standard SQL Server driver. */
    public static final String JDBC_SUBPROTOCOL     = "microsoft:sqlserver";
    /** The subprotocol recommended for the newer SQL Server 2005 driver. */
    public static final String JDBC_SUBPROTOCOL_NEW = "sqlserver";
    /** The subprotocol internally returned by the newer SQL Server 2005 driver. */
    public static final String JDBC_SUBPROTOCOL_INTERNAL = "sqljdbc";

    /**
     * Creates a new platform instance.
     */
    public MSSqlPlatform()
    {
        PlatformInfo info = getPlatformInfo();

        info.setMaxIdentifierLength(128);

        info.addNativeTypeMapping(Types.ARRAY,         "IMAGE",         Types.LONGVARBINARY);
        // BIGINT will be mapped back to BIGINT by the model reader
        info.addNativeTypeMapping(Types.BIGINT,        "DECIMAL(19,0)");
        info.addNativeTypeMapping(Types.BLOB,          "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.CLOB,          "TEXT",          Types.LONGVARCHAR);
        info.addNativeTypeMapping(Types.DATE,          "DATETIME",      Types.TIMESTAMP);
        info.addNativeTypeMapping(Types.DISTINCT,      "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.DOUBLE,        "FLOAT",         Types.FLOAT);
        info.addNativeTypeMapping(Types.INTEGER,       "INT");
        info.addNativeTypeMapping(Types.JAVA_OBJECT,   "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.LONGVARBINARY, "IMAGE");
        info.addNativeTypeMapping(Types.LONGVARCHAR,   "TEXT");
        info.addNativeTypeMapping(Types.NULL,          "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.OTHER,         "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.REF,           "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.STRUCT,        "IMAGE",         Types.LONGVARBINARY);
        info.addNativeTypeMapping(Types.TIME,          "DATETIME",      Types.TIMESTAMP);
        info.addNativeTypeMapping(Types.TIMESTAMP,     "DATETIME");
        info.addNativeTypeMapping(Types.TINYINT,       "SMALLINT",      Types.SMALLINT);
        info.addNativeTypeMapping("BOOLEAN",  "BIT",   "BIT");
        info.addNativeTypeMapping("DATALINK", "IMAGE", "LONGVARBINARY");

        info.setDefaultSize(Types.CHAR,       254);
        info.setDefaultSize(Types.VARCHAR,    254);
        info.setDefaultSize(Types.BINARY,     254);
        info.setDefaultSize(Types.VARBINARY,  254);

        setSqlBuilder(new MSSqlBuilder(this));
        setModelReader(new MSSqlModelReader(this));
    }

    /**
     * {@inheritDoc}
     */
    public String getName()
    {
        return DATABASENAME;
    }

    /**
     * Determines whether we need to use identity override mode for the given table.
     *
     * @param table The table
     * @return true if identity override mode is needed
     */
    private boolean useIdentityOverrideFor(Table table)
    {
        return isIdentityOverrideOn() &&
               getPlatformInfo().isIdentityOverrideAllowed() &&
               (table.getAutoIncrementColumns().length > 0);
    }

    /**
     * {@inheritDoc}
     */
    protected void beforeInsert(Connection connection, Table table) throws SQLException
    {
        if (useIdentityOverrideFor(table))
        {
            MSSqlBuilder builder = (MSSqlBuilder)getSqlBuilder();

            connection.createStatement().execute(builder.getEnableIdentityOverrideSql(table));
        }
    }

    /**
     * {@inheritDoc}
     */
    protected void afterInsert(Connection connection, Table table) throws SQLException
    {
        if (useIdentityOverrideFor(table))
        {
            MSSqlBuilder builder = (MSSqlBuilder)getSqlBuilder();

            connection.createStatement().execute(builder.getDisableIdentityOverrideSql(table));
        }
    }

    /**
     * {@inheritDoc}
     */
    protected void beforeUpdate(Connection connection, Table table) throws SQLException
    {
        beforeInsert(connection, table);
    }

    /**
     * {@inheritDoc}
     */
    protected void afterUpdate(Connection connection, Table table) throws SQLException
    {
        afterInsert(connection, table);
    }
}

redpajama_set_name: RedPajamaGithub


text:
package io.github.sifu.springbootsell.pojo;

import io.github.sifu.springbootsell.enums.OrderStatusEnum;
import io.github.sifu.springbootsell.enums.PayStatusEnum;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单实体
 *
 * @author sifu
 */
@Entity
@Data
public class OrderMaster {

    /**
     * 订单ID
     */
    @Id
    private String orderId;

    /**
     * 买家名称
     */
    private String buyerName;

    /**
     * 买家手机号
     */
    private String buyerPhone;

    /**
     * 买家地址
     */
    private String buyerAddress;

    /**
     * 买家微信Openid
     */
    private String buyerOpenid;

    /**
     * 订单总金额
     */
    private BigDecimal orderAmount;

    /**
     * 订单状态,默认为新下单
     */
    private Integer orderStatus = OrderStatusEnum.NEW.getCode();

    /**
     * 支付状态:默认为未支付
     */
    private Integer payStatus = PayStatusEnum.WAIT.getCode();

    /**
     * 创建时间
     */
    @CreatedDate
    private Date createTime;

    /**
     * 更新时间
     */
    @LastModifiedDate
    private Date updateTime;

}


text:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Text;
using TimeHACK.Engine;

namespace TimeHACK.OS.Win95.Win95Apps
{
    public partial class WinClassicWordPad : UserControl
    {
        WindowManager wm = new WindowManager();

        bool btnBoldSelected = true;
        bool btnItalicSelected = true;
        bool btnUnderlineSelected = true;
        bool doBold;
        bool doItalic;
        bool doUnderline;
        public WinClassicWordPad()
        {
            InitializeComponent();
            foreach (ToolStripMenuItem item in topmenu.Items)
            {
                item.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((0)));
                item.BackColor = Color.Silver;
                item.BackgroundImage = Properties.Resources.sliversilver;
                item.BackgroundImageLayout = ImageLayout.Center;
                item.DisplayStyle = ToolStripItemDisplayStyle.Text;
            }

            // Time to prepare to load all the fonts up for the combo boxes

            foreach (FontFamily font in System.Drawing.FontFamily.Families)
            {
                // Added to the ComboBox here

                comboFont.Items.Add(font.Name);
            }
        }

        #region Format_Buttons

        private void btnBold_Click(object sender, EventArgs e)
        {
            if (btnBoldSelected == false)
            {
                btnBold.BackgroundImage = null;
                btnBoldSelected = true;

            } else {
                btnBold.BackgroundImage = Properties.Resources.sliversilver;
                btnBoldSelected = false;
            }
            doBold = btnBoldSelected;
            DoFontStyles();
        }

        private void btnItalic_Click(object sender, EventArgs e)
        {
            if (btnItalicSelected == false)
            {
                btnItalic.BackgroundImage = Properties.Resources.sliversilver;
                btnItalicSelected = true;
            }
            else
            {
                btnItalic.BackgroundImage = null;
                btnItalicSelected = false;
            }
            doItalic = btnItalicSelected;
            DoFontStyles();
        }

        private void btnUnderline_Click(object sender, EventArgs e)
        {
            if (btnUnderlineSelected == false)
            {
                btnUnderline.BackgroundImage = Properties.Resources.sliversilver;
                btnUnderlineSelected = true;
            }
            else
            {
                btnUnderline.BackgroundImage = null;
                btnUnderlineSelected = false;
            }
            doUnderline = btnUnderlineSelected;
            DoFontStyles();
        }

        #endregion

        #region Designer-Stuff
        private void dateTimeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertDateTime();
        }
        private void toolbarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnlToolbar.Visible = toolbarToolStripMenuItem.Checked;
        }

        private void formatBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            pnlFormatBar.Visible = formatBarToolStripMenuItem.Checked;
        }

        private void statusBarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            statusBar.Visible = statusBarToolStripMenuItem.Checked;
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ((Form)this.TopLevelControl).Close();
        }

        private void aboutWordpadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            wm.StartAboutBox95("Wordpad", "Microsoft Wordpad", Properties.Resources.Win95IconWordpad);
        }

        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            NewFile();
        }

        private void btnNew_Click(object sender, EventArgs e)
        {
            NewFile();
        }

        private void sendToolStripMenuItem_Click(object sender, EventArgs e)
        {
            wm.StartInfobox95("Wordpad", "An error occured opening send option.", null);
        }

        void Cut()
        {
            if (mainText.SelectedText.Length >= 0) {
                mainText.Cut();
            }
        }

        void Copy()
        {
            if (mainText.SelectedText.Length >= 0)
            {
                mainText.Copy();
            }
        }

        void Paste()
        {
            mainText.Paste();
        }

        void Clear()
        {
            mainText.Text = mainText.Text.Remove(mainText.SelectionStart, mainText.SelectedText.Length);
        }

        void SelectAll()
        {
            mainText.SelectAll();
        }

        private void undoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Undo();
        }

        private void cutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cut();
        }

        private void copyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Copy();
        }

        private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Paste();
        }

        private void selectAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SelectAll();
        }

        private void clearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Clear();
        }

        private void btnCut_Click(object sender, EventArgs e)
        {
            Cut();
        }

        private void btnCopy_Click(object sender, EventArgs e)
        {
            Copy();
        }

        private void btnPaste_Click(object sender, EventArgs e)
        {
            Paste();
        }

        private void bulletStyleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            mainText.SelectionBullet = bulletStyleToolStripMenuItem.Checked;
        }

        private void comboFont_SelectedIndexChanged(object sender, EventArgs e)
        {
            SetSelectedTextFont(comboFont.Text);
        }

        private void comboSize_SelectedIndexChanged(object sender, EventArgs e)
        {
            SetSelectedTextSize(comboSize.Text);
        }
        private void btnBold_MouseEnter(object sender, EventArgs e)
        {
            lblStatus.Text = "Makes the selected text Bold. (toggle)";
        }

        private void btnBold_MouseLeave(object sender, EventArgs e)
        {
            lblStatus.Text = "For Help, goto Help -> Help Topics";
        }

        private void btnItalic_MouseEnter(object sender, EventArgs e)
        {
            lblStatus.Text = "Makes the selected text Italic. (toggle)";
        }

        private void btnItalic_MouseLeave(object sender, EventArgs e)
        {
            lblStatus.Text = "For Help, goto Help -> Help Topics";
        }

        private void btnUnderline_MouseEnter(object sender, EventArgs e)
        {
            lblStatus.Text = "Makes the selected text Underline. (toggle)";
        }

        private void btnUnderline_MouseLeave(object sender, EventArgs e)
        {
            lblStatus.Text = "For Help, goto Help -> Help Topics";
        }
        #endregion

        void NewFile()
        {
            mainText.Text = "";
        }

        void Undo()
        {
            mainText.Undo();
        }

        void InsertDateTime()
        {
            string DateTime = System.DateTime.Now.ToString("HH:mm tt dd/MM/yyyy");
            mainText.AppendText(DateTime);
        }

        // Things for Cut/Copy/Paste have been placed in the "Designer-Stuff" region!

        void SetSelectedTextFont(String font)
        {
            // The next two lines convert a String to a Font
            var cvt = new FontConverter();
            Font f = cvt.ConvertFromString(font) as Font;

            mainText.SelectionFont = f;
        }

        void SetSelectedTextSize(String size)
        {
            //  The next few lines will ATTEMPT to convert a String to an Integer
            int SizeInt = Convert.ToInt32(size);

            mainText.SelectionFont = new Font(mainText.SelectionFont.FontFamily, SizeInt, mainText.SelectionFont.Style);
        }

        void DoFontStyles()
        {
            FontStyle Bold = FontStyle.Regular;
            FontStyle Italic = FontStyle.Regular;
            FontStyle Underline = FontStyle.Regular;
            if (doBold == true)
            {
                Bold = FontStyle.Bold;
            }
            if (doItalic == true)
            {
                Italic = FontStyle.Italic;
            }
            if (doUnderline == true)
            {
                Underline = FontStyle.Underline;
            }
            mainText.SelectionFont = new Font(mainText.SelectionFont.FontFamily, mainText.SelectionFont.Size, Bold | Italic | Underline);
        }
    }
}


text:
'use strict';

var expect = require('chai').expect;

describe('ScatterChart', function() {
  it('renders scatterchart', function() {
    var React = require('react/addons');
    var ScatterChart = require('../src/scatterchart').ScatterChart;
    var immstruct = require('immstruct');
    var generate = require('./utils/datagen').generateArrayOfPoints;
    var TestUtils = React.addons.TestUtils;
    var points = 5;
    var pointRadius = 5;

    var structure = immstruct('scatterChart', { voronoi: {}, voronoiSeries: {}});

    // Render a scatterchart
    var data = [
      {
        name: "series1",
        values: generate(points)
      },
      {
        name: "series2",
        values: generate(points)
      }
    ];

    var scatterchart = TestUtils.renderIntoDocument(
      <ScatterChart structure={structure} data={data} width={400} height={200} pointRadius={pointRadius} />
    );

    var scatterchartGroup = TestUtils.findRenderedDOMComponentWithClass(
      scatterchart, 'rd3-scatterchart');
    expect(scatterchartGroup).to.exist;
    expect(scatterchartGroup.tagName).to.equal('G');

    var circles = TestUtils.scryRenderedDOMComponentsWithClass(
      scatterchart, 'rd3-scatterchart-circle');
    expect(circles).to.have.length(Object.keys(data).length * points);

    var circleOne = circles[0];
    var circleOneColor = circleOne.props.fill;

    expect(circleOne.props.r).to.equal(pointRadius);
    structure.cursor('voronoi').cursor(circleOne.props.id).update(()=> 'active' );
    expect(circleOne.props.r).to.be.above(pointRadius);
    expect(circleOne.props.fill).to.not.equal(circleOneColor);

    structure.cursor('voronoi').cursor(circleOne.props.id).update(()=> 'inactive' );
    expect(circleOne.props.r).to.equal(pointRadius);
    expect(circleOne.props.fill).to.equal(circleOneColor);
  });
});


text:
// <copyright file="ICloneable{T}.cs" company="Logikfabrik">
//   Copyright (c) 2015 anton(at)logikfabrik.se. Licensed under the MIT license.
// </copyright>

namespace Logikfabrik.Umbraco.Jet.Social
{
    /// <summary>
    /// The <see cref="ICloneable{T}" /> interface.
    /// </summary>
    /// <typeparam name="T">The data transfer object type.</typeparam>
    public interface ICloneable<out T>
        where T : DataTransferObject
    {
        /// <summary>
        /// Gets a writable clone.
        /// </summary>
        /// <returns>A writable clone.</returns>
        T CreateWritableClone();
    }
}


text:
/**
 * KeyDefinitions
 */
'use strict';

const ForeignKeyDefinition = require('./ForeignKeyDefinition');
const IndexKeyDefinition = require('./IndexKeyDefinition');

function throwIfNoColumns(columns) {
  if (columns.length === 0) {
    throw new Error('Cannot create a key with 0 columns');
  }
}

const KeyDefinitions = {
  index(...columns) {
    throwIfNoColumns(columns);
    return new IndexKeyDefinition('INDEX', 'idx', columns);
  },
  uniqueIndex(...columns) {
    throwIfNoColumns(columns);
    return new IndexKeyDefinition('UNIQUE INDEX', 'uniq', columns);
  },
  spatialIndex(...columns) {
    throwIfNoColumns(columns);
    return new IndexKeyDefinition('SPATIAL INDEX', 'sptl', columns);
  },
  fulltextIndex(...columns) {
    throwIfNoColumns(columns);
    return new IndexKeyDefinition('FULLTEXT INDEX', 'fltxt', columns);
  },
  foreignKey(...columns) {
    throwIfNoColumns(columns);
    return new ForeignKeyDefinition(columns);
  },
};

module.exports = KeyDefinitions;


text:
__author__ = 'rn710'
import unittest
from pyon.core.governance.conversation.core.fsm import FSM
from pyon.core.governance.conversation.core.fsm import ExceptionFSM
from collections import deque
from pyon.util.unit_test import PyonTestCase
from pyon.util.log import log
from nose.plugins.attrib import attr

def dummy_action(fsm):
    log.debug('I have been called')

def toDeque(alist):
    return [deque(l) for l in alist]

@attr('UNIT')
class TestFSM(PyonTestCase):
    def get_test_fsm(self):
        # build test data
        testData = FSM('1_1')
        testData.state_transitions = {('a', '1_1'):(None, None, '1_2')}
        return testData

    def test_add_fsm_to_state_when_memory_is_empty(self):
        fsm = FSM(1)
        nested_fsm = FSM('1_1')
        fsm.add_fsm_to_memory(1, nested_fsm)

        log.debug("test_add_fsm_to_state_when_memory_is_empty: %s" , fsm.memory)
        self.assertEqual(fsm.memory.get(1), [nested_fsm])

    def test_add_fsm_to_state_that_is_already_in_memory(self):
        fsm = FSM(1)
        first_fsm = self.get_test_fsm()
        fsm.memory = {1: [first_fsm]}
        second_fsm = self.get_test_fsm()
        fsm.add_fsm_to_memory(1,second_fsm)
        log.debug("test_add_fsm_to_state_that_is_already_in_memory%s" ,fsm.memory)

        self.assertEqual(len(fsm.memory),1)
        self.assertEqual(fsm.memory.get(1), [first_fsm, second_fsm])

    def test_add_fsm_to_state_that_is_not_in_memory_and_memory_is_not_empty(self):
        fsm = FSM(1)
        first_fsm = self.get_test_fsm()
        fsm.memory = {1: [first_fsm]}
        second_fsm = self.get_test_fsm()
        fsm.add_fsm_to_memory(2,second_fsm)
        log.debug('test_add_fsm_to_state_that_is_not_in_memory_and_memory_is_not_empty: %s', fsm.memory)
        self.assertEqual(len(fsm.memory),2)
        self.assertEqual(fsm.memory.get(1), [first_fsm])
        self.assertEqual(fsm.memory.get(1), [second_fsm])

    def test_get_transition_from_memory_when_there_is_a_match(self):
        fsm = FSM(1)
        first_fsm = self.get_test_fsm()
        fsm.memory = {1: [first_fsm]}

        (_, _, next_state) = fsm.get_transition('a', 1)
        self.assertEqual(next_state,1)
        self.assertEqual(fsm.memory.get(1),[first_fsm])

    def test_get_normal_transition_when_there_is_a_match(self):
        fsm = FSM(1)
        fsm.state_transitions = {('b', 1):(None, None, 2)}
        first_fsm = self.get_test_fsm()
        fsm.memory = {2: [first_fsm]}

        (_, _, next_state) = fsm.get_transition('b', 1)
        self.assertEqual(next_state,2)
        self.assertEqual(fsm.memory.get(2),[first_fsm])

    def test_get_normal_transition_when_there_is_no_match(self):
        fsm = FSM(1)
        fsm.state_transitions = {('b', 1):(None, None, 2)}
        first_fsm = self.get_test_fsm()
        fsm.memory = {2: [first_fsm]}
        self.assertRaises(ExceptionFSM, fsm.get_transition, 'c', 1)

    def test_get_normal_transition_when_there_is_no_match_but_such_transition_exist(self):
        fsm = FSM(1)
        #fsm.state_transitions = {('b', 1):(None, 2)}
        first_fsm = FSM('1_1')
        first_fsm.state_transitions = {('a', '1_1'):(None, None, '1_2'), (fsm.END_PAR_TRANSITION, '1_2'): (None, None, 2)}
        fsm.memory = {2: [first_fsm]}
        (_, _, next_state) = fsm.get_transition( 'a', 2)
        log.debug("test_get_normal_transition_when_there_is_no_match_but_such_transition_exist:%s", fsm.memory)
        self.assertEqual(fsm.memory, {2:[]})
        self.assertEqual(next_state, 2)
"""
def test_nested_transition_for_first_time(self):
    # Test set_up
    fsm = FSM(1)
    nested_fsm = FSM('1_1')
    fsm.memory = {1: [nested_fsm]}

    # build test data
    testData = self.get_test_fsm()

    fsm.add_nested_transition('a', 1, '1_1', '1_2', None, None)
    log.debug("test_nested_transition_for_first_time: %s", fsm.memory)
    self.assertEqual(fsm.memory.get(1), [testData])
    """


text:
PACKAGE_NAME=field_encrypt
CORE_PACKAGE_NAME=drupal
PACKAGE_URL=https://git.drupalcode.org/project/field_encrypt
CORE_PACKAGE_URL=https://github.com/drupal/drupal
#PACKAGE_VERSION is configurable can be passed as an argument.
PACKAGE_VERSION=${1:-8.x-2.0-alpha2}

yum module enable php:7.4 -y
yum install -y git php php-json php-dom php-mbstring zip unzip gd gd-devel php-gd php-pdo php-mysqlnd
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php --install-dir=/bin --filename=composer

OS_NAME=`cat /etc/os-release | grep PRETTY_NAME | cut -d '=' -f2 | tr -d '"'`

#Check if package exists
if [ -d "$CORE_PACKAGE_NAME" ] ; then
  rm -rf $CORE_PACKAGE_NAME
  echo "$CORE_PACKAGE_NAME  | $PACKAGE_VERSION | $OS_NAME | GitHub | Removed existing package if any"

fi

if ! git clone $CORE_PACKAGE_URL $CORE_PACKAGE_NAME; then
    	echo "------------------$PACKAGE_NAME:clone_fails---------------------------------------"
		echo "$CORE_PACKAGE_URL $CORE_PACKAGE_NAME"
        echo "$CORE_PACKAGE_NAME  |  $CORE_PACKAGE_URL |  $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Clone_Fails"
    	exit 1
fi

cd $CORE_PACKAGE_NAME
git checkout 9.0.x

composer config --no-plugins allow-plugins.composer/installers true
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer config --no-plugins allow-plugins.drupal/core-project-message true
composer config --no-plugins allow-plugins.drupal/core-vendor-hardening true

composer update --no-interaction

if ! composer install --no-interaction; then
     	echo "------------------$PACKAGE_NAME:install_fails-------------------------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Install_Fails"
	exit 1
fi

    composer require --dev phpunit/phpunit --with-all-dependencies ^7 --no-interaction

# Module required to run funtional test cases.
      composer require drupal/encrypt
      composer require  drupal/key
      #composer require drupal/commerce:^2.1

    cd modules/

#Check if package exists
if [ -d "$PACKAGE_NAME" ] ; then
  rm -rf $PACKAGE_NAME
  echo "$PACKAGE_NAME  | $PACKAGE_VERSION | $OS_NAME | GitHub | Removed existing package if any"

fi

 if ! git clone $PACKAGE_URL $PACKAGE_NAME; then
    	echo "------------------$PACKAGE_NAME:clone_fails---------------------------------------"
		echo "$PACKAGE_URL $PACKAGE_NAME"
        echo "$PACKAGE_NAME  |  $PACKAGE_URL |  $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Clone_Fails"
    	exit 1
fi

cd $PACKAGE_NAME
git checkout $PACKAGE_VERSION

cd ../../
cd core/

if ! ../vendor/phpunit/phpunit/phpunit ../modules/field_encrypt/tests/src/Unit/; then
	echo "------------------$PACKAGE_NAME:install_success_but_test_fails---------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail |  Install_success_but_test_Fails"
	exit 1
else
	echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------"
	echo "$PACKAGE_URL $PACKAGE_NAME"
	echo "$PACKAGE_NAME  |  $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub  | Pass |  Both_Install_and_Test_Success"
	exit 0
fi

# drupal-field_encrypt has 2 types of test cases Functional,Unit. Functional need drupal framework to test. Unit can run without drupal framework setup.

# Please follow README.md file for drupal setup.

#To run functional test.

    #Drupal-core 'origin/9.3.x'.  and phpunit 9

# bash-4.4#  ../vendor/phpunit/phpunit/phpunit ../modules/field_encrypt/tests/src/Functional/
            # PHPUnit 9.5.21 #StandWithUkraine

            # Warning:       Your XML configuration validates against a deprecated schema.
            # Suggestion:    Migrate your XML configuration using "--migrate-configuration"!

            # Testing /opt/app-root/src/drupal/modules/field_encrypt/tests/src/Functional
            # ......                                                              6 / 6 (100%)

            # Time: 03:45.305, Memory: 6.00 MB

            # OK (6 tests, 270 assertions)

#To run unit test.

        #drupal core  9.0.x and phpunit 7 fine.

# PHPUnit 7.5.20 by Sebastian Bergmann and contributors.

        # Testing ../modules/field_encrypt/tests/src/Unit/
        # ...........................                                       27 / 27 (100%)

        # Time: 1.72 seconds, Memory: 6.00 MB

        # OK (27 tests, 82 assertions)
        # bash-4.4#


text:
<?php

namespace Hexarchium\CoreDomain\UseCase\CreateUseCase;

use Hexarchium\CoreDomain\Model\Domain\Repository\DomainRepositoryInterface;
use Hexarchium\CoreDomain\Model\Domain\UseCase\Type;

class UseCase
{
    /** @var  DomainRepositoryInterface */
    private $domainRepository;

    /**
     * UseCase constructor.
     *
     * @param DomainRepositoryInterface $domainRepository
     */
    public function __construct(DomainRepositoryInterface $domainRepository)
    {
        $this->domainRepository = $domainRepository;
    }

    public function handle(Command $command)
    {
        $domain = $this->domainRepository->getById($command->getDomainId());

        $useCase = new \Hexarchium\CoreDomain\Model\Domain\Entity\UseCase(
            $command->getUseCaseId(),
            new Type($command->getUseCaseType())
        );

        $domain->addUseCase($useCase);
    }
}


text:
<!doctype html>
<html>
<meta charset="utf-8">
<head>
<title>Denver and Lakewood Website Development</title>
<script>
	window.location.href = "http://jackrowley.net/services/web-development/index.php";
</script>
</head>
<body>

</body>
</html>


text:
Originally published: 2001-06-12 19:49:31
Last updated: 2001-06-14 19:42:23
Author: Paul Prescod

People often ask how to extract the text from an XML document. This small program does it.


text:
package com.hazelcast.map.impl.querycache.subscriber;

import com.hazelcast.config.Config;
import com.hazelcast.config.IndexConfig;
import com.hazelcast.config.IndexType;
import com.hazelcast.config.MapConfig;
import com.hazelcast.config.PredicateConfig;
import com.hazelcast.config.QueryCacheConfig;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.map.IMap;
import com.hazelcast.query.Predicates;
import com.hazelcast.query.impl.IndexUtils;
import com.hazelcast.test.HazelcastParallelClassRunner;
import com.hazelcast.test.HazelcastTestSupport;
import com.hazelcast.test.annotation.ParallelJVMTest;
import com.hazelcast.test.annotation.QuickTest;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.runner.RunWith;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

@RunWith(HazelcastParallelClassRunner.class)
@Category({QuickTest.class, ParallelJVMTest.class})
public class QueryCacheIndexConfigTest extends HazelcastTestSupport {

    @Test
    public void testIndexConfigIsRespected() {
        IndexConfig indexConfig = IndexUtils.createTestIndexConfig(IndexType.SORTED, "field");

        final Config config = new Config();
        final MapConfig mapConfig = new MapConfig("map").addQueryCacheConfig(
                new QueryCacheConfig().setName("query-cache").setPredicateConfig(new PredicateConfig(Predicates.alwaysTrue()))
                                      .addIndexConfig(indexConfig));
        config.addMapConfig(mapConfig);

        final HazelcastInstance instance = createHazelcastInstance(config);
        final IMap<Object, Object> map = instance.getMap("map");
        final DefaultQueryCache<Object, Object> cache = (DefaultQueryCache<Object, Object>) map.getQueryCache("query-cache");

        assertNotNull(cache.indexes.getIndex(indexConfig.getName()));
        assertTrue(cache.indexes.getIndex(indexConfig.getName()).isOrdered());
    }

}


text:
package com.yz.service;

import com.yz.model.Clue;
import com.yz.model.UserRole;

import java.util.List;

public interface ClueService {

	//添加对象
	void add(Clue clue) throws Exception;

	//删除对象
	void delete(Clue clue);

	//删除某个id的对象
	void deleteById(int id);

	//修改对象
	void update(Clue clue);

	//获取所有对象
	List<Clue> getClues();

	//加载一个id的对象
	Clue loadById(int id);

	//后台管理-页数获取
	int getPageCount(int totalCount, int size);

	//后台管理-获取总记录数
	int getTotalCount(int con, String convalue, UserRole user, int type, int queryState, String starttime, String endtime);

	//后台管理-获取符合条件的记录
	List<Clue> queryList(int con, String convalue, UserRole user, int page,
						 int size, int type, int queryState, String starttime, String endtime);

	List<Clue> getCluesByTypeAndHandleState(int con, String convalue,
											String starttime, String endtime, int ctype, int state, UserRole userRole);

	List<Clue> getOutOfTimeCluesByType(int con, String convalue,
									   String starttime, String endtime, int ctype, UserRole userRole);

	List<Clue> getCluesByType(int con, String convalue,
							  String starttime, String endtime, int ctype, UserRole userRole);

	List<Clue> getNewClueByUserRole(UserRole userRole);

}


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

namespace CsQuery.Promises
{
    /// <summary>
    /// A strongly-typed deferred object
    /// </summary>
    ///
    /// <typeparam name="T">
    /// Generic type parameter.
    /// </typeparam>

    public class Deferred<T> : Deferred, IPromise<T>
    {
        /// <summary>
        /// Bind delegates to the success or failure of a promise
        /// </summary>
        ///
        /// <param name="success">
        /// The success delegate
        /// </param>
        /// <param name="failure">
        /// (optional) the failure delegate
        /// </param>
        ///
        /// <returns>
        /// A new promise that resolves when the current promise resolves.
        /// </returns>

        public IPromise Then(PromiseAction<T> success, PromiseAction<T> failure = null)
        {
            return base.Then(success, failure);
        }

        /// <summary>
        /// Bind delegates to the success or failure of a promise
        /// </summary>
        ///
        /// <param name="success">
        /// The success delegate
        /// </param>
        /// <param name="failure">
        /// (optional) the failure delegate
        /// </param>
        ///
        /// <returns>
        /// A new promise that resolves when the current promise resolves.
        /// </returns>

        public IPromise Then(PromiseFunction<T> success, PromiseFunction<T> failure = null)
        {
            return base.Then(success, failure);
        }

    }

}


text: Rails.application.config.session_store :cookie_store, key: '_tvarkau_vilniu_rails_session'


text:
.class public final Landroid/telephony/gsm/SmsManager;
.super Ljava/lang/Object;
.source "SmsManager.java"

# interfaces
.implements Landroid/telephony/gsm/HtcIfSmsManager;

# annotations
.annotation runtime Ljava/lang/Deprecated;
.end annotation

# static fields
.field public static final RESULT_ERROR_GENERIC_FAILURE:I = 0x1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final RESULT_ERROR_NO_SERVICE:I = 0x4
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final RESULT_ERROR_NULL_PDU:I = 0x3
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final RESULT_ERROR_RADIO_OFF:I = 0x2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final STATUS_ON_SIM_FREE:I = 0x0
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final STATUS_ON_SIM_READ:I = 0x1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final STATUS_ON_SIM_SENT:I = 0x5
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final STATUS_ON_SIM_UNREAD:I = 0x3
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field public static final STATUS_ON_SIM_UNSENT:I = 0x7
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation
.end field

.field private static sInstance:Landroid/telephony/gsm/SmsManager;

# instance fields
.field private mSmsMgrProxy:Landroid/telephony/SmsManager;

# direct methods
.method private constructor <init>()V
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 47
    invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V

    .line 48
    invoke-static {}, Landroid/telephony/SmsManager;->getDefault()Landroid/telephony/SmsManager;

    move-result-object v0

    iput-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    .line 49
    return-void
.end method

.method public static final getDefault()Landroid/telephony/gsm/SmsManager;
    .locals 1
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 40
    sget-object v0, Landroid/telephony/gsm/SmsManager;->sInstance:Landroid/telephony/gsm/SmsManager;

    if-nez v0, :cond_0

    .line 41
    new-instance v0, Landroid/telephony/gsm/SmsManager;

    invoke-direct {v0}, Landroid/telephony/gsm/SmsManager;-><init>()V

    sput-object v0, Landroid/telephony/gsm/SmsManager;->sInstance:Landroid/telephony/gsm/SmsManager;

    .line 43
    :cond_0
    sget-object v0, Landroid/telephony/gsm/SmsManager;->sInstance:Landroid/telephony/gsm/SmsManager;

    return-object v0
.end method

# virtual methods
.method public final copyMessageToSim([B[BI)Z
    .locals 1
    .parameter "smsc"
    .parameter "pdu"
    .parameter "status"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 195
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-virtual {v0, p1, p2, p3}, Landroid/telephony/SmsManager;->copyMessageToIcc([B[BI)Z

    move-result v0

    return v0
.end method

.method public final copyMessageToSimForResult([B[BI)I
    .locals 1
    .parameter "smsc"
    .parameter "pdu"
    .parameter "status"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 212
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-virtual {v0, p1, p2, p3}, Landroid/telephony/SmsManager;->copyMessageToIccForResult([B[BI)I

    move-result v0

    return v0
.end method

.method public final deleteMessageFromSim(I)Z
    .locals 1
    .parameter "messageIndex"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 226
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-virtual {v0, p1}, Landroid/telephony/SmsManager;->deleteMessageFromIcc(I)Z

    move-result v0

    return v0
.end method

.method public final divideMessage(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 1
    .parameter "text"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 94
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-virtual {v0, p1}, Landroid/telephony/SmsManager;->divideMessage(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method public final getAllMessagesFromSim()Ljava/util/ArrayList;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/telephony/SmsMessage;",
            ">;"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 254
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-static {}, Landroid/telephony/SmsManager;->getAllMessagesFromIcc()Ljava/util/ArrayList;

    move-result-object v0

    return-object v0
.end method

.method public final sendDataMessage(Ljava/lang/String;Ljava/lang/String;S[BLandroid/app/PendingIntent;Landroid/app/PendingIntent;)V
    .locals 7
    .parameter "destinationAddress"
    .parameter "scAddress"
    .parameter "destinationPort"
    .parameter "data"
    .parameter "sentIntent"
    .parameter "deliveryIntent"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 164
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    move-object v4, p4

    move-object v5, p5

    move-object v6, p6

    invoke-virtual/range {v0 .. v6}, Landroid/telephony/SmsManager;->sendDataMessage(Ljava/lang/String;Ljava/lang/String;S[BLandroid/app/PendingIntent;Landroid/app/PendingIntent;)V

    .line 166
    return-void
.end method

.method public final sendMultipartDataMessage(Ljava/lang/String;Ljava/lang/String;SLjava/util/ArrayList;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)V
    .locals 9
    .parameter "destinationAddress"
    .parameter "scAddress"
    .parameter "destinationPort"
    .parameter
    .parameter "sentIntent"
    .parameter "deliveryIntent"
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "S",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Landroid/app/PendingIntent;",
            "Landroid/app/PendingIntent;",
            ")V"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 174
    .local p4, parts:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    invoke-virtual {p4}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v7

    .local v7, i$:Ljava/util/Iterator;
    :goto_0
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;

    .line 175
    .local v8, s:Ljava/lang/String;
    invoke-virtual {v8}, Ljava/lang/String;->getBytes()[B

    move-result-object v4

    .line 176
    .local v4, data:[B
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    move-object v5, p5

    move-object v6, p6

    invoke-virtual/range {v0 .. v6}, Landroid/telephony/SmsManager;->sendDataMessage(Ljava/lang/String;Ljava/lang/String;S[BLandroid/app/PendingIntent;Landroid/app/PendingIntent;)V

    goto :goto_0

    .line 179
    .end local v4           #data:[B
    .end local v8           #s:Ljava/lang/String;
    :cond_0
    return-void
.end method

.method public final sendMultipartTextMessage(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V
    .locals 6
    .parameter "destinationAddress"
    .parameter "scAddress"
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/ArrayList",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/PendingIntent;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Landroid/app/PendingIntent;",
            ">;)V"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 131
    .local p3, parts:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Ljava/lang/String;>;"
    .local p4, sentIntents:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/app/PendingIntent;>;"
    .local p5, deliveryIntents:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Landroid/app/PendingIntent;>;"
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    invoke-virtual/range {v0 .. v5}, Landroid/telephony/SmsManager;->sendMultipartTextMessage(Ljava/lang/String;Ljava/lang/String;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/ArrayList;)V

    .line 133
    return-void
.end method

.method public final sendTextMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)V
    .locals 6
    .parameter "destinationAddress"
    .parameter "scAddress"
    .parameter "text"
    .parameter "sentIntent"
    .parameter "deliveryIntent"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 79
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move-object v4, p4

    move-object v5, p5

    invoke-virtual/range {v0 .. v5}, Landroid/telephony/SmsManager;->sendTextMessage(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/app/PendingIntent;Landroid/app/PendingIntent;)V

    .line 81
    return-void
.end method

.method public final updateMessageOnSim(II[B)Z
    .locals 1
    .parameter "messageIndex"
    .parameter "newStatus"
    .parameter "pdu"
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .prologue
    .line 243
    iget-object v0, p0, Landroid/telephony/gsm/SmsManager;->mSmsMgrProxy:Landroid/telephony/SmsManager;

    invoke-virtual {v0, p1, p2, p3}, Landroid/telephony/SmsManager;->updateMessageOnIcc(II[B)Z

    move-result v0

    return v0
.end method