path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/tfc/ulht/download/FileWriter.kt | Kyseisa | 429,446,128 | true | {"Kotlin": 174071, "Java": 5752} | package com.tfc.ulht.download
import java.io.BufferedInputStream
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
class FileWriter(private val outputStream: OutputStream/*, private val progressCallback: ProgressCallBack*/) :
AutoCloseable {
@Throws(IOException::class)
fu... | 0 | null | 0 | 0 | f246711892a5f8b062c3da4585791fc1e9560b03 | 1,045 | Plugin-Drop-Project | Apache License 2.0 |
domain/src/main/java/com/bottlerocketstudios/brarchitecture/domain/models/PullRequest.kt | BottleRocketStudios | 323,985,026 | false | null | package com.bottlerocketstudios.brarchitecture.domain.models
import java.time.ZonedDateTime
data class PullRequest(
val title: String,
val state: String,
val createdOn: ZonedDateTime?,
val author: String,
val source: String,
val destination: String,
val reviewers: String = "No Reviewers"
)... | 1 | Kotlin | 1 | 9 | e8541ccaa52782c5c2440b8a4fe861ef9178111e | 321 | Android-ArchitectureDemo | Apache License 2.0 |
features/toprated/src/main/java/com/lcabral/artseventh/features/toprated/di/TopRatedModule.kt | LucianaCabral | 706,897,860 | false | {"Kotlin": 154071} | package com.lcabral.artseventh.features.toprated.di
import com.lcabral.artseventh.core.common.navigation.TopRatedNavigation
import com.lcabral.artseventh.core.domain.usecase.GetTopRatedUseCase
import com.lcabral.artseventh.features.toprated.navigation.TopRatedNavigationImpl
import com.lcabral.artseventh.features.topra... | 0 | Kotlin | 0 | 0 | db5146b7ff83227568a255c2d38c4df2380f408f | 862 | ArtSeventh | MIT License |
lib/src/jvmMain/kotlin/xyz/mcxross/ksui/client/Platform.kt | mcxross | 611,172,630 | false | null | package xyz.mcxross.ksui.client
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.CoroutineScope
actual fun httpClient(config: HttpClientConfig<*>.() -> Unit): HttpClient = HttpClient(CIO)
actual suspend fun <T> runBlocking(
context: Co... | 1 | Kotlin | 1 | 3 | 74e9755953aac93317680f076c00c2def5faf763 | 432 | ksui | Apache License 2.0 |
app/src/main/java/com/example/doitnow/ui/main/TaskAdapter.kt | HimashRajapaksha | 840,378,745 | false | {"Kotlin": 26095} | package com.example.doitnow.ui.main
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.widget.PopupMenu
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DiffUtil
import androidx.... | 0 | Kotlin | 0 | 1 | 71fabd65c3c6a7bd7243abd8d6bc87c3faa11430 | 4,804 | TaskBuddy | MIT License |
app/src/main/java/de/krbmr/encryptedroomdb/MainActivityViewModelFactory.kt | Lenz-K | 490,789,179 | false | null | package de.krbmr.encryptedroomdb
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import de.krbmr.encryptedroomdb.database.SecretDatabaseDao
class MainActivityViewModelFactory(private val dataSource: SecretDatabaseDao) : ViewModelProvider.Factory {
@Suppress("unchecked_cast")
o... | 0 | Kotlin | 4 | 3 | ab886176951fa28afc43afc2c2ed85c3e008a492 | 602 | android-encrypted-room-database-example | MIT License |
app/src/main/java/by/godevelopment/kingcalculator/domain/gamesdomain/models/GameModel.kt | aleh-god | 458,515,512 | false | {"Kotlin": 256219, "Java": 6183} | package by.godevelopment.kingcalculator.domain.gamesdomain.models
import by.godevelopment.kingcalculator.domain.commons.models.GameType
data class GameModel(
val id: Long,
val partyId: Long,
val gameType: GameType,
val finishedAt: Long
)
| 2 | Kotlin | 0 | 2 | 295cfb7970e2a488612f3b2ec65984eb5046a460 | 256 | calculator-king | MIT License |
app/src/main/java/com/skyyo/template/utils/TopStartGravityDrawable.kt | flamyoad | 398,625,974 | true | {"Kotlin": 49086} | package com.skyyo.template.utils
import android.graphics.Canvas
import android.graphics.ColorFilter
import android.graphics.PixelFormat
import android.graphics.drawable.Drawable
import com.skyyo.template.extensions.dp
class TopStartGravityDrawable(
private val drawableIcon: Drawable
) : Drawable() {
override... | 0 | Kotlin | 0 | 0 | 78090b8e4c1234732ba498e80041c68f7797877e | 902 | android-template | MIT License |
test/certs/keyserver-token-06.kt | SecureDNA | 772,128,330 | false | {"Rust": 2181890, "TypeScript": 295288, "Kotlin": 53160, "Shell": 30290, "JavaScript": 22074, "HTML": 5237, "Just": 4977, "CSS": 4271, "Earthly": 2823, "Smalltalk": 2276, "Nix": 1652} | -----BEGIN SECUREDNA KEYSERVER TOKEN-----
<KEY>
-----END SECUREDNA KEYSERVER TOKEN-----
-----BEGIN SECUREDNA INFRASTRUCTURE CERTIFICATE CHAIN-----
MIIE3TCCAZyhggGYMIIBlKCCAU6gBoAESU5UMYEOSU5GUkFTVFJVQ1RVUkWiggEy
oIGXgAhTVUJKRUNUMYEQCiMEhBCDx4kYZyFryKmlz4Ig2+odq+aUFjBFWflWp/qf
07YVZnRmwCG9UmPZipplmNOjVYAlU2VjdXJlRE5BLW... | 0 | Rust | 0 | 7 | 9e0f0993deaeddc2622e51ce5b7d39c599353b75 | 551 | SecureDNA | Apache License 2.0 |
docs-examples/example-kotlin/src/test/kotlin/io/micronaut/rabbitmq/docs/consumer/custom/annotation/DeliveryTagAnnotationBinder.kt | vinhbt | 359,574,256 | true | {"INI": 3, "Gradle": 7, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Text": 1, "Ignore List": 1, "AsciiDoc": 31, "YAML": 7, "Java": 119, "XML": 6, "Groovy": 75, "Kotlin": 55} | package io.micronaut.configuration.rabbitmq.docs.consumer.custom.annotation
// tag::imports[]
import io.micronaut.configuration.rabbitmq.bind.RabbitAnnotatedArgumentBinder
import io.micronaut.configuration.rabbitmq.bind.RabbitConsumerState
import io.micronaut.context.annotation.Requires
import io.micronaut.core.bind.A... | 0 | null | 0 | 0 | cd696fc1f2992dcb2ec588267689740eeaa249a6 | 1,162 | micronaut-rabbitmq | Apache License 2.0 |
app/src/main/java/com/jack/shadowview/MainActivity.kt | AAlier | 611,177,709 | false | null | package com.jack.shadowview
import android.content.res.ColorStateList
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.slider.Slider
class Ma... | 0 | Kotlin | 0 | 0 | 411dd1e2da76579e79b28ae6026d82122571f250 | 5,461 | ShadowView | Apache License 2.0 |
escposprinter/src/main/java/com/khairo/escposprinter/textparser/PrinterTextParserLine.kt | KhairoHumsi | 322,320,009 | false | null | package com.khairo.escposprinter.textparser
import java.util.*
import java.util.regex.Pattern
import kotlin.math.floor
class PrinterTextParserLine(val textParser: PrinterTextParser, textLine: String) {
val nbrColumns: Int
var nbrCharColumn: Int
private set
var nbrCharForgetted: Int
private... | 3 | null | 0 | 9 | f55f82eacd503baf7d7f31dc853d8e0f46b14b22 | 1,902 | Printer-ktx | MIT License |
bugsnag-android-core/src/test/java/com/bugsnag/android/BreadcrumbMutabilityTest.kt | bugsnag | 2,406,783 | false | {"Kotlin": 1012357, "Java": 502120, "C": 461672, "Gherkin": 181499, "C++": 50967, "Ruby": 28576, "CMake": 5170, "Shell": 3373, "Makefile": 3254} | package com.bugsnag.android
import org.junit.Assert.assertFalse
import org.junit.Test
import java.util.Date
class BreadcrumbMutabilityTest {
@Test
fun breadcrumbProtectsMetadata() {
val data = mutableMapOf<String, Any?>()
val breadcrumb = Breadcrumb("foo", BreadcrumbType.MANUAL, data, Date(0),... | 17 | Kotlin | 205 | 1,188 | f5fd26b3cdeda9c4d4e221f55feb982a3fd97197 | 437 | bugsnag-android | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/resources/testProject/mpp-composite-build/sample1/included-build/included/src/jvmMain/kotlin/included/sourceSet.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | package included
actual val sourceSet: String
get() = "jvmMain" | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 68 | kotlin | Apache License 2.0 |
src/main/java/io/github/guoyixing/backtrack/ui/BacktrackToolWindowFactory.kt | guoyixing | 873,494,762 | false | {"Kotlin": 11016} | package io.github.guoyixing.backtrack.ui
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import com.intellij.ui.content.ContentFactory
import io.github.guoyixing.backtrack.ui.popup.PopupContentPanel
class BacktrackToolWindowFactor... | 0 | Kotlin | 0 | 0 | 905c9a53fb5dbd0663b7bac30b665893229705bd | 703 | backtrack | MIT License |
src/main/kotlin/io/demo/paymentsystem/initializer/DataInitializer.kt | AnkBurov | 183,963,890 | false | null | package io.demo.paymentsystem.initializer
import io.demo.paymentsystem.api.Account
import io.demo.paymentsystem.api.AccountState
import io.demo.paymentsystem.api.User
import io.demo.paymentsystem.api.document.DocStatus
import io.demo.paymentsystem.api.document.Payment
import io.demo.paymentsystem.dao.AccountDao
import... | 0 | Kotlin | 0 | 0 | e8da12a5ab60b29478d7c694dbd3ad627c2b2592 | 1,962 | yet-another-payment-system | Apache License 2.0 |
app/src/main/java/com/kieronquinn/app/discoverkiller/components/xposed/XposedSelfHook.kt | KieronQuinn | 273,963,637 | false | null | package com.kieronquinn.app.discoverkiller.components.xposed
object XposedSelfHook {
val XPOSED_APPS = arrayOf("org.meowcat.edxposed.manager", "org.lsposed.manager")
@JvmStatic
fun isXposedHooked(): Boolean {
//Self hook
return false
}
} | 2 | Kotlin | 7 | 98 | 9d27d0b5c8f73268d683732bb7f4f3b3c4e0deef | 273 | DiscoverKiller | Apache License 2.0 |
app/src/main/java/com/example/project2wishlist/MainActivity.kt | Lia1726 | 538,810,167 | false | {"Kotlin": 5276} | package com.example.project2wishlist
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.Linear... | 1 | Kotlin | 0 | 0 | b664e1fc948ee9db03c84a39f6d2335fdc32fd29 | 2,075 | Project2Wishlist | Apache License 2.0 |
sdk/src/test/java/com/qonversion/android/sdk/storage/util.kt | qonversion | 224,974,105 | false | null | package com.qonversion.android.sdk.storage
import com.qonversion.android.sdk.dto.*
import com.qonversion.android.sdk.dto.experiments.QExperimentInfo
import com.qonversion.android.sdk.dto.offerings.QOffering
import com.qonversion.android.sdk.dto.offerings.QOfferingTag
import com.qonversion.android.sdk.dto.offerings.QOf... | 3 | null | 18 | 95 | 3b7e72ce9797bc009d8c4646ae491c3b82b96481 | 6,581 | android-sdk | MIT License |
tmp/arrays/youTrackTests/4673.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-32267
fun main(c1: CommandFactory<Command1>, someService: SomeService) {
c1.invoke { someService::execute }
}
fun <T> CommandFactory<T>.invoke(handler: () -> ((T) -> Unit)) {
println("success: $handler")
}
interface CommandFactory<T>
class Command1
class Command2
interface SomeService {... | 1 | null | 12 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 393 | bbfgradle | Apache License 2.0 |
app/src/main/java/net/squanchy/schedule/view/OtherEventItemView.kt | squanchy-dev | 72,942,055 | false | null | package net.squanchy.schedule.view
import android.content.Context
import android.util.AttributeSet
import androidx.annotation.DrawableRes
import androidx.core.view.isVisible
import kotlinx.android.synthetic.main.item_schedule_event_other.view.*
import net.squanchy.R
import net.squanchy.schedule.domain.view.Event
impor... | 0 | Kotlin | 45 | 298 | aa0909c327500f39fb65488baa62f7e4624837ea | 2,113 | squanchy-android | Apache License 2.0 |
core/network/src/main/java/com/cmc/curtaincall/core/network/service/member/response/MemberCreateResponse.kt | CurtainCall-App | 659,971,351 | false | {"Kotlin": 1298142} | package com.cmc.curtaincall.core.network.service.member.response
data class MemberCreateResponse(
val id: Int
)
| 4 | Kotlin | 1 | 5 | c9f51916e3acbb292f364b3a3191991506d76580 | 117 | CurtainCall-AOS | Apache License 2.0 |
notifications/src/main/java/com/afollestad/mnmlscreenrecord/notifications/Channel.kt | afollestad | 161,720,371 | false | null | /**
* Designed and developed by <NAME> (@afollestad)
*
* 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... | 50 | Kotlin | 75 | 630 | a1103f0290298b2c4eb3c3ca20c670ed8101c4f2 | 1,371 | mnml | Apache License 2.0 |
app/src/main/java/com/example/newsapp/rest/services/NewsServices.kt | zabi90 | 218,226,894 | false | null | package com.example.newsapp.rest.services
import com.example.newsapp.rest.response.DataResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface NewsServices {
@GET("top-headlines?country=us")
suspend fun getNewsByCategory(
@Query("category") category: String,
@Query("pageSize... | 0 | Kotlin | 3 | 1 | bc287ae9ae357f0b6a9dde6f2dc0223740d9614d | 450 | NewsApp-Android | Apache License 2.0 |
taskodoro/src/commonTest/kotlin/com/taskodoro/storage/tasks/LocalTaskRepositoryTest.kt | greenpeaksstudio | 457,288,734 | false | {"Kotlin": 101545, "Swift": 10004} | /*
* Copyright 2023 Green Peaks 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 app... | 0 | Kotlin | 0 | 0 | fb37c2c792e416ae9ca4b74db6ff1d66204d236d | 1,845 | taskodoro | Apache License 2.0 |
app/src/main/java/com/maestrovs/slovo/screens/base/IOnBackPressed.kt | maestrovsmaster | 541,761,988 | false | {"Kotlin": 113615} | package com.maestrovs.slovo.screens.base
interface IOnBackPressed {
fun onBackPressed(): Boolean
} | 0 | Kotlin | 0 | 0 | 33016804b6544b85cc6025fe71879e159104b8ef | 103 | Slovo | MIT License |
sphinx/application/network/concepts/queries/concept-network-query-subscription/src/main/java/chat/sphinx/concept_network_query_subscription/model/SubscriptionDto.kt | stakwork | 340,103,148 | false | {"Kotlin": 4008358, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.concept_network_query_subscription.model
import chat.sphinx.concept_network_query_chat.model.ChatDto
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class SubscriptionDto(
val id: Long,
val chat_id: Long,
val contact_id: Long,
val cron: String,
val a... | 90 | Kotlin | 11 | 18 | 7811b4f4e5a0cf8a26f343704cfced011b1f9bad | 1,166 | sphinx-kotlin | MIT License |
ItemSelectableSelectedObjects/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | {"Kotlin": 4337523, "JavaScript": 241284, "Java": 14467, "HTML": 378} | package example
import java.awt.BorderLayout
import java.awt.Component
import java.awt.Dimension
import java.awt.EventQueue
import java.awt.Toolkit
import java.awt.event.ActionEvent
import java.awt.event.ItemEvent
import java.awt.event.ItemListener
import java.awt.event.KeyEvent
import java.awt.event.MouseAdapter
impo... | 0 | Kotlin | 5 | 28 | 11e5d07738ca3a48907f4b66772f7f4a80482334 | 6,409 | kotlin-swing-tips | MIT License |
ItemSelectableSelectedObjects/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | {"Kotlin": 4337523, "JavaScript": 241284, "Java": 14467, "HTML": 378} | package example
import java.awt.BorderLayout
import java.awt.Component
import java.awt.Dimension
import java.awt.EventQueue
import java.awt.Toolkit
import java.awt.event.ActionEvent
import java.awt.event.ItemEvent
import java.awt.event.ItemListener
import java.awt.event.KeyEvent
import java.awt.event.MouseAdapter
impo... | 0 | Kotlin | 5 | 28 | 11e5d07738ca3a48907f4b66772f7f4a80482334 | 6,409 | kotlin-swing-tips | MIT License |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/runtime/entity/factory/PlayerTextLabelFactory.kt | Double-O-Seven | 142,487,686 | false | null | package ch.leadrian.samp.kamp.core.runtime.entity.factory
import ch.leadrian.samp.kamp.core.api.data.Color
import ch.leadrian.samp.kamp.core.api.data.Vector3D
import ch.leadrian.samp.kamp.core.api.entity.Player
import ch.leadrian.samp.kamp.core.api.entity.PlayerTextLabel
import ch.leadrian.samp.kamp.core.api.entity.Ve... | 1 | null | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 1,524 | kamp | Apache License 2.0 |
app/src/main/java/co/ello/android/ello/controllers/profile/cells/ProfileHeaderNameCell.kt | ello | 129,277,321 | false | null | package co.ello.android.ello
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
class ProfileHeaderNameCell(parent: ViewGroup) : StreamCell(LayoutInflater.from(parent.context).inflate(R.layout.profile_header_name_cell, parent, false)) {
val nameLabel: TextView = itemV... | 0 | Kotlin | 0 | 2 | 489a1b9f0acf5c2b92bd65ada7e73b91fc8e2ff4 | 635 | android | MIT License |
src/main/kotlin/no/nav/familie/ef/sak/økonomi/ØkonomiUtils.kt | blommish | 359,371,467 | false | {"YAML": 13, "Ignore List": 2, "CODEOWNERS": 1, "Maven POM": 1, "Dockerfile": 1, "Text": 1, "Markdown": 1, "XML": 4, "JSON": 21, "Kotlin": 394, "Java": 1, "GraphQL": 8, "SQL": 43, "Shell": 1} | package no.nav.familie.ef.sak.økonomi
import no.nav.familie.ef.sak.repository.domain.AndelTilkjentYtelse
import no.nav.familie.ef.sak.repository.domain.AndelTilkjentYtelse.Companion.disjunkteAndeler
import no.nav.familie.ef.sak.repository.domain.AndelTilkjentYtelse.Companion.snittAndeler
import java.time.LocalDate
imp... | 1 | null | 1 | 1 | 0e850df593c82a910c68c2393e6d2f30fc49eaa7 | 4,991 | familie-ef-sak | MIT License |
app/src/androidTest/java/com/pechuro/bsuirschedule/di/module/IdlingResourceModule.kt | Ilyshka991 | 147,244,674 | false | null | package com.pechuro.bsuirschedule.di.module
import com.pechuro.bsuirschedule.common.IEspressoIdlingResource
import com.pechuro.bsuirschedule.common.SimpleBinaryIdlingResource
import com.pechuro.bsuirschedule.di.annotations.AppScope
import dagger.Module
import dagger.Provides
@Module
class IdlingResourceModule {
... | 1 | Kotlin | 1 | 8 | 0112f76ff117b99505bc1b013643f4116d5ec379 | 462 | BsuirSchedule | Apache License 2.0 |
app/src/main/java/com/arch/template/ui/feature/profile/ProfileActivity.kt | NeoSOFT-Technologies | 403,522,301 | false | {"Kotlin": 194331} | package com.arch.template.ui.feature.profile
import androidx.activity.viewModels
import com.arch.presentation.viewmodels.profile.ProfileViewModel
import com.arch.template.R
import com.arch.template.base.BaseActivity
import com.arch.template.databinding.ActivityProfileBinding
import dagger.hilt.android.AndroidEntryPoin... | 3 | Kotlin | 2 | 3 | f29df20fc10acfeb64096e5b91b8e4246817e7d6 | 1,082 | mobile-android | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/deliusapi/service/contact/ReplaceContactServiceTest.kt | ministryofjustice | 334,932,480 | false | null | package uk.gov.justice.digital.hmpps.deliusapi.service.contact
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.mockito.ArgumentCaptor
import org.mockito.Captor
import org.mockito.kotlin.any
import org.mockito.kotlin.eq
import org.... | 6 | null | 1 | 4 | 7a09814038a6ba226fb1d82a99ed1f7e904aa014 | 8,748 | hmpps-delius-api | MIT License |
plugin/base/src/main/kotlin/net/twisterrob/gradle/android/Versions.kt | TWiStErRob | 116,494,236 | false | {"Kotlin": 854825, "HTML": 57841, "Java": 16637, "XSLT": 13875, "JavaScript": 8666, "CSS": 6638, "Groovy": 3434, "Batchfile": 353} | @file:JvmName("Versions")
package net.twisterrob.gradle.android
/**
* Keep it in sync with AndroidX / JetPack's minimum.
*/
const val VERSION_SDK_MINIMUM: Int = 14
/**
* Latest SDK version available, Google Play Store has stringent rules, so keep up to date.
*/
const val VERSION_SDK_TARGET: Int = 33
/**
* Late... | 84 | Kotlin | 5 | 16 | 524aa7c8e82bc8b047c9297474f411367e8e3209 | 907 | net.twisterrob.gradle | The Unlicense |
usercenter/src/main/java/com/cysion/usercenter/ui/activity/BlogEditorActivity.kt | CysionLiu | 158,899,037 | false | null | package com.cysion.usercenter.ui.activity
import android.app.Activity
import android.os.Bundle
import com.cysion.ktbox.base.BaseActivity
import com.cysion.ktbox.utils.whiteTextTheme
import com.cysion.other.color
import com.cysion.other.startActivity_ex
import com.cysion.targetfun._addTextChangedListener
import com.cys... | 0 | Kotlin | 14 | 83 | b60c0d3720a6e258e68e212da96bf308f31a4224 | 4,398 | KtDevBox | Apache License 2.0 |
backend/testing/src/main/kotlin/io/tolgee/AbstractSpringTest.kt | tolgee | 303,766,501 | false | null | package io.tolgee
import com.fasterxml.jackson.databind.ObjectMapper
import io.tolgee.component.fileStorage.FileStorage
import io.tolgee.component.machineTranslation.MtServiceManager
import io.tolgee.configuration.tolgee.AuthenticationProperties
import io.tolgee.configuration.tolgee.InternalProperties
import io.tolgee... | 72 | null | 8 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 5,754 | tolgee-platform | Apache License 2.0 |
analysis/low-level-api-fir/testData/contextCollector/classHeaderPositions/primaryConstructorParameter_initializerExpression.kt | JetBrains | 3,432,266 | false | null | package test
open class Base {
class Nested
val fromBase: String = ""
}
class Child(name: String = <expr>"name"</expr>) : Base() | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 139 | kotlin | Apache License 2.0 |
AMap-Android-Kit-Kotlin/app/src/main/java/kain/amap_android_kit_kotlin/MapTransfer.kt | JohnsonBob | 128,183,251 | false | null | package kain.amap_android_kit_kotlin
class MapTransfer {
} | 1 | null | 1 | 1 | 431675e5902115ee7f91d84f08efa7cfa6dd5286 | 60 | native-kit | MIT License |
src/main/kotlin/basics/ElvisOperator.kt | nazk420testing | 339,854,352 | false | null | package basics
fun main() {
var nickname: String? = null;
println("The nickname is: ${nickname ?: "No nickname"}")
nickname = "Changed nickname"
println("The nickname is: ${nickname ?: "No nickname"}")
} | 0 | Kotlin | 0 | 0 | 51ed7ef0f2c7ba9a328d703ceaa1c33be2eafc85 | 221 | kotlin | MIT License |
phoenix-ui/src/main/java/com/guoxiaoxing/phoenix/picker/rx/bus/SubjectListener.kt | pcyfox | 172,882,275 | true | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Markdown": 9, "Text": 1, "Ignore List": 6, "Batchfile": 1, "YAML": 1, "Proguard": 5, "Java": 161, "XML": 121, "Kotlin": 112} | package com.guoxiaoxing.phoenix.picker.rx.bus
interface SubjectListener {
fun add(observerListener: ObserverListener)
fun remove(observerListener: ObserverListener)
} | 0 | Java | 0 | 0 | 443f33ef0ff796032af247192b1fcd700622c11b | 176 | phoenix | Apache License 2.0 |
commons/src/main/java/io/github/aafactory/commons/utils/BitmapCache.kt | ShahbazExpress | 360,755,825 | false | {"Gradle": 4, "Markdown": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 2, "Kotlin": 131, "XML": 81, "JavaScript": 3, "HTML": 1, "Java": 3, "JSON": 2} | package io.github.aafactory.commons.utils
import android.graphics.Bitmap
import android.util.LruCache
/**
* Created by CHO HANJOONG on 2018-04-22.
*/
object BitmapCache {
/// ------------------------------------------------------------------
/// Awesome Application Factory legacy functions
/// ------... | 16 | Kotlin | 1 | 0 | b3ed9b6e27e670b596be487117b56f94c78eee83 | 1,253 | aafactory-commons | Apache License 2.0 |
app/src/main/java/com/shopnolive/shopnolive/ui/chat/PersonalMessageActivity.kt | sharifulR | 588,982,174 | false | {"Java": 1876712, "Kotlin": 241594, "HTML": 15832} | package com.shopnolive.shopnolive.ui.chat
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.shopnolive.shopnolive.adapter.MessageAdapter
impor... | 1 | null | 1 | 1 | 504563249b3ce7eaf8b6e0c57e3d0583db60fec3 | 10,231 | GoLive | Apache License 2.0 |
Phone91SDK/src/main/java/com/phone91/sdk/data/remote/RemoteSource.kt | walkovermsg91 | 381,954,513 | false | {"Gradle": 4, "Java Properties": 5, "Shell": 2, "Text": 1, "Ignore List": 4, "Batchfile": 2, "Markdown": 1, "Proguard": 3, "Kotlin": 77, "XML": 58, "Java": 5} | package com.phone91.sdk.data.remote
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.phone91.sdk.model.Channel
import com.phone91.sdk.model.ChannelListObject
//import com.phone91.sdk.model.ProfileObject
import io.reactivex.Observable
import org.json.JSONObject
import retrofit2.Response
... | 0 | Kotlin | 0 | 0 | 26f66fecad4ca46646560186bf22883c363c2cf5 | 3,959 | walkover-phone91 | MIT License |
xml-performance/test-drive-xml-sax/src/test/kotlin/org/jesperancinha/test/drive/xml/XmlBookSAXParserManagerTest.kt | jesperancinha | 44,497,748 | false | {"Maven POM": 11, "Shell": 2, "Text": 11, "Ignore List": 1, "Markdown": 11, "Makefile": 1, "Kotlin": 30, "YAML": 4, "XML": 6} | package org.jesperancinha.test.drive.xml
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
class XmlBookSAXParserManagerTest {
@Test
@Throws(Exception::class)
fun testGetBookTitle() {
val inputStream = javaClass.getResourceAsStream("testXmlFile.xml")
va... | 0 | Kotlin | 0 | 2 | e32d8d3386aa397d35278aa5ce0f679da7043ab9 | 2,805 | performance-xml-csv-json | Apache License 2.0 |
src/main/kotlin/io/github/astrapi69/servlet/extensions/HttpServletRequestExtensions.kt | astrapi69 | 231,089,911 | false | {"Kotlin": 4384, "Java": 2061} | /**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, c... | 0 | Kotlin | 0 | 1 | fe8b11edbaf0c5fa94ab7cce4e723bf13bc6ca18 | 3,065 | servlet-kt-extensions | MIT License |
libs/os/src/unitTest/kotlin/batect/os/SystemInfoSpec.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-2021 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 24 | null | 47 | 687 | 67c942241c7d52b057c5268278d6252301c48087 | 10,923 | batect | Apache License 2.0 |
app/src/main/java/com/shahzaib/mobispectral/WhiteBalance.kt | mobispectral | 670,378,804 | false | {"Gradle": 5, "INI": 3, "Text": 1, "Ignore List": 3, "Markdown": 2, "XML": 32, "Java Properties": 1, "HTML": 186, "CSS": 1, "Java": 131, "AIDL": 1, "Proguard": 1, "Kotlin": 19} | package com.shahzaib.mobispectral
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color.rgb
import android.util.Log
import org.pytorch.IValue
import org.pytorch.Module
import org.pytorch.Tensor
import org.pytorch.torchvision.TensorImageUtils
import kotlin.math.roundToInt
class Wh... | 0 | Java | 2 | 1 | 8413925f6023f9c4f6079b8eae76b585dc38dd2e | 4,064 | MobiSpectral-Android | MIT License |
app/src/main/java/com/yiqi/news/mvp/ui/adapter/DialogAdapter.kt | JamesMarts | 191,555,644 | false | {"Java": 941370, "Kotlin": 233896} | package com.yiqi.news.mvp.ui.adapter
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yiqi.news.R
import kotlinx.android.synthetic.main.item_label.view.*
import kotlinx.android.synthetic.main.item_user_info.view.*
class DialogAdapter: BaseQuickAdapte... | 1 | null | 1 | 1 | af374b5abcf19efeb3f275f133553e56d931c104 | 526 | MVPArms-master | Apache License 2.0 |
android/beagle/src/main/java/br/com/zup/beagle/android/context/ContextDataEvaluation.kt | carlosmanoel | 279,696,812 | true | {"Kotlin": 1378821, "Swift": 832288, "C++": 262909, "Objective-C": 59536, "Java": 26668, "Ruby": 22044, "Shell": 2714, "sed": 1618, "HTML": 1322, "C": 1109} | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 1 | null | 1 | 1 | 954cafa698e059cc652a1b38dd22274b388a4e8c | 4,424 | beagle | Apache License 2.0 |
app/src/main/java/com/coinninja/coinkeeper/util/AnalyticUtil.kt | coinninjadev | 175,276,289 | false | null | package com.coinninja.coinkeeper.util
import android.app.Activity
import androidx.fragment.app.Fragment
import app.dropbit.annotations.Mockable
import com.coinninja.coinkeeper.util.analytics.Analytics
import com.mixpanel.android.mpmetrics.MixpanelAPI
import org.json.JSONObject
import javax.inject.Inject
@Mockable
cla... | 2 | null | 0 | 6 | d67d7c0b9cad27db94470231073c5d6cdda83cd0 | 2,227 | dropbit-android | MIT License |
idea/testData/editor/quickDoc/AtFunctionParameter.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | fun some(<caret>f: (Int) -> String) : String? = null
// INFO: <b>value-parameter</b> <b>val</b> f: (Int) → String | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 119 | kotlin | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/copyPaste/imports/AmbiguityError.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // IGNORE_K1_COPY
// IGNORE_K1_CUT
package a
import b.foo
<selection>fun test() {
foo()
}</selection> | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 107 | intellij-community | Apache License 2.0 |
epoxy-preloadersample/src/main/java/com/airbnb/epoxy/preloadersample/ImageModel.kt | airbnb | 65,245,890 | false | {"Markdown": 5, "Gradle": 24, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 20, "Batchfile": 1, "Kotlin": 207, "INI": 11, "Proguard": 10, "XML": 107, "Java": 535, "JSON": 3, "YAML": 1, "HTML": 1, "CSS": 2, "JavaScript": 1} | package com.airbnb.epoxy.preloadersample
import android.view.View
import android.view.ViewParent
import android.widget.ImageView
import android.widget.TextView
import com.airbnb.epoxy.EpoxyAttribute
import com.airbnb.epoxy.EpoxyModelClass
import com.airbnb.epoxy.EpoxyModelWithHolder
import com.airbnb.epoxy.preload.Pre... | 315 | Java | 728 | 8,460 | c0813764351e4de97b7abd0694af5dad9db848f2 | 1,214 | epoxy | Apache License 2.0 |
app/src/main/java/com/gpacini/daysuntil/DaysUntilApplication.kt | hhariri | 44,129,616 | false | null | package com.gpacini.daysuntil
import android.app.Application
import com.gpacini.daysuntil.data.ImageHelper
import com.nostra13.universalimageloader.core.ImageLoader
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration
/**
* Created by gavinpacini on 10/10/15.
*/
class DaysUntilApplication : Applic... | 1 | null | 1 | 2 | b2bac8c283042e75ab216a824a227276c9664af3 | 647 | daysuntil | Apache License 2.0 |
clients/kotlin-spring/generated/src/main/kotlin/org/openapitools/model/ReportingColumnAsync.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | package org.openapitools.model
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonValue
import com.fasterxml.jackson.annotation.JsonProperty
import javax.validation.constraints.DecimalMax
import javax.validation.constraints.DecimalMin
import javax.validation.constraints.Email
import javax.validation.... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 89,839 | pinterest-sdk | MIT License |
app/src/main/java/com/example/android/basepro/watchdog/Monitor.kt | songzhixiang | 117,795,564 | false | null | package com.example.android.basepro.watchdog
/**
* Copyright (C) ,2016-2024,Write by AndySong
* @PackageName : com.android.common.watchdog
* @Description : TODO
* @Author : SongZhiXiang
* @Date : 2024/1/9 15:32
* @Version : 1.0
*/
interface Monitor {
fun monitor()
} | 1 | null | 42 | 65 | 855101275f68612df834d1eedafa56416023ac89 | 278 | BasePro | Apache License 2.0 |
app/src/main/java/net/kwatts/powtools/util/ProgressDialogHandler.kt | ponewheel | 86,031,094 | false | null | package net.kwatts.powtools.util
import android.app.ProgressDialog
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.LifecycleOwner
import android.arch.lifecycle.OnLifecycleEvent
import android.content.Context
class ProgressDialogHandler(private val ... | 23 | Java | 26 | 67 | c9de2434c0e23115af10b9306f698f76d364f766 | 1,031 | android-ponewheel | MIT License |
src/main/java/domain/Activity.kt | s61-austria | 123,896,740 | false | {"YAML": 4, "Shell": 1, "Dotenv": 1, "Gradle": 1, "Text": 1, "Ignore List": 1, "EditorConfig": 1, "Markdown": 1, "Kotlin": 78, "Java": 2, "Java Server Pages": 1, "XML": 4, "Dockerfile": 2} | package domain
import org.joda.time.DateTime
import utils.now
import java.sql.Timestamp
import java.util.UUID
import javax.persistence.CascadeType
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.FetchType.EAGER
import javax.persistence.GeneratedValue
import javax.persistence.Ge... | 1 | null | 1 | 1 | baf4e0543739265d6b8315a67bd39cedc76e6823 | 1,010 | kontofahren | MIT License |
packages/SystemUI/src/com/android/systemui/controls/dagger/ControlsComponent.kt | liu-wanshun | 595,904,109 | true | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 2 | e99201cd9b6a123b16c30cce427a2dc31bb2f501 | 4,687 | platform_frameworks_base | Apache License 2.0 |
src/commonMain/kotlin/io/skerna/commons/logger/LogData.kt | skerna | 181,099,817 | false | null | /*
* Copyright (c) 2020 SKERNA
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... | 0 | Kotlin | 0 | 0 | 7ccf9fda91e3d757acca368f82c35a36ca208d1a | 1,914 | commons-logger | MIT License |
libnavui-dropin/src/main/java/com/mapbox/navigation/dropin/audio/AudioComponentContractImpl.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.dropin.audio
import com.mapbox.navigation.ui.app.internal.Store
import com.mapbox.navigation.ui.app.internal.audioguidance.AudioAction
import com.mapbox.navigation.ui.app.internal.navigation.NavigationState
import com.mapbox.navigation.ui.voice.internal.ui.AudioComponentContract
import ko... | 505 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 895 | mapbox-navigation-android | Apache License 2.0 |
src/main/kotlin/com/stepanov/bbf/bugfinder/executor/compilers/JCompiler.kt | mandelshtamd | 346,008,310 | false | null | package com.stepanov.bbf.bugfinder.executor.compilers
import com.stepanov.bbf.bugfinder.executor.CommonCompiler
import com.stepanov.bbf.bugfinder.executor.CompilerArgs
import com.stepanov.bbf.bugfinder.executor.CompilingResult
import com.stepanov.bbf.bugfinder.executor.project.Project
import com.stepanov.bbf.bugfinder... | 1 | null | 12 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 4,180 | kotlinWithFuzzer | Apache License 2.0 |
tests/src/androidTest/java/com/dbflow5/config/DatabaseConfigTest.kt | agrosner | 24,161,015 | false | null | package com.dbflow5.config
import com.nhaarman.mockitokotlin2.mock
import com.dbflow5.BaseUnitTest
import com.dbflow5.TestDatabase
import com.dbflow5.database.AndroidSQLiteOpenHelper
import com.dbflow5.database.DatabaseCallback
import com.dbflow5.database.OpenHelper
import com.dbflow5.transaction.BaseTransactionManage... | 38 | Kotlin | 613 | 4,865 | e1b6211dac6ddc0aa0c1c9a76a116478ccf92b86 | 3,210 | DBFlow | MIT License |
purchases/src/main/kotlin/com/revenuecat/purchases/utils/LocaleExtensions.kt | RevenueCat | 127,346,826 | false | {"Kotlin": 2947929, "Java": 80848, "Ruby": 28005, "Shell": 443} | package com.revenuecat.purchases.utils
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.os.LocaleListCompat
import com.revenuecat.purchases.common.errorLog
import java.util.Locale
import java.util.MissingResourceException
// This is a hack to make android studio previews work. In pr... | 27 | Kotlin | 42 | 231 | 6b595dff8e056db73136741c45234be07b8244be | 2,343 | purchases-android | MIT License |
simplified-app-shared/src/main/java/org/nypl/simplified/app/reader/ReaderTOCFragmentPagerAdapter.kt | mattniehoff | 168,598,106 | true | {"Java": 1497763, "Kotlin": 367622, "HTML": 37450, "JavaScript": 8806, "CSS": 159} | package org.nypl.simplified.app.reader
import android.support.v4.app.FragmentPagerAdapter
import android.support.v4.app.FragmentManager
import android.support.v4.app.Fragment
class ReaderTOCFragmentPagerAdapter(fm: FragmentManager) : FragmentPagerAdapter(fm) {
override fun getCount(): Int {
return 2
}
ove... | 0 | Java | 0 | 0 | 1305a9660a1122116f301ae6edc7c25b75642970 | 640 | android | Apache License 2.0 |
firearm-persistence/src/main/java/com/eaglesakura/firearm/property/PropertiesProviderDelegate.kt | eaglesakura | 140,512,537 | false | {"Gradle Kotlin DSL": 22, "Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 6, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "Text": 1, "Markdown": 3, "XML": 26, "Kotlin": 208, "Proguard": 6, "Java": 3, "Dockerfile": 1, "Ruby": 3, "AIDL": 2, "YAML": 1} | package com.eaglesakura.firearm.property
import android.annotation.SuppressLint
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.net.Uri
/**
* Delegate for content provider for ContentProvider properties..
* Should call instance methods from ContentPr... | 3 | Kotlin | 0 | 0 | 6be9a21c69e9f01654e4586615124363d82908a9 | 2,600 | army-knife | MIT License |
build-a-parked-app/end/app/src/main/java/com/example/android/cars/roadreels/RoadReelsApp.kt | android | 635,032,633 | false | {"Kotlin": 138527} | /*
* Copyright 2024 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 | 7 | 16 | c86236e9e9ea102c465b5ab0e5291569afc384c1 | 4,565 | car-codelabs | Apache License 2.0 |
src/main/kotlin/me/melijn/melijnbot/commands/administration/MessageCommand.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.commands.administration
import me.melijn.melijnbot.commandutil.administration.MessageUtil
import me.melijn.melijnbot.database.HIGHER_CACHE
import me.melijn.melijnbot.enums.ModularMessageProperty
import me.melijn.melijnbot.internals.command.AbstractCommand
import me.melijn.melijnbot.internal... | 5 | Kotlin | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 24,028 | Melijn | MIT License |
n8-core/src/test/kotlin/co/early/n8/NavigationModelTest.kt | erdo | 714,437,613 | false | null | package co.early.n8
import co.early.fore.core.observer.Observer
import co.early.fore.kt.core.delegate.Fore
import co.early.fore.kt.core.delegate.TestDelegateDefault
import co.early.n8.LinearExample.Location
import co.early.n8.LinearExample.Location.EuropeanLocations.London
import co.early.n8.LinearExample.Location.Eur... | 7 | null | 1 | 41 | a0b5d12a5001b79f745990b9540ed4f10c66c7a1 | 14,494 | n8 | Apache License 2.0 |
updater-mapper-standard/src/main/java/org/runestar/client/updater/mapper/std/classes/AreaDefinition.kt | capSAR273 | 133,702,947 | true | {"Kotlin": 1038885, "Java": 4010} | package org.runestar.client.updater.mapper.std.classes
import org.kxtra.lang.list.startsWith
import org.objectweb.asm.Opcodes.BIPUSH
import org.objectweb.asm.Type.*
import org.runestar.client.updater.mapper.IdentityMapper
import org.runestar.client.updater.mapper.annotations.DependsOn
import org.runestar.client.update... | 0 | Kotlin | 0 | 0 | 5ff4db62d216fcc316d7171501ec5c1a45460bd2 | 2,313 | client | MIT License |
Dictionary/app/src/main/java/com/zsx/dictionary/entity/Dictionary1ResultEntity.kt | BennyZhang-Canviz | 255,919,665 | false | null | package com.zsx.dictionary.entity
data class Dictionary1ResultEntity(
val error_code: Int,
val reason: String,
val result: List<Dictionary1Entity>
) | 0 | Kotlin | 0 | 0 | 55ae049d5c880b67251e40cf658c4535d52cd017 | 161 | Android | Apache License 2.0 |
database/src/main/kotlin/com/gnirps/database/config/CustomPhysicalNamingStrategy.kt | REDLab-Team | 244,939,758 | false | null | package com.gnirps.database.config
import org.hibernate.boot.model.naming.Identifier
import org.hibernate.boot.model.naming.PhysicalNamingStrategy
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment
class CustomPhysicalNamingStrategy : PhysicalNamingStrategy {
override fun toPhysicalCatalogName(
... | 9 | Kotlin | 0 | 2 | 98cef0c39b7628ab9e4705a2fa314ef606d20e0e | 1,527 | gnirps | MIT License |
kmmtest1_base/src/commonMain/kotlin/com/santiihoyos/kmmtest1/data/entity/Character.kt | santiihoyos | 450,130,452 | false | null | package com.santiihoyos.kmmtest1.data.entity
/**
* Entity to represent some anyone of Rick&Morty universe
*/
data class Character(
/**
* The id of the character.
*/
val id: String,
/**
* The name of the character.
*/
val name: String,
/**
* The status of the character
... | 0 | Kotlin | 0 | 0 | e2a5d30ad9194eb0537a8382889f32e2808f9550 | 1,267 | kmm-poc | MIT License |
core/src/main/java/com/trivago/core/data/models/Film.kt | aldefy | 371,089,453 | true | {"Kotlin": 113316, "Shell": 107} | package com.trivago.core.data.models
data class Film(
val title: String,
val openingCrawl: String
) | 0 | null | 0 | 1 | 59ef8857d0cdf9ac50836a25bc61273a30ca5928 | 108 | trivago | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/H.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 1,747 | icons | MIT License |
simple-github/src/main/kotlin/com/androidhuman/example/simplegithub/ui/search/SearchAdapter.kt | soulduse | 116,546,678 | false | null | package com.androidhuman.example.simplegithub.ui.search
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.support.v7.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androi... | 0 | Kotlin | 0 | 0 | d82b3985c5baeb86608554df505a0a5a427958e6 | 2,502 | kotlin-study-kunnys-book | Apache License 2.0 |
src/test/kotlin/com/chriswk/aoc/advent2018/Day14Test.kt | chriswk | 317,863,220 | false | null | package com.chriswk.aoc.advent2018
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import kotlin.system.measureTimeMillis
class Day14Test {
@Test
fun example_part1() {
assertThat(Day14.partOne(9)).isEqualTo("5158916779")
assertThat(Day14.partOne(5)).isEqual... | 116 | Kotlin | 0 | 0 | 999edd9d83043a75d116ef68a3db6ec8213f0677 | 878 | adventofcode | MIT License |
app/src/main/java/com/buserkapkiner/diyetonerim/ui/view/FoodClickListener.kt | buserumeysa | 591,794,834 | false | null | package com.buserkapkiner.diyetonerim.ui.view
interface FoodClickListener {
fun foodClick()
} | 1 | Kotlin | 0 | 1 | d49766c0ada7dfe1b5ffe9a816bd029a88e40c62 | 101 | DiyetOnerim | MIT License |
src/main/java/com/github/shur/mariaquest/ui/OrderedQuestsUI.kt | SigureRuri | 374,370,450 | false | null | package com.github.shur.mariaquest.ui
import com.github.shur.mariaquest.MariaQuest
import com.github.shur.mariaquest.player.data.QuestStatus
import com.github.shur.whitebait.dsl.window
import com.github.shur.whitebait.inventory.InventoryUI
import com.github.shur.whitebait.inventory.window.SizedWindowOption
import org.... | 0 | Kotlin | 0 | 0 | a4443319f30758603d9044a0236894653dcb9c4e | 1,960 | MariaQuest | MIT License |
src/main/kotlin/no/nav/syfo/services/AktivHelsepersonellAutorisasjonUtil.kt | navikt | 146,593,683 | false | null | package no.nav.syfo.services
import no.nav.syfo.client.Behandler
import no.nav.syfo.client.Godkjenning
import no.nav.syfo.model.HelsepersonellKategori
fun finnAktivHelsepersonellAutorisasjons(helsepersonelPerson: Behandler): String {
val godkjenteHelsepersonellAutorisasjonsAktiv = godkjenteHelsepersonellAutorisas... | 0 | Kotlin | 0 | 0 | d94a8ee0443eca304d5e91d1150001d96cf06d03 | 1,532 | syfosminfotrygd | MIT License |
komapper-dialect-oracle/src/main/kotlin/org/komapper/dialect/oracle/OracleEntityInsertStatementBuilder.kt | komapper | 349,909,214 | false | null | package org.komapper.dialect.oracle
import org.komapper.core.BuilderDialect
import org.komapper.core.Statement
import org.komapper.core.StatementBuffer
import org.komapper.core.dsl.builder.EntityInsertStatementBuilder
import org.komapper.core.dsl.context.EntityInsertContext
import org.komapper.core.dsl.expression.Colu... | 7 | Kotlin | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 1,969 | komapper | Apache License 2.0 |
app/shared/encryption/public/src/commonMain/kotlin/build/wallet/crypto/Spake2.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.crypto
import dev.zacsweers.redacted.annotations.Redacted
import okio.ByteString
import okio.ByteString.Companion.decodeHex
enum class Spake2Role {
Alice,
Bob,
}
data class Spake2SymmetricKeys(
val aliceEncryptionKey: ByteString,
val bobEncryptionKey: ByteString,
val aliceConfKey: Byte... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 4,185 | bitkey | MIT License |
src/test/kotlin/com/forgerock/sapi/gateway/ob/uk/tests/functional/account/standing/orders/junit/v3_1_8/GetAccountStandingOrdersTest.kt | SecureApiGateway | 330,627,234 | false | {"Kotlin": 1237436, "Java": 2078, "Dockerfile": 464, "Makefile": 236} | package com.forgerock.sapi.gateway.ob.uk.tests.functional.account.standing.orders.junit.v3_1_8
import com.forgerock.sapi.gateway.framework.extensions.junit.CreateTppCallback
import com.forgerock.sapi.gateway.framework.extensions.junit.EnabledIfVersion
import com.forgerock.sapi.gateway.uk.common.shared.api.meta.obie.OB... | 9 | Kotlin | 0 | 5 | 1e1707bb59c5aefb5b2f6c9d85cb9b2029732bfc | 1,015 | secure-api-gateway-ob-uk-functional-tests | Apache License 2.0 |
library/springboot/springboot-mongo/src/main/kotlin/de/lise/fluxflow/mongo/generic/GenericMap.kt | lisegmbh | 740,936,659 | false | {"Kotlin": 732955} | package de.lise.fluxflow.mongo.generic
typealias GenericMap = Map<String, GenericMapEntry<*>>
fun Map<String, Any?>.toGenericMap(): GenericMap {
return this.mapValues {
GenericMapEntry(it.value)
}
}
fun GenericMap.toTypeSafeData(): Map<String, Any?> {
return this.mapValues {
it.value.spec... | 20 | Kotlin | 0 | 7 | 03a99c536434660fc2cde3df9e220991ff487599 | 554 | fluxflow | Apache License 2.0 |
core/src/commonMain/kotlin/qixi/propio/MutablePreferences.kt | QiXi | 665,240,794 | false | {"Kotlin": 16119} | package qixi.propio
class MutablePreferences internal constructor(
internal val map: MutableMap<Key<*>, Any> = mutableMapOf(),
) : Preferences() {
override operator fun <T> contains(key: Key<T>): Boolean {
return map.containsKey(key)
}
override operator fun <T> get(key: Key<T>): T? {
... | 0 | Kotlin | 0 | 5 | 2037be50322f82cd0616a210af658899f41b6316 | 1,819 | prop-io | MIT License |
core/src/commonMain/kotlin/com/symbiosis/sdk/swap/crosschain/transaction/Factory.kt | symbiosis-finance | 473,611,783 | false | {"Kotlin": 563820, "Swift": 5851, "Ruby": 1700} | package com.symbiosis.sdk.swap.crosschain.transaction
import com.symbiosis.sdk.network.networkClient
import com.symbiosis.sdk.swap.crosschain.CrossChain
import dev.icerock.moko.web3.EthereumAddress
import dev.icerock.moko.web3.TransactionHash
fun CrossChainSwapTransaction(
transactionHash: TransactionHash,
re... | 0 | Kotlin | 2 | 4 | e8b1c424c62a847a5339039864223e65fdb2cbae | 890 | mobile-sdk | Apache License 2.0 |
app/src/main/kotlin/com/kamer/orny/interaction/statistics/StatisticsInteractor.kt | kamerok | 86,376,991 | false | null | package com.kamer.orny.interaction.statistics
import com.kamer.orny.interaction.model.Statistics
import io.reactivex.Observable
interface StatisticsInteractor {
fun getStatistics(): Observable<Statistics>
} | 0 | Kotlin | 0 | 0 | df5e204cd3e2e8e79149175effa06b8cc4ea2311 | 215 | Orny | Apache License 2.0 |
src/pt/mangananquim/src/eu/kanade/tachiyomi/extension/pt/mangananquim/MangaNanquim.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.pt.mangananquim
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class MangaNanquim : Madara(
"... | 9 | Kotlin | 99 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 670 | komikku-extensions | Apache License 2.0 |
app/app/src/main/java/com/ingjuanocampo/enfila/domain/usecases/HomeUC.kt | ingjuanocampo | 387,043,993 | false | {"Kotlin": 240432} | package com.ingjuanocampo.enfila.domain.usecases
import com.ingjuanocampo.cdapter.RecyclerViewType
import com.ingjuanocampo.enfila.android.home.list.model.HeaderItem
import com.ingjuanocampo.enfila.android.home.list.model.mapToUI
import com.ingjuanocampo.enfila.android.utils.ViewTypes
import com.ingjuanocampo.enfila.c... | 0 | Kotlin | 0 | 0 | decebb226be191ec6382a7d60a97c5598d3f1bdf | 4,136 | EnFila-Android | MIT License |
src/f_scope_functions/01_Let.kt | lukemerrett | 346,368,380 | false | null | package f_scope_functions
fun main() {
// "let" allows scoped execution of code and returns the value of the last expression
// Anything defined in the let is only scoped to that wrapper
val empty = "test".let {
println(it)
it.isBlank()
}
println(" is empty: $empty")
fun printN... | 0 | Kotlin | 0 | 0 | 5c2dc725088c36340b4003c88d9ec200f964276c | 610 | LearningKotlin | MIT License |
feature-timeline/src/test/java/com/rumosoft/feature_timeline/presentation/viewmodel/TimelineViewModelTest.kt | Rviewer-Challenges | 498,898,253 | false | {"Kotlin": 140139} | package com.rumosoft.feature_timeline.presentation.viewmodel
import com.rumosoft.feature_timeline.domain.usecase.GetTimelineUseCase
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.mockk
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import org.junit.jupiter.... | 0 | Kotlin | 0 | 0 | e72e5c622f73263fa64377bdbcbc9be277693e0e | 1,083 | rbnbRT74TEkpXOeVjjxy | MIT License |
subprojects/provider/src/test/kotlin/org/gradle/kotlin/dsl/integration/DelegatedExtraPropertiesIntegrationTest.kt | jnizet | 146,316,824 | true | {"Kotlin": 1080014, "Java": 5870, "Shell": 549} | package org.gradle.kotlin.dsl.integration
import org.gradle.kotlin.dsl.fixtures.AbstractIntegrationTest
import org.hamcrest.CoreMatchers.containsString
import org.junit.Assert.assertThat
import org.junit.Test
class DelegatedExtraPropertiesIntegrationTest : AbstractIntegrationTest() {
@Test
fun `non-nullab... | 0 | Kotlin | 0 | 1 | 75ad0e760f9c6fe2d3f0728f60837a0b22184566 | 1,195 | kotlin-dsl | Apache License 2.0 |
app/src/main/java/com/jeremiahzucker/pandroid/request/json/v5/method/exp/bookmark/AddSongBookmark.kt | sugarmanz | 95,634,669 | false | null | package com.jeremiahzucker.pandroid.request.json.v5.method.exp.bookmark
import com.jeremiahzucker.pandroid.request.BaseMethod
import com.jeremiahzucker.pandroid.request.json.v5.model.SyncTokenRequestBody
/**
* Created by Jeremiah Zucker on 8/22/2017.
* https://6xq.net/pandora-apidoc/json/bookmarks/#bookmark-addarti... | 2 | Kotlin | 5 | 6 | a71f9ece2284e64a8666e4f8b61f7b6731efb288 | 485 | Pandroid | MIT License |
educational-core/src/com/jetbrains/edu/learning/checker/EnvironmentChecker.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.checker
import com.intellij.openapi.project.Project
import com.jetbrains.edu.learning.courseFormat.CheckResult
import com.jetbrains.edu.learning.courseFormat.tasks.Task
open class EnvironmentChecker {
/**
* @return null means that there are no problems with environment
*/
... | 5 | null | 48 | 129 | 0cf4dbfbb00b0e3bba338b0e2db10ab0036be5e8 | 402 | educational-plugin | Apache License 2.0 |
src/main/kotlin/it/xiyan/automusician/ServerConfig.kt | Demontisa | 427,002,041 | false | null | package it.xiyan.automusician
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import mu.KotlinLogging
import java.io.File
import java.io.IOException
import java.nio.charset.StandardCharsets
private val logger = KotlinLogging.logger { }
object Constants {
val FIL... | 1 | Kotlin | 1 | 0 | b0df38a6fc4e15d83a021797991e99b84c64626c | 2,457 | Musician-Auto-Check-Web | MIT License |
src/main/java/challenges/cracking_coding_interview/trees_graphs/successor/Successor.kt | MalekKamel | 342,007,920 | false | {"Kotlin": 835322} | package challenges.cracking_coding_interview.trees_graphs.successor
import challenges.util.TreeNode
object Successor {
private fun inorderSucc(n: TreeNode?): TreeNode? {
if (n == null) return null
// Found right children -> return left most node of right subtree
if (n.parent == null || n.... | 0 | Kotlin | 0 | 1 | a465bff204ef63ecfbea5c520303ed5312ccf6e8 | 1,344 | ProblemSolving | Apache License 2.0 |
dashboard/src/commonMain/kotlin/com/opencritic/dashboard/domain/GetDashboardInteractor.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 502940, "Swift": 141399} | package com.opencritic.dashboard.domain
class GetDashboardInteractor(
private val dashboardRepository: DashboardRepository,
) {
suspend operator fun invoke(year: Int): Result<Dashboard> =
runCatching {
Dashboard(
popularGames = dashboardRepository.getPopularGames(),
... | 0 | Kotlin | 0 | 1 | d9b9f89101ab1a94c05e03cb2a45e332270c81b2 | 903 | OpenCritic | Apache License 2.0 |
detekt-rules-coroutines/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/coroutines/SuspendFunSwallowedCancellationSpec.kt | detekt | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.rules.coroutines
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Finding
import io.gitlab.arturbosch.detekt.api.SourceLocation
import io.gitlab.arturbosch.detekt.rules.KotlinCoreEnvironmentTest
import io.gitlab.arturbosch.detekt.test.assertThat
i... | 9 | null | 772 | 6,253 | c5d7ed3da2824534d0e15f8404ad4f1c59fb553c | 42,484 | detekt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.