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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/theapache64/gpm/commands/subcommands/docs/DocsComponent.kt | theapache64 | 259,502,102 | false | null | package com.theapache64.gpm.commands.subcommands.docs
import com.theapache64.gpm.core.TransactionManager
import com.theapache64.gpm.di.GpmJsonFile
import com.theapache64.gpm.di.modules.NetworkModule
import com.theapache64.gpm.di.modules.TransactionModule
import dagger.Component
import java.io.File
import javax.inject.... | 16 | Kotlin | 1 | 75 | 8c73437d7258279acc9da4d9385308f32a135bb0 | 563 | gpm | Apache License 2.0 |
app/src/main/java/github/hellocsl/cursorwheellayout/widget/SimpleTextCursorWheelLayout.kt | shadygoneinsane | 314,180,246 | true | {"Gradle": 4, "XML": 17, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Text": 2, "Markdown": 1, "Proguard": 2, "Java": 4, "Kotlin": 8} | package github.hellocsl.cursorwheellayout.widget
import android.content.Context
import android.util.AttributeSet
import android.view.View
import github.hellocsl.cursorwheel.CursorWheelLayout
import github.hellocsl.cursorwheellayout.R
/**
*
* Created by chensuilun on 16-4-19.
*/
class SimpleTextCursorWheelLayout(co... | 0 | Kotlin | 0 | 1 | 9526de065414f4225610f8120d3bc7a3a9ced95b | 903 | CursorWheelLayout | Apache License 2.0 |
app/src/main/java/github/hellocsl/cursorwheellayout/widget/SimpleTextCursorWheelLayout.kt | shadygoneinsane | 314,180,246 | true | {"Gradle": 4, "XML": 17, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Text": 2, "Markdown": 1, "Proguard": 2, "Java": 4, "Kotlin": 8} | package github.hellocsl.cursorwheellayout.widget
import android.content.Context
import android.util.AttributeSet
import android.view.View
import github.hellocsl.cursorwheel.CursorWheelLayout
import github.hellocsl.cursorwheellayout.R
/**
*
* Created by chensuilun on 16-4-19.
*/
class SimpleTextCursorWheelLayout(co... | 0 | Kotlin | 0 | 1 | 9526de065414f4225610f8120d3bc7a3a9ced95b | 903 | CursorWheelLayout | Apache License 2.0 |
facebookimagepicker/src/main/java/com/imagepicker/facebook/view/photos/FacebookPhotosFragment.kt | oantajames | 106,604,969 | false | null | package com.imagepicker.facebook.view.photos
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.support.v4.content.LocalBroadcastManager
import android.support.v7.a... | 1 | null | 1 | 2 | 0d4922ea13762144b737f9102dc303b00cd818f7 | 5,544 | facebook-image-gallery-picker | MIT License |
app/src/main/java/com/spaceapps/myapplication/app/services/PlayerService.kt | andriy1507 | 333,576,864 | false | null | package com.spaceapps.myapplication.app.services
import android.annotation.SuppressLint
import androidx.media3.common.AudioAttributes
import androidx.media3.common.MediaItem
import androidx.media3.exoplayer.ExoPlayer
import androidx.media3.session.MediaLibraryService
import androidx.media3.session.MediaLibraryService.... | 0 | Kotlin | 1 | 0 | 116d1113d4714fc27f7532f430c0457256139e60 | 2,705 | spaceApps-android | MIT License |
code/core/src/main/java/com/adobe/marketing/mobile/services/ui/floatingbutton/FloatingButtonEventHandler.kt | adobe | 458,293,389 | false | {"Kotlin": 1649922, "Java": 1480893, "Makefile": 7304, "Shell": 3493} | /*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you 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 la... | 14 | Kotlin | 24 | 9 | 882669b9a1b6c0315d44b937d0a73b114f36ca28 | 995 | aepsdk-core-android | Apache License 2.0 |
code/core/src/main/java/com/adobe/marketing/mobile/services/ui/floatingbutton/FloatingButtonEventHandler.kt | adobe | 458,293,389 | false | {"Kotlin": 1649922, "Java": 1480893, "Makefile": 7304, "Shell": 3493} | /*
Copyright 2023 Adobe. All rights reserved.
This file is licensed to you 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 la... | 14 | Kotlin | 24 | 9 | 882669b9a1b6c0315d44b937d0a73b114f36ca28 | 995 | aepsdk-core-android | Apache License 2.0 |
app/src/main/java/com/mik2003/boukennihon/ui/locations/LocationsViewModel.kt | mik2003 | 766,068,069 | false | {"Kotlin": 22478} | package com.mik2003.boukennihon.ui.locations
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.mik2003.boukennihon.core.*
class LocationsViewModel : ViewModel() {
private val _locationsWithDistance = MutableLiveData<List<LocationWithDistanc... | 0 | Kotlin | 0 | 0 | 3e34bd639f12254679af73d35d47e393b7159853 | 1,086 | bouken-nihon | MIT License |
kotlin/daily-balances/src/main/kotlin/DailyBalances.kt | enolive | 65,559,078 | false | {"Java": 150911, "Kotlin": 130819, "TypeScript": 121966, "Groovy": 76917, "JavaScript": 53147, "C#": 40972, "Haskell": 36546, "Python": 14709, "Scala": 12193, "HTML": 11513, "Clojure": 8840, "Gherkin": 8730, "Dart": 6755, "Ruby": 5800, "CSS": 3279, "Elm": 2803, "PHP": 2211, "Svelte": 1783, "Rust": 821, "Swift": 404, "P... | import java.math.BigDecimal
import java.time.LocalDate
import java.time.temporal.ChronoUnit
data class Balance(val date: LocalDate, val amount: BigDecimal)
fun List<Balance>.expandToDaily(): List<Balance> {
if (isEmpty()) {
return this
}
val balancesSorted = sortedBy { it.date }
return balancesSorted
... | 88 | Java | 3 | 9 | f01141469ac86352f8dc511579ead10dc7563413 | 692 | learning | MIT License |
app/src/main/java/ro/edi/novelty/ui/MyNewsFragment.kt | ediTLJ | 31,333,807 | false | null | /*
* Copyright 2019-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, s... | 0 | Kotlin | 0 | 2 | a59ca2aa5f407f0cabb63fc56d39e8b058868f5a | 4,032 | novelty | Apache License 2.0 |
app/src/main/java/com/sunrise/app/core/BaseViewState.kt | NalediMadlopha | 356,901,928 | false | null | package com.sunrise.app.core
import com.sunrise.app.utils.domain.Status
open class BaseViewState(val baseStatus: Status, val baseError: String?) {
fun isLoading() = baseStatus == Status.LOADING
fun getErrorMessage() = baseError
fun shouldShowErrorMessage() = baseError != null
}
| 0 | Kotlin | 0 | 0 | 3f7b337f30c8f852ba98761156a79da79777ecb8 | 297 | gk-sunrise | Apache License 2.0 |
api/src/main/kotlin/com/wnsgml972/strada/api/v1/account/service/UserMapper.kt | Coffee-Street | 289,485,814 | false | {"Kotlin": 267923, "Shell": 2546, "Dockerfile": 174} | package com.wnsgml972.strada.api.v1.account.service
import com.wnsgml972.strada.api.v1.account.domain.User
import com.wnsgml972.strada.exception.StradaIllegalStateException
fun User.toDto() = UserDto(
this.id,
this.isEnabled,
)
fun UserDto.toEntity() = User.of(
this.id ?: throw StradaIllegalStateExceptio... | 2 | Kotlin | 2 | 2 | 24422867afe6c7f547a93f98083f655ecb80c0ed | 377 | strada | MIT License |
jput-core/src/main/java/cz/encircled/jput/recorder/ElasticsearchResultRecorder.kt | encircled | 91,900,976 | false | null | package cz.encircled.jput.recorder
import cz.encircled.jput.JPutUtils
import cz.encircled.jput.context.*
import cz.encircled.jput.model.PerfTestExecution
import org.elasticsearch.ElasticsearchStatusException
import org.elasticsearch.action.search.SearchRequest
import org.elasticsearch.client.RequestOptions
import org.... | 2 | Kotlin | 1 | 2 | 6e20b962aa5adeee970fbb3152c146f39d56cd35 | 4,666 | jPut | Apache License 2.0 |
inbox-persistence/src/database/kotlin/com/healthmetrix/connector/inbox/persistence/refreshtokens/RefreshTokenRepositoryTest.kt | smart4health | 593,624,617 | false | null | package com.healthmetrix.connector.inbox.persistence.refreshtokens
import com.healthmetrix.connector.inbox.persistence.DatabaseTestConfiguration
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.b... | 0 | Kotlin | 0 | 1 | 976d36079fa4171da0f78ad5812181cb6e3da6bc | 2,471 | connector-service | MIT License |
app/src/test/kotlin/com/myweatherapp/di/ModuleCheckTest.kt | Harrypulvirenti | 216,081,209 | true | {"Kotlin": 78199} | package com.myweatherapp.di
import android.app.Application
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.myweatherapp.domain.model.weather.DailyForecastId
import com.myweatherapp.ui.view.detail.DetailViewModel
import org.junit.Rule
import org.junit.Test
import org.koin.android.ext.koin.... | 0 | null | 0 | 0 | 24fd2c6bd575f73c8a706462fd95682fdc2c2fac | 1,866 | weatherapp-uniflow | Apache License 2.0 |
src/main/kotlin/com/kanashiro/crawler/ChessDatabaseCrawler.kt | fernandok4 | 277,132,663 | false | null | package com.kanashiro.crawler
import com.kanashiro.chess.ChessVO
import com.kanashiro.http.HttpPoolConnection
import com.kanashiro.utils.Exceptions
import org.apache.commons.logging.LogFactory
import org.apache.http.client.methods.HttpGet
import org.apache.http.impl.client.HttpClients
import org.apache.http.util.Entit... | 0 | Kotlin | 0 | 0 | 3ec260df65349e28fe58822ab76a41b50c9c470e | 2,460 | chess-crawler | MIT License |
src/main/kotlin/nl/bjornvanderlaan/livedemospringwebflux/repository/CoroutinesPersonRepository.kt | BjornvdLaan | 507,929,903 | false | {"Kotlin": 25185} | package nl.bjornvanderlaan.livedemospringwebflux.repository
import nl.bjornvanderlaan.livedemospringwebflux.model.Person
import org.springframework.data.repository.kotlin.CoroutineCrudRepository
import org.springframework.stereotype.Repository
@Repository
interface CoroutinesPersonRepository : CoroutineCrudRepository... | 0 | Kotlin | 1 | 0 | 78872771f5d93f108b1875ed746b890af2c4a573 | 391 | live-demo-spring-webflux-kotlin | MIT License |
app/src/main/java/com/nagi/sms2api/MainActivity.kt | naagaaraajaan | 524,355,372 | false | null | package com.nagi.sms2api
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.Manifest
import android.content.pm.PackageManager
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
class MainActivity : AppCompatActivity() {
companion object {
... | 0 | Kotlin | 0 | 0 | 72dd77093e8643355c8f8fd3c4eb70d37c510a5e | 910 | sms2api | Apache License 2.0 |
app/src/main/java/com/prmto/mova_movieapp/feature_movie_tv_detail/data/mapper/MovieDetailDtoMapper.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 535214} | package com.prmto.mova_movieapp.feature_movie_tv_detail.data.mapper
import com.prmto.mova_movieapp.feature_movie_tv_detail.data.dto.detail.movie.MovieDetailDto
import com.prmto.mova_movieapp.feature_movie_tv_detail.domain.models.detail.MovieDetail
fun MovieDetailDto.toMovieDetail(): MovieDetail {
return MovieDeta... | 1 | Kotlin | 3 | 55 | 49dc57a50ee37a2187b743c6aaa543b1f15922d6 | 728 | Mova-MovieApp | Apache License 2.0 |
app/src/main/java/com/dariopellegrini/spikeapp/model/MovieContainer.kt | dariopellegrini | 98,410,078 | false | null | package com.dariopellegrini.spikeapp.model
/**
* Created by dariopellegrini on 27/07/17.
*/
data class MovieContainer(val score: Double,
val movie: Movie) | 0 | null | 2 | 9 | 7fb64c76cc5a985ea3dff54a1fd4fffa39a06696 | 183 | Spike | MIT License |
sample/src/main/java/com/litesoftteam/mvvm/sample/di/RepositoryModule.kt | udfvirus | 352,020,196 | false | {"Kotlin": 29982} | /*
* Copyright (C) 2021 Vitaliy Sychov
*
* 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 ag... | 2 | Kotlin | 0 | 1 | 24a5db9c7fd042c5c56e1e3e95882fdfa776a029 | 1,169 | mvvmframework | Apache License 2.0 |
src/main/kotlin/HttpsReq.kt | anyrsan | 166,955,774 | false | {"Markdown": 2, "Gradle": 1, "Gradle Kotlin DSL": 1, "INI": 2, "XML": 7, "Batchfile": 1, "JavaScript": 1, "Java": 6, "Kotlin": 17} |
import java.io.ByteArrayOutputStream
import java.io.File
import java.net.URL
import java.security.cert.CertificateFactory
import java.security.KeyStore
import javax.net.ssl.*
fun main(args: Array<String>) {
val url = URL("https://127.0.0.1:3030/json")
// Create an SSLContext that uses our TrustManager
... | 0 | Kotlin | 0 | 1 | 61b31d87732c2ee94e070065c7a586642ee25038 | 1,613 | BaseCrypt | Apache License 2.0 |
components/archive/impl/src/main/java/com/flipperdevices/archive/impl/api/ArchiveFeatureEntryImpl.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 2835556, "FreeMarker": 10084, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.archive.impl.api
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import com.arkivanov.... | 15 | Kotlin | 134 | 1,069 | 475cd750460100aca5d0b587f6192c1d700a4e4a | 2,051 | Flipper-Android-App | MIT License |
components/archive/impl/src/main/java/com/flipperdevices/archive/impl/api/ArchiveFeatureEntryImpl.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 2835556, "FreeMarker": 10084, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.archive.impl.api
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import com.arkivanov.... | 15 | Kotlin | 134 | 1,069 | 475cd750460100aca5d0b587f6192c1d700a4e4a | 2,051 | Flipper-Android-App | MIT License |
app/src/main/java/com/kaiserpudding/novel2go/util/multiSelect/MultiSelectAdapter.kt | XiangRongLin | 211,704,746 | false | null | package com.kaiserpudding.novel2go.util.multiSelect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.kaiserpudding.novel2go.util.multiSelect.MultiSelectAdapter.MultiSelectAdapterItemInteractionListener
import com.kaiserpudding.novel2go.util.setSafeOnClickListener
/**
* An adapter ... | 22 | Kotlin | 0 | 0 | 2acca2a8571acf5bc3b14438f99fe0fbcb22df8f | 3,647 | Novel2Go | Apache License 2.0 |
server/src/main/kotlin/com/afzaln/Application.kt | AfzalivE | 472,217,287 | false | {"Kotlin": 12810, "Swift": 6229} | package com.afzaln
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import com.afzaln.plugins.*
fun main() {
embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
configureRouting()
configureSerialization()
}.start(wait = true)
}
| 0 | Kotlin | 0 | 4 | 0b79fd5fdc6ea8ccbfd9057fd540c86b704f0028 | 269 | Athleet | Apache License 2.0 |
src/main/java/com/dzen/campfire/api/models/publications/moderations/publications/ModerationBlock.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.models.publications.moderations.publications
import com.dzen.campfire.api.API
import com.dzen.campfire.api.models.publications.moderations.Moderation
import com.sup.dev.java.libs.json.Json
class ModerationBlock : Moderation {
var publicationId = 0L
var publicationType = 0L
v... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 2,035 | CampfireApi | Apache License 2.0 |
domain/src/main/java/com/jyproject/domain/features/place/usecase/GetPeopleRateUseCase.kt | JunYeong0314 | 778,833,940 | false | {"Kotlin": 103252} | package com.jyproject.domain.features.place.usecase
import com.jyproject.domain.features.place.PlaceRepository
import javax.inject.Inject
class GetPlaceInfoUseCase @Inject constructor(
private val placeRepository: PlaceRepository
) {
suspend operator fun invoke(
place: String
) = placeRepository.g... | 0 | Kotlin | 0 | 0 | 76706c9a8fcbf6fafb036d4bb4c9504a79e154b3 | 340 | PlacePick | MIT License |
src/main/java/com/cumulocity/client/api/LoginOptionsApi.kt | SoftwareAG | 525,378,320 | false | null | // Copyright (c) 2014-2022 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Softwa... | 0 | Kotlin | 0 | 2 | ca48e21dc65698a38aedf39ea728f7d7d0372f14 | 5,036 | cumulocity-clients-kotlin | Apache License 2.0 |
glata/src/main/java/com/yalantis/glata/primitive/Color.kt | Yalantis | 165,843,008 | false | null | package com.yalantis.glata.primitive
class Color() {
var r: Float = 1f
var g: Float = 1f
var b: Float = 1f
var a: Float = 1f
constructor(r: Int, g: Int, b: Int, a: Int) : this() {
this.r = r.toFloat() / 255f
this.g = g.toFloat() / 255f
this.b = b.toFloat() / 255f
th... | 1 | Kotlin | 13 | 83 | f022e7348afb381ac567ff6954164ef47438edf1 | 640 | GLata | The Unlicense |
korona-junit5/src/test/kotlin/com/ancientlightstudios/korona/junit5/SearchTest.kt | derkork | 124,192,168 | false | null | package com.ancientlightstudios.korona.junit5
import com.ancientlightstudios.korona.KoronaTest
import com.ancientlightstudios.korona.pages.automationpractice.pages.HomePage
import com.ancientlightstudios.korona.pages.automationpractice.pages.SearchResultPage
import org.junit.jupiter.api.Test
import kotlin.test.assertE... | 0 | Kotlin | 0 | 0 | ead9a699bfffb9c65be0751974a5c3b6b5dc240b | 745 | korona | MIT License |
relateddigital-google/src/main/java/com/relateddigital/relateddigital_google/network/requestHandler/RetentionRequest.kt | relateddigital | 570,038,292 | false | {"Kotlin": 1495397, "HTML": 21295} | package com.relateddigital.relateddigital_google.network.requestHandler
import android.content.Context
import android.os.Build
import android.util.Log
import com.relateddigital.relateddigital_google.RelatedDigital
import com.relateddigital.relateddigital_google.constants.Constants
import com.relateddigital.relateddigi... | 0 | Kotlin | 0 | 3 | c9a36991f6e29797cff3ddafd6776442fb650b75 | 2,869 | relateddigital-google | Amazon Digital Services License |
src/main/kotlin/com/kopyl/commit/IssueValidator.kt | anatolykopyl | 695,275,163 | false | {"Kotlin": 10030} | package com.kopyl.commit
import com.atlassian.jira.rest.client.api.domain.Issue
class IssueValidator(private val issue: Issue) {
fun valid(): Boolean {
// TODO return error message as well, eg: {valid: false, message: "Components missing"}
if (issue.summary == null || issue.summary.isEmpty()) {
... | 0 | Kotlin | 0 | 0 | bf7c4589d2ddec13dd85cf4e4cee369ea590c1ba | 499 | auto-commit-message-plugin | Apache License 2.0 |
pathshapeview/src/main/java/shape/path/view/point/converter/CoordinateConverter.kt | MuhammadAmmad | 122,162,405 | true | {"Kotlin": 63638, "Java": 393} | package shape.path.view.point.converter
import android.graphics.Matrix
import android.graphics.PointF
/**
* Created by root on 1/9/18.
*/
class CoordinateConverter(var originScreenW: Float, var originScreenH: Float) : PointConverter() {
private var screenScaleFactorX = 1f
private var screenScaleFactorY = 1... | 0 | Kotlin | 0 | 0 | 85e1afbfa98e7c3e810bddb6b64309012f5fd382 | 908 | Android-PathShapeView | Apache License 2.0 |
maven/hello-world/src/test/kotlin/HelloTest.kt | burnasheva | 146,253,901 | true | {"Kotlin": 69741, "Java": 4856, "JavaScript": 1378, "HTML": 227} | package hello.tests
import hello.getHelloString
import kotlin.test.assertEquals
import org.junit.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class HelloTest {
@Test fun testAssert() : Unit {
assertEquals("Hello, world!", getHelloString())
}
@Test fun `function is recursively... | 0 | Kotlin | 0 | 0 | 74fc73855ae136d1257eeb1047db17fb90b290db | 655 | kotlin-examples | Apache License 2.0 |
FrameIcon/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.* // ktlint-disable no-wildcard-imports
import javax.swing.* // ktlint-disable no-wildcard-imports
fun makeUI(): Component {
val cl = Thread.currentThread().contextClassLoader
val icon = Toolkit.getDefaultToolkit().createImage(cl.getResource("example/16x16.png"))
val check = JChe... | 0 | Kotlin | 1 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 1,224 | kotlin-swing-tips | MIT License |
bluetape4k/junit5/src/main/kotlin/io/bluetape4k/junit5/awaitility/AwaitilityCoroutineSupport.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.junit5.awaitility
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.isActive
import org.awaitility.core.ConditionFactory
/**
* suspend 함수가 true 를 반환할 때까지 대기한다
*
* @param block 판단을 위한 코드 블럭
*/
suspend inline infix fun ConditionFactory.awaiting(... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 701 | bluetape4k | MIT License |
vector/src/main/java/vmodev/clearkeep/viewmodels/RoomViewModel.kt | telred-llc | 194,596,139 | false | null | package vmodev.clearkeep.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import vmodev.clearkeep.repositories.RoomRepository
import vmodev.clearkeep.repositories.RoomUserJoinRepository
import vm... | 5 | null | 1 | 3 | 2d20e94e9711b51aee89fa569efd61449cc7e9c3 | 6,432 | clearkeep-android | Apache License 2.0 |
app/src/main/java/com/kgurgul/cpuinfo/features/processes/ProcessesViewModel.kt | maxhigh | 109,428,409 | true | {"Kotlin": 217571, "Java": 174138} | /*
* Copyright 2017 KG Soft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | 28db3a83c1ef9c37a6c259e6a0ad909756bce1d6 | 5,889 | cpu-info | Apache License 2.0 |
kamp-core/src/test/kotlin/ch/leadrian/samp/kamp/core/api/util/TextDrawsTest.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.core.api.util
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.CsvSource
internal class TextDrawsTest {
@ParameterizedTest
@CsvSource(
"'Hi there~~~', 'Hi there???'",
... | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 608 | kamp | Apache License 2.0 |
functions/src/main/kotlin/io/ashdavies/playground/google/CollectionReference.kt | ashdavies | 36,688,248 | false | null | package io.ashdavies.playground.google
import com.google.cloud.firestore.CollectionReference
import com.google.cloud.firestore.WriteResult
suspend fun CollectionReference.delete(
childPath: String,
): WriteResult = document(childPath)
.delete()
.await()
suspend fun <T : Any> CollectionReference.write(
... | 10 | Kotlin | 32 | 107 | bed73969ca5ec5ec76bdac04592994f847ee2991 | 420 | data-binding | Apache License 2.0 |
analytics-impl/src/main/java/com/grappim/hateitorrateit/analyticsimpl/HomeScreenAnalyticsImpl.kt | Grigoriym | 704,244,986 | false | {"Kotlin": 339796} | package com.grappim.hateitorrateit.analyticsimpl
import com.grappim.hateitorrateit.analyticsapi.AnalyticsController
import com.grappim.hateitorrateit.analyticsapi.HomeScreenAnalytics
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class HomeScreenAnalyticsImpl @Inject constructor(
private val ... | 6 | Kotlin | 0 | 0 | d84b032336a2576f816d62c473dd14581481730e | 608 | HateItOrRateIt | Apache License 2.0 |
src/main/kotlin/org/jetbrains/research/smtlib/psi/SmtLibFileRoot.kt | Saloed | 225,314,384 | false | null | package org.jetbrains.research.smtlib.psi
import com.intellij.extapi.psi.PsiFileBase
import com.intellij.psi.FileViewProvider
import org.jetbrains.research.smtlib.Icons
import org.jetbrains.research.smtlib.SmtLibFileType
import org.jetbrains.research.smtlib.SmtLibLanguage
class SmtLibFileRoot(viewProvider: FileViewPr... | 0 | Kotlin | 0 | 1 | aa05be0432186a786a8d9bfad89b8671136a66ac | 537 | smtlib-intellij-plugin | Apache License 2.0 |
app/src/main/java/dev/jylha/station/model/Station.kt | jylha | 292,642,089 | false | {"Kotlin": 392658} | package dev.jylha.station.model
import androidx.compose.runtime.Immutable
/**
* Domain Model for station information.
*
* @param passengerTraffic Whether station supports commercial passenger traffic.
* @param type Station type.
* @param name Station name.
* @param shortCode Short station code.
* @param code C... | 0 | Kotlin | 0 | 1 | 8b7df4d11ea3013c55d5c3b6b824403a6d5410c4 | 1,912 | station | Apache License 2.0 |
app/src/main/java/com/nadia/frenzy/ui/askquestion/QuestionViewModel.kt | NadiaBelhaj | 558,358,508 | false | {"Kotlin": 125841} | package com.nadia.frenzy.ui.askquestion
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nadia.frenzy.data.QuestionData
import com.nadia.frenzy.data.ResponseType
import com.nadia.frenzy.data.source.QuestionRepository
import dagger.hilt.an... | 0 | Kotlin | 1 | 0 | 57bbb11812e5d38710393413fa2296d393a52985 | 1,355 | Frenzy-Android-App-Front-end | MIT License |
kwicket-core/src/main/kotlin/org/kwicket/model/PropModel.kt | ageery | 87,933,631 | false | null | package org.kwicket.model
import org.apache.wicket.WicketRuntimeException
import org.apache.wicket.model.IModel
import java.io.Serializable
import kotlin.reflect.KMutableProperty1
import kotlin.reflect.KProperty1
import kotlin.reflect.jvm.javaGetter
import kotlin.reflect.jvm.javaMethod
import kotlin.reflect.jvm.jvmEra... | 1 | Kotlin | 0 | 12 | 58b90cfa0474b452a622c21d7972034e6235db4f | 3,206 | kwicket | Apache License 2.0 |
src/test/java/org/jitsi/rtp/rtcp/RtcpIteratorTest.kt | bbaldino | 173,043,170 | true | {"Kotlin": 349802} | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 0 | Kotlin | 0 | 0 | b8226d21296d773b792eaff18add487c27d35b1c | 6,230 | jitsi-rtp-1 | Apache License 2.0 |
app/src/test/java/com/quintatecnica/pokedex/dao/PokemonRepositoryTest.kt | carlosabreu | 401,113,792 | false | null | package com.quintatecnica.pokedex.dao
import com.quintatecnica.pokedex.generator.KantoGenerator
import com.quintatecnica.pokedex.model.Pokemon
import org.junit.Test
import org.mockito.Mockito
import org.mockito.Mockito.never
class PokemonRepositoryTest {
private val repository = PokemonRepository()
@Test
... | 0 | Kotlin | 0 | 2 | 75c7f6c7ff1a9c404296529a392fb5f8f9fab61c | 1,023 | pokedex | Apache License 2.0 |
src/main/kotlin/dev/crashteam/uzumanalytics/repository/clickhouse/model/ChSellerOrderDynamic.kt | crashteamdev | 647,366,680 | false | {"Kotlin": 562208, "Dockerfile": 743} | package dev.crashteam.uzumanalytics.repository.clickhouse.model
import java.time.LocalDate
data class ChSellerOrderDynamic(
val date: LocalDate,
val orderAmount: Long,
)
| 3 | Kotlin | 0 | 0 | 4cb72dfc2684db539dba47031b9e70038d10d8bb | 180 | uzum-analytics | Apache License 2.0 |
filelogger/src/main/java/abbasi/android/filelogger/interceptor/LogInterceptor.kt | aabolfazl | 466,665,945 | false | {"Gradle": 4, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Text": 2, "Markdown": 1, "INI": 2, "Proguard": 2, "Kotlin": 19, "XML": 12, "Java": 6} | package abbasi.android.filelogger.interceptor
import abbasi.android.filelogger.file.LogLevel
interface LogInterceptor {
fun intercept(level: LogLevel, tag: String, message: String, e: Throwable?): String
} | 0 | Java | 1 | 13 | 6b2a76a792a362e6c1314efea1492f50e2716452 | 211 | FileLogger | MIT License |
app/src/main/java/com/benforino/trailtrackerv2/TrailViewFragment.kt | BenForino | 604,647,388 | false | null | package com.benforino.trailtrackerv2
import android.Manifest
import android.app.AlertDialog
import android.content.Context
import android.content.pm.PackageManager
import android.location.Address
import android.location.Geocoder
import android.location.Location
import android.os.Bundle
import android.util.Log
import a... | 0 | Kotlin | 0 | 0 | b36c2f660ae8fabef0201c01b9a0af2d006382b1 | 9,988 | Trail-Tracker | MIT License |
src/main/kotlin/ch/icken/processor/GenerationOptions.kt | Thijsiez | 699,910,580 | false | {"Kotlin": 85947} | /*
* Copyright 2023-2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 1 | 730c2fd001db3cb85967cefe7886d4cdce095d7e | 1,222 | panache-kotlin-dsl | Apache License 2.0 |
src/dataStructures/trees/Segment.kt | timurmaio | 277,170,802 | false | {"Kotlin": 54229, "PLpgSQL": 4095} | package dataStructures.trees
import algorithms.isPowerOfTwo
/**
* Дерево отрезков.
*/
class Segment(collection: Iterable<Int>) {
/**
* Массив с узлами дерева.
*
* Дерево на самом деле виртуальное. Отображение индексов:
* левый потомок: 2*i + 1
* правый потомок: 2*i + 2
* родитель: ... | 0 | null | 0 | 0 | 2257a6a968bb8440f8a2a65a5fd31ff0fa5a5e8f | 4,938 | ads | The Unlicense |
desktop/src/jvmMain/kotlin/Main.kt | geoff-powell | 724,651,026 | false | {"Kotlin": 49837, "Ruby": 2294, "HTML": 1133, "JavaScript": 1073, "Swift": 573, "CSS": 161} | import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import com.greenmiststudios.c... | 4 | Kotlin | 0 | 0 | 7afc0b88fdbf88f7720c829216e953728ee18eeb | 670 | Tidy | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/UserRobotXmarks.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 5,501 | icons | MIT License |
app/src/main/java/cn/mijack/imagedrive/fragment/BackUpFragment.kt | MiJack | 88,419,422 | false | null | package cn.mijack.imagedrive.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import cn.mijack.imagedrive.R
import cn.mijack.imagedrive.base.BaseFragment
/**
* @author admin
* @date 2017/8/26
*/
class BackUpFrag... | 1 | Kotlin | 0 | 0 | 837a92c983bcb3972401f8f8177df506752625f0 | 942 | ImageDrive | Apache License 2.0 |
15-dagger-and-modularization/projects/starter/Busso/libs/location/rx/src/main/java/com/raywenderlich/android/location/rx/di/LocationModule.kt | aasmc | 417,089,569 | true | {"Kotlin": 6085897, "Shell": 1914} | package com.raywenderlich.android.location.rx.di
import android.app.Application
import android.content.Context
import android.location.LocationManager
import com.raywenderlich.android.di.scopes.ApplicationScope
import com.raywenderlich.android.location.api.model.LocationEvent
import com.raywenderlich.android.location.... | 0 | Kotlin | 0 | 0 | 38ceb2272bcd83288d190ad2e7046acfd0166fef | 1,258 | dag-materials | Apache License 2.0 |
tools/corda-runtime-gradle-plugin/src/main/kotlin/net/corda/gradle/plugin/cordapp/CordappTasksImpl.kt | corda | 346,070,752 | false | null | package net.corda.gradle.plugin.cordapp
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import net.corda.gradle.plugin.configuration.ProjectContext
import net.corda.gradle.plugin.dtos.GroupPolicyDTO
import net.corda.gradle.plugin.exception.CordaRuntimeGra... | 50 | null | 25 | 56 | 6b5bd1a70280605ccc5106c69e58565a7daa1697 | 7,433 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/symphony/microblogging/base/presentation/view/extension/ActivityExtensions.kt | naveedahmad99 | 223,487,566 | false | {"Gradle": 4, "YAML": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 74, "XML": 15, "Java": 1} | package com.symphony.microblogging.base.presentation.view.extension
import android.app.Activity
import android.util.DisplayMetrics
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.appcompat.app.AppCompatActivity
fun AppCompatActivity.onBackPresseddd() {
if (supportFragm... | 0 | Kotlin | 0 | 0 | 8026fc67e4c226c683a6856bab9a5d1ed9907f4e | 1,228 | MicroBloggingProject | Apache License 2.0 |
app/src/main/java/com/github/meudayhegde/esputils/holders/ARPItem.kt | meudayhegde | 179,924,023 | false | null | package com.github.meudayhegde.esputils.holders
/**
* @param macAddress([String]) MAC Address of the network device
* @param ipAddress([String]) IP Address of the network device
* @param devNickName([String]) Device NickName stored on the app
*/
class ARPItem(var macAddress: String, var ipAddress: String, var devN... | 0 | Kotlin | 0 | 0 | cfbe992ac1eda309e26906e9e8ba05ac961b4d8b | 344 | ESPUtils_android | Apache License 2.0 |
app/src/main/java/com/aprianto/dicostory/ui/dashboard/profile/WebViewActivity.kt | apriantoa917 | 481,275,066 | false | {"Kotlin": 141212} | package com.aprianto.dicostory.ui.dashboard.profile
import android.annotation.SuppressLint
import android.os.Build
import android.os.Bundle
import android.view.KeyEvent
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivi... | 0 | Kotlin | 1 | 6 | 79e0323a02e974cb781ebf68aa176b46bc432f5e | 2,756 | android-dicoding-BPAAI | MIT License |
core/jsonrpc/base/src/main/kotlin/odoo/miem/android/core/jsonrpc/base/engine/exception/JsonRpcException.kt | 19111OdooApp | 546,191,502 | false | null | package odoo.miem.android.core.jsonrpc.base.engine.exception
import odoo.miem.android.core.jsonrpc.base.parser.ResultParser
/**
* [JsonRpcException] is exception, which thrown
* when [ResultParser] have problems with parsing
* result of response
*
* @author <NAME>
*/
class JsonRpcException(
override val mes... | 0 | Kotlin | 0 | 3 | 66eab22e7786f52903c5679cf5d95ad27cf13b34 | 402 | OdooApp-Android | Apache License 2.0 |
app/src/main/java/com/maragues/planner/recipes/hoveringPlanner/HoveringPlannerFragmentViewModel.kt | Maragues | 116,593,098 | false | null | package com.maragues.planner.recipes.hoveringPlanner
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import android.support.annotation.VisibleForTesting
import com.maragues.planner.common.BaseViewModel
import com.maragues.planner.persistence.entities.MealSlotRecipe
import com.ma... | 1 | null | 1 | 1 | 67735ab35f90f716b6bf3b958fdb0791b9280b56 | 4,750 | RecipeImporter | MIT License |
feature-movie-detail/src/main/java/sanchez/sanchez/sergio/feature_movie_detail/ui/FeatureMovieDetailActivityDelegate.kt | sergio11 | 332,195,948 | false | null | package sanchez.sanchez.sergio.feature_movie_detail.ui
interface FeatureMovieDetailActivityDelegate {
/**
* Get Movie Id
*/
fun getMovieId(): Long
} | 0 | Kotlin | 0 | 6 | eef4f5b03c33f1efd937d546ebdea84c3255d445 | 170 | MovieAddicts | MIT License |
src/commonJvmMain/kotlin/com/ditchoom/socket/nio2/util/AsynchronousChannelGroupExtensions.kt | DitchOoM | 420,788,296 | false | {"Kotlin": 91546, "Ruby": 2318, "JavaScript": 262} | package com.ditchoom.socket.nio2.util
import java.nio.channels.AsynchronousChannelGroup
import java.nio.channels.AsynchronousServerSocketChannel
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine
suspend fun openAsyncServerSocketChannel(group: Asynch... | 0 | Kotlin | 0 | 3 | d18979e528728efdd7445b4a4519491863fc09c8 | 610 | socket | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/LocalMoviesOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/LocalMoviesOutlined")
package mui.icons.material
@JsName("default")
external val LocalMoviesOutlined: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 202 | kotlin-wrappers | Apache License 2.0 |
demo/src/main/kotlin/com/kotling/LibGDXDemo.kt | b005t3r | 56,796,079 | false | null | package com.kotling
import com.badlogic.gdx.ApplicationAdapter
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.graphics.GL20
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.g2d.SpriteBatch
class LibGDXDemo : ApplicationAdapter() {
internal lateinit var batch:SpriteBatch
internal ... | 0 | Kotlin | 0 | 1 | 9ff9027bd25c66a37fb7538216d685b30929532c | 670 | Kotling | MIT License |
app/src/main/java/com/mobilescanner/main/feature_project/data/repository/ImageRepository.kt | EricMoin | 706,004,415 | false | {"Kotlin": 92594} | package com.mobilescanner.main.feature_project.data.repository
import com.mobilescanner.main.feature_project.data.entity.ImageItem
import com.mobilescanner.main.main.ui.MobileScannerApplication.Companion.context
import com.mobilescanner.main.feature_home.remote.service.ImageNetwork
import com.mobilescanner.main.featur... | 0 | Kotlin | 0 | 0 | c24c9f1341f2457361ce0f160c143229623b8624 | 2,038 | Open-MobileScanner | Apache License 2.0 |
feature-advance-account/src/main/java/com/example/feature_advance_account/AdvanceAccountModule.kt | vinioliveirasilvapag | 486,402,638 | false | null | package com.example.feature_advance_account
import org.koin.dsl.module
object AdvanceAccountModule {
val instance = module {
factory { (view: AdvanceAccountActivity) ->
AdvanceAccountPresenter(
view = view,
router = get()
)
}
}
} | 0 | Kotlin | 0 | 2 | e5632176b9ca478c30af2a95fa77e867f38fac5c | 311 | AndroidSamples | MIT License |
app/src/main/java/org/gwnu/tutorial/room/AppDatabase.kt | KimSungBeen | 277,076,585 | false | null | package org.gwnu.tutorial.room
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = [Todo::class], version = 1)
abstract class AppDatabase: RoomDatabase() {
abstract fun todoDao(): TodoDao
} | 1 | null | 1 | 1 | 2a0769919d591483a2a09a0dd1a48d4665eb3f08 | 228 | Scribbling-Repository | Apache License 2.0 |
src/test/kotlin/utils/Utils.kt | justyxxx | 319,022,772 | false | null | package utils
import exception.TestException
import java.io.InputStream
object Utils {
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
fun getResourcesFile(fileName: String): InputStream {
return try {
Utils.javaClass.classLoader.getResourceAsStream(fileName)
} catch (... | 0 | Kotlin | 1 | 1 | 1f7c6403cc31d232613e7396aa0d1f1e7cf27134 | 473 | RestAssured | MIT License |
src/test/kotlin/utils/Utils.kt | justyxxx | 319,022,772 | false | null | package utils
import exception.TestException
import java.io.InputStream
object Utils {
@Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
fun getResourcesFile(fileName: String): InputStream {
return try {
Utils.javaClass.classLoader.getResourceAsStream(fileName)
} catch (... | 0 | Kotlin | 1 | 1 | 1f7c6403cc31d232613e7396aa0d1f1e7cf27134 | 473 | RestAssured | MIT License |
android/app/src/main/kotlin/com/example/flutter_templete_mini/MainActivity.kt | un-pany | 436,815,630 | false | null | package com.example.flutter_template_mini
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 3 | 20 | df503e95e68760ccf9713f168d12f522f1c83b7f | 138 | flutter-template-mini | MIT License |
app/src/main/java/vn/tiki/android/androidhometest/util/Interfaces.kt | ducgao | 138,876,996 | false | {"Kotlin": 12290} | package vn.tiki.android.androidhometest.util
import vn.tiki.android.androidhometest.data.api.response.Deal
interface RemoveCallback {
fun removeItem(itemIndex: Deal)
}
interface CountDownEndCallback {
fun onCountDownEnd()
}
interface DownloadDealsCallback {
fun onDeals(deals: ArrayList<Deal>)
} | 0 | Kotlin | 0 | 0 | 00a82a93f0ab5cb687b6256e08f3228b379826b7 | 311 | Tiki_Home_Test | Apache License 2.0 |
json-lib/src/test/kotlin/angstromio/json/JSONGenerator.kt | angstromio | 683,562,832 | false | {"Kotlin": 302899, "Java": 4363} | package angstromio.json
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ArrayNode
import com.fasterxml.jackson.databind.node.IntNode
import com.fasterxml.jackson.databind.node.JsonNodeFactory
import com.fasterxml.jackson.databind.node.ObjectNode
import com.fasterxml.jackson.da... | 0 | Kotlin | 0 | 0 | 9a63498ca3a7f9ffeff242093c546c0eda9eadc8 | 2,750 | angstromio-json | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/buildanalyzer/common/TaskCategory.kt | RivanParmar | 526,653,590 | false | null | /*
* Copyright (C) 2022 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 | 2 | 17 | 7d6a941f82617f89cedde0ae8e10d3702f225f76 | 5,107 | androlabs | Apache License 2.0 |
locallydynamic-android-lib/sample/ondemandfeature/src/main/java/com/example/locallydynamic/ondemandfeature/OnDemandFeatureImpl.kt | poovarasanvasudevan | 239,129,218 | true | {"Kotlin": 319796, "Java": 302260, "Shell": 7767} | package com.example.locallydynamic.ondemandfeature
import android.content.Context
import android.content.Intent
import androidx.fragment.app.Fragment
import com.example.locallydynamic.Feature
import com.example.locallydynamic.InstallTimeFeature
import com.example.locallydynamic.OnDemandFeature
import com.example.local... | 0 | null | 0 | 0 | 9e52f801e8afdb88b245600dbfd4d6691fd22d95 | 728 | LocallyDynamic | Apache License 2.0 |
app/src/main/java/com/fracta7/e_bookshelf/data/remote/dto/book/isbn/authors/AuthorsModel.kt | fracta7 | 532,576,663 | false | {"Kotlin": 157376} | package com.fracta7.e_bookshelf.data.remote.dto.book.isbn.authors
import androidx.annotation.Keep
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Keep
data class AuthorsModel(
@SerializedName("url")
@Expose
val url: String,
@SerializedName("name")
@Exp... | 0 | Kotlin | 0 | 2 | 43e1b6fafa6fc7a55bccf83dfc3a9f4b781c77f7 | 347 | e-bookshelf | MIT License |
app/src/main/java/com/stripe/android/samplestore/Product.kt | stripe-samples | 206,598,855 | false | null | package com.stripe.android.samplestore
internal enum class Product(
internal val emoji: String,
internal val price: Int
) {
Shirt("👕", 2000),
Pants("👖", 4000),
Dress("👗", 3000),
MansShoe("👞", 700),
AthleticShoe("👟", 2000),
HighHeeledShoe("👠", 1000),
WomansSandal("👡", 2000),
... | 7 | Kotlin | 31 | 44 | 73025b4c5fe934845ddf80464cab483a6e98ee72 | 540 | sample-store-android | MIT License |
app/src/main/java/com/example/root/kotlin_eyepetizer/basic/api/WeixinApi.kt | jiwenjie | 156,038,520 | false | null | package com.example.root.kotlin_eyepetizer.basic.api
import com.example.root.kotlin_eyepetizer.mvp.more_mvp.more_function_bean.WeixinChoiceListBean
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Query
/**
* author:Jiwenjie
* email:<EMAIL>
* time:2018/12/11
* desc:
* version:1... | 1 | Kotlin | 1 | 1 | 104af621e315bc5588f97206ca04438a082875b9 | 587 | Kotlin_Eyepetizer | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | nezih94 | 347,229,883 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 871f6e16bc650536b65fcaf807c58668bb42cc7b | 22,699 | arriba | Apache License 2.0 |
contracts/src/main/kotlin/com/template/contracts/TemplateContract.kt | george-penkov | 229,980,080 | true | {"HTML": 201646, "JavaScript": 102308, "CoffeeScript": 98463, "CSS": 41775, "Kotlin": 12375, "Shell": 1147} | package com.template.contracts
import com.template.states.TemplateState
import net.corda.core.contracts.CommandData
import net.corda.core.contracts.Contract
import net.corda.core.transactions.LedgerTransaction
// ************
// * Contract *
// ************
class TemplateContract : Contract {
companion object {
... | 0 | HTML | 0 | 0 | 30e51df0b950846384e08ce6de59879fe7ec5c2b | 977 | ProjectForBigData-1 | Apache License 2.0 |
tiny-postgresql-event-store/src/main/kotlin/ru/quipy/PostgresClientEventStore.kt | andrsuh | 498,475,206 | false | {"Kotlin": 420728, "PLpgSQL": 1840, "Dockerfile": 242} | package ru.quipy
import org.postgresql.util.PSQLException
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.dao.DuplicateKeyException
import org.springframework.transaction.annotation.Transactional
import ru.quipy.converter.EntityConverter
import ru.quipy.converter.ResultSetToEntityMapp... | 13 | Kotlin | 17 | 34 | 880796f04bb6e27aab615c8efccd709d5ca22193 | 7,123 | tiny-event-sourcing | Apache License 2.0 |
src/backend/paas/project/api-project/src/main/kotlin/com/heapoverflow/project/pojo/user/ProjectUser.kt | panfairy | 577,309,391 | false | null | package com.heapoverflow.project.pojo.user
data class ProjectUser(
val id: Long,
val username: String
)
| 0 | Kotlin | 0 | 0 | 56d79e57246ff6e34e9902952eb7276e71b372f9 | 113 | ho-base | MIT License |
backend/src/main/kotlin/com/nicolaspetras/splfantasy/service/scorer/calculator/player/GamePointsCalculator.kt | npetras | 385,915,477 | false | {"Kotlin": 130500, "TypeScript": 13523, "HTML": 5058, "Dockerfile": 1748, "JavaScript": 1425, "Java": 353, "Shell": 193, "CSS": 80} | package com.nicolaspetras.splfantasy.service.scorer.calculator.player
/**
* For game-wide points like top assists on team, top kills in game, top damage on team etc.
*/
class GamePointsCalculator {
} | 0 | Kotlin | 0 | 0 | afe7ac7aeb00d0ccc1546af305ce7a30ff5dc058 | 202 | smite-fantasy-league | MIT License |
android/src/main/java/com/reactnativeaudioremove/AudioRemovePackage.kt | abhi3691 | 532,260,717 | false | {"YAML": 5, "JSON with Comments": 1, "JSON": 7, "JavaScript": 5, "Ruby": 3, "Markdown": 6, "Text": 1, "Ignore List": 1, "Git Attributes": 1, "EditorConfig": 1, "Shell": 4, "TSX": 4, "Java Properties": 2, "Gradle": 4, "Batchfile": 2, "INI": 2, "XML": 9, "Kotlin": 2, "Gemfile.lock": 1, "Proguard": 1, "Java": 6, "C++": 7,... | package com.reactnativeaudioremove
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.JavaScriptModule
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class AudioRemovePackage : ReactPackage {
... | 6 | Java | 1 | 1 | 920f6f298277787d933953bbb57ccb9d9de4924e | 616 | react-native-audio-remove | Apache License 2.0 |
runtime/src/main/kotlin/io/github/seggan/myxal/runtime/list/MyxalList.kt | seanpm2001 | 706,446,894 | true | {"Gradle Kotlin DSL": 8, "Shell": 1, "Markdown": 3, "Git Attributes": 1, "Batchfile": 1, "Text": 3, "Ignore List": 1, "C++": 10, "YAML": 1, "Kotlin": 42, "Java": 19, "INI": 1, "ANTLR": 2, "Proguard": 1} | package io.github.seggan.myxal.runtime.list
import io.github.seggan.myxal.runtime.ProgramStack
import io.github.seggan.myxal.runtime.math.BigComplex
import io.github.seggan.myxal.runtime.myxal
import io.github.seggan.myxal.runtime.plus
import java.math.BigInteger
abstract class MyxalList : Collection<Any> {
comp... | 0 | null | 0 | 1 | b53015699278ef5fc2800447106581ca34ecbdea | 4,758 | Vyxal_Myxal | Apache License 2.0 |
clients/kotlin/generated/src/main/kotlin/org/openapitools/client/models/CatalogsHotelItemsFilter.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import ... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,152 | pinterest-sdk | MIT License |
library/verification-core/src/main/java/com/sinch/verification/core/auth/AuthorizationInterceptor.kt | sinch | 353,915,754 | false | null | package com.sinch.verification.core.auth
import okhttp3.Interceptor
import okhttp3.Response
/**
* Okhttp interceptor that uses specified [AuthorizationMethod] to authorize API requests.
* @param authorizationMethod Method used to authorize the call.
*/
class AuthorizationInterceptor(private val authorizationMethod... | 0 | Kotlin | 1 | 0 | 4c9d56358da68633ae1c3896e5d8c9f2af2e39c4 | 499 | verification-android-sdk | Apache License 2.0 |
app/src/main/java/com/hms/quickline/ui/call/VoiceCallActivity.kt | Explore-In-HMS | 519,198,080 | false | {"Kotlin": 190120, "Java": 6564} | /*
* Copyright 2022. Explore in HMS. 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... | 0 | Kotlin | 1 | 5 | 5711f868442a1ca52259419a0e87c2761e051ded | 11,149 | QuickLine | Apache License 2.0 |
app/src/main/java/com/mdzz/hook/HKCheckUtil.kt | TinyHai | 158,051,673 | false | null | package com.mdzz.hook
import android.text.TextUtils
import com.mdzz.hook.base.BaseHook
import com.mdzz.hook.util.XSharedPrefUtil
import de.robv.android.xposed.XC_MethodReplacement
import de.robv.android.xposed.XposedBridge
import de.robv.android.xposed.XposedHelpers
import java.lang.reflect.Method
import java.lang.ref... | 1 | Kotlin | 4 | 28 | 8eaf8ff524f62a54e5c1039aa1476ef55fbb3658 | 2,303 | Run | Apache License 2.0 |
src/dev/lunarcoffee/blazelight/model/api/forums/ForumAddManager.kt | lunarcoffee | 214,299,039 | false | {"Kotlin": 166835, "CSS": 18966, "JavaScript": 1102} | package dev.lunarcoffee.blazelight.model.api.forums
import dev.lunarcoffee.blazelight.model.api.categories.CategoryForumDataUpdater
import dev.lunarcoffee.blazelight.model.internal.Database
import dev.lunarcoffee.blazelight.model.internal.forums.DefaultForum
import dev.lunarcoffee.blazelight.model.internal.users.User
... | 0 | Kotlin | 0 | 1 | 3f0a227fe8d48cbeece5d677e8e36974d00e4e9c | 934 | Blazelight | MIT License |
app/src/main/java/com/application/archelon/screens/home/HomeActivity.kt | danoc93 | 451,251,171 | false | {"Kotlin": 104143} | package com.application.archelon.screens.home
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.application.archelon.BuildConfig
im... | 0 | Kotlin | 0 | 0 | 682cacd8fa5280241e58cb68d8ad5c8df2f02ab8 | 3,120 | archelonpoc | MIT License |
app/src/main/java/com/rk/xededitor/MainActivity/handlers/MenuItemHandler.kt | RohitKushvaha01 | 761,046,569 | false | {"Java": 1905118, "Kotlin": 820856, "Shell": 1606} | package com.rk.xededitor.MainActivity.handlers
import android.view.Menu
import androidx.lifecycle.lifecycleScope
import com.rk.librunner.Runner
import com.rk.xededitor.R
import com.rk.xededitor.MainActivity.MainActivity
import com.rk.xededitor.MainActivity.editor.TabFragment
import com.rk.xededitor.MainActivity.file.F... | 13 | Java | 15 | 246 | 11bd507283e0b2894240cf13069d89cf7e84b49c | 4,598 | Xed-Editor | MIT License |
app/src/main/java/com/erivera/apps/topcharts/ui/viewmodel/SplashViewModel.kt | er-rivera | 188,952,931 | false | null | package com.erivera.apps.topcharts.ui.viewmodel
import androidx.lifecycle.*
import com.erivera.apps.topcharts.StartupRouteState
import com.erivera.apps.topcharts.repository.Repository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject
@HiltViewModel
class Sp... | 0 | Kotlin | 0 | 0 | a987851954f3536229bc09b05e7548ddb1969b06 | 892 | SpotifyStats | MIT License |
src/test/kotlin/com/github/avrokotlin/avro4k/io/PolymorphicClassIoTest.kt | avro-kotlin | 194,962,508 | false | {"Kotlin": 279509} | package com.github.avrokotlin.avro4k.io
import com.github.avrokotlin.avro4k.Avro
import com.github.avrokotlin.avro4k.schema.*
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.shouldBeInstanceOf
import org.apache.avro.generic.GenericRecord
import org.apache.... | 27 | Kotlin | 36 | 187 | f550163d19c60a1071df84f5c9671cb9e35364f4 | 2,134 | avro4k | Apache License 2.0 |
Chapter08/src/main/kotlin/com/rivuchk/packtpub/reactivekotlin/chapter08/chapter8_2_concurrent.kt | tymicki | 175,694,440 | true | {"Kotlin": 121444} | package com.rivuchk.packtpub.reactivekotlin.chapter8
import io.reactivex.Observable
import io.reactivex.schedulers.Schedulers
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
fun main() {
Observable.range(1, 10)
.subscribeOn(Schedulers.computation())
.subscribe { item ... | 0 | Kotlin | 0 | 0 | 143e1bd1473c6da3fb3fe1b9373124052f87874d | 410 | Reactive-Programming-in-Kotlin | MIT License |
build/assets/compose/vitaminassets/flags/Cc.kt | Decathlon | 511,157,831 | false | {"Kotlin": 4443549, "HTML": 226066, "Swift": 163852, "TypeScript": 60822, "CSS": 53872, "JavaScript": 33193, "Handlebars": 771} | package com.decathlon.vitamin.compose.vitaminassets.flags
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.... | 1 | Kotlin | 5 | 33 | 852dcd924b82cac447918d2609615819d34caf82 | 7,857 | vitamin-design | Apache License 2.0 |
app/src/main/java/com/phz/dev/feature/main/MainActivity.kt | PengHaiZhuo | 395,591,581 | false | {"Kotlin": 429882, "Java": 59576, "HTML": 10034} | package com.phz.dev.feature.main
import android.Manifest
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.net.ConnectivityManager
import android.os.Build
import android.os.Bundle
import android.os.Process
import androidx.core.app.ActivityCompat
import androidx.lifecycle.lifec... | 0 | Kotlin | 0 | 0 | baf65155052ad759f01b24921c859dee181deaf6 | 5,028 | lapAndroid | Apache License 2.0 |
joark/src/test/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/joark/dokument/PdfDokumentTest.kt | navikt | 495,713,363 | false | null | package no.nav.helsearbeidsgiver.inntektsmelding.joark.dokument
import no.nav.helsearbeidsgiver.felles.inntektsmelding.BegrunnelseIngenEllerRedusertUtbetalingKode
import no.nav.helsearbeidsgiver.felles.inntektsmelding.FullLønnIArbeidsgiverPerioden
import no.nav.helsearbeidsgiver.felles.inntektsmelding.InntektsmeldingD... | 0 | Kotlin | 0 | 2 | 7a72f63b858b6b16365cfd78e38518ac294d1fe1 | 2,727 | helsearbeidsgiver-inntektsmelding | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.