language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public void marshall(Backup backup, ProtocolMarshaller protocolMarshaller) { if (backup == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(backup.getBackupId(), BACKUPID_BINDING); protocol...
java
protected boolean hasObjectPermission(ModeledAuthenticatedUser user, String identifier, ObjectPermission.Type type) throws GuacamoleException { // Get object permissions ObjectPermissionSet permissionSet = getEffectivePermissionSet(user); // Return whether permi...
java
public static List<Polygon> splitPolygon( Polygon polygon, LineString line ) { /* * Use MCIndexNoder to node the polygon and linestring together, * Polygonizer to polygonize the noded edges, and then PointLocater * to determine which of the resultant polygons correspond to ...
java
static private Vector3f[] copyVertices(Vector3f[] vertices) { if (vertices == null) { return null; } Vector3f[] copy = new Vector3f[vertices.length]; for (int i = 0; i < vertices.length; ++i) { copy[i] = new Vector3f(vertices[i]); } return copy; ...
java
public static ObjectReader init(ObjectReader reader) { return reader.withAttribute(ATTR_STRING_CACHE, new DeserializerStringCache( new HashMap<CharBuffer, String>(2048), new LinkedHashMap<CharBuffer, String>(4096, 0.75f, true) { @Override protected boolean...
java
@SuppressWarnings("rawtypes") public static final Map getMap(Locale locale, String key) { ResourceBundle bundle = ResourceBundle.getBundle(LocaleData.class.getName(), locale); return ((Map) bundle.getObject(key)); }
java
public synchronized void registerContainer(String containerId, ImageConfiguration imageConfig, GavLabel gavLabel) { ContainerShutdownDescriptor descriptor = new ContainerShutdownDescriptor(imageConfig, containerId); ...
python
def is_valid_key(key): """Return true if a string is a valid Vorbis comment key. Valid Vorbis comment keys are printable ASCII between 0x20 (space) and 0x7D ('}'), excluding '='. Takes str/unicode in Python 2, unicode in Python 3 """ if PY3 and isinstance(key, bytes): raise TypeError(...
python
def has_service_of_type(self, service_type): """ Tests whether a service instance exists for the given service. """ summary = self.get_space_summary() for instance in summary['services']: if 'service_plan' in instance: if service_type == instan...
python
def wait(self): """ If this isn't the master process, wait for instructions. """ if self.is_master(): raise RuntimeError("Master node told to await jobs.") status = MPI.Status() while True: # Event loop. # Sit here and await instruct...
python
def GetServiceVersions(namespace): """ Get all the versions for the service with specified namespace (partially) ordered by compatibility (i.e. any version in the list that is compatible with some version v in the list will preceed v) """ def compare(a, b): if a == b: return 0 if ...
java
public static ByteBuffer convertImageData(BufferedImage bi) { DataBuffer buff = bi.getRaster().getDataBuffer(); // ClassCastException thrown if buff not instanceof DataBufferByte because raster data is not necessarily bytes. // Convert the original buffered image to grayscale. if (!(buff...
python
def word_at_position(self, position): """Get the word under the cursor returning the start and end positions.""" if position['line'] >= len(self.lines): return '' line = self.lines[position['line']] i = position['character'] # Split word in two start = line[:...
java
public Location prefix( Location other ) { if( isSameStrand( other ) ) { if( other.mStart >= mStart ) { return new Location( mStart, (other.mStart < mEnd)? other.mStart: mEnd ); } else { //other is out of bounds -- no prefix throw new IndexOutOfBoundsException( "Specified location not w...
java
public Map<String, OperationResult<String>> sendHeartBeat(Map<String, ServiceInstanceHeartbeat> heartbeatMap){ String body = _serialize(heartbeatMap); HttpResponse result = invoker.invoke("/service/heartbeat", body, HttpMethod.PUT); if (result.getHttpCode() != HTTP_OK) { ...
python
def section_by_title( self, title: str, ) -> Optional[WikipediaPageSection]: """ Returns section of the current page with given `title`. :param title: section title :return: :class:`WikipediaPageSection` """ if not self._called['extracts']: ...
python
def react_to_event(view, widget, event): """Checks whether the widget is supposed to react to passed event The function is intended for callback methods registering to shortcut actions. As several widgets can register to the same shortcut, only the one having the focus should react to it. :param gtkmv...
java
private void onSignInResult(int rstCode, SignInHuaweiId result) { HMSAgentLog.i("signIn:callback=" + StrUtils.objDesc(handler) +" retCode=" + rstCode); if (handler != null) { new Handler(Looper.getMainLooper()).post(new CallbackResultRunnable<SignInHuaweiId>(handler, rstCode, result)); ...
java
public static void copy( File fileOrDirectory, File toDir ) { File copy = new File( toDir, fileOrDirectory.getName() ); if( fileOrDirectory.isDirectory() ) { //noinspection ResultOfMethodCallIgnored copy.mkdir(); for( File child : fileOrDirectory.listFiles() ) { copy( child...
java
protected Set<QName> getProperties(HierarchicalProperty body) { HashSet<QName> properties = new HashSet<QName>(); HierarchicalProperty prop = body.getChild(new QName("DAV:", "prop")); if (prop == null) { return properties; } for (int i = 0; i < prop.getChildre...
java
public ReportTaskProgressRequest withFields(Field... fields) { if (this.fields == null) { setFields(new com.amazonaws.internal.SdkInternalList<Field>(fields.length)); } for (Field ele : fields) { this.fields.add(ele); } return this; }
java
@Override public EClass getIfcBoundaryCurve() { if (ifcBoundaryCurveEClass == null) { ifcBoundaryCurveEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(48); } return ifcBoundaryCurveEClass; }
java
public WindupConfiguration addInputPath(Path inputPath) { Set<Path> inputPaths = getOptionValue(InputPathOption.NAME); if (inputPaths == null) { inputPaths = new LinkedHashSet<>(); setOptionValue(InputPathOption.NAME, inputPaths); } inputPaths.add(inpu...
python
def _save_rest_method(self, method_name, api_name, version, method): """Store Rest api methods in a list for lookup at call time. The list is self._rest_methods, a list of tuples: [(<compiled_path>, <path_pattern>, <method_dict>), ...] where: <compiled_path> is a compiled regex to match against...
python
def ones(shape, dtype=None, **kwargs): """Create an array of given shape and type, filled with ones. Args: shape (sequence of ints): 2D shape of the array. dtype (data-type, optional): Desired data-type for the array. kwargs (optional): Other arguments of the array (*coords, attrs, and ...
python
def bismark_alignment_chart (self): """ Make the alignment plot """ # Specify the order of the different possible categories keys = OrderedDict() keys['aligned_reads'] = { 'color': '#2f7ed8', 'name': 'Aligned Uniquely' } keys['ambig_reads'] = { 'color': '#492970', 'name': ...
python
def main(): """ NAME fishrot.py DESCRIPTION generates set of Fisher distributed data from specified distribution SYNTAX fishrot.py [-h][-i][command line options] OPTIONS -h prints help message and quits -i for interactive entry -k kappa specify ka...
java
private void schedule(int offset) { if (isPending(offset)) { return; } int startOffset = Math.max(0, offset - maxPageSize / 2); int length = offset + maxPageSize / 2 - startOffset; load(startOffset, length); }
python
def from_nds2(cls, nds2channel): """Generate a new channel using an existing nds2.channel object """ # extract metadata name = nds2channel.name sample_rate = nds2channel.sample_rate unit = nds2channel.signal_units if not unit: unit = None ctype...
python
def url_for(self, *subgroups, **groups): """Build URL.""" parsed = re.sre_parse.parse(self._pattern.pattern) subgroups = {n:str(v) for n, v in enumerate(subgroups, 1)} groups_ = dict(parsed.pattern.groupdict) subgroups.update({ groups_[k0]: str(v0) for k0,...
python
def choose_uri(metadata, config): """ Choose the database URI to use. """ database_name = choose_database_name(metadata, config) driver = config.driver host, port = config.host, config.port username, password = choose_username(metadata, config), config.password return f"{driver}://{use...
java
public XPathFactory newFactory(String uri) { if (uri == null) { throw new NullPointerException("uri == null"); } XPathFactory f = _newFactory(uri); if (debug) { if (f != null) { debugPrintln("factory '" + f.getClass().getName() + "' was found for "...
java
public void marshall(ListUserPoolClientsRequest listUserPoolClientsRequest, ProtocolMarshaller protocolMarshaller) { if (listUserPoolClientsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(l...
java
@Override public void actionCommit() { List<Throwable> errors = new ArrayList<Throwable>(); try { OpenCms.getWorkplaceManager().setFileViewSettings(getCms(), m_logView); } catch (CmsRoleViolationException e) { errors.add(e); } // set the list of error...
python
def total_physical_memory(): ''' Return the total number of bytes of physical memory. CLI Example: .. code-block:: bash salt '*' ps.total_physical_memory ''' if psutil.version_info < (0, 6, 0): msg = 'virtual_memory is only available in psutil 0.6.0 or greater' raise C...
python
def setWebView( self, webView ): """ Sets the web view edit that this find widget will use to search. :param webView | <QWebView> """ if ( self._webView ): self._webView.removeAction(self._findAction) self._webView = webView ...
java
public void marshall(Thumbnails thumbnails, ProtocolMarshaller protocolMarshaller) { if (thumbnails == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(thumbnails.getFormat(), FORMAT_BINDING); ...
java
public Collection<String> getIdentifiers() { List<String> keys = new LinkedList<String>(); keys.addAll(this.stateMap.keySet()); return keys; }
java
private void writePassword(String resource, String password) throws IOException { String[] resourceParts = resource.split("\\$MD5\\$"); if (resourceParts.length == 1) { // Write in clean outputStream.write(password); } else { outputStream.write("$MD5$" + SanePasswordEncoder.derivePassword(...
python
def read_binary(self, ba, param_groups=None): """ ba - binaryDataArray XML node """ if ba is None: return [] pgr = ba.find('m:referenceableParamGroupRef', namespaces=self.ns) if pgr is not None and param_groups is not None: q = 'm:referenceablePar...
python
def print_poem(self): """Print all the verses.""" for index, verse in enumerate(self.verses): for line in verse: print(line) if index != len(self.verses) - 1: print('')
java
public ValueWithPos<PhoneNumberData> parsePhoneNumber(final ValueWithPos<String> pphoneNumber) { return this.parsePhoneNumber(pphoneNumber, new PhoneNumberData(), defaultCountryData); }
java
@Override protected void loadMorselQueueFromSource(Queue<BitIntegrityMorsel> morselQueue) { //generate set of morsels based on duplication policy try { for (String account : getAccountsList()) { String accountPath = "/" + account; log.debug("loading {}", ...
java
static MethodInvocationTree findThatCall(VisitorState state) { TreePath path = state.getPath(); /* * Each iteration walks 1 method call up the tree, but it's actually 2 steps in the tree because * there's a MethodSelectTree between each pair of MethodInvocationTrees. */ while (true) { p...
java
public CmsInheritedContainerState getInheritedContainerState(CmsObject cms, CmsResource resource, String name) { String rootPath = resource.getRootPath(); if (!resource.isFolder()) { rootPath = CmsResource.getParentFolder(rootPath); } CmsInheritedContainerState result = new ...
java
public static Iterator<String> iterator(final String clarkPath){ return new NonNullIterator<String>(){ int from = 0; @Override protected String findNext(){ if(from==clarkPath.length()) return null; int searchFrom = from; ...
java
public String getHeader() { String authPair = username + ':' + apiKey; return "Basic " + Base64.getEncoder().encodeToString(authPair.getBytes()); }
python
def _expand_users(device_users, common_users): '''Creates a longer list of accepted users on the device.''' expected_users = deepcopy(common_users) expected_users.update(device_users) return expected_users
java
public final Table getSystemTable(Session session, String name) { Table t; int tableIndex; // must come first...many methods depend on this being set properly this.session = session; if (!isSystemTable(name)) { return null; } tableIndex = getSysT...
python
def bleu_wrapper(ref_filename, hyp_filename, case_sensitive=False): """Compute BLEU for two files (reference and hypothesis translation).""" ref_lines = text_encoder.native_to_unicode( tf.gfile.Open(ref_filename, "r").read()).split("\n") hyp_lines = text_encoder.native_to_unicode( tf.gfile.Open(hyp_fi...
python
def has_file_with_suffix(self, suffixes): """Finds out if there is a file with one of suffixes in the archive. Args: suffixes: list of suffixes or single suffix to look for Returns: True if there is at least one file with at least one given suffix in the archi...
java
protected void triggerSubplotSelectEvent(PlotItem it) { // forward event to all listeners. for(ActionListener actionListener : actionListeners) { actionListener.actionPerformed(new DetailViewSelectedEvent(this, ActionEvent.ACTION_PERFORMED, null, 0, it)); } }
python
def _cdf(self, xloc, dist, cache): """Cumulative distribution function.""" return evaluation.evaluate_forward(dist, numpy.e**xloc, cache=cache)
python
def validate_analysis_period(self): """Get a collection where the header analysis_period aligns with datetimes. This means that checks for four criteria will be performed: 1) All days in the data collection are chronological starting from the analysis_period start day to the end day...
python
def split_resource_path(resource): """Split a path into segments and perform a sanity check. If it detects '..' in the path it will raise a `TemplateNotFound` error. """ pieces = [] for piece in resource.split('/'): if path.sep in piece \ or (path.altsep and path.altsep in piece)...
java
private void setSizeRatio(double size) { double width = widthHeightRatio * size; double height = size / widthHeightRatio; if (width <= size) { setSize(width, size); } else if (height <= size) { setSize(size, height); } else { setSize(size, size...
java
public static double elementMin( DMatrix6 a ) { double min = a.a1; if( a.a2 < min ) min = a.a2; if( a.a3 < min ) min = a.a3; if( a.a4 < min ) min = a.a4; if( a.a5 < min ) min = a.a5; if( a.a6 < min ) min = a.a6; return min; }
python
def join(self, timeout=None): """Wait for this Task to end. If a timeout is given, after the time expires the function will return anyway.""" if not self._started: raise RuntimeError('cannot join task before it is started') return self._exit_event.wait(timeout)
java
public ArrayList<Long> billingAccount_service_serviceName_previousVoiceConsumption_GET(String billingAccount, String serviceName, Date creationDatetime_from, Date creationDatetime_to, OvhVoiceConsumptionDestinationTypeEnum destinationType, OvhVoiceConsumptionPlanTypeEnum planType, OvhVoiceConsumptionWayTypeEnum wayType...
python
def _check_layer_count(self, layer): """Check for the validity of the layer. :param layer: QGIS layer :type layer: qgis.core.QgsVectorLayer :return: """ if layer: if not layer.isValid(): raise ImpactReport.LayerException('Layer is not valid') ...
java
private static String joinAndGetValue(List<Field> fields, String sep, List<Object> values, Object obj, boolean isWithNullValue) { return joinAndGetValueForInsert(fields, sep, null, values, obj, isWithNullValue); }
java
public java.util.List<Evaluation> getEvaluations() { if (evaluations == null) { evaluations = new com.amazonaws.internal.SdkInternalList<Evaluation>(); } return evaluations; }
java
private int scanToken(int startPos) { int position = startPos; while (position < maxPosition) { if (!hasSurrogates) { char c = str.charAt(position); if ((c <= maxDelimCodePoint) && (delimiters.indexOf(c) >= 0)) break; positi...
java
@Override public Object getDelegate() { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "em.getDelegate();\n" + toString()); return getEMInvocationInfo(false).getDelegate(); }
java
public List<Rule> getAllActiveRules() { List<Rule> rules = new ArrayList<>(); List<Rule> rulesActive = new ArrayList<>(); rules.addAll(builtinRules); rules.addAll(userRules); // Some rules have an internal state so they can do checks over sentence // boundaries. These need to be reset so the che...
python
def servicegroup_server_exists(sg_name, s_name, s_port=None, **connection_args): ''' Check if a server:port combination is a member of a servicegroup CLI Example: .. code-block:: bash salt '*' netscaler.servicegroup_server_exists 'serviceGroupName' 'serverName' 'serverPort' ''' return...
python
def _newton(self, orb, step): """Newton's Law of Universal Gravitation """ date = orb.date + step new_body = zeros(6) new_body[:3] = orb[3:] for body in self.bodies: # retrieve the position of the body at the given date orb_body = body.propagate...
python
def registerMachine(self, machineName, adminURL): """ For a server machine to participate in a site, it needs to be registered with the site. The server machine must have ArcGIS Server software installed and authorized. Registering machines this way is a "pull" approa...
python
def _get_representative_batch(merged): """Prepare dictionary matching batch items to a representative within a group. """ out = {} for mgroup in merged: mgroup = sorted(list(mgroup)) for x in mgroup: out[x] = mgroup[0] return out
python
def parse_nondisclosure_deadline(content): """\ Returns the non-disclosure deadline if provided, otherwise ``None``. Format of the returned string: ``YYYY-MM-DD``. `content` The cable's content. """ m = _DEADLINE_PATTERN.search(content) if not m: return None p1, p2 = m.g...
java
public BitapMatcher substitutionAndIndelMatcherLast(int maxNumberOfErrors, final Sequence sequence) { return substitutionAndIndelMatcherLast(maxNumberOfErrors, sequence, 0, sequence.size()); }
python
def remove_length_outliers(df, columnname): """Remove records with length-outliers above 3 standard deviations from the median.""" return df[df[columnname] < (np.median(df[columnname]) + 3 * np.std(df[columnname]))]
java
public static String lower(EvaluationContext ctx, Object text) { return Conversions.toString(text, ctx).toLowerCase(); }
java
public void returnClient(CloseableHttpResponse resp) { try { if (resp != null) { EntityUtils.consume(resp.getEntity()); } } catch (IOException ex) { //TODO: Could not consume response completely. This is serious because the client will not be returned...
python
def get_subscriptions_channel(self, search_channel): """ Return all the nodes that are subscribed to the specified channel """ data = self.get_clients() clients = [] for client in data: if 'subscriptions' in client: if isinstance(client['subscr...
python
def get_config_env_key(k: str) -> str: """ Returns a scrubbed environment variable key, PULUMI_CONFIG_<k>, that can be used for setting explicit varaibles. This is unlike PULUMI_CONFIG which is just a JSON-serialized bag. """ env_key = '' for c in k: if c == '_' or 'A' <= c <= 'Z' or '0...
python
def metric(self, name, filter_=None, description=""): """Creates a metric bound to the current client. :type name: str :param name: the name of the metric to be constructed. :type filter_: str :param filter_: the advanced logs filter expression defining the ...
python
def _indent_change(change, out, options, indent): """ recursive function to print indented change descriptions """ show_unchanged = getattr(options, "show_unchanged", False) show_ignored = getattr(options, "show_ignored", False) show = False desc = change.get_description() if change.i...
python
def _link_bam_file(in_file, new_dir, data): """Provide symlinks of BAM file and existing indexes if needed. """ new_dir = utils.safe_makedir(new_dir) out_file = os.path.join(new_dir, os.path.basename(in_file)) if not utils.file_exists(out_file): out_file = os.path.join(new_dir, "%s-prealign....
java
private static void reverse(final byte[] arr, final int len) { for (int l = 0, r = 0 + len - 1; l < r; l++, r--) { final byte tmp = arr[l]; arr[l] = arr[r]; arr[r] = tmp; } }
python
def _clean_page_automatic_slug_renaming(self, slug, is_slug_safe): """Helper to add numbers to slugs""" if not callable(is_slug_safe): raise TypeError('is_slug_safe must be callable') if is_slug_safe(slug): return slug count = 2 new_slug = slug + "-" + ...
python
def show(self): """ Print some information on stdout about the string table """ print("StringBlock(stringsCount=0x%x, " "stringsOffset=0x%x, " "stylesCount=0x%x, " "stylesOffset=0x%x, " "flags=0x%x" ")" % (self.stringC...
java
public void selectResource(String resourcePath, CmsUUID structureId, String title, String resourceType) { String provider = getProviderName(resourceType); if (provider == null) { // use {@link org.opencms.ade.galleries.client.preview.CmsBinaryPreviewProvider} as default to select a resource...
python
def concat(self, arrs:Collection[Tensor])->Tensor: "Concatenate the `arrs` along the batch dimension." return [torch.cat([l[si] for l in arrs], dim=1) for si in range_of(arrs[0])]
python
def sort_response(response: Dict[str, Any]) -> OrderedDict: """ Sort the keys in a JSON-RPC response object. This has no effect other than making it nicer to read. Useful in Python 3.5 only, dictionaries are already sorted in newer Python versions. Example:: >>> json.dumps(sort_response({...
java
public static boolean isContiguousInBuffer(INDArray in) { long length = in.length(); long dLength = in.data().length(); if (length == dLength) return true; //full buffer, always contiguous char order = in.ordering(); long[] shape = in.shape(); long[] strides...
java
public static void deleteContentsRecursive(@Nonnull File file) throws IOException { deleteContentsRecursive(fileToPath(file), PathRemover.PathChecker.ALLOW_ALL); }
python
def _validate(self, key, cls=None): """Verify the manifest schema.""" if key not in self.manifest: raise ValueError("Manifest %s requires '%s'." % (self.manifest_path, key)) if cls: if not isinstance(self.manifest[key], cls): r...
java
protected Object getCompareValue() { // Date Compare (Use Date Formatted String - YYYY-MM-DD) if (trigger instanceof WDateField) { return value == null ? null : new SimpleDateFormat(INTERNAL_DATE_FORMAT).format(value); } else if (trigger instanceof WNumberField) { // Number Compare (Use Number Object) retur...
java
protected static String getTimePrecisionString(byte precision) { switch (precision) { case TimeValue.PREC_SECOND: return "sec"; case TimeValue.PREC_MINUTE: return "min"; case TimeValue.PREC_HOUR: return "hour"; case TimeValue.PREC_DAY: return "day"; case TimeValue.PREC_MONTH: return "month"; ...
java
public static Expression constantNull(Type type) { checkArgument( type.getSort() == Type.OBJECT || type.getSort() == Type.ARRAY, "%s is not a reference type", type); return new Expression(type, Feature.CHEAP) { @Override protected void doGen(CodeBuilder mv) { mv.visit...
python
def map_address(library, session, map_space, map_base, map_size, access=False, suggested=None): """Maps the specified memory space into the process's address space. Corresponds to viMapAddress function of the VISA library. :param library: the visa library wrapped by ctypes. :param sess...
java
@Override public Set<StringTextValue<?>> asSet() { final Set<StringTextValue<?>> allSettings = new HashSet<>(); allSettings.add(getCloseButton()); allSettings.add(getDebug()); allSettings.add(getExtendedTimeOut()); allSettings.add(getHideDuration()); allSettings.add(getHideEasing()); allSetting...
java
public void getStreamInfo(String streamId, final KickflipCallback cb) { GenericData data = new GenericData(); data.put("stream_id", streamId); post(GET_META, new UrlEncodedContent(data), Stream.class, cb); }
java
public void getHeaderBuffers(String name, ArrayList<CharSegment> resultList) { String value = header(name); if (value != null) resultList.add(new CharBuffer(value)); }
python
def maf_somatic_variant_stats(variant, variant_metadata): """ Parse out the variant calling statistics for a given variant from a MAF file Assumes the MAF format described here: https://www.biostars.org/p/161298/#161777 Parameters ---------- variant : varcode.Variant variant_metadata : dic...
java
public Stream newStream(String txId, IRichSpout spout) { return newStream(txId, new RichSpoutBatchExecutor(spout)); }
python
def ssn(self): """ Returns an Israeli identity number, known as Teudat Zehut ("tz"). https://en.wikipedia.org/wiki/Israeli_identity_card """ newID = str(self.generator.random.randrange(111111, 99999999)) newID = newID.zfill(8) theSum = 0 indexRange = [0,...
python
def which_with_envpath(executable: str, env: Dict[str, str]) -> str: """ Performs a :func:`shutil.which` command using the PATH from the specified environment. Reason: when you use ``run([executable, ...], env)`` and therefore ``subprocess.run([executable, ...], env=env)``, the PATH that's searched...
java
protected List<String> getDropTablesSQL() { List<String> sqlStatements = new ArrayList<>(); sqlStatements.add(DROP_SETTINGS_TABLE); sqlStatements.add(DROP_HEADERS_TABLE); sqlStatements.add(DROP_UNDOABLE_TABLE); sqlStatements.add(DROP_OPEN_OUTPUT_TABLE); return sqlStatemen...