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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
examples/android-compose/src/main/kotlin/at/florianschuster/control/composeexample/CounterScreen.kt | floschu | 210,012,903 | false | null | package at.florianschuster.control.composeexample
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.... | 1 | null | 8 | 54 | 164a60a79adff800b862b538c3aee5a05415ebd2 | 4,050 | control | Apache License 2.0 |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/TaskbarController.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 2620314, "TypeScript": 690065, "Swift": 350138, "Vue": 143774, "SCSS": 39030, "Objective-C": 17350, "Shell": 11193, "HTML": 10444, "JavaScript": 3998, "CSS": 818} | package org.dweb_browser.browser.desk
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import io.ktor.http.U... | 60 | Kotlin | 4 | 11 | b9b39e294badbb02eeb3a3a6d1851fd5105bd09f | 7,599 | dweb_browser | MIT License |
app/src/main/java/com/rokoblak/chatbackup/feature/home/HomeViewModel.kt | oblakr24 | 598,672,859 | false | {"Kotlin": 257266} | package com.rokoblak.chatbackup.feature.home
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import app.cash... | 0 | Kotlin | 0 | 2 | ebca08b724a7663ec0cf36b70278b876cc0e315a | 10,182 | chat-backup-app | Apache License 2.0 |
app/src/main/java/com/sedsoftware/yaptalker/data/network/site/YapLoader.kt | srihi | 117,938,951 | true | {"Kotlin": 417819, "IDL": 1260, "Shell": 1229, "Prolog": 873, "CSS": 50} | package com.sedsoftware.yaptalker.data.network.site
import com.sedsoftware.yaptalker.data.parsed.ActiveTopicsPageParsed
import com.sedsoftware.yaptalker.data.parsed.BookmarksParsed
import com.sedsoftware.yaptalker.data.parsed.ForumPageParsed
import com.sedsoftware.yaptalker.data.parsed.ForumsListParsed
import com.seds... | 0 | Kotlin | 0 | 0 | 032efc21803c44ef95b380191dae4eedb3591d26 | 8,598 | YapTalker | Apache License 2.0 |
src/main/kotlin/gg/flyte/keyforge/PluginTemplate.kt | keyforgecloud | 808,419,504 | false | {"Kotlin": 2202} | package gg.flyte.keyforge
import cloud.keyforge.keyforge.KeyforgeAPI
import com.google.gson.Gson
import gg.flyte.keyforge.command.SetKeyCommand
import gg.flyte.keyforge.listener.PlayerListeners
import gg.flyte.twilight.twilight
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import revxrsal.commands.... | 5 | Kotlin | 0 | 0 | be211c1db54c66deb3e2f16fb36a6ff86b011dcc | 1,614 | auth-plugin-example | MIT License |
room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/javac/JavacFiler.kt | JetBrains | 351,708,598 | true | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 10 | Java | 16 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 1,603 | androidx | Apache License 2.0 |
app/src/main/java/com/example/wordsapp/data/SettingsDataStore.kt | FranciscoLisboaPoatek | 674,229,720 | false | null | package com.example.wordsapp.data
import android.content.Context
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.em... | 0 | Kotlin | 0 | 0 | d5ee1f8a94812025d30abc6eeae31f7102d3639c | 1,408 | Words | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/extensions/WebClientWrapper.kt | ministryofjustice | 572,524,532 | false | {"Kotlin": 746805, "Python": 32511, "Shell": 13474, "Dockerfile": 1204, "Makefile": 684} | package uk.gov.justice.digital.hmpps.hmppsintegrationevents.extensions
import org.springframework.http.HttpMethod
import org.springframework.http.HttpStatus
import org.springframework.web.reactive.function.BodyInserters
import org.springframework.web.reactive.function.client.ExchangeStrategies
import org.springframewo... | 3 | Kotlin | 1 | 2 | d77c78a1644ae597e429cc50b2c1717b84ba68e9 | 3,601 | hmpps-integration-api | MIT License |
PlayerDemo/AUIVideoCommon/database/src/main/java/com/aliyun/video/database/entity/VideoPlayRecordInfo.kt | aliyunvideo | 554,213,214 | false | {"Java": 6071395, "Kotlin": 665216, "GLSL": 3598, "HTML": 1810} | package com.aliyun.video.database.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(primaryKeys = ["uid", "video_id"])
data class VideoPlayRecordInfo(
@ColumnInfo(name = "uid")
val uid: Long,
@ColumnInfo(name = "video_id")
val vid: String,
@... | 5 | Java | 5 | 17 | f784491cfc5d27c2f77b7cd7d69438dfa991cb20 | 465 | MONE_demo_opensource_android | MIT License |
src/main/kotlin/com/baulsupp/oksocial/util/FileContent.kt | umerkiani | 129,725,910 | true | {"Kotlin": 426653, "Shell": 9764} | package com.baulsupp.oksocial.util
import org.apache.commons.io.FileUtils
import org.apache.commons.io.IOUtils
import java.io.File
import java.io.IOException
import java.nio.charset.Charset
import java.nio.charset.StandardCharsets
object FileContent {
@Throws(IOException::class)
fun readParamBytes(param: String)... | 0 | Kotlin | 0 | 0 | f7e496f47500a1c3bb0b86d0ac239f4fb46e15f3 | 922 | oksocial | Apache License 2.0 |
test-suite-kotlin/src/test/kotlin/io/micronaut/docs/config/mapFormat/EngineConfig.kt | xuyukuan | 227,128,310 | false | null | package io.micronaut.docs.config.mapFormat
// tag::imports[]
import io.micronaut.context.annotation.ConfigurationProperties
import javax.validation.constraints.Min
import io.micronaut.core.convert.format.MapFormat
// end::imports[]
// tag::class[]
@ConfigurationProperties("my.engine")
class EngineConfig {
@Min(1... | 0 | null | 0 | 1 | d4a5f4a4a52da7ad88f782f3e0765aaacee3b4ae | 482 | micronaut-core | Apache License 2.0 |
app/src/main/java/io/wso2/android/api_authenticator/sdk/sample/util/navigation/NavDestination.kt | Achintha444 | 731,559,375 | false | {"Kotlin": 149112} | package io.wso2.android.api_authenticator.sdk.sample.util.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import io.wso2.android.api_authenticator.sdk.models.authorize_flow.Author... | 0 | Kotlin | 0 | 0 | ad79cc34fb29da0b1b03af7edc686f36e34742df | 2,076 | wso2-android-api-authenticator-sdk | Apache License 2.0 |
app/src/main/java/com/a10miaomiao/bilimiao/store/Store.kt | 10miaomiao | 142,169,120 | false | null | package com.a10miaomiao.bilimiao.store
class Store (
){
} | 5 | Java | 7 | 143 | b17656c07880216500edc4c90b2bf5f903f745fa | 68 | bilimiao2 | Apache License 2.0 |
notifications-permissions/src/commonMain/kotlin/Permission.kt | splendo | 191,371,940 | false | null | /*
Copyright (c) 2020. Splendo Consulting B.V. The Netherlands
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 ... | 89 | Kotlin | 3 | 93 | 6d2d2ff964d13ccb2768aa336fa7ef9941959e96 | 1,852 | kaluga | Apache License 2.0 |
app/src/main/java/io/wso2/android/api_authenticator/sdk/sample/presentation/screens/landing_screen/LandingScreenState.kt | Achintha444 | 731,559,375 | false | {"Kotlin": 253341, "Java": 1580} | package io.wso2.android.api_authenticator.sdk.sample.presentation.screens.landing_screen
data class LandingScreenState(
val isLoading: Boolean = false,
val error: String = ""
)
| 0 | Kotlin | 0 | 0 | a4928ccd62e8ca1807e218d78c0270df65d96a5c | 186 | wso2-android-api-authenticator-sdk | Apache License 2.0 |
core/src/pl/shockah/godwit/swift/SwiftLet.kt | Shockah | 208,994,522 | false | null | package pl.shockah.godwit.swift
inline fun <T1, T2> let(
t1: () -> T1?,
t2: () -> T2?,
block: (T1, T2) -> Unit
) {
block(
t1() ?: return,
t2() ?: return
)
}
inline fun <T1, T2, T3> let(
t1: () -> T1?,
t2: () -> T2?,
t3: () -> T3?,
block: (T1, T2, T3) -> Unit
) {
block(
t1() ?: return,
t2(... | 0 | Kotlin | 0 | 0 | e6290497e5f4780d2e2b337df8fb498a49c75087 | 1,171 | Unikorn | Apache License 2.0 |
networking/src/test/kotlin/never/ending/splendor/networking/moshi/HttpUrlAdapterTest.kt | AndrewReitz | 222,597,616 | true | {"Kotlin": 249060, "HTML": 28014} | package nes.networking.moshi
import com.google.common.truth.Truth.assertThat
import com.squareup.moshi.Moshi
import nes.networking.networkingModule
import nes.networking.phishin.model.Track
import okhttp3.HttpUrl.Companion.toHttpUrl
import org.kodein.di.DI
import org.kodein.di.DIAware
import org.kodein.di.instance
imp... | 10 | Kotlin | 0 | 4 | c01c7be00045c87bb869d9d3ecd6277ca0bed033 | 991 | never-ending-splendor | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/datadonation/safetynet/DeviceAttestation.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.datadonation.safetynet
import de.rki.coronawarnapp.appconfig.ConfigData
import de.rki.coronawarnapp.appconfig.SafetyNetRequirements
import de.rki.coronawarnapp.server.protocols.internal.ppdd.PpacAndroid
interface DeviceAttestation {
/**
* Will return the attestation result again... | 6 | null | 8 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 1,433 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/sd/demo/xlog/MainActivity.kt | zj565061763 | 724,446,848 | false | {"Kotlin": 46471} | package com.sd.demo.xlog
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.sd.demo.xlog.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private val _binding by lazy { ActivityMainBinding.inflate(layoutInflater) }
overr... | 0 | Kotlin | 0 | 9 | 2b0acd98154ae1deea2aab847a8620a1b9d6b576 | 848 | xlog | MIT License |
src/main/kotlin/org/vitrivr/cottontail/database/queries/planning/nodes/physical/sources/RangedIndexScanPhysicalOperatorNode.kt | vitrivr | 160,775,368 | false | null | package org.vitrivr.cottontail.database.queries.planning.nodes.physical.sources
import org.vitrivr.cottontail.database.column.ColumnDef
import org.vitrivr.cottontail.database.entity.Entity
import org.vitrivr.cottontail.database.index.Index
import org.vitrivr.cottontail.database.index.IndexTx
import org.vitrivr.cottont... | 8 | Kotlin | 11 | 14 | b5546015ae69013649b25a75b261b2a835469d0a | 5,731 | cottontaildb | MIT License |
engine/src/main/java/com/drake/engine/swipeback/DecelerateAnimator.kt | liangjingkanji | 208,222,977 | false | null | /*
* Copyright (C) 2018 Drake, Inc. https://github.com/liangjingkanji
*
* 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 requir... | 0 | Java | 7 | 43 | 6867772f8e1bbad31c1b6025d4a6f762bdcae2d5 | 18,668 | Engine | Apache License 2.0 |
Barlom-Client-JS/src/test/kotlin/org/barlom/presentation/tests/AllTests.kt | martin-nordberg | 82,682,055 | false | null | package org.barlom.presentation.tests
import org.barlomx.infrastructure.uuids.testUuids
import org.w3c.dom.get
import kotlin.browser.window
fun runTests() : Boolean {
val qunit: dynamic = window["QUnit"]
if ( qunit == undefined ) {
return false
}
qunit.test( "hello test") { assert ->
... | 0 | Kotlin | 0 | 0 | 337b46f01f6eec6dfb3b86824c26f1c103e9d9a2 | 515 | ZZ-Barlom | Apache License 2.0 |
Barlom-Client-JS/src/test/kotlin/org/barlom/presentation/tests/AllTests.kt | martin-nordberg | 82,682,055 | false | null | package org.barlom.presentation.tests
import org.barlomx.infrastructure.uuids.testUuids
import org.w3c.dom.get
import kotlin.browser.window
fun runTests() : Boolean {
val qunit: dynamic = window["QUnit"]
if ( qunit == undefined ) {
return false
}
qunit.test( "hello test") { assert ->
... | 0 | Kotlin | 0 | 0 | 337b46f01f6eec6dfb3b86824c26f1c103e9d9a2 | 515 | ZZ-Barlom | Apache License 2.0 |
src/main/kotlin/org/rust/ide/inspections/fixes/RemoveVariableFix.kt | Kobzol | 174,706,351 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.inspections.fixes
import com.intellij.codeInspection.LocalQuickFixOnPsiElement
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
... | 0 | null | 0 | 4 | 7d5f70bcf89dcc9c772efbeecf20fea7b0fb331e | 2,154 | intellij-rust | MIT License |
app/src/main/java/com/edgar/mercadosearch/data/api/ValueXX.kt | turco082 | 220,477,171 | false | null | package com.edgar.mercadosearch.data.api
data class ValueXX(
val id: String?,
val name: String?,
val source: Int?,
val struct: Any?
) | 0 | Kotlin | 0 | 0 | 74a0cc1b8515e40130ce3c4e1e4c7e5ea40e2468 | 150 | mercadoserach | Apache License 2.0 |
core/src/main/kotlin/core/ems/service/article/AdminDeleteArticleAlias.kt | kspar | 160,047,508 | false | {"Kotlin": 1278969, "HTML": 333112, "CSS": 89074, "Python": 10393, "JavaScript": 536, "Shell": 509} | package core.ems.service.article
import core.conf.security.EasyUser
import core.db.ArticleAlias
import core.ems.service.assertArticleAliasExists
import core.ems.service.assertArticleExists
import core.ems.service.cache.CachingService
import core.ems.service.cache.articleCache
import core.ems.service.idToLongOrInvalidR... | 1 | Kotlin | 3 | 5 | f77224b74948615a37571a7043b1566bce1d875f | 1,855 | easy | MIT License |
library/src/main/java/cc/shinichi/library/glide/FileTarget.kt | SherlockGougou | 134,252,514 | false | null | package cc.shinichi.library.glide
import android.graphics.drawable.Drawable
import com.bumptech.glide.request.Request
import com.bumptech.glide.request.target.SizeReadyCallback
import com.bumptech.glide.request.target.Target
import com.bumptech.glide.request.transition.Transition
import java.io.File
/**
* @author 工藤... | 24 | null | 248 | 2,137 | d0f719faf972b6396bde79d7e8d1f3d613bb71b9 | 1,133 | BigImageViewPager | Apache License 2.0 |
library/src/main/java/cc/shinichi/library/glide/FileTarget.kt | SherlockGougou | 134,252,514 | false | null | package cc.shinichi.library.glide
import android.graphics.drawable.Drawable
import com.bumptech.glide.request.Request
import com.bumptech.glide.request.target.SizeReadyCallback
import com.bumptech.glide.request.target.Target
import com.bumptech.glide.request.transition.Transition
import java.io.File
/**
* @author 工藤... | 24 | null | 248 | 2,137 | d0f719faf972b6396bde79d7e8d1f3d613bb71b9 | 1,120 | BigImageViewPager | Apache License 2.0 |
ktx/src/main/java/luyao/util/ktx/base/BaseVMActivity.kt | 1136346879 | 217,225,925 | false | {"Java": 24856499, "C": 21459227, "C++": 8513835, "Makefile": 4969570, "Perl": 1895544, "Shell": 390309, "Assembly": 227584, "Objective-C": 225560, "Kotlin": 154742, "Python": 65019, "CMake": 35258, "Objective-C++": 25631, "Go": 13337, "M4": 3970} | package luyao.util.ktx.base
import android.os.Bundle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
/**
* Created by luyao
* on 2019/5/31 16:16
*/
abstract class BaseVMActivity<VM : BaseViewMode... | 1 | Java | 1 | 1 | 3e589f32af157ecd5ea8c969a90e4c4f0e362ca1 | 1,077 | TelegramWdxKtx | Apache License 2.0 |
platform/platform-impl/src/com/intellij/ide/customize/transferSettings/TransferSettingsProjectActivity.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.customize.transferSettings
import com.intellij.ide.IdeBundle
import com.intellij.ide.customize.transferSettings.models.IdeVersion
import com.intellij.ide.customize.transferS... | 249 | null | 5023 | 15,928 | 9ba394021dc73a3926f13d6d6cdf434f9ee7046d | 3,604 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/hwangtube/model/VideoModel.kt | tutorhwang | 737,711,501 | false | {"Kotlin": 19829} | package com.example.hwangtube.data.model
import com.google.gson.annotations.SerializedName
data class VideoModel(
@SerializedName("etag")
val etag: String,
@SerializedName("items")
val items: List<Item>,
@SerializedName("kind")
val kind: String,
@SerializedName("nextPageToken")
val nex... | 0 | Kotlin | 0 | 0 | c354210fa230ffabfbb8e21dd2fdb89beae91b11 | 721 | HwangTube | MIT License |
uranium-swing/src/main/kotlin/pl/karol202/uranium/swing/layout/overlay/SwingOverlayLayout.kt | karol-202 | 269,320,433 | false | null | package pl.karol202.uranium.swing.layout.overlay
import pl.karol202.uranium.core.common.AutoKey
import pl.karol202.uranium.core.common.UProps
import pl.karol202.uranium.core.element.component
import pl.karol202.uranium.core.render.URenderScope
import pl.karol202.uranium.core.render.render
import pl.karol202.uranium.sw... | 0 | Kotlin | 0 | 0 | d15bbc869a1dac11285d9329a49caee32345f63b | 2,653 | uranium-swing | MIT License |
app/src/main/java/com/shakebugs/demo/ui/welcome/WelcomeFragment.kt | shakebugs | 433,023,397 | false | {"Kotlin": 29528} | package com.shakebugs.demo.ui.welcome
import android.graphics.Color
import android.os.Bundle
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyc... | 0 | Kotlin | 0 | 2 | 9e70c83f8f6c0fcfc99aa562a8fa723e6f6fe1b3 | 2,323 | shake-demo-android | MIT License |
conformance/common/src/main/kotlin/com/connectrpc/conformance/ssl/TestSuite.kt | connectrpc | 604,763,682 | false | null | // Copyright 2022-2023 Buf Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 5 | null | 6 | 69 | 7fcbbbea928f0e74b5dbb2316bb5a5b000b364cd | 1,762 | connect-kotlin | Apache License 2.0 |
core-api/core/src/main/java/love/forte/simbot/core/filter/AnnotationFiltersListenerFilter.kt | simple-robot | 554,852,615 | false | null | /*
*
* * Copyright (c) 2021. ForteScarlet All rights reserved.
* * Project simple-robot
* * File MiraiAvatar.kt
* *
* * You can contact the author through the following channels:
* * github https://github.com/ForteScarlet
* * gitee https://gitee.com/ForteScarlet
* * email <EMAIL>
* * QQ 11... | 0 | Kotlin | 0 | 3 | c5d7c9ca8c81b2bddc250090739d7c7d0c110328 | 9,598 | simple-robot-v2 | Apache License 2.0 |
app/src/androidTest/java/mobi/lab/hardwarekeybasedencryptedstoragetester/util/BaseInstrumentationTest.kt | LabMobi | 569,762,507 | false | null | package mobi.lab.hardwarekeybasedencryptedstoragetester.util
import android.content.Context
import androidx.test.espresso.IdlingRegistry
import androidx.test.espresso.IdlingResource
import androidx.test.platform.app.InstrumentationRegistry
import mobi.lab.hardwarekeybasedencryptedstoragetester.TestApp
import mobi.lab.... | 0 | Kotlin | 0 | 0 | 74578ddac67d8ab1a03b00e987e0a3e65c5e5433 | 906 | HardwareKeyBasedEncryptedStorageTesterAndroid | Apache License 2.0 |
common/src/test/kotlin/spp/probe/ProbeConfigurationTest.kt | sourceplusplus | 421,243,490 | false | null | /*
* Source++, the continuous feedback platform for developers.
* Copyright (C) 2022-2023 CodeBrig, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | 4 | Kotlin | 1 | 1 | eb42eedd217b32e75665f559e30a4334db263dbe | 3,881 | probe-jvm | Apache License 2.0 |
src/main/kotlin/me/arcanox/lib/common/tiles/TileEntityBase.kt | ArcanoxDragon | 312,719,271 | false | null | package me.arcanox.lib.common.tiles
import net.minecraft.tileentity.TileEntity
import net.minecraft.tileentity.TileEntityType
abstract class TileEntityBase(type: TileEntityType<out TileEntity>) : TileEntity(type) | 0 | Kotlin | 0 | 0 | 1eb24b2db9b3de90be5ee6ef6817d4d7309faf99 | 214 | ArcanoxLib-MC | MIT License |
android/app/src/main/java/com/algorand/android/modules/sorting/assetsorting/data/repository/AssetSortPreferencesRepositoryImpl.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 <NAME>, LDA
* 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 writing, soft... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,581 | pera-wallet | Apache License 2.0 |
android/app/src/main/kotlin/pandemic/response/framework/MainActivity.kt | OneTrackingFramework | 262,321,696 | false | {"Dart": 15598, "Swift": 404, "Kotlin": 128, "Objective-C": 38} | package pandemic.response.framework
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 0 | Dart | 1 | 0 | 9a7b59a057e322d06bc438b837a67f00b4a0bc80 | 128 | survey-flutter | MIT License |
src/test/java/com/wald/mainject/utils/TestLogger.kt | Waldemared | 338,810,220 | false | null | package com.wald.mainject.utils
import org.slf4j.Logger
import org.slf4j.helpers.NOPLogger
/**
* @author vkosolapov
* @since
*/
class TestLogger(val delegate: Logger) : Logger by delegate {
override fun debug(msg: String?) {
println(msg)
}
}
fun testLogger() = TestLogger(NOPLogger.NOP_LOGGER) | 1 | null | 1 | 1 | eb8ea2dc2697f1d96636cceb1e97ca044b2fd89f | 316 | mainject-core | MIT License |
data/network/src/main/kotlin/com/louisfn/somovie/data/network/response/PaginatedResultsResponse.kt | LouisFn | 571,351,948 | false | {"Kotlin": 500276, "Shell": 779} | package com.louisfn.somovie.data.network.response
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class PaginatedResultsResponse<T>(
@Json(name = "total_results")
val totalResults: Int,
@Json(name = "total_pages")
val totalPages: Int,
@Jso... | 3 | Kotlin | 6 | 23 | 772c90cf46e0056d826344b1f95c559b8101de2d | 411 | SoMovie | MIT License |
data/repository/recents/recentsrepo-impl/src/main/kotlin/com/francescsoftware/weathersample/data/repository/recents/impl/CitiesDatabaseModule.kt | fvilarino | 355,724,548 | false | {"Kotlin": 617977, "Shell": 60} | package com.francescsoftware.weathersample.data.repository.recents.impl
import android.content.Context
import androidx.room.Room
import com.francescsoftware.weathersample.core.injection.AppScope
import com.francescsoftware.weathersample.core.injection.ApplicationContext
import com.francescsoftware.weathersample.core.i... | 6 | Kotlin | 4 | 57 | 539a8ee7e5ebbee00745b39536d26f3bc9eb31d7 | 911 | Weather-Sample | Apache License 2.0 |
features/setting/whatsnew/src/main/kotlin/com/egoriku/grodnoroads/setting/whatsnew/domain/model/ReleaseNotes.kt | egorikftp | 485,026,420 | false | null | package com.egoriku.grodnoroads.settings.whatsnew.domain.model
data class ReleaseNotes(
val versionCode: Int,
val versionName: String,
val notes: String,
val releaseDate: String
) | 2 | null | 1 | 9 | 43fcdea90af3233a29912d196d2ae53e5323855f | 196 | GrodnoRoads | Apache License 2.0 |
faker/tech/src/main/kotlin/io/github/serpro69/kfaker/tech/provider/Vehicle.kt | serpro69 | 174,969,439 | false | null | package io.github.serpro69.kfaker.tech.provider
import io.github.serpro69.kfaker.FakerService
import io.github.serpro69.kfaker.dictionary.YamlCategory
import io.github.serpro69.kfaker.provider.FakeDataProvider
import io.github.serpro69.kfaker.provider.YamlFakeDataProvider
import io.github.serpro69.kfaker.provider.uniq... | 33 | null | 42 | 448 | 20c85c54f4508ee633d2196ec4e43de591eeea60 | 1,817 | kotlin-faker | MIT License |
src/test/kotlin/it/bot/unit/util/MockitoUtils.kt | gturi | 480,951,059 | false | {"Kotlin": 113492, "Shell": 1788, "HTML": 658} | package it.bot.unit.util
import org.mockito.Mockito
object MockitoUtils {
/**
* Fix for mockito error "any(**class**) must not be null"
*/
fun <T> any(type: Class<T>): T = Mockito.any(type)
}
| 0 | Kotlin | 0 | 0 | af641c01ff1ca4e7dda9f04b4fae99c55e2ea8b7 | 213 | all-you-can-eat-bot | MIT License |
english/urban-dictionary-daily/src/main/kotlin/by/jprof/telegram/bot/english/urban_dictionary_daily/model/Mail.kt | JavaBy | 367,980,780 | false | null | package by.jprof.telegram.bot.english.urban_dictionary_daily.model
import kotlinx.serialization.Serializable
@Serializable
data class Mail(
val headers: List<Header>
) {
val subject: String?
get() = headers.firstOrNull { it.name == "Subject" }?.value
}
| 21 | Kotlin | 2 | 2 | 7e0f2c68e3acc9ff239effa34f5823e4ef8212c9 | 271 | jprof_by_bot | MIT License |
threejs-wrapper/src/main/kotlin/info/laht/threekt/extras/curves/QuadricBezierCurve3.kt | Monkopedia | 418,266,570 | true | {"Kotlin": 278325, "JavaScript": 158604, "HTML": 3264} | @file:JsQualifier("THREE")
package info.laht.threekt.extras.curves
import info.laht.threekt.extras.core.Curve
import info.laht.threekt.math.Vector3
open external class QuadricBezierCurve3 : Curve<Vector3> {
constructor(
v0: Vector3 = definedExternally,
v1: Vector3 = definedExternally,
v2... | 0 | Kotlin | 0 | 0 | a0f8ffaaf15f07f1c1f4427128042e8b7ae62f17 | 467 | three-kt-wrapper | MIT License |
src/main/kotlin/org/arxing/bitrisesdk/core/model/request/AbortBuildRequestBody.kt | Arxing | 390,718,612 | false | null | package org.arxing.bitrisesdk.core.model.request
import com.google.gson.annotations.SerializedName
data class AbortBuildRequestBody(
@SerializedName("abort_reason") val abortReason: String,
@SerializedName("abort_with_success") val abortWithSuccess: Boolean = true,
@SerializedName("skip_notifications") va... | 0 | Kotlin | 0 | 0 | 9639ad21b263fd1ece2383e9ca5a8cd0eb3f2022 | 359 | Bitrise-Kotlin-Sdk | Apache License 2.0 |
multipaysdk/src/main/java/com/inventiv/multipaysdk/data/model/type/OtpDirectionFrom.kt | multinetinventiv | 332,757,520 | false | null | package com.inventiv.multipaysdk.data.model.type
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
internal enum class OtpDirectionFrom : Parcelable {
LOGIN, REGISTER
} | 0 | Kotlin | 0 | 0 | a13e2f5faa0fcb9cc8479d83b8cdfcbbb3bb2462 | 204 | MultiPay-Android-Sdk | Apache License 2.0 |
library/igdb/src/main/kotlin/ru/pixnews/library/igdb/dsl/IgdbClientConfig.kt | illarionov | 305,333,284 | 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... | 0 | Kotlin | 0 | 2 | 8912bf1116dd9fe94d110162ff9a302e93af1509 | 2,819 | Pixnews | Apache License 2.0 |
kzen-auto-common/src/commonMain/kotlin/tech/kzen/auto/common/objects/document/registry/model/ObjectRegistryScan.kt | alexoooo | 131,353,826 | false | {"Gradle Kotlin DSL": 7, "Java Properties": 1, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 2, "Kotlin": 565, "YAML": 26, "Java": 26, "XML": 1, "CSS": 3, "JavaScript": 2} | package tech.kzen.auto.common.objects.document.registry.model
import tech.kzen.lib.platform.ClassName
data class ObjectRegistryScan(
val classNames: Set<ClassName>
) | 1 | null | 1 | 1 | 352ad83b12d51b4957e6fda0b943e84543d72849 | 172 | kzen-auto | MIT License |
src/main/kotlin/com/kiptechie/routes/ChatRoutes.kt | kiptechie | 430,393,558 | false | null | package com.kiptechie.routes
import com.kiptechie.rooms.MemberAlreadyExistsException
import com.kiptechie.rooms.RoomController
import com.kiptechie.sessions.ChatSession
import io.ktor.application.*
import io.ktor.http.*
import io.ktor.http.cio.websocket.*
import io.ktor.response.*
import io.ktor.routing.*
import io.kt... | 0 | Kotlin | 0 | 1 | e5598239c5a42436c800fc242d754ada206c79c7 | 1,699 | ktor-chat | MIT License |
core/builtins/src/kotlin/ArrayIntrinsics.kt | guiping | 50,323,841 | true | {"Java": 16009659, "Kotlin": 12242000, "JavaScript": 177557, "Protocol Buffer": 42440, "HTML": 27393, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 5566, "Shell": 4638, "Batchfile": 3703, "IDL": 3441} | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* 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 agre... | 0 | Java | 0 | 1 | aca19ed27a751d7d6b0d276e7d2cfbf579fe1f87 | 5,868 | kotlin | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/CircleC.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
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.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,984 | icons | MIT License |
core/model/src/main/java/org/expenny/core/model/biometric/BiometricStatus.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1159524} | package org.expenny.core.model.biometric
enum class BiometricStatus {
Ready, NotAvailable, TemporaryNotAvailable, AvailableButNotEnrolled,
} | 0 | Kotlin | 3 | 42 | 7e4b8e1a5dfacf5799d5ace2e72cd21f002d6311 | 145 | expenny-android | Apache License 2.0 |
app-inspection/inspectors/network/ide/src/com/android/tools/idea/appinspection/inspectors/network/ide/NetworkInspectorTabProvider.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,700 | android | Apache License 2.0 |
compiler/testData/diagnostics/tests/classObjects/classObjectHeader.kt | JakeWharton | 99,388,807 | false | null | package test
open class ToResolve<SomeClass>(<!UNUSED_PARAMETER!>f<!> : (Int) -> Int)
fun testFun(<!UNUSED_PARAMETER!>a<!> : Int) = 12
class TestSome<P> {
class object : ToResolve<<!INACCESSIBLE_OUTER_CLASS_EXPRESSION!>P<!>>({testFun(it)}) {
}
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 255 | kotlin | Apache License 2.0 |
common/src/commonMain/kotlin/dev/sergiobelda/todometer/common/api/request/UpdateTaskStateRequestBody.kt | serbelga | 301,817,067 | false | null | package dev.sergiobelda.todometer.common.api.request
import kotlinx.serialization.Serializable
@Serializable
data class UpdateTaskStateRequestBody(
val state: String
)
| 16 | Kotlin | 7 | 93 | bd39269ff685f0ac1c487becfa106fb7ece2cf1a | 174 | ToDometer_Kotlin_Multiplatform | Apache License 2.0 |
shared/src/commonMain/kotlin/client_api/UserService.kt | SaigyoujiNexas | 778,354,892 | false | {"Kotlin": 118999, "Swift": 594} | package client_api
import BASE_URL
import entity.account.User
import io.ktor.client.*
import io.ktor.client.request.*
import io.ktor.http.*
import utils.get
class UserService(private val httpClient: HttpClient) {
suspend fun getCurrentUserInfo(token: String): Result<User>{
val domain = "$BASE_URL/user/cur... | 0 | Kotlin | 0 | 0 | db1154a052e446aa64e88afa6b634b7191cd7955 | 470 | SafeTalk | Apache License 2.0 |
src/main/kotlin/net/kunmc/lab/netherblockconverter/logic/BlockConverter.kt | TeamKun | 387,051,822 | false | null | package net.kunmc.lab.netherblockconverter.logic
import net.kunmc.lab.netherblockconverter.Config
import org.bukkit.Location
import org.bukkit.Material
import org.bukkit.World
import org.bukkit.block.data.Directional
import org.bukkit.block.data.type.*
import org.bukkit.entity.Player
class BlockConverter {
compan... | 0 | Kotlin | 0 | 0 | 87475eb7367edda27f820a1e88052fdea9cf40e6 | 8,506 | NetherBlockConverter | MIT License |
VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/quiz/QuizDetailsFragment.kt | ckuessner | 313,282,198 | false | null | package de.tudarmstadt.iptk.foxtrot.vivacoronia.quiz
import android.content.res.ColorStateList
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Frag... | 0 | Kotlin | 0 | 0 | 779a0382c2a3f06ed57f23b25777985bf80db5b8 | 3,015 | vivacoronia-frontend | Apache License 2.0 |
app/src/main/java/io/aethibo/fireshare/ui/utils/ViewExt.kt | primepixel | 321,027,979 | false | null | package io.aethibo.fireshare.ui.utils
import android.content.Context
import android.view.View
import android.view.animation.AnimationUtils
import androidx.interpolator.view.animation.FastOutSlowInInterpolator
import io.aethibo.fireshare.R
import io.aethibo.fireshare.ui.utils.interpolators.BounceInterpolator
fun View.... | 0 | Kotlin | 1 | 3 | 75d672d86095d23dfd90283800116e73a336927c | 1,099 | Fireshare | Apache License 2.0 |
app/src/main/java/com/palkowski/friendupp/Create/LocationPickerScreen.kt | adampalkowski | 650,671,766 | false | null | package com.palkowski.friendupp.Create
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.foundation.bac... | 0 | Kotlin | 0 | 0 | 36851c9f03634467cb3f0457dbc178da87a3559a | 6,734 | FriendUpp | MIT License |
app/src/main/java/com/example/calefit/local/Converters.kt | TeamCaleFIT | 516,233,313 | false | {"Kotlin": 119297} | package com.example.calefit.local
import androidx.room.TypeConverter
import com.example.calefit.data.ExerciseList
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
class Converters {
@TypeConverter
fun exerciseListToJson(value: Li... | 5 | Kotlin | 1 | 1 | da295d50d43ab1c3d22c31011b68c2effd1063ad | 550 | calefit-AOS | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/codedeploy/CfnApplicationPropsDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.codedeploy
import cloudshift.awscdk.common.CdkDslMarker
import... | 4 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 2,958 | awscdk-dsl-kotlin | Apache License 2.0 |
v1_29/src/main/java/de/loosetie/k8s/dsl/impls/VsphereVirtualDiskVolumeSource.kt | loosetie | 283,145,621 | false | null | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("fsType", "storagePolicyID", "storagePoli... | 0 | null | 0 | 2 | 57d56ab780bc3134c43377e647e7f0336a5f17de | 687 | k8s-dsl | Apache License 2.0 |
feature/transaction/src/main/kotlin/ru/resodostudios/cashsense/feature/transaction/TransactionUiState.kt | f33lnothin9 | 674,320,726 | false | {"Kotlin": 200002} | package ru.resodostudios.cashsense.feature.transaction
import ru.resodostudios.cashsense.core.model.data.Category
data class TransactionUiState(
val walletOwnerId: String = "",
val description: String = "",
val amount: String = "",
val date: String = "",
val time: String = "",
val category: Ca... | 0 | Kotlin | 0 | 1 | 7fb8aba2342579e81a52d0fc43008cb1b5824ae9 | 378 | cashsense | Apache License 2.0 |
Problems/Algorithms/867. Transpose Matrix/Transpose.kt | xuedong | 189,745,542 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Python": 498, "Kotlin": 443, "Java": 343, "Go": 55, "C++": 150, "Rust": 141, "Ruby": 2, "Dart": 1, "Erlang": 1, "Racket": 1, "Elixir": 1, "Scala": 2, "C": 2, "JavaScript": 22, "C#": 2, "Shell": 2, "SQL": 34, "JSON": 1, "Swift": 1, "TSX": 1} | class Solution {
fun transpose(matrix: Array<IntArray>): Array<IntArray> {
val n = matrix.size
val m = matrix[0].size
val ans = Array(m) { IntArray(n) { 0 } }
for (j in 0..m-1) {
for (i in 0..n-1) {
ans[j][i] = matrix[i][j]
}
}... | 0 | Kotlin | 0 | 1 | 64e27269784b1a31258677ab03da00f341c2fa98 | 358 | leet-code | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/track/myanimelist/MyAnimeList.kt | jmir1 | 718,862,527 | false | {"Kotlin": 4265900} | package eu.kanade.tachiyomi.data.track.myanimelist
import android.graphics.Color
import androidx.annotation.StringRes
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.database.models.anime.AnimeTrack
import eu.kanade.tachiyomi.data.database.models.manga.MangaTrack
import eu.kanade.tachiyomi.data.track.Anim... | 1 | Kotlin | 0 | 2 | 2584e3892d2571eac4b86702a4fe13fa76e46332 | 8,567 | aniyomi-omegalul | Apache License 2.0 |
mui-kotlin/src/jsMain/kotlin/mui/material/AccordionSummary.classes.kt | karakum-team | 387,062,541 | false | {"Kotlin": 2961484, "TypeScript": 2249, "JavaScript": 1167, "HTML": 724, "CSS": 86} | // Automatically generated - do not modify!
@file:JsModule("@mui/material/AccordionSummary")
package mui.material
import web.cssom.ClassName
external interface AccordionSummaryClasses {
/** Styles applied to the root element. */
var root: ClassName
/** State class applied to the root element, children ... | 0 | Kotlin | 5 | 35 | d12f6b1ad1b215ad7d3d9f27e24d48ada9b7fe2d | 1,493 | mui-kotlin | Apache License 2.0 |
src/main/kotlin/io/usoamic/usoamickt/exception/NodeProviderNotFound.kt | usoamic | 197,898,663 | false | null | package io.usoamic.usoamickt.exception
import io.usoamic.usoamickt.enumcls.NetworkType
import io.usoamic.usoamickt.enumcls.NodeProvider
class NodeProviderNotFound(provider: NodeProvider, networkType: NetworkType) : Exception("Provider $provider of $networkType not found") | 0 | Kotlin | 0 | 0 | 07fc4f2ed47f7d98b99fdcc6526e53f05a1813cb | 274 | usoamickt | MIT License |
common/src/jvmMain/kotlin/tk/zwander/commonCompose/view/MacMenuBar.kt | zacharee | 342,079,605 | false | null | package tk.zwander.commonCompose.view
import androidx.compose.runtime.Composable
import androidx.compose.ui.input.key.Key
import androidx.compose.ui.input.key.KeyShortcut
import androidx.compose.ui.window.ApplicationScope
import androidx.compose.ui.window.FrameWindowScope
import androidx.compose.ui.window.MenuBar
impo... | 8 | null | 98 | 939 | 6a61a0b1f596ca143f1ec4a7989d0a5632f9685c | 2,746 | SamloaderKotlin | MIT License |
app/src/main/java/com/example/android/devbyteviewer/DevByteApplication.kt | abubaker-cs | 347,622,895 | false | null | /*
* Copyright (C) 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 1 | null | 1 | 1 | f87ee4d519fb8bef957a75bd9e35feb264a15050 | 3,480 | codelabs-DevBytes | Apache License 2.0 |
androidApp/src/main/java/com/EENX15_22_17/digital_journal/android/ui/theme/Shape.kt | j-nordin | 464,391,828 | false | {"Kotlin": 187041, "Swift": 345} | package com.EENX15_22_17.digital_journal.android.ui.theme
import androidx.compose.foundation.shape.CornerSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
import androidx.compose.ui.unit.dp
val DigitalJournalShapes = Shapes(
small = RoundedCornerShape(2.dp),
... | 0 | Kotlin | 0 | 3 | dea51ca7126887b210bad1243c97c6ad5fdbc072 | 615 | Digital-Journal | MIT License |
room/room-runtime/src/commonMain/kotlin/androidx/room/RoomDatabaseConstructor.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,983 | androidx | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/Properties.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: Properties
*
* Full name: System`Properties
*
* Usage: Properties is an option that allows spe... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 979 | mathemagika | Apache License 2.0 |
compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt | zeesh49 | 93,485,627 | true | {"Java": 18228514, "Kotlin": 16158047, "JavaScript": 179664, "Protocol Buffer": 44176, "HTML": 42797, "Lex": 17538, "ANTLR": 9689, "Groovy": 9424, "CSS": 9358, "IDL": 5414, "Shell": 4704, "Batchfile": 3703} | // !DIAGNOSTICS: -UNUSED_VARIABLE
fun <T> foo(array: Array<Array<T>>): Array<Array<T>> = array
fun test(array: Array<Array<out Int>>) {
<!TYPE_INFERENCE_CANNOT_CAPTURE_TYPES!>foo<!>(array)
val f: Array<out Array<out Int>> = <!TYPE_INFERENCE_CANNOT_CAPTURE_TYPES!>foo<!>(array)
} | 0 | Java | 0 | 1 | 261a30029907fedcecbe760aec97021d85a9ba9a | 289 | kotlin | Apache License 2.0 |
bezier/src/main/java/io/channel/bezier/icon/FullscreenExit.kt | channel-io | 736,533,981 | false | {"Kotlin": 2421787, "Python": 12500} | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... | 7 | Kotlin | 3 | 6 | 39cd58b0dd4a1543d54f0c1ce7c605f33ce135c6 | 3,144 | bezier-compose | MIT License |
app/src/main/java/com/typeup/util/SharedPref.kt | marko-mihajlovic | 399,950,230 | false | null | package com.typeup.util
import android.content.Context
import android.content.SharedPreferences
import com.typeup.TypeUpApp
object SharedPref {
private const val prefKey = "appPref"
fun get(): SharedPreferences {
return TypeUpApp.appContext.getSharedPreferences(prefKey, Context.MODE_PRIVATE)
}
... | 0 | Kotlin | 0 | 1 | 8c557f77080cb1cd8b0f58406cb1a3d4fb5b1845 | 401 | TypeUp | MIT License |
fns-hl7-pipeline/fn-redactor/src/main/kotlin/gov/cdc/dex/hl7/Function.kt | CDCgov | 510,836,864 | false | null | package gov.cdc.dex.hl7
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import com.microsoft.azure.functions.*
import com.microsoft.azure.functions.annotation.*
import gov.cdc.dex.azure.EventHubMetadata
import gov.cdc.dex.hl7.model.Reda... | 119 | null | 14 | 9 | ac95106a6f67def1666ec4d1035fd690f6725b93 | 9,419 | data-exchange-hl7 | Apache License 2.0 |
dids/src/main/kotlin/web5/sdk/dids/methods/jwk/DidJwk.kt | TBD54566975 | 681,803,102 | false | null | package web5.sdk.dids.methods.jwk
import com.nimbusds.jose.Algorithm
import com.nimbusds.jose.JWSAlgorithm
import com.nimbusds.jose.jwk.Curve
import com.nimbusds.jose.jwk.JWK
import com.nimbusds.jose.jwk.KeyUse
import foundation.identity.did.DID
import foundation.identity.did.DIDDocument
import foundation.identity.did... | 59 | null | 7 | 6 | bddd58f76d473294679cd5958d7bdc5ddc8732cf | 7,318 | web5-kt | Apache License 2.0 |
src/main/kotlin/com/sam/action/command/ListView.kt | SymphonyZhang | 566,757,181 | false | null | package com.sam.action.command
class ListView(var command: Command) {
fun getList(){
println("首页请求")
val result = command.execute()
println("当前列表: $result")
}
} | 0 | Kotlin | 0 | 0 | b3d54708118e0d3741bcf93be84df0a25723963b | 194 | Design_Pattern | Apache License 2.0 |
geary-papermc-spawning/src/main/kotlin/com/mineinabyss/geary/papermc/spawning/SpawningFeature.kt | MineInAbyss | 592,086,123 | false | null | package com.mineinabyss.geary.papermc.spawning
import com.charleskorn.kaml.Yaml
import com.charleskorn.kaml.YamlConfiguration
import com.mineinabyss.geary.papermc.Feature
import com.mineinabyss.geary.papermc.FeatureContext
import com.mineinabyss.geary.papermc.gearyPaper
import com.mineinabyss.geary.papermc.spawning.ch... | 1 | null | 0 | 5 | e2fffea48d58db4ea9aa1a58ef46171b29a8a7eb | 2,664 | geary-papermc | MIT License |
src/main/kotlin/uk/gov/justice/digital/assessments/api/groups/GroupSummaryDto.kt | ministryofjustice | 289,880,556 | false | null | package uk.gov.justice.digital.assessments.api.groups
import io.swagger.v3.oas.annotations.media.Schema
import uk.gov.justice.digital.assessments.jpa.entities.refdata.GroupSummaryEntity
import java.util.UUID
class GroupSummaryDto(
@Schema(description = "Group Identifier", example = "<uuid>")
val groupId: UUID,
... | 6 | Kotlin | 1 | 2 | 840f5a966b3d61579ae4891226619dcb1fe9783f | 1,127 | hmpps-assessments-api | MIT License |
app/src/main/kotlin/com/vgaidarji/cimatters/LoginActivity.kt | vgaidarji | 73,719,271 | false | {"Kotlin": 5233, "Shell": 3634} | package com.vgaidarji.cimatters
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import com.vgaidarji.cimatters.databinding.ActivityLoginBinding
class LoginActivity : AppCompatActivity(), LoginView {
privat... | 13 | Kotlin | 30 | 128 | d51d4e1ebdfa0ecd07ef8f2cdcc3879514ad3774 | 1,319 | ci-matters | Apache License 2.0 |
recyclerviewscreen/shot/src/androidTest/java/com/example/road/to/effective/snapshot/testing/recyclerviewscreen/shot/fragment/LanguageTrainingFragmentWithParameterizedRunnerTest.kt | sergio-sastre | 394,010,429 | false | {"Kotlin": 633137} | package com.example.road.to.effective.snapshot.testing.recyclerviewscreen.shot.fragment
import com.example.road.to.effective.snapshot.testing.recyclerviewscreen.mvvm.LanguageTrainingFragment
import com.example.road.to.effective.snapshot.testing.testannotations.FragmentTest
import com.example.road.to.effective.snapshot... | 3 | Kotlin | 18 | 245 | 58dac3d8eabc0934b99620872e4c01fab71fe574 | 3,079 | Android-screenshot-testing-playground | MIT License |
core/src/main/java/com/theone/mvvm/core/util/PictureSelectorUtil.kt | Theoneee | 391,850,188 | false | null | package com.theone.mvvm.core.app.util
import androidx.fragment.app.Fragment
import com.luck.picture.lib.PictureSelector
import com.luck.picture.lib.config.PictureConfig
import com.luck.picture.lib.config.PictureMimeType
import com.luck.picture.lib.entity.LocalMedia
import com.luck.picture.lib.listener.OnResultCallback... | 0 | Kotlin | 1 | 5 | d0177b6ed496d0f8ec98b41322bd22ef2fa9b252 | 5,598 | TheDemo-MVVM | Apache License 2.0 |
graphene-writer/src/main/kotlin/com/graphene/writer/store/key/elasticsearch/ElasticsearchClientFactory.kt | graphene-monitoring | 208,468,543 | false | null | package com.graphene.writer.store.key
import com.graphene.common.key.RotationProperty
import javax.annotation.PostConstruct
import javax.annotation.PreDestroy
import org.apache.http.HttpHost
import org.springframework.stereotype.Component
@Component
class ElasticsearchClientFactory {
lateinit var elasticsearchClie... | 8 | null | 4 | 34 | 6bba2e000a744411322dfa19769ad8608463f6cc | 1,215 | graphene | MIT License |
plugins/set-time-out/jvm/src/test/kotlin/com/intuit/playerui/plugins/settimeout/SetTimeoutPluginTest.kt | player-ui | 513,673,239 | false | {"TypeScript": 1216429, "Kotlin": 940693, "Swift": 576236, "Starlark": 118741, "C++": 43679, "JavaScript": 11082, "Shell": 10507, "Ruby": 5513, "MDX": 2317, "Smarty": 2143, "CSS": 1627, "Just": 1552} | package com.intuit.player.plugins.settimeout
import com.intuit.player.jvm.core.bridge.Node
import com.intuit.player.jvm.core.bridge.Promise
import com.intuit.player.jvm.core.bridge.deserialize
import com.intuit.player.jvm.core.bridge.toCompletable
import com.intuit.player.jvm.core.player.state.errorState
import com.in... | 82 | TypeScript | 46 | 71 | a363556f629d0556568fe2696338ec7f57ff2ccc | 4,761 | player | MIT License |
android/FactorioCompanion/app/src/main/java/ro/upb/factoriocompanion/StatsActivity.kt | vladcorneci | 181,322,616 | false | {"Kotlin": 21464, "Python": 6049, "Lua": 2180} | package ro.upb.factoriocompanion
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.IBinder
import android.support.v7.widget.LinearLayoutMan... | 0 | Kotlin | 0 | 0 | 68e106f8084caf19781fd2b7b05a52f3e07f49bf | 3,985 | Factorio-Companion | MIT License |
app/src/main/java/com/github/zharovvv/open/source/weather/app/data/repositories/BaseObservableRepository.kt | ZharovVV | 398,004,967 | false | null | package com.github.zharovvv.open.source.weather.app.repository
import com.github.zharovvv.open.source.weather.app.database.entity.PerishableEntity
import com.github.zharovvv.open.source.weather.app.model.DataState
import com.github.zharovvv.open.source.weather.app.model.LocationModel
import io.reactivex.Observable
imp... | 0 | null | 0 | 4 | a61b17f0a2a1d19b5b243431df294ea1c47eb8a5 | 6,363 | OpenSourceWeatherApp | Apache License 2.0 |
components/ledger/ledger-persistence/testing-datamodel/src/main/kotlin/com/example/ledger/testing/datamodel/utxo/UtxoTransactionMetadataEntity.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package com.example.ledger.testing.datamodel.utxo
import javax.persistence.CascadeType
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.OneToMany
import javax.persistence.Table
import net.corda.v5.base.annotations.CordaSerializable
@CordaSerializable... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 1,752 | corda-runtime-os | Apache License 2.0 |
src/main/kotlin/anissia/domain/session/service/GetLoginInfoItemService.kt | anissia-net | 319,510,882 | false | {"Kotlin": 256865, "HTML": 5480, "HCL": 794} | package anissia.domain.session.core.service
import anissia.domain.session.core.LoginPass
import anissia.domain.session.core.LoginToken
import anissia.domain.session.core.model.GetLoginInfoItemCommand
import anissia.domain.session.core.model.LoginInfoItem
import anissia.domain.session.core.model.Session
import anissia.... | 4 | Kotlin | 4 | 13 | 97b33144b02cee8715e26174650aefa6d5cd9cae | 2,289 | anissia-core | Creative Commons Attribution 4.0 International |
alphonse-validator-lib/src/main/java/com/atthapon/alphonsevalidator/rules/StartsWithRule.kt | atthapon-k | 158,214,450 | false | null | package com.atthapon.alphonsevalidator.rules
class StartsWithRule(val target: String, var errorMsg: String? = null): BaseRule {
override fun validate(text: String): Boolean {
if(text.isEmpty()) return false
return text.startsWith(target)
}
override fun getErrorMessage() = errorMsg
ove... | 1 | null | 1 | 1 | 84bd5c99e21dfb002b2994fec4b7278ed5f231f0 | 384 | alphonse-validator | Apache License 2.0 |
Paging3JetpackComposeDemo/app/src/main/java/com/example/paging3demo/screens/search/SearchViewModel.kt | Youngfellows | 470,202,711 | false | {"Kotlin": 237191} | package com.example.paging3demo.screens.search
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.ExperimentalPagingApi
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.example.paging3demo.data.r... | 0 | Kotlin | 0 | 0 | 046aff540194f6ebc5f97d92c9ba514eff1313d3 | 1,533 | UseCasePaging3.x | Apache License 2.0 |
java/kotlin/src/main/kotlin/cosmos/evidence/v1beta1/QueryAllEvidenceResponseKt.kt | dimitar-petrov | 575,395,653 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/evidence/v1beta1/query.proto
package cosmos.evidence.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun queryAllEvidenceResponse(block: cosmos.evidence.v1beta1.QueryAllEvidenceResponseKt.Dsl.() -> Unit): cosmos.evidence.v1beta1.QueryOuterClass.Quer... | 0 | null | 0 | 0 | cf14cc582765c7d119742a6bbcc216018d85070c | 5,857 | terra.proto | Apache License 2.0 |
android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/splashscreen/SplashScreenPackage.kt | betomoedano | 462,599,485 | false | null | package abi48_0_0.expo.modules.splashscreen
import android.content.Context
import expo.modules.splashscreen.singletons.SplashScreen
import abi48_0_0.expo.modules.core.BasePackage
import abi48_0_0.expo.modules.core.ExportedModule
import abi48_0_0.expo.modules.core.interfaces.ReactActivityLifecycleListener
import expo.m... | 0 | null | 0 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 858 | expo | MIT License |
src/main/kotlin/ph/mcmod/csd/game/RecipeTypeInfo.kt | Phoupraw | 523,310,408 | false | {"Kotlin": 210490, "Java": 56522} | package ph.mcmod.csd.game
import com.simibubi.create.foundation.utility.recipe.IRecipeTypeInfo
import net.minecraft.recipe.Recipe
import net.minecraft.recipe.RecipeSerializer
import net.minecraft.recipe.RecipeType
import net.minecraft.util.Identifier
import net.minecraft.util.registry.Registry
import ph.mcmod.kum.Iden... | 0 | Kotlin | 2 | 4 | b109a90c71df49e2a60840cb7738b2c5aeacfae4 | 971 | CreateSDelight | The Unlicense |
f2-dsl/f2-dsl-cqrs/src/commonMain/kotlin/f2/dsl/cqrs/error/F2ErrorDTO.kt | komune-io | 746,765,045 | false | {"Kotlin": 220116, "Java": 155444, "Gherkin": 24181, "Makefile": 1677, "JavaScript": 1459, "Dockerfile": 963, "CSS": 102} | package f2.dsl.cqrs.error
import com.benasher44.uuid.uuid4
import f2.dsl.cqrs.Problem
import kotlin.js.JsExport
import kotlin.js.JsName
import kotlinx.datetime.Clock
import kotlinx.serialization.Serializable
@JsExport
@JsName("F2ErrorDTO")
interface F2ErrorDTO: Problem {
val id: String?
val timestamp: String
val c... | 1 | Kotlin | 0 | 0 | 28e3393bd225d1602fb530d49489675c0d5de001 | 812 | fixers-f2 | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.