Dataset Viewer
Auto-converted to Parquet Duplicate
content
stringlengths
2
6.21k
label
stringclasses
16 values
1, M68K_SIZE_TYPE_FPU = 2, } #[doc = " Operation size of the current instruction (NOT the actually size of instruction)"] #[repr(C)] #[derive(Copy)] pub struct m68k_op_size { pub type_: m68k_size_type, pub __bindgen_anon_1: m68k_op_size__bindgen_ty_1, } #[repr(C)] #[derive(Copy)] pub union m68k_op_size__bi...
Rust
n) ch).state == ((CrystalGuardian) ch).SLEEPING) { ((CrystalGuardian) ch).aggro(Dungeon.hero); ((CrystalGuardian) ch).beckon(pos); //delays sleeping guardians that happen to be near to the crystal if (PathFinder.distance[ch.pos] < 20){ Buff.affect(ch, Paralysis.class...
Java
(output['scriptPubKey']?['asm'] as String?)?.split(" "); if (scriptChunks?.length == 2 && scriptChunks?[0] == "OP_RETURN") { final blindedPaymentCode = scriptChunks![1]; final bytes = blindedPaymentCode.toUint8ListFromHex; // https://en.bitcoin.it/wiki/BIP_0047#Sending if (bytes.l...
Dart
im.current.buffer.name: command.extend(['-assume-filename', vim.current.buffer.name]) p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, startupinfo=startupinfo) stdout, stderr = p.communicate(input=text) # If suc...
Python
matchers" // root is a matcher which passes for any slice of bytes. // When a matcher passes the check, the children matchers // are tried in order to find a more accurate mime type. var root = newNode("application/octet-stream", "", matchers.True, sevenZ, zip, pdf, doc, xls, ppt, ps, psd, ogg, png, jpg, gif, webp, e...
Go
FileURL.path(path) -- make FileURL object from POSIX path string FileURL.hfs_path(path) -- make FileURL object from HFS path string FileURL.url(url) -- make FileURL object from a local file:// URL string FileURL.desc(desc) -- make FileURL object from an AE::AEDesc ...
HTML
common.removeOutDir(sampleAppPath); done(); }); afterAll(function(done) { common.removeOutDir(sampleAppPath); done(); }); it('Generate SampleApp', function(done) { const generateCmd = common.makeCmd('ares-generate'); const appId = options.profile === "signage...
JavaScript
Position[1], menuItem.text, this.fontOptions).setOrigin(0.5, 1); lastMenuPositionY += this.lineHeight; setupMenuEvents(menuItem); }); } } export default BaseScene; import {VSOP87} from "./VSOP87" import {JDate} from "./JDate"; import {MPP02} from "./MPP02"; let PI2: number = Math.PI * 2; let R2A: nu...
Typescript
/* **************************************************************************** * vim:set shiftwidth=2 softtabstop=2 expandtab: * $Id: selftest_sram.c 5983 2010-03-07 03:30:11Z grg $ * * Module: selftest_sram.c * Project: NetFPGA selftest * Description: SRAM selftest module * * Change history: * */ #include ...
C
,a4,a5)}catch(e){stackRestore(sp);if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_i(index){var sp=stackSave();try{return Module["dynCall_i"](index)}catch(e){stackRestore(sp);if(typeof e!=="number"&&e!=="longjmp")throw e;Module["setThrew"](1,0)}}function invoke_ii(index,a1){var sp=...
JavaScript
rns: null|string[] = ["**/*"]): Promise<any> { return Promise.reject("not implemented yet"); } export function copyTreeSync(sourcePathAbs: string, destPathAbs: string, patterns: string[] = ["**/*"]): void { patterns.forEach((pattern) => { glob.sync(path.resolve(sourcePathAbs, pattern), {nodir: true, a...
Typescript
.p-disabled):hover .p-menuitem-text { color: rgba(255, 255, 255, 0.87); } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: rgba(255, 255, 255, 0.87); } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: rgba(255, 255, 255, 0.87); } .p-slid...
CSS
fnText":"duration","external":true,"refSections":[{"refs":[{"id":"ref-for-dom-media-duration"}],"title":"8. Remote Playback Protocol"},{"refs":[{"id":"ref-for-dom-media-duration\u2460"}],"title":"8.1. Remote Playback State and Controls"}],"url":"https://html.spec.whatwg.org/multipage/media.html#dom-media-duration"}, "3...
HTML
ties. </param> /// <param name="nextLink"> Request URL that can be used to query next page of storage accounts. Returned when total number of requested storage accounts exceed maximum page size. </param> internal SupersetModel1ListResult(IReadOnlyList<SupersetModel1Data> value, string nextLink) ...
C#
68.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-...
JavaScript
Exception"> <paramref name="nextLink"/>, <paramref name="subscriptionId"/> or <paramref name="resourceGroupName"/> is null. </exception> /// <exception cref="ArgumentException"> <paramref name="subscriptionId"/> or <paramref name="resourceGroupName"/> is an empty string, and was expected to be non-empty. </exce...
C#
#ifndef BLINKER_AUTO_SUBDEVICE_H #define BLINKER_AUTO_SUBDEVICE_H #if defined(BLINKER_WIFI_SUBDEVICE) #if ARDUINO >= 100 #include <Arduino.h> #else #include <WProgram.h> #endif #include <EEPROM.h> // #include "Blinker/BlinkerAuto.h" #include "Blinker/BlinkerConfig.h" #include "Blinker/BlinkerDebug.h" #inclu...
C
# https://pytorch.org/docs/2.0/onnx.html import torch import torchvision import time dummy_input = torch.randn(10, 3, 224, 224, device="cuda") model = torchvision.models.alexnet(pretrained=True).cuda() # Providing input and output names sets the display names for values # within the model's graph. Setting these doe...
Python
com/fdroid/fdroiddata/-/blob/master/metadata/co.localmonero.app.yml\">https://gitlab.com/fdroid/fdroiddata/-/blob/master/metadata/co.localmonero.app.yml</a></p>\n<p>مثال میں آپ دیکھ سکتے ہیں:</p>\n<ol>\n<li>فلٹر کو ذیلی ماڈل کے طور پر استعمال کیا جاتا ہے - یہ F-Droid ٹیم کی طرف سے ایک ضرورت ہے۔</li>\n<li>ہر ذائقے کے لی...
Dart
ungeonTakeFirstPassRewardReqOuterClass.internal_static_ChannellerSlabLoopDungeonTakeFirstPassRewardReq_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.ChannellerSlabLoopDun...
Java
/* SPDX-FileCopyrightText: 2008 Torsten Rahn <[email protected]> SPDX-License-Identifier: LGPL-2.0-or-later */ #ifndef MARBLE_GEOSCENELAYER_H #define MARBLE_GEOSCENELAYER_H #include <QList> #include <QString> #include <geodata_export.h> #include "GeoDocument.h" namespace Marble { class GeoSceneAbstractDataset...
C
-09-14) - Fixed bugs in the HackerRank, ECNU Online Judge, QDUOJ and NYTD Online Judge parsers - Removed the SUSTech Online Judge parser ## [2.3.0](https://github.com/jmerle/competitive-companion/releases/tag/2.3.0) (2018-09-09) - Fixed bugs in the HackerRank, URI Online Judge and Codeforces parsers - Added parsers fo...
Markdown
v1.8h, v17.8h, v19.8h ld1 {v16.8h}, [x0], #16 ld1 {v18.8h}, [x1], x3 smull v2.4s, v0.4h, v0.4h smull2 v3.4s, v0.8h, v0.8h smull v4.4s, v1.4h, v1.4h smull2 v5.4s, v1.8h, v1.8h sub v6.8h, v16.8h, v18.8h 1: subs x5, x5, #1 ld1...
Assembly
foreach (var concern in concerns) { crossCuttingEnabledObj.AppliedCrossCuttingConcerns.RemoveAll(c => c == concern); } } public static bool IsApplied([NotNull] object obj, [NotNull] string concern) { if (obj == null) { ...
C#
GC.SuppressFinalize(this); } public bool IsKeyDown(Key key) { return this.keysDown.Contains(key); } public bool IsKeyPressed(Key key) { return this.keysDown.Contains(key) && !this.keysDownLast.Contains(key); } public bool IsKeyReleased(Key key) { retu...
C#
mysql_sql.y:5342 { yyLOCAL = append(yyDollar[1].strsUnion(), yyDollar[3].cstrUnion().Compare()) } yyVAL.union = yyLOCAL case 807: yyDollar = yyS[yypt-1 : yypt+1] var yyLOCAL *tree.Select //line mysql_sql.y:5349 { yyLOCAL = &tree.Select{Select: yyDollar[1].selectStatementUnion()} } yyVAL.union = ...
Go
:"Kleiner lateinischer Buchstabe y mit Trema",OElig:"Lateinischer Buchstabe Ligatur OE",oelig:"Kleiner lateinischer Buchstabe Ligatur OE",372:"Lateinischer Buchstabe W mit Zirkumflex",374:"Lateinischer Buchstabe Y mit Zirkumflex",373:"Kleiner lateinischer Buchstabe w mit Zirkumflex", 375:"Kleiner lateinischer Buchstabe...
JavaScript
umber = MainBoard.checkthematalacson1(MainBoard.board); let IsGameOver4: number = MainBoard.checkthematalacson2(MainBoard.board); if (IsGameOver1 == 1 || IsGameOver2 == 1 || IsGameOver3 == 1 || IsGameOver4 == 1) { alert("user win"); btnElement = `<button onclick="user_win()">clic...
Typescript
.rt.ToValue("reuseAs: nil matrix") } dense.ReuseAs(rows, cols) return js.Undefined() } func (d *Dense) Zero(call js.FunctionCall) js.Value { dense := d.value.(*mat.Dense) if dense == nil { return d.rt.ToValue("zero: nil matrix") } dense.Zero() return js.Undefined() } func (d *Dense) Reset(call js.FunctionCa...
Go
s.sideBarOpen) { this.sideBarOpen = !this.sideBarOpen; } } signOut() { } /** * * Permet un affichage responsive * */ dynamicWindowResize(){ if ( this.screenWidth < 1280) { this.sideBarMode = "over"; } else if ( this.screenWidth >= 1280) { this.sideBarMode = "si...
Typescript
isb bx lr .global arm_mmu_invalidate_tlb_entry arm_mmu_invalidate_tlb_entry: mcr p15, 0, r0, c8, c7, 1 isb bx lr // ============================================================================ // CACHE CONTROL // ============================================================================ .global...
Assembly
> <ul> <li><a href="boilers-c-2.html">Boilers</a></li> <li><a href="fires-c-63.html">Fires</a></li> <li><a href="heating-controls-c-220.html">Heating Controls</a></li> <li><a href="hot-water-cylinders-c-298.html">Hot Water Cylinders</a></li> <li><a href="pipe-fit...
HTML
20.72), vec3(-65.35, -1812.30, 20.72), vec3(-77.55, -1801.90, 20.72), vec3(-61.91, -1784.16, 20.72), vec3(-36.63, -1805.29, 20.72), vec3(-10.51, -1774.11, 20.72), vec3(8.06, -1797.15, 20.72), vec3(-16.08, -18...
Lua
g, zip: String, }, closeSchedule /* TCloseSchedule[] */: [ { day: String, period: String, scheduleType: String }, ], createdAt: { type: Date, default: Date.now, required: true }, createdBy: { type: Schema.Types.ObjectId, ref: "User", required: false }, deleted: { type: Boolean, default: false, requi...
Typescript
uler.createHotObservable( onNext(300, {k : "a", v : "sa1"}), onCompleted(700) ); var res = scheduler.startWithCreate(() => combinator.combineGroup(ps, ss, (i) => i.item.k, scheduler) ); expect(res.messages).eqls( [ onNext(501, { p: {k : "a", v : "pa1"}, s: {k : "a", v : "sa1"} }), onComp...
Typescript
es from data base */ getTypesRef() { return this.types; } /** * Get subtypes from data base * @param typeName */ getSubtypesRef(typeName: string){ this.subtypes = this.af.database.list('subtypes', { query: { orderByChild: 'typeName', equalTo: typeName } }); ...
Typescript
chatHistory.appendAll(m_client->playerStorage()->getMetadata("chatHistory").opt().apply(jsonToStringList).value()); show(); updateBottomButton(); m_background = fetchChild<ImageStretchWidget>("background"); m_defaultHeight = m_background->size()[1]; m_expanded = false; updateSize(); } void Chat::update(...
C++
.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * l...
Kotlin
#wechat_redirect) [](http://mp.weixin.qq.com/s?__biz=Mzg3ODE2MjkxMQ==&mid=2247483850&idx=1&sn=8fad4ed1e05443dce28f6ee6d89ab920&chksm=cf16a77af8612e6c688c55f7a899fe123b0f71735eb15988321d0bd4d14363690c96537bc1fb&scene=21#wechat_redirect) ###### 渗透安全HackTwo ###### 想了解星球福利回复:星球 微信号:关注公众号获取 扫码...
Markdown
_)).</del> 1. <del>Let _newValue_ be the result of adding the value 1 to _oldValue_, using the same rules as for the `+` operator (see <emu-xref href="#sec-applying-the-additive-operators-to-numbers"></emu-xref>).</del> 1. <ins>Let _oldValue_ be ? ToNumeric(? GetValue(_lhs_)).</ins> 1. <in...
HTML
s) => { f.weekday_numeric(&dt, flags); } Item::WeekdayShort(flags) => { f.weekday_short(dt.weekday().num_days_from_monday() as usize, flags); } Item::WeekdayLong(flags) => { f.weekday_long(dt.weekday().num_days_from_monday()...
Rust
16 xor 13,13,16 # qhasm: y2 = z2 ^ p31 # asm 1: xor >y2=int32#9,<z2=int32#9,<p31=int32#15 # asm 2: xor >y2=11,<z2=11,<p31=17 xor 11,11,17 # qhasm: y1 = z1 ^ p32 # asm 1: xor >y1=int32#10,<z1=int32#10,<p32=int32#17 # asm 2: xor >y1=12,<z1=12,<p32=19 xor 12,12,19 # qhasm: y0 = z0 ^ p33 # asm 1: xor >y0=int32#12,<z0=in...
Assembly
", name: "Phi-4"}, {id: "Mistral-Large-2411", name: "Mistral-Large-2411"}, {id: "AI21-Jamba-1.5-Large", name: "AI21-Jamba-1.5-Large"}, {id: "AI21-Jamba-1.5-Mini", name: "AI21-Jamba-1.5-Mini"}, {id: "Cohere-command-r-08-2024", name: "Cohere-command-r-08-2024"}, {id: "Cohere-command-r-plus-0...
JavaScript
dd>Unsupported mode within an otherwise usable file type.</dd> <dt><tt>ALUT_ERROR_CORRUPT_OR_TRUNCATED_DATA</tt></dt> <dd>The sound data was corrupt or truncated.</dd> </dl> <h3 class="manpage"><a name="alutLoadMemoryFromFileImage"></a>alutLoadMemoryFromFileImage</h3> <h4>Name</h4> <p><t...
HTML
bag has long been stocked with diapers -- in his current size yet -- and moist wipes. Which were after a month or so of no in-car events about as moist as a civil-defense cracker from 1955. </p> <p>We are gifted improvisers, and Charlie did just fine being changed and mostly cleaned under the shelter of a liftgate an...
HTML
) => Json(Message{ message: format!("ERROR: {:?}", e) }), Ok(_) => Json(Message{ message: format!("SUCCESS: {} ADDED", task.title) }), } } #[delete("/<todoid>")] fn delete(conn: TodosDB, todoid: i32) -> Json<Message> { use crate::schema::todos::dsl::*; match diesel::delete(todos.filter(id.eq(todoi...
Rust
--================================================================ -- -- 配置 -- --================================================================ -- 怪物 monsters = { } -- NPC npcs = { } -- 装置 gadgets = { { config_id = 329001, gadget_id = 70900340, pos = { x = 1836.0, y = 204.2, z = -1221.1 }, rot = { x = 0.0, y = ...
Lua
} catch (NoSuchAlgorithmException e) { logger.error("Invalid hash algorithm {}", HASH_ALGORITHM, e); return new byte[0]; } } /** * Generates a hash of an input stream (can take a while) * * @param file the file to hash its contents * @return the hash of the file * @throws IOException if te file can...
Java
thêm hình ảnh đã được tải lên ${Picasa} hoặc ${Google+} vào câu chuyện của bạn. ${helpLinkText} sắp sửa sử dụng hình ảnh được lưu trong tài khoản ${Google} của bạn vào câu chuyện của bạn.", "helpLinkText": "Tìm hiểu thêm", "cannotFindUser": "Không thể tìm thấy người dùng ${username}. Vui lòng t...
JavaScript
isPhysicalDisconnect) { return this.each(function() { var attrchangeMethod = $(this).data('attrchange-method'); if (attrchangeMethod == 'propertychange' || attrchangeMethod == 'DOMAttrModified') { $(this).off(attrchangeMethod); } else if (attrchangeMethod == 'Mutation Observer') { $(this).data(...
JavaScript
ctor also * accepts {@link google.maps.LatLngLiteral} and <code>LatLng</code> * objects. If a <code>LatLng</code> instance is passed to the constructor, * a copy is created. <p> The possible calls to the constructor are below: * <pre> new google.maps.LatLng(-34, 151);<br> new google.maps.LatLng(-34,...
Typescript
ster4, Value: alloraMath.NewDecFromInt64(800)}, // Should be filtered out }, OneOutInfererForecasterValues: []*emissionstypes.OneOutInfererForecasterValues{ { Forecaster: forecaster1, OneOutInfererValues: []*emissionstypes.WithheldWorkerAttributedValue{ {Worker: inferer1, Value: alloraMath.NewDecFro...
Go
s://leetcode.cn/problems/data-stream-as-disjoint-intervals/ * * 给你一个数据流。你需要实现一个数据结构支持两个操作: * * 1. addNum(val) - 向数据流中加入整数 val * 2. getIntervals() - 返回数据流中已有的数字的所有不相交区间 * * 实现 SummaryRanges 类: * - SummaryRanges() 使用空数据流初始化对象 * - void addNum(int val) 向数据流中加入整数 val * - int[][] getIntervals() 以不相交区间 [starti, e...
Java
important}.hc-cart .hc-action-keepshopping{width:100%}}.hc-estimate-shipping .hc-rates{font-weight:bold}.hc-minicart .hc-iconbox{position:relative;width:60px;height:32px;z-index:500}.hc-minicart .hc-iconbox a{display:block;height:32px;text-align:right;padding:4px 10px;font-weight:bold;color:#333}.hc-minicart .hc-iconbo...
CSS
<li><a href="{% url 'bath' %}">Мебель для ванной комнаты</a></li> <li><a href="{% url 'facades' %}">Фасады</a></li> <li><a href="{% url 'ready_products' %}">Готовые издеелия</a></li> <li><a href="{% url 'door' %}">Межкомнатные двери</a></li> <li><a href="#">Дополнительные элементы</a></li>...
HTML
_this.prevBufferLen = 0; _this.opts = _extends({ path: "/engine.io", agent: false, withCredentials: false, upgrade: true, jsonp: true, timestampParam: "t", rememberUpgrade: false, rejectUnauthorized: true, perMessageDeflate: { threshold: 1024 },...
JavaScript
{ using State = SubscriptionStateMachineState; // Suppress "AUTOSAR C++14 M6-4-3" rule finding. This rule declares: "A switch statement shall be // a well-formed switch statement". // We don't need a break statement at the end of default case as we use return. // coverity[autosar_cpp14_m6_4_3_viola...
C++
ECT_CHANGED</tt>. For <tt>OBJECT_RENAMED</tt>, * it is null if the object after the rename is outside the scope for * which the listener registered interest; it is nonnull if the object * is inside the scope after the rename. *<p> * The name in the binding is to be resolved relative * to t...
Java
using System; using System.Linq; using System.Net; using System.Net.Sockets; using System.Security.Principal; namespace Implant.Utils { public class ImplantDataUtils { public static string ReturnArch() { var arch = IntPtr.Size == 8 ? "x64" : "x86"; return arch; } ...
C#
ComponentData( entity, compType ) local func = self:GetFunc("GetComponentData", compType, EntityManager) return func(self.entityMgr, entity, compType) end function ECS:SetComponentData( entity, compType, data ) local func = self:GetFunc("SetComponentData", compType, EntityManager) func(self.entityMgr, entity, data...
Lua
Button_CaseInsensitive_Success() // { // string name = "Button111"; // string nameToCheck = "BUTTON111"; // string formName = MiddleLevelCode.TestFormNameEmpty; // MiddleLevelCode.StartProcessWithFormAndControl( // UIAutomationTestForms.Forms.WinFormsEmp...
C#
al database = DatabaseManager.getServerDatabaseAndOperator(serverUrl).database; groupTeam = GroupTeam.fromJson(msg.data!['group_team']); await deleteGroupTeamById(database, generateGroupAssociationId(groupTeam.group_id, groupTeam.team_id)); } } catch (e) { handleError(serverUrl, e, msg); } } F...
Dart
L attribute to get the HTML serialisation of that <code id=serialising-html-fragments:the-style-element-3><a href=semantics.html#the-style-element>style</a></code> element: if the user enters "<code>&lt;/style>&lt;script>attack&lt;/script></code>" as a font family name, <code id=serialising-html-fragments:dom-inn...
HTML
bool emptyTrans = true; for (unsigned int i = 0; i != Size(); ++i) { CUnit &aiunit = *Units[i]; if (aiunit.CanMove() && aiunit.Type->MaxOnBoard) { transporters.push_back(&aiunit); if (aiunit.BoardCount > 0) { emptyTrans = false; } } } if (transporters.empty()) { // Our transporter...
C++
.getCenter(_center); _extents.subVectors(this.max, _center); _v0$3.subVectors(triangle.a, _center); _v1$7.subVectors(triangle.b, _center); _v2$4.subVectors(triangle.c, _center); _f0.subVectors(_v1$7, _v0$3); _f1.subVectors(_v2$4, _v1$7); _f2.subVectors(_v0$3, _v2$4); let axes = [ 0...
JavaScript
lang.Long)" alt=""><area shape="rect" coords="226,890,391,906" href="#setObsOrgao(java.lang.String)" alt=""><area shape="rect" coords="226,906,427,923" href="#setOrgaoExterno(br.gov.jfrj.siga.dp.CpOrgao)" alt=""><area shape="rect" coords="226,923,417,940" href="#setPagPublicacao(java.lang.String)" alt=""><area shape="r...
HTML
> /// <li> /// Maximum value length - 256 Unicode characters in UTF-8 /// </li> /// <li> /// If your tagging schema is used across multiple services and resources, /// remember that other services may have restrictions on allowed characters. /// Generally allowed characters are: letters, numbers, and spac...
Dart
00: mMETA000 !!# ; !!# !!# d111: mMETA111 !!# ; !!# !!# d222: mMETA222 !!# ; !!# !!# d333: mMETA333 !!# ; !!# !!# d444: mMETA444 !!# ; !!# !!# d555: mMETA555 !!# ; !!# !!# d566: mMETA566 !!# ; !!# !!# d655: mMETA655 !!# ; !!# !!# d20: mMETA20000000 !!# ; !!# !!# !!# !!# %% !!# %%section cbfunc !!# !!# %% !!...
Assembly
" x=\"220.7808\" y=\"-186.5583\" font-family=\"Helvetica,sans-Serif\" font-size=\"9.00\" fill=\"#000000\">AssetController.tsx</text>\n</a>\n</g>\n</g>\n<!-- packages/cli/src/utils/index.ts -->\n<g id=\"node15\" class=\"node\">\n<title>packages/cli/src/utils/index.ts</title>\n<g id=\"a_node15\"><a xlink:href=\"packages/...
HTML
t-align:right; line-height:18px; } #u13523 { border-width:0px; position:absolute; left:455px; top:282px; width:79px; height:52px; font-family:'Microsoft YaHei Bold', 'Microsoft YaHei'; font-weight:700; font-style:normal; font-size:12px; color:#666666; text-align:right; line-height:18px; } #u...
CSS
son.cast<String, dynamic>(); for (final entry in json.entries) { map[entry.key] = IoFluxcdToolkitImageV1beta2ImageRepositoryStatusLastScanResult .listFromJson( entry.value, growable: growable, ); } } return map; } /// The list of r...
Dart
, name:"parent node 1", open:true}, { id:11, pId:1, name:"leaf node 1-1"}, { id:12, pId:1, name:"leaf node 1-2"}, { id:13, pId:1, name:"leaf node 1-3"}, { id:2, pId:0, name:"parent node 2", open:true}, { id:21, pId:2, name:"leaf node 2-1"}, { id:22, pId:2, name:"leaf node 2-2"}, { id:23, pId:2, nam...
HTML
</html> {% extends "base.html" %} {% block title %} Mempool {% endblock %} {% block content %} <div class="grid-container1"> {% if not Txs %} <h1 style=" color: whitesmoke; text-align:center; font-size: 2.3em; padding: 1em 1em 0 1em; margin-right: 3em; " > Memory Pool (Unconfirmed Transact...
HTML
End of preview. Expand in Data Studio

Programming Language Classification Dataset

A large-scale, balanced dataset for programming language identification from source code snippets.

Overview

This dataset contains 1.664 million cleaned and labeled source code samples across 16 programming languages, specifically designed for programming language classification and identification tasks.

Unlike many code datasets that are primarily built for code generation or retrieval, this dataset was curated specifically for language classification. Significant effort was invested in deduplication, quality filtering, class balancing, and evaluation split construction to create a reliable benchmark for training and evaluating language identification models.

Key Features

  • 1.664 million labeled samples
  • 16 programming languages
  • Class-balanced dataset
  • Multi-stage deduplication pipeline
  • Quality-filtered samples
  • Fixed train/validation/test splits
  • Suitable for both traditional ML and neural approaches

Supported Languages

Language
Assembly
C
C++
C#
CSS
Dart
Go
HTML
Java
JavaScript
Kotlin
Lua
Markdown
Python
Rust
TypeScript

Dataset Statistics

Split Samples per Language Total Samples
Train 100,000 1,600,000
Validation 2,000 32,000
Test 2,000 32,000
Total 104,000 1,664,000

The dataset is fully balanced across all languages to reduce class imbalance and evaluation bias.

Data Format

Samples are stored in JSONL format.

{
  "content": "def hello_world():\n    print('Hello World')",
  "label": "Python"
}

Source Dataset

This dataset was derived from:

https://huggingface.co/datasets/lumees/github-code-2025-language-split

The original dataset was language-separated and used as the foundation for further processing, cleaning, filtering, balancing, and dataset construction.

Dataset Construction Pipeline

The dataset was created through a multi-stage processing pipeline.

1. Language-Based Collection

Source code was collected from the source dataset and organized by programming language.

2. Code Chunk Generation

Large source files were segmented into smaller code snippets suitable for language classification tasks.

This increases sample diversity while making training more efficient.

3. Multi-Stage Deduplication

Several rounds of deduplication were applied to reduce repeated and near-duplicate code fragments.

The objective was to improve diversity and reduce memorization of highly repetitive samples.

4. Quality Filtering

A custom filtering pipeline was applied to remove low-quality samples.

Filtering stages included:

  • Low-information sample detection
  • Repetitive content removal
  • Character distribution analysis
  • Symbol-density analysis
  • Structural code heuristics
  • Corrupted fragment removal

Conservative filtering thresholds were intentionally used to preserve valid code across languages with very different syntactic structures such as Assembly, CSS, HTML, Markdown, and Python.

5. Balanced Sampling

Many languages originally contained substantially different numbers of samples.

To prevent majority-language bias, a balanced subset was created for every language.

Each language contributes exactly:

  • 100,000 training samples
  • 2,000 validation samples
  • 2,000 test samples

6. Split Construction

Validation and test sets were sampled independently for each language to ensure balanced and reliable evaluation.

Design Goals

The dataset was built with the following objectives:

  • Balanced language representation
  • Reduced duplication
  • High sample diversity
  • Reliable evaluation splits
  • Efficient classifier training
  • Support for both classical ML and neural approaches
Downloads last month
59

Models trained or fine-tuned on kaushik-harsh-99/Code-Language-Classification