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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compiler/testData/diagnostics/tests/platformTypes/methodCall/visitor.kt | staltz | 51,743,245 | true | {"Markdown": 34, "XML": 687, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18510, "Java": 4307, "Protocol Buffer": 4, "Text": 4085, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 71, "Java Properties": 10, "... | // FILE: p/Visitor.java
package p;
public interface Visitor<D> {
}
// FILE: p/Element.java
package p;
public class Element {
public <D> R accept(@NotNull Visitor<D> visitor, D data) {return null;}
}
// FILE: k.kt
import p.*
fun test(v: Visitor<Nothing>, e: Element) {
e.accept(v, null)
} | 0 | Java | 0 | 1 | f713adc96e9adeacb1373fc170a5ece1bf2fc1a2 | 304 | kotlin | Apache License 2.0 |
app/src/test/java/com/talhahasanzia/deezal/app/tracks/interactor/TracksInteractorImplTest.kt | talhahasanzia | 201,644,695 | false | null | package com.talhahasanzia.deezal.app.tracks.interactor
import com.talhahasanzia.deezal.app.tracks.api.TrackListResponse
import com.talhahasanzia.deezal.app.tracks.contracts.TracksInteractorOut
import com.talhahasanzia.deezal.app.util.TestUtils
import com.talhahasanzia.deezal.commons.network.Request
import org.junit.Be... | 0 | Kotlin | 0 | 1 | e4a34ecdb805ff129350bb2033399fc8292752ce | 1,639 | deezal | Apache License 2.0 |
projects/kediatr-spring-boot-3x-starter/src/test/kotlin/com/trendyol/kediatr/spring/SpringContextTest.kt | Trendyol | 207,607,885 | false | null | package com.trendyol.kediatr.spring
import com.trendyol.kediatr.Mediator
import com.trendyol.kediatr.MediatorImpl
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import kotlin.test.assertNotNull
@SpringBootTest... | 4 | null | 23 | 180 | 43794654a5a9ee7056b3387b55bc8e498773af25 | 560 | kediatR | MIT License |
common_util_lib/src/main/java/com/jesen/common_util_lib/utils/ColorUtil.kt | Jesen0823 | 432,540,052 | false | {"Kotlin": 464797, "Java": 200809} | package com.jesen.common_util_lib.utils
//import android.graphics.Color
import android.os.Build
import android.util.Log
import androidx.compose.ui.graphics.Color
import kotlin.math.abs
import kotlin.random.Random
/**
* 颜色各个分量一般是以每8位为一个单位。
* 8位,8bit,即一个字节,10进制数的取值范围是0~255,一般用16进制表示,0x开头,取值范围是0x00到0xFF(不区分大小写)。
*
*... | 0 | Kotlin | 2 | 9 | 39c1920c36d4fa8298f26cbefc67433f1db30a23 | 4,146 | Compose_bili_talk | Apache License 2.0 |
snark-html/src/main/kotlin/space/kscience/snark/html/SnarkHtmlPlugin.kt | SciProgCentre | 507,609,502 | false | {"Kotlin": 95352, "Java": 82765, "JavaScript": 829, "Shell": 722, "Python": 566, "Dockerfile": 542} | package space.kscience.snark.html
import io.ktor.utils.io.core.readBytes
import space.kscience.dataforge.context.*
import space.kscience.dataforge.data.DataTree
import space.kscience.dataforge.io.IOPlugin
import space.kscience.dataforge.io.IOReader
import space.kscience.dataforge.io.JsonMetaFormat
import space.kscienc... | 0 | Kotlin | 0 | 1 | 5659bd2f932d83467ec60fbd30628153bbfeb3a3 | 4,469 | snark | Apache License 2.0 |
app/src/main/kotlin/com/mohsenoid/rickandmorty/RickAndMortyApplication.kt | mohsenoid | 229,392,634 | false | null | package com.mohsenoid.rickandmorty
import androidx.multidex.MultiDexApplication
import com.mohsenoid.rickandmorty.data.dataModule
import com.mohsenoid.rickandmorty.util.KoinQualifiersNames
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.component.Koin... | 3 | Kotlin | 2 | 8 | 6de6e4f26ce2326bc254a3becc70cb24c8e3f182 | 916 | Rick-and-Morty | Apache License 2.0 |
src/kotlin/basics/select-item.kt | devmike123 | 452,189,457 | false | {"Kotlin": 640, "Java": 628} | // To select an item:
onData(allOf(`is`(instanceOf(String::class.java)),
`is`("Americano"))).perform(click())
| 0 | Kotlin | 0 | 0 | 15c958eb7ad4350d8c23f53d29a23cc3790f9cf7 | 119 | Espresso | Apache License 2.0 |
app/src/main/java/com/minar/birday/utilities/EventUtils.kt | Joseahfer | 350,901,991 | true | {"Kotlin": 145670} | package com.minar.birday.utilities
import android.content.Context
import com.minar.birday.R
import com.minar.birday.model.Event
import com.minar.birday.model.EventResult
import java.time.LocalDate
import java.time.Period
import java.time.format.DateTimeFormatter
import java.time.format.TextStyle
import java.time.tempo... | 0 | null | 0 | 0 | c4f2dc6eac12ac4607f40a0851b2555ec88e6759 | 3,046 | birday | MIT License |
app/src/main/java/com/jeanbarrossilva/realism/ui/viewmodel/MainViewModel.kt | jeanbarrossilva | 315,365,931 | false | null | package com.jeanbarrossilva.realism.ui.viewmodel
import android.app.AlarmManager.INTERVAL_DAY
import android.app.NotificationChannel
import android.app.NotificationManager
import android.graphics.Color
import androidx.compose.runtime.Composable
import androidx.lifecycle.ViewModel
import com.jeanbarrossilva.realism.Mai... | 0 | Kotlin | 0 | 0 | 6727d0603e1bad83388988c322830604719267bc | 2,173 | EDQ | MIT License |
src/main/kotlin/no/nav/familie/ba/statistikk/SaksstatistikkBehandlingConsumer.kt | navikt | 291,696,912 | false | null | package no.nav.familie.ba.statistikk
import com.fasterxml.jackson.databind.JsonNode
import no.nav.familie.ba.statistikk.domene.SaksstatistikkDvhRepository
import no.nav.familie.eksterne.kontrakter.saksstatistikk.BehandlingDVH
import no.nav.familie.kontrakter.felles.objectMapper
import org.apache.kafka.clients.consumer... | 4 | Kotlin | 1 | 0 | f4bb2663f49931a67c96a49cdad5d332e1aa8491 | 2,858 | familie-ba-statistikk | MIT License |
client-misk/src/test/kotlin/app/cash/backfila/client/misk/fixedset/FixedSetBackfill.kt | jvmakine | 329,199,381 | true | {"Kotlin": 401569, "TypeScript": 65437, "Shell": 1284, "HTML": 990} | package app.cash.backfila.client.misk.fixedset
import app.cash.backfila.client.misk.Backfill
import app.cash.backfila.client.misk.BackfillConfig
abstract class FixedSetBackfill<Param : Any> : Backfill {
abstract fun checkBackfillConfig(backfillConfig: BackfillConfig<Param>)
abstract fun runOne(row: FixedSetRow)
}... | 0 | null | 1 | 0 | 1cc33ad5bc95f69785c3c3945dac1d6627c66e9c | 321 | backfila | Apache License 2.0 |
src/main/kotlin/com/realeyes/hlsparserj/MasterPlaylist.kt | realeyes-media | 263,673,462 | true | {"Kotlin": 106403} | /**
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distri... | 0 | Kotlin | 2 | 0 | 0435b1e4309060b8bd2dd5beb02fbc7ce2986a9b | 3,669 | hlsparserj | Apache License 2.0 |
kmm/shared-ui/src/commonMain/kotlin/com/yao/tmdb/sharedui/component/RemoteImage.kt | yao-xie-kinto | 598,494,975 | false | null | package com.yao.tmdb.sharedui.component
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
internal expect fun __RemoteImage(imageUrl: String, modifier: Modifier, contentDescription: String?)
@Composable
internal fun RemoteImage(imageUrl: String, modifier: Modifier = Modifier,... | 0 | Kotlin | 0 | 0 | 8a0a36cf99e807c6dfd870a0f9e2e1db37c03f04 | 419 | TMDB_KMM | MIT License |
app/src/main/java/com/pedrogomez/hnmob/di/DBModule.kt | makhnnar | 351,594,709 | false | null | package com.pedrogomez.hnmob.di
import androidx.room.Room
import com.pedrogomez.hnmob.repository.HitsProvider
import com.pedrogomez.hnmob.repository.local.HitsDataBase
import com.pedrogomez.hnmob.repository.local.HitsLocalRepo
import org.koin.android.ext.koin.androidApplication
import org.koin.dsl.module
val dbModule... | 0 | Kotlin | 0 | 0 | 4828a3bda58b4ee61bbdd814dab2b222105b2a97 | 700 | HNMob | MIT License |
catch-android-sdk/src/main/kotlin/com/getcatch/android/repository/RewardsRepository.kt | getcatch | 527,652,112 | false | {"Kotlin": 314904, "HTML": 511, "Shell": 441} | package com.getcatch.android.repository
import com.getcatch.android.models.CalculateRewardsResult
import com.getcatch.android.models.Item
import com.getcatch.android.models.PublicUserData
internal interface RewardsRepository {
suspend fun fetchCalculatedEarnedReward(
user: PublicUserData,
price: I... | 2 | Kotlin | 0 | 1 | d0638436dfc233593ce13171cb279629b2b799ad | 419 | catch-android-sdk | MIT License |
app/src/main/java/com/zeynelerdi/themovies/di/annotations/ViewModelKey.kt | ZeynelErdiKarabulut | 313,726,834 | false | null |
package com.zeynelerdi.themovies.di.annotations
import androidx.lifecycle.ViewModel
import dagger.MapKey
import kotlin.reflect.KClass
@MapKey
@Target(AnnotationTarget.FUNCTION)
internal annotation class ViewModelKey(val value: KClass<out ViewModel>)
| 0 | Kotlin | 0 | 0 | 9bfd55a8700f1c49ce0acca1db033b3fb7ac8c4f | 254 | TheMoviesApp | MIT License |
app/src/main/java/com/rifafauzi/moviecoroutines/MovieApp.kt | rrifafauzikomara | 236,888,438 | false | null | package com.rifafauzi.moviecoroutines
import android.app.Application
import android.content.Context
import androidx.multidex.MultiDex
import com.rifafauzi.moviecoroutines.di.component.DaggerAppComponent
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasAndr... | 0 | Kotlin | 2 | 10 | 04783877178c459bd1183e1f8378d45962b6af6a | 1,105 | MovieCoroutines | The Unlicense |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsresettlementpassportapi/service/ServiceUtils.kt | ministryofjustice | 665,659,688 | false | {"Kotlin": 1045906, "Dockerfile": 1351} | package uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.service
import com.nimbusds.jwt.JWTParser
import org.apache.commons.text.WordUtils
import org.slf4j.LoggerFactory
import uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.data.CaseNoteType
import uk.gov.justice.digital.hmpps.hmppsresettlementpas... | 1 | Kotlin | 2 | 1 | ab66756e2738c9cbd99d03889e9fc91f1be3d67b | 5,215 | hmpps-resettlement-passport-api | MIT License |
compiler/testData/codegen/box/casts/asSafeForConstants.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
fun box(): String {
if ((1 as? Int) == null) return "fail 1"
if ((1 as? Byte) != null) return "fail 2"
if ((1 as? Short) != null) return "fail 3"
if ((1 as? Long) != null) return "fai... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,172 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/mcc/ddm/event/EventTrigger.kt | Data-Driven-Minecraft | 362,412,700 | false | {"Kotlin": 23292, "Java": 5509} | package com.github.mcc.ddm.event
import net.minecraft.loot.condition.LootCondition
import net.minecraft.util.Identifier
/**
* Represents a trigger for an [Event].
* @property source An [Identifier] representing the source event trigger
* @property conditions A list of [LootCondition]s that have to succeed to trigg... | 2 | Kotlin | 1 | 4 | e7baf84c6b6a7ff2984b83859644208147197a13 | 423 | ddm-main | Creative Commons Zero v1.0 Universal |
app/src/main/java/info/spreadcode/jetpacknavigationgraph/onItemClick.kt | diweshsingh | 252,831,218 | false | null | package info.spreadcode.jetpacknavigationgraph
/**
* Created by <NAME> on 18,April,2020
*/
interface onItemClick {
fun onAddOrRemoveListener()
} | 0 | Kotlin | 0 | 1 | 450d192f2b61e01b33ddf22ec77a54da5489142b | 153 | JetpackNavigationGraph | Apache License 2.0 |
src/commonMain/kotlin/scenes/BeyondTitleScene.kt | jfbilodeau | 402,501,246 | false | null | package scenes
import Game
import com.soywiz.klock.milliseconds
import com.soywiz.klock.seconds
import com.soywiz.korau.sound.readSound
import com.soywiz.korge.input.onClick
import com.soywiz.korge.scene.Scene
import com.soywiz.korge.scene.delay
import com.soywiz.korge.ui.UITextButton
import com.soywiz.korge.ui.textSi... | 0 | Kotlin | 1 | 2 | 306f034be2d9832743c3fb0acfbfd46b53c7f01f | 4,061 | BeyondBeachball | Apache License 2.0 |
inference/inference-core/src/commonTest/kotlin/io/kinference/operators/operations/RangeTest.kt | JetBrains-Research | 244,400,016 | false | null | package io.kinference.operators.operations
import io.kinference.KITestEngine
import io.kinference.utils.TestRunner
import kotlin.test.Test
class RangeTest {
private fun getTargetPath(dirName: String) = "range/$dirName/"
@Test
fun test_range_float_positive_delta() = TestRunner.runTest {
KITestEngi... | 4 | Kotlin | 5 | 95 | e47129b6f1e2a60bf12404d8126701ce7ef4db3a | 610 | kinference | Apache License 2.0 |
app/src/main/java/io/github/droidkaigi/confsched2018/presentation/topic/TopicDetailActivity.kt | kikuchy | 117,505,507 | false | null | package io.github.droidkaigi.confsched2018.presentation.topic
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.content.Intent
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.F... | 30 | null | 337 | 2 | 55375a6e66d124cb19f1ebbce45e20aa6f6d7823 | 3,509 | conference-app-2018 | Apache License 2.0 |
src/main/kotlin/eu/pieland/delta/DeltaCreatorChecksum.kt | PinkieSwirl | 712,999,236 | false | {"Kotlin": 61323} | package eu.pieland.delta
import java.nio.ByteBuffer
import java.nio.channels.SeekableByteChannel
private const val MASK_I = 0xffff
private const val MASK_L = 0xffffL
private const val SHIFT = 16
private const val OFFSET = 128
@JvmInline
internal value class DeltaCreatorChecksum(internal val checksum: Long = 0) {
... | 1 | Kotlin | 0 | 0 | 2ef8b6769f821eb954fdd38894a59ed5b4993970 | 4,499 | PieDelta | MIT License |
feature/adsense/data/src/commonMain/kotlin/com/myads/adsense/data/repository/AuthRepository.kt | sung-eun | 396,356,166 | false | null | package com.myads.adsense.data.repository
import com.essie.myads.domain.repository.IAuthRepository
import com.myads.adsense.data.datasource.local.AuthLocalDataSource
import com.myads.adsense.data.datasource.remote.GoogleAuthRemoteDataSource
class AuthRepository(
private val localDataSource: AuthLocalDataSource,
... | 0 | Kotlin | 0 | 0 | 6b3979fcbbd6c6b92a0980d739cbea2285b74052 | 1,072 | my-ads-widget | Apache License 2.0 |
app/src/main/java/com/nab/weatherforecast/ui/DailyForecastFragment.kt | phuongnguyen2302 | 517,059,024 | false | null | package com.nab.weatherforecast.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.nab.weatherforecast.DailyForecastApplication
import com.nab.weatherforecast.databinding.FragmentDailyForecastBinding
op... | 0 | Kotlin | 0 | 0 | 76179d8c809481a633e4dab8084365d51e4d2cd4 | 1,560 | weather_forecast | Apache License 2.0 |
domain/src/commonMain/kotlin/ireader/domain/catalogs/interactor/SyncRemoteCatalogs.kt | kazemcodes | 540,829,865 | true | {"Kotlin": 2179459} | package ireader.domain.catalogs.interactor
import ireader.core.log.Log
import ireader.domain.catalogs.CatalogPreferences
import ireader.domain.catalogs.service.CatalogRemoteApi
import ireader.domain.catalogs.service.CatalogRemoteRepository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
imp... | 0 | Kotlin | 0 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 1,633 | IReader | Apache License 2.0 |
android/src/org/jetbrains/android/uipreview/ModuleClassLoaderOverlays.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 3 | null | 230 | 921 | dbd9aeae0dc5b8c56ce2c7d51208ba26ea0f169b | 4,508 | android | Apache License 2.0 |
app/src/main/java/me/stanis/apps/fiRun/ui/home/model/LatestStats.kt | fstanis | 647,926,349 | false | {"Kotlin": 329503} | /*
* Copyright 2023 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 i... | 0 | Kotlin | 0 | 0 | f1f2be67e2f9ba73c2b524756452f617df68c1a2 | 1,123 | fiRun | Apache License 2.0 |
app/src/main/java/com/techk/pixar/adapters/UnsplashPhotoAdapter.kt | YashKr01 | 395,073,267 | false | null | package com.techk.pixar.adapters
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import c... | 0 | Kotlin | 0 | 1 | 9c5d18eae207ce8606cea05e75b65d989ccf7923 | 3,618 | Pixar-PlayStore | MIT License |
adapty/src/main/java/com/adapty/internal/data/models/PromoDto.kt | adaptyteam | 238,537,754 | false | null | package com.adapty.internal.data.models
import androidx.annotation.RestrictTo
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class PromoDto(
@SerializedName("promo_type")
val promoType: String?,
@SerializedName("variation_id")
val variationId: St... | 4 | Kotlin | 9 | 26 | 7a8bef605a3a68eb2f725fe8e79b312c28226615 | 390 | AdaptySDK-Android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/networkfirewall/StatelessRuleGroupReferencePropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.networkfirewall
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.networkfirewall.CfnFirewallPolicy
@Generated
public fun buildStatelessRuleGroupReferenceProperty(initializer: @AwsCdkDsl
... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 553 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/github/zimo/autojsx/action/command/SaveDir.kt | zimoyin | 675,280,596 | false | null | package github.zimo.autojsx.action.command
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
import com.intellij.openapi.fileChooser.FileChooserFactory
import com.intellij.openapi.project.Project... | 0 | Kotlin | 0 | 0 | b2cc1b4f9ab7c06fc150fab139ceadaab32acea4 | 1,745 | Autojsx.WIFI | Apache License 2.0 |
app/src/main/java/com/burhan/androcoda/ui/home/HomeViewModel.kt | burhanaras | 329,730,315 | false | null | package com.burhan.androcoda.ui.home
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.burhan.common.data.repository.Result
import com.burhan.common.domain.usecase.DownloadBitcoinPriceUseCase
import kotlinx.coroutines.launch
class HomeVie... | 0 | Kotlin | 0 | 0 | 2ba90edaa588c50a154c58eb1d6b29847f9f90e3 | 896 | AndroCoda | Apache License 2.0 |
core/datastore/src/main/kotlin/cn/wj/android/cashbook/core/datastore/serializer/GitInfosSerializer.kt | WangJie0822 | 365,932,300 | false | {"Kotlin": 1323186, "Java": 1271087} | package cn.wj.android.cashbook.core.datastore.serializer
import androidx.datastore.core.CorruptionException
import androidx.datastore.core.Serializer
import cn.wj.android.cashbook.core.datastore.GitInfos
import com.google.protobuf.InvalidProtocolBufferException
import java.io.InputStream
import java.io.OutputStream
im... | 0 | Kotlin | 7 | 23 | 004fb1d6e81ff60fd9e8cb46dc131107a720bbe5 | 907 | Cashbook | Apache License 2.0 |
src/main/kotlin/org/eightsines/kotlinperfopt/A26.kt | restorer | 217,991,803 | false | {"Java": 16759, "Kotlin": 7977} | package org.eightsines.kotlinperfopt
@Suppress("NOTHING_TO_INLINE")
private inline fun sq(x: Double) = x * x
class A26 {
private class Point(@JvmField val x: Double, @JvmField var y: Double)
private fun foo(x: Double, y: Double, r: Double, p: Point) =
sq(x - p.x) + sq(y - p.y) < sq(r)
}
| 1 | null | 1 | 1 | 00f3010d5c21810e2b3068283323ac933b2c9a22 | 307 | grocon-19-kotlin-perf-opt | MIT License |
src/pt/hentaiyabu/src/eu/kanade/tachiyomi/animeextension/pt/hentaiyabu/HYConstants.kt | Luft21 | 553,636,037 | true | {"Kotlin": 1010221, "Java": 7063, "Shell": 3029} | package eu.kanade.tachiyomi.animeextension.pt.hentaiyabu
object HYConstants {
const val ACCEPT_LANGUAGE = "pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7"
const val USER_AGENT = "Mozilla/5.0 (Linux; Android 10; SM-A307GT Build/QP1A.190711.020;) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.71 Mobil... | 0 | Kotlin | 0 | 0 | d81b92a7e91465d90372ec11ebb8f9f136cc37aa | 546 | aniyomi-extensions | Apache License 2.0 |
src/org/elixir_lang/mix/Dep.kt | opencollective | 329,010,568 | false | null | package org.elixir_lang.mix
import com.intellij.openapi.project.Project
import com.intellij.openapi.roots.ProjectRootManager
import com.intellij.openapi.vfs.VfsUtil
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiElement
import org.elixir_lang.errorreport.Logger
import org.elixir_lang.psi.*
impo... | 0 | null | 0 | 1 | aca1883ea06722a469a5b4bee61e1781d315c45a | 4,546 | intellij-elixir | Apache License 2.0 |
client/src/jsMain/kotlin/drawers/ExperienceDrawer.kt | InsanusMokrassar | 522,176,201 | false | {"Kotlin": 53194, "HTML": 264} | package dev.inmo.resume.client.drawers
import androidx.compose.runtime.Composable
import dev.inmo.resume.client.utils.Drawer
import dev.inmo.resume.common.models.Experience
import org.jetbrains.compose.web.css.*
import org.jetbrains.compose.web.dom.*
class ExperienceDrawer(
private val experience: Experience
) : ... | 0 | Kotlin | 0 | 1 | 823d6ec8e11431fee1eb32816f8cc61c24d33028 | 1,351 | cv | MIT License |
projects/Fans-app/common/src/main/kotlin/com/fans/kotlinconf/data/Link.kt | monkeyer | 104,534,041 | true | {"Text": 680, "Markdown": 1247, "Gradle": 123, "Shell": 59, "Ignore List": 305, "Batchfile": 38, "XML": 288, "Java Properties": 43, "Kotlin": 581, "INI": 3, "Java": 13, "Proguard": 6, "JSON": 1057, "HTML": 2613, "JavaScript": 7548, "CMake": 1, "Makefile": 71, "C++": 42, "JAR Manifest": 61, "SQL": 31, "Motorola 68K Asse... | package com.fans.kotlinconf.data
import kotlinx.serialization.*
@Serializable
data class Link(
val linkType: String? = null,
val title: String? = null,
val url: String? = null
)
| 0 | JavaScript | 0 | 0 | 93aadca6195a5249b8ffce6739403633eacd9b3e | 204 | kotlin-examples | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/appflow/OAuth2PropertiesPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.appflow
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.appflow.CfnConnectorProfile
@Generated
public fun buildOAuth2PropertiesProperty(initializer: @AwsCdkDsl
CfnConnectorProfile.OA... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 501 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/com/wingsoft/demo/global/BaseFragment.kt | plmmmmlq | 183,375,762 | false | null | package com.wingsoft.demo.global
import android.content.Context
import android.view.View
import androidx.fragment.app.Fragment
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
/**
* BaseFragment
*
* @author 祁连山
* @date 2019-04-24
* @version 1.0
*/
abstract class Bas... | 0 | Kotlin | 0 | 0 | e6eff5f03f16a33860abb6a9eca3c16ca9e49e0e | 847 | diamond | Apache License 2.0 |
src/behavioral/templatemethod/WoodenHouse.kt | daolq3012 | 96,442,903 | false | null | package behavioral.templatemethod
/**
* Created by framgia on 11/07/2017.
*/
class WoodenHouse : HouseTemplate() {
override fun initiation() {
print("Start build wooden house : \n")
}
override fun buildPillars() {
print("Building pillars with wood coating\n")
}
override fun buil... | 0 | Kotlin | 1 | 5 | 9c0e6a5f20e8297bf10f32e92048ff8704bea43b | 464 | KotlinDesignPattern | Creative Commons Attribution 4.0 International |
app/src/main/kotlin/co/netguru/android/coolcal/calendar/InstancesLoader.kt | netguru | 47,631,102 | false | null | package co.netguru.android.coolcal.calendar
import android.content.Context
import android.provider.CalendarContract
import android.support.v4.content.CursorLoader
/**
* Definitions for loading CalendarContract.Instances
*/
object InstancesLoader {
@JvmStatic val INSTANCES_URI = CalendarContract.Instances.CONTE... | 0 | Kotlin | 3 | 9 | a27a308bc83c3f049e285f25c8bea4e17783d320 | 2,134 | coolcal-android | Apache License 2.0 |
platform/platform-impl/src/com/intellij/notification/impl/NotificationSettings.kt | ingokegel | 284,920,751 | false | null | /*
* Copyright 2000-2009 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 agre... | 214 | null | 4829 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 3,103 | intellij-community | Apache License 2.0 |
vire-stdlib/src/main/kotlin/net/voxelpi/vire/stdlib/kernel/Memory.kt | VoxelPi | 700,036,011 | false | {"Kotlin": 336370} | package net.voxelpi.vire.stdlib.kernel
import net.voxelpi.vire.engine.BooleanState
import net.voxelpi.vire.engine.Identifier
import net.voxelpi.vire.engine.LogicState
import net.voxelpi.vire.engine.kernel.Kernel
import net.voxelpi.vire.engine.kernel.KernelProvider
import net.voxelpi.vire.engine.kernel.kernel
import ne... | 1 | Kotlin | 0 | 0 | d7823aa5aa361a1fa5e5057b10433fa5194a0ffd | 3,360 | Vire | MIT License |
src/main/kotlin/com/atis/gap/adapter/in/mapper/CompanyMapperIn.kt | adrianofsp | 481,914,207 | false | {"Kotlin": 13004, "Dockerfile": 55} | package com.atis.gap.adapter.`in`.mapper
import com.atis.gap.adapter.`in`.rest.dto.CompanyDto
import com.atis.gap.application.domain.enterprise.Company
fun CompanyDto.toDomain() = runCatching {
with(this) {
var company = Company(name = name)
company
}
} | 0 | Kotlin | 0 | 0 | 3fcc62ab0f93a4146a0edb0295a66cf80659f3c8 | 279 | gap-company-ms | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/home/settings/SettingsRoute.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.feature.home.settings
import androidx.compose.runtime.Composable
import com.artemchep.keyguard.feature.navigation.Route
object SettingsRoute : Route {
const val ROUTER_NAME = "settings"
@Composable
override fun Content() {
SettingsScreen()
}
}
| 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 302 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
app/src/main/java/com/pij/zworkout/workout/feature/LoadFeature.kt | pijpijpij | 123,127,685 | false | null | /*
* Copyright 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 in... | 1 | Kotlin | 0 | 0 | cc62fb7cb2fd97aad2642355b012f3237fd51bc8 | 2,533 | Zworkout | Apache License 2.0 |
Sample/kotlin/src/main/java/com/goelrishabh/kotlin/Variables.kt | gorishabh | 265,919,867 | false | null | package com.goelrishabh.kotlin
/**
* @project Sample
* @author rishabh-goel on 22-05-2020
*/
fun main() {
val myImmutableName = "<NAME>" // immutable
var myMutableName = "<NAME>"
myMutableName = "<NAME>"
// To get the type which they belong to!
println(myImmutableName::class)
println(myIm... | 0 | null | 0 | 0 | e47c8b1d7e7a7d7e1eec37e5ce34a1460037eb56 | 846 | 30DaysOfKotlin | MIT License |
2P/MiaCell/app/src/main/java/com/lfg/miacell/viewmodels/DetailViewModel.kt | leonelgomez1990 | 402,218,277 | false | null | package com.lfg.miacell.viewmodels
import android.content.Context
import android.content.SharedPreferences
import android.view.View
import android.webkit.URLUtil
import android.widget.ImageView
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.bumptech.glide.Glide
import com.goog... | 0 | Kotlin | 0 | 0 | ce39f62befef83d53a3809411dbf60c2dcd410cc | 3,932 | kotlin1 | MIT License |
addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/observers/ConfigEntityObserversTests.kt | MineInAbyss | 306,093,350 | false | {"Kotlin": 297519} | package com.mineinabyss.geary.prefabs.observers
import com.mineinabyss.geary.modules.TestEngineModule
import com.mineinabyss.geary.modules.geary
import com.mineinabyss.geary.prefabs.Prefabs
import com.mineinabyss.geary.prefabs.configuration.components.EntityObservers
import com.mineinabyss.geary.serialization.dsl.seri... | 11 | Kotlin | 11 | 47 | e4e16f4604a268ddb03bd8a75ed0483f37f58e0f | 2,459 | geary | MIT License |
libs/rest/rest-server-impl/src/integrationTest/kotlin/net/corda/rest/server/impl/RestServerApiVersioningTest.kt | corda | 346,070,752 | false | null | package net.corda.rest.server.impl
import net.corda.rest.annotations.RestApiVersion
import net.corda.rest.server.config.models.RestServerSettings
import net.corda.rest.test.TestEndpointVersioningRestResourceImpl
import net.corda.rest.test.TestResourceMaxVersioningRestResourceImpl
import net.corda.rest.test.TestResourc... | 27 | null | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 5,380 | corda-runtime-os | Apache License 2.0 |
projects/core/src/main/kotlin/site/siredvin/peripheralworks/common/blockentity/PeripheralProxyBlockEntity.kt | SirEdvin | 489,471,520 | false | null | package site.siredvin.peripheralworks.common.blockentity
import dan200.computercraft.api.peripheral.IPeripheral
import dan200.computercraft.shared.computer.core.ServerContext
import net.minecraft.core.BlockPos
import net.minecraft.core.Direction
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.ListTag
imp... | 5 | null | 3 | 9 | a59b8b79e5df1de388bba9fb0d8effe5763e569b | 10,736 | UnlimitedPeripheralWorks | MIT License |
client/app/src/main/java/com/sinbaram/mapgo/SnsFeedActivity.kt | PNU-Sinbaram | 380,653,230 | false | null | package com.sinbaram.mapgo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.*
import androidx.annotation.UiThread
import androidx.recyclerview.widget.LinearLayoutManager
import com.bumptech.glide.Glide
import com.naver.maps.... | 1 | Kotlin | 0 | 4 | 126b58c7ab2ba6554c620609b326ba5b2f4ed771 | 9,847 | MapGo | MIT License |
app/src/main/java/com/noto/app/data/repository/SettingsKeys.kt | alialbaali | 245,781,254 | false | null | package com.noto.app.data.repository
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.intPreferencesKey
import androidx.datastore.preferences.core.longPreferencesKey
import androidx.datastore.preferences.core.stringPreferencesKey
import com.noto.app.data.repos... | 22 | Kotlin | 5 | 110 | eddbc37678b501264a03d71d05d1bcc074a0f571 | 5,156 | Noto | Apache License 2.0 |
domain-jvm/src/main/kotlin/studio/lunabee/onesafe/domain/repository/DatabaseKeyRepository.kt | LunabeeStudio | 624,544,471 | false | null | /*
* Copyright (c) 2024 Lunabee Studio
*
* 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 agree... | 1 | null | 1 | 2 | 935c5a9fad27406874bc63ec6729fd68269a76ec | 1,267 | oneSafe6_SDK_Android | Apache License 2.0 |
app/src/main/java/com/appzeto/lms/presenterImpl/SaasPackagePresenterImpl.kt | Prashant-ranjan-singh-123 | 815,819,154 | false | {"Kotlin": 1527382, "Java": 137045} | package com.appzeto.lms.presenterImpl
import com.appzeto.lms.manager.net.ApiService
import com.appzeto.lms.manager.net.CustomCallback
import com.appzeto.lms.manager.net.RetryListener
import com.appzeto.lms.model.Data
import com.appzeto.lms.model.SaasPackage
import com.appzeto.lms.model.SaasPackageItem
import com.appze... | 0 | Kotlin | 0 | 0 | 73c9944e49064cf583ab3717ca829b8464ceff0f | 2,034 | StudySync | MIT License |
common/src/main/java/ru/haroncode/wordlearn/common/util/Themes.kt | Hukumister | 182,296,995 | false | null | package ru.haroncode.wordlearn.common.util
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.annotation.ColorInt
import androidx.annotation.IntRange
import androidx.annotation.Px
import androidx.appcompat.content.r... | 0 | Kotlin | 0 | 5 | 1b98049eace38ed832f1ff41ddccd50b37b0f611 | 1,646 | WordLearn | MIT License |
bbfgradle/tmp/results/diffABI/fzfuklf_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM , JVM -Xuse-ir
// !LANGUAGE: +NewInference, +FunctionalInterfaceConversion, +SamConversionPerArgument, +SamConversionForKotlinFunctions
// WITH_RUNTIME
// FILE: tmp0.kt
import kotlin.collections.*
fun interface MyRunnable {
fun invoke()
}
class A {
inline fun doWork(noinline job: () -> ... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 1,140 | kotlinWithFuzzer | Apache License 2.0 |
src/main/kotlin/com/malinskiy/adam/AndroidDebugBridgeClient.kt | Vacxe | 345,498,895 | true | {"Kotlin": 690853, "Shell": 1454} | /*
* Copyright (C) 2019 <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 | null | 0 | 0 | ea1c8dbec7fb8c6ef2722bf230937adc5d4aac66 | 5,788 | adam | Apache License 2.0 |
app/src/main/java/nl/rsdt/japp/jotial/maps/window/ScoutingGroepClickSession.kt | RSDT | 62,879,943 | false | {"Gradle": 3, "YAML": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 2, "XML": 42, "Kotlin": 163} | package nl.rsdt.japp.jotial.maps.window
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.Circle
import com.google.android.gms.maps.model.CircleOptions
import com.google.android.gms.maps.model.Marker
import com.google.gson.Gson
import nl.rsdt.japp.jotial.data.structures.area348.Vos... | 38 | null | 2 | 1 | c5ea8b9d405850d2f17e7fa26a2712d788a6e255 | 2,080 | Japp16 | Apache License 2.0 |
app/src/main/java/com/wackalooon/ecometer/di/DaoModule.kt | Wackaloon | 56,212,468 | false | {"Kotlin": 33112} | package com.wackalooon.ecometer.di
import android.content.Context
import com.wackalooon.meter.data.storage.MeterDao
import com.wackalooon.meter.data.storage.MeterDatabase
import com.wackalooon.value.data.storage.ValueDao
import com.wackalooon.value.data.storage.ValueDatabase
import dagger.Module
import dagger.Provides... | 0 | Kotlin | 0 | 0 | 40986f366aded16446ce00674323f1ba462c4900 | 626 | EcoMeter | Apache License 2.0 |
dialog/src/main/java/com/angcyo/dialog/BaseColorPickerDialog.kt | angcyo | 229,037,615 | false | null | package com.angcyo.dialog
import android.app.Dialog
import android.graphics.Color
import com.angcyo.library.L
import com.angcyo.library.ex._string
import com.angcyo.widget.DslViewHolder
/**
* 颜色选择对话框基类
* @author <a href="mailto:<EMAIL>">angcyo</a>
* @since 2022/06/28
*/
abstract class BaseColorPickerDialog : Base... | 0 | null | 6 | 5 | e1eaccee8648133d8fe35713127439b06c8dfef0 | 1,094 | UICore | MIT License |
API/src/main/kotlin/xyz/r2turntrue/papertweaks/api/PaperTweaksImpl.kt | R2turnTrue | 405,632,569 | false | null | package xyz.r2turntrue.papertweaks.api
import org.bukkit.event.Listener
interface PaperTweaksImpl {
fun isTweakEnabled(tweak: Tweak) : Boolean
fun registerListener(listener: Listener)
fun saveTweaks()
} | 0 | Kotlin | 0 | 1 | 1217c1254ededefa55e249b01c2767c046d64f60 | 220 | paper-tweaks | MIT License |
app-catalog/app/src/main/java/com/wintmain/catalog/app/MainActivity.kt | wosys | 719,137,779 | false | {"Gradle": 16, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 10, "TOML": 1, "XML": 279, "Proguard": 1, "Kotlin": 15, "Java": 191, "Soong": 2, "AIDL": 7} | /*
* Copyright 2023-2024 wintmain
*
* 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 ... | 0 | Java | 1 | 4 | 88ccc058b29f6771b7b6e92b7340446e47837c8b | 1,687 | Android_Kickoff | Apache License 2.0 |
151004/Burbouski/appLab5/common/src/main/kotlin/com/github/hummel/dc/lab5/bean/Author.kt | aaaaaa123b | 769,540,721 | true | {"Markdown": 21, "C#": 5491, "Dockerfile": 81, "Java": 7348, "Java Properties": 51, "INI": 219, "Gradle Kotlin DSL": 50, "Kotlin": 675, "Shell": 16, "Batchfile": 71, "PHP": 177, "SQL": 23, "JavaScript": 5, "TypeScript": 114, "CSS": 20, "HTML": 9, "Java Server Pages": 28, "HTML+Razor": 6, "Go": 33} | package com.github.hummel.dc.lab5.bean
import com.github.hummel.dc.lab5.dto.response.AuthorResponseTo
import kotlinx.serialization.Serializable
@Serializable
data class Author(
val id: Long?, val login: String, val password: String, val firstname: String, val lastname: String
) {
fun toResponse(): AuthorResponseTo ... | 0 | Java | 0 | 0 | 6daf9bb179b4d3e9d2be2dca02698b1f6eee3cd6 | 382 | DC2024-01-27 | MIT License |
app/src/main/java/me/devsaki/hentoid/fragments/ProgressDialogFragment.kt | avluis | 37,775,708 | false | {"C": 4044011, "Kotlin": 2794467, "Java": 616300, "C++": 465431, "CMake": 44472, "M4": 42737, "Shell": 41599, "Roff": 38560, "Makefile": 33752, "Python": 26865, "HTML": 6592, "JavaScript": 6327, "CSS": 1842, "Go": 1235} | package me.devsaki.hentoid.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.PluralsRes
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
i... | 167 | C | 85 | 992 | f54df07b79da4147951bc9902ab0dbd70edb50f1 | 4,212 | Hentoid | Apache License 2.0 |
src/main/kotlin/com/pineypiney/game_engine/audio/AudioSource.kt | PineyPiney | 491,900,499 | false | {"Kotlin": 672860, "GLSL": 33407} | package com.pineypiney.game_engine.audio
import com.pineypiney.game_engine.resources.audio.Audio
import org.lwjgl.openal.AL10
class AudioSource(audio: Audio): AbstractAudioSource() {
init {
AL10.alSourcei(ptr, AL10.AL_BUFFER, audio.buf)
}
} | 0 | Kotlin | 0 | 0 | bd1803298396188b6f9c5c07e56b0f8a4d96e969 | 259 | GameEngine | MIT License |
app/src/main/java/com/example/bookstore/common/Extensions.kt | duygucalik | 680,611,224 | false | null | package com.example.bookstore.common
import android.widget.ImageView
import com.bumptech.glide.Glide
fun ImageView.loadImage(url: String?) {
Glide.with(this.context).load(url).into(this)
} | 0 | Kotlin | 0 | 0 | f4220ae7a6de7c28433317d588f8bd90263943f4 | 194 | BookStore | MIT License |
loaderspack/src/main/java/com/agrawalsuneet/loaderspack/loaders/SearchLoader.kt | agrawalsuneet | 108,691,276 | false | null | package com.agrawalsuneet.loaderspack.loaders
import android.content.Context
import android.util.AttributeSet
import android.view.ViewTreeObserver
import android.view.animation.*
import android.widget.RelativeLayout
import com.agrawalsuneet.dotsloader.utils.random
import com.agrawalsuneet.loaderspack.R
import com.agra... | 1 | null | 18 | 131 | 1acf30bbd693d7143ddf5ffc52421b4b90071aef | 5,647 | LoadersPack-Android | Apache License 2.0 |
devp2p/src/main/kotlin/org/apache/tuweni/devp2p/v5/topic/Topic.kt | apache | 178,461,625 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 6 | null | 78 | 171 | 0852e0b01ad126b47edae51b26e808cb73e294b1 | 1,098 | incubator-tuweni | Apache License 2.0 |
test_runner/src/main/kotlin/ftl/Main.kt | LeoDog896 | 350,878,452 | true | {"Kotlin": 1444407, "Java": 445329, "Swift": 49920, "Shell": 10485, "Objective-C": 9968, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1297, "EJS": 1061, "Ruby": 918, "Go": 159} | package ftl
import ftl.cli.MainCommand
import ftl.run.exception.withGlobalExceptionHandling
import picocli.CommandLine
fun main(args: Array<String>) {
withGlobalExceptionHandling {
CommandLine(MainCommand()).execute(*args)
}
}
| 0 | null | 0 | 0 | 756d76cf7dbd8e1b5cec84123ddc4e07af67bc26 | 245 | flank | Apache License 2.0 |
app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListAppearance.kt | k9mail | 1,326,671 | false | null | package com.fsck.k9.ui.messagelist
import com.fsck.k9.FontSizes
data class MessageListAppearance(
val fontSizes: FontSizes,
val previewLines: Int,
val stars: Boolean,
val senderAboveSubject: Boolean,
val showContactPicture: Boolean,
val showingThreadedList: Boolean,
... | 600 | null | 2240 | 6,469 | 3a98e7b0ec67f6e1778574141c4300cf0e0ca983 | 404 | k-9 | Apache License 2.0 |
async/src/main/java/contacts/async/util/InsertResultAsync.kt | vestrel00 | 223,332,584 | false | {"Kotlin": 1616347, "Shell": 635} | package contacts.async.util
import contacts.async.ASYNC_DISPATCHER
import contacts.core.Contacts
import contacts.core.Insert
import contacts.core.entities.Contact
import contacts.core.entities.MutableRawContact
import contacts.core.entities.RawContact
import contacts.core.util.contact
import contacts.core.util.contact... | 26 | Kotlin | 35 | 573 | 383594d2708296f2fbc6ea1f10b117d3acd1f46a | 4,627 | contacts-android | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/submission/viewmodel/SubmissionQRCodeScanViewModel.kt | elizarov | 312,342,155 | true | {"Kotlin": 1509567, "HTML": 255998} | package de.rki.coronawarnapp.ui.submission.viewmodel
import com.squareup.inject.assisted.AssistedInject
import de.rki.coronawarnapp.util.ui.SingleLiveEvent
import de.rki.coronawarnapp.util.viewmodel.CWAViewModel
import de.rki.coronawarnapp.util.viewmodel.SimpleCWAViewModelFactory
class SubmissionQRCodeScanViewModel @... | 0 | null | 0 | 1 | 74b3f37cfe215a8e1e49c484671f5e0881c37f9a | 793 | cwa-app-android | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/quicksight/ColumnLevelPermissionRulePropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.quicksight
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.quicksight.CfnDataSet
@Generated
public fun buildColumnLevelPermissionRuleProperty(initializer: @AwsCdkDsl
CfnDataSet.Colum... | 1 | Kotlin | 0 | 0 | a1cf8fbfdfef9550b3936de2f864543edb76348b | 507 | aws-cdk-kt | Apache License 2.0 |
node-kotlin/src/jsMain/kotlin/node/crypto/privateDecrypt.kt | karakum-team | 393,199,102 | false | {"Kotlin": 7083457} | // Automatically generated - do not modify!
@file:JsModule("node:crypto")
@file:JsNonModule
package node.crypto
import kotlinx.js.ArrayBufferView
import node.buffer.Buffer
/**
* Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using
* the corresponding public key, for example using {@link pu... | 0 | Kotlin | 6 | 26 | 3ca49a8f44fc8b46e393ffe66fbd81f8b4943c18 | 721 | types-kotlin | Apache License 2.0 |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/config/groovyConfigUtils.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 org.jetbrains.plugins.groovy.config
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.ProjectRootManager
import com.intellij.openapi.roots.libraries.JarVersionDetec... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,577 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/demo/framework/viewModels/ListViewModel.kt | devrath | 289,302,496 | false | null | package com.example.demo.framework.viewModels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.example.core.data.Note
import com.example.demo.framework.di.components.DaggerViewModelComponent
import com.example.demo.framework.di.modules.Appli... | 0 | Kotlin | 0 | 0 | 572ee6cea2447a490f60e66e5a5302e36211f2f8 | 1,229 | DroidNoteApplication | Apache License 2.0 |
src/main/kotlin/de/quantummaid/documaid/domain/markdown/tagBased/navigation/NavigationDirective.kt | quantummaid | 230,588,078 | false | null | /**
* Copyright (c) 2020 <NAME> - https://quantummaid.de/.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you un... | 16 | Kotlin | 0 | 2 | f9cf862e1ab8d539e0ef01227a555121f7354339 | 2,450 | documaid | Apache License 2.0 |
app/src/main/java/be/digitalia/fosdem/api/FosdemUrls.kt | cbeyls | 15,915,146 | false | {"Kotlin": 313312} | package be.digitalia.fosdem.api
/**
* This class contains all FOSDEM Urls
*
* @author <NAME>
*/
object FosdemUrls {
val schedule
get() = "https://fosdem.org/schedule/xml"
val rooms
get() = "https://api.fosdem.org/roomstatus/v1/listrooms"
val localNavigation
get() = "https://nav... | 21 | Kotlin | 91 | 131 | c86e598ffafff6f4d2d70266b80cbaef7e9cc7e2 | 783 | fosdem-companion-android | Apache License 2.0 |
shared/src/commonTest/kotlin/com/henrymxu/openaikotlin/services/CompletionsTest.kt | henrymxu | 574,030,476 | false | {"Kotlin": 117215, "TypeScript": 11097, "Swift": 7107, "Ruby": 3681, "HTML": 1721, "CSS": 577, "Shell": 344} | package com.henrymxu.openaikotlin.services
import com.henrymxu.openaikotlin.BaseServiceTest
import com.henrymxu.openaikotlin.models.CreateCompletionRequest
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotEquals
import kotlin.test.assertNotNull
... | 0 | Kotlin | 3 | 3 | 4c78b930b3a732a58d2451068d74e7c1b5cbb168 | 2,840 | openai-kotlin | MIT License |
plugin-bazel-event-service/src/main/kotlin/bazel/bazel/handlers/NamedSetOfFilesHandler.kt | JetBrains | 143,697,750 | false | {"Kotlin": 442914, "Java": 15926, "Starlark": 4160, "Gherkin": 3553, "ANTLR": 1773, "Batchfile": 968, "CSS": 636} | /*
* Copyright 2000-2023 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 agre... | 6 | Kotlin | 8 | 13 | 042ca386f20d1fbe13e8bf42b5d39c99aa2e6a78 | 1,566 | teamcity-bazel-plugin | Apache License 2.0 |
src/main/kotlin/pl/polsl/timetable/user/UserRepository.kt | BetterSUTTimetable | 108,151,697 | false | {"Markdown": 1, "Batchfile": 1, "Shell": 1, "Maven POM": 1, "Text": 1, "Ignore List": 1, "YAML": 1, "INI": 1, "Java Properties": 2, "HTML": 2, "Kotlin": 116, "Java": 2} | package pl.polsl.timetable.user
import org.springframework.data.jpa.repository.JpaRepository
import java.util.*
interface UserRepository: JpaRepository<JpaUser, Long> {
fun findByEmail(email: String): Optional<JpaUser>
} | 1 | null | 1 | 1 | b9a495214f628f460746d0b20efd6e00d88d3e59 | 226 | timetable-backend | MIT License |
module_account/src/main/java/app/melon/account/signup/form/SignUpStepFormViewState.kt | biubiubiiu | 344,728,768 | false | null | package app.melon.account.signup.form
import app.melon.account.signup.data.SignUpForm
internal data class SignUpStepFormViewState(
val username: String? = null,
val phoneOrEmail: String? = null,
val birthDate: String? = null,
val password: String? = null,
val inputType: ContactInputType = ContactI... | 1 | Kotlin | 1 | 2 | 6bb52f962084674ed50ffb3f8399c1b413a5a234 | 1,327 | Melon | Apache License 2.0 |
app/src/test/kotlin/com/dpanchyshyn/main/MainTest.kt | dpanchyshyn | 136,187,863 | false | {"Kotlin": 2087} | package com.dpanchyshyn.main
import com.dpanchyshyn.extensions.inferNoOp
import org.junit.Assert.assertNull
import org.junit.Test
class MainTest {
// private val mainObject = Main(object : TestInterface {
//
// override fun returnString() = null as String?
// })
private val mainObject = Main(inferN... | 1 | Kotlin | 2 | 0 | 46262a2e91250d354a46b2ece52500b0194686a2 | 440 | jacocoTest | Apache License 2.0 |
hybid.demo/src/main/java/net/pubnative/lite/demo/ui/viewholders/MarkupLeaderboardViewHolder.kt | pubnative | 315,887,000 | false | {"Gemfile.lock": 1, "Gradle": 23, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 22, "Batchfile": 1, "Markdown": 2, "Ruby": 2, "INI": 19, "Proguard": 14, "XML": 205, "Java": 543, "JSON": 2, "Kotlin": 236, "HTML": 2, "SVG": 1, "JavaScript": 3} | package net.pubnative.lite.demo.ui.viewholders
import android.graphics.Color
import android.text.TextUtils
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.RelativeLayout
import androidx.recyclerview.widget.RecyclerView
import net.pubnative.lite.demo.R
impo... | 1 | Java | 1 | 7 | cb0e1e1724a538b05863195f850491a7457db6da | 2,591 | pubnative-hybid-android-sdk | MIT License |
shared/src/commonMain/kotlin/business/util/handleUseCaseException.kt | razaghimahdi | 714,632,664 | false | null | package business.util
import business.core.DataState
import business.core.UIComponent
import business.datasource.network.common.JAlertResponse
fun <T> handleUseCaseException(e: Exception): DataState<T> {
val splitList: List<String> = e.message?.split(THROWABLE_DIVIDER) ?: listOf()
if (splitList.size<=1) {... | 0 | null | 9 | 97 | 6047cf13ab86a9dd74c8ea4bcba7a9771ec8ad0e | 897 | Shopping-By-KMP | MIT License |
mobile_app1/module1044/src/main/java/module1044packageKt0/Foo1.kt | uber-common | 294,831,672 | false | null | package module1044packageKt0;
annotation class Foo1Fancy
@Foo1Fancy
class Foo1 {
fun foo0(){
module1044packageKt0.Foo0().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 231 | android-build-eval | Apache License 2.0 |
platform/build-scripts/src/org/jetbrains/intellij/build/impl/MacDmgBuilder.kt | stachenov | 169,598,741 | false | {"Text": 6869, "INI": 540, "YAML": 412, "Ant Build System": 10, "Batchfile": 34, "Shell": 621, "Markdown": 668, "Ignore List": 116, "Git Revision List": 1, "Git Attributes": 10, "EditorConfig": 244, "XML": 6841, "SVG": 3479, "Kotlin": 46380, "Java": 79395, "HTML": 3171, "Java Properties": 208, "Gradle": 431, "Maven POM... | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build.impl
import com.intellij.diagnostic.telemetry.useWithScope
import com.intellij.openapi.util.SystemInfoRt
import com.intellij.openapi.util.io.NioFiles
import io.o... | 1 | null | 1 | 1 | 68950e1769880f8e3398e3f87b93d74f34145e2c | 9,453 | intellij-community | Apache License 2.0 |
common-ui/epoxy/src/main/java/com/ant/epoxy/extensions/EpoxyExtensions.kt | toaderandrei | 786,415,615 | false | {"Kotlin": 270589, "Java": 376} | package com.ant.epoxy.extensions
import com.airbnb.epoxy.*
/** For use in the buildModels method of EpoxyController.
* A shortcut for creating a Carousel model, initializing it, and adding it to the controller.
*
*/
inline fun EpoxyController.tmdbCarousel(modelInitializer: CarouselModelBuilder.() -> Unit) {
Ca... | 1 | Kotlin | 0 | 0 | 7d8a5f944d297942dac117d750ccf2fd1b61069b | 811 | popular-movies-kt | MIT License |
Util/src/main/kotlin/dev/frozenmilk/util/cell/SingleCell.kt | Dairy-Foundation | 723,515,808 | false | {"Kotlin": 226570, "Java": 102057} | package dev.frozenmilk.util.cell
/**
* a cell that acts like a collection that could potentially contain a single element
*/
class SingleCell<T>(ref: T? = null) : UnsafeCell<T>(ref), Collection<T>{
override val size: Int
get() = if(get() == null) 0 else 1
override fun containsAll(elements: Collection<T>): Boole... | 0 | Kotlin | 2 | 4 | 4073af1f85ec1f2ceba134eb5d5c314b24221c44 | 816 | Dairy | BSD 3-Clause Clear License |
app/src/main/java/com/bharathvishal/messagecommunicationusingwearabledatalayer/Api/CorpusApi.kt | CBNU-IMY | 570,794,313 | false | {"Kotlin": 87615} | package com.bharathvishal.messagecommunicationusingwearabledatalayer.Api
import com.bharathvishal.messagecommunicationusingwearabledatalayer.Dto.CorpusDto
import retrofit2.Call
import retrofit2.http.*
public interface CorpusApi {
@GET("/api/corpus/emotion_maincategory/{emotion_maincategory}")
fun getAllByMa... | 0 | Kotlin | 0 | 0 | 6e62424919a9c5eb95228d2366405949e155dcbe | 765 | IMY-WEAROS | MIT License |
avro-kotlin/src/main/kotlin/AvroKotlin.kt | toolisticon | 493,962,736 | false | {"Kotlin": 352227, "Java": 1511} | package io.toolisticon.kotlin.avro
import _ktx.ResourceKtx.resourceUrl
import io.toolisticon.kotlin.avro.declaration.ProtocolDeclaration
import io.toolisticon.kotlin.avro.declaration.SchemaDeclaration
import io.toolisticon.kotlin.avro.logical.AvroLogicalType
import io.toolisticon.kotlin.avro.model.AvroType
import io.t... | 13 | Kotlin | 0 | 4 | d45b8fc3300205d4bf278a53ebfa53d3c46d0a48 | 8,203 | avro-kotlin | Apache License 2.0 |
desktop/app/src/main/kotlin/com/abdownloadmanager/desktop/utils/FileIconProvider.kt | amir1376 | 825,187,044 | false | {"Kotlin": 967280, "Shell": 3811} | package com.abdownloadmanager.desktop.utils
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.toComposeImageBitmap
import java.awt.image.BufferedImage
import java.io.File
import javax.swing.filechooser.FileSystemView
object FileIconProvider {
private val registeredIcons = mutable... | 31 | Kotlin | 16 | 721 | 34801da12e8ae1e0a7e4cec5b75a62c6d3b2d265 | 1,841 | ab-download-manager | Apache License 2.0 |
src/test/resources/scenarios/format-fix-file/src/main/kotlin/com/example/Example.kt | z3d1k | 126,242,902 | false | null | package com.example
fun example() {
println("should remove blank line")
}
| 0 | Kotlin | 3 | 14 | e4e73d09777352d3f8b6e9e630783507633d7380 | 80 | ktlint-maven-plugin | MIT License |
src/main/kotlin/tucanChecker/Arguments.kt | TimothyEarley | 88,792,264 | false | null | package tucanChecker
object Parameters {
val appName = "APPNAME" to "CampusNet"
val loginArgs = mapOf(
appName,
"PRGNAME" to "LOGINCHECK",
"usrname" to Config.Tucan.username,
"pass" to Config.Tucan.password,
"clino" to "000000000000001",
"menuno" to "000344",
"menu_type" to "classic",
"brow... | 0 | Kotlin | 0 | 0 | 750d10e0627d45bafb45e30aee20aecfccf8b399 | 547 | TucanExamChecker | MIT License |
app/src/main/java/com/jspj/shoppingassistant/ProductFragment.kt | JP20221069 | 734,825,608 | false | {"Kotlin": 153175} | package com.jspj.shoppingassistant
import android.app.AlertDialog
import android.content.DialogInterface
import android.os.Bundle
import android.text.InputType
import android.view.ContextThemeWrapper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditTex... | 0 | Kotlin | 0 | 0 | 285c84a883cd8b3f9bc2ea27cf6b6c770b1d6d19 | 7,462 | ShoppingAssistant | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.