Dataset Viewer
Auto-converted to Parquet Duplicate
repo_name
stringlengths
7
81
path
stringlengths
4
242
copies
stringclasses
95 values
size
stringlengths
1
6
content
stringlengths
3
991k
license
stringclasses
15 values
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
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
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
adobe/S3Mock
integration-tests/src/test/kotlin/com/adobe/testing/s3mock/its/CopyObjectV1IT.kt
1
17900
/* * Copyright 2017-2022 Adobe. * * 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 ...
apache-2.0
fkorotkov/k8s-kotlin-dsl
DSLs/kubernetes/dsl/src/main/kotlin-gen/com/fkorotkov/kubernetes/nodePublishSecretRef.kt
1
912
// GENERATED package com.fkorotkov.kubernetes import io.fabric8.kubernetes.api.model.CSIPersistentVolumeSource as model_CSIPersistentVolumeSource import io.fabric8.kubernetes.api.model.CSIVolumeSource as model_CSIVolumeSource import io.fabric8.kubernetes.api.model.LocalObjectReference as model_LocalObjectReference imp...
mit
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
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
aosp-mirror/platform_frameworks_support
room/compiler/src/test/kotlin/androidx/room/processor/RawQueryMethodProcessorTest.kt
1
11947
/* * Copyright 2018 The Android Open Source Project * * 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 applica...
apache-2.0
chiken88/passnotes
app/src/main/kotlin/com/ivanovsky/passnotes/presentation/note_editor/view/TextInputLines.kt
1
128
package com.ivanovsky.passnotes.presentation.note_editor.view enum class TextInputLines { SINGLE_LINE, MULTIPLE_LINES }
gpl-2.0
chiken88/passnotes
app/src/main/kotlin/com/ivanovsky/passnotes/domain/interactor/filepicker/FilePickerInteractor.kt
1
670
package com.ivanovsky.passnotes.domain.interactor.filepicker import com.ivanovsky.passnotes.data.entity.FileDescriptor import com.ivanovsky.passnotes.data.entity.OperationResult import com.ivanovsky.passnotes.data.repository.file.FileSystemResolver class FilePickerInteractor(private val fileSystemResolver: FileSystem...
gpl-2.0
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
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
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
Yorxxx/played-next-kotlin
app/src/test/java/com/piticlistudio/playednext/data/entity/mapper/datasources/image/GiantbombImageMapperTest.kt
1
5221
package com.piticlistudio.playednext.data.entity.mapper.datasources.image import com.piticlistudio.playednext.data.entity.giantbomb.GiantbombGameImage import com.piticlistudio.playednext.test.factory.DataFactory import com.piticlistudio.playednext.test.factory.GameImageFactory.Factory.makeGiantbombGameImage import org...
mit
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
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
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
google/private-compute-libraries
javatests/com/google/android/libraries/pcc/chronicle/analysis/impl/AnnotationTest.kt
1
3229
/* * Copyright 2022 Google LLC * * 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 ...
apache-2.0
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
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
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
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
AndroidX/constraintlayout
demoProjects/ComposeMail/app/src/main/java/com/example/composemail/ui/utils/ConstraintUtils.kt
2
1097
/* * Copyright (C) 2022 The Android Open Source Project * * 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 app...
apache-2.0
RP-Kit/RPKit
bukkit/rpk-permissions-bukkit/src/main/kotlin/com/rpkit/permissions/bukkit/listener/RPKProfileDeleteListener.kt
1
1264
/* * Copyright 2022 Ren Binden * * 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
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
willowtreeapps/assertk
assertk/src/commonTest/kotlin/test/assertk/AssertTest.kt
1
2626
package test.assertk import assertk.assertAll import assertk.assertThat import assertk.assertions.isEqualTo import assertk.fail import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails import kotlin.test.assertFalse class AssertTest { //region transform @Test fun transform_that_t...
mit
RP-Kit/RPKit
bukkit/rpk-permissions-lib-bukkit/src/main/kotlin/com/rpkit/permissions/bukkit/event/group/RPKBukkitGroupUnassignProfileEvent.kt
1
1459
/* * Copyright 2020 Ren Binden * * 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
janicduplessis/react-native
packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/model/ModelCodegenConfigAndroid.kt
3
292
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.model data class ModelCodegenConfigAndroid(val javaPackageName: String?)
mit
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
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
google/summit-ast
src/main/javatests/com/google/summit/ast/SourceLocationTest.kt
1
2406
/* * Copyright 2022 Google LLC * * 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 ...
apache-2.0
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
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
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
zingmars/Cbox-bot
src/BotPlugins/UserCommands.kt
1
1664
/** * Checks chat for user written messages and responds to specific queries * Created by zingmars on 04.10.2015. */ package BotPlugins import Containers.PluginBufferItem public class UserCommands : BasePlugin() { override fun pubInit() :Boolean { return true } override fun connector(buffer ...
bsd-2-clause
ujpv/intellij-rust
src/test/kotlin/org/rust/ide/typing/RustEnterInStringLiteralHandlerTest.kt
1
3987
package org.rust.ide.typing import org.intellij.lang.annotations.Language class RustEnterInStringLiteralHandlerTest : RustTypingTestCaseBase() { override val dataPath = "org/rust/ide/typing/string/fixtures" fun testSimple() = doTest(""" fn main() { let lit = "Hello, /*caret*/World"; ...
mit
android/user-interface-samples
WindowManager/app/src/main/java/com/example/windowmanagersample/embedding/SplitActivityD.kt
1
1070
/* * Copyright 2021 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
luxons/seven-wonders
sw-engine/src/main/kotlin/org/luxons/sevenwonders/engine/data/definitions/WonderDefinition.kt
1
1091
package org.luxons.sevenwonders.engine.data.definitions import org.luxons.sevenwonders.engine.cards.Requirements import org.luxons.sevenwonders.engine.wonders.Wonder import org.luxons.sevenwonders.engine.wonders.WonderStage import org.luxons.sevenwonders.model.resources.ResourceType import org.luxons.sevenwonders.mode...
mit
ujpv/intellij-rust
src/main/kotlin/org/rust/lang/core/psi/impl/mixin/RustExternCrateItemImplMixin.kt
1
1097
package org.rust.lang.core.psi.impl.mixin import com.intellij.lang.ASTNode import com.intellij.psi.PsiElement import com.intellij.psi.stubs.IStubElementType import org.rust.lang.core.psi.RustExternCrateItemElement import org.rust.lang.core.psi.impl.RustPsiImplUtil import org.rust.lang.core.psi.impl.RustStubbedNamedEle...
mit
LorittaBot/Loritta
loritta-serializable-commons/src/commonMain/kotlin/net/perfectdreams/loritta/serializable/CustomCommand.kt
1
206
package net.perfectdreams.loritta.serializable import kotlinx.serialization.Serializable @Serializable class CustomCommand( val label: String, val codeType: CustomCommandCodeType, val code: String )
agpl-3.0
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
YounesRahimi/java-utils
src/test/java/ir/iais/utilities/javautils/utils/InsuranceType.kt
2
597
package ir.iais.utilities.javautils.utils import com.fasterxml.jackson.annotation.JsonFormat import com.fasterxml.jackson.annotation.JsonFormat.Shape import com.fasterxml.jackson.annotation.JsonIgnoreProperties import ir.iais.utilities.javautils.enums.IOrdinal /** Created by mgh on 10/15/16. */ @JsonFormat(shape = S...
gpl-3.0
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
carlphilipp/chicago-commutes
android-app/src/main/kotlin/fr/cph/chicago/core/model/Bus.kt
1
786
/** * Copyright 2021 Carl-Philipp Harmant * * * 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 la...
apache-2.0
maskaravivek/apps-android-commons
app/src/test/kotlin/fr/free/nrw/commons/customselector/helper/ImageHelperTest.kt
3
1651
package fr.free.nrw.commons.customselector.helper import android.net.Uri import fr.free.nrw.commons.customselector.model.Folder import fr.free.nrw.commons.customselector.model.Image import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Test import org.mockito.Mockito.mock /** * Custom Selector Imag...
apache-2.0
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
tom-kita/kktAPK
app/src/main/kotlin/com/bl_lia/kirakiratter/data/repository/datasource/auth/AuthService.kt
3
997
package com.bl_lia.kirakiratter.data.repository.datasource.auth import io.reactivex.Single import com.bl_lia.kirakiratter.domain.value_object.AccessToken import com.bl_lia.kirakiratter.domain.value_object.AppCredentials import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.POST interf...
mit
EZTEQ/rbtv-firetv
app/src/androidTest/java/de/markhaehnel/rbtv/rocketbeanstv/ExampleInstrumentedTest.kt
1
654
package de.markhaehnel.rbtv.rocketbeanstv import androidx.test.InstrumentationRegistry import androidx.test.runner.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentation](http:/...
mit
facebook/litho
litho-it/src/test/java/com/facebook/litho/DynamicPropsExtensionTest.kt
1
2830
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 appl...
apache-2.0
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
jdinkla/groovy-java-ray-tracer
src/test/kotlin/net/dinkla/raytracer/math/PolynomialsTest.kt
1
1859
package net.dinkla.raytracer.math import org.junit.jupiter.api.Test import org.junit.jupiter.api.Assertions.assertEquals class PolynomialsTest { @Test @Throws(Exception::class) fun testSolveQuadric() { // A*x^2 + B*x + C = 0 val s1 = doubleArrayOf(-16.0, 0.0, 1.0) val sol = dou...
apache-2.0
google/horologist
media-data/src/main/java/com/google/android/horologist/media/data/database/model/PlaylistEntity.kt
1
1047
/* * Copyright 2022 The Android Open Source Project * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
apache-2.0
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
Zhuinden/simple-stack
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_7/features/profile/ProfileFragment.kt
1
549
package com.zhuinden.simplestacktutorials.steps.step_7.features.profile import android.os.Bundle import android.view.View import android.widget.Toast import com.zhuinden.simplestackextensions.fragments.KeyedFragment import com.zhuinden.simplestacktutorials.R class ProfileFragment : KeyedFragment(R.layout.step7_profil...
apache-2.0
JavaEden/OrchidCore
plugins/OrchidSwiftdoc/src/main/kotlin/com/eden/orchid/swiftdoc/menu/SwiftdocMenuItem.kt
1
1467
package com.eden.orchid.swiftdoc.menu import com.eden.orchid.api.OrchidContext import com.eden.orchid.api.options.annotations.Description import com.eden.orchid.api.options.annotations.Option import com.eden.orchid.api.theme.menus.OrchidMenuFactory import com.eden.orchid.api.theme.menus.MenuItem import com.eden.orchid...
mit
pyamsoft/home-button
app/src/main/java/com/pyamsoft/homebutton/main/ToolbarViewState.kt
1
1066
/* * Copyright 2021 Peter Kenji Yamanaka * * 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 a...
apache-2.0
End of preview. Expand in Data Studio

IVA Kotlin GitHub Code Dataset

Dataset Description

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

The dataset consists of 464215 kotlin code files from GitHub totaling ~361 MB of data. The dataset was created from the public GitHub dataset on Google BiqQuery.

How to use it

To download the full dataset:

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

from datasets import load_dataset
dataset = load_dataset('mvasiliniuc/iva-kotlin-codeint', split='train')
print(dataset[723])

#OUTPUT:
{
   "repo_name":"nemerosa/ontrack",
   "path":"ontrack-extension-notifications/src/main/java/net/nemerosa/ontrack/extension/notifications/webhooks/WebhookController.kt",
   "copies":"1",
   "size":"3248",
   "content":"...@RestController\n@RequestMapping(\"/extension/notifications/webhook\")\nclass WebhookController(\n    private val webhookAdminService: WebhookAdminService,\n    private val webhookExecutionService: ",
   "license":"mit"
}

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
code string content of source file
size string size of the source file in bytes
license string license of GitHub repository

Instance

{
   "repo_name":"nemerosa/ontrack",
   "path":"ontrack-extension-notifications/src/main/java/net/nemerosa/ontrack/extension/notifications/webhooks/WebhookController.kt",
   "copies":"1",
   "size":"3248",
   "content":"...@RestController\n@RequestMapping(\"/extension/notifications/webhook\")\nclass WebhookController(\n    private val webhookAdminService: WebhookAdminService,\n    private val webhookExecutionService: ",
   "license":"mit"
}

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": 9146,
    "apache-2.0": 272388,
    "artistic-2.0": 219,
    "bsd-2-clause": 896,
    "bsd-3-clause": 12328,
    "cc0-1.0": 411,
    "epl-1.0": 2111,
    "gpl-2.0": 11080,
    "gpl-3.0": 48911,
    "isc": 997,
    "lgpl-2.1": 297,
    "lgpl-3.0": 7749,
    "mit": 92540,
    "mpl-2.0": 3386,
    "unlicense": 1756
}

Dataset Statistics

{
    "Total size": "~361 MB",
    "Number of files": 464215,
    "Number of files under 500 bytes": 99845,
    "Average file size in bytes": 3252,
}

Dataset Creation

The dataset was created using Google Query for Github: https://cloud.google.com/blog/topics/public-datasets/github-on-bigquery-analyze-all-the-open-source-code

The following steps were pursued for data gathering:

  1. Creation of a dataset and a table in Google Big Query Project.
  2. Creation of a bucket in Google Cloud Storage.
  3. Creation of a query in Google Big Query Project.
  4. Running the query with the setting to output the results in the dataset and table created at step one.
  5. Exporting the resulting dataset into the bucket created in step 2. Export format of JSON with gzip compression.

The result of these steps leads to the following results:

  • 2.7 TB Processed,
  • number of extracted rows/files was 464,215
  • total logical bytes 1.46 GB.
  • the result amounts to 7 json.gz files in a total of 361 MB.

The SQL Query used is:

SELECT
  f.repo_name, f.path, c.copies, c.size, c.content, l.license
FROM
 (select f.*, row_number() over (partition by id order by path desc) as seqnum from `bigquery-public-data.github_repos.files` AS f) f
JOIN
  `bigquery-public-data.github_repos.contents` AS c
ON
  f.id = c.id AND seqnum=1
JOIN
  `bigquery-public-data.github_repos.licenses` AS l
ON
  f.repo_name = l.repo_name
WHERE
  NOT c.binary AND ((f.path LIKE '%.kt') AND (c.size BETWEEN 0 AND 1048575))

Data Splits

The dataset only contains a train split.

Using the curated version of this dataset, a split was made into multiple repositories:

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.

Additional Information

Dataset Curators

mircea.dev@icloud.com

Licensing Information

  • The license of this open-source dataset is: other.
  • The dataset is gathered from open-source repositories on GitHub using BigQuery.
  • Find the license of each entry in the dataset in the corresponding license column.

Citation Information

@misc {mircea_vasiliniuc_2023,
    author       = { {Mircea Vasiliniuc} },
    title        = { iva-kotlin-codeint (Revision 1af5124) },
    year         = 2023,
    url          = { https://huggingface.co/datasets/mvasiliniuc/iva-kotlin-codeint },
    doi          = { 10.57967/hf/0779 },
    publisher    = { Hugging Face }
}
Downloads last month
11