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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tlg_gtk/src/main/kotlin/view/Window.kt | bailuk | 59,948,140 | false | {"Kotlin": 113589, "TypeScript": 64176, "Shell": 2459, "JavaScript": 1759, "HTML": 1213, "CSS": 125} | package view
import ch.bailu.gtk.gtk.*
import ch.bailu.gtk.lib.bridge.CSS
import ch.bailu.gtk.type.Str
import config.Files
import config.Layout
import config.Strings
import config.Strings.appTitle
import context.GtkBaseContext
import control.Keyboard
import control.TouchDrag
import control.TouchTap
import tlg.context.... | 2 | Kotlin | 0 | 2 | fe311514fab1be79fed46593c6e3ecdbec75b035 | 3,377 | TLG | MIT License |
presentation/src/androidTest/java/francisco/visintini/mercadolibre/test/utils/UITestRunner.kt | franvis | 246,778,171 | false | null | package francisco.visintini.mercadolibre.test.utils
import android.app.Application
import android.content.Context
import android.os.Bundle
import android.os.StrictMode
import androidx.test.runner.AndroidJUnitRunner
open class UITestRunner : AndroidJUnitRunner() {
override fun onCreate(arguments: Bundle?) {
... | 0 | Kotlin | 0 | 0 | c7857d860cd6ff37cb9e404126fe9ebd8b40eed6 | 665 | mercado-libre-test | MIT License |
app/src/main/java/maratische/android/sharediscountapps/model/ErrorItem.kt | maratische | 742,077,532 | false | {"Kotlin": 74611, "Java": 37749} | package maratische.android.sharediscountapps.model
import maratische.android.sharediscountapps.TimeUtil.Companion.formatTimeFromLong
data class ErrorItem(var date: Long, var message: String) {
constructor(text: String) : this(0,"") {
if (text != null) {
date = text.substring(0, text.indexOf(";... | 0 | Kotlin | 0 | 0 | 7bb6e031b7b52969173a18103c4395afb35c5298 | 410 | sharediscountapps | Apache License 2.0 |
src/main/kotlin/tokyo/aieuo/mineflow/flowItem/IFlowItem.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.flowItem
import tokyo.aieuo.mineflow.exception.InvalidFlowValueException
import tokyo.aieuo.mineflow.formAPI.CustomForm
import tokyo.aieuo.mineflow.formAPI.element.Button
import tokyo.aieuo.mineflow.formAPI.element.CancelToggle
import tokyo.aieuo.mineflow.formAPI.element.Element
import tok... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 3,607 | Mineflow-Kotlin | MIT License |
app/src/test/java/com/kickstarter/viewmodels/MessageThreadHolderViewModelTest.kt | kickstarter | 76,278,501 | false | {"Kotlin": 5269841, "Java": 317201, "Ruby": 22177, "Shell": 6325, "Makefile": 3750} | package com.kickstarter.viewmodels
import com.kickstarter.KSRobolectricTestCase
import com.kickstarter.libs.Environment
import com.kickstarter.libs.utils.NumberUtils
import com.kickstarter.libs.utils.extensions.addToDisposable
import com.kickstarter.mock.factories.MessageThreadFactory.messageThread
import com.kickstar... | 8 | Kotlin | 989 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 6,526 | android-oss | Apache License 2.0 |
android/src/main/kotlin/com/gfs/helper/easy_app_installer/comments/DownloadApkConstant.kt | gfslx999 | 468,578,890 | false | {"Dart": 17627, "Kotlin": 13053, "Swift": 3595, "Ruby": 2296, "Objective-C": 759} | package com.gfs.helper.easy_app_installer.comments
/**
* 下载apk文件状态
*/
class DownloadApkConstant {
companion object {
//准备下载状态,此时已完成了权限申请
const val ON_PREPARED = "ON_PREPARED"
//下载中状态
const val ON_DOWNLOADING = "ON_DOWNLOADING"
//下载成功
const val ON_SUCCESS = "ON_SUC... | 4 | Dart | 4 | 9 | 50654a34d7a6c83366bc054166ac7eab802f3f6c | 450 | easy_app_installer | MIT License |
app/src/main/java/com/victorcaveda/marketwatcher/data/remote/model/SymbolPriceDto.kt | caveda | 582,415,447 | false | {"Kotlin": 19041} | package com.victorcaveda.marketwatcher.data.remote.model
data class SymbolPricesDto(
val prices: List<SymbolSinglePrice>
)
data class SymbolSinglePrice(
val currency: String,
val price: Double
)
| 0 | Kotlin | 0 | 0 | 6c258ab0a12ef65ca4fffefe6540e8e4703c30db | 211 | marketwatcher | Apache License 2.0 |
app-compose/src/main/java/com/burrowsapps/pokedex/di/CoroutinesModule.kt | jaredsburrows | 805,424,982 | false | {"Kotlin": 75922} | package com.burrowsapps.pokedex.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers.Default
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dis... | 0 | Kotlin | 0 | 0 | 6607e273572b3e0762091ab9fb9b78a2901021a0 | 1,187 | android-pokedex | Apache License 2.0 |
waltid-wallet-api/src/main/kotlin/id/walt/webwallet/web/controllers/ReportsController.kt | walt-id | 701,058,624 | false | {"Kotlin": 1678078, "Vue": 327142, "TypeScript": 92029, "JavaScript": 11176, "Dockerfile": 5028, "Shell": 1651, "CSS": 404} | package id.walt.webwallet.web.controllers
import id.walt.webwallet.db.models.WalletCredential
import id.walt.webwallet.service.report.CredentialReportRequestParameter
import io.github.smiley4.ktorswaggerui.dsl.get
import io.github.smiley4.ktorswaggerui.dsl.route
import io.ktor.http.*
import io.ktor.server.application.... | 22 | Kotlin | 19 | 72 | c839d5e81c6e8798b812e890c95a376041641e56 | 1,546 | waltid-identity | Apache License 2.0 |
app/src/main/java/id/teman/app/ui/ordermapscreen/OrderProcessScreen.kt | RifqiFadhell | 681,462,989 | false | null | package id.teman.app.ui.ordermapscreen
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.shape... | 0 | Kotlin | 0 | 0 | 4414ca5c417e7ca0cebd341becec901335e77c6a | 14,204 | Teman-App-Mobile | Apache License 2.0 |
src/th/doujinlc/src/eu/kanade/tachiyomi/extension/th/doujinlc/DoujinLc.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.th.doujinlc
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class DoujinLc : Madara(
"Doujin-Lc",
"https://doujin-lc.net",
"th",
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("th")),
) {
overri... | 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 574 | komikku-extensions | Apache License 2.0 |
navigation/navigation-dynamic-features-runtime/src/androidTest/java/androidx/navigation/dynamicfeatures/DynamicActivityNavigatorTest.kt | virendersran01 | 367,029,992 | true | {"Java": 41106538, "Kotlin": 22235015, "Python": 226099, "Shell": 104113, "C++": 23223, "ANTLR": 19795, "HTML": 10802, "TypeScript": 6933, "JavaScript": 1343, "CMake": 995} | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | fa4711838092061ca02409b998a59f12ef0b7143 | 3,353 | androidx | Apache License 2.0 |
sample/feature-C/src/main/kotlin/com/turo/nibel/sample/featureC/fourthscreen/FourthFragment.kt | open-turo | 667,584,375 | false | {"Kotlin": 102457} | package com.turo.nibel.sample.featureC.fourthscreen
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
import com.turo.nibel.sample.common.CommonScreenFragment... | 1 | Kotlin | 1 | 79 | e66f29f9030fd6818d9cd2c15a78fc62c0885a23 | 1,693 | nibel | MIT License |
src/main/kotlin/hm/binkley/labs/applicationTransactions/processing/ReaderThreads.kt | binkley | 653,865,082 | false | null | package hm.binkley.labs.applicationTransactions.processing
import lombok.Generated
import java.util.concurrent.Callable
import java.util.concurrent.ConcurrentLinkedQueue
import java.util.concurrent.ExecutorService
import java.util.concurrent.Future
import java.util.concurrent.TimeUnit
import java.util.concurrent.Timeo... | 3 | Kotlin | 0 | 0 | dec24ae46bb3560919051141fc64a33123e7db15 | 2,512 | kotlin-application-transactions | The Unlicense |
src/main/kotlin/no/kartverket/matrikkel/bygning/config/Env.kt | kartverket | 788,962,358 | false | {"Kotlin": 70717, "Dockerfile": 221} | package no.kartverket.matrikkel.bygning.config
enum class Env {
LOCAL,
SKIP;
companion object {
// Checks if the app is running on k8s/SKIP
fun current(): Env = when (System.getenv("KUBERNETES_SERVICE_HOST") != null) {
true -> SKIP
false -> LOCAL
}
... | 1 | Kotlin | 1 | 0 | f9332088dc06b23e8d95c9fd82ae61279b29af38 | 363 | matrikkel-bygning-egenregistrering | MIT License |
src/commonMain/kotlin/com/danielgergely/cgmath/graphics/ViewMatrix.kt | gergelydaniel | 208,582,128 | false | null | package com.danielgergely.cgmath.graphics
import com.danielgergely.cgmath.mat4.Mat4
import com.danielgergely.cgmath.vec3.Vec3
private inline fun withMat4(operation: (Mat4) -> Unit): Mat4 {
val result = Mat4.zero()
operation(result)
return result
}
/**
* Creates a viewing matrix derived from an eye point... | 0 | Kotlin | 1 | 0 | 7e459f56cd2aaceac135b4e4228a7e5cdae34e86 | 2,719 | cgmath | MIT License |
app/src/main/java/com/megaache/accountkitdemo/ProfileActivity.kt | megaacheyounes | 522,453,486 | false | {"Kotlin": 6398} | package com.megaache.accountkitdemo
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.huawei.hms.... | 0 | Kotlin | 0 | 0 | c1f572db4fc24f50d20961484f1c3e12a565482d | 2,925 | accountkit-demo | MIT License |
app/src/androidTest/kotlin/com/czbix/v2ex/ui/util/HtmlTest.kt | CzBiX | 36,221,300 | false | null | package com.czbix.v2ex.ui.util
import android.text.style.URLSpan
import androidx.core.text.getSpans
import io.kotlintest.inspectors.forAll
import io.kotlintest.matchers.types.shouldNotBeSameInstanceAs
import io.kotlintest.shouldBe
import org.junit.Test
class HtmlTest {
@Test
fun fromHtml_test1() {
val... | 2 | null | 25 | 138 | f6a79a91b84ae8030930231d965845798c4ce0a8 | 1,577 | v2ex-android | Apache License 2.0 |
panna-shared/src/main/kotlin/com/mgtriffid/games/panna/shared/game/systems/shooting/RailgunHitsDudeEffectConsumer.kt | mgtriffid | 524,701,185 | false | {"Kotlin": 478306, "Java": 9323} | package com.mgtriffid.games.panna.shared.game.systems.shooting
import com.mgtriffid.games.cotta.core.effects.CottaEffect
import com.mgtriffid.games.cotta.core.simulation.invokers.context.EffectProcessingContext
import com.mgtriffid.games.cotta.core.systems.EffectsConsumerSystem
import com.mgtriffid.games.panna.shared.... | 2 | Kotlin | 0 | 6 | ee0bd897c67451b31f68a3a31a6ee8de756b2b52 | 972 | cotta | MIT License |
src/main/kotlin/no/nav/modiapersonoversikt/storage/JdbcStorageProvider.kt | navikt | 179,552,047 | false | null | package no.nav.modiapersonoversikt.storage
import kotliquery.Session
import kotliquery.queryOf
import no.nav.modiapersonoversikt.model.UserSettings
import no.nav.modiapersonoversikt.model.UserSettingsMap
import java.time.LocalDateTime
import javax.sql.DataSource
private const val innstillingerTable = "innstillinger"
... | 0 | Kotlin | 0 | 0 | 8aaa9a82ab142b1acb817dbb368d7dafa057412a | 2,267 | modiapersonoversikt-innstillinger | MIT License |
src/main/java/me/liuli/luminous/features/ui/ElementSide.kt | UnlegitMC | 424,152,042 | false | {"Kotlin": 129019} | package me.liuli.luminous.features.ui
import com.beust.klaxon.JsonObject
class ElementSide(var horizontal: Horizontal, var vertical: Vertical) {
companion object {
/**
* Default element side
*/
fun default() = ElementSide(Horizontal.LEFT, Vertical.UP)
}
fun serialize()... | 4 | Kotlin | 6 | 26 | abb744cf76b715013c9383731b8077311495f152 | 1,301 | Luminous | Do What The F*ck You Want To Public License |
compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirPropertyAccessorChecker.kt | INOS-soft | 365,010,239 | true | null | /*
* Copyright 2010-2021 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.fir.analysis.checkers.declaration
import org.jetbrains.kotlin.fir.analysis.check... | 0 | null | 0 | 0 | f9d65fe2e83d6c137d32ccbd81579f345efcbda9 | 3,117 | kotlin | MIT License |
app/src/main/java/com/example/testbank/view/main/home/search/SearchViewModel.kt | aucd29 | 406,299,316 | false | {"Kotlin": 170385} | package com.example.testbank.view.main.home.search
import androidx.annotation.VisibleForTesting
import androidx.databinding.ObservableBoolean
import androidx.databinding.ObservableField
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import androidx.paging.PagedList
import com.exam... | 0 | Kotlin | 0 | 0 | 7b82096b854f200928a2c1c528f287c80f1a963f | 3,263 | testbank | Apache License 2.0 |
utils/src/main/java/com/absinthe/libraries/utils/utils/UiUtils.kt | zhaobozhen | 287,193,323 | false | {"Gradle": 6, "Java Properties": 1, "YAML": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "INI": 3, "Proguard": 4, "XML": 24, "Kotlin": 21, "HTML": 1, "Java": 23} | @file:Suppress("DEPRECATION")
package com.absinthe.libraries.utils.utils
import android.app.Activity
import android.content.res.Configuration
import android.content.res.Resources
import android.graphics.Color
import android.os.Build
import android.util.DisplayMetrics
import android.util.TypedValue
import android.view... | 2 | Java | 2 | 6 | 8aba2aaff886f95c480e31549c7b6e5fb4e90b6c | 4,756 | libraries | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppssubjectaccessrequestworker/gateways/GenericHmppsApiGateway.kt | ministryofjustice | 748,250,175 | false | {"Kotlin": 65078, "Dockerfile": 1161} | package uk.gov.justice.digital.hmpps.hmppssubjectaccessrequestworker.gateways
import com.microsoft.applicationinsights.TelemetryClient
import org.apache.commons.lang3.time.StopWatch
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component
import org.springframework.... | 0 | Kotlin | 0 | 0 | 16175eb28a6398b48bc5e2c04329e92f66600853 | 1,672 | hmpps-subject-access-request-worker | MIT License |
zcm/src/main/java/com/kyawhut/atsycast/zcm/ui/search/SearchActivity.kt | kyawhtut-cu | 406,324,527 | false | null | package com.kyawhut.atsycast.zcm.ui.search
import com.kyawhut.atsycast.share.base.BaseSearchTvActivity
import com.kyawhut.atsycast.share.utils.extension.putArg
import com.kyawhut.atsycast.zcm.utils.Constants
import dagger.hilt.android.AndroidEntryPoint
/**
* @author kyawhtut
* @date 9/7/21
*/
@AndroidEntryPoint
in... | 0 | Kotlin | 4 | 3 | 72d56fa28f5be7526f0a9848491ddd87cca3804d | 776 | atsy-cast | Apache License 2.0 |
src/main/kotlin/com/github/w0819/game/uhc/recipes/Master'sCompass.kt | w0819 | 418,112,809 | false | {"Kotlin": 174492} | package com.github.w0819.game.uhc.recipes
import com.github.w0819.game.util.Apprentice
import org.bukkit.Material
import org.bukkit.NamespacedKey
import org.bukkit.inventory.ItemStack
object `Master'sCompass` : Apprentice(
NamespacedKey.minecraft("master_compass"),
`Master'sCompass`
) {
init {
sha... | 0 | Kotlin | 2 | 3 | d3aa47c6be6330a10e6689ff89f161eccee25563 | 567 | UHC_System | MIT License |
src/main/kotlin/com/codebootup/codegenerator/TemplateEngine.kt | codebootup | 622,726,849 | false | null | /*
* Copyright 2023-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 1 | Kotlin | 0 | 0 | e45868876d320cb7c1d4ae56d705604c85221658 | 1,090 | code-generator | Apache License 2.0 |
common/src/main/kotlin/DiscordTimestamp.kt | kordlib | 202,856,399 | false | null | package dev.kord.common
import kotlinx.datetime.Instant
fun Instant.toMessageFormat(style: DiscordTimestampStyle = DiscordTimestampStyle.ShortDateTime) =
"<t:$epochSeconds:${style.style}>"
/**
* The class representing the [style of a timestamp](https://discord.com/developers/docs/reference#message-formatting-ti... | 33 | Kotlin | 53 | 435 | 084f0260ef335a1e3b8919c9adda286473f063ec | 898 | kord | MIT License |
android/app/src/main/java/org/haobtc/onekey/business/wallet/bean/WalletBalanceBean.kt | peterQin0826 | 345,008,092 | true | {"Git Config": 1, "reStructuredText": 6, "TOML": 1, "Python": 416, "INI": 7, "Gradle": 10, "YAML": 7, "Shell": 35, "Ignore List": 7, "desktop": 1, "Markdown": 14, "JSON": 225, "Public Key": 7, "Protocol Buffer": 1, "Text": 41, "kvlang": 8, "SVG": 9, "Gettext Catalog": 2, "Dockerfile": 5, "Java Properties": 4, "Batchfil... | package org.haobtc.onekey.business.wallet.bean
import org.haobtc.onekey.constant.Vm
data class WalletBalanceBean(
val coinType: Vm.CoinType,
val balance: String?,
val balanceFiat: String?,
val balanceFiaUnit: String?,
val tokens: List<TokenBalanceBean> = arrayListOf(),
val name: String,
va... | 0 | Python | 1 | 0 | 5a4fff3d7ec91e36748a59f52f4ba3b8f73a41d4 | 1,171 | electrum | MIT License |
src/main/kotlin/ch/yvu/rxpect/mockito/MockitoHelpers.kt | ybonjour | 124,533,866 | false | null | package ch.yvu.rxpect.mockito
import org.mockito.Mockito
import org.mockito.invocation.Invocation
import org.mockito.stubbing.OngoingStubbing
import org.mockito.stubbing.Stubbing
import java.util.LinkedList
object MockitoHelpers {
fun <T> extractLastInvocation(ongoingStubbing: OngoingStubbing<T>): Invocation =
... | 0 | Kotlin | 1 | 1 | dbd5b46a797d59fcfb379d3a689ee2ed64098fce | 722 | RXpect | MIT License |
backend/src/main/kotlin/app/ehrenamtskarte/backend/regions/webservice/dataloader/RegionDataLoader.kt | ehrenamtskarte | 310,244,313 | false | null | package app.ehrenamtskarte.backend.regions.webservice.dataloader
import app.ehrenamtskarte.backend.regions.database.repos.RegionsRepository
import app.ehrenamtskarte.backend.regions.webservice.schema.types.Region
import kotlinx.coroutines.runBlocking
import org.dataloader.DataLoader
import org.jetbrains.exposed.sql.tr... | 42 | Dart | 0 | 22 | 8b0ebaded6c67479abbcf5e910474974e084118b | 807 | ehrenamtskarte | MIT License |
app/src/main/java/com/epigram/android/data/model/Views.kt | tomstark99 | 192,521,547 | false | {"Gradle": 3, "XML": 217, "Java Properties": 4, "Shell": 2, "Text": 1, "Ignore List": 2, "Batchfile": 2, "Markdown": 1, "INI": 2, "JSON": 2, "Proguard": 1, "Kotlin": 71, "Java": 5} | package com.epigram.android.data.model
import java.io.Serializable
data class Views(
val views: List<String>,
val slugs: List<String>
):Serializable{
companion object{
fun fromTemplate(template: ViewTemplate): Views? {
var slugs = mutableListOf<String>()
var views = mutable... | 6 | null | 1 | 1 | 5223721d071377ebcbfb07460d0803cf21cd74c9 | 740 | epigram | Apache License 2.0 |
domain/src/main/java/translator/DescriptionTranslator.kt | DaeJol | 789,308,522 | false | {"Kotlin": 28392} | package translator
// TODO: 설명을 위한 정보를 모아서 사용자에게 보여줄 고양이, 강아지 설명으로 변경
class DescriptionTranslator {
} | 0 | Kotlin | 1 | 1 | 7f2450b82d853364fd1a4a992ccd1d44f380b361 | 102 | catdogcup | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/domain/parachainStaking/redeem/validations/ParachainStakingRedeemValidationFailure.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7667438, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_staking_impl.domain.parachainStaking.redeem.validations
sealed class ParachainStakingRedeemValidationFailure {
object NotEnoughBalanceToPayFees : ParachainStakingRedeemValidationFailure()
}
| 13 | Kotlin | 6 | 9 | dea9f1144c1cbba1d876a9bb753f8541da38ebe0 | 235 | nova-wallet-android | Apache License 2.0 |
src/main/kotlin/org/bymc/gomoku/uifx/view/common/ButtonTextConfig.kt | watermirror | 539,082,095 | false | {"Kotlin": 235223} | package org.bymc.gomoku.uifx.view.common
/**
* 按钮文本配置对象。
*
* @author: zheng.chez
* @since: 2022/10/12
*/
data class ButtonTextConfig(
/**
* 普通状态的文本配置。
*/
private val normalConfig: TextConfig = TextConfig(),
/**
* 悬停状态的文本配置。若为 null,采用普通状态的。
*/
private val hoveredConfig: TextCo... | 0 | Kotlin | 0 | 2 | cb6b9caa0de191097eab5fcd08f76bbdbb991a1b | 966 | gomoku | MIT License |
flank-scripts/src/main/kotlin/flank/scripts/ci/releasenotes/ConventionalCommitFormatter.kt | piotradamczyk5 | 287,469,011 | false | null | package flank.scripts.ci.releasenotes
fun String.mapPrTitleWithType() = when {
startsWith("feat") -> "Features" to skipConventionalCommitPrefix().capitalize()
startsWith("fix") -> "Bug Fixes" to skipConventionalCommitPrefix().capitalize()
startsWith("docs") -> "Documentation" to skipConventionalCommitPrefi... | 1 | null | 1 | 1 | 41c27e2bdb0fae1a6d8a0aa7242a36c4fe32dcc3 | 857 | flank | Apache License 2.0 |
app/src/main/java/com/aredruss/mangatana/di/MediaListModule.kt | Aredruss | 344,616,186 | false | null | package com.aredruss.mangatana.di
import com.aredruss.mangatana.view.media.list.MediaListViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
val mediaListModule = module {
viewModel { MediaListViewModel(jikanRepository = get(), databaseRepository = get()) }
}
| 0 | Kotlin | 2 | 17 | 834e540aebde85e31b409d21dc22f8a75527a37f | 300 | Mangatana | Apache License 2.0 |
app/src/main/java/com/example/banco_papesa/fragment/MovementsFragment.kt | Santos90 | 703,684,173 | false | {"Kotlin": 135500} | package com.example.banco_papesa.fragment
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Toast
imp... | 0 | Kotlin | 0 | 0 | 6640768f442fa020cd099441d941813617076cae | 3,885 | BancoPaPeSa | Apache License 2.0 |
game/src/commonMain/kotlin/com/game/snake/Levels.kt | magicapple0 | 721,855,451 | false | {"Kotlin": 8828, "HTML": 348} | package com.game.snake
import com.lehaine.littlekt.file.vfs.VfsFile
import com.lehaine.littlekt.file.vfs.readLDtkMapLoader
class Levels(vfsFile: VfsFile) {
private val vfsFile: VfsFile
private val levels: ArrayList<GameLevel> = ArrayList()
init {
this.vfsFile = vfsFile
}
suspend fun prep... | 0 | Kotlin | 0 | 0 | 66f0943d54e9449a03a74e4ca6e9f728802310d4 | 527 | Snake | MIT License |
net.akehurst.language.editor/agl-editor-common/src/commonMain/kotlin/AglStyleHandler.kt | dhakehurst | 252,659,008 | false | null | /**
* Copyright (C) 2020 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* 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... | 2 | Kotlin | 0 | 3 | 4545320435da906da859f2b583bb7ca0281c6482 | 2,741 | net.akehurst.language.editor | Apache License 2.0 |
collection/collection/src/commonMain/kotlin/androidx/collection/LruCache.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 13,122 | androidx | Apache License 2.0 |
domain_layer/src/main/java/com/denischornyyapp/domain_layer/use_cases/post/GetPostByUserID.kt | denmusic1992 | 262,297,781 | false | null | package com.denischornyyapp.domain_layer.use_cases.post
import com.denischornyyapp.domain_layer.repository.PostRepositoryImpl
/**
Created by <NAME> on 12,Май,2020
All rights received.
*/
class GetPostByUserID(private val postRepositoryImpl: PostRepositoryImpl) {
suspend operator fun invoke(userID: Long) = postRe... | 0 | Kotlin | 0 | 0 | 5360e1b5d27983fa2242d79ee45183d481fb9363 | 359 | My-Test-App | Apache License 2.0 |
app/src/main/java/com/breezefieldsaleskhive/features/averageshop/model/ShopActivityResponse.kt | DebashisINT | 859,309,173 | false | {"Kotlin": 15905377, "Java": 1027668} | package com.breezefieldsaleskhive.features.averageshop.model
import com.breezefieldsaleskhive.base.BaseResponse
/**
* Created by Pratishruti on 07-12-2017.
*/
class ShopActivityResponse:BaseResponse(){
var toal_shopvisit_count:String?=null
var avg_shopvisit_count:String?=null
var date_list:List<ShopActi... | 0 | Kotlin | 0 | 0 | b30b804d881ec9c399400165c305c02284fab343 | 349 | KHiveServices | Apache License 2.0 |
app/src/androidTest/java/br/com/paulosalvatore/movilenext_day4_robotpattern/login/LoginActivityTest.kt | paulosalvatore | 159,811,073 | false | null | package br.com.paulosalvatore.movilenext_day4_robotpattern.login
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import br.com.paulosalvatore.movilenext_day4_robotpattern.LoginActivity
import br.com.paulosalvatore.movilenext_day4_robotpattern.R
import org.junit.Before... | 0 | Kotlin | 0 | 0 | 4852f600aa54772a59a68429f8bbc28176c89c9a | 1,432 | MovileNext_Day4_RobotPattern | MIT License |
app/src/androidTest/java/br/com/paulosalvatore/movilenext_day4_robotpattern/login/LoginActivityTest.kt | paulosalvatore | 159,811,073 | false | null | package br.com.paulosalvatore.movilenext_day4_robotpattern.login
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import br.com.paulosalvatore.movilenext_day4_robotpattern.LoginActivity
import br.com.paulosalvatore.movilenext_day4_robotpattern.R
import org.junit.Before... | 0 | Kotlin | 0 | 0 | 4852f600aa54772a59a68429f8bbc28176c89c9a | 1,446 | MovileNext_Day4_RobotPattern | MIT License |
src/test/kotlin/no/nav/helse/risk/manualtest/TestVurderingsApp.kt | navikt | 252,136,318 | false | {"Kotlin": 227108} | package no.nav.helse.risk.manualtest
import io.mockk.Runs
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import kotlinx.coroutines.FlowPreview
import kotlinx.serialization.json.*
import no.nav.helse.risk.*
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.apache.kafka.clients.consume... | 0 | Kotlin | 0 | 0 | d7a8d8e59cdaafdecbf047be60a78b6b5d9aa6d1 | 3,337 | helse-riskvurderer-basis | MIT License |
app/src/main/java/com/easy/view/bean/HiltBeans.kt | shishoufengwise1234 | 289,488,783 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 5, "XML": 41, "Kotlin": 40, "INI": 1} | package com.easy.view.bean
import javax.inject.Inject
/**
* Created by shishoufeng on 2020/11/17.
* email:shoufengshi@lagou.com
*
* desc:
*
*
*/
data class HiltText(var id: Int, var text: String) {
@Inject constructor() : this(1, "Test Text")
}
class HiltBeans {
} | 1 | null | 1 | 1 | 4764e3ca16ca1bc54e206f1eaa7049087db98a7f | 281 | AndroidEasyView | Apache License 2.0 |
promptkt/src/main/kotlin/tri/ai/pips/AiTask.kt | aplpolaris | 663,584,917 | false | {"Kotlin": 897162, "Java": 7469, "CSS": 2840} | /*-
* #%L
* tri.promptfx:promptkt
* %%
* Copyright (C) 2023 - 2024 Johns Hopkins University Applied Physics Laboratory
* %%
* 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
*
* h... | 39 | Kotlin | 1 | 16 | 95b240c7d32f22b9af3833b9ca1d0d9f1fc85357 | 4,349 | promptfx | Apache License 2.0 |
app/src/main/java/soup/gdg/darktheme/sample/elevation/CustomCardView.kt | fornewid | 190,510,615 | false | null | package soup.gdg.darktheme.sample.elevation
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.util.AttributeSet
import android.widget.FrameLayout
import androidx.annotation.AttrRes
import com.google.android.material.R
import com.google.android.materia... | 0 | Kotlin | 0 | 0 | 7642c940072a7d69ab4845f8af78f23b246c6f4f | 1,519 | GDGAndroid-atPangyo-2019-DarkTheme-Sample | Apache License 2.0 |
app/src/main/java/soup/gdg/darktheme/sample/elevation/CustomCardView.kt | fornewid | 190,510,615 | false | null | package soup.gdg.darktheme.sample.elevation
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Color
import android.util.AttributeSet
import android.widget.FrameLayout
import androidx.annotation.AttrRes
import com.google.android.material.R
import com.google.android.materia... | 0 | Kotlin | 0 | 0 | 7642c940072a7d69ab4845f8af78f23b246c6f4f | 1,519 | GDGAndroid-atPangyo-2019-DarkTheme-Sample | Apache License 2.0 |
core/src/main/java/rdx/works/core/sargon/EntitySecurityStateExtensions.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4905038, "HTML": 215350, "Ruby": 2757, "Shell": 1963} | package rdx.works.core.sargon
import com.radixdlt.sargon.DerivationPath
import com.radixdlt.sargon.DerivationPathScheme
import com.radixdlt.sargon.EntitySecurityState
import com.radixdlt.sargon.FactorSourceId
import com.radixdlt.sargon.HierarchicalDeterministicFactorInstance
import com.radixdlt.sargon.HierarchicalDete... | 6 | Kotlin | 6 | 9 | a973af97556c2c3c5c800dac937d0007a13a3a1c | 2,429 | babylon-wallet-android | Apache License 2.0 |
src/main/kotlin/api/handlers/TradeHandler.kt | iamramtin | 863,778,268 | false | {"Kotlin": 32023, "Dockerfile": 477} | package org.iamramtin.api.handlers
import com.fasterxml.jackson.databind.ObjectMapper
import io.vertx.ext.web.RoutingContext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import org.iamramtin.core.OrderBook
class TradeHandler(
private val orderBook: OrderBook,
private val mapper: O... | 0 | Kotlin | 0 | 0 | cb30bb49e9f8d7a6dbccbe22565cb2c95bfc6f17 | 1,653 | OrderFlux | MIT License |
HW11/src/main/kotlin/ru/otus/spring/kushchenko/hw11/controller/AuthorController.kt | ElenaKushchenko | 139,555,821 | false | {"Kotlin": 821703, "HTML": 46397, "TypeScript": 32941, "CSS": 751, "Dockerfile": 203} | package ru.otus.spring.kushchenko.hw11.controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import reactor.core.publisher.Flux
import ru.otus.spring.kushchenko.hw11.model.Author
i... | 0 | Kotlin | 0 | 0 | 0286627b4e66873c28d18174d125b63e5723e4f7 | 607 | otus-spring-2018-06-hw | MIT License |
app/src/main/java/com/feduss/tomato/view/MainViewController.kt | feduss | 575,630,166 | false | null | package com.feduss.tomato.view
import android.annotation.SuppressLint
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import androidx.activity.Compone... | 2 | Kotlin | 0 | 2 | 5978af91f7abaad9259b2f0f8eee50167ddf59b4 | 6,141 | Tomatimer | MIT License |
OpenedMaps/app/src/main/java/com/example/openedmaps/aboutUs.kt | St10084497 | 706,751,002 | false | {"Kotlin": 49211} | package com.example.openedmaps
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.google.android.material.navigation.NavigationBarView
class aboutUs : AppCompatActivity() {
overr... | 0 | Kotlin | 0 | 0 | 56972948390464d102f4d90de3ef120388e4b947 | 1,839 | OPSC7312_TASK2 | MIT License |
app/src/main/kotlin/org/mjstudio/ggonggang/ui/timetable/TimeTableFragment.kt | mym0404 | 198,546,945 | false | {"Java Properties": 2, "Shell": 1, "Text": 63, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 118, "Kotlin": 143, "CMake": 33, "JSON": 33, "Ninja": 16, "C++": 8, "C": 8, "Gradle Kotlin DSL": 1} | package org.mjstudio.ggonggang.ui.timetable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.FragmentNavigatorExtras
import androidx.navig... | 1 | null | 1 | 1 | 78d30c9788c1eacd82a3b60dfd8806e0af5c3755 | 3,992 | GFree-Android | MIT License |
app/src/main/java/com.terracode.blueharvest/utils/PreferenceManager.kt | Capstone-Terracoders | 718,832,727 | false | {"Kotlin": 141529} | package com.terracode.blueharvest.utils
import android.content.Context
import android.content.SharedPreferences
import android.util.Log
import androidx.preference.PreferenceManager
import com.terracode.blueharvest.utils.constants.HomeKeys
import com.terracode.blueharvest.utils.objects.Notification
import com.terracode... | 69 | Kotlin | 0 | 0 | a7c6739cd4ff084a233a27213c462cdee8615c06 | 10,393 | Mobile-Application | MIT License |
src/main/kotlin/com/hackerguild/intellijwexpr/WexprSyntaxHighlighterFactory.kt | thothonegan | 548,055,307 | false | null | package com.hackerguild.intellijwexpr
import com.intellij.openapi.fileTypes.SyntaxHighlighter
import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
class WexprSyntaxHighlighterFactory : SyntaxHighlighterFactory() {
ov... | 0 | Kotlin | 0 | 0 | f30f1d378b5473fe8b9221f624a5eb3d0e32326e | 467 | intellij-wexpr | MIT License |
core/src/test/java/com/jraska/github/client/core/android/TopActivityProviderImplTest.kt | jraska | 52,918,490 | false | {"Kotlin": 377058} | package com.jraska.github.client.core.android
import android.app.Activity
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import org.mockito.Mockito.mock
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit
class TopActivityProviderTest {
val activity = mock(Activ... | 4 | Kotlin | 27 | 228 | 7dead2d8aea532e12649031cc78507cb19b42825 | 1,848 | github-client | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/monitoring/accesslog/EventsBuilder.kt | MysticRyuujin | 398,435,963 | true | {"Kotlin": 491731, "Groovy": 400823} | /**
* Copyright (c) 2021 EmeraldPay, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 1 | null | 1 | 1 | 64d667acada1220e2863ad382f346e314482d9b2 | 11,838 | dshackle | Apache License 2.0 |
src/main/kotlin/pounces/komrade/api/data/Update.kt | RepoForks | 115,181,391 | true | {"Kotlin": 31385, "Java": 6851} | package pounces.komrade.api.data
data class Update(
val updateId: Int,
val message: Message?
) | 0 | Kotlin | 0 | 0 | bb310a19742b132c678491f4eb06c1e94ed012fe | 111 | komrade | MIT License |
ez-ui/ez-ui-api/src/commonMain/kotlin/com/compose/ez/ui/api/TextSpan.kt | Compose-for-OpenHarmony | 749,446,229 | false | null | package com.redwood.ui.schema.api
import app.cash.redwood.ui.Dp
/**
* author: wulinpeng
* date: 2024/1/29
* desc:
*/
data class TextSpan(val startIndex: Int, val endIndex: Int, val fontColor: Color, val fontSize: Dp, val fontStyle: FontStyle)
| 0 | null | 1 | 2 | c4502300d9670bf2954bb90ea67e57783a7c9016 | 249 | compose-ez-ui | Apache License 2.0 |
feature/phonecalls/src/main/kotlin/org/michaelbel/template/phonecalls/model/PhoneCallLog.kt | michaelbel | 354,625,997 | false | {"Kotlin": 326352, "Shell": 235, "Java": 117} | package org.michaelbel.template.phonecalls.model
data class PhoneCallLog(
val number: String,
val type: Int,
val date: String,
val duration: Int
) | 2 | Kotlin | 3 | 12 | f60831e932b319b747e09c5acd4f533796189355 | 163 | template | Apache License 2.0 |
module-search/src/main/java/com/pp/module_search/model/SearchRankItemTitleModel.kt | PPQingZhao | 548,315,946 | false | {"Kotlin": 553508, "Java": 1135} | package com.pp.module_search.model
import androidx.databinding.ObservableField
import com.pp.library_common.model.MultiItemEntity
import com.pp.library_network.eyepetizer.bean.PageDataBean
class SearchRankItemTitleModel(val text: String, override val itemType: Int): MultiItemEntity {
val title = ObservableField<S... | 0 | Kotlin | 0 | 5 | 904d9a980811d502f88479cb450c3a6e8d027f09 | 405 | Eyepetizer | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/kfx/layout/decoration/NodeTreeProperty.kt | flapdoodle-oss | 451,526,335 | false | {"Kotlin": 873300, "Java": 154205, "CSS": 41337, "Shell": 297} | package de.flapdoodle.kfx.layout.decoration
import javafx.beans.InvalidationListener
import javafx.beans.property.SimpleObjectProperty
import javafx.beans.value.ChangeListener
import javafx.beans.value.ObservableValue
import javafx.collections.ListChangeListener
import javafx.scene.Node
import javafx.scene.Parent
cla... | 0 | Kotlin | 1 | 0 | 13b469a39b52b5bcd1053f5bb0866ec550bd2f51 | 3,711 | de.flapdoodle.kfx | Apache License 2.0 |
lounge/src/main/java/jp/co/cyberagent/lounge/LoungeGuidedStepSupportFragment.kt | ca-love | 316,186,117 | false | null | package jp.co.cyberagent.lounge
import android.os.Bundle
import android.view.View
import androidx.leanback.app.GuidedStepSupportFragment
import androidx.leanback.widget.GuidedAction
import androidx.leanback.widget.GuidedActionsStylist
/**
* A subclass of [GuidedStepSupportFragment] with proper implementation for usi... | 8 | Kotlin | 1 | 8 | 44d29d2ea953937dd630df45010f514fb6249459 | 1,350 | lounge | MIT License |
app/src/test/java/com/jerryhanks/farimoneytest/ui/UsersFragmentTest.kt | jerryOkafor | 332,439,368 | false | {"Kotlin": 93159} | package com.jerryhanks.farimoneytest.ui
import android.os.Build
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.test.espresso.Espresso
import androidx.test.espresso.asserti... | 0 | Kotlin | 0 | 1 | 5415b992db6d8c2519fddc46006a4c66097a8a75 | 3,477 | fairmoney_test | MIT License |
src/main/kotlin/builder/Builder.kt | xmmmmmovo | 318,367,991 | false | null | /*
* Copyright (c) xmmmmmovo 2021.
*/
package builder
/**
* 建造者抽象接口
* @author xmmmmmovo
*/
interface Builder {
fun makeTitle(title: String)
fun makeString(str: String)
fun makeItems(items: List<String>)
fun close()
fun build(): Any
} | 0 | Kotlin | 0 | 0 | b9007e601c749451bfb4d7b0e059cfd5ffb6ae02 | 260 | DesignPatterns | Apache License 2.0 |
chapter8/lets-poll-api-with-serverless-fw/src/main/kotlin/com/packt/serverless/kotlin/letspoll/commons/LambdaEnvironmentUtils.kt | PacktPublishing | 147,775,150 | false | null | package com.packt.serverless.kotlin.letspoll.commons
object LambdaEnvironmentUtils {
fun getValue(environmentKeyName: String): String {
//currently not encrypting any environment variables
return System.getenv(environmentKeyName)
}
}
| 1 | null | 4 | 9 | c1cc375490e43d75972a53670b32f859d6f1969c | 259 | -Hands-On-Serverless-with-Kotlin | MIT License |
src/main/kotlin/net/prosavage/factionsx/listener/ChatListener.kt | ryderbelserion | 669,875,997 | false | null | package net.prosavage.factionsx.listener
import net.prosavage.factionsx.FactionsX
import net.prosavage.factionsx.core.ChatChannel
import net.prosavage.factionsx.core.FPlayer
import net.prosavage.factionsx.core.Faction
import net.prosavage.factionsx.core.Permission
import net.prosavage.factionsx.manager.PlaceholderMana... | 0 | Kotlin | 0 | 0 | aa9715b3a2ec4f7750ff20a8cfe88aaff490654d | 6,770 | Factions | MIT License |
src/main/kotlin/net/prosavage/factionsx/listener/ChatListener.kt | ryderbelserion | 669,875,997 | false | null | package net.prosavage.factionsx.listener
import net.prosavage.factionsx.FactionsX
import net.prosavage.factionsx.core.ChatChannel
import net.prosavage.factionsx.core.FPlayer
import net.prosavage.factionsx.core.Faction
import net.prosavage.factionsx.core.Permission
import net.prosavage.factionsx.manager.PlaceholderMana... | 0 | Kotlin | 0 | 0 | aa9715b3a2ec4f7750ff20a8cfe88aaff490654d | 6,770 | Factions | MIT License |
Kotanga/app/src/main/java/com/example/kotanga/bdd.kt | waarx11 | 658,176,000 | false | null | package com.example.kotanga
import com.google.firebase.database.*
class User {
var id: String? = null
var name: String? = null
var groupIds: MutableList<Groupe>? = null
// Ajouter d'autres champs ici si nécessaire
}
class Depense {
var id: String? = null
var name: String? = null
var type:... | 0 | Kotlin | 0 | 0 | 2b6e75a05a5df755e4aaae87c133d5959cf95496 | 7,066 | kotanga | Creative Commons Zero v1.0 Universal |
funcify-feature-eng-naming/src/main/kotlin/funcify/feature/naming/charseq/spliterator/DelimiterGroupingSpliterator.kt | anticipasean | 458,910,592 | false | null | package funcify.feature.naming.charseq.spliterator
import funcify.feature.naming.charseq.group.DelimitedCharGroup
import funcify.feature.naming.charseq.group.DelimiterCharGroup
import java.util.*
import java.util.Spliterator.IMMUTABLE
import java.util.Spliterator.NONNULL
import java.util.function.Consumer
/**
*
* @... | 0 | Kotlin | 0 | 0 | 36031b948ab87f60924fe4413ac91b69e585cc23 | 5,222 | funcify-feature-eng | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/annotations/jvmStatic/functions.fir.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... | // LANGUAGE: -JvmStaticInInterface
// DIAGNOSTICS: -UNUSED_VARIABLE
class A {
companion object {
@JvmStatic fun a1() {
}
}
object A {
@JvmStatic fun a2() {
}
}
fun test() {
val s = object {
<!JVM_STATIC_NOT_IN_OBJECT_OR_CLASS_COMPANION!>@JvmSta... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 897 | kotlin | Apache License 2.0 |
app/src/main/java/me/rei_m/hyakuninisshu/util/CrashlyticsTree.kt | tiepdotme | 215,685,396 | true | {"Kotlin": 511033, "Java": 22413, "HTML": 14459} | /*
* Copyright (c) 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 writ... | 0 | null | 0 | 0 | c98fffd659ae4206c5de6c91ee58ac7b4e4a9618 | 1,468 | android_hyakuninisshu | Apache License 2.0 |
travelmaker_android/app/src/main/java/com/gumibom/travelmaker/ui/main/notification/MainNotifyDiffUtil.kt | serotonins | 808,489,421 | false | {"Kotlin": 481004, "Java": 174550, "HTML": 4622, "Dockerfile": 516} | package com.gumibom.travelmaker.ui.main.notification
import androidx.recyclerview.widget.DiffUtil
import com.gumibom.travelmaker.data.dto.request.ReceivedRequest
import com.gumibom.travelmaker.model.NotifyReceiveItem
class MainNotifyDiffUtil : DiffUtil.ItemCallback<ReceivedRequest>() {
override fun areItemsTheS... | 0 | Kotlin | 0 | 0 | eb8dee9dd6979722026a6d20fab96b56c4a63b1b | 597 | TravelMaker | MIT License |
api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpec.kt | docker-client | 413,110,731 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package de.gesellix.docker.remote.api
import com.square... | 2 | null | 1 | 1 | 3b0a8a9371e72246cff9e5d7a4de72d1fe9a0225 | 1,402 | docker-remote-api | MIT License |
countrypicker/src/main/java/com/hbb20/countrypicker/CPFlagProvider.kt | eberrydigital | 377,818,611 | true | {"Kotlin": 242230, "Java": 733} | package com.hbb20.countrypicker
sealed class CPFlagProvider
/**
* If you wish to useEmojiCompat = true then make sure to enable emoji-compat in your app using
* [Downloadable font configuration](https://developer.android.com/guide/topics/ui/look-and-feel/emoji-compat#downloadable-fonts)
* or [Bundled Font Configura... | 0 | null | 0 | 0 | c1c32281b2c8c64fe63b81682912d18a67b75419 | 614 | AndroidCountryPicker | MIT License |
bbk-core/src/main/kotlin/common/data/BiliResponse.kt | ywnkm | 585,541,391 | false | null | package com.elouyi.bbk.common.data
public interface BiliResponse<out T : Any> {
public val code: Int
public val message: String
public val ttl: Int
public val data: T?
}
| 0 | Kotlin | 0 | 1 | a8f86b43ce6e8bc3007eed3bf05fcceca9b30f9d | 187 | Bibika | MIT License |
src/main/java/tk/bteitalia/core/worldguard/WGEntryHandler.kt | BuildTheEarth-Italy | 522,082,660 | false | null | package tk.bteitalia.core.worldguard
import com.sk89q.worldguard.bukkit.WorldGuardPlugin
import com.sk89q.worldguard.protection.ApplicableRegionSet
import com.sk89q.worldguard.protection.regions.ProtectedRegion
import com.sk89q.worldguard.session.MoveType
import com.sk89q.worldguard.session.Session
import com.sk89q.wo... | 2 | Kotlin | 0 | 3 | 5246c3ba6838eb4d49d92001a8fb7753a3aaff12 | 1,691 | BTE-Italia-Core | MIT License |
composeApp/src/commonMain/kotlin/App.kt | odvratnozgodan | 860,637,530 | false | {"Kotlin": 136956, "Swift": 594, "HTML": 338, "CSS": 102} | import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.Lifecycle
import androidx.... | 0 | Kotlin | 0 | 2 | 77b18ef241dd823dc817ac236df91fda22215d8c | 2,781 | kmp-showcase | MIT License |
app/src/androidTest/java/com/github/jnuutinen/functional/suite/UiTestSuite.kt | JNuutinen | 169,043,331 | false | null | package com.github.jnuutinen.functional.suite
import com.github.jnuutinen.functional.ui.CreateTaskListTest
import com.github.jnuutinen.functional.ui.CreateTaskTest
import com.github.jnuutinen.functional.ui.DeleteTaskListTest
import com.github.jnuutinen.functional.ui.DeleteTaskTest
import com.github.jnuutinen.functiona... | 0 | Kotlin | 0 | 0 | 102db0c6a23000906fcf935857eb64b4ba09433a | 694 | Functional | Apache License 2.0 |
src/main/kotlin/moirai/semantics/visitors/BanSecondDegreeAstVisitor.kt | moirai-lang | 301,230,998 | false | {"Kotlin": 1229385, "ANTLR": 8836} | package moirai.semantics.visitors
import moirai.semantics.core.*
class BanSecondDegreeAstVisitor : UnitAstVisitor() {
private fun checkForSecondDegree(ctx: SourceContext, identifier: Identifier, ofTypeSymbol: FunctionType) {
if (ofTypeSymbol.returnType is FunctionType) {
errors.add(ctx, Functi... | 5 | Kotlin | 0 | 6 | 92ea78d98cbdb20a18d393daf92d3f3f61a6497b | 942 | moirai-kt | MIT License |
theodolite/src/main/kotlin/theodolite/util/InvalidPatcherConfigurationException.kt | bvonheid | 415,936,418 | true | {"Java": 190040, "Kotlin": 187920, "Jupyter Notebook": 23742, "Python": 6111, "Shell": 3253, "Dockerfile": 2653, "Smarty": 1812} | package theodolite.util
class InvalidPatcherConfigurationException(message: String, e: Exception? = null) : Exception(message, e)
| 0 | null | 0 | 0 | 4f99b44e8cae7531ffe1a5300bc782f34733b2a3 | 132 | theodolite | Apache License 2.0 |
app/src/main/java/com/jhteck/icebox/service/MyService.kt | weid2014 | 687,383,758 | false | {"Kotlin": 476004, "Java": 414775, "C": 4589, "Makefile": 821, "Shell": 90} | package com.jhteck.icebox.service
import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import android.util.Log
import com.jhteck.icebox.Lockmodel.LockManage
import com.jhteck.icebox.api.*
import com.jhteck.icebox.myinterface.MyCallback
import com.jhteck.icebox.nfc... | 0 | Kotlin | 0 | 0 | 832628e519f585a42ee95e693f4947fa2f4fc1d2 | 6,143 | FridgeSystem30 | Apache License 2.0 |
chazm-model/src/main/kotlin/runtimemodels/chazm/model/entity/CharacteristicEventFactory.kt | RuntimeModels | 32,474,965 | false | {"Git Config": 1, "Gradle Kotlin DSL": 4, "Gradle": 5, "Markdown": 4, "INI": 3, "YAML": 4, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "XML": 23, "Kotlin": 156, "Java": 15} | package runtimemodels.chazm.model.entity
import runtimemodels.chazm.api.entity.Characteristic
import runtimemodels.chazm.model.event.EventType
/**
* The [CharacteristicEventFactory] interface defines the API for constructing [CharacteristicEvent]s.
*
* @author <NAME>
* @since 7.0.0
*/
@FunctionalInterface
interf... | 7 | null | 1 | 1 | e64c35dbd0a11a0f3759305e1cae4b2b593005c8 | 647 | chazm | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/inspections/dfa/SmartCastExtensionCondition.kt | JetBrains | 2,489,216 | false | null | // WITH_STDLIB
fun checkValue(value: Int, predicate: Predicate?) {
@Suppress("UNNECESSARY_SAFE_CALL")
if (predicate != null && value?.matches(predicate) == true) {
println("It matched!")
}
}
fun interface Predicate {
fun matches(value: Int): Boolean
}
fun main() {
checkValue(123) { it == 1... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 400 | intellij-community | Apache License 2.0 |
src/main/java/com/wangduwei/asm/source/part4/TraceAnnotationVisitorDemo.kt | duweiwang | 416,138,707 | false | null | package com.wangduwei.asm.source.part4
import org.objectweb.asm.ClassWriter
import org.objectweb.asm.Opcodes
import org.objectweb.asm.util.Textifier
import org.objectweb.asm.util.TraceAnnotationVisitor
class TraceAnnotationVisitorDemo {
}
fun main() {
TraceAnnotationAdapter.dump()
}
/**
* 通过代码示例创建一个注解类,一个无值,一个... | 1 | null | 1 | 2 | 5472818dc45cf2818cde0a08383e87cbe78afd05 | 1,645 | java-playground | Apache License 2.0 |
app/src/main/java/com/samagra/parent/ui/assessmenthome/AssessmentUserHomeFragment.kt | hardikm9850 | 687,311,848 | false | {"Java Properties": 8, "Markdown": 4, "Gradle": 14, "Shell": 3, "Batchfile": 3, "Text": 4, "Ignore List": 10, "Git Config": 1, "INI": 6, "Proguard": 8, "Kotlin": 231, "XML": 739, "JSON": 8, "robots.txt": 1, "HTML": 2, "CSS": 1, "JavaScript": 3, "Java": 1152, "YAML": 1, "GraphQL": 3, "XSLT": 6} | package com.samagra.parent.ui.assessmenthome
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AlertDialog
import androidx.lifecycle.ViewModelProvider
import androidx.preference.PreferenceManager
im... | 1 | null | 1 | 1 | 0dcf0b044da0ac6b58960ac8cce2f2db5910961c | 13,700 | Nipun-Lakshya-App | MIT License |
Benchmark/LBN/app/src/main/java/acr/browser/lightning/browser/tab/TabViewHolder.kt | SOLAR-group | 671,969,721 | false | {"Gradle": 119, "Markdown": 128, "Shell": 115, "Text": 3083, "Batchfile": 93, "YAML": 30, "INI": 203, "Java Properties": 172, "Java": 7697, "XML": 11474, "Ignore List": 49, "JAR Manifest": 5, "Maven POM": 2, "Python": 51, "Proguard": 20, "HTML": 718, "CSS": 23, "JSON": 3969, "JavaScript": 4547, "C++": 104, "C": 937, "M... | package acr.browser.lightning.browser.tab
import acr.browser.lightning.R
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
/**
* The view holder for a tab.
*
* @param onClick Invoked when the t... | 0 | Java | 1 | 1 | a37f51181a3bdc3281d8f372046e313b2a038fad | 1,466 | GIDroid | MIT License |
utils_error/src/main/java/sample/util/develop/android/error/library/ExceptionHandler.kt | 7449 | 69,446,568 | false | {"Gradle": 55, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 83, "XML": 299, "Kotlin": 132, "Java": 260, "Checksums": 6, "Java Properties": 2, "HTML": 2, "JSON": 3, "CSS": 1, "JavaScript": 7} | package sample.util.develop.android.error.library
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Environment
import android.os.Looper
import android.widget.Toast
import java.io.FileOutputStream
import java.io.Prin... | 0 | Java | 35 | 31 | e9317e538de09bfb7c1ec8ddd709211f51368049 | 4,533 | AndroidDevelop | Apache License 2.0 |
common-jvm/src/main/kotlin/org/flaxo/common/env/file/StringEnvironmentFile.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.common.env.file
import java.nio.file.Path
import java.nio.file.Paths
/**
* In-memory string environment file.
*/
open class StringEnvironmentFile(override val path: Path, override val content: String) : EnvironmentFile {
constructor(path: String, content: String) : this(Paths.get(path), conte... | 30 | null | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 470 | flaxo | Apache License 2.0 |
core/src/main/java/com/loitp/views/treeView/TreeAdapter.kt | tplloi | 126,578,283 | false | null | package com.loitp.views.treeView
import android.graphics.Point
import android.view.View
import android.widget.Adapter
/**
* Created by Loitp on 04,August,2022
* Galaxy One company,
* Vietnam
* +840766040293
* freuss47@gmail.com
*/
interface TreeAdapter<VH> : Adapter, TreeNodeObserver {
fun notifySizeChanged... | 1 | null | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 1,392 | base | Apache License 2.0 |
projects/ComposeConstraintLayout/app/src/main/java/com/example/constraintlayout/RowColumnDemo.kt | androidx | 212,409,034 | false | null | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 83 | null | 164 | 986 | de916779a3065bd23e21f9180bf6af62468b5518 | 2,570 | constraintlayout | Apache License 2.0 |
winterhold/src/main/java/winterhold/schooldraft/cards/RestorationSchoolChoiceCard.kt | TijmenvanderKemp | 325,634,389 | false | {"Kotlin": 78, "Text": 1, "Ignore List": 1, "Markdown": 1, "Maven POM": 1, "Java": 4, "JSON": 12, "XML": 1} | package winterhold.schooldraft.cards
import com.megacrit.cardcrawl.dungeons.AbstractDungeon
import winterhold.cards.School
class RestorationSchoolChoiceCard : AbstractSchoolChoiceCard(
specificClass = RestorationSchoolChoiceCard::class,
school = School.RESTORATION,
) {
override fun onPick() {
Abst... | 1 | Kotlin | 1 | 1 | b17bded16770cd170d092f66c26efb6b44fcf76e | 369 | StS-Winterhold | MIT License |
app/src/main/java/com/kenilt/skeleton/model/object/Paging.kt | kenilt | 247,617,328 | false | null | package com.kenilt.skeleton.model.`object`
import com.kenilt.skeleton.model.BaseModel
/**
* Created by neal on 1/9/17.
*/
class Paging : BaseModel() {
var current: Int = 0
var per: Int = 0
var total: Int = 0
val hasNextPage: Boolean
get() = current < total
}
| 0 | Kotlin | 0 | 0 | 9d5f445839d9741f4df5aa8cdfc46dfedada6b9b | 289 | Android-Skeleton-Project | MIT License |
Chapter13/HelloKotlin/app/src/main/java/com/goobar/hellokotlin/Person.kt | PacktPublishing | 164,067,642 | false | null | package com.goobar.hellokotlin
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Person(val firstName: String, val lastName: String): Parcelable | 0 | null | 32 | 51 | 9fd893de74c2546e2059606f4f87e2ddaa9644ea | 187 | Mastering-Kotlin | MIT License |
app/src/main/java/no/divvun/Extensions.kt | divvun | 24,789,155 | false | {"Java": 1703101, "Kotlin": 616713} | package no.divvun
import kotlin.math.min
import java.util.*
/**
* Because Android likes strings as locale.
* https://softwareengineering.stackexchange.com/questions/325458/parse-both-en-us-and-en-us-as-locale-in-java
*/
fun String.toLocale(): Locale {
return Locale.forLanguageTag(replace('_', '-'))
}
fun Stri... | 22 | Java | 6 | 9 | 5e71829dd991105f19aaec1d65dfff06c65b946a | 1,175 | giellakbd-android | Apache License 2.0 |
android/DartsScorecard/sounds/src/main/java/nl/entreco/dartsscorecard/sounds/LocalSoundRepository.kt | Entreco | 110,022,468 | false | null | package nl.entreco.dartsscorecard.sounds
import android.content.Context
import android.media.SoundPool
import nl.entreco.domain.mastercaller.SoundRepository
import nl.entreco.domain.repository.AudioPrefRepository
import java.util.ArrayDeque
import java.util.Deque
import java.util.HashMap
/**
* Created by entreco on ... | 4 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 2,249 | Darts-Scorecard | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.