code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private final Connection getConnectionUsingDriver(String userN, String password) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnectionUsingDriver", Ada...
public class class_name { private final Connection getConnectionUsingDriver(String userN, String password) throws ResourceException { final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(this, tc, "getConnectionUsingDriver", Ada...
public class class_name { public static CryptonitGenericOrder adaptOrder( String orderId, CryptonitOrderStatusResponse cryptonitOrderStatusResponse) { CryptonitOrderTransaction[] cryptonitTransactions = cryptonitOrderStatusResponse.getTransactions(); CurrencyPair currencyPair = null; Date da...
public class class_name { public static CryptonitGenericOrder adaptOrder( String orderId, CryptonitOrderStatusResponse cryptonitOrderStatusResponse) { CryptonitOrderTransaction[] cryptonitTransactions = cryptonitOrderStatusResponse.getTransactions(); CurrencyPair currencyPair = null; Date da...
public class class_name { public static final SupportFragment shadow(Object fragment, IckleSupportManager.Builder supportManagerBuilder) { boolean hasIllegalArguments = false; StringBuilder errorContext = new StringBuilder(); if(fragment == null) { errorContext .append("Either an instance of ") ...
public class class_name { public static final SupportFragment shadow(Object fragment, IckleSupportManager.Builder supportManagerBuilder) { boolean hasIllegalArguments = false; StringBuilder errorContext = new StringBuilder(); if(fragment == null) { errorContext .append("Either an instance of ") ...
public class class_name { public String getStrippedSubstring() { // TODO: detect Java <6 and make sure we only return the substring? // With java 7, String.substring will arraycopy the characters. int sstart = start, send = end; while(sstart < send) { char c = input.charAt(sstart); if(c != ...
public class class_name { public String getStrippedSubstring() { // TODO: detect Java <6 and make sure we only return the substring? // With java 7, String.substring will arraycopy the characters. int sstart = start, send = end; while(sstart < send) { char c = input.charAt(sstart); if(c != ...
public class class_name { public void setInitialSequence(int[] sequence) { if(models != null){ for(int i = 0; i < models.length; i++) models[i].setInitialSequence(sequence); return; } model1.setInitialSequence(sequence); model2.setInitialSequence(sequence); } }
public class class_name { public void setInitialSequence(int[] sequence) { if(models != null){ for(int i = 0; i < models.length; i++) models[i].setInitialSequence(sequence); return; // depends on control dependency: [if], data = [none] } model1.setInitialSequence(sequence); m...
public class class_name { private Future<?> flushDataFrom(List<CommitLogSegment> segments, boolean force) { if (segments.isEmpty()) return Futures.immediateFuture(null); final ReplayPosition maxReplayPosition = segments.get(segments.size() - 1).getContext(); // a map of CfId ->...
public class class_name { private Future<?> flushDataFrom(List<CommitLogSegment> segments, boolean force) { if (segments.isEmpty()) return Futures.immediateFuture(null); final ReplayPosition maxReplayPosition = segments.get(segments.size() - 1).getContext(); // a map of CfId ->...
public class class_name { public java.util.List<java.util.Date> getTimestamps() { if (timestamps == null) { timestamps = new com.amazonaws.internal.SdkInternalList<java.util.Date>(); } return timestamps; } }
public class class_name { public java.util.List<java.util.Date> getTimestamps() { if (timestamps == null) { timestamps = new com.amazonaws.internal.SdkInternalList<java.util.Date>(); // depends on control dependency: [if], data = [none] } return timestamps; } }
public class class_name { public void setDirectoryUser(String userName, String password){ this.authData = generateDirectoryAuthData(userName, password); if(getStatus().isConnected()){ ErrorCode ec = sendConnectProtocol(this.getConnectTimeOut()); if(ErrorCode.SESSION_EXPIRED.equa...
public class class_name { public void setDirectoryUser(String userName, String password){ this.authData = generateDirectoryAuthData(userName, password); if(getStatus().isConnected()){ ErrorCode ec = sendConnectProtocol(this.getConnectTimeOut()); if(ErrorCode.SESSION_EXPIRED.equa...
public class class_name { public static String getVariantKey(Map<String, String> curVariants, Set<String> variantTypes) { String variantKey = ""; if (curVariants != null && variantTypes != null) { Map<String, String> tempVariants = new TreeMap<>(curVariants); StringBuilder variantKeyBuf = new StringBuilder...
public class class_name { public static String getVariantKey(Map<String, String> curVariants, Set<String> variantTypes) { String variantKey = ""; if (curVariants != null && variantTypes != null) { Map<String, String> tempVariants = new TreeMap<>(curVariants); StringBuilder variantKeyBuf = new StringBuilder...
public class class_name { public int nextNode() { if (m_foundLast) return DTM.NULL; int next; m_lastFetched = next = (DTM.NULL == m_lastFetched) ? m_context : DTM.NULL; // m_lastFetched = next; if (DTM.NULL != next) { ...
public class class_name { public int nextNode() { if (m_foundLast) return DTM.NULL; int next; m_lastFetched = next = (DTM.NULL == m_lastFetched) ? m_context : DTM.NULL; // m_lastFetched = next; if (DTM.NULL != next) { ...
public class class_name { private void record(long offset) { if (config.recorder == null || offset == 0) { return; } String data = format(Locale.ENGLISH, "{\"size\":%d,\"offset\":%d, \"modify_time\":%d, \"contexts\":[%s]}", totalSize, offset, modifyTime, StringUtils....
public class class_name { private void record(long offset) { if (config.recorder == null || offset == 0) { return; // depends on control dependency: [if], data = [none] } String data = format(Locale.ENGLISH, "{\"size\":%d,\"offset\":%d, \"modify_time\":%d, \"contexts\":[%s]}", ...
public class class_name { public int getIdentifier() { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass , "getIdentifier" ); trace.exit(this, cclass , "getIdenti...
public class class_name { public int getIdentifier() { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) { trace.entry(this, cclass , "getIdentifier" ); // depends on control dependency: [if], data = [none] trace...
public class class_name { public void addRosterEntry(RosterEntry rosterEntry) { // Obtain a String[] from the roster entry groups name List<String> groupNamesList = new ArrayList<>(); String[] groupNames; for (RosterGroup group : rosterEntry.getGroups()) { groupNamesList.add...
public class class_name { public void addRosterEntry(RosterEntry rosterEntry) { // Obtain a String[] from the roster entry groups name List<String> groupNamesList = new ArrayList<>(); String[] groupNames; for (RosterGroup group : rosterEntry.getGroups()) { groupNamesList.add...
public class class_name { static public String allow(String x, String allowChars, char replaceChar) { boolean ok = true; for (int pos = 0; pos < x.length(); pos++) { char c = x.charAt(pos); if (!(Character.isLetterOrDigit(c) || (0 <= allowChars.indexOf(c)))) { ok = false; brea...
public class class_name { static public String allow(String x, String allowChars, char replaceChar) { boolean ok = true; for (int pos = 0; pos < x.length(); pos++) { char c = x.charAt(pos); if (!(Character.isLetterOrDigit(c) || (0 <= allowChars.indexOf(c)))) { ok = false; // depends o...
public class class_name { private void plantCookie(HttpServletRequest request, HttpServletResponse response) { String xId = CookieUtils.getCookieValue(request, LoginConstant.XONE_COOKIE_NAME_STRING); // 没有Cookie 则生成一个随机的Cookie if (xId == null) { String cookieString = TokenUtil.ge...
public class class_name { private void plantCookie(HttpServletRequest request, HttpServletResponse response) { String xId = CookieUtils.getCookieValue(request, LoginConstant.XONE_COOKIE_NAME_STRING); // 没有Cookie 则生成一个随机的Cookie if (xId == null) { String cookieString = TokenUtil.ge...
public class class_name { public void writeMethodInterface(String strProtection, String strMethodName, String strReturns, String strParams, String strThrows, String strDescription, String strCodeBody) { if ((strProtection == null) || (strProtection.length() == 0)) strProtection = "public"; ...
public class class_name { public void writeMethodInterface(String strProtection, String strMethodName, String strReturns, String strParams, String strThrows, String strDescription, String strCodeBody) { if ((strProtection == null) || (strProtection.length() == 0)) strProtection = "public"; ...
public class class_name { protected void traverseMap(Deque<JsonObject<String, Object>> stack, JsonObject<String, Object> jsonObj) { // Convert @keys to a Collection of Java objects. convertMapToKeysItems(jsonObj); final Object[] keys = (Object[]) jsonObj.get("@keys"); final Object[]...
public class class_name { protected void traverseMap(Deque<JsonObject<String, Object>> stack, JsonObject<String, Object> jsonObj) { // Convert @keys to a Collection of Java objects. convertMapToKeysItems(jsonObj); final Object[] keys = (Object[]) jsonObj.get("@keys"); final Object[]...
public class class_name { public static void assertFalse(boolean condition, String message) { if (imp != null && condition) { imp.assertFailed(message); } } }
public class class_name { public static void assertFalse(boolean condition, String message) { if (imp != null && condition) { imp.assertFailed(message); // depends on control dependency: [if], data = [none] } } }
public class class_name { public void setComment(String comment) { this.comment = comment; if (!Strings.isEmpty(comment)) { this.name = MessageFormat.format("{0} [{1}]", getClass().getName(), comment); //$NON-NLS-1$ } else { this.name = getClass().getName(); } } }
public class class_name { public void setComment(String comment) { this.comment = comment; if (!Strings.isEmpty(comment)) { this.name = MessageFormat.format("{0} [{1}]", getClass().getName(), comment); //$NON-NLS-1$ // depends on control dependency: [if], data = [none] } else { this.name = getClass().getNa...
public class class_name { public void visit( DependencyNode node, boolean collecting ) { if ( collecting ) { dependencies.add( node.getArtifact() ); } if ( matchesTarget( node.getArtifact() ) ) { collecting = true; log.debug( "Found targe...
public class class_name { public void visit( DependencyNode node, boolean collecting ) { if ( collecting ) { dependencies.add( node.getArtifact() ); // depends on control dependency: [if], data = [none] } if ( matchesTarget( node.getArtifact() ) ) { ...
public class class_name { protected PlanNode createCanonicalPlan( QueryContext context, SetQuery query ) { // Process the left and right parts of the query ... PlanNode left = createPlan(context, query.getLeft()); PlanNode right = createPlan(context, ...
public class class_name { protected PlanNode createCanonicalPlan( QueryContext context, SetQuery query ) { // Process the left and right parts of the query ... PlanNode left = createPlan(context, query.getLeft()); PlanNode right = createPlan(context, ...
public class class_name { @Override public final IEntityFileReporter lazyGet( final Map<String, Object> pAddParam, final String pBeanName) throws Exception { IEntityFileReporter proc = this.reportersMap.get(pBeanName); if (proc == null) { // locking: synchronized (this) { ...
public class class_name { @Override public final IEntityFileReporter lazyGet( final Map<String, Object> pAddParam, final String pBeanName) throws Exception { IEntityFileReporter proc = this.reportersMap.get(pBeanName); if (proc == null) { // locking: synchronized (this) { ...
public class class_name { public java.util.List<AccountModification> getAccountModifications() { if (accountModifications == null) { accountModifications = new com.amazonaws.internal.SdkInternalList<AccountModification>(); } return accountModifications; } }
public class class_name { public java.util.List<AccountModification> getAccountModifications() { if (accountModifications == null) { accountModifications = new com.amazonaws.internal.SdkInternalList<AccountModification>(); // depends on control dependency: [if], data = [none] } retu...
public class class_name { private ConsoleReaderWrapper initConsole() { ConsoleReaderWrapper consoleReaderWrapper = new ConsoleReaderWrapper(); consoleReaderWrapper.print(""); consoleReaderWrapper.print(question); consoleReaderWrapper.setCompleters(completers); if (history.isPres...
public class class_name { private ConsoleReaderWrapper initConsole() { ConsoleReaderWrapper consoleReaderWrapper = new ConsoleReaderWrapper(); consoleReaderWrapper.print(""); consoleReaderWrapper.print(question); consoleReaderWrapper.setCompleters(completers); if (history.isPres...
public class class_name { public EList<Triplet> getCS() { if (cs == null) { cs = new EObjectContainmentEList.Resolving<Triplet>(Triplet.class, this, AfplibPackage.PTX__CS); } return cs; } }
public class class_name { public EList<Triplet> getCS() { if (cs == null) { cs = new EObjectContainmentEList.Resolving<Triplet>(Triplet.class, this, AfplibPackage.PTX__CS); // depends on control dependency: [if], data = [none] } return cs; } }
public class class_name { public int executeTask(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, final ServerUpdateTask task) { try { return execute(listener, task.getServerIdentity(), task.getOperation()); } catch (OperationFailedException e) { ...
public class class_name { public int executeTask(final TransactionalProtocolClient.TransactionalOperationListener<ServerOperation> listener, final ServerUpdateTask task) { try { return execute(listener, task.getServerIdentity(), task.getOperation()); // depends on control dependency: [try], data = ...
public class class_name { public <T extends Extension> T getExtension(Class<T> clazz) { if (clazz != null) { Extension extension = extensionsMap.get(clazz); if (extension != null) { return clazz.cast(extension); } } return null; } ...
public class class_name { public <T extends Extension> T getExtension(Class<T> clazz) { if (clazz != null) { Extension extension = extensionsMap.get(clazz); if (extension != null) { return clazz.cast(extension); // depends on control dependency: [if], data = [(exten...
public class class_name { public Map<String, String> getLanguageNames() { Map<String, String> languageNames = new HashMap<String, String>(); // For each language key/resource pair for (Map.Entry<String, Resource> entry : resources.entrySet()) { // Get language key and resource ...
public class class_name { public Map<String, String> getLanguageNames() { Map<String, String> languageNames = new HashMap<String, String>(); // For each language key/resource pair for (Map.Entry<String, Resource> entry : resources.entrySet()) { // Get language key and resource ...
public class class_name { public static List<String> getWords(int count, boolean startLorem) { LinkedList<String> wordList = new LinkedList<String>(); if (startLorem) { if (count > COMMON_WORDS.length) { wordList.addAll(Arrays.asList(COMMON_WORDS)); } else { ...
public class class_name { public static List<String> getWords(int count, boolean startLorem) { LinkedList<String> wordList = new LinkedList<String>(); if (startLorem) { if (count > COMMON_WORDS.length) { wordList.addAll(Arrays.asList(COMMON_WORDS)); // depends on control de...
public class class_name { public LookUpStrategy determineLookUpStrategy(Object object) { Class<?> objectClass = object.getClass(); return decisionCache.computeIfAbsent(objectClass, key -> { if (object.getClass().isEnum()) { return new ImmutableLookUpStrategy(); }...
public class class_name { public LookUpStrategy determineLookUpStrategy(Object object) { Class<?> objectClass = object.getClass(); return decisionCache.computeIfAbsent(objectClass, key -> { if (object.getClass().isEnum()) { return new ImmutableLookUpStrategy(); }...
public class class_name { private void executeWffBMTask(final byte[] message) throws UnsupportedEncodingException { final List<NameValue> nameValues = WffBinaryMessageUtil.VERSION_1 .parse(message); final NameValue task = nameValues.get(0); final byte taskValue = t...
public class class_name { private void executeWffBMTask(final byte[] message) throws UnsupportedEncodingException { final List<NameValue> nameValues = WffBinaryMessageUtil.VERSION_1 .parse(message); final NameValue task = nameValues.get(0); final byte taskValue = t...
public class class_name { protected void processIdent( DetailAST aAST ) { final int parentType = aAST.getParent().getType(); if (((parentType != TokenTypes.DOT) && (parentType != TokenTypes.METHOD_DEF)) || ((parentType == TokenTypes.DOT) && (aAST.getNextSibling() != null))) { re...
public class class_name { protected void processIdent( DetailAST aAST ) { final int parentType = aAST.getParent().getType(); if (((parentType != TokenTypes.DOT) && (parentType != TokenTypes.METHOD_DEF)) || ((parentType == TokenTypes.DOT) && (aAST.getNextSibling() != null))) { re...
public class class_name { public boolean printData(PrintWriter out, int iPrintOptions) { boolean bFieldsFound = false; int iNumCols = this.getSFieldCount(); for (int iIndex = 0; iIndex < iNumCols; iIndex++) { ScreenField sField = this.getSField(iIndex); boole...
public class class_name { public boolean printData(PrintWriter out, int iPrintOptions) { boolean bFieldsFound = false; int iNumCols = this.getSFieldCount(); for (int iIndex = 0; iIndex < iNumCols; iIndex++) { ScreenField sField = this.getSField(iIndex); boole...
public class class_name { @Override public final AnalyzedSentence disambiguate(AnalyzedSentence input) { lazyInit(); AnalyzedTokenReadings[] anTokens = input.getTokens(); AnalyzedTokenReadings[] output = anTokens; for (int i = 0; i < anTokens.length; i++) { String tok = output[i].getToken();...
public class class_name { @Override public final AnalyzedSentence disambiguate(AnalyzedSentence input) { lazyInit(); AnalyzedTokenReadings[] anTokens = input.getTokens(); AnalyzedTokenReadings[] output = anTokens; for (int i = 0; i < anTokens.length; i++) { String tok = output[i].getToken();...
public class class_name { private TypeRef resultType() { Type[] parameters = _method.getGenericParameterTypes(); for (Type parameter : parameters) { TypeRef type = TypeRef.of(parameter); if (Result.class.equals(type.rawClass())) { TypeRef resultTypeRef = type.param(0); return r...
public class class_name { private TypeRef resultType() { Type[] parameters = _method.getGenericParameterTypes(); for (Type parameter : parameters) { TypeRef type = TypeRef.of(parameter); if (Result.class.equals(type.rawClass())) { TypeRef resultTypeRef = type.param(0); return r...
public class class_name { protected void scanEntry(final ClassPathEntry classPathEntry) { if (!acceptEntry(classPathEntry.name())) { return; } try { onEntry(classPathEntry); } catch (Exception ex) { throw new FindFileException("Scan entry error: " + classPathEntry, ex); } } }
public class class_name { protected void scanEntry(final ClassPathEntry classPathEntry) { if (!acceptEntry(classPathEntry.name())) { return; // depends on control dependency: [if], data = [none] } try { onEntry(classPathEntry); // depends on control dependency: [try], data = [none] } catch (Exception ex)...
public class class_name { public DoubleVector buildVector(BufferedReader document, DoubleVector documentVector) { // Tokenize and determine what words exist in the document, along with // the requested meta information, such as a term frequency. Map<String, Integer...
public class class_name { public DoubleVector buildVector(BufferedReader document, DoubleVector documentVector) { // Tokenize and determine what words exist in the document, along with // the requested meta information, such as a term frequency. Map<String, Integer...
public class class_name { public static DirLock takeOwnershipIfStale(FileSystem fs, Path dirToLock, int lockTimeoutSec) { Path dirLockFile = getDirLockFile(dirToLock); long now = System.currentTimeMillis(); long expiryTime = now - (lockTimeoutSec*1000); try { long modTime = fs.getFileStatus(di...
public class class_name { public static DirLock takeOwnershipIfStale(FileSystem fs, Path dirToLock, int lockTimeoutSec) { Path dirLockFile = getDirLockFile(dirToLock); long now = System.currentTimeMillis(); long expiryTime = now - (lockTimeoutSec*1000); try { long modTime = fs.getFileStatus(di...
public class class_name { public byte[] decrypt(final String encodedJSON) { byte[] result = null; if (encodedJSON == null) throw new OSecurityException("OSymmetricKey.decrypt(String) encodedJSON is null"); try { byte[] decoded = convertFromBase64(encodedJSON); if (decoded == null) ...
public class class_name { public byte[] decrypt(final String encodedJSON) { byte[] result = null; if (encodedJSON == null) throw new OSecurityException("OSymmetricKey.decrypt(String) encodedJSON is null"); try { byte[] decoded = convertFromBase64(encodedJSON); if (decoded == null) ...
public class class_name { public static void copyStream( StreamMonitor monitor, URL sourceURL, int expected, InputStream source, OutputStream destination, boolean closeStreams ) throws IOException, NullArgumentException { NullArgumentException.validateNotNull(...
public class class_name { public static void copyStream( StreamMonitor monitor, URL sourceURL, int expected, InputStream source, OutputStream destination, boolean closeStreams ) throws IOException, NullArgumentException { NullArgumentException.validateNotNull(...
public class class_name { public static Node findNodeByName(Document doc, String pathExpression) { final StringTokenizer tok = new StringTokenizer(pathExpression, "."); final int numToks = tok.countTokens(); NodeList elements; if (numToks == 1) { elements = doc.getElementsBy...
public class class_name { public static Node findNodeByName(Document doc, String pathExpression) { final StringTokenizer tok = new StringTokenizer(pathExpression, "."); final int numToks = tok.countTokens(); NodeList elements; if (numToks == 1) { elements = doc.getElementsBy...
public class class_name { private static String encode(String str, boolean fullUri) { byte[] utf8buf = null; StringBuilder sb = null; for (int k = 0, length = str.length(); k != length; ++k) { char C = str.charAt(k); if (encodeUnescaped(C, fullUri)) { if...
public class class_name { private static String encode(String str, boolean fullUri) { byte[] utf8buf = null; StringBuilder sb = null; for (int k = 0, length = str.length(); k != length; ++k) { char C = str.charAt(k); if (encodeUnescaped(C, fullUri)) { if...
public class class_name { @Override public void setVisible(boolean visible) { if (polygon != null) { polygon.setVisible(visible); } for (Marker marker : markers) { marker.setVisible(visible); } for (PolygonHoleMarkers hole : holes) { hole....
public class class_name { @Override public void setVisible(boolean visible) { if (polygon != null) { polygon.setVisible(visible); // depends on control dependency: [if], data = [none] } for (Marker marker : markers) { marker.setVisible(visible); // depends on control...
public class class_name { public static Collection<RDFNode> getListItemsOrEmpty(RDFNode node) { ImmutableList.Builder<RDFNode> items = ImmutableList.builder(); if (isList(node)) { RDFList rdfList = node.as(RDFList.class); rdfList.iterator().forEachRemaining(items::add); ...
public class class_name { public static Collection<RDFNode> getListItemsOrEmpty(RDFNode node) { ImmutableList.Builder<RDFNode> items = ImmutableList.builder(); if (isList(node)) { RDFList rdfList = node.as(RDFList.class); rdfList.iterator().forEachRemaining(items::add); // depe...
public class class_name { @Deprecated public static void permute(String source, boolean skipZeros, Set<String> output) { // TODO: optimize //if (PROGRESS) System.out.println("Permute: " + source); // optimization: // if zero or one character, just return a set with it // we...
public class class_name { @Deprecated public static void permute(String source, boolean skipZeros, Set<String> output) { // TODO: optimize //if (PROGRESS) System.out.println("Permute: " + source); // optimization: // if zero or one character, just return a set with it // we...
public class class_name { public static File print(final UIGrid _uiGrid) { File ret = null; final String clazzName = Configuration.getAttribute(ConfigAttribute.GRIDPRINTESJP); try { UIGrid.LOG.debug("Print method executed for {}", _uiGrid); final Class<?> clazz = Cl...
public class class_name { public static File print(final UIGrid _uiGrid) { File ret = null; final String clazzName = Configuration.getAttribute(ConfigAttribute.GRIDPRINTESJP); try { UIGrid.LOG.debug("Print method executed for {}", _uiGrid); // depends on control dependency: [try...
public class class_name { private String getParameterName(AnnotatedParameter<?> parameter) { try { Method method = Method.class.getMethod("getParameters"); Object[] parameters = (Object[]) method.invoke(parameter.getDeclaringCallable().getJavaMember()); Object param = parame...
public class class_name { private String getParameterName(AnnotatedParameter<?> parameter) { try { Method method = Method.class.getMethod("getParameters"); Object[] parameters = (Object[]) method.invoke(parameter.getDeclaringCallable().getJavaMember()); Object param = parame...
public class class_name { @Override protected void defineWidgets() { List selectOptions = getModulesFromServer(); if (selectOptions.isEmpty()) { // no import modules available, display message addWidget( new CmsWidgetDialogParameter( thi...
public class class_name { @Override protected void defineWidgets() { List selectOptions = getModulesFromServer(); if (selectOptions.isEmpty()) { // no import modules available, display message addWidget( new CmsWidgetDialogParameter( thi...
public class class_name { @Override public void evaluate(BinarySolution solution) { int counterOnes; int counterZeroes; counterOnes = 0; counterZeroes = 0; BitSet bitset = solution.getVariableValue(0) ; for (int i = 0; i < bitset.length(); i++) { if (bitset.get(i)) { counte...
public class class_name { @Override public void evaluate(BinarySolution solution) { int counterOnes; int counterZeroes; counterOnes = 0; counterZeroes = 0; BitSet bitset = solution.getVariableValue(0) ; for (int i = 0; i < bitset.length(); i++) { if (bitset.get(i)) { counte...
public class class_name { public static EncodedElement getStreamInfo(StreamConfiguration sc, int minFrameSize, int maxFrameSize, long samplesInStream, byte[] md5Hash) { int bytes = getByteSize(); EncodedElement ele = new EncodedElement(bytes, 0); int encodedBitsPerSample = sc.getBitsPerSample()-1; ...
public class class_name { public static EncodedElement getStreamInfo(StreamConfiguration sc, int minFrameSize, int maxFrameSize, long samplesInStream, byte[] md5Hash) { int bytes = getByteSize(); EncodedElement ele = new EncodedElement(bytes, 0); int encodedBitsPerSample = sc.getBitsPerSample()-1; ...
public class class_name { public void processFile(File zipFile, File destDir) throws IOException { if (!destDir.exists()) { throw new IOException("Destionation directory '" + destDir + "' does not exists, or can't be read!"); } ZipFile f = null; try { f = new Zip...
public class class_name { public void processFile(File zipFile, File destDir) throws IOException { if (!destDir.exists()) { throw new IOException("Destionation directory '" + destDir + "' does not exists, or can't be read!"); } ZipFile f = null; try { f = new Zip...
public class class_name { public static <T> DataSet<Tuple2<Long, T>> zipWithUniqueId (DataSet <T> input) { return input.mapPartition(new RichMapPartitionFunction<T, Tuple2<Long, T>>() { long maxBitSize = getBitSize(Long.MAX_VALUE); long shifter = 0; long start = 0; long taskId = 0; long label = 0; ...
public class class_name { public static <T> DataSet<Tuple2<Long, T>> zipWithUniqueId (DataSet <T> input) { return input.mapPartition(new RichMapPartitionFunction<T, Tuple2<Long, T>>() { long maxBitSize = getBitSize(Long.MAX_VALUE); long shifter = 0; long start = 0; long taskId = 0; long label = 0; ...
public class class_name { private void trimNode(final Node node) { NodeList children = node.getChildNodes(); for (int i = children.getLength() - 1; i >= 0; i--) { trimChild(node, children.item(i)); } } }
public class class_name { private void trimNode(final Node node) { NodeList children = node.getChildNodes(); for (int i = children.getLength() - 1; i >= 0; i--) { trimChild(node, children.item(i)); // depends on control dependency: [for], data = [i] } } }
public class class_name { public StateVertex crawlIndex() { LOG.debug("Setting up vertex of the index page"); if (basicAuthUrl != null) { browser.goToUrl(basicAuthUrl); } browser.goToUrl(url); // Run url first load plugin to clear the application state plugins.runOnUrlFirstLoadPlugins(context); pl...
public class class_name { public StateVertex crawlIndex() { LOG.debug("Setting up vertex of the index page"); if (basicAuthUrl != null) { browser.goToUrl(basicAuthUrl); // depends on control dependency: [if], data = [(basicAuthUrl] } browser.goToUrl(url); // Run url first load plugin to clear the appli...
public class class_name { public void init(String ownName, Iterable<String> options, Iterable<String> classNames, Iterable<? extends JavaFileObject> files) { this.ownName = ownName; this.classNames = toSet(classNames); this.fileObjects = toSet(files); ...
public class class_name { public void init(String ownName, Iterable<String> options, Iterable<String> classNames, Iterable<? extends JavaFileObject> files) { this.ownName = ownName; this.classNames = toSet(classNames); this.fileObjects = toSet(files); ...
public class class_name { protected void undo() { try { boolean recursive = Boolean.parseBoolean(m_modifySubresourcesField.getValue().toString()); boolean undoMove = m_undoMoveField.getValue().booleanValue(); CmsObject cms = m_context.getCms(); Set<CmsUUID> upda...
public class class_name { protected void undo() { try { boolean recursive = Boolean.parseBoolean(m_modifySubresourcesField.getValue().toString()); boolean undoMove = m_undoMoveField.getValue().booleanValue(); CmsObject cms = m_context.getCms(); Set<CmsUUID> upda...
public class class_name { public Period plusDays(long daysToAdd) { if (daysToAdd == 0) { return this; } return create(years, months, Math.toIntExact(Math.addExact(days, daysToAdd))); } }
public class class_name { public Period plusDays(long daysToAdd) { if (daysToAdd == 0) { return this; // depends on control dependency: [if], data = [none] } return create(years, months, Math.toIntExact(Math.addExact(days, daysToAdd))); } }
public class class_name { public String getTopLines(int num) { stopCollecting(); CountMap<String> ls = new CountMap<String>(lines); StringBuilder buff = new StringBuilder(); buff.append("Top lines over ").append(time).append(" ms (").append(pauseTime).append(" ms paused), with ") .append(total).append...
public class class_name { public String getTopLines(int num) { stopCollecting(); CountMap<String> ls = new CountMap<String>(lines); StringBuilder buff = new StringBuilder(); buff.append("Top lines over ").append(time).append(" ms (").append(pauseTime).append(" ms paused), with ") .append(total).append...
public class class_name { public void afterSuite(String suiteName, String ... testGroups) { testSuiteListener.onFinish(); if (!CollectionUtils.isEmpty(afterSuite)) { for (SequenceAfterSuite sequenceAfterSuite : afterSuite) { try { if (sequenceAfterSuite....
public class class_name { public void afterSuite(String suiteName, String ... testGroups) { testSuiteListener.onFinish(); if (!CollectionUtils.isEmpty(afterSuite)) { for (SequenceAfterSuite sequenceAfterSuite : afterSuite) { try { if (sequenceAfterSuite....
public class class_name { Map<K, V> variableSnapshot(boolean ascending, int limit, Function<V, V> transformer) { evictionLock.lock(); try { maintenance(/* ignored */ null); return timerWheel().snapshot(ascending, limit, transformer); } finally { evictionLock.unlock(); } } }
public class class_name { Map<K, V> variableSnapshot(boolean ascending, int limit, Function<V, V> transformer) { evictionLock.lock(); try { maintenance(/* ignored */ null); // depends on control dependency: [try], data = [none] return timerWheel().snapshot(ascending, limit, transformer); // depends...
public class class_name { void handleLeaveEvent(LeaveEvent event) { final AsteriskQueueImpl queue = getInternalQueueByName(event.getQueue()); final AsteriskChannelImpl channel = channelManager.getChannelImplByName(event.getChannel()); if (queue == null) { logger.error("...
public class class_name { void handleLeaveEvent(LeaveEvent event) { final AsteriskQueueImpl queue = getInternalQueueByName(event.getQueue()); final AsteriskChannelImpl channel = channelManager.getChannelImplByName(event.getChannel()); if (queue == null) { logger.error("...
public class class_name { public static Expression transformInlineConstants(final Expression exp, final ClassNode attrType) { if (exp instanceof PropertyExpression) { PropertyExpression pe = (PropertyExpression) exp; if (pe.getObjectExpression() instanceof ClassExpression) { ...
public class class_name { public static Expression transformInlineConstants(final Expression exp, final ClassNode attrType) { if (exp instanceof PropertyExpression) { PropertyExpression pe = (PropertyExpression) exp; if (pe.getObjectExpression() instanceof ClassExpression) { ...
public class class_name { @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @SchedulerSupport(SchedulerSupport.NONE) public final T blockingFirst() { BlockingFirstSubscriber<T> s = new BlockingFirstSubscriber<T>(); subscribe(s); T v = s.blockingGet(); if ...
public class class_name { @CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @SchedulerSupport(SchedulerSupport.NONE) public final T blockingFirst() { BlockingFirstSubscriber<T> s = new BlockingFirstSubscriber<T>(); subscribe(s); T v = s.blockingGet(); if ...
public class class_name { private byte[] getRequestStatsJson(String requestId) { RequestStats requestStats = cache.get(requestId); if (null != requestStats) { StringBuilder sb = new StringBuilder(); sb. append("{"). append("\"timeToFirstBy...
public class class_name { private byte[] getRequestStatsJson(String requestId) { RequestStats requestStats = cache.get(requestId); if (null != requestStats) { StringBuilder sb = new StringBuilder(); sb. append("{"). append("\"timeToFirstBy...
public class class_name { public MasterSlaveServersConfig setMasterAddress(String masterAddress) { if (masterAddress != null) { this.masterAddress = URIBuilder.create(masterAddress); } return this; } }
public class class_name { public MasterSlaveServersConfig setMasterAddress(String masterAddress) { if (masterAddress != null) { this.masterAddress = URIBuilder.create(masterAddress); // depends on control dependency: [if], data = [(masterAddress] } return this; } }
public class class_name { @Override public PollResult startPoll(PollController conn) { if (! _lifecycle.isActive()) { log.warning(this + " select disabled"); return PollResult.CLOSED; } else if (_selectMax <= _connectionCount.get()) { log.warning(this + " keepalive overflow "...
public class class_name { @Override public PollResult startPoll(PollController conn) { if (! _lifecycle.isActive()) { log.warning(this + " select disabled"); // depends on control dependency: [if], data = [none] return PollResult.CLOSED; // depends on control dependency: [if], data = [none...
public class class_name { @UiThread int getChildPosition(int flatPosition) { if (flatPosition == 0) { return 0; } int childCount = 0; for (int i = 0; i < flatPosition; i++) { ExpandableWrapper<P, C> listItem = mFlatItemList.get(i); if (listItem.i...
public class class_name { @UiThread int getChildPosition(int flatPosition) { if (flatPosition == 0) { return 0; // depends on control dependency: [if], data = [none] } int childCount = 0; for (int i = 0; i < flatPosition; i++) { ExpandableWrapper<P, C> listI...
public class class_name { private void estimateNextExecution() { synchronized (TIMER_LOCK) { if (fixedDelay) { scheduledExecutionTime = period + System.currentTimeMillis(); } else { if (firstExecution == 0) { // save timestamp of first execution firstExecution = scheduledExecutionTime;...
public class class_name { private void estimateNextExecution() { synchronized (TIMER_LOCK) { if (fixedDelay) { scheduledExecutionTime = period + System.currentTimeMillis(); // depends on control dependency: [if], data = [none] } else { if (firstExecution == 0) { // save timestamp of first ex...
public class class_name { public void marshall(ParametersFilter parametersFilter, ProtocolMarshaller protocolMarshaller) { if (parametersFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(para...
public class class_name { public void marshall(ParametersFilter parametersFilter, ProtocolMarshaller protocolMarshaller) { if (parametersFilter == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(para...
public class class_name { private long getChunkSize() throws IOException { final int st = this.state; switch (st) { case CHUNK_CRLF: this.buffer.clear(); final int bytesRead1 = this.in.readLine(this.buffer); if (bytesRead1 == -1) { throw new M...
public class class_name { private long getChunkSize() throws IOException { final int st = this.state; switch (st) { case CHUNK_CRLF: this.buffer.clear(); final int bytesRead1 = this.in.readLine(this.buffer); if (bytesRead1 == -1) { throw new M...
public class class_name { public static TreeSet<Integer> getUsableLocalPorts(int numRequested, int minPort, int maxPort) { final TreeSet<Integer> availablePorts = new TreeSet<>(); int attemptCount = 0; while ((++attemptCount <= numRequested + 100) && availablePorts.size() < numRequested) { availablePorts....
public class class_name { public static TreeSet<Integer> getUsableLocalPorts(int numRequested, int minPort, int maxPort) { final TreeSet<Integer> availablePorts = new TreeSet<>(); int attemptCount = 0; while ((++attemptCount <= numRequested + 100) && availablePorts.size() < numRequested) { availablePorts....
public class class_name { void toStringParamValueOnly(final StringBuilder buf) { if (value == null) { buf.append("null"); } else { final Object paramVal = value.get(); final Class<?> valClass = paramVal.getClass(); if (valClass.isArray()) { ...
public class class_name { void toStringParamValueOnly(final StringBuilder buf) { if (value == null) { buf.append("null"); // depends on control dependency: [if], data = [none] } else { final Object paramVal = value.get(); final Class<?> valClass = paramVal.getClass()...
public class class_name { public static Map<String, Object> getAttributeMap(ServletRequest req) { if (req instanceof CmsFlexRequest) { return ((CmsFlexRequest)req).getAttributeMap(); } Map<String, Object> attrs = new HashMap<String, Object>(); Enumeration<String> atrrEnum =...
public class class_name { public static Map<String, Object> getAttributeMap(ServletRequest req) { if (req instanceof CmsFlexRequest) { return ((CmsFlexRequest)req).getAttributeMap(); // depends on control dependency: [if], data = [none] } Map<String, Object> attrs = new HashMap<Str...
public class class_name { public Blacklist generateBlacklist(Model model) { ChemicalNameNormalizer normalizer = new ChemicalNameNormalizer(model); SIFSearcher searcher = new SIFSearcher(new Fetcher(normalizer), SIFEnum.USED_TO_PRODUCE); Set<SIFInteraction> sifs = searcher.searchSIF(model); // read interacti...
public class class_name { public Blacklist generateBlacklist(Model model) { ChemicalNameNormalizer normalizer = new ChemicalNameNormalizer(model); SIFSearcher searcher = new SIFSearcher(new Fetcher(normalizer), SIFEnum.USED_TO_PRODUCE); Set<SIFInteraction> sifs = searcher.searchSIF(model); // read interacti...
public class class_name { private Set<AllocationID> computeAllPriorAllocationIds() { HashSet<AllocationID> allPreviousAllocationIds = new HashSet<>(getNumberOfExecutionJobVertices()); for (ExecutionVertex executionVertex : getAllExecutionVertices()) { AllocationID latestPriorAllocation = executionVertex.getLate...
public class class_name { private Set<AllocationID> computeAllPriorAllocationIds() { HashSet<AllocationID> allPreviousAllocationIds = new HashSet<>(getNumberOfExecutionJobVertices()); for (ExecutionVertex executionVertex : getAllExecutionVertices()) { AllocationID latestPriorAllocation = executionVertex.getLate...
public class class_name { public synchronized static void setLogFile(File logfile) { // Add a file logger that will use the compiler's customized // formatter. This formatter provides a terse representation of the // logging information. try { if (logfile != null) { String absolutePath = logfile.getAbs...
public class class_name { public synchronized static void setLogFile(File logfile) { // Add a file logger that will use the compiler's customized // formatter. This formatter provides a terse representation of the // logging information. try { if (logfile != null) { String absolutePath = logfile.getAbs...
public class class_name { public void releaseAndTryRemoveAll() throws Exception { Collection<String> children = getAllPaths(); Exception exception = null; for (String child : children) { try { releaseAndTryRemove('/' + child); } catch (Exception e) { exception = ExceptionUtils.firstOrSuppressed(e...
public class class_name { public void releaseAndTryRemoveAll() throws Exception { Collection<String> children = getAllPaths(); Exception exception = null; for (String child : children) { try { releaseAndTryRemove('/' + child); // depends on control dependency: [try], data = [none] } catch (Exception ...
public class class_name { public OutlierResult run(Database database, Relation<N> spatial, Relation<O> attributes) { if(LOG.isDebugging()) { LOG.debug("Dimensionality: " + RelationUtil.dimensionality(attributes)); } final NeighborSetPredicate npred = getNeighborSetPredicateFactory().instantiate(datab...
public class class_name { public OutlierResult run(Database database, Relation<N> spatial, Relation<O> attributes) { if(LOG.isDebugging()) { LOG.debug("Dimensionality: " + RelationUtil.dimensionality(attributes)); // depends on control dependency: [if], data = [none] } final NeighborSetPredicate npre...
public class class_name { public void shape(char[] text, int start, int count, Range context) { checkParams(text, start, count); if (context == null) { throw new NullPointerException("context is null"); } if (isContextual()) { if (rangeSet != null) { ...
public class class_name { public void shape(char[] text, int start, int count, Range context) { checkParams(text, start, count); if (context == null) { throw new NullPointerException("context is null"); } if (isContextual()) { if (rangeSet != null) { ...
public class class_name { public static String durationToFormattedString(final Duration duration) { if (duration == null) { return null; } return LocalTime.ofNanoOfDay(duration.toNanos()).format(DateTimeFormatter.ofPattern(DURATION_FORMAT)); } }
public class class_name { public static String durationToFormattedString(final Duration duration) { if (duration == null) { return null; // depends on control dependency: [if], data = [none] } return LocalTime.ofNanoOfDay(duration.toNanos()).format(DateTimeFormatter.ofPattern(DURAT...
public class class_name { protected Color parseHtml(String value) { if (value.length() != 7) { throw new ConversionException(USAGE); } int colorValue = 0; try { colorValue = Integer.parseInt(value.substring(1), 16); return new Color(colorValue); ...
public class class_name { protected Color parseHtml(String value) { if (value.length() != 7) { throw new ConversionException(USAGE); } int colorValue = 0; try { colorValue = Integer.parseInt(value.substring(1), 16); // depends on control dependency: [try], d...
public class class_name { private void release() { try { Method release = BoundObjectTable.Table.class.getDeclaredMethod("release", String.class); release.setAccessible(true); release.invoke(boundObjectTable, boundId); } catch (Exception x) { LOG.log(Leve...
public class class_name { private void release() { try { Method release = BoundObjectTable.Table.class.getDeclaredMethod("release", String.class); release.setAccessible(true); // depends on control dependency: [try], data = [none] release.invoke(boundObjectTable, boundId); /...
public class class_name { public static ScopedRequest getScopedRequest( HttpServletRequest realRequest, String overrideURI, ServletContext servletContext, Object scopeKey, boolean seeOuterRequestAttributes ) { ...
public class class_name { public static ScopedRequest getScopedRequest( HttpServletRequest realRequest, String overrideURI, ServletContext servletContext, Object scopeKey, boolean seeOuterRequestAttributes ) { ...
public class class_name { public void buildPackageHeader(XMLNode node, Content summariesTree) { String parsedPackageName = parsePackageName(currentPackage.name()); if (! printedPackageHeaders.contains(parsedPackageName)) { writer.addPackageName(currentPackage, parsePackageNa...
public class class_name { public void buildPackageHeader(XMLNode node, Content summariesTree) { String parsedPackageName = parsePackageName(currentPackage.name()); if (! printedPackageHeaders.contains(parsedPackageName)) { writer.addPackageName(currentPackage, parsePackageNa...
public class class_name { public static Callable<Void> getUploadFileCallable( final StageInfo stage, final String srcFilePath, final FileMetadata metadata, final SnowflakeStorageClient client, final SFSession connection, final String command, final InputStream inputStream, ...
public class class_name { public static Callable<Void> getUploadFileCallable( final StageInfo stage, final String srcFilePath, final FileMetadata metadata, final SnowflakeStorageClient client, final SFSession connection, final String command, final InputStream inputStream, ...
public class class_name { public boolean canRemoveRepository(String name) throws RepositoryException { RepositoryImpl repo = (RepositoryImpl)getRepository(name); try { RepositoryEntry repconfig = config.getRepositoryConfiguration(name); for (WorkspaceEntry wsEntry : repconfig.ge...
public class class_name { public boolean canRemoveRepository(String name) throws RepositoryException { RepositoryImpl repo = (RepositoryImpl)getRepository(name); try { RepositoryEntry repconfig = config.getRepositoryConfiguration(name); for (WorkspaceEntry wsEntry : repconfig.ge...
public class class_name { public ThreadPoolBuilder withName(String name) { // ensure we've got a spot to put the thread id. if (!name.contains("%d")) { name = name + "-%d"; } nameMap.putIfAbsent(name, new AtomicInteger(0)); int id = nameMap.get(name).incrementAndGet(...
public class class_name { public ThreadPoolBuilder withName(String name) { // ensure we've got a spot to put the thread id. if (!name.contains("%d")) { name = name + "-%d"; // depends on control dependency: [if], data = [none] } nameMap.putIfAbsent(name, new AtomicInteger(0)...
public class class_name { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } Accordion accordion = (Accordion) component; ResponseWriter rw = context.getResponseWriter(); String clientId = accordion.getClientId(); ...
public class class_name { @Override public void encodeBegin(FacesContext context, UIComponent component) throws IOException { if (!component.isRendered()) { return; } Accordion accordion = (Accordion) component; ResponseWriter rw = context.getResponseWriter(); String clientId = accordion.getClientId(); ...
public class class_name { public static synchronized void printPortsInUse(VoltLogger log) { try { /* * Don't do DNS resolution, don't use names for port numbers */ ProcessBuilder pb = new ProcessBuilder("lsof", "-i", "-n", "-P"); pb.redirectErrorStr...
public class class_name { public static synchronized void printPortsInUse(VoltLogger log) { try { /* * Don't do DNS resolution, don't use names for port numbers */ ProcessBuilder pb = new ProcessBuilder("lsof", "-i", "-n", "-P"); pb.redirectErrorStr...
public class class_name { public static char[] addToCharArray(char[] a, char value) { if(a == null || a.length == 0) { return new char[] {value}; } char[] array = new char[a.length + 1]; array[a.length] = value; return array; } }
public class class_name { public static char[] addToCharArray(char[] a, char value) { if(a == null || a.length == 0) { return new char[] {value}; // depends on control dependency: [if], data = [none] } char[] array = new char[a.length + 1]; array[a.length] = value; return array; } }
public class class_name { public void cleanWatchers(String name){ synchronized(watchers){ if(watchers.containsKey(name)){ watchers.get(name).clear(); } } } }
public class class_name { public void cleanWatchers(String name){ synchronized(watchers){ if(watchers.containsKey(name)){ watchers.get(name).clear(); // depends on control dependency: [if], data = [none] } } } }
public class class_name { public void marshall(BuiltinIntentMetadata builtinIntentMetadata, ProtocolMarshaller protocolMarshaller) { if (builtinIntentMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public void marshall(BuiltinIntentMetadata builtinIntentMetadata, ProtocolMarshaller protocolMarshaller) { if (builtinIntentMetadata == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
public class class_name { public Map<String, String> getSubmissionType(ProposalDevelopmentDocumentContract pdDoc) { Map<String, String> submissionInfo = new HashMap<>(); S2sOpportunityContract opportunity = pdDoc.getDevelopmentProposal().getS2sOpportunity(); if (opportunity != null) { ...
public class class_name { public Map<String, String> getSubmissionType(ProposalDevelopmentDocumentContract pdDoc) { Map<String, String> submissionInfo = new HashMap<>(); S2sOpportunityContract opportunity = pdDoc.getDevelopmentProposal().getS2sOpportunity(); if (opportunity != null) { ...
public class class_name { private static boolean isRequestRewriteNeeded(HttpMessage message) { int statusCode = message.getResponseHeader().getStatusCode(); String method = message.getRequestHeader().getMethod(); if (statusCode == 301 || statusCode == 302) { return HttpRequestHe...
public class class_name { private static boolean isRequestRewriteNeeded(HttpMessage message) { int statusCode = message.getResponseHeader().getStatusCode(); String method = message.getRequestHeader().getMethod(); if (statusCode == 301 || statusCode == 302) { return HttpRequestHe...
public class class_name { public void removeQuery(String id) { int index = getElementPosition(id); QueryControllerEntity element = entities.get(index); if (element instanceof QueryControllerQuery) { entities.remove(index); fireElementRemoved(element); return; } else { QueryControllerGroup group = ...
public class class_name { public void removeQuery(String id) { int index = getElementPosition(id); QueryControllerEntity element = entities.get(index); if (element instanceof QueryControllerQuery) { entities.remove(index); // depends on control dependency: [if], data = [none] fireElementRemoved(element); ...
public class class_name { public String getScript(ClientBehaviorContext behaviorContext) { if (behaviorContext == null) { throw new NullPointerException("behaviorContext"); } ClientBehaviorRenderer renderer = getRenderer(behaviorContext.getFacesContext()); ...
public class class_name { public String getScript(ClientBehaviorContext behaviorContext) { if (behaviorContext == null) { throw new NullPointerException("behaviorContext"); } ClientBehaviorRenderer renderer = getRenderer(behaviorContext.getFacesContext()); ...
public class class_name { public static int[] validate2(int[] data, boolean allowSz1, String paramName){ if(data == null) { return null; } if(allowSz1){ Preconditions.checkArgument(data.length == 1 || data.length == 2, "Need either 1 or 2 %s values,...
public class class_name { public static int[] validate2(int[] data, boolean allowSz1, String paramName){ if(data == null) { return null; // depends on control dependency: [if], data = [none] } if(allowSz1){ Preconditions.checkArgument(data.length == 1 || data.length ==...
public class class_name { public static double getRuntimeDoubleProperty(String property, String defaultValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeDoubleProperty", new Object[] {property, defaultValue}); // Note that we parse the default va...
public class class_name { public static double getRuntimeDoubleProperty(String property, String defaultValue) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getRuntimeDoubleProperty", new Object[] {property, defaultValue}); // Note that we parse the default va...
public class class_name { @Override public ContainerResponse filter(ContainerRequest cres, ContainerResponse response) { initLazily(servletRequest); String requestOrigin = cres.getHeaderValue("Origin"); if (requestOrigin != null) { // is this is a cors request (ajax request that targets a d...
public class class_name { @Override public ContainerResponse filter(ContainerRequest cres, ContainerResponse response) { initLazily(servletRequest); String requestOrigin = cres.getHeaderValue("Origin"); if (requestOrigin != null) { // is this is a cors request (ajax request that targets a d...
public class class_name { public static Long convertVarNumberToLong(RLPElement rpe) { Long result=0L; if (rpe.getRawData()!=null) { if (rpe.getRawData().length==0) { result=0L; } else if (rpe.getRawData().length<2) { result=(long) EthereumUtil.convertToByte(rpe); } else if (rpe.getRawData().len...
public class class_name { public static Long convertVarNumberToLong(RLPElement rpe) { Long result=0L; if (rpe.getRawData()!=null) { if (rpe.getRawData().length==0) { result=0L; // depends on control dependency: [if], data = [none] } else if (rpe.getRawData().length<2) { result=(long) EthereumUtil....