content
stringlengths
40
137k
"protected String formatDoc(JavaMethod method) {\n StringBuilder formattedDoc = new StringBuilder();\n if (method.getComment() != null) {\n formattedDoc.append(method.getComment());\n }\n for (DocletTag tag : method.getTags()) {\n if (formattedDoc.length() > 0) {\n formattedDoc.appe...
"public void new_mode_nrtm_test() {\n given(NEW_MODE, OBJ_EXISTS_WITH_CHANGED).when(NRTM___, EVENT_, NOT_APPLIC__).then(SUCCESS, OBJ_EXISTS_NO_CHANGED__).run();\n given(NEW_MODE, OBJ_EXISTS_NO_CHANGED__).when(NRTM___, EVENT_, NOT_APPLIC__).then(SUCCESS, OBJ_EXISTS_NO_CHANGED__).run();\n}\n"
"public void handleEvent(Event event) {\n tableItem = outputMetaView.getTable().getSelection();\n List list = new ArrayList<IMetadataColumn>();\n for (TableItem element : tableItem) {\n column = (IMetadataColumn) element.getData();\n list.add(column);\n }\n if (tableItem.length > 0) {\n ...
"private void scheduleCheckStartup() {\n Runnable command = new Runnable() {\n public void run() {\n appStarting = false;\n checkState();\n if (!stateDetail.state.equals(AppState.ACTIVE_READY)) {\n logger.error(\"String_Node_Str\", stateDetail.state, stateDetail...
"public ProjectileSource getShooter() {\n if (this.projectileSource != null && this.projectileSource instanceof ProjectileSource) {\n return this.projectileSource;\n } else if (this.shootingEntity != null && this.shootingEntity instanceof ProjectileSource) {\n return (ProjectileSource) this.shooting...
"public View getView(int position, View convertView, ViewGroup parent) {\n if (position == 0) {\n topic = ((MockReply) items.get(position)).getTopic();\n initializeTopicBody(topic);\n return body;\n }\n final ViewHolder viewHolder;\n if (convertView == null || convertView.getTag() == nu...
"public void tearUp() throws ServiceStartException {\n Injector injector = Guice.createInjector(new ServiceModule(), new MySQL5DAOModule(), new IDFactoryModule(), new AbstractModule() {\n\n protected void configure() {\n bind(WorldService.class).to(WorldServiceImpl.class).in(Scopes.SINGLETON);\n ...
"public void createStocksMovesFromSalesOrder(SalesOrder salesOrder) throws AxelorException {\n if (salesOrder.getSalesOrderLineList() != null && salesOrder.getCompany() != null) {\n Company company = salesOrder.getCompany();\n Location toLocation = Location.all().filter(\"String_Node_Str\", company, IL...
"public float getLineMax(int line) {\n float margin = getParagraphLeadingMargin(line);\n float signedExtent = getLineExtent(line, false);\n return margin + (signedExtent >= 0 ? signedExtent : -signedExtent);\n}\n"
"public void test_regression_132938() throws DesignFileException, SemanticException, IOException {\n String report = getTempFolder() + \"String_Node_Str\" + INPUT_FOLDER + \"String_Node_Str\" + INPUT;\n String libB = getTempFolder() + \"String_Node_Str\" + INPUT_FOLDER + \"String_Node_Str\" + LIBRARY_B;\n sess...
"public boolean upgrade(final String clusterName, StatusUpdater statusUpdator) {\n logger.info(\"String_Node_Str\" + clusterName + \"String_Node_Str\");\n this.serverVersion = clusterEntityMgr.getServerVersion();\n List<NodeEntity> nodes = getNodes(clusterName);\n List<Callable<Void>> storeNodeProcedures = ...
"private PreparedStatement createLocationsStatement(LocationsRequest request, Connection conn) throws Exception {\n Geometry geom = request.getGeometry();\n Envelope bbox = request.getBBox();\n byte[] geomBytes = geometryToWKB(geom, bbox);\n QueryColumnsInfo ci = COLUMNS_INFO[request.getDetails()];\n Str...
"public static Test suite() {\n return buildTestSuite(DownloadTest.class, \"String_Node_Str\");\n}\n"
"public View getView(int position, View convertView, ViewGroup parent) {\n Release release = mReleases.get(position);\n View view = convertView;\n if (view == null) {\n view = mInflater.inflate(mLayoutId, null);\n }\n TextView environmentName = (TextView) view.findViewById(R.id.environment_name);\...
"private Set<String> traverse(String stage, Set<String> alreadySeen, Set<String> stopNodes) {\n if (!alreadySeen.add(stage)) {\n return alreadySeen;\n }\n Collection<String> outputs = connections.get(stage);\n if (outputs.isEmpty()) {\n return alreadySeen;\n }\n for (String output : outp...
"public static void writeLocation(Context context, String recordId) {\n if (context == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String mOutputPath = Environment.getExternalStorageDirectory().getPath();\n mOutputPath += context.getString(R.string.system_path_binary_data...
"private int declareVarsForObjLitValues(Name objlitName, String alias, Node objlit, Node varNode, Node nameToAddAfter, Node varParent) {\n int numVars = 0;\n int arbitraryNameCounter = 0;\n boolean discardKeys = !objlitName.shouldKeepKeys();\n for (Node key = objlit.getFirstChild(), nextKey; key != null; ke...
"protected Actor _getNextActorToFire() throws IllegalActionException {\n if (_eventQueue == null) {\n throw new IllegalActionException(\"String_Node_Str\");\n }\n Actor actorToFire = null;\n DEEvent lastFoundEvent = null;\n DEEvent nextEvent = null;\n while (!_stopRequested) {\n if (_sto...
"private void countURI(HashMap<String, Integer> map, QName qname) {\n if (qname == null)\n return;\n String uri = qname.getNamespaceURI();\n if (map.containsKey(uri)) {\n map.put(uri, map.get(uri) + 1);\n } else {\n map.put(uri, 1);\n }\n}\n"
"public static String getReferencedMeasure(String expr) {\n if (expr == null)\n return Collections.EMPTY_SET;\n try {\n Context cx = Context.enter();\n CompilerEnvirons ce = new CompilerEnvirons();\n Parser p = new Parser(ce, cx.getErrorReporter());\n ScriptOrFnNode tree = p.par...
"private static void runEquivalent(ArrayList<SAFA<CharPred, Character>> safaRHS, ArrayList<SFA<CharPred, Character>> sfaLHS, ArrayList<SFA<CharPred, Character>> sfaRHS, long timeOut) {\n try {\n long start = System.currentTimeMillis();\n Triple<SAFA<CharPred, Character>, PositiveBooleanExpression, Posi...
"public void open() {\n IChatRoomContainer container = view.getRootChatRoomContainer();\n final IChatRoomManager manager = (IChatRoomManager) container.getAdapter(IChatRoomManager.class);\n view.joinRoom(manager.getChatRoomInfo(channel), \"String_Node_Str\");\n}\n"
"public boolean createIfNotFoundError(DBException ex) throws DBException {\n if (ex.getErrorCode() == DBConstants.FILE_NOT_FOUND)\n if (this.getRecord() != null)\n if ((this.getRecord().getOpenMode() & DBConstants.OPEN_DONT_CREATE) == 0) {\n boolean loadInitialData = false;\n ...
"private void setFromPropertyStore(PropertyStore store, CoverageOptionManager coverageOptionManager) throws OseeCoreException {\n String methodTypeString = store.get(\"String_Node_Str\");\n CoverageOption coverageMethod = coverageOptionManager.get(methodTypeString);\n Conditions.checkNotNull(coverageMethod, St...
"public static File downloadGADMShapeFile(String tmpFolder) throws IOException, ZipException, InterruptedException {\n String baseFileName = \"String_Node_Str\";\n String zipFileName = baseFileName + \"String_Node_Str\";\n String gadmURL = \"String_Node_Str\" + zipFileName;\n Collection<File> tmpFileList;\n...
"public void initPanel() {\n GUIConfigEntry ce;\n String unrarcmd = JDUtilities.getConfiguration().getStringProperty(\"String_Node_Str\");\n if (unrarcmd == null) {\n unrarcmd = new jdUnrar(JDUtilities.getConfiguration().getStringProperty(Configuration.PARAM_DOWNLOAD_DIRECTORY)).getUnrarCommand();\n ...
"public int getOptimalEncodingMessageSize() {\n if (optimalEncodingMessageSize != 0)\n return optimalEncodingMessageSize;\n maybeParseTransactions();\n if (optimalEncodingMessageSize != 0)\n return optimalEncodingMessageSize;\n optimalEncodingMessageSize = bitcoinSerialize().length;\n retur...
"public static Matches convertPointMatchListToMatches(final List<PointMatch> pointMatchList) {\n final Matches matches;\n final int pointMatchCount = pointMatchList.size();\n if (pointMatchCount > 0) {\n PointMatch pointMatch = pointMatchList.get(0);\n Point p1 = pointMatch.getP1();\n doub...
"private CommandLineParser populate(ShellContext shellContext, String line, final Map<String, InputComponent<?, ?>> allInputs, Map<String, InputComponent<?, ?>> lastPage) throws Exception {\n WizardCommandController controller = getController();\n Map<String, InputComponent<?, ?>> pageInputs = new LinkedHashMap<>...
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (TreeSelection) page.getTreeViewer().getSelection();\n XSDComponent xSDCom = null;\n if (selection.getFirstElement() instanceof Element) {\n TreePath tPath = ((TreeSelection) selection).getPaths()[0];\n ...
"public double getLogMarginalProbability() {\n return Double.NaN;\n}\n"
"protected IStatus run(IProgressMonitor monitor) {\n if (selectedNode != null) {\n generatedCode = \"String_Node_Str\";\n boolean isJoblet = AbstractProcessProvider.isExtensionProcessForJoblet(selectedNode.getProcess());\n if (!isJoblet && PluginChecker.isJobLetPluginLoaded()) {\n IJo...
"public void readSonargraphReport(final Project project, final FileSystem fileSystem, final Settings settings) {\n if (project == null) {\n LOG.error(\"String_Node_Str\");\n return;\n }\n final String reportFileName = determineReportFileName(fileSystem, settings);\n LOG.info(\"String_Node_Str\...
"private GUIDay analyseDay(DateTime date, List<Lesson> lessons) {\n GUIDay day = new GUIDay();\n day.setDate(date);\n boolean dispZerolesson = settings.isDisplayZerothLesson();\n timegridForDateTimeDay = new ArrayList<TimegridUnit>();\n if (timegrid.getTimegridForDateTimeDay(date.getWeekDay()) != null) {...
"public void upgrade() throws InterruptedException, IOException, DatasetManagementException {\n while (!storeInitialized.get()) {\n TimeUnit.SECONDS.sleep(10);\n }\n if (isUpgradeComplete()) {\n LOG.info(\"String_Node_Str\", NAME);\n return;\n }\n final AtomicInteger maxNumberUpdateR...
"public void handleEvent(Object event) {\n super.handleEvent(event);\n if (event == Events.PLANETOID_DESTROYED && !isMissionStartPlanetoidSplitting) {\n game.runNext.add(game.mission::spawnPlanetoid);\n }\n}\n"
"private void addNodesToGraph(URI skosResource, URI otherResource, URI skosRelation) {\n graph.addVertex(skosResource);\n if (otherResource != null) {\n graph.addVertex(otherResource);\n graph.addEdge(skosResource, otherResource, new NamedEdge(skosRelation.stringValue()));\n }\n}\n"
"protected InformationLossRCE evaluateInternal(Node node, IHashGroupify g) {\n boolean anonymous = g.isAnonymous();\n int[] transformation = node.getTransformation();\n int dimensions = transformation.length;\n double[] scores = new double[dimensions];\n HashGroupifyEntry m = g.getFirstEntry();\n whil...
"public final boolean pushMaterial(ShortPoint2D position, EMaterialType materialType) {\n return getPartitionObject(position.getX(), position.getY()).addOffer(position, materialType);\n}\n"
"public Collection<V> remove(Object key) {\n int threadId = (int) Thread.currentThread().getId();\n TxnMultiMapRemoveAllRequest request = new TxnMultiMapRemoveAllRequest(getName(), toData(key), threadId);\n PortableCollection portableCollection = invoke(request);\n final Collection<Data> collection = portab...
"protected void doImportItem(IProgressMonitor monitor, ResourcesManager resManager, ImportItem selectedImportItem, boolean overwrite, IPath destinationPath, Set<String> overwriteDeletedItems, Set<String> idDeletedBeforeImport) {\n final Item item = selectedImportItem.getItem();\n if (item != null) {\n fina...
"public void closeInvestor(CloseInvestor_1880 action) {\n String[] cashOptions = new String[2];\n cashOptions[0] = LocalText.getText(\"String_Node_Str\", action.getInvestor().getCash(), action.getInvestor().getLinkedCompany().getId());\n cashOptions[1] = LocalText.getText(\"String_Node_Str\", (action.getInvest...
"private static void transformSubjectPI(CompoundTerm subject, Term predicate, Memory memory) {\n TruthValue truth = memory.currentTask.getSentence().getTruth();\n BudgetValue budget;\n Inheritance inheritance;\n Term newSubj, newPred;\n if (subject instanceof Product) {\n Product product = (Produc...
"protected void exportKarOsgiBundles() throws InvocationTargetException, InterruptedException {\n String routerBundlePath = getTempDir() + getNodeBundleName(routeNode, version) + JAR_SUFFIX;\n if (processRoute(routerBundlePath, routeNode, version)) {\n exportOsgiBundle(routeNode, routerBundlePath, version,...
"private boolean checkClaimConfidence(Transaction transaction, TransactionConfidence conf, Project project) {\n executor.checkOnThread();\n switch(conf.getConfidenceType()) {\n case PENDING:\n int seenBy = conf.numBroadcastPeers();\n int numConnected = regularP2P.getConnectedPeers().s...
"public void requireSslOnCookies() {\n Http.Cookie mockCookie = mock(Http.Cookie.class);\n doReturn(\"String_Node_Str\").when(mockCookie).value();\n Http.Request mockRequest = mock(Http.Request.class);\n doReturn(mockCookie).when(mockRequest).cookie(BridgeConstants.SESSION_TOKEN_HEADER);\n Http.Context c...
"public DependencyTree buildDependency(ParentBehavior component) throws DependencyBuilderException {\n String alias = null;\n if (component instanceof Application) {\n alias = ((Application) component).getId();\n } else if (component instanceof Group) {\n alias = ((Group) component).getAlias();\n...
"public void shutdown() throws RuntimeException {\n if (persistenceManagerFactory != null)\n try {\n persistenceManagerFactory.close();\n } catch (Exception e) {\n }\n}\n"
"public void requestDraw() {\n if (parent.looping) {\n ((GLSurfaceView) parent.surfaceView).requestRender();\n }\n}\n"
"public void addZoom(Zoom zoom, double time, MotionParams motion) {\n zooms.put(time, new MotionAndObject<InterpolatableZoom>(new InterpolatableZoom(zoom), new Motion(motion)));\n dirty = true;\n}\n"
"protected void eagerlyLoadDataCollection() {\n if (getDataCollection() == null || getDataCollection() instanceof ProxyCollection) {\n EntityMetadata m = KunderaMetadataManager.getEntityMetadata(getOwner().getClass());\n getPersistenceDelegator().getClient(m).getReader().recursivelyFindEntities(getOwne...
"public boolean apply(Game game, Ability source) {\n Permanent creature = game.getPermanent(targetPointer.getFirst(game, source));\n Permanent permanent = game.getPermanent(source.getSourceId());\n Permanent targetCreature = game.getPermanent(targetPointer.getFirst(game, source));\n if (targetCreature == nu...
"public void initFlowGraph(GeomPointsTo ptAnalyzer) {\n int k;\n int n_legal_cons;\n int nf1, nf2;\n int code;\n IVarAbstraction my_lhs, my_rhs;\n n_legal_cons = 0;\n for (PlainConstraint cons : ptAnalyzer.constraints) {\n if (!cons.isActive)\n continue;\n my_lhs = cons.get...
"public void addLineBreak(ModelNode startNode, int breakType) {\n RLine line = this.currentLine;\n RenderState rs = startNode.getRenderState();\n if (line == null) {\n Insets insets = this.paddingInsets;\n this.addLine(startNode, null, insets.top);\n line = this.currentLine;\n }\n if...
"public ChannelFuture answer(HttpResponse output, MessageEvent e, final boolean close, final StartStopListenerDelegate startStopListenerDelegate) throws IOException {\n ChannelFuture future = null;\n long CLoverride = -2;\n StringBuilder response = new StringBuilder();\n DLNAResource dlna = null;\n boole...
"private void waitForReportingTasks() {\n if (runInfo.getDuration().getPeriodType() == PeriodType.TIME) {\n long lastTasks = 0;\n long tasks = getTasksInQueue();\n reportingTasks.shutdown();\n while (tasks > 0 && tasks != lastTasks) {\n lastTasks = tasks;\n try {\n ...
"public ResponseEntity queryNameserver(String nsName, HttpServletRequest request) throws DecodeException {\n nsName = queryParser.getLastSplitInURI(request);\n String decodeNS = nsName;\n String punyNSName = decodeNS;\n decodeNS = DomainUtil.urlDecodeAndReplaceAsciiToLowercase(nsName);\n if (!DomainUtil....
"public ArrayList<Integer> createRasterLines() {\n ArrayList<Integer> gridLines = new ArrayList<Integer>();\n for (int i = 0; i < horizontalRasterCT / scale; i++) {\n gridLines.add((Integer) (i * RASTER_HORIZONTAL_WIDTH - RASTER_HORIZONTAL_WIDTH / 2 + mOffsetX % RASTER_HORIZONTAL_WIDTH - mOffsetX));\n }...
"public void setOrientation(Vector3f orientation) {\n this.orientation.set(orientation);\n}\n"
"public GlowWorld createWorld(WorldCreator creator) {\n GlowWorld world = getWorld(creator.name());\n if (world != null) {\n return world;\n }\n if (creator.generator() == null) {\n creator.generator(getGenerator(creator.name(), creator.environment()));\n }\n world = new GlowWorld(this, ...
"public void widgetSelected(SelectionEvent e) {\n try {\n Attribute<?> attribute = getSelectedAttribute();\n attribute.delete();\n editor.onDirtied();\n notifyModifyAttribuesListeners();\n tableViewer.refresh();\n } catch (OseeCoreException ex) {\n OseeLog.log(Activator.c...
"public void start() throws Exception {\n if (authServer != null) {\n try {\n LOG.info(\"String_Node_Str\");\n SecurityUtil.enableKerberosLogin(configuration);\n co.cask.cdap.common.service.Services.startAndWait(zkClientService, configuration.getLong(Constants.Zookeeper.CLIENT...
"public void refreshView() {\n if (adapter != null) {\n adapter.notifyDataSetChanged();\n }\n}\n"
"public void addMapping(ITypeVariable typeVar, IType type) {\n if (type == Types.UNKNOWN) {\n return;\n }\n int index = typeVar.getIndex();\n if (!this.isMethodTypeVariable(typeVar)) {\n return;\n }\n if (index < this.genericCount) {\n this.generics[index] = this.generics[index].c...
"private SdpEndPoint buildAndConnectSdpEndPoint(MediaElement sourceElement, MediaElement[] sinkElements) {\n getLogger().info(\"String_Node_Str\");\n if (sinkElements != null && sinkElements.length > 0) {\n for (MediaElement e : sinkElements) {\n Assert.notNull(e, \"String_Node_Str\", 10023);\n ...
"private boolean addDefineRowToTable(XhtmlNode t, ConceptDefinitionComponent c, int i, boolean comment, boolean deprecated, Map<ConceptMap, String> maps) {\n boolean hasExtensions = false;\n XhtmlNode tr = t.addTag(\"String_Node_Str\");\n XhtmlNode td = tr.addTag(\"String_Node_Str\");\n String s = Utilities...
"public void actionPerformed(ActionEvent event) {\n String command = event.getActionCommand();\n if (command.equals(\"String_Node_Str\")) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n executeMethodInsertedArgumentList.addElement(executeMethodArgument.getT...
"private void setEndAddressForIp6(byte[] sections) {\n byte[] highSecs = new byte[LENGTH_OF_V6_SECTIONS / 2];\n byte[] lowSecs = new byte[LENGTH_OF_V6_SECTIONS / 2];\n byte[] highBytes = new byte[LENGTH_OF_V6_BYTES / 2];\n byte[] lowBytes = new byte[LENGTH_OF_V6_BYTES / 2];\n byte[] byteEnd = { MASK_0F, ...
"private boolean dropTargetValidate(DropTargetEvent event) {\n if (event.item == null)\n return false;\n Object obj = event.item.getData();\n if (obj instanceof TreeObject) {\n TreeObject treeObj = (TreeObject) obj;\n if (treeObj.getParent() == null)\n System.out.println(treeObj...
"public void testClusterStart() {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n this.buildReqRespWithoutRespBody(\"String_Node_Str\", HttpMethod.PUT, HttpStatus.NO_CONTENT, \"String_Node_Str\");\n clusterCommands.startCluster(\"String_Node_Str\");\n CookieCache.clear();\n}\n"
"private void initMapTree() {\n setMapTree(new JMapViewerTree(\"String_Node_Str\"));\n getMapTree().getViewer().setTileSource(new BingAerialTileSource());\n getMapTree().setSize(getWidth(), getHeight());\n getMapTree().getViewer().setSize(getWidth(), getHeight());\n getMapTree().getViewer().setTileLoader...
"public final boolean levelCheck(int itr) {\n if (this.levelChecked >= itr)\n return this.levelCorrect;\n this.levelChecked = itr;\n this.levelCorrect = true;\n if (!this.body.levelCheck(itr)) {\n this.levelCorrect = false;\n }\n for (int i = 0; i < this.substs.length; i++) {\n if...
"public boolean tick(float elapsed) {\n long nnow = ScopeUtil.resolveTimestamp(this, Scope.NOW).value;\n float telapsed = (nnow - _lastTickTimestamp) / 1000f;\n _lastTickTimestamp = nnow;\n return _impl.tick(elapsed);\n}\n"
"protected void done() {\n if (!super.isCancelled()) {\n invokeAndWaitOnEDT(new Runnable() {\n public void run() {\n JLInformation.setText(\"String_Node_Str\");\n }\n });\n }\n}\n"
"protected static boolean isCompatibleCategoryMethod(MethodNode method, ClassNode firstArgumentType) {\n if (method.isStatic()) {\n Parameter[] paramters = method.getParameters();\n if (paramters != null && paramters.length > 0) {\n ClassNode parameterType = paramters[0].getType();\n ...
"public void onSaveInstanceState(Bundle state) {\n super.onSaveInstanceState(state);\n if (!sv.isIconified()) {\n state.putCharSequence(STATE_QUERY, sv.getQuery());\n }\n state.putStringArrayList(STATE_MODEL, words);\n}\n"
"private void processAnnotatedElements(Set<? extends Element> elements) throws IOException {\n logger.info(\"String_Node_Str\" + elements.size() + \"String_Node_Str\");\n URI uri = filer.getResource(StandardLocation.SOURCE_OUTPUT, \"String_Node_Str\", \"String_Node_Str\").toUri();\n File file = new File(uri);\...
"public void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n bundle.putBundle(PRESENTER_STATE_KEY, savePresenter());\n}\n"
"public void testCallCountOneServiceNoOperationOneConsumer() throws ServiceException {\n long duration = 60 * 6;\n int aggregationPeriod = 20;\n int expectedSum = 9;\n CriteriaInfo criteriaInfo = new CriteriaInfo();\n criteriaInfo.setMetricName(\"String_Node_Str\");\n criteriaInfo.setServiceName(srvcA...
"private int bootstrapSecureAdminLocally() {\n final ActionReport report = ctx.getActionReport();\n try {\n final SecureAdminBootstrapHelper bootHelper = SecureAdminBootstrapHelper.getLocalHelper(env.getInstanceRoot(), getLocalInstanceDir());\n bootHelper.bootstrapInstance();\n bootHelper.clo...
"public int updateAdapterData(String from, PostModel[] posts) {\n Integer lastPostNumber;\n try {\n lastPostNumber = !StringUtils.isEmpty(from) ? Integer.valueOf(from) : 0;\n } catch (NumberFormatException e) {\n lastPostNumber = 0;\n }\n ArrayList<PostModel> newPosts = new ArrayList<PostMo...
"public void onSuccess(ListResult<ContactDTO> result) {\n final HashMap<String, Object> properties = buildPropertyMap(contactModelDTO, firstName, familyName, organizationName, mainOrgUnit, secondaryOrgUnits);\n if (result == null || result.getSize() == 0) {\n createEntity(properties, listComboBox);\n ...
"protected Node selectNextNode(Collection<Node> candidates) {\n Random r = new Random();\n int next = r.nextInt(candidates.size());\n next = next % candidates.size();\n return candidates.toArray(new Node[0])[next];\n}\n"
"private void processAttribute(String targetNamespace, String defaultNamespace, SDOType owningType, Attribute attribute, boolean isGlobal) {\n SimpleType simpleType = attribute.getSimpleType();\n if (simpleType != null) {\n SDOType propertyType = processSimpleType(targetNamespace, defaultNamespace, attribu...
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n final int width = getWidth();\n final int height = getHeight();\n radius = Math.min(width, height) * 0.5f;\n centerY = radius;\n startX = radius;\n endX = wid...
"protected boolean useLocalValuesForLexicalVars() {\n return !NEW_LEXICAL;\n}\n"
"public void run() {\n try {\n WorkbenchClipboard.getWorkbenchClipboard().conceptsReset();\n WorkbenchClipboard.getWorkbenchClipboard().particlesReset();\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n if (selection.getFirstElement() instan...
"private void writeMetaOvaForTemplate(String installFullPath, String ovfFilename, String vmdkFilename, String templateName, long diskSize) throws Exception {\n BufferedWriter out = null;\n try {\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(installFullPath + \"String_Node_Str\" + t...
"public void onStart() {\n super.onStart();\n PackageInfo pkgInfo;\n try {\n mAppInfo = mPm.getApplicationInfo(mAppInfo.packageName, PackageManager.GET_UNINSTALLED_PACKAGES);\n pkgInfo = mPm.getPackageInfo(mAppInfo.packageName, PackageManager.GET_UNINSTALLED_PACKAGES);\n } catch (NameNotFoundE...
"public final void enableTable(String table) throws BlurException, TException {\n try {\n String cluster = _clusterStatus.getCluster(false, table);\n EnableTable.enableTable(_zookeeper, cluster, table);\n } catch (Exception e) {\n LOG.error(\"String_Node_Str\", e, table);\n throw new B...
"public List<Member> current() {\n i1.currentToArray(members, 0);\n i2.currentToArray(members, arity1);\n return Util.flatList(members);\n}\n"
"public PartitionContext getNextScaleDownPartitionContext(PartitionContext[] partitionContexts) {\n if (partitionContexts == null) {\n return null;\n }\n int selectedIndex = 0;\n int highestInstanceCount = partitionContexts[0].getNonTerminatedMemberCount();\n for (int partitionIndex = partitionCon...
"public float getWidth() {\n if (bounds != null && bounds.getWidth() > 0) {\n return bounds.getWidth();\n return 200;\n}\n"
"public LowLevelHttpResponse execute() throws IOException {\n HttpURLConnection connection = this.connection;\n HttpContent content = this.content;\n if (content != null) {\n connection.setDoOutput(true);\n addHeader(\"String_Node_Str\", content.getType());\n String contentEncoding = conte...
"public void startCell(ICellContent cell) {\n rowFilledFlag = true;\n context.startCell();\n int columnId = cell.getColumn();\n List<SpanInfo> spans = context.getSpans(columnId);\n if (spans != null) {\n for (int i = 0; i < spans.size(); i++) {\n wordWriter.writeSpanCell(spans.get(i));\...
"public boolean startElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord, Attributes atts) {\n XMLField xmlField = (XMLField) xmlCompositeDirectCollectionMapping.getField();\n if (xmlField.getLastXPathFragment().nameIsText()) {\n String type = atts.getValue(XMLConstants.SCHEMA_INSTANCE_URL...
"private boolean startDependency(List<ApplicationContext> applicationContexts) throws TopologyInConsistentException {\n if (applicationContexts == null) {\n log.info(\"String_Node_Str\" + this.id);\n return false;\n }\n for (ApplicationContext context : applicationContexts) {\n if (log.isD...
"public static void update(Context context, boolean updateDate) {\n Log.d(\"String_Node_Str\", \"String_Node_Str\");\n Calendar calendar = Utils.makeCalendarFromDate(new Date());\n CalendarTypeEnum mainCalendar = Utils.getMainCalendar();\n AbstractDate date = Utils.getTodayOfCalendar(mainCalendar);\n lon...
"private static void checkDurationValue(int hour, int minute) {\n if (hour < 0 || hour > 99) {\n throw new IllegalArgumentException(\"String_Node_Str\" + hour);\n }\n if (minute < 0 || minute > 59) {\n throw new IllegalArgumentException(\"String_Node_Str\" + minute);\n }\n}\n"
"public StreamMds get() {\n try {\n Table mdsTable = DatasetsUtil.getOrCreateDataset(dsFramework, STREAM_META_TABLE, \"String_Node_Str\", DatasetProperties.EMPTY, DatasetDefinition.NO_ARGUMENTS, null);\n return new StreamMds(new MetadataStoreDataset(mdsTable));\n } catch (Exception e) {\n LOG...