code
stringlengths
130
281k
code_dependency
stringlengths
182
306k
public class class_name { String assertion() { String assertion = assertionForEmailAndSite(email, getRemoteURL()); if (assertion == null) { Log.w(TAG, "PersonaAuthorizer<%s> no assertion found for: %s", email, getRemoteURL()); return null; } Map<String, Object> r...
public class class_name { String assertion() { String assertion = assertionForEmailAndSite(email, getRemoteURL()); if (assertion == null) { Log.w(TAG, "PersonaAuthorizer<%s> no assertion found for: %s", email, getRemoteURL()); // depends on control dependency: [if], data = [none] ...
public class class_name { public PStm findStatement(ClassListInterpreter classes, File file, int lineno) { for (SClassDefinition c : classes) { if (c.getName().getLocation().getFile().equals(file)) { PStm stmt = findStatement(c, lineno); if (stmt != null) { return stmt; } } } ...
public class class_name { public PStm findStatement(ClassListInterpreter classes, File file, int lineno) { for (SClassDefinition c : classes) { if (c.getName().getLocation().getFile().equals(file)) { PStm stmt = findStatement(c, lineno); if (stmt != null) { return stmt; // depends on co...
public class class_name { public void setZone(DateTimeZone newZone) { newZone = DateTimeUtils.getZone(newZone); Chronology chrono = getChronology(); if (chrono.getZone() != newZone) { setChronology(chrono.withZone(newZone)); // set via this class not super } } }
public class class_name { public void setZone(DateTimeZone newZone) { newZone = DateTimeUtils.getZone(newZone); Chronology chrono = getChronology(); if (chrono.getZone() != newZone) { setChronology(chrono.withZone(newZone)); // set via this class not super // depends on control dep...
public class class_name { public void abortExternalTx(TransactionImpl odmgTrans) { if (log.isDebugEnabled()) log.debug("abortExternTransaction was called"); if (odmgTrans == null) return; TxBuffer buf = (TxBuffer) txRepository.get(); Transaction extTx = buf != null ? buf.getExt...
public class class_name { public void abortExternalTx(TransactionImpl odmgTrans) { if (log.isDebugEnabled()) log.debug("abortExternTransaction was called"); if (odmgTrans == null) return; TxBuffer buf = (TxBuffer) txRepository.get(); Transaction extTx = buf != null ? buf.getExt...
public class class_name { @Override public JobReport mergerReports(JobReport... jobReports) { List<Long> startTimes = new ArrayList<>(); List<Long> endTimes = new ArrayList<>(); List<String> jobNames = new ArrayList<>(); JobParameters parameters = new JobParameters(); JobM...
public class class_name { @Override public JobReport mergerReports(JobReport... jobReports) { List<Long> startTimes = new ArrayList<>(); List<Long> endTimes = new ArrayList<>(); List<String> jobNames = new ArrayList<>(); JobParameters parameters = new JobParameters(); JobM...
public class class_name { void initializeLocals() { if (localsInitialized) { throw new AssertionError(); } localsInitialized = true; int reg = 0; for (Local<?> local : locals) { reg += local.initialize(reg); } int firstParamReg = reg; ...
public class class_name { void initializeLocals() { if (localsInitialized) { throw new AssertionError(); } localsInitialized = true; int reg = 0; for (Local<?> local : locals) { reg += local.initialize(reg); // depends on control dependency: [for], data ...
public class class_name { protected Drawable boundToHotspot(final Drawable marker, HotspotPlace hotspot) { if (hotspot == null) { hotspot = HotspotPlace.BOTTOM_CENTER; } final int markerWidth = marker.getIntrinsicWidth(); final int markerHeight = marker.getIntrinsicHeight(); final int offsetX; final int...
public class class_name { protected Drawable boundToHotspot(final Drawable marker, HotspotPlace hotspot) { if (hotspot == null) { hotspot = HotspotPlace.BOTTOM_CENTER; // depends on control dependency: [if], data = [none] } final int markerWidth = marker.getIntrinsicWidth(); final int markerHeight = marker....
public class class_name { @Override public synchronized void onNext(final RuntimeStart startTime) { if (this.isPidNotWritten()) { final long pid = OSUtils.getPID(); final File outfile = new File(PID_FILE_NAME); LOG.log(Level.FINEST, "Storing pid `" + pid + "` in file " + outfile.getAbsolutePath...
public class class_name { @Override public synchronized void onNext(final RuntimeStart startTime) { if (this.isPidNotWritten()) { final long pid = OSUtils.getPID(); final File outfile = new File(PID_FILE_NAME); LOG.log(Level.FINEST, "Storing pid `" + pid + "` in file " + outfile.getAbsolutePath...
public class class_name { public static String toBinary(final byte[] pBytes) { String ret = null; if (pBytes != null && pBytes.length > 0) { BigInteger val = new BigInteger(bytesToStringNoSpace(pBytes), HEXA); StringBuilder build = new StringBuilder(val.toString(2)); // left pad with 0 to fit byte si...
public class class_name { public static String toBinary(final byte[] pBytes) { String ret = null; if (pBytes != null && pBytes.length > 0) { BigInteger val = new BigInteger(bytesToStringNoSpace(pBytes), HEXA); StringBuilder build = new StringBuilder(val.toString(2)); // left pad with 0 to fit byte si...
public class class_name { public String getRepository() { if (repository == null) { try { return repositoryService.getCurrentRepository().getConfiguration().getName(); } catch (RepositoryException e) { throw new RuntimeException("Can n...
public class class_name { public String getRepository() { if (repository == null) { try { return repositoryService.getCurrentRepository().getConfiguration().getName(); // depends on control dependency: [try], data = [none] } catch (RepositoryException e) ...
public class class_name { private Record parseResponse(InputStream response) throws StageException { Record record = null; if (conf.httpMethod == HttpMethod.HEAD) { // Head will have no body so can't be parsed. Return an empty record. record = getContext().createRecord(""); record.set(Field...
public class class_name { private Record parseResponse(InputStream response) throws StageException { Record record = null; if (conf.httpMethod == HttpMethod.HEAD) { // Head will have no body so can't be parsed. Return an empty record. record = getContext().createRecord(""); record.set(Field...
public class class_name { public void clear() { if (m_handlerRegistration != null) { m_handlerRegistration.removeHandler(); m_handlerRegistration = null; } m_changeListeners.clear(); m_scopeValues.clear(); m_observerdEntity = null; } }
public class class_name { public void clear() { if (m_handlerRegistration != null) { m_handlerRegistration.removeHandler(); // depends on control dependency: [if], data = [none] m_handlerRegistration = null; // depends on control dependency: [if], data = [none] } ...
public class class_name { protected void populateObjectMetadata(HttpResponse response, ObjectMetadata metadata) { for (Entry<String, String> header : response.getHeaders().entrySet()) { String key = header.getKey(); if (StringUtils.beginsWithIgnoreCase(key, Headers.S3_USER_METADATA_PREF...
public class class_name { protected void populateObjectMetadata(HttpResponse response, ObjectMetadata metadata) { for (Entry<String, String> header : response.getHeaders().entrySet()) { String key = header.getKey(); if (StringUtils.beginsWithIgnoreCase(key, Headers.S3_USER_METADATA_PREF...
public class class_name { @Override public JSONObject toJsonObject() throws JSONException { JSONObject returnVal = new JSONObject(); //Template Name... if(this.getTemplateName() != null) { returnVal.put(JSONMapping.TEMPLATE_NAME, this.getTemplateNam...
public class class_name { @Override public JSONObject toJsonObject() throws JSONException { JSONObject returnVal = new JSONObject(); //Template Name... if(this.getTemplateName() != null) { returnVal.put(JSONMapping.TEMPLATE_NAME, this.getTemplateNam...
public class class_name { public void convertGeometryFromEnuToWgs84( Geometry geometryEnu ) { Coordinate[] coordinates = geometryEnu.getCoordinates(); for( int i = 0; i < coordinates.length; i++ ) { Coordinate wgs84 = enuToWgs84(coordinates[i]); coordinates[i].x = wgs84.x; ...
public class class_name { public void convertGeometryFromEnuToWgs84( Geometry geometryEnu ) { Coordinate[] coordinates = geometryEnu.getCoordinates(); for( int i = 0; i < coordinates.length; i++ ) { Coordinate wgs84 = enuToWgs84(coordinates[i]); coordinates[i].x = wgs84.x; // de...
public class class_name { public void setTextOrientation(final TextOrientation ORIENTATION) { if (null == textOrientation) { _textOrientation = ORIENTATION; redraw(); } else { textOrientation.set(ORIENTATION); } } }
public class class_name { public void setTextOrientation(final TextOrientation ORIENTATION) { if (null == textOrientation) { _textOrientation = ORIENTATION; // depends on control dependency: [if], data = [none] redraw(); // depends on control dependency: [if], data = [none] } el...
public class class_name { public void setKeyword(java.util.Collection<KeywordFilter> keyword) { if (keyword == null) { this.keyword = null; return; } this.keyword = new java.util.ArrayList<KeywordFilter>(keyword); } }
public class class_name { public void setKeyword(java.util.Collection<KeywordFilter> keyword) { if (keyword == null) { this.keyword = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.keyword...
public class class_name { private void cloneTransitionPath(MDAGNode pivotConfluenceNode, String transitionStringToPivotNode, String str) { MDAGNode lastTargetNode = pivotConfluenceNode.transition(str); //Will store the last node which was used as the base of a cloning operation MDAGNode lastCl...
public class class_name { private void cloneTransitionPath(MDAGNode pivotConfluenceNode, String transitionStringToPivotNode, String str) { MDAGNode lastTargetNode = pivotConfluenceNode.transition(str); //Will store the last node which was used as the base of a cloning operation MDAGNode lastCl...
public class class_name { private boolean canStay(VM vm) { Mapping m = rp.getSourceModel().getMapping(); if (m.isRunning(vm)) { int curPos = rp.getNode(m.getVMLocation(vm)); if (!rp.getVMAction(vm).getDSlice().getHoster().contains(curPos)) { return false; ...
public class class_name { private boolean canStay(VM vm) { Mapping m = rp.getSourceModel().getMapping(); if (m.isRunning(vm)) { int curPos = rp.getNode(m.getVMLocation(vm)); if (!rp.getVMAction(vm).getDSlice().getHoster().contains(curPos)) { return false; // depe...
public class class_name { public <OUT> DataStreamSource<OUT> fromCollection(Collection<OUT> data) { Preconditions.checkNotNull(data, "Collection must not be null"); if (data.isEmpty()) { throw new IllegalArgumentException("Collection must not be empty"); } OUT first = data.iterator().next(); if (first ==...
public class class_name { public <OUT> DataStreamSource<OUT> fromCollection(Collection<OUT> data) { Preconditions.checkNotNull(data, "Collection must not be null"); if (data.isEmpty()) { throw new IllegalArgumentException("Collection must not be empty"); } OUT first = data.iterator().next(); if (first ==...
public class class_name { private void subscribe(Object subscriber, SubscriberMethod subscriberMethod) { Class<?> eventType = subscriberMethod.eventType; Subscription newSubscription = new Subscription(subscriber, subscriberMethod); CopyOnWriteArrayList<Subscription> subscriptions = subscriptio...
public class class_name { private void subscribe(Object subscriber, SubscriberMethod subscriberMethod) { Class<?> eventType = subscriberMethod.eventType; Subscription newSubscription = new Subscription(subscriber, subscriberMethod); CopyOnWriteArrayList<Subscription> subscriptions = subscriptio...
public class class_name { public void marshall(AssociateAdminAccountRequest associateAdminAccountRequest, ProtocolMarshaller protocolMarshaller) { if (associateAdminAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(AssociateAdminAccountRequest associateAdminAccountRequest, ProtocolMarshaller protocolMarshaller) { if (associateAdminAccountRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public HtmlPolicyBuilder allowElements( ElementPolicy policy, String... elementNames) { invalidateCompiledState(); for (String elementName : elementNames) { elementName = HtmlLexer.canonicalName(elementName); ElementPolicy newPolicy = ElementPolicy.Util.join( ...
public class class_name { public HtmlPolicyBuilder allowElements( ElementPolicy policy, String... elementNames) { invalidateCompiledState(); for (String elementName : elementNames) { elementName = HtmlLexer.canonicalName(elementName); // depends on control dependency: [for], data = [elementName] ...
public class class_name { public String[] getAllTemplateNames(boolean recurse) throws IOException { if (mTemplateProviderMap == null) { synchronized (this) { mTemplateProviderMap = new HashMap<String, CompilationProvider>(); for (CompilationProvider...
public class class_name { public String[] getAllTemplateNames(boolean recurse) throws IOException { if (mTemplateProviderMap == null) { synchronized (this) { mTemplateProviderMap = new HashMap<String, CompilationProvider>(); for (CompilationProvider...
public class class_name { public static MapBounds adjustBoundsToScaleAndMapSize( final GenericMapAttributeValues mapValues, final Rectangle paintArea, final MapBounds bounds, final double dpi) { MapBounds newBounds = bounds; if (mapValues.isUseNearestScal...
public class class_name { public static MapBounds adjustBoundsToScaleAndMapSize( final GenericMapAttributeValues mapValues, final Rectangle paintArea, final MapBounds bounds, final double dpi) { MapBounds newBounds = bounds; if (mapValues.isUseNearestScal...
public class class_name { public static Boolean xor(Boolean... bools) { Parameters.checkCondition(bools.length > 0); boolean xor = false; for (Boolean bool : bools) { if (bool) { if (xor) { return FALSE; } else { xor = true; } } } return xor ? TRUE : FALSE; } }
public class class_name { public static Boolean xor(Boolean... bools) { Parameters.checkCondition(bools.length > 0); boolean xor = false; for (Boolean bool : bools) { if (bool) { if (xor) { return FALSE; // depends on control dependency: [if], data = [none] } else { xor = true; // depends o...
public class class_name { @Override public short getShort(final int index) { boundsCheck(index, Bits.SHORT_SIZE_IN_BYTES); short bits = MEM.getShort(byteArray, addressOffset + index); if (NATIVE_BYTE_ORDER != PROTOCOL_BYTE_ORDER) { bits = Short.reverseBytes(bits); } ...
public class class_name { @Override public short getShort(final int index) { boundsCheck(index, Bits.SHORT_SIZE_IN_BYTES); short bits = MEM.getShort(byteArray, addressOffset + index); if (NATIVE_BYTE_ORDER != PROTOCOL_BYTE_ORDER) { bits = Short.reverseBytes(bits); // depends on...
public class class_name { public boolean isDeprecated(Class<?> clazz) { // check if class is marked as deprecated if (clazz.getAnnotation(Deprecated.class) != null) { return true; } // check if super class is deprecated Class<?> superClass = clazz.getSupe...
public class class_name { public boolean isDeprecated(Class<?> clazz) { // check if class is marked as deprecated if (clazz.getAnnotation(Deprecated.class) != null) { return true; // depends on control dependency: [if], data = [none] } // check if super class is ...
public class class_name { private String convertOutputToHtml(String content) { if (content.length() == 0) { return ""; } StringBuilder buffer = new StringBuilder(); for (String line : content.split("\n")) { buffer.append(CmsEncoder.escapeXml(line) + "<br>"); ...
public class class_name { private String convertOutputToHtml(String content) { if (content.length() == 0) { return ""; // depends on control dependency: [if], data = [none] } StringBuilder buffer = new StringBuilder(); for (String line : content.split("\n")) { b...
public class class_name { @Override public void deleteUnpackedWAR(StandardContext standardContext) { File unpackDir = new File(standardHost.getAppBase(), standardContext.getPath().substring(1)); if (unpackDir.exists()) { ExpandWar.deleteDir(unpackDir); } } }
public class class_name { @Override public void deleteUnpackedWAR(StandardContext standardContext) { File unpackDir = new File(standardHost.getAppBase(), standardContext.getPath().substring(1)); if (unpackDir.exists()) { ExpandWar.deleteDir(unpackDir); // depends on control ...
public class class_name { public String replaceObjectNameParameters (String pattern, MBeanLocationParameterSource parameterSource) { Matcher matcher = replaceParamPattern.matcher(pattern); StringBuffer result = new StringBuffer(); while ( matcher.find() ) { String name = matcher.gr...
public class class_name { public String replaceObjectNameParameters (String pattern, MBeanLocationParameterSource parameterSource) { Matcher matcher = replaceParamPattern.matcher(pattern); StringBuffer result = new StringBuffer(); while ( matcher.find() ) { String name = matcher.gr...
public class class_name { public Query rewrite(IndexReader reader) throws IOException { MoreLikeThis more = new MoreLikeThis(reader); more.setAnalyzer(analyzer); more.setFieldNames(new String[]{FieldNames.FULLTEXT}); more.setMinWordLen(4); Query similarityQuery = null; T...
public class class_name { public Query rewrite(IndexReader reader) throws IOException { MoreLikeThis more = new MoreLikeThis(reader); more.setAnalyzer(analyzer); more.setFieldNames(new String[]{FieldNames.FULLTEXT}); more.setMinWordLen(4); Query similarityQuery = null; T...
public class class_name { public static String computeNewTitleProperty(String name) { String title = name; int lastDot = title.lastIndexOf('.'); // check the mime type for the file extension if ((lastDot > 0) && (lastDot < (title.length() - 1))) { // remove suffix for Title...
public class class_name { public static String computeNewTitleProperty(String name) { String title = name; int lastDot = title.lastIndexOf('.'); // check the mime type for the file extension if ((lastDot > 0) && (lastDot < (title.length() - 1))) { // remove suffix for Title...
public class class_name { @Override public Long dbSize(byte[] pattern) { long dbSize = 0L; Jedis jedis = getJedis(); try { ScanParams params = new ScanParams(); params.count(count); params.match(pattern); byte[] cursor = ScanParams.SCAN_POINTE...
public class class_name { @Override public Long dbSize(byte[] pattern) { long dbSize = 0L; Jedis jedis = getJedis(); try { ScanParams params = new ScanParams(); params.count(count); // depends on control dependency: [try], data = [none] params.match(patte...
public class class_name { protected BaseFeatureData selectFeatures(IDataSet dataSet) { ChiSquareFeatureExtractor chiSquareFeatureExtractor = new ChiSquareFeatureExtractor(); logger.start("使用卡方检测选择特征中..."); //FeatureStats对象包含文档中所有特征及其统计信息 BaseFeatureData featureData = chiSquareFeatu...
public class class_name { protected BaseFeatureData selectFeatures(IDataSet dataSet) { ChiSquareFeatureExtractor chiSquareFeatureExtractor = new ChiSquareFeatureExtractor(); logger.start("使用卡方检测选择特征中..."); //FeatureStats对象包含文档中所有特征及其统计信息 BaseFeatureData featureData = chiSquareFeatu...
public class class_name { public String getRawJobHistory(QualifiedJobId jobId) throws IOException { String historyData = null; byte[] rowKey = idConv.toBytes(jobId); Get get = new Get(rowKey); get.addColumn(Constants.RAW_FAM_BYTES, Constants.JOBHISTORY_COL_BYTES); Table rawTable = null; try { ...
public class class_name { public String getRawJobHistory(QualifiedJobId jobId) throws IOException { String historyData = null; byte[] rowKey = idConv.toBytes(jobId); Get get = new Get(rowKey); get.addColumn(Constants.RAW_FAM_BYTES, Constants.JOBHISTORY_COL_BYTES); Table rawTable = null; try { ...
public class class_name { public static INDArray amax(INDArray x, INDArray y, INDArray z, int... dimensions) { if(dimensions == null || dimensions.length == 0) { validateShapesNoDimCase(x,y,z); return Nd4j.getExecutioner().exec(new AMax(x,y,z)); } return Nd4j.getExecuti...
public class class_name { public static INDArray amax(INDArray x, INDArray y, INDArray z, int... dimensions) { if(dimensions == null || dimensions.length == 0) { validateShapesNoDimCase(x,y,z); // depends on control dependency: [if], data = [none] return Nd4j.getExecutioner().exec(new A...
public class class_name { public static Object toResultCheckIfNull(Object value, String desc) { if (value == null) { if (desc.length() == 1) { switch (desc.charAt(0)) { case 'I': return DEFAULT_INT; case 'B': return DEFAULT_BYTE; case 'C': return DEFAULT_CHAR; case 'S': ...
public class class_name { public static Object toResultCheckIfNull(Object value, String desc) { if (value == null) { if (desc.length() == 1) { switch (desc.charAt(0)) { case 'I': return DEFAULT_INT; case 'B': return DEFAULT_BYTE; case 'C': return DEFAULT_CHAR; case 'S': ...
public class class_name { public boolean isEventStream() { boolean isEventStream = false; if (!getResponseHeader().isEmpty()) { isEventStream = getResponseHeader().hasContentType("text/event-stream"); } else { // response not available // is request for event-stream? String acceptHeader = getR...
public class class_name { public boolean isEventStream() { boolean isEventStream = false; if (!getResponseHeader().isEmpty()) { isEventStream = getResponseHeader().hasContentType("text/event-stream"); // depends on control dependency: [if], data = [none] } else { // response not available // is re...
public class class_name { public static void setLong(MemorySegment[] segments, int offset, long value) { if (inFirstSegment(segments, offset, 8)) { segments[0].putLong(offset, value); } else { setLongMultiSegments(segments, offset, value); } } }
public class class_name { public static void setLong(MemorySegment[] segments, int offset, long value) { if (inFirstSegment(segments, offset, 8)) { segments[0].putLong(offset, value); // depends on control dependency: [if], data = [none] } else { setLongMultiSegments(segments, offset, value); // depends on c...
public class class_name { public static void removeOverlaps(Collection<TermOccurrence> referenceSet, Collection<TermOccurrence> occurrenceSet) { Iterator<TermOccurrence> it = occurrenceSet.iterator(); while(it.hasNext()) { TermOccurrence occ = it.next(); for(TermOccurrence refOcc:referenceSet) { if(occ.g...
public class class_name { public static void removeOverlaps(Collection<TermOccurrence> referenceSet, Collection<TermOccurrence> occurrenceSet) { Iterator<TermOccurrence> it = occurrenceSet.iterator(); while(it.hasNext()) { TermOccurrence occ = it.next(); for(TermOccurrence refOcc:referenceSet) { if(occ.g...
public class class_name { @SuppressWarnings("unchecked") public static <T> T getByNameAndType(Object object, String fieldName, Class<T> expectedFieldType) { Field foundField = findSingleFieldUsingStrategy(new FieldNameAndTypeMatcherStrategy(fieldName, expectedFieldType), object, true, getTy...
public class class_name { @SuppressWarnings("unchecked") public static <T> T getByNameAndType(Object object, String fieldName, Class<T> expectedFieldType) { Field foundField = findSingleFieldUsingStrategy(new FieldNameAndTypeMatcherStrategy(fieldName, expectedFieldType), object, true, getTy...
public class class_name { private void doStartPlaying() { if (currentContainer!=null) { doStopPlaying(); if (currentContainer instanceof ModContainer) { System.out.println(((ModContainer) currentContainer).getCurrentMod().toString()); } Mixer mixer = createNewMixer(); mixer.setExportFile(wav...
public class class_name { private void doStartPlaying() { if (currentContainer!=null) { doStopPlaying(); // depends on control dependency: [if], data = [none] if (currentContainer instanceof ModContainer) { System.out.println(((ModContainer) currentContainer).getCurrentMod().toString()); // depends o...
public class class_name { public void setFilePaths(Path... filePaths) { if (!supportsMultiPaths() && filePaths.length > 1) { throw new UnsupportedOperationException( "Multiple paths are not supported by this FileInputFormat."); } if (filePaths.length < 1) { throw new IllegalArgumentException("At least ...
public class class_name { public void setFilePaths(Path... filePaths) { if (!supportsMultiPaths() && filePaths.length > 1) { throw new UnsupportedOperationException( "Multiple paths are not supported by this FileInputFormat."); } if (filePaths.length < 1) { throw new IllegalArgumentException("At least ...
public class class_name { public static String inspect(Annotation a) { final int begin = 40, after = 50; try { JCas jCas = a.getCAS().getJCas(); String text = jCas.getDocumentText(); StringBuilder sb = new StringBuilder(); if (a.getBegin() - begin < 0)...
public class class_name { public static String inspect(Annotation a) { final int begin = 40, after = 50; try { JCas jCas = a.getCAS().getJCas(); String text = jCas.getDocumentText(); StringBuilder sb = new StringBuilder(); if (a.getBegin() - begin < 0)...
public class class_name { static List<Long> fixupShortcuts(List<Long> path, NavMeshQuery navQuery) { if (path.size() < 3) { return path; } // Get connected polygons List<Long> neis = new ArrayList<>(); Result<Tupple2<MeshTile, Poly>> tileAndPoly = navQuery.getAttac...
public class class_name { static List<Long> fixupShortcuts(List<Long> path, NavMeshQuery navQuery) { if (path.size() < 3) { return path; // depends on control dependency: [if], data = [none] } // Get connected polygons List<Long> neis = new ArrayList<>(); Result<Tu...
public class class_name { public SeleniumAssert hasSize(Integer size) { if (actual instanceof PreviousWebElements) { Integers.instance().assertEqual(info, ((PreviousWebElements) actual).getPreviousWebElements().size(), size); } return this; } }
public class class_name { public SeleniumAssert hasSize(Integer size) { if (actual instanceof PreviousWebElements) { Integers.instance().assertEqual(info, ((PreviousWebElements) actual).getPreviousWebElements().size(), size); // depends on control dependency: [if], data = [none] } r...
public class class_name { public static TypePath fromString(final String typePath) { if (typePath == null || typePath.length() == 0) { return null; } int n = typePath.length(); ByteVector out = new ByteVector(n); out.putByte(0); for (int i = 0; i < n;) { ...
public class class_name { public static TypePath fromString(final String typePath) { if (typePath == null || typePath.length() == 0) { return null; // depends on control dependency: [if], data = [none] } int n = typePath.length(); ByteVector out = new ByteVector(n); ...
public class class_name { @Override public void update(Object entry) { Assert.notNull(entry, "Entry must not be null"); if (LOG.isDebugEnabled()) { LOG.debug(String.format("Updating entry - %s$1", entry)); } Name originalId = odm.getId(entry); Name calculatedId ...
public class class_name { @Override public void update(Object entry) { Assert.notNull(entry, "Entry must not be null"); if (LOG.isDebugEnabled()) { LOG.debug(String.format("Updating entry - %s$1", entry)); // depends on control dependency: [if], data = [none] } Name ori...
public class class_name { private static Observable<List<File>> createFilesFromClipData(final Context context, final ClipData clipData, final MimeMap mimeTypeMap) { return Observable.defer(new Func0<Observable<List<File>>>() { @Override public Observable<List<File>> call() { int numOfUris...
public class class_name { private static Observable<List<File>> createFilesFromClipData(final Context context, final ClipData clipData, final MimeMap mimeTypeMap) { return Observable.defer(new Func0<Observable<List<File>>>() { @Override public Observable<List<File>> call() { int numOfUris...
public class class_name { public Observable<ServiceResponse<DnsNameAvailabilityResultInner>> checkDnsNameAvailabilityWithServiceResponseAsync(String location, String domainNameLabel) { if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); ...
public class class_name { public Observable<ServiceResponse<DnsNameAvailabilityResultInner>> checkDnsNameAvailabilityWithServiceResponseAsync(String location, String domainNameLabel) { if (location == null) { throw new IllegalArgumentException("Parameter location is required and cannot be null."); ...
public class class_name { @Override public ImageSource apply(ImageSource source) { if (radius != 0) { if (source.isGrayscale()) { return applyGrayscale(source, radius); } else { return applyRGB(source, radius); } } else { ...
public class class_name { @Override public ImageSource apply(ImageSource source) { if (radius != 0) { if (source.isGrayscale()) { return applyGrayscale(source, radius); // depends on control dependency: [if], data = [none] } else { return applyR...
public class class_name { private boolean setupManyNesting() { BeanAttributeInformation parentAttribute = null; BeanAttributeInformation idAttribute = null; BeanInformation beanInformation = BeanInformation.get(idField.getType()); for (String attributeName : beanInformation.getAttribute...
public class class_name { private boolean setupManyNesting() { BeanAttributeInformation parentAttribute = null; BeanAttributeInformation idAttribute = null; BeanInformation beanInformation = BeanInformation.get(idField.getType()); for (String attributeName : beanInformation.getAttribute...
public class class_name { @Override public void addRemoteRepo(MavenRemoteRepository repository) { Builder builder = new Builder(repository.getId(), repository.getType(), repository.getUrl()); builder.setPolicy(new RepositoryPolicy(true, repository.getUpdatePolicy() == null ? null : repository ...
public class class_name { @Override public void addRemoteRepo(MavenRemoteRepository repository) { Builder builder = new Builder(repository.getId(), repository.getType(), repository.getUrl()); builder.setPolicy(new RepositoryPolicy(true, repository.getUpdatePolicy() == null ? null : repository ...
public class class_name { public void marshall(SetUserMFAPreferenceRequest setUserMFAPreferenceRequest, ProtocolMarshaller protocolMarshaller) { if (setUserMFAPreferenceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public void marshall(SetUserMFAPreferenceRequest setUserMFAPreferenceRequest, ProtocolMarshaller protocolMarshaller) { if (setUserMFAPreferenceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
public class class_name { public static String[] union(String[] arr1, String[] arr2) { Set<String> set = new HashSet<String>(); for (String str : arr1) { set.add(str); } for (String str : arr2) { set.add(str); } String[] result = {}; return set.toArray(result); } }
public class class_name { public static String[] union(String[] arr1, String[] arr2) { Set<String> set = new HashSet<String>(); for (String str : arr1) { set.add(str); // depends on control dependency: [for], data = [str] } for (String str : arr2) { set.add(str); // depends on control dependency: [for], ...
public class class_name { private static String normalizeDomain(String value) { if (value.startsWith(".")) { return value.substring(1); } return value.toLowerCase(); } }
public class class_name { private static String normalizeDomain(String value) { if (value.startsWith(".")) { return value.substring(1); // depends on control dependency: [if], data = [none] } return value.toLowerCase(); } }
public class class_name { public Color getColorAt(float p) { if (p <= 0) { return ((Step) steps.get(0)).col; } if (p > 1) { return ((Step) steps.get(steps.size()-1)).col; } for (int i=1;i<steps.size();i++) { Step prev = ((Step) steps.get(i-1)); Step current = ((Step) steps.get(i)); ...
public class class_name { public Color getColorAt(float p) { if (p <= 0) { return ((Step) steps.get(0)).col; // depends on control dependency: [if], data = [none] } if (p > 1) { return ((Step) steps.get(steps.size()-1)).col; // depends on control dependency: [if], data = [1)] } for (int i=1;...
public class class_name { public static OptionElement findByName(List<OptionElement> options, String name) { checkNotNull(options, "options"); checkNotNull(name, "name"); OptionElement found = null; for (OptionElement option : options) { if (option.name().equals(name)) { if (found != nul...
public class class_name { public static OptionElement findByName(List<OptionElement> options, String name) { checkNotNull(options, "options"); checkNotNull(name, "name"); OptionElement found = null; for (OptionElement option : options) { if (option.name().equals(name)) { if (found != nul...
public class class_name { public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact) { if (deployedArtifacts == null) { deployedArtifacts = new HashMap<Class<?>, List>(); } Class<?> clazz = deployedArtifact.getClass(); List artifacts = deployedArtifacts.get(clazz); if (artifa...
public class class_name { public void addDeployedArtifact(ResourceDefinitionEntity deployedArtifact) { if (deployedArtifacts == null) { deployedArtifacts = new HashMap<Class<?>, List>(); // depends on control dependency: [if], data = [none] } Class<?> clazz = deployedArtifact.getClass(); List ar...
public class class_name { protected List<CmsUUID> parseResources(String resources) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(resources)) { return Collections.emptyList(); } else { List<CmsUUID> result = new ArrayList<CmsUUID>(); String[] resArray = resources.trim(...
public class class_name { protected List<CmsUUID> parseResources(String resources) { if (CmsStringUtil.isEmptyOrWhitespaceOnly(resources)) { return Collections.emptyList(); // depends on control dependency: [if], data = [none] } else { List<CmsUUID> result = new ArrayList<CmsUU...
public class class_name { private EntityType buildEntityType(SessionFactory sessionFactory, String entityName) { EntityType entityType = (EntityType) entityTypes.get(entityName); if (null == entityType) { ClassMetadata cm = sessionFactory.getClassMetadata(entityName); if (null == cm) { logg...
public class class_name { private EntityType buildEntityType(SessionFactory sessionFactory, String entityName) { EntityType entityType = (EntityType) entityTypes.get(entityName); if (null == entityType) { ClassMetadata cm = sessionFactory.getClassMetadata(entityName); if (null == cm) { logg...
public class class_name { public static void main(String[] args) throws Exception { Options options = new Options(); HelpFormatter hf = new HelpFormatter(); hf.setWidth(100); options.addOption( Option.builder("i") .argName("in_path") .longOpt("input-file") .h...
public class class_name { public static void main(String[] args) throws Exception { Options options = new Options(); HelpFormatter hf = new HelpFormatter(); hf.setWidth(100); options.addOption( Option.builder("i") .argName("in_path") .longOpt("input-file") .h...
public class class_name { @Override public String url(Object string) { // TODO: Introduce a xwiki-commons-url module and move this code in it so that we can share it with // platform's XWikiServletURLFactory and functional test TestUtils class. String encodedURL = null; if (stri...
public class class_name { @Override public String url(Object string) { // TODO: Introduce a xwiki-commons-url module and move this code in it so that we can share it with // platform's XWikiServletURLFactory and functional test TestUtils class. String encodedURL = null; if (stri...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) { // Make sure if the use wants to select a record to re-connect the selection Record targetRecord = null; ...
public class class_name { public boolean doCommand(String strCommand, ScreenField sourceSField, int iCommandOptions) { if (strCommand.equalsIgnoreCase(MenuConstants.FORMDETAIL)) { // Make sure if the use wants to select a record to re-connect the selection Record targetRecord = null; ...
public class class_name { @SuppressWarnings("unchecked") public static <X> TypeInformation<X> parse(String infoString) { try { if (infoString == null) { throw new IllegalArgumentException("String is null."); } String clearedString = infoString.replaceAll("\\s", ""); if (clearedString.length() == 0)...
public class class_name { @SuppressWarnings("unchecked") public static <X> TypeInformation<X> parse(String infoString) { try { if (infoString == null) { throw new IllegalArgumentException("String is null."); } String clearedString = infoString.replaceAll("\\s", ""); if (clearedString.length() == 0)...
public class class_name { private void printErrors(final List<Span> falsePositives, final List<Span> falseNegatives, final String doc) { this.printStream.println("False positives: {"); for (final Span span : falsePositives) { this.printStream.println(span.getCoveredText(doc)); } this.printS...
public class class_name { private void printErrors(final List<Span> falsePositives, final List<Span> falseNegatives, final String doc) { this.printStream.println("False positives: {"); for (final Span span : falsePositives) { this.printStream.println(span.getCoveredText(doc)); // depends on control...
public class class_name { private void initInternalListener(Context context) { mInternalListener = new PlaybackListener() { @Override protected void onPlay(SoundCloudTrack track) { super.onPlay(track); mState = STATE_PLAYING; for (Cheerlea...
public class class_name { private void initInternalListener(Context context) { mInternalListener = new PlaybackListener() { @Override protected void onPlay(SoundCloudTrack track) { super.onPlay(track); mState = STATE_PLAYING; for (Cheerlea...
public class class_name { public static ManagedObjectReference[] createMORs(ManagedObject[] mos) { if (mos == null) { throw new IllegalArgumentException(); } ManagedObjectReference[] mors = new ManagedObjectReference[mos.length]; for (int i = 0; i < mos.length; i++) { ...
public class class_name { public static ManagedObjectReference[] createMORs(ManagedObject[] mos) { if (mos == null) { throw new IllegalArgumentException(); } ManagedObjectReference[] mors = new ManagedObjectReference[mos.length]; for (int i = 0; i < mos.length; i++) { ...
public class class_name { private static List<Object> processMultiBulkReply(final RedisInputStream is) { int num = Integer.parseInt(is.readLine()); log.trace("[RedisProtocol] Reply multi-bulk-reply. *{}", num); if (num == -1) { return null; } List<Object> ret = new A...
public class class_name { private static List<Object> processMultiBulkReply(final RedisInputStream is) { int num = Integer.parseInt(is.readLine()); log.trace("[RedisProtocol] Reply multi-bulk-reply. *{}", num); if (num == -1) { return null; // depends on control dependency: [if], da...
public class class_name { @SuppressWarnings({ "unchecked", "rawtypes" }) private StringBuffer getAllPublishedInterfaces(ServletContext servletContext) { StringBuffer sb = new StringBuffer(); // List all containers to find all DWR interfaces List<Container> containers = ContainerUtil.getAllPublishedContainer...
public class class_name { @SuppressWarnings({ "unchecked", "rawtypes" }) private StringBuffer getAllPublishedInterfaces(ServletContext servletContext) { StringBuffer sb = new StringBuffer(); // List all containers to find all DWR interfaces List<Container> containers = ContainerUtil.getAllPublishedContainer...
public class class_name { public void formatLine(String line, PrintWriter writer) { processingState.setLine(line); processingState.pwriter = writer; processingState = processingState.formatState.formatPartialLine(processingState); while (!processingState.isDoneWithLine()) ...
public class class_name { public void formatLine(String line, PrintWriter writer) { processingState.setLine(line); processingState.pwriter = writer; processingState = processingState.formatState.formatPartialLine(processingState); while (!processingState.isDoneWithLine()) ...
public class class_name { Constraint getLimitConstraint() { Constraint result = null; for (Constraint constraint : getConstraints()) { if (constraint.getConstraintType() == Constraint.LIMIT) { // We're assuming only one LIMIT constraint at the moment result =...
public class class_name { Constraint getLimitConstraint() { Constraint result = null; for (Constraint constraint : getConstraints()) { if (constraint.getConstraintType() == Constraint.LIMIT) { // We're assuming only one LIMIT constraint at the moment result =...
public class class_name { public static void generateMutations(long seq, TxLog txLog, Consumer<Mutation> consumer) { Map<Bytes, Mutation> mutationMap = new HashMap<>(); for (LogEntry le : txLog.getLogEntries()) { LogEntry.Operation op = le.getOp(); Column col = le.getColumn(); byte[] cf = col...
public class class_name { public static void generateMutations(long seq, TxLog txLog, Consumer<Mutation> consumer) { Map<Bytes, Mutation> mutationMap = new HashMap<>(); for (LogEntry le : txLog.getLogEntries()) { LogEntry.Operation op = le.getOp(); Column col = le.getColumn(); byte[] cf = col...
public class class_name { public static int asIntExactly(Number number) { Class clazz = number.getClass(); if (isLongRepresentableExceptLong(clazz)) { return number.intValue(); } else if (clazz == Long.class) { int intValue = number.intValue(); if (number.lo...
public class class_name { public static int asIntExactly(Number number) { Class clazz = number.getClass(); if (isLongRepresentableExceptLong(clazz)) { return number.intValue(); // depends on control dependency: [if], data = [none] } else if (clazz == Long.class) { int i...
public class class_name { protected boolean needsUpdating(CmsSetupDb dbCon, String tablename) throws SQLException { System.out.println(new Exception().getStackTrace()[0].toString()); boolean result = true; String query = readQuery(QUERY_DESCRIBE_TABLE); Map<String, String> replacer = ...
public class class_name { protected boolean needsUpdating(CmsSetupDb dbCon, String tablename) throws SQLException { System.out.println(new Exception().getStackTrace()[0].toString()); boolean result = true; String query = readQuery(QUERY_DESCRIBE_TABLE); Map<String, String> replacer = ...
public class class_name { public String getNameInClass(boolean shortenPackages, boolean useJVMMethodName, boolean hash, boolean omitMethodName) { // Convert to "nice" representation StringBuilder result = new StringBuilder(); if (!omitMethodName) { if (useJVMMethodName) { ...
public class class_name { public String getNameInClass(boolean shortenPackages, boolean useJVMMethodName, boolean hash, boolean omitMethodName) { // Convert to "nice" representation StringBuilder result = new StringBuilder(); if (!omitMethodName) { if (useJVMMethodName) { ...
public class class_name { public void close() { if (this.m_stream != null) { try { this.m_stream.close(); this.m_stream = null; } catch (IOException e) { logger.warn("Error closing stream", e); } } } }
public class class_name { public void close() { if (this.m_stream != null) { try { this.m_stream.close(); // depends on control dependency: [try], data = [none] this.m_stream = null; // depends on control dependency: [try], data = [none] } catch (IOExcept...
public class class_name { public EEnum getIfcAnalysisTheoryTypeEnum() { if (ifcAnalysisTheoryTypeEnumEEnum == null) { ifcAnalysisTheoryTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(780); } return ifcAnalysisTheoryTypeEnumEEnum; } }
public class class_name { public EEnum getIfcAnalysisTheoryTypeEnum() { if (ifcAnalysisTheoryTypeEnumEEnum == null) { ifcAnalysisTheoryTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(780); // depends on control dependency: [if], data = [none...
public class class_name { public Map<String, String> read(final String... nameMapping) throws IOException { if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } if( readRow() ) { final Map<String, String> destination = new HashMap<String, String>(); Util....
public class class_name { public Map<String, String> read(final String... nameMapping) throws IOException { if( nameMapping == null ) { throw new NullPointerException("nameMapping should not be null"); } if( readRow() ) { final Map<String, String> destination = new HashMap<String, String>(); Util....
public class class_name { public void startTracking() { if (isTracking) { return; } if (this.session == null) { addBroadcastReceiver(); } // if the session is not null, then add the callback to it right away if (getSession() != null) { ...
public class class_name { public void startTracking() { if (isTracking) { return; // depends on control dependency: [if], data = [none] } if (this.session == null) { addBroadcastReceiver(); // depends on control dependency: [if], data = [none] } /...
public class class_name { @Override public Result<Void> cacheClear(AuthzTrans trans, String cname) { TimeTaken tt = trans.start(CACHE_CLEAR + cname, Env.SUB|Env.ALWAYS); try { return service.cacheClear(trans,cname); } catch (Exception e) { trans.error().log(e,IN,CACHE_CLEAR); return Result.err(e...
public class class_name { @Override public Result<Void> cacheClear(AuthzTrans trans, String cname) { TimeTaken tt = trans.start(CACHE_CLEAR + cname, Env.SUB|Env.ALWAYS); try { return service.cacheClear(trans,cname); // depends on control dependency: [try], data = [none] } catch (Exception e) { trans...
public class class_name { public static List<Kontonummer> getKontonummerListForRegisternummer(String registernummer, int length) { KontonummerValidator.validateRegisternummerSyntax(registernummer); final class RegisternummerKontonrDigitGenerator extends KontonummerDigitGenerator { private final String regist...
public class class_name { public static List<Kontonummer> getKontonummerListForRegisternummer(String registernummer, int length) { KontonummerValidator.validateRegisternummerSyntax(registernummer); final class RegisternummerKontonrDigitGenerator extends KontonummerDigitGenerator { private final String regist...
public class class_name { public void marshall(LinuxParameters linuxParameters, ProtocolMarshaller protocolMarshaller) { if (linuxParameters == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(linuxPa...
public class class_name { public void marshall(LinuxParameters linuxParameters, ProtocolMarshaller protocolMarshaller) { if (linuxParameters == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(linuxPa...
public class class_name { Map<String, Integer> getPrefixesIds(String field, List<String> prefixes) { LinkedHashMap<String, Long> refs = getPrefixRefs(field); if (refs != null) { List<String> list = new ArrayList<>(refs.keySet()); Map<String, Integer> result = new HashMap<>(); for (String pref...
public class class_name { Map<String, Integer> getPrefixesIds(String field, List<String> prefixes) { LinkedHashMap<String, Long> refs = getPrefixRefs(field); if (refs != null) { List<String> list = new ArrayList<>(refs.keySet()); Map<String, Integer> result = new HashMap<>(); for (String pref...
public class class_name { public static int[] addToSortedIntArray(int[] a, int value) { if(a == null || a.length == 0) { return new int[] {value}; } int insertionPoint = -java.util.Arrays.binarySearch(a, value) - 1; if(insertionPoint < 0) { throw new IllegalArgumentException(String.format("Element ...
public class class_name { public static int[] addToSortedIntArray(int[] a, int value) { if(a == null || a.length == 0) { return new int[] {value}; // depends on control dependency: [if], data = [none] } int insertionPoint = -java.util.Arrays.binarySearch(a, value) - 1; if(insertionPoint < 0) { thro...
public class class_name { public void setPermittedAddresses(List<DomainMatcher> addrs) { if (addrs == null || addrs.isEmpty()) { ((HierarchicalConfiguration) getConfig()).clearTree(ADDRESS_KEY); this.permittedAddresses = Collections.emptyList(); this.permittedAddresses...
public class class_name { public void setPermittedAddresses(List<DomainMatcher> addrs) { if (addrs == null || addrs.isEmpty()) { ((HierarchicalConfiguration) getConfig()).clearTree(ADDRESS_KEY); // depends on control dependency: [if], data = [none] this.permittedAddresses = Collect...
public class class_name { public void setUsers(java.util.Collection<UserMetadata> users) { if (users == null) { this.users = null; return; } this.users = new java.util.ArrayList<UserMetadata>(users); } }
public class class_name { public void setUsers(java.util.Collection<UserMetadata> users) { if (users == null) { this.users = null; // depends on control dependency: [if], data = [none] return; // depends on control dependency: [if], data = [none] } this.users = new java...
public class class_name { @Override public void removeByCPInstanceUuid(String CPInstanceUuid) { for (CommerceWishListItem commerceWishListItem : findByCPInstanceUuid( CPInstanceUuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(commerceWishListItem); } } }
public class class_name { @Override public void removeByCPInstanceUuid(String CPInstanceUuid) { for (CommerceWishListItem commerceWishListItem : findByCPInstanceUuid( CPInstanceUuid, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(commerceWishListItem); // depends on control dependency: [for], data = [...
public class class_name { private static boolean hasAlwaysDeniedPermission(Source source, String... deniedPermissions) { for (String permission : deniedPermissions) { if (!source.isShowRationalePermission(permission)) { return true; } } return false; ...
public class class_name { private static boolean hasAlwaysDeniedPermission(Source source, String... deniedPermissions) { for (String permission : deniedPermissions) { if (!source.isShowRationalePermission(permission)) { return true; // depends on control dependency: [if], data = [no...
public class class_name { protected ModifiableRule retrieveModifiableOverriden() { ModifiableRule overridenRule = null; //use local var to prevent potential concurent cleanup SipSession session = getSession(); if (session != null && session.getServletContext() != null) {...
public class class_name { protected ModifiableRule retrieveModifiableOverriden() { ModifiableRule overridenRule = null; //use local var to prevent potential concurent cleanup SipSession session = getSession(); if (session != null && session.getServletContext() != null) {...
public class class_name { public static <IN, OUT> List<OUT> create(IN[] arr, Creator<IN, OUT> creator) { if (arr == null) { return null; } ArrayList<OUT> list = new ArrayList<>(arr.length); for (IN value : arr) { OUT item = value == null ? null : creator.create...
public class class_name { public static <IN, OUT> List<OUT> create(IN[] arr, Creator<IN, OUT> creator) { if (arr == null) { return null; // depends on control dependency: [if], data = [none] } ArrayList<OUT> list = new ArrayList<>(arr.length); for (IN value : arr) { ...
public class class_name { public void calculateGisModelDwgPolylines() { for( int i = 0; i < dwgObjects.size(); i++ ) { DwgObject pol = (DwgObject) dwgObjects.get(i); if (pol instanceof DwgPolyline2D) { int flags = ((DwgPolyline2D) pol).getFlags(); int fir...
public class class_name { public void calculateGisModelDwgPolylines() { for( int i = 0; i < dwgObjects.size(); i++ ) { DwgObject pol = (DwgObject) dwgObjects.get(i); if (pol instanceof DwgPolyline2D) { int flags = ((DwgPolyline2D) pol).getFlags(); int fir...
public class class_name { @Override public void store(BinaryEntry entry) { try { ByteString key = getRiakKey(entry); ByteString value = ByteString.copyFrom(entry.getBinaryValue().toByteArray()); client.store(new RiakObject(bucket, key, value)); } catch (...
public class class_name { @Override public void store(BinaryEntry entry) { try { ByteString key = getRiakKey(entry); ByteString value = ByteString.copyFrom(entry.getBinaryValue().toByteArray()); client.store(new RiakObject(bucket, key, value)); // depends on control dep...
public class class_name { @Override public int getTransactionTimeout() { for (TransactionSettingsProvider s : _serverWideConfigProvider.getTransactionSettingsProviders().services()) { if (s.isActive()) { final GlobalTransactionSettings gts = s.getGlobalTransactionSettings(); ...
public class class_name { @Override public int getTransactionTimeout() { for (TransactionSettingsProvider s : _serverWideConfigProvider.getTransactionSettingsProviders().services()) { if (s.isActive()) { final GlobalTransactionSettings gts = s.getGlobalTransactionSettings(); ...
public class class_name { @Override public void notifyListeners(GerritEvent event) { if (event instanceof CommentAdded) { if (ignoreEvent((CommentAdded)event)) { logger.trace("CommentAdded ignored"); return; } } for (GerritEventListene...
public class class_name { @Override public void notifyListeners(GerritEvent event) { if (event instanceof CommentAdded) { if (ignoreEvent((CommentAdded)event)) { logger.trace("CommentAdded ignored"); // depends on control dependency: [if], data = [none] return; /...
public class class_name { @Override protected void informSynchronizations(boolean isCompleting) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "informSynchronizations: isCompleting="+isCompleting); ensureActive(); boolean shouldContinue = true;...
public class class_name { @Override protected void informSynchronizations(boolean isCompleting) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "informSynchronizations: isCompleting="+isCompleting); ensureActive(); boolean shouldContinue = true;...
public class class_name { public String readUTF8(final int offset, final char[] charBuffer) { int constantPoolEntryIndex = readUnsignedShort(offset); if (offset == 0 || constantPoolEntryIndex == 0) { return null; } return readUtf(constantPoolEntryIndex, charBuffer); } }
public class class_name { public String readUTF8(final int offset, final char[] charBuffer) { int constantPoolEntryIndex = readUnsignedShort(offset); if (offset == 0 || constantPoolEntryIndex == 0) { return null; // depends on control dependency: [if], data = [none] } return readUtf(constantPoolE...
public class class_name { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = context.createResource(PathAddress.EMPTY_ADDRESS); final ModelNode model = resource.getModel(); for (SimpleAttributeDefinition at...
public class class_name { public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { final Resource resource = context.createResource(PathAddress.EMPTY_ADDRESS); final ModelNode model = resource.getModel(); for (SimpleAttributeDefinition at...
public class class_name { public boolean sendMessage(WebSocketMessage<?> message) { boolean sentSuccessfully = false; if (sessions.isEmpty()) { LOG.warn("No Web Socket session exists - message cannot be sent"); } for (WebSocketSession session : sessions.values()) { ...
public class class_name { public boolean sendMessage(WebSocketMessage<?> message) { boolean sentSuccessfully = false; if (sessions.isEmpty()) { LOG.warn("No Web Socket session exists - message cannot be sent"); // depends on control dependency: [if], data = [none] } for (We...