Dataset Viewer
Auto-converted to Parquet Duplicate
question_id
int64
37.6M
73.2M
input_text
stringlengths
88
52.4k
output_text
stringlengths
37
35.6k
title
stringlengths
15
150
tags
stringlengths
1
107
q_score
int64
-19
397
view_count
int64
3
879k
answer_count
int64
1
21
accepted_answer_id
int64
37.6M
73.8M
answer_id
int64
37.6M
73.8M
a_score
int64
-5
1.29k
is_accepted
bool
1 class
creation_date
stringlengths
20
24
input_text_instruct
stringlengths
251
52.6k
53,607,355
Intellij: Before commit: run git hooks<p>I want to be enable &quot;run git hooks&quot; before commit, I know its possible since i enabled it once (in one project, depicted below)</p> <p>but i cant remember / figure out how to do this in another project</p> <p>can you please help?</p> <p>thanks</p> <p><a href="https://i...
<p>Back then i couldn't find it, but later on i did, so just wanted to share it with you guys.</p> <p>The following package will do it for you <a href="https://www.npmjs.com/package/pre-commit" rel="nofollow noreferrer">pre-commit</a></p> <p><strong>Its amazingly simple, just install it:</strong></p> <pre><code>npm ins...
Intellij: Before commit: run git hooks
intellij-idea
15
11,827
3
63,383,562
63,383,562
4
true
2018-12-04T07:01:31.847Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Intellij: Before commit: run git hooks<p>I want to be enable &quot;run git hooks&quot; before commit, I know its possible since i enabled it once (in one pro...
53,683,164
Keras occupies an indefinitely increasing amount of memory for each epoch<p>I'm running a genetic hyperparameter search algorithm and it quickly saturates all available memory.</p> <p>After a few tests it looks like the amount of memory required by keras increases both between different epochs and when training differ...
<p>Since the <strong>memory leak</strong> still seems to be present in <strong>TensorFlow 2.4.1</strong> when using the built-in functions like <strong>model.fit()</strong> here is my take on it.</p> <hr /> <p><strong>Issues</strong></p> <ul> <li>Loads of RAM usage even though I am running NVIDIA GeForce RTX 2080 TI GP...
Keras occupies an indefinitely increasing amount of memory for each epoch
python-3.x|tensorflow|keras
12
5,948
4
67,138,072
67,138,072
9
true
2018-12-08T13:48:18.837Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Keras occupies an indefinitely increasing amount of memory for each epoch<p>I'm running a genetic hyperparameter search algorithm and it quickly saturates al...
53,797,428
Git push over ssh fails on windows with 'the remote end hung up unexpectedly' error<p>I'm hoping someone can help me, as I've been fighting with this for days, and am stumped. I've set up the standard git client (from git-scm.com) on a brand new laptop running Windows 10, and am working on a repository hosted on Github...
<blockquote> <p>This, I've managed to solve by explicitly setting the global sshCommand config value as per Adam Ralph's suggestion. </p> </blockquote> <p>Yes, but no: try first to use Git in a CMD session where you have put a simplified PATH, one in which the Git bundled openSSH will comes first and with be used (O...
Git push over ssh fails on windows with 'the remote end hung up unexpectedly' error
git|github|ssh
10
1,061
3
60,658,711
60,658,711
3
true
2018-12-15T21:30:39.663Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Git push over ssh fails on windows with 'the remote end hung up unexpectedly' error<p>I'm hoping someone can help me, as I've been fighting with this for day...
53,769,102
How do I add a C# solution file in JetBrains Rider?<p>In Rider, if I open a folder that has a single .csproj file in it, how do I add a solution? Is there a way to do it inside Rider, like there is in Visual Studio, without resorting to the command line and closing/re-opening?</p>
<p>Looks like you can do this with Rider 2019.1 now.</p> <p>Go to File -> New -> gives the option to add a new solution.</p>
How do I add a C# solution file in JetBrains Rider?
c#|jetbrains-ide|rider
7
10,778
2
55,925,686
55,925,686
5
true
2018-12-13T19:49:36.137Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I add a C# solution file in JetBrains Rider?<p>In Rider, if I open a folder that has a single .csproj file in it, how do I add a solution? Is there a ...
53,404,857
How to place a default file name in the file dialog asksaveasfile python<p>I would like to place a value in the file dialog by default when the user is saving a file. Anyone can advise the syntax of it ?</p> <pre><code>saveFilePath = fileDialog.asksaveasfile(mode='w', title="Save the file", defaultextension=".txt") </...
<pre><code>initialfile </code></pre> <p>as proposed by Bryan Oakley worked.</p>
How to place a default file name in the file dialog asksaveasfile python
python|tkinter
7
11,018
3
56,084,552
56,084,552
10
true
2018-11-21T03:28:46.983Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to place a default file name in the file dialog asksaveasfile python<p>I would like to place a value in the file dialog by default when the user is savin...
53,368,586
What is Flutter's kernel_blob.bin?<p>Every time I do flutter build, I get a file change in</p> <p><code>ios/Flutter/flutter_assets/kernel_blob.bin</code></p> <p>After committing and rebuilding then I get a lot of conflicts because of this file.</p> <p>What is this file? Should I .gitignore this?</p>
<p>The short answer is that this file is a <a href="https://github.com/dart-lang/sdk/blob/master/pkg/kernel/binary.md" rel="noreferrer">Dart kernel bytecode</a> representation of your app's code generated by a compiler in Flutter's toolchain. When your Dart code changes, you should expect the built <code>kernel_blob.bi...
What is Flutter's kernel_blob.bin?
flutter
8
3,659
1
56,162,402
56,162,402
18
true
2018-11-19T05:02:22.707Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is Flutter's kernel_blob.bin?<p>Every time I do flutter build, I get a file change in</p> <p><code>ios/Flutter/flutter_assets/kernel_blob.bin</code></p...
53,797,906
broadcasting laravel event and multiple channels<p>I am new in laravel so I googled a lot for different approaches how to create websocket with redis, socket.io in laravel framework. And finally my websocket works as I expected. However I still have unanswered questions related with websockets. Could you please help me...
<p>It's very easy! just return arrays of Channels in broadcastOn method I just did this: Example:</p> <pre><code>public function broadcastOn() { return [ new PrivateChannel('App.Message.' . $this-&gt;message-&gt;to_user_id), new PrivateChannel('App.Message.'. $this-&gt;message-&gt;to_user_id .'.F...
broadcasting laravel event and multiple channels
laravel|redis|socket.io
13
5,407
1
55,398,957
55,398,957
29
true
2018-12-15T22:48:18.543Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: broadcasting laravel event and multiple channels<p>I am new in laravel so I googled a lot for different approaches how to create websocket with redis, socket...
38,057,526
Export AWS configuration as CloudFormation template<p>IΒ΄m using AWS CLI and CloudFormation, and I could not find any reference in the documentation.</p> <p>Does anybody know if itΒ΄s possible to create a CloudFormation template from a current configuration.</p> <p>LetΒ΄s say that I want to get a CloudFormation template f...
<p>Based on our experience we found 3 possible ways to translate existing manually deployed (from Web Console UI) AWS infra to Cloudformation (CF).</p> <ol> <li><p>Using a new CloudFormation native introduced feature (since Nov 2019) that allows you to <a href="https://aws.amazon.com/blogs/aws/new-import-existing-resou...
Export AWS configuration as CloudFormation template
amazon-web-services|amazon-cloudformation
34
25,611
4
55,764,927
55,764,927
27
true
2016-06-27T15:12:51.820Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Export AWS configuration as CloudFormation template<p>IΒ΄m using AWS CLI and CloudFormation, and I could not find any reference in the documentation.</p> <p>D...
53,627,762
error TS2304: Cannot find name 'InputEvent'<p>As described in <a href="https://stackoverflow.com/questions/49714315/does-typescript-have-type-definitions-for-inputevent">Does TypeScript have type definitions for InputEvent?</a>, I tried to use <a href="https://www.npmjs.com/package/@types/dom-inputevent" rel="noreferre...
<p>I had the same problem trying to use @types/dom-inputevent in unit tests for an Angular 6 app. In my case, the cause was that I had an explicit 'types' entry in my tsconfig.spec.js, as outlined below.</p> <p><strong>tsconfig.json</strong> (irrelevant parts omitted)</p> <pre><code>{ "compilerOptions": { "typ...
error TS2304: Cannot find name 'InputEvent'
angular|typescript|typescript-typings
14
6,203
1
55,221,421
55,221,421
7
true
2018-12-05T08:08:58.807Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: error TS2304: Cannot find name 'InputEvent'<p>As described in <a href="https://stackoverflow.com/questions/49714315/does-typescript-have-type-definitions-for...
37,872,212
Vue-i18n with HTML in named params<p>Suppose I have this message object:</p> <p><code>{greetings: '{blah} is welcome'} </code></p> <p>How can I inject HTML into that <code>{blah}</code>param?</p> <p>I tried this, but it doesn't work:</p> <p><code>{{ $t('greetings', {blah: '&lt;foo&gt;' + some_string + '&lt;/foo&gt;...
<p>Be cautious of the [previously] accepted answer, as untrusted input will lead to XSS vulnerabilities. The correct way to do this is with <a href="https://kazupon.github.io/vue-i18n/guide/interpolation.html" rel="noreferrer">component interpolation</a>. It works a little bit like slots.</p> <p>Here's a practical exam...
Vue-i18n with HTML in named params
vue.js
17
14,898
5
54,749,964
54,749,964
23
true
2016-06-17T02:32:52.273Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Vue-i18n with HTML in named params<p>Suppose I have this message object:</p> <p><code>{greetings: '{blah} is welcome'} </code></p> <p>How can I inject HTML...
53,623,472
How do I display a single image in PyTorch?<p>How do I display a PyTorch <code>Tensor</code> of shape <code>(3, 224, 224)</code> representing a 224x224 RGB image? Using <code>plt.imshow(image)</code> gives the error:</p> <blockquote> <p>TypeError: Invalid dimensions for image data</p> </blockquote>
<p>Given a <code>Tensor</code> representing the image, use <a href="https://pytorch.org/docs/stable/generated/torch.permute.html#torch.permute" rel="noreferrer"><code>.permute()</code></a> to put the channels as the last dimension:</p> <pre><code>plt.imshow( tensor_image.permute(1, 2, 0) ) </code></pre> <p>Note: <a h...
How do I display a single image in PyTorch?
python|matplotlib|pytorch
60
115,503
8
55,196,345
55,196,345
115
true
2018-12-05T00:33:01.400Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I display a single image in PyTorch?<p>How do I display a PyTorch <code>Tensor</code> of shape <code>(3, 224, 224)</code> representing a 224x224 RGB i...
53,460,002
How to use dotnet restore properly in Dockerfile<p>When adding docker support to a ASP.NET Core project VS (15.9.2) will add a default Dockerfile that does restore, build and publish. But instead of just copying all files into the Docker build container it first copies just the proj-files, does the restore and then co...
<p>When Docker builds an image, it maintains a <a href="https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#leverage-build-cache" rel="noreferrer">build cache</a>:</p> <blockquote> <p>When building an image, Docker steps through the instructions in your Dockerfile, executing each in the order s...
How to use dotnet restore properly in Dockerfile
asp.net-core|dockerfile
11
5,174
1
54,832,279
54,832,279
15
true
2018-11-24T16:11:27.610Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to use dotnet restore properly in Dockerfile<p>When adding docker support to a ASP.NET Core project VS (15.9.2) will add a default Dockerfile that does r...
53,456,839
how can export material-ui table to CSV?<p>someone of you can explain me how to export a material-ui-table to CSV file ?</p> <pre><code> &lt;Paper&gt; &lt;Table&gt; &lt;TableHead&gt; &lt;TableRow&gt; &lt;TableCell&gt;A&lt;/TableCell&gt; &lt;TableCell &gt;B&lt;/TableCell&gt; ...
<p>On Material-UI's <a href="https://material-ui.com/components/tables/#complementary-projects" rel="nofollow noreferrer">tables page 'Complementary projects' section</a> they recommend on using <a href="https://github.com/mbrn/material-table" rel="nofollow noreferrer">material-table</a>.</p> <p>One of material-table'...
how can export material-ui table to CSV?
reactjs|csv|export|material-ui
7
11,780
4
57,835,460
57,835,460
3
true
2018-11-24T09:26:26.887Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how can export material-ui table to CSV?<p>someone of you can explain me how to export a material-ui-table to CSV file ?</p> <pre><code> &lt;Paper&gt; ...
53,776,957
Webpack 4: Conditionally enabling PostCSS plugins<p>I've integrated PostCSS into Webpack, using a separate <code>postcss.config.js</code> file.</p> <p>I want to enable <code>cssnano</code> when doing production builds, and disable it for development builds. How can I do this?</p> <p>Here is my <strong>webpack.config....
<p>In your <strong><code>postcss.config.js</code></strong> you can do <a href="https://github.com/michael-ciniawsky/postcss-load-config#array" rel="nofollow noreferrer">checking for the environment property</a>:</p> <pre class="lang-js prettyprint-override"><code>module.exports = ({ env }) =&gt; ({ plugins: [ re...
Webpack 4: Conditionally enabling PostCSS plugins
javascript|node.js|webpack|webpack-4|postcss
7
4,134
2
57,960,799
57,960,799
3
true
2018-12-14T09:35:38.283Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Webpack 4: Conditionally enabling PostCSS plugins<p>I've integrated PostCSS into Webpack, using a separate <code>postcss.config.js</code> file.</p> <p>I wan...
44,110,633
Device not configured after sshfs attempt<p>After using sshfs on my Mac I am no longer able to see my user directory.</p> <p>When I open a terminal window I see the following:</p> <pre><code>Last login: Mon May 22 10:54:30 on ttys003 mkdir: /Users/&lt;username&gt;/.bash_sessions: Device not configured -bash: /Users/&...
<p>I used to use <code>sshfs</code> and got this error; the only way to fix it I found without rebooting was:</p> <pre><code>sudo diskutil umount force /path/to/mount </code></pre> <p>I've recently been trying <a href="https://github.com/spion/adbfs-rootless" rel="noreferrer">https://github.com/spion/adbfs-rootless<...
Device not configured after sshfs attempt
macos-sierra|user-profile|tunnel|ssh-tunnel
8
7,698
2
57,612,218
57,612,218
20
true
2017-05-22T10:31:30.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Device not configured after sshfs attempt<p>After using sshfs on my Mac I am no longer able to see my user directory.</p> <p>When I open a terminal window I...
37,749,378
Integrate OpenCV webcam into a Kivy user interface<p>My current program is in Python and uses OpenCV. I rely on webcam captures and I am processing every captured frame:</p> <pre><code>import cv2 # use the webcam cap = cv2.VideoCapture(0) while True: # read a frame from the webcam ret, img = cap.read() # ...
<p>Found this example here: <a href="https://groups.google.com/forum/#!topic/kivy-users/N18DmblNWb0" rel="noreferrer">https://groups.google.com/forum/#!topic/kivy-users/N18DmblNWb0</a></p> <p>It converts the opencv captures to kivy textures, so you can do every kind of cv transformations before displaying it to your k...
Integrate OpenCV webcam into a Kivy user interface
python|user-interface|opencv|kivy
8
22,592
2
54,119,556
54,119,556
19
true
2016-06-10T13:20:18.470Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Integrate OpenCV webcam into a Kivy user interface<p>My current program is in Python and uses OpenCV. I rely on webcam captures and I am processing every cap...
53,664,279
Converting .tflite to .pb<p><strong>Problem</strong>: How can i convert a <code>.tflite</code> (serialised flat buffer) to <code>.pb</code> (frozen model)? The <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/convert/cmdline_examples.md" rel="noreferrer">documentation</a> only talks a...
<p>I found the answer <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/g3doc/convert/python_api.md#tensorflow-lite-python-interpreter-" rel="noreferrer">here</a></p> <p>We can use Interpreter to analysis the model and the same code looks like following:</p> <pre><code>import numpy as np i...
Converting .tflite to .pb
tensorflow|tensorboard|tensorflow-lite
7
11,560
3
54,264,023
54,264,023
10
true
2018-12-07T06:19:04.743Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Converting .tflite to .pb<p><strong>Problem</strong>: How can i convert a <code>.tflite</code> (serialised flat buffer) to <code>.pb</code> (frozen model)? T...
53,500,219
spring-security-oauth2 vs spring-cloud-starter-oauth2<p>I am working on building an oAuth2 application using spring boot. However, there are various sample projects in Github using <code>spring-security-oauth2</code> and <code>spring-cloud-starter-oauth2</code>.<br> Do we have specific scenarios where we can use a spec...
<p>To resolve complex dependency management, Spring Boot starters were introduced. Starter POMs are a set of dependency descriptors (combines multiple commonly used dependencies into one POM) which otherwise you could also manually include in your application individually. Starters are available for web, test, data jpa...
spring-security-oauth2 vs spring-cloud-starter-oauth2
spring-boot|oauth-2.0|spring-cloud|spring-security-oauth2
13
9,506
2
54,112,743
54,112,743
18
true
2018-11-27T12:54:36.687Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: spring-security-oauth2 vs spring-cloud-starter-oauth2<p>I am working on building an oAuth2 application using spring boot. However, there are various sample p...
53,461,316
pyrebase install on windows Python 3.7 fails<p>I just installed python 3.7 64 bits on windows 10 for all u sers and modified the PATH I updated the pip to 18.1 I installed pygame, with</p> <p><code>py -3 -m pip install pygame</code></p> <p>it works fine</p> <p>I wanted to install pyrebase with</p> <p><code>py -3 -m...
<p>To install <a href="https://github.com/thisbejim/Pyrebase" rel="noreferrer">https://github.com/thisbejim/Pyrebase</a></p> <p>I needed to download the .zip file (or Git) than manually install it after modifying the <code>setup.py</code> by specifying the latest <code>'pycryptodome==3.7.3'</code> then copy the pyre...
pyrebase install on windows Python 3.7 fails
python-3.x|pyrebase
11
25,159
12
54,480,973
54,480,973
18
true
2018-11-24T18:46:08.003Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: pyrebase install on windows Python 3.7 fails<p>I just installed python 3.7 64 bits on windows 10 for all u sers and modified the PATH I updated the pip to 18...
44,190,607
How do you find the cluster & service CIDR of a Kubernetes cluster?<p>How do you find the cluster/service CIDR for a Kubernetes cluster, once it is already running?</p> <p>I know for Minikube, it is 10.0.0.1/24.</p> <p>For GKE, you can find out via</p> <pre><code>gcloud container clusters describe XXXXXXX --zone=XXX...
<p>Get Services IPs range</p> <pre><code>kubectl cluster-info dump | grep -m 1 service-cluster-ip-range </code></pre> <p>You will see something like e.g. --service-cluster-ip-range=xxx.yy.0.0/13 </p> <p>Get Pods IPs range </p> <pre><code>kubectl cluster-info dump | grep -m 1 cluster-cidr </code></pre> <p>You will ...
How do you find the cluster & service CIDR of a Kubernetes cluster?
kubernetes|kubectl
37
35,643
8
54,183,373
54,183,373
54
true
2017-05-25T22:13:05.413Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do you find the cluster & service CIDR of a Kubernetes cluster?<p>How do you find the cluster/service CIDR for a Kubernetes cluster, once it is already r...
53,538,141
What is the proper number of stripes for Guava Striped?<p>I want to provide locking access to a resource using Guava Striped Lock. E.g.</p> <pre><code>Striped&lt;Lock&gt; keyLocks = Striped.lazyWeakLock(10) Lock lock = keyLocks.get("resourceId") // use lock... </code></pre> <p>I cannot find any guide how to choose th...
<p>There's no a general rule of thumb, it depends on a trade-off between concurrency level and memory consumption. The <code>Striped</code> JavaDoc partially explains it:</p> <blockquote> <p>A striped <code>Lock/Semaphore/ReadWriteLock</code>. This offers the underlying lock striping similar to that of <code>Concu...
What is the proper number of stripes for Guava Striped?
java|concurrency|locking|guava
9
2,055
1
54,190,063
54,190,063
0
true
2018-11-29T11:35:55.420Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: What is the proper number of stripes for Guava Striped?<p>I want to provide locking access to a resource using Guava Striped Lock. E.g.</p> <pre><code>Strip...
53,541,154
ObjectInputStream readObject causes RoundingMode.ordinal NullPointerException<p><strong>EDIT</strong>: it seems to be a problem related to Android Pie (api 28). Seems to work on previous versions (tested on 27, 26, 25). </p> <hr> <p>I'm working at this Android code for a very long time, and I noticed that lately when...
<p>We found that this was caused by a custom <code>DataFormatter</code> object (within a containing, serialized object) that relies on a <code>java.text.DecimalFormat</code>. When we went to deserialize the object (sometimes but not always, but apparently dependent on how many times the containing object had been pass...
ObjectInputStream readObject causes RoundingMode.ordinal NullPointerException
java|android
7
837
1
54,155,356
54,155,356
9
true
2018-11-29T14:23:30.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ObjectInputStream readObject causes RoundingMode.ordinal NullPointerException<p><strong>EDIT</strong>: it seems to be a problem related to Android Pie (api 2...
53,568,659
ActivityMainBindingImpl cannot be found<p>This is from the google site: A binding class is generated for each layout file. By default, the name of the class is based on the name of the layout file, converting it to Pascal case and adding the Binding suffix to it. The above layout filename is activity_main.xml so the co...
<p>The likely cause is an error in the data binding stage.</p> <p>The data binding compiler takes layout files and generates classes to support data binding (as you note: <code>ActivityMainBinding</code>, <code>ActivityMainBindingImpl</code>; the general pattern, dear readers, is <code>{<i>layout</i>}Binding</code> a...
ActivityMainBindingImpl cannot be found
android|android-databinding|kotlin-android-extensions
19
15,934
3
54,228,405
54,228,405
26
true
2018-12-01T07:17:21.337Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: ActivityMainBindingImpl cannot be found<p>This is from the google site: A binding class is generated for each layout file. By default, the name of the class ...
53,415,353
React + Redux-Observable + Typescript - Compilation, Argument Not Assignable Error<p>I am creating an app using React and Redux-Observable. I am new to this and I am trying to create an epic to execute the user login.</p> <p>My epic is below:</p> <pre><code>export const loginUserEpic = (action$: ActionsObservable&lt;...
<p>The <code>ofType</code> operator offered by <code>redux-observable</code> is not the best way to discriminate union types. A much better way is to use the <code>isOfType</code> function provided by <a href="https://github.com/piotrwitek/typesafe-actions" rel="noreferrer"><code>typesafe-actions</code></a>.</p> <pre>...
React + Redux-Observable + Typescript - Compilation, Argument Not Assignable Error
reactjs|typescript|rxjs|redux-observable
11
7,730
3
54,279,344
54,279,344
12
true
2018-11-21T15:28:37.387Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React + Redux-Observable + Typescript - Compilation, Argument Not Assignable Error<p>I am creating an app using React and Redux-Observable. I am new to this ...
53,766,100
How to properly handle unauthenticated users and requests in AWS Amplify/AppSync React apps?<p>I am having a very hard time to figure out how to handle unauthenticated users in a React app which uses AWS Amplify and AWS AppSync. Seems like most docs suggest to wrap the whole app with <code>withAuthenticator</code> HOC ...
<ol> <li><p>Make sure to update your authentication settings to enable both authenticated and unauthenticated access by running <code>amplify update auth</code> and configuring the settings manually.</p> </li> <li><p>In an API request, you can now specify the auth mode:</p> </li> </ol> <pre class="lang-js prettyprint-o...
How to properly handle unauthenticated users and requests in AWS Amplify/AppSync React apps?
reactjs|amazon-web-services|aws-appsync|aws-amplify
9
9,499
3
54,489,132
54,489,132
13
true
2018-12-13T16:22:35.953Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How to properly handle unauthenticated users and requests in AWS Amplify/AppSync React apps?<p>I am having a very hard time to figure out how to handle unaut...
53,483,599
React Navigation pass params to nested stackNavigator<p>In react navigation 3.0 they added the feature to pass default params to screen. The problem is that I want to pass those params to a nested stackNavigator but I can't figure out how to do so. These are my navigators: MainDrawer.js:</p> <pre><code> const MyDra...
<p>To access props of the parent you can use <code>this.props.navigation.dangerouslyGetParent().getParam('type');</code> now you can access any prop of the parent.</p> <p><strong>EDIT:</strong></p> <p>Not sure if this will work with react-navigation v5 but give it a try</p>
React Navigation pass params to nested stackNavigator
react-native|react-navigation|expo|stack-navigator
8
10,268
2
54,201,900
54,201,900
15
true
2018-11-26T14:47:13.217Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: React Navigation pass params to nested stackNavigator<p>In react navigation 3.0 they added the feature to pass default params to screen. The problem is that ...
53,790,994
Bulk update via raw query in TypeORM<p>How can I do bulk update via raw query in TypeORM?<br> For example we have model <em>User</em> with property <em>name</em><br> How can I change names of few users in one transaction? <br></p> <p>typeorm version: <strong>0.2.7</strong><br> database: <strong>postgress</strong></p>
<p>To bulk update, you can use update with set method, it is always recommended to not use raw queries when you can use orm functions.</p> <pre class="lang-js prettyprint-override"><code> import {getConnection, In} from "typeorm"; const userIds = [1,2,3]; await getConnection() .createQueryBuilder() .update(User) ...
Bulk update via raw query in TypeORM
node.js|typeorm|bulkupdate
10
22,848
5
62,125,466
62,125,466
24
true
2018-12-15T09:04:12.357Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Bulk update via raw query in TypeORM<p>How can I do bulk update via raw query in TypeORM?<br> For example we have model <em>User</em> with property <em>name<...
44,028,912
Incorporate Keycloak login into SPA<p>We're currently evaluating Keycloak as our SSO solution and while it works for our servlet-based applications there's a question regarding our (React-based) SPAs.</p> <p>What our designers want: as an example let's say we have an email client spa. The user is in the process of wri...
<p>For someone who comes back to this question,</p> <p>I think it's better to stick to the best practice for oAuth2/OpenId Connect for SPAs which is currently &quot;Authorization Code Flow&quot; with PKCE.</p> <p><a href="https://oauth.net/2/pkce/" rel="nofollow noreferrer">https://oauth.net/2/pkce/</a></p> <p><a href=...
Incorporate Keycloak login into SPA
reactjs|single-sign-on|single-page-application|keycloak
10
6,981
2
59,862,626
59,862,626
2
true
2017-05-17T15:20:28.443Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Incorporate Keycloak login into SPA<p>We're currently evaluating Keycloak as our SSO solution and while it works for our servlet-based applications there's a...
53,355,638
Django Custom User --- Edit new CustomUser fields in admin<p>I am trying to expand on the tutorial by William Vincent, posted below:</p> <p><a href="https://wsvincent.com/django-custom-user-model-tutorial/" rel="noreferrer">https://wsvincent.com/django-custom-user-model-tutorial/</a></p> <p>I am trying to add new fie...
<p>The 'fieldsets +' approach is much better than having to write out all the default fields again.</p> <pre><code>fieldsets = UserAdmin.fieldsets + ( (None, {'fields': ('some_extra_data',)}), ) </code></pre>
Django Custom User --- Edit new CustomUser fields in admin
python|django|admin
12
7,445
3
58,981,051
58,981,051
13
true
2018-11-17T21:13:00.430Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Django Custom User --- Edit new CustomUser fields in admin<p>I am trying to expand on the tutorial by William Vincent, posted below:</p> <p><a href="https:/...
53,598,308
Webp and <picture><source will not work for me on chrome<p>I'm facing a problem, I just can't seem to find out what the problem is, I have:</p> <pre><code>&lt;picture&gt; &lt;source type="image/webp" srcset="/images/meh_logo.webp"&gt; &lt;img src="/images/meh_logo.png" type="image/png"&gt; &lt;/picture&gt; </c...
<p>The WEBP is a tree. The PNG is a rose. You used the code below...</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;picture&gt; &lt;source type="image/webp" srcset=...
Webp and <picture><source will not work for me on chrome
html|webp
7
4,097
2
59,138,725
59,138,725
1
true
2018-12-03T16:54:14.353Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Webp and <picture><source will not work for me on chrome<p>I'm facing a problem, I just can't seem to find out what the problem is, I have:</p> <pre><code>&...
71,215,099
Trying to make a a script that spawns that spawns a prefab object<p>I have been trying to make a script that would drop prefabs at a random time in a random place in the y position so if anyone would be able to help me with this or tweak my code it would be greatly apprenticed</p> <pre><code> using System.Collection...
<p>Hmm, wow there is a lot of explaining here. Welcome to Unity... er, welcome to programming!</p> <ul> <li><p>You need to have Update be capitalized for it to be recognized as the Unity update loop.</p> </li> <li><p>Also, you want to subtract Time.deltaTime from time between.. not from 1.</p> </li> <li><p>Also, you wa...
Trying to make a a script that spawns that spawns a prefab object
c#|unity3d|visual-studio-code|game-development
-3
39
1
71,215,511
71,215,511
0
true
2022-02-22T01:59:07.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Trying to make a a script that spawns that spawns a prefab object<p>I have been trying to make a script that would drop prefabs at a random time in a random ...
71,277,763
MySQL : How to I, join this table?<p>I have table like this, and i want to output the result like output table, can anyone tell me how to do it, in MySQL</p> <p><a href="https://i.stack.imgur.com/lXxO5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lXxO5.png" alt="enter image description here" /></a...
<p>You can use left join like so :</p> <pre><code>SELECT tb_session.SESSION AS SESSION, tb_class.CLASS AS CLASS from tb_schedul LEFT JOIN tb_session ON tb_schedule.ID_SESSION = tb_session.ID LEFT JOIN tb_schedul.ID_CLASS = tb_class.ID </code></pre>
MySQL : How to I, join this table?
mysql|sql|join
-3
37
2
71,277,827
71,277,827
0
true
2022-02-26T15:11:01.987Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: MySQL : How to I, join this table?<p>I have table like this, and i want to output the result like output table, can anyone tell me how to do it, in MySQL</p>...
71,198,478
Counting all combinations of values in multiple columns<p>The following is an example of items rated by 1,2 or 3 stars. I am trying to count all combinations of item ratings (stars) per month.</p> <p>In the following example, item 10 was rated in month 1 and has two ratings equal 1, one rating equal 2 and one rating eq...
<p>This seems like a nice problem for <a href="https://pandas.pydata.org/docs/reference/api/pandas.get_dummies.html" rel="nofollow noreferrer"><code>pd.get_dummies</code></a>:</p> <pre><code>new_df = ( pd.concat([df, pd.get_dummies(df['star'])], axis=1) .groupby(['month', 'item'], as_index=False) [df['star'...
Counting all combinations of values in multiple columns
python|pandas
9
783
4
71,209,097
71,209,097
1
true
2022-02-20T20:29:18.897Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Counting all combinations of values in multiple columns<p>The following is an example of items rated by 1,2 or 3 stars. I am trying to count all combinations...
71,362,790
how to send smtp email in fresh laravel 9 project<p>I just wanted to send mails through my gmail account I have newly created fresh laravel 9 project guide me to send mails in easy steps</p> <p>i was able to do in laravel 8 but in 9 it dosen't work like that</p> <p>Thank you all</p>
<p>First you should set your mail configuration in your <code>.env</code></p> <pre><code>MAIL_MAILER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=mygoogle@gmail.com MAIL_PASSWORD=rrnnucvnqlbsl MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS=mygoogle@gmail.com MAIL_FROM_NAME=&quot;${APP_NAME}&quot; </code></pre> <p>T...
how to send smtp email in fresh laravel 9 project
php|laravel|laravel-9
-3
780
1
71,363,323
71,363,323
1
true
2022-03-05T13:58:04.600Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how to send smtp email in fresh laravel 9 project<p>I just wanted to send mails through my gmail account I have newly created fresh laravel 9 project guide m...
71,387,469
Database structure and query building<p>Please advise how to accomplish this task.</p> <p>There is an entity - the user. He can create a group in which there will be other users with certain rights.</p> <p>Here I'm interested in how to correctly cost requests to get groups for the user and guest.</p> <p>I assume that t...
<p>From a database standpoint, I see tables:</p> <p><strong>User table</strong></p> <pre><code>Userid (PK) UserName UserPhoto </code></pre> <p><strong>Group table</strong></p> <pre><code>Groupid (PK) GroupName </code></pre> <p><strong>Rights table</strong></p> <pre><code>Rightid (PK) RightName </code></pre> <p><strong>...
Database structure and query building
database|database-design|backend
-3
35
1
71,390,734
71,390,734
1
true
2022-03-07T21:27:45.530Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Database structure and query building<p>Please advise how to accomplish this task.</p> <p>There is an entity - the user. He can create a group in which there...
71,376,574
How can we insert a character to a string in c++?<p>INPUT STRING</p> <pre><code>ABCE </code></pre> <p>INPUT CHAR</p> <pre><code>D </code></pre> <p>OUTPUT STRING</p> <pre><code>ABCDE </code></pre> <p>It should run for all sizes , and it should be a standard procedure ie run for all the cases. Can anyone Help me with thi...
<p>You should try the <code>std::string::insert(..)</code>. Check out the <a href="https://www.cplusplus.com/reference/string/string/insert/" rel="nofollow noreferrer">documentation</a></p> <pre><code>#include &lt;iostream&gt; #include &lt;string&gt; int main() { std::string str(&quot;ABCE&quot;); std::cout &l...
How can we insert a character to a string in c++?
c++|string|append
-3
41
1
71,376,644
71,376,644
1
true
2022-03-07T04:55:33.653Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How can we insert a character to a string in c++?<p>INPUT STRING</p> <pre><code>ABCE </code></pre> <p>INPUT CHAR</p> <pre><code>D </code></pre> <p>OUTPUT STR...
71,409,951
How do I change sections in HTML without getting '#' in the Link?<h1>Hi</h1> <p>So, while making a website I noticed that when I am redirecting between sections in HTML using 'a' tag I am getting the link as <em>'www.example.com#section'</em>.'</p> <p>This is the code:</p> <pre><code>&lt;a href=&quot;#section&quot;&gt;...
<p>This is just how URLs work.</p> <ul> <li><code>https://</code> determines how to ask for the resource</li> <li><code>www.example.com</code> determines what server to ask for it from</li> <li><code>/some/path/?query=optional</code> determines what to ask the server for</li> <li><code>#fragment</code> is handled clien...
How do I change sections in HTML without getting '#' in the Link?
html
-5
33
1
71,410,003
71,410,003
1
true
2022-03-09T13:15:02.533Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How do I change sections in HTML without getting '#' in the Link?<h1>Hi</h1> <p>So, while making a website I noticed that when I am redirecting between secti...
71,111,733
How i convert USD to ETH using json?<p>I used this API but it displays BTC. I want to convert USD to ETH</p> <pre><code>&lt;?php $url = &quot;https://blockchain.info/tobtc?currency=USD&amp;value=2000&quot;; $stats = json_decode(file_get_contents($url), true); echo &quot;$stats BTC&quot;; ?&gt; </code></pre>
<p>with this api you cant convert to ETH because this api is only meant to convert a currency to Bitcoin</p> <p>if you look at the documantation of the api you call<br> <a href="https://www.blockchain.com/api/exchange_rates_api" rel="nofollow noreferrer">https://www.blockchain.com/api/exchange_rates_api</a></p> <p>it s...
How i convert USD to ETH using json?
php|json
-3
257
1
71,111,956
71,111,956
2
true
2022-02-14T12:12:55.297Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: How i convert USD to ETH using json?<p>I used this API but it displays BTC. I want to convert USD to ETH</p> <pre><code>&lt;?php $url = &quot;https://blockch...
71,148,744
Remove elements in elements of alist Python<p>I have a list that looks like that:</p> <pre><code>[{'ip': 'x.x.x.x', 'error': True, 'reason': 'Reserved IP Address', 'reserved': True, 'version': 'IPv4'}, {'ip': 'x.x.x.x', 'error': True, 'reason': 'Reserved IP Address', 'reserved': True, 'version': 'IPv4'...
<p>Try with list comprehension:</p> <pre><code>&gt;&gt;&gt; [d for d in mylist if not d.get(&quot;error&quot;) and d.get(&quot;reason&quot;)!=&quot;Reserved IP Address&quot;] </code></pre>
Remove elements in elements of alist Python
python|json|list
-3
40
2
71,148,783
71,148,783
2
true
2022-02-16T20:17:58.023Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Remove elements in elements of alist Python<p>I have a list that looks like that:</p> <pre><code>[{'ip': 'x.x.x.x', 'error': True, 'reason': 'Reserved IP...
71,205,392
how do i write a code in python that compares two strings A and B<p>How can I compare two strings <code>A</code> and <code>B</code>, such that it will print <code>'true'</code> if ALL the letters in <code>A</code> are in <code>B</code> but print <code>'false'</code> if not. Note the two strings may not be of equal leng...
<p>You can convert your string to <a href="https://docs.python.org/3/tutorial/datastructures.html#sets" rel="nofollow noreferrer">set()</a>:</p> <pre><code>A = &quot;fedca&quot; B = &quot;abcdefg&quot; if set(A) &lt;= set(B): print(&quot;All the letters of A are contained in B&quot;) </code></pre>
how do i write a code in python that compares two strings A and B
python
-4
37
1
71,205,468
71,205,468
2
true
2022-02-21T11:16:32.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: how do i write a code in python that compares two strings A and B<p>How can I compare two strings <code>A</code> and <code>B</code>, such that it will print ...
71,319,628
Is there any way for a toggle to operate on a member of a binding?<p>So let's say I have a data type like this:</p> <pre><code>struct Foo { var isOn: Bool } </code></pre> <p>And I want to have a toggle which operates on the <code>isOn</code> member - something like this:</p> <pre><code>struct MyView: View { @Bi...
<p>You didn't use the argument label. Fix that to make it compile and it will work fine.</p> <pre class="lang-swift prettyprint-override"><code>Toggle(&quot;is on?&quot;, isOn: $model.isOn) </code></pre> <pre class="lang-swift prettyprint-override"><code>struct ContentView: View { @State var model = Foo(isOn: false) ...
Is there any way for a toggle to operate on a member of a binding?
swiftui|combine
-4
41
1
71,319,837
71,319,837
2
true
2022-03-02T08:35:33.070Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Is there any way for a toggle to operate on a member of a binding?<p>So let's say I have a data type like this:</p> <pre><code>struct Foo { var isOn: Bool...
71,221,388
Numpy comparing vectors of length m and n resulting in boolean matrix of size m,n<p>I am wondering if there is a more efficient way to run the comparison (or really many other functions) using numpy.</p> <pre><code>a = np.array([1,2,5,7]) b = np.array([0,4,6]) np.repeat(a, len(b)).reshape(-1, len(b)) &gt; b &gt; arra...
<p>You can use <strong>broadcasting</strong> to make this operation more efficient. Indeed, <code>repeat</code> creates a new temporary array. Here is the resulting code:</p> <pre class="lang-py prettyprint-override"><code>a.reshape(-1, 1) &gt; b </code></pre>
Numpy comparing vectors of length m and n resulting in boolean matrix of size m,n
python|numpy
-3
34
1
71,221,569
71,221,569
3
true
2022-02-22T12:32:56.750Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Numpy comparing vectors of length m and n resulting in boolean matrix of size m,n<p>I am wondering if there is a more efficient way to run the comparison (or...
71,344,469
Get php session data<p>I set a php session like such:</p> <pre><code>session_start(); $_SESSION['user_auth'] = [ &quot;email&quot; =&gt; $resultObj-&gt;email, &quot;displayName&quot; =&gt; $resultObj-&gt;displayName, &quot;token&quot; =&gt; $resultObj-&gt;token ]; </code></pre> <p>I can't find anything in m...
<p>It's a 2d array so you can access it as you'd normally do for array types.</p> <p>Like</p> <pre class="lang-php prettyprint-override"><code>echo $_SESSION['user_auth'][&quot;email&quot;]; echo $_SESSION['user_auth'][&quot;displayName&quot;]; echo $_SESSION['user_auth'][&quot;token&quot;]; </code></pre>
Get php session data
php
-3
29
1
71,344,546
71,344,546
3
true
2022-03-03T22:17:55.393Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: Get php session data<p>I set a php session like such:</p> <pre><code>session_start(); $_SESSION['user_auth'] = [ &quot;email&quot; =&gt; $resultObj-&gt;e...
71,230,014
modify variable from previous object spread<p>Say we have this:</p> <pre><code>interface Seed { val: number } </code></pre> <p>and we can accept an argument:</p> <pre><code>const incrementSeedVal = (v: Seed) : Seed =&gt; { return {...v, ...{val: v.val + 1}} } </code></pre> <p>I am looking for a way to make this ev...
<p><s>Two</s> <em>Three</em> alternatives:</p> <pre class="lang-js prettyprint-override"><code>const incrementSeedVal = (v: Seed): Seed =&gt; { return { ...v, val: v.val + 1 } } </code></pre> <p>or</p> <pre class="lang-js prettyprint-override"><code>const incrementSeedVal = ({ val, ...rest }: Seed): Seed =&...
modify variable from previous object spread
javascript|node.js
-3
37
1
71,230,056
71,230,056
3
true
2022-02-23T00:34:31.200Z
Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: modify variable from previous object spread<p>Say we have this:</p> <pre><code>interface Seed { val: number } </code></pre> <p>and we can accept an argume...
End of preview. Expand in Data Studio

YAML Metadata Warning:The task_categories "text2text-generation" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

🧩 StackPulse-QA: Instruction-Tuning Q&A Pairs from Stack Overflow

Dataset Summary

Instruction-tuning Q&A dataset built from Omarrran/StackPulse_778K_QnA_Code_dataset by joining question IDs with BigQuery bigquery-public-data.stackoverflow.posts_answers on accepted_answer_id.

Each sample consists of:

  • input_text_instruct β€” A question (title + body) prefixed with an instruction
  • output_text β€” The accepted answer from Stack Overflow

Format mirrors the instruction-tuning dataset from DeepLearning.AI's Finetuning Large Language Models course, ready for fine-tuning PaLM, LLaMA, Mistral, Gemma, Phi, and similar models.


πŸ“Š Processing Progress

  • Runs completed : 4 / 6
  • Questions processed : 400,000 / 554,196
  • Remaining : 154,196

πŸ“ Files in This Dataset

πŸ‹οΈ Training Files (80% split)

File Format Description
data/tune_data_stack_overflow_python_qa_run1-07:19:04:2026.jsonl JSONL Training split from 1
data/tune_data_stack_overflow_python_qa_run2-07:19:04:2026.jsonl JSONL Training split from 2
data/tune_data_stack_overflow_python_qa_run3-07:19:04:2026.jsonl JSONL Training split from 3
data/tune_data_stack_overflow_python_qa_run4-07:19:04:2026.jsonl JSONL Training split from 4
data/tune_data_stack_overflow_python_qa_run5-07:19:04:2026.jsonl JSONL Training split from 5

πŸ§ͺ Evaluation Files (20% split)

File Format Description
data/tune_eval_data_stack_overflow_python_qa_run1-07:19:04:2026.jsonl JSONL Eval split from run 1
data/tune_eval_data_stack_overflow_python_qa_run2-07:19:04:2026.jsonl JSONL Eval split from run 2
data/tune_eval_data_stack_overflow_python_qa_run3-07:19:04:2026.jsonl JSONL Eval split from run 3
data/tune_eval_data_stack_overflow_python_qa_run4-07:19:04:2026.jsonl JSONL Eval split from run 4

πŸ“„ Full Metadata CSVs

File Format Description
data/stackpulse_qa_full_run1-07:19:04:2026.csv CSV Full metadata for run 1
data/stackpulse_qa_full_run2-07:19:04:2026.csv CSV Full metadata for run 2
data/stackpulse_qa_full_run3-07:19:04:2026.csv CSV Full metadata for run 3
data/stackpulse_qa_full_run4-07:19:04:2026.csv CSV Full metadata for run 4

πŸ—οΈ Schema

JSONL Files (training / eval)

Exactly 2 fields per row β€” ready for instruction fine-tuning:

Field Type Description
input_text_instruct string Instruction prefix + question title + question body
output_text string Accepted answer body (HTML format)

CSV Files (full metadata)

Column Description
question_id Stack Overflow question ID
input_text title + body (no instruction prefix)
output_text accepted answer body
input_text_instruct instruction-prefixed input (same as JSONL)
title question title only
tags pipe-separated tags
q_score question upvote score
view_count total views
answer_count number of answers
accepted_answer_id ID of the accepted answer
answer_id ID of this answer (= accepted_answer_id)
a_score answer upvote score
is_accepted always True (we only keep accepted answers)
creation_date question creation timestamp

πŸš€ Quick Start

Load with pandas

import pandas as pd

# Training data
train = pd.read_json("data/tune_data_stack_overflow_python_qa_run1-*.jsonl", lines=True)

# Eval data
eval_  = pd.read_json("data/tune_eval_data_stack_overflow_python_qa_run1-*.jsonl", lines=True)

print(train.iloc[0]["input_text_instruct"][:300])
print(train.iloc[0]["output_text"][:300])

Load with HuggingFace datasets

from datasets import load_dataset

# Load all training shards
ds = load_dataset(
    "json",
    data_files={
        "train": "data/tune_data_stack_overflow_python_qa_run*.jsonl",
        "eval"  : "data/tune_eval_data_stack_overflow_python_qa_run*.jsonl",
    }
)
print(ds)

Use for fine-tuning (Alpaca-style)

def format_prompt(ex):
    return {
        "text": f"{ex['input_text_instruct']}\n\n### Response:\n{ex['output_text']}"
    }

train_formatted = ds["train"].map(format_prompt)

πŸ“‹ Instruction Template Used

Please answer the following Stackoverflow question on Programming. Answer it like you are a developer answering Stackoverflow questions. Stackoverflow question: {title}{body}


⚠️ Caveats

  1. HTML in answers: output_text contains raw HTML tags (<p>, <pre>, <code>). Strip or preserve depending on your use case.
  2. Accepted answers only: We filter q.accepted_answer_id = a.id β€” other community answers are skipped.
  3. ~60% match rate: Of each 100K question IDs queried, ~60K have accepted answers in BigQuery. The rest are self-answered, deleted, or lack acceptance.
  4. 80/20 split: Each run uses random_state=42 for reproducible train/eval splits.
  5. Mirrors L2_data.ipynb: Format exactly matches DeepLearning.AI's Finetuning Large Language Models course notebook structure.

πŸ” Source Dataset

Question IDs and metadata sourced from:

Answers joined from:

  • bigquery-public-data.stackoverflow.posts_answers (Google BigQuery Public Dataset)

πŸ“‹ Citation

@dataset{malik2026stackpulseqa,
  author    = {Malik, Omar Haq Nawaz},
  title     = {StackPulse-QA: Instruction-Tuning Q&A Pairs from Stack Overflow},
  year      = {2026},
  publisher = {HuggingFace},
  url       = {https://huggingface.co/datasets/Omarrran/stackpulse_qa_output},
  license   = {Apache-2.0}
}

πŸ‘€ Author

Omar Haq Nawaz Malik (HuggingFace: Omarrran) AI Engineer & NLP Researcher | BITS Pilani | Srinagar, Kashmir

Downloads last month
18