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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
samples/packages/metadata-impact-report/src/main/kotlin/com/atlan/pkg/mdir/metrics/TLAxL.kt | atlanhq | 520,357,429 | false | {"Gradle Kotlin DSL": 35, "Java Properties": 1, "Markdown": 3, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "TOML": 1, "INI": 1, "Pickle": 40, "Kotlin": 190, "JSON": 12, "YAML": 6, "CODEOWNERS": 1, "Dockerfile": 2, "Java": 1185, "XML": 5, "Fluent": 81, "FreeMarker": 11} | /* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.pkg.mdir.metrics
import co.elastic.clients.elasticsearch._types.SortOrder
import com.atlan.AtlanClient
import com.atlan.model.assets.Asset
import com.atlan.model.assets.ISQL
import com.atlan.model.assets.MaterializedView
impo... | 0 | Java | 2 | 3 | 010f6a0e735be4b9f0a1e4e4133aea2fccb5c367 | 3,509 | atlan-java | Creative Commons Attribution 4.0 International |
samples/packages/asset-import/src/test/kotlin/com/atlan/pkg/aim/SameNameCategoriesTest.kt | atlanhq | 520,357,429 | false | {"Gradle Kotlin DSL": 35, "Java Properties": 1, "Markdown": 3, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "TOML": 1, "INI": 1, "Pickle": 40, "Kotlin": 190, "JSON": 12, "YAML": 6, "CODEOWNERS": 1, "Dockerfile": 2, "Java": 1185, "XML": 5, "Fluent": 81, "FreeMarker": 11} | /* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.pkg.aim
import AssetImportCfg
import com.atlan.model.assets.Glossary
import com.atlan.pkg.PackageTest
import org.testng.ITestContext
import org.testng.annotations.AfterClass
import org.testng.annotations.BeforeClass
import ja... | 0 | Java | 2 | 3 | 010f6a0e735be4b9f0a1e4e4133aea2fccb5c367 | 2,584 | atlan-java | Creative Commons Attribution 4.0 International |
app/src/main/java/deakin/gopher/guardian/view/general/TaskDetailActivity.kt | ShreyasNair067 | 714,569,652 | true | {"Java Properties": 2, "Gradle": 3, "Shell": 1, "Markdown": 8, "Batchfile": 1, "Text": 1, "Ignore List": 2, "XML": 129, "YAML": 1, "Proguard": 1, "JSON": 1, "Kotlin": 55, "Java": 33} | package deakin.gopher.guardian.view.general
import android.os.Bundle
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.Firebase... | 1 | Java | 0 | 0 | a381ece710e42cda48eec74929c2baea411e777e | 1,934 | Project-Guardian | MIT License |
FetLifeKotlin/app/src/main/java/com/bitlove/fetlife/view/widget/FloatingActionButtonBehavior.kt | alphaStryke2k3 | 130,300,999 | true | {"Java": 1339402, "Kotlin": 335279, "JavaScript": 8226, "Prolog": 914} | package com.bitlove.fetlife.view.widget
import android.app.Activity
import android.graphics.Rect
import android.support.design.widget.BottomNavigationView
import android.support.v4.view.ViewCompat
import android.support.design.widget.CoordinatorLayout
import android.support.design.widget.FloatingActionButton
import an... | 0 | Java | 0 | 2 | c6aa3bed6bf7549597b101a37ce3bb1820ad7699 | 2,791 | android | MIT License |
falkon-sql-builder-h2/src/main/kotlin/com/jayrave/falkon/sqlBuilders/h2/H2CreateTableSqlBuilder.kt | jayrave | 65,279,209 | false | null | package com.jayrave.falkon.sqlBuilders.h2
import com.jayrave.falkon.sqlBuilders.CreateTableSqlBuilder
import com.jayrave.falkon.sqlBuilders.common.SimpleCreateTableSqlBuilder
import com.jayrave.falkon.sqlBuilders.lib.TableInfo
class H2CreateTableSqlBuilder : CreateTableSqlBuilder {
override fun build(tableInfo: T... | 6 | Kotlin | 2 | 12 | ce42d553c578cd8e509bbfd7effc5d56bf3cdedd | 436 | falkon | Apache License 2.0 |
idea/tests/testData/inspectionsLocal/suspiciousAsDynamic/simple.kt | JetBrains | 278,369,660 | false | null | // JS
// PROBLEM: Suspicious 'asDynamic' member invocation
// FIX: Remove 'asDynamic' invocation
fun test(d: dynamic) {
d.<caret>asDynamic().foo()
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 152 | intellij-kotlin | Apache License 2.0 |
app/src/main/java/com/jonasvieira/marvelheroes/model/Response.kt | jonvieira | 163,221,714 | false | null | package com.jonasvieira.marvelheroes.model
data class Response(
val code: Int,
val etag: String,
val data: Data
) | 0 | Kotlin | 1 | 7 | ad9921bd42b4df7e7e161d5ce8e8eff787225195 | 126 | paging-library-marvel-api | MIT License |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | yasincidem | 344,228,368 | 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 | 0 | a4a0b9d5812e02b0c04d718ba03baad4d44111ec | 25,891 | timerr | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | yasincidem | 344,228,368 | 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 | 0 | a4a0b9d5812e02b0c04d718ba03baad4d44111ec | 25,891 | timerr | Apache License 2.0 |
net/craftventure/core/async/AsyncTaskHelper.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.bukkit.ktx.coroutine
import net.craftventure.bukkit.ktx.plugin.PluginProvider
import net.craftventure.core.ktx.coroutine.executeAsync
import net.craftventure.core.ktx.util.Logger
import org.bukkit.Bukkit
import org.bukkit.scheduler.BukkitRunnable
// This code is shit, don't use it please. Cor... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 1,957 | open-plugin-parts | MIT License |
src/main/kotlin/org/rust/lang/core/psi/ext/RsTraitOrImpl.kt | andreycizov | 97,798,894 | true | {"Kotlin": 1602745, "Rust": 81982, "Lex": 19046, "HTML": 8810, "Java": 1121, "Shell": 760, "RenderScript": 15} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.psi.ext
import com.intellij.psi.PsiElement
import org.rust.lang.core.psi.*
import org.rust.lang.core.types.BoundElement
import org.rust.lang.core.types.ty.substituteInValues
interface... | 0 | Kotlin | 0 | 0 | 78754355e3cc823d75292f596d5c4ca1c17b26ad | 1,002 | intellij-rust | MIT License |
app/src/main/java/com/jeldridge/todoapp/data/model/Todo.kt | Matrix159 | 736,004,927 | false | {"Kotlin": 27410} | package com.jeldridge.todoapp.data.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Todo(
val id: Int = 0,
val name: String,
): Parcelable
| 0 | Kotlin | 0 | 0 | 875b268a107302ccdf46d24016cc572d9331011d | 189 | AndroidTodoApp | MIT License |
src/main/kotlin/com/icecreamqaq/yudb/jpa/hibernate/HibernateDao.kt | Yu-Works | 276,549,505 | false | null | package com.icecreamqaq.yudb.jpa.hibernate
import com.icecreamqaq.yudb.entity.Page
import com.icecreamqaq.yudb.jpa.JPADaoBase
import org.hibernate.Query
import java.io.Serializable
import javax.inject.Inject
open class HibernateDao<T, PK : Serializable> : JPADaoBase<T, PK>() {
@Inject
lateinit var hibernateC... | 1 | Kotlin | 0 | 0 | deb222231077505ca36e49b5a7dd996cccc730d4 | 1,793 | Yu-DB | Apache License 2.0 |
app/src/main/java/com/poemdistance/simplechart_kotlin/MainActivity.kt | EnthuDai | 446,307,487 | false | {"Kotlin": 44544} | package com.poemdistance.simplechart_kotlin
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import com.poemdistance.simplechart_kotlin.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
val LOG_TAG = "Chart"
l... | 0 | Kotlin | 1 | 3 | 5aac54dd431a6138dbdf700b795a8349f8e60bc8 | 3,504 | SimpleChart-Kotlin | MIT License |
src/main/kotlin/g2001_2100/s2047_number_of_valid_words_in_a_sentence/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2001_2100.s2047_number_of_valid_words_in_a_sentence
// #Easy #String #2023_06_23_Time_202_ms_(100.00%)_Space_38.3_MB_(100.00%)
class Solution {
fun countValidWords(sentence: String): Int {
val tokens = sentence.split("\\s+".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
var coun... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 1,543 | LeetCode-in-Kotlin | MIT License |
app/src/main/java/com/suji/android/suji_android/account/AccountViewModel.kt | suji-labs | 176,070,330 | false | null | package com.suji.android.suji_android.account
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.OnLifecycleEvent
import com.suji.android.suji_android.base.BaseApp
import com.suji.android.suji_android.base.BaseViewModel
import com.suji.android.suji_android.database.... | 0 | Kotlin | 0 | 1 | 742da9cc218af1ceb384d8f3c29eda7bac23974d | 2,281 | suji-android | MIT License |
multiplatform/src/commonMain/kotlin/com/vsevolodganin/clicktrack/training/TrainingValidState.kt | vganin | 293,315,190 | false | {"Kotlin": 611912, "C++": 4113, "Ruby": 2402, "Swift": 526, "CMake": 281} | package com.vsevolodganin.clicktrack.training
import com.vsevolodganin.clicktrack.model.BeatsPerMinute
import com.vsevolodganin.clicktrack.model.CueDuration
import com.vsevolodganin.clicktrack.utils.time.DurationSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.... | 7 | Kotlin | 1 | 22 | e0de3d92ee1921eda2053064fd4ae082b831caa9 | 1,388 | click-track | Apache License 2.0 |
jetbrains-core/src/software/aws/toolkits/jetbrains/utils/CoroutineUtils.kt | zaerald | 298,881,314 | true | {"Kotlin": 2576798, "Java": 188885, "C#": 94789} | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.utils
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.AppUIExecutor
import com.intellij.openapi.application.ModalityState
import com.... | 0 | null | 0 | 1 | 25bb745e59eda0e6304b51f1bd1d8b740915ff07 | 758 | aws-toolkit-jetbrains | Apache License 2.0 |
examples/cache/set/setAValue/main.kt | GWT-M3O-TEST | 485,009,715 | false | null |
package examples.cache.set
import com.m3o.m3okotlin.M3O
import com.m3o.m3okotlin.services.cache
suspend fun main() {
M3O.initialize(System.getenv("M3O_API_TOKEN"))
val req = CacheSetRequest(Key = "foo",
Value = "bar",)
try {
val response = CacheServ.set(req)
println(response)
} catch (e: Exce... | 1 | Kotlin | 1 | 0 | 54158b584ba47bd7323a484804dcd78c55ef7f69 | 352 | m3o-kotlin | Apache License 2.0 |
app/src/main/java/com/zhuinden/jetpacknavigationftuecomposeexample/features/registration/CreateLoginCredentialsScreen.kt | Zhuinden | 391,593,053 | false | null | package com.zhuinden.jetpacknavigationftuecomposeexample.features.registration
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.material.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.... | 0 | Kotlin | 1 | 18 | ff0b075dd87801f135079d35ba0be70afda436bd | 1,926 | jetpack-navigation-ftue-compose-sample | Apache License 2.0 |
app/src/main/java/com/tcc/alif/view/ui/consumer/home/HomeConsumerViewModel.kt | Limatucano | 343,949,865 | false | null | package com.tcc.alif.view.ui.consumer.home
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.tcc.alif.data.repository.HomeRepository
import com.tcc.alif.data.util.request
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.co... | 0 | Kotlin | 0 | 4 | cb64297f16b239bd07ce109e286d379e4fbf9908 | 1,157 | alif | MIT License |
maskinporten-spring-boot-client/src/test/kotlin/no/ks/fiks/maskinporten/MaskinportenPropertiesTest.kt | ks-no | 157,221,514 | false | null | package no.ks.fiks.maskinporten
import io.kotest.assertions.asClue
import io.kotest.assertions.throwables.shouldThrowExactly
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.nulls.beNull
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import io.kotest.matchers.throwable.shouldH... | 7 | null | 3 | 7 | 7d0d613f2afde7969bd26df9e4ab59edf1243105 | 2,841 | fiks-maskinporten | MIT License |
server/src/main/com/broll/gainea/server/core/player/MercenaryShop.kt | Rolleander | 253,573,579 | false | {"Kotlin": 499396, "Java": 305867, "HTML": 1714, "CSS": 1069, "Shell": 104, "Batchfile": 100, "JavaScript": 24} | package com.broll.gainea.server.core.player
import com.broll.gainea.net.NT_Event
import com.broll.gainea.net.NT_MercShop
import com.broll.gainea.server.core.Game
import com.broll.gainea.server.core.battle.BattleResult
import com.broll.gainea.server.core.objects.Soldier
import com.broll.gainea.server.core.objects.Unit
... | 0 | Kotlin | 0 | 3 | f77dc6ff9c27b7067227eca1205ab3c4ff873625 | 2,245 | Gainea | MIT License |
shared/src/commonMain/kotlin/link.peipei.countmoney/data/entities/TokenItem.kt | haoxikang | 675,957,687 | false | {"Kotlin": 181587, "Swift": 710, "Ruby": 361, "Shell": 228} | package link.peipei.countmoney.data.entities
import kotlinx.serialization.Serializable
@Serializable
data class TokenItem(
val scope: String,
val token_type: String,
val access_token: String,
val expires_in: String,
val id_token: String
) | 0 | Kotlin | 1 | 2 | 4cc2cc4c606938c97c271aab2b4adb0ffc4c1a61 | 260 | KMM-CountMoney | Apache License 2.0 |
online_services/src/main/java/com/infinitepower/newquiz/online_services/core/network/NetworkStatusTracker.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.online_services.core.network
import kotlinx.coroutines.flow.Flow
interface NetworkStatusTracker {
val netWorkStatus: Flow<NetworkStatus>
} | 0 | Kotlin | 10 | 91 | 832202441dd94df130f120d73699de18cbb4a768 | 178 | newquiz | Apache License 2.0 |
lytics-sdk/src/main/java/com/lytics/android/Response.kt | lytics | 525,540,467 | false | null | package com.lytics.android
import org.json.JSONObject
internal data class Response(val statusCode: Int = 0, val data: String? = null) {
val isOk: Boolean = statusCode in 1..399
val json: JSONObject?
get() {
return if (data != null) {
kotlin.runCatching { JSONObject(data) }.getOrNull()
... | 0 | Kotlin | 0 | 0 | fd04a017665c713edd1f8d2b33b4cfcdfb3dcfe7 | 372 | android-sdk | MIT License |
app/src/main/java/com/abner/base/bind/DataBindViewModel.kt | AbnerMing888 | 532,184,408 | false | {"Kotlin": 74663} | package com.abner.base.bind
import android.view.View
import android.widget.Toast
import com.vip.base.viewmodel.BaseViewModel
/**
*AUTHOR:AbnerMing
*DATE:2022/9/3
*INTRODUCE:
*/
class DataBindViewModel : BaseViewModel() {
var oneWayContent = "单向绑定数据测试"
var twoWayContent = "双向绑定数据测试"
/**
* AUTHO... | 1 | Kotlin | 13 | 56 | 556b83573bc11c01144b4ece9f4d2fe4425ad465 | 498 | VipBase | Apache License 2.0 |
src/main/kotlin/com/jakeesveld/gdp/GdpApplication.kt | JakeEsveldDevelopment | 190,762,602 | true | {"Kotlin": 12484, "HTML": 451} | package com.jakeesveld.gdp
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.web.servlet.DispatcherServlet
import org.springframework.web.servlet.config.annotation.EnableWebMvc
@EnableWebMvc
@SpringBootApplication
class Gdp... | 0 | Kotlin | 0 | 0 | 4aac451ca192b68a63b9690993cf50bbc29c4ef8 | 816 | Sprint-Challenge--Building-Java-Web-APIs-gdp | MIT License |
idea/testData/quickfix/typeMismatch/parameterTypeMismatch/afterChangeParameterTypeLongNameRuntime.kt | zarechenskiy | 34,719,076 | true | {"Java": 15943799, "Kotlin": 11597350, "JavaScript": 941194, "HTML": 34446, "Protocol Buffer": 12578, "CSS": 9431, "Shell": 9018, "Groovy": 3034, "Groff": 1520} | // "Change parameter 'x' type of function 'bar.foo' to '(HashSet<Int>) -> Int'" "true"
package bar
import java.util.HashSet
fun foo(w: Int = 0, x: (HashSet<Int>) -> Int, y: Int = 0, z: (Int) -> Int = {42}) {
foo(1, { a: java.util.HashSet<Int> -> 42}, 1)
}
| 1 | Java | 0 | 0 | cb9c28e73fc3f88d8e08ec7661ac169434c8311f | 262 | kotlin | Apache License 2.0 |
src/test/kotlin/com/github/harshadnawathe/logger/ExtensionTest.kt | harshadnawathe | 419,210,260 | false | null | package com.github.harshadnawathe.logger
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class Person {
fun bar() {
}
fun String.foo() {
}
}
class Email(value: String) {
init {
require(isValid(value)) {
"Invalid email address"
... | 0 | Kotlin | 0 | 0 | 06a9de07318811169acd4056aafbe0d36b5537d3 | 784 | kotlin-fun | MIT License |
SpringBootToolsFromLorenWang/src/springbase/lorenwang/tools/plugins/email/SptlwEmailUtil.kt | Loren-Wang | 164,838,761 | false | {"Java": 3140552, "Kotlin": 581207, "JavaScript": 23273, "HTML": 1721, "CSS": 930} | package springbase.lorenwang.tools.plugins.email
import kotlinbase.lorenwang.tools.extend.kttlwEmptyCheck
import springbase.lorenwang.tools.sptlwConfig
import java.util.*
import javax.activation.CommandMap
import javax.activation.MailcapCommandMap
import javax.mail.Authenticator
import javax.mail.Message
import javax.... | 5 | Java | 1 | 4 | 3669d165ef0b1667b37155978de4c1dd9660b903 | 5,172 | LorenWangCustomTools | Apache License 2.0 |
app/src/main/java/com/breezefsmparas/features/photoReg/adapter/ProsListSelectionListner.kt | DebashisINT | 646,827,078 | false | {"Kotlin": 15132793, "Java": 1023856} | package com.breezefsmparas.features.photoReg.adapter
import com.breezefsmparas.features.photoReg.model.ProsCustom
import com.breezefsmparas.features.photoReg.model.UserListResponseModel
interface ProsListSelectionListner {
fun getInfo(obj: ProsCustom)
} | 0 | Kotlin | 0 | 0 | b3a654585537264aaec676ba124110e998983033 | 259 | ParasPanMasala | Apache License 2.0 |
didsdk/android/src/main/kotlin/com/appgate/didsdk/util/DIDTypePush.kt | appgate | 668,476,346 | false | null | package com.appgate.didsdk.util
enum class DIDTypePush(val code: Int) {
PUSH_ALERT(0), PUSH_AUTH(1), QR_AUTH(2);
} | 0 | Kotlin | 0 | 0 | 1fa974c6ba221214898897d3750a1671028fbfc4 | 121 | fp-rba-didsdk-example-flutter-native-wrapper | MIT License |
app/src/main/java/com/keithsmyth/ecommerce/model/ProductModel.kt | keithsmyth | 610,826,987 | false | null | package com.keithsmyth.ecommerce.model
data class ProductPreviewModel(
val id: Int,
val name: String,
val thumbnailUrl: String,
)
data class ProductModel(
val id: Int,
val name: String,
val imageUrl: String,
val description: String,
)
| 0 | Kotlin | 0 | 0 | 6b9d4c9505f354571094c57983870f26c19ff167 | 265 | Ecommerce | Apache License 2.0 |
app/src/main/java/com/allever/android/dependency/lib/SecondActivity.kt | devallever | 193,082,578 | false | null | package com.allever.android.dependency.lib
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.allever.lib.common.app.BaseActivity
class SecondActivity: BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 1 | null | 4 | 14 | 341bb332804ac5fbc067b6ac255ba4d42d82f91e | 698 | AndroidDependencyLib | Apache License 2.0 |
app/src/main/java/com/sedsoftware/yaptalker/presentation/feature/topic/fabmenu/FabOverlay.kt | djkovrik | 98,050,611 | false | null | package com.sedsoftware.yaptalker.presentation.feature.topic.fabmenu
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isVisible
class FabOverlay(private val view: View) : FabMenuItem {
override fun show() {
view.isVisible = true
}
override fun hide() {
... | 0 | Kotlin | 4 | 9 | 465c34c3dc0dd0488b637073fddf6cd797e78613 | 347 | YapTalker | Apache License 2.0 |
app/src/main/java/com/sedsoftware/yaptalker/presentation/feature/topic/fabmenu/FabOverlay.kt | djkovrik | 98,050,611 | false | null | package com.sedsoftware.yaptalker.presentation.feature.topic.fabmenu
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isVisible
class FabOverlay(private val view: View) : FabMenuItem {
override fun show() {
view.isVisible = true
}
override fun hide() {
... | 0 | Kotlin | 4 | 9 | 465c34c3dc0dd0488b637073fddf6cd797e78613 | 347 | YapTalker | Apache License 2.0 |
app/src/main/java/com/chenguang/simpleclock/dagger/module/DatabaseModule.kt | lcgforever | 229,995,622 | false | null | package com.chenguang.simpleclock.dagger.module
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase.CONFLICT_ABORT
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteDatabase
import com.chenguang.simpleclock.d... | 0 | Kotlin | 0 | 0 | 0421c994cac14e762f1fb4c01e128d8b4ad5015b | 2,407 | SimpleClock | MIT License |
pom-application/app/src/main/java/net/dzikoysk/presenceofmind/pages/dashboard/list/attributes/ChecklistAttributeRenderer.kt | dzikoysk | 487,407,030 | false | null | package net.dzikoysk.presenceofmind.pages.dashboard.list.attributes
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Checkbox
import androi... | 6 | Kotlin | 3 | 27 | 599a80c21456ecddff583ada228b3467987f291c | 3,111 | presence-of-mind | Apache License 2.0 |
ServiceSample/app/src/main/java/org/ybk/servicesample/MyService.kt | YunByungKwan | 363,130,956 | false | null | package org.ybk.servicesample
import android.app.Service
import android.content.Intent
import android.os.*
import android.util.Log
import java.lang.Exception
class MyService: Service() {
val mBinder = MyBinder()
inner class MyBinder: Binder() {
fun getService(): MyService {
return this@My... | 0 | Kotlin | 0 | 0 | f72c0a1d5406aa72065491afadaf4e084cbb249c | 1,120 | Android4ComponentsSample | MIT License |
app/src/main/kotlin/maxeem/america/nasa/net/NasaApi.kt | maxeema | 228,571,572 | false | null | package maxeem.america.nasa.net
import com.jakewharton.retrofit2.adapter.kotlin.coroutines.CoroutineCallAdapterFactory
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import maxeem.america.nasa.Conf
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingIntercep... | 0 | Kotlin | 0 | 0 | 23958ba414d82f411b1c3b29ec31bce48c0970b6 | 1,887 | nasa | MIT License |
src/main/kotlin/yuque2mk/dto/Doc.kt | Frederick-S | 364,578,771 | false | null | package yuque2mk.dto
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
@JsonIgnoreProperties(ignoreUnknown = true)
class Doc {
var id: Long = 0
var title = ""
var slug = ""
var status = 0
var public = 0
@get:JsonProperty("cre... | 3 | Kotlin | 0 | 1 | 8257df58d907cf07c4d340e53da209bb9eb1569b | 485 | yuque-to-markdown-api | MIT License |
src/main/kotlin/sh/miles/pineappleenvoys/configuration/adapter/LootConfigurationAdapter.kt | PineappleDevelopmentGroup | 861,381,196 | false | {"Kotlin": 91315} | package sh.miles.pineappleenvoys.configuration.adapter
import sh.miles.pineapple.collection.WeightedRandom
import sh.miles.pineapple.item.ItemSpec
import sh.miles.pineapple.util.serialization.SerializedDeserializeContext
import sh.miles.pineapple.util.serialization.SerializedElement
import sh.miles.pineapple.util.seri... | 0 | Kotlin | 0 | 0 | d14e39ed2da20be1d896e8948fa80b3de88ee7a4 | 2,118 | PineappleEnvoys | Apache License 2.0 |
src/nativeGen/kotlin/godot/PhysicsServer.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.RID
import godot.core.Transform
import godot.core.Variant
import godot.core.VariantArray
import godot.core.Vector3
import kotlin.Boolean
import kotlin.Float
import kotlin.Int
i... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 86,005 | godot-kotlin | MIT License |
io/http/src/test/kotlin/io/bluetape4k/http/hc5/examples/AsyncClientH2Multiplexing.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.http.hc5.examples
import io.bluetape4k.coroutines.support.coAwait
import io.bluetape4k.http.hc5.AbstractHc5Test
import io.bluetape4k.http.hc5.async.asyncClientConnectionManager
import io.bluetape4k.http.hc5.async.methods.simpleHttpRequest
import io.bluetape4k.http.hc5.async.minimalHttpAsyncClient... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 2,296 | bluetape4k | MIT License |
src/test/kotlin/com/github/shiguruikai/combinatoricskt/CombinationsWithRepetitionGeneratorTest.kt | shiguruikai | 139,833,116 | false | null | /*
* Copyright (c) 2020 shiguruikai
*
* Licensed under the MIT license
* https://github.com/shiguruikai/combinatoricskt/blob/master/LICENSE
*/
package com.github.shiguruikai.combinatoricskt
import com.github.shiguruikai.combinatoricskt.internal.combinationsWithRepetition
import org.junit.jupiter.api.Assertions.a... | 1 | Kotlin | 1 | 24 | 39fad45833e2f1808367044c62805657a31e22ff | 5,139 | combinatoricskt | MIT License |
app/src/main/java/me/impa/knockonports/database/entity/LogEntry.kt | impalex | 147,786,143 | false | null | /*
* Copyright (c) 2020 Alexander Yaburov
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Li... | 6 | Kotlin | 7 | 35 | 57b0eb2148a3a7cae416188f8dd092a5f3423d69 | 1,426 | knockonports | Apache License 2.0 |
src/main/kotlin/com/kraktun/kbotexample/services/pingpong/PingListener.kt | Kraktun | 342,866,615 | false | null | package com.kraktun.kbotexample.services.pingpong
interface PingListener {
fun onPongTimeExceeded()
}
| 0 | Kotlin | 0 | 0 | 8101fb20f772826c7c95a1281b0d52fb39bb0f5f | 108 | KBotExamples | Apache License 2.0 |
app/src/main/java/com/rentmycar/rentmycar/fragment/UserLoginFragment.kt | AvansJava | 430,307,410 | false | {"Kotlin": 267110} | package com.rentmycar.rentmycar.fragment
import android.graphics.Color
import android.os.Bundle
import android.util.Patterns
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.widget.Toast
import androi... | 0 | Kotlin | 1 | 0 | 79af0c546d60eb54931abf091af2a07436f04d50 | 4,663 | RentMyCar.ANDROID | MIT License |
src/main/kotlin/com/shop/products/domain/sortCriterion/SortCriterionCalculatorFactory.kt | ortzit | 588,314,011 | false | null | package com.shop.products.domain.sortCriterion
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
@Service
class SortCriterionCalculatorFactory @Autowired constructor(
private val sortCriterionCalculatorBuilders: List<SortCriterionCalculatorBuilder>,
) {
... | 0 | Kotlin | 0 | 0 | 0f62268b3a698bcfd5b31ecf180cbf972fb10ad8 | 671 | shop-products-sorting | MIT License |
src/main/kotlin/no/risc/github/models/GithubResponse.kt | kartverket | 738,125,421 | false | {"Kotlin": 114251, "Dockerfile": 493} | package no.risc.github.models
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
@JsonIgnoreProperties(ignoreUnknown = true)
data class FileContentDTO(
val content: String,
)
@JsonIgnoreProperties(ignoreUnknown = true)
data class ShaResponseDTO(
... | 19 | Kotlin | 2 | 2 | 69cde0663313a821d7daea94724e9c551377c8ed | 817 | backstage-plugin-risk-scorecard-backend | MIT License |
src/main/kotlin/Channel.kt | aarroyoc | 633,073,076 | false | null | package channel
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
fun main() = runBlocking {
val channel = Channel<Int>()
launch {
for (x in 1..5) {
delay(1000L)
channel.send(x * x)
}
}
repeat(5) { println(channel.receive()) }
println("... | 0 | Kotlin | 0 | 0 | 4af787d16d4f4b7358a6149577670e82b2e5a1a8 | 329 | TallerKotlin | The Unlicense |
feature-settings/src/main/java/de/niklasbednarczyk/nbweather/feature/settings/screens/colorscheme/SettingsColorSchemeUiState.kt | NiklasBednarczyk | 529,683,941 | false | null | package de.niklasbednarczyk.nbweather.feature.settings.screens.colorscheme
import de.niklasbednarczyk.nbweather.core.ui.radio.NBRadioGroupModel
import de.niklasbednarczyk.nbweather.data.settings.models.appearance.ColorSchemeTypeData
data class SettingsColorSchemeUiState(
val radioGroup: NBRadioGroupModel<ColorSch... | 22 | Kotlin | 0 | 0 | b2d94e99336b908a48e784febda56a4750039cb2 | 342 | NBWeather | MIT License |
app/src/main/java/com/patrickchow/financeforsuccess/ui/screens/presentcalculator/PresentValueScreen.kt | PatrickChow0803 | 876,307,431 | false | {"Kotlin": 61966} | package com.patrickchow.financeforsuccess.ui.screens.presentcalculator
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.navigation.NavController
import com.patrickchow.financeforsuccess.R
import com.patrickcho... | 0 | Kotlin | 0 | 1 | 7d27f8adc90b90cbe01a5af479d750cda1c6dbab | 3,490 | Finance-For-Success | MIT License |
src/main/kotlin/de/debuglevel/latex/compiler/LatexPdfCompilerService.kt | debuglevel | 174,361,236 | false | null | package de.debuglevel.latex.compiler
import de.debuglevel.latex.command.Command
import de.debuglevel.latex.packages.MiktexPackageManager
import jakarta.inject.Singleton
import mu.KotlinLogging
import java.nio.file.Files
import java.nio.file.Path
/**
* Compiles LaTeX to PDF
*/
@Singleton
class LatexPdfCompilerServic... | 0 | Kotlin | 0 | 0 | 46606883bd1be2612cafcadcfbada0b2fbb42ab6 | 2,115 | latex-microservice | The Unlicense |
androidApp/src/commonMain/kotlin/com/example/rocketnews/di/PlatformModule.kt | KarelHudera | 701,516,774 | false | {"Kotlin": 171377, "Swift": 578} | package com.example.rocketnews.di
import org.koin.core.module.Module
expect fun platformModule(): Module
| 0 | Kotlin | 0 | 4 | 90ca0c43d9c3345dfd6efb3685c12b02f769ce95 | 107 | Rocket_News_KMM | Apache License 2.0 |
app/src/main/java/com/adematici/weatherapp/repository/WeatherRepository.kt | aticiadem | 406,470,488 | false | {"Kotlin": 19286} | package com.adematici.weatherapp.repository
import com.adematici.weatherapp.model.Weather
import com.adematici.weatherapp.service.WeatherAPI
import com.adematici.weatherapp.util.Resource
import dagger.hilt.android.scopes.ActivityScoped
import java.lang.Exception
import javax.inject.Inject
@ActivityScoped
class Weathe... | 0 | Kotlin | 1 | 26 | fb2f3e682099cb0211829f1909d5ab4c41ecb707 | 669 | Weather-App-With-Compose | MIT License |
src/main/kotlin/com/example/howto/WebApiController.kt | nekikara | 99,927,866 | false | null | package com.example.howto
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.ExceptionHandler
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotati... | 0 | Kotlin | 0 | 0 | 0f554d83b9a992a8a26a2279579e5c74c51474f7 | 1,063 | spring-boot-tutorial | MIT License |
app/src/main/java/com/ehmaugbogo/otpinverification/utils/helpers.kt | EhmaUgbogo | 373,377,981 | false | null | package com.ehmaugbogo.otpinverification.utils
import android.content.Context
import android.widget.Toast
import androidx.fragment.app.FragmentActivity
import com.ehmaugbogo.otpinverification.R
import com.ehmaugbogo.otpinverificationlibrary.OtpinDialogCreator
import com.ehmaugbogo.otpinverificationlibrary.utils.OtpDis... | 0 | Kotlin | 1 | 18 | 9251441c8f86f3670575dd2195f44f950f4bf7e6 | 1,859 | OtpinVerification | The Unlicense |
privacysandbox/tools/tools-apicompiler/src/test/test-data/sdkwithpackages/output/com/myotherpackage/MyOtherPackageDataClassConverter.kt | androidx | 256,589,781 | false | null | package com.myotherpackage
import android.content.Context
public class MyOtherPackageDataClassConverter(
public val context: Context,
) {
public fun fromParcelable(parcelable: ParcelableMyOtherPackageDataClass):
MyOtherPackageDataClass {
val annotatedValue = MyOtherPackageDataClass(
... | 29 | null | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 654 | androidx | Apache License 2.0 |
app/src/main/java/com/basar/moviehunter/domain/imagestorage/UploadImageUseCase.kt | basarYargici | 507,985,728 | false | {"Kotlin": 152176} | package com.basar.moviehunter.domain.imagestorage
import android.net.Uri
import com.basar.moviehunter.data.remote.repository.ImageStorageRepository
import com.example.core.base.UseCase
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class UploadImageUseCase @Inject constructor(
val repository: Imag... | 0 | Kotlin | 0 | 6 | 7ae064207ce3507529958d51542e2e012e535cfb | 598 | movie-hunt | MIT License |
reduKtor/src/main/reduktor/com/stepanov/reduktor/manager/TransformationManager.kt | petukhovv | 216,533,129 | true | {"Kotlin": 4030796, "JavaScript": 3066112, "Python": 2600, "Java": 640, "Shell": 87} | package com.stepanov.reduktor.manager
import com.intellij.psi.PsiWhiteSpace
import com.stepanov.reduktor.executor.CommonCompilerCrashTestChecker
import com.stepanov.reduktor.executor.CompilerArgs
import com.stepanov.reduktor.executor.CompilerTestChecker
import com.stepanov.reduktor.executor.backends.CommonBackend
impo... | 0 | Kotlin | 0 | 0 | 6f5c65e49acc03370285b4994afb917cae9d6fda | 18,427 | bbf | Apache License 2.0 |
compiler/src/main/java/com/bennyhuo/tieguanyinsimple/compiler/activity/method/ConstantBuilder.kt | bennyhuo | 150,657,801 | false | null | /*
* Copyright (C) 2018 Bennyhuo.
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*
* Unless required by applicable law or agreed to in writing, software... | 1 | null | 8 | 72 | 713fa3384797dc0faf64337a380d1b03a815e164 | 1,387 | Apt-Tutorials | MIT License |
modules/features/root/src/commonMain/kotlin/com/makeevrserg/empireprojekt/mobile/features/root/di/ServicesModule.kt | makeevrserg | 655,032,944 | false | {"Kotlin": 257559, "Swift": 16767, "Ruby": 2281} | package com.makeevrserg.empireprojekt.mobile.features.root.di
import com.makeevrserg.empireprojekt.mobile.services.core.LinkBrowser
import com.russhwolf.settings.Settings
import io.ktor.client.HttpClient
import kotlinx.coroutines.CoroutineScope
import kotlinx.serialization.json.Json
import ru.astrainteractive.klibs.kd... | 2 | Kotlin | 0 | 3 | 490bc9deb348be7d80540c9e39477a1692d3ab57 | 910 | EmpireProjekt-Mobile | RSA Message-Digest License |
buildSrc/src/main/kotlin/BuildSrcUtil.kt | funczz | 349,340,506 | false | null | import org.gradle.api.JavaVersion
object BuildSrcUtil {
fun javaVersionToJvmTarget(version: JavaVersion): String {
return version
.name
.replace("VERSION_", "")
.replace("_", ".")
}
} | 0 | Kotlin | 0 | 0 | 814009ebbb37cb5d6a0f3001fd39e9e5e5b4e711 | 238 | payara-micro-gradle-plugin | Apache License 2.0 |
src/main/kotlin/openq/model/Contcar.kt | huobingnan | 379,947,614 | false | null | package openq.model
import openq.constants.CoordinateType
/**
* VASP坐标文件形式
* name:VASP计算例程的名字
* scale:缩放比例
* matrix:晶胞矩阵
* componentsNameList:元素名称列表
* componentNumberList:元素数量列表
* coordinateType:坐标类型:分为分数坐标和笛卡尔坐标两种形式
* componentAmount: 元素数量
* componentCoordinates: 元素的坐标
*/
data class Contcar(
var name: ... | 0 | Kotlin | 0 | 1 | d691fddc04e520282f8b7bdb058a6a5a7a158037 | 1,555 | QTools-Swing | MIT License |
appcomponent-codegen/src/main/java/dev/steinerok/sealant/appcomponent/NamesExt.kt | SteinerOk | 516,908,826 | false | {"Kotlin": 125442} | /*
* Copyright 2022 <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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 2 | Kotlin | 3 | 7 | bf88ded61e0ea1c4273872bc39a5c6cb2157fd87 | 1,608 | sealant | Apache License 2.0 |
kotlin-remix-run-router/src/jsMain/generated/remix/run/router/Blocker.kt | JetBrains | 93,250,841 | false | null | @file:Suppress(
"NON_EXTERNAL_DECLARATION_IN_INAPPROPRIATE_FILE",
)
package remix.run.router
typealias Blocker = Any /* BlockerUnblocked | BlockerBlocked | BlockerProceeding */
| 28 | Kotlin | 170 | 1,209 | 2c81d207ab67e7bd8d85571a8b2c88812ef4a3cf | 184 | kotlin-wrappers | Apache License 2.0 |
backend/src/main/kotlin/ch/zhaw/pm4/simonsays/service/printer/PrintQueueService.kt | SimonSays-PM4 | 766,576,264 | false | {"Kotlin": 471832, "TypeScript": 405650, "JavaScript": 1971, "CSS": 1791, "Dockerfile": 1104, "HTML": 462} | package ch.zhaw.pm4.simonsays.service.printer
import ch.zhaw.pm4.simonsays.repository.printer.PrintQueueRepository
import org.springframework.stereotype.Service
@Service
class PrintQueueService(
private val printQueueRepository: PrintQueueRepository,
) {
fun doesPrintQueueExist(id: String): Boolean {
... | 16 | Kotlin | 0 | 5 | dfa6cf15770ae0749ca5062b3610c5d5da79ba07 | 371 | simon-says | MIT License |
src/main/kotlin/com/ackdevelopment/songport/sites/Playlists.kt | aedans | 193,472,406 | false | null | package com.ackdevelopment.songport.sites
import com.ackdevelopment.songport.getPlaylist
import com.ackdevelopment.songport.getSong
import com.ackdevelopment.songport.models.Playlist
import kotlinx.html.a
import kotlinx.html.br
import kotlinx.html.h1
import kotlinx.html.style
import org.jetbrains.ktor.http.ContentType... | 0 | Kotlin | 0 | 0 | 2620e736640a88e99fd415f55f2e7b7f1df3eb87 | 1,203 | songport | MIT License |
app/src/main/java/com/selva/example_employee_app/model/Attendance.kt | konguselva | 275,070,204 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 42, "Kotlin": 61, "Java": 1} | package com.selva.example_employee_app.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity(tableName = "attendance")
data class Attendance(
@SerializedName("id") @ColumnInfo(name = "id") var id: Int,
@Seria... | 0 | Kotlin | 0 | 0 | 718f1ab27024273de8846eeb662ea7b6612e7eb1 | 530 | Employee_App | MIT License |
app/src/main/java/com/workfort/pstuian/util/di/ViewModelModule.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1051684} | package com.workfort.pstuian.util.di
import com.workfort.pstuian.app.ui.blooddonationrequest.viewmodel.BloodDonationViewModel
import com.workfort.pstuian.app.ui.checkin.viewmodel.CheckInViewModel
import com.workfort.pstuian.app.ui.common.locationpicker.viewmodel.CheckInLocationViewModel
import com.workfort.pstuian.app... | 0 | Kotlin | 0 | 2 | 981e8c097318e3bdcfb10c0cd1968bbb2e0ef899 | 1,493 | PSTUian-android | Apache License 2.0 |
app/src/main/java/com/stocksexchange/android/model/DecimalSeparator.kt | nscoincommunity | 277,168,471 | true | {"Kotlin": 2814235} | package com.stocksexchange.android.model
import androidx.annotation.StringRes
import com.stocksexchange.android.R
enum class DecimalSeparator(
val separator: Char,
@StringRes val titleId: Int
) {
PERIOD(
separator = '.',
titleId = R.string.decimal_separator_period
),
COMMA(
... | 0 | null | 0 | 0 | 52766afab4f96506a2d9ed34bf3564b6de7af8c3 | 399 | Android-app | MIT License |
feature-main/src/main/java/sanchez/sanchez/sergio/feature_main/persistence/db/mapper/PersonEntityMapper.kt | sergio11 | 332,195,948 | false | null | package sanchez.sanchez.sergio.feature_main.persistence.db.mapper
import sanchez.sanchez.sergio.feature_main.domain.model.Person
import sanchez.sanchez.sergio.feature_main.persistence.db.model.people.PersonEntity
import sanchez.sanchez.sergio.movie_addicts.core.persistence.db.mapper.IEntityToModelMapper
import java.ut... | 0 | Kotlin | 0 | 6 | eef4f5b03c33f1efd937d546ebdea84c3255d445 | 1,175 | MovieAddicts | MIT License |
domain/src/main/java/com/darklabs/domain/di/module/UseCaseModule.kt | rooparsh | 376,034,520 | false | null | package com.darklabs.domain.di.module
import com.darklabs.data.repository.JokeRepository
import com.darklabs.data.repository.NotesRepository
import com.darklabs.domain.usecase.GetNotesUseCase
import com.darklabs.domain.usecase.GetRandomJokeUseCase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallI... | 1 | Kotlin | 0 | 3 | b9026e80857a7d1a267f900d0ce639574bff37ce | 790 | JetNotes | Apache License 2.0 |
src/main/kotlin/com/jacobtread/alto/authlib/GameProfileRepo.kt | AltoClient | 451,187,573 | false | {"Kotlin": 28192} | package com.jacobtread.alto.authlib
import com.google.gson.JsonObject
import com.jacobtread.alto.authlib.exceptions.AuthException
import java.net.URL
/**
* GameProfileRepo A Repository for fetching game profiles from
* the mojang profiles API
*
* @constructor Create empty GameProfileRepo
*/
object GameProfileRep... | 0 | Kotlin | 0 | 3 | a504e44c31b2b8e93b68d269cb42189c08481118 | 1,294 | AuthLib | MIT License |
android/src/main/kotlin/de/gigadroid/flutterudid/FlutterUdidPlugin.kt | wangduan023 | 230,363,487 | false | null | package de.gigadroid.flutterudid
import android.annotation.SuppressLint
import android.provider.Settings
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.flutter.plugin.common.MethodChannel.Result
import io.flutter.plugin.common.MethodCall
import i... | 1 | null | 1 | 1 | 3447f6766070c3bc95599377b7b6b20267d16a59 | 1,243 | flutter_udid | MIT License |
app/src/main/java/com/vdcodeassociate/fitme/viewmodel/HomeViewModel.kt | thisisvd | 421,805,065 | false | {"Kotlin": 182376} | package com.vdcodeassociate.fitme.viewmodel
import androidx.lifecycle.*
import com.digitalinclined.edugate.models.youtubemodel.Item
import com.vdcodeassociate.fitme.model.homemodel.WeekStatsHome
import com.vdcodeassociate.fitme.restapi.weatherapi.model.WeatherResponse
import com.vdcodeassociate.fitme.room.runs.Run
imp... | 0 | Kotlin | 2 | 2 | c6d474969f35a6cee0b5d0e131e37b2c5537fa2b | 4,191 | FitMe-App | Apache License 2.0 |
invirt-http4k/src/test/kotlin/invirt/pebble/PebbleFilterTest.kt | resoluteworks | 762,239,437 | false | {"Kotlin": 215738, "Makefile": 628, "CSS": 8} | package invirt.pebble
import invirt.http4k.GET
import io.kotest.assertions.throwables.shouldThrowWithMessage
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import org.http4k.core.Method
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Status
import o... | 0 | Kotlin | 0 | 0 | f5b6f9861a6779ec65d8fdefe9aefe4992ed3fdc | 1,379 | invirt | Apache License 2.0 |
server/src/main/kotlin/io/provenance/invoice/Application.kt | hyperschwartz | 446,950,410 | false | {"Kotlin": 270514, "Shell": 2246, "Dockerfile": 263} | package io.provenance.invoice
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
import java.util.TimeZone
@SpringBootApplication
@EnableScheduling
class Application
fun main(args: Array<... | 0 | Kotlin | 0 | 0 | d69c623e3c0ae51a2bbb2dde73bcdc860a0b2a39 | 483 | service-invoice | Apache License 2.0 |
app/src/main/java/com/prattham/mynotes/adapter/NotesAdapter.kt | PratthamArora | 215,245,778 | false | null | package com.prattham.mynotes.adapter
import android.text.format.DateFormat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.firebase.ui.firestore.FirestoreRecyclerAdapter
import com.firebase.ui.firestore.FirestoreRecyc... | 0 | Kotlin | 2 | 2 | 14a6036558bf04d278e6cdfbed04b38bc6b2d99c | 2,860 | MyNotes | MIT License |
app/src/main/java/com/stemlabs/ellu/data/model/FaqCategoryModel.kt | StemlabsSL | 329,898,048 | false | {"Java": 2282866, "Kotlin": 680962, "Assembly": 135} | package com.stemlabs.ellu.data.model
data class FaqCategoryModel(var title: String, var arrayList: MutableList<FaqModel>, var isClicked: Boolean = false) | 1 | null | 1 | 1 | 0560654991402f229b1fcb3a65e8d6ee23c0763b | 154 | Stemlabschat-Android | Apache License 2.0 |
src/main/kotlin/dwt/Dwt61.kt | sssemil | 268,084,789 | false | null | package dwt
import com.marcinmoskala.math.permutations
import com.marcinmoskala.math.pow
import utils.Rational
import utils.factorial
import utils.rencontresNumber
import utils.stat.DiscreteVariable
import utils.toRational
class Dwt61 {
private fun calc(n: Int) {
val discreteVariable = DiscreteVariable((... | 0 | Kotlin | 0 | 0 | 02d951b90e0225bb1fa36f706b19deee827e0d89 | 2,394 | math_playground | MIT License |
http/src/main/java/com/yww/http/manager/RetrofitUrlManager.kt | wavening | 180,977,597 | false | {"Gradle": 14, "Java Properties": 4, "Shell": 1, "Text": 9, "Ignore List": 12, "Batchfile": 1, "Markdown": 1, "Proguard": 11, "XML": 65, "Kotlin": 113, "Java": 2, "JSON": 12, "SQL": 2, "Motorola 68K Assembly": 3, "Unix Assembly": 1} | package com.yww.http.manager
import android.text.TextUtils
import android.util.Log
import com.yww.http.manager.other.OnUrlChangeListener
import com.yww.http.manager.other.UrlUtils
import com.yww.http.manager.parser.UrlParser
import com.yww.http.manager.parser.UrlParserDefault
import okhttp3.*
import java.io.IOExceptio... | 1 | null | 1 | 1 | 964e3eaa52e2aefdc10b883394910e61fdb2e467 | 14,129 | KotlinLibs | Apache License 2.0 |
app/src/main/java/com/cafeyvinowinebar/cafe_y_vino_client/ui/carta/when_present/cuenta/CuentaViewModel.kt | dimitriinc | 533,330,209 | false | null | package com.cafeyvinowinebar.cafe_y_vino_client.ui.carta.when_present.cuenta
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cafeyvinowinebar.cafe_y_vino_client.data.PreferencesManager
import com.cafeyvinowinebar.cafe_y_vino_client.data.repositories.MenuDataRepository
import com... | 0 | Kotlin | 0 | 0 | e7178580de33ab7fe641d24591440b4871ccf194 | 3,691 | cafe-y-vino-app-client-kotlin | MIT License |
projects/make-recall-decisions-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/api/model/Offence.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4300338, "HTML": 70066, "D2": 42781, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.api.model
import java.time.LocalDate
data class Offence(
val date: LocalDate?,
val code: String,
val description: String
)
| 3 | Kotlin | 0 | 2 | 1636e67b6ad6ecfc36ac86a9b343bc4f85c1d9d9 | 174 | hmpps-probation-integration-services | MIT License |
teller/src/test/java/com/kiliansteenman/teller/TellerTest.kt | KilianSteenman | 204,119,818 | false | null | package com.kiliansteenman.teller
import org.junit.After
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class TellerTest {
@After
fun cleanup() {
Teller.instance.clearAdapters()
}
@Test
fun `when adapter is registered for type, then adapter i... | 0 | Kotlin | 0 | 2 | 43f4ebee325213b5f8aee808602024060ccddd0b | 1,402 | Teller | MIT License |
src/test/kotlin/NewApiTest.kt | natanfudge | 200,804,322 | false | {"Gradle": 2, "Markdown": 3, "INI": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "TOML": 1, "Java Properties": 1, "Kotlin": 20, "Java": 1, "JSON": 2, "YAML": 1} | import kotlinx.serialization.Serializable
import kotlinx.serialization.minecraft.*
import net.fabricmc.fabric.api.networking.v1.PacketByteBufs
import kotlin.test.Test
import kotlin.test.assertEquals
@Serializable
data class Dog(val woof: Int)
class NewApiTest {
@Test
fun newBufApiWorks() {
val dog = Do... | 1 | Kotlin | 3 | 8 | 69573688c742d2ded1ef2720d19a099129f33917 | 683 | Kotlinx-Serialization-Minecraft | MIT License |
imla/src/main/java/dev/serhiiyaremych/imla/uirenderer/postprocessing/mask/MaskShaderProgram.kt | desugar-64 | 792,899,184 | false | {"Kotlin": 220573, "GLSL": 11616} | /*
* Copyright 2024, <NAME>
* SPDX-License-Identifier: MIT
*/
package dev.serhiiyaremych.imla.uirenderer.postprocessing.mask
import android.content.res.AssetManager
import dev.serhiiyaremych.imla.renderer.Shader
import dev.serhiiyaremych.imla.renderer.SimpleRenderer
import dev.serhiiyaremych.imla.renderer.Texture
... | 0 | Kotlin | 3 | 79 | d72a90165993d1f9f0187ef9a6ac4aa849e9a563 | 1,090 | imla | MIT License |
repoSearch/src/main/java/com/beok/reposearch/di/RepoSearchDI.kt | BeokBeok | 206,980,782 | true | {"Kotlin": 71871} | package com.beok.reposearch.di
import androidx.room.Room
import com.beok.reposearch.data.RepoSearchDataSource
import com.beok.reposearch.data.RepoSearchRepository
import com.beok.reposearch.data.source.local.RepoSearchDatabase
import com.beok.reposearch.data.source.local.RepoSearchLocalDataSource
import com.beok.repos... | 0 | Kotlin | 0 | 1 | 3d1b4347cc5a626bdd845a6e9dfa486c1d19c52f | 1,875 | GitBeokTree | MIT License |
app/src/main/java/com/android/goally/data/network/rest/api/GeneralApi.kt | zeshanashraf829 | 862,262,001 | false | null | package com.android.goally.data.network.rest.api
import com.android.goally.constants.WebServiceConstant
import com.android.goally.data.model.api.ErrorResponse
import com.android.goally.data.model.api.response.health.ServerHealthApiResponse
import com.android.goally.data.db.entities.token.Authentication
import com.andr... | 0 | null | 0 | 1 | c2ec362a6d4845407655b0f682fdcc283500f981 | 873 | basicStructureMvvmDI | Apache License 2.0 |
kafka/rest/client/src/main/kotlin/org/http4k/connect/kafka/rest/v2/action/DeleteConsumer.kt | http4k | 295,641,058 | false | {"Kotlin": 1624429, "Handlebars": 10370, "CSS": 5434, "Shell": 3178, "JavaScript": 2076, "Python": 1834, "HTML": 675} | package org.http4k.connect.kafka.rest.v2.action
import org.http4k.connect.Http4kConnectAction
import org.http4k.connect.kClass
import org.http4k.connect.kafka.rest.action.NullableKafkaRestAction
import org.http4k.connect.kafka.rest.model.ConsumerGroup
import org.http4k.connect.kafka.rest.model.ConsumerInstance
import ... | 7 | Kotlin | 17 | 37 | 94e71e6bba87d9c79ac29f7ba23bdacd0fdf354c | 716 | http4k-connect | Apache License 2.0 |
android/JDCache/src/main/java/com/jd/jdcache/util/CancellableJob.kt | JDFED | 561,670,655 | false | null | package com.jd.jdcache.util
import androidx.annotation.Keep
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.Job
@Keep
class CancellableJob(private val job: Job?) : ICancellable{
override fun cancel(msg: String?) {
if (job?.isCompleted == false) {
val exMsg = if (msg.... | 0 | HTML | 9 | 89 | 81f3a37f1caf33f4196e140604aa91c4c92663a2 | 517 | JDHybrid | MIT License |
app/src/main/java/stan/androiddemo/project/Game2048/AnimationGrid.kt | DuckDeck | 97,593,471 | false | null | package stan.androiddemo.project.Game2048
/**
* Created by hugfo on 2017/8/19.
*/
class AnimationGrid(x: Int, y: Int) {
var field: Array<Array<ArrayList<AnimationCell>?>> = Array(x) { arrayOfNulls<ArrayList<AnimationCell>>(y) }
internal var activeAnimations = 0
internal var oneMoreFrame = false
var ... | 1 | null | 40 | 120 | 4d8d12c1f0ef821a252a2265ae46d7b8ff61729a | 2,669 | AndroidDemo | MIT License |
backend.native/tests/codegen/mpp/mpp1.kt | mano7onam | 122,908,795 | true | {"Kotlin": 4630329, "C++": 803727, "Groovy": 137600, "C": 119742, "Objective-C++": 66838, "Swift": 29084, "JavaScript": 19411, "Shell": 11621, "Batchfile": 7004, "Python": 4775, "Objective-C": 3532, "Pascal": 1698, "Java": 782, "HTML": 185} | package codegen.mpp.mpp1
import kotlin.test.*
fun box() {
assertEquals(A().B().fourtyTwo(), 42)
assertEquals(seventeen(), 17)
}
expect class A {
constructor()
inner class B {
fun fourtyTwo(): Int
constructor()
}
}
actual class A {
actual inner class B actual constructor() {... | 0 | Kotlin | 0 | 12 | d5169f2370a6b20ae91fc31999fe5ebefcb4344d | 457 | kotlin-native | Apache License 2.0 |
src/main/kotlin/net/walksanator/uxncraft/Uxncraft.kt | walksanatora | 764,981,104 | false | {"Gradle": 2, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Java": 12, "JSON": 3, "GLSL": 2, "Kotlin": 16, "YAML": 1} | package net.walksanator.uxncraft
import net.fabricmc.api.EnvType
import net.fabricmc.api.ModInitializer
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents
import net.fabricmc.loader.api.FabricLoader
import net.minecraft.util.WorldSavePath
import net.walksanator.uxncraft.regs.*
import org.slf4j.Log... | 0 | Java | 0 | 0 | 79810b8434d36684e2f928fdbb9c6c0bf015ac00 | 1,172 | uxncraft | Creative Commons Zero v1.0 Universal |
build-logic/convention/src/main/kotlin/AndroidApplicationConvention.kt | John-Tuesday | 684,904,664 | false | {"Kotlin": 385269} | import com.android.build.api.dsl.ApplicationExtension
import org.calamarfederal.messydiet.configureAndroidCommon
import org.calamarfederal.messydiet.configureAndroidCompose
import org.calamarfederal.messydiet.configureGradleManagedDevices
import org.calamarfederal.messydiet.configureKotlinAndroid
import org.gradle.api.... | 0 | Kotlin | 0 | 0 | b99a014a2188f17ed3e6fa5084a8a214859ef9a3 | 1,306 | messy-diet | MIT License |
src/main/kotlin/us/frollo/frollosdk/model/coredata/cdr/CDRParty.kt | frollous | 261,670,220 | false | null | package us.frollo.frollosdk.model.coredata.cdr
import com.google.gson.annotations.SerializedName
import us.frollo.frollosdk.model.IAdapterModel
/** Represents a CDR Party */
data class CDRParty(
/** The Unique ID of the CDR Party */
@SerializedName("id") val partyId: Long,
/** The name of the CDR Party ... | 6 | Kotlin | 0 | 2 | 50b10ff6a95cd542f504f44bbf98ee1d7f548d7b | 1,811 | frollo-android-sdk | Apache License 2.0 |
plugins/kotlin/code-insight/impl-base/src/org/jetbrains/kotlin/idea/codeInsight/surroundWith/expression/KotlinControlFlowExpressionSurrounderBase.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.codeInsight.surroundWith.expression
import com.intellij.modcommand.ActionContext
import com.intellij.modcommand.ModPsiUpdater... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,399 | intellij-community | Apache License 2.0 |
network-monitor/src/main/java/com/trinitymirror/networkmonitor/persistence/JobPreferences.kt | incubAIt | 110,817,231 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 6, "XML": 29, "Kotlin": 29} | package com.trinitymirror.networkmonitor.persistence
/**
* Created by ricardobelchior on 13/11/2017.
*/
interface JobPreferences {
fun getLastNotificationTimestamp(listenerId: Int): Long
fun setLastNotificationTimestamp(listenerId: Int, timestamp: Long)
fun getLastBootOffset(): Long
fun setLastBo... | 0 | Kotlin | 0 | 2 | 5e257ffca3cfe5d8a3d700802e96393b864093c8 | 580 | android-mirror-network-monitor | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.