content
stringlengths
40
137k
"protected ArrayList search(String query) {\n ArrayList response_list = new ArrayList();\n try {\n try {\n pattern = compiler.compile(query);\n } catch (MalformedPatternException e) {\n for (int i = 0; i < _numFiles; i++) {\n FileDesc desc = (FileDesc) _files.get...
"public void warning(FieldMetadata field, String message, int lineNumber, int columnNumber) {\n ModelValidationMessage validationMessage = new ModelValidationMessage(IComponentValidationRule.SEV_WARNING, message, \"String_Node_Str\", dataModelName, lineNumber, columnNumber, IComponentValidationRule.MSG_GROUP_ELEMENT...
"public void buildCurrentContainer() throws Exception {\n if (!this.incompleteBuilders.empty()) {\n AnnotationMapper xmlMapper = new AnnotationMapper(this.properties.getProperty(\"String_Node_Str\"));\n JavaClassGenerationStrategy javaStrategy = new JavaClassGenerationStrategy(xmlMapper);\n JCla...
"private long getMissCost(SuperGraphEdge accessEdge) {\n SuperGraphNode accessed = accessEdge.getTarget();\n ControlFlowGraph cfg = accessed.getCfg();\n if (accessEdge instanceof SuperReturnEdge) {\n Type returnType = accessEdge.getSource().getCfg().getMethodInfo().getType();\n return methodCache...
"public boolean hasArchetypeCatalogFactories() {\n return factories.size() > 0 || !services.isUnsatisfied();\n}\n"
"public void initTest() {\n os = new ByteArrayOutputStream();\n mw = new StreamModelWriter(os);\n writer = new JavaScriptWriter(mw);\n}\n"
"static SuggestedWordInfo getTransformedSuggestedWordInfo(final SuggestedWordInfo wordInfo, final Locale locale, final boolean isAllUpperCase, final boolean isFirstCharCapitalized, final int trailingSingleQuotesCount) {\n final StringBuilder sb = new StringBuilder(wordInfo.mWord.length());\n if (isAllUpperCase) {...
"public void render(final ReportArtEntity report, final OutputStream os, final Units units) throws IOException {\n doc.setWriter(new OutputStreamWriter(os));\n doc.open();\n doc.textLine(\"String_Node_Str\", 1);\n doc.textLine(\"String_Node_Str\" + new Date(report.getBeginMs()).toString(), 4);\n doc.text...
"public void renderPage(int x, int y, FontRenderer fontRenderer, GuiJournal book, RenderItem renderer, boolean isFirstPage, int mx, int my) {\n book.getMC().getTextureManager().bindTexture(craftSquareTexture);\n ((Gui) book).drawTexturedModalRect(x + 45, y + 55, 0, 0, 97, 59);\n if (shapeless) {\n ((Gui...
"public void testReceiveMessageWithApplicationProperties() throws Exception {\n try (TestAmqpPeer testPeer = new TestAmqpPeer(testFixture.getAvailablePort())) {\n Connection connection = testFixture.establishConnecton(testPeer);\n connection.start();\n testPeer.expectBegin(true);\n Sessio...
"public static void removeProblemsByProcess(IProcess process) {\n for (Iterator<Problem> iter = problemList.getProblemList().iterator(); iter.hasNext(); ) {\n Problem problem = iter.next();\n if (problem == null)\n continue;\n if (problem.getJobInfo() != null && (problem.getJobInfo()....
"private static int registerDimlet(Configuration cfg, DimletKey key) {\n String k = \"String_Node_Str\" + key.getType().getName() + \"String_Node_Str\" + key.getName();\n int id = -1;\n if (dimletBlackList.contains(key)) {\n id = cfg.get(CATEGORY_KNOWNDIMLETS, k, -1).getInt();\n } else {\n if ...
"private HearthTreeNode<BoardState> doBuffs(int targetMinionPlayerIndex, int targetMinionIndex, HearthTreeNode<BoardState> boardState, Deck deck) throws HSInvalidPlayerIndexException {\n Minion minion = boardState.data_.getMinion(targetMinionPlayerIndex, targetMinionIndex - 1);\n if (minion instanceof Murloc && m...
"private static void exportMethods(Context context, Object view, BufferedWriter out, Class<?> klass, String prefix) throws IOException {\n final Method[] methods = getExportedPropertyMethods(klass);\n int count = methods.length;\n for (int i = 0; i < count; i++) {\n final Method method = methods[i];\n ...
"public Class[] getGroups(Annotation annotation) {\n Class[] groups = getGroupsInternal(annotation);\n return groups != null ? groups : EMPTY_GROUPS;\n}\n"
"public boolean removeRoadSouth(PlotArea plotArea, Plot plot) {\n ClassicPlotWorld dpw = (ClassicPlotWorld) plotArea;\n Location pos1 = getPlotBottomLocAbs(plotArea, plot.getId());\n Location pos2 = getPlotTopLocAbs(plotArea, plot.getId());\n int sz = pos2.getZ() + 1;\n int ez = sz + dpw.ROAD_WIDTH - 1;\...
"private void writeErrorLog(final Path logPath, final FileSystem fs, final StepResult result) throws IOException {\n final Writer writer = new OutputStreamWriter(fs.create(logPath), Globals.DEFAULT_FILE_ENCODING);\n final String data = result.getErrorMessage();\n final Exception e = result.getException();\n ...
"public void createPreviewCharts(final ScrolledForm form, final Composite composite, final boolean isCreate) {\n previewChartList = new ArrayList<ExpandableComposite>();\n final ModelElementIndicator[] modelElementIndicatores = treeViewer.getModelElementIndicator();\n uiPagination = new UIPagination(toolkit, c...
"public void updateControlValues() {\n double arySum;\n double aryFact;\n for (int i = 0; i < controlvalues.length; ++i) {\n if (controlvalues[i] == 100)\n rawCn[i] = 0;\n else\n rawCn[i] = (double) (100 - controlvalues[i] / 100);\n }\n normalizeAmplitudes();\n}\n"
"public static void consolidateVersion(String idFinal) throws StorageException {\n LOGGER.info(\"String_Node_Str\" + idFinal);\n idFinal = previousVersion.get(idFinal);\n previousVersion.remove(idFinal);\n while (idFinal != null) {\n removeById(idFinal);\n idFinal = previousVersion.get(idFinal...
"public static String getRawNameForStack(ItemStack is) {\n try {\n return is.getUnlocalizedName().toLowerCase(Locale.ENGLISH);\n } catch (Exception e) {\n }\n return \"String_Node_Str\";\n}\n"
"private void saveProject() {\n project.setDescription(ui.txtDescription.text());\n project.setPlannedTime(ui.txtPlannedTime.value());\n project.setProjectManager((Usr) ui.cmbProjectManager.itemData(ui.cmbProjectManager.currentIndex()));\n project.setActiveState(!ui.checkBox.isChecked());\n try {\n ...
"public void setUpTestDataWithinTransaction() throws Exception {\n Connection conn = DataSourceUtils.getConnection(dataSource);\n IDatabaseConnection dbUnitConn = new DatabaseConnection(conn);\n DatabaseConfig config = dbUnitConn.getConfig();\n config.setProperty(DatabaseConfig.PROPERTY_DATATYPE_FACTORY, db...
"public void handleData(T data) {\n super.handleData(data);\n if (getClass() == TmfCoalescedDataRequest.class) {\n long index = getIndex() + getNbRead();\n for (ITmfDataRequest<T> request : fRequests) {\n if (!request.isCompleted()) {\n if (request.getDataType().isInstance(...
"private static JMenuItem navigateToMenuItem(IRobot robot, JMenuItem item, int[] path, int idx) {\n if (path.length == idx) {\n return item;\n }\n if (!(item instanceof JMenu)) {\n throw new StepExecutionException(\"String_Node_Str\", EventFactory.createActionError());\n }\n JMenu menu = (J...
"public void onPluginMessage(PluginMessageEvent event) {\n if (event.getTag().equals(Constants.channel)) {\n event.setCancelled(true);\n if (event.getReceiver() instanceof ProxiedPlayer && event.getSender() instanceof Server) {\n plugin.runInMainThread(() -> {\n try {\n ...
"void printBlocks() {\n logger.log(Level.FINEST, \"String_Node_Str\");\n for (int i = 0; i < BLOCK_COUNT; i++) {\n if (DEBUG)\n log(blocks[i]);\n }\n Collection<CMap> cmaps = maps.values();\n for (CMap cmap : cmaps) {\n if (DEBUG)\n log(cmap);\n }\n if (DEBUG)\n ...
"public Vertex getVertex(Object id) {\n if (id == null) {\n throw ExceptionFactory.vertexIdCanNotBeNull();\n }\n String myID = id.toString();\n if (vertexCache != null) {\n Vertex vertex = vertexCache.retrieve(myID);\n if (vertex != null) {\n return vertex;\n }\n }\...
"protected void initByAttributes(TypedArray attributes) {\n finishedStrokeColor = attributes.getColor(R.styleable.DonutProgress_donut_finished_color, default_finished_color);\n unfinishedStrokeColor = attributes.getColor(R.styleable.DonutProgress_donut_unfinished_color, default_unfinished_color);\n showText = ...
"public void associateSuperDef(ZooClassDef superDef) {\n if (this.superDef != null) {\n throw new IllegalStateException();\n }\n if (superDef == null) {\n throw new IllegalArgumentException();\n }\n this.superDef = superDef;\n}\n"
"public boolean saveMediaFile(MediaFile mf) {\n boolean returnValue = false;\n ContentValues values = new ContentValues();\n values.put(\"String_Node_Str\", mf.getPostID());\n values.put(\"String_Node_Str\", mf.getFilePath());\n values.put(\"String_Node_Str\", mf.getFileName());\n values.put(\"String_...
"protected AsyncCallFuture<VolumeApiResult> copyVolumeFromPrimaryToImage(VolumeInfo srcVolume, DataStore destStore) {\n AsyncCallFuture<VolumeApiResult> future = new AsyncCallFuture<VolumeApiResult>();\n VolumeApiResult res = new VolumeApiResult(srcVolume);\n VolumeInfo destVolume = null;\n try {\n d...
"static int calculateDiskCacheSize(File dir) {\n int size = 0;\n try {\n StatFs statFs = new StatFs(dir.getAbsolutePath());\n int available = statFs.getBlockCount() * statFs.getBlockSize();\n size = available / 50;\n } catch (IllegalArgumentException e) {\n size = MIN_DISK_CACHE_SIZ...
"public synchronized Map<String, String> getLocalConfigValues() {\n Map<String, String> result = new HashMap<String, String>();\n Iterator<String> iter = baseConfig.getKeys();\n while (iter.hasNext()) {\n String key = iter.next();\n result.put(key, localConfig.getString(key));\n }\n return ...
"private synchronized AnyKeyboard getAlphabetKeyboard(int index, EditorInfo editorInfo) {\n AnyKeyboard[] keyboards = getAlphabetKeyboards();\n if (index >= keyboards.length)\n index = 0;\n AnyKeyboard keyboard = keyboards[index];\n final int mode = getKeyboardMode(editorInfo);\n if (keyboard == n...
"public synchronized final void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {\n monitor.beginTask(null, IProgressMonitor.UNKNOWN);\n try {\n if (srcFile != null && targetFile != null && srcFile.exists() && !targetFile.exists()) {\n if (renameFile(srcFile,...
"public static void handleOnPageBreak(IAutoTextContent content, ExecutionContext context) {\n Object generateBy = content.getGenerateBy();\n if (generateBy == null) {\n return;\n }\n ReportItemDesign autoTextDesign = (ReportItemDesign) generateBy;\n try {\n if (!needOnPageBreak(autoTextDesi...
"public void grabPrompt() {\n this.init();\n while (true) {\n try {\n String line = this.readLine(tryGetProperPromptString());\n if (EXIT_COMMANDS.contains(line)) {\n break;\n }\n line = expandLine(line);\n String result = this.getServer...
"public void uploadVmdkFile(String httpMethod, String urlString, String localFileName, long totalBytesUpdated, ActionDelegate progressUpdater) throws Exception {\n HttpURLConnection conn = getRawHTTPConnection(urlString);\n conn.setDoOutput(true);\n conn.setUseCaches(false);\n conn.setChunkedStreamingMode(_...
"private void addResultSetColumn(DataSetHandle dataSetHandle, IResultMetaData meta) throws BirtException {\n if (meta == null || !(dataSetHandle instanceof OdaDataSetHandle))\n return;\n List columnList = new ArrayList();\n HashSet orgColumnNameSet = new HashSet();\n HashSet uniqueColumnNameSet = new...
"public List<MetadataTable> fillAll(Package pack, DatabaseMetaData dbJDBCMetadata, List<String> tableFilter, String tablePattern, String[] tableType) {\n List<MetadataTable> list = new ArrayList<MetadataTable>();\n if (dbJDBCMetadata == null) {\n return null;\n }\n Package catalogOrSchema = PackageHe...
"public <T> T fromByteArray(byte[] bytes, Serializer<T> serializer) throws IOException, ClassNotFoundException {\n if (bytes == null || bytes.length == 0) {\n return null;\n }\n final SerializerInput serializerInput = new ByteBufferSerializerInput(bytes);\n try {\n return serializer.deserializ...
"public boolean login() throws LoginException {\n log.debug(\"String_Node_Str\");\n try {\n Callback[] callbacks = new Callback[] { new NameCallback(\"String_Node_Str\") };\n callbackHandler.handle(callbacks);\n String username = ((NameCallback) callbacks[0]).getName();\n if (username ...
"public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String i = \"String_Node_Str\";\n i = ENSArray.get(position).getENS_id();\n if (ENSArray.get(position).getTyp() == 99) {\n Bundle bundle = new Bundle();\n bundle.putString(\"String_Node_Str\", i);\n Inten...
"public DeterministicKey getPubOnly() {\n if (isPubKeyOnly())\n return this;\n return new DeterministicKey(getPath(), getChainCode(), getPubKeyPoint(), null, parent);\n}\n"
"public static int intToSlider(final int min, final int max, final int value) {\n return doubleToSlider(min, max, value);\n}\n"
"public void exportPony(Pony pony) {\n Color[] colours = new Color[256];\n boolean[] format = new boolean[9];\n Color background = null, foreground = null;\n for (int i = 0; i < 256; i++) {\n Colour colour = new Colour(i);\n colours[i] = new Color(colour.red, colour.green, colour.blue);\n }...
"private void bindLeftJoin(DataDictionary dd) throws StandardException {\n CompilerContext cc = getCompilerContext();\n final int previousReliability = cc.getReliability();\n try {\n cc.setReliability(previousReliability | CompilerContext.SQL_IN_ROUTINES_ILLEGAL);\n IgnoreFilter ignorePermissions...
"public boolean run(VerbRunner cb) {\n Scene ts = null;\n if (scene == null)\n ts = w.getCurrentScene();\n else\n ts = World.getInstance().getScene(scene);\n BaseActor a;\n if (actor != null) {\n a = World.getInstance().getInventory().get(actor);\n if (a == null) {\n ...
"public boolean apply(PropertyState property) {\n if (property != null) {\n return getTreePermission().canRead(property) || isNew(property.getName());\n } else {\n return false;\n }\n}\n"
"public void on(IState target) {\n stateMachine.getCurrent().onLeave();\n stateMachine.move(target);\n target.onEnter();\n Collection<ITransition> transitions = stateMachine.getTransitions(target);\n if (transitions.size() == 1) {\n transitions.iterator().next().apply(this);\n return;\n ...
"private synchronized void processMessage(Message msg) {\n int msgType = msg.what;\n final int state = msg.arg1;\n final int startId = msg.arg2;\n boolean deferFinishCall = false;\n BluetoothDevice device = null;\n if (msg.obj != null) {\n device = (BluetoothDevice) msg.obj;\n }\n if (DEB...
"public static String getColumnName(String oldExpression) throws BirtException {\n List columnsLists = extractColumnExpressions(oldExpression, ExpressionUtil.DATASET_ROW_INDICATOR);\n if (columnsLists.size() != 1 || !ExpressionParserUtility.isDirectColumnRef(oldExpression, ExpressionUtil.DATASET_ROW_INDICATOR))\n...
"private void updateCalendar(int monthNumber) throws ParseException {\n SimpleDateFormat date = new SimpleDateFormat(\"String_Node_Str\");\n String strDate = \"String_Node_Str\" + labelDateMonthYear.getText();\n Date currentDate = date.parse(strDate);\n SimpleDateFormat dateDayNumber = new SimpleDateFormat(...
"private static void error(final Exception e) {\n final Console console = System.console();\n if (console != null) {\n final PrintWriter err = console.writer();\n if (debug) {\n e.printStackTrace(err);\n } else {\n err.println(e.getLocalizedMessage());\n }\n ...
"public void run() throws Exception {\n CacheService service = getService();\n ICacheRecordStore cache = service.getOrCreateCache(name, getPartitionId());\n response = cache.putIfAbsent(key, value, expiryPolicy, getCallerUuid());\n if (Boolean.TRUE.equals(response)) {\n backupRecord = cache.getRecord...
"private Query parseQuery2(EasyNode parent, String name, String field, int maxSnippets) throws QueryGenException {\n if (name.equals(\"String_Node_Str\")) {\n Term term = parseTerm(parent, field, \"String_Node_Str\");\n SpanQuery q = isWildcardTerm(term) ? new XtfSpanWildcardQuery(term, req.termLimit) ...
"public static void loadAdiumStyle() {\n File is = new File(Constants.class.getClassLoader().getResource(DEFAULT_STYLE_PATH + \"String_Node_Str\").toString());\n System.out.println(\"String_Node_Str\" + is);\n}\n"
"public void setDesc(String s) {\n if (!freezeHotSpot) {\n desc = s;\n if (desc != null && desc.charAt(0) == '@')\n desc = I18N.getString(desc.substring(1));\n }\n}\n"
"public static void load(FMLPreInitializationEvent event) {\n File configurationDir = event.getModConfigurationDirectory();\n File oldConfigFile = new File(configurationDir, \"String_Node_Str\");\n if (oldConfigFile.exists()) {\n try {\n FileUtils.copyFile(new File(configurationDir, \"String_...
"void btnPrintActionPerformed(java.awt.event.ActionEvent evt) {\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n try {\n btnPrint.setEnabled(false);\n JRViewer300.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n Ja...
"private void _readMvccVersion(int offsetFromPos) {\n byte firstByte = blockBuffer.getByteAfterPosition(offsetFromPos);\n int len = WritableUtils.decodeVIntSize(firstByte);\n if (len == 1) {\n this.currMemstoreTS = firstByte;\n } else {\n int remaining = len - 1;\n long i = 0;\n ...
"private OClass addClassToSchema(OSchema schema, OArchitectOClass architectOClass) {\n String name = architectOClass.getName();\n OClass oClass = schema.getOrCreateClass(name);\n if (architectOClass.isExistsInDatabase())\n removePropertiesFromOClass(oClass, architectOClass.getPropertiesForDelete());\n ...
"public void showCollectionViewer() {\n JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.DEFAULT_LAYER);\n for (JInternalFrame window : windows) {\n if (window instanceof CollectionViewerPane) {\n setActive((MagePane) window);\n return;\n }\n }\n tr...
"protected Comparable convert(Map.Entry mapEntry, Comparable entryValue, Comparable attributeValue) {\n if (attributeValue == null) {\n return null;\n }\n AttributeType type = attributeType;\n if (type == null) {\n QueryableEntry queryableEntry = (QueryableEntry) mapEntry;\n attributeTy...
"public javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException {\n logFine(\"String_Node_Str\");\n if (dsObjBuilder == null) {\n dsObjBuilder = new DataSourceObjectBuilder(spec);\n }\n PasswordCre...
"public static List<IRepositoryNode> getConnectionRepositoryNodes(boolean withDeleted) {\n RepositoryNode node = getRootNode(ERepositoryObjectType.METADATA);\n List<IRepositoryNode> connNodes = new ArrayList<IRepositoryNode>();\n if (node != null) {\n List<IRepositoryNode> childrens = node.getChildren()...
"public void parseArgs(ScriptEntry scriptEntry) throws InvalidArgumentsException {\n if (scriptEntry.getArguments().size() > 4)\n throw new InvalidArgumentsException(Messages.ERROR_LOTS_OF_ARGUMENTS);\n for (aH.Argument arg : aH.interpret(scriptEntry.getArguments())) {\n if (!scriptEntry.hasObject(\...
"public void testClusterAllocatorWithWrongTag() {\n try {\n createDb();\n StoragePoolDetailVO detailVO = new StoragePoolDetailVO(this.storagePoolId, \"String_Node_Str\", \"String_Node_Str\", true);\n poolDetailsDao.persist(detailVO);\n DiskOfferingVO diskOff = this.diskOfferingDao.findByI...
"public void testGetRefreshedDataProvider() throws SQLException {\n DatabaseConnection dbProvider = ConnectionFactory.eINSTANCE.createDatabaseConnection();\n setJDBCMysqlConnection(dbProvider);\n List<Catalog> catalogPackageFilter = new ArrayList<Catalog>();\n List<orgomg.cwm.objectmodel.core.Package> schem...
"public int signum() {\n if (bitLength < SMALL_VALUE_BITS) {\n return this.smallValue < 0 ? -1 : this.smallValue > 0 ? 1 : 0;\n }\n return getUnscaledValue().signum();\n}\n"
"private PutResult put(K k, V v, boolean ifAbsent) {\n KeyBuffer key = keySource(k);\n long keyLen = key.size();\n long valueLen = valueSerializer.serializedSize(v);\n long hash = key.hash();\n long bytes = allocLen(keyLen, valueLen);\n long hashEntryAdr;\n if (bytes > maxEntrySize || (hashEntryAdr...
"synchronized void shutdown(StringLogger msgLog) {\n for (KernelExtension loaded : loadedExtensions) {\n try {\n loaded.unload(this);\n } catch (Exception ex) {\n msgLog.logMessage(\"String_Node_Str\" + loaded, ex);\n }\n }\n removeInstance(instanceId);\n}\n"
"public static double convertToPoints(org.eclipse.birt.report.model.api.DimensionHandle handle, int dpi) {\n double retValue = 0.0;\n if (handle.isSet() && handle.getMeasure() > 0 && handle.getUnits().trim().length() > 0) {\n if (handle.getUnits() == DesignChoiceConstants.UNITS_PT) {\n retValue ...
"public Object execute(InterpretContext ctx) throws InterpretException {\n Object o1 = lhs.execute(ctx);\n Object o2 = rhs.execute(ctx);\n if (o1 == null) {\n if (o2 instanceof String && operator == Tokens.PLUS) {\n return o2;\n }\n throw new InterpretException(Errors.EXPRESSION...
"public ItemHolder onCreateViewHolder(ViewGroup viewGroup, int i) {\n View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_ad_gift, null);\n GiftHolder mh = new GiftHolder(v);\n return mh;\n}\n"
"public static void manualValidateElement(Element validateTarget) {\n Collection<Element> sync = new ArrayList<>();\n sync.add(validateTarget);\n ManualSyncRunner manualSyncRunner = new ManualSyncRunner(sync, Application.getInstance().getProject(), 0);\n ProgressStatusRunner.runWithProgressStatus(manualSync...
"public static void createHeaderReference(WordprocessingMLPackage wordprocessingMLPackage, Relationship relationship) throws InvalidFormatException {\n List<SectionWrapper> sections = wordprocessingMLPackage.getDocumentModel().getSections();\n SectPr sectPr = sections.get(sections.size() - 1).getSectPr();\n if...
"public int compare(Map<String, String> o1, Map<String, String> o2) {\n int p1;\n int p2;\n p1 = (Integer) o1.get(\"String_Node_Str\");\n p2 = (Integer) o2.get(\"String_Node_Str\");\n return p1 - p2;\n}\n"
"final public void add(double new_value) {\n if (values.size() > 1)\n slope.add(new_value - values.get(values.size() - 1));\n else\n slope.add(0.0);\n mean = (mean * values.size() + new_value);\n values.add(new_value);\n mean /= values.size();\n var0 += new_value * new_value / (double) (...
"public synchronized void commitSample(long timeUs, int sampleFlags, long offset, int size, byte[] encryptionKey, Format format) {\n timesUs[relativeWriteIndex] = timeUs;\n offsets[relativeWriteIndex] = offset;\n sizes[relativeWriteIndex] = size;\n flags[relativeWriteIndex] = sampleFlags;\n encryptionKey...
"public void run() {\n if (ClientPlugin.getDefault().getPluginPreferences().getBoolean(ClientPlugin.PREF_CONFIRM_FILE_RECEIVE)) {\n final MessageDialog dialog = new MessageDialog(ClientPlugin.getDefault().getActiveShell(), \"String_Node_Str\", null, \"String_Node_Str\", MessageDialog.QUESTION, null, 0);\n ...
"public Collection<SoaNodeInformation> findWSImplementations(JavaSource[] sources, Map<String, JavaServiceInterfaceInformation> wsInterfaces, MavenDeliverableInformation mavenDeliverable, CodeDiscoveryRegistryClient registryClient, Log log) throws Exception {\n List<SoaNodeInformation> discoveredNodes = new ArrayLis...
"public void addPlugin(final PluginAdd pluginAdd) {\n pluginService.addPlugin(pluginAdd);\n}\n"
"private String buildSuccessMessageForMedia(int mediaItemsUploaded) {\n String successMessage = mediaItemsUploaded == 1 ? mContext.getString(R.string.media_file_uploaded) : String.format(mContext.getString(R.string.media_all_files_uploaded_successfully), mediaItemsUploaded);\n return successMessage;\n}\n"
"public void onLowPowerModeChanged(boolean enabled) {\n if (mNumProfiles < 1) {\n return;\n }\n if (enabled == mLowPowerModeEnabled) {\n return;\n }\n if (DEBUG) {\n Slog.d(TAG, \"String_Node_Str\" + enabled);\n }\n}\n"
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n int amount = game.getBattlefield().countAll(dragonFilter, controller.getId(), game);\n if (amount > 0) {\n Permanent targetCreature = ((FixedTar...
"private static Object adoptValue(JSONValue aValue, Field aField) throws Exception {\n if (aValue != null && aValue.isNull() == null) {\n if (aValue.isArray() != null) {\n throw new Exception(\"String_Node_Str\");\n } else {\n JSONBoolean jsb = aValue.isBoolean();\n if ...
"public static AbstractClusterMonitor getClusterMonitor(ParentComponentMonitor parentMonitor, ClusterChildContext context, List<String> parentInstanceIds) throws PolicyValidationException, PartitionValidationException, TopologyInConsistentException {\n String clusterId = context.getId();\n String serviceName = co...
"public void onError(final int error) {\n if (error == SpeechRecognizer.ERROR_NO_MATCH && !wasReadyForSpeech) {\n return;\n }\n if (recognitionActive) {\n recognitionActive = false;\n final AIError aiError;\n if (errorMessages.containsKey(error)) {\n final String descript...
"public boolean incrementToken() throws IOException {\n return input.incrementToken();\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.makeColumnsEqualWidth = false;\n layout.numColumns = 2;\n Label datamo...
"public final WordsCursor getWordsCursor() {\n try {\n if (mStorage == null)\n mStorage = createStorage(mLocale);\n return mStorage.getWordsCursor();\n } catch (SQLiteException e) {\n e.printStackTrace();\n final String dbFile = mStorage.getDbFilename();\n try {\n ...
"public byte[] getRawSoundData() {\n if (soundFormat == SoundFormat.FORMAT_MP3) {\n ret.add(Arrays.copyOfRange(soundData, 2, soundData.length));\n return ret;\n }\n return soundData;\n}\n"
"public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof DataFrameSentEvent) {\n DataFrameSentEvent dfse = (DataFrameSentEvent) evt;\n logger.trace(\"String_Node_Str\", dfse.getDataFrame());\n if (!hasCurrentTransaction()) {\n Nett...
"public Object[] getOutParameters(String stmtText, Object[] inParams, int[] types) throws SQLException {\n m_visits++;\n Object[] objTypes = toObject(types);\n String cKey = makeKey(stmtText, new String[0], new String[0], inParams, new String[0]);\n ArrayList outParamList = (ArrayList) m_rowsCacheIndex.get(...
"private void createClassDecl(polyglot.ast.ClassDecl cDecl) {\n if (!cDecl.type().isTopLevel()) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(cDecl.type().outer())).getSootClass();\n if (InitialResolver.v().getInnerClassInfoMap() == null) {\n InitialResolver.v().setInnerClassIn...
"private void initialise() throws SQLException {\n if (getConnection() != null)\n return;\n _assistanceEnabled = SQLExplorerPlugin.getDefault().getPluginPreferences().getBoolean(IConstants.SQL_ASSIST);\n if (_assistanceEnabled) {\n dictionary = new Dictionary();\n DictionaryLoader dictiona...
"public int hashCode() {\n return Objects.hash(super.hashCode(), endingActions);\n}\n"
"private void formatMissingFragment(ResolverError resolverError, StringBuilder sb) {\n sb.append(this.getTypeDescription(resolverError.getType()));\n sb.append(\"String_Node_Str\").append(resolverError.getBundle()).append(\"String_Node_Str\");\n formatResolverErrorData(resolverError, sb);\n formatResolverEr...