file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/com/example/waterme/ui/theme/Theme.kt
unknown_repo
kotlin
/* * Copyright (C) 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
app/src/main/java/com/wizeline/brainstormingapp/roomsView/RoomsFragment.kt
unknown_repo
kotlin
package com.wizeline.brainstormingapp.roomsView import android.content.Context import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.widget.LinearLayoutManager import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.google.gson.Gson impo...
SimpleLogin/app/src/main/java/io/simplelogin/android/module/alias/search/AliasSearchAdapter.kt
unknown_repo
kotlin
package io.simplelogin.android.module.alias.search import android.view.ViewGroup import androidx.recyclerview.widget.ListAdapter import io.simplelogin.android.module.alias.AliasListAdapter import io.simplelogin.android.utils.diffutil.AliasDiffCallback import io.simplelogin.android.utils.model.Alias import io.simplelog...
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/presentation/balance/chainselector/ChainSelectViewModel.kt
unknown_repo
kotlin
package jp.co.soramitsu.wallet.impl.presentation.balance.chainselector import androidx.lifecycle.SavedStateHandle import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject import jp.co.soramitsu.account.api.domain.interfaces.AccountInteractor import jp.co.soramitsu.common.base.BaseViewModel import ...
app/src/main/java/com/vipulasri/jetinstagram/ui/components/FavoritesContainer.kt
unknown_repo
kotlin
package com.vipulasri.jetinstagram.ui.components import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.c...
app/src/main/kotlin/io/burnoutcrew/multinavhost/navigation/MultiNavHostFragmentController.kt
unknown_repo
kotlin
/* * Copyright 2021 <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 agreed to in w...
zoomimage-core-glide/src/main/kotlin/com/github/panpf/zoomimage/glide/GlideHttpImageSource.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 panpf <<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 agre...
feature/tutorial/src/main/java/com/hanbikan/nook/feature/tutorial/usecase/UpdateTutorialTasksIfEmptyUseCaseImpl.kt
unknown_repo
kotlin
package com.hanbikan.nook.feature.tutorial.usecase import android.content.Context import com.hanbikan.nook.core.domain.model.TutorialTask import com.hanbikan.nook.core.domain.repository.TutorialTaskRepository import com.hanbikan.nook.core.domain.usecase.UpdateTutorialTasksIfEmptyUseCase import com.hanbikan.nook.featur...
feature/tutorial/src/main/java/com/hanbikan/nook/feature/tutorial/usecase/UpdateTutorialTasksIfEmptyUseCaseImpl.kt
unknown_repo
kotlin
package com.hanbikan.nook.feature.tutorial.usecase import android.content.Context import com.hanbikan.nook.core.domain.model.TutorialTask import com.hanbikan.nook.core.domain.repository.TutorialTaskRepository import com.hanbikan.nook.core.domain.usecase.UpdateTutorialTasksIfEmptyUseCase import com.hanbikan.nook.featur...
app/src/main/java/fun/vari/gracephone/ui/page/author/PoemAuthorPaging.kt
unknown_repo
kotlin
package `fun`.vari.gracephone.ui.page.author import `fun`.vari.gracephone.logic.model.PoemModelWithNum import `fun`.vari.gracephone.logic.model.getPoemBy import android.app.Application import android.content.Context import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.ViewModel import androidx.lifecycl...
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/BasicShortcutEditorViewModel.kt
unknown_repo
kotlin
package ch.rmy.android.http_shortcuts.activities.editor import android.app.Application import androidx.lifecycle.LiveData import ch.rmy.android.http_shortcuts.data.RealmViewModel import ch.rmy.android.http_shortcuts.data.Repository import ch.rmy.android.http_shortcuts.data.livedata.ListLiveData import ch.rmy.android.h...
app/src/main/java/com/hadi/headlinescompose/presentation/ui/screen/home/SliderShimmerItem.kt
unknown_repo
kotlin
package com.example.jetnewsapp.presentation.ui.screen.home import androidx.compose.animation.core.* import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import an...
src/main/kotlin/com/github/davenury/ucac/common/structure/Subscribers.kt
unknown_repo
kotlin
package com.github.davenury.ucac.common.structure import com.github.davenury.common.PeerId import com.github.davenury.common.PeersetId import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.asCoroutineDispatcher import kotlinx.coroutines.launch import java.util.concurrent.Executors class Subscribers { ...
apps/student/src/androidTest/java/com/instructure/student/ui/pages/renderPages/SubmissionDetailsRenderPage.kt
unknown_repo
kotlin
/* * Copyright (C) 2019 - present Instructure, 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 requ...
android/SherpaOnnxTtsEngine/app/src/main/java/com/k2fsa/sherpa/onnx/tts/engine/TtsViewModel.kt
unknown_repo
kotlin
package com.k2fsa.sherpa.onnx.tts.engine import android.app.Application import android.speech.tts.TextToSpeech import android.speech.tts.TextToSpeech.OnInitListener import android.speech.tts.UtteranceProgressListener import android.util.Log import androidx.lifecycle.ViewModel import java.util.Locale class TtsApp : Ap...
android/SherpaOnnxTtsEngine/app/src/main/java/com/k2fsa/sherpa/onnx/tts/engine/TtsViewModel.kt
unknown_repo
kotlin
package com.k2fsa.sherpa.onnx.tts.engine import android.app.Application import android.speech.tts.TextToSpeech import android.speech.tts.TextToSpeech.OnInitListener import android.speech.tts.UtteranceProgressListener import android.util.Log import androidx.lifecycle.ViewModel import java.util.Locale class TtsApp : Ap...
feature/trip-planner/ui/src/main/kotlin/xyz/ksharma/krail/trip_planner/ui/components/JourneyCard.kt
unknown_repo
kotlin
package xyz.ksharma.krail.trip_planner.ui.components 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.Arrangement import androidx.compose.foundation.lay...
android/anc/src/main/java/org/smartregister/fhircore/anc/ui/family/register/FamilyRegisterFragment.kt
unknown_repo
kotlin
/* * Copyright 2021 Ona Systems, 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 agr...
common/src/main/java/fr/outadoc/homeslide/common/feature/grid/vm/EntityListResourceManager.kt
unknown_repo
kotlin
/* * Copyright 2020 Baptiste Candellier * * 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 appli...
cap11-api-backend/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/model/repository/CreaturesRepository.kt
unknown_repo
kotlin
package tech.salvatore.livro_android_kotlin_paulo_salvatore.model.repository import android.util.Log import io.reactivex.rxjava3.core.Observable import io.reactivex.rxjava3.subjects.ReplaySubject import tech.salvatore.livro_android_kotlin_paulo_salvatore.model.domain.Creature import tech.salvatore.livro_android_kotlin...
shared/src/commonMain/kotlin/com/seiko/greenqrscanner/ui/widget/BarcodeItem.kt
unknown_repo
kotlin
package com.seiko.greenqrscanner.ui.widget import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.ListItem import androidx.compose.material3.Materia...
viewmodel/src/androidMain/kotlin/com/hoc081098/kmp/viewmodel/ViewModelStoreOwner.android.kt
unknown_repo
kotlin
package com.hoc081098.kmp.viewmodel import androidx.lifecycle.ViewModelStore as AndroidXViewModelStore import androidx.lifecycle.ViewModelStoreOwner as AndroidXViewModelStoreOwner private class AndroidXToKmpViewModelStoreOwner( @JvmField val platform: AndroidXViewModelStoreOwner, ) : ViewModelStoreOwner { overrid...
FragmentsTest/app/src/main/java/com/chiuxah/fragmentstest/RightFragment.kt
unknown_repo
kotlin
package com.chiuxah.fragmenttestttt import android.app.Fragment import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup class RightFragment : Fragment() { override fun onCreateView( inflater: LayoutInflater?, container: ViewGroup?, ...
app/src/main/java/com/eebros/daggertutorial/presentation/fragment/TestFragmentViewModel.kt
unknown_repo
kotlin
package com.eebros.daggertutorial.presentation.fragment import android.content.Context import com.eebros.daggertutorial.base.BaseViewModel import javax.inject.Inject class TestFragmentViewModel @Inject constructor(context: Context) : BaseViewModel(){ }
app/src/main/java/com/example/githubtracker/util/DataStoreUtils.kt
unknown_repo
kotlin
package com.example.githubtracker.util import android.content.Context import android.content.SharedPreferences import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject import javax.inject.Singleton @Singleton class DataStoreUtils @Inject constructor(@ApplicationContext context: Context) { ...
androidApp/src/main/java/com/netguru/retail/android/theme/Theme.kt
unknown_repo
kotlin
package com.netguru.retail.android.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.SideEffect import androidx.compose.ui.graphi...
app/src/main/java/com/jerryokafor/compose/ui/screens/main/ComposeApp.kt
unknown_repo
kotlin
package com.jerryokafor.compose.ui.screens.main import androidx.compose.animation.* import androidx.compose.animation.core.* import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.padding import androidx.compose.material.Scaffold i...
java/app/crescentcash/src/activity/ManageKeyActivity.kt
unknown_repo
kotlin
package app.protonwallet.src.activity import android.content.ClipData import android.content.ClipboardManager import android.content.Context import android.os.Bundle import android.text.TextUtils import android.widget.Button import android.widget.EditText import android.widget.TextView import android.widget.Toast impo...
samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/TicTacToeModel.kt
unknown_repo
kotlin
@file:OptIn(WorkflowExperimentalRuntime::class) package com.squareup.sample.mainactivity import androidx.lifecycle.AbstractSavedStateViewModelFactory import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.savedstate.SavedStateRegistryOwn...
platf-skia/src/androidMain/kotlin/org/jetbrains/letsPlot/skia/android/builderHW/FigureToSkiaAndroid.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 JetBrains s.r.o. * Use of this source code is governed by the MIT license that can be found in the LICENSE file. */ package org.jetbrains.letsPlot.skia.android.builderHW import android.content.Context import android.view.View import android.view.ViewGroup import android.widget.RelativeLayou...
app/src/main/java/me/bgregos/foreground/data/ForegroundDatabase.kt
unknown_repo
kotlin
package me.bgregos.foreground.data import android.content.Context import android.util.Log import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import androidx.room.TypeConverters import androidx.sqlite.db.SupportSQLiteDatabase import kotlinx.coroutines.CoroutineScope import kotlinx...
stplayer/src/main/java/com/st/stplayer/renderer/util/ProjectionMatrixUtil.kt
unknown_repo
kotlin
package com.st.stplayer.renderer.util import android.opengl.GLES30 import android.opengl.Matrix class ProjectionMatrixUtil { companion object { // 矩阵数组 private val mProjectionMatrix = floatArrayOf(1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 0f, 1f) fun orthoM(progr...
app/src/main/java/com/google/firebase/ml/md/kotlin/objectdetection/ObjectDotGraphic.kt
unknown_repo
kotlin
/** * Created by Anand kashyap on 19,July,2020 */ package com.google.firebase.ml.md.kotlin.objectdetection import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.Paint.Style import android.graphics.PointF import com.google.firebase.ml.md.kotlin.camera.Grap...
sample/src/main/java/smartrecycleradapter/feature/MultipleViewTypesResolverActivity.kt
unknown_repo
kotlin
package smartrecycleradapter.feature /* * Created by Manne Öhlund on 2019-08-10. * Copyright (c) All rights reserved. */ import android.os.Bundle import android.view.View import android.widget.Toast import kotlinx.android.synthetic.main.activity_simple_item.* import smartadapter.* import smartadapter.listener.OnIt...
sample/src/main/java/genaku/github/com/sample/ViewPagerAdapter.kt
unknown_repo
kotlin
package genaku.github.com.sample import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentStatePagerAdapter class ViewPagerAdapter(fm: FragmentManager, private var titles: Array<CharSequence>, private var numbOfTabs: Int) : FragmentStatePagerAdapter(fm...
app/src/main/java/com/example/betterto_do/tasks/TaskDatabase.kt
unknown_repo
kotlin
package com.example.betterto_do.tasks import androidx.room.Database import androidx.room.RoomDatabase @Database(entities = [Task::class], version = 1, exportSchema = false) abstract class TaskDatabase: RoomDatabase() { abstract val taskDAO: TaskDAO abstract val subTaskDAO: TaskDAO }
app/src/androidTest/java/com/duckduckgo/app/tabs/IntentTabExtensionTest.kt
unknown_repo
kotlin
/* * Copyright (c) 2018 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 ...
app/src/main/kotlin/com/elifut/services/GoogleApiGameRoomHandler.kt
unknown_repo
kotlin
package com.elifut.services import android.app.Activity import android.content.Intent import android.os.Bundle import android.util.Log import android.view.WindowManager import com.elifut.R import com.elifut.models.GoogleApiConnectionResult import com.elifut.util.BaseGameUtils import com.google.android.gms.common.api.G...
app/src/main/java/com/hamzaahmedkhan/example/MainActivity.kt
unknown_repo
kotlin
package com.hamzaahmedkhan.example import android.os.Bundle import android.view.View import android.widget.Button import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.hamzaahmedkhan.circulartimerview.CircularTimerListener import com.hamzaahmedkhan.circulartimerview.CircularTimerView...
app/src/main/java/com/minapp/android/example/util/Util.kt
unknown_repo
kotlin
package com.minapp.android.example.util import android.app.Activity import android.app.Dialog import android.app.ProgressDialog import android.content.Context import android.content.pm.PackageManager import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import android.view.inputmethod.Inpu...
NLiteAVDemo-Android-Java/call-ui/src/main/java/com/netease/yunxin/nertc/ui/floating/FloatingWindowWrapper.kt
unknown_repo
kotlin
/* * Copyright (c) 2022 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be * found in the LICENSE file. */ package com.netease.yunxin.nertc.ui.floating import android.annotation.SuppressLint import android.content.Context import android.graphics.PixelFormat impor...
app/src/main/java/com/example/myapp/database/PhotoItem.kt
unknown_repo
kotlin
package com.example.myapp.database import androidx.room.Entity import androidx.room.PrimaryKey import com.google.gson.annotations.SerializedName @Entity(tableName = "photo") data class PhotoItem( @PrimaryKey @field:SerializedName("id") var id: String = "0", @field:SerializedName("owner") var owner: String? = n...
app/src/main/java/io/deus/wallet/modules/solananetwork/SolanaNetworkFragment.kt
unknown_repo
kotlin
package io.deus.wallet.modules.solananetwork import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundatio...
app/src/main/java/com/example/returnpals/mainMenu/HomeScreen.kt
unknown_repo
kotlin
package com.example.returnpals.mainMenu import MainMenuScaffold import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose....
composeApp/src/commonMain/kotlin/com/carpisoft/guau/pet/ui/screens/GetNamePetKind.kt
unknown_repo
kotlin
package com.carpisoft.guau.pet.ui.screens import androidx.compose.runtime.Composable import guau.composeapp.generated.resources.Res import guau.composeapp.generated.resources.cat import guau.composeapp.generated.resources.dog import guau.composeapp.generated.resources.other import org.jetbrains.compose.resources.Exper...
app/src/main/java/io/github/omisie11/spacexfollower/ui/launch_pads/LaunchPadsFragment.kt
unknown_repo
kotlin
package io.github.omisie11.spacexfollower.ui.launch_pads import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.Menu import android.view.MenuInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup import ...
app/src/main/java/cy/agorise/bitsybitshareswallet/fragments/TransactionsFragment.kt
unknown_repo
kotlin
package cy.agorise.bitsybitshareswallet.fragments import android.Manifest import android.content.pm.PackageManager import android.graphics.Point import android.os.Bundle import android.os.Environment import android.preference.PreferenceManager import android.view.* import androidx.appcompat.widget.SearchView import an...
app/src/main/java/com/masterplus/trdictionary/core/data/preferences/DefaultAppPreferencesImpl.kt
unknown_repo
kotlin
package com.masterplus.trdictionary.core.data.preferences import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.MutablePreferences import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.booleanPreferencesKey import androidx.datastore.preferences....
app/src/main/java/com/silkysys/umco/data/model/address/save/response/Cart.kt
unknown_repo
kotlin
package com.silkysys.umco.data.model.address.save.response import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class Cart( val id: Int, val billing_address : BillingAddress, val shipping_address : ShippingAddress ) : Parcelable
base/src/main/java/ja/burhanrashid52/base/ExtFunc.kt
unknown_repo
kotlin
package ja.burhanrashid52.base import android.app.Activity import android.arch.lifecycle.ViewModel import android.arch.lifecycle.ViewModelProviders import android.content.Context import android.content.pm.ActivityInfo import android.support.annotation.DrawableRes import android.support.annotation.IdRes import android....
ImagePickerLib/src/main/java/com/mx/imgpicker/db/MXSourceDB.kt
unknown_repo
kotlin
package com.mx.imgpicker.db import android.content.ContentValues import android.content.Context import android.database.Cursor import android.database.sqlite.SQLiteDatabase import android.database.sqlite.SQLiteOpenHelper import com.mx.imgpicker.models.DbSourceItem import com.mx.imgpicker.models.MXPickerType import com...
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter6_graphics/Tutorial6_23TabAnimation.kt
unknown_repo
kotlin
package com.smarttoolfactory.tutorial1_1basics.chapter6_graphics import androidx.compose.animation.core.AnimationSpec import androidx.compose.animation.core.FastOutSlowInEasing import androidx.compose.animation.core.LinearEasing import androidx.compose.animation.core.animateDpAsState import androidx.compose.animation....
common/ui/compose/src/androidMain/kotlin/app/tivi/common/compose/Coil.kt
unknown_repo
kotlin
// Copyright 2024, <NAME> and the Tivi project contributors // SPDX-License-Identifier: Apache-2.0 package app.tivi.common.compose import androidx.compose.ui.graphics.ImageBitmap import androidx.compose.ui.graphics.asImageBitmap import coil3.Image import coil3.annotation.ExperimentalCoilApi import coil3.toBitmap @Op...
app/src/main/java/com/codigodelsur/mlkit/feature/selfiesegmentation/presentation/navigation/SelfieSegmentationNavigation.kt
unknown_repo
kotlin
package com.codigodelsur.mlkit.feature.selfiesegmentation.presentation.navigation import androidx.navigation.NavController import androidx.navigation.NavGraphBuilder import androidx.navigation.NavOptions import androidx.navigation.compose.composable import com.codigodelsur.mlkit.feature.selfiesegmentation.presentation...
common/src/desktopMain/kotlin/chat/sphinx/common/chatMesssageUI/ExistingTribePreview.kt
unknown_repo
kotlin
package chat.sphinx.common.chatMesssageUI import Roboto import androidx.compose.foundation.Canvas import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.* import android...
app/src/main/java/ru/parcel/app/nav/home/HomeComponent.kt
unknown_repo
kotlin
package ru.parcel.app.nav.home import android.util.Log import com.arkivanov.decompose.ComponentContext import com.arkivanov.essenty.lifecycle.doOnResume import io.ktor.client.call.body import io.ktor.client.statement.HttpResponse import io.ktor.http.isSuccess import kotlinx.coroutines.CoroutineScope import kotlinx.cor...
app/src/main/java/com/kardia/membership/data/cache/UserInfoCache.kt
unknown_repo
kotlin
package com.kardia.membership.data.cache import android.content.Context import com.kardia.membership.data.cache.serializer.Serializer import com.kardia.membership.data.entities.UserInfo import com.kardia.membership.data.entities.UserToken import java.io.File import javax.inject.Inject import javax.inject.Singleton @S...
android/PostsComments/app/src/main/java/com/pradyotprakash/postscomments/app/pages/splash/view/SplashView.kt
unknown_repo
kotlin
package com.pradyotprakash.postscomments.app.pages.splash.view import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import andro...
presentation/src/commonMain/kotlin/kosh/presentation/wc/rememberProposal.kt
unknown_repo
kotlin
package kosh.presentation.wc import androidx.compose.runtime.Composable import kosh.domain.failure.WcFailure import kosh.domain.models.wc.WcProposal import kosh.domain.models.wc.WcProposalAggregated import kosh.domain.usecases.wc.WcProposalService import kosh.presentation.LoadContent import kosh.presentation.di.di @C...
app/src/main/java/com/mehmedmert/gameofthroneshouses/GameOfThronesHousesApplication.kt
unknown_repo
kotlin
package com.mehmedmert.gameofthroneshouses import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class GameOfThronesHousesApplication : Application()
ClassyTaxiAppKotlin/app/src/main/java/com/example/billing/gpbl/BillingClientLifecycle.kt
unknown_repo
kotlin
/* * Copyright 2018 Google LLC. All rights reserved. * * 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/cz/lamorak/koti/work/WorkCommander.kt
unknown_repo
kotlin
package cz.lamorak.koti.work import androidx.work.* import cz.lamorak.koti.favourites.model.FavouriteCat import cz.lamorak.koti.work.RemoveFavouriteWork.Companion.CAT_ID import java.time.Duration import java.util.concurrent.TimeUnit class WorkCommander(private val workManager: WorkManager) { fun addToFavourites(...
oops/src/main/kotlin/io/nichijou/oops/RippleAnimation.kt
unknown_repo
kotlin
package io.nichijou.oops import android.animation.Animator import android.animation.AnimatorListenerAdapter import android.animation.ValueAnimator import android.annotation.SuppressLint import android.content.Context import android.graphics.* import android.os.Build import android.view.MotionEvent import android.view....
app/src/androidTest/java/app/storytel/candidate/com/view/UserJourneyPostDetailTests.kt
unknown_repo
kotlin
package app.storytel.candidate.com.view import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.contrib.RecyclerViewActions.actionOnItemAtPosition import androidx.test.espresso.mat...
app/src/main/java/com/jsevilla/musicapp/presentation/feature/splash/SplashFragment.kt
unknown_repo
kotlin
package com.jsevilla.musicapp.presentation.feature.splash import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.jsevilla.musicapp.R import com.jsevilla.musicapp.presentation.base.BaseFragment import com.jsevilla.musi...
app/src/main/java/com/avex/ragraa/ui/calculator/CalculatorScreen.kt
unknown_repo
kotlin
package com.avex.ragraa.ui.calculator import androidx.activity.compose.BackHandler import androidx.compose.animation.animateContentSize import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Colu...
app/src/main/java/com/wikicious/app/modules/market/filtersresult/MarketFiltersResultViewModel.kt
unknown_repo
kotlin
package com.wikicious.app.modules.market.filtersresult import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.wikicious.app.core.subscribeIO import com.wikic...
common-core/src/commonMain/kotlin/com/beforeyoudie/common/applogic/impl/decompose/ComponentContextExt.kt
unknown_repo
kotlin
package com.beforeyoudie.common.applogic.impl.decompose import com.arkivanov.decompose.ComponentContext import com.arkivanov.essenty.lifecycle.doOnDestroy import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Job import kotlinx.coroutines.cancel import kotlinx.coroutines.plus import kotlin.coroutines.Coro...
feature/course-view/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/courseview/ui/WeeklyItemsUi.kt
unknown_repo
kotlin
package de.tum.informatics.www1.artemis.native_app.feature.course_view import android.os.Parcelable import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.com...
app/src/main/java/com/wkk/wanandroid/AppNavGraph.kt
unknown_repo
kotlin
/* * Copyright 2022 knight-kk * * 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 i...
colorpickerview/src/main/java/com/stevan/colorpickerview/ThrottledTouchEventHandler.kt
unknown_repo
kotlin
package com.stevan.colorpickerview import android.view.MotionEvent class ThrottledTouchEventHandler( private val updatable: Updatable, private val minInterval: Int = Constants.EVENT_MIN_INTERVAL ) { private var lastPassedEventTime = 0L fun onTouchEvent(event: MotionEvent) { val current = Sys...
app/src/main/java/es/upm/bienestaremocional/ui/screens/home/HomeViewModel.kt
unknown_repo
kotlin
package es.upm.bienestaremocional.ui.screens.home import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel import es.upm.bienestaremocional.data.Measure import es.upm.bienestaremocional.data.questionnaire.daily.DailyScoredQuestionnaire import es.up...
repository/src/main/kotlin/com/melih/repository/sources/PersistenceSource.kt
unknown_repo
kotlin
package com.melih.repository.sources import android.content.Context import com.melih.repository.Repository import com.melih.repository.entities.LaunchEntity import com.melih.repository.interactors.base.Failure import com.melih.repository.interactors.base.PersistenceEmpty import com.melih.repository.interactors.base.Re...
ViewPager22/app/src/main/java/com/app/mytaxi/utils/ViewModelProviderFactory.kt
unknown_repo
kotlin
package com.aravind.pepultask.utils import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import javax.inject.Singleton import kotlin.reflect.KClass @Singleton class ViewModelProviderFactory<T : ViewModel>( private val kClass: KClass<T>, // KClass is the holder of class of type ViewMode...
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Otter.kt
unknown_repo
kotlin
package me.localx.icons.straight.outline 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.Mite...
android/app/src/main/java/com/algorand/android/ui/wctransactiondetail/WalletConnectAppCallTransactionViewModel.kt
unknown_repo
kotlin
/* * Copyright 2019 Algorand, 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 in writing, s...
ui/src/main/java/com/khoshnaw/ui/base/adapter/BaseAdapter.kt
unknown_repo
kotlin
package com.khoshnaw.ui.base.adapter import androidx.recyclerview.widget.RecyclerView abstract class BaseAdapter<VH : BaseHolder> : RecyclerView.Adapter<VH>()
app/src/main/java/eu/kanade/tachiyomi/ui/webview/WebViewScreenModel.kt
unknown_repo
kotlin
package eu.kanade.tachiyomi.ui.webview import android.content.Context import androidx.core.net.toUri import cafe.adriel.voyager.core.model.StateScreenModel import eu.kanade.presentation.more.stats.StatsScreenState import eu.kanade.tachiyomi.animesource.online.AnimeHttpSource import eu.kanade.tachiyomi.network.NetworkH...
app/src/main/java/com/tinktest/sotiris/ui/gallery/adapter/PugsAdapter.kt
unknown_repo
kotlin
package se.onemanstudio.test.tink.ui.gallery.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import androidx.recyclerview.widget.RecyclerView import coil.load import se.onemanstudio.test.tink.R import se.onemanstudio.test.tink.databindin...
app/src/main/java/michaeljuarez/com/metropolitancouturier/adapters/CategoryAdapter.kt
unknown_repo
kotlin
package michaeljuarez.com.metropolitancouturier.adapters import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.list_item_category.view.* import kotlinx.android.synthetic.main.list_item_home_page.view...
foundation/worker/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/foundation/worker/implementation/module/WorkerModule.kt
unknown_repo
kotlin
/* Copyright 2022 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distribu...
app/src/main/java/com/vwoom/timelapsegallery/data/source/IWeatherRemoteDataSource.kt
unknown_repo
kotlin
package com.vwoom.timelapsegallery.data.source import android.location.Location import com.vwoom.timelapsegallery.weather.data.ForecastResponse import com.vwoom.timelapsegallery.weather.WeatherResult interface IWeatherRemoteDataSource { // Get the forecast from the national weather service api // Returns eith...
androtron/src/main/java/com/publicmethod/androtron/chambers/PrimeCranialChamber.kt
unknown_repo
kotlin
package com.publicmethod.androtron.chambers import android.arch.lifecycle.LiveData import android.arch.lifecycle.MediatorLiveData import android.arch.lifecycle.ViewModel import com.publicmethod.androtron.datatron.actions.Action import com.publicmethod.androtron.datatron.actions.NavigationAction import com.publicmethod...
plugins/kotlin/compiler-reference-index/src/org/jetbrains/kotlin/idea/search/refIndex/KotlinCompilerRefHelper.kt
unknown_repo
kotlin
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.kotlin.idea.search.refIndex import com.intellij.compiler.backwardRefs.LanguageCompilerRefAdapter import com.intellij.openapi.application.r...
app/src/main/java/ch/magdenbt/a1ccaclient/presentations/dashboard/ScenariosDiffUtil.kt
unknown_repo
kotlin
package ch.magdenbt.a1ccaclient.presentations.dashboard import androidx.recyclerview.widget.DiffUtil import ch.magdenbt.a1ccaclient.model.scenarios.entities.Scenario class ScenariosDiffUtil : DiffUtil.ItemCallback<Scenario>() { override fun areItemsTheSame(oldItem: Scenario, newItem: Scenario): Boolean { ...
commons/src/main/kotlin/com/simplemobiletools/commons/activities/FAQActivity.kt
unknown_repo
kotlin
package com.simplemobiletools.commons.activities import android.os.Bundle import android.view.LayoutInflater import com.simplemobiletools.commons.R import com.simplemobiletools.commons.extensions.baseConfig import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor import com.simplemobiletools.commons.ext...
app/src/main/java/com/enons/vehicleapp/presentation/screens/viewmodel/HourlyFeeViewModel.kt
unknown_repo
kotlin
package com.enons.vehicleapp.presentation.screens.hourlyFeePage.viewmodel import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.enons.vehicleapp.data.local.model.HourlyFee import com.enons.vehicleapp.data.repository.VehiclesRepository import dagger.hilt.android.lifecycle.HiltViewModel...
chat-gui/src/main/java/ru/usedesk/chat_gui/chat/messages/MessagesPage.kt
unknown_repo
kotlin
package ru.usedesk.chat_gui.chat.messages import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import androidx.recyclerview.widget.RecyclerView import com.google.an...
domain/src/main/java/studio/lunabee/onesafe/domain/usecase/item/GetPagerItemByParentUseCase.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 Lunabee Studio * * 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/com/sanjeevyadavit/magecart/common/components/StateContainer.kt
unknown_repo
kotlin
package com.sanjeevyadavit.magecart.common.components import androidx.compose.foundation.layout.Column import androidx.compose.material.CircularProgressIndicator import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import com.sanjeevyadavit.magecart.commo...
chapter-final/app/src/main/java/com/example/learnwithme/data/datasource/character/database/query/CharacterDatabaseQueries.kt
unknown_repo
kotlin
package com.example.learnwithme.data.datasource.character.database.query import androidx.room.Dao import androidx.room.RoomDatabase import com.example.learnwithme.data.datasource.character.database.dbo.CharacterEntity import com.example.learnwithme.manager.database.BaseDao @Dao abstract class CharacterDao(roomDataba...
core/src/main/java/com/jn/kikukt/adapter/ViewPager2Adapter.kt
unknown_repo
kotlin
package com.jn.kikukt.adapter import android.util.SparseArray import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.viewpager2.adapter.FragmentStateAdapter /** * Author:Stevie.Chen Time:2020/7/15 * Class Comment:ViewPager2Adapter */ class BaseFragmentStateAdapter : Fr...
app/src/main/java/com/example/test/vm/ObservableViewModel.kt
unknown_repo
kotlin
package com.example.test.vm import androidx.databinding.Observable import androidx.lifecycle.ViewModel abstract class ObservableViewModel : ViewModel(), Observable{ override fun removeOnPropertyChangedCallback(callback: Observable.OnPropertyChangedCallback?) { removeOnPropertyChangedCallback(callback) ...
Basic/FragDemoSimple_kt/app/src/main/java/edu/cs4730/fragdemosimple_kt/twoFragment.kt
unknown_repo
kotlin
package edu.cs4730.fragdemosimple_kt import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import edu.cs4730.fragdemosimple_kt.databinding.FragmentTwoBinding /** * A simple fragment class. this is the most basic code....
app/src/main/kotlin/io/github/joaoevangelista/convertx/op/Units.kt
unknown_repo
kotlin
package io.github.joaoevangelista.convertx.op import android.support.annotation.StringRes import android.util.Pair import io.github.joaoevangelista.convertx.R import io.github.joaoevangelista.convertx.op.ConversionTypes.AREA import io.github.joaoevangelista.convertx.op.ConversionTypes.FORCES import io.github.joaoevang...
demo/src/main/kotlin/com/leovp/demo/basiccomponents/examples/bluetooth/BluetoothClientActivity.kt
unknown_repo
kotlin
package com.leovp.demo.basiccomponents.examples.bluetooth import android.annotation.SuppressLint import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothGatt import android.bluetooth.BluetoothGattCallback import android.bluetooth.BluetoothGattCharacteristic import android.bluetooth.BluetoothProfile ...
imageloaderview/src/main/java/com/kpstv/imageloaderview/Compat.kt
unknown_repo
kotlin
package com.kpstv.imageloaderview import android.graphics.drawable.Drawable import android.os.Build import androidx.core.graphics.BlendModeColorFilterCompat import androidx.core.graphics.BlendModeCompat import androidx.core.graphics.drawable.DrawableCompat internal class Compat { companion object { fun se...
app/src/main/java/com/thing/allied/LoginActivity.kt
unknown_repo
kotlin
package com.thing.allied import android.os.Bundle import android.util.Log import android.view.View import android.widget.* import com.google.firebase.auth.FirebaseAuth import com.thing.allied.handler.UserHandler import kotlinx.android.synthetic.main.activity_login.* class LoginActivity : AppActivity() { privat...
src/main/java/org/mtransit/android/commons/ContextExt.kt
unknown_repo
kotlin
@file:Suppress("unused") package org.mtransit.android.commons import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.os.PowerManager import androidx.annotation.StringRes import androidx.core.content.ContextCompat @JvmOv...
app/src/main/java/com/yoesuv/infomalangbatu/widgets/ForegroundRelativeLayout.kt
unknown_repo
kotlin
package com.yoesuv.infomalangbatu.widgets import android.content.Context import android.graphics.Canvas import android.graphics.drawable.Drawable import android.os.Build import android.util.AttributeSet import android.view.ViewOutlineProvider import android.widget.RelativeLayout import com.yoesuv.infomalangbatu.R /**...