path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/example/swiftbargain/ui/composable/ContentLoading.kt | ahmedfikry24 | 814,676,783 | false | {"Kotlin": 480967} | package com.example.swiftbargain.ui.composable
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import... | 0 | Kotlin | 0 | 0 | c83e040911380b9f75e35007fff4d04433da7e1e | 1,497 | SwiftBargain | MIT License |
src/main/kotlin/cn/lkgc/jjl/framework/utils/PageResultUtils.kt | mirrorb | 862,651,819 | false | {"Kotlin": 144419, "Java": 24940, "Batchfile": 123} | package cn.lkgc.jjl.framework.utils
import cn.lkgc.jjl.framework.pojo.PageResult
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
object PageResultUtils {
fun <T> empty(): PageResult<T> {
return PageResult(emptyList(), 0L)
}
fun <T> empty(total: Long): PageResult<T> {
ret... | 0 | Kotlin | 0 | 1 | 8b2d574c2cfb97a01e6f9868ab80c77f444d7924 | 470 | jjl-housekeeping | Apache License 2.0 |
plugins-dev/src/main/java/org/runestar/client/plugins/dev/PrayerDebug.kt | forsco | 246,016,204 | true | {"Kotlin": 1368739, "Java": 984619} | package org.runestar.client.plugins.dev
import org.runestar.client.api.util.DisposablePlugin
import org.runestar.client.api.Fonts
import org.runestar.client.game.api.Prayer
import org.runestar.client.game.api.live.LiveCanvas
import org.runestar.client.game.api.live.Prayers
import org.runestar.client.plugins.spi.Plugin... | 0 | Kotlin | 0 | 0 | b15c07570af82377bcd2be48b00a5e9708be08ab | 938 | client | MIT License |
domain-access/src/main/java/pl/kamilszustak/read/domain/access/usecase/user/GetUserUseCase.kt | swistak7171 | 289,985,013 | false | null | package pl.kamilszustak.read.domain.access.usecase.user
import pl.kamilszustak.read.domain.access.usecase.UseCase
import pl.kamilszustak.read.model.domain.user.User
interface GetUserUseCase : UseCase<User> | 2 | Kotlin | 0 | 1 | 70d7be58042410bdb969035413b726126426e3d3 | 207 | read | Apache License 2.0 |
net/src/main/java/com/tans/tfiletransporter/transferproto/p2pconn/P2pConnectionState.kt | Tans5 | 329,625,887 | false | {"Kotlin": 485795, "Java": 29868} | package com.tans.tfiletransporter.transferproto.p2pconn
import java.net.InetSocketAddress
sealed class P2pConnectionState {
object NoConnection : P2pConnectionState()
object Requesting : P2pConnectionState()
class Active(
val localAddress: InetSocketAddress?,
val remoteAddress: InetSock... | 0 | Kotlin | 14 | 78 | 1734b4c556f425fabc0df6c69292366df37073b6 | 545 | tFileTransporter | Apache License 2.0 |
src/main/kotlin/io/github/clivelewis/assistant/tts/TtsService.kt | clivelewis | 781,393,282 | false | {"Kotlin": 78719} | package io.github.clivelewis.assistant.tts
interface TtsService {
fun generateTts(text: String): ByteArray?
} | 0 | Kotlin | 0 | 0 | 26eb6405e781f51531099e5c6f5728c5459483c4 | 115 | sam | Apache License 2.0 |
app/src/main/java/com/smparkworld/hiltbinderexample/sample/intomap/hiltdefault/stringkey/MapStringKeySampleModelImpl3.kt | Park-SM | 502,595,266 | false | null | package com.smparkworld.hiltbinderexample.sample.intomap.hiltdefault.stringkey
import android.util.Log
import com.smparkworld.hiltbinder.HiltMapBinds
import dagger.multibindings.StringKey
import javax.inject.Inject
@HiltMapBinds
@StringKey("model3")
class MapStringKeySampleModelImpl3 @Inject constructor(
private ... | 0 | Kotlin | 0 | 5 | cdb20e8bf340384c1a5ec6917d86d5cde74dc49b | 512 | HiltBinder | Apache License 2.0 |
app/src/main/java/br/com/joaovq/mydailypet/MainActivity.kt | joaovq | 650,739,082 | false | {"Kotlin": 326547, "Ruby": 1076} | package br.com.joaovq.mydailypet
import android.os.Bundle
import android.widget.Toast
import androidx.activity.result.ActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.Spl... | 1 | Kotlin | 0 | 0 | ce80c4b481c996fc02c0f22689954edf8154d588 | 4,558 | MyDailyPet | MIT License |
Kotlin/lib/src/main/java/com/wolt/blurhashkt/BlurHashDecoder.kt | Darking360 | 196,459,756 | true | {"C": 255658, "Swift": 39551, "CSS": 24715, "TypeScript": 10682, "JavaScript": 8081, "HTML": 7883, "Shell": 6452, "Kotlin": 6028, "Java": 1094, "Makefile": 156} | package com.wolt.blurhashkt
import android.graphics.Bitmap
import android.graphics.Color
import kotlin.math.*
/**
* Created by mike on 31/07/2017.
*/
object BlurHashDecoder {
val MAX_SIZE = 20
private val digitCharacters = arrayOf(
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B'... | 0 | C | 0 | 1 | 9ea6105a0a9e06f46919708fce6075a6d9dbb93d | 4,004 | blurhash | The Unlicense |
app/src/main/java/com/naufalprakoso/superheroapp/ui/detail/HeroDetailTabsAdapter.kt | naufalprakoso | 264,489,858 | false | null | package com.naufalprakoso.superheroapp.ui.detail
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.naufalprakoso.superheroapp.database.relation.Superhero
import com.naufalprakoso.superheroapp.ui.detail.appearance.Appea... | 1 | Kotlin | 1 | 27 | c4eff01819529d1091dcfc2334346d1c419f3d79 | 1,280 | Superhero-App | MIT License |
console/src/main/kotlin/com/caoccao/javet/shell/modules/javet/BaseJavetPackage.kt | caoccao | 421,317,146 | false | {"Kotlin": 48362, "Java": 12593, "Dockerfile": 1769} | /*
* Copyright (c) 2023-2024. caoccao.com <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 ... | 0 | Kotlin | 0 | 2 | 7322d90b251f3fcc66ee60b25a5fda3c4dd90684 | 4,239 | JavetShell | Apache License 2.0 |
apps/etterlatte-oppdater-behandling/src/main/kotlin/migrering/AvbrytBehandlingHvisMigreringFeila.kt | navikt | 417,041,535 | false | {"Kotlin": 3977041, "TypeScript": 855520, "Handlebars": 19431, "Shell": 9939, "HTML": 1776, "CSS": 598, "Dockerfile": 520} | package no.nav.etterlatte.migrering
import no.nav.etterlatte.BehandlingService
import no.nav.etterlatte.libs.common.rapidsandrivers.correlationId
import no.nav.etterlatte.libs.common.rapidsandrivers.eventName
import no.nav.etterlatte.rapidsandrivers.migrering.Migreringshendelser
import no.nav.helse.rapids_rivers.JsonM... | 13 | Kotlin | 0 | 5 | d0b42ff1df660904897d6869868f440747ce74d5 | 1,578 | pensjon-etterlatte-saksbehandling | MIT License |
test_runner/src/main/kotlin/ftl/ios/Parse.kt | miguelslemos | 146,530,624 | false | null | package ftl.ios
import ftl.util.Bash
import java.io.File
object Parse {
private fun validateFile(path: String) {
val file = File(path)
if (!file.exists()) {
throw RuntimeException("File $path does not exist!")
}
if (file.isDirectory) throw RuntimeException("$path is a... | 1 | null | 1 | 1 | 2fc5c82244fedf9260ba2b5c38c859286390552a | 2,948 | flank | MIT License |
utbot-python/src/main/kotlin/org/utbot/python/fuzzing/provider/TupleValueProvider.kt | UnitTestBot | 480,810,501 | false | null | package org.utbot.python.fuzzing.provider
import org.utbot.fuzzing.Routine
import org.utbot.fuzzing.Seed
import org.utbot.fuzzing.ValueProvider
import org.utbot.python.framework.api.python.PythonTree
import org.utbot.python.framework.api.python.util.pythonTupleClassId
import org.utbot.python.fuzzing.PythonFuzzedValue
... | 397 | Kotlin | 32 | 91 | f9c95348acb59c1b4fc212ecb36e6b2968e9ac5a | 1,847 | UTBotJava | Apache License 2.0 |
runtime/src/test/java/com/instana/android/instrumentation/HTTPMarkerShould.kt | instana | 81,942,955 | false | null | /*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2021
*/
package com.instana.android.instrumentation
import com.instana.android.BaseTest
import com.instana.android.Instana
import com.instana.android.core.InstanaConfig
import com.instana.android.core.InstanaWorkManager
import com.nhaa... | 1 | Kotlin | 4 | 19 | ec1133cc48c8da4b43658be2be7a31610c05308f | 3,130 | android-agent | MIT License |
compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/input/BasicTextFieldHandwritingTest.kt | androidx | 256,589,781 | false | {"Kotlin": 99565022, "Java": 63440543, "C++": 9126850, "AIDL": 592008, "Python": 308602, "Shell": 186862, "TypeScript": 40586, "HTML": 32277, "Groovy": 24103, "Svelte": 20307, "ANTLR": 19860, "CMake": 15482, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 25 | Kotlin | 905 | 4,995 | 824114c787e8be1b5a81e589f81827c9121c36e6 | 11,264 | androidx | Apache License 2.0 |
libraries/tools/binary-compatibility-validator/src/test/kotlin/cases/nestedClasses/publicInterface.kt | JakeWharton | 99,388,807 | false | null | package cases.nestedClasses
public interface PublicInterface {
public object ObjPublic
private object ObjPrivate
public class NestedPublic
private class NestedPrivate
public interface NestedPublicInterface
private interface NestedPrivateInterface
}
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 278 | kotlin | Apache License 2.0 |
app/src/main/java/dgca/verifier/app/android/verification/model/RuleValidationResultCard.kt | eu-digital-green-certificates | 355,126,967 | false | null | /*
* ---license-start
* eu-digital-green-certificates / dgca-wallet-app-android
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* ... | 4 | Kotlin | 19 | 99 | 540abc57dcd0dc94c127053bdd73706984ba741d | 1,086 | dgca-verifier-app-android | Apache License 2.0 |
app/src/main/java/com/wavesplatform/wallet/v2/ui/widget/MarketPulseAppWidgetProvider.kt | wavesplatform | 98,419,999 | false | null | /*
* Created by <NAME> on 18/7/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.ui.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.cont... | 2 | null | 52 | 55 | 5f4106576dc4fe377a355d045f638e7469cd6abe | 12,507 | WavesWallet-android | MIT License |
core-db/src/main/java/io/novafoundation/nova/core_db/model/BrowserHostSettingsLocal.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.core_db.model
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import io.novafoundation.nova.common.utils.Identifiable
@Entity(tableName = "browser_host_settings")
data class BrowserHostSettingsLocal(
@PrimaryKey
val hostUrl: String,
va... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 431 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/example/newsapp/network/NewsApiService.kt | cikalmaulana | 647,096,125 | false | null | package com.example.newsapp.network
import com.example.newsapp.NewsItem
import com.example.newsapp.NewsResponse
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
interface NewsApiService {
// https://newsapi.org/v2/everything?q=keyword&apiKey=f84d5717585f4b6a9a4ba3acab6d1ce5
@GET... | 0 | Kotlin | 0 | 0 | 178be027d316de732e58d5c6b0e095f7809e17cf | 739 | NewsApp | MIT License |
app/src/main/java/com/whitelotusapps/chime/adapter/FileBrowserAdapter.kt | Aky97567 | 137,248,264 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 2, "Proguard": 1, "Java": 2, "XML": 14, "Kotlin": 15} | package com.whitelotusapps.chime.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import android.widget.TextView
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx.re... | 0 | Kotlin | 0 | 0 | 848725fccaa2cce2478f3aa1696f1262a011df8a | 5,597 | Chime | Apache License 2.0 |
app/src/main/java/com/odhiambopaul/movie/data/response/NowPlayingResponse.kt | paulodhiambo | 259,288,146 | false | null | package com.odhiambopaul.movie.data.response
import com.odhiambopaul.movie.data.entity.Dates
import com.odhiambopaul.movie.data.entity.Movie
data class NowPlayingResponse(
val dates: Dates,
val page: Int, // 1
val results: List<Movie>,
val total_pages: Int, // 44
val total_results: Int // 861
) | 1 | Kotlin | 3 | 4 | 006a2bbe5fd1e128ca34c660d41fbab63b826013 | 317 | MovieApp | The Unlicense |
plugins/kotlin/idea/tests/testData/intentions/branched/elvisToIfThen/safeCastUnstable.kt | ingokegel | 72,937,917 | true | null | // AFTER-WARNING: Variable 'y' is never used
class My(var z: Any, val x: Int) {
fun foo() {
val y = (z as? My)?.x <caret>?: 42
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 146 | intellij-community | Apache License 2.0 |
frontend/web/src/main/kotlin/com/jakewharton/sdksearch/ui/Index.kt | JakeWharton | 114,199,331 | false | null | package com.jakewharton.sdksearch.ui
import com.jakewharton.sdksearch.api.dac.FetchDocumentationService
import com.jakewharton.sdksearch.search.presenter.SearchPresenter
import com.jakewharton.sdksearch.search.presenter.SearchPresenter.Event
import com.jakewharton.sdksearch.store.item.Item
import com.jakewharton.sdkse... | 38 | Kotlin | 187 | 2,044 | 33e4b60af539aef108d1d3193f99ae151ce14733 | 3,409 | SdkSearch | Apache License 2.0 |
libp2p/src/main/kotlin/io/libp2p/pubsub/PubsubCrypto.kt | libp2p | 189,293,403 | false | null | package io.libp2p.pubsub
import io.libp2p.core.crypto.PrivKey
import io.libp2p.core.crypto.marshalPublicKey
import io.libp2p.core.crypto.unmarshalPublicKey
import io.libp2p.etc.types.toProtobuf
import pubsub.pb.Rpc
val SignPrefix = "libp2p-pubsub:".toByteArray()
fun pubsubSign(msg: Rpc.Message, key: PrivKey): Rpc.Me... | 33 | null | 76 | 272 | 1cde874089d45f90e2f6ca20f39a77b69cd7e66e | 1,008 | jvm-libp2p | Apache License 2.0 |
src/jvmMain/kotlin/view/View.kt | Belgrak | 498,621,205 | false | {"Kotlin": 14101} | package view
import Screen
import ViewModel
import androidx.compose.runtime.Composable
@Composable
fun View(viewModel: ViewModel) {
when (viewModel.state.screen) {
Screen.MainView -> MainView(viewModel::singlePlayMode, viewModel::multiplayerLocalMode)
Screen.GameView -> GameView(viewModel::backToM... | 0 | Kotlin | 1 | 0 | 24f75103b6f75103de1574e9a8b23e7366e6a73f | 359 | TicTacToe | MIT License |
src/test/kotlin/com/pkulak/memo/storage/BlockStorageTest.kt | pkulak | 375,744,026 | false | null | package com.pkulak.memo.storage
import com.pkulak.memo.ACCOUNT
import com.pkulak.memo.BLOCK_ID
import com.pkulak.memo.init
import com.pkulak.memo.initDb
import com.pkulak.memo.inject
import io.kotest.matchers.shouldBe
import io.ktor.application.Application
import io.ktor.server.testing.withTestApplication
import org.j... | 0 | Kotlin | 0 | 2 | aa7a8b4bebde4553e45a61b3981aae74f8606fa7 | 897 | nanomemo | MIT License |
explosion-gradle-plugin/src/main/kotlin/lol/bai/explosion/gradle/internal/Explosion.kt | badasintended | 697,683,788 | false | {"Kotlin": 23609} | package lol.bai.explosion.gradle.internal
import lol.bai.explosion.gradle.ExplosionExt
import lol.bai.explosion.gradle.ExplosionPlatformConfig
import org.gradle.api.Project
import java.nio.file.Path
open class Explosion(project: Project, outputDir: Path) : ExplosionExt {
override val fabric = Platform(project, ... | 1 | Kotlin | 0 | 2 | 97909605dcbb4856951c3b72f087bc4ab22dfdf7 | 493 | explosion | MIT License |
app/src/main/java/com/example/inventory/DateTypeConverter.kt | YapChenLeong | 635,729,977 | false | null | package com.example.inventory
import androidx.room.TypeConverter
import java.text.SimpleDateFormat
import java.util.*
class DateTypeConverter {
/**
* Suppose you need to persist instances of Date in your Room database.
* Room doesn't know how to persist Date objects, so you need to define type converter... | 0 | Kotlin | 0 | 1 | 6aa3c692b56badfcd43e8cf70f7efcd7e1bb70bc | 1,124 | Inventoray-App | Apache License 2.0 |
app/src/main/java/uk/co/richyhbm/monochromatic/Utilities/Permissions.kt | Vistaus | 173,779,457 | true | {"Kotlin": 66370} | package uk.co.richyhbm.monochromatic.Utilities
import android.app.AppOpsManager
import android.content.Context
import android.content.pm.PackageManager
import uk.co.richyhbm.monochromatic.R
object Permissions {
fun hasSecureSettingsPermission(context: Context): Boolean {
return context.checkCallingOrSelf... | 0 | Kotlin | 0 | 0 | 1d423c72a7e3115235bfdf7008746bf4804b909d | 1,027 | Monochromatic | Apache License 2.0 |
src/222/main/kotlin/org/rust/lang/core/psi/ext/IntentionPreview.kt | t-kameyama | 117,343,211 | true | {"Kotlin": 9922160, "Rust": 158709, "Python": 103835, "HTML": 21219, "Lex": 12335, "ANTLR": 3096, "Java": 688, "Shell": 377, "RenderScript": 120} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.psi.ext
import com.intellij.psi.PsiElement
val PsiElement.isIntentionPreviewElement: Boolean get() = false
| 10 | Kotlin | 0 | 0 | 33a679cf18314c93dce5b85595a39dd108edeaf7 | 244 | intellij-rust | MIT License |
src/main/kotlin/scheduler/ScheduleMessage.kt | Vikl5 | 826,286,748 | false | null | package org.vikl5.scheduler
import com.slack.api.methods.SlackApiException
import org.slf4j.LoggerFactory
import org.vikl5.config.DateTimeToUnixConverter
import org.vikl5.config.SlackConnectionInfo
import org.vikl5.util.UserScore
import java.io.IOException
class ScheduleMessage {
private val slackConnectionInfo ... | 0 | null | 0 | 2 | d1c5e0ee0f6594d21aad3191e98c0d26d6ebec40 | 1,933 | WhenTakenSlackBot | MIT License |
src/android/libs/mobile_sdk/libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/auth/idp/IDPSPManagerTestCase.kt | forcedotcom | 23,411,868 | false | null | package com.salesforce.androidsdk.auth.idp
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.test.platform.app.InstrumentationRegistry
import com.salesforce.androidsdk.accounts.UserAccount
import com.salesforce.androidsdk.util.LogUtil
import o... | 1 | null | 114 | 48 | 9eb11893bf43ca3ba6da736739a61b9c1a45da2e | 3,667 | SalesforceMobileSDK-CordovaPlugin | Apache License 2.0 |
knowledgebase-gui/src/main/java/ru/usedesk/knowledgebase_gui/screen/IUsedeskOnSupportClickListener.kt | usedesk | 127,645,126 | false | {"Kotlin": 713304} |
package ru.usedesk.knowledgebase_gui.screen
interface IUsedeskOnSupportClickListener {
fun onSupportClick()
} | 0 | Kotlin | 6 | 3 | 06ddd407029a9fc7002642bcf67a7269cf0b8353 | 115 | Android_SDK | MIT License |
app/src/main/java/com/example/vehiclecontacting/Activity/MainActivity.kt | Bngel | 366,048,859 | false | null | package com.example.vehiclecontacting.Activity
import android.os.Bundle
import android.widget.ImageView
import androidx.viewpager2.widget.ViewPager2
import com.example.vehiclecontacting.Adapter.MainViewPagerFragmentStateAdapter
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.android.synthetic.main... | 0 | Kotlin | 0 | 0 | 759ffa90c487d4472a79e20bf51ca35454cc7e65 | 4,908 | VehicleContacting | Apache License 2.0 |
src/test/kotlin/g1701_1800/s1786_number_of_restricted_paths_from_first_to_last_node/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4870729, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g1701_1800.s1786_number_of_restricted_paths_from_first_to_last_node
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun countRestrictedPaths() {
assertThat(
Solution()
... | 0 | Kotlin | 20 | 43 | e8b08d4a512f037e40e358b078c0a091e691d88f | 1,204 | LeetCode-in-Kotlin | MIT License |
app/src/test/java/com/example/project2mygrocery/dataentry.kt | smartinternz02 | 514,138,962 | false | {"Kotlin": 11972} | package com.example.project2mygrocery
private val item = listOf("tomatoes","apple")
object dataentry {
fun validate(
itemName: String,
itemQuantity : Int,
itemPrice : Double
):Boolean{
return true
}
} | 0 | Kotlin | 1 | 0 | 2be2c4617895eee3638be4400ec3f4f7e56099ab | 246 | SPSGP-88032-Virtual-Internship---Android-Application-Development-Using-Kotlin | Apache License 2.0 |
kool-physics/src/jsMain/kotlin/de/fabmax/kool/physics/articulations/Articulation.js.kt | kool-engine | 81,503,047 | false | null | package de.fabmax.kool.physics.articulations
import de.fabmax.kool.math.PoseF
import de.fabmax.kool.physics.MemoryStack
import de.fabmax.kool.physics.PhysicsImpl
import de.fabmax.kool.physics.SupportFunctions
import de.fabmax.kool.physics.toPxTransform
import physx.PxArticulationFlagEnum
import physx.PxArticulationLin... | 9 | null | 20 | 303 | 8d05acd3e72ff2fc115d0939bf021a5f421469a5 | 2,173 | kool | Apache License 2.0 |
nativeprojects/drill-kni/src/kjniMain/kotlin/com/epam/kjni/core/util/CallJavaShortMethod.kt | disfogeN | 174,986,456 | true | {"Kotlin": 822313, "HTML": 17724, "CSS": 8583, "Shell": 532} | package com.epam.kjni.core.util
import com.epam.kjni.core.GlobState
import jvmapi.jchar
import jvmapi.jclass
import jvmapi.jdouble
import jvmapi.jint
import jvmapi.jobject
import jvmapi.jshort
import kotlinx.cinterop.ByteVar
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.free
import kotlinx.cinterop.invoke
i... | 0 | Kotlin | 0 | 0 | c2a6002caab163d1fdb836dd77e4a8966c5d9ce2 | 930 | Drill4J | Apache License 2.0 |
dd-sdk-android/src/main/kotlin/com/datadog/android/core/internal/thread/LoggingThreadPoolExecutor.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.core.internal.thread
import com.datadog.... | 55 | null | 53 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 1,128 | dd-sdk-android | Apache License 2.0 |
app/src/main/java/com/codrutursache/casey/data/remote/service/SpoonacularService.kt | ursachecodrut | 739,025,706 | false | {"Kotlin": 173858} | package com.codrutursache.casey.data.data_source
import com.codrutursache.casey.data.response.RandomFoodTriviaResponse
import com.codrutursache.casey.data.response.RecipeInformationResponse
import com.codrutursache.casey.data.response.RecipeListResponse
import retrofit2.http.GET
import retrofit2.http.Path
import retro... | 0 | Kotlin | 0 | 1 | f47a35989af88b37f81f4d9705fff4d6ac61a5ef | 1,798 | casey | MIT License |
shared/src/main/java/xyz/klinker/messenger/shared/service/HeadlessSmsSendService.kt | zacharee | 295,825,167 | false | null | /*
* Copyright (C) 2020 <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 wr... | 1 | null | 7 | 4 | f957421823801b617194cd68e31ba31b96e6100b | 2,511 | pulse-sms-android | Apache License 2.0 |
node-kotlin/src/jsMain/kotlin/node/vm/SyntheticModuleOptions.kt | karakum-team | 393,199,102 | false | {"Kotlin": 7083457} | // Automatically generated - do not modify!
package node.vm
sealed external interface SyntheticModuleOptions {
/**
* String used in stack traces.
* @default 'vm:module(i)' where i is a context-specific ascending index.
*/
var identifier: String?
/**
* The contextified object as return... | 0 | Kotlin | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 435 | types-kotlin | Apache License 2.0 |
packages/datadog_flutter_plugin/android/src/main/kotlin/com/datadoghq/flutter/DatadogLogsPlugin.kt | DataDog | 436,020,465 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadoghq.flutter
import android.os.Handler
import androi... | 18 | null | 38 | 42 | a5657fe3aa7a944b2849de9f93be4936d5689833 | 15,367 | dd-sdk-flutter | Apache License 2.0 |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/session/pushers/DefaultPusherService.kt | saad100104006 | 212,864,777 | true | {"Kotlin": 3623105, "Java": 26427, "HTML": 22563, "Shell": 20524} | /*
* Copyright 2019 New Vector Ltd
*
* 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 i... | 2 | null | 0 | 2 | 588e5d6e63ecfee9d93ef3da5987b8deb59f412f | 4,299 | NovaChat | Apache License 2.0 |
rx_activity_result/src/main/kotlin/rx_activity_result3/OnResult.kt | vickyleu | 437,791,262 | true | {"Kotlin": 16485} | package rx_activity_result3
import android.content.Intent
import java.io.Serializable
interface OnResult : Serializable {
fun response(requestCode: Int, resultCode: Int, data: Intent?)
fun error(throwable: Throwable?)
} | 0 | Kotlin | 0 | 0 | 29d02371dfef744aa6ad15bffb2ca73e7261b3eb | 229 | RxActivityResult | Apache License 2.0 |
src/main/kotlin/no/nav/k9brukerdialogapi/oppslag/arbeidsgiver/Arbeidsgivere.kt | navikt | 460,765,798 | false | null | package no.nav.helse.arbeidsgiver
import java.time.LocalDate
data class ArbeidsgivereOppslagRespons (
val arbeidsgivere: Arbeidsgivere
)
data class Arbeidsgivere (
val organisasjoner: List<Organisasjon>,
val privateArbeidsgivere: List<PrivatArbeidsgiver>?
)
class Organisasjon (
val organisasjonsnumm... | 9 | Kotlin | 0 | 0 | f218e4420e5b39d209fe3d92148dbe3ffe095d48 | 497 | pleiepengesoknad-api | MIT License |
backend/data/src/test/kotlin/io/tolgee/unit/service/dataImport/processors/processors/xliff/Xliff12FileProcessorTest.kt | tolgee | 303,766,501 | false | null | package io.tolgee.unit.service.dataImport.processors.processors.xliff
import io.tolgee.dtos.dataImport.ImportFileDto
import io.tolgee.model.dataImport.Import
import io.tolgee.model.dataImport.ImportFile
import io.tolgee.model.dataImport.issues.issueTypes.FileIssueType
import io.tolgee.model.dataImport.issues.paramType... | 50 | null | 81 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 4,812 | tolgee-platform | Apache License 2.0 |
epoxy-processor/src/main/java/com/airbnb/epoxy/DataBindingModelInfo.kt | CPLASF1925 | 126,679,184 | true | {"Java Properties": 2, "YAML": 1, "Markdown": 5, "Gradle": 17, "Shell": 1, "Batchfile": 1, "Text": 1, "Ruby": 1, "Ignore List": 13, "XML": 66, "Proguard": 8, "Kotlin": 41, "INI": 6, "Java": 374, "JSON": 2} | package com.airbnb.epoxy
import com.airbnb.epoxy.ClassNames.*
import com.airbnb.epoxy.Utils.*
import com.squareup.javapoet.*
import javax.lang.model.element.*
import javax.lang.model.util.*
internal class DataBindingModelInfo(
private val typeUtils: Types,
private val elementUtils: Elements,
v... | 0 | Java | 0 | 1 | d1da6fbc5775c24927bde4e9ea3335234ce44e81 | 2,707 | epoxy | Apache License 2.0 |
DSL/com.larsreimann.safeds/src/main/kotlin/com/larsreimann/safeds/constant/SdsProtocolTokenClassValue.kt | lars-reimann | 499,036,565 | false | null | package com.larsreimann.safeds.constant
import com.larsreimann.safeds.safeDS.SdsProtocolTokenClass
import com.larsreimann.safeds.utils.ExperimentalSdsApi
/**
* The possible values for an [SdsProtocolTokenClass].
*/
@ExperimentalSdsApi
enum class SdsProtocolTokenClassValue(val value: String) {
/**
* Matche... | 47 | Kotlin | 0 | 9 | db8c0d1e33ff177b48fc0d118291628d29f7a865 | 995 | Safe-DS | MIT License |
ktoml-core/src/commonTest/kotlin/com/akuleshov7/ktoml/encoders/PrimitiveEncoderTest.kt | orchestr7 | 330,720,838 | false | null | package com.akuleshov7.ktoml.encoders
import com.akuleshov7.ktoml.annotations.TomlLiteral
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlin.test.Test
class PrimitiveEncoderTest {
@Serializable
enum class Greeting {
@SerialName("hello") Hello
}
@Te... | 36 | null | 23 | 450 | b22969a093d3a1f062d3b9840c9195c09951d8b2 | 2,580 | ktoml | MIT License |
file/src/commonMain/kotlin/cache/CacheFileConfig.kt | aSoft-Ltd | 521,105,120 | false | null | package keep
import koncurrent.Executor
import kotlinx.serialization.StringFormat
import kotlinx.serialization.json.Json
import okio.FileSystem
import okio.Path
import kotlin.jvm.JvmField
import kotlin.jvm.JvmName
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
interface CacheFileConfig : CacheConfig {
... | 0 | Kotlin | 0 | 2 | 45b36b1aaddfe70d0817ca33f1abc6466e3c8921 | 1,304 | cache | MIT License |
app/src/main/java/com/sfeatherstone/workmanagerexample/MainViewModel.kt | sfeatherstone | 253,478,599 | false | null | package com.sfeatherstone.workmanagerexample
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.work.WorkInfo
import androidx.work.WorkManager
import java.util.*
class MainVi... | 0 | Kotlin | 0 | 0 | 1c66e0e034f5436acbb7acbe2f09c3baa2125ee0 | 3,032 | example-WorkManager | Apache License 2.0 |
core/src/commonTest/kotlin/maryk/core/properties/types/GeoPointTest.kt | marykdb | 290,454,412 | false | {"Kotlin": 3293783, "JavaScript": 1004} | package maryk.core.properties.types
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
class GeoPointTest {
@Test
fun initTest() {
GeoPoint(56.2345, 140.233214)
GeoPoint(-23.532, -90.18231)
assertFailsWith<IllegalArgumentException> {
... | 1 | Kotlin | 1 | 8 | c3b4069317a3f7880ac33baef01f947b78648267 | 1,628 | maryk | Apache License 2.0 |
InkAndroidExtensions/src/main/java/com/inlacou/inkandroidextensions/ActivityExtensions.kt | inlacou | 400,138,100 | false | null | package com.inlacou.inkandroidextensions
import android.app.Activity
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Point
import android.net.Uri
import android.os.Build
import android.util.DisplayMetrics
import android.... | 0 | Kotlin | 0 | 0 | 5e6cc3d3d9358efca24a5cfe1c85802077c0323f | 8,218 | InkCommons | MIT License |
src/main/kotlin/fr/yodamad/svn2git/service/util/GitTagManager.kt | yodamad | 154,624,834 | false | null | package fr.yodamad.svn2git.service.util
import fr.yodamad.svn2git.data.WorkUnit
import fr.yodamad.svn2git.domain.enumeration.StatusEnum
import fr.yodamad.svn2git.domain.enumeration.StepEnum
import fr.yodamad.svn2git.functions.isFileInFolder
import fr.yodamad.svn2git.functions.listTagsOnly
import fr.yodamad.svn2git.io.... | 25 | null | 12 | 39 | f76bfe53e72e4a342bf0ac4e4af6fbf4c27f3fd9 | 4,168 | svn2git | Apache License 2.0 |
app/src/main/java/com/hotmail/or_dvir/televizia/TeleviziaApplication.kt | or-dvir | 680,743,936 | false | null | package com.hotmail.or_dvir.televizia
import android.app.Application
import com.hotmail.or_dvir.televizia.di.repositoriesModule
import com.hotmail.or_dvir.televizia.di.viewModelsModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
... | 0 | Kotlin | 0 | 0 | 807ca6ed49e26465224c0a9c654c3c6acdbe0048 | 599 | TeleviZia | Apache License 2.0 |
app/src/main/java/vegabobo/dsusideloader/preferences/AppPrefs.kt | VegaBobo | 454,183,288 | false | {"Kotlin": 244220, "Java": 11782, "Shell": 2256, "AIDL": 1346} | package vegabobo.dsusideloader.preferences
object AppPrefs {
/**
* Update feature only works if AUTHOR_SIGN_DIGEST is set
* with same SHA1 digest from signed apk OR is a DEBUG build
* if AUTHOR_SIGN_DIGEST doesn't match, also no problem
* app will work as expected, just without update feature.
... | 47 | Kotlin | 69 | 981 | 70cb6da9ecf9ae19c72ea680b02f1a0e20c77653 | 1,053 | DSU-Sideloader | Apache License 2.0 |
game-server/api/src/main/kotlin/com/osrs/api/buffer/RSByteBuffer.kt | runetopic | 613,076,716 | false | {"Kotlin": 296499, "Witcher Script": 2511} | package com.osrs.api.buffer
import java.nio.ByteBuffer
import kotlin.math.min
/**
* @author <NAME> */
class RSByteBuffer(
private val buffer: ByteBuffer
) {
constructor(array: ByteArray) : this(ByteBuffer.wrap(array))
private var accessBitsIndex = -1
fun readByte(): Int {
checkAccessingByte... | 1 | Kotlin | 1 | 10 | 2a5186b2b7befa7c364e0b989da68ed83070a926 | 10,431 | osrs-server | MIT License |
app/src/main/java/br/com/gesley/calculaflex/betterfuel/BetterFuelFragment.kt | Gesley | 409,800,283 | false | {"Kotlin": 12197} | package br.com.gesley.calculaflex.betterfuel
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import br.com.gesley.calculaflex.R
import br.com.gesley.calculaflex.base.auth.BaseAuthFragment
import br.com.gesle... | 0 | Kotlin | 0 | 0 | 85c5ec9bae5271ecea917c9a9713f91dbda1cb9d | 501 | calculaflex | MIT License |
MRemoteLog/src/main/java/com/remotelog/component/RemoteLogComponent.kt | zhangsuixu | 218,176,174 | false | {"Java": 285402, "Kotlin": 46476} | package com.remotelog.component
import com.remotelog.activity.RemoteLogActivity
import com.remotelog.module.RemoteLogModule
import dagger.Component
/**
* 时间 : 2019/10/6;
* 版本号 :
*/
@Component(modules = [RemoteLogModule::class])
interface RemoteLogComponent {
fun inject(activity: RemoteLogActivity)
}
| 1 | Java | 1 | 8 | 8126f9864850729963ae327d60f5e63a4b490d94 | 312 | SynthesisTool | Apache License 2.0 |
app/src/main/java/app/odapplications/bitstashwallet/modules/transactions/transactionInfo/TransactionInfoModule.kt | bitstashco | 220,133,996 | false | null | package io.horizontalsystems.bankwallet.modules.transactions.transactionInfo
import io.horizontalsystems.bankwallet.entities.Wallet
import io.horizontalsystems.bankwallet.viewHelpers.TextHelper
object TransactionInfoModule {
interface View {
fun showCopied()
}
interface ViewDelegate {
fun... | 4 | null | 3 | 11 | 64c242dbbcb6b4df475a608b1edb43f87e5091fd | 921 | BitStash-Android-Wallet | MIT License |
dpadrecyclerview/src/androidTest/kotlin/com/rubensousa/dpadrecyclerview/test/tests/mutation/AdapterMutationTest.kt | rubensousa | 530,412,665 | false | {"Kotlin": 1169718, "Shell": 2774} | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2 | Kotlin | 17 | 135 | ef7df356ad9fbc5a2427c8447af35a0810573207 | 15,683 | DpadRecyclerView | Apache License 2.0 |
shared/src/commonMain/kotlin/com/presta/customer/ui/components/topUp/DefaultLoanTopUpComponent.kt | morgan4080 | 726,765,347 | false | null | package com.presta.customer.ui.components.topUp
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.essenty.lifecycle.Lifecycle
import com.arkivanov.essenty.lifecycle.LifecycleOwner
import com.arkivanov.essenty.lifecycle.doOnDestroy
import com.arkivanov.mvikotlin.core.instancekeeper.getStore
import co... | 0 | Kotlin | 0 | 0 | d26cc0013c5bedf29d2f349b86e90052a0aca64e | 8,323 | kotlin-multiplatform | Apache License 2.0 |
src/main/kotlin/no/roedt/brukere/mfa/MFAService.kt | Roedt | 300,015,002 | false | null | package no.roedt.brukere.mfa
import no.roedt.EpostSender
import no.roedt.brukere.Epost
import no.roedt.hypersys.login.AESUtil
import no.roedt.hypersys.login.LoginRequest
import org.eclipse.microprofile.config.inject.ConfigProperty
import javax.enterprise.context.Dependent
@Dependent
class MFAService(
private val ... | 17 | null | 0 | 1 | 3e04de69024fdf383a086309406eeed9d94608f2 | 2,642 | ringesentralen-backend | MIT License |
util/src/main/kotlin/gg/rsmod/util/AabbUtil.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.util
/**
* Utility methods for axis-aligned bounding boxes.
*
* @author Tom <<EMAIL>>
*/
object AabbUtil {
data class Box(val x: Int, val z: Int, val width: Int, val length: Int) {
val x1: Int get() = x
val x2: Int get() = x + width
val z1: Int get() = z
va... | 36 | null | 138 | 32 | da66bb6d68ebae531ee325b909a6536e798b1144 | 3,137 | game | Apache License 2.0 |
Android-Kotlin/alarm123/app/src/main/java/fastcampus/aop/part3/chapter3/AlarmDisplayModel.kt | dkekdmf | 469,109,428 | false | {"Jupyter Notebook": 237657, "Python": 61277, "Kotlin": 61159, "C": 27870, "JavaScript": 7802, "EJS": 6927, "HTML": 2245, "CSS": 111} | package fastcampus.aop.part3.chapter3
data class AlarmDisplayModel(
val hour: Int,
val minute: Int,
var onOff: Boolean
) {
val timeText: String
get() {
val h = "%02d".format(if (hour < 12) hour else hour - 12)
val m = "%02d".format(minute)
return "$h:$m"
... | 4 | Jupyter Notebook | 0 | 1 | 445ac449acd6f1bf9f3b49d37f4df4739b8feca8 | 607 | Jaehoon | MIT License |
src/main/kotlin/co/volight/soft/impl/lang/LangImpl.kt | 2A5F | 347,285,536 | false | null | package co.volight.soft.impl.lang
import co.volight.soft.ModId
import co.volight.soft.Soft
import co.volight.soft.api.lang.LangHandle
import co.volight.soft.api.lang.LangStr
import com.google.gson.Gson
import net.fabricmc.loader.api.FabricLoader
import java.nio.file.Files
import java.nio.file.Path
import java.nio.file... | 0 | Kotlin | 0 | 1 | ce1ee9ac9e292d9e5bd9e9c6e2f72511f9638a8f | 2,504 | soft | MIT License |
app/src/main/java/com/blaubalu/detoxrank/ui/utils/Constants.kt | AdamBalu | 749,353,748 | false | {"Kotlin": 439275} | package com.blaubalu.detoxrank.ui.utils
object Constants {
const val ACTION_SERVICE_START = "ACTION_SERVICE_START"
const val ACTION_SERVICE_CANCEL = "ACTION_SERVICE_CANCEL"
const val TIMER_STATE = "STOPWATCH_STATE"
const val NOTIFICATION_CHANNEL_ID = "STOPWATCH_NOTIFICATION_ID"
const val NOTIFICA... | 0 | Kotlin | 0 | 0 | d168a379f1555a3f9260fc8d882c978cc7af5b63 | 4,942 | DetoxRank | MIT License |
compiler/testData/codegen/box/callableReference/bound/receiverEvaluatedOnce.kt | JetBrains | 3,432,266 | false | null | // DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: BINDING_RECEIVERS
var x = 0
class A {
fun f() = if (x == 1) "OK" else "Fail $x"
}
fun callTwice(f: () -> String): String {
f()
return f()
}
fun box(): String {
return callTwice(({ x++; A() }())::f)
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 275 | kotlin | Apache License 2.0 |
clients/bazel-module-registry/src/main/kotlin/RemoteBazelModuleRegistryService.kt | oss-review-toolkit | 107,540,288 | false | null | /*
* Copyright (C) 2024 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
*
* 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.a... | 309 | null | 308 | 1,578 | 7509ece17ed192dd3fbcbc421ef17f2d1f015a68 | 3,030 | ort | Apache License 2.0 |
src/main/kotlin/wiki/mdzz/utils/map/HashMap.kt | limitLiu | 231,546,946 | false | null | package wiki.mdzz.utils.map
import java.util.Objects
import wiki.mdzz.utils.queue.Queue
open class HashMap<K, V> : Map<K, V> {
companion object {
const val RED = false
const val BLACK = true
const val DEFAULT_CAPACITY = 1 shl 4
const val DEFAULT_LOAD_FACTOR = 0.75f
}
priva... | 0 | Kotlin | 1 | 0 | e613e47ad22d42eb4efa0b99f6f9da620e63982d | 15,889 | algorithm | MIT License |
app/shared/platform/impl/src/commonJvmMain/kotlin/build/wallet/platform/data/FileManagerImpl.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.platform.data
import build.wallet.catching
import build.wallet.logging.logFailure
import build.wallet.mapUnit
import build.wallet.platform.data.File.join
import com.github.michaelbull.result.Result
import com.github.michaelbull.result.mapError
import kotlinx.coroutines.Dispatchers
import kotlinx.c... | 3 | C | 16 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 4,617 | bitkey | MIT License |
idea/testData/copyPaste/imports/FunctionAlreadyImported.expected.kt | JakeWharton | 99,388,807 | false | null | package to
import a.g
fun f() {
g()
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 43 | kotlin | Apache License 2.0 |
sketch-extensions-core/src/commonTest/kotlin/com/github/panpf/sketch/extensions/core/test/util/DownloadTest.kt | panpf | 14,798,941 | false | {"Kotlin": 2817618, "Shell": 672} | package com.github.panpf.sketch.extensions.core.test.util
import com.github.panpf.sketch.cache.DiskCache
import com.github.panpf.sketch.images.MyImages
import com.github.panpf.sketch.test.singleton.getTestContextAndSketch
import com.github.panpf.sketch.test.utils.MyImagesHttpStack
import com.github.panpf.sketch.test.u... | 1 | Kotlin | 307 | 1,998 | 5cb3aaf167f23262c8b9c2e9a7ab8d8f8c0bad5b | 2,126 | sketch | Apache License 2.0 |
core/src/main/kotlin/com/labijie/infra/mqts/impl/NoopTransactionRedoSupported.kt | hongque-pro | 314,188,221 | false | null | package com.labijie.infra.mqts.impl
import com.labijie.infra.mqts.TransactionSourceAttribute
import com.labijie.infra.mqts.abstractions.ITransactionRedoSupported
import org.slf4j.Logger
import org.slf4j.LoggerFactory
/**
* Created with IntelliJ IDEA.
* @author Anders Xiao
* @date 2018-11-26
*/
class NoopTransacti... | 0 | Kotlin | 0 | 1 | 40fe893cfc62ee2442851c2b4f81519ab6465129 | 733 | infra-mqts | Apache License 2.0 |
src/main/kotlin/io/goauthentik/api/models/AuthenticatedSession.kt | goauthentik | 687,459,450 | false | {"Kotlin": 3703856, "Go": 1227, "Makefile": 859} | /**
* authentik
*
* Making authentication simple.
*
* The version of the OpenAPI document: 2023.10.3
* Contact: <EMAIL>
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass",
"Enu... | 1 | Kotlin | 0 | 0 | a7dba25c2c3cfbad21bdb3e459dc66f516ddfb56 | 1,564 | client-kotlin | Info-ZIP License |
csstype-kotlin/src/jsMain/kotlin/web/cssom/BoxSizing.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6824465} | // Automatically generated - do not modify!
@file:Suppress(
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package web.cssom
import seskar.js.JsValue
import seskar.js.JsVirtual
@JsVirtual
sealed external interface BoxSizing {
companion object {
@JsValue("border-box")
val borderBox: BoxSizing
... | 0 | Kotlin | 7 | 28 | 43e14a99f90c9f1ea164f382f423cb05a58df22b | 389 | types-kotlin | Apache License 2.0 |
src/main/kotlin/LaunchCommandBuilder.kt | YaeMonilc | 677,998,156 | false | null | import entity.*
import java.io.File
/**
* The Launch Command Object Builder
* @author YaeMonilc
*/
class LaunchCommandBuilder(
val config: GameConfig,
val user: User,
val memorySetting: MemorySetting = MemorySetting(),
val launcherConfig: LauncherConfig = LauncherConfig()
) {
private val launchC... | 0 | Kotlin | 0 | 1 | 6c320b0e4464ab8439056fbe2dd8f5fc52e97c97 | 4,852 | MinecraftLauncherCore | Apache License 2.0 |
shared/src/commonMain/kotlin/dev/avatsav/linkding/domain/TagList.kt | avatsav | 576,855,763 | false | {"Kotlin": 190189, "Swift": 589} | package dev.avatsav.linkding.domain
import kotlinx.serialization.Serializable
@Serializable
data class TagList(
val count: Long,
val next: String?,
val previous: String?,
val results: List<Tag>,
)
| 2 | Kotlin | 0 | 8 | 1d853d58d9d584c270f7e2ed11392e2aec0bdf34 | 215 | linkding-apps | MIT License |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/routes/behandling/vilkår/kvp/OppdaterKvpRoute.kt | navikt | 487,246,438 | false | {"Kotlin": 1042302, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.routes.behandling.vilkår.kvp
import io.ktor.http.HttpStatusCode
import io.ktor.server.response.respond
import io.ktor.server.routing.Route
import io.ktor.server.routing.post
import mu.KotlinLogging
import no.nav.tiltakspenger.felles.Saksbehandler
import no.nav.tiltakspenger.libs.com... | 0 | Kotlin | 0 | 1 | c23890a313eac464b2eae8d6e6f143b47a4b693e | 3,933 | tiltakspenger-vedtak | MIT License |
app/src/main/java/org/itstep/liannoi/androidpaging/application/storage/users/models/UserDao.kt | liannoi | 290,314,559 | false | null | package org.itstep.liannoi.androidpaging.application.storage.users.models
import androidx.room.Dao
import androidx.room.Query
import io.reactivex.Maybe
import org.itstep.liannoi.androidpaging.application.ApplicationDefaults
import org.itstep.liannoi.androidpaging.application.common.storage.BaseDao
@Dao
interface User... | 4 | Kotlin | 0 | 0 | 3afe76b1dcdb0d1e5562ea5f098c39db9dda33e9 | 656 | android-paging | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/activities/video/TagActivity.kt | aaa1115910 | 571,702,700 | false | {"Kotlin": 1537138} | package dev.aaa1115910.bv.activities.video
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import dev.aaa1115910.bv.screen.TagScreen
import dev.aaa1115910.bv.ui.theme.BVTheme
class TagActivity ... | 18 | Kotlin | 112 | 999 | e93863f4f266485e16e1768fcea6e6b9ad0b276b | 885 | bv | MIT License |
components/bridge/dao/api/src/main/java/com/flipperdevices/bridge/dao/api/delegates/key/UpdateKeyApi.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 2760721, "FreeMarker": 10084, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.bridge.dao.api.delegates.key
import com.flipperdevices.bridge.dao.api.model.FlipperKey
import com.flipperdevices.bridge.dao.api.model.FlipperKeyPath
import kotlinx.coroutines.flow.Flow
interface UpdateKeyApi {
/**
* Notifies you when the key path has changed. The first object sends... | 13 | Kotlin | 131 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 692 | Flipper-Android-App | MIT License |
plugins/git4idea/src/git4idea/index/actions/GitFileStatusNodeAction.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package git4idea.index.actions
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.Presentation
imp... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 6,443 | intellij-community | Apache License 2.0 |
glucose/src/main/java/com/desugar/glucose/events/Event.kt | desugar-64 | 585,358,949 | false | null | package com.desugar.glucose.events
abstract class Event {
enum class EventType {
None,
WindowClose, WindowResize, WindowFocus, WindowLostFocus, WindowMoved,
AppTick, AppUpdate, AppRender,
KeyPressed, KeyReleased,
TouchPressed, TouchMoved, TouchReleased,
MouseMoved, M... | 0 | Kotlin | 0 | 0 | 3715d8af08db2b4052fc1786130cbfb82081a3bc | 1,729 | android-opengl-renderer | Apache License 2.0 |
app/src/main/java/com/anyjob/ui/explorer/search/SearchFragment.kt | y0ung3r | 485,848,073 | false | null | package com.anyjob.ui.explorer.search
import android.Manifest
import android.content.pm.PackageManager
import android.graphics.Color
import android.location.Address
import android.location.Geocoder
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import... | 0 | Kotlin | 0 | 0 | 1f3d030f3becbb9d8007edfca289ec68b96678eb | 17,449 | AnyJob | MIT License |
educational-core/src/com/jetbrains/edu/learning/marketplace/api/MarketplaceSubmissionsConnector.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.marketplace.api
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import com.google.common.annotations.VisibleForTesting
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.logger
import com.... | 5 | null | 44 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 11,965 | educational-plugin | Apache License 2.0 |
example/src/main/java/com/crowdin/platform/example/SplashScreenActivity.kt | crowdin | 193,449,073 | false | null | package com.crowdin.platform.example
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.appcompat.app.AppCompatActivity
import com.crowdin.platform.Crowdin
class SplashScreenActivity : AppCompatActivity() {
override fun onCreate(savedInstance... | 6 | Kotlin | 38 | 98 | 468e9d2c50cf37ed1aa2a540a2f66e410f4b7ab5 | 1,111 | mobile-sdk-android | MIT License |
Mobile/app/src/main/java/com/tzeentch/workfinder/dto/AuthResultDto.kt | Tzeentch-Hack | 704,442,654 | false | {"Kotlin": 84798, "Python": 47445, "HTML": 37686, "Dockerfile": 327} | package com.tzeentch.workfinder.dto
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AuthResultDto(
@SerialName("access_token") val token: String,
)
| 0 | Kotlin | 0 | 0 | 77b32717caab70554f70ae7cc894c72b8bd00c0c | 213 | Work-Finder | MIT License |
intellij-plugin/src/main/kotlin/com/apollographql/ijplugin/util/Files.kt | apollographql | 69,469,299 | false | null | package com.apollographql.ijplugin.util
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.GeneratedSourcesFilter
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiFile
import com.intellij.psi.PsiManager
import com.intellij.psi.search.FilenameIndex
import com.intellij.ps... | 176 | null | 660 | 3,588 | c63155882c9ef5d0981bc6b12cdee99c2117f928 | 835 | apollo-kotlin | MIT License |
tts/src/androidMain/kotlin/nl/marc_apps/tts/utils/TtsProgressConverter.kt | Marc-JB | 279,524,415 | false | {"Kotlin": 62339} | package nl.marc_apps.tts.utils
import android.os.Build
import android.speech.tts.UtteranceProgressListener
import androidx.annotation.RequiresApi
import nl.marc_apps.tts.errors.TextToSpeechSynthesisInterruptedError
import nl.marc_apps.tts.errors.UnknownTextToSpeechSynthesisError
import java.util.*
/**
* @hide
*/
@R... | 2 | Kotlin | 2 | 9 | 4624820c64db53bb5b21b0d2dd06ea7faaa23c91 | 1,423 | TextToSpeechKt | MIT License |
transmission/src/main/java/com/trendyol/transmission/transformer/query/QueryResult.kt | Trendyol | 771,942,025 | false | {"Kotlin": 46606} | package com.trendyol.transmission.transformer.query
import com.trendyol.transmission.Transmission
sealed class QueryResult<D : Transmission.Data>(
open val owner: String,
open val data: D?,
open val type: String
) {
data class Data<D : Transmission.Data>(
override val owner: String,
ov... | 0 | Kotlin | 0 | 14 | 35316fd3718302ec998fb6230891e3aa49296aa7 | 637 | transmission | MIT License |
app/src/main/java/com/benhagy/gamefinder3/presentation/bookmarks_screen/components/UserRatingBar.kt | ben-hagy | 671,589,018 | false | null | package com.benhagy.gamefinder3.presentation.bookmarks_screen.components
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.tween
import androidx.compose.material.icons.Ic... | 0 | Kotlin | 0 | 0 | 036eeb69dd0d13a01b1beb8bf3872dc5c44ebd8d | 1,550 | Gamefinder3 | MIT License |
app/src/main/java/com/hodinv/music/mvp/MvpActivity.kt | vgtitov | 238,857,009 | false | null | package com.hodinv.music.mvp
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
/**
* Created by vasily on 25.05.17.
*/
abstract class MvpActivity<V : MvpView, R : MvpRouter, P : MvpPresenter<V, R>> : AppCompatActivity() {
var presenter: P? = null
abstract fun createPresenter(): P
... | 0 | Kotlin | 0 | 0 | 4e7d3483c87beafa55bb90a75b94ebf60e31e465 | 1,903 | synthesizer | Creative Commons Attribution 3.0 Unported |
clippylib/src/main/java/com/ferranpons/clippylib/backend/converter/mapping/ClippyMapping.kt | ferranpons | 117,086,375 | false | {"Kotlin": 75990} | package com.ferranpons.clippylib.backend.converter.mapping
import com.ferranpons.clippylib.R
class ClippyMapping : AgentMapping {
override val mapping: IntArray
get() = IMAGE_MAPPING
override val soundMapping: IntArray
get() = SOUND_MAPPING
override val numberRows: Int
get() =... | 0 | Kotlin | 1 | 0 | e5f1a5e9c54d30a1f5bc982740500921b0642e01 | 23,116 | klippy | Apache License 2.0 |
test/src/me/anno/tests/sdf/SDFShapes.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.tests.sdf
import me.anno.ecs.Entity
import me.anno.engine.OfficialExtensions
import me.anno.engine.ui.render.SceneView.Companion.testSceneWithUI
import me.anno.io.files.Reference.getReference
import me.anno.sdf.SDFComponent
import me.anno.sdf.shapes.SDFBezierCurve
import me.anno.sdf.shapes.SDFBlob
impo... | 0 | null | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 4,488 | RemsEngine | Apache License 2.0 |
src/main/kotlin/com/simiacryptus/jopenai/models/OpenAIModel.kt | SimiaCryptus | 616,165,852 | false | null | package com.simiacryptus.jopenai.models
interface OpenAIModel {
val modelName: String
}
| 0 | null | 1 | 1 | 7a6699f3e4302f0c4f13e190ab8a1d862b54d3f7 | 94 | jo-penai | Apache License 2.0 |
app/src/main/java/com/commit451/gitlab/util/Gravatar.kt | Commit451 | 39,787,724 | false | null | package com.commit451.gitlab.util
import android.net.Uri
object Gravatar {
fun init(email: String? = null): Builder {
return Builder(email)
}
class Builder constructor(private val mEmail: String?) {
private var ssl = false
private var extension = false
private var size =... | 6 | Kotlin | 27 | 248 | 504b5311c00ac2b87ba728d74925c6f46e6c5781 | 2,881 | LabCoat | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.