content
stringlengths
40
137k
"public synchronized void launchLocalProject(IProject project, ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n try {\n rhodesLogHelper.stopLog();\n setStandartConsoleOutputIsOff();\n ConsoleHelper.getBuildConsole().clear()...
"public void onMessageReceived(RemoteMessage remoteMessage) {\n RemoteMessage.Notification notification = remoteMessage.getNotification();\n if (notification != null) {\n Map<String, String> payloadMap = remoteMessage.getData();\n Dictionary payload = new Dictionary();\n payload.putAll(payloa...
"public void reset() {\n if (chart != null) {\n chart.dispose();\n }\n chart = new Chart(parent, SWT.NONE);\n chart.setOrientation(SWT.HORIZONTAL);\n final ITitle graphTitle = chart.getTitle();\n graphTitle.setText(\"String_Node_Str\");\n graphTitle.setFont(MainWindow.FONT);\n chart.setBa...
"protected void buildSlides() {\n addSlide(GWT.create(Titre.class));\n addSlide(GWT.create(AQuoi.class));\n addSlide(GWT.create(Fonctionnement.class));\n addSlide(GWT.create(Compilation.class));\n addPresentable(new TropSimple(GWT.<UiBinder<Widget, CodeSlide>>create(TropSimpleBinder.class)));\n addSli...
"private void stepThumbnailAnimation(long currentTime) {\n thumbnailTransformation.clear();\n final long animationFrameTime = getAnimationFrameTime(thumbnailAnimation, currentTime);\n thumbnailAnimation.getTransformation(animationFrameTime, thumbnailTransformation);\n thumbnailTransformation.getMatrix().pre...
"protected void handleBuilderAction(String[] data) {\n if (data.length != 4 || data[1].equals(data[0])) {\n return;\n }\n updateSortKey();\n}\n"
"public static List<TdTable> getTables(Catalog catalog) {\n TaggedValue tv = TaggedValueHelper.getTaggedValue(TaggedValueHelper.TABLE_FILTER, catalog.getTaggedValue());\n String tableFilter = tv == null ? null : tv.getValue();\n return TableHelper.getTables(catalog.getOwnedElement(), tableFilter);\n}\n"
"public void init() {\n subscribeTo(PHPGrammar.FOR_STATEMENT, PHPGrammar.STATEMENT, PHPGrammar.ASSIGNMENT_EXPR, PHPGrammar.ASSIGNMENT_BY_REFERENCE, PHPPunctuator.INC, PHPPunctuator.DEC);\n}\n"
"private Package parsePackage(Resources res, XmlResourceParser parser, int flags, String[] outError) throws XmlPullParserException, IOException {\n AttributeSet attrs = parser;\n mParseInstrumentationArgs = null;\n mParseActivityArgs = null;\n mParseServiceArgs = null;\n mParseProviderArgs = null;\n S...
"public static MicroAggregationFunction createGeneralization(boolean ignoreMissingData) {\n return new MicroAggregationFunction(new DistributionAggregateFunctionGeneralization(ignoreMissingData), DataScale.NOMINAL, \"String_Node_Str\");\n}\n"
"public void restoreStudyEventDefn(int defId, int userId) {\n StudyEventDefinitionBean sed = (StudyEventDefinitionBean) getStudyEventDefinitionDao().findByPK(defId);\n UserAccountBean ub = (UserAccountBean) getUserAccountDao().findByPK(userId);\n ArrayList<EventDefinitionCRFBean> eventDefinitionCRFs = (ArrayLi...
"public OValues handleResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == Activity.RESULT_OK) {\n switch(requestCode) {\n case REQUEST_CAMERA:\n OValues values = getURIDetails(newImageUri);\n values.put(\"String_Node_Str\", BitmapUtils.uriToBase6...
"public CountStatistic getNumConnReleased() {\n return numConnReleased;\n}\n"
"void updateAxis(ScreenPhysicalMapping _axisFreq) {\n if (_axisFreq.mapType == ScreenPhysicalMapping.Type.LINEAR) {\n return;\n }\n if (logAxisMode == LogAxisPlotMode.REPLOT) {\n synchronized (this) {\n int bmpWidthNew = calBmpWidth(_axisFreq);\n boolean needRebuild = bmpWid...
"JMethodCall processSuperConstructorCall(ExplicitConstructorCall x) {\n SourceInfo info = makeSourceInfo(x);\n JMethod ctor = (JMethod) typeMap.get(x.binding);\n JExpression trueQualifier = createThisRef(info, currentClass);\n JMethodCall call = new JMethodCall(program, info, trueQualifier, ctor);\n addC...
"protected void execute(CommandEvent commandEvent) {\n try {\n final String userName = commandEvent.getAuthor().getName();\n final String[] args = commandEvent.getArgs().split(\"String_Node_Str\");\n String pokemonName = args[0];\n final Pokemon pokemon = pokemonRepository.getByName(pokem...
"public void allocate(Allocation allocInfo) throws Exception {\n RunInstancesType request = allocInfo.getRequest();\n String clusterName = request.getAvailabilityZone();\n String vmTypeName = request.getInstanceType();\n final int minAmount = request.getMinCount();\n final int maxAmount = request.getMaxC...
"public void addResourceRoutes(ResourceRouter rootRouter, ResourceRouter realmRouter) {\n realmRouter.route(\"String_Node_Str\").auditAs(REALMS).authorizeWith(PrivilegeAuthzModule.class).toCollection(RealmResource.class);\n realmRouter.route(\"String_Node_Str\").auditAs(CONFIG).authorizeWith(PrivilegeAuthzModule....
"public void delete(String tag) throws IOException {\n String path = pathForTag(tag);\n try {\n Uninterruptibles.getUninterruptibly(ZKOperations.ignoreError(zkClient.delete(path), KeeperException.NoNodeException.class, path));\n } catch (Throwable e) {\n throw new IOException(\"String_Node_Str\" ...
"private void initManualPanel() {\n RootLibraryManagerItem root = new RootLibraryManagerItem(AutoDirectoryManageConfig.getDefaultManagedDirectories(libraryData));\n Set<File> totalList = new HashSet<File>();\n totalList.addAll(AutoDirectoryManageConfig.getDefaultManagedDirectories(libraryData));\n if (shoul...
"public void generateQueryParameters(String query) {\n filterQuery = query.trim();\n try {\n q = parseQuery(filterQuery);\n } catch (ParseException | InvalidParametersException e) {\n this.queryMessage = \"String_Node_Str\" + e.getMessage();\n }\n}\n"
"public void handleEndTag(HTML.Tag t, int pos) {\n if (HTML.Tag.HEAD.equals(t)) {\n inHead = false;\n } else if (HTML.Tag.TITLE.equals(t) && title != null) {\n trimPut(ContentModel.PROP_TITLE, title.toString(), tempDestination);\n title = null;\n }\n}\n"
"public void historicalData(int reqId, String date, double open, double high, double low, double close, int volume, int count, double wap, boolean hasGaps) {\n for (TradeHandler handler : handlers) {\n handler.handleHistoricalData(reqId, new MarketData(date, open, high, low, close, volume, count, wap, hasGaps...
"private void recoverDraggablePanelState(Bundle savedInstanceState) {\n final DraggablePanelState draggablePanelState = (DraggablePanelState) savedInstanceState.getSerializable(DRAGGABLE_PANEL_STATE);\n if (draggablePanelState == null) {\n draggablePanel.setVisibility(View.GONE);\n return;\n }\n ...
"private static Element policyMapDetails(Document doc, String name, int averageRate, int maxRate, int burstRate) {\n Element configure = doc.createElementNS(s_ciscons, \"String_Node_Str\");\n Element modeConfigure = doc.createElement(\"String_Node_Str\" + s_configuremode);\n configure.appendChild(modeConfigure...
"public void run() {\n try {\n presence.publishPresenceStatus(status, \"String_Node_Str\");\n } catch (IllegalArgumentException e1) {\n logger.error(\"String_Node_Str\", e1);\n } catch (IllegalStateException e1) {\n logger.error(\"String_Node_Str\", e1);\n } catch (OperationFailedExcept...
"private void sendMemberListToOthers() {\n if (!isMaster()) {\n return;\n }\n final Collection<MemberImpl> members = getMemberList();\n MemberInfoUpdateOperation op = new MemberInfoUpdateOperation(createMemberInfoList(members), getClusterTime(), false);\n for (MemberImpl member : members) {\n ...
"private void parseCurrentLine() {\n Arrays.fill(columnStarts, 0);\n Arrays.fill(columnEnds, 0);\n Arrays.fill(fieldStarts, 0);\n Arrays.fill(fieldEnds, 0);\n columnStarts[0] = 0;\n int columnIndex = 0;\n int fieldIndex = 0;\n lineLength = line.length();\n final int[] lineFieldIndexToColumnIn...
"public void SaveWolves() {\n cb.WolvesConfig.removeProperty(\"String_Node_Str\");\n for (String owner : cb.mWolves.keySet()) {\n Wolves wolf = cb.mWolves.get(owner);\n String Items = \"String_Node_Str\";\n if (cb.mWolves.get(owner).Inventory.getContents().length > 0)\n for (ItemSt...
"public void serviceAddedAction(ServiceEvent iServiceEvent) {\n getLogger().debug(\"String_Node_Str\" + iServiceEvent.getName() + \"String_Node_Str\" + iServiceEvent.getType());\n Kiosk tKiosk = new Kiosk(iServiceEvent.getName());\n try {\n Topology.getInstance().addKiosk(tKiosk);\n } catch (Topology...
"public <K, V> Cache<K, V> getCache(String cacheName) {\n if (isClosed()) {\n throw new IllegalStateException();\n }\n synchronized (caches) {\n RICache<?, ?> cache = caches.get(cacheName);\n if (cache == null) {\n return null;\n } else {\n Configuration<?, ?> ...
"private boolean isApplicable(XmlJavaTypeAdapter jta, T declaredType) {\n if (jta == null)\n return false;\n T type = reader().getClassValue(jta, \"String_Node_Str\");\n return declaredType.equals(type);\n}\n"
"protected void reduce(IntWritable key, Iterable<CorrelationWritable> values, Context context) throws IOException, InterruptedException {\n CorrelationWritable finalCw = initCw();\n Iterator<CorrelationWritable> cwIt = values.iterator();\n while (cwIt.hasNext()) {\n CorrelationWritable cw = cwIt.next();...
"public void actionPerformed(ActionEvent e) {\n target.add(3, \"String_Node_Str\" + (dice.nextInt(100)));\n}\n"
"public IResultMetaData getResultMetaData() throws DataException {\n RDLoad rdLoad = RDUtil.newLoad(engine.getContext(), new QueryResultInfo(realBasedQueryID, null, -1));\n return rdLoad.loadResultMetaData();\n}\n"
"protected ModelAndView doHandle(HttpServletRequest request, HttpServletResponse response) throws Exception {\n HashMap<String, Object> params = new HashMap<String, Object>();\n params.put(\"String_Node_Str\", this.myPluginDescriptor.getPluginResourcesPath());\n if (request.getParameter(\"String_Node_Str\") !=...
"protected Session doGetSession(boolean create) {\n if (context == null) {\n return null;\n }\n if (session != null && !session.isValid()) {\n session = null;\n }\n if (session != null) {\n return session;\n }\n Manager manager = context.getManager();\n if (manager == null) ...
"public void run3() {\n Object obj = null;\n while (running) {\n try {\n obj = queue.take();\n process(obj);\n } catch (final InterruptedException e) {\n Node.get().handleInterruptedException(Thread.currentThread(), e);\n } catch (final Exception e) {\n ...
"public static <ModelClass extends Model, TableClass extends Model, AdapterClass extends RetrievalAdapter & InternalAdapter> void delete(final TableClass model, AdapterClass adapter, ModelAdapter<ModelClass> modelAdapter) {\n new Delete().from((Class<TableClass>) adapter.getModelClass()).where(adapter.getPrimaryCond...
"public AGLView createGLEventListener(ECommandType type, GLCaleydoCanvas glCanvas, final String label, final IViewFrustum viewFrustum) {\n GeneralManager.get().getLogger().log(new Status(IStatus.INFO, IGeneralManager.PLUGIN_ID, \"String_Node_Str\" + type + \"String_Node_Str\" + label + \"String_Node_Str\"));\n AG...
"private Map<String, Set<Attribute>> prepareAttributes(SyncopeUser user, TargetResource resource) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + user + \"String_Node_Str\" + resource + \"String_Node_Str\" + user.getAttributes());\n }\n String password = user.getPassword();\n List<S...
"public void run() {\n if (webView != null)\n webView.destroy();\n}\n"
"private int[] findDimensionPosition(int currentPosition) {\n int position = currentPosition;\n int[] pos = new int[this.relationMap.mirrorLength.length];\n int count = 0;\n for (int i = pos.length - 1; i >= 0; i--) {\n count = 0;\n if (position < 0) {\n pos[i] = -1;\n co...
"protected String getSampleXml() {\n Model model = component.getInputModel();\n String batchXml = \"String_Node_Str\";\n if (model != null) {\n ArrayList<EntityData> inputRows = new ArrayList<EntityData>();\n for (ModelEntity entity : getMatchingEntities(filterField.getValue())) {\n fo...
"public void processItem(CodeItem item, Stack<CodeItemBuilder> itemStack) {\n CodeItemToDocumentConverter converter = new CodeItemToDocumentConverter();\n converter.setFilename(filename);\n item.accept(converter);\n Document doc = converter.getDocument();\n if (doc == null)\n return;\n try {\n ...
"public boolean processClick(View v) {\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor editor = sharedPref.edit();\n String value = ((TextView) v).getText().toString();\n switch(v.getId()) {\n case R.id.button_recording:\n bS...
"private void extractClone() {\n this.cloneInfo = new CloneInformation();\n ITypeBinding commonSuperTypeOfSourceTypeDeclarations = null;\n if (sourceTypeDeclarations.get(0).resolveBinding().isEqualTo(sourceTypeDeclarations.get(1).resolveBinding())) {\n cloneInfo.sourceCompilationUnit = sourceCompilation...
"public T dequeue() {\n if (head == null) {\n return null;\n }\n if (head.equals(tail)) {\n Node<T> result = tail;\n head = null;\n tail = null;\n size--;\n return result.getValue();\n }\n Node<T> currNode = head;\n while (currNode.getNext() != null) {\n ...
"public void writeExpression(MethodWriter writer) {\n TupleType t = this.tupleType;\n writer.visitTypeInsn(Opcodes.NEW, t);\n writer.visitInsn(Opcodes.DUP);\n for (int i = 0; i < this.valueCount; i++) {\n this.values[i].writeExpression(writer);\n }\n String owner = t.getInternalName();\n Str...
"private SentenceSuggestionsInfo[] splitAndSuggest(TextInfo[] textInfos, int suggestionsLimit) {\n if (textInfos == null || textInfos.length == 0) {\n return SentenceLevelAdapter.getEmptySentenceSuggestionsInfo();\n }\n SentenceLevelAdapter sentenceLevelAdapter;\n synchronized (this) {\n sente...
"public static int getEnergyValue(ItemStack stack) {\n if (stack == null) {\n return 0;\n }\n int energy = fuels.get(new ComparableItemStack(stack));\n return energy > 0 ? energy : TileEntityFurnace.getItemBurnTime(stack) * CoreProps.RF_PER_MJ;\n}\n"
"private void createTableAndIndex(String dirName, String logName) throws SQLException {\n try {\n Class.forName(\"String_Node_Str\");\n } catch (ClassNotFoundException e) {\n LogLog.error(\"String_Node_Str\", e);\n }\n synchronized (initializeLock) {\n LogLog.debug(\"String_Node_Str\");...
"public void setPosition(int position) {\n if (wordList != null && emphasisList != null && delayList != null && position < wordList.size() && position >= 0) {\n this.position = position;\n updateView(position);\n showInfo(this);\n }\n}\n"
"public void onRefreshStart(boolean actionIconPressed) {\n Log.i(Constants.REFRESH_LOG, \"String_Node_Str\" + mEventKey + \"String_Node_Str\");\n mTask = new PopulateEventInfo(this, new RequestParams(true, actionIconPressed));\n mTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, mEventKey);\n}\n"
"public void theSetUp() {\n mockService = mock(PushNotificationService.class);\n Debug mockDebug = mock(Debug.class);\n mockCTS = mock(CTSPersistentStore.class);\n JSONSerialisation mockSerialisation = mock(JSONSerialisation.class);\n messageResource = new SnsMessageResource(mockCTS, mockDispatcher, mock...
"public void markEntryExist(int pos) {\n YTFeed.Entry e = mEntries[pos];\n long olduflag = e.uflag;\n e.uflag = Utils.bitSet(e.uflag, exist ? FENT_EXIST_DUP : FENT_EXIST_NEW, MENT_EXIST);\n if (olduflag != e.uflag)\n setToExist(mItemViews[pos]);\n}\n"
"public void testHidesForeignPackage() throws IOException {\n final File wd = FileUtil.normalizeFile(getWorkDir());\n final Collection<Pair<String, Collection<Integer>>> spec = new ArrayList<>();\n spec.add(clz(\"String_Node_Str\", 0, 9));\n spec.add(clz(\"String_Node_Str\", 0));\n spec.add(clz(\"String_...
"public Example findSimilarExample(List<String> posExamples, List<String> negExamples) throws SPARQLQueryException, TimeOutException {\n logger.info(\"String_Node_Str\");\n logger.info(\"String_Node_Str\" + posExamples);\n logger.info(\"String_Node_Str\" + negExamples);\n this.posExamples = posExamples;\n ...
"public void generateDocumentation(ExportFileResource resource, String targetPath, String... jobVersion) throws Exception {\n List<URL> picList = new ArrayList<URL>(5);\n String jobName = resource.getItem().getProperty().getLabel();\n String jobPath = resource.getItem().getProperty().getItem().getState().getPa...
"public void onPopupClosed(PopupPanel sender, boolean autoClosed) {\n if (autoClosed) {\n closeAllParents();\n }\n onHide(!autoClosed && focusOnHover);\n CloseEvent.fire(MenuBar.this, sender);\n shownChildMenu = null;\n popup = null;\n if (parentMenu != null && parentMenu.popup != null) {\n ...
"static int horst_sign(HashFunctions hs, byte[] sig, int sigOff, byte[] pk, long[] sigbytes, byte[] seed, byte[] masks, byte[] m_hash) {\n byte[] sk = new byte[HORST_T * HORST_SKBYTES];\n int idx;\n int i, j, k;\n int sigpos = sigOff;\n byte[] tree = new byte[(2 * HORST_T - 1) * SPHINCS256Config.HASH_BYT...
"private StudyEventBean createNewStudyEventBean(StudyEventDefinitionBean sedBean, StudySubjectBean studySubjectBean) {\n int ordinal = getStudyEventDao().getMaxSampleOrdinal(sedBean, studySubjectBean);\n StudyEventBean newStudyEventBean = new StudyEventBean();\n newStudyEventBean.setCreatedDate(new Date(System...
"public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e) throws Exception {\n if (e instanceof MessageEvent && ((MessageEvent) e).getMessage() instanceof MappingHttpRequest) {\n MappingHttpRequest request = (MappingHttpRequest) ((MessageEvent) e).getMessage();\n String newUri = null;\n ...
"public static boolean canAccess(Player player, Sign sign) {\n if (player == null)\n return false;\n if (sign == null)\n return true;\n String name = sign.getLine(NAME_LINE);\n if (name == null || name.isEmpty())\n return true;\n return NameManager.canUseName(player, name);\n}\n"
"WSInformationProvider wsInformationProvider() {\n if (properties.getBoolean(KarakuPersistence.KARAKU_JPA_ENABLED, true)) {\n return new EntityURLProvider();\n } else {\n String url = properties.get(\"String_Node_Str\", \"String_Node_Str\");\n InputStream is;\n if (url.startsWith(\"Str...
"public void run(IPersistentObject workingPo) {\n final INodePO editorNode = (INodePO) workingPo;\n final INodePO node = (INodePO) getSelection().getFirstElement();\n if (node == null) {\n return;\n }\n ISelectionListener listener = getSelectionListener(tce, editorNode, node);\n ISpecTestCasePO...
"public boolean isStepSizeAccurate() {\n boolean result = true;\n Iterator actors = _actorsFired.iterator();\n while (actors.hasNext()) {\n Actor actor = (Actor) actors.next();\n if (actor instanceof ContinuousStepSizeController) {\n if (!((ContinuousStepSizeController) actor).isStepSi...
"protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException {\n BrowserScope scope = getBrowserScopeForRequest(context, request, response);\n if (scope.getBrowseIndex() == null) {\n String requestU...
"public boolean initialise() {\n try {\n this.displayName = manifestFile.getName();\n setFile(manifestFile);\n parseProductXML(productxml);\n tiffImages = getImages();\n bounds = new Rectangle(0, 0, getMetaWidth(), getMetaHeight());\n gcps = getGcps();\n if (gcps == n...
"public ProviderResource[] getAllProviders() throws SystemMessageException, InterruptedException {\n ProviderResource[] providers = createProviders();\n if (fProviders == null) {\n fProviders = providers;\n } else {\n for (int i = 0; i < fProviders.length; i++) {\n for (int j = 0; j < ...
"public boolean init(Graph graph) {\n HierarchicalGraph hg = graph.getGraphModel().getHierarchicalGraphVisible();\n if (AttributeUtils.getDefault().isNodeColumn(column)) {\n if (graph.getNodeCount() == 0) {\n return false;\n }\n } else if (AttributeUtils.getDefault().isEdgeColumn(colum...
"private static Object getWSDLValue(WSDLSchemaConnection connection, String value) {\n if (\"String_Node_Str\".equals(value)) {\n if (!connection.isIsInputModel()) {\n return TalendQuoteUtils.addQuotesIfNotExist(connection.getWSDL());\n }\n if (isContextMode(connection, connection.get...
"private void check(final String report) throws ValidationException {\n int total = 0;\n for (final String line : report.split(System.getProperty(\"String_Node_Str\"))) {\n if (line.matches(\"String_Node_Str\")) {\n Logger.warn(this, \"String_Node_Str\", line);\n ++total;\n }\n...
"public org.hl7.fhir.dstu2.model.Bundle.BundleEntryComponent convertBundleEntryComponent(org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n if (advisor.ignoreEntry(src))\n return null;\n org.hl7.fhir.dstu2.model.Bu...
"public void run() {\n if (mDesiredWidth != 0 && mDesiredHeight != 0) {\n AspectRatio aspectRatio = AspectRatio.of(mDesiredWidth, mDesiredHeight);\n float targetHeight = (float) mSurfaceWidth / aspectRatio.toFloat();\n float scale = 1;\n if (mSurfaceHeight > 0) {\n scale = targ...
"public void flush() {\n for (Map.Entry<GenericData.Record, Tbl> e : cache.entrySet()) {\n Tbl tbl = e.getValue();\n emitter.emit(Pair.of(e.getKey(), Pair.of(aggIdx, tbl.getValue())));\n }\n cache.clear();\n}\n"
"public static void main(String[] args) {\n Variables variables = new Variables();\n Variable word = variables.newSparseMultionomialVariable(\"String_Node_Str\", 2);\n Variable topicIndicator = variables.newMultinomialVariable(\"String_Node_Str\", 1);\n DAG dagLDA = new DAG(variables);\n dagLDA.setName(\...
"public void setList(List<CombinationMessage> collection, boolean notifyDataChanged) {\n if (notifyDataChanged) {\n this.notifyDataSetChanged();\n }\n}\n"
"public Event clone(Event evt) {\n if (evt == null) {\n evt = new AvatarNameEvent(eventType, username, usernameAlias);\n } else {\n AvatarNameEvent e = (AvatarNameEvent) evt;\n e.setEventType(eventType);\n e.setUsername(username);\n e.setUsernameAlias(usernameAlias);\n e....
"public String getStockMoveLineDomain(LogisticalFormLine logisticalFormLine) {\n long partnerId = 0;\n List<String> domainList = new ArrayList<>();\n LogisticalForm logisticalForm = logisticalFormLine.getLogisticalForm();\n if (logisticalForm != null) {\n Partner deliverToCustomerPartner = logistical...
"private void generateCallToControlMethodThroughMockingBridge() {\n generateCodeToObtainInstanceOfMockingBridge(MockupBridge.MB);\n generateCodeToPassThisOrNullIfStaticMethod();\n mw.visitInsn(ACONST_NULL);\n generateCodeToCreateArrayOfObject(mw, 2);\n int i = 0;\n generateCodeToFillArrayElement(i++, ...
"public void stateChanged(ChangeEvent e) {\n int selectedIndex = editorTabbedPane.getSelectedIndex();\n Component tabComponent2 = editorTabbedPane.getTabComponentAt(selectedIndex);\n closeLabel.setVisible(tabComponent2 == tabComponent && editorTabbedPane.getTabCount() > 2);\n}\n"
"public boolean objectExists(String bucketName, String objectKey) {\n ObjectListing objectListing = client.listObjects(bucketName, objectKey);\n for (S3ObjectSummary summary : objectListing.getObjectSummaries()) {\n if (summary.getKey().equals(objectKey)) {\n return true;\n }\n }\n ...
"private static void loadProperties() {\n Properties prop = new Properties();\n try {\n prop.load(ApplicationInfo.class.getResourceAsStream(\"String_Node_Str\"));\n version = prop.getProperty(\"String_Node_Str\");\n build = prop.getProperty(\"String_Node_Str\");\n nightly = prop.getPro...
"public IceUdpTransportPacketExtension getLocalCandidatePacketExtension() {\n IceUdpTransportPacketExtension transport = new IceUdpTransportPacketExtension();\n transport.setPassword(agent.getLocalPassword());\n transport.setUfrag(agent.getLocalUfrag());\n for (IceMediaStream ims : agent.getStreams()) {\n ...
"public static void addContextConstraint(SqlQuery sqlQuery, AggStar aggStar, Evaluator evaluator, boolean restrictMemberTypes) {\n Member[] members = evaluator.getNonAllMembers();\n RolapCube baseCube = null;\n if (evaluator instanceof RolapEvaluator)\n baseCube = ((RolapEvaluator) evaluator).getCube();...
"public void notifyDataAddChanged(int position) {\n if (position == -1) {\n notifyItemInserted(getItemCount() - 1);\n } else if (position == 0) {\n notifyDataSetChanged();\n } else {\n notifyItemInserted(position);\n notifyItemRangeChanged(position, super.getItemCount() - position);...
"public JSONWriter fullToJSON(final JSONWriter writer, DataConversion conversionMarkers, ComponentPropertyType componentPropertyType) throws JSONException {\n if (conversionMarkers != null)\n conversionMarkers.convert(ComponentPropertyType.TYPE_NAME);\n final FormElement fe = formElementValue.element;\n ...
"protected static DataItemHandle performInsertDataSetColumn(ResultSetColumnHandle model, Object target, Object targetParent) throws SemanticException {\n DataItemHandle dataHandle = DesignElementFactory.getInstance().newDataItem(null);\n DataSetHandle dataSet = (DataSetHandle) model.getElementHandle();\n dataH...
"public boolean containsValue(Object value) {\n Data valueData = toData(value);\n ClientRequest request = new ContainsRequest(name, valueData);\n Boolean result = invoke(request);\n return result;\n}\n"
"static StringCreator createStringCreator(boolean fastStringEnabled) {\n StringCreator stringCreator = fastStringEnabled ? buildFastStringCreator() : new DefaultStringCreator();\n if (stringCreator == null) {\n stringCreator = new DefaultStringCreator();\n }\n return stringCreator;\n}\n"
"private void tryPendingLaunches(String executionCapability) throws InstantiationException {\n LinkedList<LaunchRequest> reqs = pendingLaunches.getLaunches(executionCapability);\n if (reqs == null) {\n return;\n }\n LinkedList<LaunchRequest> reqsForTraversal = (LinkedList<LaunchRequest>) reqs.clone()...
"public String createSearchString(File file) {\n String fileNameNoExtension = findIDTagFromFile(file);\n return fileNameNoExtension;\n}\n"
"public String getDefaultValue(Element romProp) {\n NodeList list = romProp.getElementsByTagName(\"String_Node_Str\");\n if (list.getLength() == 0)\n return null;\n Element valueNode = (Element) list.item(0);\n return valueNode.getNodeValue();\n}\n"
"private SootField checkStatic(SootField ret) {\n if ((Options.v().wrong_staticness() == Options.wrong_staticness_fail || Options.v().wrong_staticness() == Options.wrong_staticness_fixstrict) && ret.isStatic() != isStatic() && !ret.isPhantom()) {\n throw new ResolutionFailedException(\"String_Node_Str\" + thi...
"public void handleChange(PartChangeEvent event) {\n status = event.getStatus();\n if (status != null && !status.isOK()) {\n setErrorMessage(status.getMessage());\n setPageComplete(false);\n } else {\n setErrorMessage(null);\n }\n}\n"
"public static void setWPImageSpanWidth(Context context, Uri curStream, WPImageSpan is) {\n MediaFile mediaFile = is.getMediaFile();\n if (mediaFile != null)\n mediaFile.setWidth(getMinimumImageWidth(context, curStream));\n}\n"
"public java.util.List<Context> getContext() {\n return (_contexts);\n}\n"
"public void onMessage(Message msg) {\n if (msg instanceof TextMessage) {\n try {\n tm = (TextMessage) msg;\n Logger.getLogger(this.getClass()).info(\"String_Node_Str\" + tm.getText());\n AutoCommitToSvnMsg msg1 = AutoCommitToSvnMsg.unmarshal(tm.getText());\n Util.g...
"public void onReceive(Context context, Intent intent) {\n Tools.HangarLog(\"String_Node_Str\" + this.getClass().getCanonicalName() + \"String_Node_Str\");\n if (mContext == null)\n mContext = context;\n AppWidgetManager mgr = AppWidgetManager.getInstance(context);\n int[] ids = mgr.getAppWidgetIds(n...