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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graphql-simple-bindings-boot-shell/src/test/kotlin/community/flock/graphqlsimplebindings/GraphqlSimpleBindingsApplicationTests.kt | flock-community | 197,765,392 | false | null | package community.flock.graphqlsimplebindings
import community.flock.graphqlsimplebindings.emitter.JavaEmitter
import community.flock.graphqlsimplebindings.emitter.KotlinEmitter
import community.flock.graphqlsimplebindings.emitter.ScalaEmitter
import community.flock.graphqlsimplebindings.emitter.TypeScriptEmitter
impo... | 2 | Kotlin | 1 | 2 | e35df5164ef0abe11b8473012c7f1797ace792fc | 2,529 | graphql-simple-bindings | MIT License |
saved-sites/saved-sites-store/src/main/java/com/duckduckgo/savedsites/store/SavedSitesRelationsDao.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2023 DuckDuckGo
*
* 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 ... | 62 | null | 868 | 3,302 | 9b7fda539c6d1c323a7cd5542767c4c492e628c8 | 3,665 | Android | Apache License 2.0 |
analysis/low-level-api-fir/testdata/inBlockModification/memberGetterWithBodyWithContractWithoutName.kt | HardFatal | 387,140,840 | false | null | import kotlin.contracts.contract
class A {
var : Int
ge<caret>t() {
contract {
req
}
fun doSmth(i: String) = 4
return doSmth("str")
}
set(value) = Unit
}
| 1 | null | 1 | 1 | 5424c54fae7b4836506ec711edc0135392b445d6 | 216 | kotlin | Apache License 2.0 |
src/main/kotlin/pieces/PieceType.kt | lwaschuk | 593,435,412 | false | null | package pieces
/**
* The various "classes" a chess piece can be
* @author Lukas Waschuk
*/
enum class PieceType {
EMPTY, PAWN, KNIGHT, BISHOP, ROOK, QUEEN, KING
} | 0 | Kotlin | 0 | 2 | 26379a4f73c703debabfe0e006ac8d3811d9ee71 | 170 | Kotlin-Command-Line-Chess | Apache License 2.0 |
simplified-analytics-api/src/main/java/org/nypl/simplified/analytics/api/AnalyticsConfiguration.kt | ThePalaceProject | 367,082,997 | false | {"Kotlin": 3308998, "JavaScript": 853788, "Java": 374503, "CSS": 65407, "HTML": 49220, "Shell": 5017, "Ruby": 178} | package org.nypl.simplified.analytics.api
import android.content.Context
import org.librarysimplified.http.api.LSHTTPClientType
/**
* General configuration for analytics systems.
*/
data class AnalyticsConfiguration(
/**
* An Android context, used by systems if necessary.
*/
val context: Context,
/*... | 1 | Kotlin | 4 | 8 | 95ea5f21c6408207eddccb7210721743d57a500f | 427 | android-core | Apache License 2.0 |
viewlegacyTests/src/androidMain/kotlin/tech/skot/view/tests/SKTestScreenViewProxy.kt | skot-framework | 235,318,194 | false | null | package tech.skot.view.tests
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.fragment.app.Fragment
import tech.skot.core.components.*
import tech.skot.core.components.presented.SKBottomSheetViewProxy
import tech.skot.core.components.presented.SKDialog... | 1 | null | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 2,142 | skot | Apache License 2.0 |
app/src/main/java/com/herry/test/app/main/MainFragment.kt | HerryPark | 273,154,769 | false | null | package com.herry.test.app.main
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import andro... | 0 | Kotlin | 0 | 0 | aad2b081795d518bbc3126298eb50bc5f7e01f47 | 9,121 | HerryApiDemo | Apache License 2.0 |
Library/src/main/java/com/xfhy/library/basekit/presenter/IPresenter.kt | xfhy | 258,978,567 | false | null | package com.xfhy.library.basekit.presenter
import com.xfhy.library.basekit.view.IBaseView
/**
* author xfhy
* create at 2017/9/15 13:44
* description:MVP Presenter的父接口
*/
interface IPresenter<T : IBaseView> {
fun setView(view: T)
/**
* 模拟界面的生命周期 onCreate()
*/
fun onCreate()
/**
*... | 1 | Kotlin | 5 | 6 | 294cd16f0549f97d13304d659e76c776189e44ff | 438 | AllInOne | Apache License 2.0 |
src/main/kotlin/io/github/gaming32/worldhostserver/proxyServer.kt | Gaming32 | 609,157,750 | false | {"Kotlin": 76469, "Java": 5869} | package io.github.gaming32.worldhostserver
import io.github.gaming32.worldhostserver.ConnectionId.Companion.toConnectionId
import io.github.gaming32.worldhostserver.util.cast
import io.github.oshai.KotlinLogging
import io.ktor.network.selector.*
import io.ktor.network.sockets.*
import io.ktor.util.network.*
import io.... | 0 | Kotlin | 0 | 2 | e92092a9d47644a76433a6f46f2a01a52bf57e0e | 7,154 | world-host-server-kotlin | MIT License |
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/AbstractFir2IrLazyDeclaration.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.lazy
import org.jetbrains.kotlin.fir.FirAnnotationContainer
import org.jetbr... | 184 | null | 5706 | 48,889 | c46c3c26038158cf80a739431ac8807ac4bbbc0c | 1,632 | kotlin | Apache License 2.0 |
main/src/androidTest/java/de/janniskilian/basket/BaseUiTest.kt | janniskilian | 160,101,734 | false | null | package de.janniskilian.basket
import androidx.annotation.StringRes
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.pe... | 0 | Kotlin | 0 | 0 | e183a520fe2ab7332afaaedc6dd34f5e332d4358 | 1,452 | basket | Apache License 2.0 |
app/src/test/java/com/takusemba/jethub/viewmodel/SearchReposViewModelTest.kt | winterdl | 241,266,325 | true | {"Kotlin": 98490} | package com.takusemba.jethub.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.takusemba.jethub.model.Repository
import com.takusemba.jethub.repository.SearchReposRepository
import com.takusemba.jethub.util.createRepository
import io.mockk.MockKA... | 0 | Kotlin | 0 | 0 | 72a28bb77032135608f3a9508663815e7bbecf8f | 2,668 | JetHub | Apache License 2.0 |
ui-details/src/main/java/com/nikitin/ui_details/DetailsFeatureFragment.kt | IstrajI | 478,113,719 | false | null | package com.nikitin.ui_details
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import com.nikitin.base.BaseFeatureFragment
import com.nikitin.ui_components.navigation.models.DetailsFeatureNavArgs
import com.nikit... | 0 | Kotlin | 1 | 1 | 86d3ad1250037aa3ff6c4a95a02be8170d000b54 | 1,133 | android-feature-module-architecture | Apache License 2.0 |
deployment/src/main/kotlin/tz/co/asoft/deployment/target/Deployment.kt | aSoft-Ltd | 258,530,471 | false | null | package tz.co.asoft.deployment.target
import java.io.Serializable
data class Deployment(val name: String, var values: Map<String, Any>) : Serializable
| 0 | Kotlin | 3 | 1 | 8233558139144a26c40ae30526bfd0b26bc7b3cb | 153 | kotlin | MIT License |
kotlin/kotlin-dbms/src/main/kotlin/com/hypo/driven/simpledb/log/LogIterator.kt | kackey0-1 | 542,333,436 | false | null | package com.hypo.driven.simpledb.log
import com.hypo.driven.simpledb.file.BlockId
import com.hypo.driven.simpledb.file.FileManager
import com.hypo.driven.simpledb.file.Page
/**
* ログブロックのコンテンツを保持するためのページを割り当てるクラス
*
* @property fm ファイルマネージャー
* @property blockId イテレータで保持する内容を持つブロック
* @property page イテレータで保持する内容を持つペ... | 3 | Kotlin | 0 | 0 | d9dffb6a17f624ea0dec86434906fa58be98970b | 1,620 | from-scrach | Apache License 2.0 |
skiko/src/jsMain/kotlin/org/jetbrains/skiko/SkiaLayer.js.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skiko
import kotlinx.browser.window
import org.w3c.dom.HTMLCanvasElement
import org.w3c.dom.events.InputEvent
import org.w3c.dom.events.KeyboardEvent
import org.w3c.dom.events.MouseEvent
import org.w3c.dom.events.WheelEvent
actual open class SkiaLayer {
private var state: CanvasRenderer? = n... | 80 | null | 95 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 4,309 | skiko | Apache License 2.0 |
tools/debug.kts | cfig | 56,238,465 | false | null | import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
if (null == System.getenv("ANDROID_PRODUCT_OUT")) {
println("ANDROID_PRODUCT_OUT not set, did U envsetup/lunch product?")
System.exit(1)
}
val xbins = listOf("su")
val bins = listOf("sh", "logcat", "logcatd", "logd", "linker", "toolbox"... | 20 | null | 222 | 972 | cae7591d55647084d9ec0f73631caac7d43481d3 | 3,879 | Android_boot_image_editor | Apache License 2.0 |
pensjon-brevbaker/src/main/kotlin/no/nav/pensjon/etterlatte/maler/fraser/common/Felles.kt | navikt | 375,334,697 | false | {"Kotlin": 2148171, "TypeScript": 257242, "TeX": 12815, "Shell": 9753, "CSS": 7595, "Python": 4661, "JavaScript": 4298, "Dockerfile": 2406, "HTML": 1053} | package no.nav.pensjon.etterlatte.maler.fraser.common
import no.nav.pensjon.brev.template.LangBokmalNynorskEnglish
import no.nav.pensjon.brev.template.Language
import no.nav.pensjon.brev.template.Language.Bokmal
import no.nav.pensjon.brev.template.Language.Nynorsk
import no.nav.pensjon.brev.template.Language.English
i... | 3 | Kotlin | 3 | 1 | 419a0c4ff89459bccad6402e40762629f4134952 | 5,745 | pensjonsbrev | MIT License |
twitter4j-v2-support/src/main/kotlin/twitter4j/UsersResponse.kt | takke | 280,848,830 | false | null | package twitter4j
import java.util.HashMap
class UsersResponse : TwitterResponse {
@Transient
private var rateLimitStatus: RateLimitStatus? = null
@Transient
private var accessLevel = 0
val users: List<User2> = mutableListOf()
// includes.polls
val pollsMap = HashMap<Long, Poll>()
... | 6 | null | 6 | 82 | f13b6f15f47078517251e72bbee9854ec07285a5 | 2,319 | twitter4j-v2 | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/medialive/CfnChannelAribSourceSettingsPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.medialive
import io.cloudshiftdev.awscdkdsl.common.CdkDsl... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,267 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/testwther/source/local/repository/city/CityLocalRepository.kt | Pawlo210286 | 274,120,293 | false | null | package com.testwther.source.local.repository.city
import com.testwther.source.local.entity.CityLocalEntity
import com.testwther.source.local.repository.LocalDatabase
class CityLocalRepository(
private val database: LocalDatabase
) : ICityLocalRepository {
override suspend fun saveCity(city: CityLocalEntity)... | 0 | Kotlin | 0 | 0 | a8e2c2a7eb2ce6fc8e9f4d2d6218229de7d2dc24 | 560 | testWther | MIT License |
app/src/main/java/kittoku/osc/layer/PppClient.kt | kittoku | 173,106,265 | false | null | package com.app.amigo.layer
import com.app.amigo.ControlClientVPN
import com.app.amigo.misc.*
import com.app.amigo.negotiator.*
import com.app.amigo.unit.*
import org.chromium.base.Log
internal enum class LcpState {
REQ_SENT, ACK_RCVD, ACK_SENT, OPENED
}
internal enum class IpcpState {
REQ_SENT, ACK_RCVD, A... | 5 | null | 25 | 81 | 0f926734a1cceb4a16fe111b433427fa7d5b4f88 | 11,758 | Open-SSTP-Client | MIT License |
telegram-bot/src/commonMain/kotlin/eu/vendeli/tgbot/api/media/Audio.kt | vendelieu | 496,567,172 | false | null | @file:Suppress("MatchingDeclarationName")
package eu.vendeli.tgbot.api.media
import eu.vendeli.tgbot.interfaces.BusinessActionExt
import eu.vendeli.tgbot.interfaces.MediaAction
import eu.vendeli.tgbot.interfaces.features.CaptionFeature
import eu.vendeli.tgbot.interfaces.features.MarkupFeature
import eu.vendeli.tgbot.... | 6 | null | 9 | 165 | c1ddf4a42c577410af31249dc650858320668263 | 4,407 | telegram-bot | Apache License 2.0 |
app/src/main/java/com/example/medlemma/View/DialogMyMemberships.kt | Stuhren | 700,369,616 | false | {"Kotlin": 130052, "Java": 201} | package com.example.medlemma.View
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundation.text... | 0 | Kotlin | 0 | 0 | c04e3beff763b1566ab560b2ba4d11b8f60c451d | 4,416 | Medlemma | Apache License 2.0 |
app/src/main/java/com/example/chuculture/Utils.kt | myhbaba | 398,739,776 | false | null | package com.example.chuculture
import android.animation.Animator
import android.animation.TimeInterpolator
import android.animation.ValueAnimator
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.view.ViewGroup
import android.view.animation.AccelerateDecelerateInterpolator
import ... | 0 | Kotlin | 0 | 0 | 21f86d905e68d838a55e3d0ca2b5d94182475ace | 5,731 | ChuCulture | Apache License 2.0 |
src/test/kotlin/no/nav/helse/validering/OmsorgstilbudValideringTest.kt | navikt | 161,643,240 | false | null | package no.nav.helse.validering
import no.nav.helse.dusseldorf.ktor.core.Violation
import no.nav.helse.soknad.*
import java.time.Duration
import java.time.LocalDate
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class OmsorgstilbudValideringTest {
val gyldigOmsorgstilbud = O... | 9 | Kotlin | 0 | 0 | e9cbaf2d5b4711335b51d2a30fd35118a5d1f585 | 4,150 | pleiepengesoknad-api | MIT License |
src/main/kotlin/com/github/mrbean355/admiralbulldog/mods/OldModMigration.kt | MrBean355 | 181,222,587 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 7 | null | 5 | 31 | 24f2f5de5c8d8397c9aec94795f6da3bfaac3611 | 1,659 | admiralbulldog-sounds | Apache License 2.0 |
krate-moshi-core/src/main/kotlin/hu/autsoft/krate/moshi/ValidatedFunctions.kt | AutSoft | 143,710,217 | false | null | @file:[Suppress("unused") OptIn(InternalKrateApi::class)]
package hu.autsoft.krate.moshi
import hu.autsoft.krate.Krate
import hu.autsoft.krate.internal.InternalKrateApi
import hu.autsoft.krate.moshi.default.MoshiDelegateWithDefault
import hu.autsoft.krate.moshi.optional.MoshiDelegate
import hu.autsoft.krate.validatio... | 3 | null | 10 | 257 | f36966d653e771dce32e2587f84b757dfe74f716 | 2,545 | Krate | Apache License 2.0 |
app/src/main/java/io/github/fate_grand_automata/ui/onboarding/OnboardingScreen.kt | Fate-Grand-Automata | 245,391,245 | false | null | package io.github.fate_grand_automata.ui.onboarding
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.spring
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.com... | 175 | null | 272 | 993 | eb630b8efcdb56782f796de2e17b36fdf9e19f3b | 6,143 | FGA | MIT License |
handshake/src/main/kotlin/com/guet/flexbox/handshake/HostAddressFinder.kt | jiankehtt | 240,469,855 | false | {"Java Properties": 4, "Gradle": 11, "Shell": 2, "Markdown": 2, "Batchfile": 2, "Text": 1, "Ignore List": 10, "Proguard": 5, "Java": 141, "Kotlin": 170, "XML": 47, "JSON": 17, "INI": 2, "JavaScript": 9, "HTML": 2, "CSS": 3} | package com.guet.flexbox.handshake
import java.net.Inet4Address
import java.net.NetworkInterface
object HostAddressFinder {
fun findHostAddress(): String? {
try {
Inet4Address.getLocalHost()
return NetworkInterface.getNetworkInterfaces()
.asSequence()
... | 1 | null | 1 | 1 | 79d4fe4191ae36689f58ce3c5b5d455d3e8b8bc8 | 734 | Gbox | Apache License 2.0 |
app/src/main/java/com/takusemba/jethub/database/entity/RepositoryEntity.kt | harveyhaha | 168,356,217 | true | {"Kotlin": 125216} | package com.takusemba.jethub.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* Repository Entity
*/
@Entity(tableName = "repository")
class RepositoryEntity(
@PrimaryKey
var id: Int,
var name: String,
var owner: String
) | 0 | Kotlin | 0 | 0 | 72a28bb77032135608f3a9508663815e7bbecf8f | 264 | JetHub | Apache License 2.0 |
src/test/kotlin/com/zup/edu/exceptions/GlobalExceptionHandlerTest.kt | FelipeB4C | 401,862,370 | true | {"Kotlin": 18994} | package com.zup.edu.exceptions
import io.grpc.Status
import io.grpc.StatusRuntimeException
import io.micronaut.http.HttpRequest
import io.micronaut.http.HttpStatus
import io.micronaut.http.hateoas.JsonError
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class GlobalExceptionHandl... | 0 | Kotlin | 0 | 0 | 9e987f047bbd073018fc88bedd9dcdbbe19f446b | 2,545 | orange-talents-06-template-pix-keymanager-rest | Apache License 2.0 |
app/src/main/kotlin/cz/lsrom/webviewtest/qr/ui/QrScannerActivity.kt | lsrom | 126,248,585 | false | null | package ak.singh.webviewtest.qr.ui
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.view.isVisib... | 0 | null | 4 | 19 | 03ef2922e1b80edd303da9add1498c3eb7db67f7 | 2,649 | webview-tester | MIT License |
composeApp/src/commonMain/kotlin/com/mmartosdev/photofx/ui/playground/PlaygroundViewModel.kt | manuel-martos | 815,172,471 | false | {"Kotlin": 59735, "HTML": 708, "Swift": 522} | package com.mmartosdev.photofx.ui.playground
import androidx.lifecycle.ViewModel
import com.mmartosdev.photofx.ui.EffectConfig
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class PlaygroundViewM... | 0 | Kotlin | 1 | 2 | 450c1071c085f13676d5c7d5796e29c3a1c92f4a | 639 | Photo-FX | MIT License |
app/src/main/java/com/b_lam/resplash/ui/photo/detail/PhotoDetailViewModel.kt | vipulasri | 366,834,420 | true | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 177, "XML": 159, "Java": 1, "JSON": 3} | package com.b_lam.resplash.ui.photo.detail
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import com.b_lam.resplash.data.collection.model.Collection
import com.b_lam.resplash.data.photo.model.Photo
import com.b_la... | 0 | null | 0 | 0 | 86a5a79465c40c000f7522f8e9b0f5af775951b1 | 5,647 | Resplash | The Unlicense |
src/main/kotlin/no/nav/syfo/infrastructure/database/repository/AktivitetskravVurderingQueries.kt | navikt | 554,767,872 | false | {"Kotlin": 508056, "Dockerfile": 226} | package no.nav.syfo.infrastructure.database.repository
import no.nav.syfo.domain.Aktivitetskrav
import no.nav.syfo.domain.AktivitetskravVurdering
import no.nav.syfo.infrastructure.database.NoElementInsertedException
import no.nav.syfo.infrastructure.database.toList
import no.nav.syfo.util.nowUTC
import java.sql.*
impo... | 3 | Kotlin | 1 | 0 | 55c4a23f24c6776d947cafc6788d23f919c84de5 | 2,670 | isaktivitetskrav | MIT License |
app/src/main/java/com/mux/video/vod/demo/upload/viewmodel/CreateUploadViewModel.kt | muxinc | 591,110,834 | false | {"Kotlin": 185627} | package com.mux.video.vod.demo.upload.viewmodel
import android.app.Application
import android.database.Cursor
import android.graphics.Bitmap
import android.media.MediaMetadataRetriever
import android.net.Uri
import android.os.Build
import android.provider.MediaStore
import android.util.Log
import androidx.lifecycle.An... | 5 | Kotlin | 1 | 5 | 1fb2d37aa79d9f400e696a4ec47025c0a5de30b0 | 6,556 | android-upload-sdk | Apache License 2.0 |
app/src/play/java/com/duckduckgo/app/di/PlayStoreReferralModule.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2019 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,606 | Android | Apache License 2.0 |
capy/src/test/java/com/jocmp/capy/fixtures/FeedFixture.kt | jocmp | 610,083,236 | false | {"Kotlin": 446273, "Ruby": 1214, "Makefile": 780} | package com.jocmp.capy.fixtures
import com.jocmp.capy.Feed
import com.jocmp.capy.db.Database
import com.jocmp.capy.persistence.FeedRecords
import kotlinx.coroutines.runBlocking
import java.security.SecureRandom
class FeedFixture(database: Database) {
private val records = FeedRecords(database)
fun create(
... | 9 | Kotlin | 0 | 38 | 7d4bc3ed6807cb4d67d3e29b75d4d600bd8bad60 | 785 | capyreader | MIT License |
src/org/jetbrains/r/run/visualize/RDataFrameViewerImpl.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2849970, "Java": 814635, "R": 36890, "CSS": 23692, "Lex": 14307, "HTML": 10063, "Rez": 245, "Rebol": 64} | /*
* Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.r.run.visualize
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.invokeLater
import com.intellij.openapi.fileEditor.im... | 2 | Kotlin | 12 | 62 | d4d5cf9c09804454f811df7de0c02506d6ef12d3 | 6,518 | Rplugin | Apache License 2.0 |
commons/src/commonMain/kotlin/org/jetbrains/letsPlot/commons/intern/json/JsonLexer.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2020. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.base.json
internal class JsonLexer(
private val input: String
) {
private var i = 0
private var tokenStart = 0
var currentToken: To... | 97 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 3,695 | lets-plot | MIT License |
sdk-scrapper/src/main/kotlin/io/github/wulkanowy/sdk/scrapper/school/SchoolPlus.kt | wulkanowy | 138,756,468 | false | {"Kotlin": 705036, "HTML": 70768} | package io.github.wulkanowy.sdk.scrapper.school
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class SchoolPlus(
@SerialName("nazwa") val name: String,
@SerialName("imienia") val patron: String,
@SerialName("numer") val number: String,
@Se... | 11 | Kotlin | 5 | 8 | 340245d8ccc2790dcb75219c2839e8bdd8b448a4 | 898 | sdk | Apache License 2.0 |
module_setting/src/main/kotlin/life/chenshi/keepaccounts/module/setting/vm/EditAssetsAccountViewModel.kt | SMAXLYB | 340,857,932 | false | null | package life.chenshi.keepaccounts.module.setting.vm
import androidx.databinding.ObservableBoolean
import androidx.databinding.ObservableField
import androidx.databinding.ObservableLong
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
... | 0 | Kotlin | 0 | 2 | 389632d87e90588555c10682a5804f6fddba5278 | 2,729 | KeepAccount | Apache License 2.0 |
src/main/kotlin/com/helltar/aibot/dao/tables/SlowmodeTable.kt | Helltar | 591,327,331 | false | {"Kotlin": 88527} | package com.helltar.artific_intellig_bot.dao.tables
import org.jetbrains.exposed.sql.Table
object SlowMode : Table() {
val userId = long("id")
val username = varchar("username", 32).nullable()
val firstName = varchar("firstName", 64)
val limit = integer("limit")
val requests = integer("requests")... | 0 | Kotlin | 3 | 21 | 1a446727f4206d26c786a2958b3a275b1593eefb | 432 | artific_intellig_bot | MIT License |
src/main/kotlin/io/github/bayang/jelu/dao/UserTable.kt | bayang | 426,792,636 | false | null | package io.github.bayang.jelu.dao
import io.github.bayang.jelu.dto.UserDto
import org.jetbrains.exposed.dao.UUIDEntity
import org.jetbrains.exposed.dao.UUIDEntityClass
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.UUIDTable
import org.jetbrains.exposed.sql.Column
import org.jetbrains... | 16 | null | 7 | 340 | 32de3210e27f64102052cc596e6602258b433a83 | 1,525 | jelu | MIT License |
src/main/java/uk/gov/justice/hmpps/probationteams/security/UserSecurityUtils.kt | nickmcmahon01 | 269,607,691 | false | null | package uk.gov.justice.digital.hmpps.cmd.api.security
import org.springframework.security.core.Authentication
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.security.core.userdetails.UserDetails
import org.springframework.stereotype.Component
@Component
@SuppressWarn... | 1 | null | 2 | 1 | ce38a364438a0ff218490d1f80b071bb8b7e2e39 | 1,043 | probation-teams | MIT License |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/testing/internal/TestReportService.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-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.gradle.testing.internal
import org.gradle.api.Project
import org.gradle.api.Task... | 7 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 5,493 | kotlin | Apache License 2.0 |
src/main/kotlin/horus/commands/discord/defaults/BotInfo.kt | GlitchLib | 152,699,467 | false | null | package horus.commands.discord.defaults
import com.sun.management.OperatingSystemMXBean
import horus.Info
import horus.commands.discord.api.DiscordCategory
import horus.commands.discord.api.DiscordCommand
import horus.commands.discord.api.DiscordCommandEvent
import horus.core.utils.Colors
import java.lang.management.M... | 0 | Kotlin | 0 | 0 | 0726199426a57ce95a9e193ff99ea7cfb3589137 | 3,411 | bot-butler | MIT License |
src/main/kotlin/de/flapdoodle/generics/local/k/HasLocalTypeMethod.kt | flapdoodle-oss | 180,553,828 | false | null | package de.flapdoodle.generics.local.k
import java.util.function.Supplier
class HasLocalTypeMethod {
fun <T> outer(factory: Factory<T, *>, value: T): T {
@Suppress("UNCHECKED_CAST")
return sample(factory as Factory<T, Supplier<T>>, value)
}
fun <T, R : Supplier<T>> sample(factory: Factory<T, R>, value... | 0 | Kotlin | 1 | 0 | 14d401c34c300e55ec26e5c72fda883984113ccc | 403 | kotlin-or-java | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/CircleArrowUpLeft.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.filled
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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 3,104 | compose-icon-collections | MIT License |
src/main/kotlin/no/nav/klage/clients/FileClient.kt | navikt | 253,461,869 | false | null | package no.nav.klage.clients
import no.nav.klage.util.TokenUtil
import no.nav.klage.util.getLogger
import org.springframework.http.HttpHeaders
import org.springframework.http.client.MultipartBodyBuilder
import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.BodyInserters
impor... | 2 | Kotlin | 1 | 0 | 8a93a0934e99a3d94165fd85d809ac830f1100b8 | 2,861 | klage-dittnav-api | MIT License |
idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmOrderEnumerationHandler.kt | JetBrains | 278,369,660 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.roots
import com.intellij.openapi.module.Module
import com.intellij.openapi.roots.ModuleRootModel
import com.intellij.ope... | 191 | null | 4372 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 1,598 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppschallengesupportinterventionplanapi/model/request/UpdateReferralRequest.kt | ministryofjustice | 797,799,207 | false | {"Kotlin": 464802, "Mermaid": 28845, "Shell": 1890, "Dockerfile": 1372} | package uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.model.request
import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.Valid
import jakarta.validation.constraints.Size
import uk.gov.justice.digital.hmpps.hmppschallenges... | 2 | Kotlin | 0 | 0 | e7c97c8f0482ed16f5f61994c80555671cdc5543 | 4,188 | hmpps-challenge-support-intervention-plan-api | MIT License |
src/main/kotlin/org/bloqly/machine/controller/data/BlockController.kt | abaracadaor | 147,365,768 | false | {"Gradle": 1, "Shell": 9, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "INI": 1, "YAML": 7, "JSON": 3, "JavaScript": 6, "Kotlin": 129, "Java": 4, "XML": 1, "SVG": 1} | package org.bloqly.machine.controller.data
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.bloqly.machine.service.BlockService
import org.bloqly.machine.vo.block.BlockDataList
import org.bloqly.machine.vo.block.BlockRangeRequest
import org.... | 1 | null | 1 | 1 | cfe046f6d93ebc51d12b2fecdbf0215181152a03 | 3,150 | bloqly | MIT License |
samples/ktor-all-platforms-app/server/src/test/kotlin/kotlinx/rpc/sample/ApplicationTest.kt | Kotlin | 739,292,079 | false | null | /*
* Copyright 2023-2024 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
import io.ktor.server.testing.*
import kotlinx.coroutines.flow.toList
import kotlinx.rpc.withService
import kotlinx.rpc.serialization.json
import kotlinx.rpc.streamScoped
import kotlinx.rpc.tr... | 26 | null | 17 | 733 | b946964ca7838d40ba68ad98fe4056f3ed17c635 | 1,197 | kotlinx-rpc | Apache License 2.0 |
server/src/main/kotlin/io/typestream/config/KafkaConfig.kt | typestreamio | 685,423,176 | false | {"Kotlin": 324308, "Go": 32564, "Shell": 2073, "Makefile": 467} | package io.typestream.config
data class KafkaConfig(
val bootstrapServers: String,
val fsRefreshRate: Int = 60,
val schemaRegistry: SchemaRegistryConfig,
val saslConfig: SaslConfig? = null,
)
| 4 | Kotlin | 2 | 42 | edbfb9b21db426ac521e10b85e61983b94e0cd6a | 209 | typestream | Apache License 2.0 |
engine/src/main/kotlin/io/kotless/gen/factory/route/AbstractRouteFactory.kt | cybernetics | 214,768,441 | true | {"Kotlin": 176487} | package io.kotless.gen.factory.route
import io.kotless.URIPath
import io.kotless.gen.GenerationContext
import io.kotless.gen.factory.apigateway.RestAPIFactory
import io.kotless.hcl.ref
import io.kotless.terraform.provider.aws.resource.apigateway.api_gateway_resource
import io.kotless.utils.Storage
/**
* Generic impl... | 0 | null | 0 | 0 | 84efd97c6fde0771cf28cb9059a025c92a44950b | 1,434 | kotless | Apache License 2.0 |
app/src/main/java/com/example/lemonade/MainActivity.kt | barnett-yuxiang | 802,696,491 | false | null |
package com.example.lemonade
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrang... | 0 | null | 0 | 1 | 7b13a8f565b34d13aaa44f135f62f347be9307ac | 6,538 | LemonadeApp | MIT License |
src/main/kotlin/com/autonomousapps/internal/android/BaseAndroidGradlePlugin.kt | autonomousapps | 217,134,508 | false | null | package com.autonomousapps.internal.android
import org.gradle.api.GradleException
import org.gradle.api.Project
import org.gradle.api.Task
import java.lang.reflect.Method
abstract class BaseAndroidGradlePlugin(
protected val project: Project,
protected val agpVersion: String
) : AndroidGradlePlugin {
protected... | 41 | null | 55 | 910 | da02a56a0b7a00a26876cdaa29321f8376bf7099 | 928 | dependency-analysis-android-gradle-plugin | Apache License 2.0 |
syft/src/test/java/org/openmined/syft/unit/monitor/battery/RobolectricBatteryDataSource.kt | OpenMined | 232,324,117 | false | null | package fl.wearable.autosport.unit.monitor.battery
import android.content.Context
import android.content.Intent
import android.os.BatteryManager
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.eq
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.notNull
import io.reac... | 75 | null | 26 | 79 | da8a442586700e32de0d01d52fde941199951ea9 | 4,530 | KotlinSyft | Apache License 2.0 |
clearnet/src/main/java/clearnet/interfaces.kt | xelevra | 176,962,795 | true | {"Gradle": 6, "Markdown": 3, "Java Properties": 1, "Shell": 1, "Ignore List": 5, "Batchfile": 1, "Kotlin": 51, "Java": 35, "Proguard": 1, "XML": 2, "INI": 1} | package clearnet.interfaces
import clearnet.CoreTask
import clearnet.InvocationBlockType
import clearnet.error.ClearNetworkException
import clearnet.error.ConversionException
import clearnet.error.HTTPCodeError
import clearnet.model.MergedInvocationStrategy
import clearnet.model.PostParams
import io.reactivex.Observab... | 0 | Kotlin | 0 | 0 | e9a6e5658b358110d90d0cd7129a9d77ff18af49 | 6,292 | clearnet | Apache License 2.0 |
src/main/kotlin/net/casual/arcade/minigame/events/lobby/Lobby.kt | CasualChampionships | 621,955,934 | false | {"Kotlin": 779326, "Java": 132970, "GLSL": 2247} | package net.casual.arcade.minigame.events.lobby
import net.casual.arcade.area.PlaceableArea
import net.casual.arcade.gui.bossbar.TimerBossBar
import net.casual.arcade.gui.countdown.Countdown
import net.casual.arcade.utils.PlayerUtils.teleportTo
import net.casual.arcade.utils.impl.Location
import net.minecraft.server.l... | 1 | Kotlin | 1 | 2 | 6a65e30cea14e052d24a92c624682edefb2a7fe2 | 1,016 | arcade | MIT License |
app/src/main/java/com/magicfluids/MyGLSurfaceView2.kt | coderspacedev | 846,482,266 | false | {"Kotlin": 215806, "Java": 52620, "JavaScript": 51961, "GLSL": 50151, "HTML": 34763} | package com.magicfluids
import android.content.*
import android.graphics.*
import android.opengl.*
import android.util.*
import android.view.*
import com.fluidsimulation.App.Companion.app
import com.fluidsimulation.ext.*
import com.fluidsimulation.helper.*
import com.fluidsimulation.model.*
import kotlinx.coroutines.*... | 0 | Kotlin | 0 | 1 | c07827113483608964d9b931a788b2f0a585f843 | 2,299 | FluidTouch | The Unlicense |
feature_curation_list/src/main/java/com/phicdy/mycuration/curationlist/CurationListView.kt | phicdy | 24,188,186 | false | {"Kotlin": 688608, "HTML": 1307, "Shell": 1127} | package com.phicdy.mycuration.presentation.view
import com.phicdy.mycuration.entity.Curation
interface CurationListView {
fun startEditCurationActivity(editCurationId: Int)
fun setNoRssTextToEmptyView()
fun registerContextMenu()
fun initListBy(curations: List<Curation>)
fun showRecyclerView()
... | 46 | Kotlin | 9 | 30 | 052bc1776a80df0457399e96e001c9ad527d53f2 | 393 | MyCuration | The Unlicense |
app/src/main/java/com/example/buahin/repository/CategoryRepository.kt | SimiPrambos | 440,445,933 | false | null | /*
* Copyright (C) 2021 SimiPrambos <<EMAIL>> - All Rights Reserved
* CategoryRepository.kt
* Buahin <https://github.com/SimiPrambos/buahin.git>
* UI Design by Afsar <https://www.figma.com/community/file/882645007956337261>
*/
package com.example.buahin.repository
import com.example.buahin.model.Category
import ... | 0 | Kotlin | 0 | 0 | 5c6a2cd40ac9e96dbfb61eefba9654b5f0fd6636 | 1,067 | buahin | MIT License |
app/src/main/java/chenmc/sms/data/ExpressCodeSms.kt | zhidao8 | 105,611,156 | false | null | package chenmc.sms.data
/**
* 取件码短信
* Created by 明明 on 2017/7/1.
*/
class ExpressCodeSms : CodeSms {
constructor()
constructor(code: String) : super(code)
constructor(serviceProvider: String, expressCode: String) : super(serviceProvider, expressCode)
constructor(serviceProvider: String, cod... | 3 | Kotlin | 10 | 69 | 8c83419e2574c464be5cdd7d2e7a50e4beb08ee9 | 390 | SmsCodeHelper | Apache License 2.0 |
app/src/main/java/com/example/reservations/ui/screens/ClientSelectionScreen.kt | jameswills | 834,645,101 | false | {"Kotlin": 29138} | package com.example.reservations.ui.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import ... | 0 | Kotlin | 0 | 0 | c5746e130f85a5068573ef3b03a1d5f36a6cd57f | 6,678 | Henry-Reservation | Apache License 2.0 |
utils/jwt/src/main/kotlin/io/bluetape4k/jwt/codec/Lz4Codec.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.jwt.codec
import io.bluetape4k.io.compressor.Compressors
import io.bluetape4k.io.compressor.LZ4Compressor
import io.bluetape4k.logging.KLogging
import io.bluetape4k.support.unsafeLazy
import io.jsonwebtoken.impl.compression.AbstractCompressionCodec
class Lz4Codec: AbstractCompressionCodec() {
... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 768 | bluetape4k | MIT License |
src/main/kotlin/br/anhembi/funmodechild/service/PaymentService.kt | svbgabriel | 199,749,038 | false | {"Kotlin": 43080, "JavaScript": 12575} | package br.anhembi.funmodechild.service
import br.anhembi.funmodechild.model.common.PaymentException
import br.anhembi.funmodechild.model.request.PaymentRequest
import br.anhembi.funmodechild.model.response.PaymentResponse
import br.anhembi.funmodechild.repository.OrderRepository
import br.anhembi.funmodechild.reposit... | 3 | Kotlin | 0 | 0 | 35c91197e3709f60073766048bf295c51dee6eae | 929 | fun-mode-child | MIT License |
RefactoringToDesignPatterns/FacadePatternPractice/task/src/main/kotlin/jetbrains/refactoring/course/patterns/Main.kt | Nikolay1580 | 774,957,920 | false | {"Kotlin": 16061} | package jetbrains.refactoring.course.patterns
fun main(args: Array<String>) {
val originalVideoName = args[0]
val processedVideoName = args[1]
val videoConverter = VideoConversionFacade()
val video = videoConverter.getVideoLoader().loadVideo(originalVideoName)
val processedVideo = videoConverter.... | 0 | Kotlin | 0 | 0 | c8ca3ab60fd7ce382ac10c28b9e13c9e9a5d10da | 525 | Refactoring_Course-2 | MIT License |
pluto-no-op/src/main/java/com/mocklets/pluto/modules/exceptions/ANRException.kt | mocklets | 459,260,997 | false | null | package com.mocklets.pluto.modules.exceptions
import androidx.annotation.Keep
@Keep
class ANRException(thread: Thread) : Exception("ANR detected in Pluto-No-Op") {
val threadStateMap: String
init {
stackTrace = thread.stackTrace
threadStateMap = ""
}
}
| 0 | null | 2 | 8 | 87dc5a27272e0fc5c38e042fa95689a143ae5446 | 285 | pluto | Apache License 2.0 |
product-farm-api/src/main/kotlin/io/github/ayushmaanbhav/productFarm/constant/ProductTemplateType.kt | ayushmaanbhav | 633,602,472 | false | {"Kotlin": 739672, "Shell": 1175, "Dockerfile": 1119} | package io.github.ayushmaanbhav.productFarm.constant
enum class ProductTemplateType {
INSURANCE
}
| 0 | Kotlin | 0 | 0 | ee3f2aa48e9bf764d693436a44bf99ac92408bf3 | 103 | product-farm | Apache License 2.0 |
coordinates/src/commonMain/kotlin/geo/serializers/LatLngAltSerializer.kt | aSoft-Ltd | 694,870,214 | false | {"Kotlin": 15901} | package geo.serializers
import geo.LatLngAlt
import geo.internal.LatLngAltImpl
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serialization.encoding.Decoder
import kotlinx.serializatio... | 0 | Kotlin | 0 | 0 | 191d605ede8135525b0da0024a00a8b6a9cd59fb | 848 | geo-api | MIT License |
src/commonMain/kotlin/mapgen/predicate/CellContainedIn2d.kt | stewsters | 272,030,492 | false | null | package mapgen.predicate
//class CellContainedIn2d<T>(container: Container2d) : CellPredicate2d<Any?> {
// var container: Container2d
// fun belongs(generatedMap2d: Matrix2d<T>, x: Int, y: Int): Boolean {
// return container.contains(x, y)
// }
//
// init {
// this.container = container
// ... | 1 | Kotlin | 1 | 9 | c5b657801d325e2072dad9736db24144d29eddf8 | 327 | dungeon | MIT License |
buildSrc/src/main/kotlin/Shared.kt | gbaldeck | 94,640,750 | false | null | import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPom
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.getByType
import org.gradle.kotlin.dsl.withType
fun MavenPom.defaultPom() {
name.set("snabbdom-kotlin")
... | 0 | Kotlin | 1 | 4 | 3de0752966e4b4231efe3200b140142565520087 | 1,580 | snabbdom-kotlin | MIT License |
generators/app/templates/presentation/src/main/java/com/kristal/generator/presentation/view/activity/HomeActivity.kt | rochze | 132,592,386 | true | {"Kotlin": 180920, "JavaScript": 6984, "Java": 809} | package <%= appPackage %>.presentation.view.activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import <%= appPackage %>.presentation.example.recyclerview.view.fragment.RecyclerViewFragment
import <%= appPackage %>.presentation.view.activity.base.BaseActivity
class HomeActi... | 0 | Kotlin | 0 | 0 | 4133b44eb99c594155111fdb3be0b72730c0d6a2 | 720 | Generator-Kristal | The Unlicense |
service/src/main/kotlin/com/spring/service/controller/CustomerHttpController.kt | DavidVasconcelos | 554,422,167 | false | null | package com.spring.service.controller
import com.spring.service.entity.CustomerEntity
import com.spring.service.repository.CustomerRepository
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.ResponseBody
import rea... | 0 | Kotlin | 0 | 0 | 66906b7e17c73dc4561252fb5948319b3230f2e3 | 546 | spring-kubernetes-native | Apache License 2.0 |
lib/src/main/java/me/wsj/lib/utils/DateUtil.kt | codingwatching | 391,791,972 | false | null | package me.wsj.lib.utils
import java.text.SimpleDateFormat
import java.util.*
class DateUtil {
companion object {
@JvmStatic
fun getNowHour(): Int {
return Calendar.getInstance().get(Calendar.HOUR_OF_DAY)
}
/**
* HH:mm
*/
@JvmStatic
... | 0 | null | 0 | 1 | 38d80055d01c4edcd69637b522511e7d1782a2f6 | 553 | FengYunWeather | Apache License 2.0 |
lib/src/main/java/me/wsj/lib/utils/DateUtil.kt | codingwatching | 391,791,972 | false | null | package me.wsj.lib.utils
import java.text.SimpleDateFormat
import java.util.*
class DateUtil {
companion object {
@JvmStatic
fun getNowHour(): Int {
return Calendar.getInstance().get(Calendar.HOUR_OF_DAY)
}
/**
* HH:mm
*/
@JvmStatic
... | 0 | null | 0 | 1 | 38d80055d01c4edcd69637b522511e7d1782a2f6 | 553 | FengYunWeather | Apache License 2.0 |
app/src/main/java/eu/kanade/presentation/category/MangaCategoryScreen.kt | aniyomiorg | 358,887,741 | false | null | package eu.kanade.presentation.category
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import android... | 234 | null | 315 | 4,992 | 823099f775ef608b7c11f096da1f50762dab82df | 3,613 | aniyomi | Apache License 2.0 |
main/java/gameRPG/src/org/RPG/www/game/item/Item.kt | dragoues | 344,530,130 | false | null | package org.academiadecodigo.www.game.item
abstract class Item(val name: String, val bonus: Int, itemKind: KindOfItem) :
org.academiadecodigo.www.game.GameObjects() {
private val itemKind: KindOfItem
fun getItemKind(): KindOfItem {
return itemKind
}
override fun toString(): String {
... | 0 | Kotlin | 0 | 0 | af4677748e15713e38c037eb6e80e9985dbdad8e | 392 | game_app_KT | Apache License 2.0 |
app/src/main/java/ru/igla/duocamera/ui/widgets/AboutDialog.kt | iglaweb | 414,899,591 | false | {"Kotlin": 85927, "Java": 2752} | package ru.igla.duocamera.ui.widgets
import android.app.Dialog
import android.os.Build
import android.os.Bundle
import android.text.Html
import android.text.Spanned
import androidx.annotation.Nullable
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fra... | 1 | Kotlin | 0 | 6 | 5743d5c22fdc96d2d2f0f0e2b00e17ee4c75147e | 1,510 | DuoCamera | Apache License 2.0 |
app/src/main/java/com/example/rocketreserver/di/RepositoryModule.kt | artyomefimov | 357,857,288 | false | null | package com.example.rocketreserver.di
import com.example.rocketreserver.data.mapper.LaunchDetailsMapper
import com.example.rocketreserver.data.mapper.LaunchListMapper
import com.example.rocketreserver.data.mapper.LoginDetailsMapper
import com.example.rocketreserver.data.repository.SpaceXRepositoryImpl
import com.examp... | 0 | Kotlin | 0 | 0 | 69bccb1dec438e71d3f433a22a477b51ba32b0f9 | 1,706 | spacex_graphql | MIT License |
usvm-core/src/main/kotlin/org/usvm/ps/StateLoopStatistic.kt | UnitTestBot | 586,907,774 | false | {"Kotlin": 2623144, "Java": 476836} | package org.usvm.ps
import kotlinx.collections.immutable.PersistentList
import kotlinx.collections.immutable.persistentListOf
import org.usvm.PathNode
import org.usvm.UState
class StateLoopStatistic<Stmt, Method, Loop : Any, State : UState<*, Method, Stmt, *, *, State>>(
private val loopTracker: StateLoopTracker<... | 36 | Kotlin | 4 | 9 | 819268c3c77c05d798891be826164bbede63fdfb | 6,596 | usvm | Apache License 2.0 |
tapi/src/main/java/inc/brody/tapi/TApi.kt | DimaBrody | 191,914,846 | false | null | package inc.brody.tapi
import android.content.Context
import android.util.Log
import inc.brody.tapi.data.State
import inc.brody.tapi.data.appdata.TConstants
import inc.brody.tapi.requests.TCheckAuthenticationCode
import inc.brody.tapi.requests.TCheckAuthenticationPassword
import inc.brody.tapi.requests.TGetCurrentStat... | 1 | null | 1 | 4 | 43204081e9dd62c14eb918ca0736b9470f5e9894 | 2,746 | TApi | MIT License |
pensjon-brevbaker/src/main/kotlin/no/nav/pensjon/brev/maler/ProductionTemplates.kt | navikt | 375,334,697 | false | {"Kotlin": 3421494, "TypeScript": 519756, "TeX": 12813, "Shell": 9251, "CSS": 8104, "Python": 4661, "JavaScript": 4382, "Dockerfile": 2406, "HTML": 1053} | package no.nav.pensjon.brev.api
import no.nav.pensjon.brev.api.model.maler.BrevbakerBrevdata
import no.nav.pensjon.brev.api.model.maler.RedigerbarBrevdata
import no.nav.pensjon.brev.maler.*
import no.nav.pensjon.brev.maler.adhoc.*
import no.nav.pensjon.brev.maler.redigerbar.InformasjonOmSaksbehandlingstid
import no.na... | 6 | Kotlin | 3 | 1 | ec81ca12f0bc17173b0e38e43441ddde8ae70922 | 1,231 | pensjonsbrev | MIT License |
libraries/data/src/main/java/com/zizohanto/android/currencyconverter/data/repository/ConverterRepositoryImpl.kt | zizoh | 315,755,201 | false | null | package com.zizohanto.android.currencyconverter.data.repository
import com.zizohanto.android.currencyconverter.data.contract.cache.ConverterCache
import com.zizohanto.android.currencyconverter.data.contract.remote.ConverterRemote
import com.zizohanto.android.currencyconverter.data.models.HistoricalDataEntity
import co... | 0 | Kotlin | 0 | 0 | 3cc5bc91b0d3af5c8986f100fecbf06270926a4e | 3,522 | Currency-Converter | Apache License 2.0 |
src/main/kotlin/br/com/zupacademy/validation/ValidPixKey.kt | sergio-ads | 388,237,743 | true | {"Kotlin": 120453, "Smarty": 2172, "Dockerfile": 198} | package br.com.zupacademy.validation
import br.com.zupacademy.model.request.RegistraChavePixRequest
import io.micronaut.core.annotation.AnnotationValue
import io.micronaut.validation.validator.constraints.ConstraintValidator
import io.micronaut.validation.validator.constraints.ConstraintValidatorContext
import javax.i... | 0 | Kotlin | 0 | 0 | e37b39e0c7ca5821cb9c10d00ef3ca55f39f4db4 | 1,959 | orange-talents-05-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/elhady/movies/core/data/repository/mappers/cash/LocalPopularPeopleMapper.kt | islamelhady | 301,591,032 | false | {"Kotlin": 584524} | package com.elhady.movies.core.data.repository.mappers.cash
import com.elhady.movies.BuildConfig
import com.elhady.movies.core.mapper.Mapper
import com.elhady.movies.core.data.local.database.dto.PopularPeopleLocalDto
import com.elhady.movies.core.data.remote.response.dto.PeopleRemoteDto
import javax.inject.Inject
cla... | 1 | Kotlin | 0 | 0 | d9b6c3f241b5de6c334fa2dcc9f2653de3c04762 | 741 | movie-night-v2 | Apache License 2.0 |
pgpainless-core/src/main/kotlin/org/pgpainless/key/modification/secretkeyring/SecretKeyRingEditorInterface.kt | pgpainless | 135,846,104 | false | null | // SPDX-FileCopyrightText: 2023 <NAME> <<EMAIL>>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.key.modification.secretkeyring
import java.io.IOException
import java.security.InvalidAlgorithmParameterException
import java.security.NoSuchAlgorithmException
import java.util.*
import org.bouncycastle.o... | 28 | null | 23 | 156 | de4a11352853b6e18146b10a87a928b2984a0fab | 27,183 | pgpainless | Apache License 2.0 |
photopicker/src/main/java/com/github/basshelal/unsplashpicker/presentation/PhotoShowFragment.kt | basshelal | 198,377,924 | false | null | @file:Suppress("RedundantVisibilityModifier", "MemberVisibilityCanBePrivate", "NOTHING_TO_INLINE")
package com.github.basshelal.unsplashpicker.presentation
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.text.SpannableStringBuilder
import android.text.Spanned
import androi... | 2 | Kotlin | 5 | 31 | 1a404d3d970c60f513f47a5bb5adf0854f85fad6 | 7,823 | UnsplashPhotoPicker | MIT License |
src/main/kotlin/com/ilirus/widget/pack/group/ModItemGroup.kt | ChaosAlphard | 368,902,478 | false | null | package com.ilirus.widget.pack.group
import com.ilirus.widget.pack.consts.ModConst
import com.ilirus.widget.pack.item.ModIcon
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder
import net.minecraft.item.ItemGroup
import net.minecraft.item.ItemStack
import net.minecraft.util.Identifier
/**
* @aut... | 0 | Kotlin | 0 | 0 | 001db0805324444a56eb95f0a9310a447afb0dae | 601 | fabric-widget-pack | Creative Commons Zero v1.0 Universal |
library/src/main/java/ru/yandex/money/android/sdk/impl/paymentOptionList/PaymentOptionListPresenter.kt | GorshkovNikita | 144,304,854 | false | {"Gradle": 7, "CODEOWNERS": 1, "Java Properties": 3, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 2, "XML": 94, "Java": 10, "Kotlin": 255, "HTML": 1} | /*
* The MIT License (MIT)
* Copyright © 2018 NBCO Yandex.Money LLC
*
* 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... | 1 | null | 1 | 1 | fa44a3b0a3872d9f1ede52ebbf90fc1d68dcf386 | 3,954 | yandex-checkout-android-sdk | MIT License |
app/src/main/java/com/srilakshmikanthanp/clipbirdroid/ui/gui/Clipbird.kt | srilakshmikanthanp | 679,518,906 | false | {"Kotlin": 178253} | package com.srilakshmikanthanp.clipbirdroid.ui.gui
import androidx.compose.material3.DrawerValue
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberDrawerState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.r... | 0 | Kotlin | 0 | 0 | da88e5cf16163c3520852dfceed62e7b823512e2 | 2,351 | clipbirdroid | MIT License |
misk-clustering/src/test/kotlin/misk/clustering/kubernetes/KubernetesClusterTest.kt | cashapp | 113,107,217 | false | {"Kotlin": 3843790, "TypeScript": 232251, "Java": 83564, "JavaScript": 5073, "Shell": 3462, "HTML": 1536, "CSS": 58} | package misk.clustering.kubernetes
import com.google.inject.Module
import com.google.inject.util.Modules
import io.kubernetes.client.openapi.models.V1ContainerStatus
import io.kubernetes.client.openapi.models.V1ObjectMeta
import io.kubernetes.client.openapi.models.V1Pod
import io.kubernetes.client.openapi.models.V1Pod... | 169 | Kotlin | 169 | 400 | 13dcba0c4e69cc2856021270c99857e7e91af27d | 11,691 | misk | Apache License 2.0 |
src/me/anno/remsstudio/objects/GFXArray.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.objects
import me.anno.config.DefaultConfig
import me.anno.gpu.GFX
import me.anno.io.ISaveable
import me.anno.io.base.BaseWriter
import me.anno.language.translation.Dict
import me.anno.objects.animation.AnimatedProperty
import me.anno.objects.modes.ArraySelectionMode
import me.anno.ui.base.groups.Panel... | 0 | Kotlin | 1 | 8 | e5f0bb17202552fa26c87c230e31fa44cd3dd5c6 | 6,258 | RemsStudio | Apache License 2.0 |
Man10Bank/src/main/java/red/man10/man10bank/loan/LocalLoan.kt | forest611 | 267,747,865 | false | {"Kotlin": 113959, "C#": 68321, "Dockerfile": 603, "Shell": 84} | package red.man10.man10bank.loan
import net.kyori.adventure.text.Component.text
import net.kyori.adventure.text.event.ClickEvent.runCommand
import org.bukkit.Bukkit
import org.bukkit.Material
import org.bukkit.NamespacedKey
import org.bukkit.command.Command
import org.bukkit.command.CommandExecutor
import org.bukkit.c... | 0 | Kotlin | 0 | 0 | bf579e3906ab9b7a3544f6d5fc67a40c9631ebdb | 11,361 | Man10Bank | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/lang/model/ParadoxExpressionInfo.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.lang.model
import com.intellij.psi.*
import com.intellij.util.*
import icu.windea.pls.script.psi.*
/**
*
* @property elementOffset 对应的[ParadoxScriptExpressionElement]在文件中的起始位置。
* @property gameType 对应的游戏类型。
* @property file 对应的文件。使用[QueryExecutor]进行查询时才能获取。
*/
interface ParadoxExpressionIn... | 8 | Kotlin | 4 | 22 | c6c558b82c84b9e88c0ee179f64cbfdda66b8082 | 411 | Paradox-Language-Support | MIT License |
schoolDomain/src/main/kotlin/com/intelligentbackpack/schooldomain/entities/person/Person.kt | IntelligentBackpack | 629,745,884 | false | null | package com.intelligentbackpack.schooldomain.entities.person
/**
* A person.
*
* @property name the name of the person
* @property surname the surname of the person
* @property email the email of the person
*/
interface Person {
val name: String
val surname: String
val email: String
}
| 0 | Kotlin | 0 | 0 | 61bfdc8c21801a14d67c62b69a07a0fb341aab6d | 305 | IntelligentBackpackApp | MIT License |
v-customview/src/main/java/com/vension/customview/svga_player/SVGAVideoSpriteEntity.kt | Vension | 126,779,607 | false | null | package com.opensource.svgaplayer
import com.opensource.svgaplayer.proto.SpriteEntity
import org.json.JSONObject
/**
* Created by cuiminghui on 2016/10/17.
*/
class SVGAVideoSpriteEntity {
val imageKey: String?
val frames: List<SVGAVideoSpriteFrameEntity>
constructor(obj: JSONObject) {
this.i... | 65 | null | 477 | 8 | 878f17d8ab80f61437adc770015ec72b27279b3b | 1,752 | KV-Frame | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.