blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 4 410 | content_id stringlengths 40 40 | detected_licenses listlengths 0 51 | license_type stringclasses 2 values | repo_name stringlengths 5 132 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 80 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 5.85k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22 values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 131 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 3 9.45M | extension stringclasses 32 values | content stringlengths 3 9.45M | authors listlengths 1 1 | author_id stringlengths 0 313 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2ef9cd3f1be562a8265b5d6ca57228a3ae0ae9f | f70c934237bc361304a28e202105967072b8d8a0 | /src/com/java/mapper/SysUserGroup.java | d3879b42c11dd58395cc987fa9100ccc91affeb4 | [] | no_license | zyxelva/SSMProject | 67ee6c81fbcf5a08bbbff71748f1db6fe7f0c613 | 8f8ee2b2a7c9935eaad69093b36c6285b197c8f2 | refs/heads/master | 2021-04-18T18:41:57.170066 | 2018-03-23T01:59:57 | 2018-03-23T01:59:57 | 126,310,089 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,077 | java | package com.java.mapper;
import java.util.Date;
public class SysUserGroup {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.group_id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private Integer groupId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.group_privilege
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private Integer groupPrivilege;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.group_name
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private String groupName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.create_by
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private String createBy;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column sys_user_group.create_time
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
private Date createTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.id
*
* @return the value of sys_user_group.id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.id
*
* @param id the value for sys_user_group.id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.group_id
*
* @return the value of sys_user_group.group_id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public Integer getGroupId() {
return groupId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.group_id
*
* @param groupId the value for sys_user_group.group_id
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setGroupId(Integer groupId) {
this.groupId = groupId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.group_privilege
*
* @return the value of sys_user_group.group_privilege
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public Integer getGroupPrivilege() {
return groupPrivilege;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.group_privilege
*
* @param groupPrivilege the value for sys_user_group.group_privilege
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setGroupPrivilege(Integer groupPrivilege) {
this.groupPrivilege = groupPrivilege;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.group_name
*
* @return the value of sys_user_group.group_name
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public String getGroupName() {
return groupName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.group_name
*
* @param groupName the value for sys_user_group.group_name
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setGroupName(String groupName) {
this.groupName = groupName == null ? null : groupName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.create_by
*
* @return the value of sys_user_group.create_by
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public String getCreateBy() {
return createBy;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.create_by
*
* @param createBy the value for sys_user_group.create_by
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column sys_user_group.create_time
*
* @return the value of sys_user_group.create_time
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column sys_user_group.create_time
*
* @param createTime the value for sys_user_group.create_time
*
* @mbg.generated Thu Mar 22 11:54:28 CST 2018
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
} | [
"zyxelva@gmail.com"
] | zyxelva@gmail.com |
d936e997b1973f776ff7bdb9a730396240bb0486 | 1e2bfd63f54296724af99e1b2c99c7dc60d263a4 | /app/src/main/java/com/dineout/code/GetSet/DB/BillStatus.java | 9c6e1b8aaa54c14dd76a32dcc1b0a372eccc4514 | [] | no_license | 18ce076Jay/food_order-app | 623ff853291ed7d0ae1bb6f46457ba26731a3538 | ed3e97a33fc207b1cf72a3d9ad5926da04ec090f | refs/heads/master | 2023-06-22T08:34:04.568042 | 2021-07-10T06:34:17 | 2021-07-10T06:34:17 | 384,627,713 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,005 | java | package com.dineout.code.GetSet.DB;
/**
* Created by Khalid on 12/1/2018.
*/
public class BillStatus {
String tableID;
String orderID;
int amount;
String status;
public BillStatus() {
}
public BillStatus(String tableid, String orderid, int amount, String status) {
this.tableID = tableid;
this.orderID = orderid;
this.amount = amount;
this.status = status;
}
public String getTableID() {
return tableID;
}
public void setTableID(String tableid) {
this.tableID = tableid;
}
public String getOrderID() {
return orderID;
}
public void setOrderID(String orderid) {
this.orderID = orderid;
}
public int getAmount() {
return amount;
}
public void setAmount(int ampunt) {
this.amount = ampunt;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
}
| [
"18ce076@charusat.edu.in"
] | 18ce076@charusat.edu.in |
4ca9e6dcae4386eceb3578abe70602f044ca6909 | 967f2c4648ef72138ce7df2cf2fe6d8ff8a6f193 | /app/src/main/java/com/example/worldacademy/Fragments/Adapters/Adapter_Horizontal.java | a6133f2b7aadcca61065f15edb456798a51dfd1a | [] | no_license | MohamedAdelBro/World-Academy | 3a17b897fa1154641a155918e3258aa318cdf928 | afa5932b16e024a1890b81ad3aa6d5c17df7dc0d | refs/heads/master | 2022-04-24T09:41:57.338372 | 2020-03-26T22:25:42 | 2020-03-26T22:25:42 | 250,384,864 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,534 | java | package com.example.worldacademy.Fragments.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bumptech.glide.Glide;
import com.example.worldacademy.R;
import java.util.ArrayList;
public class Adapter_Horizontal extends RecyclerView.Adapter<Adapter_Horizontal.Adapter> {
ArrayList<String> mImages;
Context mContext;
public Adapter_Horizontal(ArrayList<String> names,Context mContext ) {
mImages = names;
this.mContext = mContext;
}
@NonNull
@Override
public Adapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.horizontal_shap,parent,false);
Adapter adapter = new Adapter(view);
return adapter;
}
@Override
public void onBindViewHolder(@NonNull Adapter holder, final int position) {
Glide.with(mContext.getApplicationContext()).load(mImages.get(position)).into(holder.mImageView);
}
@Override
public int getItemCount() {
return (mImages == null) ? 0 : mImages.size();
}
class Adapter extends RecyclerView.ViewHolder {
ImageView mImageView;
public Adapter(@NonNull View itemView) {
super(itemView);
mImageView = itemView.findViewById(R.id.imageHor);
}
}
}
| [
"ahmed.esamffff@gmail.com"
] | ahmed.esamffff@gmail.com |
4d36d81c2abf6d4dd13638660f5046089b6b3e78 | 4c6926c0f094985cc10c5f5c63bf674d06b5d3bd | /HelmetClientEvrTool/src/com/yiyang/helmetclientevrtool/interfaces/OnItemBackListener.java | 20fef5260176a34d470aa2d1cd7d496d86408f25 | [] | no_license | shen101/DailyProject | 3f23a02a74fc11251a0ecec90ecb5834d0e08ae1 | 73de6245ba917c079c7470a54cfecf20a7e437c8 | refs/heads/master | 2020-05-03T20:50:55.955997 | 2019-11-26T11:05:49 | 2019-11-26T11:05:49 | 178,812,228 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 212 | java | package com.yiyang.helmetclientevrtool.interfaces;
import com.yiyang.helmetclientevrtool.bean.HelmetSearchBleDevice;
public interface OnItemBackListener {
void listener(HelmetSearchBleDevice device);
}
| [
"shenanan909@sina.com"
] | shenanan909@sina.com |
2f11670bcbc7c87f7472a8c14f8d838a07bb1c8a | e7e497b20442a4220296dea1550091a457df5a38 | /main_project/oce-java-tester-backup/src/com/xiaonei/xcetest/invoke/AccountTester.java | f199b993d827d850a55723ca6c2609603aa1c15a | [] | no_license | gunner14/old_rr_code | cf17a2dedf8dfcdcf441d49139adaadc770c0eea | bb047dc88fa7243ded61d840af0f8bad22d68dee | refs/heads/master | 2021-01-17T18:23:28.154228 | 2013-12-02T23:45:33 | 2013-12-02T23:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,305 | java | package com.xiaonei.xcetest.invoke;
import java.util.Date;
import junit.framework.TestCase;
import mop.hi.oce.adapter.AccountAdapter;
import mop.hi.oce.adapter.impl.AccountAdapterImpl;
import mop.hi.oce.domain.model.Deposit;
import mop.hi.oce.domain.model.Expenditure;
import mop.hi.svc.model.RollbackException;
public class AccountTester extends TestCase{
public AccountAdapter adapter = new AccountAdapterImpl();
public void test1() throws RollbackException
{
int [] fids = { -1
};
int [] uids = {230105116
};
int [] rmb = { 100
};
for(int i = 0; i< fids.length; i++){
Deposit dep = new Deposit();
dep.setFid(fids[i]);
dep.setRMB(rmb[i]);
dep.setTimestamp(new Date());
dep.setUserId(uids[i]);
dep.setXNB(rmb[i]);
adapter.inc(dep);
System.out.println(uids[i]);
}
}
public void test2() throws RollbackException
{
Expenditure exp = new Expenditure();
exp.setDescription("-1");
exp.setProductName("-1");
exp.setProductType("-1");
exp.setTimestamp(new Date());
exp.setUserId(200080602);
exp.setXNB(87);
adapter.dec(exp);
}
public void test3()
{
int [] uids = {200080602
};
for(int i = 0 ; i< uids.length; i++)
{
System.out.print(uids[i]);
System.out.print("=");
System.out.println(adapter.getAccount(uids[i]).getXNB());
}
}
}
| [
"liyong19861014@gmail.com"
] | liyong19861014@gmail.com |
551bec7e67864142039f3a9b995a98bb2c04f477 | 9d7f9fe5edb7d18fdd6df90f06d1a3ceeed26fe7 | /src/main/java/com/feng/server/http/IOUtils.java | 13126607faa90435030db966719a4f26caf93980 | [] | no_license | huahua-feng/sun.net.httpserver.httpserver | 977c3ba50277b179a1f63578c1d809b6d4b8d256 | 8ad9357f5f4a9016708d09fe51f6114b572c140f | refs/heads/main | 2023-06-09T10:34:33.806905 | 2021-07-04T09:59:06 | 2021-07-04T09:59:06 | 382,806,176 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 654 | java | package com.feng.server.http;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
public class IOUtils {
private static final int EOF = -1;
private static final int BUFFER_SIZE = 1024*4; //4k read write
public byte[] toByteArray(InputStream in){
try (ByteArrayOutputStream out = new ByteArrayOutputStream()){
byte[] bytes = new byte[BUFFER_SIZE];
while (EOF != in.read(bytes)) {
out.write(bytes);
}
out.toByteArray();
} catch (IOException e) {
e.printStackTrace();
}
return null;
}
}
| [
"fengliebing@hotmail.com"
] | fengliebing@hotmail.com |
8cf81b2f39ddb395562814a0590b70ab9d484310 | e09ad5af30411b730d8e300f38f1adf700327d7d | /src/ReadWriteLock.java | 093f2052a44042b30d981cd1bf0436b6e7ddf205 | [] | no_license | jeremyjkerby/USF-CS212-Software_Development | b28e5cee47ee026c488fd04e8a9dc9f843c3a103 | d8a7e7ef83b08c1380086dbaedaa6d2c3a044af3 | refs/heads/master | 2021-07-09T01:09:49.164231 | 2017-10-09T04:15:22 | 2017-10-09T04:15:22 | 106,234,635 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,664 | java | /**
* A simple custom lock that allows simultaneously read operations, but
* disallows simultaneously write and read/write operations.
*
* Does not implement any form or priority to read or write operations. The
* first thread that acquires the appropriate lock should be allowed to
* continue.
*/
public class ReadWriteLock {
private int readers;
private int writers;
/**
* Initializes a multi-reader single-writer lock.
*/
public ReadWriteLock() {
readers = 0;
writers = 0;
}
/**
* Will wait until there are no active writers in the system, and then will
* increase the number of active readers.
*
* @throws InterruptedException
*/
public synchronized void lockReadOnly() {
while (writers > 0) {
try {
wait();
} catch (InterruptedException e) {
System.out.println("Thread was interrupted");
}
}
readers++;
}
/**
* Will decrease the number of active readers, and notify any waiting
* threads if necessary.
*/
public synchronized void unlockReadOnly() {
readers--;
if (readers == 0) {
notifyAll();
}
}
/**
* Will wait until there are no active readers or writers in the system, and
* then will increase the number of active writers.
*
* @throws InterruptedException
*/
public synchronized void lockReadWrite() {
while (readers > 0 || writers > 0) {
try {
wait();
} catch (InterruptedException e) {
System.out.println("Thread was interrupted");
}
}
writers++;
}
/**
* Will decrease the number of active writers, and notify any waiting
* threads if necessary.
*/
public synchronized void unlockReadWrite() {
writers--;
notifyAll();
}
}
| [
"jjkerby@dons.usfca.edu"
] | jjkerby@dons.usfca.edu |
985d0c32f0f42c84870c31b18053539231993945 | 23f16c60144c094552f7edb410f7b795e8594dc0 | /Task5/Book.java | 4f6a4aba8df9f32d529ca7cbe72dd1b4b0381906 | [] | no_license | hoanghiemdoc/java | a37884666aa8e7609706e8d9735ab2308958a990 | 6b0fe78efcbcac0862018600ca80a0e7ab73afea | refs/heads/main | 2023-05-13T20:54:18.051012 | 2021-06-02T04:40:25 | 2021-06-02T04:40:25 | 353,617,937 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,240 | java | package session6.Task5;
public class Book {
// the private instance variables
private String name;
private Author author;
private double price;
private int qty;
// constructs a book instance with the given author
public Book(String name, Author author, double price,int qty){
this.name = name;
this.author =author;
this.price = price;
this.qty = qty;
}
// getters and setters
// return the name of this book
public String getName(){
return name;
}
// return the author instance of this book
public Author getAuthor(){
return author; // return member author,which is an instace of the class author
}
public double getPrice(){
return price;
}
// sets the price
public void setPrice(double price){
this.price = price;
}
// return int getQTY()
public int getQty(){
return qty;
}
// sets the quantity
public void setQty(int qty) {
this.qty = qty;
}
// return a self-descriptive String
public String toString(){
return "'"+name+"'by " + author; // author.toString()
}
}
| [
"noreply@github.com"
] | hoanghiemdoc.noreply@github.com |
94ea2ac03452f5b718c0577ef237be666ea781d3 | 6bad9aad469e38cf092bef48cfe9d2344d889f0a | /Ali Talib Hathoor/ArduinoVoiceControl_1.2_apk-dl.com_source_from_JADX/sources/gnu/kawa/slib/srfi13.java | cf6070f9d5f74e2739de3717088c10e75b42f24f | [] | no_license | HassanAlshammari/Embeded-System | ec7c153515c9db12c3d04ea20847ff4c6265b804 | fc3645da4fe87bc3eadcb1265b6953b3952556d7 | refs/heads/master | 2020-05-31T05:36:12.953287 | 2019-06-19T09:23:10 | 2019-06-19T09:23:10 | 190,111,647 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 599,254 | java | package gnu.kawa.slib;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.media.TransportMediator;
import android.support.v4.view.InputDeviceCompat;
import com.google.appinventor.components.common.ComponentConstants;
import com.google.appinventor.components.common.YaVersion;
import com.google.appinventor.components.runtime.util.ErrorMessages;
import com.google.appinventor.components.runtime.util.FullScreenVideoUtil;
import com.google.appinventor.components.runtime.util.ScreenDensityUtil;
import gnu.expr.ModuleBody;
import gnu.expr.ModuleInfo;
import gnu.expr.ModuleMethod;
import gnu.kawa.functions.AddOp;
import gnu.kawa.functions.BitwiseOp;
import gnu.kawa.functions.DivideOp;
import gnu.kawa.functions.GetNamedPart;
import gnu.kawa.functions.MultiplyOp;
import gnu.kawa.lispexpr.LangObjType;
import gnu.kawa.lispexpr.LangPrimType;
import gnu.kawa.reflect.Invoke;
import gnu.kawa.servlet.HttpRequestContext;
import gnu.lists.CharSeq;
import gnu.lists.Consumer;
import gnu.lists.FVector;
import gnu.lists.LList;
import gnu.lists.PairWithPosition;
import gnu.mapping.CallContext;
import gnu.mapping.Location;
import gnu.mapping.Procedure;
import gnu.mapping.PropertySet;
import gnu.mapping.SimpleSymbol;
import gnu.mapping.ThreadLocation;
import gnu.mapping.UnboundLocationException;
import gnu.mapping.Values;
import gnu.mapping.WrongType;
import gnu.math.DateTime;
import gnu.math.IntNum;
import gnu.text.Char;
import kawa.Telnet;
import kawa.lang.Macro;
import kawa.lang.SyntaxPattern;
import kawa.lang.SyntaxRule;
import kawa.lang.SyntaxRules;
import kawa.lib.characters;
import kawa.lib.lists;
import kawa.lib.misc;
import kawa.lib.numbers;
import kawa.lib.rnrs.unicode;
import kawa.lib.strings;
import kawa.lib.vectors;
import kawa.standard.Scheme;
import kawa.standard.call_with_values;
/* compiled from: srfi13.scm */
public class srfi13 extends ModuleBody {
public static final ModuleMethod $Pccheck$Mnbounds;
public static final ModuleMethod $Pcfinish$Mnstring$Mnconcatenate$Mnreverse;
public static final ModuleMethod $Pckmp$Mnsearch;
public static final ModuleMethod $Pcmultispan$Mnrepcopy$Ex;
public static final ModuleMethod $Pcstring$Mncompare;
public static final ModuleMethod $Pcstring$Mncompare$Mnci;
public static final ModuleMethod $Pcstring$Mncopy$Ex;
public static final ModuleMethod $Pcstring$Mnhash;
public static final ModuleMethod $Pcstring$Mnmap;
public static final ModuleMethod $Pcstring$Mnmap$Ex;
public static final ModuleMethod $Pcstring$Mnprefix$Mnci$Qu;
public static final ModuleMethod $Pcstring$Mnprefix$Mnlength;
public static final ModuleMethod $Pcstring$Mnprefix$Mnlength$Mnci;
public static final ModuleMethod $Pcstring$Mnprefix$Qu;
public static final ModuleMethod $Pcstring$Mnsuffix$Mnci$Qu;
public static final ModuleMethod $Pcstring$Mnsuffix$Mnlength;
public static final ModuleMethod $Pcstring$Mnsuffix$Mnlength$Mnci;
public static final ModuleMethod $Pcstring$Mnsuffix$Qu;
public static final ModuleMethod $Pcstring$Mntitlecase$Ex;
public static final ModuleMethod $Pcsubstring$Slshared;
public static final srfi13 $instance = new srfi13();
static final IntNum Lit0 = IntNum.make(0);
static final IntNum Lit1 = IntNum.make(1);
static final IntNum Lit10 = IntNum.make(4194304);
static final SimpleSymbol Lit100 = ((SimpleSymbol) new SimpleSymbol("string-hash-ci").readResolve());
static final SimpleSymbol Lit101 = ((SimpleSymbol) new SimpleSymbol("string-upcase").readResolve());
static final SimpleSymbol Lit102 = ((SimpleSymbol) new SimpleSymbol("string-upcase!").readResolve());
static final SimpleSymbol Lit103 = ((SimpleSymbol) new SimpleSymbol("string-downcase").readResolve());
static final SimpleSymbol Lit104 = ((SimpleSymbol) new SimpleSymbol("string-downcase!").readResolve());
static final SimpleSymbol Lit105 = ((SimpleSymbol) new SimpleSymbol("%string-titlecase!").readResolve());
static final SimpleSymbol Lit106 = ((SimpleSymbol) new SimpleSymbol("string-titlecase!").readResolve());
static final SimpleSymbol Lit107 = ((SimpleSymbol) new SimpleSymbol("string-titlecase").readResolve());
static final SimpleSymbol Lit108 = ((SimpleSymbol) new SimpleSymbol("string-take").readResolve());
static final SimpleSymbol Lit109 = ((SimpleSymbol) new SimpleSymbol("string-take-right").readResolve());
static final SimpleSymbol Lit11 = ((SimpleSymbol) new SimpleSymbol("whitespace").readResolve());
static final SimpleSymbol Lit110 = ((SimpleSymbol) new SimpleSymbol("string-drop").readResolve());
static final SimpleSymbol Lit111 = ((SimpleSymbol) new SimpleSymbol("string-drop-right").readResolve());
static final SimpleSymbol Lit112 = ((SimpleSymbol) new SimpleSymbol("string-trim").readResolve());
static final SimpleSymbol Lit113 = ((SimpleSymbol) new SimpleSymbol("string-trim-right").readResolve());
static final SimpleSymbol Lit114 = ((SimpleSymbol) new SimpleSymbol("string-trim-both").readResolve());
static final SimpleSymbol Lit115 = ((SimpleSymbol) new SimpleSymbol("string-pad-right").readResolve());
static final SimpleSymbol Lit116 = ((SimpleSymbol) new SimpleSymbol("string-pad").readResolve());
static final SimpleSymbol Lit117 = ((SimpleSymbol) new SimpleSymbol("string-delete").readResolve());
static final SimpleSymbol Lit118 = ((SimpleSymbol) new SimpleSymbol("string-filter").readResolve());
static final SimpleSymbol Lit119 = ((SimpleSymbol) new SimpleSymbol("string-index").readResolve());
static final Char Lit12 = Char.make(32);
static final SimpleSymbol Lit120 = ((SimpleSymbol) new SimpleSymbol("string-index-right").readResolve());
static final SimpleSymbol Lit121 = ((SimpleSymbol) new SimpleSymbol("string-skip").readResolve());
static final SimpleSymbol Lit122 = ((SimpleSymbol) new SimpleSymbol("string-skip-right").readResolve());
static final SimpleSymbol Lit123 = ((SimpleSymbol) new SimpleSymbol("string-count").readResolve());
static final SimpleSymbol Lit124 = ((SimpleSymbol) new SimpleSymbol("string-fill!").readResolve());
static final SimpleSymbol Lit125 = ((SimpleSymbol) new SimpleSymbol("string-copy!").readResolve());
static final SimpleSymbol Lit126 = ((SimpleSymbol) new SimpleSymbol("%string-copy!").readResolve());
static final SimpleSymbol Lit127 = ((SimpleSymbol) new SimpleSymbol("string-contains").readResolve());
static final SimpleSymbol Lit128 = ((SimpleSymbol) new SimpleSymbol("string-contains-ci").readResolve());
static final SimpleSymbol Lit129 = ((SimpleSymbol) new SimpleSymbol("%kmp-search").readResolve());
static final IntNum Lit13 = IntNum.make(-1);
static final SimpleSymbol Lit130 = ((SimpleSymbol) new SimpleSymbol("make-kmp-restart-vector").readResolve());
static final SimpleSymbol Lit131 = ((SimpleSymbol) new SimpleSymbol("kmp-step").readResolve());
static final SimpleSymbol Lit132 = ((SimpleSymbol) new SimpleSymbol("string-kmp-partial-search").readResolve());
static final SimpleSymbol Lit133 = ((SimpleSymbol) new SimpleSymbol("string-null?").readResolve());
static final SimpleSymbol Lit134 = ((SimpleSymbol) new SimpleSymbol("string-reverse").readResolve());
static final SimpleSymbol Lit135 = ((SimpleSymbol) new SimpleSymbol("string-reverse!").readResolve());
static final SimpleSymbol Lit136 = ((SimpleSymbol) new SimpleSymbol("reverse-list->string").readResolve());
static final SimpleSymbol Lit137 = ((SimpleSymbol) new SimpleSymbol("string->list").readResolve());
static final SimpleSymbol Lit138 = ((SimpleSymbol) new SimpleSymbol("string-append/shared").readResolve());
static final SimpleSymbol Lit139 = ((SimpleSymbol) new SimpleSymbol("string-concatenate/shared").readResolve());
static final SimpleSymbol Lit14 = ((SimpleSymbol) new SimpleSymbol("graphic").readResolve());
static final SimpleSymbol Lit140 = ((SimpleSymbol) new SimpleSymbol("string-concatenate").readResolve());
static final SimpleSymbol Lit141 = ((SimpleSymbol) new SimpleSymbol("string-concatenate-reverse").readResolve());
static final SimpleSymbol Lit142 = ((SimpleSymbol) new SimpleSymbol("string-concatenate-reverse/shared").readResolve());
static final SimpleSymbol Lit143 = ((SimpleSymbol) new SimpleSymbol("%finish-string-concatenate-reverse").readResolve());
static final SimpleSymbol Lit144 = ((SimpleSymbol) new SimpleSymbol("string-replace").readResolve());
static final SimpleSymbol Lit145 = ((SimpleSymbol) new SimpleSymbol("string-tokenize").readResolve());
static final SimpleSymbol Lit146 = ((SimpleSymbol) new SimpleSymbol("xsubstring").readResolve());
static final SimpleSymbol Lit147 = ((SimpleSymbol) new SimpleSymbol("string-xcopy!").readResolve());
static final SimpleSymbol Lit148 = ((SimpleSymbol) new SimpleSymbol("%multispan-repcopy!").readResolve());
static final SimpleSymbol Lit149 = ((SimpleSymbol) new SimpleSymbol("string-join").readResolve());
static final SimpleSymbol Lit15 = ((SimpleSymbol) new SimpleSymbol("infix").readResolve());
static final SimpleSymbol Lit150 = ((SimpleSymbol) new SimpleSymbol("receive").readResolve());
static final SimpleSymbol Lit16 = ((SimpleSymbol) new SimpleSymbol("strict-infix").readResolve());
static final SimpleSymbol Lit17 = ((SimpleSymbol) new SimpleSymbol("prefix").readResolve());
static final SimpleSymbol Lit18 = ((SimpleSymbol) new SimpleSymbol("suffix").readResolve());
static final SimpleSymbol Lit19 = ((SimpleSymbol) new SimpleSymbol("check-arg").readResolve());
static final IntNum Lit2 = IntNum.make(4096);
static final SimpleSymbol Lit20 = ((SimpleSymbol) new SimpleSymbol(":optional").readResolve());
static final SimpleSymbol Lit21 = ((SimpleSymbol) new SimpleSymbol("let-optionals*").readResolve());
static final SimpleSymbol Lit22 = ((SimpleSymbol) new SimpleSymbol("base").readResolve());
static final SimpleSymbol Lit23 = ((SimpleSymbol) new SimpleSymbol("make-final").readResolve());
static final SimpleSymbol Lit24 = ((SimpleSymbol) new SimpleSymbol("char-set?").readResolve());
static final SimpleSymbol Lit25 = ((SimpleSymbol) new SimpleSymbol("char-set-contains?").readResolve());
static final SimpleSymbol Lit26 = ((SimpleSymbol) new SimpleSymbol("bound").readResolve());
static final SimpleSymbol Lit27;
static final SimpleSymbol Lit28 = ((SimpleSymbol) new SimpleSymbol("char-cased?").readResolve());
static final SimpleSymbol Lit29 = ((SimpleSymbol) new SimpleSymbol("criterion").readResolve());
static final IntNum Lit3 = IntNum.make(40);
static final SimpleSymbol Lit30 = ((SimpleSymbol) new SimpleSymbol("char-set").readResolve());
static final SimpleSymbol Lit31 = ((SimpleSymbol) new SimpleSymbol("c=").readResolve());
static final SimpleSymbol Lit32 = ((SimpleSymbol) new SimpleSymbol("start").readResolve());
static final SimpleSymbol Lit33 = ((SimpleSymbol) new SimpleSymbol("end").readResolve());
static final SimpleSymbol Lit34 = ((SimpleSymbol) new SimpleSymbol("p-start").readResolve());
static final SimpleSymbol Lit35 = ((SimpleSymbol) new SimpleSymbol("s-start").readResolve());
static final SimpleSymbol Lit36 = ((SimpleSymbol) new SimpleSymbol("s-end").readResolve());
static final SimpleSymbol Lit37 = ((SimpleSymbol) new SimpleSymbol("final").readResolve());
static final SimpleSymbol Lit38 = ((SimpleSymbol) new SimpleSymbol("token-chars").readResolve());
static final SimpleSymbol Lit39 = ((SimpleSymbol) new SimpleSymbol("delim").readResolve());
static final IntNum Lit4 = IntNum.make(4096);
static final SimpleSymbol Lit40 = ((SimpleSymbol) new SimpleSymbol("grammar").readResolve());
static final SimpleSymbol Lit41;
static final SyntaxRules Lit42;
static final SimpleSymbol Lit43 = ((SimpleSymbol) new SimpleSymbol("let-string-start+end2").readResolve());
static final SyntaxRules Lit44;
static final SimpleSymbol Lit45 = ((SimpleSymbol) new SimpleSymbol("string-parse-start+end").readResolve());
static final SimpleSymbol Lit46 = ((SimpleSymbol) new SimpleSymbol("%check-bounds").readResolve());
static final SimpleSymbol Lit47 = ((SimpleSymbol) new SimpleSymbol("string-parse-final-start+end").readResolve());
static final SimpleSymbol Lit48 = ((SimpleSymbol) new SimpleSymbol("substring-spec-ok?").readResolve());
static final SimpleSymbol Lit49 = ((SimpleSymbol) new SimpleSymbol("check-substring-spec").readResolve());
static final IntNum Lit5 = IntNum.make(65536);
static final SimpleSymbol Lit50 = ((SimpleSymbol) new SimpleSymbol("substring/shared").readResolve());
static final SimpleSymbol Lit51 = ((SimpleSymbol) new SimpleSymbol("%substring/shared").readResolve());
static final SimpleSymbol Lit52 = ((SimpleSymbol) new SimpleSymbol("string-copy").readResolve());
static final SimpleSymbol Lit53 = ((SimpleSymbol) new SimpleSymbol("string-map").readResolve());
static final SimpleSymbol Lit54 = ((SimpleSymbol) new SimpleSymbol("%string-map").readResolve());
static final SimpleSymbol Lit55 = ((SimpleSymbol) new SimpleSymbol("string-map!").readResolve());
static final SimpleSymbol Lit56 = ((SimpleSymbol) new SimpleSymbol("%string-map!").readResolve());
static final SimpleSymbol Lit57 = ((SimpleSymbol) new SimpleSymbol("string-fold").readResolve());
static final SimpleSymbol Lit58 = ((SimpleSymbol) new SimpleSymbol("string-fold-right").readResolve());
static final SimpleSymbol Lit59 = ((SimpleSymbol) new SimpleSymbol("string-unfold").readResolve());
static final IntNum Lit6 = IntNum.make(37);
static final SimpleSymbol Lit60 = ((SimpleSymbol) new SimpleSymbol("string-unfold-right").readResolve());
static final SimpleSymbol Lit61 = ((SimpleSymbol) new SimpleSymbol("string-for-each").readResolve());
static final SimpleSymbol Lit62 = ((SimpleSymbol) new SimpleSymbol("string-for-each-index").readResolve());
static final SimpleSymbol Lit63 = ((SimpleSymbol) new SimpleSymbol("string-every").readResolve());
static final SimpleSymbol Lit64 = ((SimpleSymbol) new SimpleSymbol("string-any").readResolve());
static final SimpleSymbol Lit65 = ((SimpleSymbol) new SimpleSymbol("string-tabulate").readResolve());
static final SimpleSymbol Lit66 = ((SimpleSymbol) new SimpleSymbol("%string-prefix-length").readResolve());
static final SimpleSymbol Lit67 = ((SimpleSymbol) new SimpleSymbol("%string-suffix-length").readResolve());
static final SimpleSymbol Lit68 = ((SimpleSymbol) new SimpleSymbol("%string-prefix-length-ci").readResolve());
static final SimpleSymbol Lit69 = ((SimpleSymbol) new SimpleSymbol("%string-suffix-length-ci").readResolve());
static final IntNum Lit7 = IntNum.make(4194304);
static final SimpleSymbol Lit70 = ((SimpleSymbol) new SimpleSymbol("string-prefix-length").readResolve());
static final SimpleSymbol Lit71 = ((SimpleSymbol) new SimpleSymbol("string-suffix-length").readResolve());
static final SimpleSymbol Lit72 = ((SimpleSymbol) new SimpleSymbol("string-prefix-length-ci").readResolve());
static final SimpleSymbol Lit73 = ((SimpleSymbol) new SimpleSymbol("string-suffix-length-ci").readResolve());
static final SimpleSymbol Lit74 = ((SimpleSymbol) new SimpleSymbol("string-prefix?").readResolve());
static final SimpleSymbol Lit75 = ((SimpleSymbol) new SimpleSymbol("string-suffix?").readResolve());
static final SimpleSymbol Lit76 = ((SimpleSymbol) new SimpleSymbol("string-prefix-ci?").readResolve());
static final SimpleSymbol Lit77 = ((SimpleSymbol) new SimpleSymbol("string-suffix-ci?").readResolve());
static final SimpleSymbol Lit78 = ((SimpleSymbol) new SimpleSymbol("%string-prefix?").readResolve());
static final SimpleSymbol Lit79 = ((SimpleSymbol) new SimpleSymbol("%string-suffix?").readResolve());
static final IntNum Lit8 = IntNum.make(4194304);
static final SimpleSymbol Lit80 = ((SimpleSymbol) new SimpleSymbol("%string-prefix-ci?").readResolve());
static final SimpleSymbol Lit81 = ((SimpleSymbol) new SimpleSymbol("%string-suffix-ci?").readResolve());
static final SimpleSymbol Lit82 = ((SimpleSymbol) new SimpleSymbol("%string-compare").readResolve());
static final SimpleSymbol Lit83 = ((SimpleSymbol) new SimpleSymbol("%string-compare-ci").readResolve());
static final SimpleSymbol Lit84 = ((SimpleSymbol) new SimpleSymbol("string-compare").readResolve());
static final SimpleSymbol Lit85 = ((SimpleSymbol) new SimpleSymbol("string-compare-ci").readResolve());
static final SimpleSymbol Lit86 = ((SimpleSymbol) new SimpleSymbol("string=").readResolve());
static final SimpleSymbol Lit87 = ((SimpleSymbol) new SimpleSymbol("string<>").readResolve());
static final SimpleSymbol Lit88 = ((SimpleSymbol) new SimpleSymbol("string<").readResolve());
static final SimpleSymbol Lit89 = ((SimpleSymbol) new SimpleSymbol("string>").readResolve());
static final IntNum Lit9 = IntNum.make(4194304);
static final SimpleSymbol Lit90 = ((SimpleSymbol) new SimpleSymbol("string<=").readResolve());
static final SimpleSymbol Lit91 = ((SimpleSymbol) new SimpleSymbol("string>=").readResolve());
static final SimpleSymbol Lit92 = ((SimpleSymbol) new SimpleSymbol("string-ci=").readResolve());
static final SimpleSymbol Lit93 = ((SimpleSymbol) new SimpleSymbol("string-ci<>").readResolve());
static final SimpleSymbol Lit94 = ((SimpleSymbol) new SimpleSymbol("string-ci<").readResolve());
static final SimpleSymbol Lit95 = ((SimpleSymbol) new SimpleSymbol("string-ci>").readResolve());
static final SimpleSymbol Lit96 = ((SimpleSymbol) new SimpleSymbol("string-ci<=").readResolve());
static final SimpleSymbol Lit97 = ((SimpleSymbol) new SimpleSymbol("string-ci>=").readResolve());
static final SimpleSymbol Lit98 = ((SimpleSymbol) new SimpleSymbol("%string-hash").readResolve());
static final SimpleSymbol Lit99 = ((SimpleSymbol) new SimpleSymbol("string-hash").readResolve());
public static final ModuleMethod check$Mnsubstring$Mnspec;
public static final ModuleMethod kmp$Mnstep;
static final ModuleMethod lambda$Fn100;
static final ModuleMethod lambda$Fn105;
static final ModuleMethod lambda$Fn106;
static final ModuleMethod lambda$Fn111;
static final ModuleMethod lambda$Fn116;
static final ModuleMethod lambda$Fn117;
static final ModuleMethod lambda$Fn122;
static final ModuleMethod lambda$Fn123;
static final ModuleMethod lambda$Fn128;
static final ModuleMethod lambda$Fn133;
static final ModuleMethod lambda$Fn138;
static final ModuleMethod lambda$Fn163;
static final ModuleMethod lambda$Fn166;
static final ModuleMethod lambda$Fn17;
static final ModuleMethod lambda$Fn18;
static final ModuleMethod lambda$Fn210;
static final ModuleMethod lambda$Fn216;
static final ModuleMethod lambda$Fn220;
static final ModuleMethod lambda$Fn27;
static final ModuleMethod lambda$Fn5;
static final ModuleMethod lambda$Fn72;
static final ModuleMethod lambda$Fn73;
static final ModuleMethod lambda$Fn78;
static final ModuleMethod lambda$Fn83;
static final ModuleMethod lambda$Fn84;
static final ModuleMethod lambda$Fn89;
static final ModuleMethod lambda$Fn90;
static final ModuleMethod lambda$Fn95;
public static final Macro let$Mnstring$Mnstart$Plend = Macro.make(Lit41, Lit42, $instance);
public static final Macro let$Mnstring$Mnstart$Plend2 = Macro.make(Lit43, Lit44, $instance);
static final Location loc$$Cloptional = ThreadLocation.getInstance(Lit20, null);
static final Location loc$base = ThreadLocation.getInstance(Lit22, null);
static final Location loc$bound = ThreadLocation.getInstance(Lit26, null);
static final Location loc$c$Eq = ThreadLocation.getInstance(Lit31, null);
static final Location loc$char$Mncased$Qu = ThreadLocation.getInstance(Lit28, null);
static final Location loc$char$Mnset = ThreadLocation.getInstance(Lit30, null);
static final Location loc$char$Mnset$Mncontains$Qu = ThreadLocation.getInstance(Lit25, null);
static final Location loc$char$Mnset$Qu = ThreadLocation.getInstance(Lit24, null);
static final Location loc$check$Mnarg = ThreadLocation.getInstance(Lit19, null);
static final Location loc$criterion = ThreadLocation.getInstance(Lit29, null);
static final Location loc$delim = ThreadLocation.getInstance(Lit39, null);
static final Location loc$end = ThreadLocation.getInstance(Lit33, null);
static final Location loc$final = ThreadLocation.getInstance(Lit37, null);
static final Location loc$grammar = ThreadLocation.getInstance(Lit40, null);
static final Location loc$let$Mnoptionals$St = ThreadLocation.getInstance(Lit21, null);
static final Location loc$make$Mnfinal = ThreadLocation.getInstance(Lit23, null);
static final Location loc$p$Mnstart = ThreadLocation.getInstance(Lit34, null);
static final Location loc$rest = ThreadLocation.getInstance(Lit27, null);
static final Location loc$s$Mnend = ThreadLocation.getInstance(Lit36, null);
static final Location loc$s$Mnstart = ThreadLocation.getInstance(Lit35, null);
static final Location loc$start = ThreadLocation.getInstance(Lit32, null);
static final Location loc$token$Mnchars = ThreadLocation.getInstance(Lit38, null);
public static final ModuleMethod make$Mnkmp$Mnrestart$Mnvector;
public static final ModuleMethod reverse$Mnlist$Mn$Grstring;
public static final ModuleMethod string$Eq;
public static final ModuleMethod string$Gr;
public static final ModuleMethod string$Gr$Eq;
public static final ModuleMethod string$Ls;
public static final ModuleMethod string$Ls$Eq;
public static final ModuleMethod string$Ls$Gr;
public static final ModuleMethod string$Mn$Grlist;
public static final ModuleMethod string$Mnany;
public static final ModuleMethod string$Mnappend$Slshared;
public static final ModuleMethod string$Mnci$Eq;
public static final ModuleMethod string$Mnci$Gr;
public static final ModuleMethod string$Mnci$Gr$Eq;
public static final ModuleMethod string$Mnci$Ls;
public static final ModuleMethod string$Mnci$Ls$Eq;
public static final ModuleMethod string$Mnci$Ls$Gr;
public static final ModuleMethod string$Mncompare;
public static final ModuleMethod string$Mncompare$Mnci;
public static final ModuleMethod string$Mnconcatenate;
public static final ModuleMethod string$Mnconcatenate$Mnreverse;
public static final ModuleMethod string$Mnconcatenate$Mnreverse$Slshared;
public static final ModuleMethod string$Mnconcatenate$Slshared;
public static final ModuleMethod string$Mncontains;
public static final ModuleMethod string$Mncontains$Mnci;
public static final ModuleMethod string$Mncopy;
public static final ModuleMethod string$Mncopy$Ex;
public static final ModuleMethod string$Mncount;
public static final ModuleMethod string$Mndelete;
public static final ModuleMethod string$Mndowncase;
public static final ModuleMethod string$Mndowncase$Ex;
public static final ModuleMethod string$Mndrop;
public static final ModuleMethod string$Mndrop$Mnright;
public static final ModuleMethod string$Mnevery;
public static final ModuleMethod string$Mnfill$Ex;
public static final ModuleMethod string$Mnfilter;
public static final ModuleMethod string$Mnfold;
public static final ModuleMethod string$Mnfold$Mnright;
public static final ModuleMethod string$Mnfor$Mneach;
public static final ModuleMethod string$Mnfor$Mneach$Mnindex;
public static final ModuleMethod string$Mnhash;
public static final ModuleMethod string$Mnhash$Mnci;
public static final ModuleMethod string$Mnindex;
public static final ModuleMethod string$Mnindex$Mnright;
public static final ModuleMethod string$Mnjoin;
public static final ModuleMethod string$Mnkmp$Mnpartial$Mnsearch;
public static final ModuleMethod string$Mnmap;
public static final ModuleMethod string$Mnmap$Ex;
public static final ModuleMethod string$Mnnull$Qu;
public static final ModuleMethod string$Mnpad;
public static final ModuleMethod string$Mnpad$Mnright;
public static final ModuleMethod string$Mnparse$Mnfinal$Mnstart$Plend;
public static final ModuleMethod string$Mnparse$Mnstart$Plend;
public static final ModuleMethod string$Mnprefix$Mnci$Qu;
public static final ModuleMethod string$Mnprefix$Mnlength;
public static final ModuleMethod string$Mnprefix$Mnlength$Mnci;
public static final ModuleMethod string$Mnprefix$Qu;
public static final ModuleMethod string$Mnreplace;
public static final ModuleMethod string$Mnreverse;
public static final ModuleMethod string$Mnreverse$Ex;
public static final ModuleMethod string$Mnskip;
public static final ModuleMethod string$Mnskip$Mnright;
public static final ModuleMethod string$Mnsuffix$Mnci$Qu;
public static final ModuleMethod string$Mnsuffix$Mnlength;
public static final ModuleMethod string$Mnsuffix$Mnlength$Mnci;
public static final ModuleMethod string$Mnsuffix$Qu;
public static final ModuleMethod string$Mntabulate;
public static final ModuleMethod string$Mntake;
public static final ModuleMethod string$Mntake$Mnright;
public static final ModuleMethod string$Mntitlecase;
public static final ModuleMethod string$Mntitlecase$Ex;
public static final ModuleMethod string$Mntokenize;
public static final ModuleMethod string$Mntrim;
public static final ModuleMethod string$Mntrim$Mnboth;
public static final ModuleMethod string$Mntrim$Mnright;
public static final ModuleMethod string$Mnunfold;
public static final ModuleMethod string$Mnunfold$Mnright;
public static final ModuleMethod string$Mnupcase;
public static final ModuleMethod string$Mnupcase$Ex;
public static final ModuleMethod string$Mnxcopy$Ex;
public static final ModuleMethod substring$Mnspec$Mnok$Qu;
public static final ModuleMethod substring$Slshared;
public static final ModuleMethod xsubstring;
/* compiled from: srfi13.scm */
public class frame0 extends ModuleBody {
Object args;
final ModuleMethod lambda$Fn3 = new ModuleMethod(this, 3, null, 0);
final ModuleMethod lambda$Fn4;
Object proc;
/* renamed from: s */
Object f51s;
public frame0() {
PropertySet moduleMethod = new ModuleMethod(this, 4, null, 12291);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:174");
this.lambda$Fn4 = moduleMethod;
}
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 3 ? lambda3() : super.apply0(moduleMethod);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 3) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 4 ? lambda4(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
Object lambda3() {
return srfi13.stringParseStart$PlEnd(this.proc, this.f51s, this.args);
}
Object lambda4(Object rest, Object start, Object end) {
if (lists.isPair(rest)) {
return misc.error$V("Extra arguments to procedure", new Object[]{this.proc, rest});
}
return misc.values(start, end);
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 4) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame10 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn25 = new ModuleMethod(this, 22, null, 0);
final ModuleMethod lambda$Fn26 = new ModuleMethod(this, 23, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f52s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 22 ? lambda25() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 23 ? lambda26(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 22) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 23) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda25() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnany, this.f52s, this.maybe$Mnstart$Plend);
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
java.lang.Object lambda26(java.lang.Object r14, java.lang.Object r15) {
/*
r13 = this;
r12 = -2;
r11 = 2;
r10 = 1;
r5 = r13.criterion;
r5 = kawa.lib.characters.isChar(r5);
if (r5 == 0) goto L_0x0054;
L_0x000b:
r2 = r14;
L_0x000c:
r5 = kawa.standard.Scheme.numLss;
r6 = r5.apply2(r2, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x0126 }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x0126 }
if (r4 == 0) goto L_0x004c;
L_0x001c:
r5 = r13.criterion;
r5 = (gnu.text.Char) r5; Catch:{ ClassCastException -> 0x012f }
r6 = r13.f52s;
r6 = (java.lang.CharSequence) r6; Catch:{ ClassCastException -> 0x0138 }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x0141 }
r7 = r0;
r7 = r7.intValue(); Catch:{ ClassCastException -> 0x0141 }
r6 = kawa.lib.strings.stringRef(r6, r7);
r6 = gnu.text.Char.make(r6);
r4 = kawa.lib.characters.isChar$Eq(r5, r6);
if (r4 == 0) goto L_0x0043;
L_0x003a:
if (r4 == 0) goto L_0x0040;
L_0x003c:
r5 = java.lang.Boolean.TRUE;
L_0x003e:
r4 = r5;
L_0x003f:
return r4;
L_0x0040:
r5 = java.lang.Boolean.FALSE;
goto L_0x003e;
L_0x0043:
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r2 = r5.apply2(r2, r6);
goto L_0x000c;
L_0x004c:
if (r4 == 0) goto L_0x0051;
L_0x004e:
r5 = java.lang.Boolean.TRUE;
goto L_0x003e;
L_0x0051:
r5 = java.lang.Boolean.FALSE;
goto L_0x003e;
L_0x0054:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = gnu.kawa.slib.srfi13.loc$char$Mnset$Qu;
r6 = r6.get(); Catch:{ UnboundLocationException -> 0x014a }
r7 = r13.criterion;
r5 = r5.apply2(r6, r7);
r6 = java.lang.Boolean.FALSE;
if (r5 == r6) goto L_0x00ae;
L_0x0066:
r2 = r14;
L_0x0067:
r5 = kawa.standard.Scheme.numLss;
r6 = r5.apply2(r2, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x0154 }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x0154 }
if (r4 == 0) goto L_0x00a6;
L_0x0077:
r7 = kawa.standard.Scheme.applyToArgs;
r5 = gnu.kawa.slib.srfi13.loc$char$Mnset$Mncontains$Qu;
r8 = r5.get(); Catch:{ UnboundLocationException -> 0x015d }
r9 = r13.criterion;
r5 = r13.f52s;
r5 = (java.lang.CharSequence) r5; Catch:{ ClassCastException -> 0x0168 }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x0171 }
r6 = r0;
r6 = r6.intValue(); Catch:{ ClassCastException -> 0x0171 }
r5 = kawa.lib.strings.stringRef(r5, r6);
r5 = gnu.text.Char.make(r5);
r4 = r7.apply3(r8, r9, r5);
r5 = java.lang.Boolean.FALSE;
if (r4 != r5) goto L_0x003f;
L_0x009d:
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r2 = r5.apply2(r2, r6);
goto L_0x0067;
L_0x00a6:
if (r4 == 0) goto L_0x00ab;
L_0x00a8:
r4 = java.lang.Boolean.TRUE;
goto L_0x003f;
L_0x00ab:
r4 = java.lang.Boolean.FALSE;
goto L_0x003f;
L_0x00ae:
r5 = r13.criterion;
r5 = kawa.lib.misc.isProcedure(r5);
if (r5 == 0) goto L_0x0113;
L_0x00b6:
r5 = kawa.standard.Scheme.numLss;
r6 = r5.apply2(r14, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x017a }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x017a }
if (r4 == 0) goto L_0x0109;
L_0x00c6:
r2 = r14;
L_0x00c7:
r5 = r13.f52s;
r5 = (java.lang.CharSequence) r5; Catch:{ ClassCastException -> 0x0183 }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x018c }
r6 = r0;
r6 = r6.intValue(); Catch:{ ClassCastException -> 0x018c }
r1 = kawa.lib.strings.stringRef(r5, r6);
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r3 = r5.apply2(r2, r6);
r5 = kawa.standard.Scheme.numEqu;
r5 = r5.apply2(r3, r15);
r6 = java.lang.Boolean.FALSE;
if (r5 == r6) goto L_0x00f7;
L_0x00e9:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = r13.criterion;
r7 = gnu.text.Char.make(r1);
r4 = r5.apply2(r6, r7);
goto L_0x003f;
L_0x00f7:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = r13.criterion;
r7 = gnu.text.Char.make(r1);
r4 = r5.apply2(r6, r7);
r5 = java.lang.Boolean.FALSE;
if (r4 != r5) goto L_0x003f;
L_0x0107:
r2 = r3;
goto L_0x00c7;
L_0x0109:
if (r4 == 0) goto L_0x010f;
L_0x010b:
r4 = java.lang.Boolean.TRUE;
goto L_0x003f;
L_0x010f:
r4 = java.lang.Boolean.FALSE;
goto L_0x003f;
L_0x0113:
r5 = "Second param is neither char-set, char, or predicate procedure.";
r6 = new java.lang.Object[r11];
r7 = 0;
r8 = gnu.kawa.slib.srfi13.string$Mnany;
r6[r7] = r8;
r7 = r13.criterion;
r6[r10] = r7;
r4 = kawa.lib.misc.error$V(r5, r6);
goto L_0x003f;
L_0x0126:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x012f:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "char=?";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x0138:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r5, r8, r10, r6);
throw r7;
L_0x0141:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
L_0x014a:
r5 = move-exception;
r6 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r7 = 515; // 0x203 float:7.22E-43 double:2.544E-321;
r8 = 5;
r5.setLine(r6, r7, r8);
throw r5;
L_0x0154:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x015d:
r5 = move-exception;
r6 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r7 = 518; // 0x206 float:7.26E-43 double:2.56E-321;
r8 = 9;
r5.setLine(r6, r7, r8);
throw r5;
L_0x0168:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x0171:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
L_0x017a:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x0183:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x018c:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
*/
throw new UnsupportedOperationException("Method not decompiled: gnu.kawa.slib.srfi13.frame10.lambda26(java.lang.Object, java.lang.Object):java.lang.Object");
}
}
/* compiled from: srfi13.scm */
public class frame11 extends ModuleBody {
final ModuleMethod lambda$Fn28 = new ModuleMethod(this, 26, null, 0);
final ModuleMethod lambda$Fn29 = new ModuleMethod(this, 27, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 26 ? lambda28() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 27 ? lambda29(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 26) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 27) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda28() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnprefix$Mnlength, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda29(Object rest, Object start1, Object end1) {
frame12 frame12 = new frame12();
frame12.staticLink = this;
frame12.rest = rest;
frame12.start1 = start1;
frame12.end1 = end1;
return call_with_values.callWithValues(frame12.lambda$Fn30, frame12.lambda$Fn31);
}
}
/* compiled from: srfi13.scm */
public class frame12 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn30 = new ModuleMethod(this, 24, null, 0);
final ModuleMethod lambda$Fn31 = new ModuleMethod(this, 25, null, 8194);
Object rest;
Object start1;
frame11 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 24 ? lambda30() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 25 ? lambda31(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 24) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 25) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda30() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnprefix$Mnlength, this.staticLink.s2, this.rest);
}
Object lambda31(Object start2, Object end2) {
return srfi13.$PcStringPrefixLength(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame13 extends ModuleBody {
final ModuleMethod lambda$Fn32 = new ModuleMethod(this, 30, null, 0);
final ModuleMethod lambda$Fn33 = new ModuleMethod(this, 31, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 30 ? lambda32() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 31 ? lambda33(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 30) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 31) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda32() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnsuffix$Mnlength, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda33(Object rest, Object start1, Object end1) {
frame14 frame14 = new frame14();
frame14.staticLink = this;
frame14.rest = rest;
frame14.start1 = start1;
frame14.end1 = end1;
return call_with_values.callWithValues(frame14.lambda$Fn34, frame14.lambda$Fn35);
}
}
/* compiled from: srfi13.scm */
public class frame14 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn34 = new ModuleMethod(this, 28, null, 0);
final ModuleMethod lambda$Fn35 = new ModuleMethod(this, 29, null, 8194);
Object rest;
Object start1;
frame13 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 28 ? lambda34() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 29 ? lambda35(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 28) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 29) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda34() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnsuffix$Mnlength, this.staticLink.s2, this.rest);
}
Object lambda35(Object start2, Object end2) {
return srfi13.$PcStringSuffixLength(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame15 extends ModuleBody {
final ModuleMethod lambda$Fn36 = new ModuleMethod(this, 34, null, 0);
final ModuleMethod lambda$Fn37 = new ModuleMethod(this, 35, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 34 ? lambda36() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 35 ? lambda37(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 34) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 35) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda36() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnprefix$Mnlength$Mnci, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda37(Object rest, Object start1, Object end1) {
frame16 frame16 = new frame16();
frame16.staticLink = this;
frame16.rest = rest;
frame16.start1 = start1;
frame16.end1 = end1;
return call_with_values.callWithValues(frame16.lambda$Fn38, frame16.lambda$Fn39);
}
}
/* compiled from: srfi13.scm */
public class frame16 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn38 = new ModuleMethod(this, 32, null, 0);
final ModuleMethod lambda$Fn39 = new ModuleMethod(this, 33, null, 8194);
Object rest;
Object start1;
frame15 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 32 ? lambda38() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 33 ? Integer.valueOf(lambda39(obj, obj2)) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 32) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 33) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda38() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnprefix$Mnlength$Mnci, this.staticLink.s2, this.rest);
}
int lambda39(Object start2, Object end2) {
Object obj = this.staticLink.s1;
Object obj2 = this.start1;
try {
int intValue = ((Number) obj2).intValue();
Object obj3 = this.end1;
try {
try {
try {
return srfi13.$PcStringPrefixLengthCi(obj, intValue, ((Number) obj3).intValue(), this.staticLink.s2, ((Number) start2).intValue(), ((Number) end2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%string-prefix-length-ci", 5, end2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-prefix-length-ci", 4, start2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-prefix-length-ci", 2, obj3);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-prefix-length-ci", 1, obj2);
}
}
}
/* compiled from: srfi13.scm */
public class frame17 extends ModuleBody {
final ModuleMethod lambda$Fn40 = new ModuleMethod(this, 38, null, 0);
final ModuleMethod lambda$Fn41 = new ModuleMethod(this, 39, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 38 ? lambda40() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 39 ? lambda41(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 38) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 39) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda40() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnsuffix$Mnlength$Mnci, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda41(Object rest, Object start1, Object end1) {
frame18 frame18 = new frame18();
frame18.staticLink = this;
frame18.rest = rest;
frame18.start1 = start1;
frame18.end1 = end1;
return call_with_values.callWithValues(frame18.lambda$Fn42, frame18.lambda$Fn43);
}
}
/* compiled from: srfi13.scm */
public class frame18 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn42 = new ModuleMethod(this, 36, null, 0);
final ModuleMethod lambda$Fn43 = new ModuleMethod(this, 37, null, 8194);
Object rest;
Object start1;
frame17 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 36 ? lambda42() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 37 ? Integer.valueOf(lambda43(obj, obj2)) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 36) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 37) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda42() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnsuffix$Mnlength$Mnci, this.staticLink.s2, this.rest);
}
int lambda43(Object start2, Object end2) {
Object obj = this.staticLink.s1;
Object obj2 = this.start1;
try {
int intValue = ((Number) obj2).intValue();
Object obj3 = this.end1;
try {
try {
try {
return srfi13.$PcStringSuffixLengthCi(obj, intValue, ((Number) obj3).intValue(), this.staticLink.s2, ((Number) start2).intValue(), ((Number) end2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%string-suffix-length-ci", 5, end2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-suffix-length-ci", 4, start2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-suffix-length-ci", 2, obj3);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-suffix-length-ci", 1, obj2);
}
}
}
/* compiled from: srfi13.scm */
public class frame19 extends ModuleBody {
final ModuleMethod lambda$Fn44 = new ModuleMethod(this, 42, null, 0);
final ModuleMethod lambda$Fn45 = new ModuleMethod(this, 43, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 42 ? lambda44() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 43 ? lambda45(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 42) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 43) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda44() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnprefix$Qu, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda45(Object rest, Object start1, Object end1) {
frame20 frame20 = new frame20();
frame20.staticLink = this;
frame20.rest = rest;
frame20.start1 = start1;
frame20.end1 = end1;
return call_with_values.callWithValues(frame20.lambda$Fn46, frame20.lambda$Fn47);
}
}
/* compiled from: srfi13.scm */
public class frame1 extends ModuleBody {
final ModuleMethod lambda$Fn6;
int slen;
Object start;
public frame1() {
PropertySet moduleMethod = new ModuleMethod(this, 5, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:227");
this.lambda$Fn6 = moduleMethod;
}
static boolean lambda5(Object start) {
boolean x = numbers.isInteger(start);
if (!x) {
return x;
}
x = numbers.isExact(start);
return x ? ((Boolean) Scheme.numLEq.apply2(srfi13.Lit0, start)).booleanValue() : x;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == 5) {
return lambda6(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda6(Object end) {
boolean x = numbers.isInteger(end);
if (!x) {
return x;
}
x = numbers.isExact(end);
if (!x) {
return x;
}
Object apply2 = Scheme.numLEq.apply2(this.start, end);
try {
x = ((Boolean) apply2).booleanValue();
if (x) {
return ((Boolean) Scheme.numLEq.apply2(end, Integer.valueOf(this.slen))).booleanValue();
}
return x;
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 5) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame20 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn46 = new ModuleMethod(this, 40, null, 0);
final ModuleMethod lambda$Fn47 = new ModuleMethod(this, 41, null, 8194);
Object rest;
Object start1;
frame19 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 40 ? lambda46() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 41 ? lambda47(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 40) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 41) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda46() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnprefix$Qu, this.staticLink.s2, this.rest);
}
Object lambda47(Object start2, Object end2) {
return srfi13.$PcStringPrefix$Qu(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame21 extends ModuleBody {
final ModuleMethod lambda$Fn48 = new ModuleMethod(this, 46, null, 0);
final ModuleMethod lambda$Fn49 = new ModuleMethod(this, 47, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 46 ? lambda48() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 47 ? lambda49(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 46) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 47) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda48() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnsuffix$Qu, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda49(Object rest, Object start1, Object end1) {
frame22 frame22 = new frame22();
frame22.staticLink = this;
frame22.rest = rest;
frame22.start1 = start1;
frame22.end1 = end1;
return call_with_values.callWithValues(frame22.lambda$Fn50, frame22.lambda$Fn51);
}
}
/* compiled from: srfi13.scm */
public class frame22 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn50 = new ModuleMethod(this, 44, null, 0);
final ModuleMethod lambda$Fn51 = new ModuleMethod(this, 45, null, 8194);
Object rest;
Object start1;
frame21 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 44 ? lambda50() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 45 ? lambda51(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 44) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 45) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda50() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnsuffix$Qu, this.staticLink.s2, this.rest);
}
Object lambda51(Object start2, Object end2) {
return srfi13.$PcStringSuffix$Qu(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame23 extends ModuleBody {
final ModuleMethod lambda$Fn52 = new ModuleMethod(this, 50, null, 0);
final ModuleMethod lambda$Fn53 = new ModuleMethod(this, 51, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 50 ? lambda52() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 51 ? lambda53(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 50) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 51) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda52() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnprefix$Mnci$Qu, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda53(Object rest, Object start1, Object end1) {
frame24 frame24 = new frame24();
frame24.staticLink = this;
frame24.rest = rest;
frame24.start1 = start1;
frame24.end1 = end1;
return call_with_values.callWithValues(frame24.lambda$Fn54, frame24.lambda$Fn55);
}
}
/* compiled from: srfi13.scm */
public class frame24 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn54 = new ModuleMethod(this, 48, null, 0);
final ModuleMethod lambda$Fn55 = new ModuleMethod(this, 49, null, 8194);
Object rest;
Object start1;
frame23 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 48 ? lambda54() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 49 ? lambda55(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 48) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 49) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda54() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnprefix$Mnci$Qu, this.staticLink.s2, this.rest);
}
Object lambda55(Object start2, Object end2) {
return srfi13.$PcStringPrefixCi$Qu(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame25 extends ModuleBody {
final ModuleMethod lambda$Fn56 = new ModuleMethod(this, 54, null, 0);
final ModuleMethod lambda$Fn57 = new ModuleMethod(this, 55, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 54 ? lambda56() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 55 ? lambda57(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 54) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 55) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda56() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnsuffix$Mnci$Qu, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda57(Object rest, Object start1, Object end1) {
frame26 frame26 = new frame26();
frame26.staticLink = this;
frame26.rest = rest;
frame26.start1 = start1;
frame26.end1 = end1;
return call_with_values.callWithValues(frame26.lambda$Fn58, frame26.lambda$Fn59);
}
}
/* compiled from: srfi13.scm */
public class frame26 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn58 = new ModuleMethod(this, 52, null, 0);
final ModuleMethod lambda$Fn59 = new ModuleMethod(this, 53, null, 8194);
Object rest;
Object start1;
frame25 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 52 ? lambda58() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 53 ? lambda59(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 52) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 53) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda58() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnsuffix$Mnci$Qu, this.staticLink.s2, this.rest);
}
Object lambda59(Object start2, Object end2) {
return srfi13.$PcStringSuffixCi$Qu(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2);
}
}
/* compiled from: srfi13.scm */
public class frame27 extends ModuleBody {
final ModuleMethod lambda$Fn60 = new ModuleMethod(this, 58, null, 0);
final ModuleMethod lambda$Fn61 = new ModuleMethod(this, 59, null, 12291);
LList maybe$Mnstarts$Plends;
Object proc$Eq;
Object proc$Gr;
Object proc$Ls;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 58 ? lambda60() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 59 ? lambda61(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 58) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 59) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda60() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mncompare, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda61(Object rest, Object start1, Object end1) {
frame28 frame28 = new frame28();
frame28.staticLink = this;
frame28.rest = rest;
frame28.start1 = start1;
frame28.end1 = end1;
return call_with_values.callWithValues(frame28.lambda$Fn62, frame28.lambda$Fn63);
}
}
/* compiled from: srfi13.scm */
public class frame28 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn62 = new ModuleMethod(this, 56, null, 0);
final ModuleMethod lambda$Fn63 = new ModuleMethod(this, 57, null, 8194);
Object rest;
Object start1;
frame27 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 56 ? lambda62() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 57 ? lambda63(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 56) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 57) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda62() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncompare, this.staticLink.s2, this.rest);
}
Object lambda63(Object start2, Object end2) {
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, this.staticLink.proc$Ls, this.staticLink.proc$Eq, this.staticLink.proc$Gr);
}
}
/* compiled from: srfi13.scm */
public class frame29 extends ModuleBody {
final ModuleMethod lambda$Fn64 = new ModuleMethod(this, 62, null, 0);
final ModuleMethod lambda$Fn65 = new ModuleMethod(this, 63, null, 12291);
LList maybe$Mnstarts$Plends;
Object proc$Eq;
Object proc$Gr;
Object proc$Ls;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 62 ? lambda64() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 63 ? lambda65(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 62) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 63) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda64() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mncompare$Mnci, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda65(Object rest, Object start1, Object end1) {
frame30 frame30 = new frame30();
frame30.staticLink = this;
frame30.rest = rest;
frame30.start1 = start1;
frame30.end1 = end1;
return call_with_values.callWithValues(frame30.lambda$Fn66, frame30.lambda$Fn67);
}
}
/* compiled from: srfi13.scm */
public class frame2 extends ModuleBody {
final ModuleMethod lambda$Fn7 = new ModuleMethod(this, 6, null, 0);
final ModuleMethod lambda$Fn8 = new ModuleMethod(this, 7, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f53s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 6 ? lambda7() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 7 ? lambda8(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 6) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 7) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda7() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncopy, this.f53s, this.maybe$Mnstart$Plend);
}
CharSequence lambda8(Object start, Object end) {
Object obj = this.f53s;
try {
try {
try {
return strings.substring((CharSequence) obj, ((Number) start).intValue(), ((Number) end).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "substring", 3, end);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "substring", 2, start);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "substring", 1, obj);
}
}
}
/* compiled from: srfi13.scm */
public class frame30 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn66 = new ModuleMethod(this, 60, null, 0);
final ModuleMethod lambda$Fn67 = new ModuleMethod(this, 61, null, 8194);
Object rest;
Object start1;
frame29 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 60 ? lambda66() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 61 ? lambda67(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 60) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 61) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda66() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncompare$Mnci, this.staticLink.s2, this.rest);
}
Object lambda67(Object start2, Object end2) {
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, this.staticLink.proc$Ls, this.staticLink.proc$Eq, this.staticLink.proc$Gr);
}
}
/* compiled from: srfi13.scm */
public class frame31 extends ModuleBody {
final ModuleMethod lambda$Fn68 = new ModuleMethod(this, 66, null, 0);
final ModuleMethod lambda$Fn69 = new ModuleMethod(this, 67, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 66 ? lambda68() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 67 ? lambda69(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 66) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 67) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda68() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda69(Object rest, Object start1, Object end1) {
frame32 frame32 = new frame32();
frame32.staticLink = this;
frame32.rest = rest;
frame32.start1 = start1;
frame32.end1 = end1;
return call_with_values.callWithValues(frame32.lambda$Fn70, frame32.lambda$Fn71);
}
}
/* compiled from: srfi13.scm */
public class frame32 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn70 = new ModuleMethod(this, 64, null, 0);
final ModuleMethod lambda$Fn71 = new ModuleMethod(this, 65, null, 8194);
Object rest;
Object start1;
frame31 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 64 ? lambda70() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 65 ? lambda71(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 64) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 65) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda70() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Eq, this.staticLink.s2, this.rest);
}
Object lambda71(Object start2, Object end2) {
Object apply2 = Scheme.numEqu.apply2(AddOp.$Mn.apply2(this.end1, this.start1), AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
x = this.staticLink.s1 == this.staticLink.s2;
if (x) {
apply2 = Scheme.numEqu.apply2(this.start1, start2);
try {
x = ((Boolean) apply2).booleanValue();
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
if (x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn72, misc.values, srfi13.lambda$Fn73);
}
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "x", -2, apply2);
}
}
static Boolean lambda72(Object i) {
return Boolean.FALSE;
}
static Boolean lambda73(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame33 extends ModuleBody {
final ModuleMethod lambda$Fn74 = new ModuleMethod(this, 70, null, 0);
final ModuleMethod lambda$Fn75 = new ModuleMethod(this, 71, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 70 ? lambda74() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 71 ? lambda75(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 70) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 71) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda74() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Ls$Gr, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda75(Object rest, Object start1, Object end1) {
frame34 frame34 = new frame34();
frame34.staticLink = this;
frame34.rest = rest;
frame34.start1 = start1;
frame34.end1 = end1;
return call_with_values.callWithValues(frame34.lambda$Fn76, frame34.lambda$Fn77);
}
}
/* compiled from: srfi13.scm */
public class frame34 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn76 = new ModuleMethod(this, 68, null, 0);
final ModuleMethod lambda$Fn77 = new ModuleMethod(this, 69, null, 8194);
Object rest;
Object start1;
frame33 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 68 ? lambda76() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 69 ? lambda77(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 68) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 69) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda76() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Ls$Gr, this.staticLink.s2, this.rest);
}
Object lambda77(Object start2, Object end2) {
int i = 1;
Object apply2 = Scheme.numEqu.apply2(AddOp.$Mn.apply2(this.end1, this.start1), AddOp.$Mn.apply2(end2, start2));
try {
int i2;
if (apply2 != Boolean.FALSE) {
i2 = 1;
} else {
i2 = 0;
}
boolean x = (i2 + 1) & 1;
if (x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
x = this.staticLink.s1 == this.staticLink.s2;
if (x) {
apply2 = Scheme.numEqu.apply2(this.start1, start2);
try {
if (apply2 == Boolean.FALSE) {
i = 0;
}
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
boolean z = x;
x = (i + 1) & 1;
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, srfi13.lambda$Fn78, misc.values);
}
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "x", -2, apply2);
}
}
static Boolean lambda78(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame35 extends ModuleBody {
final ModuleMethod lambda$Fn79 = new ModuleMethod(this, 74, null, 0);
final ModuleMethod lambda$Fn80 = new ModuleMethod(this, 75, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 74 ? lambda79() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 75 ? lambda80(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 74) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 75) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda79() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Ls, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda80(Object rest, Object start1, Object end1) {
frame36 frame36 = new frame36();
frame36.staticLink = this;
frame36.rest = rest;
frame36.start1 = start1;
frame36.end1 = end1;
return call_with_values.callWithValues(frame36.lambda$Fn81, frame36.lambda$Fn82);
}
}
/* compiled from: srfi13.scm */
public class frame36 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn81 = new ModuleMethod(this, 72, null, 0);
final ModuleMethod lambda$Fn82 = new ModuleMethod(this, 73, null, 8194);
Object rest;
Object start1;
frame35 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 72 ? lambda81() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 73 ? lambda82(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 72) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 73) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda81() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Ls, this.staticLink.s2, this.rest);
}
Object lambda82(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numLss.apply2(this.end1, end2);
}
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, srfi13.lambda$Fn83, srfi13.lambda$Fn84);
}
static Boolean lambda83(Object i) {
return Boolean.FALSE;
}
static Boolean lambda84(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame37 extends ModuleBody {
final ModuleMethod lambda$Fn85 = new ModuleMethod(this, 78, null, 0);
final ModuleMethod lambda$Fn86 = new ModuleMethod(this, 79, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 78 ? lambda85() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 79 ? lambda86(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 78) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 79) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda85() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Gr, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda86(Object rest, Object start1, Object end1) {
frame38 frame38 = new frame38();
frame38.staticLink = this;
frame38.rest = rest;
frame38.start1 = start1;
frame38.end1 = end1;
return call_with_values.callWithValues(frame38.lambda$Fn87, frame38.lambda$Fn88);
}
}
/* compiled from: srfi13.scm */
public class frame38 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn87 = new ModuleMethod(this, 76, null, 0);
final ModuleMethod lambda$Fn88 = new ModuleMethod(this, 77, null, 8194);
Object rest;
Object start1;
frame37 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 76 ? lambda87() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 77 ? lambda88(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 76) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 77) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda87() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Gr, this.staticLink.s2, this.rest);
}
Object lambda88(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numGrt.apply2(this.end1, end2);
}
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn89, srfi13.lambda$Fn90, misc.values);
}
static Boolean lambda89(Object i) {
return Boolean.FALSE;
}
static Boolean lambda90(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame39 extends ModuleBody {
final ModuleMethod lambda$Fn91 = new ModuleMethod(this, 82, null, 0);
final ModuleMethod lambda$Fn92 = new ModuleMethod(this, 83, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 82 ? lambda91() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 83 ? lambda92(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 82) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 83) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda91() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Ls$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda92(Object rest, Object start1, Object end1) {
frame40 frame40 = new frame40();
frame40.staticLink = this;
frame40.rest = rest;
frame40.start1 = start1;
frame40.end1 = end1;
return call_with_values.callWithValues(frame40.lambda$Fn93, frame40.lambda$Fn94);
}
}
/* compiled from: srfi13.scm */
public class frame3 extends ModuleBody {
final ModuleMethod lambda$Fn10 = new ModuleMethod(this, 9, null, 8194);
final ModuleMethod lambda$Fn9 = new ModuleMethod(this, 8, null, 0);
LList maybe$Mnstart$Plend;
Object proc;
/* renamed from: s */
Object f54s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 8 ? lambda9() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 9 ? lambda10(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 8) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 9) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda9() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnmap, this.f54s, this.maybe$Mnstart$Plend);
}
Object lambda10(Object start, Object end) {
return srfi13.$PcStringMap(this.proc, this.f54s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame40 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn93 = new ModuleMethod(this, 80, null, 0);
final ModuleMethod lambda$Fn94 = new ModuleMethod(this, 81, null, 8194);
Object rest;
Object start1;
frame39 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 80 ? lambda93() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 81 ? lambda94(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 80) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 81) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda93() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Ls$Eq, this.staticLink.s2, this.rest);
}
Object lambda94(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numLEq.apply2(this.end1, end2);
}
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, misc.values, srfi13.lambda$Fn95);
}
static Boolean lambda95(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame41 extends ModuleBody {
final ModuleMethod lambda$Fn96 = new ModuleMethod(this, 86, null, 0);
final ModuleMethod lambda$Fn97 = new ModuleMethod(this, 87, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 86 ? lambda96() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 87 ? lambda97(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 86) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 87) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda96() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Gr$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda97(Object rest, Object start1, Object end1) {
frame42 frame42 = new frame42();
frame42.staticLink = this;
frame42.rest = rest;
frame42.start1 = start1;
frame42.end1 = end1;
return call_with_values.callWithValues(frame42.lambda$Fn98, frame42.lambda$Fn99);
}
}
/* compiled from: srfi13.scm */
public class frame42 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn98 = new ModuleMethod(this, 84, null, 0);
final ModuleMethod lambda$Fn99 = new ModuleMethod(this, 85, null, 8194);
Object rest;
Object start1;
frame41 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 84 ? lambda98() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 85 ? lambda99(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 84) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 85) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda98() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Gr$Eq, this.staticLink.s2, this.rest);
}
Object lambda99(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numGEq.apply2(this.end1, end2);
}
return srfi13.$PcStringCompare(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn100, misc.values, misc.values);
}
static Boolean lambda100(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame43 extends ModuleBody {
final ModuleMethod lambda$Fn101 = new ModuleMethod(this, 90, null, 0);
final ModuleMethod lambda$Fn102 = new ModuleMethod(this, 91, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 90 ? lambda101() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 91 ? lambda102(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 90) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 91) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda101() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda102(Object rest, Object start1, Object end1) {
frame44 frame44 = new frame44();
frame44.staticLink = this;
frame44.rest = rest;
frame44.start1 = start1;
frame44.end1 = end1;
return call_with_values.callWithValues(frame44.lambda$Fn103, frame44.lambda$Fn104);
}
}
/* compiled from: srfi13.scm */
public class frame44 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn103 = new ModuleMethod(this, 88, null, 0);
final ModuleMethod lambda$Fn104 = new ModuleMethod(this, 89, null, 8194);
Object rest;
Object start1;
frame43 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 88 ? lambda103() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 89 ? lambda104(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 88) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 89) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda103() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Eq, this.staticLink.s2, this.rest);
}
Object lambda104(Object start2, Object end2) {
Object apply2 = Scheme.numEqu.apply2(AddOp.$Mn.apply2(this.end1, this.start1), AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
x = this.staticLink.s1 == this.staticLink.s2;
if (x) {
apply2 = Scheme.numEqu.apply2(this.start1, start2);
try {
x = ((Boolean) apply2).booleanValue();
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
if (x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn105, misc.values, srfi13.lambda$Fn106);
}
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "x", -2, apply2);
}
}
static Boolean lambda105(Object i) {
return Boolean.FALSE;
}
static Boolean lambda106(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame45 extends ModuleBody {
final ModuleMethod lambda$Fn107 = new ModuleMethod(this, 94, null, 0);
final ModuleMethod lambda$Fn108 = new ModuleMethod(this, 95, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 94 ? lambda107() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 95 ? lambda108(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 94) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 95) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda107() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Ls$Gr, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda108(Object rest, Object start1, Object end1) {
frame46 frame46 = new frame46();
frame46.staticLink = this;
frame46.rest = rest;
frame46.start1 = start1;
frame46.end1 = end1;
return call_with_values.callWithValues(frame46.lambda$Fn109, frame46.lambda$Fn110);
}
}
/* compiled from: srfi13.scm */
public class frame46 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn109 = new ModuleMethod(this, 92, null, 0);
final ModuleMethod lambda$Fn110 = new ModuleMethod(this, 93, null, 8194);
Object rest;
Object start1;
frame45 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 92 ? lambda109() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 93 ? lambda110(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 92) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 93) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda109() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Ls$Gr, this.staticLink.s2, this.rest);
}
Object lambda110(Object start2, Object end2) {
int i = 1;
Object apply2 = Scheme.numEqu.apply2(AddOp.$Mn.apply2(this.end1, this.start1), AddOp.$Mn.apply2(end2, start2));
try {
int i2;
if (apply2 != Boolean.FALSE) {
i2 = 1;
} else {
i2 = 0;
}
boolean x = (i2 + 1) & 1;
if (x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
x = this.staticLink.s1 == this.staticLink.s2;
if (x) {
apply2 = Scheme.numEqu.apply2(this.start1, start2);
try {
if (apply2 == Boolean.FALSE) {
i = 0;
}
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
boolean z = x;
x = (i + 1) & 1;
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, srfi13.lambda$Fn111, misc.values);
}
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "x", -2, apply2);
}
}
static Boolean lambda111(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame47 extends ModuleBody {
final ModuleMethod lambda$Fn112 = new ModuleMethod(this, 98, null, 0);
final ModuleMethod lambda$Fn113 = new ModuleMethod(this, 99, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 98 ? lambda112() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 99 ? lambda113(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 98) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 99) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda112() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Ls, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda113(Object rest, Object start1, Object end1) {
frame48 frame48 = new frame48();
frame48.staticLink = this;
frame48.rest = rest;
frame48.start1 = start1;
frame48.end1 = end1;
return call_with_values.callWithValues(frame48.lambda$Fn114, frame48.lambda$Fn115);
}
}
/* compiled from: srfi13.scm */
public class frame48 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn114 = new ModuleMethod(this, 96, null, 0);
final ModuleMethod lambda$Fn115 = new ModuleMethod(this, 97, null, 8194);
Object rest;
Object start1;
frame47 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 96 ? lambda114() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 97 ? lambda115(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 96) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 97) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda114() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Ls, this.staticLink.s2, this.rest);
}
Object lambda115(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numLss.apply2(this.end1, end2);
}
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, srfi13.lambda$Fn116, srfi13.lambda$Fn117);
}
static Boolean lambda116(Object i) {
return Boolean.FALSE;
}
static Boolean lambda117(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame49 extends ModuleBody {
final ModuleMethod lambda$Fn118 = new ModuleMethod(this, 102, null, 0);
final ModuleMethod lambda$Fn119 = new ModuleMethod(this, 103, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 102 ? lambda118() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 103 ? lambda119(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 102) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 103) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda118() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Gr, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda119(Object rest, Object start1, Object end1) {
frame50 frame50 = new frame50();
frame50.staticLink = this;
frame50.rest = rest;
frame50.start1 = start1;
frame50.end1 = end1;
return call_with_values.callWithValues(frame50.lambda$Fn120, frame50.lambda$Fn121);
}
}
/* compiled from: srfi13.scm */
public class frame4 extends ModuleBody {
final ModuleMethod lambda$Fn11 = new ModuleMethod(this, 10, null, 0);
final ModuleMethod lambda$Fn12 = new ModuleMethod(this, 11, null, 8194);
LList maybe$Mnstart$Plend;
Object proc;
/* renamed from: s */
Object f55s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 10 ? lambda11() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 11 ? lambda12(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 10) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 11) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda11() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnmap$Ex, this.f55s, this.maybe$Mnstart$Plend);
}
Object lambda12(Object start, Object end) {
return srfi13.$PcStringMap$Ex(this.proc, this.f55s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame50 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn120 = new ModuleMethod(this, 100, null, 0);
final ModuleMethod lambda$Fn121 = new ModuleMethod(this, 101, null, 8194);
Object rest;
Object start1;
frame49 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 100 ? lambda120() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 101 ? lambda121(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 100) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 101) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda120() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Gr, this.staticLink.s2, this.rest);
}
Object lambda121(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numGrt.apply2(this.end1, end2);
}
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn122, srfi13.lambda$Fn123, misc.values);
}
static Boolean lambda122(Object i) {
return Boolean.FALSE;
}
static Boolean lambda123(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame51 extends ModuleBody {
final ModuleMethod lambda$Fn124 = new ModuleMethod(this, 106, null, 0);
final ModuleMethod lambda$Fn125 = new ModuleMethod(this, 107, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 106 ? lambda124() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 107 ? lambda125(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 106) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 107) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda124() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Ls$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda125(Object rest, Object start1, Object end1) {
frame52 frame52 = new frame52();
frame52.staticLink = this;
frame52.rest = rest;
frame52.start1 = start1;
frame52.end1 = end1;
return call_with_values.callWithValues(frame52.lambda$Fn126, frame52.lambda$Fn127);
}
}
/* compiled from: srfi13.scm */
public class frame52 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn126 = new ModuleMethod(this, 104, null, 0);
final ModuleMethod lambda$Fn127 = new ModuleMethod(this, 105, null, 8194);
Object rest;
Object start1;
frame51 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 104 ? lambda126() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 105 ? lambda127(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 104) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 105) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda126() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Ls$Eq, this.staticLink.s2, this.rest);
}
Object lambda127(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numLEq.apply2(this.end1, end2);
}
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, misc.values, misc.values, srfi13.lambda$Fn128);
}
static Boolean lambda128(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame53 extends ModuleBody {
final ModuleMethod lambda$Fn129 = new ModuleMethod(this, 110, null, 0);
final ModuleMethod lambda$Fn130 = new ModuleMethod(this, 111, null, 12291);
LList maybe$Mnstarts$Plends;
Object s1;
Object s2;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 110 ? lambda129() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 111 ? lambda130(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 110) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 111) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda129() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnci$Gr$Eq, this.s1, this.maybe$Mnstarts$Plends);
}
Object lambda130(Object rest, Object start1, Object end1) {
frame54 frame54 = new frame54();
frame54.staticLink = this;
frame54.rest = rest;
frame54.start1 = start1;
frame54.end1 = end1;
return call_with_values.callWithValues(frame54.lambda$Fn131, frame54.lambda$Fn132);
}
}
/* compiled from: srfi13.scm */
public class frame54 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn131 = new ModuleMethod(this, 108, null, 0);
final ModuleMethod lambda$Fn132 = new ModuleMethod(this, 109, null, 8194);
Object rest;
Object start1;
frame53 staticLink;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 108 ? lambda131() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 109 ? lambda132(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 108) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 109) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda131() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnci$Gr$Eq, this.staticLink.s2, this.rest);
}
Object lambda132(Object start2, Object end2) {
boolean x = this.staticLink.s1 == this.staticLink.s2;
if (x ? Scheme.numEqu.apply2(this.start1, start2) != Boolean.FALSE : x) {
return Scheme.numGEq.apply2(this.end1, end2);
}
return srfi13.$PcStringCompareCi(this.staticLink.s1, this.start1, this.end1, this.staticLink.s2, start2, end2, srfi13.lambda$Fn133, misc.values, misc.values);
}
static Boolean lambda133(Object i) {
return Boolean.FALSE;
}
}
/* compiled from: srfi13.scm */
public class frame55 extends ModuleBody {
Object char$Mn$Grint;
}
/* compiled from: srfi13.scm */
public class frame56 extends ModuleBody {
Object bound;
final ModuleMethod lambda$Fn134 = new ModuleMethod(this, DateTime.TIME_MASK, null, 0);
final ModuleMethod lambda$Fn135 = new ModuleMethod(this, 113, null, 8194);
/* renamed from: s */
Object f56s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == DateTime.TIME_MASK ? lambda134() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 113 ? lambda135(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != DateTime.TIME_MASK) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 113) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda134() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnhash, this.f56s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 912, 55);
throw e;
}
}
Object lambda135(Object start, Object end) {
return srfi13.$PcStringHash(this.f56s, characters.char$Mn$Grinteger, this.bound, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame57 extends ModuleBody {
Object bound;
final ModuleMethod lambda$Fn136 = new ModuleMethod(this, 114, null, 0);
final ModuleMethod lambda$Fn137 = new ModuleMethod(this, 115, null, 8194);
/* renamed from: s */
Object f57s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 114 ? lambda136() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 115 ? lambda137(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 114) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 115) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda136() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnhash$Mnci, this.f57s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 921, 58);
throw e;
}
}
static int lambda138(Object c) {
try {
return characters.char$To$Integer(unicode.charDowncase((Char) c));
} catch (ClassCastException e) {
throw new WrongType(e, "char-downcase", 1, c);
}
}
Object lambda137(Object start, Object end) {
return srfi13.$PcStringHash(this.f57s, srfi13.lambda$Fn138, this.bound, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame58 extends ModuleBody {
final ModuleMethod lambda$Fn139 = new ModuleMethod(this, 116, null, 0);
final ModuleMethod lambda$Fn140 = new ModuleMethod(this, 117, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f58s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 116 ? lambda139() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 117 ? lambda140(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 116) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 117) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda139() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnupcase, this.f58s, this.maybe$Mnstart$Plend);
}
Object lambda140(Object start, Object end) {
return srfi13.$PcStringMap(unicode.char$Mnupcase, this.f58s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame59 extends ModuleBody {
final ModuleMethod lambda$Fn141 = new ModuleMethod(this, 118, null, 0);
final ModuleMethod lambda$Fn142 = new ModuleMethod(this, 119, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f59s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 118 ? lambda141() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 119 ? lambda142(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 118) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 119) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda141() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnupcase$Ex, this.f59s, this.maybe$Mnstart$Plend);
}
Object lambda142(Object start, Object end) {
return srfi13.$PcStringMap$Ex(unicode.char$Mnupcase, this.f59s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame5 extends ModuleBody {
Object knil;
Object kons;
final ModuleMethod lambda$Fn13 = new ModuleMethod(this, 12, null, 0);
final ModuleMethod lambda$Fn14 = new ModuleMethod(this, 13, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f60s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 12 ? lambda13() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 13 ? lambda14(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 12) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 13) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda13() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfold, this.f60s, this.maybe$Mnstart$Plend);
}
Object lambda14(Object start, Object end) {
Object v = this.knil;
Object obj = start;
while (Scheme.numLss.apply2(obj, end) != Boolean.FALSE) {
Procedure procedure = Scheme.applyToArgs;
Object obj2 = this.kons;
Object obj3 = this.f60s;
try {
try {
v = procedure.apply3(obj2, Char.make(strings.stringRef((CharSequence) obj3, ((Number) obj).intValue())), v);
obj = AddOp.$Pl.apply2(obj, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, obj);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj3);
}
}
return v;
}
}
/* compiled from: srfi13.scm */
public class frame60 extends ModuleBody {
final ModuleMethod lambda$Fn143 = new ModuleMethod(this, 120, null, 0);
final ModuleMethod lambda$Fn144 = new ModuleMethod(this, 121, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f61s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 120 ? lambda143() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 121 ? lambda144(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 120) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 121) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda143() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mndowncase, this.f61s, this.maybe$Mnstart$Plend);
}
Object lambda144(Object start, Object end) {
return srfi13.$PcStringMap(unicode.char$Mndowncase, this.f61s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame61 extends ModuleBody {
final ModuleMethod lambda$Fn145 = new ModuleMethod(this, 122, null, 0);
final ModuleMethod lambda$Fn146 = new ModuleMethod(this, 123, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f62s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 122 ? lambda145() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 123 ? lambda146(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 122) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 123) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda145() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mndowncase$Ex, this.f62s, this.maybe$Mnstart$Plend);
}
Object lambda146(Object start, Object end) {
return srfi13.$PcStringMap$Ex(unicode.char$Mndowncase, this.f62s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame62 extends ModuleBody {
final ModuleMethod lambda$Fn147 = new ModuleMethod(this, 124, null, 0);
final ModuleMethod lambda$Fn148 = new ModuleMethod(this, 125, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f63s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 124 ? lambda147() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 125 ? lambda148(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 124) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 125) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda147() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntitlecase$Ex, this.f63s, this.maybe$Mnstart$Plend);
}
Object lambda148(Object start, Object end) {
return srfi13.$PcStringTitlecase$Ex(this.f63s, start, end);
}
}
/* compiled from: srfi13.scm */
public class frame63 extends ModuleBody {
final ModuleMethod lambda$Fn149 = new ModuleMethod(this, TransportMediator.KEYCODE_MEDIA_PLAY, null, 0);
final ModuleMethod lambda$Fn150 = new ModuleMethod(this, TransportMediator.KEYCODE_MEDIA_PAUSE, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f64s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == TransportMediator.KEYCODE_MEDIA_PLAY ? lambda149() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == TransportMediator.KEYCODE_MEDIA_PAUSE ? lambda150(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != TransportMediator.KEYCODE_MEDIA_PLAY) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != TransportMediator.KEYCODE_MEDIA_PAUSE) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda149() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntitlecase$Ex, this.f64s, this.maybe$Mnstart$Plend);
}
CharSequence lambda150(Object start, Object end) {
Object obj = this.f64s;
try {
try {
try {
CharSequence ans = strings.substring((CharSequence) obj, ((Number) start).intValue(), ((Number) end).intValue());
srfi13.$PcStringTitlecase$Ex(ans, srfi13.Lit0, AddOp.$Mn.apply2(end, start));
return ans;
} catch (ClassCastException e) {
throw new WrongType(e, "substring", 3, end);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "substring", 2, start);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "substring", 1, obj);
}
}
}
/* compiled from: srfi13.scm */
public class frame64 extends ModuleBody {
final ModuleMethod lambda$Fn151;
/* renamed from: n */
Object f65n;
/* renamed from: s */
Object f66s;
public frame64() {
PropertySet moduleMethod = new ModuleMethod(this, 128, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:996");
this.lambda$Fn151 = moduleMethod;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == 128) {
return lambda151(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda151(Object val) {
boolean x = numbers.isInteger(this.f65n);
if (!x) {
return x;
}
x = numbers.isExact(this.f65n);
if (!x) {
return x;
}
Procedure procedure = Scheme.numLEq;
IntNum intNum = srfi13.Lit0;
Object obj = this.f65n;
Object obj2 = this.f66s;
try {
return ((Boolean) procedure.apply3(intNum, obj, Integer.valueOf(strings.stringLength((CharSequence) obj2)))).booleanValue();
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, obj2);
}
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 128) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame65 extends ModuleBody {
final ModuleMethod lambda$Fn152;
int len;
/* renamed from: n */
Object f67n;
public frame65() {
PropertySet moduleMethod = new ModuleMethod(this, 129, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1004");
this.lambda$Fn152 = moduleMethod;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == 129) {
return lambda152(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda152(Object val) {
boolean x = numbers.isInteger(this.f67n);
if (!x) {
return x;
}
x = numbers.isExact(this.f67n);
return x ? ((Boolean) Scheme.numLEq.apply3(srfi13.Lit0, this.f67n, Integer.valueOf(this.len))).booleanValue() : x;
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 129) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame66 extends ModuleBody {
final ModuleMethod lambda$Fn153;
int len;
/* renamed from: n */
Object f68n;
public frame66() {
PropertySet moduleMethod = new ModuleMethod(this, TransportMediator.KEYCODE_MEDIA_RECORD, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1010");
this.lambda$Fn153 = moduleMethod;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == TransportMediator.KEYCODE_MEDIA_RECORD) {
return lambda153(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda153(Object val) {
boolean x = numbers.isInteger(this.f68n);
if (!x) {
return x;
}
x = numbers.isExact(this.f68n);
return x ? ((Boolean) Scheme.numLEq.apply3(srfi13.Lit0, this.f68n, Integer.valueOf(this.len))).booleanValue() : x;
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != TransportMediator.KEYCODE_MEDIA_RECORD) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame67 extends ModuleBody {
final ModuleMethod lambda$Fn154;
int len;
/* renamed from: n */
Object f69n;
public frame67() {
PropertySet moduleMethod = new ModuleMethod(this, 131, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1016");
this.lambda$Fn154 = moduleMethod;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == 131) {
return lambda154(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda154(Object val) {
boolean x = numbers.isInteger(this.f69n);
if (!x) {
return x;
}
x = numbers.isExact(this.f69n);
return x ? ((Boolean) Scheme.numLEq.apply3(srfi13.Lit0, this.f69n, Integer.valueOf(this.len))).booleanValue() : x;
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 131) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame68 extends ModuleBody {
final ModuleMethod lambda$Fn155 = new ModuleMethod(this, 132, null, 0);
final ModuleMethod lambda$Fn156 = new ModuleMethod(this, 133, null, 8194);
/* renamed from: s */
Object f70s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 132 ? lambda155() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 133 ? lambda156(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 132) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 133) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda155() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntrim, this.f70s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1023, 53);
throw e;
}
}
Object lambda156(Object start, Object end) {
try {
Object temp = srfi13.stringSkip$V(this.f70s, srfi13.loc$criterion.get(), new Object[]{start, end});
if (temp == Boolean.FALSE) {
return "";
}
Object obj = this.f70s;
try {
try {
try {
return srfi13.$PcSubstring$SlShared((CharSequence) obj, ((Number) temp).intValue(), ((Number) end).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, end);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 1, temp);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%substring/shared", 0, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1024, 29);
throw e4;
}
}
}
/* compiled from: srfi13.scm */
public class frame69 extends ModuleBody {
final ModuleMethod lambda$Fn157 = new ModuleMethod(this, 134, null, 0);
final ModuleMethod lambda$Fn158 = new ModuleMethod(this, 135, null, 8194);
/* renamed from: s */
Object f71s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 134 ? lambda157() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 135 ? lambda158(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 134) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 135) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda157() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntrim$Mnright, this.f71s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1030, 59);
throw e;
}
}
Object lambda158(Object start, Object end) {
try {
Boolean temp = srfi13.stringSkipRight$V(this.f71s, srfi13.loc$criterion.get(), new Object[]{start, end});
if (temp == Boolean.FALSE) {
return "";
}
Object obj = this.f71s;
try {
CharSequence charSequence = (CharSequence) obj;
Object apply2 = AddOp.$Pl.apply2(srfi13.Lit1, temp);
try {
return srfi13.$PcSubstring$SlShared(charSequence, 0, ((Number) apply2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 0, obj);
}
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1031, 35);
throw e3;
}
}
}
/* compiled from: srfi13.scm */
public class frame6 extends ModuleBody {
Object knil;
Object kons;
final ModuleMethod lambda$Fn15 = new ModuleMethod(this, 14, null, 0);
final ModuleMethod lambda$Fn16 = new ModuleMethod(this, 15, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f72s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 14 ? lambda15() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 15 ? lambda16(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 14) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 15) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda15() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfold$Mnright, this.f72s, this.maybe$Mnstart$Plend);
}
Object lambda16(Object start, Object end) {
Object v = this.knil;
Object apply2 = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (Scheme.numGEq.apply2(apply2, start) != Boolean.FALSE) {
Procedure procedure = Scheme.applyToArgs;
Object obj = this.kons;
Object obj2 = this.f72s;
try {
try {
v = procedure.apply3(obj, Char.make(strings.stringRef((CharSequence) obj2, ((Number) apply2).intValue())), v);
apply2 = AddOp.$Mn.apply2(apply2, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj2);
}
}
return v;
}
}
/* compiled from: srfi13.scm */
public class frame70 extends ModuleBody {
final ModuleMethod lambda$Fn159 = new ModuleMethod(this, 136, null, 0);
final ModuleMethod lambda$Fn160 = new ModuleMethod(this, 137, null, 8194);
/* renamed from: s */
Object f73s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 136 ? lambda159() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 137 ? lambda160(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 136) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 137) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda159() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntrim$Mnboth, this.f73s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1037, 58);
throw e;
}
}
Object lambda160(Object start, Object end) {
try {
Object temp = srfi13.stringSkip$V(this.f73s, srfi13.loc$criterion.get(), new Object[]{start, end});
if (temp == Boolean.FALSE) {
return "";
}
Object obj = this.f73s;
try {
CharSequence charSequence = (CharSequence) obj;
try {
int intValue = ((Number) temp).intValue();
try {
Object apply2 = AddOp.$Pl.apply2(srfi13.Lit1, srfi13.stringSkipRight$V(this.f73s, srfi13.loc$criterion.get(), new Object[]{temp, end}));
try {
return srfi13.$PcSubstring$SlShared(charSequence, intValue, ((Number) apply2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, apply2);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1040, 58);
throw e2;
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%substring/shared", 1, temp);
}
} catch (ClassCastException e4) {
throw new WrongType(e4, "%substring/shared", 0, obj);
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1038, 29);
throw e22;
}
}
}
/* compiled from: srfi13.scm */
public class frame71 extends ModuleBody {
final ModuleMethod lambda$Fn161 = new ModuleMethod(this, 138, null, 0);
final ModuleMethod lambda$Fn162 = new ModuleMethod(this, 139, null, 8194);
/* renamed from: n */
Object f74n;
/* renamed from: s */
Object f75s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 138 ? lambda161() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 139 ? lambda162(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 138) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 139) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda161() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnpad$Mnright, this.f75s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1046, 58);
throw e;
}
}
static boolean lambda163(Object n) {
boolean x = numbers.isInteger(n);
if (!x) {
return x;
}
x = numbers.isExact(n);
return x ? ((Boolean) Scheme.numLEq.apply2(srfi13.Lit0, n)).booleanValue() : x;
}
Object lambda162(Object start, Object end) {
try {
Scheme.applyToArgs.apply4(srfi13.loc$check$Mnarg.get(), srfi13.lambda$Fn163, this.f74n, srfi13.string$Mnpad$Mnright);
Object obj;
if (Scheme.numLEq.apply2(this.f74n, AddOp.$Mn.apply2(end, start)) != Boolean.FALSE) {
obj = this.f75s;
try {
CharSequence charSequence = (CharSequence) obj;
try {
int intValue = ((Number) start).intValue();
Object apply2 = AddOp.$Pl.apply2(start, this.f74n);
try {
return srfi13.$PcSubstring$SlShared(charSequence, intValue, ((Number) apply2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 1, start);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%substring/shared", 0, obj);
}
}
Object obj2 = this.f74n;
try {
Object ans = strings.makeString(((Number) obj2).intValue(), LangPrimType.charType);
obj = this.f75s;
try {
try {
try {
srfi13.$PcStringCopy$Ex(ans, 0, (CharSequence) obj, ((Number) start).intValue(), ((Number) end).intValue());
return ans;
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 4, end);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-copy!", 3, start);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%string-copy!", 2, obj);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "make-string", 1, obj2);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1047, 7);
throw e4;
}
}
}
/* compiled from: srfi13.scm */
public class frame72 extends ModuleBody {
final ModuleMethod lambda$Fn164 = new ModuleMethod(this, 140, null, 0);
final ModuleMethod lambda$Fn165 = new ModuleMethod(this, 141, null, 8194);
/* renamed from: n */
Object f76n;
/* renamed from: s */
Object f77s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 140 ? lambda164() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 141 ? lambda165(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 140) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 141) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda164() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnpad, this.f77s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1058, 52);
throw e;
}
}
static boolean lambda166(Object n) {
boolean x = numbers.isInteger(n);
if (!x) {
return x;
}
x = numbers.isExact(n);
return x ? ((Boolean) Scheme.numLEq.apply2(srfi13.Lit0, n)).booleanValue() : x;
}
Object lambda165(Object start, Object end) {
Object obj;
try {
Scheme.applyToArgs.apply4(srfi13.loc$check$Mnarg.get(), srfi13.lambda$Fn166, this.f76n, srfi13.string$Mnpad);
Object len = AddOp.$Mn.apply2(end, start);
if (Scheme.numLEq.apply2(this.f76n, len) != Boolean.FALSE) {
obj = this.f77s;
try {
CharSequence charSequence = (CharSequence) obj;
Object apply2 = AddOp.$Mn.apply2(end, this.f76n);
try {
try {
return srfi13.$PcSubstring$SlShared(charSequence, ((Number) apply2).intValue(), ((Number) end).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, end);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 1, apply2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%substring/shared", 0, obj);
}
}
Object obj2 = this.f76n;
try {
Object ans = strings.makeString(((Number) obj2).intValue(), LangPrimType.charType);
obj2 = AddOp.$Mn.apply2(this.f76n, len);
try {
int intValue = ((Number) obj2).intValue();
obj = this.f77s;
try {
try {
try {
srfi13.$PcStringCopy$Ex(ans, intValue, (CharSequence) obj, ((Number) start).intValue(), ((Number) end).intValue());
return ans;
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 4, end);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-copy!", 3, start);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%string-copy!", 2, obj);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "%string-copy!", 1, obj2);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "make-string", 1, obj2);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1059, 7);
throw e4;
}
}
}
/* compiled from: srfi13.scm */
public class frame73 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn167 = new ModuleMethod(this, 145, null, 0);
final ModuleMethod lambda$Fn168 = new ModuleMethod(this, 146, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f78s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 145 ? lambda167() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 146 ? lambda168(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 145) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 146) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda167() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mndelete, this.f78s, this.maybe$Mnstart$Plend);
}
CharSequence lambda168(Object start, Object end) {
frame74 frame74 = new frame74();
frame74.staticLink = this;
if (misc.isProcedure(this.criterion)) {
Object slen = AddOp.$Mn.apply2(end, start);
try {
frame74.temp = strings.makeString(((Number) slen).intValue());
Object ans$Mnlen = srfi13.stringFold$V(frame74.lambda$Fn169, srfi13.Lit0, this.f78s, new Object[]{start, end});
if (Scheme.numEqu.apply2(ans$Mnlen, slen) != Boolean.FALSE) {
return frame74.temp;
}
try {
return strings.substring(frame74.temp, 0, ((Number) ans$Mnlen).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "substring", 3, ans$Mnlen);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "make-string", 1, slen);
}
}
try {
Object obj;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
obj = this.criterion;
} else if (characters.isChar(this.criterion)) {
try {
obj = Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset.get(), this.criterion);
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1097, 26);
throw e3;
}
} else {
obj = misc.error$V("string-delete criterion not predicate, char or char-set", new Object[]{this.criterion});
}
frame74.cset = obj;
Object len = srfi13.stringFold$V(frame74.lambda$Fn170, srfi13.Lit0, this.f78s, new Object[]{start, end});
try {
frame74.ans = strings.makeString(((Number) len).intValue());
srfi13.stringFold$V(frame74.lambda$Fn171, srfi13.Lit0, this.f78s, new Object[]{start, end});
return frame74.ans;
} catch (ClassCastException e22) {
throw new WrongType(e22, "make-string", 1, len);
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1096, 22);
throw e32;
}
}
}
/* compiled from: srfi13.scm */
public class frame74 extends ModuleBody {
CharSequence ans;
Object cset;
final ModuleMethod lambda$Fn169;
final ModuleMethod lambda$Fn170;
final ModuleMethod lambda$Fn171;
frame73 staticLink;
CharSequence temp;
public frame74() {
PropertySet moduleMethod = new ModuleMethod(this, 142, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1089");
this.lambda$Fn169 = moduleMethod;
moduleMethod = new ModuleMethod(this, 143, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1099");
this.lambda$Fn170 = moduleMethod;
moduleMethod = new ModuleMethod(this, 144, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1104");
this.lambda$Fn171 = moduleMethod;
}
Object lambda169(Object c, Object i) {
if (Scheme.applyToArgs.apply2(this.staticLink.criterion, c) != Boolean.FALSE) {
return i;
}
Object obj = this.temp;
try {
try {
try {
strings.stringSet$Ex((CharSeq) obj, ((Number) i).intValue(), ((Char) c).charValue());
return AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-set!", 1, obj);
}
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
switch (moduleMethod.selector) {
case 142:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 143:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 144:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
default:
return super.match2(moduleMethod, obj, obj2, callContext);
}
}
Object lambda170(Object c, Object i) {
try {
return Scheme.applyToArgs.apply3(srfi13.loc$char$Mnset$Mncontains$Qu.get(), this.cset, c) != Boolean.FALSE ? i : AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1099, 45);
throw e;
}
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
switch (moduleMethod.selector) {
case 142:
return lambda169(obj, obj2);
case 143:
return lambda170(obj, obj2);
case 144:
return lambda171(obj, obj2);
default:
return super.apply2(moduleMethod, obj, obj2);
}
}
Object lambda171(Object c, Object i) {
try {
if (Scheme.applyToArgs.apply3(srfi13.loc$char$Mnset$Mncontains$Qu.get(), this.cset, c) != Boolean.FALSE) {
return i;
}
Object obj = this.ans;
try {
try {
try {
strings.stringSet$Ex((CharSeq) obj, ((Number) i).intValue(), ((Char) c).charValue());
return AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-set!", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_WEB_UNABLE_TO_POST_OR_PUT_FILE, 35);
throw e4;
}
}
}
/* compiled from: srfi13.scm */
public class frame75 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn172 = new ModuleMethod(this, 150, null, 0);
final ModuleMethod lambda$Fn173 = new ModuleMethod(this, 151, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f79s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 150 ? lambda172() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 151 ? lambda173(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 150) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 151) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda172() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfilter, this.f79s, this.maybe$Mnstart$Plend);
}
CharSequence lambda173(Object start, Object end) {
frame76 frame76 = new frame76();
frame76.staticLink = this;
if (misc.isProcedure(this.criterion)) {
Object slen = AddOp.$Mn.apply2(end, start);
try {
frame76.temp = strings.makeString(((Number) slen).intValue());
Object ans$Mnlen = srfi13.stringFold$V(frame76.lambda$Fn174, srfi13.Lit0, this.f79s, new Object[]{start, end});
if (Scheme.numEqu.apply2(ans$Mnlen, slen) != Boolean.FALSE) {
return frame76.temp;
}
try {
return strings.substring(frame76.temp, 0, ((Number) ans$Mnlen).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "substring", 3, ans$Mnlen);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "make-string", 1, slen);
}
}
try {
Object obj;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
obj = this.criterion;
} else if (characters.isChar(this.criterion)) {
try {
obj = Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset.get(), this.criterion);
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1125, 26);
throw e3;
}
} else {
obj = misc.error$V("string-delete criterion not predicate, char or char-set", new Object[]{this.criterion});
}
frame76.cset = obj;
Object len = srfi13.stringFold$V(frame76.lambda$Fn175, srfi13.Lit0, this.f79s, new Object[]{start, end});
try {
frame76.ans = strings.makeString(((Number) len).intValue());
srfi13.stringFold$V(frame76.lambda$Fn176, srfi13.Lit0, this.f79s, new Object[]{start, end});
return frame76.ans;
} catch (ClassCastException e22) {
throw new WrongType(e22, "make-string", 1, len);
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1124, 22);
throw e32;
}
}
}
/* compiled from: srfi13.scm */
public class frame76 extends ModuleBody {
CharSequence ans;
Object cset;
final ModuleMethod lambda$Fn174;
final ModuleMethod lambda$Fn175;
final ModuleMethod lambda$Fn176;
frame75 staticLink;
CharSequence temp;
public frame76() {
PropertySet moduleMethod = new ModuleMethod(this, 147, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1116");
this.lambda$Fn174 = moduleMethod;
moduleMethod = new ModuleMethod(this, 148, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1128");
this.lambda$Fn175 = moduleMethod;
moduleMethod = new ModuleMethod(this, 149, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1133");
this.lambda$Fn176 = moduleMethod;
}
Object lambda174(Object c, Object i) {
if (Scheme.applyToArgs.apply2(this.staticLink.criterion, c) == Boolean.FALSE) {
return i;
}
Object obj = this.temp;
try {
try {
try {
strings.stringSet$Ex((CharSeq) obj, ((Number) i).intValue(), ((Char) c).charValue());
return AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-set!", 1, obj);
}
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
switch (moduleMethod.selector) {
case 147:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 148:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 149:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
default:
return super.match2(moduleMethod, obj, obj2, callContext);
}
}
Object lambda175(Object c, Object i) {
try {
if (Scheme.applyToArgs.apply3(srfi13.loc$char$Mnset$Mncontains$Qu.get(), this.cset, c) != Boolean.FALSE) {
return AddOp.$Pl.apply2(i, srfi13.Lit1);
}
return i;
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1128, 45);
throw e;
}
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
switch (moduleMethod.selector) {
case 147:
return lambda174(obj, obj2);
case 148:
return lambda175(obj, obj2);
case 149:
return lambda176(obj, obj2);
default:
return super.apply2(moduleMethod, obj, obj2);
}
}
Object lambda176(Object c, Object i) {
try {
if (Scheme.applyToArgs.apply3(srfi13.loc$char$Mnset$Mncontains$Qu.get(), this.cset, c) == Boolean.FALSE) {
return i;
}
Object obj = this.ans;
try {
try {
try {
strings.stringSet$Ex((CharSeq) obj, ((Number) i).intValue(), ((Char) c).charValue());
return AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-set!", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1133, 35);
throw e4;
}
}
}
/* compiled from: srfi13.scm */
public class frame77 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn177 = new ModuleMethod(this, 152, null, 0);
final ModuleMethod lambda$Fn178 = new ModuleMethod(this, 153, null, 8194);
LList maybe$Mnstart$Plend;
Object str;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 152 ? lambda177() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 153 ? lambda178(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 152) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 153) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda177() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnindex, this.str, this.maybe$Mnstart$Plend);
}
Object lambda178(Object start, Object end) {
Object i;
Object apply2;
boolean x;
Object obj;
if (characters.isChar(this.criterion)) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
obj = this.criterion;
try {
Char charR = (Char) obj;
apply2 = this.str;
try {
try {
if (characters.isChar$Eq(charR, Char.make(strings.stringRef((CharSequence) apply2, ((Number) i).intValue())))) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, apply2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "char=?", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
try {
Procedure procedure;
Object obj2;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
try {
obj2 = srfi13.loc$char$Mnset$Mncontains$Qu.get();
Object obj3 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply3(obj2, obj3, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) != Boolean.FALSE) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, i);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1162, 9);
throw e4;
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else if (misc.isProcedure(this.criterion)) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
obj2 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply2(obj2, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) != Boolean.FALSE) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 2, i);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 1, obj);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return misc.error$V("Second param is neither char-set, char, or predicate procedure.", new Object[]{srfi13.string$Mnindex, this.criterion});
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1159, 5);
throw e42;
}
}
}
}
/* compiled from: srfi13.scm */
public class frame78 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn179 = new ModuleMethod(this, 154, null, 0);
final ModuleMethod lambda$Fn180 = new ModuleMethod(this, 155, null, 8194);
LList maybe$Mnstart$Plend;
Object str;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 154 ? lambda179() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 155 ? lambda180(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 154) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 155) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda179() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnindex$Mnright, this.str, this.maybe$Mnstart$Plend);
}
Object lambda180(Object start, Object end) {
Object i;
Object apply2;
boolean x;
Object obj;
if (characters.isChar(this.criterion)) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
obj = this.criterion;
try {
Char charR = (Char) obj;
apply2 = this.str;
try {
try {
if (characters.isChar$Eq(charR, Char.make(strings.stringRef((CharSequence) apply2, ((Number) i).intValue())))) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, apply2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "char=?", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
try {
Procedure procedure;
Object obj2;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
try {
obj2 = srfi13.loc$char$Mnset$Mncontains$Qu.get();
Object obj3 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply3(obj2, obj3, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) != Boolean.FALSE) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, i);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1182, 9);
throw e4;
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else if (misc.isProcedure(this.criterion)) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
obj2 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply2(obj2, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) != Boolean.FALSE) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 2, i);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 1, obj);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return misc.error$V("Second param is neither char-set, char, or predicate procedure.", new Object[]{srfi13.string$Mnindex$Mnright, this.criterion});
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1179, 5);
throw e42;
}
}
}
}
/* compiled from: srfi13.scm */
public class frame79 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn181 = new ModuleMethod(this, 156, null, 0);
final ModuleMethod lambda$Fn182 = new ModuleMethod(this, 157, null, 8194);
LList maybe$Mnstart$Plend;
Object str;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 156 ? lambda181() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 157 ? lambda182(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 156) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 157) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda181() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnskip, this.str, this.maybe$Mnstart$Plend);
}
Object lambda182(Object start, Object end) {
Object i;
Object apply2;
boolean x;
Object obj;
if (characters.isChar(this.criterion)) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
obj = this.criterion;
try {
Char charR = (Char) obj;
apply2 = this.str;
try {
try {
if (!characters.isChar$Eq(charR, Char.make(strings.stringRef((CharSequence) apply2, ((Number) i).intValue())))) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, apply2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "char=?", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "x", -2, apply2);
}
}
if (x) {
return Boolean.TRUE;
}
return Boolean.FALSE;
}
try {
Procedure procedure;
Object obj2;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
try {
obj2 = srfi13.loc$char$Mnset$Mncontains$Qu.get();
Object obj3 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply3(obj2, obj3, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) == Boolean.FALSE) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, i);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1203, 9);
throw e4;
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else if (misc.isProcedure(this.criterion)) {
i = start;
while (true) {
apply2 = Scheme.numLss.apply2(i, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
obj2 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply2(obj2, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) == Boolean.FALSE) {
return i;
}
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 2, i);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 1, obj);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return misc.error$V("Second param is neither char-set, char, or predicate procedure.", new Object[]{srfi13.string$Mnskip, this.criterion});
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1200, 5);
throw e42;
}
}
}
/* compiled from: srfi13.scm */
public class frame7 extends ModuleBody {
final ModuleMethod lambda$Fn19 = new ModuleMethod(this, 16, null, 0);
final ModuleMethod lambda$Fn20 = new ModuleMethod(this, 17, null, 8194);
LList maybe$Mnstart$Plend;
Object proc;
/* renamed from: s */
Object f80s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 16 ? lambda19() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 17 ? lambda20(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 16) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 17) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda19() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfor$Mneach, this.f80s, this.maybe$Mnstart$Plend);
}
Object lambda20(Object start, Object end) {
Object i = start;
while (Scheme.numLss.apply2(i, end) != Boolean.FALSE) {
Procedure procedure = Scheme.applyToArgs;
Object obj = this.proc;
Object obj2 = this.f80s;
try {
try {
procedure.apply2(obj, Char.make(strings.stringRef((CharSequence) obj2, ((Number) i).intValue())));
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj2);
}
}
return Values.empty;
}
}
/* compiled from: srfi13.scm */
public class frame80 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn183 = new ModuleMethod(this, 158, null, 0);
final ModuleMethod lambda$Fn184 = new ModuleMethod(this, 159, null, 8194);
LList maybe$Mnstart$Plend;
Object str;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 158 ? lambda183() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 159 ? lambda184(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 158) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 159) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda183() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnskip$Mnright, this.str, this.maybe$Mnstart$Plend);
}
Object lambda184(Object start, Object end) {
Object apply2;
Object obj;
Object i;
boolean x;
if (characters.isChar(this.criterion)) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
obj = this.criterion;
try {
Char charR = (Char) obj;
apply2 = this.str;
try {
try {
if (!characters.isChar$Eq(charR, Char.make(strings.stringRef((CharSequence) apply2, ((Number) i).intValue())))) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, apply2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "char=?", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "x", -2, apply2);
}
}
if (x) {
return Boolean.TRUE;
}
return Boolean.FALSE;
}
try {
Procedure procedure;
Object obj2;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
try {
obj2 = srfi13.loc$char$Mnset$Mncontains$Qu.get();
Object obj3 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply3(obj2, obj3, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) == Boolean.FALSE) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, i);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1225, 9);
throw e4;
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else if (misc.isProcedure(this.criterion)) {
i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (true) {
apply2 = Scheme.numGEq.apply2(i, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
break;
}
procedure = Scheme.applyToArgs;
obj2 = this.criterion;
obj = this.str;
try {
try {
if (procedure.apply2(obj2, Char.make(strings.stringRef((CharSequence) obj, ((Number) i).intValue()))) == Boolean.FALSE) {
return i;
}
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 2, i);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 1, obj);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "x", -2, apply2);
}
}
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
return misc.error$V("CRITERION param is neither char-set or char.", new Object[]{srfi13.string$Mnskip$Mnright, this.criterion});
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1222, 5);
throw e42;
}
}
}
/* compiled from: srfi13.scm */
public class frame81 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn185 = new ModuleMethod(this, ComponentConstants.TEXTBOX_PREFERRED_WIDTH, null, 0);
final ModuleMethod lambda$Fn186 = new ModuleMethod(this, 161, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f81s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == ComponentConstants.TEXTBOX_PREFERRED_WIDTH ? lambda185() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 161 ? lambda186(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != ComponentConstants.TEXTBOX_PREFERRED_WIDTH) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 161) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda185() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncount, this.f81s, this.maybe$Mnstart$Plend);
}
Object lambda186(Object start, Object end) {
Object i;
Object obj;
Object i2;
Object obj2;
if (characters.isChar(this.criterion)) {
obj = srfi13.Lit0;
i = start;
while (Scheme.numGEq.apply2(i, end) == Boolean.FALSE) {
i2 = AddOp.$Pl.apply2(i, srfi13.Lit1);
obj2 = this.criterion;
try {
Char charR = (Char) obj2;
Object obj3 = this.f81s;
try {
try {
if (characters.isChar$Eq(charR, Char.make(strings.stringRef((CharSequence) obj3, ((Number) i).intValue())))) {
obj = AddOp.$Pl.apply2(obj, srfi13.Lit1);
}
i = i2;
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj3);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "char=?", 1, obj2);
}
}
return obj;
}
try {
Procedure procedure;
Object obj4;
if (Scheme.applyToArgs.apply2(srfi13.loc$char$Mnset$Qu.get(), this.criterion) != Boolean.FALSE) {
obj = srfi13.Lit0;
i = start;
while (Scheme.numGEq.apply2(i, end) == Boolean.FALSE) {
i2 = AddOp.$Pl.apply2(i, srfi13.Lit1);
procedure = Scheme.applyToArgs;
try {
obj4 = srfi13.loc$char$Mnset$Mncontains$Qu.get();
Object obj5 = this.criterion;
obj2 = this.f81s;
try {
try {
if (procedure.apply3(obj4, obj5, Char.make(strings.stringRef((CharSequence) obj2, ((Number) i).intValue()))) != Boolean.FALSE) {
obj = AddOp.$Pl.apply2(obj, srfi13.Lit1);
}
i = i2;
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, i);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj2);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1248, 16);
throw e4;
}
}
return obj;
} else if (misc.isProcedure(this.criterion)) {
obj = srfi13.Lit0;
i = start;
while (Scheme.numGEq.apply2(i, end) == Boolean.FALSE) {
i2 = AddOp.$Pl.apply2(i, srfi13.Lit1);
procedure = Scheme.applyToArgs;
obj4 = this.criterion;
obj2 = this.f81s;
try {
try {
if (procedure.apply2(obj4, Char.make(strings.stringRef((CharSequence) obj2, ((Number) i).intValue()))) != Boolean.FALSE) {
obj = AddOp.$Pl.apply2(obj, srfi13.Lit1);
}
i = i2;
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, i);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 1, obj2);
}
}
return obj;
} else {
return misc.error$V("CRITERION param is neither char-set or char.", new Object[]{srfi13.string$Mncount, this.criterion});
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1246, 5);
throw e42;
}
}
}
/* compiled from: srfi13.scm */
public class frame82 extends ModuleBody {
/* renamed from: char */
Object f82char;
final ModuleMethod lambda$Fn187 = new ModuleMethod(this, 162, null, 0);
final ModuleMethod lambda$Fn188 = new ModuleMethod(this, 163, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f83s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 162 ? lambda187() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 163 ? lambda188(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 162) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 163) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda187() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfill$Ex, this.f83s, this.maybe$Mnstart$Plend);
}
Object lambda188(Object start, Object end) {
Object i = AddOp.$Mn.apply2(end, srfi13.Lit1);
while (Scheme.numLss.apply2(i, start) == Boolean.FALSE) {
Object obj = this.f83s;
try {
CharSeq charSeq = (CharSeq) obj;
try {
int intValue = ((Number) i).intValue();
Object obj2 = this.f82char;
try {
strings.stringSet$Ex(charSeq, intValue, ((Char) obj2).charValue());
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, obj2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-set!", 1, obj);
}
}
return Values.empty;
}
}
/* compiled from: srfi13.scm */
public class frame83 extends ModuleBody {
final ModuleMethod lambda$Fn189 = new ModuleMethod(this, 166, null, 0);
final ModuleMethod lambda$Fn190 = new ModuleMethod(this, YaVersion.YOUNG_ANDROID_VERSION, null, 12291);
LList maybe$Mnstarts$Plends;
Object pattern;
Object text;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 166 ? lambda189() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == YaVersion.YOUNG_ANDROID_VERSION ? lambda190(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 166) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != YaVersion.YOUNG_ANDROID_VERSION) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda189() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mncontains, this.text, this.maybe$Mnstarts$Plends);
}
Object lambda190(Object rest, Object tStart, Object tEnd) {
frame84 frame84 = new frame84();
frame84.staticLink = this;
frame84.rest = rest;
frame84.t$Mnstart = tStart;
frame84.t$Mnend = tEnd;
return call_with_values.callWithValues(frame84.lambda$Fn191, frame84.lambda$Fn192);
}
}
/* compiled from: srfi13.scm */
public class frame84 extends ModuleBody {
final ModuleMethod lambda$Fn191 = new ModuleMethod(this, 164, null, 0);
final ModuleMethod lambda$Fn192 = new ModuleMethod(this, 165, null, 8194);
Object rest;
frame83 staticLink;
Object t$Mnend;
Object t$Mnstart;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 164 ? lambda191() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 165 ? lambda192(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 164) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 165) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda191() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncontains, this.staticLink.pattern, this.rest);
}
Object lambda192(Object p$Mnstart, Object p$Mnend) {
return srfi13.$PcKmpSearch(this.staticLink.pattern, this.staticLink.text, characters.char$Eq$Qu, p$Mnstart, p$Mnend, this.t$Mnstart, this.t$Mnend);
}
}
/* compiled from: srfi13.scm */
public class frame85 extends ModuleBody {
final ModuleMethod lambda$Fn193 = new ModuleMethod(this, 170, null, 0);
final ModuleMethod lambda$Fn194 = new ModuleMethod(this, 171, null, 12291);
LList maybe$Mnstarts$Plends;
Object pattern;
Object text;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 170 ? lambda193() : super.apply0(moduleMethod);
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == 171 ? lambda194(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 170) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != 171) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda193() {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mncontains$Mnci, this.text, this.maybe$Mnstarts$Plends);
}
Object lambda194(Object rest, Object tStart, Object tEnd) {
frame86 frame86 = new frame86();
frame86.staticLink = this;
frame86.rest = rest;
frame86.t$Mnstart = tStart;
frame86.t$Mnend = tEnd;
return call_with_values.callWithValues(frame86.lambda$Fn195, frame86.lambda$Fn196);
}
}
/* compiled from: srfi13.scm */
public class frame86 extends ModuleBody {
final ModuleMethod lambda$Fn195 = new ModuleMethod(this, 168, null, 0);
final ModuleMethod lambda$Fn196 = new ModuleMethod(this, 169, null, 8194);
Object rest;
frame85 staticLink;
Object t$Mnend;
Object t$Mnstart;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 168 ? lambda195() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 169 ? lambda196(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 168) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 169) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda195() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mncontains$Mnci, this.staticLink.pattern, this.rest);
}
Object lambda196(Object p$Mnstart, Object p$Mnend) {
return srfi13.$PcKmpSearch(this.staticLink.pattern, this.staticLink.text, unicode.char$Mnci$Eq$Qu, p$Mnstart, p$Mnend, this.t$Mnstart, this.t$Mnend);
}
}
/* compiled from: srfi13.scm */
public class frame87 extends ModuleBody {
final ModuleMethod lambda$Fn197;
Object pattern;
public frame87() {
PropertySet moduleMethod = new ModuleMethod(this, 172, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1399");
this.lambda$Fn197 = moduleMethod;
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
return moduleMethod.selector == 172 ? lambda197(obj) : super.apply1(moduleMethod, obj);
}
Object lambda197(Object args) {
return srfi13.stringParseStart$PlEnd(srfi13.make$Mnkmp$Mnrestart$Mnvector, this.pattern, args);
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 172) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame88 extends ModuleBody {
final ModuleMethod lambda$Fn198;
final ModuleMethod lambda$Fn199;
int patlen;
/* renamed from: s */
Object f84s;
public frame88() {
PropertySet moduleMethod = new ModuleMethod(this, 173, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1468");
this.lambda$Fn198 = moduleMethod;
moduleMethod = new ModuleMethod(this, 174, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1472");
this.lambda$Fn199 = moduleMethod;
}
Object lambda198(Object args) {
return srfi13.stringParseStart$PlEnd(srfi13.string$Mnkmp$Mnpartial$Mnsearch, this.f84s, args);
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
switch (moduleMethod.selector) {
case 173:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 174:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
default:
return super.match1(moduleMethod, obj, callContext);
}
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
switch (moduleMethod.selector) {
case 173:
return lambda198(obj);
case 174:
return lambda199(obj) ? Boolean.TRUE : Boolean.FALSE;
default:
return super.apply1(moduleMethod, obj);
}
}
boolean lambda199(Object i) {
boolean x = numbers.isInteger(i);
if (!x) {
return x;
}
x = numbers.isExact(i);
if (!x) {
return x;
}
Object apply2 = Scheme.numLEq.apply2(srfi13.Lit0, i);
try {
x = ((Boolean) apply2).booleanValue();
return x ? ((Boolean) Scheme.numLss.apply2(i, Integer.valueOf(this.patlen))).booleanValue() : x;
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
}
/* compiled from: srfi13.scm */
public class frame89 extends ModuleBody {
final ModuleMethod lambda$Fn200 = new ModuleMethod(this, 175, null, 0);
final ModuleMethod lambda$Fn201 = new ModuleMethod(this, 176, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f85s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 175 ? lambda200() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 176 ? lambda201(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 175) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 176) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda200() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnreverse, this.f85s, this.maybe$Mnstart$Plend);
}
CharSequence lambda201(Object start, Object end) {
Object len = AddOp.$Mn.apply2(end, start);
try {
Object ans = strings.makeString(((Number) len).intValue());
Object apply2 = AddOp.$Mn.apply2(len, srfi13.Lit1);
Object i = start;
while (Scheme.numLss.apply2(apply2, srfi13.Lit0) == Boolean.FALSE) {
try {
CharSeq charSeq = (CharSeq) ans;
try {
int intValue = ((Number) apply2).intValue();
Object obj = this.f85s;
try {
try {
strings.stringSet$Ex(charSeq, intValue, strings.stringRef((CharSequence) obj, ((Number) i).intValue()));
i = AddOp.$Pl.apply2(i, srfi13.Lit1);
apply2 = AddOp.$Mn.apply2(apply2, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-set!", 2, apply2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-set!", 1, ans);
}
}
return ans;
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "make-string", 1, len);
}
}
}
/* compiled from: srfi13.scm */
public class frame8 extends ModuleBody {
final ModuleMethod lambda$Fn21 = new ModuleMethod(this, 18, null, 0);
final ModuleMethod lambda$Fn22 = new ModuleMethod(this, 19, null, 8194);
LList maybe$Mnstart$Plend;
Object proc;
/* renamed from: s */
Object f86s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 18 ? lambda21() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 19 ? lambda22(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 18) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 19) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda21() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnfor$Mneach$Mnindex, this.f86s, this.maybe$Mnstart$Plend);
}
Object lambda22(Object start, Object end) {
for (Object i = start; Scheme.numLss.apply2(i, end) != Boolean.FALSE; i = AddOp.$Pl.apply2(i, srfi13.Lit1)) {
Scheme.applyToArgs.apply2(this.proc, i);
}
return Values.empty;
}
}
/* compiled from: srfi13.scm */
public class frame90 extends ModuleBody {
final ModuleMethod lambda$Fn202 = new ModuleMethod(this, 177, null, 0);
final ModuleMethod lambda$Fn203 = new ModuleMethod(this, 178, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f87s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 177 ? lambda202() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 178 ? lambda203(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 177) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 178) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda202() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnreverse$Ex, this.f87s, this.maybe$Mnstart$Plend);
}
Object lambda203(Object start, Object end) {
Object i = AddOp.$Mn.apply2(end, srfi13.Lit1);
Object obj = start;
while (Scheme.numLEq.apply2(i, obj) == Boolean.FALSE) {
Object obj2 = this.f87s;
try {
try {
char ci = strings.stringRef((CharSequence) obj2, ((Number) i).intValue());
obj2 = this.f87s;
try {
CharSeq charSeq = (CharSeq) obj2;
try {
int intValue = ((Number) i).intValue();
Object obj3 = this.f87s;
try {
try {
strings.stringSet$Ex(charSeq, intValue, strings.stringRef((CharSequence) obj3, ((Number) obj).intValue()));
obj2 = this.f87s;
try {
try {
strings.stringSet$Ex((CharSeq) obj2, ((Number) obj).intValue(), ci);
i = AddOp.$Mn.apply2(i, srfi13.Lit1);
obj = AddOp.$Pl.apply2(obj, srfi13.Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 2, obj);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 1, obj2);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-ref", 2, obj);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-ref", 1, obj3);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-set!", 2, i);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-set!", 1, obj2);
}
} catch (ClassCastException e3222) {
throw new WrongType(e3222, "string-ref", 2, i);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, obj2);
}
}
return Values.empty;
}
}
/* compiled from: srfi13.scm */
public class frame91 extends ModuleBody {
final ModuleMethod lambda$Fn204 = new ModuleMethod(this, 179, null, 0);
final ModuleMethod lambda$Fn205 = new ModuleMethod(this, 180, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f88s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 179 ? lambda204() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 180 ? lambda205(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 179) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 180) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda204() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mn$Grlist, this.f88s, this.maybe$Mnstart$Plend);
}
Object lambda205(Object start, Object end) {
Object i = AddOp.$Mn.apply2(end, srfi13.Lit1);
Object obj = LList.Empty;
while (Scheme.numLss.apply2(i, start) == Boolean.FALSE) {
Object i2 = AddOp.$Mn.apply2(i, srfi13.Lit1);
Object obj2 = this.f88s;
try {
try {
obj = lists.cons(Char.make(strings.stringRef((CharSequence) obj2, ((Number) i).intValue())), obj);
i = i2;
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj2);
}
}
return obj;
}
}
/* compiled from: srfi13.scm */
public class frame92 extends ModuleBody {
Object end1;
final ModuleMethod lambda$Fn206 = new ModuleMethod(this, 181, null, 0);
final ModuleMethod lambda$Fn207 = new ModuleMethod(this, 182, null, 8194);
LList maybe$Mnstart$Plend;
Object s1;
Object s2;
Object start1;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 181 ? lambda206() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 182 ? lambda207(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 181) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 182) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda206() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnreplace, this.s2, this.maybe$Mnstart$Plend);
}
CharSequence lambda207(Object start2, Object end2) {
Object obj = this.s1;
try {
int slen1 = strings.stringLength((CharSequence) obj);
Object sublen2 = AddOp.$Mn.apply2(end2, start2);
Object alen = AddOp.$Pl.apply2(AddOp.$Mn.apply2(Integer.valueOf(slen1), AddOp.$Mn.apply2(this.end1, this.start1)), sublen2);
try {
CharSequence ans = strings.makeString(((Number) alen).intValue());
obj = this.s1;
try {
CharSequence charSequence = (CharSequence) obj;
Object obj2 = this.start1;
try {
srfi13.$PcStringCopy$Ex(ans, 0, charSequence, 0, ((Number) obj2).intValue());
Object obj3 = this.start1;
try {
int intValue = ((Number) obj3).intValue();
obj = this.s2;
try {
try {
try {
srfi13.$PcStringCopy$Ex(ans, intValue, (CharSequence) obj, ((Number) start2).intValue(), ((Number) end2).intValue());
obj3 = AddOp.$Pl.apply2(this.start1, sublen2);
try {
int intValue2 = ((Number) obj3).intValue();
obj = this.s1;
try {
charSequence = (CharSequence) obj;
obj2 = this.end1;
try {
srfi13.$PcStringCopy$Ex(ans, intValue2, charSequence, ((Number) obj2).intValue(), slen1);
return ans;
} catch (ClassCastException e) {
throw new WrongType(e, "%string-copy!", 3, obj2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-copy!", 2, obj);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%string-copy!", 1, obj3);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%string-copy!", 4, end2);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "%string-copy!", 3, start2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 2, obj);
}
} catch (ClassCastException e3222) {
throw new WrongType(e3222, "%string-copy!", 1, obj3);
}
} catch (ClassCastException e32222) {
throw new WrongType(e32222, "%string-copy!", 4, obj2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-copy!", 2, obj);
}
} catch (ClassCastException e322222) {
throw new WrongType(e322222, "make-string", 1, alen);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-length", 1, obj);
}
}
}
/* compiled from: srfi13.scm */
public class frame93 extends ModuleBody {
final ModuleMethod lambda$Fn208 = new ModuleMethod(this, 183, null, 0);
final ModuleMethod lambda$Fn209 = new ModuleMethod(this, 184, null, 8194);
/* renamed from: s */
Object f89s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 183 ? lambda208() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 184 ? lambda209(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 183) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 184) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda208() {
try {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mntokenize, this.f89s, srfi13.loc$rest.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1696, 57);
throw e;
}
}
Object lambda209(Object start, Object end) {
Object obj;
Object obj2 = LList.Empty;
Object i = end;
while (true) {
Object apply2 = Scheme.numLss.apply2(start, i);
try {
Boolean temp;
boolean x = ((Boolean) apply2).booleanValue();
if (x) {
try {
temp = srfi13.stringIndexRight$V(this.f89s, srfi13.loc$token$Mnchars.get(), new Object[]{start, i});
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1698, 48);
throw e;
}
}
temp = x ? Boolean.TRUE : Boolean.FALSE;
if (temp == Boolean.FALSE) {
return obj2;
}
Object tend = AddOp.$Pl.apply2(srfi13.Lit1, temp);
try {
temp = srfi13.stringSkipRight$V(this.f89s, srfi13.loc$token$Mnchars.get(), new Object[]{start, temp});
if (temp != Boolean.FALSE) {
obj = this.f89s;
try {
CharSequence charSequence = (CharSequence) obj;
Object apply22 = AddOp.$Pl.apply2(srfi13.Lit1, temp);
try {
try {
obj2 = lists.cons(strings.substring(charSequence, ((Number) apply22).intValue(), ((Number) tend).intValue()), obj2);
Boolean i2 = temp;
} catch (ClassCastException e2) {
throw new WrongType(e2, "substring", 3, tend);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "substring", 2, apply22);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "substring", 1, obj);
}
}
obj = this.f89s;
try {
try {
try {
return lists.cons(strings.substring((CharSequence) obj, ((Number) start).intValue(), ((Number) tend).intValue()), obj2);
} catch (ClassCastException e222) {
throw new WrongType(e222, "substring", 3, tend);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "substring", 2, start);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "substring", 1, obj);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_BAD_VALUE_FOR_TEXT_RECEIVING, 34);
throw e4;
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "x", -2, apply2);
}
}
}
}
/* compiled from: srfi13.scm */
public class frame94 extends ModuleBody {
Object from;
final ModuleMethod lambda$Fn211;
final ModuleMethod lambda$Fn212 = new ModuleMethod(this, 185, null, 0);
final ModuleMethod lambda$Fn213;
final ModuleMethod lambda$Fn214;
final ModuleMethod lambda$Fn215;
LList maybe$Mnto$Plstart$Plend;
/* renamed from: s */
Object f90s;
public frame94() {
PropertySet moduleMethod = new ModuleMethod(this, 186, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1744");
this.lambda$Fn214 = moduleMethod;
this.lambda$Fn213 = new ModuleMethod(this, 187, null, 8194);
this.lambda$Fn211 = new ModuleMethod(this, 188, null, 0);
moduleMethod = new ModuleMethod(this, FullScreenVideoUtil.FULLSCREEN_VIDEO_DIALOG_FLAG, null, 12291);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1740");
this.lambda$Fn215 = moduleMethod;
}
public Object apply0(ModuleMethod moduleMethod) {
switch (moduleMethod.selector) {
case 185:
return lambda212();
case 188:
return lambda211();
default:
return super.apply0(moduleMethod);
}
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 187 ? lambda213(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
switch (moduleMethod.selector) {
case 185:
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
case 188:
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
default:
return super.match0(moduleMethod, callContext);
}
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 187) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
static boolean lambda210(Object val) {
boolean x = numbers.isInteger(val);
return x ? numbers.isExact(val) : x;
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == FullScreenVideoUtil.FULLSCREEN_VIDEO_DIALOG_FLAG ? lambda215(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
Object lambda215(Object to, Object start, Object end) {
Object obj;
Object slen = AddOp.$Mn.apply2(end, start);
Object anslen = AddOp.$Mn.apply2(to, this.from);
try {
if (numbers.isZero((Number) anslen)) {
return "";
}
try {
if (numbers.isZero((Number) slen)) {
return misc.error$V("Cannot replicate empty (sub)string", new Object[]{srfi13.xsubstring, this.f90s, this.from, to, start, end});
} else if (Scheme.numEqu.apply2(srfi13.Lit1, slen) != Boolean.FALSE) {
try {
int intValue = ((Number) anslen).intValue();
obj = this.f90s;
try {
try {
return strings.makeString(intValue, Char.make(strings.stringRef((CharSequence) obj, ((Number) start).intValue())));
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, start);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "make-string", 1, anslen);
}
} else {
obj = DivideOp.$Sl.apply2(this.from, slen);
try {
double doubleValue = numbers.floor(LangObjType.coerceRealNum(obj)).doubleValue();
obj = DivideOp.$Sl.apply2(to, slen);
try {
if (doubleValue == numbers.floor(LangObjType.coerceRealNum(obj)).doubleValue()) {
obj = this.f90s;
try {
CharSequence charSequence = (CharSequence) obj;
Object apply2 = AddOp.$Pl.apply2(start, DivideOp.modulo.apply2(this.from, slen));
try {
int intValue2 = ((Number) apply2).intValue();
apply2 = AddOp.$Pl.apply2(start, DivideOp.modulo.apply2(to, slen));
try {
return strings.substring(charSequence, intValue2, ((Number) apply2).intValue());
} catch (ClassCastException e32) {
throw new WrongType(e32, "substring", 3, apply2);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "substring", 2, apply2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "substring", 1, obj);
}
}
try {
Object ans = strings.makeString(((Number) anslen).intValue());
srfi13.$PcMultispanRepcopy$Ex(ans, srfi13.Lit0, this.f90s, this.from, to, start, end);
return ans;
} catch (ClassCastException e3222) {
throw new WrongType(e3222, "make-string", 1, anslen);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "floor", 1, obj);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "floor", 1, obj);
}
}
} catch (ClassCastException e32222) {
throw new WrongType(e32222, "zero?", 1, slen);
}
} catch (ClassCastException e322222) {
throw new WrongType(e322222, "zero?", 1, anslen);
}
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != FullScreenVideoUtil.FULLSCREEN_VIDEO_DIALOG_FLAG) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda211() {
if (lists.isPair(this.maybe$Mnto$Plstart$Plend)) {
return call_with_values.callWithValues(this.lambda$Fn212, this.lambda$Fn213);
}
try {
Object apply4 = Scheme.applyToArgs.apply4(srfi13.loc$check$Mnarg.get(), strings.string$Qu, this.f90s, srfi13.xsubstring);
try {
int slen = strings.stringLength((CharSequence) apply4);
return misc.values(AddOp.$Pl.apply2(this.from, Integer.valueOf(slen)), srfi13.Lit0, Integer.valueOf(slen));
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, apply4);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1749, 36);
throw e2;
}
}
Object lambda212() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.xsubstring, this.f90s, lists.cdr.apply1(this.maybe$Mnto$Plstart$Plend));
}
Object lambda213(Object start, Object end) {
Object to = lists.car.apply1(this.maybe$Mnto$Plstart$Plend);
try {
Scheme.applyToArgs.apply4(srfi13.loc$check$Mnarg.get(), this.lambda$Fn214, to, srfi13.xsubstring);
return misc.values(to, start, end);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1744, 6);
throw e;
}
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
if (moduleMethod.selector == 186) {
return lambda214(obj) ? Boolean.TRUE : Boolean.FALSE;
} else {
return super.apply1(moduleMethod, obj);
}
}
boolean lambda214(Object val) {
boolean x = numbers.isInteger(val);
if (!x) {
return x;
}
x = numbers.isExact(val);
if (x) {
return ((Boolean) Scheme.numLEq.apply2(this.from, val)).booleanValue();
}
return x;
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
if (moduleMethod.selector != 186) {
return super.match1(moduleMethod, obj, callContext);
}
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
}
}
/* compiled from: srfi13.scm */
public class frame95 extends ModuleBody {
final ModuleMethod lambda$Fn217 = new ModuleMethod(this, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PAUSE, null, 0);
final ModuleMethod lambda$Fn218 = new ModuleMethod(this, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SEEK, null, 0);
final ModuleMethod lambda$Fn219 = new ModuleMethod(this, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PLAY, null, 8194);
final ModuleMethod lambda$Fn221;
LList maybe$Mnsto$Plstart$Plend;
/* renamed from: s */
Object f91s;
Object sfrom;
Object target;
Object tstart;
public frame95() {
PropertySet moduleMethod = new ModuleMethod(this, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_STOP, null, 12291);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1781");
this.lambda$Fn221 = moduleMethod;
}
public Object apply0(ModuleMethod moduleMethod) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SEEK /*190*/:
return lambda218();
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PAUSE /*192*/:
return lambda217();
default:
return super.apply0(moduleMethod);
}
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PLAY ? lambda219(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SEEK /*190*/:
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PAUSE /*192*/:
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
default:
return super.match0(moduleMethod, callContext);
}
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_PLAY) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
static boolean lambda216(Object val) {
boolean x = numbers.isInteger(val);
return x ? numbers.isExact(val) : x;
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
return moduleMethod.selector == FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_STOP ? lambda221(obj, obj2, obj3) : super.apply3(moduleMethod, obj, obj2, obj3);
}
Object lambda221(Object sto, Object start, Object end) {
Object obj;
Object obj2;
Object tocopy = AddOp.$Mn.apply2(sto, this.sfrom);
Object tend = AddOp.$Pl.apply2(this.tstart, tocopy);
Object slen = AddOp.$Mn.apply2(end, start);
srfi13.checkSubstringSpec(srfi13.string$Mnxcopy$Ex, this.target, this.tstart, tend);
try {
boolean x = numbers.isZero((Number) tocopy);
if (!x) {
try {
if (numbers.isZero((Number) slen)) {
return misc.error$V("Cannot replicate empty (sub)string", new Object[]{srfi13.string$Mnxcopy$Ex, this.target, this.tstart, this.f91s, this.sfrom, sto, start, end});
} else if (Scheme.numEqu.apply2(srfi13.Lit1, slen) != Boolean.FALSE) {
obj = this.target;
obj2 = this.f91s;
try {
try {
return srfi13.stringFill$Ex$V(obj, Char.make(strings.stringRef((CharSequence) obj2, ((Number) start).intValue())), new Object[]{this.tstart, tend});
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, start);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, obj2);
}
} else {
obj2 = DivideOp.$Sl.apply2(this.sfrom, slen);
try {
double doubleValue = numbers.floor(LangObjType.coerceRealNum(obj2)).doubleValue();
obj = DivideOp.$Sl.apply2(sto, slen);
try {
if (doubleValue != numbers.floor(LangObjType.coerceRealNum(obj)).doubleValue()) {
return srfi13.$PcMultispanRepcopy$Ex(this.target, this.tstart, this.f91s, this.sfrom, sto, start, end);
}
obj2 = this.target;
try {
CharSequence charSequence = (CharSequence) obj2;
obj = this.tstart;
try {
int intValue = ((Number) obj).intValue();
Object obj3 = this.f91s;
try {
CharSequence charSequence2 = (CharSequence) obj3;
Object apply2 = AddOp.$Pl.apply2(start, DivideOp.modulo.apply2(this.sfrom, slen));
try {
int intValue2 = ((Number) apply2).intValue();
apply2 = AddOp.$Pl.apply2(start, DivideOp.modulo.apply2(sto, slen));
try {
return srfi13.$PcStringCopy$Ex(charSequence, intValue, charSequence2, intValue2, ((Number) apply2).intValue());
} catch (ClassCastException e3) {
throw new WrongType(e3, "%string-copy!", 4, apply2);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%string-copy!", 3, apply2);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "%string-copy!", 2, obj3);
}
} catch (ClassCastException e3222) {
throw new WrongType(e3222, "%string-copy!", 1, obj);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 0, obj2);
}
} catch (ClassCastException e32222) {
throw new WrongType(e32222, "floor", 1, obj);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "floor", 1, obj2);
}
}
} catch (ClassCastException e322222) {
throw new WrongType(e322222, "zero?", 1, slen);
}
} else if (x) {
return Boolean.TRUE;
} else {
return Boolean.FALSE;
}
} catch (ClassCastException e3222222) {
throw new WrongType(e3222222, "zero?", 1, tocopy);
}
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
if (moduleMethod.selector != FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_STOP) {
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
}
Object lambda217() {
if (lists.isPair(this.maybe$Mnsto$Plstart$Plend)) {
return call_with_values.callWithValues(this.lambda$Fn218, this.lambda$Fn219);
}
Object obj = this.f91s;
try {
int slen = strings.stringLength((CharSequence) obj);
return misc.values(AddOp.$Pl.apply2(this.sfrom, Integer.valueOf(slen)), srfi13.Lit0, Integer.valueOf(slen));
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, obj);
}
}
Object lambda218() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnxcopy$Ex, this.f91s, lists.cdr.apply1(this.maybe$Mnsto$Plstart$Plend));
}
Object lambda219(Object start, Object end) {
Object sto = lists.car.apply1(this.maybe$Mnsto$Plstart$Plend);
try {
Scheme.applyToArgs.apply4(srfi13.loc$check$Mnarg.get(), srfi13.lambda$Fn220, sto, srfi13.string$Mnxcopy$Ex);
return misc.values(sto, start, end);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1785, 6);
throw e;
}
}
static boolean lambda220(Object val) {
boolean x = numbers.isInteger(val);
return x ? numbers.isExact(val) : x;
}
}
/* compiled from: srfi13.scm */
public class frame96 extends ModuleBody {
/* renamed from: final */
Object f92final;
public Object lambda223recur(Object lis) {
if (!lists.isPair(lis)) {
return this.f92final;
}
try {
return lists.cons(srfi13.loc$delim.get(), lists.cons(lists.car.apply1(lis), lambda223recur(lists.cdr.apply1(lis))));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1857, 13);
throw e;
}
}
}
/* compiled from: srfi13.scm */
public class frame9 extends ModuleBody {
Object criterion;
final ModuleMethod lambda$Fn23 = new ModuleMethod(this, 20, null, 0);
final ModuleMethod lambda$Fn24 = new ModuleMethod(this, 21, null, 8194);
LList maybe$Mnstart$Plend;
/* renamed from: s */
Object f93s;
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 20 ? lambda23() : super.apply0(moduleMethod);
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 21 ? lambda24(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 20) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 21) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda23() {
return srfi13.stringParseFinalStart$PlEnd(srfi13.string$Mnevery, this.f93s, this.maybe$Mnstart$Plend);
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
java.lang.Object lambda24(java.lang.Object r14, java.lang.Object r15) {
/*
r13 = this;
r12 = -2;
r11 = 2;
r10 = 1;
r5 = r13.criterion;
r5 = kawa.lib.characters.isChar(r5);
if (r5 == 0) goto L_0x0053;
L_0x000b:
r2 = r14;
L_0x000c:
r5 = kawa.standard.Scheme.numGEq;
r6 = r5.apply2(r2, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x012b }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x012b }
if (r4 == 0) goto L_0x0024;
L_0x001c:
if (r4 == 0) goto L_0x0021;
L_0x001e:
r5 = java.lang.Boolean.TRUE;
L_0x0020:
return r5;
L_0x0021:
r5 = java.lang.Boolean.FALSE;
goto L_0x0020;
L_0x0024:
r5 = r13.criterion;
r5 = (gnu.text.Char) r5; Catch:{ ClassCastException -> 0x0134 }
r6 = r13.f93s;
r6 = (java.lang.CharSequence) r6; Catch:{ ClassCastException -> 0x013d }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x0146 }
r7 = r0;
r7 = r7.intValue(); Catch:{ ClassCastException -> 0x0146 }
r6 = kawa.lib.strings.stringRef(r6, r7);
r6 = gnu.text.Char.make(r6);
r4 = kawa.lib.characters.isChar$Eq(r5, r6);
if (r4 == 0) goto L_0x004b;
L_0x0042:
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r2 = r5.apply2(r2, r6);
goto L_0x000c;
L_0x004b:
if (r4 == 0) goto L_0x0050;
L_0x004d:
r5 = java.lang.Boolean.TRUE;
goto L_0x0020;
L_0x0050:
r5 = java.lang.Boolean.FALSE;
goto L_0x0020;
L_0x0053:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = gnu.kawa.slib.srfi13.loc$char$Mnset$Qu;
r6 = r6.get(); Catch:{ UnboundLocationException -> 0x014f }
r7 = r13.criterion;
r5 = r5.apply2(r6, r7);
r6 = java.lang.Boolean.FALSE;
if (r5 == r6) goto L_0x00b0;
L_0x0065:
r2 = r14;
L_0x0066:
r5 = kawa.standard.Scheme.numGEq;
r6 = r5.apply2(r2, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x0159 }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x0159 }
if (r4 == 0) goto L_0x007e;
L_0x0076:
if (r4 == 0) goto L_0x007b;
L_0x0078:
r5 = java.lang.Boolean.TRUE;
goto L_0x0020;
L_0x007b:
r5 = java.lang.Boolean.FALSE;
goto L_0x0020;
L_0x007e:
r7 = kawa.standard.Scheme.applyToArgs;
r5 = gnu.kawa.slib.srfi13.loc$char$Mnset$Mncontains$Qu;
r8 = r5.get(); Catch:{ UnboundLocationException -> 0x0162 }
r9 = r13.criterion;
r5 = r13.f93s;
r5 = (java.lang.CharSequence) r5; Catch:{ ClassCastException -> 0x016d }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x0176 }
r6 = r0;
r6 = r6.intValue(); Catch:{ ClassCastException -> 0x0176 }
r5 = kawa.lib.strings.stringRef(r5, r6);
r5 = gnu.text.Char.make(r5);
r4 = r7.apply3(r8, r9, r5);
r5 = java.lang.Boolean.FALSE;
if (r4 == r5) goto L_0x00ad;
L_0x00a4:
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r2 = r5.apply2(r2, r6);
goto L_0x0066;
L_0x00ad:
r5 = r4;
goto L_0x0020;
L_0x00b0:
r5 = r13.criterion;
r5 = kawa.lib.misc.isProcedure(r5);
if (r5 == 0) goto L_0x0118;
L_0x00b8:
r5 = kawa.standard.Scheme.numEqu;
r6 = r5.apply2(r14, r15);
r0 = r6;
r0 = (java.lang.Boolean) r0; Catch:{ ClassCastException -> 0x017f }
r5 = r0;
r4 = r5.booleanValue(); Catch:{ ClassCastException -> 0x017f }
if (r4 == 0) goto L_0x00d2;
L_0x00c8:
if (r4 == 0) goto L_0x00ce;
L_0x00ca:
r5 = java.lang.Boolean.TRUE;
goto L_0x0020;
L_0x00ce:
r5 = java.lang.Boolean.FALSE;
goto L_0x0020;
L_0x00d2:
r2 = r14;
L_0x00d3:
r5 = r13.f93s;
r5 = (java.lang.CharSequence) r5; Catch:{ ClassCastException -> 0x0188 }
r0 = r2;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x0191 }
r6 = r0;
r6 = r6.intValue(); Catch:{ ClassCastException -> 0x0191 }
r1 = kawa.lib.strings.stringRef(r5, r6);
r5 = gnu.kawa.functions.AddOp.$Pl;
r6 = gnu.kawa.slib.srfi13.Lit1;
r3 = r5.apply2(r2, r6);
r5 = kawa.standard.Scheme.numEqu;
r5 = r5.apply2(r3, r15);
r6 = java.lang.Boolean.FALSE;
if (r5 == r6) goto L_0x0103;
L_0x00f5:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = r13.criterion;
r7 = gnu.text.Char.make(r1);
r5 = r5.apply2(r6, r7);
goto L_0x0020;
L_0x0103:
r5 = kawa.standard.Scheme.applyToArgs;
r6 = r13.criterion;
r7 = gnu.text.Char.make(r1);
r4 = r5.apply2(r6, r7);
r5 = java.lang.Boolean.FALSE;
if (r4 == r5) goto L_0x0115;
L_0x0113:
r2 = r3;
goto L_0x00d3;
L_0x0115:
r5 = r4;
goto L_0x0020;
L_0x0118:
r5 = "Second param is neither char-set, char, or predicate procedure.";
r6 = new java.lang.Object[r11];
r7 = 0;
r8 = gnu.kawa.slib.srfi13.string$Mnevery;
r6[r7] = r8;
r7 = r13.criterion;
r6[r10] = r7;
r5 = kawa.lib.misc.error$V(r5, r6);
goto L_0x0020;
L_0x012b:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x0134:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "char=?";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x013d:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r5, r8, r10, r6);
throw r7;
L_0x0146:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
L_0x014f:
r5 = move-exception;
r6 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r7 = 489; // 0x1e9 float:6.85E-43 double:2.416E-321;
r8 = 5;
r5.setLine(r6, r7, r8);
throw r5;
L_0x0159:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x0162:
r5 = move-exception;
r6 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r7 = 492; // 0x1ec float:6.9E-43 double:2.43E-321;
r8 = 9;
r5.setLine(r6, r7, r8);
throw r5;
L_0x016d:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x0176:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
L_0x017f:
r5 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "x";
r7.<init>(r5, r8, r12, r6);
throw r7;
L_0x0188:
r6 = move-exception;
r7 = new gnu.mapping.WrongType;
r8 = "string-ref";
r7.<init>(r6, r8, r10, r5);
throw r7;
L_0x0191:
r5 = move-exception;
r6 = new gnu.mapping.WrongType;
r7 = "string-ref";
r6.<init>(r5, r7, r11, r2);
throw r6;
*/
throw new UnsupportedOperationException("Method not decompiled: gnu.kawa.slib.srfi13.frame9.lambda24(java.lang.Object, java.lang.Object):java.lang.Object");
}
}
/* compiled from: srfi13.scm */
public class frame extends ModuleBody {
Object args;
final ModuleMethod lambda$Fn1 = new ModuleMethod(this, 1, null, 0);
final ModuleMethod lambda$Fn2;
Object proc;
/* renamed from: s */
Object f94s;
int slen;
Object start;
public frame() {
PropertySet moduleMethod = new ModuleMethod(this, 2, null, 8194);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:150");
this.lambda$Fn2 = moduleMethod;
}
public Object apply0(ModuleMethod moduleMethod) {
return moduleMethod.selector == 1 ? lambda1() : super.apply0(moduleMethod);
}
public int match0(ModuleMethod moduleMethod, CallContext callContext) {
if (moduleMethod.selector != 1) {
return super.match0(moduleMethod, callContext);
}
callContext.proc = moduleMethod;
callContext.pc = 0;
return 0;
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
return moduleMethod.selector == 2 ? lambda2(obj, obj2) : super.apply2(moduleMethod, obj, obj2);
}
Object lambda2(Object end, Object args) {
if (Scheme.numLEq.apply2(this.start, end) != Boolean.FALSE) {
return misc.values(args, this.start, end);
}
return misc.error$V("Illegal substring START/END spec", new Object[]{this.proc, this.start, end, this.f94s});
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
if (moduleMethod.selector != 2) {
return super.match2(moduleMethod, obj, obj2, callContext);
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
}
Object lambda1() {
if (lists.isPair(this.args)) {
Object end = lists.car.apply1(this.args);
Object args = lists.cdr.apply1(this.args);
boolean x = numbers.isInteger(end);
if (x) {
x = numbers.isExact(end);
if (x) {
}
} else {
if (x) {
}
return misc.error$V("Illegal substring END spec", new Object[]{this.proc, end, this.f94s});
}
return misc.values(end, args);
}
return misc.values(Integer.valueOf(this.slen), this.args);
}
}
static {
Object[] objArr = new Object[]{(SimpleSymbol) new SimpleSymbol("l-s-s+e2").readResolve()};
SyntaxRule[] syntaxRuleArr = new SyntaxRule[1];
r4 = new Object[5];
SimpleSymbol simpleSymbol = (SimpleSymbol) new SimpleSymbol("let-string-start+end").readResolve();
Lit41 = simpleSymbol;
r4[2] = simpleSymbol;
simpleSymbol = (SimpleSymbol) new SimpleSymbol("rest").readResolve();
Lit27 = simpleSymbol;
r4[3] = PairWithPosition.make(simpleSymbol, LList.Empty, "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 553003);
r4[4] = Lit27;
syntaxRuleArr[0] = new SyntaxRule(new SyntaxPattern("\f\u0018L\f\u0007\f\u000f\f\u0017\f\u001f\b\f'\f/\f7\f?\rG@\b\b", new Object[0], 9), "\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0001\u0003", "\u0011\u0018\u00041\b\u0011\u0018\f\b#\b\u0011\u0018\u00141\t\u0003\t\u000b\u0018\u001c\u0011\u0018\f\t+\t;\b\u0011\u0018\u0014!\t\u0013\b\u001b\u0011\u0018\f\t3\u0011\u0018$\bEC", r4, 1);
Lit44 = new SyntaxRules(objArr, syntaxRuleArr, 9);
objArr = new Object[]{Lit41};
syntaxRuleArr = new SyntaxRule[2];
syntaxRuleArr[0] = new SyntaxRule(new SyntaxPattern("\f\u0018,\f\u0007\f\u000f\b\f\u0017\f\u001f\f'\r/(\b\b", new Object[0], 6), "\u0001\u0001\u0001\u0001\u0001\u0003", "\u0011\u0018\u0004!\t\u0003\b\u000bI\u0011\u0018\f\t\u0013\t\u001b\b#\b-+", new Object[]{Lit150, Lit47}, 1);
syntaxRuleArr[1] = new SyntaxRule(new SyntaxPattern("\f\u0018<\f\u0007\f\u000f\f\u0017\b\f\u001f\f'\f/\r70\b\b", new Object[0], 7), "\u0001\u0001\u0001\u0001\u0001\u0001\u0003", "\u0011\u0018\u00041\t\u0013\t\u0003\b\u000bI\u0011\u0018\f\t\u001b\t#\b+\b53", new Object[]{Lit150, Lit45}, 1);
Lit42 = new SyntaxRules(objArr, syntaxRuleArr, 7);
ModuleBody moduleBody = $instance;
string$Mnparse$Mnstart$Plend = new ModuleMethod(moduleBody, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SOURCE, Lit45, 12291);
$Pccheck$Mnbounds = new ModuleMethod(moduleBody, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_FULLSCREEN, Lit46, 16388);
string$Mnparse$Mnfinal$Mnstart$Plend = new ModuleMethod(moduleBody, FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_DURATION, Lit47, 12291);
substring$Mnspec$Mnok$Qu = new ModuleMethod(moduleBody, 197, Lit48, 12291);
check$Mnsubstring$Mnspec = new ModuleMethod(moduleBody, 198, Lit49, 16388);
PropertySet moduleMethod = new ModuleMethod(moduleBody, 199, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:223");
lambda$Fn5 = moduleMethod;
substring$Slshared = new ModuleMethod(moduleBody, HttpRequestContext.HTTP_OK, Lit50, -4094);
$Pcsubstring$Slshared = new ModuleMethod(moduleBody, ErrorMessages.ERROR_CAMERA_NO_IMAGE_RETURNED, Lit51, 12291);
string$Mncopy = new ModuleMethod(moduleBody, 202, Lit52, -4095);
string$Mnmap = new ModuleMethod(moduleBody, 203, Lit53, -4094);
$Pcstring$Mnmap = new ModuleMethod(moduleBody, 204, Lit54, 16388);
string$Mnmap$Ex = new ModuleMethod(moduleBody, 205, Lit55, -4094);
$Pcstring$Mnmap$Ex = new ModuleMethod(moduleBody, 206, Lit56, 16388);
string$Mnfold = new ModuleMethod(moduleBody, 207, Lit57, -4093);
string$Mnfold$Mnright = new ModuleMethod(moduleBody, 208, Lit58, -4093);
moduleMethod = new ModuleMethod(moduleBody, 209, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:377");
lambda$Fn17 = moduleMethod;
string$Mnunfold = new ModuleMethod(moduleBody, 210, Lit59, -4092);
moduleMethod = new ModuleMethod(moduleBody, 211, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:422");
lambda$Fn18 = moduleMethod;
string$Mnunfold$Mnright = new ModuleMethod(moduleBody, 212, Lit60, -4092);
string$Mnfor$Mneach = new ModuleMethod(moduleBody, 213, Lit61, -4094);
string$Mnfor$Mneach$Mnindex = new ModuleMethod(moduleBody, 214, Lit62, -4094);
string$Mnevery = new ModuleMethod(moduleBody, 215, Lit63, -4094);
string$Mnany = new ModuleMethod(moduleBody, 216, Lit64, -4094);
moduleMethod = new ModuleMethod(moduleBody, 217, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:535");
lambda$Fn27 = moduleMethod;
string$Mntabulate = new ModuleMethod(moduleBody, 218, Lit65, 8194);
$Pcstring$Mnprefix$Mnlength = new ModuleMethod(moduleBody, 219, Lit66, 24582);
$Pcstring$Mnsuffix$Mnlength = new ModuleMethod(moduleBody, 220, Lit67, 24582);
$Pcstring$Mnprefix$Mnlength$Mnci = new ModuleMethod(moduleBody, 221, Lit68, 24582);
$Pcstring$Mnsuffix$Mnlength$Mnci = new ModuleMethod(moduleBody, 222, Lit69, 24582);
string$Mnprefix$Mnlength = new ModuleMethod(moduleBody, 223, Lit70, -4094);
string$Mnsuffix$Mnlength = new ModuleMethod(moduleBody, 224, Lit71, -4094);
string$Mnprefix$Mnlength$Mnci = new ModuleMethod(moduleBody, 225, Lit72, -4094);
string$Mnsuffix$Mnlength$Mnci = new ModuleMethod(moduleBody, 226, Lit73, -4094);
string$Mnprefix$Qu = new ModuleMethod(moduleBody, 227, Lit74, -4094);
string$Mnsuffix$Qu = new ModuleMethod(moduleBody, 228, Lit75, -4094);
string$Mnprefix$Mnci$Qu = new ModuleMethod(moduleBody, 229, Lit76, -4094);
string$Mnsuffix$Mnci$Qu = new ModuleMethod(moduleBody, 230, Lit77, -4094);
$Pcstring$Mnprefix$Qu = new ModuleMethod(moduleBody, 231, Lit78, 24582);
$Pcstring$Mnsuffix$Qu = new ModuleMethod(moduleBody, 232, Lit79, 24582);
$Pcstring$Mnprefix$Mnci$Qu = new ModuleMethod(moduleBody, 233, Lit80, 24582);
$Pcstring$Mnsuffix$Mnci$Qu = new ModuleMethod(moduleBody, 234, Lit81, 24582);
$Pcstring$Mncompare = new ModuleMethod(moduleBody, 235, Lit82, 36873);
$Pcstring$Mncompare$Mnci = new ModuleMethod(moduleBody, 236, Lit83, 36873);
string$Mncompare = new ModuleMethod(moduleBody, 237, Lit84, -4091);
string$Mncompare$Mnci = new ModuleMethod(moduleBody, 238, Lit85, -4091);
moduleMethod = new ModuleMethod(moduleBody, 239, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:756");
lambda$Fn72 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 240, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:758");
lambda$Fn73 = moduleMethod;
string$Eq = new ModuleMethod(moduleBody, LispEscapeFormat.ESCAPE_NORMAL, Lit86, -4094);
moduleMethod = new ModuleMethod(moduleBody, LispEscapeFormat.ESCAPE_ALL, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:767");
lambda$Fn78 = moduleMethod;
string$Ls$Gr = new ModuleMethod(moduleBody, 243, Lit87, -4094);
moduleMethod = new ModuleMethod(moduleBody, 244, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:778");
lambda$Fn83 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 245, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:779");
lambda$Fn84 = moduleMethod;
string$Ls = new ModuleMethod(moduleBody, 246, Lit88, -4094);
moduleMethod = new ModuleMethod(moduleBody, 247, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:788");
lambda$Fn89 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 248, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:789");
lambda$Fn90 = moduleMethod;
string$Gr = new ModuleMethod(moduleBody, 249, Lit89, -4094);
moduleMethod = new ModuleMethod(moduleBody, 250, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:801");
lambda$Fn95 = moduleMethod;
string$Ls$Eq = new ModuleMethod(moduleBody, Telnet.WILL, Lit90, -4094);
moduleMethod = new ModuleMethod(moduleBody, Telnet.WONT, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:810");
lambda$Fn100 = moduleMethod;
string$Gr$Eq = new ModuleMethod(moduleBody, Telnet.DO, Lit91, -4094);
moduleMethod = new ModuleMethod(moduleBody, Telnet.DONT, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:820");
lambda$Fn105 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 255, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:822");
lambda$Fn106 = moduleMethod;
string$Mnci$Eq = new ModuleMethod(moduleBody, 256, Lit92, -4094);
moduleMethod = new ModuleMethod(moduleBody, InputDeviceCompat.SOURCE_KEYBOARD, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:831");
lambda$Fn111 = moduleMethod;
string$Mnci$Ls$Gr = new ModuleMethod(moduleBody, 258, Lit93, -4094);
moduleMethod = new ModuleMethod(moduleBody, 259, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:842");
lambda$Fn116 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 260, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:843");
lambda$Fn117 = moduleMethod;
string$Mnci$Ls = new ModuleMethod(moduleBody, 261, Lit94, -4094);
moduleMethod = new ModuleMethod(moduleBody, 262, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:852");
lambda$Fn122 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 263, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:853");
lambda$Fn123 = moduleMethod;
string$Mnci$Gr = new ModuleMethod(moduleBody, 264, Lit95, -4094);
moduleMethod = new ModuleMethod(moduleBody, 265, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:865");
lambda$Fn128 = moduleMethod;
string$Mnci$Ls$Eq = new ModuleMethod(moduleBody, 266, Lit96, -4094);
moduleMethod = new ModuleMethod(moduleBody, 267, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:874");
lambda$Fn133 = moduleMethod;
string$Mnci$Gr$Eq = new ModuleMethod(moduleBody, 268, Lit97, -4094);
$Pcstring$Mnhash = new ModuleMethod(moduleBody, 269, Lit98, 20485);
string$Mnhash = new ModuleMethod(moduleBody, 270, Lit99, -4095);
moduleMethod = new ModuleMethod(moduleBody, 271, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:922");
lambda$Fn138 = moduleMethod;
string$Mnhash$Mnci = new ModuleMethod(moduleBody, 272, Lit100, -4095);
string$Mnupcase = new ModuleMethod(moduleBody, 273, Lit101, -4095);
string$Mnupcase$Ex = new ModuleMethod(moduleBody, 274, Lit102, -4095);
string$Mndowncase = new ModuleMethod(moduleBody, 275, Lit103, -4095);
string$Mndowncase$Ex = new ModuleMethod(moduleBody, 276, Lit104, -4095);
$Pcstring$Mntitlecase$Ex = new ModuleMethod(moduleBody, 277, Lit105, 12291);
string$Mntitlecase$Ex = new ModuleMethod(moduleBody, 278, Lit106, -4095);
string$Mntitlecase = new ModuleMethod(moduleBody, 279, Lit107, -4095);
string$Mntake = new ModuleMethod(moduleBody, 280, Lit108, 8194);
string$Mntake$Mnright = new ModuleMethod(moduleBody, 281, Lit109, 8194);
string$Mndrop = new ModuleMethod(moduleBody, 282, Lit110, 8194);
string$Mndrop$Mnright = new ModuleMethod(moduleBody, 283, Lit111, 8194);
string$Mntrim = new ModuleMethod(moduleBody, 284, Lit112, -4095);
string$Mntrim$Mnright = new ModuleMethod(moduleBody, 285, Lit113, -4095);
string$Mntrim$Mnboth = new ModuleMethod(moduleBody, 286, Lit114, -4095);
moduleMethod = new ModuleMethod(moduleBody, 287, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1047");
lambda$Fn163 = moduleMethod;
string$Mnpad$Mnright = new ModuleMethod(moduleBody, 288, Lit115, -4094);
moduleMethod = new ModuleMethod(moduleBody, 289, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1059");
lambda$Fn166 = moduleMethod;
string$Mnpad = new ModuleMethod(moduleBody, 290, Lit116, -4094);
string$Mndelete = new ModuleMethod(moduleBody, 291, Lit117, -4094);
string$Mnfilter = new ModuleMethod(moduleBody, 292, Lit118, -4094);
string$Mnindex = new ModuleMethod(moduleBody, 293, Lit119, -4094);
string$Mnindex$Mnright = new ModuleMethod(moduleBody, 294, Lit120, -4094);
string$Mnskip = new ModuleMethod(moduleBody, 295, Lit121, -4094);
string$Mnskip$Mnright = new ModuleMethod(moduleBody, 296, Lit122, -4094);
string$Mncount = new ModuleMethod(moduleBody, 297, Lit123, -4094);
string$Mnfill$Ex = new ModuleMethod(moduleBody, 298, Lit124, -4094);
string$Mncopy$Ex = new ModuleMethod(moduleBody, 299, Lit125, 20483);
$Pcstring$Mncopy$Ex = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_BLANK_CONSUMER_KEY_OR_SECRET, Lit126, 20485);
string$Mncontains = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_EXCEPTION, Lit127, -4094);
string$Mncontains$Mnci = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_UNABLE_TO_GET_ACCESS_TOKEN, Lit128, -4094);
$Pckmp$Mnsearch = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_AUTHORIZATION_FAILED, Lit129, 28679);
make$Mnkmp$Mnrestart$Mnvector = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_SET_STATUS_FAILED, Lit130, -4095);
kmp$Mnstep = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_REQUEST_MENTIONS_FAILED, Lit131, 24582);
string$Mnkmp$Mnpartial$Mnsearch = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_REQUEST_FOLLOWERS_FAILED, Lit132, -4092);
string$Mnnull$Qu = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_REQUEST_DIRECT_MESSAGES_FAILED, Lit133, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
string$Mnreverse = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_DIRECT_MESSAGE_FAILED, Lit134, -4095);
string$Mnreverse$Ex = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_FOLLOW_FAILED, Lit135, -4095);
reverse$Mnlist$Mn$Grstring = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_STOP_FOLLOWING_FAILED, Lit136, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
string$Mn$Grlist = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_REQUEST_FRIEND_TIMELINE_FAILED, Lit137, -4095);
string$Mnappend$Slshared = new ModuleMethod(moduleBody, ErrorMessages.ERROR_TWITTER_SEARCH_FAILED, Lit138, -4096);
string$Mnconcatenate$Slshared = new ModuleMethod(moduleBody, 315, Lit139, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
string$Mnconcatenate = new ModuleMethod(moduleBody, 316, Lit140, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
string$Mnconcatenate$Mnreverse = new ModuleMethod(moduleBody, 317, Lit141, -4095);
string$Mnconcatenate$Mnreverse$Slshared = new ModuleMethod(moduleBody, 318, Lit142, -4095);
$Pcfinish$Mnstring$Mnconcatenate$Mnreverse = new ModuleMethod(moduleBody, 319, Lit143, 16388);
string$Mnreplace = new ModuleMethod(moduleBody, ScreenDensityUtil.DEFAULT_NORMAL_SHORT_DIMENSION, Lit144, -4092);
string$Mntokenize = new ModuleMethod(moduleBody, 321, Lit145, -4095);
moduleMethod = new ModuleMethod(moduleBody, 322, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1738");
lambda$Fn210 = moduleMethod;
xsubstring = new ModuleMethod(moduleBody, 323, Lit146, -4094);
moduleMethod = new ModuleMethod(moduleBody, 324, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1779");
lambda$Fn216 = moduleMethod;
moduleMethod = new ModuleMethod(moduleBody, 325, null, FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
moduleMethod.setProperty("source-location", "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm:1785");
lambda$Fn220 = moduleMethod;
string$Mnxcopy$Ex = new ModuleMethod(moduleBody, 326, Lit147, -4092);
$Pcmultispan$Mnrepcopy$Ex = new ModuleMethod(moduleBody, 327, Lit148, 28679);
string$Mnjoin = new ModuleMethod(moduleBody, 328, Lit149, -4095);
$instance.run();
}
public srfi13() {
ModuleInfo.register(this);
}
public static Object stringCopy$Ex(Object obj, int i, CharSequence charSequence) {
return stringCopy$Ex(obj, i, charSequence, 0);
}
public static Object stringCopy$Ex(Object obj, int i, CharSequence charSequence, int i2) {
return stringCopy$Ex(obj, i, charSequence, i2, charSequence.length());
}
public final void run(CallContext $ctx) {
Consumer $result = $ctx.consumer;
}
public static Object stringParseStart$PlEnd(Object proc, Object s, Object args) {
frame frame = new frame();
frame.proc = proc;
frame.f94s = s;
if (!strings.isString(frame.f94s)) {
misc.error$V("Non-string value", new Object[]{frame.proc, frame.f94s});
}
Object obj = frame.f94s;
try {
frame.slen = strings.stringLength((CharSequence) obj);
if (lists.isPair(args)) {
obj = lists.car.apply1(args);
frame.args = lists.cdr.apply1(args);
frame.start = obj;
boolean x = numbers.isInteger(frame.start);
if (x) {
x = numbers.isExact(frame.start);
if (x) {
}
} else {
if (x) {
}
return misc.error$V("Illegal substring START spec", new Object[]{frame.proc, frame.start, frame.f94s});
}
return call_with_values.callWithValues(frame.lambda$Fn1, frame.lambda$Fn2);
}
return misc.values(LList.Empty, Lit0, Integer.valueOf(frame.slen));
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, obj);
}
}
public int match3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, CallContext callContext) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SOURCE /*194*/:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_DURATION /*196*/:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
case 197:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
case ErrorMessages.ERROR_CAMERA_NO_IMAGE_RETURNED /*201*/:
if (!(obj instanceof CharSequence)) {
return -786431;
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
case 277:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
case 299:
callContext.value1 = obj;
callContext.value2 = obj2;
if (!(obj3 instanceof CharSequence)) {
return -786429;
}
callContext.value3 = obj3;
callContext.proc = moduleMethod;
callContext.pc = 3;
return 0;
default:
return super.match3(moduleMethod, obj, obj2, obj3, callContext);
}
}
public static Object $PcCheckBounds(Object proc, CharSequence s, int start, int end) {
if (start < 0) {
return misc.error$V("Illegal substring START spec", new Object[]{proc, Integer.valueOf(start), s});
} else if (start > end) {
return misc.error$V("Illegal substring START/END spec", new Object[0]);
} else {
if (end <= strings.stringLength(s)) {
return Values.empty;
}
return misc.error$V("Illegal substring END spec", new Object[]{proc, Integer.valueOf(end), s});
}
}
public int match4(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, Object obj4, CallContext callContext) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_FULLSCREEN /*195*/:
callContext.value1 = obj;
if (!(obj2 instanceof CharSequence)) {
return -786430;
}
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
case 198:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
case 204:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
case 206:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
case 299:
callContext.value1 = obj;
callContext.value2 = obj2;
if (!(obj3 instanceof CharSequence)) {
return -786429;
}
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
case 319:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.value3 = obj3;
callContext.value4 = obj4;
callContext.proc = moduleMethod;
callContext.pc = 4;
return 0;
default:
return super.match4(moduleMethod, obj, obj2, obj3, obj4, callContext);
}
}
public static Object stringParseFinalStart$PlEnd(Object proc, Object s, Object args) {
frame0 frame0 = new frame0();
frame0.proc = proc;
frame0.f51s = s;
frame0.args = args;
return call_with_values.callWithValues(frame0.lambda$Fn3, frame0.lambda$Fn4);
}
public static boolean isSubstringSpecOk(Object s, Object start, Object end) {
boolean x = strings.isString(s);
if (!x) {
return x;
}
x = numbers.isInteger(start);
if (!x) {
return x;
}
x = numbers.isExact(start);
if (!x) {
return x;
}
x = numbers.isInteger(end);
if (!x) {
return x;
}
x = numbers.isExact(end);
if (!x) {
return x;
}
Object apply2 = Scheme.numLEq.apply2(Lit0, start);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
return x;
}
apply2 = Scheme.numLEq.apply2(start, end);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
return x;
}
try {
return ((Boolean) Scheme.numLEq.apply2(end, Integer.valueOf(strings.stringLength((CharSequence) s)))).booleanValue();
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, s);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "x", -2, apply2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "x", -2, apply2);
}
}
public static Object checkSubstringSpec(Object proc, Object s, Object start, Object end) {
if (isSubstringSpecOk(s, start, end)) {
return Values.empty;
}
return misc.error$V("Illegal substring spec.", new Object[]{proc, s, start, end});
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
static java.lang.Object $PcCheckSubstringSpec(java.lang.Object r5, java.lang.CharSequence r6, int r7, int r8) {
/*
r1 = 1;
r2 = 0;
if (r7 >= 0) goto L_0x0025;
L_0x0004:
r0 = r1;
L_0x0005:
if (r0 == 0) goto L_0x0027;
L_0x0007:
if (r0 == 0) goto L_0x002e;
L_0x0009:
r3 = "Illegal substring spec.";
r4 = 4;
r4 = new java.lang.Object[r4];
r4[r2] = r5;
r4[r1] = r6;
r1 = 2;
r2 = java.lang.Integer.valueOf(r7);
r4[r1] = r2;
r1 = 3;
r2 = java.lang.Integer.valueOf(r8);
r4[r1] = r2;
r1 = kawa.lib.misc.error$V(r3, r4);
L_0x0024:
return r1;
L_0x0025:
r0 = r2;
goto L_0x0005;
L_0x0027:
if (r7 <= r8) goto L_0x0031;
L_0x0029:
r0 = r1;
L_0x002a:
if (r0 == 0) goto L_0x0033;
L_0x002c:
if (r0 != 0) goto L_0x0009;
L_0x002e:
r1 = gnu.mapping.Values.empty;
goto L_0x0024;
L_0x0031:
r0 = r2;
goto L_0x002a;
L_0x0033:
r3 = kawa.lib.strings.stringLength(r6);
if (r8 <= r3) goto L_0x002e;
L_0x0039:
goto L_0x0009;
*/
throw new UnsupportedOperationException("Method not decompiled: gnu.kawa.slib.srfi13.$PcCheckSubstringSpec(java.lang.Object, java.lang.CharSequence, int, int):java.lang.Object");
}
public static Object substring$SlShared$V(Object s, Object start, Object[] argsArray) {
frame1 frame1 = new frame1();
frame1.start = start;
LList maybe$Mnend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), strings.string$Qu, s, substring$Slshared);
try {
frame1.slen = strings.stringLength((CharSequence) s);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), lambda$Fn5, frame1.start, substring$Slshared);
try {
CharSequence charSequence = (CharSequence) s;
Object obj = frame1.start;
try {
int intValue = ((Number) obj).intValue();
try {
obj = Scheme.applyToArgs.apply4(loc$$Cloptional.get(), maybe$Mnend, Integer.valueOf(frame1.slen), frame1.lambda$Fn6);
try {
return $PcSubstring$SlShared(charSequence, intValue, ((Number) obj).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, obj);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 226, 10);
throw e2;
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "%substring/shared", 1, obj);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%substring/shared", 0, s);
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 223, 5);
throw e22;
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-length", 1, s);
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 221, 3);
throw e222;
}
}
public int matchN(ModuleMethod moduleMethod, Object[] objArr, CallContext callContext) {
switch (moduleMethod.selector) {
case HttpRequestContext.HTTP_OK /*200*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 202:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 203:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 205:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 207:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 208:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 210:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 212:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 213:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 214:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 215:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 216:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 219:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 220:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 221:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 222:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 223:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 224:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 225:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 226:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 227:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 228:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 229:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 230:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 231:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 232:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 233:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 234:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 235:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 236:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 237:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 238:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case LispEscapeFormat.ESCAPE_NORMAL /*241*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 243:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 246:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 249:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case Telnet.WILL /*251*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case Telnet.DO /*253*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 256:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 258:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 261:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 264:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 266:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 268:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 269:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 270:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 272:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 273:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 274:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 275:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 276:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 278:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 279:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 284:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 285:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 286:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 288:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 290:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 291:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 292:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 293:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 294:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 295:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 296:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 297:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 298:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 299:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_BLANK_CONSUMER_KEY_OR_SECRET /*302*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_EXCEPTION /*303*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_UNABLE_TO_GET_ACCESS_TOKEN /*304*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_AUTHORIZATION_FAILED /*305*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_SET_STATUS_FAILED /*306*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_REQUEST_MENTIONS_FAILED /*307*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_REQUEST_FOLLOWERS_FAILED /*308*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_DIRECT_MESSAGE_FAILED /*310*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_FOLLOW_FAILED /*311*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_REQUEST_FRIEND_TIMELINE_FAILED /*313*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ErrorMessages.ERROR_TWITTER_SEARCH_FAILED /*314*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 317:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 318:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case ScreenDensityUtil.DEFAULT_NORMAL_SHORT_DIMENSION /*320*/:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 321:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 323:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 326:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 327:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
case 328:
callContext.values = objArr;
callContext.proc = moduleMethod;
callContext.pc = 5;
return 0;
default:
return super.matchN(moduleMethod, objArr, callContext);
}
}
public int match1(ModuleMethod moduleMethod, Object obj, CallContext callContext) {
switch (moduleMethod.selector) {
case 199:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 209:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 211:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 217:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 239:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 240:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case LispEscapeFormat.ESCAPE_ALL /*242*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 244:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 245:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 247:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 248:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 250:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case Telnet.WONT /*252*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case Telnet.DONT /*254*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 255:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case InputDeviceCompat.SOURCE_KEYBOARD /*257*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 259:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 260:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 262:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 263:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 265:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 267:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 271:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 287:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 289:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case ErrorMessages.ERROR_TWITTER_REQUEST_DIRECT_MESSAGES_FAILED /*309*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case ErrorMessages.ERROR_TWITTER_STOP_FOLLOWING_FAILED /*312*/:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 315:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 316:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 322:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 324:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
case 325:
callContext.value1 = obj;
callContext.proc = moduleMethod;
callContext.pc = 1;
return 0;
default:
return super.match1(moduleMethod, obj, callContext);
}
}
public static Object $PcSubstring$SlShared(CharSequence s, int start, int end) {
boolean x = numbers.isZero(Integer.valueOf(start));
if (x) {
if (end == strings.stringLength(s)) {
return s;
}
} else if (x) {
return s;
}
return strings.substring(s, start, end);
}
public static Object stringCopy$V(Object s, Object[] argsArray) {
frame2 frame2 = new frame2();
frame2.f53s = s;
frame2.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame2.lambda$Fn7, frame2.lambda$Fn8);
}
public static Object stringMap$V(Object proc, Object s, Object[] argsArray) {
frame3 frame3 = new frame3();
frame3.proc = proc;
frame3.f54s = s;
frame3.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame3.proc, string$Mnmap);
return call_with_values.callWithValues(frame3.lambda$Fn9, frame3.lambda$Fn10);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 271, 3);
throw e;
}
}
public static Object $PcStringMap(Object proc, Object s, Object start, Object end) {
Object len = AddOp.$Mn.apply2(end, start);
try {
Object ans = strings.makeString(((Number) len).intValue());
Object i = AddOp.$Mn.apply2(end, Lit1);
Object apply2 = AddOp.$Mn.apply2(len, Lit1);
while (Scheme.numLss.apply2(apply2, Lit0) == Boolean.FALSE) {
try {
CharSeq charSeq = (CharSeq) ans;
try {
int intValue = ((Number) apply2).intValue();
try {
try {
Object apply22 = Scheme.applyToArgs.apply2(proc, Char.make(strings.stringRef((CharSequence) s, ((Number) i).intValue())));
try {
strings.stringSet$Ex(charSeq, intValue, ((Char) apply22).charValue());
i = AddOp.$Mn.apply2(i, Lit1);
apply2 = AddOp.$Mn.apply2(apply2, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, apply22);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 2, i);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 1, s);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-set!", 2, apply2);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-set!", 1, ans);
}
}
return ans;
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "make-string", 1, len);
}
}
public static Object stringMap$Ex$V(Object proc, Object s, Object[] argsArray) {
frame4 frame4 = new frame4();
frame4.proc = proc;
frame4.f55s = s;
frame4.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame4.proc, string$Mnmap$Ex);
return call_with_values.callWithValues(frame4.lambda$Fn11, frame4.lambda$Fn12);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 285, 3);
throw e;
}
}
public static Object $PcStringMap$Ex(Object proc, Object s, Object start, Object end) {
Object i = AddOp.$Mn.apply2(end, Lit1);
while (Scheme.numLss.apply2(i, start) == Boolean.FALSE) {
try {
CharSeq charSeq = (CharSeq) s;
try {
int intValue = ((Number) i).intValue();
try {
try {
Object apply2 = Scheme.applyToArgs.apply2(proc, Char.make(strings.stringRef((CharSequence) s, ((Number) i).intValue())));
try {
strings.stringSet$Ex(charSeq, intValue, ((Char) apply2).charValue());
i = AddOp.$Mn.apply2(i, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 2, i);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 1, s);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-set!", 2, i);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-set!", 1, s);
}
}
return Values.empty;
}
public static Object stringFold$V(Object kons, Object knil, Object s, Object[] argsArray) {
frame5 frame5 = new frame5();
frame5.kons = kons;
frame5.knil = knil;
frame5.f60s = s;
frame5.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame5.kons, string$Mnfold);
return call_with_values.callWithValues(frame5.lambda$Fn13, frame5.lambda$Fn14);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 295, 3);
throw e;
}
}
public static Object stringFoldRight$V(Object kons, Object knil, Object s, Object[] argsArray) {
frame6 frame6 = new frame6();
frame6.kons = kons;
frame6.knil = knil;
frame6.f72s = s;
frame6.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame6.kons, string$Mnfold$Mnright);
return call_with_values.callWithValues(frame6.lambda$Fn15, frame6.lambda$Fn16);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_TWITTER_BLANK_CONSUMER_KEY_OR_SECRET, 3);
throw e;
}
}
public static Object stringUnfold$V(Object p, Object f, Object g, Object seed, Object[] argsArray) {
Object valueOf;
Object min;
LList base$Plmake$Mnfinal = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, p, string$Mnunfold);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, f, string$Mnunfold);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, g, string$Mnunfold);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
try {
try {
try {
try {
Object apply2 = Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply3(loc$base.get(), "", strings.isString(loc$base.get()) ? Boolean.TRUE : Boolean.FALSE), Scheme.applyToArgs.apply3(loc$make$Mnfinal.get(), lambda$Fn17, misc.isProcedure(loc$make$Mnfinal.get()) ? Boolean.TRUE : Boolean.FALSE));
Object chunks = LList.Empty;
int i = 0;
CharSequence makeString = strings.makeString(40);
int i2 = 40;
int i3 = 0;
loop0:
while (true) {
valueOf = Integer.valueOf(i3);
while (Scheme.applyToArgs.apply2(p, seed) == Boolean.FALSE) {
Object c = Scheme.applyToArgs.apply2(f, seed);
seed = Scheme.applyToArgs.apply2(g, seed);
if (Scheme.numLss.apply2(valueOf, Integer.valueOf(i2)) != Boolean.FALSE) {
try {
try {
try {
strings.stringSet$Ex((CharSeq) makeString, ((Number) valueOf).intValue(), ((Char) c).charValue());
valueOf = AddOp.$Pl.apply2(valueOf, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, valueOf);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-set!", 1, (Object) makeString);
}
}
int nchars2 = i2 + i;
min = numbers.min(Lit2, Integer.valueOf(nchars2));
try {
int chunk$Mnlen2 = ((Number) min).intValue();
CharSequence new$Mnchunk = strings.makeString(chunk$Mnlen2);
try {
try {
strings.stringSet$Ex((CharSeq) new$Mnchunk, 0, ((Char) c).charValue());
chunks = lists.cons(makeString, chunks);
i += i2;
i3 = 1;
i2 = chunk$Mnlen2;
makeString = new$Mnchunk;
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-set!", 3, c);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-set!", 1, (Object) new$Mnchunk);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "chunk-len2", -2, min);
}
}
break loop0;
}
try {
Object finalR = Scheme.applyToArgs.apply2(loc$make$Mnfinal.get(), seed);
try {
int flen = strings.stringLength((CharSequence) finalR);
try {
try {
int base$Mnlen = strings.stringLength((CharSequence) loc$base.get());
min = AddOp.$Pl.apply2(Integer.valueOf(base$Mnlen + i), valueOf);
try {
int j = ((Number) min).intValue();
CharSequence ans = strings.makeString(j + flen);
try {
$PcStringCopy$Ex(ans, j, (CharSequence) finalR, 0, flen);
min = AddOp.$Mn.apply2(Integer.valueOf(j), valueOf);
try {
j = ((Number) min).intValue();
try {
try {
$PcStringCopy$Ex(ans, j, makeString, 0, ((Number) valueOf).intValue());
j = Integer.valueOf(j);
while (lists.isPair(chunks)) {
Object chunk = lists.car.apply1(chunks);
chunks = lists.cdr.apply1(chunks);
try {
i2 = strings.stringLength((CharSequence) chunk);
j = AddOp.$Mn.apply2(j, Integer.valueOf(i2));
try {
try {
$PcStringCopy$Ex(ans, ((Number) j).intValue(), (CharSequence) chunk, 0, i2);
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "%string-copy!", 2, chunk);
}
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "%string-copy!", 1, (Object) j);
}
} catch (ClassCastException e22222222) {
throw new WrongType(e22222222, "string-length", 1, chunk);
}
}
try {
try {
$PcStringCopy$Ex(ans, 0, (CharSequence) loc$base.get(), 0, base$Mnlen);
return procedure.apply4(obj, base$Plmake$Mnfinal, apply2, ans);
} catch (ClassCastException e3) {
throw new WrongType(e3, "%string-copy!", 2, r20);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_NXT_UNABLE_TO_DOWNLOAD_FILE, 29);
throw e4;
}
} catch (ClassCastException e222222222) {
throw new WrongType(e222222222, "%string-copy!", 4, valueOf);
}
} catch (ClassCastException e2222222222) {
throw new WrongType(e2222222222, "%string-copy!", 2, (Object) makeString);
}
} catch (ClassCastException e22222222222) {
throw new WrongType(e22222222222, "j", -2, min);
}
} catch (ClassCastException e222222222222) {
throw new WrongType(e222222222222, "%string-copy!", 2, finalR);
}
} catch (ClassCastException e2222222222222) {
throw new WrongType(e2222222222222, "j", -2, min);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-length", 1, r20);
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_NXT_NOT_CONNECTED_TO_ROBOT, 38);
throw e42;
}
} catch (ClassCastException e22222222222222) {
throw new WrongType(e22222222222222, "string-length", 1, finalR);
}
} catch (UnboundLocationException e422) {
e422.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 400, 20);
throw e422;
}
} catch (UnboundLocationException e4222) {
e4222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 377, 46);
throw e4222;
}
} catch (UnboundLocationException e42222) {
e42222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 377, 6);
throw e42222;
}
} catch (UnboundLocationException e422222) {
e422222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 376, 57);
throw e422222;
}
} catch (UnboundLocationException e4222222) {
e4222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 376, 20);
throw e4222222;
}
} catch (UnboundLocationException e42222222) {
e42222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 375, 3);
throw e42222222;
}
} catch (UnboundLocationException e422222222) {
e422222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 374, 3);
throw e422222222;
}
} catch (UnboundLocationException e4222222222) {
e4222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 373, 3);
throw e4222222222;
}
} catch (UnboundLocationException e42222222222) {
e42222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 372, 3);
throw e42222222222;
}
}
static String lambda17(Object x) {
return "";
}
public static Object stringUnfoldRight$V(Object p, Object f, Object g, Object seed, Object[] argsArray) {
LList base$Plmake$Mnfinal = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
try {
try {
try {
try {
Object apply2 = Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply3(loc$base.get(), "", strings.isString(loc$base.get()) ? Boolean.TRUE : Boolean.FALSE), Scheme.applyToArgs.apply3(loc$make$Mnfinal.get(), lambda$Fn18, misc.isProcedure(loc$make$Mnfinal.get()) ? Boolean.TRUE : Boolean.FALSE));
Object chunks = LList.Empty;
IntNum intNum = Lit0;
CharSequence makeString = strings.makeString(40);
IntNum intNum2 = Lit3;
Object i = Lit3;
while (Scheme.applyToArgs.apply2(p, seed) == Boolean.FALSE) {
Object c = Scheme.applyToArgs.apply2(f, seed);
seed = Scheme.applyToArgs.apply2(g, seed);
if (Scheme.numGrt.apply2(i, Lit0) != Boolean.FALSE) {
i = AddOp.$Mn.apply2(i, Lit1);
try {
try {
try {
strings.stringSet$Ex((CharSeq) makeString, ((Number) i).intValue(), ((Char) c).charValue());
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, c);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, i);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-set!", 1, (Object) makeString);
}
}
Object nchars2 = AddOp.$Pl.apply2(intNum2, intNum);
Object chunk$Mnlen2 = numbers.min(Lit4, nchars2);
try {
CharSequence new$Mnchunk = strings.makeString(((Number) chunk$Mnlen2).intValue());
i = AddOp.$Mn.apply2(chunk$Mnlen2, Lit1);
try {
try {
try {
strings.stringSet$Ex((CharSeq) new$Mnchunk, ((Number) i).intValue(), ((Char) c).charValue());
chunks = lists.cons(makeString, chunks);
intNum = AddOp.$Pl.apply2(intNum, intNum2);
intNum2 = chunk$Mnlen2;
makeString = new$Mnchunk;
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-set!", 3, c);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-set!", 2, i);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-set!", 1, (Object) new$Mnchunk);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "make-string", 1, chunk$Mnlen2);
}
}
try {
Object finalR = Scheme.applyToArgs.apply2(loc$make$Mnfinal.get(), seed);
try {
int flen = strings.stringLength((CharSequence) finalR);
try {
try {
int base$Mnlen = strings.stringLength((CharSequence) loc$base.get());
Object chunk$Mnused = AddOp.$Mn.apply2(intNum2, i);
Object apply22 = AddOp.$Pl.apply2(AddOp.$Pl.apply2(AddOp.$Pl.apply2(Integer.valueOf(base$Mnlen), intNum), chunk$Mnused), Integer.valueOf(flen));
try {
CharSequence ans = strings.makeString(((Number) apply22).intValue());
try {
$PcStringCopy$Ex(ans, 0, (CharSequence) finalR, 0, flen);
try {
try {
try {
$PcStringCopy$Ex(ans, flen, makeString, ((Number) i).intValue(), intNum2.intValue());
Object j = AddOp.$Pl.apply2(Integer.valueOf(flen), chunk$Mnused);
while (lists.isPair(chunks)) {
Object chunk = lists.car.apply1(chunks);
chunks = lists.cdr.apply1(chunks);
try {
int chunk$Mnlen = strings.stringLength((CharSequence) chunk);
try {
try {
$PcStringCopy$Ex(ans, ((Number) j).intValue(), (CharSequence) chunk, 0, chunk$Mnlen);
j = AddOp.$Pl.apply2(j, Integer.valueOf(chunk$Mnlen));
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "%string-copy!", 2, chunk);
}
} catch (ClassCastException e22222222) {
throw new WrongType(e22222222, "%string-copy!", 1, j);
}
} catch (ClassCastException e222222222) {
throw new WrongType(e222222222, "string-length", 1, chunk);
}
}
try {
try {
try {
$PcStringCopy$Ex(ans, ((Number) j).intValue(), (CharSequence) loc$base.get(), 0, base$Mnlen);
return procedure.apply4(obj, base$Plmake$Mnfinal, apply2, ans);
} catch (ClassCastException e3) {
throw new WrongType(e3, "%string-copy!", 2, r21);
}
} catch (UnboundLocationException e4) {
e4.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 463, 30);
throw e4;
}
} catch (ClassCastException e2222222222) {
throw new WrongType(e2222222222, "%string-copy!", 1, j);
}
} catch (ClassCastException e22222222222) {
throw new WrongType(e22222222222, "%string-copy!", 4, (Object) intNum2);
}
} catch (ClassCastException e222222222222) {
throw new WrongType(e222222222222, "%string-copy!", 3, i);
}
} catch (ClassCastException e2222222222222) {
throw new WrongType(e2222222222222, "%string-copy!", 2, (Object) makeString);
}
} catch (ClassCastException e22222222222222) {
throw new WrongType(e22222222222222, "%string-copy!", 2, finalR);
}
} catch (ClassCastException e222222222222222) {
throw new WrongType(e222222222222222, "make-string", 1, apply22);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-length", 1, r21);
}
} catch (UnboundLocationException e42) {
e42.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 449, 31);
throw e42;
}
} catch (ClassCastException e2222222222222222) {
throw new WrongType(e2222222222222222, "string-length", 1, finalR);
}
} catch (UnboundLocationException e422) {
e422.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 447, 20);
throw e422;
}
} catch (UnboundLocationException e4222) {
e4222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 422, 46);
throw e4222;
}
} catch (UnboundLocationException e42222) {
e42222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 422, 6);
throw e42222;
}
} catch (UnboundLocationException e422222) {
e422222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 421, 57);
throw e422222;
}
} catch (UnboundLocationException e4222222) {
e4222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 421, 20);
throw e4222222;
}
} catch (UnboundLocationException e42222222) {
e42222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 420, 3);
throw e42222222;
}
}
static String lambda18(Object x) {
return "";
}
public static Object stringForEach$V(Object proc, Object s, Object[] argsArray) {
frame7 frame7 = new frame7();
frame7.proc = proc;
frame7.f80s = s;
frame7.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame7.proc, string$Mnfor$Mneach);
return call_with_values.callWithValues(frame7.lambda$Fn19, frame7.lambda$Fn20);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 468, 3);
throw e;
}
}
public static Object stringForEachIndex$V(Object proc, Object s, Object[] argsArray) {
frame8 frame8 = new frame8();
frame8.proc = proc;
frame8.f86s = s;
frame8.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame8.proc, string$Mnfor$Mneach$Mnindex);
return call_with_values.callWithValues(frame8.lambda$Fn21, frame8.lambda$Fn22);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 476, 3);
throw e;
}
}
public static Object stringEvery$V(Object criterion, Object s, Object[] argsArray) {
frame9 frame9 = new frame9();
frame9.criterion = criterion;
frame9.f93s = s;
frame9.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame9.lambda$Fn23, frame9.lambda$Fn24);
}
public static Object stringAny$V(Object criterion, Object s, Object[] argsArray) {
frame10 frame10 = new frame10();
frame10.criterion = criterion;
frame10.f52s = s;
frame10.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame10.lambda$Fn25, frame10.lambda$Fn26);
}
public static CharSequence stringTabulate(Object proc, int len) {
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, proc, string$Mntabulate);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), lambda$Fn27, Integer.valueOf(len), string$Mntabulate);
Object s = strings.makeString(len);
int i = len - 1;
while (i >= 0) {
try {
CharSeq charSeq = (CharSeq) s;
Object apply2 = Scheme.applyToArgs.apply2(proc, Integer.valueOf(i));
try {
strings.stringSet$Ex(charSeq, i, ((Char) apply2).charValue());
i--;
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 1, s);
}
}
return s;
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 535, 3);
throw e3;
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 534, 3);
throw e32;
}
}
public int match2(ModuleMethod moduleMethod, Object obj, Object obj2, CallContext callContext) {
switch (moduleMethod.selector) {
case 218:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 280:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 281:
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 282:
if (!(obj instanceof CharSequence)) {
return -786431;
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
case 283:
if (!(obj instanceof CharSequence)) {
return -786431;
}
callContext.value1 = obj;
callContext.value2 = obj2;
callContext.proc = moduleMethod;
callContext.pc = 2;
return 0;
default:
return super.match2(moduleMethod, obj, obj2, callContext);
}
}
static boolean lambda27(Object val) {
boolean x = numbers.isInteger(val);
if (!x) {
return x;
}
x = numbers.isExact(val);
return x ? ((Boolean) Scheme.numLEq.apply2(Lit0, val)).booleanValue() : x;
}
public static Object $PcStringPrefixLength(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
boolean x = false;
Object delta = numbers.min(AddOp.$Mn.apply2(end1, start1), AddOp.$Mn.apply2(end2, start2));
end1 = AddOp.$Pl.apply2(start1, delta);
if (s1 == s2) {
x = true;
}
if (x) {
if (Scheme.numEqu.apply2(start1, start2) != Boolean.FALSE) {
return delta;
}
} else if (x) {
return delta;
}
Object i = start1;
Object obj = start2;
while (true) {
Object apply2 = Scheme.numGEq.apply2(i, end1);
try {
x = ((Boolean) apply2).booleanValue();
if (!x) {
try {
try {
try {
try {
if (!characters.isChar$Eq(Char.make(strings.stringRef((CharSequence) s1, ((Number) i).intValue())), Char.make(strings.stringRef((CharSequence) s2, ((Number) obj).intValue())))) {
break;
}
i = AddOp.$Pl.apply2(i, Lit1);
obj = AddOp.$Pl.apply2(obj, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, obj);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, i);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, s1);
}
} else if (x) {
break;
} else {
i = AddOp.$Pl.apply2(i, Lit1);
obj = AddOp.$Pl.apply2(obj, Lit1);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
return AddOp.$Mn.apply2(i, start1);
}
public static Object $PcStringSuffixLength(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
boolean x = false;
Object delta = numbers.min(AddOp.$Mn.apply2(end1, start1), AddOp.$Mn.apply2(end2, start2));
start1 = AddOp.$Mn.apply2(end1, delta);
if (s1 == s2) {
x = true;
}
if (x) {
if (Scheme.numEqu.apply2(end1, end2) != Boolean.FALSE) {
return delta;
}
} else if (x) {
return delta;
}
Object i = AddOp.$Mn.apply2(end1, Lit1);
Object apply2 = AddOp.$Mn.apply2(end2, Lit1);
while (true) {
Object apply22 = Scheme.numLss.apply2(i, start1);
try {
x = ((Boolean) apply22).booleanValue();
if (!x) {
try {
try {
try {
try {
if (!characters.isChar$Eq(Char.make(strings.stringRef((CharSequence) s1, ((Number) i).intValue())), Char.make(strings.stringRef((CharSequence) s2, ((Number) apply2).intValue())))) {
break;
}
i = AddOp.$Mn.apply2(i, Lit1);
apply2 = AddOp.$Mn.apply2(apply2, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, i);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, s1);
}
} else if (x) {
break;
} else {
i = AddOp.$Mn.apply2(i, Lit1);
apply2 = AddOp.$Mn.apply2(apply2, Lit1);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply22);
}
}
return AddOp.$Mn.apply2(AddOp.$Mn.apply2(end1, i), Lit1);
}
public static int $PcStringPrefixLengthCi(Object s1, int start1, int end1, Object s2, int start2, int end2) {
Object min = numbers.min(Integer.valueOf(end1 - start1), Integer.valueOf(end2 - start2));
try {
boolean x;
int delta = ((Number) min).intValue();
end1 = start1 + delta;
if (s1 == s2) {
x = true;
} else {
x = false;
}
if (x) {
if (start1 == start2) {
return delta;
}
} else if (x) {
return delta;
}
int i = start1;
while (true) {
if (i >= end1) {
x = true;
} else {
x = false;
}
if (!x) {
try {
try {
if (!unicode.isCharCi$Eq(Char.make(strings.stringRef((CharSequence) s1, i)), Char.make(strings.stringRef((CharSequence) s2, start2)))) {
break;
}
i++;
start2++;
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 1, s2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s1);
}
} else if (x) {
break;
} else {
i++;
start2++;
}
}
return i - start1;
} catch (ClassCastException e22) {
throw new WrongType(e22, "delta", -2, min);
}
}
public static int $PcStringSuffixLengthCi(Object s1, int start1, int end1, Object s2, int start2, int end2) {
Object min = numbers.min(Integer.valueOf(end1 - start1), Integer.valueOf(end2 - start2));
try {
boolean x;
int delta = ((Number) min).intValue();
start1 = end1 - delta;
if (s1 == s2) {
x = true;
} else {
x = false;
}
if (x) {
if (end1 == end2) {
return delta;
}
} else if (x) {
return delta;
}
int i = end1 - 1;
int j = end2 - 1;
while (true) {
if (i < start1) {
x = true;
} else {
x = false;
}
if (!x) {
try {
try {
if (!unicode.isCharCi$Eq(Char.make(strings.stringRef((CharSequence) s1, i)), Char.make(strings.stringRef((CharSequence) s2, j)))) {
break;
}
j--;
i--;
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 1, s2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s1);
}
} else if (x) {
break;
} else {
j--;
i--;
}
}
return (end1 - i) - 1;
} catch (ClassCastException e22) {
throw new WrongType(e22, "delta", -2, min);
}
}
public static Object stringPrefixLength$V(Object s1, Object s2, Object[] argsArray) {
frame11 frame11 = new frame11();
frame11.s1 = s1;
frame11.s2 = s2;
frame11.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame11.lambda$Fn28, frame11.lambda$Fn29);
}
public static Object stringSuffixLength$V(Object s1, Object s2, Object[] argsArray) {
frame13 frame13 = new frame13();
frame13.s1 = s1;
frame13.s2 = s2;
frame13.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame13.lambda$Fn32, frame13.lambda$Fn33);
}
public static Object stringPrefixLengthCi$V(Object s1, Object s2, Object[] argsArray) {
frame15 frame15 = new frame15();
frame15.s1 = s1;
frame15.s2 = s2;
frame15.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame15.lambda$Fn36, frame15.lambda$Fn37);
}
public static Object stringSuffixLengthCi$V(Object s1, Object s2, Object[] argsArray) {
frame17 frame17 = new frame17();
frame17.s1 = s1;
frame17.s2 = s2;
frame17.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame17.lambda$Fn40, frame17.lambda$Fn41);
}
public static Object isStringPrefix$V(Object s1, Object s2, Object[] argsArray) {
frame19 frame19 = new frame19();
frame19.s1 = s1;
frame19.s2 = s2;
frame19.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame19.lambda$Fn44, frame19.lambda$Fn45);
}
public static Object isStringSuffix$V(Object s1, Object s2, Object[] argsArray) {
frame21 frame21 = new frame21();
frame21.s1 = s1;
frame21.s2 = s2;
frame21.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame21.lambda$Fn48, frame21.lambda$Fn49);
}
public static Object isStringPrefixCi$V(Object s1, Object s2, Object[] argsArray) {
frame23 frame23 = new frame23();
frame23.s1 = s1;
frame23.s2 = s2;
frame23.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame23.lambda$Fn52, frame23.lambda$Fn53);
}
public static Object isStringSuffixCi$V(Object s1, Object s2, Object[] argsArray) {
frame25 frame25 = new frame25();
frame25.s1 = s1;
frame25.s2 = s2;
frame25.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame25.lambda$Fn56, frame25.lambda$Fn57);
}
public static Object $PcStringPrefix$Qu(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
Object len1 = AddOp.$Mn.apply2(end1, start1);
Object apply2 = Scheme.numLEq.apply2(len1, AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (x) {
return Scheme.numEqu.apply2($PcStringPrefixLength(s1, start1, end1, s2, start2, end2), len1);
}
return x ? Boolean.TRUE : Boolean.FALSE;
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
public static Object $PcStringSuffix$Qu(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
Object len1 = AddOp.$Mn.apply2(end1, start1);
Object apply2 = Scheme.numLEq.apply2(len1, AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (x) {
return Scheme.numEqu.apply2(len1, $PcStringSuffixLength(s1, start1, end1, s2, start2, end2));
}
return x ? Boolean.TRUE : Boolean.FALSE;
} catch (ClassCastException e) {
throw new WrongType(e, "x", -2, apply2);
}
}
public static Object $PcStringPrefixCi$Qu(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
Object len1 = AddOp.$Mn.apply2(end1, start1);
Object apply2 = Scheme.numLEq.apply2(len1, AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
try {
try {
try {
try {
return Scheme.numEqu.apply2(len1, Integer.valueOf($PcStringPrefixLengthCi(s1, ((Number) start1).intValue(), ((Number) end1).intValue(), s2, ((Number) start2).intValue(), ((Number) end2).intValue())));
} catch (ClassCastException e) {
throw new WrongType(e, "%string-prefix-length-ci", 5, end2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-prefix-length-ci", 4, start2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-prefix-length-ci", 2, end1);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-prefix-length-ci", 1, start1);
}
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
public static Object $PcStringSuffixCi$Qu(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2) {
Object len1 = AddOp.$Mn.apply2(end1, start1);
Object apply2 = Scheme.numLEq.apply2(len1, AddOp.$Mn.apply2(end2, start2));
try {
boolean x = ((Boolean) apply2).booleanValue();
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
try {
try {
try {
try {
return Scheme.numEqu.apply2(len1, Integer.valueOf($PcStringSuffixLengthCi(s1, ((Number) start1).intValue(), ((Number) end1).intValue(), s2, ((Number) start2).intValue(), ((Number) end2).intValue())));
} catch (ClassCastException e) {
throw new WrongType(e, "%string-suffix-length-ci", 5, end2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-suffix-length-ci", 4, start2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-suffix-length-ci", 2, end1);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-suffix-length-ci", 1, start1);
}
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "x", -2, apply2);
}
}
public static Object $PcStringCompare(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2, Object proc$Ls, Object proc$Eq, Object proc$Gr) {
Object size1 = AddOp.$Mn.apply2(end1, start1);
Object size2 = AddOp.$Mn.apply2(end2, start2);
Object match = $PcStringPrefixLength(s1, start1, end1, s2, start2, end2);
if (Scheme.numEqu.apply2(match, size1) != Boolean.FALSE) {
Procedure procedure = Scheme.applyToArgs;
if (Scheme.numEqu.apply2(match, size2) == Boolean.FALSE) {
proc$Eq = proc$Ls;
}
return procedure.apply2(proc$Eq, end1);
}
Procedure procedure2 = Scheme.applyToArgs;
if (Scheme.numEqu.apply2(match, size2) == Boolean.FALSE) {
try {
CharSequence charSequence = (CharSequence) s1;
Object apply2 = AddOp.$Pl.apply2(start1, match);
try {
Char make = Char.make(strings.stringRef(charSequence, ((Number) apply2).intValue()));
try {
CharSequence charSequence2 = (CharSequence) s2;
apply2 = AddOp.$Pl.apply2(start2, match);
try {
if (characters.isChar$Ls(make, Char.make(strings.stringRef(charSequence2, ((Number) apply2).intValue())))) {
proc$Gr = proc$Ls;
}
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, apply2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, s1);
}
}
return procedure2.apply2(proc$Gr, AddOp.$Pl.apply2(match, start1));
}
public static Object $PcStringCompareCi(Object s1, Object start1, Object end1, Object s2, Object start2, Object end2, Object proc$Ls, Object proc$Eq, Object proc$Gr) {
Object size1 = AddOp.$Mn.apply2(end1, start1);
Object size2 = AddOp.$Mn.apply2(end2, start2);
try {
try {
try {
try {
int match = $PcStringPrefixLengthCi(s1, ((Number) start1).intValue(), ((Number) end1).intValue(), s2, ((Number) start2).intValue(), ((Number) end2).intValue());
if (Scheme.numEqu.apply2(Integer.valueOf(match), size1) != Boolean.FALSE) {
Procedure procedure = Scheme.applyToArgs;
if (Scheme.numEqu.apply2(Integer.valueOf(match), size2) == Boolean.FALSE) {
proc$Eq = proc$Ls;
}
return procedure.apply2(proc$Eq, end1);
}
Procedure procedure2 = Scheme.applyToArgs;
if (Scheme.numEqu.apply2(Integer.valueOf(match), size2) == Boolean.FALSE) {
try {
CharSequence charSequence = (CharSequence) s1;
Object apply2 = AddOp.$Pl.apply2(start1, Integer.valueOf(match));
try {
Char make = Char.make(strings.stringRef(charSequence, ((Number) apply2).intValue()));
try {
CharSequence charSequence2 = (CharSequence) s2;
apply2 = AddOp.$Pl.apply2(start2, Integer.valueOf(match));
try {
if (unicode.isCharCi$Ls(make, Char.make(strings.stringRef(charSequence2, ((Number) apply2).intValue())))) {
proc$Gr = proc$Ls;
}
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, apply2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, s1);
}
}
return procedure2.apply2(proc$Gr, AddOp.$Pl.apply2(start1, Integer.valueOf(match)));
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "%string-prefix-length-ci", 5, end2);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "%string-prefix-length-ci", 4, start2);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "%string-prefix-length-ci", 2, end1);
}
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "%string-prefix-length-ci", 1, start1);
}
}
public static Object stringCompare$V(Object s1, Object s2, Object proc$Ls, Object proc$Eq, Object proc$Gr, Object[] argsArray) {
frame27 frame27 = new frame27();
frame27.s1 = s1;
frame27.s2 = s2;
frame27.proc$Ls = proc$Ls;
frame27.proc$Eq = proc$Eq;
frame27.proc$Gr = proc$Gr;
frame27.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame27.proc$Ls, string$Mncompare);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame27.proc$Eq, string$Mncompare);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame27.proc$Gr, string$Mncompare);
return call_with_values.callWithValues(frame27.lambda$Fn60, frame27.lambda$Fn61);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 728, 3);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 727, 3);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 726, 3);
throw e22;
}
}
public static Object stringCompareCi$V(Object s1, Object s2, Object proc$Ls, Object proc$Eq, Object proc$Gr, Object[] argsArray) {
frame29 frame29 = new frame29();
frame29.s1 = s1;
frame29.s2 = s2;
frame29.proc$Ls = proc$Ls;
frame29.proc$Eq = proc$Eq;
frame29.proc$Gr = proc$Gr;
frame29.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame29.proc$Ls, string$Mncompare$Mnci);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame29.proc$Eq, string$Mncompare$Mnci);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), misc.procedure$Qu, frame29.proc$Gr, string$Mncompare$Mnci);
return call_with_values.callWithValues(frame29.lambda$Fn64, frame29.lambda$Fn65);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 736, 3);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 735, 3);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 734, 3);
throw e22;
}
}
public static Object string$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame31 frame31 = new frame31();
frame31.s1 = s1;
frame31.s2 = s2;
frame31.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame31.lambda$Fn68, frame31.lambda$Fn69);
}
public static Object string$Ls$Gr$V(Object s1, Object s2, Object[] argsArray) {
frame33 frame33 = new frame33();
frame33.s1 = s1;
frame33.s2 = s2;
frame33.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame33.lambda$Fn74, frame33.lambda$Fn75);
}
public static Object string$Ls$V(Object s1, Object s2, Object[] argsArray) {
frame35 frame35 = new frame35();
frame35.s1 = s1;
frame35.s2 = s2;
frame35.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame35.lambda$Fn79, frame35.lambda$Fn80);
}
public static Object string$Gr$V(Object s1, Object s2, Object[] argsArray) {
frame37 frame37 = new frame37();
frame37.s1 = s1;
frame37.s2 = s2;
frame37.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame37.lambda$Fn85, frame37.lambda$Fn86);
}
public static Object string$Ls$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame39 frame39 = new frame39();
frame39.s1 = s1;
frame39.s2 = s2;
frame39.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame39.lambda$Fn91, frame39.lambda$Fn92);
}
public static Object string$Gr$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame41 frame41 = new frame41();
frame41.s1 = s1;
frame41.s2 = s2;
frame41.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame41.lambda$Fn96, frame41.lambda$Fn97);
}
public static Object stringCi$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame43 frame43 = new frame43();
frame43.s1 = s1;
frame43.s2 = s2;
frame43.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame43.lambda$Fn101, frame43.lambda$Fn102);
}
public static Object stringCi$Ls$Gr$V(Object s1, Object s2, Object[] argsArray) {
frame45 frame45 = new frame45();
frame45.s1 = s1;
frame45.s2 = s2;
frame45.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame45.lambda$Fn107, frame45.lambda$Fn108);
}
public static Object stringCi$Ls$V(Object s1, Object s2, Object[] argsArray) {
frame47 frame47 = new frame47();
frame47.s1 = s1;
frame47.s2 = s2;
frame47.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame47.lambda$Fn112, frame47.lambda$Fn113);
}
public static Object stringCi$Gr$V(Object s1, Object s2, Object[] argsArray) {
frame49 frame49 = new frame49();
frame49.s1 = s1;
frame49.s2 = s2;
frame49.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame49.lambda$Fn118, frame49.lambda$Fn119);
}
public static Object stringCi$Ls$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame51 frame51 = new frame51();
frame51.s1 = s1;
frame51.s2 = s2;
frame51.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame51.lambda$Fn124, frame51.lambda$Fn125);
}
public static Object stringCi$Gr$Eq$V(Object s1, Object s2, Object[] argsArray) {
frame53 frame53 = new frame53();
frame53.s1 = s1;
frame53.s2 = s2;
frame53.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame53.lambda$Fn129, frame53.lambda$Fn130);
}
public static Object $PcStringHash(Object s, Object char$To$Int, Object bound, Object start, Object end) {
frame55 closureEnv = new frame55();
closureEnv.char$Mn$Grint = char$To$Int;
Object obj = Lit5;
while (Scheme.numGEq.apply2(obj, bound) == Boolean.FALSE) {
obj = AddOp.$Pl.apply2(obj, obj);
}
Object mask = AddOp.$Mn.apply2(obj, Lit1);
Object obj2 = Lit0;
obj = start;
while (Scheme.numGEq.apply2(obj, end) == Boolean.FALSE) {
Object i = AddOp.$Pl.apply2(obj, Lit1);
try {
try {
obj2 = BitwiseOp.and.apply2(mask, AddOp.$Pl.apply2(MultiplyOp.$St.apply2(Lit6, obj2), Scheme.applyToArgs.apply2(closureEnv.char$Mn$Grint, Char.make(strings.stringRef((CharSequence) s, ((Number) obj).intValue())))));
obj = i;
} catch (ClassCastException e) {
throw new WrongType(e, "string-ref", 2, obj);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-ref", 1, s);
}
}
return DivideOp.modulo.apply2(obj2, bound);
}
public static Object stringHash$V(Object s, Object[] argsArray) {
frame56 frame56 = new frame56();
frame56.f56s = s;
LList maybe$Mnbound$Plstart$Plend = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
Procedure procedure2 = Scheme.applyToArgs;
Procedure procedure3 = Scheme.applyToArgs;
try {
Object obj2 = loc$bound.get();
IntNum intNum = Lit7;
try {
Object apply2;
boolean x = numbers.isInteger(loc$bound.get());
if (x) {
try {
x = numbers.isExact(loc$bound.get());
if (x) {
try {
apply2 = Scheme.numLEq.apply2(Lit0, loc$bound.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 909, 19);
throw e;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 908, 21);
throw e2;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
try {
Object apply22 = procedure2.apply2(procedure3.apply3(obj2, intNum, apply2), loc$rest.get());
try {
try {
if (numbers.isZero((Number) loc$bound.get())) {
apply2 = Lit8;
} else {
try {
apply2 = loc$bound.get();
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 911, 18);
throw e22;
}
}
frame56.bound = apply2;
return procedure.apply4(obj, maybe$Mnbound$Plstart$Plend, apply22, call_with_values.callWithValues(frame56.lambda$Fn134, frame56.lambda$Fn135));
} catch (ClassCastException e3) {
throw new WrongType(e3, "zero?", 1, apply2);
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 911, 29);
throw e222;
}
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 910, 7);
throw e2222;
}
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_ACTIONBAR_NOT_SUPPORTED, 72);
throw e22222;
}
} catch (UnboundLocationException e222222) {
e222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_ACTIONBAR_NOT_SUPPORTED, 42);
throw e222222;
}
} catch (UnboundLocationException e2222222) {
e2222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_ACTIONBAR_NOT_SUPPORTED, 3);
throw e2222222;
}
}
public static Object stringHashCi$V(Object s, Object[] argsArray) {
frame57 frame57 = new frame57();
frame57.f57s = s;
LList maybe$Mnbound$Plstart$Plend = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
Procedure procedure2 = Scheme.applyToArgs;
Procedure procedure3 = Scheme.applyToArgs;
try {
Object obj2 = loc$bound.get();
IntNum intNum = Lit9;
try {
Object apply2;
boolean x = numbers.isInteger(loc$bound.get());
if (x) {
try {
x = numbers.isExact(loc$bound.get());
if (x) {
try {
apply2 = Scheme.numLEq.apply2(Lit0, loc$bound.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 918, 19);
throw e;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 917, 21);
throw e2;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
try {
Object apply22 = procedure2.apply2(procedure3.apply3(obj2, intNum, apply2), loc$rest.get());
try {
try {
if (numbers.isZero((Number) loc$bound.get())) {
apply2 = Lit10;
} else {
try {
apply2 = loc$bound.get();
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 920, 18);
throw e22;
}
}
frame57.bound = apply2;
return procedure.apply4(obj, maybe$Mnbound$Plstart$Plend, apply22, call_with_values.callWithValues(frame57.lambda$Fn136, frame57.lambda$Fn137));
} catch (ClassCastException e3) {
throw new WrongType(e3, "zero?", 1, apply2);
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 920, 29);
throw e222;
}
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 919, 7);
throw e2222;
}
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 916, 72);
throw e22222;
}
} catch (UnboundLocationException e222222) {
e222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 916, 42);
throw e222222;
}
} catch (UnboundLocationException e2222222) {
e2222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 916, 3);
throw e2222222;
}
}
public static Object stringUpcase$V(Object s, Object[] argsArray) {
frame58 frame58 = new frame58();
frame58.f58s = s;
frame58.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame58.lambda$Fn139, frame58.lambda$Fn140);
}
public static Object stringUpcase$Ex$V(Object s, Object[] argsArray) {
frame59 frame59 = new frame59();
frame59.f59s = s;
frame59.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame59.lambda$Fn141, frame59.lambda$Fn142);
}
public static Object stringDowncase$V(Object s, Object[] argsArray) {
frame60 frame60 = new frame60();
frame60.f61s = s;
frame60.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame60.lambda$Fn143, frame60.lambda$Fn144);
}
public static Object stringDowncase$Ex$V(Object s, Object[] argsArray) {
frame61 frame61 = new frame61();
frame61.f62s = s;
frame61.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame61.lambda$Fn145, frame61.lambda$Fn146);
}
public static Object $PcStringTitlecase$Ex(Object s, Object start, Object end) {
Object i = start;
while (true) {
try {
Object temp = stringIndex$V(s, loc$char$Mncased$Qu.get(), new Object[]{i, end});
if (temp == Boolean.FALSE) {
return Values.empty;
}
try {
CharSeq charSeq = (CharSeq) s;
try {
int intValue = ((Number) temp).intValue();
try {
try {
Object charTitlecase = unicode.charTitlecase(Char.make(strings.stringRef((CharSequence) s, ((Number) temp).intValue())));
try {
strings.stringSet$Ex(charSeq, intValue, charTitlecase.charValue());
Object i1 = AddOp.$Pl.apply2(temp, Lit1);
try {
Boolean temp2 = stringSkip$V(s, loc$char$Mncased$Qu.get(), new Object[]{i1, end});
if (temp2 != Boolean.FALSE) {
stringDowncase$Ex$V(s, new Object[]{i1, temp2});
i = AddOp.$Pl.apply2(temp2, Lit1);
} else {
return stringDowncase$Ex$V(s, new Object[]{i1, end});
}
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 959, 31);
throw e;
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 3, charTitlecase);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, temp);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, s);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-set!", 2, temp);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-set!", 1, s);
}
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 955, 28);
throw e3;
}
}
}
public static Object stringTitlecase$Ex$V(Object s, Object[] argsArray) {
frame62 frame62 = new frame62();
frame62.f63s = s;
frame62.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame62.lambda$Fn147, frame62.lambda$Fn148);
}
public static Object stringTitlecase$V(Object s, Object[] argsArray) {
frame63 frame63 = new frame63();
frame63.f64s = s;
frame63.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame63.lambda$Fn149, frame63.lambda$Fn150);
}
public static Object stringTake(Object s, Object n) {
frame64 frame64 = new frame64();
frame64.f66s = s;
frame64.f65n = n;
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), strings.string$Qu, frame64.f66s, string$Mntake);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), frame64.lambda$Fn151, frame64.f65n, string$Mntake);
Object obj = frame64.f66s;
try {
CharSequence charSequence = (CharSequence) obj;
Object obj2 = frame64.f65n;
try {
return $PcSubstring$SlShared(charSequence, 0, ((Number) obj2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, obj2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 0, obj);
}
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 996, 3);
throw e3;
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 995, 3);
throw e32;
}
}
public static Object stringTakeRight(Object s, Object n) {
frame65 frame65 = new frame65();
frame65.f67n = n;
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), strings.string$Qu, s, string$Mntake$Mnright);
try {
frame65.len = strings.stringLength((CharSequence) s);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), frame65.lambda$Fn152, frame65.f67n, string$Mntake$Mnright);
try {
CharSequence charSequence = (CharSequence) s;
Object apply2 = AddOp.$Mn.apply2(Integer.valueOf(frame65.len), frame65.f67n);
try {
return $PcSubstring$SlShared(charSequence, ((Number) apply2).intValue(), frame65.len);
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 1, apply2);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 0, s);
}
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1004, 5);
throw e3;
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-length", 1, s);
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_CANVAS_WIDTH_ERROR, 3);
throw e32;
}
}
public static Object stringDrop(CharSequence s, Object n) {
frame66 frame66 = new frame66();
frame66.f68n = n;
frame66.len = strings.stringLength(s);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), frame66.lambda$Fn153, frame66.f68n, string$Mndrop);
Object obj = frame66.f68n;
try {
return $PcSubstring$SlShared(s, ((Number) obj).intValue(), frame66.len);
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 1, obj);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1010, 5);
throw e2;
}
}
public static Object stringDropRight(CharSequence s, Object n) {
frame67 frame67 = new frame67();
frame67.f69n = n;
frame67.len = strings.stringLength(s);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), frame67.lambda$Fn154, frame67.f69n, string$Mndrop$Mnright);
Object apply2 = AddOp.$Mn.apply2(Integer.valueOf(frame67.len), frame67.f69n);
try {
return $PcSubstring$SlShared(s, 0, ((Number) apply2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 2, apply2);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1016, 5);
throw e2;
}
}
public Object apply2(ModuleMethod moduleMethod, Object obj, Object obj2) {
switch (moduleMethod.selector) {
case 218:
try {
return stringTabulate(obj, ((Number) obj2).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "string-tabulate", 2, obj2);
}
case 280:
return stringTake(obj, obj2);
case 281:
return stringTakeRight(obj, obj2);
case 282:
try {
return stringDrop((CharSequence) obj, obj2);
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-drop", 1, obj);
}
case 283:
try {
return stringDropRight((CharSequence) obj, obj2);
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-drop-right", 1, obj);
}
default:
return super.apply2(moduleMethod, obj, obj2);
}
}
public static Object stringTrim$V(Object s, Object[] argsArray) {
frame68 frame68 = new frame68();
frame68.f70s = s;
LList criterion$Plstart$Plend = LList.makeList(argsArray, 0);
try {
try {
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), criterion$Plstart$Plend, Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply2(loc$criterion.get(), GetNamedPart.getNamedPart.apply2(loc$char$Mnset.get(), Lit11)), loc$rest.get()), call_with_values.callWithValues(frame68.lambda$Fn155, frame68.lambda$Fn156));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1022, 72);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1022, 51);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1022, 40);
throw e22;
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1022, 3);
throw e222;
}
}
public static Object stringTrimRight$V(Object s, Object[] argsArray) {
frame69 frame69 = new frame69();
frame69.f71s = s;
LList criterion$Plstart$Plend = LList.makeList(argsArray, 0);
try {
try {
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), criterion$Plstart$Plend, Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply2(loc$criterion.get(), GetNamedPart.getNamedPart.apply2(loc$char$Mnset.get(), Lit11)), loc$rest.get()), call_with_values.callWithValues(frame69.lambda$Fn157, frame69.lambda$Fn158));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1029, 72);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1029, 51);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1029, 40);
throw e22;
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1029, 3);
throw e222;
}
}
public static Object stringTrimBoth$V(Object s, Object[] argsArray) {
frame70 frame70 = new frame70();
frame70.f73s = s;
LList criterion$Plstart$Plend = LList.makeList(argsArray, 0);
try {
try {
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), criterion$Plstart$Plend, Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply2(loc$criterion.get(), GetNamedPart.getNamedPart.apply2(loc$char$Mnset.get(), Lit11)), loc$rest.get()), call_with_values.callWithValues(frame70.lambda$Fn159, frame70.lambda$Fn160));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1036, 72);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1036, 51);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1036, 40);
throw e22;
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1036, 3);
throw e222;
}
}
public static Object stringPadRight$V(Object s, Object n, Object[] argsArray) {
frame71 frame71 = new frame71();
frame71.f75s = s;
frame71.f74n = n;
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), LList.makeList(argsArray, 0), Scheme.applyToArgs.apply2(Invoke.make.apply3(LangPrimType.charType, Lit12, characters.isChar(LangPrimType.charType) ? Boolean.TRUE : Boolean.FALSE), loc$rest.get()), call_with_values.callWithValues(frame71.lambda$Fn161, frame71.lambda$Fn162));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1045, 63);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1045, 3);
throw e2;
}
}
public static Object stringPad$V(Object s, Object n, Object[] argsArray) {
frame72 frame72 = new frame72();
frame72.f77s = s;
frame72.f76n = n;
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), LList.makeList(argsArray, 0), Scheme.applyToArgs.apply2(Invoke.make.apply3(LangPrimType.charType, Lit12, characters.isChar(LangPrimType.charType) ? Boolean.TRUE : Boolean.FALSE), loc$rest.get()), call_with_values.callWithValues(frame72.lambda$Fn164, frame72.lambda$Fn165));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1057, 63);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1057, 3);
throw e2;
}
}
public static Object stringDelete$V(Object criterion, Object s, Object[] argsArray) {
frame73 frame73 = new frame73();
frame73.criterion = criterion;
frame73.f78s = s;
frame73.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame73.lambda$Fn167, frame73.lambda$Fn168);
}
public static Object stringFilter$V(Object criterion, Object s, Object[] argsArray) {
frame75 frame75 = new frame75();
frame75.criterion = criterion;
frame75.f79s = s;
frame75.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame75.lambda$Fn172, frame75.lambda$Fn173);
}
public static Object stringIndex$V(Object str, Object criterion, Object[] argsArray) {
frame77 frame77 = new frame77();
frame77.str = str;
frame77.criterion = criterion;
frame77.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame77.lambda$Fn177, frame77.lambda$Fn178);
}
public static Object stringIndexRight$V(Object str, Object criterion, Object[] argsArray) {
frame78 frame78 = new frame78();
frame78.str = str;
frame78.criterion = criterion;
frame78.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame78.lambda$Fn179, frame78.lambda$Fn180);
}
public static Object stringSkip$V(Object str, Object criterion, Object[] argsArray) {
frame79 frame79 = new frame79();
frame79.str = str;
frame79.criterion = criterion;
frame79.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame79.lambda$Fn181, frame79.lambda$Fn182);
}
public static Object stringSkipRight$V(Object str, Object criterion, Object[] argsArray) {
frame80 frame80 = new frame80();
frame80.str = str;
frame80.criterion = criterion;
frame80.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame80.lambda$Fn183, frame80.lambda$Fn184);
}
public static Object stringCount$V(Object s, Object criterion, Object[] argsArray) {
frame81 frame81 = new frame81();
frame81.f81s = s;
frame81.criterion = criterion;
frame81.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame81.lambda$Fn185, frame81.lambda$Fn186);
}
public static Object stringFill$Ex$V(Object s, Object char_, Object[] argsArray) {
frame82 frame82 = new frame82();
frame82.f83s = s;
frame82.f82char = char_;
frame82.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), characters.char$Qu, frame82.f82char, string$Mnfill$Ex);
return call_with_values.callWithValues(frame82.lambda$Fn187, frame82.lambda$Fn188);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1270, 3);
throw e;
}
}
public static Object stringCopy$Ex(Object to, int tstart, CharSequence from, int fstart, int fend) {
$PcCheckBounds(string$Mncopy$Ex, from, fstart, fend);
try {
$PcCheckSubstringSpec(string$Mncopy$Ex, (CharSequence) to, tstart, (fend - fstart) + tstart);
try {
return $PcStringCopy$Ex((CharSequence) to, tstart, from, fstart, fend);
} catch (ClassCastException e) {
throw new WrongType(e, "%string-copy!", 0, to);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%check-substring-spec", 1, to);
}
}
public Object apply3(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_SOURCE /*194*/:
return stringParseStart$PlEnd(obj, obj2, obj3);
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_DURATION /*196*/:
return stringParseFinalStart$PlEnd(obj, obj2, obj3);
case 197:
return isSubstringSpecOk(obj, obj2, obj3) ? Boolean.TRUE : Boolean.FALSE;
case ErrorMessages.ERROR_CAMERA_NO_IMAGE_RETURNED /*201*/:
try {
try {
try {
return $PcSubstring$SlShared((CharSequence) obj, ((Number) obj2).intValue(), ((Number) obj3).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%substring/shared", 3, obj3);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%substring/shared", 2, obj2);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%substring/shared", 1, obj);
}
case 277:
return $PcStringTitlecase$Ex(obj, obj2, obj3);
case 299:
try {
try {
return stringCopy$Ex(obj, ((Number) obj2).intValue(), (CharSequence) obj3);
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-copy!", 3, obj3);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-copy!", 2, obj2);
}
default:
return super.apply3(moduleMethod, obj, obj2, obj3);
}
}
public static Object $PcStringCopy$Ex(CharSequence to, int tstart, CharSequence from, int fstart, int fend) {
int j;
int i;
if (fstart > tstart) {
j = tstart;
i = fstart;
while (i < fend) {
try {
strings.stringSet$Ex((CharSeq) to, j, strings.stringRef(from, i));
j++;
i++;
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 1, (Object) to);
}
}
return Values.empty;
}
j = (tstart - 1) + (fend - fstart);
i = fend - 1;
while (i >= fstart) {
try {
strings.stringSet$Ex((CharSeq) to, j, strings.stringRef(from, i));
j--;
i--;
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 1, (Object) to);
}
}
return Values.empty;
}
public static Object stringContains$V(Object text, Object pattern, Object[] argsArray) {
frame83 frame83 = new frame83();
frame83.text = text;
frame83.pattern = pattern;
frame83.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame83.lambda$Fn189, frame83.lambda$Fn190);
}
public static Object stringContainsCi$V(Object text, Object pattern, Object[] argsArray) {
frame85 frame85 = new frame85();
frame85.text = text;
frame85.pattern = pattern;
frame85.maybe$Mnstarts$Plends = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame85.lambda$Fn193, frame85.lambda$Fn194);
}
public static Object $PcKmpSearch(Object pattern, Object text, Object c$Eq, Object p$Mnstart, Object p$Mnend, Object t$Mnstart, Object t$Mnend) {
Object plen = AddOp.$Mn.apply2(p$Mnend, p$Mnstart);
Object rv = makeKmpRestartVector$V(pattern, new Object[]{c$Eq, p$Mnstart, p$Mnend});
IntNum intNum = Lit0;
Object apply2 = AddOp.$Mn.apply2(t$Mnend, t$Mnstart);
Object ti = t$Mnstart;
Object pj = plen;
Object obj = intNum;
while (Scheme.numEqu.apply2(obj, plen) == Boolean.FALSE) {
Object apply22 = Scheme.numLEq.apply2(pj, apply2);
try {
boolean x = ((Boolean) apply22).booleanValue();
if (!x) {
return x ? Boolean.TRUE : Boolean.FALSE;
} else {
Procedure procedure = Scheme.applyToArgs;
try {
try {
Char make = Char.make(strings.stringRef((CharSequence) text, ((Number) ti).intValue()));
try {
CharSequence charSequence = (CharSequence) pattern;
Object apply23 = AddOp.$Pl.apply2(p$Mnstart, obj);
try {
Object pi;
if (procedure.apply3(c$Eq, make, Char.make(strings.stringRef(charSequence, ((Number) apply23).intValue()))) != Boolean.FALSE) {
ti = AddOp.$Pl.apply2(Lit1, ti);
pi = AddOp.$Pl.apply2(Lit1, obj);
apply2 = AddOp.$Mn.apply2(apply2, Lit1);
pj = AddOp.$Mn.apply2(pj, Lit1);
obj = pi;
} else {
try {
try {
pi = vectors.vectorRef((FVector) rv, ((Number) obj).intValue());
if (Scheme.numEqu.apply2(pi, Lit13) != Boolean.FALSE) {
ti = AddOp.$Pl.apply2(ti, Lit1);
pi = Lit0;
apply2 = AddOp.$Mn.apply2(apply2, Lit1);
pj = plen;
obj = pi;
} else {
pj = AddOp.$Mn.apply2(plen, pi);
obj = pi;
}
} catch (ClassCastException e) {
throw new WrongType(e, "vector-ref", 2, obj);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "vector-ref", 1, rv);
}
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, apply23);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, pattern);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-ref", 2, ti);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 1, text);
}
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "x", -2, apply22);
}
}
return AddOp.$Mn.apply2(ti, plen);
}
public static Object makeKmpRestartVector$V(Object pattern, Object[] argsArray) {
frame87 frame87 = new frame87();
frame87.pattern = pattern;
LList maybe$Mnc$Eq$Plstart$Plend = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
try {
try {
try {
try {
Object apply2 = Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply3(loc$c$Eq.get(), characters.char$Eq$Qu, misc.isProcedure(loc$c$Eq.get()) ? Boolean.TRUE : Boolean.FALSE), Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply2(loc$start.get(), loc$end.get()), frame87.lambda$Fn197));
try {
try {
Object rvlen = AddOp.$Mn.apply2(loc$end.get(), loc$start.get());
try {
FVector rv = vectors.makeVector(((Number) rvlen).intValue(), Lit13);
if (Scheme.numGrt.apply2(rvlen, Lit0) != Boolean.FALSE) {
Object rvlen$Mn1 = AddOp.$Mn.apply2(rvlen, Lit1);
Object obj2 = frame87.pattern;
try {
CharSequence charSequence = (CharSequence) obj2;
try {
Object obj3 = loc$start.get();
try {
char c0 = strings.stringRef(charSequence, ((Number) obj3).intValue());
Object i = Lit0;
Object j = Lit13;
try {
Object obj4 = loc$start.get();
while (Scheme.numLss.apply2(i, rvlen$Mn1) != Boolean.FALSE) {
Procedure procedure2;
Object obj5;
Object i1;
while (Scheme.numEqu.apply2(j, Lit13) == Boolean.FALSE) {
procedure2 = Scheme.applyToArgs;
try {
obj5 = loc$c$Eq.get();
obj2 = frame87.pattern;
try {
try {
Char make = Char.make(strings.stringRef((CharSequence) obj2, ((Number) obj4).intValue()));
obj2 = frame87.pattern;
try {
charSequence = (CharSequence) obj2;
try {
obj3 = AddOp.$Pl.apply2(j, loc$start.get());
try {
if (procedure2.apply3(obj5, make, Char.make(strings.stringRef(charSequence, ((Number) obj3).intValue()))) != Boolean.FALSE) {
i1 = AddOp.$Pl.apply2(Lit1, i);
Object j1 = AddOp.$Pl.apply2(Lit1, j);
try {
vectors.vectorSet$Ex(rv, ((Number) i1).intValue(), j1);
j = j1;
i = i1;
obj4 = AddOp.$Pl.apply2(obj4, Lit1);
break;
} catch (ClassCastException e) {
throw new WrongType(e, "vector-set!", 2, i1);
}
}
try {
j = vectors.vectorRef(rv, ((Number) j).intValue());
} catch (ClassCastException e2) {
throw new WrongType(e2, "vector-ref", 2, j);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, obj3);
}
} catch (UnboundLocationException e3) {
e3.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1422, 59);
throw e3;
}
} catch (ClassCastException e4) {
throw new WrongType(e4, "string-ref", 1, obj2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 2, obj4);
}
} catch (ClassCastException e42) {
throw new WrongType(e42, "string-ref", 1, obj2);
}
} catch (UnboundLocationException e32) {
e32.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1422, 7);
throw e32;
}
}
i1 = AddOp.$Pl.apply2(Lit1, i);
procedure2 = Scheme.applyToArgs;
try {
obj5 = loc$c$Eq.get();
obj2 = frame87.pattern;
try {
charSequence = (CharSequence) obj2;
obj3 = AddOp.$Pl.apply2(obj4, Lit1);
try {
if (procedure2.apply3(obj5, Char.make(strings.stringRef(charSequence, ((Number) obj3).intValue())), Char.make(c0)) == Boolean.FALSE) {
try {
vectors.vectorSet$Ex(rv, ((Number) i1).intValue(), Lit0);
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "vector-set!", 2, i1);
}
}
j = Lit0;
i = i1;
obj4 = AddOp.$Pl.apply2(obj4, Lit1);
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-ref", 2, obj3);
}
} catch (ClassCastException e422) {
throw new WrongType(e422, "string-ref", 1, obj2);
}
} catch (UnboundLocationException e322) {
e322.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1418, 18);
throw e322;
}
}
} catch (UnboundLocationException e3222) {
e3222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1410, 6);
throw e3222;
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "string-ref", 2, obj3);
}
} catch (UnboundLocationException e32222) {
e32222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1406, 27);
throw e32222;
}
} catch (ClassCastException e4222) {
throw new WrongType(e4222, "string-ref", 1, obj2);
}
}
return procedure.apply4(obj, maybe$Mnc$Eq$Plstart$Plend, apply2, rv);
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "make-vector", 1, rvlen);
}
} catch (UnboundLocationException e322222) {
e322222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_BAD_VALUE_FOR_VERTICAL_ALIGNMENT, 26);
throw e322222;
}
} catch (UnboundLocationException e3222222) {
e3222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", ErrorMessages.ERROR_BAD_VALUE_FOR_VERTICAL_ALIGNMENT, 22);
throw e3222222;
}
} catch (UnboundLocationException e32222222) {
e32222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1399, 14);
throw e32222222;
}
} catch (UnboundLocationException e322222222) {
e322222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1399, 7);
throw e322222222;
}
} catch (UnboundLocationException e3222222222) {
e3222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1398, 43);
throw e3222222222;
}
} catch (UnboundLocationException e32222222222) {
e32222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1398, 20);
throw e32222222222;
}
} catch (UnboundLocationException e322222222222) {
e322222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1397, 3);
throw e322222222222;
}
}
public static Object kmpStep(Object pat, Object rv, Object c, Object i, Object c$Eq, Object p$Mnstart) {
do {
Procedure procedure = Scheme.applyToArgs;
try {
CharSequence charSequence = (CharSequence) pat;
Object apply2 = AddOp.$Pl.apply2(i, p$Mnstart);
try {
if (procedure.apply3(c$Eq, c, Char.make(strings.stringRef(charSequence, ((Number) apply2).intValue()))) != Boolean.FALSE) {
return AddOp.$Pl.apply2(i, Lit1);
}
try {
try {
i = vectors.vectorRef((FVector) rv, ((Number) i).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "vector-ref", 2, i);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "vector-ref", 1, rv);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-ref", 2, apply2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-ref", 1, pat);
}
} while (Scheme.numEqu.apply2(i, Lit13) == Boolean.FALSE);
return Lit0;
}
public static Object stringKmpPartialSearch$V(Object pat, Object rv, Object s, Object i, Object[] argsArray) {
frame88 frame88 = new frame88();
frame88.f84s = s;
LList c$Eq$Plp$Mnstart$Pls$Mnstart$Pls$Mnend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), vectors.vector$Qu, rv, string$Mnkmp$Mnpartial$Mnsearch);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
Procedure procedure2 = Scheme.applyToArgs;
try {
try {
Object apply3 = Scheme.applyToArgs.apply3(loc$c$Eq.get(), characters.char$Eq$Qu, misc.isProcedure(loc$c$Eq.get()) ? Boolean.TRUE : Boolean.FALSE);
Procedure procedure3 = Scheme.applyToArgs;
try {
Object obj2 = loc$p$Mnstart.get();
IntNum intNum = Lit0;
try {
Object apply2;
boolean x = numbers.isInteger(loc$p$Mnstart.get());
if (x) {
try {
x = numbers.isExact(loc$p$Mnstart.get());
if (x) {
try {
apply2 = Scheme.numLEq.apply2(Lit0, loc$p$Mnstart.get());
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1467, 64);
throw e;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1467, 49);
throw e2;
}
}
apply2 = x ? Boolean.TRUE : Boolean.FALSE;
try {
try {
Object apply32 = procedure2.apply3(apply3, procedure3.apply3(obj2, intNum, apply2), Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply2(loc$s$Mnstart.get(), loc$s$Mnend.get()), frame88.lambda$Fn198));
try {
frame88.patlen = vectors.vectorLength((FVector) rv);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), frame88.lambda$Fn199, i, string$Mnkmp$Mnpartial$Mnsearch);
try {
Object si = loc$s$Mnstart.get();
Object vi = i;
while (Scheme.numEqu.apply2(vi, Integer.valueOf(frame88.patlen)) == Boolean.FALSE) {
try {
if (Scheme.numEqu.apply2(si, loc$s$Mnend.get()) != Boolean.FALSE) {
break;
}
apply2 = frame88.f84s;
try {
try {
char c = strings.stringRef((CharSequence) apply2, ((Number) si).intValue());
si = AddOp.$Pl.apply2(si, Lit1);
do {
Procedure procedure4 = Scheme.applyToArgs;
try {
Object obj3 = loc$c$Eq.get();
Char make = Char.make(c);
try {
CharSequence charSequence = (CharSequence) pat;
try {
apply3 = AddOp.$Pl.apply2(vi, loc$p$Mnstart.get());
try {
if (procedure4.apply3(obj3, make, Char.make(strings.stringRef(charSequence, ((Number) apply3).intValue()))) != Boolean.FALSE) {
vi = AddOp.$Pl.apply2(vi, Lit1);
break;
}
try {
try {
vi = vectors.vectorRef((FVector) rv, ((Number) vi).intValue());
} catch (ClassCastException e3) {
throw new WrongType(e3, "vector-ref", 2, vi);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "vector-ref", 1, rv);
}
} catch (ClassCastException e322) {
throw new WrongType(e322, "string-ref", 2, apply3);
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1484, 42);
throw e22;
}
} catch (ClassCastException e3222) {
throw new WrongType(e3222, "string-ref", 1, pat);
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1484, 14);
throw e222;
}
} while (Scheme.numEqu.apply2(vi, Lit13) == Boolean.FALSE);
vi = Lit0;
} catch (ClassCastException e32222) {
throw new WrongType(e32222, "string-ref", 2, si);
}
} catch (ClassCastException e4) {
throw new WrongType(e4, "string-ref", 1, apply2);
}
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1479, 15);
throw e2222;
}
}
vi = AddOp.$Mn.apply1(si);
return procedure.apply4(obj, c$Eq$Plp$Mnstart$Pls$Mnstart$Pls$Mnend, apply32, vi);
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1476, 7);
throw e22222;
}
} catch (UnboundLocationException e222222) {
e222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1472, 7);
throw e222222;
}
} catch (ClassCastException e322222) {
throw new WrongType(e322222, "vector-length", 1, rv);
}
} catch (UnboundLocationException e2222222) {
e2222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1468, 16);
throw e2222222;
}
} catch (UnboundLocationException e22222222) {
e22222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1468, 7);
throw e22222222;
}
} catch (UnboundLocationException e222222222) {
e222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1467, 32);
throw e222222222;
}
} catch (UnboundLocationException e2222222222) {
e2222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1467, 6);
throw e2222222222;
}
} catch (UnboundLocationException e22222222222) {
e22222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1466, 34);
throw e22222222222;
}
} catch (UnboundLocationException e222222222222) {
e222222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1466, 6);
throw e222222222222;
}
} catch (UnboundLocationException e2222222222222) {
e2222222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1465, 3);
throw e2222222222222;
}
} catch (UnboundLocationException e22222222222222) {
e22222222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1464, 3);
throw e22222222222222;
}
}
public static boolean isStringNull(Object s) {
try {
return numbers.isZero(Integer.valueOf(strings.stringLength((CharSequence) s)));
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, s);
}
}
public static Object stringReverse$V(Object s, Object[] argsArray) {
frame89 frame89 = new frame89();
frame89.f85s = s;
frame89.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame89.lambda$Fn200, frame89.lambda$Fn201);
}
public static Object stringReverse$Ex$V(Object s, Object[] argsArray) {
frame90 frame90 = new frame90();
frame90.f87s = s;
frame90.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame90.lambda$Fn202, frame90.lambda$Fn203);
}
public static CharSequence reverseList$To$String(Object clist) {
try {
int len = lists.length((LList) clist);
Object s = strings.makeString(len);
Object valueOf = Integer.valueOf(len - 1);
while (lists.isPair(clist)) {
try {
CharSeq charSeq = (CharSeq) s;
try {
int intValue = ((Number) valueOf).intValue();
Object apply1 = lists.car.apply1(clist);
try {
strings.stringSet$Ex(charSeq, intValue, ((Char) apply1).charValue());
valueOf = AddOp.$Mn.apply2(valueOf, Lit1);
clist = lists.cdr.apply1(clist);
} catch (ClassCastException e) {
throw new WrongType(e, "string-set!", 3, apply1);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "string-set!", 2, valueOf);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-set!", 1, s);
}
}
return s;
} catch (ClassCastException e222) {
throw new WrongType(e222, "length", 1, clist);
}
}
public static Object string$To$List$V(Object s, Object[] argsArray) {
frame91 frame91 = new frame91();
frame91.f88s = s;
frame91.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
return call_with_values.callWithValues(frame91.lambda$Fn204, frame91.lambda$Fn205);
}
public static Object stringAppend$SlShared$V(Object[] argsArray) {
return stringConcatenate$SlShared(LList.makeList(argsArray, 0));
}
public static Object stringConcatenate$SlShared(Object strings) {
Object nchars = Lit0;
Object first = Boolean.FALSE;
while (lists.isPair(strings)) {
int slen;
Object string = lists.car.apply1(strings);
Object tail = lists.cdr.apply1(strings);
try {
slen = strings.stringLength((CharSequence) string);
if (numbers.isZero(Integer.valueOf(slen))) {
strings = tail;
} else {
nchars = AddOp.$Pl.apply2(nchars, Integer.valueOf(slen));
if (first == Boolean.FALSE) {
first = strings;
}
strings = tail;
}
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, string);
}
}
try {
if (numbers.isZero((Number) nchars)) {
return "";
}
Procedure procedure = Scheme.numEqu;
Object apply1 = lists.car.apply1(first);
try {
if (procedure.apply2(nchars, Integer.valueOf(strings.stringLength((CharSequence) apply1))) != Boolean.FALSE) {
return lists.car.apply1(first);
}
try {
Object ans = strings.makeString(((Number) nchars).intValue());
Object obj = Lit0;
strings = first;
while (lists.isPair(strings)) {
Object s = lists.car.apply1(strings);
try {
slen = strings.stringLength((CharSequence) s);
try {
try {
$PcStringCopy$Ex(ans, ((Number) obj).intValue(), (CharSequence) s, 0, slen);
strings = lists.cdr.apply1(strings);
obj = AddOp.$Pl.apply2(obj, Integer.valueOf(slen));
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-copy!", 2, s);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 1, obj);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-length", 1, s);
}
}
return ans;
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "make-string", 1, nchars);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-length", 1, apply1);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "zero?", 1, nchars);
}
}
public static CharSequence stringConcatenate(Object strings) {
Object total = Lit0;
Object strings2 = strings;
while (lists.isPair(strings2)) {
Object strings3 = lists.cdr.apply1(strings2);
Procedure procedure = AddOp.$Pl;
Object apply1 = lists.car.apply1(strings2);
try {
total = procedure.apply2(total, Integer.valueOf(strings.stringLength((CharSequence) apply1)));
strings2 = strings3;
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, apply1);
}
}
try {
CharSequence ans = strings.makeString(((Number) total).intValue());
Object obj = Lit0;
while (lists.isPair(strings)) {
Object s = lists.car.apply1(strings);
try {
int slen = strings.stringLength((CharSequence) s);
try {
try {
$PcStringCopy$Ex(ans, ((Number) obj).intValue(), (CharSequence) s, 0, slen);
obj = AddOp.$Pl.apply2(obj, Integer.valueOf(slen));
strings = lists.cdr.apply1(strings);
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-copy!", 2, s);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 1, obj);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-length", 1, s);
}
}
return ans;
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "make-string", 1, total);
}
}
public static Object stringConcatenateReverse$V(Object string$Mnlist, Object[] argsArray) {
Object apply3;
LList maybe$Mnfinal$Plend = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
Procedure procedure2 = Scheme.applyToArgs;
try {
try {
Object apply32 = Scheme.applyToArgs.apply3(loc$final.get(), "", strings.isString(loc$final.get()) ? Boolean.TRUE : Boolean.FALSE);
Procedure procedure3 = Scheme.applyToArgs;
try {
Object obj2 = loc$end.get();
try {
try {
Integer valueOf = Integer.valueOf(strings.stringLength((CharSequence) loc$final.get()));
try {
boolean x = numbers.isInteger(loc$end.get());
if (x) {
try {
x = numbers.isExact(loc$end.get());
if (x) {
try {
try {
try {
apply3 = Scheme.numLEq.apply3(Lit0, loc$end.get(), Integer.valueOf(strings.stringLength((CharSequence) loc$final.get())));
} catch (ClassCastException e) {
throw new WrongType(e, "string-length", 1, apply3);
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1621, 36);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1621, 17);
throw e22;
}
}
apply3 = x ? Boolean.TRUE : Boolean.FALSE;
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1620, 19);
throw e222;
}
}
apply3 = x ? Boolean.TRUE : Boolean.FALSE;
Object apply2 = procedure2.apply2(apply32, procedure3.apply3(obj2, valueOf, apply3));
Object lis = string$Mnlist;
Object len = Lit0;
while (lists.isPair(lis)) {
Procedure procedure4 = AddOp.$Pl;
apply3 = lists.car.apply1(lis);
try {
Object sum = procedure4.apply2(len, Integer.valueOf(strings.stringLength((CharSequence) apply3)));
lis = lists.cdr.apply1(lis);
len = sum;
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-length", 1, apply3);
}
}
try {
try {
return procedure.apply4(obj, maybe$Mnfinal$Plend, apply2, $PcFinishStringConcatenateReverse(len, string$Mnlist, loc$final.get(), loc$end.get()));
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1627, 65);
throw e2222;
}
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1627, 59);
throw e22222;
}
} catch (UnboundLocationException e222222) {
e222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1619, 21);
throw e222222;
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "string-length", 1, apply3);
}
} catch (UnboundLocationException e2222222) {
e2222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1618, 28);
throw e2222222;
}
} catch (UnboundLocationException e22222222) {
e22222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1618, 8);
throw e22222222;
}
} catch (UnboundLocationException e222222222) {
e222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1617, 55);
throw e222222222;
}
} catch (UnboundLocationException e2222222222) {
e2222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1617, 36);
throw e2222222222;
}
} catch (UnboundLocationException e22222222222) {
e22222222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1617, 3);
throw e22222222222;
}
}
/* JADX WARNING: inconsistent code. */
/* Code decompiled incorrectly, please refer to instructions dump. */
public static java.lang.Object stringConcatenateReverse$SlShared$V(java.lang.Object r20, java.lang.Object[] r21) {
/*
r9 = 0;
r0 = r21;
r5 = gnu.lists.LList.makeList(r0, r9);
r10 = kawa.standard.Scheme.applyToArgs;
r9 = loc$let$Mnoptionals$St;
r11 = r9.get(); Catch:{ UnboundLocationException -> 0x0146 }
r12 = kawa.standard.Scheme.applyToArgs;
r13 = kawa.standard.Scheme.applyToArgs;
r9 = loc$final;
r14 = r9.get(); Catch:{ UnboundLocationException -> 0x0150 }
r15 = "";
r9 = loc$final;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x015b }
r9 = kawa.lib.strings.isString(r9);
if (r9 == 0) goto L_0x00c6;
L_0x0027:
r9 = java.lang.Boolean.TRUE;
L_0x0029:
r13 = r13.apply3(r14, r15, r9);
r14 = kawa.standard.Scheme.applyToArgs;
r9 = loc$end;
r15 = r9.get(); Catch:{ UnboundLocationException -> 0x0166 }
r9 = loc$final;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x0171 }
r9 = (java.lang.CharSequence) r9; Catch:{ ClassCastException -> 0x017c }
r9 = kawa.lib.strings.stringLength(r9);
r16 = java.lang.Integer.valueOf(r9);
r9 = loc$end;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x0186 }
r8 = kawa.lib.numbers.isInteger(r9);
if (r8 == 0) goto L_0x00d2;
L_0x0051:
r9 = loc$end;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x0191 }
r8 = kawa.lib.numbers.isExact(r9);
if (r8 == 0) goto L_0x00ca;
L_0x005d:
r17 = kawa.standard.Scheme.numLEq;
r18 = Lit0;
r9 = loc$end;
r19 = r9.get(); Catch:{ UnboundLocationException -> 0x019c }
r9 = loc$final;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x01a7 }
r9 = (java.lang.CharSequence) r9; Catch:{ ClassCastException -> 0x01b2 }
r9 = kawa.lib.strings.stringLength(r9);
r9 = java.lang.Integer.valueOf(r9);
r0 = r17;
r1 = r18;
r2 = r19;
r9 = r0.apply3(r1, r2, r9);
L_0x0081:
r0 = r16;
r9 = r14.apply3(r15, r0, r9);
r12 = r12.apply2(r13, r9);
r3 = Lit0;
r6 = java.lang.Boolean.FALSE;
L_0x008f:
r9 = kawa.lib.lists.isPair(r20);
if (r9 == 0) goto L_0x00dd;
L_0x0095:
r9 = kawa.lib.lists.car;
r0 = r20;
r9 = r9.apply1(r0);
r9 = (java.lang.CharSequence) r9; Catch:{ ClassCastException -> 0x01bc }
r7 = kawa.lib.strings.stringLength(r9);
r9 = gnu.kawa.functions.AddOp.$Pl;
r13 = java.lang.Integer.valueOf(r7);
r3 = r9.apply2(r3, r13);
r9 = java.lang.Boolean.FALSE;
if (r6 != r9) goto L_0x00bb;
L_0x00b1:
r9 = java.lang.Integer.valueOf(r7);
r9 = kawa.lib.numbers.isZero(r9);
if (r9 == 0) goto L_0x00da;
L_0x00bb:
r9 = kawa.lib.lists.cdr;
r0 = r20;
r4 = r9.apply1(r0);
r20 = r4;
goto L_0x008f;
L_0x00c6:
r9 = java.lang.Boolean.FALSE;
goto L_0x0029;
L_0x00ca:
if (r8 == 0) goto L_0x00cf;
L_0x00cc:
r9 = java.lang.Boolean.TRUE;
goto L_0x0081;
L_0x00cf:
r9 = java.lang.Boolean.FALSE;
goto L_0x0081;
L_0x00d2:
if (r8 == 0) goto L_0x00d7;
L_0x00d4:
r9 = java.lang.Boolean.TRUE;
goto L_0x0081;
L_0x00d7:
r9 = java.lang.Boolean.FALSE;
goto L_0x0081;
L_0x00da:
r6 = r20;
goto L_0x00bb;
L_0x00dd:
r0 = r3;
r0 = (java.lang.Number) r0; Catch:{ ClassCastException -> 0x01c6 }
r9 = r0;
r9 = kawa.lib.numbers.isZero(r9);
if (r9 == 0) goto L_0x0104;
L_0x00e7:
r9 = loc$final;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x01d0 }
r13 = Lit0;
r14 = 1;
r14 = new java.lang.Object[r14];
r15 = 0;
r16 = loc$end;
r16 = r16.get(); Catch:{ UnboundLocationException -> 0x01db }
r14[r15] = r16;
r9 = substring$SlShared$V(r9, r13, r14);
L_0x00ff:
r9 = r10.apply4(r11, r5, r12, r9);
return r9;
L_0x0104:
r9 = loc$end;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x01e6 }
r9 = (java.lang.Number) r9; Catch:{ ClassCastException -> 0x01f1 }
r8 = kawa.lib.numbers.isZero(r9);
if (r8 == 0) goto L_0x0133;
L_0x0112:
r13 = kawa.standard.Scheme.numEqu;
r9 = kawa.lib.lists.car;
r9 = r9.apply1(r6);
r9 = (java.lang.CharSequence) r9; Catch:{ ClassCastException -> 0x01fb }
r9 = kawa.lib.strings.stringLength(r9);
r9 = java.lang.Integer.valueOf(r9);
r9 = r13.apply2(r3, r9);
r13 = java.lang.Boolean.FALSE;
if (r9 == r13) goto L_0x0135;
L_0x012c:
r9 = kawa.lib.lists.car;
r9 = r9.apply1(r6);
goto L_0x00ff;
L_0x0133:
if (r8 != 0) goto L_0x012c;
L_0x0135:
r9 = loc$final;
r9 = r9.get(); Catch:{ UnboundLocationException -> 0x0205 }
r13 = loc$end;
r13 = r13.get(); Catch:{ UnboundLocationException -> 0x0210 }
r9 = $PcFinishStringConcatenateReverse(r3, r6, r9, r13);
goto L_0x00ff;
L_0x0146:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1630; // 0x65e float:2.284E-42 double:8.053E-321;
r12 = 3;
r9.setLine(r10, r11, r12);
throw r9;
L_0x0150:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1630; // 0x65e float:2.284E-42 double:8.053E-321;
r12 = 36;
r9.setLine(r10, r11, r12);
throw r9;
L_0x015b:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1630; // 0x65e float:2.284E-42 double:8.053E-321;
r12 = 55;
r9.setLine(r10, r11, r12);
throw r9;
L_0x0166:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1631; // 0x65f float:2.286E-42 double:8.06E-321;
r12 = 8;
r9.setLine(r10, r11, r12);
throw r9;
L_0x0171:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1631; // 0x65f float:2.286E-42 double:8.06E-321;
r12 = 28;
r9.setLine(r10, r11, r12);
throw r9;
L_0x017c:
r10 = move-exception;
r11 = new gnu.mapping.WrongType;
r12 = "string-length";
r13 = 1;
r11.<init>(r10, r12, r13, r9);
throw r11;
L_0x0186:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1632; // 0x660 float:2.287E-42 double:8.063E-321;
r12 = 21;
r9.setLine(r10, r11, r12);
throw r9;
L_0x0191:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1633; // 0x661 float:2.288E-42 double:8.07E-321;
r12 = 19;
r9.setLine(r10, r11, r12);
throw r9;
L_0x019c:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1634; // 0x662 float:2.29E-42 double:8.073E-321;
r12 = 17;
r9.setLine(r10, r11, r12);
throw r9;
L_0x01a7:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1634; // 0x662 float:2.29E-42 double:8.073E-321;
r12 = 36;
r9.setLine(r10, r11, r12);
throw r9;
L_0x01b2:
r10 = move-exception;
r11 = new gnu.mapping.WrongType;
r12 = "string-length";
r13 = 1;
r11.<init>(r10, r12, r13, r9);
throw r11;
L_0x01bc:
r10 = move-exception;
r11 = new gnu.mapping.WrongType;
r12 = "string-length";
r13 = 1;
r11.<init>(r10, r12, r13, r9);
throw r11;
L_0x01c6:
r9 = move-exception;
r10 = new gnu.mapping.WrongType;
r11 = "zero?";
r12 = 1;
r10.<init>(r9, r11, r12, r3);
throw r10;
L_0x01d0:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1645; // 0x66d float:2.305E-42 double:8.127E-321;
r12 = 41;
r9.setLine(r10, r11, r12);
throw r9;
L_0x01db:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1645; // 0x66d float:2.305E-42 double:8.127E-321;
r12 = 49;
r9.setLine(r10, r11, r12);
throw r9;
L_0x01e6:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1649; // 0x671 float:2.311E-42 double:8.147E-321;
r12 = 16;
r9.setLine(r10, r11, r12);
throw r9;
L_0x01f1:
r10 = move-exception;
r11 = new gnu.mapping.WrongType;
r12 = "zero?";
r13 = 1;
r11.<init>(r10, r12, r13, r9);
throw r11;
L_0x01fb:
r10 = move-exception;
r11 = new gnu.mapping.WrongType;
r12 = "string-length";
r13 = 1;
r11.<init>(r10, r12, r13, r9);
throw r11;
L_0x0205:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1652; // 0x674 float:2.315E-42 double:8.16E-321;
r12 = 56;
r9.setLine(r10, r11, r12);
throw r9;
L_0x0210:
r9 = move-exception;
r10 = "/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm";
r11 = 1652; // 0x674 float:2.315E-42 double:8.16E-321;
r12 = 62;
r9.setLine(r10, r11, r12);
throw r9;
*/
throw new UnsupportedOperationException("Method not decompiled: gnu.kawa.slib.srfi13.stringConcatenateReverse$SlShared$V(java.lang.Object, java.lang.Object[]):java.lang.Object");
}
public static Object $PcFinishStringConcatenateReverse(Object len, Object string$Mnlist, Object final_, Object end) {
Object apply2 = AddOp.$Pl.apply2(end, len);
try {
CharSequence ans = strings.makeString(((Number) apply2).intValue());
try {
try {
try {
$PcStringCopy$Ex(ans, ((Number) len).intValue(), (CharSequence) final_, 0, ((Number) end).intValue());
Object i = len;
while (lists.isPair(string$Mnlist)) {
Object s = lists.car.apply1(string$Mnlist);
Object lis = lists.cdr.apply1(string$Mnlist);
try {
int slen = strings.stringLength((CharSequence) s);
i = AddOp.$Mn.apply2(i, Integer.valueOf(slen));
try {
try {
$PcStringCopy$Ex(ans, ((Number) i).intValue(), (CharSequence) s, 0, slen);
string$Mnlist = lis;
} catch (ClassCastException e) {
throw new WrongType(e, "%string-copy!", 2, s);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-copy!", 1, i);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "string-length", 1, s);
}
}
return ans;
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-copy!", 4, end);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "%string-copy!", 2, final_);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "%string-copy!", 1, len);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "make-string", 1, apply2);
}
}
public Object apply4(ModuleMethod moduleMethod, Object obj, Object obj2, Object obj3, Object obj4) {
switch (moduleMethod.selector) {
case FullScreenVideoUtil.FULLSCREEN_VIDEO_ACTION_FULLSCREEN /*195*/:
try {
try {
try {
return $PcCheckBounds(obj, (CharSequence) obj2, ((Number) obj3).intValue(), ((Number) obj4).intValue());
} catch (ClassCastException e) {
throw new WrongType(e, "%check-bounds", 4, obj4);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%check-bounds", 3, obj3);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%check-bounds", 2, obj2);
}
case 198:
return checkSubstringSpec(obj, obj2, obj3, obj4);
case 204:
return $PcStringMap(obj, obj2, obj3, obj4);
case 206:
return $PcStringMap$Ex(obj, obj2, obj3, obj4);
case 299:
try {
try {
try {
return stringCopy$Ex(obj, ((Number) obj2).intValue(), (CharSequence) obj3, ((Number) obj4).intValue());
} catch (ClassCastException e222) {
throw new WrongType(e222, "string-copy!", 4, obj4);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "string-copy!", 3, obj3);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "string-copy!", 2, obj2);
}
case 319:
return $PcFinishStringConcatenateReverse(obj, obj2, obj3, obj4);
default:
return super.apply4(moduleMethod, obj, obj2, obj3, obj4);
}
}
public static Object stringReplace$V(Object s1, Object s2, Object start1, Object end1, Object[] argsArray) {
frame92 frame92 = new frame92();
frame92.s1 = s1;
frame92.s2 = s2;
frame92.start1 = start1;
frame92.end1 = end1;
frame92.maybe$Mnstart$Plend = LList.makeList(argsArray, 0);
checkSubstringSpec(string$Mnreplace, frame92.s1, frame92.start1, frame92.end1);
return call_with_values.callWithValues(frame92.lambda$Fn206, frame92.lambda$Fn207);
}
public static Object stringTokenize$V(Object s, Object[] argsArray) {
frame93 frame93 = new frame93();
frame93.f89s = s;
LList token$Mnchars$Plstart$Plend = LList.makeList(argsArray, 0);
try {
try {
try {
try {
try {
try {
return Scheme.applyToArgs.apply4(loc$let$Mnoptionals$St.get(), token$Mnchars$Plstart$Plend, Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply3(loc$token$Mnchars.get(), GetNamedPart.getNamedPart.apply2(loc$char$Mnset.get(), Lit14), Scheme.applyToArgs.apply2(loc$char$Mnset$Qu.get(), loc$token$Mnchars.get())), loc$rest.get()), call_with_values.callWithValues(frame93.lambda$Fn208, frame93.lambda$Fn209));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1695, 75);
throw e;
}
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1695, 61);
throw e2;
}
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1695, 50);
throw e22;
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1695, 33);
throw e222;
}
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1695, 20);
throw e2222;
}
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1694, 3);
throw e22222;
}
}
public static Object xsubstring$V(Object s, Object from, Object[] argsArray) {
frame94 frame94 = new frame94();
frame94.f90s = s;
frame94.from = from;
frame94.maybe$Mnto$Plstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), lambda$Fn210, frame94.from, xsubstring);
return call_with_values.callWithValues(frame94.lambda$Fn211, frame94.lambda$Fn215);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1738, 3);
throw e;
}
}
public static Object stringXcopy$Ex$V(Object target, Object tstart, Object s, Object sfrom, Object[] argsArray) {
frame95 frame95 = new frame95();
frame95.target = target;
frame95.tstart = tstart;
frame95.f91s = s;
frame95.sfrom = sfrom;
frame95.maybe$Mnsto$Plstart$Plend = LList.makeList(argsArray, 0);
try {
Scheme.applyToArgs.apply4(loc$check$Mnarg.get(), lambda$Fn216, frame95.sfrom, string$Mnxcopy$Ex);
return call_with_values.callWithValues(frame95.lambda$Fn217, frame95.lambda$Fn221);
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1779, 3);
throw e;
}
}
public Object apply1(ModuleMethod moduleMethod, Object obj) {
switch (moduleMethod.selector) {
case 199:
return frame1.lambda5(obj) ? Boolean.TRUE : Boolean.FALSE;
case 209:
return lambda17(obj);
case 211:
return lambda18(obj);
case 217:
return lambda27(obj) ? Boolean.TRUE : Boolean.FALSE;
case 239:
return frame32.lambda72(obj);
case 240:
return frame32.lambda73(obj);
case LispEscapeFormat.ESCAPE_ALL /*242*/:
return frame34.lambda78(obj);
case 244:
return frame36.lambda83(obj);
case 245:
return frame36.lambda84(obj);
case 247:
return frame38.lambda89(obj);
case 248:
return frame38.lambda90(obj);
case 250:
return frame40.lambda95(obj);
case Telnet.WONT /*252*/:
return frame42.lambda100(obj);
case Telnet.DONT /*254*/:
return frame44.lambda105(obj);
case 255:
return frame44.lambda106(obj);
case InputDeviceCompat.SOURCE_KEYBOARD /*257*/:
return frame46.lambda111(obj);
case 259:
return frame48.lambda116(obj);
case 260:
return frame48.lambda117(obj);
case 262:
return frame50.lambda122(obj);
case 263:
return frame50.lambda123(obj);
case 265:
return frame52.lambda128(obj);
case 267:
return frame54.lambda133(obj);
case 271:
return Integer.valueOf(frame57.lambda138(obj));
case 287:
return frame71.lambda163(obj) ? Boolean.TRUE : Boolean.FALSE;
case 289:
return frame72.lambda166(obj) ? Boolean.TRUE : Boolean.FALSE;
case ErrorMessages.ERROR_TWITTER_REQUEST_DIRECT_MESSAGES_FAILED /*309*/:
return isStringNull(obj) ? Boolean.TRUE : Boolean.FALSE;
case ErrorMessages.ERROR_TWITTER_STOP_FOLLOWING_FAILED /*312*/:
return reverseList$To$String(obj);
case 315:
return stringConcatenate$SlShared(obj);
case 316:
return stringConcatenate(obj);
case 322:
return frame94.lambda210(obj) ? Boolean.TRUE : Boolean.FALSE;
case 324:
return frame95.lambda216(obj) ? Boolean.TRUE : Boolean.FALSE;
case 325:
return frame95.lambda220(obj) ? Boolean.TRUE : Boolean.FALSE;
default:
return super.apply1(moduleMethod, obj);
}
}
public static Object $PcMultispanRepcopy$Ex(Object target, Object tstart, Object s, Object sfrom, Object sto, Object start, Object end) {
Object slen = AddOp.$Mn.apply2(end, start);
Object i0 = AddOp.$Pl.apply2(start, DivideOp.modulo.apply2(sfrom, slen));
Object total$Mnchars = AddOp.$Mn.apply2(sto, sfrom);
try {
try {
try {
try {
try {
$PcStringCopy$Ex((CharSequence) target, ((Number) tstart).intValue(), (CharSequence) s, ((Number) i0).intValue(), ((Number) end).intValue());
Object ncopied = AddOp.$Mn.apply2(end, i0);
Object nspans = DivideOp.quotient.apply2(AddOp.$Mn.apply2(total$Mnchars, ncopied), slen);
Object i = AddOp.$Pl.apply2(tstart, ncopied);
while (!numbers.isZero((Number) nspans)) {
try {
try {
try {
try {
try {
try {
$PcStringCopy$Ex((CharSequence) target, ((Number) i).intValue(), (CharSequence) s, ((Number) start).intValue(), ((Number) end).intValue());
i = AddOp.$Pl.apply2(i, slen);
nspans = AddOp.$Mn.apply2(nspans, Lit1);
} catch (ClassCastException e) {
throw new WrongType(e, "%string-copy!", 4, end);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-copy!", 3, start);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-copy!", 2, s);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-copy!", 1, i);
}
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "%string-copy!", 0, target);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "zero?", 1, nspans);
}
}
try {
CharSequence charSequence = (CharSequence) target;
try {
int intValue = ((Number) i).intValue();
try {
CharSequence charSequence2 = (CharSequence) s;
try {
int intValue2 = ((Number) start).intValue();
Object apply2 = AddOp.$Pl.apply2(start, AddOp.$Mn.apply2(total$Mnchars, AddOp.$Mn.apply2(i, tstart)));
try {
return $PcStringCopy$Ex(charSequence, intValue, charSequence2, intValue2, ((Number) apply2).intValue());
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "%string-copy!", 4, apply2);
}
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "%string-copy!", 3, start);
}
} catch (ClassCastException e22222222) {
throw new WrongType(e22222222, "%string-copy!", 2, s);
}
} catch (ClassCastException e222222222) {
throw new WrongType(e222222222, "%string-copy!", 1, i);
}
} catch (ClassCastException e2222222222) {
throw new WrongType(e2222222222, "%string-copy!", 0, target);
}
} catch (ClassCastException e22222222222) {
throw new WrongType(e22222222222, "%string-copy!", 4, end);
}
} catch (ClassCastException e222222222222) {
throw new WrongType(e222222222222, "%string-copy!", 3, i0);
}
} catch (ClassCastException e2222222222222) {
throw new WrongType(e2222222222222, "%string-copy!", 2, s);
}
} catch (ClassCastException e22222222222222) {
throw new WrongType(e22222222222222, "%string-copy!", 1, tstart);
}
} catch (ClassCastException e222222222222222) {
throw new WrongType(e222222222222222, "%string-copy!", 0, target);
}
}
public static Object stringJoin$V(Object strings, Object[] argsArray) {
LList delim$Plgrammar = LList.makeList(argsArray, 0);
Procedure procedure = Scheme.applyToArgs;
try {
Object obj = loc$let$Mnoptionals$St.get();
try {
try {
try {
Object cons;
Object apply2 = Scheme.applyToArgs.apply2(Scheme.applyToArgs.apply3(loc$delim.get(), " ", strings.isString(loc$delim.get()) ? Boolean.TRUE : Boolean.FALSE), Scheme.applyToArgs.apply2(loc$grammar.get(), Lit15));
if (lists.isPair(strings)) {
try {
Object tmp = loc$grammar.get();
Boolean x = Scheme.isEqv.apply2(tmp, Lit15);
if (x == Boolean.FALSE ? Scheme.isEqv.apply2(tmp, Lit16) != Boolean.FALSE : x != Boolean.FALSE) {
cons = lists.cons(lists.car.apply1(strings), lambda222buildit(lists.cdr.apply1(strings), LList.Empty));
} else if (Scheme.isEqv.apply2(tmp, Lit17) != Boolean.FALSE) {
cons = lambda222buildit(strings, LList.Empty);
} else if (Scheme.isEqv.apply2(tmp, Lit18) != Boolean.FALSE) {
try {
cons = lists.cons(lists.car.apply1(strings), lambda222buildit(lists.cdr.apply1(strings), LList.list1(loc$delim.get())));
} catch (UnboundLocationException e) {
e.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1870, 53);
throw e;
}
} else {
String str = "Illegal join grammar";
Object[] objArr = new Object[2];
try {
objArr[0] = loc$grammar.get();
objArr[1] = string$Mnjoin;
cons = misc.error$V(str, objArr);
} catch (UnboundLocationException e2) {
e2.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1873, 9);
throw e2;
}
}
cons = stringConcatenate(cons);
} catch (UnboundLocationException e22) {
e22.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1862, 14);
throw e22;
}
} else if (lists.isNull(strings)) {
try {
if (loc$grammar.get() == Lit16) {
cons = misc.error$V("Empty list cannot be joined with STRICT-INFIX grammar.", new Object[]{string$Mnjoin});
} else {
cons = "";
}
} catch (UnboundLocationException e222) {
e222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1880, 13);
throw e222;
}
} else {
cons = misc.error$V("STRINGS parameter not list.", new Object[]{strings, string$Mnjoin});
}
return procedure.apply4(obj, delim$Plgrammar, apply2, cons);
} catch (UnboundLocationException e2222) {
e2222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1853, 6);
throw e2222;
}
} catch (UnboundLocationException e22222) {
e22222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1852, 54);
throw e22222;
}
} catch (UnboundLocationException e222222) {
e222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1852, 34);
throw e222222;
}
} catch (UnboundLocationException e2222222) {
e2222222.setLine("/Users/ewpatton/Programming/mit/ai2-kawa/gnu/kawa/slib/srfi13.scm", 1852, 3);
throw e2222222;
}
}
public Object applyN(ModuleMethod moduleMethod, Object[] objArr) {
Object obj;
Object obj2;
int length;
Object[] objArr2;
Object obj3;
Object obj4;
Object obj5;
int intValue;
int intValue2;
Object obj6;
Object obj7;
int length2;
Object[] objArr3;
CharSequence charSequence;
int i;
switch (moduleMethod.selector) {
case HttpRequestContext.HTTP_OK /*200*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return substring$SlShared$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 202:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCopy$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 203:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringMap$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 205:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringMap$Ex$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 207:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
length = objArr.length - 3;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringFold$V(obj, obj2, obj3, objArr2);
}
objArr2[length] = objArr[length + 3];
}
case 208:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
length = objArr.length - 3;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringFoldRight$V(obj, obj2, obj3, objArr2);
}
objArr2[length] = objArr[length + 3];
}
case 210:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
obj4 = objArr[3];
length = objArr.length - 4;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringUnfold$V(obj, obj2, obj3, obj4, objArr2);
}
objArr2[length] = objArr[length + 4];
}
case 212:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
obj4 = objArr[3];
length = objArr.length - 4;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringUnfoldRight$V(obj, obj2, obj3, obj4, objArr2);
}
objArr2[length] = objArr[length + 4];
}
case 213:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringForEach$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 214:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringForEachIndex$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 215:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringEvery$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 216:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringAny$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 219:
return $PcStringPrefixLength(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 220:
return $PcStringSuffixLength(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 221:
obj5 = objArr[0];
obj = objArr[1];
try {
length = ((Number) obj).intValue();
obj2 = objArr[2];
try {
intValue = ((Number) obj2).intValue();
obj2 = objArr[3];
obj4 = objArr[4];
try {
intValue2 = ((Number) obj4).intValue();
obj6 = objArr[5];
try {
return Integer.valueOf($PcStringPrefixLengthCi(obj5, length, intValue, obj2, intValue2, ((Number) obj6).intValue()));
} catch (ClassCastException e) {
throw new WrongType(e, "%string-prefix-length-ci", 6, obj6);
}
} catch (ClassCastException e2) {
throw new WrongType(e2, "%string-prefix-length-ci", 5, obj4);
}
} catch (ClassCastException e22) {
throw new WrongType(e22, "%string-prefix-length-ci", 3, obj2);
}
} catch (ClassCastException e222) {
throw new WrongType(e222, "%string-prefix-length-ci", 2, obj);
}
case 222:
obj5 = objArr[0];
obj = objArr[1];
try {
length = ((Number) obj).intValue();
obj2 = objArr[2];
try {
intValue = ((Number) obj2).intValue();
obj2 = objArr[3];
obj4 = objArr[4];
try {
intValue2 = ((Number) obj4).intValue();
obj6 = objArr[5];
try {
return Integer.valueOf($PcStringSuffixLengthCi(obj5, length, intValue, obj2, intValue2, ((Number) obj6).intValue()));
} catch (ClassCastException e2222) {
throw new WrongType(e2222, "%string-suffix-length-ci", 6, obj6);
}
} catch (ClassCastException e22222) {
throw new WrongType(e22222, "%string-suffix-length-ci", 5, obj4);
}
} catch (ClassCastException e222222) {
throw new WrongType(e222222, "%string-suffix-length-ci", 3, obj2);
}
} catch (ClassCastException e2222222) {
throw new WrongType(e2222222, "%string-suffix-length-ci", 2, obj);
}
case 223:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringPrefixLength$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 224:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringSuffixLength$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 225:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringPrefixLengthCi$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 226:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringSuffixLengthCi$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 227:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return isStringPrefix$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 228:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return isStringSuffix$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 229:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return isStringPrefixCi$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 230:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return isStringSuffixCi$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 231:
return $PcStringPrefix$Qu(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 232:
return $PcStringSuffix$Qu(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 233:
return $PcStringPrefixCi$Qu(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 234:
return $PcStringSuffixCi$Qu(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case 235:
return $PcStringCompare(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5], objArr[6], objArr[7], objArr[8]);
case 236:
return $PcStringCompareCi(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5], objArr[6], objArr[7], objArr[8]);
case 237:
obj5 = objArr[0];
obj7 = objArr[1];
obj = objArr[2];
obj2 = objArr[3];
obj3 = objArr[4];
length2 = objArr.length - 5;
objArr3 = new Object[length2];
while (true) {
length2--;
if (length2 < 0) {
return stringCompare$V(obj5, obj7, obj, obj2, obj3, objArr3);
}
objArr3[length2] = objArr[length2 + 5];
}
case 238:
obj5 = objArr[0];
obj7 = objArr[1];
obj = objArr[2];
obj2 = objArr[3];
obj3 = objArr[4];
length2 = objArr.length - 5;
objArr3 = new Object[length2];
while (true) {
length2--;
if (length2 < 0) {
return stringCompareCi$V(obj5, obj7, obj, obj2, obj3, objArr3);
}
objArr3[length2] = objArr[length2 + 5];
}
case LispEscapeFormat.ESCAPE_NORMAL /*241*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 243:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Ls$Gr$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 246:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Ls$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 249:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Gr$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case Telnet.WILL /*251*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Ls$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case Telnet.DO /*253*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$Gr$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 256:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 258:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Ls$Gr$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 261:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Ls$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 264:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Gr$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 266:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Ls$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 268:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCi$Gr$Eq$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 269:
return $PcStringHash(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4]);
case 270:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringHash$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 272:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringHashCi$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 273:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringUpcase$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 274:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringUpcase$Ex$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 275:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringDowncase$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 276:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringDowncase$Ex$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 278:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTitlecase$Ex$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 279:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTitlecase$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 284:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTrim$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 285:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTrimRight$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 286:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTrimBoth$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 288:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringPadRight$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 290:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringPad$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 291:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringDelete$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 292:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringFilter$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 293:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringIndex$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 294:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringIndexRight$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 295:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringSkip$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 296:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringSkipRight$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 297:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringCount$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 298:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringFill$Ex$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 299:
intValue = objArr.length - 3;
obj2 = objArr[0];
obj7 = objArr[1];
try {
intValue2 = ((Number) obj7).intValue();
obj5 = objArr[2];
try {
charSequence = (CharSequence) obj5;
if (intValue <= 0) {
return stringCopy$Ex(obj2, intValue2, charSequence);
}
i = intValue - 1;
obj = objArr[3];
try {
length2 = ((Number) obj).intValue();
if (i <= 0) {
return stringCopy$Ex(obj2, intValue2, charSequence, length2);
}
length = i - 1;
obj = objArr[4];
try {
return stringCopy$Ex(obj2, intValue2, charSequence, length2, ((Number) obj).intValue());
} catch (ClassCastException e22222222) {
throw new WrongType(e22222222, "string-copy!", 5, obj);
}
} catch (ClassCastException e222222222) {
throw new WrongType(e222222222, "string-copy!", 4, obj);
}
} catch (ClassCastException e3) {
throw new WrongType(e3, "string-copy!", 3, obj5);
}
} catch (ClassCastException e2222222222) {
throw new WrongType(e2222222222, "string-copy!", 2, obj7);
}
case ErrorMessages.ERROR_TWITTER_BLANK_CONSUMER_KEY_OR_SECRET /*302*/:
obj5 = objArr[0];
try {
charSequence = (CharSequence) obj5;
obj = objArr[1];
try {
intValue2 = ((Number) obj).intValue();
obj7 = objArr[2];
try {
CharSequence charSequence2 = (CharSequence) obj7;
obj2 = objArr[3];
try {
i = ((Number) obj2).intValue();
obj2 = objArr[4];
try {
return $PcStringCopy$Ex(charSequence, intValue2, charSequence2, i, ((Number) obj2).intValue());
} catch (ClassCastException e22222222222) {
throw new WrongType(e22222222222, "%string-copy!", 5, obj2);
}
} catch (ClassCastException e222222222222) {
throw new WrongType(e222222222222, "%string-copy!", 4, obj2);
}
} catch (ClassCastException e2222222222222) {
throw new WrongType(e2222222222222, "%string-copy!", 3, obj7);
}
} catch (ClassCastException e22222222222222) {
throw new WrongType(e22222222222222, "%string-copy!", 2, obj);
}
} catch (ClassCastException e32) {
throw new WrongType(e32, "%string-copy!", 1, obj5);
}
case ErrorMessages.ERROR_TWITTER_EXCEPTION /*303*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringContains$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case ErrorMessages.ERROR_TWITTER_UNABLE_TO_GET_ACCESS_TOKEN /*304*/:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringContainsCi$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case ErrorMessages.ERROR_TWITTER_AUTHORIZATION_FAILED /*305*/:
return $PcKmpSearch(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5], objArr[6]);
case ErrorMessages.ERROR_TWITTER_SET_STATUS_FAILED /*306*/:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return makeKmpRestartVector$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case ErrorMessages.ERROR_TWITTER_REQUEST_MENTIONS_FAILED /*307*/:
return kmpStep(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5]);
case ErrorMessages.ERROR_TWITTER_REQUEST_FOLLOWERS_FAILED /*308*/:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
obj4 = objArr[3];
length = objArr.length - 4;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringKmpPartialSearch$V(obj, obj2, obj3, obj4, objArr2);
}
objArr2[length] = objArr[length + 4];
}
case ErrorMessages.ERROR_TWITTER_DIRECT_MESSAGE_FAILED /*310*/:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringReverse$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case ErrorMessages.ERROR_TWITTER_FOLLOW_FAILED /*311*/:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringReverse$Ex$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case ErrorMessages.ERROR_TWITTER_REQUEST_FRIEND_TIMELINE_FAILED /*313*/:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return string$To$List$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case ErrorMessages.ERROR_TWITTER_SEARCH_FAILED /*314*/:
return stringAppend$SlShared$V(objArr);
case 317:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringConcatenateReverse$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 318:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringConcatenateReverse$SlShared$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case ScreenDensityUtil.DEFAULT_NORMAL_SHORT_DIMENSION /*320*/:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
obj4 = objArr[3];
length = objArr.length - 4;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringReplace$V(obj, obj2, obj3, obj4, objArr2);
}
objArr2[length] = objArr[length + 4];
}
case 321:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringTokenize$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
case 323:
obj = objArr[0];
obj2 = objArr[1];
length = objArr.length - 2;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return xsubstring$V(obj, obj2, objArr2);
}
objArr2[length] = objArr[length + 2];
}
case 326:
obj = objArr[0];
obj2 = objArr[1];
obj3 = objArr[2];
obj4 = objArr[3];
length = objArr.length - 4;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringXcopy$Ex$V(obj, obj2, obj3, obj4, objArr2);
}
objArr2[length] = objArr[length + 4];
}
case 327:
return $PcMultispanRepcopy$Ex(objArr[0], objArr[1], objArr[2], objArr[3], objArr[4], objArr[5], objArr[6]);
case 328:
obj = objArr[0];
length = objArr.length - 1;
objArr2 = new Object[length];
while (true) {
length--;
if (length < 0) {
return stringJoin$V(obj, objArr2);
}
objArr2[length] = objArr[length + 1];
}
default:
return super.applyN(moduleMethod, objArr);
}
}
public static Object lambda222buildit(Object lis, Object final_) {
frame96 frame96 = new frame96();
frame96.f92final = final_;
return frame96.lambda223recur(lis);
}
}
| [
"hassan.alshammari1995@yahoo.com"
] | hassan.alshammari1995@yahoo.com |
bdbb2fa38270fe90b4e995ce97e17aeaa00a1495 | ee26013ab5b4460b9e392db5f9bd5acc272b6ea8 | /Operation/src/main/java/com/justinmobile/bmp/util/ExcelUtils.java | d95ea8d29c481084c3fc39c175264d5fa3a21c5f | [] | no_license | Anymous526/Hera | 3e6dceea0e7b060cde0333ede8afdb3d72960830 | c057ca7c2b664a3ffe1f79dd64e596ea6eece74c | refs/heads/master | 2021-01-13T15:06:51.238921 | 2015-04-15T02:38:02 | 2015-04-15T02:38:02 | 33,860,415 | 1 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,755 | java | package com.justinmobile.bmp.util;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.Calendar;
import java.util.List;
import org.apache.commons.lang.ArrayUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.stereotype.Service;
@Service("excelUtils")
public class ExcelUtils {
public static int MAX_ROWS_NUM = 100000;
private static final String FILE_SUFFIX = ".xls";
private static final String HEADERS_SEPORTER = "|";
@SuppressWarnings("deprecation")
public String toExcel(List<List<String>> list, String[] header, String[] fileCondition, String filePath) throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
int rowIndex = 0;
if (!ArrayUtils.isEmpty(fileCondition)) {
HSSFRow row = sheet.createRow(rowIndex);
writeFileCondition(null,row, fileCondition);
rowIndex++;
}
if (header.length != 0) {
HSSFRow row = sheet.createRow(rowIndex);
writeHeader(header, row);
rowIndex++;
}
for (int i = 0; i < list.size(); i++) {
List<String> colList = (List<String>) list.get(i);
HSSFRow row = sheet.createRow(rowIndex+i);
for (short colIndex = 0; colIndex < colList.size(); colIndex++) {
HSSFCell cell = row.createCell(colIndex);
if (colList.get(colIndex) == null) {
continue;
}
cell.setCellValue(new HSSFRichTextString(colList.get(colIndex).toString()));
// HSSFCellStyle.
// cell.setCellType(cellType);
}
// rowIndex++;
}
String fileName = getFileName();
FileOutputStream out = new FileOutputStream(filePath + fileName);
wb.write(out);
out.close();
return fileName;
}
@SuppressWarnings("deprecation")
private void writeHeader(String[] headers, HSSFRow row) {
for (short colnum = 0; colnum < headers.length; colnum++) {
String[] hd = headers[colnum].split("\\"+HEADERS_SEPORTER);
HSSFCell cell = row.createCell(colnum);
cell.setCellValue(new HSSFRichTextString(hd[0]));
}
}
@SuppressWarnings("deprecation")
private void writeFileCondition(String[] headers, HSSFRow row,String[] fileCondition) {
for (short colnum = 0; colnum < fileCondition.length; colnum++) {
HSSFCell cell = row.createCell(colnum);
cell.setCellValue(new HSSFRichTextString(fileCondition[colnum]));
}
}
private String getFileName() {
StringBuffer fileName = new StringBuffer();
fileName.append(CalendarUtils.fomatCalendar(Calendar.getInstance(), CalendarUtils.LONG_FORMAT));
fileName.append(FILE_SUFFIX);
return fileName.toString();
}
@SuppressWarnings("deprecation")
public void writeToOutputStream(List<List<String>> list, String[] header, String[] fileCondition, OutputStream outputStream) throws Exception {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();
int rowIndex = 0;
if (!ArrayUtils.isEmpty(fileCondition)) {
HSSFRow row = sheet.createRow(rowIndex);
writeFileCondition(null,row, fileCondition);
rowIndex++;
}
if (header.length != 0) {
HSSFRow row = sheet.createRow(rowIndex);
writeHeader(header, row);
rowIndex++;
}
for (int i = 0; i < list.size(); i++) {
List<String> colList = (List<String>) list.get(i);
HSSFRow row = sheet.createRow(rowIndex+i);
for (short colIndex = 0; colIndex < colList.size(); colIndex++) {
HSSFCell cell = row.createCell(colIndex);
if (colList.get(colIndex) == null) {
continue;
}
cell.setCellValue(new HSSFRichTextString(colList.get(colIndex).toString()));
}
}
wb.write(outputStream);
}
}
| [
"kevin.sun526@qq.com"
] | kevin.sun526@qq.com |
8965da50dce40c39121d49d6a066550c9aee46d4 | 1e94cc11c3beef0791cdd39aa0003a05dbd62ff1 | /garden/src/main/java/org/m410/garden/zone/ZoneFactory.java | eab55506cdbbef7cf575f060cf20fc1636196251 | [
"Apache-2.0"
] | permissive | m410/garden | 1267fd0c44756601b211725c3c15630d361447d0 | 36d87bf4f3d598ed6c06ac1ea1955769cd5cea6e | refs/heads/master | 2021-01-10T19:03:48.395940 | 2021-01-10T16:15:54 | 2021-01-10T16:15:54 | 14,930,246 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 656 | java | package org.m410.garden.zone;
/**
* A thread local factory used by the application to create thread local
* instances.
*
* @author Michael Fortin
*/
public interface ZoneFactory<T extends Zone> {
void setZoneManager(ZoneManager zoneManager);
String name();
/**
* Create a threadLocal zone instance.
* @return a new thread local session instance.
*/
T makeZone();
/**
* Shutdown the factory, and do cleanup like de-registering jdbc drivers.
*/
void shutdown();
/**
*
* @return the ZoneHandlerFactory associated with this zone.
*/
ZoneHandlerFactory zoneHandlerFactory();
}
| [
"michael@m410.us"
] | michael@m410.us |
cf872c9bce1e46d01afd80dfac23c3d89ec246b6 | 3fda7a6d54a32673047e8cff8276ce5284314409 | /comm-ssi-01/src/main/java/com/jk/comm/ImageCodeServlet.java | cb8799d5eb172c1e3134679062695ea24543c9ee | [] | no_license | lifh-01/lifh-01 | ddac36bbc35bf9a312608ff7abce6f29fd748dbc | ef4b7e64da615416e8283ebfea23678d040e736e | refs/heads/master | 2021-06-20T04:13:42.281551 | 2017-08-16T09:56:59 | 2017-08-16T09:56:59 | 100,445,804 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,742 | java | package com.jk.comm;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.Random;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.sun.image.codec.jpeg.ImageFormatException;
import com.sun.image.codec.jpeg.JPEGCodec;
import com.sun.image.codec.jpeg.JPEGImageEncoder;
/**
* Servlet implementation class ImageCodeServlet
*/
public class ImageCodeServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public ImageCodeServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
int width = 60;
int height = 20;
// 产生随机�?
Random r = new Random();
// 把随机数绘制成图�?
BufferedImage imgbuf = new BufferedImage(width, height,
BufferedImage.TYPE_INT_RGB);// 产生缓冲图像,40�?0�?
Graphics2D g = imgbuf.createGraphics();// 取得缓冲的绘制环�?
// �?��绘制
g.setColor(getRandColor(200, 250));// 设定背景�?
g.fillRect(0, 0, width, height);
// 随机产生155条干扰线,使图象中的认证码不易被其它程序探测�?
g.setColor(getRandColor(160, 200));
for (int i = 0; i < 155; i++) {
int x = r.nextInt(width);
int y = r.nextInt(height);
int xl = r.nextInt(12);
int yl = r.nextInt(12);
g.drawLine(x, y, x + xl, y + yl);
}
// 随机产生100个干扰点,使图像中的验证码不易被其他分析程序探测�?
g.setColor(getRandColor(120, 240));
for (int i = 0; i < 100; i++) {
int x = r.nextInt(width);
int y = r.nextInt(height);
g.drawOval(x, y, 0, 0);
}
g.setFont(new Font("Times New Roman", Font.PLAIN, 18));
String scode = "";
for (int i = 0; i < 4; i++) {
String rand = String.valueOf(r.nextInt(10));
scode += rand;
g.setColor(new Color(20 + r.nextInt(110), 20 + r.nextInt(110),
20 + r.nextInt(110)));
// 调用函数出来的颜色相同,可能是因为种子太接近,所以只能直接生�?
g.drawString(rand, 13 * i + 6, 16);
}
//关键代码 把生成的验证码放进Session中
request.getSession().setAttribute("imageCode", scode);
// 输出图像
try {
ServletOutputStream out = response.getOutputStream();// 得到HTTP的流
JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);// 产生JPEG的图像加码器
encoder.encode(imgbuf);
out.flush();
} catch (ImageFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
}
private static Color getRandColor(int fc, int bc) {// 给定范围获得随机颜色
Random random = new Random();
if (fc > 255)
fc = 255;
if (fc < 0)
fc = 0;
if (bc > 255)
bc = 255;
if (bc < 0)
bc = 0;
int r = fc + random.nextInt(bc - fc);
int g = fc + random.nextInt(bc - fc);
int b = fc + random.nextInt(bc - fc);
return new Color(r, g, b);
}
}
| [
"422871762@qq.com"
] | 422871762@qq.com |
a5ec52ca7854142552901593bc49d756e850e8a6 | 27f339c3c38b98ba6de7cefc61f986baf19d309e | /AppPostoDeSaude/src/dao/EquipamentoDoPostoDAO.java | 6830dbc8086fcbe9820fd804f78bd047924bb9a8 | [] | no_license | douglasdamasceno/Trabalho-de-FBD | 909fbf0aceb2cf6e39760a1e34eab8c3551cde0f | b68f48a8e21b79107977c8d92b48d6943827aac6 | refs/heads/master | 2021-09-08T09:29:13.711465 | 2021-09-02T21:42:20 | 2021-09-02T21:42:20 | 156,937,326 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,119 | java | package dao;
import java.sql.*;
import java.util.ArrayList;
import jdbc.*;
import model.*;
public class EquipamentoDoPostoDAO {
private Connection conexao;
private int vetorIds[];
public EquipamentoDoPostoDAO() {
}
public Connection getConexao() {
return conexao;
}
public void setConexao(Connection conexao) {
this.conexao = conexao;
}
public void conecte() {
this.conexao = new Conexao().getConnection();
}
public boolean adicionarEquipamentoNoPosto(EquipamentoDoPosto equipDoPosto) {
String comandoSQL = "insert into EquipamentoDoPosto (idPosto, idEquipamento, qtdEquipamento, dataDeEntrega) values (?, ?, ?, ?)";
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, equipDoPosto.getIdPosto());
preparedStatement.setInt(2, equipDoPosto.getIdEquipamento());
preparedStatement.setInt(3, equipDoPosto.getQtdEquipamento());
preparedStatement.setString(4, equipDoPosto.getDataDeEntrega());
int qtdRowsAffected = preparedStatement.executeUpdate();
preparedStatement.close();
if (qtdRowsAffected > 0) {
return true;
}
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (Exception e2) {
e2.printStackTrace();
}
}
return false;
}
public boolean removerEquipamentoDoPosto(int idPosto,int idEquipamento) {
String comandoSQL = "delete from EquipamentoDoPosto where idPosto=? and idEquipamento = ? ";
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, idPosto);
preparedStatement.setInt(2, idEquipamento);
int qtdRowsAffected = preparedStatement.executeUpdate();
preparedStatement.close();
if (qtdRowsAffected > 0) {
return true;
}
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return false;
}
public EquipamentoDoPosto getEquipamentoDoPostoById(int idPosto, int idEquipamento) {
String comandoSQL = "select * from EquipamentoDoPosto where idPosto = ? and idEquipamento = ?";
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, idPosto);
preparedStatement.setInt(2, idEquipamento);
ResultSet rs = preparedStatement.executeQuery();
rs.next();
EquipamentoDoPosto equiDoPosto = new EquipamentoDoPosto(idPosto, idEquipamento, rs.getInt("qtdEquipamento"),
rs.getString("dataDeEntrega"));
preparedStatement.close();
return equiDoPosto;
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (SQLException e2) {
e2.printStackTrace();
}
}
return null;
}
public ArrayList<EquipamentoDoPosto> getListEquipamentosDoPosto(int idPosto) {
String comandoSQL = "select * from EquipamentoDoPosto where idPosto = ? ";
ArrayList<EquipamentoDoPosto> listaDeEquipamentosDoPosto = new ArrayList<>();
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, idPosto);
ResultSet rs = preparedStatement.executeQuery();
while (rs.next()) {
if(rs.getInt("idPosto")==idPosto) {
EquipamentoDoPosto equiDoPosto = new EquipamentoDoPosto(
rs.getInt("idPosto"),rs.getInt("idEquipamento"), rs.getInt("qtdEquipamento"), rs.getString("dataDeEntrega"));
listaDeEquipamentosDoPosto.add(equiDoPosto);
}
}
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (SQLException e2) {
e2.printStackTrace();// TODO: handle exception
}
}
return listaDeEquipamentosDoPosto;
}
// public ArrayList<EquipamentoDoPosto> getListEquipamentosDoPosto() {
// String comandoSQL = "select * from EquipamentoDoPosto";
// ArrayList<EquipamentoDoPosto> listaDeEquipamentosDoPosto = new ArrayList<>();
// conecte();
//
// try {
//
// PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
//
// ResultSet rs = preparedStatement.executeQuery();
//
// while (rs.next()) {
// EquipamentoDoPosto equiDoPosto = new EquipamentoDoPosto(rs.getInt("idPosto"),
// rs.getInt("idEquipamento"), rs.getInt("qtdEquipamento"), rs.getString("dataDeEntrega"));
// listaDeEquipamentosDoPosto.add(equiDoPosto);
// }
//
// } catch (SQLException e) {
// System.err.println(e.getMessage());
// } finally {
// try {
// this.conexao.close();
// } catch (SQLException e2) {
// e2.printStackTrace();// TODO: handle exception
// }
// }
//
// return listaDeEquipamentosDoPosto;
// }
public boolean alterarEquipamentoDoPosto(EquipamentoDoPosto equiDoPosto) {
String comandoSQL = "update EquipamentoDoPosto set qtdEquimapamento = ?, dataDeEntrega = ? where idEquipamento = ? and idPosto = ?";
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, equiDoPosto.getQtdEquipamento());
preparedStatement.setString(2, equiDoPosto.getDataDeEntrega());
preparedStatement.setInt(3, equiDoPosto.getIdEquipamento());
preparedStatement.setInt(4, equiDoPosto.getIdPosto());
int qtdRowsAffected = preparedStatement.executeUpdate();
preparedStatement.close();
if (qtdRowsAffected > 0) {
return true;
}
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (Exception e2) {
e2.printStackTrace();
}
}
return false;
}
public boolean alterarQtdEquipamentoDoPosto(int idPosto,int idEquipamento,int qtd) {
String comandoSQL = "update EquipamentoDoPosto set qtdEquipamento = ? where idEquipamento = ? and idPosto = ?";
conecte();
try {
PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
preparedStatement.setInt(1, qtd);
preparedStatement.setInt(2, idEquipamento);
preparedStatement.setInt(3, idPosto);
int qtdRowsAffected = preparedStatement.executeUpdate();
preparedStatement.close();
if (qtdRowsAffected > 0) {
return true;
}
} catch (SQLException e) {
System.err.println(e.getMessage());
} finally {
try {
this.conexao.close();
} catch (Exception e2) {
e2.printStackTrace();
}
}
return false;
}
// public int getIdMax() {
// String comandoSQL = "select max(idEquipamento) from EquipamentoDoPosto";
// conecte();
//
// try {
// PreparedStatement preparedStatement = conexao.prepareStatement(comandoSQL);
//
// ResultSet rs = preparedStatement.executeQuery();
// rs.next();
// int idMaximo = rs.getInt("max");
//
// preparedStatement.close();
//
// return idMaximo;
//
// } catch (SQLException e) {
// System.err.println(e.getMessage());
// } finally {
// try {
// this.conexao.close();
// } catch (Exception e2) {
// e2.printStackTrace();
// }
// }
//
// return -1;
// }
//
}
| [
"douglasmdamasceno@gmail.com"
] | douglasmdamasceno@gmail.com |
94178cd965c7331209f6083e01c58f97cfb50cbe | 1a5b960f23f9a4bf8895a2579984edd6cf4089e6 | /samples/src/java/org/jpox/samples/embedded/EmbeddedObject2.java | 69d544f86f74226ff0ded2af3e8d1e5b66f8f057 | [
"Apache-2.0"
] | permissive | nonstans/tests | 8f1dd632301518f35ba120599ffa6daceafe47ea | 7d62fc4508e1fa829a91d6fcd40b7c062424f77f | refs/heads/master | 2020-03-11T03:49:58.382939 | 2018-12-03T12:46:04 | 2018-12-03T12:46:04 | 129,760,005 | 0 | 0 | null | 2018-04-16T14:52:10 | 2018-04-16T14:52:09 | null | UTF-8 | Java | false | false | 1,212 | java | /**********************************************************************
Copyright (c) 2016 Andy Jefferson and others. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Contributors:
...
**********************************************************************/
package org.jpox.samples.embedded;
import java.util.HashSet;
import java.util.Set;
/**
* Embedded 1-1 object, used by EmbeddedOwner2.
*/
public class EmbeddedObject2
{
String name;
Set<String> stringSet = new HashSet<>();
public EmbeddedObject2(String name)
{
this.name = name;
}
public Set<String> getStringSet()
{
return stringSet;
}
public String getName()
{
return name;
}
}
| [
"andy@datanucleus.org"
] | andy@datanucleus.org |
b0034dd74421a70bcbbda591def95ac5bd0356f8 | 00c3f68dc003a6dad0335db00f29d0d0dbe729bb | /eatGo/eatgo/eatgo-customer-api/src/main/java/kr/co/fastcampus/eatgo/interfaces/CategoryController.java | b017bd56cfd76c7852f61d506681ab895d1dc64a | [] | no_license | Lihess/SpringBoot | 5eb0175da54b424db69e0723f3efa1db1d588dcb | 291795c24b23bc880312befb601939e989be980f | refs/heads/master | 2023-01-28T10:04:00.575990 | 2020-02-09T17:13:11 | 2020-02-09T17:13:11 | 231,083,031 | 0 | 0 | null | 2023-01-07T23:05:56 | 2019-12-31T12:09:49 | Java | UTF-8 | Java | false | false | 594 | java | package kr.co.fastcampus.eatgo.interfaces;
import java.util.List;
import kr.co.fastcampus.eatgo.application.CategoryService;
import kr.co.fastcampus.eatgo.domain.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class CategoryController {
@Autowired
private CategoryService categoryService;
@GetMapping("/categories")
public List<Category> list() {
return categoryService.getCategories();
}
} | [
"she6569@gmail.com"
] | she6569@gmail.com |
23dd8c024789b7986c2e9813b5472d80ca3853c3 | 5501ef13e4cc6ff4778a216a7c3ce8ecc687263c | /See/app/src/main/java/com/example/see/adapter/BookHistoryAdapter.java | 252a290023ca5ab0e196aa4997358479e1f67444 | [] | no_license | liuxiaofeii/mm_ComicApp | 50dedcdb6038f84f433442fa66d26f31ba0f6f82 | bcee3e6d1b27c3848f956f942cd7f8169dd7bd64 | refs/heads/master | 2023-08-31T19:00:18.221167 | 2021-11-03T03:05:10 | 2021-11-03T03:05:10 | 424,052,587 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,694 | java | package com.example.see.adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import com.example.see.ChapterActivity;
import com.example.see.R;
import com.example.see.domain.Book;
import com.example.see.domain.Content;
import com.example.see.util.Consts;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.List;
public class BookHistoryAdapter extends ArrayAdapter<Book> {
private int resourceId;
private List<Book> books;
public BookHistoryAdapter(Context context, int textViewResourceId,
List<Book> objects) {
super(context, textViewResourceId, objects);
resourceId = textViewResourceId;
books=objects;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
Book book = getItem(position); // 获取当前项的Book实例
View view;
ViewHolder viewHolder;
if (convertView == null) {
view = LayoutInflater.from(getContext()).inflate(resourceId, parent, false);
viewHolder = new ViewHolder();
viewHolder.bookPhoto = (ImageView) view.findViewById (R.id.bookphoto1);
viewHolder.bookName = (TextView) view.findViewById (R.id.bookname1);
viewHolder.continueread=(Button)view.findViewById(R.id.continueread);
view.setTag(viewHolder); // 将ViewHolder存储在View中
} else {
view = convertView;
viewHolder = (ViewHolder) view.getTag(); // 重新获取ViewHolder
}
viewHolder.continueread.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Book book=books.get(position);
Content content=new Content();
content.setContentId(1);
content.setContentNo(book.getHistoryReadContentId());
content.setContentBookId(book.getBookId());
Intent intent=new Intent(v.getContext(), ChapterActivity.class);
intent.putExtra("content",content);
v.getContext().startActivity(intent);
}
});
try {
// URL url = new URL(Consts.PHOTO_BASE_URI+book.getBookPhoto());
// System.out.println(url.openStream().read());
// Bitmap bm = BitmapFactory.decodeStream(url.openStream());
//Bitmap bm=decodeBitmap(null,url.openStream());
viewHolder.bookPhoto.setImageBitmap(getBitmap(book.getBitmap()));
viewHolder.bookName.setText(book.getBookName()+"\n第"+book.getHistoryReadContentId()+"话");
} catch (Exception e){
e.printStackTrace();
}finally {
}
return view;
}
private byte[] inputStream2ByteArr(InputStream inputStream) throws IOException {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
byte[] buff = new byte[1024];
int len = 0;
while ( (len = inputStream.read(buff)) != -1) {
outputStream.write(buff, 0, len);
}
inputStream.close();
outputStream.close();
return outputStream.toByteArray();
}
private Bitmap decodeBitmap(String url, InputStream is) throws IOException {
if (is == null) {
return null;
}
BitmapFactory.Options options = new BitmapFactory.Options();
//设置该属性可以不占用内存,并且能够得到bitmap的宽高等属性,此时得到的bitmap是空
options.inJustDecodeBounds = true;
byte[] data = inputStream2ByteArr(is);//将InputStream转为byte数组,可以多次读取
Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, options);
//设置计算得到的压缩比例
options.inSampleSize = 4;
//设置为false,确保可以得到bitmap != null
options.inJustDecodeBounds = false;
bitmap = BitmapFactory.decodeByteArray(data, 0, data.length, options);
return bitmap;
}
class ViewHolder {
ImageView bookPhoto;
TextView bookName;
Button continueread;
}
public static Bitmap getBitmap(byte[] data){
return BitmapFactory.decodeByteArray(data, 0, data.length);//从字节数组解码位图
}
}
| [
"2923974948@qq.com"
] | 2923974948@qq.com |
30f5bc3d0c8bf3b60eefc1e5f302a11b6006913a | 0f9241dc01a4a2bacf9fd2bfd6dda27ce09a8e43 | /src/main/java/com/gamma/airlines/admin/customers/CustomersService.java | 297219f6c6ab2f5ba2ef867454013fd30732ef46 | [] | no_license | silver-ring/gamma-airlines | ea68f7c4b1085f6cb1916ae711006ec53b2e43e1 | 31b6dcb3f71de3de93fc849fb466508cbff8c08b | refs/heads/master | 2021-01-23T14:16:03.923603 | 2017-06-03T16:01:47 | 2017-06-03T16:01:47 | 93,249,444 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 827 | java | /*
* Cross Over trial project {@link www.crossover.com}
*/
package com.gamma.airlines.admin.customers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gamma.airlines.common.IService;
import com.gamma.airlines.common.domain.Customer;
/**
* Class CustomersService.
*
* @author Mohamed Morsy
* @version 1.0
*/
@Service
class CustomersService implements IService {
/** customer repository. */
@Autowired
private CustomersRepository customerRepository;
/**
* Find all customers.
*
* @return list
*/
List<CustomerModel> findAllCustomers() {
List<Customer> customers = customerRepository.findAll();
return CustomerModel.mapFromCustomers(customers);
}
}
| [
"hp@Mohamed_Morsy"
] | hp@Mohamed_Morsy |
f179743ec2a8c6c8ab42fef679d6f1a4acfafe11 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /plugins/maven/src/main/java/org/jetbrains/idea/maven/MavenVersionSupportUtil.java | f9aacb7b7be0b16f5759bcc93844cd4e15179c89 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Java | false | false | 1,593 | java | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.maven;
import com.intellij.ide.plugins.PluginManager;
import com.intellij.ide.plugins.PluginManagerCore;
import com.intellij.openapi.extensions.PluginId;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.text.StringUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.idea.maven.server.MavenDistribution;
import org.jetbrains.idea.maven.server.MavenDistributionsCache;
public final class MavenVersionSupportUtil {
public static final String MAVEN_2_PLUGIN_ID = "org.jetbrains.idea.maven.maven2-support";
public static @Nullable MavenVersionAwareSupportExtension getExtensionFor(MavenDistribution distribution) {
return MavenVersionAwareSupportExtension.MAVEN_VERSION_SUPPORT.findFirstSafe(
e -> e.isSupportedByExtension(distribution.getMavenHome().toFile()));
}
public static boolean isMaven2PluginInstalled() {
return PluginManager.isPluginInstalled(PluginId.getId(MAVEN_2_PLUGIN_ID));
}
public static boolean isMaven2PluginDisabled() {
return isMaven2PluginInstalled() && PluginManagerCore.isDisabled(PluginId.getId(MAVEN_2_PLUGIN_ID));
}
public static boolean isMaven2Used(@NotNull Project project) {
String version = MavenDistributionsCache.getInstance(project).getSettingsDistribution().getVersion();
if (version == null) return false;
return StringUtil.compareVersionNumbers(version, "3") < 0;
}
}
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
a2dc42274e9ef8e7daede268a1f02a29d3faee28 | 3047441c95cc8f35efa06a14d6f3376502fc7a6d | /Distance.java | a8ea4fc23c1d696df5f6f117e5c6e3c436ae343c | [] | no_license | avinashsinghrana/BridgeLab | a13050fdfa48fe54f6d4f07aed84997f08dee06c | 7c86b5c344efdf6cd2224c11e678792a69be932d | refs/heads/master | 2022-04-11T08:24:26.373376 | 2020-03-17T06:52:02 | 2020-03-17T06:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 477 | java | package BridgeLab;
/**
* Distance
*/
public class Distance {
public static void main(String[] args) {
// comandline argument
double x = Double.parseDouble(args[0]);
double y = Double.parseDouble(args[1]);
double distance = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2));
System.out.print("Euclidean distance from ("+ (int) x + ","+(int) y+ ") to the origin (0,0) is : ");
System.out.printf("%.2f",distance);
}
} | [
"noreply@github.com"
] | avinashsinghrana.noreply@github.com |
e0a2b926d330086055bf2d053999e14569a211f0 | 4f028edfb16955de1996243a6f275d8ac6171688 | /model/src/main/java/com/controller/UserController.java | ed915a12f2afe2ec21e2dacb8d879f007db6f24b | [] | no_license | zhishiqigit/app | 8ea89588bc05039f4b5ec0dbb7769a31775d212b | 2ca3430020baaf4b609207304a33ed9819bfd8ae | refs/heads/master | 2021-01-13T03:00:39.754318 | 2017-03-22T18:26:38 | 2017-03-22T18:26:38 | 77,065,196 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 894 | java | package com.controller;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
@RequestMapping("/user")
public class UserController {
@RequestMapping("/login")
public String login(HttpServletRequest request, HttpServletResponse response, HttpSession session) {
String user_name = request.getParameter("user_name");
String password = request.getParameter("password");
System.out.println(user_name + password);
Map<String, String> param = new HashMap<String, String>();
param.put("name", "郅士奇");
return "redirect:/mandate/mandateList";
}
}
| [
"2592023440@qq.com"
] | 2592023440@qq.com |
606e5ee349b0b255c93535d2bdafea34734ce11b | f9003ccb43573d089a3b9c6d9864cf26cc527cd5 | /multi-thread/src/main/java/com/leafyun/jim/volatileTest/ThreadDemoTest.java | e952e57f19bc209ef5786c035bde44f41594146d | [] | no_license | LinJim/multi-thread | 6b5a446edd09b4f5d45473bb92c312eaac04fd95 | 2d89a837743bc589ddcb1ef4b7754c3c9df577a9 | refs/heads/master | 2020-04-25T21:13:43.098185 | 2019-02-28T08:42:04 | 2019-02-28T08:42:04 | 173,074,144 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 508 | java | package com.leafyun.jim.volatileTest;
/**
* @author: JimLin
* @email: leafyunjim@gmail.com
* @description:
* @date: 2019-01-30
* @time: 21:34
*/
public class ThreadDemoTest {
public static void main(String[] args) throws InterruptedException {
ThreadDemo demo= new ThreadDemo();
demo.start();
Thread.sleep(3000);
demo.setRunning(false);
System.out.println("flag 修改为 false");
Thread.sleep(1000);
System.out.println(demo.flag);
}
}
| [
"lzhabc2016@163.com"
] | lzhabc2016@163.com |
829cfc4e4afad5534e6f1a43ba57c591a4aecf16 | 5dda5b69af474c36bf35518e119ea47d4a966df3 | /panda/src/main/java/com/kh17/panda/vo/OrderViewListVO.java | 9348256f7bc8390fd947066f8552ee6c3efd09f5 | [] | no_license | kjw0112m/panda | 57254d7be19ea8acda1efe67bfc0e4503ae96cee | ad00e1796003aea0a1dea8b971ab1dae99b9cf57 | refs/heads/master | 2022-12-02T10:32:57.741737 | 2019-09-22T11:20:31 | 2019-09-22T11:20:31 | 202,645,035 | 0 | 0 | null | 2022-11-16T12:37:59 | 2019-08-16T02:34:19 | Java | UTF-8 | Java | false | false | 339 | java | package com.kh17.panda.vo;
import java.util.ArrayList;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Builder @NoArgsConstructor @AllArgsConstructor @Data
public class OrderViewListVO {
List<OrderViewVO> search = new ArrayList<>();
}
| [
"kjw0112m@naver.com"
] | kjw0112m@naver.com |
01d485edd6e6b1396453bc8f4a7ba387b673f5e0 | 2df4793e4f113ad42629268b28d8f3287f906758 | /启发式搜索与演化算法/HESA_assignment1/src/ontology/avatar/MovingAvatar.java | 4ecf11b3f09b2b0a51da910d157434a266ef0fe1 | [
"GPL-3.0-or-later",
"MIT"
] | permissive | jocelyn2002/NJUAI_CodingHW | 7c692a08fb301f5cac146fef6da3f94d5043f2e9 | 002c5ecbad671b75059290065db73a7152c98db9 | refs/heads/main | 2023-04-29T06:25:46.607063 | 2021-05-25T02:45:58 | 2021-05-25T02:45:58 | 448,436,119 | 5 | 1 | MIT | 2022-01-16T02:06:27 | 2022-01-16T02:06:26 | null | UTF-8 | Java | false | false | 8,079 | java | package ontology.avatar;
import java.awt.Dimension;
import java.util.ArrayList;
import core.vgdl.VGDLSprite;
import core.competition.CompetitionParameters;
import core.content.SpriteContent;
import core.game.Game;
import core.player.Player;
import ontology.Types;
import ontology.Types.ACTIONS;
import tools.*;
/**
* Created with IntelliJ IDEA.
* User: Diego
* Date: 22/10/13
* Time: 18:04
* This is a Java port from Tom Schaul's VGDL - https://github.com/schaul/py-vgdl
*/
public class MovingAvatar extends VGDLSprite {
public ArrayList<Types.ACTIONS> actions;
public ArrayList<Types.ACTIONS> actionsNIL;
public Player player;
private int playerID;
private double score = 0.0;
private Types.WINNER winState = Types.WINNER.NO_WINNER;
/**
* Disqualified flag, moved from Game class to individual players,
* as there may be more than 1 in a game; variable still in Game
* class for single player games to keep back-compatibility
*/
protected boolean is_disqualified;
//Avatar can have any KeyHandler system. We use KeyInput by default.
private KeyHandler ki;
public Types.MOVEMENT lastMovementType = Types.MOVEMENT.STILL;
public MovingAvatar() {
}
public MovingAvatar(Vector2d position, Dimension size, SpriteContent cnt) {
//Init the sprite
this.init(position, size);
//Specific class default parameter values.
loadDefaults();
//Parse the arguments.
this.parseParameters(cnt);
}
protected void loadDefaults() {
super.loadDefaults();
actions = new ArrayList<Types.ACTIONS>();
actionsNIL = new ArrayList<Types.ACTIONS>();
color = Types.WHITE;
speed = 1;
is_avatar = true;
is_disqualified = false;
}
public void postProcess() {
//Define actions here first.
if(actions.size()==0)
{
actions.add(Types.ACTIONS.ACTION_LEFT);
actions.add(Types.ACTIONS.ACTION_RIGHT);
actions.add(Types.ACTIONS.ACTION_DOWN);
actions.add(Types.ACTIONS.ACTION_UP);
}
super.postProcess();
//A separate array with the same actions, plus NIL.
for(Types.ACTIONS act : actions)
{
actionsNIL.add(act);
}
actionsNIL.add(Types.ACTIONS.ACTION_NIL);
}
/**
* This update call is for the game tick() loop.
* @param game current state of the game.
*/
public void updateAvatar(Game game, boolean requestInput, boolean[] actionMask) {
lastMovementType = Types.MOVEMENT.STILL;
Direction action;
if (requestInput || actionMask == null) {
//Sets the input mask for this cycle.
ki.setMask(getPlayerID());
//Get the input from the player.
requestPlayerInput(game);
//Map from the action mask to a Vector2D action.
action = Utils.processMovementActionKeys(ki.getMask(), getPlayerID());
} else {
action = Utils.processMovementActionKeys(actionMask, getPlayerID());
}
//Apply the physical movement.
applyMovement(game, action);
}
public void applyMovement(Game game, Direction action)
{
//this.physics.passiveMovement(this);
if (physicstype != Types.GRID)
super.updatePassive();
lastMovementType = this.physics.activeMovement(this, action, speed);
}
/**
* Requests the controller's input, setting the game.ki.action mask with the processed data.
* @param game
*/
protected void requestPlayerInput(Game game) {
ElapsedCpuTimer ect = new ElapsedCpuTimer();
ect.setMaxTimeMillis(CompetitionParameters.ACTION_TIME);
Types.ACTIONS action;
if (game.no_players > 1) {
action = this.player.act(game.getObservationMulti(playerID), ect.copy());
} else {
action = this.player.act(game.getObservation(), ect.copy());
}
if(action == null){
action = ACTIONS.ACTION_NIL;
}
if (CompetitionParameters.TIME_CONSTRAINED && ect.exceededMaxTime()) {
long exceeded = -ect.remainingTimeMillis();
if (ect.elapsedMillis() > CompetitionParameters.ACTION_TIME_DISQ) {
//The agent took too long to replay. The game is over and the agent is disqualified
System.out.println("Too long: " + playerID + "(exceeding " + (exceeded) + "ms): controller disqualified.");
game.disqualify(playerID);
} else {
System.out.println("Overspent: " + playerID + "(exceeding " + (exceeded) + "ms): applying ACTION_NIL.");
}
action = Types.ACTIONS.ACTION_NIL;
}
if (action.equals(Types.ACTIONS.ACTION_ESCAPE)) {
game.abort();
} else if (!actions.contains(action)) {
action = Types.ACTIONS.ACTION_NIL;
}
this.player.logAction(action);
game.setAvatarLastAction(action, getPlayerID());
ki.reset(getPlayerID());
ki.setAction(action, getPlayerID());
}
public void updateUse(Game game)
{
//Nothing to do by default.
}
/**
* Gets the key handler of this avatar.
* @return - KeyHandler object.
*/
public KeyHandler getKeyHandler() { return ki; }
/**
* Sets the key handler of this avatar.
* @param k - new KeyHandler object.
*/
public void setKeyHandler(KeyHandler k) {
if (k instanceof KeyInput)
ki = new KeyInput();
else ki = k;
}
/**
* Checks whether this player is disqualified.
* @return true if disqualified, false otherwise.
*/
public boolean is_disqualified() {
return is_disqualified;
}
/**
* Sets the disqualified flag.
*/
public void disqualify(boolean is_disqualified) { this.is_disqualified = is_disqualified; }
/**
* Gets the score of this player.
* @return score.
*/
public double getScore() { return score; }
/**
* Sets the score of this player to a new value.
* @param s - new score.
*/
public void setScore(double s) { score = s; }
/**
* Adds a value to the current score of this player.
* @param s - value to add to the score.
*/
public void addScore (double s) { score += s; }
/**
* Gets the win state of this player.
* @return - win state, value of Types.WINNER
*/
public Types.WINNER getWinState() { return winState; }
/**
* Sets the win state of this player.
* @param w - new win state.
*/
public void setWinState(Types.WINNER w) { winState = w; }
/**
* Get this player's ID.
* @return player ID.
*/
public int getPlayerID() {
return playerID;
}
/**
* Set this player's ID to a new value.
* @param id - new player ID.
*/
public void setPlayerID(int id) {
playerID = id;
}
public VGDLSprite copy() {
MovingAvatar newSprite = new MovingAvatar();
this.copyTo(newSprite);
//copy player
try {
newSprite.player = player;
} catch (Exception e) {e.printStackTrace();}
return newSprite;
}
public void copyTo(VGDLSprite target) {
MovingAvatar targetSprite = (MovingAvatar) target;
targetSprite.actions = new ArrayList<Types.ACTIONS>();
targetSprite.actionsNIL = new ArrayList<Types.ACTIONS>();
targetSprite.playerID = this.playerID;
targetSprite.winState = this.winState;
targetSprite.score = this.score;
//copy key handler
targetSprite.setKeyHandler(this.getKeyHandler());
// need to copy orientation here already because MovingAvatar.postProcess() requires the orientation
targetSprite.orientation = this.orientation.copy();
targetSprite.postProcess();
super.copyTo(targetSprite);
}
}
| [
"dinghao12601@126.com"
] | dinghao12601@126.com |
dc03ba8072c70666d0e96c195efef1446c35fc13 | 09f8de9f72135cfb6f44d598a6bdd742e3b21112 | /member/src/main/java/com/himoko/member/service/impl/UserServiceImpl.java | e41bc147eb895931bb98366c97ca306ad80b6901 | [] | no_license | Himoko/water | 141d64a5e642ea70aae8415414d534a74e1afed6 | 1b2a4407b57dd0f8b3919c08d208fed4dce63215 | refs/heads/master | 2022-12-13T23:06:13.744296 | 2019-11-20T08:39:08 | 2019-11-20T08:39:08 | 218,920,171 | 1 | 0 | null | 2022-12-11T13:48:15 | 2019-11-01T05:39:02 | JavaScript | UTF-8 | Java | false | false | 602 | java | package com.himoko.member.service.impl;
import com.himoko.member.dao.UserDao;
import com.himoko.member.pojo.User;
import com.himoko.member.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* @version 1.0
* @description:
* @author: peng.zhang11@ucarinc.com
* @create: 2019-11-01 14:11
*/
@Service
public class UserServiceImpl implements UserService {
@Autowired
private UserDao userDao;
@Override
public List<User> getUser() {
return userDao.getUser();
}
}
| [
"peng.zhang11@ucarinc.com"
] | peng.zhang11@ucarinc.com |
cc9ed5f6cd59fe84c95f8093e449a891000b6389 | fcb38c7e312147676b916720fdb3f53b8ac6d61f | /src/main/java/com/gusnot/cloudstock/service/dto/package-info.java | 01684ca9cfe6c253a2d56f65987a7770962f7dc2 | [] | no_license | gusnot/cloudstock | eafba78638f054037d895ed63d43aaf23485ac70 | 095634d1b5b274af61a19a5d4eeeb45243783ff0 | refs/heads/master | 2021-06-07T07:30:54.828985 | 2017-03-21T09:06:54 | 2017-03-21T09:06:54 | 29,481,114 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 77 | java | /**
* Data Transfer Objects.
*/
package com.gusnot.cloudstock.service.dto;
| [
"naphat.wetayaphong@allianz.com"
] | naphat.wetayaphong@allianz.com |
6e4076d358ef3f0c1b8022dfd9df73844c5d6603 | 66d3828c62dfee0f40b02297331d1ed49e188f6c | /TankWar1.7/src/TankClient.java | 7ad1c3f9496e0199ffa42d5498753c8ca97b60ca | [] | no_license | macwu1992/java_workspace | cc241f72564eb362e38435234592e16ecb7052cd | cb14163996a413737c2854ee0febe5a900909dae | refs/heads/master | 2021-01-15T12:41:26.996081 | 2015-12-24T03:06:22 | 2015-12-24T03:06:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,456 | java | //此版本增加功能:
//使代表坦克的圆相应上下左右键
import java.awt.*;
import java.awt.List;
import java.util.*;
import java.awt.event.*;
public class TankClient extends Frame{
int x = 50;
int y = 50;
Image offScreenImage = null;
public static final int GAME_WIDTH = 800;
public static final int GAME_HEIGHT = 600;
Tank tank = new Tank(x, y, true, this);
//Tank enemyTank = new Tank(x+x, y+y, false, this);
ArrayList<Tank> tanks = new ArrayList<Tank> ();
ArrayList<Missile> missiles = new ArrayList<Missile> ();
public void paint(Graphics g) {
g.drawString("Missiles count:"+missiles.size(), 10, 50);
g.drawString("EnemyTanks count:"+tanks.size(), 10, 30);
tank.draw(g);
for(int k = 0; k<tanks.size(); k++){
Tank t = tanks.get(k);
if(!t.isLive) tanks.remove(t);
if(t.isLive) t.draw(g);
}
for(int i=0; i<missiles.size();i++){
Missile m = missiles.get(i);
m.hitTanks(tanks);
if(!m.isMissileLive()) missiles.remove(m);
m.draw(g);
}
}
public void update(Graphics g) {
if(offScreenImage == null){
offScreenImage = this.createImage(GAME_WIDTH, GAME_HEIGHT);
}
Graphics goffScreen = offScreenImage.getGraphics();
Color c = goffScreen.getColor();
goffScreen.setColor(Color.GREEN);
goffScreen.fillRect(0, 0, GAME_WIDTH, GAME_HEIGHT);
goffScreen.setColor(c);
paint(goffScreen);
g.drawImage(offScreenImage ,0 ,0 ,null);
}
public void lauchFrame(){
for(int i = 0; i<5; i++){
tanks.add(new Tank(x+(i+1)*x, y, false, this));
}
this.setLocation(400, 300);
this.setSize(GAME_WIDTH, GAME_HEIGHT);
this.setTitle("TankWar");
this.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
this.setBackground(Color.GREEN);
this.setResizable(false);
this.addKeyListener(new KeyMonitor());
setVisible(true);
new Thread(new PaintThread()).start();
}
public static void main(String[] args) {
TankClient tc = new TankClient();
tc.lauchFrame();
}
private class PaintThread implements Runnable{
public void run(){
while(true){
repaint();
try{
Thread.sleep(100);
}catch(InterruptedException e){
e.printStackTrace();
}
}
}
}
private class KeyMonitor extends KeyAdapter{
public void keyPressed(KeyEvent e){
tank.keyPressed(e);
}
public void keyReleased(KeyEvent e) {
tank.keyReleased(e);
}
}
}
| [
"Tong@macbookpro-wu.local"
] | Tong@macbookpro-wu.local |
136478cfd3a41cd629609bc652f81ae43f0c63e9 | ce8379ba7e71d91578ebf930ba95b8dd0b196746 | /jooby/src/main/java/io/jooby/annotation/PathParam.java | 0e039efde50211efd334387312dba08cbdfe6782 | [
"Apache-2.0"
] | permissive | jooby-project/jooby | 965e927574f829c7e55447961f4ffaa71a4bec86 | 4b613504eb6c265856b2aa6035d26827eef33f00 | refs/heads/3.x | 2023-09-03T05:21:03.310467 | 2023-08-28T17:30:40 | 2023-08-28T17:30:40 | 25,446,835 | 1,799 | 311 | Apache-2.0 | 2023-09-12T17:14:23 | 2014-10-20T02:03:16 | Java | UTF-8 | Java | false | false | 736 | java | /*
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Allow access to path variable from MVC route method.
*
* <pre>{@code
* @Path("/:id")
* public String findById(@PathParam String id) {
* ...
* }
* }</pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
public @interface PathParam {
/**
* Path pattern. Default <code>/</code>.
*
* @return Path pattern. Default <code>/</code>.
*/
String value() default "";
}
| [
"espina.edgar@gmail.com"
] | espina.edgar@gmail.com |
623774888904c39379dd37cc5399edef0fa8df7f | ec7c034fee047527b623f019db1fe2d13a03208e | /src/main/java/com/mycorp/app/Config.java | 884d7cedb82437c9fe4895ee034d4a2fc7398add | [] | no_license | StrangeSparrow/FirstRep | 1b1fb148858e093d0287e689301ac008df911014 | 2c4fcad2336a2c4182490d2f236d0298c5da2aec | refs/heads/master | 2023-01-29T05:38:53.041726 | 2020-12-07T15:45:38 | 2020-12-07T15:45:38 | 306,405,803 | 0 | 0 | null | 2020-12-09T22:42:45 | 2020-10-22T17:05:27 | Java | UTF-8 | Java | false | false | 2,998 | java | package com.mycorp.app;
import org.apache.log4j.Logger;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Config {
private final Map<String, String> loadedParams = new HashMap<>();
private static final Config Instance = new Config();
private final static Logger logger = Logger.getLogger(Config.class);
public enum Parameters {
PAGE_SIZE("news.page_size"),
ONLY_HEADERS("news.list.only_headers"),
NEWS_FILENAME("news.file_name"),
LOCAL_NEWS_FILENAME("news.local_file_name"),
DB_NAME("db.name"),
DB_PASS("db.password"),
DB_URL("db.url"),
DB_MIGRATION("db.migration_prop"),
APP_SOURCE("app.data_source");
private final String param;
Parameters (String param) {
this.param = param;
}
String getParam () { return param; }
}
private Config() {}
public static Config getInstance() {
return Instance;
}
public String getDBName() {
return getParam(Parameters.DB_NAME.getParam());
}
public String getDBMigration() {
return getParam(Parameters.DB_MIGRATION.getParam());
}
public String getSource() { return getParam(Parameters.APP_SOURCE.getParam()); }
public String getDBPass() {
return getParam(Parameters.DB_PASS.getParam());
}
public String getDBURL() {
return getParam(Parameters.DB_URL.getParam());
}
public String getNewsFileName() {
return getParam(Parameters.NEWS_FILENAME.getParam());
}
public String getLocalNewsFileName() {
return getParam(Parameters.LOCAL_NEWS_FILENAME.getParam());
}
public int getPageSize() {
String result = getParam(Parameters.PAGE_SIZE.getParam());
if (result == null || ! result.matches("^\\d+$"))
return -1;
return Integer.parseInt(result);
}
public boolean isOnlyHeaders() {
String result = getParam(Parameters.ONLY_HEADERS.getParam());
return result != null && result.equals("true");
}
private String getParam(String param) {
if (loadedParams.containsKey(param))
return loadedParams.get(param);
String result = null;
try (Scanner scanner = new Scanner(Thread.currentThread().getContextClassLoader().getResourceAsStream("application.properties"))) {
Pattern pattern = Pattern.compile("^" + param + ".\\S*");
Matcher matcher;
while (scanner.hasNext()) {
matcher = pattern.matcher(scanner.nextLine());
if (matcher.find()) {
result = matcher.group().replace(param + "=", "");
loadedParams.put(param, result);
return result;
}
}
} catch (Exception e) {
logger.error(e);
}
return result;
}
}
| [
"73070412+StrangeSparrow@users.noreply.github.com"
] | 73070412+StrangeSparrow@users.noreply.github.com |
e544864cbdb61cf3679ba472f21b726e9426ad7f | 372be34363c267bc09f11f7c560217592a35dc16 | /PlusServerKHProject/healthMe/src/com/healthme/admin/controller/AdminMemberUpateSelServlet.java | 949dbc768cde243b520dfaff95471591b8f31db1 | [] | no_license | gokuorzzl/KHProject | 4d1e043f5aafc8e452f973e32fc8a2288b99cf88 | a9f2e9546e35962ecd708536034bc71332a3de64 | refs/heads/master | 2020-03-29T04:54:26.384085 | 2018-11-07T10:01:17 | 2018-11-07T10:01:17 | 149,554,706 | 1 | 5 | null | 2018-10-21T11:08:58 | 2018-09-20T05:11:54 | CSS | UTF-8 | Java | false | false | 2,076 | java | package com.healthme.admin.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.healthme.admin.model.service.AdminService;
import com.healthme.member.vo.Member;
/**
* Servlet implementation class AdminMemberUpateSelServlet
관리자페이지에서 수정을 하면 수정을 선택한 곳으로 화면이 이동한다.
*/
@WebServlet(name = "AdminMemberUpateSel", urlPatterns = { "/adminMemberUpateSel.do" })
public class AdminMemberUpateSelServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
/**
* @see HttpServlet#HttpServlet()
*/
public AdminMemberUpateSelServlet() {
super();
// TODO Auto-generated constructor stub
}
/**
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
*/
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//1. 인코딩
request.setCharacterEncoding("utf-8");
//2. view에서 전송한 데이터를 변수에 저장
String memberId = request.getParameter("memberId");//완료
//3. 비즈니스 로직 처리
Member m = new AdminService().adminMemberUpdateSel(memberId);
//4. 결과 리턴
if(m != null) {
RequestDispatcher view = request.getRequestDispatcher("page/admin/adminMembermodify.jsp");
request.setAttribute("adminMembermodify", m);
view.forward(request, response);
}else {
response.sendRedirect("/page/admin/error.jsp");
}
}
/**
* @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doGet(request, response);
}
}
| [
"jg555@naver.com"
] | jg555@naver.com |
805d300c75376bdb2c96d034eca37c3ea4d5b3a1 | bea4bdd8590e351b6393626fa9a493d6c04e6beb | /swf-db/src/main/java/com/venky/swf/sql/parser/XMLExpressionParser.java | 46908573f9d97cb19649a2687b51d1c170650e43 | [
"MIT"
] | permissive | Open-Succinct-Community/swf-all | 77c78efd6a94fefdde0dcaf308bf741cac3c4792 | 8f9f61648f34966453a140c28c44afe358fdfdb3 | refs/heads/master | 2023-07-25T05:01:29.331624 | 2023-07-14T12:48:47 | 2023-07-14T12:48:47 | 2,557,048 | 1 | 0 | MIT | 2023-02-22T07:14:22 | 2011-10-11T17:55:04 | Java | UTF-8 | Java | false | false | 3,241 | java | package com.venky.swf.sql.parser;
import java.io.InputStream;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import com.venky.core.string.StringUtil;
import com.venky.swf.db.Database;
import com.venky.swf.db.model.Model;
import com.venky.swf.db.table.BindVariable;
import com.venky.swf.db.table.Table;
import com.venky.swf.sql.Conjunction;
import com.venky.swf.sql.Expression;
import com.venky.swf.sql.Operator;
import com.venky.xml.XMLDocument;
import com.venky.xml.XMLElement;
public class XMLExpressionParser {
Table<? extends Model> table = null;
public XMLExpressionParser(Class<? extends Model> modelClass){
table = Database.getTable(modelClass);
}
public Expression parse(InputStream is) {
return parse(StringUtil.read(is));
}
public Expression parse(String input){
XMLDocument docExpression = XMLDocument.getDocumentFor(input);
return parse(docExpression.getDocumentRoot());
}
public Expression parse(XMLElement elem) {
Expression e = null;
if (elem.getNodeName().equals(Conjunction.AND.toString()) || elem.getNodeName().equals(Conjunction.OR.toString())){
if (elem.getNodeName().equals(Conjunction.AND.toString())){
e = new Expression(table.getReflector().getPool(),Conjunction.AND);
}else {
e = new Expression(table.getReflector().getPool(),Conjunction.OR);
}
for (Iterator<XMLElement> childIter = elem.getChildElements() ; childIter.hasNext() ;){
XMLElement child = childIter.next();
e.add(parse(child));
}
}else {
XMLElement columnName = elem.getChildElement("ColumnName");
int columnType = table.getColumnDescriptor(columnName.getNodeValue()).getJDBCType();
List<BindVariable> bvalues = new ArrayList<BindVariable>();
Operator op = getOperator(elem.getNodeName());
if (op.isMultiValued()){
XMLElement values = elem.getChildElement("Values");
for (Iterator<XMLElement> valueIter = values.getChildElements() ; valueIter.hasNext() ; ){
addBindVariable(bvalues, columnType, valueIter.next());
}
}else{
XMLElement eValue = elem.getChildElement("Value");
addBindVariable(bvalues, columnType, eValue);
}
e = new Expression(table.getReflector().getPool(),columnName.getNodeValue(),op,bvalues.toArray());
}
return e;
}
public Operator getOperator(String s){
if (s.equals("EQ")){
return Operator.EQ;
}else if (s.equals("GE")){
return Operator.GE;
}else if (s.equals("GT")){
return Operator.GT;
}else if (s.equals("IN")){
return Operator.IN;
}else if (s.equals("LE")){
return Operator.LE;
}else if (s.equals("LK")){
return Operator.LK;
}else if (s.equals("LT")){
return Operator.LT;
}else if (s.equals("NE")){
return Operator.NE;
}else {
throw new UnsupportedOperationException(s);
}
}
private void addBindVariable(List<BindVariable> bValues,int columnType , XMLElement eValue) {
String sValue = eValue.getNodeValue();
Object value = sValue;
if (columnType != Types.VARCHAR){
value = Database.getJdbcTypeHelper(table.getReflector().getPool()).getTypeRef(columnType).getTypeConverter().valueOf(sValue);
}
bValues.add(new BindVariable(table.getReflector().getPool(),value,columnType));
}
}
| [
"venkatramnm@gmail.com"
] | venkatramnm@gmail.com |
804148d187c5f574f80a3cbba3b3abe06a82a23f | fe25a53600944e0170b003527c8abd1229a98545 | /BFS & UCS Search/Search.java | 2f709e2d4efa84d271badfcdd731173ea6aa108b | [] | no_license | pricejr3/Java | 05a26c342b40de059b6d5c744fbe8024fcee2f33 | 6a3a206292f11dc75a24b798365e3809e65cf1dd | refs/heads/master | 2021-01-23T14:45:16.739090 | 2017-06-03T17:06:58 | 2017-06-03T17:06:58 | 93,259,669 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 7,310 | java | /**
* Jarred Price
*
* Implementation of BFS and UCS for various map states.
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Vector;
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Scanner;
public class Search {
// The Uniform Cost Search variable.
public static double ucsCost;
// The Scanner object.
public static Scanner input = null;
// The board to represent the environment.
public static Node[][] board;
// The starting Node.
public static Node origin;
// Number of rows.
public static int boardRows;
// Number of columns.
public static int boardCols;
// Holds the "pieces" of the board.
public static char[][] boardPiece;
// Other "stuff".
public static int baseFactor;
public static String baseString = "";
public static int numberEnvelopes = 0;
public static String directionString = "";
public static String searchType = "BFS";
public static int OriginXPos;
public static int OriginYPos;
public static void main(String[] args) throws FileNotFoundException {
input = new Scanner(System.in);
System.out.println("Please type in a filename: ");
String filename = input.nextLine();
readInFile(filename);
ucsCost = 0.0;
Comparator<Node> breadthComparator = new Node.BFSComparator();
PriorityQueue<Node> breadthPQ = new PriorityQueue<Node>(50, breadthComparator);
breadthPQ.add(new Node(OriginXPos, OriginYPos, 0.0));
bfsUCSpath(breadthPQ);
System.out.println(directionString);
System.out.println("Number of movements for BFS: " + directionString.length());
Comparator<Node> uniformCostComparator = new Node.UCSComparator();
PriorityQueue<Node> uniformCostPQ = new PriorityQueue<Node>(5, uniformCostComparator);
uniformCostPQ.add(new Node(OriginXPos, OriginYPos, 0.0));
bfsUCSpath(uniformCostPQ);
System.out.println(directionString);
System.out.println("UCS COST: " + ucsCost);
}
public static void readInFile(String string) throws FileNotFoundException {
// Read in the file.
Scanner input;
input = new Scanner(new File(string));
// Read in the rows and columns.
boardRows = input.nextInt();
boardCols = input.nextInt();
// Make the board with the rows and columns.
board = new Node[boardRows][boardCols];
// Acquire the origin position.
OriginXPos = input.nextInt();
OriginYPos = input.nextInt();
// Make a new Node of the origin
origin = new Node(OriginXPos, OriginYPos, 0);
input.nextLine();
// Read in the pieces of the board.
boardPiece = new char[boardRows][boardCols];
for (int i = boardRows - 1; i >= 0; i--) {
String charString = input.nextLine();
for (int j = 0; j < boardCols; j++) {
boardPiece[i][j] = charString.charAt(j);
}
}
// Read in the locations where envelopes lay
// and mark the board accordingly.
int envelope = 0;
for (int i = boardRows - 1; i >= 0; i--) {
for (int j = 0; j < boardCols; j++) {
double doubleValue = input.nextDouble();
board[i][j] = new Node(i, j, doubleValue);
if (boardPiece[i][j] == 'X') {
board[i][j].envelopes.add(envelope);
origin.envelopes.add(envelope);
envelope++;
}
}
}
// Close the scanner.
input.close();
}
/**
* Acquires children by comparing areas on the map and
* determining where envelopes lay.
*
* @param base The base node.
* @return nodeChild the children of the base node.
*/
public static Vector<Node> expand(Node base, Vector<Node> listOfNodes) {
Vector<Node> nodeChild = new Vector<Node>();
if (base.col > 0) {
Vector<Integer> currEnvelopes = new Vector<Integer>();
currEnvelopes.addAll(base.envelopes);
for (int i = 0; i < board[base.row][base.col - 1].envelopes.size(); i++) {
if (!currEnvelopes
.contains(board[base.row][base.col - 1].envelopes
.get(i))) {
currEnvelopes.add(board[base.row][base.col - 1].envelopes
.get(i));
}
}
Node temp = new Node(base.row, base.col - 1, base.cost
+ board[base.row][base.col - 1].cost, base.depth + 1,
base.directions + "W", currEnvelopes);
if (!listOfNodes.contains(temp)) {
nodeChild.addElement(temp);
}
}
if (base.row < boardRows - 1) {
baseFactor = 1;
baseString = "N";
Vector<Integer> currEnvelopes = new Vector<Integer>();
currEnvelopes.addAll(base.envelopes);
for (int i = 0; i < board[base.row + baseFactor][base.col].envelopes
.size(); i++) {
if (!currEnvelopes
.contains(board[base.row + baseFactor][base.col].envelopes
.get(i))) {
currEnvelopes
.add(board[base.row + baseFactor][base.col].envelopes
.get(i));
}
}
Node temp = new Node(base.row + baseFactor, base.col, base.cost
+ board[base.row + baseFactor][base.col].cost,
base.depth + 1, base.directions + baseString, currEnvelopes);
if (!listOfNodes.contains(temp)) {
nodeChild.addElement(temp);
}
}
if (base.row > 0) {
Vector<Integer> currEnvelopes = new Vector<Integer>();
currEnvelopes.addAll(base.envelopes);
for (int i = 0; i < board[base.row - 1][base.col].envelopes.size(); i++) {
if (!currEnvelopes
.contains(board[base.row - 1][base.col].envelopes
.get(i))) {
currEnvelopes.add(board[base.row - 1][base.col].envelopes
.get(i));
}
}
Node temp = new Node(base.row - 1, base.col, base.cost
+ board[base.row - 1][base.col].cost, base.depth + 1,
base.directions + "S", currEnvelopes);
if (!listOfNodes.contains(temp)) {
nodeChild.addElement(temp);
}
}
if (base.col < boardCols - 1) {
Vector<Integer> currEnvelopes = new Vector<Integer>();
currEnvelopes.addAll(base.envelopes);
for (int i = 0; i < board[base.row][base.col + 1].envelopes.size(); i++) {
if (!currEnvelopes
.contains(board[base.row][base.col + 1].envelopes
.get(i))) {
currEnvelopes.add(board[base.row][base.col + 1].envelopes
.get(i));
}
}
Node temp = new Node(base.row, base.col + 1, base.cost
+ board[base.row][base.col + 1].cost,
base.depth + 1, base.directions + "E", currEnvelopes);
if (!listOfNodes.contains(temp)) {
nodeChild.addElement(temp);
}
}
return nodeChild;
}
/**
* Determines the cost of the BFS and UCS traversals.
*
* @param pq The PriorityQueue value.
* @return true if age is legal
*/
public static void bfsUCSpath(PriorityQueue<Node> pq) {
Vector<Node> listOfNodes = new Vector<Node>();
boolean collectedAllEnvelopes = false;
do {
Node thisNode = pq.poll();
boolean same = true;
if(searchType == "BFS"){
if(thisNode.col != origin.col){
same = false;
}
if(thisNode.row != origin.row){
same = false;
}
if(thisNode.envelopes.size() != origin.envelopes.size()){
same = false;
}
}
if (!same) {
same = true;
if (thisNode.envelopes.size() == origin.envelopes.size()
&& !collectedAllEnvelopes) {
collectedAllEnvelopes = true;
pq.clear();
}
listOfNodes.add(thisNode);
pq.addAll(expand(thisNode, listOfNodes));
} else {
ucsCost = thisNode.cost;
directionString = thisNode.directions;
break;
}
} while (pq.size() != 0);
{
}
}
}
| [
"pricejr3@miamioh.edu"
] | pricejr3@miamioh.edu |
98edbbb447442f1ae339af55e6a70cb64bb68261 | 1de34114e3b6f71b1f190620cc834a12612a815c | /squic-lib/src/main/java/org/soframel/squic/quiz/question/initializable/calculation/IntWithDivisors.java | 7b9d7533417b1caf6a55d84d4b68a7d917359841 | [] | no_license | soframel/squic | ca22a967adcd4db6bbdb20f3263d24c20fc4d0ec | 15ebc7650e3b6e6b1c2151eeb806997e5c03c834 | refs/heads/master | 2016-09-09T17:49:06.989584 | 2013-10-20T19:10:28 | 2013-10-20T19:10:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 498 | java | package org.soframel.squic.quiz.question.initializable.calculation;
import java.util.List;
public class IntWithDivisors {
private int n;
private List<Integer> divisors;
public IntWithDivisors(int n, List<Integer> divisors){
this.n=n;
this.divisors=divisors;
}
public int getN() {
return n;
}
public void setN(int n) {
this.n = n;
}
public List<Integer> getDivisors() {
return divisors;
}
public void setDivisors(List<Integer> divisors) {
this.divisors = divisors;
}
}
| [
"sophie@massen-ramel.net"
] | sophie@massen-ramel.net |
58c2d4ecdc50adf8543e67d67ea60dd833c00078 | 6f83ab309b73ecf70ed31d0551284cb126ce42ce | /app/src/main/java/com/example/bakingconversionapp/ImperialToImperial.java | 0a8ba65064fcbb6b70ee41b1f2067bfe2edb1eda | [] | no_license | AWang-9/BakingConversionApp | 9dc8d03b72c33f9e36340deb9c57a3d89b010e17 | 97fac0741263f48c507b1d97282ba73885a3ba21 | refs/heads/master | 2022-11-14T15:30:42.471360 | 2020-07-10T15:57:04 | 2020-07-10T15:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 12,149 | java | package com.example.bakingconversionapp;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Spinner;
import android.widget.TextView;
public class ImperialToImperial extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_imperial_to_imperial);
Spinner chooseOption = findViewById(R.id.itoiSelectConvertType);
chooseOption.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(){
@Override
public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
if(arg2 == 1)
{
Intent intent = new Intent(getApplicationContext(), MainActivity.class);
startActivity(intent);
}
else if(arg2 == 2)
{
Intent intent = new Intent(getApplicationContext(), ImperialtoMetric.class);
startActivity(intent);
}
}
@Override
public void onNothingSelected(AdapterView<?> arg0) {
}
});
}
public void ChooseSelection(View view)
{
Spinner inputMeasurement = findViewById(R.id.iToiUnits);
String inputMeasurementType = inputMeasurement.getSelectedItem().toString();
TextView input = (TextView) findViewById(R.id.iToiInput);
String inputVal = input.getText().toString();
if(!inputVal.equals(""))
{
Double amount = Double.parseDouble(inputVal);
switch(inputMeasurementType)
{
case "cups":
convertFromCups(view, amount);
break;
case "tablespoons":
convertFromTblspns(view, amount);
break;
case "teaspoons":
convertFromTspns(view, amount);
break;
default:
TextView textView = (TextView) findViewById(R.id.ItoMoutput);
textView.setText("");
textView.append("You've selected something else, it has no functionality yet");
textView.setVisibility(View.VISIBLE);
break;
}
}
}
@SuppressLint("DefaultLocale")
public void convertFromCups(View view, double amount)
{
int numCups = (int)(amount / 1);
double leftOver = amount % 1;
int numHalfCups = (int)(leftOver / 0.5);
leftOver %= 0.5;
int numThirdCups = (int)(leftOver / 0.33);
leftOver %= 0.33;
int numQuarterCups = (int)(leftOver / 0.25);
leftOver %= 0.25;
int numTblspns = (int)(leftOver / 0.0625);
leftOver %= 0.0625;
int numTspns = (int)(leftOver / 0.0208);
leftOver %= 0.0208;
int numHalfTspns = (int)(leftOver / 0.010412);
leftOver %= 0.010412;
double numQuarterTspns = leftOver / 0.00521;
leftOver %= 0.00521;
TextView textView = (TextView) findViewById(R.id.itoiOutput);
textView.setText("");
if(numCups != 0)
{
if(numCups == 1)
{
textView.append(numCups + " cup\n");
}
else
{
textView.append(numCups + " cups\n");
}
}
if(numHalfCups != 0)
{
if(numHalfCups == 1)
{
textView.append(numHalfCups + " half cup\n");
}
else
{
textView.append(numHalfCups + " half cups\n");
}
}
if(numThirdCups != 0)
{
if(numThirdCups == 1)
{
textView.append(numThirdCups + " third cup\n");
}
else
{
textView.append(numThirdCups + " third cups\n");
}
}
if(numQuarterCups != 0)
{
if(numQuarterCups == 1)
{
textView.append(numQuarterCups + " quarter cup\n");
}
else
{
textView.append(numQuarterCups + " quarter cups\n");
}
}
if(numTblspns != 0)
{
if(numTblspns == 1)
{
textView.append(numTblspns + " tablespoon\n");
}
else
{
textView.append(numTblspns + " tablespoons\n");
}
}
if(numTspns != 0)
{
if(numTspns == 1)
{
textView.append(numTspns + " teaspoon\n");
}
else
{
textView.append(numTspns + " teaspoons\n");
}
}
if(numHalfTspns != 0)
{
if(numHalfTspns == 1)
{
textView.append(numHalfTspns + " half teaspoon\n");
}
else
{
textView.append(numHalfTspns + " half teaspoons\n");
}
}
if(numQuarterTspns != 0)
{
if(numQuarterTspns == 1)
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoon\n");
}
else
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoons\n");
}
}
textView.setVisibility(View.VISIBLE);
}
@SuppressLint("DefaultLocale")
public void convertFromTblspns(View view, double amount)
{
int numCups = (int)(amount / 16);
double leftOver = amount % 16;
int numHalfCups = (int)(leftOver / 32);
leftOver %= 32;
int numThirdCups = (int)(leftOver / 48);
leftOver %= 48;
int numQuarterCups = (int)(leftOver / 64);
leftOver %= 64;
int numTblspns = (int)(leftOver / 1);
leftOver %= 1;
int numTspns = (int)(leftOver / 0.33);
leftOver %= 0.33;
int numHalfTspns = (int)(leftOver / 0.16666);
leftOver %= 0.16666;
double numQuarterTspns = leftOver / 0.08333;
leftOver %= 0.08333;
TextView textView = (TextView) findViewById(R.id.itoiOutput);
textView.setText("");
if(numCups != 0)
{
if(numCups == 1)
{
textView.append(numCups + " cup\n");
}
else
{
textView.append(numCups + " cups\n");
}
}
if(numHalfCups != 0)
{
if(numHalfCups == 1)
{
textView.append(numHalfCups + " half cup\n");
}
else
{
textView.append(numHalfCups + " half cups\n");
}
}
if(numThirdCups != 0)
{
if(numThirdCups == 1)
{
textView.append(numThirdCups + " third cup\n");
}
else
{
textView.append(numThirdCups + " third cups\n");
}
}
if(numQuarterCups != 0)
{
if(numQuarterCups == 1)
{
textView.append(numQuarterCups + " quarter cup\n");
}
else
{
textView.append(numQuarterCups + " quarter cups\n");
}
}
if(numTblspns != 0)
{
if(numTblspns == 1)
{
textView.append(numTblspns + " tablespoon\n");
}
else
{
textView.append(numTblspns + " tablespoons\n");
}
}
if(numTspns != 0)
{
if(numTspns == 1)
{
textView.append(numTspns + " teaspoon\n");
}
else
{
textView.append(numTspns + " teaspoons\n");
}
}
if(numHalfTspns != 0)
{
if(numHalfTspns == 1)
{
textView.append(numHalfTspns + " half teaspoon\n");
}
else
{
textView.append(numHalfTspns + " half teaspoons\n");
}
}
if(numQuarterTspns != 0)
{
if(numQuarterTspns == 1)
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoon\n");
}
else
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoons\n");
}
}
textView.setVisibility(View.VISIBLE);
}
@SuppressLint("DefaultLocale")
public void convertFromTspns(View view, double amount)
{
int numCups = (int)(amount / 48);
double leftOver = amount % 48;
int numHalfCups = (int)(leftOver / 96);
leftOver %= 96;
int numThirdCups = (int)(leftOver / 144);
leftOver %= 144;
int numQuarterCups = (int)(leftOver / 192);
leftOver %= 192;
int numTblspns = (int)(leftOver / 3);
leftOver %= 3;
int numTspns = (int)(leftOver / 1);
leftOver %= 1;
int numHalfTspns = (int)(leftOver / 0.5);
leftOver %= 0.5;
double numQuarterTspns = leftOver / 0.25;
leftOver %= 0.25;
TextView textView = (TextView) findViewById(R.id.itoiOutput);
textView.setText("");
if(numCups != 0)
{
if(numCups == 1)
{
textView.append(numCups + " cup\n");
}
else
{
textView.append(numCups + " cups\n");
}
}
if(numHalfCups != 0)
{
if(numHalfCups == 1)
{
textView.append(numHalfCups + " half cup\n");
}
else
{
textView.append(numHalfCups + " half cups\n");
}
}
if(numThirdCups != 0)
{
if(numThirdCups == 1)
{
textView.append(numThirdCups + " third cup\n");
}
else
{
textView.append(numThirdCups + " third cups\n");
}
}
if(numQuarterCups != 0)
{
if(numQuarterCups == 1)
{
textView.append(numQuarterCups + " quarter cup\n");
}
else
{
textView.append(numQuarterCups + " quarter cups\n");
}
}
if(numTblspns != 0)
{
if(numTblspns == 1)
{
textView.append(numTblspns + " tablespoon\n");
}
else
{
textView.append(numTblspns + " tablespoons\n");
}
}
if(numTspns != 0)
{
if(numTspns == 1)
{
textView.append(numTspns + " teaspoon\n");
}
else
{
textView.append(numTspns + " teaspoons\n");
}
}
if(numHalfTspns != 0)
{
if(numHalfTspns == 1)
{
textView.append(numHalfTspns + " half teaspoon\n");
}
else
{
textView.append(numHalfTspns + " half teaspoons\n");
}
}
if(numQuarterTspns != 0)
{
if(numQuarterTspns == 1)
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoon\n");
}
else
{
textView.append(String.format("%.2f", numQuarterTspns) + " quarter teaspoons\n");
}
}
textView.setVisibility(View.VISIBLE);
}
} | [
"KHLover1234@gmail.com"
] | KHLover1234@gmail.com |
47bb31aefcaf90eefc4176e1326d21b257bebde0 | 7b55a074aea08f971a57f902c4e07e20e859b4c2 | /src/com/view/AddExcelDialog.java | d4a26da8ec870e7510ab932359de65725c516669 | [] | no_license | trayvonc/course_scheduling | 99214318bd1afa0e82f9a711dba69190d3a5ac1c | 6fb69ff20cca47eee7982ffe8f3d7838b2d1a200 | refs/heads/master | 2020-05-04T00:30:48.003273 | 2019-04-02T02:34:00 | 2019-04-02T02:34:00 | 178,886,083 | 9 | 1 | null | null | null | null | UTF-8 | Java | false | false | 3,281 | java | package com.view;
import com.excel.ExcelOperationUtil;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.JDialog;
import com.model.*;
import com.mytools.*;
import java.io.File;
import java.awt.event.*;
import java.util.Locale;
//添加界面
public class AddExcelDialog extends JFrame {
public AddExcelDialog(AppInfo appInfo, String title, boolean model, JTable jtable) {
this.setTitle(title);
JFileChooser jfc = new JFileChooser();
jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
//jfc.showDialog(new JLabel(), "选择");
int result = jfc.showOpenDialog(null);
if(result == JFileChooser.APPROVE_OPTION){
File file = jfc.getSelectedFile();
if (file.isDirectory()) {
System.out.println("文件夹需要重新选择:" + file.getAbsolutePath());
} else if (file.isFile()) {
//System.out.println("文件:"+file.getAbsolutePath());
List<GetApp> list = new ArrayList<GetApp>();
list = new ExcelOperationUtil().readExcelData(file.getAbsolutePath());
for (int tmp = 0; tmp <= list.size() - 1; tmp++) {
String[] params = null;
String sql = "insert into application(class,stu_num,address,teacher,week,time,Monday,Tuesday,Wednesday,Thurday,Friday) values(?,?,?,?,?,?,?,?,?,?,?)";
String[] tmplist = {list.get(tmp).getClasses(), list.get(tmp).getStu_num(), list.get(tmp).getAddress() + "", list.get(tmp).getTeacher(), list.get(tmp).getWeek(), list.get(tmp).getTime(), list.get(tmp).getMonday(), list.get(tmp).getTuesday(), list.get(tmp).getWednseday(), list.get(tmp).getThurday(), list.get(tmp).getFriday()};
params = tmplist;
//判断空值
// if (list.get(tmp).equals(list.get(tmp).setAddress(null))){
// list.
// }
//
// switch(flag){
// case 0:
//
// }
//插入数据
EmpModel em = new EmpModel();
boolean b = em.UpdateModel(sql, params);
if (!b && tmp == list.size() - 1) {
JOptionPane.showMessageDialog(null, "添加失败,请输入正确数据类型!");
} else if (b && tmp == list.size() - 1) {
JOptionPane.showMessageDialog(null, "恭喜!添加成功!");
AppInfo.sum += list.size();
AppInfo.p3_l1.setText("总记录是" + AppInfo.sum + "条");
//EmpInfo tmpEmpInfo=new EmpInfo();
this.showAll(jtable);
this.dispose();
}
//System.out.println(tmp);
}
}
}
//System.out.println(jfc.getSelectedFile().getName());
}
public void showAll(JTable jtable) {
String sql = "select * from application where 1=?";
String[] params = {"1"};
EmpModel em = new EmpModel();
em.query(sql, params);
//jtable=new JTable(em);
jtable.setModel(em);
}
}
| [
"trayvon@yeah.net"
] | trayvon@yeah.net |
ab3f2aab6545c1dc8584e07706789398ce222d10 | e56ca72369f62ad944ddb649a940ee6791de5a47 | /Nima/Driver.java | f179371e2cb222f9627361fc07d2fe459ae9f986 | [] | no_license | UsmanAS/OldPrograms | 50b71d366e01a3871073eeed5e92c597d1b60383 | 5382350e723e2505844c8a0fdf8e4b38bc72415a | refs/heads/main | 2023-04-14T14:10:29.807595 | 2021-04-20T00:14:29 | 2021-04-20T00:14:29 | 359,631,103 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,050 | java | import java.awt.*;
public class Driver
{
public static void main(String[] args){
//construct DrawingPanel, and get its Graphics context
DrawingPanel panel = new DrawingPanel(844, 480);
Graphics g = panel.getGraphics();
//Test Step 1 - construct mountain map data
MapDataDrawer map = new MapDataDrawer("NevadaToCalifornia.txt");
//Test Step 2 - min, max, minRow in col
int min = map.findMinValue();
System.out.println("Min value in map: "+min);
int max = map.findMaxValue();
System.out.println("Max value in map: "+max);
int minRow = map.indexOfMinInCol(0);
System.out.println("Row with lowest val in col 0: "+minRow);
//Test Step 3 - draw the map
map.drawMap(g);
//Test Step 4 - draw a greedy path
g.setColor(Color.RED); //can set the color of the 'brush' before drawing, then method doesn't need to worry about it
int totalChange = map.drawLowestElevPath(g, minRow); //use minRow from Step 2 as starting point
System.out.println("Lowest-Elevation-Change Path starting at row "+minRow+" gives total change of: "+totalChange);
//Test Step 5 - draw the best path
g.setColor(Color.RED);
int bestRow = map.indexOfLowestElevPath(g);
//map.drawMap(g); //use this to get rid of all red lines
g.setColor(Color.GREEN); //set brush to green for drawing best path
totalChange = map.drawLowestElevPath(g, bestRow);
System.out.println("The Lowest-Elevation-Change Path starts at row: "+bestRow+" and gives a total change of: "+totalChange);
// Step 6. Yeah!
g.setColor(Color.BLUE); // set brush to blue for drawing best best path
bestRow = map.indexOfLowestElevPathBackwards(g);
totalChange = map.drawLowestElevPathBackwards(g, bestRow);
System.out.println("Just do it, run from right to left, greedily, get total change of: " + totalChange);
}
}
| [
"noreply@github.com"
] | UsmanAS.noreply@github.com |
2287889ced1744608138bb29617191e24e6fe73b | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/2/2_66d580495d311b881e82fd002067f4f8e74b5ae5/DocumentFunction/2_66d580495d311b881e82fd002067f4f8e74b5ae5_DocumentFunction_s.java | e8e93e7d8508471b74b2f9c2b9d11ba6b340f833 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 3,935 | java | /*
* $Header$
* $Revision$
* $Date$
*
* ====================================================================
*
* Copyright (C) 2000-2002 bob mcwhirter & James Strachan.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions, and the disclaimer that follows
* these conditions in the documentation and/or other materials
* provided with the distribution.
*
* 3. The name "Jaxen" must not be used to endorse or promote products
* derived from this software without prior written permission. For
* written permission, please contact license@jaxen.org.
*
* 4. Products derived from this software may not be called "Jaxen", nor
* may "Jaxen" appear in their name, without prior written permission
* from the Jaxen Project Management (pm@jaxen.org).
*
* In addition, we request (but do not require) that you include in the
* end-user documentation provided with the redistribution and/or in the
* software itself an acknowledgement equivalent to the following:
* "This product includes software developed by the
* Jaxen Project (http://www.jaxen.org/)."
* Alternatively, the acknowledgment may be graphical using the logos
* available at http://www.jaxen.org/
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE Jaxen AUTHORS OR THE PROJECT
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* ====================================================================
* This software consists of voluntary contributions made by many
* individuals on behalf of the Jaxen Project and was originally
* created by bob mcwhirter <bob@werken.com> and
* James Strachan <jstrachan@apache.org>. For more information on the
* Jaxen Project, please see <http://www.jaxen.org/>.
*
* $Id$
*/
package org.jaxen.function.xslt;
import org.jaxen.Context;
import org.jaxen.Function;
import org.jaxen.Navigator;
import org.jaxen.FunctionCallException;
import org.jaxen.function.StringFunction;
import java.util.List;
/**
* Implements the XSLT document() function
*
* @author <a href="mailto:jstrachan@apache.org">James Strachan</a>
*/
public class DocumentFunction implements Function
{
public Object call(Context context,
List args) throws FunctionCallException
{
if (args.size() == 1)
{
Navigator nav = context.getNavigator();
String url = StringFunction.evaluate( args.get( 0 ),
nav );
return evaluate( url,
nav );
}
throw new FunctionCallException( "false() requires no arguments." );
}
public static Object evaluate(String url,
Navigator nav) throws FunctionCallException
{
return nav.getDocument( url );
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
36e22ab29efa5e59e3f791c822b724f84c77c016 | 8dcd6fac592760c5bff55349ffb2d7ce39d485cc | /com/bumptech/glide/load/model/stream/HttpUrlGlideUrlLoader.java | 88285391cc5c3f1bdbe9bfda2b79c33c52ba191c | [] | no_license | andrepcg/hikam-android | 9e3a02e0ba9a58cf8a17c5e76e2f3435969e4b3a | bf39e345a827c6498052d9df88ca58d8823178d9 | refs/heads/master | 2021-09-01T11:41:10.726066 | 2017-12-26T19:04:42 | 2017-12-26T19:04:42 | 115,447,829 | 2 | 2 | null | null | null | null | UTF-8 | Java | false | false | 1,626 | java | package com.bumptech.glide.load.model.stream;
import android.content.Context;
import com.bumptech.glide.load.data.DataFetcher;
import com.bumptech.glide.load.data.HttpUrlFetcher;
import com.bumptech.glide.load.model.GenericLoaderFactory;
import com.bumptech.glide.load.model.GlideUrl;
import com.bumptech.glide.load.model.ModelCache;
import com.bumptech.glide.load.model.ModelLoader;
import com.bumptech.glide.load.model.ModelLoaderFactory;
import java.io.InputStream;
public class HttpUrlGlideUrlLoader implements ModelLoader<GlideUrl, InputStream> {
private final ModelCache<GlideUrl, GlideUrl> modelCache;
public static class Factory implements ModelLoaderFactory<GlideUrl, InputStream> {
private final ModelCache<GlideUrl, GlideUrl> modelCache = new ModelCache(500);
public ModelLoader<GlideUrl, InputStream> build(Context context, GenericLoaderFactory factories) {
return new HttpUrlGlideUrlLoader(this.modelCache);
}
public void teardown() {
}
}
public HttpUrlGlideUrlLoader() {
this(null);
}
public HttpUrlGlideUrlLoader(ModelCache<GlideUrl, GlideUrl> modelCache) {
this.modelCache = modelCache;
}
public DataFetcher<InputStream> getResourceFetcher(GlideUrl model, int width, int height) {
GlideUrl url = model;
if (this.modelCache != null) {
url = (GlideUrl) this.modelCache.get(model, 0, 0);
if (url == null) {
this.modelCache.put(model, 0, 0, model);
url = model;
}
}
return new HttpUrlFetcher(url);
}
}
| [
"andrepcg@gmail.com"
] | andrepcg@gmail.com |
21a7bc32727bd9a92daa3677acdf3f71ac9c181c | 3c5e4a74639966bbffba7e8803c176f9ec25fb79 | /struttureDati/src/struttureDati/List.java | 13b169b0a13d5d80a0c5c398f858d4314ec323e5 | [] | no_license | stefanopirastru/workspace | 780e837c8045478ef08a8e093009ee8674bcf36a | b31d497351a2899ce7a57b76ea4c4afc36e3529d | refs/heads/master | 2020-03-08T04:25:57.930430 | 2018-04-09T20:00:04 | 2018-04-09T20:00:04 | 127,921,196 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,556 | java | package struttureDati;
public class List {
public Node head;
public Node tail;
public List listInit(){
List l= new List();
l.head=l.tail=null;
return l;
}
public boolean empty(List l){
return(l.head==null);
}
public int head(List l){
return l.head.key;
}
public int tail(List l){
return l.tail.key;
}
public void insertFront(List l, int x){
Node n= new Node();
n.key=x;
n.next=l.head;
n.prev=null;
if(empty(l)){
l.tail=l.head=n;
}else{
l.head.prev=n;
l.head=n;
}
}
public void insertBack(List l, int x){
Node n= new Node();
n.key= x;
n.next=null;
n.prev=l.tail;
if(empty(l)){
l.tail=l.head=n;
}else{
l.tail.next=n;
l.tail=n;
}
}
public boolean search(List l, int x){
Node n = listSearch(l,x);
return n!=null;
}
public Node listSearch(List l, int x){
Node n= l.head;
while((n!=null)&&(n.key!=x)){
n= n.next;
}
return n;
}
public void listDelete(List l, Node n){
if(n.prev!=null){
n.prev.next= n.next;
}else{
l.head= n.next;
}
if(n.next!=null){
n.next.prev= n.prev;
}else{
l.tail=n.prev;
}
}
public int deleteFront(List l){
if(l==null){
System.err.println("Daje");
return -1;
}else{
int x= l.head.key;
listDelete(l,l.tail);
return x;
}
}
public int deleteBack(List l){
if(l==null){
System.err.println("GG");
return -1;
}else{
int x= l.tail.key;
listDelete(l,l.tail);
return x;
}
}
public void delete(List l, int x){
Node n= listSearch(l,x);
if(n!=null){
listDelete(l,n);
}
}
}
| [
"stefanopirastru@gmail.com"
] | stefanopirastru@gmail.com |
f641b54f80bacfa2f1d758ea7fb9ff5d0723b6a9 | 853ded492fe2356b1414eb48fe40d71e6ab790cc | /src/listNode/RemoveNthFromEnd_174.java | d30a998c9bacd75a799e01959781d6b54ee19b61 | [] | no_license | Liuling100/MyLintCode | c8c404f62fb7da69c85e21db62e0c81e1852ed33 | 495ba58e10d4978ecbd06871d449cc5836eede52 | refs/heads/master | 2020-03-21T21:34:35.623652 | 2018-07-25T15:32:39 | 2018-07-25T15:32:39 | 139,071,228 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,229 | java | package listNode;
import lintCodeClass.ListNode;
public class RemoveNthFromEnd_174 {
/**
* @param head: The first node of linked list.
* @param n: An integer
* @return: The head of linked list.
*/
public ListNode removeNthFromEnd(ListNode head, int n) {
// write your code here
ListNode dummy = new ListNode(0);
dummy.next = head;
ListNode node1 = dummy;
ListNode node2 = dummy;
for(int i = 0; i < n; i++){
node1 = node1.next;
}
if(node1 == null)
return head;
while(node1.next != null){
node1 = node1.next;
node2 = node2.next;
}
node2.next = node2.next.next;
return dummy.next;
}
public static void main(String args[]){
RemoveNthFromEnd_174 obj = new RemoveNthFromEnd_174();
ListNode head = new ListNode(1);
ListNode node1 = new ListNode(2);
ListNode node2 = new ListNode(3);
ListNode node3 = new ListNode(4);
ListNode node4 = new ListNode(5);
head.next = node1;
node1.next = node2;
node2.next = node3;
node3.next = node4;
int n = 2;
obj.removeNthFromEnd(head, n);
}
}
| [
"renge@s2015.tu-chemnitz.de"
] | renge@s2015.tu-chemnitz.de |
2bb56347754a61535cd2040e3f364aa34a76b3df | 945cdbdd800bbe11826911a0be8b87f2f9767022 | /src/Grafos_menu/MapRepresentation.java | b08b3b5d3b09f1b4b13689e35e319300630d5020 | [] | no_license | CxrlosMX/graphs_cities_example | cbacdc488fffabd280369aa0833985c34c3a9b6e | 4feb7b58ab1ccbf92437c4eabf29637c1ac72703 | refs/heads/master | 2023-04-14T11:46:07.912109 | 2021-04-22T04:16:42 | 2021-04-22T04:16:42 | 360,389,776 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,562 | java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Grafos_menu;
import java.util.Scanner;
import javax.swing.JOptionPane;
/**
*
* @author El Camaleon
*/
public class MapRepresentation {
public static Graph getCities() {
Graph graph = new Graph();
Scanner sc = new Scanner(System.in);
System.out.println("*-*-Bienvenido-*-*");
System.out.println("¿Cuantos nodos desea ingresar?");
int c = sc.nextInt();
sc.nextLine();
Node[] array = new Node[c];
String nom;
for (int i = 0; i < c; i++) {
System.out.println("Introduce el nombre de la ciudad");
nom = sc.nextLine();
array[i] = new Node(nom);
}
//Ciclo
boolean bandera = false;
do {
System.out.println("*-*-MENU-*-*");
System.out.println("1.-Ingresar EDGE(Aristas)");
System.out.println("2.-Salir");
int d = sc.nextInt();
switch (d) {
case 1: {
System.out.println("Eligue que ciudad deseas ingresar la arista!!");
int a = 0;
for (Node i : array) {
System.out.println("[" + a + "]" + i);
a++;
}
int b = sc.nextInt();
System.out.println("Ingrese la distancia por favor");
int distancia = sc.nextInt();
System.out.println("Ingrese la ciudad que se une con la arista");
int arista = sc.nextInt();
for (int i = 0; i < 1; i++) {
array[b].addEdge(new Edge(array[b], array[arista], distancia));
}
break;
}
case 2: {
bandera = true;
break;
}
default: {
JOptionPane.showMessageDialog(null, "---***OPCION INVALIDA***---");
break;
}
}
} while (bandera == false);
for (Node j : array) {
graph.addNode(j);
}
return graph;
}
public static void main(String[] args) {
Graph graph = getCities();
System.out.println(graph);
}
}
| [
"LuisCRendon131@gmail.com"
] | LuisCRendon131@gmail.com |
f80a7ed8f0da27c547adadd13185a28dc99c3390 | dc0d4c759e0fb6ef90486d313074252d85de6b2c | /src/main/java/ru/mycompany/neuron_wide/factory/LinksFactory.java | fe50c0682b49b34db6f241dcda46057e1d792b90 | [] | no_license | nicknick1945/repository | ac908949c7941b4072d1f79b5f8d4162eb5b2266 | 3d941891c316ef2a7a4aefd0b63b27352cf29d94 | refs/heads/master | 2021-01-23T01:11:58.343378 | 2017-12-24T18:08:09 | 2017-12-24T18:08:09 | 85,883,963 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,079 | java | package main.java.ru.mycompany.neuron_wide.factory;
import main.java.ru.mycompany.neuron_wide.exceprions.factoryExcptions.IlligalTypeException;
import main.java.ru.mycompany.neuron_wide.interfaces.Link;
/** Сознает свзяси
* Created by Nick on 20.03.2017.
*/
public class LinksFactory {
private static final int MAX_LINK_WIDTH = 2;
public static Link[] createLinks(int countLinks, Class linkImplClass) throws Exception {
Link[] links = new Link[countLinks];
boolean isPlus = true; //добавлен для того чтобы веса инициализировались равномерно от -2 до 2
for (int i = 0; i < countLinks; i++) {
try {
links[i] = ((Link) linkImplClass.newInstance());
links[i].setMultiplexer(isPlus ? Math.random() * MAX_LINK_WIDTH : -Math.random() * MAX_LINK_WIDTH);
isPlus = !isPlus;
}catch (Exception e){
throw new IlligalTypeException();
}
}
return links;
}
}
| [
"n.matukhin@simplex-software.ru"
] | n.matukhin@simplex-software.ru |
41e60eb1befddc6c9c681a0c7a38015a50b20aee | 7e8eda49319e05961b8521804a17b430336f32f2 | /ch02/LabExercise1.java | d860572555bba7462744b8eda89d09bce98477ba | [] | no_license | toddse/Projects | 041a9993f38dcfe93bcdbefcc846b46d15ea4922 | 42e129c79ae7a141a6ae5c097ae4e9ec0dd2169a | refs/heads/main | 2022-12-20T18:13:30.160734 | 2020-10-04T21:07:48 | 2020-10-04T21:07:48 | 286,861,950 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 616 | java | package ch02;
public class LabExercise1 {
public static void main(String[] args) {
System.out.println(sum(4));
System.out.println(biPower(4));
System.out.println(times(4));
}
public static int sum (int n){
if (n == 1)
return 1;
else
return n + sum(n - 1);
}
public static int biPower (int n){
if (n == 1)
return 1;
else
return n + biPower(n - 1);
}
public static int times (int v){
if (v == 1)
return 1;
else
return v * times(v - 1);
}
} | [
"blackholexendock@gmail.com"
] | blackholexendock@gmail.com |
b268b2e619f68e882c0c7de1ab7c793463726e41 | d50cefd9b56b96726f12ecafaea923e8ce24f5d8 | /workspace/draw/src/game/Ball.java | 9d41df0cf9ab15becd93df1e867ad9264b60b0d5 | [] | no_license | lyk4411/java_learning | 673a3661391c04f5bd01bf9e8978c3f2f8fa36a6 | bcec6298896a75616c3c3b3d6affb3406d4c2fa7 | refs/heads/master | 2020-02-26T14:59:57.560378 | 2019-11-07T07:46:28 | 2019-11-07T07:46:28 | 31,747,198 | 1 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,351 | java | package game;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Point;
public class Ball implements Runnable{
private int r;
private Color c;
private Point pos;
private int speed;
private Component owner;
public Ball(int r,Color c,int speed,Component owner){
this.r = r;
this.c = c;
this.speed = speed;
this.owner = owner;
}
public Ball(Component owner){
this.owner = owner;
this.r = (int)(Math.random() * 11 + 10);
this.c = new Color((int)(Math.random() * 256),
(int)(Math.random() * 256),
(int)(Math.random() * 256));
this.pos = new Point(0,0);
int width = (int) owner.getSize().getWidth();
pos.x = (int) (r + (width - 2 * r) * Math.random());
pos.y = (int) owner.getSize().getHeight() - r;
speed = (int)((Math.random() * 15) + 5);
}
public void draw(Graphics g){
g.setColor(c);
g.fillOval(pos.x - r, pos.y - r, 2*r, 2*r);
}
public boolean isPointIn(Point pt){
return pt.distance(pos) <= r;
}
@Override
public void run() {
// TODO Auto-generated method stub
while (true){
try{
Thread.sleep(speed);
}
catch(Exception e){
}
pos.y -= 1;
owner.repaint(pos.x-r-1,pos.y-r-1,2*r+2,2*r+4);
if(pos.y - r <= 0){
break;
}
}
}
public void start(){
Thread t = new Thread(this);
t.start();
}
}
| [
"liu.yongkai@bestv.com.cn"
] | liu.yongkai@bestv.com.cn |
3dc5a9ae606823337da4b843d22590273504909b | 3735e2126edc603f01f3039de9edfee37d7d47c1 | /src/main/java/pt/ds/annotations/HappyFortuneService.java | 34c84ab55492ae03df0c5b7e27f94fb6b882bc8f | [] | no_license | davidsaraiva/SpringMVCTests | 0b984d569e8eaebd72e3461c86cccb35d915f578 | 6fe3a8df8d4f2f6ffa51e276f3f85f5140e6a6fd | refs/heads/master | 2021-05-11T15:11:42.496937 | 2018-01-17T14:37:50 | 2018-01-17T14:37:50 | 117,720,693 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 224 | java | package pt.ds.annotations;
import org.springframework.stereotype.Component;
@Component
public class HappyFortuneService implements FortuneService {
public String getFortune() {
return "Today is your lucky day!";
}
}
| [
"david.saraiva@daimler.com"
] | david.saraiva@daimler.com |
5db0ef1bc985a4be32977f1624611767fc53ae23 | 18cd723c3be04312416bb93e4692fd11aa33fa50 | /Classes Challenge/src/com/company/BankAccount.java | 1a538e6f403a5365832a8af2f67a2959aad1f550 | [] | no_license | jmdelcarmen/complete-java | c82856f982ac8e925e6759cb1e009b30d99f8e2b | 2c9d5160bb324474737c1c97b3ce07aab32e0216 | refs/heads/master | 2021-01-12T06:31:01.098866 | 2016-12-28T16:09:35 | 2016-12-28T16:09:35 | 77,372,463 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,817 | java | package com.company;
/**
* Created by jesusmarcodelcarmen on 12/25/16.
**/
public class BankAccount {
private String customerName;
private int phoneNumber;
private double balance;
private String email;
private int acctNumber;
//*********************Constructor WITHOUT params*********************
public BankAccount() {
this("Marco", 5555555, 10000.00, "ggkana@yaho.com", 95640394);
//default values
System.out.println("Constructor without params called. Default values have been set.");
}
//*********************Constructor WITH params*********************
public BankAccount(String customerName, int phoneNumber, double balance, String email, int acctNumber) {
System.out.println("Constructor with params called.");
this.customerName = customerName;
this.phoneNumber = phoneNumber;
this.balance = balance;
this.email = email;
this.acctNumber = acctNumber;
}
//*********************customer name*********************
public void setCustomerName (String customerName) {
this.customerName = customerName;
}
public String getCustomerName() {
return this.customerName;
}
//*********************email*********************
public void setEmail (String email) {
this.email = email;
}
public String getEmail () {
return this.email;
}
//*********************account Number*********************
public void setAccountNumber (int accountNumber) {
this.acctNumber = accountNumber;
}
public int getAccountNumber () {
return this.acctNumber;
}
//*********************balance*********************
public void setBalance (double balance) {
this.balance = balance;
}
public double getBalance () {
return this.balance;
}
//*********************phone number*********************
public String setPhoneNumber(int phoneNumber) {
this.phoneNumber = phoneNumber;
return "You phone number has been set to " + this.phoneNumber;
}
public int getPhoneNumber() {
return this.phoneNumber;
}
//deposit
public String deposit(double amount) {
this.balance += amount;
System.out.println("$" + amount + " has been added to your account.");
return "You remaining balance is " + this.balance;
}
//withdraw
public double withdraw(double amount) {
if (this.balance >= amount) {
this.balance -= amount;
System.out.println("$" + amount + " has been deducted from your account.");
return amount;
}
else {
System.out.println("You have insufficient funds.");
return this.balance;
}
}
}
| [
"jesusmarcodelcarmen@gmail.com"
] | jesusmarcodelcarmen@gmail.com |
36114bfa7c6016c4b1c61f60b63acdef7215f699 | 12c375dfaec8e27280acd82ad9d83ac6ba566b7d | /src/QUIZ/Q_08_30/q1.java | a0a45df4cc77c426e75358c5c68818f84944fccb | [] | no_license | Timur4162/Summer2020_B20 | 2dcf829ee1712fb27217833f209b5cc179ff62a2 | f1f6603ea3c1e31fa5ce714678eea66213e64a6a | refs/heads/master | 2022-12-11T17:19:51.196125 | 2020-08-30T15:58:26 | 2020-08-30T15:58:26 | 285,425,727 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 278 | java | package QUIZ.Q_08_30;
public class q1 {
public q1(){
System.out.println("A");
// this();
}
public q1(int a){
this();
System.out.println("B ");
}
public static void main(String[] args) {
q1 obj = new q1(200);
}
} | [
"timur.izbossinov@gmail.com"
] | timur.izbossinov@gmail.com |
f32297ed310aea579adeb7209965de6d450b32a1 | 203269a057a6db0750b652ba9d53c2d9f3f29c5f | /aigou_product_parent_8002/aigou_product_service/src/main/java/com/xuzhao/aigou/mapper/ProductTypeMapper.java | b9fec7aa4c4fecfd53ab01ee53cf35d63031ed9f | [] | no_license | xuzhaosj/aigou | 2397e57430e2bdbdda1081a8597b02c3e9489f9f | 2054b878f9679f0b335ad8ffb458fb5122afad7c | refs/heads/master | 2023-08-31T12:20:38.270987 | 2019-06-24T17:09:09 | 2019-06-24T17:09:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 297 | java | package com.xuzhao.aigou.mapper;
import com.xuzhao.aigou.domain.ProductType;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
* <p>
* 商品目录 Mapper 接口
* </p>
*
* @author xuzhao
* @since 2019-06-25
*/
public interface ProductTypeMapper extends BaseMapper<ProductType> {
}
| [
"xz@qq.com"
] | xz@qq.com |
9815cbea54efae2e49d318c9418b4747a865c099 | ff68ee922c682079792a28491fe7d59a3783edc4 | /src/main/java/br/com/zupacademy/eduardo/casadocodigo/CasaDoCodigoApplication.java | c381cf487a83126da0037114da2542d4bb23c3a6 | [] | permissive | EduardoBadia/orange-talents-06-template-casa-do-codigo | b7e45240dd062256538ecce6701902ba43da47f0 | 3bbb389da4a0adb8850ebfd914b5247a2730d200 | refs/heads/main | 2023-06-18T06:52:28.104269 | 2021-07-16T17:08:22 | 2021-07-16T17:08:22 | 381,698,898 | 0 | 0 | Apache-2.0 | 2021-06-30T12:44:20 | 2021-06-30T12:44:19 | null | UTF-8 | Java | false | false | 343 | java | package br.com.zupacademy.eduardo.casadocodigo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CasaDoCodigoApplication {
public static void main(String[] args) {
SpringApplication.run(CasaDoCodigoApplication.class, args);
}
}
| [
"eduardo.badia@zup.com.br"
] | eduardo.badia@zup.com.br |
48a36046b93aa0338d6879ab31cc130fceeb8ee2 | ea74804e392e5b8873389d0bfd14fd4fd4c4c351 | /src/com/company/Main.java | 0e940bc5c96b39d41cbfc603ee5ceb4925b55382 | [] | no_license | Kntrl-Pnl/Lab_78 | b0a7a38531f40b6d0c42e2edc2ee1ffd057c31c7 | c7a9a0561d2792013b1972eb7e8741a457371c4c | refs/heads/master | 2022-11-11T03:12:43.217053 | 2020-06-28T16:24:23 | 2020-06-28T16:24:23 | 275,623,929 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 677 | java | package com.company;
import java.io.IOException;
public class Main {
public static void main(String[] args) throws IOException {
int version = 2;
int depth = 3;
String link = "https://www.google.ru/";
if(version == 1) {
Crawler crawler = new Crawler(new URLDepth(link, 1, 1), depth );
}
else{
URLPool pool = new URLPool(depth);
pool.addPair(new URLDepth(link, 1));
int numThread = 20;
for (int m = 0; m < numThread; m++) {
Thread thread = new Thread(new AsyncCrawler(pool));
thread.start();
}
}
}
}
| [
"50419463+Kntrl-Pnl@users.noreply.github.com"
] | 50419463+Kntrl-Pnl@users.noreply.github.com |
540c1a3ab9a5992299680dc6559b5f56b240bedf | 01296066475f5ad0817813eec3e92f59695a746d | /004SAtToClass/StockAnalysis/app/build/generated/source/buildConfig/androidTest/debug/com/ubun17/stockanalysis/test/BuildConfig.java | ca8a19b97123c6cc3b2b3548028cec32185bfec9 | [] | no_license | wanaaaa/00MyProject | 4da665ffb211a8f41e4ba68507839f6d7554be6f | c9f0aebfb0369883be9b5b399c3cc91ff367b512 | refs/heads/master | 2020-12-11T09:07:07.184835 | 2016-09-22T03:59:27 | 2016-09-22T03:59:27 | 68,726,711 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 465 | java | /**
* Automatically generated file. DO NOT MODIFY
*/
package com.ubun17.stockanalysis.test;
public final class BuildConfig {
public static final boolean DEBUG = Boolean.parseBoolean("true");
public static final String APPLICATION_ID = "com.ubun17.stockanalysis.test";
public static final String BUILD_TYPE = "debug";
public static final String FLAVOR = "";
public static final int VERSION_CODE = 1;
public static final String VERSION_NAME = "1.0";
}
| [
"wanaaaa@gmail.com"
] | wanaaaa@gmail.com |
d18aef11eb148c4031bcd0053f90883cbca32dff | a11b8e6ba37223db558d2977c46b06f5b9c5d861 | /Uebung10/src/JumpAndRun.java | 8f1b9f16d8e0b58c9b1e3047831a84e77edf2287 | [] | no_license | Pali-G/ABV-Programmieren | 787f0a19c03f9255f587a40d53e09b75f054f4f7 | 45308bebe659977664d85522fb2d465fb4d6d304 | refs/heads/master | 2022-11-26T01:56:35.468358 | 2020-08-03T07:42:44 | 2020-08-03T07:42:44 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | Java | false | false | 232 | java |
public class JumpAndRun {
public static void main(String[] args) {
Game game = new Game("Marching on Isengard", 600, 600); //Game Objekt wird erstellt
game.start(); //Game wird gestertet, run() läuft
}
}
| [
"noreply@github.com"
] | Pali-G.noreply@github.com |
c3d575f5b4180ba49a33fabf95022df4fe1bc4b7 | 9a6ea6087367965359d644665b8d244982d1b8b6 | /src/main/java/X/AnonymousClass3HW.java | a06537e79f97e0bab85153abedb1d9ae3e2503ad | [] | no_license | technocode/com.wa_2.21.2 | a3dd842758ff54f207f1640531374d3da132b1d2 | 3c4b6f3c7bdef7c1523c06d5bd9a90b83acc80f9 | refs/heads/master | 2023-02-12T11:20:28.666116 | 2021-01-14T10:22:21 | 2021-01-14T10:22:21 | 329,578,591 | 2 | 1 | null | null | null | null | UTF-8 | Java | false | false | 449 | java | package X;
import com.whatsapp.authentication.FingerprintBottomSheet;
/* renamed from: X.3HW reason: invalid class name */
public class AnonymousClass3HW {
public final /* synthetic */ FingerprintBottomSheet A00;
public final /* synthetic */ AbstractC63192w0 A01;
public AnonymousClass3HW(AbstractC63192w0 r1, FingerprintBottomSheet fingerprintBottomSheet) {
this.A01 = r1;
this.A00 = fingerprintBottomSheet;
}
}
| [
"madeinborneo@gmail.com"
] | madeinborneo@gmail.com |
8b719d521f504780bfaacc6b2252ec9dec7bf004 | 8b5c955989280412e2e7fca4453722d090c3b347 | /Data Structure and Algorithm PDF -Sixth Edition/First Time/Chapter 2 OOD/Generics/Basic/Pair.java | 9dd82bca5ffa601b907c6f33980bdf1e47df1797 | [] | no_license | david2999999/Java-Algorithm | a8962629819df73a9b9c733e5f8be91952747554 | 8e235826b2e7e864f1fd991dbaa2dbb44caaab8c | refs/heads/master | 2021-06-03T23:09:13.092268 | 2020-03-22T18:42:21 | 2020-03-22T18:42:21 | 146,636,630 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 224 | java | public class Pair<A, B> {
A first;
B second;
public Pair(A a, B b) {
first = a;
second = b;
}
public A getFirst( ) { return first; }
public B getSecond( ) { return second;}
} | [
"djiang86@binghamton.edu"
] | djiang86@binghamton.edu |
2c704627b7cb53fd237fe4d5a77770cf9594d0d1 | fe4ff53748d587dfe9a097d9c095e6985de33037 | /Max Consecutive Ones.java | 1f71af226e0f676105b3e6405e9f66b625d76748 | [] | no_license | lamthao1995/LeetCode.com | f8f848d7d537d6e1507c302941cd1db72907a135 | 2bfadac71d16d52956655ebf760d0282e9d7461e | refs/heads/master | 2021-01-15T22:34:41.006827 | 2017-08-21T22:21:04 | 2017-08-21T22:21:04 | 99,902,780 | 6 | 2 | null | null | null | null | UTF-8 | Java | false | false | 362 | java | public class Solution {
public int findMaxConsecutiveOnes(int[] nums) {
int count = 0;
int max = 0;
for(int i = 0; i < nums.length; i++){
if(nums[i] == 1){
count++;
max = max > count ? max : count;
}
else count = 0;
}
return max;
}
} | [
"noreply@github.com"
] | lamthao1995.noreply@github.com |
560926c3ffb82fa518cf032e77a0457f73149520 | 5dc1d02f2aebb6b8fb932b5028b5e6bb50a12b80 | /tjf-checkin-signup/src/main/java/com/tjf/checkin/signup/repository/ParticipantRepository.java | d12f6d5a484564315d2c0aa53a6c31bd16b0e468 | [] | no_license | marcospds/tjf-checkin-sample | 9cfc4c0c382d39693f0365a8a5578d3c292a60fc | 94b305f1e8e0e72002139ed32eb3824ccb6beddb | refs/heads/master | 2020-05-29T22:38:04.860892 | 2019-05-28T18:12:18 | 2019-05-28T18:12:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 432 | java | package com.tjf.checkin.signup.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import com.totvs.tjf.api.jpa.repository.ApiJpaRepository;
@Repository
@Transactional
public interface ParticipantRepository extends JpaRepository<ParticipantModel, Long>, ApiJpaRepository<ParticipantModel> {}
| [
"marcos.paulo@totvs.com.br"
] | marcos.paulo@totvs.com.br |
4fcbd829ca08d854ac8bad137946ba8f7f70bfdc | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/19/19_7fd09a9ed62169507dcbfa398c100f701e13f5ee/CursorStatusesAdapter/19_7fd09a9ed62169507dcbfa398c100f701e13f5ee_CursorStatusesAdapter_t.java | 4524a645a3938286aff3499d79ed3758acd3152d | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 22,116 | java | /*
* Twidere - Twitter client for Android
*
* Copyright (C) 2012 Mariotaku Lee <mariotaku.lee@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.mariotaku.twidere.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.support.v4.widget.SimpleCursorAdapter;
import android.text.Html;
import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ProgressBar;
import com.nostra13.universalimageloader.core.assist.FailReason;
import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;
import java.util.HashMap;
import java.util.Map;
import org.mariotaku.twidere.R;
import org.mariotaku.twidere.adapter.iface.IStatusesAdapter;
import org.mariotaku.twidere.app.TwidereApplication;
import org.mariotaku.twidere.model.ImageSpec;
import org.mariotaku.twidere.model.ParcelableStatus;
import org.mariotaku.twidere.model.StatusCursorIndices;
import org.mariotaku.twidere.util.ImageLoaderWrapper;
import org.mariotaku.twidere.util.MultiSelectManager;
import org.mariotaku.twidere.util.OnLinkClickHandler;
import org.mariotaku.twidere.util.TwidereLinkify;
import org.mariotaku.twidere.view.holder.StatusViewHolder;
import static android.text.format.DateUtils.getRelativeTimeSpanString;
import static org.mariotaku.twidere.util.HtmlEscapeHelper.toPlainText;
import static org.mariotaku.twidere.util.Utils.findStatusInDatabases;
import static org.mariotaku.twidere.util.Utils.formatSameDayTime;
import static org.mariotaku.twidere.util.Utils.getAccountColor;
import static org.mariotaku.twidere.util.Utils.getAccountScreenName;
import static org.mariotaku.twidere.util.Utils.getAllAvailableImage;
import static org.mariotaku.twidere.util.Utils.getImagePreviewDisplayOptionInt;
import static org.mariotaku.twidere.util.Utils.getNameDisplayOptionInt;
import static org.mariotaku.twidere.util.Utils.getPreviewImage;
import static org.mariotaku.twidere.util.Utils.getStatusBackground;
import static org.mariotaku.twidere.util.Utils.getStatusTypeIconRes;
import static org.mariotaku.twidere.util.Utils.getThemeColor;
import static org.mariotaku.twidere.util.Utils.getUserColor;
import static org.mariotaku.twidere.util.Utils.getUserTypeIconRes;
import static org.mariotaku.twidere.util.Utils.isFiltered;
import static org.mariotaku.twidere.util.Utils.openImage;
import static org.mariotaku.twidere.util.Utils.openUserProfile;
import android.database.sqlite.SQLiteDatabase;
public class CursorStatusesAdapter extends SimpleCursorAdapter implements IStatusesAdapter<Cursor>, OnClickListener, ImageLoadingListener {
private final Context mContext;
private final Resources mResources;
private final ImageLoaderWrapper mLazyImageLoader;
private final MultiSelectManager mMultiSelectManager;
private final TwidereLinkify mLinkify;
private final SQLiteDatabase mDatabase;
private final Map<View, String> mLoadingViewsMap = new HashMap<View, String>();
private final float mDensity;
private boolean mDisplayProfileImage, mShowAccountColor, mShowAbsoluteTime, mGapDisallowed, mMultiSelectEnabled,
mMentionsHighlightDisabled, mDisplaySensitiveContents, mIndicateMyStatusDisabled, mLinkHighlightingEnabled,
mFastTimelineProcessingEnabled, mLinkUnderlineOnly, mIsLastItemFiltered, mFiltersEnabled = true;
private float mTextSize;
private int mNameDisplayOption, mImagePreviewDisplayOption;
private boolean mFilterIgnoreSource, mFilterIgnoreScreenName, mFilterIgnoreTextHtml, mFilterIgnoreTextPlain;
private StatusCursorIndices mIndices;
public CursorStatusesAdapter(final Context context) {
super(context, R.layout.status_list_item, null, new String[0], new int[0], 0);
mContext = context;
mResources = context.getResources();
final TwidereApplication application = TwidereApplication.getInstance(context);
mMultiSelectManager = application.getMultiSelectManager();
mLazyImageLoader = application.getImageLoaderWrapper();
mDatabase = application.getSQLiteDatabase();
mDensity = mResources.getDisplayMetrics().density;
mLinkify = new TwidereLinkify(new OnLinkClickHandler(mContext));
}
@Override
public void bindView(final View view, final Context context, final Cursor cursor) {
final int position = cursor.getPosition();
final StatusViewHolder holder = (StatusViewHolder) view.getTag();
// Clear images in prder to prevent images in recycled view shown.
// holder.profile_image.setImageDrawable(null);
// holder.my_profile_image.setImageDrawable(null);
// holder.image_preview.setImageDrawable(null);
final boolean is_gap = cursor.getShort(mIndices.is_gap) == 1;
final boolean show_gap = is_gap && !mGapDisallowed && position != getCount() - 1;
holder.setShowAsGap(show_gap);
if (!show_gap) {
final long account_id = cursor.getLong(mIndices.account_id);
final long user_id = cursor.getLong(mIndices.user_id);
final long status_id = cursor.getLong(mIndices.status_id);
final long status_timestamp = cursor.getLong(mIndices.status_timestamp);
final long retweet_count = cursor.getLong(mIndices.retweet_count);
final String retweeted_by_name = cursor.getString(mIndices.retweeted_by_name);
final String retweeted_by_screen_name = cursor.getString(mIndices.retweeted_by_screen_name);
final String text = mFastTimelineProcessingEnabled ? cursor.getString(mIndices.text_plain) : cursor
.getString(mIndices.text_html);
final String screen_name = cursor.getString(mIndices.screen_name);
final String name = cursor.getString(mIndices.user_name);
final String in_reply_to_screen_name = cursor.getString(mIndices.in_reply_to_screen_name);
final String account_screen_name = getAccountScreenName(mContext, account_id);
// Tweet type (favorite/location/media)
final boolean is_favorite = mFastTimelineProcessingEnabled ? false
: cursor.getShort(mIndices.is_favorite) == 1;
final boolean has_location = mFastTimelineProcessingEnabled ? false : !TextUtils.isEmpty(cursor
.getString(mIndices.location));
final boolean is_possibly_sensitive = cursor.getInt(mIndices.is_possibly_sensitive) == 1;
final ImageSpec preview = !mFastTimelineProcessingEnabled ? getPreviewImage(text,
mImagePreviewDisplayOption) : null;
final boolean has_media = preview != null;
// User type (protected/verified)
final boolean is_verified = cursor.getShort(mIndices.is_verified) == 1;
final boolean is_protected = cursor.getShort(mIndices.is_protected) == 1;
final boolean is_retweet = !TextUtils.isEmpty(retweeted_by_name)
&& cursor.getShort(mIndices.is_retweet) == 1;
final boolean is_reply = !TextUtils.isEmpty(in_reply_to_screen_name)
&& cursor.getLong(mIndices.in_reply_to_status_id) > 0;
final boolean is_mention = mFastTimelineProcessingEnabled || TextUtils.isEmpty(text) || TextUtils.isEmpty(account_screen_name) ? false : text.toLowerCase().contains(
'@' + account_screen_name.toLowerCase());
final boolean is_my_status = account_id == user_id;
if (mMultiSelectEnabled) {
holder.setSelected(mMultiSelectManager.isStatusSelected(status_id));
} else {
holder.setSelected(false);
}
holder.setUserColor(getUserColor(mContext, user_id));
holder.setHighlightColor(mFastTimelineProcessingEnabled ? 0 : getStatusBackground(
mMentionsHighlightDisabled ? false : is_mention, is_favorite, is_retweet));
holder.setAccountColorEnabled(mShowAccountColor);
if (mShowAccountColor) {
holder.setAccountColor(getAccountColor(mContext, account_id));
}
holder.setTextSize(mTextSize);
holder.setIsMyStatus(is_my_status && !mIndicateMyStatusDisabled);
if (mFastTimelineProcessingEnabled) {
holder.text.setText(text);
} else if (mLinkHighlightingEnabled) {
holder.text.setText(Html.fromHtml(text));
mLinkify.applyAllLinks(holder.text, account_id, is_possibly_sensitive);
} else {
holder.text.setText(toPlainText(text));
}
holder.text.setMovementMethod(null);
holder.name.setCompoundDrawablesWithIntrinsicBounds(0, 0, getUserTypeIconRes(is_verified, is_protected), 0);
switch (mNameDisplayOption) {
case NAME_DISPLAY_OPTION_CODE_NAME: {
holder.name.setText(name);
holder.screen_name.setText(null);
holder.screen_name.setVisibility(View.GONE);
break;
}
case NAME_DISPLAY_OPTION_CODE_SCREEN_NAME: {
holder.name.setText("@" + screen_name);
holder.screen_name.setText(null);
holder.screen_name.setVisibility(View.GONE);
break;
}
default: {
holder.name.setText(name);
holder.screen_name.setText("@" + screen_name);
holder.screen_name.setVisibility(View.VISIBLE);
break;
}
}
if (mLinkHighlightingEnabled) {
mLinkify.applyUserProfileLink(holder.name, account_id, user_id, screen_name);
mLinkify.applyUserProfileLink(holder.screen_name, account_id , user_id, screen_name);
holder.name.setMovementMethod(null);
holder.screen_name.setMovementMethod(null);
}
if (mShowAbsoluteTime) {
holder.time.setText(formatSameDayTime(context, status_timestamp));
} else {
holder.time.setText(getRelativeTimeSpanString(status_timestamp));
}
holder.time.setCompoundDrawablesWithIntrinsicBounds(0, 0, mFastTimelineProcessingEnabled ? 0
: getStatusTypeIconRes(is_favorite, has_location, has_media), 0);
holder.reply_retweet_status.setVisibility(is_retweet || is_reply ? View.VISIBLE : View.GONE);
if (is_retweet) {
if (mNameDisplayOption == NAME_DISPLAY_OPTION_CODE_SCREEN_NAME) {
holder.reply_retweet_status.setText(retweet_count > 1 ? mContext.getString(
R.string.retweeted_by_with_count, retweeted_by_screen_name, retweet_count - 1) : mContext
.getString(R.string.retweeted_by, retweeted_by_screen_name));
} else {
holder.reply_retweet_status.setText(retweet_count > 1 ? mContext.getString(
R.string.retweeted_by_with_count, retweeted_by_name, retweet_count - 1) : mContext
.getString(R.string.retweeted_by, retweeted_by_name));
}
holder.reply_retweet_status.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_indicator_retweet, 0,
0, 0);
} else if (is_reply) {
holder.reply_retweet_status.setText(mContext.getString(R.string.in_reply_to, in_reply_to_screen_name));
holder.reply_retweet_status.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_indicator_reply, 0,
0, 0);
}
if (mDisplayProfileImage) {
final String profile_image_url = cursor.getString(mIndices.profile_image_url);
mLazyImageLoader.displayProfileImage(holder.my_profile_image, profile_image_url);
mLazyImageLoader.displayProfileImage(holder.profile_image, profile_image_url);
holder.profile_image.setTag(position);
holder.my_profile_image.setTag(position);
} else {
holder.profile_image.setVisibility(View.GONE);
holder.my_profile_image.setVisibility(View.GONE);
}
final boolean has_preview = mFastTimelineProcessingEnabled ? false
: mImagePreviewDisplayOption != IMAGE_PREVIEW_DISPLAY_OPTION_CODE_NONE && has_media
&& preview.image_preview_url != null;
holder.image_preview_container.setVisibility(has_preview ? View.VISIBLE : View.GONE);
if (has_preview) {
holder.setImagePreviewDisplayOption(mImagePreviewDisplayOption);
if (is_possibly_sensitive && !mDisplaySensitiveContents) {
holder.image_preview.setImageResource(R.drawable.image_preview_nsfw);
holder.image_preview_progress.setVisibility(View.GONE);
} else if (!preview.image_preview_url.equals(mLoadingViewsMap.get(holder.image_preview))) {
mLazyImageLoader.displayPreviewImage(holder.image_preview, preview.image_preview_url, this);
}
holder.image_preview.setTag(position);
}
}
}
public long findItemIdByPosition(final int position) {
if (position >= 0 && position < getCount()) return getItem(position).getLong(mIndices.status_id);
return -1;
}
public int findItemPositionByStatusId(final long status_id) {
final int count = getCount();
for (int i = 0; i < count; i++) {
if (getItem(i).getLong(mIndices.status_id) == status_id) return i;
}
return -1;
}
@Override
public int getCount() {
final int count = super.getCount();
return mFiltersEnabled && mIsLastItemFiltered && count > 0 ? count - 1 : count;
}
@Override
public ParcelableStatus getLastStatus() {
final Cursor cur = getCursor();
if (cur == null || cur.getCount() == 0) return null;
cur.moveToLast();
final long account_id = cur.getLong(mIndices.account_id);
final long status_id = cur.getLong(mIndices.status_id);
return findStatusInDatabases(mContext, account_id, status_id);
}
@Override
public Cursor getItem(final int position) {
return (Cursor) super.getItem(position);
}
@Override
public ParcelableStatus getStatus(final int position) {
final Cursor cur = getItem(position);
final long account_id = cur.getLong(mIndices.account_id);
final long status_id = cur.getLong(mIndices.status_id);
return findStatusInDatabases(mContext, account_id, status_id);
}
@Override
public boolean isLastItemFiltered() {
return mFiltersEnabled && mIsLastItemFiltered;
}
@Override
public View newView(final Context context, final Cursor cursor, final ViewGroup parent) {
final View view = super.newView(context, cursor, parent);
final Object tag = view.getTag();
if (!(tag instanceof StatusViewHolder)) {
final StatusViewHolder holder = new StatusViewHolder(view);
holder.profile_image.setOnClickListener(this);
holder.my_profile_image.setOnClickListener(this);
holder.image_preview.setOnClickListener(this);
view.setTag(holder);
}
return view;
}
@Override
public void onClick(final View view) {
if (mMultiSelectEnabled) return;
final Object tag = view.getTag();
final ParcelableStatus status = tag instanceof Integer ? getStatus((Integer) tag) : null;
if (status == null) return;
switch (view.getId()) {
case R.id.image_preview: {
final ImageSpec spec = getAllAvailableImage(status.image_original_url, true);
if (spec != null) {
openImage(mContext, spec.image_full_url, spec.image_original_url, status.is_possibly_sensitive);
} else {
openImage(mContext, status.image_original_url, null, status.is_possibly_sensitive);
}
break;
}
case R.id.my_profile_image:
case R.id.profile_image: {
if (mContext instanceof Activity) {
openUserProfile((Activity) mContext, status.account_id, status.user_id, status.user_screen_name);
}
break;
}
}
}
@Override
public void onLoadingStarted(final String url, final View view) {
if (view == null || url == null || url.equals(mLoadingViewsMap.get(view))) return;
mLoadingViewsMap.put(view, url);
final View parent = (View) view.getParent();
final ProgressBar progress = (ProgressBar) parent.findViewById(R.id.image_preview_progress);
if (progress != null) {
progress.setVisibility(View.VISIBLE);
progress.setIndeterminate(true);
progress.setMax(100);
}
}
@Override
public void onLoadingFailed(final String url, final View view, final FailReason reason) {
if (view == null) return;
mLoadingViewsMap.remove(view);
final View parent = (View) view.getParent();
final View progress = parent.findViewById(R.id.image_preview_progress);
if (progress != null) {
progress.setVisibility(View.GONE);
}
}
@Override
public void onLoadingComplete(final String url, final View view, final Bitmap bitmap) {
if (view == null) return;
mLoadingViewsMap.remove(view);
final View parent = (View) view.getParent();
final View progress = parent.findViewById(R.id.image_preview_progress);
if (progress != null) {
progress.setVisibility(View.GONE);
}
}
@Override
public void onLoadingCancelled(final String url, final View view) {
if (view == null || url == null || url.equals(mLoadingViewsMap.get(view))) return;
mLoadingViewsMap.remove(view);
final View parent = (View) view.getParent();
final View progress = parent.findViewById(R.id.image_preview_progress);
if (progress != null) {
progress.setVisibility(View.GONE);
}
}
@Override
public void onLoadingProgressChanged(String imageUri, View view, int current, int total) {
if (total == 0) return;
final View parent = (View) view.getParent();
final ProgressBar progress = (ProgressBar) parent.findViewById(R.id.image_preview_progress);
if (progress != null) {
progress.setIndeterminate(false);
progress.setProgress(100 * current / total);
}
}
@Override
public void setData(final Cursor data) {
swapCursor(data);
}
@Override
public void setDisplayProfileImage(final boolean display) {
if (display == mDisplayProfileImage) return;
mDisplayProfileImage = display;
notifyDataSetChanged();
}
@Override
public void setDisplaySensitiveContents(final boolean display) {
if (display == mDisplaySensitiveContents) return;
mDisplaySensitiveContents = display;
notifyDataSetChanged();
}
@Override
public void setFastTimelineProcessingEnabled(final boolean enabled) {
if (mFastTimelineProcessingEnabled == enabled) return;
mFastTimelineProcessingEnabled = enabled;
notifyDataSetChanged();
}
@Override
public void setFiltersEnabled(boolean enabled) {
if (mFiltersEnabled == enabled) return;
mFiltersEnabled = enabled;
rebuildFilterInfo();
notifyDataSetChanged();
}
@Override
public void setGapDisallowed(final boolean disallowed) {
if (mGapDisallowed == disallowed) return;
mGapDisallowed = disallowed;
notifyDataSetChanged();
}
@Override
public void setIgnoredFilterFields(boolean text_plain, boolean text_html, boolean screen_name, boolean source) {
mFilterIgnoreTextPlain = text_plain;
mFilterIgnoreTextHtml = text_html;
mFilterIgnoreScreenName = screen_name;
mFilterIgnoreSource = source;
rebuildFilterInfo();
notifyDataSetChanged();
}
@Override
public void setIndicateMyStatusDisabled(final boolean disable) {
if (mIndicateMyStatusDisabled == disable) return;
mIndicateMyStatusDisabled = disable;
notifyDataSetChanged();
}
@Override
public void setImagePreviewDisplayOption(final String option) {
final int option_int = getImagePreviewDisplayOptionInt(option);
if (option_int == mImagePreviewDisplayOption) return;
mImagePreviewDisplayOption = option_int;
notifyDataSetChanged();
}
@Override
public void setLinkHightlightingEnabled(final boolean enable) {
if (mLinkHighlightingEnabled == enable) return;
mLinkHighlightingEnabled = enable;
notifyDataSetChanged();
}
@Override
public void setLinkUnderlineOnly(boolean underline_only) {
if (mLinkUnderlineOnly == underline_only) return;
mLinkify.setShowUnderline(underline_only);
mLinkUnderlineOnly = underline_only;
notifyDataSetChanged();
}
@Override
public void setMentionsHightlightDisabled(final boolean disable) {
if (disable == mMentionsHighlightDisabled) return;
mMentionsHighlightDisabled = disable;
notifyDataSetChanged();
}
@Override
public void setMultiSelectEnabled(final boolean multi) {
if (mMultiSelectEnabled == multi) return;
mMultiSelectEnabled = multi;
notifyDataSetChanged();
}
@Override
public void setNameDisplayOption(final String option) {
final int option_int = getNameDisplayOptionInt(option);
if (option_int == mNameDisplayOption) return;
mNameDisplayOption = option_int;
notifyDataSetChanged();
}
@Override
public void setShowAbsoluteTime(final boolean show) {
if (show == mShowAbsoluteTime) return;
mShowAbsoluteTime = show;
notifyDataSetChanged();
}
@Override
public void setShowAccountColor(final boolean show) {
if (show == mShowAccountColor) return;
mShowAccountColor = show;
notifyDataSetChanged();
}
@Override
public void setTextSize(final float text_size) {
if (text_size == mTextSize) return;
mTextSize = text_size;
notifyDataSetChanged();
}
@Override
public Cursor swapCursor(final Cursor cursor) {
mIndices = cursor != null ? new StatusCursorIndices(cursor) : null;
rebuildFilterInfo();
return super.swapCursor(cursor);
}
private void rebuildFilterInfo() {
final Cursor cursor = getCursor();
if (cursor != null && mIndices != null && cursor.getCount() > 0) {
if (cursor.getCount() > 0) {
cursor.moveToLast();
final String text_plain = mFilterIgnoreTextPlain ? null : cursor.getString(mIndices.text_plain);
final String text_html = mFilterIgnoreTextHtml ? null : cursor.getString(mIndices.text_html);
final String screen_name = mFilterIgnoreScreenName ? null : cursor.getString(mIndices.screen_name);
final String source = mFilterIgnoreSource ? null : cursor.getString(mIndices.source);
mIsLastItemFiltered = isFiltered(mDatabase, text_plain, text_html, screen_name, source);
} else {
mIsLastItemFiltered = false;
}
} else {
mIsLastItemFiltered = false;
}
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
98cfb14c81c37230e9a9584d2d0b81455499aef6 | 04dfdd89aba44c44f809054d260d23c6bf7255c6 | /data/Big Java 6th Edition/ch11/how_to_1/CountryValue.java | 4d1701f1d0e8e19724d530a5048ce7e041de3e11 | [
"MIT"
] | permissive | shashanksingh28/code-similarity | f7d8f113501484334d67bfd08b73b6b0685586ea | 66f8714083dfefa65f295e32e3a6168f4d8c608e | refs/heads/master | 2021-01-11T19:34:13.142050 | 2017-09-11T00:54:52 | 2017-09-11T00:54:52 | 72,508,354 | 3 | 3 | null | null | null | null | UTF-8 | Java | false | false | 990 | java | /**
Describes a value that is associated with a country
*/
public class CountryValue
{
private String country;
private double value;
/**
Constructs a CountryValue from an input line.
@param line a line containing a country name, followed by a value
*/
public CountryValue(String line)
{
int i = 0; // Locate the start of the first digit
while (!Character.isDigit(line.charAt(i))) { i++; }
int j = i - 1; // Locate the end of the preceding word
while (Character.isWhitespace(line.charAt(j))) { j--; }
country = line.substring(0, j + 1); // Extract the country name
value = Double.parseDouble(line.substring(i).trim()); // Extract the value
}
/**
Gets the country name.
@return the country name
*/
public String getCountry() { return country; }
/**
Gets the associated value.
@return the value associated with the country
*/
public double getValue() { return value; }
}
| [
"ASUAD\\ssing129@en4079595l.fulton.ad.asu.edu"
] | ASUAD\ssing129@en4079595l.fulton.ad.asu.edu |
1a6f91682756d7f2d5f544e18b14f810c14ffacd | cd9ec66d15dda4bebcdd647b0f8a119c3311cda9 | /addressbook-web-tests/src/test/java/ru/stqa/pft/adressbook/contactFormData.java | 0ab7ac6cf689f3802fde5238fe9793b56f3d354c | [
"Apache-2.0"
] | permissive | Lio3003/java_pft | 49c8f09c0bf920c3cbfd2133ea776470c201a800 | f8f5fa5862fd06cfd862b643cf178e8894ba4fe6 | refs/heads/master | 2020-07-18T13:08:32.182133 | 2019-11-05T15:35:09 | 2019-11-05T15:35:09 | 206,250,938 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 968 | java | package ru.stqa.pft.adressbook;
public class contactFormData {
private final String name;
private final String lastname;
private final String nick;
private final String company;
private final String adress;
private final String mobile;
private final String email;
public contactFormData(String name, String lastname, String nick, String company, String adress, String mobile, String email) {
this.name = name;
this.lastname = lastname;
this.nick = nick;
this.company = company;
this.adress = adress;
this.mobile = mobile;
this.email = email;
}
public String getName() {
return name;
}
public String getLastname() {
return lastname;
}
public String getNick() {
return nick;
}
public String getCompany() {
return company;
}
public String getAdress() {
return adress;
}
public String getMobile() {
return mobile;
}
public String getEmail() {
return email;
}
}
| [
"42508171+Lio3003@users.noreply.github.com"
] | 42508171+Lio3003@users.noreply.github.com |
9fa8f2b3e52747417de9180ecea4caa91fb8ca43 | 3c400212b03a87e1bb8ba9b33c3dcbe982f23e96 | /backend/src/main/java/ru/innopolis/stc27/maslakov/enterprise/project42/entities/order/OrderStatusAttributeConverter.java | 03477543cafe00c48209ba2295115e68edb2b0b6 | [] | no_license | dinislam-nur/project42 | b9b687efa049c2ebf356e2d7cd1c12dc83187185 | 3f5c1af380a23e5e6969cf2756473edbb126ad23 | refs/heads/master | 2023-01-03T06:24:04.783805 | 2020-10-30T10:24:11 | 2020-10-30T10:24:11 | 301,665,435 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,609 | java | package ru.innopolis.stc27.maslakov.enterprise.project42.entities.order;
import javax.persistence.AttributeConverter;
import javax.persistence.Converter;
@Converter
public class OrderStatusAttributeConverter implements AttributeConverter<OrderStatus, Integer> {
@Override
public Integer convertToDatabaseColumn(OrderStatus status) {
if (status == null) {
return null;
}
switch (status) {
case USER_CONFIRMED:
return 1;
case CANCELED:
return 2;
case PREPARING:
return 3;
case DONE:
return 4;
case DELIVERED:
return 5;
default:
throw new IllegalArgumentException("Нет соответствующего значения для статуса заказа: " + status);
}
}
@Override
public OrderStatus convertToEntityAttribute(Integer dbInteger) {
if (dbInteger == null) {
return null;
}
switch (dbInteger) {
case 1:
return OrderStatus.USER_CONFIRMED;
case 2:
return OrderStatus.CANCELED;
case 3:
return OrderStatus.PREPARING;
case 4:
return OrderStatus.DONE;
case 5:
return OrderStatus.DELIVERED;
default:
throw new IllegalArgumentException("Нет соответствующего статуса заказа для значения: " + dbInteger);
}
}
}
| [
"dinislamdamn@gmail.com"
] | dinislamdamn@gmail.com |
1a6153698fcb5c21dbb8d943557ac9cb9ab6a6ac | fa91450deb625cda070e82d5c31770be5ca1dec6 | /Diff-Raw-Data/32/32_0015cb221e1a4fba0d0fb4c49b4e3e2c4b1ef210/ActivityApp/32_0015cb221e1a4fba0d0fb4c49b4e3e2c4b1ef210_ActivityApp_t.java | b24cdc1228f2f06ff8ae619e2472388d8e00e592 | [] | no_license | zhongxingyu/Seer | 48e7e5197624d7afa94d23f849f8ea2075bcaec0 | c11a3109fdfca9be337e509ecb2c085b60076213 | refs/heads/master | 2023-07-06T12:48:55.516692 | 2023-06-22T07:55:56 | 2023-06-22T07:55:56 | 259,613,157 | 6 | 2 | null | 2023-06-22T07:55:57 | 2020-04-28T11:07:49 | null | UTF-8 | Java | false | false | 40,213 | java | package biz.bokhorst.xprivacy;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.params.BasicHttpParams;
import org.apache.http.params.HttpConnectionParams;
import org.apache.http.params.HttpParams;
import org.json.JSONArray;
import org.json.JSONObject;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.Notification;
import android.app.NotificationManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Color;
import android.graphics.Typeface;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.provider.Settings.Secure;
import android.support.v4.app.NavUtils;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import android.util.Log;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.BaseExpandableListAdapter;
import android.widget.CheckedTextView;
import android.widget.ExpandableListView;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.widget.Toast;
public class ActivityApp extends Activity {
private int mThemeId;
private ApplicationInfoEx mAppInfo = null;
private RestrictionAdapter mPrivacyListAdapter = null;
public static final String cPackageName = "PackageName";
public static final String cRestrictionName = "RestrictionName";
public static final String cMethodName = "MethodName";
public static final String BASE_URL = "http://updates.faircode.eu/xprivacy";
private static ExecutorService mExecutor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors(),
new PriorityThreadFactory());
private static class PriorityThreadFactory implements ThreadFactory {
@Override
public Thread newThread(Runnable r) {
Thread t = new Thread(r);
t.setPriority(Thread.NORM_PRIORITY);
return t;
}
}
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Set theme
String themeName = PrivacyManager.getSetting(null, this, 0, PrivacyManager.cSettingTheme, "", false);
mThemeId = (themeName.equals("Dark") ? R.style.CustomTheme : R.style.CustomTheme_Light);
setTheme(mThemeId);
// Set layout
setContentView(R.layout.restrictionlist);
// Get arguments
Bundle extras = getIntent().getExtras();
String packageName = extras.getString(cPackageName);
String restrictionName = (extras.containsKey(cRestrictionName) ? extras.getString(cRestrictionName) : null);
String methodName = (extras.containsKey(cMethodName) ? extras.getString(cMethodName) : null);
// Check if new package
if (mAppInfo != null && !mAppInfo.getPackageName().equals(packageName)) {
recreate();
return;
}
// Get app info
mAppInfo = new ApplicationInfoEx(this, packageName);
if (!mAppInfo.getIsInstalled()) {
finish();
return;
}
// Handle info click
ImageView imgInfo = (ImageView) findViewById(R.id.imgInfo);
imgInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent infoIntent = new Intent(Intent.ACTION_VIEW);
infoIntent.setData(Uri.parse(String.format(BASE_URL + "?application_name=%s&package_name=%s",
mAppInfo.getFirstApplicationName(), mAppInfo.getPackageName())));
startActivity(infoIntent);
}
});
// Display app name
TextView tvAppName = (TextView) findViewById(R.id.tvApp);
tvAppName.setText(mAppInfo.toString());
// Background color
if (mAppInfo.getIsSystem()) {
LinearLayout llInfo = (LinearLayout) findViewById(R.id.llInfo);
llInfo.setBackgroundColor(getResources().getColor(getThemed(R.attr.color_dangerous)));
}
// Display app icon
ImageView imgIcon = (ImageView) findViewById(R.id.imgIcon);
imgIcon.setImageDrawable(mAppInfo.getIcon());
// Handle icon click
imgIcon.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intentApp = getPackageManager().getLaunchIntentForPackage(mAppInfo.getPackageName());
if (intentApp != null) {
intentApp.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
view.getContext().startActivity(intentApp);
}
}
});
// Check if internet access
if (!mAppInfo.hasInternet()) {
ImageView imgInternet = (ImageView) findViewById(R.id.imgInternet);
imgInternet.setVisibility(View.INVISIBLE);
}
// Check if frozen
if (!mAppInfo.isFrozen()) {
ImageView imgFrozen = (ImageView) findViewById(R.id.imgFrozen);
imgFrozen.setVisibility(View.INVISIBLE);
}
// Display version
TextView tvVersion = (TextView) findViewById(R.id.tvVersion);
tvVersion.setText(mAppInfo.getVersion());
// Display package name
TextView tvPackageName = (TextView) findViewById(R.id.tvPackageName);
tvPackageName.setText(mAppInfo.getPackageName());
// Get applicable restrictions
boolean fPermission = PrivacyManager.getSettingBool(null, this, 0, PrivacyManager.cSettingFPermission, true,
false);
if (restrictionName != null && methodName != null)
fPermission = false;
List<String> listRestriction = new ArrayList<String>();
for (String rRestrictionName : PrivacyManager.getRestrictions(true))
if (fPermission ? PrivacyManager.hasPermission(this, mAppInfo.getPackageName(), rRestrictionName)
|| PrivacyManager.getUsed(this, mAppInfo.getUid(), rRestrictionName, null) > 0 : true)
listRestriction.add(rRestrictionName);
// Fill privacy list view adapter
final ExpandableListView lvRestriction = (ExpandableListView) findViewById(R.id.elvRestriction);
lvRestriction.setGroupIndicator(null);
mPrivacyListAdapter = new RestrictionAdapter(R.layout.restrictionentry, mAppInfo, listRestriction);
lvRestriction.setAdapter(mPrivacyListAdapter);
if (restrictionName != null && methodName != null) {
int groupPosition = PrivacyManager.getRestrictions(true).indexOf(restrictionName);
int childPosition = PrivacyManager.getMethods(restrictionName).indexOf(
new PrivacyManager.MethodDescription(methodName));
lvRestriction.expandGroup(groupPosition);
lvRestriction.setSelectedChild(groupPosition, childPosition, true);
}
// Up navigation
getActionBar().setDisplayHomeAsUpEnabled(true);
}
@Override
protected void onResume() {
super.onResume();
if (mPrivacyListAdapter != null)
mPrivacyListAdapter.notifyDataSetChanged();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.app, menu);
// Launch
PackageManager pm = getPackageManager();
if (pm.getLaunchIntentForPackage(mAppInfo.getPackageName()) == null)
menu.findItem(R.id.menu_app_launch).setEnabled(false);
// Play
boolean hasMarketLink = Util.hasMarketLink(this, mAppInfo.getPackageName());
menu.findItem(R.id.menu_app_store).setEnabled(hasMarketLink);
return true;
}
@Override
public boolean onPrepareOptionsMenu(Menu menu) {
// Accounts
boolean accountsRestricted = PrivacyManager.getRestricted(null, this, mAppInfo.getUid(),
PrivacyManager.cAccounts, null, false, false);
boolean contactsRestricted = PrivacyManager.getRestricted(null, this, mAppInfo.getUid(),
PrivacyManager.cContacts, null, false, false);
menu.findItem(R.id.menu_accounts).setEnabled(accountsRestricted);
menu.findItem(R.id.menu_contacts).setEnabled(contactsRestricted);
return super.onPrepareOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case android.R.id.home:
Intent upIntent = NavUtils.getParentActivityIntent(this);
if (upIntent != null)
if (NavUtils.shouldUpRecreateTask(this, upIntent))
TaskStackBuilder.create(this).addNextIntentWithParentStack(upIntent).startActivities();
else
NavUtils.navigateUpTo(this, upIntent);
return true;
case R.id.menu_help:
optionHelp();
return true;
case R.id.menu_all:
optionAll();
return true;
case R.id.menu_clear:
optionClear();
return true;
case R.id.menu_usage:
optionUsage();
return true;
case R.id.menu_submit:
optionSubmit();
return true;
case R.id.menu_fetch:
optionFetch();
return true;
case R.id.menu_app_launch:
optionLaunch();
return true;
case R.id.menu_app_settings:
optionSettings();
return true;
case R.id.menu_app_store:
optionStore();
return true;
case R.id.menu_accounts:
optionAccounts();
return true;
case R.id.menu_contacts:
optionContacts();
return true;
default:
return super.onOptionsItemSelected(item);
}
}
// Options
private void optionHelp() {
// Show help
Dialog dialog = new Dialog(ActivityApp.this);
dialog.requestWindowFeature(Window.FEATURE_LEFT_ICON);
dialog.setTitle(getString(R.string.help_application));
dialog.setContentView(R.layout.help);
dialog.setFeatureDrawableResource(Window.FEATURE_LEFT_ICON, getThemed(R.attr.icon_launcher));
dialog.setCancelable(true);
dialog.show();
}
private void optionAll() {
List<String> listRestriction = PrivacyManager.getRestrictions(false);
// Get toggle
boolean restricted = false;
for (String restrictionName : listRestriction)
if (PrivacyManager
.getSettingBool(null, this, 0, String.format("Template.%s", restrictionName), true, false))
if (PrivacyManager.getRestricted(null, this, mAppInfo.getUid(), restrictionName, null, false, false)) {
restricted = true;
break;
}
// Do toggle
restricted = !restricted;
for (String restrictionName : listRestriction)
if (PrivacyManager
.getSettingBool(null, this, 0, String.format("Template.%s", restrictionName), true, false))
PrivacyManager.setRestricted(null, this, mAppInfo.getUid(), restrictionName, null, restricted);
// Refresh display
if (mPrivacyListAdapter != null)
mPrivacyListAdapter.notifyDataSetChanged();
}
private void optionClear() {
PrivacyManager.deleteRestrictions(this, mAppInfo.getUid());
if (mPrivacyListAdapter != null)
mPrivacyListAdapter.notifyDataSetChanged();
}
private void optionUsage() {
Intent intent = new Intent(this, ActivityUsage.class);
intent.putExtra(ActivityUsage.cUid, mAppInfo.getUid());
startActivity(intent);
}
private void optionSubmit() {
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);
alertDialogBuilder.setTitle(getString(R.string.app_name));
alertDialogBuilder.setMessage(getString(R.string.msg_sure));
alertDialogBuilder.setIcon(getThemed(R.attr.icon_launcher));
alertDialogBuilder.setPositiveButton(getString(android.R.string.ok), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
SubmitTask submitTask = new SubmitTask();
submitTask.executeOnExecutor(mExecutor, mAppInfo);
}
});
alertDialogBuilder.setNegativeButton(getString(android.R.string.cancel), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
}
});
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();
}
private void optionFetch() {
if (Util.getLicense() == null) {
// Redirect to pro page
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.faircode.eu/xprivacy/"));
startActivity(browserIntent);
} else {
// Initiate fetch
FetchTask fetchTask = new FetchTask();
fetchTask.executeOnExecutor(mExecutor, mAppInfo);
}
}
private void optionAccounts() {
AccountsTask accountsTask = new AccountsTask();
accountsTask.executeOnExecutor(mExecutor, (Object) null);
}
private void optionLaunch() {
Intent intentLaunch = getPackageManager().getLaunchIntentForPackage(mAppInfo.getPackageName());
startActivity(intentLaunch);
}
private void optionSettings() {
Intent intentSettings = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,
Uri.parse("package:" + mAppInfo.getPackageName()));
startActivity(intentSettings);
}
private void optionStore() {
Intent intentStore = new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id="
+ mAppInfo.getPackageName()));
startActivity(intentStore);
}
private void optionContacts() {
ContactsTask contactsTask = new ContactsTask();
contactsTask.executeOnExecutor(mExecutor, (Object) null);
}
// Tasks
private class AccountsTask extends AsyncTask<Object, Object, Object> {
private List<CharSequence> mListAccount;
private Account[] mAccounts;
private boolean[] mSelection;
@Override
protected Object doInBackground(Object... params) {
// Get accounts
mListAccount = new ArrayList<CharSequence>();
AccountManager accountManager = AccountManager.get(getApplicationContext());
mAccounts = accountManager.getAccounts();
mSelection = new boolean[mAccounts.length];
for (int i = 0; i < mAccounts.length; i++)
try {
mListAccount.add(String.format("%s (%s)", mAccounts[i].name, mAccounts[i].type));
String sha1 = Util.sha1(mAccounts[i].name + mAccounts[i].type);
mSelection[i] = PrivacyManager.getSettingBool(null, ActivityApp.this, 0,
String.format("Account.%d.%s", mAppInfo.getUid(), sha1), false, false);
} catch (Throwable ex) {
Util.bug(null, ex);
}
return null;
}
@Override
protected void onPostExecute(Object result) {
// Build dialog
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(ActivityApp.this);
alertDialogBuilder.setTitle(getString(R.string.menu_accounts));
alertDialogBuilder.setIcon(getThemed(R.attr.icon_launcher));
alertDialogBuilder.setMultiChoiceItems(mListAccount.toArray(new CharSequence[0]), mSelection,
new DialogInterface.OnMultiChoiceClickListener() {
public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) {
try {
Account account = mAccounts[whichButton];
String sha1 = Util.sha1(account.name + account.type);
PrivacyManager.setSetting(null, ActivityApp.this, 0,
String.format("Account.%d.%s", mAppInfo.getUid(), sha1),
Boolean.toString(isChecked));
} catch (Throwable ex) {
Util.bug(null, ex);
Toast toast = Toast.makeText(ActivityApp.this, ex.toString(), Toast.LENGTH_LONG);
toast.show();
}
}
});
alertDialogBuilder.setPositiveButton(getString(R.string.msg_done), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// Do nothing
}
});
// Show dialog
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();
super.onPostExecute(result);
}
}
private class ContactsTask extends AsyncTask<Object, Object, Object> {
private List<CharSequence> mListContact;
private long[] mIds;
private boolean[] mSelection;
@Override
protected Object doInBackground(Object... params) {
// Map contacts
Map<Long, String> mapContact = new LinkedHashMap<Long, String>();
Cursor cursor = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI,
new String[] { ContactsContract.Contacts._ID, Phone.DISPLAY_NAME }, null, null, Phone.DISPLAY_NAME);
if (cursor != null)
try {
while (cursor.moveToNext()) {
long id = cursor.getLong(cursor.getColumnIndex(ContactsContract.Contacts._ID));
String contact = cursor.getString(cursor.getColumnIndex(Phone.DISPLAY_NAME));
if (contact == null)
contact = "-";
mapContact.put(id, contact);
}
} finally {
cursor.close();
}
// Build dialog data
mListContact = new ArrayList<CharSequence>();
mIds = new long[mapContact.size()];
mSelection = new boolean[mapContact.size()];
int i = 0;
for (Long id : mapContact.keySet()) {
mListContact.add(mapContact.get(id));
mIds[i] = id;
mSelection[i++] = PrivacyManager.getSettingBool(null, ActivityApp.this, 0,
String.format("Contact.%d.%d", mAppInfo.getUid(), id), false, false);
}
return null;
}
@Override
protected void onPostExecute(Object result) {
// Build dialog
AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(ActivityApp.this);
alertDialogBuilder.setTitle(getString(R.string.menu_contacts));
alertDialogBuilder.setIcon(getThemed(R.attr.icon_launcher));
alertDialogBuilder.setMultiChoiceItems(mListContact.toArray(new CharSequence[0]), mSelection,
new DialogInterface.OnMultiChoiceClickListener() {
public void onClick(DialogInterface dialog, int whichButton, boolean isChecked) {
// Contact
PrivacyManager.setSetting(null, ActivityApp.this, 0,
String.format("Contact.%d.%d", mAppInfo.getUid(), mIds[whichButton]),
Boolean.toString(isChecked));
// Raw contacts
Cursor cursor = getContentResolver().query(ContactsContract.RawContacts.CONTENT_URI,
new String[] { ContactsContract.RawContacts._ID },
ContactsContract.RawContacts.CONTACT_ID + "=?",
new String[] { String.valueOf(mIds[whichButton]) }, null);
try {
while (cursor.moveToNext()) {
PrivacyManager.setSetting(null, ActivityApp.this, 0,
String.format("RawContact.%d.%d", mAppInfo.getUid(), cursor.getLong(0)),
Boolean.toString(isChecked));
}
} finally {
cursor.close();
}
}
});
alertDialogBuilder.setPositiveButton(getString(R.string.msg_done), new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// Do nothing
}
});
// Show dialog
AlertDialog alertDialog = alertDialogBuilder.create();
alertDialog.show();
super.onPostExecute(result);
}
}
@SuppressLint("DefaultLocale")
private class SubmitTask extends AsyncTask<ApplicationInfoEx, Object, Object> {
private final static int NOTIFY_ID = 5;
@Override
protected void onPreExecute() {
notify(null);
}
@Override
protected Object doInBackground(ApplicationInfoEx... params) {
try {
// Encode restrictions
int uid = params[0].getUid();
JSONArray jSettings = new JSONArray();
for (String restrictionName : PrivacyManager.getRestrictions(true)) {
boolean restricted = PrivacyManager.getRestricted(null, ActivityApp.this, uid, restrictionName,
null, false, false);
// Category
long used = PrivacyManager.getUsed(ActivityApp.this, uid, restrictionName, null);
JSONObject jRestriction = new JSONObject();
jRestriction.put("restriction", restrictionName);
jRestriction.put("restricted", restricted);
jRestriction.put("used", used);
jSettings.put(jRestriction);
// Methods
for (PrivacyManager.MethodDescription md : PrivacyManager.getMethods(restrictionName)) {
boolean mRestricted = restricted
&& PrivacyManager.getRestricted(null, ActivityApp.this, uid, restrictionName,
md.getMethodName(), false, false);
long mUsed = PrivacyManager.getUsed(ActivityApp.this, uid, restrictionName, md.getMethodName());
JSONObject jMethod = new JSONObject();
jMethod.put("restriction", restrictionName);
jMethod.put("method", md.getMethodName());
jMethod.put("restricted", mRestricted);
jMethod.put("used", mUsed);
jSettings.put(jMethod);
}
}
// Get data
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
String android_id = Secure.getString(ActivityApp.this.getContentResolver(), Secure.ANDROID_ID);
// Encode package
JSONObject jRoot = new JSONObject();
jRoot.put("protocol_version", 4);
jRoot.put("android_id", Util.md5(android_id).toLowerCase());
jRoot.put("android_sdk", Build.VERSION.SDK_INT);
jRoot.put("xprivacy_version", pInfo.versionCode);
jRoot.put("application_name", params[0].getFirstApplicationName());
jRoot.put("package_name", params[0].getPackageName());
jRoot.put("package_version", params[0].getVersion());
jRoot.put("settings", jSettings);
// Submit
int TIMEOUT_MILLISEC = 45000; // 45 seconds
HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);
HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);
HttpClient httpclient = new DefaultHttpClient(httpParams);
HttpPost httpost = new HttpPost(BASE_URL + "?format=json&action=submit");
httpost.setEntity(new ByteArrayEntity(jRoot.toString().getBytes("UTF-8")));
httpost.setHeader("Accept", "application/json");
httpost.setHeader("Content-type", "application/json");
HttpResponse response = httpclient.execute(httpost);
StatusLine statusLine = response.getStatusLine();
if (statusLine.getStatusCode() == HttpStatus.SC_OK) {
// Succeeded
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
return new JSONObject(out.toString("UTF-8"));
} else {
// Failed
response.getEntity().getContent().close();
throw new IOException(statusLine.getReasonPhrase());
}
} catch (Throwable ex) {
Util.bug(null, ex);
return ex;
}
}
@Override
protected void onPostExecute(Object result) {
notify(result);
super.onPostExecute(result);
}
private void notify(Object result) {
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(ActivityApp.this);
notificationBuilder.setSmallIcon(R.drawable.ic_launcher);
notificationBuilder.setContentTitle(getString(R.string.menu_submit));
if (result == null) {
notificationBuilder.setContentText(mAppInfo.getFirstApplicationName());
} else if (result.getClass().equals(JSONObject.class)) {
JSONObject status = (JSONObject) result;
try {
if (status.getBoolean("ok"))
notificationBuilder.setContentText(String.format("%s: %s", mAppInfo.getFirstApplicationName(),
getString(R.string.msg_done)));
else
notificationBuilder.setContentText(String.format("%s: %s", mAppInfo.getFirstApplicationName(),
status.getString("error")));
} catch (Throwable ex) {
notificationBuilder.setContentText(String.format("%s: %s", mAppInfo.getFirstApplicationName(), ex));
}
} else
notificationBuilder.setContentText(result.toString());
notificationBuilder.setWhen(System.currentTimeMillis());
notificationBuilder.setAutoCancel(true);
Notification notification = notificationBuilder.build();
NotificationManager notificationManager = (NotificationManager) ActivityApp.this
.getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.notify(NOTIFY_ID, notification);
}
}
private class FetchTask extends AsyncTask<ApplicationInfoEx, Object, Object> {
private ApplicationInfoEx mAppInfo;
@Override
protected Object doInBackground(ApplicationInfoEx... params) {
try {
// Get data
mAppInfo = params[0];
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
String android_id = Secure.getString(ActivityApp.this.getContentResolver(), Secure.ANDROID_ID);
String[] license = Util.getLicense();
// Encode package
JSONObject jRoot = new JSONObject();
jRoot.put("protocol_version", 3);
jRoot.put("android_id", android_id);
jRoot.put("android_sdk", Build.VERSION.SDK_INT);
jRoot.put("xprivacy_version", pInfo.versionCode);
jRoot.put("application_name", mAppInfo.getFirstApplicationName());
jRoot.put("package_name", mAppInfo.getPackageName());
jRoot.put("package_version", mAppInfo.getVersion());
jRoot.put("email", license[1]);
jRoot.put("signature", license[2]);
// Fetch
int TIMEOUT_MILLISEC = 45000; // 45 seconds
HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);
HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);
HttpClient httpclient = new DefaultHttpClient(httpParams);
HttpPost httpost = new HttpPost(BASE_URL + "?format=json&action=fetch");
httpost.setEntity(new ByteArrayEntity(jRoot.toString().getBytes("UTF-8")));
httpost.setHeader("Accept", "application/json");
httpost.setHeader("Content-type", "application/json");
HttpResponse response = httpclient.execute(httpost);
StatusLine statusLine = response.getStatusLine();
if (statusLine.getStatusCode() == HttpStatus.SC_OK) {
// Succeeded
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
return new JSONObject(out.toString("UTF-8"));
} else {
// Failed
response.getEntity().getContent().close();
throw new IOException(statusLine.getReasonPhrase());
}
} catch (Throwable ex) {
Util.bug(null, ex);
return ex;
}
}
@Override
protected void onPostExecute(Object result) {
try {
if (result.getClass().equals(JSONObject.class)) {
JSONObject status = (JSONObject) result;
if (status.getBoolean("ok")) {
JSONArray settings = status.getJSONArray("settings");
if (settings.length() > 0) {
// Delete existing restrictions
PrivacyManager.deleteRestrictions(ActivityApp.this, mAppInfo.getUid());
// Set fetched restrictions
for (int i = 0; i < settings.length(); i++) {
JSONObject entry = settings.getJSONObject(i);
String restrictionName = entry.getString("restriction");
String methodName = entry.has("method") ? entry.getString("method") : null;
int voted_restricted = entry.getInt("restricted");
int voted_not_restricted = entry.getInt("not_restricted");
boolean restricted = (voted_restricted > voted_not_restricted);
if (methodName == null || restricted)
PrivacyManager.setRestricted(null, ActivityApp.this, mAppInfo.getUid(),
restrictionName, methodName, restricted);
if (mPrivacyListAdapter != null)
mPrivacyListAdapter.notifyDataSetChanged();
}
} else
Util.log(null, Log.INFO, "No restrictions available");
} else
throw new Exception(status.getString("error"));
} else
throw (Throwable) result;
} catch (Throwable ex) {
Util.bug(null, ex);
Toast toast = Toast.makeText(ActivityApp.this, ex.toString(), Toast.LENGTH_LONG);
toast.show();
}
super.onPostExecute(result);
}
}
// Adapters
private class RestrictionAdapter extends BaseExpandableListAdapter {
private ApplicationInfoEx mAppInfo;
private List<String> mRestrictions;
private LayoutInflater mInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
public RestrictionAdapter(int resource, ApplicationInfoEx appInfo, List<String> restrictions) {
mAppInfo = appInfo;
mRestrictions = restrictions;
}
@Override
public Object getGroup(int groupPosition) {
return mRestrictions.get(groupPosition);
}
@Override
public int getGroupCount() {
return mRestrictions.size();
}
@Override
public long getGroupId(int groupPosition) {
return groupPosition;
}
private class GroupViewHolder {
private View row;
private int position;
public ImageView imgIndicator;
public ImageView imgUsed;
public ImageView imgGranted;
public ImageView imgInfo;
public CheckedTextView ctvRestriction;
public GroupViewHolder(View theRow, int thePosition) {
row = theRow;
position = thePosition;
imgIndicator = (ImageView) row.findViewById(R.id.imgIndicator);
imgUsed = (ImageView) row.findViewById(R.id.imgUsed);
imgGranted = (ImageView) row.findViewById(R.id.imgGranted);
imgInfo = (ImageView) row.findViewById(R.id.imgInfo);
ctvRestriction = (CheckedTextView) row.findViewById(R.id.ctvName);
}
}
private class GroupHolderTask extends AsyncTask<Object, Object, Object> {
private int position;
private GroupViewHolder holder;
private String restrictionName;
private boolean used;
private boolean permission;
private boolean restricted;
public GroupHolderTask(int thePosition, GroupViewHolder theHolder, String theRestrictionName) {
position = thePosition;
holder = theHolder;
restrictionName = theRestrictionName;
}
@Override
protected Object doInBackground(Object... params) {
if (holder.position == position) {
// Get info
used = (PrivacyManager.getUsed(holder.row.getContext(), mAppInfo.getUid(), restrictionName, null) != 0);
permission = PrivacyManager.hasPermission(holder.row.getContext(), mAppInfo.getPackageName(),
restrictionName);
restricted = PrivacyManager.getRestricted(null, holder.row.getContext(), mAppInfo.getUid(),
restrictionName, null, false, false);
}
return null;
}
@Override
protected void onPostExecute(Object result) {
if (holder.position == position && restrictionName != null) {
// Set data
holder.ctvRestriction.setTypeface(null, used ? Typeface.BOLD_ITALIC : Typeface.NORMAL);
holder.imgUsed.setVisibility(used ? View.VISIBLE : View.INVISIBLE);
holder.imgGranted.setVisibility(permission ? View.VISIBLE : View.INVISIBLE);
holder.ctvRestriction.setChecked(restricted);
// Listen for restriction changes
holder.ctvRestriction.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
boolean restricted = PrivacyManager.getRestricted(null, view.getContext(),
mAppInfo.getUid(), restrictionName, null, false, false);
restricted = !restricted;
holder.ctvRestriction.setChecked(restricted);
PrivacyManager.setRestricted(null, view.getContext(), mAppInfo.getUid(), restrictionName,
null, restricted);
notifyDataSetChanged(); // Needed to update childs
}
});
}
}
}
@Override
public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {
GroupViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.restrictionentry, null);
holder = new GroupViewHolder(convertView, groupPosition);
convertView.setTag(holder);
} else {
holder = (GroupViewHolder) convertView.getTag();
holder.position = groupPosition;
}
// Get entry
final String restrictionName = (String) getGroup(groupPosition);
// Set background color
if (PrivacyManager.isDangerousRestriction(restrictionName))
holder.row.setBackgroundColor(getResources().getColor(getThemed(R.attr.color_dangerous)));
else
holder.row.setBackgroundColor(Color.TRANSPARENT);
// Indicator state
holder.imgIndicator.setImageResource(getThemed(isExpanded ? R.attr.icon_expander_maximized
: R.attr.icon_expander_minimized));
// Disable indicator for empty groups
if (getChildrenCount(groupPosition) == 0)
holder.imgIndicator.setVisibility(View.INVISIBLE);
else
holder.imgIndicator.setVisibility(View.VISIBLE);
// Display if used
holder.ctvRestriction.setTypeface(null, Typeface.NORMAL);
holder.imgUsed.setVisibility(View.INVISIBLE);
// Check if permission
holder.imgGranted.setVisibility(View.INVISIBLE);
// Handle info
holder.imgInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent infoIntent = new Intent(Intent.ACTION_VIEW);
infoIntent.setData(Uri.parse(String.format("http://wiki.faircode.eu/index.php?title=%s",
restrictionName)));
startActivity(infoIntent);
}
});
// Display localized name
holder.ctvRestriction.setText(PrivacyManager.getLocalizedName(holder.row.getContext(), restrictionName));
// Display restriction
holder.ctvRestriction.setChecked(false);
holder.ctvRestriction.setClickable(false);
// Async update
new GroupHolderTask(groupPosition, holder, restrictionName).executeOnExecutor(mExecutor, (Object) null);
return convertView;
}
@Override
public Object getChild(int groupPosition, int childPosition) {
return PrivacyManager.getMethods((String) getGroup(groupPosition)).get(childPosition);
}
@Override
public long getChildId(int groupPosition, int childPosition) {
return childPosition;
}
@Override
public int getChildrenCount(int groupPosition) {
return PrivacyManager.getMethods((String) getGroup(groupPosition)).size();
}
@Override
public boolean isChildSelectable(int groupPosition, int childPosition) {
return false;
}
private class ChildViewHolder {
private View row;
private int groupPosition;
private int childPosition;
public ImageView imgUsed;
public ImageView imgGranted;
public CheckedTextView ctvMethodName;
private ChildViewHolder(View theRow, int gPosition, int cPosition) {
row = theRow;
groupPosition = gPosition;
childPosition = cPosition;
imgUsed = (ImageView) row.findViewById(R.id.imgUsed);
imgGranted = (ImageView) row.findViewById(R.id.imgGranted);
ctvMethodName = (CheckedTextView) row.findViewById(R.id.ctvMethodName);
}
}
private class ChildHolderTask extends AsyncTask<Object, Object, Object> {
private int groupPosition;
private int childPosition;
private ChildViewHolder holder;
private String restrictionName;
private PrivacyManager.MethodDescription md;
private long lastUsage;
private boolean parentRestricted;
private boolean permission;
private boolean restricted;
public ChildHolderTask(int gPosition, int cPosition, ChildViewHolder theHolder, String theRestrictionName) {
groupPosition = gPosition;
childPosition = cPosition;
holder = theHolder;
restrictionName = theRestrictionName;
}
@Override
protected Object doInBackground(Object... params) {
if (holder.groupPosition == groupPosition && holder.childPosition == childPosition) {
// Get info
md = (PrivacyManager.MethodDescription) getChild(groupPosition, childPosition);
lastUsage = PrivacyManager.getUsed(holder.row.getContext(), mAppInfo.getUid(), restrictionName,
md.getMethodName());
parentRestricted = PrivacyManager.getRestricted(null, holder.row.getContext(), mAppInfo.getUid(),
restrictionName, null, false, false);
permission = PrivacyManager.hasPermission(holder.row.getContext(), mAppInfo.getPackageName(), md);
restricted = PrivacyManager.getRestricted(null, holder.row.getContext(), mAppInfo.getUid(),
restrictionName, md.getMethodName(), false, false);
}
return null;
}
@Override
protected void onPostExecute(Object result) {
if (holder.groupPosition == groupPosition && holder.childPosition == childPosition
&& restrictionName != null && md != null) {
// Set data
if (lastUsage > 0) {
Date date = new Date(lastUsage);
SimpleDateFormat format = new SimpleDateFormat("dd/HH:mm", Locale.ROOT);
holder.ctvMethodName.setText(String.format("%s %s", md.getMethodName(), format.format(date)));
}
holder.ctvMethodName.setEnabled(parentRestricted);
holder.imgUsed.setVisibility(lastUsage == 0 ? View.INVISIBLE : View.VISIBLE);
holder.ctvMethodName.setTypeface(null, lastUsage == 0 ? Typeface.NORMAL : Typeface.BOLD_ITALIC);
holder.imgGranted.setVisibility(permission ? View.VISIBLE : View.INVISIBLE);
holder.ctvMethodName.setChecked(restricted);
// Listen for restriction changes
holder.ctvMethodName.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
boolean restricted = PrivacyManager.getRestricted(null, view.getContext(),
mAppInfo.getUid(), restrictionName, md.getMethodName(), false, false);
restricted = !restricted;
holder.ctvMethodName.setChecked(restricted);
PrivacyManager.setRestricted(null, view.getContext(), mAppInfo.getUid(), restrictionName,
md.getMethodName(), restricted);
}
});
}
}
}
@Override
public View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView,
ViewGroup parent) {
ChildViewHolder holder;
if (convertView == null) {
convertView = mInflater.inflate(R.layout.restrictionchild, null);
holder = new ChildViewHolder(convertView, groupPosition, childPosition);
convertView.setTag(holder);
} else {
holder = (ChildViewHolder) convertView.getTag();
holder.groupPosition = groupPosition;
holder.childPosition = childPosition;
}
// Get entry
final String restrictionName = (String) getGroup(groupPosition);
final PrivacyManager.MethodDescription md = (PrivacyManager.MethodDescription) getChild(groupPosition,
childPosition);
// Set background color
if (PrivacyManager.isDangerousMethod(restrictionName, md.getMethodName()))
holder.row.setBackgroundColor(getResources().getColor(getThemed(R.attr.color_dangerous)));
else
holder.row.setBackgroundColor(Color.TRANSPARENT);
// Display method name
holder.ctvMethodName.setText(md.getMethodName());
holder.ctvMethodName.setEnabled(false);
holder.ctvMethodName.setTypeface(null, Typeface.NORMAL);
// Display if used
holder.imgUsed.setVisibility(View.INVISIBLE);
// Display if permissions
holder.imgGranted.setVisibility(View.INVISIBLE);
// Display restriction
holder.ctvMethodName.setChecked(false);
holder.ctvMethodName.setClickable(false);
// Async update
new ChildHolderTask(groupPosition, childPosition, holder, restrictionName).executeOnExecutor(mExecutor,
(Object) null);
return convertView;
}
@Override
public boolean hasStableIds() {
return true;
}
}
// Helper methods
private int getThemed(int attr) {
TypedValue typedvalueattr = new TypedValue();
getTheme().resolveAttribute(attr, typedvalueattr, true);
return typedvalueattr.resourceId;
}
}
| [
"yuzhongxing88@gmail.com"
] | yuzhongxing88@gmail.com |
eaad0da4a4fce95abba3346ced2b54edef96025e | ce7e54afa434580d4aa428e55c49ca568fd5beb9 | /CarWorkshop_mapeador/src/uo/ri/model/TarjetaCredito.java | f129442d2e30f0986eb6c1dc7f265471a9b4b448 | [] | no_license | sergi8/workSpaceRI | fffe399db765c41438a74a501ae5bd6253baf2d6 | ae3afb4f5da8fbbc6233ddc771dbf7e052e81437 | refs/heads/master | 2020-08-09T20:06:25.727784 | 2015-02-13T18:22:14 | 2015-02-13T18:22:14 | 30,767,679 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,443 | java | package uo.ri.model;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@Entity
public class TarjetaCredito extends MedioPago{
private String tipo;
@Temporal(TemporalType.DATE) private Date validez;
private String numero;
public TarjetaCredito(Cliente cliente, String numero) {
super(cliente);
this.numero = numero;
}
public TarjetaCredito() {
super();
}
public String getTipo() {
return tipo;
}
public void setTipo(String tipo) {
this.tipo = tipo;
}
public Date getValidez() {
return validez;
}
public void setValidez(Date validez) {
this.validez = validez;
}
public String getNumero() {
return numero;
}
@Override
public int hashCode() {
final int prime = 31;
int result = super.hashCode();
result = prime * result + ((numero == null) ? 0 : numero.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!super.equals(obj))
return false;
if (getClass() != obj.getClass())
return false;
TarjetaCredito other = (TarjetaCredito) obj;
if (numero == null) {
if (other.numero != null)
return false;
} else if (!numero.equals(other.numero))
return false;
return true;
}
@Override
public String toString() {
return "TarjetaCredito [tipo=" + tipo + ", validez=" + validez
+ ", numero=" + numero + "]";
}
}
| [
"sergio.c8@hotmail.com"
] | sergio.c8@hotmail.com |
3f27b13d66ac6653febde0b92e7aae6f56630a5b | 56fb3c97ba2ea56c7564cce6feb8334a859e52c8 | /src/test/java/com/example/slackjobs/helpers/TestUtil.java | 77b69ed7d1016c0d9694d94c618c3e30e1827487 | [] | no_license | bonzzy/slack-jobs | b45917ba6cdf74e6ad1c5c03b5372668c63dfd43 | 9e3c57534fa127a12dfbdb96b9c95da5b26592b3 | refs/heads/master | 2020-03-19T16:16:45.758893 | 2018-09-16T15:17:28 | 2018-09-16T15:17:28 | 136,708,922 | 0 | 0 | null | 2018-09-16T15:17:29 | 2018-06-09T09:21:20 | TypeScript | UTF-8 | Java | false | false | 975 | java | package com.example.slackjobs.helpers;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.http.MediaType;
import java.io.IOException;
import java.nio.charset.Charset;
public class TestUtil {
public static final MediaType APPLICATION_JSON_UTF8 = new MediaType(MediaType.APPLICATION_JSON.getType(), MediaType.APPLICATION_JSON.getSubtype(), Charset.forName("utf8"));
public static byte[] convertObjectToJsonBytes(Object object) throws IOException {
ObjectMapper mapper = new ObjectMapper();
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
return mapper.writeValueAsBytes(object);
}
public static String createStringWithLength(int length) {
StringBuilder builder = new StringBuilder();
for (int index = 0; index < length; index++) {
builder.append("a");
}
return builder.toString();
}
} | [
"tomislav.fabeta@gmail.com"
] | tomislav.fabeta@gmail.com |
59c505738ee4d8b4bc4775c237c441436c4f360e | 9964e9d658469063d792c52f5b190c050c3b99a1 | /src/main/java/de/fuerstenau/gradle/commentstripper/antlr/GroovyGrammarPredicates.java | 926a0fdf90ce9daa7745b03edf7f8e8be48ddc62 | [
"MIT"
] | permissive | mfuerstenau/gradle-commentstripper-plugin | ccb37169f20c916bd54e381de15e018828641706 | bea89a7cad361ffb66011a0279560d790e48e944 | refs/heads/master | 2021-01-19T03:35:20.931371 | 2016-07-31T16:44:17 | 2016-07-31T16:44:17 | 51,470,371 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,456 | java | /* The MIT License (MIT)
*
* Copyright (c) 2015 Malte Fürstenau
*
* 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.
*/
package de.fuerstenau.gradle.commentstripper.antlr;
import static de.fuerstenau.gradle.commentstripper.antlr.GroovyLexer.VISIBILITY_MODIFIER;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.TokenStream;
/**
*
* @author Nuffe
*/
public class GroovyGrammarPredicates
{
public static boolean isCurrentClassName (TokenStream tokenStream, String currentClassName)
{
return tokenStream.LT (tokenStream.LT (1).getType () == VISIBILITY_MODIFIER ? 2 : 1).getText ().equals (currentClassName);
}
public static boolean isFollowedByJavaLetterInGString (CharStream cs)
{
int c1 = cs.LA (1);
String str1 = String.valueOf ((char) c1);
if (str1.matches ("[a-zA-Z_{]"))
{
return true;
}
if (str1.matches ("[^\u0000-\u007F\uD800-\uDBFF]")
&& Character.isJavaIdentifierPart (c1))
{
return true;
}
int c2 = cs.LA (2);
String str2 = String.valueOf ((char) c2);
if (str1.matches ("[\uD800-\uDBFF]")
&& str2.matches ("[\uDC00-\uDFFF]")
&& Character.isJavaIdentifierPart (Character.toCodePoint ((char) c1, (char) c2)))
{
return true;
}
return false;
}
}
| [
"gh150809.5.antaran@xoxy.net"
] | gh150809.5.antaran@xoxy.net |
7ba7d240ddd1e044547d8e4d70dcb58955865949 | a8c540307ac00379eaf6ee7969e8e1e3d19633f0 | /src/main/java/com/jinshi/service/OutInRecordService.java | d26d00f5c0e6d66e4cd19f45e88c6c0ba20ca2a3 | [] | no_license | dingjing0518/carManager | e890d12d4c4598c7d266a68da1d605b76af86497 | 9386cf03c4883c4121fac4a1fcd2404767706ab1 | refs/heads/master | 2023-02-10T20:11:43.071749 | 2021-01-10T14:44:22 | 2021-01-10T14:44:22 | 328,405,383 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 503 | java | package com.jinshi.service;
import com.jinshi.entity.OutInRecord;
import java.util.Map;
public interface OutInRecordService {
int deleteByPrimaryKey(Integer id);
int insert(OutInRecord record);
int insertSelective(OutInRecord record);
OutInRecord selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(OutInRecord record);
int updateByPrimaryKey(OutInRecord record);
Map<String,Object> selectParkRecord(String memberId);
void connCamera(int tHandle);
}
| [
"dingjing@wx.bigcloudsys.com"
] | dingjing@wx.bigcloudsys.com |
2dc9aa01057b51abdc1eb7ef8cc6d15118b151a9 | 00edf4d83b073c2e2890dd4beed105439c1961a1 | /vividus-plugin-web-app/src/main/java/org/vividus/bdd/converter/HttpMethodSetConverter.java | e006d6148951443e17102108a5d19547f36c3017 | [
"Apache-2.0"
] | permissive | Yauhenda/vividus | 740ce30edf52b0a38fe7b6447cd5fc3169801d1c | 583df23b34dfc48d3911ed1b300a273c2fd1777c | refs/heads/master | 2023-02-02T19:18:17.966929 | 2021-10-05T20:07:40 | 2021-10-05T20:07:40 | 225,830,528 | 0 | 0 | Apache-2.0 | 2019-12-04T09:36:55 | 2019-12-04T09:36:54 | null | UTF-8 | Java | false | false | 1,364 | java | /*
* Copyright 2019-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.vividus.bdd.converter;
import java.util.EnumSet;
import java.util.Set;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import javax.inject.Named;
import com.browserup.harreader.model.HttpMethod;
import org.jbehave.core.steps.ParameterConverters.FunctionalParameterConverter;
@Named
public class HttpMethodSetConverter extends FunctionalParameterConverter<String, Set<HttpMethod>>
{
public HttpMethodSetConverter()
{
super(value -> Stream.of(value.split("(or|,)"))
.map(String::trim)
.map(HttpMethod::valueOf)
.collect(Collectors.toCollection(() -> EnumSet.noneOf(HttpMethod.class)))
);
}
}
| [
"noreply@github.com"
] | Yauhenda.noreply@github.com |
4871b1b5e5a866b79344a2d18bf723ee7d6f91d1 | 0f4f2ab64f55e374e33837c4044333f15b00361b | /DesignPattarn/src/com/jspider/spring/creational/builderdesignpattern/TestBuilderPattern.java | dc738051464c8e7728b47c598b46a1e74d95bd7b | [] | no_license | singhvikash630/design_patterns | 481ccb36a7cf5e50fc73e8b0d3758c0b74c65a3e | e3255092ba91c7deae1bf983b859ddae566e34a6 | refs/heads/master | 2022-11-07T17:15:59.009941 | 2020-06-25T12:58:56 | 2020-06-25T12:58:56 | 274,915,723 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 248 | java | package com.jspider.spring.creational.builderdesignpattern;
public class TestBuilderPattern {
public static void main(String[] args) {
Phone phone = new PhoneBuilder().setBattery(1).setOs("ios").getPhone();
System.out.println(phone);
}
}
| [
"singh.vikash630@gmail.com"
] | singh.vikash630@gmail.com |
5d0e00598027b206b6ee26a827a943d141756c58 | 7f694e7823bb5adf901bfca9c70025529a900565 | /src/Lesson22/Animal.java | 7f828458ab41c6acc72b67899d21111e6e2f6757 | [] | no_license | okrysiuk/ZaurArray | 8da25618d27ba3ea7a85fd63c73079f74240c427 | 006b5a7d140998361ae5e88b42efee9f6d7bf2ec | refs/heads/master | 2020-12-24T04:05:19.729125 | 2020-02-05T12:54:08 | 2020-02-05T12:54:08 | 237,376,716 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,374 | java | package Lesson22;
public class Animal {
Animal(int e){
eyes = e;
System.out.println("I am animal.");
}
public static int eyes;
public static void eat(){
System.out.println("Animal eats.");
}
public static void drink(){
System.out.println("Animal drinks.");
}
}
class Pet extends Animal {
Pet(){
super(2);
System.out.println("I am pet.");
}
int tail = 1;
int paw = 4;
public static void run(){
System.out.println("Pet runs.");
}
public static void jump(){
System.out.println("Pet jumps.");
}
}
class Dog extends Pet {
String name;
void showInfo() {
System.out.println("I am dog and my name is " + name);
}
Dog(String n){
name = n;
showInfo();
}
public static void play() {
System.out.println("Dog plays.");
}
}
class Cat extends Pet {
String name;
void showInfo() {
System.out.println("I am cat and my name is " + name);
}
Cat(String n){
name = n;
showInfo();
}
public static void sleep() {
System.out.println("Cat sleeps.");
}
}
class Test {
public static void main(String[] args) {
Dog dog = new Dog("Killer");
Cat cat = new Cat("Puss");
System.out.println(dog.paw);
cat.sleep();
}
} | [
"oleksandr.krysiuk@gmail.com"
] | oleksandr.krysiuk@gmail.com |
ea428fb5dfa505cb43ee71212128a1ef147b29ba | e71f63cca0a49fd2640144d337d4565a2c39b014 | /ejb/src/main/java/py/pol/una/ii/pw/service/ProductoService.java | 8ee83f918f023ed75f9fb352e76b2311f2075300 | [] | no_license | gerardoriveros/EjbJax | 7d57862482bfe5ece1af2cc74b1a9ea81b01c05a | 9cbe9103a8eef84620c56107440b99fe9e86a475 | refs/heads/master | 2021-01-22T11:12:16.708063 | 2017-05-30T23:15:51 | 2017-05-30T23:15:51 | 92,676,225 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,717 | java | package py.pol.una.ii.pw.service;
import java.util.List;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.enterprise.event.Event;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import py.pol.una.ii.pw.mapper.ProductoMapper;
import py.pol.una.ii.pw.model.Producto;
import py.pol.una.ii.pw.model.ProductoDuplicado;
import py.pol.una.ii.pw.util.MyBatisUtil;
@Stateless
public class ProductoService {
//@Inject
//private static Event<Producto> productoEventSrc;
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public List<Producto> getAllProducto(int desde, int cantidad) {
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
return productoMapper.getAllProducto(desde, cantidad);
}finally{
session.close();
}
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public Producto selectProductoById(int id) {
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
return productoMapper.selectProductoById(id);
}finally{
session.close();
}
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void createProducto(Producto producto) throws Exception{
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
//System.out.println("producto " + productoMapper.getClass().getName());
Producto p = productoMapper.selectProductoNombre(producto.getNombre());
//System.out.println("producto " + p);
if (p == null){
productoMapper.insertProducto(producto);
//productoEventSrc.fire(producto);
}else{
System.out.println("El producto "+ producto.getNombre()+" ya exite, se guardata en la tabla de productos duplicados.");
guardarDuplicado(producto);
}
}catch(Exception e){
//System.out.println("producto error");
throw e;
}
}finally{
session.close();
}
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void guardarDuplicado(Producto producto){
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
Producto existente= productoMapper.selectProductoNombre(producto.getNombre());
Integer id=existente.getId_producto();
ProductoDuplicado pd= productoMapper.selectProductoDuplicadoById(id);
if (pd == null){
pd= new ProductoDuplicado();
pd.setId_producto(id);
pd.setCantidad(1L);
productoMapper.insertProductoDuplicado(pd);
}else{
pd.setCantidad(pd.getCantidad() + 1);
productoMapper.updateProductoDuplicado(pd);
}
}finally{
session.close();
}
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void updateProducto(Producto producto){
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
productoMapper.updateProducto(producto);
}finally{
session.close();
}
}
@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
public void deleteProducto(int id){
SqlSession session = MyBatisUtil.getSqlSessionFactory().openSession();
try{
ProductoMapper productoMapper = session.getMapper(ProductoMapper.class);
productoMapper.deleteProducto(id);;
}finally{
session.close();
}
}
}
| [
"gerardojriveros@gmail.com"
] | gerardojriveros@gmail.com |
6a44f0073be2c70145b9adf5db8de696273d2161 | 0672544b34b0d2e9d86d28b0cbf7486d1b952a97 | /src/main/java/com/example/demo/config/RestTemplateConfig.java | dedd7485df8586f680bbe457d30859bce9d3946f | [] | no_license | raajasekhar10/weather_assignment | 4b126d3e00ecf446e2a42239705c3f3784baac99 | e5e5a6e2029804eaf9ba50e23ee7089c7b15aaa0 | refs/heads/master | 2020-05-07T14:14:09.362754 | 2019-04-10T14:06:55 | 2019-04-10T14:06:55 | 180,584,560 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 10,172 | java | package com.example.demo.config;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpRequestRetryHandler;
import org.apache.http.client.ServiceUnavailableRetryStrategy;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.config.RegistryBuilder;
import org.apache.http.conn.DnsResolver;
import org.apache.http.conn.HttpConnectionFactory;
import org.apache.http.conn.SchemePortResolver;
import org.apache.http.conn.socket.ConnectionSocketFactory;
import org.apache.http.conn.socket.PlainConnectionSocketFactory;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.DefaultHttpRequestRetryHandler;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.impl.conn.PoolingHttpClientConnectionManager;
import org.apache.http.protocol.HttpContext;
import org.apache.http.ssl.SSLContextBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.client.ClientHttpResponse;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.web.client.ResponseErrorHandler;
import org.springframework.web.client.RestTemplate;
import javax.net.ssl.SSLContext;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.KeyStore;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
@Configuration
public class RestTemplateConfig {
private static final Logger log = LoggerFactory.getLogger(RestTemplateConfig.class);
@Value("${httpConnection.max:100}")
private int maxHttpConnection;
@Value("${httpConnection.perRoute:30}")
private int maxPerRouteConnection;
@Value("${httpConnection.validateInactivity:3000}")
private int validateInactivity;
@Value("${httpConnection.ssl.trustAllCertificates:false}")
private boolean trustAllCertificates;
@Value("${httpConnection.timeout.socket:5000}")
private int socketTimeout;
@Value("${httpConnection.timeout.connect:1000}")
private int connectTimeout;
@Value("${httpConnection.ttlSec:600}")
private long maxTtl;
@Value("${httpConnection.timeout.request:1000}")
private int requestTimeout;
@Value("${httpConnection.monitor.enabled:false}")
private boolean connectionManagerMonitor;
@Value("${httpConnection.monitor.intervalSec:30}")
private int monitorIntervalSec;
@Value("${httpConnection.5XX.retry.count:3}")
private int serviceErrorRetryCount;
@Value("${httpConnection.5XX.retry.interval:5}")
private int retryInterval;
@Value("${httpConnection.connect.retry.count:3}")
private int connectionRetryCount;
public RestTemplateConfig() {
}
@Bean
public ClientHttpRequestFactory httpRequestFactory() {
log.info("HttpConnectionPool max({}) perRoute({}) validateInactivity({}) timeout.socket({}) timeout.connect({}) timeout.request({}) ttlSec({}) monitor.enabled({}) monitor.intervalSec({}) 5XX.retry.count({}), 5XX.retry.interval({}) connect.retry.count({}) ssl.trustAllCertificates({})", new Object[]{this.maxHttpConnection, this.maxPerRouteConnection, this.validateInactivity, this.socketTimeout, this.connectTimeout, this.requestTimeout, this.maxTtl, this.connectionManagerMonitor, this.monitorIntervalSec, this.serviceErrorRetryCount, this.retryInterval, this.connectionRetryCount, this.trustAllCertificates});
return new HttpComponentsClientHttpRequestFactory(this.httpClient());
}
private CloseableHttpClient httpClient() {
HttpClientBuilder httpClientBuilder = HttpClients.custom();
this.createConnectionPool(httpClientBuilder);
this.attachRetryHandlers(httpClientBuilder);
this.setTimeouts(httpClientBuilder);
return httpClientBuilder.build();
}
private void attachRetryHandlers(HttpClientBuilder httpClientBuilder) {
httpClientBuilder.setRetryHandler(this.retryHandler()).setServiceUnavailableRetryStrategy(this.serviceUnAvailableRetryStrategy());
}
private void setTimeouts(HttpClientBuilder httpClientBuilder) {
httpClientBuilder.setDefaultRequestConfig(RequestConfig.custom().setConnectTimeout(this.connectTimeout).setSocketTimeout(this.socketTimeout).setConnectionRequestTimeout(this.requestTimeout).build());
}
private SSLConnectionSocketFactory sslSocketFactory() {
try {
SSLContext sslContext = (new SSLContextBuilder()).loadTrustMaterial((KeyStore)null, (certificate, authType) -> {
return true;
}).build();
return new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);
} catch (Exception var2) {
log.info("failed to create socket connection factory", var2);
return null;
}
}
private PoolingHttpClientConnectionManager connectionManager() {
PoolingHttpClientConnectionManager connectionManager;
if (this.trustAllCertificates) {
RegistryBuilder<ConnectionSocketFactory> registryBuilder = RegistryBuilder.create();
registryBuilder.register("http", new PlainConnectionSocketFactory());
SSLConnectionSocketFactory sslConnectionSocketFactory = this.sslSocketFactory();
if (sslConnectionSocketFactory != null) {
registryBuilder.register("https", sslConnectionSocketFactory);
}
connectionManager = new PoolingHttpClientConnectionManager(registryBuilder.build(), (HttpConnectionFactory)null, (SchemePortResolver)null, (DnsResolver)null, this.maxTtl, TimeUnit.SECONDS);
} else {
connectionManager = new PoolingHttpClientConnectionManager(this.maxTtl, TimeUnit.SECONDS);
}
connectionManager.setMaxTotal(this.maxHttpConnection);
connectionManager.setDefaultMaxPerRoute(this.maxPerRouteConnection);
connectionManager.setValidateAfterInactivity(this.validateInactivity);
return connectionManager;
}
private void createConnectionPool(HttpClientBuilder httpClientBuilder) {
PoolingHttpClientConnectionManager connectionManager = this.connectionManager();
httpClientBuilder.setConnectionManager(connectionManager);
if (this.connectionManagerMonitor) {
this.watchConnectionManager(connectionManager);
}
}
private void watchConnectionManager(PoolingHttpClientConnectionManager connectionManager) {
Executors.newScheduledThreadPool(1).scheduleAtFixedRate(() -> {
log.info("HttpConnectionPool({})", connectionManager.getTotalStats().toString());
connectionManager.getRoutes().forEach((route) -> {
log.info("HttpConnectionPool {} for ({})", connectionManager.getMaxPerRoute(route), route.toString());
});
}, (long)this.monitorIntervalSec, (long)this.monitorIntervalSec, TimeUnit.SECONDS);
}
private ServiceUnavailableRetryStrategy serviceUnAvailableRetryStrategy() {
return new ServiceUnavailableRetryStrategy() {
public boolean retryRequest(HttpResponse response, int executionCount, HttpContext context) {
boolean isRetry = false;
try {
if (HttpStatus.Series.SERVER_ERROR.equals(HttpStatus.Series.valueOf(response.getStatusLine().getStatusCode()))) {
isRetry = true;
}
} catch (Throwable var6) {
RestTemplateConfig.log.error("Exception occurred while determining the serviceUnAvailableRetryStrategy, current executionCount({})", executionCount, var6);
}
isRetry = isRetry && executionCount <= RestTemplateConfig.this.serviceErrorRetryCount;
if (executionCount > 1) {
RestTemplateConfig.log.trace("service unavailable isRetry({}) count({}) ", isRetry, executionCount);
}
return isRetry;
}
public long getRetryInterval() {
return (long)RestTemplateConfig.this.retryInterval;
}
};
}
private HttpRequestRetryHandler retryHandler() {
return new DefaultHttpRequestRetryHandler() {
public boolean retryRequest(IOException exception, int executionCount, HttpContext context) {
RestTemplateConfig.log.trace("retry executionCount({})", executionCount);
return executionCount <= RestTemplateConfig.this.connectionRetryCount;
}
};
}
public static void setErrorHandler(RestTemplate restTemplate) {
restTemplate.setErrorHandler(new ResponseErrorHandler() {
public boolean hasError(ClientHttpResponse clientHttpResponse) throws IOException {
HttpStatus.Series series = clientHttpResponse.getStatusCode().series();
return HttpStatus.Series.CLIENT_ERROR.equals(series) || HttpStatus.Series.SERVER_ERROR.equals(series);
}
public void handleError(ClientHttpResponse clientHttpResponse) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(clientHttpResponse.getBody()));
StringBuilder sb = new StringBuilder();
br.lines().forEach(sb::append);
sb.append(" HEADER ");
clientHttpResponse.getHeaders().keySet().forEach((key) -> {
sb.append(key).append("=").append(clientHttpResponse.getHeaders().get(key)).append(";");
});
RestTemplateConfig.log.warn(sb.toString());
throw new IOException(sb.toString());
}
});
}
}
| [
"noreply@github.com"
] | raajasekhar10.noreply@github.com |
0c95a7534d62898b2b939147233d8b771cf059a5 | d35a8fba45cde60812034d482b610eb0362eba8d | /app/src/main/java/com/example/mhd/donor/beforefregment2.java | aff6ecae97997cd9f891a185eadce8bcf46be934 | [] | no_license | MahmoudAlawdh/Android | 8d7940d8688601dc16cd8e1f44ed9d0becf56a7d | f8fffa1fced30d0bb8724f284c7002c20b86d7f1 | refs/heads/master | 2020-12-24T19:51:25.065027 | 2017-04-24T07:48:29 | 2017-04-24T07:48:29 | 86,216,865 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 555 | java | package com.example.mhd.donor;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by PIFSS on 3/27/2017.
*/
public class beforefregment2 extends Fragment {
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
return inflater.inflate(R.layout.before_2,container,false);
}
}
| [
"mhd-10@hotmail.com"
] | mhd-10@hotmail.com |
7d1a3babbc167adae7989b1a7f6429008552662c | 50dab96e4ffae9107cd5eaeb46d54ad757427fea | /springboot-BankApplication/src/main/java/com/springboot/web/controller/Registration.java | 1d109345aab891c6db638a1381e5d8e8d68aa0d6 | [] | no_license | hazellobo18/Demo | 42afa936505560fdf6efd011e35c63bb1573631e | 842488a469ea703ca006d3784589657d79594a12 | refs/heads/master | 2022-12-01T08:59:34.547186 | 2020-08-15T11:17:15 | 2020-08-15T11:17:15 | 287,731,541 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,913 | java | package com.springboot.web.controller;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.springboot.web.model.Admin;
import com.springboot.web.model.User;
import com.springboot.web.service.AccountService;
import com.springboot.web.service.RegisterService;
@RestController
public class Registration {
@Autowired
RegisterService registerService;
@Autowired
AccountService accountService;
@RequestMapping(path="/register", method = RequestMethod.POST)
@CrossOrigin(origins = "http://localhost:4200")
public User registerAddUser(@RequestBody User user)
{
User Obj;
user.setStatus("enabled");
Obj=registerService.saveaddUser(user);
return Obj;
}
@RequestMapping(path = "/login", method = RequestMethod.POST)
@CrossOrigin(origins = "http://localhost:4200")
public User doLogin(@RequestBody User user, HttpSession session) throws Exception
{
String temperorymail = user.getMailid();
String temperorypassword = user.getPassword();
String tempstatus = user.getStatus();
String cs="enabled";
System.out.println(tempstatus);
User Obj = null;
if(temperorymail != null && temperorypassword != null && tempstatus.contentEquals(cs) )
{
Obj = registerService.matchEmailPassword(temperorymail, temperorypassword);
//session.setAttribute("mailid",temperorymail );
}
if(Obj == null)
{
throw new Exception("====User not exist=====");
}
return Obj;
}
@RequestMapping(path = "/admin", method = RequestMethod.POST)
@CrossOrigin(origins = "http://localhost:4200")
public void doAdminLogin(@RequestBody Admin admin) throws Exception
{
String adminemail = admin.getEmailid();
String adminpassword = admin.getPassword();
if(adminemail.equals("admin") && adminpassword.equals("admin"))
{
System.out.println("admin successfully login");
}
else
{
throw new Exception("credentials are wrong");
}
}
// @RequestMapping(path="/getuserId/{email}", method = RequestMethod.GET)
// public List<User> getuserByEmail(@PathVariable String email)
// {
// return registerService.getUserbyemail(email);
// }
//
//
//
//
//
//
// @RequestMapping(path = "/getuser", method = RequestMethod.GET)
// public List<User> getUserDetails()
// {
// return registerService.getUserDetails();
// }
}
| [
"noreply@github.com"
] | hazellobo18.noreply@github.com |
bd56668d879d38920dacae1e8768671bbc6cf47a | bd899ae3b3c70839064d7166d0141a63a1973146 | /Head_First_Java/usecabeca30/ServiceBrowser.java | f27492035d6673d33efd998f30377e630d762d96 | [] | no_license | andreicampigotto/Head_First_Java | d833dbb6d868ee0c91ba9a851acad98ad2417350 | 150a99b42261fbdad0b06b1f3b7bb7a1c5938930 | refs/heads/master | 2020-05-27T06:14:44.228514 | 2019-05-25T03:45:45 | 2019-05-25T03:45:45 | 188,516,483 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,869 | java | package usecabeca30;
import java.awt.*;
import java.rmi.*;
import java.awt.event.*;
import javax.swing.*;
public class ServiceBrowser {
JPanel mainPanel;
JComboBox serviceList;
ServiceServer server;
public void buildGUI(){
JFrame frame = new JFrame("RMI Browser");
mainPanel = new JPanel();
frame.getContentPane().add(BorderLayout.CENTER, mainPanel);
Object services[] = getServicesList();
serviceList = new JComboBox(services);
frame.getContentPane().add(BorderLayout.NORTH, serviceList);
serviceList.addActionListener(new MyListListener());
frame.setSize(500, 500);
frame.setVisible(true);
}
void loadService (Object serviceSelection){
try {
Service svc = server.getService(serviceSelection);
mainPanel.removeAll();;
mainPanel.add(svc.getGuiPanel());
mainPanel.validate();
mainPanel.repaint();
} catch (Exception ex) {ex.printStackTrace();}
}
Object[] getServicesList(){
Object obj = null;
Object services[] = null;
try {
obj = Naming.lookup("rmi://127.0.0.1/ServiceServer");
} catch (Exception ex) { ex.printStackTrace(); }
server = (ServiceServer) obj;
try {
services = server.getServiceList();
} catch (Exception ex) { ex.printStackTrace();}
return services;
}
class MyListListener implements ActionListener{
public void actionPerformed(ActionEvent ev) {
Object selection = serviceList.getSelectedItem();
loadService(selection);
}
}
public static void main(String[] args) {
new ServiceBrowser().buildGUI();
}
}
| [
"noreply@github.com"
] | andreicampigotto.noreply@github.com |
0d87c23bebb177fa7e8a0dfd8b8cc30f4c101d5b | afd11aae41a589c0f84e08d39fce2097fae433ea | /MethodInjection/src/main/java/com/zensar/spring/replacers/MagicBoxReplacer.java | 63d0957fe89622b580d690536e2c4a72bf47fdc7 | [] | no_license | kavyakh/Spring | 3cd40d79cedd447261d3fa95b55b8fe16f21ac3e | 4b8355a8425ad54f33105a96f5508426cc765785 | refs/heads/master | 2022-12-21T15:50:22.222287 | 2019-10-12T16:44:55 | 2019-10-12T16:44:55 | 213,341,290 | 0 | 0 | null | 2022-12-15T23:24:09 | 2019-10-07T09:18:06 | Java | UTF-8 | Java | false | false | 381 | java | package com.zensar.spring.replacers;
import java.lang.reflect.Method;
import org.springframework.beans.factory.support.MethodReplacer;
public class MagicBoxReplacer implements MethodReplacer {
@Override
public Object reimplement(Object obj, Method method, Object[] args) throws Throwable {
// TODO Auto-generated method stub
return "A Beautiful Girl";
}
}
| [
"kavyakh12@gmail.com"
] | kavyakh12@gmail.com |
7c12b46606fe7c7de073052b6b0159c3e0816f90 | 2ea9ae4c055cead0d93422b3e40a16c127b07b2e | /2.JavaCore/src/com/javarush/task/task17/task1711/Solution.java | 91ca32f21e87872e3eda0ba3fd147731c9b2b8e4 | [] | no_license | ilya-zvoznikov/myJavaRush | f1ad8f67ea94e80cedc006de6cf4e2b6733d1622 | 846005063543b06a05f0d5d824583667d432e8a7 | refs/heads/master | 2021-04-09T11:20:00.028029 | 2018-04-13T18:37:55 | 2018-04-13T18:37:55 | 125,533,601 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 6,756 | java | package com.javarush.task.task17.task1711;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Locale;
/*
CRUD 2
CrUD Batch - multiple Creation, Updates, Deletion
Программа запускается с одним из следующих наборов параметров:
-c name1 sex1 bd1 name2 sex2 bd2 ...
-u id1 name1 sex1 bd1 id2 name2 sex2 bd2 ...
-d id1 id2 id3 id4 ...
-i id1 id2 id3 id4 ...
Значения параметров:
name - имя, String
sex - пол, "м" или "ж", одна буква
bd - дата рождения в следующем формате 15/04/1990
-с - добавляет всех людей с заданными параметрами в конец allPeople, выводит id (index) на экран в соответствующем порядке
-u - обновляет соответствующие данные людей с заданными id
-d - производит логическое удаление человека с id, заменяет все его данные на null
-i - выводит на экран информацию о всех людях с заданными id: name sex bd
id соответствует индексу в списке
Формат вывода даты рождения 15-Apr-1990
Все люди должны храниться в allPeople
Порядок вывода данных соответствует вводу данных
Обеспечить корректную работу с данными для множества нитей (чтоб не было затирания данных)
Используйте Locale.ENGLISH в качестве второго параметра для SimpleDateFormat
Пример вывода для параметра -і с двумя id:
Миронов м 15-Apr-1990
Миронова ж 25-Apr-1997
Требования:
1. Класс Solution должен содержать public static volatile поле allPeople типа List.
2. Класс Solution должен содержать статический блок, в котором добавляются два человека в список allPeople.
3. При параметре -с программа должна добавлять всех людей с заданными параметрами в конец списка allPeople, и выводить id каждого (index) на экран.
4. При параметре -u программа должна обновлять данные людей с заданными id в списке allPeople.
5. При параметре -d программа должна логически удалять людей с заданными id в списке allPeople.
6. При параметре -i программа должна выводить на экран данные о всех людях с заданными id по формату указанному в задании.
7. Метод main класса Solution должен содержать оператор switch по значению args[0].
8. Каждый case оператора switch должен иметь блок синхронизации по allPeople.
*/
public class Solution {
public static volatile List<Person> allPeople = new ArrayList<Person>();
static {
allPeople.add(Person.createMale("Иванов Иван", new Date())); //сегодня родился id=0
allPeople.add(Person.createMale("Петров Петр", new Date())); //сегодня родился id=1
}
public static void main(String[] args) throws ParseException {
//start here - начни тут
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy", Locale.ENGLISH);
switch (args[0]) {
case "-c": {
// -c "Сергеев Сергей" м 25/06/1988 "Алексеев Алексей" м 16/09/2000 "Ольгова Ольга" ж 11/02/1998
synchronized (allPeople) {
int i = 1;
while (i < args.length) {
String name = args[i++];
Sex sex = args[i++].equals("м") ? Sex.MALE : Sex.FEMALE;
Date bd = sdf.parse(args[i++]);
Person person = sex == Sex.MALE ? Person.createMale(name, bd) : Person.createFemale(name, bd);
allPeople.add(person);
System.out.println(allPeople.size() - 1);
}
}
break;
}
case "-u": {
// -u 0 "Сергеев Сергей" м 25/06/1988 1 "Ольгова Ольга" ж 11/02/1998
synchronized (allPeople) {
int i = 1;
while (i < args.length) {
int id = Integer.parseInt(args[i++]);
String name = args[i++];
Sex sex = args[i++].equals("м") ? Sex.MALE : Sex.FEMALE;
Date bd = sdf.parse(args[i++]);
Person person = allPeople.get(id);
person.setName(name);
person.setSex(sex);
person.setBirthDay(bd);
allPeople.set(id, person);
}
}
break;
}
case "-d": {
synchronized (allPeople) {
int i = 1;
while (i < args.length) {
int id = Integer.parseInt(args[i++]);
Person person = allPeople.get(id);
person.setName(null);
person.setSex(null);
person.setBirthDay(null);
allPeople.set(id, person);
}
}
break;
}
case "-i": {
synchronized (allPeople) {
int i = 1;
while (i < args.length) {
int id = Integer.parseInt(args[i++]);
Person person = allPeople.get(id);
SimpleDateFormat sdf1 = new SimpleDateFormat("dd-MMM-yyyy", Locale.ENGLISH);
System.out.printf("%s %s %s", person.getName(), person.getSex() == Sex.MALE ? "м" : "ж", sdf1.format(person.getBirthDay()));
System.out.println();
}
}
break;
}
}
}
}
| [
"constantinovich@gmail.com"
] | constantinovich@gmail.com |
9ce8fee6e781f2f1c646074f5feec6b3c8b62f97 | be83c2179f877915e9705a733714341f6290eef2 | /src/main/java/org/eweb4j/solidbase/user/web/ListUserActivityLogAction.java | d1d44dff8c2115ab4a3dff78abec849e2ab71ae4 | [] | no_license | njcharran/eweb4j-solidbase | 5e0ebe836d19c64815f981b4a36183e7b91edb42 | 18d2b1ad00f8fb3aa514cfd430af2ff2fde7ac0f | refs/heads/master | 2021-01-18T17:44:30.534054 | 2013-03-10T10:13:14 | 2013-03-10T10:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,889 | java | package org.eweb4j.solidbase.user.web;
import java.util.Collection;
import java.util.Map;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import org.eweb4j.ioc.IOC;
import org.eweb4j.mvc.view.DataAssemUtil;
import org.eweb4j.mvc.view.DivPageComp;
import org.eweb4j.mvc.view.ListPage;
import org.eweb4j.mvc.view.PageMod;
import org.eweb4j.mvc.view.SearchForm;
import org.eweb4j.solidbase.user.model.UserActivityLog;
import org.eweb4j.solidbase.user.model.UserActivityLogCons;
import org.eweb4j.solidbase.user.model.UserActivityLogService;
import org.eweb4j.solidbase.user.model.UserCons;
@Path("${UserConstant.MODEL_NAME}")
public class ListUserActivityLogAction {
private UserActivityLogService service = IOC.getBean(UserActivityLogCons
.IOC_SERVICE_BEAN_ID());
private int pageNum = 1;
private int numPerPage = 20;
private PageMod<UserActivityLog> pageMod = null;
private long allCount = 0;
private Collection<UserActivityLog> pojos = null;
private DivPageComp dpc = null;
private ListPage listPage = null;
private SearchForm searchForm = new SearchForm("users/logs/search", "");
@Path("/logs")
@GET
@POST
public String doGet(Map<String, Object> model) {
try {
pageMod = service.getListPage(pageNum, numPerPage);
allCount = pageMod.getAllCount();
pojos = pageMod.getPojos();
dpc = new DivPageComp(pageNum, numPerPage, allCount, 10);
listPage = new ListPage("users/logs", searchForm, pojos, dpc);
listPage = DataAssemUtil.assemHead(listPage, pojos,
UserActivityLogCons.getMap());
model.put("listPage", listPage);
model.put("random", Math.random());
} catch (Exception e) {
return e.toString();
}
return UserCons.PAGING_LOG_ACTION_RESULT();
}
public void setPageNum(int pageNum) {
this.pageNum = pageNum;
}
public void setNumPerPage(int numPerPage) {
this.numPerPage = numPerPage;
}
}
| [
"l.weiwei@163.com"
] | l.weiwei@163.com |
8759b9ac5954c610048517354cb824ce16c97679 | 9dd24fe82abb2e5f6290b009a10d59601561560e | /src/main/java/reece/pro/scm/business/xsgl/service/impl/XskpServiceImpl.java | c2ee08456b417836117b8ee92856ca74e2a613ad | [] | no_license | reece15/scm | 548e35f31afd4ae62f0a4091afd7190ec525e785 | 744f2b3f245d2cc7ddf568ef35e6c897a33b039b | refs/heads/master | 2016-09-14T00:34:12.912600 | 2016-04-27T11:07:41 | 2016-04-27T11:07:41 | 56,985,166 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 2,088 | java | package reece.pro.scm.business.xsgl.service.impl;
import java.util.HashSet;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import reece.pro.scm.base.dao.BaseDao;
import reece.pro.scm.business.base.service.impl.BaseBusinessServiceImpl;
import reece.pro.scm.business.xsgl.dao.XsddzhibDao;
import reece.pro.scm.business.xsgl.dao.XskpzhibDao;
import reece.pro.scm.business.xsgl.dao.XskpzhubDao;
import reece.pro.scm.business.xsgl.service.XskpService;
import reece.pro.scm.domain.business.xsgl.Xsddzhib;
import reece.pro.scm.domain.business.xsgl.Xskpzhib;
import reece.pro.scm.domain.business.xsgl.Xskpzhub;
import reece.pro.scm.query.BaseQuery;
import reece.pro.scm.query.PageResult;
/**
* @filename xskpzhubServiceImpl.java
* @author Reece
* @description
* @version
*/
@Service("xskpService")
public class XskpServiceImpl extends BaseBusinessServiceImpl<Xskpzhub, Xskpzhib>
implements XskpService {
@Resource(name="xskpzhubDao")
private XskpzhubDao xskpzhubDao;
@Resource(name="xskpzhibDao")
private XskpzhibDao xskpzhibDao;
@Resource(name="xsddzhibDao")
private XsddzhibDao xsddzhibDao;
@Override
public BaseDao<Xskpzhub> getBaseDaoZhu() {
return xskpzhubDao;
}
@Override
public BaseDao<Xskpzhib> getBaseDaoZhi() {
return xskpzhibDao;
}
@Override
public void saveXskp(Xskpzhub xskpzhub, List<Xskpzhib> xskpzhibs) {
Float totalMoney = 0.0F;
for (Xskpzhib xskpzhib : xskpzhibs) {
String ytdjh = xskpzhib.getYtdjh();
Long hh = xskpzhib.getHh();
Xsddzhib xsddzhib = this.xsddzhibDao.getXsddzhibByYtddh(ytdjh, hh);
Long ljkpsj = xsddzhib.getLjkpsl();
xskpzhib.setLjkpsl(ljkpsj + xskpzhib.getSl());
xsddzhib.setLjkpsl(ljkpsj + xskpzhib.getSl());
if(xsddzhib.getLjkpsl().longValue() == xskpzhib.getLjkpsl().longValue()){
xsddzhib.setIskpgb(true);
xskpzhib.setIskpjs(true);
}
totalMoney += xskpzhib.getHsje();
}
xskpzhub.setFpzje(totalMoney);
xskpzhub.setXskpzhibs(new HashSet<Xskpzhib>(xskpzhibs));
this.xskpzhubDao.saveEntry(xskpzhub);
}
}
| [
"qiang_ge@outlook.com"
] | qiang_ge@outlook.com |
e30ddee9d973d3583d4b526138facb790a7f241d | 5a281603b3573711b601ecedeaf0d92393d2b652 | /Tutorial_demo/BaseSample.java | 63127db07a0df2d4cbe70c697e0d158296af2e21 | [] | no_license | niuzhihua/inject | 57cccd95d6ecdb9a0d7025430726192f24a79447 | 15c65ba805dfe286d55bf3e59e44c58ef2635e34 | refs/heads/master | 2020-05-09T01:47:12.266450 | 2019-09-24T06:17:20 | 2019-09-24T06:17:20 | 180,978,526 | 2 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,447 | java | package com.nzh.javassit.sample;
import javassist.ClassPool;
/*
*
* 一、ClassPool 基本介绍和使用
*
* 0: ClassPool : 是存放了CtClass 的容器。
* 1: 一旦一个CtClass 对象被创建出来,就会添加进 ClassPool
* 2: 若调用了CtClass 的 detach() 方法,那么CtClass就被从ClassPool中移除了。
* 3: 当调用CtClass 的 detach() 方法后,就不能调用任何方法了 。此时,必须从ClassPool中取出新
* 的实例,才能用CtClass.新的实例 用 pool.get() 方法获取。
*
* 4: ClassPool 对象一旦被回收,里面的CtClass 都不能用了,这时就需要重新构建ClassPool.
*
* 5:ClassPool 的委托机制 :
*
* ClassPool parent = ClassPool.getDefault();
* ClassPool child = new ClassPool(parent);
* child.appendSystemPath();
*
* child.childFirstLookup = true;
*
* 默认情况下,用child.get()方法找类时,会先从父ClassPool 开始找。
* 如果设置了 childFirstLookup = true ,则 先从child 开始查找。
*
* child.get("com.xxx.Student")
*
* 二、冻结的class 介绍
*
* 如果CtClass对象被转换为 class文件(writeFile()),或者Class(toClass() ),
* 或者ByteCode ( toBytecode()),javassist 框架就会冻结这个 CtClass 对象。 这时修改这个CtClass 就不允许了。
*
* 此时,必须调用defrost()解冻方法 才能操作CtClass对象.
*
*
* CtClass c = 。。。;
* cc.writeFile();
* cc.defrost(); // writeFile 后必须解冻一下 CtClass. 才可以后续操作。
* cc.setSuperclass(); // ok 的 后续操作。
* 解冻以后,对CtClass 的操作就可以了。
* <p/>
*
*
* 三、javassist 使用时注意
*
*
* 1:javassist 不能用来删除类的信息(Field,Method)。但是可以更改方法,属性成员的名称。
* 2:javassist 也不能给已有的方法添加参数,但是可以创建新的Method ,并添加参数 插入到类中。
*
* void move(int newX, int newY)
* {
* x = newX; y = newY; // 假设要给这个方法添加一个int参数。只能新加一个方法
* }
*
* void move(int newX, int newY, int newZ) {
* do what you want with newZ.
* move(newX, newY);
* }
*/
public class BaseSample {
public static void test() {
ClassPool pool = null;
}
}
| [
"314148501@qq.com"
] | 314148501@qq.com |
8b91412ce47b2f7946536f5e4ab6f411d0655ec9 | be020210b88d5e59936db53043ae325bc9927173 | /src-ui/org/pentaho/di/ui/trans/steps/combinationlookup/CombinationLookupDialog.java | 0ac729c751d2b7f7ad758f4eaaac6c51a4ebfeec | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cskason/pentaho-kettle4.4 | 124a245e26789ab81cfbea767f2a1d635de0917c | d59882f7076588e2cd007ac9bda5c95edc0bee19 | refs/heads/master | 2021-01-20T01:52:52.888969 | 2017-08-07T09:05:38 | 2017-08-07T09:05:38 | 89,341,173 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 38,235 | java | /*******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************/
package org.pentaho.di.ui.trans.steps.combinationlookup;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CCombo;
import org.eclipse.swt.events.FocusEvent;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.events.ShellAdapter;
import org.eclipse.swt.events.ShellEvent;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.SQLStatement;
import org.pentaho.di.core.database.Database;
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.row.RowMetaInterface;
import org.pentaho.di.core.row.ValueMetaInterface;
import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.trans.TransMeta;
import org.pentaho.di.trans.step.BaseStepMeta;
import org.pentaho.di.trans.step.StepDialogInterface;
import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.trans.steps.combinationlookup.CombinationLookupMeta;
import org.pentaho.di.ui.core.database.dialog.DatabaseExplorerDialog;
import org.pentaho.di.ui.core.database.dialog.SQLEditor;
import org.pentaho.di.ui.core.dialog.EnterSelectionDialog;
import org.pentaho.di.ui.core.dialog.ErrorDialog;
import org.pentaho.di.ui.core.widget.ColumnInfo;
import org.pentaho.di.ui.core.widget.TableView;
import org.pentaho.di.ui.core.widget.TextVar;
import org.pentaho.di.ui.trans.step.BaseStepDialog;
import org.pentaho.di.ui.trans.step.TableItemInsertListener;
public class CombinationLookupDialog extends BaseStepDialog implements StepDialogInterface
{
private static Class<?> PKG = CombinationLookupMeta.class; // for i18n purposes, needed by Translator2!! $NON-NLS-1$
private CCombo wConnection;
private Label wlSchema;
private TextVar wSchema;
private Button wbSchema;
private FormData fdbSchema;
private Label wlTable;
private Button wbTable;
private TextVar wTable;
private Label wlCommit;
private Text wCommit;
private Label wlCachesize;
private Text wCachesize;
private Label wlTk;
private Text wTk;
private Group gTechGroup;
private FormData fdTechGroup;
private Label wlAutoinc;
private Button wAutoinc;
private Label wlTableMax;
private Button wTableMax;
private Label wlSeqButton;
private Button wSeqButton;
private Text wSeq;
private Label wlReplace;
private Button wReplace;
private Label wlHashcode;
private Button wHashcode;
private Label wlKey;
private TableView wKey;
private Label wlHashfield;
private Text wHashfield;
private Label wlLastUpdateField;
private Text wLastUpdateField;
private Button wGet, wCreate;
private Listener lsGet, lsCreate;
private ColumnInfo[] ciKey;
private CombinationLookupMeta input;
private DatabaseMeta ci;
private Map<String, Integer> inputFields;
/**
* List of ColumnInfo that should have the field names of the selected database table
*/
private List<ColumnInfo> tableFieldColumns = new ArrayList<ColumnInfo>();
public CombinationLookupDialog(Shell parent, Object in, TransMeta transMeta, String sname)
{
super(parent, (BaseStepMeta)in, transMeta, sname);
input=(CombinationLookupMeta)in;
inputFields =new HashMap<String, Integer>();
}
public String open()
{
Shell parent = getParent();
Display display = parent.getDisplay();
shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN );
props.setLook(shell);
setShellImage(shell, input);
FormLayout formLayout = new FormLayout ();
formLayout.marginWidth = Const.FORM_MARGIN;
formLayout.marginHeight = Const.FORM_MARGIN;
shell.setLayout(formLayout);
shell.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Shell.Title")); //$NON-NLS-1$
int middle = props.getMiddlePct();
int margin = Const.MARGIN;
ModifyListener lsMod = new ModifyListener()
{
public void modifyText(ModifyEvent e)
{
input.setChanged();
}
};
ModifyListener lsTableMod = new ModifyListener() {
public void modifyText(ModifyEvent arg0) {
input.setChanged();
setTableFieldCombo();
}
};
SelectionListener lsSelection = new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
input.setChanged();
setTableFieldCombo();
}
};
backupChanged = input.hasChanged();
ci = input.getDatabaseMeta();
// Stepname line
wlStepname=new Label(shell, SWT.RIGHT);
wlStepname.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Stepname.Label")); //$NON-NLS-1$
props.setLook(wlStepname);
fdlStepname=new FormData();
fdlStepname.left = new FormAttachment(0, 0);
fdlStepname.right= new FormAttachment(middle, -margin);
fdlStepname.top = new FormAttachment(0, margin);
wlStepname.setLayoutData(fdlStepname);
wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
wStepname.setText(stepname);
props.setLook(wStepname);
wStepname.addModifyListener(lsMod);
fdStepname=new FormData();
fdStepname.left = new FormAttachment(middle, 0);
fdStepname.top = new FormAttachment(0, margin);
fdStepname.right= new FormAttachment(100, 0);
wStepname.setLayoutData(fdStepname);
// Connection line
wConnection = addConnectionLine(shell, wStepname, middle, margin);
if (input.getDatabaseMeta()==null && transMeta.nrDatabases()==1) wConnection.select(0);
wConnection.addModifyListener(lsMod);
wConnection.addSelectionListener(lsSelection);
wConnection.addModifyListener(new ModifyListener()
{
public void modifyText(ModifyEvent e)
{
// We have new content: change ci connection:
ci = transMeta.findDatabase(wConnection.getText());
setAutoincUse();
setSequence();
input.setChanged();
}
}
);
// Schema line...
wlSchema=new Label(shell, SWT.RIGHT);
wlSchema.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.TargetSchema.Label")); //$NON-NLS-1$
props.setLook(wlSchema);
FormData fdlSchema = new FormData();
fdlSchema.left = new FormAttachment(0, 0);
fdlSchema.right= new FormAttachment(middle, -margin);
fdlSchema.top = new FormAttachment(wConnection, margin);
wlSchema.setLayoutData(fdlSchema);
wbSchema=new Button(shell, SWT.PUSH| SWT.CENTER);
props.setLook(wbSchema);
wbSchema.setText(BaseMessages.getString(PKG, "System.Button.Browse"));
fdbSchema=new FormData();
fdbSchema.top = new FormAttachment(wConnection, margin);
fdbSchema.right= new FormAttachment(100, 0);
wbSchema.setLayoutData(fdbSchema);
wSchema=new TextVar(transMeta, shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wSchema);
wSchema.addModifyListener(lsTableMod);
FormData fdSchema = new FormData();
fdSchema.left = new FormAttachment(middle, 0);
fdSchema.top = new FormAttachment(wConnection, margin);
fdSchema.right= new FormAttachment(wbSchema, -margin);
wSchema.setLayoutData(fdSchema);
// Table line...
wlTable = new Label(shell, SWT.RIGHT);
wlTable.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Target.Label")); //$NON-NLS-1$
props.setLook(wlTable);
FormData fdlTable = new FormData();
fdlTable.left = new FormAttachment(0, 0);
fdlTable.right = new FormAttachment(middle, -margin);
fdlTable.top = new FormAttachment(wbSchema, margin );
wlTable.setLayoutData(fdlTable);
wbTable = new Button(shell, SWT.PUSH | SWT.CENTER);
props.setLook(wbTable);
wbTable.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.BrowseTable.Button"));
FormData fdbTable = new FormData();
fdbTable.right = new FormAttachment(100, 0);
fdbTable.top = new FormAttachment(wbSchema, margin);
wbTable.setLayoutData(fdbTable);
wTable = new TextVar(transMeta,shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wTable);
wTable.addModifyListener(lsTableMod);
FormData fdTable = new FormData();
fdTable.left = new FormAttachment(middle, 0);
fdTable.top = new FormAttachment(wbSchema, margin );
fdTable.right = new FormAttachment(wbTable, -margin);
wTable.setLayoutData(fdTable);
// Commit size ...
wlCommit=new Label(shell, SWT.RIGHT);
wlCommit.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Commitsize.Label")); //$NON-NLS-1$
props.setLook(wlCommit);
FormData fdlCommit = new FormData();
fdlCommit.left = new FormAttachment(0, 0);
fdlCommit.right= new FormAttachment(middle, -margin);
fdlCommit.top = new FormAttachment(wTable, margin);
wlCommit.setLayoutData(fdlCommit);
wCommit=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wCommit);
wCommit.addModifyListener(lsMod);
FormData fdCommit = new FormData();
fdCommit.top = new FormAttachment(wTable, margin);
fdCommit.left = new FormAttachment(middle, 0);
fdCommit.right= new FormAttachment(middle+(100-middle)/3, -margin);
wCommit.setLayoutData(fdCommit);
// Cache size
wlCachesize=new Label(shell, SWT.RIGHT);
wlCachesize.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Cachesize.Label")); //$NON-NLS-1$
props.setLook(wlCachesize);
FormData fdlCachesize=new FormData();
fdlCachesize.top = new FormAttachment(wTable, margin);
fdlCachesize.left = new FormAttachment(wCommit, margin);
fdlCachesize.right = new FormAttachment(middle+2*(100-middle)/3, -margin);
wlCachesize.setLayoutData(fdlCachesize);
wCachesize=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wCachesize);
wCachesize.addModifyListener(lsMod);
FormData fdCachesize=new FormData();
fdCachesize.top = new FormAttachment(wTable, margin);
fdCachesize.left = new FormAttachment(wlCachesize, margin);
fdCachesize.right = new FormAttachment(100, 0);
wCachesize.setLayoutData(fdCachesize);
wCachesize.setToolTipText(BaseMessages.getString(PKG, "CombinationLookupDialog.Cachesize.ToolTip")); //$NON-NLS-1$
//
// The Lookup fields: usually the (business) key
//
wlKey=new Label(shell, SWT.NONE);
wlKey.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Keyfields.Label")); //$NON-NLS-1$
props.setLook(wlKey);
FormData fdlKey = new FormData();
fdlKey.left = new FormAttachment(0, 0);
fdlKey.top = new FormAttachment(wCommit, margin);
fdlKey.right = new FormAttachment(100, 0);
wlKey.setLayoutData(fdlKey);
int nrKeyCols=2;
int nrKeyRows=(input.getKeyField()!=null?input.getKeyField().length:1);
ciKey=new ColumnInfo[nrKeyCols];
ciKey[0]=new ColumnInfo(BaseMessages.getString(PKG, "CombinationLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_CCOMBO, new String[] { "" }, false); //$NON-NLS-1$
ciKey[1]=new ColumnInfo(BaseMessages.getString(PKG, "CombinationLookupDialog.ColumnInfo.FieldInStream"), ColumnInfo.COLUMN_TYPE_CCOMBO, new String[] { "" }, false); //$NON-NLS-1$
tableFieldColumns.add(ciKey[0]);
wKey=new TableView(transMeta, shell,
SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL,
ciKey,
nrKeyRows,
lsMod,
props
);
// THE BUTTONS
wOK=new Button(shell, SWT.PUSH);
wOK.setText(BaseMessages.getString(PKG, "System.Button.OK")); //$NON-NLS-1$
wGet=new Button(shell, SWT.PUSH);
wGet.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.GetFields.Button")); //$NON-NLS-1$
wCreate=new Button(shell, SWT.PUSH);
wCreate.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.SQL.Button")); //$NON-NLS-1$
wCancel=new Button(shell, SWT.PUSH);
wCancel.setText(BaseMessages.getString(PKG, "System.Button.Cancel")); //$NON-NLS-1$
setButtonPositions(new Button[] { wOK, wCancel , wGet, wCreate}, margin, null);
// Last update field:
wlLastUpdateField=new Label(shell, SWT.RIGHT);
wlLastUpdateField.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.LastUpdateField.Label")); //$NON-NLS-1$
props.setLook(wlLastUpdateField);
FormData fdlLastUpdateField = new FormData();
fdlLastUpdateField.left = new FormAttachment(0, 0);
fdlLastUpdateField.right = new FormAttachment(middle, -margin);
fdlLastUpdateField.bottom= new FormAttachment(wOK, -2*margin);
wlLastUpdateField.setLayoutData(fdlLastUpdateField);
wLastUpdateField=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wLastUpdateField);
wLastUpdateField.addModifyListener(lsMod);
FormData fdLastUpdateField = new FormData();
fdLastUpdateField.left = new FormAttachment(middle, 0);
fdLastUpdateField.right = new FormAttachment(100, 0);
fdLastUpdateField.bottom= new FormAttachment(wOK, -2*margin);
wLastUpdateField.setLayoutData(fdLastUpdateField);
// Hash field:
wlHashfield=new Label(shell, SWT.RIGHT);
wlHashfield.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Hashfield.Label")); //$NON-NLS-1$
props.setLook(wlHashfield);
FormData fdlHashfield = new FormData();
fdlHashfield.left = new FormAttachment(0, 0);
fdlHashfield.right = new FormAttachment(middle, -margin);
fdlHashfield.bottom= new FormAttachment(wLastUpdateField, -margin);
wlHashfield.setLayoutData(fdlHashfield);
wHashfield=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wHashfield);
wHashfield.addModifyListener(lsMod);
FormData fdHashfield = new FormData();
fdHashfield.left = new FormAttachment(middle, 0);
fdHashfield.right = new FormAttachment(100, 0);
fdHashfield.bottom= new FormAttachment(wLastUpdateField, -margin);
wHashfield.setLayoutData(fdHashfield);
// Output the input rows or one (1) log-record?
wlHashcode=new Label(shell, SWT.RIGHT);
wlHashcode.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Hashcode.Label")); //$NON-NLS-1$
props.setLook(wlHashcode);
FormData fdlHashcode = new FormData();
fdlHashcode.left = new FormAttachment(0, 0);
fdlHashcode.right = new FormAttachment(middle, -margin);
fdlHashcode.bottom= new FormAttachment(wHashfield, -margin);
wlHashcode.setLayoutData(fdlHashcode);
wHashcode=new Button(shell, SWT.CHECK);
props.setLook(wHashcode);
FormData fdHashcode = new FormData();
fdHashcode.left = new FormAttachment(middle, 0);
fdHashcode.right = new FormAttachment(100, 0);
fdHashcode.bottom = new FormAttachment(wHashfield, -margin);
wHashcode.setLayoutData(fdHashcode);
wHashcode.addSelectionListener(new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
enableFields();
}
}
);
// Replace lookup fields in the output stream?
wlReplace=new Label(shell, SWT.RIGHT);
wlReplace.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Replace.Label")); //$NON-NLS-1$
props.setLook(wlReplace);
FormData fdlReplace = new FormData();
fdlReplace.left = new FormAttachment(0, 0);
fdlReplace.right = new FormAttachment(middle, -margin);
fdlReplace.bottom= new FormAttachment(wHashcode, -margin);
wlReplace.setLayoutData(fdlReplace);
wReplace=new Button(shell, SWT.CHECK);
props.setLook(wReplace);
FormData fdReplace = new FormData();
fdReplace.left = new FormAttachment(middle, 0);
fdReplace.bottom= new FormAttachment(wHashcode, -margin);
fdReplace.right = new FormAttachment(100, 0);
wReplace.setLayoutData(fdReplace);
wReplace.addSelectionListener(new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
enableFields();
}
}
);
gTechGroup = new Group(shell, SWT.SHADOW_ETCHED_IN);
gTechGroup.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.TechGroup.Label")); //$NON-NLS-1$;
GridLayout gridLayout = new GridLayout(3, false);
gTechGroup.setLayout(gridLayout);
fdTechGroup=new FormData();
fdTechGroup.left = new FormAttachment(middle, 0);
fdTechGroup.bottom = new FormAttachment(wReplace, -margin);
fdTechGroup.right = new FormAttachment(100, 0);
gTechGroup.setBackground(shell.getBackground()); // the default looks ugly
gTechGroup.setLayoutData(fdTechGroup);
// Use maximum of table + 1
wTableMax=new Button(gTechGroup, SWT.RADIO);
props.setLook(wTableMax);
wTableMax.setSelection(false);
GridData gdTableMax = new GridData();
wTableMax.setLayoutData(gdTableMax);
wTableMax.setToolTipText(BaseMessages.getString(PKG, "CombinationLookupDialog.TableMaximum.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$
wlTableMax=new Label(gTechGroup, SWT.LEFT);
wlTableMax.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.TableMaximum.Label")); //$NON-NLS-1$
props.setLook(wlTableMax);
GridData gdlTableMax = new GridData(GridData.FILL_BOTH);
gdlTableMax.horizontalSpan = 2; gdlTableMax.verticalSpan = 1;
wlTableMax.setLayoutData(gdlTableMax);
// Sequence Check Button
wSeqButton=new Button(gTechGroup, SWT.RADIO);
props.setLook(wSeqButton);
wSeqButton.setSelection(false);
GridData gdSeqButton = new GridData();
wSeqButton.setLayoutData(gdSeqButton);
wSeqButton.setToolTipText(BaseMessages.getString(PKG, "CombinationLookupDialog.Sequence.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$
wlSeqButton=new Label(gTechGroup, SWT.LEFT);
wlSeqButton.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Sequence.Label")); //$NON-NLS-1$
props.setLook(wlSeqButton);
GridData gdlSeqButton = new GridData();
wlSeqButton.setLayoutData(gdlSeqButton);
wSeq=new Text(gTechGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wSeq);
wSeq.addModifyListener(lsMod);
GridData gdSeq = new GridData(GridData.FILL_HORIZONTAL);
wSeq.setLayoutData(gdSeq);
wSeq.addFocusListener(new FocusListener() {
public void focusGained(FocusEvent arg0) {
input.setTechKeyCreation(CombinationLookupMeta.CREATION_METHOD_SEQUENCE);
wSeqButton.setSelection(true);
wAutoinc.setSelection(false);
wTableMax.setSelection(false);
}
public void focusLost(FocusEvent arg0) {
}
});
// Use an autoincrement field?
wAutoinc=new Button(gTechGroup, SWT.RADIO);
props.setLook(wAutoinc);
wAutoinc.setSelection(false);
GridData gdAutoinc = new GridData();
wAutoinc.setLayoutData(gdAutoinc);
wAutoinc.setToolTipText(BaseMessages.getString(PKG, "CombinationLookupDialog.AutoincButton.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$
wlAutoinc=new Label(gTechGroup, SWT.LEFT);
wlAutoinc.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.Autoincrement.Label")); //$NON-NLS-1$
props.setLook(wlAutoinc);
GridData gdlAutoinc = new GridData();
wlAutoinc.setLayoutData(gdlAutoinc);
setTableMax();
setSequence();
setAutoincUse();
// Technical key field:
wlTk=new Label(shell, SWT.RIGHT);
wlTk.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.TechnicalKey.Label")); //$NON-NLS-1$
props.setLook(wlTk);
FormData fdlTk = new FormData();
fdlTk.left = new FormAttachment(0, 0);
fdlTk.right = new FormAttachment(middle, -margin);
fdlTk.bottom = new FormAttachment(gTechGroup, -margin);
wlTk.setLayoutData(fdlTk);
wTk=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER);
props.setLook(wTk);
FormData fdTk = new FormData();
fdTk.left = new FormAttachment(middle, 0);
fdTk.bottom = new FormAttachment(gTechGroup, -margin);
fdTk.right = new FormAttachment(100, 0);
wTk.setLayoutData(fdTk);
FormData fdKey = new FormData();
fdKey.left = new FormAttachment(0, 0);
fdKey.top = new FormAttachment(wlKey, margin);
fdKey.right = new FormAttachment(100, 0);
fdKey.bottom= new FormAttachment(wTk, -margin);
wKey.setLayoutData(fdKey);
//
// Search the fields in the background
//
final Runnable runnable = new Runnable()
{
public void run()
{
StepMeta stepMeta = transMeta.findStep(stepname);
if (stepMeta!=null)
{
try
{
RowMetaInterface row = transMeta.getPrevStepFields(stepMeta);
// Remember these fields...
for (int i=0;i<row.size();i++)
{
inputFields.put(row.getValueMeta(i).getName(), Integer.valueOf(i));
}
setComboBoxes();
}
catch(KettleException e)
{
logError(BaseMessages.getString(PKG, "System.Dialog.GetFieldsFailed.Message"));
}
}
}
};
new Thread(runnable).start();
// Add listeners
lsOK = new Listener() { public void handleEvent(Event e) { ok(); } };
lsGet = new Listener() { public void handleEvent(Event e) { get(); } };
lsCreate = new Listener() { public void handleEvent(Event e) { create(); } };
lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } };
wOK.addListener (SWT.Selection, lsOK );
wGet.addListener (SWT.Selection, lsGet );
wCreate.addListener(SWT.Selection, lsCreate);
wCancel.addListener(SWT.Selection, lsCancel);
lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } };
wStepname.addSelectionListener( lsDef );
wSchema.addSelectionListener( lsDef );
wTable.addSelectionListener( lsDef );
wCommit.addSelectionListener( lsDef );
wSeq.addSelectionListener( lsDef );
wTk.addSelectionListener( lsDef );
wCachesize.addSelectionListener( lsDef );
wHashfield.addSelectionListener( lsDef );
// Detect X or ALT-F4 or something that kills this window...
shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } );
wbSchema.addSelectionListener
(
new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
getSchemaNames();
}
}
);
wbTable.addSelectionListener
(
new SelectionAdapter()
{
public void widgetSelected(SelectionEvent e)
{
getTableName();
}
}
);
// Set the shell size, based upon previous time...
setSize();
getData();
setTableFieldCombo();
input.setChanged(backupChanged);
shell.open();
while (!shell.isDisposed())
{
if (!display.readAndDispatch()) display.sleep();
}
return stepname;
}
protected void setComboBoxes()
{
// Something was changed in the row.
//
final Map<String, Integer> fields = new HashMap<String, Integer>();
// Add the currentMeta fields...
fields.putAll(inputFields);
Set<String> keySet = fields.keySet();
List<String> entries = new ArrayList<String>(keySet);
String[] fieldNames= (String[]) entries.toArray(new String[entries.size()]);
Const.sortStrings(fieldNames);
// Key fields
ciKey[1].setComboValues(fieldNames);
}
public void enableFields()
{
wHashfield.setEnabled(wHashcode.getSelection());
wHashfield.setVisible(wHashcode.getSelection());
wlHashfield.setEnabled(wHashcode.getSelection());
}
private void setTableFieldCombo(){
Runnable fieldLoader = new Runnable() {
public void run() {
//clear
for (int i = 0; i < tableFieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) tableFieldColumns.get(i);
colInfo.setComboValues(new String[] {});
}
if (!wTable.isDisposed() && !Const.isEmpty(wTable.getText())) {
DatabaseMeta ci = transMeta.findDatabase(wConnection.getText());
if (ci != null) {
Database db = new Database(loggingObject, ci);
try {
db.connect();
String schemaTable = ci .getQuotedSchemaTableCombination(transMeta.environmentSubstitute(wSchema
.getText()), transMeta.environmentSubstitute(wTable.getText()));
RowMetaInterface r = db.getTableFields(schemaTable);
if (null != r) {
String[] fieldNames = r.getFieldNames();
if (null != fieldNames) {
for (int i = 0; i < tableFieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) tableFieldColumns.get(i);
colInfo.setComboValues(fieldNames);
}
}
}
} catch (Exception e) {
for (int i = 0; i < tableFieldColumns.size(); i++) {
ColumnInfo colInfo = (ColumnInfo) tableFieldColumns .get(i);
colInfo.setComboValues(new String[] {});
}
// ignore any errors here. drop downs will not be
// filled, but no problem for the user
}
}
}
}
};
shell.getDisplay().asyncExec(fieldLoader);
}
public void setAutoincUse()
{
boolean enable = (ci == null) || ci.supportsAutoinc();
wlAutoinc.setEnabled(enable);
wAutoinc.setEnabled(enable);
if ( enable == false &&
wAutoinc.getSelection() == true )
{
wAutoinc.setSelection(false);
wSeqButton.setSelection(false);
wTableMax.setSelection(true);
}
}
public void setTableMax()
{
wlTableMax.setEnabled(true);
wTableMax.setEnabled(true);
}
public void setSequence()
{
boolean seq = (ci == null) || ci.supportsSequences();
wSeq.setEnabled(seq);
wlSeqButton.setEnabled(seq);
wSeqButton.setEnabled(seq);
if ( seq == false &&
wSeqButton.getSelection() == true )
{
wAutoinc.setSelection(false);
wSeqButton.setSelection(false);
wTableMax.setSelection(true);
}
}
/**
* Copy information from the meta-data input to the dialog fields.
*/
public void getData()
{
int i;
logDebug(BaseMessages.getString(PKG, "CombinationLookupDialog.Log.GettingKeyInfo")); //$NON-NLS-1$
if (input.getKeyField()!=null)
for (i=0;i<input.getKeyField().length;i++)
{
TableItem item = wKey.table.getItem(i);
if (input.getKeyLookup()[i]!=null) item.setText(1, input.getKeyLookup()[i]);
if (input.getKeyField()[i]!=null) item.setText(2, input.getKeyField()[i]);
}
wReplace.setSelection( input.replaceFields() );
wHashcode.setSelection( input.useHash() );
wHashfield.setEnabled(input.useHash());
wHashfield.setVisible(input.useHash());
wlHashfield.setEnabled(input.useHash());
String techKeyCreation = input.getTechKeyCreation();
if ( techKeyCreation == null ) {
// Determine the creation of the technical key for
// backwards compatibility. Can probably be removed at
// version 3.x or so (Sven Boden).
DatabaseMeta database = input.getDatabaseMeta();
if ( database == null || ! database.supportsAutoinc() )
{
input.setUseAutoinc(false);
}
wAutoinc.setSelection(input.isUseAutoinc());
wSeqButton.setSelection(input.getSequenceFrom() != null && input.getSequenceFrom().length() > 0);
if ( input.isUseAutoinc() == false &&
(input.getSequenceFrom() == null || input.getSequenceFrom().length() <= 0) )
{
wTableMax.setSelection(true);
}
if ( database != null && database.supportsSequences() &&
input.getSequenceFrom() != null)
{
wSeq.setText(input.getSequenceFrom());
input.setUseAutoinc(false);
wTableMax.setSelection(false);
}
}
else
{
// KETTLE post 2.2 version:
// The "creation" field now determines the behaviour of the
// key creation.
if ( CombinationLookupMeta.CREATION_METHOD_AUTOINC.equals(techKeyCreation))
{
wAutoinc.setSelection(true);
}
else if ( ( CombinationLookupMeta.CREATION_METHOD_SEQUENCE.equals(techKeyCreation)) )
{
wSeqButton.setSelection(true);
}
else // the rest
{
wTableMax.setSelection(true);
input.setTechKeyCreation(CombinationLookupMeta.CREATION_METHOD_TABLEMAX);
}
if ( input.getSequenceFrom() != null )
{
wSeq.setText(input.getSequenceFrom());
}
}
setAutoincUse();
setSequence();
setTableMax();
if (input.getSchemaName()!=null) wSchema.setText( input.getSchemaName() );
if (input.getTablename()!=null) wTable.setText( input.getTablename() );
if (input.getTechnicalKeyField()!=null) wTk.setText(input.getTechnicalKeyField());
if (input.getDatabaseMeta()!=null) wConnection.setText(input.getDatabaseMeta().getName());
else if (transMeta.nrDatabases()==1)
{
wConnection.setText( transMeta.getDatabase(0).getName() );
}
if (input.getHashField()!=null) wHashfield.setText(input.getHashField());
wCommit.setText(""+input.getCommitSize()); //$NON-NLS-1$
wCachesize.setText(""+input.getCacheSize()); //$NON-NLS-1$
wLastUpdateField.setText( Const.NVL( input.getLastUpdateField(), "") );
wKey.setRowNums();
wKey.optWidth(true);
wStepname.selectAll();
}
private void cancel()
{
stepname=null;
input.setChanged(backupChanged);
dispose();
}
private void ok()
{
if (Const.isEmpty(wStepname.getText())) return;
CombinationLookupMeta oldMetaState = (CombinationLookupMeta)input.clone();
getInfo(input);
stepname = wStepname.getText(); // return value
if (transMeta.findDatabase(wConnection.getText())==null)
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG, "CombinationLookupDialog.NoValidConnection.DialogMessage")); //$NON-NLS-1$
mb.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.NoValidConnection.DialogTitle")); //$NON-NLS-1$
mb.open();
}
if ( ! input.equals(oldMetaState) )
{
input.setChanged();
}
dispose();
}
private void getInfo(CombinationLookupMeta in)
{
int nrkeys = wKey.nrNonEmpty();
in.allocate(nrkeys);
logDebug(BaseMessages.getString(PKG, "CombinationLookupDialog.Log.SomeKeysFound",String.valueOf(nrkeys))); //$NON-NLS-1$ //$NON-NLS-2$
for (int i=0;i<nrkeys;i++)
{
TableItem item = wKey.getNonEmpty(i);
in.getKeyLookup()[i] = item.getText(1);
in.getKeyField()[i] = item.getText(2);
}
in.setUseAutoinc( wAutoinc.getSelection() && wAutoinc.isEnabled() );
in.setReplaceFields( wReplace.getSelection() );
in.setUseHash( wHashcode.getSelection() );
in.setHashField( wHashfield.getText() );
in.setSchemaName( wSchema.getText() );
in.setTablename( wTable.getText() );
in.setTechnicalKeyField( wTk.getText() );
if ( wAutoinc.getSelection() == true )
{
in.setTechKeyCreation(CombinationLookupMeta.CREATION_METHOD_AUTOINC);
in.setUseAutoinc( true ); // for downwards compatibility
in.setSequenceFrom( null );
}
else if ( wSeqButton.getSelection() == true )
{
in.setTechKeyCreation(CombinationLookupMeta.CREATION_METHOD_SEQUENCE);
in.setUseAutoinc(false);
in.setSequenceFrom( wSeq.getText() );
}
else // all the rest
{
in.setTechKeyCreation(CombinationLookupMeta.CREATION_METHOD_TABLEMAX);
in.setUseAutoinc( false );
in.setSequenceFrom( null );
}
in.setDatabaseMeta( transMeta.findDatabase(wConnection.getText()) );
in.setCommitSize( Const.toInt(wCommit.getText(), 0) );
in.setCacheSize( Const.toInt(wCachesize.getText(), 0) );
in.setLastUpdateField( wLastUpdateField.getText() );
}
private void getSchemaNames()
{
DatabaseMeta databaseMeta = transMeta.findDatabase(wConnection.getText());
if (databaseMeta!=null)
{
Database database = new Database(loggingObject, databaseMeta);
try
{
database.connect();
String schemas[] = database.getSchemas();
if (null != schemas && schemas.length>0) {
schemas=Const.sortStrings(schemas);
EnterSelectionDialog dialog = new EnterSelectionDialog(shell, schemas,
BaseMessages.getString(PKG,"CombinationLookupDialog.AvailableSchemas.Title",wConnection.getText()),
BaseMessages.getString(PKG,"CombinationLookupDialog.AvailableSchemas.Message",wConnection.getText()));
String d=dialog.open();
if (d!=null)
{
wSchema.setText(Const.NVL(d.toString(), ""));
setTableFieldCombo();
}
}else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(BaseMessages.getString(PKG,"CombinationLookupDialog.NoSchema.Error"));
mb.setText(BaseMessages.getString(PKG,"CombinationLookupDialog.GetSchemas.Error"));
mb.open();
}
}
catch(Exception e)
{
new ErrorDialog(shell, BaseMessages.getString(PKG, "System.Dialog.Error.Title"),
BaseMessages.getString(PKG,"CombinationLookupDialog.ErrorGettingSchemas"), e);
}
finally
{
if(database!=null)
{
database.disconnect();
database=null;
}
}
}
}
private void getTableName()
{
DatabaseMeta inf = null;
// New class: SelectTableDialog
int connr = wConnection.getSelectionIndex();
if (connr >= 0) inf = transMeta.getDatabase(connr);
if (inf != null)
{
logDebug(BaseMessages.getString(PKG, "CombinationLookupDialog.Log.LookingAtConnection", inf.toString()));
DatabaseExplorerDialog std = new DatabaseExplorerDialog(shell, SWT.NONE, inf, transMeta.getDatabases());
std.setSelectedSchemaAndTable(wSchema.getText(), wTable.getText());
if (std.open())
{
wSchema.setText(Const.NVL(std.getSchemaName(), ""));
wTable.setText(Const.NVL(std.getTableName(), ""));
setTableFieldCombo();
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR);
mb.setMessage(BaseMessages.getString(PKG, "CombinationLookupDialog.ConnectionError2.DialogMessage"));
mb.setText(BaseMessages.getString(PKG, "System.Dialog.Error.Title"));
mb.open();
}
}
private void get()
{
try
{
RowMetaInterface r = transMeta.getPrevStepFields(stepname);
if (r!=null && !r.isEmpty())
{
BaseStepDialog.getFieldsFromPrevious(r, wKey, 1, new int[] { 1, 2 }, new int[] {}, -1, -1, new TableItemInsertListener()
{
public boolean tableItemInserted(TableItem tableItem, ValueMetaInterface v)
{
tableItem.setText(3, "N"); //$NON-NLS-1$
return true;
}
}
);
}
}
catch(KettleException ke)
{
new ErrorDialog(shell, BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogTitle"), BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToGetFieldsError.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
}
}
/**
* Generate code for create table. Conversions done by database.
*/
private void create()
{
try
{
// Gather info...
CombinationLookupMeta info = new CombinationLookupMeta();
getInfo(info);
String name = stepname; // new name might not yet be linked to other steps!
StepMeta stepMeta = new StepMeta(BaseMessages.getString(PKG, "CombinationLookupDialog.StepMeta.Title"), name, info); //$NON-NLS-1$
RowMetaInterface prev = transMeta.getPrevStepFields(stepname);
SQLStatement sql = info.getSQLStatements(transMeta, stepMeta, prev);
if (!sql.hasError())
{
if (sql.hasSQL())
{
SQLEditor sqledit = new SQLEditor(transMeta, shell, SWT.NONE, info.getDatabaseMeta(), transMeta.getDbCache(), sql.getSQL());
sqledit.open();
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_INFORMATION );
mb.setMessage(BaseMessages.getString(PKG, "CombinationLookupDialog.NoSQLNeeds.DialogMessage")); //$NON-NLS-1$
mb.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.NoSQLNeeds.DialogTitle")); //$NON-NLS-1$
mb.open();
}
}
else
{
MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR );
mb.setMessage(sql.getError());
mb.setText(BaseMessages.getString(PKG, "CombinationLookupDialog.SQLError.DialogTitle")); //$NON-NLS-1$
mb.open();
}
}
catch(KettleException ke)
{
new ErrorDialog(shell, BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToCreateSQL.DialogTitle"), BaseMessages.getString(PKG, "CombinationLookupDialog.UnableToCreateSQL.DialogMessage"), ke); //$NON-NLS-1$ //$NON-NLS-2$
}
}
} | [
"cskason@gmail.com"
] | cskason@gmail.com |
20f916970bdf20c3d44648530c527c19f27be571 | fb45c50a9c0e4009642e5168dfd923fb535dc552 | /src/main/java/fr/synchroneyes/mapbuilder/Events/BlockPlace.java | d1511ede772f96f99eab1d475d905be54fd1c63c | [] | no_license | Synchroneyes/MapBuilder-MineralContest | d67facb34c5a63fa4b645778336e0a84005c6e21 | 77a984514852386a564934a66c8c4d708afd1cbe | refs/heads/master | 2023-03-04T16:14:12.874784 | 2021-02-05T07:34:26 | 2021-02-05T07:34:26 | 336,197,016 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 609 | java | package fr.synchroneyes.mapbuilder.Events;
import fr.synchroneyes.mapbuilder.Main;
import fr.synchroneyes.mapbuilder.Managers.ActionManager;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent;
public class BlockPlace implements Listener {
@EventHandler
public void onBlockAdded(BlockPlaceEvent event) {
ActionManager manager = Main.getInstance().getActionManager();
if(manager.shouldFireEvent(event.getClass(), event.getPlayer())){
manager.getCurrentAction().onOptionSelected(event);
}
}
}
| [
"ximylzx@gmail.com"
] | ximylzx@gmail.com |
2d5924320e904b39e5e26dba800ec96783325f02 | 143d1b6d31b06727d9078cae185723a71a4bb023 | /extalgjava/qtools/QTool.java | 64787ea0e0e29f49a6f902ec74ee8d13f027f87b | [] | no_license | peterunderdog/extalg | 80e241493784d1817fc2ce9de6df8c48d626cf44 | 073486fd60361644ec132270eb87b760a127ae3a | refs/heads/master | 2021-01-10T05:33:35.751778 | 2015-05-30T16:01:57 | 2015-05-30T16:01:57 | 36,399,107 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,425 | java | //Title: QTool - base class for tools
//Version: 1.0
//Copyright: Copyright (c) pb
//Author: pb
package qtools;
import java.awt.event.*;
import java.awt.Rectangle;
import java.awt.Graphics2D;
import java.awt.Color;
import java.awt.Point;
import java.util.Vector;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.event.KeyListener;
public abstract class QTool implements MouseListener, MouseMotionListener, KeyListener
{
protected DrawQuiverPanel panel;
protected Point currDragPoint;
protected Point lastDragPoint;
public QTool(DrawQuiverPanel panel)
{
this.panel=panel;
}
public abstract String buttonLabel();
/**
* default tool startup...override for different
* behavior
*/
public synchronized void start()
{
panel.quiver().unselectAll();
panel.repaint();
}
public void drawDrag(Graphics2D g, Color background)
{
}
public void mouseDragged(MouseEvent e)
{
}
public void mouseMoved(MouseEvent e)
{
}
public void mousePressed(MouseEvent e)
{
}
public void mouseReleased(MouseEvent e)
{
}
public void mouseEntered(MouseEvent e)
{
}
public void mouseExited(MouseEvent e)
{
}
public void mouseClicked(MouseEvent e)
{
}
public void keyPressed(KeyEvent e)
{
}
public void keyReleased(KeyEvent e)
{
}
public void keyTyped(KeyEvent e)
{
}
}
| [
"peterunderdog@gmail.com"
] | peterunderdog@gmail.com |
8eb52a7177cdd7b7e111575bb02075bb53a1d062 | 88f3340db957ef8b61e8c201d05dbd85aee49e35 | /app/src/main/java/com/example/xiaojun/posji/beans/BiDuiFanHui.java | 7cc1f60ed993162fca38e1088279ebd1c8d9d136 | [] | no_license | yoyo89757001/PosJi1 | ce215989ecae176443d689f2933204c74878cb57 | 27e60098820a2043c54ce0d56c40a7f1b4cc9a73 | refs/heads/master | 2021-01-18T22:18:46.179619 | 2018-01-12T10:14:45 | 2018-01-12T10:14:45 | 100,559,245 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,050 | java | package com.example.xiaojun.posji.beans;
/**
* Created by Administrator on 2017/10/23.
*/
public class BiDuiFanHui {
/**
* face1 : {"rect":{"left":576,"top":589,"width":311,"height":311},"confidence":0.99959975}
* face2 : {"rect":{"left":492,"top":754,"width":702,"height":702},"confidence":0.999997}
* score : 96.36503
*/
private Face1Bean face1;
private Face2Bean face2;
private double score;
public Face1Bean getFace1() {
return face1;
}
public void setFace1(Face1Bean face1) {
this.face1 = face1;
}
public Face2Bean getFace2() {
return face2;
}
public void setFace2(Face2Bean face2) {
this.face2 = face2;
}
public double getScore() {
return score;
}
public void setScore(double score) {
this.score = score;
}
public static class Face1Bean {
/**
* rect : {"left":576,"top":589,"width":311,"height":311}
* confidence : 0.99959975
*/
private RectBean rect;
private double confidence;
public RectBean getRect() {
return rect;
}
public void setRect(RectBean rect) {
this.rect = rect;
}
public double getConfidence() {
return confidence;
}
public void setConfidence(double confidence) {
this.confidence = confidence;
}
public static class RectBean {
/**
* left : 576
* top : 589
* width : 311
* height : 311
*/
private int left;
private int top;
private int width;
private int height;
public int getLeft() {
return left;
}
public void setLeft(int left) {
this.left = left;
}
public int getTop() {
return top;
}
public void setTop(int top) {
this.top = top;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
}
}
public static class Face2Bean {
/**
* rect : {"left":492,"top":754,"width":702,"height":702}
* confidence : 0.999997
*/
private RectBeanX rect;
private double confidence;
public RectBeanX getRect() {
return rect;
}
public void setRect(RectBeanX rect) {
this.rect = rect;
}
public double getConfidence() {
return confidence;
}
public void setConfidence(double confidence) {
this.confidence = confidence;
}
public static class RectBeanX {
/**
* left : 492
* top : 754
* width : 702
* height : 702
*/
private int left;
private int top;
private int width;
private int height;
public int getLeft() {
return left;
}
public void setLeft(int left) {
this.left = left;
}
public int getTop() {
return top;
}
public void setTop(int top) {
this.top = top;
}
public int getWidth() {
return width;
}
public void setWidth(int width) {
this.width = width;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
}
}
}
| [
"332663557@qq.com"
] | 332663557@qq.com |
77b20f7de62535bc0bd1df78c567b519adb8db97 | 46b2a518cf73257946b4ede7b10cea72962c53ea | /ctool/src/main/java/cc/catface/ctool/view/viewpager/PagerAdapterFm.java | f3e3a613aeefb27c5c13157307a77bc8501a6ed4 | [] | no_license | itCatface/catface_app | 85715cd1a8dffc918a30f7929aa4b8d595ee3366 | 3733574f18aa1d64a11ee15e8f068e8a2efe0edc | refs/heads/master | 2021-07-07T07:16:50.497220 | 2020-08-15T03:43:31 | 2020-08-15T03:43:31 | 162,247,912 | 0 | 1 | null | null | null | null | UTF-8 | Java | false | false | 1,306 | java | package cc.catface.ctool.view.viewpager;
import android.os.Parcelable;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentStatePagerAdapter;
import java.util.List;
/**
* Created by catfaceWYH --> tel|wechat|qq 130 128 92925
*/
public class PagerAdapterFm extends FragmentStatePagerAdapter {
private List<Fragment> mFms;
public PagerAdapterFm(@NonNull FragmentManager fm, List<Fragment> fms) {
super(fm);
this.mFms = fms;
}
private List<String> mTabTitles;
public PagerAdapterFm(@NonNull FragmentManager fm, List<String> tabTitles, List<Fragment> fms) {
super(fm);
this.mTabTitles = tabTitles;
this.mFms = fms;
}
@NonNull @Override public Fragment getItem(int position) {
return mFms.get(position);
}
@Override public int getCount() {
return null == mFms ? 0 : mFms.size();
}
@Nullable @Override public CharSequence getPageTitle(int position) {
return mTabTitles.get(position);
}
@Override public Parcelable saveState() {
return null;
}
@Override public void restoreState(Parcelable state, ClassLoader loader) { }
}
| [
"catface.wyh@foxmail.com"
] | catface.wyh@foxmail.com |
b232f3747de3b885cd05ab0a6fe26fa5e2df907d | aa22f9505b0596afc2390deb75ea6e834eb76050 | /src/main/java/adventofcode/calendar/year2018/day1/Part2.java | b3a44e18b0807657e2a6b8502074a9953ae83b91 | [] | no_license | adventcoder/adventofcode-java | 388bac631fa1f8b9bf4b0365a62ac5ec1892c9fb | 3a283cf9e6de702c0942ec1fdf1392b98ca54c61 | refs/heads/master | 2023-08-30T19:04:09.426530 | 2021-11-06T18:35:45 | 2021-11-06T18:35:45 | 420,742,607 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,392 | java | package adventofcode.calendar.year2018.day1;
import adventofcode.framework.AbstractPart;
import java.util.*;
public class Part2 extends AbstractPart<Integer> {
@Override
public Integer solve(String input) {
String[] lines = input.split("\n");
int[] freqs = new int[lines.length];
freqs[0] = Integer.parseInt(lines[0]);
for (int i = 1; i < lines.length; i++) {
freqs[i] = freqs[i - 1] + Integer.parseInt(lines[i]);
}
int step = freqs[freqs.length - 1];
// group by residue
int[] head = new int[step];
Arrays.fill(head, -1);
int[] next = new int[freqs.length];
for (int i = 0; i < freqs.length; i++) {
int r = Math.floorMod(freqs[i], step);
next[i] = head[r];
head[r] = i;
}
int minLoops = Integer.MAX_VALUE;
Integer firstRepeated = null;
for (int i = 0; i < freqs.length; i++) {
int r = Math.floorMod(freqs[i], step);
for (int j = head[r]; j != -1; j = next[j]) {
if (i == j || freqs[i] > freqs[j]) continue;
int loops = (freqs[j] - freqs[i]) / step;
if (loops < minLoops) {
minLoops = loops;
firstRepeated = freqs[j];
}
}
}
return firstRepeated;
}
}
| [
"59347361+adventcoder@users.noreply.github.com"
] | 59347361+adventcoder@users.noreply.github.com |
ae6372554ff90214ac8a2e39b86e14d6093ee7d1 | 9bcdf2b3db59c994e1602b9d40ed7cd5468d71e9 | /BigExercise2_Trần Ngọc Đản/Sources_Ex2_4/BigExcises/src/Ex2/DatabaseConnection.java | 4ad6f2017543d6795421d7e3993b7612ffdb656a | [] | no_license | dantn93/Advanced-Java-Sources | df99eeee97982117496c938016c3da96e0ff8e1f | 3fe75400c768b0f260fe57e4178c91c00e4003de | refs/heads/master | 2021-06-07T12:37:25.757220 | 2016-10-08T03:35:07 | 2016-10-08T03:35:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 907 | java | package Ex2;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* @author Tran Ngoc Dan
* @since 19/09/2016
* @version 1.0
*/
public class DatabaseConnection {
private static final String JDBC_URL = "jdbc:mysql://localhost:3306/cdstore?useUnicode=true&characterEncoding=utf8";
private static final String JDBC_DRIVER_CLASS = "com.mysql.jdbc.Driver";
private static final String JDBC_USERNAME = "root";
private static final String JDBC_PASSWORD = null;
/**
* connect to database.
* @return
* @throws java.lang.ClassNotFoundException
* @throws java.sql.SQLException
*/
public Connection connect() throws ClassNotFoundException, SQLException {
Class.forName(JDBC_DRIVER_CLASS);
Connection conn = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD);
return conn;
}
}
| [
"dantn93@gmail.com"
] | dantn93@gmail.com |
4e338ff5b7f3355aeb0ed8e345c9e7f7b4fb94bf | 5d041dc93b2e080852cf5ceb53b2922c9bee8858 | /Semanitic Web Project/ProjetJEE/src/com/gestion/model/sdb/SdbConsult.java | 03c455011ca366045424d25f1a93cb86afec8b82 | [] | no_license | gentringer/JavaEE | 7b8a1a0a68b30e60e3e0afe1b044de0fa4b4cd0f | 303985e20b7b2bfda5ad112e0c330dbfc3011128 | refs/heads/master | 2021-01-23T20:40:55.268670 | 2014-09-24T13:07:20 | 2014-09-24T13:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,948 | java | package com.gestion.model.sdb;
import com.hp.hpl.jena.query.*;
import com.hp.hpl.jena.sdb.SDBFactory;
import com.hp.hpl.jena.sdb.Store;
import com.hp.hpl.jena.sdb.StoreDesc;
import com.hp.hpl.jena.sdb.sql.JDBC;
import com.hp.hpl.jena.sdb.sql.SDBConnection;
import com.hp.hpl.jena.sdb.store.DatabaseType;
import com.hp.hpl.jena.sdb.store.DatasetStore;
import com.hp.hpl.jena.sdb.store.LayoutType;
import com.hp.hpl.jena.vocabulary.RDF;
public class SdbConsult {
public static final String NL = System.getProperty("line.separator") ;
static public void main(String...argv)
{
String geon ="http://rdf.insee.fr/geo/";
String prolog_e = "PREFIX vocab: <"+geon+">" ;
String prolog_r = "PREFIX rdf: <"+RDF.getURI()+">" ;
String queryString = prolog_e + NL + prolog_r + NL +
"SELECT ?s ?code ?nom where {" +
"?s vocab:code_region ?code ." +
"?s vocab:nom ?nom"+
"}";
queryString = "SELECT * { ?s ?p ?o }" ;
Query query = QueryFactory.create(queryString) ;
StoreDesc storeDesc = new StoreDesc(LayoutType.LayoutTripleNodesHash, DatabaseType.Oracle) ;
JDBC.loadDriverOracle() ; // Multiple choices for Derby - load the embedded driver
String jdbcURL = "jdbc:oracle:thin:@localhost:1521:xe";
// Passing null for user and password causes them to be extracted
// from the environment variables SDB_USER and SDB_PASSWORD
SDBConnection conn = new SDBConnection(jdbcURL, "gentringer", "959426") ;
// Make store from connection and store description.
Store store = SDBFactory.connectStore(conn, storeDesc) ;
Dataset ds = DatasetStore.create(store) ;
QueryExecution qe = QueryExecutionFactory.create(query, ds) ;
try {
ResultSet rs = qe.execSelect() ;
ResultSetFormatter.out(rs) ;
} finally { qe.close() ; }
store.close() ;
}
}
| [
"gilles.entringer@gmail.com"
] | gilles.entringer@gmail.com |
919a06ec1659e8469eb96dbd3e929017856fb007 | 71f7c817d9d82e7ac6d4ca038e9f89d6f2959d40 | /app/src/main/java/org/golde/android/carcontroller/ui/picker/ColorPickerWheel.java | 6991c6bdc30ff481273bd2468a8975c632c8ab42 | [] | no_license | egold555/CarController | b040852d1c48ce18d3e48805d6484ebc79eae5d1 | d4d5063fd58919097696058750c00b89dc343e05 | refs/heads/master | 2020-06-28T20:19:58.449440 | 2019-08-03T06:45:32 | 2019-08-03T06:45:32 | 200,331,948 | 3 | 0 | null | null | null | null | UTF-8 | Java | false | false | 2,348 | java | package org.golde.android.carcontroller.ui.picker;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ImageView;
import org.golde.android.carcontroller.MainActivity;
import org.golde.android.carcontroller.R;
import org.golde.android.carcontroller.ui.BetterColor;
import org.golde.android.carcontroller.ui.ColorChangeCallback;
public class ColorPickerWheel {
private final ColorChangeCallback callback;
ImageView mImageView;
Bitmap bitmap;
private int r = 255, g = 255, b = 255;
public ColorPickerWheel(MainActivity main, ColorChangeCallback callback){
this.callback = callback;
mImageView = main.findViewById(R.id.imageView);
//Not exactly sure what this does but I needed it
mImageView.setDrawingCacheEnabled(true);
mImageView.buildDrawingCache(true);
calcColor();
//On touch of the image. Seems to be global though for on touch whereever on the screen
mImageView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
if(motionEvent.getAction() == MotionEvent.ACTION_DOWN || motionEvent.getAction() == MotionEvent.ACTION_MOVE){
bitmap = mImageView.getDrawingCache();
int px = (int) motionEvent.getX();
int py = (int) motionEvent.getY();
//Fixes crashing when touching places not on the image. See comment about the setOnTouchListener
if(py >= bitmap.getHeight() || px >= bitmap.getWidth()){
return true;
}
int pixel = bitmap.getPixel(px, py);
//Black when clicking any transparent part of the image. Fixes that
if(Color.alpha(pixel) != 255){
return true;
}
r = Color.red(pixel);
g = Color.green(pixel);
b = Color.blue(pixel);
calcColor();
}
return true;
}
});
}
void calcColor(){
callback.onColorChange(new BetterColor(r, g, b));
}
}
| [
"eric@golde.org"
] | eric@golde.org |
8f926ea1011c832d82deab2f18720b97d9511ff9 | 4df9c7f677dd683dd1a638306cb51da11096bdb5 | /Part.java | 01fe7d3dfbac5f6b60d060bc08e2dd6efa934a03 | [] | no_license | projet13112018/JEUX | 7c351798f0df2b3d6b59d50a96ae8a0713cace3f | 0165f6d20db312410f74025421dbd9bfdd750bee | refs/heads/master | 2020-04-07T00:13:28.389963 | 2018-11-16T16:48:34 | 2018-11-16T16:48:34 | 157,895,127 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 156 | java | public class Part{
final int valeur;
public Part(int a){
this.valeur = a;
}
public String toString(){
return String.valueOf(valeur);
}
}
| [
"noreply@github.com"
] | projet13112018.noreply@github.com |
a77c2c2d42a71f768e2f1b7ca8746cd1e367017e | be73270af6be0a811bca4f1710dc6a038e4a8fd2 | /crash-reproduction-moho/results/LANG-39b-2-15-FEMO-WeightedSum:TestLen:CallDiversity/org/apache/commons/lang3/StringUtils_ESTest.java | b80c94a9305e619abd689f79a96b953a6dd40139 | [] | no_license | STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application | cf118b23ecb87a8bf59643e42f7556b521d1f754 | 3bb39683f9c343b8ec94890a00b8f260d158dfe3 | refs/heads/master | 2022-07-29T14:44:00.774547 | 2020-08-10T15:14:49 | 2020-08-10T15:14:49 | 285,804,495 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 830 | java | /*
* This file was automatically generated by EvoSuite
* Sat Apr 04 07:01:01 UTC 2020
*/
package org.apache.commons.lang3;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.apache.commons.lang3.StringUtils;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
@RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true)
public class StringUtils_ESTest extends StringUtils_ESTest_scaffolding {
@Test(timeout = 4000)
public void test0() throws Throwable {
String[] stringArray0 = new String[3];
stringArray0[0] = "#g/u&JW\"+C2ci?gz";
// Undeclared exception!
StringUtils.replaceEach("#g/u&JW\"+C2ci?gz", stringArray0, stringArray0);
}
}
| [
"pouria.derakhshanfar@gmail.com"
] | pouria.derakhshanfar@gmail.com |
88e5a71936ccec15fe7a33249b4abb1d40ca9e3a | 08d6b4338918ef86dc7aa57a5169ae25310272ce | /src/arg/tech/ws/AIFtoWigmoreWS.java | 5c4a0063a1307396573c0e8ae66169f7bc0c664c | [] | no_license | dzograf/WigmoreAIFConversions | 29d9329604dd6289ca5ee667e90c9a2bf9a8f639 | 6cec9cb21906ab9b9d08c8deadc4f2bda95f605f | refs/heads/master | 2023-05-02T10:39:21.886468 | 2020-07-31T12:31:43 | 2020-07-31T12:31:43 | 284,030,994 | 0 | 1 | null | 2023-04-14T17:37:30 | 2020-07-31T12:23:56 | Java | UTF-8 | Java | false | false | 1,306 | java | package arg.tech.ws;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;
import org.json.JSONObject;
import org.json.simple.parser.JSONParser;
import arg.tech.aif.models.AIFGraph;
import arg.tech.parsers.AIFParser;
import arg.tech.parsers.WigmoreParser;
import arg.tech.translation.AIFtoWigmore;
import arg.tech.translation.WigmoreToAIF;
import arg.tech.wigmore.models.WigmoreGraph;
@Path("/AIFtoWigmore")
public class AIFtoWigmoreWS {
JSONObject jsonObject;
@POST
@Produces("application/json")
public Response aifToWig(String jsonString) {
jsonObject = new JSONObject();
try {
Object obj = new JSONParser().parse(jsonString);
org.json.simple.JSONObject jsonObj = (org.json.simple.JSONObject) obj;
AIFGraph aifGraph = AIFParser.parse(jsonObj);
WigmoreGraph wigmoreGraph = AIFtoWigmore.convert(aifGraph);
String wigmoreJSONString = wigmoreGraph.toJSON();
jsonObject.put("result", wigmoreJSONString);
}
catch (Exception e) {
e.printStackTrace();
jsonObject.put("result", "");
}
return Response.status(200).entity(jsonObject.toString()).header("Access-Control-Allow-Origin", "*")
.header("Access-Control-Allow-Methods", "*").header("Access-Control-Allow-Headers", "*").build();
}
}
| [
"dimitra@arg.tech"
] | dimitra@arg.tech |
36d39cb85a172034201c510d67f3c96aa1c3a65a | 8a97b7d027402fb1ca9ad4078173861cbb8ff589 | /transporters/src/main/java/com/nextdoor/bender/ipc/http/AbstractHttpTransportConfig.java | 20fe228c9fcacd436d1cf1f713cd1f11ed3778a8 | [
"Apache-2.0"
] | permissive | izogain/bender | 7946326c76f03c2f5548119c534b60121b4a0e0f | b3b343a36162cce2145945375b25ce642cd81d5e | refs/heads/master | 2021-08-26T09:26:41.278617 | 2017-11-22T23:17:57 | 2017-11-22T23:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 4,489 | java | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
* Copyright 2017 Nextdoor.com, Inc
*
*/
package com.nextdoor.bender.ipc.http;
import java.io.UnsupportedEncodingException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaDefault;
import com.kjetland.jackson.jsonSchema.annotations.JsonSchemaDescription;
import com.nextdoor.bender.ipc.TransportConfig;
import com.nextdoor.bender.utils.Passwords;
public abstract class AbstractHttpTransportConfig extends TransportConfig {
@JsonSchemaDescription("HTTP endpoint hostname.")
@JsonProperty(required = true)
private String hostname = null;
@JsonSchemaDescription("HTTP endpoint port.")
@JsonSchemaDefault(value = "443")
@JsonProperty(required = false)
@Min(1)
@Max(65535)
private Integer port = 443;
@JsonSchemaDescription("Use SSL connections (certificates are not validated).")
@JsonSchemaDefault(value = "false")
@JsonProperty(required = false)
private Boolean useSSL = true;
@JsonSchemaDescription("Use GZIP compression on HTTP calls.")
@JsonSchemaDefault(value = "false")
@JsonProperty(required = false)
private Boolean useGzip = false;
@JsonSchemaDescription("Maximum number of documents in api call.")
@JsonSchemaDefault(value = "500")
@JsonProperty(required = false)
@Min(500)
@Max(100000)
private Integer batchSize = 500;
@JsonSchemaDescription("Number of retries to make when a put failure occurs.")
@JsonSchemaDefault(value = "0")
@JsonProperty(required = false)
@Min(0)
@Max(10)
private Integer retryCount = 0;
@JsonSchemaDescription("Initial delay between retries. If more than one retries specified exponential backoff is used.")
@JsonSchemaDefault(value = "1000")
@JsonProperty(required = false)
@Min(1)
@Max(60000)
private Long retryDelay = 1000l;
@JsonSchemaDescription("Socket timeout on HTTP connection.")
@JsonSchemaDefault(value = "40000")
@JsonProperty(required = false)
@Min(1000)
@Max(300000)
private Integer timeout = 40000;
@JsonSchemaDescription("HTTP headers to include. If header value starts with KMS= it will be decrypted.")
@JsonSchemaDefault(value = "{}")
@JsonProperty(required = false)
private Map<String,String> httpHeaders = new HashMap<String,String>(0);
public Boolean isUseSSL() {
return useSSL;
}
public void setUseSSL(Boolean useSSL) {
this.useSSL = useSSL;
}
public Boolean isUseGzip() {
return useGzip;
}
public void setUseGzip(Boolean useGzip) {
this.useGzip = useGzip;
}
public Integer getBatchSize() {
return batchSize;
}
public void setBatchSize(Integer batchSize) {
this.batchSize = batchSize;
}
public Integer getRetryCount() {
return retryCount;
}
public void setRetryCount(Integer retryCount) {
this.retryCount = retryCount;
}
public Long getRetryDelay() {
return retryDelay;
}
public void setRetryDelay(Long retryDelay) {
this.retryDelay = retryDelay;
}
public Integer getTimeout() {
return timeout;
}
public void setTimeout(Integer timeout) {
this.timeout = timeout;
}
public String getHostname() {
return hostname;
}
public void setHostname(String hostname) {
this.hostname = hostname;
}
public Integer getPort() {
return port;
}
public void setPort(Integer port) {
this.port = port;
}
public Map<String,String> getHttpHeaders() {
if (this.httpHeaders != null) {
this.httpHeaders.replaceAll((k, v) -> {
try {
return Passwords.getPassword(v);
} catch (UnsupportedEncodingException e) {
return v;
}
});
}
return this.httpHeaders;
}
public void setHttpHeaders(Map<String,String> httpHeaders) {
this.httpHeaders = httpHeaders;
}
}
| [
"slava@nextdoor.com"
] | slava@nextdoor.com |
630b009ba895664ee6e11dde906dc395d2e22f5c | b283946a7f1c68032a491718dea38b0f98b70068 | /receiver/src/main/java/vertx/receiver/ReceiverDeployer.java | daad84c7130019f486210f2f3933655d590f9d32 | [] | no_license | DENMROOT/vertxProcessor | 55ab37e0eb41a7a35a16a2fc97a3e1515edfe60d | e231f444f7d2aa3ef61685d72bbfaada345255db | refs/heads/main | 2023-01-03T06:41:38.855255 | 2020-10-29T13:17:34 | 2020-10-29T13:17:34 | 308,332,697 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,280 | java | package vertx.receiver;
import static vertx.common.ClusteredConfiguration.getHazelcastConfiguration;
import io.vertx.core.Vertx;
import io.vertx.core.VertxOptions;
import io.vertx.core.spi.cluster.ClusterManager;
import io.vertx.spi.cluster.hazelcast.HazelcastClusterManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class ReceiverDeployer {
private static final Logger LOGGER = LoggerFactory.getLogger(ReceiverDeployer.class);
public static void main(String[] args) {
ClusterManager mgr = new HazelcastClusterManager(getHazelcastConfiguration());
VertxOptions options = new VertxOptions().setClusterManager(mgr);
Vertx.clusteredVertx(options, cluster -> {
if (cluster.succeeded()) {
cluster.result().deployVerticle(new ReceiverVerticle(), res -> {
if (res.succeeded()) {
LOGGER.info("Receiver deployment id is: {}", res.result());
} else {
LOGGER.error("Deployment failed!");
}
});
} else {
LOGGER.error("Cluster up failed: ", cluster.cause());
}
}
);
}
}
| [
"denm2000@gmail.com"
] | denm2000@gmail.com |
74b64dfe6a7dd4d6d2cb6c69034213a94c35c215 | 05380b8656bfe1dc9ea80a265254d168c0bfdf13 | /agent/core/src/main/java/org/glowroot/agent/config/ConfigFile.java | be7bc5cc1913e743a4f43bd7c714dc28ba96aa78 | [
"Apache-2.0"
] | permissive | arpitaggarwal/glowroot | 8968216b2fdd7537c092641ff221c6c688c639c8 | c25cc8e95c13302fb57e130c645a394640bc162d | refs/heads/master | 2021-05-12T14:06:25.684682 | 2017-12-14T22:20:19 | 2017-12-15T00:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 11,724 | java | /*
* Copyright 2013-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.glowroot.agent.config;
import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import javax.annotation.Nullable;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Charsets;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Maps;
import com.google.common.collect.Ordering;
import com.google.common.io.CharStreams;
import com.google.common.io.Files;
import com.google.common.primitives.Ints;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.glowroot.common.util.ObjectMappers;
import org.glowroot.common.util.OnlyUsedByTests;
// TODO if config.json file has unrecognized top-level node (something other than "transactions",
// "ui", "userRecording", "advanced", etc) then log warning and remove that node
class ConfigFile {
private static final Logger logger = LoggerFactory.getLogger(ConfigFile.class);
private static final ObjectMapper mapper = ObjectMappers.create();
private static final List<String> keyOrder =
ImmutableList.of("transactions", "ui", "userRecording", "advanced", "gauges",
"syntheticMonitors", "alerts", "plugins", "instrumentation");
private final File file;
private final ObjectNode configRootObjectNode;
ConfigFile(File file) {
this.file = file;
if (file.exists()) {
configRootObjectNode = getRootObjectNode(file);
upgradeAlertsIfNeeded(configRootObjectNode);
} else {
configRootObjectNode = mapper.createObjectNode();
}
}
@Nullable
<T> T getConfigNode(String key, Class<T> clazz, ObjectMapper mapper) {
JsonNode node = configRootObjectNode.get(key);
if (node == null) {
return null;
}
try {
return mapper.treeToValue(node, clazz);
} catch (JsonProcessingException e) {
logger.error("error parsing config json node '{}': ", key, e);
return null;
}
}
<T extends /*@NonNull*/ Object> /*@Nullable*/ T getConfigNode(String key,
TypeReference<T> typeReference, ObjectMapper mapper) {
JsonNode node = configRootObjectNode.get(key);
if (node == null) {
return null;
}
try {
return mapper.readValue(mapper.treeAsTokens(node), typeReference);
} catch (IOException e) {
logger.error("error parsing config json node '{}': ", key, e);
writeBackupFile(file);
return null;
}
}
void writeConfig(String key, Object config, ObjectMapper mapper) throws IOException {
configRootObjectNode.replace(key, mapper.valueToTree(config));
writeToFileIfNeeded(file, configRootObjectNode, keyOrder);
}
void writeConfig(Map<String, Object> config, ObjectMapper mapper) throws IOException {
for (Entry<String, Object> entry : config.entrySet()) {
configRootObjectNode.replace(entry.getKey(), mapper.valueToTree(entry.getValue()));
}
writeToFileIfNeeded(file, configRootObjectNode, keyOrder);
}
@OnlyUsedByTests
void delete() throws IOException {
if (!file.delete()) {
throw new IOException("Could not delete file: " + file.getCanonicalPath());
}
}
private static void upgradeAlertsIfNeeded(ObjectNode configRootObjectNode) {
JsonNode alertsNode = configRootObjectNode.get("alerts");
if (alertsNode == null || !alertsNode.isArray()) {
return;
}
for (JsonNode alertNode : alertsNode) {
if (!(alertNode instanceof ObjectNode)) {
continue;
}
ObjectNode alertObjectNode = (ObjectNode) alertNode;
if (alertObjectNode.has("transactionThresholdMillis")) {
// upgrade from 0.9.9 to 0.9.10
alertObjectNode.set("thresholdMillis",
alertObjectNode.remove("transactionThresholdMillis"));
}
if (alertObjectNode.has("kind")) {
// upgrade from 0.9.17 to 0.9.18
String alertKind = alertObjectNode.remove("kind").asText();
if (alertKind.equals("transaction")) {
ObjectNode conditionObjectNode = mapper.createObjectNode();
conditionObjectNode.put("conditionType", "metric");
conditionObjectNode.put("metric", "transaction:x-percentile");
conditionObjectNode.set("transactionType",
alertObjectNode.remove("transactionType"));
conditionObjectNode.set("percentile",
alertObjectNode.remove("transactionPercentile"));
conditionObjectNode.set("threshold", alertObjectNode.remove("thresholdMillis"));
conditionObjectNode.set("timePeriodSeconds",
alertObjectNode.remove("timePeriodSeconds"));
conditionObjectNode.set("minTransactionCount",
alertObjectNode.remove("minTransactionCount"));
alertObjectNode.set("condition", conditionObjectNode);
} else if (alertKind.equals("gauge")) {
ObjectNode conditionObjectNode = mapper.createObjectNode();
conditionObjectNode.put("conditionType", "metric");
conditionObjectNode.put("metric",
"gauge:" + alertObjectNode.remove("gaugeName").asText());
conditionObjectNode.set("threshold", alertObjectNode.remove("gaugeThreshold"));
conditionObjectNode.set("timePeriodSeconds",
alertObjectNode.remove("timePeriodSeconds"));
alertObjectNode.set("condition", conditionObjectNode);
} else {
logger.error("unexpected alert kind: {}", alertKind);
}
ObjectNode emailNotificationObjectNode = mapper.createObjectNode();
emailNotificationObjectNode.set("emailAddresses",
alertObjectNode.remove("emailAddresses"));
alertObjectNode.set("emailNotification", emailNotificationObjectNode);
}
if (!alertObjectNode.has("severity")) {
// upgrade from 0.9.21 to 0.9.22
alertObjectNode.put("severity", "critical");
}
}
}
static ObjectNode getRootObjectNode(File file) {
String content;
try {
content = Files.toString(file, Charsets.UTF_8);
} catch (IOException e) {
logger.error(e.getMessage(), e);
return mapper.createObjectNode();
}
ObjectNode rootObjectNode = null;
try {
JsonNode rootNode = mapper.readTree(content);
if (rootNode instanceof ObjectNode) {
rootObjectNode = (ObjectNode) rootNode;
}
} catch (IOException e) {
logger.warn("error processing config file: {}", file.getAbsolutePath(), e);
writeBackupFile(file);
}
return rootObjectNode == null ? mapper.createObjectNode() : rootObjectNode;
}
static void writeToFileIfNeeded(File file, ObjectNode rootObjectNode, List<String> keyOrder)
throws IOException {
String content = writeConfigAsString(rootObjectNode, keyOrder);
if (file.exists()) {
String existingContent = Files.toString(file, Charsets.UTF_8);
if (content.equals(existingContent)) {
// it's nice to preserve the correct modification stamp on the file to track when it
// was last really changed
return;
}
}
Files.write(content, file, Charsets.UTF_8);
}
private static String writeConfigAsString(ObjectNode rootObjectNode, List<String> keyOrder)
throws IOException {
ObjectNode orderedRootObjectNode = getOrderedObjectNode(rootObjectNode, keyOrder);
ObjectMappers.stripEmptyContainerNodes(orderedRootObjectNode);
StringBuilder sb = new StringBuilder();
JsonGenerator jg = mapper.getFactory().createGenerator(CharStreams.asWriter(sb));
try {
jg.setPrettyPrinter(ObjectMappers.getPrettyPrinter());
jg.writeTree(orderedRootObjectNode);
} finally {
jg.close();
}
// newline is not required, just a personal preference
return sb.toString() + ObjectMappers.NEWLINE;
}
public static ObjectNode getOrderedObjectNode(ObjectNode objectNode, List<String> keyOrder) {
Map<String, JsonNode> map = Maps.newHashMap();
Iterator<Entry<String, JsonNode>> i = objectNode.fields();
while (i.hasNext()) {
Entry<String, JsonNode> entry = i.next();
map.put(entry.getKey(), entry.getValue());
}
ObjectNode orderedObjectNode = mapper.createObjectNode();
for (Entry<String, JsonNode> entry : new ExplicitOrdering(keyOrder)
.sortedCopy(map.entrySet())) {
orderedObjectNode.set(entry.getKey(), entry.getValue());
}
return orderedObjectNode;
}
private static void writeBackupFile(File file) {
File backupFile = new File(file.getParentFile(), file.getName() + ".invalid-orig");
try {
Files.copy(file, backupFile);
logger.warn("due to an error in the config file, it has been backed up to extension"
+ " '.invalid-orig' and will be overwritten with the default config");
} catch (IOException f) {
logger.warn("error making a copy of the invalid config file before overwriting it",
f);
}
}
private static class ExplicitOrdering extends Ordering<Entry<String, JsonNode>> {
private final List<String> explicitOrdering;
private ExplicitOrdering(List<String> explicitOrdering) {
this.explicitOrdering = explicitOrdering;
}
@Override
public int compare(Entry<String, JsonNode> left, Entry<String, JsonNode> right) {
String leftKey = left.getKey();
String rightKey = right.getKey();
int compare = Ints.compare(getIndex(leftKey), getIndex(rightKey));
if (compare != 0) {
return compare;
}
return Ordering.natural().compare(leftKey, rightKey);
}
private int getIndex(String key) {
int index = explicitOrdering.indexOf(key);
return index == -1 ? Integer.MAX_VALUE : index;
}
}
}
| [
"trask.stalnaker@gmail.com"
] | trask.stalnaker@gmail.com |
1d96fc9bbe2bda523d738e7ba4d3dac6f85befb0 | fdda6dd56a8dcb1a6b24fcf20715dd84be96b00a | /app/src/main/java/com/maulanadw/plantyhouse/AboutMeActivity.java | aa29817c99b239dbe3d218979e428820c539f527 | [] | no_license | maulanadw/PlantyHouse | 7a640f0a9298130c3546bc76116b720af61879c5 | 2a900297041ca7a6f1bff7af1a48ffa9f305014c | refs/heads/master | 2023-06-28T21:50:30.335711 | 2021-08-03T04:29:32 | 2021-08-03T04:29:32 | 370,705,026 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 728 | java | package com.maulanadw.plantyhouse;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
public class AboutMeActivity extends AppCompatActivity {
private ImageButton btnKembali;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about_me);
btnKembali = findViewById(R.id.btnKembali);
btnKembali.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onBackPressed();
}
});
}
} | [
"maulanawahyudi701@gmail.com"
] | maulanawahyudi701@gmail.com |
ac0ae430617331f595c7d8a00832101b8d5fad33 | da2e6a21f4be41723aa0e4cd4ca8b3eee5be5bef | /j2se/diy/src/com/main/Main.java | aa04a6acc957f7280d6afb49c05b3a768b42829b | [] | no_license | zhangxiao918/z1 | 073c3f24cdcb9b9e860af640814d9d7405b01af5 | 59c542286c09e63cbb1a9a42c192691d360d03b6 | refs/heads/master | 2020-05-03T14:20:01.641449 | 2013-08-05T16:12:07 | 2013-08-05T16:12:07 | 7,177,598 | 0 | 2 | null | null | null | null | UTF-8 | Java | false | false | 2,523 | java | package com.main;
import java.io.File;
import java.util.List;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.autohome.Callback;
import com.chinamilitary.bean.ImageBean;
import com.chinamilitary.dao.ImageDao;
import com.chinamilitary.factory.DAOFactory;
import com.chinamilitary.util.HttpClientUtils;
import com.chinamilitary.util.IOUtil;
import com.chinamilitary.util.StringUtils;
public class Main {
private static Logger logger = LoggerFactory.getLogger(Main.class);
final static ExecutorService taskPool = Executors.newFixedThreadPool(3);
/**
* @param args
*/
public static void main(String[] args) {
Integer[] ids = {154910,155543,155542,155801,155902,156111,157134,159294};
for (Integer id : ids) {
downloadImages(id);
}
}
private static void downloadImages(Integer articleId){
if (articleId > 0) {
ImageDao dao = DAOFactory.getInstance().getImageDao();
if (null != dao) {
List<ImageBean> list = null;
try {
list = dao.findImage(articleId);
} catch (Exception e) {
logger.error(e.getMessage());
}
if(null != list && list.size() > 0){
int i=0;
while(i<list.size()){
final ImageBean img = list.get(i);
final String dir = StringUtils.gerDir2(""+articleId,0);
logger.info(img.getHttpUrl()+"\t"+dir+"\r\n");
timeout(img.getHttpUrl(), new Callback() {
@Override
public void work(final byte[] body) {
taskPool.submit(new Runnable() {
public void run() {
String fileName = String.valueOf(Long.valueOf(System.currentTimeMillis()))+".zh";
if (img.getHttpUrl().lastIndexOf("/") != -1) {
fileName = img
.getHttpUrl()
.substring(
img
.getHttpUrl()
.lastIndexOf(
"/")+1);
}
logger.info("\t"+fileName);
// TODO 写入本地文件
IOUtil.saveFile(System.getProperty("user.dir")+File.separator+dir+fileName, body, false);
}
});
}
});
i++;
}
logger.info("i:"+i+"|list.size:"+list.size());
}
}
}
}
static void timeout(String webSite, Callback call) {
byte[] body = null;
body = HttpClientUtils.getBody(webSite);
if(null != body && body.length > 0){
call.work(body);
}
}
}
| [
"bluestome@21cn.com"
] | bluestome@21cn.com |
11fa23f2078921d9cd2afa55a2b071fe6566ca36 | 7780422ea62de5e5e91d75cd14344de1fbfe451a | /pluginloader/src/main/java/com/mchenys/pluginloader/core/ActivityLifecycleCallbacksProxy.java | 99a479326a2c51249d44dcdb479784ef756d994f | [] | no_license | mChenys/MyDynamicLoaderHook | e3dee58da9ef082a3875d0925a3e797ff4be1374 | b3653d51d7f61e4a61d57cfec05cecef63f9f6d5 | refs/heads/master | 2023-04-30T19:39:07.917809 | 2021-05-16T14:15:13 | 2021-05-16T14:15:13 | 365,275,601 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 3,699 | java | package com.mchenys.pluginloader.core;
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;
import com.mchenys.pluginloader.utils.ReflectUtils;
import java.util.ArrayList;
/**
* @Author: mChenys
* @Date: 2021/5/12
* @Description: 插件ActivityLifecycleCallbacks代理
*/
public class ActivityLifecycleCallbacksProxy implements Application.ActivityLifecycleCallbacks {
final ArrayList<Application.ActivityLifecycleCallbacks> mActivityLifecycleCallbacks =
ReflectUtils.getFieldSlience("android.app.Application", ReflectUtils.getActivityThreadApplication(), "mActivityLifecycleCallbacks");
Object[] collectActivityLifecycleCallbacks() {
if (mActivityLifecycleCallbacks == null) {
return null;
}
Object[] callbacks = null;
synchronized (mActivityLifecycleCallbacks) {
if (mActivityLifecycleCallbacks.size() > 0) {
callbacks = mActivityLifecycleCallbacks.toArray();
}
}
return callbacks;
}
@Override
public void onActivityCreated(Activity activity, Bundle savedInstanceState) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityCreated(activity,
savedInstanceState);
}
}
}
@Override
public void onActivityStarted(Activity activity) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityStarted(activity);
}
}
}
@Override
public void onActivityResumed(Activity activity) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityResumed(activity);
}
}
}
@Override
public void onActivityPaused(Activity activity) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityPaused(activity);
}
}
}
@Override
public void onActivityStopped(Activity activity) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityStopped(activity);
}
}
}
@Override
public void onActivitySaveInstanceState(Activity activity, Bundle outState) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivitySaveInstanceState(activity,
outState);
}
}
}
@Override
public void onActivityDestroyed(Activity activity) {
Object[] callbacks = collectActivityLifecycleCallbacks();
if (callbacks != null) {
for (int i = 0; i < callbacks.length; i++) {
((Application.ActivityLifecycleCallbacks) callbacks[i]).onActivityDestroyed(activity);
}
}
}
}
| [
"643353964@qq.com"
] | 643353964@qq.com |
97ed15c01913be0e1859327dfe5be3b3641e43d7 | 1f19aec2ecfd756934898cf0ad2758ee18d9eca2 | /u-1/u-11/u-11-111/u-11-111-f6304.java | 66aa3b5602f48857a72ca32038fa11067b901977 | [] | no_license | apertureatf/perftest | f6c6e69efad59265197f43af5072aa7af8393a34 | 584257a0c1ada22e5486052c11395858a87b20d5 | refs/heads/master | 2020-06-07T17:52:51.172890 | 2019-06-21T18:53:01 | 2019-06-21T18:53:01 | 193,039,805 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 106 | java | mastercard 5555555555554444 4012888888881881 4222222222222 378282246310005 6011111111111117
2130217765798 | [
"jenkins@khan.paloaltonetworks.local"
] | jenkins@khan.paloaltonetworks.local |
6a8bc3acabb5b46b7566421392d301a155f017fc | 348d2bf84b81ed7422f68651fa498a7f98f3622c | /src/test/java/pages/android/nativeapp/SignUp2ndPage.java | af336e7fe8968e06e1c19819cd8361bcf458b35c | [] | no_license | kartheek23/appiumFramework | 48461e7b41ad75952b3991783040aaafa8a1b8ec | 6e0f7e15965256e9611e51e8f9092568ba551b5d | refs/heads/master | 2021-09-06T23:19:48.347175 | 2018-02-13T11:48:53 | 2018-02-13T11:48:53 | 120,188,539 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 779 | java | package pages.android.nativeapp;
import org.openqa.selenium.By;
import root.PageMethods;
public class SignUp2ndPage extends PageMethods {
public static final By enterPwd = By.id("dimysik.new_norm.dnepr.ukraine.goodx:id/et_reg_pass");
public static final By enterCnfmPwd = By.id("dimysik.new_norm.dnepr.ukraine.goodx:id/et_reg_conf_pass");
public static final By signUpBtn = By.id("dimysik.new_norm.dnepr.ukraine.goodx:id/bt_registration");
public void enterPassword(String ePwd) {
driver.findElement(enterPwd).sendKeys(ePwd);
driver.hideKeyboard();
}
public void enterConfirmPassword(String cPwd) {
driver.findElement(enterCnfmPwd).sendKeys(cPwd);
driver.hideKeyboard();
}
public void clickSignUpBtn() {
driver.findElement(signUpBtn).click();
}
}
| [
"kchalla@castlighthealth.com"
] | kchalla@castlighthealth.com |
08754433d323d2b8512fa5c5afe0742515c9ed75 | 6cff1dfc45d730366f97d6c950b845bb97b3f229 | /src/main/java/micronaut/example/NewController.java | 7e4374acb06a1a246d3f7b5c9308b2c313a2f092 | [] | no_license | TechPrimers/micronaut-example-1 | 9603bc5003d977b7d65f233f77bec85084a47391 | 5c3d5ad1202bde32111ded5575ddb643081f1fbe | refs/heads/master | 2020-04-08T12:43:38.718073 | 2018-11-27T15:44:44 | 2018-11-27T15:44:44 | 159,359,018 | 0 | 5 | null | null | null | null | UTF-8 | Java | false | false | 288 | java | package micronaut.example;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
import io.micronaut.http.HttpStatus;
@Controller("/new")
public class NewController {
@Get("/")
public HttpStatus index() {
return HttpStatus.OK;
}
} | [
"movingtoweb@gmail.com"
] | movingtoweb@gmail.com |
2f53ee613c2999b4890ad53bc023394670041669 | 8360a2386a9fdf11992a2e8f716490ec40548bda | /src/udemy/Base.java | 3bc366b52bfd28d657e501e511a848cfe0da7556 | [] | no_license | postak971/seleniumjavalessons | 19699e4d8bdbfa3009b1d64f34d2a564d23ad7b8 | 30944365078dd7aae6ea4c69187e38b85a3275c9 | refs/heads/main | 2022-12-24T22:24:22.937488 | 2020-10-07T19:53:14 | 2020-10-07T19:53:14 | 302,144,180 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,430 | java | package udemy;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.By;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import org.testng.asserts.SoftAssert;
import io.github.bonigarcia.wdm.WebDriverManager;
@Listeners(udemy.TestListner.class)
public class Base {
public static WebDriver driver;
public void initialization() {
WebDriverManager.chromedriver().setup();
driver = new ChromeDriver();
driver.manage().window().maximize();
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);
}
public void takeScreenShot() throws IOException{
File scr = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);
String filename = new SimpleDateFormat("yyyyMMddhhmmss'.PNG'").format(new Date());
String filepath = "C:\\Users\\posta\\eclipse-workspace\\SeleniumUdemy\\src\\screenshots\\";
File dest = new File(filepath + filename);
FileUtils.copyFile(scr, dest);
}
}
| [
"postak.shrestha@gmail.com"
] | postak.shrestha@gmail.com |
151396db4061ad81566de98ba74ca669ef5a9b90 | bb10d3f788a19978466be97fa567e857e93c23ec | /core java/network/FileClient.java | e55ea3f6028c22b8c44219b7f31ac08b26521460 | [] | no_license | contrive-shubham/java | ffcac827b8fb535acaf30f0982924db1173bab59 | 446420e05745462515e788a5bbbbe22ed10d3a49 | refs/heads/master | 2022-11-28T16:39:05.967915 | 2020-08-05T18:07:12 | 2020-08-05T18:07:12 | 285,364,035 | 0 | 0 | null | null | null | null | UTF-8 | Java | false | false | 1,104 | java | import java.io.*;
import java.net.*;
class FileClient
{
public static void main(String arg[]) throws Exception
{
//create client socket
Socket s =new Socket("localhost",8888);
//accept filename from keyboard
BufferedReader kb = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter the filename ");
String fname =kb.readLine();
//send filename to the server using dataoutputstream
DataOutputStream out = new DataOutputStream(s .getOutputStream());
out.writeBytes(fname + "\n");
// to read data coming from the server
BufferedReader in = new BufferedReader(new InputStreamReader(s.getInputStream()));
String str ;
/// read first line from server into str
str =in.readLine();
//if file is found server returns yes ,else No
if(str.equals("yes"))
{
//read and display the file contents coming from server
while((str = in.readLine()) !=null)
System.out.println(str);
//close connection by closing the streams
kb.close();
out.close();
in.close();
s.close();
}
else
System.out.println("file not found ");
}
} | [
"developer.shubham.kumar@gmail.com"
] | developer.shubham.kumar@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.