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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
homework/Day8_FizzBuzzList/app/src/main/java/io/sethclark/fizzbuzzassigment/FizzBuzzAdapter.kt | setheclark | 155,976,009 | false | null | package io.sethclark.fizzbuzzassigment
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
private const val NUM_TYPE = 0
private const val FIZZ_TYPE = 1
private const val BUZZ_TYPE = 2
private const val FIZZBUZZ_TYPE = 3
cl... | 0 | Kotlin | 0 | 0 | 07e6284d7dd21191b5477df91b681f3026272846 | 2,238 | android_course_resources | Apache License 2.0 |
app/src/main/java/com/iriswallet/ui/BackupService.kt | RGB-Tools | 533,696,092 | false | {"Kotlin": 268072, "Shell": 2988, "CMake": 1621} | package com.iriswallet.ui
import android.app.Service
import android.content.Intent
import android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC
import android.os.Build
import android.os.IBinder
import android.util.Log
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.iriswallet.R
import ... | 2 | Kotlin | 8 | 33 | d82789880030360bbdc9e9c4410654be4868f787 | 3,110 | iris-wallet-android | MIT License |
plugins/markdown/core/src/org/intellij/plugins/markdown/lang/psi/impl/MarkdownLinkDestinationImpl.kt | trinhanhngoc | 205,765,945 | false | null | package org.intellij.plugins.markdown.lang.psi.impl
import com.intellij.extapi.psi.ASTWrapperPsiElement
import com.intellij.lang.ASTNode
import org.intellij.plugins.markdown.lang.psi.MarkdownPsiElement
import org.jetbrains.annotations.ApiStatus
@Deprecated("Please use {@link MarkdownLinkDestination} instead.", Replac... | 1 | null | 1 | 1 | f1b733c79fd134e6646f28d1dc99af144c942785 | 491 | intellij-community | Apache License 2.0 |
gappein-sdk/src/main/java/com/gappein/sdk/model/User.kt | rooparsh | 300,498,535 | true | {"Kotlin": 75626} | package com.gappein.sdk.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
import java.util.*
@Parcelize
data class User(
var token: String = "",
var createdAt: Date? = null,
var profileImageUrl: String = "",
var name: String = "",
var isOnline: Boolean = false,
v... | 0 | null | 0 | 0 | f2a552b94b85627af4fe301d5be2934118ebd96a | 356 | Gappein-Chat-SDK | MIT License |
plugins/kotlin/idea/tests/testData/copyPaste/imports/Inner.kt | ingokegel | 72,937,917 | false | null | package a
import a.Outer.*
class Outer {
inner class Inner {
}
inner class Inner2 {
}
class Nested {
}
enum class NestedEnum {
}
object NestedObj {
}
interface NestedInterface {
}
annotation class NestedAnnotation
}
<selection>fun f(i: Inner, n: Nested, e: NestedEn... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 416 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/wapp/database/CityDao.kt | GoodDD | 583,626,760 | false | null | package com.example.wapp.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.wapp.data.models.City
import kotlinx.coroutines.flow.Flow
@Dao
interface CityDao {
@Query("SELECT * FROM city_table")
fun getCities(): F... | 0 | Kotlin | 0 | 0 | fa428f338b6c2a0460f4218edc90ecadc3c5aa1a | 426 | Wapp | MIT License |
src/main/kotlin/com/github/mwarc/realtimeauctions/AuctionHandler.kt | mwarc | 589,595,550 | false | null | package com.github.mwarc.realtimeauctions
import io.vertx.core.json.Json
import io.vertx.ext.web.RoutingContext
import java.math.BigDecimal
class AuctionHandler(
private val repository: AuctionRepository,
private val validator: AuctionValidator
) {
fun handleGetAuction(context: RoutingContext) {
... | 0 | Kotlin | 0 | 1 | bc02bc74a91600a50d0f9cbe1f0dd7bbe98f4a34 | 1,793 | simple-realtime-auctions-vertx4-example | Apache License 2.0 |
knot-thing/src/main/java/com/cesar/knot_sdk/knot_data/KNoTValueString.kt | lcc | 228,890,671 | true | {"Kotlin": 46508} | package com.cesar.knot_sdk.knot_data
class KNoTValueString (
override val sensorId : Int,
var value : String
) : KNoTValue<KNoTValueString> {
override fun lesser(knotValue : KNoTValueString) =
value.length < knotValue.value.length
override fun greater(knotValue : KNoTValueString) =
va... | 0 | Kotlin | 0 | 0 | 61d40be8c0ff6360a2b8e318ae5902e604e94c2d | 601 | knot-android-sdk | Apache License 2.0 |
src/main/kotlin/com/autonomousapps/internal/android/AndroidGradlePlugin4_2.kt | autonomousapps | 217,134,508 | false | null | @file:Suppress("ClassName", "UnstableApiUsage")
package com.autonomousapps.internal.android
import com.android.build.api.dsl.CommonExtension
import com.android.build.gradle.BaseExtension
import org.gradle.api.Project
import org.gradle.api.file.RegularFile
import org.gradle.api.file.RegularFileProperty
import org.grad... | 88 | Kotlin | 55 | 910 | da02a56a0b7a00a26876cdaa29321f8376bf7099 | 1,702 | dependency-analysis-android-gradle-plugin | Apache License 2.0 |
json-lib/src/main/kotlin/angstromio/json/internal/deserializer/DataClassBeanProperty.kt | angstromio | 683,562,832 | false | {"Kotlin": 302899, "Java": 4363} | package angstromio.json.internal.deserializer
import com.fasterxml.jackson.annotation.JacksonAnnotation
import com.fasterxml.jackson.annotation.JacksonInject
import com.fasterxml.jackson.databind.BeanProperty
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.JavaType
im... | 0 | Kotlin | 0 | 0 | db9c63b291db92a8fbbc1135ebdf97197f08f5c5 | 4,239 | angstromio-json | Apache License 2.0 |
app/src/main/java/com/breezesalesoriplast/features/weather/api/WeatherRepoProvider.kt | DebashisINT | 630,052,678 | false | {"Kotlin": 15891731, "Java": 1030472} | package com.breezesalesoriplast.features.weather.api
import com.breezesalesoriplast.features.task.api.TaskApi
import com.breezesalesoriplast.features.task.api.TaskRepo
object WeatherRepoProvider {
fun weatherRepoProvider(): WeatherRepo {
return WeatherRepo(WeatherApi.create())
}
} | 0 | Kotlin | 0 | 0 | 45469c2142f48f7fbf2796e3f63cd80b41b1662c | 299 | Oriplast | Apache License 2.0 |
api-models/src/main/kotlin/club/speedrun/vods/Util.kt | qixils | 517,457,295 | false | {"Kotlin": 222833, "Svelte": 33997, "TypeScript": 26226, "CSS": 13749, "HTML": 910, "JavaScript": 848} | package club.speedrun.vods
fun <T> Appendable.appendElement(element: T, transform: ((T) -> CharSequence)?) {
when {
transform != null -> append(transform(element))
element is CharSequence? -> append(element)
element is Char -> append(element)
else -> append(element.toString())
}... | 15 | Kotlin | 0 | 4 | 3c40cdd6a73d7177a1065420ba9aaf0ae85855d9 | 1,371 | kgdq | MIT License |
kategory-core/src/main/kotlin/kategory/instances/WriterTInstances.kt | JcMinarro | 110,547,619 | true | {"Kotlin": 753007, "CSS": 117018, "HTML": 7782, "JavaScript": 6944, "Shell": 2706} | package arrow
@instance(WriterT::class)
interface WriterTFunctorInstance<F, W> : Functor<WriterTKindPartial<F, W>> {
fun FF(): Functor<F>
override fun <A, B> map(fa: WriterTKind<F, W, A>, f: (A) -> B): WriterT<F, W, B> = fa.ev().map({ f(it) }, FF())
}
@instance(WriterT::class)
interface WriterTApplicativeIns... | 0 | Kotlin | 0 | 5 | a88e4d11bb87f39684d1f2d4db434153e0b33ffc | 3,080 | kategory | Apache License 2.0 |
reservation-service/src/main/kotlin/com/kevinlinxp/springcloudapp/reservationservice/ReservationServiceApplication.kt | kevinlinxp | 124,768,003 | false | null | package com.kevinlinxp.springcloudapp.reservationservice
import brave.sampler.Sampler
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryCli... | 0 | Kotlin | 0 | 0 | 329d951b487856782296021db19c8a6ed8c4d226 | 1,787 | spring-cloud-app | MIT License |
src/main/kotlin/org/dicthub/plugin/PluginUpdateChecker.kt | dicthub | 172,294,884 | false | null | package org.dicthub.plugin
import org.dicthub.model.PluginInfo
import org.dicthub.model.UserPreference
import org.w3c.dom.get
import kotlin.browser.localStorage
import kotlin.js.Date
import kotlin.js.Promise
data class PluginUpdateResult(
val newPlugins: List<PluginInfo>,
val upgradablePlugins: List<... | 2 | Kotlin | 0 | 4 | 1f9c75959f0322825a0f3ec658765933da723669 | 1,697 | DictHubExtension | MIT License |
KaafkaProject/app/src/main/java/com/example/kaafkaproject/BluetoothPrinter.kt | Nandapraisal | 738,430,520 | false | {"Kotlin": 31972} | package com.example.kaafkaproject
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothSocket
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android... | 0 | Kotlin | 0 | 0 | 2e3c24be516d538ba43f0c41caf4eb22c68b611d | 4,922 | My-Apps | Apache License 2.0 |
app/src/main/java/com/lx/todaysbing/data/opalapi/IndexResponse.kt | liuxue0905 | 348,978,492 | false | null | package com.lx.todaysbing.data.opalapi
import com.google.gson.annotations.SerializedName
data class IndexResponse(
@field:SerializedName("categories") val categories: List<String>,
@field:SerializedName("colors") val colors: List<String>,
@field:SerializedName("countries") val countries: List<String>,
... | 0 | Kotlin | 0 | 0 | 6eadfb2af127581510ee02f5484aa96924f7a845 | 507 | Today-s-Bing-2 | Apache License 2.0 |
utilk_android/src/main/java/com/mozhimen/kotlin/utilk/kotlin/UtilKThrowable.kt | mozhimen | 798,079,717 | false | {"Kotlin": 1378809, "Java": 3920} | package com.mozhimen.kotlin.utilk.kotlin
import com.mozhimen.kotlin.elemk.android.os.cons.CBuild
/**
* @ClassName UtilKThrowable
* @Description TODO
* @Author Mozhimen & <NAME>
* @Date 2024/4/23
* @Version 1.0
*/
fun Throwable.getStrMessage(): String =
UtilKThrowable.getStrMessage(this)
///////////////////... | 0 | Kotlin | 0 | 0 | 5ca8a42e09f21eadc89b61f779e631f788b7ee5a | 708 | KUtilKit | MIT License |
app/src/test/java/com/jxareas/xpensor/features/converter/presentation/ui/ConverterViewModelTest.kt | jxareas | 540,284,293 | false | {"Kotlin": 260827, "Python": 1602, "Shell": 695} | package com.jxareas.xpensor.features.converter.presentation.ui
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import app.cash.turbine.test
import com.jxareas.sharedtest.rules.TestCoroutineRule
import com.jxareas.xpensor.features.converter.domain.usecase.ConvertCurrencyUseCase
import io.mockk.MockKA... | 0 | Kotlin | 3 | 35 | c8639526a7fdd710e485668093ce627e0fa1e8e5 | 1,627 | Xpensor | MIT License |
src/main/kotlin/ar/edu/utn/frba/tacs/tp/api/herocardsgame/config/WebSocketConfig.kt | tacs-2021-1c-tp-hero-cards | 358,787,857 | false | {"Gradle": 1, "YAML": 3, "Dotenv": 1, "Gradle Kotlin DSL": 1, "Dockerfile": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "JSON": 14, "Java": 1, "Kotlin": 132, "JavaScript": 1, "HTML": 1, "CSS": 1} | package ar.edu.utn.frba.tacs.tp.api.herocardsgame.config
import org.springframework.context.annotation.Configuration
import org.springframework.messaging.simp.config.MessageBrokerRegistry
import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker
import org.springframework.web.socket.config.a... | 20 | null | 1 | 1 | 5ddb882bfdef41c04eaca7a68afacbb2999457bb | 899 | hero-cards-game | MIT License |
src/test/kotlin/io/sip3/salto/ce/management/ManagementHandlerTest.kt | sip3io | 212,591,485 | false | {"Kotlin": 666534, "Groovy": 5330} | /*
* Copyright 2018-2024 SIP3.IO, Corp.
*
* 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... | 0 | Kotlin | 2 | 76 | 5819c13a6f6e877dc04c6775ffd798c895843dc5 | 16,215 | sip3-salto-ce | Apache License 2.0 |
app/src/main/java/com/pedrogomez/hnmob/models/api/HighlightResultResponse.kt | makhnnar | 351,594,709 | false | null | package com.pedrogomez.hnmob.models.api
import kotlinx.serialization.Serializable
@Serializable
data class HighlightResultResponse(
val author: AuthorResponse,
val comment_text: CommentTextResponse,
val story_title: StoryTitleResponse,
val story_url: StoryUrlResponse,
val title... | 0 | Kotlin | 0 | 0 | 4319c2ee05476da173e88edfd2b1ec974f985b27 | 367 | HNMob | MIT License |
app/src/main/java/com/vishalag53/mytasks/Tasks/Repository/TasksListRepository.kt | vishalag53 | 676,355,044 | false | null | package com.vishalag53.mytasks.Tasks.Repository
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.text.Editable
import android.util.Log
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
i... | 0 | Kotlin | 0 | 0 | 8a156e226c9af1d92f50dc26e084a0b021f38097 | 8,095 | MyTasks | Apache License 2.0 |
adb-server/adb-server-common/src/main/java/com/kaspersky/adbserver/common/log/fulllogger/FullLogger.kt | KasperskyLab | 208,070,025 | false | {"Kotlin": 736940, "Shell": 1880, "Makefile": 387} | package com.kaspersky.adbserver.common.log.fulllogger
import com.kaspersky.adbserver.common.log.logger.LogLevel
internal interface FullLogger {
fun log(
logLevel: LogLevel? = null,
tag: String? = null,
method: String? = null,
text: String? = null
)
}
| 55 | Kotlin | 150 | 1,784 | 9c94128c744d640dcd646b86de711d2a1b9c3aa1 | 294 | Kaspresso | Apache License 2.0 |
app/src/main/kotlin/net/primal/android/core/compose/feed/note/RepostedNotice.kt | PrimalHQ | 639,579,258 | false | {"Kotlin": 2548226} | package net.primal.android.core.compose.feed.note
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.foundation.text.InlineTextContent
import andr... | 56 | Kotlin | 4 | 98 | 438072af7f67762c71c5dceffa0c83dedd8e2e85 | 2,834 | primal-android-app | MIT License |
src/main/kotlin/com/dvdmunckhof/aoc/event2021/Day04.kt | dvdmunckhof | 318,829,531 | false | {"Kotlin": 195848, "PowerShell": 1266} | package com.dvdmunckhof.aoc.event2021
class Day04(private val input: String) {
fun solvePart1(): Int = solve(true)
fun solvePart2(): Int = solve(false)
private fun solve(firstMatch: Boolean): Int {
val parts = input.split("\n\n")
val numbers = parts.first().split(",").map(String::toInt)
... | 0 | Kotlin | 0 | 0 | 025090211886c8520faa44b33460015b96578159 | 1,923 | advent-of-code | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/sagemaker/CfnModelPackageGroupPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.sagemaker
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.sagemaker.CfnModelPackageGroupProps
@Generated
public fun buildCfnModelPackageGroupProps(initializer: @AwsCdkDsl
CfnModelPac... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 451 | aws-cdk-kt | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/annotations/annotationApplicability/annotationPropertyGettersDisabled.fir.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // LANGUAGE: -ForbidJvmAnnotationsOnAnnotationParameters
// ISSUE: KT-70169
annotation class A(
<!JVM_STATIC_NOT_IN_OBJECT_OR_COMPANION!>@get:JvmStatic<!> val x: Int,
@get:JvmName("yy") val y: Int,
<!SYNCHRONIZED_IN_ANNOTATION_WARNING!>@get:Synchronized<!> val z: Int,
<!OVERLOADS_WITHOUT_DEFAULT_ARGUME... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 627 | kotlin | Apache License 2.0 |
app/src/main/java/com/alok/dailynews/ui/news/NewsCard.kt | alokbharti | 266,596,782 | false | null | package com.alok.dailynews.ui.news
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.util.Log
import android.widget.ImageView
import android.widget.TextView
import com.alok.dailynews.R
import com.alok.dailynews.interfaces.OnSwipe
import com.alok.dailynews.models.NewsIte... | 0 | Kotlin | 2 | 5 | d57529683006accb85c21916d5463dfe39f58307 | 2,087 | DailyNews-Kotlin | Apache License 2.0 |
kodein-db/src/commonMain/kotlin/com/bselzer/ktx/kodein/db/cache/DBCacheProvider.kt | Woody230 | 388,189,330 | false | null | package com.bselzer.ktx.kodein.db.cache
import com.bselzer.ktx.kodein.db.transaction.DBTransaction
import com.bselzer.ktx.kodein.db.transaction.DBTransactionManager
import org.kodein.db.DB
import kotlin.reflect.KClass
/**
* The caching abstraction for multiple instances.
*
* @param database the database
* @param ... | 1 | Kotlin | 0 | 0 | 707e2e20c0765ab40b5951acedbb28783c4af312 | 1,979 | KotlinExtensions | Apache License 2.0 |
plugins/kotlin/completion/impl-k2/src/org/jetbrains/kotlin/idea/completion/impl/k2/contributors/helpers/ShadowedCallablesFilter.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 org.jetbrains.kotlin.idea.completion.contributors.helpers
import org.jetbrains.kotlin.analysis.api.KtAnalysisSession
import org.jetbrains.kotlin.analysis.api.components.KtExtensionApplicabil... | 233 | null | 4912 | 15,461 | 9fdd68f908db0b6bb6e08dc33fafb26e2e4712af | 12,366 | intellij-community | Apache License 2.0 |
app/src/main/java/com/ealva/toque/ui/library/AlbumSongsScreen.kt | pandasys | 311,981,753 | false | null | /*
* Copyright 2021 Eric A. Snell
*
* 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 t... | 0 | Kotlin | 0 | 0 | f64ca9023f2384d322d924ceeb0cf3c8c5a1809d | 6,189 | toque | Apache License 2.0 |
nlp/front/storage-mongo/target/generated-sources/kapt/compile/fr/vsct/tock/nlp/front/shared/config/EntityTypeDefinition_Deserializer.kt | cooksane | 151,793,390 | true | {"Kotlin": 2507910, "TypeScript": 358055, "HTML": 140949, "CSS": 33484, "JavaScript": 5174, "Shell": 1591} | package fr.vsct.tock.nlp.front.shared.config
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.core.JsonToken
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.deser.std.StdDeserializer
import ... | 0 | Kotlin | 0 | 0 | cd5c55e99cda91b5f7d790503de88137d3a3cc3c | 2,533 | tock | Apache License 2.0 |
app/src/main/java/com/fridaytech/dex/presentation/widgets/words/WordInputViewHolder.kt | 5daytech | 198,758,400 | false | null | package com.blocksdecoded.dex.presentation.widgets.words
import androidx.recyclerview.widget.RecyclerView
class WordInputViewHolder(private val inputTextView: WordInputView, listener: OnWordChangeListener)
: RecyclerView.ViewHolder(inputTextView) {
interface OnWordChangeListener {
fun onChange(positi... | 0 | Kotlin | 13 | 21 | 50200c97a9a7a456b588cf132fdb901141efb1d1 | 545 | udex-app-android | MIT License |
app/src/main/java/com/pouyaheydari/androidappupdater/ui/compose/theme/Color.kt | HeyPouya | 159,145,908 | false | {"Kotlin": 120609} | package com.pouyaheydari.androidappupdater.ui.compose.theme
import androidx.compose.ui.graphics.Color
internal val green = Color(0xFF008577)
internal val darkGreen = Color(0xFF00574B)
| 12 | Kotlin | 11 | 76 | cd27c6a9c1b0b4ce7bf33c717dac72f42b0ddb48 | 186 | AndroidAppUpdater | Apache License 2.0 |
app/src/main/java/com/habitude/habit/data/Mapper/SocialMapper/UserMapper.kt | vickatGit | 663,121,210 | false | {"Kotlin": 506257, "Java": 4404} | package com.example.habit.data.Mapper.SocialMapper
import com.example.habit.data.Mapper.SocialMapper.UserMapper.toUserModel
import com.example.habit.data.network.model.UsersModel.UserModel
import com.example.habit.domain.models.User.User
object UserMapper {
fun UserModel.toUser():User{
return User(
... | 0 | Kotlin | 0 | 0 | 67559162f6501881b4fbd9ff807e6e13023fc087 | 877 | HB | MIT License |
src/test/kotlin/com/ginsberg/advent2018/Day05Test.kt | tginsberg | 155,878,142 | false | null | /*
* Copyright (c) 2018 by <NAME>
*/
package com.ginsberg.advent2018
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
@DisplayName("Day 5")
class Day05Test {
// Given
val sampleInput = "dabAcCaC... | 0 | Kotlin | 1 | 18 | f33ff59cff3d5895ee8c4de8b9e2f470647af714 | 1,322 | advent-2018-kotlin | MIT License |
common/src/commonMain/kotlin/com/sergiobelda/todometer/common/model/ProjectTasks.kt | Radwolf | 387,483,851 | true | {"Kotlin": 256773, "Swift": 7007, "Ruby": 2063} | package com.sergiobelda.todometer.common.model
data class ProjectTasks(
val id: String,
val name: String,
val description: String,
val tasks: List<Task> = arrayListOf(),
val sync: Boolean
) {
override fun toString() = name
}
| 0 | null | 0 | 0 | d7992e17d272d502c6720717a66bf1a023dbddc5 | 250 | ToDometer_Kotlin_Multiplatform | Apache License 2.0 |
samples/newsapp/src/main/java/com/jv/news/view/MainViewDelegate.kt | nairobi222 | 179,828,042 | true | {"Kotlin": 37017} | package com.jv.news.view
import android.view.LayoutInflater
import android.view.ViewGroup
import com.joaquimverges.helium.core.event.ViewEvent
import com.joaquimverges.helium.core.state.ViewState
import com.joaquimverges.helium.core.viewdelegate.BaseViewDelegate
import com.joaquimverges.helium.navigation.state.NavDraw... | 0 | Kotlin | 0 | 1 | ae2a57bc70deea677a97f8d134d77e0dd8de75d4 | 1,510 | Helium | Apache License 2.0 |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/MailInboxAdd.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.MailInboxAdd: ImageVector
get() {
if (_mailInboxAdd != null) ... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,583 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/com/example/acrochat/activity/ChatActivity.kt | sachinl0har | 391,815,312 | false | null | /*
* Copyright © sachinl0har
*
* 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... | 0 | Kotlin | 0 | 14 | 59caadd258fdce45a3874965dc54bb625f40759d | 4,675 | Acro-Chat | Apache License 2.0 |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/ErrorView.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.feature
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundat... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 2,490 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
src/main/kotlin/hu/advent/of/code/year2021/day3/BitCounter.kt | sztojkatamas | 568,512,275 | false | {"Kotlin": 143687} | package hu.advent.of.code.year2021.day3
class BitCounter(val name: String) {
private var zeros = 0
private var ones = 0
fun bump(c: String) {
when (c) {
"0" -> zeros++
"1" -> ones++
}
}
fun getMost() : String {
return when (zeros > ones) {
... | 0 | Kotlin | 0 | 0 | d9a3993378c8dcf5f5ae797fbd88fa6a5cdf4125 | 573 | advent-of-code-universe | MIT License |
app/src/main/java/net/hwyz/iov/ui/page/my/MyState.kt | hwyzleo | 649,753,962 | false | null | package net.hwyz.iov.ui.page.my
import net.hwyz.iov.base.MviState
import net.hwyz.iov.data.bean.LoginResponse
data class MyState(
var isLogged: Boolean = false,
var nickname: String = "",
val showLogout: Boolean = false
) : MviState | 0 | Kotlin | 0 | 0 | 1e99488bf6d0cc9088871c0bd0ad23a4f36b8b01 | 246 | iov-android-app | Apache License 2.0 |
app/src/main/java/org/idpass/mobile/api/IDPassConstants.kt | idpass | 190,681,485 | false | null | /*
* Copyright 2019 Newlogic Impact Lab Pte. Ltd.
*
* 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 applicabl... | 8 | Kotlin | 0 | 0 | 84cbe8bc71dd89b671223876db405024e8eee2e3 | 2,283 | idpass-mobile-api | Apache License 2.0 |
data/src/main/java/com/nisrulz/example/spacexapi/data/remote/dto/Failure.kt | nisrulz | 708,230,156 | false | {"Kotlin": 95314} | package com.nisrulz.example.spacexapi.data.remote.dto
data class Failure(
val altitude: Int,
val reason: String,
val time: Int,
) | 1 | Kotlin | 0 | 5 | e5cc37af4ea83aced3a9cecdf4f1071cccc33093 | 142 | android-spacex-app | Apache License 2.0 |
adoptium-updater-parent/adoptium-datasources-parent/adoptium-github-datasource/src/main/kotlin/net/adoptium/api/v3/dataSources/github/graphql/clients/GraphQLGitHubReleaseRequest.kt | adoptium | 349,432,712 | false | null | package net.adoptium.api.v3.dataSources.github.graphql.clients
import com.expediagroup.graphql.client.types.GraphQLClientRequest
import jakarta.enterprise.context.ApplicationScoped
import jakarta.inject.Inject
import net.adoptium.api.v3.dataSources.github.graphql.models.GHAssets
import net.adoptium.api.v3.dataSources.... | 25 | null | 26 | 34 | 0c6c59511e9a281dc3ae6842833de8a1b9760167 | 3,747 | api.adoptium.net | Apache License 2.0 |
Secao 14 - Heranca/Fonte/src/Anonima/ClasseAnonima.kt | DevMasterTeam | 398,895,491 | false | {"Kotlin": 346366, "Java": 1263} | /**
* Classe anônima funciona como uma herança temporária.
* No exemplo abaixo, não existe nome algum para o object, mas ele é capaz de implementar a interface.
* É como se existisse uma classe sendo definida e que estivesse implementando Event.
* --
* Isso tráz uma possibilidade extremamente poderosa de passar co... | 0 | Kotlin | 51 | 92 | 3e333d79218bdeca44e9e5140be2b698617f0fd3 | 1,029 | Udemy-Andorid-Kotlin | MIT License |
app/src/main/java/com/pmpavan/githubpullrequests/app/AppConstants.kt | pmpavan | 139,534,771 | false | null | package com.pmpavan.githubpullrequests.app
object AppConstants {
val BASE_URL = "https://api.github.com/"
} | 1 | null | 1 | 1 | 49fdbbd1ffccdf372b60774cfc249d9ebd29325f | 113 | GithubPullRequests | MIT License |
src/main/kotlin/nox/AspectJ.kt | teris-io | 95,603,773 | false | null | /**
* Copyright (c): Java port of https://github.com/eveoh/gradle-aspectj
*/
package nox
import nox.compilation.AjcTask
import org.gradle.api.GradleException
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.plugins.JavaBasePlugin
import org.gradle.api.plugins.JavaPluginConvention
impo... | 0 | Kotlin | 1 | 0 | af54ed589739c3d44a4131d6e17edbcc041c4e2b | 4,090 | nox | MIT License |
key-manager-grpc/src/main/kotlin/com/edu/zup/pix/dto/bcb/request/CreatePixKeyRequest.kt | rafaelSantiagoZup | 409,562,749 | true | {"Kotlin": 53393} | package com.edu.zup.pix.dto.bcb.request
import com.edu.zup.pix.dto.bcb.enums.TiposDeChaveBCB
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement
import io.micronaut.core.annotation.Introspected
import javax.persistence.EnumType
import javax.persistence.Enumerated
@Introspected
@JacksonXmlRoot... | 0 | Kotlin | 0 | 0 | 2dd240bff47e6bb1a8a77169315600e3e3e4c568 | 556 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
Android/app/src/main/java/com/diegulog/marvel/adapters/CharacterLoadStateAdapter.kt | diegulog | 313,229,850 | false | null | package com.diegulog.marvel.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.diegulog.marvel.databinding.NetworkStateItemBinding
import com.diegulog.marvel.utils... | 0 | Kotlin | 0 | 0 | 13e438b70a2762b78def35f34ea77f30fed5d50d | 1,554 | Marvel | Apache License 2.0 |
compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/ConstantData.kt | BradOselo | 367,097,840 | 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.backend.wasm.ir2wasm
import org.jetbrains.kotlin.wasm.ir.WasmSymbol
// Represen... | 0 | null | 0 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 2,384 | kotlin | Apache License 2.0 |
paystack/src/main/java/co/paystack/android/api/di/ApiComponent.kt | PaystackHQ | 43,757,476 | false | null | package co.paystack.android.api.di
import android.os.Build
import co.paystack.android.BuildConfig
import co.paystack.android.api.service.ApiService
import co.paystack.android.api.utils.TLSSocketFactory
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import okhttp3.OkHttpClient
import retrofit2.Retrofit
... | 11 | null | 96 | 107 | a09250b38722ad28a75a47113a498f30264cde54 | 2,006 | paystack-android | Apache License 2.0 |
oscake/src/main/kotlin/common/ActionPackage.kt | telekom | 383,432,709 | true | {"Kotlin": 4762997, "JavaScript": 293745, "Shell": 118824, "HTML": 118719, "Haskell": 30438, "CSS": 25056, "Python": 21317, "FreeMarker": 20565, "Batchfile": 9453, "Roff": 7585, "Dockerfile": 7005, "Scala": 6656, "Ruby": 4423, "ANTLR": 1883, "Go": 1673, "Java": 559, "Rust": 280, "Emacs Lisp": 191} | /*
* Copyright (C) 2021 Deutsche Telekom AG
*
* 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 ... | 3 | Kotlin | 0 | 0 | f6a9bd00ec3e9d371b211782d564b26318ff1c96 | 2,989 | ort | Apache License 2.0 |
app-data/src/main/java/com/kotlin/android/app/data/entity/toplist/TopListPersonInfo.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.app.data.entity.toplist
import com.kotlin.android.app.data.ProguardRule
/**
* Created by vivian.wei on 2020-09-01
* 榜单影人实体
*/
data class TopListPersonInfo(
var personId: Long ?= 0, // 影人ID(等于ItemId)
var personName: String ?= "", // 影人名
var personName... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 789 | Mtime | Apache License 2.0 |
src/jmh/kotlin/com/mthaler/arrayset/benchmarks/element/KotlinCollectionBench.kt | mthaler | 286,934,895 | false | null | package com.mthaler.arrayset.benchmarks.element
data class KotlinCollectionBench(val a: Set<Int>, val c: Int, val n: Int) : SetElementBenchOps {
override fun containsTrue(): Any = a.contains(c)
override fun containsFalse(): Any = a.contains(n)
} | 1 | Kotlin | 0 | 0 | 96c9f3e3a52950a5bce25e646c361a90d0201601 | 256 | arrayset | Apache License 2.0 |
device/src/main/java/org/watsi/device/db/models/PriceScheduleWithBillableModel.kt | Meso-Health | 227,514,539 | false | null | package org.watsi.device.db.models
import android.arch.persistence.room.Embedded
import android.arch.persistence.room.Relation
import org.watsi.domain.relations.BillableWithPriceSchedule
data class PriceScheduleWithBillableModel(
@Embedded var priceScheduleModel: PriceScheduleModel? = null,
@Relation(parentCo... | 2 | null | 3 | 6 | 6e1da182073088f28230fe60a2e09d6f38aab957 | 1,233 | meso-clinic | Apache License 2.0 |
adam/src/main/kotlin/com/malinskiy/adam/request/Request.kt | Malinskiy | 200,235,738 | false | {"Kotlin": 770806, "Shell": 1553, "Java": 1414} | /*
* Copyright (C) 2019 <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 ... | 3 | Kotlin | 31 | 441 | f206bc96e4927ce07e5421f9ac2449b34ac3027c | 2,780 | adam | Apache License 2.0 |
src/main/kotlin/me/darefox/discordfreq/RuntimeInfo.kt | DareFox | 787,890,125 | false | {"Kotlin": 8997} | package me.darefox.discordfreq
object RuntimeInfo {
val cpuThreads = Runtime.getRuntime().availableProcessors()
} | 0 | Kotlin | 0 | 0 | 4eceb8e7a6657be429e31b3c3e327ce9c3eeb1f4 | 118 | DiscordExportFrequencyList | MIT License |
src/help/Help.kt | arellak | 228,107,898 | false | {"Kotlin": 3395} | package help
import net.dv8tion.jda.core.entities.TextChannel
import java.awt.Color
class Help {
var site: Site = Site()
fun show(channel: TextChannel){
var id = ""
if(site.currentSite == 1){
site.createSite("Help Page <1/2>", "First page", Color.GREEN)
channel.se... | 0 | Kotlin | 0 | 0 | 031d41053b869b5cd707efbe1512d623aad336fd | 736 | KotlinDiscordBot | Apache License 2.0 |
src/help/Help.kt | arellak | 228,107,898 | false | {"Kotlin": 3395} | package help
import net.dv8tion.jda.core.entities.TextChannel
import java.awt.Color
class Help {
var site: Site = Site()
fun show(channel: TextChannel){
var id = ""
if(site.currentSite == 1){
site.createSite("Help Page <1/2>", "First page", Color.GREEN)
channel.se... | 0 | Kotlin | 0 | 0 | 031d41053b869b5cd707efbe1512d623aad336fd | 736 | KotlinDiscordBot | Apache License 2.0 |
app/src/main/java/com/mahmutalperenunal/tmdbmovieapp/model/MovieItem.kt | mahmutaunal | 743,142,499 | false | {"Kotlin": 22172} | package com.mahmutalperenunal.tmdbmovieapp.model
import com.google.gson.annotations.SerializedName
data class MovieItem(
@SerializedName("id")
val id: Int?,
@SerializedName("overview")
val overview: String?,
@SerializedName("poster_path")
val posterPath: String?,
@SerializedName("title")
... | 0 | Kotlin | 0 | 0 | ae2c53a01c694f0e36a6d022f6cd11901ac8371e | 409 | TMDBMovieApp | MIT License |
src/main/kotlin/io/github/coteji/core/IdUpdateMode.kt | coteji | 213,593,173 | false | null | /*
* Copyright (c) 2020 - 2021 Coteji AUTHORS.
*
* 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 require... | 1 | Kotlin | 0 | 0 | 249f499d4aa71233a9ebe769b84ffb511a4c732e | 726 | coteji-core | Apache License 2.0 |
infrastructure/rsocket-api/src/main/kotlin/org/timemates/api/rsocket/users/UsersService.kt | timemates | 575,534,781 | false | {"Kotlin": 367950, "Dockerfile": 859} | package org.timemates.api.rsocket.users
import com.google.protobuf.Empty
import io.rsocket.kotlin.RSocketError
import org.timemates.api.rsocket.internal.createOrFail
import org.timemates.api.rsocket.internal.getAuthorization
import org.timemates.api.rsocket.internal.internalFailure
import org.timemates.api.users.reque... | 12 | Kotlin | 1 | 8 | bdf5fb92950493ab651156c5d67734f698e5d960 | 2,960 | backend | MIT License |
charts/src/main/java/com/straiberry/android/charts/extenstions/IntExt.kt | STRAIBERRY-AI-INC | 486,534,341 | false | {"Kotlin": 233062} | package com.straiberry.android.charts.extenstions
import android.content.res.Resources
fun Int.toPx(): Int = (this * Resources.getSystem().displayMetrics.density).toInt()
| 2 | Kotlin | 8 | 44 | 427dbf9304807879fad0a2bc515faf433aa16c39 | 173 | Straiberry-charts | Apache License 2.0 |
src/all/hentaihand/src/eu/kanade/tachiyomi/extension/all/hentaihand/HentaiHand.kt | Yavos | 209,604,258 | true | {"Kotlin": 3035649, "Shell": 2825, "Java": 608} | package eu.kanade.tachiyomi.extension.all.hentaihand
import android.annotation.SuppressLint
import com.github.salomonbrys.kotson.fromJson
import com.github.salomonbrys.kotson.get
import com.github.salomonbrys.kotson.nullObj
import com.github.salomonbrys.kotson.nullString
import com.google.gson.Gson
import com.google.g... | 0 | Kotlin | 0 | 1 | ea862d524ac6bc33dd70dc5811c836d3e26f3643 | 10,640 | tachiyomi-extensions | Apache License 2.0 |
src/main/kotlin/org/lanternpowered/server/boss/LanternBossBar.kt | LanternPowered | 35,904,382 | false | null | /*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 15 | Java | 10 | 109 | ed947a3c58574f513e940800b0094652766a092b | 6,561 | Lantern | MIT License |
src/main/kotlin/net/ayataka/kordis/websocket/handlers/guild/GuildCreateHandler.kt | Kattoor | 255,708,058 | true | {"Kotlin": 193584} | package net.ayataka.kordis.websocket.handlers.guild
import com.google.gson.JsonObject
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import net.ayataka.kordis.DiscordClientImpl
import net.ayataka.kordis.Kordis.LOGGER
import ne... | 0 | Kotlin | 0 | 0 | b9e19225db8db7c3be777ae1cfb0bda0258ed77e | 2,624 | Kordis | Do What The F*ck You Want To Public License |
src/Problem 3.kt | yttrian | 125,096,686 | false | null | import kotlin.test.assertEquals
object Problem3 {
fun run(a: Int, b: Int) : String {
return (a .. b).mapNotNull { year ->
isPerfect(year) + isNear(year) + isNormal(year)
}.joinToString("")
}
private fun isPerfect(year: Int) : String {
val scubey = scubeyCheck(year)
... | 0 | Kotlin | 0 | 0 | 513d8f52b2e0a47fd1d6fc26a6d0f1086b12c88b | 2,011 | SienaPracticeProblems | MIT License |
multiimageview/src/main/java/com/tripl3dev/slider/sliderAnimation/AlphaPageTransformer.kt | Rohyme | 134,412,919 | false | {"Java": 43274, "Kotlin": 32042} | package com.tripl3dev.slider.sliderAnimation
import android.support.v4.view.ViewCompat.setAlpha
import android.support.v4.view.ViewCompat
import android.view.View
class AlphaPageTransformer :BasePageTransformer(){
private var mMinScale = 0.5f
fun AlphaPageTransformer(minScale: Float) {
setMinScale(... | 1 | null | 1 | 1 | 6faa1b72f06ce21c3085cbf43adf1245e463f60f | 799 | Multi-images-view | Apache License 2.0 |
data/src/commonTest/kotlin/in/surajsau/jisho/data/NotesRepositoryTest.kt | surajsau | 489,927,815 | false | null | package `in`.surajsau.jisho.data
import `in`.surajsau.jisho.data.db.Jisho
import `in`.surajsau.jisho.data.expected.TestDispatcherProvider
import `in`.surajsau.jisho.data.expected.testDbConnection
import `in`.surajsau.jisho.data.real.NotesRepositoryImpl
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx... | 0 | Kotlin | 0 | 1 | 161bbb0225d5c57dbbc9467140c3a9dee38b0f64 | 2,271 | Multiplatform-Jisho | Apache License 2.0 |
app/src/main/java/com/ibashkimi/telegram/data/TelegramClient.kt | dannyguarino | 365,416,360 | true | {"Kotlin": 67629, "Java": 1132} | package com.ibashkimi.telegram.data
import android.app.Application
import android.os.Build
import android.util.Log
import com.ibashkimi.telegram.R
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
impor... | 0 | null | 0 | 0 | fcb43b2d7f7d7ac1af117d27b273aa9fd0511047 | 7,936 | TelegramExample | Apache License 2.0 |
libnavigation-base/src/main/java/com/mapbox/navigation/base/trip/model/roadobject/restrictedarea/RestrictedArea.kt | k4anubhav | 439,334,238 | true | {"Kotlin": 4189704, "Java": 26254, "Python": 11580, "Makefile": 6163, "Shell": 5704} | package com.mapbox.navigation.base.trip.model.roadobject.restrictedarea
import com.mapbox.navigation.base.trip.model.roadobject.RoadObject
import com.mapbox.navigation.base.trip.model.roadobject.RoadObjectProvider
import com.mapbox.navigation.base.trip.model.roadobject.RoadObjectType
import com.mapbox.navigation.base.... | 0 | null | 1 | 1 | 3751b1323b3e585976a5476176810049061ca1ec | 1,034 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/dev/maxsiomin/domainsearch/base/BaseFragment.kt | MaxSiominDev | 421,486,159 | false | null | package com.example.domainsearch.base
import androidx.annotation.LayoutRes
import androidx.core.view.allViews
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.viewbinding.ViewBinding
/**
* All fragments in project except fragments of LoginActivity must extend this class
... | 0 | null | 0 | 1 | 7f5f9c4cd9754a4c5c7836cdd3eb851e6be86d45 | 1,174 | DomainSearch | MIT License |
lib/src/commonMain/kotlin/com/wepin/cm/loginlib/types/network/firebase/ResetPasswordResponse.kt | WepinWallet | 834,097,352 | false | {"Kotlin": 168770, "Ruby": 5284, "Swift": 580, "Shell": 579, "JSON": 463} | package com.wepin.cm.loginlib.types.network.firebase
data class ResetPasswordResponse(
var email: String,
var requestType: String,
)
| 0 | Kotlin | 0 | 0 | d9bc9e6049d18bb2bd0136e48d4cf97c91171884 | 142 | wepin-compose-sdk-login-v1 | Apache License 2.0 |
library/src/main/java/com/link184/kidadapter/Extensions.kt | marcoscgdev | 170,767,416 | true | {"Kotlin": 75992, "Shell": 934} | package com.link184.kidadapter
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import com.link184.kidadapter.simple.SingleKidAdapter
import com.link184.kidadapter.simple.SingleKidAdapterConfiguration
import com.link184.kidadapter.typed.TypedKidAdapter
import com.link1... | 0 | Kotlin | 0 | 0 | d085bafe09b9017e1b8e59fe516788330f1fbcf3 | 1,502 | KidAdapter | Apache License 2.0 |
sbhyi-databinding/src/main/java/com/outs/core/android/databinding/data/source/SourceExt.kt | Outs3 | 424,166,410 | false | null | package com.outs.core.android.databinding.data.source
/**
* author: Outs3
* e-mail: 3.3nosekai@gmail.com
* date: 2021/7/8 13:42
* desc:
*/
//DataSource如果在加载中抛出这个异常则认为在等待其他参数 不算加载失败
class LazyDataSourceException : RuntimeException()
object DataSourceFactory {
fun <T> empty(): DataSource<T> = object : DataSou... | 0 | Kotlin | 0 | 2 | 29ba56113bf788782cbefb48e28fca6df3509eda | 1,661 | subahayai | MIT License |
app/src/main/java/com/rskopyl/dentalab/data/preferences/AppPreferences.kt | rskopyl | 624,615,157 | false | null | package com.rskopyl.dentalab.data.preferences
import kotlinx.datetime.DatePeriod
import kotlinx.datetime.LocalDate
import kotlinx.datetime.minus
import kotlinx.datetime.plus
data class AppPreferences(
val homePeriod: HomePeriod,
val isQuickNavigationEnabled: Boolean
) {
enum class HomePeriod(private val d... | 0 | Kotlin | 0 | 0 | 2dd132e2c9779a24b1979998bd20b9d765593029 | 706 | Dentalab | MIT License |
app/src/main/java/com/barinov/simpleplayer/ui/screens/Home.kt | PavelB24 | 653,293,450 | false | null | package com.barinov.simpleplayer.ui.screens
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime... | 0 | Kotlin | 0 | 0 | ba505d67ce67a04f9b39784a3e6de0fdc8de2941 | 2,322 | SimplePlayer | Creative Commons Zero v1.0 Universal |
idea/tests/testData/refactoring/inlineMultiFile/fromJavaToKotlin/complexJavaToKotlin/before/usage/main.kt | JetBrains | 278,369,660 | false | null | package usage
import javapackage.one.JavaClassOne
class KotlinClassOne {
fun update(javaClassOne: JavaClassOne) {
}
}
class KotlinClassTwo
fun usage() {
val javaClass = JavaClassOne()
// expect "val two = KotlinClassTwo()" after kotlinClassOne, KT-40867
javaClass.app<caret>ly(KotlinClassOne(), ... | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 340 | intellij-kotlin | Apache License 2.0 |
android/src/main/java/org/domestika/RPBComponent/RoundedProgressBar.kt | sasij | 221,740,551 | false | null | package org.domestika.RPBComponent
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.view.animation.DecelerateInterpolator
import com.facebook.react.views.view.Re... | 0 | Kotlin | 0 | 2 | 880777c1636b9ce4e8c9487ddf51c6a52425a7a7 | 2,969 | react-native-rounded-progress-bar | MIT License |
app/src/main/java/com/github/kuya32/mobilepokedex/data/remote/responses/Icons.kt | kuya32 | 407,300,960 | false | null | package com.github.kuya32.mobilepokedex.data.remote.responses
data class Icons(
val front_default: String,
val front_female: Any
) | 0 | Kotlin | 0 | 0 | 41b1c8815d0e6753fea8014373227170baa5ab39 | 139 | Mobile-Pokedex | MIT License |
zphoto_lib/src/main/java/com/zp/zphoto_lib/ui/view/ZLoadDialog.kt | zippo88888888 | 180,256,412 | false | null | package com.zp.zphoto_lib.ui.view
import android.content.Context
import android.os.Bundle
import android.view.Gravity
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.ProgressBar
import android.widget.TextView
import androidx.appcompat.app.AlertDialog
import com.zp.zphoto_lib.R
im... | 1 | null | 2 | 18 | 59ab9c313a3ba9e2f99e282a193c355f42a33e86 | 1,943 | ZPhoto | Apache License 2.0 |
app/src/main/java/com/mateoj/pokesearch/AppModule.kt | j-mateo | 235,614,533 | false | null | package com.mateoj.pokesearch
import androidx.room.Room
import com.mateoj.pokesearch.api.PokeApiService
import com.mateoj.pokesearch.db.PokemonSearchSuggestionsDB
import com.mateoj.pokesearch.repository.DefaultPokemonRepository
import com.mateoj.pokesearch.repository.PokemonListDataSourceFactory
import com.mateoj.poke... | 0 | Kotlin | 0 | 1 | 53e58b1b11c34f06fb84e3151bf95574420175a7 | 2,124 | pokesearch | MIT License |
app/src/main/java/com/minimal/notes/ui/SplashScreen.kt | dhanushcodev | 775,953,606 | false | {"Kotlin": 42857} | package com.minimal.notes.ui
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import... | 0 | Kotlin | 0 | 1 | 72ef6bb143163440749517164316b7a25d97785b | 1,925 | Notes-App | Apache License 2.0 |
swa/informal-models/diagrams/coco/src/main/kotlin/edu/kit/kastel/lissa/sketches/coco/domain/COCOAnnotation.kt | LiSSA-Approach | 387,794,604 | false | null | package edu.kit.kastel.lissa.sketches.coco.domain
import com.fasterxml.jackson.annotation.JsonProperty
data class COCOAnnotation(
// Generic COCO Annotations
val id: Int,
@JsonProperty("image_id") val imageId: Int,
@JsonProperty("category_id") val categoryId: Int,
@JsonProperty("bbox") val boundin... | 5 | Kotlin | 0 | 3 | 3395b189d596976f2c9c6fc5d289d42a7c778393 | 980 | LiSSA-Core | MIT License |
skiko/src/commonMain/kotlin/org/jetbrains/skia/Point3.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skia
class Point3(val x: Float, val y: Float, val z: Float) {
override fun equals(other: Any?): Boolean {
if (other === this) return true
if (other !is Point3) return false
if (x.compareTo(other.x) != 0) return false
if (y.compareTo(other.y) != 0) return false
... | 42 | Kotlin | 43 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 703 | skiko | Apache License 2.0 |
app/src/main/java/kr/kyungjoon/hansol/image_downloader_example/cache/FileCache.kt | kj84park | 130,482,610 | false | {"Kotlin": 9846, "Java": 164} | package kr.kyungjoon.hansol.image_downloader_example.cache
import android.content.Context
import android.content.SharedPreferences
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.preference.PreferenceManager
import android.util.Base64
import java.io.ByteArrayOutputStream
class File... | 0 | Kotlin | 0 | 0 | bf073b70583390f538c4271513595419b2f6c5cf | 1,332 | kotlin-image-sample | MIT License |
kamp-common/src/test/kotlin/ch/leadrian/samp/kamp/common/neon/VehicleNeonsTest.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.common.neon
import ch.leadrian.samp.kamp.core.api.constants.VehicleModel
import ch.leadrian.samp.kamp.core.api.data.mutableVector3DOf
import ch.leadrian.samp.kamp.core.api.data.vector3DOf
import ch.leadrian.samp.kamp.core.api.entity.MapObjectBase
import ch.leadrian.samp.kamp.core.api.enti... | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 8,328 | kamp | Apache License 2.0 |
adt-ui/src/test/java/com/android/tools/adtui/BoxSelectionComponentTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 3,033 | android | Apache License 2.0 |
skiko/src/commonMain/kotlin/org/jetbrains/skia/skottie/LogLevel.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skia.skottie
enum class LogLevel {
WARNING,
ERROR;
} | 42 | Kotlin | 43 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 83 | skiko | Apache License 2.0 |
idea/testData/quickfix/migration/beforeTuplesWithRuntime.kt | Frostman | 3,439,153 | true | {"Markdown": 18, "XML": 121, "Ant Build System": 7, "Ignore List": 3, "Python": 1, "Makefile": 1, "JAR Manifest": 1, "Java": 2218, "Kotlin": 3007, "Text": 872, "Java Properties": 4, "INI": 1, "HTML": 16, "JavaScript": 47, "CSS": 10, "Shell": 5, "Maven POM": 23, "JFlex": 2, "Batchfile": 2} | // "Migrate tuples in project: e.g., #(,) and #(,,) will be replaced by Pair and Triple" "true"
// ERROR: <html>Tuples are not supported.<br/>Use data classes instead. For example:<br/><b>data class</b> FourThings(<b>val</b> a: A, <b>val</b> b: B, <b>val</b> c: C, <b>val</b> d: D)</html>
// ERROR: <html>Tuples are not ... | 0 | Java | 0 | 1 | 2dfbe1e7d062f76b6b8a5630622433d6478d11c7 | 1,121 | kotlin | Apache License 2.0 |
kalle/src/main/java/com/yanzhenjie/kalle/simple/Converter.kt | CPLASF1925 | 311,522,476 | false | null | /*
* Copyright (C) 2018 Drake, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | 1123fa3b48798fcfb97a223b94c2963fbb7c2853 | 1,560 | Net | Apache License 2.0 |
app/src/main/java/com/stemlabs/ellu/ui/component/calendar/fragment/AddNewEventFragment.kt | StemlabsSL | 329,898,048 | false | {"Java": 2282866, "Kotlin": 680962, "Assembly": 135} | package com.stemlabs.ellu.ui.component.calendar.fragment
import android.graphics.PorterDuff
import android.icu.text.Transliterator
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 1 | null | 1 | 1 | 0560654991402f229b1fcb3a65e8d6ee23c0763b | 6,531 | Stemlabschat-Android | Apache License 2.0 |
GithubSearch/app/src/main/java/net/bogus/githubsearch/di/AppModule.kt | bogus | 111,335,374 | false | null | package net.bogus.githubsearch.di
import android.content.Context
import dagger.Module
import dagger.Provides
import net.bogus.githubsearch.APIClient
import net.bogus.githubsearch.Application
import net.bogus.githubsearch.viewmodel.MainViewModel
import javax.inject.Singleton
/**
* Created by burak on 11/19/17.
*/
@M... | 0 | null | 0 | 1 | a07774e3f55bdde4749457efe66645377cd8e680 | 646 | android-sandbox | MIT License |
GithubSearch/app/src/main/java/net/bogus/githubsearch/di/AppModule.kt | bogus | 111,335,374 | false | null | package net.bogus.githubsearch.di
import android.content.Context
import dagger.Module
import dagger.Provides
import net.bogus.githubsearch.APIClient
import net.bogus.githubsearch.Application
import net.bogus.githubsearch.viewmodel.MainViewModel
import javax.inject.Singleton
/**
* Created by burak on 11/19/17.
*/
@M... | 0 | null | 0 | 1 | a07774e3f55bdde4749457efe66645377cd8e680 | 646 | android-sandbox | MIT License |
platform/collaboration-tools/src/com/intellij/collaboration/ui/codereview/ReturnToListComponent.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2020 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.collaboration.ui.codereview
import com.intellij.ui.IdeBorderFactory
import com.intellij.ui.SideBorder
import com.intellij.ui.components.labels.LinkLabel
impo... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 898 | intellij-community | Apache License 2.0 |
app/src/main/java/com/buddha/mindboard/module/home/HomeFragment.kt | buddhasaikia | 157,879,461 | false | null | package com.buddha.imagegallary.module.home
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.vi... | 1 | null | 1 | 1 | d9000645b0107fd4883c376e5365bb0ccd10283a | 6,613 | MindValleyChallenge | Apache License 2.0 |
jvm/jvm-analysis-kotlin-tests/testData/codeInspection/mustAlreadyBeRemovedApi/outdatedApi.kt | hieuprogrammer | 284,920,751 | true | null | package test
import org.jetbrains.annotations.ApiStatus
@ApiStatus.ScheduledForRemoval(inVersion = "2.0")
@Deprecated("")
class <error descr="API must have been removed in version 2.0 but the current version is 3.0">Warnings</error> {
@ApiStatus.ScheduledForRemoval(inVersion = "2.0")
@Deprecated("")
var <error... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 935 | 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.