file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
Halachic Times/locations/src/main/java/com/github/times/location/country/CountriesGeocoder.kt | unknown_repo | kotlin | /*
* Copyright 2012, <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 w... |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/kotlin/io/shtanko/picasagallery/ui/auth/GoogleApiModule.kt | unknown_repo | kotlin | /*
* Copyright 2017 <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 writin... |
stripe-attestation/src/test/java/com/stripe/attestation/IntegrityStandardRequestManagerTest.kt | unknown_repo | kotlin | package com.stripe.attestation
import android.app.Activity
import com.google.android.gms.tasks.Task
import com.google.android.gms.tasks.Tasks
import com.google.android.play.core.integrity.StandardIntegrityManager
import com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityToken
import com.g... |
microCore/src/main/java/com/shimmer/microcore/utils/AppUtil.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION", "UNUSED")
package com.shimmer.microcore.utils
import android.app.Activity
import com.shimmer.microcore.core.context
import com.shimmer.microcore.storage.AppDatas
object AppUtil {
private var versionName: String = ""
private var versionCode: Int = -1
init {
version... |
app/src/main/java/com/pablo/tetris/infra/database/Player.kt | unknown_repo | kotlin | package com.pablo.tetris.infra.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "player_table")
data class Player(@PrimaryKey(autoGenerate = true) val id: Int = 0,
@ColumnInfo(name="name") val name: String,
@Co... |
app/src/main/java/com/example/dessertclicker/ui/DessertClickerViewModel.kt | unknown_repo | kotlin | package com.example.dessertclicker.ui
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import com.example.dessertclicker.data.Datasource.dessertList
import kotlinx.coroutines.flow.update
class Desser... |
app-ui/src/main/java/ru/shafran/ui/auth/login/AuthLoginUI.kt | unknown_repo | kotlin | package ru.shafran.ui.auth.login
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.... |
app/src/main/java/luyao/box/adapter/FileAdapter.kt | unknown_repo | kotlin | package luyao.box.adapter
import android.content.Context
import android.view.View
import android.widget.ImageButton
import android.widget.PopupMenu
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import luyao.box.R
import luyao.box.bean.IFile
class FileAdapter... |
app/src/main/java/com/none/tom/exiferaser/main/ui/MainFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018-2023, <NAME> (<EMAIL>)
*
* 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,... |
app/src/main/java/com/zenhub/gist/GistListActivity.kt | unknown_repo | kotlin | package com.zenhub.gist
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import and... |
imagepicker/src/main/java/com/esafirm/imagepicker/features/recyclers/RecyclerViewManager.kt | unknown_repo | kotlin | package com.esafirm.imagepicker.features.recyclers
import android.content.Context
import android.content.res.Configuration
import android.os.Parcelable
import android.widget.Toast
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.esafirm.imagepicker.R
imp... |
app/src/main/java/com/ibrahimcanerdogan/nasaspaceapp/model/earth/EarthAttitudeQuaternions.kt | unknown_repo | kotlin | package com.ibrahimcanerdogan.nasaspaceapp.model.earth
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity(tableName = "earth_attitude_quaternions")
data class EarthAttitudeQuaternions(
@PrimaryKey(autoGenerate = true)
val dataId: Int,
@Ser... |
client-app/app/src/main/java/org/feup/group4/supermarket/activities/MainActivity.kt | unknown_repo | kotlin | package org.feup.group4.supermarket.activities
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.google.gson.Gson
import kotlinx.coroutines.Dispatcher... |
app/src/main/java/com/example/jobcpp/View/Utils/TextViewAdapter.kt | unknown_repo | kotlin | package com.example.jobcpp.View.Utils
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.TextView
class TextViewAdapter(private val context: Context, private val items: List<TextView>) : BaseAdapter() {
override fun getCou... |
BuyMeADrink/app/src/pro/java/br/com/globalbyte/sample/and/buymeadrink/ui/BuyMeADrinkNavHost.kt | unknown_repo | kotlin | package br.com.globalbyte.sample.and.buymeadrink.ui
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import br.com.globalbyte.sample.and.buymeadrink.ui.scr... |
app/src/main/java/com/zeynelerdi/mackolik/util/extension/Toast.kt | unknown_repo | kotlin | package com.zeynelerdi.mackolik.util.extension
import android.content.Context
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
/**EXAMPLES**/
/**
* context.showToast("toast message text") -> toast message duration is default
* context.showToast("toast message te... |
app/src/main/java/watermelon/focus/ui/widget/StarItem.kt | unknown_repo | kotlin | package watermelon.focus.ui.widget
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import ... |
common/src/test/java/com/missionchurchcooljc/common/RetrofitTestMock.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 <NAME>, Mission Church of Our Lord Jesus Christ
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
app/src/main/java/io/horizontalsystems/bankwallet/modules/send/submodules/hodler/SendHodlerFragment.kt | unknown_repo | kotlin | package com.starbase.bankwallet.modules.send.submodules.hodler
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import io.horizontalsystems.bankwallet.R
import io.horizon... |
MultipleAppModulesExample/feature2/src/main/java/me/abunka/multipleappmodules/feature2/Feature2Navigation.kt | unknown_repo | kotlin | package me.abunka.multipleappmodules.feature2
import android.app.Activity
interface Feature2Navigation {
fun goToC(activity: Activity)
} |
core-android/src/main/java/com/eventful/core/android/view/epoxy/Controllers.kt | unknown_repo | kotlin | package com.eventful.core.android.view.epoxy
import android.os.Handler
import android.view.View
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
import com.airbnb.epoxy.AsyncEpoxyController
import com.airbnb.epoxy.EpoxyController
import com.airbnb.epoxy.... |
android/app/src/main/java/com/algorand/android/modules/swap/assetselection/base/BaseSwapAssetSelectionFragment.kt | unknown_repo | kotlin | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... |
app/src/main/java/com/arjuj/pokefacts/ui/search/SearchFragment.kt | unknown_repo | kotlin | package com.arjuj.pokefacts.ui.search
import android.app.Activity
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import androi... |
Music Wiki/MusicWiki/app/src/main/java/com/adityamshidlyali/musicwiki/adapter/ArtistTopAlbumsItemAdapter.kt | unknown_repo | kotlin | package com.adityamshidlyali.musicwiki.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.adityamshidlyali.musicwiki.R
import c... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Archive.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
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.co... |
feature/home/src/main/java/com/hellguy39/hellnotes/feature/home/label/components/LabelTopAppBar.kt | unknown_repo | kotlin | package com.hellguy39.hellnotes.feature.home.label.components
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.painterResource
import androidx.compos... |
features/sample/src/main/java/id/barakkastudio/sample/ui/navigation/NavRail.kt | unknown_repo | kotlin | package id.barakkastudio.sample.ui.navigation
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.fo... |
app/src/main/java/com/example/web/MainActivity.kt | unknown_repo | kotlin | package com.example.web
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.android_test_tack.mbicycle.weather_forecast.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedI... |
Salveomensageiro/app/src/main/java/br/com/salveomensageiro/ui/view/OrixaSearchTopBar.kt | unknown_repo | kotlin | package br.com.salveomensageiro.ui.view
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.materia... |
baselibrary/src/main/java/com/ballastlane/android/baselibrary/common/base/BasePermissionActivity.kt | unknown_repo | kotlin | package com.ballastlane.android.baselibrary.common.base
import android.content.Context
import android.content.DialogInterface
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.support.v7.app.AlertDialog
import android.util.Log
import android.view.Gravity
import an... |
app/src/main/java/com/simplemobiletools/commons/views/MyFloatingActionButton.kt | unknown_repo | kotlin | package com.simplemobiletools.commons.views
import android.content.Context
import android.content.res.ColorStateList
import android.support.design.widget.FloatingActionButton
import android.util.AttributeSet
/**
* Created by Hanjoong Cho on 2017-12-18.
* This code based 'Simple-Commons' package
* You can see origi... |
app/src/main/java/mobi/acpm/inspeckage/Module.kt | unknown_repo | kotlin | package mobi.acpm.inspeckage
import android.app.Application
import android.content.Context
import android.util.Log
import de.robv.android.xposed.*
import de.robv.android.xposed.IXposedHookZygoteInit.StartupParam
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam
import mobi.acpm.inspeckage.hooks.*... |
view/android/VerificationCodeDemo/app/src/main/java/com/example/verificationcodedemo/LoginActivity.kt | unknown_repo | kotlin | package com.example.verificationcodedemo
import android.content.res.Configuration
import android.content.res.Resources
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import com.example.verificationcodedemo.widget.BlockPuzzleDialog
import com.example.verificationcodedem... |
sample-kotlin/src/main/kotlin/com/polidea/rxandroidble2/samplekotlin/example3_discovery/ServiceDiscoveryExampleActivity.kt | unknown_repo | kotlin | package com.polidea.rxandroidble2.samplekotlin.example3_discovery
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.polidea.rxandroidble2.RxBleDevice
import com.polidea.rxandroidble2.samplekotlin.R
import com.polidea.rxandro... |
app/src/main/java/com/telen/easylineup/views/TournamentFormView.kt | unknown_repo | kotlin | /*
Copyright (c) <NAME>. 2010-2024
*/
package com.telen.easylineup.views
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.widget.addTextChangedListener
imp... |
module/search/src/main/java/jp/hazuki/yuzubrowser/search/repository/SearchUrlManager.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017-2019 Hazuki
*
* 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... |
examples/example-clientlib-rxjava-app/app/src/main/java/com/solanamobile/rxclientsample/usecase/SolanaRpcUseCase.kt | unknown_repo | kotlin | package com.solanamobile.ktxclientsample.usecase
import com.portto.solana.web3.Connection
import com.portto.solana.web3.PublicKey
import com.portto.solana.web3.rpc.types.config.Commitment
import com.portto.solana.web3.util.Cluster
import kotlinx.coroutines.*
import javax.inject.Inject
class SolanaRpcUseCase @Inject c... |
app/src/main/java/vn/loitp/up/a/cv/tv/verticalMarquee/VerticalMarqueeTextViewActivity.kt | unknown_repo | kotlin | package vn.loitp.up.a.cv.tv.verticalMarquee
import android.os.Bundle
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.common.NOT_FOUND
import com.loitp.core.ext.setSafeOnClickListenerElastic
import vn.loitp.R
import vn.loitp.d... |
server/src/main/java/com/pyamsoft/tetherfi/server/status/StatusListener.kt | unknown_repo | kotlin | /*
* Copyright 2024 pyamsoft
*
* 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... |
app/src/main/kotlin/org/kepocnhh/xfiles/module/theme/ThemeViewModel.kt | unknown_repo | kotlin | package org.kepocnhh.xfiles.module.theme
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.withContext
import org.kepocnhh.xfiles.module.app.Injection
import org.kepocnhh.xfiles.module.app.ThemeState
import org.kepocnhh.xfiles.util.lifecycle.AbstractVi... |
api_viewing/src/main/kotlin/com/madness/collision/unit/api_viewing/util/ManifestUtil.kt | unknown_repo | kotlin | /*
* Copyright 2020 Clifford Liu
*
* 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... |
workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/container/OverlayDialogHolder.kt | unknown_repo | kotlin | package com.squareup.workflow1.ui.container
import android.app.Dialog
import com.squareup.workflow1.ui.Screen
import com.squareup.workflow1.ui.ViewEnvironment
import com.squareup.workflow1.ui.ViewEnvironmentKey
import com.squareup.workflow1.ui.WorkflowUiExperimentalApi
import com.squareup.workflow1.ui.compatible
impor... |
shared/src/commonMain/kotlin/io/ktlab/bshelper/ui/components/AppAlertDialog.kt | unknown_repo | kotlin | package io.ktlab.bshelper.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Text
import androidx.compose.material3.TextB... |
app/src/main/java/com/dnd/sixth/lmsservice/presentation/utility/NumberFilter.kt | unknown_repo | kotlin | package com.dnd.sixth.lmsservice.presentation.utility
import android.text.Spanned
import android.text.InputFilter
import androidx.core.text.isDigitsOnly
/*
* EditText Filter : 숫자만 입력받을 수 있음
* */
class CustomInputFilter : InputFilter {
override fun filter(
source: CharSequence, start: Int,
end: ... |
vector/src/main/java/fr/gouv/tchap/preference/TchapRoomAvatarPreference.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 agreed ... |
anko/library/generated/support-v4/src/main/java/Layouts.kt | unknown_repo | kotlin | @file:JvmName("SupportV4LayoutsKt")
package org.jetbrains.anko.support.v4
import android.content.Context
import android.util.AttributeSet
import android.view.ViewGroup
import android.widget.FrameLayout
import android.support.v4.app.FragmentTabHost
import android.view.View
import android.support.v4.view.ViewPager
impo... |
app/src/main/kotlin/de/markusfisch/android/binaryeye/app/FileSaving.kt | unknown_repo | kotlin | package de.markusfisch.android.binaryeye.app
import android.app.Activity
import android.content.ContentValues
import android.content.Context
import android.os.Build
import android.os.Environment
import android.provider.MediaStore
import android.support.annotation.MainThread
import android.widget.EditText
import de.mar... |
demo-firebase/src/main/java/com/demo/auth/firebase/di/module/FragmentBindingModule.kt | unknown_repo | kotlin | package com.demo.auth.firebase.di.module
import androidx.lifecycle.ViewModel
import com.demo.auth.firebase.di.FragmentScoped
import com.demo.auth.firebase.di.ViewModelKey
import com.demo.auth.firebase.ui.profile.*
import com.demo.auth.firebase.ui.signin.SignInFragment
import com.demo.auth.firebase.ui.signin.SignInWith... |
app/src/main/java/mustafaozhan/github/com/mycurrencies/main/fragment/MainFragmentViewModel.kt | unknown_repo | kotlin | package mustafaozhan.github.com.mycurrencies.main.fragment
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.crashlytics.android.Crashlytics
import mustafaozhan.github.com.mycurrencies.base.BaseViewModel
import mustafaozhan.github.com.mycurrencies.extensions.calculateResult
import mustafaozh... |
backpack-android/Backpack/src/androidTest/java/net/skyscanner/backpack/text/internal/FontFamilyResolverTest.kt | unknown_repo | kotlin | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018-2020 Skyscanner 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/LI... |
shared/presentation/catalog/src/main/java/com/pandulapeter/zilchDice/shared/presentation/catalog/ZilchDiceIconButton.kt | unknown_repo | kotlin | package com.pandulapeter.zilchDice.shared.presentation.catalog
import androidx.compose.material.Icon
import androidx.compose.material.IconButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.vector.ImageVector
@Composable
fun ZilchDiceIconButton(
... |
app/src/main/java/com/example/helloworld/MainActivity.kt | unknown_repo | kotlin | package com.example.helloworld
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Materia... |
smart/src/main/java/cn/lsmya/smart/ktx/CoroutineExtension.kt | unknown_repo | kotlin | package cn.lsmya.smart.ktx
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.lifecycleScope
import cn.lsmya.smart.SmartSdkConfig
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.corout... |
core/src/main/java/com/kanyideveloper/core/util/Constants.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 ... |
app/src/main/java/com/example/android/navigationsample/Leaderboard.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 applic... |
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/presentation/balance/searchAssets/SearchAssetsScreen.kt | unknown_repo | kotlin | package jp.co.soramitsu.wallet.impl.presentation.balance.searchAssets
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... |
astro-androidview/src/main/kotlin/com/goofy/goober/androidview/AstroApplication.kt | unknown_repo | kotlin | package com.goofy.goober.androidview
import android.app.Application
import com.goofy.goober.androidview.navigation.AstroNavArgsViewModel
import com.goofy.goober.common.common
import com.goofy.goober.common.flow.flowModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
im... |
paging3/src/main/java/viz/commonlib/paging3/byPage/PageKeyedPagingSource.kt | unknown_repo | kotlin | package viz.commonlib.paging3.byPage
import android.os.Parcelable
import androidx.paging.PagingSource
import kotlinx.coroutines.CoroutineScope
import retrofit2.Call
import viz.commonlib.paging3.DataBean
import viz.commonlib.paging3.ErrorEntity
import java.io.Serializable
/**
* @title: PageKeyedPagingSource
* @proje... |
soil-query-compose/src/commonMain/kotlin/soil/query/compose/InfiniteQueryComposable.kt | unknown_repo | kotlin | // Copyright 2024 Soil Contributors
// SPDX-License-Identifier: Apache-2.0
package soil.query.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememb... |
app/src/main/java/com/np/dagger2/practice/practical_6/Dagger2Application.kt | unknown_repo | kotlin | package com.np.dagger2.practice.practical_6
import android.app.Application
import com.np.dagger2.practice.practical_6.di.ApplicationComponent
import com.np.dagger2.practice.practical_6.di.DaggerApplicationComponent
class Dagger2Application: Application() {
lateinit var applicationComponent: ApplicationComponent
... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Locationminus.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.... |
application/KotlinConcepts/app/src/main/java/com/istudio/app/modules/module_demos/higher_order_functions/ui/HigherOrderFunctionDemo.kt | unknown_repo | kotlin | package com.istudio.app.modules.module_demos.higher_order_functions.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.... |
app/src/main/java/com/kieronquinn/app/classicpowermenu/components/settings/RoomEncryptedSettingsRepository.kt | unknown_repo | kotlin | package com.kieronquinn.app.classicpowermenu.components.settings
import android.content.Context
import android.content.SharedPreferences
import android.util.Base64
import com.kieronquinn.app.classicpowermenu.BuildConfig
import com.kieronquinn.app.classicpowermenu.components.settings.EncryptedSettingsImpl.Companion
imp... |
app/src/main/java/com/zipdabang/zipdabang_android/module/my/data/remote/myrecipes/temp/TempRecipesDao.kt | unknown_repo | kotlin | package com.zipdabang.zipdabang_android.module.my.data.remote.myrecipes.temp
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface TempRecipesDao {
@Query("SELECT * FROM my_temped_recipes_table")
... |
serialization/serialization-compiler/src/main/kotlin/androidx/serialization/compiler/codegen/java/EnumSerializer.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... |
processor/src/main/kotlin/com/octo/workerdecorator/processor/generator/KotlinExecutorHelperGenerator.kt | unknown_repo | kotlin | package com.octo.workerdecorator.processor.generator
import com.octo.workerdecorator.WorkerDecoration
import com.octo.workerdecorator.processor.HelperGenerator
import com.octo.workerdecorator.processor.entity.HelperDocument
import com.octo.workerdecorator.processor.entity.Document
import com.octo.workerdecorator.proce... |
app/src/test/java/com/soen490chrysalis/papilio/viewModel/CreateActivityViewModelFactoryTest.kt | unknown_repo | kotlin | package com.soen490chrysalis.papilio.viewModel
import com.google.firebase.auth.FirebaseAuth
import com.soen490chrysalis.papilio.viewModel.factories.CreateActivityViewModelFactory
import io.mockk.every
import io.mockk.mockkStatic
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
impo... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Screencast.kt | unknown_repo | kotlin | package me.localx.icons.rounded.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
... |
javatests/com/google/android/libraries/pcc/chronicle/api/remote/RemoteRequestMetadataExtTest.kt | unknown_repo | kotlin | /*
* Copyright 2022 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 ... |
app/src/main/java/ir/alirezaiyan/levelprogressbar/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2016 <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 agreed to in wr... |
legacy-token-migration-sample/src/main/java/sample/okta/android/legacy/legacydashboard/LegacyDashboardFragment.kt | unknown_repo | kotlin | /*
* Copyright 2022-Present Okta, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
app/src/main/java/com/android/ui/moodSelection/MoodInterface.kt | unknown_repo | kotlin | package com.android.ui.moodSelection
import android.graphics.drawable.Drawable
interface MoodInterface {
interface View {
fun init()
fun goToNextScreen(word: String?)
}
interface Presenter {
fun attachView(view: View?)
fun backgroundSelector(background: String?): Drawable... |
app/src/main/java/com/android/ui/moodSelection/MoodInterface.kt | unknown_repo | kotlin | package com.android.ui.moodSelection
import android.graphics.drawable.Drawable
interface MoodInterface {
interface View {
fun init()
fun goToNextScreen(word: String?)
}
interface Presenter {
fun attachView(view: View?)
fun backgroundSelector(background: String?): Drawable... |
app/src/main/java/moluccus/app/base/MessageFeatures.kt | unknown_repo | kotlin | package moluccus.app.base
import android.annotation.SuppressLint
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.view.View
... |
fashion-tryon-compose/src/main/kotlin/com/aiuta/fashionsdk/tryon/compose/ui/internal/screens/result/components/footer/blocks/more/GenerateMoreTitleBlock.kt | unknown_repo | kotlin | package com.aiuta.fashionsdk.tryon.compose.ui.internal.screens.result.components.footer.blocks.more
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.lazy.grid.GridItemSpan
import android... |
2019-10-02/SystemServices/app/src/main/java/br/ufpe/cin/android/systemservices/phonesms/SmsSendDirectActivity.kt | unknown_repo | kotlin | package br.ufpe.cin.android.systemservices.phonesms
import android.Manifest
import android.app.Activity
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
imp... |
app/src/main/java/com/won/travelreviewpj/schedule/ScheduleAdapter.kt | unknown_repo | kotlin | package com.won.travelreviewpj.schedule
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.won.travelreviewpj.databindin... |
app/src/main/java/com/won/travelreviewpj/schedule/ScheduleAdapter.kt | unknown_repo | kotlin | package com.won.travelreviewpj.schedule
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.won.travelreviewpj.databindin... |
storage/demo/src/main/java/de/grobox/storagebackuptester/backup/BackupStats.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2021 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package de.grobox.storagebackuptester.backup
import android.content.Context
import android.provider.MediaStore
import android.text.format.DateUtils.FORMAT_ABBREV_ALL
import android.text.format.DateUtils.getRelativeTimeSp... |
presentation/src/main/java/com/arafat1419/collektr/presentation/ui/theme/Theme.kt | unknown_repo | kotlin | package com.arafat1419.collektr.presentation.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
//private val DarkColorScheme = darkColorScheme(
// primary = Pu... |
AppWithDB/app/src/main/java/com/example/appwithdb/UserDao.kt | unknown_repo | kotlin | package com.example.appwithdb
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import androidx.room.Upsert
@Dao
interface UserDao {
@Upsert
suspend... |
weather-database/src/main/java/com/github/mukiva/weatherdatabase/models/ForecastDayDbo.kt | unknown_repo | kotlin | package com.github.mukiva.weatherdatabase.models
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.datetime.LocalDateTime
@Entity
public data class ForecastDayDbo(
@PrimaryKey(autoGenerate = true)
val id: Long = 0,
@Col... |
app/src/main/java/com/yenaly/han1meviewer/ui/adapter/HanimeSearchHistoryRvAdapter.kt | unknown_repo | kotlin | package com.yenaly.han1meviewer.ui.adapter
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.yenaly.han1meviewe... |
app/src/main/java/pl/podwikagrzegorz/gardener/ui/auth/AuthViewModel.kt | unknown_repo | kotlin | package pl.podwikagrzegorz.gardener.ui.auth
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/StarChristmas.kt | unknown_repo | kotlin | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... |
custom_scope_sample/src/main/java/ru/surfstudio/android/custom_scope_sample/ui/screen/other/OtherActivityRoute.kt | unknown_repo | kotlin | package ru.surfstudio.android.custom_scope_sample.ui.screen.other
import android.content.Context
import android.content.Intent
import ru.surfstudio.android.core.ui.navigation.activity.route.ActivityRoute
class OtherActivityRoute : ActivityRoute() {
override fun prepareIntent(context: Context?): Intent {
r... |
app/src/main/java/com/movietrivia/filmfacts/api/ApiServices.kt | unknown_repo | kotlin | package com.movietrivia.filmfacts.api
import android.annotation.SuppressLint
import androidx.annotation.VisibleForTesting
import com.movietrivia.filmfacts.model.UserSettings
import com.squareup.moshi.Json
import retrofit2.Response
import retrofit2.http.*
import java.text.SimpleDateFormat
import java.util.*
import kotl... |
inappmessaging/src/test/java/com/rakuten/tech/mobile/inappmessaging/runtime/view/InAppMessageModalViewSpec.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.inappmessaging.runtime.view
import android.widget.Button
import android.widget.CheckBox
import android.widget.LinearLayout
import androidx.test.core.app.ApplicationProvider
import com.nhaarman.mockitokotlin2.verify
import com.rakuten.tech.mobile.inappmessaging.runtime.data.responses.pin... |
app/src/main/java/com/stream_suite/link/activity/main/MainIntentHandler.kt | unknown_repo | kotlin | package com.stream_suite.link.activity.main
import android.content.Intent
import android.os.Bundle
import androidx.core.app.NotificationManagerCompat
import com.stream_suite.link.R
import com.stream_suite.link.activity.MessengerActivity
import com.stream_suite.link.api.implementation.Account
import com.stream_suite.li... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Engine.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
canvas_lp/src/main/java/com/angcyo/canvas/laser/pecker/CanvasBitmapHandler.kt | unknown_repo | kotlin | package com.angcyo.canvas.laser.pecker
import android.graphics.Bitmap
import android.graphics.RectF
import android.view.View
import androidx.lifecycle.LifecycleOwner
import com.angcyo.canvas.Strategy
import com.angcyo.canvas.items.renderer.IItemRenderer
import com.angcyo.canvas.utils.*
import com.angcyo.core.component... |
app/src/main/java/com/wcsm/confectionaryadmin/ui/components/MinimizedCustomerCard.kt | unknown_repo | kotlin | package com.wcsm.confectionaryadmin.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.l... |
app/src/main/java/com/larrynguyen/notewall/addeditnote/AddEditNoteViewModel.kt | unknown_repo | kotlin | package com.larrynguyen.notewall.addeditnote
import android.app.Application
import android.databinding.ObservableField
import android.databinding.ObservableInt
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.text.Html
import android.text.SpannableString
import com.larrynguyen.no... |
app/src/main/java/vtsen/hashnode/dev/newemptycomposeapp/ui/screens/MainScreen.kt | unknown_repo | kotlin | /*
* Copyright 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 in writin... |
app/src/main/java/ci/projccb/mobile/models/FormationModel.kt | unknown_repo | kotlin | package ci.projccb.mobile.models
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.Index
import androidx.room.PrimaryKey
import ci.projccb.mobile.tools.Constants
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import k... |
pickerkt-ui/src/main/java/io/rektplorer64/pickerkt/ui/viewer/content/VideoContentViewer.kt | unknown_repo | kotlin | package io.rektplorer64.pickerkt.ui.viewer.content
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Vide... |
app/src/main/java/com/akshayteli/retrofitcoroutinekotlin/MainActivityViewModel.kt | unknown_repo | kotlin | package com.akshayteli.retrofitcoroutinekotlin
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotl... |
app/src/main/java/com/example/project5/MainActivity.kt | unknown_repo | kotlin | package com.example.project5
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.activity.viewModels
import com.example.project5.databinding.ActivityMainBinding
import androidx.lifecycle.Observer
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMa... |
projects/TestingStuff/app/src/androidTest/java/com/dev_vlad/testing_stuff/MainActivityTest.kt | unknown_repo | kotlin | package com.dev_vlad.testing_stuff
import android.nfc.tech.IsoDep
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.