id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
stackoverflow-54/extraction_0.txt | The **`Map`** object holds key-value pairs and remembers the original insertion order of the keys. ## Description `Map` objects are collections of key-value pairs. A key in the `Map` **may only occur once**; it is unique in the `Map`'s collection. A `Map` object is iterated by key-value pairs — a `for...of` loop return... | |
swift_array_methods/swift_array_methods_0_2.txt | ing removeAll() ](/swift-programming/library/string/removeall)
# Swift Array filter()
The ` filter() ` method returns all the elements from the array that satisfy
the provided condition.
### Example
var numbers = [2, 3, 6, 9]
// return all the elements greater than 5
var resu... | |
stackoverflow-55/extraction_0.txt | ``` Instance Method # count(where:) Returns the number of elements in the sequence that satisfy the given predicate. iOS 8.0+iPadOS 8.0+Mac Catalyst 13.0+macOS 10.10+tvOS 9.0+visionOS 1.0+watchOS 2.0+ ``` func count<E>(where predicate: (Self.Element) throws(E) -> Bool) throws(E) -> Int where E : Error ``` ## Parameters... | |
stackoverflow-55/extraction_2.txt | This answer is useful 36 Save this answer. Timeline Show activity on this post. Like this: ```hljs swift let a: [Int] = ... let count = a.filter({ $0 % 2 == 0 }).count ``` Share Share a link to this answer Copy link CC BY-SA 3.0 Improve this answer Follow Follow this answer to receive notifications answered Oct 5, 2015... | |
stackoverflow-56/extraction_0.txt | ## Managing the future The future must have been obtained earlier, e.g. during State.initState, State.didUpdateWidget, or State.didChangeDependencies. It must not be created during the State.build or StatelessWidget.build method call when constructing the FutureBuilder. If the future is created at the same time as the ... | |
stackoverflow-56/extraction_1.txt | ``` # The instance member 'params' can't be accessed in an initializer Ask Question Asked5 years ago Modified 1 year, 9 months ago Viewed 202k times This question shows research effort; it is useful and clear 102 Save this question. Timeline Show activity on this post. ```hljs dart class LevelUp extends GetxController ... | |
stackoverflow-56/extraction_2.txt | # StreamBuilder<T> class Widget that builds itself based on the latest snapshot of interaction with a Stream. ## Managing the stream The stream must have been obtained earlier, e.g. during State.initState, State.didUpdateWidget, or State.didChangeDependencies. It must not be created during the State.build or StatelessW... | |
stackoverflow-56/extraction_3.txt | ``` # Stream<T>.periodic constructor Stream<T>.periodic( 1. Durationperiod, \\ 2. Tcomputation(\ \ 1. [intcomputationCount\ \ )?\ \ \]) Creates a stream that repeatedly emits events at `period` intervals. The event values are computed by invoking `computation`. The argument to this callback is an integer that starts wi... | |
stackoverflow-57/extraction_1.txt | ``` # numpy.nonzero # numpy.nonzero( _a_) [\[source\]](https://github.com/numpy/numpy/blob/main/numpy/_core/fromnumeric.py#L2016-L2109) # Return the indices of the elements that are non-zero. Returns a tuple of arrays, one for each dimension of _a_, containing the indices of the non-zero elements in that dimension. The... | |
stackoverflow-57/extraction_2.txt | # pandas.Series.idxmax \# Series.idxmax( _axis=0_, _skipna=True_, _\*args_, _\*\*kwargs_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/series.py#L2700-L2782) # Return the row label of the maximum value. If multiple values equal the maximum, the first row label with that value is returned. P... | |
stackoverflow-57/extraction_3.txt | # Finding the index of the first element (e.g "True") from a series/column How do I find the index of an element (e.g "True") in a series or a column? For example I have a column, where I want to identify the first instance where an event occur. So I write it as ```hljs python Variable = df["Force"] < event ``` This th... | |
stackoverflow-58/extraction_0.txt | ## Retrieve keys and values For retrieving a value from a map, you must provide its key as an argument of the `get()` function. The shorthand `[key]` syntax is also supported. If the given key is not found, it returns `null`. There is also the function `getValue()` which has slightly different behavior: it throws an e... | |
stackoverflow-58/extraction_1.txt | # Is there a reason why I am getting a null-related error in this code Ask Question Asked1 year, 4 months ago Modified 1 year, 4 months ago Viewed 46 times This question shows research effort; it is useful and clear 1 Save this question. Timeline Show activity on this post. ```hljs kotlin data class Person(val name: St... | |
stackoverflow-58/extraction_2.txt | # Map-specific operations Edit page 11 February 2021 In maps, types of both keys and values are user-defined. Key-based access to map entries enables various map-specific processing capabilities from getting a value by key to separate filtering of keys and values. On this page, we provide descriptions of the map proce... | |
stackoverflow-58/extraction_3.txt | get Link copied to clipboard CommonJSJVMNativeWasm-JSWasm-WASI expect abstract operator fun get(key: K): V? Returns the value corresponding to the given key, or `null` if such a key is not present in the map. **Since Kotlin** 1.0 actual abstract operator fun get(key: K): V? Returns the value corresponding to the given ... | |
stackoverflow-58/extraction_4.txt | ``` # eachCount CommonJSJVMNativeWasm-JSWasm-WASI expect fun < T, K > Grouping < T, K >. eachCount(): Map < K, Int >( source) Groups elements from the Grouping source by key and counts elements in each group. #### Since Kotlin 1.1 #### Return a Map associating the key of each group with the count of elements in the gro... | |
mulesoft_runtime_Objects/mulesoft_runtime_6_4.txt | 800-596-4880 ](tel:1-800-596-4880)
Online [ Contact Us ](https://www.mulesoft.com/contact)
* Login
[ Anypoint Platform
](https://anypoint.mulesoft.com/login/#/signin?apintent=generic) [ Composer
](https://composer.mulesoft.com/login/sign-in) [ Training
](https://training.mulesoft.com/login) [ Help Center
](https... | |
stackoverflow-59/extraction_0.txt | # toDate ## !Copy link to clipboardtoDate(str: String, formatters: Array<Formatter>): Date Transforms a `String` value into a `Date` value using the first `Formatter` that matches with the given value to transform. _Introduced in DataWeave version 2.5.0._ ### !Copy link to clipboardParameters Show | Name | Type | Descr... | |
stackoverflow-59/extraction_1.txt | ### Patterns for Formatting and Parsing Patterns are based on a simple sequence of letters and symbols. A pattern is used to create a Formatter using the `ofPattern(String)` and `ofPattern(String, Locale)` methods. For example, `"d MMM uuuu"` will format 2011-12-03 as '3 Dec 2011'. A formatter created from a pattern ca... | |
stackoverflow-59/extraction_2.txt | # Parse Dates with DataWeave Jump to...Example: Returns Dates as String TypesExample: Returns Dates as Date TypesRelated ExamplesSee Also These DataWeave examples define a function ( `fun`) in the DataWeave header to normalize date separators ( `/`, `.`, and `-`) within different date formats so that all of them use th... | |
stackoverflow-60/extraction_0.txt | The **`join()`** method of `Array` instances creates and returns a new string by concatenating all of the elements in this array, separated by commas or a specified separator string. If the array has only one item, then that item will be returned without using the separator. ## Try it ## Syntax ### Parameters `separato... | |
stackoverflow-61/extraction_0.txt | #### Description [\[src\]](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkfilechooserdialog.c\#L44 "go to source location") ``` class Gtk.FileChooserDialog : Gtk.Dialog implements Atk.ImplementorIface, Gtk.Buildable, Gtk.FileChooser { GtkFileChooserDialogPrivate* priv } ``` `GtkFileChooserDialog` is a dialog... | |
stackoverflow-61/extraction_1.txt | #### Description [\[src\]](https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/gtkfilechoosernative.c\#L47 "go to source location") ``` final class Gtk.FileChooserNative : Gtk.NativeDialog implements Gtk.FileChooser { /* No available fields */ } ``` `GtkFileChooserNative` is an abstraction of a dialog box suitable f... | |
stackoverflow-61/extraction_2.txt | ## Stock Items Stock Items — Prebuilt common menu/toolbar items and corresponding icons ## Functions | | | | --- | --- | | void | gtk\_stock\_add")() | | void | gtk\_stock\_add\_static")() | | GtkStockItem \* | gtk\_stock\_item\_copy")() | | void | gtk\_stock\_item\_free")() | | GSList \* | gtk\_stock\_list\_ids")() | ... | |
react_dev/react_dev_1_1.txt |
// 🔴 Bad: after a conditional return (to fix, move it before the return!)
const theme = useContext(ThemeContext);
// ...
}
function Bad() {
function handleClick() {
// 🔴 Bad: inside an e... | |
stackoverflow-62/extraction_0.txt | # Rules of Hooks Link for this heading Hooks are defined using JavaScript functions, but they represent a special type of reusable UI logic with restrictions on where they can be called. - Only call Hooks at the top level - Only call Hooks from React functions * * * ## Only call Hooks at the top level Link for Only cal... | |
stackoverflow-62/extraction_1.txt | ## Breaking the Rules of Hooks You can only call Hooks **while React is rendering a function component**: - ✅ Call them at the top level in the body of a function component. - ✅ Call them at the top level in the body of a custom Hook. **Learn more about this in the Rules of Hooks.** ```gatsby-code-jsx function Counter(... | |
stackoverflow-62/extraction_2.txt | Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. Hooks are JavaScript functions, but you need to follow two rules when using them. We provide a linter plugin to enforce these rules automatically: ### Only Call Hooks at the Top Level **Don’t call Hooks insi... | |
stackoverflow-63/extraction_0.txt | Expand description A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’. The type `Arc<T>` provides shared ownership of a value of type `T`, allocated in the heap. Invoking `clone` on `Arc` produces a new `Arc` instance, which points to the same allocation on the heap as the source ... | |
stackoverflow-63/extraction_2.txt | Not everything obeys inherited mutability, though. Some types allow you to have multiple aliases of a location in memory while mutating it. Unless these types use synchronization to manage this access, they are absolutely not thread-safe. Rust captures this through the `Send` and `Sync` traits. - A type is Send if it i... | |
stackoverflow-63/extraction_3.txt | ``` If you look at the docs for `Arc` you will see: ```hljs rust impl<T> Send for Arc<T> where T: Sync + Send + ?Sized, ``` That is, `Arc<T>` implements `Send` only when `T` implements `Sync` as well. Here's why: if you put something in an `Arc`, clone the `Arc`, and _send_ the clone to another thread, then the thing i... | |
r_std_hashmap/r_std_hashmap_16_0.txt | 1.56.0 · [ source ](../../src/std/collections/hash/map.rs.html#1358-1374) §
### impl<K, V, const N: [ usize ](../primitive.usize.html) > [ From
](../convert/trait.From.html "trait std::convert::From") <[ [ (K, V)
](../primitive.tuple.html) ; [ N ](../primitive.array.html) ]> for [ HashMap
](hash_map/struct.HashMap... | |
stackoverflow-64/extraction_1.txt | # Initialize immutable HashMap with data HashMap from tuples keys values Earlier we saw how to define an empty HashMap and insert values. We also saw that there is no need to define the types of a HashMap, Rust can figure that out during compilation. Sometimes, actually probably quite rarely we would like to create a H... | |
stackoverflow-64/extraction_2.txt | Use `Iterator::collect`: ```hljs rust use std::collections::HashMap; fn main() { let tuples = [("one", 1), ("two", 2), ("three", 3)]; let m: HashMap<_, _> = tuples.into_iter().collect(); println!("{:?}", m); } ``` `collect` leverages the `FromIterator` trait. Any iterator can be collected into a type that implements `F... | |
stackoverflow-65/extraction_0.txt | # CSSStyleDeclaration string properties all have `| null` type declaration. See original GitHub issue `lib.dom.d.ts` has recently suffixed all of the properties of `CSSStyleDeclaration` with `| null`: https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L1382 https://github.com/Microsoft/TypeScript/comm... | |
stackoverflow-65/extraction_2.txt | # CSSType !npm TypeScript and Flow definitions for CSS, generated by data from MDN. It provides autocompletion and type checking for CSS properties and values. **TypeScript** ``` import type * as CSS from 'csstype'; const style: CSS.Properties = { colour: 'white', // Type error on property textAlign: 'middle', // Type ... | |
stackoverflow-65/extraction_3.txt | ```markdown # CSSType !\npm\ TypeScript and Flow definitions for CSS, generated by data from MDN. It provides autocompletion and type checking for CSS properties and values. ```ts import * as CSS from 'csstype'; const style: CSS.Properties = { colour: 'white', // Type error on property overflow: 'hide', // Type error o... | |
stackoverflow-65/extraction_4.txt | # [@types/react] CSSProperties should honor csstype, fixing TS autocompletion #66835 Closed Answered by Semigradsky marktoman asked this question in Issues with a @types package [\[@types/react\] CSSProperties should honor csstype, fixing TS autocompletion](https://github.com/DefinitelyTyped/DefinitelyTyped/discussions... | |
stackoverflow-66/extraction_0.txt | ``` # Set, use, and manage variables in a Compose file with interpolation Page options Copy page as Markdown for LLMs View page as plain text Ask questions with Docs AI Claude Open in Claude Table of contents * * * A Compose file can use variables to offer more flexibility. If you want to quickly switch between image t... | |
stackoverflow-66/extraction_1.txt | # Docker Swarm with image versions externalized to .env file I used to externalized my image versions to my .env file. This make it easy to maintain and I don't modify my `docker-compose.yml` file just to upgrade a version, so I'm sure I won't delete a line by mistake or whatever. But when I try to deploy my services w... | |
stackoverflow-66/extraction_2.txt | #### Additional information - If you define a variable in your `.env` file, you can reference it directly in your `compose.yaml` with the `environment` attribute. For example, if your `.env` file contains the environment variable `DEBUG=1` and your `compose.yaml` file looks like this: ```yaml services: webapp: image: m... | |
stackoverflow-66/extraction_3.txt | # Set, use, and manage variables in a Compose file with interpolation Page options Copy page as Markdown for LLMs View page as plain text Ask questions with Docs AI Claude Open in Claude Table of contents * * * A Compose file can use variables to offer more flexibility. If you want to quickly switch between image tags ... | |
Mmdn_Methods_Properties/Mmdn_methods_15_4.txt | ` 0 ` or have opposite signs.
* _Transitive_ : If ` compareFn(a, b) ` and ` compareFn(b, c) ` are both positive, zero, or negative, then ` compareFn(a, c) ` has the same positivity as the previous two.
A comparator conforming to the constraints above will always be able to return
all of ` 1 ` , ` 0 ` , and ` -1 `... | |
Mmdn_Methods_Properties/Mmdn_methods_15_5.txt | compareFn ` can be invoked multiple times per element within the array.
Depending on the ` compareFn ` 's nature, this may yield a high overhead. The
more work a ` compareFn ` does and the more elements there are to sort, it may
be more efficient to use [ ` map() ` ](/en-
US/docs/Web/JavaScript/Reference/Global_Objects... | |
Mmdn_Methods_Properties/Mmdn_methods_15_3.txt | e/Global_Objects/Array) instances sorts the
elements of an array _[ in place ](https://en.wikipedia.org/wiki/In-
place_algorithm) _ and returns the reference to the same array, now sorted.
The default sort order is ascending, built upon converting the elements into
strings, then comparing their sequences of UTF-16 code... | |
stackoverflow-67/extraction_0.txt | The **`sort()`** method of `Array` instances sorts the elements of an array _in place_ and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code unit values. The time and space complexity o... | |
stackoverflow-67/extraction_1.txt | ## How to convert IP address to an integer or a long ###### Jordan Clist, CTO Sometimes it is important to convert an IP address eg. 127.0.0.1 to an integer or a long for storage in a database for lookups or for various other reasons. Let this be a definitive guide :) Eg. `127.0.0.1` Can become `2130706433` * * * ### P... | |
stackoverflow-68/extraction_0.txt | ### 3.3.12. Special method lookup ¶ For custom classes, implicit invocations of special methods are only guaranteed to work correctly if defined on an object’s type, not in the object’s instance dictionary. That behaviour is the reason why the following code raises an exception: Copy ``` >>> class C: ... pass ... >>> c... | |
stackoverflow-68/extraction_1.txt | ### 3.2.8.9. Class Instances ¶ Instances of arbitrary classes can be made callable by defining a `__call__()` method in their class. ### 3.3.6. Emulating callable objects ¶ object.\_\_call\_\_( _self_\[, _args..._\]) ¶ Called when the instance is “called” as a function; if this method is defined, `x(arg1, arg2, ...)` r... | |
stackoverflow-68/extraction_2.txt | ### 3.3. Special method names ¶ A class can implement certain operations that are invoked by special syntax (such as arithmetic operations or subscripting and slicing) by defining methods with special names. This is Python’s approach to _operator overloading_, allowing classes to define their own behavior with respect ... | |
stackoverflow-69/extraction_0.txt | ### Long answer from the sed FAQ 5.10 5.10. Why can't I match or delete a newline using the \\n escape sequence? Why can't I match 2 or more lines using \\n? The \\n will never match the newline at the end-of-line because the newline is always stripped off before the line is placed into the pattern space. To get 2 or m... | |
stackoverflow-69/extraction_1.txt | Is there an issue with sed and new line character? I have a file test.txt with the following contents ``` aaaaa bbbbb ccccc ddddd ``` The following does not work: `sed -r -i 's/\n/,/g' test.txt` I know that I can use `tr` for this but my question is why it seems not possible with sed. If this is a side effect of proces... | |
stackoverflow-69/extraction_2.txt | Sentry Answers> Linux > Replace newlines with spaces using `sed` # Replace newlines with spaces using `sed` David Y. —November 15, 2023 ## The Problem The Problem Using `sed`, how can I replace all newline characters in a given string or file with spaces? ## The Solution The Solution While `sed` is designed for use on ... | |
stackoverflow-69/extraction_3.txt | ## 2 Answers 2 Sorted by: Reset to default Highest score (default) Date modified (newest first) Date created (oldest first) This answer is useful 7 Save this answer. Timeline Show activity on this post. With a few implementations of `awk` including GNU `awk`, `mawk` and busybox `awk` (the 3 implementations commonly fou... | |
stackoverflow-69/extraction_4.txt | MadeInGermany Moderator of the Year Jul 2024 Yes, very simple. Put the following at the beginning of your awk script (but not in a BEGIN or END section!): ```lang-plaintext hljs plaintext { sub(/\r$/, "") } ``` It simply deletes a `\r` (CR) before the Unix newline (LF). [](https://community.unix.com/u/cokedude) cokedud... | |
stackoverflow-69/extraction_5.txt | ## 7 Answers 7 Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) This answer is useful 283 Save this answer. Timeline Show activity on this post. `awk '{sum+=$3}; END {printf "%f",sum/NR}' ${file}_${f}_v1.xls >> to-plot-p.xls`... | |
stackoverflow-69/extraction_6.txt | The `ORS` special variable is used to customize the output record separator. `ORS` is the string that gets added to the end of every call to the `print` function. The default value for `ORS` is a single newline character, just like `RS`. ```bash hljs # change NUL record separator to dot and newline $ printf 'apple\0ban... | |
stackoverflow-6/extraction_0.txt | ``` if not TYPE_CHECKING: # We put `__getattr__` in a non-TYPE_CHECKING block because otherwise, mypy allows arbitrary attribute access # The same goes for __setattr__ and __delattr__, see: https://github.com/pydantic/pydantic/issues/8643 def __getattr__(self, item: str) -> Any: private_attributes = object.__getattribu... | |
stackoverflow-6/extraction_1.txt | # Models API Documentation `pydantic.main.BaseModel` One of the primary ways of defining schema in Pydantic is via models. Models are simply classes which inherit from `BaseModel` and define fields as annotated attributes. You can think of models as similar to structs in languages like C, or as the requirements of a si... | |
stackoverflow-6/extraction_3.txt | ``` ### extra`instance-attribute`¶ ``` extra: ExtraValues | None ``` Whether to ignore, allow, or forbid extra data during model initialization. Defaults to `'ignore'`. Three configuration values are available: - `'ignore'`: Providing extra data is ignored (the default): ``` from pydantic import BaseModel, ConfigDict c... | |
stackoverflow-6/extraction_4.txt | According to the docs: > **allow\_mutation** > > whether or not models are faux-immutable, i.e. whether **setattr** is allowed (default: True) Well I have a class : ```hljs python class MyModel(BaseModel): field1:int class Config: allow_mutation = True ``` If I try to add a field dynamically : ```hljs python model1 = M... | |
stackoverflow-6/extraction_5.txt | # Pydantic object has no attribute '__fields_set__' error I'm working with FastAPI to create a really simple dummy API. For it I was playing around with enums to define the require body for a post request and simulating a DB call from the API method to a dummy method. To have the proper body request on my endpoint, Im ... | |
github_using_workflows_jobs/github_using_workflows_9_6.txt | /help/actions/actions-workflow-dispatch.png)
5. Select the **Branch** dropdown menu and click a branch to run the workflow on.
6. If the workflow requires input, fill in the fields.
7. Click **Run workflow** .
To learn more about GitHub CLI, see " [ About GitHub CLI ](/en/github-
cli/github-cli/about-githu... | |
stackoverflow-70/extraction_0.txt | ## Configuring a workflow to run manually To run a workflow manually, the workflow must be configured to run on the `workflow_dispatch` event. To trigger the `workflow_dispatch` event, your workflow must be in the default branch. For more information about configuring the `workflow_dispatch` event, see Events that trig... | |
stackoverflow-70/extraction_1.txt | ``` ## gh workflow run ``` gh workflow run [<workflow-id> | <workflow-name>] [flags] ``` Create a `workflow_dispatch` event for a given workflow. This command will trigger GitHub Actions to run a given workflow file. The given workflow file must support an `on.workflow_dispatch` trigger in order to be run in this way. ... | |
stackoverflow-70/extraction_2.txt | ## Create a workflow dispatch event You can use this endpoint to manually trigger a GitHub Actions workflow run. You can replace `workflow_id` with the workflow file name. For example, you could use `main.yaml`. You must configure your GitHub Actions workflow to run when the `workflow_dispatch` webhook event occurs. Th... | |
stackoverflow-70/extraction_3.txt | # Manually running a workflow When a workflow is configured to run on the `workflow_dispatch` event, you can run the workflow using the Actions tab on GitHub, GitHub CLI, or the REST API. ## Configuring a workflow to run manually To run a workflow manually, the workflow must be configured to run on the `workflow_dispat... | |
stackoverflow-70/extraction_4.txt | UPDATE: @hayesgm answer may be better choice since using `push`/ `pull_request` workflow trigger will register new workflow in GitHub and then you can just remove unneeded `push`/ `pull_request` events trigger and run workflow using `gh` command. It works without merging anything to default branch. UPDATE 2: Seems like... | |
stackoverflow-70/extraction_5.txt | ### Example reusable workflow This reusable workflow file named `workflow-B.yml` (we'll refer to this later in the example caller workflow) takes an input string and a secret from the caller workflow and uses them in an action. ```hljs yaml name: Reusable workflow example on: workflow_call: inputs: config-path: require... | |
stackoverflow-70/extraction_6.txt | # Overview !push!Go Report Card!awesome-runners Permalink: Overview > "Think globally, `act` locally" Run your GitHub Actions locally! Why would you want to do this? Two reasons: - **Fast Feedback** \- Rather than having to commit/push every time you want to test out the changes you are making to your `.github/workflow... | |
stackoverflow-70/extraction_7.txt | GitHub Actions help automate tasks like building, testing, and deploying in your GitHub repository. With one click, you can publish your production-ready code or package on npm, GitHub pages, docker images, deploy your production code on a cloud provider, and so on. The problem starts when you're testing GitHub Actions... | |
stackoverflow-71/extraction_0.txt | Comparison conditions compare one expression with another. The result of such a comparison can be `TRUE`, `FALSE`, or `UNKNOWN`. Large objects (LOBs) are not supported in comparison conditions. However, you can use PL/SQL programs for comparisons on `CLOB` data. When comparing numeric expressions, Oracle uses numeric p... | |
stackoverflow-71/extraction_1.txt | #### COMPARE Functions This function compares two entire LOBs or parts of two LOBs. Syntax ``` Copy DBMS_LOB.COMPARE ( lob_1 IN BLOB, lob_2 IN BLOB, amount IN INTEGER := DBMS_LOB.LOBMAXSIZE, offset_1 IN INTEGER := 1, offset_2 IN INTEGER := 1) RETURN INTEGER; DBMS_LOB.COMPARE ( lob_1 IN CLOB CHARACTER SET ANY_CS, lob_2 ... | |
stackoverflow-71/extraction_2.txt | ```java // Shows how to create a NClob, insert data in the NClob, // retrieves data from the NClob. voidnclobSample() throwsException { show("======== Nclob Sample ========"); try (PreparedStatementpstmt = conn.prepareStatement( "INSERT INTO " \+ TABLE_NAME \+ " (LOB_ID, NCLOB_DATA) VALUES (5, ?)")) { // Creates and fi... | |
stackoverflow-71/extraction_3.txt | ## Speeding up DBMS_LOB.COMPARE mathguyJul 1 2020 — edited Jul 2 2020 Suppose we have a table with 1000 rows, with columns ID (number, primary key) and TXT (CLOB). We need to write a query showing all pairs of ID, let's call then ID1 and ID2, with ID1 < ID2, with identical corresponding TXT values. Oracle doesn't allow... | |
Daniel_Schroeder/Daniel_Schroeder_4_1.txt | -click a .ps1 file and choose Open With -> Windows PowerShell.
Default Value: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "%1"
Desired Value: "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" "& \"%1\""
Registry Key: HKEY_CLASSES_ROOT\Microsoft.PowerShellScript.1\Shell\0\Comma... | |
stackoverflow-72/extraction_0.txt | ## Short description Explains how to use the `powershell.exe` command-line interface. Displays the command-line parameters and describes the syntax. ## Long description For information about the command-line options for PowerShell 7, see about_Pwsh. ## SYNTAX Copy ``` PowerShell[.exe] [-PSConsoleFile <file> | -Version ... | |
stackoverflow-72/extraction_1.txt | ## 7 Answers 7 Sorted by: Reset to default Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first) This answer is useful 176 Save this answer. Timeline Show activity on this post. You basically have 3 options to prevent the PowerShell Console window from closi... | |
stackoverflow-72/extraction_2.txt | ## Short description Explains how to use the **Run with PowerShell** feature to run a script from a file system drive. ## Long description Beginning in Windows PowerShell 3.0, you can use the **Run with PowerShell** feature to run scripts from File Explorer. PowerShell 7 adds the **Run with** **PowerShell 7** feature t... | |
stackoverflow-73/extraction_0.txt | # How do I type annotate JSON data in Python? Ask Question Asked4 years, 1 month ago Modified 9 months ago Viewed 31k times This question shows research effort; it is useful and clear 13 Save this question. Timeline Show activity on this post. I am adding type annotations to a lot of code to make it clear to other devs... | |
stackoverflow-73/extraction_1.txt | ``` json.dumps( _obj_, _\*_, _skipkeys=False_, _ensure\_ascii=True_, _check\_circular=True_, _allow\_nan=True_, _cls=None_, _indent=None_, _separators=None_, _default=None_, _sort\_keys=False_, _\*\*kw_) ¶ Serialize _obj_ to a JSON formatted `str` using this conversion\ table. The arguments have the same meaning as in ... | |
stackoverflow-73/extraction_2.txt | ## Disallow dynamic typing ¶ The `Any` type is used to represent a value that has a dynamic type. The `--disallow-any` family of flags will disallow various uses of the `Any` type in a module – this lets us strategically disallow the use of dynamic typing in a controlled way. The following options are available: --disa... | |
hamcrest_classes/hamcrest_classes_36_1.txt | ibeMismatch
](../../org/hamcrest/TypeSafeDiagnosingMatcher.html#describeMismatch\(java.lang.Object,
org.hamcrest.Description\)) , [ matches
](../../org/hamcrest/TypeSafeDiagnosingMatcher.html#matches\(java.lang.Object\))
`
**Methods inherited from class org.hamcrest.[ BaseMatcher
](../../org/hamcrest/BaseMatcher.html... | |
hamcrest_classes/hamcrest_classes_36_0.txt | * * *
| [ **Overview** ](../../overview-summary.html) | [ **Package** ](package-summary.html) | **Class** | [ **Use** ](class-use/FeatureMatcher.html) | [ **Tree** ](package-tree.html) | [ **Deprecated** ](../../deprecated-list.html) | [ **Index** ](../../index-all.html) | [ **Help** ](../../help-doc.html)
-... | |
stackoverflow-74/extraction_0.txt | ``` public class HasProperty<T> extends TypeSafeMatcher<T> ``` A Matcher that checks that an object has a JavaBean property with the specified name. If an error occurs during introspection of the object then this is treated as a mismatch. - ### Constructor Summary | Constructor and Description | | --- | | `HasProperty(... | |
stackoverflow-74/extraction_1.txt | org.hamcrest.FeatureMatcher<T,U> Type Parameters:`T` \- The type of the object to be matched`U` \- The type of the feature to be matchedAll Implemented Interfaces:`Matcher<T>`, `SelfDescribing`Direct Known Subclasses:`CharSequenceLength`, `HasToString`, `IsArrayWithSize`, `IsCollectionWithSize`, `IsIterableWithSize`, `... | |
Miigon_blog/Miigon_blog_0_1.txt |
chapter1.txt
chapter2.txt
chapter3p1.txt
chapter3p2.txt
chapter3p10.txt
chapter10.txt
chapter11.txt
chapter20.txt
---|---
`
The number rigit after ` chapter ` is sorted correctly as well as the second
number after ` chapter3p ` .
# External resources
This blog only ... | |
Miigon_blog/Miigon_blog_0_0.txt | [  ](/)
[ Miigon's blog ](/)
My ideas, thoughts and experiences
* [ __ HOME ](/)
* [ __ CATEGORIES ](/categories/)
* [ __ TAGS ](/tags/)
* [ __ ARCHIVES ](/archives/)
* [ __ ABOUT ](/about/)
__ [ __ ](https://github.com/Miigon) [ __ ](https://twitter.com/) [ __
](java... | |
stackoverflow-75/extraction_0.txt | # StrCmpLogicalW function (shlwapi.h) - 02/22/2024 Compares two Unicode strings. Digits in the strings are considered as numerical content rather than text. This test is not case-sensitive. Section titled: Syntax ## Syntax Copy ```lang-cpp int StrCmpLogicalW( [in] PCWSTR psz1, [in] PCWSTR psz2 ); ``` Section titled: Pa... | |
stackoverflow-75/extraction_1.txt | The **`localeCompare()`** method of `String` values returns a number indicating whether this string comes before, or after, or is the same as the given string in sort order. In implementations with `Intl.Collator` API support, this method delegates to `Intl.Collator`. When comparing large numbers of strings, such as in... | |
stackoverflow-75/extraction_2.txt | The **`sort()`** method of `Array` instances sorts the elements of an array _in place_ and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code unit values. The time and space complexity o... | |
stackoverflow-75/extraction_3.txt | The **`localeCompare()`** method of `String` values returns a number indicating whether this string comes before, or after, or is the same as the given string in sort order. In implementations with `Intl.Collator` API support, this method delegates to `Intl.Collator`. When comparing large numbers of strings, such as in... | |
stackoverflow-76/extraction_1.txt | ## Arguments anchor string Input vector. Either a character vector, or something coercible to one. pattern Pattern to look for. The default interpretation is a regular expression, as described in stringi::about\_search\_regex. Control options with `regex()`. For `str_replace_all()` this can also be a named vector ( `c(... | |
stackoverflow-76/extraction_3.txt | ``` ## Usage anchor ``` str_replace(string, pattern, replacement) str_replace_all(string, pattern, replacement) ``` ## Arguments anchor string Input vector. Either a character vector, or something coercible to one. pattern Pattern to look for. The default interpretation is a regular expression, as described in stringi:... | |
django_modeltranslation/django_modeltranslation_2_0.txt | ### Navigation
* [ index ](genindex.html "General Index")
* [ next ](contribute.html "How to Contribute") |
* [ previous ](commands.html "Management Commands") |
* [ django-modeltranslation dev documentation ](index.html) »
# Caveats ¶
## Accessing Translated Fields Outside Views ¶
Since the modeltr... | |
stackoverflow-77/extraction_0.txt | ## django-parler Permalink: django-parler Simple Django model translations without nasty hacks. Features: - Nice admin integration. - Access translated attributes like regular attributes. - Automatic fallback to the default language. - Separate table for translated fields, compatible with django-hvad. - Plays nice with... | |
stackoverflow-77/extraction_1.txt | # Accessing Translated and Translation Fields ¶ Modeltranslation changes the behaviour of the translated fields. To explain this consider the news example from the Registering Models for Translation chapter again. The original `News` model looked like this: ``` class News(models.Model): title = models.CharField(max_len... | |
stackoverflow-77/extraction_2.txt | # django-translated-fields ¶ !CI Status Django model translation without magic-inflicted pain. ## Installation ¶ Install the package into your virtualenv: ``` pip install django-translated-fields ``` Add the package to your `INSTALLED_APPS`: ``` INSTALLED_APPS = [\ *INSTALLED_APPS,\ "translated_fields",\ ] ``` django-t... | |
stackoverflow-77/extraction_3.txt | ## Installation and usage After installing django-translated-fields in your Python environment all you have to do is define LANGUAGES in your settings and add translated fields to your models: ``` from django.db import models from django.utils.translation import gettext_lazy as _ from translated_fields import Translate... | |
stackoverflow-77/extraction_4.txt | Translate Django model fields in a PostgreSQL JSONField django-modeltrans.readthedocs.io/en/latest/ ### License BSD-3-Clause license 72\ stars 10\ forks Branches Tags Activity Star Notifications You must be signed in to change notification settings # zostera/django-modeltrans master **8** Branches **32** Tags Go to Bra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.