content
stringlengths
40
137k
"public void stopReading() {\n active = false;\n try {\n reader.close();\n } catch (IOException e) {\n throw new IllegalStateException(\"String_Node_Str\", e);\n } finally {\n try {\n if (activeExecution != null) {\n activeExecution.interrupt();\n }\...
"private void sendMessage(String message) throws IOException {\n if (message.length() > 0) {\n if (message.length() > MESSAGE_SIZE) {\n int end = MESSAGE_SIZE - 1;\n while (end > 0 && message.charAt(end) != ' ') {\n end--;\n }\n if (end == 0) {\n ...
"public void testEmployeeSchemaGenMissingRequiredElement() throws Exception {\n boolean exception = false;\n String src = \"String_Node_Str\";\n String tmpdir = System.getenv(\"String_Node_Str\");\n String msg = \"String_Node_Str\";\n try {\n Class[] jClasses = new Class[] { Address.class, Employe...
"public void delete(NamespaceId namespaceId) throws IOException, ExploreException, SQLException {\n deleteLocation(namespaceId);\n if (cConf.getBoolean(Constants.Explore.EXPLORE_ENABLED) && !NamespaceId.DEFAULT.equals(namespaceId)) {\n exploreFacade.removeNamespace(namespaceId.toId());\n }\n}\n"
"private double getMaxLongitude(DataTilePos pos) {\n return (pos.getTileZ() + 1) * this.tileSize.getZ();\n}\n"
"public DocumentRevision createDocumentMaster(String pParentFolder, String pDocMId, String pTitle, String pDescription, String pDocMTemplateId, String pWorkflowModelId, ACLUserEntry[] pACLUserEntries, ACLUserGroupEntry[] pACLUserGroupEntries, Map<String, Collection<String>> userRoleMapping, Map<String, Collection<Strin...
"public void getLogNext(LoggingContext loggingContext, ReadRange readRange, int maxEvents, Filter filter, Callback callback) {\n if (readRange.getKafkaOffset() < 0) {\n getLogPrev(loggingContext, readRange, maxEvents, filter, callback);\n return;\n }\n Filter contextFilter = LoggingContextHelper....
"public Object invokeFinal(Object iContent, Object[] params) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n Object selectedValue = getSingleSelection(iContent);\n if (selectedValue != null) {\n SchemaClass clazz = Roma.schema().getSchemaClass(EntityHelper.getEntityOb...
"public PersistenceUnitUtil getPersistenceUnitUtil() {\n return delegate.getPersistenceUnitUtil();\n}\n"
"public void finalize(QueueEntryPointer entryPointer, QueueConsumer consumer, int totalNumGroups, long writePoint) throws OperationException {\n if (consumer.getInstanceId() != 0) {\n return;\n }\n ReadPointer readPointer = oracle.dirtyReadPointer();\n final long evictStartTimeInSecs = System.current...
"public boolean apply(Game game, Ability source) {\n MageObject mageObject;\n if (source.getZone() == Zone.BATTLEFIELD) {\n mageObject = source.getSourceObjectIfItStillExists(game);\n } else {\n mageObject = game.getObject(source.getSourceId());\n }\n if (mageObject == null) {\n if (...
"public long getTimeSinceCreation() {\n return System.currentTimeMillis() - creationTime;\n}\n"
"public byte[] sendVolumeUp() {\n return new byte[] { mSteeringWheelAddress, 0x04, mRadioAddress, 0x32, 0x11, 0x1F };\n}\n"
"public void removeFacet() {\n if (hasFacet()) {\n try {\n IFacetedProject facetedProject = ProjectFacetsManager.create(project);\n if (facetedProject != null) {\n facetedProject.uninstallProjectFacet(FACET.getDefaultVersion(), null, null);\n }\n } catch ...
"public static void main(String[] args) throws Exception {\n final String ALL_ASYNC = \"String_Node_Str\" + AsyncLoggerContextSelector.class.getName();\n final String CACHEDCLOCK = \"String_Node_Str\";\n final String SYSCLOCK = \"String_Node_Str\";\n final String LOG12 = RunLog4j1.class.getName();\n fina...
"public void run() {\n IScope mixinArguments = data.getMixinArguments();\n ScopeView mixinWorkingScope = data.getMixinWorkingScope();\n mixinWorkingScope.getParent().add(mixinArguments);\n mixinWorkingScope.saveLocalDataForTheWholeWayUp();\n data.setMixinWorkingScope(mixinWorkingScope);\n GuardValue g...
"String printCubeAlongEdge(CubeCursor cursor, List columnEdgeBindingNames, List rowEdgeBindingNames, List measureBindingNames, List rowGrandTotal, String columnGrandTotal, String totalGrandTotal, List countryGrandTotal) throws Exception {\n EdgeCursor edge1 = (EdgeCursor) (cursor.getOrdinateEdge().get(0));\n Edge...
"public void testSimple() throws Exception {\n Channel channel = new Channel(channelName, channelUrl);\n SequenceIterator iterator = factory.create(999, channel);\n check(iterator, \"String_Node_Str\");\n check(iterator, \"String_Node_Str\");\n int end = insertAndCheck(iterator, 3);\n iterator.exit();...
"protected void _calculateDelayOffsets() throws IllegalActionException {\n _visitedActors = new HashSet<Actor>();\n _clearDelayOffsets();\n _inputModelTimeDelays = new HashMap<IOPort, Map<Integer, SuperdenseDependency>>();\n _portDelays = new HashMap<IOPort, SuperdenseDependency>();\n if (getContainer() ...
"public void postCalculateChanges(org.eclipse.persistence.sessions.changesets.ChangeRecord changeRecord, UnitOfWorkImpl uow) {\n Object oldValue = ((ObjectReferenceChangeRecord) changeRecord).getOldValue();\n if (oldValue != null) {\n uow.addDeletedPrivateOwnedObjects(this, oldValue);\n }\n}\n"
"public LayoutMode getInteractionLayout() {\n Object obj = parameters.get(KEY_INTERACTION_LAYOUT);\n if (obj instanceof LayoutMode) {\n return (LayoutMode) obj;\n } else if (obj instanceof String) {\n LayoutMode theCode = null;\n try {\n theCode = LayoutMode.valueForString((Stri...
"public void run() {\n final UsbDeviceConnection deviceConnection = usbDeviceConnection;\n final UsbEndpoint usbEndpoint = inputEndpoint;\n final int maxPacketSize = inputEndpoint.getMaxPacketSize();\n final MidiInputDevice sender = MidiInputDevice.this;\n final OnMidiInputEventListener midiEventListener...
"public static <T> List<T> loadEmfModel(EPackage pkg, String file) throws IOException {\n ResourceSet resourceSet = getResourceSet(pkg);\n List<T> list = new ArrayList<T>();\n URI uri = URI.createFileURI(file);\n Resource resource = resourceSet.getResource(uri, true);\n resource.load(null);\n for (EOb...
"protected void setupRemoteServiceAdapters() throws Exception {\n final int clientCount = getClientCount();\n for (int i = 0; i < clientCount; i++) {\n adapters[i] = (IRemoteServiceContainerAdapter) getClients()[i].getAdapter(IRemoteServiceContainerAdapter.class);\n }\n}\n"
"public byte[] toByteArray(Object oid) {\n Object id = ((OpenJPAId) oid).getIdObject();\n if (id == null) {\n return null;\n }\n return dynamicSerializer.toBytes(createComposite(id));\n}\n"
"public void doLayout(List<? extends IGLLayoutElement> children, float w, float h) {\n IGLLayoutElement hist = children.get(HIST);\n final boolean smallHeader = isSmallHeader(h);\n if (smallHeader)\n hist.hide();\n else\n hist.setBounds(1, hasTitle ? LABEL_HEIGHT : 0, w - 2, h - (hasTitle ? LA...
"public static String getString(String key) {\n String message = key;\n String messageKey = MESSAGEMAP.get(key);\n if (null != messageKey && !DefaultMessagesImpl.getString(messageKey).startsWith(KEY_NOT_FOUND_PREFIX) && !DefaultMessagesImpl.getString(messageKey).endsWith(KEY_NOT_FOUND_SUFFIX)) {\n messa...
"public static final Atom[] cloneAtomArray(Atom[] ca) {\n Atom[] newCA = new Atom[ca.length];\n List<Chain> model = new ArrayList<Chain>();\n int apos = -1;\n for (Atom a : ca) {\n apos++;\n Group parentG = a.getGroup();\n Chain parentC = parentG.getChain();\n Chain newChain = nu...
"public static Filter parseString(String string) throws Filter.FilterException {\n String regexStripped = stripRegex(string);\n Matcher bracketMatcher = bracketsPattern.matcher(regexStripped);\n if (bracketMatcher.matches()) {\n Filter group;\n boolean inverted = \"String_Node_Str\".equals(bracke...
"public void run() {\n AutotoolsConfigurationManager.getInstance().syncConfigurations(project);\n ICConfigurationDescription cfgds = CoreModel.getDefault().getProjectDescription(project).getActiveConfiguration();\n if (cfgds != null) {\n IAConfiguration iaConfig = AutotoolsConfigurationManager.getInstan...
"private TransferEnvelopeReceiverList getReceiverList(final JobID jobID, final ChannelID sourceChannelID) {\n TransferEnvelopeReceiverList receiverList = this.receiverCache.get(sourceChannelID);\n if (receiverList == null) {\n try {\n while (true) {\n ConnectionInfoLookupResponse ...
"public void revert(INDArray array, MinMaxStats stats) {\n array.subi(minRange);\n array.divi(maxRange - minRange);\n if (array.rank() <= 2) {\n array.muliRowVector(stats.getRange());\n array.addiRowVector(stats.getLower());\n } else {\n Nd4j.getExecutioner().execAndReturn(new Broadcast...
"public static ImageIcon getAccountStatusImage(ProtocolProviderService pps) {\n ImageIcon statusIcon;\n OperationSetPresence presence = pps.getOperationSet(OperationSetPresence.class);\n Image statusImage;\n byte[] protocolStatusIcon = null;\n if (presence != null)\n protocolStatusIcon = presence....
"public void testResponse() throws NoSuchAlgorithmException {\n byte[] expected_A = trim(new BigInteger(\"String_Node_Str\", 16).toByteArray());\n byte[] expected_x = new BigInteger(\"String_Node_Str\", 16).toByteArray();\n byte[] expected_M1 = trim(new BigInteger(\"String_Node_Str\", 16).toByteArray());\n ...
"protected final Address advanceToBlock(Address block, int sizeClass) {\n if (LAZY_SWEEP)\n return makeFreeListFromLiveBits(block, sizeClass, msSpace.getMarkState());\n else\n return getFreeList(block);\n}\n"
"public void onActionResult(boolean succeeded) {\n mIsModeratingComment = false;\n if (succeeded && mOnCommentChangeListener != null)\n mOnCommentChangeListener.onCommentChanged(ChangedFrom.COMMENT_DETAIL);\n if (hasActivity()) {\n mLayoutButtons.setEnabled(true);\n if (succeeded) {\n ...
"protected void prepareHandlers(final Context context) {\n addHandler(Attributes.View.OnClick, new EventProcessor<V>(context) {\n public void setOnEventListener(final V view, final ParserContext parserContext, final JsonElement attributeValue) {\n view.setOnClickListener(new View.OnClickListener() ...
"public final void log(ConnectionFactory connectionFactory) throws ResourceException {\n try {\n T eventBuilder = getEventBuilder().transactionIdFromRootContext(context).timestamp(System.currentTimeMillis()).eventName(getEventName()).authenticationFromSecurityContext(context).action(null != syncOperation ? sy...
"public EnumActionResult onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ) {\n if (side != EnumFacing.UP) {\n return EnumActionResult.FAIL;\n }\n if (world.isRemote)\n return EnumActionResult.SUCCESS;\n ...
"public void onUnrarEvent(int id, UnrarWrapper wrapper) {\n switch(id) {\n case JDUnrarConstants.WRAPPER_EXTRACTION_FAILED:\n if (wrapper.getException() != null) {\n wrapper.getDownloadLink().getLinkStatus().setErrorMessage(\"String_Node_Str\" + wrapper.getException().getMessage());\...
"public int getFormat() {\n return ImageFormat.YUV_420_888;\n}\n"
"private IMetadataColumn parseFieldToMetadataColumn(Field field) {\n if (field == null) {\n return null;\n }\n IMetadataColumn mdColumn = new org.talend.core.model.metadata.MetadataColumn();\n mdColumn.setLabel(field.getName());\n mdColumn.setKey(false);\n String type = field.getType().toString...
"public void doSpecial() {\n for (Mob mob : Dungeon.level.mobs.toArray(new Mob[0])) {\n if (Dungeon.level.heroFOV[mob.pos]) {\n Buff.affect(mob, Burning.class).reignite(mob);\n Buff.prolong(mob, Roots.class, 3);\n }\n }\n curUser.HP -= (curUser.HP / 3);\n curUser.spend(Ac...
"private static void printPages(int pages, int mode) {\n double mb = (double) (pages << LOG_BYTES_IN_PAGE) / (double) (1 << 20);\n switch(mode) {\n case PAGES:\n Log.write(pages);\n Log.write(\"String_Node_Str\");\n break;\n case MB:\n Log.write(mb);\n ...
"public void run() throws PersistenceException {\n try {\n for (String name : names) {\n String path = new Path(Platform.getInstanceLocation().getURL().getPath()).toFile().getPath();\n path = path + File.separatorChar + projectLabel + File.separatorChar + ERepositoryObjectType.getFolderN...
"public static boolean checkBilanLibelleValue(String bilanLibelle) {\n if (BILAN_LIBELLE_ADULTESISOLES.equals(bilanLibelle) || BILAN_LIBELLE_ENFANTS.equals(bilanLibelle) || BILAN_LIBELLE_JEUNES.equals(bilanLibelle) || BILAN_LIBELLE_SENIORS.equals(bilanLibelle)) {\n return true;\n } else {\n return f...
"public int[] getSlotsForStructureFace(EnumFacing side, BlockPos local) {\n return globalLocationMaterialInput.equals(local) ? slotsMaterialInput : slotsDefault;\n}\n"
"public boolean isReceivingAudio() {\n return !_phone.getCallService().isRemoteAudioMuted(getKey());\n}\n"
"private ColumnInfo[] generateColumnInfo(List<String> columns) throws SQLException {\n Map<String, Integer> columnNameToTypeMap = Maps.newLinkedHashMap();\n DatabaseMetaData dbmd = conn.getMetaData();\n String escapedTableName = StringUtil.escapeLike(tableName);\n String[] schemaAndTable = escapedTableName....
"static java.sql.Time parseSqlTime(final String value) {\n try {\n return new Time(getSqlTimeFormat().parse(value).getTime());\n } catch (ParseException e) {\n return throwRuntimeParseException(value, e, sqlTimeFormat);\n }\n}\n"
"public boolean accept(File dir, String name) {\n return name.toLowerCase(Locale.ENGLISH).endsWith(\"String_Node_Str\");\n}\n"
"ActivityRecord findTaskLocked(ActivityRecord target) {\n Intent intent = target.intent;\n ActivityInfo info = target.info;\n ComponentName cls = intent.getComponent();\n if (info.targetActivity != null) {\n cls = new ComponentName(info.packageName, info.targetActivity);\n }\n final int userId ...
"protected IViewerReportDesignHandle getDesignHandle(HttpServletRequest request) {\n IViewerReportDesignHandle design = null;\n IReportRunnable reportRunnable = null;\n boolean isValidDocument = ParameterAccessor.isValidFilePath(this.reportDocumentName);\n if (isValidDocument) {\n IReportDocument rep...
"public static void tryMatchOrError(ArrayDeque<HtmlTagEntry> openStack, ArrayDeque<HtmlTagEntry> closeQueue, ErrorReporter errorReporter) {\n while (!openStack.isEmpty() && !closeQueue.isEmpty()) {\n if (!matchOrError(openStack.pollFirst(), closeQueue.pollFirst(), errorReporter)) {\n return false;\...
"private void checkSchema() {\n boolean canEditSchema = false;\n boolean noSchema = false;\n for (IElementParameter param : this.getElementParameters()) {\n if (param.isShow(getElementParameters()) && param.getFieldType().equals(EParameterFieldType.SCHEMA_TYPE)) {\n canEditSchema = true;\n ...
"public void removeSkill(String skillName) {\n DBSkills skillsdb = RCPlayer.plugin.getDatabase().find(DBSkills.class).where().ieq(\"String_Node_Str\", skillName).where().ieq(\"String_Node_Str\", player.getName()).findUnique();\n if (RCPermissions.removeParent(player, skillsdb.getGroupName())) {\n decreaseS...
"public void onUpdate(ItemStack is, World world, Entity entity, int slot, boolean isHeld) {\n if (world.isRemote) {\n if (is.hasTagCompound() && entity instanceof EntityPlayer) {\n NBTTagCompound nbt = ItemUtil.getNBT(is, false);\n currentBiome = nbt.getByte(\"String_Node_Str\");\n ...
"public void write(final String filename) throws DITAOTException {\n final File inputFile = new File(filename);\n final File outputFile = new File(filename + FILE_EXTENSION_TEMP);\n try {\n final Transformer transformer = TransformerFactory.newInstance().newTransformer();\n final XMLReader reader...
"private Collection<URL> getScripts(FileModel userRulesFileModel) {\n String userRulesDirectory = userRulesFileModel == null ? null : userRulesFileModel.getFilePath();\n List<URL> scripts = scanner.scan(GROOVY_RULES_EXTENSION);\n if (userRulesPath == null) {\n return scripts;\n }\n final List<URL>...
"private Node tryFoldTypeof(Node originalTypeofNode) {\n Preconditions.checkArgument(originalTypeofNode.getType() == Token.TYPEOF);\n Node argumentNode = originalTypeofNode.getFirstChild();\n if (argumentNode == null || !NodeUtil.isLiteralValue(argumentNode, true)) {\n return originalTypeofNode;\n }\...
"private static Set<Integer> checkNodeStore(String storeName, Set<Integer> propertySet) throws IOException {\n File nodeStore = new File(storeName);\n if (!nodeStore.exists()) {\n throw new IOException(\"String_Node_Str\" + storeName);\n }\n File idGenerator = new File(storeName + \"String_Node_Str\"...
"public String createInstanceIDVar(final BPELPlanContext context, final String templateId) {\n final String instanceURLVarName = (context.getRelationshipTemplate() == null ? \"String_Node_Str\" : \"String_Node_Str\") + \"String_Node_Str\" + ModelUtils.makeValidNCName(templateId) + \"String_Node_Str\" + context.getId...
"static JSONObject createAppearanceChangeJson(AbstractProperty prop, UUID objectUuid) {\n boolean visibilityChange = prop.getName().equalsIgnoreCase(\"String_Node_Str\");\n if (visibilityChange) {\n boolean newValue = PropertyHelper.getValueBool(prop);\n return createSetVisibleCommandJson(newValue, ...
"public void releaseFileChannelForReading(final GateID gateID, final FileID fileID, boolean deleteFile) {\n try {\n getReadableSpillingFile(gateID, fileID).unlockReadableFileChannel();\n } catch (Exception e) {\n LOG.error(StringUtils.stringifyException(e));\n }\n}\n"
"public void showResults() {\n super.showResults();\n if (ConfigurationProperties.getPropertyBool(\"String_Node_Str\")) {\n log.info(\"String_Node_Str\" + this.currentStat.ingAttemptsSuccessfulPatches.size() + \"String_Node_Str\" + Stats.sum(currentStat.ingAttemptsSuccessfulPatches) + \"String_Node_Str\" +...
"private static int getTagLength(int tag) {\n return TAG_LENGTH_MAP.get(tag);\n}\n"
"public void testMultipleSources() {\n List<String> fastFoodVerify = new ArrayList<String>();\n EventList<String> wendys = fastFood.createMemberList();\n wendys.add(\"String_Node_Str\");\n wendys.add(\"String_Node_Str\");\n wendys.add(\"String_Node_Str\");\n wendys.add(\"String_Node_Str\");\n Event...
"public static MultipleSequenceAlignment<ProteinSequence, AminoAcidCompound> toProteinMSA(MultipleAlignment msta) throws CompoundNotFoundException {\n Group g = msta.getAtomArrays().get(0)[0].getGroup();\n if (!(g instanceof AminoAcid)) {\n throw new IllegalArgumentException(\"String_Node_Str\" + \"String_...
"public List<TdColumn> fillColumns(ColumnSet colSet, DatabaseMetaData dbJDBCMetadata, List<String> columnFilter, String columnPattern) {\n if (colSet == null || dbJDBCMetadata == null) {\n return null;\n }\n List<TdColumn> returnColumns = new ArrayList<TdColumn>();\n Map<String, TdColumn> columnMap =...
"public void run() {\n final String outputPath = layoutData.getOutputLabel().getText();\n final boolean isPreprocess = preprocessEnabled.getSelection();\n final List<String> selectedFiles = inputLayoutData.getSelectedFiles();\n final boolean isBuildMatrix = buildMAtrix.getSelection();\n final String wind...
"protected void serviceStop() throws Exception {\n if (drainEventsOnStop) {\n blockNewEvents = true;\n LOG.info(\"String_Node_Str\");\n synchronized (waitForDrained) {\n while (!drained && eventHandlingThread.isAlive()) {\n waitForDrained.wait(1000);\n LO...
"public void writeInteger(int v) {\n throw new UnsupportedOperationException(getClass().getName());\n}\n"
"private boolean isTemplatePropertiesMatchCandidateFilters(NodeTemplate nodeTemplate, MatchingConfiguration matchingConfiguration, LocationResourceTemplate candidate, IndexedNodeType candidateType, Map<String, IndexedCapabilityType> capabilityTypes) {\n if (!isTemplatePropertiesMatchCandidateFilter(nodeTemplate.getP...
"public String getAppStoreListForPlatform(int platform, int listType, String category, int count, Model model) throws URISyntaxException {\n logger.info(\"String_Node_Str\" + platform + \"String_Node_Str\" + listType + \"String_Node_Str\" + count);\n AppStoreList appStoreList = appStoreService.getAppStoreListForP...
"private OozieJob createOozieJobObject(AbstractJob job, AbstractWorkflowDataModel wfdm) {\n OozieJob ret = null;\n if (job instanceof JavaJob) {\n } else if (job instanceof PerlJob) {\n ret = new OozieJob(job, job.getAlgo() + \"String_Node_Str\" + this.jobs.size(), wfdm.getEnv().getOOZIE_WORK_DIR());\n ...
"public synchronized CoverageReport getResult() {\n if (report != null) {\n final CoverageReport r = report.get();\n if (r != null) {\n return r;\n }\n }\n final JacocoReportDir reportFolder = getJacocoReport();\n try {\n CoverageReport r = new CoverageReport(this, rep...
"public static CartridgeBean convertCartridgeToCartridgeDefinitionBean(Cartridge cartridgeInfo) {\n CartridgeBean cartridge = new CartridgeBean();\n cartridge.setType(cartridgeInfo.getType());\n cartridge.setProvider(cartridgeInfo.getProvider());\n cartridge.setCategory(cartridgeInfo.getCategory());\n ca...
"public void setDateFormat(String dateFormat) {\n String prevDateFormat = getDateFormat();\n super.setDateFormat(dateFormat);\n if (!dateFormat.equals(prevDateFormat)) {\n if (cachedTemplateDateFormats != null) {\n for (int i = 0; i < CACHED_TDFS_LENGTH; i += CACHED_TDFS_ZONELESS_INPUT_OFFS) ...
"public int getUnitSize() {\n if (unit_size == null || unit_size.isEmpty()) {\n return 0;\n }\n return Integer.parseInt(unit_size);\n}\n"
"public void testValidateRequestInvalidCredential() throws Exception {\n CallerOnlyCredential coc = new CallerOnlyCredential(USER1);\n withMessageContext(ap, ch).withCredential(coc).withBeanInstance(null);\n try {\n AuthenticationStatus status = cfam.validateRequest(req, res, hmc);\n fail(\"Strin...
"private static List<Color> getCurrentColorList(List<?> columnKeys) {\n List<Color> colorList = new ArrayList<>();\n int colorSize = ChartDecorator.COLOR_LIST.size();\n for (Object columnKey : columnKeys) {\n int groupSize = Integer.parseInt(columnKey.toString());\n colorList.add(ChartDecorator.C...
"public Rectangle call() throws Exception {\n TableView<?> table = getRealComponent();\n TableColumn col = null;\n if (m_columns.size() == 0) {\n col = table.getVisibleLeafColumn(column);\n } else {\n col = m_columns.get(column);\n }\n table.scrollTo(row);\n table.scrollToColumn(col);...
"private boolean readTxn() {\n int count = 0;\n while (true) {\n long txn = txMem.getLong(TableUtils.TX_OFFSET_TXN);\n if (txn == this.txn) {\n return false;\n }\n Unsafe.getUnsafe().loadFence();\n if (txn == txMem.getLong(TableUtils.TX_OFFSET_TXN_CHECK)) {\n ...
"protected void configure() {\n bind(QueueReaderFactory.class).in(Scopes.SINGLETON);\n install(new DataFabricFacadeModule());\n bind(ProgramStateWriter.class).to(MessagingProgramStateWriter.class);\n bind(RuntimeStore.class).to(RemoteRuntimeStore.class);\n install(createStreamFactoryModule());\n bind(...
"public void testTraceControlComponents() throws Exception {\n fProxy.setTestFile(fTestFile);\n fProxy.setScenario(SCEN_INIT_TEST);\n ITraceControlComponent root = TraceControlTestFacility.getInstance().getControlView().getTraceControlRoot();\n IHost host = new Host(new SystemProfile(\"String_Node_Str\", tr...
"public String applyColour(Color[] palette, Color oldBackground, Color oldForeground, boolean[] oldFormat, Color newBackground, Color newForeground, boolean[] newFormat) {\n StringBuilder rc = new StringBuilder();\n int colourindex1back = -1, colourindex2back = -1;\n int colourindex1fore = -1, colourindex2fore...
"private void createNameText(Composite content) {\n final Label nameLabel = new Label(content, SWT.CHECK);\n nameLabel.setText(Messages.getString(\"String_Node_Str\"));\n GridData labelData = new GridData();\n labelData.horizontalSpan = 1;\n labelData.verticalIndent = 5;\n nameLabel.setLayoutData(labe...
"public static <P1, F1, S1> SST<P1, F1, S1> union(SST<P1, F1, S1> sst1, SST<P1, F1, S1> sst2, BooleanAlgebraSubst<P1, F1, S1> ba) {\n if (sst1.isEmpty && sst2.isEmpty)\n return getEmptySST(ba);\n if (sst1.isEmpty)\n return (SST<P1, F1, S1>) sst2.clone();\n if (sst2.isEmpty)\n return (SST<P...
"public void initialize() throws Exception {\n publisherURLHttp = getPublisherURLHttp();\n storeURLHttp = getStoreURLHttp();\n endpointUrl = backEndServerUrl.getWebAppURLHttp() + \"String_Node_Str\";\n apiStore = new APIStoreRestClient(storeURLHttp);\n apiPublisher = new APIPublisherRestClient(publisherU...
"public void startIMUCalibration() throws RemoteException {\n if (!getDroneMgr().getDrone().getCalibrationSetup().startCalibration()) {\n Bundle extrasBundle = new Bundle(1);\n extrasBundle.putString(Extra.EXTRA_CALIBRATION_IMU_MESSAGE, context.getString(R.string.failed_start_calibration_message));\n ...
"public void runPacket_whenBroken() throws Exception {\n Operation op = new DummyOperation();\n setCallId(op, 1000 * 1000);\n Packet packet = toPacket(local, remote, op);\n byte[] bytes = packet.toByteArray();\n for (int k = 0; k < bytes.length; k++) {\n bytes[k]++;\n }\n operationRunner.run...
"private void readText(HttpServletRequest request, Item item, String element, String qualifier, boolean repeated, String lang) {\n String dcname = element;\n if (qualifier != null) {\n dcname = element + \"String_Node_Str\" + qualifier;\n }\n List vals = new LinkedList();\n if (repeated) {\n ...
"public void complete(CompleteOperation completeOperation, InputComponent<?, Object> input, ShellContext context, String typedValue, ConverterFactory converterFactory) {\n SelectComponent<?, Object> selectComponent = (SelectComponent<?, Object>) input;\n Converter<Object, String> itemLabelConverter = (Converter<O...
"public String request(int sid, String msg) {\n int playerIndex = 0;\n for (int i = 0; i < playerNum; i++) {\n if (allPlayers[i].SID == sid) {\n playerIndex = i;\n break;\n }\n }\n String result = \"String_Node_Str\";\n switch(gameState) {\n case INIT:\n ...
"public void createMissingDescription() {\n SyncPolicyTO policy = new SyncPolicyTO();\n policy.setSpecification(new SyncPolicySpec());\n Throwable t = null;\n try {\n createPolicy(policyService, PolicyType.SYNC, policy);\n fail();\n } catch (SyncopeClientCompositeErrorException sccee) {\n ...
"public boolean saveSSHKey(final Network network, final NicProfile nic, final VirtualMachineProfile vm, final String sshPublicKey) throws ResourceUnavailableException {\n if (vm != null && vm.getVirtualMachine().getState().equals(VirtualMachine.State.Running)) {\n throw new CloudRuntimeException(\"String_Node...
"public static void addFlag(CommandContext args, Player player, HumanNPC npc) {\n if (!args.hasFlag('a') && !args.hasFlag('g') && !args.hasFlag('m') && !args.hasFlag('p')) {\n player.sendMessage(ChatColor.GRAY + \"String_Node_Str\");\n return;\n }\n Guard guard = npc.getType(\"String_Node_Str\");...
"public void shouldExecuteBoot2Docker() {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n map.put(\"String_Node_Str\", \"String_Node_Str\");\n CubeConfiguration cubeConfiguration = CubeC...
"private Map<ImportItem, List<ImportItem>> getTestCaseItemMap(List<ImportItem> items) {\n Map<ImportItem, List<ImportItem>> map = new HashMap<ImportItem, List<ImportItem>>();\n ITestContainerProviderService testContainerService = null;\n if (GlobalServiceRegister.getDefault().isServiceRegistered(ITestContainer...
"public boolean isRendererForitem(Item item, PreviewProperties properties) {\n return item instanceof EdgeItem && properties.getBooleanValue(PreviewProperty.SHOW_EDGES) && properties.getBooleanValue(PreviewProperty.DIRECTED) && (Boolean) item.getData(EdgeItem.DIRECTED) && !(Boolean) item.getData(EdgeItem.SELF_LOOP) ...