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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lib_base/src/main/java/com/cmj/wanandroid/lib/base/kt/Result.kt | mikechenmj | 590,477,705 | false | null | package com.cmj.wanandroid.lib.base.kt
import android.content.Context
import com.alibaba.android.arouter.launcher.ARouter
import com.cmj.wanandroid.lib.base.router.RouterPath
import com.cmj.wanandroid.lib.network.bean.WAndroidResponse
import com.cmj.wanandroid.lib.network.bean.WAndroidResponse.Companion.CODE_UN_LOGGED... | 0 | Kotlin | 0 | 0 | 43d135cac7a1f425b06829a17ebef8a975b97c91 | 1,025 | WanAndroid | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/LoginScreen.kt | shijilkadambath | 347,338,317 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 1f94bda34c35878a8a9c6129407f26afb06dd907 | 6,089 | AndroidDevChallengeCompose3 | Apache License 2.0 |
src/main/kotlin/com/ebay/plugins/metrics/develocity/GatherHourlyTask.kt | eBay | 849,454,592 | false | {"Kotlin": 118165} | package com.ebay.plugins.metrics.develocity
import com.ebay.plugins.metrics.develocity.service.DevelocityService
import com.gabrielfeo.develocity.api.model.Build
import com.gabrielfeo.develocity.api.model.BuildModelName
import com.gabrielfeo.develocity.api.model.BuildQuery
import com.gabrielfeo.develocity.api.model.Bu... | 0 | Kotlin | 0 | 13 | d13e3e9e4e4f1caa994f3cf9e579e72871b062b5 | 8,364 | metrics-for-develocity-plugin | Apache License 2.0 |
src/main/kotlin/com/ebay/plugins/metrics/develocity/GatherHourlyTask.kt | eBay | 849,454,592 | false | {"Kotlin": 118165} | package com.ebay.plugins.metrics.develocity
import com.ebay.plugins.metrics.develocity.service.DevelocityService
import com.gabrielfeo.develocity.api.model.Build
import com.gabrielfeo.develocity.api.model.BuildModelName
import com.gabrielfeo.develocity.api.model.BuildQuery
import com.gabrielfeo.develocity.api.model.Bu... | 0 | Kotlin | 0 | 13 | d13e3e9e4e4f1caa994f3cf9e579e72871b062b5 | 8,364 | metrics-for-develocity-plugin | Apache License 2.0 |
src/main/kotlin/year2022/day17/Problem.kt | Ddxcv98 | 573,823,241 | false | {"Kotlin": 108923} | package year2022.day17
import IProblem
import kotlin.math.max
import kotlin.math.min
class Problem : IProblem {
private val jets = javaClass
.getResource("/2022/17.txt")!!
.readText()
.trim()
.toCharArray()
private fun cycleSize(matrix: Array<BooleanArray>, i: Int, j: Int): In... | 0 | Kotlin | 0 | 0 | 820593d8cc999d7e4ae79035b6a017515b0734b5 | 3,000 | advent-of-code | The Unlicense |
app/src/main/java/com/letter/schedule/course/TimeItemView.kt | NevermindZZT | 239,067,636 | false | null | package com.letter.schedule.course
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import com.letter.schedule.R
import kotlinx.android.synthetic.main.layout_course_time_item.view.*
/**
* 课程时间View
*
* @pro... | 0 | Kotlin | 0 | 2 | d91b9e20bbf0284e86d6ec36c70c3332962a1510 | 1,386 | Schedule | MIT License |
adapters/rxjava3/src/main/kotlin/xyz/urbanmatrix/mavlink/adapters/rxjava3/Rx3MavConnection.kt | urbanmatrix | 484,943,163 | false | null | package xyz.urbanmatrix.mavlink.adapters.rxjava3
import xyz.urbanmatrix.mavlink.api.MavFrame
import xyz.urbanmatrix.mavlink.api.MavMessage
import io.reactivex.rxjava3.annotations.CheckReturnValue
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Flowable
public interface Rx3MavConnection {... | 1 | Kotlin | 4 | 9 | 8f480256eeaac5755a2ce5582c338a4b30c7e178 | 1,082 | mavlink-kotlin | Apache License 2.0 |
app/src/main/java/com/hansoft/tryweather/logic/model/Location.kt | michael20192020 | 621,281,219 | false | null | package com.hansoft.tryweather.logic.model
data class Location(val lng: String, val lat: String)
| 0 | Kotlin | 0 | 0 | 829586c563f6386761b32ef29ac3a9612b0fab96 | 98 | tryweather | Apache License 2.0 |
src/main/kotlin/ch/unil/pafanalysis/common/HeaderMaps.kt | UNIL-PAF | 419,229,519 | false | null | package ch.unil.pafanalysis.common
import ch.unil.pafanalysis.results.model.ResultType
object HeaderMaps {
val maxQuant = mapOf(
"id" to "id",
"prot" to "Majority.protein.IDs",
"gene" to "Gene.names",
"desc" to "Protein.names"
)
val spectronaut = mapOf(
"prot" to "... | 0 | Kotlin | 0 | 0 | 6b71e3e2ed532185e42d535c775f28ccce023c64 | 562 | paf-analysis-backend | MIT License |
backend/feature-services/src/test/kotlin/at/sensatech/openfastlane/domain/entitlements/EntitlementsServiceImplTest.kt | sensatech | 724,093,399 | false | {"Kotlin": 442921, "Dart": 408727, "HTML": 5563, "FreeMarker": 2659, "Dockerfile": 946, "Shell": 554} | package at.sensatech.openfastlane.domain.entitlements
import at.sensatech.openfastlane.common.newId
import at.sensatech.openfastlane.documents.FileResult
import at.sensatech.openfastlane.documents.pdf.PdfGenerator
import at.sensatech.openfastlane.domain.assertDateTime
import at.sensatech.openfastlane.domain.config.Res... | 0 | Kotlin | 1 | 1 | f80421a9db7a2b3b4fee71ebc9724789623d74bd | 38,956 | openfastlane | Apache License 2.0 |
apps/mobile_app/src/main/kotlin/dev/marlonlom/apps/mocca/ui/main/MainActivity.kt | marlonlom | 700,962,032 | false | {"Kotlin": 115473} | /*
* Copyright 2023 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.mocca.ui.main
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.vie... | 1 | Kotlin | 0 | 0 | fb05e9835c7807cd276e005f6ac1bf91e92b2e5a | 4,068 | mocca | Apache License 2.0 |
src/main/kotlin/cz/f0lik/zoumi/configuration/SecurityConfiguration.kt | f0lik | 116,102,603 | false | null | package cz.f0lik.zoumi.configuration
import org.springframework.context.annotation.Configuration
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
import org.springframework.security.config.annotatio... | 0 | Kotlin | 0 | 0 | dbd18649fa3c297ccc69958e6dbcd63cb6a3c7e1 | 779 | zoumi | MIT License |
idea-plugin/vkompose/src/main/kotlin/com/vk/idea/plugin/vkompose/feature/stability/ComposeFunctionParamsStabilityAnnotator.kt | VKCOM | 727,630,590 | false | {"Kotlin": 292667, "Shell": 7341} | package com.vk.idea.plugin.vkompose.feature.stability
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.psi.PsiElement
import com.intellij.p... | 0 | Kotlin | 5 | 198 | a50c98c169d07c547234a85d8be57e703f3b5645 | 11,615 | vkompose | MIT License |
app/src/main/kotlin/com/hermesjunior/imagesearcher/ui/results/ResultsFragment.kt | OHermesJunior | 289,141,195 | false | null | package com.hermesjunior.imagesearcher.ui.results
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.*
import android.webkit.URLUtil
import android.webkit.WebView
import android.webkit.WebView.HitTestResult
import androidx... | 8 | Kotlin | 4 | 9 | 7f4754d578defbac50db76146f941c8d18e0d1f4 | 4,482 | imagesearcher | Apache License 2.0 |
src/main/kotlin/pl/illegaldump/coordinates/extenstion/CoordinateExtension.kt | illegal-dump | 585,880,030 | false | null | package pl.illegaldump.coordinates.extenstion
import pl.illegaldump.coordinates.api.dto.CoordinateDto
import pl.illegaldump.coordinates.domain.Coordinate
import pl.illegaldump.coordinates.entity.CoordinateEntity
fun Coordinate.toCoordinateDto(): CoordinateDto = CoordinateDto(lat.toBigDecimal(), lng.toBigDecimal(), la... | 0 | Kotlin | 0 | 0 | 42384aa72ba263ad5e376807294d1d0dae33a79c | 410 | coordinates | MIT License |
src/main/kotlin/ru/spbstu/wheels/Collections.kt | kotlin-hub | 203,574,297 | true | {"Kotlin": 99489} | package ru.spbstu.wheels
inline fun <A, B, R> Iterable<A>.product(that: Iterable<B>, body: (A, B) -> R): List<R> {
val res = mutableListOf<R>()
for (a in this)
for (b in that)
res.add(body(a, b))
return res
}
infix fun <A, B> Iterable<A>.product(that: Iterable<B>): List<Pair<A, B>> = p... | 0 | Kotlin | 0 | 0 | 4119bfe1384ce5144526b8c1723abbc87b1e5582 | 1,005 | kotlin-wheels | MIT License |
app/src/main/java/com/istu/schedule/di/NetworkModule.kt | imysko | 498,018,609 | false | {"Kotlin": 747191} | package com.istu.schedule.di
import android.content.Context
import android.content.SharedPreferences
import com.istu.schedule.data.api.service.schedule.ClassroomsService
import com.istu.schedule.data.api.service.schedule.GroupsService
import com.istu.schedule.data.api.service.schedule.InstitutesService
import com.istu... | 1 | Kotlin | 0 | 2 | ebc331edebae2f6f38569a29c9c0b16773f7ede3 | 3,661 | Schedule-ISTU | MIT License |
src/main/kotlin/controllers/base/responses/BaseResponse.kt | booleanull | 176,114,644 | false | null | package controllers.base.responses
import com.google.gson.annotations.Expose
/**
@author boolenull on 17.03.2019
*/
open class BaseResponse(@Expose
val status: String,
@Expose
val error: String? = null,
@Expose(serialize... | 0 | Kotlin | 0 | 0 | 81b96a415efba567d404571b7f8fa7095f891eba | 375 | FoxramAlpha-Backend | MIT License |
app/src/main/java/com/rxjava2/android/samples/ui/operators/DisposableExampleActivity.kt | vivekvadodara | 236,360,897 | false | null | package com.rxjava2.android.samples.ui.operators
import android.os.Bundle
import android.os.SystemClock
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.rxjava2.android.samples.R
import com.rxjava2.an... | 0 | Kotlin | 0 | 0 | 612416ef87ad3d83dc18d3410398014677b17cc2 | 3,009 | rxkotlin_sample | Apache License 2.0 |
@old/computeRle.kt | korlibs | 77,343,418 | false | null | package com.soywiz.korio.util
inline fun <T, R : Any> Iterable<T>.computeRle(callback: (T) -> R): List<Pair<R, IntRange>> {
var first = true
var pos = 0
var startpos = 0
lateinit var lastRes: R
val out = arrayListOf<Pair<R, IntRange>>()
for (it in this) {
val current = callback(it)
if (!first) {
if (curre... | 15 | Kotlin | 33 | 349 | e9e89804f5682db0a70e58b91f469b49698dd72b | 537 | korio | MIT License |
app/src/main/java/com/example/slabber/data/DataHolder.kt | Wahabahmad694 | 477,558,751 | false | null | package com.example.slabber.data
import com.example.slabber.models.User
object DataHolder {
var to: User? = null
var chatUsers: List<User>? = null
} | 0 | Kotlin | 0 | 0 | d7f87252662fc50db0089810b231702eb5e97e35 | 158 | Slabber | Apache License 2.0 |
app/src/main/java/com/example/expensesplitter/activity/FriendStatusActivity.kt | IamRishabhGupta | 591,637,377 | false | null | package com.example.PocketManager.activity
import android.os.Bundle
import android.util.Log.e
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.PocketManager.Adapter.splitAdapter
import com.example.PocketManager.Co... | 0 | null | 0 | 2 | 664f4197ec1dd4cf0f8dcaa30791ce3b4e41a3a3 | 2,173 | expensesplitter | MIT License |
kcrypto/src/main/kotlin/org/bouncycastle/kcrypto/spec/EncGenSpec.kt | bcgit | 196,159,414 | false | {"Kotlin": 458444, "HTML": 419} | package org.bouncycastle.kcrypto.spec
import org.bouncycastle.kcrypto.EncryptionKey
import org.bouncycastle.kcrypto.KeyType
interface EncGenSpec {
val encType: KeyType<EncryptionKey>
} | 0 | Kotlin | 15 | 69 | dc86103f5fef1baf9f6e1cdff17bbf31927637ab | 190 | bc-kotlin | MIT License |
dbinspector/src/main/kotlin/com/infinum/dbinspector/data/shared/base/BaseStore.kt | infinum | 17,116,181 | false | null | package com.infinum.dbinspector.data.shared.base
import androidx.datastore.core.DataStore
import kotlinx.coroutines.flow.Flow
internal interface BaseStore<OutputModel> {
suspend fun store(): DataStore<OutputModel> = throw NotImplementedError()
suspend fun current(): OutputModel = throw NotImplementedError()... | 0 | Kotlin | 93 | 936 | 10b9ac5013ca01e602976a615e754dff7001f11d | 388 | android_dbinspector | Apache License 2.0 |
core/src/main/kotlin/kt/firmata/core/protocol/transport/ByteArrayOutputStreamTransport.kt | tiagohm | 734,739,135 | false | {"Kotlin": 102030, "C++": 2146} | package kt.firmata.core.protocol.transport
import java.io.ByteArrayOutputStream
abstract class ByteArrayOutputStreamTransport(size: Int = 32) : Transport, ByteArrayOutputStream(size) {
protected abstract fun flushBytes(bytes: ByteArray, size: Int)
@Synchronized
final override fun flush() {
flush... | 0 | Kotlin | 0 | 0 | 33654b7e31a4deb4e8f9aa5f1fb8bda748be984f | 362 | KtFirmata | MIT License |
test-kotlin/src/com/intellij/rt/coverage/kotlin/KotlinCoverageStatusSamplingTest.kt | bd007 | 346,274,106 | true | {"Java": 490489, "Kotlin": 91173, "Groovy": 3064} | /*
* Copyright 2000-2020 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | null | 0 | 0 | aa8732a091aff2efdcbec0f6df4c750185416a8f | 4,635 | intellij-coverage | Apache License 2.0 |
common/src/desktopMain/kotlin/com/liangguo/common/Resource.kt | ldh-star | 559,990,319 | false | null | package com.liangguo.common
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.painter.Painter
/**
* @author ldh
* 时间: 2022/10/26 17:53
* 邮箱: <EMAIL>
*/
@Composable
actual fun painterResource(res: String): Painter = androidx.compose.ui.res.painterResource(res)
| 0 | Kotlin | 0 | 8 | 1614097c4b70c5c0ff25c8623e6899c5ef1d79d5 | 296 | Translator-Compose-Multiplatform | Apache License 2.0 |
app/src/main/java/com/fivek/userapp/ui/home/HomeViewModel.kt | gssureshkumar | 538,489,936 | false | null | package com.fivek.userapp.ui.home
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.fivek.userapp.network.RetrofitInstance
import com.fivek.userapp.utils.ErrorResponseParser
import com.fivek.userapp.viewmodel.BaseViewModel
import com.fivek.userapp.viewmodel.response.GeneralResponse
im... | 0 | Kotlin | 0 | 0 | 5297ba6a1b99e01ad7da43a2058264662a40c6f9 | 3,437 | 5kcarcare | Apache License 2.0 |
src/main/kotlin/com/turbomates/kotlin/lsports/sdk/serializer/EnumWithValueSerializer.kt | turbomates | 447,160,415 | false | null | package com.turbomates.kotlin.lsports.sdk.serializer
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.encoding.Decoder... | 1 | Kotlin | 0 | 2 | c45f71be5b4bc4b8e2d305d3db9303b476cae6f7 | 1,043 | lsports-sdk-kotlin | MIT License |
buildSrc/src/main/kotlin/Plugins.kt | GrinGraz | 542,554,320 | false | {"Kotlin": 157747} | object Plugins {
data class Plugin(val name: String, val version: String)
val detekt = Plugin("io.gitlab.arturbosch.detekt", "1.20.0")
val ktLint = Plugin("org.jlleitschuh.gradle.ktlint", "10.2.1")
val junit5 = Plugin("de.mannodermaus.android-junit5", "1.8.2.1")
}
| 0 | Kotlin | 0 | 3 | 387474cad5676f24e2e08df8c19c4e679c22e7ad | 283 | marvelapp-android | Apache License 2.0 |
src/main/kotlin/no/nav/fo/veilarbregistrering/db/aktorIdCache/AktorIdCacheRepositoryImpl.kt | navikt | 131,013,336 | false | null | package no.nav.fo.veilarbregistrering.db.aktorIdCache
import no.nav.fo.veilarbregistrering.aktorIdCache.AktorIdCache
import no.nav.fo.veilarbregistrering.aktorIdCache.AktorIdCacheRepository
import no.nav.fo.veilarbregistrering.bruker.AktorId
import no.nav.fo.veilarbregistrering.bruker.Foedselsnummer
import no.nav.fo.v... | 16 | Kotlin | 4 | 5 | ff51365eb80b34a973f5fe89bddd69b1c8e5ce0e | 2,596 | veilarbregistrering | MIT License |
app/src/main/java/com/saitow/ui/bottomDrawer/BottomDrawerAdapter.kt | MostafaAnter | 292,961,452 | false | null | package com.saitow.ui.bottomDrawer
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.saitow.R
import com.saitow.da... | 0 | Kotlin | 0 | 0 | 116a46923d2939c5a62246597bae1b6cd7b0a759 | 2,498 | TaskMobile | Apache License 2.0 |
Basics/Kotlin/app/src/main/java/com/suavepirate/kotlinbasics/samples/NullManagement/Dog.kt | SuavePirate | 165,544,292 | false | {"C#": 15269, "Kotlin": 12666} | package com.suavepirate.kotlinbasics.samples.NullManagement
data class Dog(val name: String) {
var breed: Breed? = null
val breedLifespan
get() = breed?.averageLifeSpan ?: 0
val dangerousBreedLifespan
get() = breed!!.averageLifeSpan!!
}
data class Breed(val name: String, val averageLifeSpa... | 0 | C# | 1 | 8 | 7f9c64a2657fe06a8e4a5c8125bcd3dc93932594 | 328 | KotlinForCSharp | MIT License |
src/nativeCommonMain/kotlin/com/soywiz/dynarek2/D2MemoryNative.kt | kpspemu | 108,654,928 | false | {"Gradle": 1, "Gradle Kotlin DSL": 1, "JSON": 3, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "JavaScript": 3, "Markdown": 1, "Kotlin": 275, "INI": 2, "HTML": 3, "XML": 3, "SVG": 2, "Java": 30, "YAML": 2, "C": 61, "Unix Assembly": 3, "Makefile": 12, "Motorola 68K Assembly": 3, "C++": 8... | package com.soywiz.dynarek2
import kotlinx.cinterop.*
import platform.posix.*
actual class D2Memory(val buffer: CPointer<ByteVar>)
//actual typealias D2Memory = CPointer<ByteVar>
//inline val D2Memory.buffer get() = this.reinterpret<ByteVar>()
inline val D2Memory.ptr get() = buffer.reinterpret<ByteVar>()
inline val ... | 16 | Kotlin | 9 | 72 | 5ad15d161bef8baa40961ee508643306d933a50a | 1,171 | kpspemu | MIT License |
app/src/main/java/com/mappls/sdk/demo/kotlin/fragments/LocationFragmentKt.kt | mappls-api | 503,209,680 | false | null | package com.mappls.sdk.demo.kotlin.fragments
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget... | 2 | null | 3 | 6 | 9c99d32a2acb24c9947357701e4f507151ff59e1 | 2,270 | mappls-android-sdk | FSF All Permissive License |
tmp/results/JVM-Xnew-inference/BACKEND_sjaer.kt | mandelshtamd | 346,008,310 | true | {"Kotlin": 7965847} | class IcLong
class IcAny
class IcOverIc
fun testBoxed(
a: IcAny
) =
TODO().plus(a
::simple
).plus(TODO())
fun IcLong.simple(): String? = TODO()
fun IcOverIc.simple(): String? = TODO() | 1 | Kotlin | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 188 | kotlinWithFuzzer | Apache License 2.0 |
exercises/src/test/kotlin/de/iteratec/kotlin/basic/T16Coroutines.kt | iteratec | 190,216,048 | false | null | package de.iteratec.kotlin.basic
import kotlinx.coroutines.CancellationException
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.ReceiveChannel
impor... | 1 | null | 1 | 6 | 388f833f0c7c3693eb65708e6e5f77e032ac156b | 6,149 | kotlin-training-playground | Apache License 2.0 |
src/main/java/org/mtransit/android/commons/provider/gbfs/data/api/v3/GBFSManifestApiModel.kt | mtransitapps | 24,689,836 | false | {"Shell": 6, "Ant Build System": 1, "Gradle": 1, "Proguard": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "XML": 58, "Kotlin": 85, "Java": 245, "JSON": 1, "Protocol Buffer": 1, "SVG": 21} | package org.mtransit.android.commons.provider.gbfs.data.api.v3
import com.google.gson.annotations.SerializedName
import org.mtransit.android.commons.provider.gbfs.data.api.v3.GBFSManifestApiModel.GBFSDatasetsApiModel
import org.mtransit.android.commons.provider.gbfs.data.api.v3.common.GBFSCommonApiModel
import org.mtr... | 0 | Java | 3 | 4 | 3f7785acb499676fb40afbdc2a262161a955bcc2 | 1,368 | commons-android | Apache License 2.0 |
activitystarter-compiler/src/main/java/activitystarter/compiler/generation/ActivityGeneration.kt | wangzailfm | 111,484,537 | true | {"Kotlin": 104620, "Java": 7105, "Shell": 276} | package activitystarter.compiler.generation
import activitystarter.compiler.model.classbinding.ClassModel
import activitystarter.compiler.model.param.ArgumentModel
import activitystarter.compiler.utils.*
import com.squareup.javapoet.MethodSpec
import com.squareup.javapoet.TypeName
import com.squareup.javapoet.TypeSpec... | 0 | Kotlin | 0 | 1 | de5390e252285e5d4f1bd65366030c9d3c36e10c | 4,835 | ActivityStarter | Apache License 2.0 |
src/main/kotlin/org/kstore/demo/stars/menu/model/NewGameReaction.kt | minorbyte | 194,674,817 | false | null | package org.kstore.demo.stars.menu.model
import jline.console.ConsoleReader
import org.kstore.demo.stars.*
import org.springframework.stereotype.Component
import react.kstore.action.*
import javax.annotation.PreDestroy
@Component
class NewGameReaction(
maps: List<GameDescription>,
consoleReader: Conso... | 0 | Kotlin | 0 | 0 | b91a6a00d4e60a84dc8bceba5dd02c3aa352ca88 | 850 | kotlin-reactive-store | MIT License |
token-validation-spring/src/main/kotlin/no/nav/security/token/support/spring/validation/interceptor/BearerTokenClientHttpRequestInterceptor.kt | navikt | 124,397,000 | false | {"Java": 313412, "Kotlin": 207247} | package no.nav.security.token.support.spring.validation.interceptor
import no.nav.security.token.support.core.JwtTokenConstants.AUTHORIZATION_HEADER
import no.nav.security.token.support.core.context.TokenValidationContextHolder
import org.slf4j.LoggerFactory
import org.springframework.http.HttpRequest
import org.sprin... | 7 | Kotlin | 7 | 14 | 3be327ed5e2baad52b0f9b171e03668133ff5b10 | 1,447 | token-support | MIT License |
src/main/kotlin/io/articulus/fhir/generator/FhirRenderer.kt | taktik | 277,820,284 | false | {"Markdown": 2, "Maven POM": 1, "Text": 1, "Ignore List": 1, "Java": 2, "Java Properties": 1, "XML": 1, "Kotlin": 20} | package io.articulus.fhir.generator
open class FhirRenderer(private val spec: FhirSpec) {
fun build() {
FhirStructureDefinitionRenderer(spec).render()
//TestClassRenderer(spec)
}
}
| 1 | null | 1 | 1 | c8e7a6be6694c06c824aacc1a1268042104e1eb2 | 209 | kotlin-fhir-model-generator | Apache License 2.0 |
platform/core-api/src/com/intellij/openapi/application/ReadWriteActionSupport.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.application
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.ThrowableComputable
import org.jetbrains.annotations.ApiStatus.Internal
@Intern... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 740 | intellij-community | Apache License 2.0 |
app/src/main/java/br/com/afischer/fisl/extensions/ContextExtensions.kt | andfisbr | 140,753,331 | false | {"Kotlin": 136107, "Java": 1083} | package br.com.afischer.fisl.extensions
import android.content.Context
import android.content.pm.PackageManager
import android.widget.Toast
import com.blankj.utilcode.util.AppUtils
import org.jetbrains.anko.browse
fun Context.hasPermission(permission: String): Boolean {
val res = this.checkCallingOrSelfPe... | 0 | Kotlin | 0 | 0 | b21b3b3b41c2fa1d485f9d56d179ffb76cc31acd | 1,430 | FISL | MIT License |
simple-stack-example-multistack-view/src/main/java/com/zhuinden/simplestackdemomultistack/features/main/cloudsync/CloudSyncView.kt | yongaru | 193,541,339 | true | {"Java": 855179, "Kotlin": 248936, "IDL": 410} | package com.zhuinden.simplestackdemomultistack.features.main.cloudsync
import android.annotation.TargetApi
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.widget.RelativeLayout
import com.zhuinden.simplestack.Backstack
import com.zhuinden.simplestack.Bundleable
im... | 0 | Java | 0 | 0 | ac5ec424f44c12d91dd6f7bbaa749387a47d85b6 | 1,815 | simple-stack | Apache License 2.0 |
plugins/evaluation-plugin/core/src/com/intellij/cce/workspace/info/FileSessionsInfo.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.cce.workspace.info
import com.intellij.cce.core.Session
data class FileSessionsInfo(val filePath: String, val text: String, val sessions: List<Session>) | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 296 | intellij-community | Apache License 2.0 |
j2k/testData/fileOrElement/constructors/secondaryConstructorsInInnerClass.kt | staltz | 38,581,975 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | class Outer {
private inner class Inner1() {
public constructor(a: Int) : this() {
}
protected constructor(c: Char) : this() {
}
private constructor(b: Boolean) : this() {
}
}
protected inner class Inner2() {
public constructor(a: Int) : this() {
... | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 1,044 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/helse/flex/selvtest/ApplicationState.kt | navikt | 328,991,663 | false | null | package no.nav.helse.flex.reisetilskudd.brukernotifikasjon.selvtest
import org.springframework.stereotype.Component
@Component
class ApplicationState {
private var isAlive = true
fun isAlive(): Boolean = isAlive
fun iAmDead() {
isAlive = false
}
}
| 4 | Kotlin | 0 | 0 | ec7531506d650b4b203137540bd5a6d89b344172 | 276 | flex-reisetilskudd-gsak | MIT License |
android/app/src/main/java/jp/co/myowndict/di/AuthInterceptor.kt | jphacks | 212,725,027 | false | null | package jp.co.myowndict.di
import jp.co.myowndict.model.TokenManager
import okhttp3.Interceptor
import okhttp3.Response
import retrofit2.Invocation
annotation class RequireAuth
class AuthInterceptor(
) : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
var request = chain.reques... | 2 | Kotlin | 0 | 4 | f4af0a26bacedde415f9f873c917fbdb4910e386 | 752 | TK_1905 | MIT License |
src/main/kotlin/ru/scisolutions/scicmscore/engine/schema/model/relation/BidirectionalRelation.kt | borisblack | 737,700,232 | false | {"Kotlin": 713256, "HTML": 4440, "Shell": 282, "Dockerfile": 123} | package ru.scisolutions.scicmscore.engine.schema.model.relation
import ru.scisolutions.scicmscore.engine.model.Attribute
import ru.scisolutions.scicmscore.engine.persistence.entity.Item
interface BidirectionalRelation : Relation {
val owningItem: Item
val owningAttrName: String
val inversedItem: Item
... | 0 | Kotlin | 0 | 4 | a74816b04105b97d7d592c3011c66752b738c548 | 692 | scicms-core | Apache License 2.0 |
app/src/main/java/com/clay/covid_19helper/adapters/NewsAdapter.kt | Clay-CL | 285,802,279 | false | null | package com.clay.covid_19helper.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com... | 0 | Kotlin | 0 | 2 | 214b8f686de644e742a1d62dd67ddee7262186ff | 2,306 | COVID-19-Helper | MIT License |
app/src/main/java/com/vidial/chatsapp/presentation/ui/screens/chat/ChatIntent.kt | alulcardino | 844,420,524 | false | {"Kotlin": 139328} | package com.vidial.chatsapp.presentation.ui.screens.chat
sealed class ChatIntent {
data class LoadChat(val chatId: Int) : ChatIntent()
data class LoadMessages(val chatId: Int) : ChatIntent()
data class SendMessage(val chatId: Int, val sender: String, val content: String) : ChatIntent()
}
| 0 | Kotlin | 0 | 0 | aa7d2cd969f822920edbc159963dae93875842e8 | 302 | ChatsApp | MIT License |
app/src/androidTestScenarios/java/uk/nhs/nhsx/covid19/android/app/questionnaire/QuestionnaireScenarioTest.kt | nhsx-mirror | 369,240,870 | true | {"Kotlin": 3133494, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.questionnaire
import android.app.Activity
import android.app.Instrumentation
import android.content.Intent
import androidx.test.espresso.intent.Intents
import androidx.test.espresso.intent.matcher.IntentMatchers
import org.junit.Test
import uk.nhs.nhsx.covid19.android.app.MockAp... | 0 | null | 0 | 0 | b74358684b9dbc0174890db896b93b0f7c6660a4 | 14,621 | covid-19-app-android-ag-public | MIT License |
src/main/kotlin/io/github/scottpierce/gradle/kotlin/node/slim/ScanDependencies.kt | ScottPierce | 582,466,418 | false | null | package io.github.scottpierce.gradle.kotlin.node.slim
import org.gradle.api.Project
import org.gradle.api.artifacts.ProjectDependency
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.targets.js.ir.KotlinJsIrTarget
import org.jetbrains.kotlin.gradle.targets.js.npm.N... | 0 | Kotlin | 0 | 0 | fc1ce4fb88d44f0ff619781ece5fac4610e9ec1a | 2,268 | kotlin-node-slim | Apache License 2.0 |
compose/material3/material3/src/skikoTest/kotlin/androidx/compose/material3/ExposedDropdownMenuTest.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* Copyright 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 applica... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 18,304 | compose | Apache License 2.0 |
data-store/src/test/java/dev/pablodiste/datastore/sourceoftruth/InMemorySourceOfTruthTest.kt | pablodiste | 426,741,932 | false | {"Kotlin": 235814, "Shell": 197} | package dev.pablodiste.datastore.sourceoftruth
import app.cash.turbine.test
import dev.pablodiste.datastore.CoroutineTest
import dev.pablodiste.datastore.Fetcher
import dev.pablodiste.datastore.FetcherResult
import dev.pablodiste.datastore.ResponseOrigin
import dev.pablodiste.datastore.Store
import dev.pablodiste.data... | 0 | Kotlin | 0 | 2 | 2251c3791a16a9618e6c7e3999d857819071165b | 4,790 | data-store | MIT License |
library/file/src/nativeMain/kotlin/io/matthewnelson/kmp/file/FileNative.kt | 05nelsonm | 729,001,287 | false | {"Kotlin": 136048, "Java": 105} | /*
* Copyright (c) 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 4 | Kotlin | 0 | 1 | 93107e2fca39a788972a244feacdaaf78077a2fb | 3,868 | kmp-file | Apache License 2.0 |
packages/core/RNSentryAndroidTester/app/src/test/java/io/sentry/rnsentryandroidtester/RNSentryReactFragmentLifecycleTracerTest.kt | getsentry | 75,196,241 | false | {"TypeScript": 797166, "Java": 101542, "Objective-C++": 47719, "JavaScript": 44589, "Kotlin": 29597, "Objective-C": 29536, "C++": 14605, "Shell": 12854, "Swift": 9798, "Ruby": 8164, "Starlark": 1204, "CMake": 549} | package io.sentry.rnsentryandroidtester
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.facebook.react.bridge.ReactContext
import com.facebook.react.uimanager.UIManagerHelper
import com.facebook.react.uimanager.events.EventDispatcher
import com.swmansion.rnscreen... | 171 | TypeScript | 337 | 1,571 | 73a0a57722f0691b7fe3eb8b5a4160f61b892fa7 | 5,756 | sentry-react-native | MIT License |
app/src/main/java/emo/barkote/login/ui/auth/signup/SignupFragment.kt | barkotenicholas | 530,579,862 | false | null | package emo.barkote.login.ui.auth.signup
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.AutoCompleteTextView
import android.widget.Toast
import androidx.core.widget.addTextChangedListener
import... | 0 | Kotlin | 0 | 0 | ded811456c0179f5c2d695a57c5f7dcf1887cbab | 4,178 | LoginJwt | MIT License |
app/src/test/java/ru/russianpost/digitalperiodicals/data/repository/BookmarkRepositoryImplTest.kt | saintedlittle | 811,022,037 | false | {"Kotlin": 372590} | package ru.russianpost.digitalperiodicals.data.repository
import kotlinx.coroutines.runBlocking
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.ResponseBody
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import org.mockito.Mockito
import org.mockito.kotlin.mo... | 0 | Kotlin | 0 | 0 | d07a2593694616235974bbf19f993d309d014260 | 7,003 | russianpost-app | MIT License |
feature/monster-detail/compose/src/commonMain/kotlin/br/alexandregpereira/hunter/detail/MonsterDetailBottomSheets.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1443810, "Swift": 754, "Shell": 139} | package br.alexandregpereira.hunter.detail
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.unit.Dp
import br.alexandregpereira.hunter.detail.ui.MonsterDetailOptionPicke... | 3 | Kotlin | 5 | 85 | 46a636ec6fe5a60101e761847c85776180c6f5b2 | 2,576 | Monster-Compendium | Apache License 2.0 |
app/src/main/java/com/chocolate/triviatitans/presentation/screens/spacer/horizontal/SpacerHorizontal8.kt | team-chocolate-cake | 661,943,976 | false | null | package com.chocolate.triviatitans.presentation.screens.spacer.horizontal
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
@Composable
fun SpacerHorizontal8... | 0 | Kotlin | 3 | 1 | 94e74e9943f25d94a64311d898baf4b07fabfc63 | 369 | TriviaTitans | MIT License |
app/src/main/java/io/github/alessandrojean/toshokan/util/extension/NetworkExtensions.kt | alessandrojean | 495,493,156 | false | null | package io.github.alessandrojean.toshokan.util.extension
import io.ktor.client.request.HttpRequestBuilder
import io.ktor.client.request.url
import io.ktor.client.statement.HttpResponse
import io.ktor.client.statement.bodyAsText
import io.ktor.client.statement.request
import io.ktor.http.Headers
import io.ktor.http.Htt... | 11 | Kotlin | 1 | 5 | 96717312b7a5090901c8604cd069d9468995e99e | 1,013 | toshokan-android | MIT License |
src/main/java/com/thecout/cpg/CPGParsing/SymbolicExecution/BoxedValue.kt | SAP-samples | 610,187,569 | false | {"C": 314105, "Kotlin": 127362, "Java": 45426, "Python": 43977, "Dockerfile": 386} | package com.thecout.cpg.CPGParsing.SymbolicExecution
sealed class BoxedValue {
class Numerical(val value: Long) : BoxedValue() {
override fun toString(): String {
return value.toString()
}
}
class Identifier(val value: String) : BoxedValue() {
override fun toString(): S... | 0 | C | 0 | 11 | 73e226b81e52346ac02eee7ff633a60e34b70c4e | 498 | security-research-taintgraphs | Apache License 2.0 |
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/notifications/internal/service/CallServiceConfig.kt | GetStream | 505,572,267 | false | {"Kotlin": 3034694, "MDX": 317272, "Python": 18285, "Shell": 10615, "JavaScript": 1112, "PureBasic": 107} | /*
* Copyright (c) 2014-2024 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... | 8 | Kotlin | 37 | 377 | 0bb3218b5e081cbffd30433ad5dc5cf61e1b4052 | 4,125 | stream-video-android | FSF All Permissive License |
app/src/main/java/com/jaimegc/covid19tracker/ui/adapter/PlaceSpinnerAdapter.kt | mmoreno1992 | 321,923,998 | true | {"Kotlin": 734625} | package com.jaimegc.covid19tracker.ui.adapter
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import com.jaimegc.covid19tracker.R
import com.jaimegc.covid19tracker.common.extensions.... | 0 | null | 0 | 0 | 897a57c116dfa09926db3043a9a10eff8d235538 | 1,882 | Covid19Tracker | Apache License 2.0 |
account/src/main/kotlin/com/micro/account/config/MessageSourceConfig.kt | fatemehSalem | 667,229,490 | false | null | package com.micro.account.config
/*
import org.springframework.context.MessageSource
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.support.ResourceBundleMessageSource
import org.springframework.web.servlet.LocaleResolver... | 0 | Kotlin | 0 | 1 | 0e520444f0c949492744406b82a4b064c2c02ba6 | 906 | Microservice | MIT License |
32-sealed-classes/final/src/Main.kt | kodecocodes | 301,471,520 | false | {"Kotlin": 52175} | // 4-06 Sealed Classes - Final
sealed class AcceptedCurrency {
abstract val valueInDollars: Float
var amount: Float = 0.0f
class Dollar: AcceptedCurrency() { override val valueInDollars = 1.0f }
class Euro: AcceptedCurrency() { override val valueInDollars = 1.25f }
class Crypto: AcceptedCurrency() { overrid... | 0 | Kotlin | 7 | 4 | 0109c371561150a8624ef49a44d2d081fd2d87d7 | 802 | video-pikfc-materials | Apache License 2.0 |
core/src/commonMain/kotlin/com/symbiosis/sdk/swap/crosschain/SingleNetworkSwapTradeAdapter.kt | symbiosis-finance | 473,611,783 | false | {"Kotlin": 563820, "Swift": 5851, "Ruby": 1700} | package com.symbiosis.sdk.swap.crosschain
import com.soywiz.kbignum.BigInt
import com.soywiz.kbignum.bi
import com.soywiz.kbignum.bn
import com.symbiosis.sdk.currency.AddressZero
import com.symbiosis.sdk.currency.DecimalsErc20Token
import com.symbiosis.sdk.currency.DecimalsNativeToken
import com.symbiosis.sdk.currency... | 0 | Kotlin | 2 | 4 | e8b1c424c62a847a5339039864223e65fdb2cbae | 2,813 | mobile-sdk | Apache License 2.0 |
src/test/kotlin/com/vauthenticator/server/support/RequestAttributesFixture.kt | VAuthenticator | 191,632,792 | false | {"Kotlin": 557518, "TypeScript": 47216, "HCL": 13254, "Python": 9036, "HTML": 6658, "JavaScript": 1917, "Shell": 1604, "Dockerfile": 1275} | package com.vauthenticator.server.support
import org.springframework.web.context.request.RequestAttributes
object RequestAttributesFixture {
val requestAttributes = object : RequestAttributes {
override fun getAttribute(name: String, scope: Int): Any? {
TODO("Not yet implemented")
}
... | 43 | Kotlin | 1 | 18 | 34f4bdaec77cd6709fc52b455c67a29f48e58fc5 | 1,094 | vauthenticator | Apache License 2.0 |
app/src/main/java/com/zulfen/zulfchat/ui/screen/home/HomeScreen.kt | Zulfen | 763,715,980 | false | {"Kotlin": 15044} | package com.zulfen.zulfchat.ui.screen.home
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.Divider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import andro... | 0 | Kotlin | 0 | 0 | 33b31f65e1dbdd7d91496da93010021745cc7271 | 1,165 | ZulfChat | Apache License 2.0 |
backend/src/main/kotlin/hr/fer/ppij/security/WebSecurity.kt | MakMuftic | 125,496,663 | false | {"TypeScript": 41804, "Kotlin": 37158, "HTML": 5226, "JavaScript": 1645, "CSS": 80} | package hr.fer.ppij.security
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.http.HttpMethod
import org.springframework.security.authentication.dao.DaoAuthenticationProvider
import org.springframework.security.config.annotation.a... | 0 | TypeScript | 0 | 0 | 5fc1ae5b57b54a1c9864e8d902dbb4266ed1414a | 2,723 | ppij | MIT License |
common/src/main/kotlin/net/wiredtomato/burgered/block/GrillBlock.kt | wired-tomato | 835,870,549 | false | {"Kotlin": 122997, "Java": 4742} | package net.wiredtomato.burgered.block
import com.mojang.serialization.MapCodec
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.world.InteractionResult
import net.minecraft.world.entity.player.Player
import net.minecraft.world.item.context.BlockPlaceContext
import net.minecr... | 0 | Kotlin | 0 | 0 | d945b34ecbf62bef9234f101a4cdf7ce504a1fa9 | 3,646 | burgered | MIT License |
packages/graalvm-js/src/jsMain/kotlin/remix/run/router/server.kt | elide-dev | 506,113,888 | false | null | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 75 | null | 16 | 91 | eeb53cad4d1316c0be9f0c57315827051367b7f0 | 1,249 | elide | MIT License |
app/src/main/java/ramble/sokol/sberafisha/authentication_and_splash/view/screens/RegistrationScreen.kt | InverseTeam | 674,135,722 | false | null | package ramble.sokol.sberafisha.authentication_and_splash.view.screens
import android.content.Context
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import ... | 0 | Kotlin | 0 | 1 | 39a0b5d7a64da3d03257edacb8fbb375511d7fba | 16,264 | SberAfisha-Mobile | MIT License |
services/blueprint-service/src/main/kotlin/org/katan/service/blueprint/parser/Property.kt | KatanPanel | 182,468,654 | false | null | package org.katan.service.blueprint.parser
import org.katan.service.blueprint.parser.PropertyKind.Literal
import org.katan.service.blueprint.parser.PropertyKind.Mixed
import org.katan.service.blueprint.parser.PropertyKind.Multiple
import kotlin.reflect.KClass
internal const val PROPERTY_NAME_SEPARATOR = "."
internal... | 1 | Kotlin | 5 | 52 | b2d5fb25e55a0a4ba0ecaac741d280e8b6f388ad | 2,910 | Katan | Apache License 2.0 |
fragment/src/main/java/com/cube/fusion/android/fragment/factory/FusionContentFragmentFactory.kt | 3sidedcube | 465,729,737 | false | {"Kotlin": 105599} | package com.cube.fusion.android.fragment.factory
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.cube.fusion.android.core.config.AndroidFusionConfig
import com.cube.fusion.android.fragment.FusionContentFragment
/**
* [FragmentFactory] implementation for allowing injectio... | 0 | Kotlin | 0 | 2 | 1c1db817504533c97383c26d788a252e489227e5 | 932 | Android-Fusion-AndroidUi | MIT License |
patterns/src/commonMain/kotlin/com/alexvanyo/composelife/patterns/SpaceshipPatterns.kt | alexvanyo | 375,146,193 | false | null | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 36 | null | 10 | 99 | 64595b8d36c559a70ca52d578069fe4df8d170c7 | 2,507 | composelife | Apache License 2.0 |
src/main/kotlin/com/ongdev/request/models/dtos/qna/QARequestTO.kt | OngDev | 298,521,653 | false | null | package com.ongdev.request.models.dtos.qna
import com.ongdev.request.models.dtos.RequestTO
import com.ongdev.request.models.dtos.VoteTO
class QARequestTO(var id: String,
var title: String,
var description: String,
var isActive: Boolean,
var isArc... | 0 | Kotlin | 0 | 2 | 2533d53f2ab66462fe33e223e142d0459f414a8c | 427 | od-request-api | MIT License |
app/src/main/java/com/example/recipes/utils/SessionManager.kt | IgniteCoders | 774,874,092 | false | {"Kotlin": 28277} | package com.example.recipes.utils
import android.content.Context
import android.content.SharedPreferences
class SessionManager (context: Context) {
companion object {
const val DID_FETCH_DATA = "DID_FETCH_DATA"
}
private var sharedPref: SharedPreferences? = null
var didFetchData:Boolean
... | 0 | Kotlin | 0 | 0 | cfdec53ef4c161a22adb28c2aaf349b8a6d9ef00 | 843 | RecipesApp | Apache License 2.0 |
app/src/main/java/com/solo/tasky/feature_task/domain/models/Converters.kt | MahdiJamali2004 | 851,018,151 | false | {"Kotlin": 231084} | package com.solo.tasky.feature_task.domain.models
import androidx.compose.ui.graphics.Color
import androidx.room.TypeConverter
import com.solo.tasky.feature_note.domain.model.NoteType
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
class Converters {
@TypeConverter
fun fromString(value:... | 0 | Kotlin | 0 | 0 | 7e6488281415c3391e2b25e73609528ad6848e3d | 1,672 | TaskManagement | MIT License |
UI/ListViewTest/app/src/main/java/com/workaholiclab/listviewtest/MainActivity.kt | Workaholic-Lab | 298,015,933 | false | {"Kotlin": 418971, "C++": 159092, "Makefile": 31044, "Java": 4576, "HTML": 2236, "QMake": 753, "C": 263} | package com.workaholiclab.listviewtest
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ArrayAdapter
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
private val fruitList=ArrayList<Fruit>()
... | 0 | Kotlin | 0 | 1 | 55220c5c71cbce5b398c4b6c0aacacaa5e94c4e4 | 1,220 | Android-Kotlin-startup | Apache License 2.0 |
src/main/kotlin/fr/shikkanime/services/caches/ConfigCacheService.kt | Shikkanime | 725,527,999 | false | {"Kotlin": 556737, "FreeMarker": 130361, "JavaScript": 2805, "CSS": 1634, "Shell": 1100, "Dockerfile": 851, "Fluent": 69} | package fr.shikkanime.services.caches
import com.google.inject.Inject
import fr.shikkanime.entities.Config
import fr.shikkanime.entities.enums.ConfigPropertyKey
import fr.shikkanime.services.ConfigService
import fr.shikkanime.utils.MapCache
class ConfigCacheService : AbstractCacheService {
@Inject
private lat... | 4 | Kotlin | 0 | 4 | 82a29d666167ae9583952042e752d95631ef44bf | 1,504 | core | Apache License 2.0 |
app/src/main/java/es/upm/bienestaremocional/ui/screens/privacy/PrivacyPolicyScreen.kt | Emotional-Wellbeing | 531,973,820 | false | {"Kotlin": 848055} | package es.upm.bienestaremocional.ui.screens.privacy
import androidx.compose.material3.Text
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.u... | 0 | Kotlin | 0 | 2 | 55c24943d57d1c0cb91ddce569f27d7e5cd6ed8d | 2,356 | App | Apache License 2.0 |
src/main/kotlin/mixit/blog/handler/AdminPostHandler.kt | mixitconf | 76,134,720 | false | null | package mixit.blog.handler
import kotlinx.coroutines.reactor.awaitSingleOrNull
import mixit.MixitApplication
import mixit.MixitProperties
import mixit.blog.model.BlogService
import mixit.blog.model.Post
import mixit.util.mustache.MustacheI18n
import mixit.util.mustache.MustacheTemplate.AdminBlog
import mixit.util.must... | 13 | null | 130 | 539 | d94f2335bccea760ac31fad66b648a3080ac35c5 | 3,624 | mixit | Apache License 2.0 |
app/src/main/kotlin/cn/govast/vastutils/activity/baseadpexample/viewholder/AHolder.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 4 | 36 | 94ec3bf55dc0e30f05bd5f48f96b6a2502fd336e | 1,694 | Android-Vast-Extension | Apache License 2.0 |
app/src/test/java/dev/medetzhakupov/githubsearch/ui/search/SearchViewModelTest.kt | MedetZhakupov | 651,668,227 | false | null | package dev.medetzhakupov.githubsearch.ui.search
import dev.medetzhakupov.githubsearch.CoroutinesTestRule
import dev.medetzhakupov.githubsearch.data.GithubSearchRepository
import dev.medetzhakupov.githubsearch.data.Result
import dev.medetzhakupov.githubsearch.data.SearchHistoryRepository
import dev.medetzhakupov.githu... | 0 | Kotlin | 0 | 1 | 4228aef7ba04f3efa8193ac46c9259a58c0f5748 | 1,806 | githubsearch | MIT License |
app/src/test/java/dev/medetzhakupov/githubsearch/ui/search/SearchViewModelTest.kt | MedetZhakupov | 651,668,227 | false | null | package dev.medetzhakupov.githubsearch.ui.search
import dev.medetzhakupov.githubsearch.CoroutinesTestRule
import dev.medetzhakupov.githubsearch.data.GithubSearchRepository
import dev.medetzhakupov.githubsearch.data.Result
import dev.medetzhakupov.githubsearch.data.SearchHistoryRepository
import dev.medetzhakupov.githu... | 0 | Kotlin | 0 | 1 | 4228aef7ba04f3efa8193ac46c9259a58c0f5748 | 1,806 | githubsearch | MIT License |
app/src/main/java/ca/hojat/gamehub/core/domain/entities/AgeRatingCategory.kt | hojat72elect | 574,228,468 | false | {"Kotlin": 912868, "Shell": 539} | package ca.hojat.gamehub.core.domain.entities
enum class AgeRatingCategory(val title: String) {
UNKNOWN(title = ""),
ESRB(title = "ESRB"),
PEGI(title = "PEGI"),
}
| 0 | Kotlin | 8 | 14 | 0d89fb6e48ea00eb2063b9c415c924730be0a29a | 176 | GameHub | MIT License |
net/src/main/java/com/drake/net/compatible/OkIO.kt | liangjingkanji | 370,593,764 | false | null | package com.drake.net.compatible
import okio.*
import java.io.*
val Buffer.size: Long
get() = size()
val BufferedSource.buffer: Buffer
get() = buffer()
fun Sink.buffer(): BufferedSink = Okio.buffer(this)
fun Source.buffer(): BufferedSource = Okio.buffer(this)
@Throws(FileNotFoundException::class)
fun File... | 0 | Kotlin | 0 | 24 | d4ddfde3c8d3e189840865771cc0137c810b32f3 | 728 | Net-okhttp3 | Apache License 2.0 |
library/src/main/kotlin/be/rijckaert/tim/library/AnimatorListenerAdapter.kt | timrijckaert | 83,932,546 | false | null | package be.rijckaert.tim.library
import android.animation.Animator
open class AnimatorListenerAdapter : Animator.AnimatorListener {
companion object {
fun withCircularRevealListener(onTerminate: (Animator) -> Unit) =
object : AnimatorListenerAdapter() {
override fun on... | 0 | Kotlin | 5 | 33 | 6bfdaa58c897f6647332c37c30a57592280e9807 | 751 | BetterBottomBar | MIT License |
domain/src/main/java/com/elpablo/domain/use_case/GetAllUsersUseCase.kt | FunnyRider34Rus | 611,846,879 | false | null | package com.elpablo.domain.use_case
import com.elpablo.domain.model.User
import com.elpablo.domain.repository.UserRepository
import kotlinx.coroutines.flow.Flow
class GetAllUsersUseCase(
private val repository: UserRepository
) {
operator fun invoke(): Flow<List<User>> = repository.getAllUsers()
} | 0 | Kotlin | 0 | 0 | df7ea9886736cfc99d8367e4b208b119aa94fb55 | 308 | PradanaMarketPlace | Apache License 2.0 |
app/src/main/java/com/theone/demo/ui/fragment/sample/LoaderFragment.kt | Theoneee | 473,409,123 | false | {"Kotlin": 616409, "Java": 410498} | package com.theone.demo.ui.fragment.sample
import android.view.View
import com.theone.common.ext.delay
import com.theone.demo.databinding.FragmentLoaderTestBinding
import com.theone.loader.LoaderService
import com.theone.loader.LoaderVisibilityService
import com.theone.mvvm.base.viewmodel.BaseViewModel
import com.theo... | 0 | Kotlin | 4 | 6 | 66e7dd671635352c8039bc3bf47a715620347448 | 1,880 | QMUI-MVVM | Apache License 2.0 |
app/src/main/java/com/theone/demo/ui/fragment/sample/LoaderFragment.kt | Theoneee | 473,409,123 | false | {"Kotlin": 616409, "Java": 410498} | package com.theone.demo.ui.fragment.sample
import android.view.View
import com.theone.common.ext.delay
import com.theone.demo.databinding.FragmentLoaderTestBinding
import com.theone.loader.LoaderService
import com.theone.loader.LoaderVisibilityService
import com.theone.mvvm.base.viewmodel.BaseViewModel
import com.theo... | 0 | Kotlin | 4 | 6 | 66e7dd671635352c8039bc3bf47a715620347448 | 1,889 | QMUI-MVVM | Apache License 2.0 |
app/src/main/java/com/akatsuki/movieapp/ui/theme/Color.kt | mhchofficial | 530,397,932 | false | {"Kotlin": 94728} | package com.akatsuki.movieapp.ui.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val Purple700 = Color(0xFF3700B3)
val Teal200 = Color(0xFF03DAC5)
val selected = Color(0xFF00BCD4)
val backgroundA = Color(0xFF1D2E3C)
val backgroundC = Color(0xFF233... | 0 | Kotlin | 0 | 1 | d6b7981212c22f80d792e1e393293801effc6d20 | 381 | MovieApp | MIT License |
app/src/main/kotlin/org/citruscircuits/standstrategist/ui/dialogs/NewProfileDialog.kt | frc1678 | 804,237,835 | false | {"Kotlin": 325951} | package org.citruscircuits.standstrategist.ui.dialogs
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.WindowInsets
impor... | 0 | Kotlin | 0 | 0 | 2cd96c7abd4f454d85a848db148368a510fd4d5b | 6,898 | stand-strategist-2024-public | MIT License |
app/src/main/java/az/siftoshka/habitube/presentation/util/BottomBarScreen.kt | siftoshka | 435,184,331 | false | {"Kotlin": 448266} | package az.siftoshka.habitube.presentation.util
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import az.siftoshka.habitube.R
/**
* The sealed class for the bottom navigation [Screen]-s.
*/
sealed class BottomBarScreen(
val route: String,
@StringRes val title: Int,
@Drawable... | 0 | Kotlin | 1 | 4 | 8468948c67d5875ac9c58a50b93903aa100fcdca | 987 | habitube-v2 | MIT License |
kotlin-typescript/src/main/generated/typescript/raw/isClassStaticBlockDeclaration.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript.raw
import typescript.Node
internal external fun isClassStaticBlockDeclaration(node: Node): Boolean /* node is ClassStaticBlockDeclaration */
| 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 256 | kotlin-wrappers | Apache License 2.0 |
ide-laf-bridge-tests/src/test/kotlin/org/jetbrains/jewel/bridge/actionSystem/TestDataSink.kt | JetBrains | 440,164,967 | false | null | package org.jetbrains.jewel.bridge.actionSystem
import com.intellij.openapi.actionSystem.DataKey
import com.intellij.openapi.actionSystem.DataProvider
import com.intellij.openapi.actionSystem.DataSink
import com.intellij.openapi.actionSystem.DataSnapshotProvider
import com.intellij.openapi.actionSystem.UiDataProvider
... | 94 | null | 39 | 722 | e0e6f1b4a46ca1c27ce1c13524ff11f75a2bed54 | 1,396 | jewel | Apache License 2.0 |
app/src/main/java/org/y20k/transistor/dialogs/SelectStreamDialog.kt | y20k | 43,493,741 | false | {"Kotlin": 347510} | package org.y20k.transistor.dialogs
import androidx.appcompat.app.AlertDialog
import org.y20k.transistor.helpers.LogHelper
/*
* SelectStreamDialog class
*/
class SelectStreamDialog {
/* Define log tag */
private val TAG = LogHelper.makeLogTag(FindStationDialog::class.java.simpleName)
/* Main class v... | 66 | Kotlin | 121 | 430 | ed184a2bb363e8eda5d9dc2d796d17d9417aa257 | 441 | transistor | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.