blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
390
content_id
stringlengths
40
40
detected_licenses
listlengths
0
35
license_type
stringclasses
2 values
repo_name
stringlengths
6
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
539 values
visit_date
timestamp[us]date
2016-08-02 21:09:20
2023-09-06 10:10:07
revision_date
timestamp[us]date
1990-01-30 01:55:47
2023-09-05 21:45:37
committer_date
timestamp[us]date
2003-07-12 18:48:29
2023-09-05 21:45:37
github_id
int64
7.28k
684M
star_events_count
int64
0
77.7k
fork_events_count
int64
0
48k
gha_license_id
stringclasses
13 values
gha_event_created_at
timestamp[us]date
2012-06-11 04:05:37
2023-09-14 21:59:18
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-28 02:39:21
gha_language
stringclasses
62 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
128
12.8k
extension
stringclasses
11 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
79
6b4cdab9eb85e5a97831addcab755a90ce7bf547
0270d7637fc2e0dc93bc4fc5395d523445329935
/PupsOil-001/src/java/com/pups/oil/dto/CityDTO.java
c53b4e50dd5f63b5ee8304fd99bda69014b00705
[]
no_license
malengatiger/pupsOilBackEnd-Repo
aac6bf0af1829a938170fdbbeca5312194ee98a3
1db2f0cec3e892a760c0e625ecc102075665792d
refs/heads/master
2021-01-23T13:47:36.299499
2014-10-07T15:11:04
2014-10-07T15:11:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,205
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.pups.oil.dto; import com.pups.oil.data.City; import java.io.Serializable; import java.util.List; /** * * @author aubreyM */ public class CityDTO implements Serializable { private static final long serialVersionUID = 1L; private Integer cityID; private String cityName; private Double latitude; private Double longitude; private List<RetailerCompanyDTO> retailerCompanyList; private List<TransporterCompanyDTO> transporterCompanyList; private List<RetailerDTO> retailerList; private ProvinceDTO province; private List<DepotDTO> depotList; private List<DepotCompanyDTO> depotCompanyList; private List<DealerCompanyDTO> dealerCompanyList; public CityDTO(City a) { cityID = a.getCityID(); cityName = a.getCityName(); latitude = a.getLatitude(); longitude = a.getLongitude(); } public CityDTO() { } public CityDTO(Integer cityID) { this.cityID = cityID; } public CityDTO(Integer cityID, String cityName) { this.cityID = cityID; this.cityName = cityName; } public Integer getCityID() { return cityID; } public void setCityID(Integer cityID) { this.cityID = cityID; } public String getCityName() { return cityName; } public void setCityName(String cityName) { this.cityName = cityName; } public Double getLatitude() { return latitude; } public void setLatitude(Double latitude) { this.latitude = latitude; } public Double getLongitude() { return longitude; } public void setLongitude(Double longitude) { this.longitude = longitude; } public List<RetailerCompanyDTO> getRetailerCompanyList() { return retailerCompanyList; } public void setRetailerCompanyList(List<RetailerCompanyDTO> retailerCompanyList) { this.retailerCompanyList = retailerCompanyList; } public List<TransporterCompanyDTO> getTransporterCompanyList() { return transporterCompanyList; } public void setTransporterCompanyList(List<TransporterCompanyDTO> transporterCompanyList) { this.transporterCompanyList = transporterCompanyList; } public List<RetailerDTO> getRetailerList() { return retailerList; } public void setRetailerList(List<RetailerDTO> retailerList) { this.retailerList = retailerList; } public ProvinceDTO getProvince() { return province; } public void setProvince(ProvinceDTO province) { this.province = province; } public List<DepotDTO> getDepotList() { return depotList; } public void setDepotList(List<DepotDTO> depotList) { this.depotList = depotList; } public List<DepotCompanyDTO> getDepotCompanyList() { return depotCompanyList; } public void setDepotCompanyList(List<DepotCompanyDTO> depotCompanyList) { this.depotCompanyList = depotCompanyList; } public List<DealerCompanyDTO> getDealerCompanyList() { return dealerCompanyList; } public void setDealerCompanyList(List<DealerCompanyDTO> dealerCompanyList) { this.dealerCompanyList = dealerCompanyList; } @Override public int hashCode() { int hash = 0; hash += (cityID != null ? cityID.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof CityDTO)) { return false; } CityDTO other = (CityDTO) object; if ((this.cityID == null && other.cityID != null) || (this.cityID != null && !this.cityID.equals(other.cityID))) { return false; } return true; } @Override public String toString() { return "com.pupsoil.data.City[ cityID=" + cityID + " ]"; } }
[ "malengatiger@gmail.com" ]
malengatiger@gmail.com
9e446faf02e05f4e36607838de16a0805a1e71df
37646551080d7538481f1e1d1a88af152b8127d8
/main/src/com/company/Utils.java
f3f2e08bca7bc41d18abf1a5532dc001be4da8c5
[]
no_license
gerardfp/problems
08430b95b845f334bff690b7ca804816bf96e9fd
922cd930a768b7dcde5dfb670afe2da8b21a00ea
refs/heads/master
2022-01-31T14:00:36.999382
2019-07-18T15:04:12
2019-07-18T15:04:12
197,878,503
0
0
null
null
null
null
UTF-8
Java
false
false
2,968
java
package com.company; public class Utils { public static void printMatrix(int[][] m){ for (int i = 0; i < m.length; i++) { for (int j = 0; j < m[i].length; j++) { if(m[i][j] == Integer.MIN_VALUE){ System.out.printf(" -"); }else if(m[i][j] == Integer.MAX_VALUE){ System.out.printf(" +"); }else { System.out.printf("%3d", m[i][j]); } } System.out.println(); } System.out.println("----"); } public static void printMatrix(double[][] m){ for (int i = 0; i < m.length; i++) { for (int j = 0; j < m[i].length; j++) { if(m[i][j] == Double.NEGATIVE_INFINITY){ System.out.printf(" -"); }else if(m[i][j] == Double.POSITIVE_INFINITY){ System.out.printf(" +"); }else { System.out.printf("%6.2f", m[i][j]); } } System.out.println(); } System.out.println("----"); } public static void printMatrix(boolean[][] m){ for (int i = 0; i < m.length; i++) { for (int j = 0; j < m[i].length; j++) { System.out.printf(m[i][j] ? "W " : "· "); } System.out.println(); } System.out.println("----"); } public static void printMatrix(char[][] m){ for (int i = 0; i < m.length; i++) { for (int j = 0; j < m[i].length; j++) { System.out.printf(m[i][j] + " "); } System.out.println(); } System.out.println("----"); } public static void printArray(int[] a){ for (int i = 0; i < a.length; i++) { if(a[i] == Integer.MIN_VALUE){ System.out.printf(" -"); }else if(a[i] == Integer.MAX_VALUE){ System.out.printf(" +"); }else { System.out.printf("%" + (maxDigits(a)+1) + "d", a[i]); } } System.out.println(); } public static void printArray(double[] a){ for (int i = 0; i < a.length; i++) { if(a[i] == Double.NEGATIVE_INFINITY){ System.out.print(" -"); }else if(a[i] == Double.POSITIVE_INFINITY){ System.out.print(" +"); }else { System.out.printf("%6.2f", a[i]); } } System.out.println(); System.out.println("----"); } public static int maxDigits(int[] a){ int max = Integer.MIN_VALUE; int min = Integer.MAX_VALUE; for (int i = 0; i < a.length; i++) { max = Math.max(max, a[i]); min = Math.min(min, a[i]); } return Math.max(String.valueOf(max).length(), String.valueOf(min).length()); } }
[ "gerardfp@gmail.com" ]
gerardfp@gmail.com
8687375072dcd2e36de7602b98a07f7cb613e335
908cca9d9c810b7fe62085fcb8a1c6062a1954ea
/03_LibreriasExternas/01_ButterKnife/app/src/androidTest/java/com/miguelcr/a01_butterknife/ExampleInstrumentedTest.java
988f93c4713443ec55d0d63b6d7372cf27dd3f0b
[]
no_license
miguelcamposdev/pmdm2016
933428b49795d719390831463389c8129a847da1
e1cfda179a0b06e8455ad5a55b43fc9eb2a69bf2
refs/heads/master
2021-06-15T08:36:46.031379
2017-03-27T11:02:52
2017-03-27T11:02:52
null
0
0
null
null
null
null
UTF-8
Java
false
false
760
java
package com.miguelcr.a01_butterknife; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumentation test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.miguelcr.a01_butterknife", appContext.getPackageName()); } }
[ "camposmiguel@gmail.com" ]
camposmiguel@gmail.com
79b7be6be7e4d14cfb476dc0ba277eb1e1fb9b87
47a1618c7f1e8e197d35746639e4480c6e37492e
/src/oracle/retail/stores/pos/ado/tender/TenderFactory.java
8ab395a1d3ada09de66cc272b06c1e20c570feb4
[]
no_license
dharmendrams84/POSBaseCode
41f39039df6a882110adb26f1225218d5dcd8730
c588c0aa2a2144aa99fa2bbe1bca867e008f47ee
refs/heads/master
2020-12-31T07:42:29.748967
2017-03-29T08:12:34
2017-03-29T08:12:34
86,555,051
0
1
null
null
null
null
UTF-8
Java
false
false
7,039
java
/* =========================================================================== * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. * =========================================================================== * $Header: rgbustores/applications/pos/src/oracle/retail/stores/pos/ado/tender/TenderFactory.java /rgbustores_13.4x_generic_branch/2 2011/10/13 15:15:28 sgu Exp $ * =========================================================================== * NOTES * <other useful comments, qualifications, etc.> * * MODIFIED (MM/DD/YY) * sgu 10/12/11 - create house account tender correctly from legacy * tender line item * cgreene 05/27/10 - convert to oracle packaging * cgreene 05/26/10 - convert to oracle packaging * abondala 01/03/10 - update header date * * =========================================================================== * $Log: * 3 360Commerce 1.2 3/31/2005 4:30:23 PM Robert Pearse * 2 360Commerce 1.1 3/10/2005 10:25:57 AM Robert Pearse * 1 360Commerce 1.0 2/11/2005 12:14:51 PM Robert Pearse * * Revision 1.3.2.1 2004/11/15 22:27:36 bwf * @scr 7671 Create tender from rdo instead of class. This is necessary because ADO's are not 1:1 with RDOs. * * Revision 1.3 2004/05/27 13:57:26 epd * @scr 5290 made private method protected * * Revision 1.2 2004/02/12 16:47:55 mcs * Forcing head revision * * Revision 1.1.1.1 2004/02/11 01:04:11 cschellenger * updating to pvcs 360store-current * * * * Rev 1.4 Feb 05 2004 13:46:32 rhafernik * log4j changes * * Rev 1.3 Dec 16 2003 11:17:06 bwf * Create new createTenderMethod to accomidate code review. * * Rev 1.2 Dec 03 2003 17:13:48 bwf * Add mall certificate. * Resolution for 3538: Mall Certificate Tender * * Rev 1.1 Nov 20 2003 16:57:16 epd * updated to use new ADO Factory Complex * * Rev 1.0 Nov 04 2003 11:13:16 epd * Initial revision. * * Rev 1.5 Oct 29 2003 16:00:26 epd * removed dead code * * Rev 1.4 Oct 28 2003 16:10:24 crain * Added TenderCouponADO * Resolution for 3421: Tender redesign * * Rev 1.3 Oct 27 2003 18:23:34 epd * Added code for Credit tender * * Rev 1.2 Oct 25 2003 16:07:02 blj * added Money Order Tender * * Rev 1.0 Oct 17 2003 12:33:48 epd * Initial revision. * * =========================================================================== */ package oracle.retail.stores.pos.ado.tender; import java.util.HashMap; import oracle.retail.stores.pos.ado.factory.TenderFactoryIfc; import oracle.retail.stores.domain.tender.TenderLineItemIfc; ; /** * Utility class for Tenders */ public class TenderFactory implements TenderFactoryIfc { /** * Attempts to create a tender based on the attributes contained in the HashMap * @param tenderAttributes HashMap containing attributes needed to create a tender * @return A TenderADOIfc instance * @throws TenderException Thrown when it's not possible to create a tender * due to invalid attributes. */ public TenderADOIfc createTender(HashMap tenderAttributes) throws TenderException { assert(tenderAttributes.get(TenderConstants.TENDER_TYPE) != null) : "Must provide tender type"; TenderTypeEnum tenderType = (TenderTypeEnum)tenderAttributes.get(TenderConstants.TENDER_TYPE); TenderADOIfc tender = getTenderADO(tenderType); ((AbstractTenderADO)tender).setTenderAttributes(tenderAttributes); return tender; } //---------------------------------------------------------------------- /** Attempts to create an ADO tender given a corresponding RDO. @param rdoObject An RDO tender @return A TenderADOIfc instance @see oracle.retail.stores.pos.ado.factory.TenderFactoryIfc#createTender(oracle.retail.stores.domain.tender.TenderLineItemIfc) **/ //---------------------------------------------------------------------- public TenderADOIfc createTender(TenderLineItemIfc rdoObject) { TenderTypeEnum tenderType = TenderTypeEnum.makeTenderTypeEnumFromRDO(rdoObject); // If using this method, one should _always_ have a tender type. assert(tenderType != null); return createTender(tenderType); } //---------------------------------------------------------------------- /** Attempts to create an ADO tender given a corresponding TenderTypeEnum. @param tte TenderTypeEnum @return TenderADOIfc **/ //---------------------------------------------------------------------- public TenderADOIfc createTender(TenderTypeEnum tenderType) { TenderADOIfc tender = getTenderADO(tenderType); return tender; } /** * Instantiate the proper concrete tender type * @param tenderType The enumerated ADO tender type * @return a new tenderADO instance */ protected TenderADOIfc getTenderADO(TenderTypeEnum tenderType) { TenderADOIfc tender = null; if (tenderType == TenderTypeEnum.CASH) { tender = new TenderCashADO(); } else if (tenderType == TenderTypeEnum.CHECK) { tender = new TenderCheckADO(); } else if (tenderType == TenderTypeEnum.COUPON) { tender = new TenderCouponADO(); } else if (tenderType == TenderTypeEnum.CREDIT) { tender = new TenderCreditADO(); } else if (tenderType == TenderTypeEnum.DEBIT) { tender = new TenderDebitADO(); } else if (tenderType == TenderTypeEnum.GIFT_CARD) { tender = new TenderGiftCardADO(); } else if (tenderType == TenderTypeEnum.GIFT_CERT) { tender = new TenderGiftCertificateADO(); } else if (tenderType == TenderTypeEnum.MAIL_CHECK) { tender = new TenderMailCheckADO(); } else if (tenderType == TenderTypeEnum.PURCHASE_ORDER) { tender = new TenderPurchaseOrderADO(); } else if (tenderType == TenderTypeEnum.STORE_CREDIT) { tender = new TenderStoreCreditADO(); } else if (tenderType == TenderTypeEnum.TRAVELERS_CHECK) { tender = new TenderTravelersCheckADO(); } else if (tenderType == TenderTypeEnum.MONEY_ORDER) { tender = new TenderMoneyOrderADO(); } else if (tenderType == TenderTypeEnum.COUPON) { tender = new TenderCouponADO(); } else if (tenderType == TenderTypeEnum.MALL_CERT) { tender = new TenderMallCertificateADO(); } else if (tenderType == TenderTypeEnum.HOUSE_ACCOUNT) { tender = new TenderCreditADO(); } return tender; } }
[ "Ignitiv021@Ignitiv021-PC" ]
Ignitiv021@Ignitiv021-PC
0941273e0dee5742e07e5a1c2a35f01d7e0c0f55
819b29d01434ca930f99e8818293cc1f9aa58e18
/src/codebook/graph/LowestCommonAncestorEuler.java
660be3916f96bab04992c671a40903504dfac3f3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ANUJ581/competitive-programming-1
9bd5de60163d9a46680043d480455c8373fe26a7
d8ca9efe9762d9953bcacbc1ca1fe0da5cbe6ac4
refs/heads/master
2020-08-06T18:43:09.688000
2019-10-06T04:54:47
2019-10-06T04:54:47
213,110,718
0
0
NOASSERTION
2019-10-06T04:54:18
2019-10-06T04:54:18
null
UTF-8
Java
false
false
3,112
java
/* * An algorithm to find the lowest common ancestor (LCA) of two nodes in a tree based on the Eulerian path of a tree. * * Time complexity: * - Preprocessing: O(V + E) * - Query: O(log V) */ package codebook.graph; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.ArrayList; import java.util.StringTokenizer; public class LowestCommonAncestorEuler { static BufferedReader br; static PrintWriter out; static StringTokenizer st; static int[] toId, toLabel, first; static ArrayList<ArrayList<Integer>> adj = new ArrayList<ArrayList<Integer>>(); static int n, q, cnt, sz, num; static int[] order; public static void main(String[] args) throws IOException { br = new BufferedReader(new InputStreamReader(System.in)); out = new PrintWriter(new OutputStreamWriter(System.out)); //br = new BufferedReader(new FileReader("in.txt")); //out = new PrintWriter(new FileWriter("out.txt")); // number of nodes n = readInt(); // number of queries q = readInt(); sz = 2 * n - 1; toId = new int[n]; toLabel = new int[n]; order = new int[2 * sz]; first = new int[n]; for (int i = 0; i < n; i++) { adj.add(new ArrayList<Integer>()); first[i] = -1; } for (int i = 0; i < n - 1; i++) { int a = readInt() - 1; int b = readInt() - 1; adj.get(a).add(b); adj.get(b).add(a); } dfs(0, -1); for (int i = 2 * sz - 2; i > 1; i -= 2) order[i >> 1] = Math.min(order[i], order[i ^ 1]); for (int i = 0; i < q; i++) { out.println(lca(readInt() - 1, readInt() - 1) + 1); } out.close(); } private static int lca(int i, int j) { int a = toId[i]; int b = toId[j]; int lo = Math.min(first[a], first[b]); int hi = Math.max(first[a], first[b]); int res = 1 << 30; for (lo += sz, hi += sz; lo <= hi; lo = (lo + 1) >> 1, hi = (hi - 1) >> 1) res = Math.min(res, Math.min(order[lo], order[hi])); return toLabel[res]; } private static void dfs(int i, int prev) { int curr = num++; toId[i] = curr; toLabel[curr] = i; for (int j : adj.get(i)) { if (j != prev) { order[sz + cnt++] = curr; if (first[curr] == -1) first[curr] = cnt - 1; dfs(j, i); } } order[sz + cnt++] = curr; if (first[curr] == -1) first[curr] = cnt - 1; } static String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine().trim()); return st.nextToken(); } static long readLong() throws IOException { return Long.parseLong(next()); } static int readInt() throws IOException { return Integer.parseInt(next()); } static double readDouble() throws IOException { return Double.parseDouble(next()); } static char readCharacter() throws IOException { return next().charAt(0); } static String readLine() throws IOException { return br.readLine().trim(); } }
[ "jeffrey.xiao1998@gmail.com" ]
jeffrey.xiao1998@gmail.com
64227292837c3f1eccbb669821953bad316804f6
3e2f2a02e4f2f04c568b34cfe4190377497ab9e9
/features/kms-keystore-api/src/main/java/com/intel/kms/api/KeyAttributes.java
dd7262469b61cb9aece92e3332bd8296adc859b6
[]
no_license
opencit/opencit-kms
d25cc16edcf31a81ab18d735bfade783619f17da
2aa58aef2edd3851dabdf98395473fcd07fc4fee
refs/heads/master
2021-01-21T11:15:31.299436
2018-10-17T17:36:42
2018-10-17T17:36:42
91,732,010
0
2
null
null
null
null
UTF-8
Java
false
false
5,097
java
/* * Copyright (C) 2014 Intel Corporation * All rights reserved. */ package com.intel.kms.api; import com.intel.dcsg.cpg.io.Copyable; import com.intel.mtwilson.util.crypto.key2.CipherKeyAttributes; import com.intel.mtwilson.util.crypto.key2.CipherKey; import java.net.MalformedURLException; import java.net.URL; /** * * @author jbuhacoff */ public class KeyAttributes extends CipherKeyAttributes implements Copyable { private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(KeyAttributes.class); private String username; private String transferPolicy; private URL transferLink; /** * Optional user-provided description of the key. */ private String description; /** * Optional user-provided role name indicates the use of the key. * For example: * data encryption, key encryption, signatures, key derivation */ private String role; /** * Digest algorithm used in conjunction with this key. Optional. */ private String digestAlgorithm; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } /** * URI of a transfer policy to apply to this key. * The KMS requires a transfer policy for every key * but may support a default policy for new key * requests which omit this attribute and/or a global * (fixed) policy for all key requests (where * specifying the attribute would be an error because * it would be ignored). The policy itself is a * separate document that describes who may access * the key under what conditions (trusted, authenticated, * etc) * * Example: * urn:intel:trustedcomputing:keytransferpolicy:trusted * might indicate that a built-in policy will enforce that * the key is only released to trusted clients, and * leave the definition of trusted up to the trust * attestation server. * * Example: * http://fileserver/path/to/policy.xml * might indicate that the fileserver has a file policy.xml * which is signed by this keyserver and contains the * complete key transfer policy including what is a trusted * client, what is the attestation server trusted certificate, * etc. * */ public String getTransferPolicy() { return transferPolicy; } public void setTransferPolicy(String transferPolicy) { this.transferPolicy = transferPolicy; } public URL getTransferLink() { return transferLink; } public void setTransferLink(URL transferLink) { this.transferLink = transferLink; } public String getRole() { return role; } public void setRole(String role) { this.role = role; } public String getDigestAlgorithm() { return digestAlgorithm; } public void setDigestAlgorithm(String digestAlgorithm) { this.digestAlgorithm = digestAlgorithm; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } @Override public KeyAttributes copy() { KeyAttributes newInstance = new KeyAttributes(); newInstance.copyFrom(this); return newInstance; } public void copyFrom(KeyAttributes source) { super.copyFrom(source); log.debug("Copying algorithm {} from source", source.getAlgorithm()); this.setAlgorithm(source.getAlgorithm()); this.setMode(source.getMode()); this.setKeyLength(source.getKeyLength()); this.setPaddingMode(source.getPaddingMode()); this.digestAlgorithm = source.digestAlgorithm; this.username = source.username; this.description = source.description; this.role = source.role; this.transferPolicy = source.transferPolicy; this.transferLink = source.transferLink; } public void copyFrom(CipherKey source) { this.setAlgorithm(source.getAlgorithm()); this.setMode(source.getMode()); this.setKeyLength(source.getKeyLength()); this.setPaddingMode(source.getPaddingMode()); this.setKeyId(source.getKeyId()); if( source.get("transferPolicy") != null ) { log.debug("copyFrom transferPolicy {}", source.get("transferPolicy")); this.setTransferPolicy((String)source.get("transferPolicy")); } if( source.get("transferLink") != null ) { log.debug("copyFrom transferLink {}", source.get("transferLink")); try { this.setTransferLink(new URL((String)source.get("transferLink"))); } catch(MalformedURLException e) { log.error("Cannot set transfer policy for key", e); } } // this.name = null; // this.digestAlgorithm = null; // this.role = null; // this.transferPolicy = null; } }
[ "jonathan.buhacoff@intel.com" ]
jonathan.buhacoff@intel.com
52dfbe341a774718d49ea3f42ae290e431ef0620
4f14fd14ebd0f7688c67aff63a1feb618d34b4bc
/src/main/java/br/mp/mpf/ssin/migri/web/rest/PessoaResource.java
8ffc7c00106a68f33632b231c8098489c617af4d
[]
no_license
MPF-SSIN/migri
f8534e10d9d64616d8ab218ed2752eb2eb44da1d
c2682b862ab3ac78090fd289a9fdb7a326e05691
refs/heads/main
2023-03-15T00:15:48.019157
2021-03-04T01:20:58
2021-03-04T01:20:58
344,299,952
0
0
null
2021-03-04T01:20:58
2021-03-04T00:12:59
Java
UTF-8
Java
false
false
4,682
java
package br.mp.mpf.ssin.migri.web.rest; import br.mp.mpf.ssin.migri.domain.Pessoa; import br.mp.mpf.ssin.migri.service.PessoaService; import br.mp.mpf.ssin.migri.web.rest.errors.BadRequestAlertException; import io.github.jhipster.web.util.HeaderUtil; import io.github.jhipster.web.util.ResponseUtil; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import java.net.URI; import java.net.URISyntaxException; import java.util.List; import java.util.Optional; /** * REST controller for managing {@link br.mp.mpf.ssin.migri.domain.Pessoa}. */ @RestController @RequestMapping("/api") public class PessoaResource { private final Logger log = LoggerFactory.getLogger(PessoaResource.class); private static final String ENTITY_NAME = "pessoa"; @Value("${jhipster.clientApp.name}") private String applicationName; private final PessoaService pessoaService; public PessoaResource(PessoaService pessoaService) { this.pessoaService = pessoaService; } /** * {@code POST /pessoas} : Create a new pessoa. * * @param pessoa the pessoa to create. * @return the {@link ResponseEntity} with status {@code 201 (Created)} and with body the new pessoa, or with status {@code 400 (Bad Request)} if the pessoa has already an ID. * @throws URISyntaxException if the Location URI syntax is incorrect. */ @PostMapping("/pessoas") public ResponseEntity<Pessoa> createPessoa(@RequestBody Pessoa pessoa) throws URISyntaxException { log.debug("REST request to save Pessoa : {}", pessoa); if (pessoa.getId() != null) { throw new BadRequestAlertException("A new pessoa cannot already have an ID", ENTITY_NAME, "idexists"); } Pessoa result = pessoaService.save(pessoa); return ResponseEntity.created(new URI("/api/pessoas/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert(applicationName, true, ENTITY_NAME, result.getId().toString())) .body(result); } /** * {@code PUT /pessoas} : Updates an existing pessoa. * * @param pessoa the pessoa to update. * @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the updated pessoa, * or with status {@code 400 (Bad Request)} if the pessoa is not valid, * or with status {@code 500 (Internal Server Error)} if the pessoa couldn't be updated. * @throws URISyntaxException if the Location URI syntax is incorrect. */ @PutMapping("/pessoas") public ResponseEntity<Pessoa> updatePessoa(@RequestBody Pessoa pessoa) throws URISyntaxException { log.debug("REST request to update Pessoa : {}", pessoa); if (pessoa.getId() == null) { throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull"); } Pessoa result = pessoaService.save(pessoa); return ResponseEntity.ok() .headers(HeaderUtil.createEntityUpdateAlert(applicationName, true, ENTITY_NAME, pessoa.getId().toString())) .body(result); } /** * {@code GET /pessoas} : get all the pessoas. * * @return the {@link ResponseEntity} with status {@code 200 (OK)} and the list of pessoas in body. */ @GetMapping("/pessoas") public List<Pessoa> getAllPessoas() { log.debug("REST request to get all Pessoas"); return pessoaService.findAll(); } /** * {@code GET /pessoas/:id} : get the "id" pessoa. * * @param id the id of the pessoa to retrieve. * @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the pessoa, or with status {@code 404 (Not Found)}. */ @GetMapping("/pessoas/{id}") public ResponseEntity<Pessoa> getPessoa(@PathVariable Long id) { log.debug("REST request to get Pessoa : {}", id); Optional<Pessoa> pessoa = pessoaService.findOne(id); return ResponseUtil.wrapOrNotFound(pessoa); } /** * {@code DELETE /pessoas/:id} : delete the "id" pessoa. * * @param id the id of the pessoa to delete. * @return the {@link ResponseEntity} with status {@code 204 (NO_CONTENT)}. */ @DeleteMapping("/pessoas/{id}") public ResponseEntity<Void> deletePessoa(@PathVariable Long id) { log.debug("REST request to delete Pessoa : {}", id); pessoaService.delete(id); return ResponseEntity.noContent().headers(HeaderUtil.createEntityDeletionAlert(applicationName, true, ENTITY_NAME, id.toString())).build(); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
35d1b35ae4b9ea3a451286fea177f169be8a99ed
ecf796983785c4e92a1377b3271b5b1cf66a6495
/Projects/NCC_621/app/src/main/java/cn/rongcloud/werewolf/common/factory/dialog/base/CenterDialogFactory.java
8f4f3a8b615321e127c6b28266754a1f230aacb4
[]
no_license
rongcloud-community/RongCloud_Hackathon_2020
1b56de94b470229242d3680ac46d6a00c649c7d6
d4ef61d24cfed142cd90f7d1d8dcd19fb5cbf015
refs/heads/master
2022-07-27T18:24:19.210225
2020-10-16T01:14:41
2020-10-16T01:14:41
286,389,237
6
129
null
2020-10-16T05:44:11
2020-08-10T05:59:35
JavaScript
UTF-8
Java
false
false
615
java
package cn.rongcloud.werewolf.common.factory.dialog.base; import android.app.Dialog; import android.view.Gravity; import android.view.Window; import androidx.fragment.app.FragmentActivity; import cn.rongcloud.werewolf.R; /** * 从中部弹出的dialog */ public class CenterDialogFactory implements SealMicDialogFactory { @Override public Dialog buildDialog(FragmentActivity context) { Dialog bottomDialog = new Dialog(context, R.style.BottomDialog); Window dialogWindow = bottomDialog.getWindow(); dialogWindow.setGravity(Gravity.CENTER); return bottomDialog; } }
[ "geekonline@126.com" ]
geekonline@126.com
e7fc050fae9bac092c02c78f5a0ae164f039f83e
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/response/AlipayAssetCardTransferResponse.java
463350d779c0ecd58c29ddb15975f54f268319b0
[ "Apache-2.0" ]
permissive
zhaorongxi/alipay-sdk-java-all
c658983d390e432c3787c76a50f4a8d00591cd5c
6deda10cda38a25dcba3b61498fb9ea839903871
refs/heads/master
2021-02-15T19:39:11.858966
2020-02-16T10:44:38
2020-02-16T10:44:38
null
0
0
null
null
null
null
UTF-8
Java
false
false
669
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.asset.card.transfer response. * * @author auto create * @since 1.0, 2019-04-28 14:48:45 */ public class AlipayAssetCardTransferResponse extends AlipayResponse { private static final long serialVersionUID = 4195326663853247731L; /** * 支付宝订单id */ @ApiField("asset_order_id") private String assetOrderId; public void setAssetOrderId(String assetOrderId) { this.assetOrderId = assetOrderId; } public String getAssetOrderId( ) { return this.assetOrderId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
341e7ef35d6b3b948d0380278c497ed364d106c1
344012f7d7d40844bda14a2eb8b9e277f1d4ce97
/arthas-modules/arthas-core/src/main/java/com/arthas/core/utils/ArthasBanner.java
bf605e0facd22ec7773b37fa1ef6b58d00a45c40
[ "MIT" ]
permissive
quyixiao/tiny-arthas
d85ff15ae4944be61fa8f66f6426f8daf2c94fa3
720e15b194084f85c5b5e67624ed6747d17b2eec
refs/heads/master
2023-02-17T01:30:12.774477
2021-01-19T12:46:56
2021-01-19T12:46:56
330,977,014
0
0
null
null
null
null
UTF-8
Java
false
false
3,557
java
package com.arthas.core.utils; import com.arthas.core.shell.ShellServerOptions; import java.io.InputStream; /** * @author beiwei30 on 16/11/2016. */ public class ArthasBanner { private static final String LOGO_LOCATION = "/com/taobao/arthas/core/res/logo.txt"; private static final String CREDIT_LOCATION = "/com/taobao/arthas/core/res/thanks.txt"; private static final String VERSION_LOCATION = "/com/taobao/arthas/core/res/version"; private static final String WIKI = "https://alibaba.github.io/arthas"; private static final String TUTORIALS = "https://alibaba.github.io/arthas/arthas-tutorials"; private static String LOGO = "Welcome to Arthas"; private static String VERSION = "unknown"; private static String THANKS = ""; static { try { String logoText = IOUtils.toString(ShellServerOptions.class.getResourceAsStream(LOGO_LOCATION)); THANKS = IOUtils.toString(ShellServerOptions.class.getResourceAsStream(CREDIT_LOCATION)); InputStream versionInputStream = ShellServerOptions.class.getResourceAsStream(VERSION_LOCATION); if (versionInputStream != null) { VERSION = IOUtils.toString(versionInputStream).trim(); } else { String implementationVersion = ArthasBanner.class.getPackage().getImplementationVersion(); if (implementationVersion != null) { VERSION = implementationVersion; } } StringBuilder sb = new StringBuilder(); String[] LOGOS = new String[6]; int i = 0, j = 0; for (String line : logoText.split("\n")) { sb.append(line); sb.append("\n"); if (i++ == 4) { LOGOS[j++] = sb.toString(); i = 0; sb.setLength(0); } } /* TableElement logoTable = new TableElement(); logoTable.row(label(LOGOS[0]).style(Decoration.bold.fg(Color.red)), label(LOGOS[1]).style(Decoration.bold.fg(Color.yellow)), label(LOGOS[2]).style(Decoration.bold.fg(Color.cyan)), label(LOGOS[3]).style(Decoration.bold.fg(Color.magenta)), label(LOGOS[4]).style(Decoration.bold.fg(Color.green)), label(LOGOS[5]).style(Decoration.bold.fg(Color.blue))); LOGO = RenderUtil.render(logoTable);*/ } catch (Throwable e) { e.printStackTrace(); } } public static String wiki() { return WIKI; } public static String tutorials() { return TUTORIALS; } public static String credit() { return THANKS; } public static String version() { return VERSION; } public static String logo() { return LOGO; } public static String plainTextLogo() { /*return RenderUtil.ansiToPlainText(LOGO);*/ return ""; } public static String welcome() { /* logger.info("arthas version: " + version()); TableElement table = new TableElement().rightCellPadding(1) .row("wiki", wiki()) .row("tutorials", tutorials()) .row("version", version()) .row("pid", PidUtils.currentPid()) .row("time", DateUtils.getCurrentDate()); return logo() + "\n" + RenderUtil.render(table);*/ return ""; } }
[ "2621048238@qq.com" ]
2621048238@qq.com
9563f0b60b3a73135f3d54decc4fc6afd2b1d74c
53a48fdc98b1c635552710245f5062e474066efd
/datagenerator/src/main/java/com/example/model/APIEquipType.java
e9e27026a87e5f409d7e4b41037a333e5a5e54a6
[]
no_license
kcwikizh/Akashi-Toolkit
0b373429706132c2b32b10dd569045dd86039993
ea5ac6517d626a9b07cc9a786df47a106a5a30fb
refs/heads/master
2020-12-11T03:24:25.228509
2018-05-18T11:09:37
2018-05-18T11:09:37
53,382,996
35
17
null
2018-02-27T02:16:45
2016-03-08T04:39:29
Java
UTF-8
Java
false
false
1,178
java
package com.example.model; /** * Created by Rikka on 2016/10/4. */ public class APIEquipType { private int show_flg; private String name; private int id; private String chinese_name; public APIEquipType(int show_flg, String name, int id, String chinese_name) { this.show_flg = show_flg; this.name = name; this.id = id; this.chinese_name = chinese_name; } public int getShowFlag() { return show_flg; } public void setShowFlag(int show_flg) { this.show_flg = show_flg; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getChineseName() { return chinese_name; } public void setChinesName(String chinese_name) { this.chinese_name = chinese_name; } @Override public String toString() { return "APIEquipType{" + "id=" + id + ", chinese_name='" + chinese_name + '\'' + '}'; } }
[ "rikka@xing.moe" ]
rikka@xing.moe
ce61a6402d713522b15d4a9280082108f41d4aa8
995f73d30450a6dce6bc7145d89344b4ad6e0622
/Mate20-9.0/src/main/java/com/huawei/hilink/framework/aidl/HilinkServiceProxy.java
3340795e2dc2e299b6878a26e1b2bcf780513bda
[]
no_license
morningblu/HWFramework
0ceb02cbe42585d0169d9b6c4964a41b436039f5
672bb34094b8780806a10ba9b1d21036fd808b8e
refs/heads/master
2023-07-29T05:26:14.603817
2021-09-03T05:23:34
2021-09-03T05:23:34
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,867
java
package com.huawei.hilink.framework.aidl; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; import android.util.Log; import com.huawei.hilink.framework.aidl.IHilinkService; import java.io.Closeable; public class HilinkServiceProxy implements Closeable { public static final int ERRORCODE_BAD_REQUEST = 400; public static final int ERRORCODE_INITIALIZATION_FAILURE = 12; public static final int ERRORCODE_MAX_SERVICE_NUM_REACHED = 10; public static final int ERRORCODE_METHOD_NOT_ALLOWED = 405; public static final int ERRORCODE_NOT_FOUND = 404; public static final int ERRORCODE_NO_NETWORK = 3; public static final int ERRORCODE_NULLPOINTER = 2; public static final int ERRORCODE_OK = 0; public static final int ERRORCODE_PERMISSION_DENIED = 11; public static final int ERRORCODE_REQUEST_ILLEGAL = 5; public static final int ERRORCODE_REQUEST_NOLONGER_EXIST = 8; public static final int ERRORCODE_RUNTIME = 4; public static final int ERRORCODE_SERVICE_ALREADY_EXIST = 7; public static final int ERRORCODE_TASK_QUEUE_FULL = 6; private static final String TAG = "hilinkService"; private ServiceConnection conn = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { Log.i(HilinkServiceProxy.TAG, "onServiceConnected"); HilinkServiceProxy.this.hilinkServiceBinder = IHilinkService.Stub.asInterface(service); } public void onServiceDisconnected(ComponentName name) { Log.i(HilinkServiceProxy.TAG, "onServiceDisconnected"); HilinkServiceProxy.this.hilinkServiceBinder = null; } }; private Context context; /* access modifiers changed from: private */ public IHilinkService hilinkServiceBinder; public HilinkServiceProxy(Context context2) { if (context2 != null) { this.context = context2; Intent intent = new Intent(); intent.setComponent(new ComponentName("com.huawei.hilink.framework", "com.huawei.hilink.framework.HilinkService")); context2.bindService(intent, this.conn, 1); } } public int discover(DiscoverRequest request, ServiceFoundCallbackWrapper callback) { if (this.hilinkServiceBinder == null) { return 12; } try { return this.hilinkServiceBinder.discover(request, callback); } catch (RemoteException e) { return 4; } } public int call(CallRequest request, ResponseCallbackWrapper callback) { if (this.hilinkServiceBinder == null) { return 12; } try { return this.hilinkServiceBinder.call(request, callback); } catch (RemoteException e) { return 4; } } public int publish(String serviceType, String serviceID, RequestHandlerWrapper requestHandler) { if (this.hilinkServiceBinder == null) { return 12; } try { return this.hilinkServiceBinder.publishKeepOnline(serviceType, serviceID, requestHandler); } catch (RemoteException e) { return 4; } } public int publish(String serviceType, String serviceID, PendingIntent pendingIntent) { if (this.hilinkServiceBinder == null) { return 12; } try { return this.hilinkServiceBinder.publishCanbeOffline(serviceType, serviceID, pendingIntent); } catch (RemoteException e) { return 4; } } public static CallRequest getCallRequest(Intent intent) { if (intent != null) { Bundle bundle = intent.getExtras(); if (bundle != null) { return (CallRequest) bundle.get("CallRequest"); } } return null; } public void unpublish(String serviceID) { if (this.hilinkServiceBinder != null) { try { this.hilinkServiceBinder.unpublish(serviceID); } catch (RemoteException e) { Log.e(TAG, "unpublish failed"); } } } public int sendResponse(int errorCode, String payload, int requestID) { if (this.hilinkServiceBinder == null) { return 12; } try { return this.hilinkServiceBinder.sendResponse(errorCode, payload, requestID); } catch (RemoteException e) { return 4; } } public void close() { if (this.context != null) { this.context.unbindService(this.conn); this.hilinkServiceBinder = null; } } }
[ "dstmath@163.com" ]
dstmath@163.com
f66946c3322d43c9c1278c01dc5e37e6e117ab05
35dcced34f39f1c4ee74d43f5edb6e16f61f2303
/03. Desarrollo/02. CodigoFuente/tecnica/V1.0.0/src/main/java/co/edu/sena/dwbh/config/LiquibaseConfiguration.java
1bb672b5253e0a63fef7b4d99423afe08a2c5633
[]
no_license
Lotbrock/D.W.B.H-CORPORATION
459fded0bcd5afb4da5eadeedc077729948759a6
405a3d298705e7bd86dead16f741b906e22a504b
refs/heads/master
2022-01-31T18:24:32.353081
2018-12-10T18:08:51
2018-12-10T18:08:51
151,576,870
0
0
null
null
null
null
UTF-8
Java
false
false
1,990
java
package co.edu.sena.dwbh.config; import javax.sql.DataSource; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.liquibase.LiquibaseProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; import org.springframework.core.task.TaskExecutor; import io.github.jhipster.config.JHipsterConstants; import io.github.jhipster.config.liquibase.AsyncSpringLiquibase; import liquibase.integration.spring.SpringLiquibase; @Configuration public class LiquibaseConfiguration { private final Logger log = LoggerFactory.getLogger(LiquibaseConfiguration.class); private final Environment env; public LiquibaseConfiguration(Environment env) { this.env = env; } @Bean public SpringLiquibase liquibase(@Qualifier("taskExecutor") TaskExecutor taskExecutor, DataSource dataSource, LiquibaseProperties liquibaseProperties) { // Use liquibase.integration.spring.SpringLiquibase if you don't want Liquibase to start asynchronously SpringLiquibase liquibase = new AsyncSpringLiquibase(taskExecutor, env); liquibase.setDataSource(dataSource); liquibase.setChangeLog("classpath:config/liquibase/master.xml"); liquibase.setContexts(liquibaseProperties.getContexts()); liquibase.setDefaultSchema(liquibaseProperties.getDefaultSchema()); liquibase.setDropFirst(liquibaseProperties.isDropFirst()); liquibase.setChangeLogParameters(liquibaseProperties.getParameters()); if (env.acceptsProfiles(JHipsterConstants.SPRING_PROFILE_NO_LIQUIBASE)) { liquibase.setShouldRun(false); } else { liquibase.setShouldRun(liquibaseProperties.isEnabled()); log.debug("Configuring Liquibase"); } return liquibase; } }
[ "jafajardo37@misena.edu.co" ]
jafajardo37@misena.edu.co
e01e6815fdd45490aa6a52990128bc1981c1acfb
3efc2074ee6f64c92c2e0c272153f8d602b65945
/Muse_Valerio/Muse/srcRTP/com/sun/media/rtp/RTPControlImpl.java
d95017adac26155a89a82e0d6e089cda0bd7c2b1
[]
no_license
marconanni/muse3
80ea97e2357d42a8426ca565f179ed62ea421dfe
98004320df6eef09a97915c0c02b1e3146ea2bd1
refs/heads/master
2021-01-10T18:44:32.171711
2010-03-03T14:44:18
2010-03-03T14:44:18
34,604,347
0
0
null
null
null
null
UTF-8
Java
false
false
2,656
java
// Decompiled by Jad v1.5.8f. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) // Source File Name: RTPControlImpl.java package com.sun.media.rtp; import com.sun.media.util.RTPInfo; import java.awt.Component; import java.util.Enumeration; import java.util.Hashtable; import javax.media.Format; import javax.media.rtp.*; // Referenced classes of package com.sun.media.rtp: // RecvSSRCInfo, SSRCInfo public abstract class RTPControlImpl implements RTPControl, RTPInfo { public RTPControlImpl() { cname = null; codeclist = null; rtptime = 0; seqno = 0; payload = -1; codec = ""; currentformat = null; stream = null; codeclist = new Hashtable(5); } public abstract int getSSRC(); public abstract String getCNAME(); public void addFormat(Format info, int payload) { codeclist.put(new Integer(payload), info); } public Format getFormat() { return currentformat; } public Format getFormat(int payload) { return (Format)codeclist.get(new Integer(payload)); } public Format[] getFormatList() { Format infolist[] = new Format[codeclist.size()]; int i = 0; for(Enumeration e = codeclist.elements(); e.hasMoreElements();) { Format f = (Format)e.nextElement(); infolist[i++] = (Format)f.clone(); } return infolist; } public void setRTPInfo(int rtptime, int seqno) { this.rtptime = rtptime; this.seqno = seqno; } public String toString() { String s = "\n\tRTPTime is " + rtptime + "\n\tSeqno is " + seqno; if(codeclist != null) s = s + "\n\tCodecInfo is " + codeclist.toString(); else s = s + "\n\tcodeclist is null"; return s; } public ReceptionStats getReceptionStats() { if(stream == null) { return null; } else { RecvSSRCInfo recvstream = (RecvSSRCInfo)stream; return recvstream.getSourceReceptionStats(); } } public GlobalReceptionStats getGlobalStats() { return null; } public Component getControlComponent() { return null; } String cname; Hashtable codeclist; int rtptime; int seqno; int payload; String codec; Format currentformat; SSRCInfo stream; }
[ "pire.dejaco@0b1e5f34-49f6-11de-a65c-33beeba39556" ]
pire.dejaco@0b1e5f34-49f6-11de-a65c-33beeba39556
bb7bd2cdddb6809f8e572cd32df17da5c4ddf1d2
e70abc02efbb8a7637eb3655f287b0a409cfa23b
/hyjf-mybatis/src/main/java/com/hyjf/mybatis/mapper/customize/AleveCustomizeMapper.java
9c50d917da8dbd8c055924f8c4b30d32499b8799
[]
no_license
WangYouzheng1994/hyjf
ecb221560460e30439f6915574251266c1a49042
6cbc76c109675bb1f120737f29a786fea69852fc
refs/heads/master
2023-05-12T03:29:02.563411
2020-05-19T13:49:56
2020-05-19T13:49:56
null
0
0
null
null
null
null
UTF-8
Java
false
false
450
java
package com.hyjf.mybatis.mapper.customize; import com.hyjf.mybatis.model.customize.AleveLogCustomize; import java.util.List; /** * Created by cuigq on 2018/1/22. */ public interface AleveCustomizeMapper { Integer queryAleveLogCount(AleveLogCustomize aleveLogCustomize); List<AleveLogCustomize> queryAleveLogList(AleveLogCustomize aleveLogCustomize); List<AleveLogCustomize> queryAleveLogListByTranstype(List<String> tranStype); }
[ "heshuying@hyjf.com" ]
heshuying@hyjf.com
8c2d695801b4faad0a92719f76e94b7797d03dcc
7a2c66bf546b5a637f4704502487e7bab6d81cc9
/src/main/java/net/haesleinhuepf/clij2/plugins/WriteValuesToPositions.java
2679654b900b6ee6b7618d584acebc034b4ab513
[ "BSD-3-Clause" ]
permissive
maarzt/clij2
470a13565e4f996dfaf72c3eebce4544d76c1c8c
c65124ab157b04726c731bfdbf6c3aae15a4f072
refs/heads/master
2021-04-20T13:10:58.980067
2020-03-22T20:59:31
2020-03-22T20:59:31
249,686,118
0
0
NOASSERTION
2020-03-24T11:07:48
2020-03-24T11:07:47
null
UTF-8
Java
false
false
1,982
java
package net.haesleinhuepf.clij2.plugins; import net.haesleinhuepf.clij.clearcl.ClearCLBuffer; import net.haesleinhuepf.clij.macro.CLIJMacroPlugin; import net.haesleinhuepf.clij.macro.CLIJOpenCLProcessor; import net.haesleinhuepf.clij.macro.documentation.OffersDocumentation; import net.haesleinhuepf.clij2.AbstractCLIJ2Plugin; import net.haesleinhuepf.clij2.CLIJ2; import org.scijava.plugin.Plugin; import java.util.HashMap; /** * Author: @haesleinhuepf * June 2019 */ @Plugin(type = CLIJMacroPlugin.class, name = "CLIJ2_writeValuesToPositions") public class WriteValuesToPositions extends AbstractCLIJ2Plugin implements CLIJMacroPlugin, CLIJOpenCLProcessor, OffersDocumentation { @Override public boolean executeCL() { ClearCLBuffer positionsAndValues = (ClearCLBuffer)( args[0]); ClearCLBuffer buffer = (ClearCLBuffer)( args[1]); return writeValuesToPositions(getCLIJ2(), positionsAndValues, buffer); } public static boolean writeValuesToPositions(CLIJ2 clij2, ClearCLBuffer positionsAndValues, ClearCLBuffer dst) { HashMap<String, Object> parameters = new HashMap<>(); parameters.put("src", positionsAndValues); parameters.put("dst", dst); long[] size = new long[] { positionsAndValues.getWidth(), 1, 1}; clij2.execute(WriteValuesToPositions.class, "write_values_to_positions_3d_x.cl", "write_values_to_positions_" + dst.getDimension() + "d", size, size, parameters); return true; } @Override public String getParameterHelpText() { return "Image positionsAndValues, Image destination"; } @Override public String getDescription() { return "Takes an image with three/four rows (2D: height = 3; 3D: height = 4): x, y [, z] and v and target image. " + "The value v will be written at position x/y[/z] in the target image."; } @Override public String getAvailableForDimensions() { return "2D, 3D"; } }
[ "rhaase@mpi-cbg.de" ]
rhaase@mpi-cbg.de
d9eac13c432bff2cefc4f5f71378f72f64666419
6d577a4cdd6681a33dd7a2a5d03099225c28fdfd
/src/main/java/com/ibaixiong/merchant/service/impl/SsssGetcashServiceImpl.java
aa614a719c313e548240bdcd9f3a935f7480c8d4
[]
no_license
hansq-rokey/h7
19286e5d4d4349203d68b21c5bcea8e68c618594
cb9aed341b1e85c96ae0ab65c6a6b9b1ffcf0683
refs/heads/master
2021-01-18T03:37:30.461519
2017-03-22T08:55:33
2017-03-22T08:55:33
85,805,001
0
0
null
null
null
null
UTF-8
Java
false
false
2,474
java
package com.ibaixiong.merchant.service.impl; import java.util.Date; import java.util.List; import java.util.Map; import javax.annotation.Resource; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.github.pagehelper.PageHelper; import com.ibaixiong.constant.Constant; import com.ibaixiong.constant.PageConstant; import com.ibaixiong.core.utils.CodeUtil; import com.ibaixiong.entity.SsssCityMerchant; import com.ibaixiong.entity.SsssGetcash; import com.ibaixiong.entity.User; import com.ibaixiong.merchant.dao.SsssCityMerchantDao; import com.ibaixiong.merchant.dao.SsssGetcashDao; import com.ibaixiong.merchant.service.SsssGetcashService; @Service public class SsssGetcashServiceImpl implements SsssGetcashService { @Resource SsssGetcashDao ssssGetcashDao; @Resource SsssCityMerchantDao ssssCityMerchantDao; @Transactional @Override public void insert(Float money, User user) { //插入金额变更记录 //SsssInfo ssssInfo = ssssInfoDao.getByUserId(user.getId()); SsssCityMerchant merchant = ssssCityMerchantDao.getByUserId(user.getId()); String payNumber = CodeUtil.getPayNumber(user.getId()); /*PayHistory history = new PayHistory(); history.setStatus(Constant.Status.WAIT.getStatus()); history.setPayNumber(payNumber); history.setCreateDateTime(new Date()); history.setUserId(user.getId()); history.setMoney(-money); history.setMerchantId(merchant.getId()); history.setType(Constant.PayHistoryStatus.GETCASH.getStatus()); history.setRemainMoney(merchant.getMoney().floatValue()+history.getMoney().floatValue()); payHistoryDao.insertSelective(history);*/ //插入提现表 SsssGetcash cash = new SsssGetcash(); cash.setCityMerchantId(merchant.getId()); cash.setCreateDateTime(new Date()); cash.setBankName(merchant.getBankName()); cash.setBankNumber(merchant.getBankNumber()); cash.setBankAddress(merchant.getBankAddress()); cash.setUserId(user.getId()); cash.setMoney(money); cash.setStatus(Constant.Status.WAIT.getStatus()); cash.setInvalid(false); cash.setPayNumber(payNumber); ssssGetcashDao.insertSelective(cash); /*merchant.setMoney(history.getRemainMoney()); ssssCityMerchantDao.updateByPrimaryKeySelective(merchant);*/ } @Override public List<SsssGetcash> getList(Map<String, Object> map) { PageHelper.startPage((Integer) map.get("pageNo"), PageConstant.bbspageSize, true); return ssssGetcashDao.getList(map); } }
[ "hanshuaiqi@ibaixiong.com" ]
hanshuaiqi@ibaixiong.com
d03ea99f54fbe6cd490ab2ea1f97029d0eecef37
32d373bdd62a23a8d1db79accde683d835bf1aa8
/JAVA程序/Game05.java
f42e1aa3329460789eec521ea0fa24f7a1442dc9
[]
no_license
sqsgalaxys/workspace
77f585574111369e1ea892838e7b4737e9e943f8
0777c68f530aaabffa9a5a294b14c449774b6ac3
refs/heads/master
2021-01-01T17:27:06.512834
2016-09-20T12:19:55
2016-09-20T12:19:55
null
0
0
null
null
null
null
GB18030
Java
false
false
803
java
// 游戏档案库 import javax.swing.*; public class Game05 { public static void main(String[] args) { boolean cont = false; do { cont = false; // 定义字符串数组存储游戏名称 String names[] = { "Define : \"Games\"", "The Dungeon Defender", "Regional Math - a - thon", "National Math - a - tgon" }; // 获取用户输入的名称在数组中的索引 int element = Integer.parseInt(JOptionPane.showInputDialog("Which element?")); String output = "The name of the game is:\n"; output += names[element]; // 输出选择的游戏 JOptionPane.showMessageDialog(null,output); // 是否继续 String repeat = JOptionPane.showInputDialog("Again?"); if (repeat.equals("yes")) { cont = true; } } while (cont); } }
[ "samlv@tencent.com" ]
samlv@tencent.com
f4180ffb2d41f4fa5fb03f0ea34fedfc3d8910de
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project68/src/test/java/org/gradle/test/performance68_3/Test68_247.java
94d7e5384e41fef649b44f4dcc60862090359a8e
[]
no_license
gradle/performance-comparisons
b0d38db37c326e0ce271abebdb3c91769b860799
e53dc7182fafcf9fedf07920cbbea8b40ee4eef4
refs/heads/master
2023-08-14T19:24:39.164276
2022-11-24T05:18:33
2022-11-24T05:18:33
80,121,268
17
15
null
2022-09-30T08:04:35
2017-01-26T14:25:33
null
UTF-8
Java
false
false
292
java
package org.gradle.test.performance68_3; import static org.junit.Assert.*; public class Test68_247 { private final Production68_247 production = new Production68_247("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
3ba0b5cf2270ad1896449d2f4d2d3ac097d723a4
f4975228359e9eb6e3c1af87a965d14f51218208
/src/main/java/org/telegram/tl/TLContext.java
a214ea29066862f7ad97e4d7a00fef5695d87347
[ "MIT" ]
permissive
2k13yr/telegram-tl-core
b01b8d797e1354d1b525d9f10ce7bee0657afc3c
95b11f2068c789109775103c0744658c0e6d24a4
refs/heads/master
2021-01-16T21:38:21.570193
2014-02-10T09:28:15
2014-02-10T09:28:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
7,841
java
package org.telegram.tl; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.zip.GZIPInputStream; /** * TypeLanguage context object. It performs deserialization of objects and vectors. * All known classes might be registered in context for deserialization. * Often this might be performed from inherited class in init() method call. * If TL-Object contains static int field CLASS_ID, then it might be used for registration, * but it uses reflection so it might be slow in some cases. It recommended to manually pass CLASS_ID * to registerClass method. * * @author Korshakov Stepan <me@ex3ndr.com> */ public abstract class TLContext { private HashMap<Integer, Class> registeredClasses = new HashMap<Integer, Class>(); private HashMap<Integer, Class> registeredCompatClasses = new HashMap<Integer, Class>(); public TLContext() { init(); } protected void init() { } public boolean isSupportedObject(TLObject object) { return isSupportedObject(object.getClassId()); } public boolean isSupportedObject(int classId) { return registeredClasses.containsKey(classId); } public <T extends TLObject> void registerClass(Class<T> tClass) { try { int classId = tClass.getField("CLASS_ID").getInt(null); registeredClasses.put(classId, tClass); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (NoSuchFieldException e) { e.printStackTrace(); } } public <T extends TLObject> void registerClass(int clazzId, Class<T> tClass) { registeredClasses.put(clazzId, tClass); } public <T extends TLObject> void registerCompatClass(Class<T> tClass) { try { int classId = tClass.getField("CLASS_ID").getInt(null); registeredCompatClasses.put(classId, tClass); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (NoSuchFieldException e) { e.printStackTrace(); } } public <T extends TLObject> void registerCompatClass(int clazzId, Class<T> tClass) { registeredCompatClasses.put(clazzId, tClass); } protected TLObject convertCompatClass(TLObject src) { return src; } public TLObject deserializeMessage(byte[] data) throws IOException { return deserializeMessage(new ByteArrayInputStream(data)); } public TLObject deserializeMessage(int clazzId, InputStream stream) throws IOException { if (clazzId == TLGzipObject.CLASS_ID) { TLGzipObject obj = new TLGzipObject(); obj.deserializeBody(stream, this); BufferedInputStream gzipInputStream = new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(obj.getPackedData()))); int innerClazzId = StreamingUtils.readInt(gzipInputStream); return deserializeMessage(innerClazzId, gzipInputStream); } if (clazzId == TLBoolTrue.CLASS_ID) { return new TLBoolTrue(); } if (clazzId == TLBoolFalse.CLASS_ID) { return new TLBoolFalse(); } if (registeredCompatClasses.containsKey(clazzId)) { try { Class messageClass = registeredCompatClasses.get(clazzId); TLObject message = (TLObject) messageClass.getConstructor().newInstance(); message.deserializeBody(stream, this); return convertCompatClass(message); } catch (DeserializeException e) { throw e; } catch (Exception e) { e.printStackTrace(); throw new IOException("Unable to deserialize data"); } } try { Class messageClass = registeredClasses.get(clazzId); if (messageClass != null) { TLObject message = (TLObject) messageClass.getConstructor().newInstance(); message.deserializeBody(stream, this); return message; } else { throw new DeserializeException("Unsupported class: #" + Integer.toHexString(clazzId)); } } catch (DeserializeException e) { throw e; } catch (Exception e) { e.printStackTrace(); throw new IOException("Unable to deserialize data"); } } public TLObject deserializeMessage(InputStream stream) throws IOException { int clazzId = StreamingUtils.readInt(stream); return deserializeMessage(clazzId, stream); } public TLVector deserializeVector(InputStream stream) throws IOException { int clazzId = StreamingUtils.readInt(stream); if (clazzId == TLVector.CLASS_ID) { TLVector res = new TLVector(); res.deserializeBody(stream, this); return res; } else if (clazzId == TLGzipObject.CLASS_ID) { TLGzipObject obj = new TLGzipObject(); obj.deserializeBody(stream, this); BufferedInputStream gzipInputStream = new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(obj.getPackedData()))); return deserializeVector(gzipInputStream); } else { throw new IOException("Unable to deserialize vector"); } } public TLIntVector deserializeIntVector(InputStream stream) throws IOException { int clazzId = StreamingUtils.readInt(stream); if (clazzId == TLVector.CLASS_ID) { TLIntVector res = new TLIntVector(); res.deserializeBody(stream, this); return res; } else if (clazzId == TLGzipObject.CLASS_ID) { TLGzipObject obj = new TLGzipObject(); obj.deserializeBody(stream, this); BufferedInputStream gzipInputStream = new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(obj.getPackedData()))); return deserializeIntVector(gzipInputStream); } else { throw new IOException("Unable to deserialize vector"); } } public TLLongVector deserializeLongVector(InputStream stream) throws IOException { int clazzId = StreamingUtils.readInt(stream); if (clazzId == TLVector.CLASS_ID) { TLLongVector res = new TLLongVector(); res.deserializeBody(stream, this); return res; } else if (clazzId == TLGzipObject.CLASS_ID) { TLGzipObject obj = new TLGzipObject(); obj.deserializeBody(stream, this); BufferedInputStream gzipInputStream = new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(obj.getPackedData()))); return deserializeLongVector(gzipInputStream); } else { throw new IOException("Unable to deserialize vector"); } } public TLStringVector deserializeStringVector(InputStream stream) throws IOException { int clazzId = StreamingUtils.readInt(stream); if (clazzId == TLVector.CLASS_ID) { TLStringVector res = new TLStringVector(); res.deserializeBody(stream, this); return res; } else if (clazzId == TLGzipObject.CLASS_ID) { TLGzipObject obj = new TLGzipObject(); obj.deserializeBody(stream, this); BufferedInputStream gzipInputStream = new BufferedInputStream(new GZIPInputStream(new ByteArrayInputStream(obj.getPackedData()))); return deserializeStringVector(gzipInputStream); } else { throw new IOException("Unable to deserialize vector"); } } public TLBytes allocateBytes(int size) { return new TLBytes(new byte[size], 0, size); } }
[ "me@ex3ndr.com" ]
me@ex3ndr.com
a222af3d687304284d026708c28e3047fc0be218
d8ece358ad0ce666849244c0f70852136d6bee90
/src/com/chinaedustar/publish/model/TreeViewQueryObject.java
bc28f4d3ac44713fc8e34f19222372c550445971
[]
no_license
yxxcrtd/Publish
0590b2e07a79742e03eaea02d6b9ec46b6f4cfaa
cb3bc8f480282ff1ba895c0e51058e76db6d65bc
refs/heads/master
2020-05-31T15:20:59.186270
2019-06-05T08:16:23
2019-06-05T08:16:23
190,354,067
0
0
null
null
null
null
UTF-8
Java
false
false
527
java
package com.chinaedustar.publish.model; /** * 树形结构的查询语句对象。 * 保存了从树形结构的表中查询出结果的 where 与 order 子句。 * @author wangyi * */ public class TreeViewQueryObject { private String where; private String order; public String getOrder() { return order; } public void setOrder(String order) { this.order = order; } public String getWhere() { return where; } public void setWhere(String where) { this.where = where; } }
[ "yxxcrtd@gmail.com" ]
yxxcrtd@gmail.com
b67c280f9c86a27f4056884b22c6efe9724cb26b
baba7ae4f32f0e680f084effcd658890183e7710
/MutationFramework/muJava/muJavaMutantStructure/Persistence/TobiasSamples/Debug2/int_maxElement(int)/COI_6/Debug2.java
e69770dc0ba08efe4f76e1a22eba12f83758b12b
[ "Apache-2.0" ]
permissive
TUBS-ISF/MutationAnalysisForDBC-FormaliSE21
75972c823c3c358494d2a2e9ec12e0a00e26d771
de825bc9e743db851f5ec1c5133dca3f04d20bad
refs/heads/main
2023-04-22T21:29:28.165271
2021-05-17T07:43:22
2021-05-17T07:43:22
368,096,901
0
0
null
null
null
null
UTF-8
Java
false
false
2,789
java
// This is a mutant program. // Author : ysma public class Debug2 { /*@ @ normal_behavior @ requires true; @ ensures \result>=0 ==> a[\result]==x; @*/ public static int linearSearch( int[] a, int x ) { int i = a.length - 1; /*@ loop_invariant !(\exists int q; q >= i+1 && q < a.length; a[q]==x) && i>=-1 && i<a.length; @ decreases i+1; @*/ while (i >= 0 && a[i] != x) { i = i - 1; } return i; } /*@ @ normal_behavior @ requires A.length > 0; @ ensures (\forall int q; q >= 0 & q < A.length; A[\result]>=A[q]); @*/ public static int maxElement( int[] A ) { int i = 0; int j = 1; /*@ loop_invariant (\forall int q; q >= 0 && q < j; A[i]>=A[q]) && i>=0 && i<A.length && j>0 && j<=A.length; @ decreases A.length - j; @*/ while (j != A.length) { if (A[j] > A[i]) { i = j; } else { if (!(A[j] <= A[i])) { ; } } j = j + 1; } return i; } /*@ @ normal_behavior @ requires n >= 0 && n<6; @ ensures \result==Helper.factorial(n); @*/ public static int fac( int n ) { int f = 0; if (n == 0) { f = 1; } else { if (n == 1) { f = 1; } else { if (n >= 2) { int tmp = n - 1; f = n * Helper.factorial( tmp ); } } } return f; } /*@ @ normal_behavior @ requires A.length > 0 && (\forall int i; i>=0 & i<A.length; A[i] == 0 || A[i] == 1 || A[i] == 2); @ ensures (\forall int q; q >= 1 && q < \result.length; \result[q-1]<=\result[q]); @*/ public static int[] DutchFlag( int[] A ) { int wb = 0; int wt = 0; int bb = A.length; /*@ loop_invariant (\forall int i; i>=0 & i<A.length; A[i] == 0 || A[i] == 1 || A[i] == 2) && (\forall int q; q >= 0 && q < wb; A[q]==0) && (\forall int q; q >= wb && q < wt; A[q]==1) && (\forall int q; q >= bb && q < A.length; A[q]==2) && 0<=wb && wb<=wt && wt<=bb && bb<=A.length; @ decreases bb-wt; @*/ while (wt != bb) { if (A[wt] == 0) { int t = A[wt]; A[wt] = A[wb]; A[wb] = t; wt = wt + 1; wb = wb + 1; } else { if (A[wt] == 1) { wt = wt + 1; } else { if (A[wt] == 2) { int t = A[wt]; A[wt] = A[bb - 1]; A[bb - 1] = t; bb = bb - 1; } } } } return A; } }
[ "a.knueppel@tu-bs.de" ]
a.knueppel@tu-bs.de
ff5c2840c6120755ebe2632903830c9d4db837a1
134b9e0aa79d083dec81ddfe1df00a516c1f1d18
/src/test/java/com/sistemaspadrao/crud/web/rest/TestUtil.java
0cff1f150fcaf8de8665c6215f8f6aa2c4e34818
[]
no_license
rafaelluciodeveloper/crudjhipster
d1b03fff945cd58b17e1ce3fe60832611c822a6a
0300a636f4cfa31de6bb9e2adddb0d37c8d66708
refs/heads/master
2020-03-20T22:24:11.173903
2018-06-18T19:23:39
2018-06-18T19:23:39
137,796,577
0
0
null
null
null
null
UTF-8
Java
false
false
5,189
java
package com.sistemaspadrao.crud.web.rest; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import org.hamcrest.Description; import org.hamcrest.TypeSafeDiagnosingMatcher; import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar; import org.springframework.format.support.DefaultFormattingConversionService; import org.springframework.format.support.FormattingConversionService; import org.springframework.http.MediaType; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.time.ZonedDateTime; import java.time.format.DateTimeParseException; import static org.assertj.core.api.Assertions.assertThat; /** * Utility class for testing REST controllers. */ public class TestUtil { /** MediaType for JSON UTF8 */ public static final MediaType APPLICATION_JSON_UTF8 = new MediaType( MediaType.APPLICATION_JSON.getType(), MediaType.APPLICATION_JSON.getSubtype(), StandardCharsets.UTF_8); /** * Convert an object to JSON byte array. * * @param object * the object to convert * @return the JSON byte array * @throws IOException */ public static byte[] convertObjectToJsonBytes(Object object) throws IOException { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); JavaTimeModule module = new JavaTimeModule(); mapper.registerModule(module); return mapper.writeValueAsBytes(object); } /** * Create a byte array with a specific size filled with specified data. * * @param size the size of the byte array * @param data the data to put in the byte array * @return the JSON byte array */ public static byte[] createByteArray(int size, String data) { byte[] byteArray = new byte[size]; for (int i = 0; i < size; i++) { byteArray[i] = Byte.parseByte(data, 2); } return byteArray; } /** * A matcher that tests that the examined string represents the same instant as the reference datetime. */ public static class ZonedDateTimeMatcher extends TypeSafeDiagnosingMatcher<String> { private final ZonedDateTime date; public ZonedDateTimeMatcher(ZonedDateTime date) { this.date = date; } @Override protected boolean matchesSafely(String item, Description mismatchDescription) { try { if (!date.isEqual(ZonedDateTime.parse(item))) { mismatchDescription.appendText("was ").appendValue(item); return false; } return true; } catch (DateTimeParseException e) { mismatchDescription.appendText("was ").appendValue(item) .appendText(", which could not be parsed as a ZonedDateTime"); return false; } } @Override public void describeTo(Description description) { description.appendText("a String representing the same Instant as ").appendValue(date); } } /** * Creates a matcher that matches when the examined string reprensents the same instant as the reference datetime * @param date the reference datetime against which the examined string is checked */ public static ZonedDateTimeMatcher sameInstant(ZonedDateTime date) { return new ZonedDateTimeMatcher(date); } /** * Verifies the equals/hashcode contract on the domain object. */ @SuppressWarnings("unchecked") public static void equalsVerifier(Class clazz) throws Exception { Object domainObject1 = clazz.getConstructor().newInstance(); assertThat(domainObject1.toString()).isNotNull(); assertThat(domainObject1).isEqualTo(domainObject1); assertThat(domainObject1.hashCode()).isEqualTo(domainObject1.hashCode()); // Test with an instance of another class Object testOtherObject = new Object(); assertThat(domainObject1).isNotEqualTo(testOtherObject); assertThat(domainObject1).isNotEqualTo(null); // Test with an instance of the same class Object domainObject2 = clazz.getConstructor().newInstance(); assertThat(domainObject1).isNotEqualTo(domainObject2); // HashCodes are equals because the objects are not persisted yet assertThat(domainObject1.hashCode()).isEqualTo(domainObject2.hashCode()); } /** * Create a FormattingConversionService which use ISO date format, instead of the localized one. * @return the FormattingConversionService */ public static FormattingConversionService createFormattingConversionService() { DefaultFormattingConversionService dfcs = new DefaultFormattingConversionService (); DateTimeFormatterRegistrar registrar = new DateTimeFormatterRegistrar(); registrar.setUseIsoFormat(true); registrar.registerFormatters(dfcs); return dfcs; } }
[ "jhipster-bot@users.noreply.github.com" ]
jhipster-bot@users.noreply.github.com
3612183ecdaeace68fd0e3ab00e6fa9d4909be14
502ea93de54a1be3ef42edb0412a2bf4bc9ddbef
/sources/com/google/android/gms/ads/internal/overlay/C3108d.java
eebf2ed4005d7c58233705ed106889e3e2652583
[]
no_license
dovanduy/MegaBoicotApk
c0852af0773be1b272ec907113e8f088addb0f0c
56890cb9f7afac196bd1fec2d1326f2cddda37a3
refs/heads/master
2020-07-02T04:28:02.199907
2019-08-08T20:44:49
2019-08-08T20:44:49
null
0
0
null
null
null
null
UTF-8
Java
false
false
468
java
package com.google.android.gms.ads.internal.overlay; import com.google.android.gms.internal.ads.C4125rn; /* renamed from: com.google.android.gms.ads.internal.overlay.d */ final /* synthetic */ class C3108d implements C4125rn { /* renamed from: a */ private final C3107c f9100a; C3108d(C3107c cVar) { this.f9100a = cVar; } /* renamed from: a */ public final void mo12684a(boolean z) { this.f9100a.f9082c.mo15904o(); } }
[ "pablo.valle.b@gmail.com" ]
pablo.valle.b@gmail.com
bdfa168e4ffa2555c26aef6b022d9bc7b4a65fd0
87f7af1e58e6f6e029ef7bc4877f3e78926c6c81
/desdiown-programacion-46c8059d5bb2/Evaluación 1/Examen 1/Ejercicios realizados/Pseudocódigos sobre Netbeans/Ejercicios programación/src/EjerciciosPseudocódigo/Ejercicio7.java
ada7b7bafcb575526e784b26e9be2e3a9833d06f
[]
no_license
d3sd1/uc3m-workarounds
a115942b4fb2c1003bc770134973ed4304b30fee
ada16b68a26c11081db696cca813a28551957661
refs/heads/master
2020-12-12T12:27:39.685148
2020-04-23T21:29:58
2020-04-23T21:29:58
234,124,789
0
0
null
2020-04-23T21:30:00
2020-01-15T16:35:43
HTML
UTF-8
Java
false
false
497
java
package EjerciciosPseudocódigo; import java.util.Scanner; public class Ejercicio7 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Introduce un número: "); int number_fact = input.nextInt(); int number_final = 1; for(int i = 1; i <= number_fact; i++) { number_final *= i; } System.out.println("El factorial de !" + number_fact + " es " + number_final); } }
[ "andreigarciacuadra@gmail.com" ]
andreigarciacuadra@gmail.com
61a66264f153994762424b430d7a4e479414458e
f79fe2dc4971ed91145a4a574ca27c172b0bf68b
/src/main/java/samrock/MissingChapter.java
3008e56bbf4631edf1077a4c49c8b5001cb0bc5f
[]
no_license
naaspati-practicing/SamrockTools
d3a3ef4c5646db1554a277030ca3492c4b4d81b8
e2cc56be53fc8cca6cdec59ed358017d8515fdc2
refs/heads/master
2020-04-15T22:38:07.644568
2019-07-17T16:37:34
2019-07-17T16:37:34
165,080,383
0
0
null
null
null
null
UTF-8
Java
false
false
313
java
package samrock; public class MissingChapter { public final int manga_id; public final double number; public final String title; public MissingChapter(int manga_id, double number, String title) { this.manga_id = manga_id; this.number = number; this.title = title; } }
[ "naaspati@gmail.com" ]
naaspati@gmail.com
d7f7db3895fb28a78a6bca03b4c5d429f3dbc6c1
e4e3dc49a1e92195d97f61c5c8f36178214e12c2
/src/net/wit/dao/impl/MobileSegmentDaoImpl.java
a0e62e091d032a1609b8fe835b5658abef9f11b8
[]
no_license
pologood/FMCG
1a393fcc4c7942ca932a2ee5c169c3bf630145e0
690cb06da198fb6a3dec98c1ed7b4886b716a40b
refs/heads/master
2021-01-09T20:08:09.461153
2017-02-06T09:27:48
2017-02-06T09:27:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,071
java
/* * Copyright 2005-2013 rsico. All rights reserved. * Support: http://www.rsico.cn * License: http://www.rsico.cn/license */ package net.wit.dao.impl; import javax.persistence.FlushModeType; import javax.persistence.NoResultException; import net.wit.dao.MobileSegmentDao; import net.wit.entity.MobileSegment; import org.springframework.stereotype.Repository; /** * Dao - 手机快充价格 * * @author rsico Team * @version 3.0 */ @Repository("mobileSegmentDaoImpl") public class MobileSegmentDaoImpl extends BaseDaoImpl<MobileSegment, Long> implements MobileSegmentDao { public MobileSegment findByMobile(String mobile) { if (mobile == null) { return null; } String jpql = "select mobileSegment from MobileSegment mobileSegment where mobileSegment.segment = :segment"; try { int segment = Integer.parseInt( mobile.substring(0,7) ); return entityManager.createQuery(jpql, MobileSegment.class).setFlushMode(FlushModeType.COMMIT).setParameter("segment",segment).getSingleResult(); } catch (NoResultException e) { return null; } } }
[ "hujun519191086@163.com" ]
hujun519191086@163.com
f1cee10d6df47f12eeec272f192d9770551bc19e
c074acf2945feebfe5927478eb36dee946364f0a
/leetcode/src/main/java/com/chang/leetcode/Problem86.java
cd380bf0d9f99944c8721ca1082ffc0d789171e5
[]
no_license
wooyeeyii/think-in-java
fcbf9d7baf9fe30ac0dbdb8ebe43a98f69541175
3d8c7ab5a7ede7b9d625881bda350ecc19a47375
refs/heads/master
2021-11-08T17:08:10.117191
2021-11-05T01:22:40
2021-11-05T01:22:40
178,848,694
1
0
null
null
null
null
UTF-8
Java
false
false
2,614
java
/* * 86. Partition List * * Given a linked list and a value x, partition it such that all nodes * less than x come before nodes greater than or equal to x. * * You should preserve the original relative order of the nodes in each of the two partitions. * * Example: * Input: head = 1->4->3->2->5->2, x = 3 * Output: 1->2->2->4->3->5 */ package com.chang.leetcode; import com.chang.common.ListNode; public class Problem86 { public ListNode partition(ListNode head, int x) { ListNode preHead = new ListNode(-1); preHead.next = head; ListNode prePos = preHead; ListNode nodePos = head; ListNode pre = preHead; ListNode node = head; while (null != node && x > node.val) { if (node.val > nodePos.val) { prePos = pre; nodePos = node; } pre = node; node = node.next; } if (null != node && node.val >= x) { if (node.val > nodePos.val) { prePos = pre; nodePos = node; } pre = node; node = node.next; } while (null != node) { if (node.val < x) { pre.next = node.next; node.next = prePos.next; prePos.next = node; prePos = node; node = pre.next; } else { pre = node; node = node.next; } } return preHead.next; } public static void main(String[] args) { Problem86 problem = new Problem86(); ListNode n1 = new ListNode(1); ListNode n2 = new ListNode(4); ListNode n3 = new ListNode(3); ListNode n4 = new ListNode(2); ListNode n5 = new ListNode(5); ListNode n6 = new ListNode(2); n1.next = n2; n2.next = n3; n3.next = n4; n4.next = n5; n5.next = n6; ListNode res = problem.partition(n1, 3); //1->2->2->4->3->5 while (null != res) { System.out.println(res.val + ", "); res = res.next; } System.out.println("#################"); // input [3,1] 2 //output [1,3] ListNode m1 = new ListNode(3); ListNode m2 = new ListNode(1); m1.next = m2; ListNode res2 = problem.partition(m1, 2); //1->2->2->4->3->5 while (null != res2) { System.out.println(res2.val + ", "); res2 = res2.next; } System.out.println("#################"); } }
[ "wooyeeyii@163.com" ]
wooyeeyii@163.com
81863fc9b8039d889065fb2cc9b7b83759cfbd45
fa5fb9ccc28d8ebdfb4ec10098241822c3129bee
/DrivingTest/app/src/main/java/cn/hongjitech/vehicle/javaBean/ReservationInfoRoot.java
138c38ce6cbe3bc4370ce0025c60c5e202f91a36
[]
no_license
JiaoPengJob/TechPro
b9a83b07c061fae284330613e96ebaca737e5a5c
6d930653fabb338f10b37899f9eaf646599eaa5d
refs/heads/master
2020-04-06T06:53:41.157609
2016-09-14T02:39:09
2016-09-14T02:39:09
65,542,251
0
0
null
null
null
null
UTF-8
Java
false
false
682
java
package cn.hongjitech.vehicle.javaBean; import java.util.List; /** * 预约信息:根 */ public class ReservationInfoRoot { private String result; private List<ReservationInfo> data; public ReservationInfoRoot() { } public ReservationInfoRoot(String result, List<ReservationInfo> data) { this.result = result; this.data = data; } public String getResult() { return result; } public void setResult(String result) { this.result = result; } public List<ReservationInfo> getData() { return data; } public void setData(List<ReservationInfo> data) { this.data = data; } }
[ "jiaopengjob@outlook.com" ]
jiaopengjob@outlook.com
8e1507b6668eef8a4dff867bf62f6acd07f89111
f585bd4254b912d6e0cae13653312e063d3e4696
/app_network/src/main/java/com/sdxxtop/guardianapp/model/bean/InitBean.java
1e79f1468e00f199f1240f53bdc239bf7f3f2913
[]
no_license
ZhouSilverBullet/GuardianApp
4844a647f72cc7bf9467e6f063d0e24ee4795f47
ece98a058303beb25f88db11b46a08d40ff51f69
refs/heads/master
2020-04-29T06:57:52.841323
2020-03-19T07:28:40
2020-03-19T07:28:40
175,936,517
3
0
null
null
null
null
UTF-8
Java
false
false
1,430
java
package com.sdxxtop.guardianapp.model.bean; public class InitBean { // { // "apk_url":"",//app更新地址 // "version_code":"20100",//更新后的版本号 // "version_name":"V2.1.0",//版本名称 // "content":"1.增加学生考勤功能 | 2.as科技的", //版本更新内容,用|代表换行,客户端需要自行处理 // "force_update":0,//是否为强制更新0:非强更 1:强更 // } private String apk_url; private String version_code; private String version_name; private String content; private int force_update; public String getApk_url() { return apk_url; } public void setApk_url(String apk_url) { this.apk_url = apk_url; } public String getVersion_code() { return version_code; } public void setVersion_code(String version_code) { this.version_code = version_code; } public String getVersion_name() { return version_name; } public void setVersion_name(String version_name) { this.version_name = version_name; } public String getContent() { return content; } public void setContent(String content) { this.content = content; } public int getForce_update() { return force_update; } public void setForce_update(int force_update) { this.force_update = force_update; } }
[ "zhousaito@163.com" ]
zhousaito@163.com
afc8a98b0e13a54fd449951f4ac6bd1bca69e1fc
d820ddb3deeb74b51a80f57603ac5760a61da75e
/src/main/java/org/zerock/domain/mountain/MnameVO.java
35a7b3c4b184e51e3228dd7e7cf3abb9eb045783
[]
no_license
dmswldi/mountain
ff5be07a9226c0aa317ae0a96681ae67b33a266d
5a675d7a647e718fe247b37cc51dc64e0adc0cc7
refs/heads/master
2023-03-09T09:38:06.380008
2021-02-26T09:17:24
2021-02-26T09:17:24
335,507,239
0
0
null
null
null
null
UTF-8
Java
false
false
130
java
package org.zerock.domain.mountain; import lombok.Data; @Data public class MnameVO { private Long no; private String mname; }
[ "eeeunzz20@gmail.com" ]
eeeunzz20@gmail.com
08d476186f369425b5543b9e2acce120c6ebc744
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/android/finsky/zapp/C4861t.java
57a77d9987c1bc7eb2b16ecb10d544619ade3bde
[]
no_license
enaawy/gproject
fd71d3adb3784d12c52daf4eecd4b2cb5c81a032
91cb88559c60ac741d4418658d0416f26722e789
refs/heads/master
2021-09-03T03:49:37.813805
2018-01-05T09:35:06
2018-01-05T09:35:06
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,146
java
package com.google.android.finsky.zapp; import android.content.Context; import android.content.pm.PackageManager.NameNotFoundException; import android.content.pm.Signature; import android.util.Log; import com.android.p2putils.ApkSignatureSchemeV2Verifier; import com.android.p2putils.ApkSignatureSchemeV2Verifier.SignatureNotFoundException; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.ArrayList; import java.util.List; public final class C4861t { public static X509Certificate[][] m22743a(File file) { try { return ApkSignatureSchemeV2Verifier.m4194a(file.getAbsolutePath()); } catch (SignatureNotFoundException e) { return null; } catch (SecurityException e2) { return null; } catch (IOException e3) { return null; } } public static Signature[] m22741a(Context context) { return C4861t.m22742a(context, context.getPackageName()); } public static List m22745b(Context context) { try { String[] list = context.getAssets().list("split_certs"); if (list == null || list.length == 0) { Log.i("DynamicModuleDownloader", "No split certificates could be read from the relevant assets folder."); return null; } List arrayList = new ArrayList(); for (String str : list) { String str2; if (str2.endsWith(".pem")) { String valueOf = String.valueOf("split_certs/"); str2 = String.valueOf(str2); X509Certificate b = C4861t.m22744b(context, str2.length() != 0 ? valueOf.concat(str2) : new String(valueOf)); if (b != null) { arrayList.add(b); } } } return arrayList; } catch (IOException e) { Log.i("DynamicModuleDownloader", "An IOException is encountered while accessing the split certificates folder."); return null; } } private static X509Certificate m22744b(Context context, String str) { String str2; String str3; String valueOf; try { return (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(context.getAssets().open(str)); } catch (FileNotFoundException e) { str2 = "DynamicModuleDownloader"; str3 = "Certificate file could not be found. Check: "; valueOf = String.valueOf(str); Log.e(str2, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3)); } catch (CertificateException e2) { str2 = "DynamicModuleDownloader"; str3 = "Certificate signature could not be extracted from file. Check: "; valueOf = String.valueOf(str); Log.e(str2, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3)); } catch (IOException e3) { str2 = "DynamicModuleDownloader"; str3 = "Certificate signature could not be read from file. Check: "; valueOf = String.valueOf(str); Log.e(str2, valueOf.length() != 0 ? str3.concat(valueOf) : new String(str3)); } return null; } static Signature[] m22742a(Context context, String str) { try { return context.getPackageManager().getPackageInfo(str, 64).signatures; } catch (NameNotFoundException e) { return null; } } static X509Certificate m22740a(Signature signature) { try { return (X509Certificate) CertificateFactory.getInstance("X509").generateCertificate(new ByteArrayInputStream(signature.toByteArray())); } catch (CertificateException e) { Log.e("DynamicModuleDownloader", "Cannot decode certificate."); return null; } } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
4f915fa64551e215c6e51599b40213d7591e0793
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/XWIKI-13316-2-10-NSGA_II-LineCoverage:ExceptionType:StackTraceSimilarity/com/xpn/xwiki/internal/skin/AbstractSkin_ESTest.java
dd87ccdef2d4e9665c1f05d8b85e22396cb58c2b
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
1,686
java
/* * This file was automatically generated by EvoSuite * Sun Apr 05 22:41:35 UTC 2020 */ package com.xpn.xwiki.internal.skin; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import ch.qos.logback.classic.Logger; import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.internal.skin.EnvironmentSkin; import com.xpn.xwiki.internal.skin.InternalSkinConfiguration; import com.xpn.xwiki.internal.skin.InternalSkinManager; import javax.inject.Provider; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.evosuite.runtime.ViolatedAssumptionAnswer; import org.hibernate.loader.custom.sql.SQLCustomQuery; import org.junit.runner.RunWith; import org.xwiki.environment.Environment; import org.xwiki.rendering.internal.syntax.DefaultSyntaxFactory; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class AbstractSkin_ESTest extends AbstractSkin_ESTest_scaffolding { @Test(timeout = 4000) public void test0() throws Throwable { InternalSkinConfiguration internalSkinConfiguration0 = mock(InternalSkinConfiguration.class, new ViolatedAssumptionAnswer()); Logger logger0 = (Logger)SQLCustomQuery.log; DefaultSyntaxFactory defaultSyntaxFactory0 = new DefaultSyntaxFactory(); EnvironmentSkin environmentSkin0 = new EnvironmentSkin((String) null, (InternalSkinManager) null, internalSkinConfiguration0, logger0, defaultSyntaxFactory0, (Environment) null, (Provider<XWikiContext>) null); // Undeclared exception! environmentSkin0.getOutputSyntax(); } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
e3b24698ab436e3c864afaaa17b18a7cff87f631
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/java/neo4j/2015/8/LegacyLogEntryWriterTest.java
3015c55bcf7b1aa8eeb1e15b02bb6a4532add81c
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Java
false
false
7,442
java
/* * Copyright (c) 2002-2015 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.neo4j.kernel.impl.storemigration.legacylogs; import static org.junit.Assert.assertEquals; import static org.mockito.Matchers.eq; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.neo4j.kernel.impl.storemigration.legacylogs.LegacyLogFilenames.getLegacyLogFilename; import static org.neo4j.kernel.impl.transaction.log.LogPosition.UNSPECIFIED; import static org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart.EMPTY_ADDITIONAL_ARRAY; import static org.neo4j.kernel.impl.transaction.log.entry.LogHeaderReader.readLogHeader; import static org.neo4j.kernel.impl.transaction.log.entry.LogVersions.CURRENT_LOG_VERSION; import java.io.File; import java.io.IOException; import java.util.Arrays; import org.junit.Test; import org.neo4j.function.Function; import org.neo4j.graphdb.mockfs.EphemeralFileSystemAbstraction; import org.neo4j.io.fs.FileSystemAbstraction; import org.neo4j.kernel.impl.transaction.TransactionRepresentation; import org.neo4j.kernel.impl.transaction.command.Command; import org.neo4j.kernel.impl.transaction.log.IOCursor; import org.neo4j.kernel.impl.transaction.log.LogVersionedStoreChannel; import org.neo4j.kernel.impl.transaction.log.PhysicalTransactionRepresentation; import org.neo4j.kernel.impl.transaction.log.WritableLogChannel; import org.neo4j.kernel.impl.transaction.log.entry.LogEntry; import org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommand; import org.neo4j.kernel.impl.transaction.log.entry.LogEntryCommit; import org.neo4j.kernel.impl.transaction.log.entry.LogEntryStart; import org.neo4j.kernel.impl.transaction.log.entry.LogEntryWriter; import org.neo4j.kernel.impl.transaction.log.entry.LogHeader; import org.neo4j.kernel.impl.transaction.log.entry.OnePhaseCommit; public class LegacyLogEntryWriterTest { private final FileSystemAbstraction fs = new EphemeralFileSystemAbstraction(); @Test public void shouldWriteTheHeaderInTheFile() throws IOException { // given final LegacyLogEntryWriter writer = new LegacyLogEntryWriter( fs ); final File output = new File( getLegacyLogFilename( 3 ) ); final LogHeader header = new LogHeader( CURRENT_LOG_VERSION, 1, 42l ); // when try ( LogVersionedStoreChannel channel = writer.openWritableChannel( output ) ) { writer.writeLogHeader( channel, header ); } // then assertEquals( header, readLogHeader( fs, output ) ); } @Test public void shouldWriteAllTheEntryInACommitToTheFile() throws IOException { // given final LogVersionedStoreChannel channel = mock( LogVersionedStoreChannel.class ); final LogEntryWriter logEntryWriter = mock( LogEntryWriter.class ); final LegacyLogEntryWriter writer = new LegacyLogEntryWriter( fs, liftToFactory( logEntryWriter ) ); final LogEntryStart start = new LogEntryStart( 0, 1, 2l, 3l, EMPTY_ADDITIONAL_ARRAY, UNSPECIFIED ); final LogEntryCommand command = new LogEntryCommand( new Command.NodeCommand() ); final LogEntryCommit commit = new OnePhaseCommit( 42l, 43l ); // when final IOCursor<LogEntry> cursor = mockCursor( start, command, commit ); writer.writeAllLogEntries( channel, cursor ); // then verify( logEntryWriter, times( 1 ) ).writeStartEntry( 0, 1, 2l, 3l, EMPTY_ADDITIONAL_ARRAY ); final TransactionRepresentation expected = new PhysicalTransactionRepresentation( Arrays.asList( command.getXaCommand() ) ); verify( logEntryWriter, times( 1 ) ).serialize( eq( expected ) ); verify( logEntryWriter, times( 1 ) ).writeCommitEntry( 42l, 43l ); } @Test public void shouldWriteAllTheEntryInSeveralCommitsToTheFile() throws IOException { // given final LogVersionedStoreChannel channel = mock( LogVersionedStoreChannel.class ); final LogEntryWriter logEntryWriter = mock( LogEntryWriter.class ); final LegacyLogEntryWriter writer = new LegacyLogEntryWriter( fs, liftToFactory( logEntryWriter ) ); final LogEntryStart start1 = new LogEntryStart( 0, 1, 2l, 3l, EMPTY_ADDITIONAL_ARRAY, UNSPECIFIED ); final LogEntryCommand command1 = new LogEntryCommand( new Command.NodeCommand() ); final LogEntryCommit commit1 = new OnePhaseCommit( 42l, 43l ); final LogEntryStart start2 = new LogEntryStart( 9, 8, 7l, 6l, EMPTY_ADDITIONAL_ARRAY, UNSPECIFIED ); final LogEntryCommand command2 = new LogEntryCommand( new Command.RelationshipCommand() ); final LogEntryCommit commit2 = new OnePhaseCommit( 84l, 85l ); // when IOCursor<LogEntry> cursor = mockCursor( start1, command1, commit1, start2, command2, commit2 ); writer.writeAllLogEntries( channel, cursor ); // then verify( logEntryWriter, times( 1 ) ).writeStartEntry( 0, 1, 2l, 3l, EMPTY_ADDITIONAL_ARRAY ); final TransactionRepresentation expected1 = new PhysicalTransactionRepresentation( Arrays.asList( command1.getXaCommand() ) ); verify( logEntryWriter, times( 1 ) ).serialize( eq( expected1 ) ); verify( logEntryWriter, times( 1 ) ).writeCommitEntry( 42l, 43l ); verify( logEntryWriter, times( 1 ) ).writeStartEntry( 9, 8, 7l, 6l, EMPTY_ADDITIONAL_ARRAY ); final TransactionRepresentation expected2 = new PhysicalTransactionRepresentation( Arrays.asList( command2.getXaCommand() ) ); verify( logEntryWriter, times( 1 ) ).serialize( eq( expected2 ) ); verify( logEntryWriter, times( 1 ) ).writeCommitEntry( 84l, 85l ); } private Function<WritableLogChannel, LogEntryWriter> liftToFactory( final LogEntryWriter logEntryWriter ) { return new Function<WritableLogChannel, LogEntryWriter>() { @Override public LogEntryWriter apply( WritableLogChannel ignored ) { return logEntryWriter; } }; } private IOCursor<LogEntry> mockCursor( final LogEntry... entries ) { return new IOCursor<LogEntry>() { private int pos = 0; @Override public LogEntry get() { return entries[pos++]; } @Override public boolean next() throws IOException { return pos < entries.length; } @Override public void close() throws IOException {// nothing to do } }; } }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
8176e81d27298de3bfe0fe720be539cb9891e837
47e3740b9ec46637d820e981053a51745dc66b73
/MicrobankCli/CliSimbiosis/src/org/simbiosis/cli/base/TestUtils.java
0bc3da40590ab44c920d44117d30857f11c24465
[]
no_license
simbiosis1/MicrobankApp
4051a30d9147085df905b9105dc6669e9aa2b365
7d9ac104893985aa0e6c39b850a51b360852ff3c
refs/heads/master
2020-06-04T22:39:58.886792
2015-07-21T00:50:01
2015-07-21T00:50:01
33,455,226
0
1
null
null
null
null
UTF-8
Java
false
false
379
java
package org.simbiosis.cli.base; import org.joda.time.DateTime; public class TestUtils { private DateTools dateTools = new DateTools(); public static void main(String[] args) { new TestUtils(); } public TestUtils() { DateTime date = dateTools.getValidDate(35, 2,2015); System.out.println("Tanggal yang keluar = "+dateTools.getDateTimeFormatter().print(date)); } }
[ "iwanaf@gmail.com" ]
iwanaf@gmail.com
82db532417e619da460c01406a2d80ead091334d
38287b8e62016230551840c9d4c8fbd4e473f420
/mallcore/src/main/java/com/hxqc/mall/core/views/dialog/SubmitDialog.java
f393191bfe5d3154c0f1108cdbc641e92374336e
[]
no_license
isliulin/Mall3
f950f87376b9573ee196b762eb1833d8b5c145d8
b27f73feb17e93cb6fd0d4991fd99c1037dd0427
refs/heads/master
2023-03-15T23:24:33.795603
2017-02-16T07:03:58
2017-02-16T07:03:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,050
java
package com.hxqc.mall.core.views.dialog; import android.app.Dialog; import android.content.Context; import android.view.Window; import android.widget.TextView; import com.hxqc.mall.core.R; /** * 说明:提交内容对话框 * * author: 吕飞 * since: 2015-03-25 * Copyright:恒信汽车电子商务有限公司 */ public class SubmitDialog extends Dialog { public TextView mTextView; public SubmitDialog(Context context) { super(context); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.dialog_submit); setCancelable(false); mTextView = (TextView) findViewById(R.id.text); } public SubmitDialog(Context context,String text) { super(context); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.dialog_submit); setCancelable(false); mTextView = (TextView) findViewById(R.id.text); mTextView.setText(text); } public void setText(String text) { mTextView.setText(text); } }
[ "1239251224@qq.com" ]
1239251224@qq.com
e4805840281cb7cf01d157ce7a8fea0ee4e58ee6
d4929eb690c796b9e24c54cd641d7b56c411efdd
/design-patterns/src/behavioral/interpreter/InterpreterPatternMain.java
cd7ddebcfcc1503faafa2d4b76bef266e17d9132
[]
no_license
oalam/cours
4efc03b8ef8cdc5aa61536bd1fbeb02ff7f24f39
bd2779c3d1b5cabf91cb98eefeda1134cbfb3c76
refs/heads/master
2020-05-21T13:17:14.388476
2012-12-04T11:24:39
2012-12-04T11:24:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,558
java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package behavioral.interpreter; public class InterpreterPatternMain { public static void main(String[] args) { // Création des expressions non terminales ExpressionNonTerminale lRacine = new ExpressionNonTerminale("RACINE"); ExpressionNonTerminale lElement1 = new ExpressionNonTerminale("ELEMENT1"); ExpressionNonTerminale lElement2 = new ExpressionNonTerminale("ELEMENT2"); ExpressionNonTerminale lElement3 = new ExpressionNonTerminale("ELEMENT3"); // Création des expressions terminales ExpressionTerminal lTexte1 = new ExpressionTerminal("TEXTE1"); ExpressionTerminal lTexte2 = new ExpressionTerminal("TEXTE2"); // Construit l'arborescence lRacine.ajouterExpression(lElement1); lRacine.ajouterExpression(lElement2); lElement2.ajouterExpression(lElement3); lElement1.ajouterExpression(lTexte1); lElement3.ajouterExpression(lTexte2); // Appel la méthode de l'expression racine lRacine.operation(); // Affichage : // <RACINE> // <ELEMENT1> // TEXTE1 // </ELEMENT1> // <ELEMENT2> // <ELEMENT3> // TEXTE2 // </ELEMENT3> // </ELEMENT2> // </RACINE> } }
[ "bailet.thomas@gmail.com" ]
bailet.thomas@gmail.com
50a51bfb33054502b15a62446a1a996ba05dd0a1
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/2/2_9cacfe55a2acd3a9e35d01b025dc3a40c6fcb3d2/GameController/2_9cacfe55a2acd3a9e35d01b025dc3a40c6fcb3d2_GameController_s.java
b981aafcdadac26f302b8f1d6fdacbabafb1b772
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
6,619
java
package de.tu_darmstadt.gdi1.samegame.controller; import java.awt.Color; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import static java.awt.event.KeyEvent.*; import java.io.File; import java.util.Locale; import javax.swing.JButton; import javax.swing.JMenuItem; import javax.swing.undo.CannotRedoException; import javax.swing.undo.CannotUndoException; import de.tu_darmstadt.gdi1.samegame.exceptions.ParameterOutOfRangeException; import de.tu_darmstadt.gdi1.samegame.model.Level; import de.tu_darmstadt.gdi1.samegame.view.SameGameViewer; import de.tu_darmstadt.gdi1.samegame.controller.AbstractController; import de.tu_darmstadt.gdi1.samegame.exceptions.InternalFailureException; import de.tu_darmstadt.gdi1.samegame.view.gameframes.MainPanel; public class GameController extends AbstractController{ private SameGameViewer viewer; public GameController(Level level){ this.level = level; } public GameController(Level level, SameGameViewer viewer){ this.level = level; this.viewer = viewer; } public void setLevel(Level level){ this.level = level; } @Override public void menuClick(JMenuItem menuItem){ String menuName = menuItem.getName(); if (menuName.equals("GameMenu_RestartLvl") ) level.restartLevel(); if (menuName.equals("FileMenu_GenerateLevel")){ viewer.closeMainFrame(); viewer.setLevel(level); level.generateLevel(10, 10, 5, 3); } if (menuName.equals("Skin_Default")) viewer.setSkin("defaultskin", Color.white, Color.black, Color.LIGHT_GRAY); if (menuName.equals("Skin_Tuskin")) viewer.setSkin("tuskin", Color.black, Color.white, Color.black); if (menuName.equals("Skin_Squareskin")) viewer.setSkin("squareskin", Color.white, Color.black, Color.white); if (menuName.equals("Skin_Ballskin")) viewer.setSkin("ballskin", Color.black, Color.white, Color.black); if (menuName.equals("Skin_Jewelskin")) viewer.setSkin("jewelskin", Color.white, Color.black, Color.white); if (menuName.equals("FileMenu_SaveLevel")) viewer.showFileChooseDialog("SaveLevel"); if (menuName.equals("FileMenu_LoadLevel")) viewer.showFileChooseDialog("LoadLevel"); if (menuName.equals("FileMenu_Exit")) viewer.closeMainFrame(); if (menuName.equals("GameMenu_Undo")) level.undo(); if (menuName.equals("GameMenu_Redo")) level.redo(); if (menuName.equals("German")) viewer.setLanguage(new Locale("de", "DE")); if (menuName.equals("English")) viewer.setLanguage(new Locale("en", "US")); if (menuName.equals("Polish")) viewer.setLanguage(new Locale("pl", "PL")); if (menuName.equals("About")) viewer.showAboutFrame(); if (menuName.equals("FileMenu_GenerateCustomLevel")) //viewer.showCustomizeFrame(); if (menuName.equals("FileMenu_SaveGameState")) viewer.showFileChooseDialog("SaveGameState"); if (menuName.equals("FileMenu_LoadGameState")) viewer.showFileChooseDialog("LoadGameState"); } @Override public void fieldClick(ActionEvent e, JButton b){ JButton btn = b; if (e.getSource() == btn) { // determine x and y position int posX = (int)btn.getLocation().getX(); int posY = (int)btn.getLocation().getY(); entityClicked(posX / btn.getWidth(), posY / btn.getHeight()); } } @Override public void fileChoosed(String source, File f){ try{ if(source.equals("LoadLevel")){ Level newLevel = new Level(viewer); newLevel.restoreLevel(f); viewer.setLevel(newLevel); this.level = newLevel; viewer.closeMainFrame(); viewer.showMainFrame(); viewer.notifyLevelLoaded(); }else if(source.equals("SaveLevel")){ // TODO }else if(source.equals("LoadGameState")){ // TODO }else if(source.equals("SaveGameState")){ // TODO } }catch(Exception e){ e.printStackTrace(); } } public void entityClicked(int positionX, int positionY){ MainPanel panel = viewer.getMainPanel(); panel.getParentWindow().requestFocus(); if(!viewer.duringAnimation() && level.removeable(positionY, positionX)){ try{ viewer.startAnimation(positionY, positionX, 500); level.removeStone(positionY, positionX); panel.redraw(); }catch(ParameterOutOfRangeException e){ viewer.showAlertFrame(e.getParameterName(), "Parameter out of Range"); }catch(InternalFailureException e){ viewer.showAlertFrame(e.getMessage(), "Internal Failure"); } } } @Override public void keyPressed(KeyEvent e){ int key = e.getKeyCode(); int markedRow = 0; int markedCol = 0; if(viewer!=null){ markedRow = viewer.getMarkedFieldRow(); markedCol = viewer.getMarkedFieldCol(); viewer.markField(markedRow, markedCol); } switch(key){ case VK_N: level.restartLevel(); break; case VK_BACK_SPACE: if (viewer.duringAnimation() != true) try{ level.undo(); }catch(CannotUndoException ignored){} break; case VK_ENTER: if (viewer.duringAnimation() != true) try{ level.redo(); }catch(CannotRedoException ignored){} break; case VK_SPACE: if (viewer.duringAnimation() != true) entityClicked(markedCol, markedRow); break; case VK_LEFT: if (markedCol >0){ markedCol -=1; viewer.markField(markedRow,markedCol); try{ viewer.getMainPanel().redraw(); }catch(InternalFailureException ex){ viewer.showAlertFrame(ex.getMessage(), "Internal Failure"); } } break; case VK_RIGHT: if (markedCol < level.getFieldWidth()-1){ markedCol +=1; viewer.markField(markedRow,markedCol); try{ viewer.getMainPanel().redraw(); }catch(InternalFailureException ex){ viewer.showAlertFrame(ex.getMessage(), "Internal Failure"); } } break; case VK_UP: if (markedRow >0){ markedRow -=1; viewer.markField(markedRow, markedCol); try{ viewer.getMainPanel().redraw(); }catch(InternalFailureException ex){ viewer.showAlertFrame(ex.getMessage(), "Internal Failure"); } } break; case VK_DOWN: if (markedRow < level.getFieldHeight()-1){ markedRow +=1; viewer.markField(markedRow, markedCol); try{ viewer.getMainPanel().redraw(); }catch(InternalFailureException ex){ viewer.showAlertFrame(ex.getMessage(), "Internal Failure"); } } break; case VK_T: viewer.showHighscoreFrame(); break; default:; } } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
4c88d540e31df8f8a839e66a35a4941489d14733
760431162a8eb98a8bf4c7ba657a7278a389bc4c
/roomdb/src/androidTest/java/com/ericshenn/address/roomdb/ExampleInstrumentedTest.java
4f102f9112535b4278a01aca859f330f3859eddf
[]
no_license
EricQianTW/Android-Component_development
17aba6c9f6aa53f9c286f54f930dc6dc568123cc
22957418c6e263706341cecb63aea3e4a98ea5ba
refs/heads/master
2020-03-30T19:22:27.886413
2018-10-04T08:18:26
2018-10-04T08:18:26
151,539,151
0
0
null
null
null
null
UTF-8
Java
false
false
755
java
package com.ericshenn.address.roomdb; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() throws Exception { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.xcecs.mtbs.roomdb.test", appContext.getPackageName()); } }
[ "pnt_twqian@163.com" ]
pnt_twqian@163.com
1a88572b16ed380a129a95e1a0a0030bde405abd
ad861e0ba1acb3333acf0a60adbdf2f3a8a8b23c
/src/com/cn/javass/dp/strategy/example5/RMBCash.java
8521469e459d74028ed0f0d8846b77fac6ec42fa
[]
no_license
qingziguanjun/datastructure
2b0487ee2196a32628425ae398daa06700f786e0
74fab15e932599bac8e8a9d15ec848fe9fd88154
refs/heads/master
2021-07-05T16:08:32.839758
2021-05-06T06:52:11
2021-05-06T06:52:11
234,649,789
0
0
null
null
null
null
GB18030
Java
false
false
271
java
package com.cn.javass.dp.strategy.example5; /** * 人民币现金支付 */ public class RMBCash implements PaymentStrategy{ public void pay(PaymentContext ctx) { System.out.println("现在给"+ctx.getUserName()+"人民币现金支付"+ctx.getMoney()+"元"); } }
[ "songyi@meituan.com" ]
songyi@meituan.com
3d8d46e11a4f2bb199d8754b8684bb9884b385ed
a03ddb4111faca852088ea25738bc8b3657e7b5c
/TestTransit/src/com/google/android/gms/games/internal/GamesClientImpl$RoomConnectedCallback.java
35bcf971ff4e72571be4b20d0adbfb50768c3dad
[]
no_license
randhika/TestMM
5f0de3aee77b45ca00f59cac227450e79abc801f
4278b34cfe421bcfb8c4e218981069a7d7505628
refs/heads/master
2020-12-26T20:48:28.446555
2014-09-29T14:37:51
2014-09-29T14:37:51
24,874,176
2
0
null
null
null
null
UTF-8
Java
false
false
945
java
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.google.android.gms.games.internal; import com.google.android.gms.common.data.DataHolder; import com.google.android.gms.games.multiplayer.realtime.Room; import com.google.android.gms.games.multiplayer.realtime.RoomUpdateListener; // Referenced classes of package com.google.android.gms.games.internal: // GamesClientImpl private final class init> extends init> { final GamesClientImpl NE; public void a(RoomUpdateListener roomupdatelistener, Room room, int i) { roomupdatelistener.onRoomConnected(i, room); } Q(GamesClientImpl gamesclientimpl, RoomUpdateListener roomupdatelistener, DataHolder dataholder) { NE = gamesclientimpl; super(gamesclientimpl, roomupdatelistener, dataholder); } }
[ "metromancn@gmail.com" ]
metromancn@gmail.com
7c1437bad5ad2bb4b5200a93f4187ea6543a6c2f
2088303ad9939663f5f8180f316b0319a54bc1a6
/src/test/java/com/lottery/test/lottype/AnHuiK3Test.java
4a017fc6d856f150fcfb5a63f88edfab287c89b2
[]
no_license
lichaoliu/lottery
f8afc33ccc70dd5da19c620250d14814df766095
7796650e5b851c90fce7fd0a56f994f613078e10
refs/heads/master
2022-12-23T05:30:22.666503
2019-06-10T13:46:38
2019-06-10T13:46:38
141,867,129
7
1
null
2022-12-16T10:52:50
2018-07-22T04:59:44
Java
UTF-8
Java
false
false
727
java
package com.lottery.test.lottype; import java.math.BigDecimal; import java.util.List; import org.junit.Test; import com.lottery.lottype.AnHuiKuai3; import com.lottery.lottype.SplitedLot; public class AnHuiK3Test { AnHuiKuai3 k3 = new AnHuiKuai3(); @Test public void test() { System.out.println(k3.validate("100811-3,5^", new BigDecimal(400), new BigDecimal(1), 200)); System.out.println(k3.validate("100812-1,4*2,5^", new BigDecimal(800), new BigDecimal(1), 200)); } @Test public void testSplit() { List<SplitedLot> splits = k3.split("100811-3,5^", 100, 40000, 200); for(SplitedLot s:splits) { System.out.println(s.getLotterytype()+ " "+s.getBetcode()+" "+s.getLotMulti()+" "+s.getAmt()); } } }
[ "1147149597@qq.com" ]
1147149597@qq.com
c0c9b4c3fc63d5bc32b58840a0bbcf9840d17f88
8af1164bac943cef64e41bae312223c3c0e38114
/results-java/elastic--elasticsearch/904cbf53409ae62bb67cd07c31ef88121cff9361/after/LimitQueryBuilder.java
63e242875fe3daefcd2d02e4ed1a66def2eace10
[]
no_license
fracz/refactor-extractor
3ae45c97cc63f26d5cb8b92003b12f74cc9973a9
dd5e82bfcc376e74a99e18c2bf54c95676914272
refs/heads/master
2021-01-19T06:50:08.211003
2018-11-30T13:00:57
2018-11-30T13:00:57
87,353,478
0
0
null
null
null
null
UTF-8
Java
false
false
2,812
java
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.index.query; import org.apache.lucene.search.Query; import org.elasticsearch.action.search.SearchRequestBuilder; import org.elasticsearch.common.io.stream.StreamInput; import org.elasticsearch.common.io.stream.StreamOutput; import org.elasticsearch.common.lucene.search.Queries; import org.elasticsearch.common.xcontent.XContentBuilder; import java.io.IOException; /** * @deprecated Use {@link SearchRequestBuilder#setTerminateAfter(int)} instead. */ @Deprecated public class LimitQueryBuilder extends AbstractQueryBuilder<LimitQueryBuilder> { public static final String NAME = "limit"; private final int limit; static final LimitQueryBuilder PROTOTYPE = new LimitQueryBuilder(-1); public LimitQueryBuilder(int limit) { this.limit = limit; } public int limit() { return limit; } @Override protected void doXContent(XContentBuilder builder, Params params) throws IOException { builder.startObject(NAME); builder.field("value", limit); printBoostAndQueryName(builder); builder.endObject(); } @Override protected Query doToQuery(QueryShardContext context) throws IOException { // this filter is deprecated and parses to a filter that matches everything return Queries.newMatchAllQuery(); } @Override public QueryValidationException validate() { // nothing to validate return null; } @Override protected boolean doEquals(LimitQueryBuilder other) { return Integer.compare(other.limit, limit) == 0; } @Override protected int doHashCode() { return this.limit; } @Override protected LimitQueryBuilder doReadFrom(StreamInput in) throws IOException { return new LimitQueryBuilder(in.readInt()); } @Override protected void doWriteTo(StreamOutput out) throws IOException { out.writeInt(limit); } @Override public String getName() { return NAME; } }
[ "fraczwojciech@gmail.com" ]
fraczwojciech@gmail.com
aa86d5652dbf6eac1ab973345a15959735c6f179
d714a28521865130d0340364da9953feb236336e
/riptide-opentracing/src/main/java/org/zalando/riptide/opentracing/span/HttpResponseHeaderSpanDecorator.java
9952a8e32b0b1c5d16459f9c3b63206d250c9dd4
[ "MIT" ]
permissive
zalando/riptide
52e81ef13c85a4af6422360f5c19ee82959024c2
ce3e7fda2ded5b5f2867732461e70fc5056ed0ae
refs/heads/main
2023-08-31T22:11:59.704472
2023-08-29T15:35:34
2023-08-29T15:35:34
33,559,545
281
79
MIT
2023-09-12T07:54:45
2015-04-07T18:03:31
Java
UTF-8
Java
false
false
693
java
package org.zalando.riptide.opentracing.span; import io.opentracing.Span; import lombok.AllArgsConstructor; import org.apiguardian.api.API; import org.springframework.http.client.ClientHttpResponse; import org.zalando.riptide.RequestArguments; import static org.apiguardian.api.API.Status.INTERNAL; @API(status = INTERNAL) @AllArgsConstructor final class HttpResponseHeaderSpanDecorator implements SpanDecorator { private final HttpSpanOperator operator; @Override public void onResponse( final Span span, final RequestArguments arguments, final ClientHttpResponse response) { operator.apply(span, response.getHeaders()); } }
[ "w.schoenborn@gmail.com" ]
w.schoenborn@gmail.com
9ec8e04d93f5b270d0a1d8751fe0a866b97d387c
9877ff9f13b35be0316619a6bef7cf95d9421ca9
/src/main/java/mvc3/config/MongoConfig.java
3d3840e9bbc8e4cbc55a8a43df9cf3e31b3942f3
[]
no_license
levelp/SpringMVC4
4f7403d83105320b7802e1df14c26a2f1d676527
222803177e099e728a693b6e0fcdbc2485310e69
refs/heads/master
2021-01-10T08:40:32.327805
2017-02-08T19:26:39
2017-02-08T20:10:28
54,267,567
1
4
null
null
null
null
UTF-8
Java
false
false
1,646
java
package mvc3.config; import com.mongodb.Mongo; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Lazy; import org.springframework.data.mongodb.MongoDbFactory; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.SimpleMongoDbFactory; import org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper; import org.springframework.data.mongodb.core.convert.MappingMongoConverter; import org.springframework.data.mongodb.core.convert.MongoTypeMapper; import org.springframework.data.mongodb.core.mapping.MongoMappingContext; import java.net.UnknownHostException; @Configuration @Lazy class MongoConfig { @Bean public MongoDbFactory mongoDbFactory() throws UnknownHostException { return new SimpleMongoDbFactory(new Mongo(), "mvc-demo"); } @Bean public MongoTemplate mongoTemplate() throws UnknownHostException { MongoTemplate template = new MongoTemplate(mongoDbFactory(), mongoConverter()); return template; } @Bean public MongoTypeMapper mongoTypeMapper() { return new DefaultMongoTypeMapper(null); } @Bean public MongoMappingContext mongoMappingContext() { return new MongoMappingContext(); } @Bean public MappingMongoConverter mongoConverter() throws UnknownHostException { MappingMongoConverter converter = new MappingMongoConverter(mongoDbFactory(), mongoMappingContext()); converter.setTypeMapper(mongoTypeMapper()); return converter; } }
[ "super.denis@gmail.com" ]
super.denis@gmail.com
0456bddebb359d41c4568a5008cad14b5ccf4988
7b73756ba240202ea92f8f0c5c51c8343c0efa5f
/classes2/KQQ/PushSwitchData.java
2feb980b9141e90d9f5a7b0a0349b451b7f7d914
[]
no_license
meeidol-luo/qooq
588a4ca6d8ad579b28dec66ec8084399fb0991ef
e723920ac555e99d5325b1d4024552383713c28d
refs/heads/master
2020-03-27T03:16:06.616300
2016-10-08T07:33:58
2016-10-08T07:33:58
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,210
java
package KQQ; import com.qq.taf.jce.JceInputStream; import com.qq.taf.jce.JceOutputStream; import com.qq.taf.jce.JceStruct; import com.tencent.mobileqq.hotpatch.NotVerifyClass; public final class PushSwitchData extends JceStruct { public long appid; public byte cPushSwitch; public long uin; public PushSwitchData() { boolean bool = NotVerifyClass.DO_VERIFY_CLASS; } public PushSwitchData(long paramLong1, long paramLong2, byte paramByte) { this.uin = paramLong1; this.appid = paramLong2; this.cPushSwitch = paramByte; } public void readFrom(JceInputStream paramJceInputStream) { this.uin = paramJceInputStream.read(this.uin, 0, true); this.appid = paramJceInputStream.read(this.appid, 1, true); this.cPushSwitch = paramJceInputStream.read(this.cPushSwitch, 2, true); } public void writeTo(JceOutputStream paramJceOutputStream) { paramJceOutputStream.write(this.uin, 0); paramJceOutputStream.write(this.appid, 1); paramJceOutputStream.write(this.cPushSwitch, 2); } } /* Location: E:\apk\QQ_91\classes2-dex2jar.jar!\KQQ\PushSwitchData.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "1776098770@qq.com" ]
1776098770@qq.com
64ff1699b28b019e6685710f63d788d07105b46b
cb7ca5469115cab34b64a6b3c255660cf8bf6e09
/org.eclipse.draw2d/src/org/eclipse/draw2d/ConnectionAnchorBase.java
cc4875ba727ee8fcbc1acd03e2f19531f98489a5
[ "EPL-1.0", "LicenseRef-scancode-free-unknown", "MIT" ]
permissive
archimatetool/archi
59b0a984b3d0471643835cd8f9ff5a648bd97de7
eec0869ad2b6e9c192e127aa9bc00bdbc82b7cd0
refs/heads/master
2023-09-04T02:29:50.509293
2023-08-31T10:28:46
2023-08-31T10:28:46
1,547,663
799
274
MIT
2023-05-26T16:55:05
2011-03-30T19:18:13
Java
UTF-8
Java
false
false
1,897
java
/******************************************************************************* * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ package org.eclipse.draw2d; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * Provides support for a ConnectionAnchor. A ConnectionAnchor is one of the end * points of a {@link Connection}. It holds listeners and notifies them if the * anchor is moved. */ @SuppressWarnings({"rawtypes", "unchecked"}) public abstract class ConnectionAnchorBase implements ConnectionAnchor { /** * The list of listeners */ protected List listeners = new ArrayList(1); /** * @see org.eclipse.draw2d.ConnectionAnchor#addAnchorListener(AnchorListener) */ @Override public void addAnchorListener(AnchorListener listener) { listeners.add(listener); } /** * @see org.eclipse.draw2d.ConnectionAnchor#removeAnchorListener(AnchorListener) */ @Override public void removeAnchorListener(AnchorListener listener) { listeners.remove(listener); } /** * Notifies all the listeners in the list of a change in position of this * anchor. This is called from one of the implementing anchors when its * location is changed. * * @since 2.0 */ protected void fireAnchorMoved() { Iterator iter = listeners.iterator(); while (iter.hasNext()) ((AnchorListener) iter.next()).anchorMoved(this); } }
[ "p.beauvoir@dadabeatnik.com" ]
p.beauvoir@dadabeatnik.com
651b003c31b79972921c512cbb0afa649b16478c
3c0e519e400526379df16320ef53bd3b1f18af5d
/deployable-config-shared/src/main/java/com/jivesoftware/os/routing/bird/deployable/config/shared/DeployableConfig.java
a5f036b083457a66428d003a0292bf6131d5c6b9
[ "Apache-2.0" ]
permissive
jivesoftware/routing-bird
1aee04b569af434951602873f26aa987cf899c04
c55049f30de272b3995e2e112696991e8e10c331
refs/heads/master
2020-05-21T23:44:33.383246
2018-02-05T23:07:13
2018-02-05T23:07:13
37,302,101
2
2
null
2017-05-07T16:02:09
2015-06-12T04:32:52
Java
UTF-8
Java
false
false
1,716
java
/* * Copyright 2013 Jive Software, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.jivesoftware.os.routing.bird.deployable.config.shared; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; public class DeployableConfig { public final String context; public final String instanceKey; public final String instanceVersion; public final Map<String, String> properties; @JsonCreator public DeployableConfig(@JsonProperty("context") String context, @JsonProperty("instanceKey") String instanceKey, @JsonProperty("instanceVersion") String instanceVersion, @JsonProperty("properties") Map<String, String> properties) { this.context = context; this.instanceKey = instanceKey; this.instanceVersion = instanceVersion; this.properties = properties; } @Override public String toString() { return "DeployableConfig{" + "context=" + context + ", instanceKey=" + instanceKey + ", instanceVersion=" + instanceVersion + ", properties=" + properties + '}'; } }
[ "jonathan.colt@jivesoftware.com" ]
jonathan.colt@jivesoftware.com
d1d8d4bf09acb625185da670aaf520435233969e
5e3235edf3de262f4d10b9e9e1fcc3bd13d6b8b1
/Code Snippet Repository/Junit/Junit1054.java
dc4f8938841601e1b16258dd77d478c86fc1ed0f
[]
no_license
saber13812002/DeepCRM
3336a244d4852a364800af3181e03e868cf6f9f5
be3e5e50e34a042d5ba7259ff5ff75c08ab32bb9
refs/heads/master
2023-03-16T00:08:06.473699
2018-04-18T05:29:50
2018-04-18T05:29:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
331
java
@Test void executeSafelyFailed() { AssertionError assertionError = new AssertionError("assumption violated"); TestExecutionResult result = new SingleTestExecutor().executeSafely(() -> { throw assertionError; }); assertEquals(FAILED, result.getStatus()); assertSame(assertionError, result.getThrowable().get()); }
[ "Qing.Mi@my.cityu.edu.hk" ]
Qing.Mi@my.cityu.edu.hk
cb586b7273cc206b032a2e5c4d562ebb276a7959
d76808c5ef5a50f46f5714ed737b85b2603f90dc
/javassist/CtMethod$LongConstParameter.java
6cb7fa358a57f3693d3ed0af74c047a0545fe802
[]
no_license
XeonLyfe/Backdoored-1.6-Deobf-Source-Leak
d5e70e6bc09bf1f8ef971cb2f019492310cf28c0
d01450acd69b1d995931aa3bcaca5c974344e556
refs/heads/master
2022-04-07T07:58:45.140489
2019-11-10T02:56:19
2019-11-10T02:56:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
572
java
package javassist; import javassist.bytecode.*; static class LongConstParameter extends ConstParameter { long param; LongConstParameter(final long l) { super(); this.param = l; } @Override int compile(final Bytecode code) throws CannotCompileException { code.addLconst(this.param); return 2; } @Override String descriptor() { return "([Ljava/lang/Object;J)Ljava/lang/Object;"; } @Override String constDescriptor() { return "([Ljava/lang/Object;J)V"; } }
[ "57571957+RIPBackdoored@users.noreply.github.com" ]
57571957+RIPBackdoored@users.noreply.github.com
68c31881c5e321c752af1e5160706e1649232bfb
b6370deda16d2aef4863b586f2aaa10b285b6cc4
/kie-wb-common-services/kie-wb-common-compiler/kie-wb-common-compiler-core/src/main/java/org/kie/workbench/common/services/backend/compiler/impl/pomprocessor/MavenAPIUtil.java
c80b9b262651eb249efcdd5433108f53e0a9daa9
[ "Apache-2.0" ]
permissive
pszubiak/kie-wb-common
b46e3cbfbd050e7033be79f6171245ec8545fbb7
079ac2c1346e571aed588655526d66d48efba161
refs/heads/master
2020-03-25T14:00:40.643241
2018-08-07T08:41:18
2018-08-07T08:41:18
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,333
java
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kie.workbench.common.services.backend.compiler.impl.pomprocessor; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import org.apache.maven.model.Plugin; import org.apache.maven.model.PluginExecution; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.guvnor.common.services.project.backend.server.utils.configuration.ConfigurationKey; import org.kie.workbench.common.services.backend.compiler.configuration.MavenCLIArgs; import org.kie.workbench.common.services.backend.compiler.configuration.MavenConfig; public class MavenAPIUtil { public final static String TRUE = "true"; public static Plugin getPlugin(String groupdID, String artifactID, String version, Boolean extensions){ Plugin plugin = new Plugin(); plugin.setGroupId(groupdID); plugin.setArtifactId(artifactID); plugin.setVersion(version); plugin.setExtensions(extensions); return plugin; } public static Plugin getPlugin(String groupdID, String artifactID, String version){ Plugin plugin = new Plugin(); plugin.setGroupId(groupdID); plugin.setArtifactId(artifactID); plugin.setVersion(version); return plugin; } public static Plugin getNewCompilerPlugin(Map<ConfigurationKey, String> conf) { Plugin newCompilerPlugin = new Plugin(); newCompilerPlugin.setGroupId(conf.get(ConfigurationKey.TAKARI_COMPILER_PLUGIN_GROUP)); newCompilerPlugin.setArtifactId(conf.get(ConfigurationKey.TAKARI_COMPILER_PLUGIN_ARTIFACT)); newCompilerPlugin.setVersion(conf.get(ConfigurationKey.TAKARI_COMPILER_PLUGIN_VERSION)); Xpp3Dom compilerId = new Xpp3Dom(MavenConfig.MAVEN_COMPILER_ID); compilerId.setValue(conf.get(ConfigurationKey.COMPILER)); Xpp3Dom sourceVersion = new Xpp3Dom(MavenConfig.MAVEN_SOURCE); sourceVersion.setValue(conf.get(ConfigurationKey.SOURCE_VERSION)); Xpp3Dom targetVersion = new Xpp3Dom(MavenConfig.MAVEN_TARGET); targetVersion.setValue(conf.get(ConfigurationKey.TARGET_VERSION)); Xpp3Dom failOnError = new Xpp3Dom(MavenConfig.FAIL_ON_ERROR); failOnError.setValue(conf.get(ConfigurationKey.FAIL_ON_ERROR)); Xpp3Dom configuration = new Xpp3Dom(MavenConfig.MAVEN_PLUGIN_CONFIGURATION); configuration.addChild(compilerId); configuration.addChild(sourceVersion); configuration.addChild(targetVersion); configuration.addChild(failOnError); newCompilerPlugin.setConfiguration(configuration); PluginExecution execution = new PluginExecution(); execution.setId(MavenCLIArgs.DEFAULT_COMPILE); execution.setGoals(Arrays.asList(MavenCLIArgs.COMPILE)); execution.setPhase(MavenCLIArgs.COMPILE); newCompilerPlugin.setExecutions(Arrays.asList(execution)); return newCompilerPlugin; } public static void disableMavenCompilerAlreadyPresent(Plugin plugin) { Xpp3Dom skipMain = new Xpp3Dom(MavenConfig.MAVEN_SKIP_MAIN); skipMain.setValue(TRUE); Xpp3Dom skip = new Xpp3Dom(MavenConfig.MAVEN_SKIP); skip.setValue(TRUE); Xpp3Dom configuration = new Xpp3Dom(MavenConfig.MAVEN_PLUGIN_CONFIGURATION); configuration.addChild(skipMain); configuration.addChild(skip); plugin.setConfiguration(configuration); PluginExecution exec = new PluginExecution(); exec.setId(MavenConfig.MAVEN_DEFAULT_COMPILE); exec.setPhase(MavenConfig.MAVEN_PHASE_NONE); List<PluginExecution> executions = new ArrayList<>(); executions.add(exec); plugin.setExecutions(executions); } }
[ "alexandre.porcelli@gmail.com" ]
alexandre.porcelli@gmail.com
cea170e4467c9c6b6434258ce3b9acf757d034e8
6d82f06048d330216b17c19790f29075e62e47d5
/branches/SDK-2/main/metro/part/src/test/net/dpml/runtime/composition/CompositeTestCase.java
31b8fde8bcc10e50d41988e210694d04d925856f
[ "Apache-2.0" ]
permissive
IdelsTak/dpml-svn
7d1fc3f1ff56ef2f45ca5f7f3ae88b1ace459b79
9f9bdcf0198566ddcee7befac4a3b2c693631df5
refs/heads/master
2022-03-19T15:50:45.872930
2009-11-23T08:45:39
2009-11-23T08:45:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,251
java
/* * Copyright 2006 Stephen J. McConnell. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. * * See the License for the specific language governing permissions and * limitations under the License. */ package net.dpml.runtime.composition; import net.dpml.runtime.AbstractTestCase; import org.acme.CompositeComponent; /** * * @author <a href="@PUBLISHER-URL@">@PUBLISHER-NAME@</a> * @version @PROJECT-VERSION@ */ public class CompositeTestCase extends AbstractTestCase { public void testComponent() throws Exception { CompositeComponent component = load( CompositeComponent.class, "composite.xml", "composite" ); assertNotNull( "widget", component.getParts().getWidget() ); assertNotNull( "gizmo", component.getParts().getGizmo() ); } }
[ "mcconnell@00579e91-1ffa-0310-aa18-b241b61564ef" ]
mcconnell@00579e91-1ffa-0310-aa18-b241b61564ef
c9364d8e0325e3a7cb193ce0be8ee7c6e7dddc9f
23257a43bdf73bf16fbd3b73d988828f38e583ba
/app/src/main/java/knf/animeflv/Configuracion.java
6485e075617a099b57c4d2ca48043a7292bb3666
[]
no_license
guerra1337/Animeflv
82770aa6aac4218b56746a07c1b402d49ac8b8e7
79f57548b77fc2d5f41721402a574e21d65aab01
refs/heads/master
2020-04-27T21:51:21.132762
2019-02-23T17:40:33
2019-02-23T17:40:59
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,036
java
package knf.animeflv; import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context; import android.content.res.Configuration; import android.os.Build; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.TextView; import android.widget.Toast; import com.afollestad.materialdialogs.GravityEnum; import com.afollestad.materialdialogs.MaterialDialog; import com.onesignal.OneSignal; import knf.animeflv.Utils.ThemeUtils; public class Configuracion extends AppCompatActivity { public static final int OPEN_SOUNDS = 1; public static final int GET_WRITE_PERMISSIONS = 2; public static boolean isXLargeScreen(Context context) { return (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_XLARGE; } public static String byte2HexFormatted(byte[] arr) { StringBuilder str = new StringBuilder(arr.length * 2); for (int i = 0; i < arr.length; i++) { String h = Integer.toHexString(arr[i]); int l = h.length(); if (l == 1) h = "0" + h; if (l > 2) h = h.substring(l - 2, l); str.append(h.toUpperCase()); if (i < (arr.length - 1)) str.append(':'); } return str.toString(); } @Override protected void onCreate(Bundle savedInstanceState) { ThemeUtils.setThemeOn(this); super.onCreate(savedInstanceState); setContentView(R.layout.configuracion); ThemeUtils.Theme theme = ThemeUtils.Theme.create(this); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { getWindow().setStatusBarColor(theme.primaryDark); getWindow().setNavigationBarColor(theme.primary); } Toolbar toolbar=(Toolbar) findViewById(R.id.conf_toolbar); toolbar.setBackgroundColor(theme.primary); toolbar.getRootView().setBackgroundColor(theme.background); setSupportActionBar(toolbar); getSupportActionBar().setTitle("Configuracion"); getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDisplayHomeAsUpEnabled(true); toolbar.setTitleTextColor(theme.textColorToolbar); ThemeUtils.setNavigationColor(toolbar, theme.toolbarNavigation); /*final Drawable upArrow = getResources().getDrawable(R.drawable.ic_back_r); upArrow.setColorFilter(getResources().getColor(R.color.blanco), PorterDuff.Mode.SRC_ATOP); getSupportActionBar().setHomeAsUpIndicator(upArrow);*/ toolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); getFragmentManager().beginTransaction().replace(R.id.container_conf, new Conf_fragment()).commitAllowingStateLoss(); if (getIntent().getExtras() != null) { setResult(getIntent().getIntExtra("return", -1)); } } @Override public boolean onCreateOptionsMenu(Menu menu) { super.onCreateOptionsMenu(menu); getMenuInflater().inflate(R.menu.menu_ayuda, menu); ThemeUtils.setMenuColor(menu, ThemeUtils.Theme.get(this, ThemeUtils.Theme.KEY_TOOLBAR_NAVIGATION)); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); MaterialDialog dialog = new MaterialDialog.Builder(this) .title("Codigo de referencia") .backgroundColor(ThemeUtils.isAmoled(this) ? ColorsRes.Prim(this) : ColorsRes.Blanco(this)) .titleGravity(GravityEnum.CENTER) .customView(R.layout.lay_info, false) .build(); final String id = OneSignal.getPermissionSubscriptionState().getSubscriptionStatus().getUserId(); TextView textView = (TextView) dialog.getCustomView().findViewById(R.id.help_id); textView.setText(id); textView.setTextColor(ThemeUtils.getAcentColor(this)); textView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE); ClipData clip = ClipData.newPlainText("label", id); clipboard.setPrimaryClip(clip); Toast.makeText(Configuracion.this, "Codigo copiado a portapapeles", Toast.LENGTH_SHORT).show(); } }); dialog.show(); return true; } @Override public void onConfigurationChanged (Configuration newConfig) { super.onConfigurationChanged(newConfig); if (!isXLargeScreen(getApplicationContext()) ) { return; } } }
[ "jordyamc@hotmail.com" ]
jordyamc@hotmail.com
7b711d1cfccad285f73f86fbd2bc8844757e8f6a
29acc5b6a535dfbff7c625f5513871ba55554dd2
/aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/AcceptCertificateTransferRequest.java
347617c11fd83c0a20a36296d83498b33c8bb0e3
[ "JSON", "Apache-2.0" ]
permissive
joecastro/aws-sdk-java
b2d25f6a503110d156853836b49390d2889c4177
fdbff1d42a73081035fa7b0f172b9b5c30edf41f
refs/heads/master
2021-01-21T16:52:46.982971
2016-01-11T22:55:28
2016-01-11T22:55:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
5,292
java
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; /** * <p> * The input for the AcceptCertificateTransfer operation. * </p> */ public class AcceptCertificateTransferRequest extends AmazonWebServiceRequest implements Serializable, Cloneable { /** * <p> * The ID of the certificate. * </p> */ private String certificateId; /** * <p> * Specifies whether the certificate is active. * </p> */ private Boolean setAsActive; /** * <p> * The ID of the certificate. * </p> * * @param certificateId * The ID of the certificate. */ public void setCertificateId(String certificateId) { this.certificateId = certificateId; } /** * <p> * The ID of the certificate. * </p> * * @return The ID of the certificate. */ public String getCertificateId() { return this.certificateId; } /** * <p> * The ID of the certificate. * </p> * * @param certificateId * The ID of the certificate. * @return Returns a reference to this object so that method calls can be * chained together. */ public AcceptCertificateTransferRequest withCertificateId( String certificateId) { setCertificateId(certificateId); return this; } /** * <p> * Specifies whether the certificate is active. * </p> * * @param setAsActive * Specifies whether the certificate is active. */ public void setSetAsActive(Boolean setAsActive) { this.setAsActive = setAsActive; } /** * <p> * Specifies whether the certificate is active. * </p> * * @return Specifies whether the certificate is active. */ public Boolean getSetAsActive() { return this.setAsActive; } /** * <p> * Specifies whether the certificate is active. * </p> * * @param setAsActive * Specifies whether the certificate is active. * @return Returns a reference to this object so that method calls can be * chained together. */ public AcceptCertificateTransferRequest withSetAsActive(Boolean setAsActive) { setSetAsActive(setAsActive); return this; } /** * <p> * Specifies whether the certificate is active. * </p> * * @return Specifies whether the certificate is active. */ public Boolean isSetAsActive() { return this.setAsActive; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCertificateId() != null) sb.append("CertificateId: " + getCertificateId() + ","); if (getSetAsActive() != null) sb.append("SetAsActive: " + getSetAsActive()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AcceptCertificateTransferRequest == false) return false; AcceptCertificateTransferRequest other = (AcceptCertificateTransferRequest) obj; if (other.getCertificateId() == null ^ this.getCertificateId() == null) return false; if (other.getCertificateId() != null && other.getCertificateId().equals(this.getCertificateId()) == false) return false; if (other.getSetAsActive() == null ^ this.getSetAsActive() == null) return false; if (other.getSetAsActive() != null && other.getSetAsActive().equals(this.getSetAsActive()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateId() == null) ? 0 : getCertificateId() .hashCode()); hashCode = prime * hashCode + ((getSetAsActive() == null) ? 0 : getSetAsActive().hashCode()); return hashCode; } @Override public AcceptCertificateTransferRequest clone() { return (AcceptCertificateTransferRequest) super.clone(); } }
[ "aws@amazon.com" ]
aws@amazon.com
501587f8da755e713dc881fbedb94342ae19e06d
3a59bd4f3c7841a60444bb5af6c859dd2fe7b355
/sources/org/apache/commons/codec/binary/BinaryCodec.java
cf0fb997008d4013bc40cb9355d21b1a5a2b0a08
[]
no_license
sengeiou/KnowAndGo-android-thunkable
65ac6882af9b52aac4f5a4999e095eaae4da3c7f
39e809d0bbbe9a743253bed99b8209679ad449c9
refs/heads/master
2023-01-01T02:20:01.680570
2020-10-22T04:35:27
2020-10-22T04:35:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,418
java
package org.apache.commons.codec.binary; import org.apache.commons.codec.BinaryDecoder; import org.apache.commons.codec.BinaryEncoder; import org.apache.commons.codec.DecoderException; import org.apache.commons.codec.EncoderException; public class BinaryCodec implements BinaryDecoder, BinaryEncoder { private static final int[] BITS = {1, 2, 4, 8, 16, 32, 64, 128}; private static final int BIT_0 = 1; private static final int BIT_1 = 2; private static final int BIT_2 = 4; private static final int BIT_3 = 8; private static final int BIT_4 = 16; private static final int BIT_5 = 32; private static final int BIT_6 = 64; private static final int BIT_7 = 128; private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; private static final char[] EMPTY_CHAR_ARRAY = new char[0]; public byte[] encode(byte[] bArr) { return toAsciiBytes(bArr); } public Object encode(Object obj) throws EncoderException { if (obj instanceof byte[]) { return toAsciiChars((byte[]) obj); } throw new EncoderException("argument not a byte array"); } public Object decode(Object obj) throws DecoderException { if (obj == null) { return EMPTY_BYTE_ARRAY; } if (obj instanceof byte[]) { return fromAscii((byte[]) obj); } if (obj instanceof char[]) { return fromAscii((char[]) obj); } if (obj instanceof String) { return fromAscii(((String) obj).toCharArray()); } throw new DecoderException("argument not a byte array"); } public byte[] decode(byte[] bArr) { return fromAscii(bArr); } public byte[] toByteArray(String str) { if (str == null) { return EMPTY_BYTE_ARRAY; } return fromAscii(str.toCharArray()); } public static byte[] fromAscii(char[] cArr) { if (cArr == null || cArr.length == 0) { return EMPTY_BYTE_ARRAY; } byte[] bArr = new byte[(cArr.length >> 3)]; int length = cArr.length - 1; int i = 0; while (i < bArr.length) { for (int i2 = 0; i2 < BITS.length; i2++) { if (cArr[length - i2] == '1') { bArr[i] = (byte) (bArr[i] | BITS[i2]); } } i++; length -= 8; } return bArr; } public static byte[] fromAscii(byte[] bArr) { if (isEmpty(bArr)) { return EMPTY_BYTE_ARRAY; } byte[] bArr2 = new byte[(bArr.length >> 3)]; int length = bArr.length - 1; int i = 0; while (i < bArr2.length) { for (int i2 = 0; i2 < BITS.length; i2++) { if (bArr[length - i2] == 49) { bArr2[i] = (byte) (bArr2[i] | BITS[i2]); } } i++; length -= 8; } return bArr2; } private static boolean isEmpty(byte[] bArr) { return bArr == null || bArr.length == 0; } public static byte[] toAsciiBytes(byte[] bArr) { if (isEmpty(bArr)) { return EMPTY_BYTE_ARRAY; } byte[] bArr2 = new byte[(bArr.length << 3)]; int length = bArr2.length - 1; int i = 0; while (i < bArr.length) { for (int i2 = 0; i2 < BITS.length; i2++) { if ((bArr[i] & BITS[i2]) == 0) { bArr2[length - i2] = 48; } else { bArr2[length - i2] = 49; } } i++; length -= 8; } return bArr2; } public static char[] toAsciiChars(byte[] bArr) { if (isEmpty(bArr)) { return EMPTY_CHAR_ARRAY; } char[] cArr = new char[(bArr.length << 3)]; int length = cArr.length - 1; int i = 0; while (i < bArr.length) { for (int i2 = 0; i2 < BITS.length; i2++) { if ((bArr[i] & BITS[i2]) == 0) { cArr[length - i2] = '0'; } else { cArr[length - i2] = '1'; } } i++; length -= 8; } return cArr; } public static String toAsciiString(byte[] bArr) { return new String(toAsciiChars(bArr)); } }
[ "joshuahj.tsao@gmail.com" ]
joshuahj.tsao@gmail.com
89b3fe03f88f3ad98beb6d9a1dee869fcd447f34
a4ee06bd408862827bd0dcbb905a213b45bf593b
/JAVA/PM/MediathekVorlage_Blatt02u03/src/de/hawhh/informatik/sml/mediathek/service/einleser/DateiLeseException.java
af1093361c3c7dcaaa11157c64eee7e154a1db4d
[]
no_license
davekessener/VirtualMachine
1a6b3af761e2763eebd1d61010fda517f51167d5
61679dd47f17246cad8261781000cf4aca5bfe14
refs/heads/master
2021-01-17T14:53:55.771007
2016-05-29T13:15:33
2016-05-29T13:15:33
14,454,172
0
1
null
null
null
null
UTF-8
Java
false
false
650
java
package de.hawhh.informatik.sml.mediathek.service.einleser; import java.io.IOException; /** * Eine DateiLeseException signalisiert, dass das Lesen aus einer Datei nicht * geklappt hat. * * @author SE2-Team, PR2-Team * @version WiSe 2014 */ public class DateiLeseException extends IOException { private static final long serialVersionUID = 1L; /** * Initialisiert eine neue DateiLeseException mit der übergebenen * Fehlermeldung. * * @param message Eine beschreibung des Fehlers. * */ public DateiLeseException(String message) { super(message); } }
[ "davekessener@gmail.com" ]
davekessener@gmail.com
754702d550d96f0cf05e9086afb82dae2c8a46d9
1ae6abc37d7844879916e8f612ba1d616bc0c3cb
/src/private/nc/bs/xcgl/latecheckout/CloseMonBO.java
f3bfa7800582f0ecb64afc80fe752d169d9d56f8
[]
no_license
menglingrui/xcgl
7a3b3f03f14b21fbd25334042f87fa570758a7ad
525b4e38cf52bb75c83762a9c27862b4f86667e8
refs/heads/master
2020-06-05T20:10:09.263291
2014-09-11T11:00:34
2014-09-11T11:00:34
null
0
0
null
null
null
null
GB18030
Java
false
false
5,361
java
package nc.bs.xcgl.latecheckout; import java.util.ArrayList; import java.util.List; import nc.bs.trade.business.IBDBusiCheck; import nc.ui.scm.util.ObjectUtils; import nc.vo.pub.AggregatedValueObject; import nc.vo.pub.BusinessException; import nc.vo.pub.SuperVO; import nc.vo.pub.lang.UFBoolean; import nc.vo.pub.lang.UFDate; import nc.vo.scm.pu.PuPubVO; import nc.vo.trade.pub.IBDACTION; import nc.vo.trade.voutils.VOUtil; import nc.vo.xcgl.latecheckout.CloseMonBodyVO; import nc.vo.xcgl.latecheckout.CloseMonVO; import nc.vo.xcgl.latecheckout.MonthAccountVO; import nc.vo.xcgl.pub.helper.MonthCloseHelper; import nc.vo.xcgl.pub.stock.BillStockTool; import nc.vo.xcgl.pub.stock.mod.XCAccountModBOTool; /** * 结存处理类 * @author zhf */ public class CloseMonBO implements IBDBusiCheck{ private CloseMonDMO dmo = null; private BillStockTool stockBO=null; public BillStockTool getStockBO(){ if(stockBO == null){ stockBO = new BillStockTool(); } return stockBO; } public CloseMonDMO getDMO(){ if(dmo == null){ dmo = new CloseMonDMO(); } return dmo; } public void countNotApprove(UFDate sdate,UFDate edate,String corp) throws BusinessException{ getDMO().countNotApprove(sdate, edate, corp); } private AccountFilter af = null; private AccountFilter getAccountFilter(){ if(af == null){ af = new AccountFilter(); } return af; } private CancelAccountFilter caf = null; private CancelAccountFilter getCancelAccountFilter(){ if(caf == null){ caf = new CancelAccountFilter(); } return caf; } public void check(int intBdAction,AggregatedValueObject billVo,Object userObj) throws Exception { if(intBdAction == IBDACTION.SAVE){//保存前数据校验 if(billVo == null) return; CloseMonVO bill = (CloseMonVO)ObjectUtils.serializableClone(billVo); UFBoolean isaccount = bill.getIsaccount(); if(isaccount == null) throw new BusinessException("数据异常,结账标识未明确"); if(isaccount.booleanValue()){//后台校验 结账月内的业务单据必须均审批通过 CloseMonBodyVO[] bodys = bill.getItems(); bodys = (CloseMonBodyVO[])VOUtil.filter(bodys, getAccountFilter()); bill.setChildrenVO(bodys); if(bodys == null || bodys.length ==0){ throw new BusinessException("数据异常,结账数据为空"); } //按月份升序 VOUtil.ascSort(bodys, CloseMonBodyVO.sort_fields); UFDate dstartdate = bodys[0].getDstartdate(); UFDate denddate = bodys[bodys.length-1].getDenddate(); countNotApprove(dstartdate, denddate, bill.getHeader().getPk_corp()); } if(isaccount.booleanValue()) doAccount(bill); else disAccount(bill); } } /** * * @author zhf * @说明:(鹤岗矿业)取消结账 * 2011-10-22下午04:20:01 * @param bill * @throws BusinessException */ private void disAccount(CloseMonVO bill) throws BusinessException{ CloseMonBodyVO[] bodys = bill.getItems(); String pk_corp=PuPubVO.getString_TrimZeroLenAsNull(bill.getParentVO().getAttributeValue("pk_corp")); bodys = (CloseMonBodyVO[])VOUtil.filter(bodys, getCancelAccountFilter()); if(bodys == null || bodys.length == 0) return; for(CloseMonBodyVO body:bodys){ getDMO().delMonAccountsForOneMonth(body.getPk_accperiodmonth(),pk_corp); } } /** * * @author zhf * @说明:(鹤岗矿业)结账 * 2011-10-22下午04:20:12 * @param bill * @throws BusinessException */ private void doAccount(CloseMonVO bill) throws BusinessException{ CloseMonBodyVO[] bodys = bill.getItems(); String pk_corp=PuPubVO.getString_TrimZeroLenAsNull(bill.getParentVO().getAttributeValue("pk_corp")); if(bodys == null || bodys.length == 0) return; if(bodys.length>1){ throw new BusinessException("不能多个月一起结账"); } //按月份排序 VOUtil.ascSort(bodys, CloseMonBodyVO.sort_fields); //逐月进行月结处理 List<MonthAccountVO> lmon = new ArrayList<MonthAccountVO>();//存放转后后本次结账的所有数据 for(CloseMonBodyVO body:bodys){ if(!MonthCloseHelper.isMonthClose(body.getDstartdate(),pk_corp).booleanValue()){ throw new BusinessException("要结转的月份没有关帐"); } calForOneMonth(body,lmon,pk_corp); } if(lmon.size()>0){ //进行加锁处理 BillStockTool.getInstrance().lock(lmon.toArray(new MonthAccountVO[0])); //存入结存表 getDMO().saveMonAccounts(lmon.toArray(new MonthAccountVO[0])); } } /** * 进行结账处理 * @param body * @param lmon * @param pk_corp * @throws BusinessException */ private void calForOneMonth(CloseMonBodyVO body,List<MonthAccountVO> lmon,String pk_corp) throws BusinessException{ try { SuperVO[] vos=XCAccountModBOTool.getInstrance().doAccount(body.getPk_accperiodmonth(), pk_corp); if(vos==null|| vos.length==0){ return; } for(int i=0;i<vos.length;i++){ lmon.add((MonthAccountVO) vos[i]); } } catch (Exception e) { e.printStackTrace(); throw new BusinessException(e); } } public void dealAfter(int intBdAction, AggregatedValueObject billVo, Object userObj) throws Exception { } }
[ "menlging.rui@163.com" ]
menlging.rui@163.com
562dd086809d85e104436b8e8d6bd87b8da3e529
c2d2e652d3691f38e3b2465c784667c589004830
/ratpack-session/src/main/java/ratpack/session/internal/LocalMemorySessionStore.java
0934e4a2e11d868cd3681915051138e4fcf048b6
[ "Apache-2.0" ]
permissive
shangyi0102/ratpack
461253608ed28f2fb9d9d5f24a948dc3352d8a60
de9acd18c4b03aac360ba68370b089de0351508d
refs/heads/master
2021-01-24T09:57:24.750493
2016-03-22T10:10:50
2016-03-22T10:10:50
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,457
java
/* * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package ratpack.session.internal; import com.google.common.cache.Cache; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import io.netty.util.AsciiString; import ratpack.exec.Operation; import ratpack.exec.Promise; import ratpack.server.StopEvent; import ratpack.session.SessionStore; import java.util.concurrent.atomic.AtomicLong; public class LocalMemorySessionStore implements SessionStore { private final Cache<AsciiString, ByteBuf> cache; private final AtomicLong lastCleanup = new AtomicLong(System.currentTimeMillis()); public LocalMemorySessionStore(Cache<AsciiString, ByteBuf> cache) { this.cache = cache; } @Override public Operation store(AsciiString sessionId, ByteBuf sessionData) { return Operation.of(() -> { maybeCleanup(); ByteBuf retained = Unpooled.unmodifiableBuffer(sessionData.retain()); cache.put(sessionId, retained); }); } @Override public Promise<ByteBuf> load(AsciiString sessionId) { return Promise.sync(() -> { maybeCleanup(); ByteBuf value = cache.getIfPresent(sessionId); if (value != null) { return Unpooled.unreleasableBuffer(value.slice()); } else { return Unpooled.EMPTY_BUFFER; } }); } @Override public Promise<Long> size() { return Promise.sync(cache::size); } @Override public Operation remove(AsciiString sessionId) { return Operation.of(() -> { maybeCleanup(); cache.invalidate(sessionId); }); } @Override public void onStop(StopEvent event) throws Exception { cache.invalidateAll(); } private void maybeCleanup() { long now = System.currentTimeMillis(); long last = lastCleanup.get(); if (now - last > 1000 * 10) { if (lastCleanup.compareAndSet(last, now)) { cache.cleanUp(); } } } }
[ "ld@ldaley.com" ]
ld@ldaley.com
aeaaf160b1d5cabe6b5119a7e87a9689dabaed9e
0c71faad42369a86defd678930fed770b18ade8a
/src/api/java/forestry/api/genetics/AlleleManager.java
6e3511621358633f29658b7f856142f68606ee64
[ "CC-BY-4.0" ]
permissive
Prometheus0000/BloodMagic
761974a1e7e774633efcb0c1053a7eae09921439
121bf66111e7ec6acecde30572c0b1df2952573f
refs/heads/1.7.10
2023-08-02T04:35:23.642056
2021-05-25T19:01:06
2021-05-25T19:01:06
305,008,776
0
0
NOASSERTION
2021-05-25T19:02:03
2020-10-18T02:40:11
Java
UTF-8
Java
false
false
1,327
java
/******************************************************************************* * Copyright 2011-2014 SirSengir * * This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details. ******************************************************************************/ package forestry.api.genetics; import java.util.HashMap; import net.minecraft.item.ItemStack; /** * Holds a static reference to the {@link IAlleleRegistry}. */ public class AlleleManager { /** * Main access point for all things related to genetics. See {@link IAlleleRegistry} for details. */ public static IAlleleRegistry alleleRegistry; /** * Translates plain leaf blocks into genetic data. Used by bees and butterflies to convert and pollinate foreign leaf blocks. */ public static HashMap<ItemStack, IIndividual> ersatzSpecimen = new HashMap<ItemStack, IIndividual>(); /** * Translates plain saplings into genetic data. Used by the treealyzer and the farm to convert foreign saplings. */ public static HashMap<ItemStack, IIndividual> ersatzSaplings = new HashMap<ItemStack, IIndividual>(); /** * Queryable instance of an {@link IClimateHelper} for easier implementation. */ public static IClimateHelper climateHelper; /** * Creates Forestry alleles. */ public static IAlleleFactory alleleFactory; }
[ "wtime@live.ca" ]
wtime@live.ca
96a264aaa060e832948428606f90c7fa6984867d
16a3610cda4afe9ebf4a1ed45e57cddd6b0a768b
/Test Data/Test 790ColabInc/Example1/All, Correct (acorrect)/Submission attachment(s)/im/im/src/im/AReplicatedHistory.java
bffb726d4ba7bdfa3183fc27b82d44ca70557a5e
[]
no_license
jphong89/Grader
f558299712313a15078ae14be745e18f338b2ab8
8464b331eec46f1f12b74e0d6f895ce2b95f576d
refs/heads/master
2020-02-26T13:56:46.118821
2014-12-05T01:48:46
2014-12-05T01:48:46
null
0
0
null
null
null
null
UTF-8
Java
false
false
997
java
package im; import trace.im.ListEditSent; import util.session.Communicator; import util.trace.Tracer; import util.trace.session.AddressedSentMessageInfo; import echo.modular.AHistory; public class AReplicatedHistory<ElementType> extends AHistory<ElementType> implements ReplicatedHistory<ElementType> { Communicator communicator; public AReplicatedHistory(Communicator theCommunicator) { communicator = theCommunicator; } public synchronized void replicatedAdd(ElementType anInput) { int anIndex = size(); super.observableAdd(anIndex, anInput); // communicator.toOthers(new ARemoteInput(input)); // communicator.toOthers(input); ListEdit listEdit = new AListEdit<ElementType>(OperationName.ADD, anIndex, anInput); ListEditSent.newCase( communicator.getClientName(), listEdit.getOperationName(), listEdit.getIndex(), listEdit.getElement(), AddressedSentMessageInfo.OTHERS, this); communicator.toOthers(listEdit); } }
[ "dewan@cs.unc.edu" ]
dewan@cs.unc.edu
9f1bf5d2a8c4feeb974d5a3aed624d15c2d11092
a1826c2ed9c12cfc395fb1a14c1a2e1f097155cb
/fc-20230330/src/main/java/com/aliyun/fc20230330/models/DeleteCustomDomainResponse.java
816c6fd5f7338ac55da7523200fe1078c5b92cc5
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-java-sdk
83a6036a33c7278bca6f1bafccb0180940d58b0b
008923f156adf2e4f4785a0419f60640273854ec
refs/heads/master
2023-09-01T04:10:33.640756
2023-09-01T02:40:45
2023-09-01T02:40:45
288,968,318
40
45
null
2023-06-13T02:47:13
2020-08-20T09:51:08
Java
UTF-8
Java
false
false
1,066
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.fc20230330.models; import com.aliyun.tea.*; public class DeleteCustomDomainResponse extends TeaModel { @NameInMap("headers") @Validation(required = true) public java.util.Map<String, String> headers; @NameInMap("statusCode") @Validation(required = true) public Integer statusCode; public static DeleteCustomDomainResponse build(java.util.Map<String, ?> map) throws Exception { DeleteCustomDomainResponse self = new DeleteCustomDomainResponse(); return TeaModel.build(map, self); } public DeleteCustomDomainResponse setHeaders(java.util.Map<String, String> headers) { this.headers = headers; return this; } public java.util.Map<String, String> getHeaders() { return this.headers; } public DeleteCustomDomainResponse setStatusCode(Integer statusCode) { this.statusCode = statusCode; return this; } public Integer getStatusCode() { return this.statusCode; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
49d50879ae1ce1589aff136160b51ac8091c5c1c
65615e71d879517131f4d3fb005b97aea22ea746
/java/real-projects/word/web-app/web-app-common/web-app-common-war/src/test/java/com/mtsmda/word/test/config/TestApplicationContext.java
ecd523e3054b49aff2d217087be76d2b5213e515
[]
no_license
akbars95/common_250117
e1b151ec4973f8aedf1c8e71cb35febee7bbb4f0
9709cfa9b809ef12480e08646bcd48b9e2bf2225
refs/heads/master
2021-01-11T16:07:39.245311
2017-03-31T08:30:49
2017-03-31T08:30:49
80,009,843
0
0
null
null
null
null
UTF-8
Java
false
false
791
java
package com.mtsmda.word.test.config; import com.mtsmda.word.config.other.DatabaseConfiguration; import org.junit.runner.RunWith; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Import; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.TestPropertySource; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.annotation.EnableTransactionManagement; /** * Created by dminzat on 3/14/2017. */ @EnableTransactionManagement @TestPropertySource("classpath:database.properties") @ComponentScan(basePackages = {"com.mtsmda.word.nonConfig"}) @Import(value = DatabaseConfiguration.class) public class TestApplicationContext { }
[ "mynzat.dmitrii@gmail.com" ]
mynzat.dmitrii@gmail.com
68ab0ab31bcaa2ae9bd300c720b81905e93af62e
47119d527d55e9adcb08a3a5834afe9a82dd2254
/internalLibraries/models/src/main/java/com/emc/vipr/model/keystore/TruststoreSettingsChanges.java
6685411c331696507c81813abd5d516b5043e413
[]
no_license
chrisdail/coprhd-controller
1c3ddf91bb840c66e4ece3d4b336a6df421b43e4
38a063c5620135a49013aae5e078aeb6534a5480
refs/heads/master
2020-12-03T10:42:22.520837
2015-06-08T15:24:36
2015-06-08T15:24:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,432
java
/** * Copyright 2015 EMC Corporation * All Rights Reserved */ /** * Copyright (c) 2014 EMC Corporation * All Rights Reserved * * This software contains the intellectual property of EMC Corporation * or is licensed to EMC Corporation from third parties. Use of this * software and the intellectual property contained therein is expressly * limited to the terms and conditions of the License Agreement under which * it is provided by or on behalf of EMC. */ package com.emc.vipr.model.keystore; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; /** * represents the changes to be made to the settings of the truststore */ @XmlRootElement(name = "truststore_settings_changes") public class TruststoreSettingsChanges { private Boolean acceptAllCertificates; @XmlElement(name = "accept_all_certificates") public Boolean getAcceptAllCertificates() { return acceptAllCertificates; } public void setAcceptAllCertificates(Boolean acceptAllCertificates) { this.acceptAllCertificates = acceptAllCertificates; } /* * (non-Javadoc) * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder builder = new StringBuilder(); builder.append("acceptAllCertificates = "); builder.append(acceptAllCertificates); return builder.toString(); } }
[ "review-coprhd@coprhd.org" ]
review-coprhd@coprhd.org
476c75776392167bada7206335041c36ef75dc1d
e826b8ae9def547b49a5913c1b0d5602a02ac2b0
/web-socket-test/src/main/java/com/diyilu/ws/support/WebSocketConfig.java
698d81d37108e65b094556980ef79d9427c95bc9
[]
no_license
diyiliu/dyl-demo
f31439a818131135bf718ff381be9c8f340fa2e9
ff1012a3adb619451b2660d2668ca08ff33fb944
refs/heads/master
2023-01-22T09:08:16.236758
2020-12-02T07:16:20
2020-12-02T07:16:20
313,807,388
0
0
null
null
null
null
UTF-8
Java
false
false
1,618
java
package com.diyilu.ws.support; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer; import org.springframework.web.socket.server.standard.ServerEndpointExporter; /** * Description: WebSocketConfig * Author: diyiliu * Update: 2020-11-17 17:26 */ @Configuration @EnableWebSocketMessageBroker public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { /** * 配置 WebSocket 进入点,及开启使用 SockJS,这些配置主要用配置连接端点,用于 WebSocket 连接 * * @param registry STOMP 端点 */ @Override public void registerStompEndpoints(StompEndpointRegistry registry) { registry.addEndpoint("/myws") .setAllowedOrigins("*") .withSockJS(); } /** * 配置消息代理选项 * * @param registry 消息代理注册配置 */ @Override public void configureMessageBroker(MessageBrokerRegistry registry) { // 设置客户端订阅前缀。 registry.enableSimpleBroker("/topic"); // 配置客户端发送前缀,该前缀会筛选消息目标转发到 Controller 类中注解对应的方法里 registry.setApplicationDestinationPrefixes("/app"); } }
[ "572772828@qq.com" ]
572772828@qq.com
f6f95c48cfe41068038e2c59b746307fb0d9d51d
5bf611b0fde8cdd8f4b815ca9ae22b6113c1a33d
/lib/src/us/kbase/reskesearchdemo/SearchObjectsOutput.java
b7a370c1c203095a0b0bee7d27ffd6a3985a2a31
[ "MIT" ]
permissive
kbaseapps/RESKESearchDemo
7f45dc2a72ea9a991d2f0380aa9245ecca22a56c
9140c6726e3ae26ae7ba20b3fdcfed96049393d5
refs/heads/master
2021-01-20T14:17:04.015289
2017-05-08T19:38:16
2017-05-08T19:38:16
90,585,041
0
0
null
null
null
null
UTF-8
Java
false
false
3,765
java
package us.kbase.reskesearchdemo; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Generated; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; /** * <p>Original spec-file type: SearchObjectsOutput</p> * * */ @JsonInclude(JsonInclude.Include.NON_NULL) @Generated("com.googlecode.jsonschema2pojo") @JsonPropertyOrder({ "pagination", "sorting_rules", "objects", "total", "search_time" }) public class SearchObjectsOutput { /** * <p>Original spec-file type: Pagination</p> * * */ @JsonProperty("pagination") private Pagination pagination; @JsonProperty("sorting_rules") private List<SortingRule> sortingRules; @JsonProperty("objects") private List<ObjectData> objects; @JsonProperty("total") private Long total; @JsonProperty("search_time") private Long searchTime; private Map<String, Object> additionalProperties = new HashMap<String, Object>(); /** * <p>Original spec-file type: Pagination</p> * * */ @JsonProperty("pagination") public Pagination getPagination() { return pagination; } /** * <p>Original spec-file type: Pagination</p> * * */ @JsonProperty("pagination") public void setPagination(Pagination pagination) { this.pagination = pagination; } public SearchObjectsOutput withPagination(Pagination pagination) { this.pagination = pagination; return this; } @JsonProperty("sorting_rules") public List<SortingRule> getSortingRules() { return sortingRules; } @JsonProperty("sorting_rules") public void setSortingRules(List<SortingRule> sortingRules) { this.sortingRules = sortingRules; } public SearchObjectsOutput withSortingRules(List<SortingRule> sortingRules) { this.sortingRules = sortingRules; return this; } @JsonProperty("objects") public List<ObjectData> getObjects() { return objects; } @JsonProperty("objects") public void setObjects(List<ObjectData> objects) { this.objects = objects; } public SearchObjectsOutput withObjects(List<ObjectData> objects) { this.objects = objects; return this; } @JsonProperty("total") public Long getTotal() { return total; } @JsonProperty("total") public void setTotal(Long total) { this.total = total; } public SearchObjectsOutput withTotal(Long total) { this.total = total; return this; } @JsonProperty("search_time") public Long getSearchTime() { return searchTime; } @JsonProperty("search_time") public void setSearchTime(Long searchTime) { this.searchTime = searchTime; } public SearchObjectsOutput withSearchTime(Long searchTime) { this.searchTime = searchTime; return this; } @JsonAnyGetter public Map<String, Object> getAdditionalProperties() { return this.additionalProperties; } @JsonAnySetter public void setAdditionalProperties(String name, Object value) { this.additionalProperties.put(name, value); } @Override public String toString() { return ((((((((((((("SearchObjectsOutput"+" [pagination=")+ pagination)+", sortingRules=")+ sortingRules)+", objects=")+ objects)+", total=")+ total)+", searchTime=")+ searchTime)+", additionalProperties=")+ additionalProperties)+"]"); } }
[ "rsutormin@lbl.gov" ]
rsutormin@lbl.gov
f7e1ef25715d26483d881bec47d56b5486a58c00
20eb62855cb3962c2d36fda4377dfd47d82eb777
/IntroClassJava/dataset/smallest/346b1d3c1cdc3032d07222a8a5e0027a2abf95bb1697b9d367d7cca7db1af769d8298e232c56471a122f05e87e79f4bd965855c9c0f8b173ebc0ef5d0abebc7b/002/mutations/129/smallest_346b1d3c_002.java
99685ce42773005f69ed7f16e0648f27caa61730
[]
no_license
ozzydong/CapGen
356746618848065cce4e253e5d3c381baa85044a
0ba0321b6b1191443276021f1997833342f02515
refs/heads/master
2023-03-18T20:12:02.923428
2020-08-21T03:08:28
2020-08-21T03:08:28
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,484
java
package introclassJava; class IntObj { public int value; public IntObj () { } public IntObj (int i) { value = i; } } class FloatObj { public float value; public FloatObj () { } public FloatObj (float i) { value = i; } } class LongObj { public long value; public LongObj () { } public LongObj (long i) { value = i; } } class DoubleObj { public double value; public DoubleObj () { } public DoubleObj (double i) { value = i; } } class CharObj { public char value; public CharObj () { } public CharObj (char i) { value = i; } } public class smallest_346b1d3c_002 { public java.util.Scanner scanner; public String output = ""; public static void main (String[]args) throws Exception { smallest_346b1d3c_002 mainClass = new smallest_346b1d3c_002 (); String output; if (args.length > 0) { mainClass.scanner = new java.util.Scanner (args[0]); } else { mainClass.scanner = new java.util.Scanner (System.in); } mainClass.exec (); System.out.println (mainClass.output); } public void exec () throws Exception { IntObj a = new IntObj (), b = new IntObj (), c = new IntObj (), d = new IntObj (), num_1 = new IntObj (), num_2 = new IntObj (), num_3 = new IntObj (), num_4 = new IntObj (); output += (String.format ("Please enter 4 numbers seperated by spaces > ")); num_1.value = scanner.nextInt (); num_2.value = scanner.nextInt (); num_3.value = scanner.nextInt (); num_4.value = scanner.nextInt (); a.value = (num_1.value); b.value = (num_2.value); c.value = (num_3.value); d.value = (num_4.value); if ((d.value) < (b.value) && a.value < d.value) { output += (String.format ("%d is the smallest\n", a.value)); } else if (b.value < a.value && b.value < c.value && b.value < d.value) { output += (String.format ("%d is the smalles\n", b.value)); } else if (c.value < a.value && c.value < b.value && c.value < d.value) { output += (String.format ("%d is the smallest\n", c.value)); } else if (d.value < a.value && d.value < b.value && d.value < c.value) { output += (String.format ("%d is the smallest\n", d.value)); } if (true) return;; } }
[ "justinwm@163.com" ]
justinwm@163.com
0e87d2eb082bcb2abd518a1cb18c4c609fb9cd12
7c7cdbc8ac2d584c075cf2d1c42e471c3791cce9
/src/java/whowhere/logic/edittrip.java
c3bf1a74b9c049314312c26d27fbeb039d3c8ea7
[]
no_license
samskivert/whowhere
51f1f65efd4369166bc386793488cf4692c3c41c
60bc2f7add67b66a3872edeb7f3f50161a44050e
refs/heads/master
2023-06-23T20:19:03.188475
2003-10-13T18:20:06
2003-10-13T18:20:06
105,596,712
0
0
null
null
null
null
UTF-8
Java
false
false
3,013
java
// // $Id$ package whowhere.logic; import java.util.Date; import com.samskivert.servlet.user.*; import com.samskivert.servlet.util.DataValidationException; import com.samskivert.servlet.util.ParameterUtil; import com.samskivert.velocity.*; import whowhere.WhoWhere; import whowhere.data.*; public class edittrip implements Logic { public void invoke (Application app, InvocationContext ctx) throws Exception { UserManager usermgr = ((WhoWhere)app).getUserManager(); User user = usermgr.requireUser(ctx.getRequest()); String errmsg = null; // look up the specified trip int tripid = ParameterUtil.requireIntParameter( ctx.getRequest(), "tripid", "edittrip.error.missing_trip_id"); TripRepository rep = ((WhoWhere)app).getRepository(); Trip trip = rep.getTrip(tripid); if (trip == null) { throw new DataValidationException( "edittrip.error.no_such_trip"); } // make sure this user owns this trip if (user.userId != trip.travelerid) { throw new DataValidationException( "edittrip.error.not_owner_of_trip"); } // if we're submitting edits, modify the trip object and store it // back into the database if (ParameterUtil.parameterEquals( ctx.getRequest(), "action", "update")) { // insert the trip into the context so that it will be // displayed to the user ctx.put("trip", trip); // parse our updated fields trip.destination = ParameterUtil.requireParameter( ctx.getRequest(), "destination", "edittrip.error.missing_destination"); Date date = ParameterUtil.requireDateParameter( ctx.getRequest(), "begins", "edittrip.error.invalid_begins"); trip.begins = new java.sql.Date(date.getTime()); date = ParameterUtil.requireDateParameter( ctx.getRequest(), "ends", "edittrip.error.invalid_ends"); trip.ends = new java.sql.Date(date.getTime()); trip.description = ParameterUtil.getParameter( ctx.getRequest(), "description", false); // check those new dates for sense and sensibility if (trip.begins.compareTo(trip.ends) > 0) { throw new DataValidationException( "edittrip.error.ends_before_begins"); } // update the trip in the repository rep.updateTrip(trip); // let the user know we updated errmsg = "edittrip.message.trip_updated"; } else if (ParameterUtil.parameterEquals( ctx.getRequest(), "action", "delete")) { // remove the trip from the repository rep.deleteTrip(trip); // let the user know what we did errmsg = "edittrip.message.trip_deleted"; } else { // insert the trip into the context so that it will be // displayed to the user ctx.put("trip", trip); } // handle any message that was generated if (errmsg != null) { ctx.put("error", app.translate(ctx, errmsg)); } } }
[ "mdb@samskivert.com" ]
mdb@samskivert.com
c5bc0f482b235c6cc200b6db2f6f470c76d66f5d
0cfa4343f83eea4288bafeef64ad2f7cb7a499ba
/app/src/main/java/widget/adapters/AdapterWheel.java
80048415f2dde6c649b5c11781a83e0c248615d0
[]
no_license
wodejiusannian/HuiChuanYi
4a049b2a901d6b2dc868ccff5a7227c2462315f0
14aa2cc99ec1b0a1c1c085662d6fb324f3a714fc
refs/heads/master
2020-12-02T18:16:53.406731
2018-07-10T01:14:28
2018-07-10T01:14:28
81,194,590
0
0
null
null
null
null
UTF-8
Java
false
false
1,554
java
/* * Copyright 2011 Yuri Kanivets * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package widget.adapters; import android.content.Context; import widget.WheelAdapter; /** * Adapter class for old wheel adapter (deprecated WheelAdapter class). * * @deprecated Will be removed soon */ public class AdapterWheel extends AbstractWheelTextAdapter { // Source adapter private WheelAdapter adapter; /** * Constructor * @param context the current context * @param adapter the source adapter */ public AdapterWheel(Context context, WheelAdapter adapter) { super(context); this.adapter = adapter; } /** * Gets original adapter * @return the original adapter */ public WheelAdapter getAdapter() { return adapter; } @Override public int getItemsCount() { return adapter.getItemsCount(); } @Override protected CharSequence getItemText(int index) { return adapter.getItem(index); } }
[ "752443668@qq.com" ]
752443668@qq.com
29047c485fb08a63d2b024e75ebc55300c0e1484
b36a85dd502904fc014f318e91a7ff5d67537905
/src/main/java/com/redxun/saweb/filter/FilterServletOutputStream.java
d69e5763888010229864129b7bac63cb299c9461
[]
no_license
clickear/jsaas
7c0819b4f21443c10845e549b521fa50c3a1c760
ddffd4c42ee40c8a2728d46e4c7009a95f7f801f
refs/heads/master
2020-03-16T09:00:40.649868
2018-04-18T12:13:50
2018-04-18T12:13:50
132,606,788
4
8
null
2018-05-08T12:37:25
2018-05-08T12:37:25
null
UTF-8
Java
false
false
1,369
java
package com.redxun.saweb.filter; import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream; import javax.servlet.ServletOutputStream; import javax.servlet.WriteListener; //import javax.servlet.WriteListener; /** * Servlet 输出流 * @author mansan * @Email chshxuan@163.com * @Copyright (c) 2014-2016 广州红迅软件有限公司(http://www.redxun.cn) * 本源代码受软件著作法保护,请在授权允许范围内使用 */ public class FilterServletOutputStream extends ServletOutputStream { private DataOutputStream stream; //private WriteListener writeListener; public FilterServletOutputStream(OutputStream output) { stream = new DataOutputStream(output); } public void write(int b) throws IOException { stream.write(b); } public void write(byte[] b) throws IOException { stream.write(b); } public void write(byte[] b, int off, int len) throws IOException { stream.write(b, off, len); } //public boolean isReady() { // // TODO Auto-generated method stub // return false; //} // // //public void setWriteListener(WriteListener arg0) { // // TODO Auto-generated method stub // //} // /*@Override public void setWriteListener(WriteListener writeListener) { this.writeListener = writeListener; } @Override public boolean isReady() { return true; }*/ }
[ "yijiang331" ]
yijiang331
30babe46e8878043361453798b8b10a7043dc20f
0c65eead5b7076e042c1c4800ece7e61e99f2ba7
/Java/ch8_interface/src/project.java
8414c7f60225cf2ecc483a2e477c6d17bcee5985
[]
no_license
LeeSM0518/TIL
3826a432b73945ebea302eef6429a93b6baa1f4f
463d7e056b0083047f3e33d705d77f014947f982
refs/heads/master
2021-06-28T07:26:20.215835
2020-09-25T14:16:00
2020-09-25T14:16:00
149,553,733
3
3
null
2019-02-14T13:16:25
2018-09-20T05:00:06
Java
UTF-8
Java
false
false
2,670
java
abstract class Tool { abstract public void repair(); abstract public void function(); } interface Computer { void powerOn(); void powerOff(); default void usb(Mouse a){ System.out.println(a.name + " 을 연결했습니다."); } default void usb(KeyBoard a){ System.out.println(a.name + " 을 연결했습니다."); } default void blueTooth(Tool tool){ if(tool instanceof Mouse) { System.out.println(((Mouse) tool).name + " 을 블루투스로 연결 했습니다."); } else if(tool instanceof KeyBoard) { System.out.println(((KeyBoard)tool).name + " 을 블루투스로 연결 했습니다."); } } } class DeskTop implements Computer { public void powerOn(){ System.out.println("데스크탑 전원을 킨다."); } public void powerOff(){ System.out.println("데스크탑 전원을 끊다"); } } class NoteBook implements Computer { public void powerOn(){ System.out.println("노트북 전원을 킨다."); } public void powerOff(){ System.out.println("노트북 전원을 끊다"); } } class Tablet implements Computer { public void powerOn(){ System.out.println("테블릿 전원을 킨다."); } public void powerOff(){ System.out.println("테블릿 전원을 끊다"); } } class Mouse extends Tool{ public String name = "마우스"; @Override public void repair() { System.out.println(this.name + " 을 고친다."); } @Override public void function() { System.out.println("클릭"); } } class KeyBoard extends Tool{ public String name = "키보드"; @Override public void repair() { System.out.println(this.name + "을 고친다."); } @Override public void function() { System.out.println("타자"); } } class test { public static void main(String[] args) { Computer com = null; Tool tool = null; DeskTop deskTop = new DeskTop(); NoteBook noteBook = new NoteBook(); Tablet tablet = new Tablet(); Mouse mouse = new Mouse(); KeyBoard keyBoard = new KeyBoard(); com = deskTop; com.powerOn(); com.powerOff(); com.usb(mouse); com.usb(keyBoard); com = noteBook; com.powerOn(); com.powerOff(); com.usb(mouse); com.usb(keyBoard); com = tablet; com.powerOn(); com.powerOff(); com.blueTooth(mouse); com.blueTooth(keyBoard); mouse.function(); mouse.repair(); } }
[ "nalsm98@naver.com" ]
nalsm98@naver.com
d8edc848cc6de46cdf5e72fa4ddc8d0f4d6125c8
a74bec9727d40f52d3903889d654f6bea6c59b43
/eu.jgen.notes.dmw.lite/src-gen/eu/jgen/notes/dmw/lite/lang/impl/YNullImpl.java
ad104aa37bf385206d1cadf82bcd238e99cef46b
[]
no_license
JGen-Notes/DMW-Lite
a3458e2c940b1f50e645adc49951e7a2770c0b18
8c81b8f1cca717fe1c747567672a6b7db1a91c0a
refs/heads/master
2020-03-18T04:56:11.508556
2018-10-07T08:46:12
2018-10-07T08:46:12
134,136,254
0
0
null
null
null
null
UTF-8
Java
false
false
740
java
/** * generated by Xtext 2.12.0 */ package eu.jgen.notes.dmw.lite.lang.impl; import eu.jgen.notes.dmw.lite.lang.LangPackage; import eu.jgen.notes.dmw.lite.lang.YNull; import org.eclipse.emf.ecore.EClass; /** * <!-- begin-user-doc --> * An implementation of the model object '<em><b>YNull</b></em>'. * <!-- end-user-doc --> * * @generated */ public class YNullImpl extends YExpressionImpl implements YNull { /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected YNullImpl() { super(); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EClass eStaticClass() { return LangPackage.Literals.YNULL; } } //YNullImpl
[ "ms@jgen.eu" ]
ms@jgen.eu
d6926b553d6e2d24cbf2a31533a5ee4ae8179bdc
0b85e873533b87ad235934118b7c80429f5a913b
/basicJava/basicJavaPractice/src/day07_Random和ArrayList类/Student.java
b9c79190bcd3df43e3340ee3b87b0064e8fa3020
[]
no_license
lqt1401737962/Java-Notes
0eeed847d45957b0e8f5d2017287238eea910e62
9ceb16dd89fe9343fd80cf5a861fe6da5e502b07
refs/heads/master
2022-08-05T21:43:04.183997
2021-04-06T09:04:26
2021-04-06T09:04:26
228,815,761
0
0
null
2022-06-21T04:16:04
2019-12-18T10:28:35
Java
UTF-8
Java
false
false
534
java
package day07_Random和ArrayList类; import javax.lang.model.element.NestingKind; public class Student { private String name; private int age; public Student(String name, int age) { this.name = name; this.age = age; } public Student() { } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } }
[ "1401737962@qq.com" ]
1401737962@qq.com
b41fb9cc2db54bf0c5d0be2ee4841f62f60cf2da
ba2eef5e3c914673103afb944dd125a9e846b2f6
/AL-Game/src/com/aionemu/gameserver/model/templates/flyring/FlyRingPoint.java
0697d287449e6aa4fd718940334037b46c935111
[]
no_license
makifgokce/Aion-Server-4.6
519d1d113f483b3e6532d86659932a266d4da2f8
0a6716a7aac1f8fe88780aeed68a676b9524ff15
refs/heads/master
2022-10-07T11:32:43.716259
2020-06-10T20:14:47
2020-06-10T20:14:47
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,598
java
/** * This file is part of Aion-Lightning <aion-lightning.org>. * * Aion-Lightning is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Aion-Lightning is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Aion-Lightning. * If not, see <http://www.gnu.org/licenses/>. */ package com.aionemu.gameserver.model.templates.flyring; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlType; import com.aionemu.gameserver.model.utils3d.Point3D; /** * @author M@xx */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "FlyRingPoint") public class FlyRingPoint { @XmlAttribute(name = "x") private float x; @XmlAttribute(name = "y") private float y; @XmlAttribute(name = "z") private float z; public float getX() { return x; } public float getY() { return y; } public float getZ() { return z; } public FlyRingPoint() { } public FlyRingPoint(Point3D p) { x = (float) p.x; y = (float) p.y; z = (float) p.z; } }
[ "Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7" ]
Falke_34@080676fd-0f56-412f-822c-f8f0d7cea3b7
c20f6e8d44489390725310e2807c102ae34cb4ab
1439826238439a35ce176066ea17e59554f06ccf
/src/com/gamesbykevin/bubblebobble2/input/Input.java
f613feecd6737465dec852b72c1ee774608460df
[]
no_license
gamesbykevin/BubbleBobble2
8a5d24bd1f68cf4e6afb04a754be7d2db866b8fc
20fc79dcc89bf228caefedecd9cc65a5e83912f6
refs/heads/master
2021-01-10T20:50:32.017153
2015-07-13T03:46:33
2015-07-13T03:46:33
21,779,744
3
0
null
null
null
null
UTF-8
Java
false
false
3,855
java
package com.gamesbykevin.bubblebobble2.input; import com.gamesbykevin.framework.input.Keyboard; import com.gamesbykevin.bubblebobble2.character.Character; import com.gamesbykevin.bubblebobble2.resources.GameAudio; import com.gamesbykevin.bubblebobble2.resources.Resources; import java.awt.event.KeyEvent; /** * This class will handle the keyboard input for the object * @author GOD */ public final class Input { /** * The keys we will check for input */ public static final int KEY_LEFT = KeyEvent.VK_LEFT; public static final int KEY_RIGHT = KeyEvent.VK_RIGHT; public static final int KEY_DOWN = KeyEvent.VK_DOWN; public static final int KEY_JUMP = KeyEvent.VK_A; public static final int KEY_FIRE = KeyEvent.VK_S; /** * Manage the character based on keyboard input * @param character The character we want to manage * @param keyboard Object containing keyboard input */ public static void update(final Character character, final Keyboard keyboard, final Resources resources) { //if the character is starting don't check input yet if (character.isStarting() || character.isDead()) return; //can only press left or right if (keyboard.hasKeyPressed(KEY_LEFT)) { if (character.canWalk()) { character.setVelocityX(-character.getSpeedWalk()); character.setHorizontalFlip(true); if (!character.isJumping() && !character.isFalling()) character.setWalk(true); } } else if (keyboard.hasKeyPressed(KEY_RIGHT)) { if (character.canWalk()) { character.setVelocityX(character.getSpeedWalk()); character.setHorizontalFlip(false); if (!character.isJumping() && !character.isFalling()) character.setWalk(true); } } //determine which way to face the character if (keyboard.hasKeyReleased(KEY_LEFT)) { keyboard.removeKeyReleased(KEY_LEFT); character.resetVelocityX(); character.setWalk(false); if (!character.isAttacking()) { character.setHorizontalFlip(true); if (!character.isJumping() && !character.isFalling()) character.setIdle(true); } } else if (keyboard.hasKeyReleased(KEY_RIGHT)) { keyboard.removeKeyReleased(KEY_RIGHT); character.resetVelocityX(); character.setWalk(false); if (!character.isAttacking()) { character.setHorizontalFlip(false); if (!character.isJumping() && !character.isFalling()) character.setIdle(true); } } if (keyboard.hasKeyPressed(KEY_JUMP)) { if (character.canJump()) { character.setJump(true); character.setVelocityY(-Character.MAX_SPEED_JUMP); //play sound effect resources.playGameAudio(GameAudio.Keys.SoundJump); } } if (keyboard.hasKeyReleased(KEY_FIRE)) { if (character.canAttack()) { character.setAttack(true); character.addProjectile(); character.resetVelocityX(); } //stop firing keyboard.removeKeyReleased(KEY_FIRE); } } }
[ "GOD@192.168.0.109" ]
GOD@192.168.0.109
2f18b7d698658389b2ac981e3cc0469b93333601
16f7922e19077474ecf66d26282e93c5dd6fe42b
/01Code/01Code/com.tiuweb.family/com.tiuweb.family/com.tiuweb.family.service/src/main/java/com/tiuweb/family/plan/service/ITblPlanTransferTreatmentRecordService.java
029cd9e833a524d6855b25bfd7b9204dffad439a
[]
no_license
lanshitou/family
72427f076abd82160771467d20927a385aaa0d73
7a4e63a23d0d40dbe81b30ed153af7d40f62c227
refs/heads/master
2020-04-13T11:24:29.073145
2018-12-26T11:42:47
2018-12-26T11:42:47
163,173,424
0
0
null
null
null
null
UTF-8
Java
false
false
1,379
java
/* * @(#) ITblPlanTransferTreatmentRecordService 2017-08-07 10:38:53 * * Copyright 2003 by TiuWeb Corporation. * 51 zhangba six Road, xian, PRC 710065 // Replace with xian’s address * * All rights reserved. * * This software is the confidential and proprietary information of * TiuWeb Corporation. You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with TiuWeb. */ package com.tiuweb.family.plan.service; import com.tiuweb.climb.framework.commons.service.IBaseService; import com.tiuweb.climb.framework.commons.util.ServiceRunException; import com.tiuweb.family.plan.domain.TblPlanTransferTreatmentRecord; /** * * <p> * Title: 执行计划转诊记录 * </p> * <p> * Description: TODO 执行计划转诊记录Service层 * * @author tanggeliang * @version 1.00.00 创建时间:2017-08-07 10:38:53 * * <pre> * 修改记录: 版本号 修改人 修改日期 修改内容 * */ public interface ITblPlanTransferTreatmentRecordService extends IBaseService<TblPlanTransferTreatmentRecord> { /** * 新增转诊记录 * * @param tblPlanTransferTreatmentRecord * @return * @throws ServiceRunException */ int insertTransfer(TblPlanTransferTreatmentRecord tblPlanTransferTreatmentRecord) throws ServiceRunException; }
[ "444858933@qq.com" ]
444858933@qq.com
a95c283d42df0f8becd80315c7ad3adaba1da7e6
336026115845bb723c038da4270a69be4341a296
/easymis-dap-catalog/src/main/java/org/easymis/dap/catalog/security/MyWebMvcConfigurerAdapter.java
e13eee626a57b0d2b3851a11f25a93bb2e3b1624
[]
no_license
zhangjianhrm/easymis-dap
5e9c6be475205edeeb4ed06d86dcbfad3602341f
2e510862fae4e2d000fcc15685154e2821a419b6
refs/heads/master
2020-07-07T18:16:33.576617
2019-06-12T14:28:08
2019-06-12T14:28:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
680
java
package org.easymis.dap.catalog.security; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; @Configuration public class MyWebMvcConfigurerAdapter extends WebMvcConfigurerAdapter { /** * 配置静态访问资源 * @param registry */ @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/"); super.addResourceHandlers(registry); } }
[ "13551259347@139.com" ]
13551259347@139.com
6679e1279b486e9b4499cf9c132972f5df4ce7c5
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/54/org/apache/commons/math/linear/RealMatrix_walkInColumnOrder_637.java
bafe86c989d2d4b920502a9764b9dca4c2cd66b8
[]
no_license
hvdthong/NetML
dca6cf4d34c5799b400d718e0a6cd2e0b167297d
9bb103da21327912e5a29cbf9be9ff4d058731a5
refs/heads/master
2021-06-30T15:03:52.618255
2020-10-07T01:58:48
2020-10-07T01:58:48
150,383,588
1
1
null
2018-09-26T07:08:45
2018-09-26T07:08:44
null
UTF-8
Java
false
false
2,379
java
org apach common math linear interfac defin real valu matrix basic algebra oper matrix element index base code entri getentri code return element row column matrix version revis date real matrix realmatrix matrix anymatrix visit chang matrix entri column order column order start upper left iter element column top bottom topmost element column param visitor visitor process matrix entri org apach common math except math user except mathuserexcept visitor process entri walk row order walkinroword real matrix chang visitor realmatrixchangingvisitor walk row order walkinroword real matrix preserv visitor realmatrixpreservingvisitor walk row order walkinroword real matrix chang visitor realmatrixchangingvisitor walk row order walkinroword real matrix preserv visitor realmatrixpreservingvisitor walk column order walkincolumnord real matrix chang visitor realmatrixchangingvisitor walk column order walkincolumnord real matrix chang visitor realmatrixchangingvisitor walk column order walkincolumnord real matrix preserv visitor realmatrixpreservingvisitor walk optim order walkinoptimizedord real matrix chang visitor realmatrixchangingvisitor walk optim order walkinoptimizedord real matrix preserv visitor realmatrixpreservingvisitor walk optim order walkinoptimizedord real matrix chang visitor realmatrixchangingvisitor walk optim order walkinoptimizedord real matrix preserv visitor realmatrixpreservingvisitor return link real matrix preserv visitor realmatrixpreservingvisitor end end walk walk column order walkincolumnord real matrix preserv visitor realmatrixpreservingvisitor visitor
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
f5f68c883e5d966487d97a1bd504cec99bc7fd69
4e9c06ff59fe91f0f69cb3dd80a128f466885aea
/src/o/ﮆ.java
95885aa5707782c981f919b3dd5382ab3058f364
[]
no_license
reverseengineeringer/com.eclipsim.gpsstatus2
5ab9959cc3280d2dc96f2247c1263d14c893fc93
800552a53c11742c6889836a25b688d43ae68c2e
refs/heads/master
2021-01-17T07:26:14.357187
2016-07-21T03:33:07
2016-07-21T03:33:07
63,834,134
0
0
null
null
null
null
UTF-8
Java
false
false
2,642
java
package o; import android.os.Build.VERSION; import android.view.View; import android.widget.PopupWindow; public final class ﮆ { static final aux bR = new ˋ(); static { int i = Build.VERSION.SDK_INT; if (i >= 23) { bR = new ˊ(); return; } if (i >= 21) { bR = new if(); return; } if (i >= 19) { bR = new ˏ(); return; } if (i >= 9) { bR = new ˎ(); return; } } public static void ˊ(PopupWindow paramPopupWindow, int paramInt) { bR.ˊ(paramPopupWindow, paramInt); } public static void ˊ(PopupWindow paramPopupWindow, View paramView, int paramInt1, int paramInt2, int paramInt3) { bR.ˊ(paramPopupWindow, paramView, paramInt1, paramInt2, paramInt3); } public static void ˊ(PopupWindow paramPopupWindow, boolean paramBoolean) { bR.ˊ(paramPopupWindow, paramBoolean); } static abstract interface aux { public abstract void ˊ(PopupWindow paramPopupWindow, int paramInt); public abstract void ˊ(PopupWindow paramPopupWindow, View paramView, int paramInt1, int paramInt2, int paramInt3); public abstract void ˊ(PopupWindow paramPopupWindow, boolean paramBoolean); } static class if extends ﮆ.ˏ { public void ˊ(PopupWindow paramPopupWindow, boolean paramBoolean) { ﹱ.ˊ(paramPopupWindow, paramBoolean); } } static class ˊ extends ﮆ.if { public void ˊ(PopupWindow paramPopupWindow, int paramInt) { ﺀ.ˊ(paramPopupWindow, paramInt); } public void ˊ(PopupWindow paramPopupWindow, boolean paramBoolean) { ﺀ.ˊ(paramPopupWindow, paramBoolean); } } static class ˋ implements ﮆ.aux { public void ˊ(PopupWindow paramPopupWindow, int paramInt) {} public void ˊ(PopupWindow paramPopupWindow, View paramView, int paramInt1, int paramInt2, int paramInt3) { paramPopupWindow.showAsDropDown(paramView, paramInt1, paramInt2); } public void ˊ(PopupWindow paramPopupWindow, boolean paramBoolean) {} } static class ˎ extends ﮆ.ˋ { public void ˊ(PopupWindow paramPopupWindow, int paramInt) { ﺪ.ˊ(paramPopupWindow, paramInt); } } static class ˏ extends ﮆ.ˎ { public void ˊ(PopupWindow paramPopupWindow, View paramView, int paramInt1, int paramInt2, int paramInt3) { ﺭ.ˊ(paramPopupWindow, paramView, paramInt1, paramInt2, paramInt3); } } } /* Location: * Qualified Name: o.ﮆ * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
ab7e99c4c8c80923eef32799bf20f42311668988
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/4/4_6452577557dec9d9eb32450cabe3bfa833fd0de6/TARDISPoliceBoxPreset/4_6452577557dec9d9eb32450cabe3bfa833fd0de6_TARDISPoliceBoxPreset_s.java
4cbce34900784d53ac5ed83c8ea636b37ed7b47e
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
2,416
java
/* * Copyright (C) 2013 eccentric_nz * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package me.eccentric_nz.TARDIS.chameleon; /** * A chameleon conversion is a repair procedure that technicians perform on * TARDIS chameleon circuits. The Fourth Doctor once said that the reason the * TARDIS' chameleon circuit was stuck was because he had "borrowed" it from * Gallifrey before the chameleon conversion was completed. * * @author eccentric_nz */ public class TARDISPoliceBoxPreset extends TARDISPreset { private final String blueprint_id = "[[35,35,35,0],[35,35,35,0],[35,35,35,0],[35,35,35,0],[35,35,35,0],[35,35,35,0],[35,35,35,0],[71,71,35,0],[0,0,35,50],[0,0,68,0]]"; private final String blueprint_data = "[[11,11,11,0],[11,11,11,0],[11,11,11,0],[11,11,11,0],[11,11,11,0],[11,11,11,0],[11,11,11,0],[0,8,11,0],[0,0,11,5],[0,0,4,0]]"; private final String stained_id = "[[95,95,95,0],[95,95,95,0],[95,95,95,0],[95,95,95,0],[95,95,95,0],[95,95,95,0],[95,95,95,0],[71,71,95,0],[0,0,95,0],[0,0,68,0]]"; private final String stained_data = "[[-1,-1,-1,0],[-1,-1,-1,0],[-1,-1,-1,0],[-1,-1,-1,0],[-1,-1,-1,0],[-1,-1,-1,0],[-1,-1,-1,0],[0,8,-1,0],[0,0,-1,0],[0,0,4,0]]"; private final String glass_id = "[[20,20,20,0],[20,20,20,0],[20,20,20,0],[20,20,20,0],[20,20,20,0],[20,20,20,0],[20,20,20,0],[71,71,20,0],[0,0,20,0],[0,0,68,0]]"; private final String glass_data = "[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,8,0,0],[0,0,0,0],[0,0,4,0]]"; public TARDISPoliceBoxPreset() { setBlueprint_id(blueprint_id); setBlueprint_data(blueprint_data); setStained_id(stained_id); setStained_data(stained_data); setGlass_id(glass_id); setGlass_data(glass_data); } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com
4cdafd4526b395fd05abd016344687c6e2fa75fb
57bccc9613f4d78acd0a6ede314509692f2d1361
/pbk-vis-lib/src/main/java/ru/armd/pbk/components/viss/gismgt/converters/GmStopStateConverter.java
b5d2c59531d48cb8603e498d8a742ebceb4e5da6
[]
no_license
mannyrobin/Omnecrome
70f27fd80a9150b89fe3284d5789e4348cba6a11
424d484a9858b30c11badae6951bccf15c2af9cb
refs/heads/master
2023-01-06T16:20:50.181849
2020-11-06T14:37:14
2020-11-06T14:37:14
310,620,098
0
0
null
null
null
null
UTF-8
Java
false
false
2,540
java
package ru.armd.pbk.components.viss.gismgt.converters; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import ru.armd.pbk.domain.viss.gismgt.GmStopState; import ru.armd.pbk.enums.core.VisAuditType; import ru.armd.pbk.gismgt.schema.ObjectMessage; import ru.armd.pbk.gismgt.schema.RStopState; import ru.armd.pbk.gismgt.schema.TStopState; import ru.armd.pbk.mappers.viss.gismgt.GmStopStateMapper; import ru.armd.pbk.mappers.viss.gismgt.IGmMapper; /** * Конвертор из TStopState в StopState. */ @Component public class GmStopStateConverter extends AbstractGmConverter<RStopState, GmStopState> { public static final Logger LOGGER = Logger.getLogger(GmStopStateConverter.class); @Autowired private GmStopStateMapper mapper; /** * Конструктор по умолчанию. */ public GmStopStateConverter() { super(VisAuditType.VIS_GISMGT_STOP_STATE); } @Override public Logger getLogger() { return LOGGER; } @Override protected IGmMapper<GmStopState> getMapper() { return mapper; } @Override protected GmStopState convert(RStopState gis) { TStopState body = gis.getBody(); GmStopState domain = new GmStopState(); domain.setAsduId(getAsduId(gis.getHeader().getIdentSet())); domain.setMuid(getLongValueFromString(body.getMuid())); domain.setIsDelete(getIntValue(body.getSignDeleted())); domain.setVersion(body.getVersion().intValue()); domain.setName(getStringValue(body.getName())); return domain; } @Override protected Boolean merge(GmStopState to, GmStopState from) { Boolean result = super.merge(to, from); if (from.getName() != null && !from.getName().equals(to.getName())) { result = true; to.setName(from.getName()); } return result; } @Override protected GmStopState fillMain(Long muid) { GmStopState domain = new GmStopState(); domain.setMuid(muid); domain.setIsDelete(0); domain.setVersion(0); return domain; } @Override protected RStopState toGis(ObjectMessage objectMessage) { RStopState gis = new RStopState(); RStopState.Header header = new RStopState.Header(); header.setIdentSet(objectMessage.getHeader().getIdentSet()); header.setObjectType(objectMessage.getHeader().getObjectType()); header.setOperation(objectMessage.getHeader().getOperation()); gis.setBody(objectMessage.getBody().getTStopState()); gis.setHeader(header); return gis; } }
[ "malike@hipcreativeinc.com" ]
malike@hipcreativeinc.com
ba28bb86a9added56b6bf8e42a8300edb5f72a7f
e75be673baeeddee986ece49ef6e1c718a8e7a5d
/submissions/blizzard/Corpus/ecf/1310.java
ec787e3c6efa9c35219d763d32f1601a02304de1
[ "MIT" ]
permissive
zhendong2050/fse18
edbea132be9122b57e272a20c20fae2bb949e63e
f0f016140489961c9e3c2e837577f698c2d4cf44
refs/heads/master
2020-12-21T11:31:53.800358
2018-07-23T10:10:57
2018-07-23T10:10:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,677
java
/* Copyright (c) 2006-2009 Jan S. Rellermeyer * Systems Group, * Institute for Pervasive Computing, ETH Zurich. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - Neither the name of ETH Zurich nor the names of its contributors may be * used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ package ch.ethz.iks.r_osgi.messages; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; public class DeliverBundlesMessage extends RemoteOSGiMessage { /** * the bytes of the bundles */ private byte[][] bytes; public DeliverBundlesMessage() { super(RemoteOSGiMessage.DELIVER_BUNDLES); } /** * create a new message from the wire. * * @param input * the input stream. * @throws IOException * in case of IO problems. */ public DeliverBundlesMessage(final ObjectInputStream input) throws IOException { super(RemoteOSGiMessage.DELIVER_BUNDLES); final int bundleCount = input.readInt(); bytes = new byte[bundleCount][]; for (int i = 0; i < bundleCount; i++) { bytes[i] = readBytes(input); } } /** * write the body of this message to the wire. */ protected void writeBody(final ObjectOutputStream output) throws IOException { output.writeInt(bytes.length); for (int i = 0; i < bytes.length; i++) { writeBytes(output, bytes[i]); } } /** * get the bytes of the dependency bundles. * * @return the bundle bytes. */ public byte[][] getDependencies() { return bytes; } /** * set the bytes of the dependency bundles. * * @param bytes */ public void setDependencies(final byte[][] bytes) { this.bytes = bytes; } /** * String representation for debug outputs. * * @return a string representation. * @see java.lang.Object#toString() */ public String toString() { final StringBuffer buffer = new StringBuffer(); //$NON-NLS-1$ buffer.append("[DELIVER_BUNDLES]"); //$NON-NLS-1$ buffer.append("- XID: "); buffer.append(xid); //$NON-NLS-1$ buffer.append(", ... "); return buffer.toString(); } }
[ "tim.menzies@gmail.com" ]
tim.menzies@gmail.com
e7757327ef7edc148a6c731466272f466632ea38
53d677a55e4ece8883526738f1c9d00fa6560ff7
/com/tencent/mm/plugin/luckymoney/sns/b/a.java
b0d203a2b799096f783d6cf2cb34d11fd7860ada
[]
no_license
0jinxing/wechat-apk-source
544c2d79bfc10261eb36389c1edfdf553d8f312a
f75eefd87e9b9ecf2f76fc6d48dbba8e24afcf3d
refs/heads/master
2020-06-07T20:06:03.580028
2019-06-21T09:17:26
2019-06-21T09:17:26
193,069,132
9
4
null
null
null
null
UTF-8
Java
false
false
1,282
java
package com.tencent.mm.plugin.luckymoney.sns.b; import com.tencent.matrix.trace.core.AppMethodBeat; import com.tencent.mm.kernel.e; import com.tencent.mm.kernel.g; import com.tencent.mm.storage.ac.a; import com.tencent.mm.storage.z; public final class a { public static int bMi() { AppMethodBeat.i(42551); g.RQ(); int i = ((Integer)g.RP().Ry().get(ac.a.xNe, Integer.valueOf(0))).intValue(); AppMethodBeat.o(42551); return i; } public static String bMj() { AppMethodBeat.i(42553); g.RQ(); String str = (String)g.RP().Ry().get(ac.a.xNj, ""); AppMethodBeat.o(42553); return str; } public static String bMk() { AppMethodBeat.i(42554); g.RQ(); String str = (String)g.RP().Ry().get(ac.a.xNk, ""); AppMethodBeat.o(42554); return str; } public static void xV(int paramInt) { AppMethodBeat.i(42552); g.RQ(); g.RP().Ry().set(ac.a.xNe, Integer.valueOf(paramInt)); g.RQ(); g.RP().Ry().dsb(); AppMethodBeat.o(42552); } } /* Location: C:\Users\Lin\Downloads\dex-tools-2.1-SNAPSHOT\dex-tools-2.1-SNAPSHOT\classes5-dex2jar.jar * Qualified Name: com.tencent.mm.plugin.luckymoney.sns.b.a * JD-Core Version: 0.6.2 */
[ "172601673@qq.com" ]
172601673@qq.com
de0adfbeb16ce681c8ce91f6192f1377f29e761a
7e41614c9e3ddf095e57ae55ae3a84e2bdcc2844
/development/workspace(helios)/Poseidon/src/com/gentleware/poseidon/diagrams/gen/node/DslGenMergeNodeNodeGem.java
d1ea3eb92c960ecf5fff694f110842705b1b6469
[]
no_license
ygarba/mde4wsn
4aaba2fe410563f291312ffeb40837041fb143ff
a05188b316cc05923bf9dee9acdde15534a4961a
refs/heads/master
2021-08-14T09:52:35.948868
2017-11-15T08:02:31
2017-11-15T08:02:31
109,995,809
0
0
null
null
null
null
UTF-8
Java
false
false
1,695
java
package com.gentleware.poseidon.diagrams.gen.node; import java.awt.Color; import java.util.List; import org.eclipse.emf.ecore.EObject; import com.gentleware.poseidon.dsl.MetamodelElementWrapper; import com.gentleware.poseidon.idraw.foundation.DiagramFacet; import com.gentleware.poseidon.idraw.foundation.persistence.PersistentFigure; import com.gentleware.poseidon.idraw.foundation.persistence.PersistentProperties; import com.gentleware.poseidon.diagrams.base.node.*; import com.gentleware.poseidon.idraw.nodefacilities.nodesupport.*; import com.gentleware.poseidon.diagrams.feature.FeaturedNodeGem; import com.gentleware.poseidon.diagrams.feature.CompartmentFeatureInfo; import com.gentleware.poseidon.dsldeltaengine.gen.*; import com.gentleware.poseidon.diagrams.gen.bundle.DslGenDiagramResourceBundle; public class DslGenMergeNodeNodeGem extends NoNameNodeGem { public DslGenMergeNodeNodeGem(Color initialFillColor, PersistentFigure figure, String figureName) { super(initialFillColor, figure, figureName, true); } public DslGenMergeNodeNodeGem(EObject subject, DiagramFacet diagram, String figureId, Color initialFillColor, PersistentProperties properties, String figureName) { super(subject, diagram, figureId, initialFillColor, properties, figureName, true); } public String getIconName() { return "merge-node"; } public NodeAppearanceFacet createBasicNodeAppearanceFacet() { return new BasicNoNameNodeAppearanceFacet(initialFillColor, initialFillColor, figureFacet, contents, figureName, textableFacet, subject, true) { public ShapeAppearanceFacet createShapeAppearanceFacet() { return new RhombusShapeAppearanceFacet(); } }; } }
[ "ygarba@gmail.com" ]
ygarba@gmail.com
b84e8cbf4a966694289d738930e0c8d9beffcb6c
bfe8ad69a2f9c544392530d3d26511f28ecd599a
/src/main/java/com/qg/anywork/model/po/Chapter.java
2544dcadda795fdc47fef70d273219d266511fef
[]
no_license
qimingXia/anywork
d7df9f9edf8fc6dd6244a04452ce01d2872173d3
fcf5236dcb4a77cdf2dbe4473ab10e82b1198285
refs/heads/master
2020-09-28T20:25:06.316532
2018-12-14T11:18:24
2018-12-14T11:18:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
817
java
package com.qg.anywork.model.po; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; /** * @author ming */ @Data @NoArgsConstructor @AllArgsConstructor @Entity @Table(name = "chapter") public class Chapter implements Serializable { /** * 章节ID */ @Id @Column(name = "chapter_id", nullable = false) private int chapterId; /** * 组织ID */ @Column(name = "organization_id") private int organizationId; /** * 章节名称 */ @Column(name = "chapter_name") private String chapterName; @Column(name = "user_id") private Integer userId; }
[ "1594998836@qq.com" ]
1594998836@qq.com
e1a50ddd46dbdf0a2b32173f174fa9fa167a7900
7c20e36b535f41f86b2e21367d687ea33d0cb329
/Capricornus/src/com/gopawpaw/erp/hibernate/g/GlcdDet.java
7c49b84c7ce03015351a9a6730fafa4449a06d90
[]
no_license
fazoolmail89/gopawpaw
50c95b924039fa4da8f309e2a6b2ebe063d48159
b23ccffce768a3d58d7d71833f30b85186a50cc5
refs/heads/master
2016-09-08T02:00:37.052781
2014-05-14T11:46:18
2014-05-14T11:46:18
35,091,153
1
1
null
null
null
null
UTF-8
Java
false
false
662
java
package com.gopawpaw.erp.hibernate.g; /** * GlcdDet entity. @author MyEclipse Persistence Tools */ public class GlcdDet extends AbstractGlcdDet implements java.io.Serializable { // Constructors /** default constructor */ public GlcdDet() { } /** minimal constructor */ public GlcdDet(GlcdDetId id, Double oidGlcdDet) { super(id, oidGlcdDet); } /** full constructor */ public GlcdDet(GlcdDetId id, Boolean glcdGlClsd, Boolean glcdClosed, Boolean glcdYrClsd, String glcdUser1, String glcdUser2, String glcdQadc01, Double oidGlcdDet) { super(id, glcdGlClsd, glcdClosed, glcdYrClsd, glcdUser1, glcdUser2, glcdQadc01, oidGlcdDet); } }
[ "ahuaness@b3021582-c689-11de-ba9a-9db95b2bc6c5" ]
ahuaness@b3021582-c689-11de-ba9a-9db95b2bc6c5
e45bf44617955038beec9f9f22c999361400e9ad
abda16e051b78404102e5af67afacefa364134fb
/openAPI/src/main/java/jetbrains/exodus/env/Transaction.java
fdc6080969e3a7dbd8898535be50af9c32372c94
[ "Apache-2.0" ]
permissive
yusuke/xodus
c000e9dc098d58e1e30f6d912ab5283650d3f5c0
f84bb539ec16d96136d35600eb6f0966cc7b3b07
refs/heads/master
2023-09-04T12:35:52.294475
2017-12-01T18:46:24
2017-12-01T18:46:52
112,916,407
0
0
null
2017-12-03T09:46:15
2017-12-03T09:46:15
null
UTF-8
Java
false
false
6,690
java
/** * Copyright 2010 - 2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package jetbrains.exodus.env; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; /** * Transaction is required for any access to data in database. Any transaction holds a database snapshot (version * of the database), thus providing <a href="https://en.wikipedia.org/wiki/Snapshot_isolation">snapshot isolation</a>. * <p>All changes made in a transaction are atomic and consistent if they are successfully flushed or committed. * Along with snapshot isolation and configurable durability, transaction are fully * <a href="https://en.wikipedia.org/wiki/ACID">ACID-compliant</a>. * By default, transaction durability is turned off since it significantly slows down {@linkplain #flush()}and * {@linkplain #commit()}. To turn it on, pass {@code true} to {@linkplain EnvironmentConfig#setLogDurableWrite(boolean)}. * <p>Transactions can be read-only or not, exclusive or not. Read-only transactions are used to only read data. * Exclusive transactions are used to have successive access to database. If you have an exclusive transaction, * no other transaction (except read-only) can be started against the same {@linkplain Environment} unless you * finish (commit or abort) your exclusive one. * <p>Given you have an instance of {@linkplain Environment} you can start new transaction: * <pre> * final Transaction txn = environment.beginTransaction(); * </pre> * Starting read-only transaction: * <pre> * final Transaction txn = environment.beginReadonlyTransaction(); * </pre> * Starting exclusive transaction: * <pre> * final Transaction txn = environment.beginExclusiveTransaction(); * </pre> * * @see Environment * @see Environment#beginTransaction() * @see Environment#beginReadonlyTransaction() * @see Environment#beginExclusiveTransaction() * @see EnvironmentConfig#setLogDurableWrite(boolean) */ public interface Transaction { /** * Idempotent transaction changes nothing in database. It doesn't matter whether you flush it or revert, * commit or abort. Result will be the same - nothing will be added, modified or deleted. Flushing idempotent * transaction is trivial, {@linkplain #flush()} just does nothing and returns {@code true}. Each newly created * transaction is idempotent. * * @return {@code true} if transaction is idempotent * @see #flush() * @see #commit() */ boolean isIdempotent(); /** * Drops all changes and finishes the transaction. * * @see #commit() * @see #flush() * @see #revert() * @see #isFinished() */ void abort(); /** * Tries to flush all changes accumulated to the moment in the transaction and finish the transaction. If it * returns {@code true} all changes are flushed and transaction is finished, otherwise nothing is flushed and * transaction is not finished. * * @return {@code true} if transaction is committed * @see #flush() * @see #abort() * @see #revert() * @see #isFinished() */ boolean commit(); /** * Tries to flush all changes accumulated to the moment in the transaction. Returns {@code true} if flush succeeded. * In that case, transaction remains unfinished and holds the newest database snapshot. * * @return {@code true} if transaction is flushed * @see #commit() * @see #abort() * @see #revert() * @see #isFinished() */ boolean flush(); /** * Drops all changes without finishing the transaction and holds the newest database snapshot. * * @see #commit() * @see #abort() * @see #flush() * @see #isFinished() */ void revert(); /** * Creates new transaction holding the same database snapshot as this one holds. * * @return new transaction holding the same database snapshot * @see Environment#beginTransaction() */ Transaction getSnapshot(); /** * Creates new transaction with specified begin hook holding the same database snapshot as this one holds. * * @param beginHook begin hook * @return new transaction holding the same database snapshot * @see Environment#beginTransaction(Runnable) */ Transaction getSnapshot(@Nullable Runnable beginHook); /** * Creates new read-only transaction holding the same database snapshot as this one holds. * * @return new read-only transaction holding the same database snapshot * @see Environment#beginReadonlyTransaction() */ Transaction getReadonlySnapshot(); /** * @return {@linkplain Environment} instance against which the transaction was created. */ @NotNull Environment getEnvironment(); /** * Provides transaction with commit hook. Commit hook is called if and only if the transaction is going to be * successfully flushed or committed. That is, {@code hook.run()} is called when you call {@linkplain #flush()} or * {@linkplain #commit()}, and any of these methods will definitely succeed and return {@code true}. * * @param hook commit hook * @see #flush() * @see #commit() */ void setCommitHook(@Nullable Runnable hook); /** * Time when the transaction acquired its database snapshot, i.e. time when it was started, * reverted or successfully flushed (committed). * * @return the difference (in milliseconds) between current time and midnight, January 1, 1970 UTC. */ long getStartTime(); /** * @return the value of Log.getHighAddress() that was actual when the transaction was started. */ long getHighAddress(); /** * @return true if the transaction is read-only. */ boolean isReadonly(); /** * @return true if the transaction was started as exclusive one * @see Environment#beginExclusiveTransaction() */ boolean isExclusive(); /** * @return true if the transaction is finished, committed or aborted * @see #commit() * @see #abort() */ boolean isFinished(); }
[ "lvo@intellij.net" ]
lvo@intellij.net
f8f1d4f6d3f200740bf5ffbdfe230f10df270299
db77908c40c076bb713c1b00fd633457658964a3
/common/ifs-resources/src/main/java/org/innovateuk/ifs/invite/resource/CompetitionFinanceInviteResource.java
25fddcae40545ca46fac84ae2b48abddb6279880
[ "MIT" ]
permissive
InnovateUKGitHub/innovation-funding-service
e3807613fd3c398931918c6cc773d13874331cdc
964969b6dc9c78750738ef683076558cc897c1c8
refs/heads/development
2023-08-04T04:04:05.501037
2022-11-11T14:48:30
2022-11-11T14:48:30
87,336,871
30
20
MIT
2023-07-19T21:23:46
2017-04-05T17:20:38
Java
UTF-8
Java
false
false
1,002
java
package org.innovateuk.ifs.invite.resource; import org.innovateuk.ifs.invite.constant.InviteStatus; public class CompetitionFinanceInviteResource { private long id; private String hash; private String email; private long competitionId; private InviteStatus status; public long getId() { return id; } public void setId(long id) { this.id = id; } public String getHash() { return hash; } public void setHash(String hash) { this.hash = hash; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public long getCompetitionId() { return competitionId; } public void setCompetitionId(long competition) { this.competitionId = competitionId; } public InviteStatus getStatus() { return status; } public void setStatus(InviteStatus status) { this.status = status; } }
[ "markd@iuk.ukri.org" ]
markd@iuk.ukri.org
377943a1eb179f805342170889e6f6705deb86a2
49b4cb79c910a17525b59d4b497a09fa28a9e3a8
/parserValidCheck/src/main/java/com/ke/css/cimp/fwb/fwb17/Rule_DECLARED_VALUE_FOR_CUSTOMS.java
2a6920824e1bf0fdc162d6c0680cb8a07aed72f7
[]
no_license
ganzijo/koreanair
a7d750b62cec2647bfb2bed4ca1bf8648d9a447d
e980fb11bc4b8defae62c9d88e5c70a659bef436
refs/heads/master
2021-04-26T22:04:17.478461
2018-03-06T05:59:32
2018-03-06T05:59:32
124,018,887
0
0
null
null
null
null
UTF-8
Java
false
false
4,091
java
package com.ke.css.cimp.fwb.fwb17; /* ----------------------------------------------------------------------------- * Rule_DECLARED_VALUE_FOR_CUSTOMS.java * ----------------------------------------------------------------------------- * * Producer : com.parse2.aparse.Parser 2.5 * Produced : Tue Mar 06 10:25:52 KST 2018 * * ----------------------------------------------------------------------------- */ import java.util.ArrayList; final public class Rule_DECLARED_VALUE_FOR_CUSTOMS extends Rule { public Rule_DECLARED_VALUE_FOR_CUSTOMS(String spelling, ArrayList<Rule> rules) { super(spelling, rules); } public Object accept(Visitor visitor) { return visitor.visit(this); } public static Rule_DECLARED_VALUE_FOR_CUSTOMS parse(ParserContext context) { context.push("DECLARED_VALUE_FOR_CUSTOMS"); boolean parsed = true; int s0 = context.index; ParserAlternative a0 = new ParserAlternative(s0); ArrayList<ParserAlternative> as1 = new ArrayList<ParserAlternative>(); parsed = false; { int s1 = context.index; ParserAlternative a1 = new ParserAlternative(s1); parsed = true; if (parsed) { boolean f1 = true; int c1 = 0; for (int i1 = 0; i1 < 1 && f1; i1++) { int g1 = context.index; ArrayList<ParserAlternative> as2 = new ArrayList<ParserAlternative>(); parsed = false; { int s2 = context.index; ParserAlternative a2 = new ParserAlternative(s2); parsed = true; if (parsed) { boolean f2 = true; @SuppressWarnings("unused") int c2 = 0; for (int i2 = 0; i2 < 12 && f2; i2++) { Rule rule = Rule_Typ_Decimal.parse(context); if ((f2 = rule != null)) { a2.add(rule, context.index); c2++; } } parsed = true; } if (parsed) { as2.add(a2); } context.index = s2; } { int s2 = context.index; ParserAlternative a2 = new ParserAlternative(s2); parsed = true; if (parsed) { boolean f2 = true; int c2 = 0; for (int i2 = 0; i2 < 1 && f2; i2++) { Rule rule = Terminal_StringValue.parse(context, "NCV"); if ((f2 = rule != null)) { a2.add(rule, context.index); c2++; } } parsed = c2 == 1; } if (parsed) { as2.add(a2); } context.index = s2; } ParserAlternative b = ParserAlternative.getBest(as2); parsed = b != null; if (parsed) { a1.add(b.rules, b.end); context.index = b.end; } f1 = context.index > g1; if (parsed) c1++; } parsed = c1 == 1; } if (parsed) { as1.add(a1); } context.index = s1; } ParserAlternative b = ParserAlternative.getBest(as1); parsed = b != null; if (parsed) { a0.add(b.rules, b.end); context.index = b.end; } Rule rule = null; if (parsed) { rule = new Rule_DECLARED_VALUE_FOR_CUSTOMS(context.text.substring(a0.start, a0.end), a0.rules); } else { context.index = s0; } context.pop("DECLARED_VALUE_FOR_CUSTOMS", parsed); return (Rule_DECLARED_VALUE_FOR_CUSTOMS)rule; } } /* ----------------------------------------------------------------------------- * eof * ----------------------------------------------------------------------------- */
[ "wrjo@wrjo-PC" ]
wrjo@wrjo-PC
b1c51b4fd6a99614af42406f92a91bef720778a4
9e60577127d40b38c8930391f9ee30d069a87e24
/facebook/src/main/java/com/facebook/HttpMethod.java
ac201dc457b3cd3ab41a1a4739ce5767c0009845
[]
no_license
StarNeit/Android-360Video-VR
a77c1820cad5abde95d5849c3f7e68644e54ae41
93118f001ed1a7418f151ecdd966c868833442c1
refs/heads/master
2021-06-08T09:34:09.997285
2016-11-13T20:23:09
2016-11-13T20:23:09
73,640,682
1
0
null
null
null
null
UTF-8
Java
false
false
1,473
java
/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Facebook. * * As with any software that integrates with the Facebook platform, your use of * this software is subject to the Facebook Developer Principles and Policies * [http://developers.facebook.com/policy/]. This copyright notice shall be * included in all copies or substantial portions of the software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ package com.facebook; /** * Enumeration of HTTP methods supported by Request */ public enum HttpMethod { /** * Use HTTP method "GET" for the request */ GET, /** * Use HTTP method "POST" for the request */ POST, /** * Use HTTP method "DELETE" for the request */ DELETE, }
[ "you@example.com" ]
you@example.com
c60d58cd5b9702b3dccbe2db04c36a7f1df18cd2
9d32980f5989cd4c55cea498af5d6a413e08b7a2
/A5_8_1_0/src/main/java/com/android/server/-$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo.java
f595272f128434a37b0e7ab09de3d32c24321ddb
[]
no_license
liuhaosource/OppoFramework
e7cc3bcd16958f809eec624b9921043cde30c831
ebe39acabf5eae49f5f991c5ce677d62b683f1b6
refs/heads/master
2023-06-03T23:06:17.572407
2020-11-30T08:40:07
2020-11-30T08:40:07
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,147
java
package com.android.server; import android.content.Context; import com.android.server.input.InputManagerService; import com.android.server.media.MediaRouterService; import com.android.server.net.NetworkPolicyManagerService; import com.android.server.net.NetworkStatsService; import com.android.server.oppo.OppoService; import com.android.server.oppo.OppoUsageService; import com.android.server.wm.WindowManagerService; import com.oppo.media.OppoMultimediaService; import com.oppo.roundcorner.OppoRoundCornerService; final /* synthetic */ class -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo implements Runnable { public static final /* synthetic */ -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo $INST$0 = new -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo((byte) 0); public static final /* synthetic */ -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo $INST$1 = new -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo((byte) 1); public static final /* synthetic */ -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo $INST$2 = new -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo((byte) 2); public static final /* synthetic */ -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo $INST$3 = new -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo((byte) 3); private final /* synthetic */ byte $id; /* renamed from: com.android.server.-$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo$1 */ final /* synthetic */ class AnonymousClass1 implements Runnable { /* renamed from: -$f0 */ private final /* synthetic */ Object f0-$f0; /* renamed from: -$f1 */ private final /* synthetic */ Object f1-$f1; /* renamed from: -$f10 */ private final /* synthetic */ Object f2-$f10; /* renamed from: -$f11 */ private final /* synthetic */ Object f3-$f11; /* renamed from: -$f12 */ private final /* synthetic */ Object f4-$f12; /* renamed from: -$f13 */ private final /* synthetic */ Object f5-$f13; /* renamed from: -$f14 */ private final /* synthetic */ Object f6-$f14; /* renamed from: -$f15 */ private final /* synthetic */ Object f7-$f15; /* renamed from: -$f16 */ private final /* synthetic */ Object f8-$f16; /* renamed from: -$f17 */ private final /* synthetic */ Object f9-$f17; /* renamed from: -$f18 */ private final /* synthetic */ Object f10-$f18; /* renamed from: -$f19 */ private final /* synthetic */ Object f11-$f19; /* renamed from: -$f2 */ private final /* synthetic */ Object f12-$f2; /* renamed from: -$f3 */ private final /* synthetic */ Object f13-$f3; /* renamed from: -$f4 */ private final /* synthetic */ Object f14-$f4; /* renamed from: -$f5 */ private final /* synthetic */ Object f15-$f5; /* renamed from: -$f6 */ private final /* synthetic */ Object f16-$f6; /* renamed from: -$f7 */ private final /* synthetic */ Object f17-$f7; /* renamed from: -$f8 */ private final /* synthetic */ Object f18-$f8; /* renamed from: -$f9 */ private final /* synthetic */ Object f19-$f9; private final /* synthetic */ void $m$0() { ((SystemServer) this.f0-$f0).m10lambda$-com_android_server_SystemServer_104889((Context) this.f1-$f1, (WindowManagerService) this.f12-$f2, (NetworkScoreService) this.f13-$f3, (NetworkManagementService) this.f14-$f4, (NetworkPolicyManagerService) this.f15-$f5, (NetworkStatsService) this.f16-$f6, (ConnectivityService) this.f17-$f7, (LocationManagerService) this.f18-$f8, (CountryDetectorService) this.f19-$f9, (NetworkTimeUpdateService) this.f2-$f10, (OppoMultimediaService) this.f3-$f11, (OppoRoundCornerService) this.f4-$f12, (CommonTimeManagementService) this.f5-$f13, (InputManagerService) this.f6-$f14, (TelephonyRegistry) this.f7-$f15, (MediaRouterService) this.f8-$f16, (OppoUsageService) this.f9-$f17, (MmsServiceBroker) this.f10-$f18, (OppoService) this.f11-$f19); } public /* synthetic */ AnonymousClass1(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20) { this.f0-$f0 = obj; this.f1-$f1 = obj2; this.f12-$f2 = obj3; this.f13-$f3 = obj4; this.f14-$f4 = obj5; this.f15-$f5 = obj6; this.f16-$f6 = obj7; this.f17-$f7 = obj8; this.f18-$f8 = obj9; this.f19-$f9 = obj10; this.f2-$f10 = obj11; this.f3-$f11 = obj12; this.f4-$f12 = obj13; this.f5-$f13 = obj14; this.f6-$f14 = obj15; this.f7-$f15 = obj16; this.f8-$f16 = obj17; this.f9-$f17 = obj18; this.f10-$f18 = obj19; this.f11-$f19 = obj20; } public final void run() { $m$0(); } } /* renamed from: com.android.server.-$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo$2 */ final /* synthetic */ class AnonymousClass2 implements Runnable { /* renamed from: -$f0 */ private final /* synthetic */ Object f20-$f0; private final /* synthetic */ void $m$0() { ((SystemServer) this.f20-$f0).m11lambda$-com_android_server_SystemServer_105794(); } public /* synthetic */ AnonymousClass2(Object obj) { this.f20-$f0 = obj; } public final void run() { $m$0(); } } private /* synthetic */ -$Lambda$T7cKu_OKm_Fk2kBNthmo_uUJTSo(byte b) { this.$id = b; } public final void run() { switch (this.$id) { case (byte) 0: $m$0(); return; case (byte) 1: $m$1(); return; case (byte) 2: $m$2(); return; case (byte) 3: $m$3(); return; default: throw new AssertionError(); } } }
[ "dstmath@163.com" ]
dstmath@163.com
15c69cd7d3987d8744e8f04b2a9edc278c5986db
799cce351010ca320625a651fb2e5334611d2ebf
/Data Set/Synthetic/Before/before_2452.java
2a01a30794697fcec0410ebb9d2a6e9c2f6f062b
[]
no_license
dareenkf/SQLIFIX
239be5e32983e5607787297d334e5a036620e8af
6e683aa68b5ec2cfe2a496aef7b467933c6de53e
refs/heads/main
2023-01-29T06:44:46.737157
2020-11-09T18:14:24
2020-11-09T18:14:24
null
0
0
null
null
null
null
UTF-8
Java
false
false
265
java
public class Dummy { void sendRequest(Connection conn) throws SQLException { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT EMPLOYEE_ID, END_DATE, JOB_ID FROM JOB_HISTORY WHERE END_DATE <=" + var1+" OR JOB_ID <" + rand1); } }
[ "jahin99@gmail.com" ]
jahin99@gmail.com
add5cd28a634c811f7e95f2a2015e78d300066c9
852ae668be85e1bbbfb213ac030cd2bd9b13eb6e
/PUB/PubTermServer/build/generated/jax-wsCache/AuthorizationIDP/de/fhdo/terminologie/ws/idp/authorizationIDP/LoginRequestType.java
a33e646325711b53ed62ab3a92c9b2630488ea45
[]
no_license
TechnikumWienAcademy/Terminologieserver
e2a568ef04b8c378dfbe10b9add23d6253a708f9
bdb719233891efcc3c6761557898799a6eafcedd
refs/heads/master
2023-06-29T07:54:00.597735
2021-06-05T10:03:57
2021-06-05T10:03:57
176,249,973
0
0
null
2021-08-02T06:39:39
2019-03-18T09:44:26
Java
ISO-8859-1
Java
false
false
1,415
java
package de.fhdo.terminologie.ws.idp.authorizationIDP; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java-Klasse für loginRequestType complex type. * * <p>Das folgende Schemafragment gibt den erwarteten Content an, der in dieser Klasse enthalten ist. * * <pre> * &lt;complexType name="loginRequestType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="login" type="{http://authorizationIDP.idp.ws.terminologie.fhdo.de/}loginType" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "loginRequestType", propOrder = { "login" }) public class LoginRequestType { protected LoginType login; /** * Ruft den Wert der login-Eigenschaft ab. * * @return * possible object is * {@link LoginType } * */ public LoginType getLogin() { return login; } /** * Legt den Wert der login-Eigenschaft fest. * * @param value * allowed object is * {@link LoginType } * */ public void setLogin(LoginType value) { this.login = value; } }
[ "bachinge@technikum-wien.at" ]
bachinge@technikum-wien.at
cae994900e1c2ecd6bb6272ff3fd2e7670b45403
b5db846dc817bc509692946c1ba78b46f32c1d89
/src/com/zyk/launcher/FolderInfo.java
ced3e5d713cfe26f88c6cc4edeab702d6851db94
[ "Apache-2.0" ]
permissive
yukun314/android-5.1.1_r29
74b14f2bb4073dd80f8ef7eb1d9ed48fad0a2102
dd3862935187874cfd29dd557048df1fd715c329
refs/heads/master
2021-01-21T12:58:17.592531
2016-06-02T10:01:46
2016-06-02T10:01:46
54,986,493
0
0
null
null
null
null
UTF-8
Java
false
false
3,407
java
/* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.zyk.launcher; import android.content.ClipData; import android.content.ContentValues; import android.content.Context; import com.zyk.launcher.compat.UserHandleCompat; import java.util.ArrayList; import java.util.Arrays; /** * Represents a folder containing shortcuts or apps. */ public class FolderInfo extends ItemInfo { /** * Whether this folder has been opened */ public boolean opened; /** * The apps and shortcuts */ ArrayList<ItemInfo> contents = new ArrayList<ItemInfo>(); ArrayList<FolderListener> listeners = new ArrayList<FolderListener>(); FolderInfo() { itemType = LauncherSettings.Favorites.ITEM_TYPE_FOLDER; user = UserHandleCompat.myUserHandle(); } /** * Add an app or shortcut * * @param item */ public void add(ItemInfo item) { contents.add(item); for (int i = 0; i < listeners.size(); i++) { listeners.get(i).onAdd(item); } itemsChanged(); } /** * Remove an app or shortcut. Does not change the DB. * * @param item */ public void remove(ItemInfo item) { contents.remove(item); for (int i = 0; i < listeners.size(); i++) { listeners.get(i).onRemove(item); } itemsChanged(); } public void setTitle(CharSequence title) { this.title = title; for (int i = 0; i < listeners.size(); i++) { listeners.get(i).onTitleChanged(title); } } @Override void onAddToDatabase(Context context, ContentValues values) { super.onAddToDatabase(context, values); values.put(LauncherSettings.Favorites.TITLE, title.toString()); } void addListener(FolderListener listener) { listeners.add(listener); } void removeListener(FolderListener listener) { if (listeners.contains(listener)) { listeners.remove(listener); } } void itemsChanged() { for (int i = 0; i < listeners.size(); i++) { listeners.get(i).onItemsChanged(); } } @Override void unbind() { super.unbind(); listeners.clear(); } interface FolderListener { public void onAdd(ItemInfo item); public void onRemove(ItemInfo item); public void onTitleChanged(CharSequence title); public void onItemsChanged(); } @Override public String toString() { return "FolderInfo(id=" + this.id + " type=" + this.itemType + " container=" + this.container + " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX + " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos) + ")"; } }
[ "yukun314@126.com" ]
yukun314@126.com
b34065f1dad74a7ec2e0a7b76b1b9ff6bfb32409
bf92ea3f90e8a47fa0fc6bf3883e7ed48d7b0106
/src/hyFlow/edu/vt/rt/hyflow/helper/Atomic.java
80f369440f6fd836edbffc4050c0aa76de10bdd7
[]
no_license
junwhan/replication
5a34b679774590dbcb01c5dcbe81b93e7ecdcec6
a8005e85510a86691731f5640234dd11c07bd3ac
refs/heads/master
2016-09-05T23:25:24.615598
2014-01-02T02:22:53
2014-01-02T02:22:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,475
java
package edu.vt.rt.hyflow.helper; import org.deuce.transaction.Context; import org.deuce.transaction.ContextDelegator; import org.deuce.transaction.TransactionException; import edu.vt.rt.hyflow.benchmark.tm.vacation.Benchmark; import edu.vt.rt.hyflow.core.AbstractDistinguishable; import edu.vt.rt.hyflow.core.tm.ContextFactory; import edu.vt.rt.hyflow.core.tm.NestedContext; import edu.vt.rt.hyflow.core.tm.NestingModel; import edu.vt.rt.hyflow.core.tm.control.ControlContext; import edu.vt.rt.hyflow.util.io.Logger; public abstract class Atomic<T> { // Set default nesting model here: private NestingModel nestingModel = NestingModel.FLAT; protected boolean m_hasOnCommit = false; protected boolean m_hasOnAbort = false; public Atomic() { // default (empty) constructor // use flat nesting } public Atomic(boolean configurable) { if (configurable) { this.nestingModel = NestingModel.fromString( System.getProperty("defaultNestingModel", "FLAT")); } } public Atomic(NestingModel nestingModel) { this.nestingModel = nestingModel; } public NestingModel getNestingModel() { return nestingModel; } // override this public abstract T atomically(AbstractDistinguishable self, Context __transactionContext__); public T execute(AbstractDistinguishable self) throws Throwable { Logger.debug("BEGIN ATOMIC BLOCK"); Throwable throwable = null; ContextDelegator.setNestingModel(nestingModel); Context context = ContextDelegator.getInstance(); T ret = null; boolean commit = true; //long result = 0; for (int i = 0; i < 0x7fffffff; i++) { context.init(3); ((NestedContext)context).setCurrentOpenNestingAction(this); try { ret = atomically(self, context); } catch (TransactionException ex) { Logger.debug("TransactionException #1"); ex.printStackTrace(Logger.levelStream[Logger.DEBUG]); commit = false; } catch (Throwable ex) { throwable = ex; } if (commit) { if (context.commit()) { ContextDelegator.releaseInstance(context); if (throwable != null) { Logger.debug("EXCEPTION IN ATOMIC BLOCK"); throwable.printStackTrace(Logger.levelStream[Logger.DEBUG]); throw throwable; } else { Logger.debug("END ATOMIC BLOCK"); return ret; } } else { Logger.debug("Commit failed :<"); context.rollback(); // TODO: we don't want casts here ((edu.vt.rt.hyflow.core.tm.dtl.Context)context).doOnAbort(); ((NestedContext)context).checkParent(); } } else { if(context instanceof ControlContext) ControlContext.abort(((ControlContext)context).getContextId()); else // rollback does checkParent! context.rollback(); commit = true; } // Ugly hack, contention manager should handle this instead :( // If last was commit, no sleep // Otherwise, some sleep, depending on the number of recent aborts ContextDelegator.getFactory().delayNext(); if (((NestedContext)context).isTopLevel()) { StatsAggregator.get().endTxn(); } } ContextDelegator.releaseInstance(context); Logger.debug("END ATOMIC BLOCK (FAILED)"); throw new TransactionException("Failed to commit the transaction in the defined retries."); } public void onCommit(Context __transactionContext__) { } public void onAbort(Context __transactionContext__) { } public boolean hasOnCommit() { return m_hasOnCommit; } public boolean hasOnAbort() { return m_hasOnAbort; } }
[ "jkim@gojkim" ]
jkim@gojkim
a5d0e4ab3646fe61d3dd74e9c184984b984d3198
797ddee1e39cd2270f857de6b77607b084a62a72
/src/main/java/com/serijakala/sj4/akzo/akzonobel/web/rest/errors/package-info.java
67980ee8908c15ca8df892a31a2b1b0f01532599
[]
no_license
Ila82M/akzo_jh-application
e06084de5467419e88e26bd408c76eba9bb1211a
8d834554f82ec9328ee0e58b4825da7645bb24a2
refs/heads/master
2020-03-31T17:54:36.006631
2018-10-10T14:36:48
2018-10-10T14:36:48
152,438,555
0
0
null
2018-10-11T13:41:49
2018-10-10T14:36:39
Java
UTF-8
Java
false
false
208
java
/** * Specific errors used with Zalando's "problem-spring-web" library. * * More information on https://github.com/zalando/problem-spring-web */ package com.serijakala.sj4.akzo.akzonobel.web.rest.errors;
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
92e2de0792ba7584ebe0627e11f2e71659fcd1b0
84819716e37f072d853a1cbf8a43d6f49071b777
/Selenium/src/day4/ScreenShotEg.java
bf607162220fe0568afba031c5203b720b9290d2
[]
no_license
shaath/Sai_Kumar
cd3706d8513d224c59a6b46e5eb39423768409fe
900dfa585097a8d0fd911a5ea03d48cd5b4a20bc
refs/heads/master
2020-06-13T12:14:30.695900
2016-12-02T10:26:24
2016-12-02T10:26:24
75,382,382
0
0
null
null
null
null
UTF-8
Java
false
false
632
java
package day4; import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.openqa.selenium.OutputType; import org.openqa.selenium.TakesScreenshot; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class ScreenShotEg { public static void main(String[] args) throws IOException { WebDriver driver=new FirefoxDriver(); driver.get("http://seleniumhq.org"); File source=((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); FileUtils.copyFile(source, new File("F:\\Anu_Sara\\Selenium\\src\\Screenshots\\seleniumhq.png")); } }
[ "sharath chandra" ]
sharath chandra
bf5f2b600ca4ded85da2056630eca5ceb48e56d6
7f6292a3473aa72d4e46cdd0a19fbe8833a7194f
/ejbs/digitalarchive/src/main/java/org/sola/services/digitalarchive/repository/entities/FileInfo.java
20b3c63bd08cb8b6c4ce8c52221e5943e98e2a14
[]
no_license
SOLA-NIGERIA/services
375f08e8db0c650fc62ab592a534837e5d1fa341
7fc7aae549caed17edcce4da80e3d4ed8953f3f8
refs/heads/master
2020-05-31T01:03:38.225836
2016-12-06T21:20:18
2016-12-06T21:20:18
20,647,290
0
2
null
2015-05-31T21:13:29
2014-06-09T13:24:26
Java
UTF-8
Java
false
false
2,747
java
/** * ****************************************************************************************** * Copyright (C) 2012 - Food and Agriculture Organization of the United Nations (FAO). * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice,this list * of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice,this list * of conditions and the following disclaimer in the documentation and/or other * materials provided with the distribution. * 3. Neither the name of FAO nor the names of its contributors may be used to endorse or * promote products derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT * SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,PROCUREMENT * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,STRICT LIABILITY,OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ********************************************************************************************* */ package org.sola.services.digitalarchive.repository.entities; import java.util.Date; import javax.persistence.Id; import org.sola.services.common.repository.entities.AbstractReadOnlyEntity; /** * * Represents meta data of the file, stored in the shared folder */ public class FileInfo extends AbstractReadOnlyEntity { @Id private String name; private Date modificationDate; private long fileSize; public FileInfo() { super(); } public Date getModificationDate() { return modificationDate; } public void setModificationDate(Date creationDate) { this.modificationDate = creationDate; } public long getFileSize() { return fileSize; } public void setFileSize(long fileSize) { this.fileSize = fileSize; } public String getName() { return name; } public void setName(String Name) { this.name = Name; } }
[ "armcdowell@hotmail.com" ]
armcdowell@hotmail.com
95c9495cd405de8da90e1d381a240aa50df5853d
ca030864a3a1c24be6b9d1802c2353da4ca0d441
/classes7.dex_source_from_JADX/com/facebook/feed/inlinecomposer/multirow/common/BaseV3PromptPartDefinition.java
3cbfb6ab726a6cc63d3895754b927f7bc3a01411
[]
no_license
pxson001/facebook-app
87aa51e29195eeaae69adeb30219547f83a5b7b1
640630f078980f9818049625ebc42569c67c69f7
refs/heads/master
2020-04-07T20:36:45.758523
2018-03-07T09:04:57
2018-03-07T09:04:57
124,208,458
4
0
null
null
null
null
UTF-8
Java
false
false
8,036
java
package com.facebook.feed.inlinecomposer.multirow.common; import android.content.Context; import android.view.View; import com.facebook.common.propertybag.PropertyBag; import com.facebook.feed.environment.HasPersistentState; import com.facebook.feed.environment.HasPositionInformation; import com.facebook.feed.inlinecomposer.multirow.common.views.HasPromptFlyout; import com.facebook.feed.rows.styling.BackgroundPartDefinition; import com.facebook.feed.rows.styling.BackgroundPartDefinition.StylingData; import com.facebook.feed.rows.styling.PaddingStyle; import com.facebook.inject.ContextScope; import com.facebook.inject.ContextScoped; import com.facebook.inject.InjectorLike; import com.facebook.inject.InjectorThreadStack; import com.facebook.inject.ProvisioningException; import com.facebook.inject.ScopeSet; import com.facebook.ipc.productionprompts.manager.PromptViewStateUpdater; import com.facebook.ipc.productionprompts.ui.v2.PromptPartDefinitionProps; import com.facebook.multirow.api.AnyEnvironment; import com.facebook.multirow.api.BaseSinglePartDefinition; import com.facebook.multirow.api.SubParts; import com.facebook.multirow.parts.ClickListenerPartDefinition; import javax.inject.Inject; @ContextScoped /* compiled from: android.settings. */ public class BaseV3PromptPartDefinition<V extends View & HasPromptFlyout, E extends HasPersistentState & PromptViewStateUpdater & HasPositionInformation> extends BaseSinglePartDefinition<Props, Void, E, V> { private static BaseV3PromptPartDefinition f19262h; private static final Object f19263i = new Object(); @Inject public InlineComposerPromptFlyoutTitleBarPartDefinition f19264a; @Inject public PromptChevronMenuHelper f19265b; @Inject public BackgroundPartDefinition f19266c; @Inject public ClickListenerPartDefinition f19267d; @Inject public DefaultPromptActionHandlePartDefinition f19268e; @Inject public PromptImpressionLoggerPartDefinition f19269f; @Inject public InlineComposerPersistentStateHelper f19270g; /* compiled from: android.settings. */ public class Props { PromptPartDefinitionProps f19260a; boolean f19261b; public Props(PromptPartDefinitionProps promptPartDefinitionProps, boolean z) { this.f19260a = promptPartDefinitionProps; this.f19261b = z; } public static Props m22759a(PromptPartDefinitionProps promptPartDefinitionProps) { return new Props(promptPartDefinitionProps, true); } } private static BaseV3PromptPartDefinition m22762b(InjectorLike injectorLike) { BaseV3PromptPartDefinition baseV3PromptPartDefinition = new BaseV3PromptPartDefinition(InlineComposerPromptFlyoutTitleBarPartDefinition.a(injectorLike), PromptChevronMenuHelper.m22773a(injectorLike), BackgroundPartDefinition.a(injectorLike), ClickListenerPartDefinition.a(injectorLike), DefaultPromptActionHandlePartDefinition.m22764a(injectorLike), PromptImpressionLoggerPartDefinition.a(injectorLike), InlineComposerPersistentStateHelper.b(injectorLike)); baseV3PromptPartDefinition.m22761a(InlineComposerPromptFlyoutTitleBarPartDefinition.a(injectorLike), PromptChevronMenuHelper.m22773a(injectorLike), BackgroundPartDefinition.a(injectorLike), ClickListenerPartDefinition.a(injectorLike), DefaultPromptActionHandlePartDefinition.m22764a(injectorLike), PromptImpressionLoggerPartDefinition.a(injectorLike), InlineComposerPersistentStateHelper.b(injectorLike)); return baseV3PromptPartDefinition; } public final Object m22763a(SubParts subParts, Object obj, AnyEnvironment anyEnvironment) { Props props = (Props) obj; HasPersistentState hasPersistentState = (HasPersistentState) anyEnvironment; subParts.a(this.f19266c, new StylingData(PaddingStyle.i)); this.f19265b.m22775a(props.f19260a); subParts.a(2131560877, this.f19267d, this.f19265b.m22775a(props.f19260a)); if (props.f19261b) { subParts.a(this.f19268e, props.f19260a); } subParts.a(this.f19264a, new com.facebook.feed.inlinecomposer.multirow.common.InlineComposerPromptFlyoutTitleBarPartDefinition.Props(props.f19260a.c)); subParts.a(this.f19269f, new com.facebook.feed.inlinecomposer.multirow.common.PromptImpressionLoggerPartDefinition.Props(props.f19260a.c, props.f19260a.a, hasPersistentState, props.f19260a.b)); return null; } private void m22761a(InlineComposerPromptFlyoutTitleBarPartDefinition inlineComposerPromptFlyoutTitleBarPartDefinition, PromptChevronMenuHelper promptChevronMenuHelper, BackgroundPartDefinition backgroundPartDefinition, ClickListenerPartDefinition clickListenerPartDefinition, DefaultPromptActionHandlePartDefinition defaultPromptActionHandlePartDefinition, PromptImpressionLoggerPartDefinition promptImpressionLoggerPartDefinition, InlineComposerPersistentStateHelper inlineComposerPersistentStateHelper) { this.f19264a = inlineComposerPromptFlyoutTitleBarPartDefinition; this.f19265b = promptChevronMenuHelper; this.f19266c = backgroundPartDefinition; this.f19267d = clickListenerPartDefinition; this.f19268e = defaultPromptActionHandlePartDefinition; this.f19269f = promptImpressionLoggerPartDefinition; this.f19270g = inlineComposerPersistentStateHelper; } public static BaseV3PromptPartDefinition m22760a(InjectorLike injectorLike) { ScopeSet a = ScopeSet.a(); byte b = a.b((byte) 8); try { Context b2 = injectorLike.getScopeAwareInjector().b(); if (b2 == null) { throw new ProvisioningException("Called context scoped provider outside of context scope"); } BaseV3PromptPartDefinition b3; ContextScope contextScope = (ContextScope) injectorLike.getInstance(ContextScope.class); PropertyBag a2 = ContextScope.a(b2); synchronized (f19263i) { BaseV3PromptPartDefinition baseV3PromptPartDefinition; if (a2 != null) { baseV3PromptPartDefinition = (BaseV3PromptPartDefinition) a2.a(f19263i); } else { baseV3PromptPartDefinition = f19262h; } if (baseV3PromptPartDefinition == null) { InjectorThreadStack injectorThreadStack = injectorLike.getInjectorThreadStack(); contextScope.a(b2, injectorThreadStack); try { b3 = m22762b(injectorThreadStack.e()); if (a2 != null) { a2.a(f19263i, b3); } else { f19262h = b3; } } finally { ContextScope.a(injectorThreadStack); } } else { b3 = baseV3PromptPartDefinition; } } return b3; } finally { a.c(b); } } @Inject public BaseV3PromptPartDefinition(InlineComposerPromptFlyoutTitleBarPartDefinition inlineComposerPromptFlyoutTitleBarPartDefinition, PromptChevronMenuHelper promptChevronMenuHelper, BackgroundPartDefinition backgroundPartDefinition, ClickListenerPartDefinition clickListenerPartDefinition, DefaultPromptActionHandlePartDefinition defaultPromptActionHandlePartDefinition, PromptImpressionLoggerPartDefinition promptImpressionLoggerPartDefinition, InlineComposerPersistentStateHelper inlineComposerPersistentStateHelper) { this.f19264a = inlineComposerPromptFlyoutTitleBarPartDefinition; this.f19265b = promptChevronMenuHelper; this.f19266c = backgroundPartDefinition; this.f19267d = clickListenerPartDefinition; this.f19268e = defaultPromptActionHandlePartDefinition; this.f19269f = promptImpressionLoggerPartDefinition; this.f19270g = inlineComposerPersistentStateHelper; } }
[ "son.pham@jmango360.com" ]
son.pham@jmango360.com
daf3e532c0887acca79c75067f2f976488d5a19b
1dced079671699fb3e69a080178fa9a8fc6f2359
/j2se/src/javac1/ir/instr/LogicOp.java
ca1efedcfdae78b317f2a5de6531829a140918ee
[]
no_license
dougxc/SquawkNG
7dc93a7fd2ebafaea4cf021e942f984ab8d494ea
60ebfc59d2a479e671160679a78b1d2ddc30ab65
refs/heads/master
2022-12-22T05:02:18.384927
2020-09-29T09:54:49
2020-09-29T09:54:49
299,572,864
0
0
null
null
null
null
UTF-8
Java
false
false
1,323
java
/* * @(#)LogicOp.java 1.10 02/11/27 * * Copyright 1993-2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javac1.ir.instr; import javac1.ir.InstructionVisitor; import javac1.ir.IRScope; /** * The instruction node for executing a binary bitwise logical operation. * * @author Thomas Kotzmann * @version 1.00 */ public class LogicOp extends Op2 { /** * Constructs a new instruction node for a logical operation. * * @param scope scope containing this instruction * @param op the operation code * @param x the first operand * @param y the second operand */ public LogicOp(IRScope scope, int op, Instruction x, Instruction y) { super(scope, x.getType().meet(y.getType()), op, x, y); } public boolean isCommutative() { return true; } public int hashCode() { return hash(getOp(), getX().getId(), getY().getId()); } public boolean equals(Object obj) { return (obj instanceof Op2) && (((Op2) obj).getOp() == getOp()) && (((Op2) obj).getX() == getX()) && (((Op2) obj).getY() == getY()); } public void visit(InstructionVisitor visitor) { visitor.doLogicOp(this); } }
[ "doug.simon@oracle.com" ]
doug.simon@oracle.com
1adefea32413878447d20b574506887cec00f70c
07251556dde22700fe4828a7aaf85c27787b2fcf
/src/main/java/com/jm/mvc/vo/order/OrderInfoAndDetailCreateVo.java
10a602ed5325cdb783ff3d9db13c683cc67cb037
[]
no_license
wanghonghong/mygit
0a45dc9e7efa2bcc14b3279c6071dd73fc86da36
d0f0e40e8897f30042a58a42ea772f887ab1551b
refs/heads/master
2020-12-02T23:51:40.346895
2017-07-02T02:11:26
2017-07-02T02:11:26
95,954,161
1
0
null
null
null
null
UTF-8
Java
false
false
515
java
package com.jm.mvc.vo.order; import java.util.List; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * <p>订单及订单详情</p> * * @author hantp * @version latest * @date 2016/5/9 */ @Data @ApiModel(description = "订单") public class OrderInfoAndDetailCreateVo { @ApiModelProperty(value = "订单") OrderInfoCreateVo createvo; @ApiModelProperty(value = "订单详情") List<OrderDetailCreateVo> detailvo; }
[ "445605976@qq.com" ]
445605976@qq.com