content
stringlengths
40
137k
"private void openContentProposals() {\n if (!isDisposed()) {\n if (m_contentProposalAdapter.isProposalPopupOpen()) {\n return;\n }\n Event triggerEvent = new Event();\n triggerEvent.character = SWT.SPACE;\n triggerEvent.doit = true;\n triggerEvent.keyCode = SWT.S...
"public void write(int lvl, StringBuilder s, ValueSet vs, List<ConceptDefinitionComponent> list, ConceptDefinitionComponent owner, Map<String, ConceptDefinitionComponent> handled) throws Exception {\n if (!select && children.size() == 0)\n return;\n if (handled.containsKey(code)) {\n if (owner == nu...
"private void renderOvalBackgrounds(IDeviceRenderer idr, Location center, Series se, double magnitude) {\n final OvalRenderEvent ore = ((EventObjectCache) idr).getEventObject(StructureSource.createSeries(se), OvalRenderEvent.class);\n LineAttributes lia = null;\n LineAttributes wlia = ((RadarSeries) se).getWeb...
"public HashMap<Byte, String> getGroovyBlocks() {\n HashMap<Byte, String> retval = new HashMap<Byte, String>();\n String[] endfilter = { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" };\n String fampref = \"String_Node_Str\";\n S...
"private XPathFragment buildRootFragment(Object object, XMLDescriptor descriptor, boolean isXMLRoot, MarshalRecord marshalRecord) {\n XPathFragment rootFragment = null;\n if (isXMLRoot) {\n rootFragment = ((XMLRoot) object).getRootFragment();\n String xmlRootUri = ((XMLRoot) object).getNamespaceURI(...
"public void deleteFromTableTest5() throws InterruptedException {\n log.info(\"String_Node_Str\");\n SiddhiManager siddhiManager = new SiddhiManager();\n String streams = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n Stri...
"public void metaContactRenamed(MetaContactRenamedEvent evt) {\n this.refreshAll();\n}\n"
"public Object clone(Workspace workspace) throws CloneNotSupportedException {\n IterateOverArray result = (IterateOverArray) super.clone(workspace);\n try {\n List iterateDirectors = result.attributeList(IterateDirector.class);\n IterateDirector oldIterateDirector = (IterateDirector) iterateDirector...
"public byte[] getPrefixData() {\n StringBuffer sb = new StringBuffer();\n Set<String> set = jibbleMap.keySet();\n for (String s : set) {\n sb.append(s);\n int l = s.length();\n while (l < 4) {\n l++;\n sb.append(' ');\n }\n }\n String data = sb.toString(...
"public void onClick(Widget sender) {\n ContactPopup popup = new ContactPopup(contact);\n int left = link.getAbsoluteLeft() + 14;\n int top = link.getAbsoluteTop() + 14;\n popup.setPopupPosition(left, top);\n popup.show();\n}\n"
"public Response removeDeploymentPolicy(String deploymentPolicyID) throws RestAPIException {\n try {\n StratosApiV41Utils.removeDeploymentPolicy(deploymentPolicyId);\n } catch (AutoscalerServiceDeploymentPolicyNotExistsExceptionException e) {\n return Response.status(Response.Status.NOT_FOUND).entit...
"public Vertex getParentOfTask(Vertex task, String edge) {\n Set<Edge> edges = inEdges(task);\n Edge taskEdge = null;\n for (Edge e : edges) {\n if (e.getName().equals(edge)) {\n taskEdge = e;\n }\n }\n if (taskEdge != null) {\n return connectedParentTask(task, taskEdge);\...
"public void addAttributeValue(UnmarshalRecord unmarshalRecord, ContainerValue containerValue, Object value, Object collection) {\n currentSetting.setMapping((CoreMapping) containerValue.getMapping());\n currentSetting.setObject(unmarshalRecord.getCurrentObject());\n currentSetting.addValue(value, true, collec...
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n DBObject content = context.getContent();\n if (content == null)\n content = new BasicDBObject();\n if (content instanceof BasicDBList) {\n ResponseHelper.endExchangeWithMessage(exchange, HttpStatu...
"public void plan(ActionRequest request, ActionResponse response) throws AxelorException {\n OperationOrder operationOrder = request.getContext().asType(OperationOrder.class);\n OperationOrderWorkflowService operationOrderWorkflowService = Beans.get(OperationOrderWorkflowService.class);\n operationOrder = oper...
"public String toString() {\n String thequery = query.replace(\"String_Node_Str\", \"String_Node_Str\" + timeRange + \"String_Node_Str\");\n thequery = thequery.replace(\"String_Node_Str\", subnet);\n return thequery;\n}\n"
"public void writeAttribute(final String qName, final String value) throws SAXException {\n if (openAttributes == null) {\n openAttributes = new AttributesImpl();\n }\n final QName att = new QName(uri, qName);\n addNamespace(uri, att.prefix, elementStack.getFirst());\n openAttributes.addAttribute(...
"public BinaryPredicateBuilder<T> any() {\n this.quantifier = PredicateQuantifier.ANY;\n throw new UnsupportedOperationException(\"String_Node_Str\");\n}\n"
"private void refreshUpdateVersionViews() {\n if (mSitePlugin != null) {\n mInstallButton.setVisibility(View.GONE);\n boolean isUpdateAvailable = PluginUtils.isUpdateAvailable(mSitePlugin, mWPOrgPlugin);\n boolean canUpdate = isUpdateAvailable && !mIsUpdatingPlugin;\n mUpdateButton.setVis...
"public static List<File> getInput(Component parent, String titleKey, String approveKey, File directory, int mode, int option, boolean allowMultiSelect, final FileFilter filter) {\n if (!OSUtils.isMacOSX()) {\n if (OSUtils.isWindows() && mode == JFileChooser.DIRECTORIES_ONLY && !allowMultiSelect) {\n ...
"public List<Object[]> filterArray(List<Object[]> inputData) {\n List<Object[]> returnList = new ArrayList<Object[]>();\n for (int i = 0; i < inputData.size(); i++) {\n Object[] currentInputData = inputData.get(i);\n if (remaindColumnIndexs.length == 1) {\n Object[] filterViewValuesData =...
"public static void determineIconSize() {\n int trayScalingFactor = 0;\n int menuScalingFactor = 0;\n if (SystemTray.AUTO_TRAY_SIZE) {\n if (OS.isWindows()) {\n int[] version = OSUtil.Windows.getVersion();\n if (version[0] <= 5) {\n trayScalingFactor = 1;\n ...
"public void init(ServletConfig config) throws ServletException {\n TreeMap<String, ReverseConfiguration> confTree = new TreeMap<String, ReverseConfiguration>();\n try {\n propertiesInput = RewriteProxyServlet.class.getResourceAsStream(\"String_Node_Str\");\n Properties properties = new Properties()...
"public void test1_SelectAll() throws Exception {\n OdaDataSetDesign dset = newDataSet(\"String_Node_Str\", \"String_Node_Str\" + this.getTestTableName());\n QueryDefinition query = this.newReportQuery(dset);\n IPreparedQuery pq = this.dataEngine.prepare(query);\n IQueryResults qr = pq.execute(null);\n I...
"private void testFactTableSaveAndLoad3(IDocumentManager documentManager) throws IOException, BirtException {\n long startTime = System.currentTimeMillis();\n Dimension[] dimensions = new Dimension[3];\n String[] levelNames = new String[1];\n levelNames[0] = \"String_Node_Str\";\n DimensionForTest iterat...
"public static boolean tryDiscover(EntityPlayer player, ItemStack is) {\n KnowledgeObject knowledgeObj = KnowledgeObject.fromObject(is);\n return knowledgeObj != null && getPlayerData(player).tryDiscoverObject(player, knowledgeObj);\n}\n"
"private Page copy(Page source, CursorPos parent) {\n Page target = Page.create(this, writeVersion, source);\n if (source.isLeaf()) {\n Page child = target;\n for (CursorPos p = parent; p != null; p = p.parent) {\n p.page.setChild(p.index, child);\n p.page = p.page.copy(writeVe...
"public static String getPortFromURL(String URL) {\n Matcher changeMatcher = URI_PATTERN.matcher(URL);\n String result = \"String_Node_Str\";\n if (URL != null) {\n Matcher changeMatcher = URI_PATTERN.matcher(URL);\n if (changeMatcher.find() && changeMatcher.groupCount() == 4) {\n resu...
"public AuthenticationProvider stormpathAuthenticationProvider() {\n StormpathAuthenticationProvider provider;\n if (oktaEnabled) {\n provider = new OktaAuthenticationProvider(application, client);\n } else {\n provider = new StormpathAuthenticationProvider(application);\n }\n provider.setG...
"protected void fillSynonyms(IMetadataConnection metadataConnection, List<TdColumn> metadataColumns, NamedColumnSet table, String tableName, DatabaseMetaData dbMetaData) throws SQLException {\n if (metadataConnection == null || dbMetaData == null) {\n return;\n }\n if (dbMetaData.getDatabaseProductName(...
"public static String getUrlConnectionString(ConnectionItem connectionItem, boolean defaultContext) {\n if (connectionItem == null) {\n return null;\n }\n DatabaseConnection dbConn = (DatabaseConnection) connectionItem.getConnection();\n ContextType contextType = ConnectionContextHelper.getContextTyp...
"public Iterable<String> getPropertyKeys() {\n ArrayMap<Integer, Property> skipMap = null;\n ArrayMap<Integer, Property> addMap = null;\n if (cowTxId != null && cowTxId == nodeManager.getTransaction()) {\n skipMap = nodeManager.getCowPropertyRemoveMap(this);\n addMap = nodeManager.getCowPropertyA...
"public void run(IProgressMonitor monitor) {\n TreeItem root = xmlViewer.getTree().getItem(0);\n if (getManager().getHl7Component().isHL7Output()) {\n if (getManager() instanceof HL7OutputManager) {\n List<HL7TreeNode> mappableNodes = new ArrayList<HL7TreeNode>();\n IElementParameter ...
"public Object get(ServletContext sc, HttpServletRequest req, HttpServletResponse resp, Object refer) {\n if (null == name)\n return Castors.me().castTo(refer, Lang.getTypeClass(type));\n Map<String, Object> map = (Map<String, Object>) refer;\n Object theObj = map.get(name);\n if (null == theObj)\n ...
"private void openCalendar() {\n setFocus(getContext());\n timeBeforeCalendarOpened = getCurrentMillis();\n calendar.setTimeInMillis(timeBeforeCalendarOpened);\n myCalendarFragment.updateUnderlyingCalendar(calendar);\n myCalendarFragment.show(fm, \"String_Node_Str\");\n}\n"
"protected boolean assembleAll(Module module, Messager handler) {\n if (!buildingEnabled) {\n return false;\n }\n Util.iaxIfNull(module, \"String_Node_Str\");\n Util.iaxIfNull(handler, \"String_Node_Str\");\n if (module.outOfDate(false)) {\n throw new IllegalStateException(\"String_Node_Str...
"public T run(SubMonitor progress) throws CoreException {\n Throwable error = null;\n boolean reattempt = true;\n while (reattempt) {\n long interval = -1;\n try {\n return doRun(client, progress);\n } catch (NotFinishedStagingException notFinishedError) {\n error = n...
"private static void liftWait(Logger logger, Program program, Function f) {\n if (!f.isAsync()) {\n return;\n }\n Block main = f.mainBlock();\n List<WaitVar> blockingVariables = findBlockingVariables(main);\n if (blockingVariables != null) {\n List<Var> locals = f.getInputList();\n i...
"private void activateForm(boolean init) {\n boolean formactive = allowHighScore.isSelected(0);\n MultipleSelectionElement[] checkboxes = { showPosition, showPodium, showHistogram, showListing, displayAnonymous };\n for (int i = 0; i < checkboxes.length; i++) {\n checkboxes[i].setEnabled(formactive);\n ...
"public void updateFoldingRegions(Module module) {\n if (fFoldingStructureProvider != null && module != null) {\n fFoldingStructureProvider.updateFoldingRegions(module);\n }\n}\n"
"private List getExistingEntries(IClasspathEntry[] classpathEntries) {\n ArrayList newClassPath = new ArrayList();\n for (int i = 0; i < classpathEntries.length; i++) {\n IClasspathEntry curr = classpathEntries[i];\n if (curr.getEntryKind() == IClasspathEntry.CPE_LIBRARY) {\n try {\n ...
"public void initGui() {\n super.initGui();\n int maxEnergyStored = tileEntity.getMaxEnergyStored();\n energyBar = new EnergyBar(mc, this).setFilledRectThickness(1).setVertical().setDesiredWidth(10).setDesiredHeight(50).setMaxValue(maxEnergyStored).setShowText(false);\n energyBar.setValue(GenericEnergyStora...
"public void onClick(View v) {\n if (v.getId() == R.id.main_btn_applist_page) {\n Intent intent = new Intent();\n intent.setClass(this, AppListPage.class);\n startActivity(intent);\n } else if (v.getId() == R.id.main_btn_update_page) {\n Intent intent = new Intent();\n intent.se...
"public String getServletPath() {\n return this.cocoonRequest.getServletPath();\n}\n"
"public void handleEvent(XMPPConnectionEvent event) {\n if (event.getType() == XMPPConnectionEvent.Type.DISCONNECTED && event.getData() != null) {\n synchronized (XMPPServiceImpl.this) {\n XMPPConnection connection = event.getSource();\n XMPPConnectionConfiguration configuration = connec...
"public Response act(final Request req) throws IOException {\n final Href href = new RqHref.Base(req).href();\n final Iterator<String> token = href.param(\"String_Node_Str\").iterator();\n String key = \"String_Node_Str\";\n long diff = 0;\n final Inbox inbox;\n while (token.hasNext()) {\n key ...
"private void carregaLetra() {\n letra = this.configuracao.letraDaPartida().getDescricao();\n}\n"
"private void updateColorRegistry(int seriesIndex) {\n List<Query> dataDefinitions = null;\n if (seriesIndex > -1) {\n dataDefinitions = ((SeriesDefinition) seriesDefns.get(seriesIndex)).getDesignTimeSeries().getDataDefinition();\n } else {\n List allSeriesDefns = ChartUIUtil.getAllOrthogonalSeri...
"protected int canExpunge(int size, Value<V> v) {\n return size > getMaxSize() || (System.currentTimeMillis() - v.access) > getLifetime() ? (EXPUNGE_YES | EXPUNGE_CONTINUE) : (EXPUNGE_NO | EXPUNGE_STOP);\n}\n"
"public static void compileLoopStop(ArrayList<Command> ROM) {\n tokens.remove(0);\n OpenLoop loop = loops.remove(0);\n ROM.addAll(loop.commands);\n if (loop.type.equals(\"String_Node_Str\")) {\n if (tokens.get(0).equals(\"String_Node_Str\")) {\n tokens.remove(0);\n OpenLoop loop...
"public void LabelChanged(ComponentEvent e) {\n AttributeEvent attre = (AttributeEvent) e.getData();\n if (attre.getSource() == null || attre.getValue() == null) {\n return;\n }\n String newLabel = (String) attre.getValue();\n String oldLabel = attre.getOldValue() != null ? (String) attre.getOldVa...
"public void testAliasing_GRE473_2() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"S...
"public static String getPattern(Object data, String val) {\n if (val != null && data instanceof Date) {\n return replaceDateFormat(val);\n } else if (val == null && data instanceof Time) {\n return \"String_Node_Str\";\n } else if (val == null && data instanceof java.sql.Date) {\n return ...
"public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn) {\n if (worldIn.isRemote && handIn == EnumHand.MAIN_HAND) {\n playerIn.openGui(ImmersiveRailroading.instance, GuiTypes.RAIL.ordinal(), worldIn, (int) playerIn.posX, (int) playerIn.posY, (int) playerIn.posZ)...
"public List<String> hydrateContentPackage(byte[] payload) throws IOException, UnsupportedEncodingException {\n List<HuffNode> pathDictionary = new ArrayList<HuffNode>();\n List<HuffNode> nodeDictionary = new ArrayList<HuffNode>();\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n Inflater i = n...
"public void setHeight(float height) {\n data.setHeight(height);\n}\n"
"public void create(Collection collection, List<UpdateOp> updateOps) {\n log(\"String_Node_Str\", updateOps);\n ArrayList<Map<String, Object>> maps = new ArrayList<Map<String, Object>>();\n DBObject[] inserts = new DBObject[updateOps.size()];\n for (int i = 0; i < updateOps.size(); i++) {\n inserts[i...
"public String toString() {\n if (getSecond() == null)\n return null;\n String result = \"String_Node_Str\";\n if (getYear() != null && getMonth() != null && getDay() != null)\n result += getYear() + \"String_Node_Str\" + getMonth() + \"String_Node_Str\" + getDay() + \"String_Node_Str\";\n if ...
"public static Collection<Artifact> getAvailableArtifacts(ClassLoader classLoader) {\n Collection<Artifact> ret = new HashSet<>();\n try {\n Enumeration<URL> urls = classLoader.getResources(\"String_Node_Str\");\n while (urls.hasMoreElements()) {\n URL url = (URL) urls.nextElement();\n ...
"String rewriteSeparator(String name) {\n if (name.contains(\"String_Node_Str\")) {\n return name.replaceAll(SEPARATOR, \"String_Node_Str\");\n }\n return name;\n}\n"
"public void testSaveLoad() throws IOException {\n AssetManager assetManager = mock(AssetManager.class);\n CoreRegistry.put(AssetManager.class, assetManager);\n BehaviorNodeFactory nodeFactory = mock(BehaviorNodeFactory.class);\n CoreRegistry.put(BehaviorNodeFactory.class, nodeFactory);\n BehaviorTreeLoa...
"public boolean destroy() {\n if (destroyed) {\n return true;\n }\n abort();\n if (createdBootstrapFactory) {\n try {\n bootstrapFactory.shutdown();\n bootstrapFactory.releaseExternalResources();\n } catch (Exception e) {\n if (LOGGER.isDebugEnabled()) {...
"protected void createViewer() {\n super.createTable();\n GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1);\n table.setLayoutData(gd);\n gd.heightHint = 80;\n Composite stepUpDownComposite = toolkit.createComposite(mainComposite, SWT.NONE);\n stepUpDownComposite.setLayoutData(new GridD...
"public void putOnHold(boolean onHold) throws OperationFailedException {\n CallPeerMediaHandlerJabberImpl mediaHandler = getMediaHandler();\n mediaHandler.setLocallyOnHold(onHold);\n SessionInfoType type;\n if (onHold)\n type = SessionInfoType.hold;\n else {\n type = SessionInfoType.unhold;...
"Map<Long, TemplateProp> s3ListVolume(S3TO s3) {\n String bucket = s3.getBucketName();\n final List<S3ObjectSummary> objectSummaries = S3Utils.getDirectory(s3, bucket, this.VOLUME_ROOT_DIR);\n if (objectSummaries == null)\n return null;\n Map<Long, TemplateProp> tmpltInfos = new HashMap<Long, Templat...
"private AbstractCall resolveApply(MarkerList markers, IContext context) {\n IValue instance;\n IMethod method;\n IDataMember field = context.resolveField(this.name);\n if (field == null) {\n IType itype = IContext.resolveType(context, this.name);\n if (itype == null) {\n return nul...
"public char[] getSource() {\n StringBuffer sb = new StringBuffer();\n if (!goBad) {\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n goBad = true;\n } else {\n sb.append(\"String_Node_Str\");\n }\n return sb.toStri...
"public void onReceive(Context context, Intent intent) {\n CameraHolder holder = CameraHolder.instance();\n if (holder.tryOpen() == null)\n return;\n }\n Intent i = new Intent(Intent.ACTION_MAIN);\n i.setClass(context, Camera.class);\n i.addCategory(\"String_Node_Str\");\n i.setFlags(Intent....
"boolean isClassy() {\n return !isFunction() && !isBuiltinObject();\n}\n"
"public boolean canGrow(World world, int x, int y, int z) {\n return this.isValidSoil(world, x, y - 1, z) && this.isBrightnessGood(world, x, y, z) && this.isBaseBlockPresent(world, x, y, z);\n}\n"
"public PortableFactory createFactory() {\n ConstructorFunction<Integer, Portable>[] constructors = new ConstructorFunction[TXN_MM_REMOVEALL + 1];\n constructors[CLEAR] = new ConstructorFunction<Integer, Portable>() {\n public Portable createNew(Integer arg) {\n return new ClearRequest();\n ...
"public synchronized void initialize() throws IOException, DatasetManagementException {\n table = tableUtil.getMetaTable();\n Preconditions.checkNotNull(table, \"String_Node_Str\", ScheduleStoreTableUtil.SCHEDULE_STORE_DATASET_NAME);\n upgradeCacheLoader = CacheBuilder.newBuilder().expireAfterWrite(1, TimeUnit...
"public void start() {\n getInitialPartitions();\n client.getClientExecutionService().scheduleWithFixedDelay(new RefreshTask(), 10, 10, TimeUnit.SECONDS);\n}\n"
"public void onHeaderClick(StickyListHeadersListView l, View header, int itemPosition, long headerId, boolean currentlySticky) {\n Toast.makeText(getActivity(), \"String_Node_Str\" + headerId, Toast.LENGTH_SHORT).show();\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n mStickyList.smoothSc...
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (!LocusTesting.isLocusInstalled(this)) {\n LocusTesting.showLocusMissingError(this);\n return;\n }\n if (getSupportFragmentManager().findFragmentByTag(ImportDialogFragment.TAG) != null) {\n ...
"public boolean checkTrigger(GameEvent event, Game game) {\n if (!onlyCombat || ((DamagedPlayerEvent) event).isCombatDamage()) {\n Permanent permanent = game.getPermanent(event.getSourceId());\n if (permanent != null) {\n controllerId = permanent.getControllerId();\n if (filter.ma...
"private void createEnvironmentVariables() throws IOException {\n Map<String, String> envVariables = app.getEnvironmentVariables();\n if (!envVariables.isEmpty()) {\n ArrayList<String> environmentVariables = new ArrayList<>();\n environmentVariables.add(String.format(\"String_Node_Str\", ENVIRONMENT...
"private void updateBootstrapDependencies() {\n try {\n Iterable<Bootstrapper> currBootstrappers = Iterables.concat(Lists.newArrayList(this.bootstrappers.values()), Lists.newArrayList(this.disabledBootstrappers.values()));\n this.bootstrappers.clear();\n this.disabledBootstrappers.clear();\n ...
"public static String readFileAsString(File file) {\n byte[] bytes = readFileAsBytes(file);\n if (bytes != null) {\n return toString(bytes, DEFAULT_ENCODING);\n }\n}\n"
"public void execute() throws BuildException {\n String shouldRunProperty = System.getProperty(Migrator.SHOULD_RUN_SYSTEM_PROPERTY);\n if (shouldRunProperty != null && !Boolean.valueOf(shouldRunProperty)) {\n log(\"String_Node_Str\" + Migrator.SHOULD_RUN_SYSTEM_PROPERTY + \"String_Node_Str\");\n ret...
"private List getPreviewRowData(ColumnBindingInfo[] headers, int rowCount, boolean isStringType) throws ChartException {\n ArrayList dataList = new ArrayList();\n ClassLoader oldContextLoader = Thread.currentThread().getContextClassLoader();\n ClassLoader parentLoader = oldContextLoader;\n if (parentLoader ...
"public void testRuleFilteringSourceGlassfish() throws Exception {\n setupAndRun(null, null, Collections.singleton(\"String_Node_Str\"), Collections.singleton(\"String_Node_Str\"));\n Assert.assertTrue(this.tag1SourceGlassfishRuleProvider.executed);\n Assert.assertTrue(this.tag1SourceGlassfishTargetFooRuleProv...
"public String addItemsInTable() {\n if (hasFieldErrors()) {\n return INPUT;\n }\n Map sessionAttributes = ActionContext.getContext().getSession();\n Orders orderEntityForm = orderService.findOrdersById((Integer) sessionAttributes.get(\"String_Node_Str\"));\n order = transformToOrderFormBean(order...
"public Coordinate getCenterPointCoord() {\n return this.geometry.getCentroid().getCoordinate();\n}\n"
"public void refresh(AbstractAnalysisMetadataPage masterPage) {\n this.masterPage = (ColumnCorrelationNominalAndIntervalMasterPage) masterPage;\n if (summaryComp != null && !summaryComp.isDisposed()) {\n summaryComp.dispose();\n }\n if (graphicsAndTableComp != null && !graphicsAndTableComp.isDisposed...
"public RAInputStream getStream(String relativePath) throws IOException {\n String path = ArchiveUtil.generateFullPath(folderName, relativePath);\n File file = new File(path);\n if (file.exists()) {\n return new RAFolderInputStream(inputStreams, file);\n }\n throw new FileNotFoundException(relativ...
"public void moduleCreated(IAnalysisModule module) {\n IPath pathToFiles = XmlUtils.getXmlFilesPath();\n File fFolder = pathToFiles.toFile();\n if (!(fFolder.isDirectory() && fFolder.exists())) {\n return;\n }\n for (File xmlFile : fFolder.listFiles()) {\n if (!XmlUtils.xmlValidate(xmlFile)...
"public Entry<K, V> next() {\n key = it.next();\n return new MapEntry(key);\n}\n"
"private void processTypeCheckCodeFragment() {\n List<ArrayList<Statement>> typeCheckStatements = typeCheckElimination.getTypeCheckStatements();\n ArrayList<Statement> firstBlockOfStatements = typeCheckStatements.get(0);\n Statement firstStatementOfBlock = firstBlockOfStatements.get(0);\n if (firstStatement...
"public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {\n JAXBContext jaxbContext;\n try {\n jaxbContext = JAXBContext.newInstance(Users.class);\n Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();\n Users users = (Users) jaxbUnmarshaller.unma...
"public TemplateDateFormat get(int dateType, String formatDescriptor) throws ParseException, TemplateModelException, UnknownDateTypeFormattingUnsupportedException {\n Map[] formatCache = this.formatCache;\n if (formatCache == null) {\n formatCache = new Map[4];\n formatCache[TemplateDateModel.UNKNOW...
"public void testAdvice() {\n IProgramElement node = model.getRoot();\n assertNotNull(node);\n IProgramElement aspect = AsmManager.getDefault().getHierarchy().findElementForType(null, \"String_Node_Str\");\n assertNotNull(aspect);\n String anon = \"String_Node_Str\";\n IProgramElement anonNode = model...
"public int hashCode() {\n int hash = expr.hashCode();\n if (contextRef != null) {\n hash ^= contextRef.hashCode();\n }\n if (originalContextRef != null) {\n hash ^= originalContextRef.hashCode();\n }\n return hash;\n}\n"
"private boolean isInGroup(Set<Principal> principals) {\n for (Principal p : principals) {\n logger.fine(\"String_Node_Str\" + p + \"String_Node_Str\" + group);\n if (p.getType() == Type.GROUP) {\n String name = p.getId();\n if (name.equals(group) || name.equals(\"String_Node_Str\...
"private static PathWithUnixSeparators unixPath(Path path) {\n return new PathWithUnixSeparators().setPath(MorePaths.pathWithUnixSeparators(path));\n}\n"
"public long getAccountId() {\n if (publicIpId != null)\n return _networkService.getIp(getSourceIpAddressId()).getAccountId();\n Account account = UserContext.current().getCaller();\n if ((account == null)) {\n if ((domainId != null) && (accountName != null)) {\n Account userAccount = ...
"public void associate(final Project project, final Resource<?> parentResource) {\n if (canAssociate(project, parentResource)) {\n Project parent = projectFactory.findProject(parentResource);\n MavenFacet parentMavenFacet = parent.getFacet(MavenFacet.class);\n Model parentPom = parentMavenFacet....
"public void setXMLAttributes(final XmlPullParser xmlParser, final UIManager manager) {\n super.setXMLAttributes(xmlParser, manager);\n final String align = xmlParser.getAttributeValue(null, ATT_ALIGN);\n if (align != null) {\n setAlignment(UIConfig.getAlignment(align));\n }\n final String repeati...
"protected Control createDialogArea(Composite parent) {\n Composite composite = new Composite(parent, SWT.NONE);\n composite.setLayoutData(new GridData(GridData.FILL_BOTH));\n GridLayout layout = new GridLayout();\n layout.numColumns = 1;\n layout.marginWidth = convertHorizontalDLUsToPixels(IDialogConsta...
"private void startPostmaster() throws IOException {\n final StopWatch watch = new StopWatch();\n watch.start();\n Preconditions.checkState(!started.getAndSet(true), \"String_Node_Str\");\n final List<String> args = Lists.newArrayList(pgBin(\"String_Node_Str\"), \"String_Node_Str\", dataDirectory.getPath(),...