language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public boolean removeObserver(BusObserver<M> observer) { logger.trace("removing observer {}", observer.getClass().getSimpleName()); return observers.remove(observer); }
java
public static OwncloudFileResource toOwncloudFileResource(OwncloudResource owncloudResource) throws OwncloudNoFileResourceException { if (owncloudResource == null) { return null; } if (isDirectory(owncloudResource) || !ClassUtils.isAssignable(owncloudResource.getClass(), OwncloudFileResource.class)) {...
java
final static void init() { StopWatch stopWatch = new StopWatch(); stopWatch.start("Audit4jInit"); if (configContext == null) { configContext = new ConcurrentConfigurationContext(); } if (lifeCycle.getStatus().equals(RunStatus.READY) || lifeCycle.getStatus().equals(RunStatus.STOPPED)) { Audit4jBanner ba...
java
public SanitizedContent knownDirAttrSanitized(Dir dir) { Preconditions.checkNotNull(dir); if (dir != contextDir) { switch (dir) { case LTR: return LTR_DIR; case RTL: return RTL_DIR; case NEUTRAL: // fall out. } } return NEUTRAL_DIR; }
python
def train(self, data, vars, idx): """ Train the scales on the data. The scales should be for the same aesthetic e.g. x scales, y scales, color scales, ... Parameters ---------- data : dataframe data to use for training vars : list | tuple ...
python
def plot(x, y, rows=None, columns=None): """ x, y list of values on x- and y-axis plot those values within canvas size (rows and columns) """ if not rows or not columns: rows, columns = get_terminal_size() # offset for caption rows -= 4 # Scale points such that they fit on canva...
python
def fit_creatine(self, reject_outliers=3.0, fit_lb=2.7, fit_ub=3.5): """ Fit a model to the portion of the summed spectra containing the creatine and choline signals. Parameters ---------- reject_outliers : float or bool If set to a float, this is the z score ...
java
public double removeKey(T element) { AtomicDouble v = map.remove(element); dirty.set(true); if (v != null) return v.get(); else return 0.0; }
java
public void setLanguages(java.util.Collection<EnvironmentLanguage> languages) { if (languages == null) { this.languages = null; return; } this.languages = new java.util.ArrayList<EnvironmentLanguage>(languages); }
java
public JBBPOut Bits(final JBBPBitNumber numberOfBits, final int value) throws IOException { assertNotEnded(); JBBPUtils.assertNotNull(numberOfBits, "Number of bits must not be null"); if (this.processCommands) { _writeBits(numberOfBits, value); } return this; }
java
protected TypeData getTypeData(XExpression expression, boolean returnType, boolean nullIfEmpty) { if (!shared.allExpressionTypes.contains(expression)) { return null; } List<TypeData> values = doGetTypeData(expression); if (values == null) { return null; } TypeData result = mergeTypeData(expression, va...
java
private void registerInternal(final JobID id, final Path[] clientPaths) throws IOException { final String[] cacheNames = new String[clientPaths.length]; for (int i = 0; i < clientPaths.length; ++i) { final LibraryTranslationKey key = new LibraryTranslationKey(id, clientPaths[i]); cacheNames[i] = this.client...
python
def process_posts_response(self, response, path, params, max_pages): """ Insert / update all posts in a posts list response, in batches. :param response: a response that contains a list of posts from the WP API :param path: the path we're using to get the list of posts (for subsquent pa...
python
def info(package, conn=None): ''' List info for a package ''' close = False if conn is None: close = True conn = init() fields = ( 'package', 'version', 'release', 'installed', 'os', 'os_family', 'dependencies', 'os...
java
protected File getDefaultReportDir() { File reportsRootDir = getReportsRootDir(); if (reportsRootDir == null) { throw new SebException("Reports root directory is null"); } if (!reportsRootDir.exists()) { try { Files.createDirectories(reportsRootDir.toPath()); } catch (IOException e) { throw new...
java
public final <P> List<P> findSortedByQuery(String query, String sort, Integer skip, Integer limit, String projection, ResultHandler<P> handler, Object... params) { Find find = this.createFind(query, sort, skip, limit, projection, params); return this.convertIterable(find.map(handler)); }
python
def lab_office(self, column=None, value=None, **kwargs): """Abbreviations, names, and locations of labratories and offices.""" return self._resolve_call('GIC_LAB_OFFICE', column, value, **kwargs)
java
public static void processConditions(final String condition, final Document doc, final String defaultCondition, boolean removeConditionAttr) { final Map<Node, List<String>> conditionalNodes = getConditionNodes(doc.getDocumentElement()); // Loop through each condition found and see if it mat...
java
public static String executeQuery(String[] cmd) throws IOException, InterruptedException { return Command.execute(cmd).getOutput(); }
java
public ContainerDefinition withCommand(String... command) { if (this.command == null) { setCommand(new com.amazonaws.internal.SdkInternalList<String>(command.length)); } for (String ele : command) { this.command.add(ele); } return this; }
java
private void removeDeployment(final String deploymentID, Handler<AsyncResult<String>> doneHandler) { context.execute(new Action<String>() { @Override public String perform() { Collection<String> clusterDeployments = deployments.get(cluster); if (clusterDeployments != null) { St...
python
def get_additional_occurrences(self, start, end): """ Return persisted occurrences which are now in the period """ return [occ for _, occ in list(self.lookup.items()) if (occ.start < end and occ.end >= start and not occ.cancelled)]
python
def get_previous_tag(cls, el): """Get previous sibling tag.""" sibling = el.previous_sibling while not cls.is_tag(sibling) and sibling is not None: sibling = sibling.previous_sibling return sibling
java
public Observable<OperationStatus> updateHierarchicalEntityAsync(UUID appId, String versionId, UUID hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject) { return updateHierarchicalEntityWithServiceResponseAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject).map(new Func1<ServiceRespons...
java
@Override public final synchronized DataSource lazyGetDataSource() throws Exception { String beanName = getDataSourceName(); HikariDataSource dataSource = (HikariDataSource) getBeansMap().get(beanName); if (dataSource == null) { dataSource = new HikariDataSource(); dataSource.setJdbcUrl(...
python
def update(self, id, data): """ Replaces document with _id = id with data. :param id: _id of document to update :type id: ``string`` :param data: the new document to insert :type data: ``string`` :return: id of replaced document :rtype: ``dict`` ...
python
def check_managed_pipeline(name='', app_name=''): """Check a Pipeline name is a managed format **app_name [region]**. Args: name (str): Name of Pipeline to check. app_name (str): Name of Application to find in Pipeline name. Returns: str: Region name from managed Pipeline name. ...
java
public ListReceiptFiltersResult withFilters(ReceiptFilter... filters) { if (this.filters == null) { setFilters(new com.amazonaws.internal.SdkInternalList<ReceiptFilter>(filters.length)); } for (ReceiptFilter ele : filters) { this.filters.add(ele); } return...
python
def invalidate_node_memos(targets): """ Invalidate the memoized values of all Nodes (files or directories) that are associated with the given entries. Has been added to clear the cache of nodes affected by a direct execution of an action (e.g. Delete/Copy/Chmod). Existing Node caches become inc...
python
def frmnam(frcode, lenout=_default_len_out): """ Retrieve the name of a reference frame associated with a SPICE ID code. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/frmnam_c.html :param frcode: an integer code for a reference frame :type frcode: int :param lenout: Maximum length of...
python
def makeHierarchy(sources): '''Break a list of files into a hierarchy; for each value, if it is a string, then it is a file. If it is a dictionary, it is a folder. The string is the original path of the file.''' hierarchy = {} for file in sources: path = splitFully(file) if ...
python
def make_dir(self, path, relative=False): """ Make a directory. Args: path (str): Path or URL. relative (bool): Path is relative to current root. """ if not relative: path = self.relpath(path) self._make_dir(self.get_client_kwargs(self...
python
def _check_configs(self): """ Reloads the configuration files. """ configs = set(self._find_configs()) known_configs = set(self.configs.keys()) new_configs = configs - known_configs for cfg in (known_configs - configs): self.log.debug("Compass configur...
java
public void marshall(EncryptionAlgorithmOptions encryptionAlgorithmOptions, ProtocolMarshaller protocolMarshaller) { if (encryptionAlgorithmOptions == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(e...
java
private void populateTaskInput(Task task) { if (StringUtils.isNotBlank(task.getExternalInputPayloadStoragePath())) { WorkflowTaskMetrics.incrementExternalPayloadUsedCount(task.getTaskDefName(), ExternalPayloadStorage.Operation.READ.name(), ExternalPayloadStorage.PayloadType.TASK_INPUT.name()); ...
python
def _set_ingress(self, v, load=False): """ Setter method for ingress, mapped from YANG variable /interface/fortygigabitethernet/storm_control/ingress (list) If this variable is read-only (config: false) in the source YANG file, then _set_ingress is considered as a private method. Backends looking to...
java
private void init(Object source) { if (null == source) { return; } if (source instanceof Map) { boolean ignoreNullValue = this.config.isIgnoreNullValue(); for (final Entry<?, ?> e : ((Map<?, ?>) source).entrySet()) { final Object value = e.getValue(); if (false == ignoreNullValue || nul...
python
def Enter(cls): ''' 在指定输入框发送回回车键 @note: key event -> enter ''' element = cls._element() action = ActionChains(Web.driver) action.send_keys_to_element(element, Keys.ENTER) action.perform()
python
def get_ts_stats_significance(self, x, ts, stat_ts_func, null_ts_func, B=1000, permute_fast=False, label_ts=''): """ Returns the statistics, pvalues and the actual number of bootstrap samples. """ stats_ts, pvals, nums = ts_stats_significance( ts, stat_ts_func, null_ts_func, B=B,...
python
def api_secret(self, api_secret): """ Sets the api_secret of this GlobalSignCredentials. API Secret matching the API key (provided by GlobalSign). :param api_secret: The api_secret of this GlobalSignCredentials. :type: str """ if api_secret is None: ...
java
public String decrypt(String msgSignature, String timeStamp, String nonce, String encryptedXml) { // 密钥,公众账号的app corpSecret // 提取密文 String cipherText = extractEncryptPart(encryptedXml); try { // 验证安全签名 String signature = SHA1.gen(token, timeStamp, nonce, cipherText); if (!sign...
java
public int getAdapterPosition(long identifier) { for (int i = 0, size = mOriginalItems.size(); i < size; i++) { if (mOriginalItems.get(i).getIdentifier() == identifier) { return i; } } return -1; }
java
@Override public Event readEvent(long id) { RowMapper<Event> rowMapper = new EventRowMapper(); Event event = getJdbcTemplate() .queryForObject("select * from EVENTS where ID=" + id, rowMapper); event.getCustomInfo().clear(); event.getCustomInfo().putAll(readCustomInfo(id)...
python
def first_or_fail(self, columns=None): """ Execute the query and get the first result or raise an exception. :type columns: list :raises: ModelNotFound """ model = self.first(columns) if model is not None: return model raise ModelNotFound(se...
python
def validate_po_files(configuration, locale_dir, root_dir=None, report_empty=False, check_all=False): """ Validate all of the po files found in the root directory that are not product of a merge. Returns a boolean indicating whether or not problems were found. """ found_problems = False # List...
python
def as_dict(self): """ Json-serializable dict representation of BandStructureSymmLine. """ d = {"@module": self.__class__.__module__, "@class": self.__class__.__name__, "lattice_rec": self.lattice_rec.as_dict(), "efermi": self.efermi, "kpoints": []...
java
@Override public final void close() throws IOException { State state = _state; if (state.isClosing()) { return; } _state = state.toClosing(); try { flush(true); } finally { try { _state = _state.toClose(); } catch (RuntimeException e) { ...
python
def get_users_for_assigned_to(): """ Return a list of users who can be assigned to workflow states """ User = get_user_model() return User.objects.filter(is_active=True, is_staff=True)
java
public static boolean isPrimitive(Class<?> aClass) { if(aClass == null) return false; String className = aClass.getName(); return className.matches("(float|char|short|double|int|long|byte|boolean|(java.lang.(Long|Integer|String|Float|Double|Short|Byte|Boolean)))"); }
python
def modify_ack_deadline(self, items): """Modify the ack deadline for the given messages. Args: items(Sequence[ModAckRequest]): The items to modify. """ ack_ids = [item.ack_id for item in items] seconds = [item.seconds for item in items] request = types.Strea...
java
public boolean isConnector(String name) throws Exception { final Address address = Address.root().add(SUBSYSTEM, SUBSYSTEM_WEB, CONNECTOR, name); return null != readResource(address); }
python
def get_contributors(gh, repo_id): """Get list of contributors to a repository.""" try: # FIXME: Use `github3.Repository.contributors` to get this information contrib_url = gh.repository_with_id(repo_id).contributors_url r = requests.get(contrib_url) if r.status_code == 200: ...
python
def set_thread(self, thread = None): """ Manually set the thread process. Use with care! @type thread: L{Thread} @param thread: (Optional) Thread object. Use C{None} to autodetect. """ if thread is None: self.__thread = None else: self.__...
python
def data_filler_company(self, number_of_rows, pipe): '''creates keys with company data ''' try: for i in range(number_of_rows): pipe.hmset('company:%s' % i, { 'id': rnd_id_generator(self), 'name': self.faker.company(), ...
python
def pack(self, packer=default_packer) -> bytes: ''' Args: packer (str or lambda): The vertex attributes to pack. Returns: bytes: The packed vertex data. Examples: .. code-block:: python import ModernGL ...
python
def _clone_args(self): """ return args to create new Dict clone """ keys = list(self.keys) kw = {} if self.allow_any or self.extras: kw['allow_extra'] = list(self.extras) if self.allow_any: kw['allow_extra'].append('*') kw['allo...
java
public static void writeClassifier(LinearClassifier<?, ?> classifier, String writePath) { try { IOUtils.writeObjectToFile(classifier, writePath); } catch (Exception e) { throw new RuntimeException("Serialization failed: "+e.getMessage(), e); } }
python
async def complete(self, code: str, opts: dict = None) -> Iterable[str]: ''' Gets the auto-completion candidates from the given code string, as if a user has pressed the tab key just after the code in IDEs. Depending on the language of the compute session, this feature m...
python
def get(self, type_name, **parameters): """Gets entities using the API. Shortcut for using call() with the 'Get' method. :param type_name: The type of entity. :type type_name: str :param parameters: Additional parameters to send. :raise MyGeotabException: Raises when an exceptio...
python
def pipe(p1, p2): """Joins two pipes""" if isinstance(p1, Pipeable) or isinstance(p2, Pipeable): return p1 | p2 return Pipe([p1, p2])
python
def _set_callables(modules): ''' Set all Ansible modules callables :return: ''' def _set_function(cmd_name, doc): ''' Create a Salt function for the Ansible module. ''' def _cmd(*args, **kw): ''' Call an Ansible module as a function from the Sa...
java
protected static int computeOptimalNumberOfHashFunctions(double approximateNumberOfElements, double requiredNumberOfBits) { double numberOfHashFunctions = (requiredNumberOfBits / approximateNumberOfElements) * Math.log(2.0d); return Double.valueOf(Math.ceil(numberOfHashFunctions)).intValue(); }
java
@Override protected synchronized void loadConfiguration() throws IOException { final ObjectMapper mapper = new ObjectMapper(new YAMLFactory()); final TypeReference<HashMap<String, String>> typeRef = new TypeReference<HashMap<String, String>>() {}; namespaces = mapper.readValue(new File(confi...
java
protected void storeBuffer() { if (buffer != null && buffer.length() > insertStatement.length()) { if(!insertStatement.isEmpty()) { //only do this in SQL/DATABASE MODE this.buffer.append(";"); } bufferList.add(buffer); } this.buffer = new StringBuilder(); this.buffer.append(insertStatement);...
java
protected Map<File, File> getFiles() { final Map<File, File> files = new TreeMap<>(); for (final String rootName : this.inferredSourceDirectories) { File root = FileSystem.convertStringToFile(rootName); if (!root.isAbsolute()) { root = FileSystem.makeAbsolute(root, this.baseDirectory); } getLog().de...
java
@Override public void connect() { if (!canRun.compareAndSet(true, false) || clientBase.isDone()) { throw new IllegalStateException("There is already a connection thread running for " + this.clientBase); } executorService.execute(clientBase); logger.info("New connection executed: {}", this.client...
python
def overlap_matrix(hdf5_file_name, consensus_labels, cluster_runs): """Writes on disk (in an HDF5 file whose handle is provided as the first argument to this function) a stack of matrices, each describing for a particular run the overlap of cluster ID's that are matching each of the cluster ID...
python
def _process_bulk_chunk(self, bulk_actions, raise_on_exception=True, raise_on_error=True, **kwargs): """ Send a bulk request to elasticsearch and process the output. """ # if raise on error is set, we need to collect errors per chunk before # raising them resp = None ...
java
public Matrix4x3d zero() { m00 = 0.0; m01 = 0.0; m02 = 0.0; m10 = 0.0; m11 = 0.0; m12 = 0.0; m20 = 0.0; m21 = 0.0; m22 = 0.0; m30 = 0.0; m31 = 0.0; m32 = 0.0; properties = 0; return this; }
python
def fetch_objects(self, geoids): ''' Custom object retrieval. Zones are resolved from their identifier instead of the default bulk fetch by ID. ''' zones = [] no_match = [] for geoid in geoids: zone = GeoZone.objects.resolve(geoid) ...
python
def _get_associated_classnames(self, classname, namespace, assoc_class, result_class, result_role, role): """ Get list of classnames that are associated classes for which this classname is a target filtered by the assoc_class, role, result_class, and re...
python
def getFilenameSet(self): """ Returns a set of profiled file names. Note: "file name" is used loosely here. See python documentation for co_filename, linecache module and PEP302. It may not be a valid filesystem path. """ result = set(self.file_dict) # Ig...
python
def run(time: datetime, altkm: float, glat: Union[float, np.ndarray], glon: Union[float, np.ndarray], *, f107a: float = None, f107: float = None, Ap: int = None) -> xarray.Dataset: """ loops the rungtd1d function below. Figure it's easier to troubleshoot in Python than Fortran. """ glat ...
java
public RegisteredService get(final long id) { val keys = new HashMap<String, AttributeValue>(); keys.put(ColumnNames.ID.getColumnName(), new AttributeValue(String.valueOf(id))); return getRegisteredServiceByKeys(keys); }
python
def plotXYCatalog(self, **kwargs): """ Plots the source catalog positions using matplotlib's `pyplot.plot()` Plotting `kwargs` that can also be passed include any keywords understood by matplotlib's `pyplot.plot()` function such as:: vmin, vmax, cmap, marker """ ...
python
def atan(x): """ Inverse tangent """ if isinstance(x, UncertainFunction): mcpts = np.arctan(x._mcpts) return UncertainFunction(mcpts) else: return np.arctan(x)
python
def comment(self, comment, show=False, endline=True, newpar=False): """writes a comment tag to the Purr pipe""" if not endline: comment += "<NOBR>" if newpar: comment += "<BR>" self._write("comment:%d:%s\n" % (int(show), comment)) return self
java
public void addSet(final SortedSet<T> set) { SortedMap<T, UBNode<T>> nodes = rootNodes; UBNode<T> node = null; for (T element : set) { node = nodes.get(element); if (node == null) { node = new UBNode<>(element); nodes.put(element, node); ...
python
def delete(self, postage_id, session): '''taobao.postage.delete 删除单个运费模板 删除单个邮费模板 postage_id对应的邮费模板要属于当前会话用户''' request = TOPRequest('taobao.postage.delete') request['postage_id'] = postage_id self.create(self.execute(request, session)['postage']) return self
java
private void createTempFile() throws IOException { _tempfilef = File.createTempFile("org.browsermob.proxy.jetty.util.TempByteHolder-",".tmp",_temp_directory).getCanonicalFile(); _tempfilef.deleteOnExit(); _tempfile = new RandomAccessFile(_tempfilef,"rw"); }
java
public MBeanInfo getMBeanInfo(final ObjectName name) { try { return getMbeanServer().getMBeanInfo(name); } catch (final Exception e) { logger.error("Load MBean Information Failure", e); return null; } }
java
public boolean restoreLastMapFromArchive() { boolean success = false; List<Map<Object, Object>> object = null; if (oldBlockHierarchy.size() > 0) { object = oldBlockHierarchy.remove(oldBlockHierarchy.size() - 1); if (object != null) { working = object; success = true; } } return success; }
python
def from_env(cls, hashbang): """Resolve a PythonInterpreter as /usr/bin/env would. :param hashbang: A string, e.g. "python3.3" representing some binary on the $PATH. """ paths = os.getenv('PATH', '').split(':') for path in paths: for fn in cls.expand_path(path): basefile = os.path....
python
def generate_key(self, email): """ Generate a new email confirmation key and return it. """ salt = sha1(str(random())).hexdigest()[:5] return sha1(salt + email).hexdigest()
python
def stashed(func): """ Simple decorator to stash changed files between a destructive repo operation """ @functools.wraps(func) def _wrapper(*args, **kwargs): if CTX.stash and not CTX.repo.stashed: CTX.repo.stash(func.__name__) try: func(*args, **kwarg...
java
public void setDeadline(long sessionDeadline) throws IOException { if (failException != null) { throw failException; } sessionInfo.deadline = sessionDeadline; SessionInfo newInfo = new SessionInfo(sessionInfo); cmNotifier.addCall( new ClusterManagerService.sessionUpdateInfo_args(sess...
python
def _create_client(self, clt_class, url, public=True, special=False): """ Creates a client instance for the service. """ if self.service == "compute" and not special: # Novaclient requires different parameters. client = pyrax.connect_to_cloudservers(region=self.re...
python
def cache_relationships(self, cache_super=True, cache_sub=True): """ Caches the super and sub relationships by doing a prefetch_related. """ relationships_to_cache = compress( ['super_relationships__super_entity', 'sub_relationships__sub_entity'], [cache_super, cache_sub]) ...
python
def inverse(self, encoded, downbeat=None, duration=None): '''Inverse transformation for beats and optional downbeats''' ann = jams.Annotation(namespace=self.namespace, duration=duration) beat_times = np.asarray([t for t, _ in self.decode_events(encoded, ...
java
public IPersistentMap assoc(Object k, Object v) { if (k instanceof Keyword) return assoc(((Keyword) k).getName(), v); return new IndifferentAccessMap(getMap().assoc(k, v)); }
python
def qteReparent(self, parent): """ Re-parent the applet. This is little more then calling Qt's native ``setParent()`` method but also updates the ``qteParentWindow`` handle. This method is usually called when the applet is added/removed from a splitter and thus requires ...
java
public static String format(final LocalDateTime self, String pattern) { return self.format(DateTimeFormatter.ofPattern(pattern)); }
java
public static double equationOfTime( Moment moment, String calculator ) { if (calculator == null) { throw new NullPointerException("Missing calculator parameter."); } else if (CALCULATORS.containsKey(calculator)) { double jde = JulianDay.getValue(moment, Time...
python
def getpLvlPcvd(self): ''' Finds the representative agent's (average) perceived productivity level. Average perception of productivity gets UpdatePrb weight on the true level, for those that update, and (1-UpdatePrb) weight on the previous average perception times expected aggreg...
java
public DruidNodeDiscovery getForService(String serviceName) { return serviceDiscoveryMap.computeIfAbsent( serviceName, service -> { Set<NodeType> nodeTypesToWatch = DruidNodeDiscoveryProvider.SERVICE_TO_NODE_TYPES.get(service); if (nodeTypesToWatch == null) { throw...
java
protected final CnvBnRsToDouble<RS> createPutCnvBnRsToDouble() throws Exception { CnvBnRsToDouble<RS> convrt = new CnvBnRsToDouble<RS>(); //assigning fully initialized object: this.convertersMap .put(CnvBnRsToDouble.class.getSimpleName(), convrt); return convrt; }
python
def edit_message_media( self, chat_id: Union[int, str], message_id: int, media: InputMedia, reply_markup: "pyrogram.InlineKeyboardMarkup" = None ) -> "pyrogram.Message": """Use this method to edit audio, document, photo, or video messages. If a message is a p...
python
def on_before_transform_template(self, template_dict): """ Hook method that gets called before the SAM template is processed. The template has passed the validation and is guaranteed to contain a non-empty "Resources" section. :param dict template_dict: Dictionary of the SAM template ...
java
public String convertIfcDistributionSystemEnumToString(EDataType eDataType, Object instanceValue) { return instanceValue == null ? null : instanceValue.toString(); }
python
def export_for_schema(self): """ Returns a string version of these replication options which are suitable for use in a CREATE KEYSPACE statement. """ if self.options_map: return dict((str(key), str(value)) for key, value in self.options_map.items()) return "{'...