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/job4j/parser/LexToken.kt | peterarsentev | 668,328,884 | false | null | package ru.job4j.parser
import ru.job4j.parser.GrammarSQL.Companion.FROM
import ru.job4j.parser.GrammarSQL.Companion.FULL
import ru.job4j.parser.GrammarSQL.Companion.GROUP
import ru.job4j.parser.GrammarSQL.Companion.HAVING
import ru.job4j.parser.GrammarSQL.Companion.JOIN
import ru.job4j.parser.GrammarSQL.Companion.LEF... | 0 | Kotlin | 0 | 0 | d12491147e58781a82f80ec6bb76768dacf25748 | 4,287 | job4j_sql_parser | Apache License 2.0 |
app/src/main/java/com/example/passwordmanager/MainActivity.kt | mrinmoyxb | 752,915,107 | false | {"Kotlin": 136244} | package com.example.passwordmanager
import android.graphics.Color
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import com.example.passwordmanager.NavigationBar.MainScreen... | 0 | Kotlin | 0 | 1 | 712d22daedac0e859930df771287cccb49ffa0f8 | 914 | Anzen-PasswordsVault | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/KoFi.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
impor... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,939 | compose-icons | MIT License |
core/src/main/java/com/oscarg798/amiibowiki/core/utils/SavedInstanceViewModelFactory.kt | oscarg798 | 275,942,605 | false | null | /*
* Copyright 2021 Oscar David Gallon Rosero
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis... | 0 | Kotlin | 3 | 10 | e3f7f3f97af3ffb4998a3e8d4cb2144c82a5221c | 1,780 | AmiiboWiki | MIT License |
proj-js/src/jsTest/kotlin/io/github/alexoooo/sample/proj/model/ProjJsTestModel.kt | alexoooo | 251,178,920 | false | {"Kotlin": 26068, "JavaScript": 473, "HTML": 209} | package io.github.alexoooo.sample.proj.model
data class ProjJsTestModel(
val name: String,
val number: Double
) | 1 | Kotlin | 0 | 0 | 315a248515d9d646367fdcdd9457d4040b0d775a | 121 | sample-multiplatform-boot-react | Creative Commons Zero v1.0 Universal |
src/main/kotlin/io/github/cclassen/oakdsl/model/Components.kt | c-classen | 398,049,382 | false | null | package io.github.cclassen.oakdsl.model
import io.github.cclassen.oakdsl.model.endpoint.Parameter
import io.github.cclassen.oakdsl.model.endpoint.response.Response
import io.github.cclassen.oakdsl.model.schema.Schema
import io.github.cclassen.oakdsl.serialize.YamlSerializer
class Components: YamlMapBase() {
val ... | 0 | Kotlin | 0 | 2 | 71bc5702058443c816a8e355052eb601ed0555ce | 1,469 | oak-dsl | MIT License |
app/src/main/java/com/xda/nachonotch/data/MainPageLink.kt | zacharee | 127,220,159 | false | {"Kotlin": 102537, "AIDL": 103} | package com.xda.nachonotch.data
import android.content.Context
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
data class MainPageLink(
@DrawableRes
val icon: Int,
@StringRes
val title: Int,
@StringRes
val desc: Int,
val link: String = "",
val isEmail: Boole... | 4 | Kotlin | 17 | 78 | cbea9323fd43d5f84f39c7999bb2318ddcfedfe1 | 380 | NachoNotch | MIT License |
app/src/main/java/com/xda/nachonotch/data/MainPageLink.kt | zacharee | 127,220,159 | false | {"Kotlin": 102537, "AIDL": 103} | package com.xda.nachonotch.data
import android.content.Context
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
data class MainPageLink(
@DrawableRes
val icon: Int,
@StringRes
val title: Int,
@StringRes
val desc: Int,
val link: String = "",
val isEmail: Boole... | 4 | Kotlin | 17 | 78 | cbea9323fd43d5f84f39c7999bb2318ddcfedfe1 | 380 | NachoNotch | MIT License |
core/src/main/java/com/nimbusframework/nimbuscore/eventabstractions/HttpEvent.kt | thomasjallerton | 163,180,980 | false | {"Kotlin": 1124638, "Java": 130052, "JavaScript": 12405, "CSS": 297, "Dockerfile": 148} | package com.nimbusframework.nimbuscore.eventabstractions
import java.util.*
data class HttpEvent(
/**
* Headers in the request. Keys are always lowercase.
*/
val headers: Map<String, String>? = mapOf(),
val queryStringParameters: Map<String, String>? = mapOf(),
val pa... | 4 | Kotlin | 4 | 39 | 5c3325caaf3fe9de9ffad130fd1e773c6f680e89 | 650 | nimbus-framework | MIT License |
packages/cactus-cmd-api-server/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/HealthCheckResponse.kt | hyperledger | 216,610,150 | false | null | /**
* Hyperledger Cactus API
*
* Interact with a Cactus deployment through HTTP.
*
* The version of the OpenAPI document: 0.0.1
*
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*/
@file:Suppress(
"ArrayInDataClass... | 488 | TypeScript | 221 | 263 | 4b5ee095b07f7c6a4290cfb85280d825672ce394 | 842 | cacti | Apache License 2.0 |
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/PluginStructureProvider.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78346118, "Java": 6692370, "Swift": 4062767, "C": 2609482, "C++": 1962762, "Objective-C++": 169966, "JavaScript": 138328, "Python": 59488, "Shell": 35024, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.api.standalone.base.project.structure
import com.intellij.core.CoreAppl... | 182 | Kotlin | 5617 | 47,637 | d257153a50bdaa761d54bbc9fd1c5d78a3769f0f | 5,624 | kotlin | Apache License 2.0 |
app/src/main/java/endroad/dl/view/item/ScheduleItem.kt | RasM24 | 225,888,742 | false | null | package endroad.dl.view.item
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mikepenz.fastadapter.items.ModelAbstractItem
import endroad.dl.R
import endroad.dl.models.Schedule
class ScheduleItem(item: Schedule) : ModelAbstractItem<Schedule, ScheduleI... | 0 | Kotlin | 0 | 0 | da1d94eb021f452df2dae71a96b26c49ed8199bc | 777 | Archive-Economicus | Apache License 2.0 |
src/jvmTest/kotlin/dev/evo/kafka/connect/restclient/ClientJvmTests.kt | anti-social | 166,968,756 | false | null | package dev.evo.kafka.connect.restclient
import java.net.ConnectException
import io.ktor.client.engine.mock.MockEngine
import io.ktor.http.Url
import kotlin.test.Test
import kotlin.test.assertTrue
import kotlinx.coroutines.runBlocking
class ClientJvmTests {
@Test
fun testInfoWithConnectException() = runBlo... | 0 | Kotlin | 0 | 0 | 1e4378cc76491d5a82a70222a2464c38955c2410 | 633 | kafka-connect-rest-client | Apache License 2.0 |
app/src/main/java/com/example/newwriters/ui/adapter/IntroSliderAdapter.kt | Gopa11313 | 363,574,585 | false | {"Kotlin": 143107} | package com.example.newwriters.ui.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.newwriters.R
import com.example.newwriters.ui.model.Intr... | 0 | Kotlin | 0 | 0 | 5e92557c4ca701868e8f9e86bdeec2391dde6eb4 | 1,477 | NewWriters-Android- | MIT License |
src/cn/nekocode/plugin/parcelablegenerator/utils/KtClassHelper.kt | wznshuai | 95,626,242 | true | {"Java": 43656, "Kotlin": 5502} | /*
* Copyright (C) 2016 Nekocode (https://github.com/nekocode)
*
* 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... | 0 | Java | 0 | 1 | db42a658ba1b4f8b38ac7e3851060d4122858728 | 5,502 | android-parcelable-intellij-plugin-kotlin | Apache License 2.0 |
android-realm-core/src/main/java/com/curiosityio/androidrealm/manager/RealmInstanceManager.kt | curiosityio | 81,237,125 | false | null | package com.curiosityio.androidrealm.manager
import android.content.Context
import android.preference.PreferenceManager
import com.curiosityio.androidrealm.config.AndroidRealmConfig
import io.realm.Realm
import io.realm.RealmConfiguration
import io.realm.FieldAttribute
import java.util.*
object RealmInstanceManager {... | 0 | Kotlin | 0 | 0 | a241703f40f19464167c0e156dad8e7cb1636aef | 1,333 | AndroidRealm | MIT License |
android/app_data/src/test/java/work/shion/xapprecipe_data/apiConnpass/v1/ApiEndpointSample.kt | tshion | 261,409,412 | false | null | package work.shion.xapprecipe_data.apiConnpass.v1
import com.squareup.moshi.Moshi
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import kotlinx.coroutines.runBlocking
import org.junit.Test
import retrofit2.Converter
import retrofit2.Retrofit
... | 6 | Kotlin | 0 | 0 | c0604fd03c4eb9127529c9ae6a66105ae2dfd957 | 1,597 | XAppRecipe | MIT License |
android/app_data/src/test/java/work/shion/xapprecipe_data/apiConnpass/v1/ApiEndpointSample.kt | tshion | 261,409,412 | false | null | package work.shion.xapprecipe_data.apiConnpass.v1
import com.squareup.moshi.Moshi
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import kotlinx.coroutines.runBlocking
import org.junit.Test
import retrofit2.Converter
import retrofit2.Retrofit
... | 6 | Kotlin | 0 | 0 | c0604fd03c4eb9127529c9ae6a66105ae2dfd957 | 1,597 | XAppRecipe | MIT License |
decoder/src/main/kotlin/net/redwarp/gif/decoder/utils/InputStreamX.kt | cortinico | 331,434,416 | false | {"Gradle Kotlin DSL": 8, "Markdown": 4, "Java Properties": 1, "Shell": 2, "Text": 3, "Ignore List": 2, "Batchfile": 2, "TOML": 2, "Rust": 2, "JSON": 1, "C": 1, "INI": 5, "YAML": 3, "Proguard": 4, "Kotlin": 44, "XML": 15, "Gradle": 2, "Java": 1} | package net.redwarp.gif.decoder.utils
import java.io.InputStream
internal fun InputStream.readShortLe(): Short {
return (read() or (read() shl 8)).toShort()
}
internal fun InputStream.readByte(): Byte = read().toByte()
internal fun InputStream.readAsciiString(byteCount: Int): String {
val buffer = StringBui... | 1 | null | 1 | 1 | a805dad224435f5abfbf9bb4743f8c7a35200f08 | 427 | gifdecoder | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/sonar/android/app/notifications/reminders/ReminderBroadcastFactory.kt | nhsx | 261,523,644 | false | null | /*
* Copyright © 2020 NHSX. All rights reserved.
*/
package uk.nhs.nhsx.sonar.android.app.notifications.reminders
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import javax.inject.Inject
class ReminderBroadcastFactory @Inject constructor(private val context: Context)... | 0 | Kotlin | 146 | 793 | ebcb3221b89333d9f555592aebc934d06608d784 | 724 | COVID-19-app-Android-BETA | MIT License |
app/src/main/java/com/newbiechen/nbreader/data/repository/impl/IBookDetailRepository.kt | newbiechen1024 | 239,496,581 | false | null | package com.newbiechen.nbreader.data.repository.impl
import com.newbiechen.nbreader.data.entity.NetBookDetailWrapper
import io.reactivex.Flowable
/**
* author : newbiechen
* date : 2019-08-14 18:28
* description :书籍详细信息仓库 (NetBookDetail)
*/
interface IBookDetailRepository {
fun getBookDetail(bookId: Strin... | 5 | Kotlin | 8 | 37 | e423b13915578ab95c1683bfa7a70e59f19f2eab | 356 | NBReader | Apache License 2.0 |
src/main/kotlin/org/seekerwing/aws/sqsconsumer/sqs/MessageDeleter.kt | SeekerWing | 192,428,451 | false | null | package org.seekerwing.aws.sqsconsumer.sqs
import kotlinx.coroutines.future.await
import org.seekerwing.aws.sqsconsumer.model.Queue
import software.amazon.awssdk.services.sqs.model.DeleteMessageBatchRequest
import software.amazon.awssdk.services.sqs.model.DeleteMessageBatchRequestEntry
import software.amazon.awssdk.se... | 13 | Kotlin | 6 | 25 | d318ed81e339f7ed1601eb6b8f0b2c969201b088 | 1,073 | aws-sqs-consumer | Apache License 2.0 |
app/src/main/java/com/example/spygamers/services/group/body/JoinGroupBody.kt | Juicy-Lemonberry | 748,985,682 | false | {"Kotlin": 257724} | package com.example.spygamers.services.group.body
import com.google.gson.annotations.SerializedName
data class JoinGroupBody (
@SerializedName("auth_token")
val authToken: String,
@SerializedName("group_id")
val groupID: Int,
) | 3 | Kotlin | 2 | 1 | 9512696751a6c7dc5e0361f43b3b08097208ea42 | 245 | SpyGamers-App | MIT License |
app/src/main/java/com/example/spygamers/services/group/body/JoinGroupBody.kt | Juicy-Lemonberry | 748,985,682 | false | {"Kotlin": 257724} | package com.example.spygamers.services.group.body
import com.google.gson.annotations.SerializedName
data class JoinGroupBody (
@SerializedName("auth_token")
val authToken: String,
@SerializedName("group_id")
val groupID: Int,
) | 3 | Kotlin | 2 | 1 | 9512696751a6c7dc5e0361f43b3b08097208ea42 | 245 | SpyGamers-App | MIT License |
src/main/kotlin/com/gga/restful/errors/exceptions/FileException.kt | gabrielgoisandrade | 336,460,254 | false | null | package com.gga.restful.errors.exceptions
class FileException(message: String) : RuntimeException(message) | 0 | Kotlin | 0 | 0 | 3a1adab3d2dfb5d42b1bc3aa2add6633e3b5da41 | 107 | spring-boot-restful | Apache License 2.0 |
presentation/src/main/java/com/mohaeyo/mohae/viewmodel/main/place/PlaceSearchViewModelFactory.kt | mohae-team | 203,272,746 | false | null | package com.mohaeyo.mohae.viewmodel.main.place
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.mohaeyo.domain.usecase.DisLikePlaceInfoUseCase
import com.mohaeyo.domain.usecase.GetPlaceInfoUseCase
import com.mohaeyo.domain.usecase.LikePlaceInfoUseCase
import com.mohaeyo.mohae.... | 0 | Kotlin | 0 | 7 | 8cb78fbb241fce9c6fbbbbf1ea22a7b9102c475d | 1,002 | MoHae-Android | MIT License |
app/src/main/java/com/tunde/techcognitosocial/ui/main/profile/PostFragment.kt | t2dbabz | 498,427,568 | false | null | package com.tunde.techcognitosocial.ui.main.profile
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 androidx.core.os.bundleOf
import androidx.fragment.app.activityViewModels
import an... | 0 | Kotlin | 0 | 1 | 73872e40bb4f40d6d14ad992753eabec82b4393f | 3,545 | TechCognito-Social | Apache License 2.0 |
app/src/main/java/com/buildertrend/factfinder/database/FactDao.kt | mcasper3 | 138,596,415 | false | {"Kotlin": 8694} | package com.buildertrend.factfinder.database
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Delete
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
import io.reactivex.Flowable
@Dao
interface FactDao {
@Query("SELECT * FROM facts")
fun getA... | 1 | Kotlin | 0 | 0 | 233f5bb9bca59bab4ea252fdc19052e5a37e3601 | 435 | FactFinder | Apache License 2.0 |
config/src/test/kotlin/org/springframework/security/config/web/servlet/headers/HttpPublicKeyPinningDslTests.kt | lenxin | 310,797,201 | true | {"INI": 18, "Shell": 7, "Batchfile": 1, "Java": 2837, "SQL": 14, "HTML": 34, "CSS": 17, "Gradle Kotlin DSL": 2, "Kotlin": 138, "Java Server Pages": 49, "Java Properties": 14, "JavaScript": 15, "Python": 1, "PLSQL": 1, "Markdown": 4, "Ruby": 2} | package org.springframework.security.config.web.servlet.headers
import org.assertj.core.api.Assertions
import org.junit.Rule
import org.junit.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.sec... | 0 | Java | 0 | 0 | 9cc4bd14b66afcb0142c9a0df35738342a5eeaa4 | 7,012 | spring-security | Apache License 2.0 |
dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/dataformats/SwiftMtDataFormatDsl.kt | dhis2 | 598,577,710 | true | {"Groovy": 164, "Text": 249, "Shell": 20, "Maven POM": 587, "Batchfile": 4, "YAML": 74, "Markdown": 26, "Git Attributes": 1, "XML": 1786, "Ignore List": 19, "JSON": 2558, "Git Config": 1, "Java": 21541, "Java Properties": 1060, "AsciiDoc": 1303, "Kotlin": 495, "JavaScript": 32, "OASv3-json": 19, "Dockerfile": 4, "JAR M... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 | Java | 0 | 1 | 65511a265752d23f5bbf4bb32cb3438c1d535f98 | 1,808 | camel | Apache License 2.0 |
server/src/main/java/de/zalando/zally/rule/SecureWithOAuth2Rule.kt | dexterogieosahon | 97,539,628 | true | {"YAML": 7, "Markdown": 4, "Text": 4, "Ignore List": 5, "CODEOWNERS": 1, "Gradle": 4, "Shell": 5, "Batchfile": 2, "Java": 87, "OASv2-yaml": 18, "Java Properties": 2, "XML": 1, "Go": 27, "OASv2-json": 14, "JSON": 14, "Dockerfile": 1, "Kotlin": 75, "SQL": 1} | package de.zalando.zally.rule
import de.zalando.zally.violation.Violation
import de.zalando.zally.violation.ViolationType
import io.swagger.models.Swagger
import org.springframework.stereotype.Component
@Component
class SecureWithOAuth2Rule : AbstractRule() {
override val title = "Secure Endpoints with OAuth 2.0"... | 0 | Java | 0 | 0 | 82a4072934f92f1b4986c824a63d971710860ffb | 884 | zally | MIT License |
zj-api/src/main/java/com/zj/api/call/observable/CallExecuteObservableBase.kt | ZBL-Kiven | 683,914,900 | false | {"Java": 215393, "Kotlin": 124301} | package com.zj.api.call.observable
import com.zj.api.adapt.AdapterPendingData
import com.zj.api.adapt.HandledException
import com.zj.api.base.BaseErrorHandlerObservable
import com.zj.api.exception.ApiException
import com.zj.api.interfaces.ResponseHandler
import com.zj.api.utils.Constance
import io.reactivex.Observer
i... | 1 | null | 1 | 1 | c66ce5dd349cd3382a789188ef9b2ff17da22aad | 3,020 | ZApi | The Unlicense |
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/api/adapters/publicapi/outputs/ControlUnitResourceDataOutput.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.infrastructure.api.adapters.publicapi.outputs
import fr.gouv.cacem.monitorenv.domain.entities.controlUnit.ControlUnitResourceEntity
data class ControlUnitResourceDataOutput(
val id: Int,
val controlUnitId: Int,
val isArchived: Boolean,
val name: String,
val note: S... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 1,101 | monitorenv | MIT License |
app/src/main/java/com/example/motostranacompose/domain/use_case/dashboard/GetDashboardContents.kt | FunnyRider34Rus | 602,934,577 | false | null | package com.example.motostranacompose.domain.use_case.dashboard
import com.example.motostranacompose.domain.repository.DashboardContentRepository
class GetDashboardContents(private val dashboardContentRepository: DashboardContentRepository) {
suspend operator fun invoke() = dashboardContentRepository.getAll()
} | 0 | Kotlin | 0 | 0 | c9edf33abec1ff1b550543114aafa0de4e136092 | 318 | MotoStranaCompose | Apache License 2.0 |
compiler/testData/diagnostics/tests/labels/kt591.kt | JakeWharton | 99,388,807 | false | null | //KT-591 Unresolved label in valid code
fun test() {
val <!UNUSED_VARIABLE!>a<!> = @a{(Int?).() ->
if (this != null) {
val <!UNUSED_VARIABLE!>b<!> = {String.() ->
<!DEBUG_INFO_SMARTCAST!>this@a<!>.times(5) // @a Unresolved
}
}
}
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 295 | kotlin | Apache License 2.0 |
ml-development-tools/src/main/kotlin/com/marklogic/client/tools/fnclassgen.kt | marklogic | 17,642,544 | false | {"Java": 9892316, "Kotlin": 153344, "JavaScript": 64614, "XQuery": 55551, "XSLT": 13897, "HTML": 374, "Shell": 30} | /*
* Copyright © 2024 MarkLogic Corporation. All Rights Reserved.
*/
package com.marklogic.client.tools
import com.marklogic.client.tools.proxy.Generator
import kotlin.system.exitProcess
fun main(args: Array<String>) {
if (args.size == 2) {
Generator().serviceBundleToJava(args[0], args[1])
} else {
Syst... | 3 | Java | 73 | 58 | 8cc5a645ba61fbac621c6d608630b62a8409fadb | 417 | java-client-api | Apache License 2.0 |
androidApp/src/main/java/com/bobmitchigan/medialert/android/ui/MedicineDetailScreen.kt | drahovac | 630,622,910 | false | null | package com.bobmitchigan.medialert.android.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.lay... | 0 | Kotlin | 0 | 0 | ce556501733b66a5222d2da6772ba1178209e1b5 | 7,876 | MediAlert | MIT License |
libraries/stdlib/jvm/test/collections/MapBuilderTest.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.
*/
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
package test.collections
import kotlin.collections... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,722 | kotlin | Apache License 2.0 |
data/src/main/java/com/alexander_nevsky_temple/data/remote/services/IArticleService.kt | FredNekrasov | 769,311,990 | false | {"Kotlin": 22792} | package com.alexander_nevsky_temple.data.remote.services
import com.alexander_nevsky_temple.data.remote.dto.ArticleDto
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.GET
interface IArticleService {
@GET("/api/Article")
suspend fun getDtoList(): List<Articl... | 0 | Kotlin | 0 | 0 | 5ce138afa80dfa109b96252b3e4b3687de5010dc | 592 | GraduateWork | MIT License |
efficientdet_detector/app/src/main/java/com/example/efficientdet_detector/data/Detection.kt | SamedHrmn | 697,496,141 | false | {"Kotlin": 208518} | package com.example.efficientdet_detector.data
import android.graphics.RectF
data class Detection(
val boundingBox: RectF,
val detectedObjectName: String,
val confidenceScore: Float,
val tensorImageHeight: Int,
val tensorImageWidth: Int,
val inferenceTime:String,
) | 0 | Kotlin | 2 | 0 | e32b3f2c57496c288e5df2535e226b420c7f6c60 | 291 | android-compose-playground | MIT License |
common/src/main/kotlin/juuxel/adorn/fluid/FluidIngredient.kt | Juuxel | 182,782,106 | false | {"Kotlin": 547440, "Java": 27621} | package juuxel.adorn.fluid
import com.mojang.serialization.Codec
import com.mojang.serialization.codecs.RecordCodecBuilder
import net.minecraft.nbt.NbtCompound
import net.minecraft.network.PacketByteBuf
import java.util.Optional
/**
* A fluid ingredient for crafting.
*/
data class FluidIngredient(
val fluid: Fl... | 54 | Kotlin | 30 | 93 | 3d47e109812c8be26fc4fb581b9945c39ba6c96a | 1,630 | Adorn | MIT License |
kool-physics/src/commonMain/kotlin/de/fabmax/kool/physics/joints/Joint.kt | fabmax | 81,503,047 | false | {"Kotlin": 5710330, "C++": 3256, "CMake": 1870, "HTML": 1464, "JavaScript": 597} | package de.fabmax.kool.physics.joints
import de.fabmax.kool.math.Mat4f
import de.fabmax.kool.physics.RigidActor
import de.fabmax.kool.util.Releasable
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING")
expect class JointHolder
interface Joint : Releasable {
val joint: JointHolder
val bodyA: RigidAct... | 11 | Kotlin | 18 | 284 | b6ba1c0e1591ae46c77a5e3e61b2e1354a11f0b9 | 506 | kool | Apache License 2.0 |
data/src/main/java/com/sedsoftware/yaptalker/data/repository/YapSearchTopicsRepository.kt | alerm-sml | 123,927,915 | true | {"Kotlin": 509954, "IDL": 1260, "Shell": 1229, "Prolog": 939, "Java": 823, "CSS": 50} | package com.sedsoftware.yaptalker.data.repository
import com.sedsoftware.yaptalker.data.mappers.SearchPageResultsMapper
import com.sedsoftware.yaptalker.data.network.site.YapLoader
import com.sedsoftware.yaptalker.domain.entity.BaseEntity
import com.sedsoftware.yaptalker.domain.repository.SearchTopicsRepository
import... | 0 | Kotlin | 0 | 0 | 6c06171d2af44b0bb9b7809221b2f594d2354102 | 1,707 | YapTalker | Apache License 2.0 |
src/feature_details/src/test/java/com/gabrielbmoro/moviedb/details/domain/usecases/GetTrailersUseCaseImplTest.kt | gabrielbmoro | 574,746,759 | false | null | package com.gabrielbmoro.moviedb.details.domain.usecases
import com.gabrielbmoro.moviedb.repository.MoviesRepository
import com.gabrielbmoro.moviedb.repository.model.VideoStream
import com.google.common.truth.Truth
import io.mockk.coVerify
import io.mockk.every
import io.mockk.mockk
import kotlinx.coroutines.Experimen... | 8 | null | 2 | 38 | c4e38f070f250197e2c5c2b78952f79b2df0eefd | 3,671 | MovieDB-Android | MIT License |
app/src/main/java/com/items/bim/common/util/MediaStoreUtils.kt | losebai | 800,799,665 | false | {"Kotlin": 648062, "Java": 11455} | package com.items.bim.common.util
import android.annotation.SuppressLint
import android.content.ContentUris
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import com.items.bim.dto.FileEntity
import java.io.File
data class MediaResource(
val... | 0 | Kotlin | 0 | 0 | 325bd3c4d8d9c7717dafd3e8d346446f85e32b8a | 5,209 | B-Im | Apache License 2.0 |
app/src/main/java/com/reylar/aissistant/MessageState.kt | Reylaaar | 634,230,534 | false | null | package com.reylar.aissistant
import com.reylar.aissistant.model.ConversationResponse
data class MessageState(
val messages: List<ConversationResponse> = emptyList(),
val isLoading: Boolean = false,
val error: String? = null,
) | 0 | Kotlin | 0 | 1 | 7d8bb8773fbe3d7d2f64e8f514ab3d1a68909386 | 241 | AIssistant | MIT License |
src/main/kotlin/world/cepi/orchestra/api/util/ConstructorStreamParser.kt | Project-Cepi | 331,335,363 | false | null | package world.cepi.orchestra.api.util
import java.io.DataInput
import kotlin.reflect.KClass
import kotlin.reflect.full.primaryConstructor
import kotlin.reflect.full.valueParameters
object ConstructorStreamParser {
fun <T : Any> createInstance(dataInputStream: DataInput, clazz: KClass<T>): T? {
val constr... | 10 | Kotlin | 0 | 1 | 00a5a408202264359376d2206d5ca02ec76f301f | 1,622 | Orchestra | MIT License |
app/src/main/java/myapp/com/recycler_example/RecyclerAdapter2.kt | SawThanDar18 | 187,146,986 | false | null | package myapp.com.recycler_example
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* Created by User on 5/17/2019.
*/
class RecyclerAdapter2(private val meals:ArrayList<Meal>, private val mCon... | 0 | Kotlin | 0 | 0 | 6d300c488eacdc469d980bbd6173c16fee96c18a | 797 | Recycler_Example | Apache License 2.0 |
dbinspector/src/test/kotlin/com/infinum/dbinspector/domain/raw/interactors/GetRawQueryInteractorTest.kt | infinum | 17,116,181 | false | null | package com.infinum.dbinspector.domain.raw.interactors
import com.infinum.dbinspector.data.Sources
import com.infinum.dbinspector.domain.Interactors
import com.infinum.dbinspector.shared.BaseTest
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.mockk
import org.junit.jupiter.api.DisplayName
import org.... | 0 | Kotlin | 88 | 902 | 8d2d695ba35e7b0682e2dc235f5a852bf0fa4db3 | 1,146 | android_dbinspector | Apache License 2.0 |
src/main/kotlin/de/arraying/arraybot/command/Commands.kt | Arraying | 66,292,786 | false | null | package de.arraying.arraybot.command
import de.arraying.arraybot.Arraybot
import de.arraying.arraybot.command.templates.CustomCommand
import de.arraying.arraybot.command.templates.DefaultCommand
import de.arraying.arraybot.data.database.categories.GuildEntry
import de.arraying.arraybot.data.database.core.Category
impo... | 1 | Java | 8 | 24 | ff84da2750bea9cf98b0c27df95c431c20a97a78 | 4,337 | Arraybot | Apache License 2.0 |
src/main/kotlin/de/gmuth/ipp/attributes/ColorMode.kt | gmuth | 247,626,449 | false | {"Kotlin": 291690} | package de.gmuth.ipp.attributes
/**
* Copyright (c) 2020-2023 <NAME>
*/
import de.gmuth.ipp.core.IppAttribute
import de.gmuth.ipp.core.IppAttributeBuilder
import de.gmuth.ipp.core.IppAttributesGroup
import de.gmuth.ipp.core.IppException
import de.gmuth.ipp.core.IppTag.Keyword
// https://ftp.pwg.org/pub/pwg/candida... | 0 | Kotlin | 8 | 76 | 1501c3ae4aeefd4ce536cd7496abfd03b36e58ec | 1,349 | ipp-client-kotlin | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/grandexchange/GrandExchangeOffer.kt | communityus-branch | 196,093,910 | false | null | package gg.rsmod.plugins.content.grandexchange
import java.io.Serializable
/*
* Author: <NAME>
*
*
* This class is what is stored in the data/grandexchange_offers.dat file
*
* NOTE TO SELF !! ALL THE LOGIC IS DONE IN plugins/content/inter/grandexchange/serializers/BinaryPayload.kt
*
* Below is what is happeni... | 0 | Kotlin | 0 | 0 | 160bcc52f3a372d50c123c62a3b6f72dcc6c5bdf | 3,289 | Server | Apache License 2.0 |
span/src/main/java/com/arc/fast/span/FastImageSpanStyle.kt | Arcns | 579,397,531 | false | {"Kotlin": 254527} | package com.arc.fast.span
import android.content.Context
import android.graphics.drawable.Drawable
import android.graphics.drawable.InsetDrawable
import android.text.TextPaint
import android.text.style.CharacterStyle
import android.text.style.ClickableSpan
import android.text.style.ImageSpan
import android.view.View
... | 0 | Kotlin | 74 | 319 | b12a06ea1201a9b5a17e1a12f610a9d6cceaa1ec | 2,523 | arc-fast | Mulan Permissive Software License, Version 2 |
kotlin-antd/src/main/kotlin/antd/mention/MentionDsl.kt | rbargues | 302,350,324 | true | {"Kotlin": 1224294, "HTML": 1503} | package antd.mention
import kotlinext.js.*
import react.*
fun RBuilder.mention(handler: RHandler<MentionProps>) = child(MentionComponent::class, handler)
fun RBuilder.nav(handler: RHandler<NavProps>) = child(MentionComponent.Nav, jsObject {}, handler)
| 0 | null | 0 | 0 | 439ef1f01ffea759cf3fc51ede4e60a896cbfd87 | 254 | kotlin-js-wrappers | Apache License 2.0 |
app/src/main/java/com/zfs/httpdemo/AndroidViewModelPage.kt | wandersnail | 172,190,427 | false | {"Gradle": 4, "Java Properties": 2, "YAML": 1, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 15, "Kotlin": 14, "INI": 1, "Java": 56} | package com.zfs.httpdemo
/**
*
*
* date: 2020/3/29 12:29
* author: zengfansheng
*/
interface AndroidViewModelPage<VM : BaseAndroidViewModel> {
fun getViewModelClass(): Class<VM>
} | 0 | Java | 1 | 1 | 982dda09a0be0c0dd3e895c096ea21bb39c21d74 | 189 | easyhttp2 | Apache License 2.0 |
repo/src/main/java/de/schnettler/repo/ScrobbleRepository.kt | tchigher | 298,243,088 | true | {"Kotlin": 347370} | package de.schnettler.repo
import androidx.work.Constraints
import androidx.work.ExistingWorkPolicy
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequestBuilder
import androidx.work.WorkManager
import com.tfcporciuncula.flow.FlowSharedPreferences
import de.schnettler.database.daos.LocalTrackDao
impo... | 0 | null | 0 | 0 | b4a4589d56363cb8ad1f6262c3f79a1e5e4b419a | 6,008 | Compose-Scrobbler | Apache License 2.0 |
sdk/src/main/kotlin/io/datalbry/connector/sdk/state/jpa/entity/NodeRelationshipEntity.kt | datalbry | 356,173,596 | false | null | package io.datalbry.connector.sdk.state.jpa.entity
import java.io.Serializable
import java.util.*
import javax.persistence.Embeddable
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.IdClass
@Entity
@IdClass(NodeRelationshipEntityId::class)
data class NodeRelationshipEntity(
@I... | 2 | Kotlin | 0 | 0 | 5284b69ed00938aa6095d5b68308625c4c912512 | 498 | connector-sdk | Apache License 2.0 |
app/src/main/java/com/rahul/di/module/ActivityBuilderModule.kt | rahulkhurana0123 | 264,376,633 | false | null | package com.android.daggerandroid2
import com.rahul.ui.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
import javax.inject.Singleton
/**
* Created by <NAME> on 2020-05-03.
*/
@Module
abstract class ActivityBuilderModule{
@ContributesAndroidInjector
abstract fun contribut... | 0 | Kotlin | 0 | 0 | e01a49810ac838d30cd13815a3be96827a89b26b | 357 | GithubUserSearach | Apache License 2.0 |
src/main/kotlin/20. Valid Parentheses recursion.kts | ShreckYe | 206,086,675 | false | null | // This solution causes StackOverflowError
@Suppress("NOTHING_TO_INLINE")
class Solution {
fun isValid(s: String): Boolean =
cancelBrackets(s, 0) == s.length
companion object {
const val CANCELLATION_FAILS = -1
}
// Cancels brackets and return the index of the first character after wha... | 0 | Kotlin | 0 | 0 | 20e8b77049fde293b5b1b3576175eb5703c81ce2 | 1,639 | leetcode-solutions-kotlin | MIT License |
android/app/src/main/java/com/android/mealme/data/model/RestaurantReview.kt | UTN-FRBA-Mobile | 487,844,477 | false | {"Kotlin": 90097} | package com.android.mealme.data.model
data class RestaurantReview(
val score: Number,
val message: String
) | 0 | Kotlin | 0 | 0 | df474062ec9c51ea8b9537ff9584b821d202eade | 116 | MealMe | MIT License |
src/main/kotlin/com/app/features/todo/presentation/routes/GetTodosRoute.kt | AdamHavlicek | 511,786,665 | false | {"Kotlin": 58478} | package com.app.features.todo.presentation.routes
import com.app.core.routes.BaseRoute
import com.app.features.todo.domain.entities.TodoReadModel
import com.app.features.todo.domain.usecases.GetTodosUseCase
import org.springdoc.core.fn.builders.apiresponse.Builder
import org.springdoc.webflux.core.fn.SpringdocRouteBui... | 0 | Kotlin | 0 | 0 | 11211acba683a8f80c0ea77f7fe52d70de789be3 | 1,805 | spring-todo-ddd | Do What The F*ck You Want To Public License |
app/src/main/java/com/orbitalsonic/generalproject/utils/extensions/HelperExtension.kt | orbitalsonic | 538,026,493 | false | {"Kotlin": 27729} | package com.orbitalsonic.generalproject.utils.extensions
import android.app.Activity
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
fun Int.isValidPosition(list: List<Any>): Boolean {
return this != RecyclerView.NO_POSITION && list.isNotEmpty() && this < list.size
}
fun Activity?... | 0 | Kotlin | 5 | 4 | 79672ef0ba06b33827e4e7a4b3495c575359444b | 718 | General-Project | Apache License 2.0 |
app/src/main/java/id/avang/dunifood/room/MyDataBase.kt | avang9 | 671,100,506 | false | null | package id.avang.dunifood.room
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(version = 1 , entities = [Food::class] , exportSchema = false)
abstract class MyDataBase:RoomDatabase(){
abstract val foodDao:Deo
companion objec... | 0 | Kotlin | 0 | 0 | 20a348fae34e6c8040ba5ae7e496a1b477e3d33e | 794 | DuniFood | MIT License |
todoapp/android/todoapp/app/src/main/java/com/example/todolist/service/Navigator.kt | gimalay | 243,602,050 | false | {"Go Checksums": 2, "Text": 21, "Ignore List": 3, "Markdown": 2, "Go Module": 2, "Go": 31, "Protocol Buffer": 6, "Shell": 3, "Gradle": 4, "Java Properties": 2, "Batchfile": 1, "Proguard": 1, "Kotlin": 28, "XML": 19, "Java": 2, "OpenStep Property List": 2, "Swift": 11, "JSON": 3} | package com.example.todolist.service
import androidx.compose.Model
import com.example.todolist.model.ViewModelOuterClass.ViewModel
class Navigator {
sealed class Screen {
object Home : Screen()
class Article(val project: ViewModel.Home.Project) : Screen()
}
private val navigation: Navigat... | 1 | null | 1 | 1 | f182d2721c097ab1ee99d21296e6dd4db59c87d5 | 632 | octogo | MIT License |
app/src/main/java/com/ojhdtapp/parabox/extension/ws/remote/message_content/EFBText.kt | Parabox-App | 567,989,075 | false | null | package com.ojhdtapp.parabox.extension.ws.remote.message_content
import android.content.Context
import com.ojhdtapp.paraboxdevelopmentkit.messagedto.message_content.MessageContent
import com.ojhdtapp.paraboxdevelopmentkit.messagedto.message_content.PlainText
data class EFBText(
val text: String, override val type... | 0 | Kotlin | 0 | 2 | ae3827cdd33394b494b73951f28c483f89552b61 | 513 | parabox-extension-ws | Apache License 2.0 |
gluecodium/src/test/java/com/here/gluecodium/generator/java/JavaModelBuilderContainersTest.kt | Dschoordsch | 237,653,099 | false | null | /*
* Copyright (C) 2016-2019 HERE Europe B.V.
*
* 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... | 1 | null | 1 | 1 | a7b3833ce840284cadf968b6f8441888f970c134 | 15,500 | gluecodium | Apache License 2.0 |
library/src/main/java/io/github/chenfei0928/repository/local/BaseExpirationDateSerializer.kt | chenfei0928 | 130,954,695 | false | null | package io.github.chenfei0928.repository.local
import java.io.InputStream
import java.io.OutputStream
/**
* 数据保质期序列化
* @author ChenFei(<EMAIL>)
* @date 2019-09-10 09:35
*/
abstract class BaseExpirationDateSerializer<T>(
private val serializer: LocalSerializer<T>
) : LocalSerializer<T> by serializer {
ove... | 0 | Kotlin | 0 | 2 | 622dbf879e5d57ed8d3865442a137daf77400950 | 1,757 | Util | MIT License |
app/src/main/java/ru/nbsp/pushka/presentation/alert/detail/adapter/AlertActionsAdapter.kt | dimorinny | 51,604,851 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 11, "Java": 14, "XML": 102, "Kotlin": 258} | package ru.nbsp.pushka.presentation.alert.detail.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import ru.nbsp.pushka.R
import ru.nbsp.pushka.presentation.core... | 0 | Kotlin | 0 | 0 | 71ac416b33f628bbcec12fad4776f7abc242c882 | 1,934 | pushka-android | MIT License |
shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsDisplayModeViewItem.kt | soniccat | 302,971,014 | false | null | package com.aglushkov.wordteacher.shared.features.definitions.vm
import dev.icerock.moko.resources.desc.StringDesc
import com.aglushkov.wordteacher.shared.general.item.BaseViewItem
class DefinitionsDisplayModeViewItem(
val partsOfSpeechFilterText: StringDesc,
val canClearPartsOfSpeechFilter: Boolean,
mode... | 0 | Kotlin | 1 | 3 | f0459ec863224a13fe6bcf57ade1387a53ec3c0d | 866 | WordTeacher | MIT License |
cpp/src/main/kotlin/dev/paulshields/assistantview/lang/CppSourceFileInterpreter.kt | Pkshields | 445,326,540 | false | {"Kotlin": 113569} | package dev.paulshields.assistantview.lang
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
import com.jetbrains.cidr.lang.psi.impl.OCFileImpl
class CppSourceFileInterpreter : SourceFileInterpreter {
override fun parseFile(psiFile: PsiFile, project: Project) =
if (psiFile is OCF... | 0 | Kotlin | 0 | 1 | d4a9cb5ec8877522b007649898e5bfc071ba8055 | 380 | AssistantView | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/LeaderboardOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/LeaderboardOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val LeaderboardOutlined: SvgIconComponent
| 10 | Kotlin | 145 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 220 | kotlin-wrappers | Apache License 2.0 |
KeyManager-gRPC/src/main/kotlin/br/com/zup/pix/client/bcb/model/enums/OwnerType.kt | antenorZ | 408,604,418 | true | {"Kotlin": 37009} | package br.com.zup.pix.client.bcb.model.enums
enum class OwnerType {
NATURAL_PERSON, LEGAL_PERSON
} | 0 | Kotlin | 0 | 0 | bdeba15d6e1cc7f47527b28f0446078600f0316f | 104 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
minecraft/src/main/kotlin/me/wcaleniewolny/ayaya/minecraft/display/DisplayService.kt | WcaleNieWolny | 512,498,517 | false | null | package me.wcaleniewolny.ayaya.minecraft.display
import org.bukkit.entity.Player
interface DisplayService {
fun displayFrame(data: ByteArray)
fun init()
fun allPlayers(): List<Player>
}
| 6 | Rust | 1 | 1 | c4e8837c87e49e88e97dca5b0695f943a31a6399 | 200 | ProjectAyaya | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/HourglassEndSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,928 | compose-icons | MIT License |
infrastructure/src/test/kotlin/com/jvmhater/moduticket/configuration/TestR2dbcConfiguration.kt | jvm-hater | 587,725,795 | false | null | package com.jvmhater.moduticket.configuration
import com.jvmhater.moduticket.testcontainers.TestMySQLContainer
import io.r2dbc.spi.ConnectionFactories
import io.r2dbc.spi.ConnectionFactory
import io.r2dbc.spi.ConnectionFactoryOptions
import org.springframework.context.annotation.Bean
import org.springframework.context... | 4 | Kotlin | 0 | 0 | 33dcc1ee90d8e3effeb4b6bcbec4a0c542ab8369 | 1,366 | modu-ticket-backend | MIT License |
viewmodel-compose/src/androidMain/kotlin/com/hoc081098/kmp/viewmodel/compose/internal/getClassName.android.kt | hoc081098 | 593,616,264 | false | {"Kotlin": 290173, "Swift": 1584, "Shell": 377, "HTML": 297} | package com.hoc081098.kmp.viewmodel.compose.internal
import com.hoc081098.kmp.viewmodel.InternalKmpViewModelApi
import kotlin.reflect.KClass
@JvmSynthetic
@InternalKmpViewModelApi
public actual fun <T : Any> getCanonicalName(kClass: KClass<T>): String? =
kClass.qualifiedName
| 12 | Kotlin | 6 | 127 | cc8f5ae5a464a3178fb6191e8e854ba2dd34dde7 | 280 | kmp-viewmodel | MIT License |
library/src/test/kotlin/ru/kontur/kinfra/kfixture/data/objects/random1/Stranger.kt | skbkontur | 212,616,062 | false | null | package ru.kontur.kinfra.kfixture.data.objects.random1
data class Stranger(
val ability: Int,
val accident: String,
val accurate: Double,
val adventure: String,
val animal: String,
val are: Double,
val author: Int,
val away: Boolean,
val bag: Boolean,
val balance: String,
va... | 7 | Kotlin | 1 | 1 | e1845e8c9737c66b63cfa49925ad3bb9c589fbd1 | 4,592 | KFixture | MIT License |
lib_mangax/src/main/kotlin/com/crow/mangax/ui/text/AttrTextFrameConfig.kt | crowforkotlin | 610,636,509 | false | null | package com.crow.mangax.ui.text
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
data class AttrTextFrameConfig(
val mLeft: Boolean,
val mTop: Boolean,
val mRight: Boolean,
val mBottom: Boolean,
val mLineWidth... | 17 | null | 30 | 467 | 14745e7c9125ddbac00b20365dba22b9231d51e1 | 802 | CopyMangaX | Apache License 2.0 |
core/designsystem/src/main/java/com/civciv/app/designsystem/theme/Color.kt | fatih-ozturk | 638,702,981 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | Kotlin | 0 | 1 | 1e130183618b01e89c0b7a5fc9cc9ec12e698558 | 3,827 | Civciv | Apache License 2.0 |
mapview/src/main/java/com/peterlaurence/mapview/api/LayoutApi.kt | thenghiapham | 291,764,899 | true | {"Kotlin": 134870} | @file:Suppress("unused")
package com.peterlaurence.mapview.api
import com.peterlaurence.mapview.MapView
import com.peterlaurence.mapview.util.AngleDegree
import kotlin.math.max
import kotlin.math.min
/**
* Adds extra padding around the map, making it possible to scroll past the end of the border
* even when zoomed... | 0 | null | 0 | 0 | 4c3b8bb528d97c3c17b4843af7d254b36ecfe95f | 3,204 | MapView | Apache License 2.0 |
app/src/main/java/com/shid/mosquefinder/Ui/Main/View/BlogActivity.kt | theshid | 275,887,919 | false | null | package com.shid.mosquefinder.Ui.Main.View
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider
import com.irozon.sneaker.Sneaker
import com.shid.mosquefinder.ConnectivityState... | 0 | Kotlin | 0 | 1 | a904de7293b41002d8eb3d7ba40b6398b08be9d3 | 3,834 | Mosque-Finder | The Unlicense |
game/src/main/kotlin/gg/scala/cgs/game/listener/CgsGameGeneralListener.kt | GrowlyX | 462,082,675 | false | null | package gg.scala.cgs.game.listener
import gg.scala.cgs.common.CgsGameEngine
import gg.scala.cgs.common.states.CgsGameState
import gg.scala.cgs.common.menu.CgsGameSpectateMenu
import gg.scala.lemon.cooldown.CooldownHandler
import gg.scala.lemon.cooldown.type.PlayerStaticCooldown
import org.bukkit.Material
import org.bu... | 0 | Kotlin | 1 | 9 | 42c87232c394aaed3eeb5f2c2a175da74662011b | 5,014 | cgs | MIT License |
2220.Minimum Bit Flips to Convert Number.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun minBitFlips(start: Int, goal: Int): Int {
var t = start xor goal
var ans = 0
while (t != 0) {
ans += t and 1
t = t shr 1
}
return ans
}
}
| 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 204 | kotlin-leetcode | MIT License |
app/src/main/java/ru/tech/imageresizershrinker/domain/use_case/edit_settings/ToggleDynamicColorsUseCase.kt | T8RIN | 478,710,402 | false | {"Kotlin": 3715730, "Java": 466004, "C": 5410, "CMake": 1732} | package ru.tech.imageresizershrinker.domain.use_case.edit_settings
import ru.tech.imageresizershrinker.domain.repository.SettingsRepository
import javax.inject.Inject
class ToggleDynamicColorsUseCase @Inject constructor(
private val settingsRepository: SettingsRepository
) {
suspend operator fun invoke() = se... | 20 | Kotlin | 77 | 979 | 7d164a02c463afede47c785f8b182c954abfcde9 | 360 | ImageToolbox | Apache License 2.0 |
src/main/java/org/kman/jobintentservicex/JobIntentServiceX.kt | kmansoft | 297,942,626 | false | null | package org.kman.jobintentservicex
import android.annotation.TargetApi
import android.app.job.*
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.os.*
import android.util.Log
import android.util.SparseArray
import java.util.concurrent.Executor
import java.... | 1 | Kotlin | 1 | 3 | cf2a11186633eceba6a5d0083c5f81a7ad7ec3fe | 7,253 | jobintentservicex | Apache License 2.0 |
app/web3proxy/src/main/kotlin/io/hamal/app/web3proxy/arbitrum/http/ArbitrumController.kt | hamal-io | 622,870,037 | false | {"Kotlin": 3316689, "C": 1401511, "TypeScript": 450023, "Lua": 193995, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 5832, "SCSS": 5191, "CMake": 2838, "CSS": 1626, "HTML": 1245, "Shell": 993} | package io.hamal.app.web3proxy.arbitrum.http
import io.hamal.app.web3proxy.arbitrum.handler.HandleArbitrumRequest
import io.hamal.lib.common.hot.HotArray
import io.hamal.lib.common.hot.HotNode
import io.hamal.lib.common.hot.HotObject
import io.hamal.lib.web3.evm.chain.arbitrum.domain.ArbitrumRequest
import io.hamal.li... | 44 | Kotlin | 0 | 0 | 1c9b1ad3368823ad9c339b6a56532a602cef7c63 | 1,922 | hamal | Creative Commons Zero v1.0 Universal |
src/test/kotlin/uk/gov/justice/digital/hmpps/nomisprisonerapi/helper/builders/AddressPhone.kt | ministryofjustice | 444,895,409 | false | {"Kotlin": 3408472, "PLSQL": 337743, "Dockerfile": 1112} | package uk.gov.justice.digital.hmpps.nomisprisonerapi.helper.builders
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.nomisprisonerapi.jpa.AddressPhone
import uk.gov.justice.digital.hmpps.nomisprisonerapi.jpa.PersonAddress
im... | 0 | Kotlin | 2 | 0 | fa1a2a8e4cb3f8f10529a5aca94aa97b0b629a8c | 1,492 | hmpps-nomis-prisoner-api | MIT License |
app/src/test/java/tech/salroid/filmy/ExampleUnitTest.kt | salRoid | 64,316,425 | false | null | package tech.salroid.filmy
import org.junit.Assert
import org.junit.Test
import java.lang.Exception
import kotlin.Throws
/**
* To work on unit tests, switch the Test Artifact in the Build Variants view.
*/
class ExampleUnitTest {
@Test
@Throws(Exception::class)
fun addition_isCorrect() {
Assert.... | 3 | Kotlin | 180 | 733 | c6ac0c3b47964e552b8d44a0b586e1ce3b418a9a | 371 | Filmy | Apache License 2.0 |
waltid-did/src/commonMain/kotlin/id/walt/did/dids/registrar/local/cheqd/models/job/didstates/action/Secret.kt | walt-id | 701,058,624 | false | {"Kotlin": 1610030, "Vue": 322895, "TypeScript": 92162, "JavaScript": 11175, "Dockerfile": 5028, "Shell": 728, "CSS": 404} | package id.walt.did.dids.registrar.local.cheqd.models.job.didstates.action
import kotlinx.serialization.Serializable
import kotlin.js.ExperimentalJsExport
import kotlin.js.JsExport
@ExperimentalJsExport
@JsExport
@Serializable
data class Secret(
val signingResponse: List<String>
)
| 32 | Kotlin | 19 | 69 | 670e67041f18e58e55d0f1f09843cea7fe6e3425 | 288 | waltid-identity | Apache License 2.0 |
src/main/java/space/impact/space/api/world/atmosphere/PlanetFog.kt | GT-IMPACT | 596,182,208 | false | null | package space.impact.space.api.world.atmosphere
interface PlanetFog {
fun getFogDensity(x: Int, y: Int, z: Int): Float
fun getFogColor(x: Int, y: Int, z: Int): Int
} | 0 | Kotlin | 0 | 0 | bc08703a93b60d0150f38995c74f61f41613da20 | 174 | S.P.A.C.E | MIT License |
KotlinMultiplatform/XFullStack/server/src/main/kotlin/com/pradyotprakash/xfullstack/core/helpers/UserHelper.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2932498, "Dart": 1066884, "Python": 319755, "Rust": 180589, "Swift": 149003, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 8581, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprakash.xfullstack.core.helpers
import com.pradyotprakash.xfullstack.data.tweet.TweetDataSource
import com.pradyotprakash.xfullstack.data.user.UserDataSource
import di.SharedModulesDi
class UserHelper(
private val userDataSource: UserDataSource,
private val tweetDataSource: TweetDataSource,... | 0 | Kotlin | 11 | 24 | 4caa1e3995d2c51de8cc98183dd22486c4309292 | 814 | development_learning | MIT License |
app/src/main/java/dorin_roman/app/kongfujava/domain/repository/CodeRepository.kt | roma321m | 555,795,950 | false | {"Kotlin": 480911} | package dorin_roman.app.kongfujava.domain.repository
import dorin_roman.app.kongfujava.data.models.RequestState
import dorin_roman.app.kongfujava.domain.models.codes.PrivateCode
import dorin_roman.app.kongfujava.domain.models.codes.PublicCode
interface CodeRepository {
suspend fun createPublicCode(
publi... | 0 | Kotlin | 1 | 2 | 3c4f89aae10ca3f86e2cb6c1b0ecef3cb47729cd | 638 | Kong-Fu-Java | Apache License 2.0 |
ktx-androidx/src/main/java/com/ayvytr/ktx/ui/edittext/ChineseFilter.kt | Ayvytr | 101,852,993 | false | null | package com.ayvytr.ktx.ui.edittext
/**
* 中文筛选器.
* @author ['s GitHub](https://github.com/Ayvytr)
* @since 2.4.1
*/
class ChineseFilter: EmojiFilter() {
init {
BASE_REGEX = "^[\\u4E00-\\u9FA5]+$"
}
}
| 0 | Kotlin | 3 | 43 | 5dc7fbaade84963826ba8cc158a9f9ffa09e3c27 | 220 | ktx | Apache License 2.0 |
src/main/kotlin/com/alipay/sofa/koupleless/kouplelessidea/ui/TextPopupFactory.kt | koupleless | 783,180,038 | false | {"Kotlin": 840464, "Java": 26198, "Shell": 3994} | package com.alipay.sofa.koupleless.kouplelessidea.ui
import com.intellij.openapi.ui.popup.JBPopup
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.ui.components.JBLabel
import com.intellij.ui.components.JBTextArea
import java.awt.Dimension
import java.awt.event.KeyEvent
import java.awt.event.Key... | 1 | Kotlin | 1 | 2 | 371a738491d60019d9c25a131fab484ad8064fc2 | 1,403 | koupleless-idea | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/util/JacksonNullableKafkaSerializer.kt | navikt | 464,849,616 | false | null | package no.nav.syfo.utils
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com... | 3 | null | 3 | 2 | 6228b0c4df2b850f61df645e6315e271ad26ae70 | 1,297 | teamsykmelding-mock-backend | MIT License |
src/test/kotlin/de/qualersoft/robotframework/gradleplugin/configurations/RebotRobotConfigurationTest.kt | qualersoft | 367,071,447 | false | {"Gradle Kotlin DSL": 19, "AsciiDoc": 5, "YAML": 8, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 2, "RobotFramework": 8, "Kotlin": 35, "Gradle": 17, "XML": 2, "Java": 2, "Markdown": 3} | package de.qualersoft.robotframework.gradleplugin.configurations
import de.qualersoft.robotframework.gradleplugin.PLUGIN_ID
import de.qualersoft.robotframework.gradleplugin.extensions.RobotFrameworkExtension
import de.qualersoft.robotframework.gradleplugin.robotframework
import io.kotest.matchers.collections.shouldCon... | 2 | null | 3 | 1 | c5161bb8197ab087c31c64d47706244e7a78d78a | 5,138 | robotframework-gradle-plugin | Apache License 2.0 |
src/main/kotlin/de/achimonline/quickjinja/toolwindow/QuickJinjaToolWindowEditor.kt | 4ch1m | 828,457,937 | false | {"Kotlin": 58357} | package de.achimonline.quickjinja.toolwindow
import com.intellij.openapi.editor.EditorFactory
import com.intellij.openapi.editor.ex.EditorEx
import com.intellij.openapi.fileTypes.FileTypes
import com.intellij.openapi.project.Project
import com.intellij.ui.EditorTextField
import java.io.File
class QuickJinjaToolWindow... | 1 | Kotlin | 1 | 1 | 32bfc8ab8f5db812a3469129dd6f1ac11460e108 | 1,455 | intellij-quick-jinja | MIT License |
daemon/src/test/kotlin/dev/krud/boost/daemon/util/FileUtils.kt | krud-dev | 576,882,508 | false | null | package dev.krud.boost.daemon.util
object FileUtils {
fun loadJson(path: String): String? {
return javaClass
.classLoader
.getResourceAsStream(path)
?.readAllBytes()
?.toString(Charsets.UTF_8)
}
}
| 41 | TypeScript | 6 | 251 | 1f3db028ac7d60faa6c30daabbb41482e814d23f | 262 | ostara | Apache License 2.0 |
gremlin-kore/src/main/kotlin/org/apache/tinkerpop4/gremlin/process/traversal/lambda/ValueTraversal.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 4,929 | tinkerpop4 | Apache License 2.0 |
app/src/main/java/things/dev/MainActivityViewModel.kt | MasonFlint44 | 366,555,725 | false | null | package things.dev
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import things.dev.wifi.WifiScanResult
enum class FabAlignmentMode { CENTER, END, }
enum class FabIcon { NEXT, WIFI, }
class MainActivityViewModel : ViewModel() {
val pageIndex: MutableLiveData<Int> by lazy {
... | 0 | Kotlin | 0 | 0 | 9d24a49ab36918af0eb06ff3129defa58d850cfa | 914 | makethings-io-companion-app | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.