path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/java/com/tang/intellij/lua/psi/impl/LuaNameExprMixin.kt | Benjamin-Dobell | 231,814,734 | false | null | /*
* Copyright (c) 2017. tangzx(love.tangzx@qq.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 61 | null | 9 | 83 | 68b0a63d3ddd5bc7be9ed304534b601fedcc8319 | 2,013 | IntelliJ-Luanalysis | Apache License 2.0 |
demo-plural-sight-gradle/src/main/kotlin/demo/objects/ByteTimer.kt | antoniolazaro | 257,624,848 | false | null | package demo.objects
fun main() {
val timerValue = readLine()!!.toInt()
val timer = ByteTimer()
timer.time = timerValue
println(timer.time)
}
class ByteTimer() {
var time: Int = 0
set(time){
if(time < -128){
field = -128
}else if(time > 127){
field = 127... | 0 | Kotlin | 0 | 0 | 9e673057c3255be66fd67479b8198fa129463d95 | 378 | kotlin-lab | Apache License 2.0 |
app/src/main/java/com/trafficcop/apidemoapp/TrafficCopResponse.kt | devsm2 | 674,236,331 | false | null | package com.trafficcop.apidemoapp
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class TrafficCopResponse(
val ivtScore: Double
): Parcelable | 0 | Kotlin | 0 | 0 | f535d647f8373f03f10e74ce34dcc8c16932f218 | 185 | TrafficCop_API_Demo-Android | MIT License |
src/main/kotlin/io/github/guttenbase/utils/ScriptExecutorProgressIndicator.kt | guttenbase | 644,774,036 | false | null | package io.github.guttenbase.utils
interface ScriptExecutorProgressIndicator : ProgressIndicator
| 0 | Kotlin | 0 | 0 | c315ac70f67277dc1c5022dc5852ecfb8d3aba67 | 98 | guttenbase | Apache License 2.0 |
src/main/kotlin/org/platestack/api/plugin/annotation/plugin-anotations.kt | PlateStack | 91,766,401 | false | null | /*
* Copyright (C) 2017 <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 agre... | 1 | null | 1 | 3 | e39e4f06b489a07677fff49553c02153f9af76f3 | 8,474 | PlateAPI | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/incentivesapi/helper/ErrorResponseHelper.kt | ministryofjustice | 445,553,088 | false | null | package uk.gov.justice.digital.hmpps.hmppsresettlementpassportprototypeapi.config
import org.assertj.core.api.Assertions.assertThat
import org.springframework.http.HttpStatus
import org.springframework.test.web.reactive.server.WebTestClient
fun <T : WebTestClient.ResponseSpec> T.expectErrorResponse(
status: HttpSta... | 4 | null | 2 | 3 | 5e0385eb256f64623f521a70acfa3166bcbfb82f | 1,002 | hmpps-incentives-api | MIT License |
spacecraft/src/main/java/co/com/gulupagames/spacecraft/entity/entity/AlienShoot.kt | androide0917 | 493,884,104 | false | null | package co.com.gulupagames.spacecraft.entity.entity
import co.com.gulupagames.gamecore.entity.GameEntity
import co.com.gulupagames.gamecore.game.surfaceview.LevelSurfaceView
import co.com.gulupagames.gamecore.util.Util.verticalDistanceAdjust
import co.com.gulupagames.spacecraft.R
class AlienShoot(levelSurfaceView: Le... | 0 | Kotlin | 0 | 2 | d4b1c48e7b0797fe9cefed86edd558475f5dd006 | 912 | 2DAndroidEngine | MIT License |
app/src/main/java/studio/forface/either/domain/model/EncryptedMessage.kt | fardavide | 421,370,175 | false | {"Kotlin": 44387} | package studio.forface.either.domain.model
data class EncryptedMessage(
val subject: String,
val from: EncryptedContact
)
| 0 | Kotlin | 0 | 0 | b20f60e7a4e0e2754c2d3d4a62bd9e4b2e89177f | 131 | Either-presentation | Apache License 2.0 |
kool-core/src/commonMain/kotlin/de/fabmax/kool/modules/ksl/blocks/LitMaterialBlock.kt | fabmax | 81,503,047 | false | null | package de.fabmax.kool.modules.ksl.blocks
import de.fabmax.kool.modules.ksl.lang.*
abstract class LitMaterialBlock(name: String, parentScope: KslScopeBuilder) : KslBlock(name, parentScope) {
val inCamPos = inFloat3("inCamPos")
val inNormal = inFloat3("inNormal")
val inFragmentPos = inFloat3("inFragmentPos... | 9 | Kotlin | 12 | 163 | a6f7c0dc1f7d9bfe0347315c2166af4d76401082 | 1,264 | kool | Apache License 2.0 |
src/main/kotlin/ch/unibas/dmi/dbis/cottontail/database/serializers/FixedIntVectorSerializer.kt | schoenja | 215,837,340 | true | {"Kotlin": 724765} | package ch.unibas.dmi.dbis.cottontail.database.serializers
import ch.unibas.dmi.dbis.cottontail.model.values.IntVectorValue
import org.mapdb.DataInput2
import org.mapdb.DataOutput2
import org.mapdb.Serializer
/**
* A [Serializer] for [IntVectorValue]s that are fixed in length.
*
* @author <NAME>
* @version 1.0
*... | 0 | Kotlin | 0 | 0 | cf4d45fddec91b4167eafc1317acfc4f3df557d4 | 806 | cottontaildb | MIT License |
src/main/kotlin/com/bluedragonmc/jukebox/command/ResumeCommand.kt | BlueDragonMC | 586,692,448 | false | {"Kotlin": 26961} | package com.bluedragonmc.jukebox.command
import com.bluedragonmc.jukebox.Song
import com.mojang.brigadier.Command
import com.mojang.brigadier.builder.LiteralArgumentBuilder
import com.velocitypowered.api.command.BrigadierCommand
import com.velocitypowered.api.command.CommandSource
import com.velocitypowered.api.proxy.... | 0 | Kotlin | 1 | 2 | 4db4f1f4506d6b083634a5ea00ed73e394a1dd73 | 1,188 | Jukebox | MIT License |
core/src/main/java/ru/tinkoff/acquiring/sdk/responses/MirPayResponse.kt | itlogic | 293,802,517 | true | {"Kotlin": 1162428, "Java": 29422} | package ru.tinkoff.acquiring.sdk.responses
import com.google.gson.annotations.SerializedName
/**
* Ответ на запрос /api/v2/MirPay/GetDeepLink
* @param deeplink Диплинк для перехода в приложение MirPay
* для совершения оплаты
*
* @author k.shpakovskiy
*/
class MirPayResponse(
@SerializedName... | 0 | Kotlin | 0 | 0 | 8de009c2ae6ca40843c74799429346fcfa74820c | 390 | AcquiringSdkAndroid | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/workeractions/WorkerActionServiceRegistry.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8897422, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 3,471 | androlabs | Apache License 2.0 |
src/ar/movizland/src/eu/kanade/tachiyomi/animeextension/ar/movizland/Movizland.kt | MoonLGH | 553,636,037 | true | {"Kotlin": 2018539, "Java": 6463} | package eu.kanade.tachiyomi.animeextension.ar.movizland
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
import eu.kanade.tachiyomi.animeextension.ar.m... | 0 | null | 0 | 0 | 9f953f84c59ada522d8d728c9aee0d9e3c358c8a | 17,400 | aniyomi-tachiyomi-ext | Apache License 2.0 |
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt | JetBrains | 293,498,508 | false | null | package example.imageviewer.view
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
expect fun ScrollableColumn(modifier: Mo... | 1,056 | Kotlin | 957 | 12,793 | 950d5a991ccffbe9d7b831af413b30c97aa5ccf0 | 576 | compose-multiplatform | Apache License 2.0 |
app/shared/platform/public/src/commonMain/kotlin/build/wallet/platform/random/Uuid.kt | proto-at-block | 761,306,853 | false | {"C": 10552166, "Kotlin": 7152523, "Rust": 2007040, "Swift": 689522, "Python": 330440, "HCL": 261238, "Shell": 108449, "TypeScript": 90654, "C++": 64770, "Meson": 64252, "JavaScript": 36227, "Just": 28064, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1456, "Procfile": 80} | package build.wallet.platform.random
fun interface Uuid {
/**
* Generates a new random Universally Unique Identifier (UUID) and returns hexadecimal
* representation.
*/
fun random(): String
}
| 0 | C | 9 | 91 | 4c1a339513bbe790ff846d7c8417ea09fe1babb3 | 206 | bitkey | MIT License |
composeApp/src/desktopMain/kotlin/main.kt | kamathis4 | 627,518,559 | false | null | import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import com.adikmt.notesapp.App
import com.adikmt.notesapp.di.initKoin
import com.adikmt... | 0 | Kotlin | 0 | 7 | 3ecd1be408a134d28b6bf1ab4e6b34d39e63bb2b | 923 | NotesAppKMM | The Unlicense |
src/main/kotlin/com/bajdcc/LALR1/grammar/runtime/RuntimeObject.kt | bajdcc | 32,624,604 | false | {"Kotlin": 1131761, "HTML": 42480, "CSS": 37889, "JavaScript": 2703} | package com.bajdcc.LALR1.grammar.runtime
import com.bajdcc.LALR1.grammar.runtime.data.RuntimeArray
import com.bajdcc.LALR1.grammar.runtime.data.RuntimeFuncObject
import com.bajdcc.LALR1.grammar.runtime.data.RuntimeMap
import com.bajdcc.util.lexer.token.TokenType
/**
* 【运行时】运行时对象
*
* @author bajdcc
*/
class Runtim... | 0 | Kotlin | 20 | 65 | 90b19af98da99b53bba5b3269ad5666df7c05e49 | 4,967 | jMiniLang | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/panorama/StorageLocationPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.panorama
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.panorama.CfnPackage
@Generated
public fun buildStorageLocationProperty(initializer: @AwsCdkDsl
CfnPackage.StorageLocationProp... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 459 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/vn/tale/sayit/util/Activities.kt | talenguyen | 108,814,758 | false | null | package vn.tale.sayit.util
import android.support.annotation.IdRes
import android.support.design.widget.Snackbar
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import android.view.View
fun FragmentActivity.setFragment(@IdRes id: Int, fragment: Fragment) {
supportFragmentManage... | 0 | Kotlin | 0 | 0 | ecabb863c2cf648c1a9ad2d0fb29da07cad843fe | 589 | app-starter | Apache License 2.0 |
core/navigation/src/main/kotlin/com/mobiledevpro/navigation/ext/NavigationExt.kt | mobiledevpro | 107,694,742 | false | {"Kotlin": 101732, "Shell": 4134, "Java": 3283} | /*
* Copyright 2021 | <NAME> | http://mobile-dev.pro
*
*
* 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 appl... | 22 | Kotlin | 50 | 530 | 57fcb5202675a09eae8515062e25392c2a8699cd | 1,550 | Android-Kotlin-MVVM-Template | Apache License 2.0 |
app/src/main/java/com/alirezaafkar/phuzei/util/Extenstions.kt | alirezaafkar | 153,698,863 | false | null | package com.alirezaafkar.phuzei.util
import android.content.Context
import android.content.Intent
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.core.net.toUri
import androidx.fragment.app.Fragment
import com.alirezaafkar.phuzei.MUZEI_PACKAGE_NAME
import io.reactivex.disposables.Compo... | 4 | null | 4 | 17 | 81129034cfb7e625b09320c6e0397e2c4e51a883 | 1,252 | phuzei | Apache License 2.0 |
app/src/main/java/com/eugenio/marvelsuperheroes/superheroslist/ui/components/CharacterRow.kt | EugenioGutierrezC | 696,859,384 | false | {"Kotlin": 75462} | package com.eugenio.marvelsuperheroes.superheroslist.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import a... | 0 | Kotlin | 0 | 0 | ab95e890d20330809d51266b760942bd1ce8cdd4 | 4,550 | MarvelSuperHeroes | Apache License 2.0 |
game/src/commonMain/kotlin/com/game/finitymission/AbilityActivated.kt | curvedinf | 760,201,043 | false | {"Kotlin": 17629, "HTML": 340} | package com.game.finitymission
open class AbilityActivated(
state: GameState,
duration: Int,
target: Actor,
from: Actor,
) : Ability(state, duration, target,from) {
open fun activate() {
}
} | 0 | Kotlin | 0 | 0 | 294db57cf4fa82ecf50325e0e18d3831f601cdd8 | 215 | finity-mission | MIT License |
src/org/carbon/PrettyPrintable.kt | pensono | 137,421,206 | false | {"Kotlin": 51465, "ANTLR": 3911} | package org.carbon
/**
* Mixin to allow objects to be pretty printable.
*
* Only override {@link #getShortString()} and {@link #getBodyString(int)}
*
* When using, only call {@link #getShortString} and {@link #getFullString}
*
* Strings returned by this are for debugging purposes and should not be relied upon.
... | 0 | Kotlin | 0 | 1 | aa7fd9ca2e139769f20a10a93675e2cf941a19db | 2,013 | CarbonIntrepreter | MIT License |
app/src/main/kotlin/com/example/tasty/data/repository/userData/UserDataRepositoryImpl.kt | stevan-milovanovic | 765,694,666 | false | null | package com.example.tasty.data
import com.example.tasty.data.local.dao.UserDataDao
import com.example.tasty.data.local.model.UserData
import com.example.tasty.di.DefaultDispatcher
import javax.inject.Inject
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow... | 0 | null | 0 | 2 | b8c54ff5679bfafea6a9c44e44b3bf38e43cb9a9 | 1,306 | Tasty | Apache License 2.0 |
app/src/main/kotlin/com/example/tasty/data/repository/userData/UserDataRepositoryImpl.kt | stevan-milovanovic | 765,694,666 | false | null | package com.example.tasty.data
import com.example.tasty.data.local.dao.UserDataDao
import com.example.tasty.data.local.model.UserData
import com.example.tasty.di.DefaultDispatcher
import javax.inject.Inject
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow... | 0 | null | 0 | 2 | b8c54ff5679bfafea6a9c44e44b3bf38e43cb9a9 | 1,306 | Tasty | Apache License 2.0 |
app/src/main/java/com/insomniacgks/newmoviesandshows/adapters/ShowsRecyclerViewAdapter.kt | 10aditya | 149,925,528 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 65, "Kotlin": 33} | package com.insomniacgks.newmoviesandshows.adapters
import android.app.Activity
import android.app.ActivityOptions
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.app.AppCompatD... | 0 | Kotlin | 0 | 2 | 0dc28d7991def8df662bbcac621eae0d819f0360 | 4,138 | movies-and-shows-android-app | MIT License |
kondor-core/src/main/kotlin/com/ubertob/kondor/json/JsonProperty.kt | uberto | 343,412,601 | false | {"Kotlin": 313026, "Java": 46239, "Shell": 910} | package com.ubertob.kondor.json
import com.ubertob.kondor.json.JsonStyle.Companion.appendObjectFields
import com.ubertob.kondor.json.JsonStyle.Companion.appendText
import com.ubertob.kondor.json.jsonnode.*
import com.ubertob.kondor.outcome.Outcome
import com.ubertob.kondor.outcome.asFailure
import com.ubertob.kondor.o... | 0 | Kotlin | 10 | 68 | 5832fbe239b06bdd3baa7588321cbd527bc4fe1f | 4,224 | kondor-json | Apache License 2.0 |
app/src/main/java/de/droidcon/berlin2018/ui/search/SearchController.kt | OpenConference | 100,889,869 | false | null | package de.droidcon.berlin2018.ui.search
import de.droidcon.berlin2018.R
import de.droidcon.berlin2018.ui.MviController
import de.droidcon.berlin2018.ui.applicationComponent
/**
*
*
* @author <NAME>
*/
class SearchController : MviController<SearchView, SearchPresenter>() {
override val layoutRes: Int = R.layou... | 1 | null | 1 | 27 | 142effaf4eb04abb12d5b812e797a89922b649a5 | 486 | DroidconBerlin2017 | Apache License 2.0 |
app/src/main/java/my/itgungnir/rxmvvm/MainActivity.kt | ITGungnir | 177,976,302 | false | null | package my.itgungnir.rxmvvm
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import my.itgungnir.rxmvvm.app1.AppActivity1
import my.itgungnir.rxmvvm.app2.AppActivity2
import my.itgungnir.rxmvvm.app3.AppActivity3... | 0 | Kotlin | 2 | 11 | 9b724b3070435e11c97d682944acdef11409308b | 1,856 | RxMVVM | Apache License 2.0 |
library/src/androidMain/kotlin/com/myunidays/kiterable/models/IterableActionContext.kt | MyUNiDAYS | 570,215,922 | false | {"Kotlin": 28503, "Shell": 1057} | package com.myunidays.kiterable.models
actual class IterableActionContext constructor(private val android: com.iterable.iterableapi.IterableActionContext) {
actual val action: IterableAction
get() = android.action
actual val source: IterableActionSource
get() = IterableActionSource.valueOf(andr... | 0 | Kotlin | 0 | 4 | 8b7c6e1bb1895f71ab6789ccebbc97add6000415 | 339 | KIterable | MIT License |
src/test/kotlin/net/maizegenetics/phgv2/cli/FastaGeneratorTest.kt | maize-genetics | 696,835,682 | false | {"Kotlin": 93709} | package net.maizegenetics.phgv2.cli
import com.github.ajalt.clikt.testing.test
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import kotlin.test.assertEquals
@ExtendWith(TestExtension::class)
class FastaGeneratorTest {
companion object {
}
@Test
fun testCliktPara... | 1 | Kotlin | 0 | 1 | 7a7ad18a7e0300a5c805fccba64663e775c67acc | 2,225 | phg_v2 | Apache License 2.0 |
platform/workspaceModel/ide/tests/testSrc/com/intellij/workspaceModel/ide/WorkspaceCacheTest.kt | kollaam | 299,605,621 | false | {"Text": 6171, "XML": 6228, "YAML": 417, "Ant Build System": 13, "Shell": 561, "Markdown": 513, "Ignore List": 92, "Git Attributes": 10, "EditorConfig": 227, "Batchfile": 27, "SVG": 2342, "Java": 74363, "C++": 34, "HTML": 2876, "Kotlin": 39080, "DTrace": 1, "Gradle": 448, "Java Properties": 202, "INI": 411, "JFlex": 31... | // Copyright 2000-2021 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 com.intellij.workspaceModel.ide
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.application.... | 1 | null | 1 | 1 | 3dbfbac6b6316183e6bb7b066a70e8b04b73f0a8 | 4,070 | intellij-community | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt | Quickdesh | 468,685,161 | true | {"Kotlin": 2997580} | package eu.kanade.tachiyomi.data.track.kitsu
import android.graphics.Color
import dev.icerock.moko.resources.StringResource
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.database.models.anime.AnimeTrack
import eu.kanade.tachiyomi.data.track.AnimeTracker
import eu.kanade.tachiyomi.data.track.BaseTracker
... | 24 | Kotlin | 8 | 379 | ed992717aa02a48ea2df3e3e0b70e678535829f4 | 5,272 | Animiru | Apache License 2.0 |
core-sdk-android/src/main/java/com/frogobox/sdk/delegate/piracy/util/PiracyMessage.kt | frogobox | 463,917,159 | false | {"Kotlin": 329688, "Java": 141587, "AIDL": 1633} | package com.frogobox.sdk.delegate.piracy.util
/*
* Created by faisalamir on 01/07/22
* FrogoSDK
* -----------------------------------------
* Name : <NAME>
* E-mail : <EMAIL>
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2022 Frogobox Media Inc.
* All rig... | 0 | Kotlin | 5 | 18 | 51696259b36210af8d251432fb5339922efff795 | 419 | frogo-sdk | Apache License 2.0 |
library/src/commonMain/kotlin/WalletEvent.kt | DrewCarlson | 228,961,452 | false | null | package com.blockset.walletkit
public sealed class WalletEvent {
public object Created : WalletEvent()
public object Deleted : WalletEvent()
public data class FeeBasisUpdated(
val feeBasis: TransferFeeBasis
) : WalletEvent()
public data class FeeBasisEstimated(
val feeBas... | 4 | Kotlin | 1 | 1 | 6a6b20a69e6307d89ad7ce3494fb794411fb7e76 | 976 | WalletKit-Kotlin | The Unlicense |
frames/src/test/java/com/checkout/frames/utils/extensions/BillingAddressDetailsExtensionsTest.kt | checkout | 140,300,675 | false | {"Kotlin": 1048834, "Java": 19853, "Shell": 517} | package com.checkout.frames.utils.extensions
import android.annotation.SuppressLint
import com.checkout.base.model.Country
import com.checkout.frames.R
import com.checkout.frames.component.billingaddressfields.BillingAddressInputComponentState
import com.checkout.frames.mock.BillingAddressDetailsTestData
import com.ch... | 14 | Kotlin | 37 | 51 | 6eda7b1a9331c5fb1ababa205e3f3123f1b56ff3 | 3,464 | frames-android | MIT License |
app/src/main/java/com/example/weather_app/Activities/MainActivity.kt | AvishkarWadbudhe | 665,588,770 | false | null | package com.example.weather_app.Activities
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import android.os.Build
import android.os.Bundle
import android.view.View... | 0 | Kotlin | 0 | 0 | 84cc007891f2d1c6e1c1018b3988cb8d3aee03aa | 10,364 | Weather-Android-App | MIT License |
common/workers/impl/src/test/kotlin/ss/workers/impl/WorkSchedulerImplTest.kt | Adventech | 65,243,816 | false | null | /*
* Copyright (c) 2023. Adventech <info@adventech.io>
*
* 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, mod... | 5 | null | 43 | 150 | 139a78e37fe2121a7bd4918d30dc3ebfc47cdf3d | 2,407 | sabbath-school-android | MIT License |
feature/home/favorites/src/main/java/com/uragiristereo/mikansei/feature/home/favorites/favgroup/addto/core/CreateNewFavGroupButton.kt | uragiristereo | 583,834,091 | false | {"Kotlin": 978568} | package com.uragiristereo.mikansei.feature.home.favorites.favgroup.addto.core
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Tex... | 3 | Kotlin | 2 | 62 | 4f136b0479ee7772f3d7ba48927cef9389d5c2be | 1,158 | Mikansei | Apache License 2.0 |
kanarinho-core/src/commonMain/kotlin/net/rafaeltoledo/kanarinho/validator/BoletoValidator.kt | rafaeltoledo | 619,258,647 | false | null | package net.rafaeltoledo.kanarinho.validator
import net.rafaeltoledo.kanarinho.DigitFor
import net.rafaeltoledo.kanarinho.formatter.Formatter.Patterns.NUMBERS_ONLY
class BoletoValidator : Validator {
internal val digitForMod10 = DigitFor(
mod = 10,
multipliers = listOf(2, 1),
shouldSumIndividually = tr... | 2 | Kotlin | 0 | 0 | cd5d184920b5ec88e77a3c7d72064e0ec40fbc12 | 4,500 | kanarinho | Apache License 2.0 |
test-utils/src/commonMain/kotlin/mock/bluetooth/device/MockDeviceConnectionManager.kt | splendo | 191,371,940 | false | null | /*
Copyright 2021 Splendo Consulting B.V. The Netherlands
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... | 91 | null | 5 | 93 | cd0f3a583efb69464aa020d206f598c6d15a0899 | 5,921 | kaluga | Apache License 2.0 |
app/src/main/java/posidon/android/loader/demo/MainActivity.kt | lposidon | 351,212,541 | false | {"Kotlin": 37152} | package posidon.android.loader.demo
import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundl... | 0 | Kotlin | 1 | 2 | fe839a52182fbefaf312e7cd9e11e1c75d14b00a | 931 | android.loader | Apache License 2.0 |
psa-tracker/src/main/java/com/psaanalytics/psa/util/Basis.kt | amanbhobhria | 843,286,635 | false | {"Kotlin": 1279902, "Java": 37556, "Shell": 78} | /*
* Copyright (c) 2015-present PSA Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.... | 0 | Kotlin | 0 | 0 | e4f2c6014ead0b95a82559d03954a24bcf5f7dfa | 965 | psa-tracker | Apache License 2.0 |
build-tools/agp-gradle-api/src/main/java/com/android/build/api/dsl/BundleCountrySet.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8896058, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 1,028 | androlabs | Apache License 2.0 |
src/main/kotlin/util/StateUtils.kt | restorer | 415,615,238 | false | null | package util
inline fun <T, R> mapChangedIndexed(
source: R,
list: List<T>,
itemTransformer: (Int, T) -> T?,
changedTransformer: (List<T>) -> R
): R {
list.forEachIndexed { index, item ->
val transformedItem = itemTransformer(index, item)
if (transformedItem != null) {
... | 0 | Kotlin | 0 | 0 | cdb27c24e1933180e46a3bd7d13663b8ec2ac22f | 1,118 | todoapp | MIT License |
infobip-rtc-ui/src/main/java/com/infobip/webrtc/ui/view/styles/IncomingCallMessageStyle.kt | infobip | 56,227,769 | false | {"Java": 1840765, "Kotlin": 396033, "HTML": 8111, "Shell": 2447} | package com.infobip.webrtc.ui.view.styles
import android.content.Context
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.annotation.StyleRes
import androidx.core.content.ContextCompat
import com.infobip.webrtc.ui.R
import com.infobip.webrtc.ui... | 6 | Java | 17 | 51 | 3fd34f50d810fb21108a0aebc08fdd4b4d8ef99e | 2,439 | mobile-messaging-sdk-android | Apache License 2.0 |
ScalerAndroidPlugin/src/main/kotlin/dev/danperez/sgp/util/HasConfigurablevalues.kt | danielPerez97 | 711,319,077 | false | {"Kotlin": 62737} | package dev.danperez.sgp.util
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.provider.ListProperty
import org.gradle.api.provider.MapProperty
import org.gradle.api.provider.Property
import org.gradle.api.provider.Provider
import org.gradle.api.provider.SetProperty
/*
* APIs adapted from ... | 2 | Kotlin | 0 | 8 | 41c5a9e0c3091e8aa08ef57f23f48b572c618bd8 | 1,871 | Scaler | Apache License 2.0 |
app/src/main/java/com/appdate/agendamento/adapter/GeneralItem.kt | joaoplay16 | 274,756,573 | false | null | package com.appdate.agendamento.adapter
import com.google.firebase.firestore.DocumentSnapshot
class GeneralItem : ListItem() {
var documentSnapshot: DocumentSnapshot? = null
override fun getType(): Int {
return TYPE_GENERAL
}
} | 0 | null | 0 | 3 | 361edf99ed0704135a77355abff1dcc698be39e2 | 250 | setime | The Unlicense |
src/main/kotlin/br/com/gamemods/nbtmanipulator/NbtUtil.kt | PowerNukkit | 188,149,180 | false | {"Git Config": 1, "Gradle Kotlin DSL": 2, "Markdown": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Java": 1, "Kotlin": 35, "YAML": 2, "SCSS": 1} | @file:JvmName("NbtUtil")
@file:JvmMultifileClass
package br.com.gamemods.nbtmanipulator
internal const val BYTE_TRUE: Byte = 1
internal inline fun <reified Nbt: NbtTag> NbtList<*>.cast(): NbtList<Nbt> {
/*check(Nbt::class == NbtTag::class) {
"NbtTag is not a valid type for NbtList"
}*/
if (isNot... | 1 | Kotlin | 1 | 9 | b63a1bd4a406310097e314ef911650026dd812cb | 532 | NBT-Manipulator | MIT License |
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/matchplay/GamesWonStatistic.kt | autoreleasefool | 28,992,199 | false | null | package ca.josephroque.bowlingcompanion.statistics.impl.matchplay
import android.os.Parcel
import android.os.Parcelable
import ca.josephroque.bowlingcompanion.R
import ca.josephroque.bowlingcompanion.common.interfaces.parcelableCreator
import ca.josephroque.bowlingcompanion.matchplay.MatchPlayResult
import ca.josephro... | 30 | null | 5 | 6 | be42ac42d6c842b3126a8841990e5f9c8c6af232 | 1,705 | bowling-companion | Apache License 2.0 |
mottak/src/main/kotlin/no/nav/melosys/soknadmottak/kopi/KopiService.kt | navikt | 237,944,590 | false | null | package no.nav.melosys.soknadmottak.kopi
import io.github.oshai.kotlinlogging.KotlinLogging
import no.altinn.services.serviceengine.correspondence._2009._10.InsertCorrespondenceBasicV2
import no.nav.melosys.soknadmottak.common.IntegrasjonException
import no.nav.melosys.soknadmottak.kopi.altinn.KorrespondanseService
im... | 9 | null | 0 | 2 | 41f10d2c737bce7c79296a84a49de4a1d8fccd3b | 2,168 | melosys-soknad-mottak | MIT License |
bungee/src/main/java/catmoe/fallencrystal/moefilter/network/bungee/handler/BungeePacketHandler.kt | CatMoe | 638,486,044 | false | null | package catmoe.fallencrystal.moefilter.network.bungee.handler
import catmoe.fallencrystal.moefilter.api.event.events.channel.ClientBrandPostEvent
import catmoe.fallencrystal.moefilter.check.brand.BrandCheck
import catmoe.fallencrystal.moefilter.check.info.impl.Brand
import catmoe.fallencrystal.moefilter.check.info.imp... | 3 | null | 0 | 21 | 5a0f321eafffd1247a84e4a7e12d4efb50226368 | 7,037 | MoeFilter | Apache License 2.0 |
src/main/kotlin/cn/soybean/infrastructure/persistence/converters/JsonStringListConverter.kt | soybeanjs | 467,859,867 | false | {"HTML": 244772, "Kotlin": 201575, "Makefile": 571} | package cn.soybean.framework.infrastructure.converters
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter
@Converter
class JsonToListConverter : AttributeConverter<List<String>, String> {
override fun convertToDatabaseColumn(attribute: List<String>?): String? =
when {
... | 4 | HTML | 86 | 199 | 3eea820111005ceed9baa9dba9b3e9fd6ace6bd2 | 640 | soybean-admin-java | MIT License |
plugin-bazel/src/main/kotlin/org/jetbrains/bazel/languages/starlark/StarlarkBundle.kt | JetBrains | 826,262,028 | false | {"Kotlin": 3064918, "Starlark": 370388, "Java": 165158, "Scala": 37245, "Python": 34754, "Lex": 17493, "Dockerfile": 8674, "Shell": 7379, "HTML": 1310, "Rust": 680, "Go": 428, "C++": 113} | package org.jetbrains.bazel.languages.starlark
import com.intellij.DynamicBundle
import org.jetbrains.annotations.Nls
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.PropertyKey
@NonNls
const val BUNDLE = "messages.StarlarkBundle"
object StarlarkBundle : DynamicBundle(BUNDLE) {
@Nls
@Jvm... | 2 | Kotlin | 18 | 45 | 1d79484cfdf8fc31d3a4b214655e857214071723 | 470 | hirschgarten | Apache License 2.0 |
CoreModule/kotlin-common/src/main/java/com/kymjs/kotlin/common/extension/ExtensionActivity.kt | kymjs | 62,119,118 | false | null | package com.kymjs.kotlin.common.extension
import android.app.Activity
import android.view.View
import android.widget.Toast
/**
* Created by ZhangTao on 7/1/16.
*/
fun <T : View> Activity.find(id: Int): T = findViewById(id) as T
fun Activity.toast(text: CharSequence): Unit = Toast.makeText(this, text, Toast.LENGTH... | 0 | null | 14 | 39 | dabbd6bc8f0e598cafd0171a1fedc4c75bbeaa73 | 440 | CoreModule | Apache License 2.0 |
src/main/kotlin/xyz/nightfury/commands/admin/CustomCommandCmd.kt | NightFuryBot | 93,881,665 | false | null | /*
* Copyright 2017-2018 <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 | 6 | 6644cf54e64ded25f9c5a5ba113b610f3595e251 | 7,315 | NightFury | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/calculatereleasedatesapi/enumerations/CalculationRule.kt | ministryofjustice | 387,841,000 | false | null | package uk.gov.justice.digital.hmpps.calculatereleasedatesapi.enumerations
enum class CalculationRule {
HDCED_GE_12W_LT_18M,
HDCED_GE_18M_LT_4Y,
HDCED_MINIMUM_14D,
TUSED_LICENCE_PERIOD_LT_1Y,
LED_CONSEC_ORA_AND_NON_ORA,
UNUSED_ADA,
IMMEDIATE_RELEASE
}
| 0 | Kotlin | 0 | 1 | a0450c60527bf0a0b2397532dd0fc910ad3c27b1 | 267 | calculate-release-dates-api | MIT License |
forge/src/main/kotlin/juuxel/adorn/platform/forge/block/entity/BrewerBlockEntityForge.kt | Juuxel | 182,782,106 | false | null | package juuxel.adorn.platform.forge.block.entity
import juuxel.adorn.block.entity.BrewerBlockEntity
import juuxel.adorn.fluid.FluidReference
import net.minecraft.block.BlockState
import net.minecraft.fluid.Fluid
import net.minecraft.nbt.NbtCompound
import net.minecraft.util.math.BlockPos
import net.minecraft.util.math... | 46 | null | 27 | 50 | 1ca4476782e79aa9d6c64425cb6480bc6e31b250 | 3,378 | Adorn | MIT License |
src/When.kt | davcodee | 172,818,025 | false | null | fun main(args: Array<String>) {
typeData("Hola mundo ")
typeData(Persona("David"))
typeData(9)
typeData(true)
println(openTheDoor(Persona("David")))
println(openTheDoor(Persona("Monica")))
println(openTheDoor(Persona("Testigo de jehova")))
println(rango(5))
}
/*Ejemplo de función qu... | 0 | Kotlin | 0 | 0 | d061abc4270c07851eeb8c29181bfdd3c0063f4a | 993 | projects_kotlin | The Unlicense |
src/main/kotlin/nz/ahw/kompat/time/Year.kt | alexwestphal | 115,575,147 | false | {"Kotlin": 56067} | /*--------------------------------------------------------*\
** **
** kompat-time: Kompatibility for Java Time **
** Kotlin Compatibility Project (Kompat) **
** Copyright 2017-2018, <NAME> **
** https://gith... | 0 | Kotlin | 0 | 0 | 06b8af3ec0f84762b21045d25f589921e58adbed | 1,035 | kompat-time | Apache License 2.0 |
lib-mongo-utils/src/main/kotlin/idlab/obelisk/utils/mongo/query/QueryUtils.kt | idlab-discover | 495,291,260 | false | {"Kotlin": 991383, "TypeScript": 611297, "HTML": 425219, "SCSS": 73991, "Smarty": 38291, "JavaScript": 8320, "Mustache": 3827, "CSS": 2879, "Shell": 2342, "Dockerfile": 382, "Batchfile": 41} | package idlab.obelisk.utils.mongo.query
import idlab.obelisk.definitions.*
import idlab.obelisk.utils.mongo.UNICODE_DOT
import io.vertx.core.json.JsonArray
import io.vertx.core.json.JsonObject
import java.lang.IllegalArgumentException
private fun Field.mongoField(): String {
return if (this.path.size == 1 && this... | 21 | Kotlin | 0 | 6 | 208ff597c13cedd0d273257982e0a8f6e98cc458 | 4,321 | obelisk | Apache License 2.0 |
LargeDynamicProject/featureA/baseA/src/main/java/com/devrel/experiment/large/dynamic/feature/a/Foo1091.kt | skimarxall | 212,285,318 | false | null | package com.devrel.experiment.large.dynamic.feature.common.a
annotation class Foo1091Fancy
@Foo1091Fancy
class Foo1091 {
fun foo0(){
Foo1090().foo8()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
fun foo4(){
foo3()
}
fun foo5(){
foo4()
}
fun f... | 1 | null | 1 | 1 | e027d45a465c98c5ddbf33c68deb09a6e5975aab | 403 | app-bundle-samples | Apache License 2.0 |
app/src/main/java/org/simple/clinic/storage/migrations/Migration_101.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.storage.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import org.simple.clinic.storage.inTransaction
import javax.inject.Inject
@Suppress("ClassName")
class Migration_101 @Inject constructor() : Migration(100, 101) {
override fun migra... | 13 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 911 | simple-android | MIT License |
java/src/main/kotlin/org/taymyr/lagom/elasticsearch/search/dsl/query/joining/NestedQuery.kt | taymyr | 150,331,593 | false | null | package org.taymyr.lagom.elasticsearch.search.dsl.query.joining
import org.taymyr.lagom.elasticsearch.search.dsl.query.Query
/**
* See [Elasticsearch Docs](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-nested-query.html)
*/
data class NestedQuery(val nested: NestedQueryBody) : JoiningQue... | 0 | null | 9 | 8 | e3795a163b4053c2a7015291520c95aa073d50c7 | 1,063 | lagom-elasticsearch-client | Apache License 2.0 |
starter/src/main/kotlin/com/github/fonimus/actuator/site/ActuatorSiteAutoConfiguration.kt | fonimus | 153,996,290 | false | {"JavaScript": 159286, "Vue": 79036, "TypeScript": 11299, "Kotlin": 6911, "HTML": 2139, "CSS": 1881, "Shell": 1292} | package com.github.fonimus.actuator.site
import org.slf4j.LoggerFactory
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springfr... | 0 | JavaScript | 1 | 5 | b15c9e192da8ab63c132ff511bf2a7f82e2d8cd2 | 1,891 | actuator-site-spring-boot | Apache License 2.0 |
app/src/main/java/com/google/firebase/codelab/fcmandfiam/MainActivity.kt | FirebaseExtended | 306,753,957 | false | null | // Copyright 2020 Google LLC
//
// 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 ... | 1 | Kotlin | 3 | 3 | f4a333c352d5675029b8c419d34f03885322de87 | 1,277 | codelab-fcm-and-fiam | Apache License 2.0 |
app/src/main/java/com/supplier/sl_delivery/modals/Merchant.kt | aMujeeb | 255,690,445 | false | null | package com.supplier.sl_delivery.modals
import android.text.TextUtils
import androidx.lifecycle.MutableLiveData
import com.supplier.sl_delivery.rest.APIClient
import com.supplier.sl_delivery.rest.responses.LoginResponse
import com.supplier.sl_delivery.rest.responses.MerchantRegisterResponse
import com.supplier.sl_deli... | 0 | Kotlin | 0 | 1 | 061f2065589c385b18c3a8df9e27efa9a5eec265 | 1,557 | SL_Delivery | Apache License 2.0 |
ui-common/src/main/java/sk/kasper/ui_common/tag/MapToUiTag.kt | ValterKasper | 253,570,488 | false | null | package sk.kasper.ui_common.tag
fun interface MapToUiTag {
operator fun invoke(tagId: Long): FilterTag
} | 1 | Kotlin | 14 | 131 | 2fadfa5596b255508d0bf8ece61e00a6c0f0aef2 | 109 | space-app | Apache License 2.0 |
wallet-sdk/src/main/java/com/metaverse/world/wallet/sdk/repository/network/response/asset/PriceResponse.kt | FNCYchain | 676,828,824 | false | null | package com.metaverse.world.wallet.sdk.repository.network.response.asset
import com.metaverse.world.wallet.sdk.model.asset.FncyPrice
import com.metaverse.world.wallet.sdk.repository.network.serialization.BigDecimalSerializer
import kotlinx.serialization.Serializable
import java.math.BigDecimal
@Serializable
internal ... | 0 | Kotlin | 1 | 0 | 0b07766840a014acb3baaa892f7257f0e03eb92f | 1,204 | fncy-wallet-android-sdk | Apache License 2.0 |
nativechain/src/main/kotlin/com/sys1yagi/http/NativeChainHttpServer.kt | sys1yagi | 116,396,177 | false | null | package com.sys1yagi.http
import com.google.gson.Gson
import com.sys1yagi.NativeChain
import com.sys1yagi.util.DefaultTimeProvider
import com.sys1yagi.util.GsonConverter
import com.sys1yagi.websocket.server.NativeChainWebSocketServer
import com.sys1yagi.websocket.Peer
import io.ktor.application.call
import io.ktor.htt... | 0 | Kotlin | 2 | 4 | b106c8beb2449ff1760dee71fba4349940475b18 | 2,606 | nativechain-kotlin | MIT License |
src/test/kotlin/tech/relaycorp/relaynet/SessionKeyTest.kt | relaycorp | 171,718,724 | false | {"Kotlin": 543225} | package tech.relaycorp.relaynet
import java.security.PublicKey
import kotlin.test.assertContentEquals
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertNotEquals
import org.bouncycastle.asn1.ASN1TaggedObject
import org.bouncycastle.asn1.DERNull
import org.bouncycastle.asn1.DEROcte... | 10 | Kotlin | 0 | 2 | 7b7a4d05c74a9b52830aaa2aa58a7b01c020a0a2 | 7,204 | awala-jvm | Apache License 2.0 |
app/src/main/java/chat/rocket/android/favoritemessages/di/FavoriteMessagesFragmentModule.kt | dachnikrus | 137,054,537 | true | {"Kotlin": 762677, "Shell": 2737} | package chat.rocket.android.chatroom.di
import androidx.lifecycle.LifecycleOwner
import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.dagger.scope.PerFragment
import chat.rocket.android.favoritemessages.presentation.FavoriteMessagesView
import chat.rocket.android.favoritemessages.ui.Favo... | 0 | Kotlin | 0 | 0 | 1ed6c276d1440e8643a0560ba89ab9db58c7cf55 | 989 | Rocket.Chat.Android | MIT License |
app/src/main/kotlin/edu/stanford/bdh/engagehf/health/components/TimeRangeDropdown.kt | StanfordSpezi | 787,513,636 | false | {"Kotlin": 1160903, "Ruby": 1769, "Shell": 212} | package edu.stanford.bdh.engagehf.health.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDropDown
imp... | 21 | Kotlin | 2 | 8 | 33d089324ba5eea8260457f83df4c1a94f6389de | 3,079 | SpeziKt | MIT License |
src/test/kotlin/org/lexem/angmar/analyzer/nodes/descriptive/selectors/NameSelectorAnalyzerTest.kt | lexemlang | 184,409,059 | false | {"Kotlin": 3049940} | package org.lexem.angmar.analyzer.nodes.descriptive.selectors
import org.junit.jupiter.api.*
import org.lexem.angmar.analyzer.*
import org.lexem.angmar.analyzer.data.primitives.*
import org.lexem.angmar.analyzer.data.referenced.*
import org.lexem.angmar.io.readers.*
import org.lexem.angmar.parser.descriptive.selectors... | 0 | Kotlin | 0 | 2 | 45fb563507a00c3eada89be9ab6e17cfe1701958 | 7,445 | angmar | MIT License |
src/main/kotlin/fi/aalto/cs/apluscourses/utils/SubmissionResultUtil.kt | Aalto-LeTech | 229,264,372 | false | {"Kotlin": 311653, "Python": 15177, "Shell": 2709} | package fi.aalto.cs.apluscourses.utils
import fi.aalto.cs.apluscourses.MyBundle.message
import fi.aalto.cs.apluscourses.model.exercise.SubmissionResult
object SubmissionResultUtil {
/**
* Creates a status text for a submission result.
*/
fun getStatus(submissionResult: SubmissionResult): String {
... | 15 | Kotlin | 7 | 16 | a1e2a0e95360cd1f3b84503cdfe6e3fbd62a7844 | 851 | aplus-courses | MIT License |
app/src/main/java/io/github/thwisse/languagedecks/MainActivity.kt | thwisse | 854,450,403 | false | {"Kotlin": 44550} | package io.github.thwisse.languagedecks
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.EditText
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app... | 0 | Kotlin | 0 | 0 | 6283ebe1e7444e1dccc73a328ed08e2cda29374b | 5,644 | LanguageDecks | Apache License 2.0 |
library/src/main/java/id/co/ionsoft/randomnumberanimationlibrary/internal/Randomizer.kt | IONsoft-Indonesia | 116,271,540 | false | null | /*
* MIT License
*
* Copyright (c) 2018 PT. IONsoft
*
* 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 | 5 | 29 | d70b946338d6f988342c805b4c9294436673855c | 1,982 | RandomNumberAnimation | MIT License |
encodings/src/main/kotlin/msg/encodings/delimiters/Int32PrefixedByteArrayIterator.kt | MarkOSIndustries | 107,061,415 | false | {"Kotlin": 136360, "JavaScript": 116828, "HTML": 6120, "Dockerfile": 3104, "Shell": 1504, "Batchfile": 366} | package msg.encodings.delimiters
import java.io.DataInputStream
import java.io.InputStream
class Int32PrefixedByteArrayIterator(inputStream: InputStream) : Iterator<ByteArray> {
private val input = DataInputStream(inputStream)
private var hasNext = true
private var nextMessageSize = tryGetNextMessageSize()
p... | 9 | Kotlin | 1 | 6 | a7bde01bae21085e36d971fc0ae994f1e2a41d5c | 667 | monosodium-glutamate | MIT License |
Browser/src/commonMain/kotlin/io/nacular/doodle/dom/SvgElement.kt | nacular | 108,631,782 | false | {"Kotlin": 3150677} | @file:Suppress("EXPECTED_EXTERNAL_DECLARATION", "WRONG_MODIFIER_TARGET")
package io.nacular.doodle.dom
internal expect external interface SVGBoundingBoxOptions: JsAny {
var fill : Boolean?
var stroke : Boolean?
var markers: Boolean?
var clipped: Boolean?
}
internal expect abstract external class SV... | 3 | Kotlin | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 1,887 | doodle | MIT License |
src/test/kotlin/com/thelastpickle/tlpcluster/containers/CassandraUnpackTest.kt | jsanda | 175,302,681 | true | {"Kotlin": 66681, "Shell": 12740} | package com.thelastpickle.tlpcluster.containers
import com.thelastpickle.tlpcluster.Context
import org.apache.commons.io.FileUtils
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.AfterEach
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.BeforeEach
import org.junit.jup... | 0 | Kotlin | 0 | 0 | 3632c9bbcd5301410ea30b23f159b97d2ff5cf84 | 2,244 | tlp-cluster | Apache License 2.0 |
android/src/ti/bottomsheet/DialogProxy.kt | hansemannn | 266,521,796 | false | null | package ti.bottomsheet
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.core.widget.NestedScrollView
import com.google.android.material.bottomsheet.BottomSheetDialog
import org.appcelerator.kroll.KrollDict
import org.appcelerator.kroll.KrollPropertyChange
import org.appcelerator.kroll.K... | 1 | null | 1 | 7 | f26e10c3c2c4bf5ea00b4a3278ba9b04e8fc6715 | 4,297 | titanium-bottom-sheet | MIT License |
examples/chat/core/src/jsMain/kotlin/chat/core/components/widgets/TitledTextInput.kt | varabyte | 397,003,009 | false | {"FreeMarker": 43781} | package chat.core.components.widgets
import androidx.compose.runtime.Composable
import chat.core.G
import com.varabyte.kobweb.compose.dom.ElementRefScope
import com.varabyte.kobweb.compose.foundation.layout.Column
import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.graphics.Colors
impo... | 0 | FreeMarker | 4 | 11 | e3a220498e660e0c124d81a3370e30d8b2d10053 | 1,666 | kobweb-templates | Apache License 2.0 |
app/src/test/java/fake/FakeNetworkMarsPhotosRepository.kt | rennerbernabe | 746,502,965 | false | {"Kotlin": 22537} | package fake
import fake.example.marsphotos.data.MarsPhotosRepository
import fake.example.marsphotos.network.MarsPhoto
class FakeNetworkMarsPhotosRepository: MarsPhotosRepository {
override suspend fun getMarsPhotos(): List<MarsPhoto> {
return FakeDataSource.photosList
}
}
| 0 | Kotlin | 0 | 0 | 3fb94f46d4c2927238e38476b55fdebaa406364c | 292 | mars-photos | Apache License 2.0 |
app/src/main/java/com/kotlin/sacalabici/framework/views/activities/session/TermsAndConditionsActivity.kt | Saca-la-Bici | 849,110,267 | false | {"Kotlin": 595596} | import android.graphics.Color
import android.os.Bundle
import android.text.SpannableString
import android.text.Spanned
import android.text.style.ClickableSpan
import android.text.style.ForegroundColorSpan
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import andr... | 1 | Kotlin | 1 | 1 | b8a06baa119ffb0d355d1ae7fe7e607bb8f1c52c | 3,086 | app-android | MIT License |
app/src/main/java/mwvdev/berightthere/android/injection/RepositoryModule.kt | mwvdev | 336,762,028 | false | null | package mwvdev.berightthere.android.injection
import dagger.Binds
import dagger.Module
import mwvdev.berightthere.android.repository.ITripRepository
import mwvdev.berightthere.android.repository.TripRepository
@Module(includes = [NetworkModule::class, UtilityModule::class])
abstract class RepositoryModule {
@Bin... | 0 | Kotlin | 0 | 0 | 1333ccc8613aa913bd1032e1ab6b851fdba46b53 | 409 | berightthere_android | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/proton/CfnServiceTemplateDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.proton
import io.cloudshiftdev.awscdkdsl.CfnTagDsl
import... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 5,865 | awscdk-dsl-kotlin | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/proton/CfnServiceTemplateDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.proton
import io.cloudshiftdev.awscdkdsl.CfnTagDsl
import... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 5,865 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/vultisig/wallet/ui/models/mappers/TokenValueToDecimalUiStringMapper.kt | vultisig | 789,965,982 | false | {"Kotlin": 1499938, "Ruby": 1713} | package com.vultisig.wallet.ui.models.mappers
import com.vultisig.wallet.data.mappers.MapperFunc
import com.vultisig.wallet.data.models.TokenValue
import timber.log.Timber
import java.math.BigDecimal
import java.math.RoundingMode
import java.text.DecimalFormat
import java.text.DecimalFormatSymbols
import java.util.Loc... | 44 | Kotlin | 2 | 6 | 98e6a0754d4872ce4d44fa4a631488d4f805397f | 2,100 | vultisig-android | Apache License 2.0 |
app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/network/ImageOptions.kt | BenchPressesBooks | 138,786,722 | true | {"Kotlin": 417509, "Java": 153646, "HTML": 8639} | package com.thanksmister.iot.mqtt.alarmpanel.network
import android.text.TextUtils
import dpreference.DPreference
import javax.inject.Inject
/**
* For original implementation see https://github.com/androidthings/sensorhub-cloud-iot.
*/
class ImageOptions @Inject
constructor(private val sharedPreferences: DPreferen... | 0 | Kotlin | 0 | 0 | 1df00dc2b51071adb2c4af8c68368c50e8f97bb3 | 2,787 | android-mqtt-alarm-panel | Apache License 2.0 |
presentation/src/main/java/arcus/presentation/ble/BleConnector.kt | arcus-smart-home | 168,191,380 | false | null | /*
* Copyright 2019 Arcus 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 applicable law or a... | 6 | Java | 27 | 27 | 845b23b6ee913c58e009914e920242e29d0b137a | 3,456 | arcusandroid | Apache License 2.0 |
src/main/kotlin/br/com/zup/account/Account.kt | walteralleyz | 357,188,466 | true | {"Gradle Kotlin DSL": 2, "Dockerfile": 1, "INI": 5, "Shell": 1, "YAML": 3, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 64, "Protocol Buffer": 121, "XML": 20, "Java": 102, "SQL": 4, "Motorola 68K Assembly": 1, "HTML": 17, "CSS": 2, "JavaScript": 1, "Java Properties": 1} | package br.com.zup.account
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table
@Entity
@Table(name = "accounts")
class Account(
@Id
val id: String,
val client: String,
val cpf: String,
val bank: String,
val ispb: String,
val branch: String,
val ac... | 0 | Java | 0 | 0 | 269d18b4e0d14c5950ce7b776661ffb9cb26e308 | 818 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
core/src/main/java/io/horizontalsystems/core/security/EncryptionManager.kt | horizontalsystems | 142,825,178 | false | {"Kotlin": 5050886, "Shell": 6112, "Ruby": 1350} | package io.horizontalsystems.core.security
import io.horizontalsystems.core.IEncryptionManager
import io.horizontalsystems.core.IKeyProvider
class EncryptionManager(private val keyProvider: IKeyProvider) : IEncryptionManager {
@Synchronized
override fun encrypt(data: String): String {
return CipherWr... | 168 | Kotlin | 364 | 895 | 218cd81423c570cdd92b1d5161a600d07c35c232 | 513 | unstoppable-wallet-android | MIT License |
src/main/kotlin/org/jitsi/jicofo/TaskPools.kt | jitsi | 26,950,457 | false | null | /*
* Jicofo, the Jitsi Conference Focus.
*
* Copyright @ 2020 - present 8x8, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | 79 | null | 321 | 272 | 99c221ffb826d43ea0d04b5aefa1fffd7962794b | 1,394 | jicofo | Apache License 2.0 |
app/src/main/java/com/github/vase4kin/teamcityapp/navigation/view/NavigationAdapter.kt | vase4kin | 68,111,887 | false | {"Gradle": 29, "JSON": 2, "Java Properties": 2, "Markdown": 6, "Shell": 1, "Ignore List": 26, "Batchfile": 1, "Text": 1, "YAML": 5, "INI": 24, "Proguard": 25, "XML": 228, "Java": 33, "Kotlin": 580, "HTML": 1, "Gradle Kotlin DSL": 1} | /*
* Copyright 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 wri... | 0 | Kotlin | 11 | 52 | 9abb1ed56c127d64679124c38d30b0014ec024de | 2,674 | TeamCityApp | Apache License 2.0 |
backend.native/tests/codegen/enum/loop.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 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 codegen.enum.loop
import kotlin.test.*
enum class Zzz {
Z {
init {
println(Z.name)
}
}
}
@Test fun runTest() {
printl... | 0 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 330 | kotlin-native | Apache License 2.0 |
ui-programs/src/main/java/com/gerosprime/gylog/ui/programs/detail/adapter/ProgramDetailViewHolder.kt | gerosprime | 213,372,637 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 11, "Batchfile": 1, "Markdown": 1, "INI": 9, "Proguard": 10, "Kotlin": 326, "XML": 133, "Java": 11} | package com.gerosprime.gylog.ui.programs.detail.adapter
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.gerosprime.gylog.base.OnItemClickListener
import com.gerosprime.gylog.models.workouts.WorkoutEntity
import com.gerosprime.gylog.ui.programs.R
import com.gerosprime.gylog.ui.progr... | 0 | Kotlin | 0 | 1 | a775377e6a8bdb81e405eb1b04ca5fd14f5dd9c6 | 1,410 | gylog-android-app | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspectionsLocal/replaceCollectionCountWithSize/differentCount.kt | ingokegel | 72,937,917 | true | null | // PROBLEM: none
// WITH_STDLIB
class Foo {
fun count() = 0
}
fun foo() {
Foo().<caret>count()
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 107 | intellij-community | Apache License 2.0 |
ui/src/main/java/cn/lvsong/lib/ui/ViewModelExt.kt | Jooyer | 243,921,264 | false | null | package cn.lvsong.lib.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlin.coroutines.CoroutineContext
/** https://blog.c... | 0 | Kotlin | 3 | 9 | da74777556a9cd278ba7a36f30db18393874caee | 750 | Basics | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.