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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sudoemail/src/test/java/com/sudoplatform/sudoemail/samples/Samples.kt | sudoplatform | 303,299,846 | false | {"Kotlin": 1479466} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail.samples
import android.content.Context
import com.sudoplatform.sudoemail.BaseTests
import com.sudoplatform.sudoemail.SudoEmailClient
import com.sudoplatform.sudoemail.SudoEmailNoti... | 0 | Kotlin | 0 | 1 | 62dd3a1d0ef38f5a273df711d2afd7cfd6e35fe0 | 2,038 | sudo-email-android | Apache License 2.0 |
app/src/androidTest/java/com/mayokunadeniyi/instantweather/kaspresso/screen/SettingsScreen.kt | hram | 370,003,638 | true | {"Kotlin": 258982, "Ruby": 955} | package com.mayokunadeniyi.instantweather.kaspresso.screen
import android.view.View
import com.agoda.kakao.recycler.KRecyclerItem
import com.agoda.kakao.recycler.KRecyclerView
import com.agoda.kakao.text.KTextView
import com.mayokunadeniyi.instantweather.R
import com.mayokunadeniyi.instantweather.ui.settings.SettingsF... | 0 | Kotlin | 1 | 5 | 195d9c8ca8996afeb841d06cf07a8bed6f8af4cd | 1,048 | Instant-Weather | MIT License |
analyzer/src/test/kotlin/si/ivory/analyzer/assembly/InstanceSearchTests.kt | simvetanylen | 594,891,290 | false | null | package si.ivory.analyzer.assembly
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import si.ivory.analyzer.example.*
import si.ivory.analyzer.example.annotations.CommandHandler
class InstanceSearchTests {
@Test
fun test1() {
val target = ExampleService1::class.java.canoni... | 0 | Kotlin | 0 | 0 | bd547d0ee0c559a29659811febcf715fa11be033 | 1,861 | ivory | Apache License 2.0 |
client-android/src/main/java/eventually/client/settings/Settings.kt | sndnv | 292,604,487 | false | null | package eventually.client.settings
import android.content.SharedPreferences
import java.time.DayOfWeek
import java.time.Duration
import java.util.Calendar
import java.util.Locale
object Settings {
fun SharedPreferences.getSummarySize(): Duration {
val size = (getString(Keys.SummarySize, Defaults.SummarySi... | 0 | Kotlin | 0 | 0 | 5e6cc0fcde69b661534666feecee680627869bec | 3,775 | eventually | Apache License 2.0 |
src/pt/vizer/src/eu/kanade/tachiyomi/animeextension/pt/vizer/extractors/WarezExtractor.kt | almightyhak | 817,607,446 | false | {"Kotlin": 4066862} | package eu.kanade.tachiyomi.animeextension.pt.vizer.extractors
import android.util.Base64
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.FormBody
import okhttp3.Headers
import okhtt... | 55 | Kotlin | 28 | 93 | 507dddff536702999357b17577edc48353eab5ad | 2,176 | aniyomi-extensions | Apache License 2.0 |
infra/src/main/java/jp/cordea/drops/infra/CartRepositoryImpl.kt | CORDEA | 296,563,404 | false | null | package jp.cordea.drops.infra
import jp.cordea.drops.domain.CartItem
import jp.cordea.drops.domain.repository.CartRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.map
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
internal class Car... | 0 | Kotlin | 0 | 0 | d6497dae23f832c11b9b4988ec2e3d0909ccf63a | 573 | drops.android | Apache License 2.0 |
dbflow-tests/src/test/java/com/raizlabs/android/dbflow/models/ParentChildCachingTest.kt | lstNull | 111,766,134 | false | null | package com.raizlabs.android.dbflow.models
import com.raizlabs.android.dbflow.BaseUnitTest
import com.raizlabs.android.dbflow.kotlinextensions.from
import com.raizlabs.android.dbflow.kotlinextensions.result
import com.raizlabs.android.dbflow.kotlinextensions.select
import org.junit.Assert.assertEquals
import org.junit... | 0 | null | 0 | 1 | fcbad3b591fdc7d61140b76834e8d4582f642b2b | 935 | DBFlow | MIT License |
test-project/src/test/kotlin/jsoncodegen/kotlinjacksontest/generated/parent/tests/JsonBooleanTest.kt | jsoncodegen | 238,736,187 | false | null | package jsoncodegen.kotlinjacksontest.generated.parent.tests
/**
* This tests boolean values.
*/
data class JsonBooleanTest(
val flag: Boolean,
/**
* This is a flag.
*/
val flagWithDescription: Boolean,
val flagOrNull: Boolean? = null,
val arrayOfFlags: List<Boolean>,
val arrayOfFlagsAndNulls: List<Boolean... | 1 | Kotlin | 0 | 0 | 6c30ee13438dddeb9268d06b952d6abbc5b87f13 | 1,294 | generator-kotlin-jackson | MIT License |
test/坐标移动/MainKtTest.kt | masx200 | 798,368,501 | false | {"Kotlin": 13946} | package com.github.masx200.nowcoder_test.坐标移动
import com.github.masx200.nowcoder_test.utils.MockTest
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class MainKtTest {
@Test
fun test1() {
assertEquals(
("10,-10" + "\n").trim(),
MockTest("A10;S20;W10;D30;X;A... | 0 | Kotlin | 0 | 1 | fec520cc810cb8a1dad7176f57d6148b7a4c5913 | 394 | nowcoder-test | Mulan Permissive Software License, Version 2 |
sample/src/main/java/com/sha/formvalidatorsample/adapter/FieldInfo.kt | ShabanKamell | 110,319,898 | false | null | package com.sha.formvalidatorsample.adapter
import com.sha.formvalidatorsample.R
import com.sha.formvalidatorsample.presentation.AutoCompleteTextViewActivity
import com.sha.formvalidatorsample.presentation.EmailOrCreditCardActivity
import com.sha.formvalidatorsample.presentation.PasswordValidatorActivity
import com.sh... | 1 | Kotlin | 12 | 89 | eaa1dd1714353e2b57f3f58f4bf579407bba36a0 | 3,713 | FormValidator | Apache License 2.0 |
recorder/src/main/kotlin/com/github/grishberg/tracerecorder/common/NoOpLogger.kt | Grigory-Rylov | 256,435,400 | false | null | package com.github.grishberg.tracerecorder.common
import com.github.grishberg.android.adb.AdbLogger
class NoOpLogger : AdbLogger {
override fun d(msg: String) = Unit
override fun e(msg: String) = Unit
override fun e(msg: String, t: Throwable) = Unit
override fun w(msg: String) = Unit
}
| 0 | null | 1 | 3 | eb708706685fecd50abc5b7d178776ca80c58dad | 308 | andoid_method_trace_recorder | Apache License 2.0 |
data/RF02310/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF02310"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
4 to 6... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,333 | Rfam-for-RNArtist | MIT License |
app/src/main/java/com/baymax104/bookmanager20compose/repo/database/BookDao.kt | Baymax104 | 670,902,320 | false | {"Kotlin": 91527} | package com.baymax104.bookmanager20compose.repo.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.baymax104.bookmanager20compose.bean.entity.BookEntity
import java.util.Date
/**
* Book表Mapper
* @author John
*/
@Dao
interface BookDao {
... | 0 | Kotlin | 0 | 0 | 29636b9bda198c8b8595565016c4e9d80400f40c | 1,101 | BookManager2.0-compose | MIT License |
jdk8/src/main/kotlin/me/kgustave/json/internal/JSObjectImpl.kt | Shengaero | 123,973,669 | 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 wr... | 0 | Kotlin | 0 | 7 | 73f88bdee77dee67d7ae1a8c6181723c849327f1 | 1,663 | kotlin-json | Apache License 2.0 |
basick/src/main/java/com/mozhimen/basick/utilk/kotlin/math/UtilKMathTriangle.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.utilk.kotlin.math
import kotlin.math.acos
import kotlin.math.asin
import kotlin.math.cos
import kotlin.math.sin
/**
* @ClassName UtilKTriangle
* @Description TODO
* @Author Mozhimen & <NAME>
* @Date 2023/3/10 16:55
* @Version 1.0
*/
object UtilKTriangle {
/**
* 计算临边对斜边的角度
... | 1 | null | 8 | 118 | 369194ccd4d9f75c7c8c01aab94916ea1012ef8f | 1,654 | SwiftKit | Apache License 2.0 |
platform/backend/repository/memory/src/main/kotlin/io/hamal/repository/memory/record/extension/Repository.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2450833, "C": 1400046, "TypeScript": 323978, "Lua": 165691, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.repository.memory.record.extension
import io.hamal.lib.common.domain.Count
import io.hamal.lib.domain.vo.ExtensionId
import io.hamal.repository.api.Extension
import io.hamal.repository.api.ExtensionCmdRepository.CreateCmd
import io.hamal.repository.api.ExtensionCmdRepository.UpdateCmd
import io.hamal.... | 38 | Kotlin | 0 | 0 | 7ead833ab99206c5a20bcb295103ee3642972423 | 2,980 | hamal | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/moovix/ui/adapters/SimilarSeries.kt | Njumbi | 398,522,972 | false | null | package com.example.moovix.ui.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.moovix.R
import com.example.moovix.data.model.SeriesResult
import kotlinx.android.syntheti... | 0 | Kotlin | 0 | 0 | 9cd34fb382941448ab7f4a286304e9c0925f44c7 | 1,522 | moovix | MIT License |
src/main/kotlin/paint/PaintReference.kt | McAJBen | 81,295,567 | false | {"Kotlin": 110086} | package paint
import main.Mode
import model.PaintData
import util.Colors
import util.Labels
import util.Log
import util.Settings
import util.Settings.DISPLAY_SIZE
import util.Settings.PIXELS_PER_MASK
import java.awt.AlphaComposite
import java.awt.Graphics2D
import java.awt.Point
import java.awt.RenderingHints
import j... | 8 | Kotlin | 16 | 48 | e34a1dc550d19b4762a741a6b6e210c7c7b38b43 | 5,822 | DungeonBoard | MIT License |
shared/core/src/wasmJsMain/kotlin/com/paligot/confily/core/speakers/UiMappers.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 1063266, "Swift": 126158, "Shell": 1148, "Dockerfile": 576, "HTML": 338, "CSS": 102} | package com.paligot.confily.core.speakers
import com.paligot.confily.models.ui.SpeakerItemUi
import com.paligot.confily.models.ui.SpeakerUi
import com.paligot.confily.models.ui.TalkItemUi
import com.paligot.confily.resources.Strings
import kotlinx.collections.immutable.ImmutableList
fun SpeakerDb.convertToSpeakerUi(
... | 8 | Kotlin | 6 | 142 | 7694571716b8cd67970d42f5cdd7fa8f3306ddd9 | 1,202 | Confily | Apache License 2.0 |
server/src/main/java/com/krillsson/sysapi/core/monitoring/event/EventManager.kt | Krillsson | 40,235,586 | false | null | package com.krillsson.sysapi.core.monitoring.event
import com.krillsson.sysapi.core.domain.event.Event
import com.krillsson.sysapi.core.domain.event.OngoingEvent
import com.krillsson.sysapi.core.domain.event.PastEvent
import com.krillsson.sysapi.util.Clock
import io.dropwizard.lifecycle.Managed
import org.slf4j.Logger... | 9 | null | 2 | 83 | 4c06673a9563a0356d86c61c9592515c44ad1a68 | 2,315 | sys-API | Apache License 2.0 |
server/src/main/java/com/krillsson/sysapi/core/monitoring/event/EventManager.kt | Krillsson | 40,235,586 | false | null | package com.krillsson.sysapi.core.monitoring.event
import com.krillsson.sysapi.core.domain.event.Event
import com.krillsson.sysapi.core.domain.event.OngoingEvent
import com.krillsson.sysapi.core.domain.event.PastEvent
import com.krillsson.sysapi.util.Clock
import io.dropwizard.lifecycle.Managed
import org.slf4j.Logger... | 9 | null | 2 | 83 | 4c06673a9563a0356d86c61c9592515c44ad1a68 | 2,315 | sys-API | Apache License 2.0 |
room_db/src/main/java/com/owner/room_db/dao/UserDao.kt | MWYUniversal | 617,759,328 | false | null | package com.owner.room_db.dao
import androidx.room.*
import com.owner.room_db.entity.User
/**
* 数据访问对象
*/
@Dao
interface UserDao {
// 查询
@Query("SELECT * FROM loginUser")
fun queryAllUser(): MutableList<User>
//根据姓名参数查询
@Query("SELECT * FROM loginUser WHERE name = :name")
fun queryFindUser... | 0 | Kotlin | 0 | 0 | c148ffc9dd919795c0ab9ec4c93322f19dc1246a | 806 | MWYAndroid | Apache License 2.0 |
app/src/main/java/org/obd/graphs/preferences/dri/NewDiagnosticRequestIDPreference.kt | tzebrowski | 326,375,780 | false | null | /**
* Copyright 2019-2023, <NAME>
*
* 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, Versi... | 1 | null | 2 | 9 | 27fd84627a925ccf669c572bff347ec85eff1cee | 1,586 | ObdGraphs | Apache License 2.0 |
buildSrc/src/main/kotlin/uk/gov/ukho/gradle/plugin/python/PythonPlugin.kt | adewin | 209,691,912 | false | {"Java": 160910, "Scala": 115023, "HCL": 54677, "Kotlin": 42487, "Python": 8962, "Shell": 1337, "Dockerfile": 546} | package uk.gov.ukho.gradle.plugin.python
import com.diffplug.gradle.spotless.SpotlessExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.tasks.Delete
import org.gradle.api.tasks.Exec
import org.gradle.api.tasks.bundling.Zip
import org.gradle.internal.io.NullOutputStream
import or... | 1 | null | 1 | 1 | f46b42b5ea3dd503ad6c24997f4df113c104c5a6 | 6,373 | ais-service | MIT License |
cloud/aws/src/test/java/com/nimbusframework/nimbusaws/cloudformation/generation/resources/dynamo/DocumentStoreFunctionResourceCreatorTest.kt | thomasjallerton | 163,180,980 | false | {"YAML": 3, "Ignore List": 2, "XML": 4, "Maven POM": 9, "Dockerfile": 1, "Text": 1, "Markdown": 35, "Kotlin": 570, "Java": 167, "JSON": 2, "JavaScript": 4, "SVG": 4, "CSS": 1} | package com.nimbusframework.nimbusaws.cloudformation.generation.resources.dynamo
import com.amazonaws.services.lambda.runtime.events.DynamodbEvent
import com.nimbusframework.nimbusaws.CompileStateService
import com.nimbusframework.nimbusaws.annotation.processor.ProcessingData
import com.nimbusframework.nimbusaws.cloud... | 4 | Kotlin | 4 | 39 | 5c3325caaf3fe9de9ffad130fd1e773c6f680e89 | 3,452 | nimbus-framework | MIT License |
feature-ui/session-search/src/commonMain/kotlin/com/addhen/fosdem/ui/session/search/component/SearchTextFieldAppBar.kt | eyedol | 170,208,282 | false | {"Kotlin": 553054, "Shell": 3075, "Swift": 1713} | // Copyright 2023, Addhen Limited and the FOSDEM Event app project contributors
// SPDX-License-Identifier: Apache-2.0
package com.addhen.fosdem.ui.session.search.component
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.fou... | 5 | Kotlin | 0 | 1 | 864cd44be222c86b42dec0d3f3d3635ac6720f2b | 4,806 | fosdem-event-app | Apache License 2.0 |
langsmith-java-core/src/main/kotlin/com/langsmith/api/services/blocking/public_/LatestRunServiceImpl.kt | langchain-ai | 774,515,765 | false | {"Kotlin": 2288977, "Shell": 1314, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.langsmith.api.services.blocking.public_
import com.langsmith.api.core.ClientOptions
import com.langsmith.api.core.RequestOptions
import com.langsmith.api.core.http.HttpMethod
import com.langsmith.api.core.http.HttpRequest
import com.langsmith.api.core.... | 1 | Kotlin | 0 | 2 | 922058acd6e168f6e1db8d9e67a24850ab7e93a0 | 1,918 | langsmith-java | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/WebOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/WebOutlined")
package mui.icons.material
@JsName("default")
external val WebOutlined: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 186 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/komhunter/Core/ui/navigation/models/Screens.kt | NolifekNTB | 837,162,897 | false | {"Kotlin": 80854} | package com.example.komhunter.Core.ui.navigation.models
import kotlinx.serialization.Serializable
@Serializable
object HomeScreen
@Serializable
object ProfileScreen
@Serializable
object RouteScreen
@Serializable
object MapScreen
@Serializable
object WeatherScreen | 0 | Kotlin | 0 | 0 | 264d749f98085569a51528a069f2058dff9f5b15 | 270 | KomHunter | MIT License |
bc-gateway/bc-gateway-core/src/main/kotlin/co/nilin/opex/bcgateway/core/spi/WalletProxy.kt | opexdev | 370,411,517 | false | {"Kotlin": 1268085, "HTML": 43145, "Shell": 8309, "Java": 8001, "Dockerfile": 3334, "PLpgSQL": 3216, "HCL": 823} | package co.nilin.opex.bcgateway.core.spi
import java.math.BigDecimal
interface WalletProxy {
suspend fun transfer(uuid: String, symbol: String, amount: BigDecimal, hash: String)
}
| 29 | Kotlin | 18 | 38 | da8246cf91cebefb5745a5f5978df3c704c2fd81 | 186 | core | MIT License |
Project1-LetsGoV2-master/app/src/main/java/com/example/project1_letsgov2/DeleteAccount.kt | tylerporter30 | 476,522,313 | false | {"Kotlin": 68589} | package com.example.project1_letsgov2
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundatio... | 0 | Kotlin | 1 | 0 | cdb7ba17050da92b30ca547dbe8aaa3936a4695a | 5,034 | LetsGoApp | Apache License 2.0 |
src/main/kotlin/ru/illine/openai/telegram/bot/dao/access/TelegramUserQuestionHistoryAccessService.kt | Illine | 617,508,146 | false | null | package ru.illine.openai.telegram.bot.dao.access
import ru.illine.openai.telegram.bot.model.dto.InternalTelegramUserQuestionHistoryDto
interface TelegramUserQuestionHistoryAccessService {
fun findAllByChatId(chatId: Long): Set<InternalTelegramUserQuestionHistoryDto>
fun findLastMessageByChatId(chatId: Long)... | 0 | Kotlin | 0 | 0 | d407c3482d7b93fbaa30ae5ee2e2b16f80ce38b7 | 505 | openai-telegram-bot | MIT License |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/ui/tools/interfaces/StringResourceProvider.kt | ryanw-mobile | 794,752,204 | false | {"Kotlin": 1214189, "Ruby": 2466, "Swift": 693} | /*
* Copyright (c) 2024. <NAME>
* https://github.com/ryanw-mobile
* Sponsored by RW MobiMedia UK Limited
*
*/
// In the :presentation module under ui/model package
package com.rwmobi.kunigami.ui.tools.interfaces
import org.jetbrains.compose.resources.StringResource
interface StringResourceProvider {
suspend ... | 22 | Kotlin | 10 | 115 | 63fcd15b52de79749ee877a7455eb21ce664c591 | 394 | OctoMeter | Creative Commons Attribution 4.0 International |
app/src/main/java/com/saharw/mymusicplayer/presentation/activities/files/mvp/FilesModel.kt | SaharWeissman | 132,341,806 | false | null | package com.saharw.mymusicplayer.presentation.activities.files.mvp
import android.util.Log
import com.saharw.mymusicplayer.entities.data.base.MediaItem
import com.saharw.mymusicplayer.presentation.base.IModel
import com.saharw.mymusicplayer.service.MusicService
import java.lang.ref.WeakReference
/**
* Created by sah... | 0 | Kotlin | 0 | 0 | ce2773b06df865e7c5aafaeca46d8a85c6f3021e | 1,735 | MyMusicPlayer | Apache License 2.0 |
src/main/kotlin/dev/zlagi/application/auth/PasswordEncryptor.kt | Zlagi | 470,380,982 | false | {"Kotlin": 77094, "Procfile": 45} | package dev.zlagi.application.auth
import org.mindrot.jbcrypt.BCrypt
import java.security.SecureRandom
object PasswordEncryptor : PasswordEncryptorContract {
private const val letters: String = "abcdefghijklmnopqrstuvwxyz"
private const val uppercaseLetters: String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
private ... | 1 | Kotlin | 2 | 41 | 16e6462cafc347dff822b7dac42449f62e269e66 | 2,482 | Blogfy-api | Apache License 2.0 |
plugins/power-assert/testData/codegen/dbg/DebugEntryFunctionMessageComplexBooleans.kt | JetBrains | 3,432,266 | false | null | // FUNCTION: dbg
fun box() = expectThrowableMessage {
val greeting: String? = null
val name: String? = null
dbg(
key = greeting != null && greeting.length == 5,
value = name == null || name.length == 5,
msg = "Message:"
)
}
fun <T> dbg(key: Any, value: T): T = value
fun <T> dbg... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 425 | kotlin | Apache License 2.0 |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/top_level_function_with_showkase_composable_and_preview_parameter_and_showkaseroot_and_no_name_or_group/input/TestShowkaseRoot.kt | airbnb | 257,758,318 | false | {"Kotlin": 715619} | package com.airbnb.android.showkase_processor_testing
import com.airbnb.android.showkase.annotation.ShowkaseComposable
import androidx.compose.runtime.Composable
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
public class TestS... | 50 | Kotlin | 106 | 2,073 | 9c3d6fc313d63b8f555fc65232ac15f798aede9a | 356 | Showkase | Apache License 2.0 |
data/local/src/main/java/com/tamimattafi/pizza/android/data/local/entities/PizzaEntity.kt | tamimattafi | 428,131,583 | false | {"Kotlin": 96172} | package com.tamimattafi.pizza.android.data.local.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.tamimattafi.pizza.android.data.local.database.PrimaryDatabase.Tables.PIZZA_TABLE
import com.tamimattafi.pizza.domain.model.Pizza
@Entity(tableName = PIZZA_TABLE)
data class PizzaEntity(
... | 0 | Kotlin | 1 | 0 | b0732e71ca1aeb4b6934fa2ec512c61620adc5b9 | 1,030 | i-pizza-android | Apache License 2.0 |
app/src/main/java/org/matrix/dma/gchat/proto/CreateGroupResponseKt.kt | matrix-org | 600,341,557 | false | null | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google_chat.proto
package org.matrix.dma.gchat.proto;
@kotlin.jvm.JvmName("-initializecreateGroupResponse")
public inline fun createGroupResponse(block: org.matrix.dma.gchat.proto.CreateGroupResponseKt.Dsl.() -> kotlin.Unit): org.matrix.dma.gchat.pr... | 0 | Kotlin | 0 | 3 | f975b216bb78688fc08232c71572c36735f2532b | 8,321 | dma-demo-app-bridge-googlechat | Apache License 2.0 |
src/main/java/com/tang/intellij/lua/psi/LuaElementTypes.kt | Benjamin-Dobell | 231,814,734 | false | null | /*
* Copyright (c) 2017. tangzx(<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 61 | Kotlin | 9 | 83 | 68b0a63d3ddd5bc7be9ed304534b601fedcc8319 | 3,128 | IntelliJ-Luanalysis | Apache License 2.0 |
billMan/src/main/kotlin/com/weesnerdevelopment/billman/category/CategoryTable.kt | adamWeesner | 239,233,558 | false | null | package com.weesnerdevelopment.billman.category
import com.weesnerdevelopment.businessRules.tryTransaction
import generics.GenericTable
import org.jetbrains.exposed.dao.id.UUIDTable
object CategoryTable : UUIDTable(), GenericTable {
val name = varchar("name", 255).uniqueIndex()
val owner = varchar("owner", 36... | 2 | Kotlin | 1 | 1 | bfb3161173d75ea43acd990e9a024210cd1b87e7 | 510 | weesnerDevelopment | MIT License |
kodein-di/src/allNativeMain/kotlin/org/kodein/di/platform.kt | kosi-libs | 34,046,231 | false | null | package org.kodein.di
@Target(AnnotationTarget.FIELD)
@Retention(AnnotationRetention.SOURCE)
public actual annotation class Volatile()
| 6 | Kotlin | 174 | 2,934 | 441fca7cd13f37e4cac69fb39164ee9e78b39faa | 136 | Kodein | MIT License |
datamodel/src/commonMain/kotlin/org/jetbrains/letsPlot/datamodel/svg/dom/SvgSvgElement.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.vis.svg
import jetbrains.datalore.base.geometry.DoubleRectangle
import jetbrains.datalore.base.geometry.DoubleVector
import jetbrains.datalore.base... | 98 | Kotlin | 51 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 3,604 | lets-plot | MIT License |
platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ChangeListUtil.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
@file:JvmName("ChangeListUtil")
package com.intellij.openapi.vcs.changes
import com.intellij.openapi.project.Project
import com.intellij.openapi.vcs.VcsBundle
import com.intelli... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,904 | intellij-community | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/unit/transformer/AppealTransformerTest.kt | ministryofjustice | 515,276,548 | false | {"Kotlin": 8382511, "Shell": 15748, "Dockerfile": 1667, "Mustache": 383} | package uk.gov.justice.digital.hmpps.approvedpremisesapi.unit.transformer
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.within
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import u... | 20 | Kotlin | 1 | 5 | e7a010b09c8000fbfc33d267db7814f255cd8a46 | 2,176 | hmpps-approved-premises-api | MIT License |
shuttle/permissions/presentation/src/main/kotlin/shuttle/permissions/presentation/ui/AccessibilityServiceDialog.kt | fardavide | 462,194,990 | false | null | package shuttle.permissions.presentation.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compo... | 10 | Kotlin | 0 | 13 | b2bfa183c8f541b5e64180a632d9ebac5ff94b20 | 3,230 | Shuttle | Apache License 2.0 |
app/src/main/java/com/seosh817/moviehub/ui/MainViewModel.kt | seosh817 | 722,390,551 | false | {"Kotlin": 353175} | package com.seosh817.moviehub.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.seosh817.moviehub.core.domain.repository.AppPreferencesRepository
import com.seosh817.moviehub.core.model.AppLanguage
import com.seosh817.moviehub.core.model.DarkThemeMode
import dagger.hilt.android... | 12 | Kotlin | 0 | 3 | 774dd544024d1605ec5ac5b99c50fb686f6d7027 | 1,371 | MovieHub | Apache License 2.0 |
lib/src/main/java/com/pmm/ui/helper/SplashCountDownTimer.kt | caoyanglee | 158,797,807 | false | {"Kotlin": 347970, "Java": 743, "AIDL": 192} | package com.pmm.ui.helper
import android.os.CountDownTimer
import android.widget.TextView
//广告页倒计时
class SplashCountDownTimer(
var tv_send_code: TextView? = null,
val countDownSecond: Int = 3
) {
private var cd: CountDownTimer
var onTimeIsUpListener: (() -> Unit)? = null
init {
... | 1 | Kotlin | 1 | 2 | a4dc60a0fb366eeaad6ba3e576935fa5bf1a5575 | 893 | universalui | Apache License 2.0 |
lib/src/test/kotlin/com/lemonappdev/konsist/TestSnippetProvider.kt | LemonAppDev | 621,181,534 | false | null | package com.lemonappdev.konsist
import com.lemonappdev.konsist.core.declaration.KoScope
import java.io.File
object TestSnippetProvider {
val modulePath = File("").absoluteFile.path
private val testSourceSetPath = "$modulePath/src/test/kotlin/com/lemonappdev/konsist/"
fun getSnippetKoScope(snippetRelative... | 3 | Kotlin | 0 | 1 | 88bc2c5bdf9bc4c4530cdc1e6f12b194b12d4744 | 498 | konsist | Apache License 2.0 |
wear/src/main/java/com/turtlepaw/cats/database/dao.kt | Turtlepaw | 765,951,340 | false | {"Kotlin": 190182} | package com.turtlepaw.cats.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface ImageDao {
@Insert
suspend fun insertImage(measurement: Image)
@Insert
suspend fun insertImages(images: List<Image>)
@Query("SELECT * FROM images ORDER BY RANDOM()")... | 0 | Kotlin | 0 | 2 | 1864547bc8aea90df7e61b2aca78bbb4ae254620 | 869 | wear-cats | Apache License 2.0 |
PrimFastKotlin/KotlinAction/app/src/main/java/com/prim/gkapp/data/model/Events.kt | annocjx | 248,767,646 | true | {"Python": 628830, "Java": 293115, "HTML": 159403, "JavaScript": 157080, "Kotlin": 131915, "CSS": 45863, "Dart": 39473, "Objective-C": 5647, "Shell": 3784, "PHP": 2469, "CMake": 1603} | package com.prim.gkapp.data.model
import android.os.Parcelable
import com.prim.gkapp.anno.POKO
import kotlinx.android.parcel.Parcelize
@POKO
@Parcelize
data class Events(val actor: Actor,
val public: Boolean = false,
val payload: Payload,
val org: Org,
... | 0 | null | 0 | 0 | b435ca4bd2d0c682c7b40f2b856d7b36af8da7c9 | 481 | Awsome-Android-Advanced | Apache License 2.0 |
app/src/main/java/sideproject/tseen/pokemonassignment/model/PokemonCardDetail.kt | allanswer | 545,035,118 | false | {"Kotlin": 55886} | package sideproject.tseen.pokemonassignment.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class PokemonCardDetail(
@PrimaryKey val pokemonName: String,
val evolveFrom: String?,
val desc: String?
)
| 0 | Kotlin | 0 | 1 | 63302d2ef087cc09804c2e02e691ed93548ed2d6 | 244 | Pokemons | MIT License |
src/main/kotlin/org/serenityos/jakt/JaktFindUsagesProvider.kt | mattco98 | 494,614,613 | false | null | package org.serenityos.jakt
import com.intellij.lang.HelpID
import com.intellij.lang.cacheBuilder.DefaultWordsScanner
import com.intellij.lang.cacheBuilder.WordsScanner
import com.intellij.lang.findUsages.FindUsagesProvider
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiNamedElement
import com.intellij.... | 3 | Kotlin | 3 | 14 | c57f43c1ba5a9aef0def7017a454ac16417b1053 | 3,308 | jakt-intellij-plugin | MIT License |
platform/feedback/src/com/intellij/feedback/common/dialog/BlockBasedFeedbackDialogWithEmail.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.feedback.common.dialog
import com.intellij.feedback.common.DEFAULT_FEEDBACK_CONSENT_ID
import com.intellij.feedback.common.FeedbackRequestDataWithDetailedAnswer
import com.intel... | 229 | null | 4931 | 15,571 | 92c8aad1c748d6741e2c8e326e76e68f3832f649 | 2,313 | intellij-community | Apache License 2.0 |
platform/lib/kua/src/main/kotlin/io/hamal/lib/kua/State.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2450833, "C": 1400046, "TypeScript": 323978, "Lua": 165691, "C++": 40651, "Makefile": 11728, "Java": 7564, "CMake": 2810, "JavaScript": 2640, "CSS": 1567, "Shell": 977, "HTML": 903} | package io.hamal.lib.kua
import io.hamal.lib.kua.type.*
import io.hamal.lib.kua.type.KuaError
import java.math.BigDecimal
import kotlin.reflect.KClass
@JvmInline
value class StackTop(val value: Int)
@JvmInline
value class TableLength(val value: Int)
interface State {
fun absIndex(idx: Int): Int
fun anyGet(... | 38 | Kotlin | 0 | 0 | 7ead833ab99206c5a20bcb295103ee3642972423 | 7,309 | hamal | Creative Commons Zero v1.0 Universal |
impl/misskey/src/main/kotlin/dev/usbharu/multim/misskey/v12/model/components/QueueCount.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v12.model.components
import kotlinx.serialization.Serializable
@Serializable
data class QueueCount(
val waiting: Int,
val active: Int,
val completed: Int,
val failed: Int,
val delayed: Int
)
| 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 248 | multim | Apache License 2.0 |
ChoiceSDK/choicesdk-maps/src/main/java/at/bluesource/choicesdk/maps/hms/HmsCameraUpdateFactory.kt | bluesource | 342,192,341 | false | null | package at.bluesource.choicesdk.maps.hms
import android.graphics.Point
import at.bluesource.choicesdk.maps.common.CameraPosition
import at.bluesource.choicesdk.maps.common.CameraPosition.Companion.toHmsCameraPosition
import at.bluesource.choicesdk.maps.common.CameraUpdate
import at.bluesource.choicesdk.maps.common.Cam... | 11 | Kotlin | 19 | 85 | 4c70f2711f9ee71aa7ae73ab4d6eaa5a3fa81274 | 5,227 | ChoiceSDK | Apache License 2.0 |
src/main/java/chat/sprchat/logic/util/Util.kt | kinstadtnerbalint | 623,024,457 | false | {"Java": 12619, "HTML": 5504, "JavaScript": 3806, "Kotlin": 3079, "CSS": 1638} | package chat.sprchat.logic.util
import chat.sprchat.SprchatApplication.clients
import chat.sprchat.SprchatApplication.loadedMessages
import chat.sprchat.state.LoadedMessage
import chat.sprchat.state.orm.Message
import chat.sprchat.state.orm.MsgRepo
import com.google.gson.Gson
import org.java_websocket.WebSocket
import... | 1 | null | 1 | 1 | 6d5c79a3586a6a3178ccb9c8966eaefaaee556df | 2,012 | SpringChatApp | Apache License 2.0 |
app/src/main/java/com/tinytongtong/dandelion/biz/grouplist/ApkGroupsListPresenter.kt | tinyvampirepudge | 147,309,191 | false | {"Java": 122190, "Kotlin": 54844} | package com.tinytongtong.dandelion.biz.grouplist
import android.util.Log
import com.tinytongtong.dandelion.biz.grouplist.bean.ApkGroupsListBean
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import okhttp3.ResponseBody
/**
* @Description: $desc$
*
* @Author <EMAIL>
* @Version $version$
*... | 1 | null | 1 | 1 | 335039bab35fdc73f0494415c4f77062eeedb975 | 1,041 | DandelionDemo | Apache License 2.0 |
app/src/main/java/com/tongtong/tiny/kotlindemo1/data/domain/ForecastDataMapper.kt | tinyvampirepudge | 139,702,825 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 24, "XML": 22, "Java": 1} | package com.tongtong.tiny.kotlindemo1.data.domain
import com.tongtong.tiny.kotlindemo1.data.bean.Forecast
import com.tongtong.tiny.kotlindemo1.data.bean.ForecastResult
import com.tongtong.tiny.kotlindemo1.data.domain.model.ForecastList
import java.text.DateFormat
import java.util.*
import com.tongtong.tiny.kotlindemo1... | 1 | null | 1 | 1 | 75a0256b5d2c8d929054f23116dd9a79125e5617 | 1,652 | KotlinDemo | Apache License 2.0 |
idea-plugin/src/main/kotlin/arrow/meta/ide/plugins/proofs/folding/codeFolding.kt | rybalkinsd | 293,254,473 | true | {"Gradle": 9, "Markdown": 13, "Java Properties": 6, "Shell": 4, "Text": 7, "Ignore List": 2, "Batchfile": 1, "Kotlin": 347, "INI": 3, "YAML": 9, "XML": 3, "Diff": 2, "Java": 10, "SVG": 42, "Gemfile.lock": 1, "Ruby": 1, "SCSS": 22, "HTML": 10, "JavaScript": 3} | package arrow.meta.ide.plugins.proofs.folding
import arrow.meta.ide.IdeMetaPlugin
import arrow.meta.phases.Composite
import arrow.meta.phases.ExtensionPhase
import org.jetbrains.kotlin.idea.caches.resolve.analyze
import org.jetbrains.kotlin.psi.KtTypeReference
import org.jetbrains.kotlin.resolve.BindingContext
import ... | 0 | null | 0 | 0 | e6e9d48e822e8e64e255db182453e6443b32c47a | 680 | arrow-meta | Apache License 2.0 |
app/src/main/java/org/stepic/droid/web/QueriesResponse.kt | Ujjawal-Anand | 142,415,269 | true | {"Java": 1818802, "Kotlin": 1403557, "CSS": 3790, "Shell": 618, "Prolog": 98} | package org.stepic.droid.web
import org.stepic.droid.model.SearchQuery
data class QueriesResponse(val queries: List<SearchQuery>) | 0 | Java | 0 | 1 | 256a90051eefe8db83f7053914004905bbb1f8d0 | 131 | stepik-android | Apache License 2.0 |
pluto/src/main/java/com/mocklets/pluto/modules/settings/SettingsViewModel.kt | mocklets | 459,260,997 | false | null | package com.mocklets.pluto.modules.settings
import android.app.Application
import android.content.Context
import android.os.Build
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.mocklets.pluto.co... | 0 | Kotlin | 2 | 8 | 87dc5a27272e0fc5c38e042fa95689a143ae5446 | 1,672 | pluto | Apache License 2.0 |
eco-core/core-nms/v1_20_R3/src/main/kotlin/com/willfp/eco/internal/spigot/proxy/v1_20_R3/TPS.kt | Auxilor | 325,856,799 | false | {"Java": 723677, "Kotlin": 695636} | package com.willfp.eco.internal.spigot.proxy.v1_20_R3
import com.willfp.eco.internal.spigot.proxy.TPSProxy
import org.bukkit.Bukkit
import org.bukkit.craftbukkit.v1_20_R3.CraftServer
class TPS : TPSProxy {
override fun getTPS(): Double {
return (Bukkit.getServer() as CraftServer).handle.server.recentTps[0... | 81 | Java | 45 | 141 | ab73c2202a395f32413c171252e6047c8686764b | 329 | eco | MIT License |
UIViewLess/src/main/java/com/angcyo/uiview/less/component/Debounce.kt | zhilangtaosha | 223,696,624 | false | {"Java": 4666343, "Kotlin": 1191272} | package com.angcyo.uiview.less.component
import android.os.Handler
import android.os.Looper
/**
* 防抖动
* Email:<EMAIL>
* @author angcyo
* @date 2019/10/22
* Copyright (c) 2019 ShenZhen O&M Cloud Co., Ltd. All rights reserved.
*/
object Debounce {
val _mainHandler: Handler by lazy {
Handler(Looper.get... | 0 | Java | 2 | 0 | 8a09b91edaa4a21a43b356f67d3e063e72df3a19 | 1,417 | UIKit | MIT License |
application/src/main/java/com/svprdga/infinitescrollsample/presentation/presenter/view/IDetailsView.kt | svprdga | 216,000,868 | false | {"Gradle": 3, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 73, "XML": 41, "Java": 3} | package com.svprdga.infinitescrollsample.presentation.presenter.view
interface IDetailsView : IView {
/**
* Mark the favorite icon as favorite.
*/
fun setFavoriteIcon()
/**
* Mark the favorite icon as not favorite.
*/
fun setUncheckedFavoriteIcon()
/**
* Method that prov... | 1 | null | 1 | 1 | 9df149d9bc32d1428b63a092a6cd8bc13239fcc9 | 555 | infinite-scroll-sample | Apache License 2.0 |
app/src/main/java/com/ocakmali/brewway/exceptions/FetchItemException.kt | ocakmali | 155,255,987 | false | null | package com.ocakmali.brewway.exceptions
object FetchItemException : Exception() | 0 | Kotlin | 0 | 1 | cde32648afdab7c6f2dbc65ba8be7a2458ea8c1a | 80 | BrewWay | MIT License |
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_7/features/registration/EnterProfileDataFragment.kt | stevemuho | 301,230,761 | false | null | package com.zhuinden.simplestacktutorials.steps.step_7.features.registration
import android.os.Bundle
import android.view.View
import com.zhuinden.simplestackextensions.fragments.KeyedFragment
import com.zhuinden.simplestackextensions.fragmentsktx.lookup
import com.zhuinden.simplestacktutorials.R
import com.zhuinden.s... | 1 | null | 1 | 1 | 1b430bce93b791f3745c3dc8608f22224a8cd118 | 1,118 | simple-stack | Apache License 2.0 |
tmp/arrays/youTrackTests/8219.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-21218
class bar (
val x : String = "glorp"
) {
val y : String by lazy { x + "y" }
fun foo() {
println("hi, x is $x, y is $y")
}
}
fun main(args: Array<String>) {
bar().foo()
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 230 | bbfgradle | Apache License 2.0 |
features/ftue/impl/src/main/kotlin/io/element/android/features/ftue/impl/notifications/NotificationsOptInPresenter.kt | element-hq | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 263 | null | 65 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 4,032 | element-x-android | Apache License 2.0 |
RP/pocJava/app/src/main/java/com/hexadec/megalexa/view/activities/SettingsActivity.kt | franbar1 | 185,165,931 | false | {"Text": 45, "Ignore List": 3, "YAML": 1, "Markdown": 1, "TeX": 256, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Batchfile": 1, "Proguard": 1, "Java": 3, "XML": 23, "JSON": 2, "Kotlin": 16, "Python": 1, "PHP": 3} | package com.hexadec.megalexa.view.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceFragmentCompat
import com.hexadec.megalexa.R
import com.hexadec.megalexa.model.HexadecUser
class SettingsActivity : AppCompatActivity() {
override fun onCreat... | 1 | null | 1 | 1 | 0dcbed84846df264d1c588dbbe7e88821274b04f | 1,000 | TravisCI | MIT License |
datagen/src/main/kotlin/datagen/custom/ModItemModels.kt | mim1q | 407,015,054 | false | null | package datagen.custom
import tada.lib.presets.Preset
import tada.lib.presets.common.CommonModelPresets
import tada.lib.resources.model.ParentedModel
object ModItemModels {
fun generated() = Preset {
listOf(
"cage", "broken_cage", "blank_rune", "conjunctivius_respawn_rune", "vine_rune", "guts", "monsters_... | 7 | null | 6 | 32 | a87f26cfe87015ba6bd877d0d5f02636297e6d13 | 1,323 | MineCells | Apache License 2.0 |
webauthnkit/src/main/kotlin/webauthnkit/core/authenticator/internal/key/DefaultKeySupport.kt | lyokato | 166,183,654 | false | null | package com.luque.webauthn.authenticator.internal.key
import android.annotation.TargetApi
import android.os.Build
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import com.luque.webauthn.util.WAKLogger
import com.luque.webauthn.util.ByteArrayUtil
import java.securit... | 1 | null | 5 | 22 | 7646b8b3f7eb6442832696e34fb7625288d41349 | 6,437 | WebAuthnKit-Android | MIT License |
platform/collaboration-tools/src/com/intellij/collaboration/api/httpclient/HttpClientUtil.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.collaboration.api.httpclient
import com.intellij.collaboration.api.HttpStatusErrorException
import com.intellij.collaboration.api.httpclient.HttpClientUtil.CONTENT_ENCODING_GZIP... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 6,681 | intellij-community | Apache License 2.0 |
app/src/main/java/com/urbandroid/dontkillmyapp/gui/BenchmarkView.kt | EndyKartrait | 278,814,908 | true | {"Kotlin": 33578, "Java": 2223} | package com.urbandroid.dontkillmyapp.gui
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Path
import android.util.AttributeSet
import android.view.View
import com.urbandroid.dontkillmyapp.domain.Benchmark
import java.util... | 1 | null | 1 | 3 | 86e3dfdcfcb327416bd4fa438ee8b7bd3efd9a77 | 2,743 | dontkillmy-app | Apache License 2.0 |
tmp/arrays/kotlinAndJava/69.kt | mandelshtamd | 249,374,670 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | //File A.java
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
public class A {
@NotNull
private final String a = "OK";
@NotNull
public String getA() {
return this.a;
}
}
//File B.java
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
public final class B exten... | 1 | null | 1 | 1 | da010bdc91c159492ae74456ad14d93bdb5fdd0a | 1,043 | bbfgradle | Apache License 2.0 |
idea/testData/inspections/unusedReceiverParameter/suppression.kt | JakeWharton | 99,388,807 | false | null | @Suppress("warnings")
val Any.v: Int
get() = 123
@Suppress("unused")
val Any.v1: Int
get() = 123 | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 105 | kotlin | Apache License 2.0 |
expansions/fish/src/main/kotlin/fumobot/fish/FishExpansion.kt | Fumo-Time | 609,687,380 | false | null | package fumobot.fish
import dev.kord.common.entity.Snowflake
import dev.kord.core.behavior.interaction.response.respond
import dev.kord.core.event.interaction.ChatInputCommandInteractionCreateEvent
import dev.kord.core.on
import fumobot.library.expansion.Expansion
class FishExpansion: Expansion("fish") {
override... | 0 | Kotlin | 0 | 0 | 9b1ff92a70c4d6adc65d9ecb5653d8d9f0decc49 | 818 | FumoBot | Apache License 2.0 |
third_party/rust/uniffi_bindgen/src/bindings/kotlin/templates/ObjectCleanerHelperAndroid.kt | Floorp-Projects | 437,505,831 | false | {"C++": 293014966, "JavaScript": 281502002, "HTML": 227019363, "C": 113648304, "Python": 29059868, "Kotlin": 22825421, "Rust": 14467205, "TypeScript": 8845646, "Assembly": 7153390, "Java": 5070491, "CSS": 3113523, "Makefile": 2836042, "Shell": 2710788, "IDL": 2610528, "GLSL": 1317256, "Fluent": 936552, "Objective-C++":... | {{- self.add_import("android.os.Build") }}
{{- self.add_import("androidx.annotation.RequiresApi") }}
private fun UniffiCleaner.Companion.create(): UniffiCleaner =
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) {
AndroidSystemCleaner()
} else {
UniffiJnaCleaner()
}
// Th... | 35 | C++ | 161 | 5,751 | 9f6f4f26175542b2170765b2ff3b8fb6b008de39 | 993 | Floorp | MIT License |
build-logic/convention/src/main/kotlin/PluginsConventionPlugin.kt | John-Tuesday | 714,509,448 | false | {"Kotlin": 21119} | import io.github.john.tuesday.build.logic.constants.GitHubPackages
import io.github.john.tuesday.build.logic.constants.SonatypeStaging
import io.github.john.tuesday.build.logic.constants.usePreset
import io.github.john.tuesday.build.logic.helpers.useGpgOrInMemoryPgp
import org.gradle.api.JavaVersion
import org.gradle.a... | 3 | Kotlin | 0 | 0 | ef383cd592b8adafdba757c9f0eb3e021b706953 | 6,599 | gradle-convention-plugins | MIT License |
v-frame/src/main/java/com/vension/frame/base/V_Application.kt | Vension | 127,116,341 | false | null | package com.vension.frame.base
import android.content.Context
import android.content.res.Configuration
import android.support.multidex.MultiDexApplication
import android.util.Log
import com.gw.swipeback.tools.WxSwipeBackActivityManager
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
im... | 1 | null | 1 | 1 | efa939c0325b1b05fad235a1314d87f9d3dc1338 | 2,828 | KV-MVP-Frame | Apache License 2.0 |
Bi-tu/app/src/main/java/com/kotuz/mesajbulutu/matematikeGiris.kt | EmreKotuz | 360,215,125 | false | null | package com.kotuz.mesajbulutu
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_matematike_giris.*
class matematikeGiris : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.o... | 0 | Kotlin | 1 | 1 | 9f5b803c2c5e7e9e01b521a42ebded425cce433b | 1,426 | Bi-Tu | Apache License 2.0 |
lib-base/src/main/java/com/me/lib/base/retrofit/RetrofitFactory.kt | pickerX | 311,518,829 | false | null | package com.me.lib.base.retrofit
import android.util.Log
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
class RetrofitFactory {
companion object... | 0 | Kotlin | 0 | 0 | 28df25ec7879b3a4b08da844137fcbc8cde0399a | 1,674 | TMDB-collector | MIT License |
app/src/main/java/com/alurwa/moviecatalogue/core/model/TvDetail.kt | purwasadr | 358,779,943 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME> 'urwa
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mod... | 0 | Kotlin | 0 | 0 | 06b2ea9be169235e0855bbd433e99e403a5d5207 | 1,845 | movie-catalogue | MIT License |
src/main/kotlin/no/nav/familie/oppdrag/tss/TssMQClient.kt | navikt | 204,882,382 | false | null | package no.nav.familie.oppdrag.tss
import no.nav.familie.oppdrag.iverksetting.Jaxb
import no.rtv.namespacetss.ObjectFactory
import no.rtv.namespacetss.TssSamhandlerData
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.jms.co... | 14 | Kotlin | 0 | 0 | d649eb0fb8330194903a820ef37839a12893acd0 | 4,013 | familie-oppdrag | MIT License |
circularimageview/src/main/java/com/github/abdularis/civ/AvatarImageView.kt | abdularis | 126,420,359 | false | {"Kotlin": 13500} | package com.github.abdularis.civ
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.Dimension
import androidx.annotation.IntDef
/**
* Created by abdularis on 22/03/18.
*/
class AvatarImageView @JvmOverloads constru... | 1 | Kotlin | 15 | 90 | a0ec3c39a2f2797b0d492bc727cedb7e8479170d | 4,486 | CircularImageView | Apache License 2.0 |
prototype/src/test/kotlin/com/seanshubin/configuration/prototype/JsonUtilTest.kt | SeanShubin | 310,703,922 | false | null | package com.seanshubin.configuration.prototype
import com.fasterxml.jackson.databind.Module
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.fasterxml.jackson.module.kotlin.readValue
import k... | 0 | Kotlin | 0 | 0 | dc7158c4b190e67559c230a399ec433f298ab66a | 8,653 | configuration | The Unlicense |
library/src/main/java/com/suhel/imagine/util/ResUtils.kt | forkachild | 634,854,620 | false | null | package com.suhel.imagine.util
import android.content.Context
import androidx.annotation.RawRes
fun Context.readRawRes(@RawRes resId: Int): String {
return resources.openRawResource(resId).bufferedReader(Charsets.UTF_8).use { it.readText() }
} | 0 | Kotlin | 0 | 6 | f1b2089cd008ae47b9f167aacdc438e3c02972e1 | 249 | imagine | MIT License |
app/src/main/java/ar/com/wolox/android/cookbook/CookbookModules.kt | Wolox | 151,121,373 | false | null | package ar.com.wolox.android.cookbook
import ar.com.wolox.android.cookbook.koin.KoinLoginRecipeService
import ar.com.wolox.android.cookbook.koin.core.ToastFactory
import ar.com.wolox.android.cookbook.koin.koinLoginModule
import org.koin.core.KoinApplication
import org.koin.core.module.Module
import org.koin.dsl.module... | 3 | Kotlin | 8 | 9 | 10c61b24b6c8812aa039441bfea709bfac29668c | 915 | wolmo-cookbook-android | MIT License |
app/src/main/java/com/personal/weathering/search/presentation/SearchUiEvent.kt | Avvami | 702,061,643 | false | {"Kotlin": 348568} | package com.personal.weathering.search.presentation
sealed interface SearchUiEvent {
data class OnSearchQueryChange(val query: String, val languageCode: String): SearchUiEvent
data class SetLanguageDropdownExpanded(val expanded: Boolean): SearchUiEvent
data class SetSearchLanguage(val languageCode: String)... | 0 | Kotlin | 1 | 2 | eb6c7b47d90bde7fb0b35f985b20ea06872de0df | 595 | Weathering | MIT License |
AndroidBottomBar/src/main/java/com/skydoves/androidbottombar/forms/IconForm.kt | ashif-ismail | 283,243,368 | true | {"Kotlin": 85393} | /*
* Designed and developed by 2020 skydoves (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 0 | null | 0 | 1 | 1e0abb428da33b58f8ccb3bfc9d4adcc000fd049 | 2,724 | AndroidBottomBar | Apache License 2.0 |
tests/codegen/serde-codegen-support/src/main/kotlin/software/amazon/smithy/kotlin/codegen/protocols/xml/SerdeXmlProtocol.kt | smithy-lang | 294,823,838 | false | {"Kotlin": 4171610, "Smithy": 122979, "Python": 1215} | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package software.amazon.smithy.kotlin.codegen.protocols.xml
import software.amazon.smithy.model.node.Node
import software.amazon.smithy.model.node.ObjectNode
import software.amazon.smithy.model.shapes.Sh... | 36 | Kotlin | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 852 | smithy-kotlin | Apache License 2.0 |
shared/src/main/kotlin/models/Item.kt | juthikahoque | 597,914,531 | false | null | package models
import kotlinx.serialization.Serializable
import java.time.LocalDateTime
import java.util.*
@Serializable
data class Item(
val title: String = "",
val dueDate: @Serializable(with = DateTimeSerializer::class) LocalDateTime? = null,
val boardId: @Serializable(with = UUIDSerializer::class) UUI... | 0 | Kotlin | 0 | 0 | 1fa35ae5744eb791c0554c2aacf71e5d82fc77f1 | 626 | to-do-app | MIT License |
app/src/main/java/com/patrikagroup/features/viewAllOrder/interf/ProductListNewOrderOnClick.kt | DebashisINT | 523,714,623 | false | {"Kotlin": 13468872, "Java": 993606} | package com.patrikagroup.features.viewAllOrder.interf
import com.patrikagroup.app.domain.NewOrderGenderEntity
import com.patrikagroup.app.domain.NewOrderProductEntity
interface ProductListNewOrderOnClick {
fun productListOnClick(product: NewOrderProductEntity)
} | 0 | Kotlin | 0 | 0 | b9b041ccb0521862eb0edde5f7b6e3c18a7bb535 | 268 | PatrikaGroup | Apache License 2.0 |
app/src/main/java/com/patrikagroup/features/viewAllOrder/interf/ProductListNewOrderOnClick.kt | DebashisINT | 523,714,623 | false | {"Kotlin": 13468872, "Java": 993606} | package com.patrikagroup.features.viewAllOrder.interf
import com.patrikagroup.app.domain.NewOrderGenderEntity
import com.patrikagroup.app.domain.NewOrderProductEntity
interface ProductListNewOrderOnClick {
fun productListOnClick(product: NewOrderProductEntity)
} | 0 | Kotlin | 0 | 0 | b9b041ccb0521862eb0edde5f7b6e3c18a7bb535 | 268 | PatrikaGroup | Apache License 2.0 |
app/src/main/java/com/paprolafsm/features/dashboard/presentation/api/dayStartEnd/DayStartEndRepoProvider.kt | DebashisINT | 676,852,117 | false | {"Kotlin": 13457314, "Java": 993422} | package com.paprolafsm.features.dashboard.presentation.api.dayStartEnd
import com.paprolafsm.features.stockCompetetorStock.api.AddCompStockApi
import com.paprolafsm.features.stockCompetetorStock.api.AddCompStockRepository
object DayStartEndRepoProvider {
fun dayStartRepositiry(): DayStartEndRepository {
r... | 0 | Kotlin | 0 | 0 | 4a380b23866375e34d59e860c2e5514cebf50fbd | 381 | PaprolaMarketing | Apache License 2.0 |
repo/gradle-build-conventions/binary-compatibility-extended/src/main/kotlin/tasks/BcvApiDumpTask.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... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.build.bcv.tasks
import org.gradle.api.DefaultTask
import org.gradle.api.file.Conf... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,011 | kotlin | Apache License 2.0 |
src/main/kotlin/be/duncanc/discordmodbot/data/entities/ChannelOrderLock.kt | DuncanCasteleyn | 98,295,422 | false | null | package be.duncanc.discordmodbot.data.entities
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table
import javax.persistence.Transient
@Entity
@Table(name = "channel_order_locked_guild")
data class ChannelOrderLock(
@Id
val guildId: Long,
val enabled: Boolean = false,... | 6 | Kotlin | 1 | 0 | cbbe247dc127dce9e1e43536ee89973a6816f2ee | 430 | DiscordModBot | Apache License 2.0 |
vector/src/main/java/im/vector/app/eachchat/service/SearchService.kt | eachchat | 460,467,419 | true | {"Kotlin": 12319527, "Java": 696769, "HTML": 96269, "Shell": 31280, "Python": 19717, "FreeMarker": 7826, "JavaScript": 1782, "Ruby": 1574, "Gherkin": 163} | package im.vector.app.eachchat.service
import im.vector.app.eachchat.bean.Response
import im.vector.app.eachchat.net.NetWorkManager
import im.vector.app.eachchat.bean.SearchGroupCountInput
import im.vector.app.eachchat.bean.SearchGroupCountResponse
import im.vector.app.eachchat.bean.SearchGroupMessageResponse
import i... | 4 | Kotlin | 0 | 0 | 9e975f4bc11da17705254923f54eba306021cc5f | 965 | yiqia-android | Apache License 2.0 |
vector/src/main/java/im/vector/app/eachchat/service/SearchService.kt | eachchat | 460,467,419 | true | {"Kotlin": 12319527, "Java": 696769, "HTML": 96269, "Shell": 31280, "Python": 19717, "FreeMarker": 7826, "JavaScript": 1782, "Ruby": 1574, "Gherkin": 163} | package im.vector.app.eachchat.service
import im.vector.app.eachchat.bean.Response
import im.vector.app.eachchat.net.NetWorkManager
import im.vector.app.eachchat.bean.SearchGroupCountInput
import im.vector.app.eachchat.bean.SearchGroupCountResponse
import im.vector.app.eachchat.bean.SearchGroupMessageResponse
import i... | 4 | Kotlin | 0 | 0 | 9e975f4bc11da17705254923f54eba306021cc5f | 965 | yiqia-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.