code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { private File getFileFromConfigDirectory(String file, File def) { File f = new File(configDirectory, file); if (configDirectory != null && f.exists()) { return f; } if (def != null && def.exists()) { return def; } return n...
public class class_name { private File getFileFromConfigDirectory(String file, File def) { File f = new File(configDirectory, file); if (configDirectory != null && f.exists()) { return f; // depends on control dependency: [if], data = [none] } if (def != null && def.exists()...
public class class_name { public static String chomp(final String str) { if (N.isNullOrEmpty(str)) { return str; } if (str.length() == 1) { final char ch = str.charAt(0); if (ch == N.CHAR_CR || ch == N.CHAR_LF) { return N.EMPTY_STRING...
public class class_name { public static String chomp(final String str) { if (N.isNullOrEmpty(str)) { return str; // depends on control dependency: [if], data = [none] } if (str.length() == 1) { final char ch = str.charAt(0); if (ch == N.CHAR_CR || ch ...
public class class_name { public String getMarshaledName() { String serializedName = getSerializedName(); if (!serializedName.isEmpty()) { return serializedName; } return names.raw; } }
public class class_name { public String getMarshaledName() { String serializedName = getSerializedName(); if (!serializedName.isEmpty()) { return serializedName; // depends on control dependency: [if], data = [none] } return names.raw; } }
public class class_name { public void applyTo(final PeekViewActivity activity, final View base) { final GestureDetectorCompat detector = new GestureDetectorCompat(activity, new GestureListener(activity, base, this)); base.setOnTouchListener(new View.OnTouchListener() { @Ove...
public class class_name { public void applyTo(final PeekViewActivity activity, final View base) { final GestureDetectorCompat detector = new GestureDetectorCompat(activity, new GestureListener(activity, base, this)); base.setOnTouchListener(new View.OnTouchListener() { @Ove...
public class class_name { public static String getElasticSearchAddDocument(Map<String, String> values) { StringBuilder builder = new StringBuilder(); builder.append("{"); boolean first = true; for (Map.Entry<String, String> pair : values.entrySet()) { if (!first) { builder.append(","); ...
public class class_name { public static String getElasticSearchAddDocument(Map<String, String> values) { StringBuilder builder = new StringBuilder(); builder.append("{"); boolean first = true; for (Map.Entry<String, String> pair : values.entrySet()) { if (!first) { builder.append(","); //...
public class class_name { public final void synpred172_Java_fragment() throws RecognitionException { Token y=null; ParserRuleReturnScope z =null; // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:787:6: (y= 'else' ( 'if' parExpression )? z= statement ) // src/main/resources/org/drools/com...
public class class_name { public final void synpred172_Java_fragment() throws RecognitionException { Token y=null; ParserRuleReturnScope z =null; // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:787:6: (y= 'else' ( 'if' parExpression )? z= statement ) // src/main/resources/org/drools/com...
public class class_name { private HashMap<String, String> getMapFromJson(String customJson) { HashMap<String, String> command = new HashMap<>(); if (customJson != null) { try { JSONObject jsonObject = new JSONObject(customJson); Iterator iterator = jsonObject...
public class class_name { private HashMap<String, String> getMapFromJson(String customJson) { HashMap<String, String> command = new HashMap<>(); if (customJson != null) { try { JSONObject jsonObject = new JSONObject(customJson); Iterator iterator = jsonObject...
public class class_name { protected void checkDOMVersion(Hashtable h) { if (null == h) h = new Hashtable(); final String DOM_LEVEL2_CLASS = "org.w3c.dom.Document"; final String DOM_LEVEL2_METHOD = "createElementNS"; // String, String final String DOM_LEVEL2WD_CLASS = "org.w3c.dom.Node"; ...
public class class_name { protected void checkDOMVersion(Hashtable h) { if (null == h) h = new Hashtable(); final String DOM_LEVEL2_CLASS = "org.w3c.dom.Document"; final String DOM_LEVEL2_METHOD = "createElementNS"; // String, String final String DOM_LEVEL2WD_CLASS = "org.w3c.dom.Node"; ...
public class class_name { public void setupSubMenus(String strMenu) { Record recMenu = this.getMainRecord(); try { String strCommandNoCommas = Utility.replace(strMenu, ",", null); // Get any commas out boolean bIsNumeric = Utility.isNumeric(strCommandNoCommas); ...
public class class_name { public void setupSubMenus(String strMenu) { Record recMenu = this.getMainRecord(); try { String strCommandNoCommas = Utility.replace(strMenu, ",", null); // Get any commas out boolean bIsNumeric = Utility.isNumeric(strCommandNoCommas); ...
public class class_name { private void readTableBlock(int startIndex, int blockLength) { for (int index = startIndex; index < (startIndex + blockLength - 11); index++) { if (matchPattern(TABLE_BLOCK_PATTERNS, index)) { int offset = index + 7; int nameLength = Fa...
public class class_name { private void readTableBlock(int startIndex, int blockLength) { for (int index = startIndex; index < (startIndex + blockLength - 11); index++) { if (matchPattern(TABLE_BLOCK_PATTERNS, index)) { int offset = index + 7; int nameLength = Fa...
public class class_name { @Override public RandomVariable[] getFactorLoading(double time, int component, RandomVariable[] realizationAtTimeIndex) { int timeIndex = timeDiscretization.getTimeIndex(time); if(timeIndex < 0) { timeIndex = -timeIndex - 2; } return getFactorLoading(timeIndex, component, realizat...
public class class_name { @Override public RandomVariable[] getFactorLoading(double time, int component, RandomVariable[] realizationAtTimeIndex) { int timeIndex = timeDiscretization.getTimeIndex(time); if(timeIndex < 0) { timeIndex = -timeIndex - 2; // depends on control dependency: [if], data = [none] } ...
public class class_name { @Override public HttpResponse execute(InvocationContext context, HttpRequestBase request) { HttpResponse response = null; try { response = fetchResponse(context, request); } catch(RequestExecutionException ree) { executionHandler.onError(context, ree); } i...
public class class_name { @Override public HttpResponse execute(InvocationContext context, HttpRequestBase request) { HttpResponse response = null; try { response = fetchResponse(context, request); // depends on control dependency: [try], data = [none] } catch(RequestExecutionException ree) { ...
public class class_name { public Set<String> getDetailPageTypes() { if (m_detailPageTypes != null) { return m_detailPageTypes; } Set<String> result = new HashSet<String>(); for (CmsADEConfigDataInternal configData : m_siteConfigurationsByPath.values()) { List<Cm...
public class class_name { public Set<String> getDetailPageTypes() { if (m_detailPageTypes != null) { return m_detailPageTypes; // depends on control dependency: [if], data = [none] } Set<String> result = new HashSet<String>(); for (CmsADEConfigDataInternal configData : m_si...
public class class_name { final public void BracketSuffix() throws ParseException { /*@bgen(jjtree) BracketSuffix */ AstBracketSuffix jjtn000 = new AstBracketSuffix(JJTBRACKETSUFFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LB...
public class class_name { final public void BracketSuffix() throws ParseException { /*@bgen(jjtree) BracketSuffix */ AstBracketSuffix jjtn000 = new AstBracketSuffix(JJTBRACKETSUFFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { jj_consume_token(LB...
public class class_name { public void marshall(ContainerDefinition containerDefinition, ProtocolMarshaller protocolMarshaller) { if (containerDefinition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public void marshall(ContainerDefinition containerDefinition, ProtocolMarshaller protocolMarshaller) { if (containerDefinition == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.mars...
public class class_name { public float rNonsep(float[] y, int A) { float tmp, denominator, numerator; tmp = (float) Math.ceil(A / (float) 2.0); denominator = y.length * tmp * ((float) 1.0 + (float) 2.0 * A - (float) 2.0 * tmp) / A; numerator = (float) 0.0; for (int j = 0; j < y.length; j++) ...
public class class_name { public float rNonsep(float[] y, int A) { float tmp, denominator, numerator; tmp = (float) Math.ceil(A / (float) 2.0); denominator = y.length * tmp * ((float) 1.0 + (float) 2.0 * A - (float) 2.0 * tmp) / A; numerator = (float) 0.0; for (int j = 0; j < y.length; j++) ...
public class class_name { public static void addPropertyBoolean( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, boolean value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public static void addPropertyBoolean( CmsCmisTypeManager typeManager, PropertiesImpl props, String typeId, Set<String> filter, String id, boolean value) { if (!checkAddProperty(typeManager, props, typeId, filter, id)) { ...
public class class_name { public final void tryMakeWhereEnum(final StringBuffer pSbWhere, final IRequestData pRequestData, final Class<?> pEntityClass, final String pFldNm, final Map<String, Object> pFilterMap, final Set<String> pFilterAppearance) throws Exception { String nmRnd = pRequ...
public class class_name { public final void tryMakeWhereEnum(final StringBuffer pSbWhere, final IRequestData pRequestData, final Class<?> pEntityClass, final String pFldNm, final Map<String, Object> pFilterMap, final Set<String> pFilterAppearance) throws Exception { String nmRnd = pRequ...
public class class_name { private void auditEventSafAuthDetails(Object[] methodParams) { // Getting object array which have audit fields Object[] varargs = (Object[]) methodParams[1]; // Get audit fields and convert them to respective type int safReturnCode = (Integer) varargs[0]; int racfReturnCode = (Int...
public class class_name { private void auditEventSafAuthDetails(Object[] methodParams) { // Getting object array which have audit fields Object[] varargs = (Object[]) methodParams[1]; // Get audit fields and convert them to respective type int safReturnCode = (Integer) varargs[0]; int racfReturnCode = (Int...
public class class_name { public void setMargin(@Nullable String marginString) { if (!TextUtils.isEmpty(marginString)) { // remove leading and ending '[' ']' try { marginString = marginString.trim().substring(1, marginString.length() - 1); String marginSt...
public class class_name { public void setMargin(@Nullable String marginString) { if (!TextUtils.isEmpty(marginString)) { // remove leading and ending '[' ']' try { marginString = marginString.trim().substring(1, marginString.length() - 1); // depends on control dependenc...
public class class_name { public void setBackgroundPaint(final Paint PAINT) { if (null == backgroundPaint) { _backgroundPaint = PAINT; fireUpdateEvent(REDRAW_EVENT); } else { backgroundPaint.set(PAINT); } } }
public class class_name { public void setBackgroundPaint(final Paint PAINT) { if (null == backgroundPaint) { _backgroundPaint = PAINT; // depends on control dependency: [if], data = [none] fireUpdateEvent(REDRAW_EVENT); // depends on control dependency: [if], data = [none] } els...
public class class_name { void registerColumnFamily(String columnFamilyName, ColumnFamilyHandle handle) { MetricGroup group = metricGroup.addGroup(columnFamilyName); for (String property : options.getProperties()) { RocksDBNativeMetricView gauge = new RocksDBNativeMetricView(handle, property); group.gauge(p...
public class class_name { void registerColumnFamily(String columnFamilyName, ColumnFamilyHandle handle) { MetricGroup group = metricGroup.addGroup(columnFamilyName); for (String property : options.getProperties()) { RocksDBNativeMetricView gauge = new RocksDBNativeMetricView(handle, property); group.gauge(p...
public class class_name { public <T> T asOrElse(Class<T> clazz, @NonNull Supplier<T> supplier) { if (isNull()) { return supplier.get(); } T value = as(clazz); if (value == null) { return supplier.get(); } return value; } }
public class class_name { public <T> T asOrElse(Class<T> clazz, @NonNull Supplier<T> supplier) { if (isNull()) { return supplier.get(); // depends on control dependency: [if], data = [none] } T value = as(clazz); if (value == null) { return supplier.get(); // depends on contro...
public class class_name { private static void updateDpmProperties(Context context, String dpmBaseURL, List<String> labels, boolean enableSch) { if(context.skipUpdatingDpmProperties) { return; } try { FileBasedConfigurationBuilder<PropertiesConfiguration> builder = new FileBasedConfig...
public class class_name { private static void updateDpmProperties(Context context, String dpmBaseURL, List<String> labels, boolean enableSch) { if(context.skipUpdatingDpmProperties) { return; // depends on control dependency: [if], data = [none] } try { FileBasedConfigurationBuilder<Properties...
public class class_name { public Set getMembers() throws DAVException { // Query the DAV:resource-type property to depth one. Collection querySet = new Vector(); querySet.add(DAV_RESOURCE_TYPE); URLTable resourceTable = getProperties(querySet, IContext.DEPTH_ONE); // Create a ...
public class class_name { public Set getMembers() throws DAVException { // Query the DAV:resource-type property to depth one. Collection querySet = new Vector(); querySet.add(DAV_RESOURCE_TYPE); URLTable resourceTable = getProperties(querySet, IContext.DEPTH_ONE); // Create a ...
public class class_name { public void marshall(PhaseContext phaseContext, ProtocolMarshaller protocolMarshaller) { if (phaseContext == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(phaseContext.get...
public class class_name { public void marshall(PhaseContext phaseContext, ProtocolMarshaller protocolMarshaller) { if (phaseContext == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(phaseContext.get...
public class class_name { @Override public void showCache(Formatter format) { ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size()); for (CacheElement elem : cache.values()) { synchronized (elem) { allFiles.addAll(elem.list); } } Collections.sort(allFi...
public class class_name { @Override public void showCache(Formatter format) { ArrayList<CacheElement.CacheFile> allFiles = new ArrayList<>(files.size()); for (CacheElement elem : cache.values()) { synchronized (elem) { // depends on control dependency: [for], data = [elem] allFiles.addAll(...
public class class_name { public Set<E> getSubSet(int k) { int from = -1; //TODO: very bad. Bounds should be memorized for (int x = 0; x < values.size(); x++) { int cIdx = index.get(values.get(x).id()); if (cIdx == k && from == -1) { from = x; ...
public class class_name { public Set<E> getSubSet(int k) { int from = -1; //TODO: very bad. Bounds should be memorized for (int x = 0; x < values.size(); x++) { int cIdx = index.get(values.get(x).id()); if (cIdx == k && from == -1) { from = x; // depends ...
public class class_name { protected StyleSheet parseAndImport(Object source, NetworkProcessor network, String encoding, SourceType type, StyleSheet sheet, Preparator preparator, URL base, List<MediaQuery> media) throws CSSException, IOException { CSSParser pa...
public class class_name { protected StyleSheet parseAndImport(Object source, NetworkProcessor network, String encoding, SourceType type, StyleSheet sheet, Preparator preparator, URL base, List<MediaQuery> media) throws CSSException, IOException { CSSParser pa...
public class class_name { @Override public void merge(MinMaxHolder another){ BigInteger anotherMin = toBigInteger(another.getMin()); if (anotherMin != null){ evaluate(anotherMin); } BigInteger anotherMax = toBigInteger(another.getMax()); if (anotherMax != null){ evaluate(anotherMax); } } }
public class class_name { @Override public void merge(MinMaxHolder another){ BigInteger anotherMin = toBigInteger(another.getMin()); if (anotherMin != null){ evaluate(anotherMin); // depends on control dependency: [if], data = [(anotherMin] } BigInteger anotherMax = toBigInteger(another.getMax()); if (an...
public class class_name { public void hookScannerHook(Scanner scan) { Iterator<ExtensionHook> iter = extensionHooks.values().iterator(); while (iter.hasNext()) { ExtensionHook hook = iter.next(); List<ScannerHook> scannerHookList = hook.getScannerHookList(); f...
public class class_name { public void hookScannerHook(Scanner scan) { Iterator<ExtensionHook> iter = extensionHooks.values().iterator(); while (iter.hasNext()) { ExtensionHook hook = iter.next(); List<ScannerHook> scannerHookList = hook.getScannerHookList(); f...
public class class_name { @SuppressWarnings("rawtypes") public Set sunion(Object... keys) { Jedis jedis = getJedis(); try { Set<byte[]> data = jedis.sunion(keysToBytesArray(keys)); Set<Object> result = new HashSet<Object>(); valueSetFromBytesSet(data, result); return result; } finally {cl...
public class class_name { @SuppressWarnings("rawtypes") public Set sunion(Object... keys) { Jedis jedis = getJedis(); try { Set<byte[]> data = jedis.sunion(keysToBytesArray(keys)); Set<Object> result = new HashSet<Object>(); valueSetFromBytesSet(data, result); // depends on control dependency: [tr...
public class class_name { private boolean baseUsedInClass(Node n){ for (Node curr = n; curr != null; curr = curr.getParent()){ if (curr.isClassMembers()) { return true; } } return false; } }
public class class_name { private boolean baseUsedInClass(Node n){ for (Node curr = n; curr != null; curr = curr.getParent()){ if (curr.isClassMembers()) { return true; // depends on control dependency: [if], data = [none] } } return false; } }
public class class_name { public TCPPort createEndPoint() throws ChannelException { TCPPort tcpPort = super.createEndPoint(); try { this.asyncChannelGroup = findOrCreateACG(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "AioTCP...
public class class_name { public TCPPort createEndPoint() throws ChannelException { TCPPort tcpPort = super.createEndPoint(); try { this.asyncChannelGroup = findOrCreateACG(); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, "AioTCP...
public class class_name { public EClass getIfcComplexNumber() { if (ifcComplexNumberEClass == null) { ifcComplexNumberEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(934); } return ifcComplexNumberEClass; } }
public class class_name { public EClass getIfcComplexNumber() { if (ifcComplexNumberEClass == null) { ifcComplexNumberEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(934); // depends on control dependency: [if], data = [none] } return ifcComp...
public class class_name { private void removeSpoolFile() throws IOException { if (spoolFile != null) { if (spoolFile instanceof SpoolFile) { (spoolFile).release(this); } if (PrivilegedFileHelper.exists(spoolFile)) { if (!PrivilegedFil...
public class class_name { private void removeSpoolFile() throws IOException { if (spoolFile != null) { if (spoolFile instanceof SpoolFile) { (spoolFile).release(this); } if (PrivilegedFileHelper.exists(spoolFile)) { if (!PrivilegedFil...
public class class_name { public IconType<FacesConfigManagedPropertyType<T>> getOrCreateIcon() { List<Node> nodeList = childNode.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<FacesConfigManagedPropertyType<T>>(this, "icon", childNode, nodeList.get(0)...
public class class_name { public IconType<FacesConfigManagedPropertyType<T>> getOrCreateIcon() { List<Node> nodeList = childNode.get("icon"); if (nodeList != null && nodeList.size() > 0) { return new IconTypeImpl<FacesConfigManagedPropertyType<T>>(this, "icon", childNode, nodeList.get(0)...
public class class_name { public static List<Map<String, Object>> handleWorkBookToMapList(File file) throws ReadExcelException { List<Map<String, Object>> listMap = null; try { Workbook workbook = WorkbookFactory.create(file); listMap = ReadExcelUtils.handleWorkBookToMapList(wor...
public class class_name { public static List<Map<String, Object>> handleWorkBookToMapList(File file) throws ReadExcelException { List<Map<String, Object>> listMap = null; try { Workbook workbook = WorkbookFactory.create(file); listMap = ReadExcelUtils.handleWorkBookToMapList(wor...
public class class_name { public static boolean isLiteralValue(Node n, boolean includeFunctions) { switch (n.getToken()) { case CAST: return isLiteralValue(n.getFirstChild(), includeFunctions); case ARRAYLIT: for (Node child = n.getFirstChild(); child != null; child = child.getNext()) ...
public class class_name { public static boolean isLiteralValue(Node n, boolean includeFunctions) { switch (n.getToken()) { case CAST: return isLiteralValue(n.getFirstChild(), includeFunctions); case ARRAYLIT: for (Node child = n.getFirstChild(); child != null; child = child.getNext()) ...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) public ArrayList<CTInboxMessage> getUnreadInboxMessages(){ ArrayList<CTInboxMessage> inboxMessageArrayList = new ArrayList<>(); synchronized (inboxControllerLock) { if(ctInboxController != null){ Arr...
public class class_name { @SuppressWarnings({"unused", "WeakerAccess"}) public ArrayList<CTInboxMessage> getUnreadInboxMessages(){ ArrayList<CTInboxMessage> inboxMessageArrayList = new ArrayList<>(); synchronized (inboxControllerLock) { if(ctInboxController != null){ Arr...
public class class_name { public void repairSurvivors() { // cancel() and repair() must be synchronized by the caller (the deliver lock, // currently). If cancelled and the last repair message arrives, don't send // out corrections! if (this.m_promotionResult.isCancelled()) { ...
public class class_name { public void repairSurvivors() { // cancel() and repair() must be synchronized by the caller (the deliver lock, // currently). If cancelled and the last repair message arrives, don't send // out corrections! if (this.m_promotionResult.isCancelled()) { ...
public class class_name { public void loadFunctions(CatalogContext catalogContext) { final CatalogMap<Function> catalogFunctions = catalogContext.database.getFunctions(); // Remove obsolete tokens for (UserDefinedFunctionRunner runner : m_udfs.values()) { // The function that the cu...
public class class_name { public void loadFunctions(CatalogContext catalogContext) { final CatalogMap<Function> catalogFunctions = catalogContext.database.getFunctions(); // Remove obsolete tokens for (UserDefinedFunctionRunner runner : m_udfs.values()) { // The function that the cu...
public class class_name { public int getNumberOfFiles() throws IOException { DistributedFileSystem dfs = (DistributedFileSystem)fs; RemoteIterator<LocatedFileStatus> iter = dfs.listLocatedStatus(outputPath); int fn = 0; while (iter.hasNext()) { LocatedFileStatus lfs = iter.next(); ...
public class class_name { public int getNumberOfFiles() throws IOException { DistributedFileSystem dfs = (DistributedFileSystem)fs; RemoteIterator<LocatedFileStatus> iter = dfs.listLocatedStatus(outputPath); int fn = 0; while (iter.hasNext()) { LocatedFileStatus lfs = iter.next(); ...
public class class_name { private static void doStormTranslation(Config heronConfig) { if (heronConfig.containsKey(org.apache.storm.Config.TOPOLOGY_ENABLE_MESSAGE_TIMEOUTS)) { heronConfig.put(org.apache.storm.Config.TOPOLOGY_ENABLE_MESSAGE_TIMEOUTS, heronConfig.get(org.apache.storm.Config.TOPOLOGY_...
public class class_name { private static void doStormTranslation(Config heronConfig) { if (heronConfig.containsKey(org.apache.storm.Config.TOPOLOGY_ENABLE_MESSAGE_TIMEOUTS)) { heronConfig.put(org.apache.storm.Config.TOPOLOGY_ENABLE_MESSAGE_TIMEOUTS, heronConfig.get(org.apache.storm.Config.TOPOLOGY_...
public class class_name { public void marshall(ApprovalResult approvalResult, ProtocolMarshaller protocolMarshaller) { if (approvalResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(approvalRe...
public class class_name { public void marshall(ApprovalResult approvalResult, ProtocolMarshaller protocolMarshaller) { if (approvalResult == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(approvalRe...
public class class_name { public static <T> byte[] serialize(T object) { try { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); objectOutputStream.writeObject(object); return byt...
public class class_name { public static <T> byte[] serialize(T object) { try { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteArrayOutputStream); objectOutputStream.writeObject(object); // depends on co...
public class class_name { public static Consumer<Subscription> subscriberLoop(final FragmentHandler fragmentHandler, final int limit, final AtomicBoolean running, final IdleStrategy idleStrategy, final AtomicBoolean launched) { return (subscription) -> { try { wh...
public class class_name { public static Consumer<Subscription> subscriberLoop(final FragmentHandler fragmentHandler, final int limit, final AtomicBoolean running, final IdleStrategy idleStrategy, final AtomicBoolean launched) { return (subscription) -> { try { wh...
public class class_name { private MQLinkHandler createMQLinkHandler( MQLinkDefinition mqld, VirtualLinkDefinition virtualLinkDefinition, LocalTransaction transaction) throws SIResou...
public class class_name { private MQLinkHandler createMQLinkHandler( MQLinkDefinition mqld, VirtualLinkDefinition virtualLinkDefinition, LocalTransaction transaction) throws SIResou...
public class class_name { public static Atom[] getRepresentativeAtoms(Structure structure) { if (structure.isNmr()) return StructureTools.getRepresentativeAtomArray(structure); else { // Get Atoms of all models List<Atom> atomList = new ArrayList<Atom>(); for (int m = 0; m < structure.nrModels(); m+...
public class class_name { public static Atom[] getRepresentativeAtoms(Structure structure) { if (structure.isNmr()) return StructureTools.getRepresentativeAtomArray(structure); else { // Get Atoms of all models List<Atom> atomList = new ArrayList<Atom>(); for (int m = 0; m < structure.nrModels(); m+...
public class class_name { public static JBossWebMetaData getJBossWebMetaData(final DeploymentUnit unit) { final WarMetaData warMetaData = getOptionalAttachment(unit, WarMetaData.ATTACHMENT_KEY); JBossWebMetaData result = null; if (warMetaData != null) { result = warMetaData.getMerge...
public class class_name { public static JBossWebMetaData getJBossWebMetaData(final DeploymentUnit unit) { final WarMetaData warMetaData = getOptionalAttachment(unit, WarMetaData.ATTACHMENT_KEY); JBossWebMetaData result = null; if (warMetaData != null) { result = warMetaData.getMerge...
public class class_name { public List<Map<String, String>> pipelinePossibleStates(RangeTag action, List<Map<String, String>> possibleStateList) { String variable = action.getName(); BigDecimal from = new BigDecimal(action.getFrom()); ...
public class class_name { public List<Map<String, String>> pipelinePossibleStates(RangeTag action, List<Map<String, String>> possibleStateList) { String variable = action.getName(); BigDecimal from = new BigDecimal(action.getFrom()); ...
public class class_name { private void loadImplementationsInJar(final Test test, final String parent, final String path, final JarInputStream stream) { try { JarEntry entry; while ((entry = stream.getNextJarEntry()) != null) { ...
public class class_name { private void loadImplementationsInJar(final Test test, final String parent, final String path, final JarInputStream stream) { try { JarEntry entry; while ((entry = stream.getNextJarEntry()) != null) { ...
public class class_name { public static String getEntityId(I_CmsXmlContentValue contentValue) { String result = CmsContentDefinition.uuidToEntityId( contentValue.getDocument().getFile().getStructureId(), contentValue.getLocale().toString()); String valuePath = contentValue.getP...
public class class_name { public static String getEntityId(I_CmsXmlContentValue contentValue) { String result = CmsContentDefinition.uuidToEntityId( contentValue.getDocument().getFile().getStructureId(), contentValue.getLocale().toString()); String valuePath = contentValue.getP...
public class class_name { public static boolean isBinaryExpressionType(Expression expression, List<String> tokens) { if (expression instanceof BinaryExpression) { if (tokens.contains(((BinaryExpression) expression).getOperation().getText())) { return true; } ...
public class class_name { public static boolean isBinaryExpressionType(Expression expression, List<String> tokens) { if (expression instanceof BinaryExpression) { if (tokens.contains(((BinaryExpression) expression).getOperation().getText())) { return true; // depends on control ...
public class class_name { private static void startIfNotStarted(String serviceName) { synchronized (queueNames) { if (!queueNames.contains(serviceName)) { //以下是新建一个rabbitmq客户端 try { IMqConsumerClient.singleton.consumeStaticQueue(TransferQueueUtil....
public class class_name { private static void startIfNotStarted(String serviceName) { synchronized (queueNames) { if (!queueNames.contains(serviceName)) { //以下是新建一个rabbitmq客户端 try { IMqConsumerClient.singleton.consumeStaticQueue(TransferQueueUtil....
public class class_name { public static FailoverStrategy.Factory loadFailoverStrategy(Configuration config, @Nullable Logger logger) { final String strategyParam = config.getString(JobManagerOptions.EXECUTION_FAILOVER_STRATEGY); if (StringUtils.isNullOrWhitespaceOnly(strategyParam)) { if (logger != null) { ...
public class class_name { public static FailoverStrategy.Factory loadFailoverStrategy(Configuration config, @Nullable Logger logger) { final String strategyParam = config.getString(JobManagerOptions.EXECUTION_FAILOVER_STRATEGY); if (StringUtils.isNullOrWhitespaceOnly(strategyParam)) { if (logger != null) { ...
public class class_name { protected boolean internalEquals(ValueData another) { if (another instanceof ReferenceValueData) { return ((ReferenceValueData)another).value.equals(value); } return false; } }
public class class_name { protected boolean internalEquals(ValueData another) { if (another instanceof ReferenceValueData) { return ((ReferenceValueData)another).value.equals(value); // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { protected boolean restartPossible() { boolean restart = false; if (!syncConfig.isCleanStart()) { // Determines if the configuration has been changed since the // previous run. If it has, a restart cannot occur. SyncToolConfigParser syncConfi...
public class class_name { protected boolean restartPossible() { boolean restart = false; if (!syncConfig.isCleanStart()) { // Determines if the configuration has been changed since the // previous run. If it has, a restart cannot occur. SyncToolConfigParser syncConfi...
public class class_name { @Override public String getPathInfo() { if (!this.pathInfoComputed) { final String uri = getRequestURI(); final int servletPathLength = getServletPath().length(); if (uri.length() == servletPathLength) { this.pathInfo = null; ...
public class class_name { @Override public String getPathInfo() { if (!this.pathInfoComputed) { final String uri = getRequestURI(); final int servletPathLength = getServletPath().length(); if (uri.length() == servletPathLength) { this.pathInfo = null; // ...
public class class_name { public QueryBuilder withShadowScope(ShadowScope shadowScope){ Validate.argumentIsNotNull(shadowScope); this.shadowScope = shadowScope; if (shadowScope == DEEP_PLUS && maxGapsToFill == 0) { this.maxGapsToFill = DEFAULT_GAPS_TO_FILL_LIMIT; } ...
public class class_name { public QueryBuilder withShadowScope(ShadowScope shadowScope){ Validate.argumentIsNotNull(shadowScope); this.shadowScope = shadowScope; if (shadowScope == DEEP_PLUS && maxGapsToFill == 0) { this.maxGapsToFill = DEFAULT_GAPS_TO_FILL_LIMIT; // depends on contr...
public class class_name { public void auditUpdateNotificationEvent(RFC3881EventOutcomeCodes eventOutcome, String pixMgrIpAddress, String sendingFacility, String sendingApp, String consumerEndpointUri, String receivingFacility, String receivingApp, String hl7MessageControlId, String[] patientIds) { if ...
public class class_name { public void auditUpdateNotificationEvent(RFC3881EventOutcomeCodes eventOutcome, String pixMgrIpAddress, String sendingFacility, String sendingApp, String consumerEndpointUri, String receivingFacility, String receivingApp, String hl7MessageControlId, String[] patientIds) { if ...
public class class_name { protected Parser parser(Key jobKey) { ParserProvider pp = ParserService.INSTANCE.getByInfo(_parse_type); if (pp != null) { return pp.createParser(this, jobKey); } throw new H2OIllegalArgumentException("Unknown file type. Parse cannot be completed.", "Attempte...
public class class_name { protected Parser parser(Key jobKey) { ParserProvider pp = ParserService.INSTANCE.getByInfo(_parse_type); if (pp != null) { return pp.createParser(this, jobKey); // depends on control dependency: [if], data = [none] } throw new H2OIllegalArgumentException("Unknown file t...
public class class_name { public synchronized static void entering(String classname, long fnr) { // int fnr = (int) fnr2; //Here the long value is casted into in to be used as index to the arrays. requesting(classname, (int) fnr);// the #req counter is changed to add one to it. try { if (!evalPP(classname,...
public class class_name { public synchronized static void entering(String classname, long fnr) { // int fnr = (int) fnr2; //Here the long value is casted into in to be used as index to the arrays. requesting(classname, (int) fnr);// the #req counter is changed to add one to it. try { if (!evalPP(classname,...
public class class_name { public void setCloudWatchDashboards(java.util.Collection<CloudWatchDashboard> cloudWatchDashboards) { if (cloudWatchDashboards == null) { this.cloudWatchDashboards = null; return; } this.cloudWatchDashboards = new java.util.ArrayList<CloudWatch...
public class class_name { public void setCloudWatchDashboards(java.util.Collection<CloudWatchDashboard> cloudWatchDashboards) { if (cloudWatchDashboards == null) { this.cloudWatchDashboards = null; // depends on control dependency: [if], data = [none] return; // depends on control depen...
public class class_name { public static boolean tangentLines(Point2D_F64 pt , EllipseRotated_F64 ellipse , Point2D_F64 tangentA , Point2D_F64 tangentB ) { // Derivation: // Compute the tangent at only point along the ellipse by computing dy/dx // x*b^2/(y*a^2) or - x*b^2/(y*a^2) are the possible...
public class class_name { public static boolean tangentLines(Point2D_F64 pt , EllipseRotated_F64 ellipse , Point2D_F64 tangentA , Point2D_F64 tangentB ) { // Derivation: // Compute the tangent at only point along the ellipse by computing dy/dx // x*b^2/(y*a^2) or - x*b^2/(y*a^2) are the possible...
public class class_name { public void marshall(CreateThingRequest createThingRequest, ProtocolMarshaller protocolMarshaller) { if (createThingRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(CreateThingRequest createThingRequest, ProtocolMarshaller protocolMarshaller) { if (createThingRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { protected boolean isResourceChanged(final HttpServletRequest request) { try { final long ifModifiedSince = request.getDateHeader(HttpHeader.IF_MODIFIED_SINCE.toString()); return ifModifiedSince < getHeadersConfigurer().getLastModifiedTimestamp(); } catch (final Exception e...
public class class_name { protected boolean isResourceChanged(final HttpServletRequest request) { try { final long ifModifiedSince = request.getDateHeader(HttpHeader.IF_MODIFIED_SINCE.toString()); return ifModifiedSince < getHeadersConfigurer().getLastModifiedTimestamp(); // depends on control dependen...
public class class_name { public DescribeActiveReceiptRuleSetResult withRules(ReceiptRule... rules) { if (this.rules == null) { setRules(new com.amazonaws.internal.SdkInternalList<ReceiptRule>(rules.length)); } for (ReceiptRule ele : rules) { this.rules.add(ele); ...
public class class_name { public DescribeActiveReceiptRuleSetResult withRules(ReceiptRule... rules) { if (this.rules == null) { setRules(new com.amazonaws.internal.SdkInternalList<ReceiptRule>(rules.length)); // depends on control dependency: [if], data = [none] } for (ReceiptRule e...
public class class_name { @Override public int compareTo(TaskDetails otherTask) { if (otherTask == null) { return -1; } return new CompareToBuilder().append(this.taskKey, otherTask.getTaskKey()) .toComparison(); } }
public class class_name { @Override public int compareTo(TaskDetails otherTask) { if (otherTask == null) { return -1; // depends on control dependency: [if], data = [none] } return new CompareToBuilder().append(this.taskKey, otherTask.getTaskKey()) .toComparison(); } }
public class class_name { public Object nth(int i) { if (i < values.size()) { return values.get(i); } else { return null; } } }
public class class_name { public Object nth(int i) { if (i < values.size()) { return values.get(i); // depends on control dependency: [if], data = [(i] } else { return null; // depends on control dependency: [if], data = [none] } } }
public class class_name { public static boolean isCipherSuiteAvailable(String cipherSuite) { String converted = CipherSuiteConverter.toOpenSsl(cipherSuite, IS_BORINGSSL); if (converted != null) { cipherSuite = converted; } return AVAILABLE_OPENSSL_CIPHER_SUITES.contains(ciph...
public class class_name { public static boolean isCipherSuiteAvailable(String cipherSuite) { String converted = CipherSuiteConverter.toOpenSsl(cipherSuite, IS_BORINGSSL); if (converted != null) { cipherSuite = converted; // depends on control dependency: [if], data = [none] } ...
public class class_name { public boolean hasCache() { if (isCache()) { return true; } if (CommonUtils.isNotEmpty(methods)) { for (MethodConfig methodConfig : methods.values()) { if (CommonUtils.isTrue(methodConfig.getCache())) { return...
public class class_name { public boolean hasCache() { if (isCache()) { return true; // depends on control dependency: [if], data = [none] } if (CommonUtils.isNotEmpty(methods)) { for (MethodConfig methodConfig : methods.values()) { if (CommonUtils.isTrue(...
public class class_name { public static int compare(UUID uuid1, UUID uuid2) { int timeResult = Longs.compare(uuid1.timestamp(), uuid2.timestamp()); if (timeResult != 0) { return timeResult; } // if the time component is identical, break ties using the clockSeqAndNode ...
public class class_name { public static int compare(UUID uuid1, UUID uuid2) { int timeResult = Longs.compare(uuid1.timestamp(), uuid2.timestamp()); if (timeResult != 0) { return timeResult; // depends on control dependency: [if], data = [none] } // if the time component is i...
public class class_name { @Override public EClass getIfcWorkControl() { if (ifcWorkControlEClass == null) { ifcWorkControlEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(771); } return ifcWorkControlEClass; } }
public class class_name { @Override public EClass getIfcWorkControl() { if (ifcWorkControlEClass == null) { ifcWorkControlEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(771); // depends on control dependency: [if], data = [none] } return ifcWor...
public class class_name { @Override public void setAction(final Runnable action) { super.setAction(new Runnable() { @Override public void run() { if (!isRunning) { thread = new Thread(wrappedAction(action), "wunderboss-daemon-thread[" + name + "]"...
public class class_name { @Override public void setAction(final Runnable action) { super.setAction(new Runnable() { @Override public void run() { if (!isRunning) { thread = new Thread(wrappedAction(action), "wunderboss-daemon-thread[" + name + "]"...
public class class_name { private void tick(long tickIntervalMs) { for (int i = 0; i < NUM_AVERAGES; ++i) { stat[i].tick(tickIntervalMs); } } }
public class class_name { private void tick(long tickIntervalMs) { for (int i = 0; i < NUM_AVERAGES; ++i) { stat[i].tick(tickIntervalMs); // depends on control dependency: [for], data = [i] } } }
public class class_name { public StringBuffer process(StringBuffer source) { CharSequence result = process((CharSequence) source); if (result instanceof StringBuffer) { return (StringBuffer) result; } else { return new StringBuffer(result); } } }
public class class_name { public StringBuffer process(StringBuffer source) { CharSequence result = process((CharSequence) source); if (result instanceof StringBuffer) { return (StringBuffer) result; // depends on control dependency: [if], data = [none] } else { return ne...
public class class_name { private void unfoldJoinTrees(List body) { for (int i = 0; i < body.size(); i++) { Function currentAtom = (Function) body.get(i); if (currentAtom.getFunctionSymbol().equals(datalogFactory.getSparqlJoinPredicate())) { unfoldJoinTrees(currentAtom.g...
public class class_name { private void unfoldJoinTrees(List body) { for (int i = 0; i < body.size(); i++) { Function currentAtom = (Function) body.get(i); if (currentAtom.getFunctionSymbol().equals(datalogFactory.getSparqlJoinPredicate())) { unfoldJoinTrees(currentAtom.g...
public class class_name { private List<String> getCurrentEndpointIdentifiers(Protocol protocol) throws SQLException { List<String> endpoints = new ArrayList<>(); try { proxy.lock.lock(); try { // Deleted instance may remain in db for 24 hours so ignoring instances that have had no change ...
public class class_name { private List<String> getCurrentEndpointIdentifiers(Protocol protocol) throws SQLException { List<String> endpoints = new ArrayList<>(); try { proxy.lock.lock(); try { // Deleted instance may remain in db for 24 hours so ignoring instances that have had no change ...
public class class_name { public static OptionHandler parseElement(final Element element, final Properties props, final Class expectedClass) throws Exception { String clazz = subst(element.getAttribute("class"), props); ...
public class class_name { public static OptionHandler parseElement(final Element element, final Properties props, final Class expectedClass) throws Exception { String clazz = subst(element.getAttribute("class"), props); ...
public class class_name { private void prepArticle(Element articleContent) { cleanStyles(articleContent); killBreaks(articleContent); /* Clean out junk from the article content */ clean(articleContent, "form"); clean(articleContent, "object"); clean(articleContent, "h1"...
public class class_name { private void prepArticle(Element articleContent) { cleanStyles(articleContent); killBreaks(articleContent); /* Clean out junk from the article content */ clean(articleContent, "form"); clean(articleContent, "object"); clean(articleContent, "h1"...
public class class_name { public CacheKeyTO getCacheKey(Object target, String methodName, Object[] arguments, String keyExpression, String hfieldExpression, Object result, boolean hasRetVal) { String key = null; String hfield = null; if (null != keyExpression &...
public class class_name { public CacheKeyTO getCacheKey(Object target, String methodName, Object[] arguments, String keyExpression, String hfieldExpression, Object result, boolean hasRetVal) { String key = null; String hfield = null; if (null != keyExpression &...
public class class_name { private static void debug(String header, HttpResponse response) { if (logger.isTraceEnabled()) { logger.trace(header); logger.trace(response.toString()); } } }
public class class_name { private static void debug(String header, HttpResponse response) { if (logger.isTraceEnabled()) { logger.trace(header); // depends on control dependency: [if], data = [none] logger.trace(response.toString()); // depends on control dependency: [if], data = [none] } } }
public class class_name { public Terminal anyTerminal(RandEngine randEngine) { int variable_count = variableSet.size(); int constant_count = constantSet.size(); int r = randEngine.nextInt(variable_count + constant_count); if (r < variable_count) { return (Terminal)variableSet....
public class class_name { public Terminal anyTerminal(RandEngine randEngine) { int variable_count = variableSet.size(); int constant_count = constantSet.size(); int r = randEngine.nextInt(variable_count + constant_count); if (r < variable_count) { return (Terminal)variableSet....
public class class_name { private byte[] pbkdf2(char[] password, byte[] salt) { try { PBEKeySpec spec = new PBEKeySpec(password, salt, PBKDF2_ITERATIONS, HASH_BYTE_SIZE * 8); SecretKeyFactory skf = SecretKeyFactory.getInstance(PBKDF2_ALGORITHM); return skf.generateSecret(spe...
public class class_name { private byte[] pbkdf2(char[] password, byte[] salt) { try { PBEKeySpec spec = new PBEKeySpec(password, salt, PBKDF2_ITERATIONS, HASH_BYTE_SIZE * 8); SecretKeyFactory skf = SecretKeyFactory.getInstance(PBKDF2_ALGORITHM); return skf.generateSecret(spe...
public class class_name { public static String encodeBase64(final byte[] data, final boolean chunked) { if (data != null && data.length > 0) { if (chunked) { return BASE64_CHUNKED_ENCODER.encodeToString(data).trim(); } return BASE64_UNCHUNKED_ENCODER.encodeTo...
public class class_name { public static String encodeBase64(final byte[] data, final boolean chunked) { if (data != null && data.length > 0) { if (chunked) { return BASE64_CHUNKED_ENCODER.encodeToString(data).trim(); // depends on control dependency: [if], data = [none] ...
public class class_name { @Override protected void kNNdistanceAdjustment(MkMaxEntry entry, Map<DBID, KNNList> knnLists) { MkMaxTreeNode<O> node = getNode(entry); double knnDist_node = 0.; if (node.isLeaf()) { for (int i = 0; i < node.getNumEntries(); i++) { MkMaxEntry leafEntry = node.getEn...
public class class_name { @Override protected void kNNdistanceAdjustment(MkMaxEntry entry, Map<DBID, KNNList> knnLists) { MkMaxTreeNode<O> node = getNode(entry); double knnDist_node = 0.; if (node.isLeaf()) { for (int i = 0; i < node.getNumEntries(); i++) { MkMaxEntry leafEntry = node.getEn...
public class class_name { public static String encodeBytesToString(byte bytes[]) { StringBuilder string = new StringBuilder(bytes.length * 2); for (int i = 0; i < bytes.length; i++) { // look up high nibble char string.append(hexChar[(bytes[i] & 0xf0) >>> 4]); // look up low nibble char ...
public class class_name { public static String encodeBytesToString(byte bytes[]) { StringBuilder string = new StringBuilder(bytes.length * 2); for (int i = 0; i < bytes.length; i++) { // look up high nibble char string.append(hexChar[(bytes[i] & 0xf0) >>> 4]); // depends on control dependency:...
public class class_name { @Override public void sawOpcode(int seen) { try { int blockCount = ifBlocks.countBlockEndsAtPC(getPC()); if (blockCount > 1) { activeUnconditional = null; } else if (blockCount == 1) { lookingForResetOp = true; ...
public class class_name { @Override public void sawOpcode(int seen) { try { int blockCount = ifBlocks.countBlockEndsAtPC(getPC()); if (blockCount > 1) { activeUnconditional = null; // depends on control dependency: [if], data = [none] } else if (blockCo...
public class class_name { protected void printError(final Span references[], final Span predictions[], final T referenceSample, final T predictedSample, final String sentence) { final List<Span> falseNegatives = new ArrayList<Span>(); final List<Span> falsePositives = new ArrayList<Span>(); findErro...
public class class_name { protected void printError(final Span references[], final Span predictions[], final T referenceSample, final T predictedSample, final String sentence) { final List<Span> falseNegatives = new ArrayList<Span>(); final List<Span> falsePositives = new ArrayList<Span>(); findErro...
public class class_name { public BackchannelAuthenticationCompleteRequest setClaims(Map<String, Object> claims) { if (claims == null || claims.size() == 0) { this.claims = null; } else { setClaims(Utils.toJson(claims)); } return this;...
public class class_name { public BackchannelAuthenticationCompleteRequest setClaims(Map<String, Object> claims) { if (claims == null || claims.size() == 0) { this.claims = null; // depends on control dependency: [if], data = [none] } else { setClaims(...
public class class_name { private boolean processRaidEncodingTask(RaidBlockInfo rbi) { ArrayList<ArrayList<DatanodeInfo>> stripeDatanodes = new ArrayList<ArrayList<DatanodeInfo>>(); BlockInfo[] stripeBlocks = null; RaidCodec codec = null; StringBuilder sb = new StringBuilder(); StringBuilde...
public class class_name { private boolean processRaidEncodingTask(RaidBlockInfo rbi) { ArrayList<ArrayList<DatanodeInfo>> stripeDatanodes = new ArrayList<ArrayList<DatanodeInfo>>(); BlockInfo[] stripeBlocks = null; RaidCodec codec = null; StringBuilder sb = new StringBuilder(); StringBuilde...
public class class_name { private void drawEventTitle(WeekViewEvent event, RectF rect, Canvas canvas, float originalTop, float originalLeft) { if (rect.right - rect.left - mEventPadding * 2 < 0) return; if (rect.bottom - rect.top - mEventPadding * 2 < 0) return; // Prepare the name of the even...
public class class_name { private void drawEventTitle(WeekViewEvent event, RectF rect, Canvas canvas, float originalTop, float originalLeft) { if (rect.right - rect.left - mEventPadding * 2 < 0) return; if (rect.bottom - rect.top - mEventPadding * 2 < 0) return; // Prepare the name of the even...
public class class_name { @Override public final void visitOpenDynamic(){ if (!isDynamic) throw new IllegalStateException("Wrong use of dynamic() in a static view!"); openDynamic = true; if (isCached){ HtmlVisitorStringBuilder.HtmlBlockInfo block = cacheBlocksList.g...
public class class_name { @Override public final void visitOpenDynamic(){ if (!isDynamic) throw new IllegalStateException("Wrong use of dynamic() in a static view!"); openDynamic = true; if (isCached){ HtmlVisitorStringBuilder.HtmlBlockInfo block = cacheBlocksList.g...
public class class_name { public static Method findGetMethod(Field field, DatabaseType databaseType, boolean throwExceptions) throws IllegalArgumentException { Method fieldGetMethod = findMethodFromNames(field, true, throwExceptions, methodFromField(field, "get", databaseType, true), methodFromField(field, "g...
public class class_name { public static Method findGetMethod(Field field, DatabaseType databaseType, boolean throwExceptions) throws IllegalArgumentException { Method fieldGetMethod = findMethodFromNames(field, true, throwExceptions, methodFromField(field, "get", databaseType, true), methodFromField(field, "g...
public class class_name { public void search( String theTopic, MatchSpaceKey msg, EvalCache cache, MessageProcessorSearchResults searchResults) throws BadMessageFormatMatchingException, MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
public class class_name { public void search( String theTopic, MatchSpaceKey msg, EvalCache cache, MessageProcessorSearchResults searchResults) throws BadMessageFormatMatchingException, MatchingException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr...
public class class_name { public static byte booleansToByte(boolean[] array) { if (array != null && array.length > 0) { byte b = 0; for (int i = 0; i <= 7; i++) { if (array[i]) { int nn = (1 << (7 - i)); b += nn; } ...
public class class_name { public static byte booleansToByte(boolean[] array) { if (array != null && array.length > 0) { byte b = 0; for (int i = 0; i <= 7; i++) { if (array[i]) { int nn = (1 << (7 - i)); b += nn; // depends on cont...
public class class_name { public void marshall(DeleteCertificateRequest deleteCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (deleteCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { public void marshall(DeleteCertificateRequest deleteCertificateRequest, ProtocolMarshaller protocolMarshaller) { if (deleteCertificateRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocol...
public class class_name { @Override public void writeString(String string) { writeAMF3(); buf.put(AMF3.TYPE_STRING); if ("".equals(string)) { putInteger(1); } else { final byte[] encoded = encodeString(string); putString(string, encoded); ...
public class class_name { @Override public void writeString(String string) { writeAMF3(); buf.put(AMF3.TYPE_STRING); if ("".equals(string)) { putInteger(1); // depends on control dependency: [if], data = [none] } else { final byte[] encoded = encodeStr...
public class class_name { public void marshall(StartRemediationExecutionRequest startRemediationExecutionRequest, ProtocolMarshaller protocolMarshaller) { if (startRemediationExecutionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...
public class class_name { public void marshall(StartRemediationExecutionRequest startRemediationExecutionRequest, ProtocolMarshaller protocolMarshaller) { if (startRemediationExecutionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } tr...