content
stringlengths
40
137k
"private String getXmlrpcByUserEnteredPath(String baseUrl) {\n String xmlRpcUrl;\n if (!UrlUtils.isValidUrlAndHostNotNull(baseUrl)) {\n AppLog.e(T.NUX, \"String_Node_Str\" + baseUrl);\n mErrorMsgId = org.wordpress.android.R.string.invalid_url_message;\n return null;\n }\n URI uri = URI.create(baseUrl);\n XMLRPCClientInterface client = XMLRPCFactory.instantiate(uri, mHttpUsername, mHttpPassword);\n try {\n client.call(Method.LIST_METHODS);\n xmlRpcUrl = baseUrl;\n return xmlRpcUrl;\n } catch (XMLRPCException e) {\n AppLog.i(T.NUX, \"String_Node_Str\" + baseUrl);\n if (isHTTPAuthErrorMessage(e)) {\n return null;\n }\n } catch (SSLHandshakeException e) {\n if (!WPUrlUtils.isWordPressCom(baseUrl)) {\n mErroneousSslCertificate = true;\n }\n AppLog.w(T.NUX, \"String_Node_Str\");\n return null;\n } catch (SSLPeerUnverifiedException e) {\n if (!WPUrlUtils.isWordPressCom(baseUrl)) {\n mErroneousSslCertificate = true;\n }\n AppLog.w(T.NUX, \"String_Node_Str\");\n return null;\n } catch (IOException e) {\n AppLog.i(T.NUX, \"String_Node_Str\" + baseUrl);\n if (isHTTPAuthErrorMessage(e)) {\n return null;\n }\n } catch (XmlPullParserException e) {\n AppLog.i(T.NUX, \"String_Node_Str\" + baseUrl);\n if (isHTTPAuthErrorMessage(e)) {\n return null;\n }\n } catch (IllegalArgumentException e) {\n CrashlyticsUtils.setString(ExtraKey.ENTERED_URL, baseUrl);\n CrashlyticsUtils.logException(e, ExceptionType.SPECIFIC, T.NUX);\n mErrorMsgId = org.wordpress.android.R.string.invalid_url_message;\n return null;\n }\n String guessURL = baseUrl;\n if (guessURL.substring(guessURL.length() - 1, guessURL.length()).equals(\"String_Node_Str\")) {\n guessURL = guessURL.substring(0, guessURL.length() - 1);\n }\n guessURL += \"String_Node_Str\";\n uri = URI.create(guessURL);\n client = XMLRPCFactory.instantiate(uri, mHttpUsername, mHttpPassword);\n try {\n client.call(ApiHelper.Methods.LIST_METHODS);\n xmlRpcUrl = guessURL;\n return xmlRpcUrl;\n } catch (XMLRPCException e) {\n AnalyticsTracker.track(Stat.LOGIN_FAILED_TO_GUESS_XMLRPC);\n AppLog.e(T.NUX, \"String_Node_Str\" + guessURL, e);\n } catch (SSLHandshakeException e) {\n if (!WPUrlUtils.isWordPressCom(baseUrl)) {\n mErroneousSslCertificate = true;\n }\n AppLog.w(T.NUX, \"String_Node_Str\");\n return null;\n } catch (SSLPeerUnverifiedException e) {\n if (!WPUrlUtils.isWordPressCom(baseUrl)) {\n mErroneousSslCertificate = true;\n }\n AppLog.w(T.NUX, \"String_Node_Str\");\n return null;\n } catch (IOException e) {\n AnalyticsTracker.track(Stat.LOGIN_FAILED_TO_GUESS_XMLRPC);\n AppLog.e(T.NUX, \"String_Node_Str\" + guessURL, e);\n } catch (XmlPullParserException e) {\n AnalyticsTracker.track(Stat.LOGIN_FAILED_TO_GUESS_XMLRPC);\n AppLog.e(T.NUX, \"String_Node_Str\" + guessURL, e);\n }\n return null;\n}\n"
"public void serialize(Distance distance, JsonGenerator generator, SerializerProvider provider) throws IOException, JsonProcessingException {\n generator.writeStartObject();\n generator.writeFieldName(\"String_Node_Str\");\n generator.writeString(distance.name());\n generator.writeFieldName(\"String_Node_Str\");\n generator.writeString(distance.getUnit());\n generator.writeFieldName(\"String_Node_Str\");\n generator.writeNumber(distance.getMeters());\n generator.writeEndObject();\n}\n"
"private void refreshWithNewestGlobal() {\n int nextPage = pagesLoaded;\n setProgressBarIndeterminateVisibility(true);\n service.everyonesRecent(countPP, nextPage, new ServiceCallback());\n}\n"
"public static Sender create(Request request, int timeout) {\n Sender sender = request.isGet() || request.isDelete() ? new GetSender(request) : new PostSender(request);\n return sender.setTimeout(timeout);\n}\n"
"public boolean isNameVisibleTo(FeedbackQuestionAttributes question, FeedbackResponseAttributes response, String userEmail, boolean isGiverName, CourseRoster roster) {\n if (question == null) {\n return false;\n }\n List<FeedbackParticipantType> showNameTo = isGiverName ? question.showGiverNameTo : question.showRecipientNameTo;\n if (response.giverEmail.equals(userEmail)) {\n return true;\n }\n for (FeedbackParticipantType type : showNameTo) {\n switch(type) {\n case INSTRUCTORS:\n if (roster.getInstructorForEmail(userEmail) != null && role == UserType.Role.INSTRUCTOR) {\n return true;\n } else {\n break;\n }\n case OWN_TEAM_MEMBERS:\n case OWN_TEAM_MEMBERS_INCLUDING_SELF:\n if (roster.isStudentsInSameTeam(response.giverEmail, userEmail)) {\n return true;\n } else {\n break;\n }\n case RECEIVER:\n if (question.recipientType == FeedbackParticipantType.TEAMS) {\n if (roster.isStudentInTeam(userEmail, response.recipientEmail)) {\n return true;\n }\n } else if (response.recipientEmail.equals(userEmail)) {\n return true;\n } else {\n break;\n }\n case RECEIVER_TEAM_MEMBERS:\n if (question.recipientType == FeedbackParticipantType.TEAMS) {\n if (roster.isStudentInTeam(userEmail, response.recipientEmail)) {\n return true;\n }\n } else if (roster.isStudentsInSameTeam(response.recipientEmail, userEmail)) {\n return true;\n } else {\n break;\n }\n case STUDENTS:\n if (roster.isStudentInCourse(userEmail)) {\n return true;\n } else {\n break;\n }\n default:\n Assumption.fail(\"String_Node_Str\" + \"String_Node_Str\");\n break;\n }\n }\n return false;\n}\n"
"public void write(org.apache.thrift.protocol.TProtocol prot, TResult struct) throws org.apache.thrift.TException {\n TTupleProtocol oprot = (TTupleProtocol) prot;\n BitSet optionals = new BitSet();\n if (struct.isSetId()) {\n optionals.set(0);\n }\n if (struct.isSetRsv()) {\n optionals.set(1);\n }\n if (struct.isSetScreen_name()) {\n optionals.set(2);\n }\n if (struct.isSetEpoch()) {\n optionals.set(3);\n }\n if (struct.isSetText()) {\n optionals.set(4);\n }\n oprot.writeBitSet(optionals, 5);\n if (struct.isSetId()) {\n oprot.writeI64(struct.id);\n }\n if (struct.isSetRsv()) {\n oprot.writeDouble(struct.rsv);\n }\n if (struct.isSetScreen_name()) {\n oprot.writeString(struct.screen_name);\n }\n if (struct.isSetCreated_at()) {\n oprot.writeString(struct.created_at);\n }\n if (struct.isSetText()) {\n oprot.writeString(struct.text);\n }\n}\n"
"public Resolution getResolution(Module module, Mod mod) {\n return (Resolution) JOptionPane.showInputDialog(null, String.format(\"String_Node_Str\" + \"String_Node_Str\", module.getName(), mod.getName()), \"String_Node_Str\", JOptionPane.QUESTION_MESSAGE, null, Resolution.values(), Resolution.Overwrite);\n}\n"
"public void andThen(ExecutionCallback<V> callback, Executor executor) {\n isNotNull(callback, \"String_Node_Str\");\n isNotNull(executor, \"String_Node_Str\");\n if (isDoneInternal()) {\n runAsynchronous(callback, executor);\n return;\n }\n for (; ; ) {\n ExecutionCallbackNode oldCallbackHead = callbackHead;\n ExecutionCallbackNode newCallbackHead = new ExecutionCallbackNode<V>(callback, executor, oldCallbackHead);\n if (callbackUpdater.compareAndSet(this, oldCallbackHead, newCallbackHead)) {\n break;\n }\n }\n}\n"
"public void filter() {\n String content = \"String_Node_Str\";\n AssessmentItem item = new AssessmentItem();\n ItemBody helper = new ItemBody(item);\n new AssessmentHtmlBuilder().appendHtml(helper, content);\n List<Block> paragraphs = helper.getBlocks();\n Assert.assertNotNull(paragraphs);\n Assert.assertEquals(2, paragraphs.size());\n StringOutput sb = new StringOutput();\n QtiSerializer qtiSerializer = new QtiSerializer(new JqtiExtensionManager());\n qtiSerializer.serializeJqtiObject(helper, new StreamResult(sb));\n String serializedQti = sb.toString();\n Assert.assertTrue(serializedQti.contains(\"String_Node_Str\"));\n}\n"
"public void targetCluster(final String name, final boolean info) {\n ClusterRead cluster = null;\n boolean noCluster = false;\n try {\n if (info) {\n if (name != null) {\n System.out.println(\"String_Node_Str\");\n return;\n }\n String fsUrl = hadoopConfiguration.get(\"String_Node_Str\");\n String jtUrl = hadoopConfiguration.get(\"String_Node_Str\");\n if ((fsUrl == null || fsUrl.length() == 0) && (jtUrl == null || jtUrl.length() == 0)) {\n System.out.println(\"String_Node_Str\");\n return;\n }\n if (targetClusterName != null && targetClusterName.length() > 0) {\n System.out.println(\"String_Node_Str\" + targetClusterName);\n }\n if (fsUrl != null && fsUrl.length() > 0) {\n System.out.println(\"String_Node_Str\" + fsUrl);\n }\n if (jtUrl != null && jtUrl.length() > 0) {\n System.out.println(\"String_Node_Str\" + jtUrl);\n }\n if (hiveServerUrl != null && hiveServerUrl.length() > 0) {\n System.out.println(\"String_Node_Str\" + hiveServerUrl);\n }\n } else {\n if (name == null) {\n ClusterRead[] clusters = restClient.getAll(false);\n if (clusters != null && clusters.length > 0) {\n cluster = clusters[0];\n } else {\n noCluster = true;\n }\n } else {\n cluster = restClient.get(name, false);\n }\n if (cluster == null) {\n if (noCluster) {\n System.out.println(\"String_Node_Str\");\n } else {\n System.out.println(\"String_Node_Str\" + name + \"String_Node_Str\");\n }\n setFsURL(\"String_Node_Str\");\n setJobTrackerURL(\"String_Node_Str\");\n this.setHiveServerUrl(\"String_Node_Str\");\n } else {\n targetClusterName = cluster.getName();\n boolean hasHDFS = false;\n boolean hasHiveServer = false;\n for (NodeGroupRead nodeGroup : cluster.getNodeGroups()) {\n for (String role : nodeGroup.getRoles()) {\n if (\"String_Node_Str\".equals(role)) {\n List<NodeRead> nodes = nodeGroup.getInstances();\n if (nodes != null && nodes.size() > 0) {\n String nameNodeIP = nodes.get(0).fetchMgtIp();\n setNameNode(nameNodeIP);\n hasHDFS = true;\n } else {\n throw new CliRestException(\"String_Node_Str\");\n }\n }\n if (role.equals(\"String_Node_Str\")) {\n List<NodeRead> nodes = nodeGroup.getInstances();\n if (nodes != null && nodes.size() > 0) {\n String jobTrackerIP = nodes.get(0).fetchMgtIp();\n setJobTracker(jobTrackerIP);\n } else {\n throw new CliRestException(\"String_Node_Str\");\n }\n }\n if (role.equals(\"String_Node_Str\")) {\n List<NodeRead> nodes = nodeGroup.getInstances();\n if (nodes != null && nodes.size() > 0) {\n String hiveServerIP = nodes.get(0).fetchMgtIp();\n setHiveServerAddress(hiveServerIP);\n hasHiveServer = true;\n } else {\n throw new CliRestException(\"String_Node_Str\");\n }\n }\n }\n }\n if (cluster.getExternalHDFS() != null && !cluster.getExternalHDFS().isEmpty()) {\n setFsURL(cluster.getExternalHDFS());\n hasHDFS = true;\n }\n if (!hasHDFS) {\n setFsURL(\"String_Node_Str\");\n }\n if (!hasHiveServer) {\n this.setHiveServerUrl(\"String_Node_Str\");\n }\n }\n }\n } catch (CliRestException e) {\n CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER, name, Constants.OUTPUT_OP_TARGET, Constants.OUTPUT_OP_RESULT_FAIL, e.getMessage());\n setFsURL(\"String_Node_Str\");\n setJobTrackerURL(\"String_Node_Str\");\n this.setHiveServerUrl(\"String_Node_Str\");\n }\n}\n"
"public double[] estimateInfluences() {\n List<String> response = estimateInfluencesRaw();\n MutableIntList territories = GtpCommand.parseResponseIntTable(response);\n MutableDoubleList influences = territories.collectDouble(influence -> {\n if (-300 < influence && influence < 300) {\n influence = 0;\n } else if (influence > 800) {\n influence = 800;\n } else if (influence < -800) {\n influence = -800;\n }\n return influence / 800.0;\n }, new DoubleArrayList(Board.BOARD_SIZE * Board.BOARD_SIZE));\n double[] influencesAdjusted = new double[Board.BOARD_SIZE * Board.BOARD_SIZE];\n for (int i = 0; i < Board.BOARD_SIZE; i++) {\n for (int j = 0; j < Board.BOARD_SIZE; j++) {\n influencesAdjusted[Board.getIndex(j, Board.BOARD_SIZE - 1 - i)] = influences.get(Board.getIndex(i, j));\n }\n }\n return influencesAdjusted;\n}\n"
"public String stateToString() {\n return name + \"String_Node_Str\" + len + \"String_Node_Str\" + readPos + \"String_Node_Str\" + writePos;\n}\n"
"public PageWriter getPageWriter(ColumnDescriptor path) {\n MemPageWriter pageWriter;\n if (pageWriters.containsKey(path)) {\n pageWriter = pageWriters.get(path);\n } else {\n pageWriter = new MemPageWriter();\n pageWriters.put(path, pageWriter);\n }\n return pageWriter;\n}\n"
"public void resetContextsTest() {\n final AIConfiguration config = new AIConfiguration(getAccessToken(), getSubscriptionKey(), AIConfiguration.SupportedLanguages.English, AIConfiguration.RecognitionEngine.Speaktoit);\n updateConfig(config);\n final AIDataService aiDataService = new AIDataService(Robolectric.application, config);\n try {\n {\n final AIRequest aiRequest = new AIRequest(\"String_Node_Str\");\n final AIResponse aiResponse = aiDataService.request(aiRequest);\n assertContainsContext(aiResponse, \"String_Node_Str\");\n final boolean resetSucceed = aiDataService.resetContexts();\n assertTrue(resetSucceed);\n }\n {\n final AIRequest aiRequest = new AIRequest(\"String_Node_Str\");\n final AIResponse aiResponse = aiDataService.request(aiRequest);\n assertNotNull(aiResponse);\n assertFalse(aiResponse.getStatus().getErrorDetails(), aiResponse.isError());\n assertNotContainsContext(aiResponse, \"String_Node_Str\");\n }\n } catch (final AIServiceException e) {\n e.printStackTrace();\n assertTrue(e.getMessage(), false);\n }\n}\n"
"public void run() {\n try {\n Log.i(TAG, \"String_Node_Str\");\n startOpenVPNThreadArgs(mArgv);\n Log.i(TAG, \"String_Node_Str\");\n } catch (Exception e) {\n Log.e(TAG, \"String_Node_Str\" + e.toString());\n } finally {\n int exitvalue = 0;\n try {\n exitvalue = mProcess.waitFor();\n } catch (IllegalThreadStateException ite) {\n OpenVPN.logError(\"String_Node_Str\" + ite.getLocalizedMessage());\n }\n if (exitvalue != 0)\n OpenVPN.logError(\"String_Node_Str\" + exitvalue);\n OpenVPN.updateStateString(\"String_Node_Str\", \"String_Node_Str\");\n mService.processDied();\n Log.i(TAG, \"String_Node_Str\");\n }\n}\n"
"private static void build() {\n final Widget versionPanel = getVersionPanel();\n final Widget rolesPanel = getManagersPartnersPanel();\n final Widget devConPanel = getDevelopersContributorsPanel();\n final VerticalPanel vPanel = new VerticalPanel();\n vPanel.setSpacing(0);\n vPanel.add(rolesPanel);\n vPanel.setCellVerticalAlignment(rolesPanel, HasVerticalAlignment.ALIGN_TOP);\n vPanel.add(devConPanel);\n vPanel.setCellVerticalAlignment(devConPanel, HasVerticalAlignment.ALIGN_TOP);\n final HorizontalPanel hPanel = new HorizontalPanel();\n hPanel.setSpacing(0);\n hPanel.add(versionPanel);\n hPanel.setCellVerticalAlignment(versionPanel, HasVerticalAlignment.ALIGN_MIDDLE);\n hPanel.setCellHorizontalAlignment(versionPanel, HasHorizontalAlignment.ALIGN_CENTER);\n hPanel.setCellWidth(versionPanel, \"String_Node_Str\");\n versionPanel.getElement().getStyle().setMarginRight(45, Unit.PX);\n hPanel.add(vPanel);\n hPanel.setCellVerticalAlignment(vPanel, HasVerticalAlignment.ALIGN_TOP);\n final VerticalPanel mainPanel = new VerticalPanel();\n mainPanel.setSpacing(10);\n mainPanel.add(hPanel);\n mainPanel.add(getCreditsPanel());\n window = new Window();\n window.setWidth(735);\n window.setHeight(570);\n window.setHeading(I18N.CONSTANTS.credits());\n window.setPlain(true);\n window.setModal(true);\n window.setBlinkModal(true);\n window.setLayout(new FitLayout());\n final ContentPanel p = new ContentPanel();\n p.setLayout(new FitLayout());\n p.setHeaderVisible(false);\n p.add(mainPanel);\n window.add(p);\n}\n"
"public static boolean hasEnough(Payment payment, HumanNPC npc) {\n return npc.getBalance() >= payment.getPrice();\n}\n"
"private com.massivecraft.factions.Factions getInstance() {\n try {\n factionsInstance = (com.massivecraft.factions.Factions) com.massivecraft.factions.Factions.class.getMethod(\"String_Node_Str\").invoke(this);\n } catch (Exception e) {\n FactionsPlus.get().logError(e);\n return null;\n }\n}\n"
"public View getView(int position, View convertView, ViewGroup parent) {\n ListPreference pref = mListItem.get(position);\n int viewLayoutId = getSettingLayoutId(pref);\n InLineSettingItem view = (InLineSettingItem) convertView;\n view = (InLineSettingItem) mInflater.inflate(viewLayoutId, parent, false);\n view.initialize(pref);\n view.setSettingChangedListener(MoreSettingPopup.this);\n if (position >= 0 && position < mEnabled.length) {\n view.setEnabled(mEnabled[position]);\n } else {\n Log.w(TAG, \"String_Node_Str\" + mEnabled.length + \"String_Node_Str\" + position);\n }\n return view;\n}\n"
"public void generateTraitsPhase3(int methodInitScope, boolean isInterface, String className, String superName, boolean generateStatic, SourceGeneratorLocalData localData, List<GraphTargetItem> items, Traits ts, Trait[] traits, Map<Trait, Integer> initScopes, Reference<Integer> class_index) throws AVM2ParseException, CompilationException {\n for (int k = 0; k < items.size(); k++) {\n GraphTargetItem item = items.get(k);\n if (traits[k] == null) {\n continue;\n }\n if (item instanceof InterfaceAVM2Item) {\n generateClass(((InterfaceAVM2Item) item).namespace, abc.class_info.get(((TraitClass) traits[k]).class_info), abc.instance_info.get(((TraitClass) traits[k]).class_info), initScopes.get(traits[k]), ((InterfaceAVM2Item) item).pkg, localData, (InterfaceAVM2Item) item, class_index);\n }\n if (item instanceof ClassAVM2Item) {\n generateClass(((ClassAVM2Item) item).namespace, abc.class_info.get(((TraitClass) traits[k]).class_info), abc.instance_info.get(((TraitClass) traits[k]).class_info), initScopes.get(traits[k]), ((ClassAVM2Item) item).pkg, localData, (ClassAVM2Item) item, class_index);\n }\n if ((item instanceof MethodAVM2Item) || (item instanceof GetterAVM2Item) || (item instanceof SetterAVM2Item)) {\n MethodAVM2Item mai = (MethodAVM2Item) item;\n if (mai.isStatic() != generateStatic) {\n continue;\n }\n ((TraitMethodGetterSetter) traits[k]).method_info = method(false, isInterface, new ArrayList<MethodBody>(), mai.pkg, mai.needsActivation, mai.subvariables, methodInitScope + (mai.isStatic() ? 0 : 1), mai.hasRest, mai.line, className, superName, false, localData, mai.paramTypes, mai.paramNames, mai.paramValues, mai.body, mai.retType);\n } else if (item instanceof FunctionAVM2Item) {\n FunctionAVM2Item fai = (FunctionAVM2Item) item;\n ((TraitFunction) traits[k]).method_info = method(isInterface, new ArrayList<MethodBody>(), fai.pkg, fai.needsActivation, fai.subvariables, methodInitScope, fai.hasRest, fai.line, className, superName, false, localData, fai.paramTypes, fai.paramNames, fai.paramValues, fai.body, fai.retType);\n }\n }\n}\n"
"public void tracksUpdated(Collection<Track> trax) {\n updateLock.lock();\n try {\n List<Track> traxToAdd = new ArrayList<Track>();\n for (Track t : trax) {\n Integer idx = trackIndices.get(t.getStream().getStreamId());\n if (idx != null) {\n if (trackBelongsInMyLib(t))\n traxToUpdate.add(t);\n else\n eventList.remove(idx);\n } else {\n if ((t instanceof SharedTrack) || (t instanceof DownloadingTrack))\n traxToAdd.add(t);\n }\n }\n add(traxToAdd);\n } finally {\n updateLock.unlock();\n }\n}\n"
"public Collection<String> getPrivateIpAddresses() throws Exception {\n final Map<String, String> result = new DescribeInstances(awsConfig).execute();\n return result.keySet();\n}\n"
"public static boolean updateKubernetesMaster(KubernetesMaster kubernetesMasterBean) throws RestAPIException {\n AutoscalerServiceClient autoscalerServiceClient = getAutoscalerServiceClient();\n if (autoscalerServiceClient != null) {\n org.apache.stratos.common.kubernetes.KubernetesMaster kubernetesMaster = PojoConverter.convertToASKubernetesMasterPojo(kubernetesMasterBean);\n try {\n return autoscalerServiceClient.updateKubernetesMaster(kubernetesMaster);\n } catch (RemoteException e) {\n log.error(e.getMessage(), e);\n throw new RestAPIException(e.getMessage(), e);\n } catch (AutoScalerServiceInvalidKubernetesMasterExceptionException e) {\n String message = e.getFaultMessage().getInvalidKubernetesMasterException().getMessage();\n log.error(message, e);\n throw new RestAPIException(message, e);\n } catch (AutoScalerServiceNonExistingKubernetesMasterExceptionException e) {\n String message = e.getFaultMessage().getNonExistingKubernetesMasterException().getMessage();\n log.error(message, e);\n throw new RestAPIException(message, e);\n }\n }\n return false;\n}\n"
"public void inferQualifiedSlot(Node node, String symbol, JSType bottomType, JSType inferredType) {\n Scope functionScope = getFunctionScope();\n if (functionScope.isLocal()) {\n if (functionScope.getVar(symbol) == null && !functionScope.isBottom()) {\n functionScope.declare(symbol, node, bottomType, null);\n }\n inferSlotType(symbol, inferredType);\n }\n}\n"
"private Ports assignPorts(List<String> portBindings) {\n Ports ports = new Ports();\n for (String portBinding : portBindings) {\n String[] elements = portBinding.split(PORTS_SEPARATOR);\n if (elements.length == 1) {\n log.info(\"String_Node_Str\" + elements[0]);\n int positionOfProtocolSeparator = elements[0].indexOf(\"String_Node_Str\");\n String bindingPortValue = elements[0];\n if (positionOfProtocolSeparator > -1) {\n bindingPortValue = elements[0].substring(0, positionOfProtocolSeparator);\n }\n ports.bind(ExposedPort.parse(elements[0]), toBinding(bindingPortValue));\n } else {\n if (elements.length == 2) {\n ports.bind(ExposedPort.parse(elements[1]), toBinding(elements[0]));\n }\n }\n }\n return ports;\n}\n"
"public final void setDebug(final boolean on) throws ConnectorException {\n synchronized (_debugFieldMutex) {\n if (on) {\n if (_debugListener == null) {\n _debugListener = new AbstractConnectorListener() {\n public void messageReceived(final ConnectorMessageEvent event) {\n getDebugOut().println(\"String_Node_Str\" + event.getMessage());\n }\n public void messageSent(final ConnectorMessageEvent event) {\n getDebugOut().println(\"String_Node_Str\" + event.getMessage());\n }\n };\n addConnectorListener(_debugListener, true, true);\n }\n } else {\n if (_debugListener != null) {\n removeConnectorListener(_debugListener);\n _debugListener = null;\n }\n }\n}\n"
"public int countItems() throws SQLException {\n int total = 0;\n Collection[] cols = getCollections();\n if (cols.length > 0) {\n for (int j = 0; j < cols.length; j++) {\n collitems = cols[j].countItems();\n commitems += collitems;\n }\n }\n return commitems;\n}\n"
"public IMethod getCalleeTarget(CGNode caller, CallSiteReference site, IClass dispatchType) {\n if (site == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n MethodReference ref = site.getDeclaredTarget();\n IMethod resolved = null;\n if (ClassHierarchyMethodTargetSelector.feasibleChaResolution(cha, site, dispatchType)) {\n if (site.isVirtual() || site.isInterface()) {\n if (dispatchType != null) {\n resolved = cha.resolveMethod(dispatchType, ref.getSelector());\n }\n } else {\n IClass computedDispatchType = cha.lookupClass(site.getDeclaredTarget().getDeclaringClass());\n if (computedDispatchType != null) {\n resolved = cha.resolveMethod(computedDispatchType, ref.getSelector());\n }\n }\n }\n IMethod target = (resolved == null) ? findOrCreateSyntheticMethod(ref, site.isStatic()) : getBypassInternal(resolved, site.isStatic());\n if (DEBUG) {\n System.err.println(\"String_Node_Str\" + target);\n }\n if (target != null) {\n return target;\n } else {\n if (canIgnore(site.getDeclaredTarget())) {\n return findOrCreateSyntheticMethod(site.getDeclaredTarget(), site.isStatic());\n }\n target = parent.getCalleeTarget(caller, site, dispatchType);\n if (DEBUG) {\n System.err.println(\"String_Node_Str\" + target);\n }\n if (target != null) {\n IMethod bypassTarget = getBypassInternal(target, site.isStatic());\n if (DEBUG)\n System.err.println(\"String_Node_Str\" + target);\n return (bypassTarget == null) ? target : bypassTarget;\n } else\n return target;\n }\n}\n"
"private BigtableBufferedMutator createMutator(Configuration configuration) throws IOException {\n HeapSizeManager heapSizeManager = new HeapSizeManager(AsyncExecutor.ASYNC_MUTATOR_MAX_MEMORY_DEFAULT, AsyncExecutor.MAX_INFLIGHT_RPCS_DEFAULT) {\n public <T> FutureCallback<T> addCallback(ListenableFuture<T> future, Long id) {\n FutureCallback<T> callback = super.addCallback(future, id);\n callbacks.add(callback);\n return callback;\n }\n };\n configuration.set(BigtableOptionsFactory.PROJECT_ID_KEY, \"String_Node_Str\");\n configuration.set(BigtableOptionsFactory.ZONE_KEY, \"String_Node_Str\");\n configuration.set(BigtableOptionsFactory.CLUSTER_KEY, \"String_Node_Str\");\n BigtableOptions options = BigtableOptionsFactory.fromConfiguration(configuration);\n HBaseRequestAdapter adapter = new HBaseRequestAdapter(options.getClusterName(), TableName.valueOf(\"String_Node_Str\"), configuration);\n executorService = Executors.newCachedThreadPool();\n return new BigtableBufferedMutator(client, adapter, configuration, options, listener, heapSizeManager, executorService);\n}\n"
"public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren) throws ChildrenExistException {\n HTableInterface htable = null;\n try {\n htable = HBaseConnection.get(hbaseUrl).getTable(aclTableName);\n Delete delete = new Delete(Bytes.toBytes(String.valueOf(objectIdentity.getIdentifier())));\n List<ObjectIdentity> children = findChildren(objectIdentity);\n if (!deleteChildren && children.size() > 0) {\n throw new ChildrenExistException(\"String_Node_Str\" + objectIdentity);\n }\n for (ObjectIdentity oid : children) {\n deleteAcl(oid, deleteChildren);\n }\n htable.delete(delete);\n htable.flushCommits();\n aclCache.remove(objectIdentity);\n } catch (IOException e) {\n logger.error(e.getLocalizedMessage(), e);\n } finally {\n IOUtils.closeQuietly(htable);\n }\n}\n"
"Object readBackReference(int handle) throws IOException {\n final int idx = handle - baseWireHandle;\n if (idx < 0 || idx >= instanceCache.size()) {\n throw new StreamCorruptedException(String.format(\"String_Node_Str\", Integer.valueOf(handle)));\n }\n final Object obj = instanceCache.get(idx);\n if (obj == UNSHARED) {\n throw new StreamCorruptedException(String.format(\"String_Node_Str\", Integer.valueOf(handle)));\n }\n if (obj == UNRESOLVED) {\n throw new StreamCorruptedException(String.format(\"String_Node_Str\", Integer.valueOf(handle)));\n }\n return obj;\n}\n"
"public static Bitmap getBitmapScaledToDisplay(File f, int screenHeight, int screenWidth) {\n BitmapFactory.Options o = new BitmapFactory.Options();\n o.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(f.getAbsolutePath(), o);\n int imageHeight = o.outHeight;\n int imageWidth = o.outWidth;\n int heightScale = Math.round((float) imageHeight / screenHeight);\n int widthScale = Math.round((float) imageWidth / screenWidth);\n int scale = Math.max(widthScale, heightScale);\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = scale;\n Bitmap b = BitmapFactory.decodeFile(f.getAbsolutePath(), options);\n if (b != null) {\n Log.i(t, \"String_Node_Str\" + screenHeight + \"String_Node_Str\" + screenWidth + \"String_Node_Str\" + scale + \"String_Node_Str\" + b.getHeight() + \"String_Node_Str\" + b.getWidth());\n }\n return b;\n}\n"
"public void addPetMaterial(int playerId, String... params) {\n int petId = Integer.valueOf(params[0]);\n int count = Integer.valueOf(params[1]);\n petService.addPetMaterial(playerId, petId, count, true);\n}\n"
"public boolean apply(Game game, Ability source) {\n PreventDamageToTargetEffect effect = new PreventDamageToTargetEffect(Duration.EndOfTurn, 1);\n List<Permanent> permanents = game.getBattlefield().getActivePermanents(new FilterCreaturePermanent(), source.getControllerId(), game);\n for (Permanent permanent : permanents) {\n effect.setTargetPointer(new FixedTarget(permanent.getId()));\n game.addEffect(effect, source);\n }\n for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {\n Player player = game.getPlayer(playerId);\n if (player != null) {\n effect.setTargetPointer(new FixedTarget(player.getId()));\n game.addEffect(effect, source);\n }\n }\n return false;\n}\n"
"private void notifyAnimationChanged(Animation newAnimation) {\n for (int i = changeOfAnimationListeners.size() - 1; i >= 0; i--) {\n changeOfAnimationListeners.get(i).updateAnimation(newAnimation);\n }\n}\n"
"public void configurarRespostas() {\n marcouFim = true;\n contadorTextView.setText(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\" + tempoRestante);\n intentRespostas.putExtra(Jogador.JOGADOR, this.jogador);\n intentRespostas.putExtra(ConfiguracaoParatida.CONFIGURACAO, this.configuracao);\n mostraDialogSairJogo(msgFimJogo(), fimDeJogoListener());\n}\n"
"public void onUpdate() {\n this.prevPosX = this.posX;\n this.prevPosY = this.posY;\n this.prevPosZ = this.posZ;\n if (!worldObj.isRemote) {\n updateStage();\n }\n if (getStage() == Stage.POSITION) {\n LogHelper.dev(noClip);\n this.moveEntity(this.motionX, this.motionY, this.motionZ);\n } else {\n setPosition(0.5, exitPortalLocation.getY() + 0.5, 0.5);\n motionX = motionY = motionZ = 0;\n }\n if (!worldObj.isRemote) {\n if (dragon != null) {\n dragon.setAttackTarget(null);\n if (!dragon.isEntityAlive()) {\n dragon = null;\n LogHelper.dev(\"String_Node_Str\");\n List<EntityDragon> list = worldObj.getEntities(EntityDragon.class, EntitySelectors.IS_ALIVE);\n for (EntityDragon listItem : list) {\n if (dragon == null || listItem.getDistance(0, 67, 0) < dragon.getDistance(0, 67, 0)) {\n dragon = listItem;\n }\n }\n if (dragon == null) {\n cancel();\n return;\n }\n }\n if (getStage() != Stage.EXTRACT) {\n IPhase phase = dragon.getPhaseManager().getCurrentPhase();\n if (phase instanceof PhaseLandingApproach || phase instanceof PhaseLanding || phase instanceof PhaseSittingBase) {\n dragon.getPhaseManager().setPhase(PhaseList.HOLDING_PATTERN);\n }\n } else if (stageTime < 300) {\n IPhase phase = dragon.getPhaseManager().getCurrentPhase();\n if (phase instanceof PhaseTakeoff) {\n dragon.getPhaseManager().setPhase(PhaseList.SITTING_SCANNING);\n } else if (!(phase instanceof PhaseLandingApproach || phase instanceof PhaseLanding || phase instanceof PhaseSittingBase || phase instanceof PhaseHover)) {\n dragon.getPhaseManager().setPhase(PhaseList.LANDING);\n }\n }\n }\n }\n}\n"
"public static void set(VM_Address start, int len, int v) throws VM_PragmaInline {\n for (int i = 0; i < len; i += BYTES_IN_INT) VM_Magic.setMemoryInt(start.add(i), v);\n}\n"
"public boolean process(String opt, List<String> args) {\n showTaglets = true;\n return true;\n}\n"
"public Index call() throws Exception {\n log.info(\"String_Node_Str\");\n Collection<Endpoint> datahub = DatahubAccess.checkEndpointList();\n if (datahub.size() == 0)\n return null;\n Collection<Endpoint> db = _dbm.get(Endpoint.class, Endpoint.SCHEMA$);\n TreeSet<Endpoint> ckan = new TreeSet<Endpoint>(new EndpointComparator());\n TreeSet<Endpoint> sparqles = new TreeSet<Endpoint>(new EndpointComparator());\n ckan.addAll(datahub);\n sparqles.addAll(db);\n int newEPs = 0, upEPs = 0;\n for (Endpoint ep : ckan) {\n if (!sparqles.contains(ep)) {\n log.info(\"String_Node_Str\", ep);\n newEPs++;\n _dbm.insert(ep);\n Schedule sch = _s.defaultSchedule(ep);\n _dbm.insert(sch);\n _s.initSchedule(sch);\n } else {\n log.info(\"String_Node_Str\", ep);\n _dbm.update(ep);\n }\n }\n for (Endpoint ep : sparqles) {\n if (!ckan.contains(ep)) {\n log.info(\"String_Node_Str\", ep);\n _dbm.cleanup(ep);\n }\n }\n return null;\n}\n"
"private void RenderMouseOver(GL gl) {\n if (mouseoverSelectionManager.getNumberOfElements(ESelectionType.MOUSE_OVER) == 0)\n return;\n Set<Integer> mouseOver = mouseoverSelectionManager.getElements(ESelectionType.MOUSE_OVER);\n int iContentIndex = 0;\n for (int i : mouseOver) {\n iContentIndex = i;\n break;\n }\n float XScale = renderStyle.getRenderWidth() - XYAXISDISTANCE * 2.0f;\n float YScale = renderStyle.getRenderHeight() - XYAXISDISTANCE * 2.0f;\n float xnormalized = set.get(SELECTED_X_AXIS).getFloat(EDataRepresentation.NORMALIZED, iContentIndex);\n float ynormalized = set.get(SELECTED_Y_AXIS).getFloat(EDataRepresentation.NORMALIZED, iContentIndex);\n float x = xnormalized * XScale;\n float y = ynormalized * YScale;\n float[] fArMappingColor = colorMapper.getColor(Math.max(xnormalized, ynormalized));\n if (elementSelectionManager.checkStatus(ESelectionType.SELECTION, iContentIndex))\n fArMappingColor = GeneralRenderStyle.MOUSE_OVER_COLOR;\n float z = +1.5f;\n float fullPoint = POINTSIZE * 2f;\n gl.glColor3f(1.0f, 1.0f, 0.0f);\n float angle;\n float PI = (float) Math.PI;\n gl.glBegin(GL.GL_POLYGON);\n for (int i = 0; i < 20; i++) {\n angle = (i * 2 * PI) / 10;\n gl.glVertex3f(x + (float) (Math.cos(angle) * fullPoint), y + (float) (Math.sin(angle) * fullPoint), z);\n }\n gl.glEnd();\n z = +2.0f;\n gl.glColor3f(0.0f, 0.0f, 0.0f);\n gl.glPointSize(POINTSIZE * 50.0f);\n gl.glBegin(GL.GL_POINTS);\n gl.glVertex3f(x, y, z);\n gl.glEnd();\n z = +2.5f;\n gl.glColor3f(fArMappingColor[0], fArMappingColor[1], fArMappingColor[2]);\n DrawPointPrimitive(gl, x, y, z, fArMappingColor, 1.0f, iContentIndex, 2.0f);\n DrawMouseOverLabel(gl, x, y, z, fArMappingColor, 1.0f, iContentIndex);\n}\n"
"public boolean layout() {\n boolean childBreak = super.layout();\n if (childBreak) {\n IPDFTableLayoutManager itsTableLM = getTableLayoutManager();\n if (itsTableLM != null) {\n IStyle cStyle = content.getStyle();\n if (!isFinished() && needPageBreakBefore(cStyle.getPageBreakBefore())) {\n itsTableLM.setTableCloseStateAsForced();\n } else if (isFinished() && needPageBreakAfter(null)) {\n itsTableLM.setTableCloseStateAsForced();\n }\n }\n }\n return childBreak;\n}\n"
"private void putVertexTR(UnpackedBakedQuad.Builder builder, EnumFacing face, float x, float y, float z, UvVector uv) {\n float u, v;\n switch(uvRotations[face.ordinal()]) {\n default:\n case 0:\n u = uv.u2;\n v = uv.v1;\n break;\n case 1:\n u = uv.u1;\n v = uv.v1;\n break;\n case 2:\n u = uv.u1;\n v = uv.v2;\n break;\n case 3:\n u = uv.u2;\n v = uv.v2;\n break;\n }\n putVertex(builder, face, x, y, z, u, v);\n}\n"
"private void getJobScriptsUncompressed(ExportFileResource resource, ProcessItem process) throws IOException {\n String projectName = getCorrespondingProjectName(process);\n final URI classRootURI = classesLocation.toURI();\n List<String> jobFolderNames = getRelatedJobFolderNames(process);\n try {\n final String classRootLocation = getClassRootLocation() + projectName + File.separator;\n for (String jobFolderName : jobFolderNames) {\n String[] jf = jobFolderName.split(\"String_Node_Str\");\n String projectName = jf[0];\n String folderName = jf[1];\n String classRootLocation = getClassRootLocation() + projectName + File.separator;\n String classRoot = FilesUtils.getFileRealPath(classRootLocation + folderName);\n String targetPath = FilesUtils.getFileRealPath(classesLocation + File.separator + projectName + File.separator + folderName);\n File sourceFile = new File(classRoot);\n File targetFile = new File(targetPath);\n FilesUtils.copyFolder(sourceFile, targetFile, true, null, null, true, false);\n List<URL> fileURLs = FilesUtils.getFileURLs(targetFile);\n for (URL url : fileURLs) {\n resource.addResource(classRootURI.relativize(new File(url.toURI()).getParentFile().toURI()).toString(), url);\n }\n }\n } catch (IOException e) {\n throw e;\n } catch (Exception e) {\n ExceptionHandler.process(e);\n }\n}\n"
"SearchRow remove(SearchRow row) throws SQLException {\n int at = find(row, false, false, true);\n PageBtree page = index.getPage(childPageIds[at]);\n SearchRow last = page.remove(row);\n index.getPageStore().logUndo(this, data);\n updateRowCount(-1);\n written = false;\n if (last == null) {\n return null;\n } else if (last == row) {\n index.getPageStore().free(page.getPos());\n if (entryCount < 1) {\n return row;\n }\n if (at == entryCount) {\n last = getRow(at - 1);\n } else {\n last = null;\n }\n removeChild(at);\n index.getPageStore().update(this);\n return last;\n }\n if (at == entryCount) {\n return last;\n }\n int child = childPageIds[at];\n removeChild(at);\n addChild(at, child, last);\n int temp = childPageIds[at];\n childPageIds[at] = childPageIds[at + 1];\n childPageIds[at + 1] = temp;\n index.getPageStore().update(this);\n return null;\n}\n"
"public static String composeKey(String z, String x, String y) {\n return z + File.separatorChar + x + File.separatorChar + y;\n}\n"
"protected void loadBlocks(World world) {\n if (add == null) {\n add = new byte[LENGTH];\n }\n NibbleArray add = new NibbleArray(this.add);\n NibbleArray data = new NibbleArray(this.data);\n types = new byte[rawTypes.length];\n for (int i = 0; i < LENGTH; i += 1) {\n Block block;\n byte b;\n byte bData;\n int bAdd;\n b = rawTypes[i];\n bAdd = NibbleArray.get(this.add, i) << 8;\n b += bAdd;\n bData = data.get(i);\n Substance material = Substance.fromId(b);\n if (material == null) {\n material = Substance.AIR;\n }\n block = new TridentBlock(Coordinates.create(world, 0, 0, 0), material, bData);\n switch(block.substance()) {\n default:\n break;\n }\n types[i] = (byte) (bAdd | ((b & 0xff) << 4) | bData);\n }\n}\n"
"public void initialize(IEmitterServices services) {\n this.services = services;\n this.out = EmitterUtil.getOuputStream(services, REPORT_FILE);\n Object emitterConfig = services.getEmitterConfig().get(\"String_Node_Str\");\n if (emitterConfig != null && emitterConfig instanceof HTMLEmitterConfig) {\n imageHandler = ((HTMLEmitterConfig) emitterConfig).getImageHandler();\n actionHandler = ((HTMLEmitterConfig) emitterConfig).getActionHandler();\n }\n Object im = services.getOption(HTMLRenderOption.IMAGE_HANDLER);\n if (im != null && im instanceof IHTMLImageHandler) {\n imageHandler = (IHTMLImageHandler) im;\n }\n Object ac = services.getOption(HTMLRenderOption.ACTION_HANDLER);\n if (ac != null && ac instanceof IHTMLActionHandler) {\n actionHandler = (IHTMLActionHandler) ac;\n }\n reportContext = services.getReportContext();\n renderOption = services.getRenderOption();\n runnable = services.getReportRunnable();\n writer = new HTMLWriter();\n if (renderOption != null) {\n HTMLRenderOption htmlOption = new HTMLRenderOption(renderOption);\n isEmbeddable = htmlOption.getEmbeddable();\n HashMap options = renderOption.getOutputSetting();\n if (options != null) {\n urlEncoding = (String) options.get(HTMLRenderOption.URL_ENCODING);\n }\n outputMasterPageContent = htmlOption.getMasterPageContent();\n IHTMLActionHandler actHandler = htmlOption.getActionHandle();\n if (ac != null) {\n actionHandler = actHandler;\n }\n pageFooterFloatFlag = htmlOption.getPageFooterFloatFlag();\n htmlRtLFlag = htmlOption.getHtmlRtLFlag();\n enableMetadata = htmlOption.getEnableMetadata();\n ouputInstanceIDs = htmlOption.getInstanceIDs();\n metadataEmitter = new MetadataEmitter(writer, htmlOption, idGenerator);\n layoutPreference = htmlOption.getLayoutPreference();\n enableAgentStyleEngine = htmlOption.getEnableAgentStyleEngine();\n outputMasterPageMargins = htmlOption.getOutputMasterPageMargins();\n }\n}\n"
"public void setUp() throws Exception {\n super.setUp();\n Context context = Context.enter();\n scope = context.initStandardObjects();\n Context.exit();\n expectedValue = new ArrayList();\n appContextMap.put(DataEngine.DATASET_CACHE_OPTION, \"String_Node_Str\");\n this.appContextMap.put(DataEngine.DATA_SET_CACHE_ROW_LIMIT, null);\n myDataEngine = newDataEngine();\n}\n"
"private synchronized void readObject(java.io.ObjectInputStream s) throws java.io.IOException, ClassNotFoundException {\n s.defaultReadObject();\n _model = (ListModel) s.readObject();\n didDeserialize(_model);\n _renderer = (ListitemRenderer) s.readObject();\n didDeserialize(_renderer);\n init();\n int offset = s.readInt();\n afterUnmarshal(offset);\n int limit = s.readInt();\n resetDataLoader(false);\n getDataLoader().init(this, offset, limit);\n if (_model != null) {\n initDataListener();\n getDataLoader().setLoadAll(_renderAll);\n }\n int size = s.readInt();\n if (size > 0) {\n List groupsInfo = (List) s.readObject();\n for (int i = 0; i < size; i++) _groupsInfo.add((int[]) groupsInfo.get(i));\n }\n}\n"
"public static String readStringFromFile(String pathFile) {\n String answer = null;\n InputStream inputFile = getClass().getResourceAsStream(pathFile);\n InputStreamReader streamReader = new InputStreamReader(inputFile);\n StringBuffer fileData = new StringBuffer(1000);\n BufferedReader reader = new BufferedReader(streamReader);\n char[] buf = new char[1024];\n int numRead = 0;\n while ((numRead = reader.read(buf)) != -1) {\n String readData = String.valueOf(buf, 0, numRead);\n fileData.append(readData);\n buf = new char[1024];\n }\n return answer;\n}\n"
"protected boolean isUpToDate(FTPClient ftp, File localFile, String remoteFile) throws IOException, BuildException {\n log(\"String_Node_Str\" + remoteFile, Project.MSG_VERBOSE);\n FTPFile[] files = ftp.listFiles(remoteFile);\n if (files == null || files.length == 0) {\n if (action == SEND_FILES) {\n log(\"String_Node_Str\" + remoteFile + \"String_Node_Str\", Project.MSG_VERBOSE);\n return false;\n } else {\n throw new BuildException(\"String_Node_Str\" + ftp.getReplyString());\n }\n }\n long remoteTimestamp = files[0].getTimestamp().getTime().getTime();\n long localTimestamp = localFile.lastModified();\n if (this.action == SEND_FILES) {\n return remoteTimestamp + timeDiffMillis >= localTimestamp;\n } else {\n return localTimestamp > remoteTimestamp + timeDiffMillis;\n }\n}\n"
"public AnnotatedType<X> create() {\n Map<Constructor<?>, Map<Integer, AnnotationStore>> constructorParameterAnnotations = new HashMap<Constructor<?>, Map<Integer, AnnotationStore>>();\n Map<Constructor<?>, AnnotationStore> constructorAnnotations = new HashMap<Constructor<?>, AnnotationStore>();\n Map<Method, Map<Integer, AnnotationStore>> methodParameterAnnnotations = new HashMap<Method, Map<Integer, AnnotationStore>>();\n Map<Method, AnnotationStore> methodAnnotations = new HashMap<Method, AnnotationStore>();\n Map<Field, AnnotationStore> fieldAnnotations = new HashMap<Field, AnnotationStore>();\n for (Map.Entry<Field, AnnotationBuilder> field : fields.entrySet()) {\n fieldAnnotations.put(field.getKey(), field.getValue().create());\n }\n for (Map.Entry<Method, AnnotationBuilder> method : methods.entrySet()) {\n methodAnnotations.put(method.getKey(), method.getValue().create());\n }\n for (Map.Entry<Method, Map<Integer, AnnotationBuilder>> parameters : methodParameters.entrySet()) {\n Map<Integer, AnnotationStore> parameterAnnotations = new HashMap<Integer, AnnotationStore>();\n methodParameterAnnnotations.put(parameters.getKey(), parameterAnnotations);\n for (Map.Entry<Integer, AnnotationBuilder> parameter : parameters.getValue().entrySet()) {\n parameterAnnotations.put(parameter.getKey(), parameter.getValue().create());\n }\n }\n for (Map.Entry<Constructor<?>, AnnotationBuilder> constructor : constructors.entrySet()) {\n constructorAnnotations.put(constructor.getKey(), constructor.getValue().create());\n }\n for (Map.Entry<Constructor<?>, Map<Integer, AnnotationBuilder>> parameters : constructorParameters.entrySet()) {\n Map<Integer, AnnotationStore> parameterAnnotations = new HashMap<Integer, AnnotationStore>();\n constructorParameterAnnnotations.put(parameters.getKey(), parameterAnnotations);\n for (Map.Entry<Integer, AnnotationBuilder> parameter : parameters.getValue().entrySet()) {\n parameterAnnotations.put(parameter.getKey(), parameter.getValue().create());\n }\n }\n return new AnnotatedTypeImpl<X>(javaClass, typeAnnotations.create(), fieldAnnotations, methodAnnotations, methodParameterAnnnotations, constructorAnnotations, constructorParameterAnnnotations, fieldTypes, methodParameterTypes, constructorParameterTypes);\n}\n"
"public void execute(RequestHandler handler, FtpRequestImpl request, FtpWriter out) throws IOException, FtpException {\n try {\n request.resetState();\n IFtpConfig fconfig = handler.getConfig();\n Ftplet ftpletContainer = fconfig.getFtpletContainer();\n FtpletEnum ftpletRet = ftpletContainer.onUploadUniqueStart(request, out);\n if (ftpletRet == FtpletEnum.RET_SKIP) {\n return;\n } else if (ftpletRet == FtpletEnum.RET_DISCONNECT) {\n fconfig.getConnectionManager().closeConnection(handler);\n return;\n }\n FileObject file = null;\n try {\n file = request.getFileSystemView().getFileObject(\"String_Node_Str\");\n if (file != null) {\n file = getUniqueFile(handler, file);\n }\n } catch (Exception ex) {\n }\n if (file == null) {\n out.send(550, \"String_Node_Str\", null);\n return;\n }\n String fileName = file.getFullName();\n if (!file.hasWritePermission()) {\n out.send(550, \"String_Node_Str\", fileName);\n return;\n }\n out.send(150, \"String_Node_Str\", null);\n InputStream is = null;\n try {\n is = request.getDataInputStream();\n } catch (IOException ex) {\n out.send(425, \"String_Node_Str\", fileName);\n return;\n }\n boolean failure = false;\n BufferedInputStream bis = null;\n BufferedOutputStream bos = null;\n out.send(250, \"String_Node_Str\", fileName);\n try {\n bis = IoUtils.getBufferedInputStream(is);\n bos = IoUtils.getBufferedOutputStream(file.createOutputStream(0L));\n int maxRate = handler.getRequest().getUser().getMaxUploadRate();\n long transSz = handler.transfer(bis, bos, maxRate);\n String userName = request.getUser().getName();\n Log log = fconfig.getLogFactory().getInstance(getClass());\n log.info(\"String_Node_Str\" + userName + \"String_Node_Str\" + fileName);\n IFtpStatistics ftpStat = (IFtpStatistics) fconfig.getFtpStatistics();\n ftpStat.setUpload(handler, file, transSz);\n } catch (SocketException ex) {\n failure = true;\n out.send(426, \"String_Node_Str\", fileName);\n } catch (IOException ex) {\n failure = true;\n out.send(551, \"String_Node_Str\", fileName);\n } finally {\n IoUtils.close(bis);\n IoUtils.close(bos);\n }\n if (!failure) {\n out.send(226, \"String_Node_Str\", fileName);\n ftpletRet = ftpletContainer.onUploadUniqueEnd(request, out);\n if (ftpletRet == FtpletEnum.RET_DISCONNECT) {\n fconfig.getConnectionManager().closeConnection(handler);\n return;\n }\n }\n } finally {\n request.getFtpDataConnection().closeDataSocket();\n }\n}\n"
"public static final boolean exists(String zslang) {\n if (zslang == null)\n return false;\n zslang = zslang.toLowerCase(java.util.Locale.ENGLISH);\n synchronized (_ips) {\n return _ips.containsKey(zslang);\n }\n}\n"
"public void authenticate(String consumerKey, String consumerSecret, AuthProviderData authProviderData, SocializeAuthListener listener, SocializeSessionConsumer sessionConsumer, boolean do3rdPartyAuth) {\n MockSocializeSession mockSocializeSession = new MockSocializeSession();\n listener.onAuthSuccess(mockSocializeSession);\n sessionConsumer.setSession(mockSocializeSession);\n if (delegate != null)\n delegate.authenticate(consumerKey, consumerSecret, authProviderData, listener, sessionConsumer, do3rdPartyAuth);\n}\n"
"public int getColumnCount() {\n return columns.size();\n}\n"
"void processNodeSelection(GridItem parentItem, GridItem currentItem) {\n if (currentItem.hasChildren()) {\n Boolean[] allCheckedInColumn = new Boolean[getColumnCount()];\n Boolean[] hasCheckedInColumn = new Boolean[getColumnCount()];\n for (int j = 1; j < getColumnCount(); j++) {\n allCheckedInColumn[j] = true;\n hasCheckedInColumn[j] = false;\n }\n for (int i = 0; i < currentItem.getItemCount(); i++) {\n GridItem childItem = currentItem.getItem(i);\n processNodeSelection(currentItem, childItem);\n boolean allCheckedInRow = true;\n boolean hasCheckedInRow = false;\n boolean expanded = false;\n for (int j = 2; j < getColumnCount(); j++) {\n if (childItem.getChecked(j)) {\n hasCheckedInRow = true;\n hasCheckedInColumn[j] = true;\n expanded = true;\n if (childItem.getGrayed(j)) {\n allCheckedInRow = false;\n allCheckedInColumn[j] = false;\n }\n } else {\n if (childItem.getCheckable(j)) {\n allCheckedInRow = false;\n allCheckedInColumn[j] = false;\n }\n }\n }\n childItem.setChecked(1, hasCheckedInRow);\n childItem.setGrayed(1, hasCheckedInRow && !allCheckedInRow);\n if (expanded) {\n currentItem.setExpanded(true);\n if (parentItem != null) {\n parentItem.setExpanded(true);\n }\n }\n }\n boolean entireCategoryChecked = true;\n for (int j = 1; j < getColumnCount(); j++) {\n if (currentItem.getCheckable(j)) {\n if (hasCheckedInColumn[j]) {\n hasCheckedInColumn[1] = true;\n currentItem.setChecked(j, true);\n } else {\n currentItem.setChecked(j, false);\n }\n if (allCheckedInColumn[j]) {\n currentItem.setGrayed(j, false);\n } else {\n currentItem.setGrayed(j, true);\n entireCategoryChecked = false;\n }\n }\n }\n if (currentItem.getCheckable(1)) {\n currentItem.setChecked(1, hasCheckedInColumn[1]);\n currentItem.setGrayed(1, !entireCategoryChecked);\n }\n }\n}\n"
"public void testSortedListHandlesSortEvents() {\n Comparator artistComparator = GlazedLists.beanPropertyComparator(Song.class, \"String_Node_Str\", new String[0]);\n Comparator songComparator = GlazedLists.beanPropertyComparator(Song.class, \"String_Node_Str\", new String[0]);\n List<Comparable> expectedOrder;\n sortedList.setComparator(null);\n SortedList sortedAgain = new SortedList<Comparable>(sortedList, artistComparator);\n ListConsistencyListener.install(sortedAgain);\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n unsortedList.add(new Song(\"String_Node_Str\", \"String_Node_Str\"));\n expectedOrder = new ArrayList<Comparable>(unsortedList);\n Collections.sort(expectedOrder, artistComparator);\n assertEquals(expectedOrder, sortedAgain);\n sortedList.setComparator(songComparator);\n expectedOrder = new ArrayList<Comparable>(unsortedList);\n Collections.sort(expectedOrder, GlazedLists.chainComparators((List) Arrays.asList(new Comparator[] { artistComparator, songComparator })));\n assertEquals(expectedOrder, sortedAgain);\n sortedList.setComparator(null);\n expectedOrder = new ArrayList<Comparable>(unsortedList);\n Collections.sort(expectedOrder, artistComparator);\n assertEquals(expectedOrder, sortedAgain);\n unsortedList.clear();\n Random dice = new Random(0);\n List<String> artists = GlazedListsTests.stringToList(\"String_Node_Str\");\n for (int a = 0; a < 200; a++) {\n String randomArtist = artists.get(dice.nextInt(artists.size()));\n String randomSong = artists.get(dice.nextInt(artists.size()));\n unsortedList.add(new Song(randomArtist, randomSong));\n }\n sortedList.setComparator(songComparator);\n expectedOrder = new ArrayList<Comparable>(unsortedList);\n Collections.sort(expectedOrder, GlazedLists.chainComparators((List) Arrays.asList(new Comparator[] { artistComparator, songComparator })));\n assertEquals(expectedOrder, sortedAgain);\n sortedList.setComparator(null);\n expectedOrder = new ArrayList<Comparable>(unsortedList);\n Collections.sort(expectedOrder, artistComparator);\n assertEquals(expectedOrder, sortedAgain);\n}\n"
"private static void downloadTrace(ImportFileInfo trace, IProject project, IProgressMonitor monitor) throws ExecutionException {\n try {\n IRemoteFileSubSystem fsss = trace.getImportFile().getParentRemoteFileSubSystem();\n IFolder traceFolder = project.getFolder(TmfTracesFolder.TRACES_FOLDER_NAME);\n if (!traceFolder.exists()) {\n throw new ExecutionException(Messages.TraceControl_ImportDialogInvalidTracingProject + \"String_Node_Str\" + TmfTracesFolder.TRACES_FOLDER_NAME + \"String_Node_Str\");\n }\n IFolder destinationFolder = trace.getDestinationFolder();\n TraceUtils.createFolder(destinationFolder, monitor);\n String traceName = trace.getLocalTraceName();\n IFolder folder = destinationFolder.getFolder(traceName);\n if (folder.exists()) {\n if (!trace.isOverwrite()) {\n throw new ExecutionException(Messages.TraceControl_ImportDialogTraceAlreadyExistError + \"String_Node_Str\" + traceName);\n }\n } else {\n folder.create(true, true, null);\n }\n IRemoteFile[] sources = fsss.list(trace.getImportFile(), IFileService.FILE_TYPE_FILES, new NullProgressMonitor());\n SubMonitor subMonitor = SubMonitor.convert(monitor, sources.length);\n subMonitor.beginTask(Messages.TraceControl_DownloadTask, sources.length);\n for (int i = 0; i < sources.length; i++) {\n if (subMonitor.isCanceled()) {\n monitor.setCanceled(true);\n return;\n }\n String destination = folder.getLocation().addTrailingSeparator().append(sources[i].getName()).toOSString();\n subMonitor.setTaskName(Messages.TraceControl_DownloadTask + ' ' + traceName + '/' + sources[i].getName());\n fsss.download(sources[i], destination, null, subMonitor.newChild(1));\n }\n } catch (SystemMessageException e) {\n throw new ExecutionException(e.toString(), e);\n } catch (CoreException e) {\n throw new ExecutionException(e.toString(), e);\n }\n}\n"
"protected void setAttribute(final short tag, final Object value, final boolean isUnsignedArray) {\n if (value != null && !(value instanceof Byte || value instanceof Short || value instanceof Integer || value instanceof String || value instanceof Character || value instanceof Float || value instanceof byte[] || value instanceof short[] || value instanceof int[] || value instanceof float[])) {\n throw new SAMException(\"String_Node_Str\" + value.getClass() + \"String_Node_Str\" + SAMTagUtil.getSingleton().makeStringTag(tag));\n }\n if (value == null) {\n if (this.mAttributes != null) {\n this.mAttributes = this.mAttributes.remove(tag);\n } else {\n final SAMBinaryTagAndValue tmp;\n if (!isUnsignedArray) {\n tmp = new SAMBinaryTagAndValue(tag, value);\n } else {\n if (!value.getClass().isArray() || value instanceof float[]) {\n throw new SAMException(\"String_Node_Str\" + value.getClass() + \"String_Node_Str\" + SAMTagUtil.getSingleton().makeStringTag(tag));\n }\n tmp = new SAMBinaryTagAndUnsignedArrayValue(tag, value);\n }\n if (this.mAttributes == null)\n this.mAttributes = tmp;\n else\n this.mAttributes = this.mAttributes.insert(tmp);\n }\n}\n"
"private static String getClassCode(Integer sequence, Class<?> sourceClass, Class<?> targetClass, boolean deepCopy, final Map<String, PropConverter<?, ?>> propCvtMap) throws Exception {\n JavaSourceBean javaSourceBean = new JavaSourceBean();\n javaSourceBean.setPackageName(BeanCopierFactory.class.getPackage().getName());\n javaSourceBean.addImport(BeanCopierAdapter.class.getName());\n javaSourceBean.addImport(sourceClass.getName());\n javaSourceBean.addImport(targetClass.getName());\n javaSourceBean.addImport(PropConverter.class.getName());\n String beanCopierClassName = sourceClass.getSimpleName() + \"String_Node_Str\" + targetClass.getSimpleName() + BeanCopier.class.getSimpleName() + sequence;\n String classDefinitionCode = \"String_Node_Str\" + beanCopierClassName + \"String_Node_Str\" + BeanCopierAdapter.class.getName();\n javaSourceBean.setClassDefinition(classDefinitionCode);\n javaSourceBean.addMethod(getMethodImplCode(sequence, sourceClass, targetClass, deepCopy, propCvtMap));\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(javaSourceBean.toString());\n }\n return javaSourceBean.toString();\n}\n"
"Transaction transaction(SKPaymentTransaction t) {\n SKPayment payment = t.getPayment();\n String productIdentifier = payment.getProductIdentifier();\n SKProduct product = getProductByStoreIdentifier(productIdentifier);\n if (product == null) {\n System.err.println(\"String_Node_Str\" + productIdentifier);\n return null;\n }\n Transaction transaction = new Transaction();\n transaction.setIdentifier(config.getOfferForStore(PurchaseManagerConfig.STORE_NAME_IOS_APPLE, payment.getProductIdentifier()).getIdentifier());\n transaction.setStoreName(PurchaseManagerConfig.STORE_NAME_IOS_APPLE);\n transaction.setOrderId(t.getTransactionIdentifier());\n transaction.setPurchaseTime(t.getTransactionDate().toDate());\n transaction.setPurchaseText(\"String_Node_Str\" + product.getLocalizedTitle());\n transaction.setPurchaseCost((int) Math.round(product.getPrice().doubleValue() * 100));\n transaction.setPurchaseCostCurrency(product.getPriceLocale().getCurrencyCode());\n transaction.setReversalTime(null);\n transaction.setReversalText(null);\n if (payment.getRequestData() != null) {\n final String transactionData;\n if (Foundation.getMajorSystemVersion() >= 7) {\n transactionData = payment.getRequestData().toBase64EncodedString(NSDataBase64EncodingOptions.None);\n } else {\n transactionData = Base64.encode(payment.getRequestData().getBytes());\n }\n transaction.setTransactionData(transactionData);\n } else {\n transaction.setTransactionData(null);\n }\n String transactionDataSignature;\n try {\n Selector sel = Selector.register(\"String_Node_Str\");\n if (ObjCRuntime.class_respondsToSelector(t.getHandle(), sel.getHandle())) {\n NSData transactionReceipt = ObjCObject.toObjCObject(NSData.class, ObjCRuntime.ptr_objc_msgSend(t.getHandle(), sel.getHandle()), 0);\n transactionDataSignature = transactionReceipt.toBase64EncodedString(NSDataBase64EncodingOptions.None);\n } else {\n transactionDataSignature = null;\n log(LOGTYPELOG, \"String_Node_Str\");\n }\n } catch (Throwable e) {\n log(LOGTYPELOG, \"String_Node_Str\", e);\n transactionDataSignature = null;\n }\n transaction.setTransactionDataSignature(transactionDataSignature);\n return transaction;\n}\n"
"public void drawTexture(TextureRegion texture, Color color, ScaleMode mode, Rect2i absoluteRegion, float ux, float uy, float uw, float uh, float alpha) {\n if (!texture.getTexture().isLoaded()) {\n return;\n }\n if (!currentTextureCropRegion.equals(requestedCropRegion) && !(currentTextureCropRegion.contains(absoluteRegion) && requestedCropRegion.contains(absoluteRegion))) {\n textureMat.setFloat4(CROPPING_BOUNDARIES_PARAM, requestedCropRegion.minX(), requestedCropRegion.maxX(), requestedCropRegion.minY(), requestedCropRegion.maxY());\n currentTextureCropRegion = requestedCropRegion;\n }\n Vector2f scale = mode.scaleForRegion(absoluteRegion, texture.getWidth(), texture.getHeight());\n Rect2f textureArea = texture.getRegion();\n Mesh mesh = billboard;\n switch(mode) {\n case TILED:\n {\n TextureCacheKey key = new TextureCacheKey(texture.size(), absoluteRegion.size());\n usedTextures.add(key);\n mesh = cachedTextures.get(key);\n if (mesh == null || mesh.isDisposed()) {\n MeshBuilder builder = new MeshBuilder();\n addTiles(builder, absoluteRegion, FULL_REGION, texture.size(), FULL_REGION);\n mesh = builder.build();\n cachedTextures.put(key, mesh);\n }\n textureMat.setFloat2(\"String_Node_Str\", scale);\n textureMat.setFloat2(\"String_Node_Str\", absoluteRegion.minX(), absoluteRegion.minY());\n textureMat.setFloat2(\"String_Node_Str\", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());\n textureMat.setFloat2(\"String_Node_Str\", uw * textureArea.width(), uh * textureArea.height());\n break;\n }\n case SCALE_FILL:\n {\n textureMat.setFloat2(\"String_Node_Str\", absoluteRegion.minX(), absoluteRegion.minY());\n textureMat.setFloat2(\"String_Node_Str\", absoluteRegion.width(), absoluteRegion.height());\n float texBorderX = (scale.x - absoluteRegion.width()) / scale.x * uw;\n float texBorderY = (scale.y - absoluteRegion.height()) / scale.y * uh;\n textureMat.setFloat2(\"String_Node_Str\", textureArea.minX() + (ux + 0.5f * texBorderX) * textureArea.width(), textureArea.minY() + (uy + 0.5f * texBorderY) * textureArea.height());\n textureMat.setFloat2(\"String_Node_Str\", (uw - texBorderX) * textureArea.width(), (uh - texBorderY) * textureArea.height());\n break;\n }\n default:\n {\n textureMat.setFloat2(\"String_Node_Str\", scale);\n textureMat.setFloat2(\"String_Node_Str\", absoluteRegion.minX() + 0.5f * (absoluteRegion.width() - scale.x), absoluteRegion.minY() + 0.5f * (absoluteRegion.height() - scale.y));\n textureMat.setFloat2(\"String_Node_Str\", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());\n textureMat.setFloat2(\"String_Node_Str\", uw * textureArea.width(), uh * textureArea.height());\n break;\n }\n }\n textureMat.setTexture(\"String_Node_Str\", texture.getTexture());\n textureMat.setFloat4(\"String_Node_Str\", color.rf(), color.gf(), color.bf(), color.af() * alpha);\n textureMat.bindTextures();\n mesh.render();\n}\n"
"protected void loadPresentationExtensionDefns() {\n IExtensionRegistry registry = Platform.getExtensionRegistry();\n IExtensionPoint extPoint = registry.getExtensionPoint(EXTENSION_POINT_PRESENTATION);\n if (extPoint == null)\n return;\n IExtension[] exts = extPoint.getExtensions();\n for (int i = 0; i < exts.length; i++) {\n IConfigurationElement[] configs = exts[i].getConfigurationElements();\n for (int j = 0; j < configs.length; j++) {\n String itemName = configs[j].getAttribute(\"String_Node_Str\");\n presentationExtensions.put(itemName, configs[j]);\n }\n }\n}\n"
"public static IList getAttributeValues(ICS ics, AssetId id, String deptype, String locale, String attr, String attrType, String ordering) {\n SetAsset setAsset = new SetAsset();\n final String assetSetName = \"String_Node_Str\" + ics.genID(false);\n setAsset.setName(assetSetName);\n setAsset.setType(id.getType());\n setAsset.setId(Long.toString(id.getId()));\n if (deptype != null) {\n setAsset.setDeptype(deptype);\n }\n if (locale != null) {\n setAsset.setLocale(locale);\n }\n setAsset.execute(ics);\n GetAttributeValues gav = new GetAttributeValues();\n gav.setName(assetSetName);\n gav.setAttribute(attr);\n if (attrType != null) {\n gav.setTypename(attrType);\n }\n if (ordering != null) {\n gav.setOrdering(ordering);\n }\n String listname = ics.genID(true);\n gav.setListvarname(listname);\n gav.execute(ics);\n IList result = ics.GetList(listname);\n ics.RegisterList(listname, null);\n return result;\n}\n"
"public void launch() {\n Entity cbNode = entity.getConfig(CouchbaseSyncGateway.COUCHBASE_SERVER);\n Entities.waitForServiceUp(cbNode, Duration.ONE_HOUR);\n DependentConfiguration.waitInTaskForAttributeReady(cbNode, CouchbaseCluster.IS_CLUSTER_INITIALIZED, Predicates.equalTo(true));\n Time.sleep(10 * 1000);\n if (cbNode instanceof CouchbaseCluster) {\n Optional<Entity> cbClusterNode = Iterables.tryFind(cbNode.getAttribute(CouchbaseCluster.GROUP_MEMBERS), Predicates.and(Predicates.instanceOf(CouchbaseNode.class), EntityPredicates.attributeEqualTo(CouchbaseNode.IS_IN_CLUSTER, Boolean.TRUE)));\n if (!cbClusterNode.isPresent()) {\n throw new IllegalArgumentException(format(\"String_Node_Str\", cbNode.getId()));\n }\n }\n String hostname = cbNode.getAttribute(CouchbaseNode.HOSTNAME);\n String webPort = cbNode.getAttribute(CouchbaseNode.COUCHBASE_WEB_ADMIN_PORT).toString();\n String username = cbNode.getConfig(CouchbaseNode.COUCHBASE_ADMIN_USERNAME);\n String password = cbNode.getConfig(CouchbaseNode.COUCHBASE_ADMIN_PASSWORD);\n String bucketName = entity.getConfig(CouchbaseSyncGateway.COUCHBASE_SERVER_BUCKET);\n String pool = entity.getConfig(CouchbaseSyncGateway.COUCHBASE_SERVER_POOL);\n String pretty = entity.getConfig(CouchbaseSyncGateway.PRETTY) ? \"String_Node_Str\" : \"String_Node_Str\";\n String verbose = entity.getConfig(CouchbaseSyncGateway.VERBOSE) ? \"String_Node_Str\" : \"String_Node_Str\";\n String adminRestApiPort = entity.getConfig(CouchbaseSyncGateway.ADMIN_REST_API_PORT).iterator().next().toString();\n String syncRestApiPort = entity.getConfig(CouchbaseSyncGateway.SYNC_REST_API_PORT).iterator().next().toString();\n String serverWebAdminUrl = format(\"String_Node_Str\", username, password, hostname, webPort);\n String options = format(\"String_Node_Str\", serverWebAdminUrl, bucketName, adminRestApiPort, syncRestApiPort, pool, pretty, verbose);\n newScript(ImmutableMap.of(\"String_Node_Str\", true), LAUNCHING).body.append(format(\"String_Node_Str\", options) + \"String_Node_Str\").failOnNonZeroResultCode().execute();\n}\n"
"public synchronized void persist(Object obj) {\n JobInfo jobInfo = (JobInfo) obj;\n File file = jobManager.getJobsFile();\n synchronized (file) {\n jobInfos = jobManager.getCompletedJobs();\n if (jobInfos == null)\n jobInfos = new JobInfos();\n try {\n JAXBContext jaxbContext = JAXBContext.newInstance(JobInfos.class);\n jaxbMarshaller = jaxbContext.createMarshaller();\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n jobInfos.getJobInfoList().add(jobInfo);\n jaxbMarshaller.marshal(jobInfos, file);\n jobManager.purgeJob(jobInfo.jobId);\n } catch (JAXBException e) {\n throw new RuntimeException(adminStrings.getLocalString(\"String_Node_Str\", \"String_Node_Str\", jobInfo.jobId, e.getLocalizedMessage()));\n }\n }\n}\n"
"private void processTableDeletes(TableData deletes, ISqlTransaction transaction) {\n if (deletes != null) {\n Table table = databasePlatform.getTableFromCache(null, null, deletes.getTableName(), false);\n DmlStatement stmt = databasePlatform.createDmlStatement(DmlType.DELETE, table.getCatalog(), table.getSchema(), table.getName(), table.getPrimaryKeyColumns(), getUpdateColumns(table), null, null, true);\n Iterator<String> itr = deletes.getTableData().keySet().iterator();\n while (itr.hasNext()) {\n String key = itr.next();\n LinkedCaseInsensitiveMap<Object> row = deletes.getTableData().get(key);\n Map<String, Object> rowLower = new HashMap<String, Object>();\n for (String k : row.keySet()) {\n rowLower.put(k.toLowerCase(), row.get(k));\n }\n transaction.prepareAndExecute(stmt.getSql().toLowerCase(), rowLower);\n }\n }\n}\n"
"public Object getState(String state) {\n try {\n return Enum.valueOf((Class<Enum>) Class.forName(\"String_Node_Str\"), state);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(e);\n }\n}\n"
"private List<String> getFilledParams(String prefix) {\n Pattern filledParamPattern = Pattern.compile(\"String_Node_Str\");\n Matcher matcher = filledParamPattern.matcher(prefix);\n List<String> filledParams = new ArrayList<>();\n while (matcher.find()) {\n filledParams.add(matcher.group());\n }\n return filledParams;\n}\n"
"public IBinder onBind(Intent intent) {\n mService = IQSService.Stub.asInterface(intent.getIBinderExtra(EXTRA_SERVICE));\n try {\n ComponentName component = intent.getParcelableExtra(EXTRA_COMPONENT);\n mTile = mService.getTile(component);\n } catch (RemoteException e) {\n throw new RuntimeException(\"String_Node_Str\", e);\n }\n if (mTile != null) {\n mTile.setService(mService);\n mHandler.sendEmptyMessage(H.MSG_START_SUCCESS);\n }\n return new IQSTileService.Stub() {\n public void onTileRemoved() throws RemoteException {\n mHandler.sendEmptyMessage(H.MSG_TILE_REMOVED);\n }\n public void onTileAdded() throws RemoteException {\n mHandler.sendEmptyMessage(H.MSG_TILE_ADDED);\n }\n public void onStopListening() throws RemoteException {\n mHandler.sendEmptyMessage(H.MSG_STOP_LISTENING);\n }\n public void onStartListening() throws RemoteException {\n mHandler.sendEmptyMessage(H.MSG_START_LISTENING);\n }\n public void onClick(IBinder wtoken) throws RemoteException {\n mHandler.obtainMessage(H.MSG_TILE_CLICKED, wtoken).sendToTarget();\n }\n public void onUnlockComplete() throws RemoteException {\n mHandler.sendEmptyMessage(H.MSG_UNLOCK_COMPLETE);\n }\n };\n}\n"
"public void execute() throws DatabaseException {\n try {\n if (listener != null) {\n database.syncInsert(ig);\n listener.insertFinished(context);\n } else\n database.syncInsert(ig);\n } catch (BabuDBException exc) {\n throw new DatabaseException(exc);\n }\n}\n"
"private List<Input> _getInputs() throws IllegalActionException {\n if (workspace().getVersion() == _inputsVersion) {\n return _inputs;\n }\n _inputs = new LinkedList<Input>();\n for (FMIScalarVariable scalarVariable : _fmiModelDescription.modelVariables) {\n if (scalarVariable.alias != null && !scalarVariable.alias.equals(Alias.noAlias)) {\n continue;\n }\n if (scalarVariable.variability != FMIScalarVariable.Variability.parameter && scalarVariable.variability != FMIScalarVariable.Variability.constant && scalarVariable.variability != FMIScalarVariable.Variability.fixed && (scalarVariable.causality == Causality.input || (_fmiModelDescription.modelExchange && scalarVariable.causality == Causality.local && (((scalarVariable.type instanceof FMIRealType && ((FMIRealType) scalarVariable.type).indexState == -1)) || !(scalarVariable.type instanceof FMIRealType))))) {\n TypedIOPort port = (TypedIOPort) _getPortByNameOrDisplayName(scalarVariable.name);\n if (port == null) {\n throw new IllegalActionException(this, \"String_Node_Str\" + scalarVariable.name + \"String_Node_Str\");\n }\n Input input = new Input();\n input.scalarVariable = scalarVariable;\n input.port = port;\n if (scalarVariable.type instanceof FMIRealType) {\n input.start = ((FMIRealType) scalarVariable.type).start;\n } else {\n input.start = null;\n }\n _inputs.add(input);\n }\n }\n _inputsVersion = workspace().getVersion();\n return _inputs;\n}\n"
"public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n ConnectionSetupTimeSelection other = (ConnectionSetupTimeSelection) obj;\n if (comparator == null) {\n if (other.comparator != null)\n return false;\n } else if (!comparator.equals(other.comparator))\n return false;\n if (decisionTree == null) {\n if (other.decisionTree != null)\n return false;\n } else if (!decisionTree.equals(other.decisionTree))\n return false;\n if (registry == null) {\n if (other.registry != null)\n return false;\n } else if (!registry.equals(other.registry))\n return false;\n return true;\n}\n"
"public int generatePreviousValue(final int reference) throws NoSuchValueException {\n List<Integer> candidates = computeCandidates(new Function<FieldValueGenerator, Integer>() {\n public Integer apply(FieldValueGenerator candidateGenerator) {\n try {\n return candidateGenerator.generatePreviousValue(reference);\n } catch (NoSuchValueException e) {\n return NO_VALUE;\n }\n }\n });\n if (candidates.isEmpty()) {\n throw new NoSuchValueException();\n } else {\n return candidates.get(candidates.size() - 1);\n }\n}\n"
"public Instances createTrainingInstances() {\n ArrayList<Attribute> attributes = new ArrayList<Attribute>();\n for (int i = 1; i <= featureStack.getSize(); i++) {\n String attString = featureStack.getSliceLabel(i);\n attributes.add(new Attribute(attString));\n }\n final ArrayList<String> classes;\n int numOfInstances = 0;\n int numOfUsedClasses = 0;\n for (int i = 0; i < numOfClasses; i++) {\n if (examples[i].size() > 0) {\n classes.add(classLabels[i]);\n numOfUsedClasses++;\n }\n numOfInstances += examples[i].size();\n }\n attributes.add(new Attribute(\"String_Node_Str\", classes));\n final Instances trainingData = new Instances(\"String_Node_Str\", attributes, numOfInstances);\n IJ.log(\"String_Node_Str\");\n for (int l = 0; l < numOfClasses; l++) {\n int nl = 0;\n for (int j = 0; j < examples[l].size(); j++) {\n Roi r = examples[l].get(j);\n if (r instanceof PolygonRoi && r.getType() != Roi.FREEROI) {\n if (r.getStrokeWidth() == 1) {\n int[] x = r.getPolygon().xpoints;\n int[] y = r.getPolygon().ypoints;\n final int n = r.getPolygon().npoints;\n for (int i = 0; i < n; i++) {\n double[] values = new double[featureStack.getSize() + 1];\n for (int z = 1; z <= featureStack.getSize(); z++) values[z - 1] = featureStack.getProcessor(z).getPixelValue(x[i], y[i]);\n values[featureStack.getSize()] = (double) l;\n trainingData.add(new DenseInstance(1.0, values));\n nl++;\n }\n } else {\n final int width = (int) Math.round(r.getStrokeWidth());\n FloatPolygon p = r.getFloatPolygon();\n int n = p.npoints;\n double x1, y1;\n double x2 = p.xpoints[0] - (p.xpoints[1] - p.xpoints[0]);\n double y2 = p.ypoints[0] - (p.ypoints[1] - p.ypoints[0]);\n for (int i = 0; i < n; i++) {\n x1 = x2;\n y1 = y2;\n x2 = p.xpoints[i];\n y2 = p.ypoints[i];\n double dx = x2 - x1;\n double dy = y1 - y2;\n double length = (float) Math.sqrt(dx * dx + dy * dy);\n dx /= length;\n dy /= length;\n double x = x2 - dy * width / 2.0;\n double y = y2 - dx * width / 2.0;\n int n2 = width;\n do {\n if (x >= 0 && x < featureStack.getWidth() && y >= 0 && y < featureStack.getHeight()) {\n double[] values = new double[featureStack.getSize() + 1];\n for (int z = 1; z <= featureStack.getSize(); z++) values[z - 1] = featureStack.getProcessor(z).getInterpolatedValue(x, y);\n values[featureStack.getSize()] = (double) l;\n trainingData.add(new DenseInstance(1.0, values));\n nl++;\n }\n x += dy;\n y += dx;\n } while (--n2 > 0);\n }\n }\n } else {\n final ShapeRoi shapeRoi = new ShapeRoi(r);\n final Rectangle rect = shapeRoi.getBounds();\n final int lastX = rect.x + rect.width;\n final int lastY = rect.y + rect.height;\n for (int x = rect.x; x < lastX; x++) for (int y = rect.y; y < lastY; y++) if (shapeRoi.contains(x, y)) {\n double[] values = new double[featureStack.getSize() + 1];\n for (int z = 1; z <= featureStack.getSize(); z++) values[z - 1] = featureStack.getProcessor(z).getPixelValue(x, y);\n values[featureStack.getSize()] = (double) l;\n trainingData.add(new DenseInstance(1.0, values));\n nl++;\n }\n }\n }\n IJ.log(\"String_Node_Str\" + classLabels[l] + \"String_Node_Str\" + nl);\n }\n if (trainingData.numInstances() == 0)\n return null;\n return trainingData;\n}\n"
"private static void removeInfectedUnits(final TreeLogger logger, final Map<String, CompilationUnitDeclaration> cudsByFileName) {\n final Set<String> pendingRemovals = new HashSet<String>();\n TypeRefVisitor trv = new TypeRefVisitor() {\n protected void onTypeRef(SourceTypeBinding referencedType, CompilationUnitDeclaration unitOfReferrer) {\n String referencedFn = String.valueOf(referencedType.getFileName());\n CompilationUnitDeclaration referencedCud = cudsByFileName.get(referencedFn);\n if (referencedCud == null) {\n String referrerFn = String.valueOf(unitOfReferrer.getFileName());\n if (cudsByFileName.containsKey(referrerFn) && !pendingRemovals.contains(referrerFn)) {\n TreeLogger branch = logger.branch(TreeLogger.TRACE, \"String_Node_Str\" + referrerFn + \"String_Node_Str\", null);\n final String badTypeName = CharOperation.toString(referencedType.compoundName);\n branch.branch(TreeLogger.TRACE, \"String_Node_Str\" + badTypeName, null);\n pendingRemovals.add(referrerFn);\n }\n }\n }\n };\n do {\n for (Iterator<String> iter = pendingRemovals.iterator(); iter.hasNext(); ) {\n String fnToRemove = iter.next();\n Object removed = changedCudsByFileName.remove(fnToRemove);\n assert (removed != null);\n }\n pendingRemovals.clear();\n for (Iterator<CompilationUnitDeclaration> iter = cudsByFileName.values().iterator(); iter.hasNext(); ) {\n CompilationUnitDeclaration cud = iter.next();\n cud.traverse(trv, cud.scope);\n }\n } while (!pendingRemovals.isEmpty());\n}\n"
"private String getMultiActionsCallbackContent(MultipleActions actions) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n EMap<String, String> propMap = actions.getPropertiesMap();\n sb.append(getPropertiesJS(propMap).toString());\n int i = 0;\n for (Action subAction : MultiActionValuesScriptGenerator.getValidActions(actions)) {\n int typeValue = subAction.getType().getValue();\n switch(typeValue) {\n case ActionType.URL_REDIRECT:\n sb = MultiActionValuesScriptGenerator.getURLValueJS(sb, i, (URLValue) subAction.getValue(), SVGEncoderAdapter.getInstance());\n break;\n case ActionType.INVOKE_SCRIPT:\n sb = MultiActionValuesScriptGenerator.getScriptValueJS(sb, i, (ScriptValue) subAction.getValue(), getULocale());\n break;\n case ActionType.TOGGLE_VISIBILITY:\n sb = MultiActionValuesScriptGenerator.getVisualJS(sb, i, subAction.getValue(), \"String_Node_Str\");\n break;\n case ActionType.TOGGLE_DATA_POINT_VISIBILITY:\n sb = MultiActionValuesScriptGenerator.getVisualJS(sb, i, subAction.getValue(), \"String_Node_Str\");\n break;\n case ActionType.HIGHLIGHT:\n sb = MultiActionValuesScriptGenerator.getVisualJS(sb, i, subAction.getValue(), \"String_Node_Str\");\n break;\n case ActionType.SHOW_TOOLTIP:\n sb = MultiActionValuesScriptGenerator.getVisualJS(sb, i, subAction.getValue(), \"String_Node_Str\");\n break;\n }\n i++;\n }\n MultiActionValuesScriptGenerator.appendInteractivityVariables(sb);\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n sb.append(\"String_Node_Str\");\n return sb.toString();\n}\n"
"private void replaceItems(Context c, Collection[] mycollections, String sourceDir, String mapFile, boolean template) throws Exception {\n File d = new java.io.File(sourceDir);\n if (d == null || !d.isDirectory()) {\n throw new Exception(\"String_Node_Str\" + sourceDir);\n }\n Map<String, String> myHash = readMapFile(mapFile);\n for (Map.Entry<String, String> mapEntry : myHash.entrySet()) {\n String newItemName = mapEntry.getKey();\n String oldHandle = mapEntry.getValue();\n Item oldItem = null;\n if (oldHandle.indexOf('/') != -1) {\n System.out.println(\"String_Node_Str\" + oldHandle);\n oldItem = (Item) HandleManager.resolveToObject(c, oldHandle);\n } else {\n oldItem = Item.find(c, Integer.parseInt(oldHandle));\n }\n File handleFile = new File(sourceDir + File.separatorChar + newItemName + File.separatorChar + \"String_Node_Str\");\n PrintWriter handleOut = new PrintWriter(new FileWriter(handleFile, true));\n if (handleOut == null) {\n throw new Exception(\"String_Node_Str\" + handleFile.getCanonicalPath());\n }\n handleOut.println(oldHandle);\n handleOut.close();\n deleteItem(c, oldItem);\n addItem(c, mycollections, sourceDir, newItemName, null, template);\n c.clearCache();\n }\n}\n"
"public void generateSchema(SchemaOutputResolver outputResolver) throws IOException {\n if (outputResolver == null) {\n throw new IOException(Messages.NULL_OUTPUT_RESOLVER.format());\n }\n RuntimeTypeInfoSet tis;\n try {\n tis = getTypeInfoSet();\n } catch (IllegalAnnotationsException e) {\n throw new AssertionError(e);\n }\n XmlSchemaGenerator<Type, Class, Field, Method> xsdgen = new XmlSchemaGenerator<Type, Class, Field, Method>(tis.getNavigator(), tis);\n Set<QName> rootTagNames = new HashSet<QName>();\n for (RuntimeElementInfo ei : tis.getAllElements()) {\n rootTagNames.add(ei.getElementName());\n }\n for (RuntimeClassInfo ci : tis.beans().values()) {\n if (ci.isElement())\n rootTagNames.add(ci.asElement().getElementName());\n }\n for (TypeReference tr : bridges.keySet()) {\n if (rootTagNames.contains(tr.tagName))\n continue;\n if (tr.type == void.class || tr.type == Void.class) {\n xsdgen.add(tr.tagName, false, null);\n } else {\n NonElement<Type, Class> typeInfo = getXmlType(tis, tr);\n xsdgen.add(tr.tagName, typeInfo);\n }\n }\n xsdgen.write(outputResolver);\n}\n"
"public void boundIn(Mob mob, int blockX, int blockY, float delta) {\n mob.setDeltaMul(MULTIPLIER);\n}\n"
"private void setData() {\n RealmResults<RealmDemoData> result = mRealm.allObjects(RealmDemoData.class);\n RealmBubbleDataSet<RealmDemoData> set = new RealmBubbleDataSet<RealmDemoData>(result, \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\");\n set.setLabel(\"String_Node_Str\");\n set.setColors(ColorTemplate.COLORFUL_COLORS, 110);\n ArrayList<IBubbleDataSet> dataSets = new ArrayList<IBubbleDataSet>();\n dataSets.add(set);\n BubbleData data = new BubbleData(result, \"String_Node_Str\", dataSets);\n styleData(data);\n mChart.setData(data);\n mChart.animateY(1400, Easing.EasingOption.EaseInOutQuart);\n}\n"
"public void updateLocation(S2LatLng s2ll) throws Exception {\n double lat = s2ll.latDegrees();\n double lng = s2ll.lngDegrees();\n String add = \"String_Node_Str\" + Double.toString(lat) + \"String_Node_Str\" + Double.toString(lng) + \"String_Node_Str\" + Double.toString(lat) + \"String_Node_Str\" + Double.toString(lng);\n if (cw.localPortals != null) {\n int cwSize = cw.localHackablePortals.size();\n System.out.println(cw.localHackablePortals.size());\n for (int i = 0; i < cwSize; i++) add += \"String_Node_Str\" + Double.toString(cw.localHackablePortals.get(i).location.latDegrees()) + \"String_Node_Str\" + Double.toString(cw.localHackablePortals.get(i).location.lngDegrees());\n }\n System.out.println(add);\n jLabel.setIcon(new ImageIcon(new URL(add)));\n debugJTArea.setText(DebugHandler.debugLines);\n infoJTArea.setText(DebugHandler.infoLines);\n debugVertical.setValue(debugVertical.getMaximum());\n String inventorySTR = \"String_Node_Str\";\n for (int i = 0; i < player.inventory.size(); i++) inventorySTR += player.inventory.get(i).toString() + \"String_Node_Str\";\n itemsJTArea.setText(inventorySTR);\n frame.pack();\n}\n"
"public void testClosure8() {\n String contents = \"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_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n assertExprType(contents, \"String_Node_Str\", \"String_Node_Str\");\n assertExprType(contents, \"String_Node_Str\", \"String_Node_Str\");\n assertExprType(contents, \"String_Node_Str\", \"String_Node_Str\");\n assertExprType(contents, \"String_Node_Str\", \"String_Node_Str\");\n}\n"
"private void throwIce() {\n if (!prepared)\n return;\n LivingEntity target = (LivingEntity) Methods.getTargetedEntity(player, range, new ArrayList<Entity>());\n if (target == null) {\n destination = Methods.getTargetedLocation(player, range, Methods.transparentToEarthbending);\n } else {\n destination = target.getEyeLocation();\n }\n location = sourceblock.getLocation();\n if (destination.distance(location) < 1)\n return;\n firstdestination = location.clone();\n if (destination.getY() - location.getY() > 2) {\n firstdestination.setY(destination.getY() - 1);\n } else {\n firstdestination.add(0, 2, 0);\n }\n destination = Methods.getPointOnLine(firstdestination, destination, range);\n progressing = true;\n settingup = true;\n prepared = false;\n new TempBlock(sourceblock, Material.AIR, (byte) 0);\n source = new TempBlock(sourceblock, Material.PACKED_ICE, data);\n}\n"
"public void estForeignContent() throws EngineException {\n String designFile = \"String_Node_Str\";\n IReportRunnable report = openReportDesign(designFile);\n List pageAreas = getPageAreas(report);\n assertEquals(2, pageAreas.size());\n PageArea pageArea = (PageArea) pageAreas.get(1);\n Iterator logicContainers = pageArea.getBody().getChildren();\n IContainerArea blockContains = (IContainerArea) logicContainers.next();\n logicContainers = blockContains.getChildren();\n IContainerArea blockContains1 = (IContainerArea) logicContainers.next();\n Iterator lineAreas = blockContains1.getChildren();\n lineAreas.next();\n LineArea emptyLine = (LineArea) lineAreas.next();\n assertTrue(\"String_Node_Str\", isEmpty(emptyLine));\n LineArea lineArea = (LineArea) lineAreas.next();\n assertEquals(\"String_Node_Str\", getText(lineArea, 2));\n assertEquals(\"String_Node_Str\", getText(lineArea, 5));\n}\n"
"protected TokenStreamComponents createComponents(final String fieldName, final Reader reader) {\n final WhitespaceAndCommaTokenizer tokenizer = new WhitespaceAndCommaTokenizer(matchVersion, reader);\n TokenStream tok = new LowerCaseFilter(matchVersion, new WordDelimiterFilter(tokenizer, WordDelimiterFilter.GENERATE_WORD_PARTS | WordDelimiterFilter.SPLIT_ON_CASE_CHANGE | WordDelimiterFilter.PRESERVE_ORIGINAL, CharArraySet.EMPTY_SET));\n tok = new LogFilePatternFilter(tok);\n return new TokenStreamComponents(tokenizer, tok);\n}\n"
"private final Object audit() throws Throwable {\n this.buildTargetLogger();\n this.buildContext();\n Object result = null;\n Throwable error = null;\n this.preAudit(invocation);\n try {\n result = invocation.proceed();\n } catch (Throwable e) {\n this.occuredError = e;\n this.auditError();\n throw e;\n } finally {\n postAudit();\n }\n return result;\n}\n"
"private String normalizeName(String name) {\n return name.replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\").replace(\"String_Node_Str\", \"String_Node_Str\");\n}\n"
"protected List<WebElement> getRowAction(String rowName) {\n return (rowNameTemplate == null) ? getRowAction(index(headers(), rowName) + 1) : table.getWebElement().findElements(fillByTemplate(rowNameTemplate, rowName));\n}\n"
"public static void getConfiguration(ContentResolver cr, Configuration outConfig) {\n outConfig.fontScale = Settings.System.getFloat(cr, FONT_SCALE, outConfig.fontScale);\n if (outConfig.fontScale < 0) {\n outConfig.fontScale = 1;\n }\n}\n"
"private void refreshDisplayValues(final String adminPWD, final String jdbcPWD) {\n if (!active || teiidServer == null || form.isDisposed())\n return;\n if (hostNameLabel == null || hostNameLabel.isDisposed())\n return;\n hostNameLabel.setText(teiidServer.getHost());\n String versionValue = teiidServer.getServerVersion().toString();\n if (!versionValueCombo.getText().equals(versionValue)) {\n versionValueCombo.setText(versionValue);\n }\n versionValueCombo.setEnabled(!teiidServer.isConnected());\n jbServerNameLabel.setText(parentServer != null ? parentServer.getName() : \"String_Node_Str\");\n ITeiidAdminInfo teiidAdminInfo = teiidServer.getTeiidAdminInfo();\n ITeiidJdbcInfo teiidJdbcInfo = teiidServer.getTeiidJdbcInfo();\n if (isSevenServer()) {\n if (adminUserNameText != null) {\n setIfDifferent(adminUserNameText, teiidAdminInfo.getUsername() != null ? teiidAdminInfo.getUsername() : EMPTY_STRING);\n }\n if (adminPasswdText != null) {\n setIfDifferent(adminPasswdText, adminPWD != null ? adminPWD : EMPTY_STRING);\n }\n String portValue = teiidAdminInfo.getPort() != null ? teiidAdminInfo.getPort() : EMPTY_STRING;\n if (adminPort instanceof Text) {\n setIfDifferent((Text) adminPort, portValue);\n } else if (adminPort instanceof Label) {\n ((Label) adminPort).setText(portValue);\n }\n if (adminSSLCheckbox != null) {\n adminSSLCheckbox.setSelection(teiidAdminInfo.isSecure());\n }\n } else {\n String portValue = teiidAdminInfo.getPort() != null ? teiidAdminInfo.getPort() : EMPTY_STRING;\n if (adminPort instanceof Text) {\n setIfDifferent((Text) adminPort, portValue);\n } else if (adminPort instanceof Label) {\n ((Label) adminPort).setText(portValue);\n }\n }\n setIfDifferent(jdbcUserNameText, teiidJdbcInfo.getUsername() != null ? teiidJdbcInfo.getUsername() : EMPTY_STRING);\n setIfDifferent(jdbcPasswdText, jdbcPWD != null ? jdbcPWD : EMPTY_STRING);\n if (isSevenServer()) {\n String portValue = teiidJdbcInfo.getPort() != null ? teiidJdbcInfo.getPort() : EMPTY_STRING;\n if (jdbcPort instanceof Text) {\n setIfDifferent((Text) jdbcPort, portValue);\n }\n } else {\n String portValue = NOT_CONNECTED;\n if (teiidServer.isConnected()) {\n portValue = getServerManager().getJdbcPort(teiidServer, false);\n if (portValue == null) {\n portValue = NOT_CONNECTED;\n }\n ((Label) jdbcPort).setText(portValue);\n }\n portValue = getServerManager().getJdbcPort(teiidServer, true);\n if (portValue != null) {\n setIfDifferent(jdbcPortOverride, portValue);\n }\n }\n jdbcSSLCheckbox.setSelection(teiidJdbcInfo.isSecure());\n}\n"
"public PrimitiveObject[] getPrimitiveObjectArray(final IExpressionIndex indexList, final int start, final int length) {\n PrimitiveObject[] result = new PrimitiveObject[length];\n int loopEnd = (start + length);\n if (indexList.size() < loopEnd) {\n loopEnd = indexList.size();\n }\n for (int i = start, index = 0; i < loopEnd; i++, index++) {\n if (indexList.get(i) < this.length) {\n result[index] = value;\n }\n }\n return result;\n}\n"
"public static void encrypt(Context context, InputData data, OutputStream outStream, boolean armored, long[] encryptionKeyIds, long signatureKeyId, String signaturePassPhrase, ProgressDialogUpdater progress, int symmetricAlgorithm, int hashAlgorithm, int compression, boolean forceV3Signature, String passPhrase) throws IOException, GeneralException, PGPException, NoSuchProviderException, NoSuchAlgorithmException, SignatureException {\n if (encryptionKeyIds == null) {\n encryptionKeyIds = new long[0];\n }\n ArmoredOutputStream armorOut = null;\n OutputStream out = null;\n OutputStream encryptOut = null;\n if (armored) {\n armorOut = new ArmoredOutputStream(outStream);\n armorOut.setHeader(\"String_Node_Str\", getFullVersion(context));\n out = armorOut;\n } else {\n out = outStream;\n }\n PGPSecretKey signingKey = null;\n PGPSecretKeyRing signingKeyRing = null;\n PGPPrivateKey signaturePrivateKey = null;\n if (encryptionKeyIds.length == 0 && passPhrase == null) {\n throw new GeneralException(context.getString(R.string.error_noEncryptionKeysOrPassPhrase));\n }\n if (signatureKeyId != Id.key.none) {\n signingKeyRing = getSecretKeyRing(signatureKeyId);\n signingKey = PGPHelper.getSigningKey(signatureKeyId);\n if (signingKey == null) {\n throw new GeneralException(context.getString(R.string.error_signatureFailed));\n }\n if (signaturePassPhrase == null) {\n throw new GeneralException(context.getString(R.string.error_noSignaturePassPhrase));\n }\n if (progress != null)\n progress.setProgress(R.string.progress_extractingSignatureKey, 0, 100);\n PBESecretKeyDecryptor keyDecryptor = new JcePBESecretKeyDecryptorBuilder().setProvider(BOUNCY_CASTLE_PROVIDER_NAME).build(signaturePassPhrase.toCharArray());\n signaturePrivateKey = signingKey.extractPrivateKey(keyDecryptor);\n if (signaturePrivateKey == null) {\n throw new GeneralException(context.getString(R.string.error_couldNotExtractPrivateKey));\n }\n }\n updateProgress(progress, R.string.progress_preparingStreams, 5, 100);\n JcePGPDataEncryptorBuilder encryptorBuilder = new JcePGPDataEncryptorBuilder(symmetricAlgorithm).setProvider(BOUNCY_CASTLE_PROVIDER_NAME).setWithIntegrityPacket(true);\n PGPEncryptedDataGenerator cPk = new PGPEncryptedDataGenerator(encryptorBuilder);\n if (encryptionKeyIds.length == 0) {\n Log.d(Constants.TAG, \"String_Node_Str\");\n JcePBEKeyEncryptionMethodGenerator symmetricEncryptionGenerator = new JcePBEKeyEncryptionMethodGenerator(passPhrase.toCharArray());\n cPk.addMethod(symmetricEncryptionGenerator);\n }\n for (int i = 0; i < encryptionKeyIds.length; ++i) {\n PGPPublicKey key = PGPHelper.getEncryptPublicKey(encryptionKeyIds[i]);\n if (key != null) {\n JcePublicKeyKeyEncryptionMethodGenerator pubKeyEncryptionGenerator = new JcePublicKeyKeyEncryptionMethodGenerator(key);\n cPk.addMethod(pubKeyEncryptionGenerator);\n }\n }\n encryptOut = cPk.open(out, new byte[1 << 16]);\n PGPSignatureGenerator signatureGenerator = null;\n PGPV3SignatureGenerator signatureV3Generator = null;\n if (signatureKeyId != Id.key.none) {\n if (progress != null)\n progress.setProgress(R.string.progress_preparingSignature, 10, 100);\n JcaPGPContentSignerBuilder contentSignerBuilder = new JcaPGPContentSignerBuilder(signingKey.getPublicKey().getAlgorithm(), hashAlgorithm).setProvider(BOUNCY_CASTLE_PROVIDER_NAME);\n if (forceV3Signature) {\n signatureV3Generator = new PGPV3SignatureGenerator(contentSignerBuilder);\n signatureV3Generator.init(PGPSignature.BINARY_DOCUMENT, signaturePrivateKey);\n } else {\n signatureGenerator = new PGPSignatureGenerator(contentSignerBuilder);\n signatureGenerator.init(PGPSignature.BINARY_DOCUMENT, signaturePrivateKey);\n String userId = PGPHelper.getMainUserId(PGPHelper.getMasterKey(signingKeyRing));\n PGPSignatureSubpacketGenerator spGen = new PGPSignatureSubpacketGenerator();\n spGen.setSignerUserID(false, userId);\n signatureGenerator.setHashedSubpackets(spGen.generate());\n }\n }\n PGPCompressedDataGenerator compressGen = null;\n BCPGOutputStream bcpgOut = null;\n if (compression == Id.choice.compression.none) {\n bcpgOut = new BCPGOutputStream(encryptOut);\n } else {\n compressGen = new PGPCompressedDataGenerator(compression);\n bcpgOut = new BCPGOutputStream(compressGen.open(encryptOut));\n }\n if (signatureKeyId != Id.key.none) {\n if (forceV3Signature) {\n signatureV3Generator.generateOnePassVersion(false).encode(bcpgOut);\n } else {\n signatureGenerator.generateOnePassVersion(false).encode(bcpgOut);\n }\n }\n PGPLiteralDataGenerator literalGen = new PGPLiteralDataGenerator();\n OutputStream pOut = literalGen.open(bcpgOut, PGPLiteralData.BINARY, \"String_Node_Str\", new Date(), new byte[1 << 16]);\n if (progress != null)\n progress.setProgress(R.string.progress_encrypting, 20, 100);\n long done = 0;\n int n = 0;\n byte[] buffer = new byte[1 << 16];\n InputStream in = data.getInputStream();\n while ((n = in.read(buffer)) > 0) {\n pOut.write(buffer, 0, n);\n if (signatureKeyId != Id.key.none) {\n if (forceV3Signature) {\n signatureV3Generator.update(buffer, 0, n);\n } else {\n signatureGenerator.update(buffer, 0, n);\n }\n }\n done += n;\n if (data.getSize() != 0) {\n if (progress != null)\n progress.setProgress((int) (20 + (95 - 20) * done / data.getSize()), 100);\n }\n }\n literalGen.close();\n if (signatureKeyId != Id.key.none) {\n if (progress != null)\n progress.setProgress(R.string.progress_generatingSignature, 95, 100);\n if (forceV3Signature) {\n signatureV3Generator.generate().encode(pOut);\n } else {\n signatureGenerator.generate().encode(pOut);\n }\n }\n if (compressGen != null) {\n compressGen.close();\n }\n encryptOut.close();\n if (armored) {\n armorOut.close();\n }\n if (progress != null)\n progress.setProgress(R.string.progress_done, 100, 100);\n}\n"
"public boolean isConnected(Role dest, Role src) {\n Map<Role, ConnectedStatus> tmp = this.map.get(dest);\n if (tmp != null) {\n Boolean b = tmp.get(src);\n return b != null && b;\n }\n return false;\n}\n"
"public void testGetJavaFileForInput() {\n CachingFileManager fm = new CachingFileManager(CachingArchiveProvider.getDefault(), bCp, SourceLevelUtils.JDK1_8, false, true);\n JavaFileObject res = fm.getJavaFileForInput(StandardLocation.CLASS_PATH, \"String_Node_Str\", JavaFileObject.Kind.CLASS);\n assertEquals(Arrays.asList(\"String_Node_Str\"), toContent(Collections.<JavaFileObject>singleton(res)));\n assertEquals(Arrays.asList(\"String_Node_Str\"), toInferedName(fm, Collections.<JavaFileObject>singleton(res)));\n fm = new CachingFileManager(CachingArchiveProvider.getDefault(), mvCp, Source.JDK1_8, false, true);\n res = fm.getJavaFileForInput(StandardLocation.CLASS_PATH, \"String_Node_Str\", JavaFileObject.Kind.CLASS);\n assertEquals(Arrays.asList(\"String_Node_Str\"), toContent(Collections.<JavaFileObject>singleton(res)));\n assertEquals(Arrays.asList(\"String_Node_Str\"), toInferedName(fm, Collections.<JavaFileObject>singleton(res)));\n fm = new CachingFileManager(CachingArchiveProvider.getDefault(), bCp, Source.JDK1_9, false, true);\n res = fm.getJavaFileForInput(StandardLocation.CLASS_PATH, \"String_Node_Str\", JavaFileObject.Kind.CLASS);\n assertEquals(Arrays.asList(\"String_Node_Str\"), toContent(Collections.<JavaFileObject>singleton(res)));\n assertEquals(Arrays.asList(\"String_Node_Str\"), toInferedName(fm, Collections.<JavaFileObject>singleton(res)));\n fm = new CachingFileManager(CachingArchiveProvider.getDefault(), mvCp, Source.JDK1_9, false, true);\n res = fm.getJavaFileForInput(StandardLocation.CLASS_PATH, \"String_Node_Str\", JavaFileObject.Kind.CLASS);\n assertEquals(Arrays.asList(\"String_Node_Str\"), toContent(Collections.<JavaFileObject>singleton(res)));\n assertEquals(Arrays.asList(\"String_Node_Str\"), toInferedName(fm, Collections.<JavaFileObject>singleton(res)));\n}\n"
"public Object[][] successfulCompiles() {\n return new Object[][] { new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", true, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, true, false }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, true, true }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", true, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", true, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false }, new Object[] { \"String_Node_Str\", false, false, false } };\n}\n"
"private Response saveTaxonomyByIdOrName(String taxonomyIdOrName, String requestContent, String httpMethod) {\n Taxonomy taxonomyToBeSaved = astroboaClient.getImportService().importTaxonomy(requestContent, false);\n Taxonomy existedTaxonomy = astroboaClient.getTaxonomyService().getTaxonomy(taxonomyIdOrName, ResourceRepresentationType.TAXONOMY_INSTANCE, FetchLevel.ENTITY, false);\n boolean taxonomyIdHasBeenProvided = CmsConstants.UUIDPattern.matcher(taxonomyIdOrName).matches();\n boolean entityIsNew = existedTaxonomy == null;\n if (taxonomyIdHasBeenProvided) {\n if (taxonomyToBeSaved.getId() == null) {\n taxonomyToBeSaved.setId(taxonomyIdOrName);\n }\n } else {\n if (taxonomyToBeSaved.getName() == null) {\n taxonomyToBeSaved.setName(taxonomyIdOrName);\n }\n }\n if (existedTaxonomy != null) {\n if (taxonomyToBeSaved.getId() == null) {\n taxonomyToBeSaved.setId(existedTaxonomy.getId());\n } else {\n if (!StringUtils.equals(existedTaxonomy.getId(), taxonomyToBeSaved.getId())) {\n logger.warn(\"String_Node_Str\", new Object[] { httpMethod, taxonomyIdOrName, existedTaxonomy.getId(), taxonomyToBeSaved.getId() });\n throw new WebApplicationException(HttpURLConnection.HTTP_BAD_REQUEST);\n }\n }\n } else {\n if (taxonomyToBeSaved.getName() != null && !taxonomyIdHasBeenProvided && !StringUtils.equals(taxonomyIdOrName, taxonomyToBeSaved.getName())) {\n logger.warn(\"String_Node_Str\", new Object[] { httpMethod, taxonomyIdOrName, taxonomyToBeSaved.getName() });\n throw new WebApplicationException(HttpURLConnection.HTTP_BAD_REQUEST);\n }\n entityIsNew = true;\n }\n return saveTaxonomySource(taxonomyToBeSaved.xml(false), httpMethod, entityIsNew);\n}\n"
"public void run() {\n if (descriptionView.getLineCount() <= HeaderViewHolder.MAX_LINES) {\n descriptionMoreView.setVisibility(View.GONE);\n } else {\n descriptionMoreView.setVisibility(View.VISIBLE);\n }\n}\n"