code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private static Long parseLong(final String text) { if (text.length() == 0) { return null; } else { try { return Long.parseLong(text); } catch (NumberFormatException ex) { return null; } } } }
public class class_name { private static Long parseLong(final String text) { if (text.length() == 0) { return null; // depends on control dependency: [if], data = [none] } else { try { return Long.parseLong(text); // depends on control dependency: [try], data = [none] } catch (NumberFormatException ex...
public class class_name { private Node getNode(Node nodeStart, String key, CreateMode createMode, boolean bReturnTextNode) { if (key.indexOf('/') != -1) { String strKeyParent = key.substring(0, key.indexOf('/')); CreateMode createModeParent = createMode; if (crea...
public class class_name { private Node getNode(Node nodeStart, String key, CreateMode createMode, boolean bReturnTextNode) { if (key.indexOf('/') != -1) { String strKeyParent = key.substring(0, key.indexOf('/')); CreateMode createModeParent = createMode; if (crea...
public class class_name { void mavenizeApp(ProjectModel projectModel) { LOG.info("Mavenizing ProjectModel " + projectModel.toPrettyString()); MavenizationContext mavCtx = new MavenizationContext(); mavCtx.graphContext = grCtx; WindupConfigurationModel config = grCtx.getUnique(Windu...
public class class_name { void mavenizeApp(ProjectModel projectModel) { LOG.info("Mavenizing ProjectModel " + projectModel.toPrettyString()); MavenizationContext mavCtx = new MavenizationContext(); mavCtx.graphContext = grCtx; WindupConfigurationModel config = grCtx.getUnique(Windu...
public class class_name { public PropertyType<ValidationConfigurationDescriptor> getOrCreateProperty() { List<Node> nodeList = model.get("property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, nod...
public class class_name { public PropertyType<ValidationConfigurationDescriptor> getOrCreateProperty() { List<Node> nodeList = model.get("property"); if (nodeList != null && nodeList.size() > 0) { return new PropertyTypeImpl<ValidationConfigurationDescriptor>(this, "property", model, nod...
public class class_name { private RmiServiceInvocation getServiceInvocation(Message message, RmiEndpointConfiguration endpointConfiguration) { Object payload = message.getPayload(); RmiServiceInvocation serviceInvocation = null; if (payload != null) { if (payload instanceof RmiServ...
public class class_name { private RmiServiceInvocation getServiceInvocation(Message message, RmiEndpointConfiguration endpointConfiguration) { Object payload = message.getPayload(); RmiServiceInvocation serviceInvocation = null; if (payload != null) { if (payload instanceof RmiServ...
public class class_name { private TypeInfo getTypeInfo(Map<String, TypeInfo> typeMaps, String path, Class<?> superType) { TypeInfo typeInfo = typeMaps.get(path); if (typeInfo == null) { typeInfo = new TypeInfo(superType); typeMaps.put(path, typeInfo); } return typeInfo; } }
public class class_name { private TypeInfo getTypeInfo(Map<String, TypeInfo> typeMaps, String path, Class<?> superType) { TypeInfo typeInfo = typeMaps.get(path); if (typeInfo == null) { typeInfo = new TypeInfo(superType); // depends on control dependency: [if], data = [none] typeMaps.put(path...
public class class_name { public static List<String> getAllAuthorities() { final List<String> allPermissions = new ArrayList<>(); final Field[] declaredFields = SpPermission.class.getDeclaredFields(); for (final Field field : declaredFields) { if (Modifier.isPublic(field.getModifier...
public class class_name { public static List<String> getAllAuthorities() { final List<String> allPermissions = new ArrayList<>(); final Field[] declaredFields = SpPermission.class.getDeclaredFields(); for (final Field field : declaredFields) { if (Modifier.isPublic(field.getModifier...
public class class_name { public void stopHkTimer(final Stat name) { timers.get(GuiceyTime).stop(); if (!HKTime.equals(name)) { timers.get(HKTime).stop(); } timers.get(name).stop(); } }
public class class_name { public void stopHkTimer(final Stat name) { timers.get(GuiceyTime).stop(); if (!HKTime.equals(name)) { timers.get(HKTime).stop(); // depends on control dependency: [if], data = [none] } timers.get(name).stop(); } }
public class class_name { @Override public AutoscalePolicyFilter and(AutoscalePolicyFilter otherFilter) { checkNotNull(otherFilter, "Other filter must be not a null"); if (evaluation instanceof SingleFilterEvaluation && otherFilter.evaluation instanceof SingleFilterEvaluation) { ...
public class class_name { @Override public AutoscalePolicyFilter and(AutoscalePolicyFilter otherFilter) { checkNotNull(otherFilter, "Other filter must be not a null"); if (evaluation instanceof SingleFilterEvaluation && otherFilter.evaluation instanceof SingleFilterEvaluation) { ...
public class class_name { public static byte[] getLocalByteArray(File res) { try { return toByteArray(new FileInputStream(res)); } catch (FileNotFoundException e) { logger.error("FileNotFound", e); } return null; } }
public class class_name { public static byte[] getLocalByteArray(File res) { try { return toByteArray(new FileInputStream(res)); // depends on control dependency: [try], data = [none] } catch (FileNotFoundException e) { logger.error("FileNotFound", e); } // depends on control dependency: [catch], data = [...
public class class_name { private static synchronized Set<String> getSystemZIDs() { Set<String> systemZones = null; if (REF_SYSTEM_ZONES != null) { systemZones = REF_SYSTEM_ZONES.get(); } if (systemZones == null) { Set<String> systemIDs = new TreeSet<String>(); ...
public class class_name { private static synchronized Set<String> getSystemZIDs() { Set<String> systemZones = null; if (REF_SYSTEM_ZONES != null) { systemZones = REF_SYSTEM_ZONES.get(); // depends on control dependency: [if], data = [none] } if (systemZones == null) { ...
public class class_name { public static List<Field> findMatchedFields(Class targetClass, Class ann) { List<Field> ret = new ArrayList<Field>(); if (targetClass == null) { return ret; } // Keep backing up the inheritance hierarchy. do { ...
public class class_name { public static List<Field> findMatchedFields(Class targetClass, Class ann) { List<Field> ret = new ArrayList<Field>(); if (targetClass == null) { return ret; // depends on control dependency: [if], data = [none] } // Keep backing up ...
public class class_name { public static EJBException EJBException(String message, Throwable cause) { EJBException ejbex = null; // ----------------------------------------------------------------------- // If a cause was not specified, then this meth...
public class class_name { public static EJBException EJBException(String message, Throwable cause) { EJBException ejbex = null; // ----------------------------------------------------------------------- // If a cause was not specified, then this meth...
public class class_name { public Set<OWLClassExpression> getNestedClassExpressions() { Set<OWLClassExpression> subConcepts = new HashSet<OWLClassExpression>(); for (OWLAxiom ax : justification) { subConcepts.addAll(ax.getNestedClassExpressions()); } return subConcepts; }...
public class class_name { public Set<OWLClassExpression> getNestedClassExpressions() { Set<OWLClassExpression> subConcepts = new HashSet<OWLClassExpression>(); for (OWLAxiom ax : justification) { subConcepts.addAll(ax.getNestedClassExpressions()); // depends on control dependency: [for], da...
public class class_name { public static String processSimpleMacros(String input, Object[] args) { if (input == null || input.isEmpty() || args.length == 0) { return input; } StringBuilder out = new StringBuilder(); int stringIndex = 0; int argIndex = 0;...
public class class_name { public static String processSimpleMacros(String input, Object[] args) { if (input == null || input.isEmpty() || args.length == 0) { return input; // depends on control dependency: [if], data = [none] } StringBuilder out = new StringBuilder(); ...
public class class_name { public void marshall(LaunchDetails launchDetails, ProtocolMarshaller protocolMarshaller) { if (launchDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(launchDetails...
public class class_name { public void marshall(LaunchDetails launchDetails, ProtocolMarshaller protocolMarshaller) { if (launchDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(launchDetails...
public class class_name { public static boolean equalsOrMatch(final CharSequence string, final CharSequence pattern) { if (string.equals(pattern)) { return true; } return match(string, pattern, 0, 0); } }
public class class_name { public static boolean equalsOrMatch(final CharSequence string, final CharSequence pattern) { if (string.equals(pattern)) { return true; // depends on control dependency: [if], data = [none] } return match(string, pattern, 0, 0); } }
public class class_name { public static <C extends SOABase> AbstractACModel loadACModel(String acFile, Map<String, C> availableContexts, boolean validateModel) throws Exception { ACModelProperties testProperties = new ACModelProperties(); try { testProperties.load(acFile); } catch (...
public class class_name { public static <C extends SOABase> AbstractACModel loadACModel(String acFile, Map<String, C> availableContexts, boolean validateModel) throws Exception { ACModelProperties testProperties = new ACModelProperties(); try { testProperties.load(acFile); } catch (...
public class class_name { public void onSaveItems(final ItemStateChangesLog itemStates) { // if something happen we will rollback changes boolean rollback = true; try { ItemState lastDelete = null; cache.beginTransaction(); Set<String> idsToSkip = null; ...
public class class_name { public void onSaveItems(final ItemStateChangesLog itemStates) { // if something happen we will rollback changes boolean rollback = true; try { ItemState lastDelete = null; cache.beginTransaction(); // depends on control dependency: [try]...
public class class_name { private boolean add(T e, boolean failWhenFull) { final Queue<T> queue = this.getOrCreateQueue(e); this.writeLock.lock(); try { if (this.size == this.capacity) { if (failWhenFull) { throw new IllegalStateException("Queue ...
public class class_name { private boolean add(T e, boolean failWhenFull) { final Queue<T> queue = this.getOrCreateQueue(e); this.writeLock.lock(); try { if (this.size == this.capacity) { if (failWhenFull) { throw new IllegalStateException("Queue ...
public class class_name { public JSONArray query( List<RecordSelector> recordSelectors ,List<FieldSelector> fieldSelectors ,List<FieldSelector> groupBySelectors ,List<OrderSpecifier> orderBySpecifiers ,Integer limit ,Integer offset ) throws Exception { OperationAccess operationAccess = tableS...
public class class_name { public JSONArray query( List<RecordSelector> recordSelectors ,List<FieldSelector> fieldSelectors ,List<FieldSelector> groupBySelectors ,List<OrderSpecifier> orderBySpecifiers ,Integer limit ,Integer offset ) throws Exception { OperationAccess operationAccess = tableS...
public class class_name { public IOException unwrapRemoteException() { try { Class<?> realClass = Class.forName(getClassName()); return instantiateException(realClass.asSubclass(IOException.class)); } catch(Exception e) { // cannot instantiate the original exception, just return this } ...
public class class_name { public IOException unwrapRemoteException() { try { Class<?> realClass = Class.forName(getClassName()); return instantiateException(realClass.asSubclass(IOException.class)); // depends on control dependency: [try], data = [none] } catch(Exception e) { // cannot instan...
public class class_name { @SuppressWarnings("unchecked") public <T> DomainObjectMatch<T> createMatchFor(T domainObject) { DomainObjectMatch<T> ret; if (domainObject.getClass().equals(DomainObject.class)) { // generic model List<DomainObject> source = new ArrayList<DomainObject>(); source.add((DomainObject) ...
public class class_name { @SuppressWarnings("unchecked") public <T> DomainObjectMatch<T> createMatchFor(T domainObject) { DomainObjectMatch<T> ret; if (domainObject.getClass().equals(DomainObject.class)) { // generic model List<DomainObject> source = new ArrayList<DomainObject>(); source.add((DomainObject) ...
public class class_name { private void cacheDtdSystemId(I_CmsXmlConfiguration configuration) { if (configuration.getDtdSystemLocation() != null) { try { String file = CmsFileUtil.readFile( configuration.getDtdSystemLocation() + configuration.getDtdFilename(), ...
public class class_name { private void cacheDtdSystemId(I_CmsXmlConfiguration configuration) { if (configuration.getDtdSystemLocation() != null) { try { String file = CmsFileUtil.readFile( configuration.getDtdSystemLocation() + configuration.getDtdFilename(), ...
public class class_name { public static Map<String, String> toStringMap(final Props props, final boolean localOnly) { final HashMap<String, String> map = new HashMap<>(); final Set<String> keyset = localOnly ? props.localKeySet() : props.getKeySet(); for (final String key : keyset) { final String va...
public class class_name { public static Map<String, String> toStringMap(final Props props, final boolean localOnly) { final HashMap<String, String> map = new HashMap<>(); final Set<String> keyset = localOnly ? props.localKeySet() : props.getKeySet(); for (final String key : keyset) { final String va...
public class class_name { public Method[] findMethods( Pattern methodNamePattern ) { final Method[] allMethods = this.targetClass.getMethods(); final List<Method> result = new ArrayList<Method>(); for (int i = 0; i < allMethods.length; i++) { final Method m = allMethods[i]; ...
public class class_name { public Method[] findMethods( Pattern methodNamePattern ) { final Method[] allMethods = this.targetClass.getMethods(); final List<Method> result = new ArrayList<Method>(); for (int i = 0; i < allMethods.length; i++) { final Method m = allMethods[i]; ...
public class class_name { public static BitMatrix encode(String content, BarcodeFormat format, QrConfig config) { final MultiFormatWriter multiFormatWriter = new MultiFormatWriter(); if (null == config) { // 默认配置 config = new QrConfig(); } BitMatrix bitMatrix; try { bitMatrix = multiFormatWr...
public class class_name { public static BitMatrix encode(String content, BarcodeFormat format, QrConfig config) { final MultiFormatWriter multiFormatWriter = new MultiFormatWriter(); if (null == config) { // 默认配置 config = new QrConfig(); // depends on control dependency: [if], data = [none] } BitMa...
public class class_name { @Then("^table '(.+?)' exists$") public void checkTable(String tableName) throws Exception { Statement myStatement = null; Connection myConnection = this.commonspec.getConnection(); //query checks table existence, existence table name in system table pg_tables ...
public class class_name { @Then("^table '(.+?)' exists$") public void checkTable(String tableName) throws Exception { Statement myStatement = null; Connection myConnection = this.commonspec.getConnection(); //query checks table existence, existence table name in system table pg_tables ...
public class class_name { private void fixDocLengths(List<List<IN>> docs) { final int maxDocSize = flags.maxDocSize; WordToSentenceProcessor<IN> wts = new WordToSentenceProcessor<IN>(); List<List<IN>> newDocuments = new ArrayList<List<IN>>(); for (List<IN> document : docs) { if (maxDocSize...
public class class_name { private void fixDocLengths(List<List<IN>> docs) { final int maxDocSize = flags.maxDocSize; WordToSentenceProcessor<IN> wts = new WordToSentenceProcessor<IN>(); List<List<IN>> newDocuments = new ArrayList<List<IN>>(); for (List<IN> document : docs) { if (maxDocSize...
public class class_name { public void set(String name, String namespace, Object value) { if (value != null) { if (value instanceof Date) { attributes.put(new XAttributeName(name, namespace, null), formatDateTime((Date)value)); } else { attributes.put(new ...
public class class_name { public void set(String name, String namespace, Object value) { if (value != null) { if (value instanceof Date) { attributes.put(new XAttributeName(name, namespace, null), formatDateTime((Date)value)); // depends on control dependency: [if], data = [none] ...
public class class_name { private InboundTransferTask addTransfer(Address source, IntSet segmentsFromSource) { final InboundTransferTask inboundTransfer; synchronized (transferMapsLock) { if (trace) { log.tracef("Adding transfer from %s for segments %s", source, segmentsFromSource); ...
public class class_name { private InboundTransferTask addTransfer(Address source, IntSet segmentsFromSource) { final InboundTransferTask inboundTransfer; synchronized (transferMapsLock) { if (trace) { log.tracef("Adding transfer from %s for segments %s", source, segmentsFromSource); /...
public class class_name { private int determineVisibilityForSharedFieldAccessor(Field field) { if (field.getOwner() == null) { // true field int visibility = AstUtil.getVisibility(field.getAst()); if (visibility == Opcodes.ACC_PRIVATE) visibility = Opcodes.ACC_PROTECTED; return visibility; } ...
public class class_name { private int determineVisibilityForSharedFieldAccessor(Field field) { if (field.getOwner() == null) { // true field int visibility = AstUtil.getVisibility(field.getAst()); if (visibility == Opcodes.ACC_PRIVATE) visibility = Opcodes.ACC_PROTECTED; return visibility; // dep...
public class class_name { public static int getTrimmedLength(CharSequence s) { int len = s.length(); int start = 0; while (start < len && s.charAt(start) <= ' ') { start++; } int end = len; while (end > start && s.charAt(end - 1) <= ' ') { end--...
public class class_name { public static int getTrimmedLength(CharSequence s) { int len = s.length(); int start = 0; while (start < len && s.charAt(start) <= ' ') { start++; // depends on control dependency: [while], data = [none] } int end = len; while (end...
public class class_name { public String[] getProperty(final String key) { final List<String> entriesList = new ArrayList<String>(); for (final Properties property : properties) { final String values = property.getProperty(key); if (values != null) { entriesList.add(values); } } final String[] entr...
public class class_name { public String[] getProperty(final String key) { final List<String> entriesList = new ArrayList<String>(); for (final Properties property : properties) { final String values = property.getProperty(key); if (values != null) { entriesList.add(values); // depends on control dependen...
public class class_name { public Set<Range> getRangeSet() { if (rangeSet != null) { return EnumSet.copyOf(rangeSet); } return Range.maskToRangeSet(mask); } }
public class class_name { public Set<Range> getRangeSet() { if (rangeSet != null) { return EnumSet.copyOf(rangeSet); // depends on control dependency: [if], data = [(rangeSet] } return Range.maskToRangeSet(mask); } }
public class class_name { public static boolean isOptionalLong(TypeRef type) { if (!(type instanceof ClassRef)) { return false; } return JAVA_UTIL_OPTIONAL_LONG.equals(((ClassRef)type).getDefinition().getFullyQualifiedName()); } }
public class class_name { public static boolean isOptionalLong(TypeRef type) { if (!(type instanceof ClassRef)) { return false; // depends on control dependency: [if], data = [none] } return JAVA_UTIL_OPTIONAL_LONG.equals(((ClassRef)type).getDefinition().getFullyQualifiedName()); ...
public class class_name { public final synchronized void add(final double v) { sum0 += 1; sum1 += v; sum2 += v * v; min = Math.min(min, v); max = Math.max(max, v); if (Math.abs(v) < com.simiacryptus.util.data.ScalarStatistics.zeroTol) { zeros++; } else { if (v < 0) { ...
public class class_name { public final synchronized void add(final double v) { sum0 += 1; sum1 += v; sum2 += v * v; min = Math.min(min, v); max = Math.max(max, v); if (Math.abs(v) < com.simiacryptus.util.data.ScalarStatistics.zeroTol) { zeros++; // depends on control dependency: [if], dat...
public class class_name { private void connect() { try { URL url = new URL(this.endpoint); connection = (HttpURLConnection) url.openConnection(); connection.setReadTimeout(this.readTimeoutMs); connection.setConnectTimeout(this.connectTimeoutMs); conne...
public class class_name { private void connect() { try { URL url = new URL(this.endpoint); connection = (HttpURLConnection) url.openConnection(); // depends on control dependency: [try], data = [none] connection.setReadTimeout(this.readTimeoutMs); // depends on control depen...
public class class_name { public static String charToEscape(char ch) { String hexValue = Integer.toHexString(ch); if (hexValue.length() == 1) { return "\\u000" + hexValue; } if (hexValue.length() == 2) { return "\\u00" + hexValue; } if (he...
public class class_name { public static String charToEscape(char ch) { String hexValue = Integer.toHexString(ch); if (hexValue.length() == 1) { return "\\u000" + hexValue; // depends on control dependency: [if], data = [none] } if (hexValue.length() == 2) { ...
public class class_name { public Record parseRecord(DocumentBuilder stringdb, Element elParent, String strTagName, String strDatabase, BaseTable table, BaseTable tableMain, boolean bIsMainHasReferenceField) { Record record = null; if (table != null) record = table.getRecord(); if (record ==...
public class class_name { public Record parseRecord(DocumentBuilder stringdb, Element elParent, String strTagName, String strDatabase, BaseTable table, BaseTable tableMain, boolean bIsMainHasReferenceField) { Record record = null; if (table != null) record = table.getRecord(); if (record ==...
public class class_name { public static synchronized Map<String,OpDef> opDescs() { if(DESCRIPTORS != null){ return DESCRIPTORS; } try (InputStream contents = new ClassPathResource("ops.proto").getInputStream(); BufferedInputStream bis2 = new BufferedInputStream(contents); BufferedR...
public class class_name { public static synchronized Map<String,OpDef> opDescs() { if(DESCRIPTORS != null){ return DESCRIPTORS; // depends on control dependency: [if], data = [none] } try (InputStream contents = new ClassPathResource("ops.proto").getInputStream(); BufferedInputStre...
public class class_name { public Integer getNumberFor(WebElement element) { Integer number = null; if ("li".equalsIgnoreCase(element.getTagName()) && element.isDisplayed()) { int num; String ownVal = element.getAttribute("value"); if (ownVal != null &...
public class class_name { public Integer getNumberFor(WebElement element) { Integer number = null; if ("li".equalsIgnoreCase(element.getTagName()) && element.isDisplayed()) { int num; String ownVal = element.getAttribute("value"); if (ownVal != null &...
public class class_name { protected final StackMapType[] calculate_live_local_types(MethodGen mg, int location) { int max_local_index = -1; StackMapType[] local_map_types = new StackMapType[mg.getMaxLocals()]; Arrays.fill(local_map_types, new StackMapType(Const.ITEM_Bogus, -1, pool.getConstantPool())); ...
public class class_name { protected final StackMapType[] calculate_live_local_types(MethodGen mg, int location) { int max_local_index = -1; StackMapType[] local_map_types = new StackMapType[mg.getMaxLocals()]; Arrays.fill(local_map_types, new StackMapType(Const.ITEM_Bogus, -1, pool.getConstantPool())); ...
public class class_name { boolean isPredecessorOf(final ControlFlowBlock possibleSuccessor) { boolean result = false; for (final ControlFlowBlock directSuccessor : successors) { if (directSuccessor.equals(possibleSuccessor) || directSuccessor.isPredecessorOf(possibleSuccessor)) { ...
public class class_name { boolean isPredecessorOf(final ControlFlowBlock possibleSuccessor) { boolean result = false; for (final ControlFlowBlock directSuccessor : successors) { if (directSuccessor.equals(possibleSuccessor) || directSuccessor.isPredecessorOf(possibleSuccessor)) { ...
public class class_name { public String getExponentPartAfter(final int digit) { final int length = exponentPart.length(); if(length < digit || digit <= 0) { return ""; } return exponentPart.substring(0, length - digit + 1); } }
public class class_name { public String getExponentPartAfter(final int digit) { final int length = exponentPart.length(); if(length < digit || digit <= 0) { return ""; // depends on control dependency: [if], data = [none] } return exponentPart.substr...
public class class_name { public ByteBuffer createMessage(boolean compress, int version) { int header = 0; // set compression bit. if (compress) header |= 4; // set streaming bit header |= 8; // Setting up the version bit header |= (version << 8);...
public class class_name { public ByteBuffer createMessage(boolean compress, int version) { int header = 0; // set compression bit. if (compress) header |= 4; // set streaming bit header |= 8; // Setting up the version bit header |= (version << 8);...
public class class_name { public Block getStoredBlock(int namespaceId, long blkid, boolean useOnDiskLength) throws IOException { lock.readLock().lock(); try { ReplicaToRead replica = getReplicaToRead(namespaceId, new Block( blkid)); if (replica == null) { return null; ...
public class class_name { public Block getStoredBlock(int namespaceId, long blkid, boolean useOnDiskLength) throws IOException { lock.readLock().lock(); try { ReplicaToRead replica = getReplicaToRead(namespaceId, new Block( blkid)); if (replica == null) { return null; // dep...
public class class_name { public ProviderGroup add(ProviderInfo providerInfo) { if (providerInfo == null) { return this; } ConcurrentHashSet<ProviderInfo> tmp = new ConcurrentHashSet<ProviderInfo>(providerInfos); tmp.add(providerInfo); // 排重 this.providerInfos = new ...
public class class_name { public ProviderGroup add(ProviderInfo providerInfo) { if (providerInfo == null) { return this; // depends on control dependency: [if], data = [none] } ConcurrentHashSet<ProviderInfo> tmp = new ConcurrentHashSet<ProviderInfo>(providerInfos); tmp.add(...
public class class_name { public LightweightTypeReference getReturnTypeOfOverriddenOperation(JvmOperation operation, LightweightTypeReference context) { if (operation.getVisibility() == JvmVisibility.PRIVATE || !InferredTypeIndicator.isInferred(operation.getReturnType())) { return null; } BottomResolvedOperat...
public class class_name { public LightweightTypeReference getReturnTypeOfOverriddenOperation(JvmOperation operation, LightweightTypeReference context) { if (operation.getVisibility() == JvmVisibility.PRIVATE || !InferredTypeIndicator.isInferred(operation.getReturnType())) { return null; // depends on control depe...
public class class_name { private void bootFromDsqls(String path) { File[] files = new File(path).listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.endsWith(".sql"); } }); for (File ...
public class class_name { private void bootFromDsqls(String path) { File[] files = new File(path).listFiles(new FilenameFilter() { @Override public boolean accept(File dir, String name) { return name.endsWith(".sql"); } }); for (File ...
public class class_name { @Override public EntityManagerFactory getEntityManagerFactory (JPAPuId puId, J2EEName j2eeName, // d510184 boolean getEmfWrapper) // d416151.3.1 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ...
public class class_name { @Override public EntityManagerFactory getEntityManagerFactory (JPAPuId puId, J2EEName j2eeName, // d510184 boolean getEmfWrapper) // d416151.3.1 { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); ...
public class class_name { @Override public EEnum getIfcProcedureTypeEnum() { if (ifcProcedureTypeEnumEEnum == null) { ifcProcedureTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1036); } return ifcProcedureTypeEnumEEnum; } }
public class class_name { @Override public EEnum getIfcProcedureTypeEnum() { if (ifcProcedureTypeEnumEEnum == null) { ifcProcedureTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1036); // depends on control dependency: [if], data = [none] } ...
public class class_name { public static Element drawCross(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius) { final double[] v_mid = mid.toArray(); final long[] dims = proj.getVisibleDimensions2D(); SVGPath path = new SVGPath(); for(int dim = BitsUtil.nextSetBit(dims, 0); dim >= 0; dim...
public class class_name { public static Element drawCross(SVGPlot svgp, Projection2D proj, NumberVector mid, double radius) { final double[] v_mid = mid.toArray(); final long[] dims = proj.getVisibleDimensions2D(); SVGPath path = new SVGPath(); for(int dim = BitsUtil.nextSetBit(dims, 0); dim >= 0; dim...
public class class_name { @SuppressWarnings("checkstyle:npathcomplexity") protected void compile(List<File> classPath, List<File> sourcePaths, File sarlOutputPath, File classOutputPath) throws MojoExecutionException, MojoFailureException { final SarlBatchCompiler compiler = getBatchCompiler(); final MavenProje...
public class class_name { @SuppressWarnings("checkstyle:npathcomplexity") protected void compile(List<File> classPath, List<File> sourcePaths, File sarlOutputPath, File classOutputPath) throws MojoExecutionException, MojoFailureException { final SarlBatchCompiler compiler = getBatchCompiler(); final MavenProje...
public class class_name { public void invalidateCookie(HttpServletRequest req, HttpServletResponse res, String cookieName, boolean enableHttpOnly) { Cookie c = new Cookie(cookieName, ""); if (cookieName.equals("WASReqURL")) { c.setPath(getPathName(req)); } else { c.setPa...
public class class_name { public void invalidateCookie(HttpServletRequest req, HttpServletResponse res, String cookieName, boolean enableHttpOnly) { Cookie c = new Cookie(cookieName, ""); if (cookieName.equals("WASReqURL")) { c.setPath(getPathName(req)); // depends on control dependency: [i...
public class class_name { private boolean peekOrPoll(@Nullable Duration claimTtl, EventSink rawSink) { // If dedup activity is disabled then we're in the process of falling back to regular non-dedup'd channels. // Don't do anything that might move events around--we're likely racing a call to moveToRawC...
public class class_name { private boolean peekOrPoll(@Nullable Duration claimTtl, EventSink rawSink) { // If dedup activity is disabled then we're in the process of falling back to regular non-dedup'd channels. // Don't do anything that might move events around--we're likely racing a call to moveToRawC...
public class class_name { private void createInterceptors(InterceptorMetaData imd) { ivInterceptors = new Object[imd.ivInterceptorClasses.length]; try { imd.createInterceptorInstances(getInjectionEngine(), ivInterceptors, ivEjbManagedObjectContext, this); } catch (Throwable t) { ...
public class class_name { private void createInterceptors(InterceptorMetaData imd) { ivInterceptors = new Object[imd.ivInterceptorClasses.length]; try { imd.createInterceptorInstances(getInjectionEngine(), ivInterceptors, ivEjbManagedObjectContext, this); // depends on control dependency: ...
public class class_name { protected void loadProfileIfNeeded() { final Object key = getProfileKey(); if (key != null) { final MetadataManager mm = MetadataManager.getInstance(); if (!key.equals(mm.getCurrentProfileKey())) { mm.load...
public class class_name { protected void loadProfileIfNeeded() { final Object key = getProfileKey(); if (key != null) { final MetadataManager mm = MetadataManager.getInstance(); if (!key.equals(mm.getCurrentProfileKey())) { mm.load...
public class class_name { public RamlType newProperty(String name, String type, boolean required, String... values) { if (properties == null) { properties = new LinkedHashMap<>(); } if (values.length > 0) { properties.put(required ? name : name + "?", ImmutableMap.of("enum", values)); } els...
public class class_name { public RamlType newProperty(String name, String type, boolean required, String... values) { if (properties == null) { properties = new LinkedHashMap<>(); // depends on control dependency: [if], data = [none] } if (values.length > 0) { properties.put(required ? name : n...
public class class_name { private void init(final int WIDTH, final int HEIGHT) { if (WIDTH <= 1) { return; } if (batteryImage != null) { batteryImage.flush(); } batteryImage = create_BATTERY_Image(WIDTH, HEIGHT - getInsets().bottom, value); } }
public class class_name { private void init(final int WIDTH, final int HEIGHT) { if (WIDTH <= 1) { return; // depends on control dependency: [if], data = [none] } if (batteryImage != null) { batteryImage.flush(); // depends on control dependency: [if], data = [none] ...
public class class_name { public void initializeResources(final String packageName) throws ClassNotFoundException, IOException, URISyntaxException { final Map<Class<?>, ImportResource[]> resourcesMap = ImportResourcesExtensions .getImportResources(packageName); for (final Entry<Class<?>, ImportResource[]> e...
public class class_name { public void initializeResources(final String packageName) throws ClassNotFoundException, IOException, URISyntaxException { final Map<Class<?>, ImportResource[]> resourcesMap = ImportResourcesExtensions .getImportResources(packageName); for (final Entry<Class<?>, ImportResource[]> e...
public class class_name { private static void reverse(int first, int last, Swapper swapper) { // no more needed since manually inlined while (first < --last) { swapper.swap(first++,last); } } }
public class class_name { private static void reverse(int first, int last, Swapper swapper) { // no more needed since manually inlined while (first < --last) { swapper.swap(first++,last); // depends on control dependency: [while], data = [(first] } } }
public class class_name { public ReplicatedServersConfig addNodeAddress(String... addresses) { for (String address : addresses) { nodeAddresses.add(URIBuilder.create(address)); } return this; } }
public class class_name { public ReplicatedServersConfig addNodeAddress(String... addresses) { for (String address : addresses) { nodeAddresses.add(URIBuilder.create(address)); // depends on control dependency: [for], data = [address] } return this; } }
public class class_name { @Nullable /* package */ static ScanRecord parseFromBytes(@Nullable final byte[] scanRecord) { if (scanRecord == null) { return null; } int currentPos = 0; int advertiseFlag = -1; int txPowerLevel = Integer.MIN_VALUE; String localName = null; List<ParcelUuid> serviceUuids = ...
public class class_name { @Nullable /* package */ static ScanRecord parseFromBytes(@Nullable final byte[] scanRecord) { if (scanRecord == null) { return null; // depends on control dependency: [if], data = [none] } int currentPos = 0; int advertiseFlag = -1; int txPowerLevel = Integer.MIN_VALUE; Strin...
public class class_name { public void drawInBackground(Canvas canvas) { Axis axis = chart.getChartData().getAxisYLeft(); if (null != axis) { prepareAxisToDraw(axis, LEFT); drawAxisLines(canvas, axis, LEFT); } axis = chart.getChartData().getAxisYRight(); ...
public class class_name { public void drawInBackground(Canvas canvas) { Axis axis = chart.getChartData().getAxisYLeft(); if (null != axis) { prepareAxisToDraw(axis, LEFT); // depends on control dependency: [if], data = [none] drawAxisLines(canvas, axis, LEFT); // depends on cont...
public class class_name { @Pure public static File getUserHomeDirectory() throws FileNotFoundException { final String userHome = System.getProperty("user.home"); //$NON-NLS-1$ if (userHome != null && !userHome.isEmpty()) { final File file = new File(userHome); if (file.isDirectory()) { return file; }...
public class class_name { @Pure public static File getUserHomeDirectory() throws FileNotFoundException { final String userHome = System.getProperty("user.home"); //$NON-NLS-1$ if (userHome != null && !userHome.isEmpty()) { final File file = new File(userHome); if (file.isDirectory()) { return file; // d...
public class class_name { public static org.geomajas.gwt.client.spatial.geometry.Geometry toGwt(Geometry geometry) { if (geometry == null) { return null; } GeometryFactory factory = new GeometryFactory(geometry.getSrid(), geometry.getPrecision()); org.geomajas.gwt.client.spatial.geometry.Geometry gwt; St...
public class class_name { public static org.geomajas.gwt.client.spatial.geometry.Geometry toGwt(Geometry geometry) { if (geometry == null) { return null; // depends on control dependency: [if], data = [none] } GeometryFactory factory = new GeometryFactory(geometry.getSrid(), geometry.getPrecision()); org.ge...
public class class_name { @Override public int coalesceKamEdges() throws SQLException { PreparedStatement eps = getPreparedStatement(SELECTED_ORDERED_EDGES); PreparedStatement kesps = getPreparedStatement(UPDATE_KAM_EDGE_STATEMENT); ResultSet rset = null; int coalesced = 0; ...
public class class_name { @Override public int coalesceKamEdges() throws SQLException { PreparedStatement eps = getPreparedStatement(SELECTED_ORDERED_EDGES); PreparedStatement kesps = getPreparedStatement(UPDATE_KAM_EDGE_STATEMENT); ResultSet rset = null; int coalesced = 0; ...
public class class_name { public boolean removeSearchListener(SearchListener<? super SolutionType> listener){ // acquire status lock synchronized(statusLock){ // assert idle assertIdle("Cannot remove search listener."); // remove listener if (searchListen...
public class class_name { public boolean removeSearchListener(SearchListener<? super SolutionType> listener){ // acquire status lock synchronized(statusLock){ // assert idle assertIdle("Cannot remove search listener."); // remove listener if (searchListen...
public class class_name { public double cumulativeProbability(double x) { if (means != null) throw new IllegalStateException("Unable to sample from more than one mean"); final double dev = x - mean; if (FastMath.abs(dev) > 40 * standardDeviation) { return dev < 0 ? 0.0d ...
public class class_name { public double cumulativeProbability(double x) { if (means != null) throw new IllegalStateException("Unable to sample from more than one mean"); final double dev = x - mean; if (FastMath.abs(dev) > 40 * standardDeviation) { return dev < 0 ? 0.0d ...
public class class_name { public Collection<? extends GrantedAuthority> getAuthorities() { if (principal == null) { return Collections.emptyList(); } return Collections.unmodifiableCollection(principal.getAuthorities()); } }
public class class_name { public Collection<? extends GrantedAuthority> getAuthorities() { if (principal == null) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } return Collections.unmodifiableCollection(principal.getAuthorities()); } }
public class class_name { public static <T> List<T> mergeLists(List<T> list1, List<T> list2) { List<T> merged = new LinkedList<T>(); if (list1 != null) { merged.addAll(list1); } if (list2 != null) { merged.addAll(list2); } return merged; } }
public class class_name { public static <T> List<T> mergeLists(List<T> list1, List<T> list2) { List<T> merged = new LinkedList<T>(); if (list1 != null) { merged.addAll(list1); // depends on control dependency: [if], data = [(list1] } if (list2 != null) { merged.a...
public class class_name { private LNGIntVector generateClauseVector(final Formula clause) { final LNGIntVector clauseVec = new LNGIntVector(clause.numberOfOperands()); for (final Literal lit : clause.literals()) { int index = this.idxForName(lit.name()); if (index == -1) { ...
public class class_name { private LNGIntVector generateClauseVector(final Formula clause) { final LNGIntVector clauseVec = new LNGIntVector(clause.numberOfOperands()); for (final Literal lit : clause.literals()) { int index = this.idxForName(lit.name()); if (index == -1) { ...
public class class_name { public static Method findMethod (Class<?> clazz, String name) { Method[] methods = clazz.getMethods(); for (Method method : methods) { if (method.getName().equals(name)) { return method; } } return null; } }
public class class_name { public static Method findMethod (Class<?> clazz, String name) { Method[] methods = clazz.getMethods(); for (Method method : methods) { if (method.getName().equals(name)) { return method; // depends on control dependency: [if], data = [none] ...
public class class_name { @SuppressWarnings("unchecked") public MType getMessage() { if (message == null) { // If message is null, the invariant is that we must be have a builder. message = (MType) builder.buildPartial(); } return message; } }
public class class_name { @SuppressWarnings("unchecked") public MType getMessage() { if (message == null) { // If message is null, the invariant is that we must be have a builder. message = (MType) builder.buildPartial(); // depends on control dependency: [if], data = [none] } return me...
public class class_name { @Nonnull public static <A> ImmutableList<A> fromBounded(@Nonnull A[] el, int start, int end) { if (end == start) { return empty(); } NonEmptyImmutableList<A> l = cons(el[end - 1], ImmutableList.empty()); for (int i = end - 2; i >= start; i--) { ...
public class class_name { @Nonnull public static <A> ImmutableList<A> fromBounded(@Nonnull A[] el, int start, int end) { if (end == start) { return empty(); // depends on control dependency: [if], data = [none] } NonEmptyImmutableList<A> l = cons(el[end - 1], ImmutableList.empty...
public class class_name { public static String getRandomString(final int stringLength) { StringBuilder stringBuilder = getStringBuild(); for (int i = 0; i < stringLength; i++) { stringBuilder.append(getRandomAlphabetic()); } return stringBuilder.toString(); } }
public class class_name { public static String getRandomString(final int stringLength) { StringBuilder stringBuilder = getStringBuild(); for (int i = 0; i < stringLength; i++) { stringBuilder.append(getRandomAlphabetic()); // depends on control dependency: [for], data = [none] } return stringBui...
public class class_name { private void addListener(Integer channel, Class<? extends Message> messageClass, MessageListener messageListener) { // Build up the empty class listener map if not already there if (!messageListenerMap.containsKey(messageClass)) { messageListenerMap.put(messageClass...
public class class_name { private void addListener(Integer channel, Class<? extends Message> messageClass, MessageListener messageListener) { // Build up the empty class listener map if not already there if (!messageListenerMap.containsKey(messageClass)) { messageListenerMap.put(messageClass...
public class class_name { public static Object convert(Object value, PrimitiveTypeInfo typeInfo) { if (value == null) { return null; } if (value instanceof String) { return CONVERTER.convert((String) value, type(typeInfo)); } return value; } }
public class class_name { public static Object convert(Object value, PrimitiveTypeInfo typeInfo) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } if (value instanceof String) { return CONVERTER.convert((String) value, type(typeInfo)); // depends on con...
public class class_name { public Observable<ServiceResponse<DiagnosticCategoryInner>> getSiteDiagnosticCategoryWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGrou...
public class class_name { public Observable<ServiceResponse<DiagnosticCategoryInner>> getSiteDiagnosticCategoryWithServiceResponseAsync(String resourceGroupName, String siteName, String diagnosticCategory) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGrou...
public class class_name { public String dirtyString() { StringBuilder sb = new StringBuilder(); for (UUID cfId : getDirtyCFIDs()) { CFMetaData m = Schema.instance.getCFMetaData(cfId); sb.append(m == null ? "<deleted>" : m.cfName).append(" (").append(cfId).append("), ...
public class class_name { public String dirtyString() { StringBuilder sb = new StringBuilder(); for (UUID cfId : getDirtyCFIDs()) { CFMetaData m = Schema.instance.getCFMetaData(cfId); sb.append(m == null ? "<deleted>" : m.cfName).append(" (").append(cfId).append("), ...
public class class_name { public static void setValue(MetaPartition partition, AnyTypeObject dataObject, Object value) { MetaDataObject meta = (MetaDataObject) partition.getMeta(dataObject.getClass()); if (value == null) { for (MetaAttribute attr : meta.getAttributes()) { attr.setValue(dataObject, null); ...
public class class_name { public static void setValue(MetaPartition partition, AnyTypeObject dataObject, Object value) { MetaDataObject meta = (MetaDataObject) partition.getMeta(dataObject.getClass()); if (value == null) { for (MetaAttribute attr : meta.getAttributes()) { attr.setValue(dataObject, null); //...
public class class_name { public static boolean isImage(@Nullable String fileExtension) { if (StringUtils.isEmpty(fileExtension)) { return false; } return IMAGE_FILE_EXTENSIONS.contains(fileExtension.toLowerCase()); } }
public class class_name { public static boolean isImage(@Nullable String fileExtension) { if (StringUtils.isEmpty(fileExtension)) { return false; // depends on control dependency: [if], data = [none] } return IMAGE_FILE_EXTENSIONS.contains(fileExtension.toLowerCase()); } }
public class class_name { public static boolean containsBuildCase(final Annotation anno, final BuildCase buildCase) { Objects.requireNonNull(anno); Objects.requireNonNull(buildCase); final Optional<BuildCase[]> attrCases = getAnnotationAttribute(anno, "cases", BuildCase[]...
public class class_name { public static boolean containsBuildCase(final Annotation anno, final BuildCase buildCase) { Objects.requireNonNull(anno); Objects.requireNonNull(buildCase); final Optional<BuildCase[]> attrCases = getAnnotationAttribute(anno, "cases", BuildCase[]...
public class class_name { public void marshall(GetCampaignsRequest getCampaignsRequest, ProtocolMarshaller protocolMarshaller) { if (getCampaignsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(GetCampaignsRequest getCampaignsRequest, ProtocolMarshaller protocolMarshaller) { if (getCampaignsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public static void main(final String[] args) { MongoClient mongoClient; if (args.length == 0) { // connect to the local database server mongoClient = MongoClients.create("mongodb://localhost:27017,localhost:27018,localhost:27019"); } else { ...
public class class_name { public static void main(final String[] args) { MongoClient mongoClient; if (args.length == 0) { // connect to the local database server mongoClient = MongoClients.create("mongodb://localhost:27017,localhost:27018,localhost:27019"); } else { ...
public class class_name { protected Object getDataValue(Trace trace, Node node, Direction direction, Map<String, ?> headers, Object[] values) { if (source == DataSource.Content) { return values[index]; } else if (source == DataSource.Header) { return headers.get(key)...
public class class_name { protected Object getDataValue(Trace trace, Node node, Direction direction, Map<String, ?> headers, Object[] values) { if (source == DataSource.Content) { return values[index]; // depends on control dependency: [if], data = [none] } else if (source == Da...
public class class_name { public static String convertFormat(String format) { if (format == null) return null; else { // day of week format = format.replaceAll("EEE", "D"); // year format = format.replaceAll("yy", "y"); // month if (format.indexOf("MMM") != -1) { format = format.replaceAl...
public class class_name { public static String convertFormat(String format) { if (format == null) return null; else { // day of week format = format.replaceAll("EEE", "D"); // depends on control dependency: [if], data = [none] // year format = format.replaceAll("yy", "y"); // depends on control depe...
public class class_name { protected int writeUTF16Surrogate(char c, char ch[], int i, int end) throws IOException { int codePoint = 0; if (i + 1 >= end) { throw new IOException( Utils.messages.createMessage( MsgKey.ER_INVALID_UTF16_SUR...
public class class_name { protected int writeUTF16Surrogate(char c, char ch[], int i, int end) throws IOException { int codePoint = 0; if (i + 1 >= end) { throw new IOException( Utils.messages.createMessage( MsgKey.ER_INVALID_UTF16_SUR...
public class class_name { synchronized long calculateNextExpiration() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "calculateNextExpiration: " + this); ivLastExpiration = ivExpiration; // 598265 if (ivPa...
public class class_name { synchronized long calculateNextExpiration() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "calculateNextExpiration: " + this); ivLastExpiration = ivExpiration; // 598265 if (ivPa...
public class class_name { protected Object getNextEntryFromReader(Writer writer) { try { parseError = false; ValidationResult parseResult = reader.read(); if (parseResult.getMessages("FT.10").size() >= 1 && (fixMode || fixDiagnoseMode)) { parseResult.removeMessage("FT.10"); // writer fixes automat...
public class class_name { protected Object getNextEntryFromReader(Writer writer) { try { parseError = false; // depends on control dependency: [try], data = [none] ValidationResult parseResult = reader.read(); if (parseResult.getMessages("FT.10").size() >= 1 && (fixMode || fixDiagnoseMode)) { pars...
public class class_name { private void writeByteBufferFull(ByteBuffer buf, boolean withHeader) { if (withHeader) { writeByteBufferSerdeHeader(buf, FULL_ENCODING_MODE); } writeByteBufferCommonFields(buf); buf.asLongBuffer().put(histogram); buf.position(buf.position() + Long.BYTES * histogr...
public class class_name { private void writeByteBufferFull(ByteBuffer buf, boolean withHeader) { if (withHeader) { writeByteBufferSerdeHeader(buf, FULL_ENCODING_MODE); // depends on control dependency: [if], data = [none] } writeByteBufferCommonFields(buf); buf.asLongBuffer().put(histogram); ...
public class class_name { public boolean contains(Object value) { if (value == null) { throw new NullPointerException(); } FastHashtableEntry tab[] = table; for (int i = tab.length ; i-- > 0 ;) { for (FastHashtableEntry e = tab[i] ; e != null ; e = e.next) { if (e.value.equals(valu...
public class class_name { public boolean contains(Object value) { if (value == null) { throw new NullPointerException(); } FastHashtableEntry tab[] = table; for (int i = tab.length ; i-- > 0 ;) { for (FastHashtableEntry e = tab[i] ; e != null ; e = e.next) { if (e.value.equals(valu...
public class class_name { public void setReceiversClassesBlackList(final List<Class> receiversBlacklist) { List<String> values = new LinkedList<String>(); for (Class aClass : receiversBlacklist) { values.add(aClass.getName()); } setReceiversBlackList(values); } }
public class class_name { public void setReceiversClassesBlackList(final List<Class> receiversBlacklist) { List<String> values = new LinkedList<String>(); for (Class aClass : receiversBlacklist) { values.add(aClass.getName()); // depends on control dependency: [for], data = [aClass] ...
public class class_name { public int getValue(int ch, boolean [] inBlockZero) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { if (inBlockZero != null) { inBlockZero[0] = true; } return 0; ...
public class class_name { public int getValue(int ch, boolean [] inBlockZero) { // valid, uncompacted trie and valid c? if (m_isCompacted_ || ch > UCharacter.MAX_VALUE || ch < 0) { if (inBlockZero != null) { inBlockZero[0] = true; // depends on control dependency: [if],...
public class class_name { public static String getIp() { if (null != cachedIpAddress) { return cachedIpAddress; } Enumeration<NetworkInterface> netInterfaces; try { netInterfaces = NetworkInterface.getNetworkInterfaces(); } catch (final SocketException ex...
public class class_name { public static String getIp() { if (null != cachedIpAddress) { return cachedIpAddress; // depends on control dependency: [if], data = [none] } Enumeration<NetworkInterface> netInterfaces; try { netInterfaces = NetworkInterface.getNetworkI...
public class class_name { public double toPValue(double d, int n) { double b = d / 30 + 1. / (36 * n); double z = .5 * MathUtil.PISQUARE * MathUtil.PISQUARE * n * b; // Exponential approximation if(z < 1.1 || z > 8.5) { double e = FastMath.exp(0.3885037 - 1.164879 * z); return (e > 1) ? 1 ...
public class class_name { public double toPValue(double d, int n) { double b = d / 30 + 1. / (36 * n); double z = .5 * MathUtil.PISQUARE * MathUtil.PISQUARE * n * b; // Exponential approximation if(z < 1.1 || z > 8.5) { double e = FastMath.exp(0.3885037 - 1.164879 * z); return (e > 1) ? 1 ...
public class class_name { public synchronized Thread getFreeThreadAndRun(Runnable runnable) { for (int i=0; i<pool.length; i++) { if (pool[i] == null || !pool[i].isAlive()) { pool[i] = new Thread(runnable); if (threadsBaseName != null) { pool[i].setName(threadsBaseName + i); } p...
public class class_name { public synchronized Thread getFreeThreadAndRun(Runnable runnable) { for (int i=0; i<pool.length; i++) { if (pool[i] == null || !pool[i].isAlive()) { pool[i] = new Thread(runnable); // depends on control dependency: [if], data = [none] if (threadsBaseName != null) { ...
public class class_name { public double scoreOf(Datum<L, F> example, L label) { if(example instanceof RVFDatum<?, ?>)return scoreOfRVFDatum((RVFDatum<L,F>)example, label); int iLabel = labelIndex.indexOf(label); double score = 0.0; for (F f : example.asFeatures()) { score += weight(f, iLabel...
public class class_name { public double scoreOf(Datum<L, F> example, L label) { if(example instanceof RVFDatum<?, ?>)return scoreOfRVFDatum((RVFDatum<L,F>)example, label); int iLabel = labelIndex.indexOf(label); double score = 0.0; for (F f : example.asFeatures()) { score += weight(f, iLabel...
public class class_name { public HostName toHostName() { HostName host = fromHost; if(host == null) { fromHost = host = toCanonicalHostName(); } return host; } }
public class class_name { public HostName toHostName() { HostName host = fromHost; if(host == null) { fromHost = host = toCanonicalHostName(); // depends on control dependency: [if], data = [none] } return host; } }