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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/testData/diagnostics/tests/extensions/additionalReceivers/functions/insideDeclaration.kt | shadrina | 171,863,726 | false | {"Markdown": 67, "Gradle": 700, "Gradle Kotlin DSL": 496, "Java Properties": 14, "Shell": 10, "Ignore List": 12, "Batchfile": 9, "Git Attributes": 7, "Protocol Buffer": 12, "Java": 6500, "Kotlin": 58783, "Proguard": 12, "XML": 1598, "Text": 11548, "INI": 178, "JavaScript": 265, "JAR Manifest": 2, "Roff": 212, "Roff Man... | class A {
fun h1() {}
}
class B {
fun h2() {}
}
fun B.foo() {
<!UNRESOLVED_REFERENCE!>h1<!>()
h2()
}
with<A> fun B.bar() {
h1()
h2()
}
| 1 | null | 1 | 1 | 3c8a1270722bce3bfef8205d265786fa0c1bb9c6 | 162 | kotlin | Apache License 2.0 |
src/test/java/tech/sirwellington/alchemy/arguments/assertions/GeolocationAssertionsTest.kt | SirWellington | 42,406,305 | false | null | /*
* Copyright © 2019. <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 w... | 4 | null | 1 | 2 | b5d9dd5e49ed811330ab38d5ae6edec661bb9faf | 2,393 | alchemy-arguments | Apache License 2.0 |
.kotlin_alpha/services/lex/src/main/kotlin/com/kotlin/lex/DeleteBot.kt | awsdocs | 66,023,605 | false | null | //snippet-sourcedescription:[DeleteBot.kt demonstrates how to delete an Amazon Lex conversational bot.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon Lex]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[06/25/2021]
//snippet-sourceauthor:[scmacdon - aws]
/*
... | 24 | null | 3179 | 4,473 | d52f77aafcaee1ab0b5d13005e4a029d53afd2a0 | 1,964 | aws-doc-sdk-examples | Apache License 2.0 |
src/main/kotlin/io/jopitel/kotlin/ncalc/hjCalcKotlinMain.kt | countrydev76 | 165,262,513 | false | {"Gradle": 18, "YAML": 2, "Shell": 2, "INI": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Java": 9, "Kotlin": 15, "C": 1, "Java Properties": 1, "JAR Manifest": 1, "XML": 10} | package io.jopitel.kotlin.ncalc
object hjCalcKotlinMain {
@JvmStatic
fun main(args: Array<String>) {
println("Hello, World! - kotlin")
}
} | 0 | Kotlin | 0 | 0 | ee0df11d7d46a1f351cf9f225fe6dc1cd19285e5 | 149 | ncalc-kotlin | MIT License |
src/main/kotlin/io/jopitel/kotlin/ncalc/hjCalcKotlinMain.kt | countrydev76 | 165,262,513 | false | {"Gradle": 18, "YAML": 2, "Shell": 2, "INI": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Java": 9, "Kotlin": 15, "C": 1, "Java Properties": 1, "JAR Manifest": 1, "XML": 10} | package io.jopitel.kotlin.ncalc
object hjCalcKotlinMain {
@JvmStatic
fun main(args: Array<String>) {
println("Hello, World! - kotlin")
}
} | 0 | Kotlin | 0 | 0 | ee0df11d7d46a1f351cf9f225fe6dc1cd19285e5 | 149 | ncalc-kotlin | MIT License |
local/src/main/java/com/pechuro/bsuirschedule/local/entity/education/DepartmentCached.kt | Ilyshka991 | 147,244,674 | false | null | package com.pechuro.bsuirschedule.local.entity.education
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "department")
data class DepartmentCached(
@PrimaryKey
@ColumnInfo(name = "id")
val id: Long,
@ColumnInfo(name = "nam... | 1 | Kotlin | 1 | 8 | 8e07557025ed64784821fe31f5e02c53c976e5f4 | 427 | BsuirSchedule | Apache License 2.0 |
httplibrary/src/main/java/com/sakuqi/httplibrary/engine/OkHttpEngine.kt | openJK-dev | 263,602,949 | false | null | package com.sakuqi.httplibrary.engine;
import com.sakuqi.httplibrary.ProgressCallback
import com.sakuqi.httplibrary.HttpRequest
import com.sakuqi.httplibrary.data.HttpMethod
import com.sakuqi.httplibrary.data.ResponseData
import com.sakuqi.httplibrary.request.FilRequestBody
import com.sakuqi.httplibrary.utils.RequestC... | 1 | null | 4 | 6 | c97373fc2213b80cad38ac7f177b20363463a7a0 | 5,510 | HttpAgent | Apache License 2.0 |
app/src/main/java/com/xsolla/android/storesdkexample/data/local/PrefManager.kt | xsolla | 233,092,015 | false | null | package com.xsolla.android.storesdkexample.data.local
import android.content.SharedPreferences
import androidx.core.content.edit
import androidx.preference.PreferenceManager
import com.xsolla.android.storesdkexample.App
object PrefManager {
private val preferences: SharedPreferences by lazy {
PreferenceMa... | 0 | Kotlin | 5 | 8 | b279d7c281bcadeb5cbba9ccc5372238221a8bfd | 762 | store-android-sdk | Apache License 2.0 |
notes/app/src/main/java/com/github/danishjamal104/notes/ui/Event.kt | DSC-Galgotias | 547,749,268 | false | null | package com.github.danishjamal104.notes.ui
interface Event<T> {
fun setEvent(event: T)
} | 1 | Java | 72 | 10 | 78d025801bb11983cca12b7e1766321d2bc19ac5 | 93 | Hacktoberfest2022 | MIT License |
login/src/main/java/br/com/mindset/login/presentation/LoginViewModel.kt | luangs7 | 275,694,397 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 9, "Batchfile": 1, "Git Attributes": 1, "Proguard": 7, "Kotlin": 162, "XML": 97, "JSON": 3, "Java": 1} | package br.com.mindset.login.presentation
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import br.com.mindbet.common.base.Resource
import br.com.mindbet.common.extension.toSingleEvent
import br.com.mindbet.common.local.SetLocalUserData
import br.com.mindbet.common.user.User
import br.co... | 1 | null | 1 | 1 | adffb2e30f6d2f678f7197277849e7aff86bac15 | 1,194 | Mindbet | MIT License |
app/src/main/java/ru/n1ks/f1dashboard/model/mapper.kt | sedmess | 370,713,429 | false | null | package ru.n1ks.f1dashboard.model
import java.nio.ByteBuffer
import java.nio.ByteOrder
object TelemetryPacketDeserializer {
private const val CarCount = 22
fun map(packet: ByteArray): TelemetryPacket<out TelemetryData> {
val buffer = ByteBuffer.wrap(packet)
buffer.order(ByteOrder.LITTLE_ENDI... | 0 | Kotlin | 0 | 0 | 949ac0e1143f5364681ae1f95d6f75e51d081614 | 12,170 | f1dashboard-android | MIT License |
bot/engine-jackson/src/test/kotlin/ActionVisibilityDeserializationTest.kt | theopenconversationkit | 84,538,053 | false | {"Kotlin": 6173880, "TypeScript": 1286450, "HTML": 532576, "Python": 376720, "SCSS": 79512, "CSS": 66318, "Shell": 12085, "JavaScript": 1849} | /*
* Copyright (C) 2017/2021 e-voyageurs technologies
*
* 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... | 163 | Kotlin | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 1,271 | tock | Apache License 2.0 |
winmdj-core/src/main/kotlin/com/github/danielchemko/winmdj/core/autoobject/stubs/StubEventImpl.kt | danielchemko | 774,741,943 | false | {"Kotlin": 284901} | package com.github.danielchemko.winmdj.core.autoobject.stubs
import com.github.danielchemko.winmdj.core.MdObjectMapper
import com.github.danielchemko.winmdj.core.autoobject.BaseWinMdStub
import com.github.danielchemko.winmdj.core.mdspec.CLRMetadataType
import com.github.danielchemko.winmdj.core.mdspec.Event
import co... | 0 | Kotlin | 0 | 0 | 0d2a72ee7ea6f0dc05803b06039a8ac8bfc0dbd0 | 2,991 | winmdj | MIT License |
src/main/kotlin/frc/chargers/controls/pid/SuperPIDController.kt | frc-5160-the-chargers | 497,722,545 | false | {"Kotlin": 438322, "Java": 56704} | package frc.chargers.controls.pid
import com.batterystaple.kmeasure.dimensions.AnyDimension
import com.batterystaple.kmeasure.quantities.Quantity
import edu.wpi.first.math.controller.PIDController
import frc.chargers.controls.FeedbackController
import frc.chargers.controls.SetpointSupplier
import frc.chargers.framewor... | 3 | Kotlin | 0 | 2 | ef0bca03f00901ffcc5508981089edced59f91aa | 4,644 | ChargerLib | MIT License |
StockMe/app/src/main/java/com/stockme/model/OrderPurchase.kt | UTN-FRBA-Mobile | 410,667,989 | false | {"Kotlin": 78098} | package com.stockme.model
import com.google.type.Date
data class OrderPurchase(val code: String,
val createdDate: String,
val admissionDate: String,
val supplier: String,
//val products: List<OrderProduct>,
) | 2 | Kotlin | 1 | 2 | 54607ba672768d2d64e4317ec38016d0e4e1c5ba | 308 | StockMe | MIT License |
domain/src/main/kotlin/io/petros/movies/domain/interactor/movie/LoadMoviesUseCase.kt | fattakbar | 240,550,626 | true | {"Kotlin": 135603} | package io.petros.movies.domain.interactor.movie
import io.petros.movies.domain.interactor.BaseUseCase
import io.petros.movies.domain.model.movie.MoviesResultPage
import io.petros.movies.domain.repository.movie.MoviesRepository
class LoadMoviesUseCase constructor(
private val moviesRepository: MoviesRepository
) ... | 0 | null | 0 | 0 | a484179575d6bfa61795550ab28c19af3577c091 | 738 | sample-code-movies | Apache License 2.0 |
andserver/src/main/java/com/angcyo/server/file/FileServerService.kt | angcyo | 229,037,684 | false | {"Kotlin": 3449380, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.server.file
import com.angcyo.library.app
import com.angcyo.library.getAppName
import com.angcyo.server.def.AndServerService
/**
* 文件服务, 用来提供浏览手机文件的服务
*
* [com.angcyo.server.file.FileWebConfig]
* [com.angcyo.server.LogFileInterceptor]
*
* Email:<EMAIL>
* @author angcyo
* @date 2021/09/22
*... | 0 | Kotlin | 4 | 4 | 3dadcdd36355c67f91603286681268a328eac0a5 | 888 | UICoreEx | MIT License |
src/main/kotlin/coverosR3z/system/config/types/SystemConfiguration.kt | 7ep | 269,398,431 | false | null | package r3z.system.config.types
import r3z.persistence.types.Deserializable
import r3z.persistence.types.IndexableSerializable
import r3z.persistence.types.SerializableCompanion
import r3z.persistence.types.SerializationKeys
import r3z.persistence.utility.DatabaseDiskPersistence.Companion.dbentryDeserialize
/**
* A ... | 0 | null | 5 | 9 | 0c132ef0d0646d2137f39d4555b50010907b57df | 2,054 | r3z | MIT License |
app/src/main/kotlin/ch/empa/openbisio/models/PropertyAssignment.kt | baffelli | 589,514,115 | false | null | /*
* Copyright (c) 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 w... | 0 | Kotlin | 0 | 0 | 83cf3948951dc12a92fedb503899f8698dbf621b | 1,739 | openbisio | Apache License 2.0 |
chain/src/main/kotlin/io/kommons/designpatterns/chain/OrcKing.kt | debop | 235,066,649 | false | null | package io.kommons.designpatterns.chain
/**
* OrcKing makes requests that are handled by the chain.
*/
class OrcKing {
private val chain: RequestHandler
init {
chain = buildChain()
}
private fun buildChain(): RequestHandler {
return OrcCommander(OrcOfficer(OrcSoldier(null)))
}
... | 0 | Kotlin | 11 | 53 | c00bcc0542985bbcfc4652d0045f31e5c1304a70 | 405 | kotlin-design-patterns | Apache License 2.0 |
PayByBank/src/main/java/com/ecospend/paylinksdk/data/remote/api/PaylinkAPI.kt | ecospend | 517,957,223 | false | null | package com.ecospend.paybybank.data.remote.api
import com.ecospend.paybybank.data.remote.model.paylink.request.PaylinkCreateRequest
import com.ecospend.paybybank.data.remote.model.paylink.response.PaylinkCreateResponse
import com.ecospend.paybybank.data.remote.model.paylink.response.PaylinkGetResponse
import com.ecosp... | 0 | Kotlin | 0 | 4 | a35e8ecdd793db92f09df6ff9723a38516e86ad7 | 888 | PayByBankSDK-Android | Apache License 2.0 |
app/src/androidTestDeviceDebug/kotlin/de/digitalService/useID/userFlowTests/HomeScreenNavigationTest.kt | digitalservicebund | 486,188,046 | false | null | package de.digitalService.useID.userFlowTests
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import dagger.hilt.android.testing.BindValue
import dagger.hilt.android.testing.HiltAndroidRule
import dagger.hilt.android.testing.HiltAndroidTest
import dagger.hilt.android.t... | 2 | Kotlin | 2 | 5 | f40f13299b383c900bb1fa09a222deb90e37a3fe | 4,908 | useid-app-android | MIT License |
src/main/kotlin/biz/lermitage/sub/model/adoptopenjdk/AdoptOpenJdkApiResponse.kt | jonathanlermitage | 262,889,547 | false | {"Kotlin": 65831, "Shell": 1357, "Batchfile": 1172} | package biz.lermitage.sub.model.adoptopenjdk
import com.google.gson.annotations.SerializedName
// thx https://www.json2kotlin.com
data class AdoptOpenJdkApiResponse(
@SerializedName("binary") val binary: Binary,
@SerializedName("release_name") val releaseName: String
)
| 0 | Kotlin | 3 | 5 | d391c16da5f08cd5d8dab62b7020fd2a8a2eebd7 | 280 | software-updates-bot | MIT License |
core/download/src/main/kotlin/app/surgo/core/download/DownloadProvider.kt | tsukiymk | 382,220,719 | false | null | package app.surgo.core.download
import android.content.Context
import java.io.File
class DownloadProvider(
context: Context
) {
private val downloadsDir: File by lazy {
File(context.getExternalFilesDir(null), "downloads").apply {
if (exists().not()) mkdirs()
}
}
}
| 0 | Kotlin | 0 | 0 | a364fa99ea63c6b18268ad26b3bb4c0a0603a98f | 307 | surgo | Apache License 2.0 |
application/be/freya/src/main/kotlin/com/talentfront/freya/user/models/UserSkillsRequest.kt | alfonsoduartesarabia | 439,774,375 | false | {"JavaScript": 83749, "Kotlin": 78793, "SCSS": 18289, "CSS": 6500, "Sass": 3661, "HTML": 3380, "TypeScript": 2992, "Shell": 815, "Dockerfile": 617} | package com.talentfront.freya.user.models
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class UserSkillsRequest(
val add: List<String>? = null,
val remove: List<String>? = null
)
| 0 | JavaScript | 0 | 0 | 34b8422eaebdb0b29bb7d49619cf1d6d24597558 | 253 | talentfront | MIT License |
app/src/main/java/com/aljon/trackloader/ui/trackdetail/TrackDetailFragment.kt | ajcordenete | 262,252,786 | false | null | package com.aljon.trackloader.ui.trackdetail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.navArgs
import androidx.transition.Tran... | 0 | Kotlin | 0 | 1 | 2893de002f7d4e8b7dfd32f4160facb01f94a9dd | 1,871 | TrackLoader | Apache License 2.0 |
tasker-engine/src/main/java/top/xjunz/tasker/engine/applet/criterion/PropertyCriterion.kt | xjunz | 651,527,105 | false | null | /*
* Copyright (c) 2022 xjunz. All rights reserved.
*/
package top.xjunz.tasker.engine.applet.criterion
import top.xjunz.tasker.engine.applet.base.AppletResult
import top.xjunz.tasker.engine.runtime.TaskRuntime
/**
* @author xjunz 2022/09/22
*/
class PropertyCriterion<T : Any>(private inline val matcher: (target... | 0 | Kotlin | 0 | 2 | e8eb03801cc28fcf62a4a25e9054c1a79101b728 | 687 | AutoTask | Apache License 2.0 |
Themes-example/Android/app/src/main/java/cn/jiguang/imuisample/themes/black/BlackTxtViewHolder.kt | jpush | 91,675,117 | false | null | package cn.jiguang.imuisample.themes.black
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.ImageButton
import android.widget.ProgressBar
import android.widget.TextView
import cn.jiguang.imui.commons.models.IMessage
import cn.jiguang.imui.messages.BaseMessageViewHold... | 8 | Swift | 20 | 65 | 277f32851ca0bf001205fbb6ab6d58d8cba32308 | 7,417 | aurora-imui-examples | MIT License |
androidApp/src/main/kotlin/com/lukmadev/apps/weather/feature/forecast/DailyForecastListItemModel.kt | lukma | 702,989,427 | false | {"Kotlin": 133997} | package com.lukmadev.apps.weather.feature.forecast
import com.lukmadev.core.domain.forecast.DailyForecast
sealed class DailyForecastListItemModel {
data object Loading : DailyForecastListItemModel()
data class Loaded(
val dailyForecast: DailyForecast,
) : DailyForecastListItemModel()
}
| 0 | Kotlin | 0 | 0 | 39f98c410e0fdf18de76e90403814dfe29403ee0 | 309 | kmm-weather | Apache License 2.0 |
app/src/main/java/com/jefferson/apps/real_world/android/real_worldandroidapp/common/utils/Extensions.kt | jeffersoncsilva | 840,062,108 | false | {"Kotlin": 122563} | package com.jefferson.apps.real_world.android.real_worldandroidapp.common.utils
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.jefferson.apps.real_world.android.logging.main.Logger
import com.jefferson.apps.real_worl... | 0 | Kotlin | 0 | 0 | 3a3a23da1931cf23f5668a81286744057a539ff8 | 999 | realworldandroid | Apache License 2.0 |
relive-simulator-core/src/commonMain/kotlin/xyz/qwewqa/relive/simulator/core/presets/dress/middle/wind/Futaba.kt | qwewqa | 390,928,568 | false | null | package xyz.qwewqa.relive.simulator.core.presets.dress.middle.wind
import xyz.qwewqa.relive.simulator.core.presets.condition.MiddleOnlyCondition
import xyz.qwewqa.relive.simulator.core.presets.condition.NormalDamageOnlyCondition
import xyz.qwewqa.relive.simulator.core.presets.dress.generated.dress1080013
import xyz.qw... | 0 | Kotlin | 11 | 7 | 70e1cfaee4c2b5ab4deff33b0e4fd5001c016b74 | 3,771 | relight | MIT License |
rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/diff/UnityYamlAutomaticExternalMergeTool.kt | citizenmatt | 153,450,368 | true | {"C#": 2241201, "Kotlin": 249302, "ShaderLab": 68284, "Lex": 30165, "HLSL": 7370, "GLSL": 6477, "Java": 5463, "PowerShell": 1036, "Smalltalk": 385, "Shell": 129} | package com.jetbrains.rider.plugins.unity.diff
import com.intellij.diff.DiffManagerEx
import com.intellij.diff.DiffRequestFactory
import com.intellij.diff.contents.DiffContent
import com.intellij.diff.contents.FileContent
import com.intellij.diff.merge.MergeCallback
import com.intellij.diff.merge.MergeRequest
import c... | 4 | C# | 0 | 1 | 844ade21df05d602976bb47171866420623eb968 | 4,325 | resharper-unity | Apache License 2.0 |
subprojects/gradle/ui-test-bytecode-analyzer/src/test/kotlin/com/avito/bytecode/affection/TargetClassAffectedTest.kt | ussernamenikita | 311,762,440 | true | {"Kotlin": 2404460, "HTML": 121161, "Shell": 16845, "Python": 14168, "Dockerfile": 7119, "Makefile": 3035} | package com.avito.bytecode.affection
import com.avito.bytecode.COMMON_TEST_CLASS
import com.avito.bytecode.IGNORED_TEST_CLASS
import com.avito.bytecode.PAGE_1
import com.avito.bytecode.PAGE_2
import com.avito.bytecode.TESTS_WITHOUT_IMPACT_TO_TARGET_CLASS_KEY
import com.avito.bytecode.WITHOUT_IMPACT_TEST_CLASS
import c... | 0 | Kotlin | 0 | 0 | 45b414cad6ecf101635ba73c9b7b8ed23881b386 | 2,022 | avito-android | MIT License |
features/player/src/main/java/app/zendoo/feature/player/ui/PlayerFragment.kt | zendoo-app | 202,864,140 | false | null | package app.zendoo.feature.player.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.addCallback
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.viewModels
import androidx.lifecycle.ViewModelProvider
im... | 29 | Kotlin | 1 | 0 | 56ebd79731a5a2e3241fabd085704a1bee71d15f | 2,322 | mobile-android-zendoo | Apache License 2.0 |
app/src/main/java/com/megaulorder/friedsoup/EmojiWidget.kt | megaulorder | 540,391,449 | false | null | package com.megaulorder.friedsoup
import android.widget.TextView
class EmojiWidget(
private val view: TextView
) {
fun setEmoji(emoji: String) {
view.text = emoji
}
} | 0 | Kotlin | 0 | 0 | 7a8642e499a3dc09f0868edd79e987ecd2ade110 | 173 | friedsoup | MIT License |
dts-generator/src/main/kotlin/com/anatawa12/dtsGenerator/EmptyPackageRemover.kt | fixrtm | 274,084,430 | false | null | package com.anatawa12.dtsGenerator
import org.objectweb.asm.Opcodes
object EmptyPackageRemover {
fun removeEmptyPackage(genProcess: GenProcessArgs, classes: ClassesManager) {
removeEmptyPackageImpl(classes.rootPackage) {}
}
/**
* @return isRemoved
*/
private fun removeEmptyPackageIm... | 1 | Kotlin | 0 | 0 | 8bb37bf09257078385d489990f341696d8dfbace | 1,251 | rtm-mc-wrapper | MIT License |
sample/src/main/java/com/wahidabd/onelibrary/domain/movie/mapper/MovieDetailMapper.kt | wahidabd | 609,474,062 | false | null | package com.wahidabd.onelibrary.domain.movie.mapper
import com.wahidabd.onelibrary.domain.movie.model.MovieDetail
import com.wahidabd.onelibrary.data.movie.model.MovieDetailResultResponse
import com.wahidabd.onelibrary.utils.AppConstants
fun MovieDetailResultResponse.toDomain(): MovieDetail =
MovieDetail(
... | 1 | Kotlin | 0 | 0 | d4c742b39d0c643159827485f3d4406ce8427d1d | 1,015 | one-library | MIT License |
app/src/main/kotlin/io/armcha/ribble/presentation/widget/CircleLinedImageView.kt | armcha | 98,714,221 | false | null | package io.armcha.ribble.presentation.widget
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.support.v7.widget.AppCompatImageView
import android.util.AttributeSet
import io.armcha.ribble.presentation.utils.extensions.toPx
/**
* ... | 6 | null | 120 | 879 | 815beaeb7c6c3f5d7d5c32aa60172372b2e5a844 | 1,275 | Ribble | Apache License 2.0 |
urbanairship-automation/src/main/java/com/urbanairship/automation/engine/PreparedSchedule.kt | urbanairship | 58,972,818 | false | {"Kotlin": 3083752, "Java": 2597267, "Python": 10137, "Shell": 589} | /* Copyright Airship and Contributors */
package com.urbanairship.automation.engine
import androidx.annotation.RestrictTo
import com.urbanairship.automation.limits.FrequencyChecker
import com.urbanairship.experiment.ExperimentResult
import com.urbanairship.iam.PreparedInAppMessageData
import com.urbanairship.json.Jso... | 2 | Kotlin | 124 | 107 | 7593ab73d85f374433b47db8eba01ecfe278230a | 3,479 | android-library | Apache License 2.0 |
affogato-core-ktx/src/main/java/com/parsuomash/affogato/core/ktx/time/messages/lang/RwMessages.kt | ghasemdev | 510,960,043 | false | null | package com.parsuomash.affogato.core.ktx.time.messages.lang
import com.parsuomash.affogato.core.ktx.time.messages.protocol.LookupMessages
/**
* Russian Messages.
* @since 1.1.0
*/
internal object RwMessages : LookupMessages {
override fun prefixAgo(): String = "hashize"
override fun prefixFromNow(): String = "... | 0 | Kotlin | 1 | 9 | f1944a97416221855060a954b539fbd87b74033b | 2,308 | affogato | MIT License |
rainbow-cake-channels/src/main/java/co/zsmb/rainbowcake/channels/livedata/ChannelLifecycleOwner.kt | xirt4m | 220,315,206 | true | {"Kotlin": 103043, "Shell": 1714, "Java": 601} | package co.zsmb.rainbowcake.channels.livedata
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.LifecycleRegistry
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.Channel
@UseExperimental(ExperimentalCoroutinesApi:... | 0 | null | 0 | 0 | a9442c5c437ce9f215df3134c4b50534bf56e19a | 740 | rainbowcake | Apache License 2.0 |
src/main/kotlin/io/github/niraj_rayalla/gdxseer/managedeffekseer/data/GDXseerEasingColor.kt | niraj-rayalla | 708,301,331 | false | {"Kotlin": 115235, "SWIG": 52854, "C++": 34767, "Makefile": 6274, "CMake": 4452, "Objective-C++": 2747} | package io.github.niraj_rayalla.gdxseer.managedeffekseer.data
import io.github.niraj_rayalla.gdxseer.effekseer.InternalStructEasingColor
import io.github.niraj_rayalla.gdxseer.managedeffekseer.EffekseerManagedField
import io.github.niraj_rayalla.gdxseer.managedeffekseer.EffekseerManagedObject
/**
* A [EffekseerManag... | 0 | Kotlin | 0 | 3 | 4cba2cddca7ed99a42e2f7b26973748f2efa154b | 948 | GDXseer | Apache License 2.0 |
seskar/seskar-compiler-plugin/src/main/kotlin/seskar/compiler/primitive/extensions/PrimitiveRegistrar.kt | turansky | 279,976,108 | false | {"Kotlin": 93979, "Shell": 286} | package seskar.compiler.primitive.extensions
import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension
import org.jetbrains.kotlin.compiler.plugin.CompilerPluginRegistrar
import org.jetbrains.kotlin.config.CompilerConfiguration
class PrimitiveRegistrar : CompilerPluginRegistrar() {
override val ... | 0 | Kotlin | 5 | 41 | 6ef30dfce12e2ff8b98c616a9113719fa9d787db | 543 | seskar | Apache License 2.0 |
src/main/kotlin/com/github/game/roulette/RouletteLosses.kt | pnemonic78 | 448,476,946 | false | {"Kotlin": 117700} | package com.github.game.roulette
import kotlin.random.Random
class RouletteLosses {
fun run() {
val game1 = Roulette1()
val game1221 = Roulette1221()
val game222 = Roulette222()
val game111 = Roulette111()
val rnd = Random.Default
for (i in 1..1000) {
v... | 0 | Kotlin | 0 | 0 | 164d44112e06cccf8f51ab40e9cbe09a41c4b3b1 | 1,592 | Lottery | Apache License 2.0 |
api/src/main/java/hexlay/movyeah/api/network/AdjaraAPI.kt | hexlay | 246,402,717 | false | null | package hexlay.movyeah.api.network
import hexlay.movyeah.api.models.Movie
import hexlay.movyeah.api.models.attributes.Actor
import hexlay.movyeah.api.models.attributes.Category
import hexlay.movyeah.api.models.attributes.Country
import hexlay.movyeah.api.models.attributes.show.Episode
import hexlay.movyeah.api.models.... | 0 | Kotlin | 0 | 5 | aa74fdb841edf35a47b43d990ecfacd9034dc53c | 5,240 | MovYeah | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/firstapp/service/repository/local/PessoaDAO.kt | lukninja97 | 759,638,923 | false | {"Kotlin": 22256} | package com.example.firstapp.service.repository.local
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.example.firstapp.service.model.Pessoa
@Dao
interface PessoaDAO {
@Insert(onConflict = OnConflictStra... | 0 | Kotlin | 0 | 0 | a2ba34e37baf02460cf9049364b04e16fa36f0ed | 686 | FirstApp | Apache License 2.0 |
app/src/main/java/com/octopus/moviesapp/domain/use_case/moviedetails_usecase/FetchMovieCastUseCase.kt | b-alramlawi | 606,522,847 | false | {"Kotlin": 288183} | package com.octopus.moviesapp.domain.use_case.moviedetails_usecase
import com.octopus.moviesapp.data.repository.movies.MoviesRepository
import com.octopus.moviesapp.domain.mapper.CastMapper
import com.octopus.moviesapp.domain.mapper.MoviesMapper
import com.octopus.moviesapp.domain.model.Cast
import javax.inject.Inject... | 0 | Kotlin | 0 | 0 | 81c315d24c34cb6a2d2fbbb4c12cf65ac0ae3826 | 610 | Movies_app | Apache License 2.0 |
sdk/src/main/java/sdk/api/auth_api_provider.kt | Laplace-Analytics | 673,237,581 | false | null | package sdk.api
import com.sun.net.httpserver.HttpHandler
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import sdk.base.network.ApiResponseHandler
import sdk.base.network.ApiResponseObject
import sdk.base.network.GenericApiProvider
impo... | 0 | Kotlin | 0 | 0 | b5c59c8ded9f3a7a22573bc699814bf576b37a5e | 5,476 | finfree-kotlin-sdk | Apache License 2.0 |
examples/primitives/kotlin/src/main/java/com/examples/inheritance/date.kt | PicsArt | 501,249,953 | false | {"Python": 496481, "C++": 20882, "C": 3373, "Kotlin": 1546, "Swift": 1149, "Starlark": 315} | /**
* ______ .______ .______ .______ __ .__ __. _______
* / || _ \ | _ \ | _ \ | | | \ | | | \
* | ,----'| |_) | | |_) | | |_) | | | | \| | | .--. |
* | | | ___/ | ___/ | _ < | | | . ` | | | | |
* | `----.| | | | | |_) | | ... | 2 | Python | 3 | 22 | fa13247662d0651d8f398a5f66d471a2a2bd747c | 4,080 | cppbind | MIT License |
examples/primitives/kotlin/src/main/java/com/examples/inheritance/date.kt | PicsArt | 501,249,953 | false | {"Python": 496481, "C++": 20882, "C": 3373, "Kotlin": 1546, "Swift": 1149, "Starlark": 315} | /**
* ______ .______ .______ .______ __ .__ __. _______
* / || _ \ | _ \ | _ \ | | | \ | | | \
* | ,----'| |_) | | |_) | | |_) | | | | \| | | .--. |
* | | | ___/ | ___/ | _ < | | | . ` | | | | |
* | `----.| | | | | |_) | | ... | 2 | Python | 3 | 22 | fa13247662d0651d8f398a5f66d471a2a2bd747c | 4,080 | cppbind | MIT License |
app/src/main/java/mx/org/samtech/samplestore/utils/Utils.kt | iscmiguelsamaniego | 665,843,817 | false | null | package mx.org.samtech.samplestore.utils
import android.app.Activity
import android.app.Dialog
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import android.os.SystemClock
import android.view.Gravity
import android.view.View
import a... | 0 | Kotlin | 0 | 0 | 9e477bc096c93377cb3e452b6fe8b244573d306f | 5,330 | appstoresample | MIT License |
data/src/main/java/com/hackertronix/data/local/dao/global/countries/LocationsDao.kt | hackertronix | 249,216,550 | false | null | package com.hackertronix.data.local.dao.global.countries
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.hackertronix.model.countries.CountriesStats
import com.hackertronix.model.countries.Location
import io.... | 6 | Kotlin | 4 | 3 | eae519dc2ca538db723faca4c21da28ef68ba6f8 | 829 | 91-DIVOC | Apache License 2.0 |
app/src/main/java/com/c4rex/brikzapp/level/LevelMockSource.kt | c4rex | 300,683,738 | false | null | package com.c4rex.brikzapp.level
import com.c4rex.brikzapp.R
import com.c4rex.brikzapp.player.PlayerModel
object LevelMockSource {
private fun getStages(player:PlayerModel, levelId:Int, topic:String):ArrayList<StageModel> {
return ArrayList<StageModel>().apply {
add(StageModel(1, 101, "$topic ... | 0 | Kotlin | 0 | 0 | c7c56be5ea5c626292886807e9c57b18b787aee5 | 1,813 | brikz | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/iam/AccessKeyPropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.iam
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.Number
import software.amazon.awscdk.ser... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,949 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/rohitthebest/manageyourrenters/database/model/Expense.kt | rkumar0206 | 308,063,719 | false | null | package com.rohitthebest.manageyourrenters.database.model
import android.content.Context
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.rohitthebest.manageyourrenters.utils.WorkingWithDateAndTime
@Entity(tableName = "expense_... | 17 | Kotlin | 0 | 0 | 34467e4904dedf28f9ae95be0264673c95a7da53 | 1,476 | ManageYourRenters | Creative Commons Zero v1.0 Universal |
core/src/commonMain/kotlin/work/socialhub/kslack/entity/block/element/ButtonElement.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 1210021, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.entity.block.element
import com.github.seratch.jslack.api.model.block.composition.ConfirmationDialogObject
/**
* https://api.slack.com/reference/messaging/block-elements#button
*/
class ButtonElement : BlockElement {
val type: String = TYPE
var fallback: String? = null
priv... | 5 | Kotlin | 0 | 0 | 3975e9de4fae5ef2ddc5b013c2a346536852f7b3 | 6,238 | kslack | MIT License |
facebook-android-sdk-main/facebook-core/src/test/kotlin/com/facebook/appevents/suggestedevents/PredictionHistoryManagerTest.kt | PESP-privacy-preserving-social-SDK | 774,671,173 | false | {"Kotlin": 2660453, "Java": 1785287, "Python": 24158, "Shell": 14666, "AIDL": 11889} | package com.facebook.appevents.suggestedevents
import android.content.Context
import android.view.ViewGroup
import android.widget.EditText
import com.facebook.FacebookPowerMockTestCase
import com.facebook.FacebookSdk
import com.facebook.MockSharedPreference
import com.facebook.appevents.codeless.internal.ViewHierarchy... | 0 | Kotlin | 0 | 0 | fcf4852069e2a9625aa663dc22ccc926e2a94799 | 3,420 | PESP | MIT License |
plugins/kotlin/base/platforms/src/org/jetbrains/kotlin/idea/base/platforms/KotlinLibraryData.kt | Maccimo | 18,582,736 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.base.platforms
import com.intellij.openapi.roots.libraries.PersistentLibraryKind
import org.jetbrains.annotations.ApiStatus
import org.jetbrains.kotlin.idea.base.pl... | 1 | null | 1 | 1 | aa7852d5f99bd8dcd44f6cb430e4e9b94eb96dd1 | 1,350 | intellij-community | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/refactoring/extractFunction/typeParameters/definitelyNotNullType.kt | JetBrains | 2,489,216 | false | null | // PARAM_TYPES: kotlin.String.() -> T & Any
// PARAM_DESCRIPTOR: value-parameter f: kotlin.String.() -> T & Any defined in foo
fun <T> foo(f: String.() -> T & Any): T {
<selection>while (true) {
val answer = "Hey!".f()
return answer
}</selection>
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 273 | intellij-community | Apache License 2.0 |
src/test/kotlin/coverosR3z/timerecording/TimeEntryUserStory.kt | 7ep | 269,398,431 | false | null | package coverosR3z.timerecording
import coverosR3z.bddframework.UserStory
object TimeEntryUserStory : UserStory(
key = "TimeEntry",
story =
"""
As an employee
I want to have a highly-efficient means to enter time
So that I can work with my time entries without really having to think about the to... | 0 | null | 5 | 9 | 0c132ef0d0646d2137f39d4555b50010907b57df | 10,706 | r3z | MIT License |
locationsyncservice/src/main/java/com/shuttl/location_pings/data/model/request/SendLocationRequestBody.kt | Shuttl-Tech | 239,523,649 | false | {"Gradle": 5, "Maven POM": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 2, "Kotlin": 20, "XML": 16, "Java": 21} | package com.shuttl.location_pings.data.model.request
data class SendLocationRequestBody<T>(val data: List<T>? = listOf()) {
companion object {
fun<T> create(gps: List<T>?) = SendLocationRequestBody(data = gps)
}
} | 1 | null | 1 | 1 | b7cfc2dbcf1c456031c7f1012d81807f797068ad | 232 | LocationsSync | Apache License 2.0 |
src/main/java/com/dzen/campfire/server/executors/publications/EPublicationsReactionGetAccounts.kt | timas130 | 443,572,543 | true | {"Kotlin": 1072092} | package com.dzen.campfire.server.executors.publications
import com.dzen.campfire.api.API
import com.dzen.campfire.api.models.publications.PublicationComment
import com.dzen.campfire.api.models.publications.chat.PublicationChatMessage
import com.dzen.campfire.api.requests.publications.RPublicationsReactionGetAccounts
i... | 0 | Kotlin | 0 | 0 | 40a2fbdbbdbe6706ed852f7218cb10fd57e50445 | 1,442 | CampfireServer | Apache License 2.0 |
app/src/main/java/com/doyou/cvc/activity/ImgTxtMixtureActivity.kt | faith-hb | 183,197,738 | false | null | package com.doyou.cvc.release
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.doyou.cvc.R
class ImgTxtMixtureActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
se... | 0 | Java | 95 | 483 | 8ebfb9d5dbf76963402f2bd0da099d7b02be4782 | 736 | WidgetCase | Apache License 2.0 |
core-android/src/main/java/com/clipfinder/core/android/base/handler/ToolbarController.kt | tosoba | 133,674,301 | false | {"Gradle": 33, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 31, "Batchfile": 1, "Kotlin": 409, "Proguard": 24, "XML": 176, "Java": 2, "INI": 4} | package com.clipfinder.core.android.base.handler
interface ToolbarController {
fun toggleToolbar()
}
| 1 | null | 1 | 1 | 84ae309c8c059308c16902ee43b0cdfd2740794c | 106 | ClipFinder | MIT License |
src/main/kotlin/com/project/rss/Application.kt | devkirill | 332,005,497 | false | null | package com.project.rss
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.ComponentScan
@SpringBootApplication
@ComponentScan(basePackages = ["com.project.rss"])
class Application
fun main(args: Array<S... | 0 | Kotlin | 0 | 0 | a3a5e74b4053d270bd49ae12525eeea4e4d38663 | 389 | rss | MIT License |
app/src/main/java/com/example/woof/data/ImageAV_EnterTransitions.kt | ELIJAHMAITHYA | 678,511,290 | false | {"Kotlin": 48837} | package com.example.woof.data
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.expandHorizontally
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn... | 0 | Kotlin | 0 | 0 | b64be81247c6dc20d9149630e63591774f572c55 | 3,308 | Woof-App | Apache License 2.0 |
compose/constraint-layout/src/commonMain/kotlin/androidx/constraintlayout/core/state/ConstraintReference.kt | Woody230 | 388,189,330 | false | {"Kotlin": 3122765} | /*
* Copyright (C) 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 app... | 2 | Kotlin | 0 | 7 | 5ad55d66bbb58a12bf3a8b436ea1ea4d8e9737bc | 29,991 | KotlinExtensions | Apache License 2.0 |
feature/login/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/login/NotificationSettingsUi.kt | ls1intum | 537,104,541 | false | null | package de.tum.informatics.www1.artemis.native_app.feature.login
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowForward
i... | 1 | Kotlin | 0 | 2 | d9a0833905cdad14da0f9cf4863b6cf85747941d | 4,148 | artemis-android | Apache License 2.0 |
Kotlin/src/main/kotlin/core/Component3D.kt | tgrundtvig | 322,026,545 | false | {"OpenSCAD": 155596, "Java": 96682, "Kotlin": 8414} | package core
interface Component3D : Component
{
} | 0 | OpenSCAD | 1 | 0 | bab446f889af12908ceb368fdcf4ba6d57cb4f7e | 51 | OpenBuildSystem | MIT License |
app/src/main/java/com/piticlistudio/playednext/util/AppExceptions.kt | Yorxxx | 105,007,126 | false | null | package com.piticlistudio.playednext.util
/**
* A Collection of exceptions that are useful across the app and JDK does not seem to provide in any
* standar way.
*/
class NoNetworkAvailableException(msg: String? = "No Internet connection available", cause: Throwable? = null): Exception(msg, cause) | 2 | Kotlin | 0 | 1 | 24f9fe251437fbbb0a493760e63b31f5c7895738 | 301 | played-next-kotlin | MIT License |
src/main/kotlin/dto/response/NotificationGroupsResponse.kt | novuhq | 609,113,780 | false | null | package co.novu.dto.response
import com.google.gson.annotations.SerializedName
import java.math.BigInteger
data class NotificationGroupsResponse(
@SerializedName("_id")
var id: String? = null,
var name: String? = null,
@SerializedName("_environmentId")
var environmentId: String? = null,
@Seria... | 7 | null | 8 | 20 | 259d728a5905a2907aab212502d9ec1221089f15 | 591 | novu-kotlin | MIT License |
exchanges-connector/src/main/kotlin/fund/cyber/markets/connector/etherdelta/EtherdeltaToken.kt | cybercongress | 97,112,173 | false | {"Kotlin": 330007, "HTML": 7008, "Dockerfile": 907} | package fund.cyber.markets.connector.etherdelta
import java.math.BigInteger
/**
* Etherdelta token definition class
*/
data class EtherdeltaToken(
/**
* The symbol of a token. For example: ETH
*/
val symbol: String,
/**
* Divisor to convert the value of the number... | 17 | Kotlin | 10 | 46 | f3254bc93784f4d570a7d6bfda58f76413cf6444 | 623 | cyber-markets | MIT License |
backend/api/src/main/kotlin/io/tolgee/hateoas/automation/AutomationTriggerModel.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.hateoas.automation
import io.tolgee.activity.data.ActivityType
import io.tolgee.model.automations.AutomationTriggerType
class AutomationTriggerModel(
var id: Long,
var type: AutomationTriggerType = AutomationTriggerType.TRANSLATION_DATA_MODIFICATION,
var activityType: ActivityType? = null,
v... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 361 | tolgee-platform | Apache License 2.0 |
testomania/src/main/kotlin/com/earth/testomania/quiz_categories/BookDestination.kt | Nodrex | 469,365,691 | false | null | package com.earth.testomania.quiz_categories
import androidx.compose.runtime.Composable
import androidx.hilt.navigation.compose.hiltViewModel
import com.earth.testomania.apis.quiz.opentdb.domain.models.OpenTDBApiCategory
import com.earth.testomania.apis.quiz.opentdb.domain.repository.OpenTdbRepo
import com.earth.testo... | 64 | Kotlin | 3 | 49 | c91c7496ad2a8e4b499becb56c042f4e7480e012 | 1,376 | Testomania | Creative Commons Zero v1.0 Universal |
sykepenger-model/src/main/kotlin/no/nav/helse/etterlevelse/SykdomstidslinjeBuilder.kt | navikt | 193,907,367 | false | null | package no.nav.helse.etterlevelse
import java.time.LocalDate
import no.nav.helse.person.SykdomstidslinjeVisitor
import no.nav.helse.sykdomstidslinje.Dag
import no.nav.helse.sykdomstidslinje.SykdomshistorikkHendelse
import no.nav.helse.sykdomstidslinje.Sykdomstidslinje
import no.nav.helse.økonomi.Økonomi
internal clas... | 2 | Kotlin | 7 | 4 | d39987ee06b82400b57d69f35171989bfa3c82a1 | 2,179 | helse-spleis | MIT License |
app/src/test/kotlin/com/thoughtbot/tropos/testUtils/Assertions.kt | thoughtbot | 78,581,829 | false | null | package com.thoughtbot.tropos.testUtils
import kotlin.test.assertEquals
fun assertStringEquals(expected: CharSequence, actual: CharSequence) =
assertEquals(expected.toString(), actual.toString())
| 5 | Kotlin | 21 | 132 | f78bf3c84ea91c08d200da6ad851920fcc259f82 | 202 | tropos-android | MIT License |
app/src/main/java/br/com/lucas/cordeiro/cryptowalletapp/utils/Extensions.kt | lucas-cordeiro | 331,486,180 | false | null | package br.com.lucas.cordeiro.cryptowalletapp.utils
import android.util.TypedValue
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.AmbientContext
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import java.text.NumberFormat
import java.util.*
import kotlin.math.roun... | 0 | Kotlin | 0 | 2 | a15631fad4e972d061dcba5e512be29b64534e01 | 670 | Crypto-Wallet-App | MIT License |
src/main/kotlin/endertitan/echolib/resourcenetworks/capability/IConsumer.kt | ender-titan1 | 708,160,119 | false | {"Kotlin": 32797} | package endertitan.echolib.resourcenetworks.capability
import endertitan.echolib.resourcenetworks.INetworkValue
import endertitan.echolib.resourcenetworks.ResourceNetworkManager
interface IConsumer<T : INetworkValue> {
var incomingResources: HashMap<IProducer<*>, T>
fun removeResourcesFromProducer(producer: ... | 0 | Kotlin | 0 | 1 | 14adabc99e3ce44b1089afc1a1f939d48fb083f6 | 682 | echo-lib | MIT License |
butler/src/main/java/com/xueqiu/butler/Butler.kt | snowman-team | 200,159,268 | false | null | package com.xueqiu.butler
import android.app.Activity
import android.app.Application
import android.content.Context
import android.os.Bundle
import java.lang.ref.WeakReference
object Butler : Application.ActivityLifecycleCallbacks {
private var mAppContext: Context? = null
fun init(application: Application)... | 0 | Kotlin | 0 | 1 | 67457f1383b862f403ae5f68b095e4b91a2453e4 | 2,862 | Butler | Apache License 2.0 |
app/src/main/java/com/rubens/applembretemedicamento/framework/domain/ButtonStateLiveData.kt | rubens23 | 630,981,517 | false | {"Kotlin": 338831} | import androidx.lifecycle.LiveData
class ButtonStateLiveData : LiveData<Boolean>() {
// Método para alterar o estado do botão
fun setButtonState(enabled: Boolean) {
value = enabled
}
}
| 0 | Kotlin | 0 | 0 | 5ebcc53fc0539a0418f826bce94751f7381ec4f7 | 206 | DoseCerta | Apache License 2.0 |
app/src/main/java/ua/glebm/smartwaste/domain/repository/RecycleRepository.kt | glebushkaa | 718,610,042 | false | {"Kotlin": 241649} | package ua.glebm.smartwaste.domain.repository
import ua.glebm.smartwaste.model.RecyclePoint
/**
* Created by gle.bushkaa email(<EMAIL>) on 11/14/2023
*/
interface RecycleRepository {
suspend fun getRecyclePoints(): List<RecyclePoint>
suspend fun getRecyclePointsByCategories(
categories: List<Stri... | 0 | Kotlin | 0 | 1 | be94eb8f216d5bfae8259611145511661f78ea4e | 353 | smart-waste-android | MIT License |
utbot-framework/src/main/kotlin/org/utbot/engine/selectors/strategies/StoppingStrategy.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.engine.selectors.strategies
interface StoppingStrategy {
fun shouldStop(): Boolean
}
| 398 | Kotlin | 32 | 91 | abb62682c70d7d2ecc4ad610851d304f7ad716e4 | 108 | UTBotJava | Apache License 2.0 |
kotlin/13.kt | NeonMika | 433,743,141 | false | null | class Day13 : Day<Day13.PaperFolding>("13") {
data class FoldInstruction(val axis: Char, val line: Int)
infix fun Char.foldBy(amount: Int) = FoldInstruction(this, amount)
data class PaperFolding(val dots: TwoDimensionalArray<Boolean>, val folds: List<FoldInstruction>) {
val nextFold
ge... | 0 | Kotlin | 0 | 0 | c625d684147395fc2b347f5bc82476668da98b31 | 2,618 | advent-of-code-2021 | MIT License |
client/domain/src/main/java/com/healthc/domain/model/product/NutritionLabel.kt | Solution-Challenge-HealthC | 601,915,784 | false | {"Kotlin": 175023} | package com.healthc.domain.model.product
data class NutritionLabel(
val label: ByteArray
){
constructor() : this(byteArrayOf())
} | 13 | Kotlin | 1 | 2 | b11cff6d33bace2f53c80a31056746612bb56c62 | 138 | HealthC_Android | MIT License |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudformation/CloudFormationExplorerNodes.kt | msilvey | 176,211,165 | false | null | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.cloudformation
import com.intellij.ide.util.treeView.AbstractTreeNode
import com.intellij.openapi.project.Project
import icons.AwsIcons
import software.ama... | 1 | null | 1 | 1 | abdcdb1dcd222aef7f561e3315c1d733c3fc08ce | 7,248 | jsinbucket | Apache License 2.0 |
market/market-core/src/main/kotlin/co/nilin/opex/market/core/spi/UserQueryHandler.kt | opexdev | 370,411,517 | false | {"Kotlin": 1268085, "HTML": 43145, "Shell": 8309, "Java": 8001, "Dockerfile": 3334, "PLpgSQL": 3216, "HCL": 823} | package co.nilin.opex.market.core.spi
import co.nilin.opex.market.core.inout.*
interface UserQueryHandler {
suspend fun getOrder(uuid: String, ouid: String): Order?
suspend fun queryOrder(uuid: String, request: QueryOrderRequest): Order?
suspend fun openOrders(uuid: String, symbol: String?, limit: Int)... | 29 | Kotlin | 18 | 38 | da8246cf91cebefb5745a5f5978df3c704c2fd81 | 500 | core | MIT License |
app/src/main/java/com/egoriku/animatedbottomsheet/bottomsheet/expanded/radio/RadioScreenLarge.kt | egorikftp | 393,629,785 | false | {"Kotlin": 23199} | package com.egoriku.animatedbottomsheet.bottomsheet.expanded.radio
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import com.egoriku.animatedbottomsheet.bottomsheet.expanded.radio.controls.PlayerControls
@Composable
fun RadioScreenLarge(
icon: String,
name: String
) {
... | 0 | Kotlin | 10 | 54 | aa9c664ccee0545879ff7beb098a771aff4bfd52 | 545 | compose-animated-bottomsheet | Apache License 2.0 |
hmpps-prisoner-search-indexer/src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/indexer/services/PrisonerDifferenceService.kt | ministryofjustice | 636,804,116 | false | {"Kotlin": 1322819, "Shell": 6211, "Dockerfile": 2780, "Mustache": 1803, "HTML": 1438} | package uk.gov.justice.digital.hmpps.prisonersearch.indexer.services
import com.fasterxml.jackson.databind.ObjectMapper
import com.microsoft.applicationinsights.TelemetryClient
import org.apache.commons.codec.binary.Base64
import org.apache.commons.lang3.builder.Diff
import org.apache.commons.lang3.builder.DiffBuilder... | 3 | Kotlin | 1 | 1 | fccdc435b747a7f58ff5fb865fc5218f1e52faaf | 10,202 | hmpps-prisoner-search | MIT License |
app/src/main/java/com/johnchourp/learnbyzantinemusic/summary_theory/Time.kt | JohnChourp | 791,117,361 | false | {"Kotlin": 7723} | package com.johnchourp.learnbyzantinemusic.summary_theory
import android.os.Bundle
import androidx.activity.ComponentActivity
import com.johnchourp.learnbyzantinemusic.R
class Time : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCo... | 0 | Kotlin | 0 | 0 | 75ea049f582e7b97a77bf074425292b6f7d5442c | 390 | LearnByzantineMusic | MIT License |
teacher/app/src/androidTest/java/com/instructure/teacher/ui/QuizDetailsPageTest.kt | khalidchamakh | 277,108,584 | true | {"Kotlin": 9338745, "Dart": 4280221, "Java": 1896124, "HTML": 183109, "Ruby": 36780, "Shell": 27604, "Objective-C": 7431, "Groovy": 7123, "Python": 2438, "CSS": 1356, "Swift": 807, "Dockerfile": 112} | /*
* Copyright (C) 2017 - present Instructure, 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 requ... | 0 | null | 2 | 0 | c067a50904ecec11462f7a1209452bc5efdca13c | 4,598 | lms-app | Apache License 2.0 |
parser-combinator/src/main/kotlin/org/toptobes/lang/mappings/Registers.kt | toptobes | 627,149,279 | false | null | package org.toptobes.lang.utils
val reg16Codes = "sp, bp, ax, bx, cx, dx, ex, fx, gx, hx"
.split(", ")
.mapIndexed { idx, name -> name to (idx + 1).toByte() }
.toMap()
val reg8Codes = "ah, al, bh, bl, ch, cl, dh, dl"
.split(", ")
.mapIndexed { idx, name -> name to ((idx + 1) * 2).toByte() }
.t... | 0 | Kotlin | 0 | 0 | a2057c3b54f6027dd3830d324b88336ff9f5a610 | 327 | BadVm | MIT License |
app/src/main/java/com/example/androiddevchallenge/viewmodel/Constants.kt | feng612266 | 344,317,952 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 1 | 4be516595d992b3c6fc0c20ed2376343a2415053 | 917 | Countdown-timer | Apache License 2.0 |
features/regional_live/src/test/java/com/n27/regional_live/presentation/regionals/RegionalsUiDataGenerator.kt | Narsuf | 52,900,182 | false | {"Kotlin": 246421} | package com.n27.regional_live.presentation.regionals
import com.n27.regional_live.presentation.regionals.entities.RegionalsState.Content
import com.n27.test.generators.getLiveElections
fun getRegionalsContent() = Content(getLiveElections())
| 0 | Kotlin | 0 | 2 | 73959e069dcd7166b9095f0b94cc3d0c42873c77 | 243 | Elections | Apache License 2.0 |
src/main/kotlin/io/mahdibohloul/kpringmediator/infrastructure/RequestHandlerProvider.kt | mahdibohloul | 410,815,414 | false | {"Kotlin": 32862} | package io.mahdibohloul.kpringmediator.infrastructure
import io.mahdibohloul.kpringmediator.core.RequestHandler
import org.springframework.context.ApplicationContext
import kotlin.reflect.KClass
/**
* A wrapper around [RequestHandler]
*
* @author <NAME>
* @property applicationContext ApplicationContext from Sprin... | 0 | Kotlin | 1 | 5 | fe1814899cb720ff6b67e0053500a9377024ed91 | 629 | Kpring-mediatR | MIT License |
validator-server/src/main/kotlin/science/numcompass/conformance/fhir/Application.kt | JohannesOehm | 408,088,879 | true | {"Kotlin": 140534, "JavaScript": 3689, "HTML": 1900, "CSS": 1275} | package science.numcompass.conformance.fhir
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class Application
fun main(args: Array<String>) {
@Suppress("SpreadOperator")
runApplication<Application>(*args)
}
| 0 | Kotlin | 0 | 0 | b082cd8919ddf0808aa42e17457edc857580e322 | 308 | compass-num-conformance-checker | MIT License |
app/src/main/java/gr/blackswamp/damagereports/logic/commands/ReportViewCommand.kt | JMavrelos | 212,301,077 | false | null | package gr.blackswamp.damagereports.logic.commands
import gr.blackswamp.damagereports.ui.model.Brand
sealed class ReportViewCommand {
object ShowBrandSelect : ReportViewCommand()
object ConfirmDiscard : ReportViewCommand()
object MoveBack : ReportViewCommand()
class ShowModelSelect(val brand: Brand) :... | 0 | Kotlin | 0 | 0 | 125ceef68db9554d9c047500e41f0fa96085ae64 | 342 | DamageReportsKTX | Apache License 2.0 |
lse-ktx/src/jsMain/kotlin/vip/cdms/lse/dsl/command/MCCommandHelper.kt | Cdm2883 | 755,032,373 | false | {"Kotlin": 150333} | package vip.cdms.lse.dsl.command
import Command
import PermType
import mc
/**
* ```
* MCCommandHelper {
* cmd = "kotlinjs"
* description = "Kotlin/JS 命令注册DSL测试"
* permission = PermType.Any
*
* // aliases = arrayListOf("kotlin", "ktjs", "kt")
* alias = "kotlin"
* ... | 0 | Kotlin | 0 | 4 | 38e7339e5055195c55bce197c660d9b02c863372 | 1,911 | levilamina-kotlin-js-plugin-template | Apache License 2.0 |
projects/prison-custody-status-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/probation/PersonManagerRepository.kt | ministryofjustice | 500,855,647 | false | null | package uk.gov.justice.digital.hmpps.integrations.delius.person.manager.probation
import org.springframework.data.jpa.repository.JpaRepository
import uk.gov.justice.digital.hmpps.exception.NotFoundException
interface PersonManagerRepository : JpaRepository<PersonManager, Long> {
fun findByPersonIdAndActiveIsTrueA... | 4 | Kotlin | 0 | 2 | 404fca1520f49953b96a792d266ee3d3d12ee73a | 570 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/raft/war/binary/BinaryIcons.kt | WarRaft | 713,961,790 | false | {"Kotlin": 503179, "Java": 347321, "Lex": 23647, "HTML": 558} | package raft.war.binary
import com.intellij.openapi.util.IconLoader.getIcon
import javax.swing.Icon
// https://www.svgrepo.com/collection/halloween-20/
object BinaryIcons {
val FILE: Icon = getIcon("/icons/slk.svg", BinaryIcons::class.java)
}
| 0 | Kotlin | 0 | 2 | 43e499b8c896631cd729a784a097230700322a10 | 249 | IntelliJASS | MIT License |
model/src/main/kotlin/de/fraunhofer/iem/spha/model/kpi/hierarchy/DefaultHierarchy.kt | fraunhofer-iem | 839,313,288 | false | {"Kotlin": 163881} | /*
* Copyright (c) 2024 Fraunhofer IEM. All rights reserved.
*
* Licensed under the MIT license. See LICENSE file in the project root for details.
*
* SPDX-License-Identifier: MIT
* License-Filename: LICENSE
*/
package de.fraunhofer.iem.spha.model.kpi.hierarchy
import de.fraunhofer.iem.spha.model.kpi.KpiId
imp... | 1 | Kotlin | 0 | 1 | 98173a83f4d560f1c72c9e00170ea8e85bd7dfce | 5,752 | software-product-health-analyzer | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.