content
stringlengths
40
137k
"public org.hl7.fhir.dstu2.model.MedicationAdministration.MedicationAdministrationDosageComponent convertMedicationAdministrationDosageComponent(org.hl7.fhir.dstu3.model.MedicationAdministration.MedicationAdministrationDosageComponent src) throws FHIRException {\n if (src == null || src.isEmpty())\n return nu...
"public Tuple apply(IndexEntryCollector.IndexEntry input) {\n CellName cellName = resultMapper.makeClusteringKey(input.primaryKey);\n ColumnFamily cf = fullSlice.get(cellName);\n if (cf != null) {\n Tuple tuple = aggregateFunction.createTuple(options);\n resultMapper.tableMapper.load(positions, t...
"public String getFailureReport() {\n String result = null;\n if (LOGGER.isDebugEnabled()) {\n Collection<CapabilityReport> capabilities = RMMethodSecurityInterceptor.CAPABILITIES.get().values();\n if (!capabilities.isEmpty()) {\n StringBuilder buffer = new StringBuilder(\"String_Node_Str...
"protected Varargs oncallv(int opcode, Varargs args) {\n File f;\n int n;\n LuaValue v;\n try {\n switch(opcode) {\n case IO_FLUSH:\n checkopen(output());\n outfile.flush();\n return LuaValue.TRUE;\n case IO_TMPFILE:\n ...
"private IResultIterator getResultSetForParameter(ScalarParameterHandle parameter) {\n ReportDesignHandle report = (ReportDesignHandle) this.runnable.getDesignHandle();\n DataSetHandle dataSet = report.findDataSet(parameter.getDataSetName());\n IResultIterator iterator = null;\n if (dataSet != null) {\n ...
"private boolean parseSwitchStatement() {\n PsiBuilder.Marker mark = b.mark();\n match(SWITCH_KEYWORD, \"String_Node_Str\");\n match(LEFT_PAREN, \"String_Node_Str\");\n parseCondition();\n match(RIGHT_PAREN, \"String_Node_Str\");\n parseCompoundStatement();\n mark.done(SWITCH_STATEMENT);\n retur...
"public void testInvalidFlowRunRecord() throws Exception {\n HttpResponse response = deploy(WordCountApp.class, Constants.Gateway.API_VERSION_3_TOKEN, TEST_NAMESPACE1);\n Assert.assertEquals(200, response.getStatusLine().getStatusCode());\n Id.Program wordcountFlow1 = Id.Program.from(TEST_NAMESPACE1, \"String_...
"static String computeProjectContentLocation(URI parentLocation, WebProject project) {\n URI contentLocation = project.getContentLocation();\n if (!contentLocation.isAbsolute() || \"String_Node_Str\".equals(contentLocation.getScheme())) {\n IPath contentPath = new Path(contentLocation.getPath());\n ...
"private boolean startDependency(List<ApplicationChildContext> applicationContexts, String instanceId) throws MonitorNotFoundException {\n if (applicationContexts != null && applicationContexts.isEmpty()) {\n log.info(\"String_Node_Str\" + this.id);\n return false;\n }\n for (ApplicationChildCont...
"public AccountInfo fetchAccountInfo(final Account account) throws Exception {\n final AccountInfo ai = new AccountInfo();\n try {\n login(account, true);\n } catch (final PluginException e) {\n account.setValid(false);\n return ai;\n }\n ai.setStatus(\"String_Node_Str\");\n ai.se...
"private List<Base> funcResolve(ExecutionContext context, List<Base> focus, ExpressionNode exp) {\n List<Base> result = new ArrayList<Base>();\n for (Base item : focus) {\n if (hostServices != null) {\n String s = convertToString(item);\n if (item.fhirType().equals(\"String_Node_Str\"...
"public void testOneSourceOneSink() throws Exception {\n Schema schema = Schema.recordOf(\"String_Node_Str\", Schema.Field.of(\"String_Node_Str\", Schema.of(Schema.Type.STRING)), Schema.Field.of(\"String_Node_Str\", Schema.of(Schema.Type.STRING)));\n List<StructuredRecord> input = new ArrayList<>();\n input.ad...
"public Response toResponse(Throwable throwable) {\n boolean isError = false;\n String logMessage;\n OseeWebApplicationException exception;\n if (throwable instanceof OseeWebApplicationException) {\n logMessage = OSEE_APPLICATION_EXCEPTION_TYPE;\n exception = ((OseeWebApplicationException) thr...
"public void playAnimation(String name) {\n ((WlAvatarContext) getContext()).playMiscAnimation(name);\n}\n"
"public void finish() {\n if (player != null) {\n Platform.runLater(new Runnable() {\n public void run() {\n player.stop();\n }\n });\n }\n}\n"
"public Object invoke(Object iContent, Object... params) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException {\n try {\n Roma.context().create();\n List<SchemaActionListener> listeners = Controller.getInstance().getListeners(SchemaActionListener.class);\n boolean r...
"public static void main(String[] args) {\n final User user = new User(\"String_Node_Str\", \"String_Node_Str\", emptySet());\n driver(true, dsl -> {\n dsl.startNode(\"String_Node_Str\", singleton(new ServiceInfo(ValidatingNotaryService.Companion.getType(), null)), emptyList(), VerifierType.InMemory, empty...
"public int cancelIfExists(K key, V value) {\n final ScheduledEntry<K, V> scheduledEntry = new ScheduledEntry<K, V>(key, value, 0, 0, 0);\n if (scheduleType.equals(ScheduleType.FOR_EACH)) {\n return cancelByTimeKey(key, scheduledEntry);\n }\n final Integer second = secondsOfKeys.remove(key);\n if ...
"public static void log(Level level, String message, Exception err) {\n if (err == null) {\n log(level, message);\n } else {\n logger.log(level, String.format(messageFormat, message == null ? err.getMessage() : message), err);\n }\n}\n"
"protected JNode insertClone(JNode sourceNode) {\n Object context = targetCompilationUnit != null ? getControlModel().getFacadeHelper().getContext(targetCompilationUnit) : null;\n JNode targetNode = getControlModel().getFacadeHelper().cloneNode(context, sourceNode);\n if (targetNode != null) {\n map(sou...
"public boolean postfire() throws IllegalActionException {\n Time environmentTime = ThreadedComposite.this.getExecutiveDirector().getModelTime();\n if (ThreadedComposite.this._debugging) {\n ThreadedComposite.this._debug(\"String_Node_Str\" + environmentTime);\n }\n boolean refireRequested = _fireAtT...
"public String toString() {\n String str;\n if (this.childNodes.isEmpty()) {\n str = this.name;\n } else {\n str = \"String_Node_Str\";\n final Iterator<NetworkNode> it = this.childNodes.iterator();\n while (it.hasNext()) {\n buf.append(it.next().toString());\n ...
"public void startContent(IContent content, IContentEmitter emitter, boolean visible) throws BirtException {\n if (context.isFixedLayout() && (Integer) context.getLayoutEngine().getOption(EngineTask.TASK_TYPE) == IEngineTask.TASK_RUN) {\n visible = true;\n }\n if (isRepeated || (!visible && !currentNode...
"public Object[] computeMeasureValues(IMeasureMap measureList) {\n Object[] result = new Object[1];\n Integer value = new Integer(((Integer) factTableRow.getMeasureValue(\"String_Node_Str\")).intValue() + 1);\n result[0] = value;\n return result;\n}\n"
"public void setPlacing(Terrain terrain, boolean hasShield) {\n if (_placingGlyph != null) {\n _placingGlyph.layer.destroy();\n }\n _placing = tile;\n _placingGlyph = new PlayGlyph(tile);\n _placingGlyph.layer.setAlpha(0.5f);\n layer.add(_placingGlyph.layer);\n}\n"
"public void resolve2Application(Field aField) {\n if (aField != null) {\n int lSize = aField.getSize();\n int size = lSize >> 16;\n int scale = (lSize << 16) >> 16;\n if (SQLUtils.isSameTypeGroup(aField.getTypeInfo().getSqlType(), java.sql.Types.VARCHAR)) {\n aField.setSize(Ma...
"public void serveResource(ResourceRequest req, ResourceResponse resp) throws PortletException, IOException {\n String key = req.getRenderParameters().getValue(PARAM_IMGNAME);\n String imgDir = DEFAULT_IMAGE;\n if ((key != null) && imgMap.containsKey(key)) {\n imgDir = imgMap.get(key);\n }\n Strin...
"public boolean end(Writer writer, String body) {\n StringBuffer sb = new StringBuffer();\n try {\n Constraint constraint = new ArtifactsRelatedConstraint(groupId, artifactId, version);\n List<ArchivaArtifact> relatedArtifacts = dao.getArtifactDAO().queryArtifacts(constraint);\n if (relatedAr...
"public String enabled() {\n HtmlBuilder html = new HtmlBuilder();\n html.a().href(\"String_Node_Str\");\n html.onclick(\"String_Node_Str\");\n html.quote();\n html.append(getAction());\n html.quote().close();\n html.img().name(\"String_Node_Str\").src(\"String_Node_Str\").border(\"String_Node_Str\...
"public void addInclude(IncludeDeclaration component) {\n this.addIncludeToArray(component);\n if (this.isHeader()) {\n this.markers.add(component.getPosition(), \"String_Node_Str\");\n return;\n }\n component.resolve(this.markers);\n component.addOperators(this.inheritedOperators);\n}\n"
"public ParameterValue<?> get(int pos) {\n if (pos < values.size()) {\n return ParameterValueFactory.createParameterValue(dynamicValueAssignment.getParameter(), values.get(pos).getValue());\n } else {\n throw new IndexOutOfBoundsException(\"String_Node_Str\" + pos + \"String_Node_Str\" + values.size...
"public void testRoundTrip() throws IOException {\n Map<String, Number> metrics = new HashMap<String, Number>();\n metrics.put(\"String_Node_Str\", 6);\n Properties properties = new Properties();\n properties.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n Job job = new Job(\"String_Node_Str\", ...
"protected MetricsTable getOrCreateResolutionMetricsTable(String v3TableName, TableProperties.Builder props, int resolution) {\n try {\n MetricsTable v2Table = null;\n if (cConf.getBoolean(Constants.Metrics.METRICS_V2_TABLE_SCAN_ENABLED)) {\n String v2TableName = cConf.get(Constants.Metrics....
"public void preWindowOpen() {\n IWorkbenchWindowConfigurer configurer = getWindowConfigurer();\n configurer.setInitialSize(new Point(1024, 768));\n configurer.setShowCoolBar(true);\n configurer.setShowStatusLine(false);\n String buildId = VersionUtils.getVersion();\n IBrandingService brandingService ...
"public static void releaseImages() {\n for (Image image : disabledImageCache.values()) {\n if (!image.isDisposed()) {\n image.dispose();\n }\n }\n imageCache.clear();\n for (Image image : disabledImageCache) {\n if (!image.isDisposed()) {\n image.dispose();\n ...
"public List<? extends Network> searchForNetworks(ListNetworksCmd cmd) {\n Long id = cmd.getId();\n String keyword = cmd.getKeyword();\n Long zoneId = cmd.getZoneId();\n Account caller = UserContext.current().getCaller();\n Long domainId = cmd.getDomainId();\n String accountName = cmd.getAccountName()...
"public boolean checkProjectStructure() {\n if (!new File(getModelPath()).exists()) {\n projectFile = projectFile.getParentFile();\n if (new File(getModelPath()).exists())\n return true;\n else\n return false;\n }\n return projectFolder;\n}\n"
"public int read(String table, String key, Set<String> fields, HashMap<String, ByteIterator> result) {\n try {\n if (_hTable == null) {\n getHTable(_table);\n }\n } catch (IOException e) {\n System.err.println(\"String_Node_Str\" + e);\n return ServerError;\n }\n Resul...
"private long getVertexCount(List<Set<URI>> components) {\n long ret = 0;\n for (Set<Resource> component : components) {\n ret += component.size();\n }\n return ret;\n}\n"
"public void sendHIA(String orderId) throws IOException, AxelorException, JDOMException {\n HIARequestElement request;\n KeyManagementResponseElement response;\n HttpRequestSender sender;\n int httpCode;\n sender = new HttpRequestSender(session);\n request = new HIARequestElement(session, orderId);\n ...
"public void testSha224SignatureVerification() throws Exception {\n runTest(mockerSha224);\n}\n"
"public void testCleanUp() {\n GlobalConfiguration.loadConfiguration(System.getProperty(USER_DIR_KEY) + CORRECT_CONF_DIR);\n final TestInstanceListener testInstanceListener = new TestInstanceListener();\n final ClusterManager cm = new ClusterManager();\n cm.setInstanceListener(testInstanceListener);\n tr...
"private Token token(int i) {\n try {\n return tokens.get(tPos + i);\n } catch (IndexOutOfBoundsException e) {\n throw DBLogger.newUser(\"String_Node_Str\" + tokens.get(tokens.size() - 1).pos + \"String_Node_Str\" + str);\n }\n}\n"
"public void signOffFactory(IAdapterFactory factory) {\n Class[] supportedClasses = factory.getSupportedClasses();\n for (int i = 0; i < supportedClasses.length; i++) {\n final Class supportedClass = supportedClasses[i];\n Collection registeredFactories = (Collection) m_registrationMap.get(supported...
"public boolean startCompany(String playerName, StartCompany action) {\n PublicCompany company = action.getCompany();\n int price = action.getPrice();\n int shares = action.getNumberBought();\n String errMsg = null;\n StockSpace startSpace = null;\n int numberOfCertsToBuy = 0;\n PublicCertificate c...
"public static boolean verifyNodesStatus(List<NodeEntity> nodes, NodeStatus expectedStatus, boolean ignoreMissing) {\n boolean success = true;\n for (NodeEntity node : nodes) {\n try {\n verifyNodeStatus(node, expectedStatus, ignoreMissing);\n } catch (Exception e) {\n node.set...
"public void invalidate() {\n super.invalidate();\n if (miner != null) {\n miner.invalidate();\n }\n if (worldObj != null && pos.getY() > 2) {\n BuildCraftFactory.miningWellBlock.removePipes(worldObj, pos);\n }\n}\n"
"private String getBaseFieldName(String fieldName) {\n return fieldName.substring(0, fieldName.lastIndexOf('.'));\n}\n"
"private Status updateStructureHandle() {\n try {\n structureHandle.setName(dataSetParamName.getText());\n structureHandle.setParameterDataType(ParameterPageUtil.getTypeName(dataType.getText()));\n setDirection(direction.getText());\n if (defaultValueText.isEnabled())\n Express...
"static Section handleHeadline(XMLEventReader rdr, Communication ptr) throws XMLStreamException {\n if (!ptr.isSetText())\n throw new IllegalArgumentException(\"String_Node_Str\");\n XMLEvent hl = rdr.nextEvent();\n StartElement hlse = hl.asStartElement();\n QName hlqn = hlse.getName();\n final St...
"void setMarkerScaleFactorUI(final double newFactor, boolean allowUndo) {\n final double oldMarkerScaleFactor = getMarkerScaleFactor();\n if (allowUndo) {\n AbstractUndoableEdit auEdit = new AbstractUndoableEdit() {\n public void undo() throws CannotUndoException {\n super.undo();...
"public synchronized boolean cancel(boolean mayInterruptIfRunning) {\n if (isDone())\n return false;\n log.trace(\"String_Node_Str\", this);\n boolean cancel = super.cancel(mayInterruptIfRunning);\n for (Task<?> t : secondaryJobsAll) cancel |= t.cancel(mayInterruptIfRunning);\n synchronized (jobTr...
"private Map<String, Class<?>> findExistingClasses(final InputStream stream) throws XMLStreamException {\n XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(stream);\n Map<String, Class<?>> existingClasses = new HashMap<String, Class<?>>();\n while (reader.hasNext() && reader.next() ...
"public void onNodeDragEnd(NodeDragEndEvent event) {\n int i = 0;\n for (WiresShape shape : m_selectionManager.m_selected.m_shapes) {\n shape.setX(m_shapeStartLocations.get(i++) + event.getDragContext().getDx());\n shape.setY(m_shapeStartLocations.get(i++) + event.getDragContext().getDy());\n ...
"public View getView(int position, View convertView, ViewGroup parent) {\n String ayah = ayahList.get(position);\n String translatedAya = \"String_Node_Str\";\n if (this.nTranslationVal != 0) {\n translatedAya = translatedAyaList.get(position);\n }\n ViewHolder holder = null;\n LayoutInflater m...
"public IStatus doAction() {\n try {\n IStructuredSelection selection = (IStructuredSelection) page.getTreeViewer().getSelection();\n if (selection.getFirstElement() instanceof XSDComplexTypeDefinition) {\n ctd = (XSDComplexTypeDefinition) selection.getFirstElement();\n if (!(ctd....
"public void processCategories(Map<String, String> categories) throws InterruptedException, ExecutionException {\n logger.info(\"String_Node_Str\");\n final ExecutorService pool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n List<Future<Map<String, Set<Long>>>> contentsFutures = ...
"public void onFocusChange(View v, boolean hasFocus) {\n if (!hasFocus) {\n double deg = Coordinates.convertDegToDouble(longitudeEditText.getText().toString());\n if (Double.isNaN(deg)) {\n ((EditText) v).setText(\"String_Node_Str\");\n } else {\n longitudeEditText.setText(...
"private String getEstHoursStr() throws OseeCoreException {\n double awaEst = awa.getSoleAttributeValue(AtsAttributeTypes.EstimatedHours, 0.0);\n if (awaEst < 0) {\n OseeLog.log(getClass(), OseeLevel.SEVERE_POPUP, \"String_Node_Str\");\n PromptChangeUtil.promptChangeAttribute(awa, AtsAttributeTypes....
"public String generate(String title, List<ValidationMessage> allErrors, List<FetchedFile> files, String path) throws IOException {\n List<ValidationMessage> linkErrors = removeDupMessages(allErrors);\n StringBuilder b = new StringBuilder();\n b.append(genHeader(title));\n b.append(genSummaryRowInteral(link...
"private void acceptJingleSession() {\n IceMediaStreamGenerator iceMediaStreamGenerator = null;\n List<MediaFormat> listFormat = null;\n Map<String, ContentPacketExtension> contentMap = new HashMap<String, ContentPacketExtension>();\n ContentPacketExtension content = null;\n for (ContentPacketExtension c...
"public void visitAssign(AssignLabel label, Object dst) {\n final PointerKey predPk = (PointerKey) dst;\n doTransition(curState, AssignBarLabel.noFilter(), new Function<State, Object>() {\n\n public Object apply(State predPkState) {\n PointerKeyAndState predPkAndState = new PointerKeyAndState(pr...
"public void testNoRemoveWindowPropertyAlias5() {\n testSame(LINE_JOINER.join(\"String_Node_Str\", \"String_Node_Str\"));\n}\n"
"private void createGeneralSectionRestartRequired(Composite parent) {\n generalSectionRestartRequired = toolkit.createSection(parent, Section.TITLE_BAR);\n generalSectionRestartRequired.setLayout(new GridLayout());\n GridDataFactory.fillDefaults().grab(true, false).applyTo(generalSectionRestartRequired);\n ...
"public ECPoint.F2m addSimple(ECPoint.F2m b) {\n if (this.isInfinity()) {\n return b;\n }\n if (b.isInfinity()) {\n return this;\n }\n ECCurve curve = this.getCurve();\n int coord = curve.getCoordinateSystem();\n ECFieldElement X1 = this.x;\n ECFieldElement X2 = b.x;\n switch(co...
"public boolean onCreateOptionsMenu(Menu menu) {\n super.onCreateOptionsMenu(menu);\n if (getToolbar() != null) {\n getToolbar().inflateMenu(R.menu.main_menu);\n MenuItem notificationsItem = menu.findItem(R.id.action_notifications);\n notificationProvider = (NotificationsActionProvider) MenuI...
"private Column parseColumnWithType(String columnName) {\n String original = currentToken;\n boolean regular = false;\n if (readIf(\"String_Node_Str\")) {\n if (readIf(\"String_Node_Str\")) {\n original += \"String_Node_Str\";\n }\n } else if (readIf(\"String_Node_Str\")) {\n ...
"private void finalizeTransactionsOf(String uuid) {\n if (!txBackupLogs.isEmpty()) {\n for (Map.Entry<String, TxBackupLog> entry : txBackupLogs.entrySet()) {\n TxBackupLog log = entry.getValue();\n if (uuid.equals(log.callerUuid)) {\n TransactionImpl tx = new TransactionIm...
"public ArrayList<DownloadLink> decryptIt(CryptedLink parameter, ProgressController progress) throws Exception {\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>();\n String fpName = parameter.getStringProperty(\"String_Node_Str\");\n br.setFollowRedirects(true);\n br.getPage(parameter...
"public void createGroupTypeTest() {\n XMLUnmarshaller unmarshaller = xrService.getXMLContext().createUnmarshaller();\n Object personType1 = unmarshaller.unmarshal(new StringReader(PTYPE_INPUT_XML));\n Object personType2 = unmarshaller.unmarshal(new StringReader(PTYPE_INPUT2_XML));\n Object personType3 = un...
"public void mergePeerAnswers() throws Exception {\n InboundMessageQueuer p1 = connectPeer(1, supportingVer);\n InboundMessageQueuer p2 = connectPeer(2, supportingVer);\n InboundMessageQueuer p3 = connectPeer(3, supportingVer);\n ObservableList<Project> projects = backend.mirrorProjects(gate);\n Observab...
"final private char Char() throws ParseException {\n Token t;\n switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {\n case CHAR:\n t = jj_consume_token(CHAR);\n break;\n case CNTRL_ESC:\n t = jj_consume_token(CNTRL_ESC);\n break;\n case HEX_ESC:\n ...
"public void versionQuery() throws Exception {\n final String response = DummyWhoisClient.query(NrtmServer.getPort(), \"String_Node_Str\");\n assertThat(response, containsString(\"String_Node_Str\"));\n}\n"
"private MenuManager createContextMenu() {\n MenuManager contextMenuManager = new MenuManager();\n final Action removeAction = new Action(\"String_Node_Str\") {\n public void run() {\n dispose();\n }\n };\n final ActionTree plotTypeTree = new ActionTree(\"String_Node_Str\");\n tr...
"private Object decorateWidget(Field field) {\n Class<?> type = field.getType();\n if (!Widget.class.isAssignableFrom(type) && !List.class.isAssignableFrom(type)) {\n return null;\n Class<? extends Widget> widgetType;\n boolean isAlist = false;\n if (List.class.isAssignableFrom(type)) {\n i...
"private List<Robustness> precomputeRobustness(Monitor subMonitor, FormulaInterval interval) {\n Deque<Robustness> lemireDeque = new LemireDeque<>(createComparator());\n List<Robustness> precomputed = new ArrayList<>();\n Iterator<Robustness> window = subMonitor.iterator();\n Iterator<Robustness> current = ...
"public static void main(String[] args) {\n double freq1 = 440.0;\n for (int i = 0; i <= StdAudio.SAMPLE_RATE; i++) {\n StdAudio.play(0.5 * Math.sin(2 * Math.PI * freq1 * i / StdAudio.SAMPLE_RATE));\n }\n for (int i = 0; i <= StdAudio.SAMPLE_RATE; i++) {\n StdAudio.play(0.5 * ActivationFunctio...
"private void extractCleanValueAndComment(final String value) {\n final StringBuilder cleanedValue = new StringBuilder(value.length());\n final StringBuilder commentValue = new StringBuilder(value.length());\n boolean comment = false;\n boolean space = false;\n boolean newline = false;\n boolean writt...
"public CheckInResult checkIn(final UserTO userTO) {\n CheckInResult result = new CheckInResult();\n result.setAction(CheckinResultAction.CREATE);\n return result;\n}\n"
"public void projectAddedP2P() throws Exception {\n ObservableList<Project> projects = backend.mirrorProjects(gate);\n Path dropDir = Files.createTempDirectory(\"String_Node_Str\");\n Path downloadedFile = writeProjectToDisk(dropDir);\n backend.importProjectFrom(downloadedFile);\n gate.waitAndRun();\n ...
"public final String getDidlString(RendererConfiguration mediaRenderer) {\n PmsConfiguration configuration = PMS.getConfiguration(mediaRenderer);\n StringBuilder sb = new StringBuilder();\n boolean subsAreValidForStreaming = false;\n boolean xbox360 = mediaRenderer.isXbox360();\n if (!isFolder()) {\n ...
"public int hashCode() {\n return _hashCode;\n}\n"
"public Csar getOrFail(String name, String version) {\n Csar csar = searchService.getArchive(name, version);\n if (csar == null) {\n throw new NotFoundException(\"String_Node_Str\" + name + \"String_Node_Str\" + version + \"String_Node_Str\");\n }\n return csar;\n}\n"
"protected void runDistributedTrain() throws IOException, InterruptedException, ClassNotFoundException {\n LOG.info(\"String_Node_Str\", isDryTrain ? \"String_Node_Str\" : \"String_Node_Str\");\n Configuration conf = new Configuration();\n SourceType sourceType = super.getModelConfig().getDataSet().getSource()...
"public TypeBinding resolveType(BlockScope scope) {\n if (this.compilerAnnotation != null)\n return this.resolvedType;\n this.constant = Constant.NotAConstant;\n TypeBinding typeBinding = this.type.resolveType(scope);\n if (typeBinding == null) {\n return null;\n }\n this.resolvedType = ...
"public static String getValueAsString(Object value, FacesContext ctx, DateTimePicker dtp) {\n if (value == null) {\n return null;\n }\n Locale sloc = BsfUtils.selectLocale(ctx.getViewRoot().getLocale(), dtp.getLocale(), dtp);\n String javaFormatString = BsfUtils.selectJavaDateTimeFormatFromMomentJSF...
"static String createName(final StringBuilder buffer, final CoordinateSystemAxis[] axes) {\n String separator = \"String_Node_Str\";\n for (final CoordinateSystemAxis axis : axes) {\n buffer.append(separator).append(Types.getCodeLabel(axis.getDirection()));\n separator = \"String_Node_Str\";\n ...
"public void onAnimationEnd(Animator animation) {\n if (mDimmed) {\n mBackgroundNormal.setVisibility(View.INVISIBLE);\n }\n}\n"
"protected void performOperation(boolean feedback) {\n final SolutionFileActionEvent event = new SolutionFileActionEvent();\n event.setAction(this.getClass().getName());\n String temp = \"String_Node_Str\";\n String names = \"String_Node_Str\";\n for (SolutionBrowserFile file : filesToDelete) {\n ...
"public Control createControl(final Composite subComposite, final IElementParameter param, final int numInRow, final int nbInRow, final int top, final Control lastControl) {\n this.curParameter = param;\n this.paramFieldType = param.getFieldType();\n FormData data;\n final Text labelText;\n final Decorat...
"protected float calcTerrainRoughness(float x, float z) {\n float result = 0.0f;\n result += _pGen2.noiseNoiseWithOctaves(0.01f * x, 0.01f, 0.01f * z, 16);\n return result;\n}\n"
"private void buildRespcondition_fail(Element resprocessingXML, boolean isSingleCorrect) {\n Element respcondition_fail = resprocessingXML.addElement(\"String_Node_Str\");\n respcondition_fail.addAttribute(\"String_Node_Str\", \"String_Node_Str\");\n respcondition_fail.addAttribute(\"String_Node_Str\", \"Strin...
"public void isTransitionValidForExtensions(TransitionResults results, AbstractWorkflowArtifact awa, IAtsStateDefinition fromStateDef, IAtsStateDefinition toStateDef) {\n for (ITransitionListener listener : TransitionListeners.getListeners()) {\n try {\n listener.transitioning(results, awa, fromSta...
"private double getCoverDelta(boolean[] range, GrammarRuleRecord rule) {\n int cover = 0;\n int overlap = 0;\n for (RuleInterval i : rule.getRuleIntervals()) {\n int start = i.getStartPos();\n int end = i.getEndPos();\n for (int j = start; j <= end; j++) {\n if (false == range[j...
"private int makeBackups(long[] replicaVersions, int syncBackupCount, int totalBackupCount) {\n int sentSyncBackupCount = 0;\n InternalPartition partition = partitionService.getPartition(partitionId);\n for (int replicaIndex = 1; replicaIndex <= totalBackupCount; replicaIndex++) {\n Address target = par...
"public static boolean saveTemplate(String name, TemplateSettings settings, File file) {\n Template template = map.get(name);\n if (template != null) {\n if (file == null)\n file = template.file;\n }\n template = new Template(settings, TemplateType.CUSTOM, file, null);\n boolean result ...
"private boolean isValidDirectory(File file) {\n if (!file.getName().startsWith(\"String_Node_Str\")) {\n IPath filePath = new Path(file.getAbsolutePath());\n for (EResourceConstant constant : EResourceConstant.getTopConstants()) {\n if (filePath.toString().indexOf(constant.getPath()) > 0) {...
"protected HandshakeResponse respondToOutgoing(HandshakeResponse response) {\n if (!response.isUltrapeer()) {\n HandshakingStat.LEAF_OUTGOING_REJECT_LEAF.incrementStat();\n return HandshakeResponse.createLeafRejectOutgoingResponse(HandshakeStatus.WE_ARE_LEAVES);\n }\n if (getLocalePreferencing())...
"public static MissionItem getProxyMissionItem(org.droidplanner.services.android.core.mission.MissionItem itemImpl) {\n if (itemImpl == null)\n return null;\n MissionItem proxyMissionItem;\n switch(itemImpl.getType()) {\n case WAYPOINT:\n {\n WaypointImpl source = (Waypo...
"public static PlistMerging from(List<Path> sourceFiles, Map<String, NSObject> automaticEntries, Map<String, String> substitutions, KeysToRemoveIfEmptyString keysToRemoveIfEmptyString) throws IOException {\n NSDictionary merged = PlistMerging.merge(sourceFiles);\n Set<String> conflictingEntries = Sets.difference(...