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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlin-mui-icons/src/main/generated/mui/icons/material/InsertPageBreakSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/InsertPageBreakSharp")
package mui.icons.material
@JsName("default")
external val InsertPageBreakSharp: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 204 | kotlin-wrappers | Apache License 2.0 |
transforms/src/main/java/com/tencent/lucky/transforms/fresco/dural_sample/GaussianBlurFrescoTransform.kt | KaelMa | 772,638,637 | false | {"Kotlin": 291732, "Shell": 127} | package com.tencent.lucky.transforms.fresco.dural_sample
import com.facebook.cache.common.CacheKey
import com.facebook.cache.common.SimpleCacheKey
import com.tencent.lucky.transforms.filter.dural_sample.GPUImageGaussianBlurFilter
import com.tencent.lucky.transforms.fresco.FrescoBaseTransform
/**
* Copyright (C), 201... | 0 | Kotlin | 0 | 0 | a317946964d1fe5a329a84e02554e58f7acfc72d | 695 | Clover | MIT License |
data/network/impl/src/main/java/soup/movie/data/network/impl/OkHttpInterceptors.kt | Moop-App | 113,048,795 | false | null | /*
* Copyright 2021 SOUP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 8 | null | 17 | 165 | b6336a607cf4bbef5c0b4e6bdbd1093580eb2b52 | 1,616 | Moop-Android | Apache License 2.0 |
example/src/main/java/com/github/judrummer/example/SimpleActivity.kt | Judrummer | 77,229,452 | false | null | package com.github.judrummer.example
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.view.ViewGroup
import com.github.judrummer.jxadapter.JxAdapter
import com.github.judrummer.jxadapter.JxViewHolder
import com.github.judrummer... | 0 | Kotlin | 2 | 14 | ca8c7396fcaa9bc9e6abd6d40dca967b37e931dd | 3,528 | JxAdapter | MIT License |
server/src/main/kotlin/org/tod87et/roomkn/server/di/shortcuts.kt | spbu-math-cs | 698,579,800 | false | {"Kotlin": 118200, "JavaScript": 68554, "CSS": 8738, "HTML": 1871, "Dockerfile": 716, "Shell": 483} | package org.tod87et.roomkn.server.di
import io.ktor.server.routing.Route
import org.koin.ktor.ext.inject
import org.tod87et.roomkn.server.database.Database
fun Route.injectDatabase() = inject<Database>()
| 66 | Kotlin | 0 | 3 | 616d00cd0fbb4fb6cf479d5f18d20c35b9c081e0 | 206 | roomkn | Apache License 2.0 |
vpn/src/test/kotlin/com/v2ray/ang/ExampleUnitTest.kt | SAFE-anwang | 438,491,711 | false | null | import org.junit.Assert.*
import org.junit.Test
import com.v2ray.ang.util.Utils
class UtilTest {
@Test
fun test_parseInt() {
assertEquals(Utils.parseInt("1234"), 1234)
}
@Test
fun test_isIpAddress() {
assertFalse(Utils.isIpAddress("114.113.112.266"))
assertFalse(Utils.isIpAddress("666... | 0 | null | 3 | 3 | a6fb06ea11a0cb366dcf093dcbeb053e628877a9 | 1,382 | SafeWallet-android | MIT License |
modules/wasm-wir/src/commonMain/kotlin/wir/ast/expressions/IfExceptionExpression.kt | wasmium | 761,480,110 | false | {"Kotlin": 661510, "JavaScript": 203} | package org.wasmium.wir.ast.expressions
import org.wasmium.wir.ast.WirNodeKind
import org.wasmium.wir.ast.type.WirValueType
import org.wasmium.wir.ast.visitor.WirVisitorVoid
public class IfExceptionExpression(
private val block: BlockExpression,
private val catches: List<BlockExpression>,
private val typ... | 0 | Kotlin | 0 | 3 | dc846f459f0bda1527cad253614df24bbdea012f | 485 | wasmium-wasm | Apache License 2.0 |
src/main/kotlin/org/reactome/lit_ball/util/DefaultScripts.kt | rwst | 617,070,381 | false | null | package org.reactome.lit_ball.util
import dev.dirs.ProjectDirectories
import java.io.File
import java.math.BigInteger
import java.security.MessageDigest
object DefaultScripts {
private val myProjDirs: ProjectDirectories = ProjectDirectories.from("org", "reactome", "LitBall")
private val configDir: String = my... | 1 | null | 0 | 5 | 429654db5e91940691db03429d525c5478219c75 | 1,608 | LitBall | Creative Commons Zero v1.0 Universal |
src/main/kotlin/io/realworld/app/domain/User.kt | Rudge | 149,893,811 | false | {"Kotlin": 71627, "HTML": 1589, "Shell": 484} | package io.realworld.app.domain
data class UserDTO(val user: User? = null)
data class User(
val id: Long? = null,
val email: String? = null,
val token: String? = null,
val username: String? = null,
val password: String? = null,
val bio: String? = null,
val image: String? = null,
)
| 4 | Kotlin | 42 | 128 | f35739e4a13df84eaa57270a63e4739acd9882f8 | 312 | kotlin-javalin-realworld-example-app | MIT License |
data/src/main/java/com/mnatsakanyan/data/di/DataStoreModule.kt | araratthehero | 667,529,727 | false | null | package com.mnatsakanyan.data.di
import com.mnatsakanyan.data.network.NetworkDataSource
import com.mnatsakanyan.data.network.RemoteNetworkDataSource
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
inte... | 0 | Kotlin | 0 | 0 | 4a421d9909b6b341a2d597e4c4ea5b51eaa81715 | 484 | rijksmuseum-collection | Apache License 2.0 |
kgit/src/jvmMain/kotlin/me/saket/kgit/AutoCloseable.ext.kt | saket | 201,701,386 | false | null | package me.saket.kgit
import java.io.Closeable
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.InvocationKind.EXACTLY_ONCE
import kotlin.contracts.contract
import kotlin.io.use as kotlinUse
@OptIn(ExperimentalContracts::class)
internal inline fun <T : AutoCloseable, R> T.use(block: (T) -> R): R ... | 13 | Kotlin | 110 | 1,849 | 5f64350ec51402f3e6aeff145cbc35438780a03c | 465 | press | Apache License 2.0 |
domain/src/main/java/com/nowiwr01p/domain/profile/usecase/DeleteAccountUseCase.kt | nowiwr01w | 584,138,480 | false | null | package com.nowiwr01p.domain.profile.usecase
import com.nowiwr01p.domain.UseCase
import com.nowiwr01p.domain.profile.repository.ProfileRepository
class DeleteAccountUseCase(
private val repository: ProfileRepository
): UseCase<Unit, Unit> {
override suspend fun execute(input: Unit) {
repository.delet... | 0 | Kotlin | 1 | 3 | 0ebdf8f0cc072cf1f07810a6c36e710f373bfc7f | 338 | Protest | MIT License |
domain/src/main/java/com/nowiwr01p/domain/profile/usecase/DeleteAccountUseCase.kt | nowiwr01w | 584,138,480 | false | null | package com.nowiwr01p.domain.profile.usecase
import com.nowiwr01p.domain.UseCase
import com.nowiwr01p.domain.profile.repository.ProfileRepository
class DeleteAccountUseCase(
private val repository: ProfileRepository
): UseCase<Unit, Unit> {
override suspend fun execute(input: Unit) {
repository.delet... | 0 | Kotlin | 1 | 3 | 0ebdf8f0cc072cf1f07810a6c36e710f373bfc7f | 338 | Protest | MIT License |
feature/home/presentation/src/main/java/com/viplearner/feature/home/presentation/model/NoteItem.kt | VIPlearner | 678,766,501 | false | {"Kotlin": 272893} | package com.viplearner.feature.home.presentation.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class NoteItem(
val uuid: String,
val title: String,
val content: String,
val timeLastEdited: Long,
val isPinned: Boolean,
val isSelected: Boolean
): Parcelabl... | 0 | Kotlin | 0 | 0 | becf4c8e908c26d578aa8387a8b9aee88d60ef27 | 322 | VIPNotes | MIT License |
app/src/main/java/io/outblock/lilico/page/staking/list/adapter/StakeListAdapter.kt | Outblock | 435,317,689 | false | {"Kotlin": 1563313, "Java": 104099} | package io.outblock.lilico.page.staking.list.adapter
import android.annotation.SuppressLint
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import io.outblock.lilico.R
import io.outblock.lilico.base.recyclerview.BaseAd... | 63 | Kotlin | 0 | 4 | a238e4f9db0d93a9c87fc9682860f2ea265c798b | 1,753 | Lilico-Android | Apache License 2.0 |
src/org/rust/lang/core/psi/impl/mixin/RustItemImplMixin.kt | awesomeleo | 47,592,280 | true | {"Git Config": 1, "Gradle": 2, "Markdown": 7, "INI": 2, "Shell": 1, "Text": 35, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "Java Properties": 1, "TOML": 2, "Rust": 140, "XML": 13, "RenderScript": 1, "HTML": 5, "Kotlin": 171, "Java": 2, "JFlex": 2} | package org.rust.lang.core.psi.impl.mixin
import com.intellij.lang.ASTNode
import org.rust.lang.core.psi.RustItem
import org.rust.lang.core.psi.RustNamedElement
import org.rust.lang.core.psi.impl.RustNamedElementImpl
public abstract class RustItemImplMixin(node: ASTNode) : RustNamedElementImpl(node)
... | 0 | Kotlin | 0 | 0 | 8fe36228e121aa894caefeb037b1e59bc38df656 | 466 | intellij-rust | MIT License |
src/main/kotlin/vec/useCase/command/impl/UnregisterUserCommandImpl.kt | tmyksj | 374,243,992 | false | null | package vec.useCase.command.impl
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional
import reactor.core.publisher.Mono
import vec.domain.entity.User
import vec.domain.service.AccountService
import vec.useCase.command.UnregisterUserCommand
@Component
@Transa... | 13 | Kotlin | 0 | 1 | 751465126e6ee9b2c75989e9b437540009ac9a6b | 605 | vec | Apache License 2.0 |
android-common/src/com/android/tools/idea/util/ListenerCollection.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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 app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 4,303 | android | Apache License 2.0 |
src/main/kotlin/tech/relaycorp/veraid/utils/Crypto.kt | relaycorp | 598,082,603 | false | {"Kotlin": 313518} | @file:JvmName("Crypto")
package tech.relaycorp.veraid.utils
import org.bouncycastle.jce.provider.BouncyCastleProvider
import java.security.MessageDigest
internal val BC_PROVIDER = BouncyCastleProvider()
internal enum class Hash(val hashName: String) {
SHA_256("SHA-256"),
SHA_384("SHA-384"),
SHA_512("SHA... | 4 | Kotlin | 0 | 2 | 80777359253ed570ce40fb689a135fd28550e387 | 475 | veraid-jvm | Apache License 2.0 |
app/src/main/java/com/vishalgaur/shoppingapp/Utils.kt | i-vishi | 358,205,394 | false | null | package com.ecom.shoppingapp
import java.util.*
import java.util.regex.Pattern
import kotlin.math.roundToInt
const val MOB_ERROR_TEXT = "Enter valid mobile number!"
const val EMAIL_ERROR_TEXT = "Enter valid email address!"
const val ERR_INIT = "ERROR"
const val ERR_EMAIL = "_EMAIL"
const val ERR_MOBILE = "_MOBILE"
co... | 1 | null | 8 | 97 | 1768ebf52bb9ae27fe7eca9e92b999cbcd7113f6 | 2,055 | shopping-android-app | MIT License |
app/src/main/java/com/example/f0x/apibot/domain/repository/RepositoryException.kt | theaspect | 110,525,955 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 1, "Java": 3, "XML": 25, "Kotlin": 51} | package com.example.f0x.apibot.domain.repository
/**
* Created by f0x on 28.11.17.
*/
class RepositoryException : Exception {
var backendError: BackendError? = null
override var message: String? = null
constructor(message: String) : super(message) {
this.message = message
}
constructor... | 0 | Kotlin | 0 | 1 | a89f3088d5a8e795a9a8670a99e0cb33901fc281 | 506 | api-bot | Apache License 2.0 |
core/core-ui/src/main/java/com/prmto/core_ui/base/fragment/BaseFragmentWithUiEvent.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 540597} | package com.prmto.core_ui.base.fragment
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.lifecycle.ViewModel
import androidx.navigation.fragment.findNavController
import androidx.viewbinding.ViewBinding
import com.prmto.core_ui.util.UiEvent
import com.prmto.navigation.ToFlowNavigatable
... | 1 | Kotlin | 4 | 85 | d9365e5339cb5daa231a8fe77c7376ab828d289b | 1,435 | Mova-MovieApp | Apache License 2.0 |
src/main/kotlin/com/hj/leetcode/kotlin/problem70/Solution.kt | hj-core | 534,054,064 | false | {"Kotlin": 800976} | package com.hj.leetcode.kotlin.problem70
/**
* LeetCode page: [70. Climbing Stairs](https://leetcode.com/problems/climbing-stairs/description/);
*/
class Solution {
/* Complexity:
* Time O(n) and Space O(1);
*/
fun climbStairs(n: Int): Int {
var waysToPrevStep = 1
var waysToCurrStep... | 0 | Kotlin | 0 | 2 | ffe7cea0e532ecc27682cb534c0a76e2d0bd756d | 549 | hj-leetcode-kotlin | Apache License 2.0 |
common/common-utils/src/main/java/com/arrazyfathan/common_utils/network/LoggingInterceptor.kt | arrazyfathan | 413,515,245 | false | {"Kotlin": 109996} | package com.arrazyfathan.common_utils.network
import android.util.Log
import com.google.gson.GsonBuilder
import com.google.gson.JsonParser
import com.google.gson.JsonSyntaxException
import okhttp3.logging.HttpLoggingInterceptor
/**
* Created by <NAME> on 11/05/23.
*/
class LoggingInterceptor : HttpLoggingIntercepto... | 0 | Kotlin | 1 | 5 | a2f130f047c320d531ce5d85c54166164c1a72e8 | 866 | NewsApp | MIT License |
alarmscheduler/src/main/java/com/carterchen247/alarmscheduler/event/AlarmSchedulerEventObserver.kt | CarterChen247 | 245,651,581 | false | null | package com.carterchen247.alarmscheduler.event
fun interface AlarmSchedulerEventObserver {
fun onEventDispatched(event: AlarmSchedulerEvent)
} | 1 | Kotlin | 1 | 8 | 8726177fb3ed121d396384d05489a8a6d5da347b | 147 | AlarmScheduler | The Unlicense |
compose/src/main/java/com/onlinepayments/client/kotlin/exampleapp/compose/card/CardFields.kt | wl-online-payments-direct | 781,370,115 | false | {"Kotlin": 233999} | /**
* Copyright © 2024 Global Collect Services. All rights reserved.
*/
package com.onlinepayments.client.kotlin.exampleapp.compose.card
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.CalendarToday
import androidx.co... | 0 | Kotlin | 0 | 0 | 9c330939686fa56be0eb138a3db079843c2e76f5 | 2,185 | sdk-client-android-example-kotlin | Apache License 2.0 |
compose/src/main/java/com/onlinepayments/client/kotlin/exampleapp/compose/card/CardFields.kt | wl-online-payments-direct | 781,370,115 | false | {"Kotlin": 233999} | /**
* Copyright © 2024 Global Collect Services. All rights reserved.
*/
package com.onlinepayments.client.kotlin.exampleapp.compose.card
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.CalendarToday
import androidx.co... | 0 | Kotlin | 0 | 0 | 9c330939686fa56be0eb138a3db079843c2e76f5 | 2,185 | sdk-client-android-example-kotlin | Apache License 2.0 |
app/src/main/java/com/zrcoding/hackertab/features/home/presentation/card/CardItems.kt | zouhir96 | 486,281,742 | false | {"Kotlin": 96848} | package com.zrcoding.hackertab.features.home.presentation.card
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx... | 0 | Kotlin | 0 | 12 | aef27f6d4ea6ce6c4320250208f003d295e451ac | 5,425 | hackertab-android | Apache License 2.0 |
app/src/main/java/com/core/app/helper/DialogHelper.kt | raxden | 165,669,612 | false | {"Gradle": 8, "Java Properties": 2, "Shell": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 2, "Proguard": 20, "Kotlin": 182, "XML": 41, "JSON": 5, "INI": 1, "Java": 1, "Text": 3} | package com.core.app.helper
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.core.commons.extension.getExtras
import timber.log.Timber
class DialogHelper {
... | 1 | null | 1 | 1 | 9ad3b3d2fffdaa7abdf567320e8d6d9f98a67746 | 1,079 | android-core | Apache License 2.0 |
app/src/main/java/com/mateuszcholyn/wallet/backend/api/core/expense/ExpenseCoreServiceAPI.kt | mateusz-nalepa | 467,673,984 | false | {"Kotlin": 643422} | package com.mateuszcholyn.wallet.backend.api.core.expense
import com.mateuszcholyn.wallet.backend.api.core.category.CategoryId
import java.math.BigDecimal
import java.time.Instant
interface ExpenseCoreServiceAPI {
suspend fun add(addExpenseParameters: AddExpenseParameters): Expense
suspend fun remove(expenseI... | 0 | Kotlin | 0 | 0 | 3213bca91abc9aae68f43b5b2b627561ee1437b9 | 988 | wallet | Apache License 2.0 |
responses/src/commonMain/kotlin/ru/krindra/vkkt/responses/friends/FriendsGetRecentResponse.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.responses.friends
import ru.krindra.vkkt.objects.friends.*
typealias FriendsGetRecentResponse = List<Int>
| 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 132 | VKKT | MIT License |
idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/util/ProblemsUtils.kt | wang-yan-github | 109,469,673 | false | null | /*
* Copyright 1999-2017 Alibaba Group.
*
* 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 a... | 27 | null | 5 | 7 | 34383b4d04258a984088dcc448f5307ec37702de | 6,199 | p3c | Apache License 2.0 |
app/src/main/java/com/example/juicetracker/ui/bottomsheet/EntryBottomSheet.kt | codnaTnoraA | 812,924,900 | false | {"Kotlin": 57487} | /*
* Copyright (C) 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | f40c55c9a7a2c7ba48d23a86b436e1cae7a98540 | 6,896 | Ecommerce_App | Apache License 2.0 |
src/windowsMain/kotlin/br/com/gamemods/koterite/filesystem/PathComparator.kt | Koterite | 251,178,118 | false | null | package br.com.gamemods.koterite.filesystem
import br.com.gamemods.koterite.annotation.InternalApi
@InternalApi
internal object PathComparator : Comparator<String> {
override fun compare(a: String, b: String): Int {
val o1StringPart = a.replace("\\d".toRegex(), "")
val o2StringPart = b.replace("\\... | 4 | Kotlin | 0 | 0 | 4bcb9deb72d140cb3d0a93baf90e1d35d25794ed | 687 | Koterite-Filesystem | MIT License |
messaging-ui/src/main/java/com/nabla/sdk/messaging/ui/scene/messages/adapter/viewholders/ProviderLivekitRoomMessageViewHolder.kt | nabla | 478,468,099 | false | null | package com.nabla.sdk.messaging.ui.scene.messages.adapter.viewholders
import android.view.LayoutInflater
import android.view.ViewGroup
import com.benasher44.uuid.Uuid
import com.nabla.sdk.messaging.ui.R
import com.nabla.sdk.messaging.ui.databinding.NablaConversationTimelineItemProviderMessageBinding
import com.nabla.s... | 0 | Kotlin | 1 | 18 | ca83926d41a2028ca992d4aa66f4d387152c6cb4 | 2,092 | nabla-android | MIT License |
composeApp/src/androidMain/kotlin/com/digrec/hodl/MainActivity.kt | digrec | 774,622,616 | false | {"Kotlin": 3314, "Swift": 694} | package com.digrec.hodl
import App
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
/**
* Created by Dejan Igrec
*/
class MainActivity : ComponentActivity() {
... | 0 | Kotlin | 0 | 0 | 097d88dc4f6950671faddadf182ac12a6dc0d2e0 | 538 | hodl | MIT License |
src/main/kotlin/com/github/djaler/evilbot/handlers/base/CommandHandler.kt | Djaler | 202,102,139 | false | null | package com.github.djaler.evilbot.handlers.base
import com.github.djaler.evilbot.filters.message.CommandMessageFilter
import com.github.djaler.evilbot.filters.message.MessageFilter
import com.github.djaler.evilbot.filters.message.and
import dev.inmo.tgbotapi.extensions.utils.withContent
import dev.inmo.tgbotapi.types.... | 12 | null | 8 | 17 | 7183f5ae441059fc004c6b6af02845d995aac12d | 1,527 | evil-bot | MIT License |
peer/src/test/kotlin/io/web3j/libp2p/peer/util/PeerTestUtil.kt | web3j | 168,131,199 | false | null | /*
* Copyright 2019 BLK Technologies Limited (web3labs.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 applic... | 5 | null | 9 | 78 | 3b7d5a15703a572e99d4afd81b06a8eedc1bbecb | 1,772 | libp2p | Apache License 2.0 |
app/src/main/java/com/adematici/socialmedia/RecyclerAdapter.kt | aticiadem | 309,940,783 | false | null | package com.adematici.socialmedia
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main.recycler_row.view.*
class RecyclerAdapter(private val userEmailArray: A... | 0 | Kotlin | 1 | 6 | 6acf9b367fab8efe6b34c4034ea067a5f54bc3bc | 1,270 | SocialMediaAppWithFirebase | MIT License |
app/src/main/java/com/opsc/timesync/ui/home/TimesheetAdapter.kt | johanngeustyn | 648,824,203 | false | null | package com.opsc.timesync.ui.home
import Category
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.icu.text.SimpleDateFormat
import android.os.AsyncTask
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.w... | 0 | Kotlin | 0 | 0 | 546f5783e318ac654319577f0d4f169a4e0ec078 | 4,800 | TimeSync | MIT License |
src/jsTest/kotlin/test/io/kvision/form/check/TriStateCheckBoxSpec.kt | rjaros | 120,835,750 | false | {"Kotlin": 3524783, "CSS": 25183, "JavaScript": 16390, "HTML": 2425} | /*
* Copyright (c) 2017-present Robert Jaros
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 17 | Kotlin | 65 | 1,235 | 7daa34594be70c037bfbaeefbfd1e3d7629e1e0b | 2,622 | kvision | MIT License |
src/jsTest/kotlin/test/io/kvision/form/check/TriStateCheckBoxSpec.kt | rjaros | 120,835,750 | false | {"Kotlin": 3524783, "CSS": 25183, "JavaScript": 16390, "HTML": 2425} | /*
* Copyright (c) 2017-present Robert Jaros
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 17 | Kotlin | 65 | 1,235 | 7daa34594be70c037bfbaeefbfd1e3d7629e1e0b | 2,622 | kvision | MIT License |
tv/tv-foundation/src/main/java/androidx/tv/foundation/media_player/MediaPlayer.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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 | 823 | 4,693 | a3474c3895ee09aff249431af66af2b54641dd4f | 981 | androidx | Apache License 2.0 |
src/commonTest/kotlin/io/github/hansanto/kault/system/auth/VaultSystemAuthTest.kt | Hansanto | 712,104,593 | false | {"Kotlin": 436555, "Shell": 427} | package io.github.hansanto.kault.system.auth
import io.github.hansanto.kault.VaultClient
import io.github.hansanto.kault.exception.VaultAPIException
import io.github.hansanto.kault.system.auth.payload.AuthTuneConfigurationParametersPayload
import io.github.hansanto.kault.system.auth.payload.EnableMethodPayload
import ... | 4 | Kotlin | 0 | 3 | be25c2e7c585ed053e1b4f03ed5a4089b26dafb7 | 7,420 | kault | Apache License 2.0 |
app/src/main/java/com/noto/app/folder/NoteListOrderingDialogFragment.kt | alialbaali | 245,781,254 | false | null | package com.noto.app.folder
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Text
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.get... | 73 | null | 21 | 428 | a1863c169f12d6852edc1c03d080a050647d3964 | 3,627 | Noto | Apache License 2.0 |
app/src/main/java/top/yogiczy/mytv/AppGlobal.kt | yaoxieyoulei | 784,724,425 | false | {"Kotlin": 279978, "HTML": 14090} | package top.yogiczy.mytv
import java.io.File
object AppGlobal {
lateinit var cacheDir: File
} | 3 | Kotlin | 10 | 63 | 7e274037e91e4510611c6246cbf8508668355f2c | 99 | mytv-android | MIT License |
kotlin-node/src/jsMain/generated/node/fs/AppendFileOptionsAsync.kt | JetBrains | 93,250,841 | false | null | // Generated by Karakum - do not modify it manually!
package node.fs
sealed external interface AppendFileAsyncOptions : ObjectEncodingOptions, FlagAndOpenMode {
var flush: Boolean?
}
| 40 | null | 176 | 1,307 | 5dcda74b62898966c8d9a73623d9791e2ebb931f | 190 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/nbagameready/viewmodels/TodayViewModel.kt | nba-game-ready | 451,234,866 | false | {"CSS": 72161, "Kotlin": 57072, "SCSS": 56546, "HTML": 22172, "JavaScript": 14234} | package com.example.nbagameready.viewmodels
import android.app.Application
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.lifecycle.*
import com.example.nbagameready.network.nbaapi.Games
import kotlinx.co... | 0 | CSS | 2 | 0 | fbe549821103994c6f69580d29d3f157b1d87973 | 1,555 | nba-game-ready | Creative Commons Attribution 3.0 Unported |
src/main/kotlin/com/zhaoch23/dialog/SrChemDialog.kt | sakurarealm | 740,696,969 | false | null | package com.zhaoch23.dialog
import com.zhaoch23.dialog.theme.ThemeSrDialog
import ink.ptms.chemdah.taboolib.module.configuration.Configuration
import org.bukkit.configuration.ConfigurationSection
import org.bukkit.configuration.file.YamlConfiguration
import taboolib.common.platform.Plugin
import taboolib.platform.Bukk... | 0 | null | 0 | 3 | bed84034efc6cf83a279a99d6f8d92fb98a687ca | 3,209 | SrChemDialog | MIT License |
app/src/main/java/com/zennymorh/movies/di/MyApplication.kt | zennymorh | 838,541,267 | false | {"Kotlin": 11466} | package com.zennymorh.movies.di
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyApplication: Application() {
} | 0 | Kotlin | 0 | 0 | 012ba015ae5f6ac63e07fe2bc0ccd154070f0f0c | 161 | Movies | Apache License 2.0 |
modules/api-types/src/commonTest-generated/kotlin/com/gw2tb/gw2api/types/v2/GW2v2Skin.kt | GW2ToolBelt | 117,367,550 | false | null | /*
* Copyright (c) 2018-2024 <NAME>
* MACHINE GENERATED FILE, DO NOT EDIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... | 3 | null | 0 | 4 | 13444f5ef99f898d3105786c707b24c984b4fcbb | 8,292 | GW2APIClient | MIT License |
src/main/java/geo/api/main2.kt | unq-ui | 244,222,986 | false | null | package geo.api
import io.javalin.Javalin
import io.javalin.apibuilder.ApiBuilder.*
import org.eclipse.jetty.http.HttpStatus.*
import com.fasterxml.jackson.databind.exc.MismatchedInputException
import geo.Geo
import io.javalin.core.util.RouteOverviewPlugin
fun main() {
val app = Javalin.create {
config ->... | 1 | Kotlin | 0 | 0 | d13a9c3186604b780c12cd7e710782a0bd9a1952 | 2,124 | ej-api-geo | ISC License |
mage/src/main/java/mil/nga/giat/mage/form/field/RadioField.kt | kevind7 | 298,829,342 | true | {"Java": 645134, "Kotlin": 220311} | package mil.nga.giat.mage.form.field
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import kotlinx.android.synthetic.main.view_form_edit_radio_group.view.*
import mil.nga.giat.mage.R
import mil.nga.giat.mage.databinding.ViewFormEditRadioBinding
import mil.nga.giat.ma... | 0 | Java | 0 | 0 | bce4f8e0e051c3ca24aabca20f8dd4fc904f9205 | 1,996 | mage-android | Apache License 2.0 |
app/src/main/java/com/example/covid_19/CovidData.kt | michaelditrick | 441,776,794 | false | null | package com.example.covid_19
import com.google.gson.annotations.SerializedName
import java.util.*
data class CovidData(
val dateChecked: Date,
val positiveIncrease: Int,
val negativeIncrease: Int,
val deathIncrease: Int,
val state: String
)
| 0 | null | 0 | 1 | 897bd585022ee4ab60b5cb18e23a0c9cc8913b59 | 271 | Covid-19 | Apache License 2.0 |
IbadatLibrary/src/main/java/com/ibadat/sdk/data/model/QuranDetailsModel.kt | gakkmediabd | 515,529,030 | false | {"Kotlin": 500471} | package com.ibadat.sdk.data.model
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
class QuranDetailsModel {
@SerializedName("status")
@Expose
var status: Int? = null
@SerializedName("message")
@Expose
var message: String? =... | 0 | Kotlin | 0 | 0 | dfa674f7091852357894e24f0ed67baa183e711f | 3,028 | IbadatSDK | MIT License |
src/commonMain/kotlin/com/jillesvangurp/geojson/geojson.kt | mauhiz | 394,552,493 | true | {"Kotlin": 222394, "JavaScript": 6121, "HTML": 758, "Shell": 519} | @file:Suppress("MemberVisibilityCanBePrivate", "unused")
package com.jillesvangurp.geojson
import com.jillesvangurp.geo.GeoGeometry
import com.jillesvangurp.geo.GeoGeometry.Companion.ensureFollowsRightHandSideRule
import com.jillesvangurp.geo.GeoHashUtils
import kotlinx.serialization.*
import kotlinx.serialization.de... | 0 | Kotlin | 0 | 0 | e9259ec5d2ea2b153ba148029e8d75e3aec5dd84 | 20,478 | geogeometry | MIT License |
vxutil-vertigram/src/main/kotlin/ski/gagar/vxutil/vertigram/types/BotCommandScopeAllPrivateChats.kt | gagarski | 314,041,476 | false | {"Kotlin": 339081} | package ski.gagar.vxutil.vertigram.types
object BotCommandScopeAllPrivateChats : BotCommandScope {
override val type: BotCommandScopeType = BotCommandScopeType.ALL_PRIVATE_CHATS
}
| 0 | Kotlin | 0 | 0 | c32929bd2621a64e1d1d727403a0a3f4278f7d24 | 185 | vxutil | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/incidentreporting/model/nomis/NomisIncidentReport.kt | ministryofjustice | 725,638,590 | false | {"Kotlin": 130999, "Dockerfile": 1365} | package uk.gov.justice.digital.hmpps.incidentreporting.model.nomis
import com.fasterxml.jackson.annotation.JsonInclude
import io.swagger.v3.oas.annotations.media.Schema
import uk.gov.justice.digital.hmpps.incidentreporting.jpa.IncidentReport
import uk.gov.justice.digital.hmpps.incidentreporting.jpa.IncidentStatus
impo... | 2 | Kotlin | 0 | 0 | e0a8359ccd818320ded383d52fd82cc072b839ce | 9,369 | hmpps-incident-reporting-api | MIT License |
app/src/main/java/com/example/infinitehorizontalscroll/ListItem.kt | YarZav | 783,880,059 | false | {"Kotlin": 9752} | package com.example.infinitehorizontalscroll
data class ListItem(
val title: String
) | 0 | Kotlin | 0 | 0 | 2c90e5817d82e55b863c3580686e4e5b687e1c69 | 90 | InfiniteHorizontalScroll | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/util/AbiUtil.kt | aaa1115910 | 571,702,700 | false | {"Kotlin": 1537138} | package dev.aaa1115910.bv.util
import dev.aaa1115910.bv.BVApp
import java.io.File
import java.util.zip.ZipEntry
import java.util.zip.ZipFile
object AbiUtil {
fun getApkSupportedAbiSet(): Set<String> {
val apkPath = BVApp.context.applicationInfo.sourceDir
val apkFile = File(apkPath)
var el... | 18 | Kotlin | 112 | 999 | e93863f4f266485e16e1768fcea6e6b9ad0b276b | 1,350 | bv | MIT License |
app/src/main/java/com/trateg/bepresensimobile/ui/pilih_jenis_surat/PilihJenisSuratActivity.kt | kovala7x | 290,723,854 | false | null | package com.trateg.bepresensimobile.ui.pilih_jenis_surat
import android.content.Intent
import android.os.Bundle
import com.trateg.bepresensimobile.BaseActivity
import com.trateg.bepresensimobile.R
import com.trateg.bepresensimobile.ui.ajukan_surat.AjukanSuratActivity
import com.trateg.bepresensimobile.util.Constants
i... | 0 | Kotlin | 0 | 0 | c9de13741b625f8a33d621c820fffc256fa39582 | 2,385 | BePresensiMobile-Alternatif | Apache License 2.0 |
Fledge/FledgeKotlin/app/src/main/java/com/example/adservices/samples/fledge/sampleapp/CustomAudienceConfigFile.kt | android | 480,989,366 | false | {"Kotlin": 300113, "Java": 277330, "JavaScript": 10043, "AIDL": 719} | package com.example.adservices.samples.fledge.sampleapp
import android.adservices.customaudience.CustomAudience
import android.adservices.customaudience.FetchAndJoinCustomAudienceRequest
import com.google.common.collect.ImmutableBiMap
class CustomAudienceConfigFile(
val customAudiences: ImmutableBiMap<String, Cus... | 9 | Kotlin | 54 | 135 | c6969f566614f3c7d82e8bad907da5c30a438dcf | 431 | privacy-sandbox-samples | Apache License 2.0 |
src/me/anno/utils/types/Ints.kt | AntonioNoack | 456,513,348 | false | null | package me.anno.utils.types
object Ints {
@JvmStatic
fun CharSequence?.toIntOrDefault(default: Int): Int {
val v = toLongOrDefault(default.toLong())
val w = v.toInt()
return if (w.toLong() == v) w else default
}
@JvmStatic
fun CharSequence?.toLongOrDefault(default: Long): ... | 0 | null | 3 | 9 | 94bc7c74436aa567ec3c19f386dd67af0f1ced00 | 2,011 | RemsEngine | Apache License 2.0 |
idea/tests/testData/slicer/outflow/nullableLambda.kt | JetBrains | 278,369,660 | false | null | // FLOW: OUT
fun String.foo(<caret>p: String) {
val v = bar(p, true, { this })
}
fun bar(receiver: String, b: Boolean, lambda: (String.() -> String)?): String {
return if (b) lambda!!.invoke(receiver) else ""
}
| 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 221 | intellij-kotlin | Apache License 2.0 |
intellij.tools.ide.starter/src/com/intellij/ide/starter/ide/IdeDownloader.kt | JetBrains | 499,194,001 | false | null | package com.intellij.ide.starter.ide
import com.intellij.ide.starter.ide.installer.IdeInstaller
import com.intellij.ide.starter.models.IdeInfo
import java.nio.file.Path
interface IdeDownloader {
fun downloadIdeInstaller(ideInfo: IdeInfo, installerDirectory: Path): IdeInstaller
} | 1 | Kotlin | 2 | 8 | 0a891f8555e619572a772cb3e4cac2e707e36644 | 283 | intellij-ide-starter | Apache License 2.0 |
modules/settings/ui/src/main/kotlin/nasa/settings/ui/SettingsScreenImpl.kt | jonapoul | 794,260,725 | false | {"Kotlin": 552276} | package nasa.settings.ui
import alakazam.android.ui.compose.HorizontalSpacer
import alakazam.android.ui.compose.VerticalSpacer
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.R... | 1 | Kotlin | 0 | 1 | 3638e2a3f3c1da5303a65ecc7828ffe9c2ff5d69 | 6,147 | nasa-android | Apache License 2.0 |
app/src/main/java/com/mobilicos/smotrofon/data/local/MovieDao.kt | Globalrunet | 578,572,630 | false | null | package com.mobilicos.smotrofon.data.local
import androidx.room.*
import com.mobilicos.smotrofon.model.Movie
@Dao
interface MovieDao {
@Query("SELECT * FROM movie order by popularity DESC")
fun getAll(): List<Movie>?
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertAll(movies: List<Movie>)... | 0 | Kotlin | 0 | 0 | 33d720706ce1a464e46c87d61c680c03e0202757 | 415 | smotrofon | Apache License 2.0 |
feature/calendar/calendarEndless/src/main/kotlin/com/ngapps/phototime/feature/calendar/calendarEndless/util/MultiplePreviews.kt | ngapp-dev | 752,386,763 | false | {"Kotlin": 1840445, "Shell": 10136} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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
*
*... | 0 | Kotlin | 0 | 3 | dc6556f93cedf210597f0397ad3553de0fbb7a47 | 1,337 | phototime | Apache License 2.0 |
src/tr/hyperionscans/src/eu/kanade/tachiyomi/extension/tr/hyperionscans/HyperionScans.kt | komikku-app | 720,497,299 | false | {"Kotlin": 6775539, "JavaScript": 2160} | package eu.kanade.tachiyomi.extension.tr.hyperionscans
import eu.kanade.tachiyomi.multisrc.zeistmanga.ZeistManga
import eu.kanade.tachiyomi.network.interceptor.rateLimit
class HyperionScans : ZeistManga(
"Hyperion Scans",
"https://www.hyperionscans.site",
"tr",
) {
override val client = super.client.n... | 22 | Kotlin | 8 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 539 | komikku-extensions | Apache License 2.0 |
app/src/main/java/com/kardia/membership/domain/usecases/news/GetLatestNewsUseCase.kt | trungthaihieu93-dev | 359,315,080 | false | null | package com.kardia.membership.domain.usecases.news
import com.kardia.membership.core.exception.Failure
import com.kardia.membership.core.functional.Either
import com.kardia.membership.core.interactor.UseCase
import com.kardia.membership.domain.entities.news.LatestNewsEntity
import com.kardia.membership.domain.reposito... | 0 | null | 0 | 0 | 00e51171479e259edbccf36ee155dc8e4489e40f | 637 | kai-membership-kotlin | MIT License |
src/test/kotlin/com/parmet/buf/gradle/AbstractBufIntegrationTest.kt | andrewparmet | 291,329,569 | false | null | /*
* Copyright (c) 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 writi... | 3 | Kotlin | 1 | 10 | 19ffb24e7538a920843a208689af0742ff058d73 | 2,471 | buf-gradle-plugin | Apache License 2.0 |
android/app/src/main/kotlin/com/example/aris_startexm/MainActivity.kt | ariscybertech | 443,126,121 | false | {"Dart": 23116, "HTML": 4582, "Swift": 404, "Shell": 257, "Kotlin": 130, "Objective-C": 38, "CSS": 23} | package com.example.aris_startexm
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | d63a018b0150d8701c4930965d82c04dd08ee849 | 130 | aris_startexm | The Unlicense |
plugins/kotlin/completion/testData/weighers/basic/contextualReturn/noReturnType/InWhenWithBody.kt | ingokegel | 72,937,917 | true | null | // FIR_COMPARISON
// FIR_IDENTICAL
fun returnFun() {}
fun usage(a: Int) {
when (a) {
10 -> re<caret>
}
return
}
// ORDER: return
// ORDER: returnFun
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 171 | intellij-community | Apache License 2.0 |
src/main/java/com/FinGameWorks/LogMeow/GUIManager.kt | JustinFincher | 146,806,620 | false | null | package com.FinGameWorks.LogMeow
import com.android.ddmlib.Log
import com.android.ddmlib.logcat.LogCatMessage
import com.android.ddmlib.logcat.LogCatTimestamp
import glm_.vec2.Vec2
import glm_.vec2.Vec2i
import glm_.vec4.Vec4
import imgui.*
import imgui.internal.Window
import vkk.utf8
import java.text.SimpleDateForma... | 1 | Kotlin | 1 | 1 | b47ad8e3f1d085e4280ba2139936677a2f079d5a | 14,564 | LogMeowJava | MIT License |
app/src/main/java/com/kshitijpatil/elementaryeditor/ui/common/ReduxViewModel.kt | Kshitij09 | 427,469,641 | false | null | package com.kshitijpatil.elementaryeditor.ui.common
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import timber.log.Timber
abstract class ReduxViewModel<S, A>(initialState: S) : ViewModel() {
interface MiddleWare<A, S... | 4 | Kotlin | 0 | 0 | 67aa2f2cc0f60e9c64f6b9ad40e5a971f2fbe446 | 1,311 | Elementary-Editor | Apache License 2.0 |
educational-core/testSrc/com/jetbrains/edu/coursecreator/actions/placeholder/CCAddAnswerPlaceholderActionTest.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.coursecreator.actions.placeholder
import com.jetbrains.edu.coursecreator.CCUtils.DEFAULT_PLACEHOLDER_TEXT
import com.jetbrains.edu.learning.courseFormat.AnswerPlaceholderDependency
import com.jetbrains.edu.learning.courseFormat.CourseMode
import com.jetbrains.edu.learning.testAction
class CC... | 0 | null | 40 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 3,577 | educational-plugin | Apache License 2.0 |
src/main/kotlin/io/github/intellij/dlanguage/lexer/DLiteralEscapesLexer.kt | intellij-dlanguage | 27,922,930 | false | null | package io.github.intellij.dlanguage.lexer
import com.intellij.lexer.LexerBase
import com.intellij.openapi.util.text.StringUtil.isHexDigit
import com.intellij.openapi.util.text.StringUtil.isOctalDigit
import com.intellij.psi.StringEscapesTokenTypes.*
import com.intellij.psi.tree.IElementType
import com.intellij.util.t... | 170 | null | 51 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 5,650 | intellij-dlanguage | MIT License |
auth/src/main/kotlin/dev/atick/auth/di/CredentialManagerModule.kt | atick-faisal | 433,148,965 | false | {"Kotlin": 385745, "Ruby": 1317} | /*
* Copyright 2024 Atick Faisal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 7 | Kotlin | 10 | 70 | efa4a60d521afd67ab52eca8469c18ed20352fa7 | 1,170 | Jetpack-Compose-Starter | Apache License 2.0 |
largest-series-product/bin/series.kt | rhdeck | 149,451,550 | false | {"HTML": 520884, "Kotlin": 473204, "JavaScript": 320372, "CSS": 230580} | data class Series(val digitStr:String) {
val digits: List<Int> = digitStr.toCharArray().map { c ->
val t = (c - '0').toInt()
when {
t < 0 || t > 9 -> throw IllegalArgumentException("all digits must be decimal digits")
else -> t
}
}
fun getLargestProduct(len... | 0 | HTML | 0 | 0 | d73f466f1417efe418fb597dd5b0a9cb94c37661 | 695 | exercism-kotlin | MIT License |
src/test/kotlin/com/kalikov/game/TestClock.kt | kalikov | 696,277,791 | false | {"Kotlin": 392286} | package com.kalikov.game
import java.time.Clock
import java.time.Instant
import java.time.ZoneId
class TestClock : Clock() {
private var millis: Long = System.currentTimeMillis()
override fun millis(): Long {
return millis
}
override fun instant(): Instant {
throw UnsupportedOperatio... | 0 | Kotlin | 0 | 0 | 498fd9de54c86d42989d88280849ee709e255f5b | 664 | battle-city | MIT License |
buildSrc/src/main/kotlin/org/leviathan941/androidprojecttemplate/AppVersion.kt | leviathan941 | 776,517,471 | false | {"Kotlin": 11046} | /*
* Copyright 2024 Alexey Kuzin <amkuzink@gmail.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... | 0 | Kotlin | 0 | 0 | f7f231fcf9e86fc3580f93a5a82ca3071997c12f | 1,150 | Android-Project-Template | Apache License 2.0 |
woodenox/src/main/java/com/lgjy/woodenox/db/TaskContextConvertor.kt | JYLongKong | 478,014,201 | false | null | package com.lgjy.woodenox.db
import androidx.room.TypeConverter
import com.lgjy.woodenox.entity.ContextConfig
import com.lgjy.woodenox.util.JsonConvertor
import com.lgjy.woodenox.util.LogP
/**
* Created by LGJY on 2022/6/23.
* Email:yujye@sina.com
*
* ROOM定义下的任务上下文表的序列反序列化工具
*/
internal object TaskContextConver... | 0 | Kotlin | 0 | 4 | 1e1617b67d93618f7636aa57e5a5ce5ead9d6823 | 1,610 | WoodenOx | MIT License |
app/src/main/kotlin/com/fernandocejas/sample/features/databaseArchitecutre/MindValleyViewModelNew.kt | IMDroidude | 245,182,664 | false | null | package com.fernandocejas.sample.features.databaseArchitecutre
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Observer
import android.content.Context
import com.fernandocejas.sample.core.exception.Failure
import com.fernandocejas.sample.core.interacto... | 0 | Kotlin | 0 | 0 | 0f0c0b249928f7211d2218c17cfe6a6b40212554 | 1,919 | Android-CleanArchitecture-Kotlin | Apache License 2.0 |
app/src/main/java/foi/nloncar/IoTAndroidApp/MainActivity.kt | NinoLoncar | 836,421,926 | false | {"Kotlin": 5259} | package foi.nloncar.IoTAndroidApp
import android.os.Bundle
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.viewpager2.widget.ViewPager2
import com.google.android.material.tabs.TabLayout
import com.google.android.material.tabs.TabLayoutMediator
import foi.nloncar.IoTAnd... | 0 | Kotlin | 0 | 0 | a8f48cc0ca4011006fedca00afb02732adc6cd3b | 1,693 | iot-android-app | MIT License |
features/finances/impl/src/main/kotlin/br/com/mob1st/features/finances/impl/ui/category/detail/CategoryDetailPage.kt | mob1st | 526,655,668 | false | {"Kotlin": 589975, "Shell": 1558} | package br.com.mob1st.features.finances.impl.ui.category.detail
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
im... | 11 | Kotlin | 0 | 3 | ea57a781dd1c7e336213ed9ca76146afbb445e9d | 6,924 | bet-app-android | Apache License 2.0 |
djvm/src/main/kotlin/net/corda/djvm/references/Member.kt | iamsurajdc | 149,111,164 | true | {"Kotlin": 6873916, "Java": 199233, "CSS": 23489, "Shell": 11253, "Gherkin": 3162, "Groovy": 2129, "Batchfile": 1367, "PowerShell": 660, "Makefile": 569} | package net.corda.djvm.references
/**
* Representation of a class member.
*
* @property access The access flags of the member.
* @property className The name of the owning class.
* @property memberName The name of the member.
* @property signature The signature of the member.
* @property genericsDetails Details... | 0 | Kotlin | 0 | 0 | 160bc147ed7de140dcde441aeb26f05c72765f3d | 963 | corda | Apache License 2.0 |
app/src/androidTest/java/examples/animal/forest/chat/integrationtests/MessageIntegrationTest.kt | The-Shader | 257,034,477 | false | null | package examples.animal.forest.chat.integrationtests
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.gson.JsonObject
import com.pubnub.api.PubNub
import com.pubnub.api.callbacks.SubscribeCallback
import com.pubnub.api.enums.PNOperationType
import com.pubnub.api.models.consumer.PNStatus
import co... | 0 | Kotlin | 0 | 0 | 7f75124093e241a08284335c05be1575d077ddda | 6,872 | chat-examples-kotlin | MIT License |
app/src/main/java/com/mohmmed/mosa/eg/towmmen/domin/usecases/expanse/GetAvgExpansePerMonth.kt | M4A28 | 842,519,543 | false | {"Kotlin": 877792} | package com.mohmmed.mosa.eg.towmmen.domin.usecases.expanse
import com.mohmmed.mosa.eg.towmmen.data.repository.ExpanseRepositoryImp
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class GetAvgExpansePerMonth @Inject constructor(
private val expanseRepository: ExpanseRepositoryImp
){
operator fu... | 0 | Kotlin | 0 | 0 | 0b4a00de059b042dff209ceecb970695265d706e | 412 | Towmmen | MIT License |
dbinspector/src/main/kotlin/com/infinum/dbinspector/ui/pragma/tableinfo/TableInfoFragment.kt | brahmantya | 321,405,181 | false | null | package com.infinum.dbinspector.ui.pragma.foreignkeys
import com.infinum.dbinspector.domain.pragma.models.ForeignKeyListColumns
import com.infinum.dbinspector.ui.pragma.shared.PragmaFragment
import org.koin.androidx.viewmodel.ext.android.viewModel
import java.util.Locale
internal class ForeignKeysFragment : PragmaFra... | 0 | Kotlin | 0 | 0 | 2faef15dacd9fb8d21e41cc5100b1a91c82b80d2 | 750 | P.MOBILE-TUGAS-MODUL10 | Apache License 2.0 |
src/main/kotlin/mottasvar/SvarService.kt | navikt | 369,102,595 | false | null | package mottasvar
import Repository
import Svar
import Tilstand
import no.nav.veilarbaktivitet.avro.DelingAvCvRespons
import org.apache.kafka.clients.consumer.Consumer
import org.apache.kafka.clients.consumer.ConsumerRecords
import org.apache.kafka.common.TopicPartition
import org.apache.kafka.common.errors.WakeupExce... | 1 | Kotlin | 1 | 0 | 735baff8fca65d9a747753a61a84749a82fd335e | 3,257 | foresporsel-om-deling-av-cv-api | MIT License |
src/main/kotlin/org/typedb/typeql/plugin/jetbrains/psi/PsiTypeQLElement.kt | typedb-osi | 365,569,922 | false | null | package org.typedb.typeql.plugin.jetbrains.psi
import com.intellij.lang.ASTNode
import com.intellij.psi.impl.source.tree.CompositeElement
import org.typedb.typeql.plugin.jetbrains.TypeQLParserDefinition
import org.typedb.typeql.plugin.jetbrains.psi.constraint.PsiOwnsTypeConstraint
import org.typedb.typeql.plugin.jetbr... | 2 | Kotlin | 1 | 9 | 6fc9cb46df1bea78faebbf34ce5610e5a14b8ac3 | 1,792 | typeql-plugin-jetbrains | MIT License |
app/src/main/java/com/takusemba/dribbblesampleapp/network/ShotApi.kt | TakuSemba | 47,985,844 | false | null | package com.takusemba.dribbblesampleapp.network
import com.takusemba.dribbblesampleapp.R
import com.takusemba.dribbblesampleapp.model.Shot
import retrofit.Callback
import retrofit.http.GET
import retrofit.http.Query
/**
* Created by takusemba on 15/11/09.
*/
interface ShotApi {
@GET("/shots/?access_token=$AC... | 0 | null | 3 | 11 | 4f36b6fefb46b812334fd9f85e6e1aadbb5d3c30 | 927 | DribbbleKotlinApp | Apache License 2.0 |
shared/src/commonMain/kotlin/com/github/odaridavid/weatherapp/api/Logger.kt | HarryRegel | 782,051,735 | false | {"Kotlin": 157840, "Swift": 4005} | package com.github.odaridavid.weatherapp.api
interface Logger {
fun logException(throwable: Throwable)
}
| 0 | Kotlin | 1 | 3 | e45b8e9db540eb3cae7d19fd36a5e9aa9899dc39 | 110 | weather-app | Apache License 2.0 |
library/common/src/main/kotlin/com/fphoenixcorneae/ximalaya/common/router/listen/ListenRouterService.kt | wenmagi | 407,388,827 | true | {"Kotlin": 62539} | package com.fphoenixcorneae.ximalaya.common.router.listen
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.template.IProvider
/**
* @desc:ListenRouterService
* @date:2021/08/03 10:14
*/
interface ListenRouterService : IProvider {
fun navigation(): Fragment
} | 0 | null | 0 | 0 | be3c4b43bebd68638a29c868a63eb46508591f3b | 298 | Ximalaya | Apache License 2.0 |
platform/configuration-store-impl/src/schemeManager/SchemeDataHolderImpl.kt | hieuprogrammer | 284,920,751 | false | null | // 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.configurationStore.schemeManager
import com.intellij.configurationStore.LOG
import com.intellij.configurationStore.SchemeDataHolder
import com.intellij.confi... | 214 | null | 4829 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,644 | intellij-community | Apache License 2.0 |
Chapter12/ch12_20.kt | PacktPublishing | 94,323,096 | false | null | fun main(args: Array<String>) {
val myItem = MyItem().apply {
startProcess()
}
}
class MyItem {
fun startProcess() = println("Starting Process!")
} | 3 | null | 31 | 66 | 931eb73e7bab1b0e56fa9fcd903ae9346183780b | 177 | Learning-RxJava | MIT License |
build-tools/agp-gradle-api/src/main/java/com/android/build/api/variant/ApplicationAndroidComponentsExtension.kt | RivanParmar | 526,653,590 | 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... | 0 | null | 2 | 17 | 8fb2bb1433e734aa9901184b76bc4089a02d76ca | 1,146 | androlabs | Apache License 2.0 |
uikit-sample/src/main/kotlin/com/sendbird/uikit_messaging_android/consts/InitState.kt | kwhiteside-favor | 715,818,375 | true | {"Java Properties": 2, "YAML": 1, "Markdown": 6, "Gradle": 6, "Shell": 1, "EditorConfig": 1, "Batchfile": 1, "Text": 1, "Ignore List": 4, "Proguard": 4, "XML": 389, "Java": 330, "Kotlin": 269, "JSON": 2} | package com.sendbird.uikit_messaging_android.consts
/**
* Used with Sendbird UIKit initialization.
*/
enum class InitState {
/**
* Indicates the migrating state.
*/
MIGRATING,
/**
* Indicates the failed state.
*/
FAILED,
/**
* Indicates the succeeded state.
*/
... | 0 | null | 0 | 0 | 6541c6807de169143b20726006e9f156f33cc48b | 330 | sendbird-uikit-android | MIT License |
app/src/main/java/com/task/usecase/errors/ErrorFactory.kt | RamySala | 299,819,944 | false | null | package com.task.usecase.errors
import com.task.data.error.Error
interface ErrorFactory {
fun getError(errorCode: Int): Error
} | 0 | Kotlin | 0 | 0 | d233ea83b19438798b5028105b6eec54c0d83ab2 | 133 | MVVM-Kotlin-Android-Architecture | Apache License 2.0 |
src/main/kotlin/nolambda/playground/singleton/ObjectTest.kt | esafirm | 100,158,388 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Makefile": 1, "Markdown": 1, "INI": 1, "Kotlin": 48, "Java": 2} | package nolambda.playground.singleton
open class ObjectTest(val message: String) {
fun test() {
println(message)
}
}
object ObjectOf : ObjectTest("test")
fun main() {
ObjectOf.test()
} | 0 | Kotlin | 0 | 2 | c914bc9249757a0d67de909c5db05d3a9c5d59c5 | 207 | kotlin-playground | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.