file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/org/tokend/template/features/localaccount/mnemonic/view/MnemonicPhraseDialog.kt
unknown_repo
kotlin
package org.tokend.template.features.localaccount.mnemonic.view import android.content.Context import android.support.annotation.StyleRes import android.support.v7.app.AlertDialog import org.tokend.template.R import org.tokend.template.view.ToastManager import org.tokend.template.view.dialog.CopyDataDialogFactory cla...
src/commonMain/kotlin/org/andstatus/game2048/view/MainView.kt
unknown_repo
kotlin
package org.andstatus.game2048.view import com.soywiz.korge.view.Container import com.soywiz.korge.view.addTo import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.async import org.andstatus.game2048.ai.AiResult import org.andstatus.game2048.view.AppBar.Companion.setupAppBar class MainView private constr...
app/src/main/java/io/ak1/jetalarm/ui/screens/home/timer/TimerScreen.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 akshay2211 (<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 ag...
app/src/main/java/au/gondwanasoftware/ontrack/OnTrackDataStore.kt
unknown_repo
kotlin
package au.gondwanasoftware.ontrack import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.preferences.core.MutablePreferences import androidx.datastore.preferences.core.Preferences import androidx.datastore.preferences.core.booleanPreferencesKey import androidx.datastore.pre...
app/src/main/java/com/duckduckgo/app/browser/autocomplete/SuggestionViewHolderFactory.kt
unknown_repo
kotlin
/* * Copyright (c) 2019 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/com/example/wyrmprint/injection/module/DragaliaServiceModule.kt
unknown_repo
kotlin
package com.example.wyrmprint.injection.module import android.os.Build import com.example.wyrmprint.data.remote.DragaliaLifeService import com.example.wyrmprint.util.DragaliaLifeUtil import com.example.wyrmprint.util.TLSSocketFactory import dagger.Module import dagger.Provides import okhttp3.ConnectionPool import okht...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/broken/Globalsearch.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.broken 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/com/mathewsachin/fategrandautomata/dagger/app/ViewModelModule.kt
unknown_repo
kotlin
package com.mathewsachin.fategrandautomata.dagger.app import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import com.mathewsachin.fategrandautomata.ui.auto_skill_list.AutoSkillListViewModel import com.mathewsachin.fategrandautomata.ui.prefs.AutoSkillItemViewModel import com.mathewsachin.fat...
app/src/main/java/com/example/asetku/view/internalRateOfReturnOneCompany/Different/InternalRateOfReturnOneDifferentResult.kt
unknown_repo
kotlin
package com.example.asetku.view.internalRateOfReturnOneCompany.Different import android.annotation.SuppressLint import android.content.Intent import android.os.Build import android.os.Bundle import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.ViewModelProvid...
navigator/src/main/java/dev/joshuasylvanus/navigator/interfaces/ActivityContinuation.kt
unknown_repo
kotlin
package dev.joshuasylvanus.navigator.interfaces import android.net.Uri import android.view.View import androidx.annotation.AnimRes /** * Created by Joshua Sylvanus, 5:59 AM, 25/08/2022. */ interface ActivityContinuation { fun setActivityTransition(@AnimRes enterAnim:Int, @AnimRes exitAnim:Int): ActivityContinu...
sample/shared/src/commonMain/kotlin/soup/compose/material/motion/shared/common/BottomTabsContents.kt
unknown_repo
kotlin
/* * Copyright 2021 SOUP * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
utils/files-api/src/main/java/com/grappim/hateitorrateit/utils/filesapi/inforetriever/FileInfoRetriever.kt
unknown_repo
kotlin
package com.grappim.hateitorrateit.utils.filesapi.inforetriever import android.net.Uri import java.io.File interface FileInfoRetriever { suspend fun findFileInFolder(fileName: String, folderName: String): File fun getFileExtension(uri: Uri): String fun getMimeType(uri: Uri): String fun getFileSize(uri...
common/src/main/kotlin/cz/lastaapps/common/Communication.kt
unknown_repo
kotlin
package cz.lastaapps.common import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.util.Log object Communication { private val TAG get() = Communication::class.simpleName private const val facebookUrl = "https://www.faceboo...
app/src/test/java/com/hypertrack/android/api/ApiClientTest.kt
unknown_repo
kotlin
package com.hypertrack.android.api import androidx.arch.core.executor.testing.InstantTaskExecutorRule import okhttp3.mockwebserver.MockWebServer import com.hypertrack.android.repository.AccessTokenRepository import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.corout...
app/src/main/java/dev/mslalith/imagecachingandroid/screens/listing/ListingScreen.kt
unknown_repo
kotlin
package dev.mslalith.imagecachingandroid.screens.listing import androidx.compose.animation.animateContentSize import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import a...
app/src/main/java/me/stanis/apps/fiRun/database/util/converters/InstantConverters.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 i...
app/src/main/java/com/sedsoftware/yaptalker/presentation/base/enums/lifecycle/PresenterLifecycle.kt
unknown_repo
kotlin
package com.sedsoftware.yaptalker.presentation.base.enums.lifecycle import android.support.annotation.IntDef class PresenterLifecycle { companion object { const val CREATE = 0L const val ATTACH_VIEW = 1L const val DETACH_VIEW = 2L const val DESTROY = 3L } @Retention(AnnotationRetention.SOURCE)...
app/src/main/java/com/al3jodroid/recipes/ui/recipe/DetailsCard.kt
unknown_repo
kotlin
package com.al3jodroid.recipes.ui.recipe import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.rememberScrollState import androi...
android/src/main/java/com/lodev09/truesheet/core/KeyboardManager.kt
unknown_repo
kotlin
package com.lodev09.truesheet.core import android.content.Context import android.view.View import android.view.ViewTreeObserver.OnGlobalLayoutListener import android.view.inputmethod.InputMethodManager import com.facebook.react.bridge.ReactContext class KeyboardManager(reactContext: ReactContext) { interface OnKeyb...
capabilities/src/main/kotlin/com/mindstix/capabilities/database/dao/SkincareProductDao.kt
unknown_repo
kotlin
package com.mindstix.capabilities.database.dao import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import com.mindstix.capabilities.database.entities.SkincareProductEntity @Dao interface SkincareProductDao { @Insert(onConflict = OnConflictStrate...
app/src/main/java/com/example/hillclimbers/RegisterFragment.kt
unknown_repo
kotlin
package com.example.hillclimbers import android.content.Intent import android.os.Bundle import android.text.TextUtils import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import com.example.hillclimbers.R.layout.acti...
dd-sdk-android/src/main/kotlin/com/datadog/android/webview/internal/MixedWebViewEventConsumer.kt
unknown_repo
kotlin
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ package com.datadog.android.webview.internal import androidx.annotat...
Aplicacion/app/src/main/java/com/example/miincidencia/listadoIncidencias/NuevoFragment.kt
unknown_repo
kotlin
package com.example.miincidencia import android.content.Intent import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager...
Pinned/app/src/main/java/com/sugarbrain/pinned/profile/ProfileActivity.kt
unknown_repo
kotlin
package com.sugarbrain.pinned.profile import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import androidx.core.view.isVisible import androidx.recyclerview.widget.LinearLayoutManager import com.bumptech.glide.Glide import com.google.firebase.aut...
app/src/main/java/ir/abolfazl/abolmovie/userScreen/UserFragment.kt
unknown_repo
kotlin
package ir.abolfazl.abolmovie.userScreen import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.activity.addCallback import androidx.fragment.app.Fragment import androidx.navigation.fragment.findNavController import com.google.firebase.auth.F...
app/src/main/java/com/zaneschepke/wireguardautotunnel/repository/SettingsDoa.kt
unknown_repo
kotlin
package com.zaneschepke.wireguardautotunnel.repository import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import com.zaneschepke.wireguardautotunnel.repository.model.Settings import kotlinx.coroutines.flow.Flow @Dao inter...
src/main/kotlin/com/rvdsoft/kotlinflowextensions/WithLatestFromImpl.kt
unknown_repo
kotlin
package com.rvdsoft.kotlinflowextensions import kotlinx.coroutines.* import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.FlowCollector import kotlinx.coroutines.flow.collect import java.util.concurrent.atomic.AtomicReference @ExperimentalCoroutinesApi @Suppress("UNCHECKED_CAST") /** * @see <a href="h...
android/src/main/kotlin/com/rockwellits/rw_plugins/rw_barcode_reader/RwBarcodeReaderPlugin.kt
unknown_repo
kotlin
package com.rockwellits.rw_plugins.rw_barcode_reader import android.app.Activity import android.content.Intent import android.os.Bundle import androidx.annotation.NonNull import io.flutter.embedding.engine.plugins.FlutterPlugin import io.flutter.embedding.engine.plugins.activity.ActivityAware import io.flutter.embeddi...
feature/account/setup/src/main/kotlin/app/k9mail/feature/account/setup/ui/options/display/DisplayOptionsScreen.kt
unknown_repo
kotlin
package app.k9mail.feature.account.setup.ui.options.display import androidx.activity.compose.BackHandler import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.ui.Modifier import app.k9mail.core.common.provider.AppNameProvider import app.k9mail.core.ui.compose...
app/src/main/kotlin/io/armcha/ribble/domain/entity/Image.kt
unknown_repo
kotlin
package io.armcha.ribble.domain.entity import android.annotation.SuppressLint import android.os.Parcel import android.os.Parcelable import io.armcha.ribble.presentation.utils.extensions.emptyString import kotlinx.android.parcel.Parcelize /** * Created by Chatikyan on 28.08.2017. */ @SuppressLint("ParcelCreator") @P...
app/src/main/java/com/breadwallet/ui/launcher/LauncherViewModel.kt
unknown_repo
kotlin
/** * BreadWallet * <p/> * Created by Pablo Budelli on <pablo.budelli@breadwallet.com> 5/16/19. * Copyright (c) 2019 breadwallet LLC * <p/> * 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 Soft...
app/src/main/java/njc/koinprototype/MainActivity.kt
unknown_repo
kotlin
package njc.koinprototype import android.os.Bundle import android.support.v7.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) if (savedInstanceSta...
RxUI/src/main/java/com/tamsiree/rxui/view/dialog/wheel/ArrayWheelAdapter.kt
unknown_repo
kotlin
package com.tamsiree.rxui.view.dialog.wheel import android.content.Context /** * @param <T> the element type * The simple Array wheel adapter * @author tamsiree </T> */ open class ArrayWheelAdapter<T> //setEmptyItemResource(TEXT_VIEW_ITEM_RESOURCE); (context: Context, // items private val items: Array<T>) : Abstr...
widget/src/main/java/app/allever/android/lib/widget/mediapicker/ui/adapter/AudioAdapter.kt
unknown_repo
kotlin
package app.allever.android.lib.widget.mediapicker.ui.adapter import android.graphics.Color import android.view.animation.Animation import android.view.animation.LinearInterpolator import android.view.animation.RotateAnimation import app.allever.android.lib.core.ext.logE import app.allever.android.lib.core.function.im...
android-app/app/src/main/java/br/com/firstsoft/parlathon/view/viewholder/PartidoViewHolder.kt
unknown_repo
kotlin
package br.com.firstsoft.parlathon.view.viewholder import android.annotation.SuppressLint import android.content.Context import android.support.v7.widget.RecyclerView import android.view.View import br.com.firstsoft.parlathon.business.vo.Partido import br.com.firstsoft.parlathon.util.loadImg import kotlinx.android.syn...
lawnchair/src/app/lawnchair/ui/preferences/components/AnnouncementPreference.kt
unknown_repo
kotlin
package app.lawnchair.ui.preferences.components import android.content.Intent import android.net.Uri import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose....
app/src/main/java/me/mucool/testapplication/ui/activity/ServiceRecordFragment.kt
unknown_repo
kotlin
package me.mucool.testapplication.ui.activity import android.app.Dialog import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.os.Bundle import android.view.* import android.widget.TextView import androidx.appcompat.widge...
app/src/main/java/fun/inaction/sample/dialog/MainActivity.kt
unknown_repo
kotlin
package `fun`.inaction.sample.dialog import `fun`.inaction.dialog.dialogs.* import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Button import android.widget.TextView import android.widget.Toast class MainActivity : AppCompatActivity() { /** ...
Stipop/src/main/java/io/stipop/Config.kt
unknown_repo
kotlin
package io.stipop import android.content.Context import android.graphics.Color import android.graphics.Typeface import android.graphics.drawable.GradientDrawable import androidx.core.content.ContextCompat import org.json.JSONException import org.json.JSONObject import java.io.IOException import kotlin.math.roundToInt ...
FanControl/app/src/jvmMain/kotlin/ui/itemsList/behaviorList/linearAndTarget/target/managerTarget.kt
unknown_repo
kotlin
package ui.screen.itemsList.behaviorList.linearAndTarget.target import FState import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.width import androidx.compose.runtime.Composable import androidx.compose.runtime.MutableState import ...
library/src/main/java/com/camerash/filterdrawer/DrawerBuilder.kt
unknown_repo
kotlin
package com.camerash.filterdrawer import android.app.Activity import android.os.Build import android.support.annotation.ColorRes import android.support.annotation.LayoutRes import android.support.annotation.MenuRes import android.support.annotation.NonNull import android.support.v4.content.ContextCompat import android...
Notes/app/src/main/java/com/example/notes/ui/TaskRecyclerAdapter.kt
unknown_repo
kotlin
package com.example.notes.ui import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.example.notes.R import com.example.notes.model.Task import com.example.notes.ui.adapter.TaskViewHolder class TaskRecyclerAda...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Locationslash.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.twotone 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...
wallet/ui/main/MainFragment.kt
unknown_repo
kotlin
// Copyright (c) 2023, Circle Technologies, LLC. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless req...
vanite-utils/src/main/java/io/vanite/android/utils/language/VaniteLanguageToggle.kt
unknown_repo
kotlin
package io.vanite.android.utils.language import android.content.Context import android.content.SharedPreferences import io.vanite.android.details.VanitePrefsDetails import io.vanite.android.details.VanitePrefsDetailsException import io.vanite.android.errors.VanitePrefsNotInitializedException import kotlinx.coroutines....
app/src/main/java/com/github/pakka_papad/home/Genres.kt
unknown_repo
kotlin
package com.github.pakka_papad.home import androidx.compose.foundation.clickable import androidx.compose.foundation.interaction.MutableInteractionSource import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListState import androidx.c...
examples/paywall-tester/src/main/java/com/revenuecat/paywallstester/ui/screens/main/offerings/OfferingsViewModel.kt
unknown_repo
kotlin
package com.revenuecat.paywallstester.ui.screens.main.offerings import android.util.Log import androidx.lifecycle.ViewModel import com.revenuecat.purchases.Purchases import com.revenuecat.purchases.getOfferingsWith import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx....
presentation/src/main/java/org/lotka/xenon/presentation/screen/wish_list/compose/WishListCard.kt
unknown_repo
kotlin
package org.lotka.xenon.presentation.screen.wish_list.compose import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compo...
composeApp/src/iosMain/kotlin/MainViewController.kt
unknown_repo
kotlin
import androidx.compose.ui.window.ComposeUIViewController import platform.UIKit.UIViewController fun MainViewController(): UIViewController = ComposeUIViewController( configure = { KoinInitializer().init() } ) { App() }
app/src/main/java/com/abner/dialog/DialogBottomAdapter.kt
unknown_repo
kotlin
package com.abner.dialog import android.content.Context import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.RecyclerView import com.abner.dialog.databinding.LayoutDialogItemBottomGridBinding /** *AUTHOR:AbnerMing *DATE:2022/11/29 *I...
app/src/main/java/com/samirmaciel/yugiohapp/modules/myDeck/MyDeckViewModel.kt
unknown_repo
kotlin
package com.samirmaciel.yugiohapp.modules.myDeck import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.samirmaciel.yugiohapp.shared.domain.model.Card import com.samirmaciel.yugiohapp.shared.data.dataInternal.repository.CardRepositoryImpl impor...
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/CopySelect.kt
unknown_repo
kotlin
package com.konyaco.fluent.icons.regular 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.Regular.CopySelect: ImageVector get() { if (_copySelect != null) { ...
app/src/main/java/github/sachin2dehury/musicplayer/MusicPlayerApplication.kt
unknown_repo
kotlin
package github.sachin2dehury.musicplayer import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class MusicPlayerApplication : Application()
sketch-extensions/src/androidTest/java/com/github/panpf/sketch/extensions/test/decode/ApkIconBitmapDecoderTest.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...
app/src/main/java/com/google/samples/apps/sunflower/newsscreen/viewmodels/InfoDetailViewModel.kt
unknown_repo
kotlin
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
app/src/main/java/com/jeanloth/project/android/kotlin/feedme/features/command/presentation/command/CommandDetailsVM.kt
unknown_repo
kotlin
package com.jeanloth.project.android.kotlin.feedme.features.command.presentation.command import android.util.Log import androidx.compose.runtime.mutableStateOf import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.jeanloth.project.android.kot...
sample/src/main/java/com/lush/views/dialogs/StatusFailureDialog.kt
unknown_repo
kotlin
package com.lush.views.dialogs import android.os.Message import com.lush.dialog.BaseStatusDialog import java.util.* import kotlin.concurrent.timerTask class StatusFailureDialog: BaseStatusDialog(), android.os.Handler.Callback { override fun startTask() { val handler = android.os.Handler(this) Timer().schedule(t...
app/src/main/java/org/fossasia/openevent/general/order/OrderCompletedViewModel.kt
unknown_repo
kotlin
package org.fossasia.openevent.general.order import android.arch.lifecycle.MutableLiveData import android.arch.lifecycle.ViewModel import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.CompositeDisposable import io.reactivex.schedulers.Schedulers import org.fossasia.openevent.general...
app/src/main/java/eu/pkgsoftware/babybuddywidgets/debugging/GlobalDebugObject.kt
unknown_repo
kotlin
package eu.pkgsoftware.babybuddywidgets.debugging import android.util.Log class GlobalDebugObject { companion object { @JvmStatic val ENABLED = false @JvmStatic val DO_PRINT = true @JvmStatic val LOG_FILE_MESSAGE_LIMIT = 10000 val LOCK = Object() p...
app/gps_alarm/src/main/java/com/gps_alarm/ui/util/PermissionUtils.kt
unknown_repo
kotlin
package com.gps_alarm.ui.util import android.Manifest import android.app.Activity import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.provider.Settings import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.Ac...
app/src/main/java/space/taran/arkretouch/presentation/drawing/EditManager.kt
unknown_repo
kotlin
package space.taran.arkretouch.presentation.drawing import androidx.compose.runtime.MutableState import androidx.compose.runtime.State import androidx.compose.runtime.mutableStateOf import androidx.compose.ui.geometry.Offset import androidx.compose.ui.graphics.BlendMode import androidx.compose.ui.graphics.Color import...
app/src/main/java/com/fjjukic/furniture4you/ui/common/model/Order.kt
unknown_repo
kotlin
package com.fjjukic.furniture4you.ui.common.model import androidx.compose.runtime.Immutable import com.fjjukic.furniture4you.ui.order.OrderStatus import java.util.UUID @Immutable data class Order( val id: String = UUID.randomUUID().toString(), val number: String, val date: String, val quantity: Int, ...
app/src/main/java/ru/glindaqu/ejournal/MainActivity.kt
unknown_repo
kotlin
package ru.glindaqu.ejournal import android.annotation.SuppressLint import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge import androidx.compose.ui.unit.dp import androidx.compose.foundation.layout.fillMaxSize import a...
compose/runtime/runtime/src/commonTest/kotlin/androidx/compose/runtime/changelist/TestOperations.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/com/starbase/bankwallet/entities/ActiveAccount.kt
unknown_repo
kotlin
package com.starbase.bankwallet.entities import androidx.room.Entity @Entity(primaryKeys = ["primaryKey"]) class ActiveAccount( val accountId: String, val primaryKey: String = "active_account" )
app/src/main/java/com/kyant/pixelmusic/util/Gradient.kt
unknown_repo
kotlin
package com.jetpack.composechips.component import androidx.compose.animation.animateColorAsState import androidx.compose.animation.core.animateDpAsState import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.ui.Modifier import androidx.compose.ui.composed import...
app/src/main/java/com/dinhlam/sharebox/ui/list/modelview/ShareListDateModelView.kt
unknown_repo
kotlin
package com.dinhlam.sharebox.ui.list.modelview import android.view.View import com.dinhlam.sharebox.R import com.dinhlam.sharebox.base.BaseListAdapter import com.dinhlam.sharebox.base.BaseSpanSizeLookup import com.dinhlam.sharebox.databinding.ModelViewShareListDateBinding data class ShareListDateModelView( val id...
app/src/main/java/com/erkindilekci/lifelog/data/local/entity/ImageToUpload.kt
unknown_repo
kotlin
package com.erkindilekci.lifelog.data.local.entity import androidx.room.Entity import androidx.room.PrimaryKey import com.erkindilekci.lifelog.util.Constants.IMAGE_TO_UPLOAD_TABLE @Entity(tableName = IMAGE_TO_UPLOAD_TABLE) data class ImageToUpload( @PrimaryKey(autoGenerate = true) val id: Int = 0, val rem...
domain/src/main/java/io/github/markyav/domain/ControlNet.kt
unknown_repo
kotlin
package io.github.markyav.domain import androidx.compose.ui.graphics.ImageBitmap /** * Main interface to generate an image using ControlNet. */ interface ControlNet { suspend fun process(params: ControlNetParams): ImageBitmap? }
component-toolkit/src/jvmMain/kotlin/com/macaosoftware/component/DesktopComponentRender.kt
unknown_repo
kotlin
package com.macaosoftware.component import androidx.compose.desktop.ui.tooling.preview.Preview import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.Composi...
CommonRecycler-Kotlin/src/main/java/com/shuyu/commonrecycler/xrecycler/progressindicator/AVLoadingIndicatorView.kt
unknown_repo
kotlin
package com.shuyu.commonrecycler.xrecycler.progressindicator import android.annotation.TargetApi import android.content.Context import android.content.res.TypedArray import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.os.Build import android.support.annotation.IntD...
app/src/main/java/com/tzt/customizekt/MainActivity.kt
unknown_repo
kotlin
package com.tzt.customizekt import android.view.View import android.widget.Toast import com.tzt.common.basedepency.base.BaseActivity import com.tzt.common.basedepency.widget.Toobar import com.tzt.common.basedepency.widget.ToobarParams class MainActivity : BaseActivity() { override fun layoutResID(): Int { ...
app/src/main/java/com/letitplay/maugry/letitplay/user_flow/ui/screen/channels/ChannelAdapter.kt
unknown_repo
kotlin
package com.letitplay.maugry.letitplay.user_flow.ui.screen.channels import android.support.v7.util.DiffUtil import android.support.v7.widget.RecyclerView import android.support.v7.widget.RecyclerView.NO_POSITION import android.view.ViewGroup import com.letitplay.maugry.letitplay.R import com.letitplay.maugry.letitplay...
app/src/main/kotlin/com/chipcerio/moovy/data/source/local/PopularMoviesLocalSource.kt
unknown_repo
kotlin
package com.chipcerio.moovy.data.source.local import android.content.SharedPreferences import com.chipcerio.moovy.common.Constants.HAS_TMDB_CONFIG import com.chipcerio.moovy.common.Constants.IMG_BASE_URL import com.chipcerio.moovy.common.Constants.IMG_WIDTH import com.chipcerio.moovy.common.edit import com.chipcerio.m...
CustomViewTest/app/src/main/java/com/example/lt/customviewtest/view/RandomColorTextView.kt
unknown_repo
kotlin
package com.example.lt.customviewtest.view import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.os.Build import android.util.AttributeSet import android.view.View import androidx.annotation.RequiresApi import androidx.appcompat.widget....
app/src/main/java/org/wikipedia/userprofile/ContributionsActivity.kt
unknown_repo
kotlin
package org.wikipedia.userprofile import android.content.Context import android.content.Intent import org.wikipedia.activity.SingleFragmentActivity import org.wikipedia.analytics.SuggestedEditsFunnel class ContributionsActivity : SingleFragmentActivity<ContributionsFragment>() { public override fun createFragment...
shared/src/commonMain/kotlin/ui/screens/post/items/ItemPostBookmark.kt
unknown_repo
kotlin
package ui.screens.post.items import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layou...
app/src/main/java/io/bibuti/opennews/ui/onboarding/SplashFragment.kt
unknown_repo
kotlin
package io.bibuti.opennews.ui.onboarding import android.os.Bundle import android.view.View import androidx.lifecycle.lifecycleScope import androidx.navigation.fragment.findNavController import dagger.hilt.android.AndroidEntryPoint import io.bibuti.opennews.R import io.bibuti.opennews.core.BaseFragment import io.bibuti...
app/src/main/java/com/example/collegeapp20/faculity/ItemFaculityCard.kt
unknown_repo
kotlin
package com.example.collegeapp.ui.theme.faculity import androidx.compose.foundation.Image import androidx.compose.foundation.layout.* import androidx.compose.foundation.selection.selectable import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.* import androidx.compose.runtime.C...
app/src/main/java/id/agis/databaseinspectorsample/viewmodel/NotesViewModel.kt
unknown_repo
kotlin
package id.agis.databaseinspectorsample.viewmodel import android.app.Application import androidx.lifecycle.* import id.agis.databaseinspectorsample.database.NoteRepository import id.agis.databaseinspectorsample.model.Note class NotesViewModel(application: Application) : AndroidViewModel(application) { private lat...
site/src/jsMain/kotlin/example/shadcn_kotlin/ui/components/MarkDownTable.kt
unknown_repo
kotlin
package example.shadcn_kotlin.ui.components import androidx.compose.runtime.Composable import org.jetbrains.compose.web.dom.Div import org.jetbrains.compose.web.dom.Table @Composable fun mdTable( content: @Composable () -> Unit ) { Div({ classes("my-6","w-full","overflow-y-auto") }) { Table({ classes(...
app/src/main/java/com/example/fuelcalculator/PriceActivity.kt
unknown_repo
kotlin
package com.example.fuelcalculator import android.content.Intent import android.os.Bundle import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import com.example.fuelcalculator.databinding.ActivityPri...
app/src/main/java/com/yousfi/hayatiineApp/ui/fragment/search/SearchFragment.kt
unknown_repo
kotlin
package com.yousfi.hayatiineApp.ui.fragment.search import androidx.lifecycle.ViewModelProviders import com.yousfi.hayatiine.ui.base.BaseFragment import com.yousfi.hayatiineApp.R import com.yousfi.hayatiineApp.databinding.SearchFragmentBinding import com.yousfi.hayatiineApp.ui.fragment.add.AddViewModel class SearchFra...
src/main/kotlin/Orchestrator.kt
unknown_repo
kotlin
package technology.idlab import kotlinx.coroutines.coroutineScope import kotlinx.coroutines.launch import technology.idlab.broker.Broker import technology.idlab.broker.impl.SimpleBroker import technology.idlab.intermediate.IRRunner import technology.idlab.intermediate.IRStage import technology.idlab.runner.Runner impo...
app/src/main/java/ir/sajjad/textsaver/adapter/TextSaverAdapter.kt
unknown_repo
kotlin
package ir.sajjad.textsaver.adapter import android.content.Context import android.view.LayoutInflater import android.view.TextureView import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import ir.sajjad.textsaver.R import ir.sajjad.text...
dd-sdk-android/src/main/kotlin/com/datadog/android/log/internal/net/LogOkHttpUploader.kt
unknown_repo
kotlin
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-2019 Datadog, Inc. */ package com.datadog.android.log.internal.net import android.os.Build im...
app/src/main/java/com/example/fulllab/ContadoActivity.kt
unknown_repo
kotlin
package com.example.fulllab import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import kotlinx.android.synthetic.main.activity_contado.* class ContadoActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(sav...
benchmark/src/main/java/com/t8rin/imagetoolboxlite/benchmark/BaselineProfileGenerator.kt
unknown_repo
kotlin
/* * ImageToolbox is an image editor for android * Copyright (c) 2024 T8RIN (<NAME>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * Unless required by applicable law or agreed to in writing, software * distributed under ...
app/src/main/java/database/DatabaseDao.kt
unknown_repo
kotlin
package database import androidx.lifecycle.LiveData import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query @Dao interface DatabaseDao { @Insert(onConflict = OnConflictStrategy.IGNORE) suspend fun addname(name: NameList) @Query("SELECT * FR...
app/src/main/java/com/example/filler/gui/results/viewmodel/ResultsViewModel.kt
unknown_repo
kotlin
package com.example.filler.gui.results.viewmodel import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class ResultsViewModel : ViewModel() { val firstCreation: MutableLiveData<Boolean> by lazy { MutableLiveData<Boolean>(true) } }
android/app/src/main/kotlin/com/chicagoroboto/features/speakerdetail/SpeakerNavigator.kt
unknown_repo
kotlin
package com.chicagoroboto.features.speakerdetail import android.view.View interface SpeakerNavigator { fun navigateToSpeaker(id: String, image: View? = null) }
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/ThreeBars16.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.octicons.octicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.Stro...
app/src/main/java/com/nuevo/gameness/ui/pages/personal/profile/adapter/TeamUsersAdapter.kt
unknown_repo
kotlin
package com.nuevo.gameness.ui.pages.personal.profile.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.nuevo.gameness.data.model.settings.Datum import com.nuevo.gameness.databinding.ItemGamersParentBinding import com.nuevo.gameness.ui.base.BaseRecyclerAdapter ...
app/src/main/java/com/nuevo/gameness/ui/pages/personal/profile/adapter/TeamUsersAdapter.kt
unknown_repo
kotlin
package com.nuevo.gameness.ui.pages.personal.profile.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.nuevo.gameness.data.model.settings.Datum import com.nuevo.gameness.databinding.ItemGamersParentBinding import com.nuevo.gameness.ui.base.BaseRecyclerAdapter ...
feature/chart/src/main/java/com/niyaj/feature/chart/bar/StackedBarChart.kt
unknown_repo
kotlin
package com.niyaj.feature.chart.bar import androidx.compose.foundation.Canvas import androidx.compose.foundation.gestures.detectTapGestures import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.layout.padding import androidx.compose.runtime.Composable import androidx.compose.runtime...
app/src/main/java/com/anytypeio/anytype/di/feature/relations/RelationCreateFromScratchDI.kt
unknown_repo
kotlin
package com.anytypeio.anytype.di.feature.relations import com.anytypeio.anytype.analytics.base.Analytics import com.anytypeio.anytype.core_models.Payload import com.anytypeio.anytype.core_models.RelationFormat import com.anytypeio.anytype.core_utils.di.scope.CreateFromScratch import com.anytypeio.anytype.core_utils.di...
app/src/main/java/com/example/wallet/ui/home/HomeContract.kt
unknown_repo
kotlin
package com.example.wallet.ui.home import androidx.lifecycle.LiveData interface HomeContract { interface View { fun showLoader() fun hideLoader() fun showFavoriteTransfers(favoriteTransfer: List<FavoriteTransfer>) } interface Presenter { fun retrieveFavoriteTransfers() ...
app/src/main/java/com/example/wallet/ui/home/HomeContract.kt
unknown_repo
kotlin
package com.example.wallet.ui.home import androidx.lifecycle.LiveData interface HomeContract { interface View { fun showLoader() fun hideLoader() fun showFavoriteTransfers(favoriteTransfer: List<FavoriteTransfer>) } interface Presenter { fun retrieveFavoriteTransfers() ...
app/src/main/java/io/github/kdesp73/petadoption/firebase/UserManager.kt
unknown_repo
kotlin
package io.github.kdesp73.petadoption.firebase import android.util.Log import com.google.firebase.firestore.DocumentSnapshot import com.google.firebase.firestore.FirebaseFirestore import io.github.kdesp73.petadoption.MainActivity import io.github.kdesp73.petadoption.R import kotlinx.coroutines.tasks.await class UserM...
app/src/main/java/software/tice/walletandroid/ui/theme/bundesIdent/theme/Shape.kt
unknown_repo
kotlin
package software.tice.walletandroid.ui.theme.bundesIdent.theme import androidx.compose.foundation.shape.CornerBasedShape import androidx.compose.material3.* import androidx.compose.runtime.Immutable import androidx.compose.runtime.staticCompositionLocalOf @Immutable data class UseIdShapes( val roundedSmall: Corne...