content
stringlengths
40
137k
"public synchronized void start() {\n super.start();\n LOGGER.info(\"String_Node_Str\");\n}\n"
"private void repeat() {\n if (isFirst || tableLM.isFirst) {\n isFirst = false;\n return;\n }\n if (!needRepeat || !isCurrentDetailBand()) {\n return;\n }\n ITableBandContent header = (ITableBandContent) groupContent.getHeader();\n if (!isRepeatHeader() || header == null) {\n ...
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n Configuration config = Application.get().getConfiguration();\n User user = Application.get().getUser();\n AuthenticationService service = (AuthenticationService) Components.getComponent(Authent...
"public void addLogosCreateNewImage(String srcImgPath, String destImgPath) throws ServiceException {\n BufferedImage img;\n try {\n img = ImageIO.read(new File(srcImgPath));\n } catch (IOException e) {\n LOGGER.error(\"String_Node_Str\" + e);\n throw new ServiceException(e);\n }\n Li...
"public EMaterialType getMaterial() {\n return EMaterialType.NO_MATERIAL;\n}\n"
"public ExpansionPathContainer<T> productSlug() {\n return expansionPath(\"String_Node_Str\");\n}\n"
"private int getMaxStringWidth() {\n GC gc = new GC(shell);\n String[] items = list.getItems();\n ArrayList separatorIndexes = new ArrayList(5);\n int maxChars = 0;\n int maxWidth = 0;\n Point pt = null;\n for (int n = 0; n < items.length; n++) {\n pt = gc.textExtent(items[n]);\n if (...
"private Repository getRepository() {\n RepositoryConfig config = getConfig();\n if (StringUtils.hasText(username) && StringUtils.hasText(password)) {\n return SemanticDatabaseManager.getRepository(url, username, password, this.configFile);\n } else {\n return SemanticDatabaseManager.getRepositor...
"protected boolean namespaceEquals(BaseID o) {\n if (!(o instanceof XMPPID)) {\n return false;\n }\n final XMPPID other = (XMPPID) o;\n String thisResourceName = getResourceName();\n String otherResourceName = other.getResourceName();\n boolean resourceEquals = false;\n if (thisResourceName ...
"public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException {\n if (routineInfo != null) {\n if (!routineInfo.calledOnNullInput() && routineInfo.getParameterCount() != 0)\n returnsNullOnNullState = acb.newFieldDeclaration(Modifier.PRIVATE, \"String_Node_St...
"public static void setupFactories() throws Exception {\n notYetConfiguredFactory = mock(UmaProviderSettingsFactory.class);\n given(notYetConfiguredFactory.get(any(Context.class), anyString())).willThrow(NotFoundException.class);\n UmaProviderSettings notEnabled = mock(UmaProviderSettings.class);\n given(no...
"protected void justify() {\n int spacing = width - currentIP;\n int whiteSpaceNumber = getWhiteSpaceNumber(this);\n if (whiteSpaceNumber > 0) {\n int wordSpacing = spacing / whiteSpaceNumber;\n adjustWordSpacing(wordSpacing, this);\n } else {\n int letterNumber = getLetterNumber(this);...
"private void remoteRemove(ThreadLocalCopies copies, SegmentState segmentState, Bytes keyBytes, long hash2, final long timestamp, final byte identifier) {\n writeLock(null);\n try {\n ReadValueToBytes readValueToLazyBytes = segmentState.readValueToLazyBytes;\n readValueToLazyBytes.valueSizeMarshalle...
"public void operationComplete(ChannelFuture future) throws Exception {\n if (oneTimeOnly.compareAndSet(false, true)) {\n for (CountDownLatch latch : notifiedLatches) {\n latch.await();\n }\n sendFinishedMessage(ctx);\n }\n}\n"
"protected void defineFunction(CAstEntity N, WalkContext definingContext, AbstractCFG cfg, SymbolTable symtab, boolean hasCatchBlock, TypeReference[][] caughtTypes, boolean hasMonitorOp, AstLexicalInformation LI, DebuggingInformation debugInfo) {\n if (DEBUG)\n System.err.println((\"String_Node_Str\" + N));\n...
"private void checkImageType() {\n int type = 0;\n Module module = handler.getModule();\n String uri = (String) image.getLocalProperty(module, ImageItem.URI_PROP);\n if (!StringUtil.isEmpty(uri)) {\n uri = StringUtil.trimQuotes(uri);\n try {\n URL url = new URL(uri);\n se...
"public ClinicalDocument buildHeader(ClinicalDocument doc, BaseCdaTypeHandler bh, Patient p) {\n InfrastructureRootTypeId typeId = CDAFactory.eINSTANCE.createInfrastructureRootTypeId();\n typeId.setExtension(\"String_Node_Str\");\n typeId.setRoot(\"String_Node_Str\");\n doc.setTypeId(typeId);\n doc.getTe...
"protected void parseRecord() {\n if (ch <= ' ' && ignoreLeadingWhitespace) {\n skipWhitespace();\n }\n while (ch != newLine && ch != '\\0') {\n parseField();\n if (ch != newLine) {\n ch = input.nextChar();\n if (ch == newLine) {\n output.emptyParsed();...
"public void prepareDB(Connection conn) {\n String dbName;\n try (Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"String_Node_Str\")) {\n if (!rs.next()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n dbName = rs.getString(1);\n ...
"protected Control createDialogArea(Composite parent) {\n Composite container = (Composite) super.createDialogArea(parent);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n container.setLayout(layout);\n Label summaryLabel = new Label(container, SWT.LEFT | SWT.WRAP | SWT.BOLD);\n Fon...
"private void nullPointerTest() throws Exception {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"String_Node_Str\", \"String_Node_Str\");\n keyGen.initialize(1024, new SecureRandom());\n KeyPair pair = keyGen.generateKeyPair();\n Vector oids = new Vector();\n Vector values = new Vector();\n ...
"public void visitPackage(PackageNode node) {\n if (node != null) {\n visitAnnotations(node);\n IJavaElement oldEnclosing = enclosingElement;\n enclosingElement = unit.getPackageDeclaration(node.getName().substring(0, node.getName().length() - 1));\n try {\n TypeLookupResult re...
"private ClientHelper getClientHelper(DescriptorImpl p4scm) throws Exception {\n LogTaskListener listener = new LogTaskListener(logger, Level.INFO);\n String credential = p4scm.getCredential();\n String clientName = p4scm.getClientName();\n String depotPath = p4scm.getDepotPath();\n depotPath = depotPath...
"protected String getData(Model model) {\n if (model == null || model.getInputConfig() == null || model.getInputConfig().getInput() == null) {\n return \"String_Node_Str\";\n }\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n builder.append(\"String_Node_Str\...
"public void trim() {\n final int len = mStringBefore.length();\n int nonWhitespaceStart = 0;\n for (; nonWhitespaceStart < len; nonWhitespaceStart = mStringBefore.offsetByCodePoints(nonWhitespaceStart, 1)) {\n final int codePoint = mStringBefore.codePointAt(nonWhitespaceStart);\n if (!Character....
"private boolean validateScale(final FieldDefinition fieldDefinition, final Object value, final Entity validatedEntity) {\n int scale = ((BigDecimal) value).stripTrailingZeros().scale();\n if (max != null && scale > max) {\n validatedEntity.addError(fieldDefinition, errorMessage + \"String_Node_Str\", max....
"public static Representation getDocument(String href, HttpServerExchange exchange, RequestContext context, DBObject data) throws IllegalQueryParamenterException {\n Representation rep = new Representation(href);\n rep.addProperty(\"String_Node_Str\", context.getType().name());\n data.keySet().stream().forEach...
"private boolean updateCameraParametersPreference() {\n setAutoExposureLockIfSupported();\n setAutoWhiteBalanceLockIfSupported();\n setFocusAreasIfSupported();\n setMeteringAreasIfSupported();\n String pictureSize = mPreferences.getString(CameraSettings.KEY_PICTURE_SIZE, null);\n if (pictureSize == nu...
"public List<String> getPathTemplates() {\n ArrayList<String> contributions = new ArrayList<>();\n for (Node param : getChildren()) {\n if (((ResourceParameter) param).isPathParam())\n contributions.add(\"String_Node_Str\" + param.getName() + \"String_Node_Str\");\n }\n return contribution...
"private FilterExpression parseExpression(int precedence) {\n Token token = consume();\n if (token.getType() == TokenType.EOF) {\n if (isCheckingSyntax) {\n throw new IncompleteInputException();\n } else {\n throw new ParseException(String.format(\"String_Node_Str\", sourcePosi...
"public void insert_opertation_should_add_indexes_into_remote_graph() {\n GraphDatabaseService newEmbeddedDatabase = new GraphDatabaseFactory().newEmbeddedDatabase(DB_PATH);\n WrappingNeoServerBootstrapper graphDb = new WrappingNeoServerBootstrapper((GraphDatabaseAPI) newEmbeddedDatabase);\n graphDb.start();\n...
"public static org.hl7.fhir.dstu2016may.model.Questionnaire convertQuestionnaire(org.hl7.fhir.dstu3.model.Questionnaire src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Questionnaire tgt = new org.hl7.fhir.dstu2016may.model.Questionnaire();\n ...
"public void updateQuery(Control control) {\n if (textCollection.containsKey(control)) {\n IQueryExpressionManager queryManager = textCollection.get(control);\n queryManager.updateQuery(ChartUIUtil.getText(control));\n adjustScaleData(queryManager.getQuery());\n if (control.isDisposed()) ...
"private AbstractDirectInputChannel<T> getConnectedInputChannel() throws IOException {\n AbstractDirectInputChannel<T> directInputChannel = null;\n if (this.directChannelBroker == null) {\n throw new IOException(\"String_Node_Str\");\n }\n for (int i = 0; i < this.numberOfConnectionRetries; i++) {\n ...
"public String toCodeString() {\n StringBuffer sb = new StringBuffer();\n if (nodetype == WCETBasicBlock.SNODE) {\n sb.append(WU.postpad(getIDS() + \"String_Node_Str\", 6));\n } else if (nodetype == WCETBasicBlock.TNODE) {\n String tStr = \"String_Node_Str\";\n for (Iterator iter = inbbs.k...
"public void generateCollectionMapping(Property property, XMLDescriptor descriptor, NamespaceInfo namespaceInfo) {\n JavaClass javaClass = null;\n if (property.getGenericType() != null) {\n javaClass = (JavaClass) property.getGenericType();\n }\n if (helper.isAnnotationPresent(property.getElement(), ...
"public void updateRepositorySchema(Button button) {\n String paramName = (String) button.getData(PARAMETER_NAME);\n String fullParamName = paramName + \"String_Node_Str\" + getRepositoryChoiceParamName();\n IElementParameter schemaParam = elem.getElementParameter(fullParamName);\n String schemaId = (String...
"public void setSamplingTime(long samplingTime) throws IOException {\n if (remoteKms != null) {\n sendMessage(\"String_Node_Str\" + samplingTime);\n } else {\n monitor.setSamplingTime(samplingTime);\n }\n}\n"
"private static Object deepCopyUsingMetadata(Object source, Map<Object, Object> copiedObjectMap) {\n Object target = null;\n try {\n if (source == null)\n return null;\n Class<?> sourceObjectClass = source.getClass();\n EntityMetadata metadata = KunderaMetadataManager.getEntityMeta...
"public void before() throws Exception {\n super.before();\n deleteFromTable(\"String_Node_Str\");\n deleteFromTable(\"String_Node_Str\");\n deleteFromTable(\"String_Node_Str\");\n populateTable(\"String_Node_Str\");\n populateTable(\"String_Node_Str\");\n populateTable(\"String_Node_Str\");\n}\n"
"private Player getOnlinePlayer(String name) {\n for (Player p : Bukkit.getOnlinePlayers()) {\n Bukkit.getLogger().log(Level.SEVERE, p.getName());\n if (p.getName().equalsIgnoreCase(name)) {\n return p;\n }\n }\n return null;\n}\n"
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n if (qName.equalsIgnoreCase(\"String_Node_Str\")) {\n text.setLength(0);\n return;\n }\n if (qName.equalsIgnoreCase(\"String_Node_Str\")) {\n objects.push(new P4ChangeEntry(c...
"public void setChecked(boolean checked) {\n boolean previousVal = this.checked;\n if (checked != checkBox.getValue()) {\n checkBox.setValue(checked);\n }\n this.checked = checked;\n this.firePropertyChange(\"String_Node_Str\", previousVal, checked);\n}\n"
"public void onValidated(FormDialogTether dlg) {\n dispatcher.execute(new CreateEntity(newIndicator), dialog, new AsyncCallback<CreateResult>() {\n public void onFailure(Throwable caught) {\n }\n public void onSuccess(CreateResult result) {\n newIndicator.setId(result.getNewId());\n ...
"protected void onDraw(Canvas canvas) {\n if (mInvisible) {\n return;\n }\n int viewWidth = mTaskViewRect.width();\n int viewHeight = mTaskViewRect.height();\n int thumbnailWidth = Math.min(viewWidth, (int) (mThumbnailRect.width() * mThumbnailScale));\n int thumbnailHeight = Math.min(viewHeight...
"public long getBaselineBranchUuid(String buildArtGuid) throws OseeCoreException {\n return 12345;\n}\n"
"public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n NetworkMessage networkMessage = (NetworkMessage) msg;\n Object originalMessage = networkMessage.getMessage();\n try {\n Object decodedMessage = decode(ctx.channel(), networkMessage.getRemoteAddress(), originalMessage);\...
"public JSONObject updateInstance(JSONObject instance, JSONArray variables) throws IOException {\n if (variables != null && !variables.isEmpty()) {\n JSONArray instanceBoxes = instance.getJSONArray(\"String_Node_Str\");\n JSONObject mainBox = instanceBoxes.getJSONObject(0);\n BoxStack boxStack =...
"private List<Class<? extends Annotation>> loadTargetAnnotations(ClassLoader loader) {\n if (targetAnnotationNames.isEmpty()) {\n return Collections.<Class<? extends Annotation>>emptyList();\n }\n List<Class<? extends Annotation>> targetAnnotationClasses = new ArrayList<Class<? extends Annotation>>(targ...
"protected boolean lessThan(Object a, Object b) {\n QueryWord aa = (QueryWord) a;\n QueryWord bb = (QueryWord) b;\n return aa.score < bb.score;\n}\n"
"private Node[] neighborhood(NodeImpl node) {\n ArrayList<NodeImpl> neighborhood = new ArrayList<NodeImpl>(node.out().length + node.in().length);\n neighborhood.add(node);\n NodeImpl[] out = node.out();\n for (int i = 0; i < out.length; i++) {\n neighborhood.add(out[i]);\n }\n if (!onlyOut) {\n...
"public void setDefaultTopic(final String topic) {\n if (!this.publishedTopics.contains(topic)) {\n this.producerZooKeeper.setDefaultTopic(topic, this);\n this.publishedTopics.add(topic);\n }\n}\n"
"private ManagedReference<SharedMapImpl> addMap(String mapName, SharedMapImpl map) {\n logger.fine(\"String_Node_Str\" + mapName);\n MapOfMaps maps = mapsRef.get();\n ManagedReference<SharedMapImpl> mapRef = AppContext.getDataManager().createReference(map);\n maps.put(mapName, mapRef);\n return mapRef;\n...
"public static void persist(final CheckException errors) {\n if (errors != null && Bootstrap.isFinished() && !Databases.isVolatile() && Hosts.isCoordinator()) {\n try {\n for (final CheckException e : errors) {\n final EntityTransaction db2 = Entities.get(CheckException.class);\n ...
"protected void createBottomTable(Composite parent) {\n Composite container = new Composite(parent, SWT.NONE);\n TableColumnLayout layout = new TableColumnLayout();\n container.setLayout(layout);\n transactions = new TableViewer(container, SWT.FULL_SELECTION);\n ColumnEditingSupport.prepare(transactions)...
"static List<ModuleNeeded> getChildrenModules(final INode node, Set<ProcessItem> searchItems, boolean withChildrens, boolean forMR) {\n List<ModuleNeeded> modulesNeeded = new ArrayList<ModuleNeeded>();\n if (node.getComponent().getName().equals(\"String_Node_Str\")) {\n IElementParameter processIdparam = n...
"public void parse(IParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (this.mode == NAME) {\n this.mode = BODY;\n if (ParserUtil.isIdentifier(type)) {\n this.node.setPosition(token.raw());\n this.node.name = token.nameValue();\n ret...
"private void startPolling() {\n startPolling(pollingPeriod * 1000);\n}\n"
"public Fragment getItem(int position) {\n ItemInfo info = mItemInfos.get(position);\n if (info.fragment == null) {\n info.fragment = WeatherFragment.newInstance(info.city);\n }\n return info.fragment;\n}\n"
"public IndicatorParameters getParameters() {\n if (parameters != null) {\n TextParameters textParameters = parameters.getTextParameter();\n if (textParameters == null) {\n textParameters = IndicatorsFactory.eINSTANCE.createTextParameters();\n }\n textParameters.setUseNulls(tru...
"public void testSelectFromInformationSchemaTable() throws Exception {\n execUsingClient(\"String_Node_Str\");\n assertEquals(0L, response.rowCount());\n execUsingClient(\"String_Node_Str\");\n Thread.sleep(10);\n execUsingClient(\"String_Node_Str\");\n assertEquals(1L, response.rowCount());\n asse...
"public void spawnMemberAtSpawnLocation(SpawnLocationData parData) {\n super.spawnMemberAtSpawnLocation(parData);\n EntityKoaBase ent = null;\n ent = new EntityKoaHunter(getWorld());\n if (ent != null) {\n ent.getAIAgent().setManagedLocation(this);\n ent.setPosition(spawn.getX() + parData.coor...
"private void showProgressFooter() {\n if (mProgressFooter != null && mProgressFooter.getVisibility() != View.VISIBLE) {\n mProgressFooter.setVisibility(View.VISIBLE);\n }\n}\n"
"public static Class<? extends Contract> getContractClass(final Class<?> stubClass) {\n final Class<?> contract = STUB_CONTRACTS.get(stubClass);\n if (contract != null)\n return (Class<? extends Contract>) contract;\n Iterator<Entry<Class<?>, Class<? extends Contract>>> stubContracts = STUB_CONTRACTS.en...
"public void basicServiceSetUp() throws Exception {\n for (int i = 0; i < NUM_BUNDLES; i++) {\n StubServiceRegistration<String> reg = new StubServiceRegistration<String>((StubBundleContext) getBundle(i).getBundleContext(), \"String_Node_Str\");\n serviceReference[i] = new StubServiceReference<String>(r...
"public static String getXMLDateStringFromDouble(double d) {\n try {\n DatatypeFactory dateFactory = DatatypeFactory.newInstance();\n if (d == Double.NEGATIVE_INFINITY) {\n return \"String_Node_Str\";\n } else if (d == Double.POSITIVE_INFINITY) {\n return \"String_Node_Str\...
"private void assignCornerMoisture() {\n Deque<Corner> queue = new LinkedList<>();\n for (Corner c : corners) {\n if ((c.water || c.river > 0) && !c.ocean) {\n c.moisture = c.river > 0 ? Math.min(3.0, (0.2 * c.river)) : 1.0;\n queue.push(c);\n } else {\n c.moisture =...
"public void openStartElement(XPathFragment xPathFragment, NamespaceResolver namespaceResolver) {\n try {\n Level newLevel = null;\n Level position = null;\n if (levels.isEmpty()) {\n newLevel = new Level(true, true);\n levels.push(newLevel);\n } else {\n ...
"public Vector2f findFreeSpot(PlayerEntity player) {\n Vector2f freeSpot = player.getPos();\n int safety = 100000;\n while ((map.rectCollides(player.getBounds()) || map.hasWorldCollidableTile((int) player.getCenterPos().x, (int) player.getCenterPos().y) || doesTouchOthers(player, false) || doesTouchMapObject(p...
"public void brandingChanged() {\n Pool p = TestUtil.createPool(owner, TestUtil.createProduct(owner));\n Pool p1 = TestUtil.clone(p);\n Branding b1 = new Branding(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n Branding b2 = new Branding(\"String_Node_Str\", \"String_Node_Str\", \"String_N...
"public void printStats(final PrintStream out) {\n this.entriesChunkWriter.printStats(out);\n out.println(\"String_Node_Str\" + permutator.getSmallestIndex());\n out.println(\"String_Node_Str\" + permutator.getBiggestSmallIndex());\n out.println(\"String_Node_Str\" + getNumQueries());\n out.println(\"Str...
"public void run(IAction action) {\n store = getIPreferenceStore();\n Configuration config = getConfiguration(store, selection);\n PropertiesLoader props = getPropertiesLoader(store.getString(Preference.lang));\n StructuredSelection structuredSelection = null;\n try {\n if (selection instanceof St...
"public void encodeAll(FacesContext context) throws IOException {\n String linkTag = (String) context.getAttributes().get(THEME_LINK);\n if (null == linkTag) {\n String themeName = getName();\n StringBuilder themeCssLink = new StringBuilder(\"String_Node_Str\");\n themeCssLink.append(themeHan...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Card card = game.getCard(getTargetPointer().getFirst(game, source));\n if (controller != null && card != null) {\n SpellAbility abilityToCast = card.getSpellAbility().copy();\n Man...
"public void appStop(Object launchInfo) {\n SasLaunchInfo sasLaunchInfo = (SasLaunchInfo) launchInfo;\n CellID cellID = sasLaunchInfo.cell.getCellID();\n launchesInFlight.remove(cellID);\n runningLaunches.remove(cellID, sasLaunchInfo.executionCapability);\n pendingLaunches.remove(cellID, sasLaunchInfo.ex...
"public Piece execute(Piece p, boolean verified, String promo) {\n try {\n if (doMethod == null) {\n doMethod = doMethods.get(name);\n }\n Piece toReturn = (Piece) doMethod.invoke(this, p, verified, promo);\n resetLastPromoted = lastPromoted;\n return toReturn;\n } ca...
"public void generateJavaToXMLCode() throws Exception {\n JMethodSignature jms = JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL, this.beanClassName, \"String_Node_Str\"));\n JMethod jm = JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC, \"String_Node_Str\", \"String_Node_Str\"...
"public void addAll(BoundedSet<V> other) {\n setImpl.addAll(other.getSet());\n if (setImpl.size() > limit) {\n setTop();\n }\n}\n"
"public boolean onOptionsItemSelected(MenuItem item) {\n Log.d(TAG, \"String_Node_Str\");\n if (drawerToggle_.onOptionsItemSelected(item)) {\n return true;\n }\n switch(item.getItemId()) {\n case R.id.action_notifications:\n openNotificationView();\n return true;\n ...
"protected void assignIndices() {\n List<PLSQLargument> inArguments = getArguments(arguments, IN);\n List<PLSQLargument> inOutArguments = getArguments(arguments, INOUT);\n inArguments.addAll(inOutArguments);\n int newIndex = 1;\n List<PLSQLargument> expandedArguments = new ArrayList<PLSQLargument>();\n ...
"public List<JATETerm> execute(Collection<String> candidates) throws JATEException {\n AbstractFeature feature = features.get(FrequencyTermBased.class.getName() + SUFFIX_WORD);\n validateFeature(feature, FrequencyTermBased.class);\n FrequencyTermBased fFeatureWords = (FrequencyTermBased) feature;\n Abstract...
"public static String create(String target) {\n if (target == null) {\n return null;\n }\n return new String(DigestUtils.md5(target), Charset.forName(\"String_Node_Str\"));\n}\n"
"private void setParallelization(INode node) {\n if (node.isActivate()) {\n if (node.getOutgoingConnections().size() > 0) {\n for (IConnection con : node.getOutgoingConnections()) {\n EConnectionType lineStyle = con.getLineStyle();\n if (lineStyle.hasConnectionCategory...
"public org.hl7.fhir.dstu2.model.ValueSet.ConceptDefinitionDesignationComponent convertConceptReferenceDesignationComponent(org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceDesignationComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.ValueS...
"public void writeTypeExpression(MethodWriter writer) throws BytecodeException {\n if (this.lowerBound != null) {\n this.lowerBound.writeTypeExpression(writer);\n } else {\n writer.writeInsn(Opcodes.ACONST_NULL);\n }\n if (this.upperBound != null) {\n this.upperBound.writeTypeExpression...
"private void startSiteIconUpload(final String filePath) {\n if (TextUtils.isEmpty(filePath)) {\n ToastUtils.showToast(getActivity(), R.string.error_locating_image, ToastUtils.Duration.SHORT);\n return;\n }\n File file = new File(filePath);\n if (!file.exists()) {\n ToastUtils.showToast...
"public final void process(final InputStream is) throws IOException {\n final JsonParser parser = JsonActivityFeedProcessor.getObjectMapper().getJsonFactory().createJsonParser(is);\n logger.info(\"String_Node_Str\", streamName);\n while (!Thread.interrupted()) {\n final Activity activity = parser.readVa...
"public void initialize(GuaguaFileSplit split) throws IOException {\n ReadSupport<Tuple> readSupport = getReadSupportInstance(this.conf);\n this.parquetRecordReader = new ParquetRecordReader<Tuple>(readSupport, getFilter(this.conf));\n ParquetInputSplit parquetInputSplit = new ParquetInputSplit(new Path(split....
"public String getCommandString() {\n final String servers;\n if (ntpServer1.length() > 0 && ntpServer2.length() > 0) {\n servers = ntpServer1 + \"String_Node_Str\" + ntpServer2;\n } else {\n servers = ntpServer1 + ntpServer2;\n }\n String cmd = \"String_Node_Str\" + servers + '\\r' + '\\n'...
"private static Set<String> getAliases(ProcessItem processItem) {\n Set<String> aliases = new HashSet<String>();\n for (Object o : processItem.getProcess().getNode()) {\n if (o instanceof NodeType) {\n NodeType node = (NodeType) o;\n if (EmfModelUtils.isComponentActive(node)) {\n ...
"public NetworkOfferingResponse createNetworkOfferingResponse(NetworkOffering offering) {\n NetworkOfferingResponse response = new NetworkOfferingResponse();\n response.setId(offering.getUuid());\n response.setName(offering.getName());\n response.setDisplayText(offering.getDisplayText());\n response.setT...
"void displayErrorDialog(Window w, Throwable t) {\n if (t instanceof NoDisplayException) {\n return;\n }\n if (t.getClass() == Exception.class) {\n displayErrorDialog(w, t.getLocalizedMessage());\n } else {\n displayErrorDialog(w, t.toString());\n }\n}\n"
"private Object decorateWidget(Field field) {\n Class<?> type = field.getType();\n if (!Widget.class.isAssignableFrom(type) && !List.class.isAssignableFrom(type))\n return null;\n Class<? extends Widget> widgetType;\n boolean isAlist = false;\n if (List.class.isAssignableFrom(type)) {\n isA...
"public void experimentRangeUpdated(TmfExperimentRangeUpdatedSignal signal) {\n if (signal.getExperiment() == this) {\n indexExperiment(false, (int) fNbEvents, signal.getRange());\n }\n}\n"
"protected void _exportMoMLContents(Writer output, int depth) throws IOException {\n try {\n for (Object att : attributeList()) {\n if (!(att instanceof Parameter)) {\n Attribute attribute = (Attribute) att;\n attribute.exportMoML(output, depth);\n }\n ...
"public void initTypeToSchemaType() {\n this.typeToSchemaType = new HashMap<Type, QName>();\n Iterator descriptors = xmlContext.getSession(0).getProject().getOrderedDescriptors().iterator();\n HashMap defaults = XMLConversionManager.getDefaultJavaTypes();\n while (descriptors.hasNext()) {\n XMLDescri...
"public void setStyle(String styleName) {\n try {\n if (styleName == null) {\n itemHandle.setStyle(null);\n } else {\n itemHandle.setStyle(getStyle(styleName));\n }\n } catch (SemanticException e) {\n ChartWizard.showException(ChartWizard.RepDSProvider_Style_ID, e...
"public String getDescription(Object anElement) {\n if (anElement instanceof IRepositoryViewObject) {\n Property property = ((IRepositoryViewObject) anElement).getProperty();\n Item item = property.getItem();\n if (item instanceof MDMServerObjectItem) {\n String label = getServerObjec...
"public String toString() {\n final StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n sb.append(\"String_Node_Str\").append(displayName).append('\\'');\n sb.append(\"String_Node_Str\").append(shortDescription).append('\\'');\n sb.append(\"String_Node_Str\").append(longDescription).append('\\'');\...
"public void handleForeignSelectionUpdate(String dataDomainType, SelectionDelta delta) {\n if (dimensionIDType.equals(delta.getIDType())) {\n SelectionUpdateEvent resendEvent = new SelectionUpdateEvent();\n resendEvent.setEventSpace(this.dataDomainID);\n SelectionDelta convertedDelta = new Selec...