file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/jet/pack/compose/masterdetails/ui/components/Pokeball.kt | unknown_repo | kotlin | package jet.pack.compose.masterdetails.ui.components
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememb... |
app/src/main/java/me/li2/movies/ui/widgets/reviews/ReviewViewHolder.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 2020-04-26.
* https://github.com/li2
*/
package me.li2.movies.ui.widgets.reviews
import android.view.ViewGroup
import me.li2.movies.R
import me.li2.movies.base.BaseViewHolder
import me.li2.movies.data.model.MovieReviewUI
import me.li2.movies.databinding.ReviewItemViewBinding
class ReviewV... |
app/src/main/java/com/example/rocketreserver/presentation/viewmodel/login/LoginViewModel.kt | unknown_repo | kotlin | package com.example.rocketreserver.presentation.viewmodel.login
import android.util.Patterns
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.rocketreserver.R
import com.example.rocketreserver.domain.ext.collect
import com.example.rocketreserver.domain.interactor.login.Lo... |
app/src/main/java/com/steve_md/smartmkulima/ui/fragments/auth/EmailVerificationFragment.kt | unknown_repo | kotlin | //package com.steve_md.smartmkulima.ui.fragments.auth
//
//import android.annotation.SuppressLint
//import android.os.Bundle
//import android.os.CountDownTimer
//import android.view.LayoutInflater
//import android.view.View
//import android.view.ViewGroup
//import androidx.appcompat.app.AppCompatActivity
//import andro... |
composeApp/src/desktopMain/kotlin/com/alekso/dltstudio/timeline/filters/edit/EditTimelineFilterExtractPanel.kt | unknown_repo | kotlin | package com.alekso.dltstudio.timeline.filters.edit
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androi... |
shrine/app/src/main/java/com/google/codelabs/mdc/kotlin/shrine/component/products/cart/CartProductViewHolder.kt | unknown_repo | kotlin | package com.google.codelabs.mdc.kotlin.shrine.component.products.cart
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.google.codelabs.mdc.kotlin.shrine.R
import com.google.codelabs.mdc.kotlin.shrine.network.Ima... |
app/src/main/java/com/example/mycookbook/ui/recyclerview/adapter/ListaDeReceitasAdapter.kt | unknown_repo | kotlin | package com.example.mycookbook.ui.recyclerview.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.PopupMenu
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.L... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Quotedown.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.linear
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.... |
app/src/androidTest/java/com/mvp/moviedbapi/MainActivityTest.kt | unknown_repo | kotlin | package com.mvp.moviedbapi
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.action.ViewActions.*
import android.support.test.espresso.assertion.ViewAssertions.matches
import android.support.test.espresso.matcher.RootMatchers.withDecorView
import android.support.test.espresso.ma... |
core/src/main/java/com/ymy/core/manager/WebUploadMediaHelper.kt | unknown_repo | kotlin | package com.ymy.core.manager
import com.ymy.core.Ktx
import com.ymy.core.upload.OSSManager
import com.ymy.core.upload.UploadUtils
import com.ymy.core.upload.UploadViewModel
import com.ymy.core.utils.MediaFileUtil
import com.ymy.core.utils.MediaUtils
import com.ymy.core.utils.ToastUtils
import java.io.File
import java.... |
app/src/main/java/info/spreadcode/jetpacknavigationgraph/fragments/ReviewOrderFragment.kt | unknown_repo | kotlin | package info.spreadcode.jetpacknavigationgraph.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import info.spreadcode.jetpacknavigationgraph.Vertica... |
base/src/main/java/moadgara/base/extension/WindowExt.kt | unknown_repo | kotlin | package moadgara.base.extension
import android.os.Build
import android.view.Window
import androidx.core.view.WindowCompat
fun Window.applyFullScreen() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
WindowCompat.setDecorFitsSystemWindows(this, false)
} else {
@Suppress("DEPRECATION")
... |
pickle-processor/src/test/java/com/fourlastor/pickle/PickleTest.kt | unknown_repo | kotlin | package com.fourlastor.pickle
import com.google.common.io.Resources
import com.google.testing.compile.Compilation
import com.google.testing.compile.CompilationSubject
import com.google.testing.compile.CompilationSubject.assertThat
import com.google.testing.compile.Compiler.javac
import com.google.testing.compile.JavaF... |
app/src/main/java/com/sw1pr0g/goxtype_android/ui/auth/AuthLogInFragment.kt | unknown_repo | kotlin | package com.sw1pr0g.goxtype_android.ui.auth
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/videoaudiosound/GalleryAdd.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.videoaudiosound
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.St... |
invert-report/src/jsMain/kotlin/com/squareup/invert/common/pages/ArtifactsReportPage.kt | unknown_repo | kotlin | package com.squareup.invert.common.pages
import PagingConstants.MAX_RESULTS
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import com.squareup.invert.common.DependencyGraph
import com.squareup.invert.common.InvertReportPage
import com... |
app/src/main/java/com/github/vitorfg8/popcorn/home/populartvshows/ui/PopularTvShowsFragment.kt | unknown_repo | kotlin | package com.github.vitorfg8.popcorn.home.populartvshows.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.github.vitorfg8.popcorn.databinding.FragmentPopularTvShowsBinding
import com.github.vitorfg8.pop... |
src/pt/anitube/src/eu/kanade/tachiyomi/animeextension/pt/anitube/extractors/AnitubeDownloadExtractor.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.pt.anitube.extractors
import android.util.Log
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.util.asJsoup
import eu.kanade.tachiyomi.util.parallelMapNotNullBlocking
i... |
appyx-interactions/common/src/commonMain/kotlin/com/bumble/appyx/interactions/core/ui/property/impl/AngularPosition.kt | unknown_repo | kotlin | package com.bumble.appyx.interactions.ui.property.impl
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.AnimationVector2D
import androidx.compose.animation.core.Easing
import androidx.compose.animation.core.TwoWayConverter
import androidx.compose.foundation.layout.offset
import ... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ArrowIteration.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
library/src/main/java/com/dylanc/loadingstateview/LoadingStateView.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019. Dylan Cai
*
* 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 t... |
app/src/main/java/edu/hm/pedemap/viewmodel/PreferencesViewModel.kt | unknown_repo | kotlin | package edu.hm.pedemap.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import edu.hm.pedemap.BApplication
import edu.hm.pedemap.model.entity.LOG_LEVEL_INFO
import edu.hm.pedemap.util.*
class PreferencesViewModel(application: Application) : AndroidViewModel(application) {
priva... |
app/src/main/java/edu/hm/pedemap/viewmodel/PreferencesViewModel.kt | unknown_repo | kotlin | package edu.hm.pedemap.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import edu.hm.pedemap.BApplication
import edu.hm.pedemap.model.entity.LOG_LEVEL_INFO
import edu.hm.pedemap.util.*
class PreferencesViewModel(application: Application) : AndroidViewModel(application) {
priva... |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/compat/workaround/AutoFlashAEModeDisabler.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... |
app/src/main/java/org/ranapat/instancefactory/example/MainActivity.kt | unknown_repo | kotlin | package org.ranapat.instancefactory.example
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import org.ranapat.instancefactory.InstanceFactory
import org.ranapat.instancefactory.Namespace
import org.ranapat.instancefactory.Stats
import org.ranapat.instancefactory.get
im... |
app/src/main/java/ca/josephroque/bowlingcompanion/utils/Facebook.kt | unknown_repo | kotlin | package ca.josephroque.bowlingcompanion.utils
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import ca.josephroque.bowlingcompanion.R
/**
* Copyright (C) 2018 <NAME>
*
* Handles Facebook related actions.
*/
object Facebook {
@Su... |
app/src/androidTest/kotlin/com/mgaetan89/showsrage/extension/preferences/SharedPreferencesExtension_GetEpisodeSortTest.kt | unknown_repo | kotlin | package com.mgaetan89.showsrage.extension.preferences
import android.content.SharedPreferences
import android.support.test.InstrumentationRegistry
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import com.mgaetan89.showsrage.TestActivity
import com.mgaetan89.showsrag... |
app/src/main/java/com/pusatruq/muttabaah/data/local/room/maps/GolfHoleEntity.kt | unknown_repo | kotlin | package com.pusatruq.muttabaah.data.local.room.maps
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import com.pusatruq.muttabaah.util.getRelativeTime
/**
* Created by cuongpm on 12... |
app/src/main/java/me/jfenn/alarmio/data/preference/BasePreferenceData.kt | unknown_repo | kotlin | package me.jfenn.alarmio.data.preference
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import me.jfenn.alarmio.Alarmio
abstract class BasePreferenceData<V : BasePreferenceData.ViewHolder> {
... |
app/src/main/java/com/acme/twitteradeater/Utils.kt | unknown_repo | kotlin | package com.acme.twitteradeater
import android.util.Log
import android.view.View
import android.view.ViewGroup
import androidx.core.view.children
import de.robv.android.xposed.XSharedPreferences
import de.robv.android.xposed.XposedBridge
private const val TAG: String = "TwitterAdEater"
class Utils {
companion ob... |
codebase/android/feature/categories/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/categories/categories/viewmodel/CategoriesScreenViewModel.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.feature.categories.categories.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.makeappssimple.abhimanyu.financemanager.android.core.common.extensions.combineAndCollectLatest
import com.makeappssimple.abhimanyu.... |
app/src/main/java/com/example/practiceapplicationbrg/Register.kt | unknown_repo | kotlin | package com.example.practiceapplicationbrg
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import... |
app/src/main/java/org/listenbrainz/android/viewmodel/SocialViewModel.kt | unknown_repo | kotlin | package org.listenbrainz.android.viewmodel
import android.net.Uri
import android.util.Log
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
impo... |
app/src/main/java/me/wcy/music/discover/home/viewmodel/DiscoverViewModel.kt | unknown_repo | kotlin | package me.wcy.music.discover.home.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.async
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutine... |
app/src/main/java/com/vanpra/composematerialdialogs/demos/BasicDialog.kt | unknown_repo | kotlin | package com.vanpra.composematerialdialogs.demos
import androidx.compose.Composable
import com.vanpra.composematerialdialogs.DialogAndShowButton
import com.vanpra.composematerialdialogs.R
@Composable
fun BasicDialogDemo() {
DialogAndShowButton(buttonText = "Basic Dialog") {
title(res = R.string.location_di... |
feature/result/src/test/java/com/vproject/texttoimage/feature/result/ResultViewModelTest.kt | unknown_repo | kotlin | package com.vproject.texttoimage.feature.result
import com.vproject.texttoimage.core.testing.util.MainDispatcherRule
import org.junit.Before
import org.junit.Rule
class ResultViewModelTest {
@get:Rule
val mainDispatcherRule = MainDispatcherRule()
private lateinit var SUT: ResultViewModel
@Before
... |
EmojiPanel/src/main/java/com/binlee/emoji/DebugApplication.kt | unknown_repo | kotlin | package com.binlee.emoji
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
class DebugApplication : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
sApp = this
}
companion object {
@SuppressLint("Static... |
library/src/main/java/io/github/wax911/library/converter/GraphConverterKotlinxSerialization.kt | unknown_repo | kotlin | package io.github.wax911.library.converter
import android.content.Context
import com.jakewharton.retrofit2.converter.kotlinx.serialization.asConverterFactory
import io.github.wax911.library.annotation.processor.GraphProcessor
import io.github.wax911.library.converter.request.GraphRequestConverterKotlinSerialization
im... |
app/src/main/java/com/hafizhnotes/currencyconversion/room/dao/CurrencyLiveRoomDao.kt | unknown_repo | kotlin | package com.hafizhnotes.currencyconversion.room.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.hafizhnotes.currencyconversion.data.constant.DBConstant
import com.hafizhnotes.currencyconversion.roo... |
app/src/main/java/com/hafizhnotes/currencyconversion/room/dao/CurrencyLiveRoomDao.kt | unknown_repo | kotlin | package com.hafizhnotes.currencyconversion.room.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.hafizhnotes.currencyconversion.data.constant.DBConstant
import com.hafizhnotes.currencyconversion.roo... |
Examples/Counter/android/app/src/main/java/dev/strohmnative/example/counter/MainActivity.kt | unknown_repo | kotlin | package dev.strohmnative.example.counter
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import dev.strohmnative.PropSpec
import dev.strohmnative.example.counter.d... |
seventools/src/main/java/me/sieben/seventools/xtensions/FragmentExtensions.kt | unknown_repo | kotlin | @file:Suppress("unused")
package me.sieben.seventools.xtensions
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
fun Fragment.toast(message: CharSequence?, duration: Int = Toast.LENGTH_LONG) {
context?.toast(message, duration)
}
fun Fragment.toast(@StringRes... |
app/src/main/java/com/naufatio/BookApp/MainActivity.kt | unknown_repo | kotlin | package com.naufatio.BookApp
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.setupWithNavController
import com.google.android.material.bottomnavigation.BottomNavigationV... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/TextMore.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
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.Filled.TextMore: ImageVector
get() {
if (_textMore != null) {
... |
app/src/main/java/com/lj/app/composable/music/MusicExpandedComposable.kt | unknown_repo | kotlin | package com.lj.app.composable.music
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.aspec... |
ComposeSamples/DualView/src/main/java/com/microsoft/device/display/samples/dualview/models/AppStateViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.device.display.samples.dualview.models
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
enum class ScreenState {
SingleScree... |
app/src/main/java/com/project/googlemaps2020/adapters/ChatroomsAdapter.kt | unknown_repo | kotlin | package com.project.googlemaps2020.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.... |
app/src/main/java/com/fredrikbogg/movie_app/data/db/repository/PersonRepository.kt | unknown_repo | kotlin | package com.fredrikbogg.movie_app.data.db.repository
import androidx.lifecycle.MutableLiveData
import com.fredrikbogg.movie_app.data.db.remote.TheMovieDatabaseAPI
import com.fredrikbogg.movie_app.data.model.entity.Credit
import com.fredrikbogg.movie_app.data.model.entity.Image
import com.fredrikbogg.movie_app.data.mod... |
collection/collection/src/main/java/vn/tiki/android/collection/AdapterListUpdateCallback.kt | unknown_repo | kotlin | /*
* Copyright 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 applica... |
app/src/main/java/com/bytemedrive/navigation/AppNavigation.kt | unknown_repo | kotlin | package com.bytemedrive.navigation
import android.content.Context
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import an... |
app/src/main/java/com/jackzhao/simplekv/MainActivity.kt | unknown_repo | kotlin | package com.jackzhao.simplekv
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.run... |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheetActivity.kt | unknown_repo | kotlin | package com.stripe.android.paymentsheet
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.ScrollView
import androidx.activity.viewModels
import androidx.annotation.VisibleForT... |
data/src/main/kotlin/com/bertholucci/data/di/DatabaseModule.kt | unknown_repo | kotlin | package com.bertholucci.data.di
import android.app.Application
import androidx.room.Room
import com.bertholucci.data.database.Database
import com.bertholucci.data.database.DatabaseDao
import org.koin.android.ext.koin.androidApplication
import org.koin.dsl.module
const val DATABASE_NAME = "app-db"
val databaseModule ... |
src/jvmMain/kotlin/dev/romainguy/kotlin/explorer/KotlinExplorer.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 Romain Guy
*
* 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... |
analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/modifierLists/SymbolLightMemberModifierList.kt | unknown_repo | kotlin | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.light.classes.symbol.modifierLists
import com.intellij.openapi.util.TextRange
im... |
app/src/main/java/com/genar/e_market/productList/ui/ProductListFragment.kt | unknown_repo | kotlin | package com.genar.e_market.productList.ui
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.Fragment
import android... |
library/src/main/java/github/hongbeomi/library/StackBlurNative.kt | unknown_repo | kotlin | package github.hongbeomi.library
import android.graphics.Bitmap
import java.util.concurrent.Callable
import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
class StackBlurNative {
companion object {
val EXECUTOR_THREADS = Runtime.getRuntime().availableProcessors()
val... |
features/salarySummary/src/main/java/com/shekharhandigol/salarysummary/SalarySummaryScreens.kt | unknown_repo | kotlin | package com.shekharhandigol.salarysummary
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.found... |
app/src/main/java/com/jintin/koinsample/MyApplication.kt | unknown_repo | kotlin | package com.jintin.koinsample
import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.core.context.startKoin
import org.koin.core.qualifier.named
import org.koin.dsl.module
class MyApplication : Application() {
override fun on... |
chat/src/main/java/com/crafttalk/chat/presentation/holders/HolderAction.kt | unknown_repo | kotlin | package com.crafttalk.chat.presentation.holders
import android.content.res.ColorStateList
import android.util.TypedValue
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.res.ResourcesCompat
import androidx.core.view.ViewCompat
import com.crafttalk.chat.... |
app/src/main/java/com/rapid_rabbit/ultimate_mastermind_prototype/ui/component/trial_body/GuessRow.kt | unknown_repo | kotlin | package com.rapid_rabbit.ultimate_mastermind_prototype.ui.component.trial_body
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.height
import andr... |
app/src/main/java/com/github/gmkornilov/chess_puzzle_book/ui/puzzle/PuzzleFragment.kt | unknown_repo | kotlin | package com.github.gmkornilov.chess_puzzle_book.ui.puzzle
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.fragment.app.view... |
app/src/main/java/com/hsnbyhn/pokeinfo/PokeInfoApp.kt | unknown_repo | kotlin | package com.hsnbyhn.pokeinfo
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
/**
* Created by hasanbayhan on 7.11.2020
**/
@HiltAndroidApp
class PokeInfoApp : Application() |
app/src/commonMain/kotlin/com/addhen/job/search/JobSearchCompose.kt | unknown_repo | kotlin | // Copyright (C) 2024, Henry Addo
// SPDX-License-Identifier: Apache-2.0
package com.addhen.job.search
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import android... |
app/src/main/java/com/darryncampbell/datawedgekotlin/MainActivity.kt | unknown_repo | kotlin | package com.darryncampbell.datawedgekotlin
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.support.v7.app.AppCompatActivity;
import android.view.Menu
import android.view.MenuItem
import kotlinx.android.synthetic.main.activity_main.*
import kotlinx.android.synt... |
app/src/main/java/com/donfreddy/troona/ui/helpers/neumorphism/shape/Flat.kt | unknown_repo | kotlin | /*
=============
Author: <NAME>
Github: https://github.com/donfreddy
Website: https://donfreddy.com
=============
Application: Troona - Music Player
Homepage: https://github.com/donfreddy/troona
License: https://github.com/donfreddy/troona/blob/main/LICENSE
Copyright: © 2023, <NAME>. All rights reserved.
=============
... |
app/src/main/java/com/appacoustic/rt/presentation/settings/SettingsViewModel.kt | unknown_repo | kotlin | package com.appacoustic.rt.presentation.settings
import androidx.lifecycle.viewModelScope
import com.appacoustic.rt.data.analytics.AnalyticsTrackerComponent
import com.appacoustic.rt.domain.UserSession
import com.appacoustic.rt.framework.base.viewmodel.BaseViewModel
import com.appacoustic.rt.presentation.settings.anal... |
app/src/main/java/antuere/how_are_you/presentation/screens/history/ui_compose/components/HistoryHeaderText.kt | unknown_repo | kotlin | package antuere.how_are_you.presentation.screens.history.ui_compose.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material3.Mate... |
defitrack-rest/defitrack-protocol-service/src/main/java/io/defitrack/protocol/kyberswap/pooling/KyberElasticPoolingMarketProvider.kt | unknown_repo | kotlin | package io.defitrack.protocol.kyberswap.pooling
import io.defitrack.common.network.Network
import io.defitrack.common.utils.AsyncUtils.lazyAsync
import io.defitrack.common.utils.FormatUtilsExtensions.asEth
import io.defitrack.common.utils.Refreshable.Companion.refreshable
import io.defitrack.conditional.ConditionalOnC... |
sources/app/src/main/java/com/mikyegresl/valostat/features/player/exoplayer/newer/BasicMediaPlayer.kt | unknown_repo | kotlin | package com.mikyegresl.valostat.features.player.exoplayer.newer
import android.content.Context
import androidx.lifecycle.Lifecycle
import androidx.media3.common.MediaItem
import androidx.media3.datasource.DataSource
import androidx.media3.datasource.DefaultDataSource
import androidx.media3.exoplayer.ExoPlayer
import a... |
src/main/java/com/sygic/travel/sdk/utils/functions.kt | unknown_repo | kotlin | package com.sygic.travel.sdk.utils
import android.os.Looper
import org.koin.core.scope.Scope
internal fun checkNotRunningOnMainThread() {
if (Looper.myLooper() == Looper.getMainLooper()) {
throw IllegalStateException("Cannot access Sygic Travel SDK on the main thread since it may lock the UI for a long period of t... |
Lesson09-ToDo-List/T09.02-Exercise-AddURIsToContract/app/src/main/java/com/example/android/todolist/data/TaskContract.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 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 applicable l... |
core-db/src/androidTest/java/jp/co/soramitsu/coredb/dao/DaoTest.kt | unknown_repo | kotlin | package jp.co.soramitsu.coredb.dao
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import jp.co.soramitsu.coredb.AppDatabase
import org.junit.After
import org.junit.Before
import java.io.IOException
abstract class DaoTest<D : Any>(private val daoFetcher: (App... |
Basic/src/main/java/org/myspecialway/android/dao/ScheduleDao.kt | unknown_repo | kotlin | package org.myspecialway.android.dao
import android.arch.persistence.room.*
@Entity
data class Lesson(
@PrimaryKey(autoGenerate = true)
val id: Long,
val title: String,
val icon: Int
)
@Entity
data class Location(
@PrimaryKey(autoGenerate = true)
val id: Long,
... |
app/src/main/java/ru/breffi/storyidsample/repository/permissons/PermissionRequesterFactory.kt | unknown_repo | kotlin | package ru.breffi.storyidsample.repository.permissons
import android.content.Context
import android.content.Intent
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.Deferred
internal interface PermissionRequesterFactory {
fun getRequesterAsync(context: Context): Deferred<PermissionRequester... |
yi/consumer/src/main/java/engineer/echo/yi/consumer/ui/main/MainViewModel.kt | unknown_repo | kotlin | package engineer.echo.yi.consumer.ui.main
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import engineer.echo.easyapi.EasyApi
import engineer.echo.yi.consumer.cmpts.weibo.User
import engineer.echo.yi.consumer.cm... |
app/src/main/java/com/huawei/codelabs/hihealth/happysport/data/TimeSeqDataDao.kt | unknown_repo | kotlin | package com.huawei.codelabs.hihealth.happysport.data
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface TimeSeqDataDao {
@Query("SELECT * FROM time_seq_datas")
fun getTimeSeqDatas(): LiveData... |
app/src/main/java/com/nonetxmxy/mmzqfxy/tools/PreventMultiClickListener.kt | unknown_repo | kotlin | package com.nonetxmxy.mmzqfxy.tools
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.Toolbar
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.listener.OnItemChildClickListener
import com.chad.library.adapter.base.listener.OnItemClickListen... |
wallet/src/main/java/com/android/identity/issuance/remote/StorageImpl.kt | unknown_repo | kotlin | package com.android.identity.issuance.remote
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import com.android.identity.flow.server.Storage
import com.android.identity.util.Logger
import kotlinx.io.bytestring.ByteString
import java.util.UUID
import jav... |
player/streaming-privileges/src/test/kotlin/com/tidal/sdk/player/streamingprivileges/connection/websocketevents/OnWebSocketMessageTest.kt | unknown_repo | kotlin | package com.tidal.sdk.player.streamingprivileges.connection.websocketevents
import android.os.Handler
import com.tidal.sdk.player.streamingprivileges.StreamingPrivilegesEventDispatcher
import com.tidal.sdk.player.streamingprivileges.connection.CloseReason
import com.tidal.sdk.player.streamingprivileges.connection.Conn... |
Newsify/app/src/main/java/com/example/newsify/MainActivity.kt | unknown_repo | kotlin | package com.example.newsify
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.newsify.adapters.OnAdapterClickListener
import com.example.newsify.retrofit.response.Article
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : AppCompatActivity() ... |
app/src/main/java/com/mreigar/cardwalletapp/camera/CardAnalyzer.kt | unknown_repo | kotlin | package com.mreigar.cardwalletapp.camera
import android.annotation.SuppressLint
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.google.firebase.ml.vision.FirebaseVision
import com.google.firebase.ml.vision.common.FirebaseVisionImage
import com.google.firebase.ml.vision.commo... |
app/src/main/java/xyz/arkarhein/kunyi/data/models/JobListModel.kt | unknown_repo | kotlin | package xyz.arkarhein.kunyi.data.models
import android.arch.lifecycle.MutableLiveData
import android.content.Context
import android.util.Log
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.android.gms.tasks.OnCompleteListener
import com.google.android.gms.tasks.OnFailureListener
imp... |
app/src/main/java/com/enginebai/moviehunt/ui/list/LoadMoreView.kt | unknown_repo | kotlin | package com.enginebai.moviehunt.ui.list
import android.view.View
import com.airbnb.epoxy.EpoxyModel
import com.airbnb.epoxy.EpoxyModelClass
import com.enginebai.moviehunt.R
@EpoxyModelClass(layout = R.layout.view_load_more)
abstract class LoadMoreView : EpoxyModel<View>() |
app/src/main/kotlin/ui/activities/StationFinder.kt | unknown_repo | kotlin | package ui.activities
import android.graphics.Color
import android.view.Gravity
import android.view.View
import android.widget.EditText
import android.widget.ListView
import android.widget.TextView
import android.widget.Toast
import com.yaya.map.R
import ui.cells.sataionCells.SingleStationCell
import ui.cells.sataionC... |
multipicker/src/main/java/com/edwardstock/multipicker/picker/ui/FilesFragment.kt | unknown_repo | kotlin | package com.edwardstock.multipicker.picker.ui
import android.annotation.SuppressLint
import android.content.Context
import android.net.Uri
import android.os.Bundle
import android.os.Parcelable
import android.view.LayoutInflater
import android.view.Surface
import android.view.View
import android.view.ViewGroup
import a... |
vector/src/main/java/vmodev/clearkeep/viewmodels/TextFileRestoreBackupKeyFragmentViewModel.kt | unknown_repo | kotlin | package vmodev.clearkeep.viewmodels
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import org.matrix.androidsdk.crypto.data.ImportRoomKeysResult
import vmodev.clearkeep.repositories.KeyBackupRepository
import vmodev.clearkeep.viewmodelobjects.Reso... |
app/src/main/java/com/ts/smshubconnect/SMSReceiver.kt | unknown_repo | kotlin | package com.ts.smshubconnect
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.provider.Telephony
import android.util.Log.*
class SMSReceiver : BroadcastReceiver() {
private var TAG = "SmsBroadcastReceiver"
private lateinit var serviceProv... |
room/src/main/java/app/slyworks/room/AppDatabase.kt | unknown_repo | kotlin | package app.slyworks.room
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import app.slyworks.room.daos.DataDao
import app.slyworks.room.daos.FavoritesDao
import app.slyworks.room.models.CryptoModelIDRoom
import app.slyworks.room.models.CryptoMod... |
core/src/main/kotlin/io/rover/core/permissions/PermissionsNotifier.kt | unknown_repo | kotlin | package io.rover.core.permissions
import android.content.Context
import android.content.pm.PackageManager
import android.support.v4.content.ContextCompat
import io.rover.core.logging.log
import io.rover.core.streams.PublishSubject
import io.rover.core.streams.Publishers
import org.reactivestreams.Publisher
import io.r... |
app/src/main/java/viacheslav/chugunov/appalet/ui/view/ColoredButtonView.kt | unknown_repo | kotlin | package viacheslav.chugunov.appalet.ui.view
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.ButtonDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.... |
app/src/main/java/com/example/hobbyfi/state/EventState.kt | unknown_repo | kotlin | package com.example.hobbyfi.state
import com.example.hobbyfi.models.data.Event
import com.example.hobbyfi.responses.Response
import kotlinx.coroutines.flow.StateFlow
sealed class EventState : State {
object Idle : EventState()
object Loading : EventState()
sealed class OnData : EventState() {
dat... |
composeApp/src/iosMain/kotlin/App.ios.kt | unknown_repo | kotlin | import ScanbotBarcodeScannerSDK.Scanbot
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.interop.UIKitViewController
import kotlinx.cinterop.ExperimentalForeignAp... |
fxgl/src/main/kotlin/com/almasb/fxgl/input/InputMapping.kt | unknown_repo | kotlin | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.input
import javafx.scene.input.KeyCode
import javafx.scene.input.MouseButton
/**
* Basic mapping of action name to its trigger.
*
* @author <NAME> (AlmasB) (<EMAIL>)... |
app/src/main/java/com/ant/app/ui/main/base/BaseViewModelMoviesList.kt | unknown_repo | kotlin | package com.ant.app.ui.main.base
import androidx.lifecycle.viewModelScope
import com.ant.analytics.AnalyticsEvent
import com.ant.analytics.AnalyticsHelper
import com.ant.analytics.CrashlyticsHelper
import com.ant.app.ui.base.BaseViewModel
import com.ant.app.ui.extensions.updateMoviesStatePages
import com.ant.common.fl... |
app/src/main/java/uly/practice/fetchrewards2024/ui/screens/FetchRewardsScreen.kt | unknown_repo | kotlin | package uly.practice.fetchrewards2024.ui.screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.col... |
app/src/main/java/com/rayliu/lifecycleexplorer/cards/LifecycleLoggerList.kt | unknown_repo | kotlin | package com.rayliu.lifecycleexplorer.cards
import androidx.annotation.ColorRes
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Mate... |
composeApp/src/jsMain/kotlin/com/lukascodes/planktimer/theme/Theme.js.kt | unknown_repo | kotlin | package com.lukascodes.planktimer.theme
import androidx.compose.runtime.Composable
@Composable
internal actual fun SystemAppearance(isDark: Boolean) {
} |
hilt/hilt-compiler/src/test/kotlin/androidx/hilt/work/WorkerStepTest.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... |
app/src/main/java/com/nlasagni/redditpicgrid/ui/postdetail/PostDetailFragment.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2021 Nicola Lasagni
*
* 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, m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.