content
stringlengths
40
137k
"public boolean parse(ParserManager pm, IToken token) throws SyntaxError {\n int type = token.type();\n if (ParserUtil.isCloseBracket(type)) {\n pm.popParser(true);\n return true;\n }\n if (this.mode == NAME) {\n if (token.next().type() == Tokens.EQUALS) {\n this.key = token....
"public static DatabaseConnection fillDbConnectionInformation(DatabaseConnection dbConn) {\n boolean noStructureExists = ConnectionHelper.getAllCatalogs(dbConn).isEmpty() && ConnectionHelper.getAllSchemas(dbConn).isEmpty();\n java.sql.Connection sqlConn = null;\n try {\n if (noStructureExists) {\n ...
"public void test_getQuote() throws ProviderException {\n Date start = DateUtils.fromCGL(\"String_Node_Str\");\n Date end = DateUtils.fromCGL(\"String_Node_Str\");\n FakeRealTimeProvider sp = new FakeRealTimeProvider(SYMBOL, start, end);\n for (int i = 0; !sp.isReached(); i++) {\n Quote q = sp.getQuo...
"public void reportAssistContextExtras(IBinder token, Bundle extras, AssistStructure structure, AssistContent content, Uri referrer) {\n PendingAssistExtras pae = (PendingAssistExtras) token;\n synchronized (pae) {\n pae.result = extras;\n pae.structure = structure;\n pae.content = content;\n...
"public void run() {\n if (audioLine != null && audioLine.isOpen()) {\n Utterance currentUtterance = new Utterance(\"String_Node_Str\", getContext());\n utteranceList.add(currentUtterance);\n audioLine.start();\n printMessage(\"String_Node_Str\");\n while (getRecording() && !getClo...
"public String getLastname() {\n return lastName;\n}\n"
"private static void processPositionCommand(ICommandSender commandSender, String[] args) {\n String yPosition, xPosition;\n if (args.length >= 3) {\n xPosition = args[1];\n yPosition = args[2];\n if ((xPosition.toLowerCase().equals(\"String_Node_Str\")) && (yPosition.toLowerCase().equals(\"St...
"private void diskPledgesChanged(SetChangeListener.Change<? extends LHProtos.Pledge> change, Project project) {\n executor.checkOnThread();\n if (change.wasRemoved()) {\n LHProtos.Pledge walletPledge = wallet.getPledgeFor(project);\n LHProtos.Pledge removedPledge = change.getElementRemoved();\n ...
"public ResultSet getColumns(String c, String s, String tbl, String colPat) throws SQLException {\n Statement stat = conn.createStatement();\n ResultSet rs;\n String sql;\n checkOpen();\n if (getColumnsTblName == null)\n getColumnsTblName = conn.prepareStatement(\"String_Node_Str\");\n getColum...
"public void testTcpSource1() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String inStreamDefinition = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n String query = (\"String_Node_Str\" + \"Str...
"public boolean apply(Game game, Ability source) {\n UUID targetId = null;\n if (source != null && source.getTargets() != null) {\n for (Target target : source.getTargets()) {\n if (target.getFilter() != null && target.getFilter().getMessage().equals(filterMessage)) {\n targetId =...
"public void configureClientSideLogging() {\n root = Logger.getLogger(\"String_Node_Str\");\n setLevels(root);\n setDefaultHandlers(root);\n}\n"
"public void onClick(View v) {\n mLoop = null;\n qa.dismiss();\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n Card sourceCard = game.getCard(source.getSourceId());\n if (controller != null && sourceCard != null) {\n Permanent targetEnchantment = game.getPermanent(getTargetPointer().getFirst(game,...
"public boolean addClass(IClass klass) {\n if (klass == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (DEBUG) {\n Trace.println(\"String_Node_Str\" + klass);\n }\n Set<IClass> loadedSuperclasses;\n Collection loadedSuperInterfaces;\n try {\n loaded...
"public void getDebugInfo(List<String> left, List<String> right, EnumFacing side) {\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\");\n left.add(\"String_Node_Str\" + tanks[0].getFluidAmount() + \"String_Node_Str\" + tanks[0].getCapacity() + \"String_Node_Str\");\n left.add(\"String_Node_Str...
"public void getSubRecords(MultiResultSet results, ComparisonType comparisonType, Comparable searchedValue) {\n takeReadLock();\n try {\n Set<Comparable> values;\n boolean notEqual = false;\n switch(comparisonType) {\n case LESSER:\n values = sortedSet.headSet(search...
"protected void doSkipToExecutor(InstanceID iid, long offset) throws Exception {\n IQueryResultSet rset = (IQueryResultSet) rsets[0];\n long uid = iid.getUniqueID();\n DataID dataId = iid.getDataID();\n long rowId = 0;\n if (dataId != null) {\n rowId = dataId.getRowID();\n }\n long rsetPosit...
"protected void playALand(Set<Card> lands, Game game) {\n log.debug(\"String_Node_Str\");\n for (Mana mana : unplayable.keySet()) {\n for (Card card : lands) {\n for (ActivatedManaAbilityImpl ability : card.getAbilities().getActivatedManaAbilities(Zone.BATTLEFIELD)) {\n for (Mana ...
"public static Long getFileSize(IContext context, IMendixObject document) {\n final int BUFFER_SIZE = 4096;\n long size = 0;\n if (context != null) {\n InputStream inputStream = null;\n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = 0;\n try {\n inputStream = Co...
"private static String getHelper(final RemoteWebDriver driver, final Node urlNode, final String url, final boolean p_cached, final String runGuid, final HtmlNode[] clicks) {\n final String urlHash = CommonUtil.isEmpty(url) ? null : Crypto.fastHash(url);\n final long time = System.currentTimeMillis();\n if (url...
"public static Parameters test(final List<String> input, final Expectation... expectations) {\n final List<Verification> verifications = newArrayList();\n for (final Expectation expectation : expectations) {\n verifications.add(verification(input, expectation));\n }\n return new Parameters(input, ver...
"private void processVersionMessage(VersionMessage m) throws ProtocolException {\n if (vPeerVersionMessage != null)\n throw new ProtocolException(\"String_Node_Str\");\n vPeerVersionMessage = m;\n int peerVersion = vPeerVersionMessage.clientVersion;\n PeerAddress peerAddress = getAddress();\n long...
"private Map<File, IPath> exportItems2(Collection<Item> items, File destinationDirectory, boolean projectFolderStructure, IProgressMonitor progressMonitor) throws Exception {\n Map<File, IPath> toExport = new HashMap<File, IPath>();\n progressMonitor.beginTask(\"String_Node_Str\", items.size() + 1);\n TimeMeas...
"protected void initAlerts() {\n builderDialog = new AlertDialog.Builder(m_context);\n builderDialog.setCancelable(false);\n builderDialog.setMessage(R.string.alters_confirm_delete);\n builderDialog.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n\n public void onClic...
"public void setUp() throws Exception {\n databases = getDatabases(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n defaultDatabase = databases.getDefaultDatabase();\n dataSource = defaultDatabase.getDataSource();\n ConstraintsDisabler constraintsDisabler = new DefaultConstraintsDisabler(da...
"public void setFileLength(long newLength) throws IOException {\n checkFileSizeLimit(newLength);\n int oldPos = pos;\n unMap();\n for (int i = 0; ; i++) {\n try {\n IOUtils.setLength(file, newLength);\n break;\n } catch (IOException e) {\n if (i > 16 || e.toStr...
"protected Schedule _getSchedule() throws NotSchedulableException, IllegalActionException {\n CTSchedule ctSchedule = new CTSchedule();\n _signalTypeMap = new SignalTypeMap();\n LinkedList continuousActors = new LinkedList();\n LinkedList discreteActors = new LinkedList();\n LinkedList dynamicActors = ne...
"public boolean apply(StoreFile storeFile) {\n if (storeFile == null) {\n return false;\n }\n return storeFile.getMaximumTimestamp() >= cutoff;\n}\n"
"public void onReleased(RCDevice device, int statusCode, String statusText) {\n if (statusCode != RCClient.ErrorCodes.SUCCESS.ordinal()) {\n Toast.makeText(getApplicationContext(), \"String_Node_Str\" + statusText, Toast.LENGTH_SHORT).show();\n } else {\n handleConnectivityUpdate(RCConnectivityStatu...
"public void createContent(String id, Element parent) {\n String dBranding = \"String_Node_Str\";\n String branding = System.getProperty(\"String_Node_Str\");\n if (branding == null || \"String_Node_Str\".equals(branding)) {\n branding = dBranding;\n }\n Document dom = parent.getOwnerDocument();\n...
"public void testInputDateObjectTW(Book book) {\n Sheet sheet = book.getSheetAt(0);\n Range r;\n Date today = new Date();\n String todayStr;\n String todayStrLong;\n Setup.setZssLocale(Locale.TAIWAN);\n r = Ranges.range(sheet, \"String_Node_Str\");\n Assert.assertEquals(\"String_Node_Str\", r.ge...
"public void setLocallyOnHold(boolean locallyOnHold) {\n this.locallyOnHold = locallyOnHold;\n if (locallyOnHold) {\n if (audioStream != null) {\n audioStream.setDirection(audioStream.getDirection().and(MediaDirection.SENDONLY));\n audioStream.setMute(locallyOnHold);\n }\n ...
"public void run(String dbName, ResourceLoader resourceLoader) {\n HashMap fileList = new HashMap();\n CacheManager cacheManager = new CacheManager();\n try {\n if (resourceLoader != null && cacheManager != null)\n cacheManager = cacheManager.create(resourceLoader.getResource(\"String_Node_St...
"public void fire() throws IllegalActionException {\n if (input.hasToken(0)) {\n _currentInput = input.get(0);\n } else {\n _currentInput = null;\n }\n Time currentTime = getDirector().getModelTime();\n _currentOutput = null;\n if (_delayedOutputTokens.size() > 0) {\n TimedEvent e...
"private void printData(String latexFile, int indicatorIndex, double[][][] centralTendency, double[][][] dispersion, String caption) throws IOException {\n FileWriter os = new FileWriter(latexFile, true);\n os.write(\"String_Node_Str\");\n os.write(\"String_Node_Str\" + \"String_Node_Str\");\n os.write(\"St...
"public void aggregate() {\n final String funder1UserId = \"String_Node_Str\";\n final String funder1Address = \"String_Node_Str\";\n final String funder2UserId = \"String_Node_Str\";\n final String funder2Address = \"String_Node_Str\";\n final String funder3UserId = \"String_Node_Str\";\n final Strin...
"private static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties rootProperty, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new A...
"public boolean onPreferenceChange(Preference preference, Object newValue) {\n float min = Float.parseFloat((String) newValue);\n float max = Float.parseFloat(difficultyMaxPreference.getValue());\n if (min > max) {\n difficultyMaxPreference.setValue(difficultyMinPreference.getValue());\n }\n retur...
"public void demoConcurrencyWithSchedulers() {\n getActivity().getSupportFragmentManager().beginTransaction().addToBackStack(ConcurrencyWithSchedulersDemoFragment.class.getName()).replace(android.R.id.content, new ConcurrencyWithSchedulersDemoFragment(), ConcurrencyWithSchedulersDemoFragment.class.getName()).commit(...
"public PoolUpdate updatePoolFromStackedEntitlements(Pool pool, List<Entitlement> stackedEnts, Set<Product> changedProducts) {\n PoolUpdate update = new PoolUpdate(pool);\n if (stackedEnts == null || stackedEnts.isEmpty()) {\n return update;\n }\n pool.setSourceEntitlement(null);\n pool.setSourceS...
"public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n String name = button.getName();\n if (name.equals(\"String_Node_Str\")) {\n if (metaContact != null) {\n new Thread() {\n public void run() {\n clist.renameMetaContact...
"public String addWhereToStatement(String statement, String whereClause) {\n if (!isTooComplexForZql(statement)) {\n try {\n ZQuery query = this.parseQuery(statement);\n if (whereClause != null) {\n if (StringUtils.isNotBlank(whereClause)) {\n ZqlParser ...
"public <U> SparkCollection<U> compute(String stageName, SparkCompute<T, U> compute) throws Exception {\n SparkExecutionPluginContext sparkPluginContext = new BasicSparkExecutionPluginContext(sec, jsc, datasetContext, stageName);\n compute.initialize(sparkPluginContext);\n JavaRDD<T> countedInput = rdd.map(new...
"public void run() {\n if (Hijacker.this.isFinishing() == false) {\n new ErrorDialog(\"String_Node_Str\", error, Hijacker.this).show();\n setStoppedState();\n }\n}\n"
"public void run() {\n if (mode != Mode.INACTIVE)\n return;\n inputMap.clear();\n actionMap.clear();\n final KeyStroke abortKey = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);\n final Action abortAction = new AbstractAction(\"String_Node_Str\") {\n public void actionPerformed(final ActionE...
"public void findTemplateFile_jasperFileName() {\n String prefixSource = \"String_Node_Str\";\n String[] pages = { \"String_Node_Str\", \"String_Node_Str\" };\n for (String jspPage : pages) {\n String name = \"String_Node_Str\" + JspUtils.makeJavaPackage(jspPage);\n System.out.println(\"String_No...
"public void onLoadCanceled(ParsingLoadable<SsManifest> loadable, long elapsedRealtimeMs, long loadDurationMs, boolean released) {\n eventDispatcher.loadCanceled(loadable.dataSpec, loadable.type, elapsedRealtimeMs, loadDurationMs, loadable.bytesLoaded());\n}\n"
"public void run() {\n Iterator<Contact> i = contactItem.getContacts();\n while (i.hasNext()) {\n Contact contact = (Contact) i.next();\n mainFrame.getContactList().moveContact(contact, metaContact);\n }\n}\n"
"private void renderEvent(StringBuilder sb, KalendarEventRenderWrapper eventWrapper, Date dayStart, Date dayEnd) {\n KalendarEvent event = eventWrapper.getEvent();\n if (event.getClassification() == KalendarEvent.CLASS_PRIVATE && !eventWrapper.getKalendarRenderWrapper().isPrivateEventsVisible()) {\n return...
"public TmfLongLocation clone() {\n return (TmfLongLocation) super.clone();\n}\n"
"protected void formOK(UserRequest ureq) {\n CourseCatalog courseCatalog = new CourseCatalog();\n courseCatalog.setChoiceValue(catalogBox.getSelectedKey());\n boolean removeAll = \"String_Node_Str\".equals(catalogBox.getSelectedKey());\n for (FormLink deletedLink : deleteLinks) {\n CategoryLabel cat ...
"protected boolean restoreRequest(HttpRequest request, Session session) {\n SavedRequest saved = (SavedRequest) session.getNote(Constants.FORM_REQUEST_NOTE);\n session.removeNote(Constants.FORM_PRINCIPAL_NOTE);\n if (saved == null)\n return (false);\n request.clearCookies();\n Iterator<Cookie> coo...
"public int read(final MessageHandler handler, final int messageCountLimit) {\n final AtomicBuffer buffer = this.buffer;\n final long tail = buffer.getLongVolatile(tailCounterIndex);\n final long head = buffer.getLongVolatile(headCounterIndex);\n final int available = (int) (tail - head);\n int messagesR...
"private boolean canSpan(SheetData data, XlsContainer rowContainer, int currentColumn, int lastColumn) {\n SheetData realData = ExcelUtil.getRealData(data);\n if (realData == null)\n return false;\n if (!isInContainer(realData, rowContainer) && realData.getRowSpanInDesign() <= 0) {\n return false...
"private void fireAccount() {\n if (accountNum == 0) {\n for (int i = 0; i < playerNum; i++) {\n if (allPlayers[i].stratDecision == GambleChecker.FIRE) {\n if (allPlayers[i].fireTarget == -1)\n break;\n PlayerChecker.fire(map, allPlayers[i], allPlaye...
"public final void addInto(ReadWritableInstant instant, int scalar) {\n if (instant == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n instant.setMillis(addTo(instant.getMillis(), scalar, instant.getChronology()));\n}\n"
"public static void adduser(int checkid, String player, String email, String password, String ipAddress) throws SQLException {\n if (checkid == 1) {\n String hash = phpbb_hash(password);\n long timestamp = System.currentTimeMillis() / 1000;\n int userid;\n PreparedStatement ps;\n p...
"public boolean handle(Object value) {\n Object indValue = value;\n if (value == null) {\n indValue = 0;\n }\n if (dataset != null) {\n settingDatasetValue(indValue);\n }\n if (tableViewer != null) {\n refreshTable(value == null ? NAN_STRING : String.valueOf(indValue));\n }\n ...
"public AbstractFile[] ls(FilenameFilter filenameFilter) throws IOException {\n String[] names = file.list();\n if (names == null)\n throw new IOException();\n if (filenameFilter != null)\n names = filenameFilter.filter(names);\n AbstractFile[] children = new AbstractFile[names.length];\n F...
"public void visitNewArray(JCNewArray tree) {\n tree.elemtype = translate(tree.elemtype, null);\n translate(tree.dims, syms.intType);\n if (tree.type != null) {\n tree.elems = translate(tree.elems, erasure(types.elemtype(tree.type)));\n tree.type = erasure(tree.type);\n } else {\n tree....
"public SpringVertx vertx(ObjectProvider<VertxOptions> optionsProvider, ObjectProvider<ClusterManager> clusterManagerProvider, ObjectProvider<List<VertxListener>> listenersProvider, ObjectProvider<List<VertxConfigurer>> configurersProvider) {\n SpringVertx.Builder builder = SpringVertx.builder();\n List<VertxConf...
"private void firebaseAuthWithFacebook(final AccessToken accessToken) {\n Log.d(TAG, \"String_Node_Str\");\n AuthCredential credential = FacebookAuthProvider.getCredential(accessToken.getToken());\n FirebaseUser firebaseUser = mAuth.getCurrentUser();\n Task<AuthResult> authResultTask;\n if (firebaseUser ...
"private void generateActionAndSuccessorInterfacesAndCollectPreActions(Set<EndpointState> visited, EndpointState s) {\n if (visited.contains(s) || s.isTerminal()) {\n return;\n }\n visited.add(s);\n Set<IOAction> as = s.getTakeable();\n for (IOAction a : as.stream().sorted(IOStateInterfaceGenerato...
"public void init(TreeViewer viewer, IStructuredSelection selection) {\n repositoryNode = getRepositoryNode(selection);\n boolean enabled = false;\n if (repositoryNode != null) {\n ERepositoryObjectType nodeType = (ERepositoryObjectType) repositoryNode.getProperties(EProperties.CONTENT_TYPE);\n i...
"public void handle(MouseEvent event) {\n Profile currentProfile = (Profile) ProfileCheckboxCell.this.getTableView().getItems().get(ProfileCheckboxCell.this.getIndex());\n if (checkboxTyp.equals(\"String_Node_Str\"))\n currentProfile.setMobilEnabled(cellCheckbox.isSelected());\n else if (checkboxTyp.equ...
"public PagedList<Album> getAlbums(String userId, PagingParameters pagedListParameters) {\n return graphApi.fetchConnections(userId, \"String_Node_Str\", Album.class, getPagingParameters(pagedListParameters), ALL_ALBUM_FIELDS);\n}\n"
"private void addDatas() {\n int j = i + 15;\n for (; i < j; ++i) {\n StringBuilder builder = new StringBuilder();\n builder.append(\"String_Node_Str\");\n builder.append(i);\n builder.append(\"String_Node_Str\");\n char[] chars = new char[mRand.nextInt(500)];\n Arrays.fi...
"public boolean apply(Game game, Ability source) {\n Card card = game.getCard(((FixedTarget) getTargetPointer()).getTarget());\n Permanent permanent = game.getPermanent(source.getSourceId());\n if (permanent == null) {\n discard();\n return false;\n }\n if (IdOfCopiedCard == null || !IdOfCo...
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(layoutId, container, false);\n ListView listHistory = (ListView) view.findViewById(R.id.list_view_history);\n listHistory.setOnItemClickListener(new AdapterView.OnItemClickListene...
"private int addShapeRoiInstances(final Instances trainingData, int classIndex, int sliceNum, Roi r) {\n int numInstances = 0;\n final ShapeRoi shapeRoi = new ShapeRoi(r);\n final Rectangle rect = shapeRoi.getBounds();\n int lastX = rect.x + rect.width;\n if (lastX >= trainingImage.getWidth())\n l...
"public void openPolygonGenerateDialog() {\n double defaultHatchAngle = (planningMapFragment.getMapRotation() + 90) % 180;\n GridDialog polygonDialog = new GridDialog() {\n\n public void onPolygonGenerated(List<waypoint> list) {\n drone.mission.addWaypoints(list);\n update();\n ...
"protected ParamInjector evalInjector(Type type, Param param) {\n if (param == null || \"String_Node_Str\".equals(param.value())) {\n Class<?> clazz = Lang.getTypeClass(type);\n if (clazz != null && AdaptorErrorContext.class.isAssignableFrom(clazz))\n return new VoidInjector();\n retu...
"public String getPrefix(String uri) {\n return getTypeHelperDelegate().getPrefix(uri);\n}\n"
"private Synchronization synchronizeEntry() throws Exception {\n final IFile workspaceFile = findFileInWorkspace();\n if (workspaceFile == null)\n return Synchronization.NotApplicable;\n long oldChecksum = 0L;\n checksumLock.writeLock().lock();\n try {\n oldChecksum = checksum;\n che...
"public static boolean isPowerpoint(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(\"...
"public boolean handleRequest(ZWaveController zController, SerialMessage lastSentMessage, SerialMessage incomingMessage) throws ZWaveSerialMessageException {\n int nodeId;\n boolean result = true;\n UpdateState updateState = UpdateState.getUpdateState(incomingMessage.getMessagePayloadByte(0));\n switch(upda...
"public static org.hl7.fhir.dstu2016may.model.ImplementationGuide.ImplementationGuideDependencyComponent convertImplementationGuideDependencyComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideDependencyComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return nu...
"public File getFile(String arcFileID) throws ArgumentNotValid {\n log.info(\"String_Node_Str\" + arcFileID + \"String_Node_Str\");\n ArgumentNotValid.checkNotNullOrEmpty(arcFileID, \"String_Node_Str\");\n BitarchiveARCFile barc = admin.lookup(arcFileID);\n if (barc == null) {\n return null;\n }\n...
"private EngineeringCRS parseLocalCS(final Element parent) throws ParseException {\n final Element element = parent.pullElement(WKTKeywords.Local_CS);\n final String name = element.pullString(\"String_Node_Str\");\n final EngineeringDatum datum = parseLocalDatum(element);\n final Unit<Length> linearUnit = p...
"SequenceFile.Reader openExtentsFile(FileSystem hdpFs, Configuration conf) throws IOException {\n SequenceFile.Reader extents = null;\n final Path[] files = DistributedCache.getLocalCacheFiles(conf);\n if (files != null && files.length > 0) {\n final LocalFileSystem localfs = FileSystem.getLocal(conf);\...
"public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n pw.println(\"String_Node_Str\");\n pw.print(\"String_Node_Str\");\n pw.println(mTouchAcceptanceDelay);\n pw.print(\"String_Node_Str\");\n pw.println(mSnoozeLengthMs);\n pw.print(\"String_Node_Str\");\n pw.println(SystemClock.el...
"private void handleAddedEvent(final ListenableListEvent event) {\n int indexStart = event.index;\n if (tableViewerCreator.getTable().isDisposed()) {\n return;\n }\n if (!(tableViewerCreator.getContentProvider() instanceof ILazyContentProvider)) {\n TableItem[] items = tableViewerCreator.getTa...
"public ReportSettings addFormat(String format) {\n if (format != null) {\n this.format = format;\n }\n return this;\n}\n"
"private void calculateMaxMinTresh() {\n minThresh = Double.MAX_VALUE;\n maxThresh = Double.MIN_VALUE;\n for (Geometry geoms : glayer.getGeometries()) {\n AttributesGeometry att = (AttributesGeometry) geoms.getUserData();\n double temp = new Double(\"String_Node_Str\" + att.get(VDSSchema.SIGNIFIC...
"private void doUpdateSettingsPanelInEventDispatchThread(boolean callConferenceIsEnded) {\n settingsPanel.setFullScreen(isFullScreen());\n boolean isConference = (callPanel instanceof BasicConferenceCallPanel);\n if (isConference) {\n settingsPanel.add(localLevel);\n settingsPanel.add(remoteLevel...
"private Object[] getKeys(DelayedCellSetter<?, ?>[] delayedCellSetters) {\n Object[] currentKeys = new Object[keys.length];\n for (int i = 0; i < keys.length; i++) {\n currentKeys[i] = delayedCellSetters[keys[i].getIndex()].peekValue();\n }\n return currentKeys;\n}\n"
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n JmsProducerInfo other = (JmsProducerInfo) obj;\n if (producerId != null) {\n return produc...
"public void createTableFromMatrix(List<List<String>> dataMatrix, int numColumns) {\n if (dataMatrix == null || dataMatrix.isEmpty())\n return;\n columnSelectionStatus = new ArrayList<>(numColumns);\n for (int i = 0; i < numColumns; i++) {\n columnSelectionStatus.add(true);\n }\n bodyDataPr...
"public void changeSelection(String serverId) {\n if (!selected.isEmpty()) {\n for (Control c : listBase.getChildren()) {\n if (c instanceof InstanceCell) {\n InstanceCell cell = (InstanceCell) c;\n if (cell.getServerId() == selected) {\n cell.setSel...
"public TileEntity createTileEntity(World world, IBlockState state) {\n int metadata = getMetaFromState(state);\n if (metadata < 0 || metadata > AlvearyType.VALUES.length) {\n return null;\n }\n Type type = Type.VALUES[metadata];\n switch(type) {\n case SWARMER:\n return new Tile...
"public void createHistogram(final int iHistogramLevels) {\n if (targetSet == null) {\n refGeneralManager.getSingelton().getLoggerManager().logMsg(\"String_Node_Str\", LoggerType.STATUS);\n return;\n }\n IStorage refBufferStorage = targetSet.getStorageByDimAndIndex(0, 0);\n ISelection refBuffe...
"protected void gainedVisibility() {\n updateScale();\n}\n"
"public void run() {\n if (options == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n boolean tmpResult = false;\n try {\n options.log(\"String_Node_Str\", options.getKsType());\n final KeyStore ks = KeyStore.getInstance(options.getKsType());\n InputStream ks...
"public static MyPet setMyPetActive(InactiveMyPet inactiveMyPet) {\n if (inactiveMyPet.getOwner().hasMyPet()) {\n setMyPetInactive(inactiveMyPet.getOwner());\n }\n boolean isCancelled = false;\n if (MyPetConfiguration.ENABLE_EVENTS) {\n MyPetSelectEvent event = new MyPetSelectEvent(inactiveMyP...
"public int getColumnSize(int column) {\n if (column < getColumnCount()) {\n return ((Integer) columnId2StartLine.get(new Integer(column))).intValue() + ((List) columns.get(column)).size();\n } else {\n return -1;\n }\n}\n"
"public boolean isUsableAsStatement() {\n for (int i = 0; i < this.caseCount; i++) {\n final IValue action = this.cases[i].action;\n if (action != null && !action.isUsableAsStatement()) {\n return false;\n }\n }\n return true;\n}\n"
"public void onSuccess(ResourceAssignment result) {\n LOG.info(\"String_Node_Str\", result.getName(), Bytes.toString(data));\n}\n"
"protected boolean checkFieldsValue() {\n if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.JAVA)) {\n return checkJavaFieldsValue();\n } else if (LanguageManager.getCurrentLanguage().equals(ECodeLanguage.PERL)) {\n return checkPerlFieldsValue();\n } else {\n updateStatus(IStat...
"public void perform(Arguments arguments, PrintStream output) throws Exception {\n String streamId = arguments.get(ArgumentName.NEW_STREAM.toString());\n StreamProperties streamProperties = null;\n if (arguments.hasArgument(ArgumentName.LOCAL_FILE_PATH.toString())) {\n File file = new File(arguments.get...