content stringlengths 40 137k |
|---|
"public void checkStateChanged(CheckStateChangedEvent event) {\n boolean checkStatus = event.getChecked();\n Object element = event.getElement();\n fTreeView.setGrayed(element, false);\n fTreeView.setSubtreeChecked(element, checkStatus);\n ITreeContentProvider tcp = (ITreeContentProvider) fTreeView.getCo... |
"public synchronized void menuCompile() {\n threadRunning = true;\n interruptSent = false;\n noPauses = false;\n currentState = K91_COMPILING;\n setGUICommandsForCurrentState();\n CompileInfo compileinfo = null;\n int compilemode = currentSettings.getIntValue(Settings.COMPILE_MODE);\n int phase;... |
"protected void addIfPossible(EBuildingType buildingType) {\n float factor = 1F;\n if (BUILDING_INDUSTRY.contains(buildingType)) {\n factor = buildingIndustryFactor;\n }\n double currentCount = currentCountOf(buildingType);\n if (currentCount < Math.ceil(mapBuildingCounts[buildingType.ordinal] * f... |
"public static String getTernURL(String path) throws IOException {\n if (context == null) {\n throw new IOException(\"String_Node_Str\" + path + \"String_Node_Str\");\n }\n return FileLocator.toFileURL(Platform.getBundle(Activator.PLUGIN_ID).getEntry(\"String_Node_Str\" + path)).toExternalForm();\n}\n"
|
"private void loadCache() throws FHIRFormatError, IOException {\n File[] files = new File(cacheFolder).listFiles();\n for (File f : files) {\n if (f.getName().endsWith(\"String_Node_Str\")) {\n final FileInputStream is = new FileInputStream(f);\n try {\n Resource r = co... |
"public void onLoadingComplete(String imageUri, View view, final Bitmap loadedImageBitmap) {\n progressBar.setVisibility(View.GONE);\n pleaseWaitTextView.setVisibility(View.GONE);\n attachImageView.setVisibility(View.VISIBLE);\n attachImageView.setImageBitmap(loadedImageBitmap);\n attachImageView.setOnCl... |
"private void marshalSimpleValue(XPathFragment xmlRootFragment, MarshalRecord marshalRecord, Object originalValue, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver) {\n if (xmlRootFragment != null) {\n QName qname = ((XMLRoot) originalValue).getSchemaType();\n v... |
"public boolean registerDeviceStatusListener(DeviceStatusListener deviceStatusListener) {\n if (deviceStatusListener == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n boolean result = deviceStatusListeners.add(deviceStatusListener);\n if (result) {\n }\n return result;... |
"protected void handleIQResult(final IQ iq) {\n log.debug(\"String_Node_Str\" + iq.toXML());\n final JID toJid = iq.getTo();\n if (null == toJid)\n return;\n final JID fromJid = iq.getFrom();\n if (null == fromJid)\n return;\n final Element e = iq.getChildElement();\n if (null == e)\n... |
"private TwillPreparer prepareExploreContainer(TwillPreparer preparer) {\n try {\n Set<File> jars = ExploreServiceUtils.traceExploreDependencies();\n for (File jarFile : jars) {\n LOG.trace(\"String_Node_Str\", jarFile.getName());\n preparer = preparer.withClassPaths(jarFile.getNa... |
"private boolean seekTiffData(InputStream inputStream) throws IOException, ExifInvalidFormatException {\n DataInputStream dataStream = new DataInputStream(inputStream);\n if (dataStream.readShort() != SOI) {\n throw new ExifInvalidFormatException(\"String_Node_Str\");\n }\n short tag = dataStream.rea... |
"<X, Y> ReturningModificationCriteriaBuilderFactory<Y> withReturning(Class<X> cteClass, Y result) {\n ReturningModificationCriteraBuilderFactoryImpl<Y> factory = new ReturningModificationCriteraBuilderFactoryImpl<Y>(cbf, em, dbmsDialect, registeredFunctions, parameterManager, cteClass, result, this);\n return fac... |
"public static FileManager getFileManager(final String fileName, final boolean append, boolean locking, final boolean bufferedIO) {\n if (locking && bufferedIO) {\n locking = false;\n }\n return (FileManager) getManager(fileName, new FactoryData(append, locking, bufferedIO), FACTORY);\n}\n"
|
"public static CachedMetaDataHandle getCachedMetaDataHandle(DataSetHandle dataSetHandle) throws SemanticException {\n if (dataSetHandle.getCachedMetaDataHandle() == null) {\n updateColumnCache(dataSetHandle, true);\n }\n return dataSetHandle.getCachedMetaDataHandle();\n}\n"
|
"private int handleTopic(MemberStateImpl memberState, int count, Config config, Map<String, LocalTopicStats> topics) {\n for (Map.Entry<String, LocalTopicStats> entry : topics.entrySet()) {\n String name = entry.getKey();\n if (count >= maxVisibleInstanceCount) {\n break;\n } else if ... |
"public String toString() {\n return description;\n}\n"
|
"private HttpConnection getConnection(String url) throws IOException {\n HttpConnection conn = (HttpConnection) Connector.open(url);\n conn.setRequestMethod(HttpConnection.POST);\n conn.setRequestProperty(\"String_Node_Str\", \"String_Node_Str\");\n conn.setRequestProperty(\"String_Node_Str\", \"String_Node... |
"public String getShortDescriptionHTML(int nrOfPositiveExamples, int nrOfNegativeExamples, String baseURI) {\n String ret = \"String_Node_Str\" + concept.toManchesterSyntaxString(baseURI, null) + \"String_Node_Str\";\n if (isTooWeak)\n ret += \"String_Node_Str\";\n else {\n double accuracy = 100 ... |
"public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {\n for (UUID targetPermanent : targetPointer.getTargets(game, source)) {\n Permanent land = game.getPermanent(targetPermanent);\n if (land != null) {\n switch(layer) {\n case TypeChangingEffects_... |
"public User getUser() {\n User user = null;\n try {\n user = AuthUtils.getUser();\n } catch (Exception ex) {\n }\n if (user == null) {\n user = User.findByCode(\"String_Node_Str\");\n return user;\n }\n return user;\n}\n"
|
"public void addMap(Map map, Boolean base64_encoded, String type_encoded, String type_no_encoded) {\n if (map == null) {\n logger.debug(\"String_Node_Str\");\n return;\n }\n String mapString;\n try {\n mapString = objectMapper.writeValueAsString(map);\n } catch (JsonProcessingExcepti... |
"public void handleFree(DownloadLink link) throws Exception {\n this.setBrowserExclusive();\n requestFileInformation(link);\n if (br.containsHTML(\"String_Node_Str\"))\n throw new PluginException(LinkStatus.ERROR_FATAL, \"String_Node_Str\");\n for (int i = 0; i <= 5; i++) {\n Form captchaform ... |
"public boolean equals(Object obj) {\n if (!(obj instanceof TestDescription)) {\n return false;\n }\n TestDescription other = (TestDescription) obj;\n return Objects.equals(this.className, other.className) && Objects.equals(this.methodName, other.methodName);\n}\n"
|
"public Container or(BitmapContainer value2) {\n BitmapContainer answer = ContainerFactory.getBitmapContainer();\n for (int k = 0; k < answer.bitmap.length; ++k) {\n answer.bitmap[k] = this.bitmap[k] | value2.bitmap[k];\n answer.cardinality += Long.bitCount(answer.bitmap[k]);\n }\n return answ... |
"public VerificationResult compute() throws ComputationFailedException {\n SpawnedDataBlock spawned = spawner.spawn(initialSpace, initialSampling);\n VerificationResult result = null;\n int iteration = 0;\n while (spawned.size() != 0) {\n iteration++;\n LOGGER.info(\"String_Node_Str\" + thread... |
"public static final int calculateDamageToArmor(int _damage, int _armorPiercing) {\n float multiplier = 1.0f - (float) _armorPiercing * 0.05f;\n if (multiplier >= 0) {\n return (int) ((float) _damage * multiplier);\n } else {\n return _damage;\n }\n}\n"
|
"public static String openVpnEscape(String unescaped) {\n if (unescaped == null)\n return null;\n String escapedString = unescaped.replace(\"String_Node_Str\", \"String_Node_Str\");\n escapedString = escapedString.replace(\"String_Node_Str\", \"String_Node_Str\");\n escapedString = escapedString.repl... |
"public DataSet getDataSet(String userkey) {\n return getDataSets().get(userkey);\n}\n"
|
"public String getDefaultValue() {\n IGetParameterDefinitionTask task = engineTask.getEngine().createGetParameterDefinitionTask(engineTask.getReportRunnable());\n Object obj = task.getDefaultValue(handle.getName());\n if (obj == null) {\n return null;\n }\n if (obj instanceof Object[]) {\n ... |
"static Timestamp parseTimeStamp(final String value) {\n try {\n return new Timestamp(getTimestampFormat().parse(value).getTime());\n } catch (ParseException e) {\n return throwRuntimeParseException(value, e, timestampFormat);\n }\n}\n"
|
"public void onReceive(Context context, Intent intent) {\n notes = WordPress.wpDB.getLatestNotes();\n refreshNotificationsListFragment(notes);\n}\n"
|
"public Message generateMessage(Object object, long objectId, String model, String tag, Template template) throws ClassNotFoundException, InstantiationException, IllegalAccessException, AxelorException {\n LOG.debug(\"String_Node_Str\" + model);\n LOG.debug(\"String_Node_Str\" + tag);\n LOG.debug(\"String_Node... |
"public void renderItem(ItemRenderType type, ItemStack item, Object... data) {\n String texture = ConstantValue.PROJECTOR_MODEL_OFF;\n GL11.glPushMatrix();\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, FMLClientHandler.instance().getClient().renderEngine.getTexture(texture));\n switch(type) {\n case EQUIP... |
"public void modifyText(ModifyEvent e) {\n if (!keyChooser.getText().trim().equals(\"String_Node_Str\")) {\n resetInterval();\n}\n"
|
"private SshPacket createPacket(byte newType, byte[] newData) throws IOException {\n return new SshPacket(newType, newData, encryption, crypto);\n}\n"
|
"public static void setUsername(String user) {\n if (user == null) {\n username = \"String_Node_Str\";\n props.put(\"String_Node_Str\", getUsername());\n return;\n }\n if (user.length() < 3) {\n System.out.println(\"String_Node_Str\");\n username = \"String_Node_Str\";\n ... |
"public void testCreateExist() throws Exception {\n SecurityRequestContext.setUserId(USER.getName());\n StreamAdmin streamAdmin = getStreamAdmin();\n String streamName = \"String_Node_Str\";\n Id.Stream streamId = Id.Stream.from(FOO_NAMESPACE, streamName);\n Id.Stream otherStreamId = Id.Stream.from(OTHER... |
"public String getDeviceWebControlPanelUrl(Context ctx) {\n PreyConfig preyConfig = PreyConfig.getPreyConfig(ctx);\n String deviceKey = preyConfig.getDeviceID();\n if (deviceKey == null || deviceKey == \"String_Node_Str\")\n throw new PreyException(\"String_Node_Str\");\n return PreyConfig.getPreyCon... |
"public Loader<Cursor> onCreateLoader(int id, Bundle args) {\n if (card_list != null) {\n empty.setVisibility(View.GONE);\n loading.setVisibility(View.GONE);\n card_list.setEmptyView(loading);\n }\n adapter.changeCursor(null);\n CursorLoader c = new CursorLoader(getActivity());\n c.s... |
"public boolean assertAuthenticated(SocializeService service, SocializeSession session, SocializeListener listener) {\n if (session != null) {\n return true;\n } else {\n if (listener != null) {\n if (logger != null) {\n listener.onError(new SocializeException(logger.getMes... |
"public Object load(Data key) {\n DelayedEntry delayedEntry = getFromStagingArea(key);\n return delayedEntry == null ? getStore().load(toObject(key)) : toObject(delayedEntry.getValue());\n}\n"
|
"public static void log(String message, Throwable e) {\n getDefault().getLog().log(new Status(IStatus.ERROR, ClientPlugin.getDefault().getBundle().getSymbolicName(), IStatus.OK, message, e));\n}\n"
|
"static void read(SBOLDocument SBOLDoc, InputStream in, String fileType) throws SBOLValidationException, IOException, SBOLConversionException {\n compliant = SBOLDoc.isCompliant();\n Scanner scanner = new Scanner(in, \"String_Node_Str\");\n String inputStreamString = scanner.useDelimiter(\"String_Node_Str\").n... |
"private CipherAlgorithm getCipherAlgoritm() {\n return CipherAlgorithm.valueOf(confDAO.find(\"String_Node_Str\", \"String_Node_Str\").getValue());\n}\n"
|
"public void run() {\n new ConfirmDialog(\"String_Node_Str\", \"String_Node_Str\" + remoteVersion + \"String_Node_Str\", MainActivity.this, new ConfirmDialogListener() {\n\n public void run() {\n new ErrorDialog(\"String_Node_Str\", \"String_Node_Str\", MainActivity.this).show();\n ... |
"public void testDouble() {\n roundtripTest(new double[0]);\n roundtripTest(new double[] { Double.NaN, Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.MIN_VALUE, -1.1, 0, 1.1, 2.2, 3.3, Double.MAX_VALUE, Math.PI, Math.E });\n}\n"
|
"private void endClientCommand(int from, String methodName, Vector<String> params) {\n if (params.size() == 2 && params.get(0).equals(\"String_Node_Str\")) {\n user_info(String.format(\"String_Node_Str\", this.addr, params.get(1)));\n } else if (params.size() >= 1 && params.get(0).equals(\"String_Node_Str\... |
"private void addCubeFilter(ICubeQueryDefinition cubeQuery) throws BirtException {\n List levels = new ArrayList();\n List values = new ArrayList();\n Iterator filterItr = null;\n if (handle.getContainer() instanceof MultiViewsHandle) {\n filterItr = getCrosstabFiltersIterator();\n } else {\n ... |
"public Set<String> getPrivileges(Tree tree) {\n if (tree != null && canRead(tree)) {\n return READ_PRIVILEGE_NAMES;\n } else {\n return Collections.emptySet();\n }\n}\n"
|
"private void saveGeneralACL() {\n try {\n if (engine.getContext().getDocWriter() == null || this.acls.isEmpty())\n return;\n DataOutputStream aclCollectionStream = new DataOutputStream(engine.getContext().getOutputStream(\"String_Node_Str\", null, DataEngineContext.ACL_COLLECTION_STREAM));\... |
"public void testVertexEdges() {\n final Vertex a1 = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\");\n final Vertex b1 = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\");\n final Vertex c1 = this.sqlgGraph.addVertex(T.label, \"String_Node_Str\");\n a1.addEdge(\"String_Node_Str\", b1);\n a1.... |
"public void initialize() throws IllegalActionException {\n super.initialize();\n _terrain.width.setToken(new IntToken(10));\n _number = 10;\n _offset = new double[2];\n Locatable location = (Locatable) getAttribute(LOCATION_ATTRIBUTE_NAME, Locatable.class);\n if (location == null) {\n throw ne... |
"public void drawExtras(Minecraft minecraft) {\n animatedFlame.draw(minecraft, 1, 20);\n arrow.draw(minecraft, 24, 18);\n}\n"
|
"public void createControl(Composite parent) {\n cmpContent = new Composite(parent, SWT.NONE);\n {\n GridLayout glContent = new GridLayout(2, false);\n cmpContent.setLayout(glContent);\n GridData gd = new GridData(GridData.FILL_BOTH);\n cmpContent.setLayoutData(gd);\n }\n Composi... |
"public void onCreate() {\n super.onCreate();\n if (Constants.LOGVV) {\n Log.v(TAG, \"String_Node_Str\");\n }\n mBluetooth = (BluetoothDevice) getSystemService(Context.BLUETOOTH_SERVICE);\n mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE);\n mSocketListener = new Bluetooth... |
"private static void writeResultHeader(File outputFile, String prefix, TTPResult result) throws IOException {\n if (!outputFile.exists()) {\n if (!outputFile.createNewFile()) {\n System.err.println(\"String_Node_Str\" + outputFile.getCanonicalPath());\n return;\n }\n }\n Pri... |
"protected void close(boolean closing) {\n if (!closed) {\n if (closing && mode == 1) {\n streamBuffer.buffer = null;\n rowBuffer.buffer = null;\n }\n try {\n if (initialized && scanner != null) {\n scanner.close();\n } else if (initiali... |
"public void testInsertsDeletesInserts() {\n root.insertAt(0, \"String_Node_Str\", REPLICA_ID);\n root.deleteAt(0);\n root.insertAt(0, \"String_Node_Str\");\n root.insertAt(1, \"String_Node_Str\");\n root.insertAt(2, \"String_Node_Str\");\n assertEquals(\"String_Node_Str\", root.getContent());\n}\n"
|
"private boolean canUseFingerprint(String opPackageName, boolean foregroundOnly, int uid, int pid) {\n checkPermission(USE_FINGERPRINT);\n if (isKeyguard(opPackageName)) {\n return true;\n }\n if (!isCurrentUserOrProfile(UserHandle.getCallingUserId())) {\n Slog.w(TAG, \"String_Node_Str\" + opP... |
"public Optional<ReplicaSetConfig> getConfig() {\n return Optional.ofNullable(config);\n}\n"
|
"public static List<GeneratingMethodInfo> getTestMethodsFromTarget(IFile javaFile) throws Exception {\n List<GeneratingMethodInfo> testMethods = new ArrayList<GeneratingMethodInfo>();\n IPreferenceStore store = Activator.getDefault().getPreferenceStore();\n boolean enabled = store.getBoolean(STR.Preference.Tes... |
"private static void setSAPValue(SAPConnection connection, INode node, String repositoryValue) {\n if (\"String_Node_Str\".equals(repositoryValue)) {\n String value = getParameterValue(connection, node, \"String_Node_Str\");\n if (value != null) {\n connection.setClient(value);\n }\n ... |
"private void getHelp(String commandstring) throws IOException {\n String[] split = commandstring.split(\"String_Node_Str\");\n if (split.length > 1) {\n if (split[1].equals(\"String_Node_Str\")) {\n GroovyHelpManager groovyhelpmanager = new GroovyHelpManager();\n HashMap<String, Stri... |
"public void addObjectData(TModelAbo model, String sender) {\n Object[] object;\n DatenAbo datenAbo;\n model.setRowCount(0);\n Object[] object = new Object[DatenAbo.MAX_ELEM];\n for (DatenAbo datenAbo : this) {\n if (sender.isEmpty() || sender.equals(datenAbo.arr[DatenAbo.ABO_SENDER])) {\n ... |
"public void initChart(BarChartDefinition definition) {\n stacked = definition.isStacked();\n hasSecondaryYAxis = definition.hasSecondaryYAxis();\n initChart();\n if (definition.usePercentYAxis()) {\n setPercentYAxis();\n }\n chart.setTitle(definition.getTitle());\n CategoryPlot plot = (Cate... |
"public static String hash(String action, String player, String password, String thesalt) throws SQLException {\n if (action.equalsIgnoreCase(\"String_Node_Str\")) {\n try {\n EBean eBeanClass = EBean.checkPlayer(player, true);\n String StoredSalt = eBeanClass.getSalt();\n ret... |
"public void build(final Progress p) throws IOException, JobFailedException, JobCancelledException {\n if (p != null) {\n p.starting();\n }\n final MrsImagePyramid sourcepyramid = RasterMapOp.flushRasterMapOpOutput(source, 0);\n log.info(\"String_Node_Str\" + _outputName.toString());\n final Job j... |
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n IArtifactType ofArtifactType = variableMap.getArtifactType(\"String_Node_Str\");\n BranchId branch = variableMap.getBranch(\"String_Node_Str\");\n if (branch == null) {\n AWorkbench.popup(\"String_Node_Str\... |
"public void run() {\n if (db instanceof PersistentMap) {\n logger.info(\"String_Node_Str\");\n db.close();\n }\n}\n"
|
"public boolean equals(Object o) {\n if (!(o instanceof Map.Entry))\n return false;\n Map.Entry<?, ?> e = (Map.Entry<?, ?>) o;\n return eq(key, e.getKey()) && eq(value, e.getValue());\n}\n"
|
"protected Control createDialogArea(Composite parent) {\n parent.getShell().setText(this.title);\n Composite composite = (Composite) super.createDialogArea(parent);\n GridLayout layout = (GridLayout) composite.getLayout();\n layout.numColumns = 3;\n layout.makeColumnsEqualWidth = false;\n if (actionTy... |
"protected void saveAnalysis() throws DataprofilerCoreException {\n List<ModelElement> analysedElements = new ArrayList<ModelElement>();\n setColumnABForMatchingIndicator(rowMatchingIndicatorA, columnListA, columnListB);\n setColumnABForMatchingIndicator(rowMatchingIndicatorB, columnListB, columnListA);\n f... |
"public void testCreateUser() throws AuthenticationException, EncryptionException {\n System.out.println(\"String_Node_Str\");\n String accountName = ESAPI.randomizer().getRandomString(8, EncoderConstants.CHAR_ALPHANUMERICS);\n Authenticator instance = ESAPI.authenticator();\n String password = instance.gen... |
"public boolean postfire() throws IllegalActionException {\n if (_debugging) {\n _debug(\"String_Node_Str\" + _notDone);\n _debug(\"String_Node_Str\" + _stopRequested);\n }\n _notDone = _notDone && !_stopRequested;\n if (_debugging) {\n _debug(\"String_Node_Str\" + _notDone);\n }\n ... |
"public boolean needClip() {\n return isClippingContainer && needClip;\n}\n"
|
"public void unregisterServices(final ConcurrentHashSet<EndpointDefinition> endpointDefinitions) {\n for (EndpointDefinition definition : endpointDefinitions) {\n Consul consul = consul();\n try {\n consul.agent().deregister(definition.getId());\n } catch (Exception ex) {\n ... |
"private static ActionArtifact sawBuild2Action3_createNoBranchAction(SkynetTransaction transaction) throws OseeCoreException {\n String title = \"String_Node_Str\";\n Collection<IAtsActionableItem> aias = DemoDbUtil.getActionableItems(new String[] { DemoDbAIs.SAW_Code.getAIName(), DemoDbAIs.SAW_SW_Design.getAINam... |
"public Object coerceToUi(Object val, Component comp, BindContext ctx) {\n Radiogroup radiogroup = (Radiogroup) comp;\n final ListModel<?> model = radiogroup.getModel();\n if (model != null && !(model instanceof Selectable)) {\n throw new UiException(\"String_Node_Str\");\n }\n if (val != null) {\... |
"protected void onUpdate(AjaxRequestTarget target) {\n utility.updatePaginatorRows(Constants.CONF_CONFIGURATION_PAGINATOR_ROWS, paginatorRows);\n table.setRowsPerPage(paginatorRows);\n target.addComponent(container);\n}\n"
|
"public void flushWithoutMargin() {\n if (valueWithMargin != value) {\n valueWithMargin = value;\n flush(null);\n }\n}\n"
|
"private void flush(boolean force) throws Exception {\n long currentTs = System.currentTimeMillis();\n if (!force && currentTs - lastCheckpointTime < flushIntervalMs) {\n return;\n }\n avroFileWriter.flush();\n checkpointManager.saveCheckpoint(partitionCheckpointMap);\n lastCheckpointTime = cur... |
"protected boolean versionFound(String version) {\n if (!version.startsWith(\"String_Node_Str\")) {\n return false;\n }\n if (version.equals(\"String_Node_Str\")) {\n ByteBuffer buffer = ByteBuffer.wrap(new byte[4 * RECORD_SIZE]);\n long time = System.currentTimeMillis();\n long ran... |
"public void fireAction(Action action) {\n toFire.offer(new FireringAction(action, System.currentTimeMillis()));\n}\n"
|
"private void checkInterrupted() {\n if (Thread.interrupted()) {\n if (workerPool.isShutdownFinished()) {\n workerPool.killWorker(this);\n }\n }\n}\n"
|
"protected void deleteItem() {\n int childCount = getSelectedItemChildCount();\n if (childCount > 0) {\n final int groupId = (int) getSelectedItemId();\n OnClickListener buttonListener = new OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if... |
"public void hyperlinkUpdate(HyperlinkEvent e) {\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)\n showOrHideDetails();\n}\n"
|
"public void widgetSelected(SelectionEvent event) {\n ExpressionBuilder expressionBuilder = new ExpressionBuilder(defaultValueText.getText());\n expressionBuilder.setExpressionProvier(null);\n if (expressionBuilder.open() == OK) {\n defaultValue.setText(expressionBuilder.getResult().trim());\n }\n}\n... |
"public void testBasics() throws IOException {\n CubeDesc cubeDesc = cubeDescManager.getCubeDesc(\"String_Node_Str\");\n CubeInstance cube = cubeManager.createCube(CUBE_NAME, \"String_Node_Str\", cubeDesc, \"String_Node_Str\");\n assertNotNull(cube);\n JobListRequest jobRequest = new JobListRequest();\n ... |
"private boolean isEvictableFreeHeapSize(final MapContainer mapContainer) {\n final long currentFreeHeapSize = getAvailableMemory();\n final MaxSizeConfig maxSizeConfig = mapContainer.getMapConfig().getMaxSizeConfig();\n final double minFreeHeapSize = getApproximateMaxSize(maxSizeConfig.getSize());\n return... |
"public void reset() {\n this.soundSystem.rewind(sourceName);\n}\n"
|
"public static Set<String> getGroupNamesForUser(ServiceConfiguration configuration, String userName, String effectiveUserId) throws Exception {\n Set<String> groupSet = Sets.newLinkedHashSet();\n boolean seenAllGroups = false;\n String groupMarker = null;\n while (!seenAllGroups) {\n ListGroupsForUse... |
"public void onCompleted(Response response) {\n if (graphContext != null) {\n if (response.getError() != null) {\n graphContext.error(getErrorResponse(response.getError()));\n } else {\n GraphObject graphObject = response.getGraphObject();\n graphContext.success(graphOb... |
"protected boolean isPropertyReadOnly(String propName) {\n boolean isReadOnly = false;\n for (int i = 0; i < elements.size(); i++) {\n PropertyHandle propertyHandle = ((DesignElementHandle) elements.get(i)).getPropertyHandle(propName);\n if (propertyHandle != null && propertyHandle.isReadOnly()) {\n... |
"private void findSubscribableInfoOfCartridgeContexts(Map<String, SubscribableInfoContext> subscribableInfoContextMap, ApplicationContext applicationContext) throws ApplicationDefinitionException {\n CartridgeContext[] cartridgeContexts = applicationContext.getComponents().getCartridgeContexts();\n if (cartridgeC... |
"public void checkFullyProcessed(JobProcessInformation processInformation) {\n if (isOwnerNode()) {\n JobPartitionState[] partitionStates = processInformation.getPartitionStates();\n for (JobPartitionState partitionState : partitionStates) {\n if (partitionState == null || partitionState.get... |
"public ImmutableBiMap<ModContainer, Object> buildModObjectList() {\n ImmutableBiMap.Builder<ModContainer, Object> builder = ImmutableBiMap.<ModContainer, Object>builder();\n for (ModContainer mc : activeModList) {\n if (!mc.isImmutable() && mc.getMod() != null) {\n builder.put(mc, mc.getMod());... |
"public void deleteProfileWithValidArgumentThatExistsInPersistenceStore() throws PersistenceException {\n Profile profile = new Profile(100, \"String_Node_Str\", null, null, false, false, false, false, \"String_Node_Str\", false);\n profileDAO.create(profile);\n profile = profileDAO.read(100);\n assertTrue(... |
"public void addRadioButtons(String name, String label, String[] values, String defaultValue) {\n JLabel lbl = new JLabel(label + \"String_Node_Str\");\n lbl.setBackground(_background);\n FlowLayout flow = new FlowLayout();\n flow.setAlignment(FlowLayout.LEFT);\n Panel buttonPanel = new Panel(flow);\n ... |
"public void startList(IListContent list) {\n adjustInline();\n styles.push(list.getComputedStyle());\n writeBookmark(list);\n Object listToc = list.getTOC();\n if (listToc != null) {\n tableTocs.add(new TocInfo(listToc.toString(), tocLevel));\n }\n increaseTOCLevel(list);\n if (context.i... |
"private JPanel setupMainPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n JPanel southPanel = new JPanel();\n attending = new JCheckBox(attendingAction);\n southPanel.add(attending);\n lstButtons = new ArrayList<JComponent>();\n lstButtons.add(attending);\n addBu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.