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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/engineer/echo/study/mvvm/vp2/Vp2ViewModel.kt | Pluckypan | 186,970,500 | false | {"Gradle": 18, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 16, "Batchfile": 1, "Markdown": 6, "Proguard": 13, "Kotlin": 219, "XML": 155, "Java": 35, "JSON": 1, "INI": 2, "C++": 2, "Protocol Buffer": 1, "SVG": 2, "Smarty": 5} | package engineer.echo.study.mvvm.vp2
import android.app.Application
import android.os.Bundle
import androidx.lifecycle.*
class Vp2ViewModel(bundle: Bundle? = null) : ViewModel(), Vp2Contract.IViewModel {
private val model: Vp2Contract.IModel = Vp2Model()
private val jobTrigger = MutableLiveData<Long>()
... | 0 | Kotlin | 0 | 3 | ecc46d4f4250421f93167f6d7dbda5562149e000 | 903 | DDU | Apache License 2.0 |
LibDialog/src/main/java/com/bihe0832/android/lib/ui/dialog/tools/DialogUtils.kt | AndroidAppFactory | 222,415,705 | false | null | /*
* *
* * Created by zixie < code@bihe0832.com > on 2022/5/25 上午10:43
* * Copyright (c) 2022 . All rights reserved.
* * Last modified 2022/5/25 上午10:43
*
*/
package com.bihe0832.android.lib.ui.dialog.tools
import android.content.Context
import android.view.inputmethod.EditorInfo
import com.bihe0832.android.l... | 1 | null | 21 | 67 | 5228b12b55573861a4cbc69de7ed66bee62f4d3f | 7,691 | AndroidAppFactory | MIT License |
app/src/main/java/com/example/tingximalaya/adapters/AlbumListAdapter.kt | cooek | 236,936,989 | false | null | package com.example.tingximalaya.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.tingximalaya.R
import com.example.tingximalaya.fragments... | 0 | Kotlin | 0 | 3 | bf727d47cc300ad410a95b00188925f81b3d80fc | 3,679 | Hiximalaya | The Unlicense |
app/src/main/java/com/huotu/android/mifang/bean/InviteOrderBean.kt | hottech-jxd | 163,493,643 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 3, "Java": 25, "XML": 188, "Kotlin": 269, "JSON": 1} | package com.huotu.android.mifang.bean
import java.math.BigDecimal
/**
* 开店订单
*/
data class InviteOrderBean (
var payType :Int /*支付类型,0-微信,1-支付宝,2-小程序*/,
var appId:String,
var partnerid:String,
var `package`:String,
v... | 1 | null | 1 | 1 | d409993f3900a1ebef52bfd8ea2bbbd7799bce79 | 1,292 | mifang-shopman-android | Apache License 2.0 |
library/src/main/kotlin/com/olympians/aeolus/utils/AnnotationTools.kt | contafu | 159,331,202 | false | null | package com.olympians.aeolus.utils
import android.text.TextUtils
import com.alibaba.fastjson.JSON
import com.olympians.aeolus.AeolusRequest
import com.olympians.aeolus.annotations.Get
import com.olympians.aeolus.annotations.Post
import com.olympians.aeolus.annotations.Query
import com.olympians.aeolus.config.AeolusCon... | 1 | Kotlin | 1 | 1 | 9cf508df77a6bd7856b3b1b0cc72200024116c5c | 4,069 | aeolus | Apache License 2.0 |
library/src/main/kotlin/com/olympians/aeolus/utils/AnnotationTools.kt | contafu | 159,331,202 | false | null | package com.olympians.aeolus.utils
import android.text.TextUtils
import com.alibaba.fastjson.JSON
import com.olympians.aeolus.AeolusRequest
import com.olympians.aeolus.annotations.Get
import com.olympians.aeolus.annotations.Post
import com.olympians.aeolus.annotations.Query
import com.olympians.aeolus.config.AeolusCon... | 1 | Kotlin | 1 | 1 | 9cf508df77a6bd7856b3b1b0cc72200024116c5c | 4,069 | aeolus | Apache License 2.0 |
tmp/arrays/youTrackTests/10653.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-3025
fun safeParseInt(s: String): Int? = try {
Integer.parseInt(s)
} catch(ex: Exception) {
null
}
fun main(args: Array<String>) {
println(safeParseInt("3"))
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 194 | bbfgradle | Apache License 2.0 |
fintechplatform-ui/src/main/java/com/fintechplatform/ui/profile/lightdata/LightDataActivity.kt | DWAplatform | 128,736,783 | false | null | package com.fintechplatform.ui.profile.lightdata
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.fintechplatform.ui.R
import com.fintechplatform.ui.alert.AlertHelpers
import com.fintechplatform.ui.models.DataAccount
import javax.inject.Inject
/**
* Shows personal informations
*/
... | 1 | null | 2 | 1 | 498bfbdfd00724ae24d7efc01e9af0b2a8cb58b0 | 1,359 | fintech-platform-sdk-android | MIT License |
AmniXtension/src/main/java/com/amnix/xtension/extras/BenchMarkUtils.kt | AmniX | 171,664,461 | false | null | /*
* Copyright (c) 2019, AmniX
* 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 applicabl... | 1 | Kotlin | 7 | 35 | f414196d2b693b482c81c96b3a49c0e9f6b5f945 | 2,159 | AmniXTension | Apache License 2.0 |
http4k-realtime-core/src/main/kotlin/org/http4k/routing/internalSse.kt | http4k | 86,003,479 | false | {"Kotlin": 2855594, "Java": 41165, "HTML": 14220, "Shell": 3200, "Handlebars": 1455, "Pug": 944, "JavaScript": 777, "Dockerfile": 256, "CSS": 248} | package org.http4k.routing
import org.http4k.core.Request
import org.http4k.core.UriTemplate
import org.http4k.routing.SseRouterMatch.MatchingHandler
import org.http4k.routing.SseRouterMatch.Unmatched
import org.http4k.sse.SseFilter
import org.http4k.sse.SseHandler
import org.http4k.sse.SseResponse
import org.http4k.s... | 34 | Kotlin | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 2,084 | http4k | Apache License 2.0 |
create-conversation-core/src/test/java/com/safechat/conversation/create/CreateConversationControllerTest.kt | asymmetric-team | 58,806,571 | false | {"Gradle": 23, "Shell": 2, "INI": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Java Properties": 1, "JSON": 3, "XML": 30, "Kotlin": 105, "Java": 1} | package com.safechat.conversation.create
import com.nhaarman.mockito_kotlin.any
import com.nhaarman.mockito_kotlin.mock
import com.nhaarman.mockito_kotlin.verify
import com.nhaarman.mockito_kotlin.whenever
import org.junit.Before
import org.junit.Test
import org.mockito.Mockito
import rx.Observable
class CreateConver... | 6 | null | 2 | 1 | 34274e068eef9e297c6ad9e7f3d896d37fd0d125 | 1,610 | secure-messenger-android | Apache License 2.0 |
src/main/kotlin/org/invenit/hello/kotlin/cli/command/ListSpots.kt | lamao | 113,463,656 | false | null | package org.invenit.hello.kotlin.cli.command
import org.invenit.hello.kotlin.service.SpotService
/**
* @author <NAME> (<EMAIL>)
*/
class ListSpots : Command {
override val description: String
get() = "Print all spots for given parking"
override fun execute(args: List<String>) {
val parkingI... | 1 | null | 1 | 1 | 5db2205464b254444d0b295cab780ec38c8f39d4 | 891 | parking-cli | MIT License |
src/test/kotlin/org/kotlinlang/koans/introduction/TestFunctions.kt | kgulyy | 141,433,075 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 42, "Java": 2} | package org.kotlinlang.koans.introduction
import org.junit.Assert
import org.junit.Test
class TestFunctions {
@Test
fun collection() {
Assert.assertEquals("toJSON", "[1, 2, 3, 42, 555]", toJSON(listOf(1, 2, 3, 42, 555)))
}
} | 0 | Kotlin | 0 | 0 | 3bd415fa4216aa9253b6e97491edcd6da93cc930 | 246 | kotlin-koans | MIT License |
faker/music/src/main/kotlin/io/github/serpro69/kfaker/music/MusicFaker.kt | serpro69 | 174,969,439 | false | {"Kotlin": 741942, "Shell": 6192, "Makefile": 4515, "Java": 3978, "Groovy": 1144} | package io.github.serpro69.kfaker.music
import io.github.serpro69.kfaker.AbstractFaker
import io.github.serpro69.kfaker.FakerConfig
import io.github.serpro69.kfaker.FakerDsl
import io.github.serpro69.kfaker.fakerConfig
import io.github.serpro69.kfaker.music.provider.BossaNova
import io.github.serpro69.kfaker.music.pro... | 21 | Kotlin | 42 | 462 | 22b0f971c9f699045b30d913c6cbca02060ed9b3 | 2,899 | kotlin-faker | MIT License |
analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/annotations/AnnotationUseSiteTargetFilter.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.light.classes.symbol.annotations
import org.jetbrains.kotlin.descriptors.annotat... | 182 | null | 5646 | 48,182 | bc1ddd8205f6107c7aec87a9fb3bd7713e68902d | 3,831 | kotlin | Apache License 2.0 |
src/main/kotlin/org/bloqly/machine/model/TransactionType.kt | abaracadaor | 147,365,768 | false | null | package org.bloqly.machine.model
enum class TransactionType {
SET, // sets the data if key is not associated wit contract
CALL, // expects contract to be created before with CALL
CREATE, // creates contract
DESTROY, // destroys contract
UPDATE // updates contract, expects contract to be present
}
| 1 | null | 1 | 1 | cfe046f6d93ebc51d12b2fecdbf0215181152a03 | 319 | bloqly | MIT License |
app/versions/media session/src/main/java/com/musicplayer/aow/delegates/scheduler/JobServices.kt | ilemobayo | 138,568,151 | false | null | package com.musicplayer.aow.scheduler
import android.app.job.JobParameters
import android.app.job.JobService
import android.content.Intent
import com.musicplayer.aow.splashscreen.SplashScreen
/**
* Created by Arca on 12/4/2017.
*/
class JobServices : JobService() {
override fun onStartJob(params: JobParameter... | 0 | null | 0 | 2 | bc50a7cace0367b5bcffcd92008f7dbe2727da96 | 702 | KStudio | MIT License |
src/main/kotlin/icu/windea/pls/core/documentation/DocumentationBuilder.kt | DragonKnightOfBreeze | 328,104,626 | false | {"Kotlin": 3443954, "Java": 164903, "Lex": 42127, "HTML": 23760, "Shell": 2822} | package icu.windea.pls.core.documentation
import com.intellij.openapi.util.*
import icu.windea.pls.core.util.*
class DocumentationBuilder : UserDataHolderBase() {
val content: StringBuilder = StringBuilder()
fun append(string: String) = apply { content.append(string) }
fun append(value: Any?) = ... | 12 | Kotlin | 5 | 41 | 99e8660a23f19642c7164c6d6fcafd25b5af40ee | 497 | Paradox-Language-Support | MIT License |
common/src/main/kotlin/com/oneliang/ktx/util/logging/AbstractLogger.kt | oneliang | 263,037,681 | false | {"Java": 3339922, "Kotlin": 773052} | package com.oneliang.ktx.util.logging
import com.oneliang.ktx.Constants
import com.oneliang.ktx.util.common.nullToBlank
import com.oneliang.ktx.util.logging.Logger.Level
/**
* constructor
*
* @param level
*/
abstract class AbstractLogger(val level: Level) : Logger {
companion object {
private const ... | 0 | Java | 1 | 1 | b3f3a36b09a32a0fc17389d708bd9bd4ea92c178 | 4,728 | util-kotlin | Apache License 2.0 |
example/android/app/src/main/kotlin/com/example/example/MainActivity.kt | q876625596 | 243,489,035 | false | null | package com.example.example
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
class MainActivity: FlutterActivity() {
}
| 3 | Dart | 11 | 30 | 30de90156e7f6212fbac3ad1c69d3f0f506f3e45 | 210 | kumi_popup_window | MIT License |
sample/src/main/java/com/spendesk/grapes/samples/home/fragments/list/ColorsAdapter.kt | Spendesk | 364,042,096 | false | {"Kotlin": 630052} | package com.spendesk.grapes.samples.home.fragments.list
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.spendesk.grapes.samples.R
import com.spendesk.grapes.samples.components.SectionTitleTextView
import com.spendesk.grapes.samples.components.list.Colo... | 1 | Kotlin | 5 | 9 | 51a1ee83b8eb615bc1e28d020d3b5fbddf0dbae3 | 2,810 | grapes-android | Apache License 2.0 |
shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/ui/components/Party.kt | JetBrains | 108,403,211 | false | {"Kotlin": 337688, "HTML": 8498, "JavaScript": 6175, "Ruby": 1674, "Swift": 794, "Shell": 226, "Procfile": 58} | package org.jetbrains.kotlinconf.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundat... | 25 | Kotlin | 313 | 2,991 | 6780a5d6082e788b4ed62439a3ed331c972663c4 | 2,396 | kotlinconf-app | Apache License 2.0 |
library/src/test/java/com/github/sharkaboi/appupdatechecker/FDroidTest.kt | Sharkaboi | 388,470,290 | false | {"Kotlin": 55771} | package com.github.sharkaboi.appupdatechecker
import com.sharkaboi.appupdatechecker.AppUpdateChecker
import com.sharkaboi.appupdatechecker.models.InvalidPackageNameException
import com.sharkaboi.appupdatechecker.models.PackageNotFoundException
import com.sharkaboi.appupdatechecker.models.UpdateResult
import com.sharka... | 0 | Kotlin | 1 | 3 | 2edec5b593b48e53f5bf24dd4388c696545cd181 | 4,981 | AppUpdateChecker | MIT License |
mvi/src/test/java/com/garon/mvi/VehicleListTest.kt | arongeorgel | 165,878,355 | false | null | package com.garon.mvi
import com.garon.mvi.navigation.VehicleListNavigator
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import okhttp3.MediaType
import okhttp3.ResponseBody
import org.junit.Before
import o... | 0 | Kotlin | 0 | 0 | f433810c0b3bd1b845ad88910a7fdad5b9bc3dd5 | 6,561 | HotWheels | Apache License 2.0 |
common/src/main/kotlin/net/spaceeye/vmod/toolgun/modes/eventsHandling/RopeCEH.kt | SuperSpaceEye | 751,999,893 | false | {"Kotlin": 721124, "Java": 16898} | package net.spaceeye.vmod.toolgun.modes.eventsHandling
import dev.architectury.event.EventResult
import net.spaceeye.vmod.toolgun.ClientToolGunState
import net.spaceeye.vmod.toolgun.modes.ClientEventsHandler
import net.spaceeye.vmod.toolgun.modes.state.RopeMode
import net.spaceeye.vmod.toolgun.modes.util.PlacementMode... | 2 | Kotlin | 8 | 5 | dfdf5b8807350284d1b1169e0b408b47ebe08d73 | 1,367 | VMod | MIT License |
android/quest/src/test/java/org/smartregister/fhircore/quest/data/register/RegisterPagingSourceTest.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021-2023 Ona Systems, 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 o... | 135 | null | 22 | 40 | b4568a02151a95a5a77cd9ad8114a58ff9963176 | 2,695 | fhircore | Apache License 2.0 |
src/main/kotlin/iner/PetIner.kt | AdorableParker | 837,836,794 | false | {"Kotlin": 24283} | package iner
/** 天空伊纳 */
open class PetIner(count: Int) : Iner(count) {
override val name: String = "天空伊纳"
companion object {
var extraPrints: Int = 0
}
override val value: Int = 1
get() = field + extraPrints
override fun setExtraPrints(value: Int) {
extraPrints += value... | 0 | Kotlin | 0 | 0 | e71ee72082bbe4d761e72c357614f2e8a6cda951 | 1,178 | Arknights-Gemstone-engraving-Calculator | Apache License 2.0 |
src/main/kotlin/com/nazonazo_app/shit_forces/ShitforcesApplication.kt | ShopOne | 326,353,698 | false | null | package com.nazonazo_app.shit_forces
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
@SpringBootApplication
@EnableScheduling
class ShitforcesApplication
fun main(args: Array<String>) ... | 47 | TypeScript | 13 | 28 | 642c42e9bf52c764fe392aca39c035bdb6e987ac | 373 | Shitforces | MIT License |
birthday/src/main/java/com/ternaryop/photoshelf/birthday/service/BirthdayJob.kt | dafi | 11,529,505 | false | {"Kotlin": 525512} | package com.ternaryop.photoshelf.birthday.service
import android.app.job.JobParameters
import android.content.Context
import androidx.preference.PreferenceManager
import com.ternaryop.photoshelf.birthday.util.lastBirthdayShowTime
import com.ternaryop.photoshelf.birthday.util.notifyBirthday
import com.ternaryop.photosh... | 0 | Kotlin | 2 | 1 | a42b09c4c8b3e1d91d7882f3e7e0ce2fd6ed57f2 | 1,942 | photoshelf | MIT License |
2023/src/main/kotlin/net/daams/solutions/3b.kt | Michiel-Daams | 573,040,288 | false | {"Kotlin": 39925, "Nim": 34690} | package net.daams.solutions
import net.daams.Solution
class `3b`(input: String): Solution(input) {
val gears: MutableList<List<Int>> = mutableListOf()
var splitInput: List<String> = listOf()
override fun run() {
val gearRatios: MutableList<Int> = mutableListOf()
splitInput = input.split(... | 0 | Kotlin | 0 | 0 | f7b2e020f23ec0e5ecaeb97885f6521f7a903238 | 2,068 | advent-of-code | MIT License |
app/src/main/java/com/example/themoviedbapp/base/repository/GeneralRepository.kt | AliAzaz | 371,177,026 | false | null | package com.example.themoviedbapp.base.repository
import com.example.themoviedbapp.di.auth.AuthApi
import com.example.themoviedbapp.model.MoviesList
import com.example.themoviedbapp.model.MoviesResult
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import javax.inject.Inject
/**
* @author Ali... | 0 | Kotlin | 0 | 1 | 93e696081a0fe763d20f712f0207ad1b3ed792d5 | 1,566 | TheMovieDBApp | MIT License |
blockball-bukkit-plugin/src/main/java/com/github/shynixn/blockball/bukkit/logic/business/commandexecutor/menu/DoubleJumpPage.kt | yoloyolicko | 184,437,057 | true | {"Kotlin": 1179158, "Java": 99604, "Shell": 2544} | package com.github.shynixn.blockball.bukkit.logic.business.commandexecutor.menu
import com.github.shynixn.blockball.api.persistence.entity.Arena
import com.github.shynixn.blockball.bukkit.logic.business.extension.ChatBuilder
import org.bukkit.entity.Player
/**
* Created by Shynixn 2018.
* <p>
* Version 1.2
* <p>
... | 0 | Kotlin | 0 | 0 | d64bdbb78fc730cfb52e7cb0d5c55808e69370ac | 5,498 | BlockBall | Apache License 2.0 |
src/commonTest/kotlin/com.adamratzman/spotify/Common.kt | Xaseron | 324,819,514 | true | {"Kotlin": 630854} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2020; Original author: Adam Ratzman */
package com.adamratzman.spotify
val _clientId = getEnvironmentVariable("SPOTIFY_CLIENT_ID")
val _clientSecret = getEnvironmentVariable("SPOTIFY_CLIENT_SECRET")
val _redirectUri = getEnvironmentVariable("SPOTIFY_REDIRECT_URI")
... | 0 | null | 0 | 0 | 90e2879dce3111ef099d3cae5eec7e00d3f7d656 | 1,176 | spotify-web-api-kotlin | MIT License |
composeApp/src/commonMain/kotlin/com/calvin/box/movie/ui/screens/reels/ReelsContentView.kt | lhzheng880828 | 834,021,637 | false | {"Kotlin": 1065610, "Java": 714479, "JavaScript": 198922, "Shell": 3042, "Ruby": 2141, "Batchfile": 1261, "Swift": 1155, "HTML": 334, "CSS": 102} | package com.calvin.box.movie.ui.screens.reels
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.calvin.box.movie.media.model.PlayerConfig
import com.calvin.box.movie.media.ui.reel.ReelsPlayerView
import com.calvin.box.movie.m... | 0 | Kotlin | 1 | 2 | 7ba60efb5e9706602a1439fab720bc5e845388bd | 977 | MovieBox | Apache License 2.0 |
app/src/main/java/com/example/merchant/auth/LoginActivity.kt | Naphtali-cpu | 414,340,868 | false | null | package com.example.merchant.auth
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
import com.example.merchant.R
import com.example.merchant.api.RetrofitClient
import com.example.merch... | 0 | Kotlin | 0 | 0 | ceff905deb0e681c322ce20bb702e10880306bb1 | 3,265 | Clerk-Inventory | The Unlicense |
app/src/main/java/de/schwerin/stoppCoronaDE/screens/reporting/reportStatus/ReportingStatusController.kt | Mandarin-Medien | 269,321,452 | false | null | package at.roteskreuz.stopcorona.screens.reporting.reportStatus
import android.content.Context
import android.text.SpannableString
import android.text.SpannableStringBuilder
import at.roteskreuz.stopcorona.R
import at.roteskreuz.stopcorona.constants.Constants.Misc.EMPTY_STRING
import at.roteskreuz.stopcorona.model.ent... | 0 | Kotlin | 0 | 1 | a8a489c25b55cce8b14d60b9afa3fb44cfecab43 | 8,471 | stopp-corona-de-android | Apache License 2.0 |
kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/ExecLlvm.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin
import groovy.lang.Closure
import org.gradle.api.Action
import org.gradle.api.Pr... | 34 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 1,376 | kotlin | Apache License 2.0 |
system/src/main/kotlin/cn/soybean/system/application/query/tenant/TenantQuery.kt | soybeanjs | 467,859,867 | false | {"Kotlin": 274916, "HTML": 244772, "Python": 958, "Makefile": 571} | package cn.soybean.system.application.query.tenant
import cn.soybean.shared.application.query.Query
import io.quarkus.panache.common.Page
import io.quarkus.panache.common.Parameters
data class TenantByNameQuery(val name: String) : Query
data class PageTenantQuery(val query: String, val params: Parameters, val page: P... | 4 | Kotlin | 87 | 204 | a819bb69aea28bdfb4c4a44994eef41db3fdf9bc | 332 | soybean-admin-java | MIT License |
app/src/main/java/com/ofalvai/bpinfo/model/RouteType.kt | ofalvai | 61,564,061 | false | null | /*
* Copyright 2016 <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 ... | 1 | null | 2 | 9 | 8c4231e43c976aa36a9e48776e8167f064195011 | 788 | BPInfo | Apache License 2.0 |
kotlin-typescript/src/main/generated/typescript/getSyntheticTrailingComments.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
import kotlinx.js.ReadonlyArray
external fun getSyntheticTrailingComments(node: Node): ReadonlyArray<SynthesizedComment>?
| 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 236 | kotlin-wrappers | Apache License 2.0 |
bbfgradle/tmp/results/diffABI/rmhadij_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM , JVM -Xuse-ir
// FILE: tmp0.kt
import kotlin.coroutines.*
import kotlin.collections.*
import kotlin.reflect.*
import kotlin.sequences.*
class M {
operator fun Int.component1():Int = TODO()
operator fun Int.component2():Int = TODO()
}
fun M.doTest(l : Array<Int>): String =TODO()
fun box():... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 4,200 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/ee/taltech/kilpkonn/sportsapp/component/spinner/RotationMode.kt | kilpkonn | 309,102,640 | false | null | package ee.taltech.kilpkonn.sportsapp.component.spinner
class RotationMode {
companion object {
const val NORTH_UP = "North Up"
const val USER_CHOSEN_UP = "Free rotate"
const val DIRECTION_UP = "Direction up"
val OPTIONS = arrayOf(
NORTH_UP,
USER_CHOS... | 0 | Kotlin | 1 | 0 | bf15893010ecfc41f29bc412b124c58789814102 | 373 | SportsApp | Creative Commons Zero v1.0 Universal |
profile/profile-core/src/main/kotlin/co/nilin/opex/profile/core/data/profile/KycLevel.kt | opexdev | 370,411,517 | false | {"Kotlin": 1498213, "HTML": 43145, "Java": 19673, "PLpgSQL": 17262, "Shell": 7915, "Dockerfile": 5680, "HCL": 823} | package co.nilin.opex.profile.core.data.profile
enum class KycLevel {
Level1, Level2,
}
| 26 | Kotlin | 14 | 23 | 38cb89e3361c4cb7476f68e357f588865f48ee6f | 94 | core | MIT License |
miner-headless/src/main/kotlin/RawSampleWriter.kt | JetBrains-Research | 389,619,965 | false | null | import com.google.gson.Gson
import org.jetbrains.research.commentupdater.dataset.RawDatasetSample
import java.io.File
import java.io.FileWriter
import java.io.Writer
class RawSampleWriter(output: File) {
// Saving data
private val outputPath: String = output.path
private lateinit var projectFile: File
... | 0 | Kotlin | 0 | 0 | cf97651d052be31e535cb96b2456203620d20a10 | 949 | MethodUpdateMiner | MIT License |
analysis/symbol-light-classes/tests/org/jetbrains/kotlin/light/classes/symbol/base/service/symbolLightClassTestUtils.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.light.classes.symbol.base.service
import com.intellij.psi.PsiClass
import com.in... | 166 | null | 5771 | 46,772 | bef0946ab7e5acd5b24b971eca532c43c8eba750 | 1,804 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/mypraticecomposedictionary/component/SearchTextField.kt | vytran0710 | 636,748,040 | false | null | package com.example.mypraticecomposedictionary.component
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import a... | 0 | Kotlin | 0 | 0 | 252be66eefc53e55f3c0de141afe9bf8689a28bb | 2,065 | Practice-Compose-Dictionary-App | MIT License |
misk/src/main/kotlin/misk/moshi/time/OffsetDateTimeAdapter.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.moshi.time
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import java.time.format.DateTimeFormatter
object OffsetDateTimeAdapter {
@ToJson
fun toJson(value: java.time.OffsetDateTime?): String? {
return when {
value != null -> DateTimeFormatter.ISO_OFFSET_DATE_TIME.forma... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 580 | misk | Apache License 2.0 |
kmp-composeuiviewcontroller-gradle-plugin/src/main/kotlin/com/github/guilhe/kmp/composeuiviewcontroller/gradle/ComposeUiViewControllerParameters.kt | GuilhE | 687,438,692 | false | {"Kotlin": 74799, "Shell": 2692} | package com.github.guilhe.kmp.composeuiviewcontroller.gradle
/**
* Gradle extension to configure the plugin parameters
* @property iosAppFolderName Name of the folder containing the iosApp in the root's project tree
* @property iosAppName Name of the iOS project (name.xcodeproj)
* @property targetName Name of the ... | 0 | Kotlin | 2 | 70 | 5822065c81eb21e22d2cef7b6d9f00095a1d48df | 2,096 | KMP-ComposeUIViewController | Apache License 2.0 |
app/src/main/java/com/admin/ozieats_app/ui/referFriend/ReferFriendViewModel.kt | chetan532 | 602,176,592 | false | {"Kotlin": 547623, "Java": 49451} | package com.admin.ozieats_app.ui.referFriend
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.util.Log
import android.view.View
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.admin.ozieats_app.BuildCon... | 0 | Kotlin | 0 | 0 | 4fd3704a83c8e3ad7026bfda167c9b9b654384b1 | 1,380 | ozieats | MIT License |
tmp/arrays/youTrackTests/377.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-40757
// foo.kt
import kotlin.time.Duration
import kotlin.time.ExperimentalTime
//@ExperimentalTime
@OptIn(ExperimentalTime::class)
class Foo {
fun foo(d: Duration) {
}
}
// client.kt
fun main() {
Foo() // no error
}
| 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 254 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/gno/erbs/erbs/stats/model/aesop/item/Item.kt | GNO-byte | 385,933,393 | false | {"Kotlin": 228643} | package com.gno.erbs.erbs.stats.model.aesop.item
data class Item(
val ItemCategory: String?,
val ItemType: String?,
val Name: String?
) | 0 | Kotlin | 0 | 1 | d29384afc19fd4829215a985226320bbb0f2bd50 | 148 | ERBSStats | Apache License 2.0 |
app/src/main/java/com/github/x2bng/todo/bean/Task.kt | x2bng | 360,753,227 | false | null | package com.github.x2bng.todo.bean
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "task")
data class Task(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
var id: Int = 0,
@ColumnInfo(name = "... | 0 | Kotlin | 0 | 0 | 6ef4e911dcc6b5176b6c1255a561fc1d8057541c | 699 | to-do | Apache License 2.0 |
app/src/main/java/io/github/chronosx88/radium/ChatListActivity.kt | cadmium-im | 350,859,787 | false | {"Java": 116704, "Kotlin": 11485} | package io.github.chronosx88.radium
import android.os.Bundle
import android.view.MenuItem
import androidx.activity.viewModels
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.core.view.GravityCompat
import andro... | 1 | null | 1 | 1 | 31d04e92adbe92faa79c8ea0301f38e67b256a53 | 2,638 | radium-android | MIT License |
projects/core/src/main/kotlin/site/siredvin/turtlematic/xplat/ModPlatform.kt | SirEdvin | 485,936,121 | false | {"Kotlin": 329964, "Java": 8724} | package site.siredvin.turtlematic.xplat
import site.siredvin.peripheralium.xplat.BaseInnerPlatform
import site.siredvin.peripheralium.xplat.BasePlatform
import site.siredvin.peripheralium.xplat.ModInformationTracker
object ModPlatform : BasePlatform {
private var impl: BaseInnerPlatform? = null
private val in... | 6 | Kotlin | 2 | 11 | e2a282b437cbb0b0131a8e2e95f734dc64b3d558 | 783 | Turtlematic | MIT License |
aws-runtime/aws-http/common/src/aws/sdk/kotlin/runtime/http/interceptors/UnsupportedSigningAlgorithmInterceptor.kt | awslabs | 121,333,316 | false | {"Kotlin": 1076968, "Smithy": 8546, "TypeScript": 1488, "JavaScript": 1134, "Dockerfile": 391} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.sdk.kotlin.runtime.http.interceptors
import aws.sdk.kotlin.runtime.InternalSdkApi
import aws.smithy.kotlin.runtime.auth.awssigning.AwsSigningAlgorithm
import aws.smithy.kotlin.runtime.auth.aw... | 79 | Kotlin | 49 | 407 | 287408211f193624d37678d66b0f31f457017d08 | 1,509 | aws-sdk-kotlin | Apache License 2.0 |
data/remote/src/main/java/com/chocolate/remote/datasource/TopicFirebaseDataSource.kt | team-chocolate-cake | 669,924,259 | false | {"Kotlin": 522388} | package com.chocolate.remote.datasource
import com.chocolate.entities.util.FireBaseException
import com.chocolate.remote.util.Constants
import com.chocolate.remote.util.tryToExecuteSuspendCall
import com.chocolate.repository.datasource.remote.TopicDataSource
import com.chocolate.repository.model.dto.TopicDto
import co... | 1 | Kotlin | 2 | 4 | 8441d97fd75fcbb68ee25934022d914bc7fcc36d | 2,195 | Teamix | MIT License |
feature/sample/pkg/src/main/java/com/bsnl/sample/pkg/feature/data/dao/AppDataBase.kt | ltftianyahai | 344,713,873 | true | {"Kotlin": 374233, "Java": 211601, "Groovy": 52324} | package com.bsnl.sample.pkg.feature.data.dao
import androidx.room.Database
import androidx.room.RoomDatabase
import com.bsnl.sample.pkg.feature.data.entity.PokeItemEntity
import com.bsnl.sample.pkg.feature.data.model.PokemonListResponse
/**
* @author : LeeZhaoXing
* @date : 2020/11/19
* @desc :
*/
@Database(
... | 0 | null | 0 | 0 | fa1055ecfe656c0dd881722770509bb206f2db6f | 493 | scaffold | Apache License 2.0 |
src/main/kotlin/tokyo/aieuo/mineflow/flowItem/action/entity/CreateHumanEntity.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.flowItem.action.entity
import cn.nukkit.nbt.tag.*
import tokyo.aieuo.mineflow.entity.MineflowHuman
import tokyo.aieuo.mineflow.flowItem.FlowItem
import tokyo.aieuo.mineflow.flowItem.FlowItemExecutor
import tokyo.aieuo.mineflow.flowItem.FlowItemIds
import tokyo.aieuo.mineflow.flowItem.base.... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 5,579 | Mineflow-Kotlin | MIT License |
network/src/main/java/com/wojdor/network/ServiceGenerator.kt | wojciechkryg | 221,742,081 | false | null | package com.wojdor.network
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
class ServiceGenerator(private val baseUrl: String) {
private val retrofit by lazy {
Retrofit.Builder()
.baseUrl(baseUrl)
... | 0 | Kotlin | 0 | 0 | 4303f994da36bdf4b9821fdaef7ad9b277bcf6a8 | 553 | revolut-recruitment-task | Apache License 2.0 |
cinco/src/main/kotlin/ca/allanwang/discord/bot/cinco/CincoBotModule.kt | AllanWang | 293,650,128 | false | null | package ca.allanwang.discord.bot.cinco
import ca.allanwang.discord.bot.base.CommandHandlerBot
import ca.allanwang.discord.bot.firebase.FirebaseModule
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import javax.inject.Singleton
@Module(includes = [FirebaseModule::class, CincoModule::cl... | 6 | Kotlin | 2 | 2 | d0715af30a1dc8cb883a79fbc7fcbca5ed482805 | 447 | Discord-Bot | Apache License 2.0 |
build-logic/convention/src/main/kotlin/JvmLibraryConventionPlugin.kt | joaomanaia | 443,198,327 | false | null | import com.infinitepower.newquiz.configureKotlinJvm
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.withType
class JvmLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
... | 0 | Kotlin | 14 | 99 | 4741a80f1db8073c7d33499523117b446489bbf0 | 560 | newquiz | Apache License 2.0 |
software-design/model-view-controller/src/main/kotlin/com/github/nothingelsematters/sd/mvc/dao/ToDoListDao.kt | nothingelsematters | 135,926,684 | false | {"Jupyter Notebook": 7400788, "Java": 512017, "C++": 378834, "Haskell": 261217, "Kotlin": 251383, "CSS": 45551, "Vue": 37772, "Rust": 34636, "HTML": 22859, "Yacc": 14912, "PLpgSQL": 10573, "JavaScript": 9741, "Makefile": 8222, "TeX": 7166, "FreeMarker": 6855, "Python": 6708, "OCaml": 5977, "Nix": 5059, "ANTLR": 4802, "... | package com.github.nothingelsematters.sd.mvc.dao
import com.github.nothingelsematters.sd.mvc.model.Task
import com.github.nothingelsematters.sd.mvc.model.ToDoList
interface ToDoListDao {
fun add(name: String): ToDoList
fun getAll(): List<ToDoList>
fun getById(id: Int): ToDoList?
fun delete(id: Int... | 1 | Jupyter Notebook | 3 | 5 | d442a3d25b579b96c6abda13ed3f7e60d1747b53 | 448 | university | Do What The F*ck You Want To Public License |
app/src/main/java/com/melodie/parotia/ui/list/diff/UserDiff.kt | gejiaheng | 284,195,510 | false | null | package com.melodie.parotia.ui.list.diff
import androidx.recyclerview.widget.DiffUtil
import com.melodie.parotia.model.User
object UserDiff : DiffUtil.ItemCallback<User>() {
override fun areItemsTheSame(oldItem: User, newItem: User): Boolean =
oldItem.id == newItem.id
override fun areContentsTheSame(... | 0 | Kotlin | 1 | 2 | f19459dac17f35cc26af5379764c292fef42be91 | 390 | Parotia | Apache License 2.0 |
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/SplashActivity.kt | motomoto7 | 210,770,682 | true | {"Kotlin": 119290} | package com.simplemobiletools.filemanager.pro.activities
import android.content.Intent
import com.simplemobiletools.commons.activities.BaseSplashActivity
class SplashActivity : BaseSplashActivity() {
override fun initActivity() {
if (intent.action == Intent.ACTION_VIEW && intent.data != null) {
... | 0 | Kotlin | 0 | 0 | 7484d2db7a580f48c65d1085a187663a09eb78e4 | 616 | Simple-File-Manager | Apache License 2.0 |
compiler/tests/org/jetbrains/jet/lang/resolve/lazy/lazyResolveTestUtil.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | /*
* Copyright 2010-2014 JetBrains s.r.o.
*
* 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 agre... | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 2,094 | kotlin | Apache License 2.0 |
src/main/kotlin/com/grappenmaker/rawinput/MouseHelperHook.kt | 770grappenmaker | 809,027,798 | false | {"Kotlin": 4411} | package com.grappenmaker.rawinput
import net.weavemc.api.Hook
import net.weavemc.internals.asm
import net.weavemc.internals.internalNameOf
import net.weavemc.internals.named
import org.objectweb.asm.Opcodes.RETURN
import org.objectweb.asm.tree.ClassNode
import org.objectweb.asm.tree.MethodInsnNode
import org.objectweb... | 0 | Kotlin | 0 | 0 | 2b10cd5249e1402c7d3fd0489285ba372139a7a4 | 1,811 | AsyncRawInput | The Unlicense |
app/src/main/java/com/arjun/bluffer/utils/HelperStrings.kt | ArjunJadeja | 498,802,049 | false | null | package com.arjun.bluffer.utils
class HelperStrings {
val aboutGame =
"Bluffer is a two-player game in which one player looks at some weird image on the screen and explains it to the other player. The other player has to guess whether it is true or not."
val rulesList = "1. Click PLAY to start the ga... | 1 | Kotlin | 0 | 0 | cc299dc9b712db3b9793a0c19633dd85d91197cc | 708 | Bluffer | MIT License |
jvm/physical-plan/src/test/kotlin/CastExpressionTest.kt | houqp | 262,223,654 | false | null | package org.ballistacompute.physical
import org.ballistacompute.datatypes.*
import org.ballistacompute.fuzzer.Fuzzer
import org.ballistacompute.physical.expressions.*
import org.junit.Test
import org.junit.jupiter.api.TestInstance
import kotlin.test.assertEquals
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
class ... | 1 | null | 1 | 1 | 7011dec497090403ae861b6ce78ec48349755090 | 1,513 | ballista | Apache License 2.0 |
cache-x/src/coroutine/java/com/aqrlei/cachex/CacheExt.kt | AqrLei | 288,323,505 | false | null | package com.aqrlei.cachex
import android.os.Process
import com.aqrlei.cachex.lru.memory.ActiveResource
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.coroutines.SupervisorJob
import kotlinx.coro... | 0 | Kotlin | 0 | 0 | 97736c830d01c9b5ead753cf6bc7586fc771afe4 | 3,703 | Cache-X | Apache License 2.0 |
domain/src/main/kotlin/br/com/devhernand/starwars/domain/usecases/MainUseCaseImpl.kt | hernandazevedo | 115,222,171 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java": 2, "XML": 31, "Kotlin": 37} | package br.com.devhernand.starwars.domain.usecases
import br.com.devhernand.starwars.domain.Product
import br.com.devhernand.starwars.domain.repository.ProductRepository
import io.reactivex.Single
import javax.inject.Inject
class MainUseCaseImpl @Inject constructor (val productRepository: ProductRepository) : MainUseC... | 1 | null | 1 | 1 | fdfc3feb00b298e45e905c1b017f943858a86237 | 439 | starwars-mvvm | Apache License 2.0 |
app/src/main/kotlin/com/dvinc/workouttimer/presentation/di/module/ExerciseModule.kt | morristech | 155,107,709 | true | {"Kotlin": 67903, "Java": 1132} | /*
* Copyright (c) 2018 by Denis Verentsov (decsent@yandex.ru)
* All rights reserved.
*/
package com.dvinc.workouttimer.presentation.di.module
import com.dvinc.workouttimer.data.mapper.exercise.ExerciseDataMapper
import com.dvinc.workouttimer.data.mapper.exercise.ExerciseMapper
import com.dvinc.workouttimer.data.r... | 0 | Kotlin | 0 | 0 | e8a11f9394e2ede6b26737083e5d2793d08b426a | 822 | WorkoutTimer | MIT License |
samples/android/src/main/java/cafe/adriel/voyager/sample/bottomSheetNavigation/BackScreen.kt | adrielcafe | 387,613,592 | false | null | package cafe.adriel.voyager.sample.bottomSheetNavigation
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
impo... | 31 | Kotlin | 39 | 945 | d7932b28cf8c2545fcd52c3883467a648f9d2888 | 1,036 | voyager | MIT License |
app/src/main/java/com/studyup/utils/State.kt | UTN-FRBA-Mobile | 544,243,563 | false | {"Kotlin": 120176} | package com.studyup.utils
import com.studyup.api.Team
object State {
var newTeam: Team = Team()
fun cleanTeam(){
this.newTeam = Team()
}
} | 0 | Kotlin | 0 | 1 | d8453a7edf5653ff8b2fa7679b05662be3099c56 | 160 | StudyUp | MIT License |
core/src/main/kotlin/com/maltaisn/cardgame/widget/card/CardContainer.kt | maltaisn | 766,170,284 | false | {"Kotlin": 626803, "Java": 13145} | /*
* Copyright 2019 Nicolas Maltais
*
* 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 | Kotlin | 0 | 0 | e459b752e2eb2b9fd0df247570de009067e5bc42 | 20,207 | card-game-base | Apache License 2.0 |
app/src/main/java/com/antonioleiva/bandhookkotlin/ui/screens/main/MainActivity.kt | mabdurrahman | 82,298,408 | true | {"Kotlin": 200342} | /*
* Copyright (C) 2015 <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... | 0 | Kotlin | 0 | 0 | 27e8633d1ca98e885825a97a97e7ef7db627ccc9 | 3,759 | Bandhook-Kotlin | Apache License 2.0 |
app/src/main/java/com/antonioleiva/bandhookkotlin/ui/screens/main/MainActivity.kt | mabdurrahman | 82,298,408 | true | {"Kotlin": 200342} | /*
* Copyright (C) 2015 <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... | 0 | Kotlin | 0 | 0 | 27e8633d1ca98e885825a97a97e7ef7db627ccc9 | 3,759 | Bandhook-Kotlin | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/workerThreads/workerThreads.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
@file:JsModule("node:worker_threads")
package node.workerThreads
/**
* The `node:worker_threads` module enables the use of threads that execute
* JavaScript in parallel. To access it:
*
* ```js
* const worker = require('node:worker_threads');
* ```
*
* Wor... | 40 | Kotlin | 176 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 2,329 | kotlin-wrappers | Apache License 2.0 |
kotlin-insight-client/kotlin-insight-client-http/src/main/kotlin/com/linkedplanet/kotlininsightclient/http/model/InsightObjectTypeRestApiResponseObjects.kt | linked-planet | 602,453,377 | false | {"Kotlin": 522618, "Java": 744, "Shell": 499} | /*-
* #%L
* kotlin-insight-client-api
* %%
* Copyright (C) 2022 - 2023 linked-planet GmbH
* %%
* 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/... | 0 | Kotlin | 0 | 1 | ca29ed2cb8f0e6d2f3c876cade6b5b54c797c0f5 | 1,655 | kotlin-atlassian-client | Apache License 2.0 |
app/src/main/java/com/bsimsek/githubreposearch/presentation/viewModel/GithubRepoSearchViewModel.kt | btsmsk | 245,391,267 | false | null | package com.bsimsek.githubreposearch.presentation.viewModel
import androidx.lifecycle.*
import com.bsimsek.githubreposearch.core.data.DataHolder
import com.bsimsek.githubreposearch.data.model.GithubRepo
import com.bsimsek.githubreposearch.domain.GetReposUseCase
import com.bsimsek.githubreposearch.domain.GithubRepoResp... | 0 | Kotlin | 0 | 0 | 79dd0a260f10c820324a21f13b0ae60110418b74 | 4,066 | github-repo-search | MIT License |
app/src/main/java/com/nan/xarch/constant/PageState.kt | huannan | 402,384,136 | false | {"Kotlin": 159680, "Java": 44920, "Shell": 79} | package com.nan.xarch.constant
import androidx.annotation.IntDef
@IntDef(PageState.NORMAL, PageState.LOADING, PageState.LOAD_ERROR, PageState.NO_NETWORK, PageState.EMPTY)
@Retention(AnnotationRetention.SOURCE)
annotation class PageState {
companion object {
const val NORMAL = 0
const val LOADING =... | 2 | Kotlin | 107 | 524 | cf64c7907fb47dab652a13ac341cc35aee0bf751 | 424 | XArch | Apache License 2.0 |
data/RF02385/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02385"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
4 to 9... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,326 | Rfam-for-RNArtist | MIT License |
src/main/kotlin/Main.kt | Urtix | 805,151,328 | false | {"Kotlin": 25192, "HTML": 10779, "Shell": 8294, "JavaScript": 5252, "CSS": 3780, "Batchfile": 3000} | import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
fun main() = runBlocking {
val tree = ThinBST<Int>()
coroutineScope {
launch {
for (i in 0..10) {
delay(50)
print... | 0 | Kotlin | 0 | 0 | 4c37f634770484d207fb5258bec93473535c1be3 | 788 | ParallelTree | MIT License |
src/test/kotlin/chat/willow/kale/irc/message/extension/monitor/rpl/RplEndOfMonListMessageTests.kt | WillowChat | 53,202,156 | false | null | package chat.willow.kale.irc.message.extension.monitor.rpl
import chat.willow.kale.core.message.IrcMessage
import chat.willow.kale.irc.prefix.Prefix
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Before
import org.junit.Test
class RplEndOfMonListMessageTests {
private la... | 0 | Kotlin | 2 | 7 | 39cb3da6df1864ff5c826b3379326f2f8ea57138 | 1,583 | Kale | ISC License |
src/systemtest/kotlin/de/unisaarland/cs/se/selab/systemtest/simulationtests/tasks/CollectGarbageTaskTest.kt | Atharvakore | 872,001,311 | false | {"Kotlin": 614544} | package de.unisaarland.cs.se.selab.systemtest.simulationtests.tasks
import de.unisaarland.cs.se.selab.systemtest.utils.ExampleSystemTestExtension
/**
* tests collect garbage task
* */
class CollectGarbageTaskTest : ExampleSystemTestExtension() {
override val description = "tests collect garbage task"
overri... | 0 | Kotlin | 0 | 0 | 00f5a18e7d4c695f9d5e93451da2f864ebe77151 | 798 | Save-The-Saardines | MIT License |
idea/testData/refactoring/rename/renameKotlinMethod/after/RenameKotlinMethod.kt | JakeWharton | 99,388,807 | false | null | package testing.rename
public open class C {
public fun second() = 1
}
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 76 | kotlin | Apache License 2.0 |
compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/Context.kt | krzema12 | 312,049,057 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.builder
import org.jetbrains.kotlin.fir.FirFunctionTarget
import org.jetbrai... | 34 | null | 2 | 24 | af0c7cfbacc9fa1cc9bec5c8e68847b3946dc33a | 2,630 | kotlin-python | Apache License 2.0 |
src/main/java/no/stunor/origo/eventorapi/data/EventRepository.kt | stunor92 | 763,985,971 | false | {"Kotlin": 188540, "Dockerfile": 595} | package no.stunor.origo.eventorapi.data
import com.google.api.core.ApiFuture
import com.google.cloud.firestore.QuerySnapshot
import com.google.firebase.cloud.FirestoreClient
import no.stunor.origo.eventorapi.model.event.Event
import org.springframework.stereotype.Repository
@Repository
class EventRepository {
pr... | 0 | Kotlin | 0 | 0 | 452d6357734e43c7c4d55de6a3add15ed0431805 | 1,034 | OriGo-EventorApi | MIT License |
link/src/main/java/com/stripe/android/link/account/LinkStore.kt | stripe | 6,926,049 | false | {"Kotlin": 13814299, "Java": 102588, "Ruby": 45779, "HTML": 42045, "Shell": 23905, "Python": 21891} | package com.stripe.android.link.account
import android.content.Context
import android.content.SharedPreferences
import androidx.annotation.RestrictTo
import androidx.core.content.edit
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
class LinkStore @Injec... | 88 | Kotlin | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 890 | stripe-android | MIT License |
src/main/kotlin/com/geovannycode/service/DefaultUserService.kt | Geovanny0401 | 619,379,523 | false | null | package com.geovannycode.service
import com.geovannycode.dto.ApiResult
import com.geovannycode.dto.ErrorCode
import com.geovannycode.dto.UserDto
import com.geovannycode.exception.InvalidInputException
import com.geovannycode.models.User
import com.geovannycode.repository.UserRepository
import org.slf4j.Logger
import o... | 0 | Kotlin | 0 | 0 | e07df25e1f4e7c230af4eb7b961cc89d8280e38c | 4,019 | ktor-banking | Apache License 2.0 |
educational-core/branches/211/src/com/jetbrains/edu/learning/marketplace/marketplaceUtils.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.marketplace
import com.intellij.ide.plugins.marketplace.MarketplaceRequests
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.updateSettings.impl.pluginsAdvertisement.PluginsAdvertiser
@Suppress("UnstableApiUsage")
fun getBuildNumberForRequests(): String =... | 0 | Kotlin | 36 | 95 | 44b4129080eafd8d006f91f3baabaca178901425 | 526 | educational-plugin | Apache License 2.0 |
widgets/src/commonMain/kotlin/dev/icerock/moko/widgets/core/utils/WebViewRedirectUrlHandler.kt | icerockdev | 218,209,603 | false | null | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.core.utils
import dev.icerock.moko.widgets.core.widget.WebViewWidget
internal class WebViewRedirectUrlHandler(
private val successRedirectConfig: WebViewWidget.RedirectConfig?... | 40 | Kotlin | 29 | 334 | 63ea65d622f702432a5b5d1f587ba0fb8a81f95e | 1,105 | moko-widgets | Apache License 2.0 |
core/src/main/kotlin/in/specmatic/core/Resolver.kt | sahilaug | 356,295,092 | false | null | package `in`.specmatic.core
import `in`.specmatic.core.pattern.*
import `in`.specmatic.core.value.StringValue
import `in`.specmatic.core.value.True
import `in`.specmatic.core.value.Value
sealed class KeyError
data class MissingKeyError(val name: String) : KeyError()
data class UnexpectedKeyError(val name: String) : ... | 0 | null | 0 | 1 | a9a7082d290e84a823668959e18904961df04d72 | 4,649 | specmatic | MIT License |
app/src/main/java/com/synrgy/wefly/data/api/login/LoginResponse.kt | WeFly-Team | 738,106,597 | false | {"Kotlin": 106789, "Ruby": 1042} | package com.synrgy.wefly.data.api.json.login
import com.google.gson.annotations.SerializedName
data class LoginResponse(
@SerializedName("access_token")
val accessToken: String?,
@SerializedName("refresh_token")
val refreshToken: String?,
val code: Int?,
val scope: String?,
@SerializedName... | 0 | Kotlin | 1 | 0 | 4aed50e35d18a74bc1e41a63558c7a66b569769d | 489 | Android | Apache License 2.0 |
src/test/kotlin/lt/markmerkk/mp3cutter/TimeUtilsParseTimeTest.kt | marius-m | 506,928,547 | false | null | package lt.markmerkk.mp3cutter
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import java.time.LocalTime
internal class TimeUtilsParseTimeTest {
@Test
fun valid() {
// Assemble
val rawTime = "01:41:30"
// Act
... | 0 | Kotlin | 0 | 0 | 97b10a969e668742a7b3aa9bb5679bcde10bbcaf | 1,293 | mp3cutter | Apache License 2.0 |
data/src/main/java/com/yablunin/shopnstock/data/repositories/FlagsApiRepository.kt | yabluninn | 702,962,028 | false | {"Kotlin": 126063} | package com.yablunin.shopnstock.data.repositories
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.yablunin.shopnstock.data.services.FlagsApiService
import com.yablunin.shopnstock.domain.repositories.FlagsRepository
class FlagsApiRepository(private val flagsApiService: FlagsApiService):... | 0 | Kotlin | 0 | 3 | eb1b9e2f0ceda62b0cc57173034b3186aef7e3e2 | 702 | shopnstock | MIT License |
core/src/com/lyeeedar/Systems/LightingSystem.kt | Lyeeedar | 83,986,995 | false | null | package com.lyeeedar.Systems
import com.badlogic.ashley.core.Family
import com.lyeeedar.Components.*
import com.lyeeedar.Level.World
import com.lyeeedar.Util.Colour
class LightingSystem(): AbstractSystem(Family.all(PositionComponent::class.java, LightComponent::class.java).get())
{
val temp: Colour = Colour()
over... | 0 | Kotlin | 3 | 12 | e8e58ab6d24cbfa25e40751b6b8f85139afe9129 | 2,034 | TheAbyssOfSouls | Apache License 2.0 |
app/src/androidTest/java/ru/iteco/fmhandroid/ui/AboutTest.kt | zaksignu | 605,002,602 | false | null | package ru.iteco.fmhandroid.ui
import android.content.Context
import android.content.Intent
import android.widget.EditText
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.platform.app.I... | 0 | Kotlin | 0 | 0 | 893da4ef9661997356c595174f89d67941ffe036 | 2,504 | qa_diploma_devel_ui | Apache License 2.0 |
visionforge-threejs/src/main/kotlin/info/laht/threekt/external/controls/TrackballControls.kt | SciProgCentre | 174,502,624 | false | {"Kotlin": 856546, "CSS": 913} | @file:Suppress(
"INTERFACE_WITH_SUPERCLASS",
"OVERRIDING_FINAL_MEMBER",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE",
"CONFLICTING_OVERLOADS",
"EXTERNAL_DELEGATION",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE"
)
@file:JsModule("three/examples/jsm/controls/TrackballControls.js")
@file:JsNonModule
package info.la... | 15 | Kotlin | 6 | 34 | fb12ca8902509914910e8a39c4e525bee5e3fd46 | 1,704 | visionforge | Apache License 2.0 |
app/src/main/java/com/breezefieldsaleszazuteam/features/photoReg/present/DsStatusListner.kt | DebashisINT | 764,590,562 | false | {"Kotlin": 14492459, "Java": 1022704} | package com.breezefieldsaleszazuteam.features.photoReg.present
import com.breezefieldsaleszazuteam.app.domain.ProspectEntity
import com.breezefieldsaleszazuteam.features.photoReg.model.UserListResponseModel
interface DsStatusListner {
fun getDSInfoOnLick(obj: ProspectEntity)
} | 0 | Kotlin | 0 | 0 | 92092de2b7eb7b11b03497b65e0f4ffec3b16c80 | 283 | TrusttelIndiaFSM | Apache License 2.0 |
ui/ui-platform/src/main/java/androidx/ui/core/pointerinput/MotionEventAdapter.kt | FYI-Google | 258,765,297 | false | null | /*
* Copyright 2019 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... | 0 | null | 1 | 6 | b9cd83371e928380610719dfbf97c87c58e80916 | 2,450 | platform_frameworks_support | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.