content stringlengths 40 137k |
|---|
"public void serialize(Resource value, JsonGenerator gen, SerializerProvider serializers) throws IOException {\n if (gen.getOutputContext().getParent() == null) {\n value._context = Resource.CONTEXT;\n }\n String containingField = getContainingField(gen);\n String typeBackup = null;\n if (Immutabl... |
"public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (!super.equals(obj))\n return false;\n if (getClass() != obj.getClass())\n return false;\n ComponentDefinition other = (ComponentDefinition) obj;\n if (roles == null) {\n if (other.roles != null)\n ... |
"private void codeLocationsPush(ObjectReference code, Address ipLoc) throws InlinePragma {\n if (VALIDATE_REFS) {\n Address ip = ipLoc.loadAddress();\n Offset offset = ip.diff(code.toAddress());\n if (offset.sLT(Offset.zero()) || offset.sGT(Offset.fromIntZeroExtend(ObjectModel.getObjectSize(code... |
"protected void drawXLabels(float yPos) {\n float[] position = new float[] { 0f, 0f };\n BarData bd = (BarData) mCurrentData;\n int step = mCurrentData.getDataSetCount();\n for (int i = 0; i < mCurrentData.getXValCount(); i += mXLabels.mXAxisLabelModulus) {\n position[0] = i * step + i * mOriginalDat... |
"private int resolvePort(String url) {\n int port = extractPort(url);\n final SinglePortBindResolver.PortBindInfo portBindInfo = resolveBindPort(port);\n if (portBindInfo == null) {\n return port;\n }\n return portBindInfo.getBindPort();\n}\n"
|
"public void testReterive() throws BirtException {\n try {\n context.eval(\"String_Node_Str\");\n fail();\n } catch (BirtException e) {\n assertTrue(true);\n }\n assertEquals(\"String_Node_Str\", context.eval(\"String_Node_Str\"));\n assertEquals(\"String_Node_Str\", context.eval(\"S... |
"private static String loadUpdates(LoadingWindow window) {\n String notes = null;\n try {\n window.setStatus(\"String_Node_Str\");\n PatchNotesDownloader notesDownloader = new PatchNotesDownloader(PATCH_NOTES_LINK);\n notesDownloader.downloadVersionNotes(VERSION);\n notes = notesDownlo... |
"protected synchronized void tick() {\n if (Config.wimpMode) {\n if (this.getPressure() > 1.09F) {\n this.steam = (int) Math.floor((double) this.capacity * 1.09D);\n }\n } else {\n if (this.transporters != null && this.transporters.keySet() != null) {\n if (this.getPress... |
"public void shouldCreateSquarePolygon() throws Exception {\n float x = 10f;\n float y = 20f;\n float width = 25f;\n SquarePolygon square = new SquarePolygon(x, y, width);\n Polygon expectedPolygon = new Polygon(new float[] { x, y, x + width - 1, y, x + width - 1, y + width - 1, x, y + width - 1 });\n ... |
"public void setBound(boolean bound, int memFactor, long now) {\n if (mOwner == null) {\n Slog.wtf(TAG, \"String_Node_Str\" + this + \"String_Node_Str\");\n }\n final int state = bound ? memFactor : STATE_NOTHING;\n if (mBoundState != state) {\n if (mBoundState != STATE_NOTHING) {\n ... |
"public static void main(String[] args) {\n String serialPort;\n if (args.length == 1) {\n serialPort = args[0];\n } else {\n serialPort = Serial4JArduino.selectSerialPort();\n }\n JArduino arduino = new AnalogInOutSerial(serialPort);\n arduino.runArduinoProcess();\n}\n"
|
"public Optional<Geo> fetchCoordinates(String archId) {\n String url = API_URL_COORDINATES + encodeUrl(archId);\n Geo result = null;\n try {\n Optional<JSONObject> jsonObject = net.downloadJson(url);\n if (jsonObject.isPresent()) {\n double zone = jsonObject.get().getDouble(KEY_UTM_ZON... |
"public void calculateOffsets() {\n super.calculateOffsets();\n if (mDataNotSet)\n return;\n float diameter = getDiameter();\n float radius = diameter / 2f;\n PointF c = getCenterOffsets();\n mCircleBox.set(c.x - boxSize, c.y - boxSize, c.x + boxSize, c.y + boxSize);\n}\n"
|
"public void renderPathway(final GL2 gl, final AGLView containingView, final PathwayGraph pathway, final float fTextureTransparency, final boolean bHighlight) {\n Texture tmpPathwayTexture = loadPathwayTexture(pathway);\n tmpPathwayTexture.enable(gl);\n tmpPathwayTexture.bind(gl);\n if (bHighlight) {\n ... |
"public void testTTL() throws Exception {\n int ttl = 1;\n String ttlTable = \"String_Node_Str\";\n String noTtlTable = \"String_Node_Str\";\n DatasetProperties props = DatasetProperties.builder().add(Table.PROPERTY_TTL, String.valueOf(ttl)).build();\n getTableAdmin(CONTEXT1, ttlTable, props).create();\n... |
"String getHost() {\n return host == null ? \"String_Node_Str\" : host;\n}\n"
|
"public IProcess getProcessFromItem(Item item, boolean loadScreenshots) {\n if (CamelProcessItemImpl.class == item.getClass()) {\n RouteProcess process = null;\n process = new RouteProcess(item.getProperty());\n return process;\n }\n return null;\n}\n"
|
"public void doExecute() throws BuildException {\n Ivy ivy = getIvyInstance();\n IvySettings settings = ivy.getSettings();\n if (cache == null) {\n cache = settings.getDefaultCache();\n }\n if (xsl && xslFile == null) {\n throw new BuildException(\"String_Node_Str\");\n }\n if (module... |
"private void sendResponse(Channel channel, SocketAddress remoteAddress, int version, ChannelBuffer id, short type, ChannelBuffer content) {\n if (channel != null) {\n int length = 2 + 2 + id.readableBytes() + 2 + 4 + 8 + 2 + 2;\n ChannelBuffer response = ChannelBuffers.directBuffer(ByteOrder.LITTLE_EN... |
"public void onResultPropertiesChange(boolean isChanged) {\n getFormulaList().finishActiveActionMode();\n if (!isChanged) {\n formulaState = null;\n return;\n }\n if (formulaState != null) {\n getFormulaList().getUndoState().addEntry(formulaState);\n formulaState = null;\n }\n... |
"public TopLevel createCopy(TopLevel topLevel, String URIprefix, String displayId, String version) {\n checkReadOnly();\n if (URIprefix == null) {\n URIprefix = extractURIprefix(topLevel.getIdentity());\n URIprefix = checkURIprefix(URIprefix);\n } else {\n URIprefix = checkURIprefix(URIpre... |
"public AssetFileDescriptor openAssetFileLocal(Uri uri, String mode) throws FileNotFoundException {\n final long ident = Binder.clearCallingIdentity();\n try {\n return openAssetFileInner(uri, mode);\n } finally {\n Binder.restoreCallingIdentity(ident);\n }\n}\n"
|
"public void animateCheck() {\n changeBackground();\n ObjectAnimator objectAnimator;\n if (eventCheck) {\n objectAnimator = ObjectAnimator.ofFloat(this, \"String_Node_Str\", ball.xFin);\n } else {\n objectAnimator = ObjectAnimator.ofFloat(this, \"String_Node_Str\", ball.xIni);\n }\n obje... |
"public void wrapup() throws IllegalActionException {\n Time environmentTime = ThreadedComposite.this.getExecutiveDirector().getModelTime();\n if (ThreadedComposite.this._debugging) {\n ThreadedComposite.this._debug(\"String_Node_Str\", \"String_Node_Str\" + environmentTime);\n }\n synchronized (this... |
"private void propagateDatas(boolean isExecute) {\n String baseConnectorForCurrentNode = node.getConnectorFromName(currentConnector).getBaseSchema();\n if (outputdataContainer != null && (!outputdataContainer.getInputs().isEmpty() || !outputdataContainer.getOuputs().isEmpty())) {\n for (IODataComponent cur... |
"public AgentMessage handle(AgentMessage request) {\n CheckMetrics metrics = (CheckMetrics) request;\n MetricsStat stat = new MetricsStat(request);\n Parcel readings = new Parcel();\n StatsDProcessor processor = this.getAgent().getStatsDProcessor();\n if (processor != null) {\n Pattern filter = Pa... |
"private WordAnalysis analyzeWithoutCache(Token token) {\n String word = token.getText();\n String s = normalizeForAnalysis(word);\n if (s.length() == 0) {\n return WordAnalysis.EMPTY_INPUT_RESULT;\n }\n List<SingleAnalysis> result = analyzer.analyze(s);\n if (result.size() == 0) {\n res... |
"public synchronized void applyOutputProbes(List<Probe> list, double t1, ModelInfo info) {\n double maxStep = info.model.getMaxStepSize();\n boolean coincidesWithStep = (maxStep != -1 && TimeBase.modulo(t1, maxStep) == 0);\n for (Probe p : list) {\n if (!p.isActive() || TimeBase.compare(t1, p.getStartTi... |
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n updateSiteOrFinishActivity();\n if (savedInstanceState != null) {\n String roleValue = savedInstanceState.getString(KEY_SELECTED_ROLE);\n if (!TextUtils.isEmpty(roleValue)) {\n mRole = Role.fromS... |
"public void addComponent(ChatConversationComponent component) {\n Style style = document.getStyleSheet().addStyle(StyleConstants.ComponentElementName, document.getStyleSheet().getStyle(\"String_Node_Str\"));\n style.addAttribute(AbstractDocument.ElementNameAttribute, StyleConstants.ComponentElementName);\n Tr... |
"void addMeasurement(String name) {\n MeasurementSet measurementSet = getMeasurementSet();\n Measurement measurement = new Measurement();\n measurement.setName(name);\n measurementSet.adoptAndAppend(Measurement.safeDownCast(measurement.clone()));\n measurementValues.add(null);\n setModified(Operation.... |
"public void addressNoValidParametersTest() {\n given().param(\"String_Node_Str\", \"String_Node_Str\").when().get(getEndPointName()).then().assertThat().body(\"String_Node_Str\", is(GeocodingErrorCodes.INVALID_PARAMETER_VALUE)).statusCode(400);\n given().param(\"String_Node_Str\", \"String_Node_Str\").when().get... |
"public void updateFromFeed(Map<String, List<Map<String, String>>> data) {\n if (data != null) {\n Collection<FeedProvider> feeds = getVisibleFeedProviders();\n Map<String, Double> valuesMap = new HashMap<String, Double>();\n for (FeedProvider provider : feeds) {\n String feedId = pro... |
"public static CharBuffer getLineBuffer(Editor editor, int lline) {\n return CharBuffer.wrap(editor.getDocument().getChars(), getLineStartOffset(editor, lline), getLineCharCount(editor, lline));\n}\n"
|
"protected boolean buildJobWithMaven(JobExportType jobExportType, IProgressMonitor monitor) {\n String context = (contextCombo == null || contextCombo.isDisposed()) ? processItem.getProcess().getDefaultContext() : contextCombo.getText();\n try {\n String destination = getDestinationValue();\n int se... |
"public int getStubVersion() {\n return 92;\n}\n"
|
"public void onSink(INKFRequestContext aContext, DatabaseUtil util) throws Exception {\n IHDSNode details = aContext.sourcePrimary(IHDSNode.class);\n String existsSql = \"String_Node_Str\";\n String updateMetaSql;\n if (util.issueSourceRequest(\"String_Node_Str\", Boolean.class, new ArgByValue(\"String_Node... |
"protected void _message(String info) {\n Object[] message = new Object[1];\n message[0] = _messageComponent(StringUtilities.ellipsis(info, StringUtilities.ELLIPSIS_LENGTH_LONG));\n Object[] options = { \"String_Node_Str\" };\n JOptionPane.showOptionDialog(getContext(), message, \"String_Node_Str\", JOption... |
"public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception {\n Branch requirementsBranch = variableMap.getBranch(\"String_Node_Str\");\n Branch testProcedureBranch = variableMap.getBranch(\"String_Node_Str\");\n Collection<? extends IArtifactType> types = variableMap.getColle... |
"public static Sound findFreeSound(int soundIndex) {\n for (int i = 0; i < channels.length; i++) {\n Sound[] sounds = channels[i];\n Sound sound = sounds[soundIndex];\n if (!sound.isPlaying()) {\n return sound;\n }\n return null;\n}\n"
|
"public TableId apply(NamespaceMeta input) {\n try {\n TableId tableId = StreamUtils.getStateStoreTableId(input.getNamespaceId().toId());\n return tableUtil.createHTableId(new NamespaceId(tableId.getNamespace()), tableId.getTableName());\n } catch (IOException e) {\n throw Throwables.propagat... |
"private List<String> getPatterns(Indicator indicator) {\n List<String> patternStrings = new ArrayList<String>();\n Domain dataValidDomain = indicator.getParameters().getDataValidDomain();\n if (dataValidDomain == null) {\n return patternStrings;\n }\n EList<Pattern> patterns = dataValidDomain.get... |
"private void createMinView() {\n GridBagConstraints gbc = new GridBagConstraints();\n Insets insets = new Insets(0, 10, 0, 0);\n gbc.insets = insets;\n gbc.fill = GridBagConstraints.NONE;\n gbc.anchor = GridBagConstraints.CENTER;\n gbc.weightx = 0;\n gbc.weighty = 0;\n gbc.gridheight = 5;\n ... |
"public static void subtractFromOffSetValue(HandlerContext handlerCtx) {\n String offsetValue = (String) handlerCtx.getInputValue(OFFSET);\n int result = 0;\n try {\n result = Integer.parseInt(offsetValue);\n if (result >= DEFAULT_OFFSET_INCREMENT) {\n result = result - DEFAULT_OFFSET_... |
"protected RealPointValuePair doOptimize() throws FunctionEvaluationException {\n final double[] startPoint = getStartPoint();\n if ((startConfiguration == null) || (startConfiguration.length != startPoint.length)) {\n final double[] unit = new double[startPoint.length];\n Arrays.fill(unit, 1.0);\n ... |
"public void testAbortAfterFinished() throws Exception {\n String path = Paths.get(String.format(\"String_Node_Str\", Paths.get(\"String_Node_Str\").toAbsolutePath().toString(), SCRIPT_PATH, \"String_Node_Str\")).toString();\n Socket client = new Socket();\n client.connect(new InetSocketAddress(\"String_Node_S... |
"public boolean canModify(Object element, String property) {\n boolean editable = false;\n if (getSelectedExecNodeOwner() instanceof AbstractTestCaseEditor && ((AbstractTestCaseEditor) getSelectedExecNodeOwner()).getEditorHelper().requestEditableState() == EditableState.OK) {\n editable = true;\n }\n ... |
"public void setActive(int active) {\n if (this.active == active)\n return;\n int old = this.active;\n int new_ = active;\n GLElement oldv = getActiveElement();\n switch(lazy) {\n case NONE:\n break;\n case DESTROY:\n if (context != null && oldv != null)\n ... |
"private void generateJavaFile() {\n final IWorkspaceRunnable op = new IWorkspaceRunnable() {\n public void run(IProgressMonitor monitor) throws CoreException {\n Node node = (Node) elem;\n IProcess process = node.getProcess();\n String jobName = process.getName();\n ... |
"public void deleteRealFile() throws IOException {\n File victim = new File(filename);\n String namePrefix = victim.getName();\n namePrefix = namePrefix.substring(0, namePrefix.lastIndexOf('.'));\n final String targetPrefix = namePrefix + \"String_Node_Str\";\n File dir = victim.getParentFile();\n if ... |
"public void widgetSelected(SelectionEvent e) {\n if (((TabItem) e.item) == generalDataUseCaseTab) {\n projectMode = EApplicationMode.UNSPECIFIED_NEW_DATA;\n } else if (((TabItem) e.item) == sampleTab) {\n if (btnSampleProject.getSelection())\n projectMode = EApplicationMode.SAMPLE_PROJEC... |
"public synchronized void connectIfNecessary() throws IOException {\n if ((wsSession == null) || !wsSession.isOpen()) {\n try {\n client = new WebSocketClient();\n SimpleEchoSocket socket = new SimpleEchoSocket();\n client.start();\n ClientUpgradeRequest request = n... |
"private ThemeHandle getThemeHandle() {\n IStructuredSelection selection = null;\n if (getSelection() instanceof IStructuredSelection) {\n selection = (IStructuredSelection) getSelection();\n }\n if (selection != null && !selection.isEmpty() && selection.getFirstElement() instanceof ReportDesignEditP... |
"public final void drawEntry(int slotIndex, int x, int y, int listWidth, int slotHeight, int mouseX, int mouseY, boolean isSelected) {\n drawString(fontRenderer, this.ruleName, x, y + 6, 0xFFFFFFFF);\n this.resetButton.x = x + listWidth / 2 + 110;\n this.resetButton.y = y;\n this.resetButton.enabled = isRul... |
"public Token subtract(Token rightArg) throws IllegalActionException {\n int typeInfo = TypeCPO.compare(this, rightArg);\n try {\n if (typeInfo == CPO.LOWER) {\n return rightArg.subtractR(this);\n } else if (rightArg instanceof IntToken) {\n int result = _value - ((IntToken) ri... |
"public void onReverseView(View view) {\n reverseView();\n}\n"
|
"public void testEJBAnnotatedLdapISRealmOnWar1andWar2IncorrectRealm() throws Exception {\n String response;\n String queryString;\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\" + getCurrentTestName());\n Log.info(logClass, getCurrentTestName(), \"String_Node_Str\");\n WCApplicationHelper.... |
"public void run() {\n if (connection.getSource().getDesignSubjobStartNode().getOutgoingConnections(EConnectionType.ON_SUBJOB_OK).size() != 0 || connection.getSource().getDesignSubjobStartNode().getOutgoingConnections(EConnectionType.ON_SUBJOB_ERROR).size() != 0) {\n MessageDialog.openError(new Shell(), Messa... |
"public Object getBlock(int x, int y, int z) {\n return this.shadow$getBlockState(new BlockPos(x, y, z)).getBlock();\n}\n"
|
"public static String longToIpV4(long longIp) {\n final long posShift = 32;\n long tmp = longIp;\n tmp >>>= posShift;\n if (tmp > 0) {\n return \"String_Node_Str\";\n }\n final int threeByteSize = 24;\n final int threeByteMask = 0x00ffffff;\n final int twoByteSize = 16;\n final int two... |
"public IQueryEngine getQueryEngine() throws UnsupportedException {\n IQueryEngine queryEngine = new CassandraQueryEngine(sessions, limitDefault);\n return queryEngine;\n}\n"
|
"private static String prepareTestGame(File gameFile, boolean overrideReport) {\n if (!gameFile.exists() || !gameFile.isFile())\n return null;\n String fileName = gameFile.getName();\n int dot = fileName.lastIndexOf(extensionSeparator);\n String gameName = null;\n if (dot != -1 && fileName.substri... |
"public String getGithubUri() {\n if (githubUri == null)\n return DEFAULT_URI;\n else\n return githubUri;\n}\n"
|
"private int resolveBindPort(int port) {\n final CubeDockerConfiguration cubeDockerConfiguration = cubeDockerConfigurationInstance.get();\n final SeleniumContainers seleniumContainers = seleniumContainersInstance.get();\n if (port == NO_PORT) {\n return SinglePortBindResolver.resolvePortBindPort(cubeDoc... |
"public void onWindowFocusChanged(boolean hasWindowFocus) {\n super.onWindowFocusChanged(hasWindowFocus);\n final int touchMode = isInTouchMode() ? TOUCH_MODE_ON : TOUCH_MODE_OFF;\n if (!hasWindowFocus) {\n setChildrenDrawingCacheEnabled(false);\n if (mFlingRunnable != null) {\n remove... |
"public void setTarget(Pos target) {\n this.target = target;\n if (isClient() && world() != null) {\n sendPacket(new PacketTile(this, 1, target));\n }\n}\n"
|
"public int getInt() {\n return next == NullRecord.INSTANCE && metadata.getType() == ColumnType.SYMBOL ? SymbolTable.VALUE_IS_NULL : next.getInt(columnIndex);\n}\n"
|
"private void loadViewToUnderInteractionLayer(final int iViewID) {\n generalManager.getSingelton().logMsg(this.getClass().getSimpleName() + \"String_Node_Str\" + iViewID + \"String_Node_Str\", LoggerType.VERBOSE);\n if (iSlerpFactor > 0 && iSlerpFactor < SLERP_RANGE)\n return;\n arSlerpActions.clear();\... |
"private void pickObjects(final GL gl, Point pickPoint) {\n int PICKING_BUFSIZE = 1024;\n int[] iArPickingBuffer = new int[PICKING_BUFSIZE];\n IntBuffer pickingBuffer = BufferUtil.newIntBuffer(PICKING_BUFSIZE);\n int iHitCount = -1;\n int[] viewport = new int[4];\n gl.glGetIntegerv(GL.GL_VIEWPORT, vie... |
"protected void populateResult(boolean usesViewRoot, Map<Object, Map<Object, TuplePromise>> correlationValues, List<Object[]> list) {\n Map<Object, Map<Object, Collection<Object>>> collections;\n if (usesViewRoot) {\n collections = new HashMap<>(list.size());\n for (int i = 0; i < list.size(); i++) ... |
"void formatSegments(LineParser lineParser, LineCoverageData lineData) {\n lineNumber = lineParser.getNumber();\n List<BranchCoverageData> branchData = lineData.getBranches();\n int numSegments = lineData.getNumberOfSegments();\n element = lineParser.getInitialElement().appendUntilNextCodeElement(formattedL... |
"public String sendGetStatus(String ontid, String password, String claimId) throws Exception {\n if (codeAddress == null) {\n throw new SDKException(ErrorCode.NullCodeHash);\n }\n if (claimId == null || claimId == \"String_Node_Str\") {\n throw new SDKException(ErrorCode.NullKeyOrValue);\n }\n... |
"private String prepareTotalExpression(String oldExpression, List columnBindings, String groupName, boolean isCube) throws EngineException {\n try {\n if (oldExpression == null)\n return null;\n char[] chars = oldExpression.toCharArray();\n if (chars.length < 8)\n return ol... |
"private Template loadTemplate(final TemplateLoader templateLoader, final Object source, final String name, final String sourceName, final Locale locale, final Object customLookupCondition, final String initialEncoding, final boolean parseAsFTL) throws IOException {\n Template template;\n String actualEncoding;\n... |
"public boolean doSparklineInteraction(MouseEvent e) {\n int y = e.getY();\n for (SparklineData data : visibleSparklines) {\n if (data.ymin < y && data.ymax > y && data.lastDrawNumber == currentDrawNumber) {\n currentlyHoveringName = data.name;\n currentlyHoveringSection = data.sectio... |
"public void onReceiveChatMessageAction(Bundle extras) {\n boolean isSplashActivity = activityHelper.getContext() instanceof SplashActivity;\n boolean isCallActivity = activityHelper.getContext() instanceof CallActivity;\n if (!isSplashActivity && !isCallActivity) {\n activityHelper.onReceiveMessage(ext... |
"private static void addExecutionVertices(Map<ExecutionGroupVertex, ManagementGroupVertex> groupMap, ExecutionGraph executionGraph) {\n ExecutionGraphIterator iterator = new ExecutionGraphIterator(executionGraph, true);\n final Map<ExecutionVertex, ManagementVertex> vertexMap = new HashMap<ExecutionVertex, Manage... |
"private void validateEnvEntries(Application application) {\n Set<EnvironmentProperty> environmentProperties = null;\n EnvEntriesValidator envValidator = new EnvEntriesValidator();\n environmentProperties = application.getEnvironmentProperties();\n envValidator.validateEnvEntries(application, environmentPro... |
"protected static void addComponentsByNameFilter(final IComponentsFactory compFac, Set<IComponent> componentSet, String nameFilter) {\n if (compFac == null || componentSet == null) {\n return;\n }\n if (nameFilter != null && !nameFilter.trim().isEmpty()) {\n Collection<IComponent> components = co... |
"public int getNormalSetIdx() {\n return 0;\n}\n"
|
"private boolean trySimpleMatch(Chain seqRes, Chain atomRes) {\n List<Group> seqResGroups = seqRes.getAtomGroups();\n List<Group> atmResGroups = atomRes.getAtomGroups();\n boolean startAt1 = true;\n for (int atomResPos = 0; atomResPos < atmResGroups.size(); atomResPos++) {\n Group atomResGroup = atmR... |
"public org.hl7.fhir.dstu2.model.Subscription.SubscriptionChannelComponent convertSubscriptionChannelComponent(org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.Subscription.Subscripti... |
"public String create(final Set<WSAttributeValue> data) throws ProvisioningException {\n String res = null;\n for (WSAttributeValue value : data) {\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + value.getName() + \"String_Node_Str\" + value.getType() + \"String_Node_Str\" + valu... |
"public int getDayOfMonth() {\n return day;\n}\n"
|
"public void getArtifactPlugin(HttpRequest request, HttpResponder responder, String namespaceId, String artifactName, String artifactVersion, String pluginType, String pluginName, String scope) throws NamespaceNotFoundException, BadRequestException, ArtifactNotFoundException {\n NamespaceId namespace = Ids.namespace... |
"public final void info(final Message vm) {\n vm.custom(TextColors.LIGHT_PURPLE, \"String_Node_Str\" + \"String_Node_Str\", TextColors.DARK_PURPLE, this.entityType.getName(), TextColors.LIGHT_PURPLE, \"String_Node_Str\");\n vm.size();\n}\n"
|
"public void showPurchaseOrder(ActionRequest request, ActionResponse response) {\n PurchaseOrder purchaseOrder = request.getContext().asType(PurchaseOrder.class);\n StringBuilder url = new StringBuilder();\n AxelorSettings axelorSettings = AxelorSettings.get();\n String language = \"String_Node_Str\";\n ... |
"public static void generalPanel() {\n Runtime runtime = Runtime.getRuntime();\n String javaVersion = java.lang.System.getProperty(\"String_Node_Str\");\n String osName = java.lang.System.getProperty(\"String_Node_Str\");\n String osArch = java.lang.System.getProperty(\"String_Node_Str\");\n String osVer... |
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n } else if (obj == null) {\n return false;\n } else if (getClass() != obj.getClass()) {\n return false;\n }\n GlobalProperties other = (GlobalProperties) obj;\n if ((ordering == other.getOrdering() || (order... |
"private <T, U> Node buildPathToNode(Class<U> clazz, boolean isPrefixTarget) throws BindException {\n String[] path = clazz.getName().split(regexp);\n Node root = namespace;\n for (int i = 0; i < path.length - 1; i++) {\n root = root.get(path[i]);\n }\n if (root == null) {\n throw new NullP... |
"public boolean pingManagementNode(long msid) {\n ManagementServerHostVO mshost = _mshostDao.findByMsid(msid);\n if (mshost == null)\n return false;\n String targetIp = mshost.getServiceIP();\n if (\"String_Node_Str\".equals(targetIp) || \"String_Node_Str\".equals(targetIp)) {\n s_logger.info(... |
"public Textifier visitMethod(final int access, final String name, final String desc, final String signature, final String[] exceptions) {\n buf.setLength(0);\n buf.append('\\n');\n if ((access & Opcodes.ACC_DEPRECATED) != 0) {\n buf.append(tab).append(\"String_Node_Str\");\n }\n buf.append(tab).a... |
"private static ScenarioDefinition buildHistoricalScenarios(Map<LocalDate, Map<RateCurveId, Curve>> historicalCurves, List<LocalDate> scenarioDates) {\n CurveGroupName curveGroup = CurveGroupName.of(\"String_Node_Str\");\n DiscountCurveId discountCurveId = DiscountCurveId.of(Currency.USD, curveGroup);\n RateIn... |
"private Iterable<? extends ResponseObject> getAllVersions(final VersionLookupResult res, final Query query) {\n final ObjectType objectType = res.getObjectType();\n final List<ResponseObject> messages = Lists.newArrayList();\n messages.add(new MessageObject(QueryMessages.versionListHeader(objectType.getName()... |
"public void hyperlinkUpdate(HyperlinkEvent e) {\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\n this.messagePanel.add(stackTraceScrollPane, BorderLayout.CENTER);\n this.messagePanel.revalidate();\n this.messagePanel.repaint();\n this.pack();\n }\n}\n"
|
"private void applyMapping(Attribute<?, ?> attribute, List<Object> mappingList, List<String> parameterMappingList, boolean[] featuresFound) {\n if (attribute.isSubquery()) {\n applySubqueryMapping((SubqueryAttribute<? super T, ?>) attribute, mappingList, parameterMappingList);\n } else {\n MappingAt... |
"public org.hl7.fhir.dstu2.model.ImplementationGuide.ImplementationGuideGlobalComponent convertImplementationGuideGlobalComponent(org.hl7.fhir.dstu3.model.ImplementationGuide.ImplementationGuideGlobalComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dst... |
"private void _backoffDone(int cnt) throws IllegalActionException {\n Token[] value = { new IntToken(BkDone), new IntToken(cnt) };\n BKDone.send(0, new RecordToken(BackoffDoneMsgFields, value));\n mBkIP = false;\n _state = No_Backoff;\n}\n"
|
"private static CigarElement binaryCigarToCigarElement(final int cigarette) {\n final int binaryOp = cigarette & 0xf;\n final int length = cigarette >>> 4;\n return new CigarElement(length, CigarOperator.binaryToEnum(binaryOp));\n}\n"
|
"private void loadAvatarData(Contact entry, Cursor cursor) {\n if (entry.mPersonId == 0 || entry.mAvatar != null) {\n return null;\n }\n Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, entry.mPersonId);\n InputStream avatarDataStream = Contacts.openContactPhotoInputStream(mContext.g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.