Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
7
81
path
stringlengths
6
242
copies
stringclasses
53 values
size
stringlengths
2
6
content
stringlengths
73
737k
license
stringclasses
15 values
hash
stringlengths
32
32
line_mean
float64
5.44
99.8
line_max
int64
15
977
alpha_frac
float64
0.3
0.91
ratio
float64
2
9.93
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
Cognifide/gradle-aem-plugin
src/main/kotlin/com/cognifide/gradle/aem/instance/tasks/InstanceReload.kt
1
1052
package com.cognifide.gradle.aem.instance.tasks import com.cognifide.gradle.aem.common.instance.action.AwaitUpAction import com.cognifide.gradle.aem.common.instance.action.ReloadAction import com.cognifide.gradle.aem.common.instance.names import com.cognifide.gradle.aem.common.tasks.Instance import org.gradle.api.task...
apache-2.0
58e4760293fa5e3870e9b9a12efdab8f
28.222222
89
0.70057
4.109375
false
false
false
false
80998062/Fank
presentation/src/main/java/com/sinyuk/fanfou/ui/status/StatusView.kt
1
8490
/* * * * Apache License * * * * Copyright [2017] Sinyuk * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * *...
mit
5af36f349b9d956a8978f0e89d209a86
35.9
128
0.686071
4.762065
false
false
false
false
TimePath/java-vfs
src/main/kotlin/com/timepath/vfs/provider/jdbc/JDBCTable.kt
1
1410
package com.timepath.vfs.provider.jdbc import com.timepath.vfs.MockFile import com.timepath.vfs.SimpleVFile import com.timepath.vfs.provider.ProviderStub import org.jetbrains.annotations.NonNls import java.sql.SQLException import java.text.MessageFormat import java.util.LinkedList import java.util.logging.Level /** ...
artistic-2.0
0f28077c74af286debbd9eba0d5de3ef
33.390244
103
0.580142
4.40625
false
false
false
false
vector-im/vector-android
vector/src/main/java/im/vector/preference/RoomAvatarPreference.kt
2
1639
/* * Copyright 2018 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
apache-2.0
ed599f3608c83ea8cc0a4af370b5893a
31.156863
103
0.723002
4.235142
false
false
false
false
mikepenz/MaterialDrawer
materialdrawer/src/main/java/com/mikepenz/materialdrawer/model/AbstractToggleableDrawerItem.kt
1
3288
package com.mikepenz.materialdrawer.model import android.view.View import android.widget.CompoundButton import android.widget.ToggleButton import androidx.annotation.LayoutRes import com.mikepenz.materialdrawer.R import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener import com.mikepenz.materialdrawer.m...
apache-2.0
6aa352fe5951c4b3b9be36e335b1b810
37.232558
173
0.70955
5.452736
false
false
false
false
deltadak/plep
src/main/kotlin/nl/deltadak/plep/ui/taskcell/TaskLayout.kt
1
4729
package nl.deltadak.plep.ui.taskcell import javafx.geometry.Pos import javafx.scene.control.CheckBox import javafx.scene.control.ComboBox import javafx.scene.control.Label import javafx.scene.control.TreeItem import javafx.scene.layout.HBox import javafx.scene.layout.Priority import javafx.scene.layout.Region import j...
mit
55703359bf4aa0d1e4effebbfc1dc383
36.832
308
0.683866
4.705473
false
false
false
false
orgzly/orgzly-android
app/src/main/java/com/orgzly/android/query/QueryTokenizer.kt
1
2478
package com.orgzly.android.query class QueryTokenizer(val str: String, private val groupOpen: String, private val groupClose: String) { val tokens = tokanize(str) var nextToken = 0 fun hasMoreTokens(): Boolean = nextToken < tokens.size fun nextToken() = tokens[nextToken++] private fun tokanize(...
gpl-3.0
1fde97a2f66940fc14668d1837d9747f
28.164706
102
0.45682
4.783784
false
false
false
false
orgzly/orgzly-android
app/src/main/java/com/orgzly/android/ui/drawer/DrawerNavigationView.kt
1
5383
package com.orgzly.android.ui.drawer import android.content.Intent import android.content.res.Resources import android.view.Menu import androidx.lifecycle.Observer import com.google.android.material.navigation.NavigationView import com.orgzly.BuildConfig import com.orgzly.R import com.orgzly.android.AppIntent import c...
gpl-3.0
23bd78f0ea78f40355777d5e6379a664
29.241573
91
0.636448
4.474647
false
false
false
false
whym/apps-android-commons
app/src/test/kotlin/fr/free/nrw/commons/TestCommonsApplication.kt
1
3762
package fr.free.nrw.commons import android.content.ContentProviderClient import android.content.Context import android.content.SharedPreferences import android.support.v4.util.LruCache import com.nhaarman.mockito_kotlin.mock import com.squareup.leakcanary.RefWatcher import fr.free.nrw.commons.auth.AccountUtil import f...
apache-2.0
b17ee99f85f8731510a4c274d4677b20
46.632911
166
0.805954
5.614925
false
false
false
false
kmruiz/sonata
frontend/src/main/kotlin/io/sonatalang/snc/frontend/domain/token/NewLineToken.kt
1
324
package io.sonatalang.snc.frontend.domain.token object NewLineToken : BasicToken(false), TokenFactory<NewLineToken> { override fun with(character: Char) = this override fun toString() = "\n" override fun isSuitable(character: Char) = character == '\n' override fun create(character: Char) = NewLineToke...
gpl-2.0
41dcacab5368a98018db38e1105170de
35
69
0.728395
4.05
false
false
false
false
OpenConference/OpenConference-android
app/src/main/java/com/openconference/sessiondetails/presentationmodel/SessionDetailsPresentationModelTransformer.kt
1
2271
package com.openconference.sessiondetails.presentationmodel import com.openconference.model.Session import org.threeten.bp.LocalDateTime import org.threeten.bp.ZoneId import org.threeten.bp.format.DateTimeFormatter import org.threeten.bp.format.FormatStyle import java.util.* /** * Responsible to transform a Session ...
apache-2.0
82de0443dfb89a114e7cea847cdc68d1
27.4
100
0.713342
4.560241
false
false
false
false
UweTrottmann/SeriesGuide
app/src/main/java/com/battlelancer/seriesguide/traktapi/CheckInDialogFragment.kt
1
1942
package com.battlelancer.seriesguide.traktapi import android.content.Context import android.os.AsyncTask import android.os.Bundle import androidx.fragment.app.FragmentManager import com.battlelancer.seriesguide.provider.SgRoomDatabase.Companion.getInstance import com.battlelancer.seriesguide.util.TextTools import com....
apache-2.0
8d8c7fd133c47abfc729684673c1adc7
35.660377
96
0.656025
5.044156
false
false
false
false
redpen-cc/redpen-intellij-plugin
src/cc/redpen/intellij/StatusWidget.kt
1
5697
package cc.redpen.intellij import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer import com.intellij.icons.AllIcons import com.intellij.ide.DataManager import com.intellij.openapi.actionSystem.* import com.intellij.openapi.actionSystem.LangDataKeys.PSI_FILE import com.intellij.openapi.actionSystem.impl.SimpleDataC...
apache-2.0
2b4053ba36d846e90b27bb160e47611f
35.754839
125
0.672284
5.07754
false
false
false
false
ColaGom/KtGitCloner
src/main/kotlin/net/ProjectExtractor.kt
1
1848
package net import SearchResponse import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken import data.Repository import java.io.PrintWriter import java.nio.file.Path class ProjectExtractor(val savePath: Path, val start:String, val end:String) { fun extract(page : In...
apache-2.0
3513c1b5dd0c5a0b9408d758f58f142a
30.322034
126
0.555195
4.738462
false
false
false
false
duftler/orca
orca-queue-tck/src/main/kotlin/com/netflix/spinnaker/orca/q/ExecutionLatch.kt
1
3713
/* * Copyright 2017 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
9f7e49b478f4afae4843f98df40e083b
33.06422
148
0.764611
4.425507
false
false
false
false
willowtreeapps/assertk
assertk/src/commonTest/kotlin/test/assertk/assertions/MapTest.kt
1
8247
package test.assertk.assertions import assertk.assertThat import assertk.assertions.* import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class MapTest { //region contains @Test fun contains_element_present_passes() { assertThat(mapOf("one" to 1, "two" to 2)).contain...
mit
238aac7563b9417f7e567504e005dad5
32.79918
111
0.56566
4.127628
false
true
false
false
cketti/k-9
app/storage/src/main/java/com/fsck/k9/storage/messages/RetrieveFolderOperations.kt
1
7702
package com.fsck.k9.storage.messages import android.database.Cursor import androidx.core.database.getLongOrNull import com.fsck.k9.Account.FolderMode import com.fsck.k9.helper.map import com.fsck.k9.mail.FolderClass import com.fsck.k9.mail.FolderType import com.fsck.k9.mailstore.FolderDetailsAccessor import com.fsck.k...
apache-2.0
8e5c09a2f2e22358a2e8571792545009
31.091667
114
0.583615
4.702076
false
false
false
false
Naliwe/IntelliJ_WowAddOnSupport
src/org/squarecell/wow/addon_support/builders/AddOnModuleBuilder.kt
1
3241
package org.squarecell.wow.addon_support.builders import com.intellij.ide.plugins.PluginManager import com.intellij.ide.util.PropertiesComponent import com.intellij.ide.util.projectWizard.ModuleBuilder import com.intellij.ide.util.projectWizard.ModuleBuilderListener import com.intellij.ide.util.projectWizard.ModuleWiz...
mit
ed67ccabfcb285c00c2dd178fc383999
40.025316
96
0.740512
4.794379
false
false
false
false
newbieandroid/AppBase
app/src/main/java/com/fuyoul/sanwenseller/ui/money/SettlementTypeActivity.kt
1
9245
package com.fuyoul.sanwenseller.ui.money import android.content.Context import android.content.Intent import android.graphics.drawable.Drawable import android.os.Bundle import android.support.design.widget.AppBarLayout import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView i...
apache-2.0
67aad4b9b3464eee0113aff45dec2b67
36.138211
177
0.678818
4.932505
false
false
false
false
commons-app/apps-android-commons
app/src/main/java/fr/free/nrw/commons/actions/PageEditInterface.kt
5
3876
package fr.free.nrw.commons.actions import io.reactivex.Observable import io.reactivex.Single import org.wikipedia.dataclient.Service import org.wikipedia.dataclient.mwapi.MwQueryResponse import org.wikipedia.edit.Edit import org.wikipedia.wikidata.Entities import retrofit2.http.* /** * This interface facilitates wi...
apache-2.0
2dad9b77f9fa30fc35f6e13ccf9b55ef
37.386139
100
0.668215
4.176724
false
false
false
false
kittinunf/ReactiveAndroid
reactiveandroid-support-v4/src/main/kotlin/com/github/kittinunf/reactiveandroid/support/v4/widget/SwipeRefreshLayoutProperty.kt
1
959
package com.github.kittinunf.reactiveandroid.support.v4.widget import android.support.v4.widget.SwipeRefreshLayout import com.github.kittinunf.reactiveandroid.MutableProperty import com.github.kittinunf.reactiveandroid.createMainThreadMutableProperty //=================================================================...
mit
9ca709be2942535aef9b98cbf19c1d92
37.36
82
0.618352
6.031447
false
false
false
false
JayNewstrom/Concrete
concrete/src/main/java/com/jaynewstrom/concrete/ConcreteWallContext.kt
1
732
package com.jaynewstrom.concrete import android.content.Context import android.content.ContextWrapper import android.view.LayoutInflater internal class ConcreteWallContext<C>( baseContext: Context, private val wall: ConcreteWall<C> ) : ContextWrapper(baseContext) { private var inflater: LayoutInflater? = ...
apache-2.0
91fa178009178e8b5c03d9f05df34541
28.28
80
0.657104
4.815789
false
false
false
false
NuclearCoder/nuclear-bot
src/nuclearbot/gui/components/chat/LimitedStringList.kt
1
2690
package nuclearbot.gui.components.chat import java.util.* import javax.swing.AbstractListModel import javax.swing.JList /* * Copyright (C) 2017 NuclearCoder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the...
agpl-3.0
f9ba378006bf76466fafc9152088c819
29.91954
82
0.624535
4.373984
false
false
false
false
lanhuaguizha/Christian
app/src/main/java/com/christian/nav/me/HidingGospelFragment.kt
1
7641
package com.christian.nav.me import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.NonNull import androidx.fragment.app.Fragment import androidx.recyclerview.widget.RecyclerView import com.christian.R import...
gpl-3.0
c7a9636999f4701376e2115199f79a27
37.01
119
0.576503
5.177793
false
false
false
false
AlmasB/FXGLGames
OutRun/src/main/kotlin/com/almasb/fxglgames/outrun/PlayerComponent.kt
1
2726
/* * The MIT License (MIT) * * FXGL - JavaFX Game Library * * Copyright (c) 2015-2016 AlmasB (almaslvl@gmail.com) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restrictio...
mit
a0d1242ecc3216f1bc4e31b99552d765
25.221154
80
0.629127
3.967977
false
false
false
false
brunordg/ctanywhere
app/src/main/java/br/com/codeteam/ctanywhere/ext/ContextExt.kt
1
991
package br.com.codeteam.ctanywhere.ext import android.content.Context import android.content.pm.PackageManager import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat /** * ...
mit
335c185ec4e2caf1405a8cf6142528e1
29.030303
106
0.774975
4.463964
false
false
false
false
westoncb/HNDesktop
src/main/java/App.kt
1
17053
import com.google.gson.JsonElement import com.google.gson.JsonObject import com.google.gson.JsonParser import com.google.gson.JsonPrimitive import javafx.application.Platform import javafx.embed.swing.JFXPanel import javafx.scene.Scene import javafx.scene.web.WebView import javax.swing.* import java.net.URL import java...
mit
1f900d1051def469acfb5e875158ffd4
32.177043
254
0.615552
4.905926
false
false
false
false
talhacohen/android
app/src/main/java/com/etesync/syncadapter/log/PlainTextFormatter.kt
1
1903
/* * Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering). * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html */ package ...
gpl-3.0
78d679d25643810875d7816dee049fab
31.758621
91
0.644737
4.269663
false
false
false
false
google/ksp
compiler-plugin/src/main/kotlin/com/google/devtools/ksp/symbol/impl/java/KSClassDeclarationJavaImpl.kt
1
6743
/* * Copyright 2020 Google LLC * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
apache-2.0
c989627a8e542a240d1cb9a6b9a869d5
37.976879
116
0.689901
4.772116
false
false
false
false
macleod2486/AndroidSwissKnife
app/src/main/java/com/macleod2486/androidswissknife/components/Flashlight.kt
1
3071
/* AndroidSwissKnife Copyright (C) 2016 macleod2486 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
gpl-3.0
15ecbd0d2f1ba51c5b00356febdc2483
32.758242
123
0.647021
4.783489
false
false
false
false
wuseal/JsonToKotlinClass
src/main/kotlin/wu/seal/jsontokotlin/InsertKotlinClassAction.kt
1
8218
package wu.seal.jsontokotlin import com.google.gson.Gson import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.PlatformDataKeys import com.intellij.openapi.editor.Caret import com.intellij.openapi.editor.Document import com.int...
gpl-3.0
331878500b49281dd63d70b1612b276f
37.401869
121
0.597834
5.460465
false
false
false
false
jtransc/jtransc
benchmark_kotlin_mpp/wip/jzlib/GZIPInputStream.kt
1
4000
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2011 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the...
apache-2.0
3520d2983fe6c587932c68ae53584650
30.753968
99
0.68975
3.433476
false
false
false
false
Fitbit/MvRx
mock_generation/ShellAccess.kt
1
5910
#!/usr/bin/env kscript /** * Functions for executing shell commands and receiving the result. */ import java.io.BufferedReader import java.io.File import java.io.IOException import java.lang.ProcessBuilder.Redirect import java.util.concurrent.TimeUnit import kotlin.system.exitProcess /** * Executes the receiving s...
apache-2.0
448e3f92b126235d54663dec7631d407
36.405063
135
0.651777
4.974747
false
false
false
false
jtransc/jtransc
jtransc-core/src/com/jtransc/ast/dependency/analyzer.kt
1
7670
/* * Copyright 2016 Carlos Ballesteros Velasco * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
apache-2.0
14cf0a519011e11202c21b01d7705ca9
25.912281
120
0.633246
3.244501
false
false
false
false
premisedata/cameraview
demo/src/main/kotlin/com/otaliastudios/cameraview/demo/MessageView.kt
1
1057
package com.otaliastudios.cameraview.demo import android.content.Context import android.util.AttributeSet import android.view.View import android.view.ViewGroup import android.widget.LinearLayout import android.widget.TextView class MessageView @JvmOverloads constructor( context: Context, attrs: Attri...
apache-2.0
5fdd56a4f33825eed84c9400a8c1d548
30.088235
99
0.712394
4.24498
false
false
false
false
msebire/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/GrCodeReferenceResolver.kt
1
10648
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.lang.resolve import com.intellij.psi.* import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.util.parentOfType import org.j...
apache-2.0
839efefb2945d31d77a5e1e9216aa8d0
39.181132
140
0.766529
4.796396
false
false
false
false
square/duktape-android
zipline-loader/src/commonTest/kotlin/app/cash/zipline/loader/internal/fetcher/HttpFetcherTest.kt
1
3505
/* * Copyright (C) 2022 Block, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
apache-2.0
504e17d33dfea18f287c3e4dfbf0fb60
29.745614
95
0.580884
3.651042
false
true
false
false
End of preview. Expand in Data Studio

IVA Kotlin GitHub Code Dataset

Dataset Description

This is the curated train split of IVA Kotlin dataset extracted from GitHub. It contains curated Kotlin files gathered with the purpose to train a code generation model.

The dataset consists of 383380 Kotlin code files from GitHub. Here is the unsliced curated dataset and here is the raw dataset.

How to use it

To download the full dataset:

from datasets import load_dataset
dataset = load_dataset('mvasiliniuc/iva-kotlin-codeint-clean-train', split='train'))

Data Structure

Data Fields

Field Type Description
repo_name string name of the GitHub repository
path string path of the file in GitHub repository
copies string number of occurrences in dataset
content string content of source file
size string size of the source file in bytes
license string license of GitHub repository
hash string Hash of content field.
line_mean number Mean line length of the content.
line_max number Max line length of the content.
alpha_frac number Fraction between mean and max line length of content.
ratio number Character/token ratio of the file with tokenizer.
autogenerated boolean True if the content is autogenerated by looking for keywords in the first few lines of the file.
config_or_test boolean True if the content is a configuration file or a unit test.
has_no_keywords boolean True if a file has none of the keywords for Kotlin Programming Language.
has_few_assignments boolean True if file uses symbol '=' less than minimum times.

Instance

{
   "repo_name":"oboenikui/UnivCoopFeliCaReader",
   "path":"app/src/main/java/com/oboenikui/campusfelica/ScannerActivity.kt",
   "copies":"1",
   "size":"5635",
   "content":"....",
   "license":"apache-2.0",
   "hash":"e88cfd99346cbef640fc540aac3bf20b",
   "line_mean":37.8620689655,
   "line_max":199,
   "alpha_frac":0.5724933452,
   "ratio":5.0222816399,
   "autogenerated":false,
   "config_or_test":false,
   "has_no_keywords":false,
   "has_few_assignments":false
}

Languages

The dataset contains only Kotlin files.

{
    "Kotlin": [".kt"]
}

Licenses

Each entry in the dataset contains the associated license. The following is a list of licenses involved and their occurrences.

{
   "agpl-3.0":3209,
   "apache-2.0":90782,
   "artistic-2.0":130,
   "bsd-2-clause":380,
   "bsd-3-clause":3584,
   "cc0-1.0":155,
   "epl-1.0":792,
   "gpl-2.0":4432,
   "gpl-3.0":19816,
   "isc":345,
   "lgpl-2.1":118,
   "lgpl-3.0":2689,
   "mit":31470,
   "mpl-2.0":1444,
   "unlicense":654
}

Dataset Statistics

{
    "Total size": "~207 MB",
    "Number of files": 160000,
    "Number of files under 500 bytes": 2957,
    "Average file size in bytes": 5199,
}

Curation Process

See the unsliced curated dataset for mode details.

Data Splits

The dataset only contains a train split focused only on training data. For validation and unspliced versions, please check the following links:

Considerations for Using the Data

The dataset comprises source code from various repositories, potentially containing harmful or biased code, along with sensitive information such as passwords or usernames.

Downloads last month
6