id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
stackoverflow-33/extraction_0.txt | # pandas.DataFrame.rolling \# DataFrame.rolling( _window_, _min\_periods=None_, _center=False_, _win\_type=None_, _on=None_, _axis=<no\_default>_, _closed=None_, _step=None_, _method='single'_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/generic.py#L12549-L12610) # Provide rolling window c... | |
Microsoft_interfaces_attributes/default_interface_methods_14_0.txt | ### Virtual Modifier vs Sealed Modifier
From [ Aleksey Tsingauz ](https://github.com/AlekseyTs) :
> We decided to allow modifiers explicitly stated on interface members, unless
> there is a reason to disallow some of them. This brings an interesting
> question around virtual modifier. Should it be required on member... | |
stackoverflow-34/extraction_0.txt | ### Modifiers in interfaces The syntax for an interface is relaxed to permit modifiers on its members. The following are permitted: `private`, `protected`, `internal`, `public`, `virtual`, `abstract`, `sealed`, `static`, `extern`, and `partial`. An interface member whose declaration includes a body is a `virtual` membe... | |
stackoverflow-34/extraction_1.txt | ### Concrete methods in interfaces The simplest form of this feature is the ability to declare a _concrete method_ in an interface, which is a method with a body. Copy ```lang-csharp interface IA { void M() { WriteLine("IA.M"); } } ``` A class that implements this interface need not implement its concrete method. Copy ... | |
stackoverflow-34/extraction_2.txt | ### Concrete methods in interfaces The simplest form of this feature is the ability to declare a _concrete method_ in an interface, which is a method with a body. Copy ```lang-csharp interface IA { void M() { WriteLine("IA.M"); } } ``` A class that implements this interface need not implement its concrete method. Copy ... | |
react_hooks_components/react_hooks_16_2.txt | Hook that lets you [ synchronize a component with an
external system. ](/learn/synchronizing-with-effects)
useEffect(setup, dependencies?)
* Reference
* ` useEffect(setup, dependencies?) `
* Usage
* Connecting to an external system
* Wrapping Effects in custom Hooks
* Controlling... | |
stackoverflow-35/extraction_0.txt | ### Anti-pattern: Unconditionally copying props to state A common misconception is that `getDerivedStateFromProps` and `componentWillReceiveProps` are only called when props “change”. These lifecycles are called any time a parent component rerenders, regardless of whether the props are “different” from before. Because ... | |
stackoverflow-35/extraction_1.txt | # Managing State Link for this heading Intermediate As your application grows, it helps to be more intentional about how your state is organized and how the data flows between your components. Redundant or duplicate state is a common source of bugs. In this chapter, you’ll learn how to structure your state well, how to... | |
stackoverflow-35/extraction_2.txt | ## Common Bugs When Using Derived State The terms “controlled” and “uncontrolled” usually refer to form inputs, but they can also describe where any component’s data lives. Data passed in as props can be thought of as **controlled** (because the parent component _controls_ that data). Data that exists only in internal ... | |
stackoverflow-35/extraction_3.txt | ## How to write an Effect Link for How to write an Effect To write an Effect, follow these three steps: 1. **Declare an Effect.** By default, your Effect will run after every commit. 2. **Specify the Effect dependencies.** Most Effects should only re-run _when needed_ rather than after every render. For example, a fade... | |
stackoverflow-36/extraction_0.txt | Asked9 years, 3 months ago Modified 4 years, 11 months ago Viewed 25k times This question shows research effort; it is useful and clear 24 Save this question. Timeline Show activity on this post. I want to make the switch to Antergos. When opening Unetbootin, I can't open it successfully. Here is what happens when I op... | |
stackoverflow-36/extraction_1.txt | # MIT Shared Memory Extension or MIT-SHM over ssh Ask Question Asked11 years, 2 months ago Modified 6 years, 11 months ago Viewed 6k times This question shows research effort; it is useful and clear 3 Save this question. Timeline Show activity on this post. I successfully created a `privileged lxc archlinux container` ... | |
stackoverflow-36/extraction_3.txt | I am connected to a ssh server using ssh -Y username@adress. On the server I run python2.7 using IDLE. If I use matplotlib I can see the outcome graphs on client. This suggests the graphical forwarding has no problem. However, when I am using OpenCV: ``` cv2.imshow('img_final', img_final) cv2.waitKey(0) cv2.destroyAllW... | |
stackoverflow-36/extraction_4.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 2 Save this answer. Timeline Show activity on this post. I tried several methods of improving the performance of OpenCV's `imshow()` over an... | |
selenium_locating_strategies_basics/locating_strategies_0_23.txt | nodes in an XML document. As HTML can
be an implementation of XML (XHTML), Selenium users can leverage this powerful
language to target elements in their web applications. XPath extends beyond
(as well as supporting) the simple methods of locating by id or name
attributes, and opens up all sorts of new possibilities su... | |
stackoverflow-37/extraction_0.txt | Selenium just removed that method in version `4.3.0`. See the CHANGES: https://github.com/SeleniumHQ/selenium/blob/a4995e2c096239b42c373f26498a6c9bb4f2b3e7/py/CHANGES ```hljs python Selenium 4.3.0 * Deprecated find_element_by_* and find_elements_by_* are now removed (#10712) * Deprecated Opera support has been removed ... | |
stackoverflow-37/extraction_3.txt | ## \# AttributeError: 'WebDriver' object has no attribute 'find\_element\_by\_xpath' **The Selenium "AttributeError: 'WebDriver' object has no attribute** **'find\_element\_by\_xpath'" occurs because the `find_element_by_xpath` method has** **been deprecated and removed starting Selenium 4.3.0.** Use the `find_element`... | |
stackoverflow-38/extraction_2.txt | # Features - Computing of relative deltas (next month, next year, next Monday, last week of month, etc); - Computing of relative deltas between two given date and/or datetime objects; - Computing of dates based on very flexible recurrence rules, using a superset of the iCalendar specification. Parsing of RFC strings ... | |
stackoverflow-38/extraction_3.txt | I'm trying to use vobject, without success, to get a list of datetime objects for all event occurrences (see the RRULE paramether that sets the event to be repeated daily until a date) for a given vCalendar, which seems to be well-formatted (apparently): ```hljs python BEGIN:VCALENDAR CALSCALE:GREGORIAN PRODID:iCalenda... | |
stackoverflow-38/extraction_4.txt | ## Description The recurrence rule, if specified, is used in computing the recurrence set. The recurrence set is the complete set of recurrence instances for a calendar component. The recurrence set is generated by considering the initial "DTSTART" property along with the "RRULE", "RDATE", and "EXDATE" properties conta... | |
stackoverflow-38/extraction_6.txt | # recurring-ical-events 3.8.0 pip install recurring-ical-eventsCopy PIP instructions Latest version Released: Jun 10, 2025 Calculate recurrence times of events, todos, alarms and journals based on icalendar RFC5545. ### Navigation ### Verified details _These details have been verified by PyPI_ ###### Maintainers !Avata... | |
stackoverflow-39/extraction_0.txt | ``` # StuffDocumentsChain # _class_ langchain.chains.combine\_documents.stuff.StuffDocumentsChain [[source]](https://python.langchain.com/api_reference/_modules/langchain/chains/combine_documents/stuff.html#StuffDocumentsChain) # Bases: `BaseCombineDocumentsChain` Deprecated since version 0.2.13: This class is deprecat... | |
stackoverflow-39/extraction_1.txt | _class_ langchain.chains.retrieval\_qa.base.RetrievalQA [\[source\]](https://python.langchain.com/api_reference/_modules/langchain/chains/retrieval_qa/base.html#RetrievalQA) # Bases: `BaseRetrievalQA` Deprecated since version 0.1.17: This class is deprecated. Use the create\_retrieval\_chain constructor instead. See mi... | |
stackoverflow-39/extraction_2.txt | ``` _class_ langchain.chains.retrieval\_qa.base.RetrievalQA [[source]](https://python.langchain.com/api_reference/_modules/langchain/chains/retrieval_qa/base.html#RetrievalQA) # Bases: `BaseRetrievalQA` Deprecated since version 0.1.17: This class is deprecated. Use the create\_retrieval\_chain constructor instead. See ... | |
stackoverflow-39/extraction_3.txt | # create\_retrieval\_chain \# langchain.chains.retrieval.create\_retrieval\_chain(_retriever:BaseRetriever \| Runnable\dict,list\[ [Document\]\]_,_combine\_docs\_chain:Runnable\[dict\[str,Any\],str\]_,)→Runnable [\[source\]](https://python.langchain.com/api_reference/_modules/langchain/chains/retrieval.html#create_retr... | |
stackoverflow-39/extraction_4.txt | # create\_stuff\_documents\_chain \# langchain.chains.combine\_documents.stuff.create\_stuff\_documents\_chain(_llm:Runnable\ [PromptValue \|str\|Sequence\ [BaseMessage \|list\[str\]\|tuple\[str,str\]\|str\|dict\[str,Any\]\], BaseMessage \|str\]_,_prompt:BasePromptTemplate_,_\*_,_output\_parser:BaseOutputParser \|None=... | |
stackoverflow-39/extraction_5.txt | ## Creating a retriever from a vectorstore You can build a retriever from a vectorstore using its .as\_retriever method. Let's walk through an example. First we instantiate a vectorstore. We will use an in-memory FAISS vectorstore: ```codeBlockLines_e6Vv from langchain_community.document_loaders import TextLoader fro... | |
stackoverflow-39/extraction_6.txt | ## RAG application Let's reconstruct the Q&A app with sources we built over the LLM Powered Autonomous Agents blog post by Lilian Weng in the RAG tutorial. First we index our documents: ```codeBlockLines_e6Vv import bs4 from langchain import hub from langchain_community.document_loaders import WebBaseLoader from lang... | |
stackoverflow-39/extraction_7.txt | # Identifying the Issue In the context of RetrievalQA, specifying `return_source_documents=True` allows us to retrieve not only the final answer from the Language Model (LLM) but also the documents passed as context to the LLM. However, **the challenge arises as it's not clear which specific documents were utilized to ... | |
stackoverflow-39/extraction_8.txt | Using `RetrievalQAChain` is going to get deprecated so I am trying to use `createRetrievalChain` instead. But I am getting the following error ```hljs javascript throw new Error(`Prompt must include a "${DOCUMENTS_KEY}" variable`); ^ Error: Prompt must include a "context" variable ``` This is my code, I am using google... | |
Python_pandas_functions_with_style/General_Function_5_1.txt |
Concatenate pandas objects along a particular axis.
Allows optional set logic along the other axes.
Can also add a layer of hierarchical indexing on the concatenation axis, which
may be useful if the labels are the same (or overlapping) on the passed axis
number.
Parameters :
**objs** a sequence or map... | |
Python_pandas_functions_with_style/General_Function_5_2.txt | ow ID'])
Series name Row ID
s1 0 a
1 b
s2 0 c
1 d
dtype: object
Combine two ` DataFrame ` objects with identical columns.
>>> df1 = pd.DataFrame([['a', 1], ['b', 2]],
... c... | |
stackoverflow-3/extraction_0.txt | # Merge a list of dataframes by one column with reduce function Ask Question Asked3 years, 8 months ago Modified 3 years, 8 months ago Viewed 7k times This question shows research effort; it is useful and clear 1 Save this question. Timeline Show activity on this post. i have edited this post with the specific case: i ... | |
stackoverflow-3/extraction_1.txt | # pandas.concat \# pandas.concat( _objs_, _\*_, _axis=0_, _join='outer'_, _ignore\_index=False_, _keys=None_, _levels=None_, _names=None_, _verify\_integrity=False_, _sort=False_, _copy=None_) [\[source\]](https://github.com/pandas-dev/pandas/blob/v2.3.2/pandas/core/reshape/concat.py#L157-L395) # Concatenate pandas obj... | |
stackoverflow-40/extraction_0.txt | ### 9.2. Common Method Properties #### 9.2.1. Safe Methods Request methods are considered "safe" if their defined semantics are essentially read-only; i.e., the client does not request, and does not expect, any state change on the origin server as a result of applying a safe method to a target resource. Likewise, reaso... | |
stackoverflow-40/extraction_1.txt | 1. Introduction This document applies to services that provide resources that clients can access through URIs as defined in [RFC3986]. For example, in the context of HTTP, a browser is a client that displays the content of a web page. Crawlers are automated clients. Search engines, for instance, have crawlers to recurs... | |
stackoverflow-40/extraction_2.txt | # `urllib.robotparser` — Parser for robots.txt ¶ **Source code:** Lib/urllib/robotparser.py * * * This module provides a single class, `RobotFileParser`, which answers questions about whether or not a particular user agent can fetch a URL on the web site that published the `robots.txt` file. For more details on the str... | |
stackoverflow-40/extraction_3.txt | ## Client Session ¶ Client session is the recommended interface for making HTTP requests. Session encapsulates a _connection pool_ ( _connector_ instance) and supports keepalives by default. Unless you are connecting to a large, unknown number of different servers over the lifetime of your application, it is suggested ... | |
stackoverflow-40/extraction_4.txt | ## Make a Request ¶ Begin by importing the aiohttp module, and asyncio: ``` import aiohttp import asyncio ``` Now, let’s try to get a web-page. For example let’s query `http://httpbin.org/get`: ``` async def main(): async with aiohttp.ClientSession() as session: async with session.get('http://httpbin.org/get') as resp:... | |
stackoverflow-40/extraction_5.txt | # uvloop ¶ uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is released under the MIT license. uvloop and asyncio, combined with the power of async/await in Python 3.5, makes it easier than ever to write high-performance networking code in Python. uvloop makes asyncio fast. In fact, it i... | |
stackoverflow-40/extraction_6.txt | uvloop is a fast, drop-in replacement of the built-in asyncio event loop. uvloop is implemented in Cython and uses libuv under the hood. The project documentation can be found here. Please also check out the wiki. ## Performance Permalink: Performance uvloop makes asyncio 2-4x faster. !https://raw.githubusercontent.com... | |
python_descriptors_attribute/Peter_Lamut_blog_8_1.txt | __.DescriptorX at 0x7fa0b2ff3790>
Accessing a descriptor does not simply return it as it is the case with non-
descriptor attributes, but instead invokes its ` __get__() ` method and return
the result.
>>> Foo.x
# prints: __get__(): Accessing x from the class <class '__main__.Foo'>
<__main_... | |
python_descriptors_attribute/real_python_0_1.txt | er.php?u=https%3A//realpython.com/python-
descriptors/) [ Email ](mailto:?subject=Python article for you&body=Check out
this Python
tutorial:%0A%0APython%20Descriptors%3A%20An%20Introduction%0A%0Ahttps%3A//realpython.com/python-
descriptors/)
Table of Contents
* What Are Python Descriptors?
* How Descriptors Wor... | |
stackoverflow-41/extraction_0.txt | ### Technical Tutorial ¶ What follows is a more technical tutorial for the mechanics and details of how descriptors work. ### Abstract ¶ Defines descriptors, summarizes the protocol, and shows how descriptors are called. Provides an example showing how object relational mappings work. Learning about descriptors not onl... | |
stackoverflow-41/extraction_1.txt | ## Unravelling `object.__getattribute__()` While getting an implementation of `getattr()` is nice, it unfortunately doesn't tell us a whole lot about Python's rules for looking up an attribute since so much is handled in an object's `__getattribute__()` method. As such, I will cover how `object.__getattribute__()` work... | |
stackoverflow-42/extraction_0.txt | ## Project only properties you need EF Core makes it very easy to query out entity instances, and then use those instances in code. However, querying entity instances can frequently pull back more data than necessary from your database. Consider the following: Copy ```lang-csharp await foreach (var blog in context.Blog... | |
stackoverflow-42/extraction_1.txt | ## Table splitting EF Core allows to map two or more entities to a single row. This is called _table splitting_ or _table sharing_. ### Configuration To use table splitting the entity types need to be mapped to the same table, have the primary keys mapped to the same columns and at least one relationship configured bet... | |
C++_Classes_Templates/gcc_bugs_0_0.txt | GCC Bugzilla – Bug 107945 static constexpr incomplete (depedent) data member
of a class template and in-member initialized incorrectly accepted Last
modified: 2022-12-01 22:31:00 UTC
* [ Home ](./)
* | [ New ](enter_bug.cgi?product=gcc)
* | [ Browse ](describecomponents.cgi)
* | [ Search ](query.cgi)
* ... | |
stackoverflow-43/extraction_0.txt | ### Explanation Static members of a class are not associated with the objects of the class: they are independent variables with static or thread(since C++11) storage duration or regular functions. The static keyword is only used with the declaration of a static member, inside the class definition, but not with the defi... | |
stackoverflow-43/extraction_1.txt | Bug ID: 107945 Summary: GCC accepts invalid program involving constexpr static data member of class template Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jlame646 at gmail dot com Target Milestone: --- The following invalid... | |
stackoverflow-43/extraction_2.txt | - `constinit` - asserts that a variable has static initialization, i.e. zero initialization and constant initialization, otherwise the program is ill-formed. ### \ [edit\]Explanation The constinit specifier declares a variable with static or thread storage duration. | | | | --- | --- | | The constinit specifier can als... | |
Django_meta/django_meta_24_0.txt | ### ` verbose_name ` ¶
` Options. ` ` verbose_name ` ¶
A human-readable name for the object, singular:
verbose_name = "pizza"
If this isn’t given, Django will use a munged version of the class name: `
CamelCase ` becomes ` camel case ` .
| |
Django_meta/django_models_5_0.txt | ## ` Meta ` options ¶
Give your model metadata by using an inner ` class Meta ` , like so:
from django.db import models
class Ox(models.Model):
horn_length = models.IntegerField()
class Meta:
ordering = ["horn_length"]
verbose_name_plural = "oxe... | |
Django_meta/django_meta_13_0.txt | ### ` ordering ` ¶
` Options. ` ` ordering ` ¶
The default ordering for the object, for use when obtaining lists of objects:
ordering = ['-order_date']
This is a tuple or list of strings and/or query expressions. Each string is a
field name with an optional “-” prefix, which indicates d... | |
stackoverflow-44/extraction_0.txt | ### `ordering` ¶ Options.ordering ¶ The default ordering for the object, for use when obtaining lists of objects: ``` ordering = ["-order_date"] ``` This is a tuple or list of strings and/or query expressions. Each string is a field name with an optional “-” prefix, which indicates descending order. Fields without a le... | |
stackoverflow-44/extraction_1.txt | # Model `Meta` options ¶ This document explains all the possible metadata options that you can give your model in its internal `class Meta`. ## Available `Meta` options ¶ ### `ordering` ¶ Options.ordering ¶ The default ordering for the object, for use when obtaining lists of objects: ``` ordering = ["-order_date"] ``` ... | |
stackoverflow-44/extraction_2.txt | ### `Meta` options ¶ Give your model metadata by using an inner `class Meta`, like so: ``` from django.db import models class Ox(models.Model): horn_length = models.IntegerField() class Meta: ordering = ["horn_length"] verbose_name_plural = "oxen" ``` Model metadata is “anything that’s not a field”, such as ordering op... | |
Moment_js_Documentation/Moment_js_Documentation_71_1.txt | ale, there are a few tokens
that can be used to format a moment based on its locale.
There are upper and lower case variations on the same formats. The lowercase
version is intended to be the shortened version of its uppercase counterpart.
**Time** | LT | 8:30 PM
---|---|---
**Time with seconds** | LTS | 8... | |
Moment_js_Documentation/Moment_js_Documentation_71_0.txt | ### Format 1.0.0+
[ edit
](https://github.com/moment/momentjs.com/blob/master/docs/moment/04-displaying/01-format.md)
moment().format();
moment().format(String);
This is the most robust display option. It takes a string of tokens and
replaces them with their corresponding values.
... | |
stackoverflow-45/extraction_0.txt | ## Project Status Moment.js has been successfully used in millions of projects, and we are happy to have contributed to making date and time better on the web. As of September 2020, Moment gets over 12 million downloads per week! However, Moment was built for the previous era of the JavaScript ecosystem. The modern web... | |
stackoverflow-45/extraction_1.txt | # Intl.DateTimeFormat BaselineWidely available This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2017. - Learn more - See full compatibility - Report feedback The **`Intl.DateTimeFormat`** object enables language-sensitive date and... | |
stackoverflow-45/extraction_2.txt | date-fns # Modern JavaScript date utility library date-fns provides the most comprehensive, yet simple and consistent toolset for manipulating **JavaScript dates** in **a browser** & **Node.js**. Documentation ## Examples - Format date - I18n - Composition & FP ```styles_code__1jfxdz30 import { format, formatDistance, ... | |
stackoverflow-45/extraction_3.txt | English | 简体中文 | 日本語 | Português Brasileiro | 한국어 | Español (España) | Русский | Türkçe | සිංහල | עברית !Day.js Fast **2kB** alternative to Moment.js with the same modern API !Gzip Size!NPM Version!Build Status!Codecov!License !Sauce Test Status > Day.js is a minimalist JavaScript library that parses, validates, manipu... | |
stackoverflow-45/extraction_4.txt | Implementations of the new JavaScript Temporal object are starting to be shipped in experimental releases of browsers. This is big news for web developers because working with dates and times in JavaScript will be hugely simplified and modernized. Applications that rely on scheduling, internationalization, or time-sens... | |
URI_General_Syntax/URI_General_Syntax_17_0.txt | 4.2. Relative Reference
A relative reference takes advantage of the hierarchical syntax
(Section 1.2.3) to express a URI reference relative to the name space
of another hierarchical URI.
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
relative-pa... | |
stackoverflow-46/extraction_0.txt | # Resolving relative references to a URL The `URL()` constructor or the `URL.parse()`") static method of the URL API can be used to resolve a relative reference and a base URL to an absolute URL. Both methods take up to two string arguments and return a `URL()` object representing an absolute URL. The first argument re... | |
stackoverflow-46/extraction_1.txt | # <base>: The Document Base URL element BaselineWidely available \* This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015. \\* Some parts of this feature may have varying levels of support. - Learn more - See full compatibility - Repor... | |
stackoverflow-46/extraction_3.txt | ## How to use URLs Any URL can be typed right inside the browser's address bar to get to the resource behind it. But this is only the tip of the iceberg! The HTML language (see Structuring content with HTML) makes extensive use of URLs: - to create links to other documents with the `<a>` element; - to link a document w... | |
stackoverflow-47/extraction_0.txt | Executes a Transact-SQL statement against the connection and returns the number of rows affected. Copy ```csharp lang-csharp public override int ExecuteNonQuery(); ``` Copy ```csharp lang-csharp public int ExecuteNonQuery(); ``` #### Returns Int32 The number of rows affected. #### Implements ExecuteNonQuery() #### Exce... | |
stackoverflow-48/extraction_0.txt | # How to allow access for my self-created .NET application to Sharepoint Online using CSOM I was working on a project that create a .NET desktop application that able to connect Sharepoint Online and retrieve list of item from Sharepoint Online. But I was struggling due to authentification issue. My company was using M... | |
stackoverflow-48/extraction_2.txt | ## Introducing the PnP Framework library The PnP Framework library (released as v. 1.0 on January 2021) is the evolution of CSOM and of an old library called PnP Sites Core (now retired and archived). The PnP Framework library targets .NET Standard 2.0 and .NET 5.0/6.0/7.0, so you can use it on any platform (Windows, L... | |
stackoverflow-48/extraction_3.txt | ## I want to configure my own Azure AD application (recommended) When configuring your Azure AD application you'll need to also defined which delegated and/or application permissions your application needs. **It's recommended to use the minimal permissions needed for the application at hand**, for example if your app i... | |
stackoverflow-48/extraction_5.txt | # How to authenticate our .NET console application against SharePoint online if we have `DisableCustomAppAuthentication` set to true ' cx='32' cy='32' r='32' /%3E%3Ctext x='50%25' y='55%25' dominant-baseline='middle' text-anchor='middle' fill='%23FFF' %3EJJ%3C/text%3E%3C/svg%3E) john john1,026Reputation points Aug 17, ... | |
spring_io/spring_io_3_0.txt | ## 2\. Externalized Configuration
Spring Boot lets you externalize your configuration so that you can work with
the same application code in different environments. You can use a variety of
external configuration sources including Java properties files, YAML files,
environment variables, and command-line arguments.
... | |
stackoverflow-49/extraction_0.txt | ## 1\. Introduction In Java, _System.getProperty()_ and _System.getenv()_ are both used to retrieve configuration values, but they serve different purposes and access different sources of information. In this tutorial, let’s break down their differences, use cases, and typical examples. ## 2\. Using _System.getProperty... | |
stackoverflow-49/extraction_1.txt | # Cloud Foundry environment variables - View environment variables - App-specific system variables - CF\_INSTANCE\_ADDR - CF\_INSTANCE\_GUID - CF\_INSTANCE\_INDEX - CF\_INSTANCE\_IP - CF\_INSTANCE\_INTERNAL\_IP - CF\_INSTANCE\_PORT - CF\_INSTANCE\_PORTS - DATABASE\_URL - HOME - LANG - MEMORY\_LIMIT - PORT - PWD - SERVI... | |
stackoverflow-49/extraction_2.txt | # Starting, restarting, and restaging your apps - Start your app - How Cloud Foundry determines its default start command - Forcing Cloud Foundry to use the buildpack start command - Start commands when migrating a database - Restart your app - Restage your app back to top **Page last updated: July 31, 2023** You can s... | |
stackoverflow-49/extraction_3.txt | ## 2\. Use Environment Variables in the _application.properties_ File Let’s define a global environment variable called _JAVA\_HOME_ with the value “ _C:\\Program Files\\Java\\jdk-11.0.14_“. To use this variable in Spring Boot’s _application.properties_, we need to surround it with braces: ```plaintext hljs java.home=$... | |
stackoverflow-49/extraction_4.txt | # How Spring Boot Maps Environment Variables to Configuration Properties Configuration often drives how an application behaves across different environments. While many setups define these values in `.properties` or `.yml` files, others, especially in production or containerized systems, rely on environment variables. ... | |
stackoverflow-49/extraction_5.txt | I have the following user provided env variable defined for my app hosted in cloudfoundry/pivotal webservices: ``` MY_VAR=test ``` I am trying to access like so: `System.getProperty("MY_VAR")` but I am getting null in return. Any ideas as to what I am doing wrong would be appreciated. - cloud-foundry Share Share a link... | |
stackoverflow-49/extraction_6.txt | Environment variables are the means by which the Cloud Foundry runtime communicates with a deployed application about its environment. This page describes the environment variables that Droplet Execution Agents (DEAs) and buildpacks set for applications. For information about setting your own application-specific envir... | |
stackoverflow-4/extraction_1.txt | # Best practices \# ### Device-agnostic code \# Due to the structure of PyTorch, you may need to explicitly write device-agnostic (CPU or GPU) code; an example may be creating a new tensor as the initial hidden state of a recurrent neural network. The first step is to determine whether the GPU should be used or not. A ... | |
stackoverflow-4/extraction_3.txt | This answer is useful 276 Save this answer. Timeline Show activity on this post. The problem was caused by not setting the `CUDA_VISIBLE_DEVICES` variable within the shell correctly. To specify CUDA device `1` for example, you would set the `CUDA_VISIBLE_DEVICES` using ```hljs bash export CUDA_VISIBLE_DEVICES=1 ``` or ... | |
stackoverflow-4/extraction_5.txt | ### Worker Signals ¶ #### `celeryd_after_setup` ¶ This signal is sent after the worker instance is set up, but before it calls run. This means that any queues from the `celery worker -Q` option is enabled, logging has been set up and so on. It can be used to add custom queues that should always be consumed from, disreg... | |
flask_documentation/flask_documentation_1_0.txt | ## A Minimal Application ¶
A minimal Flask application looks something like this:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
So what did that code do?
1. First we imported the [ ` Flask ` ](../api/#flask.F... | |
stackoverflow-50/extraction_0.txt | ## A Minimal Application ¶ A minimal Flask application looks something like this: ``` from flask import Flask app = Flask(__name__) @app.route("/") def hello_world(): return "<p>Hello, World!</p>" ``` So what did that code do? 1. First we imported the `Flask` class. An instance of this class will be our WSGI applicatio... | |
stackoverflow-50/extraction_1.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 # How can I change the host ... | |
stackoverflow-50/extraction_2.txt | # How can I change the host and port that the flask command uses? Ask Question Asked8 years, 6 months ago Modified 1 year, 4 months ago Viewed 324k times This question shows research effort; it is useful and clear 142 Save this question. Timeline Show activity on this post. I want to change the host and port that my ap... | |
stackoverflow-50/extraction_3.txt | When you start Docker, a default bridge network (also called `bridge`) is created automatically, and newly-started containers connect to it unless otherwise specified. You can also create user-defined custom bridge networks. **User-defined bridge networks are superior to the default `bridge`** **network.** ## Differenc... | |
stackoverflow-51/extraction_0.txt | base (version 3.6.2) ## Description `table` uses the cross-classifying factors to build a contingency table of the counts at each combination of factor levels. ## Usage ``` table(…, exclude = if (useNA == "no") c(NA, NaN), useNA = c("no", "ifany", "always"), dnn = list.names(…), deparse.level = 1)as.table(x, …) is.tabl... | |
stackoverflow-51/extraction_1.txt | ### Details A pipe expression passes, or ‘pipes’, the result of the left-hand-side expression `lhs` to the right-hand-side expression `rhs`. The `lhs` is inserted as the first argument in the call. So `x |> f(y)` is interpreted as `f(x, y)`. To avoid ambiguities, functions in `rhs` calls may not be syntactically specia... | |
stackoverflow-51/extraction_2.txt | ``` with {base} | R Documentation ## Evaluate an Expression in a Data Environment ### Description Evaluate an **R** expression in an environment constructed from data, possibly modifying (a copy of) the original data. ### Usage ```R with(data, expr, ...) within(data, expr, ...) ## S3 method for class 'list' within(data... | |
aws_legacy_credentials_and_S3/aws_legacy_credentials_0_0.txt | [ ](/pdfs/powershell/latest/userguide/aws-pst-ug.pdf#specifying-your-aws-
credentials "Open PDF")
[ AWS ](https://aws.amazon.com) [ Documentation ](/index.html) [ AWS Tools for
PowerShell ](/powershell/index.html) [ User Guide ](pstools-welcome.html)
Credentials Store Locations Managing Profiles Specifying Credenti... | |
aws_legacy_credentials_and_S3/aws_legacy_credentials_0_3.txt | me\.aws ` on Windows, or ` ~/.aws ` on Linux).
To specify a credentials file in a different location, include the `
-ProfileLocation ` parameter and specify the credentials file path. The
following example specifies a non-default credentials file for a specific
command.
PS > Get-EC2Instance -ProfileName ... | |
stackoverflow-52/extraction_1.txt | I am trying to run the PowerShell command `Get-LMFunctionList -Region "eu-west-1"` after importing the module `AWS.Tools.Lambda`. I am using PowerShell version 5.1 and AWS.Tools.Lambda version 4.1.530. When I run the command I get the error message ```hljs bash Get-LMFunctionList : The security token included in the re... | |
hugging_face/hugging_face_0_2.txt | /2210.17323.pdf) .
## AutoGPTQ library – the one-stop library for efficiently leveraging GPTQ
for LLMs
The AutoGPTQ library enables users to quantize 🤗 Transformers models using the
GPTQ method. While parallel community efforts such as [ GPTQ-for-LLaMa
](https://github.com/qwopqwop200/GPTQ-for-LLaMa) , [ Exllama
](... | |
hugging_face/hugging_face_0_1.txt | //arxiv.org/pdf/2210.17323.pdf)
* [ Basic usage Google Colab notebook ](https://colab.research.google.com/drive/1_TIrmuKOFhuRRiTWN94iLKUFu6ZX4ceb?usp=sharing) \- This notebook shows how to quantize your transformers model with GPTQ method, how to do inference, and how to do fine-tuning with the quantized model.
* ... | |
stackoverflow-53/extraction_0.txt | ``` ## Quantization Examples Quantize a model by passing a BitsAndBytesConfig to from\_pretrained(). This works for any model in any modality, as long as it supports Accelerate and contains torch.nn.Linear layers. 8-bit 4-bit Quantizing a model in 8-bit halves the memory-usage, and for large models, set \`device\_map="... | |
stackoverflow-53/extraction_1.txt | ## Quantization Examples Quantize a model by passing a BitsAndBytesConfig to from\_pretrained(). This works for any model in any modality, as long as it supports Accelerate and contains torch.nn.Linear layers. 8-bit 4-bit Quantizing a model in 8-bit halves the memory-usage, and for large models, set \`device\_map="auto... | |
stackoverflow-53/extraction_3.txt | Quantization Quantization techniques reduce memory and computational costs by representing weights and activations with lower-precision data types like 8-bit integers (int8). This enables loading larger models you normally wouldn’t be able to fit into memory, and speeding up inference. Transformers supports the AWQ and... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.