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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android/src/main/kotlin/ni/devotion/floaty_head/FloatyHeadPlugin.kt | Beloin | 293,372,098 | true | {"Kotlin": 91833, "Dart": 22258} | package ni.devotion.floaty_head
import android.app.Activity
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.os.IBinder
import an... | 0 | null | 0 | 0 | 5c48932b022a8972fe3c5ca9c907d03d15bfd1d4 | 16,474 | floaty_chathead | MIT License |
src/main/kotlin/cz/softcake/module/pdf/element/image/Barcode.kt | SoftCake-Dev | 520,780,416 | false | null | package cz.softcake.module.pdf.element
import com.google.zxing.BarcodeFormat
import com.google.zxing.client.j2se.MatrixToImageWriter
import com.google.zxing.oned.Code128Writer
import com.google.zxing.oned.Code39Writer
import cz.softcake.module.pdf.element.image.Image
import cz.softcake.module.pdf.extensions.*
import o... | 0 | Kotlin | 0 | 0 | bbc7fd34f3debea4642c56756b09306196c51964 | 3,257 | pdf-module | Apache License 2.0 |
kotlin-enigma-machine/src/main/kotlin/com/jacovanderbyl/enigmamachine/dsl/EnigmaM4.kt | jaco-vanderbyl | 725,663,536 | false | {"Kotlin": 120908} | package com.jacovanderbyl.enigmamachine.dsl
@Dsl
class EnigmaM4 : Enigma() {
@Dsl fun singleReflector(init: EnigmaM4Reflectors.() -> Unit) : EnigmaM4Reflectors {
val enigmaM4Reflectors = EnigmaM4Reflectors()
enigmaM4Reflectors.init()
reflector = enigmaM4Reflectors.get()
return enigm... | 0 | Kotlin | 0 | 0 | 9b81053c8a9986edbfe40aab07f13271cec6add0 | 575 | kotlin-enigma-machine | MIT License |
src/main/kotlin/no/nav/syfo/util/JaxBUtils.kt | navikt | 147,160,556 | false | null | package no.nav.syfo.util
import com.migesok.jaxb.adapter.javatime.LocalDateXmlAdapter
import no.nav.helse.eiFellesformat.XMLEIFellesformat
import no.nav.helse.msgHead.XMLMsgHead
import no.nav.helse.sm2013.HelseOpplysningerArbeidsuforhet
import no.nav.helse.sykSkanningMeta.Skanningmetadata
import java.io.StringWriter
i... | 0 | Kotlin | 0 | 0 | 9c0615ecf381ec3aa6b688a155ddd063c79a42c9 | 1,059 | syfosmpapirmottak | MIT License |
address/src/main/kotlin/htnk128/kotlin/ddd/sample/address/usecase/inputport/command/FindAddressCommand.kt | htnk128 | 135,583,260 | false | {"Kotlin": 154792} | package htnk128.kotlin.ddd.sample.address.usecase.inputport.command
/**
* 住所を取得する際のコマンド情報。
*/
data class FindAddressCommand(
val addressId: String
)
| 2 | Kotlin | 7 | 20 | e8f038c29f08c6914f5c824164a2103f7b518e20 | 156 | kotlin-ddd-sample | MIT License |
src/main/kotlin/nz/laspruca/tcplugin/discord/Discord.kt | Questionable-Research-Labs | 279,434,984 | false | null | package nz.laspruca.tcplugin.discord
import net.dv8tion.jda.api.*
import net.dv8tion.jda.api.hooks.ListenerAdapter
import net.dv8tion.jda.api.requests.GatewayIntent
import net.dv8tion.jda.api.utils.cache.CacheFlag
import javax.security.auth.login.LoginException
import org.qrl.tcplugin.TCPlugin.Companion.config
import ... | 0 | Kotlin | 0 | 0 | dcacf9b1ab94941dae95ad731dd391cb83ed50c6 | 3,049 | TCPlugin | MIT License |
src/main/kotlin/academy/jairo/ktor/exception/FooBusinessException.kt | jairosoares | 723,457,254 | false | {"Kotlin": 29031} | package academy.jairo.ktor.exception
class FooBusinessException (param: String) :
BusinessException(MessageCode.BUSINESS_LOGIC_FOO, "Foo param $param error logic!") | 0 | Kotlin | 0 | 0 | 1e9480466001bc3ebf5e64b660f577ac7c6dc441 | 169 | ktor-lab | MIT License |
src/main/kotlin/org/raddad/main/dsl/api/warehouse/WarehouseBuilder.kt | osama-raddad | 447,000,044 | false | null | /*
* Copyright (c) 2022. , <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | Kotlin | 0 | 18 | 2996eb20ab505fbbaea329c0a268f1f92a4e0914 | 2,961 | Warehouse | Apache License 2.0 |
app/src/main/java/ke/co/appslab/smarthome/datastates/SettingsState.kt | wangerekaharun | 170,553,096 | false | null | package ke.co.appslab.smarthome.datastates
data class SettingsState(
val responseString: String
) | 1 | Kotlin | 0 | 4 | 910329ce6b682ca3cfecd23870090489281a5e9b | 102 | SmartHome | MIT License |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/rivers/OpprettJournalfoerOgDistribuerRiver.kt | navikt | 417,041,535 | false | {"Kotlin": 5082180, "TypeScript": 1192699, "Handlebars": 21474, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.rivers
import kotlinx.coroutines.runBlocking
import no.nav.etterlatte.brev.Brevoppretter
import no.nav.etterlatte.brev.JournalfoerBrevService
import no.nav.etterlatte.brev.PDFGenerator
import no.nav.etterlatte.brev.adresse.AvsenderRequest
import no.nav.etterlatte.brev.brevbaker.EtterlatteBrev... | 18 | Kotlin | 0 | 5 | f1fc8c88e716b903340ac7aeabb63c15fc490fe0 | 3,710 | pensjon-etterlatte-saksbehandling | MIT License |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/rivers/OpprettJournalfoerOgDistribuerRiver.kt | navikt | 417,041,535 | false | {"Kotlin": 5082180, "TypeScript": 1192699, "Handlebars": 21474, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.rivers
import kotlinx.coroutines.runBlocking
import no.nav.etterlatte.brev.Brevoppretter
import no.nav.etterlatte.brev.JournalfoerBrevService
import no.nav.etterlatte.brev.PDFGenerator
import no.nav.etterlatte.brev.adresse.AvsenderRequest
import no.nav.etterlatte.brev.brevbaker.EtterlatteBrev... | 18 | Kotlin | 0 | 5 | f1fc8c88e716b903340ac7aeabb63c15fc490fe0 | 3,710 | pensjon-etterlatte-saksbehandling | MIT License |
databaselibrary/src/main/java/com/system/databaselibrary/viewmodel/DeviceInfoViewModel.kt | SymphonyZhang | 299,180,545 | false | null | package com.system.databaselibrary.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import com.system.databaselibrary.database.entity.DeviceInfo
import com.system.databaselibrary.repository.DeviceInfoReposito... | 0 | Kotlin | 0 | 0 | ce527e6627c89f7119a606bc40cc93f89c06edba | 2,475 | RoomDemo | Apache License 2.0 |
app/src/main/java/com/github/htdangkhoa/cleanarchitecture/domain/UseCase.kt | htdangkhoa | 283,697,193 | false | null | package com.github.htdangkhoa.cleanarchitecture.domain
import com.github.htdangkhoa.cleanarchitecture.base.BaseUseCase
import com.github.htdangkhoa.cleanarchitecture.data.repository.Repository
class UseCase(
repository: Repository) : BaseUseCase<Repository, Param>(repository) {
override suspend fun buildUseCa... | 0 | Kotlin | 0 | 0 | 0867b634fbc529b04908df05bc5134ec9abd76d6 | 699 | tiki-android-home-test | MIT License |
kmp-launchpad-google-utils/src/commonMain/kotlin/com/bottlerocketstudios/launchpad/google/utils/network/service/places/PlacesApiService.kt | BottleRocketStudios | 768,168,240 | false | {"Kotlin": 16548} | package com.bottlerocketstudios.launchpad.google.utils.network.service.places
import com.bottlerocketstudios.launchpad.google.utils.model.place.AutocompleteResult
import com.bottlerocketstudios.launchpad.google.utils.model.place.LatLngDto
import com.bottlerocketstudios.launchpad.google.utils.model.place.PlaceLocationR... | 0 | Kotlin | 1 | 0 | 3486c381406ce36038484f3e31515c22b4a3d9e2 | 5,259 | KMP-LaunchPad-Google-Utils | Apache License 2.0 |
kmp-launchpad-google-utils/src/commonMain/kotlin/com/bottlerocketstudios/launchpad/google/utils/network/service/places/PlacesApiService.kt | BottleRocketStudios | 768,168,240 | false | {"Kotlin": 16548} | package com.bottlerocketstudios.launchpad.google.utils.network.service.places
import com.bottlerocketstudios.launchpad.google.utils.model.place.AutocompleteResult
import com.bottlerocketstudios.launchpad.google.utils.model.place.LatLngDto
import com.bottlerocketstudios.launchpad.google.utils.model.place.PlaceLocationR... | 0 | Kotlin | 1 | 0 | 3486c381406ce36038484f3e31515c22b4a3d9e2 | 5,259 | KMP-LaunchPad-Google-Utils | Apache License 2.0 |
src/main/kotlin/me/saro/selenium/ChromeDriverBuilder.kt | saro-lab | 815,861,334 | false | {"Kotlin": 17894, "Java": 1118} | package me.saro.selenium
import me.saro.selenium.comm.Utils
import me.saro.selenium.model.DownloadStrategy
import me.saro.selenium.model.PathManager
import me.saro.selenium.model.SeleniumChromeException
import me.saro.selenium.service.ChromeDriverPlus
import me.saro.selenium.service.ChromeManager
import org.openqa.se... | 0 | Kotlin | 0 | 0 | 6b469fd771591577eb7ea5f0243ffaf67dcc5d19 | 4,221 | selenium-chrome-all-in-one | Apache License 2.0 |
social-network/src/main/kotlin/ru/amai/highload/social/web/api/GenderResource.kt | slobanov | 256,960,829 | false | {"Jupyter Notebook": 256899, "Kotlin": 81512, "HTML": 11765, "JavaScript": 7926, "Shell": 2913, "CSS": 1704, "Lua": 807} | package ru.amai.highload.social.web.api
import org.springframework.http.ResponseEntity
import org.springframework.http.ResponseEntity.noContent
import org.springframework.http.ResponseEntity.ok
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
impor... | 0 | Jupyter Notebook | 0 | 0 | 941bbb5c3e3118306343fc10671c2e26edc22fa3 | 955 | otus-highload-2020-03-slobanov | MIT License |
app/src/main/java/com/oskhoj/swingplanner/ui/settings/SettingsContract.kt | oskarh | 113,068,591 | false | null | package com.oskhoj.swingplanner.ui.settings
import android.content.Context
import com.oskhoj.swingplanner.ui.base.Attachable
import com.oskhoj.swingplanner.ui.base.BaseView
object SettingsContract {
interface View : BaseView {
fun showAppNotificationSettings()
fun showSubscriptionsManager()
... | 0 | Kotlin | 0 | 2 | 4bab0b7c7e2b98903d126cf77137371d95db6929 | 688 | SwingPlanner-android | MIT License |
app/src/main/java/com/cwtstudio/nasaqrscanner/view/MainActivity.kt | CodeWithTamim | 815,462,509 | false | {"Kotlin": 5936} | package com.cwtstudio.nasaqrscanner.view
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import com.cwtstudio.nasaqrs... | 0 | Kotlin | 0 | 0 | d6e3d8f710d5ab5c242269d872cd16da81e8fcbd | 1,188 | NasaQrScanner | MIT License |
deeplink/src/test/java/com/hellofresh/deeplink/Routes.kt | hellofresh | 163,990,092 | false | null | /*
* Copyright (c) 2019. The HelloFresh Android Team
*
* 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 appli... | 2 | Kotlin | 2 | 7 | f48bdb2486020ba24a6a520625e0694b8df7b497 | 1,449 | android-deeplink | Apache License 2.0 |
nebulosa-guiding/src/main/kotlin/nebulosa/guiding/DeclinationGuideMode.kt | tiagohm | 568,578,345 | false | {"Kotlin": 1368947, "TypeScript": 213072, "HTML": 105054, "SCSS": 4435, "JavaScript": 1164} | package nebulosa.guiding
enum class DeclinationGuideMode {
NONE,
AUTO,
NORTH,
SOUTH,
}
| 1 | Kotlin | 0 | 1 | 318b0beece3d2d18601fff252f10b00c1bb2352b | 104 | nebulosa | MIT License |
app/src/main/java/io/iftech/android/slidelayout/DebugSlideActivity.kt | iftechio | 197,558,478 | false | null | package io.iftech.android.slidelayout
import android.annotation.SuppressLint
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androi... | 3 | Kotlin | 20 | 147 | 78de2437c5139532e2d9a7df0cacbe1b662ab97b | 3,046 | iftech-android-slide-layout | BSD Zero Clause License |
data/slack-jackson-dto-test-extensions/src/main/kotlin/com/kreait/slack/api/contract/jackson/group/chat/UpdateExtensions.kt | raphaeldelio | 342,576,196 | true | {"Kotlin": 923419, "Shell": 654} | package com.kreait.slack.api.contract.jackson.group.chat
import com.kreait.slack.api.contract.jackson.common.InstantSample
fun ErrorChatUpdateResponse.Companion.sample(): ErrorChatUpdateResponse {
return ErrorChatUpdateResponse(false, "")
}
fun SuccessfulChatUpdateResponse.Companion.sample(): SuccessfulChatUpdat... | 0 | null | 0 | 0 | 7313d2205e2b284d7d50c6d04e7acd29b284f433 | 562 | slack-spring-boot-starter | MIT License |
data_wallet/src/main/java/io/igrant/data_wallet/models/certificateOffer/OfferRequestAgreementContextV3.kt | decentralised-dataexchange | 344,557,240 | false | null | package io.igrant.data_wallet.models.certificateOffer
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class OfferRequestAgreementContextV3 (
@SerializedName("message_type")
@Expose
var messageType: String? = null,
@SerializedName("message")
@Expose
... | 0 | Kotlin | 0 | 1 | 8b9121fc272633cdd7758dbca201fb750ae88b82 | 374 | ama-android-sdk | Apache License 2.0 |
app/src/main/java/com/newkirkj/seattlesearch/networking/foursquare/FoursquareRetrofitFactory.kt | newkirkjosh | 187,752,979 | false | null | package com.newkirkj.seattlesearch.networking.foursquare
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.newkirkj.seattlesearch.BuildConfig
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
... | 0 | Kotlin | 0 | 0 | 122b9eac4c5d824bd11a637fe8f03418d057c43d | 1,551 | android-homeaway-challenge | MIT License |
lib_common/src/main/java/com/xrn1997/common/view/LoadingView.kt | xrn1997 | 259,652,551 | false | {"Gradle Kotlin DSL": 2, "Gradle": 13, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 12, "Batchfile": 1, "Proguard": 11, "Java": 232, "XML": 244, "Kotlin": 62, "TOML": 1, "INI": 1} | package com.xrn1997.common.view
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import an... | 0 | Java | 1 | 9 | aafe31578344692832dae61c006666ee7eee7656 | 1,735 | android-ebook | Apache License 2.0 |
src/main/java/com/digital/signage/dto/DeviceIdAndNameDto.kt | Rocky-Saini | 741,118,438 | false | {"Batchfile": 1, "Markdown": 2, "Shell": 1, "Maven POM": 1, "Dockerfile": 1, "XML": 9, "Java Properties": 4, "YAML": 2, "JSON": 8, "SQL": 2, "Java": 564, "Kotlin": 193, "Ignore List": 1} | package com.digital.signage.dto
interface DeviceIdAndNameDto {
fun getDeviceId(): Long?
fun getDeviceName(): String?
} | 0 | Java | 0 | 0 | 7879fdf301f0d0545954bfed823de6b6cbd41b46 | 127 | local-server | DOC License |
audit4j-kotlin-demo-springboot/src/main/kotlin/org/springframework/samples/petclinic/vet/VetRepository.kt | audit4j | 31,201,226 | false | null | package org.springframework.samples.petclinic.vet
import org.springframework.cache.annotation.Cacheable;
import org.springframework.dao.DataAccessException;
import org.springframework.data.repository.Repository;
import org.springframework.transaction.annotation.Transactional;
interface VetRepository : Repository<Vet... | 2 | Java | 29 | 18 | 16d62da66a3807e95b45717baa80710abbc1b64a | 573 | audit4j-demo | Apache License 2.0 |
platform/core-api/src/com/intellij/openapi/application/CoroutineSupport.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.application
import org.jetbrains.annotations.ApiStatus.Internal
import kotlin.coroutines.CoroutineContext
@Internal
interface CoroutineSupport {
fun edtDispatcher():... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 340 | intellij-community | Apache License 2.0 |
nugu-ux-kit/src/main/java/com/skt/nugu/sdk/platform/android/ux/template/view/media/LyricsView.kt | nugu-developers | 214,067,023 | false | {"Gradle": 19, "Gemfile.lock": 1, "Markdown": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Ruby": 2, "Kotlin": 630, "Proguard": 6, "XML": 84, "Java": 4, "YAML": 1, "JSON": 13, "Protocol Buffer": 1} | /**
* Copyright (c) 2020 SK Telecom Co., Ltd. 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 requir... | 0 | Kotlin | 18 | 18 | addc2ba1472943a1608b876405df9f18edfc47b0 | 14,978 | nugu-android | Apache License 2.0 |
idea/testData/refactoring/pullUp/k2k/superToThis.kt | JakeWharton | 99,388,807 | false | null | open class A {
open fun bar() = 1
}
class <caret>B: A() {
override fun bar() = 1
// INFO: {"checked": "true"}
fun foo() = super.bar()
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 153 | kotlin | Apache License 2.0 |
android/app-example/src/main/java/com/badoo/ribs/example/rib/dialog_example/builder/DialogExampleBuilder.kt | journeyman | 205,386,527 | true | {"Kotlin": 593038, "Swift": 402146, "Java": 112878, "Shell": 2571, "Ruby": 1955, "Objective-C": 814} | package com.badoo.ribs.example.rib.dialog_example.builder
import android.os.Bundle
import com.badoo.ribs.core.Builder
import com.badoo.ribs.core.Node
import com.badoo.ribs.customisation.customisationsBranchFor
import com.badoo.ribs.customisation.getOrDefault
import com.badoo.ribs.example.rib.dialog_example.DialogExamp... | 0 | Kotlin | 0 | 0 | 6c4ae253ab1f052fd25b45f041744655041899fc | 1,088 | RIBs | Apache License 2.0 |
app/src/main/java/com/example/naturae_ui/util/Constants.kt | nanaeaubry | 168,585,700 | false | {"Java": 199765, "Kotlin": 1432} | package com.example.naturae_ui.util
class Constants{
companion object {
const val NATURAE_APP_KEY = "<KEY>"
const val HOST = "naturae.host"
const val PORT = 443
const val ACCOUNT_CREATED = 201
const val EMAIL_EXIST = 150
const val INVALID_AUTHEN_CODE = 105
co... | 0 | Java | 1 | 1 | bb32336bceab73bcd2a6349eab710c9fef97e28c | 483 | Naturae_UI | MIT License |
app-inspection/inspectors/backgroundtask/view/src/com/android/tools/idea/appinspection/inspectors/backgroundtask/view/UiComponentsProvider.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,119 | android | Apache License 2.0 |
Common/src/main/kotlin/com/existing/boilerx/common/base/delegation/DefaultDialogDelegation.kt | THE-EXISTING | 176,088,785 | false | null | package com.existing.boilerx.common.base.delegation
/**
* Created by「 The Khaeng 」on 11 Oct 2017 :)
*/
class DefaultDialogDelegation
: DefaultDialogDelegateListener {
} | 1 | Kotlin | 1 | 2 | 6483e245ea45db0c8642b30366d6a81e86d8b48d | 175 | boilerx-android-architecture | Apache License 2.0 |
app/src/test/java/com/shalom/hobby/gamecollector/VideoGameConstantsUnitTests.kt | shalomhalbert | 105,677,675 | false | {"Java": 120621, "Kotlin": 8588} | package com.shalom.hobby.gamecollector
import android.provider.BaseColumns
import com.google.common.truth.Truth
import com.shalom.hobby.gamecollector.data.propertyBags.VideoGame
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.Parameterized
/**
* Tests whether constants in VideoGame.jav... | 1 | null | 1 | 1 | ac9a6d10850fe54d06581954aa79d802142427be | 2,927 | GameCollector | MIT License |
codeforces/round584/c.kt | mikhail-dvorkin | 93,438,157 | false | {"XML": 3, "Text": 1, "Ignore List": 1, "Markdown": 5, "Java": 988, "Shell": 20, "Python": 66, "Kotlin": 512, "INI": 1, "Batchfile": 2, "Diff": 1, "Haskell": 140} | package codeforces.round584
private fun solve(): String {
readLn()
val s = readLn()
for (c in '0'..'9') {
val lastC = s.indexOfLast { it < c }
val first = s.indices.map { s[it] < c || s[it] == c && it > lastC }
val t = s.toList().zip(first).sortedBy { !it.second }.map { it.first }
if (t.zipWithNext { a, b -... | 0 | Java | 1 | 9 | bf2846347011309aace0c4a04ac5355296dfbd90 | 546 | competitions | The Unlicense |
backend/app/src/main/kotlin/io/tolgee/api/v2/hateoas/project/stats/LanguageStatsModel.kt | tolgee | 303,766,501 | false | null | package io.tolgee.api.v2.hateoas.project.stats
open class LanguageStatsModel(
val languageId: Long?,
val languageTag: String?,
val languageName: String?,
val languageOriginalName: String?,
val languageFlagEmoji: String?,
val translatedKeyCount: Long,
val translatedWordCount: Long,
val translatedPercent... | 50 | Kotlin | 15 | 292 | 9896609f260b1ff073134e672303ff8810afc5a1 | 536 | server | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/FirstTeleop.kt | sakura-tempesta-6909 | 742,749,852 | false | {"Kotlin": 45988, "Java": 41887} | package org.firstinspires.ftc.teamcode
import com.qualcomm.robotcore.eventloop.opmode.OpMode
class FirstTeleop : OpMode() {
override fun init() {}
override fun init_loop() {}
override fun start() {}
override fun loop() {}
override fun stop() {}
} | 0 | Kotlin | 0 | 1 | adb8808015c64cd9d8a97267cfd18dde9a1f1d90 | 268 | ftc-2023 | BSD 3-Clause Clear License |
src/main/kotlin/magicsquare/quartumbackend/persistance/repository/jpa/TagRepository.kt | MagicSquareTeam | 458,905,234 | false | null | package magicsquare.quartumbackend.persistance.repository.jpa;
import magicsquare.quartumbackend.persistance.entity.Tag
import org.springframework.data.jpa.repository.JpaRepository
import java.util.*
/**
* Репозиторий Tag
*
*/
interface TagRepository : JpaRepository<Tag, Int> {
/**
* Ищет тэг по имени
... | 0 | Kotlin | 0 | 0 | 35ed0f9594da403a9d39f7fe481a5669d6599df2 | 420 | quartum-backend | MIT License |
app/src/main/java/com/mastomas/comicbookbrowser/fragments/CharacterDetailFragment.kt | LiveMasTomas | 332,991,594 | false | null | package com.mastomas.comicbookbrowser.fragments
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.n... | 0 | Kotlin | 0 | 4 | 8ce4745a19e330d4b3d10ef60b08f8e28dc671b4 | 5,383 | ComicBookBrowser | Apache License 2.0 |
src/test/kotlin/org/rust/ide/inspections/RsSelfConventionInspectionTest.kt | sonyeric | 378,658,619 | true | {"Kotlin": 8233995, "Rust": 116419, "Python": 79704, "HTML": 18207, "Lex": 14384, "Shell": 760, "Java": 688, "RenderScript": 89} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.inspections
import org.rust.ProjectDescriptor
import org.rust.WithStdlibRustProjectDescriptor
/**
* Tests for Self Convention inspection
*/
class RsSelfConventionInspectionTest : RsInspec... | 0 | null | 0 | 0 | c0e20ebaf60a8128f93082497296401fa4fc73e5 | 3,637 | intellij-rust | MIT License |
android/app/src/main/kotlin/com/example/kana_listening/MainActivity.kt | eric19960304 | 197,958,680 | false | {"Dart": 16470, "Ruby": 3437, "Python": 1398, "Swift": 404, "Kotlin": 127, "Batchfile": 79, "Shell": 73, "Objective-C": 37} | package com.example.kana_listening
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 0 | Dart | 4 | 18 | e0a603dbbf38c5b9d8e6214a8e1a2fb661df1d77 | 127 | kana_listening | MIT License |
src/main/kotlin/com/oliverspryn/gradle/exceptions/MissingTokenException.kt | upmc-enterprises | 173,575,492 | false | {"Kotlin": 2700, "Shell": 240} | package com.oliverspryn.gradle.exceptions
class MissingTokenException : Throwable("Missing the Slack access token")
| 2 | Kotlin | 0 | 15 | 45e4749916e1c0adf3f4020a4c57ddb474e7e734 | 117 | gradle-slack-uploader-plugin | MIT License |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/dashboards/widgets/ProjectListWidget.kt | nemerosa | 19,351,480 | false | {"Kotlin": 9640276, "JavaScript": 3232252, "Java": 1029918, "HTML": 507415, "Groovy": 372843, "CSS": 137546, "Less": 35335, "Dockerfile": 6298, "Shell": 5086} | package net.nemerosa.ontrack.model.dashboards.widgets
import org.springframework.stereotype.Component
@Component
class ProjectListWidget : AbstractWidget<ProjectListWidget.ProjectListWidgetConfig>(
key = "home/ProjectList",
name = "Project list",
description = "Fixed list of projects, suitable to easily a... | 49 | Kotlin | 25 | 96 | 53c2b0df210aec3a2f57ca778d65393a7a95e719 | 550 | ontrack | MIT License |
Conventions/Operators overloading/src/Task.kt | porks | 398,160,160 | false | null | import TimeInterval.*
data class MyDate(val year: Int, val month: Int, val dayOfMonth: Int)
// Supported intervals that might be added to dates:
enum class TimeInterval { DAY, WEEK, YEAR }
operator fun MyDate.plus(interval: TimeInterval) = addTimeIntervals(interval, 1)
class MoreIntervals(val interval: TimeInterval... | 0 | Kotlin | 0 | 0 | 2967ebbbf36979bf3211238a6b49cd843676510f | 672 | KotlinKoans | MIT License |
kotlin-client/src/main/kotlin/io/provenance/bilateral/extensions/ByteStringExtensions.kt | provenance-io | 506,765,156 | false | null | package io.provenance.bilateral.extensions
import com.google.protobuf.ByteString
/**
* A simple extension to convert a ByteString to its raw string content in UTF_8 encoding. Not all byte strings will
* include sane values when this function is used on them, but some byte strings do represent raw strings and are
... | 0 | Rust | 0 | 0 | 96043cb5f4cb5a4322609c927038395bc9655363 | 459 | metadata-bilateral-exchange | Apache License 2.0 |
codebase/android/core-database/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/database/amount/model/Amount.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android.core.database.amount.model
import androidx.annotation.VisibleForTesting
import com.makeappssimple.abhimanyu.financemanager.android.core.common.util.formattedCurrencyValue
import com.squareup.moshi.JsonClass
import kotlin.math.abs
import java.util.Currency
@V... | 0 | Kotlin | 0 | 0 | 29afaec0cf4e95ba4d6c0dcc32cba3fea6a088cb | 1,837 | finance-manager | Apache License 2.0 |
multiplatform-locale/src/commonMain/kotlin/com/vanniktech/locale/Region.kt | vanniktech | 562,822,028 | false | {"Kotlin": 83909, "Ruby": 2706, "Swift": 1309} | package com.vanniktech.locale
enum class Region(
/** ISO 3166-1 alpha-2 code - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
override val code: String,
/** ISO 3166-1 alpha-3 code - https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3 */
override val code3: String,
/** The [Continent]s it belongs to. Somet... | 5 | Kotlin | 4 | 26 | ecc05d238adac7fbfff413837b01ac1f18aa81f6 | 1,721 | multiplatform-locale | Apache License 2.0 |
common_view/src/main/java/com/vmenon/mpo/view/BaseFragment.kt | hitoshura25 | 91,402,384 | false | null | package com.vmenon.mpo.view
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.drawerlayout.widget.DrawerLayout
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecy... | 15 | Kotlin | 0 | 1 | d37ca42046c00bbe3c414482fac67e041c734ecf | 3,281 | Media-Player-Omega-Android | Apache License 2.0 |
app/src/main/java/com/content/mercy/camera/CameraPresenter.kt | mercy-project | 218,721,377 | false | null | package com.content.mercy.camera
import android.annotation.SuppressLint
import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import android.util.Size
import androidx.camera.core.*
import com.content.mercy.camera.util.AutoFitPreviewBuilder
import com.content.mercy.camera.util.VisionAnalyzer... | 0 | Kotlin | 2 | 1 | 358826dc9c6ad4b445d90c44ea4fceaa77ed02c4 | 4,922 | Mercy-Emotion-SNS | Apache License 2.0 |
app/src/main/java/shvyn22/flexinglyrics/repository/remote/RemoteRepository.kt | shvyn22 | 348,453,435 | false | {"Kotlin": 129941} | package shvyn22.flexinglyrics.repository.remote
import kotlinx.coroutines.flow.Flow
import shvyn22.flexinglyrics.data.remote.AlbumInfo
import shvyn22.flexinglyrics.data.remote.ArtistInfo
import shvyn22.flexinglyrics.data.remote.Track
import shvyn22.flexinglyrics.util.Resource
interface RemoteRepository {
suspend... | 0 | Kotlin | 0 | 2 | fc264ac9d38f3d39ab7a74321ba33ad598e31c9a | 636 | FlexingLyrics | MIT License |
buildSrc/src/main/java/NetApiUrl.kt | chenfei0928 | 130,954,695 | false | null | import org.gradle.api.Project
/**
* @author ChenFei(chenfei0928@gmail.com)
* @date 2021-07-30 17:55
*/
fun Project.applyNetApiUrl() {
buildSrcAndroid<com.android.build.gradle.BaseExtension> {
buildTypes {
fun com.android.build.api.dsl.BuildType.buildConfigFields(
webSocketUrl... | 0 | Kotlin | 0 | 0 | 3a1a4fb80e47f4f5d7ac1843cdda3bb0c9de4aba | 3,203 | Util | MIT License |
libraries/VastTools/src/main/kotlin/com/ave/vastgui/tools/manager/mediafilemgr/MediaFileMgr.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui <EMAIL>
*
* 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 ... | 2 | Kotlin | 4 | 35 | 40ca967680025d42ecabc3a2fd2ebc9bac906fc8 | 3,218 | Android-Vast-Extension | Apache License 2.0 |
app/src/main/java/com/skydoves/multicolorpickerdemo/CustomFlag.kt | skydoves | 107,783,511 | false | null | package com.skydoves.multicolorpickerdemo
import android.content.Context
import android.view.View
import android.widget.TextView
import com.skydoves.multicolorpicker.ColorEnvelope
import com.skydoves.multicolorpicker.FlagView
/**
* Developed by skydoves on 2017-10-24.
* Copyright (c) 2017 skydoves rights reserved.... | 1 | null | 17 | 127 | e85659f3450fd67fc3ba853ae791fd33fa79f167 | 770 | Multi-ColorPicker | Apache License 2.0 |
serialization/src/commonMain/kotlin/nl/adaptivity/xmlutil/serialization/canary/ExtSerialDescriptor.kt | benjiaminhanks2 | 287,669,452 | true | {"Kotlin": 645910, "Java": 81} | /*
* Copyright (c) 2018.
*
* This file is part of XmlUtil.
*
* This file is licenced to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You should have received a copy of the license with the source distribution.
* Alternatively, y... | 0 | null | 0 | 0 | dcdb686c02096cc5417785295e8b273f7f6b26a2 | 4,159 | xmlutil | Apache License 2.0 |
core/src/jsTest/kotlin/dev/fritz2/repositories/rest/rest.kt | sboekhoff | 299,002,743 | true | {"Kotlin": 312105} | package dev.fritz2.repositories.rest
import dev.fritz2.binding.*
import dev.fritz2.dom.html.render
import dev.fritz2.dom.mount
import dev.fritz2.identification.uniqueId
import dev.fritz2.lenses.buildLens
import dev.fritz2.repositories.Resource
import dev.fritz2.serialization.Serializer
import dev.fritz2.test.*
import ... | 0 | null | 0 | 0 | a4878f916d5597a2c747a4a8e5b1a739e0a060f1 | 9,652 | fritz2 | MIT License |
presentation/src/main/java/com/yapp/bol/presentation/viewmodel/login/LoginViewModel.kt | YAPP-Github | 634,125,431 | false | null | package com.yapp.bol.presentation.viewmodel.login
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yapp.bol.domain.model.LoginItem
import com.yapp.bol.domain.usecase.auth.SaveAccessTokenUseCase
import com.yapp.bol.domain.usecase.auth.SaveRefreshTokenUseCase
import com.yapp.bol.do... | 7 | Kotlin | 2 | 10 | c27f10ef96de91ace8b2617ed1b93de984c8000c | 1,815 | 22nd-Android-Team-2-Android | Apache License 2.0 |
GooglePayCoupons/Android/app/src/main/java/app/nikhil/googlepaycoupons/ui/couponoverlay/CouponOverlayActivity.kt | nikhilbansal97 | 270,763,824 | false | {"Kotlin": 25919} | package app.nikhil.googlepaycoupons.ui.couponoverlay
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import app.nikhil.googlepaycoupons.R
import app.nikhil.googlepaycoupons.custom.CouponView.CouponScratchListener
import app.nikhil.googlepaycoupons.da... | 0 | Kotlin | 0 | 3 | 01a469640001a50fba4a4640d4e16bf0b662b8d3 | 1,483 | Mobile-UI-Samples | MIT License |
app/src/main/java/com/dafdev/selamatkan/view/adapter/pager/HospitalPagerAdapter.kt | dapoi | 419,212,213 | false | null | package com.dafdev.selamatkan.view.adapter.pager
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.dafdev.selamatkan.view.fragment.core.hospital.list.CovidHospitalFragment
import com.dafdev.selamatkan.view.fragment.c... | 0 | Kotlin | 1 | 2 | 6ef2c2a3eb252885eea76d9b9bea5ad46b954c9d | 750 | SELAMATKAN | MIT License |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/ChevronLeftSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
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
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 2,304 | compose-icons | MIT License |
src/main/kotlin/com/londogard/nlp/tokenizer/SentencePieceTokenizer.kt | londogard | 324,636,955 | false | null | package com.londogard.nlp.tokenizer
import ai.djl.sentencepiece.SpTokenizer
import com.londogard.nlp.utils.DownloadHelper
import com.londogard.nlp.utils.LanguageSupport
import java.nio.file.Path
import kotlin.io.path.readLines
/**
* A [SentencePiece Tokenizer](https://github.com/google/sentencepiece).
* This is a... | 15 | Kotlin | 3 | 55 | 6e5692575b6b0be69f4fe06b9118d6d0eb8befe3 | 1,751 | londogard-nlp-toolkit | Apache License 2.0 |
src/main/kotlin/com/londogard/nlp/tokenizer/SentencePieceTokenizer.kt | londogard | 324,636,955 | false | null | package com.londogard.nlp.tokenizer
import ai.djl.sentencepiece.SpTokenizer
import com.londogard.nlp.utils.DownloadHelper
import com.londogard.nlp.utils.LanguageSupport
import java.nio.file.Path
import kotlin.io.path.readLines
/**
* A [SentencePiece Tokenizer](https://github.com/google/sentencepiece).
* This is a... | 15 | Kotlin | 3 | 55 | 6e5692575b6b0be69f4fe06b9118d6d0eb8befe3 | 1,751 | londogard-nlp-toolkit | Apache License 2.0 |
app/src/main/java/com/coldfier/aws/retrofit/client/retrofit/Injector.kt | Dmitriy1892 | 610,963,744 | false | null | package com.coldfier.aws.retrofit.client.retrofit
import com.coldfier.aws.retrofit.client.AwsCredentials
import com.coldfier.aws.retrofit.client.AwsRetrofitClientFactory
import com.coldfier.aws.retrofit.client.BuildConfig
import com.tickaroo.tikxml.TikXml
import com.tickaroo.tikxml.retrofit.TikXmlConverterFactory
impo... | 0 | Kotlin | 0 | 1 | 52bbf58955ff37c3cb461aa093a5f468badcdffa | 1,157 | AwsRetrofitClient | Apache License 2.0 |
app/src/main/java/com/minosai/oneclick/util/Constants.kt | Tech2morrow | 203,120,617 | true | {"Kotlin": 101256} | package com.minosai.oneclick.util
object Constants {
val PACKAGE_NAME = "com.minosai.oneclick"
val PLAY_STORE_URL = "https://play.google.com/store/apps/details?id=$PACKAGE_NAME"
val PREF_KEY = "$PACKAGE_NAME.pref"
val PREF_USERNAME = "$PACKAGE_NAME.pref.username"
val PREF_PASSWORD = <PASSWORD>"
... | 0 | Kotlin | 0 | 0 | 0d7d8aaab0ef65849230cc4dcaff0b9699eee3af | 1,647 | One-Click | Apache License 2.0 |
community/src/test/java/com/ekoapp/ekosdk/uikit/community/detailpage/EkoCommunityDetailViewModelTest.kt | AmityCo | 313,244,597 | false | null | package com.ekoapp.ekosdk.uikit.community.detailpage
import com.ekoapp.ekosdk.EkoClient
import com.ekoapp.ekosdk.EkoCommunityRepository
import com.ekoapp.ekosdk.community.EkoCommunity
import com.ekoapp.ekosdk.community.category.EkoCommunityCategory
import com.ekoapp.ekosdk.file.EkoImage
import com.ekoapp.ekosdk.uikit.... | 4 | Kotlin | 1 | 0 | d4fe097da96f71ab281c9b39fafdaa901aed377c | 5,290 | ASC-UIKit-Android | Microsoft Public License |
sample/src/main/java/contacts/sample/cheatsheet/other/kotlin/ContactLinksActivity.kt | vestrel00 | 223,332,584 | false | {"Kotlin": 1616347, "Shell": 635} | package contacts.sample.cheatsheet.other.kotlin
import android.app.Activity
import contacts.core.Contacts
import contacts.core.aggregationexceptions.ContactLink
import contacts.core.aggregationexceptions.ContactUnlink
import contacts.core.entities.Contact
import contacts.core.util.linkDirect
import contacts.core.util.... | 26 | Kotlin | 35 | 573 | 383594d2708296f2fbc6ea1f10b117d3acd1f46a | 936 | contacts-android | Apache License 2.0 |
src/repository/UserRepository.kt | rti-international-charisma | 343,861,997 | false | null | package com.rti.charisma.api.repository
import com.rti.charisma.api.db.tables.SecurityQuestion
import com.rti.charisma.api.db.tables.User
import com.rti.charisma.api.route.Signup
interface UserRepository {
fun getSecurityQuestions(secQId: Int?): List<SecurityQuestion>
fun doesUserExist(username: String): Boo... | 0 | Kotlin | 0 | 0 | 57ef1ab083fac87ef41b5536ce05149a9ab761ad | 612 | Application-Programming-Interface | Apache License 2.0 |
backend/src/main/kotlin/app/softwork/composetodo/TypedAPI.kt | hfhbd | 286,300,714 | false | {"Kotlin": 68059, "Swift": 12186, "HTML": 385, "JavaScript": 319} | package app.softwork.composetodo
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.auth.*
import io.ktor.server.request.*
import io.ktor.server.resources.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.ktor.util.pipeline.*
import kotlinx.serialization.*
@DslM... | 9 | Kotlin | 11 | 99 | 4ecb9866ef0b2a4ac20f33959b78551177f40fda | 2,310 | ComposeTodo | Apache License 2.0 |
typescript-kotlin/src/jsMain/kotlin/typescript/ExitStatus.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6149331} | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package typescript
/** Return code used by getEmitOutput function to indicate status of the function */
// language=JavaScript
@JsName("""(/*union*/{Success: 0, DiagnosticsPresen... | 0 | Kotlin | 6 | 26 | 188d780966c530ed7385f81248ebac5e5abcc40b | 985 | types-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/markdown/compose/elements/MarkdownList.kt | vinceglb | 628,619,356 | false | {"Kotlin": 206592, "Swift": 954, "Shell": 228} | package markdown.compose.elements
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.la... | 2 | Kotlin | 2 | 93 | 7240671bdd5e6b74ff247f7443f3e996e995f634 | 4,062 | ComposeAI | Apache License 2.0 |
random-kt-core/src/test/java/de/alpharogroup/random/util/PropertiesLoaderTest.kt | astrapi69 | 225,646,871 | false | null | /**
* The MIT License
*
* Copyright (C) 2015 <NAME>
*
* 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, copy, modi... | 0 | Kotlin | 0 | 0 | defbecfef76e4801afc1d9671c9a75d8928c3398 | 1,963 | randomizer-kt | MIT License |
app/src/main/java/com/keyvalue/keycode/mobrain/client/VideoCallback.kt | mobo-robo | 691,864,712 | false | {"Kotlin": 73614} | package com.keyvalue.keycode.mobrain.client
import java.io.File
interface VideoCallback {
suspend fun onVideoReceived(file:File)
} | 0 | Kotlin | 0 | 0 | 529dcb3da07c35610bb86513e8dd1b4a6afedd33 | 136 | mobo-robo-android | Apache License 2.0 |
app/src/main/java/com/example/athenas/common/base/BaseView.kt | AraujoJs | 754,860,553 | false | {"Kotlin": 15491} | package com.example.athenas.common.base
interface BaseView<T> {
var presenter: T
} | 0 | Kotlin | 0 | 0 | 92be949b0718b9816582df72f7628dcd95ec15cb | 87 | AthenasApp | MIT License |
app/src/main/java/com/chentian/xiangkan/utils/HtmlHelper.kt | ChenTianSaber | 299,164,469 | false | {"Kotlin": 55185} | package com.chentian.xiangkan.utils
import java.util.regex.Matcher
import java.util.regex.Pattern
object HtmlHelper {
fun removeImgIfHasIframe(description: String):String{
// 先判断有没有iframe标签,有的话就去掉里面的img标签
var result:String = description
val iframeCompile = Pattern.compile("<iframe.*?>")
... | 0 | Kotlin | 0 | 1 | 28dabcb12c1a7c6389bb73df5577b78eeafc60c4 | 6,706 | xiangkan | Apache License 2.0 |
app/src/main/kotlin/com/rayfatasy/v2ray/ui/MainRecyclerAdapter.kt | peng1994 | 66,040,043 | true | {"Kotlin": 39001, "Java": 4140} | package com.rayfatasy.v2ray.ui
import android.graphics.Color
import android.support.v7.app.AppCompatActivity
import android.support.v7.view.ActionMode
import android.support.v7.widget.RecyclerView
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import com.ra... | 0 | Kotlin | 0 | 0 | b89c8a0d4b0e515e70c50a7c1cd62e7ead1e32a5 | 4,677 | V2Ray-Android | Apache License 2.0 |
app/src/main/java/com/zxhhyj/music/logic/bean/WebDavFile.kt | ZXHHYJ | 675,785,532 | false | {"Kotlin": 460927} | package com.zxhhyj.music.logic.bean
import android.os.Parcelable
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize
@Parcelize
@JsonClass(generateAdapter = true)
data class WebDavFile(
val path: String,
val name: String,
val downloadPath: String,
val eTag: String,
val contentLe... | 0 | Kotlin | 1 | 15 | 3ba77513dfff78473624e953bfeacda34d26b7e4 | 345 | StarMusic | Apache License 2.0 |
core/src/main/kotlin/ch/ergon/dope/resolvable/expression/unaliased/type/relational/EqualsExpression.kt | ergon | 745,483,606 | false | {"Kotlin": 369189} | package ch.ergon.dope.resolvable.expression.unaliased.type.relational
import ch.ergon.dope.DopeQuery
import ch.ergon.dope.resolvable.expression.TypeExpression
import ch.ergon.dope.resolvable.expression.unaliased.type.toBooleanType
import ch.ergon.dope.resolvable.expression.unaliased.type.toNumberType
import ch.ergon.d... | 2 | Kotlin | 0 | 4 | 9b6732fcb01273e44079eccce2bbfca6f965cf35 | 2,083 | dope-query-builder | MIT License |
web/internal-web-core-runtime/src/jsTest/kotlin/RenderComposableTests.kt | JetBrains | 293,498,508 | false | null | import kotlinx.browser.document
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.promise
import org.jetbrains.compose.web.renderComposable
import kotlin.test.Test
import kotlin.test.assertEquals
/*
* Copyright 2020-2022 JetBrains s.r.o. and respective authors and developer... | 668 | Kotlin | 645 | 9,090 | 97266a0ac8c0d7a8ad8d19ead1c925751a00ff1c | 688 | compose-jb | Apache License 2.0 |
src/main/java/vlfsoft/solid/i/bad/AndroidComponent.kt | vlipovetskii | 109,602,269 | false | null | package vlfsoft.solid.i.bad
import vlfsoft.principles.moduleclass.InterfaceSegregationPrinciple
@InterfaceSegregationPrinciple(false)
class AndroidComponent : Component {
override fun mouseover(event: String) {
throw UnsupportedOperationException("mouse click not supported")
}
override fun tou... | 0 | Kotlin | 6 | 9 | 16f9942e330b69f48e175460674802430d4f56d2 | 544 | solid-principles-kotlin | Apache License 2.0 |
app/src/main/java/com/badger/familyorgfe/features/authjourney/welcome/WelcomeViewModel.kt | Artem-Yakovlev | 435,967,282 | false | {"Kotlin": 264356} | package com.badger.familyorgfe.features.authjourney.welcome
import com.badger.familyorgfe.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class WelcomeViewModel @Inject constructor() : BaseViewModel() {
override fun clearData() {
}
} | 0 | Kotlin | 0 | 1 | 3aa4ff1bd05efb2c9d16fd0fae0e907674817c5c | 310 | FamilyOrganizerAndroid | MIT License |
webrtc/src/main/java/com/bandwidth/webrtc/signaling/rpc/transit/AnswerSdpResult.kt | foresightmobile | 528,433,363 | false | {"Kotlin": 56541, "Java": 9478} | package com.bandwidth.webrtc.signaling.rpc.transit
class AnswerSdpResult | 0 | Kotlin | 1 | 0 | 93406c1fe65f79bc90582342ac16badfb3bd3baa | 73 | bandwidth-android | MIT License |
app/src/main/java/com/ishanknijhawan/notefy/ui/fingerPrintActivity.kt | ishanknijhawan | 234,721,025 | false | {"Kotlin": 125265} | package com.ishanknijhawan.notefy.ui
import android.Manifest
import android.annotation.TargetApi
import android.app.KeyguardManager
import android.content.Context
import android.content.pm.PackageManager
import android.graphics.Color
import android.hardware.fingerprint.FingerprintManager
import android.os.Build
import... | 0 | Kotlin | 2 | 5 | 0e3b4eea9ae0ea83b5b9a5658475a94c937acee6 | 5,662 | NoteFy | Apache License 2.0 |
app/src/main/java/com/example/android/trackmysleepquality/sleeptracker/SleepNightAdapter.kt | Rdy2code | 278,964,497 | false | null | package com.example.android.trackmysleepquality.sleeptracker
import android.graphics.Color
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.example.android.trackmysleepquality.R
import com.example.a... | 0 | Kotlin | 0 | 0 | 059961a8af9a1532312250eed8d0b17bcff7811a | 2,535 | RecyclerViewDemo | Apache License 2.0 |
tool-bar-view/src/main/java/com/github/ferum_bot/tool_bar_view/core/extensions/FloatExtensions.kt | Ferum-bot | 337,029,384 | false | null | package com.github.ferum_bot.tool_bar_view.core.extensions
/**
* Created by <NAME>.
* Date: 22.02.2021
* Time: 21:07
* Project: BookReuse
*/
/**
* This function is necessary because
* stroke line in dp is too big
*/
internal fun Float.refactorToBookReuseWidth() =
this / 5.0f | 0 | Kotlin | 0 | 0 | cd3344d5f4d971595f99eb519ed3859df0325f6a | 288 | BookReuse | Apache License 2.0 |
src/main/kotlin/site/vie10/radio/RadioPluginImpl.kt | viktorhrekh | 462,706,415 | false | {"Kotlin": 98586} | package site.vie10.radio
import kotlinx.coroutines.*
import org.koin.core.component.inject
import org.koin.core.qualifier.named
import site.vie10.radio.commands.*
import site.vie10.radio.config.ConfigInfo
import site.vie10.radio.config.ConfigLoader
import site.vie10.radio.config.ConfigWriter
import site.vie10.radio.co... | 3 | Kotlin | 0 | 3 | 09da47703a6d4b36e02673c857fff19603203269 | 7,277 | radio | MIT License |
app/src/main/java/com/example/dropy/ui/screens/waterSelectDate/WaterSelectDateContent.kt | dropyProd | 705,360,878 | false | {"Kotlin": 3916897, "Java": 20617} | package com.example.dropy.ui.screens.waterSelectDate
import android.os.Build
import android.view.LayoutInflater
import android.widget.CalendarView
import android.widget.CalendarView.OnDateChangeListener
import android.widget.Toast
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import ... | 0 | Kotlin | 0 | 0 | 6d994c9c61207bac28c49717b6c250656fe4ae6b | 12,885 | DropyLateNights | Apache License 2.0 |
xenoglot-atlas-extended/src/commonMain/kotlin/dev/teogor/xenoglot/atlas/extended/LanguageToCountryMappings_my.kt | teogor | 718,087,802 | false | {"Kotlin": 1614676} | /*
* Copyright 2024 teogor (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 0 | 6 | 48dddb213920f7cc1d19d2ea34a61948a633dc38 | 15,060 | xenoglot | Apache License 2.0 |
order/src/main/kotlin/li/doerf/microstore/order/listeners/OrdersListener.kt | doerfli | 173,194,763 | false | null | package li.doerf.microstore.order.listeners
import li.doerf.microstore.TOPIC_ORDERS
import li.doerf.microstore.dto.kafka.*
import li.doerf.microstore.listeners.ReplayingRecordsListener
import li.doerf.microstore.order.entities.OrderStatus
import li.doerf.microstore.order.services.OrderService
import li.doerf.microstor... | 0 | Kotlin | 0 | 0 | ef6d3b228ad3665631322252cf07fcc1bab17269 | 2,926 | microstore | MIT License |
src/main/kotlin/Atom.kt | jcellomarcano | 348,968,800 | false | null | data class Atom(
var name: String ,
var representation: String,
var alignment: String
) {
override fun toString(): String {
return "Atom(name='$name')"
}
} | 0 | Kotlin | 0 | 0 | 3268a2e41c6bfc07b96f309d248ec7f0ba59194c | 193 | data-type-manager | MIT License |
bugsnag-android-performance/src/test/java/com/bugsnag/android/performance/internal/RetryQueueTest.kt | bugsnag | 539,491,063 | false | {"Kotlin": 449081, "Gherkin": 39854, "Ruby": 6082, "Shell": 2095, "Java": 1362, "Makefile": 617} | package com.bugsnag.android.performance.internal
import android.os.SystemClock
import com.bugsnag.android.performance.test.withStaticMock
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import java.io.File
class RetryQueueTest {
private lateinit var dir: F... | 4 | Kotlin | 1 | 4 | 6ea616b4cbbf0e026dc92775d65c975a5db69b57 | 1,800 | bugsnag-android-performance | MIT License |
executor/memory/src/commonMain/kotlin/io/github/charlietap/chasm/executor/memory/read/MemoryInstanceLongReader.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 2038087, "WebAssembly": 45714} | package io.github.charlietap.chasm.executor.memory.read
import com.github.michaelbull.result.Result
import io.github.charlietap.chasm.executor.runtime.error.InvocationError
import io.github.charlietap.chasm.executor.runtime.instance.MemoryInstance
typealias MemoryInstanceBytesReader = (MemoryInstance, Int, Int) -> Re... | 5 | Kotlin | 3 | 67 | dd6fa51262510ecc5ee5b03866b3fa5d1384433b | 380 | chasm | Apache License 2.0 |
app/src/main/java/com/muedsa/tvbox/model/dandanplay/BangumiEpisode.kt | muedsa | 872,828,287 | false | {"Kotlin": 264631} | package com.muedsa.tvbox.demoplugin.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class BangumiEpisode(
@SerialName("episodeId") val episodeId: Long,
@SerialName("episodeTitle") val episodeTitle: String,
@SerialName("episodeNumber") val episodeN... | 0 | Kotlin | 0 | 0 | b7add9c5b98a943eb504428e71ee08fc961a54fd | 456 | TvBoxDemoPlugin | MIT License |
Sample/components/src/main/java/com/steamclock/components/components/StatefulView.kt | steamclock | 439,159,037 | false | null | package com.steamclock.components.components
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.steamclock.components.helper.ContentLoadState
import com.steamclock.components.theme.Confi... | 0 | null | 0 | 1 | 7958b122b0bbfd1b2c07676d43f5a1b44d79f26f | 3,723 | compose_components | MIT License |
android/src/main/java/com/chrynan/chat/feature/conversation/viewmodel/AttachmentGalleryItemViewModel.kt | chRyNaN | 206,982,352 | false | null | package com.chrynan.chat.feature.conversation.viewmodel
import com.chrynan.aaaah.asUniqueAdapterId
import com.chrynan.chat.adapter.AdapterItem
import com.chrynan.chat.model.core.UriString
data class AttachmentGalleryItemViewModel(
val uri: UriString,
val videoLengthLabel: String? = null
) : AdapterItem {
... | 0 | Kotlin | 0 | 3 | 8269e4bcecad6ba4ef10e211ca4cb52e1cdff4b8 | 377 | Chat | Apache License 2.0 |
src/main/kotlin/info/benjaminhill/stats/pso/PSOSwarm.kt | salamanders | 180,874,402 | false | null | package info.benjaminhill.stats.pso
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import mu.KotlinLogging
/**
* Represents a swarm of particles from the Particle PSOSwarm Optimization algorithm.
* @param function... | 1 | Kotlin | 0 | 0 | b9a1e25fead08db436c881c831d04ccdf127752e | 3,361 | ev3basicbot | MIT License |
app/src/main/java/com/dvt/weather/interview/presentation/theme/Color.kt | Ryggs | 815,102,045 | false | {"Kotlin": 216639, "Ruby": 2550} | package com.dvt.weather.interview.presentation.theme
import androidx.compose.ui.graphics.Color
val Rainy = Color(0xFF54717A)
val cloudy = Color(0xFF54717A)
val sunny = Color(0xFF47AB2F)
val Rainy40 = Color(0xFF54717A)
val cloudy40 = Color(0xFF54717A)
val sunny40 = Color(0xFF47AB2F)
val background1 = Color(0xFF57575... | 23 | Kotlin | 0 | 1 | fbaa548efe3d25b8d54a74e2bf70086d82a59809 | 322 | Weather-Compose | Apache License 2.0 |
project/common-core/src/main/kotlin/ink/ptms/artifex/kotlin/ScriptCompiledConfiguration.kt | TabooLib | 492,563,163 | false | {"Kotlin": 246610, "Java": 3390} | package ink.ptms.artifex.kotlin
import java.io.File
import kotlin.script.experimental.api.ScriptCompilationConfiguration
/**
* Artifex
* ink.ptms.artifex.kotlin.ScriptCompiledConfiguration
*
* @author 坏黑
* @since 2022/5/20 18:02
*/
class ScriptCompiledConfiguration(val importScript: List<File>, configuration: S... | 1 | Kotlin | 7 | 24 | eeb2e09552ad1d7bc67f82d56191be8693b329af | 584 | artifex | Creative Commons Zero v1.0 Universal |
app/src/test/java/com/persival/realestatemanagerkotlin/domain/point_of_interest/UpdatePointOfInterestUseCaseTest.kt | persival001 | 664,734,716 | false | {"Kotlin": 232455, "HTML": 54594} | package com.persival.realestatemanagerkotlin.domain.point_of_interest
import org.junit.Assert.*
class UpdatePointOfInterestUseCaseTest | 0 | Kotlin | 0 | 1 | 7370ba765c0a8eb42657e3ff637318a33e04c62e | 136 | RealEstateManagerKotlin | MIT License |
composeApp/src/androidMain/kotlin/com/jpmobilelab/kmp/newsapp/MainActivity.kt | giorgioprovenzale | 777,467,623 | false | {"Kotlin": 71793, "Swift": 1406} | @file:OptIn(ExperimentalDecomposeApi::class)
package com.jpmobilelab.kmp.newsapp
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androi... | 0 | Kotlin | 0 | 3 | 579176eb83db49cffe7931bbaa63aef8a8aacf2d | 2,891 | KmpNewsApp | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.