file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/google/mlkit/vision/demo/romExercise/IROMExercise.kt | unknown_repo | kotlin | package com.google.mlkit.vision.demo.romExercise
import android.graphics.Bitmap
interface IROMExercise {
fun getPixelDifference (inputData: Bitmap): Int
} |
app/src/main/java/com/example/breeze/ui/activities/profile/exchange/ExchangeTokenActivity.kt | unknown_repo | kotlin | package com.example.breeze.ui.activities.profile.exchange
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import com.example.breeze.R
import com.example.breeze.data.model.response.auth.LoginResult
import com.example.breeze.data.mo... |
dribbble/src/test/java/io/plaidapp/dribbble/ui/shot/ShotViewModelTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 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/example/ce881app/SharedPreferenceUtil.kt | unknown_repo | kotlin | package com.example.ce881app
import android.content.Context
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* This file uses the Gson library to parse JSON data into Kotlin objects.
* Gson is a third-party library and its usage here is strictly for the purpose
* of parsing JSON data as pro... |
app/src/main/java/com/phidalgo/crudcategories/MyApp.kt | unknown_repo | kotlin | package com.phidalgo.crudcategories
import android.app.Application
import com.phidalgo.crudcategories.di.appModule
import com.phidalgo.crudcategories.di.authModule
import com.phidalgo.crudcategories.di.pokemonModule
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
class MyApp : A... |
app/src/main/java/com/karl/demo/demo/model/DivisionDAO.kt | unknown_repo | kotlin | package com.karl.demo.demo.model
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.karl.demo.demo.entity.DivisionEntity
@Dao
interface DivisionDAO {
@Query("DELETE FROM division")
fun deleteAll()
@Insert
fun insertDivision(entity: DivisionEntity)
@Query("... |
app/src/main/java/tw/tonyyang/englishwords/ui/exam/ExamViewModel.kt | unknown_repo | kotlin | package tw.tonyyang.englishwords.ui.exam
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.flowOn
import kotl... |
app/src/main/java/com/kenil/gallaryviewer/adapters/FavouritesAdapter.kt | unknown_repo | kotlin | package com.kenil.gallaryviewer.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.kenil.gallaryviewer.R
import com... |
app/src/main/java/id/yanuar/moovis/presentation/splash/SplashActivity.kt | unknown_repo | kotlin | package id.yanuar.moovis.presentation.splash
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProvider
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import dagger.android.AndroidInject... |
app/src/main/java/com/danisbana/danisbanaapp/presentation/screen/home/messages/MessagesViewModel.kt | unknown_repo | kotlin | package com.danisbana.danisbanaapp.presentation.screen.home.messages
import androidx.compose.material.SnackbarHostState
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.danisbana.danisbanaapp.application.Constants.MESSAGE_COST
import com.danisbana.danisbanaapp.core.model.message.... |
app/src/main/java/com/specialschool/schoolapp/data/remote/RemoteSchoolDataSource.kt | unknown_repo | kotlin | package com.specialschool.schoolapp.data.remote
import android.content.Context
import android.content.Context.CONNECTIVITY_SERVICE
import android.net.ConnectivityManager
import com.specialschool.schoolapp.data.SchoolDataSource
import com.specialschool.schoolapp.data.json.SchoolDataJsonParser
import com.specialschool.s... |
app/src/main/java/org/simple/clinic/storage/migrations/Migration_114.kt | unknown_repo | kotlin | package org.simple.clinic.storage.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import org.simple.clinic.storage.inTransaction
import javax.inject.Inject
@Suppress("ClassName")
class Migration_114 @Inject constructor() : Migration(113, 114) {
override fun migrat... |
composeutils/src/main/kotlin/com/w2sv/composeutils/extensions/Collection.kt | unknown_repo | kotlin | package com.w2sv.composeutils.extensions
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateMapOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.compose.runtime.snapshots.SnapshotStateMap
fun <K, V> Map<K, V>.toMutableStateMap(): SnapshotStateMa... |
app/src/main/java/com/aykuttasil/sweetloc/data/Models.kt | unknown_repo | kotlin | /* Author - <NAME>(@aykuttasil) */
package com.aykuttasil.sweetloc.data
import android.location.Location
import com.aykuttasil.androidbasichelperlib.SuperHelper
import java.text.DateFormat
import java.util.Date
data class UserModel(
var userId: String? = null,
var userEmail: String? = null,
var userPassword: St... |
app/src/main/java/com/example/msgphone/portal/me/UserInfoActivity.kt | unknown_repo | kotlin | package com.example.msgphone.portal.me
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.widget.Toast
import com.example.msgphone.R
import com.netease.yunxin.kit.... |
app/src/main/java/com/mailerdaemon/app/Utils.kt | unknown_repo | kotlin | package com.mailerdaemon.app
import android.content.Context
import android.widget.Toast
import androidx.core.content.ContextCompat
fun Context.toast(message: String, duration: Int = Toast.LENGTH_SHORT) =
Toast.makeText(this, message, duration).show()
fun Context.getDrawableCompat(id: Int) =
ContextCompat.get... |
app/src/main/java/com/ldl/wanandroidpro/core/dao/HistoryData.kt | unknown_repo | kotlin | package com.ldl.wanandroidpro.core.dao
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* 作者:LDL 创建时间:2020/5/28
* 类说明:
*/
@Entity(tableName = "table_history")
data class HistoryData(
@PrimaryKey(autoGenerate = true) var id: Long = 0,
@ColumnInfo(name = "date")... |
app/src/main/java/io/maslick/kodermobile/BarkoderApp.kt | unknown_repo | kotlin | package io.maslick.kodermobile
import android.app.Application
import io.maslick.kodermobile.di.kodermobileModules
import io.maslick.kodermobile.oauth.RefreshTokenWorker
import org.koin.android.ext.android.startKoin
class BarkoderApp : Application() {
override fun onCreate() {
super.onCreate()
sta... |
app/src/main/java/org/zhiwei/jetpack/kotlin/KotlinActivity.kt | unknown_repo | kotlin | package `in`.zhiwei.jetpack.kotlin
import `in`.zhiwei.jetpack.R
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
/**
* Author: zhiwei.
* Date: 2018/11/7 0007,15:48.
*/
class KotlinActivity : AppCompatActivity() {
//todo kotlin都是封装类型,不能自动的类型转换,lazy懒加载也可以
val ... |
plugins/git4idea/src/git4idea/repo/GitRepositoryImpl.kt | unknown_repo | kotlin | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package git4idea.repo
import com.intellij.dvcs.DvcsUtil
import com.intellij.dvcs.repo.Repository
import com.intellij.dvcs.repo.RepositoryImpl
import com.intellij.openapi.Disposable
import com.intell... |
app/src/main/java/tk/laurenfrost/holodos/adapter/ItemsAdapter.kt | unknown_repo | kotlin | package tk.laurenfrost.holodos.adapter
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.shop_item.view.*
import tk.laurenfrost.holodos.R
import tk.laurenfrost.holodos.interfaces.OnItemClickLi... |
record/src/main/java/com/angcyo/media/video/record/RecordVideoActivity.kt | unknown_repo | kotlin | package com.angcyo.media.video.record
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.os.Bundle
import com.angcyo.DslAHelper
import com.angcyo.base.dslAHelper
import com.angcyo.base.dslFHelper
import com.angcyo.base.translucentStatusBar
import com.angcyo.core.act... |
feature/home/src/main/java/com/mertozan/home/component/MemoryItem.kt | unknown_repo | kotlin | package com.mertozan.home.component
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloat
import androidx.compose.animat... |
app/src/main/java/com/kgurgul/cpuinfo/data/provider/CpuDataProvider.kt | unknown_repo | kotlin | package com.kgurgul.cpuinfo.data.provider
import android.os.Build
import timber.log.Timber
import java.io.File
import java.io.FileFilter
import java.io.RandomAccessFile
import java.util.regex.Pattern
import javax.inject.Inject
class CpuDataProvider @Inject constructor() {
fun getAbi(): String {
return if... |
cuedes/app/src/main/java/com/kalai/cuedes/location/selection/SelectionViewModel.kt | unknown_repo | kotlin | package com.kalai.cuedes.location.selection
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.google.android.gms.maps.model.LatLng
import com.kalai.cuedes.CueDesAppli... |
app/src/main/java/com/example/appdenunciacliente/framework/di/HiltOrigin.kt | unknown_repo | kotlin | package com.example.appdenunciacliente.framework.di
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class HiltOrigin: Application() |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/SnowflakeSolid.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
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.gra... |
template/core/data/src/main/kotlin/core/data/datasource/storage/keyvalue/BasicEncryptedKeyValueSource.kt | unknown_repo | kotlin | package core.data.datasource.storage.keyvalue
import android.app.Application
import android.content.SharedPreferences
import androidx.security.crypto.EncryptedSharedPreferences
import androidx.security.crypto.MasterKey
/**
* Basic implementation of encrypted key-value data source using EncryptedSharedPreferences.
*... |
odyssey/odyssey-core/src/commonMain/kotlin/ru/alexgladkov/odyssey/core/RootController.kt | unknown_repo | kotlin | package ru.alexgladkov.odyssey.core
import kotlinx.coroutines.flow.MutableStateFlow
import ru.alexgladkov.odyssey.core.animations.AnimationType
import ru.alexgladkov.odyssey.core.animations.defaultFadeAnimation
import ru.alexgladkov.odyssey.core.animations.defaultPresentationAnimation
import ru.alexgladkov.odyssey.cor... |
app/src/main/java/com/ng/ngleetcode/ui/page/read/stucture/list/StructureArticleListViewModel.kt | unknown_repo | kotlin | package com.ng.ngleetcode.ui.page.read.stucture.list
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import com.ng.ng... |
app/src/main/java/com/xwallet/ui/home/WalletListItem.kt | unknown_repo | kotlin | package com.breadwallet.ui.home
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.util.TypedValue
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isVisible
import com.breadwallet.R
import com.breadwallet.bre... |
app/src/main/java/com/example/abschlussprojekt_husewok/ui/theme/layout/gameScreens/ticTacToeScreen/TicTacToeIcons.kt | unknown_repo | kotlin | package com.example.abschlussprojekt_husewok.ui.theme.layout.gameScreens.ticTacToeScreen
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layou... |
app/src/main/java/com/sukacolab/app/ui/feature/user/profile/sub_screen/about/EditAboutForm.kt | unknown_repo | kotlin | package com.sukacolab.app.ui.feature.user.profile.sub_screen.about
import androidx.compose.runtime.mutableStateOf
import com.sukacolab.app.di.ResourcesProvider
import com.sukacolab.app.util.form.FieldState
import com.sukacolab.app.util.form.Form
import com.sukacolab.app.util.form.FormField
import com.sukacolab.app.uti... |
app/src/main/java/com/example/acer/kuunyi/activities/JobDetailActivity.kt | unknown_repo | kotlin | package com.example.acer.kuunyi.activities
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.WindowManager
import com.example.acer.kuunyi.R
import ... |
2.09.02-Solution-FinalAssignment/app/src/main/java/com/study/android20902/ui/SignUpActivity.kt | unknown_repo | kotlin | package com.study.android20902.ui
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceManager
import com.google.gson.Gson
import com.study.android20902.R... |
app/src/main/java/com/soethan/mmcurrencyexchange/util/ExchangeCalculator.kt | unknown_repo | kotlin | package com.soethan.mmcurrencyexchange.util
import com.soethan.mmcurrencyexchange.model.RateCalculationState
import com.soethan.mmcurrencyexchange.model.RateCalculatorUiModel
import com.soethan.mmcurrencyexchange.util.extension.formatString
import com.soethan.mmcurrencyexchange.util.extension.setTwoDecimal
import kotl... |
app/src/main/java/com/kotlinswipecard/example/ArrayAdapter.kt | unknown_repo | kotlin | package com.kotlinswipecard.example
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.kotlinswipecard.lib.utils.CardAdapterInterface
import java.util.Stack
class ArrayAdapter(
private val cards: Stack<CardModel>,
... |
HelloKotlin/app/src/main/java/com/example/myapplication/secondActivity.kt | unknown_repo | kotlin | package com.example.myapplication
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.ImageView
import android.widget.ProgressBar
import ... |
app/src/main/java/com/androidexamples/app/view/DraggableView.kt | unknown_repo | kotlin | package com.androidexamples.app.view
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.MotionEvent
import android... |
app/src/main/java/org/classapp/mealplanner/Profile.kt | unknown_repo | kotlin | package org.classapp.mealplanner
import android.content.Context
import android.content.Intent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.f... |
app/src/main/java/surcharge/ui/theme/LimitlessColor.kt | unknown_repo | kotlin | package surcharge.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF004DA6)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFF0070EC)
val onPrimaryContainerLight = Color(0xFFFFFFFF)
val secondaryLight = Color(0xFF425E94)
val onSecondaryLight = Color(0xFFFFFFFF)... |
app/src/main/java/com/ateca/ui/screens/note_detailed/view/components/markdown/MDImage.kt | unknown_repo | kotlin | package com.ateca.ui.screens.note_detailed.view.components.markdown
import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.u... |
app/src/main/java/com/capstone/foodtesting/ui/common/home/CommonHomeFragment.kt | unknown_repo | kotlin | package com.capstone.foodtesting.ui.common.home
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import android.view.*
import androidx.fragment.app.Fragment
import android.view.animation.AnimationUtils
import androidx.core.content.res.ResourcesCompat
import androidx.fragment.app.... |
src/main/java/com/example/resources/types/CustomTypefaceSpan.kt | unknown_repo | kotlin | package com.example.resources.types
import android.graphics.Paint
import android.graphics.Typeface
import android.text.TextPaint
import android.text.style.TypefaceSpan
/**
* CustomTypefaceSpan allows for the use of a non-framework font supplied in the
* assets/fonts directory of the application. Use this class when... |
src/main/java/com/example/resources/types/CustomTypefaceSpan.kt | unknown_repo | kotlin | package com.example.resources.types
import android.graphics.Paint
import android.graphics.Typeface
import android.text.TextPaint
import android.text.style.TypefaceSpan
/**
* CustomTypefaceSpan allows for the use of a non-framework font supplied in the
* assets/fonts directory of the application. Use this class when... |
app/src/main/java/com/studyup/fragments/Dashboard.kt | unknown_repo | kotlin | package com.studyup.fragments
import com.studyup.api.Team as TeamDetails
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.app.SearchManager
import android.content.Context
import android.os.Bundle
import android.view.*
import androidx.appcompat.widget.SearchView
import androidx.core.v... |
support-refs_heads_androidx-master-dev-ui.tar/ui-text/src/main/java/androidx/ui/text/Locale.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... |
feature/repolist/src/main/java/com/danielefavaro/githubapiplayground/feature/repolist/ui/RepoListScreen.kt | unknown_repo | kotlin | package com.danielefavaro.githubapiplayground.feature.repolist.ui
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.SnackbarResult
import androidx.compose.runtime.Composable
import an... |
simplified-tests/src/test/java/org/nypl/simplified/tests/books/profiles/ProfileAccountLogoutTaskContract.kt | unknown_repo | kotlin | package org.nypl.simplified.tests.books.profiles
import android.content.Context
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okio.Buffer
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.BeforeEach
import org.junit... |
app/src/main/java/tech/rollw/player/ui/setting/preferences/ChipsPreference.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024 RollW
*
* 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... |
shared/lib/res/src/androidMain/kotlin/org/mobilenativefoundation/store/news/shared/lib/res/drawable/personIcon.android.kt | unknown_repo | kotlin | package org.mobilenativefoundation.store.news.shared.lib.res.drawable
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.painter.Painter
import androidx.compose.ui.res.painterResource
import org.mobilenativefoundation.store.news.shared.lib.res.R
actual val hideIcon: Painter
@Composable... |
app/src/main/java/io/github/akiomik/seiun/ui/user/FollowersListModal.kt | unknown_repo | kotlin | package io.github.akiomik.seiun.ui.user
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape... |
app/src/main/java/me/rounak/newzzzy/data/local/BookmarkDatabase.kt | unknown_repo | kotlin | package me.rounak.newzzzy.data.local
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import me.rounak.newzzzy.utils.model.Bookmark
@Database(entities = [Bookmark::class], version = 1)
abstract class BookmarkDatabase : RoomDatabase() {
abstr... |
feature/feature-payments/src/main/java/com/example/payments/PaymentIconBottomSheetContent.kt | unknown_repo | kotlin | package com.example.payments
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGr... |
omisego-core/src/main/java/co/omisego/omisego/extension/Density.kt | unknown_repo | kotlin | package co.omisego.omisego.extension
import android.content.res.Resources
/*
* OmiseGO
*
* Created by <NAME> on 14/4/2018 AD.
* Copyright © 2017-2018 OmiseGO. All rights reserved.
*/
/**
* Convert density independent pixels into pixels.
*
* This simplifies code dealing with dimensions.
*/
inline val Int.dp:... |
app/src/main/java/com/consistence/pinyin/kit/Adapter.kt | unknown_repo | kotlin | package com.consistence.pinyin.kit
import android.content.Context
import android.support.annotation.IdRes
import android.support.annotation.StringRes
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.jakewharton.rxbinding... |
app/src/main/java/com/bradyaiello/fiveespells/MainActivity.kt | unknown_repo | kotlin | package com.bradyaiello.fiveespells
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.*
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.co... |
app/src/main/java/com/entersekt/fido2/ui/LogActivity.kt | unknown_repo | kotlin | package com.entersekt.fido2.ui
import android.os.Bundle
import android.view.View
import android.widget.CompoundButton
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.viewpager.widget.ViewPager
import com.entersekt.fido2.R
import com.entersekt.fido2.fragment_log.LogAdapter
im... |
piano-analytics/src/main/java/io/piano/android/analytics/PianoAnalytics.kt | unknown_repo | kotlin | package io.piano.android.analytics
import android.content.Context
import io.piano.android.analytics.eventprocessors.EventProcessor
import io.piano.android.analytics.eventprocessors.GroupEventProcessor
import io.piano.android.analytics.idproviders.CustomIdProvider
import io.piano.android.analytics.idproviders.VisitorId... |
app/src/main/java/com/garan/wearwind/components/SpeedAndHrLabel.kt | unknown_repo | kotlin | package com.garan.wearwind.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.... |
app/src/main/java/com/numero/material_gallery/components/appbar/top/ToolbarFragment.kt | unknown_repo | kotlin | package com.numero.material_gallery.components.appbar.top
import android.os.Bundle
import android.view.ContextThemeWrapper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.numero.material_gallery.R
import com.nume... |
TripKitAndroid/src/main/java/com/skedgo/android/tripkit/bookingproviders/UberBookingResolver.kt | unknown_repo | kotlin | package com.skedgo.android.tripkit.bookingproviders
import android.content.Intent
import android.net.Uri
import com.skedgo.android.tripkit.BookingAction
import com.skedgo.android.tripkit.ExternalActionParams
import rx.Observable
import rx.functions.Func1
internal const val UBER_PACKAGE = "com.ubercab"
class UberBook... |
app/src/main/java/fr/jhelp/multitools/showroom/ShowRoomViewHolder.kt | unknown_repo | kotlin | /*
* <h1>License :</h1> <br/>
* The following code is deliver as is. <br/>
* You can use, modify, the code as your need for any usage.<br/>
* But you can't do any action that avoid me or other person use, modify this code.<br/>
* The code is free for usage and modification, you can't change that fact.
*/
pac... |
app/src/main/java/com/insiderser/android/calculator/dagger/DataModule.kt | unknown_repo | kotlin | /*
* Copyright 2020 <NAME>
*
* 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, publish, distrib... |
app-v3/src/main/java/com/khmelenko/lab/varis/repodetails/RepoDetailsActivity.kt | unknown_repo | kotlin | package com.khmelenko.lab.varis.repodetails
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.TabLayout
import android.support.v4.app.Fragment
import android.sup... |
app/src/main/java/com/won/travelreviewpj/travel/wishlist/detail/TravelWishlistDetailFragment.kt | unknown_repo | kotlin | package com.won.travelreviewpj.travel.wishlist.detail
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import com.bumptech.glide.Glide
import com.jakewharton.rxbinding4.view.clicks
import com.won.travelreviewpj.R
import com.... |
app/src/main/java/cn/cqautotest/sunnybeach/ui/activity/GalleryActivity.kt | unknown_repo | kotlin | package cn.cqautotest.sunnybeach.ui.activity
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.app.DownloadManager
import android.app.WallpaperManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.net.Ur... |
android/src/main/java/com/smileidentity/react/SmileIdModule.kt | unknown_repo | kotlin | package com.smileidentity.react
import android.util.Log
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactMethod
import com.facebook.react.bridge.ReadableMap
import com.smileidentity.SmileID
import com.smileidentity.SmileIDCrashRepor... |
app-android/app/src/main/java/com/aptiv/watchdogapp/MedicalAssistManager.kt | unknown_repo | kotlin | package com.aptiv.watchdogapp
import android.app.AlertDialog
import android.content.Context
import android.util.Log
import com.aptiv.watchdogapp.data.health.HealthValue
import java.lang.Exception
class MedicalAssistManager {
private var alertDialog: AlertDialog? = null
companion object {
private con... |
mesh/src/main/java/io/particle/mesh/setup/ui/BLEPairingProgressFragment.kt | unknown_repo | kotlin | package io.particle.mesh.setup.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.squareup.phrase.Phrase
import io.particle.mesh.R
import kotlinx.android.synthetic.main.fragment_ble_pairing_progress.*
import mu.KotlinLogging
class BLEPair... |
myDropDownBox/src/main/java/test/myDropDownBox/util.kt | unknown_repo | kotlin | package test.myDropDownBox
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.GradientDrawable
import android.util.DisplayMetrics
import android.view.WindowManager
/**
* Created by wby on 2017/8/23.
*/
/**
* 画边框方法
* @param color 背景色
* *
* @param radius 圆角
* ... |
Wisdom_Education_Android/edu-logic/src/main/java/com/netease/yunxin/app/wisdom/edu/logic/NEEduActivityManger.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 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.app.wisdom.edu.logic
import android.app.Activity
import android.app.Application
import android.os.Bundle
/**
* Created by hzsunyj... |
csj/src/main/java/com/ifmvo/togetherad/csj/provider/CsjProviderReward.kt | unknown_repo | kotlin | package com.ifmvo.togetherad.csj.provider
import android.app.Activity
import android.os.Bundle
import com.bytedance.sdk.openadsdk.*
import com.ifmvo.togetherad.core.listener.RewardListener
import com.ifmvo.togetherad.core.utils.logd
import com.ifmvo.togetherad.csj.TogetherAdCsj
/**
*
* Created by <NAME> on 2020/11/... |
app/src/main/java/com/dialogapp/dialog/model/EndpointData.kt | unknown_repo | kotlin | package com.dialogapp.dialog.model
import androidx.room.Embedded
import androidx.room.Entity
import com.dialogapp.dialog.vo.Author
import com.squareup.moshi.Json
@Entity(tableName = "endpointData", primaryKeys = ["endpoint"])
data class EndpointData(val endpoint: String,
@Embedded(prefix = "mi... |
widget/src/main/java/com/angcyo/behavior/placeholder/TitleBarBelowBehavior.kt | unknown_repo | kotlin | package com.angcyo.behavior.placeholder
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.angcyo.behavior.BaseDependsBehavior
import com.angcyo.behavior.ITitleBarBehavior
import com.angcyo.library.ex.mH
import ... |
app/src/main/java/com/hms/learnyourenvironment/ui/animal_list/AnimalList.kt | unknown_repo | kotlin | /*
*
* * Copyright 2021. Huawei Technologies Co., Ltd. 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/... |
app/src/main/java/com/gaurav/budgetplanner/features/expensetracker/presentation/ViewModel/RecordViewModel.kt | unknown_repo | kotlin | package com.gaurav.budgetplanner.features.expensetracker.presentation.ViewModel
import android.app.Application
import androidx.lifecycle.*
import com.gaurav.budgetplanner.features.expensetracker.domain.model.Account
import com.gaurav.budgetplanner.features.expensetracker.domain.use_case.TransactionUseCases
import com.g... |
vector/src/main/java/im/vector/app/ext/examination/list/ExaminationPagerAdapter.kt | unknown_repo | kotlin | package im.vector.app.ext.examination.list
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import im.vector.app.ext.examination.ExaminationListFragment
import im.vector.app.ext.laboratory.LaboratoryFragment
class ExaminationPa... |
app/src/main/java/com/getcode/util/ChromeTabsUtils.kt | unknown_repo | kotlin | package com.getcode.util
import android.content.ComponentName
import android.content.Context
import android.net.Uri
import androidx.browser.customtabs.CustomTabsClient
import androidx.browser.customtabs.CustomTabsIntent
import androidx.browser.customtabs.CustomTabsServiceConnection
import androidx.browser.customtabs.C... |
app/src/main/java/tech/central/showcase/base/epoxy/EpoxyBaseViewHolder.kt | unknown_repo | kotlin | package tech.central.showcase.base.epoxy
import android.view.View
import com.airbnb.epoxy.EpoxyHolder
class EpoxyBaseViewHolder : EpoxyHolder() {
companion object {
@JvmStatic
private val TAG = EpoxyBaseViewHolder::class.java.simpleName
}
lateinit var itemView: View
override fun bind... |
app/src/main/java/com/routinely/routinely/MyApplication.kt | unknown_repo | kotlin | package com.routinely.routinely
import android.app.Application
import com.routinely.routinely.changepassword.createNewPasswordModule
import com.routinely.routinely.changepassword.forgotPasswordModule
import com.routinely.routinely.changepassword.verificationCodeModule
import com.routinely.routinely.data.auth.di.authMo... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Batterycharging.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/main/java/io/homeassistant/companion/android/settings/SettingsPresenterImpl.kt | unknown_repo | kotlin | package io.homeassistant.companion.android.settings
import androidx.preference.PreferenceDataStore
import io.homeassistant.companion.android.domain.integration.IntegrationUseCase
import io.homeassistant.companion.android.domain.url.UrlUseCase
import javax.inject.Inject
import kotlinx.coroutines.CoroutineScope
import k... |
app/src/main/java/com/edd/androiddevchallenge/petpet/ui/overview/OverviewViewModel.kt | unknown_repo | kotlin | package com.edd.androiddevchallenge.petpet.ui.overview
import androidx.lifecycle.ViewModel
import com.edd.androiddevchallenge.petpet.repository.PetRepository
class OverviewViewModel : ViewModel() {
// TODO: Use dependency injection to get this repository
// TODO: Use mutableStateOf
val pets = PetRepositor... |
app/src/main/java/com/app/kekomi/storage/FoodDao.kt | unknown_repo | kotlin | package com.app.kekomi.storage
import androidx.room.*
import com.app.kekomi.entities.Food
import java.util.*
@Dao
interface FoodDao {
@Insert
fun insertFood(food: Food)
@Query("Select * from food where date = :date")
fun getAllFood(date: Date): List<Food>
@Update
fun updateFood(food: Food)
... |
apps/teacher/src/androidTest/java/com/instructure/teacher/ui/e2e/ModulesE2ETest.kt | unknown_repo | kotlin | package com.instructure.teacher.ui.e2e
import android.util.Log
import androidx.test.espresso.Espresso
import com.instructure.canvas.espresso.E2E
import com.instructure.canvas.espresso.FeatureCategory
import com.instructure.canvas.espresso.Priority
import com.instructure.canvas.espresso.TestCategory
import com.instruct... |
FrameBarXML/src/main/java/com/rafambn/framebar/api/MarkersAPI.kt | unknown_repo | kotlin | package com.rafambn.framebar.api
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
interface MarkersAPI {
fun setMarkersWidth(width: Int)
fun setMarkersWidth(listWidth: List<Pair<Int, Int>>)
fun setMarkersHeight(height: Int)
fun setMarkersHeight(listHeight: List<Pair<Int, Int>... |
app/src/main/java/com/example/FlowApp.kt | unknown_repo | kotlin | package com.example
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class FlowApp:Application() {
} |
ProShaped/app/src/main/java/com/example/proshapedapp/workoutScreenPackage/database/WorkoutItem.kt | unknown_repo | kotlin | package com.example.proshapedapp.workoutScreenPackage.database
import androidx.room.*
@Entity(tableName = "workout_list")
data class WorkoutItem(
@PrimaryKey(autoGenerate = true)
var itemId: Long = 0L,
@ColumnInfo(name = "item_name")
val itemName: String,
@ColumnInfo(name = "item_weight")
va... |
editor/src/main/kotlin/Main.kt | unknown_repo | kotlin | import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.awt.ComposeWindow
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.*
import dev.pengie.kotaro.events.Ev... |
app/src/main/java/com/codersandeep/shopeaze/ui/cart/CartViewModel.kt | unknown_repo | kotlin | package com.codersandeep.shopeaze.ui.cart
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.codersandeep.shopeaze.repository.RoomRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import javax.inject.Inject
@HiltViewModel
class CartView... |
features/summary/src/main/java/com/pimenta/pandreports/summary/presentation/ui/activity/SummaryActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 <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 writi... |
app/src/main/java/com/example/fitnesstracker/FitnessApplication.kt | unknown_repo | kotlin | package com.example.fitnesstracker
import android.app.Application
class FitnessApplication: Application() {
val db by lazy { FitnessDatabase.getInstance(this) }
} |
app/src/main/java/app/calimbak/swiperightonmotionlayout/SwipeRightCardModel.kt | unknown_repo | kotlin | package app.calimbak.swiperightonmotionlayout
import androidx.annotation.ColorInt
data class SwipeRightCardModel(
@ColorInt val backgroundColor: Int
) |
src/main/kotlin/com/outsystems/plugins/barcode/view/ui.theme/Color.kt | unknown_repo | kotlin | package com.outsystems.plugins.barcode.view.ui.theme
import androidx.compose.ui.graphics.Color
val Purple80 = Color(0xFFD0BCFF)
val PurpleGrey80 = Color(0xFFCCC2DC)
val Pink80 = Color(0xFFEFB8C8)
val Purple40 = Color(0xFF6650a4)
val PurpleGrey40 = Color(0xFF625b71)
val Pink40 = Color(0xFF7D5260)
val CustomGray = Co... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/ArrowUpRight.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... |
app/src/main/java/com/looker/notesy/ui/notes/NotesViewModel.kt | unknown_repo | kotlin | package com.looker.notesy.ui.notes
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.looker.notesy.data.data_source.AppSettingsRepository
import com.looker.notesy.domain.model.Note
import com.looker.notesy.domain.use_case.NoteUseCases
import com.looker.note... |
sample/src/iosMain/kotlin/com/github/panpf/zoomimage/sample/ui/VerHomeScreen.ios.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterial3Api::class)
package com.github.panpf.zoomimage.sample.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.mater... |
oops-initializer/src/main/kotlin/io/nichijou/oops/initializer/OopsInitializer.kt | unknown_repo | kotlin | package io.nichijou.oops.initializer
import android.content.ContentProvider
import android.content.ContentValues
import android.database.Cursor
import android.net.Uri
import io.nichijou.oops.Oops
internal class OopsInitializer : ContentProvider() {
override fun onCreate(): Boolean {
context?.let {
Oops.in... |
view/src/main/java/cmm/apps/esmorga/view/MainActivity.kt | unknown_repo | kotlin | package cmm.apps.esmorga.view
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.