content
stringlengths
40
137k
"public float getLineWidth(int line) {\n float margin = getParagraphLeadingMargin(line);\n float signedExtent = getLineExtent(line, true);\n return margin + (signedExtent >= 0 ? signedExtent : -signedExtent);\n}\n"
"public void addShape(ICEShape newShape) {\n if (newShape.isComplex()) {\n if (newShape.getOperatorType() == OperatorType.Union) {\n Node node = new Node();\n spatial = node;\n }\n } else {\n Mesh mesh = new Box(1.0f, 1.0f, 1.0f);\n spatial = new Geometry(newShape...
"public void run() {\n try {\n ResultSet maxquery = BungeeWeb.getDatabase().createStatement().executeQuery(\"String_Node_Str\" + table + \"String_Node_Str\" + min + \"String_Node_Str\");\n if (maxquery.next()) {\n int max = maxquery.getInt(\"String_Node_Str\");\n BungeeWeb.getData...
"private void rebuildOrderedListOfTemplates() {\n this.orderedTemplateCollection.clear();\n for (WebHookTemplate payloadTemplate : springTemplates.values()) {\n combinedTemplates.put(payloadTemplate.getTemplateShortName(), payloadTemplate);\n }\n for (WebHookTemplate payloadTemplate : xmlConfigTempla...
"private IFile getNewRAMLFile(IProject project) {\n container = project.getFolder(new Path(\"String_Node_Str\"));\n InputDialog inputDialog = new RAMLConfigurationDialog(shell, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", null);\n int open = inputDialog.open();\n if (open == Dialog.OK) {\n...
"public String getTextContent() throws DOMException {\n StringBuffer sb = new StringBuffer();\n synchronized (this.getTreeLock()) {\n ArrayList<Node> nl = this.nodeList;\n if (nl != null) {\n Iterator<Node> i = nl.iterator();\n while (i.hasNext()) {\n Node node =...
"public void startCubeMappedContainer(BeforeStart event, CubeRegistry cubeRegistry, ContainerRegistry containerRegistry, CubeConfiguration cubeConfiguration) {\n Container container = ContainerUtil.getContainerByDeployableContainer(containerRegistry, event.getDeployableContainer());\n if (container == null) {\n ...
"private void allocateAddressChecked(long length) {\n if (length > pageCapacity) {\n throw new JournalRuntimeException(\"String_Node_Str\", length, pageCapacity);\n }\n allocateAddress(index);\n}\n"
"public void run() {\n LOG.info(String.format(\"String_Node_Str\", config.getStreamName()));\n DateTime lastShardCapacityRefreshTime = new DateTime(System.currentTimeMillis());\n StreamMetrics streamMaxCapacity;\n try {\n streamMaxCapacity = getStreamMaxCapacity();\n } catch (Exception e) {\n ...
"protected static String _getPackageName(OntologySolverBase solver) throws IllegalActionException {\n Ontology ontology = solver.getOntology();\n if (ontology == null) {\n throw new IllegalActionException(solver, \"String_Node_Str\");\n }\n return solver.getClass().getPackage().getName() + \"String_N...
"void connectMAVConnection(ConnectionParameter connParams, String listenerTag, MavLinkConnectionListener listener) {\n AndroidMavLinkConnection conn = mavConnections.get(connParams.getUniqueId());\n final int connectionType = connParams.getConnectionType();\n final Bundle paramsBundle = connParams.getParamsBun...
"public void setProcessContext(RunProcessContext processContext) {\n IPreferenceStore preferenceStore = DesignerPlugin.getDefault().getPreferenceStore();\n String languagePrefix = LanguageManager.getCurrentLanguage().toString() + \"String_Node_Str\";\n if (this.processContext != null) {\n this.processCo...
"public void windowsMoveFile(File fromFile, File toFile) {\n Kernel32.INSTANCE.MoveFileExA(fromFile.getAbsolutePath(), toFile.getAbsolutePath(), MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING);\n}\n"
"protected void executeCommand(CommandEvent event) {\n if (!(event.getClient().getOwnerId().equals(String.valueOf(Const.ARTUTO_ID)))) {\n event.replyError(\"String_Node_Str\");\n return;\n }\n if (event.getArgs().isEmpty()) {\n event.replyWarning(\"String_Node_Str\");\n return;\n ...
"public void listCommands() {\n for (PluginMetadata pluginMetaData : registry.getPlugins().values()) {\n for (CommandMetadata commandMetadata : pluginMetaData.getCommands()) {\n shell.print(commandMetadata.getName());\n shell.print(\"String_Node_Str\");\n }\n }\n shell.print...
"public void testGrandTotal() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdg...
"public void open(String homePath, IndexInfo idxInfo, boolean clean) throws IOException {\n fileQueue = new LinkedList();\n try {\n this.indexInfo = idxInfo;\n this.xtfHomePath = homePath;\n indexPath = getIndexPath();\n if (indexInfo.stopWords != null)\n stopSet = NgramStop...
"public void increaseMana(int mana) {\n this.setMana(this.getMana() + mana);\n if (this.mana > this.maxMana)\n this.mana = this.maxMana;\n}\n"
"protected void executeEcq(ErrorCorrector errorCorrector, String jobName, boolean runInParallel, File outputDir, ExecutionContext executionContext) throws ProcessExecutionException, InterruptedException {\n ExecutionContext executionContextCopy = executionContext.copy();\n errorCorrector.configure(this.getConanPr...
"protected void getColumnGroupField(FieldBean fieldBean, BaseExcelVo excelVo, Row rowData, int row, int index, DataBean dataBean, GroupConfig group) throws AdapterException, ColumnErrorException {\n DataBean childDataBean = dataBean.getChildDataBean(fieldBean.getField().getName());\n List<BaseExcelVo> childVo = (...
"public IStructure createInstance(Object[] fields) {\n Object[][] objectArrays = ObjectArrayUtil.convert(fields);\n Row4Aggregation result = new Row4Aggregation();\n result.setLevelMembers(new Member[objectArrays.length - 2]);\n for (int i = 0; i < result.getLevelMembers().length; i++) {\n result.get...
"private CoordinateSystemAxis parseAxis(final int mode, final Element parent, final String csType, final Unit<?> defaultUnit) throws ParseException {\n final Element element = parent.pullElement(mode, WKTKeywords.Axis);\n if (element == null) {\n return null;\n }\n String name = element.pullString(\"...
"private static String adjustDirSymbol(String str, char replace) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if (ch == File.pathSeparatorChar)\n ch = replace;\n result.append(ch);\n }\n return result....
"public static List<CssNode> getSections(String css, String[] nodes, String[] states) {\n if (states == null) {\n states = new String[0];\n }\n List<CssNode> sections = new ArrayList<CssNode>();\n for (String node : nodes) {\n int i = 0;\n while (i != -1) {\n i = css.indexOf(...
"public Object visitIntervalSelector(cqlParser.IntervalSelectorContext ctx) {\n Interval result = of.createInterval().withLow(parseExpression(ctx.expression(0))).withLowClosed(ctx.getChild(1).getText().equals(\"String_Node_Str\")).withHigh(parseExpression(ctx.expression(1))).withHighClosed(ctx.getChild(5).getText()....
"private void getSchemaFromSPSSFile() {\n try {\n List<IMetadataTable> metadataList = getMetadataList();\n MetadataTable metaTable = (MetadataTable) metadataList.get(0);\n metaTable.getListColumns().clear();\n MetadataTableEditor tableEditor = new MetadataTableEditor(metaTable, \"String_N...
"private Work replaceWithOldAndNew(Bytes reader, TcpReplicator.TcpSocketChannelEntryWriter writer, final long sizeLocation, long timestamp, byte id) {\n try {\n writer.ensureBufferSize(1L);\n writer.in().writeBoolean(bytesMap.replace(reader, reader, reader));\n } catch (Throwable e) {\n retur...
"public void interpolate(final ScreenTransform start, final ScreenTransform end, final double ratio) {\n this.minX = (1 - ratio) * start.minX + ratio * end.minX;\n this.maxX = (1 - ratio) * start.maxX + ratio * end.maxX;\n this.minY = (1 - ratio) * start.minY + ratio * end.minY;\n this.maxY = (1 - ratio) * ...
"private Map decodeMap() {\n ParameterizedType paramType = (ParameterizedType) field.getGenericType();\n Type[] types = paramType.getActualTypeArguments();\n boolean isArray = false;\n boolean isCollection = false;\n boolean isSingle = false;\n Class vType = null;\n Class elementType = null;\n i...
"public void clearAlarm(String faultFamily, String faultMember, int faultCode) {\n if (!enabled) {\n return;\n }\n if (queuing) {\n synchronized (queue) {\n queue.add(faultFamily, faultMember, faultCode, null, false);\n }\n return;\n }\n String id = buildAlarmID(fau...
"public int size() {\n return (int) new jedd.internal.RelationContainer(new jedd.Attribute[] { stmt.v(), srcm.v(), tgtc.v(), tgtm.v(), srcc.v(), kind.v() }, new jedd.PhysicalDomain[] { ST.v(), T1.v(), V2.v(), T2.v(), V1.v(), FD.v() }, (\"String_Node_Str\" + \"String_Node_Str\"), edges).size();\n}\n"
"public static OseeCoverageUnitFileContentsProvider getInstance(IOseeBranch branch) {\n if (instance == null || !instance.getBranch().equals(branch)) {\n instance = new OseeCoverageUnitFileContentsProvider(branch);\n }\n return instance;\n}\n"
"private void placeComponents() {\n GridLayout glContent = new GridLayout(2, false);\n glContent.marginHeight = 2;\n glContent.marginWidth = 2;\n glContent.horizontalSpacing = 0;\n this.setLayout(glContent);\n Composite cmpMarker = new Composite(this, SWT.NONE);\n {\n cmpMarker.setLayout(new...
"public void put(String whereSql, ShardingDBResource db, List data) {\n if (StringUtil.isBlank(whereSql) || data == null || data.isEmpty()) {\n return;\n }\n ShardedJedis redisClient = null;\n try {\n redisClient = jedisPool.getResource();\n String cacheKey = _buildShardingCacheKey(wher...
"public Response getHyperParameters(long analysisId) {\n PrivilegedCarbonContext carbonContext = PrivilegedCarbonContext.getThreadLocalCarbonContext();\n int tenantId = carbonContext.getTenantId();\n String userName = carbonContext.getUsername();\n try {\n List<MLHyperParameter> responseVariable = ml...
"public long getPageNumberByBookmark(String docName, String bookmark, InputOptions options) throws ReportServiceException {\n IReportDocument doc = ReportEngineService.getInstance().openReportDocument(getReportDesignName(options), docName);\n long pageNumber = doc.getPageNumber(bookmark);\n doc.close();\n r...
"private MethodNode findMethodNode(IMethod method) {\n ClassNode clazz = findClassWithName(createName(method.getDeclaringType()));\n try {\n if (method.isConstructor()) {\n List<ConstructorNode> constructors = clazz.getDeclaredConstructors();\n for (ConstructorNode constructorNode : c...
"public List getFilesToCompile(boolean firstPass) {\n List thisTime = new ArrayList();\n if (firstPass) {\n Collection modifiedFiles = getModifiedFiles();\n sourceFiles.addAll(modifiedFiles);\n sourceFiles.addAll(addedFiles);\n deleteClassFiles();\n addAffectedSourceFiles(source...
"public Account getAccount() {\n String pass = new String(txtPassword.getPassword());\n if (account == null)\n return null;\n if (!account.getUser().equals(txtUsername.getText()) || !account.getPass().equals(pass)) {\n account.setUser(txtUsername.getText());\n account.setPass(pass);\n ...
"private boolean doProcess(ApplicationClustersRemovedEvent event, Topology topology) {\n Set<ClusterDataHolder> clusterData = event.getClusterData();\n if (clusterData != null) {\n for (ClusterDataHolder aClusterData : clusterData) {\n String serviceType = aClusterData.getServiceType();\n ...
"public Cursor query(final Uri uri, final String[] projection, final String selection, final String[] selectionArgs, final String sortOrder) {\n final long now = System.currentTimeMillis();\n if (exchangeRates == null || now - lastUpdated > UPDATE_FREQ_MS) {\n Map<String, ExchangeRate> newExchangeRates = g...
"public void updateChatContactStatus(MetaContact metaContact) {\n ContactListModel listModel = (ContactListModel) this.getContactList().getModel();\n if (!Constants.TABBED_CHAT_WINDOW) {\n if (contactMsgWindows.containsKey(metaContact)) {\n ChatWindow msgWindow = (ChatWindow) contactMsgWindows.g...
"protected void makeActive(QueueEnqueue queue) {\n isActive = true;\n this.context = container.makeNewSharedObjectContext(this, queue);\n}\n"
"private void transformColumnExpressions(ColumnDesign column) {\n IBaseQueryDefinition query = getParentQuery();\n if (query == null) {\n return;\n }\n List expressions = new ArrayList();\n VisibilityDesign visibilities = column.getVisibility();\n if (visibilities != null) {\n for (int i...
"private boolean checkForLeavingTouchModeAndConsume(KeyEvent event) {\n final int action = event.getAction();\n if (action != KeyEvent.ACTION_DOWN && action != KeyEvent.ACTION_MULTIPLE) {\n return false;\n }\n if ((event.getFlags() & KeyEvent.FLAG_KEEP_TOUCH_MODE) != 0) {\n return false;\n ...
"public synchronized void close() throws IOException {\n if (_closed) {\n return;\n }\n _closed = true;\n for (ZooKeeperPersistentEphemeralNode node : _nodes.values()) {\n closeNode(node);\n }\n _nodes.clear();\n}\n"
"public Time fireAtCurrentTime(Actor actor) throws IllegalActionException {\n if (_synchronizeToRealTime) {\n long elapsedTime = System.currentTimeMillis() - _realStartTime;\n Time modelTimeForCurrentRealTime = new Time(this, (double) elapsedTime / 1000);\n return fireAt(actor, modelTimeForCurre...
"private Collection<VCastStatementCoverage> getStatementCoverageLinesWithBranch(VCastFunction function) {\n Collection<VCastStatementCoverage> toReturn = new ArrayList<>();\n JdbcStatement stmt = getStatement();\n try {\n String query = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \...
"private QueryDefinition newGenIVReportQuery() {\n QueryDefinition qd = newReportQuery();\n IBaseExpression[] rowBeArray = getRowExpr();\n IBinding[] totalBeArray = getAggrExpr();\n for (int i = 0; i < rowBeArray.length; i++) qd.addResultSetExpression(this.rowExprName[i], rowBeArray[i]);\n if (this.GEN_u...
"protected void _regressionTest(NamedObj namedObj, Property property) throws PropertyResolutionException {\n Property previousProperty = getPreviousProperty(namedObj);\n if (previousProperty != null) {\n try {\n PropertyAttribute attribute = _getPropertyAttribute(namedObj);\n _updateP...
"public static void write(LoadFlowResult result, Path jsonFile) {\n Objects.requireNonNull(result);\n Objects.requireNonNull(jsonFile);\n try (OutputStream os = Files.newOutputStream(jsonFile)) {\n ObjectMapper objectMapper = JsonUtil.createObjectMapper();\n SimpleModule module = new SimpleModule...
"public List<TdColumn> returnColumns(IMetadataConnection metadataConnection, TableNode tableNode, boolean... dontCreateClose) {\n if (metadataConnection == null || tableNode == null || tableNode.getType() != TableNode.TABLE) {\n return Collections.emptyList();\n }\n NamedColumnSet table = tableNode.getT...
"private String calculateWorkDirectory(final TheRRunConfigurationParams runConfigurationParams) {\n final String workingDirectory = runConfigurationParams.getWorkingDirectory();\n final String defaultValue = new File(runConfigurationParams.getScriptPath()).getParent();\n return !StringUtil.isEmptyOrSpaces(spec...
"public SplitResult split(int height, boolean force) throws BirtException {\n SplitResult result = super.split(height, force);\n if (result.getResult() != null) {\n TableArea tableResult = (TableArea) result.getResult();\n unresolvedRow = tableResult.getLastRow();\n int h = tableResult.layout...
"private static int readGeneric(String desc, int start, IGeneric generic) {\n int index = desc.indexOf(':', start);\n Name name = Name.getQualified(desc.substring(start, index));\n TypeVariable typeVar = new TypeVariable(generic, name);\n if (desc.charAt(index + 1) == ':') {\n index++;\n typeV...
"public TreeOperation handleTreeMergeParagraph(TreeMergeParagraph op1) {\n if (op1.getPosition() == path.get(0)) {\n int d = 0;\n if (splitLeft) {\n d++;\n }\n if (sr) {\n d++;\n }\n return new TreeMergeParagraph(op1.getSiteId(), op1.getPosition(), op1....
"public boolean select(Viewer viewer, Object parentElement, Object element) {\n if (m_searchString == null || m_searchString.length() == 0 || !(element instanceof IDataSetPO)) {\n return true;\n }\n for (String value : ((IDataSetPO) element).getColumnStringValues()) {\n if (value != null && value...
"public void testAllocationDeallocation() {\n final String configDir = getConfigDir();\n if (configDir == null) {\n fail(\"String_Node_Str\");\n }\n GlobalConfiguration.loadConfiguration(configDir);\n final TestInstanceListener testInstanceListener = new TestInstanceListener();\n final ClusterM...
"public void actualAsyncLog(final RingBufferLogEvent event) {\n final List<Property> properties = privateConfig.loggerConfig.getPropertyList();\n if (properties != null) {\n MutableContextData contextData = (MutableContextData) event.getContextData();\n for (final Map.Entry<Property, Boolean> entry ...
"private static OArchitectOClass convertOClassFromJson(JSONObject jsonObject) {\n OArchitectOClass oClass = new OArchitectOClass(jsonObject.getString(NAME));\n if (!jsonObject.isNull(SUPER_CLASSES_NAMES)) {\n oClass.setSuperClassesNames(getSuperClasses(jsonObject.getJSONArray(SUPER_CLASSES_NAMES)));\n }...
"private ProgramState executeInitializedBinding(InitializedBindingElementTree initializedBindingElementTree, ProgramState programState) {\n ProgramState newProgramState = programState;\n if (((JavaScriptTree) initializedBindingElementTree).getParent().is(Kind.OBJECT_BINDING_PATTERN, Kind.ARRAY_BINDING_PATTERN, Ki...
"public String getName() {\n if (Machine.merge_mode.isMerge()) {\n if (merge == null) {\n if (isCollisionMode() && parent.isClone()) {\n return parent.name + \"String_Node_Str\" + name;\n } else\n return merge;\n }\n return name;\n}\n"
"private void handleGalleryImageUploadedLegacyEditor(Long galleryId, String localId, String remoteId) {\n SpannableStringBuilder postContent;\n if (mEditorFragment.getSpannedContent() != null) {\n postContent = new SpannableStringBuilder(mEditorFragment.getSpannedContent());\n } else {\n try {\n ...
"public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {\n renderer.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);\n setBorder(new CompoundBorder(new MatteBorder(0, 1, 1, 1, Color.WHITE), new EmptyBord...
"public static void createSubset(Product sourceProduct, Rectangle bounds) {\n if (MultiSizeIssue.isMultiSize(sourceProduct)) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(sourceProduct);\n if (resampledProduct != null) {\n sourceProduct = resampledProduct;\n } else...
"public boolean hasCurrentEvent() {\n try {\n CTSchedule schedule = (CTSchedule) getScheduler().getSchedule();\n Iterator eventGenerators = schedule.get(CTSchedule.EVENT_GENERATORS).actorIterator();\n boolean hasDiscreteEvents = false;\n while (eventGenerators.hasNext()) {\n CT...
"private void refreshNodeStatus(NodeEntity node, boolean inSession) {\n String mobId = node.getMoId();\n if (mobId == null) {\n setNotExist(node);\n return;\n }\n VcVirtualMachine vcVm = VcCache.getIgnoreMissing(mobId);\n if (vcVm == null) {\n setNotExist(node);\n return;\n ...
"public boolean contains(Key key) {\n checkActive();\n try {\n DataPolice.setKey(key);\n return null != find(key);\n } catch (IOException e) {\n return false;\n } finally {\n DataPolice.setKey(null);\n }\n}\n"
"public Plan makeDiscoveryPlan() {\n Plan result = new Plan();\n for (DiscoveryNode subject : pollQueue) {\n Node node = new Node(subject.getSwitchId(), subject.getPortId());\n if (subject.forlorn()) {\n continue;\n } else if (subject.isStale(consecutiveLostTillFail) && subject.tim...
"public void resetStorage() {\n objectStorage = new HashMap<String, Object>();\n storageIds = new HashMap<String, Integer>();\n}\n"
"public static Map getDatabaseProperties() {\n if (propertiesMap == null) {\n String dbDriver = System.getProperty(DB_DRIVER_KEY);\n String dbUrl = System.getProperty(DB_URL_KEY);\n String dbUser = System.getProperty(DB_USER_KEY);\n String dbPwd = System.getProperty(DB_PWD_KEY);\n ...
"public static org.hl7.fhir.dstu2016may.model.Distance convertDistance(org.hl7.fhir.dstu3.model.Distance src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model.Distance tgt = new org.hl7.fhir.dstu2016may.model.Distance();\n copyElement(src, tgt);\...
"private final void realStartServiceLocked(ServiceRecord r, ProcessRecord app) throws RemoteException {\n if (app.thread == null) {\n throw new RemoteException();\n }\n r.app = app;\n r.restartTime = r.lastActivity = SystemClock.uptimeMillis();\n app.services.add(r);\n bumpServiceExecutingLocke...
"public void setHabit(Habit habit) {\n if (this.habit != null)\n detachFromHabit();\n this.habit = habit;\n checkmarkPanel.setHabit(habit);\n postInvalidate();\n}\n"
"protected ColumnMetadata getColumn(String loggingCtx) {\n if (m_column == null) {\n Object column = getAnnotation(Column.class);\n return new ColumnMetadata(column, getAttributeName());\n } else {\n return m_column;\n }\n}\n"
"private OutputStream getOutputStream(IStreamableResource conn) {\n return conn.getOutputStream(relativePathAndFile, mustExist);\n}\n"
"public Map<String, KitInstance> loadKits() {\n final Map<String, KitInstance> result = new LinkedHashMap<String, KitInstance>();\n final List<MaterialContainer> items = new ArrayList<MaterialContainer>();\n final ExtendedConfiguration kits = getYml(\"String_Node_Str\");\n final Map<String, List<String>> ki...
"private String getElementID(final String relativePath) {\n String elementID = null;\n String topicWithelement = null;\n final String fragment = getFragment(relativePath);\n if (fragment != null) {\n if (fragment.lastIndexOf(SLASH) != -1) {\n return fragment.substring(fragment.lastIndexOf(...
"protected void registerTimerMonitorableComponent() {\n if (isTimedObject()) {\n String invokerId = EjbMonitoringUtils.getInvokerId(containerInfo.appName, containerInfo.modName, containerInfo.ejbName);\n try {\n ProbeProviderFactory probeFactory = ejbContainerUtilImpl.getProbeProviderFactory...
"public static void main(String[] args) throws ActiveMQException, InterruptedException, ExecutionException {\n if (args.length != 1) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n final Logger logger = LoggerFactory.getLogger(ExampleClientRPC.class);\n final HostAndPort nodeAddres...
"private int retrieveTissueTypeSampleAccession(Integer parentSampleAcc, SampleInfo barcode) throws Exception {\n int tissueTypeSampleAcc = 0;\n String name = barcode.getParentSample() + \"String_Node_Str\" + barcode.getTissueOrigin() + \"String_Node_Str\" + barcode.getTissueType();\n List<Sample> children = me...
"private void setDelays(RecordInfo recordInfo, int extraDelay, MapContainer mapContainer, Data key) {\n long deleteDelay = -1;\n long writeDelay = -1;\n if (mapContainer.getMapStoreScheduler() != null) {\n final ScheduledEntry scheduledEntry = mapContainer.getMapStoreScheduler().get(key);\n if (s...
"public void finishOp(int op) {\n finishOp(op, Process.myUid(), mContext.getOpPackageName());\n}\n"
"public void testExternsReferencesToGoogModuleTypesAreRewritten() {\n CompilerOptions options = createCompilerOptions();\n options.setClosurePass(true);\n options.setCheckTypes(true);\n test(options, new String[] { LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node...
"public static void beforeClass() {\n predicate = new BlacklistTriplePredicate(GraphConfig.config());\n invalidSubject = Triple.fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n invalidObject = Triple.fromStringUris(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\...
"public static TableContext create(TableDescriptor tableDescriptor) {\n if (tableDescriptor == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n String name = tableDescriptor.getName();\n if (name == null) {\n throw new NullPointerException(\"String_Node_Str\");\n }\n ...
"public void showDebugInfo(boolean show) {\n this.config.set(show, KEYS[11]);\n}\n"
"public Component.State lookupState() {\n if (!this.lookupComponent().hasService(this)) {\n return Component.State.NONE;\n } else {\n try {\n return this.lookupService().getStateMachine().getState();\n } catch (NoSuchServiceException ex) {\n return Component.State.NONE;\...
"public List<Milestone> getMilestones(int projectId, ApiFilterValue... isCompleted) {\n return getEntityList(Milestone.class, TestRailCommand.GET_MILESTONES.getCommand(), Integer.toString(projectId) + (isCompleted.length > 0 ? isCompleted[0].append() : null));\n}\n"
"private synchronized ResourceBundle getResourceBundle(String loggerName) {\n if (loggerName == null) {\n return null;\n }\n ResourceBundle rb = loggerResourceBundleTable.get(loggerName);\n if (rb == null && logManager.getLogger(loggerName) != null) {\n rb = logManager.getLogger(loggerName).ge...
"private List<ApplicationChildContext> traverseGraphByLevel(List<ApplicationChildContext> contexts, ParentComponentMonitor parentMonitor, String instanceId) {\n for (ApplicationChildContext context : contexts) {\n Monitor monitor = parentMonitor.getMonitor(context.getId());\n if (monitor.getInstance(in...
"public String[] getStringArray(Class clazz, String name) {\n if (name == null) {\n return null;\n }\n String key = getKey(clazz, name);\n String toTok = null;\n try {\n toTok = _resources.getString(key);\n } catch (MissingResourceException ex) {\n }\n if (toTok == null) {\n ...
"public ApiBootstrap createBootstrap(ApiBootstrap bootstrap) throws AmbariApiException {\n logger.info(\"String_Node_Str\");\n logger.info(ApiUtils.objectToJson(bootstrap.getHosts()));\n Response response = null;\n try {\n response = apiResourceRootV1.getBootstrapResource().createBootstrap(ApiUtils.o...
"public void testQueryIterableCrud() throws DocumentClientException {\n DocumentClient client = new DocumentClient(HOST, MASTER_KEY, ConnectionPolicy.GetDefault(), ConsistencyLevel.Session);\n List<Document> documents = client.readDocuments(this.collectionForTest.getSelfLink(), null).getQueryIterable().toList();\...
"private byte getClassEid(final Class<?> clazz) {\n final Byte res = classesToIdx.get(clazz);\n if (res == null)\n throw new IllegalArgumentException(\"String_Node_Str\" + clazz.getTypeName() + \"String_Node_Str\");\n return res;\n}\n"
"public ItemStack removeStackFromSlot(int index) {\n version++;\n if (isStorageAvailableRemotely(index)) {\n index -= ModularStorageContainer.SLOT_STORAGE;\n RemoteStorageTileEntity storageTileEntity = getRemoteStorage(remoteId);\n if (storageTileEntity == null) {\n return null;\n ...
"public InputStream getInputStream() throws IOException {\n is = new ByteArrayInputStream(source.getReferenceBytes());\n return is;\n}\n"
"public void testSimpleCheckBox() {\n new TestSimpleCheckBox();\n if (!GWT.isScript()) {\n try {\n new BrokenSimpleCheckBox();\n throw new Error(ASSERTION_ERROR);\n } catch (AssertionError e) {\n }\n }\n}\n"
"public boolean runOnce() {\n TcpChannelHub hub = ReplicationHub.this.hub;\n hub.outBytesLock().lock();\n try {\n mi.forEach(e -> {\n sendEventAsyncWithoutLock(replicationEvent, (Consumer<ValueOut>) (v -> v.typedMarshallable(e)));\n });\n } catch (InterruptedException e) {\n ...
"public void clear() {\n synchronized (lock) {\n if (StringUtils.isNotEmpty(cartId)) {\n cartRepository.clear(cartId);\n logger.info(\"String_Node_Str\");\n }\n }\n}\n"