Dataset Viewer
Auto-converted to Parquet Duplicate
title
stringlengths
15
150
body
stringlengths
38
32.9k
label
int64
0
3
wso2 APIManager: Add PingIdentity as new OAuth-Endpoint
<p>We are planing to use PingFederate-Server as our central identity managment solution. What are the steps to integrate the ping server oauth-endpoint to our wso2 landscape. Is there already a solution available?</p> <p>I read the blog-post <a href="https://amilasnotes.wordpress.com/2015/05/19/integrating-with-a-thir...
3
signal sigabrt error: Assertion failure in -[_ASDisplayLayer setNeedsLayout]
<p>I need help with the above-mentioned error. My project is using AsyncDisplayKit and I am getting the error above in the _ASDisplayLayer.mm file line 104 in the method </p> <pre><code>- (void)setNeedsLayout { ASDisplayNodeAssertMainThread();//line 104 where error is occuring [super setNeedsLayout]; } </code>...
3
Can not update a system app
<p>I have a application preloaded on ROM, and put it on system app. Current version code is 3. This apk also published on Google Play.</p> <p>Note : All cases below I use same key store, same package with the apk preloaded on ROM.</p> <p><strong>* From Android Studio, I build a new version and upgrade version code to...
3
hmac signature different in python and php
<p>I need little help to figure out issue with php <code>hash_hmac</code>. I am converting a existing <code>python</code> script into <code>php</code> that call an api for process data. Python script is working fine. </p> <p>There is few similar question out there, one of them is <a href="https://stackoverflow.com/qu...
3
Facebook Ads Insights API System user and data fetching automation
<p>I'm going to use Facebook Ads Insights API to fetch stats about campaigns (read_insights permission) and load them into my app.</p> <p>I don't want the user of my app to need to login through facebook. However, it appears that the process of getting System user is rather complicated, and even requires to produce a ...
3
Error in file(file, “rt”) : cannot open the connection
<p>I'm new to R, and after researching this error extensively, I'm still not able to find a solution for it. Here's the code. I've checked my working directory, and made sure the files are in the right directory. Appreciate it. Thanks</p> <pre><code>**pollutantmean &lt;- function(id, directory, ...){ x &lt;- c(NA) ...
3
How do I mirror the curve given below?
<p>I do not know whether which are the correct function, (eg. <code>flipud</code>, <code>fliplr</code>) But I wish to mirror a curve as shown below: <a href="https://i.stack.imgur.com/ONHJI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ONHJI.jpg" alt="enter image description here"></a> TO</p> <p><...
3
Scope function name is displayed instead of value when page loaded
<p>In the following AngularJS code, there is a TextArea and a span to display remaining characters allowed. [Total characters allowed is 100]</p> <p>When I type value in textarea, it displays remaining character count correctly. But when the page is loaded first time, it doesn't show it correctly - it just shows as <c...
3
Disable preview secure text entry UITextField
<p>When an entry is made in into an UITextField, that has secure text entry enabled. The last character that is input is given a short preview for a second or so. </p> <p>I want to disable that as well. Thus, as soon as a character is entered the black dot appears without the preview. </p>
3
Back button in Application bar
<p>I would like to ask how to add a "back" button to the app bar.</p> <p>My app bar looks like this:</p> <p><a href="http://i.stack.imgur.com/BcWcQ.png" rel="nofollow">My App bar</a></p> <p>But i would like to place this arrow to the my app bar before title.</p> <p><a href="http://i.stack.imgur.com/3gqKT.png" rel="...
3
Clear all list item on button click
<p>I have created simple chatting application and it contains some <code>ListView</code> which handles all chat messages, but every <code>ListView</code> is defined in another class. I want to clear my list items from <em>Clear Chat</em> from an overflow menu, which is present in main activity. How can I achieve this?<...
3
I want to create Revit Plugin and in that the command class will be generic
<pre><code>[Transaction(TransactionMode.Manual)] public class InteropCommand&lt;T, V&gt; : IExternalCommand { public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements ) { InterfaceDialog&lt;T, V&gt; interfaceDlgBo...
3
using submodules in git for the timid
<p>I am working in a project which have few layers, each of them independent sub-projects. </p> <p>It looks like this:</p> <pre><code>[ Project C ] [ Project D ] C and D uses B and therefore A [ Project B ] B has all source code in a and adds more [ Project A ] </code></pre> <p>Settin...
3
How can I bulk publish 11,500 coupon codes in WooCommerce Smart Coupons?
<p>We are running a deal with Groupon and have used Smart Coupons plugin with WooCommerce to import 11,500 Groupon codes. I now need to activate them (aka plublish.) However, currently in the WooCommerce interface you can only select and publish 20 coupon codes at once. This would take ~7.5 hours to publish all codes. ...
3
What versioning strategies are available to SignalR hubs with .NET clients?
<p>WCF offers rich support for versioning services, contracts, clients etc. I'm investigating SignalR as a way for my deployed .NET clients to talk to the server, but have not found any resources mentioning how to evolve hubs and clients independently. Is there a reason for this? Surely there must be some kind of recom...
3
Bash array variable expansion inside expect command
<p>An extension to this question : <a href="https://stackoverflow.com/questions/33871500/bash-adding-extra-single-quotes-to-strings-with-spaces">Bash : Adding extra single quotes to strings with spaces</a></p> <p>After storing the arguments of command as a bash array</p> <pre><code>touch "some file.txt" file="some fi...
3
Cannot changing JSON from a mongoDB query unless I copy it into new variable
<p>I've created a MEAN app that returns some JSON, I wanted to create a simple function to change a date field in the JSON before displaying it - however i can only do this if i make a <strong>copy of the data into a new variable</strong>. Can someone explain why this is the case? I thought a knew javascript pretty wel...
3
Fit a Vertical UISlider into an Existing Container View?
<p>I want to create a vertical <code>UISlider</code> and exactly fit it into an existing container view that is sized and placed from a <code>.xib</code> file using <code>autoLayout</code>. But I simply cannot get it to work and I have Googled my fingers bloody.</p> <p>The closest I have gotten creates a slider that ...
3
Drawing a shape
<p>I'm trying to draw an E shaped thingy and as far as I know there are 2 ways to go one of them being path.</p> <p>I could draw with path as the below documentation suggests. <a href="https://developer.apple.com/library/ios/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/BezierPaths/BezierPaths.html" rel="nofol...
3
Error code:0x80071A90 - When Installing IIS on Windows 10.1
<p>I get this error: Windows couldn't complete the requested changes. The function attempted to use a name that is reserved for use by another transaction.Error code:0x80071A90, when I trying to install IIS on windows 10 Pro.</p> <p>May you kindly assist in resolving this issue.</p> <p>Kindest Regards Lucky</p>
3
How to check the type of database Heroku is using?
<p>I just updated database plans on Heroku from hobby-dev to standard-0. How can I check to make sure that the standard-0 postgres database is the one being used?</p>
3
Static config object similar to pythons logging object
<p>The logger object is as I understand a singleton, only one instance can ever exist. You get a reference by this:</p> <pre><code>import logging log = logging.getLogger('MyLogger') </code></pre> <p>I would like to do the same with a global config object, rather then have to pass my config as a parameter. What is the...
3
Chef - restarting due to auto-encryption mechanism
<p>We have an issue with Chef in that it restarts unnecessarily. We schedule chef-client to run every 1 5 minutes. However, a restart of processes and the app occurs every time, even when the user has not made changes.</p> <p>The reason for this is we have a proprietary app we are automating that has a mechanism wher...
3
is supportablerange type graph in Highchart?
<p>Can I set a y axis labels as ["1-10","10-20","20-30","30-40","40-50","50-60"] and bar data depends on these range. Can you please provide us a JSfiddle demo here?</p>
3
Retaining category order when charting/plotting ordered categorical Series
<p>Consider the following categorical <code>pd.Series</code>:</p> <pre><code>In [37]: df = pd.Series(pd.Categorical(['good', 'good', 'ok', 'bad', 'bad', 'awful', 'awful'], categories=['bad', 'ok', 'good', 'awful'], ordered=True)) In [38]: df Out[38]: 0 good 1 good 2 ok 3 bad 4 bad 5 awful 6...
3
How could I check if "canplaythrough" is true?
<p>I want to show an Indicator if somebody clicks on the playbutton. If the video is loaded I want to hide the preloader. This works perfectly with readystate:</p> <pre><code> var einleitung = document.getElementById('einleitung'); video.addEventListener('play', function () { if ( ...
3
Clicking on button_to is not taking me to the intended method
<p>I am trying to get a button_to to call a controller. I've tried a number of variations and nothing seems to work. </p> <p>In my index.html.erb, I have</p> <pre><code> &lt;%= button_to "Clear Search", { :controller =&gt; 'documents', :action =&gt; 'reset_search'} %&gt; </code></pre> <p>In my documents controller...
3
What kind of project do I need to create?
<p>I need to create a .net based Restful web service to interface to an existing SOAP back end application, This web service will be deployed to Azure. Using Visual Studio 2015, what kind of project do I need to create? Could your answer cover in some detail the steps I need to create this project? </p>
3
Pairs insertion/retrieval in/from field
<p>I am trying to insert pairs in a mongoDB Document. This how i am doing it so far:</p> <pre><code>private static MongoCollection&lt;Document&gt; getCollectionn(String link, String coll){ ... } public static void main(String[] args) { MongoCollection&lt;Document&gt; fb_users; fb_users = getColle...
3
Android organisation distribution - multiple oranisations
<p>I want to do organisation distribution for my app. So I found a solution <a href="https://support.google.com/a/answer/2494992?hl=en" rel="nofollow">here</a>.</p> <p>But I have the same app that should be distributed to 3 different companies (same package name). Is this possible or do I have to change the package na...
3
Accesing local node.js server from iOS Emulator?
<p>We are trying to figure out how to do this:</p> <ol> <li><p>We have some service produced by Node.js server, locally hosted on our computer and initialized with npm start. </p></li> <li><p>An IONIC application that uses data from this server... </p></li> </ol> <p>Using $ionic serve, the app can obviously access th...
3
The linear-gradient hack for tinted images: Am I doing it wrong?
<p>Was reading how to do it on <a href="https://css-tricks.com/tinted-images-multiple-backgrounds/" rel="nofollow">https://css-tricks.com/tinted-images-multiple-backgrounds/</a></p> <pre><code>/* Working method */ .tinted-image { background: /* top, transparent red, faked with gradient */ linear-gradient( ...
3
how let mysql do not remove duplicate element of in parameter list
<p>background</p> <blockquote> <p>Market colleague give me an excel file, have customer mobiles, and let me send some kind coupon to these customers, some mobiles are repeat that is mean should send more than one coupon. </p> </blockquote> <p>there is a table have these data,</p> <pre><code>select * from t ; +----...
3
Target div once user has finished dragging element
<p>I have a list:</p> <pre><code>&lt;ul class="draggable"&gt; &lt;li&gt;&lt;span class="drag"&gt;::&lt;/span&gt; item 1&lt;/li&gt; &lt;li&gt;&lt;span class="drag"&gt;::&lt;/span&gt; item 2&lt;/li&gt; &lt;li&gt;&lt;span class="drag"&gt;::&lt;/span&gt; item 3&lt;/li&gt; &lt;/ul&gt; &lt;div class="done" styl...
3
Qt 5.5 - Windows API not Working as usual
<p>I am using <strong>Qt 5.5</strong> on <strong>Windows 10</strong> and I want to open a <code>QWidget</code> in <strong>Foreground</strong> and want to <strong>focus</strong> the <code>LineEdit</code>, like RUN (WIN + R) on Windows. The Problem is the Application is running in the background and I have only an keylog...
3
Override postion top of pseudo element on certain page
<p>I am reusing a class that has a :before psuedo element, and want to overide a property when the element is within an element with a specific class:</p> <p>I currently have:</p> <pre><code>.section-container.accordion .title::before { content: "\e025"; font-family: "GeneralFoundicons"; speak: none; ...
3
DXT Texture working despite S3TC not being supported
<p>The topic involves OpenGL ES 2.0.</p> <p>I have a device that when queried on the extensions via </p> <pre><code>glGetString(GL_EXTENSIONS) </code></pre> <p>Returns a list of supported extensions, none of which is <code>GL_EXT_texture_compression_s3tc</code> .</p> <p>AFAIK , not haveing <code>GL_EXT_texture_comp...
3
Click listener of button inside a layout view that is bind with click listener is not working in Android
<p>I am developing an Android app. In my app, I have a button inside a layout view. Layout view is set click listener. Button inside layout is also bind with click listener. But when I click button inside layout, both listeners are not working. But when I click layout view avoiding button, listener of layout view is wo...
3
how to store an added class which is created by jquery
<p>I am using this example which adds a class <strong>active</strong> when hit a link. But after a refresh, the class active is gone ofcourse. So i want to store that class locally so that it is remembered when even a refresh is done. How can i achieve that?</p> <pre><code>&lt;div id="links"&gt; &lt;a href="#"&gt;Cont...
3
Windows7: getaddrinfo returning "No such host is known" for [::1]
<p>I'm working on modifications to my code to support dual stack environments on Windows 7 et. al. The code uses ActiveMQ-CPP (3.8.4). I've set this up to use a connection to the broker on URI "tcp://[::1]:61616". I've already found I need to compile APR with APR_HAVE_IPV6. </p> <p>Now the issue. When APR's call_...
3
T-SQL Finding VarChar String with Wildcards, but Carriage Return in Field Produces Fewer Results
<p>I'm trying to find all rows with a specific variable character alpha-numeric string from a variable character field using the following code:</p> <pre><code>SELECT * FROM Table AS t WHERE t.Textfield LIKE '%abc123abc%' OR t.Textfield LIKE '%aabbcc12345abcde%'; </code></pre> <p>However, not all of the rows are bein...
3
Decimal conversion scale errors
<p>I am trying to understand data types more..here are few examples which are still puzzling me.</p> <blockquote> <p>Decimal(p,s)--p is the total digits,s is number of digits after point</p> </blockquote> <p>So given below example </p> <pre><code>declare @st decimal(38,38) set @st=1.221210651111152116416416516165...
3
Clarification on javascript scope
<p>In this code I can't understand why if I insert a breakpoint on the first if condition in success <code>if(data == 1){</code> I can see <code>fromCTA</code> variable but not <code>$form</code>: </p> <pre><code>jQuery('.pane-tab form, form#hlp_contactCTA').on('click','.input-submit',function(e){ var $form = jQ...
3
How to submit job when Spark jobs have very different executor resource requirements
<p>Let's say I have a job with the following:</p> <p>Job 1: long-running CPU bound Job 2: Needs a large heap in each executor</p> <p>I'd love to be able to run Job 1 with low memory and Job 2 with more memory. Is my only option to break it up into separate applications that can be submitted (to my YARN cluster) with...
3
Change clear SQL to queryBuilder subquery
<p>Order entity has OneToMany OrderStatsu so any order have many statuses and I want to find all orders where last status = x.</p> <p>My query look like this (and work)</p> <pre><code>SELECT o.id, os.status_id FROM orders o LEFT JOIN( SELECT * FROM order_status GROUP BY orders_id DESC ) AS os ...
3
SQL Delete with join 4
<p>I tried this request : </p> <pre><code>DELETE FROM user_tools AS UT LEFT OUTER JOIN tools AS T ON UT.tool_id = T.id WHERE UT.user_id = :user_id AND T.category = :category"; </code></pre> <p>My goal is to delete records from a table with a condition from a join in an other one. I try several solution without succes...
3
Prevent double booking ASP.NET C#
<p>I 'am trying to create a vacation planner in asp.net with a SQL Server Express database.</p> <p>When you add a vacation, you have to add a <code>begintime</code>, <code>endtime</code> and of course who you are.</p> <p>Is there a way to show an error when there is already vacation with the same time and the same em...
3
I can not get a disk bigger than 10G on google cloud trial. Is this the "unannounced" default?
<p>I create a disk of size 300G when creating the instance, but when I create the instance I see it has reverted back to 10G. I just created an account to test the google cloud free trial with a view of transferring an AWS app over here, but I can't test it on 10G of disk space.</p>
3
How to add custom title tags to Joomla articles without publishing them as menu items?
<p>Is there a way to add custom title tags to Joomla articles without having to first publish them as menu items? So far I haven't seen a way to do it, so any help would be most appreciated!</p>
3
ImageView in custom row for List is out of alignment
<p>I have a custom row for a list. I want to place an image of arrow as a visual guide for the user to tap. </p> <p>The image starts on a new row and never lines up correctly on the right edge of the cell.</p> <p>Here is my XML</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:androi...
3
Looping <td> depends on rowCount inside while
<p>I need loop td inside while fetch.</p> <blockquote> <p>td loop depends on rowCount variable from the first query.</p> </blockquote> <pre><code>&lt;?php include'../db/dbConnect.php'; $_GET['tb']; $t=$_GET['tb']; $q=$con-&gt;prepare("desc $t"); $q-&gt;execute(); $h=$q-&gt;rowCount(); ?&gt; &lt;table&gt; &lt;tr&gt;...
3
GIS software for shading drawn polygons based on data?
<p>I am looking for a program that allows me to draw (preferably import...) tracks or polygons to overlay on a map. A table in the program is then filled with data, similar to below:</p> <pre><code>Zone | Value -------------- A | 90% B | 50% C | 25% </code></pre> <p>etc.</p> <p>The area of the polyg...
3
Streaming video using fork does not return content
<p>I've experienced some sort of timeout when I try to request the same video stream twice, therefor I thought a fork could solve my problem.</p> <p>Before I start, I'm using a <a href="https://gist.github.com/ranacseruet/9826293" rel="nofollow">third party class for video streams</a>. Using my own routing system this...
3
Create system oauth for API based on my service
<p>I would like to develop a system that can help any developer to create an application based to my API.</p> <p>My problem is authentication. I have see (for example) as work google with your services; I would like create an system of oauth (private) such as google (concept) that an developer, after sign to my portal...
3
AngularJS-Modify NgBoilerPlate template to modify the title of the webpage
<p>Have downloaded NgBoilerPlate from <a href="https://github.com/ngbp/ngbp" rel="nofollow">https://github.com/ngbp/ngbp</a>. Using it as a template to build a website. The flow is as follows-</p> <p><strong>index.html</strong></p> <pre><code> &lt;li ui-sref-active="active"&gt; &lt;a href ui-sref="home"...
3
What web technology have been used on http://www.badassembly.com/work/
<p>I was browsing Bad Assembly website: <a href="http://www.badassembly.com/work/" rel="nofollow">http://www.badassembly.com/work/</a> and I saw something really interesting on it.</p> <p>When you scroll through different sections it changes the URL in address bar and also browser "Back" button is active and that happ...
3
JavaFX : How to process a webview in a non application thread
<p>I have a JavaFX application that contains a WebView among other JavaFx views in the same window. The WebView opens a URL to a NodeJs webapp that consumes a lot of CPU resources. </p> <p>With this resource consumption from the WebView, the other JavaFX views are working slowly.</p> <p>For our application, we have a...
3
Why does byte representation in Java store data in decimal?
<p>I was debugging a problem where I created a byte array from binary representation of strings such as below. </p> <ol> <li>While debugging the array just to see how it is stored, I could see them stored internally as decimals. Why is that? </li> <li>When it gets interpreted as bytecode I am assuming it will get con...
3
Shell Script from Unix not running on other OS
<p>I have a shell script working on SCO Unix 5.0.6. The problem is when I copy the script to another machine with SCO Unix 5.0.7 (and also other OS) then it is not running. It shows a syntax error. </p> <p>Note that when I copy all instructions and paste them in command line then they work perfectly. However, as I sai...
3
How to configure ruby Neo4j ActiveRel object to get cascading persistance
<p>I experiment with Neo4j gem for working with Neo4j library. When you configure active nodes without using active relationships you can specify :origin property and on node.save it cascades through all graph saving everything auto-magically. Now I want to use active relationships to have some data on them and :origin...
3
including the OracleClient dll file with release version
<p>I had made small c# program that use oracle database so I had to include reference </p> <blockquote> <p>Data.OracleClient</p> </blockquote> <p>after releasing my project and move it to the working environment I got problem which is missing the reference Data.OracleClient </p> <p>why the Data.OracleClient won...
3
Bash: Why does egrepping for this string succeed?
<p>I'm trying to check if a help switch was passed to my program via egrepping it for <code>-?</code>, <code>-h</code>, or <code>--help</code>. If not, I simply forward everything to another script, like so:</p> <pre><code>if echo "$*" | egrep -q -- '-?|-h|--help'; then help exit 0 fi exec another/script "$@"...
3
gvisGeoChart Not Recognizing Lat/Long for Marker
<p>I'm having issues running some code to plot markers on a US map using <code>googleVis</code> and <code>gvisGeoChart()</code>. I can run the following example, no problems:</p> <pre><code>require(datasets) library(googleVis) GeoMarker &lt;- gvisGeoChart(Andrew, "LatLong", sizevar='Speed_k...
3
I can't open local Folder from link on Sharepoint website
<p>i need help : i can't open local folder from hyperlink in webPart 'Script Editor'<br> Simple Code : [a href='C:\Users\User\Desktop\Folder']open folder[/a] or like a link in Library. Any idea? weird things that is working on the another PC and not on mine. I'am working with IE 11</p>
3
Implement CERT rules using MPS
<p>I am trying to develop a DSL for CERT Java Coding guidelines. That time I got a framework called jetbrains MPS.I tried most of the documents available in jetbrains site. But those are not sufficient for my work. Two doubts are can I implement CERT Java Coding guidelines using MPS and anybody knows any previous work ...
3
301 Redirect to single url without autosubstitution
<p>I need to redirect site's visitors from <code>/good/cats</code> to <code>/bad</code>. What i write:</p> <pre><code>Redirect 301 /good/cats http://somedomain/bad </code></pre> <p>What i get:</p> <pre><code>http://somedomain/bad/cats </code></pre> <p>What should i write to redirect to the <code>http://somedomain/b...
3
Memory Available for Activation Stack?
<p>What is the maximum amount of memory available for activation stack to store activation records? I've been reading about activation stack, and was wondering what would be its limit.</p>
3
In java how can i randomize and int in an array
<p>Hi i am just learning java and want to write a sort of vocabulary trainer. It is working but i want to give the questions in a random order. The trainer pics a list from an external file and splits the file in two parts. It is asking as long the next line isn't null.</p> <pre><code>for (int i = 0; (zeile = br.readL...
3
How to insert task in google task?
<p>I am trying to sync with google tasks. I got the tasks list from default list. Now I want to insert a task in default list.</p> <p>I followed the documentation for this. </p> <p><a href="https://developers.google.com/google-apps/tasks/v1/reference/tasks/insert" rel="nofollow">https://developers.google.com/google-a...
3
How can I handle the deletion of these items from SharedPreferences?
<p>I'm building an app that will silence people's ringers based on their location. I use a PlacePicker API, then save the name of the place to SharedPreferences and add it to a ListView. I have problems with deleting the items, though. When the user long clicks a listview item, it is supposed to be deleted from Shar...
3
How to sort python lists due to certain criteria
<p>I would like to sort a list or an array using python to achive the following: Say my initial list is:</p> <pre><code>example_list = ["retg_1_gertg","fsvs_1_vs","vrtv_2_srtv","srtv_2_bzt","wft_3_btb","tvsrt_3_rtbbrz"] </code></pre> <p>I would like to get all the elements that have 1 behind the first underscore toge...
3
Libgdx No signing identity found matching '/(?i)iPhone Developer|iOS Development/'
<p>I would fill my app I'm doing with Android libgdx and study, using robovm , but I did not recognize the certificate .</p> <p>The certificate from xcode preferences correctly was downloaded , and then usually always worked .... what I did because it renew expired and then I re-downloaded with xCode .</p> <p>Does an...
3
Can't get content on the same row
<p>Ive been working on this menu and I can't get my parts of my menu to display within the same row. So far I've been going off how to nest rows under bootstrap's website. Any help is appreciated! Thanks in advance! This is what I have so far: </p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="...
3
Casting error, IO C program
<p>Overall objective: Read arbitrary file into a buffer, copy buffer over to farray while removing null characters.</p> <p>Error: </p> <blockquote> <p>Allocating memory for arrays (which is reuqired)</p> </blockquote> <p>error msg:</p> <blockquote> <p>warning: incompatible implicit declaration of built-in funct...
3
Replacing values in each column independently according to value order in R
<p>I have a matrix:</p> <pre><code>mat &lt;-structure(c(0.35, 0.27, 0.26, 0.28, 0.23, 0.37, 0.28, 0.27, 0.28, + 0.22, 0.34, 0.27, 0.25, 0.25, 0.24, 0.35, 0.27, 0.25, 0.29, 0.27, + 0.66, 0.37, 0.49, 0.46, 0.42, 0.64, 0.4, 0.48, 0.45, 0.42, 0.81, + 0.39, 0.36, 0.37, 0.36, 0.34, 0.34, 0.43, 0.42, 0.34), .Dim = ...
3
Changing message to already pulled commits
<p>I've been working on a project where all commit messages where made in Spanish. Now I'm working with people from other countries so I'd like to change commit messages to English. Is it possible?</p>
3
SQL retrieving filtered value in subquery
<p>in this cust_id is a foreign key and <em>ords</em> returns the number of orders for every customers</p> <pre><code>SELECT cust_name, ( SELECT COUNT(*) FROM Orders WHERE Orders.cust_id = Customers.cust_id ) AS ords FROM Customers </code></pre> <p>The output is correct but i want to filter it to retrieve...
3
Form is empty, so it gives me a validation error even before I submit
<p>Im really new to php, so hear me out. I made a simple page with a form that validates whether the data you sent was ok to send, but it gives me a validation error I made even before I enter anything. Heres the code:</p> <pre><code> &lt;html&gt; &lt;body&gt; &lt;form action="first.php" method="post"&gt; ...
3
Can't get polymer databinding to custom html tag to work while it works on standard tags
<p>I'm using polymer 1.3.1 but can't get the following to work inside a polymer-element named: <code>poly-main</code>. The text of the <code>&lt;div&gt;</code> should be in red but isn't.</p> <pre><code>&lt;div testcolor="[[colorLocalRed]]"&gt; --&gt;ERROR This must be RED because testcolor="[[colorLocalRed]]" (expec...
3
How to form Elastic Search Request to return records using Group By
<p>My requirement is I need to form a request to get the count of All the Guests whose 'arrivalDt' is greater than the current date group by 'resId'. The data has resId, Guest Info, arrivalDt. There will multiple records with the same resrvationId(resId) with Individual Guest details for that reservation.</p> <p>I hav...
3
Retrieve header values from post request
<p>I'm trying to retrieve values from the header response, but can't seem to retrieve this? i've tried with <code>allHeaderFields</code>, but does not seem to be a member of <code>NSURLResponse</code>?</p> <pre><code>testProvider.request(.SignIn(email, password), completion: { result in switch result { case le...
3
Regular Expression in java to get parameters from javascript methods
<p>Long story short, i would like to get the parameters list from JavaScript methods in Java. It works well if i got any parameters, but if the parameter list is empty it's just not working. For example</p> <pre><code>function() { return fn.num(tra.getMaster_id(fg)+1) </code></pre> <p>My regular expression is:</p> <...
3
git: hook processed files?
<p>Good evening it's strange that git hooks obviously don't know anything about handled files, e.g.:</p> <pre><code># Checkout any files which were deleted in the local workspace git ls-files -d | xargs git checkout -- </code></pre> <p>This command calls the post-checkout script - but does not pass all handled files....
3
How do I access a directive scope from a parent directive/controller?
<p>I have a template that goes something like this: </p> <pre><code>&lt;parent-directive&gt; &lt;child-directive binding="varFromParent"&gt;&lt;/child-directive&gt; &lt;button ng-click="parentDirective.save()"&gt;&lt;/button&gt; &lt;/parent-directive&gt; </code></pre> <p>When executing a function in the <code...
3
Qt Removing Window Widgets
<p>I'm using Qt5.5 and I would like a window without any widgets, here is a snippet from my Window constructor:</p> <pre><code> Qt::WindowFlags flags = (Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint) &amp; ~Qt::WindowMaximi...
3
Getting specific rows from sqlite database upon text changed
<p>I have multiple records in my sqlite database and upon the text changed(change of date in the 'Date edit text'),I want the corresponding row to be displayed in a table. I have the following code which works for the last record in the database but I don't know how to display rows corresponding to the date chosen. Ple...
3
Loops in Unix script
<p>Currently, I have written my script in the following manner:</p> <pre><code>c3d COVMap.nii -thresh 10 Inf 1 0 -o thresh_cov_beyens_plus10.nii c3d COVMap.nii -thresh 9.7436 Inf 1 0 -o thresh_cov_beyens_plus97436.nii c3d COVMap.nii -thresh 9.4872 Inf 1 0 -o thresh_cov_beyens_plus94872.nii c3d COVMap.nii -thresh 9.230...
3
Results aren't ordered
<p>The following query returns all records, but they are not in descending order. It seems the query is unaffected by the second parameter of orderBy.</p> <pre><code>\app\models\Lookup::find()-&gt;orderBy('id',SORT_DESC)-&gt;all() </code></pre>
3
child classes not toggling in jquery
<p>I am new to jquery trying to add css classes using jquery to style html, but here inner child's are not toggling...<a href="https://jsfiddle.net/venumadhav/v6u54Lzm/1/" rel="nofollow">here is my fiddle</a></p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-c...
3
How to correctly unwrap `data` inside `data`?
<p>I’m trying to access nested data (<code>Foo.y</code> inside <code>Bar</code> in the example below), but the straightforward approaches for unwrapping <code>Foo</code> inside <code>Bar</code> that come to mind do not work. But how to unwrap it correctly?</p> <p>Here my data:</p> <pre><code>module Foo where import ...
3
Merge libgdx game with android studio project
<p>I have created a libgdx game and an android studio project. I want to be able to open my game from the application using a game button. How can I add the game to the android project?</p>
3
ElasticSearch analyzer that allows for query both with and without hypens
<p>How do you construct an analyzer that allows you to query fields both with <em>and</em> without hyphens?</p> <p>The following two queries must return the same person:</p> <pre><code>{ "query": { "term": { "name": { "value": "Jay-Z" } } } } { "query": { "term": { "name":...
3
Join multiple Rows as columns with many where and having clauses
<p>I'm trying to solve (a complex?) Problem, which I can't get to work on my own.</p> <p>I got the following Tables: (Coordinates are dummys)</p> <p>Table A:</p> <pre><code>ID | Name |Attribute 1 | Attribute 2 | Lat | Lon | Car Country 1 | Test 1 | Blue | BMW | 6.4 | 6.2 | German 2 | Hallo | Re...
3
Spatial4j - Create circle using centroid and radius in miles
<p>Using Spatial4j, I want to create a circle using a centroid and radius specified in miles (or kilometers). The Javadoc says "The units of "distance" should be the same as x &amp; y." which I am confused by. </p> <p>I understood x and y (lat, lon) to be in degrees and I don't know how to express the radius in degr...
3
Saving and loading ArrayLists in Android
<p>I am working on an android application that will randomly choose a activity for people to do from an array list. I want this list to be edited by the user of the application by adding or removing activities from the list. I would like the list to be loaded when the application is opened and saved when paused, closed...
3
Maintaining a Relative Order of Flex Tasks in a SQL DB
<p>I have a task scheduling app that allows people to create 2 types of tasks...</p> <p>•Strict- tasks with a set start time and duration •Flex- tasks that have a duration, but no specific start time</p> <p>Its also important to understand how flex tasks operate- Flex tasks will continuously reschedule themselves th...
3
Correct way to reset class values in unit testing with setup
<p>I'm new to Objective-C so please bear with me. </p> <p>I have a unit test class that looks something like this:</p> <pre><code>static NSString * const kTestingUserID = @"userID"; @interface UserPreferencesTest @property(nonatomic) UserPreferences *userPreferences; @end @implementation UserPreferencesTest ...
3
Using TestContext.TestName in Managed C++ Tests
<p>How can I use the TestName member of the TestContext class in managed VS C++ test code to automatically output the name of the test method to the debug console?</p> <p>Every example I've been able to find is in C# and I cannot translate it into C++ properly. Here I attempt to do this by capturing a TestContext obj...
3
Customize kendo ui column bars
<p>I have the following kendo ui column chart.</p> <p><a href="http://dojo.telerik.com/ibijO" rel="nofollow">http://dojo.telerik.com/ibijO</a></p> <p>I need to make all the bars wider and centered them. Is that possible through kendo ui configuration, not through css I have changed them through css but now I have pro...
3
How can I see the final version of a Qweb template in Odoo/Openerp
<p>Example:</p> <p>I have a template which two custom modules modify. Because module 1 removes an element that module 2 depends on (it's in its Xpath) the module 2 cannot be installed.</p> <p>How can I see the architecture of the template after modification by other modules?</p>
3
End of preview. Expand in Data Studio

Dataset Card for [Stackoverflow Post Questions]

Dataset Description

Companies that sell Open-source software tools usually hire an army of Customer representatives to try to answer every question asked about their tool. The first step in this process is the prioritization of the question. The classification scale usually consists of 4 values, P0, P1, P2, and P3, with different meanings across every participant in the industry. On the other hand, every software developer in the world has dealt with Stack Overflow (SO); the amount of shared knowledge there is incomparable to any other website. Questions in SO are usually annotated and curated by thousands of people, providing metadata about the quality of the question. This dataset aims to provide an accurate prioritization for programming questions.

Dataset Summary

The dataset contains the title and body of stackoverflow questions and a label value(0,1,2,3) that was calculated using thresholds defined by SO badges.

Languages

English

Dataset Structure

title: string, body: string, label: int

Data Splits

The split is 40/40/20, where classes have been balaned to be around the same size.

Dataset Creation

The data set was extracted and labeled with the following query in BigQuery:

SELECT
  title,
  body,
  CASE
    WHEN score >= 100 OR favorite_count >= 100 OR view_count >= 10000 THEN 0
    WHEN score >= 25 OR favorite_count >= 25 OR view_count >= 2500  THEN 1
    WHEN score >= 10 OR favorite_count >= 10 OR view_count >= 1000 THEN 2
    ELSE 3
  END AS label
FROM `bigquery-public-data`.stackoverflow.posts_questions

Source Data

The data was extracted from the Big Query public dataset: bigquery-public-data.stackoverflow.posts_questions

Initial Data Collection and Normalization

The original dataset contained high class imbalance:

label count 0 977424 1 2401534 2 3418179 3 16222990 Grand Total 23020127

The data was sampled from each class to have around the same amount of records on every class.

Contributions

Thanks to @pacofvf for adding this dataset.

Downloads last month
28