content
stringlengths
40
137k
"public void runImpl() {\n if (listener == null)\n return;\n NoSqlEntityManager mgr = factory.createEntityManager();\n Cursor<KeyValue<WebNodeDbo>> cursor = WebNodeDbo.findAllNodes(mgr);\n List<WebNodeDbo> all = new ArrayList<WebNodeDbo>();\n List<WebNodeDbo> servers = new ArrayList<WebNodeDbo>();...
"public void write(Var v, boolean piecewise) {\n if (piecewise) {\n taskRoot.piecewiseWriteMap.put(v, this.block);\n } else {\n writeMap.put(v, this.block);\n }\n}\n"
"public boolean teleportTo(String pstring, Integer x, Integer y, Integer z, String world) {\n if (tcutils == null)\n tcutils = TweakcraftUtils.getInstance();\n Player player = plugin.getServer().getPlayerExact(pstring);\n World w = null;\n if (player == null)\n return false;\n if (world == ...
"public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException {\n HttpServletRequest request = (HttpServletRequest) req;\n HttpServletResponse response = (HttpServletResponse) resp;\n ESAPI.httpUtilities().setCurrentHTTP(request, response);\n try {\n try {\n ...
"private static Set<String> getAllEventURLs(JSONObject obj) {\n Set<String> retSet = new TreeSet<>();\n for (String s : (Iterable<String>) obj.keySet()) {\n retSet.add(EVENT_LINK_BASE + s);\n try {\n JSONObject obj2 = ((JSONObject) obj.get(s));\n if (obj2.get(\"String_Node_Str\...
"public long getHeaderId(int i) {\n if (i >= 0 && i < items.size())\n if (main.islist) {\n if (i != 0) {\n if (items.get(i - 1).getSize().equals(main.goback))\n return -1;\n if (items.get(i - 1).isDirectory(main.rootMode))\n return...
"public Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable {\n invocation.set(new Invocation<T, R>(proxy, method, arguments));\n return null;\n}\n"
"public ServletInputStream getInputStream() throws IOException {\n return wrapServletInputStream();\n}\n"
"public static <V, E> List<V> topologicalOrder(DirectedGraph<V, E> acyclicGraph) {\n TopologicalOrderIterator<V, E> topo = new TopologicalOrderIterator<V, E>(acyclicGraph);\n List<V> topoList = new ArrayList<V>();\n if (acyclicGraph.vertexSet().size() > 0) {\n TopologicalOrderIterator<V, E> topo = new T...
"private void readMetaData() throws IOException {\n _indexInput.seek(_realLength - _SIZES_META_DATA);\n long metaDataLength = _indexInput.readLong();\n int blockCount = _indexInput.readInt();\n _origLength = _indexInput.readLong();\n _blockLengths = new int[blockCount];\n _blockPositions = new long[bl...
"public void setDateTimeFormat(String dateTimeFormat) {\n String prevDateTimeFormat = getDateTimeFormat();\n super.setDateTimeFormat(dateTimeFormat);\n if (!dateTimeFormat.equals(prevDateTimeFormat)) {\n if (cachedTemplateDateFormats != null) {\n for (int i = 0; i < CACHED_TDFS_LENGTH; i += C...
"public static byte[] cryptoBoxOpenEasy(byte[] cipherText, byte[] nonce, byte[] publicKey, byte[] privateKey) throws SodiumLibraryException {\n NativeLong nonce_len = sodium().crypto_box_noncebytes();\n if (nonce.length != nonce_len.intValue()) {\n throw new SodiumLibraryException(\"String_Node_Str\" + non...
"public void onConfigurationChanged(Configuration conf) {\n final String systemLocale = conf.locale.toString();\n if (!TextUtils.equals(systemLocale, mSystemLocale)) {\n mSystemLocale = systemLocale;\n if (mLanguageSwitcher != null) {\n mLanguageSwitcher.loadLocales(PreferenceManager.getD...
"public synchronized boolean compactMoveChunks() {\n checkOpen();\n if (chunks.size() == 0) {\n return false;\n }\n int oldRetentionTime = retentionTime;\n retentionTime = 0;\n long time = getTime();\n ArrayList<Chunk> free = New.arrayList();\n for (Chunk c : chunks.values()) {\n i...
"public Intent registerReceiver(IApplicationThread caller, String callerPackage, IIntentReceiver receiver, IntentFilter filter, String permission, int userId) {\n enforceNotIsolatedCaller(\"String_Node_Str\");\n int callingUid;\n int callingPid;\n synchronized (this) {\n ProcessRecord callerApp = nul...
"public void testMixed() throws IOException {\n int objectNumber = 1001;\n BufferedRandomAccessFile file = new BufferedRandomAccessFile(new File(tmpPath + File.separatorChar + \"String_Node_Str\"), \"String_Node_Str\", 1000);\n for (int i = 0; i < objectNumber; i++) {\n file.writeInt(i);\n }\n fil...
"public void run() {\n try {\n if (!collectorThread.compareAndSet(null, Thread.currentThread())) {\n return;\n }\n } finally {\n runningThreadFuture.setResult(null);\n }\n pr.run();\n}\n"
"public EC2CloudInstance getInstanceByConnectionInfo(final InstanceConnectionInfo instanceConnectionInfo) {\n if (instanceConnectionInfo == null) {\n return null;\n }\n synchronized (this.assignedInstances) {\n return this.assignedInstances.get(instanceConnectionInfo);\n }\n return null;\n}...
"public Object doGetHTML(String subProjectId, String visibility) throws Exception {\n CoreSession session = SessionFactory.getSession(request);\n List<String> envs = new ArrayList<String>();\n DocumentModelList environments = session.query(\"String_Node_Str\" + Endpoint.XPATH_ENDP_ENVIRONMENT + \"String_Node_S...
"private static List<ColumnConfig> createMonitoredPointsGridColumns() {\n final DateTimeFormat format = DateUtils.DATE_SHORT;\n final Date now = new Date();\n final ColumnConfig iconColumn = new ColumnConfig();\n iconColumn.setId(\"String_Node_Str\");\n iconColumn.setHeaderHtml(\"String_Node_Str\");\n ...
"private void runSPARQL1_0_Mode() {\n Model model = ModelFactory.createDefaultModel();\n int limit = 1000;\n int offset = 0;\n String baseQuery = \"String_Node_Str\";\n String query = String.format(baseQuery, classToDescribe.getName(), classToDescribe.getName(), limit, offset);\n System.out.println(qu...
"private static Vector ExplodeWhile(AST.LabeledStmt ast, String next) throws PcalTranslateException {\n Vector result = new Vector();\n AST.While w = (AST.While) ast.stmts.elementAt(0);\n AST.LabeledStmt newast = new AST.LabeledStmt();\n PCalLocation newastBeginLoc = ast.getOrigin().getBegin();\n PCalLoc...
"public ProducerZooKeeper getProducerZooKeeper() {\n return this.producerZooKeeper;\n}\n"
"public void switchToReading() {\n lock.lock();\n try {\n status = FSStatus.READING;\n deserializeObjects();\n } finally {\n lock.unlock();\n }\n}\n"
"private void removeBindings(Component comp) {\n removeBindings0(comp);\n for (final Iterator<Component> it = (Iterator<Component>) comp.getChildren().iterator(); it.hasNext(); ) {\n final Component kid = it.next();\n if (kid != null) {\n removeBindings(kid);\n }\n }\n}\n"
"public Alias randomAlias() throws IOException {\n return this.alias(String.format(\"String_Node_Str\", MkBase.RANDOM.nextInt(Integer.MAX_VALUE)));\n}\n"
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n Player player = (Player) sender;\n Block chestToLock = player.getTargetBlock(null, 5);\n if (chestToLock.getTypeId() == 54) {\n String owner = chestFunctions.getOwner(chestToLock.getLocation());\n if...
"private void onBiDirection(EnhanceEntity e, Client client, EntitySaveGraph objectGraph, EntityMetadata origMetadata, Object child, EntityMetadata childMetadata, Client childClient) throws Exception {\n if (!objectGraph.isUniDirectional() && child != null) {\n List obj = new ArrayList();\n Relation rel...
"public boolean evaluate(JSONObject jsonObject) {\n if (action == null) {\n return false;\n }\n try {\n JSONArray actions = getRMActions(jsonObject);\n if (actions == null) {\n return false;\n } else {\n if (actions.contains(action)) {\n return t...
"public void endDraw() {\n if (primarySurface) {\n Canvas screen = null;\n try {\n screen = parent.getSurfaceHolder().lockCanvas(null);\n if (screen != null) {\n screen.drawBitmap(bitmap, new Matrix(), null);\n }\n } finally {\n if (scre...
"protected IViewerReportDesignHandle getDesignHandle(HttpServletRequest request) {\n IViewerReportDesignHandle design = null;\n IReportRunnable reportRunnable = null;\n boolean isValidDocument = ParameterAccessor.isValidFilePath(this.reportDocumentName);\n if (isValidDocument) {\n IReportDocument rep...
"protected void afterHookedMethod(MethodHookParam param) throws Throwable {\n SnapContext = (Activity) param.thisObject;\n if (!Preferences.getBool(Prefs.ACCEPTED_TOU)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(SnapContext).setTitle(\"String_Node_Str\").setMessage(\"String_Node_Str\").setIc...
"public void terminate() {\n if (_runningthread != null) {\n _runningthread.stop();\n try {\n _runningthread.join();\n } catch (InterruptedException e) {\n }\n _runningthread = null;\n }\n _runningthread = null;\n CompositeActor container = ((CompositeActor) get...
"public int nextInt(int lowerBound, int upperBound) {\n return lowerBound + rnd.nextInt((upperBound - lowerBound));\n}\n"
"void flushMarkersNLabels() throws ChartException {\n List<IRenderInstruction> allMarkers = new ArrayList<IRenderInstruction>();\n List<TextRenderEvent> allLabels = new ArrayList<TextRenderEvent>();\n getMarkersNLabels(allMarkers, allLabels);\n DeferredCache.flushMarkers(fDeviceRenderer, allMarkers);\n D...
"public static String encryptNoEcMultiply(byte[] stretcedKeyMaterial, InMemoryPrivateKey key, byte[] salt) {\n int checksumLength = 4;\n byte[] encoded = new byte[39 + checksumLength];\n int index = 0;\n encoded[index++] = (byte) 0x01;\n encoded[index++] = (byte) 0x42;\n byte non_EC_multiplied = (byte...
"private SimpleLevelFilter createSimpleLevelFilter(IFilterDefinition filter, List bindings) {\n if (!(filter instanceof CubeFilterDefinition) || ((CubeFilterDefinition) filter).getAxisQualifierValues() != null)\n return null;\n IBaseExpression expr = ((CubeFilterDefinition) filter).getExpression();\n if...
"public Property getPropery() {\n ProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n IRepositoryViewObject object;\n try {\n object = factory.getSpecificVersion(id, version, true);\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n return null;\n...
"private boolean trainTypeCanAffectOR(TrainType type) {\n if ((type.getName().equals(\"String_Node_Str\") == false) && (type.getName().equals(\"String_Node_Str\") == false) && (type.getName().equals(\"String_Node_Str\") == false)) {\n return true;\n }\n return false;\n}\n"
"public String getDefaultLoadedRowCount() {\n if (this.analysis != null) {\n TaggedValue taggedValue = TaggedValueHelper.getTaggedValue(TaggedValueHelper.PREVIEW_ROW_NUMBER, this.analysis.getTaggedValue());\n if (taggedValue != null) {\n return taggedValue.getValue();\n }\n }\n ...
"public static String formatNumber(float number, int digitCount, boolean separateThousands) {\n char[] out = new char[35];\n boolean neg = false;\n if (number == 0) {\n return \"String_Node_Str\";\n }\n boolean zero = false;\n if (number < 1 && number > -1) {\n zero = true;\n }\n i...
"public List<TdColumn> getColumns(String catalogName, String schemaPattern, String tablePattern, String columnPattern) throws SQLException {\n List<TdColumn> tableColumns = new ArrayList<TdColumn>();\n ResultSet columns = getConnectionMetadata(connection).getColumns(catalogName, schemaPattern, tablePattern, colum...
"public boolean removeNicFromVm(VirtualMachine vm, Nic nic) throws ConcurrentOperationException, ResourceUnavailableException {\n AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();\n if (!VmJobEnabled.value() || jobContext.isJobDispatchedBy(VmWorkConstants.VM_WORK_JOB_DIS...
"public void preSnapshotRun() {\n entityManager.preSnapshotRun();\n Point playerPosition = null;\n int renderLimit = Spout.getPlatform() == Platform.CLIENT && getRenderer() != null ? RENDER_QUEUE_LIMIT - (getRenderer().getBatchWaiting() + renderChunkQueue.size()) : 0;\n if (Spout.getEngine().getPlatform() =...
"public void run() {\n contextClosingDown[0] = context;\n closedContexts.remove(context);\n closeApplicationContext(context);\n}\n"
"public void testAPIAccessWhenJWTCachingEnabledTestCase() throws APIManagerIntegrationTestException, XPathExpressionException, IOException, JSONException, InterruptedException {\n String applicationName = \"String_Node_Str\";\n String apiName = \"String_Node_Str\";\n String apiContext = \"String_Node_Str\";\n ...
"private <T> void setEnginePreferences(String preferenceKey, Set<IItemDescriptor<T>> currentSelectedEngine, Collection<IItemDescriptor<T>> defaultConf) {\n if (currentSelectedEngine != null && !currentSelectedEngine.containsAll(defaultConf)) {\n StringBuilder descriptorsKey = new StringBuilder();\n for...
"private static Object getFTPValue(FTPConnection connection, String value) {\n if (value.equals(\"String_Node_Str\")) {\n if (isContextMode(connection, connection.getHost())) {\n return connection.getHost();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getHost());\n ...
"public static void handleOnRender(ImageContent content, ExecutionContext context) {\n try {\n ReportItemDesign imageDesign = (ReportItemDesign) content.getGenerateBy();\n IImageInstance image = new ImageInstance(content, context);\n if (handleJS(image, imageDesign.getOnRender(), context).didRun...
"public final static void delete(File file) throws IOException {\n if (!file.exists()) {\n return;\n } else if (file.isDirectory()) {\n deleteDir(file);\n } else {\n deleteFile(file);\n }\n}\n"
"private void tansferFile(File parentFolder) throws Exception {\n if (!parentFolder.exists()) {\n return;\n }\n List<File> fileList = new ArrayList<File>();\n FilesUtils.getAllFilesFromFolder(parentFolder, fileList, nonPropertyFileFilter);\n for (File propFile : fileList) {\n URI uri = URI....
"public void paintControl(PaintEvent event) {\n StateSpaceInformationItem[] ssInfo = resultPage.getStateSpaceInformation();\n if (ssInfo.length < 2) {\n return;\n }\n long[] data = new long[ssInfo.length + 1];\n long[] times = new long[ssInfo.length + 1];\n data[0] = 0;\n times[0] = 0;\n ...
"public static List<XValue> expandSequences(List<XValue> values) {\n if (values.isEmpty())\n return values;\n ArrayList<XValue> list = new ArrayList<XValue>(values.size());\n for (XValue arg : values) {\n if (arg.isAtomic() || arg.isObject())\n list.add(arg);\n else {\n ...
"public SerializerResult complex(final ServiceMetadata metadata, final EdmComplexType type, final Property property, final ComplexSerializerOptions options) throws SerializerException {\n OutputStream outputStream = null;\n SerializerException cachedException = null;\n try {\n final ContextURL contextUR...
"public void close(boolean force) {\n if (this.keepAlive && !this.reconnect && !force) {\n if (this.timeout == 0) {\n return;\n } else if ((System.currentTimeMillis() / 1000) < (this.startup + this.timeout)) {\n return;\n }\n }\n try {\n getLogging().debug(\"St...
"private void refreshParameters() {\n if (drone.getMavClient().isConnected()) {\n drone.getParameters().refreshParameters();\n } else {\n Toast.makeText(getActivity(), R.string.msg_connect_first, Toast.LENGTH_SHORT).show();\n }\n}\n"
"public void setConsumerPriceIndeces(List<ConsumerPriceIndex> prices) {\n this.consumerPriceIndeces = prices;\n Collections.sort(this.consumerPriceIndeces, new ConsumerPriceIndex.ByDate());\n}\n"
"public Control createPart(Composite parent) {\n Label label = new Label(parent, SWT.NONE);\n label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));\n label.setText(org.cloudfoundry.ide.eclipse.internal.server.ui.Messages.LABEL_MEMORY_LIMIT);\n memory = new Text(parent, SWT.BORDER);\n mem...
"public static ServiceFunctionChain readServiceFunctionChainExecutor(String serviceFunctionName) {\n printTraceStart(LOG);\n ServiceFunctionChain ret = null;\n Object[] servicePathObj = { serviceFunctionName };\n Class[] servicePathClass = { String.class };\n SfcProviderServiceChainAPI sfcProviderService...
"public void cancel() {\n if (!mFlowFinished) {\n AnalyticsTracker.track(AnalyticsTracker.Stat.STATS_CANCELED_INSTALL_JETPACK);\n }\n}\n"
"public void searchAs() {\n if (searchDialog == null) {\n searchDialog = new SearchDialog(getMainFrame().getWindow());\n }\n searchDialog.setVisible(true);\n if (searchDialog.result) {\n final String txt = searchDialog.searchField.getText();\n if (!txt.isEmpty()) {\n final SW...
"public void report(IToken token, String message) {\n this.revertExpression(this.pm);\n}\n"
"public void onNodeDragMove(final NodeDragMoveEvent event) {\n WiresContainer.this.m_dragging = true;\n m_events.fireEvent(new WiresDragMoveEvent(WiresContainer.this, event));\n}\n"
"public String[] getWorldInheritance(String world) {\n if (world != null && !world.isEmpty()) {\n List<String> parentWorlds = this.permissions.getStringList(buildPath(\"String_Node_Str\", world, \"String_Node_Str\"));\n if (parentWorlds != null) {\n return parentWorlds.toArray(new String[par...
"public void onFilter4Pressed() {\n try {\n if (changeActiveFilter(filterView4)) {\n filteredImgPath = filterThreshZero(ivfullscreenImage.getId());\n ivfullscreenImage.setImage(new Image(new FileInputStream(filteredImgPath), ivfullscreenImage.getFitWidth(), ivfullscreenImage.getFitHeight...
"public void setBuyableTrains() {\n if (operatingCompany.value() == null)\n return;\n int cash = operatingCompany.value().getCash();\n int cost = 0;\n Set<Train> trains;\n boolean hasTrains = operatingCompany.value().getPortfolioModel().getNumberOfTrains() > 0;\n if (cash == 0 && hasTrains)\n ...
"protected boolean deleteFilesFromPluginsUnpackedDir(String pluginsDir, String[] filenames) throws IOException {\n File restPluginUnpackedDir = new File(pluginsDir + unpackedLocation);\n boolean fileDeletedFromDir = false;\n if (restPluginUnpackedDir.exists() && restPluginUnpackedDir.isDirectory()) {\n ...
"public void setWhisperReceived(Player sender, Player receiver) {\n if (this.whisperTracker.containsKey(receiver.getName())) {\n ((Whispers) this.whisperTracker.get(receiver.getName())).lastFrom = sender.getName();\n } else {\n Whispers whisper = new Whispers();\n whisper.lastFrom = sender;\n...
"protected void okPressed() {\n if (!IndicatorCategoryHelper.isUserDefCategory(category)) {\n tempExpression = storeTdExpValuesFromText(editTextNotUDI);\n } else {\n storeTdExpValuesFromText(tempExpression, tab1_fullSql);\n tempVariableMap.clear();\n if (IndicatorCategoryHelper.isUserD...
"public void publishMessage() throws NamingException, JMSException {\n InitialContext ctx = init();\n TopicConnectionFactory connFactory = (TopicConnectionFactory) ctx.lookup(CF_NAME);\n TopicConnection topicConnection = connFactory.createTopicConnection();\n topicConnection.start();\n TopicSession topic...
"public void writeStormConfig(PrintWriter writer) {\n if (writer != null) {\n Map sorted = new TreeMap();\n sorted.putAll(config);\n for (Object key : sorted.keySet()) {\n writer.println(key + \"String_Node_Str\" + config.get(key));\n }\n writer.flush();\n }\n}\n"
"public boolean heading(Point2D target, double toleranceInDegrees) {\n return AngleUtil.getSmallestDifference(getAngleTo(target), getOrientation()) <= AngleUtil.toRadians(toleranceInDegrees);\n}\n"
"private static HitEnum fromTerms(Terms terms, CompiledAutomaton acceptable, IndexReader reader, int docId, TermWeigher<BytesRef> weigher) throws IOException {\n if (terms == null) {\n return EmptyHitEnum.INSTANCE;\n }\n TermsEnum termsEnum = acceptable.getTermsEnum(terms);\n BytesRef term;\n List...
"private void onRelease(boolean stayForLoading) {\n tryToPerformRefresh();\n if (mStatus == PTR_STATUS_LOADING) {\n if (mKeepHeaderWhenRefresh) {\n int scrollHeight = mHeaderRetainHeightOnRefresh >= 0 ? mHeaderRetainHeightOnRefresh : mHeaderHeight;\n if (mCurrentPos > scrollHeight && ...
"public void queryDocs() throws CorruptIndexException, ParseException, IOException {\n IndexReader indexReader = IndexReader.open(directory);\n StandardAnalyzer analyzer = new StandardAnalyzer(LuceneConstants.VERSION);\n QueryParser qp = new QueryParser(LuceneConstants.VERSION, \"String_Node_Str\", analyzer);\...
"public boolean applies(UUID sourceId, Ability source, UUID affectedControllerId, Game game) {\n if (sourceId != null && sourceId.equals(getTargetPointer().getFirst(game, source)) && affectedControllerId.equals(source.getControllerId())) {\n Card card = game.getCard(sourceId);\n if (card != null && gam...
"public void buildSpanContent(SlowOperContext slowOperContext, SlowOperSpan slowOperSpan) {\n if (!slowOperContext.containsKey(SlowOperConstants.PROTOCOL_HTTP_REQ_HEADER)) {\n return;\n }\n}\n"
"public Resource write(Model model) {\n Resource resource = null;\n if (testCaseResult.getElement().isAnon()) {\n resource = model.createResource(executionUri + \"String_Node_Str\" + JenaUUID.generate().toString());\n } else {\n resource = ElementWriterUtils.copyElementResourceInModel(testCaseRes...
"public boolean equals(Object obj) {\n if (!(obj instanceof MeasureInfo)) {\n return false;\n }\n MeasureInfo temp = (MeasureInfo) obj;\n return StringUtil.isEqual(temp.getMeasureName(), measureName) && temp.isShow() == isShow && StringUtil.isEqual(temp.getExpectedView(), expectedView);\n}\n"
"private static JParameterizedType createParameterizedTypeRecursive(JGenericType baseType, Map<JTypeParameter, JClassType> substitutionMap) {\n JClassType enclosingType = baseType.getEnclosingType();\n if (baseType.isMemberType() && !baseType.isStatic()) {\n JGenericType isGenericEnclosingType = enclosingT...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n final Bundle extras = getIntent().getExtras();\n final String action = getIntent().getAction();\n final int[] uids = (extras != null && extras.containsKey(cUidList) ? extras.getIntArray(cUidList) : new int[0]);\n ...
"public List<msg_mission_item> packMissionItem() {\n List<msg_mission_item> list = super.packMissionItem();\n msg_mission_item mavMsg = list.get(0);\n mavMsg.command = MAV_CMD.MAV_CMD_NAV_RETURN_TO_LAUNCH;\n mavMsg.frame = MAV_FRAME.MAV_FRAME_GLOBAL_RELATIVE_ALT;\n mavMsg.z = (float) returnAltitude.value...
"public void onStart() {\n Log.d(TAG, \"String_Node_Str\");\n super.onStart();\n Log.d(CALL_INTEGRATION, \"String_Node_Str\");\n QBRTCClient.getInstance().addConnectionCallbacksListener(this);\n}\n"
"public Map getProperties() {\n InputStream inputStream = ClassLoader.getSystemResourceAsStream(\"String_Node_Str\");\n HashMap<String, Source> metadataSourceMap = new HashMap<String, Source>();\n metadataSourceMap.put(\"String_Node_Str\", new StreamSource(inputStream));\n Map<String, Object> properties = n...
"private void paintItem(Event event, TableItem tableItem) {\n event.detail &= ~SWT.HOT;\n if (isSelected(event)) {\n Rectangle fill = getBounds(event);\n drawSelectionBox(event, fill);\n }\n}\n"
"public static WebserviceStatus insertionRevisionService(String idExtension, String typeExtension, String username, String passwordHash, String version, String listVersionCompatibles, String filename, String content, String description, String agreement) {\n byte[] fileBytes = null;\n try {\n File f = new ...
"public boolean applies(GameEvent event, Ability source, Game game) {\n if (event.getPlayerId().equals(source.getFirstTarget())) {\n MageObject object = game.getObject(event.getSourceId());\n if (event.getType() == GameEvent.EventType.CAST_SPELL) {\n if (object.getCardType().contains(CardTyp...
"public static ResponseError newFromException(Exception e) {\n StringWriter writer = new StringWriter();\n e.printStackTrace(new PrintWriter(writer));\n return new ResponseError(-1, e.getClass().getSimpleName() + \"String_Node_Str\" + e.getMessage(), writer.toString());\n}\n"
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n String[] tagsArray = null;\n if (savedInstanceState == null) {\n mSite = (SiteModel) getIntent().getSerializableExtra(WordPress.SITE);\n tagsArray = getIntent().getStringArrayExtra(KEY_TAG_LIST);\n } els...
"public TezRawKeyValueIterator getIterator() throws IOException, InterruptedException {\n synchronized (this) {\n if (this.numInputs == 0) {\n return new TezRawKeyValueIterator() {\n\n public DataInputBuffer getKey() throws IOException {\n throw new RuntimeException(\"Stri...
"public void testExcludePackage(String type) throws InterruptedException {\n vr = callEndpoint(type);\n vr.body(\"String_Node_Str\", startsWith(\"String_Node_Str\"));\n vr.body(\"String_Node_Str\", equalTo(\"String_Node_Str\"));\n vr.body(\"String_Node_Str\", equalTo(\"String_Node_Str\"));\n vr.body(\"St...
"public void loadPost(Post post) {\n if (post == null || post.getTitle() == null)\n return;\n TextView title = (TextView) getActivity().findViewById(R.id.postTitle);\n if (post.getTitle().equals(\"String_Node_Str\"))\n title.setText(\"String_Node_Str\" + getResources().getText(R.string.untitled) ...
"public void getProceduresByApp(HttpRequest request, HttpResponder responder, String appId) {\n programLifecycleHttpHandler.getProgramsByApp(responder, Constants.DEFAULT_NAMESPACE, appId, ProgramType.PROCEDURE.getCategoryName());\n}\n"
"public JMenu createMenu() {\n menu = new JMenu(\"String_Node_Str\");\n if (!isPlayback) {\n drawItem = new JMenuItem(\"String_Node_Str\", KeyEvent.VK_R);\n drawItem.addActionListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent e) {\n if (g.getLastMov...
"public void addBundle(Bundle bundle) throws BundleException {\n synchronized (this.updateMonitor) {\n checkBundleNotAssociatedWithAnotherRegion(bundle);\n String symbolicName = bundle.getSymbolicName();\n Version version = bundle.getVersion();\n checkDuplicateBundleInRegion(bundle, symbo...
"private void handleResponse(DNSIncoming msg) throws IOException {\n long now = System.currentTimeMillis();\n boolean hostConflictDetected = false;\n boolean serviceConflictDetected = false;\n logger.trace(\"String_Node_Str\" + msg.answers.size() + \"String_Node_Str\");\n for (Iterator i = msg.answers.it...
"public void addStatistics(Statistics statistics) {\n if (!statisticsList.contains(statistics)) {\n statisticsList.add(statistics);\n fireChangeEvent();\n }\n}\n"
"private double stanleyMethodController() {\n int closestIndex = getClosestIndex(wayPoints, pose);\n double K = 0.05;\n double velocity = pose.getCurrentState().get(2, 0);\n if (closestIndex >= (wayPoints.size() - 1)) {\n new RobobuggyLogicNotification(\"String_Node_Str\", RobobuggyMessageLevel.EXCEP...
"public CompiledCondition compileExpression(Expression expression, Within within, Expression per, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String, Table> tableMap, String queryName, SiddhiAppContext siddhiAppContext) {\n Map<TimePeriod.Duration,...
"protected void executePhase(XAResourceManager resourceManager, boolean reverse) throws PhaseException {\n SortedSet positions;\n if (reverse) {\n positions = resourceManager.getReverseOrderPositions();\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\" + resourceManager.size() +...