path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/yoyiyi/soleil/module/home/RecommendFragment.kt | yoyiyi | 97,073,764 | false | null | package com.yoyiyi.soleil.module.home
import android.content.Intent
import android.support.v7.widget.GridLayoutManager
import com.yoyiyi.soleil.R
import com.yoyiyi.soleil.adapter.home.RecommendAdapter
import com.yoyiyi.soleil.base.BaseRefreshFragment
import com.yoyiyi.soleil.bean.recommend.MulRecommend
import com.yoyi... | 2 | Kotlin | 25 | 141 | 044f76fd499bb49b0fe94d9c83c9bb1db283b8ea | 2,807 | bilisoleil-kotlin | Apache License 2.0 |
app/src/main/java/com/yoyiyi/soleil/module/home/RecommendFragment.kt | yoyiyi | 97,073,764 | false | null | package com.yoyiyi.soleil.module.home
import android.content.Intent
import android.support.v7.widget.GridLayoutManager
import com.yoyiyi.soleil.R
import com.yoyiyi.soleil.adapter.home.RecommendAdapter
import com.yoyiyi.soleil.base.BaseRefreshFragment
import com.yoyiyi.soleil.bean.recommend.MulRecommend
import com.yoyi... | 2 | Kotlin | 25 | 141 | 044f76fd499bb49b0fe94d9c83c9bb1db283b8ea | 2,807 | bilisoleil-kotlin | Apache License 2.0 |
grpc-spring-boot-test/server/src/main/java/de/honoka/test/grpc/springboot/server/ServerApplication.kt | kosaka-bun | 535,548,503 | false | null | package de.honoka.test.grpc.springboot.server
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class ServerApplication
fun main(args: Array<String>) {
runApplication<ServerApplication>(*args)
} | 0 | Java | 0 | 91 | 23e3b9ad184c36f9c235a5738aeae0527fcb0602 | 289 | test-projects | MIT License |
contacts/ios/src/main/kotlin/com/prat/tablesearch/MainTableViewController.kt | pt2121 | 46,928,952 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Gradle": 45, "INI": 18, "Shell": 9, "Batchfile": 9, "Kotlin": 50, "Java Properties": 9, "Proguard": 9, "XML": 65, "Java": 9, "JSON": 18} | package com.prat.tablesearch
import org.robovm.apple.contacts.*
import org.robovm.apple.foundation.NSCoder
import org.robovm.apple.foundation.NSIndexPath
import org.robovm.apple.uikit.*
import org.robovm.objc.annotation.CustomClass
/**
* Created by pt2121 on 11/27/15.
*/
@CustomClass("MainTableViewController")
clas... | 0 | Kotlin | 3 | 18 | 2c9fa27ab96a158d1fff9b8c629263e408404f20 | 8,732 | kotlin-ios | Apache License 2.0 |
base/common/src/test/java/com/android/utils/DomExtensionsTest.kt | qiangxu1996 | 255,410,085 | false | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 2,065 | vmtrace | Apache License 2.0 |
learning-design-pattern/src/test/kotlin/io/vincent/learning/stack/design/patterns/decorator/DecoratorTest.kt | search-cloud | 137,825,867 | false | null | package io.vincent.learning.stack.design.patterns.decorator
import org.junit.Test
/**
* Created by Vincent on 9/26/18.
*
* @author Vincent
* @since 1.0, 9/26/18
*/
class DecoratorTest {
@Test
fun getPreferential() {
val commonDecorator = CommonDecorator()
val discountDecorator = Discoun... | 1 | Kotlin | 1 | 1 | 5011813d9796c0ccc8a174c98549d5b3727adfb4 | 1,125 | learning-stack | Apache License 2.0 |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/Focusable.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | null | 16 | 59 | 3fbd775007164912b34a1d59a923ad3387028b97 | 6,414 | androidx | Apache License 2.0 |
app/src/main/java/com/tawk/framework/mvvm/paging/BaseListFragment.kt | evankhan1234 | 423,089,159 | false | {"Gradle": 3, "Java Properties": 4, "Shell": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Ignore List": 2, "JSON": 1, "Kotlin": 59, "XML": 194, "Java": 5, "INI": 3} | package com.tawk.framework.mvvm.paging
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.core.view.updatePadding
import androidx.lifecycle.lifecycleScope
import androidx.paging.LoadState
import androidx... | 0 | Kotlin | 0 | 0 | 26608cfb6d1cbce0f90540de6595082ba824ae43 | 4,266 | Tawk | Apache License 2.0 |
app/src/main/java/stan/androiddemo/project/weather/db/Country.kt | DuckDeck | 97,593,471 | false | null | package stan.androiddemo.project.weather.db
import org.litepal.crud.DataSupport
/**
* Created by hugfo on 2017/7/18.
*/
class Country:DataSupport(){
internal var id: Int = 0
internal var countryName: String = ""
internal var weatherId: String = ""
internal var cityId: Int = 0
} | 1 | Kotlin | 40 | 120 | 4d8d12c1f0ef821a252a2265ae46d7b8ff61729a | 299 | AndroidDemo | MIT License |
src/main/kotlin/com/tang/hwplib/reader/bodytext/paragraph/control/secd/ForSectionDefine.kt | accforaus | 169,677,219 | false | null | package com.tang.hwplib.reader.bodytext.paragraph.control.secd
import com.tang.hwplib.objects.bodytext.control.ctrlheader.HWPCtrlHeaderSectionDefine
import com.tang.hwplib.objects.bodytext.control.sectiondefine.HWPBatangPageInfo
import com.tang.hwplib.objects.bodytext.control.sectiondefine.HWPFootEndNoteShape
import c... | 1 | null | 7 | 22 | b828271f12a885dece5af5aa6281a1b2cf84d459 | 4,195 | libhwp | Apache License 2.0 |
jcv-db-jdbc/src/main/kotlin/com/ekino/oss/jcv/db/jdbc/util/QueryConverter.kt | ekino | 217,051,634 | false | null | package com.ekino.oss.jcv.db.jdbc.util
import com.ekino.oss.jcv.db.config.DatabaseType
import com.ekino.oss.jcv.db.config.DatabaseType.Companion.getDatabaseTypeByProductName
import com.ekino.oss.jcv.db.jdbc.mapper.MSSQLMapper
import com.ekino.oss.jcv.db.jdbc.mapper.MySQLMapper
import com.ekino.oss.jcv.db.jdbc.mapper.P... | 7 | null | 1 | 6 | b7278aa971c70b642696634e35527b5b32fe95b4 | 1,952 | jcv-db | MIT License |
compiler/testData/diagnostics/tests/resolve/invoke/invokeAsMemberExtensionToExplicitReceiver.kt | staltz | 38,581,975 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | interface A
interface Foo {
fun A.invoke()
}
fun test(a: A, foo: Foo) {
a.foo()
}
fun test(a: Int, foo: Int.()->Unit) {
a.foo()
} | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 143 | kotlin | Apache License 2.0 |
android/src/main/java/com/reactnativespacex/impl/utils/trace.kt | openland | 375,671,257 | false | null | package com.reactnativespacex.impl.utils
import android.util.Log
val TRACING_ENABLED = false
inline fun <T> trace(name: String, handler: () -> T): T {
return if (TRACING_ENABLED) {
val start = System.currentTimeMillis()
val res = handler()
val delta = System.currentTimeMillis() - start
... | 1 | null | 1 | 1 | 9e8ee4b91cfc2982ace706cc6e60a167ab3f8515 | 469 | react-native-spacex | MIT License |
legacy/core/src/main/java/com/fsck/k9/preferences/GeneralSettingsValidator.kt | thunderbird | 1,326,671 | false | null | package com.fsck.k9.preferences
internal class GeneralSettingsValidator {
fun validate(contentVersion: Int, settings: SettingsMap): InternalSettingsMap {
return GeneralSettingsDescriptions.validate(contentVersion, settings)
}
}
| 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 245 | thunderbird-android | Apache License 2.0 |
pkl-core/src/test/kotlin/org/pkl/core/RepositoryHygiene.kt | shenson | 753,134,878 | true | {"Java Properties": 2, "Git Revision List": 1, "AsciiDoc": 53, "Gradle Kotlin DSL": 31, "Text": 14, "Shell": 2, "EditorConfig": 1, "Git Attributes": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 1, "Kotlin": 232, "Pickle": 924, "XML": 17, "SVG": 3, "Java": 615, "JSON": 32, "OpenStep Property List": 5, "INI": 10, "YA... | /**
* Copyright © 2024 Apple Inc. and the Pkl project authors. All rights reserved.
*
* 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
... | 0 | Java | 0 | 1 | 5cc2ea2d003a1e2c6e856363684e2aa085ed38a9 | 2,321 | pkl | Apache License 2.0 |
js/js.libraries/src/generated/org.w3c.fetch.kt | EasyKotlin | 93,485,627 | true | {"Markdown": 33, "XML": 685, "Ant Build System": 37, "Proguard": 1, "Ignore List": 8, "Maven POM": 49, "Kotlin": 18030, "Java": 4375, "CSS": 3, "Shell": 9, "Batchfile": 8, "Java Properties": 10, "Gradle": 68, "HTML": 131, "INI": 7, "Groovy": 20, "JavaScript": 61, "Text": 3936, "ANTLR": 1, "Protocol Buffer": 4, "JAR Man... | /*
* Generated file
* DO NOT EDIT
*
* See libraries/tools/idl2k for details
*/
package org.w3c.fetch
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.css.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
import org.w3c.files.*
import o... | 0 | Java | 0 | 1 | 133e9354a4ccec21eb4d226cf3f6c1f3da072309 | 2,981 | exp | Apache License 2.0 |
app/src/main/java/com/bernaferrari/sdkmonitor/data/source/local/VersionsDao.kt | bernaferrari | 154,722,063 | false | {"Kotlin": 138066, "Java": 9828} | package com.bernaferrari.sdkmonitor.data.source.local
import androidx.paging.DataSource
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.bernaferrari.sdkmonitor.data.Version
/**
* Data Access Object for the sites table.
* Inspired fro... | 5 | Kotlin | 13 | 132 | f0ff695cd0c6c2fc9ece513b7a373e7465c70923 | 1,560 | SDKMonitor | Apache License 2.0 |
library/src/main/java/com/subsub/library/BeautyButton.kt | subsub | 150,640,076 | false | null | package com.subsub.library
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.view.Gravity
import android.widget.FrameLayout
import android.widget.TextView
/**
* Created by subkhansarif on 26/09/18
**/
class BeautyButton : BeautyView {
var text: String... | 2 | null | 14 | 70 | 98af47852d44231f0280411e859dc0f9c3b17ca0 | 1,650 | ButtonCustomShadow | MIT License |
src/main/kotlin/com/onehypernet/demo/model/response/NettingCycleDetailResponse.kt | quangpv | 470,011,476 | false | null | package com.onehypernet.demo.model.response
import com.onehypernet.demo.model.enumerate.NettingStatus
import java.math.BigDecimal
data class NettingCycleDetailResponse(
val id: String,
val group: String,
val status: NettingStatus,
val currency: String? = null,
val createAt: String,
val settle... | 0 | Kotlin | 0 | 0 | e84f52230f1d6e583e1457d3f85b5f580bfe9a8b | 1,758 | netting-demo-BE | MIT License |
utbot-python/src/main/kotlin/org/utbot/python/newtyping/general/TypeUtils.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.python.newtyping.general
fun Type.isParameterBoundedTo(type: Type): Boolean =
(this is TypeParameter) && (this.definedAt == type)
fun Type.getBoundedParametersIndexes(): List<Int> =
parameters.mapIndexedNotNull { index, parameter ->
if (parameter.isParameterBoundedTo(this)) {
... | 380 | Kotlin | 30 | 90 | 19ab8f548147ec2a8e924481440111219d81783f | 811 | UTBotJava | Apache License 2.0 |
common-compose/src/main/kotlin/org/ergoplatform/compose/ErgoAddressText.kt | ergoplatform | 376,102,125 | false | null | package org.ergoplatform.desktop.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.combinedClickable
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.com... | 16 | Kotlin | 35 | 94 | b5f6e5176cf780a7437eb3c8447820bd9409c8ac | 1,373 | ergo-wallet-app | Apache License 2.0 |
common-compose/src/main/kotlin/org/ergoplatform/compose/ErgoAddressText.kt | ergoplatform | 376,102,125 | false | null | package org.ergoplatform.desktop.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.combinedClickable
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.com... | 16 | Kotlin | 35 | 94 | b5f6e5176cf780a7437eb3c8447820bd9409c8ac | 1,373 | ergo-wallet-app | Apache License 2.0 |
app/src/main/java/com/kssidll/arru/ui/component/TotalAverageAndMedianSpendingComponent.kt | KSSidll | 655,360,420 | false | {"Kotlin": 730211} | package com.kssidll.arru.ui.component
import androidx.compose.animation.core.*
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.*
import androidx.compose.ui.res.*
import androidx.compose.ui.tooling.preview.*
import androidx.com... | 0 | Kotlin | 0 | 1 | d863878f6ff2ea9593a25aa423d06639171ab397 | 3,715 | Arru | BSD 3-Clause Clear License |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Reorder.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import android... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 4,959 | compose-icons | MIT License |
kotlin-typescript/src/main/generated/typescript/setConstantValue.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
/**
* Sets the constant value to emit for an expression.
*/
external fun setConstantValue(
node: AccessExpression,
value: dynamic, /* string | number */
): AccessExpression
| 12 | null | 8 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 296 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/faranjit/meditory/features/login/domain/SaveUsername.kt | faranjit | 399,519,852 | false | null | package com.faranjit.meditory.features.login.domain
import com.faranjit.meditory.base.BaseUseCase
/**
* Created by <NAME> on 25.08.2021.
*/
class SaveUsername(
private val loginRepository: LoginRepository
) : BaseUseCase<Unit, SaveUsername.Params>() {
override fun execute(params: Params) = loginRepository.... | 0 | Kotlin | 0 | 0 | 97c1b1f1388b51797fa98a0e24cbfa85dd6cab61 | 396 | meditory | MIT License |
leetCodeChallenges/src/main/kotlin/easy/StringReverse.kt | dr4gonAndroidDev | 322,140,017 | false | null | package easy
class StringReverse {
fun reverse(s: String): String {
val charArray = s.toCharArray() //s - O(n)
val reversedStringArrayList = arrayListOf<Char>() //s - O(1)
for(i in charArray.indices) {
reversedStringArrayList.add(charArray[(charArray.size - 1) - i]) // T - O(... | 0 | Kotlin | 0 | 0 | 3f6a47877d974eea7d1973e26a060ef41f50d671 | 863 | InterviewPrep | Apache License 2.0 |
app/src/main/java/com/github/libliboom/epubviewer/reader/view/ReaderMeasureFragment.kt | libliboom | 258,487,396 | false | null | package com.github.libliboom.epubviewer.reader.view
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.webkit.JavascriptInterface
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.lifecycle.ViewModelProvider
import com.github.libliboom.epubviewer.... | 2 | Kotlin | 0 | 3 | 71f1d99af902a82784819a672bb3e27fa306f005 | 6,110 | Epub-Viewer-Android | MIT License |
app/src/main/java/com/github/libliboom/epubviewer/reader/view/ReaderMeasureFragment.kt | libliboom | 258,487,396 | false | null | package com.github.libliboom.epubviewer.reader.view
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.webkit.JavascriptInterface
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.lifecycle.ViewModelProvider
import com.github.libliboom.epubviewer.... | 2 | Kotlin | 0 | 3 | 71f1d99af902a82784819a672bb3e27fa306f005 | 6,110 | Epub-Viewer-Android | MIT License |
src/main/kotlin/org/teamvoided/astralarsenal/kosmogliph/DamageModificationStage.kt | TeamVoided | 817,828,571 | false | {"Kotlin": 500521, "Java": 37192} | package org.teamvoided.astralarsenal.kosmogliph
enum class DamageModificationStage {
PRE_EFFECT,
POST_EFFECT,
PRE_ARMOR,
POST_ARMOR,
PRE_ENCHANT,
POST_ENCHANT,
} | 1 | Kotlin | 0 | 1 | d588d40df50e6ee2134aab5f64b9ea83d1150d2f | 186 | AstralArsenal | MIT License |
app/src/main/java/eu/kanade/tachiyomi/source/online/all/MangaDex.kt | 05k-44 | 301,522,447 | true | {"Kotlin": 3644758} | package eu.kanade.tachiyomi.source.online.all
import android.app.Activity
import android.content.Context
import android.net.Uri
import androidx.core.text.HtmlCompat
import com.bluelinelabs.conductor.Controller
import eu.kanade.tachiyomi.data.database.models.Track
import eu.kanade.tachiyomi.data.preference.PreferencesH... | 0 | null | 0 | 1 | 96a5b456f5e2c7bfb1fb08cba6bcaacb9473f8af | 10,766 | TachiyomiSY | Apache License 2.0 |
lib/src/main/java/com/kotlin/inaction/chapter_8/8_2_3_2_InliningCollectionOperations.kt | jhwsx | 167,022,805 | false | null | package com.kotlin.inaction.chapter_8
/**
*
* @author wangzhichao
* @since 2022/4/15
*/
fun main() {
val people = listOf(Person1("Alice", 29), Person1("Bob", 31))
val result = mutableListOf<Person1>()
for (person in people) {
if (person.age < 30) {
result.add(person)
}
... | 1 | Kotlin | 1 | 1 | 1cdb279920c229fa4e00a09a8165f32e71cadd3e | 344 | KotlinInAction | MIT License |
src/main/com/study/kotlin/Model/Client/PessoaFisica.kt | Samuel-Ricardo | 388,124,549 | false | null | package com.study.kotlin.Model.Client
import com.study.kotlin.Model.Account
class PessoaFisica(
override val id:Int,
val name:String,
val age:Int,
override var address:Address,
val CPF:String,
override var account:Account
):Client(id, address, account) {
override fun printClientData(){
println("""... | 0 | Kotlin | 0 | 0 | 926ff33d38bee3d095ce8bf238971332970ec591 | 1,560 | Bank | MIT License |
src/main/kotlin/no/nav/tms/minesaker/api/saf/common/transformers/ZonedDateTimeTransformer.kt | navikt | 331,032,645 | false | {"Kotlin": 176442, "Dockerfile": 219} | package no.nav.tms.minesaker.api.saf.common.transformers
import no.nav.tms.minesaker.api.exception.TransformationException
import no.nav.tms.minesaker.api.exception.TransformationException.ErrorType.MISSING_FIELD
import java.time.ZonedDateTime
fun List<ZonedDateTime>.finnSistEndret(): ZonedDateTime {
return maxBy... | 2 | Kotlin | 1 | 0 | b483fe20e4757deaef34a6e6ed6429e56dc7d924 | 438 | mine-saker-api | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/inter/account/autocast.plugin.kts | CombatBorn | 565,246,764 | false | {"Kotlin": 5093755, "Vue": 5450, "JavaScript": 1543, "Dockerfile": 1354, "HTML": 886} | //import gg.rsmod.plugins.content.combat.Combat
//import gg.rsmod.plugins.content.combat.strategy.magic.CombatSpell
//
//// select offensive magic auto-cast
//on_button(593, 26) {
// openAutoCastInterface(player)
// player.setVarbit(Combat.DEFENSIVE_MAGIC_CAST_VARBIT,0)
//
//}
//// select defensive magic auto-cas... | 0 | Kotlin | 0 | 0 | 84080d7341b63f9d1fe350e02fd7dcc34a4197f6 | 2,413 | Myscape-Server | Apache License 2.0 |
app/src/main/java/muoipt/nytopstories/MainActivity.kt | muoipt | 822,659,454 | false | {"Kotlin": 93219} | package muoipt.nytopstories
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.m... | 0 | Kotlin | 0 | 0 | 9d7b69b5cc982881329ffefa47e57a262b4ad7ba | 3,428 | NYTimesTopStoriesCompose | Apache License 2.0 |
src/main/kotlin/com/trader/defichain/db/search/pool_liquidity_search.kt | victorv | 606,947,847 | false | null | package com.trader.defichain.db.search
import com.trader.defichain.db.connectionPool
import com.trader.defichain.util.DATE_TIME_PATTERN
import com.trader.defichain.util.prepareStatement
import org.intellij.lang.annotations.Language
import java.time.LocalDateTime
import java.time.ZoneOffset
import java.time.format.Date... | 0 | Kotlin | 0 | 0 | c64cb9aa7bb4c6298a5ab8ea674a6257e25660f9 | 5,003 | defichain-trader-api | MIT License |
composeApp/src/commonMain/kotlin/ru/sportivityteam/vucmirea/assistant/di/DatastoreModule.kt | SportivityTeam | 753,183,017 | false | {"Kotlin": 109554, "Swift": 532} | package ru.sportivityteam.vucmirea.assistant.di
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import org.koin.core.module.Module
import org.koin.dsl.module
import ru.sportivityteam.vucmirea.assistant.core.datastore.dataStorePreferences
private val commonDatastoreModul... | 0 | Kotlin | 0 | 2 | c5bcc179cb8ced37b1e435f9bcf88db752dca684 | 598 | mis-vuc | MIT License |
aspoet/src/main/kotlin/com/google/androidstudiopoet/converters/ConfigPojoToBuildSystemConfigConverter.kt | android | 106,021,222 | false | null | package com.google.androidstudiopoet.converters
import com.google.androidstudiopoet.input.BuildSystemConfig
import com.google.androidstudiopoet.input.ConfigPOJO
class ConfigPojoToBuildSystemConfigConverter {
fun convert(configPojo: ConfigPOJO): BuildSystemConfig {
return BuildSystemConfig(configPojo.gradl... | 12 | Kotlin | 89 | 680 | f820e9cc0e5d7db4de9a7e31b818277143546f73 | 474 | android-studio-poet | Apache License 2.0 |
app/src/main/java/com/example/luid/fragments/loginregister/RegisterFragment.kt | dhnxx | 630,731,975 | false | {"Kotlin": 309383, "Java": 100} | package com.example.luid.fragments.loginregister
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditT... | 0 | Kotlin | 0 | 2 | 9bd4a2b11727ce391d002e15f9388d4d2ff0c4c0 | 10,180 | Luid-Language-Learning-App | MIT License |
domain/src/main/java/com/mashup/healthyup/domain/entity/User.kt | mash-up-kr | 412,730,540 | false | {"Kotlin": 132029} | package com.mashup.healthyup.domain.entity
data class User(
val id: Long,
val nickname: String,
val email: String,
val googleAccount: String,
val gender: Gender?,
val age: Int,
val height: Int,
val weight: Int, // 몸무게
val splitType: SplitType,
val audioCoach: AudioCoach?, // 오디오... | 0 | Kotlin | 1 | 6 | 0a09ca00d66797debadb0fd46a6e45802d3dfdee | 995 | HellTaBus_Android | MIT License |
db-common/src/testFixtures/kotlin/DbCardRepositoryTest.kt | crowdproj | 543,982,440 | false | null | package com.gitlab.sszuev.flashcards.dbcommon
import com.gitlab.sszuev.flashcards.model.common.AppError
import com.gitlab.sszuev.flashcards.model.common.AppUserId
import com.gitlab.sszuev.flashcards.model.domain.*
import com.gitlab.sszuev.flashcards.repositories.CardDbResponse
import com.gitlab.sszuev.flashcards.repos... | 7 | Kotlin | 0 | 1 | a13b67d05b183953ef41b23dbd2ca8cdb747c04d | 12,677 | opentutor | Apache License 2.0 |
src/test/enhetstester/kotlin/no/nav/familie/ba/sak/datagenerator/brev/MinimertPerson.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.datagenerator.brev
import no.nav.familie.ba.sak.common.randomAktør
import no.nav.familie.ba.sak.common.randomFnr
import no.nav.familie.ba.sak.kjerne.grunnlag.personopplysninger.PersonType
import no.nav.familie.ba.sak.kjerne.vedtak.begrunnelser.domene.MinimertPerson
import java.time.LocalD... | 16 | Kotlin | 1 | 9 | 2f4dd839f0cf38a983515ab4b119735d70ecfc00 | 797 | familie-ba-sak | MIT License |
app/src/main/java/com/ms/catlife/feature_event_detail/data/state/CustomEventDetailState.kt | morganesoula | 446,932,843 | false | null | package com.ms.catlife.feature_event_detail.data.state
data class CustomEventDetailState(
val eventId: Int = 0,
val eventTitle: String = "",
val eventDescription: String = "",
val eventPlace: String = "",
val eventPlaceLat: Double = 0.0,
val eventPlaceLng: Double = 0.0,
val eventAllDay: Boo... | 0 | Kotlin | 0 | 2 | 80eb98072fd3326ae13503b2dc150a20f6574742 | 558 | catlife | Apache License 2.0 |
app/src/main/java/me/hufman/androidautoidrive/carapp/maps/MapController.kt | BimmerGestalt | 164,273,785 | false | {"Kotlin": 1823368, "Python": 4131, "HTML": 3912, "Shell": 1732} | package me.hufman.androidautoidrive.carapp.maps
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.util.Log
import me.hufman.androidautoidrive.maps.LatLong
import me.hufman.androidautoidrive.u... | 55 | Kotlin | 89 | 511 | dd0e755ea9224be2c4d0c9572fc0cd8bbcd66d27 | 4,628 | AAIdrive | MIT License |
app/src/main/java/com/mvvmhilt/di/AppModule.kt | tu522001 | 638,630,738 | false | null | package com.mvvmhilt.di
import android.content.Context
import com.mvvmhilt.App
import com.mvvmhilt.data.local.LocalData
import com.mvvmhilt.utils.Network
import com.mvvmhilt.utils.NetworkConnectivity
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.Applicat... | 0 | Kotlin | 0 | 0 | 56d9a535e7d87f9f1277497511890ebb59e02f18 | 992 | MVVM-hilt-Kotlin-Android-Architecture | Apache License 2.0 |
pluto-plugins/plugins/exceptions/lib/src/main/java/com/pluto/plugins/exceptions/internal/extensions/ThreadKtx.kt | androidPluto | 390,471,457 | false | {"Kotlin": 744352, "Shell": 646} | package com.pluto.plugins.exceptions.internal.extensions
import com.pluto.utilities.extensions.capitalizeText
fun getPriorityString(priority: Int) =
when (priority) {
Thread.MAX_PRIORITY -> "maximum"
Thread.MIN_PRIORITY -> "minimum"
else -> "normal"
}.capitalizeText()
| 23 | Kotlin | 64 | 657 | 5562cb7065bcbcf18493820e287d87c7726f630b | 303 | pluto | Apache License 2.0 |
app/src/main/java/com/sd/demo/network/SampleNetworkAwait.kt | zj565061763 | 733,052,064 | false | {"Kotlin": 14061} | package com.sd.demo.network
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.sd.demo.network.databinding.SampleNetworkAwaitBinding
import com.sd.lib.network.fNetworkAwait
import kotlinx.coroutines.launch
import java.util.UUID
class SampleNetw... | 0 | Kotlin | 0 | 0 | 237e6b8177388971b15a0d97e7f46c186060dddf | 924 | network | MIT License |
app/common/src/androidMain/kotlin/com/denchic45/studiversity/widget/extendedAdapter/action/AdapterAction.kt | denchic45 | 435,895,363 | false | {"Kotlin": 2103689, "Vue": 15083, "JavaScript": 2830, "CSS": 1496, "HTML": 867} | package com.denchic45.studiversity.widget.extendedAdapter.action
interface AdapterAction {
fun add(item: Any)
fun add(items: List<Any>)
fun set(items: List<Any>)
fun add(item: Any, position: Int)
fun add(items: List<Any>, position: Int)
fun replace(item: Any, position: Int)
fun repla... | 0 | Kotlin | 0 | 7 | 93947301de4c4a9cb6c3d9fa36903f857c50e6c2 | 491 | Studiversity | Apache License 2.0 |
engine/src/main/kotlin/de/hanno/hpengine/graphics/light/directional/DirectionalShadowMapPipeline.kt | hannomalie | 330,376,962 | false | {"Kotlin": 987592, "GLSL": 660072, "JavaScript": 3160, "Shell": 137, "Batchfile": 65} | package de.hanno.hpengine.graphics.light.directional
import de.hanno.hpengine.camera.Frustum
import de.hanno.hpengine.graphics.GraphicsApi
import de.hanno.hpengine.graphics.constants.PrimitiveType
import de.hanno.hpengine.graphics.constants.RenderingMode
import de.hanno.hpengine.graphics.profiled
import de.hanno.hpeng... | 0 | Kotlin | 0 | 0 | 13f2f2db21757fb79316c5c21d545072cc166591 | 3,963 | hpengine | MIT License |
domain/monster-folder/data/src/commonMain/kotlin/br/alexandregpereira/hunter/data/monster/folder/MonsterFolderEntityMapper.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1443810, "Swift": 754, "Shell": 139} | /*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... | 3 | Kotlin | 5 | 85 | 46a636ec6fe5a60101e761847c85776180c6f5b2 | 2,193 | Monster-Compendium | Apache License 2.0 |
rubik/rubik_plugins/src/main/java/com/rubik/plugins/module/ModuleController.kt | baidu | 504,447,693 | false | {"Kotlin": 433310, "Java": 28663} | package com.rubik.plugins.module
import com.android.build.gradle.api.BaseVariant
import com.ktnail.x.Logger
import com.rubik.plugins.basic.LogTags
import com.rubik.plugins.basic.utility.*
import com.rubik.plugins.module.config.ConfigPool
import com.rubik.plugins.module.relation.*
import com.rubik.plugins.module.task.M... | 3 | Kotlin | 7 | 152 | d9f5c39f7892733c5501928dc3464fa3444d3c80 | 8,958 | Rubik | Apache License 2.0 |
app/src/main/java/io/github/lee0701/mboard/settings/preference/PreferenceCategory.kt | Lee0701 | 501,429,969 | false | null | package io.github.lee0701.mboard.settings
import android.content.Context
import android.util.AttributeSet
import androidx.preference.PreferenceCategory
import io.github.lee0701.mboard.R
class PreferenceCategory(
context: Context,
attrs: AttributeSet?,
): PreferenceCategory(context, attrs) {
init {
... | 0 | Kotlin | 0 | 0 | 5283f398559b4536e2fbb6eaa36cabb0b6072e99 | 374 | mBoard | Apache License 2.0 |
flipdisplayreferenceapp/src/main/java/com/jinyuze/flipdisplayreferenceapp/MainActivity.kt | UnicornJin | 581,745,009 | false | {"Kotlin": 16775} | package com.jinyuze.flipdisplayreferenceapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.jinyuze.flipdisplay.DisplayContent
import com.jinyuze.flipdisplay.FlipCharView
import com.jinyuze.flipdisplayreferenceapp.databinding.ActivityMainBinding
import kotlinx.coroutines.*
class Ma... | 0 | Kotlin | 0 | 7 | 7a7b8070df3adb48d94e2d90d982f0edff1316fc | 5,534 | Flip-Display | MIT License |
src/nl/hannahsten/texifyidea/file/TikzFileType.kt | carlosal1015 | 296,719,900 | true | {"Gradle": 2, "Java Properties": 1, "Markdown": 8, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "YAML": 3, "Kotlin": 505, "Java": 106, "TeX": 27, "BibTeX": 3, "INI": 1, "XML": 5, "JFlex": 2, "CODEOWNERS": 1, "SVG": 74, "HTML": 96, "Python": 1} | package nl.hannahsten.texifyidea.file
import com.intellij.openapi.fileTypes.LanguageFileType
import nl.hannahsten.texifyidea.LatexLanguage
import nl.hannahsten.texifyidea.TexifyIcons
/**
* @author Thomas Schouten
*/
object TikzFileType : LanguageFileType(LatexLanguage.INSTANCE) {
override fun getName() = "TikZ... | 1 | Kotlin | 0 | 0 | efa98db49c99326993dea8ac771fb37e0119f901 | 497 | TeXiFy-IDEA | MIT License |
mobile/src/main/java/rs/readahead/washington/mobile/domain/usecases/reports/DeleteReportUseCase.kt | Horizontal-org | 193,379,924 | false | {"Java": 1621257, "Kotlin": 1441445} | package rs.readahead.washington.mobile.domain.usecases.reports
import io.reactivex.Completable
import rs.readahead.washington.mobile.domain.repository.reports.ITellaReportsRepository
import rs.readahead.washington.mobile.domain.usecases.base.CompletableUseCase
import javax.inject.Inject
class DeleteReportUseCase @Inj... | 16 | Java | 17 | 55 | 5dd19f8c9a810c165d2d8ec8947cc9d5d4620bab | 624 | Tella-Android | Apache License 2.0 |
src/main/kotlin/br/com/gamemods/j2nwc/internal/block-converter.kt | PowerNukkit | 187,124,352 | false | {"Kotlin": 91700, "CSS": 82} | package br.com.gamemods.j2nwc.internal
import br.com.gamemods.j2nwc.WorldConverter
import br.com.gamemods.nbtmanipulator.*
import br.com.gamemods.regionmanipulator.ChunkPos
import br.com.gamemods.regionmanipulator.Region
import net.md_5.bungee.api.ChatColor
import java.io.FileNotFoundException
import java.util.*
impor... | 20 | Kotlin | 6 | 22 | 8d154d1e4bae336cd2e4542a4d2bb4cc98f9e291 | 23,277 | Java2Nukkit-World-Converter | MIT License |
jvm/src/main/kotlin/org/ionproject/core/calendar/CalendarExt.kt | i-on-project | 242,369,946 | false | null | package org.ionproject.core.calendar
import org.ionproject.core.calendar.icalendar.types.Text
fun String.iCalendarFold(): String {
val iCalendarMaxContentLineLength = 73
val chunks = chunkedSequence(iCalendarMaxContentLineLength)
return chunks.joinToString("\r\n ")
}
fun Array<out String>.toText(): Array... | 14 | Kotlin | 0 | 3 | 339407d56e66ec164ecdc4172347272d97cc26b3 | 455 | core | Apache License 2.0 |
src/test/kotlin/net/leanix/githubagent/services/GitHubAuthenticationServiceTest.kt | leanix | 818,186,956 | false | null | package net.leanix.githubagent.services
import io.mockk.every
import io.mockk.mockk
import net.leanix.githubagent.client.GitHubClient
import net.leanix.githubagent.config.GitHubEnterpriseProperties
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertThrows
import org.jun... | 2 | null | 0 | 1 | afcd1205e6b305aa377eec35e1c4093cde1e685e | 2,172 | leanix-github-agent | Apache License 2.0 |
src/main/kotlin/com/example/Book.kt | sanuzzi | 159,078,246 | false | null | package com.example
import javax.persistence.*
import javax.validation.constraints.NotNull
import javax.persistence.GenerationType
import javax.persistence.GeneratedValue
@Entity
@Table(name = "book")
class Book {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
var id: Long? = null
@NotNull
... | 0 | Kotlin | 0 | 0 | af61dad4bffa57022c7dccd4bec116542022a962 | 1,080 | micronaut-example | MIT License |
williamchart/src/main/java/com/db/williamchart/animation/ChartAnimation.kt | diogobernardino | 22,572,203 | false | null | package com.mobilecoronatracker.ui.chart.williamchart.animation
// Copied from https://github.com/diogobernardino/WilliamChart
import android.view.animation.DecelerateInterpolator
import android.view.animation.Interpolator
abstract class ChartAnimation<T> {
var duration: Long = DEFAULT_DURATION
var interpol... | 30 | Kotlin | 800 | 4,993 | f0defc0ad2d509aaf32fcbb40fe353470cca35c8 | 590 | williamchart | Apache License 2.0 |
adil-android/adil/app/src/main/java/com/path_studio/adil/ui/main/bookmark/BookmarkViewModel.kt | nox237 | 403,979,322 | true | {"Jupyter Notebook": 1105192, "Kotlin": 91760, "Python": 27172, "JavaScript": 14999} | package com.path_studio.adil.ui.main.bookmark
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import com.path_studio.adil.data.AdilRepository
import com.path_studio.adil.data.database.entity.Bookmark
import com.path_studio.adil.data.source.remote.response.Leg... | 0 | null | 0 | 1 | 430a33e2107bca5533ea5fb47227d75f93cc6102 | 702 | adil-monorepo | MIT License |
acme-domain/acme-domain-scheduling/src/main/kotlin/com/acme/scheduling/AppointmentCanceledEvent.kt | mattupstate | 496,835,485 | false | {"Kotlin": 268791, "HCL": 28862, "HTML": 15841, "Smarty": 9320, "Shell": 2578, "Dockerfile": 460, "PLpgSQL": 179} | package com.acme.scheduling
import com.acme.core.MetaData
data class AppointmentCanceledEvent(
val appointmentId: Appointment.Id
) : SchedulingDomainEvent {
override val metadata: MetaData = MetaData()
}
| 0 | Kotlin | 0 | 6 | 779d77068adf825b8cacc5902a2a70cf000b6a39 | 210 | acme | MIT License |
src/com/example/kotlindemo/kotlin_day_04/06.object单例.kt | rain9155 | 153,966,103 | false | {"Kotlin": 111894} | package com.example.kotlindemo.kotlin_day_04
/**
* kotlin实现单例
* object定义:
* class关键字变为object关键字
* object特点:
* kotlin中加object实现的单例,所有的字段都是相当于java中的static字段,所有的方法都是相当于java中的final方法
* object适用条件:
* 类中字段不多的时候
*/
fun main(args: Array<String>) {
//val utils = Utils() 报错,单例不能直接创建
//单例直接调用里面的属性方法,不用创建对象
p... | 0 | Kotlin | 0 | 0 | 7ed131bc671cf217aad9c355631a5c77a09edcb3 | 518 | kotlinDemo | Apache License 2.0 |
src/model/delegate/LazySubscriber.kt | NOWUM | 358,732,934 | false | {"Kotlin": 245354, "TypeScript": 141516, "CSS": 4266, "HTML": 1721, "Dockerfile": 329} | package de.fhac.ewi.model.delegate
interface LazySubscriber: Subscriber {
fun onPossibleUpdate()
} | 18 | Kotlin | 0 | 4 | 7c65a8c372df6e3e8b1f2e1c4bc5833ba3dda987 | 103 | grid-optimizer | MIT License |
currency/src/commonMain/kotlin/kash/LooseCurrencySerializer.kt | aSoft-Ltd | 365,481,038 | false | {"Kotlin": 49886, "Java": 386} | package kash
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder... | 1 | Kotlin | 0 | 0 | a8cf883005b387adef1c2649b18d0cb3b75d2510 | 1,071 | kash | MIT License |
app/src/main/java/com/example/jetpackdemo/navigation/fragment/CFragment.kt | JakePrim | 399,309,192 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Kotlin": 37, "XML": 34, "Java": 1, "INI": 2} | package com.example.jetpackdemo.navigation.fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.jetpackdemo.R
class CFragment : Fragment() {
override fun onCreateView(
inflater: ... | 0 | Kotlin | 1 | 1 | e85be784c356f1dc704fa6c395d676b484f6577b | 577 | JetPackDemo | Apache License 2.0 |
compiler/testData/codegen/box/objects/simpleObject.kt | JakeWharton | 99,388,807 | true | null | object A {
val x: Int = 610
}
fun box() : String {
return if (A.x != 610) "fail" else "OK"
}
| 179 | Kotlin | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 98 | kotlin | Apache License 2.0 |
modules/api/src/main/kotlin/skywolf46/diytoml/api/annotations/TomlKey.kt | milkyway0308 | 645,998,122 | false | null | package skywolf46.diytoml.api.annotations
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FIELD)
annotation class TomlKey(vararg val acceptableKeyName: String)
| 0 | Kotlin | 0 | 0 | 83d64a4c0e3e8ca3988f087b40c290cc719e58b0 | 178 | DIY-Toml | Apache License 2.0 |
src/test/kotlin/com/lz101010/chess/core/BoardGeneratorTest.kt | lz101010 | 167,858,034 | false | {"Kotlin": 108993} | // SPDX-License-Identifier: MIT
// Copyright (c) 2022 <NAME>
package com.lz101010.chess.core
import com.lz101010.chess.data.*
import com.lz101010.chess.data.PieceType.P
import com.lz101010.chess.data.PieceType.R
import com.lz101010.chess.data.PieceType.N
import com.lz101010.chess.data.PieceType.B
import com.lz101010.... | 1 | Kotlin | 0 | 0 | bc174baefa62efc703e4d9753ac80992962b6e93 | 11,088 | e4 | MIT License |
app/src/main/java/com/hlxh/interactivevideotool/myWidget/NoSwipeViewPager.kt | WTXCKAi | 335,287,545 | false | null | package com.hlxh.interactivevideotool.myWidget
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.viewpager.widget.ViewPager
/**
* A custom ViewPager which can not swipe
*/
class NoSwipeViewPager(context: Context, attrs: AttributeSet?) : ViewPager(context... | 1 | null | 1 | 1 | c5dd4ef12b9d343e221c560bc3e6657a2ad493d9 | 603 | InteractiveVideoTool | Apache License 2.0 |
app/src/main/java/com/example/graduation/data/models/MainResponseModel.kt | PanicLess-2023 | 628,118,517 | false | null | package com.example.graduation.data.models
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Suppress("UNCHECKED_CAST")
class MainResponseModel<T> {
@Expose
@SerializedName("code")
val code: Int? = null
@Expose
@SerializedName("message")
val message:... | 0 | Kotlin | 0 | 0 | c6c8e69421f441e48b5869e98dea804ffe31183a | 936 | Panicless | MIT License |
app/src/main/java/com/octopus/moviesapp/domain/types/Theme.kt | b-alramlawi | 606,522,847 | false | {"Kotlin": 288183} | package com.octopus.moviesapp.domain.types
enum class Theme {
LIGHT,
DARK
} | 0 | Kotlin | 0 | 0 | 81c315d24c34cb6a2d2fbbb4c12cf65ac0ae3826 | 84 | Movies_app | Apache License 2.0 |
app/src/main/java/com/jarrod/memorygame/screens/menu_home/MenuFragment.kt | Rviewer-Challenges | 494,569,835 | false | {"Kotlin": 31140} | package com.jarrod.memorygame.screens.menu_home
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.NavController
import androidx.navigation.Navigation
import com.jarrod.memorygame.R
import c... | 0 | Kotlin | 0 | 0 | f7ca78290211a3e40e3dacc499c86b1d10f56675 | 1,725 | v7EK5soYNOBW5MIOibxC | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createClass/typeReference/noObjectForTypeBound.kt | JetBrains | 2,489,216 | false | null | // "Create object 'NotExistent'" "false"
// ERROR: Unresolved reference: NotExistent
class TPB<X : <caret>NotExistent> | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 118 | intellij-community | Apache License 2.0 |
uicorek/src/main/java/com/mozhimen/uicorek/refreshk/commons/RefreshKOverView.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.uicorek.refreshk.commons
import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
import com.mozhimen.basick.extsk.dp2px
import com.mozhimen.uicorek.refreshk.mos.RefreshKStatus
/**
* @ClassName RefreshKOverView
* @Description 下拉数显的Overlay视图,可以重载这个类来定义自己的... | 0 | Kotlin | 0 | 1 | 3dd109aff154bff96379cde86e6e4632967cca40 | 1,587 | SwiftMK | Apache License 2.0 |
huawei-starter/src/test/kotlin/com/labijie/application/huawei/env/TestAutoConfiguration.kt | hongque-pro | 309,874,586 | false | {"Kotlin": 1051745, "Java": 72766} | package com.labijie.application.huawei.env
import com.labijie.application.huawei.component.HuaweiMessageSender
import com.labijie.application.huawei.component.HuaweiObsStorage
import com.labijie.application.huawei.model.HuaweiProperties
import com.labijie.application.huawei.utils.HuaweiUtils
import com.labijie.caching... | 0 | Kotlin | 0 | 8 | 9e2b1f76bbb239ae9029bd27cda2d17f96b13326 | 1,448 | application-framework | Apache License 2.0 |
src/main/kotlin/dev/hawu/plugins/queuedsudo/executables/DefaultExecutable.kt | harulol | 390,604,953 | false | null | package dev.hawu.plugins.queuedsudo.executables
import dev.hawu.plugins.api.utils.Strings.toUUID
import org.apache.commons.lang.builder.HashCodeBuilder
import org.bukkit.Bukkit
import sun.audio.AudioPlayer.player
import java.util.*
class DefaultExecutable(
private val value: String,
private val flag: Executab... | 0 | Kotlin | 0 | 0 | ac8dbb0f30efe22d0944081b0f2a9a3441c8a0f4 | 1,170 | queued-sudo | Apache License 2.0 |
AppDispensa/app/src/main/java/com/example/appdispensa/FetchData.kt | Cacciaa | 778,857,101 | false | {"Kotlin": 89287} | package com.example.appdispensa
import android.os.Handler
import android.os.Looper
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.BitmapDescriptorFactory
import com.google.android.gms.maps.model.LatLng
import com.google.andro... | 0 | Kotlin | 0 | 0 | ab0012aaa0f41fc72841eb2bfa6921a97ccf1835 | 2,799 | AppDispensa | Apache License 2.0 |
app/src/main/java/com/loftechs/sample/chat/settings/ItemType.kt | LoFTechs | 355,161,561 | false | null | package com.loftechs.sample.chat.settings
enum class ItemType {
VIEW_TYPE_TEXT, VIEW_TYPE_SWITCH, VIEW_TYPE_TEXT_RED
} | 0 | Kotlin | 1 | 1 | 69512a6446efbd3b44bf617cc8782ddd11b3c49a | 124 | LTSample-Android-Kotlin | MIT License |
example/spring-webflux-example/src/main/kotlin/cz/encircled/joiner/springwebfluxexample/controller/ReactorEmploymentController.kt | encircled | 49,412,209 | false | {"Java": 248902, "Kotlin": 99218} | package cz.encircled.joiner.springwebfluxexample.controller
import cz.encircled.joiner.kotlin.JoinerKtOps.eq
import cz.encircled.joiner.kotlin.JoinerKtQueryBuilder.all
import cz.encircled.joiner.kotlin.JoinerKtQueryBuilder.from
import cz.encircled.joiner.reactive.ReactorJoiner
import cz.encircled.joiner.springwebfluxe... | 0 | Java | 0 | 18 | 9c84c49b72f9862c2e9afe848e7629df5b769f3b | 1,410 | Joiner | Apache License 2.0 |
app/src/main/java/com/microsoft/research/karya/injection/AuthModule.kt | microsoft | 463,097,428 | false | null | package com.microsoft.research.karya.injection
import android.content.Context
import com.microsoft.research.karya.data.manager.AuthManager
import com.microsoft.research.karya.data.repo.AuthRepository
import com.microsoft.research.karya.injection.qualifier.IoDispatcher
import dagger.Module
import dagger.Provides
import... | 5 | Kotlin | 2 | 5 | f967a2a8e78551446d8beaff26ba2bdc6f9c56cc | 1,049 | rural-crowdsourcing-toolkit-client | MIT License |
Week7/app/src/main/java/com/em4n0101/mytvshows/ui/episodes/EpisodesAdapter.kt | em4n0101 | 268,436,903 | false | null | package com.em4n0101.mytvshows.ui.episodes
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.em4n0101.mytvshows.R
import com.em4n0101.mytvshows.model.response.EpisodesForSeasonResponse
class EpisodesAdapter: RecyclerView.Adapter<EpisodesViewHo... | 0 | Kotlin | 0 | 1 | 4f1ebb9d68091ef741ac69f2f46e16f512401de2 | 1,031 | AndroidBootcampSummer2020 | Apache License 2.0 |
lib/src/main/kotlin/com/github/lucasls/kotlinx/wiremock/WireMockExtensions.kt | lucasls | 274,213,440 | false | null | package com.github.lucasls.kotlinx.wiremock
import com.github.tomakehurst.wiremock.client.CountMatchingStrategy
import com.github.tomakehurst.wiremock.client.MappingBuilder
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.client.WireMockBuilder
import com.github.tomakehurst... | 0 | Kotlin | 0 | 1 | c6bb9e94848da77d91cc684734d79d12bcf164d6 | 6,237 | wiremock-kotlin-extensions | Apache License 2.0 |
app/src/main/kotlin/com/djuarez/rxkotlin/presentation/AndroidApplication.kt | djuarez | 61,306,917 | false | null | /**
* Copyright (C) 2015 <NAME> 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... | 1 | Kotlin | 38 | 275 | 50e594f226cfe50594eab1933f745b204eccdf35 | 1,697 | Kotlin-CleanArchitecture | Apache License 2.0 |
app/src/main/kotlin/com/spacexwalk/presentation/main/MainViewModel.kt | OlegSheliakin | 331,570,000 | false | null | package com.spacexwalk.presentation.main
import com.spacexwalk.core.applySchedulers
import com.spacexwalk.core.throttling
import com.spacexwalk.domain.repositories.CompanyInfoRepository
import com.spacexwalk.domain.repositories.LaunchesRepository
import com.spacexwalk.presentation.mvi.MviViewModel
import dagger.assist... | 0 | Kotlin | 0 | 0 | 902a3b3dcedaa9cc9bacfa3e8f8befbd5490c8c7 | 2,549 | SpaceXWalk | Apache License 2.0 |
src/client/kotlin/dev/hybridlabs/aquatic/client/render/entity/fish/CowfishEntityRenderer.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.client.render.entity.fish
import dev.hybridlabs.aquatic.client.model.entity.fish.CowfishEntityModel
import dev.hybridlabs.aquatic.entity.fish.HybridAquaticFishEntity
import net.minecraft.client.render.entity.EntityRendererFactory.Context
class CowfishEntityRenderer(context: Context) : H... | 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 425 | hybrid-aquatic | MIT License |
app/src/main/java/com/blockstart/android/wallet/view/createWallet/WalletNamePassFragment.kt | jabo38 | 189,737,189 | true | {"JavaScript": 17562425, "C": 2032522, "C++": 677918, "Kotlin": 115751, "Python": 22472, "Java": 3962, "CMake": 2259} | package com.blockstart.android.wallet.view.createWallet
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.content.res.ResourcesCompat
import android.text.SpannedString
import android.view.LayoutInfla... | 0 | JavaScript | 0 | 0 | 88c9500022bda142c87e3771f825a1208ce7c310 | 2,613 | nem-meteor-wallet-android | The Unlicense |
app/src/main/java/com/brookes6/cloudmusic/ui/widget/SongItem.kt | brokes6 | 428,601,432 | false | null | package com.brookes6.cloudmusic.ui.widget
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
impor... | 0 | Kotlin | 3 | 15 | af5805f903107d61467eebbd9ddfb00a595f7319 | 2,404 | CloudMusic | Apache License 2.0 |
domain/src/main/java/com/semicolon/domain/entity/users/FetchDailyGoalEntity.kt | Walkhub | 443,006,389 | false | null | package com.semicolon.domain.entity.users
data class FetchDailyGoalEntity(
val dailyWalkCountGoal: Int
)
| 5 | Kotlin | 1 | 29 | 5070c2c33365f2db6f57975078e1ecd7594f66fa | 110 | walkhub_android | MIT License |
broker-server/src/main/kotlin/com/bendaniel10/broker/server/feature/impl/BrokerStatusPageServerFeature.kt | bendaniel10 | 232,372,440 | false | null | package com.bendaniel10.broker.server.feature.impl
import com.bendaniel10.broker.server.feature.BrokerServerFeature
import io.ktor.application.Application
import io.ktor.application.call
import io.ktor.application.install
import io.ktor.features.StatusPages
import io.ktor.http.HttpStatusCode
import io.ktor.response.re... | 1 | Kotlin | 1 | 7 | 096ef2eadc147b00afd08e53bd22e34019865e14 | 717 | broker | Apache License 2.0 |
src/main/kotlin/co/there4/hexagon/rest/RestBaseCrud.kt | rinekri | 73,641,098 | true | {"Kotlin": 202934, "Shell": 11518, "FreeMarker": 7663, "Batchfile": 2292, "CSS": 1326, "HTML": 653} | package co.there4.hexagon.rest
import co.there4.hexagon.repository.MongoRepository
import co.there4.hexagon.serialization.*
import co.there4.hexagon.web.*
import com.mongodb.MongoWriteException
import com.mongodb.client.FindIterable
import java.nio.charset.Charset.defaultCharset
/**
* TODO Implement pattern find wit... | 0 | Kotlin | 0 | 0 | fde9fe81b19cf3ab532aa9ed6ebb7106463a087d | 2,996 | hexagon | The Unlicense |
app/src/main/java/com/letter/days/activity/SettingActivity.kt | NevermindZZT | 164,197,780 | false | null | package com.letter.days.activity
import android.os.Bundle
import android.view.MenuItem
import com.letter.days.databinding.ActivitySettingBinding
/**
* 设置活动
* @property binding ActivitySettingBinding 视图绑定
*
* @author Letter(nevermindzzt@gmail.com)
* @since 1.0.0
*/
class SettingActivity : BaseActivity() {
p... | 0 | Kotlin | 1 | 9 | 641bc9587bc8edbe569653c3242cb08fc7bfc071 | 986 | Days | MIT License |
app/src/main/java/com/ly/easyrefresh/refresh/EasyRefresh.kt | 972223177 | 521,466,767 | false | null | package com.ly.easyrefresh.refresh
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.offset
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clipToBounds
import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx... | 0 | Kotlin | 1 | 0 | 4bb66040d382d3b2f4a05d4301b2c1b391025beb | 2,905 | easyrefresh-compose | Apache License 2.0 |
native/swift/sir-light-classes/src/org/jetbrains/sir/lightclasses/SirDeclarationFromKtSymbolProvider.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78020897, "Java": 6696240, "Swift": 4062767, "C": 2609482, "C++": 1967339, "Objective-C++": 169966, "JavaScript": 135932, "Python": 48402, "Shell": 34800, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 5136... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.sir.lightclasses
import org.jetbrains.kotlin.analysis.api.KtAnalysisSession
import org.... | 176 | Kotlin | 5601 | 47,397 | a47dcc227952c0474d27cc385021b0c9eed3fb67 | 2,507 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/jpthiery/heimdall/infra/RedisEventStore.kt | jpthiery | 212,213,589 | false | null | package com.github.jpthiery.heimdall.infra
/*
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 requir... | 2 | Kotlin | 0 | 0 | 1ae350afe2662f2bcb0b22c0918d8cdc5c9b0b6e | 3,844 | heimdall | Apache License 2.0 |
base/src/main/java/org/kin/stellarfork/AssetTypeCreditAlphaNum.kt | wangpeikai | 364,139,277 | true | {"Kotlin": 2253108, "Java": 312868} | package org.kin.stellarfork
/**
* Base class for AssetTypeCreditAlphaNum4 and AssetTypeCreditAlphaNum12 subclasses.
*
* @see [Assets](https://www.stellar.org/developers/learn/concepts/assets.html)
*/
abstract class AssetTypeCreditAlphaNum(
/**
* Returns asset code
*/
val code: String,
/**
... | 0 | null | 0 | 0 | 7b0ccee81d00f445af7ca25252bb0bf2d7c02b40 | 802 | kin-core | MIT License |
packages/app/app/src/main/java/com/posttrip/journeydex/JourneydexApplication.kt | Woo-Dong93 | 821,739,845 | false | {"Kotlin": 258025, "TypeScript": 73819} | package com.posttrip.journeydex
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import com.kakao.sdk.common.KakaoSdk
import com.kakao.vectormap.KakaoMapSdk
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class JourneydexApplication : Application() {
override fun onCreate()... | 3 | Kotlin | 0 | 0 | eb79029bfa1dab2300c2b75c45eef6ca9a859dd1 | 612 | PostTrip | MIT License |
app/src/main/java/com/zaragoza/contest/di/modules.kt | pablo-ziura | 695,146,759 | false | {"Kotlin": 75939} | package com.zaragoza.contest.di
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.ktx.Firebase
import com.google.firebase.storage.ktx.storage
import com.zaragoza.contest.data.question.QuestionDataRepository
import com.zaragoza.contest.data.question.remote.QuestionRemoteImpl
import com.zaragoza.co... | 0 | Kotlin | 0 | 0 | f2158e70869f9c0ed7ac9391f245a1611e081455 | 3,299 | zaragoza-contest | Apache License 2.0 |
common/src/desktopMain/kotlin/com/yorick/sharednotes/ui/navigation/SharedNotesNavHost.kt | Yorick-Ryu | 584,351,339 | false | {"Kotlin": 268100} | package com.yorick.sharednotes.ui.navigation
import androidx.compose.animation.expandHorizontally
import androidx.compose.animation.fadeOut
import androidx.compose.animation.shrinkHorizontally
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.c... | 0 | Kotlin | 0 | 32 | 530fd2d5c299dd62088d15bcf722c3726fbe1104 | 7,456 | SharedNotes | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.