code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { public static LoggerWrapper getLogger(String name, ProgressManager pm) { LoggerWrapper ret = getLogger(name); if (ret.getProgressManager() == null || ret.getProgressManager() == LoggerWrapper.defaultProgressManager) { ret.setProgressManager(pm); ...
public class class_name { public static LoggerWrapper getLogger(String name, ProgressManager pm) { LoggerWrapper ret = getLogger(name); if (ret.getProgressManager() == null || ret.getProgressManager() == LoggerWrapper.defaultProgressManager) { ret.setProgressManager(pm); //...
public class class_name { private String genTypeRef(StructureDefinition sd, ElementDefinition ed, String id, ElementDefinition.TypeRefComponent typ) { if(typ.hasProfile()) { if(typ.getCode().equals("Reference")) return genReference("", typ); else if(ProfileUtilities.getChildList(sd, ed).s...
public class class_name { private String genTypeRef(StructureDefinition sd, ElementDefinition ed, String id, ElementDefinition.TypeRefComponent typ) { if(typ.hasProfile()) { if(typ.getCode().equals("Reference")) return genReference("", typ); else if(ProfileUtilities.getChildList(sd, ed).s...
public class class_name { @Override public void prepare() throws HibiscusException { HttpEntityEnclosingRequestBase request = (HttpEntityEnclosingRequestBase) this.httpRequest; try { request.setURI(getURI()); for (BasicNameValuePair header : httpClient.getRequestHeaders()...
public class class_name { @Override public void prepare() throws HibiscusException { HttpEntityEnclosingRequestBase request = (HttpEntityEnclosingRequestBase) this.httpRequest; try { request.setURI(getURI()); for (BasicNameValuePair header : httpClient.getRequestHeaders()...
public class class_name { public static String join(Collection<String> s, String delimiter, boolean doQuote) { StringBuffer buffer = new StringBuffer(); Iterator<String> iter = s.iterator(); while (iter.hasNext()) { if (doQuote) { buffer.append("\"" + iter.next(...
public class class_name { public static String join(Collection<String> s, String delimiter, boolean doQuote) { StringBuffer buffer = new StringBuffer(); Iterator<String> iter = s.iterator(); while (iter.hasNext()) { if (doQuote) { buffer.append("\"" + iter.next(...
public class class_name { public final void info(Object message) { if (isLevelEnabled(SimpleLog.LOG_LEVEL_INFO)) { log(SimpleLog.LOG_LEVEL_INFO, message, null); } } }
public class class_name { public final void info(Object message) { if (isLevelEnabled(SimpleLog.LOG_LEVEL_INFO)) { log(SimpleLog.LOG_LEVEL_INFO, message, null); // depends on control dependency: [if], data = [none] } } }
public class class_name { public ActivitiStateHandlerRegistration findRegistrationForProcessAndState(String processName, String stateName) { ActivitiStateHandlerRegistration r = null; String key = registrationKey(processName, stateName); Collection<ActivitiStateHandlerRegistration> rs = this.findRegistrations...
public class class_name { public ActivitiStateHandlerRegistration findRegistrationForProcessAndState(String processName, String stateName) { ActivitiStateHandlerRegistration r = null; String key = registrationKey(processName, stateName); Collection<ActivitiStateHandlerRegistration> rs = this.findRegistrations...
public class class_name { static ReversePurgeLongHashMap deserializeFromStringArray(final String[] tokens) { final int ignore = STR_PREAMBLE_TOKENS; final int numActive = Integer.parseInt(tokens[ignore]); final int length = Integer.parseInt(tokens[ignore + 1]); final ReversePurgeLongHashMap hashMap = n...
public class class_name { static ReversePurgeLongHashMap deserializeFromStringArray(final String[] tokens) { final int ignore = STR_PREAMBLE_TOKENS; final int numActive = Integer.parseInt(tokens[ignore]); final int length = Integer.parseInt(tokens[ignore + 1]); final ReversePurgeLongHashMap hashMap = n...
public class class_name { public static String toJSONString(Collection collection){ final StringWriter writer = new StringWriter(); try { writeJSONString(collection, writer); return writer.toString(); } catch(IOException e){ // This should never happen for a StringWriter throw new RuntimeException...
public class class_name { public static String toJSONString(Collection collection){ final StringWriter writer = new StringWriter(); try { writeJSONString(collection, writer); // depends on control dependency: [try], data = [none] return writer.toString(); // depends on control dependency: [try], data = [n...
public class class_name { private void addReadPacketToTable(final SimpleDateFormat dateFormatter, final TopLevelStreamElement packet) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { String messageType; Jid from; ...
public class class_name { private void addReadPacketToTable(final SimpleDateFormat dateFormatter, final TopLevelStreamElement packet) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { String messageType; Jid from; ...
public class class_name { protected Object convertValueToRequiredType(Object value, Class requiredType) { if (String.class.equals(this.requiredType)) { return value.toString(); } else if (Number.class.isAssignableFrom(this.requiredType)) { if (value instanceof Number) { ...
public class class_name { protected Object convertValueToRequiredType(Object value, Class requiredType) { if (String.class.equals(this.requiredType)) { return value.toString(); // depends on control dependency: [if], data = [none] } else if (Number.class.isAssignableFrom(this.requiredType))...
public class class_name { public boolean ensureBytes(int n) throws IOException { int required = n - endIndex + index; while (required > 0) { if (!readMore(required)) { return false; } required = n - endIndex + index; } return true; } }
public class class_name { public boolean ensureBytes(int n) throws IOException { int required = n - endIndex + index; while (required > 0) { if (!readMore(required)) { return false; // depends on control dependency: [if], data = [none] } required = n - endIndex + index; } retu...
public class class_name { public void notReady() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notReady"); //get the ready consumer list lock synchronized (consumerDispatcher.getDestination().getReadyConsumerPointLock()) { if(ready) { r...
public class class_name { public void notReady() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "notReady"); //get the ready consumer list lock synchronized (consumerDispatcher.getDestination().getReadyConsumerPointLock()) { if(ready) { r...
public class class_name { protected static String orRegex(Iterable<String> elements) { final StringBuilder regex = new StringBuilder(); for (final String element : elements) { if (regex.length() > 0) { regex.append("|"); //$NON-NLS-1$ } regex.append("(?:"); //$NON-NLS-1$ regex.append(quoteRegex(ele...
public class class_name { protected static String orRegex(Iterable<String> elements) { final StringBuilder regex = new StringBuilder(); for (final String element : elements) { if (regex.length() > 0) { regex.append("|"); //$NON-NLS-1$ // depends on control dependency: [if], data = [none] } regex.appen...
public class class_name { public void marshall(ErrorDetail errorDetail, ProtocolMarshaller protocolMarshaller) { if (errorDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(errorDetail.getErro...
public class class_name { public void marshall(ErrorDetail errorDetail, ProtocolMarshaller protocolMarshaller) { if (errorDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(errorDetail.getErro...
public class class_name { public StaticFactor addStaticNormalizedFactor(int[] neighborIndices, int[] neighborDimensions, Function<int[], Double> assignmentFeaturizer) { NDArrayDoubles doubleArray = new NDArrayDoubles(neighborDimensions); double localPartitionFunction = 0.0; for (int[] assignment : doubleAr...
public class class_name { public StaticFactor addStaticNormalizedFactor(int[] neighborIndices, int[] neighborDimensions, Function<int[], Double> assignmentFeaturizer) { NDArrayDoubles doubleArray = new NDArrayDoubles(neighborDimensions); double localPartitionFunction = 0.0; for (int[] assignment : doubleAr...
public class class_name { protected void onGetImageError(String cacheKey, JusError error) { // Notify the requesters that something failed via a null result. // Remove this request from the list of in-flight requests. BatchedImageRequest request = inFlightRequests.remove(cacheKey); if ...
public class class_name { protected void onGetImageError(String cacheKey, JusError error) { // Notify the requesters that something failed via a null result. // Remove this request from the list of in-flight requests. BatchedImageRequest request = inFlightRequests.remove(cacheKey); if ...
public class class_name { private void addProjectPath(final Path path) { addToClassPool(path); if (path.toFile().isFile() && path.toString().endsWith(".jar")) { addJarClasses(path); } else if (path.toFile().isDirectory()) { addDirectoryClasses(path, Paths.get("")); ...
public class class_name { private void addProjectPath(final Path path) { addToClassPool(path); if (path.toFile().isFile() && path.toString().endsWith(".jar")) { addJarClasses(path); // depends on control dependency: [if], data = [none] } else if (path.toFile().isDirectory()) { ...
public class class_name { public boolean remove(String key) { if (pageSources.remove(key.toLowerCase()) != null) return true; Set<String> set = pageSources.keySet(); String[] keys = set.toArray(new String[set.size()]); // done this way to avoid ConcurrentModificationException PageSource ps; for (String k: keys)...
public class class_name { public boolean remove(String key) { if (pageSources.remove(key.toLowerCase()) != null) return true; Set<String> set = pageSources.keySet(); String[] keys = set.toArray(new String[set.size()]); // done this way to avoid ConcurrentModificationException PageSource ps; for (String k: keys)...
public class class_name { public void loadTableLocal(byte []tableKey, Result<TableKraken> result) { if (tableKey == null) { result.ok(null); return; } TableKraken table = _tableManager.getTable(tableKey); if (table != null) { result.ok(table); return; } RowCurso...
public class class_name { public void loadTableLocal(byte []tableKey, Result<TableKraken> result) { if (tableKey == null) { result.ok(null); // depends on control dependency: [if], data = [null)] return; // depends on control dependency: [if], data = [none] } TableKraken table = _tableMa...
public class class_name { public static List<SettingsResult> getSettingsResults(Result r) { if(r instanceof SettingsResult) { List<SettingsResult> ors = new ArrayList<>(1); ors.add((SettingsResult) r); return ors; } if(r instanceof HierarchicalResult) { return ResultUtil.filterResul...
public class class_name { public static List<SettingsResult> getSettingsResults(Result r) { if(r instanceof SettingsResult) { List<SettingsResult> ors = new ArrayList<>(1); ors.add((SettingsResult) r); // depends on control dependency: [if], data = [none] return ors; // depends on control depende...
public class class_name { public boolean set(State state) { while (true) { InternalState internalState = currentInternalState.get(); checkState(!internalState.isRead, "State was already read, cannot set state."); if (state == internalState.state) { return false; } else { if ...
public class class_name { public boolean set(State state) { while (true) { InternalState internalState = currentInternalState.get(); checkState(!internalState.isRead, "State was already read, cannot set state."); // depends on control dependency: [while], data = [none] if (state == internalState....
public class class_name { private void writeNewClassDesc(ObjectStreamClass classDesc) throws IOException { output.writeUTF(classDesc.getName()); output.writeLong(classDesc.getSerialVersionUID()); byte flags = classDesc.getFlags(); boolean externalizable = classDesc.isExtern...
public class class_name { private void writeNewClassDesc(ObjectStreamClass classDesc) throws IOException { output.writeUTF(classDesc.getName()); output.writeLong(classDesc.getSerialVersionUID()); byte flags = classDesc.getFlags(); boolean externalizable = classDesc.isExtern...
public class class_name { public Request param(String name, Object value) { if (params == null) { params = new LinkedHashMap<String, Object>(); } if (multipleValues) { Object currentValue = params.get(name); if (currentValue != null) { if (cur...
public class class_name { public Request param(String name, Object value) { if (params == null) { params = new LinkedHashMap<String, Object>(); // depends on control dependency: [if], data = [none] } if (multipleValues) { Object currentValue = params.get(name); ...
public class class_name { private String getParameterJSDocName(Node paramNode, int paramIndex) { Node nameNode = null; if (paramNode != null) { checkArgument(paramNode.getParent().isParamList(), paramNode); if (paramNode.isRest()) { // use `restParam` of `...restParam` // restParam ...
public class class_name { private String getParameterJSDocName(Node paramNode, int paramIndex) { Node nameNode = null; if (paramNode != null) { checkArgument(paramNode.getParent().isParamList(), paramNode); // depends on control dependency: [if], data = [(paramNode] if (paramNode.isRest()) { ...
public class class_name { public Integer getSelectedLastColumn() { final Object result = getStateHelper().eval(PropertyKeys.selectedLastColumn); if (result == null) { return null; } return Integer.valueOf(result.toString()); } }
public class class_name { public Integer getSelectedLastColumn() { final Object result = getStateHelper().eval(PropertyKeys.selectedLastColumn); if (result == null) { return null; // depends on control dependency: [if], data = [none] } return Integer.valueOf(result.toString(...
public class class_name { @Override public int size() { int count = 0; for (Map<N, Map<K, S>> namespaceMap : state) { if (null != namespaceMap) { for (Map<K, S> keyMap : namespaceMap.values()) { if (null != keyMap) { count += keyMap.size(); } } } } return count; } }
public class class_name { @Override public int size() { int count = 0; for (Map<N, Map<K, S>> namespaceMap : state) { if (null != namespaceMap) { for (Map<K, S> keyMap : namespaceMap.values()) { if (null != keyMap) { count += keyMap.size(); // depends on control dependency: [if], data = [none] ...
public class class_name { void cell(Cell cell) { int left = cell.getLeft(); int right = cell.getRight(); // first see if we've got a cell past the last col if (right > realColumnCount) { // are we past last col entirely? if (left == realColumnCount) { ...
public class class_name { void cell(Cell cell) { int left = cell.getLeft(); int right = cell.getRight(); // first see if we've got a cell past the last col if (right > realColumnCount) { // are we past last col entirely? if (left == realColumnCount) { ...
public class class_name { public synchronized TransactionItem[] clear( List<String> deliveredMessageIDs ) throws FFMQException { int len = deliveredMessageIDs.size(); TransactionItem[] itemsSnapshot = new TransactionItem[len]; for(int n=0;n<len;n++) { String deliveredMessageID = delivered...
public class class_name { public synchronized TransactionItem[] clear( List<String> deliveredMessageIDs ) throws FFMQException { int len = deliveredMessageIDs.size(); TransactionItem[] itemsSnapshot = new TransactionItem[len]; for(int n=0;n<len;n++) { String deliveredMessageID = delivered...
public class class_name { @Nullable @SuppressWarnings("unchecked") static JSONObject mapToJsonObject(@Nullable Map<String, ? extends Object> mapObject) { if (mapObject == null) { return null; } JSONObject jsonObject = new JSONObject(); for (String key : mapObject.key...
public class class_name { @Nullable @SuppressWarnings("unchecked") static JSONObject mapToJsonObject(@Nullable Map<String, ? extends Object> mapObject) { if (mapObject == null) { return null; // depends on control dependency: [if], data = [none] } JSONObject jsonObject = new...
public class class_name { @Override public boolean onMenuItemClick(MenuItem item) { boolean handled = false; ShareTarget target = mShareTargets.get(item.getItemId()); // 首先响应target自带的listener if (target.listener != null) { handled = target.listener.onMenuItemClick(item...
public class class_name { @Override public boolean onMenuItemClick(MenuItem item) { boolean handled = false; ShareTarget target = mShareTargets.get(item.getItemId()); // 首先响应target自带的listener if (target.listener != null) { handled = target.listener.onMenuItemClick(item...
public class class_name { public static BenchmarkExecutor getExecutor(final BenchmarkElement meth) { if (BENCHRES == null) { throw new IllegalStateException("Call initialize method first!"); } // check if new instance needs to be created if (!EXECUTOR.containsKey(meth.getMe...
public class class_name { public static BenchmarkExecutor getExecutor(final BenchmarkElement meth) { if (BENCHRES == null) { throw new IllegalStateException("Call initialize method first!"); } // check if new instance needs to be created if (!EXECUTOR.containsKey(meth.getMe...
public class class_name { private Object convertStringToNearestObjectType(String value) { switch (value) { case "true": return true; case "false": return false; default: { if (NumberUtils.isParsable(value)) { return Integer.parseInt(value); } retu...
public class class_name { private Object convertStringToNearestObjectType(String value) { switch (value) { case "true": return true; case "false": return false; default: { if (NumberUtils.isParsable(value)) { return Integer.parseInt(value); // depends on control ...
public class class_name { private boolean shouldEmitDeprecationWarning(NodeTraversal t, PropertyReference propRef) { // In the global scope, there are only two kinds of accesses that should // be flagged for warnings: // 1) Calls of deprecated functions and methods. // 2) Instantiations of deprecated c...
public class class_name { private boolean shouldEmitDeprecationWarning(NodeTraversal t, PropertyReference propRef) { // In the global scope, there are only two kinds of accesses that should // be flagged for warnings: // 1) Calls of deprecated functions and methods. // 2) Instantiations of deprecated c...
public class class_name { public static List<String> getOrderList(Properties repoProperties) throws InstallException { List<String> orderList = new ArrayList<String>(); List<String> repoList = new ArrayList<String>(); // Retrieves the Repository Properties file File repoPropertiesFile =...
public class class_name { public static List<String> getOrderList(Properties repoProperties) throws InstallException { List<String> orderList = new ArrayList<String>(); List<String> repoList = new ArrayList<String>(); // Retrieves the Repository Properties file File repoPropertiesFile =...
public class class_name { private void addAnnotationValues(ClassReference annotatedReference, AnnotationClassReference typeRef, Annotation node) { Map<String, AnnotationValue> annotationValueMap = new HashMap<>(); if (node instanceof SingleMemberAnnotation) { SingleMemberAnnotat...
public class class_name { private void addAnnotationValues(ClassReference annotatedReference, AnnotationClassReference typeRef, Annotation node) { Map<String, AnnotationValue> annotationValueMap = new HashMap<>(); if (node instanceof SingleMemberAnnotation) { SingleMemberAnnotat...
public class class_name { public IScan add(IScan scan) { int num = scan.getNum(); IScan oldScan = getNum2scan().put(num, scan); log.trace("Adding scan #{} to ScanIndex. num2scan map already contained a scan for scanNum: {}", num, num); final Double rt = scan.getRt(); final TreeMap<Double,...
public class class_name { public IScan add(IScan scan) { int num = scan.getNum(); IScan oldScan = getNum2scan().put(num, scan); log.trace("Adding scan #{} to ScanIndex. num2scan map already contained a scan for scanNum: {}", num, num); final Double rt = scan.getRt(); final TreeMap<Double,...
public class class_name { public void marshall(GetGroupsRequest getGroupsRequest, ProtocolMarshaller protocolMarshaller) { if (getGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getG...
public class class_name { public void marshall(GetGroupsRequest getGroupsRequest, ProtocolMarshaller protocolMarshaller) { if (getGroupsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getG...
public class class_name { private static final int toIndex(List<?> base, Object property) { int index = 0; if (property instanceof Number) { index = ((Number) property).intValue(); } else if (property instanceof String) { try { index = Integer.valueOf((String) property); } catch (NumberFormatExcepti...
public class class_name { private static final int toIndex(List<?> base, Object property) { int index = 0; if (property instanceof Number) { index = ((Number) property).intValue(); // depends on control dependency: [if], data = [none] } else if (property instanceof String) { try { index = Integer.value...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAbstractBuilding() { if (_GenericApplicationPropertyOfAbstractBuilding == null) { _GenericApplicationPropertyOfAbstractBuilding = new ArrayList<JAXBElement<Object>>(); } return this._GenericAp...
public class class_name { public List<JAXBElement<Object>> get_GenericApplicationPropertyOfAbstractBuilding() { if (_GenericApplicationPropertyOfAbstractBuilding == null) { _GenericApplicationPropertyOfAbstractBuilding = new ArrayList<JAXBElement<Object>>(); // depends on control dependency: [if], ...
public class class_name { public void breakCycles() { for (GraphObject go : new ArrayList<GraphObject>(result)) { if (go instanceof Node) { Node node = (Node) go; for (Edge edge : node.getDownstream()) { if (result.contains(edge) && !isSafe(node, edge)) { result.remove(edge); ...
public class class_name { public void breakCycles() { for (GraphObject go : new ArrayList<GraphObject>(result)) { if (go instanceof Node) { Node node = (Node) go; for (Edge edge : node.getDownstream()) { if (result.contains(edge) && !isSafe(node, edge)) { result.remove(edge); //...
public class class_name { public void start() { IoFutureListener<ConnectFuture> tmpConnectListener; if (interval > 0) { tmpConnectListener = new IoFutureListener<ConnectFuture>() { @Override public void operationComplete(ConnectFuture future) { ...
public class class_name { public void start() { IoFutureListener<ConnectFuture> tmpConnectListener; if (interval > 0) { tmpConnectListener = new IoFutureListener<ConnectFuture>() { @Override public void operationComplete(ConnectFuture future) { ...
public class class_name { public static KvStateService fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration) { KvStateRegistry kvStateRegistry = new KvStateRegistry(); QueryableStateConfiguration qsConfig = taskManagerServicesConfiguration.getQueryableStateConfig(); KvStateClient...
public class class_name { public static KvStateService fromConfiguration(TaskManagerServicesConfiguration taskManagerServicesConfiguration) { KvStateRegistry kvStateRegistry = new KvStateRegistry(); QueryableStateConfiguration qsConfig = taskManagerServicesConfiguration.getQueryableStateConfig(); KvStateClient...
public class class_name { private CompletableFuture<Void> replicateAndInvalidate(CacheTopology cacheTopology) { Address nextMember = getNextMember(cacheTopology); if (nextMember != null) { HashSet<Address> otherMembers = new HashSet<>(cacheTopology.getActualMembers()); Address localAddres...
public class class_name { private CompletableFuture<Void> replicateAndInvalidate(CacheTopology cacheTopology) { Address nextMember = getNextMember(cacheTopology); if (nextMember != null) { HashSet<Address> otherMembers = new HashSet<>(cacheTopology.getActualMembers()); Address localAddres...
public class class_name { private static Cycles _invoke(CycleFinder finder, IAtomContainer container, int length) { try { return finder.find(container, length); } catch (Intractable e) { throw new RuntimeException("Cycle computation should not be intractable: ", e); } ...
public class class_name { private static Cycles _invoke(CycleFinder finder, IAtomContainer container, int length) { try { return finder.find(container, length); // depends on control dependency: [try], data = [none] } catch (Intractable e) { throw new RuntimeException("Cycle com...
public class class_name { public String getValue(final String... profiles) { if (hasMacro) { return propsData.resolveMacros(value, profiles); } return value; } }
public class class_name { public String getValue(final String... profiles) { if (hasMacro) { return propsData.resolveMacros(value, profiles); // depends on control dependency: [if], data = [none] } return value; } }
public class class_name { private void useGoBack(int numberOfTimes){ for(int i = 0; i < numberOfTimes; i++){ try { inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); sleeper.sleep(MINISLEEP); inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); } catch (Throwable ignored) { // Guard against lack of INJEC...
public class class_name { private void useGoBack(int numberOfTimes){ for(int i = 0; i < numberOfTimes; i++){ try { inst.sendKeyDownUpSync(KeyEvent.KEYCODE_BACK); // depends on control dependency: [try], data = [none] sleeper.sleep(MINISLEEP); // depends on control dependency: [try], data = [none] inst...
public class class_name { protected Connection<CommPortAdapter> getCommPortConnection() { Connection<CommPortAdapter> connection=null; synchronized(this) { boolean connectionValid=true; //if no connection available if(this.commConnection==null) ...
public class class_name { protected Connection<CommPortAdapter> getCommPortConnection() { Connection<CommPortAdapter> connection=null; synchronized(this) { boolean connectionValid=true; //if no connection available if(this.commConnection==null) ...
public class class_name { protected final ContentCryptoMaterial createContentCryptoMaterial( AmazonWebServiceRequest req) { if (req instanceof EncryptionMaterialsFactory) { // per request level encryption materials EncryptionMaterialsFactory f = (EncryptionMaterialsFactory)req; ...
public class class_name { protected final ContentCryptoMaterial createContentCryptoMaterial( AmazonWebServiceRequest req) { if (req instanceof EncryptionMaterialsFactory) { // per request level encryption materials EncryptionMaterialsFactory f = (EncryptionMaterialsFactory)req; ...
public class class_name { private boolean createGeometryIndexTable() { boolean created = false; // Create the geometry index table if needed as well try { if (!geometryIndexDao.isTableExists()) { created = geoPackage.createGeometryIndexTable(); } } catch (SQLException e) { throw new GeoPackageEx...
public class class_name { private boolean createGeometryIndexTable() { boolean created = false; // Create the geometry index table if needed as well try { if (!geometryIndexDao.isTableExists()) { created = geoPackage.createGeometryIndexTable(); // depends on control dependency: [if], data = [none] } ...
public class class_name { @NonNull @Override public MutableDictionary setValue(@NonNull String key, Object value) { if (key == null) { throw new IllegalArgumentException("key cannot be null."); } synchronized (lock) { final MValue oldValue = internalDict.get(key); value...
public class class_name { @NonNull @Override public MutableDictionary setValue(@NonNull String key, Object value) { if (key == null) { throw new IllegalArgumentException("key cannot be null."); } synchronized (lock) { final MValue oldValue = internalDict.get(key); value...
public class class_name { private SepaVersion determinePainVersion(HBCIPassportInternal passport, String gvName) { // Schritt 1: Wir holen uns die globale maximale PAIN-Version SepaVersion globalVersion = this.determinePainVersionInternal(passport, GVSEPAInfo.getLowlevelName()); // Schritt 2: ...
public class class_name { private SepaVersion determinePainVersion(HBCIPassportInternal passport, String gvName) { // Schritt 1: Wir holen uns die globale maximale PAIN-Version SepaVersion globalVersion = this.determinePainVersionInternal(passport, GVSEPAInfo.getLowlevelName()); // Schritt 2: ...
public class class_name { public EClass getIfcHeatFluxDensityMeasure() { if (ifcHeatFluxDensityMeasureEClass == null) { ifcHeatFluxDensityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(682); } return ifcHeatFluxDensityMeasureEClass; ...
public class class_name { public EClass getIfcHeatFluxDensityMeasure() { if (ifcHeatFluxDensityMeasureEClass == null) { ifcHeatFluxDensityMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(682); // depends on control dependency: [if], data = [...
public class class_name { @SafeVarargs public static <T> void split(T[] src, T[]... parts) { int srcPos = 0; for (T[] dest : parts) { System.arraycopy(src, srcPos, dest, 0, dest.length); srcPos += dest.length; } } }
public class class_name { @SafeVarargs public static <T> void split(T[] src, T[]... parts) { int srcPos = 0; for (T[] dest : parts) { System.arraycopy(src, srcPos, dest, 0, dest.length); // depends on control dependency: [for], data = [dest] srcPos += dest.length; // depends on control dependency: [for], da...
public class class_name { public float optFloat(int index, float defaultValue) { final Number val = this.optNumber(index, null); if (val == null) { return defaultValue; } final float floatValue = val.floatValue(); // if (Float.isNaN(floatValue) || Float.isInfinite(fl...
public class class_name { public float optFloat(int index, float defaultValue) { final Number val = this.optNumber(index, null); if (val == null) { return defaultValue; // depends on control dependency: [if], data = [none] } final float floatValue = val.floatValue(); ...
public class class_name { public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaction updateresources[] = new dnsaction[resources.length]; for (int i=0;i<resources.length;i++){ ...
public class class_name { public static base_responses update(nitro_service client, dnsaction resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { dnsaction updateresources[] = new dnsaction[resources.length]; for (int i=0;i<resources.length;i++){ ...
public class class_name { @Pure @SuppressWarnings("checkstyle:npathcomplexity") public static Map<Character, String> getJavaToHTMLTranslationTable() { Map<Character, String> map = null; try { LOCK.lock(); if (javaToHtmlTransTbl != null) { map = javaToHtmlTransTbl.get(); } } finally { LOCK.unloc...
public class class_name { @Pure @SuppressWarnings("checkstyle:npathcomplexity") public static Map<Character, String> getJavaToHTMLTranslationTable() { Map<Character, String> map = null; try { LOCK.lock(); // depends on control dependency: [try], data = [none] if (javaToHtmlTransTbl != null) { map = jav...
public class class_name { public <T extends RegisteredService> T getDynamicService(Package pkg, Class<T> serviceInterface, String className) { if (dynamicServices.containsKey(serviceInterface.getName()) && dynamicServices.get(serviceInterface.getName()).contains(className)) { try { ...
public class class_name { public <T extends RegisteredService> T getDynamicService(Package pkg, Class<T> serviceInterface, String className) { if (dynamicServices.containsKey(serviceInterface.getName()) && dynamicServices.get(serviceInterface.getName()).contains(className)) { try { ...
public class class_name { private Message buildMapEntryMessage(Message.Builder mapBuilder, Field field, Object mapKey, Object mapValue) { FieldDescriptor keyFieldDescriptor = mapBuilder.getDescriptorForType().findFieldByName(MAP_KEY_FIELD_NAME); FieldDescriptor valu...
public class class_name { private Message buildMapEntryMessage(Message.Builder mapBuilder, Field field, Object mapKey, Object mapValue) { FieldDescriptor keyFieldDescriptor = mapBuilder.getDescriptorForType().findFieldByName(MAP_KEY_FIELD_NAME); FieldDescriptor valu...
public class class_name { public static String trimTrailingCharacter(String str, char trailingCharacter) { if (!hasLength(str)) { return str; } StringBuilder buf = new StringBuilder(str); while (buf.length() > 0 && buf.charAt(buf.length() - 1) == trailingCharacter) { ...
public class class_name { public static String trimTrailingCharacter(String str, char trailingCharacter) { if (!hasLength(str)) { return str; // depends on control dependency: [if], data = [none] } StringBuilder buf = new StringBuilder(str); while (buf.length() > 0 && buf.ch...
public class class_name { public long videoPreview(String wxName, String openId, String mediaId, String title, String desc) { Map<String, String> uploadRequest = new HashMap<>(); uploadRequest.put("media_id", mediaId); uploadRequest.put("title", title); uploadRequest.put("description", desc); String upl...
public class class_name { public long videoPreview(String wxName, String openId, String mediaId, String title, String desc) { Map<String, String> uploadRequest = new HashMap<>(); uploadRequest.put("media_id", mediaId); uploadRequest.put("title", title); uploadRequest.put("description", desc); String upl...
public class class_name { public static String udunitsToUcum(String udunits) { if (udunits == null) { return null; } //is it a point in time? e.g., seconds since 1970-01-01T00:00:00T int sincePo = udunits.indexOf(" since "); if (sincePo > 0) { try { ...
public class class_name { public static String udunitsToUcum(String udunits) { if (udunits == null) { return null; // depends on control dependency: [if], data = [none] } //is it a point in time? e.g., seconds since 1970-01-01T00:00:00T int sincePo = udunits.indexOf(" since...
public class class_name { public boolean removeTerms(Set<BooleanTerm> toRemove) { boolean modified = false; if (toRemove == null || toRemove.iterator() == null) { modified = booleanTerms == null || size() != 0; booleanTerms = new HashSet<BooleanTerm>(); } else if (booleanTerms != null) { modified ...
public class class_name { public boolean removeTerms(Set<BooleanTerm> toRemove) { boolean modified = false; if (toRemove == null || toRemove.iterator() == null) { modified = booleanTerms == null || size() != 0; // depends on control dependency: [if], data = [none] booleanTerms = new HashSet<BooleanTerm>(...
public class class_name { static String uri(final String... paths) { StringBuilder sb = new StringBuilder(); boolean firstPath = true; for (String s : paths) { if (s == null || s.isEmpty()) { continue; } if (!s.startsWith("/") && !firstPath) {...
public class class_name { static String uri(final String... paths) { StringBuilder sb = new StringBuilder(); boolean firstPath = true; for (String s : paths) { if (s == null || s.isEmpty()) { continue; } if (!s.startsWith("/") && !firstPath) {...
public class class_name { public void marshall(OutputSettings outputSettings, ProtocolMarshaller protocolMarshaller) { if (outputSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(outputSett...
public class class_name { public void marshall(OutputSettings outputSettings, ProtocolMarshaller protocolMarshaller) { if (outputSettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(outputSett...
public class class_name { private void init() { _minValue = 0; _maxValue = 100; value = new DoublePropertyBase(_minValue) { @Override protected void invalidated() { final double VALUE =...
public class class_name { private void init() { _minValue = 0; _maxValue = 100; value = new DoublePropertyBase(_minValue) { @Override protected void invalidated() { final double VALUE =...
public class class_name { public final EObject ruleXCasePart() throws RecognitionException { EObject current = null; Token otherlv_2=null; Token otherlv_4=null; Token lv_fallThrough_6_0=null; EObject lv_typeGuard_1_0 = null; EObject lv_case_3_0 = null; EObject...
public class class_name { public final EObject ruleXCasePart() throws RecognitionException { EObject current = null; Token otherlv_2=null; Token otherlv_4=null; Token lv_fallThrough_6_0=null; EObject lv_typeGuard_1_0 = null; EObject lv_case_3_0 = null; EObject...
public class class_name { public static ImmutableList<JClassType> filterSubtypesForDeserialization( TreeLogger logger, RebindConfiguration configuration, JClassType type ) { boolean filterOnlySupportedType = isObjectOrSerializable( t...
public class class_name { public static ImmutableList<JClassType> filterSubtypesForDeserialization( TreeLogger logger, RebindConfiguration configuration, JClassType type ) { boolean filterOnlySupportedType = isObjectOrSerializable( t...
public class class_name { public void setText(final String TEXT) { if (null == text) { _text = TEXT; fireUpdateEvent(REDRAW_EVENT); } else { text.set(TEXT); } } }
public class class_name { public void setText(final String TEXT) { if (null == text) { _text = TEXT; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] } else { text.set(TEXT); //...
public class class_name { public static String removeAllWhitespaces(final String string) { if (string == null || string.length() == 0) { return string; } final int originalSize = string.length(); final char[] charArray = new char[originalSize]; int charCount = 0; ...
public class class_name { public static String removeAllWhitespaces(final String string) { if (string == null || string.length() == 0) { return string; // depends on control dependency: [if], data = [none] } final int originalSize = string.length(); final char[] charArray = ...
public class class_name { static void publishEntryEvent(QueryCacheContext context, String mapName, String cacheId, Data dataKey, Data dataNewValue, QueryCacheRecord oldRecord, EntryEventType eventType, Extractors extr...
public class class_name { static void publishEntryEvent(QueryCacheContext context, String mapName, String cacheId, Data dataKey, Data dataNewValue, QueryCacheRecord oldRecord, EntryEventType eventType, Extractors extr...
public class class_name { public static <T> T onUiSync(Func<T> func) { if (Looper.myLooper() == Looper.getMainLooper()) { return func.call(); } FuncSyncTask<T> poster = new FuncSyncTask<T>(func); getUiPoster().sync(poster); return poster.waitRun(); } }
public class class_name { public static <T> T onUiSync(Func<T> func) { if (Looper.myLooper() == Looper.getMainLooper()) { return func.call(); // depends on control dependency: [if], data = [none] } FuncSyncTask<T> poster = new FuncSyncTask<T>(func); getUiPoster().sync(poste...
public class class_name { private Publisher<List<String>> convertServiceIds(ListServicesResult listServicesResult) { List<ServiceSummary> services = listServicesResult.getServices(); List<String> serviceIds = new ArrayList<>(); for (ServiceSummary service : services) { serviceIds.a...
public class class_name { private Publisher<List<String>> convertServiceIds(ListServicesResult listServicesResult) { List<ServiceSummary> services = listServicesResult.getServices(); List<String> serviceIds = new ArrayList<>(); for (ServiceSummary service : services) { serviceIds.a...
public class class_name { public static boolean hasActiveQuorum( final ClusterMember[] clusterMembers, final long nowMs, final long timeoutMs) { int threshold = quorumThreshold(clusterMembers.length); for (final ClusterMember member : clusterMembers) { if (member.isLead...
public class class_name { public static boolean hasActiveQuorum( final ClusterMember[] clusterMembers, final long nowMs, final long timeoutMs) { int threshold = quorumThreshold(clusterMembers.length); for (final ClusterMember member : clusterMembers) { if (member.isLead...
public class class_name { static ManagedChannelServiceConfig fromServiceConfig( Map<String, ?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, @Nullable Object loadBalancingConfig) { Throttle retryThrottling = null; if (retryEnabled) { ...
public class class_name { static ManagedChannelServiceConfig fromServiceConfig( Map<String, ?> serviceConfig, boolean retryEnabled, int maxRetryAttemptsLimit, int maxHedgedAttemptsLimit, @Nullable Object loadBalancingConfig) { Throttle retryThrottling = null; if (retryEnabled) { ...
public class class_name { @Override public String queryValue(String name, Object value) { if (value == null) { return null; } else if (value instanceof Boolean) { return (Boolean) value ? TRUE : FALSE; } else { return value.toString(); } } }
public class class_name { @Override public String queryValue(String name, Object value) { if (value == null) { return null; // depends on control dependency: [if], data = [none] } else if (value instanceof Boolean) { return (Boolean) value ? TRUE : FALSE; // depends on contr...
public class class_name { @Override public void computeDensityEstimator(List<S> solutionList) { int size = solutionList.size(); if (size <= solutionList.get(0).getNumberOfObjectives()) { for (int x = 0; x < size; x++) { solutionList.get(x).setAttribute(getAttributeID(), Double.POSITIVE_INFINIT...
public class class_name { @Override public void computeDensityEstimator(List<S> solutionList) { int size = solutionList.size(); if (size <= solutionList.get(0).getNumberOfObjectives()) { for (int x = 0; x < size; x++) { solutionList.get(x).setAttribute(getAttributeID(), Double.POSITIVE_INFINIT...
public class class_name { public static Period fieldDifference(ReadablePartial start, ReadablePartial end) { if (start == null || end == null) { throw new IllegalArgumentException("ReadablePartial objects must not be null"); } if (start.size() != end.size()) { throw new ...
public class class_name { public static Period fieldDifference(ReadablePartial start, ReadablePartial end) { if (start == null || end == null) { throw new IllegalArgumentException("ReadablePartial objects must not be null"); } if (start.size() != end.size()) { throw new ...
public class class_name { private Object readItem() { Object itemRead = null; try { currentChunkStatus.incrementItemsTouchedInCurrentChunk(); // call read listeners before and after the actual read for (ItemReadListenerProxy readListenerProxy : itemReadListeners)...
public class class_name { private Object readItem() { Object itemRead = null; try { currentChunkStatus.incrementItemsTouchedInCurrentChunk(); // depends on control dependency: [try], data = [none] // call read listeners before and after the actual read for (ItemR...
public class class_name { private static Properties initializeConfigurationProperties() { Properties properties = new Properties(); InputStream in = GeoPackageProperties.class.getResourceAsStream("/" + PropertyConstants.PROPERTIES_FILE); if (in != null) { try { properties.load(in); } catch (Except...
public class class_name { private static Properties initializeConfigurationProperties() { Properties properties = new Properties(); InputStream in = GeoPackageProperties.class.getResourceAsStream("/" + PropertyConstants.PROPERTIES_FILE); if (in != null) { try { properties.load(in); // depends on cont...
public class class_name { private static File newTempDirectory() { String tempDirName = System.getProperty(JBOSS_SERVER_TMPDIR); if (tempDirName == null) { tempDirName = System.getProperty(JAVA_IO_TMPDIR); } if (tempDirName == null) { throw new SystemFailureExcep...
public class class_name { private static File newTempDirectory() { String tempDirName = System.getProperty(JBOSS_SERVER_TMPDIR); if (tempDirName == null) { tempDirName = System.getProperty(JAVA_IO_TMPDIR); // depends on control dependency: [if], data = [none] } if (tempDirNa...
public class class_name { public void marshall(CreateConnectionRequest createConnectionRequest, ProtocolMarshaller protocolMarshaller) { if (createConnectionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void marshall(CreateConnectionRequest createConnectionRequest, ProtocolMarshaller protocolMarshaller) { if (createConnectionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMar...
public class class_name { public void drawDistances(Graphics g1){ Graphics2D g = (Graphics2D)g1; int c = matrix.getRowDimension(); int d = matrix.getColumnDimension(); float scale = getScale(); int width = Math.round(scale); for (int i = 0; i < c; i++) { int ipaint = Math.round(i*scale); for (int...
public class class_name { public void drawDistances(Graphics g1){ Graphics2D g = (Graphics2D)g1; int c = matrix.getRowDimension(); int d = matrix.getColumnDimension(); float scale = getScale(); int width = Math.round(scale); for (int i = 0; i < c; i++) { int ipaint = Math.round(i*scale); for (int...
public class class_name { void countNonZeroUsingLinkedList( int parent[] , int ll[] ) { Arrays.fill(pinv,0,m,-1); nz_in_V = 0; m2 = m; for (int k = 0; k < n; k++) { int i = ll[head+k]; // remove row i from queue k nz_in_V++; // coun...
public class class_name { void countNonZeroUsingLinkedList( int parent[] , int ll[] ) { Arrays.fill(pinv,0,m,-1); nz_in_V = 0; m2 = m; for (int k = 0; k < n; k++) { int i = ll[head+k]; // remove row i from queue k nz_in_V++; // coun...
public class class_name { @SuppressWarnings("unchecked") public static VmSetting getSetting(String s) { PARAMETERS.clear(); PARAMETERS.put("setting", s); result = namedQuery("VmSetting.findBySetting", PARAMETERS); if (result.isEmpty()) { return nul...
public class class_name { @SuppressWarnings("unchecked") public static VmSetting getSetting(String s) { PARAMETERS.clear(); PARAMETERS.put("setting", s); result = namedQuery("VmSetting.findBySetting", PARAMETERS); if (result.isEmpty()) { return nul...
public class class_name { public final void mPRED() throws RecognitionException { try { int _type = PRED; int _channel = DEFAULT_TOKEN_CHANNEL; // C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:12...
public class class_name { public final void mPRED() throws RecognitionException { try { int _type = PRED; int _channel = DEFAULT_TOKEN_CHANNEL; // C:\\Project\\Obdalib\\obdalib-parent\\obdalib-core\\src\\main\\java\\it\\unibz\\inf\\obda\\gui\\swing\\utils\\MappingFilter.g:12...
public class class_name { @Pure public static String getExecutableFilename(String name) { if (OperatingSystem.WIN.isCurrentOS()) { return name + ".exe"; //$NON-NLS-1$ } return name; } }
public class class_name { @Pure public static String getExecutableFilename(String name) { if (OperatingSystem.WIN.isCurrentOS()) { return name + ".exe"; //$NON-NLS-1$ // depends on control dependency: [if], data = [none] } return name; } }
public class class_name { private void initializePortraitListListener() { instructionLayout.setOnClickListener(new OnClickListener() { @Override public void onClick(View instructionView) { boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE; if (!instructionsV...
public class class_name { private void initializePortraitListListener() { instructionLayout.setOnClickListener(new OnClickListener() { @Override public void onClick(View instructionView) { boolean instructionsVisible = instructionListLayout.getVisibility() == VISIBLE; if (!instructionsV...
public class class_name { public List<InputColumn<?>> getAvailableInputColumns(final ComponentBuilder componentBuilder, final Class<?> dataType) { List<InputColumn<?>> result = getAvailableInputColumns(dataType); final SourceColumnFinder finder = new SourceColumnFinder(); finder.ad...
public class class_name { public List<InputColumn<?>> getAvailableInputColumns(final ComponentBuilder componentBuilder, final Class<?> dataType) { List<InputColumn<?>> result = getAvailableInputColumns(dataType); final SourceColumnFinder finder = new SourceColumnFinder(); finder.ad...
public class class_name { public static void stopChains(List<String> chains, long timeout, final Runnable runOnStop) { if (null == chains || chains.isEmpty()) { return; } final boolean bTrace = TraceComponent.isAnyTracingEnabled(); final ChannelFramework cf = ChannelFramewor...
public class class_name { public static void stopChains(List<String> chains, long timeout, final Runnable runOnStop) { if (null == chains || chains.isEmpty()) { return; // depends on control dependency: [if], data = [none] } final boolean bTrace = TraceComponent.isAnyTracingEnabled(...
public class class_name { @Override @UiThread public int getItemViewType(int flatPosition) { ExpandableWrapper<P, C> listItem = mFlatItemList.get(flatPosition); if (listItem.isParent()) { return getParentViewType(getNearestParentPosition(flatPosition)); } else { ...
public class class_name { @Override @UiThread public int getItemViewType(int flatPosition) { ExpandableWrapper<P, C> listItem = mFlatItemList.get(flatPosition); if (listItem.isParent()) { return getParentViewType(getNearestParentPosition(flatPosition)); // depends on control depende...
public class class_name { public void marshall(HIT hIT, ProtocolMarshaller protocolMarshaller) { if (hIT == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hIT.getHITId(), HITID_BINDING); ...
public class class_name { public void marshall(HIT hIT, ProtocolMarshaller protocolMarshaller) { if (hIT == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hIT.getHITId(), HITID_BINDING); // depends ...
public class class_name { private Set<URI> listEntitiesByDataModel(com.hp.hpl.jena.rdf.model.Resource entityType, Property dataPropertyType, URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); } StringBuilder queryBuilder = new StringBuilder() ...
public class class_name { private Set<URI> listEntitiesByDataModel(com.hp.hpl.jena.rdf.model.Resource entityType, Property dataPropertyType, URI modelReference) { if (modelReference == null) { return ImmutableSet.of(); // depends on control dependency: [if], data = [none] } String...
public class class_name { @Override public int delete(List<?> values, boolean shouldNotify) throws StormException { final CachedTable table = super.getCachedTable(values); FieldHolder primaryKey; try { primaryKey = getPrimaryKey(table); } catch (NoPrimaryKeyFoundExcep...
public class class_name { @Override public int delete(List<?> values, boolean shouldNotify) throws StormException { final CachedTable table = super.getCachedTable(values); FieldHolder primaryKey; try { primaryKey = getPrimaryKey(table); } catch (NoPrimaryKeyFoundExcep...
public class class_name { private List<String> loadArgumentsFile(final String argumentsFile) { List<String> args = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(argumentsFile))){ String line; while ((line = reader.readLine()) != null) { ...
public class class_name { private List<String> loadArgumentsFile(final String argumentsFile) { List<String> args = new ArrayList<>(); try (BufferedReader reader = new BufferedReader(new FileReader(argumentsFile))){ String line; while ((line = reader.readLine()) != null) { ...
public class class_name { @Beta public static <K, V> Map<K, V> zip(List<K> keys, List<V> values) { checkArgument(keys != null, "Expected non-null keys"); checkArgument(values != null, "Expected non-null values"); checkArgument(keys.size() == values.size(), "Expected equal size of lists, got...
public class class_name { @Beta public static <K, V> Map<K, V> zip(List<K> keys, List<V> values) { checkArgument(keys != null, "Expected non-null keys"); checkArgument(values != null, "Expected non-null values"); checkArgument(keys.size() == values.size(), "Expected equal size of lists, got...
public class class_name { public void marshall(CurrentMetricData currentMetricData, ProtocolMarshaller protocolMarshaller) { if (currentMetricData == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(c...
public class class_name { public void marshall(CurrentMetricData currentMetricData, ProtocolMarshaller protocolMarshaller) { if (currentMetricData == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(c...
public class class_name { public SDVariable[] getInputVariablesForFunction(DifferentialFunction function) { val inputs = getInputsForFunction(function); if (inputs == null) { throw new ND4JIllegalStateException("No inputs found for function " + function); } val vars = new S...
public class class_name { public SDVariable[] getInputVariablesForFunction(DifferentialFunction function) { val inputs = getInputsForFunction(function); if (inputs == null) { throw new ND4JIllegalStateException("No inputs found for function " + function); } val vars = new S...
public class class_name { public boolean removeWatcher(Listener watcher) { if (watcher == null) { throw new IllegalArgumentException("Null watcher removed"); } synchronized (mutex) { AtomicBoolean removed = new AtomicBoolean(removeFromListeners(watchers, watcher)); ...
public class class_name { public boolean removeWatcher(Listener watcher) { if (watcher == null) { throw new IllegalArgumentException("Null watcher removed"); } synchronized (mutex) { AtomicBoolean removed = new AtomicBoolean(removeFromListeners(watchers, watcher)); ...
public class class_name { private void cleanProperties(Map<String, String> props) { if (props != null) { props.remove(StorageProvider.PROPERTIES_CONTENT_MD5); props.remove(StorageProvider.PROPERTIES_CONTENT_CHECKSUM); props.remove(StorageProvider.PROPERTIES_CONTENT_MODIFIED)...
public class class_name { private void cleanProperties(Map<String, String> props) { if (props != null) { props.remove(StorageProvider.PROPERTIES_CONTENT_MD5); // depends on control dependency: [if], data = [none] props.remove(StorageProvider.PROPERTIES_CONTENT_CHECKSUM); // depends on c...
public class class_name { public double setCount(F first, S second, double value) { Counter<S> counter = maps.get(first); if (counter == null) { counter = new Counter<S>(); maps.put(first, counter); } return counter.setCount(second, value); } }
public class class_name { public double setCount(F first, S second, double value) { Counter<S> counter = maps.get(first); if (counter == null) { counter = new Counter<S>(); // depends on control dependency: [if], data = [none] maps.put(first, counter); // depends on control depe...