path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/github/vitorfg8/pettracks/presentation/petinfo/PetInfoUiState.kt | vitorfg8 | 762,248,139 | false | {"Kotlin": 66926} | package com.github.vitorfg8.pettracks.presentation.petinfo
import android.graphics.Bitmap
import com.github.vitorfg8.pettracks.domain.model.Pet
import com.github.vitorfg8.pettracks.presentation.GenderUiState
import com.github.vitorfg8.pettracks.presentation.PetTypeUiState
import com.github.vitorfg8.pettracks.presentat... | 0 | Kotlin | 0 | 0 | 940af0d9ffe20b32b8077a1bfd02145ab7ea5fb5 | 1,583 | PetTracks | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/manageusersapi/adapter/external/UserRolesApiService.kt | ministryofjustice | 406,273,579 | false | null | package uk.gov.justice.digital.hmpps.manageusersapi.adapter.external
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.stereotype.Service
import uk.gov.justice.digital.hmpps.manageusersapi.adapter.WebClientUtils
import uk.gov... | 0 | Kotlin | 0 | 0 | ef2fb9fc64d0c74c32690e76a45bd24e0d229051 | 1,484 | hmpps-manage-users-api | MIT License |
app/src/main/java/com/xin/wanandroid/core/bean/NavigationData.kt | coolxinxin | 294,916,632 | false | null | /*
* Copyright 2020 Leo
* 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... | 0 | Kotlin | 0 | 3 | fbb65064bee0b3208a0b69f4feaa49c01818f854 | 1,306 | WanAndroid-JetpackMvvm | Apache License 2.0 |
src/main/kotlin/com/youjf/simplebin/model/Content.kt | jefferycn | 584,077,197 | false | null | package com.youjf.simplebin.model
import com.fasterxml.jackson.annotation.JsonProperty
import org.springframework.hateoas.RepresentationModel
data class Content(
@field:JsonProperty("id")
var id: String? = null,
@field:JsonProperty("type")
var type: String? = null,
@field:JsonProperty("body")
... | 0 | Kotlin | 0 | 0 | 765cd39f793919947b340cf18010cc07695aadc2 | 383 | simplebin | MIT License |
src/main/kotlin/com/foxentry/foxentrysdk/models/LocationGet.kt | Foxentry | 830,077,226 | false | {"Kotlin": 442689} | /**
* Foxentry API reference
*
* The version of the OpenAPI document: 2.0 Contact: <EMAIL>
*
* NOTE: This file is auto generated. Do not edit the file manually.
*/
package com.foxentry.foxentrysdk.models
import com.fasterxml.jackson.annotation.JsonValue
import com.fasterxml.jackson.databind.annotation.JsonDeseri... | 0 | Kotlin | 0 | 0 | 8b215f6df68bd39c86ca0d44689e55704cc39457 | 3,801 | kotlin-sdk | MIT License |
app/src/main/java/com/sk/autotp/screens/ComposableFragment.kt | swapnilkadlag | 715,625,548 | false | {"Kotlin": 63221} | package com.sk.autotp.screens
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.navigationBarsPadding
import androi... | 0 | Kotlin | 0 | 0 | 53cfcb772e8ee3cb57f747b36ad8abc93e918776 | 1,601 | AutOTP | Apache License 2.0 |
src/main/kotlin/io/imotions/bson4k/BsonConf.kt | imotions | 338,147,158 | false | null | /*
* Copyright 2021 iMotions A/S
*
* 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... | 3 | null | 0 | 6 | 6194962a071937ce42eed7f64c6b3e837427dc18 | 1,192 | bson4k | Apache License 2.0 |
examples/wa-articles/src/main/java/com/anymore/wanandroid/articles/di/module/ArticlesSearchActivityModule.kt | anymao | 234,439,982 | false | null | package com.anymore.wanandroid.articles.di.module
import com.anymore.andkit.dagger.scope.ActivityScope
import com.anymore.wanandroid.articles.mvvm.view.activity.ArticlesSearchActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
/**
* Created by anymore on 2020/4/20.
*/
@Module
abstract cla... | 0 | Kotlin | 0 | 5 | f0c89b016e16303840e61c60337c39e82bf8c872 | 561 | Andkit | MIT License |
app/src/main/java/com/amped94/ffbtracker/util/Extensions.kt | apederson94 | 416,111,715 | false | {"Kotlin": 79456} | package com.amped94.ffbtracker.util
import androidx.navigation.NavBackStackEntry
import androidx.navigation.NavDestination.Companion.hierarchy
import com.amped94.ffbtracker.data.model.ui.Screen
fun NavBackStackEntry.screenIsShowing(screen: Screen) : Boolean {
return destination.route == screen.route
}
fun NavBac... | 0 | Kotlin | 1 | 0 | 57f82838723245c0f772e000e84e4e294f67d31e | 443 | FFBTracker | MIT License |
app/src/main/java/com/awscherb/cardkeeper/ui/scan/ScanFragment.kt | LateNightProductions | 66,697,395 | false | null | package com.awscherb.cardkeeper.ui.scan
import android.Manifest
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.text.InputType
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android... | 1 | Kotlin | 19 | 99 | a13d40f7cf73e6d69beac4837ed6b5d01a9d8395 | 4,358 | CardKeeper | Apache License 2.0 |
library/src/main/java/io/github/toyota32k/bindit/ReadOnlyBinding.kt | toyota-m2k | 338,951,356 | false | null | package io.github.toyota32k.bindit
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.EditText
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
class ReadOnlyBinding(
rawData: LiveData<Boolean>,
boolConvert: BoolConvert = BoolConvert.Straight)
... | 0 | Kotlin | 0 | 0 | 1c4bbd97d8c051bc33d5df3b0055e1ec8af7c244 | 1,262 | bind-it | Apache License 2.0 |
app/src/main/java/de/htwdd/htwdresden/ui/viewmodels/fragments/CampusPlanViewModel.kt | HTWDD | 42,391,208 | false | null | package de.htwdd.htwdresden.ui.viewmodels.fragments
import androidx.lifecycle.ViewModel
import com.google.gson.Gson
import de.htwdd.htwdresden.adapter.CampusPlans
import de.htwdd.htwdresden.network.RestApi
import de.htwdd.htwdresden.ui.models.CampusPlan
import de.htwdd.htwdresden.ui.models.CampusPlanItem
import de.htw... | 1 | Kotlin | 4 | 6 | 064c5f3ca118a6f51993fb47997cb8089e584963 | 1,066 | HTWDresden-Android | MIT License |
app/src/main/java/de/htwdd/htwdresden/ui/viewmodels/fragments/CampusPlanViewModel.kt | HTWDD | 42,391,208 | false | null | package de.htwdd.htwdresden.ui.viewmodels.fragments
import androidx.lifecycle.ViewModel
import com.google.gson.Gson
import de.htwdd.htwdresden.adapter.CampusPlans
import de.htwdd.htwdresden.network.RestApi
import de.htwdd.htwdresden.ui.models.CampusPlan
import de.htwdd.htwdresden.ui.models.CampusPlanItem
import de.htw... | 1 | Kotlin | 4 | 6 | 064c5f3ca118a6f51993fb47997cb8089e584963 | 1,066 | HTWDresden-Android | MIT License |
app/src/main/java/com/gno/erbs/erbs/stats/model/erbs/matches/item/weapon/ItemWeapon.kt | GNO-byte | 385,933,393 | false | {"Kotlin": 228643} | package com.gno.erbs.erbs.stats.model.erbs.matches.item.armor
import com.gno.erbs.erbs.stats.model.erbs.matches.item.SearchItem
data class ItemArmor(
val armorType: String?,
val attackPower: Float?,
val attackPowerByLv: Float?,
val attackRange: Float?,
val attackSpeedRatio: Float?,
val attackS... | 0 | Kotlin | 0 | 1 | d29384afc19fd4829215a985226320bbb0f2bd50 | 2,396 | ERBSStats | Apache License 2.0 |
purchases/src/main/kotlin/com/revenuecat/purchases/utils/Result.kt | RevenueCat | 127,346,826 | false | {"Kotlin": 3187935, "Java": 82657, "Ruby": 28079, "Shell": 443} | package com.revenuecat.purchases.utils
internal sealed class Result<out A, out B> {
class Success<A>(val value: A) : Result<A, Nothing>()
class Error<B>(val value: B) : Result<Nothing, B>()
}
| 30 | Kotlin | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 201 | purchases-android | MIT License |
support/src/main/java/com/landside/support/subcribers/CompletionObserver.kt | landscapeside | 350,730,923 | false | null | package com.landside.support.subcribers
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import io.reactivex.plugins.RxJavaPlugins
open class CompletionObserver<T> : Observer<T> {
var doneInvoker: () -> Unit = { /*nothing*/ }
fun done(doneInvoker: () -> Unit) {
this.doneInvoker = doneI... | 0 | Kotlin | 0 | 0 | 0bc2e99b7605af9e0aab0fd60597b24e2db35479 | 1,104 | support | MIT License |
src/main/kotlin/com/sky/account/manager/AppContext.kt | sky-wei | 400,339,139 | false | null | /*
* Copyright (c) 2021 The sky Authors.
*
* 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 a... | 0 | null | 0 | 2 | c2dc034aeec63811d8f90b6ab722eaf521b34187 | 1,876 | kotlin-polarbear | Apache License 2.0 |
src/main/java/uk/co/reecedunn/intellij/plugin/xpath/codeInspection/ijvs/IJVS0002.kt | rhdunn | 62,201,764 | false | null | /*
* Copyright (C) 2017-2018 <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 ... | 47 | null | 4 | 25 | d363dad28df1eb17c815a821c87b4f15d2b30343 | 8,465 | xquery-intellij-plugin | Apache License 2.0 |
src/WhileLoop.kt | Ingynnmon | 185,525,405 | false | null | fun main(args:Array<String>){
var count=1
do{
if(count==2){
println("count: $count")
}
count++
}while(count<=5)
println("loop done")
} | 0 | Kotlin | 0 | 0 | 83f27fa8eb9c58a5f621ec1efc9e28faffa9190a | 186 | KotlinBasicClone | Apache License 2.0 |
sandbox/signupapp/src/desktopMain/kotlin/main.kt | windedge | 661,911,964 | false | {"Kotlin": 54940, "Shell": 548, "HTML": 294} | package local.sandbox.signupapp
import androidx.compose.material.MaterialTheme
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
fun main() = application {
val winState = rememberWindowSt... | 0 | Kotlin | 0 | 0 | 13067c8100742cb6665d5434e0e2e3190d4dde40 | 502 | viform-multiplatform | MIT License |
app/src/main/java/com/chrislicoder/foodrecipes_dbcache/viewmodels/RecipeViewModel.kt | chrislicoder | 288,714,192 | false | null | package com.chrislicoder.foodrecipes_dbcache.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
class RecipeViewModel(application: Application) : AndroidViewModel(application)
| 0 | Kotlin | 0 | 1 | e31e1c91f4bc1c1b0d3f9ce708adcb160edb39c5 | 212 | Local-db-Cache-Retrofit-REST-API-MVVM | Apache License 2.0 |
src/main/kotlin/io/github/reugn/aerospike/kotlin/model/QueryStatement.kt | reugn | 423,429,423 | false | null | package io.github.reugn.aerospike.kotlin.model
import com.aerospike.client.Operation
import com.aerospike.client.query.Filter
import com.aerospike.client.query.PartitionFilter
import com.aerospike.client.query.Statement
data class QueryStatement(
val namespace: String,
val setName: String? = null,
val bin... | 0 | Kotlin | 0 | 4 | a5c8c972f06200f918fffc94f3f1f39e3324c435 | 1,269 | aerospike-client-kotlin | Apache License 2.0 |
app/src/main/java/online/taxcore/pos/data/models/TaxItem.kt | Data-Tech-International | 581,201,452 | false | {"Kotlin": 359911, "Java": 64900} | package online.taxcore.pos.data.models
data class TaxItem(
val label: String,
val rate: Double,
val name: String,
var value: String
)
| 1 | Kotlin | 3 | 4 | 3b71009b206d1ffa579991076200fe1c9a955ed5 | 151 | Taxcore-MobilePOS-Android | MIT License |
app/src/main/java/online/taxcore/pos/data/models/TaxItem.kt | Data-Tech-International | 581,201,452 | false | {"Kotlin": 359911, "Java": 64900} | package online.taxcore.pos.data.models
data class TaxItem(
val label: String,
val rate: Double,
val name: String,
var value: String
)
| 1 | Kotlin | 3 | 4 | 3b71009b206d1ffa579991076200fe1c9a955ed5 | 151 | Taxcore-MobilePOS-Android | MIT License |
app/src/main/kotlin/com/fibelatti/pinboard/core/di/modules/AndroidModule.kt | fibelatti | 165,537,939 | false | {"Kotlin": 1138952} | package com.fibelatti.pinboard.core.di.modules
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
import android.net.ConnectivityManager
import androidx.core.content.getSystemService
import com.fibelatti.core.android.AppResourceProvider
import com.fibelatti.core.andr... | 4 | Kotlin | 12 | 119 | 6ca7c7d852db25db9a5f14a893592224e565faad | 1,330 | pinboard-kotlin | Apache License 2.0 |
app/src/main/java/com/sd/demo/vm/plugin/LoadingDialogPlugin.kt | zj565061763 | 765,233,652 | false | {"Kotlin": 67988} | package com.sd.demo.vm.plugin
import com.sd.lib.vm.plugin.StatePlugin
import com.sd.lib.vm.plugin.ViewModelPlugin
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
interface LoadingDialogPlugin : St... | 0 | Kotlin | 0 | 0 | 903def2b018cee57ff9ac39c8f6fd92ab7172421 | 1,062 | vm | MIT License |
app/src/main/java/com/example/retrofitdemocleandagger/presentation/di/core/RepositoryModule.kt | ericksavluchinske | 607,748,376 | false | null | package com.example.retrofitdemocleandagger.presentation.di.core
import com.example.retrofitdemocleandagger.data.repository.album.AlbumRepositoryImpl
import com.example.retrofitdemocleandagger.data.repository.album.datasource.AlbumCacheDataSource
import com.example.retrofitdemocleandagger.data.repository.album.datasou... | 0 | Kotlin | 0 | 2 | 2e40c675ae05bfb422182f0de08a8874fba308a3 | 1,028 | kotlin-android-retrofit-coroutines-clean-mvvm-dagger-room | MIT License |
weatherapp/app/src/main/kotlin/fr/ekito/myweatherapp/view/weather/WeatherViewModel.kt | alexandru-calinoiu | 157,208,772 | true | {"Kotlin": 79276} | package fr.ekito.myweatherapp.view.weather
import android.arch.lifecycle.MutableLiveData
import fr.ekito.myweatherapp.domain.entity.DailyForecast
import fr.ekito.myweatherapp.domain.repository.DailyForecastRepository
import fr.ekito.myweatherapp.util.mvvm.RxViewModel
import fr.ekito.myweatherapp.util.mvvm.SingleLiveEv... | 0 | Kotlin | 0 | 0 | 3fcc939cc5d66fe2894eaf943971ebf89fff3430 | 2,485 | 2018-android-architecture-components-workshop | Creative Commons Attribution 4.0 International |
src/main/kotlin/com/buckstabue/stickynotes/idea/gutter/contextmenu/EditStickyNoteFromGutterAction.kt | Buckstabue | 225,958,036 | false | null | package com.buckstabue.stickynotes.idea.gutter.contextmenu
import com.buckstabue.stickynotes.StickyNote
import com.buckstabue.stickynotes.base.di.AppInjector
import com.buckstabue.stickynotes.base.di.project.ProjectComponent
import com.buckstabue.stickynotes.idea.createeditstickynote.CreateEditStickyNoteAnalytics
impo... | 9 | Kotlin | 2 | 9 | ab07743f043a69a6a7c19d8f36bf483e1205fc06 | 1,485 | sticky_notes_idea | Apache License 2.0 |
app/src/main/java/com/gmail/bogumilmecel2/fitnessappv2/feature_weight/presentation/WeightDialogViewModel.kt | BogumilMecel | 499,018,800 | false | {"Kotlin": 808610} | package com.gmail.bogumilmecel2.fitnessappv2.feature_weight.presentation
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import com.gmail.bogumilmecel2.fitnessappv2.common.domain.model.BaseResult
import com.gmail.bogumilmecel2.fitnessappv2.common.util.BaseResultViewModel
import com.... | 0 | Kotlin | 0 | 0 | f1036ca805dec913c5ca444d8efab87686442f39 | 2,050 | FitnessAppV2 | Apache License 2.0 |
intellij2checkstyle-core/src/test/kotlin/de/theodm/intellij2checkstyle/extensions/execute/ExecuteProgramKtTest.kt | theodm | 143,562,099 | false | {"Gradle": 8, "Gradle Kotlin DSL": 11, "Markdown": 3, "Java Properties": 10, "Shell": 10, "Text": 1, "Ignore List": 8, "Batchfile": 10, "EditorConfig": 1, "YAML": 2, "Kotlin": 137, "Dockerfile": 1, "XML": 28, "INI": 7, "Java": 9} | package de.theodm.intellij2checkstyle.extensions.execute
import com.google.common.truth.Truth
import de.theodm.intellij2checkstyle.testExtensions.resources.fileFromResource
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.condition.DisabledOnOs
import org.junit.ju... | 1 | null | 1 | 1 | 2607e1f9e4f64e7b4e8140c56918ad5d856a62eb | 3,413 | intellij2checkstyle | Apache License 2.0 |
Lib/src/main/kotlin/com/bloomberg/selekt/Databases.kt | rmoorhouse | 284,672,675 | true | {"Kotlin": 454942, "C++": 25134, "Java": 5518, "CMake": 2657, "Shell": 1838, "C": 1444} | /*
* Copyright 2020 Bloomberg Finance L.P.
*
* 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... | 0 | null | 0 | 0 | 7a0f791bf869d50e07f5c32de50e2add055ea442 | 10,349 | selekt | Apache License 2.0 |
spring-batch-plus-kotlin/src/integrationTest/kotlin/com/navercorp/spring/batch/plus/kotlin/configuration/SplitBuilderDslIntegrationTest.kt | naver | 558,165,952 | false | null | /*
* Spring Batch Plus
*
* Copyright 2022-present NAVER Corp.
*
* 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 require... | 4 | null | 9 | 99 | 01a5aefe9b860b8ea951832114422581ff49d101 | 9,628 | spring-batch-plus | Apache License 2.0 |
projects/prison-custody-status-to-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/person/manager/responsibleofficer/ResponsibleOfficerRepository.kt | ministryofjustice | 500,855,647 | false | null | package uk.gov.justice.digital.hmpps.integrations.delius.person.manager.responsibleofficer
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import java.time.ZonedDateTime
interface ResponsibleOfficerRepository : JpaRepository<ResponsibleOfficer, Long> {... | 2 | Kotlin | 0 | 2 | 13b6803617c9fb746072bc5a77fdc43691a4b864 | 644 | hmpps-probation-integration-services | MIT License |
mbingresskit/src/main/java/com/daimler/mbingresskit/login/LoginService.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbingresskit.login
import com.daimler.mbingresskit.common.authentication.AuthenticationType
import com.daimler.mbnetworkkit.networking.RequestError
import com.daimler.mbnetworkkit.networking.ResponseError
import com.daimler.mbnetworkkit.task.FutureTask
internal interface LoginService : LoginStateS... | 1 | Kotlin | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 572 | MBSDK-Mobile-Android | MIT License |
identity-starter/src/main/kotlin/com/labijie/application/identity/service/ISocialUserService.kt | hongque-pro | 309,874,586 | false | null | package com.labijie.application.identity.service
import com.labijie.application.identity.model.SocialRegisterInfo
import com.labijie.application.identity.model.SocialUserAndRoles
/**
* Created with IntelliJ IDEA.
* @author <NAME>
* @date 2019-12-11
*/
interface ISocialUserService : IUserService {
fun signInSo... | 0 | Kotlin | 0 | 5 | e77de3c250b1afa08eda5eb1a57e2ecede59c0c3 | 597 | application-framework | Apache License 2.0 |
src/main/kotlin/me/chill/models/FeaturedPlaylists.kt | woojiahao | 152,174,553 | false | {"Maven POM": 1, "Markdown": 7, "Text": 1, "Ignore List": 1, "Kotlin": 130, "Java": 18, "HTML": 1} | package me.chill.models
data class FeaturedPlaylists(
val message: String,
val playlists: Paging<Playlist>
) | 1 | Kotlin | 0 | 1 | 6dbb0aecdbba94153455be32b79f60e156641d21 | 113 | java-spotify-wrapper | MIT License |
shared/src/commonMain/kotlin/ui/select/SelectWordScreen.kt | eloev | 695,826,888 | false | {"Kotlin": 61383, "Swift": 1668, "Shell": 231, "Ruby": 101} | package ui.select
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | c691c451cee7dd097a1e5968ef4b6fc536dd0f2d | 6,974 | try_multiplatform_compose | Apache License 2.0 |
data/similar/implementation/src/commonMain/kotlin/com/thomaskioko/tvmaniac/similar/implementation/SimilarShowsComponent.kt | thomaskioko | 361,393,353 | false | {"Kotlin": 668650, "Swift": 206696, "Ruby": 1770, "Shell": 1120} | package com.thomaskioko.tvmaniac.similar.implementation
import com.thomaskioko.tvmaniac.similar.api.SimilarShowsDao
import com.thomaskioko.tvmaniac.similar.api.SimilarShowsRepository
import com.thomaskioko.tvmaniac.util.scope.ApplicationScope
import me.tatarka.inject.annotations.Provides
interface SimilarShowsCompone... | 7 | Kotlin | 28 | 282 | 8c83a0461c03a1975afdf709e9d9307a141c0ec3 | 581 | tv-maniac | Apache License 2.0 |
core/src/main/kotlin/com/toanit/core/utils/RDimen.kt | ToanMobile | 112,818,321 | false | {"Java": 152748, "Kotlin": 79255, "IDL": 2466, "Prolog": 861} | package com.toanit.core.utils
import android.content.Context
/**
* convert int to dip
*
* @param[value] to convert
* @return calculated dip
* @since 1.0.1
*/
fun Context.dip(value: Int): Int = (value * resources.displayMetrics.density).toInt()
/**
* convert float to dip
*
* @param[value] to convert
* @retu... | 1 | null | 1 | 1 | d8f2327255e162bb32c1f659bc3743c98aad7a11 | 1,426 | Github | MIT License |
app/src/main/java/com/comunidadedevspace/taskbeats/presentation/NewsListFavoriteFragment.kt | RenanPdeOliveira | 615,246,251 | false | {"Kotlin": 58708} | package com.comunidadedevspace.taskbeats.presentation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleS... | 0 | Kotlin | 0 | 0 | 1511ba27941ef276d9937a25f48d32c543c5bdf8 | 2,437 | TaskBeats | MIT License |
comprehend/src/test/kotlin/dev/number6/comprehend/SentimentResultsToMessagePresentableSentimentTotalsTest.kt | Number6App | 251,323,476 | false | null | package dev.number6.comprehend
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNotNull
import com.amazonaws.services.comprehend.model.DetectSentimentResult
import com.amazonaws.services.comprehend.model.SentimentType
import dev.number6.comprehend.results.SentimentResultsToMess... | 9 | Kotlin | 1 | 2 | f065b79211f6d96f154cb9b2434b13532feb380e | 1,756 | Number6 | MIT License |
app/src/main/java/ch/jari/talkpairingsgenerator/ui/pairing/PairingViewModel.kt | Tiray7 | 683,821,768 | false | null | package ch.jari.talkpairingsgenerator.ui.pairing
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import ch.jari.talkpairingsgenerator.data.database.models.Pairing
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
impor... | 0 | Kotlin | 0 | 0 | 7662646aff9643ac8237700d1bc3d1f06e373c17 | 650 | talkpairings | The Unlicense |
src/main/kotlin/org/letses/persistence/GesEventStore.kt | masayoshi-louis | 680,742,400 | false | {"Kotlin": 236640} | /*
* Copyright (c) 2022 LETSES.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 0 | Kotlin | 0 | 0 | 614e613aea31b4431a5b33a78a817743f9f76e57 | 5,514 | letses | Apache License 2.0 |
runtime/jvmMain/src/kotlinx/benchmark/Utils.kt | h0tk3y | 225,616,049 | true | {"Kotlin": 125155} | package kotlinx.benchmark
import java.io.*
actual fun Double.format(precision: Int): String {
return "%,.0${precision}f".format(this) //text.replace(Regex("\\B(?=(\\d{3})+(?!\\d))"), ",")
}
actual fun saveReport(reportFile: String?, results: Collection<ReportBenchmarkResult>) {
if (reportFile == null)
... | 0 | Kotlin | 0 | 0 | b6476d552aefe55084b64cea6fc5a61aaa360b30 | 464 | kotlinx-benchmark | Apache License 2.0 |
src/main/kotlin/com/informalware/footylens/data/Summarizable.kt | informalware | 770,996,595 | false | {"Kotlin": 46556, "Shell": 5660, "Dockerfile": 96} | package com.informalware.footylens.data
const val MAX_SUMMARY_LENGTH: Int = 20 | 0 | Kotlin | 0 | 0 | 07c92177f9879c69539043a09b0b801f5b49f151 | 79 | footylens-server | MIT License |
app/src/main/java/com/pr0gramm/app/ui/views/InfoLineView.kt | vaginessa | 200,405,095 | true | {"Kotlin": 1194787, "Shell": 6717, "IDL": 2164, "Python": 1124, "Prolog": 214} | package com.pr0gramm.app.ui.views
import android.annotation.SuppressLint
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import android.widget.TextView
import android.widget.Toast
import androidx.recyclerview.wid... | 0 | Kotlin | 0 | 0 | c173fa90bfef3266b80fece6fc67909cd90eaf0b | 10,726 | Pr0 | MIT License |
main/src/main/kotlin/dev/younesgouyd/apps/spotifyclient/desktop/main/data/models/CategoryPlaylists.kt | younesgouyd | 771,762,928 | false | {"Kotlin": 212946} | package dev.younesgouyd.apps.spotifyclient.desktop.main.data.models
import dev.younesgouyd.apps.spotifyclient.desktop.main.PlaylistId
import kotlinx.serialization.Serializable
@Serializable
data class CategoryPlaylists(
val playlists: Playlists?
) {
@Serializable
data class Playlists(
val items: L... | 0 | Kotlin | 0 | 0 | 961b9edf9d67595ca15e1e664d5e472bcd9f4281 | 545 | spotify-client-desktop | Apache License 2.0 |
features/watch/src/main/kotlin/io/plastique/watch/WatcherRepository.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.watch
import androidx.room.RoomDatabase
import com.github.technoir42.rxjava2.extensions.mapError
import com.gojuno.koptional.Optional
import com.gojuno.koptional.toOptional
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import io.plastique.api.ApiException
import io.plastique.a... | 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 5,950 | plastique | Apache License 2.0 |
prototype/app/src/main/java/com/chandruscm/falselink/di/ViewModelFactoryExtensions.kt | chandruscm | 221,289,052 | false | null | /*
* Copyright 2019 <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 writ... | 0 | Kotlin | 0 | 1 | e80f6838417c63e0c55fe33f66708c3b46873c60 | 1,700 | FalseLink | Apache License 2.0 |
app/src/main/java/app/cryptotweets/feed/FeedFragment.kt | adam-hurwitz | 243,572,442 | false | {"Kotlin": 77134} | package app.cryptotweets.feed
import android.content.Context
import android.os.Bundle
import android.view.View
import android.view.View.OnClickListener
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx... | 0 | Kotlin | 8 | 24 | edb7019c27af199a3383546a3a74ed29707e3ce8 | 3,563 | CryptoTweets | Apache License 2.0 |
app/src/main/java/com/udacity/project4/locationreminders/savereminder/selectreminderlocation/SelectLocationFragment.kt | crisiscore | 607,260,181 | false | null | package com.udacity.project4.locationreminders.savereminder.selectreminderlocation
import android.Manifest
import android.app.AlertDialog
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Looper
import android.view.*
import androidx.core.app.ActivityCompat
import androidx.databinding.... | 0 | Kotlin | 0 | 0 | a0513119bfdc7342f48223c2e1b2dec297cb6dab | 8,487 | Udacity-Project4 | MIT License |
shared/schedule/data/src/commonMain/kotlin/io/edugma/data/schedule/repository/ScheduleMockRepository.kt | Edugma | 474,423,768 | false | null | package io.edugma.data.schedule.repository
import io.edugma.core.api.utils.UUID
import io.edugma.core.api.utils.nowLocalDate
import io.edugma.features.schedule.domain.model.StudentDirection
import io.edugma.features.schedule.domain.model.StudentFaculty
import io.edugma.features.schedule.domain.model.compact.CompactLes... | 1 | Kotlin | 0 | 2 | a0a27ca2fa707dc594aa8ac14bdb39dbebfe4ecb | 4,604 | app | MIT License |
src/main/kotlin/com/wallace/machinelearning/mlmvn/Neuron.kt | wallaceg09 | 154,744,009 | false | null | package com.wallace.machinelearning.mlmvn
import com.wallace.math.Complex
/**
* Multi-Valued [Neuron].
*
* This [Neuron] is activation and error-correction function agnostic. It serves only as a data class for the structure
* of an MVN. Its weights are immutable, and is designed from a functional-programming stan... | 4 | Kotlin | 0 | 0 | 7391a6a7645e0067ea80292fd99c759758397581 | 1,033 | mlmvn | Apache License 2.0 |
kmath-core/src/commonMain/kotlin/space/kscience/kmath/data/XYErrorColumnarData.kt | SciProgCentre | 129,486,382 | false | null | /*
* Copyright 2018-2022 KMath contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package space.kscience.kmath.data
import space.kscience.kmath.expressions.Symbol
import space.kscience.kmath.misc.UnstableKMathAPI
import space.kscience... | 91 | null | 55 | 645 | 6c1a5e62bff541cca8065e4ab4c97d02a29d685a | 1,520 | kmath | Apache License 2.0 |
storeflowable-core/src/test/java/com/kazakago/storeflowable/core/FlowLoadingStateCombinerTest.kt | KazaKago | 258,416,651 | false | null | package com.kazakago.storeflowable.core
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.test.runTest
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldBeInstanceOf
import org.junit.Assert.fa... | 1 | Kotlin | 0 | 3 | 7d0fd948c5092a3df3fc9d13b6a77d2bf828907b | 9,355 | StoreFlowable.kt | Apache License 2.0 |
app/src/main/java/com/example/wishlist/item.kt | cae26 | 597,928,673 | false | null | package com.example.wishlist
class Item(
val itemName: String,
val webLink: String,
val price: String) {
} | 1 | Kotlin | 0 | 0 | 30e6de71fac9f63039489ddf5731962061ff2609 | 119 | WishList | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/sykmelding/kafka/SykmeldingStatusKafkaProducer.kt | navikt | 464,849,616 | false | null | package no.nav.syfo.sykmelding.kafka
import java.time.OffsetDateTime
import java.time.ZoneOffset
import no.nav.syfo.log
import no.nav.syfo.model.sykmeldingstatus.KafkaMetadataDTO
import no.nav.syfo.model.sykmeldingstatus.SykmeldingStatusKafkaEventDTO
import no.nav.syfo.model.sykmeldingstatus.SykmeldingStatusKafkaMessa... | 0 | Kotlin | 1 | 2 | 6a5165a67791e8adf95f53105c9a0c68c5b49b88 | 1,797 | teamsykmelding-mock-backend | MIT License |
js/js.frontend/src/org/jetbrains/kotlin/js/config/WasmTarget.kt | JetBrains | 3,432,266 | false | {"Kotlin": 73228872, "Java": 6651359, "Swift": 4257359, "C": 2624202, "C++": 1891343, "Objective-C": 639940, "Objective-C++": 165521, "JavaScript": 135764, "Python": 43529, "Shell": 31554, "TypeScript": 22854, "Lex": 18369, "Groovy": 17190, "Batchfile": 11693, "CSS": 11368, "Ruby": 6922, "EJS": 5241, "HTML": 5073, "Doc... | /*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.js.config
enum class WasmTarget {
JS,
WASI;
companion object {
... | 163 | Kotlin | 5686 | 46,039 | f98451e38169a833f60b87618db4602133e02cf2 | 482 | kotlin | Apache License 2.0 |
src/test/kotlin/eZmaxApi/models/EzsigntemplatesignerCreateObjectV1RequestTest.kt | eZmaxinc | 271,950,932 | false | {"Kotlin": 6909939} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.models
import io.kotlintest.sh... | 0 | Kotlin | 0 | 0 | 961c97a9f13f3df7986ea7ba55052874183047ab | 991 | eZmax-SDK-kotlin | MIT License |
app/src/main/java/com/example/listacontatos/DatailActivity.kt | domiciano-silva | 348,087,525 | false | null | package com.example.listacontatos
import android.os.Bundle
import android.os.PersistableBundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
class DetailActivity : AppCompatActivity(){
private var contact : Contact... | 0 | null | 0 | 1 | 816dbd127f4e37809ab4f21808a25cd8e3957701 | 1,184 | ListaContatos | MIT License |
libcrypto/src/main/java/com/enecuum/lib/api/Ticker.kt | Enecuum | 306,637,805 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "XML": 2, "Kotlin": 40, "Java": 2} | package com.enecuum.lib.api
data class Ticker(val hash: String, val ticker: String, val caption: String) | 1 | null | 3 | 1 | bc1817c38e13fc16508b1bc46dfc3c1cfae4729f | 105 | android-lib | MIT License |
dodam-design-system/src/main/java/com/b1nd/dodam/designsystem/previews/DodamTabRowPreview.kt | Team-B1ND | 772,621,822 | false | {"Kotlin": 220288, "Swift": 640} | package com.b1nd.dodam.designsystem.previews
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.tooling.preview.Preview
import ... | 0 | Kotlin | 1 | 7 | 1bf6a49fa2dd19cd062d2656eb071b33f6b237f6 | 1,069 | dds-compose | MIT License |
core/domain/onboarding/src/main/java/com/goalpanzi/mission_mate/core/domain/onboarding/repository/OnboardingRepository.kt | Nexters | 828,096,097 | false | {"Kotlin": 469213, "Ruby": 1219} | package com.goalpanzi.mission_mate.core.domain.onboarding.repository
import com.goalpanzi.mission_mate.core.domain.common.DomainResult
import com.goalpanzi.mission_mate.core.domain.mission.model.MissionDetail
import com.goalpanzi.mission_mate.core.domain.onboarding.model.Missions
import com.goalpanzi.mission_mate.core... | 1 | Kotlin | 0 | 3 | 912bebd2706d1206f38c910e85c79fece73e4213 | 774 | goalpanzi-android | Apache License 2.0 |
transport-eta-android/presentation/src/test/java/com/joaquimley/transporteta/presentation/mapper/PresentationTransportMapperTest.kt | JoaquimLey | 93,657,822 | false | null | package com.joaquimley.transporteta.presentation.mapper
import com.joaquimley.transporteta.domain.model.Transport
import com.joaquimley.transporteta.presentation.model.TransportView
import com.joaquimley.transporteta.presentation.util.factory.TransportFactory
import org.junit.Before
import org.junit.Test
class Prese... | 34 | Kotlin | 45 | 224 | 7c841a3b4e7f296e5b5e53eab6c7a9e84c2b3c61 | 2,494 | transport-eta | Apache License 2.0 |
libraries/stdlib/jvm/src/kotlin/collections/MapsJVM.kt | cr8tpro | 189,964,139 | false | null | /*
* Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@file:kotlin.jvm.JvmMultifileClass
@file:kotlin.jvm.JvmName("MapsKt")
package kotlin.collections
import java... | 0 | null | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 3,952 | kotlin | Apache License 2.0 |
gradle-plugin/src/main/kotlin/dev/icerock/gradle/generator/fonts/IosFontsGenerator.kt | dgluhovic | 241,006,116 | true | {"Kotlin": 73200} | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.gradle.generator.fonts
import com.squareup.kotlinpoet.CodeBlock
import com.squareup.kotlinpoet.KModifier
import dev.icerock.gradle.generator.ExtendsPlistDictionary
import dev.icerock.gradle.gen... | 0 | null | 0 | 0 | dbbdb13358b2787a28de06741a8c552d4e659b72 | 1,279 | moko-resources | Apache License 2.0 |
app/src/main/java/dev/leonlatsch/photok/backup/ui/RestoreState.kt | leonlatsch | 287,088,448 | false | null | /*
* Copyright 2020-2021 Leon Latsch
*
* 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... | 43 | null | 52 | 523 | f31156f75af892f03c77b4ff45ad907e2e25f7c2 | 841 | Photok | Apache License 2.0 |
app/src/main/java/org/themoviedb/utils/ext/Rx.kt | zakuby | 218,208,389 | false | null | package org.themoviedb.utils.ext
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
fun Disposable.disposedBy(compositeDisposable: CompositeDisposable) =
compositeDisposable.add(this) | 0 | Kotlin | 0 | 4 | fb9e1d42c5bf7ac7b219aa2cd423b54fe915a8ef | 233 | moviedb-android | Apache License 2.0 |
app/src/test/java/com/udit/shangri_la/home/HomePresenterTest.kt | droid-it | 107,704,641 | false | {"Kotlin": 41178} | package com.udit.shangri_la.home
import com.nhaarman.mockito_kotlin.*
import com.udit.shangri_la.core.models.Movie
import com.udit.shangri_la.core.movies.FetchMoviesUseCase
import io.reactivex.SingleObserver
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import java.util.*
/**
* Created by Ud... | 0 | Kotlin | 0 | 2 | 8b4127211a192ae8e2680e9a40510c12f0a293a2 | 2,224 | shangri-la | Apache License 2.0 |
felles/src/main/kotlin/no/nav/familie/kontrakter/felles/arkivering/ArkiverDokumentRequest.kt | navikt | 206,793,193 | false | null | package no.nav.familie.kontrakter.felles.arkivering
import no.nav.familie.kontrakter.felles.dokarkiv.Dokument
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotEmpty
@Deprecated(
"Bruk arkiverDokumentV3",
replaceWith = ReplaceWith("no.nav.familie.kontrakter.felles.dokarkiv.Ar... | 16 | Kotlin | 0 | 2 | 7f218f3c15be62cd438c690c6d4a670afe73fd65 | 655 | familie-kontrakter | MIT License |
common/src/commonTest/kotlin/json/PermissionsTest.kt | kordlib | 202,856,399 | false | null | package dev.kord.common.json
import dev.kord.common.entity.DiscordRole
import dev.kord.common.entity.Permission
import dev.kord.common.entity.Permissions
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.put
import kotlin.js.JsName
import kotlin.... | 52 | null | 82 | 922 | e99c5c583229d20e69632aae39cee47da637abef | 1,354 | kord | MIT License |
shared/src/commonMain/kotlin/com/example/coffeeshop/domain/mapper/PaymentMapper.kt | larkes-cyber | 716,249,551 | false | {"Kotlin": 243966, "Swift": 80413} | package com.example.coffeeshop.domain.mapper
import com.example.coffeeshop.data.model.DataPayment
import com.example.coffeeshop.data.network.model.PaymentDto
import com.example.coffeeshop.domain.model.Coffee
import com.example.coffeeshop.domain.model.Payment
fun Payment.toDataPayment():DataPayment{
return DataPay... | 0 | Kotlin | 0 | 1 | 679a5c6d59adc23da1078a18afecd2cdc8f41c5a | 565 | CoffeeShop | Apache License 2.0 |
retrosheet/src/main/kotlin/com/github/theapache64/retrosheet/utils/TypeIdentifier.kt | theapache64 | 281,246,635 | false | null | package com.github.theapache64.retrosheet.utils
/**
* Created by theapache64 : Jul 22 Wed,2020 @ 00:04
*/
object TypeIdentifier {
fun isDouble(field: String): Boolean {
return try {
field.toDouble()
true
} catch (e: NumberFormatException) {
false
}
... | 14 | null | 38 | 815 | 47af05d11156a44fd6ae53fc954d70638ac972b9 | 743 | retrosheet | Apache License 2.0 |
app/src/main/java/com/kavrin/marvin/domain/model/person/PersonMovieCast.kt | k4vrin | 503,752,158 | false | {"Kotlin": 562455} | package com.kavrin.marvin.domain.model.person
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class PersonMovieCast(
@SerialName("adult")
val adult: Boolean,
@SerialName("character")
val character: String,
@SerialName("credit_id")
val credi... | 0 | Kotlin | 0 | 2 | 13dde151d9d35d2a68a08b2f0b17e89fa9ab56bf | 878 | Marvin | MIT License |
src/main/kotlin/name/oshurkov/books/catalog/CatalogHandlers.kt | dmitry-oshurkov | 307,598,181 | false | null | package name.oshurkov.books.catalog
import name.oshurkov.books.*
import name.oshurkov.books.Repositories.Companion.authorsRep
import name.oshurkov.books.Repositories.Companion.booksRep
import name.oshurkov.books.book.*
import org.springframework.data.repository.*
import org.springframework.http.MediaType.*
import org.... | 0 | Kotlin | 0 | 1 | 7bb9e08427880b1fea843c0326ba5ee5d86426d3 | 14,567 | books | MIT License |
package/android/src/main/java/com/mrousavy/camera/core/Photo.kt | mrousavy | 340,402,576 | false | null | package com.mrousavy.camera.core
import com.mrousavy.camera.core.types.Orientation
data class Photo(val path: String, val width: Int, val height: Int, val orientation: Orientation, val isMirrored: Boolean)
| 176 | null | 1092 | 7,476 | 02ae227964ceee6fe413ee49eb944e11d6fcd722 | 208 | react-native-vision-camera | MIT License |
data/src/main/java/com/example/whether/utils/Prefs.kt | shahedhamedB | 477,159,967 | false | {"Java": 267613, "Kotlin": 76650} | package com.example.whether.utils
import android.content.SharedPreferences
import android.util.Log
import androidx.core.content.edit
import com.example.whether.medule.TokenModel
import com.example.whether.retrofit.services.NetworkService
import com.example.whether.utils.AppConstants.Companion.DEVICE_TOKEN
import com.e... | 1 | null | 1 | 1 | 6badeef126554a4290822b223fc33b0a55556d00 | 4,552 | wetharapp | MIT License |
src/main/kotlin/ar/edu/utn/frba/tacs/tp/api/herocardsgame/integration/client/api/AppearanceApi.kt | tacs-2021-1c-tp-hero-cards | 358,787,857 | false | null | package ar.edu.utn.frba.tacs.tp.api.herocardsgame.integration.client.api
class AppearanceApi (
val response: String,
val error: String,
val gender: String,
val race: String,
val height: List<String>,
val weight: List<String>,
val eyeColor: String,
val hairColor: String
) | 20 | null | 1 | 1 | 5ddb882bfdef41c04eaca7a68afacbb2999457bb | 304 | hero-cards-game | MIT License |
basiclib/src/main/java/com/junehit/jetcore/utils/CommonUtil.kt | hujunjiehit | 294,917,624 | false | null | package com.junehit.jetcore.utils
import java.lang.reflect.ParameterizedType
object CommonUtil {
fun <T> getClass(t: Any): Class<T> {
// 通过反射 获取父类泛型 (T) 对应 Class类
return (t.javaClass.genericSuperclass as ParameterizedType)
.actualTypeArguments[0]
as Class<T>
}
} | 0 | Kotlin | 0 | 0 | 638b006d0d29657f4e5c701c24ae1d65e54854c4 | 317 | JetCore | Apache License 2.0 |
app/src/main/java/com/jetpack/compose/learning/slider/SliderActivity.kt | SimformSolutionsPvtLtd | 379,199,800 | false | null | package com.jetpack.compose.learning.slider
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.com... | 0 | null | 8 | 99 | 06fa9850a3cdfabfda2d09da1f4eda93898b8733 | 5,456 | SSComposeCookBook | Apache License 2.0 |
ioka/src/main/java/kz/ioka/android/ioka/uikit/ExpiryDateValidator.kt | iokadev | 452,776,665 | false | null | package kz.ioka.android.ioka.uikit
import kz.ioka.android.ioka.util.Validator
import java.util.*
class ExpiryDateValidator : Validator {
override fun validate(input: String): Boolean {
return if (input.length < 4) {
false
} else {
val month = input.substring(0..1).toInt()
... | 0 | Kotlin | 0 | 0 | aba4a3873a46e42ab110af92b865d60559d0a005 | 672 | ioka-android | MIT License |
bubbles/crypto-android/src/androidTest/kotlin/studio/lunabee/onesafe/bubbles/crypto/AndroidDoubleRatchetKeyRepositoryTest.kt | LunabeeStudio | 624,544,471 | false | {"Kotlin": 3315037, "Java": 11987, "Python": 3979} | /*
* Copyright (c) 2023 Lunabee Studio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 0 | Kotlin | 1 | 2 | 935c5a9fad27406874bc63ec6729fd68269a76ec | 3,914 | oneSafe6_SDK_Android | Apache License 2.0 |
src/main/kotlin/org/piecesapp/client/models/CodeAnalysis.kt | pieces-app | 726,212,140 | false | {"Kotlin": 1451671} | /**
* Pieces Isomorphic OpenAPI
* Endpoints for Assets, Formats, Users, Asset, Format, User.
*
* The version of the OpenAPI document: 1.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/... | 9 | Kotlin | 2 | 6 | 9371158b0978cae518a6f2584dd452a2556b394f | 1,965 | pieces-os-client-sdk-for-kotlin | MIT License |
src/test/kotlin/dsl/wiremock/stubs/AuthMatchingTest.kt | valentin-goncharov | 447,352,842 | false | {"Kotlin": 208558} | package dsl.wiremock.stubs
import com.github.tomakehurst.wiremock.junit5.WireMockTest
import io.ktor.client.*
import io.ktor.client.engine.java.*
import io.ktor.client.features.*
import io.ktor.client.request.*
import io.ktor.client.features.auth.*
import io.ktor.client.features.auth.providers.*
import io.ktor.client.... | 2 | Kotlin | 0 | 0 | ad0aac9ce014a6f53c51c0e1aedb846414358b8d | 2,159 | wiremock-kotlin-dsl | Apache License 2.0 |
core/models/src/main/kotlin/flow/models/settings/Endpoint.kt | andrikeev | 503,060,387 | false | null | package flow.models.settings
enum class Endpoint(val host: String) {
Proxy("flow-proxy-m7o3b.ondigitalocean.app"),
RutrackerOrg("rutracker.org"),
RutrackerNet("rutracker.net"),
}
| 1 | Kotlin | 1 | 1 | 1e546ea667f2bef8fbc2d0b2b0bb05023f749b6f | 192 | Flow | MIT License |
composeApp/src/commonMain/kotlin/core/ui/ext/ModifierExt.kt | spoonofcode | 829,948,208 | false | {"Kotlin": 58444, "Swift": 621} | package core.ui.ext
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.PointerEventPass
import androidx.compose.ui.input.pointer.PointerInputChange
import androidx.compose.ui.input.pointer.pointerInput
fun Modifier.viewEnable(enable: Boolean) =
if (enable) {
this
} else {
... | 7 | Kotlin | 0 | 0 | 239d3c8d1d91d10eddbe53f587a20b8496e00833 | 688 | dojo-pro | Apache License 2.0 |
src/test/kotlin/no/nav/tilleggsstonader/sak/infrastruktur/unleash/UnleashTestUtil.kt | navikt | 685,490,225 | false | {"Kotlin": 1885240, "Gherkin": 41010, "HTML": 39787, "Shell": 924, "Dockerfile": 164} | package no.nav.tilleggsstonader.sak.infrastruktur.unleash
import io.getunleash.Variant
import io.mockk.every
import io.mockk.mockk
import no.nav.tilleggsstonader.libs.unleash.UnleashService
fun mockUnleashService(isEnabled: Boolean = true): UnleashService {
val mockk = mockk<UnleashService>()
every { mockk.is... | 5 | Kotlin | 2 | 0 | df7bf11b9645dce589179f9cd856f6e4a31eba87 | 1,263 | tilleggsstonader-sak | MIT License |
app/src/main/java/com/michael/foody/adapters/PagerAdapter.kt | MaikolSoro | 323,486,407 | false | null | package com.michael.foody.adapters
import android.os.Bundle
import androidx.fragment.app.*
import androidx.viewpager2.adapter.FragmentStateAdapter
class PagerAdapter(
private val resultBundle: Bundle,
private val fragments: ArrayList<Fragment>,
fragmentActivity: FragmentActivity
): FragmentStateAdapter(f... | 0 | Kotlin | 4 | 2 | ca67a701f954865b206efedc837d25c1eab9bd3d | 1,281 | Foody | MIT License |
src/main/kotlin/utils/docs/Config.kt | szkug | 716,392,221 | false | {"Kotlin": 15331, "CSS": 966} | package utils.docs
import kotlinx.serialization.Serializable
/**
* root: Relative path
* static: static
* flavour: GitHub | JetBrains
* docs:
* - A.md
* - B.md
*/
@Serializable
data class Config(
val root: String = "",
val static: String = "static",
val flavour: String = "GitHub",
val title... | 0 | Kotlin | 0 | 0 | c898ff6179b34d479d85435fa4ec1e8d24b69db3 | 381 | docs-gen | MIT License |
app/src/main/kotlin/de/markusfisch/android/binaryeye/fragment/DecodeFragment.kt | Noromon | 211,883,665 | true | {"Kotlin": 91705, "Shell": 2043, "RenderScript": 625, "Makefile": 599} | package de.markusfisch.android.binaryeye.fragment
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Context
import android.os.Bundle
import android.os.Environment
import android.support.v4.app.Fragment
import android.text.ClipboardManager
import android.text.Editable
import a... | 0 | Kotlin | 0 | 0 | 2004d89614d4c86f786874cc6241fb5d71a2ecb5 | 7,669 | BinaryEye | MIT License |
app/src/main/java/me/pushkaranand/spendo/db/SpendoDatabase.kt | adith-a-danthi | 305,260,903 | true | {"Kotlin": 91982} | package me.pushkaranand.spendo.db
import android.content.Context
import android.os.AsyncTask
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteDatabase
import me.pushkaranand.spendo.db.dao.CategoryDao
import me.pushkaranand.spendo.db.dao.Tr... | 0 | null | 0 | 0 | 73704fc32de259fd82fcb386653ee8b8363d4dbe | 3,317 | spendo | MIT License |
build-logic/convention/src/main/kotlin/commonConfiguration/Jacoco.kt | ls1intum | 537,104,541 | false | null | package commonConfiguration
import com.android.build.api.variant.AndroidComponentsExtension
import kotlinx.kover.gradle.plugin.dsl.KoverReportExtension
import org.gradle.api.Project
import org.gradle.api.tasks.testing.Test
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import org.grad... | 26 | null | 0 | 6 | 40c2f09bbedf5b561a0fa34f73a53154e77f13ef | 3,401 | artemis-android | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Family.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | 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... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,833 | icons | MIT License |
editor-shape/src/main/kotlin/ru/ilyasshafigin/openrndr/editor/shape/mesh/Triangle.kt | ilyasshafigin | 258,325,328 | false | null | package ru.ilyasshafigin.openrndr.editor.shape.mesh
import org.openrndr.math.Vector2
class Triangle(
val p1: Vector2,
val p2: Vector2,
val p3: Vector2
) {
fun sharesVertex(other: Triangle): Boolean {
return p1 === other.p1 || p1 === other.p2 || p1 === other.p3 ||
p2 === other.p1 |... | 0 | Kotlin | 0 | 1 | 7166d40e19687da68b2cf7d9c40b322daa17864e | 434 | openrndr-editor | MIT License |
app/src/main/kotlin/com/softteco/template/data/profile/repository/ProfileRepositoryImpl.kt | SoftTeco | 644,768,318 | false | {"Kotlin": 265161, "Shell": 354} | package com.softteco.template.data.profile.repository
import androidx.datastore.core.DataStore
import com.softteco.template.Constants.REQUEST_RETRY_DELAY
import com.softteco.template.data.auth.dto.AuthTokenDto
import com.softteco.template.data.auth.dto.toModel
import com.softteco.template.data.base.ApiError
import com... | 6 | Kotlin | 7 | 7 | 2adda3282a15f09d7e5de588e6cf462b4f4bbf4e | 5,382 | AndroidAppTemplate | MIT License |
api/src/main/kotlin/com/mattmx/ktgui/commands/DummyCommand.kt | Matt-MX | 530,062,987 | false | null | package com.mattmx.ktgui.commands
import com.mattmx.ktgui.scheduling.not
import com.mattmx.ktgui.utils.not
import org.bukkit.command.Command
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
open class DummyCommand(
val cmd: SimpleCommandBuilder
) : Command(cmd.name, cmd.description ?: "", "... | 3 | null | 3 | 24 | fdc34fce5eeb41f177f890040a58d6c174168434 | 1,782 | KtPaperGui | Apache License 2.0 |
app/src/main/java/com/example/demo/fragment/home/HomeFragment.kt | poximan | 711,693,982 | false | {"Kotlin": 220303, "Java": 120} | package com.example.demo.fragment.home
import android.app.AlertDialog
import android.content.DialogInterface
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
imp... | 0 | Kotlin | 0 | 0 | ffd8929282d74fd00ff409a509f978c912db2f6e | 2,119 | harenkaren | MIT License |
modules/feature/app_settings/src/main/kotlin/kekmech/ru/feature_app_settings/di/AppSettingDependencies.kt | tonykolomeytsev | 203,239,594 | false | null | package kekmech.ru.feature_app_settings.di
import kekmech.ru.domain_onboarding.OnboardingFeatureLauncher
import kekmech.ru.domain_schedule.ScheduleFeatureLauncher
import kekmech.ru.feature_app_settings.screens.favorites.elm.FavoritesFeatureFactory
import kekmech.ru.feature_app_settings.screens.main.elm.AppSettingsFeat... | 9 | null | 4 | 26 | 77e080efa1a5084630e62741e619d9365d7033a5 | 617 | mpeiapp | MIT License |
src/main/kotlin/net/hanekawa/kafkakaiju/KaijuWebServer.kt | kennydo | 100,637,863 | false | null | package net.hanekawa.kafkakaiju
import com.squareup.moshi.FromJson
import com.squareup.moshi.JsonDataException
import com.squareup.moshi.Moshi
import com.squareup.moshi.ToJson
import graphql.GraphQLError
import org.jetbrains.ktor.host.embeddedServer
import org.jetbrains.ktor.http.ContentType
import org.jetbrains.ktor.... | 0 | Kotlin | 0 | 0 | e451006e936d63ef2bc27b0b229966b980b89046 | 3,826 | kafka-kaiju | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.