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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sdk-library/src/main/java/pers/pslilysm/sdk_library/util/GsonUtil.kt | pslilysm | 525,191,828 | false | null | package pers.pslilysm.sdk_library.util
import android.text.TextUtils
import androidx.collection.ArraySet
import com.google.gson.*
import com.google.gson.internal.LinkedTreeMap
import pers.pslilysm.sdk_library.annotation.GsonExclude
import pers.pslilysm.sdk_library.util.reflection.ReflectionUtil
/**
* Miscellaneous [... | 0 | Kotlin | 0 | 1 | 568b38cb598be13b1c20623ef6f83d8481b37240 | 4,415 | sdk-ktx | Apache License 2.0 |
tools/unit/src/main/kotlin/com/datadog/tools/unit/extensions/ProhibitLeavingStaticMocksExtension.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.tools.unit.extensions
import com.datadog.tools.u... | 44 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 9,559 | dd-sdk-android | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/geolocation/GeolocationPosition.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6472581} | // Automatically generated - do not modify!
package web.geolocation
import js.core.EpochTimeStamp
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
*/
sealed external class GeolocationPosition {
/**
* [MDN Reference](https://deve... | 0 | Kotlin | 6 | 27 | e8d3760ae4b6f6dc971ca3b242bffed65af5f3d1 | 576 | types-kotlin | Apache License 2.0 |
domain/src/main/java/com/gmart/domain/model/Country.kt | gimartinez17 | 771,233,885 | false | {"Kotlin": 515365, "CMake": 1625, "C++": 259} | package com.gmart.domain.model
data class Country(
val country: String? = null,
val englishName: String? = null,
val nativeName: String? = null
)
| 0 | Kotlin | 1 | 1 | da0854981d865fb7207767ae3e6a4c8ce1f441a8 | 159 | movies-app | MIT License |
src/test/kotlin/leet/T1-array.kt | dzca | 581,929,762 | false | {"Kotlin": 75573} | package leet
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class T1{
@Test
fun `minWindow`(){
val a1 = "ADOBECODEBANC"
val b1 = "ABC"
assertEquals("BANC", minWindow(a1, b1))
}
@Test
fun `longestSubStr1`(){
val a1 = "abcabcbb"
val a2 = ... | 0 | Kotlin | 0 | 0 | b1e7d1cb739e21ed7e8b7484d6efcd576857830f | 1,088 | kotlin-algrithm | MIT License |
app/src/main/java/hu/kristof/nagy/hikebookclient/view/hike/TransportType.kt | Kristof1999 | 464,363,767 | false | {"Kotlin": 405541} | package hu.kristof.nagy.hikebookclient.view.hike
enum class TransportType {
BICYCLE, CAR
} | 0 | Kotlin | 0 | 0 | 013501c897446b02c4b08d3d6922c2e0d6a9d902 | 95 | HikeBookClient | Apache License 2.0 |
android/app/src/main/java/org/alteh/orghelper/data/CommandResult.kt | alteh-union | 268,625,838 | false | {"JavaScript": 836461, "Kotlin": 217464, "HTML": 1721, "CSS": 930, "SCSS": 36} | /*
* Copyright (c) 2021 <NAME> (<EMAIL>)
*
* Licensed under the MIT License (see the root LICENSE file for details)
*/
package org.alteh.orghelper.data
import com.google.gson.annotations.SerializedName
import java.io.Serializable
/**
* Represents a result of a command execution on the Bot's server side.
* This... | 26 | JavaScript | 3 | 6 | 122d2acaf8721752706d70489041f98eeb240c2d | 736 | org-helper | MIT License |
data/src/test/kotlin/straightway/peerspace/data/IdTest.kt | cryptobuks | 141,508,151 | true | {"Kotlin": 249965} | /*
* Copyright 2016 github.com/straightway
*
* 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 applic... | 0 | Kotlin | 0 | 0 | 972b9d4e5827ef656d589c9cd5aee7cb3c82a766 | 2,601 | peerspace | Apache License 2.0 |
android/src/main/kotlin/com/smena/flutter_varioqub/FlutterVarioqubPlugin.kt | smenateam | 700,069,469 | false | {"Kotlin": 5360, "Swift": 4790, "Dart": 3306, "Ruby": 3004, "Java": 607, "Objective-C": 38} | package com.smena.flutter_varioqub
import android.app.Application
import android.content.Context
import androidx.annotation.NonNull
import com.yandex.metrica.YandexMetrica
import com.yandex.metrica.YandexMetricaConfig
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
... | 0 | Kotlin | 0 | 0 | 9b2597fc16f4b2849c284cf9d5287d0b4c98036a | 4,242 | flutter_varioqub | MIT License |
ses-plugin-server/src/main/kotlin/jetbrains/buildServer/sesPlugin/bounceHandler/BounceHandler.kt | JetBrains | 105,000,686 | false | {"Kotlin": 153538, "Java": 9533, "JavaScript": 6552, "CSS": 57} |
package jetbrains.buildServer.sesPlugin.bounceHandler
/**
* Interface handling bounce events (hard ones only)
*/
interface BounceHandler {
fun handleBounces(mails: Sequence<String>)
} | 4 | Kotlin | 4 | 2 | defc95b475b7971ca29a43beddc31d08ff96269f | 192 | TeamCity.SESPlugin | Apache License 2.0 |
app/src/main/java/eleccionmp/redciudadana/org/eleccionmp/views/candidates/CandidatesPresenter.kt | RedCiudadana | 118,052,799 | false | null | package eleccionmp.redciudadana.org.eleccionmp.views.candidates
import eleccionmp.redciudadana.org.eleccionmp.R
import eleccionmp.redciudadana.org.eleccionmp.http.Models
import eleccionmp.redciudadana.org.eleccionmp.utils.mvp.BasePresenter
/**
* Created by javier on 1/23/18.
*/
class CandidatesPresenter : BasePres... | 1 | Kotlin | 0 | 0 | b8b7cb0d3135172e304cf140d5dcdb4883fd136c | 929 | EleccionMPAndroid | MIT License |
server/src/main/kotlin/com/arianegraphql/ktx/Resolver.kt | arianegraphql | 354,885,191 | false | null | package com.arianegraphql.ktx
import graphql.GraphQLContext
import graphql.schema.DataFetcher
import kotlinx.coroutines.runBlocking
interface Resolver<S> {
suspend fun resolve(arguments: Argument, source: S, context: GraphQLContext, info: Info): Any?
}
@JvmInline value class FunctionalResolver<S>(
private va... | 1 | null | 0 | 4 | d74905dc0146cf93894b0634c0c3bcd75b40e747 | 831 | ariane-server | MIT License |
network/src/main/java/org/fnives/test/showcase/network/content/ContentRemoteSource.kt | fknives | 356,982,481 | false | null | package org.fnives.test.showcase.network.content
import org.fnives.test.showcase.model.content.Content
import org.fnives.test.showcase.network.shared.exceptions.NetworkException
import org.fnives.test.showcase.network.shared.exceptions.ParsingException
import kotlin.jvm.Throws
interface ContentRemoteSource {
@Th... | 9 | Kotlin | 2 | 5 | 5bf503d90e8a13daf5626afc0cdf8bff523d2b94 | 414 | AndroidTest-ShowCase | Apache License 2.0 |
guides/micronaut-rabbitmq-rpc/bookinventory/kotlin/src/main/kotlin/example/micronaut/BookInventoryService.kt | micronaut-projects | 326,986,278 | false | {"Java": 2207487, "Groovy": 1129386, "Kotlin": 977645, "JavaScript": 110091, "HTML": 93452, "CSS": 30567, "Shell": 5473, "AppleScript": 1063, "Python": 47} | /*
* Copyright 2017-2024 original authors
*
* 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 agr... | 209 | Java | 31 | 36 | 9f04eb978f4882e883adffb6c95d6a6928d79b29 | 1,401 | micronaut-guides | Creative Commons Attribution 4.0 International |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Pilcrow.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,337 | compose-icon-collections | MIT License |
src/main/kotlin/org/ivcode/mvn/controllers/BasicAuthController.kt | iv-buildsystem | 744,432,718 | false | {"Kotlin": 46483, "FreeMarker": 1906, "Shell": 1546, "Dockerfile": 849} | package org.ivcode.mvn.controllers
import org.ivcode.mvn.services.basicauth.BasicAuthService
import org.ivcode.mvn.services.basicauth.model.BasicAuthUser
import org.ivcode.mvn.services.basicauth.model.CreateBasicAuthUser
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.anno... | 0 | Kotlin | 0 | 0 | fe0d469a9e250e9964d8e80258662cff03b482a9 | 1,127 | iv-mvn | Apache License 2.0 |
src/main/java/it/actuallyrocks/livecoding/query/AccountSummary.kt | magnusmickelsson | 185,400,815 | false | {"Java": 7648, "Kotlin": 7521} | package it.actuallyrocks.livecoding.query
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.NamedQueries
import javax.persistence.NamedQuery
/**
* Read model entity
*/
@Entity
@NamedQueries(
NamedQuery(name = "AccountSummary.fetch",
query = "SELECT c FROM AccountSummar... | 1 | null | 1 | 1 | 56d659f703a3c7290035db330f2bd96c2e2093a8 | 651 | axon-livecoding | Apache License 2.0 |
src/app/src/test/kotlin/org/vaccineimpact/orderlyweb/tests/unit_tests/controllers/api/ReportRunControllerTests.kt | vimc | 173,126,600 | false | null | package org.vaccineimpact.orderlyweb.tests.unit_tests.controllers.api
import com.google.gson.Gson
import com.nhaarman.mockito_kotlin.*
import okhttp3.Headers
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Test
import org.pac4j.co... | 3 | null | 4 | 4 | e3a2a8204a3e559e15f1d54e884e8ea1aa798cf0 | 6,503 | orderly-web | MIT License |
src/main/kotlin/com/forgerock/sapi/gateway/framework/utils/ClientAndApiParameterizedTest.kt | SecureApiGateway | 795,036,493 | false | {"Kotlin": 137504, "Makefile": 1388, "Dockerfile": 379} | package com.forgerock.sapi.gateway.framework.utils
import com.forgerock.sapi.gateway.framework.api.ApiUnderTest
import com.forgerock.sapi.gateway.framework.apiclient.ApiClient
import com.forgerock.sapi.gateway.framework.configuration.ConfigurationManager
import org.junit.jupiter.api.Named
import org.junit.jupiter.para... | 4 | Kotlin | 0 | 0 | e037d89f48317bfe09005cb4fcf7c8bd36da2a2f | 1,247 | secure-api-gateway-functional-test-framework | Apache License 2.0 |
app/src/main/java/com/example/touristattractionsinbulgaria/data/RoomDb.kt | Kavertx | 728,627,137 | false | {"Kotlin": 15576} | package com.example.touristattractionsinbulgaria.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [Attraction::class, District::class], version = 1, exportSchema = false)
abstract class RoomDb : RoomDatabase() {
abs... | 0 | Kotlin | 0 | 0 | 792ef8a6b24dfba4f48191e27921f3901814cc09 | 1,213 | TouristAttractionsinBulgaria | MIT License |
app/src/main/java/com/kpstv/jettweet/ui/search/SearchScreen.kt | KaustubhPatange | 317,543,580 | false | null | package com.kpstv.jettweet.ui.search
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui... | 0 | Kotlin | 0 | 2 | 44967a4f375530fd02be01992c71fb4528bfac7a | 932 | JetTweet | Apache License 2.0 |
component/component-ding/src/main/java/love/forte/simbot/component/ding/utils/DingCatUtil.kt | simple-robot | 554,852,615 | false | null | /*
* Copyright (c) 2020. ForteScarlet All rights reserved.
* Project component-ding
* File DingCQUtil.kt
* Date 2020/8/8 下午5:44
* You can contact the author through the following channels:
* github https://github.com/ForteScarlet
* gitee https://gitee.com/ForteScarlet
* email <EMAIL>
* QQ 114915921... | 0 | Kotlin | 0 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 6,510 | simple-robot-v2 | Apache License 2.0 |
navigator/src/main/java/com/santukis/navigator/Navigator.kt | santukis | 309,307,272 | false | null | package com.santukis.navigator
import android.content.ActivityNotFoundException
import android.content.pm.ActivityInfo
import android.os.Build
import androidx.annotation.IdRes
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androi... | 0 | Kotlin | 0 | 0 | ffa23f55f81b1074cd7429ad00a5bf8a70067f2f | 7,683 | navigator | MIT License |
app/src/test/java/com/josphat/productsapp/MockRequestDispatcher.kt | josphatmwania | 859,223,290 | false | {"Kotlin": 33045} | package com.josphat.productsapp
import mockwebserver3.Dispatcher
import mockwebserver3.MockResponse
import mockwebserver3.RecordedRequest
import java.io.BufferedReader
import java.io.InputStreamReader
import java.lang.IllegalArgumentException
class MockRequestDispatcher : Dispatcher() {
override fun dispatch(requ... | 6 | Kotlin | 1 | 0 | fd2003d367759b4dec1211596463ccf93a5797cd | 1,119 | ProductsApp | MIT License |
components-compose/src/main/java/uk/gov/hmrc/components/compose/ui/theme/Dimensions.kt | hmrc | 299,591,950 | false | {"Kotlin": 556987, "Ruby": 10016, "Shell": 1395} | /*
* Copyright 2023 HM Revenue & Customs
*
* 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 a... | 4 | Kotlin | 2 | 7 | d60c3c433a57493aae22b40bb27569c50a9417b6 | 1,573 | android-components | Apache License 2.0 |
util-backend-test/src/main/kotlin/team/duckie/quackquack/util/backend/test/utils.kt | duckie-team | 523,387,054 | false | {"Kotlin": 901061, "MDX": 51559, "JavaScript": 6871, "CSS": 1060} | /*
* Designed and developed by Duckie Team 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/quack-quack-android/blob/main/LICENSE
*/
package team.duckie.quackquack.util.backend.test
import java.io.File
public fun File.findGeneratedFileOrNull(fileName: String): File? =
... | 45 | Kotlin | 8 | 99 | 24d44663cf5bea29fc73595b5f60be03b08e162b | 561 | quack-quack-android | MIT License |
src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/searchers/DeadlineHandlerSearcher.kt | AxonFramework | 10,942,246 | false | {"Kotlin": 330266} | /*
* Copyright (c) 2022. Axon Framework
*
* 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... | 22 | Kotlin | 19 | 34 | 781f71ca1707df9d23e624adddefa7050a408307 | 1,994 | IdeaPlugin | Apache License 2.0 |
2022/src/main/kotlin/org/suggs/adventofcode/Day09RopeBridge.kt | suggitpe | 321,028,552 | false | {"Kotlin": 151090} | package org.suggs.adventofcode
import org.slf4j.LoggerFactory
object Day09RopeBridge {
private val log = LoggerFactory.getLogger(this::class.java)
fun countTailPositionsFrom(data: List<String>): Int {
val instructions = data.map { it.split(" ") }
data.forEach {
log.debug("Process... | 0 | Kotlin | 0 | 0 | ddb1f9545ffbd4f51db1747252741cd4300e7712 | 920 | advent-of-code | Apache License 2.0 |
app/src/main/kotlin/it/vfsfitvnm/vimusic/utils/RingBuffer.kt | geekeie | 861,208,877 | false | null | package it.vfsfitvnm.vimusic.utils
class RingBuffer<T>(val size: Int, init: (index: Int) -> T) {
private val list = MutableList(size, init)
private var index = 0
fun getOrNull(index: Int): T? = list.getOrNull(index)
fun append(element: T) = list.set(index++ % size, element)
}
| 0 | Kotlin | 0 | 0 | e8bd63bdeef64c0a001c78cc8cf0097d9628fb66 | 297 | YMusic | MIT License |
locgetter/src/main/java/com/titanium/locgetter/main/LocationGetterBuilder.kt | titanium-codes | 105,818,289 | false | null | package com.titanium.locgetter.main
import android.content.Context
import android.util.Log
import com.titanium.locgetter.exception.MockLocationException
/**
* Used to create new instances of [LocationGetter]
*/
class LocationGetterBuilder(private val context: Context) {
/**
* Custom logger
* By defau... | 1 | Kotlin | 6 | 13 | 12551ce979128c2393b3dd40a2d7a0d4574f1cf3 | 1,432 | LocGetter | MIT License |
app/src/main/java/fr/jonathangerbaud/ktx/TextView.kt | jonathangerbaud | 155,224,184 | false | null | package fr.jonathangerbaud.ktx
import android.widget.TextView
fun TextView.setTextOrHide(text: String?)
{
if (text.isNullOrBlank())
{
hide()
}
else
{
this.text = text
show()
}
} | 1 | null | 1 | 1 | d9857842495300aaf0b9a77820e23d5c76055405 | 227 | AndroidCommons | MIT License |
app/src/main/java/com/jrk/mood4food/recipes/selection/RecipeAdapter.kt | Honrix | 369,880,093 | false | null | package com.jrk.mood4food.recipes.selection
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.RenderProcessGoneDetail
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
impo... | 0 | null | 0 | 0 | fc086543ef8993e5e43d070d8754f60c94bda003 | 2,644 | Mood4Food | MIT License |
src/test/kotlin/de/flapdoodle/statik/filetypes/TomlTest.kt | flapdoodle-oss | 350,813,259 | false | null | package de.flapdoodle.statik.filetypes
import de.flapdoodle.statik.io.readResource
import org.junit.jupiter.api.Test
class TomlTest {
@Test
fun readSampleToml() {
val sample = javaClass.readResource("sample.toml")
val tree = Toml.asTree(sample)
// println("tree: $tree")
}
} | 0 | Kotlin | 1 | 0 | 347ea640ac74ed937f362dfe4d3b42c50c50a8c8 | 314 | de.flapdoodle.static | Apache License 2.0 |
ui-lib/src/main/java/co/electriccoin/zcash/ui/screen/authentication/AndroidAuthentication.kt | Electric-Coin-Company | 390,808,594 | false | {"Kotlin": 1834553} | @file:Suppress("ktlint:standard:filename")
package co.electriccoin.zcash.ui.screen.authentication
import android.widget.Toast
import androidx.activity.viewModels
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.res.stringResource
import androidx.life... | 173 | Kotlin | 15 | 25 | 359d4a5eea03dfb3c1ffbc5df1baca1c6f7917a7 | 18,706 | zashi-android | MIT License |
app/src/main/java/com/goldenowl/ecommerceapp/data/OrderRepository.kt | Catelt | 556,541,382 | false | {"Kotlin": 398009, "Batchfile": 284} | package com.goldenowl.ecommerceapp.data
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.asFlow
import com.goldenowl.ecommerceapp.utilities.ORDER_USER
import com.goldenowl.ecommerceapp.utilities.STATUS_ORDER
import com.goldenowl.ecommerceapp.utilities.TIME_CREATE
import com.goldenowl.ecommerceapp.ut... | 0 | Kotlin | 0 | 0 | ee67ef6cc8512fe1928050a06a034ce5829d8671 | 2,689 | E-Commerce-Application | MIT License |
data/src/main/java/com/mctech/data/quotation/model/RandomQuotationResponse.kt | MayconCardoso | 198,072,780 | false | null | package com.mctech.data.quotation.model
import com.google.gson.annotations.SerializedName
import java.util.*
/**
* @author <NAME> on 2019-11-06.
*/
class RandomQuotationResponse(
@SerializedName("quote_id")
val id: String,
@SerializedName("appeared_at")
val date: Date,
@SerializedName("tags")... | 0 | Kotlin | 4 | 21 | 7c2d04f56439c42b6bf8bc26807be25111d90dde | 494 | Modularized-Kotlin-Clean-Architecture-Showcase | Apache License 2.0 |
app/src/main/java/live/mehiz/mpvkt/ui/player/controls/components/panels/SubtitleSettingsColorsCard.kt | abdallahmehiz | 799,697,356 | false | null | package live.mehiz.mpvkt.ui.player.controls.components.panels
import androidx.annotation.StringRes
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.com... | 6 | null | 2 | 30 | 8d3bfbdad09d537291e9369e45d1f6f62c8cc82a | 7,203 | mpvKt | Apache License 2.0 |
src/commonMain/kotlin/coingecko/models/coins/data/IcoData.kt | DrewCarlson | 267,978,965 | false | null | package coingecko.models.coins.data
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class IcoData(
@SerialName("ico_start_date")
val icoStartDate: String? = null,
@SerialName("ico_end_date")
val icoEndDate: String? = null,
@SerialName("short_des... | 5 | null | 9 | 44 | 64d96a5971fa9b47c2786ad6f44ceea71ab6fb5f | 2,372 | CoinGecko-Kotlin | MIT License |
shared/src/commonMain/kotlin/utils/BaseViewModel.kt | Flop88 | 630,059,851 | false | null | package utils
import kotlinx.coroutines.CoroutineScope
expect abstract class CoroutineViewModel() {
val coroutineScope: CoroutineScope
fun dispose()
protected open fun onCleared()
} | 0 | Kotlin | 0 | 0 | 568789888436199fa5fccd1a7057bb6c3b6dbb15 | 197 | kmp_ai_helper | Apache License 2.0 |
notifications/src/main/kotlin/com/amazon/opendistroforelasticsearch/notifications/action/PluginBaseAction.kt | opendistro-for-elasticsearch | 294,836,105 | false | null | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the ... | 6 | null | 4 | 5 | 87c4b48b5550d1df77f73c3c3c2ead9a5851a9f7 | 5,427 | notifications | Apache License 2.0 |
app/src/main/java/com/erplsf/scrubber/WordDefinitionDao.kt | erplsf | 200,486,951 | false | null | package com.erplsf.scrubber
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface WordDefinitionDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun save(wordDefinition: WordDefinition)
... | 0 | Kotlin | 0 | 0 | ac16ab8c5bd395d5600b611920ca0c25c56a4bae | 562 | scrubber | MIT License |
clikt/src/jsTest/kotlin/com/github/ajalt/clikt/testing/skipDueToKT33294.kt | ajalt | 128,975,548 | false | null | package com.github.ajalt.clikt.testing
actual val skipDueToKT33294: Boolean = true
actual val skipDueToKT43490: Boolean = true
| 18 | Kotlin | 112 | 2,125 | 4c6437bbcec237c018cbf74617ac1086b694be19 | 128 | clikt | Apache License 2.0 |
src/test/kotlin/com/ymoch/study/server/controller/ErrorHandlingControllerTest.kt | ymoch | 150,832,195 | false | null | package com.ymoch.study.server.controller
import com.ymoch.study.server.record.error.ErrorRecord
import com.ymoch.study.server.service.debug.DebugService
import com.ymoch.study.server.service.error.ErrorService
import com.ymoch.study.server.service.debug.DebugRecorder
import org.hamcrest.MatcherAssert.assertThat
impor... | 0 | Kotlin | 0 | 0 | 1d82b182c6de9c88db26f0da1bbae0ba56fb4775 | 2,742 | kotlin-server-study | MIT License |
src/main/kotlin/com/jeno/reactspringapp/configuration/SecurityConfig.kt | JenoDK | 399,538,764 | false | null | package com.jeno.reactspringapp.configuration
import com.jeno.reactspringapp.security.CustomUserDetailsService
import com.jeno.reactspringapp.security.RestAuthenticationEntryPoint
import com.jeno.reactspringapp.security.TokenAuthenticationFilter
import com.jeno.reactspringapp.security.oauth2.CookieOAuth2AuthorizationR... | 0 | Kotlin | 0 | 1 | 45c8515d8ac9a28b97c186c5c488604240ba588a | 4,732 | react-spring-app | Apache License 2.0 |
crabzilla-core/src/test/java/io/github/crabzilla/example1/customer/CustomerCmdHandler.kt | MateuszNaKodach | 218,310,471 | true | {"Kotlin": 140231, "Java": 17754, "TSQL": 1870} | package io.github.crabzilla.example1.customer
import io.github.crabzilla.framework.*
import io.vertx.core.Future.succeededFuture
import io.vertx.core.Promise
import io.vertx.core.Promise.failedPromise
import io.vertx.core.Promise.succeededPromise
class CustomerCmdHandler(cmdMetadata: CommandMetadata,
... | 0 | null | 0 | 0 | 74faf7d118200f0afbf0d8d0b5d335cb5c22e58c | 1,766 | crabzilla | Apache License 2.0 |
zlauncher/src/main/java/com/inz/z/zlauncher/view/widget/LauncherPage.kt | Memory-Z | 141,771,340 | false | {"Java": 1063423, "Kotlin": 584610} | package com.inz.z.zlauncher.view.widget
import android.content.Context
import android.util.AttributeSet
import android.view.ViewGroup
/**
* 运行页
* @author Zhenglj
* @version 1.0.0
* Create by inz in 2019/12/31 14:39.
*/
class LauncherPage : ViewGroup {
constructor(context: Context?) : super(context)
const... | 1 | null | 1 | 1 | feff01057cf308fcbf9f1ebf880b9a114badf970 | 623 | Z_inz | Apache License 2.0 |
app/src/main/java/com/life4/flowpod/features/news/NewsFragment.kt | serhatkarakoca | 567,899,274 | false | {"Kotlin": 384571} | package com.life4.flowpod.features.news
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.life4.core.core.view.BaseFragment
import... | 0 | Kotlin | 0 | 0 | 5f0df5ad62a16af45910730f88cea4cb2a133d69 | 3,169 | Flowpod-News-Podcast | Apache License 2.0 |
composeApp/src/iosMain/kotlin/main.kt | Kashif-E | 848,935,132 | false | {"Kotlin": 30503, "Swift": 697} | import androidx.compose.ui.window.ComposeUIViewController
import com.kashif.sample.App
import platform.UIKit.UIViewController
fun MainViewController(): UIViewController = ComposeUIViewController { App() }
| 0 | Kotlin | 1 | 4 | 25c0a9bf19d02d6e569cce859c6bd0beaa7dfbe0 | 206 | Native-Ios-Navigation-Compose-Multiplatform | MIT License |
app/shared/memfault/impl/src/commonMain/kotlin/build/wallet/memfault/MemfaultProjectKey.kt | proto-at-block | 761,306,853 | false | {"C": 10474259, "Kotlin": 8243078, "Rust": 2779264, "Swift": 893661, "HCL": 349246, "Python": 338898, "Shell": 136508, "TypeScript": 118945, "C++": 69203, "Meson": 64811, "JavaScript": 36398, "Just": 32977, "Ruby": 13559, "Dockerfile": 5934, "Makefile": 3915, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.memfault
/**
* Project keys are not considered secrets, but IMO it's best to not release them directly.
* It's still easy to reverse the app to find this.
* https://docs.memfault.com/docs/platform/data-routes/
* https://docs.memfault.com/docs/ci/authentication/#project-key
*/
internal object ... | 3 | C | 16 | 113 | 694c152387c1fdb2b6be01ba35e0a9c092a81879 | 390 | bitkey | MIT License |
app/src/main/java/com/volie/wallhalla/data/model/Src.kt | harunuyan | 630,386,273 | false | null | package com.volie.wallhalla.data.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
@Entity(tableName = "src_table")
@Parcelize
data class Src(
@PrimaryKey(autoGenerate = true)
val srcId: Int? = null,
val landscape: String,
... | 0 | Kotlin | 0 | 1 | 8b27718441a01e44d066296e369aef15a91cddf1 | 356 | Wallhalla | The Unlicense |
ktfx-commons/src/main/kotlin/ktfx/dialogs/Alerts.kt | hanggrian | 102,934,147 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package ktfx.dialogs
import javafx.scene.Node
import javafx.scene.control.Alert
import javafx.scene.control.Alert.AlertType
import javafx.scene.control.ButtonType
import javafx.scene.control.ButtonType.CLOSE
import javafx.scene.control.ButtonType.NO
import javafx.scene.control.Butt... | 1 | null | 2 | 18 | edc15180b85065567a877254c439bb61ee07c329 | 6,774 | ktfx | Apache License 2.0 |
intellij2checkstyle-core/src/test/kotlin/integration/tests/SingleProfileWithIntelliJOverridePath.kt | theodm | 143,562,099 | false | null | package integration.tests
import de.theodm.intellij2checkstyle.Intellij2Checkstyle
import de.theodm.intellij2checkstyle.convert.reporters.checkstyle.CheckstyleReporter
import de.theodm.intellij2checkstyle.extensions.path.readFully
import de.theodm.intellij2checkstyle.extensions.path.resolve
import de.theodm.intellij2c... | 1 | null | 1 | 1 | 2607e1f9e4f64e7b4e8140c56918ad5d856a62eb | 3,110 | intellij2checkstyle | Apache License 2.0 |
app/src/main/java/com/mobdeve/s11/group5/shopfreemobileapp/Market.kt | TritonSaber | 814,968,916 | false | {"Kotlin": 58618, "Java": 1735} | package com.mobdeve.s11.group5.shopfreemobileapp
data class Market (
public var mName: String,
public var mLoc: String,
public var mDesc: String?,
public var mImage: Int
) | 0 | Kotlin | 0 | 0 | 7017813d2aa1e4a960b58b0555e3d2906470cd9f | 188 | MOBDEVE-S11-GROUP5 | MIT License |
app/common/src/androidMain/kotlin/com/denchic45/studiversity/ui/auth/AuthUI.kt | denchic45 | 435,895,363 | false | null | package com.denchic45.studiversity.ui.auth
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.LinearProgressIndicator
i... | 0 | null | 0 | 7 | 93947301de4c4a9cb6c3d9fa36903f857c50e6c2 | 2,578 | Studiversity | Apache License 2.0 |
app/common/src/androidMain/kotlin/com/denchic45/studiversity/ui/auth/AuthUI.kt | denchic45 | 435,895,363 | false | null | package com.denchic45.studiversity.ui.auth
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.LinearProgressIndicator
i... | 0 | null | 0 | 7 | 93947301de4c4a9cb6c3d9fa36903f857c50e6c2 | 2,578 | Studiversity | Apache License 2.0 |
thisboot/src/main/kotlin/com/brageast/blog/thisboot/security/SimpleUserDetails.kt | chenmoand | 208,778,754 | false | {"YAML": 3, "JSON with Comments": 2, "JSON": 5, "Text": 1, "Ignore List": 3, "Markdown": 11, "HTML": 5, "HTTP": 1, "JavaScript": 11, "TSX": 50, "XML": 1, "Less": 6, "Batchfile": 1, "Shell": 1, "Maven POM": 1, "INI": 1, "Java": 2, "Kotlin": 26} | package com.brageast.blog.thisboot.security
import com.brageast.blog.thisboot.entity.User
import org.springframework.security.core.GrantedAuthority
import org.springframework.security.core.authority.SimpleGrantedAuthority
import org.springframework.security.core.userdetails.UserDetails
class SimpleUserDetails(val use... | 9 | TypeScript | 1 | 2 | 0819b24e15843546d0b2d338ad5673b3901dfd4d | 1,177 | thisme | MIT License |
sdk/src/main/java/com/github/thibaultbee/streampack/utils/FileRecorder.kt | thiagooo0 | 417,026,830 | false | {"Kotlin": 383970} | package com.github.thibaultbee.streampack.utils
import android.content.Context
import java.io.File
import java.io.FileOutputStream
import java.nio.ByteBuffer
class FileRecorder {
private var fileOutputStream: FileOutputStream? = null
var file: File? = null
set(value) {
fileOutputStream = ... | 0 | Kotlin | 0 | 2 | 4336493a3215fe727088afa08208c13cf0ffb5e2 | 734 | StreamPack | Apache License 2.0 |
client/android/div/src/main/java/com/yandex/div/core/view2/CompositeLogId.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.view2
import com.yandex.div2.DivSightAction
internal data class CompositeLogId(
val dataTag: String,
val scopeLogId: String,
val actionLogId: String
) {
private val compositeLogId by lazy { formatCompositeLogId() }
private fun formatCompositeLogId(): String {
... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 689 | divkit | Apache License 2.0 |
AndroidStudio/Unit-2/src/main/java/com/example/myapplication/BookAdapter.kt | Thienguen | 567,532,175 | false | {"Kotlin": 91846, "Java": 37674} | package com.example.myapplication
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class BookAdapter (private val books: List<Book>) : RecyclerView.Adapter<BookAdapter.ViewHolder>()
{
// Provid... | 0 | Kotlin | 0 | 3 | b98d163658792885f6ab088120446b11b6e22ea8 | 2,045 | CodePath-Intermediate-Android-Development | Apache License 2.0 |
filepicker/src/main/java/me/rosuh/filepicker/bean/FileNavBean.kt | msdgwzhy6 | 159,752,398 | true | {"Kotlin": 40993, "Java": 7258} | package me.rosuh.filepicker.bean
import me.rosuh.filepicker.bean.IFileBean
/**
*
* @author rosu
* @date 2018/11/21
*/
class FileNavBean(val dirName:String, val dirPath:String): IFileBean {
override var fileName: String
get() = dirName
set(value) {}
override var filePath: String
get... | 0 | Kotlin | 0 | 1 | a21fcf6e1248804864d64db32aee033e450cb8dd | 356 | AndroidFilePicker | MIT License |
src/main/kotlin/net/rentalhost/plugins/php/hammer/inspections/codeSmell/SenselessNumberFormatZeroDecimalInspection.kt | hammer-tools | 509,864,102 | false | null | package net.rentalhost.plugins.php.hammer.inspections.codeSmell
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.refactoring.suggested.createSmartPointer
import com.jetbrains.php.lang.inspections.PhpInspection
import com.jetbrains.php.lang.psi.elements.BinaryExpression
import com.jetbrains.php.lan... | 9 | null | 2 | 96 | eb07d4f34bdd4a588251db854e6c60ca6584886a | 1,945 | php-hammer | Apache License 2.0 |
src/test/kotlin/TestDialogueManager.kt | th2-net | 348,275,947 | false | null | /*
* Copyright 2020-2021 Exactpro (Exactpro Systems Limited)
* 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 l... | 1 | Kotlin | 0 | 1 | 6f5f8344a7e2c313ca6e18510dfbb90fa08e70e8 | 2,556 | th2-conn-http-server | Apache License 2.0 |
src/test/kotlin/leetcode/uber/OptimalAccountBalancingTest.kt | Magdi | 390,731,717 | false | {"Gradle": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 96, "Java": 1} | package leetcode.uber
import leetcode.uber.OptimalAccountBalancing
import org.junit.Test
import org.junit.Assert.*
class OptimalAccountBalancingTest {
@Test
fun `minTransfers test case 1`() {
val transactions = arrayOf(
intArrayOf(0, 1, 10),
intArrayOf(2, 0, 5),
)
... | 0 | Kotlin | 0 | 0 | 63bc711dc8756735f210a71454144dd033e8927d | 1,340 | ProblemSolving | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/com/ethossoftworks/land/PlatformDI.kt | ethossoftworks | 662,813,245 | false | {"Kotlin": 209395, "Swift": 14097, "Shell": 703} | package com.ethossoftworks.land
import com.ethossoftworks.land.service.discovery.DesktopNSDService
import com.ethossoftworks.land.service.discovery.INSDService
import com.ethossoftworks.land.service.preferences.PreferencesService
import com.ethossoftworks.land.service.preferences.IPreferencesService
import com.ethosso... | 0 | Kotlin | 0 | 0 | 4f80493cb1ddc91b21d077c562d34fe6dbae71db | 826 | LANd | MIT License |
app/src/main/java/com/compose/template/utils/Constants.kt | a914-gowtham | 418,768,090 | false | null | package com.compose.template.utils
object Constants {
const val GITHUB_DB_NAME = "github_db"
} | 0 | Kotlin | 0 | 0 | 93acc453d93681eed9c617628b230aa9dfdcc49e | 101 | github-trending-compose | Apache License 2.0 |
domain/src/main/kotlin/com/seanshubin/condorcet/backend/domain/Ballot.kt | SeanShubin | 238,518,165 | false | null | package com.seanshubin.condorcet.backend.domain
import java.time.Instant
data class Ballot(
val voterName: String,
val electionName: String,
val confirmation: String,
val whenCast: Instant,
val rankings: List<Ranking>
) {
fun makeSecret():Ballot = copy(voterName="<redacted>")
companion obj... | 0 | Kotlin | 0 | 0 | ba20f6fed46eaa75ecda2329e411e748ad09125c | 492 | condorcet-backend | The Unlicense |
app/src/main/java/com/nanamare/starter/ui/MainActivity.kt | Nanamare | 639,967,746 | false | null | package com.nanamare.starter.ui
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.nanamare.base.ui.viewBinding
import com.nanamare.base.util.UiState
import com.nanamare.starter.databinding.ActivityMainBinding... | 0 | Kotlin | 0 | 5 | 47ff0a09b2ffd812cd011785b2bcc73ac6da0ef8 | 1,135 | Starter | MIT License |
kzen-auto-jvm/src/main/kotlin/tech/kzen/auto/server/objects/sequence/model/ActiveSequenceModel.kt | alexoooo | 131,353,826 | false | null | package tech.kzen.auto.server.objects.sequence.model
import tech.kzen.lib.common.model.location.ObjectLocation
data class ActiveSequenceModel(
val steps: MutableMap<ObjectLocation, ActiveStepModel> = mutableMapOf(),
var next: ObjectLocation? = null
) | 0 | Kotlin | 0 | 1 | 0cea50ac0276398211b652ad679f42f4bb52b391 | 261 | kzen-auto | MIT License |
Postgrest/src/commonMain/kotlin/io/github/jan/supabase/postgrest/query/Columns.kt | supabase-community | 495,084,592 | false | null | package io.github.jan.supabase.postgrest.query
import kotlin.jvm.JvmInline
/**
* Represents a list of columns to select
* @param value The columns to select, separated by a comma
*/
@JvmInline
value class Columns @PublishedApi internal constructor(val value: String) {
companion object {
/**
... | 4 | null | 28 | 269 | c3c2c2f118c8821336a680c19d307be0d4f67124 | 1,333 | supabase-kt | MIT License |
app/src/main/java/no1/payamax/services/AdvertisementOriginUsabilityProcessor.kt | PayamaX | 723,029,187 | false | {"Kotlin": 24276} | package no1.payamax.services
import no1.payamax.contracts.Payamak
import no1.payamax.contracts.PayamakUsabilityRuleContract
import no1.payamax.contracts.UsabilityRate
import no1.payamax.hasValue
class AdvertisementOriginUsabilityProcessor : PayamakUsabilityRuleContract {
override val name: String
get() = ... | 9 | Kotlin | 0 | 2 | 201439b5d5add3b40f469e5cd99e281ef6b93567 | 1,450 | app | Apache License 2.0 |
src/commonMain/kotlin/matt/model/code/ok/ok.kt | mgroth0 | 532,381,019 | false | {"Kotlin": 214520} | package matt.model.code.ok
import kotlin.annotation.AnnotationTarget.FILE
/*Because setting JvmName is messing things up for android. Basically seems like only way to have expect and actual functions and classes for android, for now
I think this has not yet been made to work with Detekt because the only place it i... | 0 | Kotlin | 0 | 0 | 9831d71c005a6202b30d5f9205577894812736ae | 474 | model | MIT License |
shared/src/commonMain/kotlin/feature_person_detail/presentation/PersonDetailScreen.kt | tolgaprm | 712,824,422 | false | {"Kotlin": 281188, "Swift": 657, "Shell": 228} | package feature_person_detail.presentation
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignmen... | 2 | Kotlin | 0 | 0 | 77c22dc354b9d214ef05d1335c8e3eaefe57d002 | 1,899 | MovaApp-compose-multiplatform | Apache License 2.0 |
app/src/main/java/org/fossasia/susi/ai/data/contract/IGroupWiseSkillsModel.kt | fossasia | 68,798,776 | false | null | package org.fossasia.susi.ai.data.contract
import org.fossasia.susi.ai.rest.responses.susi.ListSkillsResponse
import retrofit2.Response
/**
*
* Created by arundhati24 on 16/07/2018.
*/
interface IGroupWiseSkillsModel {
interface OnFetchSkillsFinishedListener {
fun onSkillFetchSuccess(response: Response... | 81 | null | 1131 | 2,391 | a3409051185d4624e65f7df7847e2fca0910cebe | 528 | susi_android | Apache License 2.0 |
hello-kafka-cqrs/order-command-service/src/main/kotlin/microkafka/escqrs/orders/command/App.kt | thecodemonkey | 374,150,626 | false | null | package microkafka.escqrs.orders.command
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
@SpringBootApplication
class App
fun main(args: Array<String>) {
runApplicati... | 1 | Kotlin | 3 | 9 | a4752cdb21d1d06bffb398fd5d128d14a87c6cec | 386 | kafka-microservices | MIT License |
helios-core/src/main/kotlin/helios/typeclasses/KeyDecoder.kt | 47degrees | 118,187,374 | false | null | package helios.typeclasses
import arrow.core.Either
import arrow.higherkind
import helios.core.DecodingError
import helios.core.JsString
@higherkind
interface KeyDecoder<out A> {
fun keyDecode(value: JsString): Either<DecodingError, A>
} | 27 | Kotlin | 25 | 166 | 46c3c2e6e113257605b72761e797735e51f8f46d | 241 | helios | Apache License 2.0 |
compose/ui-unit/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/unit/LocalDensityExtension.kt | Woody230 | 388,189,330 | false | {"Kotlin": 3122765} | package com.bselzer.ktx.compose.ui.unit
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.Dp
/**
* The [Int] as [Dp].
*/
@Composable
fun Int.toDp(): Dp = LocalDensity.current.run { this@toDp.toDp() }
/**
* The [Float] as [Dp].
*/
@Composab... | 2 | Kotlin | 0 | 7 | 5ad55d66bbb58a12bf3a8b436ea1ea4d8e9737bc | 606 | KotlinExtensions | Apache License 2.0 |
feature/src/main/java/com/thelazybattley/feature/di/DispatcherModule.kt | dellosaneil | 720,658,411 | false | {"Kotlin": 180336} | package com.thelazybattley.common.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.Dispatchers
import javax.inject.Qualifier
import javax.inject.Singleton
@Retention
@Qualifier
annotation class MainDispatcher
@Reten... | 0 | Kotlin | 0 | 0 | adb7ffc205a27b95b8c847ee3af6dcca373b80ca | 816 | weather-app | Apache License 2.0 |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/templating/TemplatingSourceExtensions.kt | nemerosa | 19,351,480 | false | {"Git Config": 1, "Gradle Kotlin DSL": 67, "Markdown": 46, "Ignore List": 22, "Java Properties": 3, "Shell": 9, "Text": 3, "Batchfile": 2, "Groovy": 145, "JSON": 31, "JavaScript": 792, "JSON with Comments": 4, "GraphQL": 79, "Kotlin": 3960, "Java": 649, "HTML": 269, "PlantUML": 25, "AsciiDoc": 288, "XML": 9, "YAML": 33... | package net.nemerosa.ontrack.model.templating
fun parseTemplatingConfig(expression: String): Map<String, String> {
if (expression.isBlank()) {
return emptyMap()
} else {
val config = mutableMapOf<String, String>()
val tokens = expression.split("&")
tokens.forEach { token ->
... | 49 | Kotlin | 25 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 806 | ontrack | MIT License |
kotlin/app/src/main/java/tw/idv/woofdog/easyhealthrecord/network/NetFtp.kt | woofdogtw | 786,333,430 | false | {"Kotlin": 222661, "JavaScript": 740} | package tw.idv.woofdog.easycashaccount.network
import java.io.FileInputStream
import java.io.FileOutputStream
import org.apache.commons.net.ftp.FTP
import org.apache.commons.net.ftp.FTPClient
import org.apache.commons.net.ftp.FTPSClient
/**
* This is a class that handles operations of synchronizing FTP.
*/
class N... | 0 | Kotlin | 0 | 0 | 1d219d66d211fe167df54db1d29fd01f6c6d47ee | 4,083 | easyhealthrecord | MIT License |
app/src/main/java/com/foodiedev/useractivitydetection/receiver/ActivityTransitionReceiver.kt | sriharsha1507 | 288,730,748 | false | null | package com.foodiedev.useractivitydetection.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import com.foodiedev.useractivitydetection.util.ActivityTransitionsUtil
import com.foodiedev.useractivitydetection.util.Constants
import... | 0 | null | 4 | 6 | d22cb5e5bc08438ba354a14def48fbace1630138 | 1,887 | user_activity_detection | MIT License |
code/android/app/src/main/java/isel/ps/classcode/presentation/connectivityObserver/ConnectivityObserver.kt | i-on-project | 607,828,295 | false | null | package isel.ps.classcode.presentation.connectivityObserver
import kotlinx.coroutines.flow.Flow
/**
* Contract for the connectivity observer. This will permit the app to be notified when the connectivity status changes.
*/
interface ConnectivityObserver {
fun observer(): Flow<Status>
enum class Status {
... | 8 | Kotlin | 0 | 2 | 38438411f7c3e82136f2c6a2281364bb8e0f3b43 | 371 | repohouse | Apache License 2.0 |
src/main/kotlin/me/s097t0r1/geminio_kotlin_dsl/recipe/predefined_features/PredefinedFeatures.kt | s097t0r1 | 597,690,525 | false | null | package me.s097t0r1.geminio_kotlin_dsl.recipe.predefined_features
import me.s097t0r1.geminio_kotlin_dsl.recipe.RecipeNode
class PredefinedFeatures() : RecipeNode {
private val nodes = mutableListOf<RecipeNode>()
fun enableModuleCreationParams(builder: EnableModuleCreationParams.() -> Unit) {
nodes +... | 0 | Kotlin | 0 | 2 | 0aee3788314caa9559a79f32c4719782aaaa69f4 | 438 | geminio-kotlin-dsl | MIT License |
gradle/build-logic/convention/src/main/kotlin/com/addhen/fosdem/gradle/AssetCopyTask.kt | eyedol | 170,208,282 | false | {"Kotlin": 553054, "Shell": 3075, "Swift": 1713} | // Copyright 2024, Addhen Limited and the FOSDEM Event app project contributors
// SPDX-License-Identifier: Apache-2.0
package com.addhen.fosdem.gradle
import org.gradle.api.DefaultTask
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.file.RegularFileProperty
import org.gradle.api.logging.LogLevel
i... | 5 | Kotlin | 0 | 1 | 864cd44be222c86b42dec0d3f3d3635ac6720f2b | 1,251 | fosdem-event-app | Apache License 2.0 |
Toolkits/autils/src/main/java/com/atoolkit/autils/AUtils.kt | Suaix | 614,829,857 | false | null | package com.atoolkit.autils
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.doublePreferencesKey
import androidx.datastore.preferenc... | 0 | Kotlin | 0 | 2 | f20df50b68ed17f17c72db73e3da5ee98635d4df | 3,019 | AToolkit | MIT License |
src/main/kotlin/com/careem/gradle/dependencies/effectFinder.kt | careem | 309,438,205 | false | null | /*
* Copyright Careem, an Uber Technologies Inc. company
*
* 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 l... | 2 | Kotlin | 1 | 35 | 953a1538bb812579e2c519088954bf38db3fbd12 | 3,987 | dependency-diff-tldr | Apache License 2.0 |
app/src/main/java/com/mephisto17games/platzhalterpreise/Music.kt | emacholdt | 173,496,732 | false | null | package com.mephisto17games.platzhalterpreise
import android.content.Context
import android.media.MediaPlayer
import android.os.Build.VERSION_CODES.M
import android.preference.Preference
object Music {
//adding a variable to store the time of music being played.
private var pos = 0
private var mp: MediaP... | 0 | Kotlin | 0 | 0 | aeb9c4989c5a5003fcf4c182a2e84b6dceff5e28 | 988 | WildcardWillies | MIT License |
shared/src/androidMain/kotlin/com/mathroda/shared/Main.android.kt | MathRoda | 507,060,394 | false | {"Kotlin": 446115, "Swift": 4323, "Ruby": 2379, "Java": 624} | package com.mathroda.shared
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun MainView() {
DashCoinApp(
modifier = Modifier.fillMaxSize()
)
}
| 0 | Kotlin | 41 | 297 | cf303ba50bad35a816253bee5b27beee5ea364b8 | 259 | DashCoin | Apache License 2.0 |
app/src/main/java/com/tristanwiley/chatse/chat/adapters/UsersAdapter.kt | room-15 | 54,795,261 | false | null | package com.tristanwiley.chatse.chat.adapters
import android.content.Context
import android.os.Build
import android.support.v7.app.AlertDialog
import android.support.v7.widget.RecyclerView
import android.text.Html
import android.text.SpannableString
import android.text.util.Linkify
import android.view.LayoutInflater
i... | 18 | null | 17 | 22 | 4df2e99f4edc2f55da26e1c7e78ff61aca20a9d8 | 4,919 | ChatSE | Apache License 2.0 |
feature/share/src/main/java/com/xinh/share/widget/common/clearable/ClearableView.kt | HuynhXinh | 209,346,576 | false | null | package com.xinh.share.widget.common.clearable
import android.content.Context
import android.util.AttributeSet
import android.view.View
import com.xinh.share.R
import com.xinh.share.extension.showOrGone
import com.xinh.share.widget.common.BaseLinearLayout
import kotlinx.android.synthetic.main.view_clearable.view.*
cl... | 1 | null | 5 | 19 | 6a704f65592b2bfbb2363697885b871209775b96 | 939 | mvvm-clean-architecture | The Unlicense |
android-sdk/src/main/java/webtrekk/android/sdk/core/AppState.kt | acamarinkovic | 198,233,644 | true | {"Kotlin": 209891, "Java": 7560} | /*
* MIT License
*
* Copyright (c) 2019 Webtrekk GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | 0 | Kotlin | 0 | 0 | ec8c385b329921d9f027545f405da86ef3346e84 | 3,656 | webtrekk-android-sdk-BETA | MIT License |
androidtestktx/src/main/java/de/codecentric/androidtestktx/espresso/MockableTestRule.kt | codecentric | 155,190,678 | false | null | package de.codecentric.androidtestktx.espresso
import android.app.Activity
import androidx.test.rule.ActivityTestRule
class MockableTestRule<A : Activity>(
clazz: Class<A>, initialTouchMode: Boolean = false,
launchActivity: Boolean = false, private val preStartSettings: () -> Unit = {}
) : ActivityTestRule<A>(
... | 7 | Kotlin | 7 | 69 | d5ba52472c1bf05e8300c4387e46482ba9c80561 | 472 | androidtestktx | Apache License 2.0 |
abilityk/src/main/java/com/mozhimen/abilityk/scank/ScanKQRActivity.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.scank_hms
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.graphics.Rect
import android.os.Bundle
import android.text.TextUtils
import android.widget.FrameLayout
import com.huawei.hms.hmsscankit.RemoteView
import com.huawei.hms.ml.scan.HmsScan
import... | 0 | null | 1 | 1 | d5b6f4a180302d6abfa56c8fe3d6217dca93141b | 3,238 | SwiftMK | Apache License 2.0 |
src/main/kotlin/org/rust/lang/core/completion/RsTupleFieldCompletionProvider.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.completion
import com.intellij.codeInsight.completion.CompletionParameters
import com.intellij.codeInsight.completion.CompletionResultSet
import com.intellij.codeInsight.lookup.LookupE... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 3,136 | intellij-rust | MIT License |
src/domain/src/main/kotlin/yapp/be/domain/shelter/service/shelter/AddShelterDomainService.kt | YAPP-Github | 634,126,325 | false | null | package yapp.be.domain.shelter.service.shelter
import org.springframework.stereotype.Service
import yapp.be.model.vo.Address
import yapp.be.domain.model.Shelter
import yapp.be.domain.port.inbound.shelter.AddShelterUseCase
import yapp.be.domain.port.outbound.shelter.ShelterCommandHandler
@Service
class AddShelterDomai... | 4 | null | 1 | 7 | 5441b296dec05fd1288895518407640dea8f8d3d | 797 | DangleDangle-server | Apache License 2.0 |
application/src/test/kotlin/rest/HttpControllersTests.kt | springbootcamp | 221,077,269 | false | null | package org.springbootcamp.blog.rest
import com.ninjasquad.springmockk.MockkBean
import io.mockk.every
import org.junit.jupiter.api.Test
import org.springbootcamp.blog.configuration.BlogProperties
import org.springbootcamp.blog.persistence.Article
import org.springbootcamp.blog.persistence.ArticleRepository
import org... | 0 | Kotlin | 0 | 0 | 271213236d18a016b2f95afdbe8349f8036fa9b1 | 2,597 | springboot-testcontainers | Apache License 2.0 |
library/src/main/kotlin/jp/co/recruit_mp/android/lightcalendarview/CalendarKt.kt | recruit-mp | 74,326,280 | false | null | package jp.co.recruit_mp.android.lightcalendarview
import java.util.*
/**
* Created by recruit-mahayash on 2017/01/13.
*/
class CalendarKt : GregorianCalendar() {
companion object {
fun getInstance(settings: CalendarSettings): Calendar = getInstance(settings.timeZone, settings.locale)
}
} | 22 | null | 70 | 448 | 18aaed79bdd634dee74e23f62ccb77df765ea244 | 309 | LightCalendarView | Apache License 2.0 |
patterns/src/test/kotlin/io/nullables/api/playground/patterns/State.kt | AlexRogalskiy | 331,076,596 | false | null | /*
* Copyright (C) 2021. <NAME>. 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 13 | Kotlin | 1 | 2 | d7173ec1d9ef227308d926e71335b530c43c92a8 | 2,171 | gradle-kotlin-sample | Apache License 2.0 |
src/test/kotlin/org/opensearch/commons/notifications/model/EventSourceTests.kt | opensearch-project | 354,136,133 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.commons.notifications.model
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.opensearch.commons.notifications.NotificationCo... | 22 | Kotlin | 65 | 7 | 4ef49e57da90fe375dcbfcf05d0e2f865cef1583 | 3,375 | common-utils | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/codepipeline/actions/ManualApprovalAction.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 140726596} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.codepipeline.actions
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscd... | 1 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 10,995 | kotlin-cdk-wrapper | Apache License 2.0 |
base/src/main/kotlin/de/anura/bot/teamspeak/ActivityCounter.kt | AnuraNet | 112,518,939 | false | null | package de.anura.bot.teamspeak
import de.anura.bot.async.Scheduler
import java.time.Duration
import java.util.concurrent.TimeUnit
object ActivityCounter {
private val maxIdleTime = Duration.ofMinutes(5)
private const val delay = 30L
private val ts = TsBot.api
init {
Scheduler.scheduleAtFixed... | 3 | Kotlin | 0 | 5 | 4cd14f6282f4bd84f5caa7c32959f7f05941aab9 | 655 | AnuraBot | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.