content
stringlengths
40
137k
"protected CheckboxTreeViewer doCreateTreeViewer(Composite parent, int style) {\n IRepositoryViewObject[] categoryViewObjects = RepositoryResourceUtil.getCategoryViewObjects();\n treeViewer = new ContainerCheckedTreeViewer(parent);\n treeViewer.setLabelProvider(new MDMRepositoryLabelProvider());\n treeViewe...
"public static Boolean valueOf(String s) {\n return valueOf(parseBoolean(s));\n}\n"
"public static void doJobObjectsCleanup(Job job, ModelService model, IndexService index) {\n if (RodaCoreFactory.getNodeType() == NodeType.MASTER) {\n try {\n index.commit(IndexedAIP.class);\n Filter filter = new Filter();\n filter.add(new SimpleFilterParameter(RodaConstants.I...
"public com.google.gwt.core.ext.ConfigurationProperty getConfigurationProperty(String propertyName) throws BadPropertyValueException {\n for (final ConfigurationProperty prop : configProps) {\n if (prop.getName().equals(propertyName)) {\n return new DefaultConfigurationProperty(prop.getName(), prop...
"public static boolean validateDimensionName(String name) {\n DataRequestSession session = null;\n ICubeQueryUtil cubeQueryUtil = null;\n try {\n session = DataRequestSession.newSession(new DataSessionContext(DataSessionContext.MODE_DIRECT_PRESENTATION));\n cubeQueryUtil = session.getCubeQueryUti...
"public void publish(final String channelName, final ContentKey key) {\n final MessageListener<String> listener = messageListenerMap.get(channelName);\n if (listener == null) {\n return;\n }\n new Thread(new Runnable() {\n public void run() {\n Message<String> message = new Message<...
"private void doUpdateXLocSetFromFlease(StageRequest m) {\n final ASCIIString cellId = (ASCIIString) m.getArgs()[0];\n final int version = (Integer) m.getArgs()[1];\n final String fileId = ReplicaUpdatePolicy.cellToFileId(cellId);\n XLocSetVersionState state;\n try {\n state = layout.getXLocSetVer...
"public void initGui() {\n super.initGui();\n if (drawPlayerInv) {\n this.guiTop = (this.height - this.ySize) / 2;\n }\n initialize();\n}\n"
"private int calculateVisibleType() {\n if (mUserExpanding) {\n int height = !mIsChildInGroup || isGroupExpanded() || mContainingNotification.isExpanded() ? mContainingNotification.getMaxContentHeight() : mContainingNotification.getShowingLayout().getMinHeight();\n int expandedVisualType = getVisualTyp...
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (element instanceof DBConnectionRepNode) {\n DBConnectionRepNode node = (DBConnectionRepNode) element;\n Integer selectIndex = metadataFormPage.getConnCombo().getSelectionIndex();\n Integer connectionIndex = null;...
"public String getEngine() {\n return this.getEngineType();\n}\n"
"private JIntLiteral getSeedTypeLiteralFor(JType type) {\n if (type instanceof JPrimitiveType) {\n if (type == program.getTypePrimitiveLong()) {\n return program.getLiteralInt(3);\n } else if (type == program.getTypePrimitiveBoolean()) {\n return program.getLiteralInt(2);\n ...
"public void check(MarkerList markers, IContext context) {\n if (this.type != null) {\n this.type.check(markers, context);\n if (this.annotations != null) {\n this.annotations.check(markers, context, this.getElementType());\n }\n}\n"
"public void testAttributionTwoTypesFail() throws FileNotFoundException, IOException {\n try {\n Configuration configuration = configurationLoader(\"String_Node_Str\");\n fail();\n } catch (final Exception e) {\n }\n}\n"
"public int updateIgnoreNull(final Object obj) {\n EntityOperator opt = _optBy(obj);\n opt.addUpdateForIgnoreNull(opt.entity, obj, FieldFilter.get(opt.entity.getType()));\n opt.exec();\n return opt.getUpdateCount();\n}\n"
"protected ResultSetWrapper mapToChartResultSet(IDataRowExpressionEvaluator idre, Chart cm) throws ChartException {\n ResultSetWrapper rsw = null;\n GroupingLookupHelper lhmLookup = new GroupingLookupHelper(cm, iae, rtc.getULocale());\n List liResultSet = null;\n List co = null;\n if (idre instanceof Abs...
"public static void handleLoad(Main main, List<List<Integer>> chunks) {\n World world = Bukkit.getServer().getWorld(\"String_Node_Str\");\n WorldServer NMSServer = ((CraftWorld) world).getHandle();\n RegionFileCache.a();\n for (List<Number> chunkIdx : chunks) {\n Chunk chunk = world.getChunkAt(chunkI...
"public Integer palcluster(ISet set) {\n int[] clusterid = new int[iNrSamples];\n int[] number = new int[iNrSamples];\n Node[] result = new Node[iNrSamples - 1];\n for (int j = 0; j < iNrSamples; j++) {\n number[j] = 1;\n clusterid[j] = j;\n }\n int j;\n ClosestPair pair = null;\n ...
"public void run() {\n try {\n if (RouterService.acceptedIncomingConnection() && RouterService.isSupernode()) {\n Endpoint e = new Endpoint(RouterService.getAddress(), RouterService.getPort());\n gWebCache.sendUpdatesAsync(e);\n }\n } catch (Throwable t) {\n RouterServic...
"private ResourceWrapper fetchResource(BaseWrapper subject) {\n if (resolver == null)\n return null;\n String url = subject.getChildByName(\"String_Node_Str\").value().toString();\n ResourceWithReference rr = resolver.resolve(url);\n return rr == null ? null : rr.resource;\n}\n"
"private List<Consensus<Agent>> getDefaultSeedList() throws IOException {\n List<Consensus<Agent>> seedList = new ArrayList<>();\n if (consensusManager.getSeedNodeList() == null) {\n return seedList;\n }\n for (String address : consensusManager.getSeedNodeList()) {\n Consensus<Agent> member = ...
"public void canAskToDoALotOfThingsToTheFluentClientOperationAndNothingShouldBeDone() throws SoundTransformException {\n FluentClientOperation.prepare().withAnObserver().andAfterStart().withAPack(null, new ByteArrayInputStream(new byte[0])).withAPack(null, \"String_Node_Str\").withAPack(null, null, null, 0).withAudi...
"public void readData(DataInput in) throws IOException {\n partitionId = in.readInt();\n boolean hasOwner = in.readBoolean();\n if (hasOwner) {\n owner = new MemberImpl();\n owner.readData(in);\n }\n}\n"
"boolean submitEndAnnotation(String annotationName, Reporter<zipkin.Span> reporter) {\n Span span = spanAndEndpoint().span();\n if (span == null) {\n return false;\n }\n Long startTimestamp;\n Long startTick;\n synchronized (span) {\n startTimestamp = span.getTimestamp();\n startT...
"public boolean addPost(String itemUrl, String description, String extended, String[] tags, boolean shared) throws java.io.IOException {\n String rpc = mAPI + \"String_Node_Str\";\n StringBuffer rpcBuf = new StringBuffer();\n StringBuffer tagsBuf = new StringBuffer();\n Element tag;\n URL u = null;\n ...
"public void convert(String rendered, Consumer<String>... nextStep) {\n threadService.runActionLater(() -> {\n this.rendered = rendered;\n String url = String.format(slideUrl, controller.getPort(), directoryService.interPath());\n if (controller.rightShowerHider.getShowing() != slidePane || !url...
"public Collection<Region> getMonitoredRegions() {\n return MonitoringStatus.getInstanceForApplication(mContext).regions();\n}\n"
"protected PlayerInfo processEventInfo(Object o) throws Exception {\n Object[] values = ((Object[]) o);\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\", Arrays.toString(values));\n String event = (String) values[0];\n PlayerInfo playerInfo = new PlayerInfo(event);\n playerInfo.setName(...
"public void startCell(ICellContent cell) {\n if (isHidden()) {\n return;\n }\n logger.log(Level.FINE, \"String_Node_Str\");\n if (cell != null) {\n int colSpan = getNewColSpan(cell);\n if (colSpan < 1) {\n push(true);\n return;\n }\n push(false);\n ...
"private void parseMidiEvent(int header, byte event) {\n int midiEvent = event & 0xff;\n int timeToWait;\n if (midiState == MIDI_STATE_TIMESTAMP) {\n if ((midiEvent & 0x80) == 0) {\n midiState = MIDI_STATE_WAIT;\n }\n }\n if (midiState == MIDI_STATE_TIMESTAMP) {\n timestam...
"public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) {\n if (msg.startsWith(\"String_Node_Str\")) {\n msg = msg.substring(11);\n System.err.println(String.format(\"String_Node_Str\", Version.get().getTitle(),...
"public void removeReplica(ServiceUUID osd) throws Exception {\n RPCResponse r = mrcClient.xtreemfs_replica_remove(mrcAddress, credentials, fileId, osd.toString());\n r.get();\n r.freeBuffers();\n forceFileCredentialsUpdate(translateMode(\"String_Node_Str\"));\n}\n"
"protected static void clearTempFiles() {\n File file = new File(documentFolder);\n if (file != null && file.isDirectory()) {\n String[] children = file.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(PREFIX_SUB_DOC_FOLDER))\n deleteDir(ne...
"public ClassDescriptor buildWrappedSpatialDescriptor() {\n RelationalDescriptor descriptor = new RelationalDescriptor();\n descriptor.setJavaClass(org.eclipse.persistence.testing.models.spatial.jgeometry.wrapped.WrappedSpatial.class);\n descriptor.addTableName(\"String_Node_Str\");\n descriptor.addPrimaryK...
"public void setSequence(ActionRequest request, ActionResponse response) throws AxelorException {\n SaleOrder saleOrder = request.getContext().asType(SaleOrder.class);\n if (saleOrder != null && saleOrder.getCompany() != null) {\n SaleOrderService saleOrderService = Beans.get(SaleOrderService.class);\n ...
"protected void onEvent(Event event) {\n ClusterMaintenanceModeEvent clusterMaitenanceEvent = null;\n try {\n log.info(\"String_Node_Str\" + event);\n clusterMaitenanceEvent = (ClusterMaintenanceModeEvent) event;\n TopologyManager.acquireReadLockForCluster(clusterMaitenanceEvent.getServiceNam...
"public void modifyText(ModifyEvent e) {\n saveExportPath(ARCHIVE_PATH, archivePathField.getText());\n}\n"
"public void webHookEvent(NAWebhookCameraEvent event) {\n if (event.getAppType() == NAWebhookCameraEvent.AppTypeEnum.CAMERA) {\n Set<AbstractNetatmoThingHandler> modules = new HashSet<>();\n if (WELCOME_EVENTS.contains(event.getEventType()) || PRESENCE_EVENTS.contains(event.getEventType())) {\n ...
"public boolean sendResponses(Response[] responses, QueryRequest query, ReplyHandler handler) {\n if ((responses == null) || ((responses.length < 1)))\n return false;\n if (query.desiresOutOfBandReplies() && !isConnectedTo(query, handler) && RouterService.canReceiveSolicited() && RouterService.getUploadMan...
"public int calcBinarySize(final IColumnAnalizeResult analizeResult) {\n StringColumnAnalizeResult stringAnalizeResult = (StringColumnAnalizeResult) analizeResult;\n int dicBinarySize = (analizeResult.getColumnSize() * PrimitiveByteLength.INT_LENGTH) + stringAnalizeResult.getTotalUtf8ByteSize();\n return (Prim...
"public static boolean matchesSuffixPattern(String path, String suffixPattern) {\n int separators = countMatches(suffixPattern, \"String_Node_Str\") + 1;\n int separatorIndex = path.length();\n while (separators > 0) {\n separatorIndex = path.lastIndexOf('/', separatorIndex - 1);\n separators--;\...
"protected void _addCurrentDateTest() {\n ExpressionBuilder builder = new ExpressionBuilder();\n Expression expression = builder.get(\"String_Node_Str\").get(\"String_Node_Str\").lessThan(builder.currentDateDate());\n ReadAllExpressionTest test = new ReadAllExpressionTest(Employee.class, 12);\n test.setExpr...
"public void positionReached() {\n if (worldObj.isRemote) {\n return;\n }\n if (isQuarriableBlock(targetX, targetY - 1, targetZ)) {\n miner = new BlockMiner(worldObj, this, targetX, targetY - 1, targetZ);\n stage = Stage.DIGGING;\n } else {\n stage = Stage.IDLE;\n }\n}\n"
"public AbstractCursor<KeyValue<Row>> find(DboTableMeta colFamily, Iterable<byte[]> rowKeys, boolean skipCache, Integer batchSize) {\n Cache c = this;\n if (skipCache) {\n c = new EmptyCache(this);\n }\n CacheThreadLocal.setCache(c);\n AbstractCursor<KeyValue<Row>> rowsFromDb = session.find(colFam...
"public CommitService searchFrom(String start, RevFilter filter) {\n for (Repository repository : this) walk(repository, null, lookup(repository, start), null, filter);\n return this;\n}\n"
"public void run() {\n TreeObject selected = (TreeObject) ((IStructuredSelection) view.getViewer().getSelection()).getFirstElement();\n Map<TreeObject, Object> keyTrackMap = new HashMap<TreeObject, Object>();\n try {\n super.run();\n if (this.view == null) {\n MessageDialog.openError(v...
"public boolean onNavigationItemSelected(int position, long id) {\n if (position == mCurrentSelectedYearPosition) {\n return true;\n }\n Log.d(Constants.LOG_TAG, \"String_Node_Str\" + Integer.parseInt(dropdownItems[position]));\n getSupportFragmentManager().beginTransaction().setCustomAnimations(R.an...
"public long getLongestDeviceIdleModeTime(int mode) {\n switch(mode) {\n case DEVICE_IDLE_MODE_LIGHT:\n return mLongestLightIdleTime;\n case DEVICE_IDLE_MODE_DEEP:\n return mLongestFullIdleTime;\n }\n return 0;\n}\n"
"public void testCreateStringMapFromV8Object() {\n V8Object object = v8.executeObjectScript(\"String_Node_Str\");\n Map<String, ? super Object> map = V8ObjectUtils.toMap(object);\n assertEquals(4, map.size());\n assertEquals(\"String_Node_Str\", map.get(\"String_Node_Str\"));\n assertEquals(\"String_Node...
"public byte[] getMaxBytes() {\n return max == null ? null : max.getBytes();\n}\n"
"public void testParentId() {\n Integer childId = 67;\n Integer parentIdExpected = 66;\n Issue child = issuesMap.get(childId);\n assertNotNull(\"String_Node_Str\" + childId + \"String_Node_Str\", child);\n assertNotNull(\"String_Node_Str\" + childId + \"String_Node_Str\", child.getParentId());\n Integ...
"void onPropertyChanged(String[] propValues) {\n if (mBluetoothService.isAdapterPropertiesEmpty()) {\n mBluetoothService.getAllProperties();\n }\n String name = propValues[0];\n if (name.equals(\"String_Node_Str\")) {\n Intent intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);\n ...
"private Address findMasterWithMulticast() {\n try {\n final String ip = System.getProperty(\"String_Node_Str\");\n if (ip == null) {\n JoinInfo joinInfo = node.createJoinInfo();\n for (; node.isActive() && currentTryCount.incrementAndGet() <= maxTryCount.get(); ) {\n ...
"public ObjectResult addObject(String tableName, DBObject dbObj) {\n Utils.require(!Utils.isEmpty(tableName), \"String_Node_Str\");\n Utils.require(dbObj != null, \"String_Node_Str\");\n TableDefinition tableDef = m_appDef.getTableDef(tableName);\n Utils.require(tableDef != null, \"String_Node_Str\", m_appD...
"public static void addClass(String name, byte[] bytes) {\n classes.put(name, bytes);\n Recaf rc = Recaf.INSTANCE;\n try {\n ClassNode cn = getNode(name.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\"));\n if (cn == null) {\n return;\n...
"private void processPermissions(Context context, HttpServletRequest request, HttpServletResponse response, Collection collection) throws SQLException, ServletException, IOException, AuthorizeException {\n int permission = UIUtil.getIntParameter(request, \"String_Node_Str\");\n if (UIUtil.getBoolParameter(request...
"protected Control createContents(Composite parent) {\n parent.setLayout(new GridLayout());\n Composite page = new Composite(parent, SWT.NONE);\n GridLayout pageLayout = new GridLayout();\n pageLayout.numColumns = 2;\n GridData pageLayoutdata = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_...
"public void getUpgradeStatus(HttpRequest request, HttpResponder responder) throws Exception {\n upgradeStatus.put(\"String_Node_Str\", metadataService.isMigrationInProcess());\n responder.sendJson(HttpResponseStatus.OK, GSON.toJson(upgradeStatus));\n}\n"
"public UUID addEventListener(String name, ElectrodeBridgeEventListener<ElectrodeBridgeEvent> eventListener) {\n Logger.d(TAG, \"String_Node_Str\", eventListener, name);\n return sEventRegistrar.registerEventListener(name, eventListener);\n}\n"
"void write(String file, String text) throws IOException {\n\tBufferedWriter bw = null;\n\ttry {\n\t\tbw = new BufferedWriter(new FileWriter(file));\n\t} catch (IOException e) {}\n\tbw.write(text);\n}\n"
"public final String createForeignKey(final String schema, final String table, final String column, final String target, final String primaryKey, boolean cascade) {\n if (dialect == Dialect.DERBY) {\n cascade = false;\n }\n buffer.setLength(0);\n final String name = buffer.append(table).append('_').a...
"String getUsername() {\n String username = null;\n try {\n database = DBHELPER.getReadableDatabase();\n String[] columns = new String[] { \"String_Node_Str\", \"String_Node_Str\" };\n cursor = database.query(\"String_Node_Str\", columns, null, null, null, null, null);\n int indexUsern...
"public int getCellWidth(int col, int cs) {\n int[] cols = getCurrentTblCols();\n int w = 0;\n int colNum = Math.min(col + cs, WordEmitter.MAX_COLUMN);\n for (int i = col; i < colNum; i++) {\n w += cols[i];\n }\n return w;\n}\n"
"protected void calculatePositions() {\n try {\n IDocumentExtension3 extension = (IDocumentExtension3) document;\n ITypedRegion[] partitions = extension.computePartitioning(TLAPartitionScanner.TLA_PARTITIONING, 0, document.getLength(), false);\n for (int i = 0; i < partitions.length; i++) {\n ...
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n super.doGet(request, response);\n setPageAttributes();\n response.setContentType(\"String_Node_Str\");\n request.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n request.setAt...
"public long getPageCount(String docName, InputOptions options) throws ReportServiceException {\n IReportDocument doc = ReportEngineService.getInstance().openReportDocument(getReportDesignName(options), docName);\n long count = doc.getPageCount();\n doc.close();\n return count;\n}\n"
"public RealMatrix getCorrelationPValues() throws MathException {\n TDistribution tDistribution = new TDistributionImpl(nObs - 2);\n int nVars = correlationMatrix.getColumnDimension();\n double[][] out = new double[nVars][nVars];\n for (int i = 0; i < nVars; i++) {\n for (int j = 0; j < nVars; j++) {...
"public synchronized void remove(Alarm alarm) throws AlarmContainerException {\n if (alarm == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n String ID = alarm.getAlarmId();\n int pos = index.indexOf(ID);\n if (pos < 0) {\n throw new AlarmContainerException(\"String...
"public void addSumRow() {\n List<Object> sumRow = new ArrayList<Object>();\n double f;\n boolean foundSumable = false;\n for (List<Object> c : table) {\n f = 0;\n for (Object l : c) {\n if (l instanceof List<?>) {\n for (Object item : (List<Object>) l) {\n ...
"public void refresh() {\n ICodeGeneratorService service = DesignerPlugin.getDefault().getCodeGeneratorService();\n if (((ICodeGeneratorService) service).isInitializeJet()) {\n return;\n }\n setGenerating(true);\n Job job = new Job(Messages.getString(\"String_Node_Str\")) {\n\n protecte...
"public String regexLike(String element, String regex) {\n if (null == regularExpressionFunction || PluginConstant.EMPTY_STRING.equals(regularExpressionFunction) || existEmptyInParameter(element, regex)) {\n return null;\n }\n String functionNameSQL = regularExpressionFunction + \"String_Node_Str\" + el...
"private String getServiceFunctionByType(ServiceFunctionType serviceFunctionType, String preSfName, SfcProviderGraph sfcProviderGraph) {\n String sfcProviderTopologyNodeName = null;\n List<SftServiceFunctionName> sftServiceFunctionNameList = serviceFunctionType.getSftServiceFunctionName();\n if (sftServiceFunc...
"public static ConnectorClassLoader getInstance(final ClassLoader parent) {\n if (classLoader == null) {\n synchronized (ConnectorClassLoader.class) {\n if (classLoader == null) {\n classLoader = AccessController.doPrivileged(new PrivilegedAction<ConnectorClassLoader>() {\n\n ...
"public boolean execute() {\n if (log.isInfoEnabled()) {\n log.info(this.getName() + \"String_Node_Str\");\n }\n IProject rootProject = ResourceManager.getRootProject();\n IFolder libraryFolder = rootProject.getFolder(ResourceManager.LIBRARIES_FOLDER_NAME);\n try {\n IFolder oldPatternFolde...
"public void testInternalAPI() throws Exception {\n DatastoreService ds = DatastoreServiceFactory.getDatastoreService();\n if (!isJBossImpl(ds))\n return;\n Set<Key> keys = new HashSet<Key>();\n try {\n ds.put(new Entity(\"String_Node_Str\"));\n NamespaceManager.set(\"String_Node_Str\")...
"public void testClassHierarchiesAndGroovyObjectMethods2() {\n try {\n GroovyClassScope.debugListener = new EventListener(\"String_Node_Str\");\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\...
"public void executeGetAllBuckets(HttpServletRequest request, HttpServletResponse response) throws IOException, XMLStreamException {\n Calendar cal = Calendar.getInstance();\n cal.set(1970, 1, 1);\n S3ListAllMyBucketsRequest engineRequest = new S3ListAllMyBucketsRequest();\n engineRequest.setAccessKey(UserC...
"private void updateCurrentEntry(final int line) {\n final int lastIndex = myEntries.size() - 1;\n myEntries.set(lastIndex, new TheRXResolvingSessionEntry(myEntries.get(lastIndex).myDescriptor, line - 1));\n}\n"
"private void handleColumnPageBreak(ColumnEvent event, IColumn col) throws OLAPException {\n columnCursor.setPosition(event.dataPosition);\n if (event.type == ColumnEvent.COLUMN_TOTAL_CHANGE) {\n int currentGroupIndex = GroupUtil.getGroupIndex(columnGroups, event.dimensionIndex, event.levelIndex);\n ...
"protected void processRequest() throws Exception {\n String module = request.getParameter(\"String_Node_Str\");\n String moduleStr = \"String_Node_Str\";\n if (module != null && module.trim().length() > 0) {\n if (\"String_Node_Str\".equals(module)) {\n request.setAttribute(\"String_Node_Str...
"public String resolveNamespacePrefix(String prefix) {\n String namespaceURI = getUnmarshalNamespaceResolver().getNamespaceURI(prefix);\n if (null == namespaceURI && null != getParentRecord()) {\n namespaceURI = getParentRecord().resolveNamespacePrefix(prefix);\n }\n return namespaceURI;\n}\n"
"private void scan(File entry) throws Exception {\n if (entry.isDirectory()) {\n File[] children = entry.listFiles();\n if (children != null) {\n for (File child : children) {\n scan(child, resources);\n }\n }\n } else {\n try {\n URL bun...
"public boolean canEntityBeSeen(Entity entity) {\n Vector3 target = Vector3.add(new Vector3(entity), new Vector3(0, entity.getEyeHeight(), 0));\n return this.canPositionBeSeen(target);\n}\n"
"public int getBackgroundImageHeight(DesignElementHandle handle, Dimension size, Image image) {\n DimensionHandle obj = handle.getDimensionProperty(StyleHandle.BACKGROUND_SIZE_HEIGHT);\n if (obj == null || obj.getUnits() == null || obj.getUnits().length() == 0) {\n if (image == null) {\n return ...
"public void processRequest() throws Exception {\n StudySubjectDAO subdao = new StudySubjectDAO(sm.getDataSource());\n SubjectDAO sdao = new SubjectDAO(sm.getDataSource());\n AuditDAO adao = new AuditDAO(sm.getDataSource());\n StudyEventDAO sedao = new StudyEventDAO(sm.getDataSource());\n StudyEventDefin...
"private MessageDialog getConfirmDialog() {\n MessageDialog dialog = new MessageDialog(Plugin.getShell(), Messages.ClientDisconnectFromAutAgentTitle, null, Messages.ClientDisconnectFromAutAgentMessage, MessageDialog.QUESTION, new String[] { Messages.DialogMessageButton_YES, Messages.DialogMessageButton_NO }, 0);\n ...
"private void checkQueueAndSendData() {\n while (!NettyServer.finished) {\n try {\n String message = NettyServer.sendQueue.take();\n logger.info(\"String_Node_Str\");\n ChannelFuture f = ctx.writeAndFlush(message);\n if (message.charAt(0) == NetworkConstant.FINISHED...
"public void testEscapedValuesSingleQueryBatch() {\n Assume.assumeTrue(this.sqlgGraph.getSqlDialect().supportsBatchMode());\n this.sqlgGraph.tx().normalBatchModeOn();\n String[] vals = new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"Stri...
"public void createviews(ArrayList<ZipObj> zipEntries, String dir) {\n zipViewer.zipAdapter = new ZipAdapter(zipViewer.getActivity(), zipEntries, zipViewer);\n zipViewer.listView.setAdapter(zipViewer.zipAdapter);\n if (!addheader) {\n listView.removeItemDecoration(dividerItemDecoration);\n listVi...
"public void setup() {\n HablarTester tester = new HablarTester();\n page = mock(Page.class);\n eventBus = tester.eventBus;\n state = new PageState(eventBus, page);\n when(page.getState()).thenReturn(state);\n display = tester.newDisplay(HeaderDisplay.class);\n new HeaderPresenter(eventBus, page, d...
"public void correctErrors_random() {\n GrowQueue_I8 ecc = new GrowQueue_I8();\n GrowQueue_I8 syndromes = new GrowQueue_I8();\n GrowQueue_I8 errorLocator = new GrowQueue_I8();\n GrowQueue_I32 locations = new GrowQueue_I32();\n int nsyn = 10;\n ReidSolomonCodes alg = new ReidSolomonCodes(8, primitive8)...
"public boolean run(ActionCallback cb) {\n Scene scn = this.sceneActorRef.getScene();\n InteractiveActor actor = (InteractiveActor) scn.getActor(this.sceneActorRef.getActorId(), false);\n if (this.sceneActorRef.getSceneId() != null) {\n actor.loadAssets();\n EngineAssetManager.getInstance().finis...
"public Point pointAlongLineSegment(double distance) {\n if (start.x == end.x) {\n if (start.y > end.y) {\n return new Point(end.x, end.y + distance);\n } else {\n return new Point(start.x, start.y + distance);\n }\n } else {\n double slope = (end.y - start.y) / (...
"public static void getMonitoringPools(HandlerContext handlerCtx) {\n List<String> poolNames = (List<String>) handlerCtx.getInputValue(\"String_Node_Str\");\n String endpoint = (String) handlerCtx.getInputValue(\"String_Node_Str\");\n List<String> jdbcMonitorList = new ArrayList<String>();\n List<String> co...
"private void updateContentRefs(Map<String, Content> contentCache, Owner owner, Product product) {\n if (product == null) {\n return;\n }\n for (ProductContent pc : product.getProductContent()) {\n Content content = pc.getContent();\n Content existing = this.ownerContentCurator.getContentB...
"private void preprocess() {\n int id;\n int s, t;\n n_func = Scene.v().getReachableMethods().size() + 1;\n call_graph = new CgEdge[n_func];\n n_calls = 0;\n n_reach_spark_user_methods = 0;\n id = 1;\n QueueReader<MethodOrMethodContext> smList = Scene.v().getReachableMethods().listener();\n w...
"public void doWrite(DataOutput out) throws IOException {\n if (parameters == null) {\n out.writeInt(0);\n } else {\n out.writeInt(this.parameters.length);\n for (int i = 0; i < this.parameters.length; i++) {\n out.writeDouble(this.parameters[i]);\n }\n }\n out.writeDo...
"public void sendCommand(String cmd) {\n if (this.output != null && updateInProgress == false) {\n try {\n System.out.println(\"String_Node_Str\" + cmd);\n this.output.write(cmd);\n this.output.write(\"String_Node_Str\");\n this.output.flush();\n } catch (IOE...
"public RuleProviderRegistry getRuleProviderRegistry(GraphContext graphContext) {\n initCaches(graphContext);\n return this.cachedRegistry;\n}\n"
"PathPosition copy() {\n return new PathPosition(currentClass, keyClass, valueClass, method, hasCollectionJoin);\n}\n"