content
stringlengths
40
137k
"private void updateImageCache() {\n HashSet<Path> toBeRemoved = new HashSet<Path>(mImageCache.keySet());\n for (int i = mActiveStart; i < mActiveEnd; ++i) {\n MediaItem item = mData[i % DATA_CACHE_SIZE];\n if (item == null)\n continue;\n Path path = item.getPath();\n ImageE...
"protected String getEntry(String name, Testament testament, long index) throws IOException {\n RandomAccessFile idxRaf = otIdxRaf;\n RandomAccessFile txtRaf = otTxtRaf;\n if (testament == Testament.NEW) {\n idxRaf = ntIdxRaf;\n txtRaf = ntTxtRaf;\n }\n DataIndex dataIndex = getIndex(idxRaf...
"private boolean createSqlQuery(String dataFilterAsString, Indicator indicator) throws ParseException, AnalysisExecutionException {\n ModelElement analyzedElement = indicator.getAnalyzedElement();\n if (analyzedElement == null) {\n return traceError(\"String_Node_Str\" + indicator.getName());\n }\n T...
"GenericTopLevel createGenericTopLevel(URI identity, QName rdfType) throws SBOLValidationException {\n if (rdfType.getNamespaceURI().equals(Sbol2Terms.sbol2.getNamespaceURI()) || rdfType.getNamespaceURI().equals(Sbol1Terms.sbol1.getNamespaceURI())) {\n throw new SBOLValidationException(rdfType.getLocalPart() ...
"public Map<Object, Object> getConfigParams() {\n return config.getParams();\n}\n"
"public void onMouseMove(MouseMoveEvent event) {\n Widget source = source(event);\n Element elem = source.getElement();\n listener.onMouseMove(source, event.getRelativeX(elem), event.getRelativeY(elem));\n}\n"
"public static void validateContentType(final Header headers, final ContentType expected) throws BatchDeserializerException {\n final List<String> contentTypes = headers.getHeaders(HttpHeader.CONTENT_TYPE);\n if (contentTypes.isEmpty()) {\n throw new BatchDeserializerException(\"String_Node_Str\", MessageK...
"public DetachVolumeResponseType detach(DetachVolumeType request) throws EucalyptusCloudException {\n DetachVolumeResponseType reply = (DetachVolumeResponseType) request.getReply();\n Context ctx = Contexts.lookup();\n Volume vol = null;\n EntityWrapper<Volume> db = EntityWrapper.get(Volume.class);\n try...
"private int findCrossings(List<LineLatLng> polygon, LineLatLng gridLine) {\n double closestDistance = Double.MAX_VALUE;\n double farestDistance = Double.MIN_VALUE;\n int crosses = 0;\n for (LineLatLng polyLine : polygon) {\n try {\n crossings.add(GeoTools.FindLineIntersection(polyLine, gr...
"private String getStringFromSpan(Span reducedSpan, String[] tokens) {\n StringBuilder sb = new StringBuilder();\n for (int si = reducedSpan.getStart(); si < reducedSpan.getEnd(); si++) {\n sb.append(tokens[si]).append(\"String_Node_Str\");\n }\n String neString = null;\n if (sb.toString().startsW...
"public void testRebaselineWithConflictsAbandon() throws Exception {\n ConflictResolverOperation resolverOperation = new ConflictResolverOperation(\"String_Node_Str\", MergeManagerTest.class.getCanonicalName()) {\n protected void doWork(IProgressMonitor monitor) throws Exception {\n assertTrue(\"St...
"public static String getContextTrueValue(DatabaseConnection conn, String paramValue) {\n String trueSchemaName = null;\n String tempVlaue = paramValue;\n if (conn.isContextMode()) {\n if (conn.getContextId() != null && !\"String_Node_Str\".equals(conn.getContextId())) {\n String contextID = ...
"public CacheResult fetch(RuleKey ruleKey, LazyPath output) {\n CacheResult cacheResult = CacheResult.miss();\n for (ArtifactCache artifactCache : artifactCaches) {\n cacheResult = artifactCache.fetch(ruleKey, output);\n if (cacheResult.getType().isSuccess()) {\n break;\n }\n }\...
"private void drawImage2(Graphics2D g) {\n g.setColor(Color.GRAY);\n g.fillRect(0, 0, 205, 304);\n ArrayList<GameItem> items = player.getInventory().getItems();\n int x = 0, y = 0;\n for (int i = 0; i < items.size(); i++) {\n drawItem(items.get(i), g, 2 + x * 40, 29 + y * 40);\n if (++x == ...
"private void sendNotification() {\n notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n Intent intent = new Intent(this, SplashActivity.class);\n saveOpeningDialogData(userId, dialogId);\n PendingIntent contentIntent = PendingIntent.getActivity(this, ConstsCore.ZER...
"public ClassInfo resolve(String... taxa) {\n if (taxa.length > 0) {\n Set<ClassInfo> resolved = new HashSet<>();\n for (String taxon : taxa) {\n ClassInfo taxonClassInfo = classInfo(taxon);\n if (taxonClassInfo != null) {\n ClassInfo superclassInfo = classInfo(taxo...
"public MessageInfo getMessages(long olderThan, long newerThan, String threaded, int limit) {\n MultiValueMap<String, String> params = buildParams(olderThan, newerThan, threaded, limit);\n return restTemplate.getForObject(buildUri(\"String_Node_Str\", params), MessageInfo.class);\n}\n"
"public MapPlot2D getLayout(GeoProjection projection) {\n MapPlot2D plot = new MapPlot2D(projection) {\n protected Axis1D createAxisZ() {\n return new TaggedAxis1D();\n }\n protected AxisMouseListener createAxisMouseListenerZ() {\n return new TaggedAxisMouseListener1D();\n ...
"public void setValue(BindELContext ctx, Object value) {\n int idx = BindRadioRenderer.this.getRenderedIndex(radiogroup, radiogroup.getChildren().indexOf(nr));\n ListModel<?> listmodel = radiogroup.getModel();\n if (listmodel instanceof ListModelArray) {\n ((ListModelArray<Object>) listmodel).set(((List...
"public void associateServices(ProvisionedService serviceConsumer, ServiceReference svcRef, ProvisionedService serviceProvider, boolean beforeDeployment, DeploymentContext dc) {\n if (svcRef.getServiceRefType().equals(\"String_Node_Str\") && serviceProvider.getServiceType().toString().equals(\"String_Node_Str\") && ...
"public String commitDpos(String adminOntId, String password, byte[] salt, Account payerAcct, long gaslimit, long gasprice) throws Exception {\n Transaction tx = sdk.vm().buildNativeParams(new Address(Helper.hexToBytes(contractAddress)), \"String_Node_Str\", new byte[] { 0 }, payerAcct.getAddressU160().toBase58(), g...
"public void onAuthFail(SocializeException error) {\n ProfileContentView.this.showErrorToast(ProfileContentView.this.getContext(), error);\n}\n"
"public Dataset getDataset(ExperimentType experimentType) throws GerbilException {\n if (applicableForExperiment.equalsOrContainsType(experimentType)) {\n try {\n return getPreparedDataset();\n } catch (Exception e) {\n throw new GerbilException(e, ErrorTypes.DATASET_LOADING_ERROR...
"public static void configureLogger(ConfigurationManager cm) {\n if (wasLogConfigured)\n return;\n wasLogConfigured = true;\n if (System.getProperty(\"String_Node_Str\") != null || System.getProperty(\"String_Node_Str\") != null) {\n return;\n }\n String cmPrefix = getLogPrefix(cm);\n Lo...
"public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {\n final ResourceRoot deploymentRoot = phaseContext.getDeploymentUnit().getAttachment(Attachments.DEPLOYMENT_ROOT);\n if (deploymentRoot == null)\n return;\n final ServicesAttachment servicesAttachments = ...
"public void delete() {\n UserTO userTO = UserTestITCase.getUniqueSampleTO(\"String_Node_Str\");\n String initialPassword = userTO.getPassword();\n userTO = createUser(userTO);\n assertNotNull(userTO);\n try {\n createUserRequest(new UserRequestTO(userTO.getId()));\n fail();\n } catch (S...
"public void createIndex(DSLContext dsl, String indexName, String schemaName, String tableName, List<Tuple2<String, Boolean>> columnList, boolean unique) throws UserException {\n if (!dbBackend.isOnDataInsertMode(schemaName)) {\n Preconditions.checkArgument(!columnList.isEmpty(), \"String_Node_Str\");\n ...
"public <T extends Model> T fetchSingle() {\n List<T> results = (List<T>) Ollie.rawQuery(mTable, getSql(), getArgs());\n if (!results.isEmpty()) {\n return results.get(0);\n }\n return null;\n}\n"
"public void testEquivalentDataPropertiesAxiomLearning() throws Exception {\n EquivalentDataPropertyAxiomLearner l = new EquivalentDataPropertyAxiomLearner(ks);\n l.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds);\n l.setEntityToDescribe(equivDataProperty);\n l.init();\n l.start();\n System.ou...
"public String showPrimitive(long id) {\n return String.format(\"String_Node_Str\", id);\n}\n"
"private <K, V> Map<K, V> sortByValue(Map<K, V> map) {\n List list = new LinkedList(map.entrySet());\n Collections.sort(list, new Comparator() {\n public int compare(Object object1, Object object2) {\n return ((Comparable) ((Map.Entry<K, V>) (object1)).getValue()).compareTo(((Map.Entry<K, V>) (o...
"private static boolean isCDIEnablingAnnotation(AnnotationType annotationType, Set<String> excludedTypeNames) {\n boolean result = false;\n Set<String> exclusions = new HashSet<String>();\n if (excludedTypeNames != null) {\n exclusions.addAll(excludedTypeNames);\n }\n String annotationTypeName = a...
"public void testIsContainsViewConnectionCatalogString() {\n String catalogName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Catalog catalog = null;...
"public static boolean isEmpty(String... strs) {\n if (strs == null) {\n return false;\n }\n for (String str : strs) {\n if (str == null) {\n return true;\n } else if (\"String_Node_Str\".equals(str.trim())) {\n return true;\n }\n }\n return false;\n}\n"
"private int ipV4StartNode() throws InvalidDatabaseException {\n if (this.metadata.ipVersion == 4) {\n return 0;\n }\n if (this.ipV4Start != 0) {\n return this.ipV4Start;\n }\n int node = 0;\n for (int i = 0; i < 96 && node < this.metadata.nodeCount; i++) {\n node = this.readNode(...
"public void testSimplest() {\n Node nodeA = graph.makeNode(\"String_Node_Str\", \"String_Node_Str\", 0d, \"String_Node_Str\", 0d);\n Node nodeB = graph.makeNode(\"String_Node_Str\", \"String_Node_Str\", 2d, \"String_Node_Str\", 1d);\n Node nodeC = graph.makeNode(\"String_Node_Str\", \"String_Node_Str\", 7d, \...
"public void endDocument() {\n numberOfTabs--;\n super.endDocument();\n}\n"
"protected String getFreqRowsStatement() {\n String clause = \"String_Node_Str\";\n TdColumn column = (TdColumn) indicator.getAnalyzedElement();\n int javaType = column.getJavaType();\n if (Java2SqlType.isTextInSQL(javaType)) {\n clause = getInstantiatedClause();\n } else if (Java2SqlType.isDateIn...
"private Group parseGroup(String appId, int tenantId, String key, GroupContext groupCtxt, Map<String, SubscribableInfoContext> subscribableInfoCtxts, Map<String, GroupContext> definedGroupCtxts, Properties properties) throws ApplicationDefinitionException {\n GroupContext definedGroupDef = definedGroupCtxts.get(grou...
"private void addCollectionWithSingleElement(Collection<Object> container) {\n container.add(valueToReturn);\n addReturnValue(container);\n}\n"
"public void run() throws ParseException, IOException {\n if (logDomain) {\n Utilities.useLogAddTable = true;\n }\n FgModel model = null;\n FeatureTemplateList templates;\n if (modelIn != null) {\n log.info(\"String_Node_Str\" + modelIn);\n model = (FgModel) Files.deserialize(modelIn...
"public void testRangeEndBeforeStart(FoodMartTestCase test) {\n test.assertAxisReturns(\"String_Node_Str\", \"String_Node_Str\" + nl + \"String_Node_Str\" + nl + \"String_Node_Str\");\n }\n public void testRangeEndBeforeStartLarge(FoodMartTestCase test) {\n test.assertAxisReturns(\"S...
"protected void runHighPriorityTask(TaskWrapper task) throws InterruptedException {\n Worker w = null;\n synchronized (workersLock) {\n if (!shutdownFinishing) {\n if (currentPoolSize >= maxPoolSize) {\n lastHighDelayMillis = task.getDelayEstimateInMs();\n w = getEx...
"private Iterable<FieldValueList> addSchema(Iterable<FieldValueList> iter) {\n if (schema == null) {\n return iter;\n }\n return Iterables.transform(iter, new Function<FieldValueList, FieldValueList>() {\n\n public FieldValueList apply(FieldValueList list) {\n return list.withSchema(sc...
"public void execute() throws MojoExecutionException, MojoFailureException {\n validateConfiguration(preReleaseGoals, postReleaseGoals);\n try {\n checkUncommittedChanges();\n final String releaseBranch = gitFindBranches(gitFlowConfig.getReleaseBranchPrefix(), false).trim();\n if (StringUtils...
"public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {\n _name = name;\n ComponentLocator locator = ComponentLocator.getCurrentLocator();\n final Map<String, String> configs = _configDao.getConfiguration(\"String_Node_Str\", params);\n _routerTemplateId = NumbersU...
"private void collectExecutable() throws OLAPException {\n endOfGroups = false;\n currentChild = 0;\n children = new ArrayList();\n int startingGroupIndex = GroupUtil.getStartingGroupLevel(rowCursor, groupCursors);\n if (startingGroupIndex <= 0) {\n if (columnGroups.size() > 0 || GroupUtil.hasMeas...
"public void execute(AdminCommandContext context) {\n final ActionReport report = context.getActionReport();\n final Logger logger = context.getLogger();\n List<String> matchedVersions = null;\n if (enabled) {\n try {\n VersioningUtils.checkIdentifier(name);\n matchedVersions = ...
"public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {\n if (msg instanceof HttpRequest) {\n requestInProgress = true;\n keepAlive = HttpUtil.isKeepAlive((HttpRequest) msg);\n }\n ctx.write(msg, promise);\n}\n"
"private Message createMessage(String content, EmailAddress fromEmailAddress, UserInfo recipientUserInfo, String relatedTo1Select, int relatedTo1SelectId, String relatedTo2Select, int relatedTo2SelectId, LocalDateTime sendedDate, UserInfo senderUserInfo, boolean sentByEmail, int statusSelect, String subject, int typeSe...
"public final Object getAttribute(final ObjectName objectName, final String attributeName) throws InstanceNotFoundException, AttributeNotFoundException, MBeanException, ReflectionException {\n if (objectName == null)\n throw new InstanceNotFoundException();\n DynamicInterceptor.ReplicationInfo result = get...
"public void path_fnArgNodeType_one_template_isNotOk() throws RestAnnotationException {\n final FunctionArgument[] args = { new NodeFnArg(\"String_Node_Str\") };\n final PathAnnotationImpl pa = new PathAnnotationImpl();\n pa.setFunctionSignature(new ArgsFunctionSignature(args));\n pa.setLiterals(new Literal...
"protected void initializeCalendar(Proxy proxy) throws ParseException {\n SimpleDateFormat dateMonth = new SimpleDateFormat(\"String_Node_Str\");\n Date currentMonth = new Date();\n int monthNumber = Integer.parseInt(dateMonth.format(currentMonth));\n SimpleDateFormat dateYear = new SimpleDateFormat(\"Strin...
"public void testGetFileCount() {\n log.debug(\"String_Node_Str\");\n IFolder repFolder = initFolder(EResourceConstant.REPORTS.getPath());\n ResourceViewLabelProvider reViewLabelProvider = new ResourceViewLabelProvider();\n int AnalysisNum = reViewLabelProvider.getFileCount(anaFolder, filterExtensions);\n ...
"protected void buildProperties(IContent content, LayoutContext context) {\n IStyle style = content.getComputedStyle();\n localProperties = new LocalProperties();\n int maw = parent.getMaxAvaWidth();\n localProperties.setMarginBottom(getDimensionValue(style.getProperty(IStyle.STYLE_MARGIN_BOTTOM), maw));\n ...
"public static void removeCartridge(String cartridgeType) throws RestAPIException {\n try {\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_Str\", cartridgeType));\n }\n CloudControllerServiceClient cloudControllerServiceClient = getCloudControllerServiceClient()...
"public void beforeNewForm(HttpServletRequest request) throws TransactionException {\n this.request = request;\n Object ob = request.getSession().getAttribute(\"String_Node_Str\");\n Object ob2 = request.getAttribute(\"String_Node_Str\");\n if (!(ob instanceof PR || ob2 instanceof PR)) {\n String ret...
"protected void createFormContent(IManagedForm managedForm) {\n try {\n managedForm.getForm().setText(this.getTitle());\n FormToolkit toolkit = WidgetFactory.getWidgetFactory();\n Composite composite = managedForm.getForm().getBody();\n composite.setLayout(new GridLayout());\n Comp...
"public void notTest1() {\n final short[] content = { 1, 3, 5, 7, 9 };\n final MappeableContainer c = makeContainer(content);\n final MappeableContainer c1 = c.not(0, 65536);\n final short[] s = new short[65536 - content.length];\n int pos = 0;\n for (int i = 0; i < 65536; ++i) if (Arrays.binarySearch...
"public static IAccess resolve(IContext context, IAccess access) {\n List<Marker> markers = CompilerState.RESOLVE.file.markers;\n LinkedList<IAccess> chain = getCallChain(access);\n IAccess a = null;\n ListIterator<IAccess> iterator = chain.listIterator();\n while (iterator.hasNext()) {\n IContext...
"public void test_getCanonicalName_WhenTheDeploymentNodeHasNoParent() {\n DeploymentNode deploymentNode = model.addDeploymentNode(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", deploymentNode.getCanonicalName());\n}\n"
"private List<WebElement> waitFor() {\n try {\n changeImplicitlyWaitTimeOut(0, TimeUnit.SECONDS);\n FluentWait<By> wait = new FluentWait<>(by);\n wait.withTimeout(timeOutDuration.getTime(), timeOutDuration.getTimeUnit());\n return wait.until(waitingFunction);\n } catch (TimeoutExceptio...
"public boolean apply(ChunkLocation location, Consumer<CRefCounter> consumer) {\n CRefCounter chunk = get(location);\n if (chunk != null) {\n consumer.accept(chunk);\n return true;\n }\n return false;\n}\n"
"public static void main(String[] args) throws GeneralSecurityException, IOException {\n PipelineOptionsFactory.register(VerifyBamIdOptions.class);\n options = PipelineOptionsFactory.fromArgs(args).withValidation().as(VerifyBamId.VerifyBamIdOptions.class);\n GenomicsDatasetOptions.Methods.validateOptions(optio...
"public boolean passed() {\n String externalHost = mIpEditText.getText().toString();\n if (externalHost.isEmpty()) {\n onHostEmpty();\n return false;\n } else {\n if (Commons.isLocalIp(externalHost)) {\n onLocalIp();\n return false;\n } else {\n if (...
"public boolean isSticky() {\n return sticky;\n}\n"
"public void onSuccess() {\n String blogId = String.valueOf(currentBlog.getBlogId());\n WordPress.wpDB.updateMediaFile(blogId, mediaId, title, description);\n if (getActivity() != null)\n Toast.makeText(getActivity(), R.string.media_edit_success, Toast.LENGTH_LONG).show();\n setMediaUpdating(false);\...
"public void actionPerformed(ActionEvent actionEvent) {\n logTable.setFilter(filterField);\n}\n"
"public void removed(Object key, Object value) {\n if (_removeType != null) {\n Notification notification = new Notification(_removeType, this, _sequenceNumber++, value.toString());\n for (NotificationDetails n : _notificationDetails) {\n n.getListener().handleNotification(notification, n.ge...
"public static <T> T createNewService(String apiEndpointUrl, Class<T> restServiceClass, BaseHttpClient client) {\n T service;\n if (restServiceClass.isAnnotationPresent(RestApi.class)) {\n String restClassName = restServiceClass.getName();\n service = (T) cachedServices.get(restClassName);\n ...
"private void loadVertices(File dir, Set<String> vSet) throws IOException, SchemaViolationException {\n logger.info(\"String_Node_Str\");\n WorkLoadSchema s = this.workload.getSchema();\n for (final String vLabel : vSet) {\n HashSet<String> fileSet = new HashSet<>();\n fileSet.addAll(Arrays.asLis...
"public Object getAndReplace(Data key, Object value, ExpiryPolicy expiryPolicy, String caller) {\n final ExpiryPolicy localExpiryPolicy = expiryPolicy != null ? expiryPolicy : defaultExpiryPolicy;\n final long now = Clock.currentTimeMillis();\n final long start = isStatisticsEnabled() ? System.nanoTime() : 0;\...
"public Stream<? extends Arguments> arguments(ContainerExtensionContext context) throws Exception {\n return ResourcesReader.readJson(RESOURCES_DIRECTORY).map(ObjectArrayArguments::create);\n}\n"
"public void stopRecording() {\n if (!isConnected() || !isRecording())\n return;\n sendSetRequest(GOPRO_COMMAND.GOPRO_COMMAND_SHUTTER, 0, new SetResponseHandler() {\n public void onResponse(byte commandId, boolean success) {\n if (success == isRecording) {\n isRecording = !...
"public String getMainGroup(IPlayer player) {\n String bpgroup = null;\n BungeePerms bp = (BungeePerms) plugin.getProxy().getPluginManager().getPlugin(\"String_Node_Str\");\n if (bp != null) {\n try {\n User user = bp.getPermissionsManager().getUser(player.getName());\n Group mainG...
"public String getHost(boolean encoded) {\n if (encoded) {\n return percentEncode(host, STANDARD_RESERVED);\n }\n return host;\n}\n"
"public static void storeRegistrationId(Context context, String id) {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);\n prefs.edit().putString(PROPERTY_GCM_REG_ID, id).apply();\n}\n"
"public static List<OArtifact> getOrienteerArtifactsFromServer() throws IOException {\n URL website = new URL(initUtils.getOrienteerModulesUrl());\n File localFile = new File(initUtils.getPathToModulesFolder().toFile(), \"String_Node_Str\");\n ReadableByteChannel rbc = Channels.newChannel(website.openStream())...
"public void run() {\n try {\n if (Component.State.ENABLED.equals(config.lookupService().getGoal()) && Component.State.DISABLED.isIn(config)) {\n config.lookupComponent().enableTransition(config);\n } else if (Component.State.DISABLED.equals(config.lookupService().getGoal()) && Component.Sta...
"private boolean isThis(GraphTargetItem item) {\n if (item instanceof VariableActionItem) {\n return \"String_Node_Str\".equals(((VariableActionItem) item).getVariableName());\n }\n return false;\n}\n"
"private boolean sendCubeCommand(String commandString) {\n boolean sendSuccess = false;\n synchronized (MaxCubeBridgeHandler.class) {\n if (commandString != null) {\n try {\n if (socket == null) {\n this.socketConnect();\n }\n write...
"public void setDataSet(String datasetName) {\n boolean needClean = false;\n boolean needAddBinding = false;\n try {\n if (datasetName == null) {\n if (getReportDataSet() != null || getBoundDataSet() != null) {\n itemHandle.setDataSet(null);\n needClean = true;\n...
"public String format(GraphTransaction<G, V, E> graphTransaction) {\n graphId++;\n Map<GradoopId, Integer> vertexIdMap = Maps.newHashMapWithExpectedSize(graphTransaction.getVertices().size());\n Collection<String> lines = Lists.newArrayListWithExpectedSize(graphTransaction.getVertices().size() + graphTransacti...
"public boolean exists(Id.Namespace namespaceId) throws Exception {\n return nsStore.get(namespaceId) != null;\n}\n"
"private boolean checkRemove(AnnotationNode node, Iterator<? extends Object> iter) {\n if (node.desc.equals(stripableDesc)) {\n if (node.values != null) {\n List<Object> values = node.values;\n for (int i = 0, e = values.size(); i < e; ) {\n Object k = values.get(i++);\n ...
"public void debug(Object message) {\n if (isDebugEnabled())\n log(LEVEL_DEBUG, message, null);\n}\n"
"private Class generateWrapperClassAndDescriptor(TypeInfo type, QName next, ElementDeclaration nextElement, String nextClassName, String attributeTypeName) {\n String namespaceUri = null;\n if (next != null) {\n namespaceUri = next.getNamespaceURI();\n if (namespaceUri == null || namespaceUri.equals...
"public void sendRemotePerformance(String fullMethodName, long timeExec) {\n MessageMetrics msg = new MessageMetrics();\n msg.setPathClassMethodName(fullMethodName);\n msg.setToken(CoreEngine.getInstance().getConfig().getToken());\n SimpleDateFormat sdf = new SimpleDateFormat(\"String_Node_Str\");\n Date...
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n renderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n setForeground(renderer.getForeground());\n setBackground(renderer.getBackground()...
"public static void main(String[] args) throws FileNotFoundException {\n if (args.length != 4) {\n throw new JMetalException(\"String_Node_Str\");\n }\n int numberOfPoints = Integer.valueOf(args[0]);\n int granularity = Integer.valueOf(args[1]);\n double distributionIndex = Double.valueOf(args[2])...
"public void stopAll() {\n try {\n for (Map.Entry<String, ProgramId> entry : Iterables.consumingIterable(runningProcessses.entrySet())) {\n if (isRunning(entry.getValue())) {\n appFabricServer.stop(token, entry.getValue());\n }\n }\n } catch (Exception e) {\n ...
"private void prepareModelFromOutput(List<FOXTreeNode> foxTreeNodes, TreeNode parent) {\n TreeNode realParent = XmlMapUtil.getRealParentNode(parent);\n for (FOXTreeNode foxNode : foxTreeNodes) {\n TreeNode createTreeNode = createModel();\n createTreeNode.setOptional(foxNode.isOptional());\n S...
"private XPathPrefix getXPathPrefix(String prefix) {\n final XPathPrefix[] values = XPathPrefix.values();\n for (int i = 0; i < values.length; i++) {\n if (values[i].getPrefix().equals(prefix)) {\n return values[i].getDisplayName();\n }\n }\n return null;\n}\n"
"public void addTypeVariables(IType type, Map<String, IType> typeVariables) {\n if (type instanceof ITypeVariable) {\n if (type.isSuperTypeOf(this)) {\n if (this.arrayDimensions > 0) {\n typeVariables.put(type.getQualifiedName(), this.getArrayType(this.arrayDimensions - type.getArray...
"private void onRemoveTablePerspective(RemoveTablePerspectiveEvent event) {\n if (Objects.equal(tablePerspective, event.getTablePerspective()))\n setTablePerspective(null);\n}\n"
"public Future<V> getWithLoaderAsync(final K key, final CacheLoader<K, V> loader) {\n if (key == null)\n throw new NullPointerException();\n if (executorService == null || executorService.isShutdown() || closed)\n throw new IllegalStateException(\"String_Node_Str\");\n final KeyBuffer keySource =...
"private static void addFactTableOrMeasureFilter(Iterator<FilterConditionElementHandle> filters, ICubeQueryDefinition cubeQuery, IModelAdapter modelAdapter) throws BirtException {\n if (filters != null) {\n while (filters.hasNext()) {\n FilterConditionElementHandle filterCon = filters.next();\n ...
"protected void fillContextMenu(IMenuManager manager) {\n IStructuredSelection selection = ((IStructuredSelection) viewer.getSelection());\n if ((selection == null) || (selection.getFirstElement() == null)) {\n manager.add(new XSDNewConceptAction(this));\n manager.add(new Separator(IWorkbenchActionC...
"final int createTheme() {\n synchronized (this) {\n if (!mOpen) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n int res = newTheme();\n incRefsLocked(res);\n return res;\n }\n}\n"
"private int getIndex(String text) {\n try {\n int nodeIndex = 0;\n int n = text.length();\n for (int i = 0; i < n; i++) {\n int cid = findCharId(text.charAt(i));\n if (cid == -1)\n return -1;\n int next = base[nodeIndex] + cid;\n if (ne...