path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/personal/tmdb/detail/data/mappers/CollectionMapper.kt | Avvami | 755,489,313 | false | {"Kotlin": 671404} | package com.personal.tmdb.detail.data.mappers
import com.personal.tmdb.core.domain.models.MediaInfo
import com.personal.tmdb.core.util.convertMediaType
import com.personal.tmdb.detail.data.models.CollectionDto
import com.personal.tmdb.detail.data.models.Part
import com.personal.tmdb.detail.domain.models.CollectionInfo... | 0 | Kotlin | 0 | 2 | d3a9455a7ab3b18fc1ccc4f61598b0c2164ab83e | 1,363 | TMDB | MIT License |
CardViewAndroidKotlin/app/src/main/java/com/velmurugan/cardviewandroidkotlin/RecyclerViewAdapter.kt | velmurugan-murugesan | 109,480,598 | false | null | package com.velmurugan.cardviewandroidkotlin
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.wi... | 8 | null | 657 | 516 | 2c51e3c90a999b361cb5bf289f7b46758bb35b25 | 1,845 | Android-Example | Apache License 2.0 |
app/src/main/java/br/com/arquitetoandroid/appcommerce/adapter/ProductCategoryAdapter.kt | arquiteto-android | 170,885,471 | false | null | package br.com.arquitetoandroid.appcommerce.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.Recycl... | 0 | Kotlin | 9 | 7 | 158f6c3648ec258a5d792ceb841838d7135c57e6 | 1,574 | AppCommerce | Apache License 2.0 |
app/src/main/java/id/davidpratama/a160419103_ubayaculinary/view/Interfaces.kt | daviddprtma | 478,382,125 | false | {"Kotlin": 58724} | package id.davidpratama.a160419103_ubayaculinary.view
import android.os.Bundle
import android.view.View
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
interface TodoCheckedChangeListener {
fun onCheckChanged(
)
}
interface ButtonAddRestaurantClickListener... | 0 | Kotlin | 0 | 0 | 58ff0db6049943b09a1b060abc79e8142293c651 | 369 | 160419103_UTS-Advanced-Native-Mobile-Programming_Ubaya-Culinary | Apache License 2.0 |
src/main/kotlin/com/dorpeled/pterodactylcommandsmod/models/Schedule.kt | Knat-Dev | 808,615,813 | false | {"Kotlin": 35275} | package com.dorpeled.pterodactylcommandsmod.models
import com.fasterxml.jackson.annotation.JsonProperty
class Schedule {
@JsonProperty("object")
private var `object`: String? = null
@JsonProperty("data")
private var data: List<ServerSchedule?>? = null
// Getters and Setters
fun getObject(): ... | 0 | Kotlin | 0 | 0 | 4e12485602fa97278975be1e814314db8f8735d7 | 11,992 | PterodactylCommandsMod | MIT License |
demos/comida-app/src/main/kotlin/dev/tonycode/composed/comida/ui/screens/main/MainViewModel.kt | tonycode | 734,835,138 | false | {"Kotlin": 33210} | package dev.tonycode.composed.comida.ui.screens.main
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.tonycode.composed.comida.data.OffersReposi... | 0 | Kotlin | 0 | 0 | 5db564e61c3e1983555e9f27b1ea897b20064ccb | 1,927 | composed | MIT License |
app/src/main/java/com/eroadtest/eroadtest/MyApplication.kt | jizhe7550 | 388,683,079 | false | null | package com.eroadtest.eroadtest
import android.app.Application
import android.content.Context
class MyApplication : Application() {
companion object {
private lateinit var instance: MyApplication
fun applicationContext(): Context {
return instance.applicationContext
}
}
... | 0 | Kotlin | 0 | 0 | 73602af7889f0be6dc94724a080555d8abb53bbe | 406 | EroadTest | MIT License |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/onboarding/OnboardingFragment.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.ui.onboarding
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.annotation.VisibleForTesting
import androidx.fragment.app.Fragment
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.FragmentOnboardingBi... | 2 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 2,636 | cwa-app-android | Apache License 2.0 |
androidApp/src/main/java/com/lukninja/moneyman/android/views/SplashActivity.kt | lukninja97 | 512,867,665 | false | null | package com.lukninja.moneyman.android.views
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.lukninja.moneyman.android.MainActivity
class SplashActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCrea... | 0 | Kotlin | 0 | 0 | 39f2c781395f2aaca4fd460cf4243c5cfb6f9828 | 429 | MoneyMan | Apache License 2.0 |
logger/src/main/java/by/esas/tools/logger/handler/ErrorData.kt | alcosi | 280,116,186 | false | null | /*
* Copyright 2021 Electronic Systems And Services Ltd.
* SPDX-License-Identifier: Apache-2.0
*/
package by.esas.tools.logger.handler
import by.esas.tools.logger.BaseErrorModel
open class ErrorData<E : Enum<E>, M : BaseErrorModel<E>>(
val throwable: Throwable? = null,
val model: M? = null,
val showTy... | 0 | Kotlin | 0 | 0 | 0e6c934b095bac538e69c17e86213b1643c6eaea | 448 | basic-tools | Apache License 2.0 |
baselib/src/main/java/com/sihaiwanlian/baselib/base/BaseFragment.kt | mouxuefei | 127,224,115 | false | null | package com.sihaiwanlian.baselib.base
import android.content.Context
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import com.sihaiwanlian.baselib.R
import com.sihaiwanlian.baselib.uti... | 1 | null | 1 | 1 | d55c102427d6ed5f813062bd8cbe966ce65508bc | 3,845 | componentProject | Apache License 2.0 |
app/src/main/java/uk/co/jamiecruwys/compose/playground/ui/article/ArticleScreen.kt | JamieCruwys | 381,145,856 | false | null | package uk.co.jamiecruwys.compose.playground.ui.article
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Icon... | 0 | Kotlin | 0 | 1 | 52a030c31660f545e07fdf8a14ee9e452303b522 | 3,487 | compose-playground | Apache License 2.0 |
Client-Android/app/src/main/java/com/xmx/ai/bing/network/BingRetrofitInstance.kt | The---onE | 647,384,498 | false | {"Kotlin": 89783, "Python": 57459} | package com.xmx.ai.bing.network
import com.xmx.ai.utils.NetworkUtil
import retrofit2.Retrofit
object BingRetrofitInstance {
private const val BASE_URL = "[Server Address]"
private val client = NetworkUtil.makeClient(BASE_URL)
fun getInstance(): Retrofit {
return client
}
} | 0 | Kotlin | 2 | 1 | b38d4995aa4194c76c662c7ab7ab238a17544ad8 | 301 | AI-Chat | MIT License |
library/src/main/kotlin/pl/mg6/kotho/ActivityExtensions.kt | MaTriXy | 110,152,822 | false | null | package pl.mg6.kotho
import android.app.Activity
import com.facebook.litho.Component
import com.facebook.litho.ComponentContext
import com.facebook.litho.LithoView
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KProperty
fun Activity.contentView(componentFactory: () -> Component<*>) {
setContentV... | 0 | Kotlin | 0 | 0 | eea767bc17a802653ac328e258c5692099edfd63 | 928 | litho-kotlin-1 | Apache License 2.0 |
app/src/main/java/com/alexandros/e_health/api/responseModel/DataPrescriptions.kt | alexioan7 | 409,163,653 | false | null | package com.alexandros.e_health.api.responseModel
data class DataPrescriptions(
val prescriptions: List<PrescriptionDetails>
) | 0 | Kotlin | 0 | 2 | 284c942fa352e0e22919ca6821a59c352c9fc354 | 131 | E-Health | MIT License |
app/unit-tests/src/org/commcare/mediadownload/LazyMediaDownloadTest.kt | dimagi | 20,939,877 | false | {"Java": 3952611, "JavaScript": 466293, "Kotlin": 338683, "Python": 33986, "Shell": 1376, "Ruby": 894, "CSS": 824} | package org.commcare.mediadownload
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.work.ListenableWorker
import androidx.work.testing.TestListenableWorkerBuilder
import io.mockk.every
import io.mockk.mockkObject
impor... | 51 | Java | 27 | 38 | b2e4ef9d6d322fb464bc805f42d4cc1fb84d5e72 | 6,394 | commcare-android | Apache License 2.0 |
common/src/main/java/com/tfandkusu/template/model/GithubRepo.kt | tfandkusu | 427,583,819 | false | {"Kotlin": 117539, "Ruby": 292} | package com.tfandkusu.aic.model
import java.util.Date
data class GithubRepo(
val id: Long,
val name: String,
val description: String,
val updatedAt: Date,
val language: String,
val htmlUrl: String,
val fork: Boolean,
val favorite: Boolean
)
| 16 | Kotlin | 0 | 1 | 5d8d0aea5a008c53c7444f402858fa0911ed253c | 275 | android_app_template | Apache License 2.0 |
app/src/main/java/com/ivantha/playtolearn/widget/Switch.kt | play-to-learn | 114,718,223 | false | null | package com.ivantha.playtolearn.widget
import android.content.Context
import android.graphics.Color
import android.graphics.Typeface
import androidx.appcompat.widget.SwitchCompat
import android.util.AttributeSet
import com.ivantha.playtolearn.R
class Switch : SwitchCompat {
init {
// setBackground... | 1 | Kotlin | 21 | 18 | e5ab70955a14777c23a1ec042fa81fbe953a901d | 882 | play-to-learn | MIT License |
core/krosstalk/src/commonMain/kotlin/com/rnett/krosstalk/ServerDefault.kt | rnett | 280,773,642 | false | {"Kotlin": 385837} | package com.rnett.krosstalk
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract
import kotlin.jvm.JvmInline
@OptIn(InternalKrosstalkApi::class)
public class UnrealizedServerDefaultException @InternalKrosstalkApi constructor() :
KrosstalkException("ServerDefault was not realized on the server s... | 6 | Kotlin | 1 | 21 | 8bad1e5d69a75a7203206a4d23f71b81d1afecd6 | 1,292 | krosstalk | Apache License 2.0 |
src/main/kotlin/com/example/springkotlintemplate/Project/ClinicalData/ClinicalServiceImpl.kt | Beamworks-Inc | 610,041,941 | false | null | package com.example.springkotlintemplate.Project.ClinicalData
import com.example.springkotlintemplate.RestConfig.InvalidRequestStateException
import com.example.springkotlintemplate.Storage.StorageService
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import... | 0 | Kotlin | 0 | 0 | 7e2144548b6f3832d0395ac2d93391ee64b06509 | 1,622 | CTS-Backend | Apache License 2.0 |
app/src/main/kotlin/com/fernandocejas/sample/features/auth/di/AuthModule.kt | android10 | 92,510,608 | false | {"Kotlin": 105481} | package com.fernandocejas.sample.features.auth.di
import com.fernandocejas.sample.core.navigation.Navigator
import com.fernandocejas.sample.core.network.NetworkHandler
import com.fernandocejas.sample.features.auth.credentials.Authenticator
import okhttp3.OkHttpClient
import org.koin.core.module.dsl.singleOf
import org... | 72 | Kotlin | 926 | 4,668 | 1bcddf39bc5d06a67748b3c5ab6b44d1a5c73a24 | 475 | Android-CleanArchitecture-Kotlin | Apache License 2.0 |
app/src/main/java/cc/sovellus/vrcaa/api/vrchat/models/websocket/FriendOffline.kt | Nyabsi | 745,635,224 | false | {"Kotlin": 581921} | package cc.sovellus.vrcaa.api.vrchat.models.websocket
import com.google.gson.annotations.SerializedName
data class FriendOffline(
@SerializedName("userId")
val userId: String
) | 0 | Kotlin | 3 | 38 | b45497cd686df2583ceb7b9cdefdd7ac2ee39b14 | 187 | VRCAA | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsciagcareersinductionapi/integration/CIAGProfileIntTest.kt | ministryofjustice | 620,258,376 | false | {"Kotlin": 140849, "Dockerfile": 1191} | package uk.gov.justice.digital.hmpps.hmppsciagcareersinductionapi.integration
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.A... | 2 | Kotlin | 0 | 0 | 5060375a3bd3c062a5d304802653064cd0a2b762 | 18,826 | hmpps-ciag-careers-induction-api | MIT License |
app/src/main/java/kz/sozdik/feedback/data/api/FeedbackApi.kt | sozdik-kz | 290,830,901 | false | null | package kz.sozdik.feedback.data.api
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
interface FeedbackApi {
@FormUrlEncoded
@POST("api/")
suspend fun postFeedback(
@Field("device_token") pushToken: String,
@Field("email") email: String,
@... | 5 | Kotlin | 5 | 43 | cfbdffe47253c14ec75d0fba166d1077e028328c | 470 | sozdik-android | MIT License |
app/src/main/java/dev/marcosfarias/pokedex/ui/home/HomeActivity.kt | alizeec | 238,222,898 | true | null | package dev.marcosfarias.pokedex.ui.home
import android.content.Context
import android.os.Bundle
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.GridL... | 0 | Kotlin | 0 | 22 | eb49a54af4aba22beb648d403ab4f19c60be1a65 | 2,485 | Kotlin-Pokedex | MIT License |
src/main/kotlin/ants/engine/engine.kt | suniala | 649,224,566 | false | null | @file:OptIn(ExperimentalStdlibApi::class)
package ants.engine
import ants.common.Ant
import ants.common.AntId
import ants.common.AntState
import ants.common.Direction
import ants.common.Distance
import ants.common.Pheromone
import ants.common.PheromoneId
import ants.common.PheromoneStrength
import ants.common.Turn
im... | 0 | Kotlin | 0 | 0 | d1058e9e3453f052be78b194a9b808bcfb5a8759 | 8,659 | ant-simulator-2000 | Apache License 2.0 |
CommonSDK/src/main/java/com/example/commonsdk/app/BaseApplication.kt | tuozhaobing | 162,947,170 | false | {"Kotlin": 51392, "Java": 5543} | package com.example.commonsdk.app
import android.app.Application
import android.content.Context
/**
* @author
* @Date 2019/1/3
* @description
* @since 1.0.0
*/
open class BaseApplication :Application() {
private var appDelegate: ApplicationLifecycleDelegate? = null
override fun attachBaseContext(base: ... | 0 | Kotlin | 1 | 2 | 2b14dd0d104b8c6fd1e9978e6051a7083c1906f6 | 710 | ModularsArchitectureDemo | Apache License 2.0 |
breathOfTheWild/src/main/kotlin/breathOfTheWild/elixirIngredients/ElixirIngredientsTable.kt | adamWeesner | 239,233,558 | false | null | package breathOfTheWild.elixirIngredients
import breathOfTheWild.elixir.ElixirsTable
import generics.IdTable
import org.jetbrains.exposed.sql.ReferenceOption
object ElixirIngredientsTable : IdTable() {
val ingredient = varchar("ingredient", 255)
val itemId = reference("elixir", ElixirsTable.id, ReferenceOptio... | 1 | Kotlin | 1 | 1 | a04ad390fe844a7d89db2fa726599c23d3f796f6 | 333 | weesnerDevelopment | MIT License |
symphony/src/commonMain/kotlin/presenters/DateRangeInputField.kt | aSoft-Ltd | 632,931,925 | false | {"Kotlin": 65872} | @file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package presenters
import krono.LocalDate
import presenters.properties.Bounded
import presenters.properties.Patterned
import kotlin.js.JsExport
@Deprecated("use krono instead")
interface DateRangeInputField : TransformingRangeInputField<String, LocalDate>, Bounded... | 0 | Kotlin | 0 | 0 | 413d6773cc8446cec1bf505c30a4955e747326e5 | 423 | krono | MIT License |
MythicDoors/app/src/main/java/org/helios/mythicdoors/utils/DefaultDataLoader.kt | Dazdwc | 697,206,895 | false | {"Kotlin": 274869} | package org.helios.mythicdoors.utils
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.helios.mythicdoors.model.entities.User
import org.helios.mythicdoors.services.UserServiceImp
import org.helios.mythicdoors.services.interfaces.IUserService
suspend fun defaultDataLoader(dbHelper... | 0 | Kotlin | 0 | 1 | 05f116ab4da0ac1e728a4eb44bda6206d0a780ee | 1,313 | AppNativas | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/stopmotion/PlayerActivity.kt | jhgarner | 242,396,647 | false | {"Java": 119383, "Kotlin": 27498, "GLSL": 10323} | package com.example.stopmotion
import android.content.Intent
import android.os.Bundle
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import java.io.File
import kotlin.concurrent.schedule
import kotlinx.android.synthetic.main.player_activity.*
import androidx.core.app.ComponentActivity... | 1 | null | 1 | 1 | 03564cfd665e3ff904f5b30495156986753df05e | 2,384 | StopMotion | Apache License 2.0 |
data/local/src/main/java/com/avatr/local/data/db/LocalDatabase.kt | beyondshi | 584,061,113 | false | null | package com.avatr.local.data.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteDatabase
import com.avatr.local.data.entites.BaiduEntity
@Database(entities = [BaiduEntity::class], version = 1)
abstract clas... | 0 | Kotlin | 0 | 0 | 330047edd81c5e81590365ba481c5647286f4402 | 1,058 | clear-arch-sample | Apache License 2.0 |
tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/ForwardMessages.kt | InsanusMokrassar | 163,152,024 | false | null | package dev.inmo.tgbotapi.requests
import dev.inmo.tgbotapi.abstracts.types.DisableNotification
import dev.inmo.tgbotapi.abstracts.types.MessagesAction
import dev.inmo.tgbotapi.abstracts.types.ProtectContent
import dev.inmo.tgbotapi.requests.abstracts.SimpleRequest
import dev.inmo.tgbotapi.requests.send.abstracts.Opti... | 8 | null | 29 | 358 | 482c375327b7087699a4cb8bb06cb09869f07630 | 2,288 | ktgbotapi | Apache License 2.0 |
implementation/src/main/kotlin/pl/beone/promena/transformer/converter/pdfbox/PdfBoxConverterTransformer.kt | BeOne-PL | 240,204,787 | false | null | package pl.beone.promena.transformer.converter.pdfbox
import pl.beone.promena.transformer.applicationmodel.mediatype.MediaType
import pl.beone.promena.transformer.contract.Transformer
import pl.beone.promena.transformer.contract.communication.CommunicationParameters
import pl.beone.promena.transformer.contract.communi... | 1 | Kotlin | 0 | 0 | 015c154451842c7658f3a8533522b2d5afd6e94a | 1,686 | promena-transformer-converter-pdfbox | Apache License 2.0 |
src/test/kotlin/com/faendir/zachtronics/bot/om/dummies.kt | F43nd1r | 290,065,466 | false | null | /*
* Copyright (c) 2021
*
* 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 writ... | 4 | null | 1 | 2 | 9194fce96292b50d28e370b8c761da1acaee0645 | 1,063 | zachtronics-leaderboard-bot | Apache License 2.0 |
data/database/src/commonMain/kotlin/ly/david/musicsearch/data/database/dao/RecordingDao.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354694, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.musicsearch.data.database.dao
import kotlinx.collections.immutable.toImmutableList
import ly.david.musicsearch.data.musicbrainz.models.core.RecordingMusicBrainzModel
import ly.david.musicsearch.core.models.recording.RecordingScaffoldModel
import ly.david.musicsearch.data.database.Database
import lydav... | 102 | Kotlin | 0 | 6 | 5e15119a3c55efa932e37afced1b56609e988fe6 | 2,073 | MusicSearch | Apache License 2.0 |
annotations/src/main/java/goldzweigapps/com/annotations/annotations/Clickable.kt | gilgoldzweig | 107,080,458 | false | null | package goldzweigapps.com.annotations.annotations
/**
* Informs the Gencycler code generator that you want to be informed when an item is clicked
* this will modify the constructor
*
* @see GencyclerViewHolder
* @see LongClickable for the long click listener
*/
@Retention(AnnotationRetention.SOURCE)
@Target(Ann... | 7 | Kotlin | 7 | 75 | 087d2ed2728a586a3dcbbdff33ed5c80e4c2b2c0 | 367 | Gencycler | The Unlicense |
app/src/main/kotlin/edu/stanford/bdh/engagehf/health/components/AddDataHeader.kt | StanfordSpezi | 787,513,636 | false | {"Kotlin": 994700, "Ruby": 1769, "Shell": 212} | package edu.stanford.bdh.engagehf.health.components
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.HorizontalDivider
import androidx.compose... | 16 | Kotlin | 1 | 8 | ddc790d11b46a3cd19ff86aca50e86f41a1042e3 | 1,360 | SpeziKt | MIT License |
common/src/main/java/com/ishow/common/adapter/BindAdapter.kt | i-show | 62,766,394 | false | null | package com.ishow.common.adapter
import android.content.Context
import android.util.SparseArray
import android.util.SparseIntArray
import android.view.View
import android.view.ViewGroup
import androidx.core.util.forEach
import androidx.core.util.set
import androidx.databinding.DataBindingUtil
import androidx.databindi... | 1 | null | 1 | 1 | 0b823a69256345078a0c110798c8e9ac4ae2b565 | 6,513 | android-Common | Apache License 2.0 |
data/communication/src/main/java/io/github/mmolosay/datalayercommunication/data/communication/convertion/encode/EncoderDecorator.kt | mmolosay | 594,482,339 | false | null | package io.github.mmolosay.datalayercommunication.data.communication.convertion.encode
import io.github.mmolosay.datalayercommunication.domain.communication.convertion.Encoder
import io.github.mmolosay.datalayercommunication.domain.communication.model.Data
/**
* [Encoder] wrapper for any other [encoder].
* Base dec... | 0 | Kotlin | 0 | 0 | 91656536b5597b91263266c10999759c85a72ff8 | 541 | DataLayerCommunication | Apache License 2.0 |
src/infrastructure/storage/src/main/kotlin/yapp/be/storage/jpa/volunteerActivity/repository/VolunteerActivityJoiningQueueJpaRepository.kt | YAPP-Github | 634,126,325 | false | {"Kotlin": 415858, "HTML": 7648} | package yapp.be.storage.jpa.volunteerActivity.repository
import org.springframework.data.jpa.repository.JpaRepository
import yapp.be.storage.jpa.volunteerActivity.model.VolunteerActivityJoiningQueueEntity
import yapp.be.storage.jpa.volunteerActivity.repository.querydsl.VolunteerActivityJoiningQueueJpaRepositoryCustom
... | 0 | Kotlin | 1 | 7 | b689f5362ecc319a531a37925b4f8d2505ebecd7 | 965 | DangleDangle-server | Apache License 2.0 |
okretrofit/src/main/java/com/q/net/ARetrofit.kt | ltqi | 279,073,843 | false | null | package com.q.net
import com.q.BuildConfig
import com.q.util.body2String
import com.q.util.formatJson
import com.q.util.i
import okhttp3.OkHttpClient
import okio.Buffer
import retrofit2.Retrofit
/**
* Created by: qiliantao on 2020.06.22 11:52
* email : <EMAIL>
* Describe : Retrofit okHttpClient封装
*/
objec... | 0 | Kotlin | 0 | 1 | 723c297f97b42868febed4eaa906af57adbfe14a | 2,297 | aos | MIT License |
data_component/src/main/java/com/xyoye/data_component/data/MagnetSubgroupData.kt | xiaojiujiu20150827 | 350,970,152 | true | {"Kotlin": 1170237, "Java": 542861} | package com.xyoye.data_component.data
/**
* Created by xyoye on 2020/10/26.
*/
data class MagnetSubgroupData(
val Subgroups: MutableList<MagnetScreenData> = mutableListOf()
) | 0 | null | 0 | 0 | 57f9a65368a6f79d22944fa1264002c04b256993 | 182 | DanDanPlayForAndroid | Apache License 2.0 |
ui/src/main/kotlin/tv/dotstart/beacon/ui/exposure/ExposureModule.kt | dotStart | 59,450,805 | false | {"Kotlin": 304955, "Less": 8602} | /*
* Copyright 2020 <NAME> <<EMAIL>>
* and other copyright owners as documented in the project's IP log.
*
* 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/lic... | 7 | Kotlin | 4 | 35 | bfa429062a852010842923268535a8d0f133e683 | 1,112 | Beacon | Apache License 2.0 |
extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/ModelLayerState.kt | mapbox | 330,365,289 | false | {"Kotlin": 3982759, "Java": 98572, "Python": 18705, "Shell": 11465, "C++": 10129, "JavaScript": 4344, "Makefile": 2413, "CMake": 1201, "EJS": 1194} | // This file is generated.
package com.mapbox.maps.extension.compose.style.layers.generated
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.mapb... | 225 | Kotlin | 131 | 472 | 2700dcaf18e70d23a19fc35b479bff6a2d490475 | 22,104 | mapbox-maps-android | Apache License 2.0 |
platform/diagnostic/src/CoroutineTracerShim.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.diagnostic
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.withContext
import org.jetbrains.annotations.ApiStatus.Expe... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,249 | intellij-community | Apache License 2.0 |
foobar/src/main/kotlin/io/androidalatan/lifecycle/template/foobar/di/FoobarActivityComponent.kt | android-alatan | 606,930,016 | false | null | package io.androidalatan.lifecycle.template.foobar.di
import dagger.Module
import dagger.Provides
import dagger.Subcomponent
import dagger.android.AndroidInjector
import io.androidalatan.lifecycle.dagger.scope.annotations.ActivityScope
import io.androidalatan.lifecycle.handler.compose.activity.di.ComposeLifecycleActiv... | 0 | Kotlin | 0 | 1 | 325d2b639743899acbf6a5acb2c55f4dd410b466 | 1,327 | LifecycleComponentTemplate | MIT License |
hexagon_core/src/main/kotlin/helpers/Jvm.kt | ramyaravindranath | 369,034,896 | true | {"Kotlin": 580538, "HTML": 23316, "CSS": 2003, "JavaScript": 1420} | package com.hexagonkt.helpers
import java.lang.management.ManagementFactory
import java.lang.management.MemoryUsage
import java.net.InetAddress
import java.nio.charset.Charset
import java.util.TimeZone
/**
* Object with utilities to gather information about the running JVM.
*
* [TODO](https://github.com/hexagonkt... | 0 | null | 0 | 1 | 4e233a24af0fea9d10b4946e21a7d60d1f7c60f3 | 2,220 | hexagon | MIT License |
wmpf-demo/app/src/main/java/com/tencent/wmpf/demo/ui/FastExperienceActivity.kt | wmpf | 193,447,303 | false | {"Kotlin": 73074, "Shell": 2452} | package com.tencent.wmpf.demo.ui
import android.annotation.SuppressLint
import android.os.Bundle
import android.preference.PreferenceManager
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.tencent.wmpf.cli.api.WMPF
import com.tencent.wmpf.cli.api.W... | 37 | Kotlin | 72 | 242 | 3a95a57ab768e284436f57e8913dec141009cbdb | 3,792 | wmpf_demo_external | MIT License |
analyser/src/main/kotlin/analyser/AnalyserServer.kt | gyulavoros | 105,145,273 | false | null | package analyser
import akka.NotUsed
import akka.actor.ActorSystem
import akka.http.javadsl.ConnectHttp
import akka.http.javadsl.Http
import akka.http.javadsl.model.ws.Message
import akka.http.javadsl.model.ws.TextMessage
import akka.http.javadsl.server.AllDirectives
import akka.http.javadsl.server.Route
import akka.s... | 0 | Kotlin | 0 | 0 | 61aa0f9ef5f544b918a567463ad46a5d54c5090f | 2,340 | githubarchive-demo | MIT License |
app/src/main/java/com/hazz/kuangji/ui/activity/mine/MineSettingActivity.kt | Zbea | 267,815,167 | false | null | package com.hazz.kuangji.ui.activity.mine
import android.content.Intent
import androidx.appcompat.widget.Toolbar
import com.hazz.kuangji.R
import com.hazz.kuangji.base.BaseActivity
import com.hazz.kuangji.ui.activity.LoginActivity
import com.hazz.kuangji.utils.ActivityManager
import com.hazz.kuangji.utils.SPUtil
impor... | 1 | null | 1 | 2 | 265006a03cd6e56cff4e7d2a8e5c52d6438802d3 | 2,500 | SjAndroid | Apache License 2.0 |
game-api/src/main/java/org/runestar/client/game/api/WidgetId.kt | ittwit | 174,040,462 | true | {"Kotlin": 1368454, "Java": 984753} | package org.runestar.client.game.api
inline class WidgetId(val packed: Int) {
constructor(group: Int, index: Int) : this((group shl 16) or index)
val group: Int get() = getGroup(packed)
val index: Int get() = getIndex(packed)
override fun toString(): String = "WidgetId($group:$index)"
companio... | 0 | Kotlin | 0 | 0 | 4cef8098210c66a2ce2d6e4fdccd2cfc3237a53c | 925 | client | MIT License |
site/src/jsMain/kotlin/com/caleb/k/utils/Constants.kt | Mzazi25 | 738,193,866 | false | {"Kotlin": 91254, "HTML": 69009} | package com.caleb.k.utils
object Constants {
const val WEBSITE = ""
const val TWITTER = "https://twitter.com/_CalebLangat"
const val INSTAGRAM = ""
const val LINKDLN = "https://www.linkedin.com/in/caleb-langat/"
const val MEDIUM = "https://medium.com/@langat.caleb95"
const val SECTION_WIDTH = ... | 0 | Kotlin | 0 | 6 | 8e71decd4aabee4c7534a196944015f9294d9d9a | 6,094 | Caleb-Portfolio | The Unlicense |
app/src/main/java/ke/co/ipandasoft/futaasoccerlivestreams/data/response/LocationInfo.kt | KevinGitonga | 299,652,172 | false | null | package ke.co.ipandasoft.futaasoccerlivestreams.data.response
import com.google.gson.annotations.SerializedName
data class LocationInfo(
@SerializedName("as")
var asX: String?,
@SerializedName("city")
var city: String?,
@SerializedName("country")
var country: String?,
@SerializedName("cou... | 0 | Kotlin | 2 | 5 | 79309c90354581a600e730e394a4f90a694a1e13 | 891 | FutaaLiveStreams | Apache License 2.0 |
musiclibrary/src/main/java/com/cyl/musiclake/api/MusicUtils.kt | cj7865794408 | 154,458,383 | false | null | package com.cyl.musiclake.api
import android.app.Activity
import android.content.Intent
import android.net.Uri
import com.cyl.musicapi.bean.ListItem
import com.cyl.musicapi.bean.SongsItem
import com.cyl.musicapi.netease.TracksItem
import com.cyl.musicapi.playlist.Album
import com.cyl.musicapi.playlist.ArtistsItem
impo... | 1 | null | 1 | 3 | 472aab2e180fc40de6c22b7aa82b88f30e32370e | 9,628 | MoErDuo_Music_Lib | Apache License 2.0 |
app/src/main/java/com/nemesisprotocol/cryptocraze/data/database/user/UserDao.kt | qfdox | 615,859,896 | false | null | package com.nemesisprotocol.cryptocraze.data.database.user
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.nemesisprotocol.cryptocraze.domain.user.User
@Dao
interface UserDao {
@Query("SELECT * FROM user")
... | 0 | Kotlin | 0 | 0 | 3c3dc19b7212a3b51598eddcb0df1e541dae21ae | 915 | book_js_3 | MIT License |
baselibrary/src/main/java/com/sscl/baselibrary/activity/BaseSplashActivity.kt | JackiePenghe | 576,202,469 | false | null | package com.sscl.baselibrary.activity
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import androidx.core.splashscreen.SplashScreen
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.... | 0 | Kotlin | 0 | 0 | 0fb258b891552e8eb1f6f5d8132ad923c399773d | 2,307 | baselibrary-for-kotlin | Apache License 2.0 |
zyncy/src/main/java/com/zyncy/data/request/RequestQueue.kt | sakkeerhussain | 208,547,373 | false | {"Gradle": 4, "YAML": 1, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 42, "XML": 22, "Java": 1} | package com.zyncy.data.request
import com.zyncy.client.BaseTarget
interface RequestQueue {
fun getActiveRequests(): List<Request>
fun enqueue(request: Request, target: BaseTarget): Request
fun deque(request: Request)
fun getExistingImageRequest(request: Request): Request?
} | 3 | Kotlin | 0 | 1 | 0333262dc75b01549594a85730fc61425d2c25f3 | 292 | Zyncy | Apache License 2.0 |
compiler/testData/loadJava/compiledKotlin/fun/InfixKeyword.kt | JakeWharton | 99,388,807 | false | null | package test
class Example {
infix fun test(other: Example) {}
} | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 69 | kotlin | Apache License 2.0 |
core/src/main/kotlin/dev/entao/base/Anno.kt | yangentao | 326,213,398 | false | null | package dev.entao.base
import java.text.DecimalFormat
import kotlin.reflect.*
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.hasAnnotation
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
annotation class NumberF... | 0 | Kotlin | 0 | 0 | bbc3ef0dd96a553af61654bbc25c983aa87ac255 | 4,191 | sweet | MIT License |
buildSrc/src/main/kotlin/com/delbel/plugin/AndroidPlugin.kt | matiasdelbel | 213,772,637 | false | null | package com.delbel.plugin
import org.gradle.api.Project
import org.gradle.api.baseAndroidExtension
import kotlin.contracts.ExperimentalContracts
@ExperimentalContracts
internal class AndroidPlugin : ModulePlugin {
override fun apply(target: Project) {
val androidExtension = target.baseAndroidExtension() ... | 3 | null | 0 | 1 | e5191316ea97cb63c11da0fb1b3acb6d6ad164e2 | 913 | android-zygote-multi-modules | Apache License 2.0 |
graphql-dgs/src/main/kotlin/com/netflix/graphql/dgs/internal/method/DataFetchingEnvironmentArgumentResolver.kt | Netflix | 317,375,887 | false | {"Kotlin": 1530406, "Java": 286741, "HTML": 14098, "Python": 8827, "TypeScript": 3328, "JavaScript": 2934, "Makefile": 1328} | /*
* Copyright 2022 Netflix, 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... | 88 | Kotlin | 289 | 3,037 | bd2d0c524e70a9d1d625d518a94926c7b53a7e7c | 1,533 | dgs-framework | Apache License 2.0 |
presentation/src/main/java/prieto/fernando/presentation/RandomJokeUiModel.kt | ferPrieto | 216,438,304 | false | null | package prieto.fernando.presentation
data class RandomJokeUiModel(
val id: String,
val joke: String,
val categories: List<CategoryUiModel>
)
enum class CategoryUiModel {
EXPLICIT,
NERDY,
UNKNOWN
}
| 0 | Kotlin | 1 | 13 | aecbd0054faa15beb29aac1c694eff9db0179432 | 223 | MVVM-Modularized | Apache License 2.0 |
source/model/src/main/kotlin/de/webis/webisstud/thesis/reimer/model/Task.kt | webis-de | 261,803,727 | false | {"Kotlin": 235840, "Jupyter Notebook": 43040, "Java": 7525} | package de.webis.webisstud.thesis.reimer.model
interface Task {
val id: String
val corpus: Corpus
val title: String? get() = null
val description: String? get() = null
val url: String? get() = null
} | 0 | Kotlin | 2 | 2 | 1dc184e16a6abfca2b1bb9f4b52311271fb06d7e | 220 | sigir20-sampling-bias-due-to-near-duplicates-in-learning-to-rank | MIT License |
app/src/main/java/com/fanrong/frwallet/dao/database/WebIconConfig.kt | iamprivatewallet | 464,003,911 | false | {"JavaScript": 2822760, "Kotlin": 1140535, "Java": 953177, "HTML": 17003} | package com.fanrong.frwallet.dao.database
import android.graphics.Bitmap
import org.litepal.crud.LitePalSupport
import java.io.Serializable
class WebIconConfig : LitePalSupport(),Serializable{
var webUrl: String = ""
var iconStr: String? = null
var title: String? = null
var favicon:Bitmap? = null
} | 0 | JavaScript | 0 | 1 | be8003e419afbe0429f2eb3fd757866e2e4b9152 | 319 | PrivateWallet.Android | MIT License |
src/test/kotlin/com/project/goms/domain/studentCouncil/GrantAuthorityUseCaseTest.kt | team-haribo | 614,648,553 | false | null | package com.project.goms.domain.studentCouncil
import com.project.goms.common.AnyValueObjectGenerator
import com.project.goms.domain.account.common.exception.AccountNotFoundException
import com.project.goms.domain.account.entity.Account
import com.project.goms.domain.account.entity.repository.AccountRepository
import ... | 2 | Kotlin | 0 | 4 | 9243740b0f0238330b615998a7125f033119ce17 | 1,947 | GOMS-Backend | MIT License |
plugins/markdown/core/src/org/intellij/plugins/markdown/lang/psi/impl/MarkdownFrontMatterHeaderContent.kt | jwren | 31,697,927 | true | null | package org.intellij.plugins.markdown.lang.psi.impl
import com.intellij.psi.impl.source.tree.LeafPsiElement
import com.intellij.psi.tree.IElementType
import org.intellij.plugins.markdown.lang.psi.MarkdownPsiElement
class MarkdownFrontMatterHeaderContent(type: IElementType, text: CharSequence): LeafPsiElement(type, te... | 0 | null | 0 | 0 | bf2402af3a3443a462b128488b32b5b0130b1534 | 344 | intellij-community | Apache License 2.0 |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/ecr/actions/CreateAppRunnerServiceAction.kt | JetBrains | 223,485,227 | true | {"Gradle Kotlin DSL": 21, "Markdown": 16, "Java Properties": 2, "Shell": 1, "Text": 12, "Ignore List": 3, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 3, "YAML": 28, "XML": 96, "Kotlin": 1102, "JSON": 54, "Java": 9, "SVG": 64, "TOML": 1, "INI": 1, "CODEOWNERS": 1, "Maven POM": 4, "Dockerfile": 14, "JavaScript":... | // Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.ecr.actions
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.PlatformDataKeys
import com.intellij.openapi.pr... | 6 | Kotlin | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 1,009 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/java/com/finxp/account/di/AppModule.kt | saad100104006 | 439,683,556 | false | {"Kotlin": 28853} | package com.finxp.account.di
import android.content.Context
import com.finxp.account.presentation.BaseApplication
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Single... | 0 | Kotlin | 0 | 0 | 5cc60f0e03be41d27d94bbcc5e98070d1b37b4ac | 547 | JetpackCompose-Example | MIT License |
igdbclient-core/src/commonMain/kotlin/auth/twitch/TwitchTokenPayload.kt | illarionov | 660,855,100 | false | {"Kotlin": 378559, "PureBasic": 131} | /*
* Copyright (c) 2023, the Igdbclient project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.igdbclient.auth.twitch
import ru.pixnews.igdbclient.internal.model.TwitchTo... | 1 | Kotlin | 0 | 5 | ecadd5e98afb6b93acb101a951197bb367f521aa | 2,050 | igdbclient | Apache License 2.0 |
example/sum/src/test/kotlin/io/mockk/example/SumJUnit4Test.kt | yannickvg | 115,266,439 | true | {"Gradle": 18, "YAML": 2, "INI": 1, "Text": 2, "Ignore List": 1, "Markdown": 2, "Shell": 1, "HTML": 3, "SVG": 4, "Kotlin": 123, "Maven POM": 3, "XML": 1, "Java": 22, "SCSS": 1} | package io.mockk.example
import io.mockk.every
import io.mockk.junit.MockKJUnit4Runner
import io.mockk.mockk
import io.mockk.verify
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(MockKJUnit4Runner::class)
class SumJUnit4Test {
class Abc {
fun sum(a: Int... | 0 | Kotlin | 1 | 0 | c611ccf87f78708ba439bacf1111525a58d9647e | 543 | mockk | Apache License 2.0 |
src/iosMain/kotlin/util/DataBuffer.kt | matejdro | 296,557,133 | true | {"Kotlin": 156434} | package io.rebble.libpebblecommon.util
import kotlinx.cinterop.*
import platform.Foundation.*
actual class DataBuffer {
private val actualBuf: NSMutableData
private var littleEndian = false
/**
* Total length of the buffer
*/
actual val length: Int
get() = actualBuf.length.toInt()
... | 0 | Kotlin | 0 | 0 | 3cad1e90714b520e3ea56726c5b8f1daa2b9997a | 5,042 | libpebblecommon | Apache License 2.0 |
plugin/src/main/kotlin/com/github/triplet/gradle/play/internal/AccountConfig.kt | QuadFlask | 155,586,733 | true | {"Kotlin": 85271, "Groovy": 41100, "Shell": 1039, "HTML": 390} | package com.github.triplet.gradle.play.internal
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFile
import org.gradle.api.tasks.Internal
import org.gradle.api.tasks.Optional
import org.gradle.api.tasks.PathSensitive
import org.gradle.api.tasks.PathSensitivity
import java.io.File
interface AccountC... | 0 | Kotlin | 0 | 0 | b2b8bcaaea1c35148c0d80c8b581253b6c1ced31 | 990 | gradle-play-publisher | MIT License |
compiler/testData/diagnostics/tests/override/dnnOverridesFlexibleDnnRepresentation.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: +JavaTypeParameterDefaultRepresentationWithDNN
// ISSUE: KT-58933
// FILE: J.java
public interface J<T> {
void simple(T t);
void box(Box<T> box);
}
// FILE: test.kt
class Box<T>
class K<T> : J<T> {
override fun simple(t: T & Any) {}
override fun box(box: Box<T & Any>) {}
}
| 181 | Kotlin | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 305 | kotlin | Apache License 2.0 |
backend.native/tests/runtime/workers/lazy1.kt | mikedavidsonkb | 146,094,257 | true | {"Kotlin": 4174353, "C++": 821623, "Groovy": 142964, "C": 121837, "Objective-C++": 67115, "Swift": 29830, "JavaScript": 18038, "Python": 10940, "Shell": 8458, "Batchfile": 7233, "Objective-C": 3532, "Pascal": 1698, "Java": 782, "Dockerfile": 422, "HTML": 185} | package runtime.workers.lazy1
import kotlin.test.*
import kotlin.native.worker.*
class Leak {
val leak by lazy { this }
}
@Test fun runTest() {
assertFailsWith<InvalidMutabilityException> {
for (i in 1..100)
Leak().freeze().leak
}
println("OK")
}
| 0 | Kotlin | 0 | 0 | d5142220d2304d9315a0449df1e6d88958bbd295 | 287 | kotlin-native | Apache License 2.0 |
executor/src/main/kotlin/hu/bme/aut/executor/feature/jobs/dto/mappers/SingleJobMapper.kt | matusekma | 339,406,251 | false | null | package hu.bme.aut.executor.feature.jobs.dto.mappers
import hu.bme.aut.executor.feature.jobs.dto.singlejobs.LanguageDetectionJobResult
import hu.bme.aut.executor.feature.jobs.dto.singlejobs.PunctuationRestorationJobResult
import hu.bme.aut.executor.feature.nlp.languagedetection.dto.LanguageDetectionResponse
import hu.... | 0 | Kotlin | 0 | 0 | 3899ced4bf829524beb085599e553069324710e8 | 649 | text-analyzer | MIT License |
app/src/main/java/com/cactusteam/money/data/filter/ITransactionFilter.kt | miserenkov | 184,610,310 | false | null | package com.cactusteam.money.data.filter
import com.cactusteam.money.data.dao.Transaction
import org.json.JSONException
import org.json.JSONObject
/**
* @author vpotapenko
*/
interface ITransactionFilter {
fun allow(transaction: Transaction): Boolean
fun toJSON(): JSONObject
}
| 0 | Kotlin | 2 | 0 | 8350f7e932e0d57496cf9ae2636c6fb8993f9aba | 293 | moneyapp-android-1 | Apache License 2.0 |
android/app/src/main/java/com/readdle/weather/core/SwiftContainer.kt | andriydruk | 257,407,824 | false | null | // Generated using JavaSwift codegen by Sourcery
// DO NOT EDIT
package com.readdle.weather.core;
import com.readdle.codegen.anotation.SwiftFunc
import com.readdle.codegen.anotation.SwiftReference
@SwiftReference
class SwiftContainer private constructor() {
// Swift JNI private native pointer
private val na... | 7 | null | 9 | 38 | 6c3c52d138fd345496ee55b662690b87660651a5 | 877 | swift-weather-app | MIT License |
app/src/main/java/com/lvp/autodownloader/ui/downloaddetails/components/CircularProgressPanel.kt | LuongPV | 770,756,923 | false | {"Kotlin": 398406} | package com.lvp.autodownloader.ui.downloaddetails.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.CircularProgressIndicat... | 0 | Kotlin | 0 | 0 | d61756b69755b0df324f7fd13c50aced46402c59 | 2,128 | AutoDownloader | Apache License 1.1 |
app/src/main/java/com/base/pokedex/presentation/screen/detail/PokemonDetailViewModel.kt | kose135 | 681,053,150 | false | null | package com.base.pokedex.presentation.screen.detail
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
import androi... | 0 | Kotlin | 0 | 0 | 1954e1a4b26879aa279c5553c82228a1af796b53 | 2,349 | Pokdex-AOS | Apache License 2.0 |
sample/src/main/kotlin/com/natura/android/sample/components/GaYaSwitchActivity.kt | natura-cosmeticos | 221,710,026 | false | {"Kotlin": 575664, "Shell": 8430, "Makefile": 1675, "Ruby": 1565} | package com.natura.android.sample.components
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Gravity
import android.widget.LinearLayout
import com.natura.android.sample.R
import com.natura.android.sample.databinding.ActivityGayaSwitchBinding
import com.natura.android.sample... | 3 | Kotlin | 13 | 51 | 918d9e8a4cce89cefa89b60dbdc0ae47c5a1b1c9 | 1,356 | natds-android | ISC License |
core-kotlin-modules/core-kotlin-datastructures/src/test/kotlin/com/baeldung/lexicographicalsort/LexicographicalSortUnitTest.kt | Baeldung | 260,481,121 | false | {"Kotlin": 1855665, "Java": 48276, "HTML": 4883, "Dockerfile": 292} | package com.baeldung.lexicographicalsort
import org.junit.Test
import kotlin.test.assertContentEquals
class LexicographicalSortUnitTest {
@Test
fun `sort using sortedWith() method`(){
val words = arrayOf("banana", "apple", "cherry", "date", "A", "Result", "Union")
val sortedWords = words.sort... | 14 | Kotlin | 294 | 465 | f1ef5d5ded3f7ddc647f1b6119f211068f704577 | 2,271 | kotlin-tutorials | MIT License |
model/src/main/java/com/workfort/pstuian/model/CheckInPrivacy.kt | arhanashik | 411,942,559 | false | {"Kotlin": 1131964} | package com.workfort.pstuian.model;
enum class CheckInPrivacy(val value: String) {
PUBLIC("public"),
ONLY_ME("only_me"), ;
companion object {
fun create(value: String) = entries.firstOrNull { it.value == value }
}
} | 0 | Kotlin | 0 | 2 | a5efa08fc1483df3c76067063d085c3a8ae24579 | 241 | PSTUian-android | Apache License 2.0 |
dotmimsync/src/main/java/com/mimetis/dotmim/sync/enumerations/SyncProvision.kt | vunder | 425,091,264 | false | {"Kotlin": 437345} | package com.mimetis.dotmim.sync.enumerations
import com.mimetis.dotmim.sync.data.EnumWithValue
/**
* Gets the objects we want to provision or deprovision
* Be careful, SyncProvision.Table, will (de)provision the data tables !
*/
enum class SyncProvision(override val value: Int) : EnumWithValue {
None(0),
T... | 0 | Kotlin | 2 | 0 | a6cc8f6ecc4ab4cf70dbf8e22eec6ec1b000ad6f | 465 | dotmimsync | MIT License |
app/src/main/java/com/np/hilt/practices/practical_4/di/CarComponent.kt | nirajphutane | 795,624,376 | false | {"Kotlin": 28446} | package com.np.hilt.practices.practical_4.di
import com.np.hilt.di.Scope
import com.np.hilt.di.Speed
import dagger.BindsInstance
import dagger.hilt.DefineComponent
import dagger.hilt.components.SingletonComponent
@DefineComponent(parent = SingletonComponent::class)
@Scope
interface CarComponent {
@DefineComponen... | 0 | Kotlin | 0 | 0 | cf6623dc2c29e80a3dd4c3a51fa67a6332184ec0 | 459 | Android-Hilt | MIT License |
app/src/main/java/com/ijs/abminder/learn/WebViewFragment.kt | ijscreate | 785,375,972 | false | {"Kotlin": 847753, "Roff": 59377, "AIDL": 765, "CSS": 156} | package com.ijs.abminder.learn
import android.annotation.SuppressLint
import android.os.Bundle
import android.transition.AutoTransition
import android.transition.TransitionManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import androidx.fra... | 0 | Kotlin | 0 | 1 | 7020977bcf785d1bb849b0385012bf222f3df70a | 2,801 | ABMinder | MIT License |
api/src/main/generated/com/okeicalm/simpleJournalEntry/infra/db/tables/JournalEntries.kt | ookura-mf | 442,171,593 | false | {"Kotlin": 60337} | /*
* This file is generated by jOOQ.
*/
package com.okeicalm.simpleJournalEntry.infra.db.tables
import com.okeicalm.simpleJournalEntry.infra.db.SimpleJournalEntryDb
import com.okeicalm.simpleJournalEntry.infra.db.indexes.JOURNAL_ENTRIES_FK_ACCOUNT
import com.okeicalm.simpleJournalEntry.infra.db.indexes.JOURNAL_ENTR... | 12 | Kotlin | 12 | 3 | a10846d78342e0b39d5cae2dfcc636afa75b6fd6 | 5,859 | simple_journal_entry | MIT License |
example/android/app/src/main/kotlin/com/example/flutter_locker_example/MainActivity.kt | infinum | 253,430,088 | false | {"Dart": 18148, "Kotlin": 14518, "Swift": 11005, "Ruby": 2265, "Objective-C": 38} | package com.example.flutter_locker_example
import io.flutter.embedding.android.FlutterFragmentActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterFragmentActivity() {
override fun configureFlutterEngine(flutterEngine: FlutterEngine... | 0 | Dart | 7 | 28 | 4cce2fca82670bf2f79a1eec255afcfb1d4f74f1 | 436 | flutter-plugins-locker | MIT License |
app/src/main/java/com/mxt/anitrend/receiver/SchedulerDelegate.kt | switchswap | 231,266,862 | true | {"Java": 1083710, "Kotlin": 405280} | package com.mxt.anitrend.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.mxt.anitrend.util.JobSchedulerUtil
import org.koin.android.ext.android.inject
import org.koin.core.KoinComponent
import org.koin.core.inject
/**
* Created by max on 2017... | 0 | Java | 0 | 0 | 4f3e7ea4e5e894755a0bc40de4a03386d346c222 | 707 | anitrend-app | MIT License |
ui/designsystem/src/main/kotlin/dev/teogor/ceres/ui/designsystem/tokens/DividerTokens.kt | teogor | 555,090,893 | false | {"Kotlin": 1325679} | /*
* Copyright 2023 teogor (<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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 2 | Kotlin | 4 | 62 | d7381c48a88dd5f887fb41e0ad13475a47589e87 | 856 | ceres | Apache License 2.0 |
cottontaildb-ui-backend/src/main/kotlin/org/vitrivr/cottontail/ui/model/dbo/DboType.kt | vitrivr | 160,775,368 | false | {"Kotlin": 2769415, "TypeScript": 98011, "Java": 97672, "HTML": 38965, "ANTLR": 23679, "CSS": 8582, "SCSS": 1690, "JavaScript": 1441, "Dockerfile": 548} | package org.vitrivr.cottontail.ui.model.dbo
import kotlinx.serialization.Serializable
/**
*
* @author <NAME>
* @version 1.0.0
*/
@Serializable
enum class DboType {
SCHEMA,
ENTITY,
COLUMN,
INDEX
} | 24 | Kotlin | 20 | 38 | bc4d0aa435aac78628fa7771dbf8333f1fe5a971 | 217 | cottontaildb | MIT License |
common/src/main/kotlin/com/oneliang/ktx/util/common/StringUtil.kt | tongxiaoyi | 290,750,599 | true | {"Java": 2338258, "Kotlin": 469547} | package com.oneliang.ktx.util.common
import com.oneliang.ktx.Constants
object StringUtil {
/**
* fill zero
* @param length
* @return String
*/
fun fillZero(length: Int): String {
val stringBuilder = StringBuilder()
for (i in 0 until length) {
stringBuilder.appe... | 0 | Java | 0 | 0 | 1604f634d7e84415714a928d0f3d26700f5cd83e | 403 | util-kotlin | Apache License 2.0 |
src/test/we/rashchenko/utils/RandomIdsTest.kt | dimitree54 | 395,058,303 | false | null | package we.rashchenko.utils
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
internal class RandomIdsTest {
@Test
fun testForSetProperties() {
val dataSize = 1000000
val data = mutableSetOf<Int>()
val ids = IDsGenerator()
repeat(dataSize) ... | 5 | Kotlin | 0 | 1 | 04c9f6eab98722e971194cd235bd84d35afd92b7 | 414 | ChNN-Library | MIT License |
src/test/kotlin/com/oxyggen/c4k/old/analyzer/HttpTargetAnalyzerTest.kt | oxgl | 182,864,291 | false | null | package com.oxyggen.c4k.old.analyzer
import com.oxyggen.c4k.target.HttpTarget
import kotlinx.coroutines.runBlocking
import org.junit.jupiter.api.Test
internal class HttpTargetAnalyzerTest {
@Test
fun `test handled class`() {
var ta = HttpTargetAnalyzer()
var x = HttpTargetAnalyzer().getHandle... | 0 | Kotlin | 0 | 0 | 27d54a4de7c4f53c760b82b20965da8996028ae0 | 464 | c4k | MIT License |
geary-prefabs/src/main/kotlin/com/mineinabyss/geary/prefabs/configuration/systems/ParseChildOnPrefab.kt | MineInAbyss | 306,093,350 | false | null | package com.mineinabyss.geary.prefabs.configuration.systems
import com.mineinabyss.geary.ecs.accessors.TargetScope
import com.mineinabyss.geary.ecs.accessors.building.get
import com.mineinabyss.geary.autoscan.AutoScan
import com.mineinabyss.geary.ecs.api.annotations.Handler
import com.mineinabyss.geary.ecs.api.engine.... | 20 | Kotlin | 9 | 16 | 6cae001ed4eb7803a921f772752d26f4e7a1d85d | 1,440 | Geary | MIT License |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/di/MoshiProvider.kt | aalzehla | 287,565,471 | false | null | /*
* Copyright 2019 New Vector 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | null | 1 | 1 | ee1d5faf0d59f9cc1c058d45fae3e811d97740fd | 3,628 | element-android | Apache License 2.0 |
src/main/kotlin/com/sergeysav/voxel/common/chunk/queuing/ChunkQueuingStrategy.kt | SergeySave | 260,611,748 | false | null | package com.sergeysav.voxel.common.chunk.queuing
import com.sergeysav.voxel.common.chunk.Chunk
/**
* @author sergeys
*/
interface ChunkQueuingStrategy<C : Chunk> {
fun currentSize(): Int
fun add(chunk: C)
fun remove(chunk: C)
fun tryGetNext(): C?
fun clear()
} | 0 | Kotlin | 0 | 0 | 446f91f11661f1b87e1fb7b2f533f9e24b45704e | 288 | Voxel | MIT License |
TIM-Android-lib/src/main/java/com/trifork/timandroid/biometric/BiometricAuthListener.kt | trifork | 399,110,548 | false | null | package com.trifork.timandroid.biometric
import androidx.biometric.BiometricPrompt
import com.trifork.timandroid.models.errors.TIMStorageError
interface BiometricAuthListener {
fun onBiometricAuthenticationSuccess(result: BiometricPrompt.AuthenticationResult)
fun onBiometricAuthenticationError(error: TIMStora... | 2 | Kotlin | 4 | 5 | 22074d6e471e49d6a0f35899c1edfb9924dbc8c5 | 359 | TIM-Android | MIT License |
FlypassMobile/app/src/main/java/co/com/flypass/flypassNative/core/RegexExpressions.kt | daniel199410 | 299,968,440 | false | null | package co.com.flypass.flypassNative.core
object RegexExpressions {
val LICENSE_PLATE = Regex("/(^[A-Z]{3}[0-9]{3})|(^[A-Z][0-9]{4}\$)|(^[A-Z]{2}[0-9]{3}\$)|(^[A-Z]{2}[0-9]{4})/")
} | 0 | Kotlin | 0 | 0 | db313f095f26eaebbc4ce91b36d1a58e453bae4c | 186 | androidConcepts | Apache License 2.0 |
composeApp/src/commonMain/kotlin/live/ditto/demo/kmp/Greeting.kt | getditto | 810,358,862 | false | {"Kotlin": 40109, "Ruby": 2357, "Just": 1109, "Swift": 609} | package live.ditto.demo.kmp
class Greeting(
private val dittoManager: Ditto,
) {
private val platform: Platform = getPlatform()
fun greet(): String {
return "Running on ${platform.name} \nlive.ditto.demo.kmp.Ditto ${dittoManager.version}"
}
}
| 0 | Kotlin | 0 | 2 | c4da0e4deeae0001fc7e63681e38c91f906a13d6 | 269 | demoapp-kmp | ISC License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.