\n Matcher matcherRichType = PATTERN_DIV_RICH_TYPE.matcher(cellHtml);\n if (matcherRichType.find()) {\n //
\n String cellRichTypeDivStr = matcherRichType.group(0);\n start[0] = cellRichTypeDivStr.length();\n if (cellRichTypeDivStr != null) {\n String richTypeStr = cellRichTypeDivStr.substring(15, cellRichTypeDivStr.length() - 2);\n return RichType.valueOf(richTypeStr);\n }\n }\n return null;\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2942,"cells":{"blob_id":{"kind":"string","value":"ce60340176143aa314c0e7038dce4caa5734766a"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"apache/lucene"},"path":{"kind":"string","value":"/lucene/core/src/java/org/apache/lucene/util/LongsRef.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":5231,"string":"5,231"},"score":{"kind":"number","value":2.875,"string":"2.875"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":["Apache-2.0","MIT","NAIST-2003","BSD-3-Clause","BSD-2-Clause","LicenseRef-scancode-unicode","LGPL-2.0-or-later","ICU","LicenseRef-scancode-unicode-mappings","CC-BY-SA-3.0","Python-2.0","LicenseRef-scancode-other-copyleft"],"string":"[\n \"Apache-2.0\",\n \"MIT\",\n \"NAIST-2003\",\n \"BSD-3-Clause\",\n \"BSD-2-Clause\",\n \"LicenseRef-scancode-unicode\",\n \"LGPL-2.0-or-later\",\n \"ICU\",\n \"LicenseRef-scancode-unicode-mappings\",\n \"CC-BY-SA-3.0\",\n \"Python-2.0\",\n \"LicenseRef-scancode-other-copyleft\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements. See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage org.apache.lucene.util;\n\nimport java.util.Arrays;\n\n/**\n * Represents long[], as a slice (offset + length) into an existing long[]. The {@link #longs}\n * member should never be null; use {@link #EMPTY_LONGS} if necessary.\n *\n * @lucene.internal\n */\npublic final class LongsRef implements Comparable
, Cloneable {\n /** An empty long array for convenience */\n public static final long[] EMPTY_LONGS = new long[0];\n\n /** The contents of the LongsRef. Should never be {@code null}. */\n public long[] longs;\n /** Offset of first valid long. */\n public int offset;\n /** Length of used longs. */\n public int length;\n\n /** Create a LongsRef with {@link #EMPTY_LONGS} */\n public LongsRef() {\n longs = EMPTY_LONGS;\n }\n\n /**\n * Create a LongsRef pointing to a new array of size capacity
. Offset and length will\n * both be zero.\n */\n public LongsRef(int capacity) {\n longs = new long[capacity];\n }\n\n /** This instance will directly reference longs w/o making a copy. longs should not be null */\n public LongsRef(long[] longs, int offset, int length) {\n this.longs = longs;\n this.offset = offset;\n this.length = length;\n assert isValid();\n }\n\n /**\n * Returns a shallow clone of this instance (the underlying longs are not copied and will\n * be shared by both the returned object and this object.\n *\n * @see #deepCopyOf\n */\n @Override\n public LongsRef clone() {\n return new LongsRef(longs, offset, length);\n }\n\n @Override\n public int hashCode() {\n final int prime = 31;\n int result = 0;\n final long end = (long) offset + length;\n for (int i = offset; i < end; i++) {\n result = prime * result + (int) (longs[i] ^ (longs[i] >>> 32));\n }\n return result;\n }\n\n @Override\n public boolean equals(Object other) {\n if (other == null) {\n return false;\n }\n if (other instanceof LongsRef) {\n return this.longsEquals((LongsRef) other);\n }\n return false;\n }\n\n public boolean longsEquals(LongsRef other) {\n return Arrays.equals(\n this.longs,\n this.offset,\n this.offset + this.length,\n other.longs,\n other.offset,\n other.offset + other.length);\n }\n\n /** Signed int order comparison */\n @Override\n public int compareTo(LongsRef other) {\n return Arrays.compare(\n this.longs,\n this.offset,\n this.offset + this.length,\n other.longs,\n other.offset,\n other.offset + other.length);\n }\n\n @Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append('[');\n final long end = (long) offset + length;\n for (int i = offset; i < end; i++) {\n if (i > offset) {\n sb.append(' ');\n }\n sb.append(Long.toHexString(longs[i]));\n }\n sb.append(']');\n return sb.toString();\n }\n\n /**\n * Creates a new LongsRef that points to a copy of the longs from other
\n *\n * The returned IntsRef will have a length of other.length and an offset of zero.\n */\n public static LongsRef deepCopyOf(LongsRef other) {\n return new LongsRef(\n ArrayUtil.copyOfSubArray(other.longs, other.offset, other.offset + other.length),\n 0,\n other.length);\n }\n\n /** Performs internal consistency checks. Always returns true (or throws IllegalStateException) */\n public boolean isValid() {\n if (longs == null) {\n throw new IllegalStateException(\"longs is null\");\n }\n if (length < 0) {\n throw new IllegalStateException(\"length is negative: \" + length);\n }\n if (length > longs.length) {\n throw new IllegalStateException(\n \"length is out of bounds: \" + length + \",longs.length=\" + longs.length);\n }\n if (offset < 0) {\n throw new IllegalStateException(\"offset is negative: \" + offset);\n }\n if (offset > longs.length) {\n throw new IllegalStateException(\n \"offset out of bounds: \" + offset + \",longs.length=\" + longs.length);\n }\n if (offset + length < 0) {\n throw new IllegalStateException(\n \"offset+length is negative: offset=\" + offset + \",length=\" + length);\n }\n if (offset + length > longs.length) {\n throw new IllegalStateException(\n \"offset+length out of bounds: offset=\"\n + offset\n + \",length=\"\n + length\n + \",longs.length=\"\n + longs.length);\n }\n return true;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2943,"cells":{"blob_id":{"kind":"string","value":"1ee20ff566e5f0d646477abd8a37b2b3a74206fc"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"HsuJv/Note"},"path":{"kind":"string","value":"/Code/Java/Se2/Chapter 03/Exercise 01/Solution/TaskProcessor.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":199,"string":"199"},"score":{"kind":"number","value":2.4375,"string":"2.4375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package chapter03;\n\npublic class TaskProcessor \n{\n private X value;\n\n public TaskProcessor(X v) \n {\n value = v;\n }\n\n public X getTaskP() \n {\n return value;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2944,"cells":{"blob_id":{"kind":"string","value":"66f8e8f7c1d11a2d4415b9b0e116a0af0c4db43a"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"JarekSobczak/fileToDataBaseManager"},"path":{"kind":"string","value":"/src/main/java/pl/brite/ownProject/fileToDb/service/JsonService.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":807,"string":"807"},"score":{"kind":"number","value":2.328125,"string":"2.328125"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package pl.brite.ownProject.fileToDb.service;\n\nimport com.fasterxml.jackson.databind.ObjectMapper;\nimport com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;\nimport pl.brite.ownProject.fileToDb.model.Customer;\n\nimport java.io.File;\nimport java.io.IOException;\nimport java.util.List;\n\npublic class JsonService {\n\n private List customers;\n\n public JsonService(List customers) {\n this.customers = customers;\n }\n\n void mapJson(File file) {\n ObjectMapper om = new ObjectMapper();\n om.registerModule(new JavaTimeModule());\n\n try {\n customers.addAll(om.readValue(file, new com.fasterxml.jackson.core.type.TypeReference>() {\n }));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2945,"cells":{"blob_id":{"kind":"string","value":"0c0c603c601244ee1fbac28b6666879301ee603e"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"gbonk/HermesJMS"},"path":{"kind":"string","value":"/src/java/org/objectweb/joram/client/jms/admin/Subscription.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":332,"string":"332"},"score":{"kind":"number","value":1.5234375,"string":"1.523438"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["LicenseRef-scancode-unknown-license-reference","Apache-2.0"],"string":"[\n \"LicenseRef-scancode-unknown-license-reference\",\n \"Apache-2.0\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"package org.objectweb.joram.client.jms.admin;\n\npublic class Subscription {\n\n\tpublic Object getTopicId() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n\tpublic String getName() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n\tpublic String isDurable() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2946,"cells":{"blob_id":{"kind":"string","value":"ce63d05923adc9a735f3c88694e58ecb6b2e5ed0"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"tahametal/HR-Manager"},"path":{"kind":"string","value":"/src/main/java/com/sqli/rh_manager/entities/Bu.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1561,"string":"1,561"},"score":{"kind":"number","value":2.1875,"string":"2.1875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.sqli.rh_manager.entities;\n// Generated Dec 19, 2013 6:37:54 PM by Hibernate Tools 3.2.1.GA\n\n\nimport java.util.HashSet;\nimport java.util.Set;\nimport javax.persistence.CascadeType;\nimport javax.persistence.Column;\nimport javax.persistence.Entity;\nimport javax.persistence.FetchType;\nimport javax.persistence.Id;\nimport javax.persistence.OneToMany;\nimport javax.persistence.Table;\n\n/**\n * Bu generated by hbm2java\n */\n@Entity\n@Table(name=\"bu\"\n ,catalog=\"rh_manager\"\n)\npublic class Bu implements java.io.Serializable {\n\n\n private int id;\n private String bu;\n private Set collaborateurs = new HashSet(0);\n\n public Bu() {\n }\n\n\t\n public Bu(int id) {\n this.id = id;\n }\n public Bu(int id, String bu, Set collaborateurs) {\n this.id = id;\n this.bu = bu;\n this.collaborateurs = collaborateurs;\n }\n \n @Id \n \n @Column(name=\"Id\", unique=true, nullable=false)\n public int getId() {\n return this.id;\n }\n \n public void setId(int id) {\n this.id = id;\n }\n \n @Column(name=\"BU\", length=254)\n public String getBu() {\n return this.bu;\n }\n \n public void setBu(String bu) {\n this.bu = bu;\n }\n@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy=\"bu\")\n public Set getCollaborateurs() {\n return this.collaborateurs;\n }\n \n public void setCollaborateurs(Set collaborateurs) {\n this.collaborateurs = collaborateurs;\n }\n\n\n\n\n}\n\n\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2947,"cells":{"blob_id":{"kind":"string","value":"daecaa36d9c7e52db7c2a0d782757d54905b7930"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"wjW901314/ERP"},"path":{"kind":"string","value":"/src/main/java/com/wd/erp/service/impl/BasisUserRoleServiceImpl.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":2391,"string":"2,391"},"score":{"kind":"number","value":2.171875,"string":"2.171875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.wd.erp.service.impl;\n\nimport com.wd.erp.mapper.BasisUserRoleMapper;\nimport com.wd.erp.model.BasisUserRole;\nimport com.wd.erp.model.ResultJson;\nimport com.wd.erp.service.BasisUserRoleService;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Service;\nimport org.springframework.util.StringUtils;\n\nimport java.util.List;\n\n@Service\npublic class BasisUserRoleServiceImpl implements BasisUserRoleService {\n\n @Autowired\n BasisUserRoleMapper basisUserRoleMapper;\n\n @Override\n public ResultJson addUserRole(BasisUserRole recode) {\n ResultJson resultJson = new ResultJson();\n resultJson.setCode(-1);\n resultJson.setSuccess(false);\n resultJson.setMsg(\"添加用户角色失败!\");\n if(StringUtils.isEmpty(recode.getLoginName())){\n resultJson.setMsg(\"用户名不能为空!\");\n return resultJson;\n }\n int i = basisUserRoleMapper.insert(recode);\n if(i == 1){\n resultJson.setCode(0);\n resultJson.setSuccess(true);\n resultJson.setMsg(\"添加用户角色成功!\");\n resultJson.setData(i);\n }\n return resultJson;\n }\n\n @Override\n public ResultJson getAll() {\n ResultJson resultJson = new ResultJson();\n resultJson.setCode(-1);\n resultJson.setMsg(\"查询失败!\");\n resultJson.setSuccess(false);\n List list = basisUserRoleMapper.getAll();\n if(list.size() >= 0){\n resultJson.setCode(0);\n resultJson.setSuccess(true);\n resultJson.setMsg(\"查询成功!\");\n resultJson.setData(list);\n }\n return resultJson;\n }\n\n @Override\n public ResultJson deleteUserRole(String id) {\n ResultJson resultJson = new ResultJson();\n resultJson.setCode(-1);\n resultJson.setSuccess(false);\n resultJson.setMsg(\"删除用户角色失败!\");\n if(StringUtils.isEmpty(id)){\n resultJson.setMsg(\"id不能为空!\");\n return resultJson;\n }\n int i = basisUserRoleMapper.deleteByPrimaryKey(id);\n if(i == 1){\n resultJson.setCode(0);\n resultJson.setSuccess(true);\n resultJson.setMsg(\"删除用户角色成功!\");\n resultJson.setData(i);\n }\n return resultJson;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2948,"cells":{"blob_id":{"kind":"string","value":"70ad9d5fb464df2f0e488069af37e7ed46d37829"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"termxz/LiveReport"},"path":{"kind":"string","value":"/src/main/java/io/termxz/bungee/LiveBridge.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1180,"string":"1,180"},"score":{"kind":"number","value":2.21875,"string":"2.21875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package io.termxz.bungee;\n\nimport net.md_5.bungee.api.event.PluginMessageEvent;\nimport net.md_5.bungee.api.plugin.Listener;\nimport net.md_5.bungee.api.plugin.Plugin;\nimport net.md_5.bungee.event.EventHandler;\n\npublic class LiveBridge extends Plugin implements Listener {\n\n private static final String CHANNEL_NAME_IN = \"livereport:bungee\";\n private static final String CHANNEL_NAME_OUT = \"livereport:spigot\";\n\n @Override\n public void onEnable() {\n getProxy().registerChannel(CHANNEL_NAME_IN);\n getProxy().registerChannel(CHANNEL_NAME_OUT);\n getProxy().getPluginManager().registerListener(this, this);\n }\n\n @Override\n public void onDisable() {\n getProxy().unregisterChannel(CHANNEL_NAME_IN);\n getProxy().registerChannel(CHANNEL_NAME_OUT);\n }\n\n /*\n\n Data Received & Distributed:\n\n 0 SERVER_NAME\n 1 REPORTER\n 2 OFFENDER\n 3 REASON\n 4 TYPE\n\n */\n\n @EventHandler\n public void onReceive(PluginMessageEvent e) {\n if(!e.getTag().equals(CHANNEL_NAME_IN)) return;\n getProxy().getServers().values().forEach(serverInfo -> serverInfo.sendData(CHANNEL_NAME_OUT, e.getData(), true));\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2949,"cells":{"blob_id":{"kind":"string","value":"4276af7283af57483fd96e343177a8741f496a7c"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"NicoCometta/TP1_AlgoBay_java"},"path":{"kind":"string","value":"/src/fiuba/algo3/AlgoBay/AlgoBay.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1760,"string":"1,760"},"score":{"kind":"number","value":2.953125,"string":"2.953125"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package fiuba.algo3.AlgoBay;\n\nimport com.sun.org.apache.regexp.internal.RE;\n\nimport java.util.ArrayList;\n\n/**\n * Created by nico on 29/10/17.\n */\npublic class AlgoBay {\n\n private ArrayList listaProductos;\n\n public AlgoBay(){\n this.listaProductos = new ArrayList<>();\n }\n\n public int getCantidadDeProductos() {\n return this.listaProductos.size();\n }\n\n public Producto agregarProductoConPrecio(String nombreProducto, double precioProducto) {\n Producto nuevoProducto = new Producto(nombreProducto, precioProducto);\n\n this.listaProductos.add(nuevoProducto);\n\n return nuevoProducto;\n }\n\n public Producto getProducto(String nombreProducto) {\n\n for (Producto unProducto: this.listaProductos) {\n if (unProducto.Eres(nombreProducto))\n return unProducto;\n }\n\n return null;\n }\n\n public Compra crearNuevaCompra() {\n return Compra.crearCompraSimple();\n }\n\n public void agregarProductoEnCompra(Producto unProducto, Compra unaCompra) {\n unaCompra.agregarProducto(unProducto);\n }\n\n public double getPrecioTotalDe(Compra unaCompra) {\n return unaCompra.getPrecio();\n }\n\n public Compra crearNuevaCompraConEnvio() {\n return Compra.crearCompraConEnvio();\n }\n\n public Compra crearNuevaCompraConGarantia() {\n return Compra.crearCompraConGarantia();\n }\n\n public Compra crearNuevaCompraConEnvioYGarantia() {\n return Compra.crearCompraConGarantiaYEnvio();\n }\n\n public Cupon crearCuponConPorcentaje(int unDescuento) {\n return (new Cupon(unDescuento));\n }\n\n public void agregarCuponEnCompra(Cupon unCupon, Compra unaCompra) {\n unaCompra.agregarCupon(unCupon);\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2950,"cells":{"blob_id":{"kind":"string","value":"f29d2698e0b9287c7488e897be92d41fd1d1aae7"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"pcieszynski/tablettop-rpg"},"path":{"kind":"string","value":"/src/main/java/com/ender/tablettop/service/dto/PlayerMessageDTO.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":2840,"string":"2,840"},"score":{"kind":"number","value":2.484375,"string":"2.484375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.ender.tablettop.service.dto;\n\nimport java.io.Serializable;\nimport java.util.Objects;\nimport javax.persistence.Lob;\n\n/**\n * A DTO for the PlayerMessage entity.\n */\npublic class PlayerMessageDTO implements Serializable {\n\n private Long id;\n\n @Lob\n private String message;\n\n private String attack;\n\n private Integer heal;\n\n private Integer difficulty;\n\n private Boolean success;\n\n private String attribute;\n\n private Long playerId;\n\n private Long eventId;\n\n public Long getId() {\n return id;\n }\n\n public void setId(Long id) {\n this.id = id;\n }\n\n public String getMessage() {\n return message;\n }\n\n public void setMessage(String message) {\n this.message = message;\n }\n\n public String getAttack() {\n return attack;\n }\n\n public void setAttack(String attack) {\n this.attack = attack;\n }\n\n public Integer getHeal() {\n return heal;\n }\n\n public void setHeal(Integer heal) {\n this.heal = heal;\n }\n\n public Integer getDifficulty() {\n return difficulty;\n }\n\n public void setDifficulty(Integer difficulty) {\n this.difficulty = difficulty;\n }\n\n public Boolean isSuccess() {\n return success;\n }\n\n public void setSuccess(Boolean success) {\n this.success = success;\n }\n\n public String getAttribute() {\n return attribute;\n }\n\n public void setAttribute(String attribute) {\n this.attribute = attribute;\n }\n\n public Long getPlayerId() {\n return playerId;\n }\n\n public void setPlayerId(Long playerId) {\n this.playerId = playerId;\n }\n\n public Long getEventId() {\n return eventId;\n }\n\n public void setEventId(Long eventId) {\n this.eventId = eventId;\n }\n\n @Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n\n PlayerMessageDTO playerMessageDTO = (PlayerMessageDTO) o;\n if (playerMessageDTO.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), playerMessageDTO.getId());\n }\n\n @Override\n public int hashCode() {\n return Objects.hashCode(getId());\n }\n\n @Override\n public String toString() {\n return \"PlayerMessageDTO{\" +\n \"id=\" + getId() +\n \", message='\" + getMessage() + \"'\" +\n \", attack='\" + getAttack() + \"'\" +\n \", heal=\" + getHeal() +\n \", difficulty=\" + getDifficulty() +\n \", success='\" + isSuccess() + \"'\" +\n \", attribute='\" + getAttribute() + \"'\" +\n \", player=\" + getPlayerId() +\n \", event=\" + getEventId() +\n \"}\";\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2951,"cells":{"blob_id":{"kind":"string","value":"5fea233b097ff9edc5685c7e060b20ae5979e813"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"miguellysanchez/realmexamples"},"path":{"kind":"string","value":"/app/src/main/java/com/example/realmexample/part2/realmobjects/DogRO.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":690,"string":"690"},"score":{"kind":"number","value":2.625,"string":"2.625"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.example.realmexample.part2.realmobjects;\n\nimport io.realm.RealmObject;\nimport io.realm.annotations.PrimaryKey;\n\n/**\n * Created by miguellysanchez on 8/7/17.\n */\n\npublic class DogRO extends RealmObject {\n\n @PrimaryKey\n private String name;\n private String breed;\n private int age;\n\n public String getName() {\n return name;\n }\n\n public void setName(String name) {\n this.name = name;\n }\n\n public String getBreed() {\n return breed;\n }\n\n public void setBreed(String breed) {\n this.breed = breed;\n }\n\n public int getAge() {\n return age;\n }\n\n public void setAge(int age) {\n this.age = age;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2952,"cells":{"blob_id":{"kind":"string","value":"98f1e6263111d3fd85a0f3ada284d889ab2d535d"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"apotukareon/hibersap"},"path":{"kind":"string","value":"/hibersap-core/src/main/java/org/hibersap/configuration/xml/Property.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":3039,"string":"3,039"},"score":{"kind":"number","value":2.1875,"string":"2.1875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"/*\n * Copyright (c) 2008-2019 akquinet tech@spree GmbH\n *\n * This file is part of Hibersap.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this software except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\npackage org.hibersap.configuration.xml;\n\nimport java.io.Serializable;\nimport javax.annotation.Generated;\nimport javax.xml.bind.annotation.XmlAccessType;\nimport javax.xml.bind.annotation.XmlAccessorType;\nimport javax.xml.bind.annotation.XmlAttribute;\nimport javax.xml.bind.annotation.XmlType;\n\n@XmlAccessorType(XmlAccessType.FIELD)\n@XmlType(name = \"\")\npublic class Property implements Serializable {\n\n @XmlAttribute(required = true)\n protected String name;\n @XmlAttribute(required = true)\n protected String value;\n\n @SuppressWarnings({\"UnusedDeclaration\"})\n public Property() {\n }\n\n public Property(final String name, final String value) {\n this.name = name;\n this.value = value;\n }\n\n /**\n * Gets the value of the name properties.\n *\n * @return possible object is\n * {@link String }\n */\n public String getName() {\n return name;\n }\n\n /**\n * Sets the value of the name properties.\n *\n * @param value allowed object is\n * {@link String }\n */\n public void setName(final String value) {\n this.name = value;\n }\n\n /**\n * Gets the value of the value properties.\n *\n * @return possible object is\n * {@link String }\n */\n public String getValue() {\n return value;\n }\n\n /**\n * Sets the value of the value properties.\n *\n * @param value allowed object is\n * {@link String }\n */\n public void setValue(final String value) {\n this.value = value;\n }\n\n @Override\n public String toString() {\n return \"(\" + name + \" => \" + value + \")\";\n }\n\n @Override\n @Generated(\"\")\n public boolean equals(final Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n\n Property property = (Property) o;\n\n if (name != null ? !name.equals(property.name) : property.name != null) {\n return false;\n }\n if (value != null ? !value.equals(property.value) : property.value != null) {\n return false;\n }\n\n return true;\n }\n\n @Override\n @Generated(\"\")\n public int hashCode() {\n int result = name != null ? name.hashCode() : 0;\n result = 31 * result + (value != null ? value.hashCode() : 0);\n return result;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2953,"cells":{"blob_id":{"kind":"string","value":"622cf2cfc24e77fd2cd0b5650b519ef77bac29d2"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"percussion/percussioncms"},"path":{"kind":"string","value":"/projects/sitemanage/src/main/java/com/percussion/sitemanage/data/PSSiteImportCtx.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":6337,"string":"6,337"},"score":{"kind":"number","value":1.875,"string":"1.875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["LicenseRef-scancode-dco-1.1","Apache-2.0","OFL-1.1","LGPL-2.0-or-later"],"string":"[\n \"LicenseRef-scancode-dco-1.1\",\n \"Apache-2.0\",\n \"OFL-1.1\",\n \"LGPL-2.0-or-later\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"/*\n * Copyright 1999-2023 Percussion Software, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\npackage com.percussion.sitemanage.data;\n\nimport com.percussion.sitemanage.importer.IPSSiteImportLogger;\nimport com.percussion.sitesummaryservice.service.IPSSiteImportSummaryService;\nimport com.percussion.theme.data.PSThemeSummary;\n\nimport java.util.Map;\n\n/**\n * @author LucasPiccoli\n *\n */\npublic class PSSiteImportCtx\n{\n\n String siteUrl;\n \n PSSite site;\n \n IPSSiteImportLogger logger;\n \n IPSSiteImportSummaryService summaryService;\n \n Map summaryStats;\n\n PSThemeSummary themeSummary;\n \n String themesRootDirectory;\n \n String templateId = null;\n \n String pageName;\n \n String catalogedPageId;\n\n String templateName;\n\t\n\tString statusMessagePrefix;\n\t \n String userAgent;\n\n boolean isCanceled = false;\n \n /**\n * @return the siteUrl\n */\n public String getSiteUrl()\n {\n return siteUrl;\n }\n\n /**\n * @param siteUrl the siteUrl to set\n */\n public void setSiteUrl(String siteUrl)\n {\n this.siteUrl = siteUrl;\n }\n\n /**\n * @return the site\n */\n public PSSite getSite()\n {\n return site;\n }\n\n /**\n * @param site the site to set\n */\n public void setSite(PSSite site)\n {\n this.site = site;\n }\n \n /**\n * Set logger on the context.\n * \n * @param logger The logger, never null
\n */\n public void setLogger(IPSSiteImportLogger logger)\n {\n this.logger = logger; \n }\n \n /**\n * Get the current logger.\n * \n * @return The logger, never null
.\n * @throws IllegalStateException if no logger has been set.\n */\n public IPSSiteImportLogger getLogger()\n {\n if (logger == null)\n throw new IllegalStateException(\"logger has not been set\");\n \n return logger;\n }\n\n public IPSSiteImportSummaryService getSummaryService()\n {\n return summaryService;\n }\n\n public void setSummaryService(IPSSiteImportSummaryService summaryService)\n {\n this.summaryService = summaryService;\n }\n\n \n /**\n * @return the theme summary\n */\n public PSThemeSummary getThemeSummary()\n {\n return themeSummary;\n }\n \n /**\n * @param themeSummary the new summary to assign\n */\n public void setThemeSummary(PSThemeSummary themeSummary)\n {\n this.themeSummary = themeSummary;\n }\n \n /**\n * @return the themes root directory absolute path\n */\n public String getThemesRootDirectory()\n {\n return themesRootDirectory;\n }\n\n /**\n * @param themesRootDirectory the themes root directory absolute path\n */\n public void setThemesRootDirectory(String themesRootDirectory)\n {\n this.themesRootDirectory = themesRootDirectory;\n }\n\n /**\n * Get the id of the template if one was created during the import process.\n * \n * @return The id, or null
if a template was not created.\n */\n public String getTemplateId()\n {\n return templateId;\n }\n\n /**\n * Set the id of the template if one was created during the import process, must\n * be called in order for an import log to be saved.\n * \n * @param templateId The template id.\n */\n public void setTemplateId(String templateId)\n {\n this.templateId = templateId;\n }\n\n /**\n * @return the pageName\n */\n public String getPageName()\n {\n return pageName;\n }\n\n /**\n * @param pageName the pageName to set\n */\n public void setPageName(String pageName)\n {\n this.pageName = pageName;\n }\n\n /**\n * @return the templateName\n */\n public String getTemplateName()\n {\n return templateName;\n }\n\n /**\n * @param templateName the templateName to set\n */\n public void setTemplateName(String templateName)\n {\n this.templateName = templateName;\n } \n \n /**\n * @return the statusMessagePrefix\n */\n public String getStatusMessagePrefix()\n {\n return statusMessagePrefix;\n }\n\n /**\n * @param statusMessagePrefix the statusMessagePrefix to set\n */\n public void setStatusMessagePrefix(String statusMessagePrefix)\n {\n this.statusMessagePrefix = statusMessagePrefix;\n } \n \n /**\n * @return the userAgent\n */\n public String getUserAgent()\n {\n return userAgent;\n }\n\n /**\n * @param userAgent the userAgent to set\n */\n public void setUserAgent(String userAgent)\n {\n this.userAgent = userAgent;\n }\n\n /**\n * Used when importing cataloged pages. Is the id of the page being\n * imported.\n * \n * @return {@link String} may be null
.\n */\n public String getCatalogedPageId()\n {\n return catalogedPageId;\n }\n\n public void setCatalogedPageId(String catalogedPageId)\n {\n this.catalogedPageId = catalogedPageId;\n }\n \n public void setCanceled(boolean cancelFlag)\n {\n isCanceled = cancelFlag;\n }\n \n /**\n * Determines if the current import process has been canceled.\n * \n * @return true
if the import process has been canceled. \n */\n public boolean isCanceled()\n {\n return isCanceled;\n }\n /**\n * @return May be null if not set.\n */\n public Map getSummaryStats()\n {\n return summaryStats;\n }\n\n public void setSummaryStats(Map summaryStats)\n {\n this.summaryStats = summaryStats;\n }\n\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2954,"cells":{"blob_id":{"kind":"string","value":"eca53c9debdc0f1a31ef40d48eebdea81e0c9278"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"cpchu/heps-db-param_list"},"path":{"kind":"string","value":"/src/java/heps/db/param_list/ejb/ReferenceFacade.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1708,"string":"1,708"},"score":{"kind":"number","value":2.375,"string":"2.375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r\n */\r\npackage heps.db.param_list.ejb;\r\n\r\nimport static heps.db.param_list.ejb.UnitFacade.em;\r\nimport heps.db.param_list.entity.Reference;\r\nimport heps.db.param_list.entity.Unit;\r\nimport java.util.List;\r\nimport javax.ejb.Stateless;\r\nimport javax.persistence.EntityManager;\r\nimport javax.persistence.EntityManagerFactory;\r\nimport javax.persistence.Persistence;\r\nimport javax.persistence.PersistenceContext;\r\nimport javax.persistence.PersistenceUnit;\r\nimport javax.persistence.Query;\r\n\r\n/**\r\n *\r\n * @author Lvhuihui\r\n */\r\n@Stateless\r\npublic class ReferenceFacade {\r\n\r\n @PersistenceUnit\r\n static EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"param_listPU\");\r\n static EntityManager em = emf.createEntityManager();\r\n\r\n @PersistenceContext\r\n\r\n public void setReference(String title, String author, String publication, String url, String keywords) {\r\n Reference r = new Reference();\r\n r.setTitle(title);\r\n r.setAuthor(author);\r\n r.setPublication(publication);\r\n r.setUrl(url);\r\n r.setKeywords(keywords);\r\n\r\n em.getTransaction().begin();\r\n em.persist(r);\r\n em.getTransaction().commit();\r\n }\r\n\r\n public Reference getReferenceByTitle(String title) {\r\n Query q;\r\n q = em.createNamedQuery(\"Reference.findByTitle\").setParameter(\"title\", title);\r\n List l = q.getResultList();\r\n if (l.isEmpty()) {\r\n return null;\r\n } else {\r\n return l.get(0);\r\n }\r\n }\r\n\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2955,"cells":{"blob_id":{"kind":"string","value":"2af89a6e10d3321d74020cfd50609d267c346f12"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"haikelei/ChaoKe"},"path":{"kind":"string","value":"/app/src/main/java/luyuan/tech/com/chaoke/activity/AddHouseActivity.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":6709,"string":"6,709"},"score":{"kind":"number","value":1.8359375,"string":"1.835938"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package luyuan.tech.com.chaoke.activity;\n\nimport android.content.Intent;\nimport android.os.Bundle;\nimport android.support.annotation.Nullable;\nimport android.text.TextUtils;\nimport android.view.View;\nimport android.widget.Button;\nimport android.widget.ImageView;\n\nimport com.zhouyou.http.callback.SimpleCallBack;\nimport com.zhouyou.http.exception.ApiException;\nimport com.zhouyou.http.request.PostRequest;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\n\nimport butterknife.BindView;\nimport butterknife.ButterKnife;\nimport butterknife.OnClick;\nimport luyuan.tech.com.chaoke.R;\nimport luyuan.tech.com.chaoke.base.BaseActivity;\nimport luyuan.tech.com.chaoke.bean.ItemBean;\nimport luyuan.tech.com.chaoke.bean.StringDataResponse;\nimport luyuan.tech.com.chaoke.bean.XiaoQuBean;\nimport luyuan.tech.com.chaoke.net.HttpManager;\nimport luyuan.tech.com.chaoke.net.NetParser;\nimport luyuan.tech.com.chaoke.utils.T;\nimport luyuan.tech.com.chaoke.utils.UserInfoUtils;\nimport luyuan.tech.com.chaoke.widget.InputLayout;\nimport luyuan.tech.com.chaoke.widget.SelectDialogFragment;\nimport luyuan.tech.com.chaoke.widget.SelectLayout;\n\nimport static com.zhouyou.http.EasyHttp.getContext;\n\n/**\n * @author: lujialei\n * @date: 2019/6/10\n * @describe:\n */\n\n\npublic class AddHouseActivity extends BaseActivity {\n @BindView(R.id.iv_back)\n ImageView ivBack;\n @BindView(R.id.sl_unity_name)\n SelectLayout slUnityName;\n @BindView(R.id.input_unity_address)\n InputLayout inputUnityAddress;\n @BindView(R.id.sl_house_from)\n SelectLayout slHouseFrom;\n @BindView(R.id.sl_house_state)\n SelectLayout slHouseState;\n @BindView(R.id.input_host_name)\n InputLayout inputHostName;\n @BindView(R.id.input_host_tel)\n InputLayout inputHostTel;\n @BindView(R.id.btn_next)\n Button btnNext;\n @BindView(R.id.input_lou)\n InputLayout inputLou;\n @BindView(R.id.input_danyuan)\n InputLayout inputDanyuan;\n @BindView(R.id.input_hao)\n InputLayout inputHao;\n @BindView(R.id.sl_chuzufangshi)\n SelectLayout slChuzufangshi;\n private String houseId;\n private XiaoQuBean bean;\n\n @Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_add_house);\n ButterKnife.bind(this);\n\n String[] arr = {\"中介合作\", \"转介绍\", \"老客户\", \"网络端口\", \"地推\", \"房东上门\", \"名单获取\", \"销冠\", \"其他\"};\n setSelectLListener(slHouseFrom,arr);\n\n String[] arr1 = {\"业主待租\", \"非自营在租\", \"业主自用\"};\n setSelectLListener(slHouseState,arr1);\n\n String[] arr2 = {\"整租\", \"分租\"};\n setSelectLListener(slChuzufangshi,arr2);\n }\n\n @OnClick({R.id.iv_back, R.id.sl_unity_name, R.id.btn_next})\n public void onViewClicked(View view) {\n switch (view.getId()) {\n case R.id.iv_back:\n onBackPressed();\n break;\n case R.id.sl_unity_name:\n startActivityForResult(new Intent(getActivity(),XuanZeXiaoQuActivity.class),133);\n break;\n case R.id.btn_next:\n loadData();\n break;\n }\n }\n\n private void loadData() {\n if (!checkEmptyInfo()) {\n return;\n }\n PostRequest postRequest = HttpManager.post(HttpManager.FABUONE)\n .params(\"token\", UserInfoUtils.getInstance().getToken())\n .params(\"address\", inputUnityAddress.getText().toString().trim())\n .params(\"source\", getValue(slHouseFrom))\n .params(\"rent_state\", getValue(slHouseState))\n .params(\"landlady_name\", inputHostName.getText().toString().trim())\n .params(\"mode\",getValue(slChuzufangshi))\n .params(\"floor_count\",inputLou.getText().toString().trim())\n .params(\"unit\",inputDanyuan.getText().toString().trim())\n .params(\"number\",inputHao.getText().toString().trim())\n .params(\"landlady_phone\", inputHostTel.getText().toString().trim());\n\n if (bean!=null){\n postRequest.params(\"rid\", bean.getId()+\"\");\n }\n if (!TextUtils.isEmpty(houseId)) {\n postRequest.params(\"first_id\", houseId);\n }\n postRequest.execute(new SimpleCallBack() {\n\n @Override\n public void onError(ApiException e) {\n T.showShort(getContext(), e.getMessage());\n }\n\n @Override\n public void onSuccess(String s) {\n if (NetParser.isOk(s)) {\n StringDataResponse response = NetParser.parse(s, StringDataResponse.class);\n houseId = response.getData();\n if (!TextUtils.isEmpty(response.getMsg())){\n T.showShort(getActivity(),response.getMsg());\n return;\n }\n Intent intent = new Intent(getBaseContext(), AddHouseOtherInfoActivity.class);\n intent.putExtra(\"id\", houseId);\n startActivityForResult(intent, 199);\n }else {\n StringDataResponse dataResponse = NetParser.parse(s,StringDataResponse.class);\n T.showShort(getActivity(),dataResponse.getMsg());\n }\n }\n });\n }\n\n private void createDialog(String[] arr, final SelectLayout sl) {\n ArrayList datas = new ArrayList<>();\n for (int i = 0; i < arr.length; i++) {\n ItemBean itemBean = new ItemBean();\n itemBean.setTitle(arr[i]);\n itemBean.setChecked(sl.getText().equals(arr[i]));\n datas.add(itemBean);\n }\n SelectDialogFragment dialogFragment = SelectDialogFragment.create(datas);\n dialogFragment.show(getSupportFragmentManager());\n dialogFragment.setOnSelectListener(new SelectDialogFragment.OnSelectListener() {\n @Override\n public void onSelect(String s) {\n sl.setText(s);\n }\n });\n }\n\n @Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 199) {\n if (resultCode == RESULT_OK) {\n setResult(RESULT_OK);\n finish();\n }\n }else if (requestCode==133){\n if (resultCode == RESULT_OK) {\n bean = (XiaoQuBean) data.getSerializableExtra(\"data\");\n slUnityName.setText(bean.getReside_name());\n }\n }\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2956,"cells":{"blob_id":{"kind":"string","value":"56d8f4f2dc097ef87d708b13abc8c88c19a9016b"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"ljsnake/RSERP"},"path":{"kind":"string","value":"/src/com/fudan/rserp/module/yhgl/YhglService.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":3037,"string":"3,037"},"score":{"kind":"number","value":2,"string":"2"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.fudan.rserp.module.yhgl;\n\nimport java.util.List;\n\nimport com.fudan.rserp.config.model.TbErpUser;\nimport com.fudan.rserp.module.base.BaseGetSessionValue;\nimport com.fudan.rserp.util.PageSet;\nimport com.hp.ipg.security.PasswordManager;\nimport com.hp.ipg.security.PasswordManagerException;\n\npublic class YhglService {\n\tprivate YhglDao dao;\n\tpublic PageSet getYhList(PageSet ps,ListCondition lc){\n\t\tif(ps==null){\n\t\t\tps = new PageSet();\n\t\t}\n\t\tps = dao.getYhList(ps, lc);\n\t\treturn ps;\n\t}\n\tpublic int addUser(TbErpUser user){\n\t\tif(user!=null){\n\t\t\tif(user.getLoginName()!=null&&!\"\".equals(user.getLoginName())){\n\t\t\t\tif(dao.checkPropertyInEntityHasExist(\"TbErpUser\",\"loginName\",user.getLoginName())){\n\t\t\t\t\treturn 2;//登录名已存在\n\t\t\t\t}\n\t\t\t\tif(user.getPassword()!=null&&!\"\".equals(user.getPassword())){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuser.setPassword(PasswordManager.encryptAndEncodeString(user.getPassword()));\n\t\t\t\t\t} catch (PasswordManagerException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\treturn 10;//异常\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdao.saveOrUpdateObject(user);\n\t\t\t\treturn 0;//操作成功.\n\t\t\t}\n\t\t}\n\t\treturn 1;//传入参数不合法.\n\t}\n\tpublic TbErpUser getUser(TbErpUser uservo){\n\t\tif(uservo!=null){\n\t\t\treturn (TbErpUser)dao.getObjectById(TbErpUser.class, uservo.getId());\n\t\t}\n\t\treturn uservo;\n\t}\n\tpublic TbErpUser getUserById(Integer id){\n\t\treturn (TbErpUser)dao.getObjectById(TbErpUser.class, id);\n\t}\n\tpublic void updateUser(TbErpUser uservo){\n\t\tTbErpUser user = (TbErpUser)dao.getObjectById(TbErpUser.class, uservo.getId());\n\t\tuser.setName(uservo.getName());\n\t\tuser.setEmail(uservo.getEmail());\n\t\tif(uservo.getPassword()!=null&&!\"\".equals(uservo.getPassword())){\n\t\t\ttry {\n\t\t\t\tuser.setPassword(PasswordManager.encryptAndEncodeString(uservo.getPassword()));\n\t\t\t} catch (PasswordManagerException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tdao.updateObject(user);\n\t}\n\tpublic int updatePassword(TbErpUser uservo,String passwordold){\n\t\tif(uservo==null || passwordold==null || \"\".equals(passwordold)\n\t\t\t\t||uservo.getPassword()==null || \"\".equals(uservo.getPassword())){\n\t\t\treturn 1;//传入值不合法或旧密码为空.\n\t\t}\n\t\ttry {\n\t\t\tpasswordold = PasswordManager.encryptAndEncodeString(passwordold);\n\t\t\tString loginName = BaseGetSessionValue.getUserLoginName();\n\t\t\tif(loginName!=null&&!\"\".equals(loginName)){\n\t\t\t\tList> ls = dao.checkUserLoginNamePasswordExist(loginName,passwordold);\n\t\t\t\tif(ls==null||ls.size()<1){\n\t\t\t\t\treturn 2;//原密码错误.\n\t\t\t\t}\n\t\t\t}\n\t\t\tString id = BaseGetSessionValue.getUserId();\n\t\t\tif(id!=null&&!\"\".equals(id)){\n\t\t\t\tTbErpUser user = (TbErpUser)dao.getObjectById(TbErpUser.class, id);\n\t\t\t\ttry {\n\t\t\t\t\tuser.setPassword(PasswordManager.encryptAndEncodeString(uservo.getPassword()));\n\t\t\t\t\tdao.updateObject(user);\n\t\t\t\t\treturn 0;//操作成功.\n\t\t\t\t} catch (PasswordManagerException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (PasswordManagerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 10;//异常.\n\t}\n\t\n\tpublic YhglDao getDao() {\n\t\treturn dao;\n\t}\n\tpublic void setDao(YhglDao dao) {\n\t\tthis.dao = dao;\n\t}\n\t\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2957,"cells":{"blob_id":{"kind":"string","value":"54cb2b4662f09165e1c245d52bae39fd93fcc390"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"StandCN/Project-M"},"path":{"kind":"string","value":"/service/user/src/main/java/com/hellcat/user/UserApplication.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":720,"string":"720"},"score":{"kind":"number","value":1.6953125,"string":"1.695313"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"package com.hellcat.user;\n\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\nimport org.springframework.context.annotation.EnableAspectJAutoProxy;\nimport org.springframework.data.mongodb.repository.config.EnableReactiveMongoRepositories;\nimport org.springframework.transaction.annotation.EnableTransactionManagement;\nimport org.springframework.web.reactive.config.EnableWebFlux;\n\n@SpringBootApplication\n@EnableReactiveMongoRepositories\n@EnableTransactionManagement\n@EnableWebFlux\n@EnableAspectJAutoProxy\npublic class UserApplication {\n\n public static void main(String[] args) {\n SpringApplication.run(UserApplication.class, args);\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2958,"cells":{"blob_id":{"kind":"string","value":"aaa4a361384c04c5524cfcd94d4bdc010f83cae2"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"aysenurcelik/NorthWindFinal"},"path":{"kind":"string","value":"/northWindProject/src/main/java/com/northWind/northWindProject/entities/conretes/Cart.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":821,"string":"821"},"score":{"kind":"number","value":2.125,"string":"2.125"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.northWind.northWindProject.entities.conretes;\n\n\nimport javax.persistence.Column;\n\nimport javax.persistence.Entity;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax.persistence.Id;\nimport javax.persistence.Table;\n\nimport com.northWind.northWindProject.entities.abstracts.IEntity;\n\nimport lombok.Data;\n\n\n@Entity\n@Table(name=\"cart\")\n@Data\n\npublic class Cart implements IEntity {\n\t\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.AUTO)\n\t@Column(name=\"cart_id\")\n\tint cartId;\n\t@Column(name=\"product_id\")\n\tint prodcutId;\n\t@Column(name=\"customer_id\")\n\tString customerId;\n\tpublic int custId = Integer.parseInt(customerId); \n\t@Column(name=\"quantity\")\n\tint quantity;\n\t@Column(name=\"item_cost\")\n\tString cartItemCost; \n\t@Column(name =\"item_name\")\n\tString itemName;\n\n\t\n\t\n\t\n\t\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2959,"cells":{"blob_id":{"kind":"string","value":"fc2513b334d258f879bc900e1bed00354f6c62f1"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"cengizgoren/facebook_apk_crack"},"path":{"kind":"string","value":"/app/com/facebook/katana/activity/media/vault/VaultOptInControlFragment.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":787,"string":"787"},"score":{"kind":"number","value":1.5703125,"string":"1.570313"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.facebook.katana.activity.media.vault;\n\nimport android.os.Bundle;\nimport android.text.Html;\nimport android.view.View;\nimport android.widget.TextView;\nimport com.facebook.orca.common.util.StringLocaleUtil;\n\npublic class VaultOptInControlFragment extends VaultSimpleOptInFragment\n{\n public void d(Bundle paramBundle)\n {\n super.d(paramBundle);\n String str1 = \"\" + e(2131363601) + \"\";\n String str2 = StringLocaleUtil.b(e(2131363600), new Object[] { str1 });\n ((TextView)A().findViewById(2131297948)).setText(Html.fromHtml(str2));\n }\n}\n\n/* Location: /data1/software/jd-gui/com.facebook.katana_2.0_liqucn.com-dex2jar.jar\n * Qualified Name: com.facebook.katana.activity.media.vault.VaultOptInControlFragment\n * JD-Core Version: 0.6.0\n */"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2960,"cells":{"blob_id":{"kind":"string","value":"adc3ff2c8c8736729b60983610d661c190bc483f"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"zuzya/proxyTest"},"path":{"kind":"string","value":"/src/me/proxy/storage/impl/DBStorageReader.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":3976,"string":"3,976"},"score":{"kind":"number","value":2.265625,"string":"2.265625"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package me.proxy.storage.impl;\r\n\r\nimport java.io.ByteArrayInputStream;\r\nimport java.io.ByteArrayOutputStream;\r\nimport java.io.IOException;\r\nimport java.io.InputStream;\r\nimport java.io.InputStreamReader;\r\nimport java.io.OutputStream;\r\nimport java.io.UnsupportedEncodingException;\r\nimport java.sql.Blob;\r\nimport java.sql.Connection;\r\nimport java.sql.DriverManager;\r\nimport java.sql.PreparedStatement;\r\nimport java.sql.ResultSet;\r\nimport java.sql.SQLException;\r\nimport java.sql.Statement;\r\nimport java.text.DateFormat;\r\nimport java.text.SimpleDateFormat;\r\n\r\nimport me.proxy.storage.common.StorageReader;\r\n\r\npublic class DBStorageReader extends StorageReader {\r\n\r\n\tpublic DBStorageReader(OutputStream streamFrom, boolean isRequest) {\r\n\t\tsuper(streamFrom, isRequest);\r\n\t}\r\n\r\n\tprotected InputStream inputStream;\r\n\tprotected ByteArrayOutputStream outputStream;\r\n\t\r\n\tprivate static final String DB_DRIVER = \"com.mysql.jdbc.Driver\";\r\n\tprivate static final String DB_CONNECTION = \"jdbc:mysql://localhost:3306/proxydb\";\r\n\tprivate static final String DB_USER = \"root\";\r\n\tprivate static final String DB_PASSWORD = \"\";\r\n\tprivate static final DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\t\r\n\t\t\t\r\n\t\r\n\t@Override\r\n\tpublic InputStream readRow() {\r\n\r\n\t\tConnection dbConnection = null;\r\n\t\tPreparedStatement preparedStatement = null;\r\n\t\tStatement statement = null;\r\n\t\tResultSet rs = null;\r\n\t\tInputStream stream = null;\r\n\t\t\r\n\t\toutputStream = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tString tableName = null;\r\n\t\tif(isRequest){\r\n\t\t\ttableName = \"REQUEST\";\r\n\t\t} else {\r\n\t\t\ttableName = \"ANSWER\";\r\n\t\t}\r\n\t\t\r\n\t\tString insertTableSQL = \"SELECT * FROM proxydb.\" +tableName+ \" r WHERE r.Readed = 0 ORDER BY r.DATE \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tdbConnection = getDBConnection();\r\n\t\t\tpreparedStatement = dbConnection.prepareStatement(insertTableSQL,ResultSet.TYPE_SCROLL_SENSITIVE,\r\n\t ResultSet.CONCUR_UPDATABLE);\r\n\t\r\n\t\t\twhile(true){\t\t\t\t\r\n\t\t\t\t// execute insert SQL stetement\r\n\t\t\t\trs = preparedStatement.executeQuery();\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(rs.isBeforeFirst())\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\tint id = rs.getInt(1);\r\n\t\t\t\tbyte[] body = rs.getBytes(3);\r\n//\t\t\t\tBlob blob = rs.getBlob(3);\r\n//\t\t\t\tstream = blob.getBinaryStream();\r\n//\t\t\t\t\r\n//\t\t\t\tstream = new ByteArrayInputStream(body); \r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\toutputStream.write(body);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Body: \");\r\n\t\t\t\tSystem.out.println(new String(body));\r\n\t\t\t\t\r\n\t\t\t\tboolean b = rs.getBoolean(5);\r\n\t\t\t\trs.updateBoolean(\"Readed\", true);\r\n\t\t\t\trs.updateRow();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tSystem.out.println(\"Record is readed into REQUEST table!\");\r\n\r\n\t\t\treturn new ByteArrayInputStream(outputStream.toByteArray());\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\r\n\t\t} finally {\r\n\r\n\t\t\tif (preparedStatement != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpreparedStatement.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (dbConnection != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdbConnection.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn new ByteArrayInputStream(outputStream.toByteArray());\r\n\r\n\t}\r\n\r\n\r\n\tprivate static Connection getDBConnection() {\r\n\r\n\t\tConnection dbConnection = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tClass.forName(DB_DRIVER);\r\n\r\n\t\t} catch (ClassNotFoundException e) {\r\n\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\r\n\t\t}\r\n\r\n\t\ttry {\r\n\r\n\t\t\tdbConnection = DriverManager.getConnection(\r\n DB_CONNECTION, DB_USER,DB_PASSWORD);\r\n\t\t\treturn dbConnection;\r\n\r\n\t\t} catch (SQLException e) {\r\n\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\r\n\t\t}\r\n\r\n\t\treturn dbConnection;\r\n\r\n\t}\r\n\r\n\tprivate static String getCurrentTimeStamp() {\r\n\r\n\t\tjava.util.Date today = new java.util.Date();\r\n\t\treturn dateFormat.format(today.getTime());\r\n\r\n\t}\r\n\r\n\t\t\t\r\n\t\t\t\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2961,"cells":{"blob_id":{"kind":"string","value":"07397b073768c30bcce266eb015d86cf85a86366"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"salmawardha/Pemrograman-1"},"path":{"kind":"string","value":"/flipLines.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":502,"string":"502"},"score":{"kind":"number","value":3.109375,"string":"3.109375"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"import java.io.*; \r\nimport java.util.*; \r\n\r\npublic class flipLines {\r\npublic static void main(String[] args) throws FileNotFoundException {\r\n Scanner input = new Scanner(new File(\"fliplines.txt\"));\r\n flipLines(input);\r\n}\r\n\r\npublic static void flipLines(Scanner input) {\r\n while (input.hasNextLine()) {\r\n String line = input.nextLine();\r\n if (input.hasNextLine()) {\r\n System.out.println(input.nextLine());\r\n }\r\n System.out.println(line);\r\n }\r\n }\r\n}\r\n\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2962,"cells":{"blob_id":{"kind":"string","value":"6a2280f53f66905f2110280fafe9bc9fc2b15fdd"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"Zumbalamambo/PullLayout"},"path":{"kind":"string","value":"/app/src/main/java/com/d/pulllayout/pull/activity/RecyclerViewActivity.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1392,"string":"1,392"},"score":{"kind":"number","value":2.25,"string":"2.25"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["Apache-2.0"],"string":"[\n \"Apache-2.0\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"package com.d.pulllayout.pull.activity;\n\nimport android.os.Bundle;\nimport android.support.annotation.NonNull;\nimport android.support.annotation.Nullable;\nimport android.support.v7.app.AppCompatActivity;\nimport android.support.v7.widget.LinearLayoutManager;\nimport android.support.v7.widget.RecyclerView;\n\nimport com.d.pulllayout.R;\nimport com.d.pulllayout.pull.adapter.RecyclerAdapter;\n\nimport java.util.ArrayList;\nimport java.util.List;\n\n/**\n * RecyclerViewActivity\n * Created by D on 2018/5/31.\n */\npublic class RecyclerViewActivity extends AppCompatActivity {\n private RecyclerView rv_list;\n\n @Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_pull_recyclerview);\n rv_list = (RecyclerView) findViewById(R.id.rv_list);\n init();\n }\n\n private void init() {\n LinearLayoutManager layoutManager = new LinearLayoutManager(this);\n layoutManager.setOrientation(LinearLayoutManager.VERTICAL);\n rv_list.setLayoutManager(layoutManager);\n rv_list.setAdapter(new RecyclerAdapter(this, getDatas(), R.layout.adapter_item));\n }\n\n @NonNull\n private List getDatas() {\n List datas = new ArrayList<>();\n for (int i = 0; i < 20; i++) {\n datas.add(\"\" + i);\n }\n return datas;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2963,"cells":{"blob_id":{"kind":"string","value":"81a12a48c10ea1555f095596ad5a727126f1dda8"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"3ntropia/ProgramacionIII"},"path":{"kind":"string","value":"/TP1/src/indiceN/MainIndiceN.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":543,"string":"543"},"score":{"kind":"number","value":3.015625,"string":"3.015625"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package indiceN;\r\n\r\nimport Implementaciones.Vector;\r\nimport TDA.VectorTDA;\r\n\r\n/**\r\n * @author martinh\r\n *\r\n */\r\npublic class MainIndiceN {\r\n\r\n\tpublic static void main(String[] args) {\r\n\t\ttry {\r\n\t\t\tVectorTDA vec = new Vector();\r\n\t\t\tvec.inicializarVector(50);\r\n\t\t\tfor (int i = 0; i < 50; i++) {\r\n\t\t\t\tvec.agregarElemento(i, i + 1);\r\n\t\t\t}\r\n\t\t\tvec.agregarElemento(20, 20);\r\n\t\t\tint a = Metodo.indiceNatural(vec, 0, 50);\r\n\t\t\tSystem.out.print(a);\r\n\t\t} catch (\r\n\r\n\t\tException e) {\r\n\t\t\tSystem.out.print(e.getMessage());\r\n\t\t}\r\n\t}\r\n\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2964,"cells":{"blob_id":{"kind":"string","value":"cbabc4c1c064a697af743d24cf39963395adb2c0"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"SpongePowered/SpongeAPI"},"path":{"kind":"string","value":"/src/main/java/org/spongepowered/api/entity/EntitySnapshot.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":6257,"string":"6,257"},"score":{"kind":"number","value":1.78125,"string":"1.78125"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":["LicenseRef-scancode-unknown-license-reference","MIT"],"string":"[\n \"LicenseRef-scancode-unknown-license-reference\",\n \"MIT\"\n]"},"license_type":{"kind":"string","value":"permissive"},"text":{"kind":"string","value":"/*\n * This file is part of SpongeAPI, licensed under the MIT License (MIT).\n *\n * Copyright (c) SpongePowered \n * Copyright (c) contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\npackage org.spongepowered.api.entity;\n\nimport org.spongepowered.api.Game;\nimport org.spongepowered.api.Sponge;\nimport org.spongepowered.api.data.DataHolderBuilder;\nimport org.spongepowered.api.data.persistence.DataBuilder;\nimport org.spongepowered.api.util.Transform;\nimport org.spongepowered.api.world.LocatableSnapshot;\nimport org.spongepowered.api.world.World;\nimport org.spongepowered.api.world.schematic.Schematic;\nimport org.spongepowered.api.world.server.ServerLocation;\nimport org.spongepowered.api.world.server.storage.ServerWorldProperties;\nimport org.spongepowered.api.world.storage.WorldProperties;\nimport org.spongepowered.math.vector.Vector3d;\nimport org.spongepowered.math.vector.Vector3i;\n\nimport java.util.Optional;\nimport java.util.UUID;\nimport java.util.function.Supplier;\n\n/**\n * Represents a snapshot of an {@link Entity} and all of it's related data in\n * the form of {@link org.spongepowered.api.data.DataManipulator.Immutable}s and {@link org.spongepowered.api.data.value.Value.Immutable}s.\n * While an {@link Entity} is a live instance and resides in a\n * {@link World}, an {@link EntitySnapshot} may be snapshotted of a\n * {@link World} that is not currently loaded, or may not exist any longer.\n *\n * All data associated with the {@link EntitySnapshot} should be separated\n * from the {@link Game} instance such that external processing, building,\n * and manipulation can take place.
\n */\npublic interface EntitySnapshot extends LocatableSnapshot {\n\n /**\n * Creates a new {@link Builder} to build an {@link EntitySnapshot}.\n *\n * @return The new builder\n */\n static Builder builder() {\n return Sponge.game().builderProvider().provide(Builder.class);\n }\n\n /**\n * Gets an {@link Optional} containing the {@link UUID} of the\n * {@link Entity} that this {@link EntitySnapshot} is representing. If the\n * {@link Optional} is {@link Optional#empty()}, then this snapshot must\n * have been created by an {@link Builder} without an {@link Entity} as a\n * source.\n *\n * @return The Optional where the UUID may be present\n */\n Optional uniqueId();\n\n /**\n * Gets the {@link Transform} as an {@link Optional} as the {@link ServerLocation}\n * may be undefined if this {@link EntitySnapshot} was built without a\n * location. This method is linked to {@link #location()} such that if\n * there is a {@link ServerLocation}, there is usually a {@link Transform}.\n *\n * @return The transform, if available\n */\n Optional transform();\n\n /**\n * Gets the {@link EntityType}.\n *\n * @return The EntityType\n */\n EntityType> type();\n\n /**\n * Restores the {@link EntitySnapshot} to the {@link ServerLocation} stored within\n * the snapshot. If the {@link ServerLocation} is not available, the snapshot will\n * not be restored.\n *\n * @return the restored entity if successful\n */\n Optional restore();\n\n /**\n * Creates a new {@link EntityArchetype} for use with {@link Schematic}s and\n * placing the archetype in multiple locations.\n *\n * @return The created archetype for re-creating this entity\n */\n EntityArchetype createArchetype();\n\n /**\n * An {@link org.spongepowered.api.data.DataHolderBuilder.Immutable} for building {@link EntitySnapshot}s. The\n * requirements\n */\n interface Builder extends DataHolderBuilder.Immutable, DataBuilder {\n\n /**\n * Sets the {@link WorldProperties} for this {@link EntitySnapshot}.\n *\n * This is used to grab the {@link UUID} of the World for this\n * snapshot.
\n *\n * @param worldProperties The WorldProperties\n * @return This builder, for chaining\n */\n Builder world(ServerWorldProperties worldProperties);\n\n /**\n * Sets the {@link EntityType} for this {@link EntitySnapshot}.\n *\n * @param entityType The EntityType\n * @return This builder, for chaining\n */\n default Builder type(Supplier extends EntityType>> entityType) {\n return this.type(entityType.get());\n }\n\n /**\n * Sets the {@link EntityType} for this {@link EntitySnapshot}.\n *\n * @param entityType The EntityType\n * @return This builder, for chaining\n */\n Builder type(EntityType> entityType);\n\n /**\n * Sets the coordinates of this {@link EntitySnapshot} from a\n * {@link Vector3i}.\n *\n * @param position The Vector3i representing the coordinates\n * @return This builder, for chaining\n */\n Builder position(Vector3d position);\n\n /**\n * Copies over data from an {@link Entity}.\n *\n * @param entity The Entity\n * @return This builder, for chaining\n */\n Builder from(Entity entity);\n\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2965,"cells":{"blob_id":{"kind":"string","value":"bba6542ae66d079608a9d53629e38351c622af12"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"FaNaTiKoRn/SB"},"path":{"kind":"string","value":"/src/sb_jtorres/DBConnect.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":3803,"string":"3,803"},"score":{"kind":"number","value":2.515625,"string":"2.515625"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"/*\r\n * To change this license header, choose License Headers in Project Properties.\r\n * To change this template file, choose Tools | Templates\r\n * and open the template in the editor.\r\n */\r\n\r\n/*\r\nIn general, to process any SQL statement with JDBC, you follow these steps:\r\n\r\n 1.- Establishing a connection.\r\n 2.- Create a statement.\r\n 3.- Execute the query.\r\n 4.- Process the ResultSet object.\r\n 5.- Close the connection.\r\n*/\r\npackage sb_jtorres;\r\nimport java.sql.*;\r\nimport java.util.*;\r\nimport java.util.logging.Level;\r\nimport java.util.logging.Logger;\r\nimport javax.swing.Icon;\r\nimport javax.swing.ImageIcon;\r\n/*\r\nimport java.sql.Connection; \r\nimport java.sql.DriverManager;\r\nimport java.sql.ResultSet;\r\nimport java.sql.SQLException;\r\nimport java.sql.Statement;\r\n*/\r\nimport javax.swing.JOptionPane;\r\n/**\r\n *\r\n * @author FaNaTiKoRn\r\n */\r\npublic class DBConnect {\r\n /*private String db = \"CaC\";\r\n private String url = \"WOLVERINE\\\\SQLEXPRESS:1433\"+db;\r\n private String user = \"sa\";\r\n private String pass = \"sa2017\";\r\n*/\r\n public String Conectar() throws ClassNotFoundException, SQLException{\r\n //Class.forName(\"com.microsoft.sqlserver.jdbc.SQLServerDriver\"); //Para SQLServer\r\n Class.forName(\"com.mysql.jdbc.Driver\"); //Para MySQL\r\n //String server = \"WOLVERINE\\\\MSSQL14.SQLEXPRESS:1433\"; // MsSQL SERVER\r\n String db = \"SB_JTorres\";\r\n String server = \"127.0.0.1/\" + db; // MySQL SERVER //Servidor + DB\r\n String user = \"root\"; //'sa' para MsSQLServer //'adm' (abc123) para PHPMySQLServer // bejerman (tiMCLmu27qtQwD) para ambas plataformas\r\n String pass = \"\";\r\n //String connectionURL = \"jdbc:sqlserver://\" + server + \";databaseName=\" + db + \";user=\" + user + \";password=\" + pass + \";\"; //Conexión a MsSQLServer\r\n String connectionURL = \"jdbc:mysql://\" + server; //Conexión a PHPMySQLServer\r\n Connection cnx = DriverManager.getConnection(connectionURL,user,pass);//Conectado\r\n //cnx.setAutoCommit(false);\r\n //cnx.commit();\r\n //cnx.rollback();\r\n Statement st = null;\r\n st = cnx.createStatement();\r\n ResultSet rs = st.executeQuery(\"select * from usu\");\r\n /* // o bien...\r\n Connection cnx = null;\r\n cnx = DriverManager.getConnection(url, user, pass);\r\n */\r\n while (rs.next())\r\n {\r\n int usu_id = rs.getInt(1);\r\n String usu_codigo = rs.getString(2);\r\n String usu_clave = rs.getString(3);\r\n String usu_nombre = rs.getString(4);\r\n int usu_status = rs.getInt(5);\r\n System.out.println(\"ID:\" + usu_id + \" - Nombre:\" + usu_nombre + \" - Código:\" + usu_codigo + \" - clave:\" + usu_clave + \" - Estado:\" + usu_status);\r\n }\r\n //st = cnx.createStatement();\r\n rs.close();\r\n cnx.close();\r\n return db;\r\n }\r\n public void Desconectar()\r\n {\r\n /*\r\n \r\n public void cierraConexion() {\r\n try {\r\n Conector.close();\r\n } catch (SQLException sqle) {\r\n JOptionPane.showMessageDialog(null, \"Error al cerrar conexion\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n Logger.getLogger(ConexionDAO.class.getName()).log(Level.SEVERE, null, sqle);\r\n }\r\n }\r\n \r\n */\r\n \r\n /*\r\n public void cierraConsultas() {\r\n try {\r\n if (Rs != null) {\r\n Rs.close();\r\n }\r\n if (St != null) {\r\n St.close();\r\n }\r\n if (Conector != null) {\r\n Conector.close();\r\n }\r\n } catch (SQLException sqle) {\r\n JOptionPane.showMessageDialog(null, \"Error cerrando la conexion!\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n Logger.getLogger(LicoreriasDAO.class.getName()).log(Level.SEVERE, null, sqle);\r\n }\r\n}\r\n */\r\n \r\n }\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2966,"cells":{"blob_id":{"kind":"string","value":"e0f6ce12de624d849177b1f54489bb92944f399b"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"fmisiarz/kodilla-testing"},"path":{"kind":"string","value":"/kodilla-testing/src/main/java/com/kodilla/testing/collection/OddNumbersExterminator.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":417,"string":"417"},"score":{"kind":"number","value":3.046875,"string":"3.046875"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.kodilla.testing.collection;\n\nimport java.util.ArrayList;\n\npublic class OddNumbersExterminator {\n\n public ArrayList exterminate(ArrayList number) {\n ArrayList numbers2 = new ArrayList();\n for (Integer numbers : number) {\n if (numbers % 2 == 0) {\n numbers2.add(numbers);\n }\n }\n\n return numbers2;\n }\n}"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2967,"cells":{"blob_id":{"kind":"string","value":"ab82202b0d53a66a14402c3f8ef98b1e711b090f"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"vishal1975/ATM"},"path":{"kind":"string","value":"/AtmMachine/src/atm/Account.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1206,"string":"1,206"},"score":{"kind":"number","value":2.984375,"string":"2.984375"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package atm;\n\npublic class Account {\n\tprivate int AccountNo;\n\tprivate int age;\n private String name;\n\tprivate int CurrentAmount;\n\tprivate int password;\n\t\n\tAccount(int AccountNo,int age,String name,int CurrentAmount,int password){\n\t\tthis.AccountNo=AccountNo;\n\t\tthis.age=age;\n\t\tthis.CurrentAmount=CurrentAmount;\n\t\tthis.name=name;\n\t\tthis.password=password;\n\t}\n\tpublic String toString() {\n\t\tString s=\" \";\n\t\ts=s+\"YOUR ACCOUNT NO: \"+ getAccountNo() +\"\\n\";\n\t\ts+=\"YOUR AGE : \" + getAge() +\"\\n\";\n\t\ts+=\"YOUR NAME : \" + getName() +\"\\n\";\n\t\ts+=\"YOUR CURRENTAMOUNT : \" + getCurrentAmount()+\"\\n\";\n\t\treturn s;\n\t}\n\n\tpublic int getAccountNo() {\n\t\treturn AccountNo;\n\t}\n\n\tpublic void setAccountNo(int accountNo) {\n\t\tAccountNo = accountNo;\n\t}\n\n\tpublic int getAge() {\n\t\treturn age;\n\t}\n\n\tpublic void setAge(int age) {\n\t\tthis.age = age;\n\t}\n\n\tpublic String getName() {\n\t\treturn name;\n\t}\n\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}\n\n\tpublic int getCurrentAmount() {\n\t\treturn CurrentAmount;\n\t}\n\n\tpublic void setCurrentAmount(int currentAmount) {\n\t\tCurrentAmount = currentAmount;\n\t}\n\n\tpublic int getPassword() {\n\t\treturn password;\n\t}\n\n\tpublic void setPassword(int password) {\n\t\tthis.password = password;\n\t}\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2968,"cells":{"blob_id":{"kind":"string","value":"dc0c98951e3a7c85592380a28eb792fb0420862d"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"wasadmin/ewallet"},"path":{"kind":"string","value":"/CentralSwitchClient/src/zw/co/esolutions/ewallet/merchantservices/service/ObjectFactory.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":74890,"string":"74,890"},"score":{"kind":"number","value":1.609375,"string":"1.609375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"//\n// Generated By:JAX-WS RI IBM 2.1.6 in JDK 6 (JAXB RI IBM JAXB 2.1.10 in JDK 6)\n//\n\n\npackage zw.co.esolutions.ewallet.merchantservices.service;\n\nimport javax.xml.bind.JAXBElement;\nimport javax.xml.bind.annotation.XmlElementDecl;\nimport javax.xml.bind.annotation.XmlRegistry;\nimport javax.xml.namespace.QName;\n\n\n/**\n * This object contains factory methods for each \n * Java content interface and Java element interface \n * generated in the zw.co.esolutions.ewallet.merchantservices.service package. \n * An ObjectFactory allows you to programatically \n * construct new instances of the Java representation \n * for XML content. The Java representation of XML \n * content can consist of schema derived interfaces \n * and classes representing the binding of schema \n * type definitions, element declarations and model \n * groups. Factory methods for each of these are \n * provided in this class.\n * \n */\n@XmlRegistry\npublic class ObjectFactory {\n\n private final static QName _GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber\");\n private final static QName _ApproveCustomerMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveCustomerMerchantResponse\");\n private final static QName _GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus\");\n private final static QName _ApproveMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveMerchantResponse\");\n private final static QName _DeleteCustomerMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteCustomerMerchant\");\n private final static QName _ApproveBankMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveBankMerchant\");\n private final static QName _FindCustomerMerchantById_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findCustomerMerchantById\");\n private final static QName _GetBankMerchantByBankIdAndMerchantIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankIdAndMerchantIdResponse\");\n private final static QName _DeleteMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteMerchant\");\n private final static QName _FindMerchantById_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findMerchantById\");\n private final static QName _GetCustomerMerchantByCustomerIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerIdResponse\");\n private final static QName _GetMerchantByCustomerIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByCustomerIdResponse\");\n private final static QName _GetCustomerMerchantByBankId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankId\");\n private final static QName _GetCustomerMerchantByStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByStatus\");\n private final static QName _GetCustomerMerchantByCustomerAccountNumberResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerAccountNumberResponse\");\n private final static QName _GetMerchantByStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByStatus\");\n private final static QName _GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse\");\n private final static QName _GetAllMerchants_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getAllMerchants\");\n private final static QName _ApproveMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveMerchant\");\n private final static QName _GetBankMerchantByBankIdAndMerchantId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankIdAndMerchantId\");\n private final static QName _ApproveCustomerMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveCustomerMerchant\");\n private final static QName _GetCustomerMerchantByCustomerId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerId\");\n private final static QName _GetMerchantByCustomerId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByCustomerId\");\n private final static QName _EditBankMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editBankMerchantResponse\");\n private final static QName _Exception_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"Exception\");\n private final static QName _DisapproveBankMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveBankMerchantResponse\");\n private final static QName _GetCustomerMerchantByCustomerAccountNumber_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerAccountNumber\");\n private final static QName _CreateBankMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createBankMerchantResponse\");\n private final static QName _GetBankMerchantByMerchantIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByMerchantIdResponse\");\n private final static QName _GetBankMerchantByStatusAndBankIdAndMerchantIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByStatusAndBankIdAndMerchantIdResponse\");\n private final static QName _DeleteBankMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteBankMerchantResponse\");\n private final static QName _FindBankMerchantByIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findBankMerchantByIdResponse\");\n private final static QName _EditCustomerMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editCustomerMerchantResponse\");\n private final static QName _GetBankMerchantByBankIdAndShortNameAndStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankIdAndShortNameAndStatusResponse\");\n private final static QName _GetMerchantByShortNameResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByShortNameResponse\");\n private final static QName _GetCustomerMerchantByBankMerchantIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankMerchantIdResponse\");\n private final static QName _EditMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editMerchantResponse\");\n private final static QName _EditBankMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editBankMerchant\");\n private final static QName _DisapproveMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveMerchantResponse\");\n private final static QName _GetBankMerchantByBankIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankIdResponse\");\n private final static QName _GetBankMerchantByStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByStatusResponse\");\n private final static QName _CreateMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createMerchantResponse\");\n private final static QName _DisapproveCustomerMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveCustomerMerchantResponse\");\n private final static QName _CreateBankMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createBankMerchant\");\n private final static QName _GetMerchantByNameResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByNameResponse\");\n private final static QName _DisapproveBankMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveBankMerchant\");\n private final static QName _CreateCustomerMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createCustomerMerchantResponse\");\n private final static QName _GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus\");\n private final static QName _GetBankMerchantByMerchantId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByMerchantId\");\n private final static QName _FindMerchantByIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findMerchantByIdResponse\");\n private final static QName _DeleteMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteMerchantResponse\");\n private final static QName _GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse\");\n private final static QName _EditCustomerMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editCustomerMerchant\");\n private final static QName _GetBankMerchantByBankIdAndShortNameAndStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankIdAndShortNameAndStatus\");\n private final static QName _FindCustomerMerchantByIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findCustomerMerchantByIdResponse\");\n private final static QName _EditMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"editMerchant\");\n private final static QName _ApproveBankMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"approveBankMerchantResponse\");\n private final static QName _DeleteCustomerMerchantResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteCustomerMerchantResponse\");\n private final static QName _GetCustomerMerchantByBankMerchantId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankMerchantId\");\n private final static QName _GetMerchantByShortName_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByShortName\");\n private final static QName _GetBankMerchantByStatusAndBankIdAndMerchantId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByStatusAndBankIdAndMerchantId\");\n private final static QName _FindBankMerchantById_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"findBankMerchantById\");\n private final static QName _DeleteBankMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"deleteBankMerchant\");\n private final static QName _GetBankMerchantByBankId_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByBankId\");\n private final static QName _GetMerchantByStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByStatusResponse\");\n private final static QName _GetCustomerMerchantByBankIdResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByBankIdResponse\");\n private final static QName _CreateMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createMerchant\");\n private final static QName _DisapproveCustomerMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveCustomerMerchant\");\n private final static QName _GetCustomerMerchantByStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByStatusResponse\");\n private final static QName _DisapproveMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"disapproveMerchant\");\n private final static QName _GetMerchantByName_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getMerchantByName\");\n private final static QName _GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse\");\n private final static QName _GetAllMerchantsResponse_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getAllMerchantsResponse\");\n private final static QName _CreateCustomerMerchant_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"createCustomerMerchant\");\n private final static QName _GetBankMerchantByStatus_QNAME = new QName(\"http://service.merchantservices.ewallet.esolutions.co.zw/\", \"getBankMerchantByStatus\");\n\n /**\n * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: zw.co.esolutions.ewallet.merchantservices.service\n * \n */\n public ObjectFactory() {\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus }\n * \n */\n public GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus createGetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus() {\n return new GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus();\n }\n\n /**\n * Create an instance of {@link GetAllMerchantsResponse }\n * \n */\n public GetAllMerchantsResponse createGetAllMerchantsResponse() {\n return new GetAllMerchantsResponse();\n }\n\n /**\n * Create an instance of {@link DeleteMerchant }\n * \n */\n public DeleteMerchant createDeleteMerchant() {\n return new DeleteMerchant();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByStatusAndBankIdAndMerchantIdResponse }\n * \n */\n public GetBankMerchantByStatusAndBankIdAndMerchantIdResponse createGetBankMerchantByStatusAndBankIdAndMerchantIdResponse() {\n return new GetBankMerchantByStatusAndBankIdAndMerchantIdResponse();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByStatusResponse }\n * \n */\n public GetBankMerchantByStatusResponse createGetBankMerchantByStatusResponse() {\n return new GetBankMerchantByStatusResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse }\n * \n */\n public GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse createGetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse() {\n return new GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse();\n }\n\n /**\n * Create an instance of {@link CreateCustomerMerchant }\n * \n */\n public CreateCustomerMerchant createCreateCustomerMerchant() {\n return new CreateCustomerMerchant();\n }\n\n /**\n * Create an instance of {@link FindBankMerchantByIdResponse }\n * \n */\n public FindBankMerchantByIdResponse createFindBankMerchantByIdResponse() {\n return new FindBankMerchantByIdResponse();\n }\n\n /**\n * Create an instance of {@link CreateMerchantResponse }\n * \n */\n public CreateMerchantResponse createCreateMerchantResponse() {\n return new CreateMerchantResponse();\n }\n\n /**\n * Create an instance of {@link CreateMerchant }\n * \n */\n public CreateMerchant createCreateMerchant() {\n return new CreateMerchant();\n }\n\n /**\n * Create an instance of {@link Merchant }\n * \n */\n public Merchant createMerchant() {\n return new Merchant();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByStatusAndBankIdAndMerchantId }\n * \n */\n public GetBankMerchantByStatusAndBankIdAndMerchantId createGetBankMerchantByStatusAndBankIdAndMerchantId() {\n return new GetBankMerchantByStatusAndBankIdAndMerchantId();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByStatus }\n * \n */\n public GetBankMerchantByStatus createGetBankMerchantByStatus() {\n return new GetBankMerchantByStatus();\n }\n\n /**\n * Create an instance of {@link DisapproveCustomerMerchant }\n * \n */\n public DisapproveCustomerMerchant createDisapproveCustomerMerchant() {\n return new DisapproveCustomerMerchant();\n }\n\n /**\n * Create an instance of {@link DisapproveCustomerMerchantResponse }\n * \n */\n public DisapproveCustomerMerchantResponse createDisapproveCustomerMerchantResponse() {\n return new DisapproveCustomerMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerAccountNumber }\n * \n */\n public GetCustomerMerchantByCustomerAccountNumber createGetCustomerMerchantByCustomerAccountNumber() {\n return new GetCustomerMerchantByCustomerAccountNumber();\n }\n\n /**\n * Create an instance of {@link GetAllMerchants }\n * \n */\n public GetAllMerchants createGetAllMerchants() {\n return new GetAllMerchants();\n }\n\n /**\n * Create an instance of {@link EditCustomerMerchant }\n * \n */\n public EditCustomerMerchant createEditCustomerMerchant() {\n return new EditCustomerMerchant();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByMerchantIdResponse }\n * \n */\n public GetBankMerchantByMerchantIdResponse createGetBankMerchantByMerchantIdResponse() {\n return new GetBankMerchantByMerchantIdResponse();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankIdAndMerchantIdResponse }\n * \n */\n public GetBankMerchantByBankIdAndMerchantIdResponse createGetBankMerchantByBankIdAndMerchantIdResponse() {\n return new GetBankMerchantByBankIdAndMerchantIdResponse();\n }\n\n /**\n * Create an instance of {@link DisapproveMerchantResponse }\n * \n */\n public DisapproveMerchantResponse createDisapproveMerchantResponse() {\n return new DisapproveMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankIdResponse }\n * \n */\n public GetCustomerMerchantByBankIdResponse createGetCustomerMerchantByBankIdResponse() {\n return new GetCustomerMerchantByBankIdResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankMerchantId }\n * \n */\n public GetCustomerMerchantByBankMerchantId createGetCustomerMerchantByBankMerchantId() {\n return new GetCustomerMerchantByBankMerchantId();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByStatus }\n * \n */\n public GetCustomerMerchantByStatus createGetCustomerMerchantByStatus() {\n return new GetCustomerMerchantByStatus();\n }\n\n /**\n * Create an instance of {@link ApproveCustomerMerchantResponse }\n * \n */\n public ApproveCustomerMerchantResponse createApproveCustomerMerchantResponse() {\n return new ApproveCustomerMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse }\n * \n */\n public GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse createGetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse() {\n return new GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse();\n }\n\n /**\n * Create an instance of {@link GetMerchantByName }\n * \n */\n public GetMerchantByName createGetMerchantByName() {\n return new GetMerchantByName();\n }\n\n /**\n * Create an instance of {@link GetMerchantByShortNameResponse }\n * \n */\n public GetMerchantByShortNameResponse createGetMerchantByShortNameResponse() {\n return new GetMerchantByShortNameResponse();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankIdAndShortNameAndStatusResponse }\n * \n */\n public GetBankMerchantByBankIdAndShortNameAndStatusResponse createGetBankMerchantByBankIdAndShortNameAndStatusResponse() {\n return new GetBankMerchantByBankIdAndShortNameAndStatusResponse();\n }\n\n /**\n * Create an instance of {@link DeleteCustomerMerchantResponse }\n * \n */\n public DeleteCustomerMerchantResponse createDeleteCustomerMerchantResponse() {\n return new DeleteCustomerMerchantResponse();\n }\n\n /**\n * Create an instance of {@link EditBankMerchant }\n * \n */\n public EditBankMerchant createEditBankMerchant() {\n return new EditBankMerchant();\n }\n\n /**\n * Create an instance of {@link EditMerchant }\n * \n */\n public EditMerchant createEditMerchant() {\n return new EditMerchant();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankIdResponse }\n * \n */\n public GetBankMerchantByBankIdResponse createGetBankMerchantByBankIdResponse() {\n return new GetBankMerchantByBankIdResponse();\n }\n\n /**\n * Create an instance of {@link Exception }\n * \n */\n public Exception createException() {\n return new Exception();\n }\n\n /**\n * Create an instance of {@link DeleteBankMerchant }\n * \n */\n public DeleteBankMerchant createDeleteBankMerchant() {\n return new DeleteBankMerchant();\n }\n\n /**\n * Create an instance of {@link ApproveBankMerchantResponse }\n * \n */\n public ApproveBankMerchantResponse createApproveBankMerchantResponse() {\n return new ApproveBankMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerIdResponse }\n * \n */\n public GetCustomerMerchantByCustomerIdResponse createGetCustomerMerchantByCustomerIdResponse() {\n return new GetCustomerMerchantByCustomerIdResponse();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankIdAndMerchantId }\n * \n */\n public GetBankMerchantByBankIdAndMerchantId createGetBankMerchantByBankIdAndMerchantId() {\n return new GetBankMerchantByBankIdAndMerchantId();\n }\n\n /**\n * Create an instance of {@link ApproveMerchant }\n * \n */\n public ApproveMerchant createApproveMerchant() {\n return new ApproveMerchant();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse }\n * \n */\n public GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse createGetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse() {\n return new GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse();\n }\n\n /**\n * Create an instance of {@link FindMerchantById }\n * \n */\n public FindMerchantById createFindMerchantById() {\n return new FindMerchantById();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByStatusResponse }\n * \n */\n public GetCustomerMerchantByStatusResponse createGetCustomerMerchantByStatusResponse() {\n return new GetCustomerMerchantByStatusResponse();\n }\n\n /**\n * Create an instance of {@link ApproveCustomerMerchant }\n * \n */\n public ApproveCustomerMerchant createApproveCustomerMerchant() {\n return new ApproveCustomerMerchant();\n }\n\n /**\n * Create an instance of {@link FindCustomerMerchantByIdResponse }\n * \n */\n public FindCustomerMerchantByIdResponse createFindCustomerMerchantByIdResponse() {\n return new FindCustomerMerchantByIdResponse();\n }\n\n /**\n * Create an instance of {@link EditBankMerchantResponse }\n * \n */\n public EditBankMerchantResponse createEditBankMerchantResponse() {\n return new EditBankMerchantResponse();\n }\n\n /**\n * Create an instance of {@link CreateBankMerchant }\n * \n */\n public CreateBankMerchant createCreateBankMerchant() {\n return new CreateBankMerchant();\n }\n\n /**\n * Create an instance of {@link FindBankMerchantById }\n * \n */\n public FindBankMerchantById createFindBankMerchantById() {\n return new FindBankMerchantById();\n }\n\n /**\n * Create an instance of {@link DisapproveMerchant }\n * \n */\n public DisapproveMerchant createDisapproveMerchant() {\n return new DisapproveMerchant();\n }\n\n /**\n * Create an instance of {@link DeleteMerchantResponse }\n * \n */\n public DeleteMerchantResponse createDeleteMerchantResponse() {\n return new DeleteMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetMerchantByCustomerIdResponse }\n * \n */\n public GetMerchantByCustomerIdResponse createGetMerchantByCustomerIdResponse() {\n return new GetMerchantByCustomerIdResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerId }\n * \n */\n public GetCustomerMerchantByCustomerId createGetCustomerMerchantByCustomerId() {\n return new GetCustomerMerchantByCustomerId();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerAccountNumberResponse }\n * \n */\n public GetCustomerMerchantByCustomerAccountNumberResponse createGetCustomerMerchantByCustomerAccountNumberResponse() {\n return new GetCustomerMerchantByCustomerAccountNumberResponse();\n }\n\n /**\n * Create an instance of {@link GetMerchantByNameResponse }\n * \n */\n public GetMerchantByNameResponse createGetMerchantByNameResponse() {\n return new GetMerchantByNameResponse();\n }\n\n /**\n * Create an instance of {@link DeleteCustomerMerchant }\n * \n */\n public DeleteCustomerMerchant createDeleteCustomerMerchant() {\n return new DeleteCustomerMerchant();\n }\n\n /**\n * Create an instance of {@link GetMerchantByStatusResponse }\n * \n */\n public GetMerchantByStatusResponse createGetMerchantByStatusResponse() {\n return new GetMerchantByStatusResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankMerchantIdResponse }\n * \n */\n public GetCustomerMerchantByBankMerchantIdResponse createGetCustomerMerchantByBankMerchantIdResponse() {\n return new GetCustomerMerchantByBankMerchantIdResponse();\n }\n\n /**\n * Create an instance of {@link FindMerchantByIdResponse }\n * \n */\n public FindMerchantByIdResponse createFindMerchantByIdResponse() {\n return new FindMerchantByIdResponse();\n }\n\n /**\n * Create an instance of {@link CreateBankMerchantResponse }\n * \n */\n public CreateBankMerchantResponse createCreateBankMerchantResponse() {\n return new CreateBankMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankIdAndShortNameAndStatus }\n * \n */\n public GetBankMerchantByBankIdAndShortNameAndStatus createGetBankMerchantByBankIdAndShortNameAndStatus() {\n return new GetBankMerchantByBankIdAndShortNameAndStatus();\n }\n\n /**\n * Create an instance of {@link GetMerchantByStatus }\n * \n */\n public GetMerchantByStatus createGetMerchantByStatus() {\n return new GetMerchantByStatus();\n }\n\n /**\n * Create an instance of {@link ApproveBankMerchant }\n * \n */\n public ApproveBankMerchant createApproveBankMerchant() {\n return new ApproveBankMerchant();\n }\n\n /**\n * Create an instance of {@link DisapproveBankMerchant }\n * \n */\n public DisapproveBankMerchant createDisapproveBankMerchant() {\n return new DisapproveBankMerchant();\n }\n\n /**\n * Create an instance of {@link GetMerchantByCustomerId }\n * \n */\n public GetMerchantByCustomerId createGetMerchantByCustomerId() {\n return new GetMerchantByCustomerId();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber }\n * \n */\n public GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber createGetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber() {\n return new GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber();\n }\n\n /**\n * Create an instance of {@link EditMerchantResponse }\n * \n */\n public EditMerchantResponse createEditMerchantResponse() {\n return new EditMerchantResponse();\n }\n\n /**\n * Create an instance of {@link EditCustomerMerchantResponse }\n * \n */\n public EditCustomerMerchantResponse createEditCustomerMerchantResponse() {\n return new EditCustomerMerchantResponse();\n }\n\n /**\n * Create an instance of {@link CustomerMerchant }\n * \n */\n public CustomerMerchant createCustomerMerchant() {\n return new CustomerMerchant();\n }\n\n /**\n * Create an instance of {@link ApproveMerchantResponse }\n * \n */\n public ApproveMerchantResponse createApproveMerchantResponse() {\n return new ApproveMerchantResponse();\n }\n\n /**\n * Create an instance of {@link DisapproveBankMerchantResponse }\n * \n */\n public DisapproveBankMerchantResponse createDisapproveBankMerchantResponse() {\n return new DisapproveBankMerchantResponse();\n }\n\n /**\n * Create an instance of {@link CreateCustomerMerchantResponse }\n * \n */\n public CreateCustomerMerchantResponse createCreateCustomerMerchantResponse() {\n return new CreateCustomerMerchantResponse();\n }\n\n /**\n * Create an instance of {@link BankMerchant }\n * \n */\n public BankMerchant createBankMerchant() {\n return new BankMerchant();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByBankId }\n * \n */\n public GetBankMerchantByBankId createGetBankMerchantByBankId() {\n return new GetBankMerchantByBankId();\n }\n\n /**\n * Create an instance of {@link GetMerchantByShortName }\n * \n */\n public GetMerchantByShortName createGetMerchantByShortName() {\n return new GetMerchantByShortName();\n }\n\n /**\n * Create an instance of {@link FindCustomerMerchantById }\n * \n */\n public FindCustomerMerchantById createFindCustomerMerchantById() {\n return new FindCustomerMerchantById();\n }\n\n /**\n * Create an instance of {@link GetBankMerchantByMerchantId }\n * \n */\n public GetBankMerchantByMerchantId createGetBankMerchantByMerchantId() {\n return new GetBankMerchantByMerchantId();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByBankId }\n * \n */\n public GetCustomerMerchantByBankId createGetCustomerMerchantByBankId() {\n return new GetCustomerMerchantByBankId();\n }\n\n /**\n * Create an instance of {@link DeleteBankMerchantResponse }\n * \n */\n public DeleteBankMerchantResponse createDeleteBankMerchantResponse() {\n return new DeleteBankMerchantResponse();\n }\n\n /**\n * Create an instance of {@link GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus }\n * \n */\n public GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus createGetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus() {\n return new GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus();\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber\")\n public JAXBElement createGetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber(GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber value) {\n return new JAXBElement(_GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber_QNAME, GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumber.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveCustomerMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveCustomerMerchantResponse\")\n public JAXBElement createApproveCustomerMerchantResponse(ApproveCustomerMerchantResponse value) {\n return new JAXBElement(_ApproveCustomerMerchantResponse_QNAME, ApproveCustomerMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus\")\n public JAXBElement createGetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus(GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus_QNAME, GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatus.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveMerchantResponse\")\n public JAXBElement createApproveMerchantResponse(ApproveMerchantResponse value) {\n return new JAXBElement(_ApproveMerchantResponse_QNAME, ApproveMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteCustomerMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteCustomerMerchant\")\n public JAXBElement createDeleteCustomerMerchant(DeleteCustomerMerchant value) {\n return new JAXBElement(_DeleteCustomerMerchant_QNAME, DeleteCustomerMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveBankMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveBankMerchant\")\n public JAXBElement createApproveBankMerchant(ApproveBankMerchant value) {\n return new JAXBElement(_ApproveBankMerchant_QNAME, ApproveBankMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindCustomerMerchantById }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findCustomerMerchantById\")\n public JAXBElement createFindCustomerMerchantById(FindCustomerMerchantById value) {\n return new JAXBElement(_FindCustomerMerchantById_QNAME, FindCustomerMerchantById.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankIdAndMerchantIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankIdAndMerchantIdResponse\")\n public JAXBElement createGetBankMerchantByBankIdAndMerchantIdResponse(GetBankMerchantByBankIdAndMerchantIdResponse value) {\n return new JAXBElement(_GetBankMerchantByBankIdAndMerchantIdResponse_QNAME, GetBankMerchantByBankIdAndMerchantIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteMerchant\")\n public JAXBElement createDeleteMerchant(DeleteMerchant value) {\n return new JAXBElement(_DeleteMerchant_QNAME, DeleteMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindMerchantById }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findMerchantById\")\n public JAXBElement createFindMerchantById(FindMerchantById value) {\n return new JAXBElement(_FindMerchantById_QNAME, FindMerchantById.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerIdResponse\")\n public JAXBElement createGetCustomerMerchantByCustomerIdResponse(GetCustomerMerchantByCustomerIdResponse value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerIdResponse_QNAME, GetCustomerMerchantByCustomerIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByCustomerIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByCustomerIdResponse\")\n public JAXBElement createGetMerchantByCustomerIdResponse(GetMerchantByCustomerIdResponse value) {\n return new JAXBElement(_GetMerchantByCustomerIdResponse_QNAME, GetMerchantByCustomerIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankId\")\n public JAXBElement createGetCustomerMerchantByBankId(GetCustomerMerchantByBankId value) {\n return new JAXBElement(_GetCustomerMerchantByBankId_QNAME, GetCustomerMerchantByBankId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByStatus\")\n public JAXBElement createGetCustomerMerchantByStatus(GetCustomerMerchantByStatus value) {\n return new JAXBElement(_GetCustomerMerchantByStatus_QNAME, GetCustomerMerchantByStatus.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerAccountNumberResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerAccountNumberResponse\")\n public JAXBElement createGetCustomerMerchantByCustomerAccountNumberResponse(GetCustomerMerchantByCustomerAccountNumberResponse value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerAccountNumberResponse_QNAME, GetCustomerMerchantByCustomerAccountNumberResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByStatus\")\n public JAXBElement createGetMerchantByStatus(GetMerchantByStatus value) {\n return new JAXBElement(_GetMerchantByStatus_QNAME, GetMerchantByStatus.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse\")\n public JAXBElement createGetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse(GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse value) {\n return new JAXBElement(_GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse_QNAME, GetCustomerMerchantByBankMerchantIdAndCustomerIdAndCustomerAccountNumberResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetAllMerchants }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getAllMerchants\")\n public JAXBElement createGetAllMerchants(GetAllMerchants value) {\n return new JAXBElement(_GetAllMerchants_QNAME, GetAllMerchants.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveMerchant\")\n public JAXBElement createApproveMerchant(ApproveMerchant value) {\n return new JAXBElement(_ApproveMerchant_QNAME, ApproveMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankIdAndMerchantId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankIdAndMerchantId\")\n public JAXBElement createGetBankMerchantByBankIdAndMerchantId(GetBankMerchantByBankIdAndMerchantId value) {\n return new JAXBElement(_GetBankMerchantByBankIdAndMerchantId_QNAME, GetBankMerchantByBankIdAndMerchantId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveCustomerMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveCustomerMerchant\")\n public JAXBElement createApproveCustomerMerchant(ApproveCustomerMerchant value) {\n return new JAXBElement(_ApproveCustomerMerchant_QNAME, ApproveCustomerMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerId\")\n public JAXBElement createGetCustomerMerchantByCustomerId(GetCustomerMerchantByCustomerId value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerId_QNAME, GetCustomerMerchantByCustomerId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByCustomerId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByCustomerId\")\n public JAXBElement createGetMerchantByCustomerId(GetMerchantByCustomerId value) {\n return new JAXBElement(_GetMerchantByCustomerId_QNAME, GetMerchantByCustomerId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditBankMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editBankMerchantResponse\")\n public JAXBElement createEditBankMerchantResponse(EditBankMerchantResponse value) {\n return new JAXBElement(_EditBankMerchantResponse_QNAME, EditBankMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link Exception }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"Exception\")\n public JAXBElement createException(Exception value) {\n return new JAXBElement(_Exception_QNAME, Exception.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveBankMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveBankMerchantResponse\")\n public JAXBElement createDisapproveBankMerchantResponse(DisapproveBankMerchantResponse value) {\n return new JAXBElement(_DisapproveBankMerchantResponse_QNAME, DisapproveBankMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerAccountNumber }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerAccountNumber\")\n public JAXBElement createGetCustomerMerchantByCustomerAccountNumber(GetCustomerMerchantByCustomerAccountNumber value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerAccountNumber_QNAME, GetCustomerMerchantByCustomerAccountNumber.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateBankMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createBankMerchantResponse\")\n public JAXBElement createCreateBankMerchantResponse(CreateBankMerchantResponse value) {\n return new JAXBElement(_CreateBankMerchantResponse_QNAME, CreateBankMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByMerchantIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByMerchantIdResponse\")\n public JAXBElement createGetBankMerchantByMerchantIdResponse(GetBankMerchantByMerchantIdResponse value) {\n return new JAXBElement(_GetBankMerchantByMerchantIdResponse_QNAME, GetBankMerchantByMerchantIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByStatusAndBankIdAndMerchantIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByStatusAndBankIdAndMerchantIdResponse\")\n public JAXBElement createGetBankMerchantByStatusAndBankIdAndMerchantIdResponse(GetBankMerchantByStatusAndBankIdAndMerchantIdResponse value) {\n return new JAXBElement(_GetBankMerchantByStatusAndBankIdAndMerchantIdResponse_QNAME, GetBankMerchantByStatusAndBankIdAndMerchantIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteBankMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteBankMerchantResponse\")\n public JAXBElement createDeleteBankMerchantResponse(DeleteBankMerchantResponse value) {\n return new JAXBElement(_DeleteBankMerchantResponse_QNAME, DeleteBankMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindBankMerchantByIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findBankMerchantByIdResponse\")\n public JAXBElement createFindBankMerchantByIdResponse(FindBankMerchantByIdResponse value) {\n return new JAXBElement(_FindBankMerchantByIdResponse_QNAME, FindBankMerchantByIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditCustomerMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editCustomerMerchantResponse\")\n public JAXBElement createEditCustomerMerchantResponse(EditCustomerMerchantResponse value) {\n return new JAXBElement(_EditCustomerMerchantResponse_QNAME, EditCustomerMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankIdAndShortNameAndStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankIdAndShortNameAndStatusResponse\")\n public JAXBElement createGetBankMerchantByBankIdAndShortNameAndStatusResponse(GetBankMerchantByBankIdAndShortNameAndStatusResponse value) {\n return new JAXBElement(_GetBankMerchantByBankIdAndShortNameAndStatusResponse_QNAME, GetBankMerchantByBankIdAndShortNameAndStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByShortNameResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByShortNameResponse\")\n public JAXBElement createGetMerchantByShortNameResponse(GetMerchantByShortNameResponse value) {\n return new JAXBElement(_GetMerchantByShortNameResponse_QNAME, GetMerchantByShortNameResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankMerchantIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankMerchantIdResponse\")\n public JAXBElement createGetCustomerMerchantByBankMerchantIdResponse(GetCustomerMerchantByBankMerchantIdResponse value) {\n return new JAXBElement(_GetCustomerMerchantByBankMerchantIdResponse_QNAME, GetCustomerMerchantByBankMerchantIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editMerchantResponse\")\n public JAXBElement createEditMerchantResponse(EditMerchantResponse value) {\n return new JAXBElement(_EditMerchantResponse_QNAME, EditMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditBankMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editBankMerchant\")\n public JAXBElement createEditBankMerchant(EditBankMerchant value) {\n return new JAXBElement(_EditBankMerchant_QNAME, EditBankMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveMerchantResponse\")\n public JAXBElement createDisapproveMerchantResponse(DisapproveMerchantResponse value) {\n return new JAXBElement(_DisapproveMerchantResponse_QNAME, DisapproveMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankIdResponse\")\n public JAXBElement createGetBankMerchantByBankIdResponse(GetBankMerchantByBankIdResponse value) {\n return new JAXBElement(_GetBankMerchantByBankIdResponse_QNAME, GetBankMerchantByBankIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByStatusResponse\")\n public JAXBElement createGetBankMerchantByStatusResponse(GetBankMerchantByStatusResponse value) {\n return new JAXBElement(_GetBankMerchantByStatusResponse_QNAME, GetBankMerchantByStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createMerchantResponse\")\n public JAXBElement createCreateMerchantResponse(CreateMerchantResponse value) {\n return new JAXBElement(_CreateMerchantResponse_QNAME, CreateMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveCustomerMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveCustomerMerchantResponse\")\n public JAXBElement createDisapproveCustomerMerchantResponse(DisapproveCustomerMerchantResponse value) {\n return new JAXBElement(_DisapproveCustomerMerchantResponse_QNAME, DisapproveCustomerMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateBankMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createBankMerchant\")\n public JAXBElement createCreateBankMerchant(CreateBankMerchant value) {\n return new JAXBElement(_CreateBankMerchant_QNAME, CreateBankMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByNameResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByNameResponse\")\n public JAXBElement createGetMerchantByNameResponse(GetMerchantByNameResponse value) {\n return new JAXBElement(_GetMerchantByNameResponse_QNAME, GetMerchantByNameResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveBankMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveBankMerchant\")\n public JAXBElement createDisapproveBankMerchant(DisapproveBankMerchant value) {\n return new JAXBElement(_DisapproveBankMerchant_QNAME, DisapproveBankMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateCustomerMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createCustomerMerchantResponse\")\n public JAXBElement createCreateCustomerMerchantResponse(CreateCustomerMerchantResponse value) {\n return new JAXBElement(_CreateCustomerMerchantResponse_QNAME, CreateCustomerMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus\")\n public JAXBElement createGetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus(GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus_QNAME, GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatus.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByMerchantId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByMerchantId\")\n public JAXBElement createGetBankMerchantByMerchantId(GetBankMerchantByMerchantId value) {\n return new JAXBElement(_GetBankMerchantByMerchantId_QNAME, GetBankMerchantByMerchantId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindMerchantByIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findMerchantByIdResponse\")\n public JAXBElement createFindMerchantByIdResponse(FindMerchantByIdResponse value) {\n return new JAXBElement(_FindMerchantByIdResponse_QNAME, FindMerchantByIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteMerchantResponse\")\n public JAXBElement createDeleteMerchantResponse(DeleteMerchantResponse value) {\n return new JAXBElement(_DeleteMerchantResponse_QNAME, DeleteMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse\")\n public JAXBElement createGetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse(GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse_QNAME, GetCustomerMerchantByCustomerIdAndMerchantShortNameAndStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditCustomerMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editCustomerMerchant\")\n public JAXBElement createEditCustomerMerchant(EditCustomerMerchant value) {\n return new JAXBElement(_EditCustomerMerchant_QNAME, EditCustomerMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankIdAndShortNameAndStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankIdAndShortNameAndStatus\")\n public JAXBElement createGetBankMerchantByBankIdAndShortNameAndStatus(GetBankMerchantByBankIdAndShortNameAndStatus value) {\n return new JAXBElement(_GetBankMerchantByBankIdAndShortNameAndStatus_QNAME, GetBankMerchantByBankIdAndShortNameAndStatus.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindCustomerMerchantByIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findCustomerMerchantByIdResponse\")\n public JAXBElement createFindCustomerMerchantByIdResponse(FindCustomerMerchantByIdResponse value) {\n return new JAXBElement(_FindCustomerMerchantByIdResponse_QNAME, FindCustomerMerchantByIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link EditMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"editMerchant\")\n public JAXBElement createEditMerchant(EditMerchant value) {\n return new JAXBElement(_EditMerchant_QNAME, EditMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link ApproveBankMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"approveBankMerchantResponse\")\n public JAXBElement createApproveBankMerchantResponse(ApproveBankMerchantResponse value) {\n return new JAXBElement(_ApproveBankMerchantResponse_QNAME, ApproveBankMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteCustomerMerchantResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteCustomerMerchantResponse\")\n public JAXBElement createDeleteCustomerMerchantResponse(DeleteCustomerMerchantResponse value) {\n return new JAXBElement(_DeleteCustomerMerchantResponse_QNAME, DeleteCustomerMerchantResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankMerchantId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankMerchantId\")\n public JAXBElement createGetCustomerMerchantByBankMerchantId(GetCustomerMerchantByBankMerchantId value) {\n return new JAXBElement(_GetCustomerMerchantByBankMerchantId_QNAME, GetCustomerMerchantByBankMerchantId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByShortName }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByShortName\")\n public JAXBElement createGetMerchantByShortName(GetMerchantByShortName value) {\n return new JAXBElement(_GetMerchantByShortName_QNAME, GetMerchantByShortName.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByStatusAndBankIdAndMerchantId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByStatusAndBankIdAndMerchantId\")\n public JAXBElement createGetBankMerchantByStatusAndBankIdAndMerchantId(GetBankMerchantByStatusAndBankIdAndMerchantId value) {\n return new JAXBElement(_GetBankMerchantByStatusAndBankIdAndMerchantId_QNAME, GetBankMerchantByStatusAndBankIdAndMerchantId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link FindBankMerchantById }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"findBankMerchantById\")\n public JAXBElement createFindBankMerchantById(FindBankMerchantById value) {\n return new JAXBElement(_FindBankMerchantById_QNAME, FindBankMerchantById.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DeleteBankMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"deleteBankMerchant\")\n public JAXBElement createDeleteBankMerchant(DeleteBankMerchant value) {\n return new JAXBElement(_DeleteBankMerchant_QNAME, DeleteBankMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByBankId }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByBankId\")\n public JAXBElement createGetBankMerchantByBankId(GetBankMerchantByBankId value) {\n return new JAXBElement(_GetBankMerchantByBankId_QNAME, GetBankMerchantByBankId.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByStatusResponse\")\n public JAXBElement createGetMerchantByStatusResponse(GetMerchantByStatusResponse value) {\n return new JAXBElement(_GetMerchantByStatusResponse_QNAME, GetMerchantByStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByBankIdResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByBankIdResponse\")\n public JAXBElement createGetCustomerMerchantByBankIdResponse(GetCustomerMerchantByBankIdResponse value) {\n return new JAXBElement(_GetCustomerMerchantByBankIdResponse_QNAME, GetCustomerMerchantByBankIdResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createMerchant\")\n public JAXBElement createCreateMerchant(CreateMerchant value) {\n return new JAXBElement(_CreateMerchant_QNAME, CreateMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveCustomerMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveCustomerMerchant\")\n public JAXBElement createDisapproveCustomerMerchant(DisapproveCustomerMerchant value) {\n return new JAXBElement(_DisapproveCustomerMerchant_QNAME, DisapproveCustomerMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByStatusResponse\")\n public JAXBElement createGetCustomerMerchantByStatusResponse(GetCustomerMerchantByStatusResponse value) {\n return new JAXBElement(_GetCustomerMerchantByStatusResponse_QNAME, GetCustomerMerchantByStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link DisapproveMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"disapproveMerchant\")\n public JAXBElement createDisapproveMerchant(DisapproveMerchant value) {\n return new JAXBElement(_DisapproveMerchant_QNAME, DisapproveMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetMerchantByName }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getMerchantByName\")\n public JAXBElement createGetMerchantByName(GetMerchantByName value) {\n return new JAXBElement(_GetMerchantByName_QNAME, GetMerchantByName.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse\")\n public JAXBElement createGetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse(GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse value) {\n return new JAXBElement(_GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse_QNAME, GetCustomerMerchantByCustomerIdAndBankMerchantIdAndStatusResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetAllMerchantsResponse }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getAllMerchantsResponse\")\n public JAXBElement createGetAllMerchantsResponse(GetAllMerchantsResponse value) {\n return new JAXBElement(_GetAllMerchantsResponse_QNAME, GetAllMerchantsResponse.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link CreateCustomerMerchant }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"createCustomerMerchant\")\n public JAXBElement createCreateCustomerMerchant(CreateCustomerMerchant value) {\n return new JAXBElement(_CreateCustomerMerchant_QNAME, CreateCustomerMerchant.class, null, value);\n }\n\n /**\n * Create an instance of {@link JAXBElement }{@code <}{@link GetBankMerchantByStatus }{@code >}}\n * \n */\n @XmlElementDecl(namespace = \"http://service.merchantservices.ewallet.esolutions.co.zw/\", name = \"getBankMerchantByStatus\")\n public JAXBElement createGetBankMerchantByStatus(GetBankMerchantByStatus value) {\n return new JAXBElement(_GetBankMerchantByStatus_QNAME, GetBankMerchantByStatus.class, null, value);\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2969,"cells":{"blob_id":{"kind":"string","value":"07267c6c8f3d425ca0dee853c3766d78eb3ee7ad"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"smaharjan99/coffee"},"path":{"kind":"string","value":"/CollectionDEMO/src/com/cubic/training/collectionexercise/PriorityQueueDemo.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":696,"string":"696"},"score":{"kind":"number","value":3.234375,"string":"3.234375"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.cubic.training.collectionexercise;\n\nimport java.util.PriorityQueue;\n\npublic class PriorityQueueDemo {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tPriorityQueue pq = new PriorityQueue();\n\t\tpq.add(\"abid\");\n\t\tpq.add(\"azeem\");\n\t\tpq.add(\"lokesh\");\n\t\tpq.add(\"brad\");\n\t\t//pq.add(\"abid\");\n\t\tSystem.out.println(\"Head element is - \"+ pq.element());\n\t\tSystem.out.println(\"Head element is - \"+ pq.peek());\n\t\t\n\t\tSystem.out.println(\"Iterating\");\n\t\tfor(String s:pq){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t\tpq.remove();\n\t\tpq.poll();\n\t\t\n\t\tSystem.out.println(\"After removing two elements\");\n\t\tSystem.out.println(\"Iterating\");\n\t\tfor(String s:pq){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\t\n\t}\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2970,"cells":{"blob_id":{"kind":"string","value":"e80ba6d1934ecf08d0cff1be88ce041a30c88f24"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"t051506/alloy-common"},"path":{"kind":"string","value":"/alloy-common-sentinel/src/main/java/com/alloy/cloud/common/sentinel/handle/CloudUrlBlockHandler.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1260,"string":"1,260"},"score":{"kind":"number","value":2.015625,"string":"2.015625"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"\npackage com.alloy.cloud.common.sentinel.handle;\n\nimport cn.hutool.http.ContentType;\nimport com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler;\nimport com.alibaba.csp.sentinel.slots.block.BlockException;\nimport com.alibaba.fastjson.JSON;\nimport com.alibaba.fastjson.serializer.SerializerFeature;\nimport com.alloy.cloud.common.core.base.R;\nimport lombok.extern.slf4j.Slf4j;\nimport org.springframework.http.HttpStatus;\n\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\n\n/**\n * sentinel统一降级限流策略\n * \n * {@link com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.DefaultBlockExceptionHandler}\n */\n@Slf4j\npublic class CloudUrlBlockHandler implements BlockExceptionHandler {\n\n @Override\n public void handle(HttpServletRequest request, HttpServletResponse response, BlockException e) throws Exception {\n log.error(\"sentinel 降级 资源名称{}\", e.getRule().getResource(), e);\n\n response.setContentType(ContentType.JSON.toString());\n response.setStatus(HttpStatus.TOO_MANY_REQUESTS.value());\n response.getWriter().print(JSON.toJSONString(R.failed(\"sentinel denied.\"+ e.getMessage()), SerializerFeature.WriteNullStringAsEmpty));\n }\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2971,"cells":{"blob_id":{"kind":"string","value":"5bf0c04de1bf96cc98910350fa571bb73869a0a6"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"AHeartMan/simple-java"},"path":{"kind":"string","value":"/simple-java-nio/src/main/java/com/alsace/simplejavanio/blockingnio/Main.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":308,"string":"308"},"score":{"kind":"number","value":2,"string":"2"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.alsace.simplejavanio.blockingnio;\n\n/**\n *
\n *\n *
\n *\n * @author sangmingming\n * @since 2019/10/25 0025\n */\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n TestBlockingNio blockingNio = new TestBlockingNio();\n blockingNio.client();\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2972,"cells":{"blob_id":{"kind":"string","value":"9de9eed952eafa942e2032f7b529f056fff0e16f"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"honglou2001/ejb1"},"path":{"kind":"string","value":"/ejbpro1/src/com/watch/ejb/LocElectfenceBean.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":17392,"string":"17,392"},"score":{"kind":"number","value":2.21875,"string":"2.21875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.watch.ejb;\n\nimport java.util.ArrayList;\nimport java.util.HashMap;\nimport java.util.List;\nimport java.util.UUID;\nimport java.util.logging.Logger;\n\nimport javax.ejb.Stateless;\nimport javax.persistence.EntityManager;\nimport javax.persistence.PersistenceContext;\nimport javax.persistence.Query;\n\n/**\n * \n * Title: ejb title\n *
\n * \n * Description: t_loc_electfence EJB Interface Bean 处理类\n *
\n * \n * @author yangqinxu 电话:137****5317\n * @version 1.0 时间 2015-6-25 9:51:03\n */\n@Stateless(mappedName = \"LocElectfenceService\")\npublic class LocElectfenceBean implements LocElectfenceService {\n\n\tprivate final static Logger logger = Logger.getLogger(LocElectfenceBean.class.getName()); \n\t\n\t@PersistenceContext(unitName = \"ejbpro1\")\n\tprivate EntityManager manager;\n\n\t@Override\n\tpublic void Add(LocElectfence locElectfenceInfo) {\n\t\tlocElectfenceInfo.setFlocfenid(UUID.randomUUID().toString());\n\t\tmanager.persist(locElectfenceInfo);\n\t}\n\n\t@Override\n\tpublic void Update(LocElectfence locElectfenceInfo) {\n\t\tmanager.merge(locElectfenceInfo);\n\t}\n\n\t@Override\n\tpublic void Delete(String id) {\n\t\tLocElectfence locElectfenceInfo = manager.find(LocElectfence.class, id);\n\n\t\tmanager.remove(locElectfenceInfo);\n\t}\n\n\t@Override\n\tpublic LocElectfence find(String id) {\n\t\tLocElectfence locElectfenceInfo = manager.find(LocElectfence.class, id);\n\t\treturn locElectfenceInfo;\n\t}\n\n\tprivate String GetWhere(HashMap map) {\n\t\tString where = \"\";\n\n\t\t// queryMap.put(\"serialNumber\", serialNumber);\n\t\t// queryMap.put(\"areaNumber\", areaNumber);\n\t\t// queryMap.put(\"areaName\", areaName);\n\n\t\tif (map != null && map.size() > 0) {\n\t\t\tif (map.containsKey(\"serialNumber\")\n\t\t\t\t\t&& map.get(\"serialNumber\") != null\n\t\t\t\t\t&& !map.get(\"serialNumber\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and a.FSerialnumber = '\" + map.get(\"serialNumber\")\n\t\t\t\t\t\t+ \"' \";\n\t\t\t}\n\t\t\tif (map.containsKey(\"areaNumber\") && map.get(\"areaNumber\") != null\n\t\t\t\t\t&& !map.get(\"areaNumber\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and b.id = \" + map.get(\"areaNumber\") + \" \";\n\t\t\t}\n\t\t\tif (map.containsKey(\"areaName\") && map.get(\"areaName\") != null\n\t\t\t\t\t&& !map.get(\"areaName\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and b.name like '%\" + map.get(\"areaName\") + \"%' \";\n\t\t\t}\n\t\t\t// a.FUpdateTime>='2015-02-12 22:12:23' and FUpdateTime<='2015-08-12 22:12:23'\n\t\t\t \n\t\t\tif (map.containsKey(\"startTime\") && map.get(\"startTime\") != null\n\t\t\t\t\t&& !map.get(\"startTime\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and a.FUpdateTime >= '\" + map.get(\"startTime\") + \"' \";\n\t\t\t}\n\t\t\tif (map.containsKey(\"endTime\") && map.get(\"endTime\") != null\n\t\t\t\t\t&& !map.get(\"endTime\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and a.FUpdateTime <= '\" + map.get(\"endTime\") + \"' \";\n\t\t\t}\n\t\t\t\n\t\t\tif (map.containsKey(\"fdatastatus\") && map.get(\"fdatastatus\") != null\n\t\t\t\t\t&& !map.get(\"fdatastatus\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and a.fdatastatus = \" + map.get(\"fdatastatus\") + \" \";\n\t\t\t}\n\t\t\t\n\t\t\tif (map.containsKey(\"frecordcount\") && map.get(\"frecordcount\") != null\n\t\t\t\t\t&& map.get(\"frecordcount\").toString().equals(\"frecordcount=1\")) {\n\t\t\t\twhere += \" and a.frecordcount = 1 \";\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\treturn where;\n\t}\n\n\t@Override\n\tpublic int GetCount(HashMap map) {\n\n\t\tString where = GetWhere(map);\n\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" SELECT count(*) \");\n\t\tsql.append(\" FROM T_LOC_ELECTFENCE a left join electfence b on a.FEltFenceID = b.id \");\t\t\n\t\tsql.append(\" WHERE 1 = 1 \");\n\t\tsql.append(where);\n\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\t\tint total = (new Integer(query.getSingleResult().toString()));\n\n\t\treturn total;\n\t\t\n//\t\tString hql = \"select count(*) from LocElectfence\";\n//\t\tQuery query = manager.createQuery(hql);\n//\t\tint total = (new Integer(query.getSingleResult().toString()));\n//\t\treturn total;\n\t}\n\n\n\n\tprivate List GetSerialAreaList(HashMap map) {\n\n\t\t//String where = \"and a.serialnumber='\" + serialnumber + \"'\";\n\t\t\n\t\tString where = \"\";\n\n\t\tif (map.containsKey(\"serialNumber\") && map.get(\"serialNumber\") != null\n\t\t\t\t&& !map.get(\"serialNumber\").toString().equals(\"\")) {\n\t\t\twhere += \" and a.serialnumber = '\" + map.get(\"serialNumber\")\n\t\t\t\t\t+ \"' \";\n\t\t}\n\t\tif (map.containsKey(\"areaNumber\") && map.get(\"areaNumber\") != null\n\t\t\t\t&& !map.get(\"areaNumber\").toString().equals(\"\")) {\n\t\t\twhere += \" and a.id = \" + map.get(\"areaNumber\") + \" \";\n\t\t}\n\t\t\n\t\tStringBuffer sql = new StringBuffer();\n\n\t\tsql.append(\" SELECT a.id,a.serialnumber,a.areanum,a.name,a.locationbd,a.locationgd,a.model,a.scope,a.createtime,a.updatetime,a.status \");\n\t\tsql.append(\" FROM ELECTFENCE a \");\n\t\tsql.append(\" WHERE 1 = 1 \");\n\t\tsql.append(where);\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\n\t\tList rows = query.getResultList();\n\t\tList LocElectfences = new ArrayList();\n\n\t\tfor (Object row : rows) {\n\t\t\tObject[] cells = (Object[]) row;\n\t\t\tElectfence item = new Electfence();\n\t\t\titem.setAreanum((Integer) cells[0]);\n\t\t\tLocElectfences.add(item);\n\t\t}\n\n\t\treturn LocElectfences;\n\t}\n\n\n\tprivate List getTop1ByElectfence(HashMap map) {\n\n\t\tString where = \"\";\n\n\t\tif (map.containsKey(\"serialNumber\") && map.get(\"serialNumber\") != null\n\t\t\t\t&& !map.get(\"serialNumber\").toString().equals(\"\")) {\n\t\t\twhere += \" and a.FSerialnumber = '\" + map.get(\"serialNumber\")\n\t\t\t\t\t+ \"' \";\n\t\t}\n\t\tif (map.containsKey(\"areaNumber\") && map.get(\"areaNumber\") != null\n\t\t\t\t&& !map.get(\"areaNumber\").toString().equals(\"\")) {\n\t\t\twhere += \" and b.id = \" + map.get(\"areaNumber\") + \" \";\n\t\t}\n\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" SELECT a.FLocFenID,a.FIncreaseID,a.FEltFenceID,a.FSerialnumber,a.FDataStatus,a.FFieldStatus,a.FEltLongitude,a.FEltLatitude,a.FEltScope,a.FEltAddress,a.FLongitude,a.FLatitude,a.FAddress,a.FDistance,a.FAddTime,a.FUpdateTime,a.FRemark \");\n\t\tsql.append(\" ,a.FReadCount,b.id,b.name \");\n//\t\tsql.append(\" ,IFNULL(b.areanum,0),IFNULL(b.name,'') \");\n\n\t\tsql.append(\" FROM T_LOC_ELECTFENCE a inner join electfence b on a.FEltFenceID = b.id \");\n\t\tsql.append(\" WHERE 1 = 1 \");\n\n\t\tsql.append(where);\n\t\tsql.append(\" order by a.FIncreaseID desc \");\n\t\tsql.append(\"limit 0,1\");\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\n\t\tList rows = query.getResultList();\n\t\tList LocElectfences = new ArrayList();\n\n\t\tfor (Object row : rows) {\n\t\t\tObject[] cells = (Object[]) row;\n\n\t\t\tLocElectfence item = new LocElectfence();\n\n\t\t\titem.setFlocfenid((String) cells[0]);\n\t\t\titem.setFincreaseid((Integer) cells[1]);\n\t\t\titem.setFeltfenceid((Integer) cells[2]);\n\t\t\titem.setFserialnumber((String) cells[3]);\n\t\t\titem.setFdatastatus((Integer) cells[4]);\n\t\t\titem.setFfieldstatus((Integer) cells[5]);\n\t\t\titem.setFeltlongitude((String) cells[6]);\n\t\t\titem.setFeltlatitude((String) cells[7]);\n\t\t\titem.setFeltscope((Double) cells[8]);\n\t\t\titem.setFeltaddress((String) cells[9]);\n\t\t\titem.setFlongitude((String) cells[10]);\n\t\t\titem.setFlatitude((String) cells[11]);\n\t\t\titem.setFaddress((String) cells[12]);\n\t\t\titem.setFdistance((Double) cells[13]);\n\t\t\titem.setFaddtime((java.sql.Timestamp) cells[14]);\n\t\t\titem.setFupdatetime((java.sql.Timestamp) cells[15]);\n\t\t\titem.setFremark((String) cells[16]);\n\t\t\t\n//\t\t\tif(cells[17]!=null && !cells[17].toString().equals(\"\"))\n//\t\t\t{\n//\t\t\t\t\n//\t\t\t}\n\t\t\titem.setFreadCount((Integer) cells[17]);\n\t\t\titem.setFareanumber((Integer) cells[18]);\n\t\t\titem.setFareaname((String) cells[19]);\n\n\t\t\tLocElectfences.add(item);\n\t\t\t\n\t\t\t\n\t\t\t//更新读写次数\n\t\t\tString updateSql = \"update T_LOC_ELECTFENCE set FReadCount=FReadCount+1 WHERE FLocFenID= :FLocFenID \";\n\t\t\tQuery updateQuery = manager.createNativeQuery(updateSql);\n\t\t\tupdateQuery.setParameter(\"FLocFenID\", item.getFlocfenid());\n\t\t\tupdateQuery.executeUpdate();\n\t\t\t\n\t\t}\n\t\treturn LocElectfences;\n\t}\n\n\t@Override\n\tpublic List ListLocElectfenceTop1(int offset, int length,\n\t\t\tHashMap map) {\n\n\t\tList locEltReturn = new ArrayList();\n\t\tif(map == null || map.size()==0)\n\t\t{\n\t\t\treturn locEltReturn;\n\t\t}\n\t\t\n\t\tif(map.get(\"serialNumber\") ==null || map.get(\"serialNumber\").toString().equals(\"\"))\n\t\t{\n\t\t\treturn locEltReturn;\n\t\t}\n\t\t\n\t\tList elct = this.GetSerialAreaList(map);\n\n\t\t\n\t\tif (elct != null && elct.size() > 0) {\n\t\t\tfor (int i = 0; i < elct.size(); i++) {\n\t\t\t\t\n\t\t\t\tElectfence item = elct.get(i);\n\n\t\t\t\tHashMap map1 = new HashMap();\n\t\t\t\tmap1.put(\"serialNumber\", map.get(\"serialNumber\"));\n\t\t\t\tmap1.put(\"areaNumber\", item.getAreanum().toString());\n\n\t\t\t\tList locelts = this.getTop1ByElectfence(map1);\n\t\t\t\tif (locelts != null && locelts.size() > 0) {\n\t\t\t\t\tlocEltReturn.add(locelts.get(0));\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\treturn locEltReturn;\n\n\t}\n\n\t@Override\n\tpublic List ListLocElectfence(int offset, int length,\n\t\t\tHashMap map) {\n\n\t\t\n\t\tString where = GetWhere(map);\n\t\t\n\t\tString ordersc = \" desc \";\n\t\t\n\t\tif(map!=null && map.size()>0){\n\t\t\tif (map.containsKey(\"frecordcount\") && map.get(\"frecordcount\") != null\n\t\t\t\t\t&& map.get(\"frecordcount\").toString().equals(\"frecordcount=1\")) {\n\t\t\t\tordersc = \" asc \";\n\t\t\t}\t\n\t\t}\n\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" SELECT a.FLocFenID,a.FIncreaseID,a.FEltFenceID,a.FSerialnumber,a.FDataStatus,a.FFieldStatus,a.FEltLongitude,a.FEltLatitude,a.FEltScope,a.FEltAddress,a.FLongitude,a.FLatitude,a.FAddress,a.FDistance,a.FAddTime,a.FUpdateTime,a.FRemark \");\n\t\tsql.append(\" ,b.id,b.name \");\n\t\tsql.append(\" FROM T_LOC_ELECTFENCE a left join electfence b on a.FEltFenceID = b.id \");\t\t\n\t\tsql.append(\" WHERE 1 = 1 \");\n\t\tsql.append(where);\n\t\tsql.append(\" order by a.FIncreaseID \"+ordersc);\n\t\tsql.append(\"limit \"+offset+\",\" + length + \"\");\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\n\t\tList rows = query.getResultList();\n\t\tList LocElectfences = new ArrayList();\n\n\t\tfor (Object row : rows) {\n\t\t\tObject[] cells = (Object[]) row;\n\n\t\t\tLocElectfence item = new LocElectfence();\n\n\t\t\titem.setFlocfenid((String) cells[0]);\n\t\t\titem.setFincreaseid((Integer) cells[1]);\n\t\t\titem.setFeltfenceid((Integer) cells[2]);\n\t\t\titem.setFserialnumber((String) cells[3]);\n\t\t\titem.setFdatastatus((Integer) cells[4]);\n\t\t\titem.setFfieldstatus((Integer) cells[5]);\n\t\t\titem.setFeltlongitude((String) cells[6]);\n\t\t\titem.setFeltlatitude((String) cells[7]);\n\t\t\titem.setFeltscope((Double) cells[8]);\n\t\t\titem.setFeltaddress((String) cells[9]);\n\t\t\titem.setFlongitude((String) cells[10]);\n\t\t\titem.setFlatitude((String) cells[11]);\n\t\t\titem.setFaddress((String) cells[12]);\n\t\t\titem.setFdistance((Double) cells[13]);\n\t\t\titem.setFaddtime((java.sql.Timestamp) cells[14]);\n\t\t\titem.setFupdatetime((java.sql.Timestamp) cells[15]);\n\t\t\titem.setFremark((String) cells[16]);\t\t\t\n\t\t\titem.setFareanumber((Integer) cells[17]);\n\t\t\titem.setFareaname((String) cells[18]);\n\n\t\t\tLocElectfences.add(item);\n\t\t}\n\t\treturn LocElectfences;\n\t}\n\t\n\tprivate List ListUser(int offset, int length,HashMap map) {\n\n\t\tString where = \" \";\n\t\t\n\t\tif(map!=null && map.size() > 0)\n\t\t{\n\n//\t\t\tif(map.containsKey(\"funiqueid\") && map.get(\"funiqueid\")!=null && !map.get(\"funiqueid\").toString().equals(\"\"))\n//\t\t\t{\n//\t\t\t\twhere += \" and a.funiqueid = '\"+map.get(\"funiqueid\")+\"' \";\n//\t\t\t}\t\n//\t\t\t\n\t\t\tif (map.containsKey(\"user.funiqueid\") && map.get(\"user.funiqueid\") != null\n\t\t\t\t\t&& !map.get(\"user.funiqueid\").toString().equals(\"\")) {\n\t\t\t\twhere += \" and a.funiqueid = '\" + map.get(\"user.funiqueid\") + \"' \";\n\t\t\t}\t\t\t\t\n\t\t}\t\t\n\t\t\t\t\n\t StringBuffer sql = new StringBuffer();\n sql.append(\" SELECT a.funiqueid,a.id,c.serialnumber,a.username,a.phone,a.password,a.sex,a.status,a.createtime,a.fmobile,a.nickname,a.birthday,a.height,a.weight,a.picture,a.flogcount,a.floglasttime,a.floglaspip,a.fienabled,a.fdatastatus,a.fremark,a.femail,a.furl,a.faddress \"); \n sql.append(\" FROM USER a inner join t_user_snrelate b \"); \n sql.append(\" on a.funiqueid=b.FUserIDStr inner join serialnumber c on c.funiqueid = b.FSNIDStr \"); \n\t\tsql.append(\" WHERE b.FDataStatus=1 | b.FDataStatus \");\n\t\tsql.append(where);\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\n\t\tList rows = query.getResultList();\n\t\tList Users = new ArrayList();\n\t\t\n\t\tfor (Object row : rows) {\n\t\t\tObject[] cells = (Object[]) row;\n\t\t\t\n\t\t\tUserWatch item = new UserWatch();\t\n \n item.setFuniqueid((String)cells[0]); \n item.setId((Integer)cells[1]); \n item.setSerialnumber((String)cells[2]); \n item.setUsername((String)cells[3]); \n item.setPhone((String)cells[4]); \n item.setPassword((String)cells[5]); \n item.setSex((String)cells[6]); \n item.setStatus((String)cells[7]); \n item.setCreatetime((String)cells[8]); \n item.setFmobile((String)cells[9]); \n item.setNickname((String)cells[10]); \n item.setBirthday((String)cells[11]); \n item.setHeight((String)cells[12]); \n item.setWeight((String)cells[13]); \n item.setPicture((String)cells[14]); \n item.setFlogcount((Integer)cells[15]); \n item.setFloglasttime((java.sql.Timestamp)cells[16]); \n item.setFloglaspip((String)cells[17]); \n item.setFienabled((Integer)cells[18]); \n item.setFdatastatus((Integer)cells[19]); \n item.setFremark((String)cells[20]); \n item.setFemail((String)cells[21]); \n item.setFurl((String)cells[22]); \n item.setFaddress((String)cells[23]); \n \t\t\t\n\t\t\tUsers.add(item);\t\t\t\n\t\t}\n\t\treturn Users;\n\t}\n\t\n\t\t\n\tprivate List ListLatestLocaltion1(HashMap map) {\t\t\n\t\tString where = \"\";\n\t\tif (map.containsKey(\"user.funiqueid\") && map.get(\"user.funiqueid\") != null\n\t\t\t\t&& !map.get(\"user.funiqueid\").toString().equals(\"\")) {\n\t\t\twhere += \" and e.funiqueid = '\" + map.get(\"user.funiqueid\") + \"' \";\n\t\t}\n\t\tif (map.containsKey(\"serialnumber\") && map.get(\"serialnumber\") != null\n\t\t\t\t&& !map.get(\"serialnumber\").toString().equals(\"\")) {\n\t\t\twhere += \" and c.serialnumber = '\" + map.get(\"serialnumber\") + \"' \";\n\t\t\t\n\t\t\tif(where.equals(\"\"))\n\t\t\t{\n\t\t\t\twhere = \" and 1=0 \";\n\t\t\t}\n\t\t}\n\t\t\n\t\tStringBuffer sql = new StringBuffer();\n\t\tsql.append(\" SELECT a.FLocFenID,a.FIncreaseID,a.FEltFenceID,a.FSerialnumber,a.FDataStatus,a.FFieldStatus,a.FEltLongitude,a.FEltLatitude,a.FEltScope,a.FEltAddress,a.FLongitude,a.FLatitude,a.FAddress,a.FDistance,a.FAddTime,a.FUpdateTime,a.FRemark \");\n\t\tsql.append(\" ,b.id,b.name,c.fpicture,f.battery \");\n\t\tsql.append(\" FROM T_LOC_ELECTFENCE a left join electfence b on a.FEltFenceID = b.id and a.FFieldStatus=1 \");\t\t\t\n\t\tsql.append(\" inner join serialnumber c on c.serialnumber = a.FSerialnumber \");\n\t\tsql.append(\" inner join t_user_snrelate d on d.FSNIDStr = c.funiqueid \");\t\n\t\tsql.append(\" inner join user e on d.FUserIDStr = e.funiqueid \");\t\t\t\n\t\tsql.append(\" left join locationinfo f on f.serialnumber = c.serialnumber \");\t\n\t\t\n\t\tsql.append(\" WHERE 1 = 1 \");\n\t\tsql.append(where);\n\t\tsql.append(\" order by a.FIncreaseID desc \");\n\t\tsql.append(\"limit 0,1\");\n\n\t\tQuery query = manager.createNativeQuery(sql.toString());\n\n\t\tList rows = query.getResultList();\n\t\tList LocElectfences = new ArrayList();\n\n\t\tfor (Object row : rows) {\n\t\t\tObject[] cells = (Object[]) row;\n\n\t\t\tLocElectfence item = new LocElectfence();\n\n\t\t\titem.setFlocfenid((String) cells[0]);\n\t\t\titem.setFincreaseid((Integer) cells[1]);\n\t\t\titem.setFeltfenceid((Integer) cells[2]);\n\t\t\titem.setFserialnumber((String) cells[3]);\n\t\t\titem.setFdatastatus((Integer) cells[4]);\n\t\t\titem.setFfieldstatus((Integer) cells[5]);\n\t\t\titem.setFeltlongitude((String) cells[6]);\n\t\t\titem.setFeltlatitude((String) cells[7]);\n\t\t\titem.setFeltscope((Double) cells[8]);\n\t\t\titem.setFeltaddress((String) cells[9]);\n\t\t\titem.setFlongitude((String) cells[10]);\n\t\t\titem.setFlatitude((String) cells[11]);\n\t\t\titem.setFaddress((String) cells[12]);\n\t\t\titem.setFdistance((Double) cells[13]);\n\t\t\titem.setFaddtime((java.sql.Timestamp) cells[14]);\n\t\t\titem.setFupdatetime((java.sql.Timestamp) cells[15]);\n\t\t\titem.setFremark((String) cells[16]);\t\t\t\n\t\t\titem.setFareanumber((Integer) cells[17]);\n\t\t\titem.setFareaname((String) cells[18]);\t\t\t\n\t\t\titem.setFpicture((String) cells[19]);\n\n\t\t\titem.setBattery((String) cells[20]);\n\t\t\t\n\t\t\tLocElectfences.add(item);\n\t\t}\n\t\treturn LocElectfences;\n\t}\n\t\n\t@Override\n\tpublic List ListLatestLocaltion(HashMap map) {\n\n\t\tList listUser =this.ListUser(0, 100,map);\n\t\t\n\t\tList listData = new ArrayList();\n\t\t\n\t\tif(listUser!=null && listUser.size()>0)\n\t\t{\n\t\t\tfor(int i=0;i map1 = new HashMap();\n\t\t\t\tmap1.put(\"user.funiqueid\", listUser.get(i).getFuniqueid());\n\t\t\t\tmap1.put(\"serialnumber\", listUser.get(i).getSerialnumber());\n\t\t\t\t\n//\t\t\t\tlogger.info(String.format(\"yang info funiqueid:%s,serialnumber:%s\", listUser.get(i).getFuniqueid(),listUser.get(i).getSerialnumber()));\n\t\t\t\t\n\t\n\t\t\t\tList childloc = this.ListLatestLocaltion1(map1);\n\t\t\t\tlistData.addAll(childloc);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t\treturn listData;\n\t\t\n\t}\n}"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2973,"cells":{"blob_id":{"kind":"string","value":"485613810274083d277d424e00b8b99bead1ea70"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"noatmc-archived/jigokusense-leak"},"path":{"kind":"string","value":"/botnet/auth/jigokusense/manager/RotationManager.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":2654,"string":"2,654"},"score":{"kind":"number","value":2.375,"string":"2.375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"//Deobfuscated with https://github.com/SimplyProgrammer/Minecraft-Deobfuscator3000 using mappings \"C:\\Users\\autty\\Downloads\\Minecraft-Deobfuscator3000-master\\Minecraft-Deobfuscator3000-master\\1.12 stable mappings\"!\n\n/*\n * Decompiled with CFR 0.151.\n * \n * Could not load the following classes:\n * net.minecraft.entity.player.EntityPlayer\n * net.minecraft.network.play.client.CPacketPlayer\n * net.minecraftforge.common.MinecraftForge\n */\npackage botnet.auth.jigokusense.manager;\n\nimport botnet.auth.jigokusense.event.events.PacketEvent;\nimport botnet.auth.jigokusense.util.Global;\nimport java.util.function.Predicate;\nimport me.zero.alpine.listener.EventHandler;\nimport me.zero.alpine.listener.Listener;\nimport net.minecraft.entity.player.EntityPlayer;\nimport net.minecraft.network.play.client.CPacketPlayer;\nimport net.minecraftforge.common.MinecraftForge;\n\npublic class RotationManager\nimplements Global {\n private float yaw = 0.0f;\n private float pitch = 0.0f;\n private boolean shouldRotate = false;\n @EventHandler\n private final Listener receiveListener = new Listener(event -> {\n if (event.getPacket() instanceof CPacketPlayer) {\n CPacketPlayer packet = (CPacketPlayer)event.getPacket();\n if (this.shouldRotate) {\n packet.yaw = this.yaw;\n packet.pitch = this.pitch;\n }\n }\n }, new Predicate[0]);\n\n public RotationManager() {\n MinecraftForge.EVENT_BUS.register((Object)this);\n }\n\n public void reset() {\n this.shouldRotate = false;\n if (RotationManager.mc.player == null) {\n return;\n }\n this.yaw = RotationManager.mc.player.rotationYaw;\n this.pitch = RotationManager.mc.player.rotationPitch;\n }\n\n public void rotate(double x, double y, double z) {\n if (RotationManager.mc.player == null) {\n return;\n }\n Double[] v = this.calculateLookAt(x, y, z, (EntityPlayer)RotationManager.mc.player);\n this.shouldRotate = true;\n this.yaw = v[0].floatValue();\n this.pitch = v[1].floatValue();\n }\n\n private Double[] calculateLookAt(double px, double py, double pz, EntityPlayer me) {\n double dirx = me.posX - px;\n double diry = me.posY - py;\n double dirz = me.posZ - pz;\n double len = Math.sqrt(dirx * dirx + diry * diry + dirz * dirz);\n double pitch = Math.asin(diry /= len);\n double yaw = Math.atan2(dirz /= len, dirx /= len);\n pitch = pitch * 180.0 / Math.PI;\n yaw = yaw * 180.0 / Math.PI;\n return new Double[]{yaw += 90.0, pitch};\n }\n}\n\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2974,"cells":{"blob_id":{"kind":"string","value":"3620a22a3cc0a9fe4a74e703459b664d01fd2b2f"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"sopiseiro/pdv"},"path":{"kind":"string","value":"/src/pdvjonatas/buscar_cliente.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":8422,"string":"8,422"},"score":{"kind":"number","value":2.09375,"string":"2.09375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\n\n/*\n * buscar_cliente.java\n *\n * Created on 13/08/2011, 09:32:02\n */\n\npackage pdvjonatas;\n\nimport utilitarios.bd;\nimport utilitarios.mySql;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.KeyEvent;\nimport java.text.DecimalFormat;\nimport java.text.NumberFormat;\nimport java.util.Locale;\nimport javax.swing.AbstractAction;\nimport javax.swing.DefaultListModel;\nimport javax.swing.JComponent;\nimport javax.swing.JOptionPane;\nimport javax.swing.KeyStroke;\nimport javax.swing.table.DefaultTableModel;\nimport javax.swing.text.AttributeSet;\nimport javax.swing.text.PlainDocument;\n/**\n *\n * @author AGENCIA GLOBO\n */\npublic class buscar_cliente extends javax.swing.JDialog {\n\n public String nome, cpf, codigo;\n /** Creates new form buscar_cliente */\n public buscar_cliente(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n busca.requestFocus();\n\n busca.setDocument( new PlainDocument(){\n @Override\n\t\tprotected void insertUpdate( DefaultDocumentEvent chng, AttributeSet attr ){\n\n super.insertUpdate( chng, attr );\n\n DefaultTableModel model = ((DefaultTableModel)clientes.getModel());\n model.setNumRows(0);\n\n bd b = new bd();\n b.connect();\n mySql f = new mySql(b.conn);\n String sql = \"Select * FROM CLIENTE WHERE nome LIKE '%\"+busca.getText().toLowerCase()+\"%' OR nome LIKE '%\"+busca.getText().toUpperCase()+\"%' OR cnpj_cnpf = '\"+busca.getText() +\"' OR codigo ='\"+busca.getText()+\"' ORDER BY nome ASC\";\n f.open(sql);\n while (f.next()){\n model.addRow(new Object [] {f.fieldbyname(\"codigo\"), f.fieldbyname(\"nome\"),f.fieldbyname(\"cnpj_cnpf\")} );\n }\n\n\n \n\t\t}\n });\n }\n\n\n public String getNome(){\n return nome;\n }\n\n public String getCpf(){\n return cpf;\n }\n\n public String getCodigo(){\n return codigo;\n }\n\n /** This method is called from within the constructor to\n * initialize the form.\n * WARNING: Do NOT modify this code. The content of this method is\n * always regenerated by the Form Editor.\n */\n @SuppressWarnings(\"unchecked\")\n // //GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n busca = new javax.swing.JTextField();\n jScrollPane1 = new javax.swing.JScrollPane();\n clientes = new javax.swing.JTable();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setText(\"Nome ou CPF:\");\n\n clientes.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Código\", \"Nome\", \"CPF\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false, true\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n clientes.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n clientesMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(clientes);\n\n jButton1.setText(\"Selecionar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(busca))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 375, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(busca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton1)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n pack();\n }// //GEN-END:initComponents\n\n private void clientesMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_clientesMouseClicked\n if (evt.getClickCount() == 2){\n DefaultTableModel model = ((DefaultTableModel)clientes.getModel());\n try{\n nome = model.getValueAt(clientes.getSelectedRow(), 1).toString();\n cpf = model.getValueAt(clientes.getSelectedRow(), 2).toString();\n codigo = model.getValueAt(clientes.getSelectedRow(), 0).toString();\n }catch (Exception e){\n nome = model.getValueAt(clientes.getSelectedRow(), 1).toString();\n cpf = \"\";\n codigo = model.getValueAt(clientes.getSelectedRow(), 0).toString();\n }\n dispose();\n }\n }//GEN-LAST:event_clientesMouseClicked\n\n private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n DefaultTableModel model = ((DefaultTableModel)clientes.getModel());\n try{\n nome = model.getValueAt(clientes.getSelectedRow(), 1).toString();\n cpf = model.getValueAt(clientes.getSelectedRow(), 2).toString();\n codigo = model.getValueAt(clientes.getSelectedRow(), 0).toString();\n dispose();\n }catch (Exception e){\n nome = model.getValueAt(clientes.getSelectedRow(), 1).toString();\n cpf = \"\";\n codigo = model.getValueAt(clientes.getSelectedRow(), 0).toString();\n }\n }//GEN-LAST:event_jButton1ActionPerformed\n\n /**\n * @param args the command line arguments\n */\n public static void main(String args[]) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n buscar_cliente dialog = new buscar_cliente(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent e) {\n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }\n });\n }\n\n // Variables declaration - do not modify//GEN-BEGIN:variables\n private javax.swing.JTextField busca;\n private javax.swing.JTable clientes;\n private javax.swing.JButton jButton1;\n private javax.swing.JLabel jLabel1;\n private javax.swing.JScrollPane jScrollPane1;\n // End of variables declaration//GEN-END:variables\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2975,"cells":{"blob_id":{"kind":"string","value":"c79836c0e7c6f66817dcecb503ee11344b584175"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"tian-qingzhao/design-pattern"},"path":{"kind":"string","value":"/src/main/java/com/tqz/pattern/decorator/batterback/v2/BaseBattercake.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":298,"string":"298"},"score":{"kind":"number","value":2.46875,"string":"2.46875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.tqz.pattern.decorator.batterback.v2;\n\n/**\n * @Author: tian\n * @Date: 2020/4/22 21:26\n * @Desc:\n */\npublic class BaseBattercake extends Battercake {\n\n @Override\n public String msg() {\n return \"煎饼\";\n }\n\n @Override\n public int price() {\n return 5;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2976,"cells":{"blob_id":{"kind":"string","value":"b5ce9e2047697d59209909e65b71c908bbd12e2a"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"RevatureRobert/pet-tribble-lopezjronald"},"path":{"kind":"string","value":"/src/main/java/net/revature/enterprise/pettribble/service/PetTribbleImpl.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":7122,"string":"7,122"},"score":{"kind":"number","value":2.796875,"string":"2.796875"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package net.revature.enterprise.pettribble.service;\n\nimport net.revature.enterprise.pettribble.model.PetTribble;\n\nimport java.sql.*;\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class PetTribbleImpl implements PetTribbleDao {\n\n public static final String COLUMN_ID = \"id\";\n public static final String COLUMN_NAME = \"name\";\n public static final String TABLE_NAME = \"tribble\";\n /*\n Query to retrieve Pet Tribble by id\n */\n public static final String QUERY_SEARCH_ID = \"SELECT \" +\n COLUMN_ID + \", \" +\n COLUMN_NAME + \" FROM \" +\n TABLE_NAME + \" WHERE \" +\n COLUMN_ID + \" = ?\";\n /*\n Query to retrieve all pet tribble by name\n */\n public static final String QUERY_SEARCH_NAME = \"SELECT \" +\n COLUMN_ID + \", \" +\n COLUMN_NAME + \" FROM \" +\n TABLE_NAME + \" WHERE \" +\n COLUMN_NAME + \" = ? ORDER BY \" +\n COLUMN_NAME;\n public static final String QUERY_GET_ALL_PET_TRIBBLES = \"SELECT \" +\n COLUMN_ID + \", \" +\n COLUMN_NAME + \" FROM \" +\n TABLE_NAME;\n\n /*\n GET ALL PET TRIBBLE\n */\n public static final String QUERY_DELETE_BY_ID = \"DELETE FROM \" +\n TABLE_NAME + \" WHERE \" +\n COLUMN_ID + \" = ?\";\n\n /*\n QUERY TO DELETE BY ID\n */\n public static final String QUERY_CREATE = \"INSERT INTO \" +\n TABLE_NAME + \" (\" +\n COLUMN_NAME + \") VALUES (?)\";\n\n /*\n CREATE A NEW PET tribble\n */\n public final static Scanner scanner = new Scanner(System.in);\n public static Integer id;\n\n @Override\n public PetTribble getById(int id, Connection connection) {\n try {\n PetTribble petTribble = new PetTribble();\n PreparedStatement preparedStatement = connection.prepareStatement(QUERY_SEARCH_ID);\n preparedStatement.setInt(1, id);\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet != null) {\n while (resultSet.next()) {\n petTribble.setId(resultSet.getInt(1));\n petTribble.setName(resultSet.getString(2));\n }\n resultSet.close();\n }\n preparedStatement.close();\n return petTribble;\n } catch (SQLException e) {\n System.out.println(\"There was a problem with your transaction\");\n return null;\n } catch (Exception e) {\n System.out.println(\"ID does not exist or is no longer in the system.\");\n return null;\n }\n }\n\n @Override\n public ArrayList getByName(Connection connection, String name) {\n try {\n ArrayList petTribbles = new ArrayList<>();\n PreparedStatement preparedStatement = connection.prepareStatement(QUERY_SEARCH_NAME);\n preparedStatement.setString(1, name.toLowerCase().trim());\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet != null) {\n while (resultSet.next()) {\n PetTribble petTribble = new PetTribble();\n petTribble.setId(resultSet.getInt(1));\n petTribble.setName(resultSet.getString(2));\n petTribbles.add(petTribble);\n }\n resultSet.close();\n }\n preparedStatement.close();\n return petTribbles;\n } catch (SQLException e) {\n System.out.println(\"Name does not exist or is no longer in the system\");\n }\n return null;\n }\n\n @Override\n public ArrayList getAllPetTribbles(Connection connection) {\n try {\n ArrayList petTribbles = new ArrayList<>();\n PreparedStatement preparedStatement = connection.prepareStatement(QUERY_GET_ALL_PET_TRIBBLES);\n ResultSet resultSet = preparedStatement.executeQuery();\n if (resultSet != null) {\n while (resultSet.next()) {\n PetTribble petTribble = new PetTribble();\n petTribble.setId(resultSet.getInt(1));\n petTribble.setName(resultSet.getString(2));\n petTribbles.add(petTribble);\n }\n resultSet.close();\n }\n preparedStatement.close();\n return petTribbles;\n } catch (SQLException e) {\n return new ArrayList<>();\n }\n }\n\n @Override\n public int deleteById(Connection connection, int id) {\n try {\n connection.setAutoCommit(false);\n PreparedStatement preparedStatement = connection.prepareStatement(QUERY_DELETE_BY_ID);\n int result = -1;\n preparedStatement.setInt(1, id);\n try {\n result = preparedStatement.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n if (result != 0) {\n connection.commit();\n System.out.println(\"Deletion of ID: \" + id + \" was successful.\");\n preparedStatement.close();\n } else {\n connection.rollback();\n System.out.println(\"ID #: \" + id + \" does not exist or is no longer available.\");\n }\n connection.setAutoCommit(true);\n return result;\n } catch (SQLException e) {\n System.out.println(\"ID #: \" + id + \" does not exist or is no longer available.\");\n return -1;\n }\n }\n\n @Override\n public PetTribble createPetTribble(Connection connection, String name) {\n try {\n while (true) {\n name = name.trim();\n if (name != \"\" || name != null) {\n break;\n } else {\n System.out.print(\"Invalid entry. Please enter a first name: \");\n }\n }\n\n PreparedStatement preparedStatement = connection.prepareStatement(QUERY_CREATE, Statement.RETURN_GENERATED_KEYS);\n int result = -1;\n preparedStatement.setString(1, name.trim().toLowerCase());\n try {\n result = preparedStatement.executeUpdate();\n } catch (Exception e) {\n e.printStackTrace();\n }\n ResultSet resultSet = preparedStatement.getGeneratedKeys();\n PetTribble petTribble = new PetTribble();\n if (resultSet.next()) {\n petTribble = getById(resultSet.getInt(1), connection);\n }\n\n if (result != 0) {\n System.out.println(\"Entry was successful\");\n preparedStatement.close();\n return petTribble;\n } else {\n System.out.println(\"ID #: \" + id + \" does not exist or is no longer available.\");\n return new PetTribble();\n }\n } catch (SQLException e) {\n System.out.println(\"Sorry, unable to create the query due to syntax.\");\n return null;\n }\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2977,"cells":{"blob_id":{"kind":"string","value":"941e4d114daa537e6245b16458dc6a15e213a51a"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"jczapiewski/Design-Patterns"},"path":{"kind":"string","value":"/src/main/java/co/devfoundry/designpatterns/command/Main.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":881,"string":"881"},"score":{"kind":"number","value":2.59375,"string":"2.59375"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package co.devfoundry.designpatterns.command;\n\nimport co.devfoundry.designpatterns.command.command.MusicPlayerRemote;\nimport co.devfoundry.designpatterns.command.command.PlayFirstTrack;\nimport co.devfoundry.designpatterns.command.command.PlayNextTrack;\nimport co.devfoundry.designpatterns.command.command.PlayRandomTrack;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n MusicPlayer player = new MusicPlayer();\n MusicPlayerRemote remote = new MusicPlayerRemote();\n remote.setCommand(new PlayFirstTrack(player));\n remote.pressButton();\n remote.setCommand(new PlayNextTrack(player));\n remote.pressButton();\n remote.pressButton();\n remote.pressButton();\n remote.pressButton();\n remote.setCommand(new PlayRandomTrack(player));\n remote.pressButton();\n remote.pressButton();\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2978,"cells":{"blob_id":{"kind":"string","value":"1ef738f32d0fbef2204d575d88ab2878c593dd97"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"GerardoUPM/dsvp-rest"},"path":{"kind":"string","value":"/src/main/java/edu/ctb/upm/midas/client_modules/extraction/wikipedia/texts_extraction/api_response/WikipediaTextsExtractionService.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":763,"string":"763"},"score":{"kind":"number","value":1.921875,"string":"1.921875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package edu.ctb.upm.midas.client_modules.extraction.wikipedia.texts_extraction.api_response;\n\nimport edu.ctb.upm.midas.model.extraction.wikipedia.texts_extraction.request.Request;\nimport edu.ctb.upm.midas.model.extraction.common.request.RequestJSON;\nimport edu.ctb.upm.midas.model.extraction.common.response.Response;\n\n/**\n * Created by gerardo on 12/02/2018.\n *\n * @author Gerardo Lagunes G. ${EMAIL}\n * @version ${}\n * @project dgsvp-rest\n * @className MayoClinicTextsExtractionService\n * @see\n */\npublic interface WikipediaTextsExtractionService {\n\n Response getTexts(Request request);\n\n Response getResources(Request request);\n\n Response getWikipediaTextsByJSON( RequestJSON request);\n\n Response getWikipediaResourcesByJSON( RequestJSON request);\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2979,"cells":{"blob_id":{"kind":"string","value":"6312c141cb57461dcb34dd632e9bf09054df6e66"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"N-Ibrahimi/Java"},"path":{"kind":"string","value":"/Tree/BinarySearchTree.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":2130,"string":"2,130"},"score":{"kind":"number","value":3.5625,"string":"3.5625"},"int_score":{"kind":"number","value":4,"string":"4"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package binarysearchtree;\n\npublic class tre {\n\tpublic Node root;\n\tpublic int nelms;\n\t\n\tpublic tre(){\n\t\troot = null;\n\t\tnelms = 0;\n\t}\n\t\n\tpublic void display(){\n\t\tinorder(root);\n\t}\n\t\n\tpublic void inorder(Node c){\n\t\tif(c != null){\n\t\t\tinorder(c.left);\n\t\t\tSystem.out.println(c.data);\n\t\t\tinorder(c.right);\n\t\t}\n\t}\n\t\n\tpublic void insertelement(int val){\n\t\tNode newnode = new Node(val);\n\t\tNode cur = root;\n\t\tNode parent = null;\n\t\tif(cur == null){\n\t\t\troot = newnode;\n\t\t}\n\t\twhile(cur != null){\n\t\t\tparent = cur;\n\t\t\tif(newnode.data < cur.data){\n\t\t\t\tcur = cur.left;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcur = cur.right;\n\t\t\t}\n\t\t}\n\t\tif(parent == null){\n\t\t\troot = newnode;\n\t\t}\n\t\telse if(newnode.data < parent.data){\n\t\t\tparent.left = newnode;\n\t\t}\n\t\telse{\n\t\t\tparent.right = newnode;\n\t\t}\n\t\tnelms++;\n\t}\n\t\n\tpublic int successor(Node x){\n\t\tNode cur = root;\n\t\tNode parent = cur;\n\t\twhile(cur.data != x.data){\n\t\t\tparent = cur;\n\t\t\tif(x.data < cur.data){\n\t\t\t\tcur = cur.left;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcur = cur.right;\n\t\t\t}\n\t\t}\n\t\tif(cur.right != null ){\n\t\t\tNode n = cur.right;\n\t\t\twhile(n.left != null && n.data > x.data){\n\t\t\t\tn = n.left;\n\t\t\t}\n\t\t\treturn n.data;\n\t\t}\n\t\treturn parent.data;\n\t}\n\t\n\tpublic int deleteNode(int val){\n\t\tNode cur = root;\n\t\tNode parent = null;\n\t\twhile(cur != null ){\n\t\t\tparent = cur;\n\t\t\tif(val < cur.data && val != cur.data){\n\t\t\t\tcur = cur.left;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcur = cur.right;\n\t\t\t}\n\t\t}\n\t\tcur = root;\n\t\tNode suc = null;\n\t\twhile(cur != null && cur.data != val){\n\t\t\tsuc = cur;\n\t\t}\n\t\tsuc.left = null;\n\t\tsuc.right = null;\n\t\treturn val;\n\t}\n\t\n\t\n\tpublic int totalelements(){\n\t\treturn nelms;\n\t}\n\t\n\tpublic static void main(String[] args){\n\t\ttre btr = new tre();\n\t\tbtr.insertelement(15);\n\t\tbtr.insertelement(6);\n\t\tbtr.insertelement(18);\n\t\tbtr.insertelement(3);\n\t\tbtr.insertelement(7);\n\t\tbtr.insertelement(17);\n\t\tbtr.insertelement(20);\n\t\tbtr.insertelement(2);\n\t\tbtr.insertelement(4);\n\t\tbtr.insertelement(13);\n\t\tbtr.insertelement(9);\n\t\t\n\t\tNode x = new Node(9);\n\t\t//System.out.println(btr.totalelements());\n\t\t//btr.display();\n\t\tSystem.out.println(\"Sucessor \" + btr.successor(x));\n\t\tSystem.out.println(\"deleted element is \" + btr.deleteNode(x.data));\n\t\tbtr.display();\n\t}\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2980,"cells":{"blob_id":{"kind":"string","value":"c34da563f0958bcf773e8a532cee4ad75b2574e0"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"37bhushan/Google-Applied-CS-With-Android-Exercises"},"path":{"kind":"string","value":"/Ghost Single Player/ghost_starter/app/src/main/java/com/google/engedu/ghost/TrieNode.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1754,"string":"1,754"},"score":{"kind":"number","value":2.953125,"string":"2.953125"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.google.engedu.ghost;\n\nimport java.util.LinkedList;\n\n\npublic class TrieNode {\n char content;\n boolean isEnd;\n int count;\n LinkedList childList;\n // private HashMap children;\n //private boolean isWord;\n\n public TrieNode(char c) {\n// children = new HashMap<>();\n// isWord = false;\n childList = new LinkedList();\n isEnd = false;\n content = c;\n count = 0;\n }\n public TrieNode subNode(char c)\n {\n// if (childList != null)\n// for (TrieNode eachChild : childList)\n// if (eachChild.content == c)\n// return eachChild;\n return null;\n }\n public void add(String s) {\n// HashMapchild = this.children;\n// for (int i= 0 ; ichild = this.children;\n// for (int i=0 ;i listItem=null;\n ArrayAdapter adapter=null;\n \n int itemselect=0;\n\n @Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.traditional);\n\n \n list = (ListView) findViewById(R.id.traditional_listView1); \n listItem = SmsFilter.gettfilter(getApplicationContext()); \n adapter = new ArrayAdapter(this,\n \t android.R.layout.simple_list_item_single_choice, listItem);\n \n list.setItemsCanFocus(true);\n list.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n list.setAdapter(adapter);\n list.setItemChecked(0, true);\n \n list.setOnItemLongClickListener(new ListView.OnItemLongClickListener() {\n\t\t\tpublic boolean onItemLongClick(AdapterView> arg0, View arg1,\n\t\t\t\t\tfinal int arg2, long arg3) {\n\t\t\t\tif (arg2==0)\n\t\t\t\t\treturn false;\n\t AlertDialog dlg=new AlertDialog.Builder(TraditionalActivity.this) \n\t .setMessage(\"是否删除该条过滤器?\") \n\t .setPositiveButton(\"确定\", \n\t new DialogInterface.OnClickListener() {\t\t \n\t \tpublic void onClick(DialogInterface dialog, int which) { \n\t \t\tSmsFilter.modifytfilter(getApplicationContext(),listItem.get(arg2),\"\");\n\t \t\tlistItem = SmsFilter.gettfilter(getApplicationContext());\n\t adapter = new ArrayAdapter(TraditionalActivity.this,\n\t \t android.R.layout.simple_list_item_single_choice, listItem); \n\t list.setItemsCanFocus(true);\n\t list.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n\t list.setAdapter(adapter);\n\t list.setItemChecked(0, true);\n\t \t} \n\t }).setNegativeButton(\"取消\",null).create(); \n\t dlg.show();\n\t\t\t\treturn false;\n\t\t\t}}\n );\n \n \n list.setOnItemClickListener(new ListView.OnItemClickListener(){\n\n\t\t\tpublic void onItemClick(AdapterView> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\titemselect=arg2;\n \t\t\tEditText edittext= (EditText)findViewById(R.id.traditional_editText1);\n \t \tButton button1 = (Button) findViewById(R.id.traditional_button1);\n \t\t\tif(itemselect==0){\n \t\t\t\tbutton1.setText(\"Add\");\n \t\t\t\tedittext.setText(\"\");\n \t\t\t}else{\n \t\t\t\tbutton1.setText(\"Edit\");\n \t\t\t\tedittext.setText(listItem.get(itemselect));\n \t\t\t}\t\t\t\t\n\t\t\t}\n\n \t\n });\n\n \tButton button1 = (Button) findViewById(R.id.traditional_button1);\n \tbutton1.setOnClickListener(new Button.OnClickListener() {\n \t\tpublic void onClick(View arg0) {\n \t\t\tEditText edittext= (EditText)findViewById(R.id.traditional_editText1);\n \t\t\tif(itemselect==0){\n \t\t\t\tSmsFilter.createtfilter(getApplicationContext(),edittext.getText().toString());\n \t\t\t\tedittext.setText(\"\");\n \t\t\t}else{\n \t\tSmsFilter.modifytfilter(getApplicationContext(),listItem.get(itemselect),edittext.getText().toString());\n \t\t\t}\n \t\tlistItem = SmsFilter.gettfilter(getApplicationContext());\n adapter = new ArrayAdapter(TraditionalActivity.this,\n \t android.R.layout.simple_list_item_single_choice, listItem); \n list.setItemsCanFocus(true);\n list.setChoiceMode(ListView.CHOICE_MODE_SINGLE);\n list.setAdapter(adapter);\n list.setItemChecked(itemselect, true);\n \n \t\t}\n \t});\n \t\n }\n \n} "},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2986,"cells":{"blob_id":{"kind":"string","value":"a95e408ee21cbe7b2b41a72fef04f50a526a444e"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"heartforest/yc-case-report"},"path":{"kind":"string","value":"/src/main/java/com/ycmvp/casereport/entity/ccase/TabCaseUser.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":2073,"string":"2,073"},"score":{"kind":"number","value":1.6015625,"string":"1.601563"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.ycmvp.casereport.entity.ccase;\n\nimport com.fasterxml.jackson.annotation.JsonFormat;\nimport lombok.Data;\n\nimport java.io.Serializable;\n\n@Data\npublic class TabCaseUser implements Serializable {\n\n private static final long serialVersionUID = 1L;\n\n private String id;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate caseDate;\n private String userid;\n @JsonFormat(pattern = \"yyyy-MM-dd HH:mm:ss\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDateTime optTime;\n private String strokeDest;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate strokeDateGo;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate strokeDateBack;\n private String strokeDescription;\n private String bodySign;\n private String bodycase;\n private String doctorSign;\n private String hospital;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate doctorTime;\n private String dectorInfo;\n private String caseExplain;\n private String userCity;\n private String userCommunity;\n private String userBuilding;\n private String userCallCommunity;\n private String touchingSign;\n private String strokeVia;\n private String userMeet;\n private String userPubPlace;\n private String bodyTemperature;\n private String isolationTag;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate isolationDate;\n @JsonFormat(pattern = \"yyyy-MM-dd\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDate unisolationDate;\n private String isolationStatus;\n private String isolationDescription;\n private String workStatus;\n private Integer epidemicCommunityCount;\n private String strandedSign;\n private String examineName;\n @JsonFormat(pattern = \"yyyy-MM-dd HH:mm:ss\", timezone = \"Asia/Shanghai\")\n private java.time.LocalDateTime examineTime;\n private String examineUserid;\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2987,"cells":{"blob_id":{"kind":"string","value":"cc7d6821e6ded993496d9f9037a2699bfa6d6956"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"sufadi/decompile-hw"},"path":{"kind":"string","value":"/decompile/app/HwSystemManager/src/main/java/com/huawei/harassmentinterception/engine/HwEngineCallerManager.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":780,"string":"780"},"score":{"kind":"number","value":2.53125,"string":"2.53125"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.huawei.harassmentinterception.engine;\n\npublic class HwEngineCallerManager {\n private static HwEngineCallerManager sInstance = null;\n private HwEngineCaller mCaller = null;\n\n public static synchronized HwEngineCallerManager getInstance() {\n HwEngineCallerManager hwEngineCallerManager;\n synchronized (HwEngineCallerManager.class) {\n if (sInstance == null) {\n sInstance = new HwEngineCallerManager();\n }\n hwEngineCallerManager = sInstance;\n }\n return hwEngineCallerManager;\n }\n\n public synchronized HwEngineCaller getEngineCaller() {\n return this.mCaller;\n }\n\n public synchronized void setEngineCaller(HwEngineCaller caller) {\n this.mCaller = caller;\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2988,"cells":{"blob_id":{"kind":"string","value":"22eabad34cbe221e96c473c388374c23a61307a4"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"ZYYBOSS/1"},"path":{"kind":"string","value":"/shop/src/main/java/com/java2/web/entity/AddressEntity.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1048,"string":"1,048"},"score":{"kind":"number","value":2.4375,"string":"2.4375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.java2.web.entity;\n\nimport javax.persistence.Entity;\nimport javax.persistence.FetchType;\nimport javax.persistence.GeneratedValue;\nimport javax.persistence.GenerationType;\nimport javax.persistence.Id;\nimport javax.persistence.JoinColumn;\nimport javax.persistence.ManyToOne;\nimport javax.persistence.Table;\n\nimport com.fasterxml.jackson.annotation.JsonIgnore;\n\n@Entity\n@Table(name = \"address\")\npublic class AddressEntity {\n\t@Id\n\t@GeneratedValue(strategy = GenerationType.IDENTITY)\n\tprivate Long id;\n\t\n\tprivate String address;\n\t\n\t@ManyToOne(fetch=FetchType.EAGER)\n\t@JoinColumn(name=\"user_id\")\n\t//忽略某个元素,不加会死循环不停读取list\n\t@JsonIgnore\n\tprivate UserEntity userEntity;\n\n\tpublic Long getId() {\n\t\treturn id;\n\t}\n\n\tpublic void setId(Long id) {\n\t\tthis.id = id;\n\t}\n\n\tpublic String getAddress() {\n\t\treturn address;\n\t}\n\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}\n\n\tpublic UserEntity getUser() {\n\t\treturn userEntity;\n\t}\n\n\tpublic void setUser(UserEntity user) {\n\t\tthis.userEntity = user;\n\t}\n\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2989,"cells":{"blob_id":{"kind":"string","value":"f61ce7a57e17cb7ed8e255e8ecd2e874f5bce022"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"borisemoreno/mutant-hunter"},"path":{"kind":"string","value":"/src/main/java/com/xmen/mutanthunter/repository/DnaVerificationsRepository.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":711,"string":"711"},"score":{"kind":"number","value":2.015625,"string":"2.015625"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.xmen.mutanthunter.repository;\n\nimport com.xmen.mutanthunter.model.StatsDto;\nimport com.xmen.mutanthunter.model.db.DnaVerifications;\nimport org.springframework.data.jpa.repository.Query;\nimport org.springframework.data.repository.CrudRepository;\n\nimport java.util.List;\nimport java.util.Optional;\nimport java.util.UUID;\n\npublic interface DnaVerificationsRepository extends CrudRepository {\n @Query(value = \"FROM DnaVerifications d where d.dna = ?1\")\n Optional findByDna(String dna);\n\n @Query(value = \"select new com.xmen.mutanthunter.model.StatsDto(count(d.id), d.mutant) from DnaVerifications d group by d.mutant\")\n List getStats();\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2990,"cells":{"blob_id":{"kind":"string","value":"f70231ac285caaa27e82019bccaba7aa5bb46500"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"crashtheparty/EnchantmentSolution"},"path":{"kind":"string","value":"/src/org/ctp/enchantmentsolution/events/player/PlayerChangeCoordsEvent.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":992,"string":"992"},"score":{"kind":"number","value":2.359375,"string":"2.359375"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package org.ctp.enchantmentsolution.events.player;\n\nimport org.bukkit.Location;\nimport org.bukkit.entity.Player;\nimport org.bukkit.event.Cancellable;\nimport org.bukkit.event.HandlerList;\nimport org.bukkit.event.player.PlayerEvent;\n\npublic class PlayerChangeCoordsEvent extends PlayerEvent implements Cancellable {\n\n\tprivate static final HandlerList handlers = new HandlerList();\n\n\tpublic static HandlerList getHandlerList() {\n\t\treturn handlers;\n\t}\n\n\t@Override\n\tpublic HandlerList getHandlers() {\n\t\treturn handlers;\n\t}\n\n\tprivate final Location fromLoc, toLoc;\n\tprivate boolean cancelled;\n\n\tpublic PlayerChangeCoordsEvent(Player who, Location fromLoc, Location toLoc) {\n\t\tsuper(who);\n\t\tthis.fromLoc = fromLoc;\n\t\tthis.toLoc = toLoc;\n\t}\n\n\tpublic Location getFrom() {\n\t\treturn fromLoc;\n\t}\n\n\tpublic Location getTo() {\n\t\treturn toLoc;\n\t}\n\n\t@Override\n\tpublic boolean isCancelled() {\n\t\treturn cancelled;\n\t}\n\n\t@Override\n\tpublic void setCancelled(boolean cancelled) {\n\t\tthis.cancelled = cancelled;\n\t}\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2991,"cells":{"blob_id":{"kind":"string","value":"92ca27b7fc5d40a15533c8c7cda385de7f326d3e"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"AlessioMercuriali/QBorrow"},"path":{"kind":"string","value":"/src/main/java/it/quix/academy/qborrow/core/model/QborrowUserContext.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":1746,"string":"1,746"},"score":{"kind":"number","value":2.03125,"string":"2.03125"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package it.quix.academy.qborrow.core.model;\r\n\r\nimport java.util.ArrayList;\r\n\r\nimport it.quix.framework.core.model.Language;\r\nimport it.quix.framework.core.model.Organization;\r\nimport it.quix.framework.core.model.Role;\r\nimport it.quix.framework.core.model.User;\r\nimport it.quix.framework.core.model.UserContext;\r\nimport it.quix.puma.core.PumaFinderException;\r\n\r\n/**\r\n * Inserire all'interno di questa classe le proprieta' e i metodi\r\n * che si vogliono associare all'utente dell'applicazione\r\n */\r\npublic class QborrowUserContext extends UserContext {\r\n\r\n private static final long serialVersionUID = 1L;\r\n\r\n public QborrowUserContext() {\r\n super();\r\n }\r\n\r\n @Override\r\n public Boolean authCodeLogin(String arg0) throws PumaFinderException {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }\r\n\r\n @Override\r\n public String getCodCompany() {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }\r\n\r\n @Override\r\n public Language getLanguageForSysAttribute() {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }\r\n\r\n @Override\r\n public Organization getOrganizationForSysSysAttribute() {\r\n // TODO Auto-generated method stub\r\n return null;\r\n }\r\n\r\n @Override\r\n public void login(String user) throws Exception {\r\n final String userId = user;\r\n User userMode1 = new User() {\r\n\r\n public String getPassword() {\r\n return null;\r\n }\r\n\r\n public String getName() {\r\n return null;\r\n }\r\n\r\n public String getDn() {\r\n return null;\r\n }\r\n };\r\n super.login(userMode1, new ArrayList());\r\n }\r\n\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2992,"cells":{"blob_id":{"kind":"string","value":"3c0101add0450a9356180da8d2bc85b0a533906b"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"Tongqinwei/hhlab_ser2"},"path":{"kind":"string","value":"/src/com/servlet/CreateSessionServlet.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":4125,"string":"4,125"},"score":{"kind":"number","value":2.53125,"string":"2.53125"},"int_score":{"kind":"number","value":3,"string":"3"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.servlet;\n\n\nimport com.Login.Bean.SessionUser;\nimport com.Login.Handler.MyJsonParser;\nimport com.Login.Handler.WechatSessionHandler;\nimport com.Login.Sessions.SessionManager;\nimport com.google.gson.JsonElement;\nimport com.google.gson.JsonObject;\n\nimport javax.servlet.ServletException;\nimport javax.servlet.annotation.WebServlet;\nimport javax.servlet.http.HttpServlet;\nimport javax.servlet.http.HttpServletRequest;\nimport javax.servlet.http.HttpServletResponse;\nimport java.io.*;\n\n/**\n * Created by lee on 2017/6/17.\n *\n * @author: lee\n * create time: 下午1:43\n */\n@WebServlet(name = \"CreateSessionServlet\")\npublic class CreateSessionServlet extends HttpServlet {\n\n public static String getBody(HttpServletRequest request) throws IOException {\n // get the body of the request object to a string\n\n String body = null;\n StringBuilder stringBuilder = new StringBuilder();\n BufferedReader bufferedReader = null;\n\n try {\n InputStream inputStream = request.getInputStream();\n if (inputStream != null) {\n bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n char[] charBuffer = new char[128];\n int bytesRead = -1;\n while ((bytesRead = bufferedReader.read(charBuffer)) > 0) {\n stringBuilder.append(charBuffer, 0, bytesRead);\n }\n } else {\n stringBuilder.append(\"\");\n }\n } catch (IOException ex) {\n throw ex;\n } finally {\n if (bufferedReader != null) {\n try {\n bufferedReader.close();\n } catch (IOException ex) {\n throw ex;\n }\n }\n }\n\n body = stringBuilder.toString();\n return body;\n }\n\n\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n // get the request pay load\n String session_code = getBody(request);\n\n // get response writer\n Writer out = response.getWriter();\n response.setContentType(\"application/json\");\n\n if(!session_code.contentEquals(\"\")){\n // if the code is not send return the error json\n session_code = MyJsonParser.CodeJsonToString(session_code);\n log(\"receive session code from js is \" + session_code);\n\n if(session_code.contentEquals(\"\")){\n// failed to parse\n out.write(MyJsonParser.GetSessionError());\n } else {\n// session code get success\n\n String result = WechatSessionHandler.getSessionKey(session_code);\n log(\"receive from weChat server \" + result);\n JsonObject jsonObject = MyJsonParser.String2Json(result);\n\n JsonElement element = jsonObject.get(\"openid\");\n\n if(element != null){\n // 成功调用到微信的状态,为用户建立一个session 对象 方便进行管理\n log(\"receive session key success! \");\n\n SessionUser user = new SessionUser();\n\n element = jsonObject.get(\"openid\");\n user.setOpenID(element.getAsString());\n\n element = jsonObject.get(\"session_key\");\n user.setSessionKey(element.getAsString());\n\n SessionManager manager = SessionManager.getInstance();\n manager.AddUser(user);\n // 返回成功的json\n out.write(MyJsonParser.GetSessionSuccess(user.getSessionID(),user.getOpenID()));\n\n } else {\n out.write(MyJsonParser.GetSessionError());\n }\n }\n\n } else {\n out.write(MyJsonParser.GetSessionError());\n }\n\n out.flush();\n response.flushBuffer();\n }\n\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n response.sendError(404);\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2993,"cells":{"blob_id":{"kind":"string","value":"262f3d6cf9a076d9e3bc0f90afd3600c23c76fed"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"RaviThejaGoud/hospital"},"path":{"kind":"string","value":"/hms-common/src/main/java/com/hyniva/sms/ws/vo/cashbook/CashBookVO.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":5044,"string":"5,044"},"score":{"kind":"number","value":2.0625,"string":"2.0625"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.hyniva.sms.ws.vo.cashbook;\r\n\r\nimport java.util.Date;\r\n\r\n \r\npublic class CashBookVO {\r\n\t\r\n\tpublic long id;\r\n\tpublic Date transactionDate;\r\n\tpublic long accountId;\r\n\tpublic String accountName;\r\n\tpublic String place;\t\r\n\tpublic String narration;\r\n\tpublic String vocherNumber;\r\n\tpublic String transactionType;\r\n\tpublic double amount;\r\n\t/*This are dummy variables to manipulate trail balance sheet */\r\n\tpublic double crAmount;\r\n\tpublic String crTtransactionType;\r\n\tpublic String transactionDateStr;\r\n\tpublic long clientId;\r\n\tpublic String entryType;\r\n\t/*C - Cash, D - DD , CH - Cheque, BD - Bank Deposit*/\r\n protected String paymentType;\r\n\tprotected String branchName;\r\n protected String chequeNumber;\r\n protected String ddNumber;\r\n protected long bankId;\r\n protected String bookType;\r\n protected String transactionNumber;\r\n protected String accountNumber;\r\n \r\n \r\n\tpublic String getAccountNumber() {\r\n\t\treturn accountNumber;\r\n\t}\r\n\r\n\tpublic void setAccountNumber(String accountNumber) {\r\n\t\tthis.accountNumber = accountNumber;\r\n\t}\r\n\r\n\tpublic String getTransactionNumber() {\r\n\t\treturn transactionNumber;\r\n\t}\r\n\r\n\tpublic void setTransactionNumber(String transactionNumber) {\r\n\t\tthis.transactionNumber = transactionNumber;\r\n\t}\r\n\r\n\tpublic String getBookType() {\r\n\t\treturn bookType;\r\n\t}\r\n\r\n\tpublic void setBookType(String bookType) {\r\n\t\tthis.bookType = bookType;\r\n\t}\r\n \r\n\tpublic String getPaymentType() {\r\n\t\treturn paymentType;\r\n\t}\r\n\tpublic void setPaymentType(String paymentType) {\r\n\t\tthis.paymentType = paymentType;\r\n\t}\r\n\tpublic String getBranchName() {\r\n\t\treturn branchName;\r\n\t}\r\n\tpublic void setBranchName(String branchName) {\r\n\t\tthis.branchName = branchName;\r\n\t}\r\n\tpublic String getChequeNumber() {\r\n\t\treturn chequeNumber;\r\n\t}\r\n\tpublic void setChequeNumber(String chequeNumber) {\r\n\t\tthis.chequeNumber = chequeNumber;\r\n\t}\r\n\tpublic String getDdNumber() {\r\n\t\treturn ddNumber;\r\n\t}\r\n\tpublic void setDdNumber(String ddNumber) {\r\n\t\tthis.ddNumber = ddNumber;\r\n\t}\r\n\tpublic long getBankId() {\r\n\t\treturn bankId;\r\n\t}\r\n\tpublic void setBankId(long bankId) {\r\n\t\tthis.bankId = bankId;\r\n\t}\r\n\tpublic String getEntryType() {\r\n\t\treturn entryType;\r\n\t}\r\n\tpublic void setEntryType(String entryType) {\r\n\t\tthis.entryType = entryType;\r\n\t}\r\n\tpublic double getCrAmount() {\r\n\t\treturn crAmount;\r\n\t}\r\n\tpublic void setCrAmount(double crAmount) {\r\n\t\tthis.crAmount = crAmount;\r\n\t}\r\n\tpublic String getCrTtransactionType() {\r\n\t\treturn crTtransactionType;\r\n\t}\r\n\tpublic void setCrTtransactionType(String crTtransactionType) {\r\n\t\tthis.crTtransactionType = crTtransactionType;\r\n\t}\r\n\t/**\r\n\t * @return the id\r\n\t */\r\n\tpublic long getId() {\r\n\t\treturn id;\r\n\t}\r\n\t/**\r\n\t * @param id the id to set\r\n\t */\r\n\tpublic void setId(long id) {\r\n\t\tthis.id = id;\r\n\t}\r\n\t/**\r\n\t * @return the transactionDate\r\n\t */\r\n\tpublic Date getTransactionDate() {\r\n\t\treturn transactionDate;\r\n\t}\r\n\t/**\r\n\t * @param transactionDate the transactionDate to set\r\n\t */\r\n\tpublic void setTransactionDate(Date transactionDate) {\r\n\t\tthis.transactionDate = transactionDate;\r\n\t}\r\n\t/**\r\n\t * @return the accountNumber\r\n\t */\r\n\tpublic long getAccountId() {\r\n\t\treturn accountId;\r\n\t}\r\n\t/**\r\n\t * @param accountNumber the accountNumber to set\r\n\t */\r\n\tpublic void setAccountId(long accountId) {\r\n\t\tthis.accountId = accountId;\r\n\t}\r\n\t/**\r\n\t * @return the accountName\r\n\t */\r\n\tpublic String getAccountName() {\r\n\t\treturn accountName;\r\n\t}\r\n\t/**\r\n\t * @param accountName the accountName to set\r\n\t */\r\n\tpublic void setAccountName(String accountName) {\r\n\t\tthis.accountName = accountName;\r\n\t}\r\n\t/**\r\n\t * @return the place\r\n\t */\r\n\tpublic String getPlace() {\r\n\t\treturn place;\r\n\t}\r\n\t/**\r\n\t * @param place the place to set\r\n\t */\r\n\tpublic void setPlace(String place) {\r\n\t\tthis.place = place;\r\n\t}\r\n\t/**\r\n\t * @return the narration\r\n\t */\r\n\tpublic String getNarration() {\r\n\t\treturn narration;\r\n\t}\r\n\t/**\r\n\t * @param narration the narration to set\r\n\t */\r\n\tpublic void setNarration(String narration) {\r\n\t\tthis.narration = narration;\r\n\t}\r\n\t/**\r\n\t * @return the vocherNumber\r\n\t */\r\n\tpublic String getVocherNumber() {\r\n\t\treturn vocherNumber;\r\n\t}\r\n\t/**\r\n\t * @param vocherNumber the vocherNumber to set\r\n\t */\r\n\tpublic void setVocherNumber(String vocherNumber) {\r\n\t\tthis.vocherNumber = vocherNumber;\r\n\t}\r\n\t/**\r\n\t * @return the transactionType\r\n\t */\r\n\tpublic String getTransactionType() {\r\n\t\treturn transactionType;\r\n\t}\r\n\t/**\r\n\t * @param transactionType the transactionType to set\r\n\t */\r\n\tpublic void setTransactionType(String transactionType) {\r\n\t\tthis.transactionType = transactionType;\r\n\t}\r\n\t/**\r\n\t * @return the amount\r\n\t */\r\n\tpublic double getAmount() {\r\n\t\treturn amount;\r\n\t}\r\n\t/**\r\n\t * @param amount the amount to set\r\n\t */\r\n\tpublic void setAmount(double amount) {\r\n\t\tthis.amount = amount;\r\n\t}\r\n\tpublic String getTransactionDateStr() {\r\n\t\treturn transactionDateStr;\r\n\t}\r\n\tpublic void setTransactionDateStr(String transactionDateStr) {\r\n\t\tthis.transactionDateStr = transactionDateStr;\r\n\t}\r\n\tpublic long getClientId() {\r\n\t\treturn clientId;\r\n\t}\r\n\tpublic void setClientId(long clientId) {\r\n\t\tthis.clientId = clientId;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n}\r\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2994,"cells":{"blob_id":{"kind":"string","value":"59398b63fca8b3539348ae17e36bcdba7c46c0a5"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"damnedGod/Indonesia_Que"},"path":{"kind":"string","value":"/app/src/main/java/com/example/android/indonesiaqu/WelcomeScreen.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":989,"string":"989"},"score":{"kind":"number","value":1.96875,"string":"1.96875"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.example.android.indonesiaqu;\n\nimport android.content.Intent;\nimport android.content.pm.ActivityInfo;\nimport android.support.v7.app.AppCompatActivity;\nimport android.os.Bundle;\nimport android.view.View;\nimport android.widget.Button;\n\npublic class WelcomeScreen extends AppCompatActivity {\n\n public Button startButton;\n\n public void init(){\n\n startButton=(Button)findViewById(R.id.start_button);\n startButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Intent tombol = new Intent(WelcomeScreen.this,MainActivity.class);\n\n startActivity(tombol);\n\n }\n });\n\n }\n\n\n\n\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_welcome_screen);\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n init();\n }\n}\n"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2995,"cells":{"blob_id":{"kind":"string","value":"5bbc4efeb38b44b45db9b25d57478c9a851e01b7"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"drmmx/MVPAndroidLang"},"path":{"kind":"string","value":"/app/src/main/java/com/example/dev3rema/mvpandroidlang/data/source/local/dao/LangDao.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":754,"string":"754"},"score":{"kind":"number","value":2.0625,"string":"2.0625"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package com.example.dev3rema.mvpandroidlang.data.source.local.dao;\n\nimport android.arch.persistence.room.Dao;\nimport android.arch.persistence.room.Delete;\nimport android.arch.persistence.room.Insert;\nimport android.arch.persistence.room.OnConflictStrategy;\nimport android.arch.persistence.room.Query;\n\nimport com.example.dev3rema.mvpandroidlang.data.entity.Lang;\n\nimport java.util.List;\n\n@Dao\npublic interface LangDao {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n void saveLang(Lang lang);\n\n @Insert\n void insertAll(Lang... langs);\n\n @Delete\n void deleteLang(Lang lang);\n\n @Query(\"SELECT * FROM android_lang\")\n List getLangs();\n\n @Query(\"SELECT * FROM android_lang WHERE id = :id\")\n Lang getLangById(int id);\n}"},"download_success":{"kind":"bool","value":true,"string":"true"}}},{"rowIdx":2996,"cells":{"blob_id":{"kind":"string","value":"de7ba2c8db5d7c0f53b60242f402b3f824230e81"},"language":{"kind":"string","value":"Java"},"repo_name":{"kind":"string","value":"cckmit/event-manager"},"path":{"kind":"string","value":"/src/main/java/ob1/eventmanager/service/CategoryService.java"},"src_encoding":{"kind":"string","value":"UTF-8"},"length_bytes":{"kind":"number","value":325,"string":"325"},"score":{"kind":"number","value":1.8046875,"string":"1.804688"},"int_score":{"kind":"number","value":2,"string":"2"},"detected_licenses":{"kind":"list like","value":[],"string":"[]"},"license_type":{"kind":"string","value":"no_license"},"text":{"kind":"string","value":"package ob1.eventmanager.service;\n\nimport ob1.eventmanager.entity.CategoryEntity;\n\nimport java.util.List;\nimport java.util.Optional;\n\npublic interface CategoryService {\n\n List getCategories();\n\n Optional getById(long id);\n\n Optional