file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/com/wavesplatform/wallet/v2/injection/module/ApplicationModule.kt
unknown_repo
kotlin
/* * Created by <NAME> on 1/4/2019 * Copyright © 2019 Waves Platform. All rights reserved. */ package com.wavesplatform.wallet.v2.injection.module import android.content.Context import com.wavesplatform.wallet.App import com.wavesplatform.wallet.v2.injection.qualifier.ApplicationContext import dagger.Binds import ...
core/ui/components/src/main/kotlin/top/chengdongqing/weui/core/ui/components/swiper/Swiper.kt
unknown_repo
kotlin
package top.chengdongqing.weui.core.ui.components.swiper import androidx.compose.animation.core.animateDpAsState import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.BoxScope import androidx.compose.foundation.layout.PaddingValues import ...
app/src/main/java/link/download/ru/contact.kt
unknown_repo
kotlin
package link.download.ru import android.annotation.SuppressLint import android.content.Intent import android.os.Bundle import android.provider.ContactsContract import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.LinearLayoutManager import com.google.firebase.database.DataSnapshot import...
bindk_test/src/main/java/com/mozhimen/bindk/test/MainActivity.kt
unknown_repo
kotlin
package com.mozhimen.bindk.test import android.os.Bundle import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import com.mozhimen.bindk.bases.viewbinding.activity.BaseActivityVB import com.mozhimen.bi...
app/src/main/java/com/niyaj/popos/features/product/presentation/details/ProductDetailsViewModel.kt
unknown_repo
kotlin
package com.niyaj.popos.features.product.presentation.details import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.niyaj.popos.features.cart_order.domain.util.CartOrderType import com.niyaj.popos.features.common.util.Resource import com.niya...
app/src/main/java/ru/vlarkin/translatekeyboardapp/MainActivity.kt
unknown_repo
kotlin
package ru.vlarkin.translatekeyboardapp import android.content.ClipData import android.content.ClipboardManager import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.Editable import android.text.TextWatcher import android.util.Log import android.wid...
app/src/main/java/com/zigis/paleontologas/main/views/MainMenuView.kt
unknown_repo
kotlin
package com.zigis.paleontologas.main.views import android.content.Context import android.view.animation.AlphaAnimation import android.view.animation.AnimationUtils import android.widget.FrameLayout import androidx.core.content.ContextCompat import androidx.recyclerview.widget.DividerItemDecoration import androidx.recy...
app/src/main/java/com/example/starbuy/model/db/AppDatabase.kt
unknown_repo
kotlin
package com.example.starbuy.model.db import androidx.room.Database import androidx.room.RoomDatabase import com.example.starbuy.model.data.Product @Database( entities = [Product::class] , version = 1 , exportSchema = false ) abstract class AppDatabase :RoomDatabase(){ abstract fun productDao(): ProductDao }
app/src/main/java/com/sevenexp/craftit/data/source/database/RemoteKeysDao.kt
unknown_repo
kotlin
package com.sevenexp.craftit.data.source.database import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query @Dao interface RemoteKeysDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun insertAll(remoteKey: List<RemoteKeys>) @Que...
app/src/main/java/nl/rwslinkman/simdeviceble/ui/devices/SupportedDevicesAdapter.kt
unknown_repo
kotlin
package nl.rwslinkman.simdeviceble.ui.devices import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.LinearLayout import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import nl.rwslinkman.simdeviceble.R import nl.rwslinkman.simdevicebl...
app/src/main/java/e/vatsal/kesarwani/gitfit/ui/user/UserActivity.kt
unknown_repo
kotlin
package code.namanbir.gitfit.app.ui.user import android.content.Context import android.content.Intent import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.databinding.DataBindingUtil import androidx.lifecycle.ViewModelProviders import com.bumptech.glide.Glid...
Kotlin/techhub/app/src/main/java/com/example/techhub/MainActivity.kt
unknown_repo
kotlin
package com.example.techhub import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import com.example.techhub.navigation.NavigationFunction class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreat...
core/android/src/main/kotlin/com/reown/android/utils/Extensions.kt
unknown_repo
kotlin
@file:JvmSynthetic package com.reown.android.utils import android.net.Uri import com.reown.android.Core import com.reown.android.internal.common.exception.GenericException import com.reown.android.internal.common.exception.InvalidProjectIdException import com.reown.android.internal.common.exception.ProjectIdDoesNotEx...
app/src/main/java/com/example/jmb_bms/activities/MainActivity.kt
unknown_repo
kotlin
/** * @file: MainActivity.kt * @author: <NAME> <<EMAIL>,<EMAIL>> * Description: File containing MainActivity class */ package com.example.jmb_bms.activities import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.B...
app/src/main/java/wannabit/io/cosmostaion/ui/option/tx/validator/OktValidatorAdapter.kt
unknown_repo
kotlin
package wannabit.io.cosmostaion.ui.option.tx.validator import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import com.google.gson.JsonObject import wannabit.io.cosmostaion.chain.BaseChain import wannabit.io.cosmos...
db/src/main/java/jp/kaleidot725/easycalc/db/dao/TodayStatsDao.kt
unknown_repo
kotlin
package jp.kaleidot725.easycalc.db.dao import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import jp.kaleidot725.easycalc.db.entity.TodayStatsEntity @Dao interface TodayStatsDao { @Insert(onConflict = OnConflictStrateg...
FilePicker/src/main/java/com/linkdev/filepicker/utils/file/ScalingUtils.kt
unknown_repo
kotlin
/* * Copyright (C) 2020 Link Development * * 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 agree...
app/src/main/java/io/github/ch8n/compose97/ui/components/windowscaffold/WindowScaffold.kt
unknown_repo
kotlin
package io.github.ch8n.compose97.ui.components.windowscaffold import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.gestures.scrollable import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx...
app/src/main/java/org/stepic/droid/storage/dao/CourseDaoImpl.kt
unknown_repo
kotlin
package org.stepic.droid.storage.dao import android.content.ContentValues import android.database.Cursor import org.stepic.droid.storage.operations.DatabaseOperations import org.stepic.droid.storage.structure.DbStructureCourse import org.stepic.droid.util.DbParseHelper import org.stepic.droid.util.getBoolean import or...
app-extensions/app-utilities/src/main/java/com/kaleyra/app_utilities/notification/NotificationProxy.kt
unknown_repo
kotlin
/* * Copyright 2023 Kaleyra @ https://www.kaleyra.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
module-water/src/main/java/com/hardlove/cl/water/mvp/presenter/MinePresenter.kt
unknown_repo
kotlin
package com.hardlove.cl.water.mvp.presenter import android.app.Application import com.hardlove.cl.water.mvp.contract.MineContract import com.jess.arms.di.scope.FragmentScope import com.jess.arms.http.imageloader.ImageLoader import com.jess.arms.integration.AppManager import com.jess.arms.mvp.BasePresenter import me.je...
dots/src/main/java/com/bcgdv/asia/lib/dots/DotsProgressIndicator.kt
unknown_repo
kotlin
package com.bcgdv.asia.lib.dots import android.animation.Animator import android.animation.AnimatorSet import android.animation.ValueAnimator import android.annotation.TargetApi import android.content.Context import android.graphics.Bitmap import android.graphics.Canvas import android.graphics.Color import android.gra...
enro-core/src/main/java/dev/enro/core/compose/LocalNavigationHandle.kt
unknown_repo
kotlin
package dev.enro.core.compose import androidx.compose.runtime.Composable import androidx.compose.runtime.compositionLocalOf import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner import dev.enro.core.NavigationHandle import dev.enro.core.NavigationKey import dev.enro.core.TypedNavigationHandle import dev...
base/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/TranslucentViewDetectorTest.kt
unknown_repo
kotlin
/* * Copyright (C) 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
main/src/main/java/com/google/android/apps/muzei/legacy/LegacySourceInfoFragment.kt
unknown_repo
kotlin
/* * Copyright 2019 Google 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 ...
app/src/main/java/com/elementary/tasks/core/binding/dialogs/DialogExclusionPickerBinding.kt
unknown_repo
kotlin
package com.elementary.tasks.core.binding.dialogs import android.view.View import android.widget.RadioButton import android.widget.RadioGroup import android.widget.TextView import android.widget.ToggleButton import com.elementary.tasks.R import com.elementary.tasks.core.binding.Binding class DialogExclusionPickerBind...
common-core/src/main/kotlin/com/blacksquircle/ui/core/storage/keyvalue/SettingsManager.kt
unknown_repo
kotlin
/* * Copyright 2023 Squircle CE contributors. * * 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...
aire/src/main/java/com/awxkee/aire/BlurPipelines.kt
unknown_repo
kotlin
/* * * * MIT License * * * * Copyright (c) 2024 Radzivon Bartoshyk * * aire [https://github.com/awxkee/aire] * * * * Created by Radzivon Bartoshyk on 2/21/24, 6:13 PM * * * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation...
compose/material/material/benchmark/src/androidTest/java/androidx/compose/material/benchmark/TextInColumnBenchmark.kt
unknown_repo
kotlin
/* * Copyright 2019 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...
compose/mpp/demo/src/commonMain/kotlin/androidx/compose/mpp/demo/textfield/TextFields.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...
compose/mpp/demo/src/commonMain/kotlin/androidx/compose/mpp/demo/textfield/TextFields.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...
feather/src/commonMain/kotlin/compose/icons/feathericons/Umbrella.kt
unknown_repo
kotlin
package compose.icons.feathericons 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.Round import androidx.compose.ui.graphics.StrokeJoin import androidx.com...
Source/app/src/main/java/com/victorx64/officerpersonalarea/LoginActivity.kt
unknown_repo
kotlin
package com.victorx64.officerpersonalarea import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.webkit.WebView import com.microsoft.appcenter.AppCenter; import com.microsoft.appcenter.analytics.Analytics; import com.microsoft.appcenter.crashes.Crashes; import kotlinx.android.synthetic...
mlkit/app/src/main/java/com/google/firebase/samples/apps/mlkit/kotlin/cloudlandmarkrecognition/CloudLandmarkRecognitionProcessor.kt
unknown_repo
kotlin
package com.google.firebase.samples.apps.mlkit.kotlin.cloudlandmarkrecognition import android.graphics.Bitmap import android.util.Log import com.google.android.gms.tasks.Task import com.google.firebase.ml.vision.FirebaseVision import com.google.firebase.ml.vision.cloud.FirebaseVisionCloudDetectorOptions import com.goo...
features/clipboard/src/main/kotlin/org/michaelbel/template/clipboard/di/ClipboardModule.kt
unknown_repo
kotlin
package org.michaelbel.template.clipboard import android.content.ClipboardManager import android.content.Context import androidx.core.content.ContextCompat import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ViewModelComponent import dagger.hilt.android.qualif...
app/src/main/java/com/madonasyombua/sportsdb/ui/theme/Theme.kt
unknown_repo
kotlin
package com.madonasyombua.sportsdb.ui.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material.MaterialTheme import androidx.compose.material.darkColors import androidx.compose.material.lightColors import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color...
viewcomponents/src/main/java/com/afollestad/nocknock/viewcomponents/livedata/ViewLifecycleOwner.kt
unknown_repo
kotlin
/** * Designed and developed by <NAME> (@afollestad) * * 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...
app/src/main/java/com/siju/acexplorer/di/SortModeModule.kt
unknown_repo
kotlin
package com.siju.acexplorer.di import android.content.Context import androidx.preference.PreferenceManager import com.siju.acexplorer.common.SortModeData import dagger.Module import dagger.Provides import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.migration.DisableInstallInCheck @Module @Dis...
modules/kilua-tempus-dominus/src/commonMain/kotlin/dev/kilua/form/time/AbstractRichDateTime.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 Robert Jaros * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publis...
ground/src/main/java/com/google/android/ground/model/submission/TaskDataDelta.kt
unknown_repo
kotlin
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
features/discover/src/main/java/com/dhorowitz/openmovie/discover/presentation/ui/DiscoverMoviesGrid.kt
unknown_repo
kotlin
package com.dhorowitz.openmovie.discover.presentation.ui import androidx.annotation.VisibleForTesting import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx....
data/src/main/java/com/bayarsahintekin/data/entity/teams/TeamListDbData.kt
unknown_repo
kotlin
package com.bayarsahintekin.data.entity.teams import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.TypeConverters import com.bayarsahintekin.data.entity.MetaDbData import com.bayarsahintekin.data.entity.toData import com.bayarsahintekin.data.mapper.MetaTypeCo...
app/src/main/java/com/theelitedevelopers/ecommerce/presentation/home/fragments/adapter/ProductAdapter.kt
unknown_repo
kotlin
package com.theelitedevelopers.ecommerce.presentation.home.fragments.adapter import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.squareup.picasso....
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bandsintown.kt
unknown_repo
kotlin
package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Butt import androidx.compose.ui.graphics.StrokeJoin.Miter import androidx.compose.ui.graphics...
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bandsintown.kt
unknown_repo
kotlin
package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Butt import androidx.compose.ui.graphics.StrokeJoin.Miter import androidx.compose.ui.graphics...
app/gps_alarm/src/main/java/com/gps_alarm/ui/viewmodel/GpsAlarmVM.kt
unknown_repo
kotlin
package com.gps_alarm.ui.viewmodel import androidx.compose.runtime.mutableStateOf import com.data.gpsAlarm.local.LocalDataStore import com.domain.gpsAlarm.usecase.DataStoreUseCase import com.gps_alarm.base.BaseVM import com.gps_alarm.data.Address import com.gps_alarm.data.SettingInfo import com.gps_alarm.data.StartSer...
testing/src/test/java/org/oppia/android/testing/lightweightcheckpointing/ExplorationCheckpointTestHelperTest.kt
unknown_repo
kotlin
package org.oppia.android.testing.lightweightcheckpointing import android.app.Application import android.content.Context import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import com.google.common.truth.Truth.assertThat import dagger.BindsInstance import dagger.Compo...
common/ui/compose/src/main/java/app/tivi/common/compose/ui/PosterCard.kt
unknown_repo
kotlin
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
ui/ui-animation-core/src/commonMain/kotlin/androidx/compose/animation/core/Animation.kt
unknown_repo
kotlin
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/__IconPack.kt
unknown_repo
kotlin
package com.eshc.goonersapp.core.designsystem import androidx.compose.ui.graphics.vector.ImageVector import com.eshc.goonersapp.core.designsystem.iconpack.IcGrid import com.eshc.goonersapp.core.designsystem.iconpack.IcList import kotlin.collections.List as ____KtList public object IconPack private var __Icons: ____K...
octicons/src/commonMain/kotlin/compose/icons/octicons/ArrowUpLeft24.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.octicons.octicons 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.Stro...
app/src/main/java/h/lillie/weartube/Main.kt
unknown_repo
kotlin
package h.lillie.weartube import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.net.wifi.WifiManager import android.os.Bundle import android.os.PowerManager import android.util.Log import android.view.Gravity import android.view.KeyEvent import android.view....
app/src/main/java/cz/blackchameleon/trendingprojects/framework/remote/LanguageMo.kt
unknown_repo
kotlin
package cz.blackchameleon.trendingprojects.framework.remote import android.os.Parcelable import cz.blackchameleon.domain.Language import kotlinx.android.parcel.Parcelize /** * API object representation of language object * * @author <NAME> on 29.11.2020. */ @Parcelize data class LanguageMo( val urlParam: Stri...
CSP-Library/src/main/java/com/mbp/csp/sw1020sp.kt
unknown_repo
kotlin
package com.mbp.csp import androidx.compose.ui.unit.sp val sw1020sp = ComposableDimens().apply { _1csp = 3.40.sp _2csp = 6.80.sp _3csp = 10.20.sp _4csp = 13.60.sp _5csp = 17.00.sp _6csp = 20.40.sp _7csp = 23.80.sp _8csp = 27.20.sp _9csp = 30.60.sp _10csp = 34.00.sp _11csp =...
CSP-Library/src/main/java/com/mbp/csp/sw1020sp.kt
unknown_repo
kotlin
package com.mbp.csp import androidx.compose.ui.unit.sp val sw1020sp = ComposableDimens().apply { _1csp = 3.40.sp _2csp = 6.80.sp _3csp = 10.20.sp _4csp = 13.60.sp _5csp = 17.00.sp _6csp = 20.40.sp _7csp = 23.80.sp _8csp = 27.20.sp _9csp = 30.60.sp _10csp = 34.00.sp _11csp =...
app/src/main/java/com/motionapps/sensorbox/fragments/advanced/extrahandlers/AlarmHandler.kt
unknown_repo
kotlin
package com.motionapps.sensorbox.fragments.advanced.extrahandlers import android.app.Dialog import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.Window import android.widget.* import androidx.fragment.app.Fragment import com.motionapps....
android/library-magiccube/src/main/java/com/hellobike/magiccube/v2/StyleModelCache.kt
unknown_repo
kotlin
package com.hellobike.magiccube.v2 import android.util.LruCache import com.hellobike.magiccube.model.StyleModel import com.hellobike.magiccube.utils.tryCatch internal object StyleModelCache { private val cardStyleModels = LruCache<String, StyleModel>(30) fun hasValidStyleModel(url: String): Boolean = ...
android/library-magiccube/src/main/java/com/hellobike/magiccube/v2/StyleModelCache.kt
unknown_repo
kotlin
package com.hellobike.magiccube.v2 import android.util.LruCache import com.hellobike.magiccube.model.StyleModel import com.hellobike.magiccube.utils.tryCatch internal object StyleModelCache { private val cardStyleModels = LruCache<String, StyleModel>(30) fun hasValidStyleModel(url: String): Boolean = ...
app/src/main/kotlin/me/liuyun/bjutlgn/ui/UserActivity.kt
unknown_repo
kotlin
package me.liuyun.bjutlgn.ui import android.content.SharedPreferences import android.os.Bundle import android.text.SpannableStringBuilder import android.text.Spanned import android.text.style.TextAppearanceSpan import android.view.LayoutInflater import android.view.ViewGroup import android.widget.ArrayAdapter import a...
privacysandbox/ads/ads-adservices/src/main/java/androidx/privacysandbox/ads/adservices/common/KeyedFrequencyCap.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...
library/src/main/java/io/github/achmadhafid/toolbar_badge_menu_item/ToolbarBadgeKtx.kt
unknown_repo
kotlin
package io.github.achmadhafid.toolbar_badge_menu_item import android.view.Menu import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment fun AppCompatActivity.createToolbarBadge( menu: Menu, config: ToolbarBadgeConfig.() -> Unit ) = ToolbarBadgeConfig(ToolbarBadgeColor()).apply(con...
knowledgebase-gui/src/main/java/ru/usedesk/knowledgebase_gui/screens/article/ArticlePagesAdapter.kt
unknown_repo
kotlin
package ru.usedesk.knowledgebase_gui.screens.article import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentStatePagerAdapter import androidx.lifecycle.LifecycleCoroutineScope import androidx.viewpager.widget.ViewPager import ru.usedesk.common_gui.onEach...
android/common-ui/src/main/java/any/ui/common/widget/ServicesPopup.kt
unknown_repo
kotlin
package any.ui.common.widget import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.Spring import androidx.compose.animation.core.spring import androidx.compose.animation.core.tween import androidx.compose.animation.fadeIn ...
theme/src/main/java/projekt/commons/theme/backend/SynergyBackend.kt
unknown_repo
kotlin
/* * Copyright (c) 2019, Projekt Development LLC. * * SPDX-License-Identifier: Apache-2.0 */ package projekt.commons.theme.backend import android.content.Intent import android.os.Parcelable import androidx.core.content.FileProvider import projekt.andromeda.client.util.OverlayInfo.OverlayState.STATE_DISABLED impor...
device-explorer-files/src/com/android/tools/idea/device/explorer/files/adbimpl/AdbDeviceCapabilities.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
app/src/main/java/com/barryzhang/gankkotlin/data/remote/SimpleSubscriber.kt
unknown_repo
kotlin
package com.barryzhang.gankkotlin.data.remote import android.app.Activity import android.widget.Toast import com.barryzhang.gankkotlin.ext.toast import com.barryzhang.gankkotlin.ui.base.BaseActivity import com.barryzhang.gankkotlin.ui.wiget.LoadingDialog import rx.Subscriber /** * <EMAIL> * https://github.com/barry...
room/room-compiler/src/main/kotlin/androidx/room/solver/query/result/CoroutineFlowResultBinder.kt
unknown_repo
kotlin
/* * Copyright 2019 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...
solar/src/main/java/com/chiksmedina/solar/boldduotone/like/HeartBroken.kt
unknown_repo
kotlin
package com.chiksmedina.solar.boldduotone.like 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.Companio...
data/src/main/java/uk/co/applylogic/marvel/data/di/module/ApplicationModule.kt
unknown_repo
kotlin
package uk.co.applylogic.marvel.data.di.module import android.app.Application import android.content.Context import uk.co.applylogic.marvel.data.di.qualifier.ApplicationContext import dagger.Module import dagger.Provides import javax.inject.Singleton @Module class ApplicationModule(private val context: Context) { ...
library/src/main/kotlin/fr/rolandl/rijsel/lifecycle/DummyRijselComposeViewModel.kt
unknown_repo
kotlin
package fr.rolandl.rijsel.lifecycle import android.app.Application import androidx.lifecycle.SavedStateHandle /** * A default RijselViewModel implementation in order to provide a default value to the * [fr.rolandl.rijsel.activity.RijselComposeSplashscreenActivity] activity * * @author <NAME> * @since 2022.04.11 ...
app/src/main/java/me/hegj/wandroid/mvp/ui/adapter/CollectAdapter.kt
unknown_repo
kotlin
package me.hegj.wandroid.mvp.ui.adapter import android.text.Html import android.text.TextUtils import com.chad.library.adapter.base.BaseQuickAdapter import com.chad.library.adapter.base.BaseViewHolder import com.chad.library.adapter.base.util.MultiTypeDelegate import com.jess.arms.http.imageloader.glide.ImageConfigImp...
cropper/src/main/kotlin/com/canhub/cropper/CropImageContractOptions.kt
unknown_repo
kotlin
package com.canhub.cropper import android.net.Uri @Deprecated( """ This ActivityResultContract is deprecated. Please either roll your own ActivityResultContract with the desired behavior or copy paste this. """, ) data class CropImageContractOptions( val uri: Uri?, val cropImageOptions: CropImageOptions, )
app/src/androidTest/java/com/jnyakush/maktaba/ExampleInstrumentedTest.kt
unknown_repo
kotlin
package com.jnyakush.maktaba import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 import org.junit.Test import org.junit.runner.RunWith import org.junit.Assert.* /** * Instrumented test, which will execute on an Android device. * * See [testing documentat...
app/src/main/java/com/theandroidcoffee/bottomnavigation_multistack/contacts/ContactListFragment.kt
unknown_repo
kotlin
/* * * * Copyright 2020, * * ☕ Marco Finadri - theandroidcoffee.com ☕ * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/l...
src/main/kotlin/component/TabMenu.kt
unknown_repo
kotlin
package component import androidx.compose.animation.core.Animatable import androidx.compose.foundation.Canvas import androidx.compose.foundation.clickable import androidx.compose.foundation.horizontalScroll import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androi...
app/src/main/java/com/zigis/paleontologas/features/launcher/stories/main/LauncherView.kt
unknown_repo
kotlin
package com.zigis.paleontologas.features.launcher.stories.main import android.content.Context import android.widget.Toast import com.zigis.paleontologas.core.architecture.BaseView import com.zigis.paleontologas.databinding.ViewLauncherBinding class LauncherView(context: Context) : BaseView<LauncherViewState, ViewLaun...
app/src/main/java/com/example/androiddevchallenge/ui/list/PuppyList.kt
unknown_repo
kotlin
package com.example.androiddevchallenge.ui.list import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn im...
app/src/main/java/com/arcieri/wagner/dictionary/feature_dictionary/data/local/entity/WordInfoEntity.kt
unknown_repo
kotlin
package com.arcieri.wagner.dictionary.feature_dictionary.data.local.entity import androidx.room.Entity import androidx.room.PrimaryKey import com.arcieri.wagner.dictionary.feature_dictionary.domain.model.Meaning import com.arcieri.wagner.dictionary.feature_dictionary.domain.model.WordInfo @Entity data class WordInfoE...
vendor/tipkit/tipkit/src/main/kotlin/dev/bmcreations/tipkit/Tip.kt
unknown_repo
kotlin
package dev.bmcreations.tipkit import androidx.compose.runtime.Composable import androidx.compose.ui.Alignment import androidx.compose.ui.Alignment.Companion import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import dev.bmcreations.tipkit.engines.EligibilityCriteria import dev.bmcreations.tipkit.eng...
app/src/main/java/earth/levi/app/store/NotificationsStore.kt
unknown_repo
kotlin
package earth.levi.app.store import android.content.SharedPreferences import earth.levi.app.DiGraph import earth.levi.app.android.ShownNotification import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json val DiGraph.notificationsStore: NotificationsStore get() = NotificationsStore(share...
app/src/main/java/com/raywenderlich/android/runtracker/MVP.kt
unknown_repo
kotlin
package com.raywenderlich.android.runtracker import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.MutableLiveData import com.google.android.gms.maps.model.LatLng /* Creates info needed to render UI properly. Includes the distance the user walks, their current location, and the list of location...
app/src/main/java/com/example/gitapp/provider/UserContentProvider.kt
unknown_repo
kotlin
package com.example.gitapp.provider import android.content.ContentProvider import android.content.ContentValues import android.content.UriMatcher import android.database.Cursor import android.net.Uri import com.example.gitapp.data.local.FavoriteUser import com.example.gitapp.data.local.FavoriteUserDao import com.examp...
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Sausage.kt
unknown_repo
kotlin
package me.localx.icons.straight.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.StrokeJoin.Companion.Miter...
favorite/src/main/java/com/aprian1337/favorite/FavoriteComponent.kt
unknown_repo
kotlin
package com.aprian1337.favorite import android.content.Context import com.aprian1337.batique.di.FavDependencies import dagger.BindsInstance import dagger.Component @Component(dependencies = [FavDependencies::class]) interface FavoriteComponent { fun inject(act: FavoriteFragment) @Component.Builder interf...
foundation/src/commonMain/kotlin/me.lincolnstuart.funblocks.foundation.ui/token/content/border/FunBlocksBorderWidth.kt
unknown_repo
kotlin
package me.lincolnstuart.funblocks.foundation.ui.token.content.border import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp /** * Object that provides border width tokens to standard surface components. * * Based on [androidx.compose.ui.unit.Dp]. */ public object FunBlocksBorderWidth { public ...
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/teleops/auto/MainAuto.kt
unknown_repo
kotlin
package org.firstinspires.ftc.teamcode.teleops.auto import android.util.Log import androidx.annotation.NonNull import com.acmerobotics.dashboard.telemetry.TelemetryPacket import com.acmerobotics.roadrunner.Action import com.acmerobotics.roadrunner.InstantAction import com.acmerobotics.roadrunner.Pose2d import com.acme...
app/src/main/java/com/bubelov/coins/editplace/EditPlaceViewModel.kt
unknown_repo
kotlin
package com.bubelov.coins.editplace import androidx.lifecycle.ViewModel import com.bubelov.coins.data.Place import com.bubelov.coins.repository.place.PlacesRepository import com.bubelov.coins.util.BasicTaskState import kotlinx.coroutines.* import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flow import ...
src/hackhub/app/src/main/java/com/univpm/hackhub/adapters/MessageAdapter.kt
unknown_repo
kotlin
package com.univpm.hackhub.adapters import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.isVisible import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.RecyclerView import com.univpm.hackhub.R import com.univpm.hackhub.databindin...
app/src/main/java/com/letter/days/service/CoreService.kt
unknown_repo
kotlin
package com.letter.days.service import android.app.NotificationManager import android.app.Service import android.content.Intent import android.os.Build import android.os.IBinder import com.letter.days.R import com.letter.days.database.AppDatabase import com.letter.days.utils.setAllAnniversaryAlarm import com.letter.da...
app/src/main/java/com/github/anastr/myscore/fragments/CourseListFragment.kt
unknown_repo
kotlin
package com.github.anastr.myscore.fragments import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.ViewGroupCompat import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Lifecycle impo...
app/src/main/java/com/ema/jannik/logbook/activity/AddDriveActivity.kt
unknown_repo
kotlin
package com.ema.jannik.logbook.activity import android.app.Activity import android.app.DatePickerDialog import android.app.TimePickerDialog import android.os.Bundle import android.view.Menu import android.view.MenuItem import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.fragment.ap...
app/src/main/java/com/github/zsoltk/chesso/ui/dialogs/GameDialog.kt
unknown_repo
kotlin
package com.github.zsoltk.chesso.ui.dialogs import androidx.compose.runtime.Composable import androidx.compose.ui.res.stringResource import androidx.compose.ui.tooling.preview.Preview import com.github.zsoltk.chesso.R @Composable fun GameDialog( onDismiss: () -> Unit, onNewGame: () -> Unit, onImportGame: ...
bloom/src/main/java/com/fjoglar/composechallenge/bloom/ui/components/BloomTextButton.kt
unknown_repo
kotlin
package com.fjoglar.composechallenge.bloom.ui.components import android.content.res.Configuration import androidx.compose.foundation.layout.height import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.ButtonDefaults import androidx.compose.material.MaterialTheme import androidx.c...
app/src/main/java/cn/cqautotest/sunnybeach/http/glide/GlideConfig.kt
unknown_repo
kotlin
package cn.android52.demo.http.glide import android.content.Context import cn.android52.demo.R import com.bumptech.glide.Glide import com.bumptech.glide.GlideBuilder import com.bumptech.glide.Registry import com.bumptech.glide.annotation.GlideModule import com.bumptech.glide.load.engine.bitmap_recycle.LruBitmapPool im...
androidApp/src/main/java/io/github/lazyengineer/castaway/androidApp/view/onboarding/TextButton.kt
unknown_repo
kotlin
package io.github.lazyengineer.castaway.androidApp.view.onboarding import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.LayoutScopeMarker import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.pa...
app/src/main/java/com/febers/uestc_bbs/io/CacheHelper.kt
unknown_repo
kotlin
package com.febers.uestc_bbs.io import android.os.Looper import com.bumptech.glide.Glide import com.febers.uestc_bbs.MyApp import com.febers.uestc_bbs.io.FileHelper.appApkDir import com.febers.uestc_bbs.io.FileHelper.appCacheDir import com.febers.uestc_bbs.io.FileHelper.deleteFolderFile import com.febers.uestc_bbs.io...
features/core/database/src/main/kotlin/dev/marlonlom/apps/bookbar/core/database/db.kt
unknown_repo
kotlin
/* * Copyright 2024 Marlonlom * SPDX-License-Identifier: Apache-2.0 */ package dev.marlonlom.apps.bookbar.core.database import android.content.Context import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import dev.marlonlom.apps.bookbar.core.database.dao.BookDetailsDao import ...
app/src/main/java/me/hegj/wandroid/mvp/ui/adapter/TodoAdapter.kt
unknown_repo
kotlin
package me.hegj.wandroid.mvp.ui.adapter import android.util.TypedValue import android.widget.ImageView import androidx.cardview.widget.CardView import com.chad.library.adapter.base.BaseQuickAdapter import com.chad.library.adapter.base.BaseViewHolder import me.hegj.wandroid.R import me.hegj.wandroid.app.utils.DatetimeU...
info/src/main/java/com/droidcon/info/presentation/InfoOptionViewHolders.kt
unknown_repo
kotlin
package com.droidcon.info.presentation import android.view.View import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.bumptech.glide.load.resource.bitmap.FitCenter import com.droidcon.info.R sealed class InfoOptionVie...
features/src/main/kotlin/ru/mobileup/template/features/pokemons/ui/details/FakePokemonDetailsComponent.kt
unknown_repo
kotlin
package ru.mobileup.template.features.pokemons.ui.details import kotlinx.coroutines.flow.MutableStateFlow import ru.mobileup.template.core.utils.LoadableState import ru.mobileup.template.features.pokemons.domain.DetailedPokemon import ru.mobileup.template.features.pokemons.domain.PokemonId import ru.mobileup.template....