path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feature-order/src/main/java/edts/uco/android/feature_order/ui/create/DimensionDelegate.kt | abahadilah | 651,759,726 | false | null | package edts.uco.android.feature_order.ui.create
interface DimensionDelegate {
fun onLengthChanged(l: Int?)
fun onWidthChanged(w: Int?)
fun onHeightChanged(h: Int?)
} | 0 | Kotlin | 0 | 0 | 998aadd2e570c1443f545a792140a72589b77602 | 179 | jgo | MIT License |
rximagepicker_support_wechat/src/main/java/com/qingmei2/rximagepicker_extension_wechat/ui/WechatAlbumPreviewActivity.kt | qingmei2 | 116,668,295 | false | null | package com.qingmei2.rximagepicker_extension_wechat.ui
import android.app.Activity
import android.net.Uri
import android.provider.MediaStore
import android.view.View
import android.widget.Toast
import com.qingmei2.rximagepicker_extension.entity.Item
import com.qingmei2.rximagepicker_extension.ui.AlbumPreviewActivity
i... | 20 | null | 156 | 1,196 | 08aee5c815017845a0fd818cc6bfa5df872e3fae | 2,059 | RxImagePicker | MIT License |
kbtool-lib/src/main/java/com/github/jchanghong/core/lang/ObservableProperty.kt | jchanghong | 494,378,439 | false | null | package com.github.jchanghong.kotlin
| 0 | Kotlin | 9 | 44 | 01f515fecb6e90307fab44cbf866c4110d62786b | 37 | kotlin-backend-tool-library | Apache License 2.0 |
kotlin-react-select/src/jsMain/kotlin/react/select/MenuPlacement.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | package react.select
import seskar.js.JsValue
sealed external interface MenuPlacement {
companion object {
@JsValue("auto")
val auto: MenuPlacement
@JsValue("bottom")
val bottom: MenuPlacement
@JsValue("top")
val top: MenuPlacement
}
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 296 | kotlin-wrappers | Apache License 2.0 |
src/main/kotlin/me/arasple/mc/trmenu/modules/action/impl/ActionDelay.kt | DusKAugustus | 288,902,080 | true | {"Kotlin": 291052} | package me.arasple.mc.trmenu.modules.action.impl
import io.izzel.taboolib.internal.apache.lang3.math.NumberUtils
import me.arasple.mc.trmenu.modules.action.base.Action
import org.bukkit.entity.Player
/**
* @author Arasple
* @date 2020/2/27 20:26
*/
class ActionDelay : Action("delay|wait") {
fun getDelay(playe... | 0 | null | 0 | 1 | fda531aa22f985b787f67995d82450d9704ad38b | 377 | TrMenu | MIT License |
prl-compiler/src/test/kotlin/com/booleworks/prl/model/rules/ConstraintRuleTest.kt | booleworks | 721,827,334 | false | {"Kotlin": 1495826, "JavaScript": 835976, "Vue": 132739, "TypeScript": 50565, "Java": 32652, "ANTLR": 15836, "Lex": 3646, "CSS": 2243, "Shell": 1735, "Dockerfile": 681, "Scheme": 505} | package com.booleworks.prl.model.rules
import com.booleworks.prl.model.EnumProperty
import com.booleworks.prl.model.EnumRange
import com.booleworks.prl.model.IntProperty
import com.booleworks.prl.model.IntRange
import com.booleworks.prl.model.constraints.DEFAULT_MODULE
import com.booleworks.prl.model.constraints.FALSE... | 1 | Kotlin | 0 | 1 | 5a7c0836dc1ccea8a30ccabe3a5f4671348da967 | 7,281 | boolerules | MIT License |
presentation/src/main/java/com/know/reminder/di/component/ApplicationComponent.kt | iPartha | 412,166,864 | false | {"Kotlin": 56593} | package com.know.reminder.di.component
import android.app.Service
import com.know.data.services.ApiService
import com.know.reminder.ReminderApplication
import com.know.reminder.common.RootBaseActivity
import com.know.reminder.di.module.ApplicationModule
import com.know.reminder.di.module.NetworkModule
import com.know.... | 0 | Kotlin | 0 | 0 | f9151039963d5accc70277abb0bc30618e7462c1 | 929 | Reminder | Apache License 2.0 |
main/src/main/java/st/slex/messenger/main/data/user/UserDataMapper.kt | stslex | 378,152,043 | false | null | package st.slex.messenger.main.data.user
import st.slex.messenger.core.Mapper
import st.slex.messenger.core.Resource
import st.slex.messenger.main.ui.user_profile.UserUI
import javax.inject.Inject
interface UserDataMapper : Mapper.ToUI<UserData, Resource<UserUI>> {
class Base @Inject constructor() : UserDataMapp... | 1 | Kotlin | 0 | 0 | 98227df4528fee37ea1b2195fce91102d910cc43 | 917 | Messenger | Apache License 2.0 |
app/src/main/java/com/pedrogomez/pokeapp/pokedetail/models/pokemonspecies/FlavorTextEntry.kt | makhnnar | 331,338,484 | false | null | package com.pedrogomez.pokeapp.pokedetail.models.pokemonspecies
import kotlinx.serialization.Serializable
@Serializable
data class FlavorTextEntry(
val flavor_text: String
) | 0 | Kotlin | 0 | 0 | 2fe7382a3d39da86b977bf7e4e99081e8fa72ad4 | 179 | pokeApp | MIT License |
services/csm.cloud.project.project/src/main/kotlin/com/bosch/pt/iot/smartsite/project/milestone/facade/rest/resource/response/factory/MilestoneResourceFactory.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: Robert Bosch Power Tools GmbH, 2018 - 2022
*
* ************************************************************************
*/
package com.bosch.pt.iot.smartsite.project.milestone.facade.rest.resource.response.factory... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 842 | bosch-pt-refinemysite-backend | Apache License 2.0 |
app/src/sharedTest/java/org/metabrainz/android/ResultItemTestUtils.kt | metabrainz | 166,439,000 | false | null | package org.metabrainz.android
import org.metabrainz.android.ui.adapters.ResultItem
import org.metabrainz.android.EntityTestUtils.testArtistMBID
import org.metabrainz.android.EntityTestUtils.testLabelMBID
import org.metabrainz.android.EntityTestUtils.testRecordingMBID
import org.metabrainz.android.EntityTestUtils.test... | 20 | null | 32 | 98 | 89b89bf6c7df14bc4fd35240f05cfb6b87f91030 | 1,408 | musicbrainz-android | Apache License 2.0 |
actions-kotlin/src/jsMain/kotlin/actions/cache/downloadCache.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
@file:JsModule("@actions/cache")
package actions.cache
import js.core.Void
import js.promise.Promise
import seskar.js.JsAsync
@JsAsync
external suspend fun downloadCache(
archiveLocation: String,
archivePath: String,
options: DownloadOptions = definedExternall... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 505 | types-kotlin | Apache License 2.0 |
content/src/main/kotlin/mockifer/core/framework/FileLoader.kt | MarcelBraghetto | 96,596,914 | false | {"Shell": 10, "Text": 4, "Ignore List": 6, "Markdown": 1, "CMake": 1, "Gradle": 5, "Proguard": 2, "Batchfile": 3, "Java Properties": 5, "XML": 16, "Java": 1, "C++": 23, "C": 5, "OpenStep Property List": 4, "Swift": 20, "Objective-C++": 2, "Objective-C": 2, "JSON": 14, "Kotlin": 34, "JavaScript": 2, "HTML": 1} | /*
* =================================================
* Mockifer License
* =================================================
*
* MIT License
*
* Copyright (c) 2017 Marcel Braghetto
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation... | 0 | C | 1 | 21 | d9e18d4979176ff149f36fc646474456704fbd7c | 2,403 | mockifer | MIT License |
src/main/kotlin/com/narbase/kunafa/core/dimensions/dependent/WrapContent.kt | arocnies | 120,975,363 | true | {"JavaScript": 1519418, "Kotlin": 37735, "HTML": 254} | package com.narbase.kunafa.core.dimensions.dependent
import com.narbase.kunafa.core.components.View
import com.narbase.kunafa.core.dimensions.Dimension
import com.narbase.kunafa.core.dimensions.DynamicDimension
import org.w3c.dom.HTMLElement
import org.w3c.xhr.XMLHttpRequest
/**
* NARBASE TECHNOLOGIES CONFIDENTIAL
... | 0 | JavaScript | 0 | 0 | abcd8d83f385d5cc9b210ee99db591c2fe9e6740 | 883 | Kunafa | MIT License |
shared/src/commonMain/kotlin/app/duss/easyproject/domain/entity/Customer.kt | Shahriyar13 | 721,031,988 | false | {"Kotlin": 247935, "Swift": 6282, "Ruby": 2302} | package app.duss.easyproject.domain.entity
import kotlinx.serialization.Serializable
@Serializable
data class Customer(
val code: String,
val company: Company,
override val id: Long?,
override val creationTime: Long,
override val modificationTime: Long?,
override val createdBy: String,
ov... | 0 | Kotlin | 0 | 0 | 3b21efcf1c9bcdc2148884458a7c34f75020e071 | 437 | Kara_EasyProject_CMP | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/internal/behavior/impl/DefaultCanBeHidden.kt | Baret | 232,175,654 | false | {"Gradle Kotlin DSL": 7, "Markdown": 13, "INI": 2, "Shell": 3, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 818, "YAML": 2, "XML": 3, "Java": 49, "HTML": 7139, "SVG": 56, "CSS": 28, "JavaScript": 42, "JSON": 7} | package org.hexworks.zircon.internal.behavior.impl
import org.hexworks.cobalt.databinding.api.extension.createPropertyFrom
import org.hexworks.zircon.api.behavior.CanBeHidden
class DefaultCanBeHidden(initialIsHidden: Boolean = false) : CanBeHidden {
override val hiddenProperty = createPropertyFrom(initialIsHidde... | 1 | null | 1 | 1 | 51c93ee2067a1a4c7301f1cc5970d200ce715abf | 391 | zircon | Apache License 2.0 |
src/main/kotlin/io/github/kr8gz/playerstatistics/database/Tables.kt | kr8gz | 780,166,652 | false | {"Kotlin": 37111, "Java": 1714} | package io.github.kr8gz.playerstatistics.database
import java.sql.Statement
sealed class Table(val tableName: String) {
override fun toString() = tableName
protected abstract val schema: List<String>
companion object {
fun createAll(statement: Statement) {
Table::class.sealedSubclass... | 0 | Kotlin | 0 | 0 | b3a021412f1e347502f2caf81a095fdf14147b2d | 1,096 | PlayerStatistics | MIT License |
feature/home/src/main/java/com/nyinyihtunlwin/home/components/SurveyDetailsLoading.kt | nyinyihtunlwin-codigo | 802,104,160 | false | {"Kotlin": 149133} | package com.nyinyihtunlwin.home.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundati... | 7 | Kotlin | 0 | 0 | afadf7187c23f4abee41e9ff16c5d0544af4b996 | 3,648 | nimble-survey | Apache License 2.0 |
src/main/kotlin/org/ofdspec/CTAttachment.kt | ryecrow | 352,894,172 | false | {"Kotlin": 78972, "Java": 796} | package org.ofdspec
import jakarta.xml.bind.annotation.*
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter
import javax.xml.datatype.XMLGregorianCalendar
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CT_Attachment", propOrder = [... | 0 | Kotlin | 1 | 2 | c8cfac05940a36de5d6f97105cdc4fd888b71f09 | 1,307 | ofd-parser | Apache License 2.0 |
app/src/main/java/kr/sjh/myschedule/data/local/dao/TaskDao.kt | junghoonshin3 | 674,523,154 | false | {"Kotlin": 116370} | package kr.sjh.myschedule.data.local.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import kotlinx.coroutines.flow.Flow
import kr.sjh.myschedule.data.local.entity.ScheduleEntity
import k... | 1 | Kotlin | 0 | 1 | f7504195a56c5eb2a30bbc2a6c5ad11b1161ad5e | 754 | MySchedule | MIT License |
shared/src/main/java/org/calyxos/lupin/RepoHelper.kt | CalyxOS | 591,454,477 | false | null | /*
* SPDX-FileCopyrightText: 2023 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package org.calyxos.lupin
import android.content.Context
import androidx.annotation.WorkerThread
import org.fdroid.IndexFile
import org.fdroid.download.DownloadRequest
import org.fdroid.download.HttpDownloaderV2
import o... | 0 | Kotlin | 0 | 0 | 1d1daf73f8673760ede221e765ca2f0b791bce66 | 1,653 | platform_external_calyx_lupin | Apache License 2.0 |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/SplitMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 2,961 | mds-android-compose | MIT License |
core/src/main/java/com/aamernabi/core/dagger/SharedPreferencesModule.kt | aamernabi | 214,473,235 | false | null | /*
* Copyright 2020 aamernabi
*
* 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 in... | 4 | Kotlin | 0 | 0 | 39018c6d885d09dad2d6e5afa7b5e935945ed1e5 | 1,072 | moments | MIT License |
app/src/main/java/br/edu/ifsp/songlistroom/adapter/SongAdapter.kt | gabrielmoreira-dev | 729,608,983 | false | {"Kotlin": 17792} | package br.edu.ifsp.songlistroom.adapter
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import androidx.recyclerview.widget.RecyclerView
import br.edu.ifsp.songlistroom.data.Song
import br.edu.ifsp.so... | 0 | Kotlin | 0 | 0 | 24bfd7d5eb69e0872ed3ad9296d50cbc64499b7f | 2,648 | SongListRoom | MIT License |
differentiable-api-preprocessor-compiler-plugin/src/main/kotlin/diffPrep/metadata/StackClass.kt | facebookresearch | 514,073,458 | false | null | /*
* 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 adoptimize.autodiff.Metadata
import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.declarat... | 1 | Kotlin | 0 | 12 | 0695dc024d4a2f6eaf0559026efcda2a66b5e810 | 488 | optimizer-plugins | MIT License |
app/src/main/java/com/sushanthande/gocorona/LanguageUtil.kt | kumaar8293 | 258,117,838 | true | {"Kotlin": 56611} | package com.sushanthande.gocorona
/**
*Created by <NAME> on 25-03-2020
*/
class LanguageUtil(val language: String) {
companion object {
const val ENGLISH = "English"
const val HINDI = "हिंदी"
const val MARATHI = "मराठी"
}
enum class LanguagePrefix(val language: String) {
... | 0 | null | 0 | 2 | 1409fe9a7823a1b9f332c6312240bb7a8327d14a | 371 | GoCorona | Apache License 2.0 |
plugins/gradle/java/testSources/importing/GradleBuildSrcImportingTest.kt | MoryFode | 302,138,931 | false | {"Text": 4115, "XML": 4836, "Ant Build System": 13, "Shell": 545, "Markdown": 428, "Ignore List": 80, "Git Attributes": 9, "Batchfile": 30, "SVG": 2153, "Java": 67036, "C++": 20, "HTML": 2343, "Kotlin": 6696, "DTrace": 1, "Gradle": 1091, "Java Properties": 121, "INI": 288, "JFlex": 28, "CSS": 53, "Objective-C": 19, "Gr... | // Copyright 2000-2020 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.gradle.importing
import com.intellij.ide.highlighter.ModuleFileType
import com.intellij.openapi.application.ApplicationManager
import com.intellij.o... | 1 | null | 1 | 1 | e75042a90a9a0dcb1f72d0fb48be880ec0a035c3 | 8,722 | intellij-community | Apache License 2.0 |
app/src/main/java/com/pengxh/secretkey/utils/SQLiteUtil.kt | frankjiayounuli | 361,637,014 | true | {"Kotlin": 230011, "HTML": 4389, "CSS": 303} | package com.pengxh.secretkey.utils
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.util.Log
import com.pengxh.app.multilib.utils.BroadcastManager
import com.pengxh.secretkey.BaseApplication
import com.pengxh... | 0 | null | 0 | 0 | 3ede37946514c8e3ed48e0e526ca2a420bfefc26 | 7,319 | SecretKey | Apache License 2.0 |
src/commonMain/kotlin/data/items/LegguardsOfTheResoluteDefender.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kot... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,683 | tbcsim | MIT License |
src/main/kotlin/org/rust/ide/console/RunRustConsoleAction.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.console
import com.intellij.notification.NotificationType
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intell... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,216 | intellij-rust | MIT License |
model/src/main/kotlin/com/testerum/model/runner/tree/model/RunnerComposedStepNode.kt | testerum | 241,460,788 | false | {"Text": 47, "Gradle Kotlin DSL": 62, "Shell": 17, "Batchfile": 16, "Maven POM": 71, "Java Properties": 2, "Ignore List": 8, "Git Attributes": 1, "EditorConfig": 5, "Markdown": 8, "Kotlin": 1089, "Java": 27, "JSON": 161, "INI": 3, "XML": 30, "JavaScript": 36, "Gherkin": 1, "HTML": 232, "JSON with Comments": 11, "Browse... | package com.testerum.model.runner.tree.model
import com.fasterxml.jackson.annotation.JsonCreator
import com.fasterxml.jackson.annotation.JsonProperty
import com.testerum.model.infrastructure.path.Path
import com.testerum.model.step.StepCall
import com.testerum.model.util.new_tree_builder.ContainerTreeNode
import com.t... | 33 | Kotlin | 3 | 22 | 0a53c71b5f659e41282114127f595aad5ab1e4fb | 1,173 | testerum | Apache License 2.0 |
game/src/main/java/org/mhacks/app/game/widget/player/PlayerAdapter.kt | mhacks | 22,456,318 | false | null | package org.mhacks.app.game.widget.player
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import org.mhacks.app.game.data.model.Player
import org.mhacks.app.gam... | 1 | Kotlin | 12 | 21 | 12309b463e51acc3f41c463df647f410e16a6261 | 1,866 | mhacks-android | MIT License |
cbordata/src/test/java/com/ul/ims/gmdl/cbordata/security/sessionEncryption/SessionDataTest.kt | Prahsant | 303,771,349 | true | {"Kotlin": 1392515, "Java": 421643} | /*
* Copyright (C) 2019 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... | 0 | null | 0 | 0 | a6c3a6077ef5e7774ff70929ae4f33968ce6f598 | 2,536 | mdl-ref-apps | Apache License 2.0 |
purchases/src/main/kotlin/com/revenuecat/purchases/paywalls/events/PaywallBackendEvent.kt | RevenueCat | 127,346,826 | false | null | package com.revenuecat.purchases.paywalls.events
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class PaywallBackendEvent(
val id: String,
val version: Int,
val type: String,
@SerialName("app_user_id")
val appUserID: String,
@Seria... | 30 | null | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 780 | purchases-android | MIT License |
jnidbus-kotlin/src/test/kotlin/fr/viveris/jnidbus/test/SuspendingHandlerTest.kt | viveris | 207,839,274 | false | null | package fr.viveris.jnidbus.test
import fr.viveris.jnidbus.addHandler
import fr.viveris.jnidbus.await
import fr.viveris.jnidbus.dispatching.KotlinGenericHandler
import fr.viveris.jnidbus.dispatching.KotlinMethodInvocator
import fr.viveris.jnidbus.dispatching.MemberType
import fr.viveris.jnidbus.dispatching.annotation.H... | 0 | null | 1 | 5 | f911843f6afdbc0046b73c2768f4523440f0b2a2 | 3,451 | jnidbus | Academic Free License v2.1 |
plugins/kotlin/idea/tests/testData/refactoring/extractFunction/parameters/misc/runQualifier.kt | JetBrains | 2,489,216 | false | null | internal class Outer {
enum class EnumClass {
A;
val mavenIds: Array<String>
init {
mavenIds = arrayOf("da", "da")
}
}
}
class Foo {
private fun createModule() {
<selection>for (mvnId in Outer.EnumClass.A.run { mavenIds }) { }</selection>
}
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 312 | intellij-community | Apache License 2.0 |
idea/tests/testData/inspectionsLocal/usePropertyAccessSyntax/get.kt | JetBrains | 278,369,660 | false | null | // PROBLEM: "Use of getter method instead of property access syntax"
// WITH_RUNTIME
import java.io.File
fun foo(file: File) {
file.getAbsolutePath<caret>()
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 163 | intellij-kotlin | Apache License 2.0 |
fullstack-gradle-plugin/src/main/kotlin/com/hedera/fullstack/gradle/plugin/HelmUninstallChartTask.kt | hashgraph | 642,115,499 | false | {"Java": 446781, "JavaScript": 108483, "Shell": 92847, "Kotlin": 54466, "Smarty": 17789, "Makefile": 15130, "Dockerfile": 8046, "Mustache": 2181} | /*
* Copyright (C) 2023 <NAME> 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... | 1 | null | 1 | 1 | 598eeaf43f27e5d9c3d219fd7a9a4dcb90d1ff18 | 2,685 | full-stack-testing | Apache License 2.0 |
app/src/main/java/com/pj109/xkorey/pjos/ui/image/SelfImageFragmentsModule.kt | noobthinker | 211,669,359 | false | null | package com.pj109.xkorey.pjos.ui.image
import com.pj109.xkorey.share.di.ChildFragmentScoped
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
internal abstract class SelfImageFragmentsModule {
@ChildFragmentScoped
@ContributesAndroidInjector
internal abstract fun contributeSel... | 0 | Kotlin | 0 | 0 | 10f91bf4f957bdf2e328e1a0b195146c7762eccf | 802 | pjos | MIT License |
ts-core/ts-datastruct/src/main/kotlin/cn/tursom/core/datastruct/async/interfaces/AsyncSet.kt | tursom | 213,611,087 | false | {"YAML": 1, "Gradle Kotlin DSL": 45, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Kotlin": 616, "Java": 6, "INI": 1, "Markdown": 3} | package cn.tursom.core.datastruct.async.interfaces
interface AsyncSet<out E> : AsyncCollection<E> | 0 | Kotlin | 2 | 8 | fc31966b5c49a7aaf94a4ff7327be7f5ebd6806a | 98 | TursomServer | MIT License |
airbyte-server/src/test/kotlin/io/airbyte/server/apis/publicapi/mappers/SourceReadMapperTest.kt | airbytehq | 592,970,656 | false | null | package io.airbyte.server.apis.publicapi.mappers
import io.airbyte.api.model.generated.SourceRead
import io.airbyte.commons.json.Jsons
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.util.UUID
class SourceReadMapperTest {
@Test
fun `from should convert a SourceRe... | 54 | null | 249 | 205 | a2e58f1b60ea79ec96546c98f712077c82de373a | 1,184 | airbyte-platform | MIT License |
SpannableDemo/app/src/main/java/com/renyu/spannabledemo/MainActivity.kt | r17171709 | 23,950,456 | false | null | package com.renyu.spannabledemo
import android.graphics.Color
import android.os.Bundle
import android.text.*
import android.text.method.LinkMovementMethod
import android.text.style.ClickableSpan
import android.text.style.ForegroundColorSpan
import android.util.Log
import android.view.View
import androidx.appcompat.app... | 8 | null | 333 | 612 | ee75780c1187355d81bab329e62ecaad985d6832 | 2,867 | StudyDemo | Apache License 2.0 |
src/test/kotlin/com/dumptruckman/bukkit/utils/MockServerFactory.kt | dumptruckman | 100,062,190 | false | {"Gradle": 2, "Markdown": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Java Properties": 1, "Kotlin": 18, "Java": 7, "YAML": 3, "Text": 1} | /*
* This file is part of Pinapp.
*
* Copyright (c) 2017 Jeremy Wood
*
* 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 restriction, including without limitation the rights
* t... | 2 | null | 1 | 1 | aded280ae61b23ebfdab48b48ec2a45011927a00 | 2,413 | kpiston | MIT License |
editor/src/main/kotlin/editor/Editor.kt | Pengiie | 411,461,323 | false | null | package editor
import Presence
import androidx.compose.foundation.layout.*
import androidx.compose.material.Divider
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import editor.components.MenuBar
import editor.c... | 0 | Kotlin | 0 | 0 | b9f75232ae7d2ad815478307d0c731d0f1ce9bbd | 1,501 | kotarOld | Apache License 2.0 |
kotlinpoet/src/commonMain/kotlin/EnumConstantHelper.kt | kordlib | 690,695,909 | false | {"Kotlin": 181384} | package dev.kord.codegen.kotlinpoet
import com.squareup.kotlinpoet.TypeSpec
/**
* Adds an enum constant with [name] to this [TypeSpec].
*/
public fun TypeSpec.Builder.addEnumConstant(name: String, builder: TypeSpecBuilderScope = {}): TypeSpec.Builder =
addEnumConstant(name, TypeSpec.anonymousClass(builder))
| 0 | Kotlin | 0 | 9 | 46fc6334bf0f219b29b075178eb548133dd3decb | 317 | codegen-kt | MIT License |
api/src/main/kotlin/br/com/gamemods/minecity/api/math/VirtualMoney.kt | GameModsBR | 723,707,184 | false | {"Kotlin": 109716, "Java": 1275} | package br.com.gamemods.minecity.api.math
import br.com.gamemods.minecity.api.id.VirtualCurrencyId
import br.com.gamemods.minecity.api.serializer.Decimal
import kotlinx.serialization.Serializable
/**
* Represents a money amount out of a virtual currency from an economy plugin/mod.
*
* @property currency The curren... | 1 | Kotlin | 0 | 6 | 81abd62fc7724d99ec48d90a8eb3c87ad3c03dde | 525 | MineCity2 | MIT License |
day16/src/main/kotlin/Main.kt | rstockbridge | 159,586,951 | false | null | import java.io.File
fun main() {
val samples = parseInputPartI(readInputFilePartI())
println("Part I: the solution is ${solvePartI(samples)}.")
val instructions = parseInputPartII(readInputFilePartII())
println("Part II: the solution is ${solvePartII(samples, instructions)}.")
}
fun readInputFilePart... | 0 | Kotlin | 0 | 0 | c404f1c47c9dee266b2330ecae98471e19056549 | 4,624 | AdventOfCode2018 | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Circleci.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,773 | compose-icons | MIT License |
app/src/main/java/com/breezefieldsalesdemo/features/dashboard/presentation/api/dayStartEnd/DayStartEndRepository.kt | DebashisINT | 780,900,656 | false | {"Kotlin": 16515495, "Java": 1022394} | package com.breezefieldsalesdemo.features.dashboard.presentation.api.dayStartEnd
import com.breezefieldsalesdemo.app.Pref
import com.breezefieldsalesdemo.base.BaseResponse
import com.breezefieldsalesdemo.features.dashboard.presentation.model.DaystartDayendRequest
import com.breezefieldsalesdemo.features.dashboard.pres... | 0 | Kotlin | 0 | 0 | e6ac4fc6bc479a4bd6f5da981e22a7e076fc97b9 | 1,188 | FSM_APP_ANDROIDX_LastApiBuild | Apache License 2.0 |
payeasy/src/main/java/com/adyen/checkout/payeasy/PayEasyComponentState.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2023 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by ozgur on 21/2/2023.
*/
package com.adyen.checkout.payeasy
import com.adyen.checkout.components.core.PaymentComponentData
import com.adyen.checkout.components.co... | 28 | Kotlin | 59 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 701 | adyen-android | MIT License |
src/app/src/main/java/kaleidot725/sample/data/User.kt | kaleidot725-android | 328,666,480 | false | null | package kaleidot725.sample.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "users")
data class User(
@PrimaryKey(autoGenerate = true) val id: Int,
@ColumnInfo(name = "first_name") val firstName: String?,
@ColumnInfo(name = "last_name") v... | 0 | Kotlin | 0 | 0 | c312d3ffde6c53a91ac01ae7be5ee689501f5225 | 360 | replace_livedata_to_coroutines_flow | MIT License |
src/main/kotlin/com/project/rss/model/FeedTemplate.kt | devkirill | 332,005,497 | false | null | package com.project.rss.model
class FeedTemplate {
var title: String? = null
var description: String? = null
var language: String? = null
var image: String? = null
var link: String? = null
var pubDate: String? = null
} | 0 | Kotlin | 0 | 0 | a3a5e74b4053d270bd49ae12525eeea4e4d38663 | 243 | rss | MIT License |
src/test/kotlin/org/openrewrite/java/logging/ParameterizedLoggingTest.kt | edward3h | 454,172,685 | false | null | /*
* Copyright 2021 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 1 | null | 1 | 1 | 492321581ba2d30db68f20fd4aa604fe99a72308 | 13,412 | rewrite-logging-frameworks | Apache License 2.0 |
wild-monitor-service/src/main/kotlin/wild/monitor/jobs/web/EndpointErrorHandler.kt | ddubson | 169,662,670 | false | null | package wild.monitor.jobs.web
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.ControllerAdvice
import org.springframework.web.bind.annotation.ExceptionHandler
import wild.monitor.jobs.JobNotFoundException
@ControllerAdvice
public class ErrorHandlerController {
@Except... | 0 | Kotlin | 0 | 0 | 28bc6535ab639c3ea712383d55f60dbdcb094cf0 | 472 | wild-monitor | MIT License |
history/history-impl/src/test/java/com/duckduckgo/history/impl/store/HistoryDaoTest.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2024 DuckDuckGo
*
* 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 ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 7,703 | Android | Apache License 2.0 |
pleo-antaeus-app/src/test/kotlin/io/pleo/antaeus/app/UtilsTest.kt | slimaneakalie | 369,018,492 | true | {"Kotlin": 46737, "Shell": 794, "Dockerfile": 249} | package io.pleo.antaeus.app
import getLastDayOfMonth
import getNextBillingDate
import io.mockk.every
import io.mockk.mockkStatic
import io.mockk.unmockkAll
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import java.sql.Date
import java.time.LocalDate
c... | 0 | Kotlin | 0 | 0 | 2466d08c175fbf0cea9fc56e7513278ea8fc294a | 3,079 | antaeus | Creative Commons Zero v1.0 Universal |
app/src/main/java/cn/imrhj/cowlevel/network/model/common/TagModel.kt | fossabot | 152,681,532 | false | null | package cn.imrhj.cowlevel.network.model.common
import cn.imrhj.cowlevel.network.model.BaseModel
import com.google.gson.annotations.SerializedName
data class TagModel(
@SerializedName("name") val name: String? = null,
@SerializedName("id") val id: Int? = null,
@SerializedName("pic") val pic: St... | 0 | Kotlin | 0 | 1 | 26e361d39ae804d8093555a46b10c348d5bd4fee | 492 | NotCowLevel | Apache License 2.0 |
circular-range-seek-bar/src/main/java/info/ljungqvist/android/widget/CircularRangeSeekBar.kt | ljungqvist | 14,709,126 | false | null | package info.ljungqvist.android.widget
import android.annotation.TargetApi
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.graphics.drawable.Drawable
import a... | 4 | null | 5 | 9 | 353bf73742d46a6dbaae43fc34a861f130df49af | 12,119 | CircularRangeSeekBar | Apache License 2.0 |
app/src/main/java/com/realform/macropaytest/data/implrepository/userRemoteRegistryImpl/UserEmailPassRegistryImpl.kt | ChazM | 779,661,148 | false | {"Kotlin": 211857} | package com.realform.macropaytest.data.implrepository.userRemoteRegistryImpl
import android.util.Log
import com.google.android.gms.tasks.Task
import com.google.firebase.auth.AuthResult
import com.google.firebase.auth.FirebaseAuth
import com.realform.macropaytest.data.mapper.toUserDB
import com.realform.macropaytest.do... | 0 | Kotlin | 0 | 0 | 40415707c5786ed22b614fe4163e9241be5744b2 | 1,449 | Kotlin_test_android | MIT License |
android/app/src/main/java/com/diafyt/lazarus/utils/Util.kt | diafyt | 276,907,182 | false | null | package com.diafyt.lazarus.utils
import android.content.Context
import android.nfc.Tag
import android.view.View
import androidx.appcompat.app.AlertDialog
import com.diafyt.lazarus.R
import com.google.android.material.snackbar.Snackbar
/**
* Various utility functions.
*/
object Util {
/**
* Runtime of the L... | 0 | Kotlin | 1 | 7 | 2c1d05f9239c936b97969e65fce199bb57b1505b | 4,322 | lazarus | Apache License 2.0 |
compiler/testData/diagnostics/tests/when/whenAndLambdaWithExpectedType.kt | zeesh49 | 67,883,175 | true | {"Java": 15915057, "Kotlin": 12574163, "JavaScript": 177557, "Protocol Buffer": 42724, "HTML": 28583, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 6859, "Shell": 4704, "IDL": 4669, "Batchfile": 3703} | val test1: (String) -> Boolean =
when {
true -> {{ true }}
else -> {{ false }}
}
val test2: (String) -> Boolean =
when {
true -> {{ true }}
else -> null!!
}
val test3: (String) -> Boolean =
when {
true -> { s -> true }... | 0 | Java | 0 | 1 | c9cc9c55cdcc706c1d382a1539998728a2e3ca50 | 560 | kotlin | Apache License 2.0 |
feature/notes-list/ui/core/src/main/kotlin/ru/maksonic/beresta/feature/notes_list/ui/core/card/NoteTagsRow.kt | maksonic | 580,058,579 | false | {"Kotlin": 1622432} | package ru.maksonic.beresta.feature.notes_list.ui.core.card
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
i... | 0 | Kotlin | 0 | 0 | 227b0a5f6c27b0f731b1f6e81b1fe2deeaa720aa | 2,289 | Beresta | MIT License |
app/src/main/java/com/example/myapplication/data/remote/network/pagination/CreatePager.kt | Osman0812 | 698,538,398 | false | {"Kotlin": 185794} | package com.example.myapplication.data.remote.network.pagination
import androidx.paging.Pager
import androidx.paging.PagingConfig
import com.example.myapplication.util.Constants
fun <T : Any> createPager(
pageSize: Int = Constants.DEFAULT_PAGINATION_SIZE,
enablePlaceholders: Boolean = false,
apiService: ... | 0 | Kotlin | 0 | 0 | c83e22c25e6cf88b00eeb10eb523683a4e518b80 | 514 | MoveeApp | MIT License |
features/settings/impl/src/main/java/ru/aleshin/features/settings/impl/presentation/settings/views/LanguageChooserDialog.kt | v1tzor | 667,131,593 | false | null | /*
* Copyright 2023 <NAME>
*
* 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 in writin... | 0 | Kotlin | 0 | 1 | 7c820466e348a8bc3259b629d9f8caf527c6f063 | 3,580 | MixPlayer | Apache License 2.0 |
scope/src/main/kotlin/dev/tcheng/common/scope/manager/ScopeManager.kt | nesboy | 593,404,458 | false | null | package dev.tcheng.common.scope.manager
import dev.tcheng.common.model.annotation.IgnoreCoverage
import dev.tcheng.common.scope.model.Context
import java.time.Instant
@IgnoreCoverage
object ScopeManager {
fun startScope() {
val previousContext = ContextStorageManager.peekOrNull()
ContextStorageMa... | 0 | Kotlin | 0 | 0 | bbad55ffc8abab382cd2229d509474a726e8a966 | 646 | common | MIT License |
Quick/src/main/java/com/wpf/app/quick/helper/QuickViewEx.kt | walgr | 487,438,913 | false | null | package com.wpf.app.quick.helper
import android.app.Activity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import com.wpf.app.base.Quick
import com.wpf.app.quickutil.other.forceTo
fun Quick.getActivi... | 0 | null | 3 | 29 | 6b4da7f07e347ca6d4fbaa7a555ebcedde1494d6 | 907 | Quick | MIT License |
src/test/kotlin/com/kokasai/api/local/KokasaiApiImpl.kt | gKokasai | 277,510,942 | false | null | package com.kokasai.api.local
import com.kokasai.api.KokasaiApi
import com.kokasai.api.auth.configureBasicAuth
import com.kokasai.api.auth.configureSessionAuth
import com.kokasai.api.auth.configureSessionHeader
import com.kokasai.api.configureCORS
import com.kokasai.api.configureCallLogging
import com.kokasai.api.conf... | 3 | Kotlin | 2 | 3 | 46a9d9300aca4778950102df1b8874dccba47bbc | 2,324 | api.kokasai.com | Apache License 2.0 |
core/design/src/main/java/com/busymodernpeople/core/design/ui/theme/GalapagosTheme.kt | BusyModernPeople | 639,487,021 | false | {"Kotlin": 410495} | package com.busymodernpeople.core.design.ui.theme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
object GalapagosTheme {
val colors: GalapagosColors
@Composable
@ReadOnlyComposable
get() = LocalColors.current
val typography: GalapagosTypo... | 0 | Kotlin | 1 | 1 | 8971c5f54b056ad3db9f862e40bf72f2a6afa3bc | 416 | Galapagos-Android | MIT License |
core/src/commonMain/kotlin/work/socialhub/kmastodon/api/response/timelines/TimelinesConversationsResponse.kt | uakihir0 | 783,390,459 | false | {"Kotlin": 168825, "Ruby": 2191, "Shell": 2164, "Makefile": 319} | package work.socialhub.kmastodon.api.response.timelines
import work.socialhub.kmastodon.entity.Conversation
typealias TimelinesConversationsResponse = Conversation | 2 | Kotlin | 0 | 1 | c340fd70019d01057973404910aa5b99735739ef | 165 | kmastodon | MIT License |
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-resource-10.kt | arrow-kt | 86,057,409 | false | {"Kotlin": 2793646, "Java": 7691} | // This file was automatically generated from Resource.kt by Knit tool. Do not edit.
package arrow.fx.coroutines.examples.exampleResource10
import arrow.fx.coroutines.*
import arrow.fx.coroutines.ExitCase.Companion.ExitCase
val resource =
resource({ "Acquire" }) { _, exitCase -> println("Release $exitCase") }
susp... | 38 | Kotlin | 436 | 5,958 | 5f0da6334b834bad481c7e3c906bee5a34c1237b | 556 | arrow | Apache License 2.0 |
slideshow/src/main/java/com/ndhzs/slideshow/viewpager/transformer2/ZoomOutTransformer.kt | 985892345 | 371,737,299 | false | null | /*
* Copyright 2014 Toxic Bakery
*
* 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 ... | 8 | Kotlin | 500 | 3 | aeb8556932fdab1864b98259475456f754c64794 | 1,095 | SlideShow | Apache License 2.0 |
sample/src/main/java/com/a21buttons/cropimageview/sample/MainActivity.kt | BraisGabin | 119,693,356 | false | null | package com.a21buttons.cropimageview.sample
import android.os.Bundle
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.ImageView
import android.widget.Toast
import com.a21buttons.cropimageview.CropImageView
class MainActivity : App... | 1 | Kotlin | 0 | 1 | 216efd444ae4e0cc555d1fff7cb7363cabbc342c | 1,596 | CropImageView | Apache License 2.0 |
sections_old/Section 9/demo-nosql/src/main/kotlin/com/example/demo/nosql/data/entity/User.kt | telpay | 408,523,517 | true | {"Kotlin": 115874, "Java": 4740} | package com.example.demo.nosql.data.entity
import com.example.demo.nosql.data.dto.UserDto
import org.bson.types.ObjectId
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
@Document
class User(
@Id
val id: ObjectId,
var firstName: String,
var... | 0 | null | 0 | 0 | f4ae3ab650c866f63651ea41768e0a73774c9f82 | 514 | Spring-Kotlin-iThome-2021 | MIT License |
KotlinMail/app/src/main/java/cn/xwj/kotlinmail/ui/activity/MainActivity.kt | jxiaow | 123,389,640 | false | {"Java": 270055, "Kotlin": 243645} | package cn.xwj.kotlinmail.ui.activity
import android.os.Bundle
import android.support.v4.app.Fragment
import cn.xwj.baselibrary.ui.activity.BaseActivity
import cn.xwj.baselibrary.utils.AppManager
import cn.xwj.baselibrary.utils.AppPreferences
import cn.xwj.goods.common.GoodsConstants
import cn.xwj.goods.event.UpdateCa... | 1 | null | 1 | 1 | 2796496ebb7d279ad0f405102c107db9085545e7 | 3,750 | AndroidProjectStudio | Apache License 2.0 |
common/src/main/kotlin/com/fphoenixcorneae/common/cache/DiskCache.kt | FPhoenixCorneaE | 303,260,191 | false | null | package com.fphoenixcorneae.common.cache
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Parcelable
import com.fphoenixcorneae.common.ext.*
import org.json.JSONArray
import org.json.JSONObject
import java.io.File
import java.io.Serializable
import java.util.*
import java.util... | 1 | Kotlin | 0 | 4 | 4304eee718a2d98cf8cf2ea8d62d98aabea7623b | 19,543 | CommonUtil | Apache License 2.0 |
example/src/main/java/id/derysudrajat/easyadapter/MainActivity.kt | derysudrajat | 289,061,836 | false | null | package id.derysudrajat.easyadapter
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DefaultItemAnimator
import id.derysudrajat.easyadapter.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var mainBinding: Acti... | 1 | Kotlin | 1 | 2 | fd61f229023c7bbe1f982582c65068a7d127e9df | 728 | EasyAdapter | MIT License |
example/src/main/java/id/derysudrajat/easyadapter/MainActivity.kt | derysudrajat | 289,061,836 | false | null | package id.derysudrajat.easyadapter
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.DefaultItemAnimator
import id.derysudrajat.easyadapter.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var mainBinding: Acti... | 1 | Kotlin | 1 | 2 | fd61f229023c7bbe1f982582c65068a7d127e9df | 728 | EasyAdapter | MIT License |
week10/MovieViewer/app/src/main/java/com/wmw/movieviewer/ui/MovieViewModel.kt | wmwprogrammer | 268,119,454 | false | null | package com.wmw.movieviewer.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.work.*
import com.wmw.movieviewer.App
import com.wmw.movieviewer.model.Movie
import com.wmw.movieviewer.repository.MoviesRepository
import com.wmw.movieviewer.r... | 0 | Kotlin | 0 | 0 | 45615152f94198900495edec827552f7f3504ac7 | 1,880 | RWAndroidBootcamp2020 | MIT License |
library/src/test/java/kwasm/format/text/module/MemoryTest.kt | jasonwyatt | 226,777,898 | false | null | /*
* Copyright 2020 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 in w... | 4 | null | 3 | 25 | 3c17988daaa8f37d654ee29428a37b330b3532ad | 7,928 | KWasm | Apache License 2.0 |
app/src/main/java/com/stevenpopovich/talktothat/cameraengine/facialdetection/PID.kt | stevepopovich | 291,135,072 | false | {"G-code": 32972125} | package com.stevenpopovich.talktothat.cameraengine.facialdetection
/**
* PID library, ported from [https://github.com/br3ttb/Arduino-PID-Library] on [https://github.com/egueli/Kotlin-PID-Library].
*
* @param process an instance of the [Process] interface that holds the input,
* setpoint and output values.
* @para... | 5 | G-code | 0 | 4 | 180327cbd933262087ac5e7537bca8053de79db4 | 6,069 | sam | MIT License |
app/src/main/java/radhika/yusuf/id/mvvmkotlin/mvvm/home/HomeUserActionListener.kt | radhikayusuf | 157,981,024 | false | null | package radhika.yusuf.id.mvvmkotlin.mvvm.home;
import radhika.yusuf.id.mvvmkotlin.utils.base.BaseUserActionListener
interface HomeUserActionListener : BaseUserActionListener {
fun onClickItem(data: HomeModel)
} | 0 | Kotlin | 5 | 18 | 28ed409dff680124bac0bedca892083887ed9351 | 219 | mvvm-kotlin-framework | MIT License |
switcher/src/main/java/com/loopnow/envconfig/switcher/EnvSwitchActivity.kt | eyyoung | 517,577,988 | false | {"Kotlin": 17882} | package com.loopnow.envconfig.switcher
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.WindowCompat
import androidx.fragment.app.commit
import com.loopnow.envconfig.switcher.databinding.EnvActivitySwitcherBinding
class EnvSwitchActivity : AppCompatActivity() {
p... | 0 | Kotlin | 0 | 0 | 5f85dccd996fd6f53983bea060b10f39998f5543 | 818 | env-config-android | Apache License 2.0 |
src/en/manhwatime/src/eu/kanade/tachiyomi/extension/en/manhwatime/ManhwaTime.kt | ZongerZY | 287,689,898 | true | {"Kotlin": 3948599, "Shell": 1958, "Java": 608} | package eu.kanade.tachiyomi.extension.en.manhwatime
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.FilterList
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.source.on... | 0 | Kotlin | 1 | 8 | 1f40e4d4c4aff4b71fa72ffae03dbcd871e91803 | 4,580 | tachiyomi-extensions | Apache License 2.0 |
workspace/app/src/main/java/com/mhp/superawsometaskapp/injection/AwsomeModule.kt | MHP-A-Porsche-Company | 130,752,797 | false | {"Kotlin": 24890} | package com.mhp.superawsometaskapp.injection
import android.content.Context
import com.mhp.superawsometaskapp.AwsomeApp
import com.mhp.superawsometaskapp.service.DefaultListItemService
import com.mhp.superawsometaskapp.service.ListItemService
import com.mhp.superawsometaskapp.viewmodel.*
import dagger.Module
import da... | 0 | Kotlin | 0 | 0 | 775826930b0dd11295ca19474a2ac80622010619 | 1,518 | android-stack-example | MIT License |
app/src/main/kotlin/com/androidvip/sysctlgui/ui/params/browse/ParamBrowserViewState.kt | Lennoard | 203,049,890 | false | null | package com.androidvip.sysctlgui.ui.params.browse
import com.androidvip.sysctlgui.data.models.KernelParam
import com.androidvip.sysctlgui.utils.Consts
import com.androidvip.sysctlgui.utils.ViewState
data class ParamBrowserViewState(
var currentPath: String = Consts.PROC_SYS,
var showDocumentationMenu: Boolean... | 2 | Kotlin | 8 | 42 | a2c3a605c4c7b440d3b0a5dfa0b55d85692116f8 | 427 | SysctlGUI | MIT License |
src/nativeMain/kotlin/ResultWriter.kt | ACINQ | 653,627,568 | false | null | import arrow.core.Either
import types.ApiError
interface IResultWriter {
fun write(result: Either<ApiError, String>)
}
class ConsoleResultWriter : IResultWriter {
override fun write(result: Either<ApiError, String>) {
when (result) {
is Either.Right -> println(result.value)
is ... | 1 | Kotlin | 2 | 3 | 78ac5ed1fc6fbe9facf3205d3ca0832cf96fea8d | 422 | eclair-cli | Apache License 2.0 |
middleware/src/main/java/com/anytypeio/anytype/middleware/auth/AuthMappers.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.middleware.auth
import anytype.Rpc
import com.anytypeio.anytype.core_models.Account
import com.anytypeio.anytype.core_models.AccountSetup
import com.anytypeio.anytype.core_models.AccountStatus
import com.anytypeio.anytype.core_models.Config
import com.anytypeio.anytype.middleware.mappers.... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 1,823 | anytype-kotlin | RSA Message-Digest License |
simplified-books-time-tracking/src/main/java/org/nypl/simplified/books/time/tracking/TimeTrackingMerge.kt | ThePalaceProject | 367,082,997 | false | {"Kotlin": 3317583, "JavaScript": 853788, "Java": 374503, "CSS": 65407, "HTML": 49220, "Shell": 5017, "Ruby": 178} | package org.nypl.simplified.books.time.tracking
import com.io7m.jmulticlose.core.CloseableCollection
import io.azam.ulidj.ULID
import org.librarysimplified.audiobook.manifest.api.PlayerPalaceID
import org.nypl.simplified.accounts.api.AccountID
import org.slf4j.LoggerFactory
import org.slf4j.MDC
import java.net.URI
imp... | 1 | Kotlin | 4 | 8 | f68b6907367e2213f1dcde700ca5c91f2f515ada | 8,308 | android-core | Apache License 2.0 |
app/src/main/java/triplegato/montrack/AktivitasDatabaseHelper.kt | haniframadhani | 730,529,970 | false | {"Kotlin": 40458} | package triplegato.montrack
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class AktivitasDatabaseHelper(context: Context) : SQLiteOpenHelper(context, DATABASE_NAME, null, DATABASE_VERSION) {
compan... | 0 | Kotlin | 2 | 0 | 1d07adaf83f2f3498639f578a2c0bf7124b3f346 | 6,042 | montrack | MIT License |
features/search/src/test/java/com/lcabral/catsbyme/features/search/SearchUseCaseTest.kt | LucianaCabral | 745,895,275 | false | {"Kotlin": 66172} | package com.lcabral.catsbyme.features.search
import app.cash.turbine.test
import com.lcabral.catsbyme.features.search.StubsSearch.searchBreeds
import com.lcabral.catsbyme.features.search.domain.repository.SearchRepository
import com.lcabral.catsbyme.features.search.domain.usecase.SearchUseCase
import io.mockk.every
im... | 0 | Kotlin | 0 | 0 | 374b1a31b67b8eb14b3d92006b985c77bf058c94 | 1,819 | Catsbyme | MIT License |
src/test/kotlin/eu/europa/ec/eudi/verifier/endpoint/VerifierEndpointApplicationTests.kt | eu-digital-identity-wallet | 642,351,759 | false | {"Kotlin": 248232, "HTML": 1598} | /*
* Copyright (c) 2023 European Commission
*
* 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 o... | 3 | Kotlin | 11 | 9 | 677d40d52aad4373702205d56af1239268b8dec2 | 908 | eudi-srv-web-verifier-endpoint-23220-4-kt | Apache License 2.0 |
string-paradigm-expression_1/src/main/kotlin/org/jesperancinha/string/paradigm1/expression/SpellingCheck.kt | jesperancinha | 44,448,487 | false | {"Kotlin": 101344, "Makefile": 1833} | package org.jesperancinha.string.paradigm1.expression
class SpellingCheck<T> : SpellingCheckBase<T>() | 0 | Kotlin | 0 | 1 | 9739f2092e79d9d570654a628e57cba48225151b | 102 | string-array-paradigms | Apache License 2.0 |
src/test/kotlin/FileReaderBufferTests.kt | nkkarpov | 197,246,426 | false | null | import filereader.FileReaderBuffer
import org.junit.Test
class FileReaderBufferTests {
@Test
fun testInit() {
val fileName = "data/T40I10D100K.txt"
val reader = FileReaderBuffer(fileName)
for (i in 0 until 10) {
reader.next()
}
println(reader.next())
... | 0 | Kotlin | 0 | 0 | d232d1d4c0bf7a4d640fcd2c92ee76dd8baef0b3 | 382 | KSummaries | MIT License |
compiler/testData/diagnostics/tests/delegation/covariantOverrides/irrelevant.fir.kt | JetBrains | 3,432,266 | false | null | interface IBase1 {
fun foo(): Any
}
interface IDerived1 {
fun foo(): String
}
<!RETURN_TYPE_MISMATCH_BY_DELEGATION!>class Broken1<!>(val b: IBase1) : IBase1 by b, IDerived1
interface IBase2 {
val foo: Any
}
interface IDerived2 {
val foo: String
}
<!PROPERTY_TYPE_MISMATCH_BY_DELEGATION!>class Broken... | 7 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 365 | kotlin | Apache License 2.0 |
app/src/main/java/com/b_lam/resplash/ui/autowallpaper/collections/AutoWallpaperCollectionViewModel.kt | ankit1057 | 363,410,200 | true | {"Kotlin": 455213} | package com.b_lam.resplash.ui.autowallpaper.collections
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.b_lam.resplash.data.autowallpaper.model.AutoWallpaperCollection
import com.b_lam.resplash.data.autowallpaper.model.AutoWallpaperCollec... | 0 | null | 0 | 0 | 86a5a79465c40c000f7522f8e9b0f5af775951b1 | 4,793 | Resplash | The Unlicense |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/StoreLock.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,875 | icons | MIT License |
compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.kt | JetBrains | 3,432,266 | false | null | // KT-42036
typealias Action<RenderingT> = (@UnsafeVariance RenderingT) -> Unit
data class Tag<out RenderingT>(val action: Action<RenderingT>)
fun getTag(): Tag<*> = throw Exception()
fun doAction() {
getTag().action
}
| 147 | null | 5411 | 43,797 | a8f547d080724fae3a45d675a16c5b3fc2f13b17 | 226 | kotlin | Apache License 2.0 |
src/main/kotlin/com/sifsstudio/botjs/network/ClientboundOpenProgrammerScreenPacket.kt | SFS-Studio | 520,450,365 | false | {"Kotlin": 39923} | package com.sifsstudio.botjs.network
import net.minecraft.network.FriendlyByteBuf
import net.minecraftforge.api.distmarker.Dist
import net.minecraftforge.fml.DistExecutor
import net.minecraftforge.network.NetworkEvent
import java.util.function.Supplier
data class ClientboundOpenProgrammerScreenPacket(
val entityI... | 0 | Kotlin | 1 | 3 | def6050052e3a47049d78a7ecdff8246c3b937ef | 1,145 | BotJS | MIT License |
injective-core/src/commonMain/kotlin/injective/peggy/v1/msgs.grpc.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from injective/peggy/v1/msgs.proto
@file:GeneratorVersion(version = "0.3.1")
package injective.peggy.v1
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.grpc.ClientOption
import kr.... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 1,862 | chameleon.proto | Apache License 2.0 |
app/src/main/java/com/rmurai/remowidget/AccessKeyEntryDialogFragment.kt | rmuraix | 607,503,652 | false | null | package com.rmurai.remowidget
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.widget.AppCompatEditText
import androidx.fragment.app.DialogFragment
import com.google.android.material.dialog.MaterialAlertDialogBuilder
class ... | 4 | Kotlin | 0 | 0 | 63b50031c237aee2ddc0193fc8e4a0b6f5c14df3 | 1,506 | remo-widget-app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.