Dataset Viewer
Auto-converted to Parquet Duplicate
line
string
label
int64
source
string
<View>
1
stackoverflow_2020
Looking at further documentation, it seems that emails coming from my domain are classified as Spam by their servers.
0
stackoverflow_2020
org.mockito.exceptions.misusing.WrongTypeOfReturnValue:
1
stackoverflow_2020
let randomArray = [1,2,4,591,392,391,2,5,10,2,1,1,1,20,20];
1
stackoverflow_2020
c.c:3:19: note: each undeclared identifier is reported only once for each function it appears in
1
stackoverflow_2020
std::vector<char> my_buf (buf_size);
1
stackoverflow_2020
Task Manager: Performance: Virtualization is Enabled
0
stackoverflow_2020
P OMEGALUL S T N OMEGALUL T
0
twitch
libgpuarray 0.7.6 hfa6e2cd_0
1
stackoverflow_2020
[ 3 ] Use "require" with a dynamic lookup
0
stackoverflow_2020
Debug.Assert(10648738977740919977 != 10648738977740919977d);
1
stackoverflow_2020
but it seems weird and wrong to me as I need to add every route at the back-end as well as at frontend.
0
stackoverflow_2020
at my.package.stupidTest1(JavalinTest.java:28)
1
stackoverflow_2020
@Domwindu sup
0
twitch
ls: cannot access 07 - Carmen Suites for orchestra Nos. 1 & 2 (assembled by Ernest Guirard)- Dans Bohème (Gypsy Song, Act II).WAV: No such file or directory
1
stackoverflow_2020
No translation unit shall contain more than one definition of any
0
stackoverflow_2020
m2w64-binutils 2.25.1 5
1
stackoverflow_2020
EDIT:
0
stackoverflow_2019
I've tried reverting all code to a version that worked. I'm sure it's a DialogFlow error.
0
stackoverflow_2019
(dayOne != 'F' && dayOne != 'f' || dayTwo != 'R' && dayTwo != 'r') &&
1
stackoverflow_2020
My question, is how does postgres perform the index on the timestamp - in other words will it index the timestamp based on the date/ time, or will it go into the seconds/ milliseconds, etc?
0
stackoverflow_2019
I am writing some code and I need to compare some values. The point is that none of the variables should have the same value as another. For example:
0
stackoverflow_2019
I get four matrices printed out. I assume these libraries are all using libpng or something similar.
0
stackoverflow_2019
age: number;
1
stackoverflow_2020
Edit: Here's a less trivial example, to show it happens even if the variable is meaningfully used:
0
stackoverflow_2020
weSmart
0
twitch
LESGOOOOOO
0
twitch
dr chad AYAYA
0
twitch
movsx r11, eax
1
stackoverflow_2020
I have a method which performs processing on a stream. Part of that processing needs to be done under the control of a lock - one locked section for processing all the elements - but some of it doesn't (and shouldn't be because it might be quite time-consuming). So I can't just say:
0
stackoverflow_2019
+ "x": 0,
1
stackoverflow_2020
{ return 0.0; }
1
stackoverflow_2020
#include <algorithm>
1
stackoverflow_2020
I have no idea why this is happening and don't know how to fix this. Here is an example of my problem.
0
stackoverflow_2019
function is typically used to register messages for communicating between two cooperating applications.
0
stackoverflow_2019
return await self._start_task(
1
stackoverflow_2020
Below I have illustrated the desired effect:
0
stackoverflow_2020
I haven't found any use full solution to create transparent bottom navigation bar in flutter.
0
stackoverflow_2019
uint64_t mod9_v1(unsigned __int128 n)
1
stackoverflow_2020
<body>
1
stackoverflow_2020
This will return the memory usage of process id 2076 and i can use this for my task. By invoking the following command, I can extract the CPU Time.
0
stackoverflow_2019
White Dad FeelsStrongMan
0
twitch
I've tried to run the exact same shell script via Python3.6 and that gave me the output I desired.
0
stackoverflow_2019
scheduleTime: '2020-02-05T10:05:00.085854Z'
1
stackoverflow_2020
<groupId>org.apache.maven.plugins</groupId>
1
stackoverflow_2020
30 silly fetch manifest commander@4.1.1
1
stackoverflow_2020
- with doReturn|Throw() family of methods. More in javadocs for Mockito.spy() method.
1
stackoverflow_2020
2. environment:
0
stackoverflow_2019
color: 'black', //To see where exactly the list is
1
stackoverflow_2020
After that I've re-checked all information I've provided and answered them that everything is okay with application and they changed status of my game to "In Review" After that they responded :
0
stackoverflow_2019
But when trying this with the following architecture:
0
stackoverflow_2020
152 | var ObjectFactory = function ObjectFactory(name) {
1
stackoverflow_2020
As stated before, Play will not modify the functionality of your application without your knowledge and approval.
0
stackoverflow_2020
Tried code
0
stackoverflow_2019
<div class="message">hello 34</div>
1
stackoverflow_2020
This guy is fucking great
0
twitch
Have I misunderstood how to work with the fetched results controller delegate? I thought that the beginupdates/endupdates calls make sure that the “table view model” does not change between them? What should I do to eliminate the crash?
0
stackoverflow_2019
Traceback (most recent call last):
1
stackoverflow_2020
<div name="{{ widget.name }}"{% include "django/forms/widgets/textfield.html" %}>
1
stackoverflow_2020
I have the following two dataframes (DataA/DataB) which I would like to merge on a per global_index/item/values basis.
0
stackoverflow_2020
"last 1 chrome version",
1
stackoverflow_2020
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1
stackoverflow_2020
I would like to use Jacoco to generate a code coverage report on all my tests (androidTest + UnitTest).
0
stackoverflow_2019
</tbody>
1
stackoverflow_2020
2/ syntax was also wrong in the tsx syntax. I changed to this and now it's ok:
0
stackoverflow_2020
Has anyone had an issue with long forms not posting to Cloud Firestore? If i keep the first 10 questions only, this form submits to the database.
0
stackoverflow_2019
df1.iloc[:,0:27]=df1.iloc[:,0:27].astype('int')
1
stackoverflow_2020
I can't do that though Sadge
0
twitch
PFVAL pfval;
1
stackoverflow_2020
Edit: I think part of it was that I was making a different silly mistake with memoize-one, but I'm still interested to know the answer here wrt React.memo.
0
stackoverflow_2020
xdebug.collect_return => Off => Off
1
stackoverflow_2020
if(thing !== undefined && thing !== null)
1
stackoverflow_2020
when you de only one that posts links
0
twitch
dockergen.1 | 2020/07/20 19:24:54 Generated '/etc/nginx/conf.d/default.conf' from 2 containers
1
stackoverflow_2020
common
0
stackoverflow_2020
null
1
stackoverflow_2020
While following a Flutter course on Firebase, I tried to reload my emulator. Although the app works fine, I received some error log in the debug console:
0
stackoverflow_2020
need help please
0
stackoverflow_2019
where it is said:
0
stackoverflow_2019
iOS 13.2 beta
0
stackoverflow_2019
constructor(props) {
1
stackoverflow_2020
import java.util.concurrent.atomic.AtomicReference;
1
stackoverflow_2020
return otherMachine && otherMachine->machineId == machineId;
1
stackoverflow_2020
@svudasam, healthygamer_gg has been streaming for 2 hours 19 mins
0
twitch
internal static class Program
1
stackoverflow_2020
or
0
stackoverflow_2019
Update:
0
stackoverflow_2020
heroku open
1
stackoverflow_2020
username: String!
1
stackoverflow_2020
bloody mary monkaW
0
twitch
I notice the same behaviour with the functions I call as well.
0
stackoverflow_2020
(+49) 1234567890
1
stackoverflow_2020
});
1
stackoverflow_2020
but when I have tried the below implementation I still get the CORS error:
0
stackoverflow_2020
We have two web sites on IIS for both angular_client and web_api, the hosting bundle is installed and the permission to users such as IUSR, Network, Network Service and Everyone, is already granted.
0
stackoverflow_2019
[21.456s][7248][debug][class,resolve ] sun.security.jca.ProviderList java.lang.Object (super)
1
stackoverflow_2020
console.log(e);
1
stackoverflow_2020
So the mistake my path finding algo does is to go "forward" and then back the same way. This situation im trying to identify and filter out.
0
stackoverflow_2020
One of the biggest challenges in tesseract OCR text recognition is the uneven illumination of images. I need an algorithm that can decide the image is containing uneven illuminations or not.
0
stackoverflow_2020
no stop
0
twitch
End of preview. Expand in Data Studio

This dataset was created for SemEval-2026 Task 13, which focuses on distinguishing machine-generated code from human-written code across multiple programming languages and domains.

While the original SemEval task operates at the code snippet level, this dataset provides line-level annotations that enable finer-grained analysis of how code-like and text-like content is distributed within mixed inputs. The dataset is intended to support research in machine-generated code detection, robust preprocessing, and stylometric analysis, particularly in settings where natural language and programming code naturally coexist.

Each row corresponds to a single line, extracted from real-world sources such as Stack Overflow posts and Twitch chat messages.

Task Definition

Binary line-level classification:

  • label = 0 — natural language text
  • label = 1 — programming code

The task is intentionally defined at the line granularity, rather than document or block level, to support applications such as preprocessing pipelines, mixed-content filtering, and robustness evaluation.


Dataset Structure

The dataset consists of three columns:

Column Description
line Raw line content (text or code). Punctuation, symbols, and formatting are preserved.
label Binary label (0 = text, 1 = code).
source Data origin: stackoverflow_2019, stackoverflow_2020, or twitch.

No aggressive normalization has been applied; punctuation, symbols, and formatting are preserved.


Data Collection and Processing

Stack Overflow Data

The Stack Overflow portion of the dataset was created by parsing HTML post bodies and explicitly separating structural elements:

  • Code lines are extracted from &lt;code&gt; tags
  • Text lines are extracted from &lt;p&gt; (paragraph) tags

To ensure that extracted code corresponds to actual programming content, code blocks are filtered by post tags, retaining only posts associated with the following technologies:

  • &lt;c++&gt;, &lt;java&gt;, &lt;python&gt;, &lt;php&gt;, &lt;c#&gt;, &lt;javascript&gt;, &lt;c&gt;, &lt;go&gt;
  • &lt;react-native&gt;, &lt;laravel&gt;, &lt;django&gt;, &lt;typescript&gt;, &lt;node.js&gt;, &lt;.net-core&gt;

Additional filtering steps:

  • Lines containing package installation commands (e.g. pip) are excluded
  • Lines dominated by error messages or stack traces are ignored
  • Duplicate lines are removed after normalization

This filtering aims to retain clean, representative programming code while avoiding noisy or auxiliary content.


Twitch Data

The Twitch portion consists exclusively of natural language text and is included to introduce informal, unstructured, and ambiguous language that is difficult to distinguish from code using surface-level heuristics.

Key properties:

  • No code labels are present in this subset
  • Duplicate lines are removed
  • Language is short, conversational, and noisy

The purpose of this source is to increase dataset difficulty and improve robustness to domain shift.


Dataset Statistics

Overall Size

  • Total lines: 52,270
  • Text (label 0): 27,330
  • Code (label 1): 24,940

The dataset is approximately balanced, enabling standard classification benchmarks without mandatory resampling.


Label Distribution by Source

Source Text (0) Code (1)
stackoverflow_2019 14,698 0
stackoverflow_2020 7,948 24,940
twitch 4,684 0

Source Distribution

  • Stack Overflow 2020: 32,888 lines (62.9%)
  • Stack Overflow 2019: 14,698 lines (28.1%)
  • Twitch: 4,684 lines (9.0%)

Line Length Statistics (Characters)

Overall:

  • Mean: 59.53
  • Median: 34
  • Minimum: 1
  • Maximum: 9,082
  • Standard deviation: 85.95

By source:

  • Stack Overflow 2019: mean 88.71, median 58
  • Stack Overflow 2020: mean 51.60, median 33
  • Twitch: mean 23.62, median 17

Intended Use Cases

  • Line-level code vs text classification
  • Mixed-content preprocessing and filtering
  • Robustness evaluation across domains
  • Stylometry and authorship analysis
  • Code-aware language modeling pipelines

Limitations

  • Labels are structural, not semantic
  • Code-like text outside &lt;code&gt; tags is labeled as text
  • Logs or pseudo-code inside code blocks are labeled as code
  • Line-level context across adjacent lines is not preserved

Users should account for these properties when designing downstream tasks.


Data Sources and Licensing

This dataset is derived from publicly available sources. Please refer to the following datasets for original data and licensing information:

  • Stack Overflow dataset: (link to be added)
  • Twitch dataset: (link to be added)

Users are responsible for complying with the original licenses when redistributing or building upon this dataset.

Downloads last month
3