file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/com/example/bmta/utils/TextFormatter.kt
unknown_repo
kotlin
package com.example.bmta.utils import android.annotation.SuppressLint import java.text.SimpleDateFormat import java.util.* object TextFormatter { @SuppressLint("SimpleDateFormat") fun fromDate(date : Date) : String{ val pattern = "MMM dd, yyyy" return SimpleDateFormat(pattern).format(date).toS...
md-compose-core/src/commonMain/kotlin/com/wakaztahir/markdowncompose/editor/components/MathComponent.kt
unknown_repo
kotlin
package com.wakaztahir.markdowncompose.editor.components import androidx.compose.runtime.* import androidx.compose.ui.Modifier import com.wakaztahir.markdowncompose.editor.model.blocks.MathBlock @Composable fun MathBlock.DefaultMathComponent( modifier: Modifier = Modifier, ) { val state = LocalEditor.current ...
app/src/main/java/com/example/mobiletik/domain/usecase/ToastFunction.kt
unknown_repo
kotlin
package com.example.mobiletik.domain.usecase import android.app.Activity import android.widget.Toast object ToastFunction { fun toastShort(mACtivity: Activity, msg: String) { Toast.makeText(mACtivity, msg, Toast.LENGTH_SHORT).show() } fun toastLong(mACtivity: Activity, msg: String) { Toas...
app/src/main/java/com/stone/templateapp/demo/provider/ProviderActivity.kt
unknown_repo
kotlin
package com.stone.templateapp.demo.provider import android.content.ContentValues import android.os.Bundle import android.support.v7.app.AppCompatActivity import com.stone.log.Logs import com.stone.templateapp.R import com.stone.templateapp.demo.Book import com.stone.templateapp.demo.User class ProviderActivity : AppC...
fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentLifecycleTest.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/fibelatti/photowidget/configure/PhotoWidgetIntervalPicker.kt
unknown_repo
kotlin
package com.fibelatti.photowidget.configure import android.content.Context import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout....
app/src/main/java/submission/dicoding/fundamental/gituser/provider/UserConsumer.kt
unknown_repo
kotlin
package submission.dicoding.fundamental.gituser.provider import android.content.ContentProvider import android.content.ContentValues import android.content.Context import android.content.UriMatcher import android.database.Cursor import android.net.Uri import dagger.hilt.EntryPoint import dagger.hilt.InstallIn import d...
app/src/main/java/com/seanghay/flood/epoxy/LoaderModel.kt
unknown_repo
kotlin
package com.seanghay.flood.epoxy import android.graphics.drawable.Drawable import android.widget.FrameLayout import androidx.vectordrawable.graphics.drawable.Animatable2Compat import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat import com.airbnb.epoxy.EpoxyModel import com.airbnb.epoxy.EpoxyM...
app/src/main/kotlin/jp/co/yumemi/android/code_check/repository/LocalGitHubRepositoryImpl.kt
unknown_repo
kotlin
package jp.co.yumemi.android.code_check.repository import android.content.Context import android.database.sqlite.SQLiteConstraintException import android.util.Log import androidx.lifecycle.LiveData import jp.co.yumemi.android.code_check.R import jp.co.yumemi.android.code_check.db.GitHubObjectDao import jp.co.yumemi.an...
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRThreadsViewModels.kt
unknown_repo
kotlin
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.github.pullrequest.ui.comment import com.intellij.collaboration.async.classAsCoroutineName import com.intellij.collaboration.async.mapDataToModel import com.intellij.co...
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRThreadsViewModels.kt
unknown_repo
kotlin
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.github.pullrequest.ui.comment import com.intellij.collaboration.async.classAsCoroutineName import com.intellij.collaboration.async.mapDataToModel import com.intellij.co...
mobile/src/main/java/be/mygod/vpnhotspot/net/wifi/WifiP2pManagerHelper.kt
unknown_repo
kotlin
package be.mygod.vpnhotspot.net.wifi import android.annotation.SuppressLint import android.net.wifi.WpsInfo import android.net.wifi.p2p.WifiP2pGroup import android.net.wifi.p2p.WifiP2pManager import be.mygod.vpnhotspot.DebugHelper import com.android.dx.stock.ProxyBuilder import timber.log.Timber import java.lang.Illeg...
app/src/main/java/me/gm/cleaner/plugin/module/appmanagement/AppListLoader.kt
unknown_repo
kotlin
/* * Copyright 2021 Green Mushroom * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
app/src/main/java/com/ramanie/rickmorty/presentation/charcter_details/CharacterDetailsNamePlateComponent.kt
unknown_repo
kotlin
package com.ramanie.rickmorty.presentation.charcter_details import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.text.font....
modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/raptorx/Connections.kt
unknown_repo
kotlin
package dev.jonpoulton.alakazam.tak.compose.icons.raptorx 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.StrokeJo...
simplelists/src/main/java/io/kotlinovsky/simplelists/callbacks/OffsetItemUpdateCallback.kt
unknown_repo
kotlin
package io.kotlinovsky.simplelists.callbacks import androidx.recyclerview.widget.ListUpdateCallback import androidx.recyclerview.widget.RecyclerView /** * Кэллбэк обновлений, поддерживающий отступы. * * @param adapter Адаптер списка * @param offset Отступ */ class OffsetItemUpdateCallback( private val adapte...
module_user/src/main/java/com/example/fragment/user/fragment/ShareArticleFragment.kt
unknown_repo
kotlin
package com.example.fragment.user.fragment import android.os.Bundle import android.view.LayoutInflater import android.view.View import com.example.fragment.library.common.bean.UserBean import com.example.fragment.library.common.constant.Keys import com.example.fragment.library.common.constant.Router import com.example...
base/src/main/java/com/github/dhaval2404/base/BaseActivity.kt
unknown_repo
kotlin
package com.github.dhaval2404.itunesplayer.ui.base import android.os.Bundle import android.view.MenuItem import androidx.annotation.LayoutRes import androidx.appcompat.app.AppCompatActivity import androidx.databinding.DataBindingUtil import androidx.databinding.ViewDataBinding /** * Parent Activity for all the app a...
app/src/main/java/com/example/foodrecipesapp/ui/fragments/FavoriteRecipesFragment.kt
unknown_repo
kotlin
package com.example.foodrecipesapp.ui.fragments import android.os.Binder import android.os.Bundle import android.view.* import androidx.core.view.MenuHost import androidx.core.view.MenuProvider import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Lifecycle import andr...
app/src/main/java/com/faust/m/td/TranslationExtensions.kt
unknown_repo
kotlin
package com.faust.m.td import androidx.appcompat.app.AppCompatActivity import org.jetbrains.anko.alert import org.jetbrains.anko.toast fun AppCompatActivity.alertTranslation(pSentence: String) { if ("EggPlant" == pSentence) alertSpecial() else { val tTranslator = Translator() val tTran...
app/src/main/java/com/msoula/catlife/feature_cat_detail/presentation/CatDetailViewModel.kt
unknown_repo
kotlin
package com.msoula.catlife.feature_cat_detail.presentation import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.msoula.catlife.core.domain.use_case.crud.CatUseCases import com.msoula.catlife.core.presentation.navigation.CatDetailScreenNavArg...
app/src/main/java/my/itgungnir/rxmvvm/app4/AppActivity4.kt
unknown_repo
kotlin
package my.itgungnir.rxmvvm.app4 import androidx.lifecycle.Observer import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentPagerAdapter import kotlinx.android.synthetic.main.activity_app4.* import my.itgungnir.rxmvvm.R import my.itgungnir.rxmvvm.core.mvvm.BaseActivity import my.itgungnir.rxmvvm.cor...
flagship/src/main/java/com/abtasty/flagship/cache/DefaultCacheManager.kt
unknown_repo
kotlin
package com.abtasty.flagship.cache import androidx.room.Room import com.abtasty.flagship.database.DefaultDatabase import com.abtasty.flagship.database.Hit import com.abtasty.flagship.database.Visitor import com.abtasty.flagship.main.Flagship import com.abtasty.flagship.utils.FlagshipConstants import com.abtasty.flagsh...
library/src/androidTest/java/com/wultra/android/sslpinning/CertStoreChallengeTest.kt
unknown_repo
kotlin
/* * Copyright 2020 Wultra s.r.o. * * 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...
linecorp-core/src/main/java/com/linecorp/android/vm/UIViewState.kt
unknown_repo
kotlin
package com.linecorp.android.vm import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class UIViewState( val isLoading: Boolean = false, val isVibrator: Boolean = false, var isError: String? = null ) : Parcelable { companion object { fun error(errorMessage: Strin...
app/src/main/java/com/kire/audio/presentation/ui/player_screen_ui/image_lyrics_flip_block/LyricsResult.kt
unknown_repo
kotlin
package com.kire.audio.presentation.ui.player_screen_ui.image_lyrics_flip_block import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.material3.Text import androidx.compose.runtime.Compo...
Attendence/app/src/main/java/com/example/attendence/adapter/AttenAdapter.kt
unknown_repo
kotlin
package com.example.attendence.adapter import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.example.attendence.R import com.example.attendence.data.Attendence import com.example.attendence.databindi...
build/assets/compose/vitaminassets/flags/Pk.kt
unknown_repo
kotlin
package com.decathlon.vitamin.compose.vitaminassets.flags import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics....
app/src/main/java/com/nelsonxilv/gstoutimetable/data/database/TimetableDao.kt
unknown_repo
kotlin
package com.nelsonxilv.gstoutimetable.data.database import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import androidx.room.Transaction import com.nelsonxilv.gstoutimetable.data.model.GroupDbModel import com.nelsonxilv.gst...
app/src/main/java/com/example/forage/data/ForageDatabase.kt
unknown_repo
kotlin
/* * Copyright (C) 2021 The Android Open Source Project. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
src/main/kotlin/com/paranid5/presentation/main_menu/main_menu_buttons/ResultButton.kt
unknown_repo
kotlin
package com.paranid5.presentation.main_menu.main_menu_buttons import com.paranid5.data.player.PlayerRepository import com.paranid5.presentation.utils.getScaledImage import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import kotlinx.coroutines.swing.Swing impo...
app/src/main/java/com/example/leetcoderating/MyViewPagerAdapter1.kt
unknown_repo
kotlin
package com.example.leetcoderating import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.lifecycle.Lifecycle import androidx.viewpager2.adapter.FragmentStateAdapter import com.example.leetcoderating.fragments.AboutMeFragment import com.example.leetcoderating.fragments.Frien...
app/src/main/kotlin/com/example/composetemplate/data/local/datastore/PrefDataStore.kt
unknown_repo
kotlin
package com.example.composetemplate.data.local.datastore import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.intPreferencesKey import androidx.datastore.preferences.preferencesDataStore import com.exam...
app/src/main/java/com/dk/newssync/data/entity/Entry.kt
unknown_repo
kotlin
package com.dk.newssync.data.entity import android.os.Parcelable import androidx.room.Entity import androidx.room.Index import androidx.room.PrimaryKey import kotlinx.android.parcel.Parcelize /** * Created by <NAME> (<EMAIL>) on 07/12/2018. **/ @Parcelize @Entity(tableName = "entries", indices = [Index(value = ["n...
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/stats/model/RtcIceCandidateStats.kt
unknown_repo
kotlin
/* * Copyright (c) 2014-2023 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-video-android/blob/main/LICENSE * * Unless required by ...
app/src/main/java/com/fun/auction/ui/AuthActivity.kt
unknown_repo
kotlin
package com.`fun`.auction.ui import android.content.Context import android.content.Intent import com.`fun`.auction.R import com.`fun`.auction.model.AuthRefreshEvent import com.`fun`.auction.net.HttpManager import com.`fun`.auction.net.SchedulersUtils import com.`fun`.auction.net.SimpleObserver import com.`fun`.auction...
extension/src/main/java/com/adgvcxz/extension/AnyEx.kt
unknown_repo
kotlin
package com.adgvcxz.extension import android.os.Looper /** * zhaowei * Created by zhaowei on 2017/7/13. */ fun ensureChangeOnMainThread() { if (Thread.currentThread() != Looper.getMainLooper().thread) { throw IllegalStateException("You must only modify the ObservableList on the main thread.") } }
app/src/main/kotlin/org/droiders/githubwidget/Converter.kt
unknown_repo
kotlin
package org.droiders.githubwidget import android.graphics.Color import org.droiders.githubwidget.data.Contributions import java.util.ArrayList import java.util.regex.Pattern /** * Created by donglua on 2016/12/24. */ object Converter { @JvmStatic fun svgToContributionsList(svg: String): List<Contributions>...
library/src/main/java/com/cvt/library/clog/StackLogDecoration.kt
unknown_repo
kotlin
package com.cvt.library.clog import android.util.Log /** * Date: 2019-09-17 21:09 * Author: chenchengyin on * Email: <EMAIL> */ class StackLogDecoration : LogDecoration() { companion object{ val line = "═══════════════════════════════════════════════════════════════════════════════════════" } ...
app/src/main/java/com/example/tmdbmovie/presentation/TMDBAppScreen.kt
unknown_repo
kotlin
package com.example.tmdbmovie.presentation import android.content.res.Resources import androidx.compose.foundation.layout.padding import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx...
stream-chat-android-ui-uitests/src/androidTest/java/io/getstream/chat/android/uitests/snapshot/uicomponents/reactions/EditReactionsTest.kt
unknown_repo
kotlin
/* * Copyright (c) 2014-2022 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-chat-android/blob/main/LICENSE * * Unless required by a...
app/src/main/java/com/detection/CameraFragment.kt
unknown_repo
kotlin
package com.detection import android.graphics.Bitmap import android.os.Bundle import android.os.Handler import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.google.firebase.ml.vision.common.FirebaseVisionImage import com.google.fireb...
app/src/main/java/com/guru/composecookbook/ui/templates/TemplatesActivity.kt
unknown_repo
kotlin
package com.guru.composecookbook.ui.templates import android.content.Context import android.content.Intent import android.os.Bundle import android.view.WindowManager import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.biometric.BiometricPrompt import androidx.compose....
app/src/main/kotlin/com/absinthe/libchecker/provider/CoreProvider.kt
unknown_repo
kotlin
package com.jpb.libchecker.provider import android.content.ContentProvider import android.content.ContentProviderOperation import android.content.ContentProviderResult import android.content.ContentValues import android.content.OperationApplicationException import android.content.UriMatcher import android.database.Cur...
app/src/main/java/dev/sebastiano/bundel/preferences/PreferencesScreen.kt
unknown_repo
kotlin
@file:OptIn(ExperimentalAnimationApi::class, ExperimentalTransitionApi::class) package dev.sebastiano.bundel.preferences import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.animation.core.ExperimentalTransitionApi import androidx.compose.foundation.clickable import androidx.compose.foun...
knowledge/src/test/java/com/google/android/fhir/knowledge/npm/OkHttpNpmPackageDownloaderTest.kt
unknown_repo
kotlin
/* * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
android/app/src/main/java/com/phicdy/totoanticipation/GameListActivity.kt
unknown_repo
kotlin
package com.phicdy.totoanticipation import android.os.Bundle import androidx.appcompat.app.AppCompatActivity class GameListActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_game_list) } }
DesignChallenges/CookingAppByLorenaPop/app/src/main/java/com/alexgabor/cookingapp_lorenapop/catalog/Chip.kt
unknown_repo
kotlin
package com.alexgabor.cookingapp_lorenapop.catalog import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.sha...
features/search/src/main/java/taiwan/no/one/feat/search/data/repositories/SearchMusicRepository.kt
unknown_repo
kotlin
/* * MIT License * * Copyright (c) 2020 Jieyi * * 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, me...
android/src/main/java/com/mrousavy/blurhash/BlurhashDecoder.kt
unknown_repo
kotlin
package com.mrousavy.blurhash import android.graphics.Bitmap import android.graphics.Color import com.mrousavy.blurhash.Utils.linearToSrgb import com.mrousavy.blurhash.Utils.signedPow2 import com.mrousavy.blurhash.Utils.srgbToLinear import kotlin.math.PI import kotlin.math.cos // TODO: Use parallel decoder from https...
wear/src/main/java/ca/joshstagg/slate/config/colorlist/SlateConfigColorListActivity.kt
unknown_repo
kotlin
package ca.joshstagg.slate.config.colorlist import android.app.Activity import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.support.wear.widget.WearableRecyclerView import ca.joshstagg.slate.R import ca.joshstagg.slate.Slate import ca.joshstagg.slate.config.items.ConfigColor /...
base/src/main/kotlin/crazyboyfeng/android/preference/PreferenceFragmentCompat.kt
unknown_repo
kotlin
package crazyboyfeng.android.preference import androidx.preference.DialogPreference import androidx.preference.Preference abstract class PreferenceFragmentCompat : androidx.preference.PreferenceFragmentCompat() { companion object { private const val DIALOG_FRAGMENT_TAG = "androidx.preference.P...
microapps/FloorFilterApp/app/src/main/java/com/arcgismaps/toolkit/floorfilterapp/screens/MainScreen.kt
unknown_repo
kotlin
/* * Copyright 2023 Esri * * 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...
core/utils/src/main/java/com/shevelev/wizard_camera/core/utils/ext/ContextExt.kt
unknown_repo
kotlin
package com.shevelev.wizard_camera.core.utils.resources import android.content.Context import android.content.res.Configuration import android.content.res.Resources import android.util.Size import androidx.annotation.* import timber.log.Timber import java.io.ByteArrayOutputStream import java.io.IOException import java...
src/main/kotlin/repository/settings/Prefs.kt
unknown_repo
kotlin
package repository.settings import androidx.compose.runtime.MutableState import androidx.compose.runtime.mutableStateOf import androidx.compose.ui.Alignment import androidx.compose.ui.window.WindowPosition import data.models.KlipSettings import java.util.prefs.Preferences import kotlinx.serialization.json.Json object...
ui/src/main/java/com/theoplayer/android/ui/FullscreenHandler.kt
unknown_repo
kotlin
package com.theoplayer.android.ui import android.app.Activity import android.content.pm.ActivityInfo import android.view.View import android.view.ViewGroup import androidx.core.view.WindowCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsControllerCompat internal interface Full...
app/src/main/java/com/bharathvishal/appmanager/Adapters/ApkInformationExtractor.kt
unknown_repo
kotlin
/** * * Copyright 2018-2023 <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...
codebase/android/core/ui/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/ui/component/bottomsheet/analysis/AnalysisFilterBottomSheet.kt
unknown_repo
kotlin
package com.makeappssimple.abhimanyu.financemanager.android.core.ui.component.bottomsheet.analysis import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import ...
app/src/main/java/cn/archko/pdf/fragments/HistoryFragment.kt
unknown_repo
kotlin
package cn.archko.pdf.fragments import android.app.ProgressDialog import android.content.Context import android.content.IntentFilter import android.os.Bundle import android.os.Environment import android.preference.PreferenceManager import android.view.LayoutInflater import android.view.MenuItem import android.view.Vie...
Compose/BasicswithCompose/JuiceTracker/src/main/java/com/example/juicetracker/data/JuiceDao.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
app/src/main/java/br/com/montecardo/finanseer/investment/MovementViewAdapter.kt
unknown_repo
kotlin
package br.com.montecardo.finanseer.investment import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import br.com.montecardo.finanseer.R import br.com.montecardo.finanseer.investment.data.Movement import br.com.montecardo.finanseer.inve...
app/src/main/java/com/lnzpk/chat_app/service/ServiceStarterReceiver.kt
unknown_repo
kotlin
package com.lnzpk.chat_app.service import android.app.job.JobInfo import android.app.job.JobScheduler import android.content.BroadcastReceiver import android.content.ComponentName import android.content.Context import android.content.Intent import android.util.Log import android.widget.Toast class ServiceStarterRecei...
app-android/src/main/java/org/mtransit/android/ui/schedule/ScheduleAdapter.kt
unknown_repo
kotlin
package org.mtransit.android.ui.schedule import android.annotation.SuppressLint import android.content.Context import android.text.SpannableStringBuilder import android.text.style.ForegroundColorSpan import android.util.SparseArray import android.view.LayoutInflater import android.view.ViewGroup import androidx.annota...
companion/src/main/java/de/kauker/unofficial/grocy/activities/LegalActivity.kt
unknown_repo
kotlin
package de.kauker.unofficial.grocy.activities import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import andr...
serve-app/core/src/main/java/org/evidyaloka/core/partner/network/entity/course/offerings/CourseOffering.kt
unknown_repo
kotlin
package org.evidyaloka.core.partner.network.entity.course.offerings import android.os.Parcelable import com.google.gson.annotations.SerializedName import kotlinx.android.parcel.Parcelize @Parcelize data class CourseOffering( @SerializedName("StartDate") val StartDate: String? = "", @SerializedName("EndDat...
sample/src/main/java/com/github/panpf/sketch/sample/util/LiveEventUtils.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...
samples/messenger/ui_common/src/main/java/com/revolut/kompot/sample/ui_common/TextModel.kt
unknown_repo
kotlin
package com.revolut.kompot.sample.ui_common import androidx.annotation.ColorRes data class TextModel( val content: String, @ColorRes val color: Int? = null )
samples/messenger/ui_common/src/main/java/com/revolut/kompot/sample/ui_common/TextModel.kt
unknown_repo
kotlin
package com.revolut.kompot.sample.ui_common import androidx.annotation.ColorRes data class TextModel( val content: String, @ColorRes val color: Int? = null )
app/src/main/java/com/underground/newsy/data/local/NewsTypeConvertor.kt
unknown_repo
kotlin
package com.example.composenews.data.local import androidx.room.ProvidedTypeConverter import androidx.room.TypeConverter import com.example.composenews.domain.model.Source @ProvidedTypeConverter class NewsTypeConvertor { @TypeConverter fun sourceToString(source: Source): String{ return "${source.id},...
features/feature-settings/src/main/kotlin/com/maximillianleonov/musicmax/feature/settings/SettingsScreen.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 wr...
data/src/test/kotlin/team/duckie/app/android/data/util/date.kt
unknown_repo
kotlin
/* * Designed and developed by Duckie Team, 2022 * * Licensed under the MIT. * Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE */ package team.duckie.app.android.data.util import android.annotation.SuppressLint import java.util.Calendar import java.util.Date @Suppress...
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/ConvertDocument.kt
unknown_repo
kotlin
package me.localx.icons.straight.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter...
core/ui/src/main/java/org/expenny/core/ui/components/ExpennyTimePicker.kt
unknown_repo
kotlin
package org.expenny.core.ui.components import androidx.compose.foundation.layout.wrapContentWidth import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.saveable.r...
app/src/main/java/com/ab/ble/data/local/SharedPrefsHelper.kt
unknown_repo
kotlin
package com.ab.ble.data.local import android.content.Context import android.content.Context.MODE_PRIVATE import android.content.SharedPreferences class SharedPrefsHelper(context: Context) { private val mSharedPreferences: SharedPreferences var scanTime: Int get() = mSharedPreferences.getInt(SCAN_TIM...
app/src/main/java/com/random/dynamiclaunch/MainActivity.kt
unknown_repo
kotlin
package com.random.dynamiclaunch import android.content.Context import android.content.pm.PackageManager import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.ed...
viewmodel/src/main/java/com/frogobox/viewmodel/calculator/CalculatorActivity.kt
unknown_repo
kotlin
package com.frogobox.viewmodel.calculator import android.os.Bundle import android.view.LayoutInflater import android.view.Menu import android.view.MenuItem import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProvider import com.frogobox.viewmodel.dat...
lib/src/main/java/com/github/appwidget/AppWidgetUtils.kt
unknown_repo
kotlin
/* * Copyright 2012, Moshe Waisberg * * 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/github/devjn/githubsearch/App.kt
unknown_repo
kotlin
package com.github.devjn.githubsearch import android.app.Application import android.arch.persistence.room.Room import android.content.Context import android.support.v7.app.AppCompatDelegate import com.github.devjn.githubsearch.db.AppDatabase import com.github.devjn.githubsearch.utils.AndroidUtils /** * Created by @a...
app/src/main/java/com/example/bitmapintent/tongxunlu.kt
unknown_repo
kotlin
package com.example.bitmapintent import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.util.Log import android.widget.ListView import android.widget.SearchView import com.example.UserDatabase.User2 import com.google.android.m...
app/src/main/java/com/detmir/kkppt3/Case0301SealedSeveralBindsActivity.kt
unknown_repo
kotlin
package com.detmir.kkppt3 import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.detmir.kkppt3.views.PipeLineItem import com.detmir.recycli.adapters.RecyclerAdapter class Case0301Seale...
app/src/main/java/com/detmir/kkppt3/Case0301SealedSeveralBindsActivity.kt
unknown_repo
kotlin
package com.detmir.kkppt3 import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.detmir.kkppt3.views.PipeLineItem import com.detmir.recycli.adapters.RecyclerAdapter class Case0301Seale...
app/src/main/kotlin/dev/patrickgold/florisboard/app/settings/spelling/SpellingScreen.kt
unknown_repo
kotlin
/* * Copyright (C) 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
app/src/main/kotlin/com/github/zieiony/stackoverflowbrowser/StackOverflowApplication.kt
unknown_repo
kotlin
package com.github.zieiony.stackoverflowbrowser import android.app.Application import com.github.zieiony.stackoverflowbrowser.api.di.APIModule import com.github.zieiony.stackoverflowbrowser.api.di.DataModule import com.github.zieiony.stackoverflowbrowser.di.AppComponent import com.github.zieiony.stackoverflowbrowser.d...
app/src/main/java/tr/com/gndg/self/domain/model/transactions/Transaction.kt
unknown_repo
kotlin
package tr.com.gndg.self.domain.model.transactions import androidx.compose.runtime.mutableStateListOf import org.joda.time.DateTime import tr.com.gndg.self.core.dataSource.roomDatabase.entity.transactions.TransactionEntity import java.util.UUID abstract class Transaction { abstract val transactionID:Long abst...
core/src/main/java/com/vk/api/sdk/exceptions/VKApiExecutionException.kt
unknown_repo
kotlin
/******************************************************************************* * The MIT License (MIT) * * Copyright (c) 2019 vk.com * * 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...
app/src/main/java/name/eraxillan/anilistapp/data/room/RemoteKeys.kt
unknown_repo
kotlin
/* * Copyright 2021 Aleksandr Kamyshnikov * * 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...
app/src/release/java/com/davidferrand/confinemap/BuildVariantSpecific.kt
unknown_repo
kotlin
package com.davidferrand.confinemap import android.view.View import kotlinx.android.synthetic.main.activity_maps.* object BuildVariantSpecific { fun onCreateActivity(mapsActivity: MapsActivity) { mapsActivity.btn_debug.apply { visibility = View.GONE } } }
data/src/main/java/com/catscoffeeandkitchen/data/workouts/models/WorkoutEntity.kt
unknown_repo
kotlin
package com.catscoffeeandkitchen.data.workouts.models import androidx.room.Entity import androidx.room.ForeignKey import androidx.room.Index import androidx.room.PrimaryKey import java.time.OffsetDateTime @Entity( foreignKeys = [ ForeignKey( childColumns = ["planId"], parentColumns...
epoxy-modelfactorytest/src/test/java/com/airbnb/epoxy/FromModelPropertiesKotlinTest.kt
unknown_repo
kotlin
package com.airbnb.epoxy import android.view.View import com.airbnb.epoxymodelfactory.R import com.airbnb.paris.styles.Style import org.junit.Assert.assertEquals import org.junit.Assert.assertFalse import org.junit.Assert.assertNull import org.junit.Test /** * Asserts that using from(ModelProperties) to create a mod...
app/src/main/kotlin/com/keygenqt/demo_contacts/modules/catalog/ui/screens/catalogScreen/CatalogScreen.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
vector/src/main/java/im/vector/app/core/session/ConfigureAndStartSessionUseCase.kt
unknown_repo
kotlin
/* * Copyright (c) 2022 New Vector Ltd * * 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...
ad-click/ad-click-impl/src/main/java/com/duckduckgo/adclick/impl/di/AdClickModule.kt
unknown_repo
kotlin
/* * Copyright (c) 2022 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/java/ws/idroid/worldstatus/ui/adapter/viewholders/DailyItemViewHolder.kt
unknown_repo
kotlin
package ws.idroid.worldstatus.ui.adapter.viewholders import android.view.View import androidx.core.content.ContextCompat import ws.idroid.worldstatus.R import ws.idroid.worldstatus.databinding.ItemDailyBinding import ws.idroid.worldstatus.ui.adapter.BaseViewHolder import ws.idroid.worldstatus.ui.base.BaseViewItem impo...
app/src/main/java/org/covidwatch/android/ui/reporting/DiagnosisDetailsItem.kt
unknown_repo
kotlin
package org.covidwatch.android.ui.reporting import android.view.View import com.xwray.groupie.viewbinding.BindableItem import org.covidwatch.android.R import org.covidwatch.android.data.model.PositiveDiagnosisReport import org.covidwatch.android.databinding.ItemPositiveDiagnosisChildBinding import org.covidwatch.andro...
app/src/main/java/com/balaji/openapp/MainActivity.kt
unknown_repo
kotlin
package com.balaji.openapp import android.app.UiModeManager import android.content.Intent import android.content.res.Configuration import android.net.Uri import android.os.Bundle import android.provider.Settings import android.view.View import android.widget.TextView import android.widget.Toast import androidx.appcomp...
android/app/src/main/java/hu/sztomek/wheresmybuddy/presentation/service/MessagingService.kt
unknown_repo
kotlin
package hu.sztomek.wheresmybuddy.presentation.service import android.content.Intent import com.google.firebase.messaging.FirebaseMessagingService import com.google.firebase.messaging.RemoteMessage import dagger.android.AndroidInjection import hu.sztomek.wheresmybuddy.device.notification.IntentPayloadHandler import hu....
NaviTests/navi_test/src/androidTest/java/com/example/navi_test/NavigationTest.kt
unknown_repo
kotlin
package com.example.navi_test import android.app.Activity import androidx.test.core.app.ActivityScenario import androidx.test.espresso.Espresso.onView import androidx.test.espresso.action.ViewActions.click import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers...
ui/ui-foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/TextFieldCursorTest.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...
composeApp/src/commonMain/kotlin/ui/screens/characterlist/item/CharacterListItem.kt
unknown_repo
kotlin
package ui.screens.characterlist.item import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.CircleShape import androidx.compose.materia...
app/src/main/java/com/notesync/notes/framework/presentation/auth/state/AuthViewState.kt
unknown_repo
kotlin
package com.notesync.notes.framework.presentation.auth.state import android.os.Parcelable import androidx.constraintlayout.motion.utils.ViewState import com.notesync.notes.business.domain.model.User import kotlinx.android.parcel.Parcelize data class AuthViewState( var loginFields: LoginFields? = null, var re...