language
stringclasses
2 values
func_code_string
stringlengths
63
466k
python
def executemany(self, operation, seq_of_parameters): """Prepare a database operation (query or command) and then execute it against all parameter sequences or mappings found in the sequence ``seq_of_parameters``. Only the final result set is retained. Return values are not defined. ...
java
public ClassFileBuilder prepare() throws SupportException { if (mPrimaryKey == null) { throw new IllegalStateException("Primary key not defined"); } // Clear the cached result, if any mStorableClass = null; mClassFileGenerator = new StorableClassFileBuilder(...
java
public static PathMappingResult of(String path, @Nullable String query) { return of(path, query, ImmutableMap.of()); }
java
public void addCoords(Point3d[] atoms, BoundingBox bounds) { this.iAtoms = atoms; this.iAtomObjects = null; if (bounds!=null) { this.ibounds = bounds; } else { this.ibounds = new BoundingBox(iAtoms); } this.jAtoms = null; this.jAtomObjects = null; this.jbounds = null; fillGrid(); }
python
def on_print(self, node): # ('dest', 'values', 'nl') """Note: implements Python2 style print statement, not print() function. May need improvement.... """ dest = self.run(node.dest) or self.writer end = '' if node.nl: end = '\n' out = [sel...
python
def delete_database(client, db_name, username=None, password=None): """Delete Arangodb database """ (username, password) = get_user_creds(username, password) sys_db = client.db("_system", username=username, password=password) try: return sys_db.delete_database(db_name) except Excepti...
java
public int getColumnType(final int column) throws SQLException { final Class<?> clazz = this.columnClasses.get(column-1); if (clazz == null) { return -1; } // end of if // --- String cn = null; if (clazz.isPrimitive()) { ...
java
public EClass getIPS() { if (ipsEClass == null) { ipsEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(282); } return ipsEClass; }
python
def _clone_reverses(self, old_reverses): """ Clones all the objects that were previously gathered. """ for ctype, reverses in old_reverses.items(): for parts in reverses.values(): sub_objs = parts[1] field_name = parts[0] attr...
java
public boolean hasVertex(float x, float y) { if (points.length == 0) { return false; } checkPoints(); for (int i=0;i<points.length;i+=2) { if ((points[i] == x) && (points[i+1] == y)) { return true; } } return false; }
python
def insert_history_item(self, parent, history_item, description, dummy=False): """Enters a single history item into the tree store :param Gtk.TreeItem parent: Parent tree item :param HistoryItem history_item: History item to be inserted :param str description: A description to be added ...
python
def _check_for_dictionary_key(self, logical_id, dictionary, keys): """ Checks a dictionary to make sure it has a specific key. If it does not, an InvalidResourceException is thrown. :param string logical_id: logical id of this resource :param dict dictionary: the dictionary to c...
java
private static InputStream inputFor( File file) { try { return file == null ? null : new FileInputStream( file); } catch( Exception e) { throw new IllegalArgumentException( "Can't open file=" + file); } }
python
def open_xmldoc(fobj, **kwargs): """Try and open an existing LIGO_LW-format file, or create a new Document Parameters ---------- fobj : `str`, `file` file path or open file object to read **kwargs other keyword arguments to pass to :func:`~ligo.lw.utils.load_filename`, or ...
java
private void visitMemberFunctionDefInObjectLit(Node n, Node parent) { String name = n.getString(); Node nameNode = n.getFirstFirstChild(); Node stringKey = withType(IR.stringKey(name, n.getFirstChild().detach()), n.getJSType()); stringKey.setJSDocInfo(n.getJSDocInfo()); parent.replaceChild(n, string...
python
def createComment(self, repo_user, repo_name, pull_number, body, commit_id, path, position): """ POST /repos/:owner/:repo/pulls/:number/comments :param pull_number: The pull request's ID. :param body: The text of the comment. :param commit_id: The SHA of th...
java
public static <T extends Comparable<T>> RelationalOperator<T> equalTo(T value) { return new EqualToOperator<>(value); }
java
public void setOptions(String[] options) throws Exception { String tmpStr; ClassOption option; tmpStr = Utils.getOption('B', options); option = (ClassOption) m_Generator.copy(); if (tmpStr.length() == 0) option.setCurrentObject(new LEDGenerator()); else option.setCurrent...
java
@Override public CommerceAccountUserRel fetchByCommerceAccountId_First( long commerceAccountId, OrderByComparator<CommerceAccountUserRel> orderByComparator) { List<CommerceAccountUserRel> list = findByCommerceAccountId(commerceAccountId, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(...
java
protected BooleanQuery.Builder appendDateCreatedFilter(BooleanQuery.Builder filter, long startTime, long endTime) { // create special optimized sub-filter for the date last modified search Query dateFilter = createDateRangeFilter(CmsSearchField.FIELD_DATE_CREATED_LOOKUP, startTime, endTime); if...
java
public static version_matrix_status[] get(nitro_service client) throws Exception { version_matrix_status resource = new version_matrix_status(); resource.validate("get"); return (version_matrix_status[]) resource.get_resources(client); }
python
def binary2str(b, proto_id, proto_fmt_type): """ Transfer binary to string :param b: binary content to be transformed to string :return: string """ if proto_fmt_type == ProtoFMT.Json: return b.decode('utf-8') elif proto_fmt_type == ProtoFMT.Protobuf: rsp = pb_map[proto_id] ...
python
def _check_paramiko_handlers(logger=None): """ Add a console handler for paramiko.transport's logger if not present """ paramiko_logger = logging.getLogger('paramiko.transport') if not paramiko_logger.handlers: if logger: paramiko_logger.handlers = logger.handlers else: ...
python
def remove(self, member): """Remove element from set; it must be a member. :raises KeyError: if the element is not a member. """ if not self.client.srem(self.name, member): raise KeyError(member)
java
public synchronized void stopThrow() throws JMException { if (connector != null) { try { connector.stop(); } catch (IOException e) { throw createJmException("Could not stop our Jmx connector server", e); } finally { connector = null; } } if (rmiRegistry != null) { try { UnicastRemot...
java
Coordinator getCoordinator() { coordinator = new Coordinator(); try { for (String pu : clientMap.keySet()) { PersistenceUnitMetadata puMetadata = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, pu); ...
python
def MakeRequestAndDecodeJSON(self, url, method, **kwargs): """Make a HTTP request and decode the results as JSON. Args: url (str): URL to make a request to. method (str): HTTP method to used to make the request. GET and POST are supported. kwargs: parameters to the requests .get() o...
java
public int update(String sql) { String msId = msUtils.update(sql); return sqlSession.update(msId); }
python
def submit_by_selector(self, selector): """Submit the form matching the CSS selector.""" elem = find_element_by_jquery(world.browser, selector) elem.submit()
python
def Any(*validators): """ Combines all the given validator callables into one, running the given value through them in sequence until a valid result is given. """ @wraps(Any) def built(value): error = None for validator in validators: try: return valid...
python
def visitShapeOrRef(self, ctx: ShExDocParser.ShapeOrRefContext): """ shapeOrRef: shapeDefinition | shapeRef """ if ctx.shapeDefinition(): from pyshexc.parser_impl.shex_shape_definition_parser import ShexShapeDefinitionParser shdef_parser = ShexShapeDefinitionParser(self.context, ...
java
public static int findAvailableTcpPort(int minPortRange, int maxPortRange) { ArgumentUtils.check(() -> minPortRange > MIN_PORT_RANGE) .orElseFail("Port minimum value must be greater than " + MIN_PORT_RANGE); ArgumentUtils.check(() -> maxPortRange >= minPortRange) .orElseFail("Max...
python
def wait_socket(host, port, timeout=120): ''' Wait for socket opened on remote side. Return False after timeout ''' return wait_result(lambda: check_socket(host, port), True, timeout)
java
public static Object newInstance(Class target, Class[] types, Object[] args, boolean makeAccessible) throws InstantiationException, IllegalAccessException, ...
python
def from_xyz_string(xyz_string): """ Args: xyz_string: string of the form 'x, y, z', '-x, -y, z', '-2y+1/2, 3x+1/2, z-y+1/2', etc. Returns: SymmOp """ rot_matrix = np.zeros((3, 3)) trans = np.zeros(3) toks = xyz_string.strip...
java
private byte[] getKeyFromKDF(byte[] ki, String label, byte[] context, int l) throws IOException { int bytesCount = l >>> 3; ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] counter = new byte[] { (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x01 }; baos.write(counter); baos.write(label...
python
def ip_acl_ip_access_list_standard_hide_ip_acl_std_seq_action(self, **kwargs): """Auto Generated Code """ config = ET.Element("config") ip_acl = ET.SubElement(config, "ip-acl", xmlns="urn:brocade.com:mgmt:brocade-ip-access-list") ip = ET.SubElement(ip_acl, "ip") access_li...
java
@SuppressWarnings("unchecked") public static <M extends PMessage<M,F>, F extends PField, B extends PMessageBuilder<M,F>> List<B> mutateAll(Collection<M> messages) { if (messages == null) { return null; } return (List<B>) messages.stream() .map...
java
protected void deleteTypeVertex(AtlasVertex instanceVertex, DataTypes.TypeCategory typeCategory, boolean force) throws AtlasException { switch (typeCategory) { case STRUCT: case TRAIT: deleteTypeVertex(instanceVertex, force); break; case CLASS: delete...
java
public VirtualMachineCaptureResultInner beginCapture(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters) { return beginCaptureWithServiceResponseAsync(resourceGroupName, vmName, parameters).toBlocking().single().body(); }
java
public void registerControlAdapterAsMBean() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "registerControlAdapterAsMBean"); if (isRegistered() ) { // Don't register a 2nd time. } else { super.registerControlAdapterAsMBean(); } if (TraceComponent....
python
def validate(self, data): """ Validated data using defined regex. :param data: data to be validated :return: return validated data. """ e = self._error try: if self._pattern.search(data): return data else: r...
python
def _read_datasets(self, dataset_nodes, **kwargs): """Read the given datasets from file.""" # Sort requested datasets by reader reader_datasets = {} for node in dataset_nodes: ds_id = node.name # if we already have this node loaded or the node was assigned ...
python
def value(self): """ Return current value for the metric """ if self.buffer: return np.quantile(self.buffer, self.quantile) else: return 0.0
python
def _lmder1_linear_r1zcr(n, m, factor, target_fnorm1, target_fnorm2, target_params): """A rank-1 linear function with zero columns and rows (lmder test #3)""" def func(params, vec): s = 0 for j in range(1, n - 1): s += (j + 1) * params[j] for i in range(m): vec[i...
java
@Override public ICmdLineArg<E> setRequiredValue(final boolean bool) throws ParseException { if (!bool) throw new ParseException("requiredValue must be true for type: " + getClass().getName(), -1); requiredValue = bool; return this; }
java
void compileClass(Source javaSource, Source javaClass, String sourcePath, boolean isMake) throws ClassNotFoundException { try { JavaCompilerUtil compiler = JavaCompilerUtil.create(getClassLoader()); compiler.setClassDir(_classDir); compiler.setSourceDir(_sourceDir); ...
python
def from_io_control(fobj): """ Call TIOCGWINSZ (Terminal I/O Control to Get the WINdow SiZe) where ``fobj`` is a file object (e.g. ``sys.stdout``), returning the terminal width assigned to that file. See the ``ioctl``, ``ioctl_list`` and tty_ioctl`` man pages for more in...
java
@Override public EEnum getIfcRampTypeEnum() { if (ifcRampTypeEnumEEnum == null) { ifcRampTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers() .get(1047); } return ifcRampTypeEnumEEnum; }
java
public void fsync(long sequence, K key, Result<Boolean> result) { scheduleFsync(sequence, key, result); flush(); }
python
def retry(exception_cls, max_tries=10, sleep=0.05): """Decorator for retrying a function if it throws an exception. :param exception_cls: an exception type or a parenthesized tuple of exception types :param max_tries: maximum number of times this function can be executed. Must be at least 1. :param sle...
python
def by_date(self, chamber, date): "Return votes cast in a chamber on a single day" date = parse_date(date) return self.by_range(chamber, date, date)
java
public void delete(String resourceGroupName, String managedClusterName, String agentPoolName) { deleteWithServiceResponseAsync(resourceGroupName, managedClusterName, agentPoolName).toBlocking().last().body(); }
java
@Override public Predicate or(Expression<Boolean> arg0, Expression<Boolean> arg1) { // TODO Auto-generated method stub if (arg0 != null && arg1 != null) { if (arg0.getClass().isAssignableFrom(ComparisonPredicate.class) && arg1.getClass().isAssignableFrom(ComparisonPredicate.c...
java
private boolean checkForMapKey(TabularType pType) { List<String> indexNames = pType.getIndexNames(); return // Single index named "key" indexNames.size() == 1 && indexNames.contains(TD_KEY_KEY) && // Only convert to map for simple types for all others use ...
java
protected void initHtmlImportObject() { Object o; String uri = getJsp().getRequestContext().getUri(); if ((uri == null) || uri.endsWith(IMPORT_STANDARD_PATH)) { m_dialogMode = MODE_STANDARD; } else if (uri.endsWith(IMPORT_DEFAULT_PATH)) { m_dialogMode = MODE_DEFA...
java
public static CommerceAvailabilityEstimate fetchByGroupId_First( long groupId, OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) { return getPersistence().fetchByGroupId_First(groupId, orderByComparator); }
python
def nice(self, work_spec_name, nice): '''Change the priority of an existing work spec.''' with self.registry.lock(identifier=self.worker_id) as session: session.update(NICE_LEVELS, dict(work_spec_name=nice))
java
public static DefaultTableModel leftShift(DefaultTableModel self, Object row) { if (row == null) { // adds an empty row self.addRow((Object[]) null); return self; } self.addRow(buildRowData(self, row)); return self; }
java
public static <T extends Serializable> Flowable<T> read(final File file, final int bufferSize) { Callable<ObjectInputStream> resourceFactory = new Callable<ObjectInputStream>() { @Override public ObjectInputStream call() throws IOException { return new ObjectInputStream(n...
java
public static MenuItem newMenuItem(final Class<? extends Page> pageClass, final String resourceModelKey, final Component component, final PageParameters parameters) { final BookmarkablePageLink<String> bookmarkablePageLink = new BookmarkablePageLink<>( MenuPanel.LINK_ID, pageClass, parameters); final IMo...
python
def createPopulationFile(inputFiles, labels, outputFileName): """Creates a population file. :param inputFiles: the list of input files. :param labels: the list of labels (corresponding to the input files). :param outputFileName: the name of the output file. :type inputFiles: list :type labels:...
python
def findPolymorphisms(self, strSeq, strict = False): """ Compares strSeq with self.sequence. If not 'strict', this function ignores the cases of matching heterozygocity (ex: for a given position i, strSeq[i] = A and self.sequence[i] = 'A/G'). If 'strict' it returns all positions where strSeq differs self,sequence...
python
def get_functions(cls, entry): """ get `models.Function` objects from XML node entry :param entry: XML node entry :return: list of :class:`pyuniprot.manager.models.Function` objects """ comments = [] query = "./comment[@type='function']" for comment in en...
python
def __check_msg_for_headers(self, msg, ** email_headers): """ Checks an Email.Message object for the headers in email_headers. Following are acceptable header names: ['Delivered-To', 'Received', 'Return-Path', 'Received-SPF', 'Authentication-Results', 'DKIM-Signature', ...
java
public static PrimitiveParameter binarySearch( List<PrimitiveParameter> params, long timestamp) { /* * The conditions for using index versus iterator are grabbed from the * JDK source code. */ if (params.size() < 5000 || params instanceof RandomAccess) { ...
python
def single_qubit_matrix_to_phased_x_z( mat: np.ndarray, atol: float = 0 ) -> List[ops.SingleQubitGate]: """Implements a single-qubit operation with a PhasedX and Z gate. If one of the gates isn't needed, it will be omitted. Args: mat: The 2x2 unitary matrix of the operation to impl...
java
private String jsonStringOf(Policy policy) throws JsonGenerationException, IOException { generator.writeStartObject(); writeJsonKeyValue(JsonDocumentFields.VERSION, policy.getVersion()); if (isNotNull(policy.getId())) writeJsonKeyValue(JsonDocumentFields.POLICY_ID, poli...
python
def write(obj, data=None, **kwargs): """Write a value in to loader source :param obj: settings object :param data: vars to be stored :param kwargs: vars to be stored :return: """ if obj.VAULT_ENABLED_FOR_DYNACONF is False: raise RuntimeError( "Vault is not configured \n"...
java
private boolean doesReaderOwnTooManySegments(ReaderGroupState state) { Map<String, Double> sizesOfAssignemnts = state.getRelativeSizes(); Set<Segment> assignedSegments = state.getSegments(readerId); if (sizesOfAssignemnts.isEmpty() || assignedSegments == null || assignedSegments.size() <= 1) { ...
python
def _parse_phone_and_hash(self, phone, phone_hash): """ Helper method to both parse and validate phone and its hash. """ phone = utils.parse_phone(phone) or self._phone if not phone: raise ValueError( 'Please make sure to call send_code_request first.'...
python
def update_coordinates(self, points, mesh=None, render=True): """ Updates the points of the an object in the plotter. Parameters ---------- points : np.ndarray Points to replace existing points. mesh : vtk.PolyData or vtk.UnstructuredGrid, optional ...
java
public void set(Expr expr) { this.type = expr.type; this.value = expr.value; this.left = expr.left; this.right = expr.right; this.query = expr.query; }
python
def set_state_from_exit_status(self, status, notif_period, hosts, services): """Set the state in UP, WARNING, CRITICAL, UNKNOWN or UNREACHABLE according to the status of a check result. :param status: integer between 0 and 4 :type status: int :return: None """ no...
python
def _game_image_from_screen(self, game_type): """Return the image of the given game type from the screen. Return None if no game is found. """ # screen screen_img = self._screen_shot() # game image game_rect = self._game_finders[game_type].locate_in(screen_img) ...
python
def get_schema_node(self, path: SchemaPath) -> Optional[SchemaNode]: """Return the schema node addressed by a schema path. Args: path: Schema path. Returns: Schema node if found in the schema, or ``None``. Raises: InvalidSchemaPath: If the schema pa...
python
def prepare_runtime(self, runtime_dir, data): """Prepare runtime directory.""" # Copy over Python process runtime (resolwe.process). import resolwe.process as runtime_package src_dir = os.path.dirname(inspect.getsourcefile(runtime_package)) dest_package_dir = os.path.join(runtim...
python
def patch_namespaced_role_binding(self, name, namespace, body, **kwargs): # noqa: E501 """patch_namespaced_role_binding # noqa: E501 partially update the specified RoleBinding # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, ...
java
public void marshall(OverallVolume overallVolume, ProtocolMarshaller protocolMarshaller) { if (overallVolume == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(overallVolume.getVolumeStatistics(), VOL...
java
public void setMonth(Integer newMonth) { Integer oldMonth = month; month = newMonth; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.UNIVERSAL_DATE_AND_TIME_STAMP__MONTH, oldMonth, month)); }
java
public String getArgument( int index ) { if (index >= arguments.size()) return null; return arguments.get( index ); }
java
private Configuration getMimeTypeConfiguration() { return new AbstractConfiguration() { @Override public void configure(WebAppContext context) throws Exception { MimeTypes mimeTypes = context.getMimeTypes(); for (MimeMappings.Mapping mapping : getMimeMappings()) { mimeTypes.addMimeMapping(mapping....
java
public static boolean invert(ZMatrixRMaj input , ZMatrixRMaj output ) { LinearSolverDense<ZMatrixRMaj> solver = LinearSolverFactory_ZDRM.lu(input.numRows); if( solver.modifiesA() ) input = input.copy(); if( !solver.setA(input)) return false; solver.invert(ou...
java
public void marshall(DirectConnectGatewayAssociationProposal directConnectGatewayAssociationProposal, ProtocolMarshaller protocolMarshaller) { if (directConnectGatewayAssociationProposal == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { ...
java
public RedisLinkedServerWithPropertiesInner create(String resourceGroupName, String name, String linkedServerName, RedisLinkedServerCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, name, linkedServerName, parameters).toBlocking().last().body(); }
java
public short[] toShortArray() { return collectSized(ShortBuffer::new, ShortBuffer::add, ShortBuffer::addAll, ShortBuffer::new, ShortBuffer::addUnsafe).toArray(); }
python
def similarity(self, other: Trigram) -> Tuple[float, L]: """ Returns the best matching score and the associated label. """ return max( ((t % other, l) for t, l in self.trigrams), key=lambda x: x[0], )
python
def no_missing_parents(data_wrapper): '''Check that all points have existing parents Point's parent ID must exist and parent must be declared before child. Returns: CheckResult with result and list of IDs that have no parent ''' db = data_wrapper.data_block ids = np.setdiff1d(db[:, ...
java
public static <T> List<List<T>> partition(List<T> list, final int partitionSize) { List<List<T>> parts = new ArrayList<List<T>>(); final int listSize = list.size(); for (int i = 0; i < listSize; i += partitionSize) { parts.add(new ArrayList<T>(list.subList(i, Math.min(listSize, i + partitionSize)))); ...
java
@Override public void getServers( GetServersRequest request, StreamObserver<GetServersResponse> responseObserver) { ServerList servers = channelz.getServers(request.getStartServerId(), maxPageSize); GetServersResponse resp; try { resp = ChannelzProtoUtil.toGetServersResponse(servers); } c...
python
def _cytomine_parameter_name_synonyms(name, prefix="--"): """For a given parameter name, returns all the possible usual synonym (and the parameter itself). Optionally, the function can prepend a string to the found names. If a parameters has no known synonyms, the function returns only the prefixed $name. ...
python
def merge(self, other): """Merge documents from the other index. Update precomputed similarities in the process.""" other.qindex.normalize, other.qindex.num_best = False, self.topsims # update precomputed "most similar" for old documents (in case some of # the new docs make it to...
java
public int getLength() { // Tell if this is being called from within a predicate. boolean isPredicateTest = (this == m_execContext.getSubContextList()); // And get how many total predicates are part of this step. int predCount = getPredicateCount(); // If we have already calculated the le...
java
public String getString(int key) { PebbleTuple tuple = getTuple(key, PebbleTuple.TupleType.STRING); if (tuple == null) { return null; } return (String) tuple.value; }
python
def ref2names2commdct(ref2names, commdct): """embed ref2names into commdct""" for comm in commdct: for cdct in comm: try: refs = cdct['object-list'][0] validobjects = ref2names[refs] cdct.update({'validobjects':validobjects}) except...
java
public CoinbaseRecurringPayments getCoinbaseRecurringPayments(Integer page, final Integer limit) throws IOException { final CoinbaseRecurringPayments recurringPayments = coinbase.getRecurringPayments( page, limit, exchange.getExchangeSpecification().getApiKey(), ...
python
def owner(*paths, **kwargs): ''' .. versionadded:: 2014.7.0 Return the name of the package that owns the file. Multiple file paths can be passed. Like :mod:`pkg.version <salt.modules.yumpkg.version>`, if a single path is passed, a string will be returned, and if multiple paths are passed, a dic...
python
def main(): """ NAME dmag_magic.py DESCRIPTION plots intensity decay curves for demagnetization experiments SYNTAX dmag_magic -h [command line options] INPUT takes magic formatted measurements.txt files OPTIONS -h prints help message and quits -f...
java
private TimeZone parseTimezone(CharSequenceScanner scanner) { int pos = scanner.getCurrentIndex(); Integer offset = parseTimezoneOffset(scanner); // has offset? if (offset != null) { int offsetMs = offset.intValue(); String tzName = "GMT"; if (offsetMs != 0) { if (offsetMs < 0...
java
public com.google.api.ads.admanager.axis.v201902.ProposalApprovalStatus getApprovalStatus() { return approvalStatus; }