code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { void convertWith(Converter converter, String... attributes) { for (String attribute : attributes) { convertWith(converter, attribute); } } }
public class class_name { void convertWith(Converter converter, String... attributes) { for (String attribute : attributes) { convertWith(converter, attribute); // depends on control dependency: [for], data = [attribute] } } }
public class class_name { private static String getColumnNameFromGetter(Method getter,Field f){ String columnName = ""; Column columnAnno = getter.getAnnotation(Column.class); if(columnAnno != null){ //如果是列注解就读取name属性 columnName = columnAnno.name(); } if(columnName == null || "".equals(columnName)){...
public class class_name { private static String getColumnNameFromGetter(Method getter,Field f){ String columnName = ""; Column columnAnno = getter.getAnnotation(Column.class); if(columnAnno != null){ //如果是列注解就读取name属性 columnName = columnAnno.name(); // depends on control dependency: [if], data = [none] }...
public class class_name { public T get(long duration, TimeUnit units, boolean throwException, boolean hasZF) throws InterruptedException, TimeoutException, ExecutionException { final long startTime = System.currentTimeMillis(); boolean status = latch.await(duration, units); if (!status) { ...
public class class_name { public T get(long duration, TimeUnit units, boolean throwException, boolean hasZF) throws InterruptedException, TimeoutException, ExecutionException { final long startTime = System.currentTimeMillis(); boolean status = latch.await(duration, units); if (!status) { ...
public class class_name { @Override public double getReduceProcessingRate(long currentTime) { Phase phase = getPhase(); if (phase != Phase.REDUCE) { return 0; } @SuppressWarnings("deprecation") long bytesProcessed = super.getCounters().findCounter (Task.Counter.RE...
public class class_name { @Override public double getReduceProcessingRate(long currentTime) { Phase phase = getPhase(); if (phase != Phase.REDUCE) { return 0; // depends on control dependency: [if], data = [none] } @SuppressWarnings("deprecation") long bytesProcessed = sup...
public class class_name { public void setSitePath(String sitepath) { if (!isLeafType() && !sitepath.endsWith("/")) { sitepath = sitepath + "/"; } m_sitePath = sitepath; } }
public class class_name { public void setSitePath(String sitepath) { if (!isLeafType() && !sitepath.endsWith("/")) { sitepath = sitepath + "/"; // depends on control dependency: [if], data = [none] } m_sitePath = sitepath; } }
public class class_name { private OrdinalAttribute getMajorityClassification(String property, Iterable<State> examples) throws LearningFailureException { /*log.fine("private OrdinalAttribute getMajorityClassification(String property, Collection<State> examples): called");*/ /*log.fine("prop...
public class class_name { private OrdinalAttribute getMajorityClassification(String property, Iterable<State> examples) throws LearningFailureException { /*log.fine("private OrdinalAttribute getMajorityClassification(String property, Collection<State> examples): called");*/ /*log.fine("prop...
public class class_name { @Override public MatchResult matches(List<String> lines) { // if the first line doesn't have '$RXN' then it can't match if (lines.size() < 1 || !lines.get(0).contains("$RXN")) return NO_MATCH; // check the header (fifth line) String header = lines.size() ...
public class class_name { @Override public MatchResult matches(List<String> lines) { // if the first line doesn't have '$RXN' then it can't match if (lines.size() < 1 || !lines.get(0).contains("$RXN")) return NO_MATCH; // check the header (fifth line) String header = lines.size() ...
public class class_name { static BlockCanaryInternals getInstance() { if (sInstance == null) { synchronized (BlockCanaryInternals.class) { if (sInstance == null) { sInstance = new BlockCanaryInternals(); } } } return sI...
public class class_name { static BlockCanaryInternals getInstance() { if (sInstance == null) { synchronized (BlockCanaryInternals.class) { // depends on control dependency: [if], data = [none] if (sInstance == null) { sInstance = new BlockCanaryInternals(); // de...
public class class_name { public static Point3d centroid(Point3d[] x) { Point3d center = new Point3d(); for (Point3d p : x) { center.add(p); } center.scale(1.0 / x.length); return center; } }
public class class_name { public static Point3d centroid(Point3d[] x) { Point3d center = new Point3d(); for (Point3d p : x) { center.add(p); // depends on control dependency: [for], data = [p] } center.scale(1.0 / x.length); return center; } }
public class class_name { SourcedToken getEquivalentToken(Token tok) { if (unsourcedTokens.contains(tok.getValue())) { for (int i=0; i<tokens.length; i++) { if (tokens[i].getValue().equals(tok.getValue())) { return tokens[i]; } } ...
public class class_name { SourcedToken getEquivalentToken(Token tok) { if (unsourcedTokens.contains(tok.getValue())) { for (int i=0; i<tokens.length; i++) { if (tokens[i].getValue().equals(tok.getValue())) { return tokens[i]; // depends on control dependency: [if...
public class class_name { public String getClusterName(Configuration conf) { // ResourceManager address in Hadoop2 String clusterIdentifier = conf.get("yarn.resourcemanager.address"); clusterIdentifier = getClusterName(clusterIdentifier); // If job is running outside of Hadoop (Standalone) use hostnam...
public class class_name { public String getClusterName(Configuration conf) { // ResourceManager address in Hadoop2 String clusterIdentifier = conf.get("yarn.resourcemanager.address"); clusterIdentifier = getClusterName(clusterIdentifier); // If job is running outside of Hadoop (Standalone) use hostnam...
public class class_name { public void focusLost(FocusEvent e) { m_componentNextFocus = null; Component component = (Component)e.getSource(); String string = component.getName(); FieldInfo field = null; if (this.getFieldList() != null) field = this.getFieldList()....
public class class_name { public void focusLost(FocusEvent e) { m_componentNextFocus = null; Component component = (Component)e.getSource(); String string = component.getName(); FieldInfo field = null; if (this.getFieldList() != null) field = this.getFieldList()....
public class class_name { public static Method getDeclaredMethod(Class<?> type, String methodName, Class<?>... parameterTypes) { Method method = null; try { method = type.getDeclaredMethod(methodName, parameterTypes); if(method.isBridge()){ method = MethodProvide...
public class class_name { public static Method getDeclaredMethod(Class<?> type, String methodName, Class<?>... parameterTypes) { Method method = null; try { method = type.getDeclaredMethod(methodName, parameterTypes); // depends on control dependency: [try], data = [none] if(met...
public class class_name { private Integer createObjectAndRegisterPrefix(String field, IndexOutput out, BytesRef term, Long termRef, int startPosition, BytesRef payload, Integer startOffset, Integer endOffset, IndexOutput outPrefix) throws IOException { try { Integer mtasId = null; Str...
public class class_name { private Integer createObjectAndRegisterPrefix(String field, IndexOutput out, BytesRef term, Long termRef, int startPosition, BytesRef payload, Integer startOffset, Integer endOffset, IndexOutput outPrefix) throws IOException { try { Integer mtasId = null; Str...
public class class_name { public void updateAddresses(List<EquivalentAddressGroup> newAddressGroups) { Preconditions.checkNotNull(newAddressGroups, "newAddressGroups"); checkListHasNoNulls(newAddressGroups, "newAddressGroups contains null entry"); Preconditions.checkArgument(!newAddressGroups.isEmpty(), "n...
public class class_name { public void updateAddresses(List<EquivalentAddressGroup> newAddressGroups) { Preconditions.checkNotNull(newAddressGroups, "newAddressGroups"); checkListHasNoNulls(newAddressGroups, "newAddressGroups contains null entry"); Preconditions.checkArgument(!newAddressGroups.isEmpty(), "n...
public class class_name { private void initializeUnknownCategoricalsPerColumn(GenModel model) { unknownCategoricalsPerColumn = new ConcurrentHashMap<>(); for (int i = 0; i < model.getNumCols(); i++) { String[] domainValues = model.getDomainValues(i); if (domainValues != null) { unknownCate...
public class class_name { private void initializeUnknownCategoricalsPerColumn(GenModel model) { unknownCategoricalsPerColumn = new ConcurrentHashMap<>(); for (int i = 0; i < model.getNumCols(); i++) { String[] domainValues = model.getDomainValues(i); if (domainValues != null) { unknownCate...
public class class_name { private static double getSegDistSq(double px, double py, Coordinate a, Coordinate b) { double x = a.x; double y = a.y; double dx = b.x - x; double dy = b.y - y; if (dx != 0f || dy != 0f) { double t = ((px - x) * dx + (py - y) * dy) / (dx * ...
public class class_name { private static double getSegDistSq(double px, double py, Coordinate a, Coordinate b) { double x = a.x; double y = a.y; double dx = b.x - x; double dy = b.y - y; if (dx != 0f || dy != 0f) { double t = ((px - x) * dx + (py - y) * dy) / (dx * ...
public class class_name { protected String genCountStatement() { StringBuilder countString = new StringBuilder("select count(*) "); // 原始查询语句 final String genQueryStr = genQueryStatement(false); if (isEmpty(genQueryStr)) { return ""; } final String lowerCaseQueryStr = genQueryStr.toLowerCase(); ...
public class class_name { protected String genCountStatement() { StringBuilder countString = new StringBuilder("select count(*) "); // 原始查询语句 final String genQueryStr = genQueryStatement(false); if (isEmpty(genQueryStr)) { return ""; } // depends on control dependency: [if], data = [none] final Str...
public class class_name { private MediaType getStorageMediaType(Configuration configuration, boolean embeddedMode) { EncodingConfiguration encodingConfiguration = configuration.encoding(); ContentTypeConfiguration contentTypeConfiguration = isKey ? encodingConfiguration.keyDataType() : encodingConfiguratio...
public class class_name { private MediaType getStorageMediaType(Configuration configuration, boolean embeddedMode) { EncodingConfiguration encodingConfiguration = configuration.encoding(); ContentTypeConfiguration contentTypeConfiguration = isKey ? encodingConfiguration.keyDataType() : encodingConfiguratio...
public class class_name { public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { String lang = m_arg0.execute(xctxt).str(); int parent = xctxt.getCurrentNode(); boolean isLang = false; DTM dtm = xctxt.getDTM(parent); while (DTM.NULL != parent) { i...
public class class_name { public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException { String lang = m_arg0.execute(xctxt).str(); int parent = xctxt.getCurrentNode(); boolean isLang = false; DTM dtm = xctxt.getDTM(parent); while (DTM.NULL != parent) { i...
public class class_name { @Override public int[] doBatch(final SqlContext sqlContext, final PreparedStatement preparedStatement, final int[] result) { if (LOG.isDebugEnabled()) { int[] counts = result; try { counts = new int[] { preparedStatement.getUpdateCount() }; } catch (SQLException ex) { ex.p...
public class class_name { @Override public int[] doBatch(final SqlContext sqlContext, final PreparedStatement preparedStatement, final int[] result) { if (LOG.isDebugEnabled()) { int[] counts = result; try { counts = new int[] { preparedStatement.getUpdateCount() }; // depends on control dependency: [try]...
public class class_name { private void textFieldSearchTextKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textFieldSearchTextKeyPressed switch (evt.getKeyCode()) { case KeyEvent.VK_ESCAPE: { this.setVisible(false); this.baseEditor.requestActive(); evt.consume(); } ...
public class class_name { private void textFieldSearchTextKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_textFieldSearchTextKeyPressed switch (evt.getKeyCode()) { case KeyEvent.VK_ESCAPE: { this.setVisible(false); this.baseEditor.requestActive(); evt.consume(); } ...
public class class_name { public void marshall(DescribeEffectiveInstanceAssociationsRequest describeEffectiveInstanceAssociationsRequest, ProtocolMarshaller protocolMarshaller) { if (describeEffectiveInstanceAssociationsRequest == null) { throw new SdkClientException("Invalid argument passed to ma...
public class class_name { public void marshall(DescribeEffectiveInstanceAssociationsRequest describeEffectiveInstanceAssociationsRequest, ProtocolMarshaller protocolMarshaller) { if (describeEffectiveInstanceAssociationsRequest == null) { throw new SdkClientException("Invalid argument passed to ma...
public class class_name { private Registration getRegistration(EventEnvelope eventEnvelope, String serviceName) { EventServiceSegment segment = eventService.getSegment(serviceName, false); if (segment == null) { if (eventService.nodeEngine.isRunning()) { eventService.logger....
public class class_name { private Registration getRegistration(EventEnvelope eventEnvelope, String serviceName) { EventServiceSegment segment = eventService.getSegment(serviceName, false); if (segment == null) { if (eventService.nodeEngine.isRunning()) { eventService.logger....
public class class_name { public void collectVariables(EnvVars env, Run build, TaskListener listener) { EnvVars buildParameters = Utils.extractBuildParameters(build, listener); if (buildParameters != null) { env.putAll(buildParameters); } addAllWithFilter(envVars, env, filte...
public class class_name { public void collectVariables(EnvVars env, Run build, TaskListener listener) { EnvVars buildParameters = Utils.extractBuildParameters(build, listener); if (buildParameters != null) { env.putAll(buildParameters); // depends on control dependency: [if], data = [(build...
public class class_name { public boolean set(Object value, long seconds) { if (value == null) return false; try { boolean result = false; if(isCluster(groupName)){ result = getBinaryJedisClusterCommands(groupName).set(keyBytes, valueSerialize(value)).equals(RESP_OK); }else{ result = getBinaryJ...
public class class_name { public boolean set(Object value, long seconds) { if (value == null) return false; try { boolean result = false; if(isCluster(groupName)){ result = getBinaryJedisClusterCommands(groupName).set(keyBytes, valueSerialize(value)).equals(RESP_OK); // depends on control dependency:...
public class class_name { public static ByteMap<byte[]> getTagUids(final byte[] row) { final ByteMap<byte[]> uids = new ByteMap<byte[]>(); final short name_width = TSDB.tagk_width(); final short value_width = TSDB.tagv_width(); final short tag_bytes = (short) (name_width + value_width); final short...
public class class_name { public static ByteMap<byte[]> getTagUids(final byte[] row) { final ByteMap<byte[]> uids = new ByteMap<byte[]>(); final short name_width = TSDB.tagk_width(); final short value_width = TSDB.tagv_width(); final short tag_bytes = (short) (name_width + value_width); final short...
public class class_name { private double[][] computeLookupADC(double[] qVector) { double[][] distances = new double[numSubVectors][numProductCentroids]; for (int i = 0; i < numSubVectors; i++) { int subVectorStart = i * subVectorLength; for (int j = 0; j < numProductCentroids; j++) { for (int k = 0;...
public class class_name { private double[][] computeLookupADC(double[] qVector) { double[][] distances = new double[numSubVectors][numProductCentroids]; for (int i = 0; i < numSubVectors; i++) { int subVectorStart = i * subVectorLength; for (int j = 0; j < numProductCentroids; j++) { for (int k = 0;...
public class class_name { @Override protected void initParser() throws MtasConfigException { super.initParser(); if (config != null) { // always word, no mappings wordType = new MtasParserType<>(MAPPING_TYPE_WORD, null, false); for (int i = 0; i < config.children.size(); i++) { Mt...
public class class_name { @Override protected void initParser() throws MtasConfigException { super.initParser(); if (config != null) { // always word, no mappings wordType = new MtasParserType<>(MAPPING_TYPE_WORD, null, false); for (int i = 0; i < config.children.size(); i++) { Mt...
public class class_name { private long addLogRecord(LogRecord logRecord, long reservedDelta, boolean setMark, boolean checkSpace, boolean flush) throws ObjectManagerException ...
public class class_name { private long addLogRecord(LogRecord logRecord, long reservedDelta, boolean setMark, boolean checkSpace, boolean flush) throws ObjectManagerException ...
public class class_name { public static String convertTabsToSpaces(final String line, final int tabWidth) { int tab_index, tab_size; int last_tab_index = 0; int added_chars = 0; if (tabWidth == 0) { return StringUtil.remove(line, '\t'); } StringBuilder result = new StringBuilder(); while ((tab_inde...
public class class_name { public static String convertTabsToSpaces(final String line, final int tabWidth) { int tab_index, tab_size; int last_tab_index = 0; int added_chars = 0; if (tabWidth == 0) { return StringUtil.remove(line, '\t'); // depends on control dependency: [if], data = [none] } StringBui...
public class class_name { private static List<String> normalizePackagePrefixes(List<String> packages) { if (packages == null) return null; List<String> result = new ArrayList<>(packages.size()); for (String pkg : packages) { if(pkg.endsWith(".*")){ ...
public class class_name { private static List<String> normalizePackagePrefixes(List<String> packages) { if (packages == null) return null; List<String> result = new ArrayList<>(packages.size()); for (String pkg : packages) { if(pkg.endsWith(".*")){ ...
public class class_name { private int findSlotBefore(SearchKey searchKey) { /* * int slot = 0; while (slot < contents.getNumRecords() && * getKey(contents, slot).compareTo(searchKey) < 0) slot++; return slot * - 1; */ // Optimization: Use binary search rather than sequential search int startSl...
public class class_name { private int findSlotBefore(SearchKey searchKey) { /* * int slot = 0; while (slot < contents.getNumRecords() && * getKey(contents, slot).compareTo(searchKey) < 0) slot++; return slot * - 1; */ // Optimization: Use binary search rather than sequential search int startSl...
public class class_name { public CodedValueType getAuditSourceTypeCode() { if (EventUtils.isEmptyOrNull(auditSourceTypeCode)) { return null; } AuditSourceType auditSourceType = auditSourceTypeCode.get(0); CodedValueType codedValueType = new CodedValueType(); codedVal...
public class class_name { public CodedValueType getAuditSourceTypeCode() { if (EventUtils.isEmptyOrNull(auditSourceTypeCode)) { return null; // depends on control dependency: [if], data = [none] } AuditSourceType auditSourceType = auditSourceTypeCode.get(0); CodedValueType c...
public class class_name { public Object methodMissing(String name, Object arg) { Object[] args = (Object[])arg; if(args.length == 0) throw new MissingMethodException(name,getClass(),args); if(args[0] instanceof Closure) { // abstract bean definition return invokeBeanDefin...
public class class_name { public Object methodMissing(String name, Object arg) { Object[] args = (Object[])arg; if(args.length == 0) throw new MissingMethodException(name,getClass(),args); if(args[0] instanceof Closure) { // abstract bean definition return invokeBeanDefin...
public class class_name { protected boolean keyReleased (KeyEvent e) { logKey("keyReleased", e); // get the info object for this key KeyInfo info = _keys.get(e.getKeyCode()); if (info != null) { // remember the last time we received a key release info.setRel...
public class class_name { protected boolean keyReleased (KeyEvent e) { logKey("keyReleased", e); // get the info object for this key KeyInfo info = _keys.get(e.getKeyCode()); if (info != null) { // remember the last time we received a key release info.setRel...
public class class_name { public List<CheckResult> check(MetricName actualTarget, Map<String, Number> currentValuesByMetric) { SortedMap<CheckResult.Status, List<Threshold>> sortedThresholds = new TreeMap<CheckResult.Status, List<Threshold>>(thresholds); for (Map.Entry<CheckResult.Status, List<Threshold>> entry : ...
public class class_name { public List<CheckResult> check(MetricName actualTarget, Map<String, Number> currentValuesByMetric) { SortedMap<CheckResult.Status, List<Threshold>> sortedThresholds = new TreeMap<CheckResult.Status, List<Threshold>>(thresholds); for (Map.Entry<CheckResult.Status, List<Threshold>> entry : ...
public class class_name { @Override public synchronized boolean updateNode(IUserLayoutNodeDescription node) throws PortalException { if (canUpdateNode(node)) { String nodeId = node.getId(); IUserLayoutNodeDescription oldNode = getNode(nodeId); if (oldNode instanceof IUs...
public class class_name { @Override public synchronized boolean updateNode(IUserLayoutNodeDescription node) throws PortalException { if (canUpdateNode(node)) { String nodeId = node.getId(); IUserLayoutNodeDescription oldNode = getNode(nodeId); if (oldNode instanceof IUs...
public class class_name { private void processElementRotate(GeneratorSingleCluster cluster, Node cur) { int axis1 = 0; int axis2 = 0; double angle = 0.0; String a1str = ((Element) cur).getAttribute(ATTR_AXIS1); if(a1str != null && a1str.length() > 0) { axis1 = ParseUtil.parseIntBase10(a1str)...
public class class_name { private void processElementRotate(GeneratorSingleCluster cluster, Node cur) { int axis1 = 0; int axis2 = 0; double angle = 0.0; String a1str = ((Element) cur).getAttribute(ATTR_AXIS1); if(a1str != null && a1str.length() > 0) { axis1 = ParseUtil.parseIntBase10(a1str)...
public class class_name { public boolean createChildScope(String name) { if (!scope.hasChildScope(name)) { return scope.createChildScope(name); } return false; } }
public class class_name { public boolean createChildScope(String name) { if (!scope.hasChildScope(name)) { return scope.createChildScope(name); // depends on control dependency: [if], data = [none] } return false; } }
public class class_name { public void saveCurrentPlot() { // TODO: exclude "do not export" layers! final SVGPlot currentPlot = svgCanvas.getPlot(); if(currentPlot != null) { SVGSaveDialog.showSaveDialog(currentPlot, 512, 512); } else { LoggingUtil.warning("saveCurrentPlot() called witho...
public class class_name { public void saveCurrentPlot() { // TODO: exclude "do not export" layers! final SVGPlot currentPlot = svgCanvas.getPlot(); if(currentPlot != null) { SVGSaveDialog.showSaveDialog(currentPlot, 512, 512); // depends on control dependency: [if], data = [(currentPlot] } el...
public class class_name { @Override public void processElement(Wrapper<Element> element) { activeElement = element.getContent(); if (parentElement != null) { parentElement.addContent(activeElement); } } }
public class class_name { @Override public void processElement(Wrapper<Element> element) { activeElement = element.getContent(); if (parentElement != null) { parentElement.addContent(activeElement); // depends on control dependency: [if], data = [none] } } }
public class class_name { public static IDifference difference(IChemObject first, IChemObject second) { if (!(first instanceof IElectronContainer && second instanceof IElectronContainer)) { return null; } IElectronContainer firstEC = (IElectronContainer) first; IElectronCont...
public class class_name { public static IDifference difference(IChemObject first, IChemObject second) { if (!(first instanceof IElectronContainer && second instanceof IElectronContainer)) { return null; // depends on control dependency: [if], data = [none] } IElectronContainer first...
public class class_name { @SuppressWarnings("fallthrough") @SuppressFBWarnings(justification = "As this is an encoding method the fallthrough is intentional", value = {"SF_SWITCH_NO_DEFAULT"}) public static void appendEscapedLuceneQuery(StringBuilder buf, final CharSequence text) { if (tex...
public class class_name { @SuppressWarnings("fallthrough") @SuppressFBWarnings(justification = "As this is an encoding method the fallthrough is intentional", value = {"SF_SWITCH_NO_DEFAULT"}) public static void appendEscapedLuceneQuery(StringBuilder buf, final CharSequence text) { if (tex...
public class class_name { @SuppressWarnings("deprecation") public BigDecimal getDecimalMillis() { switch (this._precision) { case YEAR: case MONTH: case DAY: case MINUTE: case SECOND: case FRACTION: long millis = Date.UTC(this._year - 1900, th...
public class class_name { @SuppressWarnings("deprecation") public BigDecimal getDecimalMillis() { switch (this._precision) { case YEAR: case MONTH: case DAY: case MINUTE: case SECOND: case FRACTION: long millis = Date.UTC(this._year - 1900, th...
public class class_name { public URLTemplate getURLTemplate( String name ) { assert _urlTemplates != null : "The template config file has not been loaded."; if ( _urlTemplates == null ) { return null; } return _urlTemplates.getTemplate( name ); } }
public class class_name { public URLTemplate getURLTemplate( String name ) { assert _urlTemplates != null : "The template config file has not been loaded."; if ( _urlTemplates == null ) { return null; // depends on control dependency: [if], data = [none] } retu...
public class class_name { protected Map<String, String> getStringDataMap(final JobDataMap jobDataMap){ Map<String, String> stringMap = new HashMap<>(); for (Map.Entry<String, Object> entry : jobDataMap.entrySet()) { if(entry.getValue() != null){ stringMap.put(entry.getKey(),...
public class class_name { protected Map<String, String> getStringDataMap(final JobDataMap jobDataMap){ Map<String, String> stringMap = new HashMap<>(); for (Map.Entry<String, Object> entry : jobDataMap.entrySet()) { if(entry.getValue() != null){ stringMap.put(entry.getKey(),...
public class class_name { private Mapper createCustomMapper(Field field, PropertyMapper propertyMapperAnnotation) { Class<? extends Mapper> mapperClass = propertyMapperAnnotation.value(); Constructor<? extends Mapper> constructor = IntrospectionUtils.getConstructor(mapperClass, Field.class); if (co...
public class class_name { private Mapper createCustomMapper(Field field, PropertyMapper propertyMapperAnnotation) { Class<? extends Mapper> mapperClass = propertyMapperAnnotation.value(); Constructor<? extends Mapper> constructor = IntrospectionUtils.getConstructor(mapperClass, Field.class); if (co...
public class class_name { private static TemplateEngine doCreate(TemplateConfig config) { try { return new BeetlEngine(config); } catch (NoClassDefFoundError e) { // ignore } try { return new FreemarkerEngine(config); } catch (NoClassDefFoundError e) { // ignore } try { return ...
public class class_name { private static TemplateEngine doCreate(TemplateConfig config) { try { return new BeetlEngine(config); // depends on control dependency: [try], data = [none] } catch (NoClassDefFoundError e) { // ignore } // depends on control dependency: [catch], data = [none] try { re...
public class class_name { public java.util.List<ChangeSetSummary> getSummaries() { if (summaries == null) { summaries = new com.amazonaws.internal.SdkInternalList<ChangeSetSummary>(); } return summaries; } }
public class class_name { public java.util.List<ChangeSetSummary> getSummaries() { if (summaries == null) { summaries = new com.amazonaws.internal.SdkInternalList<ChangeSetSummary>(); // depends on control dependency: [if], data = [none] } return summaries; } }
public class class_name { public void marshall(ExecutionAbortedEventDetails executionAbortedEventDetails, ProtocolMarshaller protocolMarshaller) { if (executionAbortedEventDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(ExecutionAbortedEventDetails executionAbortedEventDetails, ProtocolMarshaller protocolMarshaller) { if (executionAbortedEventDetails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public Number getNumber(int index) throws JSONException { Object object = this.get(index); try { if (object instanceof Number) { return (Number)object; } return JSONObject.stringToNumber(object.toString()); } catch (E...
public class class_name { public Number getNumber(int index) throws JSONException { Object object = this.get(index); try { if (object instanceof Number) { return (Number)object; // depends on control dependency: [if], data = [none] } return JSONObject...
public class class_name { public void restore() { if (window instanceof RootPaneContainer) { final Component glassPane = ((RootPaneContainer) window).getGlassPane(); glassPane.setVisible(windowGlassPaneVisible); glassPane.setCursor(oldWindowCursor); } if (window != null) { window.setCursor(old...
public class class_name { public void restore() { if (window instanceof RootPaneContainer) { final Component glassPane = ((RootPaneContainer) window).getGlassPane(); glassPane.setVisible(windowGlassPaneVisible); // depends on control dependency: [if], data = [none] glassPane.setCursor(oldWindowCursor); ...
public class class_name { public Endpoint withDefaultPort(int defaultPort) { ensureSingle(); validatePort("defaultPort", defaultPort); if (port != 0) { return this; } return new Endpoint(host(), ipAddr(), defaultPort, weight(), hostType); } }
public class class_name { public Endpoint withDefaultPort(int defaultPort) { ensureSingle(); validatePort("defaultPort", defaultPort); if (port != 0) { return this; // depends on control dependency: [if], data = [none] } return new Endpoint(host(), ipAddr(), defaul...
public class class_name { private void btCancelActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btCancelActionPerformed {//GEN-HEADEREND:event_btCancelActionPerformed if (isImporting) { worker.cancel(true); statementController.cancelStatements(); } setVisibl...
public class class_name { private void btCancelActionPerformed(java.awt.event.ActionEvent evt)//GEN-FIRST:event_btCancelActionPerformed {//GEN-HEADEREND:event_btCancelActionPerformed if (isImporting) { worker.cancel(true); // depends on control dependency: [if], data = [none] statement...
public class class_name { @Override public void unset(String propName) { /* * Require a property name. */ if (propName == null || propName.trim().isEmpty()) { return; } if (propName.equals(PROP_MEMBERS)) { unsetMembers(); } ...
public class class_name { @Override public void unset(String propName) { /* * Require a property name. */ if (propName == null || propName.trim().isEmpty()) { return; // depends on control dependency: [if], data = [none] } if (propName.equals(PROP_MEM...
public class class_name { public void makeSelect(final AbstractPrintQuery _print) throws EFapsException { for (final String expression : getExpressions()) { // TODO remove, only selects allowed if (_print.getMainType().getAttributes().containsKey(expression)) { ...
public class class_name { public void makeSelect(final AbstractPrintQuery _print) throws EFapsException { for (final String expression : getExpressions()) { // TODO remove, only selects allowed if (_print.getMainType().getAttributes().containsKey(expression)) { ...
public class class_name { protected void computeINFLO(Relation<O> relation, ModifiableDBIDs pruned, KNNQuery<O> knnq, WritableDataStore<ModifiableDBIDs> rNNminuskNNs, WritableDoubleDataStore inflos, DoubleMinMax inflominmax) { FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Computing INFLOs", relation....
public class class_name { protected void computeINFLO(Relation<O> relation, ModifiableDBIDs pruned, KNNQuery<O> knnq, WritableDataStore<ModifiableDBIDs> rNNminuskNNs, WritableDoubleDataStore inflos, DoubleMinMax inflominmax) { FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Computing INFLOs", relation....
public class class_name { public void resolveBundles(BundleContext bContext, List<Bundle> bundlesToResolve) { if (bundlesToResolve == null || bundlesToResolve.size() == 0) { return; } FrameworkWiring wiring = adaptSystemBundle(bContext, FrameworkWiring.class); if (wiring !=...
public class class_name { public void resolveBundles(BundleContext bContext, List<Bundle> bundlesToResolve) { if (bundlesToResolve == null || bundlesToResolve.size() == 0) { return; // depends on control dependency: [if], data = [none] } FrameworkWiring wiring = adaptSystemBundle(b...
public class class_name { @Override public EEnum getIfcBSplineSurfaceForm() { if (ifcBSplineSurfaceFormEEnum == null) { ifcBSplineSurfaceFormEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(919); } return ifcBSplineSurfaceFormEEnum; } }
public class class_name { @Override public EEnum getIfcBSplineSurfaceForm() { if (ifcBSplineSurfaceFormEEnum == null) { ifcBSplineSurfaceFormEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(919); // depends on control dependency: [if], data = [none] }...
public class class_name { private Map<String, ParseTreeNode> getTokens() throws GrammarException, TreeException { Map<String, ParseTreeNode> tokens = new HashMap<String, ParseTreeNode>(); ParseTreeNode tokensTree = parserTree.getChild("Tokens"); ParseTreeNode tokenDefinitions = tokensTree.getChild("TokenDefini...
public class class_name { private Map<String, ParseTreeNode> getTokens() throws GrammarException, TreeException { Map<String, ParseTreeNode> tokens = new HashMap<String, ParseTreeNode>(); ParseTreeNode tokensTree = parserTree.getChild("Tokens"); ParseTreeNode tokenDefinitions = tokensTree.getChild("TokenDefini...
public class class_name { public ServiceCall<Synonym> updateSynonym(UpdateSynonymOptions updateSynonymOptions) { Validator.notNull(updateSynonymOptions, "updateSynonymOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "entities", "values", "synonyms" }; String[] pathParameters = { updateS...
public class class_name { public ServiceCall<Synonym> updateSynonym(UpdateSynonymOptions updateSynonymOptions) { Validator.notNull(updateSynonymOptions, "updateSynonymOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "entities", "values", "synonyms" }; String[] pathParameters = { updateS...
public class class_name { static void putStringHashIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Map<String, String> value) { if (value == null) { return; } JSONObject jsonHash = stringHashToJsonObj...
public class class_name { static void putStringHashIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Map<String, String> value) { if (value == null) { return; // depends on control dependency: [if], data = [none] ...
public class class_name { public String getBroadcastMessageString() { CmsSessionInfo sessionInfo = OpenCms.getSessionManager().getSessionInfo(getSession()); if (sessionInfo == null) { return null; } String sessionId = sessionInfo.getSessionId().toString(); Buffer me...
public class class_name { public String getBroadcastMessageString() { CmsSessionInfo sessionInfo = OpenCms.getSessionManager().getSessionInfo(getSession()); if (sessionInfo == null) { return null; // depends on control dependency: [if], data = [none] } String sessionId = se...
public class class_name { public OutlierResult run(Database database, Relation<N> nrel, Relation<? extends NumberVector> relation) { final NeighborSetPredicate npred = getNeighborSetPredicateFactory().instantiate(database, nrel); WritableDoubleDataStore scores = DataStoreUtil.makeDoubleStorage(relation.getDBID...
public class class_name { public OutlierResult run(Database database, Relation<N> nrel, Relation<? extends NumberVector> relation) { final NeighborSetPredicate npred = getNeighborSetPredicateFactory().instantiate(database, nrel); WritableDoubleDataStore scores = DataStoreUtil.makeDoubleStorage(relation.getDBID...
public class class_name { public java.util.List<String> getOperations() { if (operations == null) { operations = new com.amazonaws.internal.SdkInternalList<String>(); } return operations; } }
public class class_name { public java.util.List<String> getOperations() { if (operations == null) { operations = new com.amazonaws.internal.SdkInternalList<String>(); // depends on control dependency: [if], data = [none] } return operations; } }
public class class_name { public void marshall(CreateAliasRequest createAliasRequest, ProtocolMarshaller protocolMarshaller) { if (createAliasRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { public void marshall(CreateAliasRequest createAliasRequest, ProtocolMarshaller protocolMarshaller) { if (createAliasRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
public class class_name { protected boolean loadedByThisOrChild(Class clazz) { boolean result = false; for (ClassLoader classLoader = clazz.getClassLoader(); null != classLoader; classLoader = classLoader.getParent()) { if (classLoader.equals(this)) { res...
public class class_name { protected boolean loadedByThisOrChild(Class clazz) { boolean result = false; for (ClassLoader classLoader = clazz.getClassLoader(); null != classLoader; classLoader = classLoader.getParent()) { if (classLoader.equals(this)) { res...
public class class_name { @Override protected Image parseImage(final Element rssRoot) { final Image image = super.parseImage(rssRoot); if (image != null) { final Element eImage = getImage(rssRoot); final Element width = eImage.getChild("width", getRSSNamespace()); ...
public class class_name { @Override protected Image parseImage(final Element rssRoot) { final Image image = super.parseImage(rssRoot); if (image != null) { final Element eImage = getImage(rssRoot); final Element width = eImage.getChild("width", getRSSNamespace()); ...
public class class_name { public static <T> ImmutableMultimap<T, Integer> itemToIndexMultimap( Iterable<T> iterable) { final ImmutableMultimap.Builder<T, Integer> ret = ImmutableMultimap.builder(); int idx = 0; for (final T x : iterable) { ret.put(x, idx++); } return ret.build(); } }
public class class_name { public static <T> ImmutableMultimap<T, Integer> itemToIndexMultimap( Iterable<T> iterable) { final ImmutableMultimap.Builder<T, Integer> ret = ImmutableMultimap.builder(); int idx = 0; for (final T x : iterable) { ret.put(x, idx++); // depends on control dependency: [f...
public class class_name { public final void setElementAt(int value, int index) { if (index >= m_mapSize) { int oldSize = m_mapSize; m_mapSize += m_blocksize; int newMap[] = new int[m_mapSize]; System.arraycopy(m_map, 0, newMap, 0, oldSize); m_map = newMap; } m...
public class class_name { public final void setElementAt(int value, int index) { if (index >= m_mapSize) { int oldSize = m_mapSize; m_mapSize += m_blocksize; // depends on control dependency: [if], data = [none] int newMap[] = new int[m_mapSize]; System.arraycopy(m_map, 0, ne...
public class class_name { public static double[] getMaximumValues(Front front) { if (front == null) { throw new NullFrontException() ; } else if (front.getNumberOfPoints() == 0) { throw new EmptyFrontException() ; } int numberOfObjectives = front.getPoint(0).getDimension() ; double[] ...
public class class_name { public static double[] getMaximumValues(Front front) { if (front == null) { throw new NullFrontException() ; } else if (front.getNumberOfPoints() == 0) { throw new EmptyFrontException() ; } int numberOfObjectives = front.getPoint(0).getDimension() ; double[] ...
public class class_name { public void removeLRU() { int removeCount = (int) Math.max((size() * trimFactor), 1); while ((removeCount--) > 0) { removeEntry(head.next); } } }
public class class_name { public void removeLRU() { int removeCount = (int) Math.max((size() * trimFactor), 1); while ((removeCount--) > 0) { removeEntry(head.next); // depends on control dependency: [while], data = [none] } } }
public class class_name { private Expression parseVersionExpression() { int major = intOf(consumeNextToken(NUMERIC).lexeme); consumeNextToken(DOT); if (tokens.positiveLookahead(STAR)) { tokens.consume(); return new And(new GreaterOrEqual(versionOf(major, 0, 0)), new Less(versionOf(maj...
public class class_name { private Expression parseVersionExpression() { int major = intOf(consumeNextToken(NUMERIC).lexeme); consumeNextToken(DOT); if (tokens.positiveLookahead(STAR)) { tokens.consume(); // depends on control dependency: [if], data = [none] return new And(new GreaterOrEqual(ver...
public class class_name { public static double J0(double x) { double ax; if ((ax = Math.abs(x)) < 8.0) { double y = x * x; double ans1 = 57568490574.0 + y * (-13362590354.0 + y * (651619640.7 + y * (-11214424.18 + y * (77392.33017 + y * (-184.9052456))...
public class class_name { public static double J0(double x) { double ax; if ((ax = Math.abs(x)) < 8.0) { double y = x * x; double ans1 = 57568490574.0 + y * (-13362590354.0 + y * (651619640.7 + y * (-11214424.18 + y * (77392.33017 + y * (-184.9052456))...
public class class_name { public static <R> ImmutableCell<R> copyOf(Cell<? extends R> cell) { if (cell == null) { throw new IllegalArgumentException("Cell must not be null"); } if (cell instanceof ImmutableCell) { @SuppressWarnings("unchecked") ImmutableCell<...
public class class_name { public static <R> ImmutableCell<R> copyOf(Cell<? extends R> cell) { if (cell == null) { throw new IllegalArgumentException("Cell must not be null"); } if (cell instanceof ImmutableCell) { @SuppressWarnings("unchecked") ImmutableCell<...
public class class_name { public static <T extends Annotation> Optional<T> getAnnotation( String annotation, List<? extends HasAnnotations> hasAnnotationsList ) { try { Class clazz = Class.forName( annotation ); return getAnnotation( clazz, hasAnnotationsList ); } ca...
public class class_name { public static <T extends Annotation> Optional<T> getAnnotation( String annotation, List<? extends HasAnnotations> hasAnnotationsList ) { try { Class clazz = Class.forName( annotation ); return getAnnotation( clazz, hasAnnotationsList ); // depends o...
public class class_name { public void marshall(StructValue structValue, ProtocolMarshaller protocolMarshaller) { if (structValue == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(structValue.getAttr...
public class class_name { public void marshall(StructValue structValue, ProtocolMarshaller protocolMarshaller) { if (structValue == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(structValue.getAttr...
public class class_name { private static ArrayList<DateMatch> matchDatesWithSeparator(Configuration configuration, String password) { // Initialize the list of matching dates ArrayList<DateMatch> dateMatches = new ArrayList<>(); // Create all possible subsequences of the password ...
public class class_name { private static ArrayList<DateMatch> matchDatesWithSeparator(Configuration configuration, String password) { // Initialize the list of matching dates ArrayList<DateMatch> dateMatches = new ArrayList<>(); // Create all possible subsequences of the password ...
public class class_name { private void performScriptedStep() { double scale = computeBulgeScale(); if( steps > giveUpOnKnown ) { // give up on the script followScript = false; } else { // use previous singular value to step double s = values[x2]/s...
public class class_name { private void performScriptedStep() { double scale = computeBulgeScale(); if( steps > giveUpOnKnown ) { // give up on the script followScript = false; // depends on control dependency: [if], data = [none] } else { // use previous sing...
public class class_name { @Override protected List<String> mate(String parent1, String parent2, int numberOfCrossoverPoints, Random rng) { if (parent1.length() != parent2.length()) { thro...
public class class_name { @Override protected List<String> mate(String parent1, String parent2, int numberOfCrossoverPoints, Random rng) { if (parent1.length() != parent2.length()) { thro...
public class class_name { public static void close (Reader in) { if (in != null) { try { in.close(); } catch (IOException ioe) { log.warning("Error closing reader", "reader", in, "cause", ioe); } } } }
public class class_name { public static void close (Reader in) { if (in != null) { try { in.close(); // depends on control dependency: [try], data = [none] } catch (IOException ioe) { log.warning("Error closing reader", "reader", in, "cause", ioe); ...
public class class_name { public static void substituteExternalGraphics( Rule rule, URL externalGraphicsUrl ) { String urlString = externalGraphicsUrl.toString(); String format = ""; if (urlString.toLowerCase().endsWith(".png")) { format = "image/png"; } else if (urlString.t...
public class class_name { public static void substituteExternalGraphics( Rule rule, URL externalGraphicsUrl ) { String urlString = externalGraphicsUrl.toString(); String format = ""; if (urlString.toLowerCase().endsWith(".png")) { format = "image/png"; // depends on control dependen...
public class class_name { public synchronized void destroy() { if (state == Destroyed) return; if (state != Disconnected) try { tl.disconnect(this); } catch (final KNXLinkClosedException e) { // we already should've been destroyed on catching this exception } setState(Destroyed, null); ...
public class class_name { public synchronized void destroy() { if (state == Destroyed) return; if (state != Disconnected) try { tl.disconnect(this); // depends on control dependency: [try], data = [none] } catch (final KNXLinkClosedException e) { // we already should've been destroyed on catch...
public class class_name { public Observable<ServiceResponseWithHeaders<Void, ComputeNodeDisableSchedulingHeaders>> disableSchedulingWithServiceResponseAsync(String poolId, String nodeId) { if (this.client.batchUrl() == null) { throw new IllegalArgumentException("Parameter this.client.batchUrl() is ...
public class class_name { public Observable<ServiceResponseWithHeaders<Void, ComputeNodeDisableSchedulingHeaders>> disableSchedulingWithServiceResponseAsync(String poolId, String nodeId) { if (this.client.batchUrl() == null) { throw new IllegalArgumentException("Parameter this.client.batchUrl() is ...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>> listUsageMetricsWithServiceResponseAsync(final PoolListUsageMetricsOptions poolListUsageMetricsOptions) { return listUsageMetricsSinglePageAsync(poolListUsageMetricsOptions) ...
public class class_name { public Observable<ServiceResponseWithHeaders<Page<PoolUsageMetrics>, PoolListUsageMetricsHeaders>> listUsageMetricsWithServiceResponseAsync(final PoolListUsageMetricsOptions poolListUsageMetricsOptions) { return listUsageMetricsSinglePageAsync(poolListUsageMetricsOptions) ...
public class class_name { private final int ensureRunBreak(int offset, boolean copyAttrs) { if (offset == length()) { return runCount; } // search for the run index where this offset should be int runIndex = 0; while (runIndex < runCount && runStarts[runIndex] < off...
public class class_name { private final int ensureRunBreak(int offset, boolean copyAttrs) { if (offset == length()) { return runCount; // depends on control dependency: [if], data = [none] } // search for the run index where this offset should be int runIndex = 0; w...
public class class_name { public HTMLGen directive(String tag, String ... attrs) { forward.append('<'); forward.append(tag); addAttrs(attrs); forward.append('>'); if(pretty) { forward.println(); } return this; } }
public class class_name { public HTMLGen directive(String tag, String ... attrs) { forward.append('<'); forward.append(tag); addAttrs(attrs); forward.append('>'); if(pretty) { forward.println(); // depends on control dependency: [if], data = [none] } return this; } }
public class class_name { protected void setCalendarHour(Calendar cal, int hour) { cal.set(Calendar.HOUR_OF_DAY, hour); if (cal.get(Calendar.HOUR_OF_DAY) != hour && hour != 24) { cal.set(Calendar.HOUR_OF_DAY, hour + 1); } } }
public class class_name { protected void setCalendarHour(Calendar cal, int hour) { cal.set(Calendar.HOUR_OF_DAY, hour); if (cal.get(Calendar.HOUR_OF_DAY) != hour && hour != 24) { cal.set(Calendar.HOUR_OF_DAY, hour + 1); // depends on control dependency: [if], data = [none] } } }
public class class_name { protected void startReplications() { if (mReplicationPolicyManager != null) { // Make sure we've got a WiFi lock so that the wifi isn't switched off while we're // trying to replicate. if (mWifiLock != null) { synchronized (mWifiLock...
public class class_name { protected void startReplications() { if (mReplicationPolicyManager != null) { // Make sure we've got a WiFi lock so that the wifi isn't switched off while we're // trying to replicate. if (mWifiLock != null) { synchronized (mWifiLock...
public class class_name { DataOutputStream openDataOutputStream() { final OutputStream os = getOutputStream(); if (os instanceof DataOutputStream) { return (DataOutputStream) os; } return new DataOutputStream(os); } }
public class class_name { DataOutputStream openDataOutputStream() { final OutputStream os = getOutputStream(); if (os instanceof DataOutputStream) { return (DataOutputStream) os; // depends on control dependency: [if], data = [none] } return new DataOutputStream(os); } }
public class class_name { public void startMetricReporting(Properties properties) { if (this.metricsReportingStarted) { LOGGER.warn("Metric reporting has already started"); return; } TimeUnit reportTimeUnit = TimeUnit.MILLISECONDS; long reportInterval = Long.parseLong(properties .g...
public class class_name { public void startMetricReporting(Properties properties) { if (this.metricsReportingStarted) { LOGGER.warn("Metric reporting has already started"); // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } Tim...
public class class_name { public static DynaBean newDynaBean( JSONObject jsonObject, JsonConfig jsonConfig ) { Map props = getProperties( jsonObject ); for( Iterator entries = props.entrySet() .iterator(); entries.hasNext(); ){ Map.Entry entry = (Map.Entry) entries.next(); Str...
public class class_name { public static DynaBean newDynaBean( JSONObject jsonObject, JsonConfig jsonConfig ) { Map props = getProperties( jsonObject ); for( Iterator entries = props.entrySet() .iterator(); entries.hasNext(); ){ Map.Entry entry = (Map.Entry) entries.next(); Str...
public class class_name { static void putLongIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Long value) { if (value == null) { return; } try { jsonObject.put(fieldName, value.longValue())...
public class class_name { static void putLongIfNotNull( @NonNull JSONObject jsonObject, @NonNull @Size(min = 1) String fieldName, @Nullable Long value) { if (value == null) { return; // depends on control dependency: [if], data = [none] } try { ...
public class class_name { @Override public PersonDocument findByFileAndString(final String filename, final String string) { final Query searchQuery = new Query(Criteria.where("string").is(string) .and("filename").is(filename)); final PersonDocument personDocument = mongo...
public class class_name { @Override public PersonDocument findByFileAndString(final String filename, final String string) { final Query searchQuery = new Query(Criteria.where("string").is(string) .and("filename").is(filename)); final PersonDocument personDocument = mongo...
public class class_name { @Pure public static String getSystemSharedLibraryDirectoryNameFor(String software) { final File f = getSystemSharedLibraryDirectoryFor(software); if (f == null) { return null; } return f.getAbsolutePath(); } }
public class class_name { @Pure public static String getSystemSharedLibraryDirectoryNameFor(String software) { final File f = getSystemSharedLibraryDirectoryFor(software); if (f == null) { return null; // depends on control dependency: [if], data = [none] } return f.getAbsolutePath(); } }
public class class_name { private FileHandlerResult processDir(final File dir) { // CHECKSTYLE:ON final FileHandlerResult dirResult = handler.handleFile(dir); if (dirResult == FileHandlerResult.STOP) { return FileHandlerResult.STOP; } if (dirResult == FileHan...
public class class_name { private FileHandlerResult processDir(final File dir) { // CHECKSTYLE:ON final FileHandlerResult dirResult = handler.handleFile(dir); if (dirResult == FileHandlerResult.STOP) { return FileHandlerResult.STOP; // depends on control dependency: [if], dat...
public class class_name { private String buildString() { if (type.isSimpleType()) { return '"' + type.name().toLowerCase() + '"'; } StringBuilder builder = new StringBuilder(); JsonWriter writer = new JsonWriter(CharStreams.asWriter(builder)); try { new SchemaTypeAdapter().write(writer,...
public class class_name { private String buildString() { if (type.isSimpleType()) { return '"' + type.name().toLowerCase() + '"'; // depends on control dependency: [if], data = [none] } StringBuilder builder = new StringBuilder(); JsonWriter writer = new JsonWriter(CharStreams.asWriter(builder));...
public class class_name { public List<Transition> getTransitions(Long fromWorkId, Integer eventType, String completionCode) { List<Transition> allTransitions = getAllTransitions(fromWorkId); List<Transition> returnSet = findTransitions(allTransitions, eventType, completionCode); if (returnSet.s...
public class class_name { public List<Transition> getTransitions(Long fromWorkId, Integer eventType, String completionCode) { List<Transition> allTransitions = getAllTransitions(fromWorkId); List<Transition> returnSet = findTransitions(allTransitions, eventType, completionCode); if (returnSet.s...
public class class_name { public MockResponse setBody(String body) { try { return setBody(body.getBytes("UTF-8")); } catch (UnsupportedEncodingException e) { throw new AssertionError(); } } }
public class class_name { public MockResponse setBody(String body) { try { return setBody(body.getBytes("UTF-8")); // depends on control dependency: [try], data = [none] } catch (UnsupportedEncodingException e) { throw new AssertionError(); } // depends on control depend...