id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
stackoverflow-12/extraction_0.txt
Asked1 year, 5 months ago Modified 1 year, 5 months ago Viewed 131 times This question shows research effort; it is useful and clear -1 Save this question. Timeline Show activity on this post. I wrote a bot that change name of the telegram channel every N minutes But, when name of the channel is changed telegram automa...
stackoverflow-12/extraction_1.txt
Parameters: - **message\_id** ( `int`")) – Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be `0` and the relevant message will be ...
stackoverflow-12/extraction_2.txt
edit_caption( _inline\_message\_id:Optional\[str\]=None_, _caption:Optional\[str\]=None_, _parse\_mode:Optional\[Union\[str_, _Default\]\]=<Default('parse\_mode')>_, _caption\_entities:Optional\[list\[MessageEntity\]\]=None_, _show\_caption\_above\_media:Optional\[Union\[bool_, _Default\]\]=<Default('show\_caption\_abo...
stackoverflow-12/extraction_3.txt
async delete() Boolean Use this method to delete a message, including service messages, with the following limitations: - A message can only be deleted if it was sent less than 48 hours ago. - Bots can delete outgoing messages in private chats, groups, and supergroups. - Bots can delete incoming messages in private cha...
Python_pandas_functions/General_Function_27_0.txt
Skip to main content __ Back to top __ ` Ctrl ` \+ ` K ` [ ![pandas 2.2.2 documentation - Home](../../_static/pandas.svg) ](../../index.html) Site Navigation * [ Getting started ](../../getting_started/index.html) * [ User Guide ](../../user_guide/index.html) * [ API reference ](../index.html) * [ Developm...
Python_pandas_functions/General_Function_27_1.txt
ray when all that matters is identifying distinct values. factorize is available as both a top-level function ` pandas.factorize() ` , and as a method [ ` Series.factorize() ` ](pandas.Series.factorize.html#pandas.Series.factorize "pandas.Series.factorize") and [ ` Index.factorize() ` ](pandas.Index.factorize.htm...
stackoverflow-13/extraction_0.txt
# Categorical data This is an introduction to pandas categorical data type, including a short comparison with R’s `factor`. `Categoricals` are a pandas data type corresponding to categorical variables in statistics. A categorical variable takes on a limited, and usually fixed, number of possible values ( `categories`; ...
stackoverflow-13/extraction_1.txt
# pandas.factorize \# pandas.factorize( _values_, _sort=False_, _use\_na\_sentinel=True_, _size\_hint=None_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/algorithms.py#L610-L812) # Encode the object as an enumerated type or categorical variable. This method is useful for obtaining a numeric...
TypeScript/Top_type_1_0.txt
part1 ------------------- In mathematical logic and computer science, some type theories and type systems include a top type that is commonly denoted with top or the symbol ⊤. The top type is sometimes called also universal type, or universal supertype as all other types in the type system of interest are subtypes of i...
stackoverflow-14/extraction_0.txt
``` ## any TypeScript also has a special type, `any`, that you can use whenever you don’t want a particular value to cause typechecking errors. When a value is of type `any`, you can access any properties of it (which will in turn be of type `any`), call it like a function, assign it to (or from) a value of any type, o...
stackoverflow-14/extraction_1.txt
I am teaching a class on TypeScript fundamentals and I am trying to really understand the relationships between basic TS types. In all articles I saw, they put the any type very close to the top of the type hierarchy. Either ```hljs javascript +---------+ | unknown | +---------+ | v +-----+ | any | +-----+ | v all othe...
stackoverflow-14/extraction_2.txt
## new unknown top type permalink New `unknown` top type TypeScript 3.0 introduces a new top type `unknown`. `unknown` is the type-safe counterpart of `any`. Anything is assignable to `unknown`, but `unknown` isn’t assignable to anything but itself and `any` without a type assertion or a control flow based narrowing. L...
stackoverflow-14/extraction_3.txt
TypeScript 3.0 introduced a new `unknown` type which is the type-safe counterpart of the `any` type. The main difference between `unknown` and `any` is that `unknown` is much less permissive than `any`: we have to do some form of checking before performing most operations on values of type `unknown`, whereas we don't h...
stackoverflow-14/extraction_4.txt
## 15 The bottom type `never` In this chapter, we look at the special TypeScript type `never` which, roughly, is the type of things that never happen. As we’ll see, it has a surprising number of applications. ### 15.1 `never` is a bottom type If we interpret types as sets of values then: - Type `Sub` is a subtype of ty...
stackoverflow-14/extraction_5.txt
`never` is a bottom type. What that means is that `never` is a type with no values, and it is a subtype of every other type. If you imagine that a type corresponds to a set of values which are assignable to that type, then `never` corresponds to the empty set. > My understanding would be that specifying `(...args: neve...
stackoverflow-14/extraction_6.txt
## starting out permalink Starting out The basic rule for TypeScript’s structural type system is that `x` is compatible with `y` if `y` has at least the same members as `x`. For example consider the following code involving an interface named `Pet` which has a `name` property: ``` ts interface Pet { name: string; } let...
stackoverflow-15/extraction_0.txt
## Why You Should Generally Avoid Iterating Over Rows in pandas Permanent link The pandas library leverages array programming, or **vectorization**, to dramatically increase its performance. Vectorization is about finding ways to apply an operation to a set of values at once instead of one by one. For example, if you h...
stackoverflow-15/extraction_3.txt
Given an array **arr\[\]** of integers, the task is to find the **Next Greater Element** for each element of the array in order of their appearance in the array. **Note:** The Next Greater Element for an element x is the first greater element on the right side of **x** in the array. Elements for which no greater elemen...
stackoverflow-16/extraction_0.txt
``` ## 1 Answer 1 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 3 Save this answer. Timeline Show activity on this post. eth\_sendTransaction signs the transaction on the node - meaning the node needs...
stackoverflow-16/extraction_1.txt
# Introducing the Amoy Testnet for Polygon PoS ### A new, Sepolia-anchored testnet has been launched for Polygon PoS. Here’s what you need to know Polygon Labs January 12, 2024 Polygon Solutions Image source: Dribbble As Ethereum goes, so goes the Polygon PoS chain. After hearing from the community, the Amoy testnet fo...
stackoverflow-16/extraction_2.txt
# Polygon Mumbai Support Ending April 13th - Migrate to Amoy Author: Sameena Shaffeeullah Last updated: March 27, 20241 min read !polygon mumbai testnet deprecation notice **Polygon has informed us that they will** **deprecate Mumbai** **on April 13th, 2024**. We are planning on keeping our testnet nodes for Polygon ru...
stackoverflow-16/extraction_5.txt
## Blocks Methods provider.getBlock(block)⇒Promise< Block > source Get the _block_ from the network, where the `result.transactions` is a list of transaction hashes. await provider.getBlock(100004) // { // \_difficulty: { BigNumber: "3849295379889" }, // difficulty: 3849295379889, // extraData: '0x476574682f76312e302e3...
stackoverflow-16/extraction_6.txt
## Special Variables and Functions  There are special variables and functions which always exist in the global namespace and are mainly used to provide information about the blockchain or are general-use utility functions. ### Block and Transaction Properties  - `blockhash(uint blockNumber) returns (bytes32)`: hash o...
Python_Threading_Schedule/Python_schedule__1_0.txt
## Run a job every x minute ¶ import schedule import time def job(): print("I'm working...") # Run job every 3 second/minute/hour/day/week, # Starting 3 second/minute/hour/day/week from now schedule.every(3).seconds.do(job) schedule.every(3).minutes.do(job) ...
stackoverflow-17/extraction_0.txt
``` # schedule ¶ !https://github.com/dbader/schedule/workflows/Tests/badge.svg !https://coveralls.io/repos/dbader/schedule/badge.svg?branch=master !https://img.shields.io/pypi/v/schedule.svg Python job scheduling for humans. Run Python functions (or any other callable) periodically using a friendly syntax. - A simple t...
stackoverflow-17/extraction_1.txt
# Examples ¶ Eager to get started? This page gives a good introduction to Schedule. It assumes you already have Schedule installed. If you do not, head over to Installation. ## Run a job every x minute ¶ ``` import schedule import time def job(): print("I'm working...") # Run job every 3 second/minute/hour/day/week, # ...
stackoverflow-17/extraction_2.txt
### findElement and findElements in Selenium findElement and findElements in Selenium are methods used to locate web elements. These methods help interact with web elements during automation testing and enable precise actions on a webpage. ### Overview **Key Differences between findElement vs findElements in Selenium**...
stackoverflow-17/extraction_3.txt
# 5\. Waits ¶ These days, most of the web apps are using AJAX techniques. When a page is loaded by the browser, the elements within that page may load at different time intervals. This makes locating elements difficult: if an element is not yet present in the DOM, a locate function will raise an ElementNotVisibleExcept...
stackoverflow-17/extraction_4.txt
##### Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives **Teams** Q&A for work Connect and share knowledge within a single location that is structured and easy to search. Learn more about Teams # Is Selenium WebDriver thre...
stackoverflow-17/extraction_5.txt
# `apscheduler.triggers.interval`  _class_ apscheduler.triggers.interval.IntervalTrigger( _weeks=0_, _days=0_, _hours=0_, _minutes=0_, _seconds=0_, _start\_date=None_, _end\_date=None_, _timezone=None_, _jitter=None_)  Bases: `BaseTrigger` Triggers on specified intervals, starting on `start_date` if specified, `datet...
Python_StringIO/Python_StringIO_3_4.txt
_ mode = 'r' _ , _ closefd = True _ , _ opener = None _ ) ¶ A raw binary stream representing an OS-level file containing bytes data. It inherits from ` RawIOBase ` . The _name_ can be one of two things: * a character string or [ ` bytes ` ](stdtypes.html#bytes "bytes") object representing the p...
Python_StringIO/Python_StringIO_3_0.txt
## Class hierarchy ¶ The implementation of I/O streams is organized as a hierarchy of classes. First [ abstract base classes ](../glossary.html#term-abstract-base-class) (ABCs), which are used to specify the various categories of streams, then concrete classes providing the standard stream implementations. Note ...
stackoverflow-18/extraction_0.txt
PIL.Image.open( _fp:StrOrBytesPath \|IO\ [bytes")\]_, _mode:Literal\['r'\]='r'_, _formats:list")\ [str")\]\| tuple")\ [str"),...\]\| None")=None_)→ImageFile.ImageFile [\[source\]](https://pillow.readthedocs.io/en/stable/_modules/PIL/Image.html#open) ¶ Opens and identifies the given image file. This is a lazy operation;...
stackoverflow-18/extraction_2.txt
## More on reading images ¶ As described earlier, the `open()` function of the `Image` module is used to open an image file. In most cases, you simply pass it the filename as an argument. `Image.open()` can be used as a context manager: ``` from PIL import Image with Image.open("hopper.ppm") as im: ... ``` Copy to clip...
stackoverflow-18/extraction_3.txt
## Reading and writing images ¶ The Python Imaging Library supports a wide variety of image file formats. To read files from disk, use the `open()` function in the `Image` module. You don’t have to know the file format to open a file. The library automatically determines the format based on the contents of the file. To...
stackoverflow-19/extraction_0.txt
A less common use is to build row constructors. Let’s say we have a denormalized table that stores a user’s three favorite colors: ```line-numbers sql -- source: www.mssqltips.com CREATE TABLE dbo.UserColors ( UserID int PRIMARY KEY, FavoriteColor1 varchar(12) , FavoriteColor2 varchar(12) , FavoriteColor3 varchar(12) )...
stackoverflow-19/extraction_1.txt
## Performance Comparison So as to appease the pundits that would challenge me for not mentioning performance, let’s do a comparison between the two approaches. For example 1, I constructed a test harness that allowed me to introduce sparseness into the results. I was able to parameterize it so that I can set a sparsen...
stackoverflow-19/extraction_2.txt
# Set Operators - UNION (Transact-SQL) - 11/22/2024 **Applies to:** SQL Server Azure SQL Database Azure SQL Managed Instance Azure Synapse Analytics Analytics Platform System (PDW) SQL analytics endpoint in Microsoft Fabric Warehouse in Microsoft Fabric SQL database in Microsoft Fabric Preview Concatenates the results ...
stackoverflow-19/extraction_3.txt
## What is UNION ALL? It is a set operator that combines two datasets by stacking them on top of one another without checking if each record is unique or not. UNION ALL is useful when: 1. You’re sure that datasets you are combining don’t have duplicate rows 2. Keeping duplicate records is necessary for the task at hand...
Python_pandas_functions_with_style/DataFrame_93_4.txt
by.html) * [ Resampling ](../resampling.html) * [ Style ](../style.html) * [ Plotting ](../plotting.html) * [ Options and settings ](../options.html) * [ Extensions ](../extensions.html) * [ Testing ](../testing.html) * [ Missing values ](../missing_value.html) * [ __ ](../../index.html) * [ API refe...
stackoverflow-1/extraction_0.txt
# pandas.DataFrame.pivot \# DataFrame.pivot( _\*_, _columns_, _index=<no\_default>_, _values=<no\_default>_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/frame.py#L9339-L9346) # Return reshaped DataFrame organized by given index / column values. Reshape data (produce a “pivot” table) based ...
stackoverflow-20/extraction_1.txt
The **`toString()`** method of `Object` instances returns a string representing this object. This method is meant to be overridden by derived objects for custom type coercion logic. ## Syntax ### Parameters By default `toString()` takes no parameters. However, objects that inherit from `Object` may override it with the...
stackoverflow-20/extraction_2.txt
## Types | Characters | Meaning | | --- | --- | | `[xyz]<br>[a-c]` | **Character class:**<br>Matches any one of the enclosed characters. You can<br>specify a range of characters by using a hyphen, but if the hyphen<br>appears as the first or last character enclosed in the square brackets,<br>it is taken as a literal hy...
stackoverflow-21/extraction_0.txt
# Random Word API ## Endpoints ### /all Returns all stored words. This will be a huge data dump and will take a long time to fetch and will probably slow down your application. ### /word Return one stored word randomly. Options can be further specified, see the parameters menu. ### /languages Return a list of stored la...
stackoverflow-21/extraction_1.txt
``` # Random word API Permalink: Random word API ## It's alive at https://random-word-api.herokuapp.com/ Permalink: It's alive at https://random-word-api.herokuapp.com/ ## Endpoints Permalink: Endpoints ### /all Permalink: /all Return all stored words. This will be a huge data dump and will take a long time to fetch an...
stackoverflow-22/extraction_0.txt
## Issue Trackers and the "Can't Deliver Broadcast" Bug There is a bug, unique to Android 13, with this stack trace: ``` Fatal Exception: android.app.RemoteServiceException$CannotDeliverBroadcastException: can't deliver broadcast at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:1980) at and...
stackoverflow-22/extraction_1.txt
I'm seeing a crash come through Crashlytics that I'm unable to reproduce or locate the cause of. The crash only ever happens on Google Pixel devices running Android 12, and the crash always happens in the background. !Image showing the crash only happens on Pixel devices running Android 12 This is the crash log from Cr...
stackoverflow-22/extraction_2.txt
#### sk...@googlemail.com <sk...@googlemail.com> \#1Sep 6, 2022 10:13AM In firebase I see crashes only for Android 13 (Only Pixel devices) ``` Fatal Exception: android.app.RemoteServiceException$CannotDeliverBroadcastException: can't deliver broadcast at android.app.ActivityThread.throwRemoteServiceException(ActivityTh...
stackoverflow-22/extraction_4.txt
## Monitor available memory and memory usage You must find your app's memory usage problems before you can fix them. The Memory Profiler in Android Studio helps you find and diagnose memory issues in the following ways: - See how your app allocates memory over time. The Memory Profiler shows a realtime graph of how muc...
stackoverflow-22/extraction_6.txt
# Firebase Messaging : Fatal Exception: android.app.RemoteServiceException$CannotDeliverBroadcastException: can't deliver broadcast\#6613 New issue Copy link New issue Copy link Closed Closed Firebase Messaging : Fatal Exception: android.app.RemoteServiceException$CannotDeliverBroadcastException: can't deliver broadcas...
Argo_Workflows_Walk_through/Argo_Workflows_Walk_through_4_3.txt
o support conditional execution. The syntax is implemented by [ ` govaluate ` ](https://github.com/Knetic/govaluate) which offers the support for complex syntax. See in the example: apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: coinflip- spec: entrypoint:...
stackoverflow-23/extraction_1.txt
# Conditionals ¶ We also support conditional execution. The syntax is implemented by `govaluate` which offers the support for complex syntax. See in the example: ``` apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: coinflip- spec: entrypoint: coinflip templates: - name: coinflip steps: # flip a c...
stackoverflow-23/extraction_2.txt
# Output Parameters ¶ Output parameters provide a general mechanism to use the result of a step as a parameter (and not just as an artifact). This allows you to use the result from any type of step, not just a `script`, for conditional tests, loops, and arguments. Output parameters work similarly to `script result` exc...
stackoverflow-23/extraction_3.txt
``` Skip to content argoproj/ **argo-workflows** Public - Notifications You must be signed in to change notification settings - Fork\\ 3.4k - Star\\ 16k ## Collapse file tree ## Files main Search this repository / # dag-conditional-parameters.yaml Copy path BlameMore file actions BlameMore file actions ## Latest commit...
stackoverflow-23/extraction_4.txt
``` apiVersion:argoproj.io/v1alpha1 kind:Workflow metadata: generateName:dag-conditional-parameter- labels: workflows.argoproj.io/test:"true" annotations: workflows.argoproj.io/description: | Conditional parameters provide a way to choose the output parameters based on expression. In this example DAG template has two t...
google_protobuf/google_protobuf_20_0.txt
# google.protobuf.json_format ¶ Contains routines for printing protocol messages in JSON format. Simple usage example: > # Create a proto object and serialize it to a json format string. message = > my_proto_pb2.MyMessage(foo=’bar’) json_string = > json_format.MessageToJson(message) > > # Parse a json format strin...
stackoverflow-24/extraction_0.txt
### Parsing and Serialization Finally, each protocol buffer class has methods for writing and reading messages of your chosen type using the protocol buffer binary format. These include: - `SerializeToString()`: serializes the message and returns it as a string. Note that the bytes are binary, not text; we only use the...
stackoverflow-24/extraction_1.txt
``` - google - protobuf - json\_format | | | | --- | --- | | ## Functions | | def | MessageToDict ( message, including\_default\_value\_fields=False, preserving\_proto\_field\_name=False, use\_integers\_for\_enums=False, descriptor\_pool=None) | | | | def | MessageToDict ( message, including\_default\_value\_fields=Fal...
stackoverflow-24/extraction_2.txt
``` def __dir__(self): try: names = set(dir(type)) names.update( ( "meta", "pb", "wrap", "serialize", "deserialize", "to_json", "from_json", "to_dict", "copy_from", ) ) desc = self.pb().DESCRIPTOR names.update(t.name for t in desc.nested_types) names.update(e.name for e in desc.enum_types) return names except Attribute...
stackoverflow-24/extraction_3.txt
``` # PredictResponse bookmark_border Stay organized with collections Save and categorize content based on your preferences. Response message for `PredictionService.Predict`. Fields `predictions[]``value (Value format)` The predictions that are the output of the predictions call. The schema of any single prediction may...
stackoverflow-24/extraction_4.txt
# Predict bookmark\_border Stay organized with collections Save and categorize content based on your preferences. - On this page - Code sample - What's next Gets prediction using the predict method. ## Code sample PythonMore Before trying this sample, follow the Python setup instructions in the Vertex AI quickstart usi...
cpp_utility/cpp_classes_5_3.txt
integer sequences ** integer_sequence ** (C++14) [ [edit] ](https://en.cppreference.com/mwiki/index.php?title=Template:cpp/meta/navbar_content&action=edit) Defined in header ` [ <utility> ](/w/cpp/header/utility "cpp/header/utility") ` | | ---|---|--- template < class T, T... Ints > class integer_...
stackoverflow-25/extraction_0.txt
``` Defined in header <algorithm> template<class ForwardIt, class Generator > void generate( ForwardIt first, ForwardIt last, Generator g ); | (1) | (constexpr since C++20) | template<class ExecutionPolicy, class ForwardIt, class Generator > void generate( ExecutionPolicy&& policy, ForwardIt first, ForwardIt last, Gene...
stackoverflow-25/extraction_1.txt
# How can I initialise a constexpr array with values using std::generate Ask Question Asked4 years, 5 months ago Modified 1 year, 4 months ago Viewed 2k times This question shows research effort; it is useful and clear 2 Save this question. Timeline Show activity on this post. For example, if I wanted a `constexpr std:...
Django_template/Built-in_template_tags_filters_38_0.txt
### ` with ` ¶ Caches a complex variable under a simpler name. This is useful when accessing an “expensive” method (e.g., one that hits the database) multiple times. For example: {% with total=business.employees.count %} {{ total }} employee{{ total|pluralize }} {% endwith %} The po...
stackoverflow-26/extraction_0.txt
### `url` ¶ Returns an absolute path reference (a URL without the domain name) matching a given view and optional parameters. Any special characters in the resulting path will be encoded using `iri_to_uri()`. This is a way to output links without violating the DRY principle by having to hard-code URLs in your templates...
stackoverflow-26/extraction_1.txt
Asked9 years, 1 month ago Modified 9 years, 1 month ago Viewed 572 times This question shows research effort; it is useful and clear 2 Save this question. Timeline Show activity on this post. Is there a way to set explicitly set precedence in Django template filters? Like a sort of brackets system. I'm trying to say ``...
stackoverflow-26/extraction_2.txt
### Simple tags ¶ django.template.Library.simple\_tag() ¶ Many template tags take a number of arguments – strings or template variables – and return a result after doing some processing based solely on the input arguments and some external information. For example, a `current_time` tag might accept a format string and ...
stackoverflow-26/extraction_4.txt
## 6 Answers 6 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 73 Save this answer. Timeline Show activity on this post. `object.__class__.__name__` or `object._meta.object_name` should give you the nam...
stackoverflow-26/extraction_5.txt
## `CreateView` ¶ _class_ django.views.generic.edit.CreateView ¶ A view that displays a form for creating an object, redisplaying the form with validation errors (if there are any) and saving the object. **Attributes** template\_name\_suffix ¶ The `CreateView` page displayed to a `GET` request uses a `template_name_suf...
stackoverflow-27/extraction_1.txt
# numpy.memmap \# _class_ numpy.memmap( _filename_, _dtype=<class'numpy.ubyte'>_, _mode='r+'_, _offset=0_, _shape=None_, _order='C'_) [\[source\]](https://github.com/numpy/numpy/blob/main/numpy/_core/memmap.py#L23-L363) # Create a memory-map to an array stored in a _binary_ file on disk. Memory-mapped files are used fo...
stackoverflow-27/extraction_2.txt
# scipy.io.mmwrite \# scipy.io.mmwrite( _target_, _a_, _comment=''_, _field=None_, _precision=None_, _symmetry=None_) [\[source\]](https://github.com/scipy/scipy/blob/v1.11.4/scipy/io/_mmio.py#L134-L242) # Writes the sparse or dense array _a_ to Matrix Market file-like _target_. Parameters:**target** str or file-like M...
stackoverflow-27/extraction_3.txt
# numpy.savez # numpy.savez( _file_, _\*args_, _allow\_pickle=True_, _\*\*kwds_) [[source]](https://github.com/numpy/numpy/blob/main/numpy/lib/_npyio_impl.py#L593-L686) # Save several arrays into a single file in uncompressed `.npz` format. Provide arrays as keyword arguments to store them under the corresponding name ...
snowflake_random_controlled_distribution/snowflake_random_2_1.txt
a pseudo-random 64-bit integer. ## Syntax ¶ RANDOM([seed]) Copy ## Arguments ¶ **Optional:** ` _ seed _ ` The seed is an integer. Different seeds cause RANDOM to produce different output values. If no seed is provided, a random seed is chosen in a platform-specific manner. ## Us...
snowflake_random_controlled_distribution/snowflake_controlled_distribution_4_1.txt
formly-distributed pseudo-random number in the inclusive range [ ` _ min _ ` , ` _ max _ ` ]. ## Syntax ¶ UNIFORM( <min> , <max> , <gen> ) Copy ## Arguments ¶ ` _ min _ ` A constant specifying the minimum value (inclusive) of the generated number. ` _ max _ ` A constant sp...
go_runtime/go_runtime_15_0.txt
#### func [ LockOSThread ](https://cs.opensource.google/go/go/+/go1.22.1:src/runtime/proc.go;l=5188) ¶ func LockOSThread() LockOSThread wires the calling goroutine to its current operating system thread. The calling goroutine will always execute in that thread, and no other goroutine will execute in it...
stackoverflow-29/extraction_0.txt
```go package hotkey import ( "errors" "runtime" "sync" "sync/atomic" "time" "golang.design/x/hotkey/internal/win" ) type platformHotkey struct { mu sync.Mutex hotkeyId uint64 registered bool funcs chan func() canceled chan struct{} } var hotkeyId uint64 // atomic // register registers a system hotkey. It returns an er...
stackoverflow-29/extraction_1.txt
```go type platformHotkey struct { mu sync.Mutex hotkeyId uint64 registered bool funcs chan func() canceled chan struct{} } var hotkeyId uint64 // atomic // register registers a system hotkey. It returns an error if // the registration is failed. This could be that the hotkey is // conflict with other hotkeys. func (hk...
stackoverflow-29/extraction_2.txt
## Parameters `[in, optional] hWnd` Type: **HWND** A handle to the window that will receive WM\_HOTKEY messages generated by the hot key. If this parameter is **NULL**, **WM\_HOTKEY** messages are posted to the message queue of the calling thread and must be processed in the message loop. `[in] id` Type: **int** The id...
stackoverflow-29/extraction_3.txt
According to the documentation for the `PeekMessage` function, the second parameter is… > _hWnd_ \[in, optional\] > > > Type: **HWND** > > > > A handle to the window whose messages are to be retrieved. The window must belong to the current thread. > > > > If _hWnd_ is `NULL`, `PeekMessage` retrieves messages for any wi...
stackoverflow-29/extraction_4.txt
## Creating a Message Loop The system does not automatically create a message queue for each thread. Instead, the system creates a message queue only for threads that perform operations which require a message queue. If the thread creates one or more windows, a message loop must be provided; this message loop retrieves...
stackoverflow-29/extraction_6.txt
# hotkey !PkgGoDev[](https://camo.githubusercontent.com/f23a7c01ee092b6530c89a1d2657eb83f34aacd9cf7b36c93697e43acb63fa8d/68747470733a2f2f6368616e676b756e2e64652f75726c737461743f6d6f64653d676974687562267265706f3d676f6c616e672d64657369676e2f686f746b6579)!hotkey Permalink: hotkey cross platform hotkey package in Go ``` im...
Python_development_tools/typing_12_0.txt
#### Aliases to other ABCs in [ ` collections.abc ` ](collections.abc.html#module-collections.abc "collections.abc: Abstract base classes for containers") ¶ _ class _ typing. Iterable ( _ Generic[T_co] _ ) ¶ Deprecated alias to [ ` collections.abc.Iterable ` ](collections.abc.html#collections.abc.Ite...
stackoverflow-2/extraction_0.txt
# `collections.abc` — Abstract Base Classes for Containers ¶ Added in version 3.3: Formerly, this module was part of the `collections` module. **Source code:** Lib/\_collections\_abc.py * * * This module provides abstract base classes that can be used to test whether a class provides a particular interface; for example...
stackoverflow-2/extraction_3.txt
## Implementation Starting with Python 3.7, when `from __future__ import annotations` is used, function and variable annotations can parameterize standard collections directly. Example: ``` from __future__ import annotations def find(haystack: dict[str, list[int]]) -> int: ... ``` Usefulness of this syntax before PEP 5...
stackoverflow-2/extraction_4.txt
## Predefined protocols ¶ The `typing`") module defines various protocol classes that correspond to places where duck typing is commonly used in Python, such as [`Iterable[T]`](https://docs.python.org/3/library/typing.html#typing.Iterable "(in Python v3.13)"). If a class defines a suitable `__iter__`") method, type che...
linux_man_1/linux_man_1_227_0.txt
[ man7.org ](../../../index.html) > Linux > [ man-pages ](../index.html) | [ Linux/UNIX system programming training ](http://man7.org/training/) ---|--- * * * # objcopy(1) — Linux manual page NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SEE ALSO | COPYRIGHT | COLOPHON --- | _O...
stackoverflow-30/extraction_0.txt
### 3.4 `od`: Write files in octal or other formats ¶ `od` writes an unambiguous representation of each file (‘ `-`’ means standard input), or standard input if none are given. Synopses: ``` od [option]... [file]... od [-abcdfilosx]... [file] [[+]offset[.][b]] od [option]... --traditional [file] [[+]offset[.][b] [[+]la...
stackoverflow-30/extraction_1.txt
``` #### **NAME** ``` xxd - make a hexdump or do the reverse. ``` #### **SYNOPSIS** ``` xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [options] [infile [outfile]] ``` #### **DESCRIPTION** ``` xxd creates a hex dump of a given file or standard input. It can also convert a hex dump back to its original binar...
fastapi_security_advanced_user_guide/fastapi_security_5_5.txt
a/image02.png) ### Order of tags ¶ The order of each tag metadata dictionary also defines the order shown in the docs UI. For example, even though ` users ` would go after ` items ` in alphabetical order, it is shown before them, because we added their metadata as the first dictionary in the list. ## OpenAPI URL...
stackoverflow-31/extraction_1.txt
| PARAMETER | DESCRIPTION | | --- | --- | | `openapi_url` | The URL where the OpenAPI schema will be served from.<br>If you set it to `None`, no OpenAPI schema will be served publicly, and<br>the default automatic endpoints `/docs` and `/redoc` will also be<br>disabled.<br>Read more in the<br>FastAPI docs for Metadata ...
stackoverflow-31/extraction_2.txt
## 3 Answers 3 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 44 Save this answer. Timeline Show activity on this post. Construct your app with `docs_url=None` and `redoc_url=None` and FastAPI won't mo...
stackoverflow-31/extraction_3.txt
## About security, APIs, and docs ¶ Hiding your documentation user interfaces in production _shouldn't_ be the way to protect your API. That doesn't add any extra security to your API, the _path operations_ will still be available where they are. If there's a security flaw in your code, it will still exist. Hiding the ...
stackoverflow-32/extraction_0.txt
### `IntegerField` ¶ _class_ IntegerField( _\*\*kwargs_) [\[source\]](https://github.com/django/django/blob/stable/5.2.x/django/forms/fields.py#L311) ¶ - Default widget: `NumberInput` when `Field.localize` is `False`, else `TextInput`. - Empty value: `None` - Normalizes to: A Python integer. - Validates that the given ...
stackoverflow-32/extraction_1.txt
## Using validation in practice ¶ The previous sections explained how validation works in general for forms. Since it can sometimes be easier to put things into place by seeing each feature in use, here are a series of small examples that use each of the previous features. ### Using validators ¶ Django’s form (and mode...
stackoverflow-32/extraction_2.txt
``` class JSONField(CheckFieldDefaultMixin, Field): empty_strings_allowed = False description = _("A JSON object") default_error_messages = { "invalid": _("Value must be valid JSON."), } _default_hint = ("dict", "{}") def __init__( self, verbose_name=None, name=None, encoder=None, decoder=None, **kwargs, ): if encoder ...
stackoverflow-32/extraction_3.txt
# django-jsonform ¶ **django-jsonform** provides a user-friendly form interface for editing JSON data in Django admin. You declare your data structure using JSON schema and it will generate a dynamic form for creating and editing the data. It also supports Postgres `ArrayField` with multiple levels of nesting. ## Proje...
stackoverflow-32/extraction_4.txt
## `ArrayField` ¶ _class_ ArrayField( _base\_field_, _size=None_, _\*\*options_) ¶ A field for storing lists of data. Most field types can be used, and you pass another field instance as the `base_field`. You may also specify a `size`. `ArrayField` can be nested to store multi-dimensional arrays. If you give the field ...
pandas_user_guide/pandas_user_guide_13_4.txt
In [41]: use_expanding Out[41]: [True, False, True, False, True] In [42]: df = pd.DataFrame({"values": range(5)}) In [43]: df Out[43]: values 0 0 1 1 2 2 3 3 4 4 and we want to use an expanding window where ` use_expanding `...
pandas_user_guide/pandas_user_guide_13_0.txt
Skip to main content __ Back to top __ ` Ctrl ` \+ ` K ` [ ![pandas 2.2.1 documentation - Home](../_static/pandas.svg) ](../index.html) Site Navigation * [ Getting started ](../getting_started/index.html) * [ User Guide ](index.html) * [ API reference ](../reference/index.html) * [ Development ](../develop...