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
befbc35bedb926b2bedbc6914446e25d66096338
b66bdee811ed0eaea0b221fea851f59dd41e66ec
/src/com/google/android/gms/maps/model/internal/ac.java
01361aed1e5d1cb9ffa44ae6a91b9073c13447cc
[]
no_license
reverseengineeringer/com.grubhub.android
3006a82613df5f0183e28c5e599ae5119f99d8da
5f035a4c036c9793483d0f2350aec2997989f0bb
refs/heads/master
2021-01-10T05:08:31.437366
2016-03-19T20:41:23
2016-03-19T20:41:23
54,286,207
0
0
null
null
null
null
UTF-8
Java
false
false
1,734
java
package com.google.android.gms.maps.model.internal; import android.os.Binder; import android.os.IBinder; import android.os.IInterface; import android.os.Parcel; import android.os.RemoteException; import com.google.android.gms.maps.model.Tile; public abstract class ac extends Binder implements ab { public static ab a(IBinder paramIBinder) { if (paramIBinder == null) { return null; } IInterface localIInterface = paramIBinder.queryLocalInterface("com.google.android.gms.maps.model.internal.ITileProviderDelegate"); if ((localIInterface != null) && ((localIInterface instanceof ab))) { return (ab)localIInterface; } return new ad(paramIBinder); } public IBinder asBinder() { return this; } public boolean onTransact(int paramInt1, Parcel paramParcel1, Parcel paramParcel2, int paramInt2) throws RemoteException { switch (paramInt1) { default: return super.onTransact(paramInt1, paramParcel1, paramParcel2, paramInt2); case 1598968902: paramParcel2.writeString("com.google.android.gms.maps.model.internal.ITileProviderDelegate"); return true; } paramParcel1.enforceInterface("com.google.android.gms.maps.model.internal.ITileProviderDelegate"); paramParcel1 = a(paramParcel1.readInt(), paramParcel1.readInt(), paramParcel1.readInt()); paramParcel2.writeNoException(); if (paramParcel1 != null) { paramParcel2.writeInt(1); paramParcel1.writeToParcel(paramParcel2, 1); return true; } paramParcel2.writeInt(0); return true; } } /* Location: * Qualified Name: com.google.android.gms.maps.model.internal.ac * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "reverseengineeringer@hackeradmin.com" ]
reverseengineeringer@hackeradmin.com
d714ee399a10e28285687da99185849cdcd5c6c7
affe223efe18ba4d5e676f685c1a5e73caac73eb
/clients/webservice/src/main/java/com/vmware/vim25/CurrentTimeRequestType.java
b4fb352a521a167c6c649bfd93afe294ef96cc22
[]
no_license
RohithEngu/VM27
486f6093e0af2f6df1196115950b0d978389a985
f0f4f177210fd25415c2e058ec10deb13b7c9247
refs/heads/master
2021-01-16T00:42:30.971054
2009-08-14T19:58:16
2009-08-14T19:58:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,206
java
/** * CurrentTimeRequestType.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.vmware.vim25; public class CurrentTimeRequestType implements java.io.Serializable { /** * */ private static final long serialVersionUID = 1L; private com.vmware.vim25.ManagedObjectReference _this; public CurrentTimeRequestType() { } public CurrentTimeRequestType(com.vmware.vim25.ManagedObjectReference _this) { this._this = _this; } /** * Gets the _this value for this CurrentTimeRequestType. * * @return _this */ public com.vmware.vim25.ManagedObjectReference get_this() { return _this; } /** * Sets the _this value for this CurrentTimeRequestType. * * @param _this */ public void set_this(com.vmware.vim25.ManagedObjectReference _this) { this._this = _this; } private java.lang.Object __equalsCalc = null; @Override public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof CurrentTimeRequestType)) { return false; } CurrentTimeRequestType other = (CurrentTimeRequestType) obj; if (obj == null) { return false; } if (this == obj) { return true; } if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this._this == null && other.get_this() == null) || (this._this != null && this._this .equals(other.get_this()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; @Override public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = 1; if (get_this() != null) { _hashCode += get_this().hashCode(); } __hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc( CurrentTimeRequestType.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:vim25", "CurrentTimeRequestType")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("_this"); elemField .setXmlName(new javax.xml.namespace.QName("urn:vim25", "_this")); elemField.setXmlType(new javax.xml.namespace.QName("urn:vim25", "ManagedObjectReference")); elemField.setNillable(false); typeDesc.addFieldDesc(elemField); } /** * Return type metadata object */ public static org.apache.axis.description.TypeDesc getTypeDesc() { return typeDesc; } /** * Get Custom Serializer */ public static org.apache.axis.encoding.Serializer getSerializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc); } /** * Get Custom Deserializer */ public static org.apache.axis.encoding.Deserializer getDeserializer( java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType) { return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc); } }
[ "sankarachary@intalio.com" ]
sankarachary@intalio.com
ef5a423c7a1e729f539a12b056ae5b2e685c43bf
005553bcc8991ccf055f15dcbee3c80926613b7f
/generated/com/guidewire/_generated/entity/RuleConditionInternal.java
b5153eb46507752b04795d04a1c97be1575673e9
[]
no_license
azanaera/toggle-isbtf
5f14209cd87b98c123fad9af060efbbee1640043
faf991ec3db2fd1d126bc9b6be1422b819f6cdc8
refs/heads/master
2023-01-06T22:20:03.493096
2020-11-16T07:04:56
2020-11-16T07:04:56
313,212,938
0
0
null
2020-11-16T08:48:41
2020-11-16T06:42:23
null
UTF-8
Java
false
false
4,495
java
package com.guidewire._generated.entity; @javax.annotation.processing.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "RuleCondition.eti;RuleCondition.eix;RuleCondition.etx") @java.lang.SuppressWarnings(value = {"deprecation", "unchecked"}) public interface RuleConditionInternal extends com.guidewire._generated.entity.RuleVersionDependentInternal, com.guidewire._generated.entity.VersionableInternal, com.guidewire.bizrules.codegenerator.GosuTextBuilder<entity.KeyableBean>, com.guidewire.bizrules.domain.RuleConditionDomainMethods, com.guidewire.bizrules.domain.RulesCascadingRemovable, gw.bizrules.domain.RuleVersionDependent { /** * Adds the given element to the ConditionExpressionFragments array. This is achieved by setting the parent foreign key to this entity instance. */ public void addToConditionExpressionFragments(entity.ConditionExpressionFragment element); /** * Adds the given element to the RuleArray array. This is achieved by setting the parent foreign key to this entity instance. */ public void addToRuleArray(entity.Rule element); /** * Adds the given element to the RuleConditionLines array. This is achieved by setting the parent foreign key to this entity instance. */ public void addToRuleConditionLines(entity.RuleConditionLine element); /** * Gets the value of the ConditionExpressionFragments field. */ @gw.internal.gosu.parser.ExtendedProperty public entity.ConditionExpressionFragment[] getConditionExpressionFragments(); /** * Gets the value of the Rule field. */ @gw.internal.gosu.parser.ExtendedProperty public entity.Rule getRule(); /** * Gets the value of the RuleArray field. */ @gw.internal.gosu.parser.ExtendedProperty public entity.Rule[] getRuleArray(); /** * Gets the value of the RuleConditionLines field. */ @gw.internal.gosu.parser.ExtendedProperty public entity.RuleConditionLine[] getRuleConditionLines(); public gw.pl.persistence.core.Key getRuleID(); /** * Gets the value of the Type field. */ @gw.internal.gosu.parser.ExtendedProperty public typekey.RuleConditionType getType(); /** * Removes the given element from the ConditionExpressionFragments array. This is achieved by marking the element for removal. */ public void removeFromConditionExpressionFragments(entity.ConditionExpressionFragment element); /** * Removes the given element from the ConditionExpressionFragments array. This is achieved by marking the element for removal. * @deprecated Please use the version that takes an entity instead. */ @java.lang.Deprecated public void removeFromConditionExpressionFragments(gw.pl.persistence.core.Key elementID); /** * Removes the given element from the RuleArray array. This is achieved by marking the element for removal. */ public void removeFromRuleArray(entity.Rule element); /** * Removes the given element from the RuleArray array. This is achieved by marking the element for removal. * @deprecated Please use the version that takes an entity instead. */ @java.lang.Deprecated public void removeFromRuleArray(gw.pl.persistence.core.Key elementID); /** * Removes the given element from the RuleConditionLines array. This is achieved by marking the element for removal. */ public void removeFromRuleConditionLines(entity.RuleConditionLine element); /** * Removes the given element from the RuleConditionLines array. This is achieved by marking the element for removal. * @deprecated Please use the version that takes an entity instead. */ @java.lang.Deprecated public void removeFromRuleConditionLines(gw.pl.persistence.core.Key elementID); /** * Sets the value of the ConditionExpressionFragments field. */ public void setConditionExpressionFragments(entity.ConditionExpressionFragment[] value); /** * Sets the value of the Rule field. */ public void setRule(entity.Rule value); /** * Sets the value of the RuleArray field. */ public void setRuleArray(entity.Rule[] value); /** * Sets the value of the RuleConditionLines field. */ public void setRuleConditionLines(entity.RuleConditionLine[] value); public void setRuleID(gw.pl.persistence.core.Key value); /** * Sets the value of the Type field. */ public void setType(typekey.RuleConditionType value); }
[ "azanaera691@gmail.com" ]
azanaera691@gmail.com
05a2b35c1c9849f233a80a1fa7a55e0f252ec9cd
2a02ff4de4d2df7e9339df95f60c483fb64e6eed
/java/gloomyfolken/hooklib/asm/ClassMetadataReader.java
8aac7d0ec229278e689f8887c7ccd47bde3d12bc
[]
no_license
timaxa007/change_custom_view_client
a2504519b540357626786d58e239626b533b731d
2c56e10da95b8ffd354a92d1ca644f0748b9e3cd
refs/heads/master
2020-06-02T02:02:25.300017
2019-06-09T11:53:22
2019-06-09T11:53:22
191,000,398
0
0
null
null
null
null
UTF-8
Java
false
false
7,391
java
package gloomyfolken.hooklib.asm; import java.io.IOException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import org.apache.commons.io.IOUtils; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassVisitor; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Opcodes; import org.objectweb.asm.Type; /** * Позволяет при помощи велосипеда из костылей искать методы внутри незагруженных классов * и общие суперклассы для чего угодно. Работает через поиск class-файлов в classpath, и, в случае провала - * ищет через рефлексию. Для работы с майнкрафтом используется сабкласс под названием DeobfuscationMetadataReader, * */ public class ClassMetadataReader { private static Method m; static { try { m = ClassLoader.class.getDeclaredMethod("findLoadedClass", String.class); m.setAccessible(true); } catch (NoSuchMethodException e) { e.printStackTrace(); } } public byte[] getClassData(String className) throws IOException { String classResourceName = '/' + className.replace('.', '/') + ".class"; return IOUtils.toByteArray(ClassMetadataReader.class.getResourceAsStream(classResourceName)); } public void acceptVisitor(byte[] classData, ClassVisitor visitor) { new ClassReader(classData).accept(visitor, 0); } public void acceptVisitor(String className, ClassVisitor visitor) throws IOException { acceptVisitor(getClassData(className), visitor); } public MethodReference findVirtualMethod(String owner, String name, String desc) { ArrayList<String> superClasses = getSuperClasses(owner); for (int i = superClasses.size() - 1; i > 0; i--) { // чекать текущий класс смысла нет String className = superClasses.get(i); MethodReference methodReference = getMethodReference(className, name, desc); if (methodReference != null) { System.out.println("found virtual method: " + methodReference); return methodReference; } } return null; } private MethodReference getMethodReference(String type, String methodName, String desc) { try { return getMethodReferenceASM(type, methodName, desc); } catch (Exception e) { return getMethodReferenceReflect(type, methodName, desc); } } protected MethodReference getMethodReferenceASM(String type, String methodName, String desc) throws IOException { FindMethodClassVisitor cv = new FindMethodClassVisitor(methodName, desc); acceptVisitor(type, cv); if (cv.found) { return new MethodReference(type, cv.targetName, cv.targetDesc); } return null; } protected MethodReference getMethodReferenceReflect(String type, String methodName, String desc) { Class loadedClass = getLoadedClass(type); if (loadedClass != null) { for (Method m : loadedClass.getDeclaredMethods()) { if (checkSameMethod(methodName, desc, m.getName(), Type.getMethodDescriptor(m))) { return new MethodReference(type, m.getName(), Type.getMethodDescriptor(m)); } } } return null; } protected boolean checkSameMethod(String sourceName, String sourceDesc, String targetName, String targetDesc) { return sourceName.equals(targetName) && sourceDesc.equals(targetDesc); } /** * Возвращает суперклассы в порядке возрастающей конкретности (начиная с java/lang/Object * и заканчивая данным типом) */ public ArrayList<String> getSuperClasses(String type) { ArrayList<String> superclasses = new ArrayList<String>(1); superclasses.add(type); while ((type = getSuperClass(type)) != null) { superclasses.add(type); } Collections.reverse(superclasses); return superclasses; } private Class getLoadedClass(String type) { if (m != null) { try { ClassLoader classLoader = ClassMetadataReader.class.getClassLoader(); return (Class) m.invoke(classLoader, type.replace('/', '.')); } catch (Exception e) { e.printStackTrace(); } } return null; } public String getSuperClass(String type) { try { return getSuperClassASM(type); } catch (Exception e) { return getSuperClassReflect(type); } } protected String getSuperClassASM(String type) throws IOException { CheckSuperClassVisitor cv = new CheckSuperClassVisitor(); acceptVisitor(type, cv); return cv.superClassName; } protected String getSuperClassReflect(String type) { Class loadedClass = getLoadedClass(type); if (loadedClass != null) { if (loadedClass.getSuperclass() == null) return null; return loadedClass.getSuperclass().getName().replace('.', '/'); } return "java/lang/Object"; } private class CheckSuperClassVisitor extends ClassVisitor { String superClassName; public CheckSuperClassVisitor() { super(Opcodes.ASM5); } @Override public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) { this.superClassName = superName; } } protected class FindMethodClassVisitor extends ClassVisitor { public String targetName; public String targetDesc; public boolean found; public FindMethodClassVisitor(String name, String desc) { super(Opcodes.ASM5); this.targetName = name; this.targetDesc = desc; } @Override public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) { System.out.println("visiting " + name + "#" + desc); if ((access & Opcodes.ACC_PRIVATE) == 0 && checkSameMethod(name, desc, targetName, targetDesc)) { found = true; targetName = name; targetDesc = desc; } return null; } } public static class MethodReference { public final String owner; public final String name; public final String desc; public MethodReference(String owner, String name, String desc) { this.owner = owner; this.name = name; this.desc = desc; } public Type getType() { return Type.getMethodType(desc); } @Override public String toString() { return "MethodReference{" + "owner='" + owner + '\'' + ", name='" + name + '\'' + ", desc='" + desc + '\'' + '}'; } } }
[ "timaxa007@gmail.com" ]
timaxa007@gmail.com
baae2117b344f855179da9752ef8fdb34cddb830
a7807ae90a020e8d525bd008156df74267bfb6c6
/org.kybele.cevinedit.model.editor/src/org/cevinedit/editor/view/listeners/CevineditEditorSearchSVGListener.java
1cf756fbe9c7c9b676b066908b67cfc2b3d98190
[]
no_license
AngelMorenoMDE/cevinedit
15f52c5858483763c29b38a0be3701f6fd1c7192
8c672066d27ea32662baa2574b8ce8166ce668ea
refs/heads/master
2016-09-01T13:00:06.266466
2016-03-02T10:21:59
2016-03-02T10:21:59
52,945,766
0
0
null
null
null
null
UTF-8
Java
false
false
2,337
java
package org.cevinedit.editor.view.listeners; import org.cevinedit.core.tools.CevineditProjectTools; import org.cevinedit.editor.view.constants.CevineditSashConstants; import org.eclipse.emf.common.ui.dialogs.ResourceDialog; import org.eclipse.emf.common.util.URI; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.viewers.StructuredSelection; import org.eclipse.swt.SWT; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.widgets.Combo; import org.eclipse.swt.widgets.Text; import cevinedit.presentation.CevineditEditor; public class CevineditEditorSearchSVGListener implements SelectionListener { protected CevineditEditor _editor = null; public CevineditEditorSearchSVGListener(CevineditEditor editor) { _editor = editor; } @Override public void widgetSelected(SelectionEvent e) { ResourceDialog rs_dialog = new ResourceDialog(_editor.getMainLayer().getShell(), "Select SVG File", SWT.NONE); if (rs_dialog.open() == rs_dialog.OK) { if (!rs_dialog.getURIs().get(0).fileExtension().equals("svg")) { MessageDialog.openError(_editor.getMainLayer().getShell(), "Incorrect Source Metamodel", "Invalid Extension "+rs_dialog.getURIs().get(0).fileExtension()+". You must selected only .ecore files."); } else { CevineditProjectTools.generateCevineditDirectories(_editor, rs_dialog.getURIs().get(0)); } } String project_name = CevineditProjectTools.getActualWorkingProjectNameEditor(_editor); URI newUri = URI.createPlatformResourceURI(project_name+"/.ecore_original/original.ecore"); _editor.getMetamodelResourceSet().getResource(newUri, true); _editor.getMetamodelViewer().setInput(_editor.getMetamodelResourceSet()); _editor.getMetamodelViewer().setSelection(new StructuredSelection(_editor.getMetamodelResourceSet().getResources().get(0).getContents().get(0)), true); SashManager.setWeights(_editor.getMainLayer(), CevineditSashConstants.TwoEditors); SashManager.setWeights(_editor.getMainLayer(), CevineditSashConstants.TwoEditors); SashManager.setWeights(_editor.getEditorSashForm(), CevineditSashConstants.ShowEditorTools); } @Override public void widgetDefaultSelected(SelectionEvent e) { } }
[ "a.morenoper@gmail.com" ]
a.morenoper@gmail.com
32f4aba9300289f56379b184757c0c3c16063b4a
5d76b555a3614ab0f156bcad357e45c94d121e2d
/src/org/apache/commons/codec/language/Nysiis.java
b6fe3893cd01d01f8e9fdd44c171c3a64493a6a5
[]
no_license
BinSlashBash/xcrumby
8e09282387e2e82d12957d22fa1bb0322f6e6227
5b8b1cc8537ae1cfb59448d37b6efca01dded347
refs/heads/master
2016-09-01T05:58:46.144411
2016-02-15T13:23:25
2016-02-15T13:23:25
51,755,603
5
1
null
null
null
null
UTF-8
Java
false
false
5,838
java
package org.apache.commons.codec.language; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.commons.codec.EncoderException; import org.apache.commons.codec.StringEncoder; public class Nysiis implements StringEncoder { private static final char[] CHARS_A = { 'A' }; private static final char[] CHARS_AF = { 65, 70 }; private static final char[] CHARS_C = { 'C' }; private static final char[] CHARS_FF = { 70, 70 }; private static final char[] CHARS_G = { 'G' }; private static final char[] CHARS_N = { 'N' }; private static final char[] CHARS_NN = { 78, 78 }; private static final char[] CHARS_S = { 'S' }; private static final char[] CHARS_SSS = { 83, 83, 83 }; private static final Pattern PAT_DT_ETC = Pattern.compile("(DT|RT|RD|NT|ND)$"); private static final Pattern PAT_EE_IE; private static final Pattern PAT_K; private static final Pattern PAT_KN; private static final Pattern PAT_MAC = Pattern.compile("^MAC"); private static final Pattern PAT_PH_PF; private static final Pattern PAT_SCH; private static final char SPACE = ' '; private static final int TRUE_LENGTH = 6; private final boolean strict; static { PAT_KN = Pattern.compile("^KN"); PAT_K = Pattern.compile("^K"); PAT_PH_PF = Pattern.compile("^(PH|PF)"); PAT_SCH = Pattern.compile("^SCH"); PAT_EE_IE = Pattern.compile("(EE|IE)$"); } public Nysiis() { this(true); } public Nysiis(boolean paramBoolean) { this.strict = paramBoolean; } private static boolean isVowel(char paramChar) { return (paramChar == 'A') || (paramChar == 'E') || (paramChar == 'I') || (paramChar == 'O') || (paramChar == 'U'); } private static char[] transcodeRemaining(char paramChar1, char paramChar2, char paramChar3, char paramChar4) { if ((paramChar2 == 'E') && (paramChar3 == 'V')) { return CHARS_AF; } if (isVowel(paramChar2)) { return CHARS_A; } if (paramChar2 == 'Q') { return CHARS_G; } if (paramChar2 == 'Z') { return CHARS_S; } if (paramChar2 == 'M') { return CHARS_N; } if (paramChar2 == 'K') { if (paramChar3 == 'N') { return CHARS_NN; } return CHARS_C; } if ((paramChar2 == 'S') && (paramChar3 == 'C') && (paramChar4 == 'H')) { return CHARS_SSS; } if ((paramChar2 == 'P') && (paramChar3 == 'H')) { return CHARS_FF; } if ((paramChar2 == 'H') && ((!isVowel(paramChar1)) || (!isVowel(paramChar3)))) { return new char[] { paramChar1 }; } if ((paramChar2 == 'W') && (isVowel(paramChar1))) { return new char[] { paramChar1 }; } return new char[] { paramChar2 }; } public Object encode(Object paramObject) throws EncoderException { if (!(paramObject instanceof String)) { throw new EncoderException("Parameter supplied to Nysiis encode is not of type java.lang.String"); } return nysiis((String)paramObject); } public String encode(String paramString) { return nysiis(paramString); } public boolean isStrict() { return this.strict; } public String nysiis(String paramString) { if (paramString == null) { paramString = null; } Object localObject; label177: label266: do { return paramString; paramString = SoundexUtils.clean(paramString); if (paramString.length() == 0) { return paramString; } paramString = PAT_MAC.matcher(paramString).replaceFirst("MCC"); paramString = PAT_KN.matcher(paramString).replaceFirst("NN"); paramString = PAT_K.matcher(paramString).replaceFirst("C"); paramString = PAT_PH_PF.matcher(paramString).replaceFirst("FF"); paramString = PAT_SCH.matcher(paramString).replaceFirst("SSS"); paramString = PAT_EE_IE.matcher(paramString).replaceFirst("Y"); localObject = PAT_DT_ETC.matcher(paramString).replaceFirst("D"); paramString = new StringBuilder(((String)localObject).length()); paramString.append(((String)localObject).charAt(0)); localObject = ((String)localObject).toCharArray(); int j = localObject.length; int i = 1; if (i < j) { char c1; if (i < j - 1) { c1 = localObject[(i + 1)]; if (i >= j - 2) { break label266; } } for (char c2 = localObject[(i + 2)];; c2 = ' ') { char[] arrayOfChar = transcodeRemaining(localObject[(i - 1)], localObject[i], c1, c2); System.arraycopy(arrayOfChar, 0, localObject, i, arrayOfChar.length); if (localObject[i] != localObject[(i - 1)]) { paramString.append(localObject[i]); } i += 1; break; c1 = ' '; break label177; } } if (paramString.length() > 1) { j = paramString.charAt(paramString.length() - 1); i = j; if (j == 83) { paramString.deleteCharAt(paramString.length() - 1); i = paramString.charAt(paramString.length() - 1); } if ((paramString.length() > 2) && (paramString.charAt(paramString.length() - 2) == 'A') && (i == 89)) { paramString.deleteCharAt(paramString.length() - 2); } if (i == 65) { paramString.deleteCharAt(paramString.length() - 1); } } localObject = paramString.toString(); paramString = (String)localObject; } while (!isStrict()); return ((String)localObject).substring(0, Math.min(6, ((String)localObject).length())); } } /* Location: /home/dev/Downloads/apk/dex2jar-2.0/crumby-dex2jar.jar!/org/apache/commons/codec/language/Nysiis.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "binslashbash@otaking.top" ]
binslashbash@otaking.top
79a71441a763234c37f94339fe2668e769cda20e
f009dc33f9624aac592cb66c71a461270f932ffa
/src/main/java/com/alipay/api/response/AlipayMarketingCampaignRuleTagQueryResponse.java
dc386e8c403802122daf2a88815494db3705ac16
[ "Apache-2.0" ]
permissive
1093445609/alipay-sdk-java-all
d685f635af9ac587bb8288def54d94e399412542
6bb77665389ba27f47d71cb7fa747109fe713f04
refs/heads/master
2021-04-02T16:49:18.593902
2020-03-06T03:04:53
2020-03-06T03:04:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,030
java
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.campaign.rule.tag.query response. * * @author auto create * @since 1.0, 2019-01-07 20:51:15 */ public class AlipayMarketingCampaignRuleTagQueryResponse extends AlipayResponse { private static final long serialVersionUID = 3447829752189455687L; /** * { "categories": [ { "tags": [ { "control": "text", "op": "IN", "sources": [ "23905" ], "status": "EXECUTING", "tagCode": "pubsrv_custom_batch", "title": "标签描述AAAAB" } ], "title": "自定义标签" } ] } tagCode:自定义标签固定为‘pubsrv_custom_batch’ sources:取值为创建自定义标签时获取的‘selftag’自定义标签id status: 自定义标签创建任务状态:COMPLETE:执行完成, FAIL:执行失败, EXECUTING:处理中,只有处于‘COMPLETE’状态的标签才能用于创建圈人规则 */ @ApiField("customtagjson") private String customtagjson; /** * {"categories": [{"tags": [{"tagCode": "pubsrv_have_auto","control": "radio-normal","title": "是否有车","op": "EQ","sources": [{"value": "0","label": "否"},{"value": "1","label": "是"}]}]} 标签含义参见 alipay.marketing.campaign.rule.crowd.create (圈人规则创建) */ @ApiField("scenetagjson") private String scenetagjson; public void setCustomtagjson(String customtagjson) { this.customtagjson = customtagjson; } public String getCustomtagjson( ) { return this.customtagjson; } public void setScenetagjson(String scenetagjson) { this.scenetagjson = scenetagjson; } public String getScenetagjson( ) { return this.scenetagjson; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
50bce27d03a534f6edd6975f7f8413254d7fe028
84e064c973c0cc0d23ce7d491d5b047314fa53e5
/latest9.8/hej/net/sf/saxon/serialize/XML10ContentChecker.java
e8001a712ceda86e5f3ffc0ad3276fe05daa3a31
[]
no_license
orbeon/saxon-he
83fedc08151405b5226839115df609375a183446
250c5839e31eec97c90c5c942ee2753117d5aa02
refs/heads/master
2022-12-30T03:30:31.383330
2020-10-16T15:21:05
2020-10-16T15:21:05
304,712,257
1
1
null
null
null
null
UTF-8
Java
false
false
5,015
java
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2017 Saxonica Limited. // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////// package net.sf.saxon.serialize; import net.sf.saxon.event.ProxyReceiver; import net.sf.saxon.event.Receiver; import net.sf.saxon.expr.parser.Location; import net.sf.saxon.om.NodeName; import net.sf.saxon.serialize.charcode.UTF16CharacterSet; import net.sf.saxon.serialize.charcode.XMLCharacterData; import net.sf.saxon.trans.XPathException; import net.sf.saxon.type.SchemaType; import net.sf.saxon.type.SimpleType; /** * This class is used on the serialization pipeline to check that the document conforms * to XML 1.0 rules. It is placed on the pipeline only when the configuration permits * XML 1.1 constructs, but the particular output document is being serialized as XML 1.0 * * <p>Simplified in Saxon 9.6 because the rules for XML Names in 1.0 are now the same as * the rules in 1.1; only the rules for valid characters are different.</p> */ public class XML10ContentChecker extends ProxyReceiver { public XML10ContentChecker(Receiver next) { super(next); } /** * Notify the start of an element * @param elemName integer code identifying the name of the element within the name pool. * @param typeCode integer code identifying the element's type within the name pool. * @param location * @param properties properties of the element node */ public void startElement(NodeName elemName, SchemaType typeCode, Location location, int properties) throws XPathException { nextReceiver.startElement(elemName, typeCode, location, properties); } /** * Notify an attribute. Attributes are notified after the startElement event, and before any * children. Namespaces and attributes may be intermingled. * * @param attName The name of the attribute, as held in the name pool * @param typeCode The type of the attribute, as held in the name pool * @param locationId *@param properties Bit significant value. The following bits are defined: * <dd>DISABLE_ESCAPING</dd> <dt>Disable escaping for this attribute</dt> * <dd>NO_SPECIAL_CHARACTERS</dd> <dt>Attribute value contains no special characters</dt> @throws IllegalStateException: attempt to output an attribute when there is no open element * start tag */ public void attribute(NodeName attName, SimpleType typeCode, CharSequence value, Location locationId, int properties) throws XPathException { checkString(value, locationId); nextReceiver.attribute(attName, typeCode, value, locationId, properties); } /** * Character data */ public void characters(CharSequence chars, Location locationId, int properties) throws XPathException { checkString(chars, locationId); nextReceiver.characters(chars, locationId, properties); } /** * Output a comment */ public void comment(CharSequence chars, Location locationId, int properties) throws XPathException { checkString(chars, locationId); nextReceiver.comment(chars, locationId, properties); } /** * Processing Instruction */ public void processingInstruction(String target, /*@NotNull*/ CharSequence data, Location locationId, int properties) throws XPathException { checkString(data, locationId); nextReceiver.processingInstruction(target, data, locationId, properties); } /** * Check that a string consists of valid XML 1.0 characters (UTF-16 encoded) * * @param in the string to be checked * @param locationId the location of the string */ private void checkString(CharSequence in, Location locationId) throws XPathException { final int len = in.length(); for (int c = 0; c < len; c++) { int ch32 = in.charAt(c); if (UTF16CharacterSet.isHighSurrogate(ch32)) { char low = in.charAt(++c); ch32 = UTF16CharacterSet.combinePair((char) ch32, low); } if (!XMLCharacterData.isValid10(ch32)) { XPathException err = new XPathException("The result tree contains a character not allowed by XML 1.0 (hex " + Integer.toHexString(ch32) + ')'); err.setErrorCode("SERE0006"); err.setLocator(locationId); throw err; } } } }
[ "oneil@saxonica.com" ]
oneil@saxonica.com
0ecf249b7caafb997e2c5228cfa47ffce9bb244b
32f38cd53372ba374c6dab6cc27af78f0a1b0190
/app/src/main/java/defpackage/afd.java
a59d22a0a89eb4c1a77f2974de1c559887f11c25
[ "BSD-3-Clause" ]
permissive
shuixi2013/AmapCode
9ea7aefb42e0413f348f238f0721c93245f4eac6
1a3a8d4dddfcc5439df8df570000cca12b15186a
refs/heads/master
2023-06-06T23:08:57.391040
2019-08-29T04:36:02
2019-08-29T04:36:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,089
java
package defpackage; import com.amap.bundle.statistics.db.LogContentDao; import com.autonavi.annotation.MultipleImpl; import de.greenrobot.dao.AbstractDao; import de.greenrobot.dao.identityscope.IdentityScopeType; import de.greenrobot.dao.internal.DaoConfig; import java.util.HashMap; import java.util.Map; @MultipleImpl(xx.class) /* renamed from: afd reason: default package */ /* compiled from: LogDaoSession */ public class afd implements xx { private DaoConfig a; private LogContentDao b; public final Map<Class, AbstractDao> a(IdentityScopeType identityScopeType, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> map, xt xtVar) { this.a = map.get(LogContentDao.class).clone(); this.a.initIdentityScope(identityScopeType); this.b = new LogContentDao(this.a, xtVar); HashMap hashMap = new HashMap(); hashMap.put(LogContentDao.class, this.b); return hashMap; } public final AbstractDao a(Class cls) { if (cls.equals(LogContentDao.class)) { return this.b; } return null; } }
[ "hubert.yang@nf-3.com" ]
hubert.yang@nf-3.com
aa0600cab322633c123b456fb97dd6f6f1ed9579
512eaec99ceba66eafd09ff21be2e17af2f37dc9
/Server/sdc2ch.root-prod/sdc-2ch-core/src/main/java/com/sdc2ch/core/lambda/tuple/Range.java
9d62161aece1bba4c828136e9cf482f2237c21d0
[]
no_license
VAIPfoundation/logis2ch
8ce48f90f928021c9c944b88b7a55c52d6e6fc67
2b0ce4e8d4edd28971d96fedcdbf219fcc276f03
refs/heads/master
2023-03-06T17:15:02.840903
2021-02-24T13:00:08
2021-02-24T13:00:08
341,898,312
0
1
null
null
null
null
UTF-8
Java
false
false
1,061
java
package com.sdc2ch.core.lambda.tuple; import java.util.Optional; public class Range<T extends Comparable<T>> extends Tuple2<T, T> { private static final long serialVersionUID = 6253365277526134292L; public Range(T v1, T v2) { super(r(v1, v2)); } public Range(Tuple2<T, T> tuple) { this(tuple.v1, tuple.v2); } private static <T extends Comparable<T>> Tuple2<T, T> r(T t1, T t2) { return t1.compareTo(t2) <= 0 ? new Tuple2<>(t1, t2) : new Tuple2<>(t2, t1); } public boolean overlaps(Tuple2<T, T> other) { return Tuple2.overlaps(this, other); } @SuppressWarnings({ "rawtypes", "unchecked" }) public boolean overlaps(T t1, T t2) { return overlaps(new Range(t1, t2)); } public Optional<Range<T>> intersect(Tuple2<T, T> other) { return Tuple2.intersect(this, other).map(Range::new); } @SuppressWarnings({ "rawtypes", "unchecked" }) public Optional<Range<T>> intersect(T t1, T t2) { return intersect(new Range(t1, t2)); } }
[ "richard@aivision.co.kr" ]
richard@aivision.co.kr
cee780031d08e8b62a38260be56e7db274c4632b
7e6d4f51886bcdc4de1ffc7af5909391beeab926
/hap-mail/src/main/java/com/hand/hap/mail/controllers/MessageEmailConfigController.java
7da4ede1807c183297674b33996ef91e404f1a78
[]
no_license
cqyjitb/imfgnet356
b68f2b81010910198a248ab8e3283fae8a13b96b
4c599266aa1e7020e664abb24d6d53f5ad5bdc7e
refs/heads/master
2022-12-27T18:10:51.791100
2019-07-06T08:02:03
2019-07-06T08:02:03
195,488,805
1
5
null
2022-12-16T08:52:01
2019-07-06T02:31:22
JavaScript
UTF-8
Java
false
false
2,436
java
package com.hand.hap.mail.controllers; import com.hand.hap.core.IRequest; import com.hand.hap.core.exception.BaseException; import com.hand.hap.core.exception.EmailException; import com.hand.hap.mail.dto.MessageEmailConfig; import com.hand.hap.mail.service.IMessageEmailConfigService; import com.hand.hap.system.controllers.BaseController; import com.hand.hap.system.dto.ResponseData; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.*; import javax.servlet.http.HttpServletRequest; import java.util.List; /** * 对邮件配置的操作. * * @author Clerifen Li */ @RestController @RequestMapping(value = {"/sys/messageEmailConfig", "/api/sys/messageEmailConfig"}) public class MessageEmailConfigController extends BaseController { @Autowired private IMessageEmailConfigService service; @RequestMapping(value = "/query", method = {RequestMethod.GET, RequestMethod.POST}) public ResponseData getMessageEmailConfig(HttpServletRequest request, MessageEmailConfig example, @RequestParam(defaultValue = DEFAULT_PAGE) int page, @RequestParam(defaultValue = DEFAULT_PAGE_SIZE) int pagesize) { IRequest requestContext = createRequestContext(request); return new ResponseData(service.selectMessageEmailConfigs(requestContext, example, page, pagesize)); } @PostMapping(value = "/submit") public ResponseData submitLov(@RequestBody MessageEmailConfig obj, BindingResult result, HttpServletRequest request) throws EmailException { getValidator().validate(obj, result); if (result.hasErrors()) { ResponseData responseData = new ResponseData(false); responseData.setMessage(getErrorMessage(result, request)); return responseData; } IRequest requestContext = createRequestContext(request); service.batchUpdate(requestContext, obj); return new ResponseData(); } @PostMapping(value = "/remove") public ResponseData deleteMessageEmailConfig(HttpServletRequest request, @RequestBody List<MessageEmailConfig> objs) throws BaseException { IRequest requestContext = createRequestContext(request); service.batchDelete(requestContext, objs); return new ResponseData(); } }
[ "17924529@qq.com" ]
17924529@qq.com
77f40ce25dade8cec39539e20b90e3048781b090
5b0ec241c66c6d2a7a33ad98b1cf5ed2d3e58f73
/src/main/java/com/yaj/jaso/business/constructlog/entity/vo/ConstructLogResult.java
1d6819b2d40a557fdd39034579319b1044dc6725
[]
no_license
xyxTest/jaso
5b2e9328a55da9f15f67abf33223dd2adc4e1909
ece1d180bafb1a925c9abe49a43d96f7afcc5254
refs/heads/master
2022-03-27T02:01:33.891040
2020-01-06T01:14:36
2020-01-06T01:14:36
231,997,366
0
0
null
null
null
null
UTF-8
Java
false
false
681
java
package com.yaj.jaso.business.constructlog.entity.vo; import java.util.List; import java.util.Map; import com.yaj.jaso.business.constructlogcontent.entity.po.ConstructLogContentPO; public class ConstructLogResult { private Map<String,Object> constructLog; private List<ConstructLogContentPO> contentList; public Map<String, Object> getConstructLog() { return constructLog; } public void setConstructLog(Map<String, Object> constructLog) { this.constructLog = constructLog; } public List<ConstructLogContentPO> getContentList() { return contentList; } public void setContentList(List<ConstructLogContentPO> contentList) { this.contentList = contentList; } }
[ "1055337148@qq.com" ]
1055337148@qq.com
43c4d5dd8cf1ef55f1b2bbc983a0afe70d0bb2d2
e6345f2b1f20deaa0af75f313ba3daf72d723d62
/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/StringMatch.java
0f1c3189eb0a8681a3e5062e2ba1cf8b9eba7244
[ "Apache-2.0" ]
permissive
chinningzeng/dangchat-sdk
4b821a762b898408b6bb4b9c31fc1eea0ae6e484
16a4b4dff4ad6c7d18d28525eb13195d1139e2ac
refs/heads/master
2020-12-31T00:39:52.452282
2016-10-12T05:46:48
2016-10-12T05:47:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
355
java
package im.actor.core.util; public class StringMatch { private int start; private int length; public StringMatch(int start, int length) { this.start = start; this.length = length; } public int getStart() { return start; } public int getLength() { return length; } }
[ "song@justep.com" ]
song@justep.com
39b672810969f9e79417500df4d8def0c16a74f4
ed3cb95dcc590e98d09117ea0b4768df18e8f99e
/project_1_1/src/b/i/g/i/Calc_1_1_18680.java
2f3cbaadd84a4c8cb2e5a36eea76f8e09056b9b7
[]
no_license
chalstrick/bigRepo1
ac7fd5785d475b3c38f1328e370ba9a85a751cff
dad1852eef66fcec200df10083959c674fdcc55d
refs/heads/master
2016-08-11T17:59:16.079541
2015-12-18T14:26:49
2015-12-18T14:26:49
48,244,030
0
0
null
null
null
null
UTF-8
Java
false
false
134
java
package b.i.g.i; public class Calc_1_1_18680 { /** @return the sum of a and b */ public int add(int a, int b) { return a+b; } }
[ "christian.halstrick@sap.com" ]
christian.halstrick@sap.com
6553a5709ffdd82b79809e267573acccfd38d9fe
6500848c3661afda83a024f9792bc6e2e8e8a14e
/gp_JADX/com/google/wireless/android/finsky/dfe/nano/eq.java
b95cd9a6f1ed03cabc749653219edda5410e32e5
[]
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
1,883
java
package com.google.wireless.android.finsky.dfe.nano; import com.google.protobuf.nano.C7213a; import com.google.protobuf.nano.CodedOutputByteBufferNano; import com.google.protobuf.nano.b; import com.google.protobuf.nano.i; public final class eq extends b { public int f38803a; public String f38804b; public String f38805c; public eq() { this.f38803a = 0; this.f38804b = ""; this.f38805c = ""; this.aO = null; this.aP = -1; } public final void m36355a(CodedOutputByteBufferNano codedOutputByteBufferNano) { if ((this.f38803a & 1) != 0) { codedOutputByteBufferNano.m33521a(1, this.f38804b); } if ((this.f38803a & 2) != 0) { codedOutputByteBufferNano.m33521a(2, this.f38805c); } super.a(codedOutputByteBufferNano); } protected final int m36356b() { int b = super.b(); if ((this.f38803a & 1) != 0) { b += CodedOutputByteBufferNano.m33493b(1, this.f38804b); } if ((this.f38803a & 2) != 0) { return b + CodedOutputByteBufferNano.m33493b(2, this.f38805c); } return b; } public final /* synthetic */ i m36354a(C7213a c7213a) { while (true) { int a = c7213a.m33550a(); switch (a) { case 0: break; case 10: this.f38804b = c7213a.m33564f(); this.f38803a |= 1; continue; case 18: this.f38805c = c7213a.m33564f(); this.f38803a |= 2; continue; default: if (!super.a(c7213a, a)) { break; } continue; } return this; } } }
[ "genius.ron@gmail.com" ]
genius.ron@gmail.com
d030d38f1599cdf3822747621da25c34aad4d0de
d106395fbc8d877128347aac87fa80b238981042
/src/main/java/com/contentbig/config/CustomGraphQLContextBuilder.java
227ff7e5ec6cb6837b09f808d1eb0f252ac872bf
[ "Apache-2.0" ]
permissive
kangzhenkang/doper-graphql-gateway
e81d44cbae9c548a5422cf2257a1b9d669b9fd23
3bc417a644e4a5164d087eb474837a29e3452f28
refs/heads/master
2022-04-12T20:33:44.529366
2020-04-08T08:03:08
2020-04-08T08:03:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,317
java
package com.contentbig.config; import graphql.kickstart.execution.context.GraphQLContext; import graphql.servlet.context.DefaultGraphQLServletContextBuilder; import org.dataloader.DataLoaderRegistry; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.websocket.Session; import javax.websocket.server.HandshakeRequest; import java.util.Optional; @Component public class CustomGraphQLContextBuilder extends DefaultGraphQLServletContextBuilder { private static final Logger LOG = LoggerFactory.getLogger(CustomGraphQLContextBuilder.class); // private final CustomerRepository customerRepository; // // public CustomGraphQLContextBuilder(CustomerRepository customerRepository) { // this.customerRepository = customerRepository; // } @Override public GraphQLContext build(HttpServletRequest req, HttpServletResponse response) { // TODO: setting authorization information here? // http://www.javased.com/index.php?source_dir=rundeck/core/src/test/java/com/dtolabs/rundeck/core/authorization/TestSAREAuthorization.java // https://github.com/rundeck/rundeck/blob/master/core/src/main/java/com/dtolabs/rundeck/core/cli/acl/AclTool.java // TODO: 参看 kafka的 https://github.com/open-policy-agent/contrib/tree/master/kafka_authorizer // TODO: 参看 https://www.openpolicyagent.org/docs/latest/http-api-authorization/ // https://github.com/howtographql/graphql-java/blob/master/src/main/java/com/howtographql/hackernews/GraphQLEndpoint.java LOG.info("public GraphQLContext build(HttpServletRequest req, HttpServletResponse response)"); AuthContext user = Optional.of(req) .map(q -> q.getHeader("Authorization")) .filter(id -> !id.isEmpty()) .map(id -> id.replace("Bearer ", "")) // .map(userRepository::findById) .map(a -> AuthContext.builder().email("chenchunhai@bdlbs.com").password("666666").build()) .orElse(AuthContext.builder().email("default@bdlbs.com").password("222222").build()); return new CustomAuthGraphQLContext(buildDataLoaderRegistry(), null, user); // return DefaultGraphQLServletContext.createServletContext(buildDataLoaderRegistry(), null) // .with(req) // .with(response) // .with(Subject.getSubject(new AccessControlContext(new ProtectionDomain[]{}))) // .build(); // } @Override public GraphQLContext build(Session session, HandshakeRequest request) { AuthContext user = Optional.of(request).map(q -> q.getHeaders()) .map(m -> m.get("Authorization")) .map(strings -> AuthContext.builder().email("chenchunhai@bdlbs.com").password("999999").build()) .orElse(AuthContext.builder().email("default@bdlbs.com").password("222222").build()); ; return new CustomAuthGraphQLContext(buildDataLoaderRegistry(), null, user); } // @Override // protected GraphQLContext createContext(Optional<HttpServletRequest> request, Optional<HttpServletResponse> response) { // User user = request // .map(req -> req.getHeader("Authorization")) // .filter(id -> !id.isEmpty()) // .map(id -> id.replace("Bearer ", "")) // .map(userRepository::findById) // .orElse(null); // return new AuthContext(user, request, response); // } @Override public GraphQLContext build() { return new CustomAuthGraphQLContext(buildDataLoaderRegistry(), null, AuthContext.builder().email("chenchunhai@bdlbs.com").password("111111").build()); } private DataLoaderRegistry buildDataLoaderRegistry() { DataLoaderRegistry dataLoaderRegistry = new DataLoaderRegistry(); // dataLoaderRegistry.register("customerDataLoader", // new DataLoader<Integer, String>(customerIds -> // CompletableFuture.supplyAsync(() -> // customerRepository.getUserNamesForIds(customerIds)))); return dataLoaderRegistry; } }
[ "conan8chan@yahoo.com" ]
conan8chan@yahoo.com
393b6055611d13bf184a55967afc305d9cf88eda
6c2861ba4fbde3fe7257d1aa9fc0f4943cb8e7a7
/.metadata/.plugins/org.eclipse.core.resources/.history/20/f0d5cd7e2fbe00191f0984ac913af2ec
fe371e29fba4ff5d288d0fa8b2b8d1ed4ac52703
[]
no_license
vothitu/fc1-2
8dc724965a98f28548ef8ee01c5283eb816c14a8
2e5099b71b0f0e1addd993a71cef6b9dfe89d702
refs/heads/master
2020-12-06T21:54:48.503899
2020-01-08T12:37:24
2020-01-08T12:37:24
232,559,956
0
0
null
null
null
null
UTF-8
Java
false
false
2,466
package array_of_integer; //mac dinh tat ca moi lop trong java deu thua ke tu lop cha Oject //k can ghi : extends Object; public class ArrayOfInteger { private int n; private int []a; public ArrayOfInteger() { a=new int[2]; n=0; } public ArrayOfInteger(int capacity) { if(capacity<0) a=new int[10]; else a=new int[capacity]; n=0; } public void add(int element) { //case 1: array is full, case2: array is not full if(n==a.length) { //new array int []b=new int[n*2]; //copy all array to new array for(int i=0;i<n;i++) b[i]=a[i]; a=b; } a[n]=element; n++; } public void add(int element, int index) { if(index<0||index>n) System.out.println("out of index"); else { if(n==a.length) { int []b=new int [n*2]; System.arraycopy(a,0,b,0,n); a=b; } for(int i =n; i>index; i--) { a[i]=a[i-1]; } a[index]=element; n++; } } public void remove(int index) { if(index<0||index>=n) System.out.println("out of index"); else { if(n==0) System.out.println("list of index"); else for(int i=index;i<n-1;i++) a[i]=a[i+1]; a[n-1]=0; n--; } } public boolean contains(int element) { for(int i=0;i<n;i++) { if(a[i]==element) return true; } return false; } public int indexOf(int element) { for(int i=0;i<n;i++) { if(a[i]==element) return i; } return -1; } public int size() { return n; } public Integer get(int index) { if(index<0||index>n) { System.out.println("out of index"); return null; } else return a[index]; } public void set(int index,int element) { if(index<0||index>n) { System.out.println("out of index"); } else a[index]=element; } @Override public String toString() { String s=""; for(int i=0;i<n;i++) s=s+" "+a[i]; return s; } public void output() { for(int i=0;i<n;i++) System.out.print(a[i]+" "); } public static void main(String[] args) { ArrayOfInteger q=new ArrayOfInteger(); q.add(1); q.add(5); q.add(4); q.add(8); q.add(7); q.add(2); System.out.println(q.toString()); q.add(9); System.out.println(q.toString()); q.add(3, 6); System.out.println(q.toString()); q.remove(4); System.out.println(q.toString()); System.out.println(q.contains(5)); System.out.println(q.indexOf(9)); System.out.println(q.size()); q.set(4,3); System.out.println(q.toString()); System.out.println(q.get(5)); } }
[ "=" ]
=
16fffad3f30b151b893c7d39d815fe434657755c
69e6f6822221088dbb6e27f731fc4d117c20aef3
/yiQu_Api/src/main/java/com/quanmai/yiqu/api/vo/RecycleGarbagesInfo.java
050afa6840fda6d6ac8cf5e91584bd898c7605ca
[]
no_license
zengweitao/YiQuLife
f7dd201be283dfd64f7348b4525d328e7b7b94a9
30dd021e56c8e0914e2e2c23705baf49ffa319ce
refs/heads/master
2021-01-01T18:10:57.454138
2017-07-25T06:38:40
2017-07-25T06:38:40
98,272,858
0
0
null
null
null
null
UTF-8
Java
false
false
2,270
java
package com.quanmai.yiqu.api.vo; import org.json.JSONException; import org.json.JSONObject; import java.io.Serializable; /** * Created by 95138 on 2016/4/19. */ public class RecycleGarbagesInfo implements Serializable { private static final long serialVersionUID = -192301231265758483L; public String id; public String garbage; //物品名 public String type;//物品描述 例:纸箱大小必须小于17cm public String point; //该废品每个所能获得的积分 public String pic; //图片路径 public String unit; //单位 public String quantity; //数量 public boolean isClick; private int count; public int getCount() { return count; } public void setCount(int count) { this.count = count; } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getGarbage() { return garbage; } public void setGarbage(String garbage) { this.garbage = garbage; } public String getType() { return type; } public void setType(String type) { this.type = type; } public String getPoint() { return point; } public void setPoint(String point) { this.point = point; } public String getPic() { return pic; } public void setPic(String pic) { this.pic = pic; } public String getUnit() { return unit; } public void setUnit(String unit) { this.unit = unit; } public String getQuantity() { return quantity; } public void setQuantity(String quantity) { this.quantity = quantity; } public boolean isClick() { return isClick; } public void setClick(boolean click) { isClick = click; } public RecycleGarbagesInfo(JSONObject jsonObject) throws JSONException { id = jsonObject.optString("id"); garbage = jsonObject.optString("garbage"); type = jsonObject.optString("type"); point = jsonObject.optString("point"); pic = jsonObject.optString("pic"); unit = jsonObject.optString("unit"); quantity = jsonObject.optString("quantity"); } }
[ "weitao_zeng@jyc99.com" ]
weitao_zeng@jyc99.com
90686b434b802412e182638eb6b23aea1300407d
8a8bf2481abd129d5c8d27d3954c390d92e1f038
/leopard-trynb/src/main/java/io/leopard/mvc/trynb/TrynbApiImpl.java
e8a7215d311d0d0238ed9eaa26a83b6e24ef4907
[ "Apache-2.0" ]
permissive
tanhaichao/leopard-mvc
96ea3f0a37c5d180fbc87c820f158f7d07bed6e9
287ee51dcd0455f3230301152bfa38f2382279da
refs/heads/master
2020-04-04T02:10:23.441223
2017-01-10T14:13:10
2017-01-10T14:13:10
41,327,678
0
3
null
null
null
null
UTF-8
Java
false
false
671
java
package io.leopard.mvc.trynb; import java.util.Iterator; import java.util.ServiceLoader; import javax.servlet.http.HttpServletRequest; import io.leopard.mvc.trynb.model.TrynbInfo; public class TrynbApiImpl implements TrynbApi { private TrynbApi trynbApi; public TrynbApiImpl() { Iterator<TrynbApi> iterator = ServiceLoader.load(TrynbApi.class).iterator(); if (iterator.hasNext()) { trynbApi = iterator.next(); } } @Override public TrynbInfo parse(TrynbLogger trynbLogger, HttpServletRequest request, String uri, Exception exception) { if (trynbApi == null) { return null; } return trynbApi.parse(trynbLogger, request, uri, exception); } }
[ "tanhaichao@gmail.com" ]
tanhaichao@gmail.com
a3f28fed420b42de5b31a43b92d59b0ee328ee6c
1be6e27b6ad97d3b3559d815140426018335dcc1
/gajigaksek-backend/src/main/java/com/gjgs/gjgs/modules/category/repositories/CategoryRepository.java
f2e103e633660a9bac99dbf0664b78b5b09e6c3b
[]
no_license
JoeCP17/gjgs
0711cff1f19193e07a5500891a4d65410e504834
5c5365de794e9bfc20257dc436161b8bd42ce119
refs/heads/master
2023-08-29T04:55:38.010327
2021-11-08T08:08:13
2021-11-08T08:08:13
null
0
0
null
null
null
null
UTF-8
Java
false
false
769
java
package com.gjgs.gjgs.modules.category.repositories; import com.gjgs.gjgs.infra.config.redis.CacheKey; import com.gjgs.gjgs.modules.category.entity.Category; import org.springframework.cache.annotation.Cacheable; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import java.util.List; import java.util.Optional; public interface CategoryRepository extends JpaRepository<Category, Long> { @Query("select count(c) from Category c where c.id in :ids") Long countCategoryByIdList(@Param("ids") List<Long> ids); @Cacheable(value = CacheKey.CATEGORY,key = "#p0",unless = "#result == null") Optional<Category> findById(Long id); }
[ "cjs1863@gmail.com" ]
cjs1863@gmail.com
8d1ad64b6ceeb0236b660925b838cefa51a4832e
a159ab5cc3bc60e013c402f8e6b9bed57e916be0
/4.26/src/com/example/shopping/Entrance.java
16ee6c1d22673bb820e040a08957823f32559776
[]
no_license
chickeboy/java-Study
919a8e8034fa2de6fe8ddc9aa4f39a1c267001a6
2ab9ba21ea44bc7ba48423921bbe9e4cb1b543ea
refs/heads/master
2020-05-24T09:47:17.296617
2019-07-24T07:38:30
2019-07-24T07:38:30
187,210,908
1
0
null
null
null
null
WINDOWS-1252
Java
false
false
204
java
package com.example.shopping; //Ö÷Èë¿ÚÀà public class Entrance { public static void main(String[] args) { // TODO Auto-generated method stub Menu menu = new Menu(); menu.mainMenu(); } }
[ "1119644047@qq.com" ]
1119644047@qq.com
bb64f49f3493c5e6b8b716e97c7538053ca26853
e7ee311e20b40c87bf6d23a53a1d7b11fd29d2c3
/src/chosun/ciis/ss/sls/extn/rec/SS_SLS_EXTN_4600_ACUREXTNTYPECDRecord.java
e25a0169a41e5ee190d76f0687fdf12fe5e88bae
[]
no_license
nosmoon/misdevteam
4e3695ef7bbdcd231bb84d7d8d7df54a23ff0a60
1829d5bd489eb6dd307ca244f0e183a31a1de773
refs/heads/master
2020-04-15T15:57:05.480056
2019-01-10T01:12:01
2019-01-10T01:12:01
164,812,547
1
0
null
null
null
null
UHC
Java
false
false
1,737
java
/*************************************************************************************************** * 파일명 : .java * 기능 : * 작성일자 : * 작성자 : 심정보 ***************************************************************************************************/ /*************************************************************************************************** * 수정내역 : * 수정자 : * 수정일자 : * 백업 : ***************************************************************************************************/ package chosun.ciis.ss.sls.extn.rec; import java.sql.*; import chosun.ciis.ss.sls.extn.dm.*; import chosun.ciis.ss.sls.extn.ds.*; /** * */ public class SS_SLS_EXTN_4600_ACUREXTNTYPECDRecord extends java.lang.Object implements java.io.Serializable{ public String cicodeval; public String cicdnm; public String ciymgbcd; public String cicdgb; public String cicdynm; public SS_SLS_EXTN_4600_ACUREXTNTYPECDRecord(){} public void setCicodeval(String cicodeval){ this.cicodeval = cicodeval; } public void setCicdnm(String cicdnm){ this.cicdnm = cicdnm; } public void setCiymgbcd(String ciymgbcd){ this.ciymgbcd = ciymgbcd; } public void setCicdgb(String cicdgb){ this.cicdgb = cicdgb; } public void setCicdynm(String cicdynm){ this.cicdynm = cicdynm; } public String getCicodeval(){ return this.cicodeval; } public String getCicdnm(){ return this.cicdnm; } public String getCiymgbcd(){ return this.ciymgbcd; } public String getCicdgb(){ return this.cicdgb; } public String getCicdynm(){ return this.cicdynm; } } /* 작성시간 : Tue Feb 16 14:58:59 KST 2016 */
[ "DLCOM000@172.16.30.11" ]
DLCOM000@172.16.30.11
aed87c2804804e778a6c12c9043a547f03c631d2
473b76b1043df2f09214f8c335d4359d3a8151e0
/benchmark/bigclonebenchdata_partial/9696025.java
54ec69a15b770cd0988e5b72460b1d14baf5eb0f
[]
no_license
whatafree/JCoffee
08dc47f79f8369af32e755de01c52d9a8479d44c
fa7194635a5bd48259d325e5b0a190780a53c55f
refs/heads/master
2022-11-16T01:58:04.254688
2020-07-13T20:11:17
2020-07-13T20:11:17
null
0
0
null
null
null
null
UTF-8
Java
false
false
838
java
class c9696025 { public static boolean copyFile(File source, File dest) { FileChannel srcChannel = null; FileChannel dstChannel = null; try { srcChannel = new FileInputStream(source).getChannel(); dstChannel = new FileOutputStream(dest).getChannel(); dstChannel.transferFrom(srcChannel, 0, srcChannel.size()); } catch (IOException e) { return false; } finally { try { if (srcChannel != null) { srcChannel.close(); } } catch (IOException e) { } try { if (dstChannel != null) { dstChannel.close(); } } catch (IOException e) { } } return true; } }
[ "piyush16066@iiitd.ac.in" ]
piyush16066@iiitd.ac.in
0e69e12eaf2dd9c55226683227118fe9d17d38b5
9947f65f64c4f7fdcfdc2011b1b063ce38af64ec
/common/src/main/java/com/epocal/common/androidutil/FileSystemUtil.java
3d54f23f2ca6f8f6b9b44de3e90d3caa41eebed6
[]
no_license
zhuanglm/HostBridge
792e3243dfb4f28aa17d2a17df2f66b1717eb3ff
a9413aefa0ec99d16d6b1ff15171d06a058d449d
refs/heads/master
2020-04-12T04:59:34.821814
2019-01-23T18:55:57
2019-01-23T18:55:57
150,601,915
0
0
null
null
null
null
UTF-8
Java
false
false
7,139
java
package com.epocal.common.androidutil; import android.content.res.AssetManager; import android.util.Log; import com.epocal.common.globaldi.GloabalObject; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Arrays; import java.util.List; /** * Created by dning on 7/25/2017. */ public class FileSystemUtil { private String mExternalFileDirectory = "epochost"; private long mFileLength; private BufferedWriter mWriter; private BufferedReader mReader; private String mFileName = ""; private String mSubFolder = ""; private FileLocation mFileLocation = FileLocation.Assets; public String getFileName() { return mFileName; } public void setFileName(String mFileName) { this.mFileName = mFileName; } public String getSubFolder() { return mSubFolder; } public void setSubFolder(String mSubFolder) { this.mSubFolder = mSubFolder; } public long getFileLength() { return mFileLength; } public void setFileLength(long mFileLength) { this.mFileLength = mFileLength; } public enum FileLocation { NotDefined((byte) 0), Assets((byte) 1), Internal((byte) 2), External((byte) 3); public final byte value; FileLocation(byte value) { this.value = Byte.valueOf(value); } public static FileLocation convert(byte value) { return FileLocation.values()[value]; } } public FileSystemUtil() { } public FileSystemUtil(String mFileName, FileLocation fileLocation) { mSubFolder = ""; getFileHandler(mFileName, fileLocation); } public FileSystemUtil(String mFileName, FileLocation fileLocation, String subFolder) { mSubFolder = subFolder; getFileHandler(mFileName, fileLocation); } private void getFileHandler(String mFileName, FileLocation fileLocation) { switch (fileLocation) { case Assets: getFileHandlerFromAssets(mFileName); break; case Internal: getFileHandlerFromInternal(mFileName); break; case External: getFileHandlerFromExternal(mFileName); break; default: getFileHandlerFromAssets(mFileName); break; } } private void getFileHandlerFromAssets(String mFileName) { this.mFileName = mFileName; AssetManager assetManager = GloabalObject.getApplication().getApplicationContext().getAssets(); try { List<String> filelist = Arrays.asList(assetManager.list("")); for(int i = 0; i < filelist.size() ; i++) { if(((String)filelist.get(i).toLowerCase()).equals(mFileName.toLowerCase())) { InputStream is = assetManager.open(mFileName); mReader = new BufferedReader(new InputStreamReader(is)); mFileLength = is.available(); break; } } } catch(IOException ioe){ Log.d("Open from Assets", this.mFileName + ", " + ioe.getMessage()); } catch (Exception e){ Log.d("Open from Assets", this.mFileName + ", " + e.getMessage()); } } private void getFileHandlerFromExternal(String mFileName) { this.mFileName = mFileName; File f = GloabalObject.getApplication().getApplicationContext().getExternalFilesDir(mExternalFileDirectory); File file = new File(f, mSubFolder); if (!file.exists()) { file.mkdirs(); } try { File tfile = new File(file, this.mFileName); if (tfile.exists()) { mReader = new BufferedReader(new FileReader(tfile)); mFileLength = tfile.length(); } mWriter = new BufferedWriter(new FileWriter(tfile)); } catch (Exception e) { Log.d("Open from External file", this.mFileName + ", " + e.getMessage()); } } private void getFileHandlerFromInternal(String mFileName) { this.mFileName = mFileName; File f = GloabalObject.getApplication().getApplicationContext().getFilesDir(); File file = new File(f, mSubFolder); if (!file.exists()) { file.mkdirs(); } try { File tfile = new File(file, this.mFileName); if(tfile.exists()) { mReader = new BufferedReader(new FileReader(tfile)); mFileLength = tfile.length(); } mWriter = new BufferedWriter(new FileWriter(tfile)); } catch (Exception e) { Log.d("Open from Internal file", this.mFileName + ", " + e.getMessage()); } } public boolean write(String data) { if (mWriter == null) return false; try { mWriter.append(data); mWriter.flush(); } catch (IOException e) { Log.d("Write from file", this.mFileName + ", " + e.getMessage()); return false; } return true; } public String read() { String everything = ""; if (mReader == null) return everything; try { StringBuilder sb = new StringBuilder(); String line = mReader.readLine(); while (line != null) { sb.append(line); sb.append(System.lineSeparator()); line = mReader.readLine(); } everything = sb.toString(); mReader.close(); }catch (IOException e) { Log.d("Read from file", this.mFileName + ", " + e.getMessage()); } return everything; } public File[] getAllFile() { File directory = new File(GloabalObject.getApplication().getApplicationContext().getFilesDir(), mSubFolder); if (!directory.exists()) { return null; } File[] files = directory.listFiles(); return files; } public boolean close() { boolean ret = true; if (mWriter == null) { ret = false; } else { try { mWriter.close(); } catch (IOException e) { ret = false; } } if (mReader == null) { ret = false; } else { try { mReader.close(); } catch (IOException e) { ret = false; } } return ret; } static public void createAMFolder() { File folder = new File(String.valueOf(GloabalObject.getApplication().getApplicationContext().getExternalFilesDir("AM"))); if (!folder.exists()) { folder.mkdir(); } } }
[ "raymond.zhuang@siemens-healthineers.com" ]
raymond.zhuang@siemens-healthineers.com
754272a486e742d0ea33712bca303b5d2522b98d
4f0fd52366e90318468ddfdd8d6521e3f73dcad8
/MT_JPurcell_Lec/WaitAndNotify_8/Processor.java
a1d2c951d96f89bc8a89a015c07b9d46197cef41
[]
no_license
rawatravinder115/Multi-threading
6965f945520f0b07970b15472b62a8fb205a44ef
1cb048a2ade3d00792b4638176390718eb072cf0
refs/heads/master
2021-10-23T08:58:41.953415
2019-03-16T08:28:25
2019-03-16T08:28:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,117
java
package WaitAndNotify_8; import java.util.Scanner; /** * Source: <em>http://www.programcreek.com/2009/02/notify-and-wait-example/</em> */ public class Processor { /* * public synchronized void getSomething(){ this.hello = "hello World"; } * public void getSomething(){ synchronized(this){ this.hello = "hello * World"; } } * two code blocks by specification, functionally identical. */ public void produce() throws InterruptedException { synchronized (this) { System.out.println("Producer thread running ...."); wait();//this.wait() is fine. System.out.println("Resumed."); } } public void consume() throws InterruptedException { Scanner scanner = new Scanner(System.in); Thread.sleep(2000); synchronized (this) { System.out.println("Waiting for return key."); scanner.nextLine(); System.out.println("Return key pressed."); notify(); Thread.sleep(5000); System.out.println("Consumption done."); } } }
[ "chaklader@macs-MacBook-Pro.local" ]
chaklader@macs-MacBook-Pro.local
04d059eaf269a468c139dff1a10e85205052303c
dfe6c29915e5c54734c99d89d82ed86348568cc9
/src/main/java/competitiveProgramming/interviewbit/MaximumProductSubarray.java
8b745345b90a4f1642844598eb0dbe94f84c977c
[]
no_license
tans105/JavaProgramming
dffaf38f0dbe4ca269827d07a0240605993cf265
f508a5d217c8d21532df6b98125d28fd574666c6
refs/heads/master
2022-06-19T10:29:57.685980
2022-06-09T06:01:57
2022-06-09T06:01:57
70,312,438
3
0
null
2022-05-20T22:15:22
2016-10-08T07:21:03
Java
UTF-8
Java
false
false
1,751
java
package competitiveProgramming.interviewbit; import java.util.Arrays; import java.util.List; /* https://www.interviewbit.com/problems/max-product-subarray/ Max Product Subarray Asked in: Amazon, LinkedIn, Microsoft Find the contiguous subarray within an array (containing at least one number) which has the largest product. Return an integer corresponding to the maximum product possible. Example : Input : [2, 3, -2, 4] Return : 6 Possible with [2, 3] */ public class MaximumProductSubarray { public static void main(String[] args) { System.out.println(maxProduct(Arrays.asList(2, 3, -2, 4))); System.out.println(maxProduct(Arrays.asList(-1, 2, 3, -4))); System.out.println(maxProduct(Arrays.asList(-1, 1))); System.out.println(maxProduct(Arrays.asList(-1, 1, 0))); System.out.println(maxProduct(Arrays.asList(2, 3, 0, -4))); System.out.println(maxProduct(Arrays.asList(2, 3, 0 , 8, -4))); System.out.println(maxProduct(Arrays.asList(-4))); System.out.println(maxProduct(Arrays.asList(0, -4, 0, -8))); } public static int maxProduct(final List<Integer> A) { if (A == null || A.size() == 0) return 0; if (A.size() == 1) return A.get(0); int maxOverall = 0; int minSoFar = A.get(0); int maxSoFar = A.get(0); for (int i = 1; i < A.size(); i++) { int current = A.get(i); int tempMin = minSoFar * current; int tempMax = maxSoFar * current; minSoFar = Math.min(current, Math.min(tempMax, tempMin)); maxSoFar = Math.max(current, Math.max(tempMax, tempMin)); maxOverall = Math.max(maxOverall, maxSoFar); } return maxOverall; } }
[ "tanmayawasthi105@gmail.com" ]
tanmayawasthi105@gmail.com
4709d78fb4057a73007b7f263caf4732a8bc4dc3
637f8b0e210e8fbf1eb2825a12e1d74d577e9d6c
/SpiderBootApp/src/main/java/SpiderCorba/SpiderDefinePackage/ClusterInfoHelper.java
babd8aaa02d4639a355182d3b1bc18ab46a9dfdd
[]
no_license
phongtran0715/SpiderBoot
cc512fd0bfe8438d66d0aab5851d0aafa35b7884
c8c62e3f63c2b9e847bce45d03160e7cb2070fb9
refs/heads/master
2022-07-27T09:25:25.984233
2019-12-21T16:32:21
2019-12-21T16:32:21
102,358,717
2
0
null
2022-06-22T18:56:10
2017-09-04T12:25:39
Java
UTF-8
Java
false
false
2,937
java
package SpiderCorba.SpiderDefinePackage; /** * SpiderCorba/SpiderDefinePackage/ClusterInfoHelper.java . * Generated by the IDL-to-Java compiler (portable), version "3.2" * from SpiderAgentAPI.idl * Friday, December 20, 2019 2:42:57 PM ICT */ abstract public class ClusterInfoHelper { private static String _id = "IDL:SpiderCorba/SpiderDefine/ClusterInfo:1.0"; public static void insert (org.omg.CORBA.Any a, SpiderCorba.SpiderDefinePackage.ClusterInfo that) { org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); a.type (type ()); write (out, that); a.read_value (out.create_input_stream (), type ()); } public static SpiderCorba.SpiderDefinePackage.ClusterInfo extract (org.omg.CORBA.Any a) { return read (a.create_input_stream ()); } private static org.omg.CORBA.TypeCode __typeCode = null; private static boolean __active = false; synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { synchronized (org.omg.CORBA.TypeCode.class) { if (__typeCode == null) { if (__active) { return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); } __active = true; org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [3]; org.omg.CORBA.TypeCode _tcOf_members0 = null; _tcOf_members0 = org.omg.CORBA.ORB.init ().create_wstring_tc (0); _members0[0] = new org.omg.CORBA.StructMember ( "clusterIp", _tcOf_members0, null); _tcOf_members0 = org.omg.CORBA.ORB.init ().create_wstring_tc (0); _members0[1] = new org.omg.CORBA.StructMember ( "userName", _tcOf_members0, null); _tcOf_members0 = org.omg.CORBA.ORB.init ().create_wstring_tc (0); _members0[2] = new org.omg.CORBA.StructMember ( "password", _tcOf_members0, null); __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (SpiderCorba.SpiderDefinePackage.ClusterInfoHelper.id (), "ClusterInfo", _members0); __active = false; } } } return __typeCode; } public static String id () { return _id; } public static SpiderCorba.SpiderDefinePackage.ClusterInfo read (org.omg.CORBA.portable.InputStream istream) { SpiderCorba.SpiderDefinePackage.ClusterInfo value = new SpiderCorba.SpiderDefinePackage.ClusterInfo (); value.clusterIp = istream.read_wstring (); value.userName = istream.read_wstring (); value.password = istream.read_wstring (); return value; } public static void write (org.omg.CORBA.portable.OutputStream ostream, SpiderCorba.SpiderDefinePackage.ClusterInfo value) { ostream.write_wstring (value.clusterIp); ostream.write_wstring (value.userName); ostream.write_wstring (value.password); } }
[ "phongtran0715@gmail.com" ]
phongtran0715@gmail.com
fb772825a86730753e9c75afa6f25f18f574a565
8d8776f923e7cc844196f4c70c21a337e5f5552e
/server/src/main/java/se/spaced/server/loot/Loot.java
fd19dc140594937c1fdf3c649aeda1d10406da04
[]
no_license
FearlessGames/spaced
7853599f11258daf62a72ba4c8f40ef8c88beb85
27690cd19867c5b9b64186a1e9a26bd813497c87
refs/heads/master
2020-04-25T04:28:54.189030
2017-09-08T21:10:58
2017-09-08T21:10:58
172,511,474
0
0
null
null
null
null
UTF-8
Java
false
false
606
java
package se.spaced.server.loot; import se.spaced.server.model.currency.PersistedMoney; import se.spaced.server.model.items.ServerItemTemplate; public class Loot { private final ServerItemTemplate template; private final PersistedMoney money; public Loot(ServerItemTemplate template) { this(template, PersistedMoney.ZERO); } public Loot(ServerItemTemplate template, PersistedMoney money) { this.template = template; this.money = money; } public ServerItemTemplate getItemTemplate() { return template; } public PersistedMoney getMoney() { return money; } }
[ "per.malmen@gmail.com" ]
per.malmen@gmail.com
ed1274dea61fd0722f345cce88fdd49d3ee962e5
725252036d9ea34b58cd340623441065057314c9
/kafka/kafka-monitor/src/main/java/org/wyyt/kafka/monitor/service/dto/SysTableNameService.java
8f37d4284de8d5d9ed97b45669eed66a27c82571
[]
no_license
ZhangNingPegasus/middleware
7fd7565cd2aac0fee026b5696c9b5021ab753119
46428f43c31523786c03f10ee00949f6bc13ce19
refs/heads/master
2023-06-26T17:55:57.485006
2021-08-01T03:10:29
2021-08-01T03:10:29
303,567,345
4
3
null
null
null
null
UTF-8
Java
false
false
2,883
java
package org.wyyt.kafka.monitor.service.dto; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; import org.springframework.util.ObjectUtils; import org.wyyt.kafka.monitor.anno.TranRead; import org.wyyt.kafka.monitor.anno.TranSave; import org.wyyt.kafka.monitor.entity.dto.SysTableName; import org.wyyt.kafka.monitor.mapper.SysTableNameMapper; import java.util.Map; /** * The service for table 'sys_table_name'. * <p> * * @author Ning.Zhang(Pegasus) * ***************************************************************** * Name Action Time Description * * Ning.Zhang Initialize 02/14/2021 Initialize * * ***************************************************************** */ @Service public class SysTableNameService extends ServiceImpl<SysTableNameMapper, SysTableName> { @TranSave public SysTableName insert(final String topicName, final String recordTableName, final String recordDetailTableName) { final SysTableName sysTableName = new SysTableName(); sysTableName.setTopicName(topicName); sysTableName.setRecordTableName(recordTableName); sysTableName.setRecordDetailTableName(recordDetailTableName); this.save(sysTableName); return sysTableName; } @TranRead public SysTableName getByTopicName(final String topicName) { if (ObjectUtils.isEmpty(topicName)) { return null; } final QueryWrapper<SysTableName> queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SysTableName::getTopicName, topicName); return this.getOne(queryWrapper); } @TranRead public SysTableName getByTableName(final String recordTableName, final String recordDetailTableName) { if (ObjectUtils.isEmpty(recordTableName) || ObjectUtils.isEmpty(recordDetailTableName)) { return null; } final QueryWrapper<SysTableName> queryWrapper = new QueryWrapper<>(); queryWrapper.lambda() .eq(SysTableName::getRecordTableName, recordTableName) .eq(SysTableName::getRecordDetailTableName, recordDetailTableName); return this.getOne(queryWrapper); } @TranSave public void deleteTopic(final String topicName) { if (ObjectUtils.isEmpty(topicName)) { return; } final QueryWrapper<SysTableName> queryWrapper = new QueryWrapper<>(); queryWrapper.lambda().eq(SysTableName::getTopicName, topicName); this.remove(queryWrapper); } @TranRead public Map<String, SysTableName> listMap() { return this.baseMapper.listMap(); } }
[ "349409664@qq.com" ]
349409664@qq.com
72148dc9d7151d94c208a0667c943976ab840dfc
40df4983d86a3f691fc3f5ec6a8a54e813f7fe72
/app/src/main/java/android/support/p015v4/util/LongSparseArray.java
62b71d3725c59cf14385b3b328aa0915c7a32fd8
[]
no_license
hlwhsunshine/RootGeniusTrunAK
5c63599a939b24a94c6f083a0ee69694fac5a0da
1f94603a9165e8b02e4bc9651c3528b66c19be68
refs/heads/master
2020-04-11T12:25:21.389753
2018-12-24T10:09:15
2018-12-24T10:09:15
161,779,612
0
0
null
null
null
null
UTF-8
Java
false
false
7,124
java
package android.support.p015v4.util; /* renamed from: android.support.v4.util.LongSparseArray */ public class LongSparseArray<E> implements Cloneable { private static final Object DELETED = new Object(); private boolean mGarbage; private long[] mKeys; private int mSize; private Object[] mValues; public LongSparseArray() { this(10); } public LongSparseArray(int i) { this.mGarbage = false; if (i == 0) { this.mKeys = ContainerHelpers.EMPTY_LONGS; this.mValues = ContainerHelpers.EMPTY_OBJECTS; } else { int idealLongArraySize = ContainerHelpers.idealLongArraySize(i); this.mKeys = new long[idealLongArraySize]; this.mValues = new Object[idealLongArraySize]; } this.mSize = 0; } /* renamed from: gc */ private void m192gc() { int i = this.mSize; long[] jArr = this.mKeys; Object[] objArr = this.mValues; int i2 = 0; for (int i3 = 0; i3 < i; i3++) { Object obj = objArr[i3]; if (obj != DELETED) { if (i3 != i2) { jArr[i2] = jArr[i3]; objArr[i2] = obj; objArr[i3] = null; } i2++; } } this.mGarbage = false; this.mSize = i2; } public void append(long j, E e) { if (this.mSize == 0 || j > this.mKeys[this.mSize - 1]) { if (this.mGarbage && this.mSize >= this.mKeys.length) { m192gc(); } int i = this.mSize; if (i >= this.mKeys.length) { int idealLongArraySize = ContainerHelpers.idealLongArraySize(i + 1); Object obj = new long[idealLongArraySize]; Object obj2 = new Object[idealLongArraySize]; System.arraycopy(this.mKeys, 0, obj, 0, this.mKeys.length); System.arraycopy(this.mValues, 0, obj2, 0, this.mValues.length); this.mKeys = obj; this.mValues = obj2; } this.mKeys[i] = j; this.mValues[i] = e; this.mSize = i + 1; return; } put(j, e); } public void clear() { int i = this.mSize; Object[] objArr = this.mValues; for (int i2 = 0; i2 < i; i2++) { objArr[i2] = null; } this.mSize = 0; this.mGarbage = false; } public LongSparseArray<E> clone() { try { LongSparseArray<E> longSparseArray = (LongSparseArray) super.clone(); try { longSparseArray.mKeys = (long[]) this.mKeys.clone(); longSparseArray.mValues = (Object[]) this.mValues.clone(); return longSparseArray; } catch (CloneNotSupportedException e) { return longSparseArray; } } catch (CloneNotSupportedException e2) { return null; } } public void delete(long j) { int binarySearch = ContainerHelpers.binarySearch(this.mKeys, this.mSize, j); if (binarySearch >= 0 && this.mValues[binarySearch] != DELETED) { this.mValues[binarySearch] = DELETED; this.mGarbage = true; } } public E get(long j) { return get(j, null); } public E get(long j, E e) { int binarySearch = ContainerHelpers.binarySearch(this.mKeys, this.mSize, j); return (binarySearch < 0 || this.mValues[binarySearch] == DELETED) ? e : this.mValues[binarySearch]; } public int indexOfKey(long j) { if (this.mGarbage) { m192gc(); } return ContainerHelpers.binarySearch(this.mKeys, this.mSize, j); } public int indexOfValue(E e) { if (this.mGarbage) { m192gc(); } for (int i = 0; i < this.mSize; i++) { if (this.mValues[i] == e) { return i; } } return -1; } public long keyAt(int i) { if (this.mGarbage) { m192gc(); } return this.mKeys[i]; } public void put(long j, E e) { int binarySearch = ContainerHelpers.binarySearch(this.mKeys, this.mSize, j); if (binarySearch >= 0) { this.mValues[binarySearch] = e; return; } binarySearch ^= -1; if (binarySearch >= this.mSize || this.mValues[binarySearch] != DELETED) { if (this.mGarbage && this.mSize >= this.mKeys.length) { m192gc(); binarySearch = ContainerHelpers.binarySearch(this.mKeys, this.mSize, j) ^ -1; } if (this.mSize >= this.mKeys.length) { int idealLongArraySize = ContainerHelpers.idealLongArraySize(this.mSize + 1); Object obj = new long[idealLongArraySize]; Object obj2 = new Object[idealLongArraySize]; System.arraycopy(this.mKeys, 0, obj, 0, this.mKeys.length); System.arraycopy(this.mValues, 0, obj2, 0, this.mValues.length); this.mKeys = obj; this.mValues = obj2; } if (this.mSize - binarySearch != 0) { System.arraycopy(this.mKeys, binarySearch, this.mKeys, binarySearch + 1, this.mSize - binarySearch); System.arraycopy(this.mValues, binarySearch, this.mValues, binarySearch + 1, this.mSize - binarySearch); } this.mKeys[binarySearch] = j; this.mValues[binarySearch] = e; this.mSize++; return; } this.mKeys[binarySearch] = j; this.mValues[binarySearch] = e; } public void remove(long j) { delete(j); } public void removeAt(int i) { if (this.mValues[i] != DELETED) { this.mValues[i] = DELETED; this.mGarbage = true; } } public void setValueAt(int i, E e) { if (this.mGarbage) { m192gc(); } this.mValues[i] = e; } public int size() { if (this.mGarbage) { m192gc(); } return this.mSize; } public String toString() { if (size() <= 0) { return "{}"; } StringBuilder stringBuilder = new StringBuilder(this.mSize * 28); stringBuilder.append('{'); for (int i = 0; i < this.mSize; i++) { if (i > 0) { stringBuilder.append(", "); } stringBuilder.append(keyAt(i)); stringBuilder.append('='); LongSparseArray valueAt = valueAt(i); if (valueAt != this) { stringBuilder.append(valueAt); } else { stringBuilder.append("(this Map)"); } } stringBuilder.append('}'); return stringBuilder.toString(); } public E valueAt(int i) { if (this.mGarbage) { m192gc(); } return this.mValues[i]; } }
[ "603820467@qq.com" ]
603820467@qq.com
b5f12b9d5d206d19670fd3a701330aaf040dd5c0
a26ec63279caad0dd0f57120f10440bbd3645ba4
/takeoutbundle/src/main/java/com/yunos/tvtaobao/takeoutbundle/activity/TakeOutSkuActivity.java
bca7cd32454598985ef06c7eac963a8b1f3ee591
[]
no_license
P79N6A/tvtao
6b0af50a878e882ad2c0da399a0a8c0304394dff
4943116ec8cfb946b85cbfea9641e87834e675ed
refs/heads/master
2020-04-25T15:27:50.798979
2019-02-27T08:55:16
2019-02-27T08:55:55
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,650
java
package com.yunos.tvtaobao.takeoutbundle.activity; import android.view.View; import com.yunos.tvtaobao.biz.common.BaseConfig; import com.yunos.tvtaobao.biz.request.bo.ItemListBean; import com.yunos.tvtaobao.biz.widget.newsku.SkuActivity; import com.yunos.tvtaobao.takeoutbundle.R; import com.yunos.tvtaobao.takeoutbundle.presenter.TakeOutSkuPresenter; /** * Created by wuhaoteng on 2018/10/15. * Desc:外卖Sku页面 */ public class TakeOutSkuActivity extends SkuActivity<TakeOutSkuPresenter> { private static final String TAG = "TakeOutSkuActivity"; @Override protected void initPresenter() { ItemListBean itemListBean = (ItemListBean) getIntent().getSerializableExtra(BaseConfig.INTENT_KEY_TAKEOUT_SKU_DATA); mSkuPresenter.initSkuPropsList(itemListBean); } @Override public void initView() { super.initView(); okBtn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { mSkuPresenter.onChooseSkuComplete(numChooseLayout.getNum()); } }); } @Override protected TakeOutSkuPresenter createPresenter() { return new TakeOutSkuPresenter(this,this); } @Override protected int provideContentViewId() { return R.layout.activity_take_out_sku; } @Override protected void addSelectedPropData(long propId, long valueId) { mSkuPresenter.addSelectedPropData(propId,valueId); } @Override protected void deleteSelectedPropData(long propId, long valueId) { mSkuPresenter.deleteSelectedPropData(propId,valueId); } }
[ "wb-wht434871@alibaba-inc.com" ]
wb-wht434871@alibaba-inc.com
7d7ce5ee9625201ff54329d677d1a3bda1b134b7
c2ab23fbd359848cc13eda1d4440a136d18e8b59
/gmall-ums/src/main/java/com/atguigu/gmall/ums/dao/MemberLoginLogDao.java
cc5bff0bcda7d81b86e0c7ff477cd6ad7a46ec78
[ "Apache-2.0" ]
permissive
cyxfcyfyz/gmall-0120
c66cb45926daa84e5e9c728ea3012672cb5300a4
81b779c3e9d90bf9e008b38eb9a5da4ebd9db930
refs/heads/master
2022-12-21T01:01:42.404595
2020-02-24T08:02:05
2020-02-24T08:02:05
235,050,176
1
0
Apache-2.0
2022-12-16T11:09:02
2020-01-20T08:12:43
JavaScript
UTF-8
Java
false
false
390
java
package com.atguigu.gmall.ums.dao; import com.atguigu.gmall.ums.entity.MemberLoginLogEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 会员登录记录 * * @author fcy * @email lxf@atguigu.com * @date 2020-01-27 14:37:15 */ @Mapper public interface MemberLoginLogDao extends BaseMapper<MemberLoginLogEntity> { }
[ "123@qq.com" ]
123@qq.com
739d4046bd02b52327e3dfc9fd93920860b46fac
5bb4a4b0364ec05ffb422d8b2e76374e81c8c979
/sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/AzureFirewallNatRule.java
b093830e096521a968987e02680ea2530b55288a
[ "MIT", "LicenseRef-scancode-generic-cla", "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-or-later", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
FabianMeiswinkel/azure-sdk-for-java
bd14579af2f7bc63e5c27c319e2653db990056f1
41d99a9945a527b6d3cc7e1366e1d9696941dbe3
refs/heads/main
2023-08-04T20:38:27.012783
2020-07-15T21:56:57
2020-07-15T21:56:57
251,590,939
3
1
MIT
2023-09-02T00:50:23
2020-03-31T12:05:12
Java
UTF-8
Java
false
false
7,457
java
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.network.v2019_09_01; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty; /** * Properties of a NAT rule. */ public class AzureFirewallNatRule { /** * Name of the NAT rule. */ @JsonProperty(value = "name") private String name; /** * Description of the rule. */ @JsonProperty(value = "description") private String description; /** * List of source IP addresses for this rule. */ @JsonProperty(value = "sourceAddresses") private List<String> sourceAddresses; /** * List of destination IP addresses for this rule. Supports IP ranges, * prefixes, and service tags. */ @JsonProperty(value = "destinationAddresses") private List<String> destinationAddresses; /** * List of destination ports. */ @JsonProperty(value = "destinationPorts") private List<String> destinationPorts; /** * Array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. */ @JsonProperty(value = "protocols") private List<AzureFirewallNetworkRuleProtocol> protocols; /** * The translated address for this NAT rule. */ @JsonProperty(value = "translatedAddress") private String translatedAddress; /** * The translated port for this NAT rule. */ @JsonProperty(value = "translatedPort") private String translatedPort; /** * The translated FQDN for this NAT rule. */ @JsonProperty(value = "translatedFqdn") private String translatedFqdn; /** * List of source IpGroups for this rule. */ @JsonProperty(value = "sourceIpGroups") private List<String> sourceIpGroups; /** * Get name of the NAT rule. * * @return the name value */ public String name() { return this.name; } /** * Set name of the NAT rule. * * @param name the name value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withName(String name) { this.name = name; return this; } /** * Get description of the rule. * * @return the description value */ public String description() { return this.description; } /** * Set description of the rule. * * @param description the description value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withDescription(String description) { this.description = description; return this; } /** * Get list of source IP addresses for this rule. * * @return the sourceAddresses value */ public List<String> sourceAddresses() { return this.sourceAddresses; } /** * Set list of source IP addresses for this rule. * * @param sourceAddresses the sourceAddresses value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withSourceAddresses(List<String> sourceAddresses) { this.sourceAddresses = sourceAddresses; return this; } /** * Get list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. * * @return the destinationAddresses value */ public List<String> destinationAddresses() { return this.destinationAddresses; } /** * Set list of destination IP addresses for this rule. Supports IP ranges, prefixes, and service tags. * * @param destinationAddresses the destinationAddresses value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withDestinationAddresses(List<String> destinationAddresses) { this.destinationAddresses = destinationAddresses; return this; } /** * Get list of destination ports. * * @return the destinationPorts value */ public List<String> destinationPorts() { return this.destinationPorts; } /** * Set list of destination ports. * * @param destinationPorts the destinationPorts value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withDestinationPorts(List<String> destinationPorts) { this.destinationPorts = destinationPorts; return this; } /** * Get array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. * * @return the protocols value */ public List<AzureFirewallNetworkRuleProtocol> protocols() { return this.protocols; } /** * Set array of AzureFirewallNetworkRuleProtocols applicable to this NAT rule. * * @param protocols the protocols value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withProtocols(List<AzureFirewallNetworkRuleProtocol> protocols) { this.protocols = protocols; return this; } /** * Get the translated address for this NAT rule. * * @return the translatedAddress value */ public String translatedAddress() { return this.translatedAddress; } /** * Set the translated address for this NAT rule. * * @param translatedAddress the translatedAddress value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withTranslatedAddress(String translatedAddress) { this.translatedAddress = translatedAddress; return this; } /** * Get the translated port for this NAT rule. * * @return the translatedPort value */ public String translatedPort() { return this.translatedPort; } /** * Set the translated port for this NAT rule. * * @param translatedPort the translatedPort value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withTranslatedPort(String translatedPort) { this.translatedPort = translatedPort; return this; } /** * Get the translated FQDN for this NAT rule. * * @return the translatedFqdn value */ public String translatedFqdn() { return this.translatedFqdn; } /** * Set the translated FQDN for this NAT rule. * * @param translatedFqdn the translatedFqdn value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withTranslatedFqdn(String translatedFqdn) { this.translatedFqdn = translatedFqdn; return this; } /** * Get list of source IpGroups for this rule. * * @return the sourceIpGroups value */ public List<String> sourceIpGroups() { return this.sourceIpGroups; } /** * Set list of source IpGroups for this rule. * * @param sourceIpGroups the sourceIpGroups value to set * @return the AzureFirewallNatRule object itself. */ public AzureFirewallNatRule withSourceIpGroups(List<String> sourceIpGroups) { this.sourceIpGroups = sourceIpGroups; return this; } }
[ "yaozheng@microsoft.com" ]
yaozheng@microsoft.com
7453fde3cca66a6acca978550d0e2041e4928a9f
619ac14c9a7101e4b5c71a1da35d2719b6a6bf63
/app/src/main/java/com/nongfenqi/guixiaoyuan/baseretrofitnetdemo/CenterWebViewActivity.java
3c16a3478d76b555113931cc48c9b7021883b4e5
[]
no_license
guixiaoyuan/BaseRetrofitNetDemo
7e4b5048385e2b7b9d0a76c5ac38e5da286109e3
03680ef5f1b21e81f157d924653167ac4ee32264
refs/heads/master
2021-09-04T00:27:02.834008
2018-01-13T08:25:02
2018-01-13T08:25:02
116,752,814
0
0
null
null
null
null
UTF-8
Java
false
false
4,965
java
package com.nongfenqi.guixiaoyuan.baseretrofitnetdemo; import android.animation.Animator; import android.animation.ObjectAnimator; import android.annotation.SuppressLint; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.widget.Toolbar; import android.view.MotionEvent; import android.view.View; import android.view.ViewConfiguration; import android.webkit.WebView; import android.widget.FrameLayout; import com.nongfenqi.guixiaoyuan.baseretrofitnetdemo.constant.CenterConstants; import butterknife.BindView; import butterknife.ButterKnife; /** * 活动WebView界面 * * @author guixiaoyuan * @version 2.2, 2017/7/1 * @since [sherlock/V2.2.0] */ public class CenterWebViewActivity extends BaseActivity { private static final String TAG = CenterWebViewActivity.class.getSimpleName(); @BindView(R.id.wv_july_result) WebView mActivityWebView; @BindView(R.id.toolbar) Toolbar mToolbar; @BindView(R.id.fl_root_layout) FrameLayout mRootView; @BindView(R.id.app_bar) View mAppBar; private static final String JS_NAME = "android"; private static final String ENCODING_NAME = "utf-8"; private String mUrl; private boolean isAdvertisement; private float mFirstY; private float mCurrentY; @SuppressLint({"SetJavaScriptEnabled", "JavascriptInterface", "ClickableViewAccessibility"}) @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.popwindow_web_view); unbinder = ButterKnife.bind(this); mUrl = getIntent().getStringExtra(CenterConstants.ACTIVITY_URL); isAdvertisement = getIntent().getBooleanExtra("advertisement", false); mToolbar.setTitle(getIntent().getStringExtra(CenterConstants.ACTIVITY_NAME)); mToolbar.setNavigationIcon(R.drawable.ic_real_name_back); mToolbar.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); } }); setSupportActionBar(mToolbar); mActivityWebView.getSettings().setJavaScriptEnabled(true); mActivityWebView.addJavascriptInterface(context, JS_NAME); mActivityWebView.getSettings().setDefaultTextEncodingName(ENCODING_NAME); if (CenterConstants.SUMMER_ACTIVITY_URL.equals(mUrl)) { //mUrl = mUrl + CenterConstants.PAD_PARAMETER + SherlockApplication.getUserId(); } mActivityWebView.loadUrl(mUrl); mActivityWebView.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: mFirstY = event.getY(); break; case MotionEvent.ACTION_MOVE: mCurrentY = event.getY(); if (mCurrentY - mFirstY > ViewConfiguration.get(context).getScaledTouchSlop()) { // 下滑 显示titleBar showHideTitleBar(true); } else if (mFirstY - mCurrentY > ViewConfiguration.get(context).getScaledTouchSlop()) { // 上滑 隐藏titleBar showHideTitleBar(false); } break; case MotionEvent.ACTION_UP: break; default: break; } return false; } }); } private Animator mAnimatorTitle; private Animator mAnimatorContent; private void showHideTitleBar(boolean tag) { if (mAnimatorTitle != null && mAnimatorTitle.isRunning()) { mAnimatorTitle.cancel(); } if (mAnimatorContent != null && mAnimatorContent.isRunning()) { mAnimatorContent.cancel(); } if (tag) { mAnimatorTitle = ObjectAnimator.ofFloat(mAppBar, View.TRANSLATION_Y, mAppBar.getTranslationY(), 0); mAnimatorContent = ObjectAnimator.ofFloat(mActivityWebView, View.TRANSLATION_Y, mActivityWebView.getTranslationY(), getResources().getDimension(R.dimen.title_height)); } else { mAnimatorTitle = ObjectAnimator.ofFloat(mAppBar, View.TRANSLATION_Y, mAppBar.getTranslationY(), -mAppBar.getHeight()); mAnimatorContent = ObjectAnimator.ofFloat(mActivityWebView, View.TRANSLATION_Y, mActivityWebView.getTranslationY(), 0); } mAnimatorTitle.start(); mAnimatorContent.start(); } @Override protected void onDestroy() { mRootView.removeView(mActivityWebView); mActivityWebView.removeAllViews(); mActivityWebView.destroy(); super.onDestroy(); } }
[ "463316523@qq.com" ]
463316523@qq.com
12b65fb155428cc8cf465996f3afc625d563e99f
2b219710eb40490eb804f4c26ddd00860d370e31
/myshop-commons-domain/src/main/java/com/lwx/myshop/commons/domain/TbOrderShipping.java
d919148aba12a0684ddf2f3ba4630d1d6f80a10a
[ "Apache-2.0" ]
permissive
liuwuxiang/dubbo-my-shop
89782bdfa91f2b7ddcd601eab8659f58928265c7
44c3a8695dda4957c2b89966e990ace0b448c5cb
refs/heads/master
2021-03-03T19:31:32.202829
2020-03-09T08:52:58
2020-03-09T08:53:33
245,982,291
0
0
null
null
null
null
UTF-8
Java
false
false
5,095
java
package com.lwx.myshop.commons.domain; import javax.persistence.Column; import javax.persistence.Id; import javax.persistence.Table; import java.io.Serializable; import java.util.Date; @Table(name = "tb_order_shipping") public class TbOrderShipping implements Serializable { /** * 订单ID */ @Id @Column(name = "order_id") private String orderId; /** * 收货人全名 */ @Column(name = "receiver_name") private String receiverName; /** * 固定电话 */ @Column(name = "receiver_phone") private String receiverPhone; /** * 移动电话 */ @Column(name = "receiver_mobile") private String receiverMobile; /** * 省份 */ @Column(name = "receiver_state") private String receiverState; /** * 城市 */ @Column(name = "receiver_city") private String receiverCity; /** * 区/县 */ @Column(name = "receiver_district") private String receiverDistrict; /** * 收货地址,如:xx路xx号 */ @Column(name = "receiver_address") private String receiverAddress; /** * 邮政编码,如:310001 */ @Column(name = "receiver_zip") private String receiverZip; private Date created; private Date updated; /** * 获取订单ID * * @return order_id - 订单ID */ public String getOrderId() { return orderId; } /** * 设置订单ID * * @param orderId 订单ID */ public void setOrderId(String orderId) { this.orderId = orderId; } /** * 获取收货人全名 * * @return receiver_name - 收货人全名 */ public String getReceiverName() { return receiverName; } /** * 设置收货人全名 * * @param receiverName 收货人全名 */ public void setReceiverName(String receiverName) { this.receiverName = receiverName; } /** * 获取固定电话 * * @return receiver_phone - 固定电话 */ public String getReceiverPhone() { return receiverPhone; } /** * 设置固定电话 * * @param receiverPhone 固定电话 */ public void setReceiverPhone(String receiverPhone) { this.receiverPhone = receiverPhone; } /** * 获取移动电话 * * @return receiver_mobile - 移动电话 */ public String getReceiverMobile() { return receiverMobile; } /** * 设置移动电话 * * @param receiverMobile 移动电话 */ public void setReceiverMobile(String receiverMobile) { this.receiverMobile = receiverMobile; } /** * 获取省份 * * @return receiver_state - 省份 */ public String getReceiverState() { return receiverState; } /** * 设置省份 * * @param receiverState 省份 */ public void setReceiverState(String receiverState) { this.receiverState = receiverState; } /** * 获取城市 * * @return receiver_city - 城市 */ public String getReceiverCity() { return receiverCity; } /** * 设置城市 * * @param receiverCity 城市 */ public void setReceiverCity(String receiverCity) { this.receiverCity = receiverCity; } /** * 获取区/县 * * @return receiver_district - 区/县 */ public String getReceiverDistrict() { return receiverDistrict; } /** * 设置区/县 * * @param receiverDistrict 区/县 */ public void setReceiverDistrict(String receiverDistrict) { this.receiverDistrict = receiverDistrict; } /** * 获取收货地址,如:xx路xx号 * * @return receiver_address - 收货地址,如:xx路xx号 */ public String getReceiverAddress() { return receiverAddress; } /** * 设置收货地址,如:xx路xx号 * * @param receiverAddress 收货地址,如:xx路xx号 */ public void setReceiverAddress(String receiverAddress) { this.receiverAddress = receiverAddress; } /** * 获取邮政编码,如:310001 * * @return receiver_zip - 邮政编码,如:310001 */ public String getReceiverZip() { return receiverZip; } /** * 设置邮政编码,如:310001 * * @param receiverZip 邮政编码,如:310001 */ public void setReceiverZip(String receiverZip) { this.receiverZip = receiverZip; } /** * @return created */ public Date getCreated() { return created; } /** * @param created */ public void setCreated(Date created) { this.created = created; } /** * @return updated */ public Date getUpdated() { return updated; } /** * @param updated */ public void setUpdated(Date updated) { this.updated = updated; } }
[ "494775947@qq.com" ]
494775947@qq.com
f3960afb83337d3d2b045cd51a7537a1c0cdd792
7222b90d6581745a3a08d6f30ce8ed4654cdbdbf
/edu.kit.ipd.sdq.eventsim/src/edu/kit/ipd/sdq/eventsim/interpreter/state/ITraversalStrategyState.java
085d14b5829dd1ef00a247a9ed64f5d8112ddfd2
[]
no_license
s-samann/Palladio-Addons-IntBIIS
6a922f1e3d5b6f55be1213fd5ebc74bcdf14970d
b88739c144b71ac328b9e8de25e6ac5ebaf884e1
refs/heads/master
2021-05-16T04:50:20.249453
2017-10-02T09:26:45
2017-10-02T09:26:45
106,206,762
0
0
null
2017-10-08T20:15:14
2017-10-08T20:15:14
null
UTF-8
Java
false
false
579
java
package edu.kit.ipd.sdq.eventsim.interpreter.state; import edu.kit.ipd.sdq.eventsim.interpreter.ITraversalStrategy; /** * A marker interface for classes storing the internal state of an {@link ITraversalStrategy}. * Traversal strategies that need to store their state on the {@link TraversalStateStack} implement * this interface to be able to store their state in an {@link AbstractStateStackFrame}. * * @author Philipp Merkle * */ public interface ITraversalStrategyState { // a marker interface is not supposed to declare method signatures }
[ "rostami@kit.edu" ]
rostami@kit.edu
ef87fe409d9b3306fa87e1fd70e92d767d938857
5120b826c0b659cc609e7cecdf9718aba243dfb0
/platform_only_recipe/hybris/bin/platform/ext/platformservices/src/de/hybris/platform/catalog/impl/package-info.java
46e70817e2a6b886de8aeb1a610625871ae390ce
[]
no_license
miztli/hybris
8447c85555676742b524aee901a5f559189a469a
ff84a5089a0d99899672e60c3a60436ab8bf7554
refs/heads/master
2022-10-26T07:21:44.657487
2019-05-28T20:30:10
2019-05-28T20:30:10
186,463,896
1
0
null
2022-09-16T18:38:27
2019-05-13T17:13:05
Java
UTF-8
Java
false
false
505
java
/* * [y] hybris Platform * * Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. * * This software is the confidential and proprietary information of SAP * ("Confidential Information"). 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 SAP. */ /** * Contains all service implementations for managing catalogs. */ package de.hybris.platform.catalog.impl;
[ "miztlimelgoza@miztlis-MacBook-Pro.local" ]
miztlimelgoza@miztlis-MacBook-Pro.local
a712533a46e47bdc1c68fb337cae883aea83ee87
4b941e98578b57c1ab109888bdffaba37b4324c9
/app/src/main/java/application/ucweb/proyectoecoinca/model/Buscar.java
13053a2b4ac3460cd93c4f116595749c53d1e4a5
[]
no_license
marlonpya/ProyectoEcoInca
a65daa4ae49a08638520c37f1912e0feb08dbe35
2216be728b8e25848dc3d395eda59b14331644f5
refs/heads/master
2020-09-21T01:01:44.428779
2017-03-13T23:44:19
2017-03-13T23:44:19
73,512,993
0
0
null
null
null
null
UTF-8
Java
false
false
553
java
package application.ucweb.proyectoecoinca.model; /** * Created by ucweb02 on 06/10/2016. */ public class Buscar { private String nombre; private int icono; public Buscar(String nombre, int icono) { this.nombre = nombre; this.icono = icono; } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public int getIcono() { return icono; } public void setIcono(int icono) { this.icono = icono; } }
[ "=" ]
=
73df72ad64185bdcdd63fe21d1b5bc27f737df87
cfe621e8c36e6ac5053a2c4f7129a13ea9f9f66b
/apps_final/names.of.allah/apk/com/google/android/gms/ads/InterstitialAd.java
b7f4b94a8b1bfae67a6b3c2d93ee78120fed87b7
[]
no_license
linux86/AndoirdSecurity
3165de73b37f53070cd6b435e180a2cb58d6f672
1e72a3c1f7a72ea9cd12048d9874a8651e0aede7
refs/heads/master
2021-01-11T01:20:58.986651
2016-04-05T17:14:26
2016-04-05T17:14:26
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,627
java
package com.google.android.gms.ads; import android.content.Context; import com.google.android.gms.ads.purchase.InAppPurchaseListener; import com.google.android.gms.ads.purchase.PlayStorePurchaseListener; import com.google.android.gms.internal.aw; public final class InterstitialAd { private final aw kw; public InterstitialAd(Context paramContext) { kw = new aw(paramContext); } public final AdListener getAdListener() { return kw.getAdListener(); } public final String getAdUnitId() { return kw.getAdUnitId(); } public final InAppPurchaseListener getInAppPurchaseListener() { return kw.getInAppPurchaseListener(); } public final boolean isLoaded() { return kw.isLoaded(); } public final void loadAd(AdRequest paramAdRequest) { kw.a(paramAdRequest.O()); } public final void setAdListener(AdListener paramAdListener) { kw.setAdListener(paramAdListener); } public final void setAdUnitId(String paramString) { kw.setAdUnitId(paramString); } public final void setInAppPurchaseListener(InAppPurchaseListener paramInAppPurchaseListener) { kw.setInAppPurchaseListener(paramInAppPurchaseListener); } public final void setPlayStorePurchaseParams(PlayStorePurchaseListener paramPlayStorePurchaseListener, String paramString) { kw.setPlayStorePurchaseParams(paramPlayStorePurchaseListener, paramString); } public final void show() { kw.show(); } } /* Location: * Qualified Name: com.google.android.gms.ads.InterstitialAd * Java Class Version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "i@xuzhao.net" ]
i@xuzhao.net
b62bacc4523dfe9d24e8d695d66c19be7b21e002
36073e09d6a12a275cc85901317159e7fffa909e
/dreamhead_moco/modifiedFiles/2/old/MocoTestHelper.java
d480278274d4949aa3c5261009c509e1b85de9cf
[]
no_license
monperrus/bug-fixes-saner16
a867810451ddf45e2aaea7734d6d0c25db12904f
9ce6e057763db3ed048561e954f7aedec43d4f1a
refs/heads/master
2020-03-28T16:00:18.017068
2018-11-14T13:48:57
2018-11-14T13:48:57
148,648,848
3
0
null
null
null
null
UTF-8
Java
false
false
2,276
java
package com.github.dreamhead.moco.helper; import com.google.common.collect.ImmutableMap; import com.google.common.io.Resources; import org.apache.http.HttpResponse; import org.apache.http.HttpVersion; import org.apache.http.StatusLine; import org.apache.http.client.fluent.Content; import org.apache.http.client.fluent.Request; import org.apache.http.client.fluent.Response; import java.io.IOException; import java.io.InputStream; import java.util.Map; import static com.google.common.io.ByteStreams.toByteArray; public class MocoTestHelper { public String get(String url) throws IOException { return get(Request.Get(url)); } public HttpResponse getResponse(String url) throws IOException { return Request.Get(url).execute().returnResponse(); } public String getWithHeader(String url, ImmutableMap<String, String> headers) throws IOException { Request request = Request.Get(url); for (Map.Entry<String, String> entry : headers.entrySet()) { request = request.addHeader(entry.getKey(), entry.getValue()); } return get(request); } public String getWithVersion(String url, HttpVersion version) throws IOException { return get(Request.Get(url).version(version)); } private String get(Request request) throws IOException { return request.execute().returnContent().asString(); } public String postContent(String url, String postContent) throws IOException { return postBytes(url, postContent.getBytes()); } public String postBytes(String url, byte[] bytes) throws IOException { Content content = Request.Post(url).bodyByteArray(bytes) .execute().returnContent(); return content.asString(); } public String postFile(String url, String file) throws IOException { InputStream is = Resources.getResource(file).openStream(); Content content = Request.Post(url).bodyByteArray(toByteArray(is)) .execute().returnContent(); return content.asString(); } public int getForStatus(String url) throws IOException { StatusLine statusLine = Request.Get(url).execute().returnResponse().getStatusLine(); return statusLine.getStatusCode(); } }
[ "martin.monperrus@gnieh.org" ]
martin.monperrus@gnieh.org
ed70b41b4394a238e5a15bc5d27603526789e137
56656ce6a15700cdd0108d3e94016da24433538b
/src/main/java/org/pentaho/di/core/database/DatabaseFactoryInterface.java
be7faa6346695bc565354b6be4d85891cd7a1b43
[]
no_license
tlw-ray/one-kettle
6bc60574a936ee8e2b741fefe6060f8e40166637
d2763edbdf1463d7a6e770f5182ea66525e1da61
refs/heads/master
2020-07-25T07:43:28.989714
2019-10-19T00:28:20
2019-10-19T00:28:20
208,218,415
2
1
null
null
null
null
UTF-8
Java
false
false
1,156
java
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ******************************************************************************/ package org.pentaho.di.core.database; import org.pentaho.di.core.exception.KettleDatabaseException; public interface DatabaseFactoryInterface { String getConnectionTestReport(DatabaseMeta databaseMeta) throws KettleDatabaseException; }
[ "tlw_ray@163.com" ]
tlw_ray@163.com
1a7d4b11551e3db9a2bd658c53cfdfbee87ada42
6baf1fe00541560788e78de5244ae17a7a2b375a
/hollywood/com.oculus.browser-base/sources/defpackage/EnumC3157j80.java
a209cb06e61a49833865444b2d26a9e346143fb8
[]
no_license
phwd/quest-tracker
286e605644fc05f00f4904e51f73d77444a78003
3d46fbb467ba11bee5827f7cae7dfeabeb1fd2ba
refs/heads/main
2023-03-29T20:33:10.959529
2021-04-10T22:14:11
2021-04-10T22:14:11
357,185,040
4
2
null
2021-04-12T12:28:09
2021-04-12T12:28:08
null
UTF-8
Java
false
false
294
java
package defpackage; /* renamed from: j80 reason: default package and case insensitive filesystem */ /* compiled from: chromium-OculusBrowser.apk-stable-281887347 */ public enum EnumC3157j80 { ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY, ON_ANY }
[ "cyuubiapps@gmail.com" ]
cyuubiapps@gmail.com
83a80367b6dbb256c8c1786c94e806ba7110c2a5
926f589160f0a5188c45feaaa793a483923f5e9a
/core java/Oops(Object Oriented Programming)/src/Interface/MarkerInterface/Clonning/DeepCloningWithoutCloneable/Employee.java
d101d2c4c60e1651f5b81749f7693610bdacbd8e
[]
no_license
rohankalamkar/corejava
6016bd2e923f2cb56e0ef974801058c975455789
5b2a466b57d6a8fc3c9a64432400f47b52416d7d
refs/heads/master
2023-08-21T21:07:24.355631
2021-10-26T12:42:21
2021-10-26T12:42:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
491
java
package Interface.MarkerInterface.Clonning.DeepCloningWithoutCloneable; public class Employee { private int eid; private String ename; public void setEid(int eid) { this.eid = eid; } public void setEname(String ename) { this.ename = ename; } public int getEid() { return eid; } public String getEname() { return ename; } public Employee copy() { Employee copyObject = new Employee(); copyObject.eid = eid; copyObject.ename=ename; return copyObject; } }
[ "rohan.kalamkar7@gmail.com" ]
rohan.kalamkar7@gmail.com
6229ec446e3807d122fdaef22ff164c0c767803d
b5573d221f9d5dbddb1691bbee22abd53e92cd83
/src/main/java/es/rickyepoderi/spml4jaxb/msg/spmldsml/AttributeDefinitionType.java
534d6291dd53ec667e16057ce79798c0869ff35c
[]
no_license
rickyepoderi/spml4jaxb
0bf2cf3253796ea7ff1c511a9bf26ca5b1a6c800
c247d88d454c65e7e5bb3e77a4b31f0292eb5177
refs/heads/master
2021-01-10T05:11:40.815207
2016-02-13T14:27:46
2016-02-13T14:27:46
48,584,588
0
0
null
null
null
null
UTF-8
Java
false
false
3,993
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2015.08.24 at 02:52:06 PM CEST // package es.rickyepoderi.spml4jaxb.msg.spmldsml; 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 es.rickyepoderi.spml4jaxb.msg.core.ExtensibleType; /** * <p>Java class for AttributeDefinitionType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="AttributeDefinitionType"> * &lt;complexContent> * &lt;extension base="{urn:oasis:names:tc:SPML:2:0}ExtensibleType"> * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" /> * &lt;attribute name="multivalued" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> * &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="xsd:string" /> * &lt;attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * &lt;anyAttribute processContents='lax' namespace=''/> * &lt;/extension> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "AttributeDefinitionType") public class AttributeDefinitionType extends ExtensibleType { @XmlAttribute(name = "description") protected String description; @XmlAttribute(name = "multivalued") protected Boolean multivalued; @XmlAttribute(name = "type") protected String type; @XmlAttribute(name = "name", required = true) protected String name; /** * Gets the value of the description property. * * @return * possible object is * {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is * {@link String } * */ public void setDescription(String value) { this.description = value; } /** * Gets the value of the multivalued property. * * @return * possible object is * {@link Boolean } * */ public boolean isMultivalued() { if (multivalued == null) { return false; } else { return multivalued; } } /** * Sets the value of the multivalued property. * * @param value * allowed object is * {@link Boolean } * */ public void setMultivalued(Boolean value) { this.multivalued = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { if (type == null) { return "xsd:string"; } else { return type; } } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } }
[ "rickyepoderi@yahoo.es" ]
rickyepoderi@yahoo.es
1b5e9d42b73b6f96dc91e404282e2bb34ac1d3f6
0ac05e3da06d78292fdfb64141ead86ff6ca038f
/OSWE/oswe/openCRX/rtjar/rt.jar.src/org/omg/CORBA/IRObjectOperations.java
49b5c5f2e72e9b6ac6e24182244db223d800174f
[]
no_license
qoo7972365/timmy
31581cdcbb8858ac19a8bb7b773441a68b6c390a
2fc8baba4f53d38dfe9c2b3afd89dcf87cbef578
refs/heads/master
2023-07-26T12:26:35.266587
2023-07-17T12:35:19
2023-07-17T12:35:19
353,889,195
7
1
null
null
null
null
UTF-8
Java
false
false
296
java
package org.omg.CORBA; public interface IRObjectOperations { DefinitionKind def_kind(); void destroy(); } /* Location: /Users/timmy/timmy/OSWE/oswe/openCRX/rt.jar!/org/omg/CORBA/IRObjectOperations.class * Java compiler version: 8 (52.0) * JD-Core Version: 1.1.3 */
[ "t0984456716" ]
t0984456716
0cffd337cf28521380fe57d4552c4520fd794eed
4747748043ad75b14dfee08fbc5d1bb7161798b3
/aliyun-java-sdk-ecsops/src/main/java/com/aliyuncs/ecsops/model/v20160401/OpsModifyOsTypeRequest.java
77b33c41da88b04e57e2699fbd1bdf96c152cbf9
[ "Apache-2.0" ]
permissive
JeffWoo2019/aliyun-openapi-java-sdk
ff203f4c82817d8dadc82bcb1712a0c782adce19
a9bd812adf7eee92a091898a1f9bf89c8054efe8
refs/heads/master
2023-06-17T20:11:09.445703
2021-07-14T03:44:02
2021-07-14T03:44:02
null
0
0
null
null
null
null
UTF-8
Java
false
false
4,717
java
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.aliyuncs.ecsops.model.v20160401; import com.aliyuncs.RpcAcsRequest; import com.aliyuncs.http.MethodType; /** * @author auto create * @version */ public class OpsModifyOsTypeRequest extends RpcAcsRequest<OpsModifyOsTypeResponse> { private Integer maxMemory; private Integer maxCpu; private String type; private String platform; private Long osTypeBit; private String osNameEn; private Long id; private String osName; private String osLicense; private String architecture; private String kind; private Integer minCpu; private Integer osBit; private Integer minMemory; private String auditParamStr; public OpsModifyOsTypeRequest() { super("Ecsops", "2016-04-01", "OpsModifyOsType", "ecsops"); setMethod(MethodType.POST); } public Integer getMaxMemory() { return this.maxMemory; } public void setMaxMemory(Integer maxMemory) { this.maxMemory = maxMemory; if(maxMemory != null){ putQueryParameter("MaxMemory", maxMemory.toString()); } } public Integer getMaxCpu() { return this.maxCpu; } public void setMaxCpu(Integer maxCpu) { this.maxCpu = maxCpu; if(maxCpu != null){ putQueryParameter("MaxCpu", maxCpu.toString()); } } public String getType() { return this.type; } public void setType(String type) { this.type = type; if(type != null){ putQueryParameter("Type", type); } } public String getPlatform() { return this.platform; } public void setPlatform(String platform) { this.platform = platform; if(platform != null){ putQueryParameter("Platform", platform); } } public Long getOsTypeBit() { return this.osTypeBit; } public void setOsTypeBit(Long osTypeBit) { this.osTypeBit = osTypeBit; if(osTypeBit != null){ putQueryParameter("OsTypeBit", osTypeBit.toString()); } } public String getOsNameEn() { return this.osNameEn; } public void setOsNameEn(String osNameEn) { this.osNameEn = osNameEn; if(osNameEn != null){ putQueryParameter("OsNameEn", osNameEn); } } public Long getId() { return this.id; } public void setId(Long id) { this.id = id; if(id != null){ putQueryParameter("Id", id.toString()); } } public String getOsName() { return this.osName; } public void setOsName(String osName) { this.osName = osName; if(osName != null){ putQueryParameter("OsName", osName); } } public String getOsLicense() { return this.osLicense; } public void setOsLicense(String osLicense) { this.osLicense = osLicense; if(osLicense != null){ putQueryParameter("OsLicense", osLicense); } } public String getArchitecture() { return this.architecture; } public void setArchitecture(String architecture) { this.architecture = architecture; if(architecture != null){ putQueryParameter("Architecture", architecture); } } public String getKind() { return this.kind; } public void setKind(String kind) { this.kind = kind; if(kind != null){ putQueryParameter("Kind", kind); } } public Integer getMinCpu() { return this.minCpu; } public void setMinCpu(Integer minCpu) { this.minCpu = minCpu; if(minCpu != null){ putQueryParameter("MinCpu", minCpu.toString()); } } public Integer getOsBit() { return this.osBit; } public void setOsBit(Integer osBit) { this.osBit = osBit; if(osBit != null){ putQueryParameter("OsBit", osBit.toString()); } } public Integer getMinMemory() { return this.minMemory; } public void setMinMemory(Integer minMemory) { this.minMemory = minMemory; if(minMemory != null){ putQueryParameter("MinMemory", minMemory.toString()); } } public String getAuditParamStr() { return this.auditParamStr; } public void setAuditParamStr(String auditParamStr) { this.auditParamStr = auditParamStr; if(auditParamStr != null){ putQueryParameter("AuditParamStr", auditParamStr); } } @Override public Class<OpsModifyOsTypeResponse> getResponseClass() { return OpsModifyOsTypeResponse.class; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
bdc0b952dc0b9625dc4d70e08dce3555b4bde8da
425888a80686bb31f64e0956718d81efef5f208c
/src/test/java/com/aol/cyclops/react/lazy/futures/AccessTest.java
1af5f28cc3a86a39af283456358f2f250b593ca3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cybernetics/cyclops-react
ca34140519abfbe76750131f39133d31ba6770f2
f785d9bbe773acee5b07b602c0476dd58e19ef19
refs/heads/master
2021-01-22T13:08:10.590701
2016-04-22T12:41:13
2016-04-22T12:41:13
56,901,547
1
0
null
2016-04-23T05:07:15
2016-04-23T05:07:15
null
UTF-8
Java
false
false
1,046
java
package com.aol.cyclops.react.lazy.futures; import static org.hamcrest.Matchers.equalTo; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import org.junit.Test; import com.aol.cyclops.types.futurestream.LazyFutureStream; public class AccessTest { @Test public void get0(){ assertThat(LazyFutureStream.of(1).actOnFutures().get(0).v1,equalTo(1)); } @Test public void getMultple(){ assertThat(LazyFutureStream.of(1,2,3,4,5).actOnFutures().get(2).v1,equalTo(3)); } @Test public void elementAt0(){ assertTrue(LazyFutureStream.of(1).actOnFutures().elementAt(0).isPresent()); } @Test public void elementAtMultple(){ assertThat(LazyFutureStream.of(1,2,3,4,5).actOnFutures().elementAt(2).get(),equalTo(3)); } @Test public void elementAt1(){ assertFalse(LazyFutureStream.of(1).actOnFutures().elementAt(1).isPresent()); } @Test public void elementAtEmpty(){ assertFalse(LazyFutureStream.of().actOnFutures().elementAt(0).isPresent()); } }
[ "john.mcclean@teamaol.com" ]
john.mcclean@teamaol.com
7d6cbc4952677ac984cc08c806fb6e0f13a833aa
0af8b92686a58eb0b64e319b22411432aca7a8f3
/large-multiproject/project49/src/test/java/org/gradle/test/performance49_2/Test49_169.java
6d23895f22ebec8a711f7df4f4a7277d57069e4e
[]
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.performance49_2; import static org.junit.Assert.*; public class Test49_169 { private final Production49_169 production = new Production49_169("value"); @org.junit.Test public void test() { assertEquals(production.getProperty(), "value"); } }
[ "cedric.champeau@gmail.com" ]
cedric.champeau@gmail.com
62112817277069362f428d429c53275b8bb956d7
3f38441c63a0594a7fde9bc410d938034f44c01a
/src/main/java/ni/org/ics/estudios/movil/controller/covid19/CandidatoTransmisionCovid19Controller.java
13091074feef724520b03c7e403bb32fafe8de30
[]
no_license
msalinasicsni/estudios-ics
08362aa7aeaf1c8b72cd9981820ebb3afc39f5c5
18bf52c68bfc5ddcf92a8b6c119744328b4cf415
refs/heads/master
2022-12-24T06:53:24.073574
2022-12-19T17:06:22
2022-12-19T17:06:22
187,891,317
0
1
null
2019-05-21T18:18:42
2019-05-21T18:18:41
null
UTF-8
Java
false
false
2,916
java
package ni.org.ics.estudios.movil.controller.covid19; import ni.org.ics.estudios.domain.covid19.CandidatoTransmisionCovid19; import ni.org.ics.estudios.domain.covid19.OtrosPositivosCovid; import ni.org.ics.estudios.service.covid.CovidService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import javax.annotation.Resource; import java.util.Arrays; import java.util.List; /** * Created by miguel on 17/6/2020. */ @Controller @RequestMapping("/movil/*") public class CandidatoTransmisionCovid19Controller { private static final Logger logger = LoggerFactory.getLogger(CasoCovid19Controller.class); @Resource(name = "CovidService") private CovidService covidService; @RequestMapping(value = "candidatosTCovid19", method = RequestMethod.GET, produces = "application/json") public @ResponseBody List<CandidatoTransmisionCovid19> getCasasCasosCovid19(){ logger.info("Descargando toda la informacion de Candidatos estudio Transmision Covid19"); List<CandidatoTransmisionCovid19> pendientesTransmisionCovid19 = covidService.getCandidatosPendientesTransmisionCovid19(); if (pendientesTransmisionCovid19 == null){ logger.debug("Nulo"); } return pendientesTransmisionCovid19; } @RequestMapping(value = "candidatosTCovid19", method = RequestMethod.POST, consumes = "application/json") public @ResponseBody String saveCasasCasosCovid19(@RequestBody CandidatoTransmisionCovid19[] objetos){ logger.debug("Insertando/Actualizando Candidatos estudio Transmision Covid19"); if (objetos == null){ logger.debug("Nulo"); return "No recibi nada!"; }else{ List<CandidatoTransmisionCovid19> candidatoTransmisionCovid19List = Arrays.asList(objetos); for(CandidatoTransmisionCovid19 candidatoTransmisionCovid19 : candidatoTransmisionCovid19List) { covidService.saveOrUpdateCandidatoTransmisionCovid19(candidatoTransmisionCovid19); } } return "Datos recibidos!"; } @RequestMapping(value = "otrosPositivosCovid19", method = RequestMethod.GET, produces = "application/json") public @ResponseBody List<OtrosPositivosCovid> getOtrosPositivos(){ logger.info("Descargando toda la informacion de otros positivos estudio Transmision Covid19"); List<OtrosPositivosCovid> otrosPositivosCovidList = covidService.getOtrosPositivosPendientesTransmisionCovid19(); if (otrosPositivosCovidList == null){ logger.debug("Nulo"); } return otrosPositivosCovidList; } }
[ "msalinas@icsnicaragua.org" ]
msalinas@icsnicaragua.org
30d4ac63d01299536f2186b1a067136c74adfaae
bead5c9388e0d70156a08dfe86d48f52cb245502
/MyNotes/JDK_8/chapter_6/c_6_2/c_6_2_4/M1.java
504903b254bddd134dc50c4eba40f0e14fde52c9
[]
no_license
LinZiYU1996/Learning-Java
bd96e2af798c09bc52a56bf21e13f5763bb7a63d
a0d9f538c9d373c3a93ccd890006ce0e5e1f2d5d
refs/heads/master
2020-11-28T22:22:56.135760
2020-05-03T01:24:57
2020-05-03T01:24:57
229,930,586
0
0
null
null
null
null
UTF-8
Java
false
false
685
java
package JDK_8.chapter_6.c_6_2.c_6_2_4; import JDK_8.chapter_4.commondata.Data; import JDK_8.chapter_4.commondata.Dish; import java.util.List; import static java.util.stream.Collectors.*; /** * \* Created with IntelliJ IDEA. * \* User: LinZiYu * \* Date: 2020/1/26 * \* Time: 22:17 * \* Description: * \ */ public class M1 { public static void main(String[] args) { List<Dish> menu = Data.create(); int totalCalories = menu.stream() .collect(reducing( 0, Dish::getCalories, (i,j) -> i + j )); System.out.println(totalCalories); } }
[ "2669093302@qq.com" ]
2669093302@qq.com
f32da236be1fed15ffb8ca5fa44c8c344dcf1b05
86fa67369e29c0086601fad2d5502322f539a321
/subprojects/kernel/doovos-kernel-core/src/org/doovos/kernel/core/io/stream/KPipeStreamImpl.java
d70515791eae64f2b497608f9dcfc00d12cc424f
[]
no_license
thevpc/doovos
05a4ce98825bf3dbbdc7972c43cd15fc18afdabb
1ae822549a3a546381dbf3b722814e0be1002b11
refs/heads/master
2021-01-12T14:56:52.283641
2020-08-22T12:37:40
2020-08-22T12:37:40
72,081,680
1
0
null
null
null
null
UTF-8
Java
false
false
5,277
java
/** * ==================================================================== * Doovos (Distributed Object Oriented Operating System) * * Doovos is a new Open Source Distributed Object Oriented Operating System * Design and implementation based on the Java Platform. * Actually, it is a try for designing a distributed operation system in * top of existing centralized/network OS. * Designed OS will follow the object oriented architecture for redefining * all OS resources (memory,process,file system,device,...etc.) in a highly * distributed context. * Doovos is also a distributed Java virtual machine that implements JVM * specification on top the distributed resources context. * * Doovos Kernel is the heart of Doovos OS. It implements also the Doovos JVM * Doovos Kernel code is executed on host JVM * * Copyright (C) 2008-2010 Taha BEN SALAH * * 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 2 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, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ==================================================================== */ package org.doovos.kernel.core.io.stream; import org.doovos.kernel.api.memory.KMemorySegment; import org.doovos.kernel.api.filesystem.Attributes; import org.doovos.kernel.api.Doovos; import org.doovos.kernel.api.DoovosConstants; import org.doovos.kernel.api.filesystem.KResourceType; import org.doovos.kernel.api.io.stream.KInputStream; import org.doovos.kernel.api.io.stream.KOutputStream; import org.doovos.kernel.api.io.stream.KLocalPipeStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.rmi.RemoteException; import org.doovos.kernel.api.filesystem.KResource; import org.doovos.kernel.core.filesystem.KPrefixedPathRuntimeResourceImpl; /** * @author vpc (taha.bensalah@gmail.com) * @lastmodified 11-dec.-2005 * Time: 14:54:46 */ public class KPipeStreamImpl extends KPrefixedPathRuntimeResourceImpl implements KLocalPipeStream { private String in; private String out; public KPipeStreamImpl(String in, String out) throws RemoteException { super(KResourceType.PIPE, true,DoovosConstants.STREAM_PATH, DoovosConstants.STREAM_PIPE_PREFIX, null); this.out = out; this.in = in; } public KInputStream getDInputStream() throws RemoteException { return (KInputStream) Doovos.getSystem().getFileSystemManager().getResource(in); } public KOutputStream getDOutputStream() throws RemoteException { return (KOutputStream) Doovos.getSystem().getFileSystemManager().getResource(out); } public InputStream getInputStream() throws RemoteException { return getDInputStream().getInputStream(); } public int read() throws IOException { return getDInputStream().read(); } public byte[] read(int len) throws IOException { return getDInputStream().read(len); } public int available() throws IOException { return getDInputStream().available(); } public OutputStream getOutputStream() throws RemoteException { return getDOutputStream().getOutputStream(); } public void writeln(String message) throws RemoteException { getDOutputStream().writeln(message); } public void write(String message) throws RemoteException { getDOutputStream().write(message); } public void writeln(String message, Attributes attributes) throws RemoteException { getDOutputStream().writeln(message, attributes); } public void write(String message, Attributes attributes) throws RemoteException { getDOutputStream().write(message, attributes); } public void write(int b) throws IOException { getDOutputStream().write(b); } public void write(byte b[], int off, int len) throws IOException { getDOutputStream().write(b, off, len); } public void write(Object message) throws RemoteException { getDOutputStream().write(message); } public void write(Object message, Attributes attributes) throws RemoteException { getDOutputStream().write(message, attributes); } public void writeln(Object message, Attributes attributes) throws RemoteException { getDOutputStream().writeln(message, attributes); } public void writeln(Object message) throws RemoteException { getDOutputStream().writeln(message); } public int skip(long n) throws IOException { return 0; } public int read(KMemorySegment segment, long byteArrayPointer, int byteArrayOffset, int len) throws IOException { throw new UnsupportedOperationException("Not supported yet."); } }
[ "taha.bensalah@gmail.com" ]
taha.bensalah@gmail.com
62b2c9fa9529008af50735749cdfbedc3089421b
4c304a7a7aa8671d7d1b9353acf488fdd5008380
/src/main/java/com/alipay/api/response/KoubeiContentContentstatusModifyResponse.java
cbe44253a6648a59a5653794ea1b7e856291f7b3
[ "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
995
java
package com.alipay.api.response; import java.util.List; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; import com.alipay.api.AlipayResponse; /** * ALIPAY API: koubei.content.contentstatus.modify response. * * @author auto create * @since 1.0, 2019-03-15 10:30:02 */ public class KoubeiContentContentstatusModifyResponse extends AlipayResponse { private static final long serialVersionUID = 8874795162981983969L; /** * 口碑内容的唯一id */ @ApiListField("data") @ApiField("string") private List<String> data; /** * 全链路唯一id,由服务系统提供 */ @ApiField("trace_id") private String traceId; public void setData(List<String> data) { this.data = data; } public List<String> getData( ) { return this.data; } public void setTraceId(String traceId) { this.traceId = traceId; } public String getTraceId( ) { return this.traceId; } }
[ "ben.zy@antfin.com" ]
ben.zy@antfin.com
ebbb8c970d21491f295ff6efa5ce12aa8d62fd09
cd48551346edeef17d95527f1acd78bb3d4c47f3
/src/main/java/tszielin/qlab/action/project/AddFileAction.java
df8f046273eb04d783361315f22e2e7946ea2214
[ "Apache-2.0" ]
permissive
tszielin/q-lab-editor
56c387f5a8f2437857813754b1e17fcc9ecd4411
eaf1baa4373d8ee476c0b8cfbc30c54fe0afbd46
refs/heads/master
2021-01-10T02:23:49.816445
2016-03-02T16:56:10
2016-03-02T16:56:10
52,768,617
1
0
null
null
null
null
UTF-8
Java
false
false
3,841
java
package tszielin.qlab.action.project; import java.awt.event.ActionEvent; import java.io.File; import java.util.List; import javax.swing.JFileChooser; import javax.swing.JOptionPane; import javax.swing.JTree; import javax.swing.KeyStroke; import javax.swing.SwingUtilities; import javax.swing.event.TreeModelEvent; import javax.swing.filechooser.FileFilter; import javax.swing.tree.TreePath; import tszielin.qlab.action.editor.OpenFileAction; import tszielin.qlab.component.pane.ConsolesTabbedPane; import tszielin.qlab.component.pane.EditorsTabbedPane; import tszielin.qlab.component.tree.item.FileProject; import tszielin.qlab.component.tree.model.FileTreeModel; import tszielin.qlab.error.ArgumentException; import tszielin.qlab.util.error.ConfigException; import tszielin.qlab.util.image.IconsItem; public class AddFileAction extends ProjectAction { private static final long serialVersionUID = -3889543907855433539L; private EditorsTabbedPane tabEditors; private ConsolesTabbedPane tabConsoles; public AddFileAction(JTree tree, EditorsTabbedPane tabEditors, ConsolesTabbedPane tabConsoles) throws ConfigException, ArgumentException { super(tree, "New...", 'N', IconsItem.ICON_FILE_NEW, KeyStroke.getKeyStroke("control shift N"), "New file", "Create new file"); this.tabConsoles = tabConsoles; this.tabEditors = tabEditors; } public void actionPerformed(ActionEvent event) { List<String> extensions = getConfig().getExtensions(); if (getTree() != null && getTree().getModel() instanceof FileTreeModel && extensions != null && !extensions.isEmpty()) { TreePath[] paths = getTree().getSelectionPaths(); if (paths == null || paths.length != 1) { return; } TreePath parent = getParent(paths[0]); if (parent == null || !(parent.getLastPathComponent() instanceof FileProject)) { return; } JFileChooser chooser = new JFileChooser(); chooser.setDialogTitle("Open new file..."); chooser.setFileHidingEnabled(true); chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); for (String extension : extensions) { final String ext = extension; chooser.addChoosableFileFilter(new FileFilter() { public boolean accept(File file) { return file.isDirectory() || file.getName().toLowerCase().endsWith("." + ext); } public String getDescription() { return "*." + ext; } }); } chooser.setAcceptAllFileFilterUsed(false); for (FileFilter fileFilter : chooser.getChoosableFileFilters()) { if (fileFilter.getDescription().equals("*.q")) { chooser.setFileFilter(fileFilter); } } chooser.setCurrentDirectory((((File)paths[0].getLastPathComponent()).isDirectory() ? (File)paths[0].getLastPathComponent() : (File)parent.getLastPathComponent())); if (chooser.showOpenDialog(SwingUtilities.windowForComponent(getTree())) == JFileChooser.APPROVE_OPTION) { FileFilter fileFilter = chooser.getFileFilter(); File file = chooser.getSelectedFile(); if (file.getName().lastIndexOf(".") == -1) { file = new File(file.getParent(), file.getName() + fileFilter.getDescription().substring(fileFilter.getDescription().lastIndexOf('.'))); } try { file.createNewFile(); ((FileTreeModel)getTree().getModel()).fireTreeStructureChanged(new TreeModelEvent(this, parent)); getTree().repaint(); new OpenFileAction(tabEditors, tabConsoles).initDocument(file.getPath()); } catch (Exception ex) { JOptionPane.showMessageDialog(getWindow(), ex.getMessage(), "New file error", JOptionPane.ERROR_MESSAGE); } } } } }
[ "thomas.zielinski@cognizant.com" ]
thomas.zielinski@cognizant.com
8e4c66e8b38a503bad67678daa3711f75e3b9594
cd8843d24154202f92eaf7d6986d05a7266dea05
/saaf-base-5.0/2001_saaf-plm-model/src/main/java/com/sie/watsons/base/api/ConfigModel.java
8e2a5ce88fb55eb88e1a98edef1d803fa9e1b82f
[]
no_license
lingxiaoti/tta_system
fbc46c7efc4d408b08b0ebb58b55d2ad1450438f
b475293644bfabba9aeecfc5bd6353a87e8663eb
refs/heads/master
2023-03-02T04:24:42.081665
2021-02-07T06:48:02
2021-02-07T06:48:02
336,717,227
0
0
null
null
null
null
UTF-8
Java
false
false
5,428
java
package com.sie.watsons.base.api; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.PropertySource; import org.springframework.stereotype.Component; /** * API接口路径配置文件 */ @Component @ConfigurationProperties(prefix = "sc", ignoreInvalidFields = true) @PropertySource(value = {"classpath:com/sie/saaf/app/config/qcs_config.properties"}, ignoreResourceNotFound = true, encoding = "UTF-8") public class ConfigModel { private String addItemUrl; private String updateUdaMethodUrl; private String updatePriceChangeMethodUrl; private String updateCostChangeMethodUrl; private String updateItemPropertyReturnsUrl; private String udaAttributeSynUrl; private String depClasCodeUrl; private String siteListingUrl; private String commodityPriceAreaUrl; private String locDesc; //RMS上传服务器 private String host; private String user; private String possword; private String path; private String open; //药品上传服务器 private String host2; private String user2; private String possword2; private String path2; private String open2; private String bpmUrl; //bpm地址 private String updateItem; private String updateUDA; private String updateSupp; private String plmServer; public String getPlmServer() { return plmServer; } public void setPlmServer(String plmServer) { this.plmServer = plmServer; } public String getBpmUrl() { return bpmUrl; } public void setBpmUrl(String bpmUrl) { this.bpmUrl = bpmUrl; } public String getHost() {return host;} public void setHost(String host) {this.host = host;} public String getUser() {return user;} public void setUser(String user) {this.user = user;} public String getPossword() {return possword;} public void setPossword(String possword) {this.possword = possword;} public String getPath() {return path;} public void setPath(String path) {this.path = path;} public String getOpen() {return open;} public void setOpen(String open) {this.open = open;} public String getHost2() {return host2;} public void setHost2(String host2) {this.host2 = host2;} public String getUser2() {return user2;} public void setUser2(String user2) {this.user2 = user2;} public String getPossword2() {return possword2;} public void setPossword2(String possword2) {this.possword2 = possword2;} public String getPath2() {return path2;} public void setPath2(String path2) {this.path2 = path2;} public String getOpen2() {return open2;} public void setOpen2(String open2) {this.open2 = open2;} public String getCommodityPriceAreaUrl() { return commodityPriceAreaUrl; } public void setCommodityPriceAreaUrl(String commodityPriceAreaUrl) { this.commodityPriceAreaUrl = commodityPriceAreaUrl; } public String getSiteListingUrl() { return siteListingUrl; } public void setSiteListingUrl(String siteListingUrl) { this.siteListingUrl = siteListingUrl; } public String getDepClasCodeUrl() { return depClasCodeUrl; } public void setDepClasCodeUrl(String depClasCodeUrl) { this.depClasCodeUrl = depClasCodeUrl; } public String getUdaAttributeSynUrl() { return udaAttributeSynUrl; } public void setUdaAttributeSynUrl(String udaAttributeSynUrl) { this.udaAttributeSynUrl = udaAttributeSynUrl; } public String getUpdateItemPropertyReturnsUrl() { return updateItemPropertyReturnsUrl; } public void setUpdateItemPropertyReturnsUrl( String updateItemPropertyReturnsUrl) { this.updateItemPropertyReturnsUrl = updateItemPropertyReturnsUrl; } public String getUpdateCostChangeMethodUrl() { return updateCostChangeMethodUrl; } public void setUpdateCostChangeMethodUrl(String updateCostChangeMethodUrl) { this.updateCostChangeMethodUrl = updateCostChangeMethodUrl; } public String getUpdatePriceChangeMethodUrl() { return updatePriceChangeMethodUrl; } public void setUpdatePriceChangeMethodUrl(String updatePriceChangeMethodUrl) { this.updatePriceChangeMethodUrl = updatePriceChangeMethodUrl; } public String getUpdateUdaMethodUrl() { return updateUdaMethodUrl; } public void setUpdateUdaMethodUrl(String updateUdaMethodUrl) { this.updateUdaMethodUrl = updateUdaMethodUrl; } public String getAddItemUrl() { return addItemUrl; } public void setAddItemUrl(String addItemUrl) { this.addItemUrl = addItemUrl; } public String getLocDesc() { return locDesc; } public void setLocDesc(String locDesc) { this.locDesc = locDesc; } public String getUpdateItem() { return updateItem; } public void setUpdateItem(String updateItem) { this.updateItem = updateItem; } public String getUpdateUDA() { return updateUDA; } public void setUpdateUDA(String updateUDA) { this.updateUDA = updateUDA; } public String getUpdateSupp() { return updateSupp; } public void setUpdateSupp(String updateSupp) { this.updateSupp = updateSupp; } }
[ "huang491591@qq.com" ]
huang491591@qq.com
2500b5ffe2dc4b4f6f445880bfedf94244d6d537
4c80c75f0e61119831dda3eee55d4026947db264
/assets/src/com/example/android/apis4_4/graphics/spritetext/Projector.java
3087c7c33752c7601ffad07151d4707d5bc3542e
[]
no_license
weijunfeng/ApiDemos-4.4
882df5eba07547913b49fa060970400a3f4dfe36
b8f8558febb78ee92d29817629b10537fb9d8ac1
refs/heads/master
2021-01-17T16:04:21.014503
2017-02-26T09:35:44
2017-02-26T09:35:44
58,100,325
0
0
null
null
null
null
UTF-8
Java
false
false
2,433
java
/* * Copyright (C) 2007 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.example.android.apis4_4.graphics.spritetext; import android.opengl.Matrix; import javax.microedition.khronos.opengles.GL10; /** * A utility that projects * */ class Projector { public Projector() { mMVP = new float[16]; mV = new float[4]; mGrabber = new MatrixGrabber(); } public void setCurrentView(int x, int y, int width, int height) { mX = x; mY = y; mViewWidth = width; mViewHeight = height; } public void project(float[] obj, int objOffset, float[] win, int winOffset) { if (!mMVPComputed) { Matrix.multiplyMM(mMVP, 0, mGrabber.mProjection, 0, mGrabber.mModelView, 0); mMVPComputed = true; } Matrix.multiplyMV(mV, 0, mMVP, 0, obj, objOffset); float rw = 1.0f / mV[3]; win[winOffset] = mX + mViewWidth * (mV[0] * rw + 1.0f) * 0.5f; win[winOffset + 1] = mY + mViewHeight * (mV[1] * rw + 1.0f) * 0.5f; win[winOffset + 2] = (mV[2] * rw + 1.0f) * 0.5f; } /** * Get the current projection matrix. Has the side-effect of * setting current matrix mode to GL_PROJECTION * @param gl */ public void getCurrentProjection(GL10 gl) { mGrabber.getCurrentProjection(gl); mMVPComputed = false; } /** * Get the current model view matrix. Has the side-effect of * setting current matrix mode to GL_MODELVIEW * @param gl */ public void getCurrentModelView(GL10 gl) { mGrabber.getCurrentModelView(gl); mMVPComputed = false; } private MatrixGrabber mGrabber; private boolean mMVPComputed; private float[] mMVP; private float[] mV; private int mX; private int mY; private int mViewWidth; private int mViewHeight; }
[ "891130789@qq.com" ]
891130789@qq.com
59628fa135d3e37d484585c9a7adcc67b17c3c71
97e1647d7e9eb807e23ed15bff63f842c1e47608
/easymis-crm-standard/easymis-crm-standard-client/src/main/java/org/easymis/crm/standard/client/HrmStaffInfoService.java
c2aec2b389757b6f0b24328a88492f222a544c21
[]
no_license
tanyujie/easymis-crm
8a5065af32039385df566b646ddf11a0a468fe8b
92e104abf86d21c7a7083d4336b7648c0bb76a41
refs/heads/master
2020-05-26T22:46:10.263385
2019-05-31T03:01:12
2019-05-31T03:01:12
188,403,139
0
1
null
null
null
null
UTF-8
Java
false
false
921
java
package org.easymis.crm.standard.client; import org.easymis.crm.standard.object.HrmStaffInfoQo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.RequestParam; import com.google.gson.Gson; import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand; @Service public class HrmStaffInfoService { @Autowired private HrmStaffInfoClient staffClient; @HystrixCommand(fallbackMethod = "findByMemberAndOrganizeFallback") public HrmStaffInfoQo findByMemberAndOrganize(String memberId, String orgId) { String json = staffClient.findByMemberAndOrganize(memberId, orgId); HrmStaffInfoQo staffInfo = new Gson().fromJson(json, HrmStaffInfoQo.class); return staffInfo; } private String findByMemberAndOrganizeFallback(String username, String password) { return null; } }
[ "13551259347@139.com" ]
13551259347@139.com
32f59a416e3fd09fc617f498326a6003a3e79df8
b1c43a10dde95741aef29f62dcc6637e12ba48db
/EpamLabs/finalTask/src/main/java/com/kozitski/pufar/validation/annotation/comment/CommentValid.java
46e985ea6c86da53dbb251c028a31567d91faeb1
[]
no_license
KonecKonca/javaProjects
d29701bfd5b5487e193a7c2542b9c47a06a2219f
2a57cfc4f8142b6dd44ccd591c4b45cbf54103a9
refs/heads/master
2020-03-30T06:57:31.378408
2019-02-08T20:45:27
2019-02-08T20:46:08
150,903,011
0
1
null
null
null
null
UTF-8
Java
false
false
704
java
package com.kozitski.pufar.validation.annotation.comment; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface CommentValid { long maxId() default CommentValidationParameter.MAX_ID; int minMessageSize() default CommentValidationParameter.MIN_MESSAGE_SIZE; int maxMessageSize() default CommentValidationParameter.MAX_MESSAGE_SIZE; String stringPattern() default CommentValidationParameter.STRING_FIELD_PATTERN; String xssPattern() default CommentValidationParameter.XSS_PATTERN; }
[ "andrei.kozitsky@mail.ru" ]
andrei.kozitsky@mail.ru
dba018b98841278281cbeb1d86d8f41add06ab4d
f74dda34e6cc6927eda15e1720db189cd6345fc1
/src/main/java/week14/d03/midlevel/Student.java
2a2a8c369556a222201079b7e118b3acbb11df98
[]
no_license
Chris781231/training-solutions
fdd350587651c630b7ccdf9f9e0e4e687bcf4dfc
2318868503c2d2e01e45723cb66ee29ef6130e28
refs/heads/master
2023-04-25T04:30:07.158038
2021-05-20T10:53:42
2021-05-20T10:53:42
308,551,398
1
0
null
null
null
null
UTF-8
Java
false
false
1,355
java
package week14.d03.midlevel; import java.util.ArrayList; import java.util.EnumMap; import java.util.List; import java.util.Map; public class Student implements Comparable<Student> { private final String name; private final Map<Subject, List<Integer>> grades = new EnumMap<>(Subject.class); public Student(String name) { this.name = name; } public static void main(String[] args) { Student student = new Student("Jakab"); student.addGrade(Subject.MATEMATIKA, 5); student.addGrade(Subject.IRODALOM, 2); student.addGrade(Subject.MATEMATIKA, 4); System.out.println(student.getGrades()); } public void addGrade(Subject subject, int grade) { List<Integer> gradeOfSubject; if (!grades.containsKey(subject)) { gradeOfSubject = new ArrayList<>(); } else { gradeOfSubject = grades.get(subject); } gradeOfSubject.add(grade); grades.put(subject,gradeOfSubject); } public String getName() { return name; } public Map<Subject, List<Integer>> getGrades() { return new EnumMap<>(grades); } @Override public String toString() { return name + " " + grades; } @Override public int compareTo(Student o) { return name.compareTo(o.name); } }
[ "ligeti.karoly78@gmail.com" ]
ligeti.karoly78@gmail.com
65c8bad2cbb6755d55e747d0da47fe66109a85e8
50313190a25e7fe65fa4be9b78e1c655d28bb0d6
/examples/org.eclipse.wazaabi.engine.swt.snippets/src/org/eclipse/wazaabi/engine/swt/snippets/CircularTwoWaysBindingToContextObject.java
6ee3240158b9c6eb5a6fae3c94e3bc34693c7a81
[]
no_license
isabella232/wazaabi
9fbf7a35bdee6d3871d7e42bced66d32ac0d39c4
88ea8973a5520a9ebab94b75a192889390df5355
refs/heads/master
2023-03-26T20:41:17.339903
2013-07-04T22:06:32
2013-07-04T22:06:32
352,057,534
0
0
null
2021-03-27T11:39:17
2021-03-27T11:38:33
null
UTF-8
Java
false
false
6,423
java
/******************************************************************************* * Copyright (c) 2008 Olivier Moises * * 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: * Olivier Moises- initial API and implementation *******************************************************************************/ package org.eclipse.wazaabi.engine.swt.snippets; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.common.notify.impl.AdapterImpl; import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EcoreFactory; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; import org.eclipse.wazaabi.engine.swt.nonosgi.SWTHelper; import org.eclipse.wazaabi.engine.swt.viewers.SWTControlViewer; import org.eclipse.wazaabi.locationpaths.nonosgi.LocationPathsHelper; import org.eclipse.wazaabi.locator.urn.java.nonosgi.URNJavaLocatorHelper; import org.eclipse.wazaabi.mm.core.styles.StringRule; import org.eclipse.wazaabi.mm.core.widgets.Container; import org.eclipse.wazaabi.mm.core.widgets.CoreWidgetsFactory; import org.eclipse.wazaabi.mm.core.widgets.PushButton; import org.eclipse.wazaabi.mm.core.widgets.TextComponent; import org.eclipse.wazaabi.mm.edp.events.EDPEventsFactory; import org.eclipse.wazaabi.mm.edp.events.Event; import org.eclipse.wazaabi.mm.edp.events.PropertyChangedEvent; import org.eclipse.wazaabi.mm.edp.handlers.Action; import org.eclipse.wazaabi.mm.edp.handlers.Binding; import org.eclipse.wazaabi.mm.edp.handlers.EDPHandlersFactory; import org.eclipse.wazaabi.mm.edp.handlers.EventHandler; import org.eclipse.wazaabi.mm.edp.handlers.StringParameter; import org.eclipse.wazaabi.mm.swt.styles.RowLayoutRule; import org.eclipse.wazaabi.mm.swt.styles.SWTStylesFactory; public class CircularTwoWaysBindingToContextObject { public static void main(String[] args) { // create the shell Display display = new Display(); Shell mainShell = new Shell(display, SWT.SHELL_TRIM); mainShell.setLayout(new FillLayout()); mainShell.setSize(300, 300); // create the viewer SWTControlViewer viewer = new SWTControlViewer(mainShell); // initialize SWT Engine in standalone mode SWTHelper.init(viewer); // initialize the 'urn:java' resolver URNJavaLocatorHelper.init(viewer); // initialize the locationPaths processor LocationPathsHelper.init(viewer); // create a container and set its layout Container container = CoreWidgetsFactory.eINSTANCE.createContainer(); RowLayoutRule layoutRule = SWTStylesFactory.eINSTANCE .createRowLayoutRule(); layoutRule.setPropertyName("layout"); container.getStyleRules().add(layoutRule); // create two TextComponents TextComponent text1 = CoreWidgetsFactory.eINSTANCE .createTextComponent(); text1.setText("value ...."); TextComponent text2 = CoreWidgetsFactory.eINSTANCE .createTextComponent(); text2.setText("...."); PushButton button = CoreWidgetsFactory.eINSTANCE.createPushButton(); StringRule textRule = org.eclipse.wazaabi.mm.core.styles.CoreStylesFactory.eINSTANCE .createStringRule(); textRule.setPropertyName("text");//$NON-NLS-1$ textRule.setValue("Change context...");//$NON-NLS-1$ button.getStyleRules().add(textRule); EventHandler eventHandler = EDPHandlersFactory.eINSTANCE.createEventHandler(); button.getHandlers().add(eventHandler); Action action = EDPHandlersFactory.eINSTANCE.createAction(); action.setUri("urn:java:org.eclipse.wazaabi.engine.swt.snippets.handlers.TwoWaysBindingToContextObjectAction"); eventHandler.getExecutables().add(action); Event selectionEvent = EDPEventsFactory.eINSTANCE.createEvent(); eventHandler.getEvents().add(selectionEvent); selectionEvent.setId("core:ui:selection"); final EAttribute attr = EcoreFactory.eINSTANCE.createEAttribute(); attr.setName("hello"); container.set("contextObject", attr); attr.eAdapters().add(new AdapterImpl() { @Override public void notifyChanged(Notification msg) { if (msg.getFeature() instanceof EAttribute && "name".equals(((EAttribute) msg.getFeature()) .getName())) System.out.println("name changed " + attr.getName()); } }); // append textComponents to container's children list. container.getChildren().add(text1); container.getChildren().add(text2); container.getChildren().add(button); Binding uiToDomainBinding = EDPHandlersFactory.eINSTANCE .createBinding(); StringParameter source = EDPHandlersFactory.eINSTANCE .createStringParameter(); StringParameter target = EDPHandlersFactory.eINSTANCE .createStringParameter(); source.setName("source"); source.setValue("@text"); target.setName("target"); target.setValue("$contextObject/@name"); uiToDomainBinding.getParameters().add(source); uiToDomainBinding.getParameters().add(target); PropertyChangedEvent propertyChangeEvent1 = EDPEventsFactory.eINSTANCE .createPropertyChangedEvent(); propertyChangeEvent1.setPath("@text"); uiToDomainBinding.getEvents().add(propertyChangeEvent1); text1.getHandlers().add(uiToDomainBinding); Binding domainToUiBinding = EDPHandlersFactory.eINSTANCE .createBinding(); source = EDPHandlersFactory.eINSTANCE.createStringParameter(); target = EDPHandlersFactory.eINSTANCE.createStringParameter(); source.setName("source"); source.setValue("$contextObject/@name"); target.setName("target"); target.setValue("@text"); domainToUiBinding.getParameters().add(source); domainToUiBinding.getParameters().add(target); PropertyChangedEvent propertyChangeEvent2 = EDPEventsFactory.eINSTANCE .createPropertyChangedEvent(); propertyChangeEvent2.setPath("$contextObject/@name"); domainToUiBinding.getEvents().add(propertyChangeEvent2); text1.getHandlers().add(domainToUiBinding); // Set the content viewer.setContents(container); mainShell.open(); while (!mainShell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }
[ "olivier@generic-concept.com" ]
olivier@generic-concept.com
6108d5ac5cc3bd801474a5804c2bae3ead641782
996dc8b8118defa369b8d3abfbd583790f3ac5c5
/Component-Annotation/src/main/java/com/spring/autowire/ComponentAnnotationApp.java
984e2003838c3eae5d5fa77b44587c39a171084b
[ "Apache-2.0" ]
permissive
david2999999/Spring-Framework-4
9d8dcece9805fb366ec6445582625ff50e891ffc
905a62840f20ad9e7631c295fc06250cc3ce551f
refs/heads/master
2021-04-06T06:08:06.277374
2019-05-17T23:58:10
2019-05-17T23:58:10
125,078,937
1
0
null
null
null
null
UTF-8
Java
false
false
702
java
package com.spring.autowire; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; import com.spring.domain.Organizaton; import com.spring.domain.promotion.TradeFair; public class ComponentAnnotationApp { public static void main(String[] args) { // create the application context (container) ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans-cp.xml"); TradeFair tradeFair = context.getBean("myFair", TradeFair.class); System.out.println(tradeFair.specialPromotionalString()); // close the application context (container) context.close(); } }
[ "djiang86@binghamton.edu" ]
djiang86@binghamton.edu
0ab83ca86ae37c910a7fb9229062896b3f01bbec
5c54f13b3f95905e2071b72ddaff89212a0888f6
/src/lesson03/ArrayExample3.java
2f81686c5928bd94ef71883eb34d6087bbba63a9
[]
no_license
BlagoyNikolov/JAVA
f000bcc723bcc90f2812264ab6d50b7d664f9ed6
147e4c684d1f009d53d51fb50ecac7d5232e0551
refs/heads/master
2016-09-01T06:16:11.730150
2016-03-28T18:54:36
2016-03-28T18:54:36
54,064,755
0
0
null
null
null
null
UTF-8
Java
false
false
898
java
package lesson03; import java.util.Scanner; public class ArrayExample3 { public static void main(String[] args) { System.out.println("Enter number of elements: "); Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int array[] = new int[n]; int i = 0; for (i = 0; i < array.length; i++) { System.out.println("Enter value of element " + (i + 1)); array[i] = sc.nextInt(); } for (i = 0; i < array.length; i++) { System.out.print(array[i] + " "); } int array2[] = new int[n]; for (i = 0; i < array.length; i++) { array2[i] = array[i]; } System.out.println(); System.out.println("Duplicate array:"); for (i = 0; i < array2.length; i++) { System.out.print(array2[i] + " "); } System.out.println(); System.out.println("Duplicate array inverted:"); for (i = array.length - 1; i >= 0; i--) { System.out.print(array2[i] + " "); } } }
[ "nikolovblagoy@gmail.com" ]
nikolovblagoy@gmail.com
5d9bc5eb0176a40dbebceba88e81fd6cee17ea20
24f6ad54ab9493cadc4716ab54e15681c717e961
/src/main/java/bieebox/gateway/portal/service/impl/UnitMeasureServiceImpl.java
d0fffe291059cb7a4062fc4dcff6d6de7b20c767
[]
no_license
thetlwinoo/gateway-portal
3618afeb7c01e15177725860757160fd2feb1f67
de31fc2097b077ac9b08ba1b100f131647f0d328
refs/heads/master
2020-05-02T11:42:47.942749
2019-03-29T10:03:52
2019-03-29T10:03:52
177,937,113
0
0
null
null
null
null
UTF-8
Java
false
false
2,764
java
package bieebox.gateway.portal.service.impl; import bieebox.gateway.portal.service.UnitMeasureService; import bieebox.gateway.portal.domain.UnitMeasure; import bieebox.gateway.portal.repository.UnitMeasureRepository; import bieebox.gateway.portal.service.dto.UnitMeasureDTO; import bieebox.gateway.portal.service.mapper.UnitMeasureMapper; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.LinkedList; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; /** * Service Implementation for managing UnitMeasure. */ @Service @Transactional public class UnitMeasureServiceImpl implements UnitMeasureService { private final Logger log = LoggerFactory.getLogger(UnitMeasureServiceImpl.class); private final UnitMeasureRepository unitMeasureRepository; private final UnitMeasureMapper unitMeasureMapper; public UnitMeasureServiceImpl(UnitMeasureRepository unitMeasureRepository, UnitMeasureMapper unitMeasureMapper) { this.unitMeasureRepository = unitMeasureRepository; this.unitMeasureMapper = unitMeasureMapper; } /** * Save a unitMeasure. * * @param unitMeasureDTO the entity to save * @return the persisted entity */ @Override public UnitMeasureDTO save(UnitMeasureDTO unitMeasureDTO) { log.debug("Request to save UnitMeasure : {}", unitMeasureDTO); UnitMeasure unitMeasure = unitMeasureMapper.toEntity(unitMeasureDTO); unitMeasure = unitMeasureRepository.save(unitMeasure); return unitMeasureMapper.toDto(unitMeasure); } /** * Get all the unitMeasures. * * @return the list of entities */ @Override @Transactional(readOnly = true) public List<UnitMeasureDTO> findAll() { log.debug("Request to get all UnitMeasures"); return unitMeasureRepository.findAll().stream() .map(unitMeasureMapper::toDto) .collect(Collectors.toCollection(LinkedList::new)); } /** * Get one unitMeasure by id. * * @param id the id of the entity * @return the entity */ @Override @Transactional(readOnly = true) public Optional<UnitMeasureDTO> findOne(Long id) { log.debug("Request to get UnitMeasure : {}", id); return unitMeasureRepository.findById(id) .map(unitMeasureMapper::toDto); } /** * Delete the unitMeasure by id. * * @param id the id of the entity */ @Override public void delete(Long id) { log.debug("Request to delete UnitMeasure : {}", id); unitMeasureRepository.deleteById(id); } }
[ "thetlwinoo85@yahoo.com" ]
thetlwinoo85@yahoo.com
f9ae0470a7abbe93972c4a562d5c06b4f059b34c
b3672b53c6f5ab9e7881d658ad5d3f5b2626b0d2
/osp/matrix/tool/src/java/org/theospi/portfolio/matrix/control/CellFormBean.java
70bd9e6b14fc8d36154d3645244378d70643245a
[]
no_license
sakai-mirror/ctools
e4aee1fe53efc631cb27de7f968172557457b758
6e6ddc05e0208a680e61299a42e3b374494239bc
refs/heads/master
2016-09-06T09:36:31.829901
2008-10-03T13:43:35
2008-10-03T13:43:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,313
java
/********************************************************************************** * $URL:https://source.sakaiproject.org/svn/osp/trunk/matrix/tool/src/java/org/theospi/portfolio/matrix/control/CellFormBean.java $ * $Id:CellFormBean.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $ *********************************************************************************** * * Copyright (c) 2005, 2006 The Sakai Foundation. * * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php * * 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.theospi.portfolio.matrix.control; import java.util.List; import org.theospi.portfolio.matrix.model.Cell; /** * @author chmaurer */ public class CellFormBean { private Cell cell; private List nodes; private List assignments; private String[] selectedArtifacts; /** * @return */ public List getNodes() { return nodes; } /** * @return */ public Cell getCell() { return cell; } /** * @param list */ public void setNodes(List list) { nodes = list; } /** * @param cell */ public void setCell(Cell cell) { this.cell = cell; } /** * @return Returns the selectedArtifacts. */ public String[] getSelectedArtifacts() { return selectedArtifacts; } /** * @param selectedArtifacts The selectedArtifacts to set. */ public void setSelectedArtifacts(String[] selectedArtifacts) { this.selectedArtifacts = selectedArtifacts; } /** * @param boolean */ public void setAssignments(List assignments) { this.assignments = assignments; } /** * @param cell */ public List getAssignments() { return assignments; } }
[ "botimer@umich.edu@66ffb92e-73f9-0310-93c1-f5514f145a0a" ]
botimer@umich.edu@66ffb92e-73f9-0310-93c1-f5514f145a0a
79b675af42e4255d0a42d1a49fd2a25269d195cf
3bf2d9c539f0211f20559d3fc43e5681f659b1ce
/app/src/main/java/com/jzbwlkj/hengyangdata/ui/fragment/ChangeAlonePwdFragment.java
e1522c8e4599d4d2b164cdf73a22eec0ededf557
[]
no_license
gaoyuan117/HengYangData
4da43380a54f400bc1b1e1c5138ec8360c87eb39
de2ddec4bc6937dffa14ce82a5ab5edf542fb4b4
refs/heads/master
2021-05-03T07:47:59.244176
2018-02-07T03:15:14
2018-02-07T03:15:14
120,556,405
0
0
null
null
null
null
UTF-8
Java
false
false
4,382
java
package com.jzbwlkj.hengyangdata.ui.fragment; import android.text.TextUtils; import android.text.method.HideReturnsTransformationMethod; import android.text.method.PasswordTransformationMethod; import android.view.View; import android.widget.EditText; import android.widget.ImageView; import android.widget.TextView; import com.jzbwlkj.hengyangdata.BaseApp; import com.jzbwlkj.hengyangdata.R; import com.jzbwlkj.hengyangdata.base.BaseFragment; import com.jzbwlkj.hengyangdata.retrofit.BaseObjObserver; import com.jzbwlkj.hengyangdata.retrofit.CommonBean; import com.jzbwlkj.hengyangdata.retrofit.HttpResult; import com.jzbwlkj.hengyangdata.retrofit.RetrofitClient; import com.jzbwlkj.hengyangdata.retrofit.RxUtils; import com.jzbwlkj.hengyangdata.utils.CommonApi; import com.jzbwlkj.hengyangdata.utils.ToastUtils; import org.greenrobot.eventbus.EventBus; import butterknife.BindView; import butterknife.OnClick; /** * Created by gaoyuan on 2018/1/11. */ public class ChangeAlonePwdFragment extends BaseFragment { @BindView(R.id.et_phone) EditText etPhone; @BindView(R.id.et_old_pwd) EditText etOldPwd; @BindView(R.id.et_new_pwd) EditText etNewPwd; @BindView(R.id.img_eye) ImageView imgEye; @BindView(R.id.et_yzm) EditText etYzm; @BindView(R.id.tv_yzm) TextView tvYzm; private String yzm; private boolean isOpen; private String phone; private String oldPwd; private String newPwd; @Override public int getLayoutResId() { return R.layout.fragment_change_alone_pwd; } @Override public void initView() { yzm = CommonApi.getNum(); tvYzm.setText(yzm); } @Override public void initDatas() { etPhone.setText(BaseApp.phone); } @Override public void configViews() { } @OnClick({R.id.img_eye, R.id.et_yzm, R.id.tv_yzm, R.id.tv_certain}) public void onViewClicked(View view) { switch (view.getId()) { case R.id.img_eye: isOpen = !isOpen; if (isOpen) { imgEye.setImageResource(R.mipmap.yanjingkai); etNewPwd.setTransformationMethod(HideReturnsTransformationMethod.getInstance()); } else { imgEye.setImageResource(R.mipmap.yanjingbi); etNewPwd.setTransformationMethod(PasswordTransformationMethod.getInstance()); } break; case R.id.et_yzm: break; case R.id.tv_yzm: yzm = CommonApi.getNum(); tvYzm.setText(yzm); break; case R.id.tv_certain: modifypwd(); break; } } /** * 修改独立密码 */ private void modifypwd() { phone = etPhone.getText().toString(); oldPwd = etOldPwd.getText().toString(); newPwd = etNewPwd.getText().toString(); if (TextUtils.isEmpty(phone)) { ToastUtils.showToast(getResources().getString(R.string.please_input_phone)); return; } if (TextUtils.isEmpty(oldPwd)) { ToastUtils.showToast(getResources().getString(R.string.please_input_old_pwd)); return; } if (TextUtils.isEmpty(newPwd)) { ToastUtils.showToast(getResources().getString(R.string.please_input_new_pwd)); return; } if (TextUtils.isEmpty(etYzm.getText().toString())) { ToastUtils.showToast(getResources().getString(R.string.please_input_yzm)); return; } if (newPwd.length()<6){ ToastUtils.showToast("独立密码长度为6位"); return; } if (!etYzm.getText().toString().equals(yzm.replaceAll(" ", ""))) { ToastUtils.showToast("验证码错误"); return; } RetrofitClient.getInstance().createApi().modifydulipwd(BaseApp.token,phone,oldPwd, newPwd) .compose(RxUtils.<HttpResult<CommonBean>>io_main()) .subscribe(new BaseObjObserver<CommonBean>(activity, "修改中") { @Override protected void onHandleSuccess(CommonBean commonBean) { EventBus.getDefault().post("change_alone"); } }); } }
[ "1179074755@qq.com" ]
1179074755@qq.com
4f48d6a9f35ffadf630930b11e22396f802c96c8
0839e8143e5ff71a970335802e84193eeaabd8ac
/requery/src/main/java/io/requery/query/element/HavingElement.java
c20cfd2b1986d0c857fb408cad95dd6b927e5f3c
[ "Apache-2.0" ]
permissive
yuechengzhishang/requery
ed79eb056eeca1584c6699e6472d4fcbe01117c3
ca413d20fe71e61ab5668e145f1e119265709569
refs/heads/master
2021-01-20T21:48:45.542188
2016-02-18T03:22:33
2016-02-18T03:22:33
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,278
java
/* * Copyright 2016 requery.io * * 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 io.requery.query.element; import io.requery.query.Expression; import io.requery.query.Offset; import io.requery.query.Return; import io.requery.util.Objects; import io.requery.query.Condition; import io.requery.query.HavingAndOr; import io.requery.query.Limit; import java.util.Set; /** * Having clause element. * * @param <E> result type */ public class HavingElement<E> implements HavingAndOr<E>, QueryWrapper<E>, LogicalElement { private final Set<HavingElement<E>> elements; private final QueryElement<E> query; private final LogicalOperator operator; private final Condition condition; public HavingElement(QueryElement<E> query, Set<HavingElement<E>> elements, Condition<?> condition, LogicalOperator operator) { this.elements = elements; this.query = query; this.condition = condition; this.operator = operator; } @Override public <V> HavingAndOr<E> and(Condition<V> condition) { HavingElement<E> w = new HavingElement<>(query, elements, condition, LogicalOperator.AND); elements.add(w); return w; } @Override public <V> HavingAndOr<E> or(Condition<V> condition) { HavingElement<E> w = new HavingElement<>(query, elements, condition, LogicalOperator.OR); elements.add(w); return w; } @Override public Condition<?> condition() { return condition; } @Override public LogicalOperator operator() { return operator; } @Override public Offset<E> limit(int limit) { return query.limit(limit); } @Override public E get() { return query.get(); } @Override public <V> Limit<E> orderBy(Expression<V> expression) { return query.orderBy(expression); } @Override public Limit<E> orderBy(Expression<?>... expressions) { return query.orderBy(expressions); } @Override public QueryElement<E> unwrapQuery() { return query; } @Override public boolean equals(Object obj) { if (obj instanceof HavingElement) { HavingElement other = (HavingElement) obj; return Objects.equals(operator, other.operator) && Objects.equals(condition, other.condition); } return false; } @Override public int hashCode() { return Objects.hash(operator, condition); } @Override public Return<E> as(String alias) { return query.as(alias); } @Override public String aliasName() { return query.aliasName(); } }
[ "npurushe@gmail.com" ]
npurushe@gmail.com
dcc2735cb338ee3d2f70832b030dfc7bc2326936
17c30fed606a8b1c8f07f3befbef6ccc78288299
/Mate10_8_1_0/src/main/java/android/telephony/HwCustSignalStrengthImpl.java
4704d8f819d8f4137c97880c9c5473a8e84e6c47
[]
no_license
EggUncle/HwFrameWorkSource
4e67f1b832a2f68f5eaae065c90215777b8633a7
162e751d0952ca13548f700aad987852b969a4ad
refs/heads/master
2020-04-06T14:29:22.781911
2018-11-09T05:05:03
2018-11-09T05:05:03
157,543,151
1
0
null
2018-11-14T12:08:01
2018-11-14T12:08:01
null
UTF-8
Java
false
false
716
java
package android.telephony; import android.os.SystemProperties; public class HwCustSignalStrengthImpl extends HwCustSignalStrength { private static final boolean IS_DOCOMO = SystemProperties.get("ro.product.custom", "NULL").contains("docomo"); public int getGsmSignalStrength(int mGsmSignalStrength) { if (IS_DOCOMO && mGsmSignalStrength == 0) { return 99; } return mGsmSignalStrength; } public int getGsmDbm(int mGsmSignalStrength) { if (!IS_DOCOMO) { return 0; } int asu = mGsmSignalStrength == 99 ? -1 : mGsmSignalStrength; if (asu != -1) { return (asu * 2) - 113; } return -1; } }
[ "lygforbs0@mail.com" ]
lygforbs0@mail.com
9f514b0f379a6d79c191597f986069181687f250
ab9bb4e8aa64898b5b082da38a2ac4ea3c8cef81
/source/java版/Design-pattern/src/com/design/fcp/FrontControllerPatternDemo.java
62af802fbf76d9fd06bd5950f69e37f18c3ef8d4
[]
no_license
PGzxc/DesignPattern
18010088a65623ce5bc511e71458d5d66faf101f
d3da783cf96e99daae337904fd20c63b66498ff6
refs/heads/master
2020-03-17T03:41:57.042579
2018-05-13T16:13:09
2018-05-13T16:13:09
133,246,770
0
0
null
null
null
null
UTF-8
Java
false
false
277
java
package com.design.fcp; public class FrontControllerPatternDemo { public static void main(String[] args) { FrontController frontController = new FrontController(); frontController.dispatchRequest("HOME"); frontController.dispatchRequest("STUDENT"); } }
[ "827489398@qq.com" ]
827489398@qq.com
881a52df6fa413b2dc3b0fda29e5be068ec9d861
bb6929a3365adeaf22dbc0c6590206a8ce608e7c
/Code/xsd/test/com/accela/adapter/model/function/CostFactors.java
e6ca20218672ba230c0196d57069b0a18244af5a
[]
no_license
accela-robinson/CERS
a33c7a58ae90d82f430fcb9188a7a32951c47d81
58624383e0cb9db8d2d70bc6134edca585610eba
refs/heads/master
2020-04-02T12:23:34.108097
2015-04-10T05:34:02
2015-04-10T05:34:02
30,371,654
2
1
null
2015-04-08T07:01:04
2015-02-05T18:39:49
Java
UTF-8
Java
false
false
2,228
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.12.04 at 06:33:27 PM CST // package com.accela.adapter.model.function; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for costFactors complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="costFactors"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="costFactors" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "costFactors", propOrder = { "costFactors" }) public class CostFactors { @XmlElement(nillable = true) protected List<Object> costFactors; /** * Gets the value of the costFactors property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is why there is not a <CODE>set</CODE> method for the costFactors property. * * <p> * For example, to add a new item, do as follows: * <pre> * getCostFactors().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List<Object> getCostFactors() { if (costFactors == null) { costFactors = new ArrayList<Object>(); } return this.costFactors; } }
[ "rleung@accela.com" ]
rleung@accela.com
56037d11d761e84d2169a994f3dc5937bea0503c
8933c7f19c7c46b9a03fc5f3d8c1bf85ce775413
/ejbca_ce_6_3_1_1/src/java/org/ejbca/core/ejb/ra/raadmin/EndEntityProfileCache.java
e24b5412ae43a31e6c6fdc1aa8cbf9176cfa6141
[]
no_license
erikfournier/ejbca-pki
61a006c1c3bc59df68b1f80c1dc2d6dbcd4a228c
9974d77f6ec39bc9e60eaa3d8a3bbe08d723a06a
refs/heads/master
2021-12-25T01:48:15.229843
2017-12-23T01:29:04
2017-12-23T01:29:04
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,636
java
/************************************************************************* * * * EJBCA Community: The OpenSource Certificate Authority * * * * This software is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public * * License as published by the Free Software Foundation; either * * version 2.1 of the License, or any later version. * * * * See terms of license at gnu.org. * * * *************************************************************************/ package org.ejbca.core.ejb.ra.raadmin; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.locks.ReentrantLock; import javax.persistence.EntityManager; import org.apache.log4j.Logger; import org.ejbca.config.EjbcaConfiguration; import org.ejbca.core.model.InternalEjbcaResources; import org.ejbca.core.model.SecConst; import org.ejbca.core.model.ra.raadmin.EndEntityProfile; /** * Class Holding cache variable. Needed because EJB spec does not allow volatile, non-final fields * in session beans. * * This cache is designed so only one thread at the time will update the cache if it is too old. Other * threads will happily return a bit too old object. If a cache update is forced, for example when * a profile is edited, it will always update the cache even if the commit of the transaction fails. * * Another known issue during forced updates is the race condition exists, so an update in progress * might overwrite the result from forced update's database query. * * The intention of this design is better throughput than fully ordered sequential updates. * * @version $Id: EndEntityProfileCache.java 19901 2014-09-30 14:29:38Z anatom $ */ public final class EndEntityProfileCache { private static final Logger LOG = Logger.getLogger(EndEntityProfileCache.class); /** Internal localization of logs and errors */ private static final InternalEjbcaResources INTRES = InternalEjbcaResources.getInstance(); /* * Cache of profiles, with Id as keys. This cache may be * unsynchronized between multiple instances of EJBCA, but is common to all * threads in the same VM. Set volatile to make it thread friendly. */ /** Cache of mappings between profileId and profileName */ private volatile Map<Integer, String> idNameMapCache = null; /** Cache of mappings between profileName and profileId */ private volatile Map<String, Integer> nameIdMapCache = null; /** Cache of end entity profiles, with Id as keys */ private volatile Map<Integer, EndEntityProfile> profileCache = null; private volatile long lastUpdate = 0; /* Create template maps with all static constants */ private static final HashMap<Integer,String> idNameMapCacheTemplate = new HashMap<Integer,String>(); private static final HashMap<String,Integer> nameIdMapCacheTemplate = new HashMap<String,Integer>(); static { idNameMapCacheTemplate.put(Integer.valueOf(SecConst.EMPTY_ENDENTITYPROFILE), EndEntityProfileSession.EMPTY_ENDENTITYPROFILENAME); nameIdMapCacheTemplate.put(EndEntityProfileSession.EMPTY_ENDENTITYPROFILENAME, Integer.valueOf(SecConst.EMPTY_ENDENTITYPROFILE)); } private static final ReentrantLock lock = new ReentrantLock(false); /** * Fetch all profiles from the database, unless cache is enabled, valid and we do not force an update. * @param entityManager is required for reading the profiles from the database if we need to update the cache * @param force if true, this will force an update even if the cache is not yet invalid */ public void updateProfileCache(final EntityManager entityManager, final boolean force) { if (LOG.isTraceEnabled()) { LOG.trace(">updateProfileCache"); } final long cacheEndEntityProfileTime = EjbcaConfiguration.getCacheEndEntityProfileTime(); final long now = System.currentTimeMillis(); try { lock.lock(); if (!force && cacheEndEntityProfileTime!=0 && lastUpdate+cacheEndEntityProfileTime > now) { return; // We don't need to update cache } lastUpdate = now; // make sure next thread does not also pass the update test } finally { lock.unlock(); } @SuppressWarnings("unchecked") final Map<Integer, String> idNameCache = (Map<Integer, String>) idNameMapCacheTemplate.clone(); @SuppressWarnings("unchecked") final Map<String, Integer> nameIdCache = (Map<String, Integer>) nameIdMapCacheTemplate.clone(); final Map<Integer, EndEntityProfile> profCache = new HashMap<Integer, EndEntityProfile>(); try { final List<EndEntityProfileData> result = EndEntityProfileData.findAll(entityManager); for (final EndEntityProfileData next : result) { final Integer id = Integer.valueOf(next.getId()); final String profileName = next.getProfileName(); idNameCache.put(id, profileName); nameIdCache.put(profileName, id); profCache.put(id, next.getProfile()); } } catch (Exception e) { LOG.error(INTRES.getLocalizedMessage("ra.errorreadprofiles"), e); } idNameMapCache = idNameCache; nameIdMapCache = nameIdCache; profileCache = profCache; if (LOG.isTraceEnabled()) { LOG.trace("<updateProfileCache"); } } /** @return the latest object from the cache or a current database representation if no caching is used. */ public Map<Integer, EndEntityProfile> getProfileCache(final EntityManager entityManager) { updateProfileCache(entityManager, false); return profileCache; } /** @return the latest object from the cache or a current database representation if no caching is used. */ public Map<Integer, String> getIdNameMapCache(final EntityManager entityManager) { updateProfileCache(entityManager, false); return idNameMapCache; } /** @return the latest object from the cache or a current database representation if no caching is used. */ public Map<String, Integer> getNameIdMapCache(final EntityManager entityManager) { updateProfileCache(entityManager, false); return nameIdMapCache; } }
[ "arunkumarpatange@arunkumars-MacBook-Pro.local" ]
arunkumarpatange@arunkumars-MacBook-Pro.local
6c86f6f75ad3cc31495f4d9840bf1f016559c170
96d71f73821cfbf3653f148d8a261eceedeac882
/external/decompiled/android/WhatsApp-2.8.4278_dex2jar.src/com/whatsapp/y8.java
78819b966189a5cce5022378a3e7899fa38a6d5e
[]
no_license
JaapSuter/Niets
9a9ec53f448df9b866a8c15162a5690b6bcca818
3cc42f8c2cefd9c3193711cbf15b5304566e08cb
refs/heads/master
2020-04-09T19:09:40.667155
2012-09-28T18:11:33
2012-09-28T18:11:33
5,751,595
2
1
null
null
null
null
UTF-8
Java
false
false
959
java
package com.whatsapp; class y8 extends Thread { private static final String z; final yo a; static { char[] arrayOfChar = "e+\027<%-<\026='{t\027'6n0\033\"ze+\027<%/*\001'6/8\037(<l".toCharArray(); int i = arrayOfChar.length; int j = 0; if (i <= j) { z = new String(arrayOfChar).intern(); return; } int k = arrayOfChar[j]; int m; switch (j % 5) { default: m = 85; case 0: case 1: case 2: case 3: } while (true) { arrayOfChar[j] = (char)(m ^ k); j++; break; m = 2; continue; m = 89; continue; m = 120; continue; m = 73; } } y8(yo paramyo) { } public void run() { try { Thread.sleep(300L); g5.b(z); eu.k = true; App.c(false); label20: return; } catch (InterruptedException localInterruptedException) { break label20; } } }
[ "git@jaapsuter.com" ]
git@jaapsuter.com
4753b3401ffc5d0be1d8da4bac3bd6ee3fd09630
13cdd0ddb1e5ed977ea9fabe8e1ac0b917b3bf5d
/src/main/java/com/anl/user/persistence/mapper/SetApnTutorialsMapper.java
66131ed24344109fd31ef327623d63be807e7097
[]
no_license
kpdtd/card_service
30bfd5d00d2cb55c6b12fa75d137878cfe39d212
e596f59459d4e9f839a9daaa7c57d79fef4e7547
refs/heads/master
2020-03-22T23:45:07.195325
2018-09-26T09:18:37
2018-09-26T09:18:37
140,826,810
0
0
null
null
null
null
UTF-8
Java
false
false
307
java
package com.anl.user.persistence.mapper; import com.anl.user.persistence.mapper.BaseMapper; import com.anl.user.persistence.po.SetApnTutorials; /** * 类名: SetApnTutorials * 创建日期: * 功能描述: */ public interface SetApnTutorialsMapper extends BaseMapper<SetApnTutorials> { }
[ "yqyanghn@126.com" ]
yqyanghn@126.com
6a7d41ffc85deb04a0ee003d89eba820513ab1f0
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/files/File_37269.java
6437ab9934fda4c388cd41e84b831ee9c26bbe64
[ "Apache-2.0" ]
permissive
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,500
java
// Copyright (c) 2003-present, Jodd Team (http://jodd.org) // 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. // // 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 jodd.bean; /** * Default implementation of {@link BeanVisitor} for just setting * the properties in fluent way. */ public abstract class BeanVisitorImplBase<T> extends BeanVisitor { @SuppressWarnings("unchecked") protected T _this() { return (T) this; } /** * Excludes all properties, i.e. enables blacklist mode. */ public T excludeAll() { blacklist = false; return _this(); } /** * Defines excluded property names. */ public T exclude(final String... excludes) { for (String ex : excludes) { rules.exclude(ex); } return _this(); } /** * Exclude a property. */ public T exclude(final String exclude) { rules.exclude(exclude); return _this(); } /** * Defines included property names. */ public T include(final String... includes) { for (String in : includes) { rules.include(in); } return _this(); } /** * Include a property. */ public T include(final String include) { rules.include(include); return _this(); } /** * Defines included property names as public properties * of given template class. Sets to black list mode. */ public T includeAs(final Class template) { blacklist = false; String[] properties = getAllBeanPropertyNames(template, false); include(properties); return _this(); } /** * Defines if <code>null</code> values should be ignored. */ public T ignoreNulls(final boolean ignoreNulls) { this.ignoreNullValues = ignoreNulls; return _this(); } /** * Defines if <code>empty string</code> should be ignored. */ public T ignoreEmptyString(final boolean ignoreEmptyString) { this.ignoreEmptyString = ignoreEmptyString; return _this(); } /** * Defines if all properties should be copied (when set to <code>true</code>) * or only public (when set to <code>false</code>, default). */ public T declared(final boolean declared) { this.declared = declared; return _this(); } /** * Defines if fields without getters should be copied too. */ public T includeFields(final boolean includeFields) { this.includeFields = includeFields; return _this(); } }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
6f471826d7be627cd67dd5abd7bc2303daf94882
e82c1473b49df5114f0332c14781d677f88f363f
/MED-CLOUD/med-data/src/main/java/nta/med/data/dao/mss/PatientRepositoryCustom.java
614d3865ccdeab5cb6c3402afeaee00f51249b5a
[]
no_license
zhiji6/mih
fa1d2279388976c901dc90762bc0b5c30a2325fc
2714d15853162a492db7ea8b953d5b863c3a8000
refs/heads/master
2023-08-16T18:35:19.836018
2017-12-28T09:33:19
2017-12-28T09:33:19
null
0
0
null
null
null
null
UTF-8
Java
false
false
246
java
package nta.med.data.dao.mss; import java.math.BigInteger; import java.util.List; import nta.med.data.model.mss.PatientInfo; public interface PatientRepositoryCustom { List<PatientInfo> findPatientInfoByProfileId(BigInteger profileId); }
[ "duc_nt@nittsusystem-vn.com" ]
duc_nt@nittsusystem-vn.com
5123c40a97b8baefb913cd79e7ea73b9fe90c7f2
e6dc399cc717e39488f2ca9b7c9f15bd64dd1057
/src/ir/viratech/just_ro/api/flight/services/FlightService_V1.java
c38c8020e6f21d69cc920a1c565965e095b65c4c
[]
no_license
amirhoseinkh91/pondms
1ed5cccc43bcdaefaa61f831060f92b3f9913c78
7950ca88dd4f6061f58c0f6d5b6dd1fc25ce28cb
refs/heads/master
2020-06-20T06:25:54.257765
2019-07-16T12:18:42
2019-07-16T12:18:42
197,024,235
0
0
null
null
null
null
UTF-8
Java
false
false
2,665
java
package ir.viratech.just_ro.api.flight.services; import ir.viratech.base.SuppressWarningsOption; import ir.viratech.just_ro.api.flight.dto.airplainTicekt.AirplainTicketFlightResponseDTO; import ir.viratech.just_ro.api.flight.dto.alibaba.AlibabaResponseDTO; import ir.viratech.just_ro.api.flight.dto.flight.FlightResponseDTO; import ir.viratech.just_ro.api.flight.dto.mrbilit.MrBilitResponseDTO; import ir.viratech.just_ro.api.flight.dto.config.FlightConfigDTO; import ir.viratech.just_ro.api.flight.dto.search.FlightSearchQueryDTO; import ir.viratech.just_ro.api.flight.dto.sepehr360.Sepehr360ResponseDTO; import ir.viratech.just_ro.manager.website.flight.*; import org.springframework.web.bind.annotation.RequestBody; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; @SuppressWarnings(SuppressWarningsOption.SPELL_CHECKING_INSPECTION) @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("/v1/flight") public class FlightService_V1 { @GET @Path("/config") public FlightConfigDTO getFlightScrapperInfo() { return new FlightConfigDTO(); } @POST @Path("/alibaba") public FlightResponseDTO alibaba(@RequestBody AlibabaResponseDTO alibabaResponseDTO, @BeanParam FlightSearchQueryDTO searchQuery) { Alibaba alibaba = new Alibaba(); alibaba.makeUrl(searchQuery); return alibaba.getFlightDTOList(alibabaResponseDTO); } @POST @Path("/mrbilit") public FlightResponseDTO mrbilit(@RequestBody MrBilitResponseDTO mrBilitResponseDTO, @BeanParam FlightSearchQueryDTO searchQuery) { Mrbilit mrbilit = new Mrbilit(); mrbilit.makeUrl(searchQuery); return mrbilit.getFlightDTOList(mrBilitResponseDTO); } @POST @Path("/sepehr360") public FlightResponseDTO sepehr360(@RequestBody Sepehr360ResponseDTO sepehr360ResponseDTO) { Sepehr360 sepehr = new Sepehr360(); return sepehr.getFlightDTOList(sepehr360ResponseDTO); } @POST @Path("/ghasedak24") @Consumes(MediaType.TEXT_HTML) public FlightResponseDTO ghasedak24(@RequestBody String html, @BeanParam FlightSearchQueryDTO searchQuery) { Ghasedak24 ghasedak24 = new Ghasedak24(); ghasedak24.makeUrl(searchQuery); return ghasedak24.getFlightDTOList(html); } @POST @Path("/airplane_ticket") public FlightResponseDTO airplainTicket(@RequestBody AirplainTicketFlightResponseDTO infoDTO, @BeanParam FlightSearchQueryDTO searchQuery) { AirplaneTicket airplainTicket = new AirplaneTicket(); airplainTicket.makeUrl(searchQuery); return airplainTicket.getFlightDTOList(infoDTO); } }
[ "khaloei@viratech.ir" ]
khaloei@viratech.ir
2fe6274e180a709e60e8ee7c93e3ba7251d1743d
1b50fe1118a908140b6ba844a876ed17ad026011
/core/src/main/java/org/narrative/common/util/PageNotFoundError.java
02dc2f2cdf0305d439542eb35b19119af754442d
[ "MIT" ]
permissive
jimador/narrative
a6df67a502a913a78cde1f809e6eb5df700d7ee4
84829f0178a0b34d4efc5b7dfa82a8929b5b06b5
refs/heads/master
2022-04-08T13:50:30.489862
2020-03-07T15:12:30
2020-03-07T15:12:30
null
0
0
null
null
null
null
UTF-8
Java
false
false
235
java
package org.narrative.common.util; /** * Date: 5/18/12 * Time: 3:30 PM * * @author brian */ public class PageNotFoundError extends ApplicationError { public PageNotFoundError(String message) { super(message); } }
[ "brian@narrative.org" ]
brian@narrative.org
71dcd2eb06a0bde362414e9632c79af1d3b1bcdc
038ee6b20cae51169a2ed4ed64a7b8e99b5cbaad
/schemaOrgGson/src/org/kyojo/schemaOrg/m3n3/gson/core/container/CommentTextDeserializer.java
470c21cb75e811825bc14df6ce2e18b32fd4dbec
[ "Apache-2.0" ]
permissive
nagaikenshin/schemaOrg
3dec1626781913930da5585884e3484e0b525aea
4c9d6d098a2741c2dc2a814f1c708ee55c36e9a8
refs/heads/master
2021-06-25T04:52:49.995840
2019-05-12T06:22:37
2019-05-12T06:22:37
134,319,974
1
0
null
null
null
null
UTF-8
Java
false
false
2,070
java
package org.kyojo.schemaorg.m3n3.gson.core.container; import java.lang.reflect.Field; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map.Entry; import org.kyojo.gson.JsonDeserializationContext; import org.kyojo.gson.JsonDeserializer; import org.kyojo.gson.JsonElement; import org.kyojo.gson.JsonObject; import org.kyojo.gson.JsonParseException; import org.kyojo.gson.reflect.TypeToken; import org.kyojo.schemaorg.m3n3.core.impl.COMMENT_TEXT; import org.kyojo.schemaorg.m3n3.core.Container.CommentText; public class CommentTextDeserializer implements JsonDeserializer<CommentText> { @Override public CommentText deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext context) throws JsonParseException { if(jsonElement.isJsonPrimitive()) { return new COMMENT_TEXT(jsonElement.getAsString()); } JsonObject jsonObject = jsonElement.getAsJsonObject(); CommentText obj = new COMMENT_TEXT(); HashMap<String, Field> fldMap = new HashMap<>(); Field[] flds = COMMENT_TEXT.class.getFields(); for(Field fld : flds) { fldMap.put(fld.getName(), fld); } for(Entry<String, JsonElement> ent : jsonObject.entrySet()) { if(fldMap.containsKey(ent.getKey())) { Field fld = fldMap.get(ent.getKey()); JsonElement elm = ent.getValue(); try { if(fld.getType().equals(List.class)) { ParameterizedType gType = (ParameterizedType)fld.getGenericType(); Type[] aTypes = gType.getActualTypeArguments(); Type listType = TypeToken.getParameterized(ArrayList.class, (Class<?>)aTypes[0]).getType(); List<?> list = context.deserialize(elm, listType); fld.set(obj, list); } else { Object val = context.deserialize(elm, fld.getType()); fld.set(obj, val); } } catch(IllegalArgumentException iae) { throw new JsonParseException(iae); } catch(IllegalAccessException iae) { throw new JsonParseException(iae); } } } return obj; } }
[ "nagai@nagaikenshin.com" ]
nagai@nagaikenshin.com
489a8fd82ea2499c636f9fa0367c9d17b3057ba0
7931e7b88b2ddee440fbe78c17f3061eea35edf5
/src/main/java/com/laborglobal/lctd/servicioflota/config/LoggingAspectConfiguration.java
14ca477a940d2f4189caa6dc722d0d3e8286ef97
[]
no_license
LaborGlobal/servicio-tecnico-flota
877fad095e67c2fe88f45ac24002bb1a576bfe82
982a570760b2e4e53ff20ee359f0dc5d5b6c323b
refs/heads/master
2022-03-22T16:23:39.438880
2020-03-12T10:52:34
2020-03-12T10:52:34
246,810,616
0
0
null
2022-03-08T21:18:28
2020-03-12T10:52:18
Java
UTF-8
Java
false
false
528
java
package com.laborglobal.lctd.servicioflota.config; import com.laborglobal.lctd.servicioflota.aop.logging.LoggingAspect; import io.github.jhipster.config.JHipsterConstants; import org.springframework.context.annotation.*; import org.springframework.core.env.Environment; @Configuration @EnableAspectJAutoProxy public class LoggingAspectConfiguration { @Bean @Profile(JHipsterConstants.SPRING_PROFILE_DEVELOPMENT) public LoggingAspect loggingAspect(Environment env) { return new LoggingAspect(env); } }
[ "jhipster-bot@jhipster.tech" ]
jhipster-bot@jhipster.tech
d98981145b4647e21eafd3deac8b56a7a4967ca4
86fa67369e29c0086601fad2d5502322f539a321
/subprojects/kernel/doovos-kernel-vanilla/src/org/doovos/kernel/vanilla/jvm/interpreter/jjit/instr/spec/JJIT_ISTORE.java
7f947e832f9c9790eeccd31095db995da42f9b86
[]
no_license
thevpc/doovos
05a4ce98825bf3dbbdc7972c43cd15fc18afdabb
1ae822549a3a546381dbf3b722814e0be1002b11
refs/heads/master
2021-01-12T14:56:52.283641
2020-08-22T12:37:40
2020-08-22T12:37:40
72,081,680
1
0
null
null
null
null
UTF-8
Java
false
false
2,723
java
package org.doovos.kernel.vanilla.jvm.interpreter.jjit.instr.spec; /** * ==================================================================== * Doovos (Distributed Object Oriented Operating System) * * Doovos is a new Open Source Distributed Object Oriented Operating System * Design and implementation based on the Java Platform. * Actually, it is a try for designing a distributed operation system in * top of existing centralized/network OS. * Designed OS will follow the object oriented architecture for redefining * all OS resources (memory,process,file system,device,...etc.) in a highly * distributed context. * Doovos is also a distributed Java virtual machine that implements JVM * specification on top the distributed resources context. * * Doovos Kernel is the heart of Doovos OS. It implements also the Doovos JVM * Doovos Kernel code is executed on host JVM * * Copyright (C) 2008-2010 Taha BEN SALAH * * 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 2 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, write to the Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ==================================================================== */ import org.doovos.kernel.api.jvm.bytecode.KOperator; import org.doovos.kernel.api.memory.KRegisterType; import org.doovos.kernel.vanilla.jvm.interpreter.jjit.instr.base.JJIT__BASE_XSTORE; /** * Created by IntelliJ IDEA. * User: vpc * Date: 22 févr. 2009 * Time: 14:21:52 * To change this template use File | Settings | File Templates. */ public final class JJIT_ISTORE extends JJIT__BASE_XSTORE implements Cloneable{ public static final JJIT_ISTORE ISTORE_0 = new JJIT_ISTORE(KOperator.ISTORE_0, 0); public static final JJIT_ISTORE ISTORE_1 = new JJIT_ISTORE(KOperator.ISTORE_1, 1); public static final JJIT_ISTORE ISTORE_2 = new JJIT_ISTORE(KOperator.ISTORE_2, 2); public static final JJIT_ISTORE ISTORE_3 = new JJIT_ISTORE(KOperator.ISTORE_3, 3); private JJIT_ISTORE(KOperator o,int index) { super(o,KRegisterType.INTEGER,index); } public JJIT_ISTORE(int index) { super(KOperator.ISTORE,KRegisterType.INTEGER,index); } }
[ "taha.bensalah@gmail.com" ]
taha.bensalah@gmail.com
3605c1f418af70efa25285c5d7cd6b27eefcf494
e51de484e96efdf743a742de1e91bce67f555f99
/Android/triviacrack_src/src/com/etermax/preguntados/ui/profile/g$3.java
28d789662534df9853c68a850e358359e2599828
[]
no_license
adumbgreen/TriviaCrap
b21e220e875f417c9939f192f763b1dcbb716c69
beed6340ec5a1611caeff86918f107ed6807d751
refs/heads/master
2021-03-27T19:24:22.401241
2015-07-12T01:28:39
2015-07-12T01:28:39
28,071,899
0
0
null
null
null
null
UTF-8
Java
false
false
467
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.etermax.preguntados.ui.profile; // Referenced classes of package com.etermax.preguntados.ui.profile: // g class a implements Runnable { final g a; public void run() { g.c(a); } (g g1) { a = g1; super(); } }
[ "klayderpus@chimble.net" ]
klayderpus@chimble.net
bb50e34de1b0b57d7dfd5c8774231e19f75cdfe5
c8bf1df473f0a1cf5d4bd58e697570a6803790a6
/src/main/java/org/exolab/castor/mapping/xml/KeyGeneratorDef.java
db4d3ebcce00cc9fcfc3a8d0b90c63083223fb86
[]
no_license
j-white/hacked-castor
0adbe590c359fa5567856ea89e61541507800d76
6cd86a43f892643d15cfb089d34fc25cf49b6a69
refs/heads/master
2021-01-20T16:55:33.166799
2017-02-24T14:04:16
2017-02-24T14:04:16
82,838,036
0
1
null
2017-02-23T21:35:39
2017-02-22T18:20:40
Java
UTF-8
Java
false
false
7,467
java
/* * This class was automatically generated with * <a href="http://www.castor.org">Castor 1.0.2</a>, using an XML * Schema. * $Id$ */ package org.exolab.castor.mapping.xml; import java.util.Collections; import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * Class KeyGeneratorDef. * * @version $Revision$ $Date: 2006-01-07 15:48:31 -0700 (Sat, 07 Jan 2006) $ */ public class KeyGeneratorDef implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * Field _name */ private java.lang.String _name; /** * Field _alias */ private java.lang.String _alias; /** * Field _paramList */ private java.util.ArrayList _paramList; //----------------/ //- Constructors -/ //----------------/ public KeyGeneratorDef() { super(); _paramList = new java.util.ArrayList(); } //-- org.exolab.castor.mapping.xml.KeyGeneratorDef() //-----------/ //- Methods -/ //-----------/ /** * Method addParam * * * * @param vParam */ public void addParam(org.exolab.castor.mapping.xml.Param vParam) throws java.lang.IndexOutOfBoundsException { _paramList.add(vParam); } //-- void addParam(org.exolab.castor.mapping.xml.Param) /** * Method addParam * * * * @param index * @param vParam */ public void addParam(int index, org.exolab.castor.mapping.xml.Param vParam) throws java.lang.IndexOutOfBoundsException { _paramList.add(index, vParam); } //-- void addParam(int, org.exolab.castor.mapping.xml.Param) /** * Method clearParam * */ public void clearParam() { _paramList.clear(); } //-- void clearParam() /** * Method enumerateParam * * * * @return Enumeration */ public java.util.Enumeration enumerateParam() { return Collections.enumeration(_paramList); } //-- java.util.Enumeration enumerateParam() /** * Returns the value of field 'alias'. * * @return String * @return the value of field 'alias'. */ public java.lang.String getAlias() { return this._alias; } //-- java.lang.String getAlias() /** * Returns the value of field 'name'. * * @return String * @return the value of field 'name'. */ public java.lang.String getName() { return this._name; } //-- java.lang.String getName() /** * Method getParam * * * * @param index * @return Param */ public org.exolab.castor.mapping.xml.Param getParam(int index) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index >= _paramList.size())) { throw new IndexOutOfBoundsException(); } return (org.exolab.castor.mapping.xml.Param) _paramList.get(index); } //-- org.exolab.castor.mapping.xml.Param getParam(int) /** * Method getParam * * * * @return Param */ public org.exolab.castor.mapping.xml.Param[] getParam() { int size = _paramList.size(); org.exolab.castor.mapping.xml.Param[] mArray = new org.exolab.castor.mapping.xml.Param[size]; for (int index = 0; index < size; index++) { mArray[index] = (org.exolab.castor.mapping.xml.Param) _paramList.get(index); } return mArray; } //-- org.exolab.castor.mapping.xml.Param[] getParam() /** * Method getParamCount * * * * @return int */ public int getParamCount() { return _paramList.size(); } //-- int getParamCount() /** * Method isValid * * * * @return boolean */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * Method marshal * * * * @param out */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * Method marshal * * * * @param handler */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Method removeParam * * * * @param vParam * @return boolean */ public boolean removeParam(org.exolab.castor.mapping.xml.Param vParam) { boolean removed = _paramList.remove(vParam); return removed; } //-- boolean removeParam(org.exolab.castor.mapping.xml.Param) /** * Sets the value of field 'alias'. * * @param alias the value of field 'alias'. */ public void setAlias(java.lang.String alias) { this._alias = alias; } //-- void setAlias(java.lang.String) /** * Sets the value of field 'name'. * * @param name the value of field 'name'. */ public void setName(java.lang.String name) { this._name = name; } //-- void setName(java.lang.String) /** * Method setParam * * * * @param index * @param vParam */ public void setParam(int index, org.exolab.castor.mapping.xml.Param vParam) throws java.lang.IndexOutOfBoundsException { //-- check bounds for index if ((index < 0) || (index >= _paramList.size())) { throw new IndexOutOfBoundsException(); } _paramList.set(index, vParam); } //-- void setParam(int, org.exolab.castor.mapping.xml.Param) /** * Method setParam * * * * @param paramArray */ public void setParam(org.exolab.castor.mapping.xml.Param[] paramArray) { //-- copy array _paramList.clear(); for (int i = 0; i < paramArray.length; i++) { _paramList.add(paramArray[i]); } } //-- void setParam(org.exolab.castor.mapping.xml.Param) /** * Method unmarshal * * * * @param reader * @return KeyGeneratorDef */ public static org.exolab.castor.mapping.xml.KeyGeneratorDef unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.exolab.castor.mapping.xml.KeyGeneratorDef) Unmarshaller.unmarshal(org.exolab.castor.mapping.xml.KeyGeneratorDef.class, reader); } //-- org.exolab.castor.mapping.xml.KeyGeneratorDef unmarshal(java.io.Reader) /** * Method validate * */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }
[ "jesse@opennms.org" ]
jesse@opennms.org
fea317af6af4dc98ae937304762d7915388df57e
40170779ecd3168b7efc40865ab2c279691dfbf7
/src/main/java/com/rumaruka/simplegrinder/Common/OreDict/OreDictMain.java
3539281e9493131320e404981b1c35353985d58d
[]
no_license
Pilgrim77/SimpleGrinder
e7498ebacd0434d8a83fd308f963b6c015ec3678
7e9d5e66a7673b80a32c9542c3fdb3f959ab9d8c
refs/heads/master
2020-03-17T22:13:40.768942
2018-03-17T22:48:36
2018-03-17T22:48:36
133,994,535
0
0
null
2018-05-18T19:12:10
2018-05-18T19:12:10
null
UTF-8
Java
false
false
847
java
package com.rumaruka.simplegrinder.Common.OreDict; import com.rumaruka.simplegrinder.Init.ItemsCore; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; public class OreDictMain { public static void registerOre(){ //Dust OreDictionary.registerOre("dustIron", new ItemStack(ItemsCore.dust_iron)); OreDictionary.registerOre("dustGold",new ItemStack(ItemsCore.dust_gold)); OreDictionary.registerOre("logChips", new ItemStack(ItemsCore.wood_chips)); OreDictionary.registerOre("flour", new ItemStack(ItemsCore.flour)); OreDictionary.registerOre("mashCarrot", new ItemStack(ItemsCore.mash_carrot)); OreDictionary.registerOre("mashPotato", new ItemStack(ItemsCore.mash_potato)); OreDictionary.registerOre("omlete",new ItemStack(ItemsCore.omlete)); } }
[ "rumarukakunnya@gmail.com" ]
rumarukakunnya@gmail.com
70d2f19f009a7fdbed96b6b22117053559e868fd
1a29b175d12565f2caffacb3c528827a9e777d59
/app/src/main/java/com/wbx/mall/utils/BitMapUtils.java
a900a92dab09a009f99b9ceb6d8ad52fd24b94f4
[]
no_license
lyx322888/wbx_mall_old
52951ace7ffffd89e0934e9a73ff5eda8c719697
cabc85d448e166b08317f57d0bcdffa49962ed9d
refs/heads/master
2020-07-24T00:21:33.393301
2019-08-26T10:12:25
2019-08-26T10:12:25
null
0
0
null
null
null
null
UTF-8
Java
false
false
6,913
java
package com.wbx.mall.utils; import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.provider.MediaStore; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URL; /** * Created by wushenghui on 2017/6/8. */ public class BitMapUtils { /** * 通过uri获取图片并进行压缩 * * @param uri */ public static Bitmap getBitmapFormUri(Context context, Uri uri) throws IOException { InputStream input = context.getContentResolver().openInputStream(uri); BitmapFactory.Options onlyBoundsOptions = new BitmapFactory.Options(); onlyBoundsOptions.inJustDecodeBounds = true; onlyBoundsOptions.inDither = true;//optional onlyBoundsOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional BitmapFactory.decodeStream(input, null, onlyBoundsOptions); input.close(); int originalWidth = onlyBoundsOptions.outWidth; int originalHeight = onlyBoundsOptions.outHeight; if ((originalWidth == -1) || (originalHeight == -1)) return null; //图片分辨率以480x800为标准 float hh = 800f;//这里设置高度为800f float ww = 480f;//这里设置宽度为480f //缩放比。由于是固定比例缩放,只用高或者宽其中一个数据进行计算即可 int be = 1;//be=1表示不缩放 if (originalWidth > originalHeight && originalWidth > ww) {//如果宽度大的话根据宽度固定大小缩放 be = (int) (originalWidth / ww); } else if (originalWidth < originalHeight && originalHeight > hh) {//如果高度高的话根据宽度固定大小缩放 be = (int) (originalHeight / hh); } if (be <= 0) be = 1; //比例压缩 BitmapFactory.Options bitmapOptions = new BitmapFactory.Options(); bitmapOptions.inSampleSize = be;//设置缩放比例 bitmapOptions.inDither = true;//optional bitmapOptions.inPreferredConfig = Bitmap.Config.ARGB_8888;//optional input = context.getContentResolver().openInputStream(uri); Bitmap bitmap = BitmapFactory.decodeStream(input, null, bitmapOptions); input.close(); return compressImage(bitmap);//再进行质量压缩 } /** * 质量压缩方法 * * @param image * @return */ public static Bitmap compressImage(Bitmap image) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); image.compress(Bitmap.CompressFormat.JPEG, 100, baos);//质量压缩方法,这里100表示不压缩,把压缩后的数据存放到baos中 int options = 100; while (baos.toByteArray().length / 1024 > 100) { //循环判断如果压缩后图片是否大于100kb,大于继续压缩 baos.reset();//重置baos即清空baos //第一个参数 :图片格式 ,第二个参数: 图片质量,100为最高,0为最差 ,第三个参数:保存压缩后的数据的流 image.compress(Bitmap.CompressFormat.JPEG, options, baos);//这里压缩options%,把压缩后的数据存放到baos中 options -= 10;//每次都减少10 } ByteArrayInputStream isBm = new ByteArrayInputStream(baos.toByteArray());//把压缩后的数据baos存放到ByteArrayInputStream中 Bitmap bitmap = BitmapFactory.decodeStream(isBm, null, null);//把ByteArrayInputStream数据生成图片 return bitmap; } public static String getImagePathFromUri(final Context context, Uri picUri) { // 选择的图片路径 String selectPicPath = null; Uri selectPicUri = picUri; final String scheme = picUri.getScheme(); if (picUri != null && scheme != null) { if (scheme.equals(ContentResolver.SCHEME_CONTENT)) { // content://开头的uri Cursor cursor = context.getContentResolver().query(picUri, null, null, null, null); if (cursor != null && cursor.moveToFirst()) { int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); // 取出文件路径 selectPicPath = cursor.getString(columnIndex); // Android 4.1 更改了SD的目录,sdcard映射到/storage/sdcard0 if (!selectPicPath.startsWith("/storage") && !selectPicPath.startsWith("/mnt")) { // 检查是否有"/mnt"前缀 selectPicPath = "/mnt" + selectPicPath; } //关闭游标 cursor.close(); } } else if (scheme.equals(ContentResolver.SCHEME_FILE)) {// file:///开头的uri // 替换file:// selectPicPath = selectPicUri.toString().replace("file://", ""); int index = selectPicPath.indexOf("/sdcard"); selectPicPath = index == -1 ? selectPicPath : selectPicPath.substring(index); if (!selectPicPath.startsWith("/mnt")) { // 加上"/mnt"头 selectPicPath = "/mnt" + selectPicPath; } } } return selectPicPath; } /** * 把网络资源图片转化成bitmap * @param url 网络资源图片 * @return Bitmap */ public static Bitmap GetLocalOrNetBitmap(String url) { Bitmap bitmap = null; InputStream in = null; BufferedOutputStream out = null; try { in = new BufferedInputStream(new URL(url).openStream(), 1024); final ByteArrayOutputStream dataStream = new ByteArrayOutputStream(); out = new BufferedOutputStream(dataStream, 1024); copy(in, out); out.flush(); byte[] data = dataStream.toByteArray(); bitmap = BitmapFactory.decodeByteArray(data, 0, data.length); data = null; return bitmap; } catch (IOException e) { e.printStackTrace(); return null; } } private static void copy(InputStream in, OutputStream out) throws IOException { byte[] b = new byte[1024]; int read; while ((read = in.read(b)) != -1) { out.write(b, 0, read); } } public static byte[] Bitmap2Bytes(Bitmap bm) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); bm.compress(Bitmap.CompressFormat.PNG, 100, baos); return baos.toByteArray(); } }
[ "15159862589@163.com" ]
15159862589@163.com
23d729841bc35b9d6db38b9c9c2c8c4c4dc217a7
67a1b5e8dc998ce3594c1c3bb2ec89c30850dee7
/GooglePlay6.0.5/app/src/main/java/com/google/gson/FieldNamingPolicy.java
e724b41e5026461681aa0a185fde8362d32e64dd
[ "Apache-2.0" ]
permissive
matrixxun/FMTech
4a47bd0bdd8294cc59151f1bffc6210567487bac
31898556baad01d66e8d87701f2e49b0de930f30
refs/heads/master
2020-12-29T01:31:53.155377
2016-01-07T04:39:43
2016-01-07T04:39:43
49,217,400
2
0
null
2016-01-07T16:51:44
2016-01-07T16:51:44
null
UTF-8
Java
false
false
207
java
// INTERNAL ERROR // /* Location: F:\apktool\apktool\Google_Play_Store6.0.5\classes-dex2jar.jar * Qualified Name: com.google.gson.FieldNamingPolicy * JD-Core Version: 0.7.0.1 */
[ "jiangchuna@126.com" ]
jiangchuna@126.com
b2464fff065cccb6c9195d7d37c584598b529e65
69a4f2d51ebeea36c4d8192e25cfb5f3f77bef5e
/methods/Method_23985.java
f07368625072cc1468f2e9959e19988a48904173
[]
no_license
P79N6A/icse_20_user_study
5b9c42c6384502fdc9588430899f257761f1f506
8a3676bc96059ea2c4f6d209016f5088a5628f3c
refs/heads/master
2020-06-24T08:25:22.606717
2019-07-25T15:31:16
2019-07-25T15:31:16
null
0
0
null
null
null
null
UTF-8
Java
false
false
227
java
protected boolean texturingIsEnabled(int target){ if (target == TEXTURE_2D) { return texturingTargets[0]; } else if (target == TEXTURE_RECTANGLE) { return texturingTargets[1]; } else { return false; } }
[ "sonnguyen@utdallas.edu" ]
sonnguyen@utdallas.edu
a7d01aa8458056c71154c249856e785eca804cd9
63e7479f00e08daef895633dfa32440e8ff9867c
/mathlogic5/src/ru/ifmo/ctddev/mathlogic/khovanskiy/task5/ProofEnum.java
fa090b1286f37f59e40ca28b96987884abe6e51a
[]
no_license
khovanskiy/mathlogic-course
6c161c0c2a829d4478d757982e4c94623443163e
4db0b97094388d47f1fa08bb7a729157869870ac
refs/heads/master
2020-05-04T03:16:23.390923
2019-04-01T21:02:32
2019-04-01T21:02:32
178,943,682
0
0
null
null
null
null
UTF-8
Java
false
false
136
java
package ru.ifmo.ctddev.mathlogic.khovanskiy.task5; public enum ProofEnum { AXIOM, HYP, MP, ANY, EXISTS }
[ "victor.khovanskiy@gmail.com" ]
victor.khovanskiy@gmail.com
7d8d9527053cf2d5c475aa2486701d5ae081047a
f10bebc8eb6cff9e0473cd07731de03ad2b8560d
/TTSeSTT/app/src/main/java/com/example/ttsestt/MainActivity.java
b50b9ec1e7bb9bcc1996c6e3d75952193f6f285f
[]
no_license
ricardorodrigooliveira/DesenvolvimentoMobileAndroid
8d39bf53ef58694576889c908e98e8c8735342c2
797e9017623e7324d758a7d212f90df0ceb4e934
refs/heads/master
2020-05-29T17:03:02.216711
2019-10-19T01:22:59
2019-10-19T01:22:59
189,266,019
0
0
null
null
null
null
UTF-8
Java
false
false
2,430
java
package com.example.ttsestt; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.speech.RecognizerIntent; import android.speech.tts.TextToSpeech; import android.view.View; import android.widget.Toast; import java.util.ArrayList; import java.util.Locale; public class MainActivity extends AppCompatActivity { TextToSpeech tts; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() { @Override public void onInit(int i) { tts.setLanguage(new Locale("pt-BR")); Toast.makeText( MainActivity.this, "TTS Iniciado com sucesso!", Toast.LENGTH_SHORT).show(); } }); } public void gravar(View view) { Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra( RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM ); intent.putExtra( RecognizerIntent.EXTRA_CALLING_PACKAGE, getPackageName() ); intent.putExtra( RecognizerIntent.EXTRA_PROMPT, "O Ricardo é lindo mesmo!" ); intent.putExtra( RecognizerIntent.EXTRA_LANGUAGE, "pt-BR" ); intent.putExtra( RecognizerIntent.EXTRA_MAX_RESULTS, 10 ); startActivityForResult(intent, 0); } @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if( resultCode == RESULT_OK ){ ArrayList<String> palavras = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS); if ( palavras.size() > 0 ) { String primeiro = palavras.get(0); Toast.makeText(this, primeiro, Toast.LENGTH_SHORT).show(); tts.speak( primeiro, TextToSpeech.QUEUE_FLUSH, null); } } } }
[ "logonaluno@local.com" ]
logonaluno@local.com
6a7ef645c678e2753fb9697ada0bc716ae7ee373
6482753b5eb6357e7fe70e3057195e91682db323
/com/mojang/datafixers/optics/ListTraversal.java
4c6ab7b08558e0a4669ce1978c5d4bd7050b6164
[]
no_license
TheShermanTanker/Server-1.16.3
45cf9996afa4cd4d8963f8fd0588ae4ee9dca93c
48cc08cb94c3094ebddb6ccfb4ea25538492bebf
refs/heads/master
2022-12-19T02:20:01.786819
2020-09-18T21:29:40
2020-09-18T21:29:40
296,730,962
0
1
null
null
null
null
UTF-8
Java
false
false
1,545
java
package com.mojang.datafixers.optics; import java.util.Iterator; import java.util.function.Function; import java.util.function.BiFunction; import com.google.common.collect.ImmutableList; import com.mojang.datafixers.kinds.K1; import com.mojang.datafixers.kinds.App; import com.mojang.datafixers.FunctionType; import com.mojang.datafixers.kinds.Applicative; import java.util.List; public final class ListTraversal<A, B> implements Traversal<List<A>, List<B>, A, B> { public <F extends K1> FunctionType<List<A>, App<F, List<B>>> wander(final Applicative<F, ?> applicative, final FunctionType<A, App<F, B>> input) { App<Object, ImmutableList.Builder<B>> result; final Iterator iterator; A a; return (FunctionType<List<A>, App<F, List<B>>>)(as -> { result = applicative.point(ImmutableList.<B>builder()); as.iterator(); while (iterator.hasNext()) { a = (A)iterator.next(); result = applicative.ap2(applicative.point((BiFunction<A, B, R>)ImmutableList.Builder::add), (App<F, ImmutableList.Builder<B>>)result, input.apply(a)); } return applicative.<ImmutableList.Builder<B>, Object>map((java.util.function.Function<? super ImmutableList.Builder<B>, ?>)ImmutableList.Builder::build, (App<F, ImmutableList.Builder<B>>)result); }); } public boolean equals(final Object obj) { return obj instanceof ListTraversal; } public String toString() { return "ListTraversal"; } }
[ "tanksherman27@gmail.com" ]
tanksherman27@gmail.com
e960e60e1bc4575d3c6dd44b8a9657d4071ce427
db2d24a6bb520c2c6fc4dced10909a65e2b569c1
/2.JavaCore/src/com/javarush/task/task15/task1512/Solution.java
4047fb455e1e78df1e1a65a3b5c58456c7357a87
[]
no_license
DanilBogdanov/JavaRushTasks
274d9112b81a54c2a6d012db5895ea63ba6e7cc1
de3ddbdb4132af9e29568fa5130d9fc89ef3324a
refs/heads/master
2022-10-02T17:30:26.541617
2020-06-09T15:47:23
2020-06-09T15:47:23
177,746,482
0
0
null
null
null
null
UTF-8
Java
false
false
1,399
java
package com.javarush.task.task15.task1512; /* Максимально простой код-2 Посмотри, что, связанное с конструкторами, может быть добавлено при компиляции, но в этой программе уже присутствует. Упрости код - удали все конструкторы и вызовы конструкторов супер-классов, которые создаются и добавляются автоматически. PS: Взаимосвязь между объектами классов NakedCat и NormalCat, SiamCat - Is-a (наследование): http://en.wikipedia.org/wiki/Is-a http://cs7002.vk.me/c7007/v7007577/1411a/_dAiEola310.jpg */ public class Solution { public static void main(String[] args) { SiamCat simka = new SiamCat("Simka"); NakedCat nakedSimka = simka.shave(); } public static class NakedCat { String name; public NakedCat shave() { return this; } } public static class NormalCat extends NakedCat { public NormalCat(String name) { this.name = name; System.out.println("My name is " + name); } } public static class SiamCat extends NormalCat { public SiamCat(String name) { super(name); } } }
[ "dangerdanil@gmail.com" ]
dangerdanil@gmail.com
e8b6fd2695a97afaa56bedb13bc6131823626adc
f251908eb932c00a3a99f8909d2873f3f88db575
/src/main/java/org/chuckame/dofus2/protocol/messages/game/context/roleplay/houses/HouseSellRequestMessage.java
b117d6850ddcd6f9538568804b7a8f8f47560563
[]
no_license
Chuckame/dofus-protocol
613c6e27f67ef24b4ec0eb3acf74e3adae859e7c
5d96fb83929e0fd4f58492d8445cbb7b7181af8f
refs/heads/master
2021-07-05T16:21:00.824668
2017-07-27T13:12:22
2017-07-27T13:37:12
96,158,319
2
0
null
null
null
null
UTF-8
Java
false
false
991
java
package org.chuckame.dofus2.protocol.messages.game.context.roleplay.houses; import org.chuckame.dofus2.common.io.IDataReader; import org.chuckame.dofus2.common.io.IDataWriter; import org.chuckame.dofus2.common.io.INetworkMessage; import lombok.Data; import lombok.ToString; import lombok.EqualsAndHashCode; @Data @ToString @EqualsAndHashCode public class HouseSellRequestMessage implements INetworkMessage { public static final int MESSAGE_ID = 5697; private int amount; public HouseSellRequestMessage() { } public HouseSellRequestMessage(int amount) { this.amount = amount; } public int getProtocolId() { return MESSAGE_ID; } public void deserialize(IDataReader reader) { this.amount = reader.readInt(); if (amount < 0) throw new IllegalArgumentException(String.format("Forbidden value on amount = %s, it doesn't respect the following condition : amount < 0", amount)); } public void serialize(IDataWriter writer) { writer.writeInt(this.amount); } }
[ "chuckame@users.noreply.github.com" ]
chuckame@users.noreply.github.com
f6960257dc4d72471730c645606dda16af1ec686
65423f57d25e34d9440bf894584b92be29946825
/target/generated-sources/xjc/com/clincab/web/app/eutils/jaxb/e2br3/ActClassEncounter.java
b34d1719735f5322e54802faf5101474725db6fa
[]
no_license
kunalcabcsi/toolsr3
0b518cfa6813a88a921299ab8b8b5d6cbbd362fe
5071990dc2325bc74c34a3383792ad5448dee1b0
refs/heads/master
2021-08-31T04:20:23.924815
2017-12-20T09:25:33
2017-12-20T09:25:33
114,867,895
0
0
null
null
null
null
UTF-8
Java
false
false
1,076
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017.12.20 at 02:30:39 PM IST // package com.clincab.web.app.eutils.jaxb.e2br3; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for ActClassEncounter. * * <p>The following schema fragment specifies the expected content contained within this class. * <p> * <pre> * &lt;simpleType name="ActClassEncounter"&gt; * &lt;restriction base="{urn:hl7-org:v3}cs"&gt; * &lt;enumeration value="ENC"/&gt; * &lt;/restriction&gt; * &lt;/simpleType&gt; * </pre> * */ @XmlType(name = "ActClassEncounter") @XmlEnum public enum ActClassEncounter { ENC; public String value() { return name(); } public static ActClassEncounter fromValue(String v) { return valueOf(v); } }
[ "ksingh@localhost.localdomain" ]
ksingh@localhost.localdomain
7b215969a6bd865432d0502f9a7738115f3103c7
5c901d064a30f3be4c3a25a29ee293689e024033
/Java/TP/Workspace/x/x-workspace/test9.java
96dda299ca1096b3e866661f7790da454cef54d9
[]
no_license
BRICOMATA9/Teaching
13ea3486dce38d7f547a766f8d99da8123977473
d2e5ea4ffed566f2d0e68138f45a18289acf0d24
refs/heads/master
2022-03-01T01:29:14.844873
2019-11-02T11:08:48
2019-11-02T11:08:48
177,467,808
1
0
null
null
null
null
UTF-8
Java
false
false
235
java
import java.util.Scanner; import java.lang.String; public class test9 { private static Scanner scan =new Scanner(System.in); public static void main (String[] args) { for(int i=0;i<6;i++) System.out.println(scan.next(".")); } }
[ "githubfortyuds@gmail.com" ]
githubfortyuds@gmail.com
86507d292ad4ccee861e454b53a16795a6360233
dc1dbb7e5a4b95bf44170d2f51fd08b3814f2ac9
/data_defect4j/preprossed_method_corpus/Math/65/org/apache/commons/math/stat/correlation/SpearmansCorrelation_computeCorrelationMatrix_117.java
8b030384680143e46e8eabb2db412e6abf31d996
[]
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
912
java
org apach common math stat correl spearman' rank correl implement perform rank transform input data comput link pearson correl pearsonscorrel rank data rank comput link natur rank naturalrank strategi handl nan ti data nan maxim ti averag rank algorithm set constructor argument version revis date spearman correl spearmanscorrel comput spearman' rank correl matrix column input matrix param matrix matrix column repres variabl correl correl matrix real matrix realmatrix comput correl matrix computecorrelationmatrix real matrix realmatrix matrix real matrix realmatrix matrix copi matrixcopi matrix copi rank transform ranktransform matrix copi matrixcopi pearson correl pearsonscorrel comput correl matrix computecorrelationmatrix matrix copi matrixcopi
[ "hvdthong@gmail.com" ]
hvdthong@gmail.com
9d78b9c2915a2a5c9d60b62b65853f363342efe3
41ce5edf2e270e321dddd409ffac11ab7f32de86
/3/com/android/ide/eclipse/adt/refactorings/extractstring/ExtractStringContribution.java
465e1a36c8dae0244a13a5a6fe5f35f89bd4d122
[]
no_license
danny-source/SDK_Android_Source_03-14
372bb03020203dba71bc165c8370b91c80bc6eaa
323ad23e16f598d5589485b467bb9fba7403c811
refs/heads/master
2020-05-18T11:19:29.171830
2014-03-29T12:12:44
2014-03-29T12:12:44
18,238,039
2
2
null
null
null
null
UTF-8
Java
false
false
1,909
java
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php * * 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.android.ide.eclipse.adt.refactorings.extractstring; import org.eclipse.ltk.core.refactoring.RefactoringContribution; import org.eclipse.ltk.core.refactoring.RefactoringDescriptor; import java.util.Map; /** * @see ExtractStringDescriptor */ public class ExtractStringContribution extends RefactoringContribution { /* (non-Javadoc) * @see org.eclipse.ltk.core.refactoring.RefactoringContribution#createDescriptor(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.util.Map, int) */ @SuppressWarnings("unchecked") @Override public RefactoringDescriptor createDescriptor( String id, String project, String description, String comment, Map arguments, int flags) throws IllegalArgumentException { return new ExtractStringDescriptor(project, description, comment, arguments); } @SuppressWarnings("unchecked") @Override public Map retrieveArgumentMap(RefactoringDescriptor descriptor) { if (descriptor instanceof ExtractStringDescriptor) { return ((ExtractStringDescriptor) descriptor).getArguments(); } return super.retrieveArgumentMap(descriptor); } }
[ "danny@35g.tw" ]
danny@35g.tw
babde894f23b3895d052d64a5f7aecfd5a07703d
ed604b012ff7040db218efd1b9b49c514e15e14c
/src/main/java/com/desgreen/education/siapp/security_model/EnumOrganizationLevel.java
b7d6a52101f7ef6a0ff4bee8d075956927b9ff50
[ "Unlicense" ]
permissive
bagus-stimata/siapp
2f2edf0be9c00c629faffa050bf060ccd3d3c0c7
67f6ddde5efcf01959100f084da402453d7a419d
refs/heads/master
2022-12-25T09:05:36.261606
2020-10-11T11:28:03
2020-10-11T11:28:03
284,419,437
1
0
null
null
null
null
UTF-8
Java
false
false
747
java
package com.desgreen.education.siapp.security_model; public enum EnumOrganizationLevel { SYS("SYS", "System/Top Level"), CORP("CORP", "Corporation Level"), DIV("DIV", "Division Level"), OTH1("OTH1", "Others 1"); private String stringId; private String description; private EnumOrganizationLevel(String stringId, String description){ this.stringId = stringId; this.description = description; } public String getStringId() { return stringId; } public void setStringId(String stringId) { this.stringId = stringId; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } }
[ "bagus.stimata@gmail.com" ]
bagus.stimata@gmail.com
56225e33a2efe62b0812dbdedb4a758517b6ad48
9254e7279570ac8ef687c416a79bb472146e9b35
/sofa-20190815/src/main/java/com/aliyun/sofa20190815/models/UpdateMsSgFaultInjectRuleRequest.java
296f436b03818a6ed5edd083e206e75db0fce0f9
[ "Apache-2.0" ]
permissive
lquterqtd/alibabacloud-java-sdk
3eaa17276dd28004dae6f87e763e13eb90c30032
3e5dca8c36398469e10cdaaa34c314ae0bb640b4
refs/heads/master
2023-08-12T13:56:26.379027
2021-10-19T07:22:15
2021-10-19T07:22:15
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,964
java
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.sofa20190815.models; import com.aliyun.tea.*; public class UpdateMsSgFaultInjectRuleRequest extends TeaModel { @NameInMap("Id") public Long id; @NameInMap("InstanceId") public String instanceId; @NameInMap("RuleConfig") public String ruleConfig; @NameInMap("RuleName") public String ruleName; @NameInMap("DataId") public String dataId; @NameInMap("AppName") public String appName; public static UpdateMsSgFaultInjectRuleRequest build(java.util.Map<String, ?> map) throws Exception { UpdateMsSgFaultInjectRuleRequest self = new UpdateMsSgFaultInjectRuleRequest(); return TeaModel.build(map, self); } public UpdateMsSgFaultInjectRuleRequest setId(Long id) { this.id = id; return this; } public Long getId() { return this.id; } public UpdateMsSgFaultInjectRuleRequest setInstanceId(String instanceId) { this.instanceId = instanceId; return this; } public String getInstanceId() { return this.instanceId; } public UpdateMsSgFaultInjectRuleRequest setRuleConfig(String ruleConfig) { this.ruleConfig = ruleConfig; return this; } public String getRuleConfig() { return this.ruleConfig; } public UpdateMsSgFaultInjectRuleRequest setRuleName(String ruleName) { this.ruleName = ruleName; return this; } public String getRuleName() { return this.ruleName; } public UpdateMsSgFaultInjectRuleRequest setDataId(String dataId) { this.dataId = dataId; return this; } public String getDataId() { return this.dataId; } public UpdateMsSgFaultInjectRuleRequest setAppName(String appName) { this.appName = appName; return this; } public String getAppName() { return this.appName; } }
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
dde77e0f828f0b8a14e4afa11235483600097847
13c2d3db2d49c40c74c2e6420a9cd89377f1c934
/program_data/JavaProgramData/95/937.java
a5813a5ac061b211909c5c888165cdeecbb55a6e
[ "MIT" ]
permissive
qiuchili/ggnn_graph_classification
c2090fefe11f8bf650e734442eb96996a54dc112
291ff02404555511b94a4f477c6974ebd62dcf44
refs/heads/master
2021-10-18T14:54:26.154367
2018-10-21T23:34:14
2018-10-21T23:34:14
null
0
0
null
null
null
null
UTF-8
Java
false
false
878
java
package <missing>; public class GlobalMembers { public static void Main() { int i; int n; String a = new String(new char[100]); String b = new String(new char[100]); char c; a = new Scanner(System.in).nextLine(); b = new Scanner(System.in).nextLine(); n = a.length() > b.length()?a.length():b.length(); for (i = 0;i < n;i++) { if (a.charAt(i) >= 'A' && a.charAt(i) <= 'Z' && b.charAt(i) <= 'z' && b.charAt(i) >= 'a') { b = tangible.StringFunctions.changeCharacter(b, i, b.charAt(i) - 32); } if (a.charAt(i) >= 'a' && a.charAt(i) <= 'z' && b.charAt(i) <= 'Z' && b.charAt(i) >= 'A') { a = tangible.StringFunctions.changeCharacter(a, i, a.charAt(i) - 32); } } if (strcmp(a,b) > 0) { System.out.print(">"); } else if (strcmp(a,b) == 0) { System.out.print("="); } else { System.out.print("<"); } } }
[ "y.yu@open.ac.uk" ]
y.yu@open.ac.uk
201248fa649a67a11bc437674c9a046c8fe18db3
09e6690147eedf58189c09546a8b4d50300c725b
/weizu-parent/weizu-web-modules/weizu-channel/src/test/java/crud/aotest/UUIDGenerator.java
2e6ef70c311708c22f059bfaa7756595382622b4
[]
no_license
showlofans/weizu_channel
3c846e8df738b28db539324c28500d2b82172e83
39de1347be4a988acd2aa929d0d52e95dc8dbba9
refs/heads/master
2022-01-27T09:35:10.396785
2022-01-23T12:25:32
2022-01-23T12:25:32
95,176,460
0
1
null
2018-04-14T10:01:38
2017-06-23T02:42:08
Java
UTF-8
Java
false
false
3,156
java
//package crud.aotest; //import java.io.Serializable; //import java.net.InetAddress; // //public class UUIDGenerator { // // /** // * Description:生成形如‘2c9081261d50d1c4011d50d1c4320000’的32位uuid串 // * @param args // */ // public static void main(String[] args) { // UUIDGenerator uuidGenerator = new UUIDGenerator(); // System.out.println(uuidGenerator.generate().toString()); // } // private static final int IP; // public static int IptoInt( byte[] bytes ) { // int result = 0; // for (int i=0; i<4; i++) { // result = ( result << 8 ) - Byte.MIN_VALUE + (int) bytes[i]; // } // return result; // } // static { // int ipadd; // try { // ipadd = IptoInt( InetAddress.getLocalHost().getAddress() ); // } // catch (Exception e) { // ipadd = 0; // } // IP = ipadd; // } // private static short counter = (short) 0; // private static final int JVM = (int) ( System.currentTimeMillis() >>> 8 ); // // public UUIDGenerator() { // } // // /** // * Unique across JVMs on this machine (unless they load this class // * in the same quater second - very unlikely) // */ // protected int getJVM() { // return JVM; // } // // /** // * Unique in a millisecond for this JVM instance (unless there // * are > Short.MAX_VALUE instances created in a millisecond) // */ // protected short getCount() { // synchronized(UUIDGenerator.class) { // if (counter<0) counter=0; // return counter++; // } // } // // /** // * Unique in a local network // */ // protected int getIP() { // return IP; // } // // /** // * Unique down to millisecond // */ // protected short getHiTime() { // return (short) ( System.currentTimeMillis() >>> 32 ); // } // protected int getLoTime() { // return (int) System.currentTimeMillis(); // } // // private final static String sep = ""; // // protected String format(int intval) { // String formatted = Integer.toHexString(intval); // StringBuffer buf = new StringBuffer("00000000"); // buf.replace( 8-formatted.length(), 8, formatted ); // return buf.toString(); // } // // protected String format(short shortval) { // String formatted = Integer.toHexString(shortval); // StringBuffer buf = new StringBuffer("0000"); // buf.replace( 4-formatted.length(), 4, formatted ); // return buf.toString(); // } // // public Serializable generate() { // return new StringBuffer(36) // .append( format( getIP() ) ).append(sep) // .append( format( getJVM() ) ).append(sep) // .append( format( getHiTime() ) ).append(sep) // .append( format( getLoTime() ) ).append(sep) // .append( format( getCount() ) ) // .toString(); //402880ef5ccf3100015ccf31006e0000 // } //}
[ "1727661035@qq.com" ]
1727661035@qq.com
5e7202b04c6de7dda4fd97c4812d839e06ee5979
ba7ea425a956d6ed74d7d52549c6c660071e312d
/saml-extensions/src/main/java/uk/gov/ida/saml/core/extensions/eidas/PersonIdentifier.java
c0f46ff2f0f406bf74ab6f4f2c09954cb5477040
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
willp-bl/verify-stub-idp
a7860f1854f414ee0ba0c5d2620bf0cd77f8a11a
bfbf554b4d73c45e434cc9c1c2117d0388145069
refs/heads/monorepo
2023-07-06T01:46:02.867893
2019-02-19T16:15:04
2019-02-19T16:15:04
128,985,826
0
1
MIT
2019-09-25T20:43:39
2018-04-10T19:37:08
Java
UTF-8
Java
false
false
1,166
java
package uk.gov.ida.saml.core.extensions.eidas; import org.opensaml.saml.common.xml.SAMLConstants; import org.opensaml.saml.saml2.core.AttributeValue; import uk.gov.ida.saml.core.IdaConstants; import javax.xml.namespace.QName; import static uk.gov.ida.saml.core.IdaConstants.EIDAS_NATURAL_PERSON_NS; public interface PersonIdentifier extends AttributeValue { /** Element local name. */ String DEFAULT_ELEMENT_LOCAL_NAME = "AttributeValue"; /** Default element name. */ QName DEFAULT_ELEMENT_NAME = new QName(SAMLConstants.SAML20_NS, DEFAULT_ELEMENT_LOCAL_NAME, SAMLConstants.SAML20_PREFIX); /** Local name of the XSI type. */ String TYPE_LOCAL_NAME = "PersonIdentifierType"; /** QName of the XSI type. */ QName TYPE_NAME = new QName(EIDAS_NATURAL_PERSON_NS, TYPE_LOCAL_NAME, IdaConstants.EIDAS_NATURUAL_PREFIX); /** * Return the person identifier. * * @return the person identifier */ public String getPersonIdentifier(); /** * Set the person identifier. * * @param personIdentifier the person identifier */ public void setPersonIdentifier(String personIdentifier); }
[ "william.palmer@digital.cabinet-office.gov.uk" ]
william.palmer@digital.cabinet-office.gov.uk
454fba29dddbdb604f0ff15abf64b9cf5f853eda
b7693e7a6ba1c217c17b257f56367a6c826193f2
/plugins/org.ifc4emf.metamodel.ifc/src/IFC2X3/IfcExtrudedAreaSolid.java
cbf3b3c9a29e8b3cb2b2b08592b1d3b07814693e
[]
no_license
patins1/ifc4emf
6941967114f87965ea124c36b95aaedc5ef01349
ad65df3fce500e5691625d4e0906041c8c0db284
refs/heads/master
2021-01-19T10:40:16.758125
2017-09-11T02:25:57
2017-09-11T02:25:57
87,891,492
0
0
null
null
null
null
UTF-8
Java
false
false
3,210
java
/** * <copyright> * </copyright> * * $Id$ */ package IFC2X3; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Ifc Extruded Area Solid</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * <ul> * <li>{@link IFC2X3.IfcExtrudedAreaSolid#getExtrudedDirection <em>Extruded Direction</em>}</li> * <li>{@link IFC2X3.IfcExtrudedAreaSolid#getDepth <em>Depth</em>}</li> * </ul> * </p> * * @see IFC2X3.IFC2X3Package#getIfcExtrudedAreaSolid() * @model * @generated */ public interface IfcExtrudedAreaSolid extends IfcSweptAreaSolid { /** * Returns the value of the '<em><b>Extruded Direction</b></em>' reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Extruded Direction</em>' reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Extruded Direction</em>' reference. * @see #setExtrudedDirection(IfcDirection) * @see IFC2X3.IFC2X3Package#getIfcExtrudedAreaSolid_ExtrudedDirection() * @model required="true" * @generated */ IfcDirection getExtrudedDirection(); /** * Sets the value of the '{@link IFC2X3.IfcExtrudedAreaSolid#getExtrudedDirection <em>Extruded Direction</em>}' reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Extruded Direction</em>' reference. * @see #getExtrudedDirection() * @generated */ void setExtrudedDirection(IfcDirection value); /** * Returns the value of the '<em><b>Depth</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Depth</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Depth</em>' attribute. * @see #isSetDepth() * @see #unsetDepth() * @see #setDepth(Double) * @see IFC2X3.IFC2X3Package#getIfcExtrudedAreaSolid_Depth() * @model unsettable="true" dataType="IFC2X3.REAL" required="true" * @generated */ Double getDepth(); /** * Sets the value of the '{@link IFC2X3.IfcExtrudedAreaSolid#getDepth <em>Depth</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Depth</em>' attribute. * @see #isSetDepth() * @see #unsetDepth() * @see #getDepth() * @generated */ void setDepth(Double value); /** * Unsets the value of the '{@link IFC2X3.IfcExtrudedAreaSolid#getDepth <em>Depth</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see #isSetDepth() * @see #getDepth() * @see #setDepth(Double) * @generated */ void unsetDepth(); /** * Returns whether the value of the '{@link IFC2X3.IfcExtrudedAreaSolid#getDepth <em>Depth</em>}' attribute is set. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return whether the value of the '<em>Depth</em>' attribute is set. * @see #unsetDepth() * @see #getDepth() * @see #setDepth(Double) * @generated */ boolean isSetDepth(); } // IfcExtrudedAreaSolid
[ "patins@4fe55a55-8cb9-4820-ac24-0eeacf389520" ]
patins@4fe55a55-8cb9-4820-ac24-0eeacf389520
6507a95df1076df46cc17feb247a5233af94c890
5d76b555a3614ab0f156bcad357e45c94d121e2d
/src/com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.java
6d63829ebe458a89c44d9563aaf40e8d9c8da1d0
[]
no_license
BinSlashBash/xcrumby
8e09282387e2e82d12957d22fa1bb0322f6e6227
5b8b1cc8537ae1cfb59448d37b6efca01dded347
refs/heads/master
2016-09-01T05:58:46.144411
2016-02-15T13:23:25
2016-02-15T13:23:25
51,755,603
5
1
null
null
null
null
UTF-8
Java
false
false
2,519
java
package com.fasterxml.jackson.databind.introspect; import com.fasterxml.jackson.databind.AnnotationIntrospector.ReferenceProperty; import com.fasterxml.jackson.databind.PropertyMetadata; import com.fasterxml.jackson.databind.PropertyName; import com.fasterxml.jackson.databind.util.Named; public abstract class BeanPropertyDefinition implements Named { public boolean couldDeserialize() { return getMutator() != null; } public boolean couldSerialize() { return getAccessor() != null; } public ObjectIdInfo findObjectIdInfo() { return null; } public AnnotationIntrospector.ReferenceProperty findReferenceType() { return null; } public Class<?>[] findViews() { return null; } public abstract AnnotatedMember getAccessor(); public abstract AnnotatedParameter getConstructorParameter(); public abstract AnnotatedField getField(); public abstract PropertyName getFullName(); public abstract AnnotatedMethod getGetter(); public abstract String getInternalName(); public abstract PropertyMetadata getMetadata(); public abstract AnnotatedMember getMutator(); public abstract String getName(); public abstract AnnotatedMember getNonConstructorMutator(); public AnnotatedMember getPrimaryMember() { return null; } public abstract AnnotatedMethod getSetter(); public abstract PropertyName getWrapperName(); public abstract boolean hasConstructorParameter(); public abstract boolean hasField(); public abstract boolean hasGetter(); public abstract boolean hasSetter(); public abstract boolean isExplicitlyIncluded(); public boolean isExplicitlyNamed() { return isExplicitlyIncluded(); } public final boolean isRequired() { PropertyMetadata localPropertyMetadata = getMetadata(); return (localPropertyMetadata != null) && (localPropertyMetadata.isRequired()); } public boolean isTypeId() { return false; } public abstract BeanPropertyDefinition withName(PropertyName paramPropertyName); @Deprecated public BeanPropertyDefinition withName(String paramString) { return withSimpleName(paramString); } public abstract BeanPropertyDefinition withSimpleName(String paramString); } /* Location: /home/dev/Downloads/apk/dex2jar-2.0/crumby-dex2jar.jar!/com/fasterxml/jackson/databind/introspect/BeanPropertyDefinition.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */
[ "binslashbash@otaking.top" ]
binslashbash@otaking.top