content
stringlengths
40
137k
"private void extractElements() {\n physLocs = new ArrayList<PhysicalLocation>();\n List<Element> physList = config.getChildren(Constants.DEPLOY_PHYSICAL_LOCATION);\n for (Element elem : physList) {\n physLocs.add(new PhysicalLocation(elem, settings, machineParam, netarchiveSuiteFile.getName(), logPropF...
"public void onSuccess(T t) {\n try {\n Result result = Result.EMPTY_RESULT;\n if (message instanceof com.google.bigtable.v1.Row) {\n result = Adapters.ROW_ADAPTER.adaptResponse((com.google.bigtable.v1.Row) message);\n }\n resultsArray[index] = result;\n if (callback != ...
"public void setUp(int fragmentId, DrawerLayout drawerLayout) {\n mFragmentContainerView = getActivity().findViewById(fragmentId);\n mDrawerLayout = drawerLayout;\n mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);\n ActionBar actionBar = getActionBar();\n actionBar.setDisplay...
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n for (int i = 0; i < source.getManaCostsToPay().getX(); i++) {\n if (player != null && player.getLibrary().size() > 0) {\n Card topCard =...
"public void press(int cell, Char ch) {\n if (pit[cell] && ch == Dungeon.hero) {\n Chasm.heroFall(cell);\n return;\n }\n TimekeepersHourglass.timeFreeze timeFreeze = null;\n if (ch != null)\n timeFreeze = ch.buff(TimekeepersHourglass.timeFreeze.class);\n boolean frozen = timeFreeze !...
"public void run() {\n int currentItem = ((MainActivity2) getActivity()).mViewPager.getCurrentItem();\n if (currentItem == sectionNumber) {\n mFloatingMenu.show(true, true);\n }\n}\n"
"public void actionPerformed(ActionEvent e) {\n JMenuItem smileyItem = (JMenuItem) e.getSource();\n String buttonText = smileyItem.getToolTipText();\n for (int i = 0; i < this.imageList.size(); i++) {\n Smiley smiley = (Smiley) this.imageList.get(i);\n if (buttonText.equals(smiley.getSmileyString...
"public static List<Entity> getAllEntitiesOfType(Class clazz) {\n System.out.println(clazz);\n return getAllEntities().stream().filter(entity -> entity.getEntity().getClass().equals(clazz)).collect(Collectors.toList());\n}\n"
"public void channelActive(ChannelHandlerContext ctx) throws Exception {\n log.debug(\"String_Node_Str\");\n proxyFrondtendHandle.outBoundChannelReady();\n}\n"
"public void writeSingleValue(Object value, Object parent, XMLRecord row, AbstractSession session) {\n DOMRecord record = (DOMRecord) row;\n Node root = record.getDOM();\n Object objectValue = value;\n if (this.getConverter() != null) {\n objectValue = getConverter().convertObjectValueToDataValue(obj...
"private void updateAnalysisTypes(DataSetViewData[] viewDatas, boolean updateFlag) {\n for (int i = 0; i < viewDatas.length; i++) {\n DataSetViewData item = viewDatas[i];\n ColumnHintHandle hint = findColumnHint(item);\n if (hint != null) {\n try {\n String analysis = h...
"public void goAlgo() {\n graph = graphModel.getHierarchicalGraphVisible();\n graph.readLock();\n Node[] nodes = graph.getNodes().toArray();\n for (Node n : nodes) {\n if (n.getNodeData().getLayoutData() == null || !(n.getNodeData().getLayoutData() instanceof ForceVector)) {\n n.getNodeDat...
"private void put(World w, int i, int j, int k, Block skystone, int meta) {\n if (w.getBlock(i, j, k) == Blocks.bedrock)\n return;\n w.setBlock(i, j, k, blk, meta, 3);\n}\n"
"protected void pageEndMoving() {\n if (DEBUG_WARP)\n Log.v(TAG, \"String_Node_Str\" + mIsPageMoving + \"String_Node_Str\");\n if (mIsPageMoving) {\n mIsPageMoving = false;\n if (isWarping()) {\n if (mPageSwapIndex != -1) {\n swapPages(mPageSwapIndex, mPageWarpIndex)...
"public void onFailure() {\n if (getActivity() != null)\n Toast.makeText(getActivity(), R.string.media_edit_failure, Toast.LENGTH_LONG).show();\n setMediaUpdating(false);\n mCallback.onEditCompleted(false);\n}\n"
"protected void processCommand(String cmd) {\n boolean bp;\n if (cmd.endsWith(\"String_Node_Str\"))\n cmd = cmd.substring(0, cmd.length() - 1);\n if (cmd.compareTo(\"String_Node_Str\") == 0) {\n this.state = DebugState.CONNECTED;\n debugServer.send(\"String_Node_Str\");\n debugCallb...
"private void validate() {\n if (!this.httpMethod.hasBody()) {\n Preconditions.checkState(null == this.request, \"String_Node_Str\", this.httpMethod);\n }\n}\n"
"private void runBlocked(MemoryManager memoryManager, IOManager ioManager, RecordReader<KeyValuePair<Key, Value>> innerReader, RecordReader<KeyValuePair<Key, Value>> outerReader) throws Exception {\n SpillingResettableIterator<KeyValuePair<Key, Value>> innerInput = null;\n BlockResettableIterator<KeyValuePair<Key...
"public void testInvokeGETResourceWithAuthTypeApplicationUser() throws Exception {\n APICreationRequestBean apiCreationRequestBean = new APICreationRequestBean(API_NAME, API_CONTEXT, API_VERSION_1_0_0, providerName, new URL(apiEndPointUrl));\n apiCreationRequestBean.setTags(API_TAGS);\n apiCreationRequestBean....
"public String toString() {\n return \"String_Node_Str\" + this.getOperationApplied() + \"String_Node_Str\" + StringUtil.trunc(this.original) + \"String_Node_Str\" + StringUtil.trunc(modified) + \"String_Node_Str\" + getLocationInParent() + \"String_Node_Str\" + StringUtil.trunc(parentBlock) + \"String_Node_Str\";\n...
"public void testGroupPasswordNotLeak_whenVersionAboveThreeNine() {\n final Config config = new Config();\n config.getNetworkConfig().getJoin().getMulticastConfig().setEnabled(true).setMulticastTimeoutSeconds(3);\n config.getNetworkConfig().getJoin().getTcpIpConfig().setEnabled(false);\n final AtomicBoolean...
"public void shouldPaseComplexTypeListWithEmptySpaces() throws ParserConfigurationException, SAXException {\n String sampleXml = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Nod...
"private boolean asCheck(ELDescriptionNode v) {\n List<ELDescriptionEdge> piVEdges = new LinkedList<ELDescriptionEdge>();\n ELDescriptionNode tmp = v;\n while (!tmp.isRoot()) {\n piVEdges.add(tmp.getParentEdge());\n tmp = tmp.getParent();\n }\n for (ELDescriptionEdge piVEdge : piVEdges) {\n...
"public static void main(String[] args) {\n boolean isError = false;\n boolean showHelp = false;\n String user = null;\n String saveDir = null;\n String expecting = null;\n String site = null;\n for (String arg : args) {\n if (expecting != null) {\n if (expecting.equals(\"String_N...
"public int getHdfsId(String name) throws NullReturnedException {\n try {\n return jdbc.queryForInt(\"String_Node_Str\", name);\n } catch (IncorrectResultSizeDataAccessException e) {\n return -1;\n }\n return id;\n}\n"
"private void renderCorrelationJoinPath(StringBuilder sb, JoinAliasInfo joinBase, JoinNode node) {\n if (node.getTreatType() != null) {\n final boolean renderTreat = mainQuery.jpaProvider.supportsTreatJoin() && (!mainQuery.jpaProvider.supportsSubtypeRelationResolving() || node.getJoinType() == JoinType.INNER)...
"public void testPropertyRangeAxiomLearning() throws Exception {\n ObjectPropertyRangeAxiomLearner l = new ObjectPropertyRangeAxiomLearner(ks);\n l.setMaxExecutionTimeInSeconds(maxExecutionTimeInSeconds);\n l.setEntityToDescribe(range);\n l.init();\n l.start();\n System.out.println(l.getCurrentlyBestE...
"private IJointDataSetDesign newJointDataSet(JointDataSetHandle handle, ExecutionContext context2) throws BirtException {\n Iterator it = handle.joinConditionsIterator();\n List joinConditions = new ArrayList();\n JoinConditionHandle jc = null;\n while (it.hasNext()) {\n jc = (JoinConditionHandle) it...
"public void render(final GLAutoDrawable drawable) {\n GL gl = drawable.getGL();\n int iLineCount = 0;\n int[] viewport = new int[4];\n gl.glGetIntegerv(GL.GL_VIEWPORT, viewport, 0);\n int panelHeight = 0;\n if (sAlContent.isEmpty())\n panelHeight = 0;\n else\n panelHeight = (sAlConte...
"protected void displayObject(Graphics g) {\n getBoundingBox();\n double scaleX, scaleY;\n double minX, minY;\n int XSize = 1200;\n int YSize = 600;\n int decalageX = 10;\n int decalageY = YSize + 30;\n int legende = YSize + 60;\n int bordure = 10;\n scaleX = XSize / (theBox.maxx - theBox....
"public FirewallRuleResponse createPortForwardingRuleResponse(PortForwardingRule fwRule) {\n FirewallRuleResponse response = new FirewallRuleResponse();\n response.setId(fwRule.getUuid());\n response.setPrivateStartPort(Integer.toString(fwRule.getDestinationPortStart()));\n response.setPrivateEndPort(Intege...
"public static List<CartridgeBean> getAvailableCartridges(String cartridgeSearchString, Boolean multiTenant, ConfigurationContext configurationContext, int tenantId) throws RestAPIException {\n List<CartridgeBean> cartridges = new ArrayList<CartridgeBean>();\n if (log.isDebugEnabled()) {\n log.debug(\"Stri...
"public int getConfiguration(int parameter) {\n return memory[parameter];\n}\n"
"public void testTagDialogShowExistingTags() throws Exception {\n SWTBotShell tagDialog = openTagDialog();\n SWTBotTable table = tagDialog.bot().tableWithLabel(UIText.CreateTagDialog_existingTags);\n TestUtil.waitUntilTableHasRowWithText(tagDialog.bot(), table, \"String_Node_Str\", 10000);\n}\n"
"private void setupPermissions() {\n Plugin permissions = getServer().getPluginManager().getPlugin(\"String_Node_Str\");\n if (Permissions == null) {\n if (permissions != null) {\n Permissions = ((Permissions) permissions).getHandler();\n } else {\n log(Level.INFO, \"String_Nod...
"public IParameterDefn[] getParameterDefn() {\n return new IParameterDefn[] { new ParameterDefn(Constants.EXPRESSION_NAME, Constants.EXPRESSION_DISPLAY_NAME, false, true, SupportedDataTypes.CALCULATABLE, \"String_Node_Str\"), new ParameterDefn(\"String_Node_Str\", Messages.getString(\"String_Node_Str\"), false, fals...
"public void startContent(IContent content, IContentEmitter emitter, boolean visible) {\n if (isRepeated || (!visible && !currentNode.isStarted())) {\n LeafBufferNode leafNode = new LeafBufferNode(content, emitter, generator, visible);\n setup(leafNode, true);\n } else {\n LeafBufferNode leaf...
"public void connectionClosedOnError(Exception exception) {\n logger.error(\"String_Node_Str\" + exception.getLocalizedMessage());\n if (exception instanceof XMPPException) {\n StreamError err = ((XMPPException) exception).getStreamError();\n if (err != null && err.getCode().equals(XMPPError.Conditi...
"public void saveHomes() {\n File file = new File(homesPath);\n if (!(file.exists())) {\n file.mkdir();\n }\n try {\n FileWriter fstream = new FileWriter(homesPath + homesFile);\n BufferedWriter writer = new BufferedWriter(fstream);\n writer.write(\"String_Node_Str\");\n w...
"private void createIndicatorItems(final TreeItem treeItem, IndicatorUnit[] indicatorTypeMappings) {\n for (IndicatorUnit indicatorMapping : indicatorTypeMappings) {\n final TreeItem indicatorItem = new TreeItem(treeItem, SWT.NONE);\n final IndicatorUnit unit = indicatorUnit;\n final IndicatorEn...
"private int doSearch(final CharBuffer buffer, final int matchedLength, final int currentLength) {\n final int nextLength = fullWord ? currentLength : matchedLength;\n if (!buffer.hasRemaining())\n return nextLength;\n char c = buffer.get();\n int index = Arrays.binarySearch(nextChars, c);\n if (i...
"public void caseAFunction(AFunction function) {\n if (function.getFunctionName() == null || StringUtils.isEmpty(function.getFunctionName().getText())) {\n throw new SemanticParsingException(I18n.getString(MessageIDs.getMessage(MessageIDs.E_MISSING_FUNCTION_NAME)), MessageIDs.E_MISSING_FUNCTION_NAME, function...
"public static Baseline create(String basename, Component component, File view, LabelBehaviour labelBehaviour, boolean identical, List<Activity> activities, List<Component> depends) throws UnableToInitializeEntityException, UnableToCreateEntityException, NothingNewException {\n if (basename.toLowerCase().startsWith(...
"private Map<String, String> createAutConfigMap(IAUTConfigPO autConfig) {\n final Set<String> autConfigKeys = autConfig.getAutConfigKeys();\n final Map<String, String> mapToSend = new HashMap<String, String>(autConfigKeys.size());\n for (String key : autConfigKeys) {\n String value = autConfig.getValue(...
"public T loadP(Class<? extends AbstractConfiguration> t, String file) throws IOException {\n Properties p = new Properties();\n Reader reader = new FileReader(file);\n p.load(reader);\n Constructor<T> c = (Constructor<T>) t.getConstructors()[1];\n Class<?>[] paramTypes = c.getParameterTypes();\n Obje...
"public long getInnovationID(int x, int y, int sIndex, List<Substrate> subs) {\n long innovationIDAccumulator = 0;\n for (int i = 0; i < sIndex; i++) {\n Substrate s = subs.get(i);\n innovationIDAccumulator += s.size.t1 * s.size.t2;\n }\n innovationID += subs.get(sIndex).size.t1 * (y - 1) + x;...
"public static boolean is32BitJVM() {\n final String model = System.getProperty(\"String_Node_Str\");\n return model != null && model.equals(\"String_Node_Str\");\n}\n"
"private int determineDepth(NodeType node) {\n NodeInfo info = mNodeMap.get(node);\n if (hasChildren(node)) {\n int tmpDepth = 0;\n for (NodeType currentNode : getChildren(node)) {\n int iChildDepth = determineDepth(currentNode);\n if (tmpDepth <= iChildDepth)\n ...
"private void initDefaultSettings() {\n ContentResolver resolver = getContentResolver();\n int intVal = 0;\n mUseDefaultPref = (CheckBoxPreference) findPreference(KEY_TTS_USE_DEFAULT);\n try {\n intVal = Settings.Secure.getInt(resolver, TTS_USE_DEFAULTS);\n } catch (SettingNotFoundException e) {\n...
"public Composite[] getPreviewChartCompsites() {\n if (previewChartList != null && !previewChartList.isEmpty()) {\n this.previewChartCompsites = previewChartList.toArray(new Composite[previewChartList.size()]);\n }\n return previewChartCompsites;\n}\n"
"public static RelNode strip(ProjectRel project) {\n return isTrivial(project) ? project.getChild() : project;\n}\n"
"public void record(StatusBarNotification nr) {\n nr.notification.lightenPayload();\n if (mBuffer.size() == BUFFER_SIZE) {\n mBuffer.removeFirst();\n }\n mBuffer.addLast(nr);\n}\n"
"protected List getSelectedObjects() {\n Object selectVariable = getSelection();\n if (selectVariable == null || !(selectVariable instanceof IStructuredSelection))\n return Collections.EMPTY_LIST;\n return ((IStructuredSelection) selectVariable).toList();\n}\n"
"private void renderModules(FontRenderer fontrenderer, ClientScreenModule.TransformMode mode, List<ClientScreenModule> modules, Map<Integer, String> screenData) {\n float f3;\n int currenty = 7;\n int moduleIndex = 0;\n for (ClientScreenModule module : modules) {\n if (module != null) {\n ...
"private static void parseTriplePattern(TripleString dest, String line) throws ParserException {\n int split, posa, posb;\n dest.clear();\n posa = 0;\n posb = split = line.indexOf(' ', posa);\n if (posb == -1)\n throw new ParserException(\"String_Node_Str\");\n dest.setSubject(UnicodeEscape.une...
"public boolean filterByNodesConstantSet(OptimizerNode node, int input) {\n if (ordering != null) {\n ArrayList<Integer> involvedIndexes = ordering.getInvolvedIndexes();\n for (int i = 0; i < involvedIndexes.size(); i++) {\n if (node.isFieldKept(input, involvedIndexes.get(i)) == false) {\n ...
"protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n GregorianCalendar day = DateUtils.getStartOfTodayCalendar();\n Resources res = getContext().getResources();\n float width = res.getDimension(R.dimen.checkmarkWidth);\n float height = res.getDimension(R.dimen.checkmarkHeight);\n boolean ...
"private SimpleType generateSimpleType(Type type) {\n SDOType sdoType = (SDOType) type;\n SimpleType simpleType = new SimpleType();\n String xsdLocalName = sdoType.getXsdLocalName();\n if (xsdLocalName != null) {\n simpleType.setName(xsdLocalName);\n } else {\n simpleType.setName(sdoType.ge...
"private ArrayList<StringValue> getParameters(ArrayList<Token> tokens) throws Exception {\n for (int i = 0; i < tokens.size(); i++) {\n Token token = tokens.get(i);\n if (token.getTokenType() == TokenType.OPENBRACKET) {\n ArrayList<Token> parameterTokens = Tokens.sliceBody(tokens, TokenType....
"public void reset() throws Exception {\n MockResponder responder = new MockResponder();\n String uri = String.format(\"String_Node_Str\");\n HttpRequest request = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.PUT, uri);\n httpHandler.resetCDAP(request, responder);\n verifyResponse(HttpResponse...
"private static void populateParameter(DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet) {\n HashMap paramBindingCandidates = new HashMap();\n Iterator elmtIter = modelDataSet.parametersIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n DataSetParameterHandle model...
"public void configure(JobConf job) {\n try {\n labelWeightSum.clear();\n Map<String, Double> labelWeightSumTemp = new HashMap<String, Double>();\n DefaultStringifier<Map<String, Double>> mapStringifier = new DefaultStringifier<Map<String, Double>>(job, GenericsUtil.getClass(labelWeightSumTemp))...
"private Map<String, CtClass> createClasses(final Map<String, Class<?>> existingClasses, final InputStream stream) throws XMLStreamException {\n XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(stream);\n Map<String, CtClass> ctClasses = new HashMap<String, CtClass>();\n while (read...
"public String getPropertyString() {\n if (inventory.isUnique() || inventory.getIdType().equals(\"String_Node_Str\") || inventory.getIdType().equals(\"String_Node_Str\"))\n return getTitle();\n else\n return null;\n}\n"
"private void intColumnSlice(Set<String> fieldSet, DBObject row) {\n subList = new ArrayList<DBObject>();\n Map<BigInteger, Object> map = new TreeMap<BigInteger, Object>();\n BigInteger fromField = StandardConverters.convertFromBytes(BigInteger.class, from);\n BigInteger toField = StandardConverters.convert...
"private void getParameterColIndex(AggregationDefinition[] aggregations) throws DataException {\n List paraColList = new ArrayList();\n for (int i = 0; i < aggregations.length; i++) {\n AggregationFunctionDefinition[] functions = aggregations[i].getAggregationFunctions();\n if (functions == null) {\...
"public List getSelectedSortedObjects(final BitSet objectMarkers, final DefaultTableDataModel defaultTableDataModel) {\n List results = new ArrayList();\n List<Integer> sortedIndexes = new ArrayList<Integer>();\n if (objectMarkers.isEmpty()) {\n sortedIndexes.clear();\n }\n for (int i = objectMark...
"public List<Permission> getAllPermissions() {\n List<Permission> permissionList = null;\n String sparql = \"String_Node_Str\" + \"String_Node_Str\" + lSMOauthGraphURL + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n try {\n String service = sparqlEndPoint;\n QueryExecution vq...
"public IteratorTripleID search(TripleID pattern) {\n if (getNumberOfElements() == 0 || pattern.isNoMatch()) {\n return new EmptyTriplesIterator(order);\n }\n TripleID reorderedPat = new TripleID(pattern);\n TripleOrderConvert.swapComponentOrder(reorderedPat, TripleComponentOrder.SPO, order);\n St...
"public Object execute(ExecutionEvent event) throws ExecutionException {\n try {\n IWorkbenchWindow activeWindows = HandlerUtil.getActiveWorkbenchWindow(event);\n activeWindows.getActivePage().showView(GLPathway.VIEW_TYPE);\n activeWindows.getActivePage().showView(GLEnRoutePathway.VIEW_TYPE);\n ...
"public void run() {\n updateStorageHint(mPicturesRemaining);\n}\n"
"protected static BorderAndPadding applyBaseComponentProperties(BaseComponent component, Form form, TextualStyle styleObj, Insets defaultPadding, Insets defaultBorder, IServiceProvider sp) {\n Pair<IStyleSheet, IStyleRule> styleInfo = ComponentFactory.getStyleForBasicComponent(sp, component, form);\n Insets inset...
"public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n if (!getClass().isInstance(obj)) {\n return false;\n }\n Value<V> other = (Value<V>) obj;\n return Objects.equals(valueType, other.valueType) && Objects.equals(indexed, other.indexed) && Objects.equals(meaning...
"public void addConnector(Connector connector) {\n synchronized (connectorsMonitor) {\n connector.setContainer(this.container);\n connector.setService(this);\n Connector[] results = new Connector[connectors.length + 1];\n System.arraycopy(connectors, 0, results, 0, connectors.length);\n ...
"public boolean applies(GameEvent event, Ability source, Game game) {\n return source.getControllerId().equals(event.getPlayerId());\n}\n"
"public boolean activate(Game game, boolean noMana) {\n if (!modes.choose(game, this)) {\n return false;\n }\n Card card = game.getCard(sourceId);\n if (card != null) {\n card.adjustChoices(this, game);\n }\n if (getChoices().size() > 0 && getChoices().choose(game, this) == false) {\n ...
"private void loadProject() {\n AbstractCmdlineClient.printConsoleLn(Messages.ExecutionControllerDatabase + NLS.bind(Messages.ExecutionControllerLoadingProject, m_job.getProjectName()), true);\n try {\n IProjectPO actualProject = ProjectPM.loadProjectByNameAndVersion(m_job.getProjectName(), m_job.getProjec...
"public List<Object[]> evaluateRowSet(IDataRowExpressionEvaluator idre, final Object[] columns) throws ChartException {\n List<Object[]> liResultSet = new ArrayList<Object[]>();\n final int iColumnCount = columns.length;\n Object[] oaTuple;\n final int MAX_ROW_COUNT = ChartUtil.getSupportedMaxRowCount(rtc);...
"public static VCardConfig getFromMeta() {\n VCardConfig config = new VCardConfig();\n config.vCardReadOnly = PageAssist.isMetaTrue(\"String_Node_Str\", false);\n return config;\n}\n"
"public void groupListPermissions(Plugin plugin, CommandSender sender, Map<String, String> args) {\n PermissionGroup group = PermissionsPlugin.getPermissionManager().getGroup(args.get(\"String_Node_Str\"));\n if (group == null) {\n sender.sendMessage(ChatColor.RED + \"String_Node_Str\");\n return;\n...
"public static org.hl7.fhir.dstu2016may.model.TestScript.TestScriptMetadataLinkComponent convertTestScriptMetadataLinkComponent(org.hl7.fhir.dstu3.model.TestScript.TestScriptMetadataLinkComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2016may.model...
"DroneManager connectDroneManager(ConnectionParameter connParams, String appId, DroneEventsListener listener) throws ConnectionException {\n if (connParams == null || TextUtils.isEmpty(appId) || listener == null)\n return null;\n DroneManager droneMgr = droneManagers.get(connParams);\n if (droneMgr == n...
"public void testSettingsNoConfiguration() throws Exception {\n ReflectionTestUtils.setField(sut, \"String_Node_Str\", SERVER_ID);\n final Server server = mockServer();\n server.setConfiguration(null);\n when(settings.getServer(SERVER_ID)).thenReturn(server);\n Throwable cause = null;\n try {\n ...
"public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {\n try {\n if (isStartElementOpen) {\n outputStream.write(CLOSE_ELEMENT);\n }\n if (!isLastEventText) {\n getOutputStream().write(CR);\n for (int ...
"private static void initKeyPair(SecureRandom prng) throws NoSuchAlgorithmException {\n String sigAlg = signatureAlgorithm;\n if (sigAlg.endsWith(\"String_Node_Str\")) {\n sigAlg = \"String_Node_Str\";\n }\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(sigAlg);\n keyGen.initialize(signat...
"private static int readTyped(String desc, int start, ITypeConsumer consumer) {\n int array = 0;\n char c;\n while ((c = desc.charAt(start)) == '[') {\n array++;\n start++;\n }\n switch(c) {\n case 'V':\n consumer.setType(ArrayType.getArrayType(Types.VOID, array));\n ...
"public IQueryResults getQueryResults(String queryResultID) throws DataException {\n if (context.getMode() == DataEngineContext.MODE_PRESENTATION) {\n return new QueryResults(this.session.getTempDir(), this.context, queryResultID);\n }\n if (context.getMode() == DataEngineContext.MODE_GENERATION || cont...
"public void run() {\n JTFEmail.setText(PreferenceHandler.getStringPreference(Preference.TYPES.EMAIL));\n JCBExpo.setSelectedIndex(getIndexOfEvent(PreferenceHandler.getStringPreference(Preference.TYPES.EVENT)));\n if (PreferenceHandler.getPreferenceObject(Preference.TYPES.CHECK_PAX).isSavedInPreferences()) {\n...
"public void loadPost(Post post) {\n TextView title = (TextView) getActivity().findViewById(R.id.postTitle);\n if (post.getTitle().equals(\"String_Node_Str\"))\n title.setText(\"String_Node_Str\" + getResources().getText(R.string.untitled) + \"String_Node_Str\");\n else\n title.setText(post.getTi...
"protected static void addDBpediaUris(Set<String> uris) {\n List<String> dbpediaUris = new ArrayList<String>(uris.size());\n for (String uri : uris) {\n if (uri.contains(\"String_Node_Str\")) {\n dbpediaUris.add(uri.replace(\"String_Node_Str\", \"String_Node_Str\"));\n } else {\n ...
"public void onKeyDown(KeyDownEvent event) {\n final int keyCode = event.getNativeKeyCode();\n log.fine(\"String_Node_Str\" + keyCode + \"String_Node_Str\" + event.getNativeEvent().getKeyCode());\n Selection selection = getTextArea().getDocument().getSelection();\n if (selection.getRangeCount() > 0) {\n ...
"public int getLayoutMinHeight() {\n int firstChildMinHeight = getFirstChildIntrinsicHeight();\n return Math.min(firstChildMinHeight + mBottomStackPeekSize + mBottomStackSlowDownHeight, mMaxLayoutHeight - mIntrinsicPadding);\n}\n"
"public Long createCluster(ClusterCreate createSpec) throws Exception {\n if (CommonUtil.isBlank(createSpec.getDistro())) {\n setDefaultDistro(createSpec);\n }\n DistroRead distroRead = getDistroManager().getDistroByName(createSpec.getDistro());\n createSpec.setDistroVendor(distroRead.getVendor());\n...
"private void create(TransferManifestNormalNode node, ResolvedParentChildPair resolvedNodes, ChildAssociationRef primaryParentAssoc) {\n log.info(\"String_Node_Str\" + node.getNodeRef());\n QName parentAssocType = primaryParentAssoc.getTypeQName();\n QName parentAssocName = primaryParentAssoc.getQName();\n ...
"public void startContainer(String id, Map<String, Object> containerConfiguration) {\n StartContainerCmd startContainerCmd = this.dockerClient.startContainerCmd(id);\n if (containerConfiguration.containsKey(BINDS)) {\n List<String> binds = asListOfString(containerConfiguration, BINDS);\n startContai...
"public static RegularImmutableAsList<Object> instantiate(SerializationStreamReader reader) throws SerializationException {\n ArrayList<Object> elements = new ArrayList<Object>();\n Collection_CustomFieldSerializerBase.deserialize(reader, elements);\n ImmutableList<Object> delegate = ImmutableList.copyOf(eleme...
"public void onResponseReceived(Request request, Response response) {\n initializeRoles(name, \"String_Node_Str\", rolesListBox);\n initializeAvailableUsers(usersListBox.getValue(usersListBox.getSelectedIndex()));\n}\n"
"public void resetResourceSet() {\n resourceSet = new TalendResourceSet();\n resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT, Boolean.TRUE);\n resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION, Boolean.TRUE);\n resourceSet.getLoadOptions().put(XMLResource.OPTION...
"public static PsiElement[] fiterOverridedAndHiddedElements(PsiElement scopeElement, Collection<PsiElement> elements) {\n List<PsiElement> copyElements = new ArrayList<PsiElement>(elements);\n for (PsiElement element : elements) {\n if (!copyElements.contains(element)) {\n continue;\n }\n...
"private NestedSet<Artifact> getGenerateActionInputs() {\n NestedSetBuilder<Artifact> inputsBuilder = NestedSetBuilder.<Artifact>stableOrder().add(attributes.getProtoCompiler()).addAll(getAllProtoSources()).add(getProtoInputListFile()).addAll(attributes.getProtoCompilerSupport()).addAll(getPortableProtoFilters());\n...