file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
sample/src/main/java/com/tabesto/printer/sample/PrinterItem.kt
unknown_repo
kotlin
package com.tabesto.printer.sample import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.widget.doAfterTextChanged import androidx.recyclerview.widget.RecyclerView import com.mikepenz.fastadapter.FastAdapter import com.mikepenz.fastadapter.binding.AbstractBindin...
app/src/main/java/io/chipotie/gifinder/model/OriginalGif.kt
unknown_repo
kotlin
package io.chipotie.gifinder.model import android.os.Parcelable import com.google.gson.annotations.SerializedName import kotlinx.android.parcel.Parcelize /* * @author savirdev on 26/03/19 */ @Parcelize data class OriginalGif( @SerializedName("url") val url : String ) : Parcelable
app/src/main/java/io/horizontalsystems/bankwallet/modules/walletconnect/scanqr/WalletConnectScanQrViewModel.kt
unknown_repo
kotlin
package io.horizontalsystems.bankwallet.modules.walletconnect.scanqr import androidx.lifecycle.ViewModel import io.horizontalsystems.bankwallet.modules.walletconnect.WalletConnectService import io.horizontalsystems.core.SingleLiveEvent class WalletConnectScanQrViewModel(private val service: WalletConnectService) : Vi...
app/src/main/java/ru/lozenko/kotlincompiletimereflection/ManualSettingsRealization.kt
unknown_repo
kotlin
package ru.lozenko.kotlincompiletimereflection import android.content.Context /** * Created by <NAME> * * */ class ManualSettingsRealization(context: Context){ private val sharedPreferences = context.getSharedPreferences("MANUAL_SETTINGS", Context.MODE_PRIVATE) var setting1: Boolean get() = sharedP...
network_scanner/app/src/main/java/com/example/scrima/ui/ProfileFragment.kt
unknown_repo
kotlin
package com.example.scrima.ui import android.content.Context import android.content.Intent import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.EditText import android....
presentation/src/main/java/com/phelat/splash/presentation/photolist/viewmodel/PhotoListViewModel.kt
unknown_repo
kotlin
package com.phelat.splash.presentation.photolist.viewmodel import android.arch.lifecycle.LiveData import android.arch.lifecycle.MutableLiveData import com.phelat.splash.data.entity.PhotoEntity import com.phelat.splash.presentation.viewmodel.SplashViewModel class PhotoListViewModel : SplashViewModel<MutableList<PhotoE...
Application/app/src/main/java/com/demo/code/manualencoding/StudentInfo.kt
unknown_repo
kotlin
package com.demo.code.manualencoding import android.os.Build import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable import kotlinx.serialization.Transient import kotlinx.serialization.json.Json @Serializable data class StudentInfo( @SerialName("name") val studentName: String, @S...
app/src/main/java/org/simple/clinic/feature/Feature.kt
unknown_repo
kotlin
package org.simple.clinic.feature import android.os.Build enum class Feature( val enabledByDefault: Boolean, val remoteConfigKey: String = "" ) { EditBloodSugar(true), NotifyAppUpdateAvailable(false, "appupdate_enabled"), DeletePatient(true, "delete_patient_feature_enabled"), SecureCalling(false, "pho...
native/android/app/src/main/java/work/calmato/prestopay/database/DatabaseFriend.kt
unknown_repo
kotlin
package work.calmato.prestopay.database import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.TypeConverter import com.google.gson.Gson import com.google.gson.reflect.TypeToken import work.calmato.prestopay.network.* @Entity data class DatabaseFriend constructor( @PrimaryKey val id: St...
stripe/src/test/java/com/stripe/android/FingerprintDataRepositoryTest.kt
unknown_repo
kotlin
package com.stripe.android import android.content.Context import androidx.test.core.app.ApplicationProvider import com.google.common.truth.Truth.assertThat import java.util.UUID import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner @RunWith(RobolectricTestRunner::class) cl...
app/src/main/kotlin/cn/govast/vmusic/ui/fragment/LoginCodeFragment.kt
unknown_repo
kotlin
/* * Copyright 2022 <NAME> <EMAIL> * * 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 ...
app/src/main/java/com/example/android_study/android/ipc/IPCMainActivity.kt
unknown_repo
kotlin
package com.example.android_study.android.ipc import android.os.Bundle import com.example.android_study.R import com.example.android_study._base.BaseActivity import com.example.android_study._base.adapter.Entry import com.example.android_study.android.ipc.binder.IPCAIDLActivity import com.example.android_study.android...
app/src/main/java/com/puutaro/commandclick/fragment_lib/command_index_fragment/list_view_lib/filter/TextChangedListenerAdder.kt
unknown_repo
kotlin
package com.puutaro.commandclick.fragment_lib.command_index_fragment.list_view_lib.filter import android.text.Editable import android.text.InputFilter import android.text.TextWatcher import android.widget.ArrayAdapter import androidx.fragment.app.activityViewModels import com.puutaro.commandclick.common.variable.ReadL...
app/src/main/kotlin/com/xiaocydx/sample/viewpager2/shared/FooCategoryViewModel.kt
unknown_repo
kotlin
package com.xiaocydx.sample.viewpager2.shared import androidx.lifecycle.ViewModel import com.xiaocydx.accompanist.viewmodel.RetainedViewModels import com.xiaocydx.accompanist.viewmodel.getOrPut import com.xiaocydx.sample.common.FooListViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines....
app/src/main/java/com/example/liziweather/ui/weather/WeatherViewModel.kt
unknown_repo
kotlin
package com.example.liziweather.ui.weather import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Transformations import androidx.lifecycle.ViewModel import com.example.liziweather.logic.Repository import com.example.liziweather.logic.model.Location import java.security.KeyStore.LoadStoreParameter import ...
theme-m3/schedules/schedules-feature/src/main/kotlin/org/gdglille/devfest/android/theme/m3/schedules/feature/ScheduleListOrientable.kt
unknown_repo
kotlin
package org.gdglille.devfest.android.theme.m3.schedules.feature import android.content.res.Configuration import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.pager.HorizontalPager import androidx.compose.foundation.pager.P...
module/notification/src/main/java/me/pxq/eyepetizer/notification/ui/PrivateFragment.kt
unknown_repo
kotlin
package me.pxq.eyepetizer.notification.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import me.pxq.common.R import me.pxq.common.ui.BaseFragment /** * Description: 通知-互动Fragment * Author : pxq * Date : 2020/8/23 4:31 PM */ class InteractFragm...
app/src/main/java/me/capcom/smsgateway/modules/messages/MessagesService.kt
unknown_repo
kotlin
package me.capcom.smsgateway.modules.messages import android.Manifest import android.app.Activity import android.app.PendingIntent import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Build import android.telephony.SmsManager imp...
library/src/main/java/com/github/pelmenstar1/rangecalendar/CompatDateFormatter.kt
unknown_repo
kotlin
package com.github.pelmenstar1.rangecalendar import android.content.Context import android.os.Build import com.github.pelmenstar1.rangecalendar.utils.getLocaleCompat import java.text.FieldPosition import java.text.SimpleDateFormat import java.util.Date import java.util.Locale internal class CompatDateFormatter(contex...
app/src/androidTest/java/com/petrulak/cleankotlin/ui/example2/Example2ActivityTest.kt
unknown_repo
kotlin
package com.petrulak.cleankotlin.ui.example2 import android.content.Intent import android.support.test.InstrumentationRegistry import android.support.test.espresso.Espresso.onView import android.support.test.espresso.assertion.ViewAssertions.matches import android.support.test.espresso.matcher.ViewMatchers.withId impo...
app/src/main/java/com/bura/kotlinnotes/NoteDatabase.kt
unknown_repo
kotlin
package com.bura.kotlinnotes import android.content.Context import androidx.lifecycle.LifecycleCoroutineScope import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import ...
app/src/main/java/com/example/benne/daisyapp2/playback/DaisyPlaybackPreparer.kt
unknown_repo
kotlin
package com.example.benne.daisyapp2.playback import android.net.Uri import android.os.Bundle import android.os.ResultReceiver import android.support.v4.media.MediaBrowserCompat import android.support.v4.media.MediaMetadataCompat import android.support.v4.media.session.PlaybackStateCompat import android.util.Log import...
app/src/main/java/cash/z/ecc/android/ui/send/AutoShieldViewModel.kt
unknown_repo
kotlin
package cash.z.ecc.android.ui.send import androidx.lifecycle.ViewModel import cash.z.ecc.android.di.DependenciesHolder import cash.z.ecc.android.ext.Const import cash.z.ecc.android.lockbox.LockBox import cash.z.ecc.android.sdk.Synchronizer import cash.z.ecc.android.sdk.ext.ZcashSdk import cash.z.ecc.android.sdk.ext.co...
messaginginapp/src/test/java/io/customer/messaginginapp/testutils/extension/GistExtensions.kt
unknown_repo
kotlin
package io.customer.messaginginapp.testutils.extension import android.util.Base64 import com.google.gson.JsonParser import io.customer.commontest.extensions.random import io.customer.messaginginapp.gist.data.model.Message import io.customer.messaginginapp.type.InAppMessage import io.customer.messaginginapp.type.getMes...
client/src/main/java/org/phoenixframework/liveview/ui/modifiers/Actions.kt
unknown_repo
kotlin
package org.phoenixframework.liveview.ui.modifiers import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.clickable import androidx.compose.foundation.combinedClickable import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.selection.toggleab...
iteration8/music-matters/mobile/src/main/java/com/odesa/musicMatters/di/MobileDiModule.kt
unknown_repo
kotlin
package com.odesa.musicMatters.di import android.content.Context import com.odesa.musicMatters.core.common.di.CommonDiModule import com.odesa.musicMatters.core.data.di.DataDiModule class MobileDiModule( context: Context ) { private val dataDiModule = DataDiModule( context ) private val commonDiModule = Common...
sample/shared/src/commonMain/kotlin/App.kt
unknown_repo
kotlin
import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.material3.Button import androidx.compose.m...
AnylineExamples/app/src/main/java/com/anyline/examples/ScanActivity.kt
unknown_repo
kotlin
package com.anyline.examples import android.content.Context import android.content.Intent import android.os.Bundle import android.view.MenuItem import android.view.View import android.widget.Toast import androidx.appcompat.app.AlertDialog import androidx.appcompat.app.AppCompatActivity import com.anyline.examples.data...
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/compat/quirk/DeviceQuirksLoader.kt
unknown_repo
kotlin
/* * Copyright 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
client/app/src/main/java/com/hao/heji/ui/calendar/CalendarNoteFragment.kt
unknown_repo
kotlin
package com.hao.heji.ui.calendar import android.content.Context import android.view.View import androidx.lifecycle.ViewModelProvider import androidx.navigation.Navigation import androidx.recyclerview.widget.LinearLayoutManager import com.blankj.utilcode.util.LogUtils import com.chad.library.adapter.base.entity.node.Ba...
app/src/main/java/com/greedygame/musicwiki/presentation_mw/viewmodels/ViewModelAlbumDF.kt
unknown_repo
kotlin
package com.greedygame.musicwiki.presentation_mw.viewmodels import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.greedygame.musicwiki.data_mw.api_retrofit.ApiClient import com.greedygame.musicwiki.data_mw.mo...
capture/android/PressurePulsationsRecorder/src/main/java/com/avyss/ppr/acquisition/PressureCollectingListener.kt
unknown_repo
kotlin
package com.avyss.ppr.acquisition import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import com.avyss.ppr.data.NamedExportableData import com.avyss.ppr.data.NamedExportableValuesLine import com.avyss.ppr.data.RateAccommodatingSampleCollector class PressureCo...
app/src/main/java/io/github/hunachi/appointment/ui/profile/ProfileFragment.kt
unknown_repo
kotlin
package io.github.hunachi.appointment.ui.profile import androidx.lifecycle.ViewModelProviders import android.os.Bundle import android.view.* import androidx.fragment.app.Fragment import io.github.hunachi.appointment.MyPreference import io.github.hunachi.appointment.R import io.github.hunachi.appointment.data.User imp...
app/src/main/java/com/holiday/data/local/type_converters/ArrayListConverter.kt
unknown_repo
kotlin
package com.holiday.data.local.type_converters import androidx.room.TypeConverter import com.google.gson.Gson import com.google.gson.reflect.TypeToken import java.lang.reflect.Type class ArrayListConverter { @TypeConverter fun fromStringArrayList(value: List<String>? = null): String { value?.let { ...
android/src/main/java/com/reactnativepedometer/StepCounterRecord.kt
unknown_repo
kotlin
package com.mareksaktor.reactnativestepcounteriosandroid import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import android.util.Log import android.os.SystemClock import com.facebook.react.bridge.Arguments import com.face...
feature/main/src/main/java/com/t8rin/imagetoolboxlite/feature/main/presentation/components/PickFontFamilySheet.kt
unknown_repo
kotlin
/* * ImageToolbox is an image editor for android * Copyright (c) 2024 T8RIN (Malik Mukhametzyanov) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * dist...
PhoneApp/Conduit/app/src/main/java/ca/uwaterloo/fydp/conduit/LogDumpActivity.kt
unknown_repo
kotlin
package ca.uwaterloo.fydp.conduit import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.widget.TextView import java.io.BufferedReader import java.io.IOException import java.io.InputStreamReader class LogDumpActivity : AppCompatActivity() { override fun onCreate(savedInstanceSta...
packages/expo-image/android/src/main/java/expo/modules/image/thumbhash/ThumbhashDecoder.kt
unknown_repo
kotlin
package expo.modules.image.thumbhash import android.graphics.Bitmap import android.graphics.Color // ThumbHash Java implementation (converted to kotlin) thanks to @evanw https://github.com/evanw/thumbhash object ThumbhashDecoder { /** * Encodes an RGBA image to a ThumbHash. RGB should not be premultiplied by A. ...
common/src/commonMain/kotlin/io/github/irack/stonemanager/interface/ui/style/AdvancedTextShape.kt
unknown_repo
kotlin
package io.github.irack.stonemanager.`interface`.ui.style import androidx.compose.animation.core.* import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.material3.LocalTextStyle import androidx.compose.material3.Text import androidx.compose.runtime.* import a...
app/src/main/java/io/stanwood/mhwdb/glide/GlideAppFactory.kt
unknown_repo
kotlin
package io.stanwood.mhwdb.glide import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment interface GlideAppFactory { fun get(): GlideRequests } class GlideAppFragmentFactory(private val fragment: Fragment) : GlideAppFactory { override fun get() = GlideApp.with(fragment) } class ...
app/src/main/java/com/concordium/wallet/ui/passphrase/setup/PassPhraseBaseFragment.kt
unknown_repo
kotlin
package com.concordium.wallet.ui.passphrase.setup import android.content.Context import androidx.fragment.app.Fragment import com.concordium.wallet.ui.passphrase.setup.PassPhraseViewModel.Companion.PASS_PHRASE_DATA abstract class PassPhraseBaseFragment : Fragment() { protected lateinit var viewModel: PassPhraseVi...
solar/src/main/java/com/chiksmedina/solar/outline/arrowsaction/UndoLeft.kt
unknown_repo
kotlin
package com.chiksmedina.solar.outline.arrowsaction import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Comp...
feature/src/main/kotlin/de/scout/fireplace/feature/models/Expose.kt
unknown_repo
kotlin
package de.scout.fireplace.feature.models import android.support.annotation.Keep import android.view.View import java.lang.StringBuilder @Keep data class Expose( val id: String, val pictures: List<Picture>, val address: Address, val isProject: Boolean, val isPrivate: Boolean, val listingType: ...
features/finances/impl/src/main/kotlin/br/com/mob1st/features/finances/impl/ui/category/detail/CategoryDetailConsumables.kt
unknown_repo
kotlin
package br.com.mob1st.features.finances.impl.ui.category.detail import androidx.compose.runtime.Immutable import arrow.optics.optics import br.com.mob1st.core.design.atoms.properties.texts.LocalizedText import br.com.mob1st.core.design.organisms.snack.SnackbarState import br.com.mob1st.core.kotlinx.checks.checkIs impo...
app/src/main/java/com/google/norinori6791/cycledo/MainActivity.kt
unknown_repo
kotlin
package com.google.norinori6791.cycledo import android.os.Bundle import com.google.android.material.snackbar.Snackbar import androidx.navigation.findNavController import androidx.navigation.ui.AppBarConfiguration import androidx.navigation.ui.navigateUp import androidx.navigation.ui.setupActionBarWithNavController imp...
BineClient/App/BineClient/app/src/main/java/com/microsoft/mobile/polymer/mishtu/utils/NotificationActionHandler.kt
unknown_repo
kotlin
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. package com.microsoft.mobile.polymer.mishtu.utils import android.app.Activity import android.app.NotificationManager import android.content.Context import android.content.Intent import android.os.Handler import android.os.Looper import android...
src/main/kotlin/com/p4ddy/paddycrm/plugins/gui/compose/contact/ContactListView.kt
unknown_repo
kotlin
package com.p4ddy.paddycrm.plugins.gui.compose.contact import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.material.Button import androidx.compose...
app/src/main/java/com/example/housemaster/SignUpSuccessFragment.kt
unknown_repo
kotlin
package com.example.housemaster import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import com.example.housemaster.databinding.FragmentSignupSuccessBinding import com.google.android...
app/src/main/java/com/jarvislin/drugstores/base/App.kt
unknown_repo
kotlin
package com.jarvislin.drugstores.base import android.annotation.SuppressLint import android.app.Application import com.facebook.stetho.Stetho import com.jarvislin.drugstores.BuildConfig import com.jarvislin.drugstores.module.* import com.orhanobut.logger.AndroidLogAdapter import com.orhanobut.logger.Logger import com....
app/src/debug/java/com/burrowsapps/gif/search/DebugApplication.kt
unknown_repo
kotlin
package com.burrowsapps.gif.search import android.os.StrictMode import timber.log.Timber import timber.log.Timber.DebugTree class DebugApplication : MainApplication() { override fun onCreate() { super.onCreate() Timber.plant(DebugTree()) StrictMode.setThreadPolicy( StrictMode.ThreadPolicy.Builde...
DocumentScanner/src/main/java/com/zynksoftware/documentscanner/common/extensions/ViewExtensions.kt
unknown_repo
kotlin
/** Copyright 2020 ZynkSoftware SRL Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publis...
CoronaKorea/app/src/main/java/com/mtjin/coronakorea/data/city/source/local/CityDao.kt
unknown_repo
kotlin
package com.mtjin.coronakorea.data.city.source.local import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import com.mtjin.coronakorea.data.city.Korea @Dao interface CityDao { @Insert(onConflict = OnConflictStrategy.REPLACE) fun insertKorea(ko...
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt
unknown_repo
kotlin
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/techpaliyal/androidkotlinmvvm/ui/view_model/MultiSelectListingActivityViewModel.kt
unknown_repo
kotlin
package com.techpaliyal.androidkotlinmvvm.ui.view_model import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.techpaliyal.androidkotlinmvvm.model.MultiSelectModel /** * @author <NAME> * <EMAIL> * https://techpaliyal.com * https://yogeshpaliyal.com * Created Date : 9 January 20...
kotlin_arch/src/main/java/com/czq/kotlin_arch/common/util/AssetUtil.kt
unknown_repo
kotlin
package com.czq.kotlin_arch.common.util import android.content.Context import java.io.BufferedReader import java.io.IOException import java.io.InputStream import java.io.InputStreamReader class AssetUtil { companion object { fun getStringFromFile(context: Context, fileName: String): String? { va...
app/src/main/java/com/davion/github/paging/UserRepository.kt
unknown_repo
kotlin
package com.davion.github.paging import android.util.Log import androidx.paging.Pager import androidx.paging.PagingConfig import androidx.paging.PagingData import com.davion.github.paging.network.GithubApiService import com.davion.github.paging.model.Repo import com.davion.github.paging.model.User import com.davion.gi...
common/presentation/src/main/java/currencyconverter/common/presentation/ui/custom/FontCache.kt
unknown_repo
kotlin
package tracker.common.presentation.custom import android.annotation.SuppressLint import android.content.Context import android.graphics.Typeface import android.util.Log import androidx.core.content.res.ResourcesCompat import tracker.common.presentation.R import java.util.* object FontCache { @SuppressLint("Use...
jetpack-bindings-sample/src/main/kotlin/com/github/vmironov/jetpack/sample/SampleFragment.kt
unknown_repo
kotlin
package com.github.vmironov.jetpack.sample import android.app.Fragment import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.util.TypedValue import android.view.* import com.github.vmironov.jetpack.preferences.bindOptionalPreference import com.github.vmironov.jetpack.resources.bindReso...
src/main/java/com/github/udioshi85/tooly/extentions/PackageManager.kt
unknown_repo
kotlin
package com.github.udioshi85.tooly.extentions import android.content.Context import android.content.pm.PackageManager import java.util.concurrent.TimeUnit fun PackageManager.installTimeInDays(context: Context): Long = TimeUnit.MILLISECONDS.toDays(System.currentTimeMillis() - getPackageInfo(context.packageName, 0).fir...
app/src/main/java/com/mystic/koffee/petreport/features/reportsScreen/adapter/ReportsScreenViewHolder.kt
unknown_repo
kotlin
package com.mystic.koffee.petreport.features.reportsScreen.adapter import android.content.Context import android.content.res.ColorStateList import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.mystic.koffee.petreport.R import com.mystic.koffee.pet...
app/src/main/java/com/persadaditya/app/ui/launch/movie/MovieNavigator.kt
unknown_repo
kotlin
package com.persadaditya.app.ui.launch.movie import android.app.Activity import android.content.Context interface MovieNavigator { fun activity(): Activity fun context(): Context }
app/src/main/java/com/example/deamhome/presentation/main/ScreenType.kt
unknown_repo
kotlin
package com.example.deamhome.presentation.main import androidx.annotation.IdRes import com.example.deamhome.R sealed class ScreenType(val tag: String, val isChangeBottomTab: Boolean) { sealed class ChangeScreenType(tag: String) : ScreenType(tag, true) { data object Home : ChangeScreenType("HOME") ...
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/TextFontSize.kt
unknown_repo
kotlin
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.TextFontSize: ImageVector get() { if (_textFontSize != null...
app/common/src/commonJvmMain/kotlin/com/denchic45/studiversity/ui/coursework/yourSubmission/YourSubmissionComponent.kt
unknown_repo
kotlin
package com.denchic45.studiversity.ui.coursework.yourSubmission import com.arkivanov.decompose.ComponentContext import com.arkivanov.decompose.childContext import com.denchic45.studiversity.api.course.element.model.AttachmentRequest import com.denchic45.studiversity.api.course.element.model.CreateFileRequest import co...
app/common/src/commonJvmMain/kotlin/com/denchic45/studiversity/ui/coursework/yourSubmission/YourSubmissionComponent.kt
unknown_repo
kotlin
package com.denchic45.studiversity.ui.coursework.yourSubmission import com.arkivanov.decompose.ComponentContext import com.arkivanov.decompose.childContext import com.denchic45.studiversity.api.course.element.model.AttachmentRequest import com.denchic45.studiversity.api.course.element.model.CreateFileRequest import co...
saved-sites/saved-sites-store/src/main/java/com/duckduckgo/savedsites/store/SavedSitesRelationsDao.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 DuckDuckGo * * 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 ...
simplified-analytics-api/src/main/java/org/nypl/simplified/analytics/api/AnalyticsConfiguration.kt
unknown_repo
kotlin
package org.nypl.simplified.analytics.api import android.content.Context import org.librarysimplified.http.api.LSHTTPClientType /** * General configuration for analytics systems. */ data class AnalyticsConfiguration( /** * An Android context, used by systems if necessary. */ val context: Context, /*...
viewlegacyTests/src/androidMain/kotlin/tech/skot/view/tests/SKTestScreenViewProxy.kt
unknown_repo
kotlin
package tech.skot.view.tests import android.view.LayoutInflater import android.view.ViewGroup import android.widget.LinearLayout import androidx.fragment.app.Fragment import tech.skot.core.components.* import tech.skot.core.components.presented.SKBottomSheetViewProxy import tech.skot.core.components.presented.SKDialog...
app/src/main/java/com/herry/test/app/main/MainFragment.kt
unknown_repo
kotlin
package com.herry.test.app.main import android.Manifest import android.app.Activity import android.content.Context import android.content.Intent import android.graphics.BitmapFactory import android.graphics.drawable.BitmapDrawable import android.os.Bundle import android.os.Handler import android.os.Looper import andro...
src/main/kotlin/io/github/gaming32/worldhostserver/proxyServer.kt
unknown_repo
kotlin
package io.github.gaming32.worldhostserver import io.github.gaming32.worldhostserver.ConnectionId.Companion.toConnectionId import io.github.gaming32.worldhostserver.util.cast import io.github.oshai.KotlinLogging import io.ktor.network.selector.* import io.ktor.network.sockets.* import io.ktor.util.network.* import io....
main/src/androidTest/java/de/janniskilian/basket/BaseUiTest.kt
unknown_repo
kotlin
package de.janniskilian.basket import androidx.annotation.StringRes import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onNodeWithContentDescription import androidx.compose.ui.test.onNodeWithText import androidx.compose.ui.test.performClick import androidx.compose.ui.test.pe...
app/src/test/java/com/takusemba/jethub/viewmodel/SearchReposViewModelTest.kt
unknown_repo
kotlin
package com.takusemba.jethub.viewmodel import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.Observer import com.takusemba.jethub.model.Repository import com.takusemba.jethub.repository.SearchReposRepository import com.takusemba.jethub.util.createRepository import io.mockk.MockKA...
ui-details/src/main/java/com/nikitin/ui_details/DetailsFeatureFragment.kt
unknown_repo
kotlin
package com.nikitin.ui_details import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import com.nikitin.base.BaseFeatureFragment import com.nikitin.ui_components.navigation.models.DetailsFeatureNavArgs import com.nikit...
app/src/main/java/com/example/medlemma/View/DialogMyMemberships.kt
unknown_repo
kotlin
package com.example.medlemma.View import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.foundation.text.BasicTextField import androidx.compose.foundation.text...
app/src/main/java/com/example/chuculture/Utils.kt
unknown_repo
kotlin
package com.example.chuculture import android.animation.Animator import android.animation.TimeInterpolator import android.animation.ValueAnimator import android.graphics.Bitmap import android.graphics.drawable.Drawable import android.view.ViewGroup import android.view.animation.AccelerateDecelerateInterpolator import ...
app/src/main/java/io/github/fate_grand_automata/ui/onboarding/OnboardingScreen.kt
unknown_repo
kotlin
package io.github.fate_grand_automata.ui.onboarding import androidx.compose.animation.core.Spring import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation.core.spring import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.com...
app/src/main/java/com/takusemba/jethub/database/entity/RepositoryEntity.kt
unknown_repo
kotlin
package com.takusemba.jethub.database.entity import androidx.room.Entity import androidx.room.PrimaryKey /** * Repository Entity */ @Entity(tableName = "repository") class RepositoryEntity( @PrimaryKey var id: Int, var name: String, var owner: String )
app/src/main/kotlin/cz/lsrom/webviewtest/qr/ui/QrScannerActivity.kt
unknown_repo
kotlin
package ak.singh.webviewtest.qr.ui import android.Manifest import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.core.view.isVisib...
composeApp/src/commonMain/kotlin/com/mmartosdev/photofx/ui/playground/PlaygroundViewModel.kt
unknown_repo
kotlin
package com.mmartosdev.photofx.ui.playground import androidx.lifecycle.ViewModel import com.mmartosdev.photofx.ui.EffectConfig import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.update class PlaygroundViewM...
app/src/main/java/com/b_lam/resplash/ui/photo/detail/PhotoDetailViewModel.kt
unknown_repo
kotlin
package com.b_lam.resplash.ui.photo.detail import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.liveData import androidx.lifecycle.viewModelScope import com.b_lam.resplash.data.collection.model.Collection import com.b_lam.resplash.data.photo.model.Photo import com.b_la...
app/src/main/java/com/mux/video/vod/demo/upload/viewmodel/CreateUploadViewModel.kt
unknown_repo
kotlin
package com.mux.video.vod.demo.upload.viewmodel import android.app.Application import android.database.Cursor import android.graphics.Bitmap import android.media.MediaMetadataRetriever import android.net.Uri import android.os.Build import android.provider.MediaStore import android.util.Log import androidx.lifecycle.An...
module_setting/src/main/kotlin/life/chenshi/keepaccounts/module/setting/vm/EditAssetsAccountViewModel.kt
unknown_repo
kotlin
package life.chenshi.keepaccounts.module.setting.vm import androidx.databinding.ObservableBoolean import androidx.databinding.ObservableField import androidx.databinding.ObservableLong import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel ...
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/CircleArrowUpLeft.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.tabler.tabler.filled 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.S...
app/src/main/java/com/example/lemonade/MainActivity.kt
unknown_repo
kotlin
package com.example.lemonade import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrang...
syft/src/test/java/org/openmined/syft/unit/monitor/battery/RobolectricBatteryDataSource.kt
unknown_repo
kotlin
package fl.wearable.autosport.unit.monitor.battery import android.content.Context import android.content.Intent import android.os.BatteryManager import com.nhaarman.mockitokotlin2.any import com.nhaarman.mockitokotlin2.eq import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.notNull import io.reac...
app/src/main/java/com/magicfluids/MyGLSurfaceView2.kt
unknown_repo
kotlin
package com.magicfluids import android.content.* import android.graphics.* import android.opengl.* import android.util.* import android.view.* import com.fluidsimulation.App.Companion.app import com.fluidsimulation.ext.* import com.fluidsimulation.helper.* import com.fluidsimulation.model.* import kotlinx.coroutines.*...
app/src/main/java/com/example/reservations/ui/screens/ClientSelectionScreen.kt
unknown_repo
kotlin
package com.example.reservations.ui.screens import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import ...
pluto-no-op/src/main/java/com/mocklets/pluto/modules/exceptions/ANRException.kt
unknown_repo
kotlin
package com.mocklets.pluto.modules.exceptions import androidx.annotation.Keep @Keep class ANRException(thread: Thread) : Exception("ANR detected in Pluto-No-Op") { val threadStateMap: String init { stackTrace = thread.stackTrace threadStateMap = "" } }
generators/app/templates/presentation/src/main/java/com/kristal/generator/presentation/view/activity/HomeActivity.kt
unknown_repo
kotlin
package <%= appPackage %>.presentation.view.activity import android.content.Context import android.content.Intent import android.os.Bundle import <%= appPackage %>.presentation.example.recyclerview.view.fragment.RecyclerViewFragment import <%= appPackage %>.presentation.view.activity.base.BaseActivity class HomeActi...
app/src/main/java/eu/kanade/presentation/category/MangaCategoryScreen.kt
unknown_repo
kotlin
package eu.kanade.presentation.category import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListState import android...
app/src/main/java/ru/igla/duocamera/ui/widgets/AboutDialog.kt
unknown_repo
kotlin
package ru.igla.duocamera.ui.widgets import android.app.Dialog import android.os.Build import android.os.Bundle import android.text.Html import android.text.Spanned import androidx.annotation.Nullable import androidx.appcompat.app.AlertDialog import androidx.fragment.app.DialogFragment import androidx.fragment.app.Fra...
tapi/src/main/java/inc/brody/tapi/TApi.kt
unknown_repo
kotlin
package inc.brody.tapi import android.content.Context import android.util.Log import inc.brody.tapi.data.State import inc.brody.tapi.data.appdata.TConstants import inc.brody.tapi.requests.TCheckAuthenticationCode import inc.brody.tapi.requests.TCheckAuthenticationPassword import inc.brody.tapi.requests.TGetCurrentStat...
libraries/data/src/main/java/com/zizohanto/android/currencyconverter/data/repository/ConverterRepositoryImpl.kt
unknown_repo
kotlin
package com.zizohanto.android.currencyconverter.data.repository import com.zizohanto.android.currencyconverter.data.contract.cache.ConverterCache import com.zizohanto.android.currencyconverter.data.contract.remote.ConverterRemote import com.zizohanto.android.currencyconverter.data.models.HistoricalDataEntity import co...
photopicker/src/main/java/com/github/basshelal/unsplashpicker/presentation/PhotoShowFragment.kt
unknown_repo
kotlin
@file:Suppress("RedundantVisibilityModifier", "MemberVisibilityCanBePrivate", "NOTHING_TO_INLINE") package com.github.basshelal.unsplashpicker.presentation import android.content.Intent import android.net.Uri import android.os.Bundle import android.text.SpannableStringBuilder import android.text.Spanned import androi...
library/src/main/java/ru/yandex/money/android/sdk/impl/paymentOptionList/PaymentOptionListPresenter.kt
unknown_repo
kotlin
/* * The MIT License (MIT) * Copyright © 2018 NBCO Yandex.Money LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the “Software”), to deal in the Software without restriction, including * without limitation the rights to use...
app/src/main/java/com/srilakshmikanthanp/clipbirdroid/ui/gui/Clipbird.kt
unknown_repo
kotlin
package com.srilakshmikanthanp.clipbirdroid.ui.gui import androidx.compose.material3.DrawerValue import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.rememberDrawerState import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.r...
app/app/src/main/java/com/ingjuanocampo/enfila/android/home/ActivityLobby.kt
unknown_repo
kotlin
package com.ingjuanocampo.enfila.android.home import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.Toolbar import androidx.navigation.NavController import androidx.navigation.findNavController import androidx.navigation.ui.AppBarConfiguration import androidx.navigat...
app/src/main/kotlin/by/anegin/vkdiscover/core/util/FragmentEx.kt
unknown_repo
kotlin
package by.anegin.vkdiscover.core.util import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.ViewModelProviders inline fun <reified T : ViewModel> Fragment.getViewModel(viewModelFactory: ViewModelProvider.Factory): T { return V...
teqanydb/src/main/java/com/teqanyco/teqanydb/PasswordFiled.kt
unknown_repo
kotlin
package com.teqanyco.teqanyjetpack.textfield import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material.Icon import androidx.compose.material.IconButton import androidx.compose.material.OutlinedTextField import androidx.compose.material.Text import androidx.compose.runtime.Composable impo...
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/CirclePhoneFlip.kt
unknown_repo
kotlin
package me.localx.icons.straight.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 i...