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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kotlinx-nodejs/src/nonDeclarations.net.kt | Kotlin | 254,635,065 | false | null | @file:Suppress("INTERFACE_WITH_SUPERCLASS", "OVERRIDING_FINAL_MEMBER", "RETURN_TYPE_MISMATCH_ON_OVERRIDE")
package net
import kotlin.js.*
import kotlin.js.Json
import org.khronos.webgl.*
import org.w3c.dom.*
import org.w3c.dom.events.*
import org.w3c.dom.parsing.*
import org.w3c.dom.svg.*
import org.w3c.dom.url.*
impo... | 11 | Kotlin | 18 | 211 | 7321c520021a9603cee2918e0724a89a51547831 | 3,796 | kotlinx-nodejs | Apache License 2.0 |
app/src/main/java/com/tomorrowit/budgetgamer/common/di/PreferencesModule.kt | 2Morrow-IT-Solutions | 848,266,910 | false | {"Kotlin": 429313} | package com.tomorrowit.budgetgamer.common.di
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import com.tomorrowit.budgetgamer.common.config.extensions.dataStore
import com.tomorrowit.budgetgamer.data.local.prefs.DataStorePreferences
import... | 0 | Kotlin | 2 | 5 | edcaff45925e39c15fa3ff8cb054bf06904c3cdf | 1,079 | budget-gamer-android | MIT License |
data/src/main/java/com/eyther/lumbridge/data/model/loan/local/LoanCached.kt | ruialmeida51 | 249,223,684 | false | {"Kotlin": 904675} | package com.eyther.lumbridge.data.model.loan.local
data class LoanCached(
val id: Long = -1,
val name: String,
val startDate: String,
val endDate: String,
val currentAmount: Float,
val initialAmount: Float,
val fixedTaegInterestRate: Float?,
val variableEuribor: Float?,
val variable... | 6 | Kotlin | 0 | 7 | 5dd18b22448b2435f0238cccfc11a6826f200748 | 439 | lumbridge-android | MIT License |
exposed-dao/src/main/kotlin/org/jetbrains/exposed/dao/UUIDEntity.kt | JetBrains | 11,765,017 | false | {"Kotlin": 2350713} | package org.jetbrains.exposed.dao
import org.jetbrains.exposed.dao.id.EntityID
import org.jetbrains.exposed.dao.id.IdTable
import java.util.*
/** Base class for an [Entity] instance identified by an [id] comprised of a wrapped `UUID` value. */
abstract class UUIDEntity(id: EntityID<UUID>) : Entity<UUID>(id)
/**
* B... | 171 | Kotlin | 693 | 8,319 | 95712943cc3550e4018342d725b42371808be845 | 1,784 | Exposed | Apache License 2.0 |
app/src/main/java/com/wwy/android/data/bean/base/GankResponse.kt | wwy863399246 | 209,758,901 | false | null | package com.wwy.android.data.bean.base
/**
*@创建者wwy
*@创建时间 2019/10/8 15:13
*@描述
*/
data class GankResponse<out T>(var status: Int, val data: T) | 0 | Kotlin | 9 | 71 | 672b054b5c1aba0b323e8e082a3dea13b25bf971 | 148 | WanAndroid | Apache License 2.0 |
jetpack-hero/src/main/java/dev/itscorey/jetpackheromorphing/MainActivity.kt | lcszc | 261,602,180 | false | {"Kotlin": 2718} | package dev.itscorey.jetpackheromorphing
import android.graphics.drawable.Animatable
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.vectordrawable.graphics.drawable.Animatable2Compat
import kotlinx.android.syntheti... | 4 | Kotlin | 1 | 9 | 5d88ec4cc8070a3c25cb18d0019b1b6bfd97482b | 681 | Trench | The Unlicense |
app/src/main/java/com/z1/pokedex/core/network/mapper/BaseDtoMapper.kt | zero1code | 757,161,296 | false | {"Kotlin": 245388} | package com.z1.pokedex.core.network.mapper
interface BaseDtoMapper<Model, DTO> {
fun asModel(dto: DTO): Model
} | 0 | Kotlin | 0 | 7 | 320b1c045b313ce8ca419a12732b5d8926e9e7e9 | 116 | pokedex-z1 | Apache License 2.0 |
tasks/src/main/java/app/tivi/tasks/SyncAllFollowedShows.kt | dogscar | 295,140,633 | true | {"Kotlin": 970147, "Shell": 2825, "Dockerfile": 1796} | /*
* Copyright 2018 Google LLC
*
* 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 i... | 0 | null | 0 | 0 | 80b8da5cfb0062a25fd9e8b3f058846f8d453f7d | 1,616 | tivi | Apache License 2.0 |
src/main/kotlin/com/balsdon/androidallyplugin/ui/CustomIcon.kt | qbalsdon | 729,827,162 | false | {"Kotlin": 202709, "Shell": 167} | package com.balsdon.androidallyplugin.ui
import com.intellij.openapi.util.IconLoader
import javax.swing.Icon
enum class CustomIcon(private val fileReference: String) {
PHONE("phone"),
WATCH("watch"),
EMULATOR("emulator"),
EMULATOR_WATCH("emulator_watch"),
A11Y_OPEN_MENU("open_menu"),
REFRESH(... | 0 | Kotlin | 0 | 3 | 8dad5a8000d686643e6b125d5f8e5fcc70d24ad9 | 846 | android-ally-plugin | MIT License |
app/src/main/java/org/loecasi/android/di/AppModule.kt | ramadani | 107,663,364 | false | {"Gradle": 3, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Proguard": 1, "Kotlin": 20, "XML": 14, "Java": 1} | package org.loecasi.android.di
import android.app.Application
import android.content.Context
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
/**
* Created by dani on 10/25/17.
*/
@Module
class AppModule {
@Provides
@Singleton
fun provideContext(app: Application): Context = app... | 0 | Kotlin | 0 | 0 | 3410213d9ba8fe3a9080cee748ea3f8aeb9b1d66 | 323 | Loecasi | MIT License |
components/src/test/java/com/mercadolibre/android/andesui/button/AndesButtonA11YTest.kt | maaguero | 252,283,086 | false | {"Gradle": 9, "Markdown": 17, "Java Properties": 1, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "YAML": 5, "XML": 150, "Proguard": 3, "Kotlin": 311, "INI": 1, "HTML": 1, "JSON": 1, "Java": 1} | package com.mercadolibre.android.andesui.button
import android.app.Activity
import android.content.Context
import android.os.Build
import android.view.View
import android.view.accessibility.AccessibilityNodeInfo
import android.widget.Button
import androidx.test.core.app.ApplicationProvider
import com.facebook.common.l... | 1 | null | 1 | 1 | bc12913d8a91c4a71faed6ba7e5d6fdfa16de123 | 2,723 | fury_andesui-android | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/DualScreenSettings.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
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.Regular.DualScreenSettings: ImageVector
get() {
if (_dualScreenSett... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 4,514 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/io/github/drumber/kitsune/data/source/network/BasePagingDataSource.kt | Drumber | 406,471,554 | false | {"Kotlin": 993796, "Ruby": 2109} | package io.github.drumber.kitsune.data.source.network
import androidx.paging.PagingSource
import androidx.paging.PagingState
import io.github.drumber.kitsune.constants.Kitsu
import io.github.drumber.kitsune.data.common.exception.NoDataException
import io.github.drumber.kitsune.util.logE
abstract class BasePagingDataS... | 6 | Kotlin | 4 | 92 | ba6f2a69cb71a9fd71d4825921ff6d9b6300471e | 1,333 | Kitsune | Apache License 2.0 |
app/src/main/java/me/codeenzyme/welearn/data/remote/FirebaseUserProfileService.kt | Victor-El | 305,075,837 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "YAML": 1, "JSON": 1, "Proguard": 2, "Kotlin": 47, "XML": 68, "Java": 1, "INI": 1} | package me.codeenzyme.welearn.data.remote
import android.net.Uri
import android.util.Log
import com.google.firebase.auth.ktx.auth
import com.google.firebase.auth.ktx.userProfileChangeRequest
import com.google.firebase.firestore.ktx.firestore
import com.google.firebase.firestore.ktx.toObject
import com.google.firebase.... | 0 | Kotlin | 1 | 1 | 47e6e41b881c2654281ae128043293a435f8c2ae | 2,730 | WeLearn | MIT License |
src/main/kotlin/com/yourssu/yls/domain/service/LoggingService.kt | yourssu | 739,611,789 | false | {"Kotlin": 5173, "Dockerfile": 128} | package com.yourssu.yls.domain.service
import com.yourssu.yls.application.request.LoggingRequest
import com.yourssu.yls.application.response.LoggingResponse
import com.yourssu.yls.domain.model.document.LogDocument
import com.yourssu.yls.domain.model.repository.LoggingRepository
import org.springframework.stereotype.Se... | 0 | Kotlin | 0 | 0 | e01a3ce83161ea0e9f5b3bf3e0af95e2aa4b062a | 765 | YLS-Backend | MIT License |
funcify-feature-eng-schema/src/main/kotlin/funcify/feature/schema/vertex/ParameterContainerTypeVertex.kt | anticipasean | 458,910,592 | false | null | package funcify.feature.schema.vertex
import funcify.feature.schema.SchematicVertex
import funcify.feature.schema.index.CompositeParameterContainerType
/**
*
* @author smccarron
* @created 2022-06-18
*/
interface ParameterContainerTypeVertex : SchematicVertex {
val compositeParameterContainerType: CompositeP... | 0 | Kotlin | 0 | 0 | 202a13324edc1d477c82b3de54a55a4cb72669ad | 344 | funcify-feature-eng | Apache License 2.0 |
app/src/main/java/erevacation/com/userlistanko/homescreen/list/ListFragmentPresenter.kt | highmobdevelopment | 133,389,122 | false | null | package erevacation.com.userlistanko.homescreen.list
import android.support.v4.app.FragmentManager
import erevacation.com.userlistanko.R
import erevacation.com.userlistanko.basic.arhitecture.ViperContract
import erevacation.com.userlistanko.datamodel.ListDM
import erevacation.com.userlistanko.homescreen.HomeActivity
i... | 0 | Kotlin | 0 | 0 | bbd48c924f601865988a4a82d3d1f328e866ff80 | 2,063 | userlist_anko | Apache License 2.0 |
src/main/kotlin/shou/retryconfig/RetryListener.kt | NSVN-NguyenDuyThang | 661,492,559 | false | null | package shou.retryconfig
import org.testng.IAnnotationTransformer
import org.testng.annotations.ITestAnnotation
import java.lang.reflect.Constructor
import java.lang.reflect.Method
class RetryListener : IAnnotationTransformer {
override fun transform(
annotation: ITestAnnotation,
testClass: Class<... | 0 | Kotlin | 0 | 0 | b375d9d2ebb4981209025e6052a3080324042e33 | 476 | playwright-kotlin | MIT License |
tezos-rpc/src/main/kotlin/it/airgap/tezos/rpc/shell/monitor/Monitor.kt | airgap-it | 460,351,851 | false | null | package it.airgap.tezos.rpc.shell.monitor
import it.airgap.tezos.core.type.encoded.ChainId
import it.airgap.tezos.core.type.encoded.ProtocolHash
import it.airgap.tezos.rpc.http.HttpHeader
import it.airgap.tezos.rpc.internal.utils.Constants
/**
* [Shell RPCs](https://tezos.gitlab.io/shell/rpc.html): `/monitor`
*/
pu... | 0 | Kotlin | 2 | 1 | c5af5ffdd4940670bd66842580d82c2b9d682d84 | 3,216 | tezos-kotlin-sdk | MIT License |
app/src/main/java/com/hientran/wallpaper/presentation/ui/photocollection/PhotoCollectionViewModel.kt | hientranea | 553,982,644 | false | null | package com.hientran.wallpaper.presentation.ui.photocollection
import androidx.lifecycle.viewModelScope
import androidx.paging.cachedIn
import com.hientran.wallpaper.domain.usecase.GetCollectionMediaUseCase
import com.hientran.wallpaper.domain.usecase.GetCollectionMediaUseCase.Params
import com.hientran.wallpaper.pres... | 0 | Kotlin | 0 | 1 | d2f1e69400c29f111357073a3c128b3ad31be7d5 | 1,180 | Wallpaper | Apache License 2.0 |
src/main/kotlin/de/flapdoodle/sqlextract/db/ForeignKey.kt | flapdoodle-oss | 363,965,979 | false | null | package de.flapdoodle.sqlextract.db
import de.flapdoodle.sqlextract.types.Comparators
data class ForeignKey(
override val sourceTable: Name,
override val sourceColumn: String,
override val destinationTable: Name,
override var destinationColumn: String
): ColumnConnection {
companion object {
... | 0 | Kotlin | 0 | 0 | 69aa6dd554dc011d3bbc75fabcddfad173b41a79 | 647 | de.flapdoodle.sqlextract | Apache License 2.0 |
src/builder/implementation/CarBuilderImpl.kt | imshyam | 187,470,617 | false | null | package builder.implementation
class CarBuilderImpl : CarBuilder {
private var tmpCar = Car()
override fun build() = Car(tmpCar.wheels, tmpCar.color)
override fun setColor(color: String): CarBuilder {
tmpCar.color = color
return this
}
override fun setWheels(wheels: Int): CarBui... | 0 | Kotlin | 0 | 0 | 6375a5e9a1dac9cffba89b99f0df91d4ca1fae00 | 386 | design-patterns-kotlin | MIT License |
app/src/main/java/com/gmart/gmovies/ui/screen/details/DetailsViewModel.kt | gimartinez17 | 771,233,885 | false | {"Kotlin": 515365, "CMake": 1625, "C++": 259} | package com.gmart.gmovies.ui.screen.details
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.gmart.data.source.utils.IoDispatcher
import com.gmart.domain.model.MediaType
import com.gmart.domain.model.MediaType.Companion.fromString
import com.gmart.domain.model.Resource
imp... | 0 | Kotlin | 1 | 1 | da0854981d865fb7207767ae3e6a4c8ce1f441a8 | 8,341 | movies-app | MIT License |
core/src/commonTest/kotlin/kotlinx/fs/core/CopyTest.kt | qwwdfsad | 133,036,116 | false | null | package kotlinx.fs.core
import kotlinx.io.errors.*
import kotlin.test.*
class CopyTest : TestBase() {
@Test
fun testCopyFile() {
val expectedContent = ByteArray(5) { it.toByte() }
val file = testFile("copy-file").createFile()
file.writeBytes(expectedContent)
val target = test... | 0 | null | 2 | 27 | 6720bce0bb9d17744a3c09171e3655e5d771de80 | 1,964 | kotlinx-fs | Apache License 2.0 |
app/src/main/kotlin/com/czbix/v2ex/db/Comment.kt | CzBiX | 36,221,300 | false | null | package com.czbix.v2ex.db
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.czbix.v2ex.model.Ignorable
import com.czbix.v2ex.model.Thankable
import com.czbix.v2ex.network.RequestHelper
@Entity
data class Comment(
@PrimaryKey
val id: Int,
@Co... | 2 | Kotlin | 25 | 138 | f6a79a91b84ae8030930231d965845798c4ce0a8 | 2,471 | v2ex-android | Apache License 2.0 |
kt/src/main/kotlin/Bot.kt | RainPlus-Team | 676,775,641 | false | null | import net.mamoe.mirai.event.Event
class Bot {
init {
System.loadLibrary("bot")
}
external fun initialize()
external fun eventListener(className: String, ptr: Long, bot: net.mamoe.mirai.Bot, event: Event)
} | 0 | Rust | 0 | 0 | 91c4035da5dc57cff4f20105d8cdd31967f61a33 | 232 | mirai-jni-rs | MIT License |
src/main/kotlin/com/github/attacktive/troubleshootereditor/model/Item.kt | Attacktive | 517,579,517 | false | null | package com.github.attacktive.troubleshootereditor.model
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
data class Item(val id: Long, val type: String, val count: Long, val status: String) {
constructor(id: Long, type: String, count: Long, status: ... | 0 | Kotlin | 0 | 1 | d389067303157aab674adaab5363d71146d05f29 | 630 | troubleshooter-editor-back-end | MIT License |
app/src/main/java/jermaine/technews/ui/articles/ArticleViewHolder.kt | jermainedilao | 124,178,104 | false | null | package jermaine.technews.ui.articles
import android.view.View
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.RecyclerView
import jermaine.technews.BR
// https://medium.com/google-developers/android-data-binding-recyclerview-db7c40d9f0e4
class ArticleViewHolder(private val binding: Vi... | 0 | Kotlin | 0 | 2 | 2bb2efc6067db95a5fce7ae16cbbcbda58c08b60 | 833 | technews | Apache License 2.0 |
app/src/main/kotlin/org/mifos/mobile/cn/data/models/accounts/loan/CreditWorthinessFactor.kt | openMF | 133,982,000 | false | null | package org.mifos.mobile.cn.data.models.accounts.loan
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class CreditWorthinessFactor(
@SerializedName("description") var description: String? = null,
@SerializedName("am... | 65 | null | 64 | 38 | 24a93032be5eb3ac55d79fe08b0409ba47f482e7 | 368 | mifos-mobile-cn | Apache License 2.0 |
core-kotlin-modules/core-kotlin-concurrency/src/main/kotlin/com/baeldung/cancellationofcoroutines/CancellingCoroutines.kt | tauqeermajeed0081 | 419,066,422 | true | {"Kotlin": 556097, "Java": 12505, "HTML": 1100} | package com.baeldung.cancellationofcoroutines
import kotlinx.coroutines.*
fun main() {
//callCancel()
//cancelWithTimeOut()
//cooperativeCoroutines()
//cancelJobs()
}
fun callCancel() = runBlocking {
val job = launch {
repeat(1000) { index ->
println("$index. Printing numbers.... | 0 | Kotlin | 0 | 0 | eff0e95af7f7458b804ae81ca4def1d1455220ed | 2,003 | kotlin-tutorials | MIT License |
SDKAndroid/src/main/kotlin/app/cybrid/sdkandroid/components/accounts/compose/AccountsView_List_Empty.kt | Cybrid-app | 498,874,863 | false | {"Kotlin": 791821} | package app.cybrid.sdkandroid.components.accounts.compose
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.... | 15 | Kotlin | 2 | 6 | c3fe39dd3ecbe0d90002ea227ed575f1dc2cabf7 | 1,172 | cybrid-sdk-android | Apache License 2.0 |
poi_auth/src/test/kotlin/com/github/mrmeowcat/poi_auth/RegistrationServiceTests.kt | MrMeowCat | 141,818,640 | false | null | package com.github.mrmeowcat.poi_auth
import com.github.mrmeowcat.poi_auth.document.AccountDocument
import com.github.mrmeowcat.poi_auth.dto.Credentials
import com.github.mrmeowcat.poi_auth.dto.RegistrationResponse
import com.github.mrmeowcat.poi_auth.exception.RegistrationException
import com.github.mrmeowcat.poi_aut... | 0 | Kotlin | 0 | 0 | 998a413a8ddc3c0da494c8a50118255b0cf2e004 | 6,713 | poi-services | MIT License |
src/apiTest/kotlin/dev3/blockchainapiservice/controller/ImportContractControllerApiTest.kt | 0xDev3 | 539,904,697 | false | null | package dev3.blockchainapiservice.controller
import dev3.blockchainapiservice.ControllerTestBase
import dev3.blockchainapiservice.TestData
import dev3.blockchainapiservice.blockchain.DummyProxy
import dev3.blockchainapiservice.blockchain.ExampleContract
import dev3.blockchainapiservice.config.CustomHeaders
import dev3... | 0 | Kotlin | 0 | 0 | d9aa8802cf140e0cdd3b701fa2a9c30764b4ad5f | 94,855 | blockchain-api-service | MIT License |
shared/component/root/src/commonMain/kotlin/com/sedsoftware/tackle/root/integration/editor/EditorTabComponentSettings.kt | djkovrik | 769,140,107 | false | {"Kotlin": 795413, "Swift": 995} | package com.sedsoftware.tackle.root.integration.editor
import com.sedsoftware.tackle.domain.api.TackleSettings
import com.sedsoftware.tackle.editor.EditorComponentGateways
internal class EditorTabComponentSettings(
private val settings: TackleSettings,
) : EditorComponentGateways.Settings {
override val own... | 15 | Kotlin | 0 | 1 | 96e8f88b5b3e7e0ae3a55c8466ff9d7cdd5614b2 | 1,080 | Tackle | MIT License |
finch-kotlin-core/src/main/kotlin/com/tryfinch/api/services/async/RequestForwardingServiceAsync.kt | Finch-API | 688,609,420 | false | {"Kotlin": 918955, "Shell": 1245} | // File generated from our OpenAPI spec by Stainless.
@file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.tryfinch.api.services.async
import com.tryfinch.api.core.RequestOptions
import com.tryfinch.api.models.RequestForwardingForwardParams
import com.tryfinch.api.mo... | 0 | Kotlin | 0 | 0 | 94f6f214e37efddd74056b142f3cec0967f21e91 | 667 | finch-api-kotlin | Apache License 2.0 |
zowe-cli/src/jsMain/kotlin/zowe/cli/zosfiles/strings/Temp103.kt | lppedd | 761,812,661 | false | {"Kotlin": 1887051} | package zowe.cli.zosfiles.strings
external interface Temp103 {
var DESCRIPTION: String
var POSITIONALS: Temp104
var OPTIONS: Temp105
var EXAMPLES: Temp106
}
| 0 | Kotlin | 0 | 3 | 0f493d3051afa3de2016e5425a708c7a9ed6699a | 166 | kotlin-externals | MIT License |
app/src/main/java/co/joshwel/uji/store/UjiStateSerializer.kt | markjoshwel | 802,910,619 | false | {"Kotlin": 36955} | package co.joshwel.uji.store
import android.content.Context
import androidx.datastore.core.CorruptionException
import androidx.datastore.core.DataStore
import androidx.datastore.core.Serializer
import androidx.datastore.dataStore
import androidx.datastore.preferences.protobuf.InvalidProtocolBufferException
import java... | 0 | Kotlin | 0 | 0 | 0daf29f5c9cb8e8f2c79c6811808d721fa231d84 | 978 | uji | The Unlicense |
app/src/main/java/com/zipdabang/zipdabang_android/module/comment/data/remote/RecipeComment.kt | zipdabang | 666,457,004 | false | {"Kotlin": 1689597} | package com.zipdabang.zipdabang_android.module.comment.data.remote
import kotlinx.serialization.Serializable
@Serializable
data class RecipeComment(
val content: String,
val createdAt: String,
val isOwner: Boolean,
val ownerImage: String,
val ownerNickname: String,
val commentId: Int,
val ... | 6 | Kotlin | 1 | 2 | 64ee7ffe6a6d3ee12c3e2a93a598465e65ac583d | 361 | android | The Unlicense |
app/src/main/java/com/apaluk/wsplayer/ui/search/SearchViewModel.kt | apaluk | 576,009,487 | false | null | package com.apaluk.wsplayer.ui.search
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.apaluk.wsplayer.data.stream_cinema.StreamCinemaRepository
import com.apaluk.wsplayer.domain.model.media.SearchResultItem
import com.apaluk.wsplayer.ui.common.util.UiState
import com.apaluk.wspl... | 0 | Kotlin | 0 | 0 | 42a06541f2860112cbe73cd94ebc90e0072017a9 | 2,855 | ws-player-android | MIT License |
app/src/main/kotlin/com/pnuema/bible/android/database/VerseCountOffline.kt | barnhill | 98,140,541 | false | null | package com.pnuema.bible.android.database
import androidx.room.Entity
import com.pnuema.bible.android.data.firefly.VerseCountDomain
@Entity(tableName = "offlineVerseCount", primaryKeys = ["book_id", "chapter", "version"])
data class VerseCountOffline (
val book_id: Int,
val chapter: Int,
val version: Stri... | 1 | null | 4 | 18 | 2ec6e0113ba6d8cb97ee63b4f5a26834e441314c | 438 | Bible | Apache License 2.0 |
src/main/kotlin/no/nav/tilleggsstonader/kontrakter/dokarkiv/Dokument.kt | navikt | 691,013,075 | false | {"Kotlin": 90741} | package no.nav.tilleggsstonader.kontrakter.dokarkiv
class Dokument(
val dokument: ByteArray,
val filtype: Filtype,
val filnavn: String? = null,
val tittel: String? = null,
val dokumenttype: Dokumenttype,
)
enum class Filtype {
PDFA,
JSON,
}
| 2 | Kotlin | 0 | 0 | 7812164fb0d8e7ed01cadc3b4ee9439062fdf5f8 | 271 | tilleggsstonader-kontrakter | MIT License |
src/main/kotlin/http/HttpRequest.kt | ArjixWasTaken | 833,220,452 | false | {"Kotlin": 28545} | package com.arjix.http
import java.net.URI
import java.util.*
import kotlin.jvm.optionals.getOrNull
data class HttpRequest(
val method: HttpVerb,
val uri: URI,
val headers: HttpHeaders
) {
companion object {
fun read(stream: Scanner): Optional<Result<HttpRequest>> {
val lines = mut... | 0 | Kotlin | 0 | 1 | 6d6fdfe2f4e2747d5db566da0cd6a02c5f2193b3 | 1,251 | low-level-backend | MIT License |
app/src/main/java/com/noto/app/label/LabelChooserDialogFrgament.kt | androiddevnotesforks | 346,802,081 | true | {"Kotlin": 138791} | package com.noto.app.label
//import android.content.res.ColorStateList
//import android.os.Bundle
//import android.view.LayoutInflater
//import android.view.View
//import android.view.ViewGroup
//import android.view.animation.AlphaAnimation
//import android.view.animation.ScaleAnimation
//import androidx.core.content.... | 0 | Kotlin | 0 | 2 | 12a7068345e5f18a5e3e5c02839d3dd0d77d46ca | 5,573 | Noto | Apache License 2.0 |
shared/src/main/java/de/loosetie/k8s/dsl/impls/DaemonSetUpdateStrategy.kt | loosetie | 283,145,621 | false | {"Kotlin": 12443871} | package de.loosetie.k8s.dsl.impls
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonPropertyOrder
import de.loosetie.k8s.dsl.K8sManifest
import de.loosetie.k8s.dsl.HasParent
import de.loosetie.k8s.dsl.manifests.*
@JsonPropertyOrder("rollingUpdate", "type")
class DaemonSetU... | 0 | Kotlin | 0 | 1 | 3dd2d00220dbf71151d56b75b3bd7f26583b1fd3 | 1,083 | k8s-dsl | Apache License 2.0 |
app/src/main/java/com/example/trendyol_internship/data/listing/model/Game.kt | utkukalkanli | 508,192,157 | false | {"Kotlin": 33331} | package com.example.trendyol_internship.data.listing.model
// release date
// genres - list
// playtime
// publishers
// reddit url
// website url
class Game(
val id: Int?,
val name: String?,
val background_image: String?
)
| 2 | Kotlin | 0 | 0 | 2c9e1ad46b05ed24544767fda74c85877ce6f1f1 | 247 | games-list | Apache License 2.0 |
app/src/main/java/com/example/trendyol_internship/data/listing/model/Game.kt | utkukalkanli | 508,192,157 | false | {"Kotlin": 33331} | package com.example.trendyol_internship.data.listing.model
// release date
// genres - list
// playtime
// publishers
// reddit url
// website url
class Game(
val id: Int?,
val name: String?,
val background_image: String?
)
| 2 | Kotlin | 0 | 0 | 2c9e1ad46b05ed24544767fda74c85877ce6f1f1 | 247 | games-list | Apache License 2.0 |
examples/versioning-multimodule-example/dokka/parentProject/childProjectB/src/main/kotlin/demo/Functions.kt | adamko-dev | 598,382,061 | false | {"Kotlin": 421737, "Java": 1388, "CSS": 720} | package demo
/**
* New super function that does everything
*
* @since 1.0
*/
fun superFunction42() {}
| 24 | Kotlin | 7 | 72 | 972dbb4aee371e60be6c10d42ca4757ed65c4651 | 107 | dokkatoo | Apache License 2.0 |
examples/versioning-multimodule-example/dokka/parentProject/childProjectB/src/main/kotlin/demo/Functions.kt | adamko-dev | 598,382,061 | false | {"Kotlin": 421737, "Java": 1388, "CSS": 720} | package demo
/**
* New super function that does everything
*
* @since 1.0
*/
fun superFunction42() {}
| 24 | Kotlin | 7 | 72 | 972dbb4aee371e60be6c10d42ca4757ed65c4651 | 107 | dokkatoo | Apache License 2.0 |
app/src/main/java/com/hami/sports_assist/data/SoccerStatRepository.kt | hongwei-bai | 345,632,970 | false | null | package com.hami.sports_assist.data
import com.hami.sports_assist.AppConfigurations
import com.hami.sports_assist.data.local.AppSettings
import com.hami.sports_assist.data.mapper.SoccerTeamScheduleMapper.map
import com.hami.sports_assist.data.network.service.SoccerStatService
import com.hami.sports_assist.data.room.so... | 2 | Kotlin | 6 | 36 | 1189147834569489acbc36137495840125a0a5bd | 3,018 | android-nba-assist | Apache License 2.0 |
sample/src/main/kotlin/com/sugoiwada/sample/model/github/GitHubLinkHeader.kt | sugoi-wada | 74,024,467 | false | null | package com.sugoiwada.sample.model.github
import android.net.Uri
class GitHubLinkHeader(val first: Element?, val last: Element?, val next: Element?, val prev: Element?) {
companion object {
fun parse(string: String): GitHubLinkHeader? {
val elements = string.split(",").map { Element.parse(it)... | 0 | Kotlin | 0 | 0 | a5b14c7a24d27a313ee7775290eb5e048e5dad2c | 1,987 | flux-kotlin-android-sample | Apache License 2.0 |
app/src/main/java/com/example/droidconnyc22/view/PagingScrollListener.kt | orelzion | 532,084,832 | false | null | package com.example.droidconnyc22.view
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
abstract class PagingScrollListener(private val layoutManager: RecyclerView.LayoutManager?) :
RecyclerView.OnScrollListener() {
override fun onScrolled(recyclerView... | 0 | Kotlin | 0 | 0 | d075cbcafa4c07230d39dac13fd14ed77caf0145 | 968 | paging3-droidconnyc-22 | MIT License |
library/src/main/java/com/wss/library/ScaleSeekBar.kt | song234876 | 203,341,522 | false | null | package com.wss.library
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.*
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.... | 0 | null | 0 | 6 | 5b135f78506b141689cc2bd655370cbe89e1dffe | 14,473 | ScaleSeekBar | Apache License 2.0 |
features/facts/src/test/java/io/dotanuki/norris/facts/util/factsTestModule.kt | dotanuki-labs | 192,096,771 | false | null | package io.dotanuki.norris.facts.util
import io.dotanuki.norris.facts.ui.FactsScreen
import org.kodein.di.DI
import org.kodein.di.bind
import org.kodein.di.singleton
val factsTestModule = DI.Module("facts-test-module") {
bind<FactsScreen>(overrides = true) {
// Make sure the same instance is provided to ... | 20 | Kotlin | 36 | 447 | 8d6e73d29a0a75231be79356afd4d73e218271ac | 417 | norris | MIT License |
module_user/src/main/java/com/czl/module_user/widget/TodoFilterPopView.kt | cdalwyn | 336,133,347 | false | {"Kotlin": 630994, "Java": 115105} | package com.czl.module_user.widget
import android.annotation.SuppressLint
import androidx.databinding.DataBindingUtil
import com.afollestad.materialdialogs.utils.MDUtil.getStringArray
import com.blankj.utilcode.util.StringUtils
import com.czl.lib_base.binding.command.BindingAction
import com.czl.lib_base.binding.comma... | 1 | Kotlin | 70 | 267 | 77298b416cc15f168499c0b29c8f9017e6c187ca | 2,737 | PlayAndroid | Apache License 2.0 |
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/presentation/tokens/manage/chain/di/ManageChainTokensModule.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7668451, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_assets.presentation.tokens.manage.chain.di
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap
import io.novafoundation.nova.common.di... | 11 | Kotlin | 6 | 9 | b39307cb56302ce7298582dbd03f33f6b2e2a807 | 1,542 | nova-wallet-android | Apache License 2.0 |
core/src/main/java/com/sagar/core/widget/TextView.kt | sagar-viradiya | 345,684,249 | false | null | package com.sagar.core.widget
import android.text.Editable
import android.text.TextWatcher
import android.widget.TextView
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.callbackFlow
/**
* Sealed class to wrap [TextView]'s before, on an... | 1 | Kotlin | 7 | 171 | b9b0f40001f8ef3d3b59713d4f616d6c49f32292 | 5,052 | callback-ktx | Apache License 2.0 |
common_component/src/main/java/com/xyoye/common_component/database/dao/MediaLibraryDao.kt | xyoye | 138,993,190 | false | null | package com.xyoye.common_component.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.xyoye.data_component.entity.MediaLibraryEntity
import com.xyoye.data_component.enums.MediaType
import com.xyoye.data_component.helper.MediaTypeConverter
/**
* Created by xyoye on 2021/1/18.
*/
@Dao
... | 28 | null | 93 | 946 | b60bd028ce160ff37aba3eaf70fd0b2cbfa5eab0 | 1,536 | DanDanPlayForAndroid | Apache License 2.0 |
app/src/main/java/es/upm/bienestaremocional/app/ui/screen/SettingsScreen.kt | Emotional-Wellbeing | 531,973,820 | false | null | package es.upm.bienestaremocional.app.ui.screen
import android.app.Activity
import android.content.Context
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.ma... | 0 | Kotlin | 0 | 1 | e45d8969c9cd1a89f53777fcc671a4196177b7e3 | 20,222 | App | Apache License 2.0 |
src/main/kotlin/software/amazon/smithy/intellij/SmithyFileIndex.kt | iancaffey | 455,381,865 | false | {"Kotlin": 286598, "Lex": 5063, "Smithy": 2929} | package software.amazon.smithy.intellij
import com.intellij.openapi.project.DumbService
import com.intellij.psi.PsiManager
import com.intellij.psi.search.FileTypeIndex
import com.intellij.psi.search.GlobalSearchScope
/**
* A utility class providing query methods for [SmithyFile] on top of the [FileTypeIndex].
*
* ... | 2 | Kotlin | 2 | 24 | 286adf8f042e9ebeeb28bbd99aa3ac320ed95f23 | 684 | smithy-intellij-plugin | MIT License |
behavior/src/main/java/com/angcyo/behavior/refresh/RefreshEffectBehavior.kt | angcyo | 259,872,337 | false | null | package com.angcyo.behavior.refresh
import android.content.Context
import android.util.AttributeSet
import com.angcyo.behavior.BaseScrollBehavior
/**
* 刷新效果的行为, 只有效果, 不触发回调.
*
* Email:angcyo@126.com
* @author angcyo
* @date 2020/01/07
*/
open class RefreshEffectBehavior(context: Context, attributeSet: Attribut... | 1 | Kotlin | 5 | 23 | 6f06f225e0eae1f42184e4bd5d8428561a17ba67 | 842 | DslBehavior | MIT License |
src/test/kotlin/keymonitor/database/NotificationTest.kt | nmalkin | 94,026,869 | false | null | package keymonitor.database
import keymonitor.common.PhoneNumber
import keymonitor.common.closeTestingDatabase
import keymonitor.common.query
import keymonitor.common.useNewTestingDatabase
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
import org.jetb... | 0 | Kotlin | 0 | 0 | 8875e3c6d39e1cd06ebc96f24dbc44186c88d063 | 2,705 | key-monitor | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/suppress/declarationKinds/var.kt | ingokegel | 72,937,917 | false | null | // "Suppress 'DIVISION_BY_ZERO' for var foo" "true"
var foo = 2 / <caret>0
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.inspections.suppress.KotlinSuppressIntentionAction
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.inspections.suppress.KotlinSuppressIntentionAction | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 277 | intellij-community | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_SPRAY_CAN.kt | msrd0 | 363,665,023 | false | {"Kotlin": 3912511, "Jinja": 2214} | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | ee6a62d201fd5df2555859271cb0c6a7ee887e7a | 2,229 | fontawesome-kt | Apache License 2.0 |
Scanner/Android/app/src/main/java/ca/snmc/scanner/data/network/apis/testing/AuthenticateTestingApi.kt | snmcCode | 272,461,777 | false | {"C#": 420531, "Kotlin": 263098, "HTML": 148679, "TSQL": 22187, "CSS": 9706, "JavaScript": 920} | package ca.snmc.scanner.data.network.apis.testing
import ca.snmc.scanner.data.network.NetworkConnectionInterceptor
import ca.snmc.scanner.data.network.responses.AuthenticateResponse
import okhttp3.OkHttpClient
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
impo... | 29 | C# | 1 | 6 | f1bb550397b4e959beb501e77c27110d439a64b3 | 1,584 | covidTracking | MIT License |
src/main/kotlin/io/github/misawa/coassign/WeightScaling.kt | MiSawa | 226,680,692 | false | null | package io.github.misawa.coassign
import io.github.misawa.coassign.collections.ActiveNodeQueue
import io.github.misawa.coassign.collections.BucketsLL
import io.github.misawa.coassign.collections.FIFOActiveNodeQueue
import io.github.misawa.coassign.collections.FixedCapacityIntArrayList
import io.github.misawa.coassign.... | 0 | Kotlin | 0 | 0 | 2b723480d16e7c9517cf1e5394405a466a5a5360 | 30,030 | coassign | MIT License |
src/main/kotlin/br/com/trucouro/controller/HelloController.kt | acaverna | 374,253,546 | false | null | package br.com.trucouro.controller
import io.micronaut.http.MediaType
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Get
import io.micronaut.http.annotation.PathVariable
@Controller("/hello")
class HelloController {
@Get(produces = [MediaType.TEXT_PLAIN])
fun hello():Strin... | 0 | Kotlin | 0 | 0 | ab55d291c8625883e859e4339e3f9d4c314d2c8a | 501 | trucouro-server | MIT License |
bot/src/main/kotlin/bot/utils/jobs/CloseScoreUpdateJob.kt | Jonath22b | 206,583,496 | false | null | package bot.utils.jobs
import bot.bridges.CloseScoreUpdateBridge
import bot.bridges.ScoreUpdateBridge
import org.quartz.Job
import org.quartz.JobExecutionContext
import bot.utils.DataRetriever
class CloseScoreUpdateJob : Job {
override fun execute(context: JobExecutionContext?) {
println("Running Close Sc... | 0 | Kotlin | 0 | 0 | 3ab294f86d805fd794ddc626c3bbab90631af790 | 453 | Tickle-Sum-TDs | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/BoxCircleCheck.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,962 | icons | MIT License |
app/src/main/java/com/galgolabs/earthweather/ui/notifications/SettingsFragment.kt | john10mwangi | 559,924,562 | false | {"Kotlin": 67223} | package com.galgolabs.earthweather.ui.notifications
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.preference.DropDownPreference
import androidx.preference.Preference
import androidx.preference.Preference.OnPreferenceChangeListener
imp... | 0 | Kotlin | 0 | 0 | 6055ee263a336de0585fb19e05ba2bd8730bbc11 | 2,357 | EarthWeather | MIT License |
tipsLib/src/main/java/com/optimizer/tooltips/animations/fading_in/FadeInAnimator.kt | maxim-petlyuk | 157,140,329 | false | {"Kotlin": 40607, "Java": 761} | package com.optimizer.tooltips.animations.fading_in
import android.animation.ObjectAnimator
import android.view.View
import com.optimizer.tooltips.animations.BaseViewAnimator
class FadeInAnimator : BaseViewAnimator() {
public override fun prepare(target: View) {
animatorAgent.playTogether(ObjectAnimator... | 1 | Kotlin | 9 | 39 | 5d5b73487efc3af1648af882940661692c90ba9f | 363 | initial_tips | Apache License 2.0 |
app/src/main/java/com/udacity/shoestore/utils/Constant.kt | RicardoBravoA | 309,849,757 | false | null | package com.udacity.shoestore.utils
object Constant {
const val KEY = "KEY"
} | 0 | Kotlin | 0 | 0 | 608013e9a8f5598d09065e574444fdd102b0e3cd | 82 | ShoeStore | Apache License 2.0 |
telegramit-core/src/main/kotlin/org/botlaxy/telegramit/core/conversation/persistence/PersisteneContextSerializer.kt | vitaxa | 258,866,097 | false | null | package org.botlaxy.telegramit.core.conversation.persistence
interface PersistenceContextSerializer {
fun serialize(conversationContext: ConversationData): ByteArray
fun deserialize(byteArray: ByteArray): ConversationData
}
| 0 | Kotlin | 2 | 9 | 2e7fdb9e1e3edf2638d7dbb0895b4f8a10fbaa43 | 236 | telegramit | Apache License 2.0 |
tmp/arrays/youTrackTests/7237.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-25664
fun foo(x: UInt) {
println(x)
}
fun main(args: Array<String>) {
foo(0xffff_ffffu) // Prints 4294967295
::foo.call(0xffff_ffffu) // Exception -- WRONG!!!
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 195 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/mapcode/AppViewModel.kt | mapcode-foundation | 497,300,332 | false | null | /*
* Copyright (C) 2022, Stichting Mapcode Foundation (http://www.mapcode.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
*
* ... | 4 | Kotlin | 0 | 1 | d153c3f357fb8528980db60f4e88e03380e4a6ed | 1,544 | mapcode-android-app | Apache License 2.0 |
app/src/main/java/com/example/mytasks/views/login/CreateActivity.kt | gustavohd18 | 251,103,944 | false | null | package com.example.mytasks.views.login
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.mytasks.R
import com.example.mytasks.controllers.login.LoginController
import kotlinx.android.synt... | 5 | Kotlin | 0 | 0 | 4386fe693002b535b084d0770e90777daeb4b01c | 1,517 | Mytasks | MIT License |
dependency-plugin/src/main/kotlin/ch/addere/dga/dependencyplugin/DgaModelBuilder.kt | ryru | 658,943,263 | false | {"Kotlin": 107990} | package ch.addere.dga.dependencyplugin
import ch.addere.dga.dependencymodel.DependencyModel
import ch.addere.dga.dependencymodel.DependencyModelImpl
import org.gradle.api.Project
import org.gradle.tooling.provider.model.ToolingModelBuilder
class DgaModelBuilder : ToolingModelBuilder {
override fun canBuild(model... | 0 | Kotlin | 0 | 2 | 04724dd7073a36c42f6e290a96229e08f1276e1d | 785 | dependency-graph-analyser | MIT License |
app/src/main/kotlin/com/chad/baserecyclerviewadapterhelper/activity/ItemClickActivity.kt | neo-turak | 725,016,480 | false | {"Kotlin": 333393} | package com.chad.baserecyclerviewadapterhelper.activity
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.chad.baserecyclerviewadapterhelper.R
import com.chad.baserecycler... | 0 | Kotlin | 0 | 1 | 57aae064f1d0941410e96c7fece043c05b9709c4 | 3,413 | BaseRecyclerViewAdapterHelper | MIT License |
app/src/main/java/com/core/app/lifecycle/activity/BroadcastActivityLifecycle.kt | raxden | 165,669,612 | false | null | package com.core.app.lifecycle.activity
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.OnLifecycleEvent
import com.core.app.lifecycle.BaseActivityLifecycle
import com.core.app.util.BroadcastManager
import javax.inject.Inject
class BroadcastActivityLifecyc... | 1 | null | 1 | 1 | 9ad3b3d2fffdaa7abdf567320e8d6d9f98a67746 | 931 | android-core | Apache License 2.0 |
src/kotlin/gtlp/groundmc/lobby/event/EntityEventListener.kt | PanikFaser | 80,982,772 | false | null | package gtlp.groundmc.lobby.event
import gtlp.groundmc.lobby.LobbyMain
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.entity.EntityDamageEvent
/**
* Created by Marv1 on 14.11.2016.
*/
class EntityEventListener : Listener {
@EventHandler
fun preventDamage(event:... | 0 | Kotlin | 0 | 0 | e8c5be499a1f71c7c47209cacfc480d158b71c0a | 452 | GroundMCPlugin | Apache License 2.0 |
modules/conflate-api/src/main/kotlin/com/encodeering/conflate/experimental/api/Reducer.kt | encodeering | 81,722,175 | false | null | package com.encodeering.conflate.experimental.api
/**
* A reducer conflates the payload of an action with the given state into a state object, and shall not
* perform any kind of side-effect, that influences the outcome of the returned state object.
*
* An implementation must guarantee, that he following condition... | 3 | Kotlin | 0 | 1 | 51fd2e4cee32e29bb72cd182611393d7f8420914 | 2,452 | conflate | Apache License 2.0 |
app/src/main/java/com/singularity/ipcaplus/drawer/DrawerActivty.kt | DiogoAntunesOliveira | 420,277,496 | false | {"Kotlin": 288875, "JavaScript": 42028, "HTML": 29226, "CSS": 6623, "Processing": 1981} | package com.singularity.ipcaplus.drawer
import android.content.BroadcastReceiver
import android.content.ContentValues
import android.content.ContentValues.TAG
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
im... | 0 | Kotlin | 1 | 5 | 0f2d68b73654d7b2a820ce6da04812e8477672b5 | 8,611 | ipca_plus | MIT License |
src/main/kotlin/dev/turingcomplete/intellijdevelopertoolsplugin/_internal/tool/editor/PsiKotlinUtils.kt | marcelkliemannel | 605,260,384 | false | {"Kotlin": 729243, "HTML": 1028} | package dev.turingcomplete.intellijdevelopertoolsplugin._internal.tool.editor
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.util.elementType
import dev.... | 23 | Kotlin | 14 | 178 | dc83a42ad60769981162c4634e1cc719f986380f | 2,641 | intellij-developer-tools-plugin | Apache License 2.0 |
core/src/io/github/doorbash/agario/util/color.kt | doorbash | 294,905,107 | false | null | package io.github.doorbash.agario.util
import com.badlogic.gdx.graphics.Color
fun Color.toInt(): Int {
return ((255 * r).toInt() shl 24) or ((255 * g).toInt() shl 16) or ((255 * b).toInt() shl 8) or ((255 * a).toInt())
} | 0 | Kotlin | 1 | 3 | 8312ba5ebabc2dca183fe3a7dcae72bbbaab31d0 | 226 | agar-io | MIT License |
app/src/main/java/com/example/famreen/application/items/NoteItem.kt | GinKukuruza | 305,210,621 | false | null | package com.example.famreen.application.items
import android.os.Parcel
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.fasterxml.jackson.annotation.JsonProperty
import com.google.firebase.database.Exclude
import java.util.HashMap
@Entity
open class NoteItem : Parcel... | 0 | Kotlin | 0 | 1 | ad6c16bf8c7ec522a64ec7d4a59a990c4ee2adf2 | 1,861 | famreen | Apache License 2.0 |
src/commonMain/kotlin/dev/epicsquid/surrealkt/connection/client.kt | EpicSquid | 611,923,051 | false | null | package dev.epicsquid.surrealkt.connection
import io.ktor.client.*
import io.ktor.client.plugins.websocket.*
import io.ktor.http.*
import io.ktor.serialization.kotlinx.*
import kotlinx.serialization.json.Json
fun client() = HttpClient {
install(WebSockets) {
contentConverter = KotlinxWebsocketSerializationConverte... | 1 | Kotlin | 0 | 1 | dfa633169538318305020a24be7e6032dfd6fd38 | 352 | surrealkt | Apache License 2.0 |
data/remote/src/test/java/com/ds/ciceksepeti/remote/ProductServiceTest.kt | developersancho | 371,180,136 | false | null | package com.ds.ciceksepeti.remote
import android.os.Build
import com.ds.ciceksepeti.remote.service.ProductService
import kotlinx.coroutines.runBlocking
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.koin.core.component.inject
import org.robolectric.RobolectricTestRunner
import... | 0 | Kotlin | 0 | 0 | 1ad877d404b6c6777db0d23b50d8b832b2a89d52 | 1,530 | CicekSepeti-Challenge | Apache License 2.0 |
Application/core/core-logger/src/main/java/com/istudio/core_logger/data/repository/LoggerRepository.kt | devrath | 570,594,617 | false | {"Kotlin": 238294} | package com.istudio.core_logger.data.repository
import com.istudio.core_logger.domain.LoggerFeature
open class LoggerRepository(
private val loggerFeature: LoggerFeature
) {
open fun d(featureName: String?, msg: String?) { loggerFeature.d(featureName, msg) }
open fun e(featureName: String?, msg: String?)... | 0 | Kotlin | 3 | 6 | 17d03b535e2ced992b97cc1e3a6d40c5393afded | 628 | Distance-Tracker | Apache License 2.0 |
demokotlin/src/main/java/com/sankuai/waimai/router/demo/kotlin/TestViewModel.kt | meituan | 144,974,148 | false | null | package com.sankuai.waimai.router.demo.kotlin
import android.content.Context
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.sankuai.waimai.router.common.DefaultUriRequest
import com.sankuai.waimai.router.demo.lib2.ToastUtils
import com.wmrouter.adapter.coroutines.await
import k... | 29 | null | 333 | 2,217 | 7c05c1050781412ee66931fffaf6e06e3e8abf52 | 1,305 | WMRouter | Apache License 2.0 |
app/src/main/java/com/nguyen/shelter/ui/main/adapters/UserPagerAdapter.kt | dtnguyn | 292,352,460 | false | null | package com.nguyen.shelter.ui.main.adapters
import androidx.fragment.app.Fragment
import androidx.paging.ExperimentalPagingApi
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.nguyen.shelter.ui.main.fragments.RentFragment
import com.nguyen.shelter.ui.main.fragments.SaleFragment
import com.nguyen.shel... | 0 | Kotlin | 0 | 2 | 39bb09297edd9f999ed2710ee51608a53254aa8d | 974 | Shelter | The Unlicense |
src/main/kotlin/br/com/zupacademy/witer/Application.kt | witermendonca | 386,655,925 | true | {"Kotlin": 36748, "Smarty": 2172, "Dockerfile": 161} | package br.com.zupacademy.witer
import io.micronaut.runtime.Micronaut.*
fun main(args: Array<String>) {
build()
.args(*args)
.packages("br.com.zupacademy.witer")
.start()
}
| 0 | Kotlin | 0 | 0 | fd46c21d5dac1b49085bfb03f7012211397d1942 | 185 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
core/src/main/kotlin/ru/mobileup/core/network/ErrorHandlingCallAdapterFactory.kt | MobileUpLLC | 495,305,519 | false | {"Kotlin": 82696} | package ru.mobileup.core.network
import retrofit2.Call
import retrofit2.CallAdapter
import retrofit2.Retrofit
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
class ErrorHandlingCallAdapterFactory : CallAdapter.Factory() {
override fun get(
returnType: Type,
annotations: A... | 0 | Kotlin | 1 | 3 | 4f486b7a96775d262e8cd179ef70d7f0e2531f0b | 617 | Push-Notifications-Android | MIT License |
old_srcs/playground/src/test/kotlin/practice/primes/PrimeNumbersTests.kt | JetBrains | 52,014,223 | false | null | package practice.primes
import org.junit.Test
import org.junit.Assert.assertArrayEquals
import org.junit.Rule
import org.junit.rules.ExpectedException
class PrimeNumbersTests {
@get:Rule
val thrown: ExpectedException = ExpectedException.none();
@Test fun notInRange() {
val n = 1
thrown.ex... | 1 | Kotlin | 7 | 27 | 8db0eae79465d3068081f5d1284b319ea7d65881 | 1,146 | email-parser | Apache License 2.0 |
app/src/main/java/io/github/artemnazarov/winesapp/data/WineDao.kt | temqua | 545,973,712 | false | null | package io.github.artemnazarov.winesapp.data
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy.ABORT
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
@Dao
interface WineDao {
@Query("SELEC... | 0 | Kotlin | 0 | 0 | 376ce2de025eba664196915a7b5c4975705a2b49 | 1,380 | WinesApp | MIT License |
src/main/kotlin/behavioralPatterns/visitor/Visitor.kt | takaakit | 138,280,665 | false | null | package behavioralPatterns.visitor
// ˅
// ˄
interface Visitor {
fun visit(file: File)
fun visit(directory: Directory)
// ˅
// ˄
}
// ˅
// ˄
| 0 | Kotlin | 0 | 9 | ce3f7ca0ac87a9e09c1bcce5092922187c71d3bf | 168 | design-pattern-examples-in-kotlin | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/jobbble/user/Skill.kt | alexandrustoica | 160,933,578 | false | null | package com.jobbble.user
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import org.bson.types.ObjectId
import org.springframework.data.annotation.Id
import org.springframework.data.annotation.Persisten... | 0 | Kotlin | 0 | 0 | 7ac44b785909c4117db09e45d222ab0d97536006 | 659 | jobbble.engine | MIT License |
src/main/kotlin/ch/leadrian/samp/kamp/fcnpcwrapper/constants/MoveSpeed.kt | Double-O-Seven | 174,439,714 | false | null | package ch.leadrian.samp.kamp.fcnpcwrapper.constants
import ch.leadrian.samp.kamp.core.api.constants.ConstantValue
import ch.leadrian.samp.kamp.core.api.constants.ConstantValueRegistry
import ch.leadrian.samp.kamp.fcnpcwrapper.FCNPCConstants
enum class MoveSpeed(override val value: Float) : ConstantValue<Float> {
... | 0 | Kotlin | 0 | 0 | 43835b06c08bad0a83f4702e685e31e826744023 | 572 | kamp-fcnpc-wrapper | Apache License 2.0 |
app/src/main/java/com/danc/watchout/presentation/screens/PeopleStarDetails.kt | Danc-0 | 570,116,933 | false | {"Kotlin": 96005} | package com.danc.watchout.presentation.screens
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.shape.Roun... | 0 | Kotlin | 0 | 0 | 8301e6d22e20aa3a13501700ab6bd511b2fec885 | 7,614 | WATCHOUT | MIT License |
src/main/kotlin/g2101_2200/s2160_minimum_sum_of_four_digit_number_after_splitting_digits/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g2101_2200.s2160_minimum_sum_of_four_digit_number_after_splitting_digits
// #Easy #Math #Sorting #Greedy #2023_06_26_Time_133_ms_(88.24%)_Space_34.5_MB_(88.24%)
@Suppress("NAME_SHADOWING")
class Solution {
fun minimumSum(num: Int): Int {
var num = num
val digit = IntArray(4)
var cu... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 564 | LeetCode-in-Kotlin | MIT License |
base/src/main/java/co/base/search/SearchRepositoryImpl.kt | p-vincen-t | 238,182,140 | false | {"Gradle": 21, "XML": 215, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 18, "Batchfile": 1, "Markdown": 1, "Proguard": 10, "YAML": 2, "Java": 13, "Kotlin": 236, "HTML": 2, "INI": 9, "JSON": 1} | /*
* Copyright 2020, {{App}}
* Licensed under the Apache License, Version 2.0, "{{App}} Inc".
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* so... | 1 | null | 1 | 1 | 74d1af99f1a563b6aa5ace72eb303e055c6ace5a | 3,147 | android-template | Apache License 2.0 |
Structural/Proxy/ProtectionProxy.kt | evabishchevich | 166,403,981 | true | {"Swift": 24470, "Kotlin": 21334} | // Implementation
interface File {
fun read(name: String)
}
class NormalFile: File {
override fun read(name: String) = println("Reading file: $name")
}
class SecuredFile: File {
val normalFile = NormalFile()
var password: String = ""
override fun read(name: String) {
if (password == "<PA... | 0 | Swift | 0 | 1 | 7055623a8f734b51721944e0592b459766b00d17 | 702 | Design-Patterns-In-Swift-Compare-Kotlin | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.