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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/app/nexd/android/ui/helper/transcript/articles/TranscriptArticlesFragment.kt | mkotyk | 257,525,104 | true | {"Java": 144723, "Kotlin": 114564, "Shell": 1827, "Scala": 1080} | package app.nexd.android.ui.helper.transcript.articles
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import androidx.naviga... | 0 | null | 0 | 0 | 6adc2b8c3205751aa65dd0284c725a63c89469ac | 2,242 | nexd-android | MIT License |
src/main/kotlin/com/ale/vncs/codfy/dto/PlaylistTrackData.kt | ale-vncs | 692,113,645 | false | {"Kotlin": 92546, "HTML": 1337} | package com.ale.vncs.codfy.dto
import se.michaelthelin.spotify.model_objects.specification.PlayHistory
import se.michaelthelin.spotify.model_objects.specification.PlaylistTrack
import se.michaelthelin.spotify.model_objects.specification.SavedTrack
import se.michaelthelin.spotify.model_objects.specification.Track
impor... | 0 | Kotlin | 0 | 0 | 0f5f7c238a71486317d169f67aea0461bbcc2488 | 1,004 | codfy-jetbrains | MIT License |
app/src/main/java/com/istu/schedule/data/database/dao/schedule/FavoriteTeachersDao.kt | imysko | 498,018,609 | false | {"Kotlin": 862247} | package com.istu.schedule.data.database.dao.schedule
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.istu.schedule.data.database.entities.schedule.FavoriteTeacherDto
import kotlinx.coroutines.flow.Flow
@Dao
... | 1 | Kotlin | 1 | 2 | 36ff18c29364921c0eb9b09af090b434fca2a36e | 636 | Schedule-ISTU | MIT License |
java/java-analysis-impl/src/com/intellij/codeInspection/apiUsage/ApiUsageUastVisitor.kt | kirpichik | 182,238,844 | false | {"Text": 3537, "XML": 4490, "Ant Build System": 14, "Shell": 33, "Markdown": 23, "Ignore List": 35, "Git Attributes": 8, "Batchfile": 26, "SVG": 1881, "Java": 62093, "C++": 15, "HTML": 2674, "Kotlin": 3426, "DTrace": 1, "Gradle": 49, "Java Properties": 89, "INI": 220, "JFlex": 26, "Groovy": 2937, "XSLT": 109, "JavaScri... | // Copyright 2000-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 file.
package com.intellij.codeInspection.apiUsage
import com.intellij.psi.*
import org.jetbrains.uast.*
import org.jetbrains.uast.visitor.AbstractUastNonRecursiveVisitor
/**
* Non-r... | 1 | null | 1 | 1 | bc2fe124431bd9d73d694517777790c8a119e773 | 13,130 | intellij-community | Apache License 2.0 |
app/src/main/java/com/ablec/myarchitecture/logic/pageslist/DataListModel.kt | AbelChange | 420,311,870 | false | null | package com.ablec.myarchitecture.logic.pageslist
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.viewModelScope
import com.ablec.module_base.http.handleApiCall
import com.ablec.module_base.... | 0 | null | 1 | 1 | 8157307ad46829db7565225a1c820ad7fe3f4a6d | 2,907 | MyArchiteture | Apache License 2.0 |
app/src/main/java/iam/xiaoyuanlv/sdgs/ui/goals/GoalsAdapter.kt | xiaoyuanlv | 443,083,356 | false | {"Kotlin": 14322} | package iam.xiaoyuanlv.sdgs.ui.goals
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
imp... | 0 | Kotlin | 0 | 0 | bad50087fd264ef2d2eb5e4d7e404092caf9a7d3 | 2,084 | SDG | MIT License |
library/src/test/java/com/github/ok100/diffy/DiffyTest.kt | ok100 | 188,475,953 | false | null | /**
* Copyright 2019 <NAME> (@ok100)
*
* 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... | 0 | Kotlin | 1 | 0 | 5a3f8da30e44553f188fdb017b462facc7ef5c1c | 2,299 | diffy | Apache License 2.0 |
AtomicKotlin/Introduction to Objects/Summary 2/Examples/src/ClassBodies.kt | fatiq123 | 726,462,263 | false | {"Kotlin": 370528, "HTML": 6544, "JavaScript": 5252, "Java": 4416, "CSS": 3780, "Assembly": 94} | // Summary2/ClassBodies.kt
package summary2
class NoBody
class SomeBody {
val name = "<NAME>"
}
class EveryBody {
val all = listOf(SomeBody(),
SomeBody(), SomeBody())
}
fun main() {
val nb = NoBody()
val sb = SomeBody()
val eb = EveryBody()
} | 0 | Kotlin | 0 | 0 | 3d351652ebe1dd7ef5f93e054c8f2692c89a144e | 260 | AtomicKotlinCourse | MIT License |
plugins/utils/src/main/kotlin/com/github/softwareplace/springboot/utils/StringUtils.kt | softwareplace | 749,152,259 | false | {"Kotlin": 55590, "Mustache": 12022, "Java": 4578, "Shell": 1081, "Makefile": 535} | package com.github.softwareplace.springboot.utils
import java.util.*
fun String.toCamelCase(): String {
val segments = split('.')
val camelCaseSegments = segments.map { it.parseFirstLetterToUpperCase() }
return camelCaseSegments.joinToString("")
}
fun String.parseFirstLetterToUpperCase() =
replaceFir... | 0 | Kotlin | 0 | 1 | 9d354a27d256335d5e584d88f0ca1404819c206b | 406 | springboot | Apache License 2.0 |
core/src/main/kotlin/com/runkelstein/hoverTranslateWebExtension/core/dictionaryLib/YandexDict.kt | runkelstein | 160,932,515 | false | null | package com.runkelstein.hoverTranslateWebExtension.core.dictionaryLib
import com.runkelstein.hoverTranslateWebExtension.core.cloud.yandex.YandexService
import com.runkelstein.hoverTranslateWebExtension.core.dictionaryLib.IDictionary
import com.runkelstein.hoverTranslateWebExtension.core.dictionaryLib.SearchResult
impo... | 0 | null | 0 | 0 | 76711c4a4dd0671b1254c04ca1c46fa2ce1d55cf | 1,213 | HoverTranslateWebExtension | MIT License |
ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/SpacingAfterKeywordRule.kt | kunny | 91,407,366 | true | {"Kotlin": 96082, "Shell": 6751, "Batchfile": 3622} | package com.gihub.shyiko.ktlint.ruleset.standard
import com.github.shyiko.ktlint.core.Rule
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
import org.jetbrains.kotlin.com.intellij.psi.PsiWhiteSpace
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement
import org.jetbrains.kotlin.com.intell... | 0 | Kotlin | 0 | 0 | ed3af45505d0cb77dc807f84e113ff2b109be22f | 1,785 | ktlint | MIT License |
app/src/main/kotlin/com/okorsun/contactsmine/di/component/AllContactsActivityComponent.kt | korsunoleksandr | 66,847,211 | false | null | package com.okorsun.contactsmine.di.component
import dagger.Component
import com.okorsun.contactsmine.di.UiScope
import com.okorsun.contactsmine.presentation.main.allcontacts.AllContactsPresenter
import com.okorsun.contactsmine.presentation.main.allcontacts.AllContactsView
/**
* Created by okorsun on 30.08.16.
*/
... | 0 | Kotlin | 0 | 0 | 39359a13e4a454df4b80f2473025e44fe33282ca | 488 | ContactsMine | Apache License 2.0 |
extension/moderation/src/main/kotlin/bogus/extension/moderation/Constant.kt | gavenda | 470,871,977 | false | {"Kotlin": 382656, "Dockerfile": 573} | package bogus.extension.moderation
const val EXTENSION_NAME = "moderation" | 0 | Kotlin | 0 | 0 | cca82368bdb87fae6bcf1483af30311b684698c8 | 75 | studio-helper | MIT License |
katch-core/src/commonMain/kotlin/com/katch/core/model/Response.kt | juanchosaravia | 150,040,647 | false | null | /*
* Copyright 2018 Juan Ignacio Saravia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 1 | Kotlin | 0 | 2 | 8fa163e26f721e6b4241d6c0a30c569c055a7c5d | 786 | katch | Apache License 2.0 |
yenaly_libs/src/main/kotlin/com/yenaly/yenaly_libs/utils/_DeviceUtil.kt | YenalyLiew | 524,046,895 | false | {"Kotlin": 663917, "Java": 98193} | @file:Suppress("unused")
package com.yenaly.yenaly_libs.utils
/**
* 通过dp获取相应px值
*/
inline val Number.dp get() = DeviceUtil.dp2px(this.toFloat())
/**
* 通过sp获取相应px值
*/
inline val Number.sp get() = DeviceUtil.sp2px(this.toFloat())
/**
* 获取本地储存状态栏高度px
*/
inline val statusBarHeight get() = DeviceUtil.getStatusBarH... | 16 | Kotlin | 48 | 744 | d9014a75c4883a388c4a26f9f2af960b3af6de0a | 574 | Han1meViewer | Apache License 2.0 |
app/src/main/java/com/efe/games/business/sudoku/listeners/OnChangeListener.kt | antonioalfa22 | 258,270,780 | false | null | package com.efe.games.business.sudoku.listeners
interface OnChangeListener {
fun onChange()
} | 0 | Kotlin | 0 | 2 | ebe51e03f4a91f6f6cdd9b8c9319dfd1694152e9 | 98 | EFE-Games | MIT License |
ui/src/main/java/com/pyamsoft/pydroid/ui/internal/changelog/dialog/ChangeLogDialogViewModel.kt | semihcebrail | 392,469,502 | true | {"Kotlin": 589018} | /*
* Copyright 2020 <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 | null | 0 | 0 | b24ac81ec106add94f29bf894cf02c31aa2c66df | 1,669 | pydroid | Apache License 2.0 |
app/src/main/java/io/agora/flat/ui/compose/FlatTextFiled.kt | netless-io | 358,147,122 | false | null | package io.agora.flat.ui.compose
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.foundat... | 0 | Kotlin | 33 | 46 | 26eb251e2f605c441df1a6be3e83ef23253cb5c9 | 4,282 | flat-android | MIT License |
app/src/main/java/com/istu/schedule/ui/components/base/SIChip.kt | imysko | 498,018,609 | false | null | package com.istu.schedule.ui.components.base
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.... | 2 | Kotlin | 0 | 2 | ebc331edebae2f6f38569a29c9c0b16773f7ede3 | 2,958 | Schedule-ISTU | MIT License |
app/src/main/java/priv/muchia/practice/ui/article/CourseViewModel.kt | MuChia | 501,616,479 | false | {"Kotlin": 81632, "Java": 1827} | package priv.muchia.practice.ui.article
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import priv.muchia.practice.network.Repository
class CourseViewModel : ViewModel() {
private val refreshData: MutableLiveData<Any?> by lazy { MutableLiveData<A... | 0 | Kotlin | 0 | 0 | b5474d36a4b9bf44b34c5d0169a967694aa46671 | 528 | Practice | Apache License 2.0 |
app/src/main/java/edu/stanford/chiajui/mymaps/models/Place.kt | michelle604 | 307,253,819 | false | null | package edu.stanford.chiajui.mymaps.models
import java.io.Serializable
data class Place(val title: String, val description: String, val latitude: Double, val longitude: Double): Serializable | 0 | Kotlin | 0 | 1 | 712be1e834f8065cbc4bae04c45e4fd90ebc8ecd | 192 | MyMaps | Apache License 2.0 |
src/main/kotlin/plugin/BlackDuckPluginManager.kt | blackducksoftware | 190,764,009 | false | null | package plugin
import artifactory.api.BlackDuckPluginApiService
import com.synopsys.integration.blackduck.artifactory.configuration.ConfigurationProperty
import com.synopsys.integration.blackduck.configuration.BlackDuckServerConfig
import com.synopsys.integration.log.IntLogger
import com.synopsys.integration.log.Slf4j... | 0 | Kotlin | 0 | 0 | 1cd99710b9887b36869e3835a44922470a09d4f9 | 2,454 | blackduck-artifactory-automation | Apache License 2.0 |
src/webMain/kotlin/com/cozmicgames/utils/concurrency/LockJS.kt | CozmicGames | 477,147,957 | false | {"Kotlin": 681249} | package com.cozmicgames.utils.concurrency
actual class Lock actual constructor() {
actual inline fun <R> read(block: () -> R): R = block()
actual inline fun <R> write(block: () -> R): R = block()
} | 0 | Kotlin | 0 | 0 | ae80ae3394f6135ded2ef59669a2ffb0b44bc39a | 207 | Kore | MIT License |
http4k-client-apache/src/main/kotlin/org/http4k/client/ApacheClient.kt | k0zakinio | 121,965,736 | true | {"Kotlin": 728486, "JavaScript": 133258, "Java": 49492, "Shell": 6016, "HTML": 2067, "CSS": 568} | package org.http4k.client
import org.apache.http.Header
import org.apache.http.StatusLine
import org.apache.http.client.config.CookieSpecs.IGNORE_COOKIES
import org.apache.http.client.config.RequestConfig
import org.apache.http.client.methods.CloseableHttpResponse
import org.apache.http.client.methods.HttpEntityEnclos... | 0 | Kotlin | 0 | 0 | b1bd42de9b0dfe8ac9fbda3d5998353522295759 | 2,928 | http4k | Apache License 2.0 |
app/src/main/java/com/hw/lists1/MediaContentAdapter.kt | TomballFox | 429,188,326 | false | null | package com.hw.lists1
import android.net.Uri
import android.util.Log
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.MediaController
import android.widget.VideoView
import androidx.recyclerview.widget.RecyclerView
import com.bump... | 0 | Kotlin | 0 | 0 | 2379f5001969bf89c93320e6685a1618c1a0214b | 3,269 | BulletNewsApp | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/chain/cosmosClass/ChainFetchAi.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.chain.cosmosClass
import android.os.Parcelable
import com.google.common.collect.ImmutableList
import kotlinx.parcelize.Parcelize
import org.bitcoinj.crypto.ChildNumber
import wannabit.io.cosmostaion.R
import wannabit.io.cosmostaion.chain.AccountKeyType
import wannabit.io.cosmostaion.cha... | 0 | null | 43 | 83 | b04f3615c7c7b4407d719e160155a8c03fbae3a9 | 1,346 | cosmostation-android | MIT License |
src/main/kotlin/io/vlang/ide/documentation/DocumentationGenerator.kt | vlang | 754,996,747 | false | null | package org.vlang.ide.documentation
import com.intellij.codeInsight.documentation.DocumentationManagerUtil
import com.intellij.lang.documentation.DocumentationMarkup
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
impor... | 64 | null | 7 | 33 | 5b05a7b1f71ef8dcd7f26425a756259081fe5122 | 41,808 | intellij-v | MIT License |
app/src/main/java/com/example/cocktailsapp/drink_list/business/DrinkListEntityToDrinkListMapper.kt | MertYazi | 693,573,760 | false | {"Kotlin": 213932} | package com.example.cocktailsapp.drink_list.business
import com.example.cocktailsapp.shared.business.DrinkItem
import com.example.cocktailsapp.shared.business.DrinkList
import com.example.cocktailsapp.drink_list.data.DrinkListEntity
import javax.inject.Inject
class DrinkListEntityToDrinkListMapper @Inject constructor... | 0 | Kotlin | 0 | 1 | fdb98804979b6b9cdc2e9ff2182ba4f4736bf17b | 722 | CocktailsApp | Apache License 2.0 |
commons/src/main/kotlin/io/nullables/api/playground/commons/model/GenerationSettings.kt | AlexRogalskiy | 331,076,596 | false | null | /*
* Copyright (C) 2021. Alexander Rogalskiy. All Rights Reserved.
*
* 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 requi... | 13 | Kotlin | 1 | 2 | d7173ec1d9ef227308d926e71335b530c43c92a8 | 946 | gradle-kotlin-sample | Apache License 2.0 |
app/src/main/java/com/sea/quickstart/helper/SpHelper.kt | DarksKnight | 336,429,761 | false | null | package com.sea.quickstart.helper
import android.content.Context
import android.content.Context.MODE_PRIVATE
import android.content.SharedPreferences
object SpHelper {
private val SP_NAME = "quickstart"
fun put(context: Context, key: String, value: String) {
val sharedPreferences: SharedPreferences... | 1 | null | 1 | 1 | 7373fdd8cb53424cdba1a234784c5b245abe4410 | 739 | QuickStart | Apache License 2.0 |
example-extensions/src/main/java/com/zhuinden/simplestackextensionsample/features/registration/EnterProfileDataKey.kt | Zhuinden | 269,079,017 | false | null | package com.zhuinden.simplestackextensionsample.features.registration
import androidx.fragment.app.Fragment
import com.zhuinden.simplestack.ScopeKey
import com.zhuinden.simplestackextensions.fragments.DefaultFragmentKey
import kotlinx.parcelize.Parcelize
@Parcelize
data class EnterProfileDataKey(private val placehold... | 3 | Kotlin | 68 | 4 | 80950c65f700cd1d9620e06e7b2afa289ccb46d3 | 532 | simple-stack-extensions | Apache License 2.0 |
app/src/main/java/inc/grayherring/com/thedavidmedinashowapp/ui/MainFragment.kt | Dmedina88 | 168,897,672 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "Java": 8, "XML": 63, "Kotlin": 71} | package inc.grayherring.com.thedavidmedinashowapp.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import inc.grayherring.com.thedavidmedinashowapp.arch.BaseFragment
import inc.grayherring.com.thedavidmedinashowapp.databinding.FragmentMainBinding
//... | 0 | Kotlin | 0 | 0 | d1a102756e8f65d6cafce4cd58c9cb3b8e7a641e | 650 | T.D.M.S | Apache License 2.0 |
platform/dvcs-impl/src/com/intellij/dvcs/DvcsNotificationIdsHolder.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.dvcs
import com.intellij.notification.impl.NotificationIdsHolder
class DvcsNotificationIdsHolder : NotificationIdsHolder {
override fun getNotificationIds(): List<String> {
... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 509 | intellij-community | Apache License 2.0 |
platform/lang-impl/src/com/intellij/codeInsight/hints/presentation/PresentationUtil.kt | JetBrains | 2,489,216 | false | {"Text": 9788, "INI": 517, "YAML": 423, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 10, "Shell": 633, "Markdown": 750, "Ignore List": 141, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 260, "XML": 7904, "SVG": 4537, "Kotlin": 60205, "Java": 84268, "HTML": 3803, "Java Properties": 217, "Gradle... | // 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 com.intellij.codeInsight.hints.presentation
import java.awt.Point
internal fun Point.translateNew(dx: Int, dy: Int) : Point = Point(x + dx, y + dy) | 1 | null | 1 | 1 | 0d546ea6a419c7cb168bc3633937a826d4a91b7c | 298 | intellij-community | Apache License 2.0 |
sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/channel/option/SoraAudioOption.kt | shiguredo | 101,262,592 | false | null | package jp.shiguredo.sora.sdk.channel.option
import android.media.MediaRecorder
import jp.shiguredo.sora.sdk.channel.signaling.message.OpusParams
import org.webrtc.MediaConstraints
import org.webrtc.audio.AudioDeviceModule
/**
* 音声に関するオプションをまとめるクラスです.
*/
class SoraAudioOption {
companion object {
const... | 2 | null | 8 | 28 | d9a413f342036f006f737b346555b0c4b8628d24 | 3,181 | sora-android-sdk | Apache License 2.0 |
native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/SirDeclarationChildrenProviderImpl.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78020897, "Java": 6696240, "Swift": 4062767, "C": 2609482, "C++": 1967339, "Objective-C++": 169966, "JavaScript": 135932, "Python": 48402, "Shell": 34800, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 5136... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.sir.providers.impl
import org.jetbrains.kotlin.analysis.api.KtAnalysisSession
im... | 176 | Kotlin | 5601 | 47,397 | a47dcc227952c0474d27cc385021b0c9eed3fb67 | 1,189 | kotlin | Apache License 2.0 |
plugins/feature-usage-database/core/tests/com/intellij/ae/database/core/tests/dbs/AETestCoroutineScope.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.ae.database.tests.dbs
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import kotlinx.coroutines.CoroutineScope
@Service
class AETe... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 453 | intellij-community | Apache License 2.0 |
domain/src/main/java/br/com/bulgasoftwares/domain/exception/DefaultErrorBundle.kt | rodrigo196 | 130,264,083 | false | null | package br.com.bulgasoftwares.domain.exception
/**
* Wrapper around Exceptions used to manage default errors.
*/
class DefaultErrorBundle(override val exception: Exception?) : ErrorBundle {
override val errorMessage: String?
get() = if (exception != null) this.exception.message else DEFAULT_ERROR_MSG
... | 1 | null | 1 | 1 | c11d7a5919b0e1f58ea070662d3853fed776207f | 412 | KotlinCleanArchiteture | Apache License 2.0 |
payment-commons/src/main/kotlin/com/mobilabsolutions/payment/data/enum/PaymentMethod.kt | mobilabsolutions | 159,817,607 | false | null | /*
* Copyright © MobiLab Solutions GmbH
*/
package com.mobilabsolutions.payment.data.enum
/**
* @author <a href="mailto:<EMAIL>"><NAME></a>
*/
enum class PaymentMethod {
CC,
SEPA,
PAY_PAL,
GOOGLE_PAY,
APPLE_PAY,
KLARNA
}
| 1 | null | 1 | 3 | 7592abdabb7c05a71366634e5b09f4f08a3f0eff | 251 | stash-sdk-backend | Apache License 2.0 |
platform/lang-impl/src/com/intellij/analysis/problemsView/toolWindow/ProblemsViewTab.kt | artheus | 190,389,139 | false | null | package com.intellij.analysis.problemsView.toolWindow
import com.intellij.openapi.util.NlsContexts
import org.jetbrains.annotations.NonNls
interface ProblemsViewTab {
@NlsContexts.TabTitle
fun getName(count: Int): String
@NonNls
fun getTabId(): String
fun orientationChangedTo(vertical: Boolean) {
}
... | 1 | null | 1 | 1 | 276d94d75abb8791e10b58cbfe2a49c1fee7bd67 | 420 | intellij-community | Apache License 2.0 |
deeplinkdispatch-base/src/main/java/com/airbnb/deeplinkdispatch/ErrorHandler.kt | airbnb | 37,286,678 | false | null | package tk.nkduy.deeplink
abstract class ErrorHandler {
open fun duplicateMatch(uriString: String, duplicatedMatches: List<DeepLinkMatchResult>) {}
/**
* Called if unable to determine the type of an args class for a DeepLinkHandler.
* If this is the case we are just assuming no arguments and do not ... | 57 | null | 418 | 4,302 | 4fdf7629c7bfb413f684a8180ea9a5d98ed17de0 | 531 | DeepLinkDispatch | Apache License 2.0 |
idea/tests/testData/quickfix/suspiciousCollectionReassignment/replaceWithFilter/minusEq.kt | JetBrains | 278,369,660 | false | null | // "Replace with filter" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.SuspiciousCollectionReassignmentInspection
// WITH_RUNTIME
fun test() {
var list = listOf(1, 2, 3)
list -=<caret> listOf(2)
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 212 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/me/steven/indrev/gui/screenhandlers/wrench/ScrewdriverScreenHandler.kt | GabrielOlvH | 265,247,813 | false | null | package me.steven.indrev.gui.screenhandlers.wrench
import io.github.cottonmc.cotton.gui.client.BackgroundPainter
import io.github.cottonmc.cotton.gui.widget.WButton
import io.github.cottonmc.cotton.gui.widget.WGridPanel
import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment
import io.github.cottonmc.cott... | 51 | null | 56 | 192 | 012a1b83f39ab50a10d03ef3c1a8e2651e517053 | 3,552 | Industrial-Revolution | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/replaceUntilWithRangeTo/rangeUntil/uLong.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
@OptIn(kotlin.ExperimentalStdlibApi::class)
fun test(from: ULong, to: ULong) {
from..<to<caret>
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 116 | intellij-community | Apache License 2.0 |
backend.native/tests/codegen/basics/concatenation.kt | stefb965 | 91,983,801 | true | {"Markdown": 14, "Git Config": 1, "Gradle": 22, "Java Properties": 5, "Shell": 13, "Ignore List": 1, "Batchfile": 1, "XML": 12, "Kotlin": 4177, "C": 24, "Makefile": 1, "Text": 69, "Java": 2, "Protocol Buffer": 2, "C++": 25, "Groovy": 6, "INI": 6, "OpenStep Property List": 1} | fun main(args: Array<String>) {
val s = "world"
val i = 1
println("Hello $s $i ${2*i}")
for (item in listOf("a", "b")) {
println("Hello, $item")
}
}
| 0 | Kotlin | 0 | 0 | a4eceb3e3acf4863ca85c258d657504d7d6a73f0 | 179 | kotlin-native | Apache License 2.0 |
compose/material/material-lint/src/test/java/androidx/compose/material/lint/ScaffoldPaddingDetectorTest.kt | androidx | 256,589,781 | false | {"Kotlin": 92744555, "Java": 67265286, "C++": 9111524, "AIDL": 629410, "Python": 306379, "Shell": 189818, "TypeScript": 39695, "HTML": 26377, "Svelte": 20307, "ANTLR": 19860, "C": 17782, "CMake": 14353, "Groovy": 13532, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 21 | Kotlin | 862 | 4,829 | 3ccf568d9a67bf895b29952f394c856bbc6fcb9a | 10,255 | androidx | Apache License 2.0 |
app/src/main/java/com/domker/study/androidstudy/MainActivity.kt | gly2000 | 435,934,857 | false | null | package com.domker.study.androidstudy
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.domker.study.androidstudy.ImageActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 1 | null | 1 | 1 | 8be81a9294632b5bf9dd6812741ce709e68e1f60 | 1,050 | HW6-Player | Apache License 2.0 |
mbingresskit/src/main/java/com/daimler/mbingresskit/implementation/network/executor/ProfilePictureRequestExecutor.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbingresskit.implementation.network.executor
import com.daimler.mbnetworkkit.common.ErrorMapStrategy
import com.daimler.mbnetworkkit.networking.coroutines.BaseRequestExecutor
import com.daimler.mbnetworkkit.networking.coroutines.RequestResult
import okhttp3.ResponseBody
import retrofit2.Response
im... | 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 1,664 | MBSDK-Mobile-Android | MIT License |
android/apolloui/src/main/java/io/muun/apollo/presentation/ui/show_qr/ShowQrFragmentPagerAdapter.kt | muun | 150,655,434 | false | null | package io.muun.apollo.presentation.ui.show_qr
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.viewpager.widget.ViewPager.OnPageChangeListener
import io.muun.apollo.presentation.ui.show_q... | 39 | null | 46 | 256 | 86048fe9f8059c9617f2e6d32e7d41c460dfb785 | 2,227 | apollo | MIT License |
android/SmartIRHub/app/src/main/java/com/ms8/smartirhub/android/utils/MySharedPreferences.kt | MattS8 | 190,078,801 | false | null | package com.ms8.smartirhub.android.utils
import android.content.Context
import com.google.gson.Gson
import com.ms8.smartirhub.android.models.firestore.User
object MySharedPreferences {
fun setUser(context: Context, user : User?) {
context.getSharedPreferences(SHARED_PREFS, Context.MODE_PRIVATE)
... | 20 | null | 1 | 2 | b099232e51d13bf4c26787d9d537176148489e48 | 1,267 | IRSmartHub | Apache License 2.0 |
src/Day06.kt | rmyhal | 573,210,876 | false | {"Kotlin": 17741} | fun main() {
fun part1(input: List<String>): Int {
return process(input, 4)
}
fun part2(input: List<String>): Int {
return process(input, 14)
}
val input = readInput("Day06")
println(part1(input))
println(part2(input))
}
private fun process(input: List<String>, markerSize: Int): Int {
return ... | 0 | Kotlin | 0 | 0 | e08b65e632ace32b494716c7908ad4a0f5c6d7ef | 421 | AoC22 | Apache License 2.0 |
tmp/results/JVM-Xnew-inference/BACKEND_ltlcz.kt | petukhovv | 216,533,129 | true | {"Kotlin": 4030796, "JavaScript": 3066112, "Python": 2600, "Java": 640, "Shell": 87} | class TestClass {
inline
operator fun <T> invoke(task: () -> T) = (task)!!
}
val test = TestClass()
val x = test {} | 0 | Kotlin | 0 | 0 | 6f5c65e49acc03370285b4994afb917cae9d6fda | 117 | bbf | Apache License 2.0 |
src/main/kotlin/com/alipay/sofa/koupleless/kouplelessidea/service/splitmodule/pipelineservice/construct/ConstructModuleService.kt | koupleless | 783,180,038 | false | {"Kotlin": 840464, "Java": 26198, "Shell": 3994} | package com.alipay.sofa.koupleless.kouplelessidea.service.splitmodule.pipelineservice.construct
import com.alipay.sofa.koupleless.kouplelessidea.model.splitmodule.staticparser.SplitModuleContext
import com.alipay.sofa.koupleless.kouplelessidea.service.splitmodule.pipelineplugin.construct.ClearTemplatePlugin
import com... | 1 | Kotlin | 1 | 2 | 371a738491d60019d9c25a131fab484ad8064fc2 | 1,129 | koupleless-idea | Apache License 2.0 |
src/test/kotlin/g2301_2400/s2341_maximum_number_of_pairs_in_array/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2301_2400.s2341_maximum_number_of_pairs_in_array
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun numberOfPairs() {
assertThat(
Solution().numberOfPairs(intArrayOf(1, 3, ... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 658 | LeetCode-in-Kotlin | MIT License |
app/src/main/kotlin/net/primal/android/explore/api/model/UsersResponse.kt | PrimalHQ | 639,579,258 | false | null | package net.primal.android.explore.api.model
import net.primal.android.nostr.model.NostrEvent
import net.primal.android.nostr.model.primal.PrimalEvent
data class UsersResponse(
val contactsMetadata: List<NostrEvent> = emptyList(),
val userScores: PrimalEvent?,
val followerCounts: PrimalEvent?,
val cdn... | 56 | null | 6 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 366 | primal-android-app | MIT License |
src/main/kotlin/coverosR3z/persistence/utility/DatabaseDiskPersistence.kt | 7ep | 269,398,431 | false | null | package r3z.persistence.utility
import r3z.authentication.types.Invitation
import r3z.authentication.types.Session
import r3z.authentication.types.User
import r3z.system.config.CURRENT_DATABASE_VERSION
import r3z.system.logging.ILogger
import r3z.system.logging.ILogger.Companion.logImperative
import r3z.system.misc.ut... | 0 | Kotlin | 5 | 9 | 0c132ef0d0646d2137f39d4555b50010907b57df | 10,121 | r3z | MIT License |
android/alerts/common/src/main/kotlin/dev/inmo/micro_utils/android/alerts/common/AlertDialog.kt | InsanusMokrassar | 295,712,640 | false | null | @file:Suppress("NOTHING_TO_INLINE", "unused")
package dev.inmo.micro_utils.android.alerts.common
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
typealias AlertDialogCallback = (DialogInterface) -> Unit
inline fun Context.createAlertDialogTemplate(
title: Str... | 3 | Kotlin | 0 | 8 | ba16bad0293b087ab77e540109c946bebaabf6dd | 1,729 | MicroUtils | Apache License 2.0 |
src/main/kotlin/vip/aridi/meetup/game/MeetupManager.kt | yek4h | 833,703,901 | false | {"Kotlin": 25386} | package vip.aridi.meetup.game
import org.bukkit.Material
import org.bukkit.World
import org.bukkit.entity.Player
import org.example.vip.aridi.meetup.Dainy
import vip.aridi.meetup.Dainy
import vip.aridi.meetup.loader.Loader
import vip.aridi.meetup.profile.Profile
import java.util.Random
/*
* This project can't be re... | 0 | Kotlin | 0 | 7 | a544bab6135d75231321a448e5745422d4998512 | 1,124 | Dainy | MIT License |
core/src/main/kotlin/de/uulm/se/couchedit/processing/common/services/datastore/LinearIDGenerator.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.processing.common.services.datastore
import com.google.inject.Singleton
import de.uulm.se.couchedit.model.base.Element
@Singleton
class LinearIDGenerator: IdGenerator {
private var counter = 0
override fun generate(clazz: Class<out Element>): String {
synchronized(this) {... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 427 | CouchEdit | Apache License 2.0 |
lib/src/main/java/com/github/eklipse2k8/charting/renderer/CandleStickChartRenderer.kt | eklipse2k8 | 403,391,938 | true | {"Kotlin": 945921, "Java": 57298} | package com.github.eklipse2k8.charting.renderer
import android.graphics.Canvas
import android.graphics.Paint
import com.github.eklipse2k8.charting.animation.ChartAnimator
import com.github.eklipse2k8.charting.data.Entry
import com.github.eklipse2k8.charting.highlight.Highlight
import com.github.eklipse2k8.charting.int... | 0 | Kotlin | 0 | 0 | 29d416f36d7fd1b6af13082c2ef6b7d6abe0cab8 | 9,897 | ComposeChart | Apache License 2.0 |
src/commonMain/kotlin/coingecko/models/coins/CoinPrice.kt | DrewCarlson | 267,978,965 | false | null | package coingecko.models.coins
data class CoinPrice(
private val rawFields: Map<String, String?>,
) {
val lastUpdatedAt: Long? = rawFields["last_updated_at"]?.toLongOrNull()
fun getPrice(currency: String): Double =
checkNotNull(getPriceOrNull(currency))
fun getPriceOrNull(currency: String): D... | 5 | null | 9 | 44 | 64d96a5971fa9b47c2786ad6f44ceea71ab6fb5f | 1,199 | CoinGecko-Kotlin | MIT License |
mvi/src/main/java/com/deepfinity/mvi/viewmodel/ViewModelExtensions.kt | Deepfinity | 398,880,442 | false | null | package com.deepfinity.mvi.viewmodel
import androidx.lifecycle.viewModelScope
import com.deepfinity.mvi.base.Effect
import com.deepfinity.mvi.base.SideEffect
import com.deepfinity.mvi.base.State
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.schedulers.Schedulers
import kotlinx.coroutine... | 0 | Kotlin | 0 | 0 | 819d6098a41c21f62c61091297caf35a7445c6a5 | 661 | deep-mvi | Apache License 2.0 |
core-media/src/main/java/com/thoughtworks/ark/media/video/view/SimpleVideoView.kt | TW-Smart-CoE | 548,729,881 | false | null | package com.thoughtworks.ark.media.video.view
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import android.widget.FrameLayout
import com.google.android.exo... | 17 | null | 2 | 16 | 35d0c4fe5e9ffc1c0cbd6318e46a2ad6f34f4e63 | 2,731 | ARK-Android | Apache License 2.0 |
sdks/kotlin/user_api/v1/CreateApiKeyResponseKt.kt | knox-networks | 595,429,463 | false | {"Rust": 17246636, "C++": 6138133, "C#": 3083132, "JavaScript": 2183132, "TypeScript": 1665259, "Kotlin": 1249671} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: user_api/v1/user.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package user_api.v1;
@kotlin.jvm.JvmName("-initializecreateApiKeyResponse")
public inline fun createApiKeyR... | 0 | Rust | 1 | 0 | 16af58a5dc1e9e51859be4a6e0f6791b7adcb2f2 | 3,019 | grpc-sdks | Apache License 2.0 |
gpuimage/src/main/java/com/shenhua/libs/gpuimage/filters/GPUImageVignetteFilter.kt | shenhuanet | 126,301,956 | false | null | package com.shenhua.libs.gpuimage.filters
import android.graphics.PointF
import android.opengl.GLES20
/**
* Performs a vignetting effect, fading out the image at the edges
* x:
* y: The directional intensity of the vignetting, with a default of x = 0.75, y = 0.5
*
* @author shenhua
*/
class GPUImageVignetteFilt... | 1 | null | 1 | 6 | 8d7d391efb1e66aa53eefb5b9c6410a68ee66ea0 | 3,461 | GPUImage | Apache License 2.0 |
js/js.translator/src/org/jetbrains/kotlin/js/translate/intrinsic/functions/factories/ProgressionCompanionFIF.kt | zeesh49 | 67,883,175 | false | null | /*
* 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 | null | 0 | 1 | aca19ed27a751d7d6b0d276e7d2cfbf579fe1f87 | 2,103 | kotlin | Apache License 2.0 |
goblinframework-database-mysql/src/main/java/org/goblinframework/database/mysql/module/DatabaseMysqlModule.kt | HuangKunInkess | 224,439,191 | false | null | package org.goblinframework.database.mysql.module
import org.goblinframework.api.annotation.Install
import org.goblinframework.core.system.*
import org.goblinframework.database.core.module.DatabaseModule
import org.goblinframework.database.mysql.client.MysqlClientManager
import org.goblinframework.database.mysql.mappi... | 1 | null | 1 | 1 | 75124c38c952c51dfed9849d11ee20d2424eb081 | 1,274 | goblinframework | Apache License 2.0 |
app/src/main/java/com/raion/furnitale/core/data/source/local/LocalDataSource.kt | KylixEza | 349,910,754 | false | null | package com.raion.furnitale.core.data.source.local
import com.raion.furnitale.core.data.source.local.entity.ProductEntity
import com.raion.furnitale.core.data.source.local.room.ProductDao
import kotlinx.coroutines.flow.Flow
class LocalDataSource(private val productDao: ProductDao) {
fun getCartList(userEmail: St... | 0 | Kotlin | 1 | 1 | 014d82d8764c7c1002d166f435b7243508794fd3 | 734 | FurniTale | MIT License |
src/main/kotlin/com/ecwid/apiclient/v3/impl/ProductVariationsApiClientImpl.kt | Alexeyyy | 288,178,467 | true | {"Kotlin": 428980} | package com.ecwid.apiclient.v3.impl
import com.ecwid.apiclient.v3.ApiClientHelper
import com.ecwid.apiclient.v3.ProductVariationsApiClient
import com.ecwid.apiclient.v3.dto.variation.request.*
import com.ecwid.apiclient.v3.dto.variation.result.*
internal class ProductVariationsApiClientImpl(
private val apiClientHe... | 0 | Kotlin | 0 | 0 | c52ef344a82d1884a633354b4e6b97984e3147ba | 1,808 | ecwid-java-api-client | Apache License 2.0 |
src/main/java/com/sayzen/campfiresdk/controllers/ControllerStoryQuest.kt | ZeonXX | 381,986,881 | false | {"Kotlin": 2097097} | package com.sayzen.campfiresdk.controllers
import com.dzen.campfire.api.API
import com.dzen.campfire.api.models.project.StoryQuest
import com.sayzen.campfiresdk.models.events.project.EventStoryQuestUpdated
import com.sup.dev.java.libs.eventBus.EventBus
object ControllerStoryQuest {
fun finishQuest(){
val... | 0 | Kotlin | 2 | 0 | 9930e65c1f213bac9266046be22eb937a03f151e | 1,055 | CampfireSDK | Apache License 2.0 |
app/src/main/java/com/personal/tmdb/search/data/repository/SearchRepositoryImpl.kt | Avvami | 755,489,313 | false | {"Kotlin": 671404} | package com.personal.tmdb.search.data.repository
import com.personal.tmdb.core.data.mappers.toMediaResponseInfo
import com.personal.tmdb.core.data.remote.TmdbApi
import com.personal.tmdb.core.domain.models.MediaResponseInfo
import com.personal.tmdb.core.util.Resource
import com.personal.tmdb.core.util.TimeWindow
impor... | 0 | Kotlin | 0 | 2 | d3a9455a7ab3b18fc1ccc4f61598b0c2164ab83e | 2,033 | TMDB | MIT License |
app/src/main/java/com/github/skytoph/note/feature/note/presentation/notes/NotesState.kt | skytoph | 605,664,997 | false | {"Kotlin": 56842} | package com.github.skytoph.note.feature.note.presentation.notes
import com.github.skytoph.note.feature.note.domain.model.Note
import com.github.skytoph.note.feature.note.domain.order.NoteOrder
import com.github.skytoph.note.feature.note.domain.order.OrderType
data class NotesState(
val notes: List<Note> = emptyLi... | 0 | Kotlin | 0 | 0 | 0f04e5c19cda0785616ef21c7169478bb5f1e52d | 556 | Notes | The Unlicense |
app/src/main/java/com/pandacorp/noteui/presentation/viewModels/CurrentNoteViewModel.kt | MrRuslanYT | 547,794,682 | false | null | package com.pandacorp.noteui.presentation.viewModels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.pandacorp.noteui.domain.model.NoteItem
import com.pandacorp.noteui.domain.repository.NoteRepository
import com.pandacorp.noteui.presenta... | 0 | null | 1 | 3 | 2696e0a229371308e264c8e9fafa6ea9eb2c1309 | 1,639 | NoteUI | Apache License 2.0 |
Base/src/main/java/com/meuus/base/utility/Params.kt | meuus90 | 280,310,581 | false | null | package com.meuus.base.utility
class Params constructor(val query: Query) | 0 | Kotlin | 0 | 0 | 6dca5e857873fce60b6e309a0368b830eeafe9a8 | 75 | CleverBase | MIT License |
app/src/main/java/com/kylecorry/trail_sense/shared/commands/ValueCommand.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2317561, "Python": 17455, "HTML": 16563, "Shell": 5160, "CSS": 4886, "JavaScript": 2574, "Batchfile": 2553} | package com.kylecorry.trail_sense.shared.commands
interface ValueCommand<T> {
fun execute(): T
} | 430 | Kotlin | 51 | 771 | dbbc736ffbfafd38d91371106b8906de2ed32a6b | 101 | Trail-Sense | MIT License |
tgbotapi.api/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/api/get/GetUserChatBoosts.kt | InsanusMokrassar | 163,152,024 | false | {"Kotlin": 2960030, "Shell": 373} | package dev.inmo.tgbotapi.extensions.api.get
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.get.GetUserChatBoosts
import dev.inmo.tgbotapi.types.ChatIdentifier
import dev.inmo.tgbotapi.types.UserId
import dev.inmo.tgbotapi.types.chat.Chat
suspend fun TelegramBot.getUserChatBoosts(
chat... | 18 | Kotlin | 23 | 333 | 5cfc350c13aec77495a24e666de2ee8214d1c8f7 | 565 | ktgbotapi | Apache License 2.0 |
projects/prison-custody-status-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/staff/entity/Staff.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4403685, "HTML": 72513, "D2": 44286, "Ruby": 26979, "Shell": 23475, "SCSS": 6630, "HCL": 2712, "Dockerfile": 2552, "JavaScript": 1428, "Python": 268} | package uk.gov.justice.digital.hmpps.integrations.delius.staff.entity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.Id
import jakarta.persistence.JoinColumn
import jakarta.persistence.JoinTable
import jakarta.persistence.ManyToMany
import org.hibernate.annotations.Immut... | 4 | Kotlin | 0 | 2 | 35dce3c0cb146117ab52162a8a14d97394d05101 | 1,634 | hmpps-probation-integration-services | MIT License |
src/main/kotlin/ru/scisolutions/scicmscore/engine/persistence/entity/Identity.kt | borisblack | 737,700,232 | false | {"Kotlin": 709920, "HTML": 4440, "Shell": 282, "Dockerfile": 123} | package ru.scisolutions.scicmscore.engine.persistence.entity
import jakarta.persistence.Column
import jakarta.persistence.Convert
import jakarta.persistence.Entity
import jakarta.persistence.Table
@Entity
@Table(name = "sec_identities")
class Identity(
@Column(nullable = false)
var name: String,
@Column(... | 0 | Kotlin | 0 | 4 | 13e2eab74403ed4166c1d58e00af43d9335ed52a | 500 | scicms-core | Apache License 2.0 |
src/main/kotlin/no/nav/helsearbeidsgiver/bro/sykepenger/utils/DateUtils.kt | navikt | 545,996,420 | false | null | package no.nav.helsearbeidsgiver.bro.sykepenger.utils
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.temporal.ChronoUnit
fun LocalDate.isDayBefore(other: LocalDate): Boolean =
this == other.minusDays(1)
fun LocalDateTime.truncMillis(): LocalDateTime =
truncatedTo(ChronoUnit.MILLIS... | 0 | Kotlin | 0 | 0 | 2627624d3018c663d0e008b1b892e027b8d05aa8 | 322 | helsearbeidsgiver-bro-sykepenger | MIT License |
vitrivr-engine-module-m3d/src/main/kotlin/org/vitrivr/engine/model3d/lwjglrender/renderer/RenderActions.kt | vitrivr | 679,355,326 | false | {"Kotlin": 1141407, "GLSL": 568} | package org.vitrivr.engine.model3d.lwjglrender.renderer
/**
* Actions used in the Render Workflow.
* [RenderWorker]
*/
enum class RenderActions(val action: String) {
SETUP("SETUP"),
RENDER("RENDER"),
ROTATE("ROTATE"),
LOOKAT("LOOKAT"),
LOOKAT_FROM("LOOKAT_FROM");
}
| 8 | Kotlin | 3 | 5 | 8d89bba313b3aa2195d31afb5b9694828cf4ce46 | 290 | vitrivr-engine | MIT License |
test-resources/src/main/kotlin/dataclasses/CarKt.kt | EikaGruppen | 435,003,594 | false | null | package dataclasses
/**
* This file is GENERATED. Please don't change
*/
@Suppress("unused", "useless_cast")
data class CarKt(
val requiredInteger: Int,
val listOfInternalClasses: List<DoorKt> = emptyList(),
val nullableListOfInternalClasses: List<DoorKt> = emptyList(),
val stringJAXBElement: String... | 0 | Rust | 0 | 12 | 24a6f0f975889b34bbf65eae5aec56c75bd36225 | 1,542 | wsdl2kotlin | Apache License 2.0 |
app/src/main/java/com/example/ad_demo/MainActivity.kt | givemepassxd999 | 688,532,845 | false | null | package com.example.ad_demo
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.AttributeSet
import android.view.View
import com.example.ad_demo.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var ... | 0 | Kotlin | 0 | 0 | 0e81130ce8dcfc627da16855f6cb9d13432b9217 | 519 | ad_demo | Apache License 2.0 |
app/src/main/java/org/ak80/taskbuddy/ui/tasks/TasksPresenter.kt | ak80 | 158,447,057 | false | null | package org.ak80.taskbuddy.ui.tasks
import org.ak80.taskbuddy.R
import org.ak80.taskbuddy.core.gateway.TaskGateway
import org.ak80.taskbuddy.core.model.Task
import org.ak80.taskbuddy.di.ActivityScoped
import javax.inject.Inject
/**
* Presents [Task] s and listens to events from the [TasksFragment]
*/
@ActivityScope... | 1 | Kotlin | 0 | 0 | 4fe32bc0915e2a8831765f54cb3127c6f89d2db0 | 1,297 | taskbuddy | Apache License 2.0 |
virtusize/src/test/java/com/virtusize/android/util/ExtensionsKtTest.kt | virtusize | 173,900,278 | false | null | package com.virtusize.android.util
import android.content.Context
import android.os.Build
import androidx.test.core.app.ApplicationProvider
import com.google.common.truth.Truth.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotatio... | 1 | null | 2 | 9 | b83c343b1469cb5c51936f6228783d67aa182490 | 1,300 | integration_android | MIT License |
android/src/main/kotlin/top/kikt/imagescanner/thumb/ThumbnailUtil.kt | vickyleu | 249,673,774 | false | null | package top.kikt.imagescanner.thumb
import android.content.Context
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.net.Uri
import com.bumptech.glide.Glide
import com.bumptech.glide.request.transition.Transition
import io.flutter.plugin.common.MethodChannel
import top.kikt.images... | 1 | null | 1 | 1 | 46fe34eeab85358ccc9192a3fdc040b03af38af8 | 2,673 | flutter_photo_manager | Apache License 2.0 |
data/src/main/java/com/muse1991/data/user/source/local/DataStore.kt | jerrytrap | 767,373,010 | false | {"Kotlin": 28651} | package com.muse1991.data.user.source.local
import android.content.Context
import androidx.datastore.core.CorruptionException
import androidx.datastore.core.DataStore
import androidx.datastore.core.Serializer
import androidx.datastore.dataStore
import com.google.protobuf.InvalidProtocolBufferException
import com.muse1... | 2 | Kotlin | 0 | 0 | 9634a4a7b90495b4c53bcab165ccb2a0c7cb0ce2 | 1,302 | muse-android | MIT License |
app/src/main/java/eu/seldon1000/nextpass/api/Folder.kt | seldon1000 | 377,209,959 | false | null | /*
* Copyright 2021 <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... | 2 | Kotlin | 0 | 9 | 7e5dd4ff40fad87103074b1c3acf3d30d8243f85 | 1,220 | NextPass | Apache License 2.0 |
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/KtFirReference.kt | nskvortsov | 4,137,859 | 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.idea.references
import com.intellij.psi.PsiElement
import org.jetbrains.kotlin.i... | 1 | null | 1 | 3 | 39d15501abb06f18026bbcabfd78ae4fbcbbe2cb | 767 | kotlin | Apache License 2.0 |
src/test/kotlin/org/humanizer/jvm/tests/DateHumanizerTests.kt | Olivki | 236,347,319 | true | {"Kotlin": 111668} | package org.humanizer.jvm.tests
import io.kotlintest.forAll
import io.kotlintest.shouldBe
import io.kotlintest.specs.BehaviorSpec
import org.humanizer.jvm.humanize
import java.util.*
class DateHumanizerTests : BehaviorSpec({
data class ParamClass(
val timeUnit: Int,
val input: Int,
val exp... | 0 | Kotlin | 0 | 0 | 4dafa2de82a6bd7031b9b312351b2d7452eb13e3 | 4,563 | Humanizer.jvm | Apache License 2.0 |
src/LC155.kt | quaeast | 219,088,618 | false | null | class MinStack() {
/** initialize your data structure here. */
private var content:ArrayList<Int> = ArrayList(0);
fun push(x: Int) {
content.add(x);
}
fun pop() {
content.removeAt(content.size-1)
}
fun top(): Int {
return content[content.size-1]
}
fun ge... | 1 | null | 1 | 2 | 1de87102097a8b28056cf40500e79e2e8742452e | 683 | Leetcode | MIT License |
api/api-application/src/main/kotlin/com/example/notification/gateway/common/YamlPropertySourceFactory.kt | nazaretyan | 727,312,163 | false | {"Kotlin": 3386} | package com.example.notification.gateway.common
import org.springframework.beans.factory.config.YamlPropertiesFactoryBean
import org.springframework.core.env.PropertiesPropertySource
import org.springframework.core.env.PropertySource
import org.springframework.core.io.support.EncodedResource
import org.springframework... | 0 | Kotlin | 0 | 0 | 32d19c4be809b170424d9ecfa7585957a30522ea | 826 | notification-gateway | Apache License 2.0 |
core/src/main/kotlin/com/mobillium/core/markers/CanHandleBackPressEvents.kt | mobillium | 303,412,402 | false | null | /*
* Copyright 2020 http://www.mobillium.com/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 1 | Kotlin | 1 | 6 | b988de827ae36aa2f0dc762eb92cd5510b55dc5d | 992 | ground | Apache License 2.0 |
sudovirtualcards/src/main/java/com/sudoplatform/sudovirtualcards/types/ChargeDetailState.kt | sudoplatform | 287,155,437 | false | {"Kotlin": 975837} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudovirtualcards.types
/**
* Representation of an enumeration depicting the state of a transaction's charge detail
* in the Sudo Platform Virtual Cards SDK.
*/
enum class ChargeDetailStat... | 0 | Kotlin | 0 | 0 | fe15964312660e9df75c6db6d3e2c683538581be | 721 | sudo-virtual-cards-android | Apache License 2.0 |
.legacy/app/src/main/java/com/makentoshe/booruchan/view/CircularProgressBar.kt | Makentoshe | 147,361,920 | false | null | package com.makentoshe.booruchan.view
/*
* This file is from the android-circular-progress-bar library that
* mas made by korre(<NAME>)
* The library github repository: https://github.com/korre/android-circular-progress-bar
*/
import android.animation.ValueAnimator
import android.content.Context
import android.gr... | 0 | Kotlin | 1 | 6 | d0f40fb8011967e212df1f21beb43e4c4ec03356 | 4,979 | Booruchan | Apache License 2.0 |
core/src/main/java/com/techchallenge/core/util/executors/ExecutionThread.kt | nuhkoca | 210,181,210 | false | {"Kotlin": 75773, "CMake": 2023, "C++": 513} | package com.techchallenge.core.util.executors
import io.reactivex.Scheduler
interface ExecutionThread {
val scheduler: Scheduler
}
| 6 | Kotlin | 4 | 32 | bf696aebddd22648809fe52e58da6c59e4c4a3e2 | 137 | market_tech_challenge | The Unlicense |
app/src/main/java/io/eodc/planit/fragment/HomeFragment.kt | eodc | 135,878,365 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Java": 2, "XML": 74, "Kotlin": 42} | package io.eodc.planit.fragment
import android.os.Bundle
import android.preference.PreferenceManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
impor... | 1 | null | 1 | 1 | fe1bb83b1682835a26a87b4d46773726a03b0250 | 7,007 | PlanIt | Apache License 2.0 |
test/analytics-sanitybot/buildSrc/src/main/kotlin/Libs.kt | turlodales | 289,705,241 | true | {"Kotlin": 1762543, "HCL": 516174, "Ruby": 402118, "Python": 95997, "HTML": 10538, "Java": 6060, "Shell": 5028, "Dockerfile": 3728, "Makefile": 780, "JavaScript": 554} | import kotlin.String
/**
* Generated by
* $ ./gradlew buildSrcLibs
* Re-run when you add a new dependency to the build
*
* Find which updates are available by running
* $ ./gradlew refreshVersions
* And edit the file `versions.properties`
*
* See https://github.com/jmfayard/refreshVersions
*/
public o... | 0 | Kotlin | 0 | 0 | 8c67d6e23c7fc79f039c4012238d82131900a4d4 | 2,346 | covid19-app-system-public | MIT License |
lib/src/main/java/space/taran/arklib/domain/tags/TagStorage.kt | ARK-Builders | 449,037,056 | false | null | package space.taran.arklib.domain.tags
import space.taran.arklib.ResourceId
import space.taran.arklib.domain.index.ResourceIndex
import space.taran.arklib.domain.index.RootIndex
import space.taran.arklib.domain.storage.AggregateStorage
import space.taran.arklib.domain.storage.Storage
interface TagStorage: Storage<Tag... | 36 | Kotlin | 3 | 2 | f439b903e8f71274e3487b18d41a4de453e7352a | 835 | arklib-android | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/entity/monster/DevastationBeam.kt | fzzyhmstrs | 461,338,617 | false | {"Kotlin": 1732617, "Java": 107324} | package me.fzzyhmstrs.amethyst_imbuement.entity.monster
import me.fzzyhmstrs.amethyst_imbuement.config.AiConfig
import me.fzzyhmstrs.amethyst_imbuement.registry.RegisterSound
import me.fzzyhmstrs.fzzy_core.coding_util.PerLvlI
import me.fzzyhmstrs.fzzy_core.coding_util.PersistentEffectHelper
import me.fzzyhmstrs.fzzy_c... | 9 | Kotlin | 8 | 4 | e5c456771de86c614858fa24587bf03a22590f3f | 4,007 | ai | MIT License |
plugins/kotlin/code-insight/inspections-shared/tests/testData/inspectionsLocal/javaIoSerializableObjectMustHaveReadResolve/simple_positive.kt | ingokegel | 72,937,917 | false | null | object Foo<caret> : java.io.Serializable
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 41 | intellij-community | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.