language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def main(self): """ Load in the template file, and run through the parser :return none: """ logger_lpd_noaa.info("enter main") # Starting Directory: dir_tmp/dir_bag/data/ # convert all lipd keys to noaa keys # timestamp the conversion of the file ...
python
def getAsKmlGridAnimation(self, tableName, timeStampedRasters=[], rasterIdFieldName='id', rasterFieldName='raster', documentName='default', alpha=1.0, noDataValue=0, discreet=False): """ Return a sequence of rasters with timestamps as a kml with time markers for animation....
python
def create_dialog(self): """ Create the dialog.""" box0 = QGroupBox('Info') self.name = FormStr() self.name.setText('sw') self.idx_group.activated.connect(self.update_channels) form = QFormLayout(box0) form.addRow('Event name', self.n...
python
def setup_package(): """Setup procedure.""" import json from setuptools import setup, find_packages filename_setup_json = 'setup.json' filename_description = 'README.md' with open(filename_setup_json, 'r') as handle: setup_json = json.load(handle) with open(filename_description, '...
python
def destroy(self, stream=False): """ Run a 'terraform destroy' :param stream: whether or not to stream TF output in realtime :type stream: bool """ self._setup_tf(stream=stream) args = ['-refresh=true', '-force', '.'] logger.warning('Running terraform des...
java
public void checkPermissions(String... permissions) throws AuthorizationException { if (!isPermittedAll(permissions)) { throw new AuthorizationException("'{}' does not have the permissions {}", toString(), Arrays.toString(permissions)); } }
java
protected void renderLayers (Graphics2D g, Component pcomp, Rectangle bounds, boolean[] clipped, Rectangle dirty) { JLayeredPane lpane = JLayeredPane.getLayeredPaneAbove(pcomp); if (lpane != null) { renderLayer(g, bounds, lpane, clipped, JLayeredPane.PALETTE_LAYER); r...
python
def patch_stdout_context(self, raw=False, patch_stdout=True, patch_stderr=True): """ Return a context manager that will replace ``sys.stdout`` with a proxy that makes sure that all printed text will appear above the prompt, and that it doesn't destroy the output from the renderer. ...
java
@Override public double getCopyProcessingRate(long currentTime) { @SuppressWarnings("deprecation") long bytesCopied = super.getCounters().findCounter (Task.Counter.REDUCE_SHUFFLE_BYTES).getCounter(); long timeSpentCopying = 0; long startTime = getStartTime(); if(getPhase() == Phase.SHUFFLE...
java
protected I_CmsSearchConfigurationSortOption parseSortOption(JSONObject json) { try { String solrValue = json.getString(JSON_KEY_SORTOPTION_SOLRVALUE); String paramValue = parseOptionalStringValue(json, JSON_KEY_SORTOPTION_PARAMVALUE); paramValue = (paramValue == null) ? sol...
python
def get_response(self, deflate=True): """ Returns the Logout Response defated, base64encoded :param deflate: It makes the deflate process optional :type: bool :return: Logout Response maybe deflated and base64 encoded :rtype: string """ if deflate: ...
java
@EventThread public void endSession () { _clmgr.clientSessionWillEnd(this); // queue up a request for our connection to be closed (if we have a connection, that is) Connection conn = getConnection(); if (conn != null) { // go ahead and clear out our connection now to...
java
public T get( int index ) { if( index >= size ) throw new IllegalArgumentException("Index out of bounds: index "+index+" size "+size); return data[index]; }
java
public Observable<ExpressRouteCircuitAuthorizationInner> beginCreateOrUpdateAsync(String resourceGroupName, String circuitName, String authorizationName, ExpressRouteCircuitAuthorizationInner authorizationParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, circuitName, authorizat...
java
public EClass getIfcRelConnectsPorts() { if (ifcRelConnectsPortsEClass == null) { ifcRelConnectsPortsEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(460); } return ifcRelConnectsPortsEClass; }
python
def version(syslog_ng_sbin_dir=None): ''' Returns the version of the installed syslog-ng. If syslog_ng_sbin_dir is specified, it is added to the PATH during the execution of the command syslog-ng. CLI Example: .. code-block:: bash salt '*' syslog_ng.version salt '*' syslog_ng....
python
def _record_hyper_configs(self, hyper_configs): """after generating one round of hyperconfigs, this function records the generated hyperconfigs, creates a dict to record the performance when those hyperconifgs are running, set the number of finished configs in this round to be 0, and increase th...
java
public String linkRel() { if (this.linkRel!=null) return this.linkRel; if (node.hasAttribute("rel")) return node.getAttribute("rel"); //else return node.getName(); }
java
@Override @Transactional public void addContentItem(Snapshot snapshot, String contentId, Map<String, String> props) throws SnapshotException { String contentIdHash = createChecksumGenerator().generateChecksum(contentId); try ...
python
def to_dict(self, nested=False): """Return dict object with model's data. :param nested: flag to return nested relationships' data if true :type: bool :return: dict """ result = dict() for key in self.columns: result[key] = getattr(self, key) ...
java
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (AbstractDataSource.this.options.databaseLifecycleHandler != null) { AbstractDataSource.this.options.databaseLifecycleHandler.onUpdate(db, oldVersion, newVersion, true); versionChanged = true; } }
python
def angsep(lon1, lat1, lon2, lat2): """ Angular separation (deg) between two sky coordinates. Borrowed from astropy (www.astropy.org) Notes ----- The angular separation is calculated using the Vincenty formula [1], which is slighly more complex and computationally expensive than some alt...
java
public void removeHoursFromDay(ProjectCalendarHours hours) { if (hours.getParentCalendar() != this) { throw new IllegalArgumentException(); } m_hours[hours.getDay().getValue() - 1] = null; }
java
private Set<JType> findReflectedClasses(final GeneratorContext context, final TypeOracle typeOracle, final TreeLogger logger) throws UnableToCompleteException { final Set<JType> types = new HashSet<JType>(); final JPackage[] packages = typeOracle.getPackages(); // gather all ty...
python
def add_block(self): """ adds a random size block to the map """ row_max = self.grd.get_grid_height() - 15 if row_max < 2: row_max = 2 row = randint(0, row_max) col_max = self.grd.get_grid_width() - 10 if col_max < 2: col_max = 2 c...
java
public static boolean isUnicodeIdentifierStart(int ch) { /*int cat = getType(ch);*/ // if props == 0, it will just fall through and return false return ((1 << getType(ch)) & ((1 << UCharacterCategory.UPPERCASE_LETTER) | (1 << UCharacterCategory.LOWERCA...
python
def get_interface_addresses(): """ Get addresses of available network interfaces. See netifaces on pypi for details. Returns a list of dicts """ addresses = [] ifaces = netifaces.interfaces() for iface in ifaces: addrs = netifaces.ifaddresses(iface) families = addrs.key...
python
def startInventory(self, proto=None, force_regen_rospec=False): """Add a ROSpec to the reader and enable it.""" if self.state == LLRPClient.STATE_INVENTORYING: logger.warn('ignoring startInventory() while already inventorying') return None rospec = self.getROSpec(force_n...
java
public static String binToHex(byte[] bin) { StringBuffer hex = new StringBuffer(); binToHex(bin,0,bin.length,hex); return hex.toString(); }
java
public static String[] toStrings(final Object... aVarargs) { final String[] strings = new String[aVarargs.length]; for (int index = 0; index < strings.length; index++) { strings[index] = aVarargs[index].toString(); } return strings; }
python
def _lookup_by_mapping(): """Return a the init system based on a constant mapping of distribution+version to init system.. See constants.py for the mapping. A failover of the version is proposed for when no version is supplied. For instance, Arch Linux's version will most probab...
java
public DeviceEnvelope updateDevice(String deviceId, Device device) throws ApiException { ApiResponse<DeviceEnvelope> resp = updateDeviceWithHttpInfo(deviceId, device); return resp.getData(); }
python
def _build_xpath_expr(attrs): """Build an xpath expression to simulate bs4's ability to pass in kwargs to search for attributes when using the lxml parser. Parameters ---------- attrs : dict A dict of HTML attributes. These are NOT checked for validity. Returns ------- expr : u...
java
protected final Pair<?, ?> entry(Object key, Object value) { return Pair.of(key, value); }
python
def follow_log(self): """Reads a logfile continuously and updates internal graph if new step is found""" # Server needs to be up and running before starting sending POST requests time.sleep(5) try: if self.remote: logger.debug('Logfile in remote host!') ...
java
@Override @Transactional public Namespace findNamespaceByPrimaryKey(BigInteger id) { requireNotDisposed(); requireArgument(id != null && id.compareTo(ZERO) > 0, "ID must be a positive non-zero value."); Namespace result = findEntity(emf.get(), id, Namespace.class); _logger.debu...
python
def eeg_complexity(eeg, sampling_rate, times=None, index=None, include="all", exclude=None, hemisphere="both", central=True, verbose=True, shannon=True, sampen=True, multiscale=True, spectral=True, svd=True, correlation=True, higushi=True, petrosian=True, fisher=True, hurst=True, dfa=True, lyap_r=False, lyap_e=False, n...
java
private void closeConfig(Config config) { if (config instanceof WebSphereConfig) { try { ((WebSphereConfig) config).close(); } catch (IOException e) { throw new ConfigException(Tr.formatMessage(tc, "could.not.close.CWMCG0004E", e)); } }...
java
public void remove(SchemaObject object, Right right) { if (right.isFull) { clear(); return; } if (isFull) { isFull = false; isFullSelect = isFullInsert = isFullUpdate = isFullReferences = isFullDelete = true; } i...
python
def _handleInvertAxesSelected(self, evt): """Called when the invert all menu item is selected""" if len(self._axisId) == 0: return for i in range(len(self._axisId)): if self._menu.IsChecked(self._axisId[i]): self._menu.Check(self._axisId[i], False) else: ...
java
private void runEDBPostHooks(EDBCommit commit) { for (EDBPostCommitHook hook : postCommitHooks) { try { hook.onPostCommit(commit); } catch (ServiceUnavailableException e) { // Ignore } catch (Exception e) { logger.error("Error w...
java
@Override public GetUsagePlanKeysResult getUsagePlanKeys(GetUsagePlanKeysRequest request) { request = beforeClientExecution(request); return executeGetUsagePlanKeys(request); }
python
def library_path(): ''' library_path() yields the path of the neuropythy library. ''' return os.path.abspath(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib'))
python
def _process_file_continue_ftp_response(self, response: FTPResponse): '''Process a restarted content response.''' if response.request.restart_value and response.restart_value: self.open_file(self._filename, response, mode='ab+') else: self._raise_cannot_continue_error()
python
def hash_stream(fileobj, hasher=None, blocksize=65536): """Read from fileobj stream, return hash of its contents. Args: fileobj: File-like object with read() hasher: Hash object such as hashlib.sha1(). Defaults to sha1. blocksize: Read from fileobj this many bytes at a time. """ hashe...
java
public boolean contains( VersionID m ) { for ( Object _versionId : _versionIds ) { VersionID vi = (VersionID) _versionId; boolean check = vi.match( m ); if ( check ) { return true; } } return false; }
java
public CexIOOrder placeCexIOMarketOrder(MarketOrder marketOrder) throws IOException { CexIOOrder order = cexIOAuthenticated.placeOrder( signatureCreator, marketOrder.getCurrencyPair().base.getCurrencyCode(), marketOrder.getCurrencyPair().counter.getCurrencyCode(), ...
python
def ekopn(fname, ifname, ncomch): """ Open a new E-kernel file and prepare the file for writing. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/ekopn_c.html :param fname: Name of EK file. :type fname: str :param ifname: Internal file name. :type ifname: str :param ncomch: The ...
java
public static void process(GrayU8 input, GrayU8 output , int radius, @Nullable IWorkArrays work ) { if( work == null ) work = new IWorkArrays(); work.reset(256); final IWorkArrays _work = work; int w = 2*radius+1; // sanity check to make sure the image isn't too small to be processed by this algorithm ...
python
def dict2obj(d): """Convert a dict to an object or namespace >>> d = {'a': 1, 'b': {'c': 2}, 'd': ["hi", {'foo': "bar"}]} >>> obj = dict2obj(d) >>> obj.b.c 2 >>> obj.d ['hi', {'foo': 'bar'}] >>> d = {'a': 1, 'b': {'c': 2}, 'd': [("hi", {'foo': "bar"})]} >>> obj = dict2obj(d) >>...
java
@Override public JvmDeclaredType createType(BinaryClass binaryClass) { if (useASM) { try { createTypeTask.start(); return doCreateType(binaryClass); } catch (Exception e) { throw new RuntimeException(e); } finally { createTypeTask.stop(); } } else { try { ReflectURIHelper uriHelp...
python
def singleChoiceParam(parameters, name, type_converter = str): """ single choice parameter value. Returns -1 if no value was chosen. :param parameters: the parameters tree. :param name: the name of the parameter. :param type_converter: function to convert the chosen value to a different type (e.g. str, ...
python
def sum_abs_distance(labels, preds): """ Compute the sum of abs distances. :param labels: A float tensor of shape [batch_size, ..., X] representing the labels. :param preds: A float tensor of shape [batch_size, ..., X] representing the predictions. :return: A float tensor of shape [batch_size, ...]...
java
@BetaApi public final Operation deleteNodeGroup(ProjectZoneNodeGroupName nodeGroup) { DeleteNodeGroupHttpRequest request = DeleteNodeGroupHttpRequest.newBuilder() .setNodeGroup(nodeGroup == null ? null : nodeGroup.toString()) .build(); return deleteNodeGroup(request); }
python
def imap_tr(imap, *args, **kwargs): ''' imap_tr(m, ...) yields a copy of the immutable map m in which the keywords have been translated according to the given arguments. Arguments may be any number of dictionaries followed by any number of keyword arguments, all of which are merged left-to-right the...
python
def generate(self, output_dir, work, matches_filename): """Generates HTML reports showing the text of each witness to `work` with its matches in `matches` highlighted. :param output_dir: directory to write report to :type output_dir: `str` :param work: name of work to highlight ...
python
def Parse(self, statentry, file_object, knowledge_base): """Parse the Plist file.""" _ = knowledge_base kwargs = {} try: kwargs["aff4path"] = file_object.urn except AttributeError: pass direct_copy_items = [ "Label", "Disabled", "UserName", "GroupName", "Program", "S...
java
@BetaApi public final Operation startWithEncryptionKeyInstance( String instance, InstancesStartWithEncryptionKeyRequest instancesStartWithEncryptionKeyRequestResource) { StartWithEncryptionKeyInstanceHttpRequest request = StartWithEncryptionKeyInstanceHttpRequest.newBuilder() .set...
java
public static void main(String[] args) { try { final CrawlToFile crawl = new CrawlToFile(args); crawl.crawl(); } catch (ParseException e) { System.err.print(e.getMessage()); } catch (IllegalArgumentException e) { System.err.println(e.getMessage()); } }
java
public static int hash32(final String text) { final byte[] bytes = text.getBytes(); return hash32(bytes, bytes.length); }
python
def number_of_extents(self): """int: number of extents.""" if not self._is_parsed: self._Parse() self._is_parsed = True return len(self._extents)
python
def preparedir(target_dir, remove_content=True): """Prepare a folder for analysis. This method creates the folder if it is not created, and removes the file in the folder if the folder already existed. """ if os.path.isdir(target_dir): if remove_content: nukedir(target_dir, Fals...
python
def victims(self, filters=None, params=None): """ Gets all victims from a tag. """ victim = self._tcex.ti.victim(None) for v in self.tc_requests.victims_from_tag( victim, self.name, filters=filters, params=params ): yield v
python
def cmd_create(self, name, auto=False): """Create a new migration.""" LOGGER.setLevel('INFO') LOGGER.propagate = 0 router = Router(self.database, migrate_dir=self.app.config['PEEWEE_MIGRATE_DIR'], migrate_table=self.app.config['PEEWEE_MIG...
java
private JsonNode parseProcessOutput(String processOutput) { JsonNode credentialsJson = Jackson.jsonNodeOf(processOutput); if (!credentialsJson.isObject()) { throw new IllegalStateException("Process did not return a JSON object."); } JsonNode version = credentialsJson.get("V...
python
def on_channel_open(self, channel): """Called by pika when the channel has been opened. The channel object is passed in so we can make use of it. Since the channel is now open, we'll start consuming. :param pika.channel.Channel channel: The channel object """ logger.deb...
java
public Matrix calcOrig() { if (!Coordinates.equals(getSource().getSize(), getSize())) { throw new RuntimeException( "Cannot change Matrix size. Use calc(Ret.NEW) or calc(Ret.LINK) instead."); } long[] newCoordinates = new long[position.length]; for (long[] c : newContent.allCoordinates()) { Co...
java
public static String getTypeName(Type type) { if(type instanceof Class) { Class<?> clazz = (Class<?>) type; return clazz.isArray() ? (getTypeName(clazz.getComponentType()) + "[]") : clazz.getName(); } else { return type.toString(); } }
java
public List<Versioned<V>> getWithCustomTimeout(CompositeVoldemortRequest<K, V> requestWrapper) { validateTimeout(requestWrapper.getRoutingTimeoutInMs()); for(int attempts = 0; attempts < this.metadataRefreshAttempts; attempts++) { try { long startTimeInMs = System.currentTime...
python
def longest_bar_prefix_value(self): """ Calculates the longest progress bar prefix in order to keep all progress bars left-aligned. :return: Length of the longest task prefix in character unit. """ longest = 0 for key, t in self.tasks.items(): size = len(t.pre...
java
public boolean isExcluded(NodeData state) { for (ExcludingRule rule : excludingRules) { if (rule.suiteFor(state)) { return true; } } return false; }
java
@NonNull public static <T> Data<T> fromCursor(@NonNull Callable<Cursor> loader, @NonNull RowMapper<T> rowMapper) { return fromCursor(loader, rowMapper, DataExecutors.defaultExecutor()); }
java
public static boolean bindPort(Session session, String remoteHost, int remotePort, int localPort) throws JschRuntimeException { if (session != null && session.isConnected()) { try { session.setPortForwardingL(localPort, remoteHost, remotePort); } catch (JSchException e) { throw new JschRuntimeExcep...
python
def add_stream_logger(level=logging.DEBUG, name=None): """ Add a stream logger. This can be used for printing all SDK calls to stdout while working in an interactive session. Note this is a logger for the entire module, which will apply to all environments started in the same session. If you need a ...
java
@Override public WildFiles convert(final String valueStr, final boolean _caseSensitive, final Object target) throws ParseException { wildFile.add(valueStr); return wildFile; }
python
def load_clients_file(filename, configuration_class=ClientConfiguration): """ Loads client configurations from a YAML file. :param filename: YAML file name. :type filename: unicode | str :param configuration_class: Class of the configuration object to create. :type configuration_class: class ...
java
public TrxMessageHeader createReplyHeader() { Map<String,Object> mapInHeader = this.getMessageHeaderMap(); Map<String,Object> mapInInfo = this.getMessageInfoMap(); Map<String,Object> mapReplyHeader = new HashMap<String,Object>(); Map<String,Object> mapReplyInfo = new HashMap<String,O...
python
def start(self): """ Start the patch """ self._patcher = mock.patch(target=self.target) MockClient = self._patcher.start() instance = MockClient.return_value instance.model.side_effect = mock.Mock( side_effect=self.model )
python
def get_bool(self, name, default=None): """Retrieves an environment variable value as ``bool``. Integer values are converted as expected: zero evaluates to ``False``, and non-zero to ``True``. String values of ``'true'`` and ``'false'`` are evaluated case insensitive. Args: ...
python
def _get_apphook_field_names(model): """ Return all foreign key field names for a AppHookConfig based model """ from .models import AppHookConfig # avoid circular dependencies fields = [] for field in model._meta.fields: if isinstance(field, ForeignKey) and issubclass(field.remote_field...
java
public ServiceFuture<LabInner> updateAsync(String resourceGroupName, String labAccountName, String labName, LabFragment lab, final ServiceCallback<LabInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, labAccountName, labName, lab), serviceCallback); ...
python
def get_console_output(self, instance_id): """ Retrieves the console output for the specified instance. :type instance_id: string :param instance_id: The instance ID of a running instance on the cloud. :rtype: :class:`boto.ec2.instance.ConsoleOutput` :return: The consol...
java
private void doValidationCompaction(ColumnFamilyStore cfs, Validator validator) throws IOException { // this isn't meant to be race-proof, because it's not -- it won't cause bugs for a CFS to be dropped // mid-validation, or to attempt to validate a droped CFS. this is just a best effort to avoid u...
python
def register_graphql_handlers( app: "Application", engine_sdl: str = None, engine_schema_name: str = "default", executor_context: dict = None, executor_http_endpoint: str = "/graphql", executor_http_methods: List[str] = None, engine: Engine = None, subscription_ws_endpoint: Optional[str]...
python
def from_aid(cls, aid): """Retrieve the Assay record for the specified AID. :param int aid: The PubChem Assay Identifier (AID). """ record = json.loads(request(aid, 'aid', 'assay', 'description').read().decode())['PC_AssayContainer'][0] return cls(record)
python
def conf_int(self, alpha=0.05, coefs=None, return_df=False): """ Creates the dataframe or array of lower and upper bounds for the (1-alpha)% confidence interval of the estimated parameters. Used when creating the statsmodels summary. Parameters ---------- alpha :...
java
private boolean judgeCaptionLocation(ArrayList<TextPiece> linesOfAPage, TableCandidate tc, Vector distinctY, ArrayList<TextPiece> wordsOfAPage) { /* * by default, the caption position is above the table data area */ boolean aboveCaption = true; Config config = new Config(); float captionY = li...
java
private void setIndicesAndTypes() { DeleteByQueryRequest innerRequest = request.request(); innerRequest.indices(query.getIndexArr()); String[] typeArr = query.getTypeArr(); if (typeArr!=null){ innerRequest.getSearchRequest().types(typeArr); } // String[] typeArr = q...
python
def _get_framed(self, buf, offset, insert_payload): """Returns the framed message and updates the CRC. """ header_offset = offset + self._header_len self.length = insert_payload(buf, header_offset, self.payload) struct.pack_into(self._header_fmt, buf, offse...
python
def remote_run(cmd, instance_name, detach=False, retries=1): """Run command on GCS instance, optionally detached.""" if detach: cmd = SCREEN.format(command=cmd) args = SSH.format(instance_name=instance_name).split() args.append(cmd) for i in range(retries + 1): try: if i > 0: tf.logging....
java
@Override @Description("Gets all of the service references for the specified resource type") public TabularData getReferences(@Name("ResourceType") String resourceType) throws OpenDataException { List<ServiceReference> references = ((ComponentBindingsProviderFactoryImpl) componentBindingsProviderFactory) .ge...
python
def get_msms_annotations(self, representative_only=True, force_rerun=False): """Run MSMS on structures and store calculations. Annotations are stored in the protein structure's chain sequence at: ``<chain_prop>.seq_record.letter_annotations['*-msms']`` Args: representative_...
python
def log_estimator_evaluation_result(self, eval_results): """Log the evaluation result for a estimator. The evaluate result is a directory that contains metrics defined in model_fn. It also contains a entry for global_step which contains the value of the global step when evaluation was performed. A...
java
public synchronized Collection<Progress> getProgresses() { List<Progress> list = new ArrayList<>(progresses.size()); Iterator<WeakReference<Progress>> iter = progresses.iterator(); while(iter.hasNext()) { WeakReference<Progress> ref = iter.next(); if(ref.get() == null) { iter.remove(); ...
python
def _prompt_wrapper(message, default=None, validator=None): """ Handle references piped from file """ class MockDocument: def __init__(self, text): self.text = text if HAS_INPUT: ret = prompt(message, default=default, validator=validator) else: ret = sys.stdin....
python
def pop(self, key, default=None): """Remove specified key and return the corresponding value. If key is not found, default is returned if given, otherwise KeyError is raised. """ if key not in self: if default is not None: return default ...
java
public void addSubFileFilter() { // Override this if it is not correct. SubFileFilter listener = null; this.getMainRecord().addListener(listener = new SubFileFilter(this.getHeaderRecord())); if (!this.getMainRecord().getKeyArea().getField(DBConstants.MAIN_KEY_FIELD).isNullable()) ...
python
def exists(self, value=None): """ Return True if the given pk value exists for the given class. If no value is given, we use the value of the current field, which is the value of the "_pk" attribute of its instance. """ try: if not value: value...
java
public String packageStatement( PackageDescrBuilder pkg ) throws RecognitionException { String pkgName = null; try { helper.start( pkg, PackageDescrBuilder.class, null ); match( input, DRL5Lexer.ID, ...
java
public ListInstancesResponse listInstances(String clusterId, String instanceGroupId) { return listInstances(new ListInstancesRequest().withClusterId(clusterId).withInstanceGroupId(instanceGroupId)); }