language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public static <T extends Comparable<?>> DateTimeTemplate<T> dateTimeTemplate(Class<? extends T> cl, String template, List<?> args) { return dateTimeTemplate(cl, createTemplate(template), args); }
python
def _normalize_options(options): """Renames keys in the options dictionary to their internally-used names.""" normalized_options = {} for key, value in iteritems(options): optname = str(key).lower() intname = INTERNAL_URI_OPTION_NAME_MAP.get(optname, key) normalized_options[intna...
python
def int_gps_time_to_str(t): """Takes an integer GPS time, either given as int or lal.LIGOTimeGPS, and converts it to a string. If a LIGOTimeGPS with nonzero decimal part is given, raises a ValueError.""" if isinstance(t, int): return str(t) elif isinstance(t, float): # Wouldn't this...
python
def __patch_write_method(tango_device_klass, attribute): """ Checks if method given by it's name for the given DeviceImpl class has the correct signature. If a read/write method doesn't have a parameter (the traditional Attribute), then the method is wrapped into another method which has correct par...
python
def _proc_ctype_header(self, request, result): """ Process the Content-Type header rules for the request. Only the desired API version can be determined from those rules. :param request: The Request object provided by WebOb. :param result: The Result object to store the results...
java
final void removePathEntry(final String pathName, boolean check) throws OperationFailedException{ synchronized (pathEntries) { PathEntry pathEntry = pathEntries.get(pathName); if (pathEntry.isReadOnly()) { throw ControllerLogger.ROOT_LOGGER.pathEntryIsReadOnly(pathName); ...
java
public void registerJsonBeanProcessor( Class target, JsonBeanProcessor jsonBeanProcessor ) { if( target != null && jsonBeanProcessor != null ) { beanProcessorMap.put( target, jsonBeanProcessor ); } }
java
private void mkdirs(File directory, String message) throws IOException { try { FileUtils.mkdirs(directory); } catch (FileUtils.CreateDirectoryException cde) { mCacheErrorLogger.logError( CacheErrorLogger.CacheErrorCategory.WRITE_CREATE_DIR, TAG, message, cde);...
java
public static dnstxtrec get(nitro_service service, String domain) throws Exception{ dnstxtrec obj = new dnstxtrec(); obj.set_domain(domain); dnstxtrec response = (dnstxtrec) obj.get_resource(service); return response; }
java
protected void retain(BaseEvent event) { Info info = events.get(event); if (info != null) { info.refcount.incrementAndGet(); } else { log.warn("Retain called on already released event."); } }
python
def clean(): """Remove build, dist, egg-info garbage.""" d = ['build', 'dist', 'scikits.audiolab.egg-info', HTML_DESTDIR, PDF_DESTDIR] for i in d: paver.path.path(i).rmtree() (paver.path.path('docs') / options.sphinx.builddir).rmtree()
java
private Collection<AnnotationData> getAnnotationSet(final Collection<TagAndLength> pTags) { Collection<AnnotationData> ret = null; if (pTags != null) { Map<ITag, AnnotationData> data = AnnotationUtils.getInstance().getMap().get(getClass().getName()); ret = new ArrayList<AnnotationData>(data.size()); for (T...
java
@Override protected void initializeDefaults() { String err = "A BEL Framework system configuration must be present"; if (configurationFile != null) { err += " (using " + configurationFile + ")"; } throw new BELRuntimeException(err, MISSING_SYSTEM_CONFIGURATION); }
java
private boolean isDataDirectExp(SQLException e) { /* * example of exception message * msft = "[Microsoft][SQLServer JDBC Driver][SQLServer]Invalid column name 'something'."; */ String message = e.getMessage(); int ind = message.indexOf('[', 2); // find the position of ...
python
def decoder(decoder_input, encoder_output, decoder_self_attention_bias, encoder_decoder_attention_bias, hparams, name="decoder", save_weights_to=None, make_image_summary=True,): """A stack of transformer layers. Args: decoder_i...
java
public static INDArray min(INDArray x, INDArray y, INDArray z, int... dimensions) { if(dimensions == null || dimensions.length == 0) { validateShapesNoDimCase(x,y,z); return Nd4j.getExecutioner().exec(new OldMin(x,y,z)); } return Nd4j.getExecutioner().exec(new Broadcast...
java
@Override public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent event) { // register the newly established channel Channel channel = event.getChannel(); LOG.info("connection established to :{}, local port:{}", client.getRemoteAddr(), channel.getLocalAddress()); c...
java
static boolean isValidMonth(@Nullable String monthString) { if (monthString == null) { return false; } try { int monthInt = Integer.parseInt(monthString); return monthInt > 0 && monthInt <= 12; } catch (NumberFormatException numEx) { retur...
python
def get_rmse(self, data_x=None, data_y=None): """ Get Root Mean Square Error using self.bestfit_func args: x_min: scalar, default=min(x) minimum x value of the line x_max: scalar, default=max(x) maximum x value of the line ...
java
public final static <T> Stream<Seq<T>> sliding(final Stream<T> stream, final int windowSize) { return sliding(stream, windowSize, 1); }
java
public void generate( String templateName, Row row ) { try { CompiledTemplate template = getTemplate( templateName ); VariableResolverFactory factory = new MapVariableResolverFactory(); Map<String, Object> vars = new HashMap<String, Object>(); ...
java
public void marshall(GetParametersByPathRequest getParametersByPathRequest, ProtocolMarshaller protocolMarshaller) { if (getParametersByPathRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(g...
python
def add_var_condor_cmd(self, command): """ Add a condor command to the submit file that allows variable (macro) arguments to be passes to the executable. """ if command not in self.__var_cmds: self.__var_cmds.append(command) macro = self.__bad_macro_chars.sub( r'', command ) ...
python
def cmd_attitude(self, args): '''attitude q0 q1 q2 q3 thrust''' if len(args) != 5: print("Usage: attitude q0 q1 q2 q3 thrust (0~1)") return if len(args) == 5: q0 = float(args[0]) q1 = float(args[1]) q2 = float(args[2]) q3 =...
python
def is_gesture(self): """Macro to check if this event is a :class:`~libinput.event.GestureEvent`. """ if self in {type(self).GESTURE_SWIPE_BEGIN, type(self).GESTURE_SWIPE_END, type(self).GESTURE_SWIPE_UPDATE, type(self).GESTURE_PINCH_BEGIN, type(self).GESTURE_PINCH_UPDATE, type(self).GESTURE_PINCH_END}: ...
java
private void readMap(final Element map, final Map<String, KeyDef> keyDefs) { readKeyDefinition(map, keyDefs); for (final Element elem: getChildElements(map)) { if (!(SUBMAP.matches(elem) || elem.getAttributeNode(ATTRIBUTE_NAME_KEYSCOPE) != null)) { readMap(elem, keyDefs); ...
python
def tilequeue_rawr_seed_toi(cfg, peripherals): """command to read the toi and enqueue the corresponding rawr tiles""" tiles_of_interest = peripherals.toi.fetch_tiles_of_interest() coords = map(coord_unmarshall_int, tiles_of_interest) _tilequeue_rawr_seed(cfg, peripherals, coords)
python
def _read_csv(filepath, kwargs): """See documentation of mpu.io.read.""" if 'delimiter' not in kwargs: kwargs['delimiter'] = ',' if 'quotechar' not in kwargs: kwargs['quotechar'] = '"' if 'skiprows' not in kwargs: kwargs['skiprows'] = [] if isinstance(kwargs['skiprows'], int)...
python
def _read(self): """ Reads backup file from json_file property and sets backup_dict property with data decompressed and deserialized from that file. If no usable data is found backup_dict is set to the empty dict. """ self.json_file.seek(0) try: data =...
python
def present(name, save=False, **kwargs): ''' Ensure beacon is configured with the included beacon data. Args: name (str): The name of the beacon ensure is configured. save (bool): ``True`` updates the beacons.conf. Default is ``False``. ...
python
def interact(self, unique_id, case_id, question_prompt, answer, choices=None, randomize=True): """Reads student input for unlocking tests until the student answers correctly. PARAMETERS: unique_id -- str; the ID that is recorded with this unlocking attem...
java
public final void entryRuleGrammar() throws RecognitionException { try { // InternalXtext.g:54:1: ( ruleGrammar EOF ) // InternalXtext.g:55:1: ruleGrammar EOF { before(grammarAccess.getGrammarRule()); pushFollow(FollowSets000.FOLLOW_1); r...
java
private void configureTransform(int viewWidth, int viewHeight) { int cameraWidth,cameraHeight; try { open.mLock.lock(); if (null == mTextureView || null == open.mCameraSize) { return; } cameraWidth = open.mCameraSize.getWidth(); cameraHeight = open.mCameraSize.getHeight(); } finally { open.m...
java
@Deprecated public static <C extends Callable<T>, T> T call(Class<C> callableClass, IFactory factory, PrintStream out, String... args) { return call(callableClass, factory, out, System.err, Help.Ansi.AUTO, args); }
python
def writeXML(self, n): """ Writes a XML string to the data stream. @type n: L{ET<xml.ET>} @param n: The XML Document to be encoded to the AMF3 data stream. """ self.stream.write(TYPE_XMLSTRING) ref = self.context.getObjectReference(n) if ref != -1: ...
java
protected void mergeSameCost(LinkedList<TimephasedCost> list) { LinkedList<TimephasedCost> result = new LinkedList<TimephasedCost>(); TimephasedCost previousAssignment = null; for (TimephasedCost assignment : list) { if (previousAssignment == null) { assignment....
java
@Override public void writeInt(int value) throws JMSException { try { getOutput().writeInt(value); } catch (IOException e) { throw new FFMQException("Cannot write message body","IO_ERROR",e); } }
java
public void deleteTemplate(DeleteTemplateRequest request) { checkNotNull(request, "object request should not be null."); assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty."); InternalRequest internalRequest = this.createRequest("t...
python
def execute(args): """ Executes the *run* subprogram with parsed commandline *args*. """ task_family = None error = None # try to infer the task module from the passed task family and import it parts = args.task_family.rsplit(".", 1) if len(parts) == 2: modid, cls_name = parts ...
python
def object_deserializer(obj): """Helper to deserialize a raw result dict into a proper dict. :param obj: The dict. """ for key, val in obj.items(): if isinstance(val, six.string_types) and DATETIME_REGEX.search(val): try: obj[key] = dates.localize_datetime(parser.par...
java
private String getCustomHandler(WaybackException e, WaybackRequest wbRequest) { String jspPath = null; if((e instanceof ResourceNotInArchiveException) && wbRequest.isReplayRequest()) { String url = wbRequest.getRequestUrl(); Date captureDate = wbRequest.getReplayDate(); try { Rule rule = client.get...
java
private void callAnnotatedMethod(final Class<? extends Annotation> annotationClass) { if (this.lifecycleMethod.get(annotationClass.getName()) != null) { for (final Method method : this.lifecycleMethod.get(annotationClass.getName())) { try { ClassUtility.callMetho...
java
public EEnum getCDDXocBase() { if (cddXocBaseEEnum == null) { cddXocBaseEEnum = (EEnum)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(8); } return cddXocBaseEEnum; }
java
static List<PatternLevel> readLevelResourceFile(InputStream stream) { List<PatternLevel> levels = null; if (stream != null) { try { levels = configureClassLevels(stream); } catch (IOException e) { System.err.println( "IO exception reading the log properties file '" + LOCAL_LOG_PROPERTIES_FILE + ...
python
def get_precinctsreporting(self, obj): """Precincts reporting if vote is top level result else ``None``.""" if obj.division.level == \ obj.candidate_election.election.division.level: return obj.candidate_election.election.meta.precincts_reporting return None
python
def run_configurations(callback, sections_reader): """Parse configurations and execute callback for matching.""" base = dict(OPTIONS) sections = sections_reader() if sections is None: logger.info("Configuration not found in .ini files. " "Running with default settings") ...
python
def label_storm_objects(data, method, min_intensity, max_intensity, min_area=1, max_area=100, max_range=1, increment=1, gaussian_sd=0): """ From a 2D grid or time series of 2D grids, this method labels storm objects with either the Enhanced Watershed or Hysteresis methods. Args:...
python
def rename_columns(self, col): """ Rename columns of dataframe. Parameters ---------- col : list(str) List of columns to rename. """ try: self.cleaned_data.columns = col except Exception as e: raise e
python
def debugPreview(self, title="Debug"): """ Displays the region in a preview window. If the region is a Match, circles the target area. If the region is larger than half the primary screen in either dimension, scales it down to half size. """ region = self haystack = self...
python
def record_staged(self): """Encode staged information on request and result to output""" if self.enabled: pwargs = OpArgs( self._pywbem_method, self._pywbem_args) pwresult = OpResult( self._pywbem_result_ret, self._p...
java
@Parameters public static final Collection<Object[]> getParameters() { return Arrays.asList( new Object[] { (Function<ListenerStore, ? extends EventProvider>) SequentialEventProvider::new, (Supplier<ListenerStore>) DefaultListenerStore::create ...
java
public static boolean isClassAvilableInClassPath(String string) { try { Class.forName(string); return true; } catch (ClassNotFoundException e) { return false; } }
python
def uint32_gte(a: int, b: int) -> bool: """ Return a >= b. """ return (a == b) or uint32_gt(a, b)
java
public static String normalizeParameters(String requestUrl, Map<String, String> protocolParameters) throws AuthException { SortedSet<RequestParameter> parameters = new TreeSet<>(); int index = requestUrl.indexOf('?'); if (index > 0) { String query = requestUrl.substring(index + 1); Iterato...
python
def rsync(hosts, source, destination, logger=None, sudo=False): """ Grabs the hosts (or single host), creates the connection object for each and set the rsync execnet engine to push the files. It assumes that all of the destinations for the different hosts is the same. This deviates from what execn...
java
private <T> void addEntry(StreamElementQueueEntry<T> streamElementQueueEntry) { assert(lock.isHeldByCurrentThread()); queue.addLast(streamElementQueueEntry); streamElementQueueEntry.onComplete( (StreamElementQueueEntry<T> value) -> { try { onCompleteHandler(value); } catch (InterruptedException ...
python
def ismatch(a,b): """Method to allow smart comparisons between classes, instances, and string representations of units and give the right answer. For internal use only.""" #Try the easy case if a == b: return True else: #Try isinstance in both orders try: if i...
python
def from_both(cls, tags_file: str, tags_folder: str, folder: str) -> 'TrainData': """Load data from both a database and a structured folder""" return cls.from_tags(tags_file, tags_folder) + cls.from_folder(folder)
python
def _self_destruct(self): """Auto quit exec if parent process failed """ # This will give parent process 15 seconds to reset. self._kill = threading.Timer(15, lambda: os._exit(0)) self._kill.start()
python
def get_whoami(self): """ A convenience function used in the event that you need to confirm that the broker thinks you are who you think you are. :returns dict whoami: Dict structure contains: * administrator: whether the user is has admin privileges * name: user...
python
def reportMatchCompletion(cfg, results, replayData): """send information back to the server about the match's winners/losers""" payload = json.dumps([cfg.flatten(), results, replayData]) ladder = cfg.ladder return requests.post( url = c.URL_BASE%(ladder.ipAddress, ladder.serverPort, "matchfinis...
java
public void setup(PluginParameters pluginParameters) { this.indentCharacters = pluginParameters.indentCharacters; this.lineSeparatorUtil = pluginParameters.lineSeparatorUtil; this.encoding = pluginParameters.encoding; this.expandEmptyElements = pluginParameters.expandEmptyElements; ...
python
def path(self): """Requested path as unicode. This works a bit like the regular path info in the WSGI environment but will always include a leading slash, even if the URL root is accessed. """ raw_path = wsgi_decoding_dance( self.environ.get("PATH_INFO") or "", self....
python
def get(self, name): """Returns a Vxlan interface as a set of key/value pairs The Vxlan interface resource returns the following: * name (str): The name of the interface * type (str): Always returns 'vxlan' * source_interface (str): The vxlan source-interface value ...
java
@Nullable private AuthorizationInfo getAuthorizationInfoById(String id) { AuthorizationInfo authorizationInfo; // Search the cache first Cache<String, AuthorizationInfo> idAuthorizationCache = getAvailableIdAuthorizationCache(); if (idAuthorizationCache != null) { autho...
java
public EnvironmentInner get(String resourceGroupName, String labAccountName, String labName, String environmentSettingName, String environmentName, String expand) { return getWithServiceResponseAsync(resourceGroupName, labAccountName, labName, environmentSettingName, environmentName, expand).toBlocking().single...
java
public static GiftCard.Redemption createRedemption(String accountCode) { Redemption redemption = new Redemption(); redemption.setAccountCode(accountCode); return redemption; }
java
public List<U> getAll(final boolean readFromSession) { final LinkedHashMap<String, U> profiles = retrieveAll(readFromSession); return ProfileHelper.flatIntoAProfileList(profiles); }
python
def collapse_equal_values(values, counts): """ Take a tuple (values, counts), remove consecutive values and increment their count instead. """ assert len(values) == len(counts) previousValue = values[0] previousCount = 0 for value, count in zip(values, counts): if value != previousV...
python
def calculate_rates(base_currency, counter_currency, forward_rate=None, fwd_points=None, spot_reference=None): """Calculate rates for Fx Forward based on others.""" if base_currency not in DIVISOR_TABLE: divisor = DIVISOR_TABLE.get(counter_currency, DEFAULT_DIVISOR) if forward_rate is None and f...
python
def load_extension(self, path, name_filter=None, class_filter=None, unique=False, component=None): """Load a single python module extension. This function is similar to using the imp module directly to load a module and potentially inspecting the objects it declares to filter them by cl...
python
def commit_changeset(self, changeset_id: uuid.UUID) -> Dict[bytes, Union[bytes, DeletedEntry]]: """ Collapses all changes for the given changeset into the previous changesets if it exists. """ does_clear = self.has_clear(changeset_id) changeset_data = self.pop_changeset(c...
python
def _guess_normalized(self): """Returns true if the collated counts in `self._results` appear to be normalized. Notes ----- It's possible that the _results df has already been normalized, which can cause some methods to fail. This method lets us guess whether that's true and act...
python
def to_vector(np_array): """Convert numpy array to MLlib Vector """ if len(np_array.shape) == 1: return Vectors.dense(np_array) else: raise Exception("An MLLib Vector can only be created from a one-dimensional " + "numpy array, got {}".format(len(np_array.shape)))
java
public final void deleteProfile(String name) { DeleteProfileRequest request = DeleteProfileRequest.newBuilder().setName(name).build(); deleteProfile(request); }
python
def rand_email(): """Random email. Usage Example:: >>> rand_email() Z4Lljcbdw7m@npa.net """ name = random.choice(string.ascii_letters) + \ rand_str(string.ascii_letters + string.digits, random.randint(4, 14)) domain = rand_str(string.ascii_lowercase, random.randint(2, ...
java
@Override public void initialize() { metricRegistry.register(createMetricName("name"), new Gauge<String>() { @Override public String getValue() { return key.name(); } }); // allow monitor to know exactly at what point in time these stats a...
java
public static <T> Constructor<T> getAccessibleConstructor(final Constructor<T> ctor) { Objects.requireNonNull(ctor, "constructor cannot be null"); return MemberUtils.isAccessible(ctor) && isAccessible(ctor.getDeclaringClass()) ? ctor : null; }
python
def readSB(self, bits): """ Read a signed int using the specified number of bits """ shift = 32 - bits return int32(self.readbits(bits) << shift) >> shift
python
def generate_sample(self, start_state=None, size=1): """ Generator version of self.sample Return Type: ------------ List of State namedtuples, representing the assignment to all variables of the model. Examples: --------- >>> from pgmpy.models.MarkovChai...
python
def start(self): """Start the sensor. """ running = self._webcam.start() if not running: return running running &= self._phoxi.start() if not running: self._webcam.stop() return running
java
@SuppressWarnings("PMD.AvoidCatchingThrowable") public static <T> Consumer<T> swallowExceptions(ThrowingConsumer<T> in) { return (item) -> { try { in.accept(item); }
java
public String getFullName() { StringBuffer buf = new StringBuffer(); if (getParentPrivlige() != null) { buf.append(parentPrivlige.getFullName().concat(" > ")); } buf.append(getPriviligeName()); return buf.toString(); }
java
private MemcachedBackupSession loadFromMemcached( final String sessionId ) { if ( _log.isDebugEnabled() ) { _log.debug( "Loading session from memcached: " + sessionId ); } LockStatus lockStatus = null; try { if ( !_sticky ) { lockStatus = _lockin...
java
public AwsSecurityFindingFilters withNetworkDestinationIpV4(IpFilter... networkDestinationIpV4) { if (this.networkDestinationIpV4 == null) { setNetworkDestinationIpV4(new java.util.ArrayList<IpFilter>(networkDestinationIpV4.length)); } for (IpFilter ele : networkDestinationIpV4) { ...
python
def find_version(include_dev_version=True, version_file='version.txt', version_module_paths=(), git_args=('git', 'describe', '--tags', '--long'), Popen=subprocess.Popen): """Find an appropriate version number from version control. It's much more convenient to ...
java
public static MozuUrl getApplicationUrl(String appId, String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/applications/{appId}?responseFields={responseFields}"); formatter.formatUrl("appId", appId); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(for...
java
public List<Alternatives<Beans<T>>> getAllAlternatives() { List<Alternatives<Beans<T>>> list = new ArrayList<Alternatives<Beans<T>>>(); List<Node> nodeList = childNode.get("alternatives"); for(Node node: nodeList) { Alternatives<Beans<T>> type = new AlternativesImpl<Beans<T>>(this, ...
python
def render_in_page(request, template): """return rendered template in standalone mode or ``False`` """ from leonardo.module.web.models import Page page = request.leonardo_page if hasattr( request, 'leonardo_page') else Page.objects.filter(parent=None).first() if page: try: ...
java
@Override public void execute(JobExecutionContext context) throws JobExecutionException { Map<String, String> originalContext = MDC.getCopyOfContextMap(); if (this.mdcContext != null) { MDC.setContextMap(this.mdcContext); } try { executeImpl(context); } finally { if (originalCon...
python
def calc_psd_variation(strain, psd_short_segment, psd_long_segment, short_psd_duration, short_psd_stride, psd_avg_method, low_freq, high_freq): """Calculates time series of PSD variability This function first splits the segment up into 512 second chunks. It the...
python
def set_format_options(fmt, format_options): """Apply the desired format options to the format description fmt""" if not format_options: return for opt in format_options: try: key, value = opt.split('=') except ValueError: raise ValueError("Format options are...
python
async def edit_caption(self, caption: base.String, parse_mode: typing.Union[base.String, None] = None, reply_markup=None): """ Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). Source: https://cor...
python
def listFileArray(self, **kwargs): """ API to list files in DBS. Non-wildcarded logical_file_name, non-wildcarded dataset, non-wildcarded block_name or non-wildcarded lfn list is required. The combination of a non-wildcarded dataset or block_name with an wildcarded logical_file_name is supported...
java
@Override public void exceptionCaught(IoSession session, Throwable cause) { final IoSessionInputStream in = (IoSessionInputStream) session .getAttribute(KEY_IN); IOException e = null; if (cause instanceof StreamIoException) { e = (IOException) cause.getCause(); ...
python
def parse_intervals(path, as_context=False): """ Parse path strings into a collection of Intervals. `path` is a string describing a region in a file. It's format is dotted.module.name:[line | start-stop | context] `dotted.module.name` is a python module `line` is a single line number in t...
python
def get_redis_connection(): """ Get the redis connection if not using mock """ if config.MOCK_REDIS: # pragma: no cover import mockredis return mockredis.mock_strict_redis_client() # pragma: no cover elif config.DEFENDER_REDIS_NAME: # pragma: no cover try: cache = cach...
java
public List<Integer> get(String stream, List<Object> tuple, Collection<Tuple> anchors, Object rootId) { List<Integer> outTasks = new ArrayList<>(); // get grouper, then get which task should tuple be sent to. Map<String, MkGrouper> componentCrouping = streamComponentGrouper.get(stream); ...
python
def loop(self, timeout=1.0, max_packets=1): """Process network events. This function must be called regularly to ensure communication with the broker is carried out. It calls select() on the network socket to wait for network events. If incoming data is present it will then be p...
java
public VirtualResourcePoolSpec getVRPSettings(String vrpId) throws InvalidState, NotFound, RuntimeFault, RemoteException { return getVimService().getVRPSettings(getMOR(), vrpId); }