code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { @SuppressWarnings( "unchecked" ) public static <T extends Option> T[] filter( final Class<T> optionType, final Option... options ) { final List<T> filtered = new ArrayList<T>(); for( Option option : expand( options ) ) ...
public class class_name { @SuppressWarnings( "unchecked" ) public static <T extends Option> T[] filter( final Class<T> optionType, final Option... options ) { final List<T> filtered = new ArrayList<T>(); for( Option option : expand( options ) ) ...
public class class_name { public static DMatrixRMaj diagR(int numRows , int numCols , double ...diagEl ) { DMatrixRMaj ret = new DMatrixRMaj(numRows,numCols); int o = Math.min(numRows,numCols); for( int i = 0; i < o; i++ ) { ret.set(i, i, diagEl[i]); } return ...
public class class_name { public static DMatrixRMaj diagR(int numRows , int numCols , double ...diagEl ) { DMatrixRMaj ret = new DMatrixRMaj(numRows,numCols); int o = Math.min(numRows,numCols); for( int i = 0; i < o; i++ ) { ret.set(i, i, diagEl[i]); // depends on control depe...
public class class_name { Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; ...
public class class_name { Entry remove() { if (tc.isEntryEnabled()) SibTr.entry(tc, "remove"); checkEntryParent(); Entry removedEntry = null; Entry prevEntry = getPrevious(); if(prevEntry != null) { //link the previous entry to the next one prevEntry.next = next; ...
public class class_name { private ServicePort parsePortMapping(String port) { Matcher matcher = PORT_MAPPING_PATTERN.matcher(port); if (!matcher.matches()) { log.error("Invalid 'port' configuration '%s'. Must match <port>(:<targetPort>)?,<port2>?,...", port); throw new IllegalAr...
public class class_name { private ServicePort parsePortMapping(String port) { Matcher matcher = PORT_MAPPING_PATTERN.matcher(port); if (!matcher.matches()) { log.error("Invalid 'port' configuration '%s'. Must match <port>(:<targetPort>)?,<port2>?,...", port); // depends on control dependenc...
public class class_name { private List<PropertyModel> buildModel(Map<String,String> properties) { List<PropertyModel> props = new ArrayList<>(); for (Map.Entry<String,String> e : properties.entrySet()) { props.add(new PropertyModel(e.getKey(), e.getValue())); } return props; } }
public class class_name { private List<PropertyModel> buildModel(Map<String,String> properties) { List<PropertyModel> props = new ArrayList<>(); for (Map.Entry<String,String> e : properties.entrySet()) { props.add(new PropertyModel(e.getKey(), e.getValue())); // depends on control dependency: [for], data...
public class class_name { protected MessageTuple getExpectedMessage(MessageType type, String source, int timeoutMs) throws TimeoutException, InterruptedException { int startTime = (int) (System.nanoTime() / 1000000); ...
public class class_name { protected MessageTuple getExpectedMessage(MessageType type, String source, int timeoutMs) throws TimeoutException, InterruptedException { int startTime = (int) (System.nanoTime() / 1000000); ...
public class class_name { public void setInstancePatchStates(java.util.Collection<InstancePatchState> instancePatchStates) { if (instancePatchStates == null) { this.instancePatchStates = null; return; } this.instancePatchStates = new com.amazonaws.internal.SdkInternalLi...
public class class_name { public void setInstancePatchStates(java.util.Collection<InstancePatchState> instancePatchStates) { if (instancePatchStates == null) { this.instancePatchStates = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency...
public class class_name { private static void printUsage(String cmd) { String prefix = "Usage: java " + HighTideShell.class.getSimpleName(); if ("-showConfig".equals(cmd)) { System.err.println("Usage: java org.apache.hadoop.hdfs.HighTideShell"); } else { System.err.println("Usage: java HighTide...
public class class_name { private static void printUsage(String cmd) { String prefix = "Usage: java " + HighTideShell.class.getSimpleName(); if ("-showConfig".equals(cmd)) { System.err.println("Usage: java org.apache.hadoop.hdfs.HighTideShell"); // depends on control dependency: [if], data = [none] }...
public class class_name { public static int wtf(String tag, Throwable tr) { collectLogEntry(Constants.VERBOSE, tag, "", tr); if (isLoggable(tag, Constants.ASSERT)) { if (useWTF) { try { return (Integer) wtfTagErrorMethod.invoke(null, ...
public class class_name { public static int wtf(String tag, Throwable tr) { collectLogEntry(Constants.VERBOSE, tag, "", tr); if (isLoggable(tag, Constants.ASSERT)) { if (useWTF) { try { return (Integer) wtfTagErrorMethod.invoke(null, ...
public class class_name { static public Reader scanForXMPPacket(final Object pInput) throws IOException { ImageInputStream stream = pInput instanceof ImageInputStream ? (ImageInputStream) pInput : ImageIO.createImageInputStream(pInput); // TODO: Consider if BufferedIIS is a good idea if (!(str...
public class class_name { static public Reader scanForXMPPacket(final Object pInput) throws IOException { ImageInputStream stream = pInput instanceof ImageInputStream ? (ImageInputStream) pInput : ImageIO.createImageInputStream(pInput); // TODO: Consider if BufferedIIS is a good idea if (!(str...
public class class_name { public final void forUpdate() throws RecognitionException { int forUpdate_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 103) ) { return; } // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1097:5: ( expressionList ) ...
public class class_name { public final void forUpdate() throws RecognitionException { int forUpdate_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 103) ) { return; } // depends on control dependency: [if], data = [none] // src/main/resources/org/drools/compiler/sema...
public class class_name { Object getInstanceOfClass(Class cls) { if (Boolean.class.isAssignableFrom(cls) || Boolean.TYPE.isAssignableFrom(cls)) { return Boolean.FALSE; } else if (Integer.TYPE.isAssignableFrom(cls) || Short.TYPE.isAssignableFrom(cls) || Integer.class.isAssignableFrom(cls) || Short.class.isAss...
public class class_name { Object getInstanceOfClass(Class cls) { if (Boolean.class.isAssignableFrom(cls) || Boolean.TYPE.isAssignableFrom(cls)) { return Boolean.FALSE; // depends on control dependency: [if], data = [none] } else if (Integer.TYPE.isAssignableFrom(cls) || Short.TYPE.isAssignableFrom(cls) || In...
public class class_name { public static Kernel1D_F32 table1D_F32(int radius, boolean normalized) { Kernel1D_F32 ret = new Kernel1D_F32(radius * 2 + 1); float val = normalized ? 1.0f / ret.width : 1.0f; for (int i = 0; i < ret.data.length; i++) { ret.data[i] = val; } return ret; } }
public class class_name { public static Kernel1D_F32 table1D_F32(int radius, boolean normalized) { Kernel1D_F32 ret = new Kernel1D_F32(radius * 2 + 1); float val = normalized ? 1.0f / ret.width : 1.0f; for (int i = 0; i < ret.data.length; i++) { ret.data[i] = val; // depends on control dependency: [for], da...
public class class_name { public static BaseRowKeySelector getBaseRowSelector(int[] keyFields, BaseRowTypeInfo rowType) { if (keyFields.length > 0) { InternalType[] inputFieldTypes = rowType.getInternalTypes(); String[] inputFieldNames = rowType.getFieldNames(); InternalType[] keyFieldTypes = new InternalTy...
public class class_name { public static BaseRowKeySelector getBaseRowSelector(int[] keyFields, BaseRowTypeInfo rowType) { if (keyFields.length > 0) { InternalType[] inputFieldTypes = rowType.getInternalTypes(); String[] inputFieldNames = rowType.getFieldNames(); InternalType[] keyFieldTypes = new InternalTy...
public class class_name { public List<Resource> buildResources() { List<Resource> resources = new ArrayList<Resource>(); for (ResourceBuilder builder : _resourceBuilders) { Resource resource = builder.build(); if (resource != null) { resources.add(resource); ...
public class class_name { public List<Resource> buildResources() { List<Resource> resources = new ArrayList<Resource>(); for (ResourceBuilder builder : _resourceBuilders) { Resource resource = builder.build(); if (resource != null) { resources.add(resource); // d...
public class class_name { public void performAnticompaction(ColumnFamilyStore cfs, Collection<Range<Token>> ranges, Refs<SSTableReader> validatedForRepair, long repairedAt) throws InterruptedException, Exe...
public class class_name { public void performAnticompaction(ColumnFamilyStore cfs, Collection<Range<Token>> ranges, Refs<SSTableReader> validatedForRepair, long repairedAt) throws InterruptedException, Exe...
public class class_name { public static Set<String> getTokenKeys(String str) { Set<String> results = new HashSet<String>(); String sDelim = "{"; String eDelim = "}"; if (StringUtils.isBlank(str)) { return results; } int start = -1; int end =...
public class class_name { public static Set<String> getTokenKeys(String str) { Set<String> results = new HashSet<String>(); String sDelim = "{"; String eDelim = "}"; if (StringUtils.isBlank(str)) { return results; // depends on control dependency: [if], data = [none]...
public class class_name { public void fatalError(SAXParseException e) throws SAXException { if(null != m_errorHandler) { try { m_errorHandler.fatalError(e); } catch(SAXParseException se) { // ignore } // clearCoRoutine(e); } // This is not gr...
public class class_name { public void fatalError(SAXParseException e) throws SAXException { if(null != m_errorHandler) { try { m_errorHandler.fatalError(e); // depends on control dependency: [try], data = [none] } catch(SAXParseException se) { // ignore } /...
public class class_name { public static Protos.Payment createPaymentMessage(List<Transaction> transactions, @Nullable List<Protos.Output> refundOutputs, @Nullable String memo, @Nullable byte[] merchantData) { Protos.Payment.Builder builder = Protos.Payment.newBuilder(); for (Transaction tra...
public class class_name { public static Protos.Payment createPaymentMessage(List<Transaction> transactions, @Nullable List<Protos.Output> refundOutputs, @Nullable String memo, @Nullable byte[] merchantData) { Protos.Payment.Builder builder = Protos.Payment.newBuilder(); for (Transaction tra...
public class class_name { public BatchGetDeploymentsResult withDeploymentsInfo(DeploymentInfo... deploymentsInfo) { if (this.deploymentsInfo == null) { setDeploymentsInfo(new com.amazonaws.internal.SdkInternalList<DeploymentInfo>(deploymentsInfo.length)); } for (DeploymentInfo ele :...
public class class_name { public BatchGetDeploymentsResult withDeploymentsInfo(DeploymentInfo... deploymentsInfo) { if (this.deploymentsInfo == null) { setDeploymentsInfo(new com.amazonaws.internal.SdkInternalList<DeploymentInfo>(deploymentsInfo.length)); // depends on control dependency: [if], dat...
public class class_name { static Properties convertResourceBundleToProperties(ResourceBundle resource) { Properties properties = new Properties(); Enumeration<String> keys = resource.getKeys(); while (keys.hasMoreElements()) { String key = keys.nextElement(); properties...
public class class_name { static Properties convertResourceBundleToProperties(ResourceBundle resource) { Properties properties = new Properties(); Enumeration<String> keys = resource.getKeys(); while (keys.hasMoreElements()) { String key = keys.nextElement(); properties...
public class class_name { public void marshall(BatchListObjectAttributesResponse batchListObjectAttributesResponse, ProtocolMarshaller protocolMarshaller) { if (batchListObjectAttributesResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public void marshall(BatchListObjectAttributesResponse batchListObjectAttributesResponse, ProtocolMarshaller protocolMarshaller) { if (batchListObjectAttributesResponse == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } ...
public class class_name { public HttpRequest form(Map<String, Object> formMap) { if (MapUtil.isNotEmpty(formMap)) { for (Map.Entry<String, Object> entry : formMap.entrySet()) { form(entry.getKey(), entry.getValue()); } } return this; } }
public class class_name { public HttpRequest form(Map<String, Object> formMap) { if (MapUtil.isNotEmpty(formMap)) { for (Map.Entry<String, Object> entry : formMap.entrySet()) { form(entry.getKey(), entry.getValue()); // depends on control dependency: [for], data = [entry] } } return this; } }
public class class_name { public static void addId(Entry entry, boolean updateRdn) { String uuid = newUUID().toString(); try { entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, UNIQUE_OBJECT_OC); entry.add(ID_ATTRIBUTE, uuid); } catch (LdapException e) { thro...
public class class_name { public static void addId(Entry entry, boolean updateRdn) { String uuid = newUUID().toString(); try { entry.add(SchemaConstants.OBJECT_CLASS_ATTRIBUTE, UNIQUE_OBJECT_OC); // depends on control dependency: [try], data = [none] entry.add(ID_ATTRIBUTE, uuid...
public class class_name { private Constraint wampDestMatchers(WampMessageType type, String... patterns) { List<MatcherBuilder> matchers = new ArrayList<>(patterns.length); for (String pattern : patterns) { matchers.add(new PathMatcherMessageMatcherBuilder(pattern, type)); } return new Constraint(matchers); ...
public class class_name { private Constraint wampDestMatchers(WampMessageType type, String... patterns) { List<MatcherBuilder> matchers = new ArrayList<>(patterns.length); for (String pattern : patterns) { matchers.add(new PathMatcherMessageMatcherBuilder(pattern, type)); // depends on control dependency: [for]...
public class class_name { public void marshall(InputSource inputSource, ProtocolMarshaller protocolMarshaller) { if (inputSource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inputSource.getPass...
public class class_name { public void marshall(InputSource inputSource, ProtocolMarshaller protocolMarshaller) { if (inputSource == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(inputSource.getPass...
public class class_name { private Icon getRolloverIcon(AbstractButton b, Icon defaultIcon) { ButtonModel model = b.getModel(); Icon icon; if (model.isSelected()) { icon = getIcon(b, b.getRolloverSelectedIcon(), defaultIcon, SynthConstants.MOUSE_OVER | SynthConstants.SELECTED...
public class class_name { private Icon getRolloverIcon(AbstractButton b, Icon defaultIcon) { ButtonModel model = b.getModel(); Icon icon; if (model.isSelected()) { icon = getIcon(b, b.getRolloverSelectedIcon(), defaultIcon, SynthConstants.MOUSE_OVER | SynthConstants.SELECTED...
public class class_name { public <T> void cleanNullReferencesAll() { for (Map<Object, Reference<Object>> objectMap : classMaps.values()) { cleanMap(objectMap); } } }
public class class_name { public <T> void cleanNullReferencesAll() { for (Map<Object, Reference<Object>> objectMap : classMaps.values()) { cleanMap(objectMap); // depends on control dependency: [for], data = [objectMap] } } }
public class class_name { @Override public CommerceShipment remove(Serializable primaryKey) throws NoSuchShipmentException { Session session = null; try { session = openSession(); CommerceShipment commerceShipment = (CommerceShipment)session.get(CommerceShipmentImpl.class, primaryKey); if (comm...
public class class_name { @Override public CommerceShipment remove(Serializable primaryKey) throws NoSuchShipmentException { Session session = null; try { session = openSession(); CommerceShipment commerceShipment = (CommerceShipment)session.get(CommerceShipmentImpl.class, primaryKey); if (comm...
public class class_name { public void marshall(EventContextDataType eventContextDataType, ProtocolMarshaller protocolMarshaller) { if (eventContextDataType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { public void marshall(EventContextDataType eventContextDataType, ProtocolMarshaller protocolMarshaller) { if (eventContextDataType == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.m...
public class class_name { @Override public void setFeature(Feature feature) { for (HasFeature action : actions) { action.setFeature(feature); } presenter.setFeature(feature); } }
public class class_name { @Override public void setFeature(Feature feature) { for (HasFeature action : actions) { action.setFeature(feature); // depends on control dependency: [for], data = [action] } presenter.setFeature(feature); } }
public class class_name { public BatchGetRepositoriesResult withRepositoriesNotFound(String... repositoriesNotFound) { if (this.repositoriesNotFound == null) { setRepositoriesNotFound(new java.util.ArrayList<String>(repositoriesNotFound.length)); } for (String ele : repositoriesNotF...
public class class_name { public BatchGetRepositoriesResult withRepositoriesNotFound(String... repositoriesNotFound) { if (this.repositoriesNotFound == null) { setRepositoriesNotFound(new java.util.ArrayList<String>(repositoriesNotFound.length)); // depends on control dependency: [if], data = [none...
public class class_name { private static boolean isEmail(String account) { if (TextUtils.isEmpty(account)) { return false; } final Pattern emailPattern = Patterns.EMAIL_ADDRESS; final Matcher matcher = emailPattern.matcher(account); return matcher.matches(); } ...
public class class_name { private static boolean isEmail(String account) { if (TextUtils.isEmpty(account)) { return false; // depends on control dependency: [if], data = [none] } final Pattern emailPattern = Patterns.EMAIL_ADDRESS; final Matcher matcher = emailPattern.matc...
public class class_name { private Module getModule(Class<?> originalClass) { if (originalClass.getName().startsWith("java")) { return module; } else { Module definingModule = Module.forClass(originalClass); Boolean hasWeldDependencies = processedStaticModules.get(def...
public class class_name { private Module getModule(Class<?> originalClass) { if (originalClass.getName().startsWith("java")) { return module; // depends on control dependency: [if], data = [none] } else { Module definingModule = Module.forClass(originalClass); Boolea...
public class class_name { @FromString public static Interval parse(CharSequence text) { Objects.requireNonNull(text, "text"); for (int i = 0; i < text.length(); i++) { if (text.charAt(i) == '/') { return parseSplit(text.subSequence(0, i), text.subSequence(i + 1, text.len...
public class class_name { @FromString public static Interval parse(CharSequence text) { Objects.requireNonNull(text, "text"); for (int i = 0; i < text.length(); i++) { if (text.charAt(i) == '/') { return parseSplit(text.subSequence(0, i), text.subSequence(i + 1, text.len...
public class class_name { private boolean buildList(List<List<Vertex>> theList, int index, BuildStep follow) { // Each time this method is called, we're examining a new list // from the global list. So, we have to start by getting the list // that contains the set...
public class class_name { private boolean buildList(List<List<Vertex>> theList, int index, BuildStep follow) { // Each time this method is called, we're examining a new list // from the global list. So, we have to start by getting the list // that contains the set...
public class class_name { private Node parseParamTypeExpression(JsDocToken token) { boolean restArg = false; if (token == JsDocToken.ELLIPSIS) { token = next(); if (token == JsDocToken.RIGHT_CURLY) { restoreLookAhead(token); // EMPTY represents the UNKNOWN type in the Type AST. ...
public class class_name { private Node parseParamTypeExpression(JsDocToken token) { boolean restArg = false; if (token == JsDocToken.ELLIPSIS) { token = next(); // depends on control dependency: [if], data = [none] if (token == JsDocToken.RIGHT_CURLY) { restoreLookAhead(token); // depends o...
public class class_name { public static SelectionResult ensureSelectionResult(final Database db) { List<SelectionResult> selections = ResultUtil.filterResults(db.getHierarchy(), db, SelectionResult.class); if(!selections.isEmpty()) { return selections.get(0); } SelectionResult sel = new Selection...
public class class_name { public static SelectionResult ensureSelectionResult(final Database db) { List<SelectionResult> selections = ResultUtil.filterResults(db.getHierarchy(), db, SelectionResult.class); if(!selections.isEmpty()) { return selections.get(0); // depends on control dependency: [if], data ...
public class class_name { public static void removeSipSessionsUtil(Context envCtx, String appName, SipSessionsUtil sipSessionsUtil) { if(envCtx != null) { try { javax.naming.Context sipContext = (javax.naming.Context)envCtx.lookup(SIP_SUBCONTEXT + "/" + appName); sipContext.unbind(SIP_SESSIONS_UTIL_JN...
public class class_name { public static void removeSipSessionsUtil(Context envCtx, String appName, SipSessionsUtil sipSessionsUtil) { if(envCtx != null) { try { javax.naming.Context sipContext = (javax.naming.Context)envCtx.lookup(SIP_SUBCONTEXT + "/" + appName); sipContext.unbind(SIP_SESSIONS_UTIL_JN...
public class class_name { public EClass getTBM() { if (tbmEClass == null) { tbmEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(342); } return tbmEClass; } }
public class class_name { public EClass getTBM() { if (tbmEClass == null) { tbmEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(342); // depends on control dependency: [if], data = [none] } return tbmEClass; } }
public class class_name { private void DrawPrimitive( DrawEntity e, World w ) throws Exception { String oldEntityName = e.getType().getValue(); String id = null; for (EntityEntry ent : net.minecraftforge.fml.common.registry.ForgeRegistries.ENTITIES) { if (ent.getName().eq...
public class class_name { private void DrawPrimitive( DrawEntity e, World w ) throws Exception { String oldEntityName = e.getType().getValue(); String id = null; for (EntityEntry ent : net.minecraftforge.fml.common.registry.ForgeRegistries.ENTITIES) { if (ent.getName().eq...
public class class_name { boolean run(Iterable<? extends Archive> archives, Map<Location, Archive> locationMap) { this.locationToArchive.putAll(locationMap); // traverse and analyze all dependencies for (Archive archive : archives) { Dependences deps = new Depen...
public class class_name { boolean run(Iterable<? extends Archive> archives, Map<Location, Archive> locationMap) { this.locationToArchive.putAll(locationMap); // traverse and analyze all dependencies for (Archive archive : archives) { Dependences deps = new Depen...
public class class_name { public JKTableColumn getTableColumn(final int col, final boolean visibleIndex) { int actualIndex; if (visibleIndex) { actualIndex = this.visibilityManager.getActualIndexFromVisibleIndex(col); } else { actualIndex = col; } return this.tableColumns.get(actualIndex); } }
public class class_name { public JKTableColumn getTableColumn(final int col, final boolean visibleIndex) { int actualIndex; if (visibleIndex) { actualIndex = this.visibilityManager.getActualIndexFromVisibleIndex(col); // depends on control dependency: [if], data = [none] } else { actualIndex = col; /...
public class class_name { public void marshall(PutSkillAuthorizationRequest putSkillAuthorizationRequest, ProtocolMarshaller protocolMarshaller) { if (putSkillAuthorizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(PutSkillAuthorizationRequest putSkillAuthorizationRequest, ProtocolMarshaller protocolMarshaller) { if (putSkillAuthorizationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { private int getDaysToNextMatch(WeekDay weekDay) { for (WeekDay wd : m_weekDays) { if (wd.compareTo(weekDay) > 0) { return wd.toInt() - weekDay.toInt(); } } return (m_weekDays.iterator().next().toInt() + (m_interval * I_CmsSerial...
public class class_name { private int getDaysToNextMatch(WeekDay weekDay) { for (WeekDay wd : m_weekDays) { if (wd.compareTo(weekDay) > 0) { return wd.toInt() - weekDay.toInt(); // depends on control dependency: [if], data = [none] } } return (m_weekDays...
public class class_name { public boolean checked() { boolean isChecked = false; try { isChecked = element.getWebElement().isSelected(); } catch (Exception e) { log.info(e); } return isChecked; } }
public class class_name { public boolean checked() { boolean isChecked = false; try { isChecked = element.getWebElement().isSelected(); // depends on control dependency: [try], data = [none] } catch (Exception e) { log.info(e); } // depends on control dependency:...
public class class_name { public static ImageArchiveManifest readManifest(InputStream inputStream) throws IOException, JsonParseException { Map<String, JsonParseException> parseExceptions = new LinkedHashMap<>(); Map<String, JsonElement> parsedEntries = new LinkedHashMap<>(); try (TarArchiveIn...
public class class_name { public static ImageArchiveManifest readManifest(InputStream inputStream) throws IOException, JsonParseException { Map<String, JsonParseException> parseExceptions = new LinkedHashMap<>(); Map<String, JsonElement> parsedEntries = new LinkedHashMap<>(); try (TarArchiveIn...
public class class_name { private static boolean appearsInAssignmentContext(Expression expression) { if (expression.getParentNode().isPresent()) { Node parent = expression.getParentNode().get(); if (parent instanceof ExpressionStmt) { return false; } ...
public class class_name { private static boolean appearsInAssignmentContext(Expression expression) { if (expression.getParentNode().isPresent()) { Node parent = expression.getParentNode().get(); if (parent instanceof ExpressionStmt) { return false; // depends on control ...
public class class_name { public static Set<AtlasResourceTypes> getAtlasResourceType(String contextPath) { Set<AtlasResourceTypes> resourceTypes = new HashSet<>(); if (isDebugEnabled) { LOG.debug("==> getAtlasResourceType for {}", contextPath); } String api = getApi(context...
public class class_name { public static Set<AtlasResourceTypes> getAtlasResourceType(String contextPath) { Set<AtlasResourceTypes> resourceTypes = new HashSet<>(); if (isDebugEnabled) { LOG.debug("==> getAtlasResourceType for {}", contextPath); // depends on control dependency: [if], data ...
public class class_name { public static IComplexNDArray truncate(IComplexNDArray nd, int n, int dimension) { if (nd.isVector()) { IComplexNDArray truncated = Nd4j.createComplex(new int[] {1, n}); for (int i = 0; i < n; i++) truncated.putScalar(i, nd.getComplex(i)); ...
public class class_name { public static IComplexNDArray truncate(IComplexNDArray nd, int n, int dimension) { if (nd.isVector()) { IComplexNDArray truncated = Nd4j.createComplex(new int[] {1, n}); for (int i = 0; i < n; i++) truncated.putScalar(i, nd.getComplex(i)); ...
public class class_name { protected static Number minimum(List<?> slaveValues) { Number min = null; for (Object slaveValue : slaveValues) { if (min == null) { min = (Number) slaveValue; } else { Comparable<Object> comparable = NumberComparator.get...
public class class_name { protected static Number minimum(List<?> slaveValues) { Number min = null; for (Object slaveValue : slaveValues) { if (min == null) { min = (Number) slaveValue; // depends on control dependency: [if], data = [none] } else { ...
public class class_name { Changes findChanges(InvocationInfo invocationInfo) { /* Methods with one or fewer parameters cannot possibly have a swap */ if (invocationInfo.formalParameters().size() <= 1) { return Changes.empty(); } /* Sometimes we don't have enough actual parameters. This seems to ...
public class class_name { Changes findChanges(InvocationInfo invocationInfo) { /* Methods with one or fewer parameters cannot possibly have a swap */ if (invocationInfo.formalParameters().size() <= 1) { return Changes.empty(); // depends on control dependency: [if], data = [none] } /* Sometimes ...
public class class_name { public static Authenticator getAuthenticator(final LdapAuthenticationProperties l) { if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.AD) { LOGGER.debug("Creating active directory authenticator for {}", l.getLdapUrl()); return getActiveDirect...
public class class_name { public static Authenticator getAuthenticator(final LdapAuthenticationProperties l) { if (l.getType() == LdapAuthenticationProperties.AuthenticationTypes.AD) { LOGGER.debug("Creating active directory authenticator for {}", l.getLdapUrl()); // depends on control dependency: ...
public class class_name { public AbstractStreamParameters addLocation(float west, float south, float east, float north) { if (locations.length() > 0) { locations.append(','); } locations.append(west).append(',').append(south).append(','); locations.append(east).append(',').append(north).append(','); retur...
public class class_name { public AbstractStreamParameters addLocation(float west, float south, float east, float north) { if (locations.length() > 0) { locations.append(','); // depends on control dependency: [if], data = [none] } locations.append(west).append(',').append(south).append(','); locations.appen...
public class class_name { private static String parseNamedSql(String sql, Map<String, List<Integer>> nameIndexMap) { // I was originally using regular expressions, but they didn't work well for ignoring // parameter-like strings inside quotes. int length = sql.length(); StringBuffer par...
public class class_name { private static String parseNamedSql(String sql, Map<String, List<Integer>> nameIndexMap) { // I was originally using regular expressions, but they didn't work well for ignoring // parameter-like strings inside quotes. int length = sql.length(); StringBuffer par...
public class class_name { private static CSLName[] toAuthors(List<Map<String, Object>> authors) { CSLName[] result = new CSLName[authors.size()]; int i = 0; for (Map<String, Object> a : authors) { CSLNameBuilder builder = new CSLNameBuilder(); if (a.containsKey(FIELD_FIRSTNAME)) { builder.given(strOrNu...
public class class_name { private static CSLName[] toAuthors(List<Map<String, Object>> authors) { CSLName[] result = new CSLName[authors.size()]; int i = 0; for (Map<String, Object> a : authors) { CSLNameBuilder builder = new CSLNameBuilder(); if (a.containsKey(FIELD_FIRSTNAME)) { builder.given(strOrNu...
public class class_name { private Task createTaskBase(TaskModel model, Execution execution) { Task task = new Task(); task.setOrderId(execution.getOrder().getId()); task.setTaskName(model.getName()); task.setDisplayName(model.getDisplayName()); task.setCreateTime(DateHelper.getTime()); if(model.isMajor()) ...
public class class_name { private Task createTaskBase(TaskModel model, Execution execution) { Task task = new Task(); task.setOrderId(execution.getOrder().getId()); task.setTaskName(model.getName()); task.setDisplayName(model.getDisplayName()); task.setCreateTime(DateHelper.getTime()); if(model.isMajor()) ...
public class class_name { @Override public void close() throws IOException { // first close the parent so we get all remaining data super.close(); // then ensure that any remaining buffer is logged synchronized (logBuffer) { if(logBuffer.length() > 0) { ...
public class class_name { @Override public void close() throws IOException { // first close the parent so we get all remaining data super.close(); // then ensure that any remaining buffer is logged synchronized (logBuffer) { if(logBuffer.length() > 0) { ...
public class class_name { @Override public void beforeStep(StepExecution stepExecution) { super.beforeStep(stepExecution); try { RestoreStatus newStatus = RestoreStatus.TRANSFERRING_TO_DURACLOUD; restoreManager.transitionRestoreStatus(restorationId, newStatus, ""); ...
public class class_name { @Override public void beforeStep(StepExecution stepExecution) { super.beforeStep(stepExecution); try { RestoreStatus newStatus = RestoreStatus.TRANSFERRING_TO_DURACLOUD; restoreManager.transitionRestoreStatus(restorationId, newStatus, ""); // depend...
public class class_name { public ResourcePath join(String otherPath) { if (otherPath == null) { throw new IllegalArgumentException("The join(String) method cannot be called with a null argument"); } DynamicArray<String> components = tokenizePathFragment(otherPath, 0); ResourcePath result = this;...
public class class_name { public ResourcePath join(String otherPath) { if (otherPath == null) { throw new IllegalArgumentException("The join(String) method cannot be called with a null argument"); } DynamicArray<String> components = tokenizePathFragment(otherPath, 0); ResourcePath result = this;...
public class class_name { private void fillWizardPageWithSelectedTypes() { final StructuredSelection selection = getSelectedItems(); if (selection == null) { return; } for (final Iterator<?> iter = selection.iterator(); iter.hasNext();) { final Object obj = iter.next(); if (obj instanceof TypeNameMatc...
public class class_name { private void fillWizardPageWithSelectedTypes() { final StructuredSelection selection = getSelectedItems(); if (selection == null) { return; // depends on control dependency: [if], data = [none] } for (final Iterator<?> iter = selection.iterator(); iter.hasNext();) { final Object...
public class class_name { public int percentile(int p) { if (p < 1 || p > 100) { throw new IllegalArgumentException("invalid percentile: " + p); } int count = 0; // Count of values in the histogram. for (int i = 0; i < buckets.length; i++) { count += buckets[i]; } if (count == 0) {...
public class class_name { public int percentile(int p) { if (p < 1 || p > 100) { throw new IllegalArgumentException("invalid percentile: " + p); } int count = 0; // Count of values in the histogram. for (int i = 0; i < buckets.length; i++) { count += buckets[i]; // depends on control depen...
public class class_name { public EJBObject[] loadEntireCollection() { EJBObject[] result = null; try { result = (EJBObject[]) allRemainingElements(); } catch (NoMoreElementsException e) { // FFDCFilter.processException(e, CLASS_NAME + ".loadEntireCollection", ...
public class class_name { public EJBObject[] loadEntireCollection() { EJBObject[] result = null; try { result = (EJBObject[]) allRemainingElements(); // depends on control dependency: [try], data = [none] } catch (NoMoreElementsException e) { // FFDCFilter.processEx...
public class class_name { protected boolean shouldAddToIndexMap(Element element) { if (utils.isHidden(element)) { return false; } if (utils.isPackage(element)) // Do not add to index map if -nodeprecated option is set and the // package is marked as deprecat...
public class class_name { protected boolean shouldAddToIndexMap(Element element) { if (utils.isHidden(element)) { return false; // depends on control dependency: [if], data = [none] } if (utils.isPackage(element)) // Do not add to index map if -nodeprecated option is se...
public class class_name { public static File relativize(File target, File baseDir) { String separator = File.separator; try { String absTargetPath = target.getAbsolutePath(); absTargetPath = FilenameUtils.normalizeNoEndSeparator( FilenameUtils.separatorsToSys...
public class class_name { public static File relativize(File target, File baseDir) { String separator = File.separator; try { String absTargetPath = target.getAbsolutePath(); absTargetPath = FilenameUtils.normalizeNoEndSeparator( FilenameUtils.separatorsToSys...
public class class_name { private static String getUserInfo(String url) { String userInfo = null; int startIndex = Integer.MIN_VALUE; int nextSlashIndex = Integer.MIN_VALUE; int endIndex = Integer.MIN_VALUE; try { // The user info start index should be the first index of "//". startInde...
public class class_name { private static String getUserInfo(String url) { String userInfo = null; int startIndex = Integer.MIN_VALUE; int nextSlashIndex = Integer.MIN_VALUE; int endIndex = Integer.MIN_VALUE; try { // The user info start index should be the first index of "//". startInde...
public class class_name { public static <T extends ImageGray<T>> void applyTransform( T input , int transform[] , int minValue , T output ) { InputSanityCheck.checkSameShape(input, output); if( input instanceof GrayU8) { EnhanceImageOps.applyTransform((GrayU8) input, transform, (GrayU8) output); } else if( ...
public class class_name { public static <T extends ImageGray<T>> void applyTransform( T input , int transform[] , int minValue , T output ) { InputSanityCheck.checkSameShape(input, output); if( input instanceof GrayU8) { EnhanceImageOps.applyTransform((GrayU8) input, transform, (GrayU8) output); // depends on...
public class class_name { public static final byte[] decodeUrlLoose(byte[] bytes) { if (bytes == null) { return null; } ByteArrayOutputStream buffer = new ByteArrayOutputStream(); for (int i = 0; i < bytes.length; i++) { int b = bytes[i]; if (b ...
public class class_name { public static final byte[] decodeUrlLoose(byte[] bytes) { if (bytes == null) { return null; // depends on control dependency: [if], data = [none] } ByteArrayOutputStream buffer = new ByteArrayOutputStream(); for (int i = 0; i < bytes.length; i...
public class class_name { public static URL getParent(URL url) { String file = url.getFile(); int len = file.length(); if (len == 0 || len == 1 && file.charAt(0) == '/') return null; int lastSlashIndex = -1; for (int i = len - 2; lastSlashIndex == -1 && i >= 0; --i...
public class class_name { public static URL getParent(URL url) { String file = url.getFile(); int len = file.length(); if (len == 0 || len == 1 && file.charAt(0) == '/') return null; int lastSlashIndex = -1; for (int i = len - 2; lastSlashIndex == -1 && i >= 0; --i...
public class class_name { public BaseField setupField(int iFieldSeq) { BaseField field = null; //if (iFieldSeq == 0) //{ // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null); // field.setHidden(true); //} //if (iFieldSeq == 1) ...
public class class_name { public BaseField setupField(int iFieldSeq) { BaseField field = null; //if (iFieldSeq == 0) //{ // field = new CounterField(this, ID, Constants.DEFAULT_FIELD_LENGTH, null, null); // field.setHidden(true); //} //if (iFieldSeq == 1) ...
public class class_name { public int intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask) { /* * This is an implementation of the first algorithm in "2.5 Plane masking and coherency" of the mentioned site. * * In addition to the algorithm in...
public class class_name { public int intersectAab(float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int mask) { /* * This is an implementation of the first algorithm in "2.5 Plane masking and coherency" of the mentioned site. * * In addition to the algorithm in...
public class class_name { public static <T, X, E extends Throwable> Map<X, Collection<T>> groupBy (Iterable<T> coll, AFunction1<? super T, ? extends X, E> f) throws E { final Map<X, Collection<T>> result = new HashMap<>(); for(T o: coll) { final X key = f.apply(o); Collection<T>...
public class class_name { public static <T, X, E extends Throwable> Map<X, Collection<T>> groupBy (Iterable<T> coll, AFunction1<? super T, ? extends X, E> f) throws E { final Map<X, Collection<T>> result = new HashMap<>(); for(T o: coll) { final X key = f.apply(o); Collection<T>...
public class class_name { public Config setScheduledExecutorConfigs(Map<String, ScheduledExecutorConfig> scheduledExecutorConfigs) { this.scheduledExecutorConfigs.clear(); this.scheduledExecutorConfigs.putAll(scheduledExecutorConfigs); for (Entry<String, ScheduledExecutorConfig> entry : schedul...
public class class_name { public Config setScheduledExecutorConfigs(Map<String, ScheduledExecutorConfig> scheduledExecutorConfigs) { this.scheduledExecutorConfigs.clear(); this.scheduledExecutorConfigs.putAll(scheduledExecutorConfigs); for (Entry<String, ScheduledExecutorConfig> entry : schedul...
public class class_name { private void handleGlobalArguments(Section section) { for (String key : section.keySet()) { switch (key) { case OPTION_OFFLINE_MODE: if (section.get(key).toLowerCase().equals("true")) { this.offlineMode = true; } break; case OPTION_QUIET: if (section.get(key).t...
public class class_name { private void handleGlobalArguments(Section section) { for (String key : section.keySet()) { switch (key) { case OPTION_OFFLINE_MODE: if (section.get(key).toLowerCase().equals("true")) { this.offlineMode = true; // depends on control dependency: [if], data = [none] } b...
public class class_name { public static void renameFiles(File[] files, String[] fileNames) { int length = Integer.min(files.length, fileNames.length); for (int i = 0; i < length; i++) { String fileName = files[i].getParent() + ValueConsts.SEPARATOR + fileNames[i]; if (!fileName....
public class class_name { public static void renameFiles(File[] files, String[] fileNames) { int length = Integer.min(files.length, fileNames.length); for (int i = 0; i < length; i++) { String fileName = files[i].getParent() + ValueConsts.SEPARATOR + fileNames[i]; if (!fileName....
public class class_name { public double calculateAverageAUC() { assertIndex(0); double sum = 0.0; for (int i = 0; i < underlying.length; i++) { sum += calculateAUC(i); } return sum / underlying.length; } }
public class class_name { public double calculateAverageAUC() { assertIndex(0); double sum = 0.0; for (int i = 0; i < underlying.length; i++) { sum += calculateAUC(i); // depends on control dependency: [for], data = [i] } return sum / underlying.length; } }
public class class_name { public DescribeSnapshotCopyGrantsResult withSnapshotCopyGrants(SnapshotCopyGrant... snapshotCopyGrants) { if (this.snapshotCopyGrants == null) { setSnapshotCopyGrants(new com.amazonaws.internal.SdkInternalList<SnapshotCopyGrant>(snapshotCopyGrants.length)); } ...
public class class_name { public DescribeSnapshotCopyGrantsResult withSnapshotCopyGrants(SnapshotCopyGrant... snapshotCopyGrants) { if (this.snapshotCopyGrants == null) { setSnapshotCopyGrants(new com.amazonaws.internal.SdkInternalList<SnapshotCopyGrant>(snapshotCopyGrants.length)); // depends on c...
public class class_name { public AssociationContext getAssociationContext() { if ( associationContext == null ) { associationContext = new AssociationContextImpl( associationTypeContext, hostingEntity != null ? OgmEntityEntryState.getStateFor( session, hostingEntity ).getTuplePointer() : new TuplePointe...
public class class_name { public AssociationContext getAssociationContext() { if ( associationContext == null ) { associationContext = new AssociationContextImpl( associationTypeContext, hostingEntity != null ? OgmEntityEntryState.getStateFor( session, hostingEntity ).getTuplePointer() : new TuplePointe...
public class class_name { public void marshall(GetSigningCertificateRequest getSigningCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (getSigningCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(GetSigningCertificateRequest getSigningCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (getSigningCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { void persistDom(String name, @Nullable String dom) { try { Files.write(Strings.nullToEmpty(dom), new File(doms, name + ".html"), Charsets.UTF_8); } catch (IOException e) { LOG.warn("Could not save dom state for {}", name); LOG.debug("Could not save dom state", e); } } }
public class class_name { void persistDom(String name, @Nullable String dom) { try { Files.write(Strings.nullToEmpty(dom), new File(doms, name + ".html"), Charsets.UTF_8); // depends on control dependency: [try], data = [none] } catch (IOException e) { LOG.warn("Could not save dom state for {}", name); LO...
public class class_name { private void send(ByteBuffer data) { try { this.socket.send(new DatagramPacket( data.array(), data.capacity(), this.address)); } catch (IOException ioe) { logger.info("Error sending datagram packet to tracker at {}: {}.", this.addr...
public class class_name { private void send(ByteBuffer data) { try { this.socket.send(new DatagramPacket( data.array(), data.capacity(), this.address)); // depends on control dependency: [try], data = [none] } catch (IOException ioe) { logger.info("Error se...
public class class_name { public byte[] getOctets() { byte[] octets = new byte[8]; long bits = this.bits; for (int n = 8; --n >= 0; bits >>= 8) { octets[n] = (byte) (bits & 0xff); } return octets; } }
public class class_name { public byte[] getOctets() { byte[] octets = new byte[8]; long bits = this.bits; for (int n = 8; --n >= 0; bits >>= 8) { octets[n] = (byte) (bits & 0xff); // depends on control dependency: [for], data = [n] } return octets; } }
public class class_name { public java.util.List<ParameterObject> getParameterObjects() { if (parameterObjects == null) { parameterObjects = new com.amazonaws.internal.SdkInternalList<ParameterObject>(); } return parameterObjects; } }
public class class_name { public java.util.List<ParameterObject> getParameterObjects() { if (parameterObjects == null) { parameterObjects = new com.amazonaws.internal.SdkInternalList<ParameterObject>(); // depends on control dependency: [if], data = [none] } return parameterObjects;...
public class class_name { public Object getComponentNewInstance(String name) { Debug.logVerbose("[JdonFramework]getComponentNewInstance: name=" + name, module); ComponentAdapter componentAdapter = container.getComponentAdapter(name); if (componentAdapter == null) { Debug.logWarning("[JdonFramework]Not fin...
public class class_name { public Object getComponentNewInstance(String name) { Debug.logVerbose("[JdonFramework]getComponentNewInstance: name=" + name, module); ComponentAdapter componentAdapter = container.getComponentAdapter(name); if (componentAdapter == null) { Debug.logWarning("[JdonFramework]Not fin...
public class class_name { public EList<MCF1RG> getRG() { if (rg == null) { rg = new EObjectContainmentEList.Resolving<MCF1RG>(MCF1RG.class, this, AfplibPackage.MCF1__RG); } return rg; } }
public class class_name { public EList<MCF1RG> getRG() { if (rg == null) { rg = new EObjectContainmentEList.Resolving<MCF1RG>(MCF1RG.class, this, AfplibPackage.MCF1__RG); // depends on control dependency: [if], data = [none] } return rg; } }
public class class_name { public void addOperations(final Map<MemcachedNode, Operation> ops) { for (Map.Entry<MemcachedNode, Operation> me : ops.entrySet()) { addOperation(me.getKey(), me.getValue()); } } }
public class class_name { public void addOperations(final Map<MemcachedNode, Operation> ops) { for (Map.Entry<MemcachedNode, Operation> me : ops.entrySet()) { addOperation(me.getKey(), me.getValue()); // depends on control dependency: [for], data = [me] } } }
public class class_name { private Map<NodeKey, Integer> computeReferrersCountDelta( List<NodeKey> addedReferrers, List<NodeKey> removedReferrers ) { Map<NodeKey, Integer> referrersCountDelta = new HashMap<NodeKey, Integer>(0); Set<NodeKey> ...
public class class_name { private Map<NodeKey, Integer> computeReferrersCountDelta( List<NodeKey> addedReferrers, List<NodeKey> removedReferrers ) { Map<NodeKey, Integer> referrersCountDelta = new HashMap<NodeKey, Integer>(0); Set<NodeKey> ...
public class class_name { public static boolean isRtl() { if (sEnable && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return View.LAYOUT_DIRECTION_RTL == TextUtils.getLayoutDirectionFromLocale(Locale.getDefault()); } return false; } }
public class class_name { public static boolean isRtl() { if (sEnable && Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return View.LAYOUT_DIRECTION_RTL == TextUtils.getLayoutDirectionFromLocale(Locale.getDefault()); // depends on control dependency: [if], data = [none] } ...
public class class_name { public int getMappedColumn(final int renderCol) { if (columnMapping == null || renderCol == -1) { return renderCol; } else { final Integer result = columnMapping.get(renderCol); if (result == null) { throw new Illegal...
public class class_name { public int getMappedColumn(final int renderCol) { if (columnMapping == null || renderCol == -1) { return renderCol; // depends on control dependency: [if], data = [none] } else { final Integer result = columnMapping.get(renderCol); i...
public class class_name { public static Map<String, Object> updateUserTone(Map<String, Object> context, ToneAnalysis toneAnalyzerPayload, boolean maintainHistory) { List<ToneScore> emotionTone = new ArrayList<ToneScore>(); List<ToneScore> languageTone = new ArrayList<ToneScore>(); List<ToneScore> so...
public class class_name { public static Map<String, Object> updateUserTone(Map<String, Object> context, ToneAnalysis toneAnalyzerPayload, boolean maintainHistory) { List<ToneScore> emotionTone = new ArrayList<ToneScore>(); List<ToneScore> languageTone = new ArrayList<ToneScore>(); List<ToneScore> so...
public class class_name { static ClassLoader setContextClassLoader(final ClassLoader cl) { if (System.getSecurityManager() == null) { ClassLoader result = Thread.currentThread().getContextClassLoader(); if (cl != null) Thread.currentThread().setContextClassLoader(cl); ...
public class class_name { static ClassLoader setContextClassLoader(final ClassLoader cl) { if (System.getSecurityManager() == null) { ClassLoader result = Thread.currentThread().getContextClassLoader(); if (cl != null) Thread.currentThread().setContextClassLoader(cl); ...
public class class_name { public static void printResult(Number[][] m1, Number[][] m2, Number[][] m3, char op, PrintStream out) { for (int i = 0; i < m1.length; i++) { for (int j = 0; j < m1[0].length; j++) { out.print(" " + m1[i][j]); } ...
public class class_name { public static void printResult(Number[][] m1, Number[][] m2, Number[][] m3, char op, PrintStream out) { for (int i = 0; i < m1.length; i++) { for (int j = 0; j < m1[0].length; j++) { out.print(" " + m1[i][j]); // depends on control d...
public class class_name { @Override public EEnum getIfcTransitionCode() { if (ifcTransitionCodeEEnum == null) { ifcTransitionCodeEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1090); } return ifcTransitionCodeEEnum; } }
public class class_name { @Override public EEnum getIfcTransitionCode() { if (ifcTransitionCodeEEnum == null) { ifcTransitionCodeEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1090); // depends on control dependency: [if], data = [none] } return ...
public class class_name { public synchronized long read(long offset, final ByteBuffer buf) { if (!validState) { throw new InvalidStateException(); } try { int readed; while (true) { if (offset >= offsetOutputCommited) { if (bufOutput.position() > 0) { log.warn("WARN: autoflush forced"); ...
public class class_name { public synchronized long read(long offset, final ByteBuffer buf) { if (!validState) { throw new InvalidStateException(); } try { int readed; while (true) { if (offset >= offsetOutputCommited) { if (bufOutput.position() > 0) { log.warn("WARN: autoflush forced"); /...
public class class_name { public static String getResponseDesc(int code) { String[] iab_msgs = ("0:OK/1:User Canceled/2:Unknown/" + "3:Billing Unavailable/4:Item unavailable/" + "5:Developer Error/6:Error/7:Item Already Owned/" + "8:Item not owned").split("/"); ...
public class class_name { public static String getResponseDesc(int code) { String[] iab_msgs = ("0:OK/1:User Canceled/2:Unknown/" + "3:Billing Unavailable/4:Item unavailable/" + "5:Developer Error/6:Error/7:Item Already Owned/" + "8:Item not owned").split("/"); ...
public class class_name { private static Mode decodeAsciiSegment(BitSource bits, StringBuilder result, StringBuilder resultTrailer) throws FormatException { boolean upperShift = false; do { int oneByte = bits.readBits(8); ...
public class class_name { private static Mode decodeAsciiSegment(BitSource bits, StringBuilder result, StringBuilder resultTrailer) throws FormatException { boolean upperShift = false; do { int oneByte = bits.readBits(8); ...
public class class_name { public void close() throws IOException { // if we haven't started the application, we have nothing to do if (isOk) { OutputCollector<K3, V3> nullCollector = new OutputCollector<K3, V3>() { public void collect(K3 key, V3 value) throws IOExcept...
public class class_name { public void close() throws IOException { // if we haven't started the application, we have nothing to do if (isOk) { OutputCollector<K3, V3> nullCollector = new OutputCollector<K3, V3>() { public void collect(K3 key, V3 value) throws IOExcept...
public class class_name { public GetCelebrityInfoResult withUrls(String... urls) { if (this.urls == null) { setUrls(new java.util.ArrayList<String>(urls.length)); } for (String ele : urls) { this.urls.add(ele); } return this; } }
public class class_name { public GetCelebrityInfoResult withUrls(String... urls) { if (this.urls == null) { setUrls(new java.util.ArrayList<String>(urls.length)); // depends on control dependency: [if], data = [none] } for (String ele : urls) { this.urls.add(ele); // dep...
public class class_name { public Observable<ServiceResponse<ManagedClusterAccessProfileInner>> getAccessProfileWithServiceResponseAsync(String resourceGroupName, String resourceName, String roleName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.cl...
public class class_name { public Observable<ServiceResponse<ManagedClusterAccessProfileInner>> getAccessProfileWithServiceResponseAsync(String resourceGroupName, String resourceName, String roleName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.cl...
public class class_name { private static List<Subchannel> filterNonFailingSubchannels( Collection<Subchannel> subchannels) { List<Subchannel> readySubchannels = new ArrayList<>(subchannels.size()); for (Subchannel subchannel : subchannels) { if (isReady(subchannel)) { readySubchannels.add(s...
public class class_name { private static List<Subchannel> filterNonFailingSubchannels( Collection<Subchannel> subchannels) { List<Subchannel> readySubchannels = new ArrayList<>(subchannels.size()); for (Subchannel subchannel : subchannels) { if (isReady(subchannel)) { readySubchannels.add(s...