code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public Object getService(TargetMetaDef targetMetaDef) { Debug.logVerbose("[JdonFramework] --> enter getService from dynamicProxy", module); Object dynamicProxy = _proxyCache.get(targetMetaDef); if (dynamicProxy == null) { dynamicProxy = getServiceFromProxy(targetMeta...
public class class_name { public Object getService(TargetMetaDef targetMetaDef) { Debug.logVerbose("[JdonFramework] --> enter getService from dynamicProxy", module); Object dynamicProxy = _proxyCache.get(targetMetaDef); if (dynamicProxy == null) { dynamicProxy = getServiceFromProxy(targetMeta...
public class class_name { public byte[] encrypt(byte[] message, byte[] aad, byte[] iv) throws GeneralSecurityException { Cipher cipher = getCipher(true); if(iv == null && generateIV && ivLength > 0) { iv = generateIV(); } if(iv != null) { cipher.init(Cipher.ENCRYPT_MODE, getKey(), getAlgorithmParameterSp...
public class class_name { public byte[] encrypt(byte[] message, byte[] aad, byte[] iv) throws GeneralSecurityException { Cipher cipher = getCipher(true); if(iv == null && generateIV && ivLength > 0) { iv = generateIV(); } if(iv != null) { cipher.init(Cipher.ENCRYPT_MODE, getKey(), getAlgorithmParameterSp...
public class class_name { public List<ServiceRefType<MessageDrivenBeanType<T>>> getAllServiceRef() { List<ServiceRefType<MessageDrivenBeanType<T>>> list = new ArrayList<ServiceRefType<MessageDrivenBeanType<T>>>(); List<Node> nodeList = childNode.get("service-ref"); for(Node node: nodeList) {...
public class class_name { public List<ServiceRefType<MessageDrivenBeanType<T>>> getAllServiceRef() { List<ServiceRefType<MessageDrivenBeanType<T>>> list = new ArrayList<ServiceRefType<MessageDrivenBeanType<T>>>(); List<Node> nodeList = childNode.get("service-ref"); for(Node node: nodeList) {...
public class class_name { public void getAll(BoundingBox bounds, Handler<GpsTrackpoint> handler, int page) { if(page < 0) throw new IllegalArgumentException("Page number must be greater than or equal to 0"); String query = "trackpoints?bbox="+bounds.getAsLeftBottomRightTopString() + "&page=" + page; ...
public class class_name { public void getAll(BoundingBox bounds, Handler<GpsTrackpoint> handler, int page) { if(page < 0) throw new IllegalArgumentException("Page number must be greater than or equal to 0"); String query = "trackpoints?bbox="+bounds.getAsLeftBottomRightTopString() + "&page=" + page; ...
public class class_name { private AuthConfig getAuthConfigFromEC2InstanceRole() throws IOException { log.debug("No user and password set for ECR, checking EC2 instance role"); try (CloseableHttpClient client = HttpClients.custom().useSystemProperties().build()) { // we can set very low time...
public class class_name { private AuthConfig getAuthConfigFromEC2InstanceRole() throws IOException { log.debug("No user and password set for ECR, checking EC2 instance role"); try (CloseableHttpClient client = HttpClients.custom().useSystemProperties().build()) { // we can set very low time...
public class class_name { public static lbmonitor_binding[] get(nitro_service service, String monitorname[]) throws Exception{ if (monitorname !=null && monitorname.length>0) { lbmonitor_binding response[] = new lbmonitor_binding[monitorname.length]; lbmonitor_binding obj[] = new lbmonitor_binding[monitorname....
public class class_name { public static lbmonitor_binding[] get(nitro_service service, String monitorname[]) throws Exception{ if (monitorname !=null && monitorname.length>0) { lbmonitor_binding response[] = new lbmonitor_binding[monitorname.length]; lbmonitor_binding obj[] = new lbmonitor_binding[monitorname....
public class class_name { @Override public void execute(FunctionContext<Object> functionContext) { ResultSender<Object> sender = functionContext.getResultSender(); Cache cache = CacheFactory.getAnyInstance(); Logger logWriter = LogManager.getLogger(getClass()); try { //export data ...
public class class_name { @Override public void execute(FunctionContext<Object> functionContext) { ResultSender<Object> sender = functionContext.getResultSender(); Cache cache = CacheFactory.getAnyInstance(); Logger logWriter = LogManager.getLogger(getClass()); try { //export data ...
public class class_name { protected <T> void createObserversProducersDisposers(AbstractClassBean<T> bean) { if (bean instanceof ManagedBean<?> || bean instanceof SessionBean<?>) { // disposal methods have to go first as we want them to be ready for resolution when initializing producer method/field...
public class class_name { protected <T> void createObserversProducersDisposers(AbstractClassBean<T> bean) { if (bean instanceof ManagedBean<?> || bean instanceof SessionBean<?>) { // disposal methods have to go first as we want them to be ready for resolution when initializing producer method/field...
public class class_name { @Override public String getFormattedMessage() { String result = localizedMessage==null ? rawMessage : localizedMessage; if (parameters != null) { try { return MessageFormat.format(result, parameters); } catch (IllegalArgumentException iae) { // In case of problem with posit...
public class class_name { @Override public String getFormattedMessage() { String result = localizedMessage==null ? rawMessage : localizedMessage; if (parameters != null) { try { return MessageFormat.format(result, parameters); // depends on control dependency: [try], data = [none] } catch (IllegalArgume...
public class class_name { public int indexOf( Widget w ) { for( int i = 0; i < size; ++i ) { if( array[i] == w ) { return i; } } return -1; } }
public class class_name { public int indexOf( Widget w ) { for( int i = 0; i < size; ++i ) { if( array[i] == w ) { return i; // depends on control dependency: [if], data = [none] } } return -1; } }
public class class_name { private UserRegistry determineActiveUserRegistry(boolean exceptionOnError) throws RegistryException { synchronized (userRegistrySync) { UserRegistry ur = userRegistry.get(); if (ur == null) { if (isConfigured()) { ur = getUse...
public class class_name { private UserRegistry determineActiveUserRegistry(boolean exceptionOnError) throws RegistryException { synchronized (userRegistrySync) { UserRegistry ur = userRegistry.get(); if (ur == null) { if (isConfigured()) { ur = getUse...
public class class_name { @Override public DescriptorValue calculate(IAtomContainer atomContainer) { int n = 0; // count all heavy atom - heavy atom bonds for (IBond bond : atomContainer.bonds()) { if (bond.getBegin().getAtomicNumber() != 1 && bond.getEnd().getAtomicNumber() != 1) { ...
public class class_name { @Override public DescriptorValue calculate(IAtomContainer atomContainer) { int n = 0; // count all heavy atom - heavy atom bonds for (IBond bond : atomContainer.bonds()) { if (bond.getBegin().getAtomicNumber() != 1 && bond.getEnd().getAtomicNumber() != 1) { ...
public class class_name { private String getStringInternal(final String key, final String defaultValue) { synchronized (this.confData) { if (!this.confData.containsKey(key)) { return defaultValue; } return this.confData.get(key); } } }
public class class_name { private String getStringInternal(final String key, final String defaultValue) { synchronized (this.confData) { if (!this.confData.containsKey(key)) { return defaultValue; // depends on control dependency: [if], data = [none] } return this.confData.get(key); } } }
public class class_name { @Override public void mustReplace(final int slotNo, final int value) { final int idx = find(auxIntArr, lgAuxArrInts, lgConfigK, slotNo); if (idx >= 0) { auxIntArr[idx] = HllUtil.pair(slotNo, value); //replace return; } final String pairStr = HllUtil.pairString(Hl...
public class class_name { @Override public void mustReplace(final int slotNo, final int value) { final int idx = find(auxIntArr, lgAuxArrInts, lgConfigK, slotNo); if (idx >= 0) { auxIntArr[idx] = HllUtil.pair(slotNo, value); //replace // depends on control dependency: [if], data = [none] return; ...
public class class_name { @Override public Future<RawGcsCreationToken> continueObjectCreationAsync(final RawGcsCreationToken token, final ByteBuffer chunk, long timeoutMillis) { try { ensureInitialized(); } catch (IOException e) { throw new RuntimeException(e); } final Environment e...
public class class_name { @Override public Future<RawGcsCreationToken> continueObjectCreationAsync(final RawGcsCreationToken token, final ByteBuffer chunk, long timeoutMillis) { try { ensureInitialized(); // depends on control dependency: [try], data = [none] } catch (IOException e) { throw...
public class class_name { Location append(String relativeURI) { relativeURI = encodeIllegalCharacters(relativeURI); if (uri.toString().endsWith("/") && relativeURI.startsWith("/")) { relativeURI = relativeURI.substring(1); } if (!uri.toString().endsWith("/") && !relativeURI....
public class class_name { Location append(String relativeURI) { relativeURI = encodeIllegalCharacters(relativeURI); if (uri.toString().endsWith("/") && relativeURI.startsWith("/")) { relativeURI = relativeURI.substring(1); // depends on control dependency: [if], data = [none] } ...
public class class_name { public Object evaluate(Reader in, String fileName) throws CompilationFailedException { Script script = null; try { script = parse(in, fileName); return script.run(); } finally { if (script != null) { InvokerHelper.rem...
public class class_name { public Object evaluate(Reader in, String fileName) throws CompilationFailedException { Script script = null; try { script = parse(in, fileName); return script.run(); } finally { if (script != null) { InvokerHelper.rem...
public class class_name { protected boolean addItem(final Suggestion suggestion) { SelectionEvent.fire(MaterialAutoComplete.this, suggestion); if (getLimit() > 0) { if (suggestionMap.size() >= getLimit()) { return false; } } if (suggestionMap.con...
public class class_name { protected boolean addItem(final Suggestion suggestion) { SelectionEvent.fire(MaterialAutoComplete.this, suggestion); if (getLimit() > 0) { if (suggestionMap.size() >= getLimit()) { return false; // depends on control dependency: [if], data = [none] ...
public class class_name { public static void safeClose(@Nullable Closeable closeable) { if (closeable == null) return; try { closeable.close(); } catch (IOException ignored) { // We made out best effort to release this resource. Nothing more we can do. } } }
public class class_name { public static void safeClose(@Nullable Closeable closeable) { if (closeable == null) return; try { closeable.close(); // depends on control dependency: [try], data = [none] } catch (IOException ignored) { // We made out best effort to release t...
public class class_name { private GeoResult<?> buildGeoResult(final ArangoCursor<?> cursor) { GeoResult<?> geoResult = null; while (cursor.hasNext() && geoResult == null) { final Object object = cursor.next(); if (!(object instanceof VPackSlice)) { continue; } final VPackSlice slice = (VPackSlice)...
public class class_name { private GeoResult<?> buildGeoResult(final ArangoCursor<?> cursor) { GeoResult<?> geoResult = null; while (cursor.hasNext() && geoResult == null) { final Object object = cursor.next(); if (!(object instanceof VPackSlice)) { continue; } final VPackSlice slice = (VPackSlice)...
public class class_name { public void start(URL deployableUnitURL, String deployableUnitName) throws DeploymentException { synchronized (this) { if (!shutdown) { sleeSubDeployer.start(deployableUnitURL, deployableUnitName); } else { if (LOGGER.isDebugEnabled()) LOGGER.debug("Ignoring deploy inv...
public class class_name { public void start(URL deployableUnitURL, String deployableUnitName) throws DeploymentException { synchronized (this) { if (!shutdown) { sleeSubDeployer.start(deployableUnitURL, deployableUnitName); // depends on control dependency: [if], data = [none] } else { if (LOGGER.is...
public class class_name { public String splitSpecialStateSwitch(String specialStateTransition){ Matcher transformedSpecialStateMatcher = TRANSORMED_SPECIAL_STATE_TRANSITION_METHOD.matcher(specialStateTransition); if( !transformedSpecialStateMatcher.find() ){ return specialStateTransition; } String sp...
public class class_name { public String splitSpecialStateSwitch(String specialStateTransition){ Matcher transformedSpecialStateMatcher = TRANSORMED_SPECIAL_STATE_TRANSITION_METHOD.matcher(specialStateTransition); if( !transformedSpecialStateMatcher.find() ){ return specialStateTransition; // depends on cont...
public class class_name { public static <T> boolean containsAll(T[] array, T[] check) { for (T checkItem : check) { if (!contains(array, checkItem)) { return false; } } return true; } }
public class class_name { public static <T> boolean containsAll(T[] array, T[] check) { for (T checkItem : check) { if (!contains(array, checkItem)) { return false; // depends on control dependency: [if], data = [none] } } return true; } }
public class class_name { private ImmutableTerm getNestedConcat(String str) { List<ImmutableTerm> terms; terms = addToTermsList(str); if (terms.size() == 1) { return terms.get(0); } ImmutableFunctionalTerm f = termFactory.getImmutableFunctionalTerm(ExpressionOperati...
public class class_name { private ImmutableTerm getNestedConcat(String str) { List<ImmutableTerm> terms; terms = addToTermsList(str); if (terms.size() == 1) { return terms.get(0); // depends on control dependency: [if], data = [none] } ImmutableFunctionalTerm f = te...
public class class_name { public boolean hasAnyScopeMatching(String... scopesRegex) { boolean result = OAuth2ExpressionUtils.hasAnyScopeMatching(authentication, scopesRegex); if (!result) { missingScopes.addAll(Arrays.asList(scopesRegex)); } return result; } }
public class class_name { public boolean hasAnyScopeMatching(String... scopesRegex) { boolean result = OAuth2ExpressionUtils.hasAnyScopeMatching(authentication, scopesRegex); if (!result) { missingScopes.addAll(Arrays.asList(scopesRegex)); // depends on control dependency: [if], data = [none] } return resu...
public class class_name { private boolean isTokenInSentence(AnalyzedTokenReadings testToken, AnalyzedTokenReadings[] tokens, int notCheck) { if (testToken == null || tokens == null) { return false; } List<AnalyzedToken> readings = testToken.getReadings(); List<String> lemmas = new ArrayList<>(); ...
public class class_name { private boolean isTokenInSentence(AnalyzedTokenReadings testToken, AnalyzedTokenReadings[] tokens, int notCheck) { if (testToken == null || tokens == null) { return false; // depends on control dependency: [if], data = [none] } List<AnalyzedToken> readings = testToken.getRea...
public class class_name { public static TimeZone parseBackendTimeZone(String timeZone) { if (timeZone.startsWith("GMT")) { TimeZone tz = GMT_ZONES.get(timeZone); if (tz != null) { return tz; } } return TimeZone.getTimeZone(timeZone); } }
public class class_name { public static TimeZone parseBackendTimeZone(String timeZone) { if (timeZone.startsWith("GMT")) { TimeZone tz = GMT_ZONES.get(timeZone); if (tz != null) { return tz; // depends on control dependency: [if], data = [none] } } return TimeZone.getTimeZone(time...
public class class_name { public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) { int cnt = from[0].length; float[] fromLatA = from[latIndex]; float[] fromLonA = from[lonIndex]; float[] resultXA = to[INDEX_X]; float[] resultYA ...
public class class_name { public float[][] latLonToProj(float[][] from, float[][] to, int latIndex, int lonIndex) { int cnt = from[0].length; float[] fromLatA = from[latIndex]; float[] fromLonA = from[lonIndex]; float[] resultXA = to[INDEX_X]; float[] resultYA ...
public class class_name { private static boolean isEditableTemplate(@NotNull Template template) { Resource resource = template.adaptTo(Resource.class); if (resource != null) { return resource.getChild(NN_EDITABLE_TEMPLATE_INITIAL) != null && resource.getChild(NN_EDITABLE_TEMPLATE_STRUCTURE) != ...
public class class_name { private static boolean isEditableTemplate(@NotNull Template template) { Resource resource = template.adaptTo(Resource.class); if (resource != null) { return resource.getChild(NN_EDITABLE_TEMPLATE_INITIAL) != null && resource.getChild(NN_EDITABLE_TEMPLATE_STRUCTURE) != ...
public class class_name { public static String genSequence6Tags(String[] wordArray){ StringBuilder sb = new StringBuilder(); for(int i=0; i<wordArray.length; i++) { String word = wordArray[i]; String tag = null; int len = word.length(); switch(len){ case 1: tag = "S";break; case 2: ...
public class class_name { public static String genSequence6Tags(String[] wordArray){ StringBuilder sb = new StringBuilder(); for(int i=0; i<wordArray.length; i++) { String word = wordArray[i]; String tag = null; int len = word.length(); switch(len){ case 1: tag = "S";break; case 2: ...
public class class_name { private void obtainDialogHeaderIcon(@NonNull final TypedArray typedArray) { int resourceId = typedArray.getResourceId(R.styleable.DialogPreference_dialogHeaderIcon, -1); if (resourceId != -1) { setDialogHeaderIcon(resourceId); } } }
public class class_name { private void obtainDialogHeaderIcon(@NonNull final TypedArray typedArray) { int resourceId = typedArray.getResourceId(R.styleable.DialogPreference_dialogHeaderIcon, -1); if (resourceId != -1) { setDialogHeaderIcon(resourceId); // depends on control...
public class class_name { private static boolean checkPixel(MapTile map, ImageBuffer tileRef, int progressTileX, int progressTileY) { final int x = progressTileX * map.getTileWidth(); final int y = progressTileY * map.getTileHeight(); final int pixel = tileRef.getRgb(x, y); // Skip...
public class class_name { private static boolean checkPixel(MapTile map, ImageBuffer tileRef, int progressTileX, int progressTileY) { final int x = progressTileX * map.getTileWidth(); final int y = progressTileY * map.getTileHeight(); final int pixel = tileRef.getRgb(x, y); // Skip...
public class class_name { public Location withJdbc(CodeGenNodeArg... jdbc) { if (this.jdbc == null) { setJdbc(new java.util.ArrayList<CodeGenNodeArg>(jdbc.length)); } for (CodeGenNodeArg ele : jdbc) { this.jdbc.add(ele); } return this; } }
public class class_name { public Location withJdbc(CodeGenNodeArg... jdbc) { if (this.jdbc == null) { setJdbc(new java.util.ArrayList<CodeGenNodeArg>(jdbc.length)); // depends on control dependency: [if], data = [none] } for (CodeGenNodeArg ele : jdbc) { this.jdbc.add(el...
public class class_name { public String asTagsString() { TreeMap<Tag, Value> orderedAttributes = new TreeMap<Tag, Value>(attributes); StringBuilder result = new StringBuilder(); for (Iterator<Tag> tags = orderedAttributes.keySet().iterator(); tags.hasNext(); ) { Tag tag ...
public class class_name { public String asTagsString() { TreeMap<Tag, Value> orderedAttributes = new TreeMap<Tag, Value>(attributes); StringBuilder result = new StringBuilder(); for (Iterator<Tag> tags = orderedAttributes.keySet().iterator(); tags.hasNext(); ) { Tag tag ...
public class class_name { public void setTraversalAfter(AccessibilityNodeInfo info) { if (this.traversalAfter != null) { this.traversalAfter.recycle(); } this.traversalAfter = obtain(info); } }
public class class_name { public void setTraversalAfter(AccessibilityNodeInfo info) { if (this.traversalAfter != null) { this.traversalAfter.recycle(); // depends on control dependency: [if], data = [none] } this.traversalAfter = obtain(info); } }
public class class_name { public static String encodeXmlAttribute(String str) { if (str == null) return null; int len = str.length(); if (len == 0) return str; StringBuffer encoded = new StringBuffer(); for (int i = 0; i < len; i++) { char c = str.charAt(i); if (c == '<') encoded.append...
public class class_name { public static String encodeXmlAttribute(String str) { if (str == null) return null; int len = str.length(); if (len == 0) return str; StringBuffer encoded = new StringBuffer(); for (int i = 0; i < len; i++) { char c = str.charAt(i); if (c == '<') encoded.append...
public class class_name { public void addOrMergeMention(Mention mention) { if (!mention.getSentence().equals(this)) throw new IllegalArgumentException(); List<Mention> overlapping = new ArrayList<Mention>(); for (Mention mention2 : mentions) { if (ment...
public class class_name { public void addOrMergeMention(Mention mention) { if (!mention.getSentence().equals(this)) throw new IllegalArgumentException(); List<Mention> overlapping = new ArrayList<Mention>(); for (Mention mention2 : mentions) { if (ment...
public class class_name { private Direction getScrollDirection(int offset) { if (m_scrollElement == null) { Element body = RootPanel.getBodyElement(); int windowHeight = Window.getClientHeight(); int bodyHeight = body.getClientHeight(); if (windowHeight < bodyHe...
public class class_name { private Direction getScrollDirection(int offset) { if (m_scrollElement == null) { Element body = RootPanel.getBodyElement(); int windowHeight = Window.getClientHeight(); int bodyHeight = body.getClientHeight(); if (windowHeight < bodyHe...
public class class_name { public void matchList(String elementName, Vector values, int oper) { // Delete the old search criteria criteria = new Criteria(); if (oper != NOT_IN) { for (int i = 0; i < values.size(); i++) { Criteria te...
public class class_name { public void matchList(String elementName, Vector values, int oper) { // Delete the old search criteria criteria = new Criteria(); if (oper != NOT_IN) { for (int i = 0; i < values.size(); i++) { Criteria te...
public class class_name { public FileGetFromComputeNodeOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; } else { this.ocpDate = new DateTimeRfc1123(ocpDate); } return this; } }
public class class_name { public FileGetFromComputeNodeOptions withOcpDate(DateTime ocpDate) { if (ocpDate == null) { this.ocpDate = null; // depends on control dependency: [if], data = [none] } else { this.ocpDate = new DateTimeRfc1123(ocpDate); // depends on control dependency...
public class class_name { public static final Box getBox(CSSBoxView v) { try { AttributeSet attr = v.getAttributes(); return (Box) attr.getAttribute(Constants.ATTRIBUTE_BOX_REFERENCE); } catch (Exception e) { throw new IllegalStateException(e); ...
public class class_name { public static final Box getBox(CSSBoxView v) { try { AttributeSet attr = v.getAttributes(); return (Box) attr.getAttribute(Constants.ATTRIBUTE_BOX_REFERENCE); // depends on control dependency: [try], data = [none] } catch (Exception e) ...
public class class_name { private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Collection<Runnable> behaviorsMethodsToExecute) throws InterruptedException, ExecutionException { final CountDownLatch doneSignal = new CountDownLatch(behaviorsMethodsToExecute.size()); final OutputParameter<Throwable> ...
public class class_name { private void executeBehaviorMethodsInParalellWithSynchroAtTheEnd(Collection<Runnable> behaviorsMethodsToExecute) throws InterruptedException, ExecutionException { final CountDownLatch doneSignal = new CountDownLatch(behaviorsMethodsToExecute.size()); final OutputParameter<Throwable> ...
public class class_name { public static void compact(Set<String> source, Adder adder, boolean shorterPairs, boolean moreCompact) { if (!moreCompact) { String start = null; String end = null; int lastCp = 0; int prefixLen = 0; for (String s : source) {...
public class class_name { public static void compact(Set<String> source, Adder adder, boolean shorterPairs, boolean moreCompact) { if (!moreCompact) { String start = null; String end = null; int lastCp = 0; int prefixLen = 0; for (String s : source) {...
public class class_name { public static @Nullable String getLibraryPath(String libName) throws IOException { sSoSourcesLock.readLock().lock(); String libPath = null; try { if (sSoSources != null) { for (int i = 0; libPath == null && i < sSoSources.length; ++i) { SoSource currentSour...
public class class_name { public static @Nullable String getLibraryPath(String libName) throws IOException { sSoSourcesLock.readLock().lock(); String libPath = null; try { if (sSoSources != null) { for (int i = 0; libPath == null && i < sSoSources.length; ++i) { SoSource currentSour...
public class class_name { void toJSONString(final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { final boolean prettyPrint = indentWidth > 0; fina...
public class class_name { void toJSONString(final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { final boolean prettyPrint = indentWidth > 0; fina...
public class class_name { protected void configurePropertySources(ConfigurableEnvironment environment, String[] args) { MutablePropertySources sources = environment.getPropertySources(); if (this.defaultProperties != null && !this.defaultProperties.isEmpty()) { sources.addLast( new MapPropertySource("de...
public class class_name { protected void configurePropertySources(ConfigurableEnvironment environment, String[] args) { MutablePropertySources sources = environment.getPropertySources(); if (this.defaultProperties != null && !this.defaultProperties.isEmpty()) { sources.addLast( new MapPropertySource("de...
public class class_name { @SuppressWarnings("unchecked") private void createErrorFile(Watcher watcher, WatchingException e) { mojo.getLog().debug("Creating error file for '" + e.getMessage() + "' happening at " + e.getLine() + ":" + e .getCharacter() + " of " + e.getFile() + ", created by w...
public class class_name { @SuppressWarnings("unchecked") private void createErrorFile(Watcher watcher, WatchingException e) { mojo.getLog().debug("Creating error file for '" + e.getMessage() + "' happening at " + e.getLine() + ":" + e .getCharacter() + " of " + e.getFile() + ", created by w...
public class class_name { public com.apptentive.android.sdk.model.CustomData toJson() { try { com.apptentive.android.sdk.model.CustomData ret = new com.apptentive.android.sdk.model.CustomData(); Set<String> keys = keySet(); for (String key : keys) { ret.put(key, get(key)); } return ret; } catch ...
public class class_name { public com.apptentive.android.sdk.model.CustomData toJson() { try { com.apptentive.android.sdk.model.CustomData ret = new com.apptentive.android.sdk.model.CustomData(); Set<String> keys = keySet(); for (String key : keys) { ret.put(key, get(key)); // depends on control dependen...
public class class_name { public static <T extends OutputStream> T pump(InputStream is, T os, boolean closeIn, boolean closeOut) throws IOException{ byte buff[] = new byte[1024]; int len; Exception exception = null; try{ while((len=is.read(buff))!=-1) os.writ...
public class class_name { public static <T extends OutputStream> T pump(InputStream is, T os, boolean closeIn, boolean closeOut) throws IOException{ byte buff[] = new byte[1024]; int len; Exception exception = null; try{ while((len=is.read(buff))!=-1) os.writ...
public class class_name { public static double max(double a, double b) { if (a != a) return a; // a is NaN if ((a == 0.0d) && (b == 0.0d) && (Double.doubleToRawLongBits(a) == negativeZeroDoubleBits)) { // Raw conversion ok since NaN can't map to -0.0. ...
public class class_name { public static double max(double a, double b) { if (a != a) return a; // a is NaN if ((a == 0.0d) && (b == 0.0d) && (Double.doubleToRawLongBits(a) == negativeZeroDoubleBits)) { // Raw conversion ok since NaN can't map to -0.0. ...
public class class_name { public static int getSupervisorPortNum(Map conf, int sysCpuNum, Long physicalMemSize) { double cpuWeight = ConfigExtension.getSupervisorSlotsPortCpuWeight(conf); int cpuPortNum = (int) (sysCpuNum / cpuWeight); if (cpuPortNum < 1) { LOG.info("Invalid super...
public class class_name { public static int getSupervisorPortNum(Map conf, int sysCpuNum, Long physicalMemSize) { double cpuWeight = ConfigExtension.getSupervisorSlotsPortCpuWeight(conf); int cpuPortNum = (int) (sysCpuNum / cpuWeight); if (cpuPortNum < 1) { LOG.info("Invalid super...
public class class_name { public static double[] timesPlusTimesEquals(final double[] v1, final double s1, final double[] v2, final double s2) { assert v1.length == v2.length : ERR_VEC_DIMENSIONS; for(int i = 0; i < v1.length; i++) { v1[i] = v1[i] * s1 + v2[i] * s2; } return v1; } }
public class class_name { public static double[] timesPlusTimesEquals(final double[] v1, final double s1, final double[] v2, final double s2) { assert v1.length == v2.length : ERR_VEC_DIMENSIONS; for(int i = 0; i < v1.length; i++) { v1[i] = v1[i] * s1 + v2[i] * s2; // depends on control dependency: [for]...
public class class_name { private String getCommitBody(List<BoxFileUploadSessionPart> parts, Map<String, String> attributes) { JsonObject jsonObject = new JsonObject(); JsonArray array = new JsonArray(); for (BoxFileUploadSessionPart part: parts) { JsonObject partObj = new JsonObje...
public class class_name { private String getCommitBody(List<BoxFileUploadSessionPart> parts, Map<String, String> attributes) { JsonObject jsonObject = new JsonObject(); JsonArray array = new JsonArray(); for (BoxFileUploadSessionPart part: parts) { JsonObject partObj = new JsonObje...
public class class_name { @SuppressWarnings("unchecked") public static <E> E[] filter(E[] elems, Filter<E> filter) { List<E> filtered = new ArrayList<E>(); for (E elem: elems) { if (filter.accept(elem)) { filtered.add(elem); } } return (filtered.toArray((E[]) Array.newInst...
public class class_name { @SuppressWarnings("unchecked") public static <E> E[] filter(E[] elems, Filter<E> filter) { List<E> filtered = new ArrayList<E>(); for (E elem: elems) { if (filter.accept(elem)) { filtered.add(elem); // depends on control dependency: [if], data = [none] } ...
public class class_name { XSLTElementProcessor getProcessorFor(String uri, String localName) { XSLTElementProcessor elemDef = null; // return value if (null == m_elements) return null; int n = m_elements.length; int order = -1; boolean multiAllowed = true; for (int i = 0; i < n; i++) ...
public class class_name { XSLTElementProcessor getProcessorFor(String uri, String localName) { XSLTElementProcessor elemDef = null; // return value if (null == m_elements) return null; int n = m_elements.length; int order = -1; boolean multiAllowed = true; for (int i = 0; i < n; i++) ...
public class class_name { public boolean isImportingWicket() { BundleWiring bundleWiring = bundle.adapt(BundleWiring.class); // First check if there is a wiring to any package of org.apache.wicket List<BundleWire> importPackageWires = bundleWiring.getRequiredWires(OSGI_WIRING_PACKAGE_NAMESPACE)...
public class class_name { public boolean isImportingWicket() { BundleWiring bundleWiring = bundle.adapt(BundleWiring.class); // First check if there is a wiring to any package of org.apache.wicket List<BundleWire> importPackageWires = bundleWiring.getRequiredWires(OSGI_WIRING_PACKAGE_NAMESPACE)...
public class class_name { public CountryCodeDataType.Enum getCountryCodeDataType(String countryCode) { CountryCodeDataType.Enum countryCodeDataType = null; CountryContract country = s2SLocationService.getCountryFromCode(countryCode); if (country != null) { StringBuilder countryDetail = new StringBuilder(); ...
public class class_name { public CountryCodeDataType.Enum getCountryCodeDataType(String countryCode) { CountryCodeDataType.Enum countryCodeDataType = null; CountryContract country = s2SLocationService.getCountryFromCode(countryCode); if (country != null) { StringBuilder countryDetail = new StringBuilder(); ...
public class class_name { public void addGroupBy(String[] fieldNames) { for (int i = 0; i < fieldNames.length; i++) { addGroupBy(fieldNames[i]); } } }
public class class_name { public void addGroupBy(String[] fieldNames) { for (int i = 0; i < fieldNames.length; i++) { addGroupBy(fieldNames[i]); // depends on control dependency: [for], data = [i] } } }
public class class_name { private EventConsumer findEventConsumerForSubscriberMethod(SubscriberInfo subscriberInfo, String callDescription) { Method subscriberMethod = subscriberInfo.getSubscriberMethod(); Subscribe subscribeAnnotation = subscriberMethod.getAnnotation(Subscribe.class); if (null...
public class class_name { private EventConsumer findEventConsumerForSubscriberMethod(SubscriberInfo subscriberInfo, String callDescription) { Method subscriberMethod = subscriberInfo.getSubscriberMethod(); Subscribe subscribeAnnotation = subscriberMethod.getAnnotation(Subscribe.class); if (null...
public class class_name { @Override public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException { ChargingStationId csId = new ChargingStationId(chargingStationId); if (!commandAuthorizationService.isAuthorized(cs...
public class class_name { @Override public void handle(String chargingStationId, JsonObject commandObject, IdentityContext identityContext) throws UserIdentityUnauthorizedException { ChargingStationId csId = new ChargingStationId(chargingStationId); if (!commandAuthorizationService.isAuthorized(cs...
public class class_name { public final void draw() { AffineTransform transform = new AffineTransform(this.transform); transform.concatenate(getAlignmentTransform()); // draw the background box this.graphics2d.setTransform(transform); this.graphics2d.setColor(this.params.getBack...
public class class_name { public final void draw() { AffineTransform transform = new AffineTransform(this.transform); transform.concatenate(getAlignmentTransform()); // draw the background box this.graphics2d.setTransform(transform); this.graphics2d.setColor(this.params.getBack...
public class class_name { private Credentials getCredentials(Stage.Context context, List<Stage.ConfigIssue> issues) { Credentials credentials = null; File credentialsFile; if (Paths.get(path).isAbsolute()) { credentialsFile = new File(path); } else { credentialsFile = new File(context.getR...
public class class_name { private Credentials getCredentials(Stage.Context context, List<Stage.ConfigIssue> issues) { Credentials credentials = null; File credentialsFile; if (Paths.get(path).isAbsolute()) { credentialsFile = new File(path); // depends on control dependency: [if], data = [none] ...
public class class_name { public Set<String> rangeByLexReverse(final LexRange lexRange) { return doWithJedis(new JedisCallable<Set<String>>() { @Override public Set<String> call(Jedis jedis) { if (lexRange.hasLimit()) { return jedis.zrevrangeByLex(get...
public class class_name { public Set<String> rangeByLexReverse(final LexRange lexRange) { return doWithJedis(new JedisCallable<Set<String>>() { @Override public Set<String> call(Jedis jedis) { if (lexRange.hasLimit()) { return jedis.zrevrangeByLex(get...
public class class_name { private synchronized void updateDeploymentMap(DigitalObject obj, Connection c) throws SQLException { Set<RelationshipTuple> sDefs = obj.getRelationships(Constants.MODEL.IS_DEPLOYMENT_OF, null); Set<...
public class class_name { private synchronized void updateDeploymentMap(DigitalObject obj, Connection c) throws SQLException { Set<RelationshipTuple> sDefs = obj.getRelationships(Constants.MODEL.IS_DEPLOYMENT_OF, null); Set<...
public class class_name { public Map<String, String> applyAll(Iterable<String> keys) { if (keys == null) { return Collections.emptyMap(); } Map<String, String> map = new HashMap<>(); for (String key : keys) { map.put(key, apply(key)); } return map; } }
public class class_name { public Map<String, String> applyAll(Iterable<String> keys) { if (keys == null) { return Collections.emptyMap(); // depends on control dependency: [if], data = [none] } Map<String, String> map = new HashMap<>(); for (String key : keys) { map.put(key, apply(key)); ...
public class class_name { public static URI addParams( final URI uri, final Multimap<String, String> params, final Set<String> overrideParams) { if (params == null || params.isEmpty()) { return uri; } final String origTxt = uri.toString(); int queryStart = origTx...
public class class_name { public static URI addParams( final URI uri, final Multimap<String, String> params, final Set<String> overrideParams) { if (params == null || params.isEmpty()) { return uri; // depends on control dependency: [if], data = [none] } final String ori...
public class class_name { protected static boolean runRejectedTask(Runnable runnable, ThreadPoolExecutor executor) { // Runs the task directly in the calling thread of the {@code execute} method, // unless the executor has been shut down, in which case the task // is discarded. if (!executor.isShutdown()) { ...
public class class_name { protected static boolean runRejectedTask(Runnable runnable, ThreadPoolExecutor executor) { // Runs the task directly in the calling thread of the {@code execute} method, // unless the executor has been shut down, in which case the task // is discarded. if (!executor.isShutdown()) { ...
public class class_name { public boolean add(ConceptMap answer, ConceptMap answerIndex){ Index ind = Index.of(answerIndex.vars()); if (ind.equals(index)) { return indexedAnswers.put(answerIndex, answer); } throw new IllegalStateException("Illegal index: " + answerIndex + " i...
public class class_name { public boolean add(ConceptMap answer, ConceptMap answerIndex){ Index ind = Index.of(answerIndex.vars()); if (ind.equals(index)) { return indexedAnswers.put(answerIndex, answer); // depends on control dependency: [if], data = [none] } throw new Illeg...
public class class_name { @Override public boolean isConnected(final Connection _connection) throws SQLException { boolean ret = false; final StringBuilder cmd = new StringBuilder(); cmd.append(" SELECT version();"); PreparedStatement stmt = null; stmt = _connect...
public class class_name { @Override public boolean isConnected(final Connection _connection) throws SQLException { boolean ret = false; final StringBuilder cmd = new StringBuilder(); cmd.append(" SELECT version();"); PreparedStatement stmt = null; stmt = _connect...
public class class_name { private String getIdent(BioPAXElement bpe) { String ident = "----"; if(bpe instanceof pathway) { ident = "-pw-"; } else if(bpe instanceof interaction) { ident = "-in-"; } else if (bpe instanceof protein) { ident = "-pr-"; } else if (bpe instanceof complex) { ident = "-c...
public class class_name { private String getIdent(BioPAXElement bpe) { String ident = "----"; if(bpe instanceof pathway) { ident = "-pw-"; // depends on control dependency: [if], data = [none] } else if(bpe instanceof interaction) { ident = "-in-"; // depends on control dependency: [if], data = [none] }...
public class class_name { public static int setCharAt(char target[], int limit, int offset16, int char32) { if (offset16 >= limit) { throw new ArrayIndexOutOfBoundsException(offset16); } int count = 1; char single = target[offset16]; if (isSurrogate(single)) { ...
public class class_name { public static int setCharAt(char target[], int limit, int offset16, int char32) { if (offset16 >= limit) { throw new ArrayIndexOutOfBoundsException(offset16); } int count = 1; char single = target[offset16]; if (isSurrogate(single)) { ...
public class class_name { public static BufferedImage checkCopy( BufferedImage original , BufferedImage output ) { ColorModel cm = original.getColorModel(); boolean isAlphaPremultiplied = cm.isAlphaPremultiplied(); if( output == null || original.getWidth() != output.getWidth() || original.getHeight() != output....
public class class_name { public static BufferedImage checkCopy( BufferedImage original , BufferedImage output ) { ColorModel cm = original.getColorModel(); boolean isAlphaPremultiplied = cm.isAlphaPremultiplied(); if( output == null || original.getWidth() != output.getWidth() || original.getHeight() != output....
public class class_name { private void cacheShardValue(TableDefinition tableDef, Integer shardNumber, Date shardStart) { // Get or create the app name -> table map String appName = tableDef.getAppDef().getAppName()...
public class class_name { private void cacheShardValue(TableDefinition tableDef, Integer shardNumber, Date shardStart) { // Get or create the app name -> table map String appName = tableDef.getAppDef().getAppName()...
public class class_name { @Override public void constructCache(DefaultSolverScope solverScope) { cachedEntityMap = new TreeMap<>(); ScoreDirector scoreDirector = solverScope.getScoreDirector(); double probabilityWeightOffset = 0L; for (Object entity : childEntitySelector) { ...
public class class_name { @Override public void constructCache(DefaultSolverScope solverScope) { cachedEntityMap = new TreeMap<>(); ScoreDirector scoreDirector = solverScope.getScoreDirector(); double probabilityWeightOffset = 0L; for (Object entity : childEntitySelector) { ...
public class class_name { private CmsPathTree<P, V> ensureNode(List<P> path) { List<P> pathToConsume = Lists.newLinkedList(path); CmsPathTree<P, V> lastExistingNode = findNodeInternal(pathToConsume); CmsPathTree<P, V> currentNode = lastExistingNode; for (P pathPart : pathToConsume) { ...
public class class_name { private CmsPathTree<P, V> ensureNode(List<P> path) { List<P> pathToConsume = Lists.newLinkedList(path); CmsPathTree<P, V> lastExistingNode = findNodeInternal(pathToConsume); CmsPathTree<P, V> currentNode = lastExistingNode; for (P pathPart : pathToConsume) { ...
public class class_name { @Override protected int msd(Double a, Double b) { /* * For this to work, arithmetic must be unsigned */ long ux = Double.doubleToLongBits(a); long uy = Double.doubleToLongBits(b); if (ux == uy) { return -1; } do...
public class class_name { @Override protected int msd(Double a, Double b) { /* * For this to work, arithmetic must be unsigned */ long ux = Double.doubleToLongBits(a); long uy = Double.doubleToLongBits(b); if (ux == uy) { return -1; // depends on contro...
public class class_name { @Override public void onApplicationEvent(ContextRefreshedEvent event) { ApplicationContext context = event.getApplicationContext(); if (isSpringBoot){ CrawlerProperties crawlerProperties = context.getBean(CrawlerProperties.class); if (!crawlerProper...
public class class_name { @Override public void onApplicationEvent(ContextRefreshedEvent event) { ApplicationContext context = event.getApplicationContext(); if (isSpringBoot){ CrawlerProperties crawlerProperties = context.getBean(CrawlerProperties.class); if (!crawlerProper...
public class class_name { void popStackToClose(String... elNames) { for (int pos = stack.size() -1; pos >= 0; pos--) { Element next = stack.get(pos); stack.remove(pos); if (inSorted(next.normalName(), elNames)) break; } } }
public class class_name { void popStackToClose(String... elNames) { for (int pos = stack.size() -1; pos >= 0; pos--) { Element next = stack.get(pos); stack.remove(pos); // depends on control dependency: [for], data = [pos] if (inSorted(next.normalName(), elNames)) ...
public class class_name { @Override public int intValue() { if (Math.abs(amount) <= Integer.MAX_VALUE) { return (int) amount; } throw new IllegalStateException("Amount of '" + amount + "' cannot be converted into an Integer."); } }
public class class_name { @Override public int intValue() { if (Math.abs(amount) <= Integer.MAX_VALUE) { return (int) amount; // depends on control dependency: [if], data = [none] } throw new IllegalStateException("Amount of '" + amount + "' cannot be converted into an Integer."); } }
public class class_name { public static String getGraphVizString(DoubleLinkedPoiCategory rootNode) { StringBuilder sb = new StringBuilder(); Stack<PoiCategory> stack = new Stack<>(); stack.push(rootNode); DoubleLinkedPoiCategory currentNode; sb.append("// dot test.dot -Tpng > t...
public class class_name { public static String getGraphVizString(DoubleLinkedPoiCategory rootNode) { StringBuilder sb = new StringBuilder(); Stack<PoiCategory> stack = new Stack<>(); stack.push(rootNode); DoubleLinkedPoiCategory currentNode; sb.append("// dot test.dot -Tpng > t...
public class class_name { @Deprecated public TimeUnitFormat setNumberFormat(NumberFormat format) { if (format == this.format) { return this; } if (format == null) { if (locale == null) { isReady = false; mf = mf.withLocale(ULocale.getD...
public class class_name { @Deprecated public TimeUnitFormat setNumberFormat(NumberFormat format) { if (format == this.format) { return this; // depends on control dependency: [if], data = [none] } if (format == null) { if (locale == null) { isReady = ...
public class class_name { public CopyObjectResponse copyObject(CopyObjectRequest request) { checkNotNull(request, "request should not be null."); assertStringNotNullOrEmpty(request.getSourceKey(), "object key should not be null or empty"); InternalRequest internalRequest = this.createRequest(r...
public class class_name { public CopyObjectResponse copyObject(CopyObjectRequest request) { checkNotNull(request, "request should not be null."); assertStringNotNullOrEmpty(request.getSourceKey(), "object key should not be null or empty"); InternalRequest internalRequest = this.createRequest(r...
public class class_name { JCExpression annotationValue() { int pos; switch (token.kind) { case MONKEYS_AT: pos = token.pos; nextToken(); return annotation(pos, Tag.ANNOTATION); case LBRACE: pos = token.pos; accept(LBRACE); ...
public class class_name { JCExpression annotationValue() { int pos; switch (token.kind) { case MONKEYS_AT: pos = token.pos; nextToken(); return annotation(pos, Tag.ANNOTATION); case LBRACE: pos = token.pos; accept(LBRACE); ...
public class class_name { public List<String> getWorkplaceServers(CmsSSLMode filterMode) { if (filterMode == null) { return getWorkplaceServers(); } List<String> ret = new ArrayList<String>(); for (String server : m_workplaceServers.keySet()) { if (m_workplaceSe...
public class class_name { public List<String> getWorkplaceServers(CmsSSLMode filterMode) { if (filterMode == null) { return getWorkplaceServers(); // depends on control dependency: [if], data = [none] } List<String> ret = new ArrayList<String>(); for (String server : m_work...
public class class_name { @Override public PolicyFinderResult findPolicy(EvaluationCtx context) { try { AbstractPolicy policy = m_policyManager.getPolicy(context); if (policy == null) { return new PolicyFinderResult(); } return new PolicyFin...
public class class_name { @Override public PolicyFinderResult findPolicy(EvaluationCtx context) { try { AbstractPolicy policy = m_policyManager.getPolicy(context); if (policy == null) { return new PolicyFinderResult(); // depends on control dependency: [if], data = ...
public class class_name { public void setItem(String itemName, Object value) { if (value == null) { setItem(itemName, (String) null); } else { @SuppressWarnings("unchecked") ISerializer<Object> contextSerializer = (ISerializer<Object>) ContextSerializerRegistry.getIn...
public class class_name { public void setItem(String itemName, Object value) { if (value == null) { setItem(itemName, (String) null); // depends on control dependency: [if], data = [null)] } else { @SuppressWarnings("unchecked") ISerializer<Object> contextSerializer ...
public class class_name { static void addEncoding(final Request.Builder builder, final HttpExchange httpExchange) { final String contentType = httpExchange.getRequestHeaders().getFirst("Content-Type"); if (contentType != null) { final Matcher matcher = CHARSET_PATTERN.matcher(contentType); ...
public class class_name { static void addEncoding(final Request.Builder builder, final HttpExchange httpExchange) { final String contentType = httpExchange.getRequestHeaders().getFirst("Content-Type"); if (contentType != null) { final Matcher matcher = CHARSET_PATTERN.matcher(contentType); ...
public class class_name { public JSONObject addUser(String image, String imageType, String groupId, String userId, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("image", image); request.addBody("image_t...
public class class_name { public JSONObject addUser(String image, String imageType, String groupId, String userId, HashMap<String, String> options) { AipRequest request = new AipRequest(); preOperation(request); request.addBody("image", image); request.addBody("image_t...
public class class_name { public Observable<ServiceResponse<List<VnetRouteInner>>> getRouteForVnetWithServiceResponseAsync(String resourceGroupName, String name, String vnetName, String routeName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is ...
public class class_name { public Observable<ServiceResponse<List<VnetRouteInner>>> getRouteForVnetWithServiceResponseAsync(String resourceGroupName, String name, String vnetName, String routeName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is ...
public class class_name { private static String buildErrorMsg(List<String> dependencies, String message) { final StringBuilder buffer = new StringBuilder(); boolean isFirstElement = true; for (String dependency : dependencies) { if (!isFirstElement) { buffer.append("...
public class class_name { private static String buildErrorMsg(List<String> dependencies, String message) { final StringBuilder buffer = new StringBuilder(); boolean isFirstElement = true; for (String dependency : dependencies) { if (!isFirstElement) { buffer.append("...
public class class_name { private static boolean polygonRelateEnvelope_(Polygon polygon_a, Envelope envelope_b, double tolerance, int relation, ProgressTracker progress_tracker) { if (polygonDisjointEnvelope_(polygon_a, envelope_b, tolerance, progress_tracker)) { if (relation == Relation.disjoint) r...
public class class_name { private static boolean polygonRelateEnvelope_(Polygon polygon_a, Envelope envelope_b, double tolerance, int relation, ProgressTracker progress_tracker) { if (polygonDisjointEnvelope_(polygon_a, envelope_b, tolerance, progress_tracker)) { if (relation == Relation.disjoint) r...
public class class_name { static ItemIdValueImpl fromIri(String iri) { int separator = iri.lastIndexOf('/') + 1; try { return new ItemIdValueImpl(iri.substring(separator), iri.substring(0, separator)); } catch (IllegalArgumentException e) { throw new IllegalArgumentException("Invalid Wikibase entity IRI: "...
public class class_name { static ItemIdValueImpl fromIri(String iri) { int separator = iri.lastIndexOf('/') + 1; try { return new ItemIdValueImpl(iri.substring(separator), iri.substring(0, separator)); // depends on control dependency: [try], data = [none] } catch (IllegalArgumentException e) { throw new I...
public class class_name { private byte decideLanguage(int serverLanguage) { //force UTF8mb4 if possible, UTF8 if not. if (serverLanguage == 45 //utf8mb4_general_ci || serverLanguage == 46 //utf8mb4_bin || (serverLanguage >= 224 && serverLanguage <= 247)) { return (byte) serverLangu...
public class class_name { private byte decideLanguage(int serverLanguage) { //force UTF8mb4 if possible, UTF8 if not. if (serverLanguage == 45 //utf8mb4_general_ci || serverLanguage == 46 //utf8mb4_bin || (serverLanguage >= 224 && serverLanguage <= 247)) { return (byte) serverLangu...
public class class_name { private static <T extends Comparable<? super T>> void mergeSort( T[] arr, T[] tmpArr, int left, int right ) { //recursive way if ( left < right ) { int center = ( left + right ) / 2; mergeSort(arr, tmpArr, left, center); mergeSort(a...
public class class_name { private static <T extends Comparable<? super T>> void mergeSort( T[] arr, T[] tmpArr, int left, int right ) { //recursive way if ( left < right ) { int center = ( left + right ) / 2; mergeSort(arr, tmpArr, left, center); // depends on control d...
public class class_name { @Override public final void shutdownNow(Status status) { shutdown(status); Collection<PendingStream> savedPendingStreams; Runnable savedReportTransportTerminated; synchronized (lock) { savedPendingStreams = pendingStreams; savedReportTransportTerminated = reportT...
public class class_name { @Override public final void shutdownNow(Status status) { shutdown(status); Collection<PendingStream> savedPendingStreams; Runnable savedReportTransportTerminated; synchronized (lock) { savedPendingStreams = pendingStreams; savedReportTransportTerminated = reportT...
public class class_name { public LongWritable getValueLongWritable(String label) { HadoopObject o = getHadoopObject(VALUE, label, ObjectUtil.LONG, "Long"); if (o == null) { return null; } return (LongWritable) o.getObject(); } }
public class class_name { public LongWritable getValueLongWritable(String label) { HadoopObject o = getHadoopObject(VALUE, label, ObjectUtil.LONG, "Long"); if (o == null) { return null; // depends on control dependency: [if], data = [none] } return (LongWritable) o.getObject...
public class class_name { public static InputStream read( String path, ClassLoader classLoader, boolean useTLCL ) { if (useTLCL) { InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path); if (stream != null) { return stream; ...
public class class_name { public static InputStream read( String path, ClassLoader classLoader, boolean useTLCL ) { if (useTLCL) { InputStream stream = Thread.currentThread().getContextClassLoader().getResourceAsStream(path); if (stream != null) { return stream; // depen...
public class class_name { public void setPublishRelatedResourcesMode(String publishRelatedResourcesMode) { m_publishRelatedResourcesMode = CmsPublishRelatedResourcesMode.valueOf(publishRelatedResourcesMode); if ((m_publishRelatedResourcesMode != null) && CmsLog.INIT.isInfoEnabled()) { CmsL...
public class class_name { public void setPublishRelatedResourcesMode(String publishRelatedResourcesMode) { m_publishRelatedResourcesMode = CmsPublishRelatedResourcesMode.valueOf(publishRelatedResourcesMode); if ((m_publishRelatedResourcesMode != null) && CmsLog.INIT.isInfoEnabled()) { CmsL...
public class class_name { private Set<String> resolveClass(String variableName, String text, Document document) { Set<String> items = new LinkedHashSet<>(); FileObject fo = getFileObject(document); ClassPath sourcePath = ClassPath.getClassPath(fo, ClassPath.SOURCE); ClassPath compilePath = ClassPath.ge...
public class class_name { private Set<String> resolveClass(String variableName, String text, Document document) { Set<String> items = new LinkedHashSet<>(); FileObject fo = getFileObject(document); ClassPath sourcePath = ClassPath.getClassPath(fo, ClassPath.SOURCE); ClassPath compilePath = ClassPath.ge...
public class class_name { public static String hexEncode(final String data) { try { val result = Hex.encodeHex(data.getBytes(StandardCharsets.UTF_8)); return new String(result); } catch (final Exception e) { return null; } } }
public class class_name { public static String hexEncode(final String data) { try { val result = Hex.encodeHex(data.getBytes(StandardCharsets.UTF_8)); return new String(result); // depends on control dependency: [try], data = [none] } catch (final Exception e) { retu...