language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public static TermLengthOrPercent createLengthOrPercent(String spec) { spec = spec.trim(); if (spec.endsWith("%")) { try { float val = Float.parseFloat(spec.substring(0, spec.length() - 1)); TermPercent perc = CSSFactory.getTermFactory().createPerc...
python
def format_dict(dic, format_list, separator=',', default_value=str): """ Format dict to string passing a list of keys as order Args: lista: List with elements to clean duplicates. """ dic = collections.defaultdict(default_value, dic) str_format = separator.join(["{" + "{}".format(head)...
python
def overlap(a, b): """Check if two ranges overlap. Parameters ---------- a : range The first range. b : range The second range. Returns ------- overlaps : bool Do these ranges overlap. Notes ----- This function does not support ranges with step != ...
java
public final ValueWithPos<String> formatE123NationalWithPos( final ValueWithPos<PhoneNumberData> pphoneNumberData) { if (pphoneNumberData == null) { return null; } int cursor = pphoneNumberData.getPos(); final StringBuilder resultNumber = new StringBuilder(); if (isPhoneNumberNotEmpty(pp...
python
def qteFocusChanged(self, old, new): """ Slot for Qt native focus-changed signal to notify Qtmacs if the window was switched. .. note: This method is work in progress. """ # Do nothing if new is old. if old is new: return # If neither is None...
python
def _validate_signing_cert(ca_certificate, certificate, crl=None): """ Validate an X509 certificate using pyOpenSSL. .. note:: pyOpenSSL is a short-term solution to certificate validation. pyOpenSSL is basically in maintenance mode and there's a desire in upstream to move all the fu...
java
public boolean onAbout() { Application application = this.getApplication(); application.getResources(null, true); // Set the resource bundle to default String strTitle = this.getString(ThinMenuConstants.ABOUT); String strMessage = this.getString("Copyright"); JOptionPane.sh...
python
def to_nibabel(image): """ Convert an ANTsImage to a Nibabel image """ if image.dimension != 3: raise ValueError('Only 3D images currently supported') import nibabel as nib array_data = image.numpy() affine = np.hstack([image.direction*np.diag(image.spacing),np.array(image.origin).r...
java
private void readLayerAndMaskInfo(final boolean pParseData) throws IOException { readImageResources(false); if (pParseData && (metadata.layerInfo == null || metadata.globalLayerMask == null) || metadata.imageDataStart == 0) { imageInput.seek(metadata.layerAndMaskInfoStart); lon...
python
def poisson_source(rate, iterable, target): """Send events at random times with uniform probability. Args: rate: The average number of events to send per second. iterable: A series of items which will be sent to the target one by one. target: The target coroutine or sink. Returns: ...
java
@Override public void setX(double min, double max) { if (min <= max) { this.minxProperty.set(min); this.maxxProperty.set(max); } else { this.minxProperty.set(max); this.maxxProperty.set(min); } }
python
def left(self, expand=None): """ Returns a new Region left of the current region with a width of ``expand`` pixels. Does not include the current region. If range is omitted, it reaches to the left border of the screen. The new region has the same height and y-position as the current region. ...
java
private void emitSubroutine(final Instantiation instant, final List<Instantiation> worklist, final InsnList newInstructions, final List<TryCatchBlockNode> newTryCatchBlocks, final List<LocalVariableNode> newLocalVariables) { LabelNode duplbl = null; if (LOGGING) { ...
python
def _handle_ansi_color_codes(self, s): """Replace ansi escape sequences with spans of appropriately named css classes.""" parts = HtmlReporter._ANSI_COLOR_CODE_RE.split(s) ret = [] span_depth = 0 # Note that len(parts) is always odd: text, code, text, code, ..., text. for i in range(0, len(parts...
python
def run_model(self, model_run, run_url): """Create entry in run request buffer. Parameters ---------- model_run : ModelRunHandle Handle to model run run_url : string URL for model run information """ # Create model run request requ...
java
@SuppressWarnings("fallthrough") protected void inlineWord() { int pos = bp; int depth = 0; loop: while (bp < buflen) { switch (ch) { case '\n': newline = true; // fallthrough case '\r': case '\f': c...
java
public static StackTraceElement element(String declaringClass, String methodName) { return new StackTraceElement(declaringClass, methodName, null, -1); }
java
public void sendRedirect303(String location) throws IOException{ HttpServletResponse resp = getProxiedHttpServletResponse(); if(resp instanceof IExtendedResponse) { ((IExtendedResponse)resp).sendRedirect303(location); } else { sendRedirect(location); } }
python
def build_referenceWCS(catalog_list): """ Compute default reference WCS from list of Catalog objects. """ wcslist = [] for catalog in catalog_list: for scichip in catalog.catalogs: wcslist.append(catalog.catalogs[scichip]['wcs']) return utils.output_wcs(wcslist)
java
private ResourceType getResourceType(String resourceTag) { if (resourceTag == null || !resourceTag.endsWith("-resource")) { return ResourceType.unknown; } try { return ResourceType.valueOf(resourceTag.substring(0, resourceTag.length() - 9)); } catch (Exception e)...
java
private Observable<HttpClientResponse<O>> submitToServerInURI( HttpClientRequest<I> request, IClientConfig requestConfig, ClientConfig config, RetryHandler errorHandler, ExecutionContext<HttpClientRequest<I>> context) { // First, determine server from the URI URI uri; tr...
python
def _Scroll(self, lines=None): """Set attributes to scroll the buffer correctly. Args: lines: An int, number of lines to scroll. If None, scrolls by the terminal length. """ if lines is None: lines = self._cli_lines if lines < 0: self._displayed -= self._cli_lines s...
python
async def listener(self, channel): """ Single-channel listener """ while True: message = await self.channel_layer.receive(channel) if not message.get("type", None): raise ValueError("Worker received message with no type.") # Make a scop...
python
def _check_preconditions(self, state: Sequence[tf.Tensor], action: Sequence[tf.Tensor], bound_constraints: Dict[str, Constraints], default: Sequence[tf.Tensor]) -> Tuple[tf.Tensor, Sequence[tf.Tensor], tf.Tensor]: '''Samples action fluents until all preconditions ...
python
def next_workday(dt): """ returns next weekday used for observances """ dt += timedelta(days=1) while dt.weekday() > 4: # Mon-Fri are 0-4 dt += timedelta(days=1) return dt
python
def ctrl_transfer(self, dev_handle, bmRequestType, bRequest, wValue, wIndex, data, timeout): r"""Perform a control transfer on the endpoint 0. The di...
python
def _check_list_minions(self, expr, greedy, ignore_missing=False): # pylint: disable=unused-argument ''' Return the minions found by looking via a list ''' if isinstance(expr, six.string_types): expr = [m for m in expr.split(',') if m] minions = self._pki_minions() ...
java
@Override public int compare(final Orderable<T> orderable1, final Orderable<T> orderable2) { return orderable1.getOrder().compareTo(orderable2.getOrder()); }
python
def delete_efs_by_id(efs_id): """Deletion sometimes fails, try several times.""" start_time = time.time() efs_client = get_efs_client() sys.stdout.write("deleting %s ... " % (efs_id,)) while True: try: response = efs_client.delete_file_system(FileSystemId=efs_id) if is_good_response(response):...
java
public static LogFactory set(LogFactory logFactory) { logFactory.getLog(GlobalLogFactory.class).debug("Custom Use [{}] Logger.", logFactory.name); currentLogFactory = logFactory; return currentLogFactory; }
java
public static ObfuscatedData fromString(String obfuscatedString) { String[] parts = obfuscatedString.split("\\$"); if (parts.length != 5) { throw new IllegalArgumentException("Invalid obfuscated data"); } if (!parts[1].equals(SIGNATURE)) { throw new IllegalArgumen...
python
def get_category(self, metric): """ Return a string category for the metric. The category is made up of this reporter's prefix and the metric's group and tags. Examples: prefix = 'foo', group = 'bar', tags = {'a': 1, 'b': 2} returns: 'foo.bar.a=1,b=2' ...
java
@Benchmark public int unionAndIter(BitmapsForUnion state) { ImmutableBitmap intersection = factory.union(Arrays.asList(state.bitmaps)); return iter(intersection); }
java
public static <T> Transformer<T, T> removePairs( final Func1<? super T, Boolean> isCandidateForFirst, final Func2<? super T, ? super T, Boolean> remove) { return new Transformer<T, T>() { @Override public Observable<T> call(Observable<T> o) { retu...
python
def download_sample_and_align(job, sample, inputs, ids): """ Downloads the sample and runs BWA-kit :param JobFunctionWrappingJob job: Passed by Toil automatically :param tuple(str, list) sample: UUID and URLS for sample :param Namespace inputs: Contains input arguments :param dict ids: FileStor...
java
public static String getSearchFilePattern(final String... fileExtensions) { if (fileExtensions.length == 0) { return ""; } final String searchFilePatternPrefix = "([^\\s]+(\\.(?i)("; final String searchFilePatternSuffix = "))$)"; final StringBuilder sb = new StringBuilder(); int count = 1; for (fina...
python
def _refresh_state(self): """ Get the state of a job. If the job is complete this does nothing; otherwise it gets a refreshed copy of the job resource. """ # TODO(gram): should we put a choke on refreshes? E.g. if the last call was less than # a second ago should we return the cached value? ...
java
@Override public DataBuffer relocateConstantSpace(DataBuffer dataBuffer) { // we always assume that data is sync, and valid on host side Integer deviceId = AtomicAllocator.getInstance().getDeviceId(); ensureMaps(deviceId); if (dataBuffer instanceof CudaIntDataBuffer) { i...
java
@com.fasterxml.jackson.annotation.JsonProperty("ErrorDetails") public void setErrorDetails(java.util.Collection<ErrorDetail> errorDetails) { if (errorDetails == null) { this.errorDetails = null; return; } this.errorDetails = new java.util.ArrayList<ErrorDetail>(error...
java
public int getProcessExitCode() { // Make sure it's terminated try { ffmpeg.waitFor(); } catch (InterruptedException ex) { LOG.warn("Interrupted during waiting on process, forced shutdown?", ex); } return ffmpeg.exitValue(); ...
java
private final void _remove(final BehindRef removeref) { if (_firstLinkBehind != null) { if (removeref == _firstLinkBehind) { // It's the first in the list ... if (removeref == _lastLinkBehind) { // ... and th...
java
public T newProxy() { Object proxy = Proxy.newProxyInstance(classLoader, exportInterfaces, this); return clazz.cast(proxy); }
java
public ListenableFuture<OperationResult<Void>> execute(final MutationBatch m) throws WalException { final WriteAheadEntry walEntry = wal.createEntry(); walEntry.writeMutation(m); return executeWalEntry(walEntry, m); }
java
public void setLog(String log) throws ApplicationException { if (StringUtil.isEmpty(log, true)) return; this.log = log.trim(); // throw new ApplicationException("invalid value for attribute log ["+log+"]","valid values are // [application, scheduler,console]"); }
python
def radius_of_gyration(neurite): '''Calculate and return radius of gyration of a given neurite.''' centre_mass = neurite_centre_of_mass(neurite) sum_sqr_distance = 0 N = 0 dist_sqr = [distance_sqr(centre_mass, s) for s in nm.iter_segments(neurite)] sum_sqr_distance = np.sum(dist_sqr) N = len...
java
public <T extends R> T get(CheckedSupplier<T> supplier) { return call(execution -> Assert.notNull(supplier, "supplier")); }
python
def get_port_profile_status_input_port_profile_name(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") get_port_profile_status = ET.Element("get_port_profile_status") config = get_port_profile_status input = ET.SubElement(get_port_profile_status, "i...
python
def send_email(to=None, message=None, template='base', context={}, subject=None): """ Generic Method to Send Emails from template in an easier and modular way :param to: Email Address to send the email message :param message: Message content that is added to context :param template: P...
python
def get_datasets(self): # type: () -> List[hdx.data.dataset.Dataset] """Get any datasets in the showcase Returns: List[Dataset]: List of datasets """ assoc_result, datasets_dicts = self._read_from_hdx('showcase', self.data['id'], fieldname='showcase_id', ...
java
public static final void varDataDump(Var2Data data, Integer id, boolean dumpShort, boolean dumpInt, boolean dumpDouble, boolean dumpTimeStamp, boolean dumpUnicodeString, boolean dumpString) { System.out.println("VARDATA"); for (int i = 0; i < 500; i++) { if (dumpShort) { ...
java
public static DescriptionDescriptor createDescription(DescriptionType descriptionType, Store store) { DescriptionDescriptor descriptionDescriptor = store.create(DescriptionDescriptor.class); descriptionDescriptor.setLang(descriptionType.getLang()); descriptionDescriptor.setValue(descriptionType....
python
def _build_tree(self, position, momentum, slice_var, direction, depth, stepsize, position0, momentum0): """ Recursively builds a tree for proposing new position and momentum """ if depth == 0: position_bar, momentum_bar, candidate_set_size, accept_set_bool =\ ...
java
protected TicketGrantingTicket createTicketGrantingTicketForRequest(final MultiValueMap<String, String> requestBody, final HttpServletRequest request) { val credential = this.credentialFactory.fromRequest(request, requestBody); if (...
java
@Override public void delete(IEntityLock lock) throws LockingException { Map m = getLockCache(lock.getEntityType()); synchronized (m) { m.remove(getCacheKey(lock)); } }
python
def all_subnets_shorter_prefix(ip_net, cidr, include_default=False): """ Function to return every subnet a ip can belong to with a shorter prefix Args: ip_net: Unicast or Multicast IP address or subnet in the following format 192.168.1.1, 239.1.1.1 cidr: CIDR value of 0 to 32 include...
java
public Content getNavLinkNext() { Content li; if (next == null) { li = HtmlTree.LI(nextpackageLabel); } else { DocPath path = DocPath.relativePath(packageDoc, next); li = HtmlTree.LI(getHyperLink(path.resolve(DocPaths.profilePackageSummary(profileName)), ...
python
async def get_supported_methods(self): """Get information about supported methods. Calling this as the first thing before doing anything else is necessary to fill the available services table. """ response = await self.request_supported_methods() if "result" in response...
java
public Observable<CloudJob> getAsync(String jobId, JobGetOptions jobGetOptions) { return getWithServiceResponseAsync(jobId, jobGetOptions).map(new Func1<ServiceResponseWithHeaders<CloudJob, JobGetHeaders>, CloudJob>() { @Override public CloudJob call(ServiceResponseWithHeaders<CloudJob, ...
python
def parse_partial(self, data): """Incrementally decodes JSON data sets into Python objects. Raises ------ ~ipfsapi.exceptions.DecodingError Returns ------- generator """ try: # Python 3 requires all JSON data to be a text string ...
java
@Override public BulkPublishResult bulkPublish(BulkPublishRequest request) { request = beforeClientExecution(request); return executeBulkPublish(request); }
python
def sniff_extension(file_path,verbose=True): '''sniff_extension will attempt to determine the file type based on the extension, and return the proper mimetype :param file_path: the full path to the file to sniff :param verbose: print stuff out ''' mime_types = { "xls": 'application/vnd.ms-exc...
java
@GET @Path("/health") @Produces(MediaType.APPLICATION_JSON) public HealthStatus health() throws ExecutionException, InterruptedException { final HealthStatus status = new HealthStatus(); final Future<HealthDetails> dbStatus = healthDBService.dbStatus(); final Future<List<HealthDetai...
python
def delete_char(self, e): # (C-d) u"""Delete the character at point. If point is at the beginning of the line, there are no characters in the line, and the last character typed was not bound to delete-char, then return EOF.""" self.l_buffer.delete_char(self.argument_reset) s...
java
public PaymillList<Payment> list( Integer count, Integer offset ) { return this.list( null, null, count, offset ); }
java
public void addAlias(CmsDbContext dbc, CmsProject project, CmsAlias alias) throws CmsException { I_CmsVfsDriver vfsDriver = getVfsDriver(dbc); vfsDriver.insertAlias(dbc, project, alias); }
java
@Override public Optional<Field> indexedField(String name, Double value) { DoubleField doubleField = new DoubleField(name, value, STORE); doubleField.setBoost(boost); return Optional.of(doubleField); }
java
@Override public boolean add(S solution) { boolean solutionInserted = false ; if (solutionList.size() == 0) { solutionList.add(solution) ; solutionInserted = true ; } else { Iterator<S> iterator = solutionList.iterator(); boolean isDominated = false; boolean isContaine...
java
public static Class<?> getPrimitiveClass(final Object object) { if (object == null) { return null; } return getPrimitiveClass(object.getClass()); }
java
public static ClassFile buildClassFile(String className, Class<?>[] classes) throws IllegalArgumentException { return buildClassFile(className, classes, null, null, OBSERVER_DISABLED); }
python
def retain_identities(retention_time, es_enrichment_url, sortinghat_db, data_source, active_data_sources): """Select the unique identities not seen before `retention_time` and delete them from SortingHat. Furthermore, it deletes also the orphan unique identities, those ones stored in SortingHat but not in I...
python
def copy_from_model(cls, model_name, reference, **kwargs): """ Set-up a user-defined grid using specifications of a reference grid model. Parameters ---------- model_name : string name of the user-defined grid model. reference : string or :class:`CTMG...
java
@Check(CheckType.NORMAL) public void checkMultipleCapacityUses(SarlCapacityUses uses) { if (!isIgnored(REDUNDANT_CAPACITY_USE)) { final XtendTypeDeclaration declaringType = uses.getDeclaringType(); if (declaringType != null) { final Set<String> previousCapacityUses = doGetPreviousCapacities(uses, dec...
python
def register_actions(self, shortcut_manager): """Register callback methods for triggered actions :param rafcon.gui.shortcut_manager.ShortcutManager shortcut_manager: Shortcut Manager Object holding mappings between shortcuts and actions. """ shortcut_manager.add_callback_for...
python
def flow_tuple(data): """Tuple for flow (src, dst, sport, dport, proto)""" src = net_utils.inet_to_str(data['packet'].get('src')) if data['packet'].get('src') else None dst = net_utils.inet_to_str(data['packet'].get('dst')) if data['packet'].get('dst') else None sport = data['transport'].get('sport') if...
java
public static Date addDays(Date date, int numberOfDays) { return Date.from(date.toInstant().plus(numberOfDays, ChronoUnit.DAYS)); }
java
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { if (!httpAuth.isAllowed(req, resp)) { return; } final long start = System.currentTimeMillis(); final CollectorController collectorController = new CollectorController(collector...
java
public static CmsJspContentAccessValueWrapper createWrapper( CmsObject cms, I_CmsXmlContentValue value, I_CmsXmlDocument content, String valueName, Locale locale) { if ((value != null) && (cms != null)) { return new CmsJspContentAccessValueWrapper(cms, value)...
java
public ServiceFuture<Void> deleteAsync(String thumbprintAlgorithm, String thumbprint, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromHeaderResponse(deleteWithServiceResponseAsync(thumbprintAlgorithm, thumbprint), serviceCallback); }
java
public void marshall(CreateAliasRequest createAliasRequest, ProtocolMarshaller protocolMarshaller) { if (createAliasRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createAliasRequest.getNam...
python
def _print_results(file, status): """Print the download results. Args: file (str): The filename. status (str): The file download status. """ file_color = c.Fore.GREEN status_color = c.Fore.RED if status == 'Success': status_color = c....
python
def enableHook(self, msgObj): """ Enable yank-pop. This method is connected to the 'yank-qtmacs_text_edit' hook (triggered by the yank macro) to ensure that yank-pop only gets activated afterwards. """ self.killListIdx = len(qte_global.kill_list) - 2 self...
python
def _unscaled_dist(self, X, X2=None): """ Compute the Euclidean distance between each row of X and X2, or between each pair of rows of X if X2 is None. """ #X, = self._slice_X(X) if X2 is None: Xsq = np.sum(np.square(X),1) r2 = -2.*tdot(X) + (Xsq[:...
python
def pushover(message, token, user, title="JCVI: Job Monitor", \ priority=0, timestamp=None): """ pushover.net python API <https://pushover.net/faq#library-python> """ assert -1 <= priority <= 2, \ "Priority should be an int() between -1 and 2" if timestamp == None: ...
java
protected TerminalSize getBounds(String[] lines, TerminalSize currentBounds) { if(currentBounds == null) { currentBounds = TerminalSize.ZERO; } currentBounds = currentBounds.withRows(lines.length); if(labelWidth == null || labelWidth == 0) { int preferredWidth = 0...
python
def r_oauth_login(self): """ Route for OAuth2 Login :param next next url :type str :return: Redirects to OAuth Provider Login URL """ session['next'] = request.args.get('next','') callback_url = self.authcallback if callback_url is None: ...
java
private Map<String, Message> getMessages(Query qry, Folder folder, String[] uids, String[] messageNumbers, int startRow, int maxRow, boolean all) throws MessagingException { Message[] messages = folder.getMessages(); Map<String, Message> map = qry == null ? new HashMap<String, Message>() : null; int k = 0; if (uid...
java
public static PolymerNotation getAntiparallel(PolymerNotation polymer) throws RNAUtilsException, ChemistryException, NucleotideLoadingException { checkRNA(polymer); PolymerNotation reversePolymer; try { reversePolymer = SequenceConverter.readRNA(generateAntiparallel(polymer)).getCurrentPolymer(); r...
python
def _is_valid_relpath( relpath, maxdepth=None): ''' Performs basic sanity checks on a relative path. Requires POSIX-compatible paths (i.e. the kind obtained through cp.list_master or other such calls). Ensures that the path does not contain directory transversal, and that it do...
java
public INDArray scoreExamples(MultiDataSet dataSet, boolean addRegularizationTerms) { try{ return scoreExamplesHelper(dataSet, addRegularizationTerms); } catch (OutOfMemoryError e){ CrashReportingUtil.writeMemoryCrashDump(this, e); throw e; } }
java
public static void removeStatsGroup(StatsGroup group) throws StatsFactoryException { if (tc.isEntryEnabled()) Tr.entry(tc, new StringBuffer("removeStatsGroup:name=").append(group.getName()).toString()); StatsFactoryUtil.unRegisterStats((PmiModule) group, group.getMBean()...
python
def message_received(request, backend_name): """Handle HTTP requests from Tropo. """ logger.debug("@@ request from Tropo - raw data: %s" % request.body) try: post = json.loads(request.body) except ValueError: logger.exception("EXCEPTION decoding post data in incoming request") ...
java
public void sendMailWithAttachment (String to, String subject, String content, String filename) throws MessagingException{ Properties props = new Properties(); props.put("mail.smtp.user", emailConfg.getUser()); props.put("mail.smtp.host", emailConfg.getHost()); props.put("mail.smtp.port"...
python
def filter(self, request, queryset, view): """ Filter each resource separately using its own filter """ summary_queryset = queryset filtered_querysets = [] for queryset in summary_queryset.querysets: filter_class = self._get_filter(queryset) queryset = filter_clas...
java
public static int calculateHeapSize(int memory, org.apache.flink.configuration.Configuration conf) { float memoryCutoffRatio = conf.getFloat(ResourceManagerOptions.CONTAINERIZED_HEAP_CUTOFF_RATIO); int minCutoff = conf.getInteger(ResourceManagerOptions.CONTAINERIZED_HEAP_CUTOFF_MIN); if (memoryCutoffRatio > 1 |...
python
def extend_with(func): """Extends with class or function""" if not func.__name__ in ArgParseInator._plugins: ArgParseInator._plugins[func.__name__] = func
python
def _property_names(self): """ Gather up properties and cached_properties which may be methods that were decorated. Need to inspect class versions b/c doing getattr on them could cause unwanted side effects. """ property_names = [] for name in dir(sel...
python
def sync(self, force=None): """Synchronize between the file in the file system and the field record""" try: if force: sd = force else: sd = self.sync_dir() if sd == self.SYNC_DIR.FILE_TO_RECORD: if force and not self....
java
public static void add() { String current = System.getProperties().getProperty(HANDLER_PKGS, ""); if (current.length() > 0) { if (current.contains(PKG)) { return; } current = current + "|"; } System.getProperties().put(HANDLER_PKGS, cu...
java
public static void setUnsupported(SocketAddress remoteAddress, SessionProtocol protocol) { final String key = key(remoteAddress); final CacheEntry e = getOrCreate(key); if (e.addUnsupported(protocol)) { logger.debug("Updated: '{}' does not support {}", key, e); } }
java
@Override public <T extends BaseModel> T get(String path, Class<T> cls) throws IOException { HttpGet getMethod = new HttpGet(UrlUtils.toJsonApiUri(uri, context, path)); HttpResponse response = client.execute(getMethod, localContext); jenkinsVersion = ResponseUtils.getJenkinsVersion(response...