content
stringlengths
40
137k
"private void generateJsonFormatterClasses(GeneratorContext context) throws UnableToCompleteException {\n if (worklist == null || worklist.size() == 0) {\n return;\n }\n String localPackageName = packageName + \"String_Node_Str\";\n for (JClassType jc : worklist) {\n String localClassName = \"...
"private void openAnotherVersion(final RepositoryNode node, final boolean readonly) {\n try {\n if (node.getObject() != null) {\n Item item = node.getObject().getProperty().getItem();\n IWorkbenchPage page = getActivePage();\n IEditorPart editorPart = null;\n Reposi...
"public void setModified(boolean modified) {\n masterEffigy()._modified = modified;\n}\n"
"public void modifyText(ModifyEvent e) {\n checkFieldsValue();\n if (isStatusOnValid()) {\n setPageComplete(true);\n }\n}\n"
"public void loadNBTData(NBTTagCompound compound) {\n NBTTagCompound properties = compound.getCompoundTag(PROP_NAME);\n NBTTagList listOfInventoies = properties.getTagList(\"String_Node_Str\", Constants.NBT.TAG_COMPOUND);\n hasMigrated = properties.getBoolean(\"String_Node_Str\");\n if (!hasMigrated && !pla...
"private void fetchNotificationSounds() {\n abstractFlexibleItemList = new ArrayList<>();\n abstractFlexibleItemList.add(new NotificationSoundItem(getResources().getString(R.string.nc_settings_no_ringtone), null));\n String ringtoneString;\n if (callNotificationSounds) {\n ringtoneString = \"String_N...
"public void dump(PrintWriter pw) {\n pw.println();\n pw.println(\"String_Node_Str\");\n pw.println(\"String_Node_Str\" + mDayTemperature);\n pw.println(\"String_Node_Str\" + mNightTemperature);\n pw.println();\n pw.println(\"String_Node_Str\");\n pw.println(\"String_Node_Str\" + mColorTemperature)...
"public String getPath() {\n if (columnRef != null && columnRef.entity != null && columnRef.getColIndex() > 0) {\n return columnRef.entity.getEntityId() + \"String_Node_Str\" + columnRef.getColIndex();\n } else\n return null;\n}\n"
"private void setBuildCauseInJob(GitLabRequest req) {\n if (setJobDescription) {\n String name = req.getJenkinsBuildViewName();\n if (name != null && name.length() > 0) {\n try {\n abstractBuild.setDescription(desc);\n } catch (IOException e) {\n e.pr...
"private IButtonsReplayHandler readHandler(String section, String handlerIdentifier, Buttons activationButton, IButtonsReplayHandler fallbackValue, IStorage propertiesStorage) {\n String mappingType = propertiesStorage.read(section, handlerIdentifier + \"String_Node_Str\");\n if (mappingType == null) {\n r...
"public void weaveCflowEntry(final BcelAdvice munger, final Member cflowField) {\n final boolean isPer = munger.getKind() == AdviceKind.PerCflowBelowEntry || munger.getKind() == AdviceKind.PerCflowEntry;\n final Type objectArrayType = new ArrayType(Type.OBJECT, 1);\n final InstructionFactory fact = getFactory(...
"protected BufferedDataTable[] execute(BufferedDataTable[] inData, ExecutionContext exec) throws Exception {\n BufferedDataTable input = inData[0];\n Attribute groupingAttribute = new InputTableAttribute(groupBy.getStringValue(), input);\n Attribute treatmentAttribute = new InputTableAttribute(this.treatmentAt...
"private Object convertValueTo(Object value, Class targetClass) {\n if (targetClass == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (value == null) {\n return null;\n }\n if (targetClass.equals(Object.class)) {\n return value;\n }\n Object convert...
"public Run<?, ?> getLastSuccessfulBuild() {\n try {\n Run<?, ?> newBuild = newBuild();\n newBuild.getActions().add(new JacocoBuildAction(null, null, StreamTaskListener.fromStdout(), null, null));\n assertEquals(1, newBuild.getActions().size());\n return newBuild;\n } catch (IOExceptio...
"public boolean performFinish() {\n closeOpenEditors();\n if (zipBtn.getSelection()) {\n try {\n ZipToFile.unZipFile(zipFilePath, importFolder);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }\n if (folderBtn.getSelection()) {\n importFolde...
"private void writeObject(ObjectOutputStream stream) throws IOException {\n stream.writeObject(SERIALIZED_FORM_VERSION);\n stream.writeObject(Long.valueOf(creationTime));\n stream.writeObject(Long.valueOf(lastAccessedTime));\n stream.writeObject(Integer.valueOf(maxInactiveInterval));\n stream.writeObject...
"private void setOtherProperties() {\n boolean metadataInput = false;\n IElementParameter currentParam = elem.getElementParameter(propertyName);\n Item item = null;\n IElementParameter repositoryParam = elem.getElementParameter(EParameterName.REPOSITORY_PROPERTY_TYPE.getName());\n if (repositoryParam != ...
"public boolean apply(Game game, Ability source) {\n Card card = game.getCard(source.getSourceId());\n if (card != null) {\n if (source.getTargets().get(0).isLegal(source, game) && source.getTargets().get(1).isLegal(source, game)) {\n Permanent creature1 = game.getPermanent(source.getTargets().g...
"public void startEvolution() throws Exception {\n dateInitEvolution = new Date();\n generationsExecuted = 1;\n int maxMinutes = ConfigurationProperties.getPropertyInt(\"String_Node_Str\");\n for (ProgramVariant parentVariant : variants) {\n for (ModificationPoint modifPoint : parentVariant.getModifi...
"public ELibraryInstallStatus getStatus() {\n if (status == ELibraryInstallStatus.UNKNOWN) {\n ILibraryManagerService libManagerService = (ILibraryManagerService) GlobalServiceRegister.getDefault().getService(ILibraryManagerService.class);\n Set<String> existLibraries = libManagerService.list();\n ...
"public void onClick(ClickEvent event) {\n History.newItem(ReviewOfRequirementsByAcquisitionPilot.generateNavigationId(ReviewOfRequirementsByAcquisitionPilot.PageId.start));\n}\n"
"public Row next() {\n final Map.Entry e = core.next();\n final Row row = new Row(columnNames());\n if (!(AbstractMarshallable.class.isAssignableFrom(keyType())))\n row.add(\"String_Node_Str\", e.getKey());\n else\n throw new UnsupportedOperationException(\"String_Node_Str\");\n if (!(Marsh...
"public static String readExternalUrlRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, String rootPath) {\n if (!RefUtils.isAnExternalRefFormat(refFormat)) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n String result;\n try {\n if (refFormat == RefFormat.URL) {\...
"protected void queryTracksInternal(final String library, final Subscriber<List<Track>> subscriber, final Bundle args) {\n Observable.create(new Observable.OnSubscribe<Track>() {\n public void call(Subscriber<? super Track> subscriber) {\n queryTracks(library, subscriber, args);\n }\n })....
"private void parse(Tree tree) throws SAXException {\n if (tree == null) {\n return;\n }\n switch(tree.getType()) {\n case JSONLexer.PAIR:\n {\n Tree valueTree = tree.getChild(1);\n if (valueTree.getType() == JSONLexer.ARRAY) {\n parse(v...
"public void draw(Canvas canvas, Paint paint) {\n if (!mPath.isEmpty()) {\n paint.setColor(mCurColor);\n canvas.drawPath(mPath, paint);\n }\n}\n"
"public void execute() {\n super.execute(command);\n}\n"
"public String getUrl() {\n String serviceUrl = null;\n try {\n serviceUrl = jo.get(ServiceBasicAttributeNames.SERVICE_ENDPOINT_URL.getAttributeName()).toString();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return serviceUrl;\n}\n"
"public boolean isOutOfRange(String inputValue) {\n outOfRange = false;\n if (inputValue == null || indicator == null) {\n return false;\n }\n IndicatorEnum indicatorEnum = IndicatorEnum.findIndicatorEnum(indicator.eClass());\n if (indicatorEnum != null) {\n switch(indicatorEnum) {\n ...
"public static void decodeToFile(String dataToDecode, String filename) throws java.io.IOException {\n Base64.OutputStream bos = null;\n try {\n bos = new Base64.OutputStream(new java.io.FileOutputStream(filename), Base64.DECODE);\n bos.write(dataToDecode.getBytes(PREFERRED_ENCODING));\n } catch (...
"final boolean ensureActivityConfigurationLocked(ActivityRecord r, int globalChanges) {\n if (mConfigWillChange) {\n if (DEBUG_SWITCH || DEBUG_CONFIGURATION)\n Slog.v(TAG, \"String_Node_Str\" + r);\n return true;\n }\n if (DEBUG_SWITCH || DEBUG_CONFIGURATION)\n Slog.v(TAG, \"Str...
"public String endGeneration() {\n File file = new File(generationDir + \"String_Node_Str\");\n try {\n if (file.createNewFile()) {\n FileWriter fstream = new FileWriter(file);\n out = new BufferedWriter(fstream);\n out.write(\"String_Node_Str\" + new Date() + \"String_Node...
"public FlushResult flush(MessageClient messageClient, List<Message> outboundQueue) {\n FlushResult flushResult = new FlushResult();\n List<Message> messagesToFlush = null;\n for (Iterator<Message> iter = outboundQueue.iterator(); iter.hasNext(); ) {\n Message message = iter.next();\n if (message...
"private int addMesureHeader(List list, int baseColumn, int area, List measures) {\n if (isVertical() && area == ICrosstabConstants.COLUMN_AXIS_TYPE) {\n return 0;\n } else if (!isVertical() && area == ICrosstabConstants.ROW_AXIS_TYPE) {\n return 0;\n }\n int measureCount = measures.size();\n ...
"public SAXParser get(Map<String, ?> properties) throws ParserConfigurationException, SAXException {\n Set<String> keys = null;\n if (properties != null) {\n keys = new HashSet<String>(properties.keySet());\n }\n synchronized (this) {\n List<SAXParser> list = parserCache.get(keys);\n if...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n try {\n Descriptor workingDescriptor = findReferenceDescriptor(xPathFragment, unmarshalRecord, atts, xmlAnyObjectMapping, xmlAnyObjectMapping.getKeepAsElementPolicy());\n UnmarshalKeepAsEleme...
"public EnumFacing getRenderDirection(long tick, float partialTicks) {\n long diff = tickFinished - tickStarted;\n long afterTick = tick - tickStarted;\n float interp = (afterTick + partialTicks) / diff;\n interp = Math.max(0, Math.min(1, interp));\n if (toCenter) {\n return side == null ? null : ...
"public AcceptorEventHandler start(int port) throws IOException {\n eg.start();\n AcceptorEventHandler eah = new AcceptorEventHandler(port, () -> {\n final Map<Long, CharSequence> cidToCsp = new HashMap<>();\n queueWireHandler = new QueueWireHandler();\n MapWireHandlerProcessor wireHandler = ...
"public static List<CommonTree> getInteractionChildren(CommonTree ct) {\n return (ct.getChildCount() == 0) ? Collections.emptyList() : ScribParserUtil.toCommonTreeList(ct.getChildren());\n}\n"
"private synchronized void updateStep(Matrix observationMatrix, Matrix measurement, Matrix updateCovariance) {\n predictStep();\n Matrix inovation = measurement.minus(observationMatrix.times(state));\n for (int i = 4; i < 7; i++) {\n if (inovation.get(i, 0) > 180) {\n inovation.set(i, 0, -360...
"public void onHostPort(String hostName, int port) {\n wireNetworkStats.remoteHostName(hostName);\n wireNetworkStats.remotePort(port);\n}\n"
"public void testPutAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {\n Future<Object> future = map1.putAsync(\"String_Node_Str\", \"String_Node_Str\");\n future.get();\n}\n"
"private void onWrite(final SelectionKey key, final long approxTime) throws InterruptedException, IOException {\n final SocketChannel socketChannel = (SocketChannel) key.channel();\n final Attached attached = (Attached) key.attachment();\n if (attached.entryWriter.isWorkIncomplete()) {\n boolean complet...
"private boolean wakeUpRouterService(final Context context, final boolean ping, final boolean altTransportWake) {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {\n if (!isRouterServiceRunning(context, ping)) {\n Log.d(TAG, \"String_Node_Str\");\n Intent serviceIntent = new Intent(...
"public PsiElement resolveToCallable() {\n ResolveResult[] resolveResults = multiResolve(false);\n if (resolveResults.length == 0) {\n return null;\n }\n return CSharpResolveUtil.findFirstValidElement(resolveResults);\n}\n"
"public void destroy() throws IOException {\n LogEntry tmp = nextEntry;\n nextEntry = null;\n if (tmp != null)\n tmp.free();\n if (currentFile != null)\n currentFile.close();\n}\n"
"public void onsingelPressed() {\n unmark();\n singel.setStyle(\"String_Node_Str\");\n currentMode = 0;\n kameraFilterService.setcurrent(index, currentMode);\n}\n"
"protected TreeItem getTreeItem(Tree tree, Object dataOfTreeItem, Object dataOfTableItem) {\n String path = null;\n if (dataOfTableItem instanceof SchemaTarget) {\n SchemaTarget target = (SchemaTarget) dataOfTableItem;\n path = target.getRelativeXPathQuery();\n } else if (dataOfTableItem instance...
"public void canUseCoolShortcutsForResourceCreation() throws Exception {\n String database2Name = \"String_Node_Str\";\n String database1InEPName = \"String_Node_Str\";\n String database2InEPName = \"String_Node_Str\";\n String elasticPool2Name = \"String_Node_Str\";\n String elasticPool3Name = \"String_...
"public BigDecimal convertUnitPrice(SaleOrderLine saleOrderLine, SaleOrder saleOrder) {\n BigDecimal price = saleOrderLine.getProduct().getSalePrice();\n if (saleOrderLine.getProduct().getInAti() && !saleOrder.getInAti()) {\n price = price.divide(saleOrderLine.getTaxLine().getValue().add(new BigDecimal(1))...
"private void restoreWalletFromProtobuf(final File file) {\n try (final FileInputStream is = new FileInputStream(file)) {\n restoreWallet(WalletUtils.restoreWalletFromProtobuf(is, Constants.NETWORK_PARAMETERS));\n log.info(\"String_Node_Str\", file);\n } catch (final IOException x) {\n Failur...
"protected void collectStats(final LongWritable key, final double sum, final Context context) {\n final long level = (key.get() % numLevels) + minLevel;\n Double max = maxPerLevel.get(level);\n if ((max == null) || (sum > max)) {\n max = sum;\n maxPerLevel.put(level, max);\n }\n context.get...
"public boolean roomInInventory(ItemStack item) {\n if ((SLOT_INVENTORY_START == -1) || (SLOT_INVENTORY_END == -1))\n return false;\n if (item == null)\n return false;\n int stackSize = item.stackSize;\n for (int i = SLOT_INVENTORY_START; i <= SLOT_INVENTORY_END; i++) {\n if (slots[i] =...
"public List<RolapMember> getMembersInLevel(RolapLevel level, int startOrdinal, int endOrdinal, TupleConstraint constraint) {\n synchronized (cacheHelper) {\n checkCacheStatus();\n List<RolapMember> members = rolapCubeCacheHelper.getLevelMembersFromCache(level, constraint);\n if (members != null...
"public ItemStack slotClick(int slotNum, int mouseButton, int modifier, EntityPlayer player) {\n if (slotNum < 0 || slotNum >= inventorySlots.size())\n return null;\n Slot slot = (Slot) inventorySlots.get(slotNum);\n if (slot instanceof SlotPhantom)\n return ((SlotPhantom) slot).onClick(mouseButt...
"public static List<String> getMethodNames(IFile javaFile) throws Exception {\n List<String> methodNames = new ArrayList<String>();\n boolean enabled = Activator.getDefault().getPreferenceStore().getBoolean(STR.Preference.TestMethodAutoGenerate.ENABLE);\n if (enabled) {\n InputStream is = null;\n ...
"protected void renderContent(GL2 gl) {\n if (layoutDisplayListIndex == -1)\n layoutDisplayListIndex = gl.glGenLists(1);\n gl.glEnable(GL.GL_BLEND);\n gl.glBlendFunc(GL.GL_ONE, GL.GL_ONE_MINUS_SRC_ALPHA);\n gl.glEnable(GL.GL_LINE_SMOOTH);\n GLU glu = null;\n gl.glNewList(layoutDisplayListIndex,...
"public int getIndexOfChild(Object parent, Object child) {\n if (parent == projectDirectory.getParent()) {\n return this.files.indexOf(child);\n } else {\n return -1;\n }\n}\n"
"public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement ps = connection.prepareStatement(sql);\n ps.setString(1, punyNameLikeClause);\n ps.setString(2, punyNameLikeClause);\n return ps;\n}\n"
"public static void setArea(String worldName, int x1, int y1, int z1, int x2, int y2, int z2, String materialName, byte data) {\n for (int x = x1; x < x2; x++) {\n for (int y = y1; y < y2; y++) {\n for (int z = z1; z < z2; z++) {\n setBlock.setBlock(worldName, x, y, z, materialName, ...
"public boolean onTransact(int code, Parcel data, Parcel reply, int flags) throws RemoteException {\n switch(code) {\n case START_ACTIVITY_TRANSACTION:\n {\n data.enforceInterface(IActivityManager.descriptor);\n IBinder b = data.readStrongBinder();\n IAp...
"private void initUI() {\n setLayout(new FitLayout());\n setHeading(\"String_Node_Str\");\n ToolBar topToolbar = new ToolBar();\n setTopComponent(topToolbar);\n propertiesButton = new SplitButton(\"String_Node_Str\", new SelectionListener<ButtonEvent>() {\n public void componentSelected(ButtonEven...
"public String[] getSoftIrqNames() {\n return Arrays.copyOf(soft_irq_names, soft_irq_names.length);\n}\n"
"public PasswordDialog show() {\n if (title == null || message == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n View view = inflater.inflate(R.layout.password_dialog, null);\n ((TextView) view.findViewById(R.id.password_dialog_title)).setText(title);\n ((TextView) view.findViewB...
"private void doSnapshot(boolean closing) throws IOException {\n long snapshotTime = 0L;\n TransactionSnapshot snapshot = null;\n TransactionLog oldLog = null;\n try {\n this.logWriteLock.lock();\n try {\n synchronized (this) {\n if (snapshot == null && !closing) {\n ...
"static protected byte[] serializeChokeMap(Map<String, Map<String, Integer>> chokeMap) throws IOException {\n DatumWriter<AvroFlumeChokeMap> datumWriter = new SpecificDatumWriter<AvroFlumeChokeMap>();\n AvroFlumeChokeMap avromap = new AvroFlumeChokeMap();\n Map<CharSequence, Map<CharSequence, Integer>> map = n...
"protected JSONObject getExpectedParameters(int sdlVersion) {\n JSONObject result = new JSONObject();\n JSONObject image1 = new JSONObject(), image2 = new JSONObject();\n JSONArray softButtons = new JSONArray();\n try {\n JSONObject softButton = new JSONObject();\n softButton.put(SoftButton.KE...
"public String getUsagePlanName(String tenantDomain) throws Exception {\n Subscription subscription;\n try {\n return \"String_Node_Str\";\n } catch (Exception e) {\n String msg = \"String_Node_Str\" + tenantDomain;\n log.error(msg, e);\n throw new Exception(msg, e);\n }\n}\n"
"protected final <I extends Identified> void addChildSafely(I child, Map<URI, I> siblingsMap, String typeName, Map<URI, ? extends Identified>... maps) {\n if (isChildURIformCompliant(this.getIdentity(), child.getIdentity())) {\n URI persistentId = URI.create(extractPersistentId(child.getIdentity()));\n ...
"public void actionPerformed(ActionEvent e) {\n switch(e.getActionCommand()) {\n case ACTION_RELOAD:\n if (View.showConfirmDialog(null, translate(\"String_Node_Str\"), translate(\"String_Node_Str\"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.YES_OPTION) {\n ...
"public void userListPermissions(Plugin plugin, CommandSender sender, Map<String, String> args) {\n PermissionUser user = PermissionsPlugin.getPermissionManager().getUser(args.get(\"String_Node_Str\"));\n if (user == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n }...
"public Data putInternal(Data key, Data value) {\n VersionedValue versionedValue = lockAndGet(key, tx.getTimeoutMillis());\n if (versionedValue == null) {\n throw new TransactionException(\"String_Node_Str\" + ThreadUtil.getThreadId());\n }\n tx.addTransactionLog(new MapTransactionLog(name, key, new ...
"public void setGenerateBy(Object design) {\n super.setGenerateBy(design);\n if (design instanceof MasterPageDesign) {\n MasterPageDesign page = (MasterPageDesign) design;\n orientation = page.getOrientation();\n pageType = page.getPageType();\n if (EngineIRConstants.PAGE_ORIENTATION_L...
"protected void onPostExecute(Boolean result) {\n mIsPostTaskRunning = false;\n if (!hasActivity())\n return;\n if (!result) {\n requestPost();\n return;\n }\n getActivity().setTitle(mPost.getTitle());\n showFollowedStatus(txtFollow, mPost.isFollowedByCurrentUser);\n if (mPost....
"public static String getString(byte[] bytes, int offset, int length) {\n try {\n return length == 0 ? null : new String(bytes, offset, Math.min(length, bytes.length - offset), \"String_Node_Str\");\n } catch (UnsupportedEncodingException e) {\n throw new Error(\"String_Node_Str\" + e.getMessage());...
"protected void createAreas(Composite parent) {\n Composite topComposite = new Composite(parent, SWT.NONE);\n GridLayout topLayout = new GridLayout(2, false);\n topComposite.setLayout(topLayout);\n topComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\n createURLArea(topComposite);\n...
"public void close() {\n if (metricsTrackingEnabled) {\n LOG.info(dbManager.getMetrics().getSummary());\n LOG.info(\"String_Node_Str\", queryMetrics.getSummary());\n }\n dbManager.close();\n}\n"
"public boolean hasNext() {\n return row != null;\n}\n"
"public CubingJob buildJob() {\n checkPreconditions();\n final int groupRowkeyColumnsCount = segment.getCubeDesc().getRowkey().getNCuboidBuildLevels();\n final int totalRowkeyColumnsCount = segment.getCubeDesc().getRowkey().getRowKeyColumns().length;\n CubingJob result = initialJob(\"String_Node_Str\");\n ...
"public View getView(int position, View convertView, ViewGroup parent) {\n ViewHolder viewHolder;\n if (convertView == null) {\n viewHolder = new ViewHolder();\n convertView = LayoutInflater.from(context).inflate(resource, null);\n viewHolder.gravatar = (ImageView) convertView.findViewById(R....
"private void createDefaultTreeAndGroupList() {\n isTreeDefaultTree = true;\n tree = new ClusterTree(idType, virtualArray.size());\n ClusterNode root = new ClusterNode(tree, \"String_Node_Str\", 0, true, -1);\n tree.setRootNode(root);\n for (Integer id : virtualArray) {\n tree.addChild(root, new C...
"protected void _updateEstimates() {\n _transitionMatrix = A_new;\n _sigma = s_new;\n _mu = m_new;\n _priorIn = prior_new;\n _D = D_new;\n _durationPriors = dPrior_new;\n}\n"
"public void addMarkers(IResource pomFile, String type, MavenExecutionResult result) {\n SourceLocation defaultSourceLocation = new SourceLocation(1, 0, 0);\n List<MavenProblemInfo> allProblems = new ArrayList<MavenProblemInfo>();\n allProblems.addAll(toMavenProblemInfos(defaultSourceLocation, result.getExcept...
"public AuthenticatedUser authenticateUser(Credentials credentials) throws GuacamoleException {\n HttpServletRequest request = credentials.getRequest();\n RadiusPacket radPack;\n if (credentials.getUsername() == null || credentials.getUsername().isEmpty())\n return null;\n if (credentials.getPassword...
"public void run() {\n TreeParent serverRoot = (TreeParent) ((IStructuredSelection) ServerView.this.viewer.getSelection()).getFirstElement();\n final String universe = serverRoot.getUniverse();\n final String username = serverRoot.getUsername();\n final String password = serverRoot.getPassword();\n final...
"protected static FilePath[] resolveDirPaths(FilePath workspace, TaskListener listener, final String input) {\n FilePath[] directoryPaths = null;\n try {\n directoryPaths = workspace.act(new ResolveDirPaths(input));\n } catch (InterruptedException | IOException ie) {\n ie.printStackTrace();\n ...
"static int[] tryRecipe(EntityPlayerMP player, CraftingRecipe craftingRecipe, int n, IItemSource itemSource, boolean strictDamage) {\n InventoryCrafting workInventory = new InventoryCrafting(new Container() {\n public boolean canInteractWith(EntityPlayer var1) {\n return false;\n }\n }, 3...
"public boolean performFinish() {\n if (getContainer().getCurrentPage().equals(manyProjectsPage)) {\n return manyProjectsPage.createProjects();\n } else {\n name = mainPage.getName().trim().replace(' ', '_');\n final String technicalName = mainPage.getTechnicalName();\n final String so...
"public void simpleCallBack() {\n CallbackImpl c = new CallbackImpl();\n c.addPathItem(\"String_Node_Str\", pathItem);\n vh.resetResults();\n validator.validate(vh, context, c);\n if (vh.hasEvents())\n Assert.fail(\"String_Node_Str\" + vh);\n}\n"
"public boolean nextEntry(EntryCallback callback, int na) {\n final Bytes bytes = payloads.poll();\n if (bytes == null)\n return false;\n callback.onEntry(bytes, 0, System.currentTimeMillis());\n return true;\n}\n"
"private void restructMemoryDelegate() {\n byte[] tmpBuf = null;\n if (memoryDelegate.length * 2 < 0 || memoryDelegate.length * 2l > Integer.MAX_VALUE) {\n tmpBuf = new byte[Integer.MAX_VALUE];\n this.pureMemory = false;\n } else {\n tmpBuf = new byte[memoryDelegate.length * 2];\n }\n ...
"public void setCurrentHour(Integer currentHour) {\n if (currentHour == null || currentHour == getCurrentHour()) {\n return;\n }\n if (!is24HourView()) {\n if (currentHour >= HOURS_IN_HALF_DAY) {\n mIsAm = false;\n if (currentHour > HOURS_IN_HALF_DAY) {\n curr...
"public static boolean isVideo(String url) {\n if (url == null) {\n return false;\n }\n url = url.toLowerCase(Locale.ROOT);\n return url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"String_Node_Str\") || url.endsWith(\"Strin...
"public void validate(UIFormInput uiInput) throws Exception {\n String s = (String) uiInput.getValue();\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (Character.isLetter(c) || Character.isDigit(c) || c == '_' || c == '-' || Character.isSpaceChar(c)) {\n continue;\n...
"protected List<String> getTableNamesFromTables(ResultSet resultSet, IMetadataConnection metadataConnection) throws SQLException {\n List<String> itemTablesName = new ArrayList<String>();\n tableCommentsMap.clear();\n if (resultSet != null) {\n while (resultSet.next()) {\n String nameKey = re...
"boolean isPreviousButtonDisabled() {\n return prevPage.isDisabled();\n}\n"
"public void setLabel(String newLabel) {\n String oldLabel = label;\n label = newLabel;\n if (!StringUtils.isEmpty(newLabel)) {\n setName(newLabel);\n }\n if (eNotificationRequired()) {\n eNotify(new ENotificationImpl(this, Notification.SET, ConnectionPackage.ABSTRACT_METADATA_OBJECT__LABEL...
"public MutableAcl createAcl(ObjectIdentity objectIdentity) throws AlreadyExistsException {\n Acl acl = null;\n try {\n acl = readAclById(objectIdentity);\n } catch (NotFoundException e) {\n }\n if (null != acl) {\n throw new AlreadyExistsException(\"String_Node_Str\" + objectIdentity + \"S...
"public void splitPixels_nosplit() {\n SplitMergeLineFitLoop alg = new SplitMergeLineFitLoop(0.15, 5 * MINIMUM_SPLIT_FRACTION, 100);\n alg.contour = new ArrayList<Point2D_I32>();\n for (int i = 0; i < 10; i++) alg.contour.add(new Point2D_I32(i, 0));\n alg.N = alg.contour.size();\n alg.splitPixels(0, 5);\...
"public void marshal(java.io.OutputStream os, Object namespacePrefixMapper) throws JAXBException {\n String xmlString = XmlUtils.marshaltoString(getJaxbElement(), false, true, jc);\n int pos = xmlString.indexOf(\"String_Node_Str\");\n xmlString = xmlString.substring(0, pos + 5) + \"String_Node_Str\" + xmlStrin...