code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { protected String getArguments(Object[] args) { if (args == null || args.length == 0) { return ""; } StringBuilder sb = new StringBuilder(); if (args.length == 1) { Object arg = args[0]; String param = getSingleArgParameter...
public class class_name { protected String getArguments(Object[] args) { if (args == null || args.length == 0) { return ""; // depends on control dependency: [if], data = [none] } StringBuilder sb = new StringBuilder(); if (args.length == 1) { Object arg = arg...
public class class_name { private void setAndValidateProperties(String systemDomain, String defaultAppDomain) { if (isConfigurationDefinedInFile()) { if ((systemDomain == null) || systemDomain.isEmpty()) { Tr.error(tc, "SECURITY_SERVICE_ERROR_MISSING_ATTRIBUTE", CFG_KEY_SYSTEM_DOMAI...
public class class_name { private void setAndValidateProperties(String systemDomain, String defaultAppDomain) { if (isConfigurationDefinedInFile()) { if ((systemDomain == null) || systemDomain.isEmpty()) { Tr.error(tc, "SECURITY_SERVICE_ERROR_MISSING_ATTRIBUTE", CFG_KEY_SYSTEM_DOMAI...
public class class_name { private void onDelete(EventLog log) { if (deleteEvents == null) { deleteEvents = new ConcurrentHashMap<Object, EventLog>(); } deleteEvents.put(log.getEntityId(), log); } }
public class class_name { private void onDelete(EventLog log) { if (deleteEvents == null) { deleteEvents = new ConcurrentHashMap<Object, EventLog>(); // depends on control dependency: [if], data = [none] } deleteEvents.put(log.getEntityId(), log); } }
public class class_name { @Override public boolean hasRemoteObjectWithPrefix(String appName, String moduleName, String compName, String namespaceString, String name) throws NamingException { boolean b = false; NamingConstants.JavaColonNamespace namespace = NamingConstants.JavaColonNamespace.fromNam...
public class class_name { @Override public boolean hasRemoteObjectWithPrefix(String appName, String moduleName, String compName, String namespaceString, String name) throws NamingException { boolean b = false; NamingConstants.JavaColonNamespace namespace = NamingConstants.JavaColonNamespace.fromNam...
public class class_name { public <X> X invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { final Map<Class<?>, Method> methods = this.methods; Method method = methods.get(i...
public class class_name { public <X> X invokeOnInstance(Object instance, Object... parameters) throws IllegalArgumentException, SecurityException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { final Map<Class<?>, Method> methods = this.methods; Method method = methods.get(i...
public class class_name { public java.util.List<String> getDeploymentStatusMessages() { if (deploymentStatusMessages == null) { deploymentStatusMessages = new com.amazonaws.internal.SdkInternalList<String>(); } return deploymentStatusMessages; } }
public class class_name { public java.util.List<String> getDeploymentStatusMessages() { if (deploymentStatusMessages == null) { deploymentStatusMessages = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return deploymentS...
public class class_name { public void actionPerformed(ActionEvent rEvent) { try{ // get the control that has fired the event, XControl xControl = (XControl) UnoRuntime.queryInterface(XControl.class, rEvent.Source); XControlModel xControlModel = xControl.getModel(); ...
public class class_name { public void actionPerformed(ActionEvent rEvent) { try{ // get the control that has fired the event, XControl xControl = (XControl) UnoRuntime.queryInterface(XControl.class, rEvent.Source); XControlModel xControlModel = xControl.getModel(); ...
public class class_name { public ResultMatcher isArray() { return new AbstractResultMatcher(path, configuration) { public void doMatch(Object actual) { isPresent(actual); Node node = getNode(actual); if (node.getNodeType() != ARRAY) { ...
public class class_name { public ResultMatcher isArray() { return new AbstractResultMatcher(path, configuration) { public void doMatch(Object actual) { isPresent(actual); Node node = getNode(actual); if (node.getNodeType() != ARRAY) { ...
public class class_name { public static void setDebugConfigs(OneProperties debugConfigsObj, String debugConfigAbsoluteClassPath) { if (debugConfigsObj != null) { Configs.debugConfigs = debugConfigsObj; } if (debugConfigAbsoluteClassPath != null) { Configs.debugConfi...
public class class_name { public static void setDebugConfigs(OneProperties debugConfigsObj, String debugConfigAbsoluteClassPath) { if (debugConfigsObj != null) { Configs.debugConfigs = debugConfigsObj; // depends on control dependency: [if], data = [none] } if (debugConfigAbsolu...
public class class_name { protected String getPath(String urlName) { if (urlName.equals("")) { return m_entry.getSitePath(); } return CmsResource.getParentFolder(m_entry.getSitePath()) + urlName + "/"; } }
public class class_name { protected String getPath(String urlName) { if (urlName.equals("")) { return m_entry.getSitePath(); // depends on control dependency: [if], data = [none] } return CmsResource.getParentFolder(m_entry.getSitePath()) + urlName + "/"; } }
public class class_name { public static boolean getHandleErrorWithFatalErrorPageFactory() { Boolean parameterValue = get().getBoolean(HANDLE_ERROR_WITH_FATAL_PAGE_FACTORY, null); if (parameterValue != null) { return parameterValue; } // fall-back to the old parameter value if the new value is not set. re...
public class class_name { public static boolean getHandleErrorWithFatalErrorPageFactory() { Boolean parameterValue = get().getBoolean(HANDLE_ERROR_WITH_FATAL_PAGE_FACTORY, null); if (parameterValue != null) { return parameterValue; // depends on control dependency: [if], data = [none] } // fall-back to the...
public class class_name { public double[][] Kernel2D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catch (Exception e) { e.printStackTrace(); } } int r = size / 2...
public class class_name { public double[][] Kernel2D(int size) { if (((size % 2) == 0) || (size < 3) || (size > 101)) { try { throw new Exception("Wrong size"); } catch (Exception e) { e.printStackTrace(); } // depends on control dependency: [...
public class class_name { public static void toGeojsonMultiLineString(MultiLineString multiLineString, StringBuilder sb) { sb.append("{\"type\":\"MultiLineString\",\"coordinates\":["); for (int i = 0; i < multiLineString.getNumGeometries(); i++) { toGeojsonCoordinates(multiLineString.getGeo...
public class class_name { public static void toGeojsonMultiLineString(MultiLineString multiLineString, StringBuilder sb) { sb.append("{\"type\":\"MultiLineString\",\"coordinates\":["); for (int i = 0; i < multiLineString.getNumGeometries(); i++) { toGeojsonCoordinates(multiLineString.getGeo...
public class class_name { @SuppressWarnings("unchecked") public static <T> T getFieldValue(Object object, String fieldName) { if(object instanceof Class<?>) { return getFieldValue(null, (Class<?>)object, fieldName, null, false); } Class<?> clazz = object.getClass(); try { Fiel...
public class class_name { @SuppressWarnings("unchecked") public static <T> T getFieldValue(Object object, String fieldName) { if(object instanceof Class<?>) { return getFieldValue(null, (Class<?>)object, fieldName, null, false); // depends on control dependency: [if], data = [)] } Class<?...
public class class_name { public int skipWhitespace() { int length = 0; while (CharType.isWhitespace(charAt(offset + length))) { length++; } return offset + length; } }
public class class_name { public int skipWhitespace() { int length = 0; while (CharType.isWhitespace(charAt(offset + length))) { length++; // depends on control dependency: [while], data = [none] } return offset + length; } }
public class class_name { private static List<Class<?>> findClasses(final File iDirectory, String iPackageName, ClassLoader iClassLoader) throws ClassNotFoundException { final List<Class<?>> classes = new ArrayList<Class<?>>(); if (!iDirectory.exists()) return classes; iPackageName += "." + iD...
public class class_name { private static List<Class<?>> findClasses(final File iDirectory, String iPackageName, ClassLoader iClassLoader) throws ClassNotFoundException { final List<Class<?>> classes = new ArrayList<Class<?>>(); if (!iDirectory.exists()) return classes; iPackageName += "." + iD...
public class class_name { private static int escapeFunctionArguments(StringBuilder newsql, String functionName, char[] sql, int i, boolean stdStrings) throws SQLException { // Maximum arity of functions in EscapedFunctions is 3 List<CharSequence> parsedArgs = new ArrayList<CharSequence>(3); whi...
public class class_name { private static int escapeFunctionArguments(StringBuilder newsql, String functionName, char[] sql, int i, boolean stdStrings) throws SQLException { // Maximum arity of functions in EscapedFunctions is 3 List<CharSequence> parsedArgs = new ArrayList<CharSequence>(3); whi...
public class class_name { public Map<Change, PatchSet> getChanges(GerritQueryHandler gerritQueryHandler) { if (StringUtils.isEmpty(name)) { logger.error("Topic name can not be empty"); return Collections.emptyMap(); } if (changes == null) { Map<Change, Patch...
public class class_name { public Map<Change, PatchSet> getChanges(GerritQueryHandler gerritQueryHandler) { if (StringUtils.isEmpty(name)) { logger.error("Topic name can not be empty"); // depends on control dependency: [if], data = [none] return Collections.emptyMap(); // depends on con...
public class class_name { public static AnnotatedType<?> getDeclaringAnnotatedType(Annotated annotated) { if (annotated == null) { throw new IllegalArgumentException("Annotated cannot be null"); } if (annotated instanceof AnnotatedType<?>) { return cast(annotated); ...
public class class_name { public static AnnotatedType<?> getDeclaringAnnotatedType(Annotated annotated) { if (annotated == null) { throw new IllegalArgumentException("Annotated cannot be null"); } if (annotated instanceof AnnotatedType<?>) { return cast(annotated); // de...
public class class_name { @Override public void taskStarting() throws RejectedExecutionException { // Deserialization path. By the time we are here the metadata should already be present. if (metaDataIdentifier != null && metadataToPropagate == null) metadataToPropagate = (ComponentMeta...
public class class_name { @Override public void taskStarting() throws RejectedExecutionException { // Deserialization path. By the time we are here the metadata should already be present. if (metaDataIdentifier != null && metadataToPropagate == null) metadataToPropagate = (ComponentMeta...
public class class_name { private static Set<Long> getFeedItemIdsFromArgument(Function function) { if (function.getLhsOperand().length == 1 && function.getLhsOperand(0) instanceof RequestContextOperand) { RequestContextOperand requestContextOperand = (RequestContextOperand) function.getLhsO...
public class class_name { private static Set<Long> getFeedItemIdsFromArgument(Function function) { if (function.getLhsOperand().length == 1 && function.getLhsOperand(0) instanceof RequestContextOperand) { RequestContextOperand requestContextOperand = (RequestContextOperand) function.getLhsO...
public class class_name { @Override public int findIn(Source source) { if (schemaless) { return -1; } int start = source.getOffset(); int sourceLength = source.length(); int index; int length = -1; do { index = sourceLength; ...
public class class_name { @Override public int findIn(Source source) { if (schemaless) { return -1; // depends on control dependency: [if], data = [none] } int start = source.getOffset(); int sourceLength = source.length(); int index; int length = -1; ...
public class class_name { protected void setSyncConfig(SyncToolConfig syncConfig) { this.syncConfig = syncConfig; this.syncConfig.setVersion(version); File exclusionListFile = this.syncConfig.getExcludeList(); if (exclusionListFile != null) { this.fileExclusionManager = new ...
public class class_name { protected void setSyncConfig(SyncToolConfig syncConfig) { this.syncConfig = syncConfig; this.syncConfig.setVersion(version); File exclusionListFile = this.syncConfig.getExcludeList(); if (exclusionListFile != null) { this.fileExclusionManager = new ...
public class class_name { public Collection<String> getProcessNameContainsCount(String name) { List<String> retProcessList = new ArrayList<String>(); // Get the list of processes List<Integer> processList = getProcessList(); for (Integer proc : processList) { // Get information for each process ...
public class class_name { public Collection<String> getProcessNameContainsCount(String name) { List<String> retProcessList = new ArrayList<String>(); // Get the list of processes List<Integer> processList = getProcessList(); for (Integer proc : processList) { // Get information for each process ...
public class class_name { private static void queueTask(long threadId, Runnable toRun){ assert control.isHeldByCurrentThread(); assert threadId != currentThread; //(get queue) if(!threadedLogQueue.containsKey(threadId)){ threadedLogQueue.put(threadId, new LinkedList<Runnable>()); } ...
public class class_name { private static void queueTask(long threadId, Runnable toRun){ assert control.isHeldByCurrentThread(); assert threadId != currentThread; //(get queue) if(!threadedLogQueue.containsKey(threadId)){ threadedLogQueue.put(threadId, new LinkedList<Runnable>()); // depends...
public class class_name { @Override public Transformed<Val<Expression>> transform(String field, String operator, Val<Expression> arg, int index, int count, EbeanExprInvoker invoker, ...
public class class_name { @Override public Transformed<Val<Expression>> transform(String field, String operator, Val<Expression> arg, int index, int count, EbeanExprInvoker invoker, ...
public class class_name { public void setSystemPropertiesMode(String pMode) { systemPropertyMode = SystemPropertyMode.fromMode(pMode); if (systemPropertyMode == null) { systemPropertyMode = SystemPropertyMode.MODE_NEVER; } } }
public class class_name { public void setSystemPropertiesMode(String pMode) { systemPropertyMode = SystemPropertyMode.fromMode(pMode); if (systemPropertyMode == null) { systemPropertyMode = SystemPropertyMode.MODE_NEVER; // depends on control dependency: [if], data = [none] } } ...
public class class_name { private static boolean isIPv4MappedAddress(final byte[] addr) { if (addr.length < INADDR16SZ) { return false; } return addr[0] == 0x00 && addr[1] == 0x00 && addr[2] == 0x00 && addr[3] == 0x00 && addr[4] == 0x00 && addr[5] == 0x00 && addr[6] == 0x00 && addr[7] == 0x00...
public class class_name { private static boolean isIPv4MappedAddress(final byte[] addr) { if (addr.length < INADDR16SZ) { return false; // depends on control dependency: [if], data = [none] } return addr[0] == 0x00 && addr[1] == 0x00 && addr[2] == 0x00 && addr[3] == 0x00 && addr[4] == 0x00 &&...
public class class_name { public static synchronized VelocityEngine getVelocityEngine() { if (engine == null) { String fileTemplates = ConfigurationProperties.getVelocityFileTemplates(); boolean cacheTemplates = ConfigurationProperties.getVelocityCacheTemplates(); VelocityEngine newEngine = new VelocityEng...
public class class_name { public static synchronized VelocityEngine getVelocityEngine() { if (engine == null) { String fileTemplates = ConfigurationProperties.getVelocityFileTemplates(); boolean cacheTemplates = ConfigurationProperties.getVelocityCacheTemplates(); VelocityEngine newEngine = new VelocityEng...
public class class_name { @NotNull public OptionalDouble average() { long count = 0; double sum = 0d; while (iterator.hasNext()) { sum += iterator.nextDouble(); count++; } if (count == 0) return OptionalDouble.empty(); return OptionalDouble.of...
public class class_name { @NotNull public OptionalDouble average() { long count = 0; double sum = 0d; while (iterator.hasNext()) { sum += iterator.nextDouble(); // depends on control dependency: [while], data = [none] count++; // depends on control dependency: [while...
public class class_name { @SuppressWarnings("unchecked") public static <A> A create(Class<A> swaggerInterface, AzureEnvironment azureEnvironment, HttpPipeline httpPipeline, SerializerAdapter serializer) { String baseUrl = null; if (azureEnvironment != null) { final AzureHost azureHost ...
public class class_name { @SuppressWarnings("unchecked") public static <A> A create(Class<A> swaggerInterface, AzureEnvironment azureEnvironment, HttpPipeline httpPipeline, SerializerAdapter serializer) { String baseUrl = null; if (azureEnvironment != null) { final AzureHost azureHost ...
public class class_name { public void setValidCharRange(int minValidChar, int maxValidChar) { if (minValidChar <= maxValidChar) { this.minValidChar = minValidChar; this.maxValidChar = maxValidChar; } else { this.maxValidChar = minValidChar; this.minValidChar = maxValidChar; } } }
public class class_name { public void setValidCharRange(int minValidChar, int maxValidChar) { if (minValidChar <= maxValidChar) { this.minValidChar = minValidChar; // depends on control dependency: [if], data = [none] this.maxValidChar = maxValidChar; // depends on control dependency: [if], data = [none] } e...
public class class_name { private static int getDayOfYear(int cycleNumber, int dayOfCycle, int yearInCycle) { Integer[] cycles = getAdjustedCycle(cycleNumber); if (dayOfCycle > 0) { return dayOfCycle - cycles[yearInCycle].intValue(); } else { return cycles[yearInCycle]....
public class class_name { private static int getDayOfYear(int cycleNumber, int dayOfCycle, int yearInCycle) { Integer[] cycles = getAdjustedCycle(cycleNumber); if (dayOfCycle > 0) { return dayOfCycle - cycles[yearInCycle].intValue(); // depends on control dependency: [if], data = [none] ...
public class class_name { public static PdfTextArray getKernArray(String text, BaseFont font) { PdfTextArray pa = new PdfTextArray(); StringBuffer acc = new StringBuffer(); int len = text.length() - 1; char c[] = text.toCharArray(); if (len >= 0) acc.append(c, 0, 1);...
public class class_name { public static PdfTextArray getKernArray(String text, BaseFont font) { PdfTextArray pa = new PdfTextArray(); StringBuffer acc = new StringBuffer(); int len = text.length() - 1; char c[] = text.toCharArray(); if (len >= 0) acc.append(c, 0, 1);...
public class class_name { public void marshall(DeleteRetentionPolicyRequest deleteRetentionPolicyRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRetentionPolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(DeleteRetentionPolicyRequest deleteRetentionPolicyRequest, ProtocolMarshaller protocolMarshaller) { if (deleteRetentionPolicyRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void saveConfiguration() { if (this.createConfigurationXML()) { XMLFileChooser fc = new XMLFileChooser(); if (fc.showSaveDialog(new JPanel()) == XMLFileChooser.APPROVE_OPTION) { String path = fc.getSelectedFile().getPath(); if (path.indexOf('.') == -1) { path +...
public class class_name { public void saveConfiguration() { if (this.createConfigurationXML()) { XMLFileChooser fc = new XMLFileChooser(); if (fc.showSaveDialog(new JPanel()) == XMLFileChooser.APPROVE_OPTION) { String path = fc.getSelectedFile().getPath(); if (path.indexOf('.') == -1) { path +...
public class class_name { @Override public EClass getIfcOpenShell() { if (ifcOpenShellEClass == null) { ifcOpenShellEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(396); } return ifcOpenShellEClass; } }
public class class_name { @Override public EClass getIfcOpenShell() { if (ifcOpenShellEClass == null) { ifcOpenShellEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(396); // depends on control dependency: [if], data = [none] } return ifcOpenShell...
public class class_name { public static void sortNode(TreeNode node, Comparator comparator) { TreeNodeList children = (TreeNodeList) node.getChildren(); if (children != null && !children.isEmpty()) { Object[] childrenArray = children.toArray(); Arrays.sort(childrenArray, compar...
public class class_name { public static void sortNode(TreeNode node, Comparator comparator) { TreeNodeList children = (TreeNodeList) node.getChildren(); if (children != null && !children.isEmpty()) { Object[] childrenArray = children.toArray(); Arrays.sort(childrenArray, compar...
public class class_name { @Override public void decode(FacesContext context, UIComponent component) { Slider slider = (Slider) component; if (slider.isDisabled() || slider.isReadonly()) { return; } decodeBehaviors(context, slider); String clientId = slider.getClientId(context); String submittedValue...
public class class_name { @Override public void decode(FacesContext context, UIComponent component) { Slider slider = (Slider) component; if (slider.isDisabled() || slider.isReadonly()) { return; // depends on control dependency: [if], data = [none] } decodeBehaviors(context, slider); String clientId ...
public class class_name { public static Type.Record[] typeRecordConstructor(Identifier field, Type... expected) { Type.Record[] result = new Type.Record[expected.length]; for (int i = 0; i != expected.length; ++i) { Tuple<Type.Field> fields = new Tuple<>(new Type.Field(field, expected[i])); result[i] = new T...
public class class_name { public static Type.Record[] typeRecordConstructor(Identifier field, Type... expected) { Type.Record[] result = new Type.Record[expected.length]; for (int i = 0; i != expected.length; ++i) { Tuple<Type.Field> fields = new Tuple<>(new Type.Field(field, expected[i])); result[i] = new T...
public class class_name { private FilePosition getEndPosition(Node node) throws IOException { int length = node.getLength(); int lineno = currentLine; int charno = currentChar; while (charno + length > lineLengths[lineno]) { length -= (lineLengths[lineno]-charno); lineno++; charno = 0; if (...
public class class_name { private FilePosition getEndPosition(Node node) throws IOException { int length = node.getLength(); int lineno = currentLine; int charno = currentChar; while (charno + length > lineLengths[lineno]) { length -= (lineLengths[lineno]-charno); lineno++; charno = 0; if (...
public class class_name { public static Class<?> getRawClass(Type type) { if (type instanceof Class) { return (Class<?>) type; } if (type instanceof ParameterizedType) { return (Class<?>) ((ParameterizedType) type).getRawType(); } if (type instanceof Type...
public class class_name { public static Class<?> getRawClass(Type type) { if (type instanceof Class) { return (Class<?>) type; } if (type instanceof ParameterizedType) { return (Class<?>) ((ParameterizedType) type).getRawType(); } if (type instanceof Type...
public class class_name { private void respondWithFile(ChannelHandlerContext ctx, HttpRequest request, String requestPath) throws IOException, ParseException { // make sure we request the "index.html" in case there is a directory request if (requestPath.endsWith("/")) { requestPath = requestPath + "index.htm...
public class class_name { private void respondWithFile(ChannelHandlerContext ctx, HttpRequest request, String requestPath) throws IOException, ParseException { // make sure we request the "index.html" in case there is a directory request if (requestPath.endsWith("/")) { requestPath = requestPath + "index.htm...
public class class_name { @Check(CheckType.FAST) public void checkParameterName(XVariableDeclaration variable) { if (this.grammarAccess.getOccurrenceKeyword().equals(variable.getName())) { error(MessageFormat.format( Messages.SARLValidator_15, this.grammarAccess.getOccurrenceKeyword()), variable, ...
public class class_name { @Check(CheckType.FAST) public void checkParameterName(XVariableDeclaration variable) { if (this.grammarAccess.getOccurrenceKeyword().equals(variable.getName())) { error(MessageFormat.format( Messages.SARLValidator_15, this.grammarAccess.getOccurrenceKeyword()), variable, ...
public class class_name { public static Proxy getProxy(final IProxyProvider provider, final boolean test) throws IOException { LOGGER.info("Getting proxy..."); List<Proxy> proxies = provider.getProxies(-1, false, true); LOGGER.info("Total Proxies: " + proxies.size()); final CountDownLatch countDown =...
public class class_name { public static Proxy getProxy(final IProxyProvider provider, final boolean test) throws IOException { LOGGER.info("Getting proxy..."); List<Proxy> proxies = provider.getProxies(-1, false, true); LOGGER.info("Total Proxies: " + proxies.size()); final CountDownLatch countDown =...
public class class_name { @Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11") public StellplatzKategorieTyp getParkplatz() { if (parkplatz == null) { return StellplatzKategorieTyp.KEINE_ANGABE; } else { return park...
public class class_name { @Generated(value = "com.sun.tools.xjc.Driver", date = "2018-10-12T02:52:47+02:00", comments = "JAXB RI v2.2.11") public StellplatzKategorieTyp getParkplatz() { if (parkplatz == null) { return StellplatzKategorieTyp.KEINE_ANGABE; // depends on control dependency: [if], ...
public class class_name { private void _advance(int count) { if (buf != null) { bufPos += count; if (bufPos == buf.length) { buf = null; } } else { pos.setIndex(pos.getIndex() + count); if (pos.getIndex() > text.length()) { ...
public class class_name { private void _advance(int count) { if (buf != null) { bufPos += count; // depends on control dependency: [if], data = [none] if (bufPos == buf.length) { buf = null; // depends on control dependency: [if], data = [none] } } el...
public class class_name { public void setValue(final Duration tenantDuration) { if (tenantDuration == null) { // no tenant specific configuration checkBox.setValue(false); durationField.setDuration(globalDuration); durationField.setEnabled(false); ret...
public class class_name { public void setValue(final Duration tenantDuration) { if (tenantDuration == null) { // no tenant specific configuration checkBox.setValue(false); // depends on control dependency: [if], data = [none] durationField.setDuration(globalDuration); // dep...
public class class_name { private void configureTokenProviders() { STSType stsType = getFederationService().getValue().getStsType(); if (stsType != null) { int tokenTimeout = stsType.getTokenTimeout(); int clockSkew = stsType.getClockSkew(); STSType providerStsType...
public class class_name { private void configureTokenProviders() { STSType stsType = getFederationService().getValue().getStsType(); if (stsType != null) { int tokenTimeout = stsType.getTokenTimeout(); int clockSkew = stsType.getClockSkew(); STSType providerStsType...
public class class_name { protected List<String> getSignificantContent() { for (int i = segments.size() - 1; i >= 0; i--) { String segment = segments.get(i); if (lineDelimiter.equals(segment)) { return segments.subList(0, i + 1); } for (int j = 0; j < segment.length(); j++) { if (!WhitespaceMatch...
public class class_name { protected List<String> getSignificantContent() { for (int i = segments.size() - 1; i >= 0; i--) { String segment = segments.get(i); if (lineDelimiter.equals(segment)) { return segments.subList(0, i + 1); // depends on control dependency: [if], data = [none] } for (int j = 0;...
public class class_name { @SuppressWarnings("unchecked") private void comparableDecreaseKey(Node<K, V> n, K newKey) { int c = ((Comparable<? super K>) newKey).compareTo(n.key); if (c > 0) { throw new IllegalArgumentException("Keys can only be decreased!"); } n.key = newK...
public class class_name { @SuppressWarnings("unchecked") private void comparableDecreaseKey(Node<K, V> n, K newKey) { int c = ((Comparable<? super K>) newKey).compareTo(n.key); if (c > 0) { throw new IllegalArgumentException("Keys can only be decreased!"); } n.key = newK...
public class class_name { public Collection<String> nearestLabels(LabelledDocument document, int topN) { if (document.getReferencedContent() != null) { return nearestLabels(document.getReferencedContent(), topN); } else return nearestLabels(document.getContent(), topN); } }
public class class_name { public Collection<String> nearestLabels(LabelledDocument document, int topN) { if (document.getReferencedContent() != null) { return nearestLabels(document.getReferencedContent(), topN); // depends on control dependency: [if], data = [(document.getReferencedContent()] ...
public class class_name { @SuppressWarnings("unchecked") public synchronized ValT get(Object elementKey) { KeyT key = (KeyT) elementKey; ValT value = cache.get(key); if (value != null) { // memory hit Log.d(name, "MEM cache hit for " + key.toString()); re...
public class class_name { @SuppressWarnings("unchecked") public synchronized ValT get(Object elementKey) { KeyT key = (KeyT) elementKey; ValT value = cache.get(key); if (value != null) { // memory hit Log.d(name, "MEM cache hit for " + key.toString()); // depends on ...
public class class_name { public static <T> T min( T[] array ) { if ( array.length > 1 ) { Sorting.sort(array); return array[0]; } else { return null; } } }
public class class_name { public static <T> T min( T[] array ) { if ( array.length > 1 ) { Sorting.sort(array); // depends on control dependency: [if], data = [none] return array[0]; // depends on control dependency: [if], data = [none] } else { return null; // dep...
public class class_name { protected String getXMLEncoding(Node nodeArg) { Document doc = null; // Determine the XML Encoding of the document if (nodeArg != null) { if (nodeArg.getNodeType() == Node.DOCUMENT_NODE) { // The Document node is the Node argument ...
public class class_name { protected String getXMLEncoding(Node nodeArg) { Document doc = null; // Determine the XML Encoding of the document if (nodeArg != null) { if (nodeArg.getNodeType() == Node.DOCUMENT_NODE) { // The Document node is the Node argument ...
public class class_name { public boolean decode(ChannelBuffer buffer, CommandOutput<K, V, ?> output) { int length, end; ByteBuffer bytes; if (stack.isEmpty()) { stack.add(new State()); } loop: while (!stack.isEmpty()) { State state = stack.peek...
public class class_name { public boolean decode(ChannelBuffer buffer, CommandOutput<K, V, ?> output) { int length, end; ByteBuffer bytes; if (stack.isEmpty()) { stack.add(new State()); // depends on control dependency: [if], data = [none] } loop: while (!s...
public class class_name { public static String injectVariables(String template, Map<String, String> variables) { VariablesWriter writer = new VariablesWriter(variables); try { Files.copy(new StringReader(template), writer); } catch(IOException e) { log.error(e); } return ...
public class class_name { public static String injectVariables(String template, Map<String, String> variables) { VariablesWriter writer = new VariablesWriter(variables); try { Files.copy(new StringReader(template), writer); // depends on control dependency: [try], data = [none] } catch(IO...
public class class_name { public static boolean isProvider(String templatePath) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(templatePath)) { return false; } templatePath = templatePath.trim(); return templatePath.startsWith(DYNAMIC_TEMPLATE_LEGACY_PREFIX) ...
public class class_name { public static boolean isProvider(String templatePath) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(templatePath)) { return false; // depends on control dependency: [if], data = [none] } templatePath = templatePath.trim(); return templatePath.s...
public class class_name { @Nullable public static String uppercaseFirstChar(String str, Language language) { if (language != null && "nl".equals(language.getShortCode()) && str != null && str.toLowerCase().startsWith("ij")) { // hack to fix https://github.com/languagetool-org/languagetool/issues/148 ...
public class class_name { @Nullable public static String uppercaseFirstChar(String str, Language language) { if (language != null && "nl".equals(language.getShortCode()) && str != null && str.toLowerCase().startsWith("ij")) { // hack to fix https://github.com/languagetool-org/languagetool/issues/148 ...
public class class_name { public void setRolePolicyList(java.util.Collection<PolicyDetail> rolePolicyList) { if (rolePolicyList == null) { this.rolePolicyList = null; return; } this.rolePolicyList = new com.amazonaws.internal.SdkInternalList<PolicyDetail>(rolePolicyList...
public class class_name { public void setRolePolicyList(java.util.Collection<PolicyDetail> rolePolicyList) { if (rolePolicyList == null) { this.rolePolicyList = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] ...
public class class_name { public static <T> T cloneObjectWithParents (T t) throws IllegalAccessException, InstantiationException { T clone = (T) t.getClass().newInstance(); List<Field> allFields = new ArrayList<>(); Class parentClass = t.getClass().getSuperclass(); while (parentClass...
public class class_name { public static <T> T cloneObjectWithParents (T t) throws IllegalAccessException, InstantiationException { T clone = (T) t.getClass().newInstance(); List<Field> allFields = new ArrayList<>(); Class parentClass = t.getClass().getSuperclass(); while (parentClass...
public class class_name { @Override public void eval(INDArray labels, INDArray predictions, INDArray mask, final List<? extends Serializable> recordMetaData) { Triple<INDArray,INDArray, INDArray> p = BaseEvaluation.reshapeAndExtractNotMasked(labels, predictions, mask, axis); if(p == null){ ...
public class class_name { @Override public void eval(INDArray labels, INDArray predictions, INDArray mask, final List<? extends Serializable> recordMetaData) { Triple<INDArray,INDArray, INDArray> p = BaseEvaluation.reshapeAndExtractNotMasked(labels, predictions, mask, axis); if(p == null){ ...
public class class_name { public ParameterRanges withIntegerParameterRanges(IntegerParameterRange... integerParameterRanges) { if (this.integerParameterRanges == null) { setIntegerParameterRanges(new java.util.ArrayList<IntegerParameterRange>(integerParameterRanges.length)); } for (...
public class class_name { public ParameterRanges withIntegerParameterRanges(IntegerParameterRange... integerParameterRanges) { if (this.integerParameterRanges == null) { setIntegerParameterRanges(new java.util.ArrayList<IntegerParameterRange>(integerParameterRanges.length)); // depends on control d...
public class class_name { public Charset getCharset() { if (bootstrapEvent != null) { return Charset.forName(bootstrapEvent.getDefaultCharsetName()); } else { return Charset.defaultCharset(); } } }
public class class_name { public Charset getCharset() { if (bootstrapEvent != null) { return Charset.forName(bootstrapEvent.getDefaultCharsetName()); // depends on control dependency: [if], data = [(bootstrapEvent] } else { return Charset.defaultCharset(); // depends on control dependency: [if], da...
public class class_name { public Q setLong(final int index, final Number value) { if (value == null) { setNull(index, Types.BIGINT); } else { setLong(index, value.longValue()); } return _this(); } }
public class class_name { public Q setLong(final int index, final Number value) { if (value == null) { setNull(index, Types.BIGINT); // depends on control dependency: [if], data = [none] } else { setLong(index, value.longValue()); // depends on control dependency: [if], data = [none] } return _this(); ...
public class class_name { public Object getName(String methodName) { if (getProxyBuilder().nameMappingClosure != null) { return getProxyBuilder().nameMappingClosure.call(methodName); } return methodName; } }
public class class_name { public Object getName(String methodName) { if (getProxyBuilder().nameMappingClosure != null) { return getProxyBuilder().nameMappingClosure.call(methodName); // depends on control dependency: [if], data = [none] } return methodName; } }
public class class_name { @Execute public HtmlResponse index() { if (isLoginRequired()) { return redirectToLogin(); } return asHtml(virtualHost(path_IndexJsp)).useForm(SearchForm.class, op -> { op.setup(form -> { buildFormParams(form); })...
public class class_name { @Execute public HtmlResponse index() { if (isLoginRequired()) { return redirectToLogin(); // depends on control dependency: [if], data = [none] } return asHtml(virtualHost(path_IndexJsp)).useForm(SearchForm.class, op -> { op.setup(form -> {...
public class class_name { public static void configureAnnotatedHttpServices( ServerBuilder server, List<AnnotatedServiceRegistrationBean> beans, @Nullable MeterIdPrefixFunctionFactory meterIdPrefixFunctionFactory) { requireNonNull(server, "server"); requireNonNull(beans, "beans"...
public class class_name { public static void configureAnnotatedHttpServices( ServerBuilder server, List<AnnotatedServiceRegistrationBean> beans, @Nullable MeterIdPrefixFunctionFactory meterIdPrefixFunctionFactory) { requireNonNull(server, "server"); requireNonNull(beans, "beans"...
public class class_name { public static void setUserConsent(boolean value) { boolean hadUserConsent = hasUserConsent(); WonderPushConfiguration.setUserConsent(value); boolean nowHasUserConsent = hasUserConsent(); if (sIsInitialized && hadUserConsent != nowHasUserConsent) { h...
public class class_name { public static void setUserConsent(boolean value) { boolean hadUserConsent = hasUserConsent(); WonderPushConfiguration.setUserConsent(value); boolean nowHasUserConsent = hasUserConsent(); if (sIsInitialized && hadUserConsent != nowHasUserConsent) { h...
public class class_name { @Subscribe public synchronized void renew(final DisabledStateChangedEvent disabledStateChangedEvent) { OrchestrationShardingSchema shardingSchema = disabledStateChangedEvent.getShardingSchema(); if (ShardingConstant.LOGIC_SCHEMA_NAME.equals(shardingSchema.getSchemaName()))...
public class class_name { @Subscribe public synchronized void renew(final DisabledStateChangedEvent disabledStateChangedEvent) { OrchestrationShardingSchema shardingSchema = disabledStateChangedEvent.getShardingSchema(); if (ShardingConstant.LOGIC_SCHEMA_NAME.equals(shardingSchema.getSchemaName()))...
public class class_name { public Filter<S> or(Filter<S> filter) { if (filter.isOpen()) { return filter; } if (filter.isClosed()) { return this; } return OrFilter.getCanonical(this, filter); } }
public class class_name { public Filter<S> or(Filter<S> filter) { if (filter.isOpen()) { return filter; // depends on control dependency: [if], data = [none] } if (filter.isClosed()) { return this; // depends on control dependency: [if], data = [none] } ...
public class class_name { private void initializeParameters(InitParams initParams) { ValueParam paramRepository = initParams.getValueParam(REPOSITORY_NAME); repositoryName = paramRepository != null ? paramRepository.getValue() : null; ValueParam paramStoragePath = initParams.getValueParam(STORAGE...
public class class_name { private void initializeParameters(InitParams initParams) { ValueParam paramRepository = initParams.getValueParam(REPOSITORY_NAME); repositoryName = paramRepository != null ? paramRepository.getValue() : null; ValueParam paramStoragePath = initParams.getValueParam(STORAGE...
public class class_name { public static InvocationException newInstance(InvocationContext context, HttpResponse response, Throwable rootCause) { if(rootCause instanceof InvocationException) { return (InvocationException)rootCause; } return new InvocationException(context, response, rootCause); } }
public class class_name { public static InvocationException newInstance(InvocationContext context, HttpResponse response, Throwable rootCause) { if(rootCause instanceof InvocationException) { return (InvocationException)rootCause; // depends on control dependency: [if], data = [none] } return new In...
public class class_name { private List<WorkUnit> getWorkUnitsForTopic(KafkaTopic topic, SourceState state, Optional<State> topicSpecificState) { Timer.Context context = this.metricContext.timer("isTopicQualifiedTimer").time(); boolean topicQualified = isTopicQualified(topic); context.close(); List<Wor...
public class class_name { private List<WorkUnit> getWorkUnitsForTopic(KafkaTopic topic, SourceState state, Optional<State> topicSpecificState) { Timer.Context context = this.metricContext.timer("isTopicQualifiedTimer").time(); boolean topicQualified = isTopicQualified(topic); context.close(); List<Wor...
public class class_name { private void overrideFromSystemProperties() { String url = System.getProperty("activejdbc.url"); String user = System.getProperty("activejdbc.user"); String password = System.getProperty("activejdbc.password"); String driver = System.getProperty("activejdbc...
public class class_name { private void overrideFromSystemProperties() { String url = System.getProperty("activejdbc.url"); String user = System.getProperty("activejdbc.user"); String password = System.getProperty("activejdbc.password"); String driver = System.getProperty("activejdbc...
public class class_name { protected final boolean shouldSkipFilter(final I inMesg, final ZuulFilter<I, O> filter) { if (filter.filterType() == ENDPOINT) { //Endpoints may not be skipped return false; } final SessionContext zuulCtx = inMesg.getContext(); if ((zuul...
public class class_name { protected final boolean shouldSkipFilter(final I inMesg, final ZuulFilter<I, O> filter) { if (filter.filterType() == ENDPOINT) { //Endpoints may not be skipped return false; // depends on control dependency: [if], data = [none] } final SessionCo...
public class class_name { protected String stripHeadingAndCode(String text) { if (text.startsWith(DSLMappingEntry.CONDITION.getSymbol())) { return text.substring(DSLMappingEntry.CONDITION.getSymbol().length() + 2,text.indexOf("=")); } else if (text.startsWith(DSLMappingEntry.CONSEQUENCE.get...
public class class_name { protected String stripHeadingAndCode(String text) { if (text.startsWith(DSLMappingEntry.CONDITION.getSymbol())) { return text.substring(DSLMappingEntry.CONDITION.getSymbol().length() + 2,text.indexOf("=")); // depends on control dependency: [if], data = [none] } el...
public class class_name { private boolean condissect(RuntimeSubexpression t, int begin, int end) { Dfa d; Dfa d2; int mid; assert t.op == '.'; assert t.left != null && t.left.machine.states.length > 0; assert t.right != null && t.right.machine.states.length > 0; ...
public class class_name { private boolean condissect(RuntimeSubexpression t, int begin, int end) { Dfa d; Dfa d2; int mid; assert t.op == '.'; assert t.left != null && t.left.machine.states.length > 0; assert t.right != null && t.right.machine.states.length > 0; ...
public class class_name { public java.util.List<IpRouteInfo> getIpRoutesInfo() { if (ipRoutesInfo == null) { ipRoutesInfo = new com.amazonaws.internal.SdkInternalList<IpRouteInfo>(); } return ipRoutesInfo; } }
public class class_name { public java.util.List<IpRouteInfo> getIpRoutesInfo() { if (ipRoutesInfo == null) { ipRoutesInfo = new com.amazonaws.internal.SdkInternalList<IpRouteInfo>(); // depends on control dependency: [if], data = [none] } return ipRoutesInfo; } }
public class class_name { @Override public void paint(final RenderContext renderContext) { super.paint(renderContext); if (!DebugUtil.isDebugFeaturesEnabled() || !(renderContext instanceof WebXmlRenderContext)) { return; } XmlStringBuilder xml = ((WebXmlRenderContext) renderContext).getWriter(); xml.a...
public class class_name { @Override public void paint(final RenderContext renderContext) { super.paint(renderContext); if (!DebugUtil.isDebugFeaturesEnabled() || !(renderContext instanceof WebXmlRenderContext)) { return; // depends on control dependency: [if], data = [none] } XmlStringBuilder xml = ((Web...
public class class_name { public void positionAvoidAnimation (Animation anim, Rectangle viewBounds) { Rectangle abounds = new Rectangle(anim.getBounds()); @SuppressWarnings("unchecked") ArrayList<Animation> avoidables = (ArrayList<Animation>) _avoidAnims.clone(); // if we are ab...
public class class_name { public void positionAvoidAnimation (Animation anim, Rectangle viewBounds) { Rectangle abounds = new Rectangle(anim.getBounds()); @SuppressWarnings("unchecked") ArrayList<Animation> avoidables = (ArrayList<Animation>) _avoidAnims.clone(); // if we are ab...
public class class_name { public static <E> Schema getWriterSchema(Class<E> type, Schema schema) { Schema writerSchema = schema; GenericData dataModel = getDataModelForType(type); if (dataModel instanceof AllowNulls) { // assume fields are non-null by default to avoid schema conflicts dataModel...
public class class_name { public static <E> Schema getWriterSchema(Class<E> type, Schema schema) { Schema writerSchema = schema; GenericData dataModel = getDataModelForType(type); if (dataModel instanceof AllowNulls) { // assume fields are non-null by default to avoid schema conflicts dataModel...
public class class_name { public void configure(String loadedFontName) { String fontName; boolean isArrangeCase = true; if (isSystemFont) { if (LwjgFontUtil.isEmpty(fontAlias)) { if (loadedFontName.matches("\\p{ASCII}*")) { // ASCII 文字のみであれば、そのまま使う fontName = loadedFontName; } else { /...
public class class_name { public void configure(String loadedFontName) { String fontName; boolean isArrangeCase = true; if (isSystemFont) { if (LwjgFontUtil.isEmpty(fontAlias)) { if (loadedFontName.matches("\\p{ASCII}*")) { // ASCII 文字のみであれば、そのまま使う fontName = loadedFontName; // depends on contr...
public class class_name { private void outputIndexTerm(final IndexTerm term, final XMLStreamWriter serializer, final boolean indexsee) throws XMLStreamException { final List<IndexTerm> subTerms = term.getSubTerms(); final int subTermNum = subTerms.size(); outputIndexTermStartElement(term, seria...
public class class_name { private void outputIndexTerm(final IndexTerm term, final XMLStreamWriter serializer, final boolean indexsee) throws XMLStreamException { final List<IndexTerm> subTerms = term.getSubTerms(); final int subTermNum = subTerms.size(); outputIndexTermStartElement(term, seria...
public class class_name { public void revive(CmsObject cms) { if (m_needsRevive) { if (m_directPublishResourceUUIDs != null) { m_directPublishResources = internalReadResourceList(cms, m_directPublishResourceUUIDs); } if (m_fileUUIDs != null) { ...
public class class_name { public void revive(CmsObject cms) { if (m_needsRevive) { if (m_directPublishResourceUUIDs != null) { m_directPublishResources = internalReadResourceList(cms, m_directPublishResourceUUIDs); // depends on control dependency: [if], data = [none] }...
public class class_name { public static final File getValidDocumentRoot() { // If document root not explicitly set see if we are running from IDE File file = getIDEDocumentRoot(); // If document root not explicitly set see if we are running from a war archive file = file != null ? file ...
public class class_name { public static final File getValidDocumentRoot() { // If document root not explicitly set see if we are running from IDE File file = getIDEDocumentRoot(); // If document root not explicitly set see if we are running from a war archive file = file != null ? file ...
public class class_name { public static <E extends Comparable<E>> void sortDescending(List<E> list) { while(!Sort.isReverseSorted(list)) { FYShuffle.shuffle(list); } } }
public class class_name { public static <E extends Comparable<E>> void sortDescending(List<E> list) { while(!Sort.isReverseSorted(list)) { FYShuffle.shuffle(list); // depends on control dependency: [while], data = [none] } } }
public class class_name { public boolean evaluateCustomQuery(final String customQuery, final Map<String, Object> parameters) { final SessionTransaction tx = db.getCurrentTransaction(); boolean result = false; try { result = tx.getBoolean(customQuery, parameters); } catch (Exception ignore) {...
public class class_name { public boolean evaluateCustomQuery(final String customQuery, final Map<String, Object> parameters) { final SessionTransaction tx = db.getCurrentTransaction(); boolean result = false; try { result = tx.getBoolean(customQuery, parameters); // depends on control dependenc...
public class class_name { public void updateStatistics(Instance instance) { super.updateStatistics(instance); this.perceptron.trainOnInstance(instance); if (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron this.targetMean.trainOnInstance(instance); } } }
public class class_name { public void updateStatistics(Instance instance) { super.updateStatistics(instance); this.perceptron.trainOnInstance(instance); if (this.predictionFunction != 1) { //Train target mean if prediction function is not Perceptron this.targetMean.trainOnInstance(instance); // depends o...
public class class_name { @Override public String createMachine( TargetHandlerParameters parameters ) throws TargetException { this.logger.fine( "Creating a new machine." ); // For IaaS, we only expect root instance names to be passed if( InstanceHelpers.countInstances( parameters.getScopedInstancePath()) > 1...
public class class_name { @Override public String createMachine( TargetHandlerParameters parameters ) throws TargetException { this.logger.fine( "Creating a new machine." ); // For IaaS, we only expect root instance names to be passed if( InstanceHelpers.countInstances( parameters.getScopedInstancePath()) > 1...
public class class_name { private static int getScaleFactor(ImageMetadata metadata, int maxPixels) { int scale = 1; int scaledW = metadata.getW(); int scaledH = metadata.getH(); while (scaledW * scaledH > maxPixels) { scale *= 2; scaledH /= 2; scaledW...
public class class_name { private static int getScaleFactor(ImageMetadata metadata, int maxPixels) { int scale = 1; int scaledW = metadata.getW(); int scaledH = metadata.getH(); while (scaledW * scaledH > maxPixels) { scale *= 2; // depends on control dependency: [while], da...
public class class_name { public void add(Iterable<XElement> elements) { for (XElement e : elements) { e.parent = this; children.add(e); } } }
public class class_name { public void add(Iterable<XElement> elements) { for (XElement e : elements) { e.parent = this; // depends on control dependency: [for], data = [e] children.add(e); // depends on control dependency: [for], data = [e] } } }
public class class_name { public TransportApiResult<List<StopTimetable>> getStopTimetable(String stopId, StopTimetableQueryOptions options) { if (Extensions.isNullOrWhiteSpace(stopId)) { throw new IllegalArgumentException("StopId is required."); } if (options == null) {...
public class class_name { public TransportApiResult<List<StopTimetable>> getStopTimetable(String stopId, StopTimetableQueryOptions options) { if (Extensions.isNullOrWhiteSpace(stopId)) { throw new IllegalArgumentException("StopId is required."); } if (options == null) {...
public class class_name { protected void readHeader(ByteBuffer buffer) { super.readHeader(buffer); if (this.responseStatus != ResponseStatus.NO_ERROR) { if (ByteUtils.stepBuffer(buffer, this.responseTotalBodyLength)) { this.decodeStatus = BinaryDecodeStatus.DONE; } } } }
public class class_name { protected void readHeader(ByteBuffer buffer) { super.readHeader(buffer); if (this.responseStatus != ResponseStatus.NO_ERROR) { if (ByteUtils.stepBuffer(buffer, this.responseTotalBodyLength)) { this.decodeStatus = BinaryDecodeStatus.DONE; // depends on control dependency:...
public class class_name { static void tryAutoAttaching(final SlotReference slot) { if (!MetadataFinder.getInstance().getMountedMediaSlots().contains(slot)) { logger.error("Unable to auto-attach cache to empty slot {}", slot); return; } if (MetadataFinder.getInstance().ge...
public class class_name { static void tryAutoAttaching(final SlotReference slot) { if (!MetadataFinder.getInstance().getMountedMediaSlots().contains(slot)) { logger.error("Unable to auto-attach cache to empty slot {}", slot); // depends on control dependency: [if], data = [none] return;...
public class class_name { @SecuredAction public Result index() { if(logger.isDebugEnabled()){ logger.debug("access granted to index"); } DemoUser user = (DemoUser) ctx().args.get(SecureSocial.USER_KEY); return ok(index.render(user, SecureSocial.env())); } }
public class class_name { @SecuredAction public Result index() { if(logger.isDebugEnabled()){ logger.debug("access granted to index"); // depends on control dependency: [if], data = [none] } DemoUser user = (DemoUser) ctx().args.get(SecureSocial.USER_KEY); return ok(inde...
public class class_name { public static String getFormatFromURI(String uri, MimeType[] mimeTypes) { if (uri.endsWith("/")) { return null; } int idx = uri.lastIndexOf('/'); if (idx > -1) { String lastToken = uri.substring(idx+1, uri.length()); idx = l...
public class class_name { public static String getFormatFromURI(String uri, MimeType[] mimeTypes) { if (uri.endsWith("/")) { return null; // depends on control dependency: [if], data = [none] } int idx = uri.lastIndexOf('/'); if (idx > -1) { String lastToken = u...
public class class_name { @Override protected TypeReference getProposalProviderClass(Grammar grammar) { final String simpleName = GrammarUtil.getSimpleName(grammar); if (XTEND_GRAMMAR_NAME.equals(simpleName)) { return new TypeReference(XTEND_PROPOSAL_PROVIDER); } return super.getProposalProviderClass(gramm...
public class class_name { @Override protected TypeReference getProposalProviderClass(Grammar grammar) { final String simpleName = GrammarUtil.getSimpleName(grammar); if (XTEND_GRAMMAR_NAME.equals(simpleName)) { return new TypeReference(XTEND_PROPOSAL_PROVIDER); // depends on control dependency: [if], data = [n...
public class class_name { void free(boolean finalizer) { // As free() may be called either by the finalizer or by FastThreadLocal.onRemoval(...) we need to ensure // we only call this one time. if (freed.compareAndSet(false, true)) { int numFreed = free(tinySubPageDirectCaches, fina...
public class class_name { void free(boolean finalizer) { // As free() may be called either by the finalizer or by FastThreadLocal.onRemoval(...) we need to ensure // we only call this one time. if (freed.compareAndSet(false, true)) { int numFreed = free(tinySubPageDirectCaches, fina...
public class class_name { public void jmolColorByChain(){ String script = "function color_by_chain(objtype, color_list) {"+ String.format("%n") + ""+ String.format("%n") + " if (color_list) {"+ String.format("%n") + " if (color_list.type == \"string\") {"+ String.format("%n") + " colo...
public class class_name { public void jmolColorByChain(){ String script = "function color_by_chain(objtype, color_list) {"+ String.format("%n") + ""+ String.format("%n") + " if (color_list) {"+ String.format("%n") + " if (color_list.type == \"string\") {"+ String.format("%n") + " colo...