content
stringlengths
40
137k
"public Object getProperty(String name) {\n int numBands = sampleModel.getNumBands();\n if (name.equals(\"String_Node_Str\") || name.equals(\"String_Node_Str\")) {\n if (colorMap == null)\n train();\n return colorMap;\n }\n return super.getProperty(name);\n}\n"
"public void addSchedule(ApplicationId applicationId, ScheduleSpecification scheduleSpec) throws NotFoundException, SchedulerException, AlreadyExistsException, BadRequestException {\n ApplicationSpecification appSpec = store.getApplication(applicationId);\n if (appSpec == null) {\n throw new ApplicationNot...
"private static boolean linearSearch(String listOfIme, final String key) {\n if (TextUtils.isEmpty(listOfIme) || TextUtils.isEmpty(key))\n return false;\n if (AnyApplication.DEBUG)\n Log.d(TAG, \"String_Node_Str\" + listOfIme);\n for (final String ime : arrayOfIme) {\n if (AnyApplication.D...
"public void onClick(View v) {\n Log.i(TAG, \"String_Node_Str\");\n unlockIcon.setClickable(false);\n String enteredPassphrase = enterPassphraseEditText.getText().toString();\n if (validatePassphrase(enteredPassphrase)) {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n To...
"private Set<MetadataSearchResultRecord> filterAuthorizedSearchResult(Set<MetadataSearchResultRecord> results) throws Exception {\n Principal principal = authenticationContext.getPrincipal();\n final Predicate<EntityId> filter = authorizationEnforcer.createFilter(principal);\n return new MetadataSearchResponse...
"private void jumpToRecommendationLocationAndHighlightRecommendation(AjaxRequestTarget aTarget) throws IOException {\n actionShowSelectedDocument(aTarget, documentService.getSourceDocument(this.getModelObject().getProject(), currentRecommendation.getDocumentName()), currentRecommendation.getOffset().getBeginCharacte...
"public View getView(int position, View convertView, ViewGroup parent) {\n int numHeadersAndPlaceholders = getHeadersCount() * mNumColumns;\n if (position < numHeadersAndPlaceholders) {\n View headerViewContainer = mHeaderViewInfos.get(position / mNumColumns).viewContainer;\n if (position % mNumColu...
"public String getSeeAlso() {\n StringBuffer result = new StringBuffer();\n result.append(\"String_Node_Str\");\n String className;\n if (_target == null) {\n className = _targetClass.getName();\n } else {\n className = _target.getClassName();\n }\n String docName = \"String_Node_Str\...
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n Object value = unmarshalRecord.getStringBuffer().toString();\n boolean isCDATA = unmarshalRecord.isBufferCDATA();\n unmarshalRecord.resetStringBuffer();\n XMLField toWrite = xmlField;\n if (xmlField.isCDATA() != isC...
"public OSimpleObject<?> parse(Reader reader) {\n XMLEventReader2 xmlReader = StaxUtil.newXMLEventReader(reader);\n xmlReader.nextEvent();\n xmlReader.nextEvent();\n String text = xmlReader.getElementText();\n EdmSimpleType<?> type = EdmSimpleType.STRING;\n if (settings != null && settings.parseType !...
"public DataStreamsPipelineSpec build() {\n return new DataStreamsPipelineSpec(stages, connections, resources, driverResources, clientResources, stageLoggingEnabled, batchIntervalMillis, extraJavaOpts, numOfRecordsPreview, stopGracefully);\n}\n"
"public void setOutputStream(final OutputStream outputStream) {\n super.setOutputStream(wrap(outputStream));\n}\n"
"public static String getKeyStrokeRepresentation(KeyStroke ks) {\n return ks.toString().replaceFirst(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private List<Attribute<?, ?>> sortInAscendingOrder(final Set<?> jpaAttributes) {\n List<Attribute<?, ?>> jpaAttributeList = new ArrayList<Attribute<?, ?>>();\n Iterator itr = null;\n Attribute<?, ?> smallestJpaAttribute;\n Attribute<?, ?> currentJpaAttribute;\n while (!jpaAttributes.isEmpty()) {\n ...
"public static JsonObject merge(JsonObject x, JsonObject y) {\n for (Map.Entry<String, JsonElement> entry : y.entrySet()) {\n String key = entry.getKey();\n JsonElement newDataElement = y.get(key);\n if (entry.getValue().isJsonObject() && newDataElement != null) {\n newDataElement = m...
"public JobStepStatusEnum checkStatus() {\n if (null == mrJobID) {\n this.output.append(\"String_Node_Str\");\n return JobStepStatusEnum.WAITING;\n }\n JobStepStatusEnum status = null;\n try {\n final Pair<RMAppState, FinalApplicationStatus> result = new HadoopStatusGetter(yarnUrl, mrJo...
"public Sound transform(Sound sound) {\n int threshold = 100;\n int channelNum = sound.getChannelNum();\n Sound builtSound = new Sound(new long[sound.getSamples().length], sound.getNbBytesPerSample(), sound.getSampleRate(), channelNum);\n List<Integer> freqs;\n this.log(new LogEvent(LogLevel.VERBOSE, \"S...
"public IValue checkArguments(MarkerList markers, ICodePosition position, IContext context, IValue instance, IArguments arguments, ITypeContext typeContext) {\n int len = arguments.size();\n IType parType;\n if (instance == null && (this.modifiers & Modifiers.PREFIX) == Modifiers.PREFIX) {\n parType = t...
"public void testTTLonCQL3_0() throws Exception {\n if (propertyMap == null) {\n propertyMap = new HashMap();\n propertyMap.put(PersistenceProperties.KUNDERA_DDL_AUTO_PREPARE, \"String_Node_Str\");\n propertyMap.put(CassandraConstants.CQL_VERSION, CassandraConstants.CQL_VERSION_3_0);\n }\n ...
"public FunctionResult execute(Evaluator evaluator, String arguments) throws FunctionException {\n Object[] params = arguments.split(\"String_Node_Str\");\n String text = (String) params[0];\n if (text.length() == 2) {\n text = \"String_Node_Str\";\n } else {\n text = text.substring(1, text.le...
"public void testSourceQueryIV1withDistinct() throws Exception {\n this.genNotDistinctBasicIV();\n this.closeArchiveWriter();\n DataEngineContext deContext2 = newContext(DataEngineContext.MODE_PRESENTATION, fileName, fileName);\n myPreDataEngine = DataEngine.newDataEngine(deContext2);\n QueryDefinition b...
"public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\n final HttpServletRequest req = (HttpServletRequest) request;\n final HttpServletResponse rsp = (HttpServletResponse) response;\n final Continuation cont = ContinuationSupport.getC...
"public Map<String, List<String>> getGroups(final String value) {\n final Map<String, List<String>> res = new HashMap<String, List<String>>();\n final StringBuilder buf = new StringBuilder();\n int previousEnd = 0;\n final Matcher m = groupPattern.matcher(value);\n while (m.find()) {\n buf.append(...
"public void updateServerSide() {\n if (ic2EnergySink == null) {\n setErrorState(EnumErrorCode.NOENERGYNET);\n return;\n }\n ic2EnergySink.updateEntity();\n super.updateServerSide();\n if (forceCooldown) {\n setErrorState(EnumErrorCode.FORCEDCOOLDOWN);\n return;\n }\n if...
"private static CompletableFuture<Location> step(ThreadReference thread, IEventHub eventHub, int stepSize, int stepDepth) {\n CompletableFuture<Location> future = new CompletableFuture<>();\n StepRequest request = thread.virtualMachine().eventRequestManager().createStepRequest(thread, stepSize, stepDepth);\n e...
"public void initRecordReader(GuaguaFileSplit fileSplit) throws IOException {\n Configuration conf = new Configuration();\n String pigSchema = super.props.getProperty(\"String_Node_Str\");\n LOG.debug(\"String_Node_Str\", pigSchema);\n conf.set(\"String_Node_Str\", pigSchema);\n String requiredFieldList ...
"public void processCommand(ICommandSender sender, String[] args) {\n if (!Log.isDebugEnabled()) {\n sendMessage(sender, \"String_Node_Str\");\n return;\n }\n if (args.length == 0) {\n for (String s : (EnumChatFormatting.GREEN + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str...
"private Object getParameterObject(String key, String value) {\n ParameterHandle temp = findParameter(key);\n if (temp instanceof ScalarParameterHandle) {\n ScalarParameterHandle handle = (ScalarParameterHandle) temp;\n String formate = handle.getPattern();\n String dataType = handle.getDataT...
"public void deployApplication(String appName, ReadableArchive cloudArchive) {\n logger.entering(getClass().getName(), \"String_Node_Str\");\n Set<Plugin> installedPlugins = getPlugins();\n ServiceMetadata appServiceMetadata = serviceDependencyDiscovery(appName, cloudArchive, installedPlugins);\n Set<Provis...
"public StubRequestBuilder withMethodHead() {\n this.methods.add(HttpMethod.HEAD.name());\n return this;\n}\n"
"public void evaluate_shouldEvaluateAnEncounterAndObsDataSetDefinitionAllEncounterObsValuesInReportRow() throws Exception {\n executeDataSet(XML_ENCOUNTER_DATASET);\n executeDataSet(XML_OBS_GROUP_DATASET);\n executeDataSet(XML_FORM_DATASET);\n Form form = Context.getFormService().getForm(2);\n Encounter ...
"public void destroy() {\n Integer counter = ObjectContext.getInstance().getContextComponent(CTX_CREATED);\n if (counter == 0) {\n try {\n List<ContextLifecycleListener> contextListener = Controller.getInstance().getListeners(ContextLifecycleListener.class);\n for (ContextLifecycleLis...
"public String encode(char[] immune, String input) {\n StringBuilder sb = new StringBuilder();\n for (int offset = 0; offset < input.length(); ) {\n final int point = input.codePointAt(offset);\n if (Character.isBmpCodePoint(point)) {\n sb.append(encodeCharacter(immune, (char) point));\n ...
"public void addThreeCompartments() {\n addFieldCompartment();\n extractMethodFigure.setBorder(new LineBorder());\n extractMethodFigure.setBackgroundColor(DecorationConstants.entityColor);\n add(extractMethodFigure);\n add(methodFigure);\n}\n"
"public void actionPerformed(String topicName, Message m) {\n GPSPoseMessage gpsM = (GPSPoseMessage) m;\n zoomLevel = getMapTree().getViewer().getZoom();\n getMapTree().getViewer().setDisplayPosition(new Coordinate(gpsM.getLatitude(), gpsM.getLongitude()), zoomLevel);\n addPointsToMapTree(Color.RED, new Loc...
"private List<Arc> getBackwardsStar(Vertex v) {\n List<Arc> bs = new ArrayList<Arc>();\n if (isTag[v.goal] && v.start == v.end - 1) {\n List<Vertex> tails = new ArrayList<Vertex>();\n double score = iScore[v.start][v.end][v.goal];\n Arc arc = new Arc(tails, v, score);\n bs.add(arc);\n ...
"public void process(I input, D derivX, D derivY, D derivXX, D derivYY, D derivXY) {\n intensity.reshape(input.width, input.height);\n if (medianImage == null) {\n medianImage = (I) input._createNew(input.width, input.height);\n }\n medianFilter.process(input, medianImage);\n try {\n m.invo...
"public static org.hl7.fhir.dstu2016may.model.QuestionnaireResponse.QuestionnaireResponseItemComponent convertQuestionnaireResponseItemComponent(org.hl7.fhir.dstu3.model.QuestionnaireResponse.QuestionnaireResponseItemComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n ...
"public HttpURLConnection getHttpURLConnection(String url, HttpMethod method) throws IOException {\n String oAuthNonce = String.valueOf(new SecureRandom().nextLong());\n Long oAuthTimestamp = System.currentTimeMillis() / 1000;\n String signature = getSignature(url, method, oAuthNonce, oAuthTimestamp);\n Str...
"public Collection<Var> requiredVars() {\n ArrayList<Var> res = new ArrayList<Var>();\n for (Var c : keepOpenVars) {\n if (c.storage() == VarStorage.ALIAS) {\n res.add(c);\n }\n }\n if (mode == WaitMode.EXPLICIT || mode == WaitMode.TASK_DISPATCH) {\n for (Var v : waitVars) {\...
"public static TCPSocketManager getSocketManager(String host, int port, int delay) {\n if (host == null || host.length() == 0) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n if (port <= 0) {\n port = DEFAULT_PORT;\n }\n if (delay == 0) {\n delay = DEFAULT_RECONNEC...
"public void close() throws ExecutionException, InterruptedException {\n executor.shutdown();\n if (dataProvider != null) {\n final AsyncReadWriteTransaction t = dataProvider.newReadWriteTransaction();\n t.delete(LogicalDatastoreType.CONFIGURATION, SF_ENTRY_IID);\n t.delete(LogicalDatastoreTy...
"private void cleanTimePortion(Calendar d) {\n d.set(Calendar.HOUR_OF_DAY, 0);\n d.set(Calendar.MINUTE, 0);\n d.set(Calendar.SECOND, 0);\n d.set(Calendar.MILLISECOND, 0);\n}\n"
"public void initTextures(ISet set, ContentVirtualArray contentVA, StorageVirtualArray storageVA) {\n int textureWidth = storageVA.size();\n int textureHeight = numberOfElements = contentVA.size();\n this.storageVA = storageVA;\n this.contentVA = contentVA;\n this.set = set;\n numberOfTextures = (int)...
"protected EmvCard extractCommonsCardData(final byte[] pGpo) throws CommunicationException {\n EmvCard card = null;\n byte[] data = TlvUtil.getValue(pGpo, EmvTags.RESPONSE_MESSAGE_TEMPLATE_1);\n if (data != null) {\n data = ArrayUtils.subarray(data, 2, data.length);\n } else {\n card = extract...
"public LinkedTrackPoint apply(LinkedTrackPoint in) {\n long newTime = (long) (startTime + (in.getTime().longValue() - startTime) * multiplier);\n return DefaultLinkedWayPoint.of(new DefaultWayPoint(in.getLatitude(), in.getLongitude(), in.getElevation(), Long.valueOf(newTime)), in.getLink(), in.getOverallDistance...
"public boolean hasErrors() {\n return _errorList.size() > 0;\n}\n"
"public boolean execute() {\n if (++executionCount > 10) {\n fail(\"String_Node_Str\");\n }\n if (executionCount == 9) {\n finishTest();\n }\n return executionCount < 10;\n}\n"
"void render(ViewState state) {\n if (adapter != null) {\n if (state.cause() == null) {\n adapter.setState(state);\n if (state.isLoaded() && state.filteredItems().size() == 0) {\n getEmptyView().setVisibility(View.VISIBLE);\n if (state.items().size() > 0) {\...
"public List<ClusterPoint> getClusterPoints(String datasetURL, List<String> features, int noOfClusters) throws ModelServiceException {\n ClassLoader tccl = Thread.currentThread().getContextClassLoader();\n try {\n List<ClusterPoint> clusterPoints = new ArrayList<ClusterPoint>();\n if (datasetURL == ...
"public void buildpackAdditons() throws Exception {\n fileCreator.createFiles();\n File targetFile = new File(targetDir, expectedPath);\n String buildpackContent = FileUtils.readFileToString(targetFile);\n assertEquals(expectedBuildpackcontent, buildpackContent);\n}\n"
"public List<Data> getAsDataList() {\n final List<Data> dataList = new ArrayList<Data>(getItemQueue().size());\n for (QueueItem item : getItemQueue()) {\n if (store.isEnabled() && item.getData() == null) {\n try {\n load(item);\n } catch (Exception e) {\n ...
"protected void putAllObjectInternal(final Map<? extends Object, ? extends Object> m) {\n final NodeEngine nodeEngine = getNodeEngine();\n for (Entry<? extends Object, ? extends Object> entry : m.entrySet()) {\n putInternal(getService().toData(entry.getKey()), getService().toData(entry.getValue()), -1, nul...
"protected void waitForFileExists(String recordingFile) {\n boolean exists = false;\n String[] pathToMedia_ = recordingFile.split(\"String_Node_Str\");\n String protocol = \"String_Node_Str\";\n String path = \"String_Node_Str\";\n if (pathToMedia_.length > 1) {\n protocol = pathToMedia_[0];\n ...
"private void startDialog() {\n String dialogId = PrefsHelper.getPrefsHelper().getPref(PrefsHelper.PREF_PUSH_MESSAGE_DIALOG_ID, null);\n int userId = PrefsHelper.getPrefsHelper().getPref(PrefsHelper.PREF_PUSH_MESSAGE_USER_ID, ConstsCore.NOT_INITIALIZED_VALUE);\n QBDialog dialog = ChatDatabaseManager.getDialogB...
"public Token addReverse(Token leftArgument) throws IllegalActionException {\n try {\n int typeInfo = TypeLattice.compare(leftArgument, BaseType.STRING);\n if ((typeInfo == CPO.LOWER || typeInfo == CPO.SAME)) {\n Token[] arr = { leftArgument };\n return new ArrayToken(arr).add(thi...
"public static String getTableName(Class<? extends ModelWithId> model) {\n return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, model.getSimpleName()) + \"String_Node_Str\";\n}\n"
"public Date getSubmitDate() {\n if (submitDate == null) {\n return null;\n }\n return new Date(this.submitDate.getTime());\n}\n"
"public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) throws DescriptorException {\n if (this.isReadOnly()) {\n return;\n }\n Object attributeValue = this.getAttributeValueFromObject(object);\n if (attributeValue == null) {\n row.p...
"private ICompletionProposal[] getTagProposalsFromCACors(IAssistState assistState) throws BadLocationException {\n Assert.isNotNull(assistState, \"String_Node_Str\");\n ArrayList proposals = new ArrayList();\n ArrayList tagAssists = ((ICFEFileDocument) assistState.getIDocument()).getContentAssistManager().getT...
"public static String debugStringInner(Directive directive, String indent) {\n StringBuilder sb = new StringBuilder(\"String_Node_Str\");\n sb.append(\"String_Node_Str\" + indent);\n sb.append(directive.debugString(indent + \"String_Node_Str\"));\n sb.append(\"String_Node_Str\" + indent);\n return sb.toS...
"public void onBindViewHolder(ViewHolder holder, int position) {\n Context context = holder.card.getContext();\n final BaseIndexItem baseItem = mDataset.get(position);\n String description = baseItem.getDescription();\n if (baseItem instanceof InstanceIndexItem) {\n final InstanceIndexItem instanceIt...
"public TridentChunk get(int x, int z, boolean gen) {\n long key = z >= 0 ? ((long) x << 32) | z : (long) 1 << 31 | (((long) x << 32) | 0x7FFFFFFF & z);\n synchronized (this.lock) {\n TridentChunk chunk = this.chunks.get(key);\n if (chunk == null && gen) {\n chunk = new TridentChunk(this....
"private void loadWorldTiles() {\n System.out.println(\"String_Node_Str\");\n NSDate startDate = new NSDate();\n SKTextureAtlas tileAtlas = new SKTextureAtlas(\"String_Node_Str\");\n sharedBackgroundTiles = new NSMutableArray<>(1024);\n System.out.println(\"String_Node_Str\");\n for (int y = 0; y < WO...
"public AtlasGlossaryCategory updateCategory(AtlasGlossaryCategory glossaryCategory) throws AtlasBaseException {\n if (DEBUG_ENABLED) {\n LOG.debug(\"String_Node_Str\", glossaryCategory);\n }\n if (Objects.isNull(glossaryCategory)) {\n throw new AtlasBaseException(AtlasErrorCode.BAD_REQUEST, \"St...
"public synchronized String getNextAddress() {\n if (!enabled || !canCycle()) {\n return \"String_Node_Str\";\n }\n if (octets[2] >= 255) {\n if (octets[1] >= 255) {\n if (octets[0] >= 255) {\n octets[0] = 0;\n } else {\n ++octets[0];\n ...
"public double distance(Instance first, Instance second) {\n double sum_nominal = 0.0;\n double sum_continuous = 0.0;\n for (int i = 0; i < first.numAttributes(); i++) {\n if (first.attribute(i).isNominal()) {\n if (!first.attribute(i).equals(second.attribute(i)))\n sum_nominal...
"public void drawPoints(RenderProps props, Iterator<? extends RenderablePoint> iterator) {\n switch(props.getPointStyle()) {\n case POINT:\n {\n int size = props.getPointSize();\n if (size > 0) {\n setLightingEnabled(false);\n gl.g...
"public void uncaughtException(Thread t, Throwable e) {\n StackTraceElement[] stackTrace = e.getStackTrace();\n if (stackTrace.length > 0) {\n Logger logger = LoggerFactory.getLogger(stackTrace[0].getClassName());\n logger.debug(\"String_Node_Str\", t, e);\n } else {\n LOG.error(\"String_N...
"private void doRowSorting(StopSign stopSign) throws DataException {\n this.populator.getQuery().setOrdering(this.cachedSort);\n SortSpec spec = this.populator.getGroupProcessorManager().getGroupCalculationUtil().getSortSpec();\n if (spec != null && spec.length() > 0) {\n PassUtil.pass(this.populator, n...
"public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {\n if (qName.equals(\"String_Node_Str\")) {\n } else if (qName.equals(\"String_Node_Str\")) {\n String curComponent = attributes.getValue(\"String_Node_Str\");\n String curType = attribu...
"public int execute(final ExecutionContext context) {\n final ProjectFilesystem projectFilesystem = context.getProjectFilesystem();\n ImmutableSet<Path> ignorePaths = ImmutableSet.of();\n DirectoryTraversal traversal = new DirectoryTraversal(projectFilesystem.getFileForRelativePath(binDirectory), ignorePaths) ...
"public boolean isMetBy(GlobalProperties other) {\n if (this.partitioning != PartitionProperty.NONE) {\n if (this.partitioning == PartitionProperty.ANY) {\n if (other.partitioning == PartitionProperty.NONE) {\n return false;\n }\n } else if (other.partitioning != th...
"public void testLoopStdObjects() {\n final GraphTestBundle<ObjectVertex<Integer>, ObjectEdge<Integer>> bundle = GraphsForTests.loopStdObjects();\n final ObjectVertex<Integer> first = bundle.vertices.get(0);\n final DepthFirstSearch<ObjectVertex<Integer>, ObjectEdge<Integer>> dfs = new DepthFirstSearch<ObjectV...
"private void removeSourceMatadata(IConnection connection) {\n Node source = (Node) connection.getSource();\n if (source.isELTMapComponent()) {\n IMetadataTable table = connection.getMetadataTable();\n if (0 < source.countConnectionsUsingMetadata(table)) {\n return;\n }\n if...
"public boolean renderStatic(Vec3i translation, RenderHelper renderer, RenderBlocks renderBlocks, int pass) {\n super.renderStatic(translation, renderer, renderBlocks, pass);\n ForgeDirection d1 = ForgeDirection.NORTH;\n ForgeDirection d2 = ForgeDirection.SOUTH;\n ForgeDirection d3 = ForgeDirection.WEST;\n ...
"private void createEntityMessage(NetData.CreateEntityMessage message) {\n EntityRef newEntity = entitySerializer.deserialize(message.getEntity());\n if (newEntity == null) {\n logger.error(\"String_Node_Str\");\n } else if (newEntity.getComponent(NetworkComponent.class) == null) {\n logger.error...
"protected void populateModel(HttpServletRequest request, Map<String, Object> model) {\n String drugSetIds = (String) model.get(\"String_Node_Str\");\n String cachedDrugSetIds = (String) model.get(\"String_Node_Str\");\n if (cachedDrugSetIds == null || !cachedDrugSetIds.equals(drugSetIds)) {\n if (drugS...
"private void waitResponseFromAllPartitionsForPutAll(List<FutureEntriesTuple> futureEntriesTuples, long start, Map<Data, Boolean> markers) {\n Throwable error = null;\n for (FutureEntriesTuple tuple : futureEntriesTuples) {\n Future future = tuple.future;\n List<Map.Entry<Data, Data>> entries = tupl...
"public void getAllFlows(HttpRequest request, HttpResponder responder, String namespaceId) throws Exception {\n responder.sendJson(HttpResponseStatus.OK, lifecycleService.list(validateAndGetNamespace(namespaceId), ProgramType.FLOW));\n}\n"
"protected String toAmbiguousInjectString() {\n if (alternatives.length == 1) {\n return alternatives[0].toAmbiguousInjectString();\n } else if (selectedIndex != -1) {\n return alternatives[selectedIndex].toAmbiguousInjectString();\n } else {\n List<InjectionPlan<?>> alts = new ArrayList<>...
"public void init() throws DatabaseInitException, DatabaseRestartRequiredException, InconsistentModelsException {\n DatabaseSession databaseSession = createSession();\n try {\n if (getKeyValueStore().isNew()) {\n keyValueStore.createTable(CLASS_LOOKUP_TABLE, null, false);\n keyValueSt...
"public void route() {\n List<Point2D> bendPointList = null;\n Object object = this.getUserObject();\n Link link = null;\n Relation relation = null;\n LayoutHintItem layoutHintItem = null;\n boolean considerBendPoints = false;\n if (object instanceof Link) {\n link = (Link) object;\n ...
"public void testUpdatesSeedsOnFailuresAndAdditions() throws Exception {\n doTestUpdatesSeedsOnFailuresAndAdditions(true, false);\n}\n"
"public void run(MyWolf wolf, Object args) {\n if (!MyWolfPermissions.has(wolf.getOwner(), \"String_Node_Str\" + this.Name)) {\n return;\n }\n if (MyWolfSkill.hasSkill(wolf.Abilities, \"String_Node_Str\")) {\n if (args != null && args instanceof Boolean) {\n wolf.isPickup = (Boolean) a...
"public Realm getRealm(final Map<String, Object> query, final PipelineContext context) {\n final Platform platform = (Platform) query.get(\"String_Node_Str\");\n Utilities.checkNotNull(platform, \"String_Node_Str\");\n final String content = get(\"String_Node_Str\" + platform.getRegion().getTag().toLowerCase()...
"private String convertToStringValue(Object value, Type sdoType, QName xsdType) {\n if (value.getClass() == ClassConstants.CALENDAR) {\n if (sdoType.equals(SDOConstants.SDO_DATETIME)) {\n return toDateTime((Calendar) value);\n } else if (sdoType.equals(SDOConstants.SDO_TIME)) {\n ...
"public static <T extends IsRODAObject> void updatePartialJobReport(Plugin<T> plugin, ModelService model, IndexService index, Report reportItem, boolean replaceLastReportItemIfTheSame, Job cachedJob) {\n String jobId = getJobId(plugin);\n boolean retrieved = true;\n try {\n Report jobReport;\n tr...
"private void addZhaoUnsupervisedArgFeats(ZhaoObject zhaoArg, ZhaoObject zhaoArgNext, ZhaoObject zhaoArgLast, ArrayList<CoNLL09Token> argChildrenTokens, BinaryStrFVBuilder feats) {\n String feat;\n feat = sent.get(zhaoArg.getFarLeftChild()).getForm();\n feats.add(feat);\n feat = zhaoArgLast.getForm();\n ...
"public boolean onMenuItemClick(MenuItem item) {\n onImageClicked(mGvs.mCurrentSelection);\n return true;\n}\n"
"public void addRequiredCss(String requiredCss) {\n if (!requiredCssAdded.contains(requiredCss)) {\n styleBlock.append(\"String_Node_Str\").append(themeHandler.getCssUrl(getFacesContext(), requiredCss)).append(\"String_Node_Str\");\n requiredCssAdded.add(requiredCss);\n }\n}\n"
"public synchronized void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, final IProgressMonitor monitor) throws CoreException {\n RhogenDebugTarget target = null;\n setProcessFinished(false);\n rhodesLogHelper.stopLog();\n ConsoleHelper.cleanBuildConsole();\n ConsoleHelper.showBu...
"public IValue withType(IType type) {\n return type == Types.VOID ? this : null;\n}\n"
"private void showOustandingEnvelopeLog() {\n int dataAvailableCounter = 0;\n final int pos = this.outstandingEnvelopesAsIntBuffer.position();\n final int limit = this.outstandingEnvelopesAsIntBuffer.limit();\n for (int i = 0; i < this.outstandingEnvelopesAsIntBuffer.capacity(); ++i) {\n if (i < pos)...
"public Message poll() {\n if (consumerIdIterator == null || !consumerIdIterator.hasNext()) {\n consumerIdIterator = messageBuffer.keySet().iterator();\n }\n Message returnMsg = null;\n while (returnMsg == null && consumerIdIterator.hasNext()) {\n final VirtualSpoutIdentifier nextConsumerId = ...
"public int getRowSpan(ICellContent cell) {\n int groupLevel = getGroupLevel();\n int rowSpan = cell.getRowSpan();\n if (groupLevel >= 0) {\n Object generateBy = cell.getGenerateBy();\n if (generateBy instanceof CellDesign) {\n CellDesign cellDesign = (CellDesign) generateBy;\n ...
"protected void onClick() {\n if (enabled) {\n Dungeon.hero.handle(lastTarget.pos);\n }\n}\n"
"public static Object getSAPValue(SAPConnection connection, String value) {\n if (\"String_Node_Str\".equals(value)) {\n if (isContextMode(connection, connection.getClient())) {\n return connection.getClient();\n } else {\n return TalendQuoteUtils.addQuotes(connection.getClient())...
"private void cascadeMenuItemActionPerformed(java.awt.event.ActionEvent evt) {\n Iterator[] its = new Iterator[3];\n its[0] = schemaWindowMap.keySet().iterator();\n its[1] = mdxWindows.iterator();\n int sfi = 1;\n JInternalFrame sf = null;\n try {\n for (int i = 0; i < its.length; i++) {\n ...
"public void setUp() throws Exception {\n Databases databases = new Databases(asList(database.getMock()), new ArrayList<String>());\n defaultDBClearer = new DefaultDBClearer(databases, new HashSet<DbItemIdentifier>(), constraintsDisabler.getMock());\n database.returns(tableNames).getTableNames(SCHEMA);\n da...