code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @Override @RequestCache public boolean canPrincipalSubscribe( IAuthorizationPrincipal principal, String portletDefinitionId) { String owner = IPermission.PORTAL_SUBSCRIBE; // retrieve the indicated channel from the channel registry store and // det...
public class class_name { @Override @RequestCache public boolean canPrincipalSubscribe( IAuthorizationPrincipal principal, String portletDefinitionId) { String owner = IPermission.PORTAL_SUBSCRIBE; // retrieve the indicated channel from the channel registry store and // det...
public class class_name { public EClass getIfcDynamicViscosityMeasure() { if (ifcDynamicViscosityMeasureEClass == null) { ifcDynamicViscosityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(668); } return ifcDynamicViscosityMeasureEClas...
public class class_name { public EClass getIfcDynamicViscosityMeasure() { if (ifcDynamicViscosityMeasureEClass == null) { ifcDynamicViscosityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(668); // depends on control dependency: [if], data ...
public class class_name { private static GVRWorld getWorldFromAscendant(GVRSceneObject worldOwner) { GVRComponent world = null; while (worldOwner != null && world == null) { world = worldOwner.getComponent(GVRWorld.getComponentType()); worldOwner = worldOwner.getParent(); ...
public class class_name { private static GVRWorld getWorldFromAscendant(GVRSceneObject worldOwner) { GVRComponent world = null; while (worldOwner != null && world == null) { world = worldOwner.getComponent(GVRWorld.getComponentType()); // depends on control dependency: [while], data = [non...
public class class_name { public static XMLBuilder2 parse(File xmlFile, boolean enableExternalEntities, boolean isNamespaceAware) { try { return XMLBuilder2.parse( new InputSource(new FileReader(xmlFile)), enableExternalEntities, isNamespa...
public class class_name { public static XMLBuilder2 parse(File xmlFile, boolean enableExternalEntities, boolean isNamespaceAware) { try { return XMLBuilder2.parse( new InputSource(new FileReader(xmlFile)), enableExternalEntities, isNamespa...
public class class_name { public ContainerDetail withNetworkInterfaces(NetworkInterface... networkInterfaces) { if (this.networkInterfaces == null) { setNetworkInterfaces(new java.util.ArrayList<NetworkInterface>(networkInterfaces.length)); } for (NetworkInterface ele : networkInter...
public class class_name { public ContainerDetail withNetworkInterfaces(NetworkInterface... networkInterfaces) { if (this.networkInterfaces == null) { setNetworkInterfaces(new java.util.ArrayList<NetworkInterface>(networkInterfaces.length)); // depends on control dependency: [if], data = [none] ...
public class class_name { void scanIdentifier() { if (!eof) { StringBuilder identBuf = new StringBuilder(32); if (!isStopSymbol(symbol)) { identBuf.append(symbol); do { char ch = buffer[pos]; if ((ch >= 'a') && (ch ...
public class class_name { void scanIdentifier() { if (!eof) { StringBuilder identBuf = new StringBuilder(32); if (!isStopSymbol(symbol)) { identBuf.append(symbol); // depends on control dependency: [if], data = [none] do { char ch = bu...
public class class_name { public static Status formattedString(String value) { boolean result = true; try { Cpe23PartIterator instance; try { instance = new Cpe23PartIterator(value); } catch (CpeParsingException ex) { LOG.warn("The CPE...
public class class_name { public static Status formattedString(String value) { boolean result = true; try { Cpe23PartIterator instance; try { instance = new Cpe23PartIterator(value); // depends on control dependency: [try], data = [none] } catch (CpeP...
public class class_name { public void stop(){ // acquire status lock synchronized(statusLock){ // check current status if(status == SearchStatus.INITIALIZING || status == SearchStatus.RUNNING){ // log LOGGER.debug("Search {} changed status: {} -->...
public class class_name { public void stop(){ // acquire status lock synchronized(statusLock){ // check current status if(status == SearchStatus.INITIALIZING || status == SearchStatus.RUNNING){ // log LOGGER.debug("Search {} changed status: {} -->...
public class class_name { public String resolve(String key) { if (key.equals("HTTP_USER_AGENT")) { return request.getHeader("user-agent"); } else if (key.equals("HTTP_REFERER")) { return request.getHeader("referer"); } else if (key.equals("HTTP_COOKIE")) { re...
public class class_name { public String resolve(String key) { if (key.equals("HTTP_USER_AGENT")) { return request.getHeader("user-agent"); // depends on control dependency: [if], data = [none] } else if (key.equals("HTTP_REFERER")) { return request.getHeader("referer"); // depen...
public class class_name { @Override public boolean startOrientationProvider(IOrientationConsumer orientationConsumer) { mOrientationConsumer = orientationConsumer; boolean result = false; final Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); if (sensor...
public class class_name { @Override public boolean startOrientationProvider(IOrientationConsumer orientationConsumer) { mOrientationConsumer = orientationConsumer; boolean result = false; final Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION); if (sensor...
public class class_name { public static Object fromJson(String json) { try { JSONObject jsonObject = new JSONObject(json); if (jsonObject.has("JSON")) { return convert(jsonObject.get("JSON")); } else { return convert(jsonObject); } } catch (Exception e) { throw new...
public class class_name { public static Object fromJson(String json) { try { JSONObject jsonObject = new JSONObject(json); if (jsonObject.has("JSON")) { return convert(jsonObject.get("JSON")); // depends on control dependency: [if], data = [none] } else { return convert(jsonObject...
public class class_name { @NonNull public Transition excludeTarget(int targetId, boolean exclude) { if (targetId >= 0) { mTargetIdExcludes = excludeObject(mTargetIdExcludes, targetId, exclude); } return this; } }
public class class_name { @NonNull public Transition excludeTarget(int targetId, boolean exclude) { if (targetId >= 0) { mTargetIdExcludes = excludeObject(mTargetIdExcludes, targetId, exclude); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { public String toJsonString() { JSONArray dataArray = new JSONArray(); JSONArray jsonArray = new JSONArray(); for (Collection<LabeledItem<T>> col : data) { JSONArray itemArray = null; for (LabeledItem<T> item : col) { itemArray = ...
public class class_name { public String toJsonString() { JSONArray dataArray = new JSONArray(); JSONArray jsonArray = new JSONArray(); for (Collection<LabeledItem<T>> col : data) { JSONArray itemArray = null; for (LabeledItem<T> item : col) { itemArray = ...
public class class_name { private void initialize() { historyListFiltersButtonGroup = new DeselectableButtonGroup(); this.setLayout(new BorderLayout()); if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) { this.setSize(600, 200); } this.add(getHistory...
public class class_name { private void initialize() { historyListFiltersButtonGroup = new DeselectableButtonGroup(); this.setLayout(new BorderLayout()); if (Model.getSingleton().getOptionsParam().getViewParam().getWmUiHandlingOption() == 0) { this.setSize(600, 200); // depends on control depende...
public class class_name { @Override public void setProperties(Property[] newProperties) { // unregister the listeners from previous properties for (Property prop : properties) { prop.removePropertyChangeListener(this); } // replace the current properties propert...
public class class_name { @Override public void setProperties(Property[] newProperties) { // unregister the listeners from previous properties for (Property prop : properties) { prop.removePropertyChangeListener(this); // depends on control dependency: [for], data = [prop] } ...
public class class_name { protected String findInSourceFolders(File baseDir, String fileName) { String answer = findInFolder(baseDir, fileName); if (answer == null && baseDir.exists()) { answer = findInChildFolders(new File(baseDir, "src/main"), fileName); if (answer == null) { ...
public class class_name { protected String findInSourceFolders(File baseDir, String fileName) { String answer = findInFolder(baseDir, fileName); if (answer == null && baseDir.exists()) { answer = findInChildFolders(new File(baseDir, "src/main"), fileName); // depends on control dependency: ...
public class class_name { public static <T> T blobToObject(byte[] blob, Class<T> type) { try { return SerializerContext.getInstance().deSerialize(blob, type); } catch (SerializerException e) { throw new IllegalStateException(e); } } }
public class class_name { public static <T> T blobToObject(byte[] blob, Class<T> type) { try { return SerializerContext.getInstance().deSerialize(blob, type); // depends on control dependency: [try], data = [none] } catch (SerializerException e) { throw new IllegalStateException...
public class class_name { public void marshall(Attributes attributes, ProtocolMarshaller protocolMarshaller) { if (attributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (Exception e) { throw new SdkClien...
public class class_name { public void marshall(Attributes attributes, ProtocolMarshaller protocolMarshaller) { if (attributes == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catch (Exception e) { throw new SdkClien...
public class class_name { void implementInterfaceMethods(ClassSymbol c, ClassSymbol site) { for (List<Type> l = types.interfaces(c.type); l.nonEmpty(); l = l.tail) { ClassSymbol i = (ClassSymbol)l.head.tsym; for (Scope.Entry e = i.members().elems; e != null; ...
public class class_name { void implementInterfaceMethods(ClassSymbol c, ClassSymbol site) { for (List<Type> l = types.interfaces(c.type); l.nonEmpty(); l = l.tail) { ClassSymbol i = (ClassSymbol)l.head.tsym; for (Scope.Entry e = i.members().elems; e != null; ...
public class class_name { public void normalizeDepths( DMatrixRMaj depths ) { // normalize rows first for (int row = 0; row < depths.numRows; row++) { int idx = row*depths.numCols; double sum = 0; for (int col = 0; col < depths.numCols; col++) { double v = depths.data[idx++]; sum += v*v; } d...
public class class_name { public void normalizeDepths( DMatrixRMaj depths ) { // normalize rows first for (int row = 0; row < depths.numRows; row++) { int idx = row*depths.numCols; double sum = 0; for (int col = 0; col < depths.numCols; col++) { double v = depths.data[idx++]; sum += v*v; // depend...
public class class_name { public <T> T getClone( String key, Class<T> c ) { IPrototype prototype = prototypes.get(new PrototypeKey(key, c)); if (prototype != null) { return (T) prototype.clone(); } else return null; } }
public class class_name { public <T> T getClone( String key, Class<T> c ) { IPrototype prototype = prototypes.get(new PrototypeKey(key, c)); if (prototype != null) { return (T) prototype.clone(); // depends on control dependency: [if], data = [none] } else ...
public class class_name { private void setClickListener() { m_ok.addClickListener(new Button.ClickListener() { private static final long serialVersionUID = 6621475980210242125L; public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { try { ...
public class class_name { private void setClickListener() { m_ok.addClickListener(new Button.ClickListener() { private static final long serialVersionUID = 6621475980210242125L; public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { try { ...
public class class_name { protected void save(final String fileName, final SessionListener callback) { Thread t = new Thread(new Runnable() { @Override public void run() { Exception thrownException = null; try { save(fileName); ...
public class class_name { protected void save(final String fileName, final SessionListener callback) { Thread t = new Thread(new Runnable() { @Override public void run() { Exception thrownException = null; try { save(fileName); ...
public class class_name { protected void notifyListener(final ExecutorService executor, final Future<?> future, final GenericCompletionListener listener) { executor.submit(new Runnable() { @Override public void run() { try { listener.onComplete(future); } catch(Throwable t...
public class class_name { protected void notifyListener(final ExecutorService executor, final Future<?> future, final GenericCompletionListener listener) { executor.submit(new Runnable() { @Override public void run() { try { listener.onComplete(future); // depends on control depen...
public class class_name { public synchronized static Random getSecureRandom() { if (cachedSecureRandom != null) return cachedSecureRandom; try { return SecureRandom.getInstance("SHA1PRNG"); } catch (NoSuchAlgorithmException e) { return R; } } }
public class class_name { public synchronized static Random getSecureRandom() { if (cachedSecureRandom != null) return cachedSecureRandom; try { return SecureRandom.getInstance("SHA1PRNG"); // depends on control dependency: [try], data = [none] } catch (NoSuchAlgorithmException e) { retur...
public class class_name { public DataPoints[] evaluate(final List<DataPoints[]> query_results) { // TODO - size the array final List<DataPoints[]> materialized = Lists.newArrayList(); List<Integer> metric_query_keys = null; if (sub_metric_queries != null && sub_metric_queries.size() > 0) { metric...
public class class_name { public DataPoints[] evaluate(final List<DataPoints[]> query_results) { // TODO - size the array final List<DataPoints[]> materialized = Lists.newArrayList(); List<Integer> metric_query_keys = null; if (sub_metric_queries != null && sub_metric_queries.size() > 0) { metric...
public class class_name { private String initConsoleAndGetAnswer() { ConsoleReaderWrapper consoleReaderWrapper = initConsole(); String input = ""; boolean valid = false; while (!valid) { input = consoleReaderWrapper.getInput(); valid = validate(consoleReaderWr...
public class class_name { private String initConsoleAndGetAnswer() { ConsoleReaderWrapper consoleReaderWrapper = initConsole(); String input = ""; boolean valid = false; while (!valid) { input = consoleReaderWrapper.getInput(); // depends on control dependency: [while], d...
public class class_name { public String findWithinHorizon(Pattern pattern, int horizon) { ensureOpen(); if (pattern == null) throw new NullPointerException(); if (horizon < 0) throw new IllegalArgumentException("horizon < 0"); clearCaches(); // Search fo...
public class class_name { public String findWithinHorizon(Pattern pattern, int horizon) { ensureOpen(); if (pattern == null) throw new NullPointerException(); if (horizon < 0) throw new IllegalArgumentException("horizon < 0"); clearCaches(); // Search fo...
public class class_name { private void removeNode(Node<K, V> node) { if (node.previous != null) { node.previous.next = node.next; } else { // node was head head = node.next; } if (node.next != null) { node.next.previous = node.previous; } else { // node was tail tail = node....
public class class_name { private void removeNode(Node<K, V> node) { if (node.previous != null) { node.previous.next = node.next; // depends on control dependency: [if], data = [none] } else { // node was head head = node.next; // depends on control dependency: [if], data = [none] } if (nod...
public class class_name { public static String escapeStringLiteral(String s) { StringBuilder sb = null; int len = s.length(); int lastIndex = 0; for (int i = 0; i < len; i++) { String replacement = escapeCharacterForStringLiteral(s.charAt(i), s, i); if (replacement == null) { contin...
public class class_name { public static String escapeStringLiteral(String s) { StringBuilder sb = null; int len = s.length(); int lastIndex = 0; for (int i = 0; i < len; i++) { String replacement = escapeCharacterForStringLiteral(s.charAt(i), s, i); if (replacement == null) { contin...
public class class_name { protected T getContext() { Chronology<T> c = this.getChronology(); Class<T> type = c.getChronoType(); if (type.isInstance(this)) { return type.cast(this); } else { for (ChronoElement<?> element : c.getRegisteredElements()) { ...
public class class_name { protected T getContext() { Chronology<T> c = this.getChronology(); Class<T> type = c.getChronoType(); if (type.isInstance(this)) { return type.cast(this); // depends on control dependency: [if], data = [none] } else { for (ChronoElemen...
public class class_name { protected void processClientErrorCallback(HttpServletRequest request, HttpServletResponse response, RequestClientErrorException cause) { final RequestClientErrorHandler clientErrorHandler = clientErrorHandlerLocal.get(); if (clientErrorHandler == null) { return; ...
public class class_name { protected void processClientErrorCallback(HttpServletRequest request, HttpServletResponse response, RequestClientErrorException cause) { final RequestClientErrorHandler clientErrorHandler = clientErrorHandlerLocal.get(); if (clientErrorHandler == null) { return; //...
public class class_name { @Override public <E> SetAttribute<X, E> getDeclaredSet(String paramName, Class<E> paramClass) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckSetAttribute(declaredAttrib, paramClass)) { return (SetAttri...
public class class_name { @Override public <E> SetAttribute<X, E> getDeclaredSet(String paramName, Class<E> paramClass) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckSetAttribute(declaredAttrib, paramClass)) { return (SetAttri...
public class class_name { public final void push(String s) { if ((m_firstFree + 1) >= m_mapSize) { m_mapSize += m_blocksize; String newMap[] = new String[m_mapSize]; System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1); m_map = newMap; } m_map[m_firstFree] = s; m_f...
public class class_name { public final void push(String s) { if ((m_firstFree + 1) >= m_mapSize) { m_mapSize += m_blocksize; // depends on control dependency: [if], data = [none] String newMap[] = new String[m_mapSize]; System.arraycopy(m_map, 0, newMap, 0, m_firstFree + 1); // depends o...
public class class_name { public CompletionStage<Optional<LocalAsyncResult<R>>> callAsync(final SaltClient client, Target<?> target, AuthMethod auth, Optional<Batch> batch) { Map<String, Object> customArgs = new HashMap<>(); batch.ifP...
public class class_name { public CompletionStage<Optional<LocalAsyncResult<R>>> callAsync(final SaltClient client, Target<?> target, AuthMethod auth, Optional<Batch> batch) { Map<String, Object> customArgs = new HashMap<>(); batch.ifP...
public class class_name { public ContentProviderController<T> create() { Context baseContext = RuntimeEnvironment.application.getBaseContext(); ComponentName componentName = createRelative(baseContext.getPackageName(), contentProvider.getClass().getName()); ProviderInfo providerInfo = null; try { ...
public class class_name { public ContentProviderController<T> create() { Context baseContext = RuntimeEnvironment.application.getBaseContext(); ComponentName componentName = createRelative(baseContext.getPackageName(), contentProvider.getClass().getName()); ProviderInfo providerInfo = null; try { ...
public class class_name { @Override public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) { // TODO QUA // TypeName typeName = resolveTypeName(property.getParent(), // property.getPropertyT...
public class class_name { @Override public void generateSerializeOnXml(BindTypeContext context, MethodSpec.Builder methodBuilder, String serializerName, TypeName beanClass, String beanName, BindProperty property) { // TODO QUA // TypeName typeName = resolveTypeName(property.getParent(), // property.getPropertyT...
public class class_name { private static Bitmap fractionalDecode(FractionalDecodeShim shim, Options options, int requestedWidth, int requestedHeight) { final int rawWidth = options.outWidth; final int rawHeight = options.outHeight; final float sampledWidth = (float) rawWidth / optio...
public class class_name { private static Bitmap fractionalDecode(FractionalDecodeShim shim, Options options, int requestedWidth, int requestedHeight) { final int rawWidth = options.outWidth; final int rawHeight = options.outHeight; final float sampledWidth = (float) rawWidth / optio...
public class class_name { public static <T, S extends BaseConfig> IExtractor<T, S> getExtractorInstance(S config) { try { Class<T> rdd = (Class<T>) config.getExtractorImplClass(); if (rdd == null) { rdd = (Class<T>) Class.forName(config.getExtractorImplClassName()); ...
public class class_name { public static <T, S extends BaseConfig> IExtractor<T, S> getExtractorInstance(S config) { try { Class<T> rdd = (Class<T>) config.getExtractorImplClass(); // depends on control dependency: [try], data = [none] if (rdd == null) { rdd = (Class<T>)...
public class class_name { public static void clean(Node node) { NodeList childNodes = node.getChildNodes(); for (int n = childNodes.getLength() - 1; n >= 0; n--) { Node child = childNodes.item(n); short nodeType = child.getNodeType(); if (nodeType == Node.ELEMENT_NOD...
public class class_name { public static void clean(Node node) { NodeList childNodes = node.getChildNodes(); for (int n = childNodes.getLength() - 1; n >= 0; n--) { Node child = childNodes.item(n); short nodeType = child.getNodeType(); if (nodeType == Node.ELEMENT_NOD...
public class class_name { public void done() { engine.execute(); while (deferred != null) { final List<Runnable> runme = deferred; deferred = null; // reset this because it might get filled with more for (final Runnable run: runme) { log.trace("Executing {}", run); run.run(); } } } }
public class class_name { public void done() { engine.execute(); while (deferred != null) { final List<Runnable> runme = deferred; deferred = null; // reset this because it might get filled with more // depends on control dependency: [while], data = [none] for (final Runnable run: runme) { log.trace...
public class class_name { public static Method getSetter(Class<?> clazz, Field f) { Method setter = null; for (Method m : clazz.getMethods()) { if (ReflectionUtils.isSetter(m) && m.getName().equals(SETTER_PREFIX + StringUtils.capitalize(f.getName()))) { ...
public class class_name { public static Method getSetter(Class<?> clazz, Field f) { Method setter = null; for (Method m : clazz.getMethods()) { if (ReflectionUtils.isSetter(m) && m.getName().equals(SETTER_PREFIX + StringUtils.capitalize(f.getName()))) { ...
public class class_name { public static Rectangle2D shiftReactionVertical(IReaction reaction, Rectangle2D bounds, Rectangle2D last, double gap) { // determine if the reactions are overlapping if (last.getMaxY() + gap >= bounds.getMinY()) { double yShift = bounds.getHeight() + last.getHeight...
public class class_name { public static Rectangle2D shiftReactionVertical(IReaction reaction, Rectangle2D bounds, Rectangle2D last, double gap) { // determine if the reactions are overlapping if (last.getMaxY() + gap >= bounds.getMinY()) { double yShift = bounds.getHeight() + last.getHeight...
public class class_name { public void marshall(ListAlgorithmsRequest listAlgorithmsRequest, ProtocolMarshaller protocolMarshaller) { if (listAlgorithmsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(ListAlgorithmsRequest listAlgorithmsRequest, ProtocolMarshaller protocolMarshaller) { if (listAlgorithmsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { @MainThread private void handleEventFailure(Event event, EventFailure failure) { if (!activeEvents.contains(event)) { Utils.logE(event.getKey(), "Cannot send failure callback of finished event"); return; } scheduleFailureCallbacks(event, fa...
public class class_name { @MainThread private void handleEventFailure(Event event, EventFailure failure) { if (!activeEvents.contains(event)) { Utils.logE(event.getKey(), "Cannot send failure callback of finished event"); // depends on control dependency: [if], data = [none] return;...
public class class_name { @Sensitive public Map<String, Object> evaluateRequestResponse(@Sensitive String responseBody, int statusLine, String endpointPath) { Map<String, Object> response = null; if (responseBody == null) { return createErrorResponse("TWITTER_EMPTY_RESPONSE_BODY", new ...
public class class_name { @Sensitive public Map<String, Object> evaluateRequestResponse(@Sensitive String responseBody, int statusLine, String endpointPath) { Map<String, Object> response = null; if (responseBody == null) { return createErrorResponse("TWITTER_EMPTY_RESPONSE_BODY", new ...
public class class_name { public static String escape(String str) { if (StrUtil.isEmpty(str)) { return str; } final int len = str.length(); final StringBuilder builder = new StringBuilder(len); char c; for (int i = 0; i < len; i++) { c = str.charAt(i); builder.append(escape(c)); } ...
public class class_name { public static String escape(String str) { if (StrUtil.isEmpty(str)) { return str; // depends on control dependency: [if], data = [none] } final int len = str.length(); final StringBuilder builder = new StringBuilder(len); char c; for (int i = 0; i < len; i++) { c =...
public class class_name { public static Object getSpringBean(ApplicationContext appContext, String id) { try { Object bean = appContext.getBean(id); return bean; } catch (BeansException e) { return null; } } }
public class class_name { public static Object getSpringBean(ApplicationContext appContext, String id) { try { Object bean = appContext.getBean(id); return bean; // depends on control dependency: [try], data = [none] } catch (BeansException e) { return null; ...
public class class_name { @Override public final Object getAsObject(final FacesContext context, final UIComponent component, final String value) { if (value == null) { return null; } String pattern = (String) component.getAttributes().get("pattern"); SimpleDateFormat formatter = new SimpleDateFor...
public class class_name { @Override public final Object getAsObject(final FacesContext context, final UIComponent component, final String value) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } String pattern = (String) component.getAttributes().get("patter...
public class class_name { @SuppressWarnings({"WeakerAccess", "unused", "SameParameterValue"}) // For library users public Searcher clearFacetRefinements(@NonNull String attribute) { final List<String> stringList = refinementMap.get(attribute); if (stringList != null) { stringList.clear(...
public class class_name { @SuppressWarnings({"WeakerAccess", "unused", "SameParameterValue"}) // For library users public Searcher clearFacetRefinements(@NonNull String attribute) { final List<String> stringList = refinementMap.get(attribute); if (stringList != null) { stringList.clear(...
public class class_name { public static Scope openScopes(Object... names) { if (names == null) { throw new IllegalArgumentException("null scope names are not allowed."); } if (names.length == 0) { throw new IllegalArgumentException("Minimally, one scope name is required."); } ScopeNo...
public class class_name { public static Scope openScopes(Object... names) { if (names == null) { throw new IllegalArgumentException("null scope names are not allowed."); } if (names.length == 0) { throw new IllegalArgumentException("Minimally, one scope name is required."); } ScopeNo...
public class class_name { @Override public DurationFormatterFactory setLocale(String localeName) { if (!localeName.equals(this.localeName)) { this.localeName = localeName; if (builder != null) { builder = builder.withLocale(localeName); } if (formatter != null) { forma...
public class class_name { @Override public DurationFormatterFactory setLocale(String localeName) { if (!localeName.equals(this.localeName)) { this.localeName = localeName; // depends on control dependency: [if], data = [none] if (builder != null) { builder = builder.withLocale(localeName); ...
public class class_name { @Override protected void drawWithoutTransforms(final Context2D context, double alpha, final BoundingBox bounds) { final Attributes attr = getAttributes(); alpha = alpha * attr.getAlpha(); if (alpha <= 0) { return; } if (con...
public class class_name { @Override protected void drawWithoutTransforms(final Context2D context, double alpha, final BoundingBox bounds) { final Attributes attr = getAttributes(); alpha = alpha * attr.getAlpha(); if (alpha <= 0) { return; // depends on control dep...
public class class_name { private <X> X executeLockingMethod(Supplier<X> method) { try { return method.get(); } catch (JanusGraphException e) { if (e.isCausedBy(TemporaryLockingException.class) || e.isCausedBy(PermanentLockingException.class)) { throw TemporaryWr...
public class class_name { private <X> X executeLockingMethod(Supplier<X> method) { try { return method.get(); // depends on control dependency: [try], data = [none] } catch (JanusGraphException e) { if (e.isCausedBy(TemporaryLockingException.class) || e.isCausedBy(PermanentLocki...
public class class_name { public static AlluxioStatusException fromAlluxioException(AlluxioException ae) { try { throw ae; } catch (AccessControlException e) { return new PermissionDeniedException(e); } catch (BlockAlreadyExistsException | FileAlreadyCompletedException | FileAlreadyExis...
public class class_name { public static AlluxioStatusException fromAlluxioException(AlluxioException ae) { try { throw ae; } catch (AccessControlException e) { return new PermissionDeniedException(e); } catch (BlockAlreadyExistsException | FileAlreadyCompletedException // depends on control dep...
public class class_name { public void shutdown() { synchronized (configCache) { Set<ClassLoader> allClassLoaders = new HashSet<>(); allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException for (ClassLoader c...
public class class_name { public void shutdown() { synchronized (configCache) { Set<ClassLoader> allClassLoaders = new HashSet<>(); allClassLoaders.addAll(configCache.keySet()); //create a copy of the keys so that we avoid a ConcurrentModificationException for (ClassLoader c...
public class class_name { private void getEncryptedAppBuffer(int requested_size) throws IOException { final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size); synchronized (closeSync) { if (closeCalled) { IOException up = new IOException("Operation f...
public class class_name { private void getEncryptedAppBuffer(int requested_size) throws IOException { final int size = Math.max(getConnLink().getPacketBufferSize(), requested_size); synchronized (closeSync) { if (closeCalled) { IOException up = new IOException("Operation f...
public class class_name { public static Weeks weeksIn(ReadableInterval interval) { if (interval == null) { return Weeks.ZERO; } int amount = BaseSingleFieldPeriod.between(interval.getStart(), interval.getEnd(), DurationFieldType.weeks()); return Weeks.weeks(amount); } ...
public class class_name { public static Weeks weeksIn(ReadableInterval interval) { if (interval == null) { return Weeks.ZERO; // depends on control dependency: [if], data = [none] } int amount = BaseSingleFieldPeriod.between(interval.getStart(), interval.getEnd(), DurationFieldTyp...
public class class_name { @SneakyThrows protected SignatureSigningParameters buildSignatureSigningParameters(final RoleDescriptor descriptor, final SamlRegisteredService service) { val criteria = new CriteriaSet(); val signatu...
public class class_name { @SneakyThrows protected SignatureSigningParameters buildSignatureSigningParameters(final RoleDescriptor descriptor, final SamlRegisteredService service) { val criteria = new CriteriaSet(); val signatu...
public class class_name { public void marshall(PolicyTypeSummary policyTypeSummary, ProtocolMarshaller protocolMarshaller) { if (policyTypeSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(p...
public class class_name { public void marshall(PolicyTypeSummary policyTypeSummary, ProtocolMarshaller protocolMarshaller) { if (policyTypeSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(p...
public class class_name { public void marshall(CreatePolicyVersionRequest createPolicyVersionRequest, ProtocolMarshaller protocolMarshaller) { if (createPolicyVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public void marshall(CreatePolicyVersionRequest createPolicyVersionRequest, ProtocolMarshaller protocolMarshaller) { if (createPolicyVersionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { pr...
public class class_name { public SIMPIterator getRemoteBrowserReceiverIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRemoteBrowserReceiverIterator"); AnycastOutputHandler aoh = destinationHandler.getAnycastOutputHandler(); // Get the has...
public class class_name { public SIMPIterator getRemoteBrowserReceiverIterator() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRemoteBrowserReceiverIterator"); AnycastOutputHandler aoh = destinationHandler.getAnycastOutputHandler(); // Get the has...
public class class_name { private void replaceStringsWithAliases() { for (Entry<String, StringInfo> entry : stringInfoMap.entrySet()) { String literal = entry.getKey(); StringInfo info = entry.getValue(); if (shouldReplaceWithAlias(literal, info)) { for (StringOccurrence occurrence : info...
public class class_name { private void replaceStringsWithAliases() { for (Entry<String, StringInfo> entry : stringInfoMap.entrySet()) { String literal = entry.getKey(); StringInfo info = entry.getValue(); if (shouldReplaceWithAlias(literal, info)) { for (StringOccurrence occurrence : info...
public class class_name { public static void closeEL(Reader r) { try { if (r != null) r.close(); } // catch (AlwaysThrow at) {throw at;} catch (Throwable e) { ExceptionUtil.rethrowIfNecessary(e); } } }
public class class_name { public static void closeEL(Reader r) { try { if (r != null) r.close(); } // catch (AlwaysThrow at) {throw at;} catch (Throwable e) { ExceptionUtil.rethrowIfNecessary(e); } // depends on control dependency: [catch], data = [none] } }
public class class_name { private void configureHandlerAdapters() { Map<String, HandlerAdapter> handlerAdapters = this.factory.getBeansOfType(HandlerAdapter.class); if (handlerAdapters.isEmpty()) { defineBean(HttpRequestHandlerAdapter.class); defineBean(RequestMappingHandlerAdap...
public class class_name { private void configureHandlerAdapters() { Map<String, HandlerAdapter> handlerAdapters = this.factory.getBeansOfType(HandlerAdapter.class); if (handlerAdapters.isEmpty()) { defineBean(HttpRequestHandlerAdapter.class); // depends on control dependency: [if], data = [...
public class class_name { @Override public void inflate(int menuRes, Menu menu) { // If we're not dealing with a SupportMenu instance, let super handle if (!(menu instanceof SupportMenu)) { super.inflate(menuRes, menu); return; } XmlResourceParser parser = n...
public class class_name { @Override public void inflate(int menuRes, Menu menu) { // If we're not dealing with a SupportMenu instance, let super handle if (!(menu instanceof SupportMenu)) { super.inflate(menuRes, menu); // depends on control dependency: [if], data = [none] r...
public class class_name { public Observable<ServiceResponseWithHeaders<Void, FileDeleteFromTaskHeaders>> deleteFromTaskWithServiceResponseAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions) { if (this.client.batchUrl() == null) { ...
public class class_name { public Observable<ServiceResponseWithHeaders<Void, FileDeleteFromTaskHeaders>> deleteFromTaskWithServiceResponseAsync(String jobId, String taskId, String filePath, Boolean recursive, FileDeleteFromTaskOptions fileDeleteFromTaskOptions) { if (this.client.batchUrl() == null) { ...
public class class_name { public Object negate(Object val) { if (val instanceof Integer) { int valueAsInt = ((Integer) val).intValue(); return Integer.valueOf(-valueAsInt); } else if (val instanceof Double) { double valueAsDouble = ((Double) val).doubleValue(); return new Double(-va...
public class class_name { public Object negate(Object val) { if (val instanceof Integer) { int valueAsInt = ((Integer) val).intValue(); return Integer.valueOf(-valueAsInt); // depends on control dependency: [if], data = [none] } else if (val instanceof Double) { double valueAsDouble = ((D...
public class class_name { public Collection<Token> tokenize(String text) { Collection<Token> tokens = new ArrayList<Token>(); Collection<Emit> collectedEmits = parseText(text); // 下面是最长分词的关键 IntervalTree intervalTree = new IntervalTree((List<Intervalable>) (List<?>) collectedEmits...
public class class_name { public Collection<Token> tokenize(String text) { Collection<Token> tokens = new ArrayList<Token>(); Collection<Emit> collectedEmits = parseText(text); // 下面是最长分词的关键 IntervalTree intervalTree = new IntervalTree((List<Intervalable>) (List<?>) collectedEmits...
public class class_name { public IPv6AddressPool deAllocate(final IPv6Network toDeAllocate) { if (!contains(toDeAllocate)) { throw new IllegalArgumentException( "Network to de-allocate[" + toDeAllocate + "] is not contained in this allocatable range [" + this + "]");...
public class class_name { public IPv6AddressPool deAllocate(final IPv6Network toDeAllocate) { if (!contains(toDeAllocate)) { throw new IllegalArgumentException( "Network to de-allocate[" + toDeAllocate + "] is not contained in this allocatable range [" + this + "]");...
public class class_name { public static base_responses unset(nitro_service client, String keyname[], String args[]) throws Exception { base_responses result = null; if (keyname != null && keyname.length > 0) { dnskey unsetresources[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++){ unset...
public class class_name { public static base_responses unset(nitro_service client, String keyname[], String args[]) throws Exception { base_responses result = null; if (keyname != null && keyname.length > 0) { dnskey unsetresources[] = new dnskey[keyname.length]; for (int i=0;i<keyname.length;i++){ unset...
public class class_name { public static String fieldNodeFormat(Collection<FieldNode> fieldNodes) { StringBuilder s = new StringBuilder(); int n = 0; for (FieldNode fieldNode : fieldNodes) { if (n > 0) { s.append(" "); } s.append("'").append(fieldNodeFormat(fieldNode)).append("'"); n++; } retu...
public class class_name { public static String fieldNodeFormat(Collection<FieldNode> fieldNodes) { StringBuilder s = new StringBuilder(); int n = 0; for (FieldNode fieldNode : fieldNodes) { if (n > 0) { s.append(" "); // depends on control dependency: [if], data = [none] } s.append("'").append(field...
public class class_name { public IonType next() { if (has_next_helper() == false) { return null; } int new_state; switch (_current_state) { case S_BOF: new_state = S_STRUCT; break; case S_STRUCT: new_state = S...
public class class_name { public IonType next() { if (has_next_helper() == false) { return null; // depends on control dependency: [if], data = [none] } int new_state; switch (_current_state) { case S_BOF: new_state = S_STRUCT; br...
public class class_name { @Override protected ChangeSet getFilteredChangeSet(ChangeSet changeSet) { changeSet = super.getFilteredChangeSet(changeSet); if (changeSet != null && !changeSet.isEmpty() && xmlFlatteningEnabled && reindexItemsOnComponentUpdates) { List<String> createdFiles = c...
public class class_name { @Override protected ChangeSet getFilteredChangeSet(ChangeSet changeSet) { changeSet = super.getFilteredChangeSet(changeSet); if (changeSet != null && !changeSet.isEmpty() && xmlFlatteningEnabled && reindexItemsOnComponentUpdates) { List<String> createdFiles = c...
public class class_name { static private <E> List<E> toJavaList(List<E> values, int rows, int columns){ List<E> result = new ArrayList<>(values.size()); for(int i = 0; i < values.size(); i++){ int row = i / columns; int column = i % columns; E value = values.get((column * rows) + row); result.add(v...
public class class_name { static private <E> List<E> toJavaList(List<E> values, int rows, int columns){ List<E> result = new ArrayList<>(values.size()); for(int i = 0; i < values.size(); i++){ int row = i / columns; int column = i % columns; E value = values.get((column * rows) + row); result.add(v...
public class class_name { public RowView getRowView(View child) { ViewParent parent = child.getParent(); if (parent instanceof RowView) { return (RowView) parent; } return null; } }
public class class_name { public RowView getRowView(View child) { ViewParent parent = child.getParent(); if (parent instanceof RowView) { return (RowView) parent; // depends on control dependency: [if], data = [none] } return null; } }
public class class_name { public Boolean isEventNotificationPropertySet() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isEventNotificationPropertySet", this); Boolean enabled = null; // enabled can be null/TRUE/FALSE, ie three-way // Test whether custom properties cont...
public class class_name { public Boolean isEventNotificationPropertySet() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "isEventNotificationPropertySet", this); Boolean enabled = null; // enabled can be null/TRUE/FALSE, ie three-way // Test whether custom properties cont...
public class class_name { public static Annotation getAnnotation(Properties attributes) { float llx = 0, lly = 0, urx = 0, ury = 0; String value; value = attributes.getProperty(ElementTags.LLX); if (value != null) { llx = Float.parseFloat(value + "f"); } value = attributes.getProperty(ElementTags.LLY);...
public class class_name { public static Annotation getAnnotation(Properties attributes) { float llx = 0, lly = 0, urx = 0, ury = 0; String value; value = attributes.getProperty(ElementTags.LLX); if (value != null) { llx = Float.parseFloat(value + "f"); // depends on control dependency: [if], data = [(value...
public class class_name { private void waitUntilPodIsReady(String podName, int nAwaitTimeout, final Logger log) throws InterruptedException { final CountDownLatch readyLatch = new CountDownLatch(1); try (Watch watch = client.pods().withName(podName).watch(new Watcher<Pod>() { @Override ...
public class class_name { private void waitUntilPodIsReady(String podName, int nAwaitTimeout, final Logger log) throws InterruptedException { final CountDownLatch readyLatch = new CountDownLatch(1); try (Watch watch = client.pods().withName(podName).watch(new Watcher<Pod>() { @Override ...
public class class_name { private static String byteToHexString(byte[] bytes) { final char[] hexArray = "0123456789ABCDEF".toCharArray(); char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; ...
public class class_name { private static String byteToHexString(byte[] bytes) { final char[] hexArray = "0123456789ABCDEF".toCharArray(); char[] hexChars = new char[bytes.length * 2]; for (int j = 0; j < bytes.length; j++) { int v = bytes[j] & 0xFF; hexChars[j * 2] = hexArray[v >>> 4]; //...
public class class_name { public static int ConstraintCompare(Solution solution1, Solution solution2) { double constraints1 = 0; int constraint_count = solution1.getConstraints().size(); for (int i = 0; i < constraint_count; i++) { constraints1 += Math.abs(solution1.getConstraint(i)...
public class class_name { public static int ConstraintCompare(Solution solution1, Solution solution2) { double constraints1 = 0; int constraint_count = solution1.getConstraints().size(); for (int i = 0; i < constraint_count; i++) { constraints1 += Math.abs(solution1.getConstraint(i)...
public class class_name { static boolean isEmptyBlock(Node block) { if (!block.isBlock()) { return false; } for (Node n = block.getFirstChild(); n != null; n = n.getNext()) { if (!n.isEmpty()) { return false; } } return true; } }
public class class_name { static boolean isEmptyBlock(Node block) { if (!block.isBlock()) { return false; // depends on control dependency: [if], data = [none] } for (Node n = block.getFirstChild(); n != null; n = n.getNext()) { if (!n.isEmpty()) { return false; // depends on control d...
public class class_name { public void onClickDir(@NonNull View view, @NonNull DirViewHolder viewHolder) { if (isDir(viewHolder.file)) { goToDir(viewHolder.file); } } }
public class class_name { public void onClickDir(@NonNull View view, @NonNull DirViewHolder viewHolder) { if (isDir(viewHolder.file)) { goToDir(viewHolder.file); // depends on control dependency: [if], data = [none] } } }
public class class_name { private void configure() { LogManager manager = LogManager.getLogManager(); String cname = getClass().getName(); setLevel(manager.getLevelProperty(cname +".level", Level.INFO)); setFilter(manager.getFilterProperty(cname +".filter", null)); setFormatter...
public class class_name { private void configure() { LogManager manager = LogManager.getLogManager(); String cname = getClass().getName(); setLevel(manager.getLevelProperty(cname +".level", Level.INFO)); setFilter(manager.getFilterProperty(cname +".filter", null)); setFormatter...
public class class_name { @NonNull public static View copyViewImage(@NonNull ViewGroup sceneRoot, @NonNull View view, @NonNull View parent) { Matrix matrix = new Matrix(); matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); ViewUtils.transformMatrixToGlobal(view, matrix); ...
public class class_name { @NonNull public static View copyViewImage(@NonNull ViewGroup sceneRoot, @NonNull View view, @NonNull View parent) { Matrix matrix = new Matrix(); matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY()); ViewUtils.transformMatrixToGlobal(view, matrix); ...
public class class_name { protected final void initDstBuffer(int sizeBytes, byte[] bytes) { if (bytes != null && bytes.length > sizeBytes) { throw new IllegalArgumentException("Buffer overflow. Can't initialize dstBuffer for " + this + " and channel" + channel + " because too ma...
public class class_name { protected final void initDstBuffer(int sizeBytes, byte[] bytes) { if (bytes != null && bytes.length > sizeBytes) { throw new IllegalArgumentException("Buffer overflow. Can't initialize dstBuffer for " + this + " and channel" + channel + " because too ma...
public class class_name { @Override public EClass getIfcLightSourceAmbient() { if (ifcLightSourceAmbientEClass == null) { ifcLightSourceAmbientEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(345); } return ifcLightSourceAmbientEClass; } }
public class class_name { @Override public EClass getIfcLightSourceAmbient() { if (ifcLightSourceAmbientEClass == null) { ifcLightSourceAmbientEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(345); // depends on control dependency: [if], data = [none]...
public class class_name { void addProviderInfoListener(String dataId, ConsumerConfig consumerConfig, ProviderInfoListener listener) { providerInfoListeners.put(consumerConfig, listener); // 同一个key重复订阅多次,提醒用户需要检查一下是否是代码问题 if (LOGGER.isWarnEnabled(consumerConfig....
public class class_name { void addProviderInfoListener(String dataId, ConsumerConfig consumerConfig, ProviderInfoListener listener) { providerInfoListeners.put(consumerConfig, listener); // 同一个key重复订阅多次,提醒用户需要检查一下是否是代码问题 if (LOGGER.isWarnEnabled(consumerConfig....
public class class_name { public void marshall(ProvisionedProductPlanSummary provisionedProductPlanSummary, ProtocolMarshaller protocolMarshaller) { if (provisionedProductPlanSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ProvisionedProductPlanSummary provisionedProductPlanSummary, ProtocolMarshaller protocolMarshaller) { if (provisionedProductPlanSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public int compareTo(Object obj) { // can't compare with null if (obj == null) throw new NullPointerException("obj is null"); if (obj == this) return 0; if (obj instanceof ProfileTableNotification) { // compare the profile table name Pr...
public class class_name { public int compareTo(Object obj) { // can't compare with null if (obj == null) throw new NullPointerException("obj is null"); if (obj == this) return 0; if (obj instanceof ProfileTableNotification) { // compare the profile table name Pr...
public class class_name { private static void tryLayout( final Graphics2D graphics2D, final DistanceUnit scaleUnit, final double scaleDenominator, final double intervalLengthInWorldUnits, final ScaleBarRenderSettings settings, final int tryNumber) { if (tryNumber > MAX_NUMBE...
public class class_name { private static void tryLayout( final Graphics2D graphics2D, final DistanceUnit scaleUnit, final double scaleDenominator, final double intervalLengthInWorldUnits, final ScaleBarRenderSettings settings, final int tryNumber) { if (tryNumber > MAX_NUMBE...
public class class_name { private static void addEntry(final ArrayList<String> aStringArray) { try { final MagicMimeEntry magicEntry = new MagicMimeEntry(aStringArray); mMagicMimeEntries.add(magicEntry); } catch (final InvalidMagicMimeEntryException e) { } } }
public class class_name { private static void addEntry(final ArrayList<String> aStringArray) { try { final MagicMimeEntry magicEntry = new MagicMimeEntry(aStringArray); mMagicMimeEntries.add(magicEntry); // depends on control dependency: [try], data = [none] } catch (final InvalidMagicMimeEntryException e) {...
public class class_name { public static String binaryToString(Object tempBinary, int sDateFormat) { String aStr = Constants.BLANK; if (!(tempBinary instanceof Date)) return aStr; Date date = new Date(((Date)tempBinary).getTime()); if (date.getTime() == 0) re...
public class class_name { public static String binaryToString(Object tempBinary, int sDateFormat) { String aStr = Constants.BLANK; if (!(tempBinary instanceof Date)) return aStr; Date date = new Date(((Date)tempBinary).getTime()); if (date.getTime() == 0) re...
public class class_name { @Override public boolean stop() { synchronized(MetricCollectorSupport.class) { if (uploaderThread != null) { uploaderThread.cancel(); uploaderThread.interrupt(); uploaderThread = null; if (singleton == thi...
public class class_name { @Override public boolean stop() { synchronized(MetricCollectorSupport.class) { if (uploaderThread != null) { uploaderThread.cancel(); // depends on control dependency: [if], data = [none] uploaderThread.interrupt(); // depends on control...
public class class_name { @SuppressWarnings("unused") public void showBaseView() { if ((mForwardAnimatorSet != null && mForwardAnimatorSet.isRunning()) || (mAnimationView != null && mAnimationView.isPlaying()) || (mReverseAnimatorSet != null && mReverseAnimatorSet.isRunning(...
public class class_name { @SuppressWarnings("unused") public void showBaseView() { if ((mForwardAnimatorSet != null && mForwardAnimatorSet.isRunning()) || (mAnimationView != null && mAnimationView.isPlaying()) || (mReverseAnimatorSet != null && mReverseAnimatorSet.isRunning(...
public class class_name { @Override public EClass getIfcSpecularRoughness() { if (ifcSpecularRoughnessEClass == null) { ifcSpecularRoughnessEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(871); } return ifcSpecularRoughnessEClass; } }
public class class_name { @Override public EClass getIfcSpecularRoughness() { if (ifcSpecularRoughnessEClass == null) { ifcSpecularRoughnessEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(871); // depends on control dependency: [if], data = [none] ...
public class class_name { public static boolean contains(Object[] arr, Object obj) { if (arr != null) { for (int i = 0; i < arr.length; i++) { Object arri = arr[i]; if (arri == obj || (arri != null && arri.equals(obj))) { return true; ...
public class class_name { public static boolean contains(Object[] arr, Object obj) { if (arr != null) { for (int i = 0; i < arr.length; i++) { Object arri = arr[i]; if (arri == obj || (arri != null && arri.equals(obj))) { return true; // depends o...
public class class_name { public Map<String, Object> doRequest(final RequestProperties requestProps) { try { URL url = new URL(moipEnvironment + requestProps.endpoint); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty(...
public class class_name { public Map<String, Object> doRequest(final RequestProperties requestProps) { try { URL url = new URL(moipEnvironment + requestProps.endpoint); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty(...
public class class_name { private static void addEntry(Reference<?> ref, ReleaseListener entry) { synchronized (WeakReferenceMonitor.class) { // Add entry, the key is given reference. trackedEntries.put(ref, entry); // Start monitoring thread lazily. if (monitor...
public class class_name { private static void addEntry(Reference<?> ref, ReleaseListener entry) { synchronized (WeakReferenceMonitor.class) { // Add entry, the key is given reference. trackedEntries.put(ref, entry); // Start monitoring thread lazily. if (monitor...
public class class_name { final Set<String> getPrimaryColumnNames() { final List<DBColumn> primaryKeyColumnList = getPrimaryKeyColumnList(); final Set<String> primaryKeyColumnNameSet = new LinkedHashSet<String>(); for (DBColumn col : primaryKeyColumnList) { primaryKeyColumnNameSet.add(col.columnName()); } ...
public class class_name { final Set<String> getPrimaryColumnNames() { final List<DBColumn> primaryKeyColumnList = getPrimaryKeyColumnList(); final Set<String> primaryKeyColumnNameSet = new LinkedHashSet<String>(); for (DBColumn col : primaryKeyColumnList) { primaryKeyColumnNameSet.add(col.columnName()); // d...