content
stringlengths
40
137k
"public boolean execute(ICommandSender sender, String[] args) throws Exception {\n IPlayer player = (IPlayer) sender;\n if (player.hasPermission(PermissionNames.USER_CLAIM) || player.hasPermission(PermissionNames.ADMIN_CLAIM_OTHER)) {\n IWorld world = player.getWorld();\n PlotMapInfo pmi = manager.g...
"public void testStore() throws OseeCoreException {\n Artifact testArtifact = ArtifactQuery.getOrCreate(coverageTestGuid, null, CoverageArtifactTypes.CoveragePackage, testWorkingBranch);\n testArtifact.setSoleAttributeFromString(CoverageAttributeTypes.UnitTestTable, testInputDataCoverageArtifact);\n ArtifactTe...
"public void onLandClaim(FactionsEventChunkChange event) {\n if (Config._extras._protection.worldguardCanBuildCheck._) {\n if (!event.getUSender().getFaction().isNone() && !event.getUSender().isUsingAdminMode() && !event.getUSender().getPlayer().isOp() && !FP.permission.has(event.getUSender().getPlayer(), \"S...
"public void showLoadingBar(int position, final boolean visible) {\n final View parentView = mListView.getChildAt(position);\n runOnUiThread(new Runnable() {\n public void run() {\n if (visible) {\n parentView.findViewById(R.id.progressBar).setVisibility(View.VISIBLE);\n ...
"private String buildLine(String[] names) {\n HashSet<String> set = new HashSet<String>();\n StringBuilder out = new StringBuilder();\n boolean notFirst = false;\n for (String name : names) {\n String[] p = AuthorUtils.splitName(name);\n if (isLongForm(p)) {\n set.add(makeShortForm(...
"public static IValue fromObject(Object o) {\n if (o == null) {\n return new NullValue();\n }\n Class c = o.getClass();\n if (c == Character.class) {\n return new CharValue((Character) o);\n } else if (c == Integer.class) {\n return new IntValue((Integer) o);\n } else if (c == Lon...
"public boolean start() throws Exception {\n new Thread() {\n public void run() {\n try {\n singleton.update();\n singleton.getClient();\n } catch (final Exception ex) {\n LOG.error(ex, ex);\n }\n }\n }.start();\n retur...
"final boolean goInDirection(EDirection direction) {\n ShortPoint2D pos = direction.getNextHexPoint(position);\n if (force || (grid.isValidPosition(this, pos) && grid.hasNoMovableAt(pos.x, pos.y))) {\n this.direction = direction;\n setState(EMovableState.GOING_SINGLE_STEP);\n return true;\n ...
"public AtlasGlossaryTerm updateTerm(AtlasGlossaryTerm atlasGlossaryTerm) throws AtlasBaseException {\n if (DEBUG_ENABLED) {\n LOG.debug(\"String_Node_Str\", atlasGlossaryTerm);\n }\n if (Objects.isNull(atlasGlossaryTerm)) {\n throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, \"String_Node...
"protected void changePassword() {\n ISecurityService securityService = context.getSecurityService();\n IOperationsService operationsService = context.getOperationsService();\n User user = context.getUser();\n String password = securityService.hash(user.getSalt(), currentPasswordField.getValue());\n if (...
"public void execute() throws MojoExecutionException, MojoFailureException {\n getComponentProperties().put(\"String_Node_Str\", \"String_Node_Str\");\n getComponentProperties().put(\"String_Node_Str\", (sourceDirectory != null) ? sourceDirectory : \"String_Node_Str\");\n File revengFile = new File(\"String_No...
"private void handleMemberFaultEvent(String clusterId, String memberId) {\n try {\n AbstractClusterMonitor monitor = getMonitor(clusterId);\n NetworkPartitionContext nwPartitionCtxt;\n TopologyManager.acquireReadLockForServices();\n try {\n Member member = findMember(memberId);...
"Object getValue(Object obj) throws Exception {\n return obj;\n}\n"
"private static void setContentEncoding(HttpResponse response, BinaryResult binaryResult) {\n Header contentEncoding = response.getFirstHeader(\"String_Node_Str\");\n if (contentEncoding != null && \"String_Node_Str\".equals(contentEncoding.getValue())) {\n binaryResult.base64();\n }\n}\n"
"Object parseValue(XMLEventReader xmlEventReader) throws Exception {\n XMLEvent xmlEvent = xmlEventReader.nextEvent();\n if (xmlEvent.getEventType() == XMLStreamConstants.START_ELEMENT) {\n String type = xmlEvent.asStartElement().getName().getLocalPart();\n if (type.equals(\"String_Node_Str\"))\n ...
"private ImmutablePair<Long, byte[]> latest(ResultSet result) throws SQLException {\n if (result == null) {\n return null;\n long lastDelete = -1;\n long undeleted = -1;\n while (result.next()) {\n long curVersion = result.getLong(1);\n Type type = Type.from(result.getInt(2));\n ...
"public Collection<String> getAncestorIris(String iri) throws OntologyHelperException {\n Collection<String> ancestors;\n checkTerm(iri);\n if (!nonDefinitiveTerms.containsKey(iri)) {\n parents = super.getParentIris(iri);\n } else {\n parents = findRelatedNonDefinitiveTerms(iri, TermLinkType.A...
"private void buildTools() {\n topPanel.add(bold = createToggleButton(resources.bold(), 20, 20, GUI_HOVERTEXT_BOLD));\n topPanel.add(italic = createToggleButton(resources.italic(), 20, 20, GUI_HOVERTEXT_ITALIC));\n topPanel.add(underline = createToggleButton(resources.underline(), 20, 20, GUI_HOVERTEXT_UNDERLI...
"public void run() {\n CrosstabReportItemHandle reportItem = getCrosstabReportItemHandle(getHandle());\n if (reportItem != null) {\n transStar(NAME);\n try {\n reportItem.removeMeasure(measureViewHandle.getIndex());\n if (bool) {\n CrosstabAdaptUtil.removeInvalid...
"void listenMembershipEvents(Address ownerConnectionAddress) {\n initialListFetchedLatch = new CountDownLatch(1);\n ClientMessage clientMessage = ClientAddMembershipListenerCodec.encodeRequest(false);\n Connection connection = connectionManager.getConnection(ownerConnectionAddress);\n if (connection == null...
"public org.hl7.fhir.dstu2.model.Medication.MedicationProductComponent convertMedicationProductComponent(org.hl7.fhir.dstu3.model.Medication.MedicationProductComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Medication.MedicationProductCompo...
"protected String[] getAllowedSuffixes() {\n return ALLOWED_SUFFIXES;\n}\n"
"protected boolean use(EntityPlayer player, int side, Vector3 hit) {\n if (!this.worldObj.isRemote)\n player.openGui(ICBMCore.INSTANCE, 0, world(), x(), y(), z());\n return true;\n}\n"
"public void writeLong(long v) {\n throw new UnsupportedOperationException(getClass().getName());\n}\n"
"protected void reset(int newLevel) {\n if (newLevel > 30) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n minSize = size * 3 / 4;\n size = 0;\n level = newLevel;\n len = 2 << level;\n mask = len - 1;\n maxSize = (int) (len * MAX_LOAD / 100L);\n deletedCount = 0;\n m...
"public void apply() throws Exception {\n PartitionOutput output = pfs.getPartitionOutput(PARTITION_KEY);\n Location outputLocation = output.getLocation().append(\"String_Node_Str\");\n OutputStream out = outputLocation.getOutputStream();\n out.close();\n output.addPartition();\n Assert.assertTrue(out...
"private byte[] generateDisconnectRequest() throws Exception {\n if (this.getInterfaceType() == InterfaceType.NET) {\n java.nio.ByteBuffer buff = java.nio.ByteBuffer.allocate(2);\n buff.put((byte) 0x63);\n buff.put((byte) 0x0);\n return m_Base.addFrame((byte) 0, false, buff, 0, buff.posit...
"private void loadAdapter(List<Parameter> parameters) {\n if (parameters == null || parameters.isEmpty()) {\n return;\n }\n TreeMap<String, Parameter> prunedParameters = new TreeMap<>();\n for (Parameter parameter : parameters) {\n prunedParameters.put(parameter.name, parameter);\n }\n i...
"public void add(V event) {\n V existingEvent = values.get(event);\n if (existingEvent != null) {\n remove0(existingEvent);\n }\n add0(event);\n}\n"
"private static Class<? extends Capsule> loadCapsule(ClassLoader cl, String capsuleClass, String name) {\n try {\n log(LOG_DEBUG, \"String_Node_Str\" + capsuleClass + \"String_Node_Str\" + toString(cl));\n final Class<?> clazz = cl.loadClass(capsuleClass);\n final Class<Capsule> c = getActualCap...
"public void testNavigationTweaks() {\n final AdditionalUiSettingsFragment fragment = startFragment();\n ViewTestUtils.performClick(fragment.findPreference(\"String_Node_Str\"));\n Robolectric.flushForegroundThreadScheduler();\n final Fragment next = fragment.getActivity().getSupportFragmentManager().findFr...
"public void write(final OutputStream output) throws IOException, WebApplicationException {\n try {\n SearchResponseHandler responseHandler = new SearchResponseHandler(output);\n try {\n final int contextId = System.identityHashCode(Thread.currentThread());\n queryHandler.streamRe...
"public void abortInstallation() {\n aborted = true;\n this.setVisible(false);\n clearPanel();\n}\n"
"public boolean onOptionsItemSelected(MenuItem item) {\n switch(item.getItemId()) {\n case R.id.actionToggleValues:\n {\n for (DataSet<?> set : mChart.getData().getDataSets()) set.setDrawValues(!set.isDrawValuesEnabled());\n mChart.invalidate();\n break;...
"Object[] packArgs(Object[] args, List modelArgs, BeansWrapper w) throws TemplateModelException {\n final int actualArgCount = args.length;\n final int fixArgCount = argCount - 1;\n if (args.length != argCount) {\n Object[] newargs = new Object[argCount];\n System.arraycopy(args, 0, newargs, 0, f...
"private String getParameterName(String configVarName) {\n String paramName = null;\n List parameters = null;\n ModuleHandle model = SessionHandleAdapter.getInstance().getReportDesignHandle();\n if (model != null) {\n parameters = model.getFlattenParameters();\n }\n if (parameters != null) {\n ...
"protected void okPressed() {\n boolean isExist = false;\n if (descCombo.getCombo().getText().trim().length() == 0) {\n MessageDialog.openWarning(null, \"String_Node_Str\", \"String_Node_Str\");\n descriptionText.setFocus();\n isOK = false;\n return;\n }\n if (userText.getText()....
"private static void sycFileContents(IFile file, String content) throws Exception {\n if (file.exists())\n file.setContents(new ByteArrayInputStream(content.getBytes(\"String_Node_Str\")), IFile.FORCE, new NullProgressMonitor());\n}\n"
"private synchronized void writeObject(ObjectOutputStream stream) throws IOException {\n stream.writeObject(allFiles);\n synchronized (incompleteFileManager) {\n stream.writeObject(incompleteFileManager);\n }\n stream.writeObject(null);\n}\n"
"public void run() {\n JMetalLogger.logger.info(\"String_Node_Str\");\n prepareOutputDirectory();\n System.setProperty(\"String_Node_Str\", \"String_Node_Str\" + this.experiment.getNumberOfCores());\n experiment.getAlgorithmList().parallelStream().forEach(algorithm -> algorithm.runAlgorithm(experiment));\n}...
"public void dump() throws IOException {\n ln(\"String_Node_Str\");\n ln_i(\"String_Node_Str\");\n ln(\"String_Node_Str\");\n ln(\"String_Node_Str\");\n addNote();\n for (Section s : sections) {\n if (s.hasRegularContent()) {\n ln_i(\"String_Node_Str\");\n ln(\"String_Node...
"public boolean addAll(Collection<? extends Entry<K, V>> c) {\n HashMap.this.resizeForJoin(c.size());\n return super.addAll(c);\n}\n"
"public void setActive(final boolean active) {\n GWT.log(\"String_Node_Str\" + active, null);\n if (active) {\n roster.setWidgetTopHeight(actions, 0, Unit.PX, 20, Unit.PX);\n roster.setWidgetTopHeight(disabledPanel, 0, Unit.PX, 0, Unit.PX);\n roster.setWidgetTopBottom(scroll, 20, Unit.PX, 0, ...
"public void scrollDown() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n int caretPosition;\n try {\n String docText = editorPane.getDocument().getText(0, editorPane.getDocument().getLength());\n caretPosition = docText.indexOf(Repor...
"public void insertAtPreviousInsert(Editor editor, DataContext context) {\n int offset = CommandGroups.getInstance().getMotion().moveCaretToMark(editor, context, '^');\n if (offset != -1) {\n MotionGroup.moveCaret(editor, offset);\n }\n insertBeforeCursor(editor, context);\n}\n"
"public void addItemStackToJournal(ItemStack itemstack, ItemStack journal, World world) {\n NBTTagCompound tagCompound = journal.getTagCompound();\n if (tagCompound == null) {\n tagCompound = new NBTTagCompound();\n NBTTagList taglist = tagCompound.getTagList(ITEMS_TAG_NAME);\n if (taglist == null)\n...
"private PluginListFragment showListFragment(PluginListType listType) {\n PluginListFragment listFragment = getListFragment();\n if (listFragment != null) {\n listFragment.setListType(listType);\n } else {\n listFragment = PluginListFragment.newInstance(mSite, listType);\n getFragmentManag...
"private void readFromParcelInner(Parcel parcel, int length) {\n if (length < 0) {\n throw new RuntimeException(\"String_Node_Str\" + length);\n } else if (length == 0) {\n mParcelledData = EMPTY_PARCEL;\n return;\n }\n int magic = parcel.readInt();\n if (magic != BUNDLE_MAGIC) {\n ...
"public boolean connect(int timeout, InetSocketAddress address) throws IOException {\n host = new Host(getNetConfig(), null);\n peer = host.connect(address);\n this.connectionId = peer.getId();\n int attemptsRemaining = 5;\n do {\n update(timeout);\n } while (!peer.isConnected() && attemptsRema...
"protected void _checkSensorActuatorNetworkConsistency() throws IllegalActionException {\n for (TypedIOPort port : (List<TypedIOPort>) (((TypedCompositeActor) getContainer()).inputPortList())) {\n for (TypedIOPort sinkPort : (List<TypedIOPort>) port.deepInsidePortList()) {\n if (_isNetworkPort(port...
"public Stream load() throws UCMEntityNotFoundException, UnableToLoadEntityException, UnableToInitializeEntityException {\n logger.fine(\"String_Node_Str\");\n String rawdata = \"String_Node_Str\";\n String cmd = \"String_Node_Str\" + this;\n try {\n rawdata = Cleartool.run(cmd).stdoutBuffer.toString...
"public int hashCode() {\n int hc = 3;\n int hcMul = 7;\n hc = hc * hcMul + vm_marker;\n return hc * hcMul + super.hashCode();\n}\n"
"public void testNameLarge() throws Exception {\n webhook = webhook.withDefaults();\n webhookValidator.validate(webhook.withName(Strings.repeat(\"String_Node_Str\", 128)));\n}\n"
"protected void populateItem(ListItem<FieldWrapper> item) {\n final FieldWrapper field = item.getModelObject();\n item.add(new Label(\"String_Node_Str\", new ResourceModel(field.getName())));\n final AbstractFieldPanel component;\n Method classMethod;\n try {\n if (field.getType().equals(ConflictR...
"public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) {\n TileEntityCoffin tile = (TileEntityCoffin) te;\n if ((te.getBlockMetadata() & (-8)) == 0) {\n return;\n }\n boolean occupied = (te.getBlockMetadata() & 4) != 0;\n if (!occupied && tile.lidPos > 0)\n ...
"private void traverse(IArea area) {\n if (area instanceof ContainerArea) {\n if (((ContainerArea) area).content instanceof ForeignContent) {\n return;\n }\n if (area instanceof TableArea) {\n tableIds.add(((TableArea) area).getContent().getInstanceID().toUniqueString());\n...
"public void updateFreq(PartP2PTunnel t, long NewFreq) {\n outputs.remove(t.freq, t);\n inputs.remove(t.freq);\n t.freq = NewFreq;\n if (t.output)\n outputs.put(t.freq, t);\n else\n inputs.put(t.freq, t);\n updateTunnel(t.freq, t.output, true);\n updateTunnel(t.freq, !t.output, true);...
"private void initSelectionElements() {\n boolean createValues = (values == null) || (values.length == 0);\n if (createValues) {\n values = new String[keys.length];\n for (int i = 0; i < keys.length; i++) {\n values[i] = translator.translate(keys[i]);\n }\n }\n if (layout == ...
"public void handleMsg(Object message) {\n if (message instanceof StatsPartRawDataMessage) {\n StatsPartRawDataMessage partData = (StatsPartRawDataMessage) message;\n Map<Integer, List<ValueObject>> columnVoListMap = buildColumnVoListMap(partData.getRawDataList().size());\n DataPrepareStatsResul...
"public void setNeighbourRenderDirty(boolean dirty) {\n SpoutRegion parent = getRegion();\n for (int x = -1; x < 2; x++) {\n for (int y = -1; y < 2; y++) {\n for (int z = -1; z < 2; z++) {\n if (x == 0 || y == 0 || z == 0) {\n SpoutChunk c = parent.getLocalChunk...
"public void metadataOutputChanged(IODataComponent dataComponent, String connectionToApply) {\n List<Map<String, String>> listRoot = new ArrayList<Map<String, String>>();\n if (this.getElementParameter(ROOT) != null && this.getElementParameter(ROOT).getValue() != null) {\n listRoot.addAll((List<Map<String,...
"private void expandReferenceAccumulator(TreeReference sourceRef, DataInstance sourceInstance, TreeReference workingRef, Vector<TreeReference> refs, boolean includeTemplates) {\n int depth = workingRef.size();\n if (depth == sourceRef.size()) {\n refs.addElement(workingRef);\n return;\n }\n St...
"public void testStress() throws Exception {\n Rnd rnd = new Rnd();\n CharSequenceHashSet set = new CharSequenceHashSet();\n int n = 10000;\n for (int i = 0; i < n; i++) {\n set.add(next(rnd));\n }\n Assert.assertEquals(n, set.size());\n HashSet<String> check = new HashSet<>();\n for (int...
"public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(getActivity(), R.layout.row, current, new String[] { DatabaseHelper.TITLE, DatabaseHelper.VALUE }, new int[] { R.id.title, R.id.value }, 0);\n...
"public Owner findAndLock(String ownerKey) {\n List<Owner> result = getEntityManager().createQuery(\"String_Node_Str\", Owner.class).setParameter(\"String_Node_Str\", ownerKey).setMaxResults(1).setLockMode(LockModeType.PESSIMISTIC_WRITE).getResultList();\n if (result == null || result.isEmpty()) {\n return...
"public void actionSubsetFile() {\n final String path = actionShowOpenFileDialog(\"String_Node_Str\");\n if (path == null) {\n return;\n }\n final DialogSeparator dialog = new DialogSeparator(main.getShell(), this, path, true);\n dialog.create();\n if (dialog.open() == Window.CANCEL) {\n ...
"public void onError(Exception exception) {\n AtomicInteger counter = _pool._numberOfConnections.get(_connection._host);\n if (counter != null) {\n counter.decrementAndGet();\n }\n _realCallback.onError(exception);\n}\n"
"public int getSize() {\n return size;\n}\n"
"public Response getDispoItemsById(String fileName) {\n String origFileName = fileName;\n if (!fileName.endsWith(\"String_Node_Str\")) {\n fileName = fileName.replaceAll(dispoApi.getConfig().getFileExtRegex(), \"String_Node_Str\");\n }\n DispoSet set = dispoApi.getDispoSetById(branch, setId);\n St...
"public void setWidth(int width) {\n int borderWidth = 0;\n Iterator<IPersist> it2 = cellview.getAllObjects();\n while (it2.hasNext()) {\n IPersist element = it2.next();\n if (id.equals(ComponentFactory.getWebID(form, element))) {\n GraphicalComponent gc = (GraphicalComponent) view.lab...
"public ReservationResult reservation(DetailledItem item, Account acc, int useraction, String selection) throws IOException {\n String reservation_info = item.getReservation_info();\n String branch_inputfield = \"String_Node_Str\";\n Document doc = null;\n if (useraction == MultiStepResult.ACTION_CONFIRMATI...
"public UserVm recoverVirtualMachine(RecoverVMCmd cmd) throws ResourceAllocationException, CloudRuntimeException {\n final Long vmId = cmd.getId();\n Account caller = CallContext.current().getCallingAccount();\n final UserVmVO vm = _vmDao.findById(vmId);\n if (vm == null) {\n throw new InvalidParamet...
"public void onServiceDisconnected(ComponentName name) {\n synchronized (mLock) {\n mService = null;\n mEngine = null;\n if (mWallpaper.connection == this) {\n Slog.w(TAG, \"String_Node_Str\" + mWallpaper.wallpaperComponent);\n if (!mWallpaper.wallpaperUpdating && mWallpape...
"private Responses.ResponseBody evaluate(Requests.EvaluateArguments arguments) {\n final boolean showStaticVariables = true;\n boolean showFullyQualifiedNames = true;\n Map<String, Object> options = variableFormatter.getDefaultOptions();\n if (arguments.format != null && arguments.format.hex) {\n opt...
"private void init() {\n register(new SystemProcessors.Exit());\n register(new SystemProcessors.Help());\n register(new SystemProcessors.Version());\n register(new BlockProcessors.GetBestBlockHeader());\n register(new BlockProcessors.GetBlock());\n register(new BlockProcessors.GetBlockHeader());\n ...
"public static boolean promptChangeVersion(final Collection<? extends TeamWorkFlowArtifact> awas, VersionReleaseType versionReleaseType, VersionLockedType versionLockType) throws OseeCoreException {\n IAtsTeamDefinition teamDefHoldingVersions = null;\n for (TeamWorkFlowArtifact teamArt : awas) {\n if (!tea...
"public static void main(String[] args) {\n if (args.length < 1) {\n System.err.println(\"String_Node_Str\");\n display();\n System.exit(1);\n }\n try {\n kernelImpl = DSpaceKernelInit.getKernel(null);\n if (!kernelImpl.isRunning()) {\n kernelImpl.start(Configurati...
"public void pingPong() throws Exception {\n control.replay();\n connect();\n Utils.rollMockClock(0);\n assertEquals(Long.MAX_VALUE, peer.getLastPingTime());\n assertEquals(Long.MAX_VALUE, peer.getPingTime());\n ListenableFuture<Long> future = peer.ping();\n Ping pingMsg = (Ping) outbound();\n a...
"public void setSelection(int selectionStart, int selectionEnd) {\n if (selectionEnd > mExpression.length() || selectionStart > mExpression.length())\n throw new IllegalArgumentException(\"String_Node_Str\");\n if (selectionEnd < selectionStart) {\n int temp = selectionEnd;\n selectionEnd = s...
"public void onIQSourceError(final IQSourceInterface source, final String message) {\n this.runOnUiThread(new Runnable() {\n public void run() {\n Toast.makeText(MainActivity.this, \"String_Node_Str\" + source.getName() + \"String_Node_Str\" + message, Toast.LENGTH_LONG).show();\n }\n });...
"public final void setSelected(boolean selected) {\n super.setSelected(selected);\n for (TowerOccupier curr : occupiers) {\n curr.getSoldier().setSelected(selected);\n }\n if (attackableTowerObject != null && attackableTowerObject.currDefender != null) {\n attackableTowerObject.currDefender.ge...
"private Set<String> getAllPatternNames() {\n Set<String> list = new HashSet<String>();\n try {\n for (IResource resource : folder.members()) {\n if (resource instanceof IFile) {\n Pattern fr = PatternResourceFileHelper.getInstance().findPattern((IFile) resource);\n ...
"public void issue388NoBackupWhenSuperClient() throws InterruptedException {\n HazelcastInstance h1 = Hazelcast.newHazelcastInstance(null);\n HazelcastInstance h2 = Hazelcast.newHazelcastInstance(null);\n Config scconfig = new Config();\n scconfig.setLiteMember(true);\n HazelcastInstance sc = Hazelcast.n...
"public void init(WorkerContext<NNParams, NNParams> context) {\n this.props = context.getProps();\n loadConfigFiles(context.getProps());\n this.trainerId = Integer.valueOf(context.getProps().getProperty(CommonConstants.SHIFU_TRAINER_ID, \"String_Node_Str\"));\n GridSearch gs = new GridSearch(modelConfig.get...
"private void layoutBuffer() {\n int leftCol = 12;\n int topRow = 89;\n addSlotBox(SlotType.SLOT_INPUT, CONTAINER_INVENTORY, SLOT_BUFFER, leftCol, topRow, 12, 18, 2, 18);\n for (int py = 0; py < 2; py++) {\n addSlot(SlotType.SLOT_OUTPUT, CONTAINER_INVENTORY, SLOT_BUFFEROUT + py, leftCol + 12 * 18, to...
"public void onUpdate(ItemStack is, World world, Entity owner, int slot, boolean isHeld) {\n if (!world.isRemote) {\n if (is.stackTagCompound == null)\n is.stackTagCompound = new NBTTagCompound();\n byte timer = is.stackTagCompound.getByte(\"String_Node_Str\");\n if (++timer > 8) {\n ...
"protected BaseQueryDefinition createQuery(ReportItemDesign item, Object parent) {\n DesignElementHandle handle = item.getHandle();\n BaseQueryDefinition parentQuery = null;\n if (parent instanceof BaseQueryDefinition) {\n parentQuery = (BaseQueryDefinition) parent;\n }\n if (!(handle instanceof R...
"private String initDataSetColumn() {\n clearTableViewer();\n final Table table = getTable();\n TableColumn dataSetNumberCol = new TableColumn(table, SWT.NONE);\n dataSetNumberCol.setText(Messages.DataSetViewControllerDataSetNumber);\n if ((m_columnWidths != null && m_columnWidths.length > 0) && m_column...
"protected void execute() {\n logger.trace(\"String_Node_Str\", baseURL);\n clearState(false);\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n String[] statuses = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n for (String status : statuses) {\n String response ...
"private Map<Artifact, List<Artifact>> getDependencies(List<Artifact> rslArtifacts) throws MojoExecutionException {\n Map<Artifact, List<Artifact>> dependencies = new HashMap<Artifact, List<Artifact>>();\n for (Artifact pomArtifact : rslArtifacts) {\n try {\n MavenProject pomProject = mavenProje...
"public void loadNecessaryClasses() {\n loadBasicClasses();\n for (String name : Options.v().classes()) {\n loadNecessaryClass(name);\n }\n loadDynamicClasses();\n if (Options.v().oaat()) {\n if (Options.v().process_dir().isEmpty()) {\n throw new IllegalArgumentException(\"String...
"public static Object gsonToPrimitive(JsonElement element) {\n if (element.isJsonPrimitive()) {\n JsonPrimitive prim = element.getAsJsonPrimitive();\n if (prim.isString()) {\n return prim.getAsString();\n } else if (prim.isBoolean()) {\n return prim.getAsBoolean();\n ...
"private void send(OutputStream out, int start, int stop) throws IOException {\n totalAmountToUpload += stop - start;\n long t0 = System.currentTimeMillis();\n if (minPollTime > 0)\n Assert.that(t0 > minPollTime, \"String_Node_Str\" + (minPollTime - t0) + \"String_Node_Str\");\n if (maxPollTime > 0)\...
"public BuguFS createWithConnection(String connectionName) {\n return create(connectionName, GridFS.DEFAULT_BUCKET, GridFS.DEFAULT_CHUNKSIZE);\n}\n"
"protected void onDetachedFromWindow() {\n if (mImageContainer != null) {\n mImageContainer.cancelRequest();\n resetImage();\n mImageContainer = null;\n }\n super.onDetachedFromWindow();\n}\n"
"protected void addBuildVariables(RuleContext ruleContext, Variables.Builder variables) throws RuleErrorException {\n AppleConfiguration appleConfiguration = ruleContext.getFragment(AppleConfiguration.class);\n if (XcodeConfig.getXcodeVersion(ruleContext) == null) {\n ruleContext.throwWithRuleError(\"Strin...
"public void writeRequested(ChannelHandlerContext ctx, MessageEvent evt) throws Exception {\n RaopRtpPacket packet = (RaopRtpPacket) evt.getMessage();\n if (!(packet instanceof RaopRtpPacket.RetransmitRequest)) {\n super.writeRequested(ctx, evt);\n return;\n }\n Channel controlChannel;\n sy...
"public float getMinHeight() {\n PathwayMultiFormInfo pInfo = (PathwayMultiFormInfo) info;\n return pInfo.getCurrentPathwayRepresentation().getMinHeight() + 20;\n}\n"
"private static <T extends PropBuilder<T>> PropBuilder<T> copyColumnProperties(PropBuilder<T> builder, org.talend.core.model.metadata.builder.connection.MetadataColumn in) {\n if (in.getId() != null) {\n builder.prop(Talend6SchemaConstants.TALEND6_ID, in.getId());\n }\n if (in.getComment() != null) {\n ...
"public void run() {\n int partitionId = getPartitionId();\n RecordStore recordStore = mapService.getRecordStore(partitionId, name);\n Set<Data> partitionKeySet = new HashSet<Data>();\n for (Data key : keys) {\n if (partitionId == getNodeEngine().getPartitionService().getPartitionId(key)) {\n ...