path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/ru/krindra/vknorthtypes/newsfeed/NewsfeedCommentsItem.kt | kravandir | 745,597,090 | false | {"Kotlin": 633233} | package ru.krindra.vknorthtypes.newsfeed
import kotlinx.serialization.json.JsonElement
typealias NewsfeedCommentsItem = JsonElement
| 0 | Kotlin | 0 | 0 | 508d2d1d59c4606a99af60b924c6509cfec6ef6c | 135 | VkNorthTypes | MIT License |
integration/compose/src/androidTest/java/com/bumptech/glide/integration/compose/test/GlideComposeRule.kt | sjudd | 11,268,490 | true | {"Java": 3314741, "Kotlin": 245472, "Shell": 16383, "CSS": 455} | package com.bumptech.glide.integration.compose.test
import androidx.compose.ui.test.junit4.ComposeContentTestRule
import androidx.compose.ui.test.junit4.createComposeRule
import com.bumptech.glide.load.engine.executor.GlideIdlingResourceInit
import com.bumptech.glide.testutil.TearDownGlide
import org.junit.rules.RuleC... | 0 | Java | 6 | 7 | b3fd2bc1b68b988202e50fac757a318274c16be8 | 1,161 | glide | Apache License 2.0 |
src/main/kotlin/no/nav/klage/domain/klage/AggregatedKlageAnke.kt | navikt | 253,461,869 | false | {"Kotlin": 213695, "Dockerfile": 134} | package no.nav.klage.domain.klage
import java.time.LocalDate
data class AggregatedKlageAnke(
val id: String,
val identifikasjonsnummer: String,
val fornavn: String,
val mellomnavn: String,
val etternavn: String,
val vedtak: String,
val dato: LocalDate,
val begrunnelse: String,
val ... | 1 | Kotlin | 1 | 0 | f6777c56426e41066dcd5b21212ffb011d69fdd4 | 820 | klage-dittnav-api | MIT License |
src/main/kotlin/net/attsuman08/kokutorpg/Core.kt | kokutorpg | 574,459,627 | false | null | package net.attsuman08.kokutorpg
import net.Indyuce.mmoitems.MMOItems
import net.Indyuce.mmoitems.manager.ItemManager
import net.attsuman08.kokutorpg.command.*
import net.attsuman08.kokutorpg.listener.Events
import net.attsuman08.kokutorpg.listener.MythicMob
import net.attsuman08.kokutorpg.listener.Protocol
import net... | 0 | Kotlin | 0 | 0 | 1e5ce120afdba55eda26fbe0025234b4e89744a0 | 2,065 | KokutoRPG_season2 | Creative Commons Zero v1.0 Universal |
sentinel/src/main/kotlin/com/infinum/sentinel/SentinelInitializer.kt | infinum | 257,115,400 | false | {"Kotlin": 526915, "HTML": 3350, "Groovy": 1211} | package com.infinum.sentinel
import android.content.Context
import androidx.startup.Initializer
import com.infinum.sentinel.di.LibraryComponents
public class SentinelInitializer : Initializer<Class<SentinelInitializer>> {
override fun create(context: Context): Class<SentinelInitializer> {
LibraryCompone... | 0 | Kotlin | 1 | 38 | 2ff478612c708804f9e71b09f3488e6cb6bb308b | 485 | android-sentinel | Apache License 2.0 |
audioservice/src/main/java/com/github/zawadz88/audioservice/internal/factory/AudioPlayerServiceIntentFactory.kt | zawadz88 | 165,692,093 | false | null | package com.github.zawadz88.audioservice.internal.factory
import android.app.Application
import android.content.Intent
import com.github.zawadz88.audioservice.internal.AudioPlayerService
internal class AudioPlayerServiceIntentFactory(private val application: Application) {
internal fun createBaseIntent(): Intent... | 1 | null | 2 | 9 | 75675ce3eba05fbc8eb7cc6e2b9569a55670d37d | 852 | ExoPlayerAudioSample | MIT License |
litfass-server/src/test/kotlin/lit/fass/server/execution/CollectionExecutionServiceTest.kt | aemaem | 158,592,240 | false | null | package lit.fass.server.execution
import io.mockk.MockKAnnotations
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.verify
import lit.fass.server.config.yaml.model.CollectionConfig
import lit.fass.server.flow.FlowResponse
import lit.fass.server.flow.FlowServi... | 4 | Kotlin | 0 | 2 | da65a02b080174e749e78e8cce178b29f14f3545 | 3,860 | litfass | MIT License |
core/src/test/kotlin/org/stellar/anchor/api/sep/sep10/ChallengeResponseTest.kt | stellar | 452,893,461 | false | null | package org.stellar.anchor.dto.sep10
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
internal class ChallengeResponseTest {
companion object {
const val TEST_TRANSACTION = "TEST TXN"
const val TEST_NETWORKPHRASE = "Test SDF Network ; September 2015"
}
@Test
fun ... | 9 | null | 33 | 35 | 708945082b444131260d57a8fd44ae1a687ad2ed | 519 | java-stellar-anchor-sdk | Apache License 2.0 |
compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinLateinitProperty.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM_IR
// Field VS property: case "lateinit"
// FILE: BaseJava.java
public class BaseJava {
public String a = "FAIL";
public String fieldValue() {
return a;
}
}
// FILE: Derived.kt
class Derived : BaseJava() {
lateinit var a: String
}
fun box(): String {
val d = Derive... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 527 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/personopplysninger/personalia/transformer/DeltBostedTransformer.kt | navikt | 143,875,913 | false | {"Kotlin": 212424, "Dockerfile": 267} | package no.nav.personopplysninger.personalia.transformer
import no.nav.personopplysninger.personalia.dto.AdresseKodeverk
import no.nav.personopplysninger.personalia.dto.outbound.adresse.Adresse
import no.nav.personopplysninger.personalia.dto.outbound.adresse.DeltBosted
import no.nav.personopplysninger.personalia.enums... | 3 | Kotlin | 0 | 0 | 68c9cd6f0347b281fd5147690069f9e774dace87 | 2,560 | personopplysninger-api | MIT License |
game/core/src/com/lyeeedar/AI/Tasks/TaskWait.kt | Lyeeedar | 257,323,195 | false | null | package com.lyeeedar.AI.Tasks
import com.badlogic.gdx.utils.Pool
import com.lyeeedar.Components.Entity
import com.lyeeedar.Components.directionalSprite
import com.lyeeedar.Systems.World
import squidpony.squidmath.LightRNG
class TaskWait(): AbstractTask()
{
override fun execute(e: Entity, world: World<*>, rng: LightR... | 0 | Kotlin | 0 | 0 | 5068af2489fa6ff52a99016bceafca5690864754 | 810 | PortalClosers | Apache License 2.0 |
src/main/kotlin/com/dp/advancedgunnerycontrol/weaponais/tags/NoMissilesTag.kt | DesperatePeter | 361,380,141 | false | null | package com.dp.advancedgunnerycontrol.weaponais.tags
import com.dp.advancedgunnerycontrol.weaponais.FiringSolution
import com.dp.advancedgunnerycontrol.weaponais.isPD
import com.fs.starfarer.api.combat.CombatEntityAPI
import com.fs.starfarer.api.combat.MissileAPI
import com.fs.starfarer.api.combat.WeaponAPI
class NoM... | 0 | Kotlin | 3 | 9 | 514c3a1b9bd3f16ad6d0c602c9d9bdd9b50fb9fb | 876 | starsector-advanced-weapon-control | MIT License |
graph/graph-application/src/main/kotlin/eu/tib/orkg/prototype/statements/application/json/ThingIdSerializer.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2548386, "Cypher": 216087, "Python": 4880, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package eu.tib.orkg.prototype.statements.application.json
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.SerializerProvider
import eu.tib.orkg.prototype.statements.domain.model.ThingId
class ThingIdSerializer : JsonSerializer<... | 0 | Kotlin | 2 | 5 | f96c2c41a6e2b1da63a9d93973602573b596ed0d | 516 | orkg-backend | MIT License |
app/src/main/java/com/gmail/bogumilmecel2/fitnessappv2/feature_auth/presentation/register/RegisterViewModel.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.fitnessappv2.feature_auth.presentation.register
import androidx.lifecycle.viewModelScope
import com.gmail.bogumilmecel2.fitnessappv2.common.util.BaseViewModel
import com.gmail.bogumilmecel2.fitnessappv2.destinations.LoginScreenDestination
import com.gmail.bogumilmecel2.fitnessappv2.dest... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 2,842 | FitnessAppV2 | Apache License 2.0 |
app/src/main/java/com/gmail/bogumilmecel2/fitnessappv2/feature_auth/presentation/register/RegisterViewModel.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.fitnessappv2.feature_auth.presentation.register
import androidx.lifecycle.viewModelScope
import com.gmail.bogumilmecel2.fitnessappv2.common.util.BaseViewModel
import com.gmail.bogumilmecel2.fitnessappv2.destinations.LoginScreenDestination
import com.gmail.bogumilmecel2.fitnessappv2.dest... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 2,842 | FitnessAppV2 | Apache License 2.0 |
core/src/main/java/com/baptistecarlier/echo/data/linkedin/response/ShareResponse.kt | BapNesS | 533,918,653 | false | {"Kotlin": 111871} | package com.baptistecarlier.echo.data.linkedin.response
import com.baptistecarlier.echo.data.network.NetworkResponse
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class ShareResponse(
@SerialName("activity")
val activity: String,
) : NetworkResponse
| 0 | Kotlin | 0 | 1 | 26c09e5da4735f25ee066a3c5216b2cfc6ff95ac | 315 | EchoApp | Apache License 2.0 |
pixely-components/src/main/java/com/alessiocameroni/pixely_components/tokens/SegmentedRowTokens.kt | alessiocameroni | 585,689,923 | false | null | package com.alessiocameroni.pixely_components.tokens
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.surfaceColorAtElevation
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.d... | 0 | null | 0 | 5 | 2d708f872a7b4e1e9b5391779c473f7a57106a05 | 555 | pixely-components | MIT License |
z2-kotlin-plugin/src/hu/simplexion/z2/kotlin/adaptive/ir/arm/ArmExternalStateVariable.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1615216, "CSS": 166528, "Java": 13957, "HTML": 1560, "JavaScript": 975} | /*
* Copyright © 2020-2021, Simplexion, Hungary and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.z2.kotlin.adaptive.ir.arm
import hu.simplexion.z2.kotlin.adaptive.ir.arm.visitors.ArmElementVisitor
import org.jetbrains.kotlin.ir.declarations.IrValueParameter
im... | 5 | Kotlin | 0 | 1 | b883ad66b061c9a2707db94944f679e9c5929567 | 1,230 | z2 | Apache License 2.0 |
src/main/kotlin/ee/carlrobert/codegpt/completions/factory/CustomOpenAIRequestFactory.kt | carlrobertoh | 602,041,947 | false | null | package ee.carlrobert.codegpt.completions.factory
import com.fasterxml.jackson.databind.ObjectMapper
import com.intellij.openapi.components.service
import ee.carlrobert.codegpt.completions.BaseRequestFactory
import ee.carlrobert.codegpt.completions.CallParameters
import ee.carlrobert.codegpt.credentials.CredentialsSto... | 121 | null | 221 | 1,048 | ffa1fbbacff716529cd0b696f5dd8f95da41925d | 4,322 | CodeGPT | Apache License 2.0 |
zeroframe/src/main/java/com/zero/zeroframe/v/BasePopup.kt | tao3634398 | 781,380,649 | false | {"Kotlin": 38187, "Java": 6049} | package com.zero.zeroframe.v
import android.content.Context
import android.view.View
import androidx.viewbinding.ViewBinding
import razerdp.basepopup.BasePopupWindow
/**
* Popup基类
* @author Zero
* @since 2/4/24
*/
abstract class BasePopup<VB : ViewBinding>(context: Context, layoutId:Int):BasePopupWindow(context){... | 0 | Kotlin | 0 | 0 | 3661a349a825c1ed69f579ca5274ed8ac66b47a5 | 668 | zeroframe | MIT License |
cloudpg/src/main/java/io/clouditor/graph/passes/python/Psycopg2Pass.kt | clouditor | 383,231,250 | false | null | package io.clouditor.graph.passes.python
import de.fraunhofer.aisec.cpg.TranslationResult
import de.fraunhofer.aisec.cpg.graph.Node
import de.fraunhofer.aisec.cpg.graph.edge.Properties
import de.fraunhofer.aisec.cpg.graph.statements.expressions.MemberCallExpression
import de.fraunhofer.aisec.cpg.processing.IVisitor
im... | 9 | null | 4 | 8 | 1677a4114b11871f2e7c6791e6f46be5a538d4e9 | 7,231 | cloud-property-graph | Apache License 2.0 |
appLayer/src/main/java/com/aenadgrleey/tobedone/utils/IntegerExtensions.kt | Mobile-Developement-School-23 | 653,652,069 | false | null | package com.aenadgrleey.tobedone.utils
import android.content.res.Resources
import android.util.TypedValue
val Number.toPx
get() = TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
this.toFloat(),
Resources.getSystem().displayMetrics
).toInt() | 0 | Kotlin | 0 | 1 | e688479bf36eb981461c3d8eee9e1a274dfc3206 | 283 | android-todo-app-aenadgrleey | Apache License 2.0 |
application/src/main/kotlin/no/nav/poao_tilgang/application/controller/internal/HealthChecks.kt | navikt | 491,417,288 | false | {"Kotlin": 324870, "Dockerfile": 95} | package no.nav.poao_tilgang.application.controller.internal
import org.springframework.boot.actuate.health.Health
import org.springframework.boot.actuate.health.HealthIndicator
import org.springframework.stereotype.Component
@Component
class HealthChecksPoaoTilgang(
): HealthIndicator {
override fun health(): Health... | 8 | Kotlin | 4 | 0 | 55704fdf971af546f83877c5bda4c66e6ebaf699 | 705 | poao-tilgang | MIT License |
src/main/kotlin/cu/suitetecsa/sdk/nauta/rxjava/UserPortalAuthApi.kt | suitetecsa | 696,970,114 | false | {"Kotlin": 180648} | package cu.suitetecsa.sdk.nauta.rxjava
import cu.suitetecsa.sdk.nauta.UserPortalAuthApi
import cu.suitetecsa.sdk.nauta.model.NautaUser
import cu.suitetecsa.sdk.nauta.network.UserPortalSession
import cu.suitetecsa.sdk.nauta.scraper.AuthUserPortalScraper
import cu.suitetecsa.sdk.nauta.scraper.JsoupAuthUserPortalScrapper... | 0 | Kotlin | 0 | 2 | 936c8e49fe3c76f9d7a0ec5f6abd684583cfb1eb | 2,056 | sdk-kotlin | MIT License |
canvas2_lp/src/main/java/com/angcyo/canvas2/laser/pecker/dslitem/control/BarcodeMaskSelectItem.kt | angcyo | 229,037,684 | false | {"Kotlin": 3502808, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.canvas2.laser.pecker.dslitem.control
import com.angcyo.canvas2.laser.pecker.R
import com.angcyo.canvas2.laser.pecker.util.lpTextElement
import com.angcyo.dialog2.dslitem.itemWheelBean
import com.angcyo.dialog2.dslitem.itemWheelList
import com.angcyo.dialog2.dslitem.itemWheelToTextAction
import com.a... | 0 | Kotlin | 4 | 4 | 438d0a123f5eea7cad0aeadd9ae9f2dca60d8142 | 1,564 | UICoreEx | MIT License |
core/data/src/commonMain/kotlin/io/github/droidkaigi/confsched/data/profilecard/ProfileCardJson.kt | DroidKaigi | 776,354,672 | false | {"Kotlin": 1119401, "Swift": 211686, "Shell": 2954, "Makefile": 1314, "Ruby": 386} | package io.github.droidkaigi.confsched.data.profilecard
import io.github.droidkaigi.confsched.model.ProfileCard
import io.github.droidkaigi.confsched.model.ProfileCardType
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class ProfileCardJson(
val nickn... | 49 | Kotlin | 201 | 438 | 57c38a76beb5b75edc9220833162e1257f40ac06 | 1,059 | conference-app-2024 | Apache License 2.0 |
packages/expo-image/android/src/main/java/expo/modules/image/events/ImageProgressEvent.kt | derekstavis | 184,342,737 | true | {"Objective-C": 20602533, "Java": 13690880, "C++": 11626391, "Kotlin": 5359352, "TypeScript": 4619500, "Objective-C++": 4368983, "Swift": 1078083, "JavaScript": 1013246, "Starlark": 712574, "Ruby": 519774, "C": 282818, "Makefile": 193716, "Shell": 54009, "Assembly": 46734, "HTML": 36667, "CMake": 26275, "CSS": 1306, "B... | package expo.modules.image.events
import com.facebook.react.bridge.Arguments
import com.facebook.react.uimanager.events.Event
import com.facebook.react.uimanager.events.RCTEventEmitter
class ImageProgressEvent(viewId: Int, private val mBytesWritten: Long, private val mContentLength: Long, private val mDone: Boolean) ... | 1 | Objective-C | 1 | 2 | e377f0cd22db5cd7feb8e80348cd7064db5429b1 | 746 | expo | MIT License |
src/main/kotlin/hm/binkley/labs/State.kt | bhaweshksingh | 93,987,335 | true | {"Kotlin": 24477, "Shell": 6468, "Batchfile": 5137} | package hm.binkley.labs
enum class State { PENDING, COMPLETE }
| 0 | Kotlin | 0 | 0 | 3a3d12f1faafa4bafe49d22368e3f8b356834bb0 | 64 | sproingk | The Unlicense |
calendar/src/commonMain/kotlin/io/wojciechosak/calendar/view/HorizontalCalendarView.kt | WojciechOsak | 760,489,107 | false | {"Kotlin": 47645} | package io.wojciechosak.calendar.view
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PageSize
import a... | 7 | Kotlin | 5 | 97 | 55e23f73e217ab2c3d5968bdce8b8657eae3e2da | 2,745 | Calendar | Apache License 2.0 |
app/src/main/java/com/example/kotlinglang/d_exercicios_logica/ExTreinaEntrevista.kt | johnnymeneses | 527,025,619 | false | {"Kotlin": 101138} | package d_exercicios_logica
interface Vendas{
fun imprimir()
fun deletar()
}
class vendidos: Vendas {
override fun imprimir() {
TODO("Not yet implemented")
}
override fun deletar() {
TODO("Not yet implemented")
}
}
class Divisao {
var num1: Int = 10
private set
... | 0 | Kotlin | 0 | 0 | 81adfdad80400ece05a66d49dc7aeea7d107a68b | 1,152 | kotlin-lang | MIT License |
app/src/main/java/com/umair/archiTemplate2/model/room/RoomAccessPoints.kt | umair13adil | 244,596,063 | false | null | package com.umair.archiTemplate2.model.room
import androidx.room.Embedded
import androidx.room.Relation
import com.umair.archiTemplate2.model.accessPoint.AccessPoint
data class RoomAccessPoints(
@Embedded val room: Room,
@Relation(
parentColumn = "roomId",
entityColumn = "ssid"
)
val a... | 0 | Kotlin | 0 | 5 | beadd5db3284a48a7f2622a0bb1b585203232775 | 352 | SmartIndoor-PositioningAndroid | The Unlicense |
app/src/main/java/com/sdc/udn/openlora/activity/database/model/DeviceModel.kt | udopenlora | 172,840,818 | false | null | package com.sdc.udn.openlora.activity.database.model
import com.google.firebase.database.DataSnapshot
import java.io.Serializable
class DeviceModel(val id: String) : Serializable {
var name: String? = null
var type: String? = null
var status: Boolean? = null
var available: Boolean? = null
/**
... | 0 | Kotlin | 0 | 2 | 6c2cdbfac72415a98884fd18648aa4f693760bb4 | 2,262 | UDOpenLora-Android | MIT License |
app/src/main/java/com/example/m5/activity/AboutActivity.kt | jiushangli | 690,525,542 | false | {"Kotlin": 194781, "Java": 6129} | package com.example.m5.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.m5.R
import com.example.m5.databinding.ActivityAboutBinding
import com.example.m5.util.setStatusBarTextColor
import com.example.m5.util.transparentStatusBar
class AboutActivity : AppCompatActivi... | 0 | Kotlin | 1 | 1 | 0b0289bdb6d2582704fa9a633546c26725cb287a | 862 | Music-player | Apache License 2.0 |
sample/src/main/java/com/github/panpf/assemblyadapter/sample/ui/pager2/Pager2ListFragment.kt | panpf | 42,781,599 | false | null | /*
* Copyright (C) 2021 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 33 | 169 | 00cf02eb1b2be82685a2997d5473579246e256c8 | 4,361 | assembly-adapter | Apache License 2.0 |
sample/src/main/java/com/github/panpf/assemblyadapter/sample/ui/pager2/Pager2ListFragment.kt | panpf | 42,781,599 | false | null | /*
* Copyright (C) 2021 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 33 | 169 | 00cf02eb1b2be82685a2997d5473579246e256c8 | 4,361 | assembly-adapter | Apache License 2.0 |
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/symbols/KtFirClassInitializerSymbol.kt | JetBrains | 3,432,266 | false | 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.analysis.api.fir.symbols
import com.intellij.psi.PsiElement
import org.jetbrains... | 125 | null | 4903 | 39,894 | 0ad440f112f353cd2c72aa0a0619f3db2e50a483 | 1,539 | kotlin | Apache License 2.0 |
app/src/main/java/tosbik/ao/tmass/common/utils/CalendarUtils.kt | ahmet-ozberk | 867,064,488 | false | {"Kotlin": 126633} | package tosbik.ao.tmass.common.utils
import android.app.LocaleManager
import android.os.Build
import androidx.appcompat.app.AppCompatDelegate
import tosbik.ao.tmass.MainApplication
import java.time.LocalDate
import java.time.LocalTime
import java.time.format.DateTimeFormatter
import java.time.format.TextStyle
import j... | 0 | Kotlin | 0 | 0 | 13db80f40cf8942462cef2ac87621c294aba1bcb | 2,777 | TMass | MIT License |
app/src/main/java/com/android/example/ratemycourse/Course.kt | FlaskofShawn | 479,595,640 | false | null | package com.android.example.ratemycourse
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Course(
override var id: String? = null,
var subject: String? = null,
var number: Int? = null,
var suffix: String? = null,
var name: String? = nul... | 0 | Kotlin | 0 | 0 | 93c85588ceccda00c3da9dc7ffd7c9dee7c3f119 | 523 | RateMyClass | Apache License 2.0 |
src/main/kotlin/model/Category.kt | gmatyszczak | 171,290,380 | false | {"Kotlin": 192668} | package model
private const val DEFAULT_NAME = "UnnamedCategory"
data class Category(
var id: Int = 0,
var name: String = "",
var customVariables: List<CustomVariable> = emptyList()
) {
override fun toString() = name
companion object {
fun getDefault(id: Int) = Category(id, DEFAULT_NAME)... | 6 | Kotlin | 28 | 147 | baf6d12b12c210e835e2513d9e6d6c1e279c8115 | 328 | screen-generator-plugin | Apache License 2.0 |
interactiveplayer/src/main/java/io/dolby/interactiveplayer/alert/ClearStreamConfirmationAlert.kt | dolbyio-samples | 605,773,452 | false | {"Kotlin": 427958} | package io.dolby.rtsviewer.ui.alert
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.found... | 3 | Kotlin | 3 | 2 | dca8f26c16e0ede3a6efbee12f1429176bb329cc | 2,249 | rts-app-android-viewer | MIT License |
platform/lang-impl/src/com/intellij/lang/documentation/ide/ui/DocumentationPopupPane.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.lang.documentation.ide.ui
import com.intellij.ui.WidthBasedLayout
import com.intellij.util.ui.UIUtil
import java.awt.BorderLayout
import ja... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 849 | intellij-community | Apache License 2.0 |
app/src/main/kotlin/com/zaiming/android/gallery/adapter/viewholders/CountHeaderViewHolder.kt | qiuzaiming | 456,448,337 | false | {"Kotlin": 355387} | package com.zaiming.android.gallery.adapter.viewholders
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.zaiming.android.gallery.R
/**
* @author zaiming
*/
class CountHeaderViewHolder(parent: ViewGroup) : Recy... | 1 | Kotlin | 0 | 1 | 4bf7bd113cd34317cf743a59b6870041339d65fb | 624 | gallery | Apache License 2.0 |
core-api/core/src/main/java/love/forte/simbot/core/SimbotApp.kt | simple-robot | 554,852,615 | false | null | /*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email <EMAIL>
* * QQ 11... | 21 | Kotlin | 24 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 23,664 | simple-robot-v2 | Apache License 2.0 |
gdt/src/main/java/com/ifmvo/togetherad/gdt/provider/GdtProviderNative.kt | nantofu | 332,240,650 | true | {"Kotlin": 221879} | package com.ifmvo.togetherad.gdt.provider
import android.app.Activity
import com.ifmvo.togetherad.core.listener.NativeListener
import com.ifmvo.togetherad.gdt.TogetherAdGdt
import com.qq.e.ads.cfg.VideoOption
import com.qq.e.ads.nativ.NativeADUnifiedListener
import com.qq.e.ads.nativ.NativeUnifiedAD
import com.qq.e.ad... | 0 | Kotlin | 0 | 0 | 7623a4f33cff2749d383d8fb894e32a4f316e339 | 2,743 | TogetherAd | MIT License |
actions-kotlin/src/jsMain/kotlin/actions/core/Summary.kt | karakum-team | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("@actions/core")
package actions.core
import js.core.ReadonlyArray
import js.promise.Promise
external class Summary {
constructor()
/**
* Writes text in the buffer to the summary buffer file and empties buffer. Will append by default.
*
... | 0 | null | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 4,870 | types-kotlin | Apache License 2.0 |
advent-of-code-2023/src/Day10.kt | osipxd | 572,825,805 | false | {"Kotlin": 104047, "Shell": 4083, "Scala": 693} | private typealias Maze = List<MazeRow>
private typealias MazeRow = List<Pipe>
private const val DAY = "Day10"
fun main() {
fun testInput(id: Int) = readInput("${DAY}_test$id")
fun input() = readInput(DAY)
"Part 1" {
part1(testInput(0)) shouldBe 4
part1(testInput(1)) shouldBe 8
mea... | 0 | Kotlin | 0 | 5 | 5554c877c769a298963a227df8fb80cb912144c1 | 5,584 | advent-of-code | Apache License 2.0 |
composeApp/src/androidMain/kotlin/com/dee/themovie/theme/ThemeTypography.kt | deeheinhtet | 776,096,363 | false | {"Kotlin": 98395, "Swift": 15749} | package com.dee.themovie.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.... | 0 | Kotlin | 5 | 44 | 460fa93dae6162332280c1a515e2875a6efbf599 | 1,915 | TheMovie | MIT License |
analyser/src/main/kotlin/org/tabooproject/reflex/reflection/InstantAnnotation.kt | TabooLib | 450,644,012 | false | {"Kotlin": 91674, "Java": 61981} | package org.tabooproject.reflex.reflection
import org.tabooproject.reflex.ClassAnnotation
import org.tabooproject.reflex.Internal
import org.tabooproject.reflex.LazyClass
/**
* @author 坏黑
* @since 2022/1/24 8:48 PM
*/
@Internal
class InstantAnnotation(val annotation: Annotation) : ClassAnnotation(LazyClass.of(anno... | 2 | Kotlin | 5 | 18 | a627c84ee93344dd089d2278f4f4462f0ffb473d | 1,141 | reflex | Creative Commons Zero v1.0 Universal |
old/korim-jpeg/src/commonTest/kotlin/com/soywiz/korim/format/jpg/JpegFormatTest.kt | dmitrykolesnikovich | 419,672,302 | false | null | package com.soywiz.korim.format.jpg
import com.soywiz.korim.bitmap.*
import com.soywiz.korim.format.*
import com.soywiz.korio.async.*
import com.soywiz.korio.file.std.*
import kotlin.test.*
class JpegFormatTest {
val formats = ImageFormats(JPEG, PNG)
@Test
fun jpeg() = suspendTestNoBrowser {
val ... | 0 | null | 0 | 1 | d05eff45d0cb156336cf8dd9557731a3ec9243cb | 2,999 | korim | Apache License 2.0 |
app/src/main/java/de/theess/eisbaer/MainActivity.kt | teetrinkers | 215,319,991 | false | null | package de.theess.eisbaer
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.drawerlayout.widget.DrawerLayout
import androidx.lifecycle.Observer
import androidx.navigation.NavController
import androidx.navigation.Navigation
imp... | 0 | Kotlin | 0 | 1 | c53a7a9ce76ecfedd398110d4e198c5d7f1604fa | 3,878 | eisbaer | MIT License |
camera-lib/src/test/java/com/github/dananas/camera/statemachine/states/ReopeningStateTest.kt | dananas | 294,248,008 | false | null | package com.github.dananas.camera.statemachine.states
import com.github.dananas.camera.BaseTest
import com.github.dananas.camera.statemachine.CameraAction
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.verif... | 0 | Kotlin | 0 | 2 | e0ac9d27ea1b19bd4a4846fb649d973f8fc09811 | 1,498 | camera | MIT License |
koma-core-api/common/src/koma/extensions/extensions_ndarray_Short.kt | thomasnield | 150,356,210 | true | {"Kotlin": 420569, "Shell": 623} | @file:koma.internal.JvmName("NDArray")
@file:koma.internal.JvmMultifileClass
/**
* THIS FILE IS AUTOGENERATED, DO NOT MODIFY. EDIT THE FILES IN templates/
* AND RUN ./gradlew :codegen INSTEAD!
*/
package koma.extensions
import koma.internal.default.generated.ndarray.DefaultGenericNDArray
import koma.internal.defa... | 0 | Kotlin | 0 | 1 | fe250377a56f4f15222f3103fb2a53ac2697826e | 8,016 | koma | Apache License 2.0 |
src/main/kotlin/com/fingolfintek/teams/TeamsCombinationsResolver.kt | FingolfinTEK | 102,262,548 | false | null | package com.fingolfintek.teams
import io.vavr.Tuple2
import io.vavr.collection.*
import io.vavr.collection.Map
import io.vavr.collection.Set
import io.vavr.control.Option
import javax.annotation.PostConstruct
//@Component
//@DependsOn("teamsPostProcessor")
open class TeamsCombinationsResolver(
private val teamDef... | 0 | Kotlin | 0 | 0 | 37ae2013b48d61a3e31774fa06081c5809ac4553 | 1,897 | furry-sniffle-jabba | MIT License |
smooth-redux/src/main/java/io/smooth/redux/defaults/DefaultAction.kt | smooth-io | 366,466,107 | false | null | package io.smooth.redux.defaults
import io.smooth.redux.defaults.section.ProcessingType
sealed class DefaultAction
class ProcessingAction(
val processingType: ProcessingType,
val progress: Float = 0f,
val reason: Any,
val metaData: Map<String, *>? = null
) : DefaultAction()
class ErrorAction(
val... | 0 | Kotlin | 0 | 0 | 36f2cd8d969611d94b85ae9b236415037f085176 | 420 | smooth | MIT License |
javatests/dagger/functional/kotlinsrc/subcomponent/SubcomponentTest.kt | Surasithm00 | 670,141,242 | true | {"Markdown": 5, "Shell": 28, "INI": 19, "Java": 1467, "Proguard": 4, "Kotlin": 392, "Batchfile": 1, "Python": 2, "Java Properties": 2} | /*
* Copyright (C) 2023 The Dagger 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Java | 0 | 1 | 14f12378d874efdd0376231c20e0622ce92c3c2a | 4,303 | dagger | Apache License 2.0 |
app/src/main/kotlin/io/eugenethedev/taigamobile/domain/entities/Tag.kt | EugeneTheDev | 345,475,827 | false | null | package io.eugenethedev.taigamobile.domain.entities
data class Tag(
val name: String,
val color: String
)
| 1 | Kotlin | 11 | 86 | 410bd4a8efd781280e8038f92b77a2babd120fef | 115 | TaigaMobile | Apache License 2.0 |
packages/serverless/src/commonMain/kotlin/elide/http/HttpPayload.kt | elide-dev | 506,113,888 | false | {"Kotlin": 5115469, "Java": 1550605, "C": 1279934, "JavaScript": 1164443, "Protocol Buffer": 276092, "Shell": 125548, "Dockerfile": 53951, "Cap'n Proto": 35188, "Makefile": 34128, "Rust": 9548, "Python": 7741, "Batchfile": 6032, "Ruby": 2474, "CSS": 1852, "Smarty": 1464, "Handlebars": 1102, "Pkl": 102, "TypeScript": 80... | /*
* Copyright (c) 2024 Elide Technologies, Inc.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing,... | 35 | Kotlin | 16 | 91 | eeb53cad4d1316c0be9f0c57315827051367b7f0 | 1,433 | elide | MIT License |
src/domain/src/main/kotlin/yapp/be/domain/shelter/port/outbound/shelteruser/ShelterUserQueryHandler.kt | YAPP-Github | 634,126,325 | false | null | package yapp.be.domain.shelter.port.outbound.shelteruser
import yapp.be.domain.model.ShelterUser
import yapp.be.model.vo.Email
interface ShelterUserQueryHandler {
fun findById(shelterUserId: Long): ShelterUser
fun findByShelterId(shelterId: Long): ShelterUser
fun findByEmail(email: Email): ShelterUser?
... | 3 | null | 1 | 7 | 8f8d6d16113773b80e731c10daa63932a89075b2 | 366 | DangleDangle-server | Apache License 2.0 |
test/nl/hannahsten/texifyidea/formatting/LatexFormattingTest.kt | jonlandrum | 325,311,190 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 1, "Markdown": 7, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 3, "Kotlin": 615, "Java": 93, "TeX": 65, "BibTeX": 5, "INI": 1, "XML": 5, "JFlex": 2, "CODEOWNERS": 1, "SVG": 74, "HTML": 99, "Python": 1} | package nl.hannahsten.texifyidea.formatting
import com.intellij.psi.codeStyle.CodeStyleManager
import com.intellij.testFramework.fixtures.BasePlatformTestCase
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.testutils.writeCommand
class LatexFormattingTest : BasePlatformTestCase() {
... | 1 | null | 1 | 1 | aeb21e4be76da8cc4818799f75e48921b1e93b41 | 4,855 | TeXiFy-IDEA | MIT License |
favourites/src/main/java/com/droidcon/favourites/presentation/FavouritesViewModelFactory.kt | rockndroid | 219,824,667 | false | null | package com.droidcon.favourites.presentation
import androidx.fragment.app.Fragment
import com.droidcon.commons.ioc.lifecycle.buildViewModel
import com.droidcon.commons.tracking.FavouritesTracker
import com.droidcon.favourites.domain.GetFavouriteSessions
import javax.inject.Inject
class FavouritesViewModelFactory @Inj... | 2 | Kotlin | 0 | 0 | 01e1bbb55b65ee57f186eb0fd98cbc84ea92b3f9 | 612 | android-droidcon-madrid-19 | Apache License 2.0 |
app/src/main/java/com/dinaraparanid/prima/fragments/TrackCollectionsFragment.kt | dinaraparanid | 365,311,683 | false | null | package com.dinaraparanid.prima.fragments
import androidx.fragment.app.Fragment
import com.dinaraparanid.prima.R
import com.dinaraparanid.prima.utils.polymorphism.ViewPagerFragment
/**
* [ViewPagerFragment] for both song collections fragments
*/
class TrackCollectionsFragment : ViewPagerFragment() {
override v... | 0 | Kotlin | 0 | 5 | 02d189f64e28d3c9b56b2172ef17d475e952f083 | 963 | PrimaMobile | Apache License 2.0 |
browser-kotlin/src/jsMain/kotlin/web/cssom/CSSUnparsedSegment.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
package web.cssom
typealias CSSUnparsedSegment = Any /* string | CSSVariableReferenceValue */
| 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 140 | types-kotlin | Apache License 2.0 |
app/src/main/java/cz/josefadamcik/activityjournal/screens/addactivity/AddActivityTitleFragment.kt | josefadamcik | 149,273,796 | false | null | package cz.josefadamcik.activityjournal.screens.addactivity
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import androidx.lifecycle.Lifecy... | 0 | Kotlin | 0 | 2 | 572d8e74215297cd0657e3656c099efafdd9b8b2 | 2,900 | activityjournal | Apache License 2.0 |
kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/slash/SlashCommand.kt | spaceclouds42 | 408,250,779 | true | {"Kotlin": 927280, "Groovy": 3885} | @file:OptIn(KordPreview::class, TranslationNotSupported::class)
@file:Suppress("StringLiteralDuplication")
package com.kotlindiscord.kord.extensions.commands.slash
import com.kotlindiscord.kord.extensions.CommandException
import com.kotlindiscord.kord.extensions.CommandRegistrationException
import com.kotlindiscord.k... | 0 | null | 0 | 0 | ff5eab0549dd094e3cfbcd1b45400c951e6f32e5 | 27,658 | kord-extensions | MIT License |
buildSrc/src/main/java/Dependencies.kt | nisrulz | 52,872,812 | false | null | /*
* Copyright (C) 2016 <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... | 4 | null | 8 | 15 | 1d6474c08467e80761e7d4da5193353cfc61716d | 2,132 | ShoutOut | Apache License 2.0 |
sdk/src/main/kotlin/com/tpay/sdk/designSystem/textfields/TextFieldAbstract.kt | tpay-com | 702,885,281 | false | {"Kotlin": 421511} | @file:Suppress("LeakingThis", "unused", "MemberVisibilityCanBePrivate")
package com.tpay.sdk.designSystem.textfields
import android.content.Context
import android.os.Parcel
import android.os.Parcelable
import android.text.Editable
import android.text.InputFilter
import android.text.InputType
import android.text.TextW... | 0 | Kotlin | 1 | 0 | b75aa85efa7cabbd628e95111b770d9b2cc2b639 | 19,027 | tpay-android | MIT License |
injective-core/src/jvmMain/kotlin/injective/exchange/v1beta1/events.converter.kt | jdekim43 | 759,720,689 | false | {"Kotlin": 8940168, "Java": 3242559} | // Transform from injective/exchange/v1beta1/events.proto
@file:GeneratorVersion(version = "0.3.1")
package injective.exchange.v1beta1
import kr.jadekim.protobuf.`annotation`.GeneratorVersion
import kr.jadekim.protobuf.converter.ProtobufConverter
public actual object EventBatchSpotExecutionConverter : ProtobufConver... | 0 | Kotlin | 0 | 0 | eb9b3ba5ad6b798db1d8da208b5435fc5c1f6cdc | 5,145 | chameleon.proto | Apache License 2.0 |
hazelnet-community/src/main/kotlin/io/hazelnet/community/persistence/AutojoinProjection.kt | nilscodes | 446,203,879 | false | {"TypeScript": 1045486, "Kotlin": 810416, "Dockerfile": 4476, "Shell": 1830, "JavaScript": 1384} | package io.hazelnet.community.persistence
import io.hazelnet.shared.data.BlockchainType
interface AutojoinProjection {
fun getDiscordServerId(): Int
fun getDiscordWhitelistId(): Long
fun getAddress(): String
fun getBlockchain(): BlockchainType
fun getExternalAccountId(): Long
} | 0 | TypeScript | 4 | 13 | 79f8b096f599255acb03cc809464d0570a51d82c | 300 | hazelnet | Apache License 2.0 |
src/main/kotlin/no/nav/samordning/hendelser/feed/FeedController.kt | navikt | 156,209,069 | false | null | package no.nav.samordning.hendelser.feed
import io.micrometer.core.annotation.Timed
import jakarta.validation.Valid
import jakarta.validation.constraints.Digits
import jakarta.validation.constraints.Max
import jakarta.validation.constraints.Min
import jakarta.validation.constraints.PositiveOrZero
import no.nav.samordn... | 5 | Kotlin | 0 | 1 | e562d9870d16ab5070bb367d16ac36cd8b406a6b | 2,232 | samordning-hendelse-api | MIT License |
misk/src/main/kotlin/misk/web/exceptions/GrpcExceptionMapper.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.web.exceptions
import com.squareup.wire.GrpcException
import org.slf4j.event.Level
import jakarta.inject.Inject
internal class GrpcExceptionMapper @Inject internal constructor() : ExceptionMapper<GrpcException> {
override fun toResponse(th: GrpcException) = IOExceptionMapper.INTERNAL_SERVER_ERROR_RESPO... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 395 | misk | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/spec/SpecExtensions.kt | antonlakida | 413,260,612 | true | {"Kotlin": 3285660, "CSS": 352, "Java": 145} | package io.kotest.engine.spec
import io.kotest.core.config.Configuration
import io.kotest.core.extensions.Extension
import io.kotest.core.extensions.SpecIgnoredListener
import io.kotest.core.extensions.InactiveSpecListener
import io.kotest.core.extensions.SpecInitializeExtension
import io.kotest.core.extensions.SpecCr... | 0 | Kotlin | 0 | 0 | ad6059703b1846b5f8f6e8e662e65edfa9727339 | 4,502 | kotest | Apache License 2.0 |
gradle-plugin-test-utils/src/main/kotlin/org/unbrokendome/gradle/pluginutils/test/assertions/assertk/Provider.kt | unbroken-dome | 332,452,514 | false | null | package org.unbrokendome.gradle.pluginutils.test.assertions.assertk
import assertk.Assert
import assertk.assertions.contains
import assertk.assertions.isEmpty
import assertk.assertions.isEqualTo
import assertk.assertions.isFalse
import assertk.assertions.isTrue
import assertk.assertions.prop
import assertk.assertions.... | 0 | Kotlin | 0 | 0 | 56f3868043230d0f7fafc011e3850c85e11f25c3 | 2,449 | gradle-plugin-utils | MIT License |
src/main/kotlin/ru/hse/parser/Parser.kt | vladnosiv | 466,538,131 | true | {"Kotlin": 140881} | package ru.hse.parser
/**
* Позволяет попробовать преобразовать строку в другую сущность
* @param T тип сущности, в которую будет вестись преобразование
*/
interface Parser<T> {
/**
* Преобразовать строку в сущность с типом T
* Если не получилось, возвращает ошибку
*/
fun tryParse(line: Strin... | 1 | null | 0 | 0 | 0891e4e7d075aeaa621173b6dbb824ebbbe4199e | 336 | HSE-SD-Course | MIT License |
src/main/kotlin/no/tomlin/api/iata/entity/Location.kt | benct | 198,070,883 | false | {"Kotlin": 168306} | package no.tomlin.api.iata.entity
import no.tomlin.api.common.Extensions.required
import org.springframework.jdbc.core.RowMapper
import java.time.LocalDate
import kotlin.reflect.full.primaryConstructor
data class Location(
val id: String,
val iataCode: String,
val icaoCode: String?,
val cityCode: Stri... | 0 | Kotlin | 0 | 0 | 60575eaddf306f09e8cf722d629fff463030e46d | 3,672 | tomlin-api | MIT License |
daggercore/src/main/java/com/worldsnas/daggercore/modules/network/EndPoint.kt | worldsnas | 178,716,293 | false | {"Gradle": 25, "YAML": 2, "Java Properties": 2, "Proguard": 5, "Shell": 1, "Text": 2, "Ignore List": 17, "Batchfile": 1, "Markdown": 1, "Kotlin": 318, "XML": 61, "JSON": 4, "INI": 1, "Java": 39} | package com.worldsnas.daggercore.modules.network
const val BASE_URL = "https://api.themoviedb.org"
| 1 | Kotlin | 8 | 57 | c7d084d2cf2c4f9486337fe347d5d6b8b5806e0a | 101 | AIO | Apache License 2.0 |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/managers/RestoreKeyConverters.kt | horizontalsystems | 147,199,533 | false | null | package io.horizontalsystems.bitcoincore.managers
import io.horizontalsystems.bitcoincore.models.PublicKey
import io.horizontalsystems.bitcoincore.transactions.scripts.ScriptType
import io.horizontalsystems.bitcoincore.utils.IAddressConverter
interface IRestoreKeyConverter {
fun keysForApiRestore(publicKey: Publi... | 20 | null | 55 | 96 | 110018d54d82bb4e3c2a1d6b0ddd1bb9eeff9167 | 2,544 | bitcoin-kit-android | MIT License |
extension-client/src/commonMain/kotlin/bruhcollective/itaysonlab/ksteam/guard/models/_GuardConfiguration.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 605935} | package bruhcollective.itaysonlab.ksteam.guard.models
import steam.webui.twofactor.CRemoveAuthenticatorViaChallengeContinue_Replacement_Token
import steam.webui.twofactor.CTwoFactor_AddAuthenticator_Response
fun CRemoveAuthenticatorViaChallengeContinue_Replacement_Token.toConfig(): GuardStructure {
return GuardSt... | 1 | Kotlin | 1 | 35 | 69f547a200a6eb4d89463d7ccd1e89f5ebae2162 | 1,204 | kSteam | MIT License |
app/src/main/kotlin/com/rviewer/beers/app/rest/RestExceptionHandler.kt | makcon | 736,968,979 | false | {"Kotlin": 75766, "Makefile": 274} | package com.rviewer.beers.app.rest
import com.rviewer.beers.app.dto.ErrorCode
import com.rviewer.beers.app.dto.ErrorV1
import com.rviewer.beers.domain.exception.ClosedAtInvalidException
import com.rviewer.beers.domain.exception.DispenserInUseException
import com.rviewer.beers.domain.exception.DispenserNotOpenedExcepti... | 0 | Kotlin | 0 | 0 | 218741c7facf8ea72e75b43bf0f0a42d8ba8016c | 2,363 | beers-service | MIT License |
features/speakers/speakers-panes/src/androidMain/kotlin/com/paligot/confily/speakers/panes/SpeakerDetailScreen.android.kt | GerardPaligot | 444,230,272 | false | null | package com.paligot.confily.speakers.panes
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import com.paligot.confily.models.ui.SpeakerUi
import com.paligot.confily.style.theme.Conferences4HallTheme
@Suppress("UnusedPrivateMember... | 9 | null | 6 | 143 | 8c0985b73422d6b388012d79c7ab33c054dc55c1 | 689 | Confily | Apache License 2.0 |
app/src/test/java/com/rafsan/newsapp/util/MockWebServerBaseTest.kt | rafsanahmad | 408,462,109 | false | {"Kotlin": 90230} | /*
* *
* * Created by <NAME> on 9/27/21, 5:30 PM
* * Copyright (c) 2021 . All rights reserved.
*
*/
package com.rafsan.newsapp.util
import com.rafsan.newsapp.network.api.NewsApi
import okhttp3.OkHttpClient
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.Aft... | 0 | Kotlin | 15 | 43 | b1af04688b588aefe253f86590b6f4c7b842c2d2 | 1,669 | Android-MVVM-News-App | The Unlicense |
src/cn/ancono/math/property/Mappable.kt | 140378476 | 105,762,795 | false | {"Java": 1912158, "Kotlin": 1243514} | package cn.ancono.math.property
import cn.ancono.math.function.Bijection
/**
* Describes the property of mappable.
* @see [cn.ancono.math.function.SVFunction]
*/
interface Mappable<T> {
/**
* Maps this to a new type [N].
* @param mapper a bijection between type [T] and type [N]
*/
fun <N> ma... | 1 | Java | 1 | 6 | 02c2984c10a95fcf60adcb510b4bf111c3a773bc | 363 | Ancono | MIT License |
src/main/kotlin/com/linkedplanet/plugin/confluence/insightreporting/impl/sync/SpaceSyncConfigService.kt | tied | 295,535,853 | true | {"Shell": 3, "Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "XML": 7, "OASv3-yaml": 1, "Kotlin": 18, "Java": 1, "Java Properties": 1, "JavaScript": 1, "YAML": 1} | /*
* #%L
* insight-reporting
* %%
* Copyright (C) 2018 The Plugin 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | 1 | Kotlin | 1 | 0 | eb32d7663251b72fffb8e2bed66a1313e79efca3 | 1,822 | confluence-insight-reporting-plugin | Apache License 2.0 |
app/src/main/java/jp/naotiki/autosleeper/ReceivedActivity.kt | naotiki | 330,622,410 | false | {"Kotlin": 7334} | package jp.naotiki.autosleeper
import android.app.admin.DevicePolicyManager
import android.widget.Toast
import android.content.Intent
import android.content.Context
import android.content.BroadcastReceiver
import android.media.AudioManager
import android.content.Context.MODE_PRIVATE
import android.view.KeyEvent
clas... | 0 | Kotlin | 0 | 2 | 9336427fc4ad4177334a7fd0ea1c5eb318a0dc83 | 994 | AutoSleeper | MIT License |
plugins/kotlin/idea/tests/testData/editor/optimizeImports/common/InvokeFunction.kt | ingokegel | 176,209,431 | false | null | // FIR_COMPARISON
import test1.MyClass
import test1.invoke
fun foo() {
val s = MyClass()
s()
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 104 | kotlin | Apache License 2.0 |
app/src/main/java/io/github/theuzfaleiro/trendingongithub/ui/feature/repository/adapter/GenericAdapter.kt | MisakiM3i1001 | 132,593,025 | false | null | package io.github.theuzfaleiro.trendingongithub.ui.feature.repository.adapter
import android.support.v4.util.SparseArrayCompat
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import io.github.theuzfaleiro.trendingongithub.data.model.repository.Repository
import io.github.theuzfaleiro.trendi... | 0 | Kotlin | 0 | 0 | 1f9bd09a65c0b0789ffae2714b655f68511c6587 | 2,000 | trending-on-github | MIT License |
composeApp/src/commonMain/kotlin/dev/ishubhamsingh/splashy/core/network/KtorLogger.kt | ishubhamsingh | 670,661,834 | false | {"Kotlin": 262231, "Swift": 2936, "Batchfile": 2675, "Shell": 228} | /*
* Copyright 2023 Shubham Singh
*
* 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 t... | 5 | Kotlin | 1 | 45 | b0c6f45a8e63a648e5ebc8e674fca379d98050d9 | 870 | Splashy | Apache License 2.0 |
app/src/main/java/com/lanyard/pirateerlite/data/JobData.kt | prespondek | 189,057,907 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | 58157ee53575f8c63bc12a6b09b61cd897ca94d1 | 4,682 | PirateerLiteAndroid | Apache License 2.0 |
src/main/kotlin/org/quiltmc/community/database/serializers/SnowflakeSerializer.kt | theglitch76-forks | 425,037,511 | true | {"Kotlin": 171701, "Groovy": 537, "Dockerfile": 223} | package org.quiltmc.community.database.serializers
import dev.kord.common.entity.Snowflake
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.SerialDescriptor
import ... | 0 | null | 0 | 0 | 3f789db949ab888c7786964b32f2fc6e19eb0389 | 801 | cozy-discord | Creative Commons Zero v1.0 Universal |
dokument/domain/src/test/kotlin/dokument/domain/DokumentMedMetadataUtenFilTest.kt | navikt | 227,366,088 | false | {"Kotlin": 10056854, "Shell": 4388, "TSQL": 1233, "Dockerfile": 1209} | package dokument.domain
import dokument.domain.DokumentMedMetadataUtenFil.Companion.tilDokumentUtenFil
import dokument.domain.distribuering.Distribueringsadresse
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.domain.PdfA
import no.nav.su.se.bakover.test.dokumentMedMetadataVedtak
import no.nav.su... | 7 | Kotlin | 1 | 1 | db6e2e38779109e716543305a5e8faec72ae601d | 3,744 | su-se-bakover | MIT License |
yandex-mapkit-kmp/src/commonMain/kotlin/ru/sulgik/mapkit/map/VisibleRegion.kt | SuLG-ik | 813,953,018 | false | {"Kotlin": 321441} | package ru.sulgik.mapkit.map
import ru.sulgik.mapkit.geometry.Point
public data class VisibleRegion(
val topLeft: Point,
val topRight: Point,
val bottomLeft: Point,
val bottomRight: Point,
) | 0 | Kotlin | 1 | 17 | 2d292b701adb2c538f8cd3ddf614250f9d6a444d | 208 | yandex-mapkit-kmp | Apache License 2.0 |
app/src/main/java/com/company/app/data/data_source/remote/response/AppDataResponse.kt | losnappas | 733,027,321 | false | {"Kotlin": 61048, "Nix": 1759} | package com.company.app.data.data_source.remote.response
import com.company.app.data.data_source.local.AppEntity
import com.google.gson.annotations.SerializedName
data class AppDataResponse(
@SerializedName("results")
val data: List<AppEntity>
) | 0 | Kotlin | 0 | 0 | a0284774e1104e77bdc04a8351aeb8708b17cb03 | 256 | devenv-android-starter | The Unlicense |
bbfgradle/tmp/results/diffBehavior/wbzkmya_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM , JVM -Xuse-ir
// !LANGUAGE: +NewInference, +FunctionReferenceWithDefaultValueAsOtherType
// FILE: tmp.kt
class Outer(val o: String) {
inner class Inner1(val i: Int, vararg v: String) {
val result = "I1" + o + i + if (v.size == 0) {
println("""THEN""");
"E"
} else {
println("""ELSE"""... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 2,290 | kotlinWithFuzzer | Apache License 2.0 |
acc/src/main/java/com/angcyo/core/component/accessibility/LogWindowAccessibilityInterceptor.kt | angcyo | 229,037,615 | false | null | package com.angcyo.core.component.accessibility
import android.accessibilityservice.AccessibilityService
import android.view.accessibility.AccessibilityEvent
import android.view.accessibility.AccessibilityNodeInfo
import android.widget.Toast
import com.angcyo.core.BuildConfig
import com.angcyo.core.component.accessibi... | 0 | null | 6 | 5 | e1aeea2a677b585561879f3cdb0be6b1c6d1d458 | 9,369 | UICore | MIT License |
base/src/main/kotlin/seed/security/ForwardAuthorization.kt | NoumenaDigital | 638,984,160 | false | null | package seed.security
import com.noumenadigital.platform.engine.client.AuthorizationProvider
import com.noumenadigital.platform.engine.values.ClientPartyValue
import org.http4k.core.Request
interface ForwardAuthorization {
fun party(request: Request): ClientPartyValue
fun forward(request: Request): Authorizat... | 0 | Kotlin | 0 | 0 | 5b3895569f4e2a26a6c73229cd32a3d15539a80c | 380 | sbp-dxd-m3 | Apache License 2.0 |
feature-governance-impl/src/main/java/io/novafoundation/nova/feature_governance_impl/domain/track/Mappers.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7662683, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_governance_impl.domain.track
import io.novafoundation.nova.feature_governance_api.data.network.blockhain.model.TrackInfo
import io.novafoundation.nova.feature_governance_api.domain.track.Track
fun mapTrackInfoToTrack(trackInfo: TrackInfo): Track {
return Track(trackInfo.id, ... | 19 | Kotlin | 5 | 9 | 651db6927cdc6ff89448c83d451c84bda937e9fc | 338 | nova-wallet-android | Apache License 2.0 |
src/jvmMain/kotlin/tools/empathy/libro/server/tenantization/Plugin.kt | ontola | 624,799,212 | false | null | @file:UseSerializers(UrlSerializer::class)
package tools.empathy.libro.server.tenantization
import io.ktor.client.plugins.ResponseException
import io.ktor.http.HttpStatusCode
import io.ktor.http.URLBuilder
import io.ktor.http.URLProtocol
import io.ktor.http.Url
import io.ktor.server.application.Application
import io.... | 0 | Kotlin | 0 | 0 | 2e9fa6622e00ebf5ffd1cf6156e8abd774430f7e | 6,786 | libro-cache | MIT License |
tst/adventofcode/day09/SolutionTest.kt | bstoney | 574,187,310 | false | {"Kotlin": 27851} | package adventofcode.day09
import org.junit.jupiter.api.Test
class SolutionTest {
@Test
fun solve() {
Solution.solve()
}
}
| 0 | Kotlin | 0 | 0 | 81ac98b533f5057fdf59f08940add73c8d5df190 | 145 | fantastic-chainsaw | Apache License 2.0 |
app/src/main/java/com/mone/rtmp_exoplayer/MainActivity.kt | MortezaNedaei | 331,609,188 | false | null | package com.mone.rtmp_exoplayer
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.EditText
import androidx.core.widget.addTextChangedListener
class MainActivity : AppCompatActivity() {
... | 1 | Kotlin | 2 | 8 | b8d909fbab19d5dc83afea5a120dc4d71fb31913 | 1,014 | RTMP-ExoPlayer | Apache License 2.0 |
platform_robovm/src/main/java/y2k/noria/robovm/components/Box.kt | y2k | 136,721,211 | true | {"Kotlin": 104868, "Java": 1211, "HTML": 423} | package y2k.noria.robovm.components
import noria.*
import noria.components.BoxProps
import noria.components.Container
import y2k.noria.robovm.NPanel
class PanelProps : HostProps() {
var flex by value<BoxProps>()
var children by elementList<MutableList<NElement<*>>>()
}
val Panel = HostComponentType<PanelProp... | 0 | Kotlin | 0 | 2 | ef6d146126aa301d8828e61c0eab544770ed80ad | 564 | noria-kt | Apache License 2.0 |
app/src/main/java/com/laaptu/sliding/model/Places.kt | androidlife | 128,480,290 | false | null | package com.laaptu.sliding.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Location(@SerializedName("latitude") val latitude: Double,
@SerializedName("longitude") val longitude: Double) : Parcelable
... | 1 | null | 1 | 1 | 79aeb64cd9d59f8b125a9eb792745dce57f99b79 | 953 | slidingmenu | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.