content
stringlengths
40
137k
"protected void internalSaveWidgetValues() {\n IDialogSettings settings = getDialogSettings();\n if (settings != null) {\n if (getCurrentExportType1().equals(JobExportType.PETALSESB)) {\n String[] directoryNames = settings.getArray(PETALS_EXPORT_DESTINATIONS);\n if (directoryNames == ...
"public Result[] addAndGet(Result[] results, boolean isHeartbeatMessage) throws IOException {\n if (results.length == 0) {\n if (!isHeartbeatMessage) {\n if (!partialResults.isEmpty()) {\n return new Result[] { createCompletedResult() };\n }\n if (lastResultPart...
"protected synchronized void processCommands(DDMReader reader, DDMWriter writer, Session session) throws Throwable {\n try {\n String protocolStr = reader.readCmdString(4);\n String locale = DEFAULT_LOCALE;\n String codeset = null;\n int version = reader.readNetworkShort();\n if (v...
"public void setInventorySlotContents(ItemStack me, int slot, ItemStack stack) {\n if (stack.isEmpty() && me.hasTagCompound()) {\n me.getTagCompound().removeTag(\"String_Node_Str\");\n return;\n }\n if (!me.hasTagCompound()) {\n me.setTagCompound(new NBTTagCompound());\n }\n ExosuitP...
"public static String urlsafeEncode(String text) {\n return new String(urlsafeEncodeBytes(text.getBytes()));\n}\n"
"private void prepareXLabels() {\n StringBuffer a = new StringBuffer();\n int max = (int) Math.round(mCurrentData.getXValAverageLength());\n for (int i = 0; i < max; i++) {\n a.append(\"String_Node_Str\");\n }\n mXLabels.mLabelWidth = Utils.calcTextWidth(mXLabelPaint, a.toString());\n mXLabels....
"public CompilationTask get() throws AptException {\n if (sourceFolders.getFiles().iterator().hasNext()) {\n Iterable<? extends JavaFileObject> sourceObjects = getFileManager().getJavaFileObjectsFromFiles(sourceFolders.getFiles());\n if (log.isDebugEnabled()) {\n compilerOptions.add(\"String...
"public void testRemoveConnDependencyAndSave() {\n TDQAnalysisItem analysisItem = PropertiesFactoryImpl.eINSTANCE.createTDQAnalysisItem();\n Analysis analysis = AnalysisFactory.eINSTANCE.createAnalysis();\n analysis.setName(\"String_Node_Str\");\n analysisItem.setAnalysis(analysis);\n AnalysisContext ana...
"protected void _endContainer(IContent container) throws BirtException {\n boolean isInline = PropertyUtil.isInlineElement(container);\n if (isInline) {\n if (current != null && current.isInlineStacking()) {\n } else {\n }\n } else {\n while (current != null && current.isInlineStack...
"public String getValue2Render(FacesContext fc, UIComponent c) {\n if (c instanceof ValueHolder) {\n if (c instanceof EditableValueHolder) {\n Object sv = ((EditableValueHolder) c).getSubmittedValue();\n if (sv != null) {\n return sv.toString();\n }\n }\n...
"public void checkDatasetType() throws DatasetManagementException {\n DatasetFramework dsFramework = getInjector().getInstance(DatasetFramework.class);\n Assert.assertTrue(dsFramework.hasType(NamespaceId.SYSTEM.datasetType(Schedulers.STORE_TYPE_NAME)));\n}\n"
"protected void populateComboBox(String selectEncoding) {\n java.util.List<String> encodings = EncodingPreferences.getPreferredEncodings();\n if (selectEncoding != null && !encodings.contains(selectEncoding))\n selectEncoding = null;\n int nbEncodings = encodings.size();\n for (int i = 0; i < nbEncod...
"public int search_max(int size, int[] data) {\n int max = 0;\n int one = 1;\n for (int i = 0; i < size; i += one) {\n int d = data[i];\n if (d > max)\n max = d;\n }\n return max;\n}\n"
"public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n beforeInvocation();\n try {\n Object retval = method.invoke(target, args);\n return afterInvocation(retval);\n } catch (InvocationTargetException e) {\n Throwable cause = e.getTargetException();\n ...
"protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) {\n if (checkCallingPermission(android.Manifest.permission.DUMP) != PackageManager.PERMISSION_GRANTED) {\n pw.println(\"String_Node_Str\" + Binder.getCallingPid() + \"String_Node_Str\" + Binder.getCallingUid() + \"String_Node_Str\" + andro...
"public Object execImpl() throws Exception {\n if (partNumber == null) {\n loadMetadata();\n }\n productS = ScriptingTools.createProductService(getServerURL(), user, password);\n String strRevision = revision == null ? null : revision.toString();\n ConfigSpec cs = null;\n if (baselineId != 0) {...
"public String filterAttributeValue(NamedObj container, String element, String attributeName, String attributeValue) {\n if (attributeValue == null) {\n return null;\n }\n if (attributeName.equals(\"String_Node_Str\")) {\n _lastNameSeen = attributeValue;\n if (_currentlyProcessingActorWith...
"public void publishEvent(Address caller, String mapName, int eventType, Data dataKey, Data dataOldValue, Data dataValue) {\n Collection<EventRegistration> candidates = nodeEngine.getEventService().getRegistrations(MAP_SERVICE_NAME, mapName);\n Set<EventRegistration> registrationsWithValue = new HashSet<EventRegi...
"public void setGraphicalPanel() {\n GridBagConstraints c = new GridBagConstraints();\n learner.remove(posPanel);\n learner.remove(advancedPanel);\n detail.setVisible(true);\n c.fill = GridBagConstraints.NONE;\n c.gridwidth = GridBagConstraints.REMAINDER;\n c.anchor = GridBagConstraints.LINE_START;...
"public static void testGaussian() throws IOException, ClassNotFoundException {\n BayesianNetwork oneNormalVarBN = BayesianNetworkLoader.loadFromFile(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n BayesianNetworkSampler sampler = new BayesianNetworkSampler(oneNormalVarBN);\n sampler.setS...
"public Collection<String> get() {\n try {\n List<DatasetModuleMeta> list = datasetModuleClient.list(cliConfig.getCurrentNamespace());\n return Lists.newArrayList(Iterables.transform(list, new Function<DatasetModuleMeta, String>() {\n public String apply(DatasetModuleMeta input) {\n ...
"private void checkoutPart(String pPartNumber, String pRevision, PSFilter filter) throws IOException, UserNotFoundException, WorkspaceNotFoundException, UserNotActiveException, PartMasterNotFoundException, PartRevisionNotFoundException, LoginException, NoSuchAlgorithmException, PartIterationNotFoundException, NotAllowe...
"public void signAndEncrypt(Bundle params) {\n params.putStringArray(OpenPgpConstants.PARAMS_USER_IDS, mEncryptUserIds.getText().toString().split(\"String_Node_Str\"));\n params.putBoolean(OpenPgpConstants.PARAMS_REQUEST_ASCII_ARMOR, true);\n InputStream is = getInputstream(false);\n final ByteArrayOutputSt...
"private void selectDataSet() {\n String currentDS = getDataServiceProvider().getDataSet();\n if (currentDS == null) {\n cmbDataItems.select(0);\n currentData = null;\n } else {\n cmbDataItems.setText(currentDS);\n currentData = currentDS;\n }\n}\n"
"public static void facePlayer(HumanNPC npc, Player player) {\n Location loc = npc.getLocation(), pl = player.getLocation();\n double xDiff = pl.getX() - loc.getX();\n double yDiff = pl.getY() - loc.getY();\n double zDiff = pl.getZ() - loc.getZ();\n double DistanceXZ = Math.sqrt(xDiff * xDiff + zDiff * z...
"<T> void initializeJitBinding(BindingImpl<T> binding, Errors errors) throws ErrorsException {\n if (binding instanceof ConstructorBindingImpl<?>) {\n Key<T> key = binding.getKey();\n jitBindings.put(key, binding);\n boolean successful = false;\n try {\n cb.initialize(this, err...
"public char[] getLetters() {\n StringBuilder ret = new StringBuilder();\n if (firstChar != 0)\n ret.append(firstChar);\n return ret.toString().toCharArray();\n}\n"
"public void prepareXlsxFile(String fileName) throws Exception {\n File xlsxFile = new File(fileName);\n if (xlsxFile.exists()) {\n if (isAbsY && keepCellFormat) {\n initPreXlsx(fileName);\n }\n if (appendWorkbook) {\n InputStream inp = new FileInputStream(fileName);\n ...
"public List<ModuleNeeded> getModulesNeededForJobs() throws PersistenceException {\n List<ModuleNeeded> importNeedsList = new ArrayList<ModuleNeeded>();\n IProxyRepositoryFactory repositoryFactory = CoreRuntimePlugin.getInstance().getRepositoryService().getProxyRepositoryFactory();\n ERepositoryObjectType jobT...
"public static void documentInfo(Long subId) {\n Submission sub = getSubmission();\n String title = params.get(\"String_Node_Str\");\n String degreeMonth = params.get(\"String_Node_Str\");\n String degreeYear = params.get(\"String_Node_Str\");\n Date defenseDate = null;\n DateFormat formatter = new Si...
"protected IPreferenceStore doGetPreferenceStore() {\n IProject project = getProject();\n ScopedPreferenceStore store;\n if (project == null) {\n IScopeContext scope = new InstanceScope();\n preferences = scope.getNode(Activator.PLUGIN_ID);\n store = new ScopedPreferenceStore(scope, Activa...
"public void parseFile(String dataurl, URL documentBase) {\n DataInputStream in;\n if (_debug > 2)\n System.out.println(\"String_Node_Str\" + dataurl + \"String_Node_Str\" + documentBase + \"String_Node_Str\" + _dataurl + \"String_Node_Str\" + _documentBase);\n if (dataurl == null || dataurl.length() ==...
"public static String genAccessTicket(String host, String port, String sid, String tag, Date normalizedHashTime) {\n String params = \"String_Node_Str\" + host + \"String_Node_Str\" + port + \"String_Node_Str\" + sid + \"String_Node_Str\" + tag;\n try {\n Mac mac = Mac.getInstance(\"String_Node_Str\");\n ...
"public Identity saveIdentityStatus(Identity identity, Integer status) {\n Identity reloadedIdentity = loadForUpdate(identity.getKey());\n reloadedIdentity.setStatus(status);\n reloadedIdentity = dbInstance.getCurrentEntityManager().merge(reloadedIdentity);\n return reloadedIdentity;\n}\n"
"private AbstractNode[] deleteNode(AbstractNode node) {\n AbstractNode[] descendants = new AbstractNode[node.size + 1];\n int i = 0;\n for (DescendantAndSelfIterator itr = new DescendantAndSelfIterator(treeStructure, node, Tautology.instance); itr.hasNext(); ) {\n AbstractNode descendant = itr.next();\n...
"private DataHandle getData() {\n ModelConfiguration config = model.getOutputConfig();\n if (config == null) {\n config = model.getInputConfig();\n }\n DataHandle data = getHandle();\n if ((config == null) || (data == null)) {\n return null;\n } else {\n return data;\n }\n}\n"
"public static MetadataCollection from(InputStream inputStream, String sourceName) {\n if (inputStream == null) {\n return new MetadataCollection();\n }\n InputStreamReader reader = new InputStreamReader(inputStream);\n try {\n JsonRootNode root = parser.parse(reader);\n if (root.hasEle...
"public String deobfuscateName(HashMap<String, String> namesMap, String s, boolean firstUppercase, String usageType, RenameType renameType, Map<String, String> selected) {\n boolean isValid = true;\n if (selected != null) {\n if (selected.containsKey(s)) {\n return selected.get(s);\n }\n ...
"public void waitForContinueTask() {\n synchronized (lock) {\n try {\n wait();\n } catch (InterruptedException e) {\n System.out.println(\"String_Node_Str\");\n }\n }\n return;\n}\n"
"private void setUpHlaPublisher(RTIambassador rtia) throws NameNotFound, ObjectClassNotDefined, FederateNotExecutionMember, RTIinternalError, AttributeNotDefined, SaveInProgress, RestoreInProgress, ConcurrentAccessAttempted {\n Iterator<Entry<String, Object[]>> it = _hlaAttributesToPublish.entrySet().iterator();\n ...
"private void testPendingWrite() throws Exception {\n deleteDb(\"String_Node_Str\");\n String url = \"String_Node_Str\" + baseDir + \"String_Node_Str\";\n String writeUrl = url + \"String_Node_Str\";\n Connection conn = DriverManager.getConnection(writeUrl, \"String_Node_Str\", \"String_Node_Str\");\n St...
"public static Indicator adaptToJavaUDI(Indicator indicator) throws Throwable {\n Indicator returnIndicator = getUDIFromMap(indicator);\n if (returnIndicator != null) {\n return returnIndicator;\n }\n UserDefIndicator adaptedUDI = null;\n if (userDefIndSwitch.doSwitch(indicator) != null) {\n ...
"public boolean iterate(IBooleanCoordinateFunction function) {\n int width = base.getWidth();\n int lastRelativeYWithPoint = 0;\n for (int relativeY = 0; relativeY < MIN_SEARCH_LINES || relativeY - lastRelativeYWithPoint <= 2; relativeY++) {\n int lineStartX = base.getLineStartX(relativeY);\n for...
"public void addConditions(List<Condition> conditions) {\n this.conditions.addAll(conditions);\n}\n"
"private boolean layoutChildNode(IReportItemExecutor childExecutor) {\n boolean hasNextPage = false;\n IContent childContent = childExecutor.execute();\n PDFAbstractLM childLM = getFactory().createLayoutManager(this, childContent, childExecutor);\n hasNextPage = childLM.layout();\n if (hasNextPage && !ch...
"public void onBlogChanged() {\n super.onBlogChanged();\n if (areThemesAccessible()) {\n fetchThemes();\n }\n}\n"
"public void visit(NodeTraversal t, Node n, Node parent) {\n if (!(n.isName() || (NodeUtil.isGet(n) && !parent.isGetProp()))) {\n return;\n }\n NameInformation nameInfo = createNameInformation(t, n);\n if (nameInfo == null) {\n return;\n }\n if (nameInfo.onlyAffectsClassDef) {\n i...
"private static int cmdDelete(Context context, String[] argv) {\n Options options = new Options();\n options.addOption(VERB_DELETE);\n final OptionGroup identityOptions = new OptionGroup();\n identityOptions.addOption(OPT_EMAIL);\n identityOptions.addOption(OPT_NETID);\n options.addOptionGroup(identit...
"public ShardingDBResource selectDBResourceFromSlave(String tableName, IShardingKey<?> value, EnumDBMasterSlave slaveNum) throws DBClusterException {\n RouteInfo routeInfo = null;\n try {\n String clusterName = value.getClusterName();\n IClusterRouter router = this.dbRouterC.find(clusterName);\n ...
"public synchronized Random getRandom() {\n if (this.random == null) {\n long seed = System.currentTimeMillis();\n long t1 = seed;\n char[] entropy = getEntropy().toCharArray();\n for (int i = 0; i < entropy.length; i++) {\n long update = ((byte) entropy[i]) << ((i % 8) * 8);\n...
"public static Vector3 min(Vector3 o1, Vector3 o2) {\n return new Vector3(Math.min(o1.x, o2.x), Math.min(o1.y, o2.y), Math.min(o1.z, o2.z));\n}\n"
"public static boolean isValidLibrary(SessionHandle sessionHandle, String fileName, InputStream is) {\n Library lib = null;\n try {\n ModuleOption options = new ModuleOption();\n options.setSemanticCheck(false);\n lib = LibraryReader.getInstance().read(sessionHandle.getSession(), fileName, is...
"public int getTopX() {\n return plotTopLoc.getBlockX();\n}\n"
"public Object visitTableItem(TableItemDesign table, Object value) {\n BaseQueryDefinition query = createQuery(table, value);\n if (query == null) {\n handleListingBand(table.getHeader(), query, true, null);\n handleListingBand(table.getFooter(), query, true, null);\n } else {\n for (int i...
"public void onClick(View v) {\n if (!currentRoom.isFree())\n return;\n TimeSpan limits = currentRoom.getNextFreeTime();\n if (limits == null)\n return;\n DateTime now = new DateTime();\n TimeSpan suggested = new TimeSpan(now, now.add(Calendar.MINUTE, DEFAULT_BOOK_NOW_DURATION));\n if (l...
"protected String _generateVariableDeclaration(ProgramCodeGeneratorAdapter target) throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n ProgramCodeGenerator codeGenerator = getCodeGenerator();\n String name = ProgramCodeGeneratorAdapterStrategy.generateName(target.getComponent());\n S...
"public ResultSet getCrossReference(String pc, String ps, String pt, String fc, String fs, String ft) throws SQLException {\n if (pt == null) {\n return getExportedKeys(fc, fs, ft);\n }\n if (ft == null) {\n return getImportedKeys(pc, ps, pt);\n }\n StringBuilder query = new StringBuilder()...
"public int compareTo(Configuration that) {\n int n;\n float a = this.fontScale;\n float b = that.fontScale;\n if (a < b)\n return -1;\n if (a > b)\n return 1;\n n = this.mcc - that.mcc;\n if (n != 0)\n return n;\n n = this.mnc - that.mnc;\n if (n != 0)\n return n;...
"public void projectMetadata_updateProject() throws Exception {\n Project project = service.getProject(\"String_Node_Str\");\n List<Map<String, Object>> releases = new ArrayList<>();\n for (ProjectRelease release : project.getProjectReleases()) {\n release = release.createWithVersionPattern();\n ...
"public boolean revokeNetworkGroupIngress(RevokeNetworkGroupIngressCmd cmd) {\n Account account = UserContext.current().getAccount();\n Long userId = UserContext.current().getUserId();\n Long domainId = cmd.getDomainId();\n Integer startPort = cmd.getStartPort();\n Integer endPort = cmd.getEndPort();\n ...
"public void testMultipleWorkflowInstances() throws Exception {\n String appWithConcurrentWorkflow = ConcurrentWorkflowApp.class.getSimpleName();\n File tempDir = tmpFolder.newFolder(appWithConcurrentWorkflow);\n File run1File = new File(tempDir, \"String_Node_Str\");\n File run2File = new File(tempDir, \"S...
"public void resumeTurn() {\n if (!currentPlayer.rolledDoubles) {\n if (!isBuilding) {\n gamePane.disableButton(gamePane.getRollDiceButton());\n gamePane.enableButton(gamePane.getBuildButton());\n gamePane.enableButton(gamePane.getEndTurnButton());\n } else {\n ...
"public boolean checksEventType(GameEvent event, Game game) {\n return event.getType() == GameEvent.EventType.DRAW_CARD;\n}\n"
"public BytesRef evaluate() {\n if (values.setDocument(docId) == 0) {\n return null;\n }\n return null;\n}\n"
"protected InputStream execute(PullImageCmd command) {\n WebTarget webResource = getBaseResource().path(\"String_Node_Str\").queryParam(\"String_Node_Str\", command.getTag()).queryParam(\"String_Node_Str\", command.getRepository()).queryParam(\"String_Node_Str\", command.getRegistry());\n LOGGER.trace(\"String_No...
"public void run() {\n long start = System.currentTimeMillis();\n int width = ARPanel.this.getWidth();\n int height = ARPanel.this.getHeight();\n try {\n aggregates = renderer.aggregate(dataset, aggregator, ivt, width, height);\n display.setAggregates(aggregates);\n long end = System.cu...
"protected void initialize(String basename) {\n Messages messagesForBasename = messageProvider.getMessages(basename);\n for (Locale locale : messagesForBasename.getLocales()) {\n Map<String, String> codeToMessage = messagesForBasename.getMessages(locale);\n for (String code : codeToMessage.keySet())...
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n mList.layout(0, 0, mList.getMeasuredWidth(), getHeight());\n if (mHeader != null) {\n MarginLayoutParams lp = (MarginLayoutParams) mHeader.getLayoutParams();\n int headerTop = lp.topMargin;\n mHeader.layou...
"public boolean replace(int key, int oldValue, int newValue) {\n key = maskUnsetKey(key);\n long pos = indexToPos(key & capacityMask);\n for (int i = 0; i <= capacityMask; i++) {\n long entry = bytes.readLong(pos);\n int hash2 = (int) (entry >> 32);\n if (hash2 == key) {\n int v...
"public IntegerDefinition lookupInteger(String name) {\n Definition def = lookupDefinition(name);\n return (IntegerDefinition) ((def instanceof IntegerDefinition) ? def : null);\n}\n"
"public void modifyText(ModifyEvent e) {\n String min = lowerText.getText();\n String max = higherText.getText();\n if (!CheckValueUtils.isEmpty(min)) {\n if (isRangeForDate) {\n if (!CheckValueUtils.isDateValue(min)) {\n updateStatus(IStatus.ERROR, MSG_ONLY_DATE);\n ...
"public void testAliasPersistence() throws Exception {\n final File aliasFile = temporaryUserHome.newFile(\"String_Node_Str\");\n CliProcessWrapper cli = new CliProcessWrapper().addCliArgument(\"String_Node_Str\").addJavaOption(\"String_Node_Str\" + temporaryUserHome.getRoot().toPath().toString()).addCliArgument(...
"public SyncopeUser activate(final SyncopeUser user, final String token) throws WorkflowException, PropagationException {\n doExecuteAction(user, \"String_Node_Str\", Collections.singletonMap(TOKEN, (Object) token));\n setStatus(user.getWorkflowId(), user);\n SyncopeUser updated = userDAO.save(user);\n Prop...
"public void run() {\n if (!Thread.currentThread().isInterrupted()) {\n Realm bgRealm = Realm.getInstance(realmConfiguration);\n bgRealm.beginTransaction();\n try {\n transaction.execute(bgRealm);\n if (!Thread.currentThread().isInterrupted()) {\n bgRealm.com...
"public static URL getResourceAsURL(String path, ClassLoader classLoader) {\n return classLoader.getResource(removeLeadingSlash(path));\n}\n"
"public String getObjectType(GenClass context) {\n if (isFeatureMapType())\n return getGenModel().getImportedName(getEffectiveFeatureMapWrapperInterface());\n if (isMapType())\n return getGenModel().getImportedName(getEffectiveMapType(context, getEcoreTypedElement().getEGenericType(), getMapEntryTyp...
"public void addEntity(EntityOperation op, AtlasEntityHeader header) {\n if (mutatedEntities == null) {\n mutatedEntities = new HashMap<>();\n }\n List<AtlasEntityHeader> opEntities = mutatedEntities.get(op);\n if (opEntities == null) {\n opEntities = new ArrayList<>();\n mutatedEntitie...
"private void compileFunction(Function function) {\n if (!function.isUserFunc())\n return;\n Set<Var> vars = function.getVars();\n for (BasicBlock block : function.basicBlocks()) {\n for (Instruction inst = block.front(); inst != null; inst = inst.next) {\n for (Var var : inst.usedVar(...
"public void widgetSelected(SelectionEvent e) {\n intervalRange.setEnabled(intervalType.getSelectionIndex() != 0);\n intervalBaseButton.setEnabled(intervalType.getSelectionIndex() != 0 && (getColumnType() != String.class));\n intervalBaseText.setEnabled(intervalBaseButton.getEnabled() && intervalBaseButton.get...
"private int doSingleUpload(Uploader uploader, Socket socket, String host, int index, boolean giveSlot) throws IOException {\n long startTime = -1;\n debug(uploader + \"String_Node_Str\");\n boolean isBHUploader = (uploader.getState() == Uploader.BROWSE_HOST);\n boolean updateCheck = (uploader.getState() ==...
"public void setProgress(int progress) {\n mProgress = progress;\n if (mMorphingInProgress || getWidth() == 0) {\n return;\n }\n if (mProgress >= mMaxProgress) {\n if (mState == State.PROGRESS) {\n morphProgressToComplete();\n } else if (mState == State.IDLE) {\n m...
"private SortedMap<ArtifactDescriptor, List<PluginClass>> getPluginsInArtifact(Table table, Id.Artifact artifactId) {\n SortedMap<ArtifactDescriptor, List<PluginClass>> result = new TreeMap<>();\n ArtifactCell parentCell = new ArtifactCell(artifactId);\n byte[] parentDataBytes = table.get(parentCell.rowkey, pa...
"public List<Deserializer> execute() throws UserException, BimDeadlockException, BimDatabaseException {\n Condition condition = new IsOfTypeCondition(StorePackage.eINSTANCE.getDeserializer());\n Map<Long, Deserializer> result = getDatabaseSession().query(condition, Deserializer.class, false, null);\n List<Dese...
"private void resetPartitionsToEarliest(Collection<TopicPartition> topicPartitions) {\n logger.info(\"String_Node_Str\", topicPartitions);\n getKafkaConsumer().seekToBeginning(topicPartitions);\n for (TopicPartition topicPartition : topicPartitions) {\n final long newOffset = getKafkaConsumer().position...
"private void refreshColumns() {\n DataSetHandle dataSetHandle = getDataSetHandle();\n try {\n columnList = DataUtil.getColumnList(dataSetHandle);\n } catch (SemanticException e) {\n ExceptionHandler.handle(e);\n }\n columnChooser.removeAll();\n selectedColumnIndex = -1;\n if (columns...
"private void showImage(int row) {\n CardView card = view.get(row);\n if (!card.getId().equals(bigCard.getCardId())) {\n if (!MageFrame.isLite()) {\n Image image = Plugins.getInstance().getOriginalImage(card);\n if (image != null && image instanceof BufferedImage) {\n b...
"public String generateExampleXml() {\n try {\n String namespace = getNamespace();\n String prefix = namespace == null ? null : ((EnunciateFreemarkerModel) FreemarkerModel.get()).getNamespacesToPrefixes().get(namespace);\n Namespace jdomNS;\n if (org.jdom.Namespace.XML_NAMESPACE.getURI()....
"public void render(OpenGLContext context) {\n checkRemoved();\n super.render(context);\n if (!context.isDirty() || glayer == null || !this.edit) {\n return;\n }\n float zoom = context.getZoom(), width = context.getWidth() * zoom, height = context.getHeight() * zoom;\n if (type.equalsIgnoreCase...
"protected void onSuccess() {\n synchronized (StreamConnsMgr.this) {\n removePendingConn(sid, nid);\n }\n ControlConnection cc = mina.getCCM().getCCWithId(nodeId);\n if (cc == null) {\n onFail();\n return;\n }\n log.info(\"String_Node_Str\" + cc.getNodeId() + \"String_Node_Str\" +...
"public void accessMemory(boolean read) throws IllegalActionException {\n double delayTime = java.lang.Math.random() * 10.0;\n System.out.println(getName() + \"String_Node_Str\" + delayTime + \"String_Node_Str\");\n delay(delayTime);\n IntToken iToken = new IntToken(_code);\n _requestOut.broadcast(iToken...
"protected void update() {\n if (!initialized) {\n String ext = GLES20.glGetString(GLES20.GL_EXTENSIONS);\n if (-1 < ext.indexOf(\"String_Node_Str\")) {\n fboWidth = pg.width;\n fboHeight = pg.height;\n } else {\n fboWidth = PGL.nextPowerOfTwo(pg.width);\n ...
"public void testBinarySearchObjectComparator() {\n Comparator inverseSort = new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Comparable) o2).compareTo(o1);\n }\n };\n List<String> a1 = new ArrayList<String>();\n int ret = Collections.binarySearch(a1, \"Str...
"public static HazelcastInstance createInstance(final ClusteredSessionService sessionService, final FilterConfig filterConfig, final Properties properties) throws ServletException {\n final String instanceName = properties.getProperty(INSTANCE_NAME);\n final String configLocation = properties.getProperty(CONFIG_L...
"public void before() throws ChartException {\n super.before();\n _bImageExternallySpecified = (_img != null);\n if (!_bImageExternallySpecified) {\n if (_bo == null) {\n throw new ChartException(ChartDeviceExtensionPlugin.ID, ChartException.RENDERING, \"String_Node_Str\", Messages.getResourc...
"protected void onPrepareDialogBuilder(Builder builder) {\n if (mAddOns != null) {\n ListAdapter listAdapter = new AddOnArrayAdapter(getContext(), R.layout.addon_list_item_pref, mAddOns);\n builder.setAdapter(listAdapter, this);\n }\n super.onPrepareDialogBuilder(builder);\n}\n"
"protected void onEvent(Event event) {\n try {\n if (initialized) {\n return;\n }\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\");\n }\n if (applicationSignUp.getDomainMappings() != null) {\n for (DomainMapping domainMapping : applica...
"public static ListView<?> getPopUpContent(ComboBox<?> combobox) {\n Class<?> clazz = null;\n Object skin = combobox.getSkin();\n try {\n clazz = Class.forName(JAVA8_COMBO_LISTVIEWSKIN);\n } catch (ClassNotFoundException e) {\n try {\n clazz = Class.forName(JAVA9_COMBO_LISTVIEWSKIN)...
"public <T> ExplicitFMeasureInfo score(final Iterable<Set<T>> predicted, final Iterable<Set<T>> gold) {\n double linkF1Sum = 0.0;\n double linkPrecisionSum = 0.0;\n double linkRecallSum = 0.0;\n final Multimap<T, Set<T>> predictedItemToGroup = CollectionUtils.makeSetElementsToContainersMultimap(predicted);\...
"public void next(int rowId) throws DataException {\n int breakLevel;\n if (this.previous == null)\n breakLevel = 0;\n else\n breakLevel = getBreakLevel(this.current, this.previous);\n try {\n for (int level = breakLevel; level < groupInstanceIndex.length; level++) {\n GroupI...
"private void writeComplexCollection(final ServiceMetadata metadata, final EdmComplexType type, final Property property, final Set<List<String>> selectedPaths, final String xml10InvalidCharReplacement, final XMLStreamWriter writer) throws XMLStreamException, SerializerException {\n for (Object value : property.asCol...