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/musicplayer/aow/delegates/exo/Samples.kt | ilemobayo | 138,568,151 | false | {"Kotlin": 1382927, "Java": 88946, "HTML": 23548} | /*
* Copyright (C) 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 app... | 0 | Kotlin | 0 | 2 | bc50a7cace0367b5bcffcd92008f7dbe2727da96 | 2,837 | KStudio | MIT License |
clevertap-core/src/test/java/com/clevertap/android/sdk/validation/ManifestValidatorTest.kt | CleverTap | 42,078,482 | false | null | package com.clevertap.android.sdk.validation
import com.clevertap.android.shared.test.BaseTestCase
import org.junit.*
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class ManifestValidatorTest :BaseTestCase(){
// Manifest validator only generate... | 6 | null | 74 | 80 | 4b1ea7577e14f9abb68492ad09b36cf01c3b7c48 | 548 | clevertap-android-sdk | MIT License |
kAndroidModular/userrepos/src/main/java/fr/guddy/kandroidmodular/userrepos/mvvm/UserReposFragment.kt | RoRoche | 116,174,558 | false | null | package fr.guddy.kandroidmodular.userrepos.mvvm
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.silmood.b... | 1 | Kotlin | 1 | 9 | c7d0108208eea4d4de08dbed439660a8ac8d0fc8 | 2,129 | kAndroidModular | Apache License 2.0 |
KotlinMail/goodscenter/src/main/java/cn/xwj/goods/presenter/GoodsDetailPresenter.kt | jxiaow | 123,389,640 | false | null | package cn.xwj.goods.presenter
import cn.xwj.baselibrary.ext.execute
import cn.xwj.baselibrary.presenter.BasePresenter
import cn.xwj.baselibrary.rx.BaseSubscriber
import cn.xwj.baselibrary.utils.AppPreferences
import cn.xwj.goods.common.GoodsConstants
import cn.xwj.goods.data.protocol.Goods
import cn.xwj.goods.data.re... | 1 | null | 1 | 1 | 2796496ebb7d279ad0f405102c107db9085545e7 | 1,754 | AndroidProjectStudio | Apache License 2.0 |
clients/kotlin-vertx/generated/src/main/kotlin/org/openapitools/server/api/model/AdAccountsCountryResponseData.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | /**
* Pinterest REST API
* Pinterest's REST API
*
* The version of the OpenAPI document: 5.12.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.
*/
package org.openapitools.server.api.model... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 1,037 | pinterest-sdk | MIT License |
fintechplatform-ui/src/main/java/com/fintechplatform/ui/transactions/models/TransactionItem.kt | DWAplatform | 128,736,783 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 70, "Kotlin": 284, "Java": 75} | package com.fintechplatform.ui.transactions.models
import android.os.Parcel
import android.os.Parcelable
data class TransactionItem(val id: String,
val accountId: String,
val what: String,
val who: String,
val ... | 1 | null | 1 | 1 | 498bfbdfd00724ae24d7efc01e9af0b2a8cb58b0 | 1,958 | fintech-platform-sdk-android | MIT License |
popkorn/src/commonMain/kotlin/annotations/Assisted.kt | corbella83 | 221,466,107 | false | null | package cc.popkorn.annotations
/**
* Annotation to be used in any constructor parameter that is not injectable and will be provided in
* runtime (Can only be used in a class with BY_NEW scope).
*
* constructor(@Assisted id:Long, param1:Interface)
*
* @author <NAME>
* @since 2.1.0
*/
@Target(AnnotationTarget.VA... | 8 | null | 5 | 150 | 175a0a25efb3a8c484b710d2d48910f27d42a3f4 | 400 | PopKorn | Apache License 2.0 |
detekt-formatting/src/test/kotlin/io/gitlab/arturbosch/detekt/formatting/ExpressionBodySyntaxTest.kt | mdabrowskiNeofonie | 101,381,574 | true | {"Gradle": 13, "YAML": 14, "Markdown": 5, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 4, "Groovy": 1, "Kotlin": 267, "Java": 1, "Java Properties": 1} | package io.gitlab.arturbosch.detekt.formatting
import io.gitlab.arturbosch.detekt.api.Rule
import io.gitlab.arturbosch.detekt.test.RuleTest
import io.gitlab.arturbosch.detekt.test.format
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
/**
* @author Artur Bosch
*/
internal class E... | 0 | Kotlin | 2 | 0 | c762bcdc1f951789e8de7806230ac112da65221a | 1,419 | detekt-old | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BadgeAd.kt | walter-juan | 868,046,028 | false | {"Kotlin": 20416825} | package com.woowla.compose.icon.collections.tabler.tabler.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.vector.ImageVector
import androidx.compose.ui.graphics.vector... | 0 | Kotlin | 0 | 1 | b037895588c2f62d069c724abe624b67c0889bf9 | 3,430 | compose-icon-collections | MIT License |
src/main/java/graphene/chain/AbstractObject.kt | abitmore | 479,743,257 | false | {"Kotlin": 447335, "Java": 97085} | package graphene.chain
import graphene.protocol.*
import graphene.serializers.ObjectSerializer
import kotlinx.serialization.Serializable
@Serializable(with = ObjectSerializer::class)
sealed class AbstractObject(
) : ObjectIdType {
abstract override val id: ObjectId
override val space: ObjectSpace get() = id.... | 0 | Kotlin | 0 | 0 | ddd17eb771eea649e681667b6d85e4f292e9e839 | 501 | bitshares-kit | MIT License |
app/src/main/java/com/cerdenia/android/planito/interfaces/CustomBackPress.kt | joshuacerdenia | 384,061,893 | false | null | package com.cerdenia.android.planito.interfaces
interface CustomBackPress {
fun onBackPressed()
} | 0 | Kotlin | 0 | 0 | bcb08f2450d990ab64525f850f7cd1b17cae4792 | 103 | Planito | MIT License |
src/feature_wishlist/src/main/java/com/gabrielbmoro/moviedb/wishlist/domain/usecases/GetFavoriteMoviesUseCase.kt | gabrielbmoro | 574,746,759 | false | {"Kotlin": 158087} | package com.gabrielbmoro.moviedb.wishlist.domain.usecases
import com.gabrielbmoro.moviedb.repository.MoviesRepository
import com.gabrielbmoro.moviedb.repository.model.Movie
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
interface GetFavoriteMoviesUseCase {
operator fun invoke(): Flow<List<Movie>>
... | 8 | Kotlin | 2 | 38 | 2e9fe1f210fcd086a042d75969b14df7bb2816e1 | 545 | MovieDB-Android | MIT License |
app/src/main/java/com/catcompanion/app/db/AppDatabase.kt | andrefilipesilva73 | 744,714,931 | false | {"Kotlin": 96650} | package com.catcompanion.app.db
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverter
import androidx.room.TypeConverters
import com.catcompanion.app.model.Breed
import com.catcompanion.app.model.User
import java.util... | 0 | Kotlin | 0 | 1 | f8712b7736b08c706e0fa056733ec7bcbccda034 | 1,932 | cat-companion-app | MIT License |
korge/src/commonMain/kotlin/com/soywiz/korge/service/storage/StorageItem.kt | Wolwer1nE | 268,762,840 | true | {"Kotlin": 1902450, "Java": 182026, "Shell": 1955, "Batchfile": 1618} | package com.soywiz.korge.service.storage
import com.soywiz.korio.dynamic.mapper.*
import com.soywiz.korio.dynamic.serialization.*
import com.soywiz.korio.serialization.json.*
import kotlin.reflect.*
class StorageItem<T : Any>(val storage: IStorage, val clazz: KClass<T>, val key: String, val mapper: ObjectMapper, val ... | 0 | Kotlin | 0 | 0 | bc4cfa3914518e8588f1146eec6ea9bf76ca1095 | 1,144 | korge | Apache License 2.0 |
adapter/bidmachine/src/test/java/org/bidon/bidmachine/ConfigParamParserTest.kt | bidon-io | 654,165,570 | false | {"Kotlin": 992814, "Java": 2186} | package org.bidon.bidmachine
import com.google.common.truth.Truth.assertThat
import org.json.JSONObject
import org.junit.Test
internal class ConfigParamParserTest {
@Test
fun `it should parse ConfigRequest to BidMachineParameters`() {
val jsonString =
"""{"admob":{},"bidmachine":{"seller_... | 0 | Kotlin | 0 | 0 | 440f8824115bd71f949ce6aac075d830af89eca3 | 1,630 | bidon_sdk_android | Apache License 2.0 |
app/src/main/java/com/microsoft/device/samples/dualscreenexperience/presentation/util/UriUtils.kt | microsoft | 333,507,793 | false | {"Kotlin": 626561, "HTML": 33449} | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.samples.dualscreenexperience.presentation.util
import android.net.Uri
fun getImageUri(imagePath: String?): Uri? = Uri.parse("file:///android_asset/$imagePath")
| 1 | Kotlin | 6 | 29 | 76577bf9cb72fc5cadd0170652936cd7fc30e3f5 | 301 | surface-duo-dual-screen-experience-example | MIT License |
app/src/main/java/pl/kamilszustak/justfit/domain/item/EmployeeItem.kt | swistak7171 | 248,487,099 | false | null | package pl.kamilszustak.justfit.domain.item
import android.view.LayoutInflater
import android.view.ViewGroup
import com.mikepenz.fastadapter.binding.ModelAbstractBindingItem
import pl.kamilszustak.justfit.R
import pl.kamilszustak.justfit.databinding.ItemEmployeesListBinding
import pl.kamilszustak.justfit.domain.model.... | 0 | Kotlin | 0 | 1 | e1b584010dd7edeaa41c7d432fb398f05a2f5dea | 1,220 | JustFit | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonerlocationapi/integration/AmendmentResourceIntTest.kt | ministryofjustice | 738,593,274 | false | {"Kotlin": 83235, "Dockerfile": 1153} | package uk.gov.justice.digital.hmpps.prisonerlocationapi.integration
import aws.sdk.kotlin.services.s3.model.GetObjectRequest
import aws.sdk.kotlin.services.s3.model.NoSuchKey
import aws.sdk.kotlin.services.s3.putObject
import aws.smithy.kotlin.runtime.content.ByteStream
import aws.smithy.kotlin.runtime.content.decode... | 1 | Kotlin | 0 | 0 | a2391f698d99ecd68cf9a0c23e6e0221d9f364e9 | 5,486 | hmpps-prisoner-location-api | MIT License |
androidApp/src/main/java/com/nbs/kmm/sample/android/utils/util/ViewUtils.kt | nbsmobile | 597,042,861 | false | {"Kotlin": 144840, "Swift": 52478, "Ruby": 2440, "Java": 1515} | package com.nbs.kmm.sample.android.utils.util
import android.view.View
fun View.gone() {
this.visibility = View.GONE
}
fun View.visible() {
this.visibility = View.VISIBLE
}
fun View.invisible() {
this.visibility = View.INVISIBLE
}
fun View.disable() {
this.isEnabled = false
}
fun View.enable() {... | 2 | Kotlin | 19 | 71 | 83396b2c1354f07e7c0cfc580de4ac851bd4efb2 | 349 | incio | MIT License |
app/src/main/java/id/ac/umn/finalprojectfactory/NewModelActivity.kt | frapslover63 | 184,046,639 | false | null | package id.ac.umn.finalprojectfactory
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.text.Editable
import android.util.Log
import android.widget.Toast
import com.android.volley.Request
import com.android.volley.RequestQueue
import c... | 0 | Kotlin | 0 | 0 | 7748f5e648bf097c47a8f6c4f4b20fe1a8af65e5 | 3,198 | FinalProjectFactory | MIT License |
app/src/main/java/com/pstore/savelocations/ui/shareMaps/ShareMapsFragment.kt | sahinkaradeniz | 515,223,856 | false | null | package com.pstore.savelocations.ui.shareMaps
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavControlle... | 0 | Kotlin | 0 | 6 | 9246679c2f865052ca3d5394d0a24046c42f5dcb | 5,075 | SaveLocation | MIT License |
src/commonMain/kotlin/com/github/shaart/pstorage/multiplatform/ui/ErrorWindow.kt | shaart | 643,580,361 | false | null | package com.github.shaart.pstorage.multiplatform.ui
import androidx.compose.material.AlertDialog
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import com.github.shaart.pstorage.multiplatform.config.PstorageProperties
import com... | 4 | Kotlin | 0 | 0 | b0bc580daa6e93296b4dc550fbe724695af3e6ca | 750 | pstorage-multiplatform | Apache License 2.0 |
src/commonMain/kotlin/com/github/shaart/pstorage/multiplatform/ui/ErrorWindow.kt | shaart | 643,580,361 | false | null | package com.github.shaart.pstorage.multiplatform.ui
import androidx.compose.material.AlertDialog
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import com.github.shaart.pstorage.multiplatform.config.PstorageProperties
import com... | 4 | Kotlin | 0 | 0 | b0bc580daa6e93296b4dc550fbe724695af3e6ca | 750 | pstorage-multiplatform | Apache License 2.0 |
flowbinding-android/src/main/java/reactivecircus/flowbinding/android/widget/SeekBarProgressChangeFlow.kt | developersancho | 274,507,842 | true | {"Kotlin": 417508, "Shell": 909} | package reactivecircus.flowbinding.android.widget
import android.widget.SeekBar
import androidx.annotation.CheckResult
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
import kotlinx.corouti... | 0 | null | 0 | 0 | 6c8fd566b58c23554115bfc87f4c707a01ce9a8d | 1,728 | FlowBinding | Apache License 2.0 |
android/app/src/main/kotlin/com/example/digi_oats/MainActivity.kt | Herrytheeagle | 446,740,489 | false | {"HTML": 3930, "Dart": 1744, "Swift": 404, "Kotlin": 126, "Objective-C": 38} | package com.example.digi_oats
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | HTML | 0 | 0 | 6c969c62fc9dc235dbf0dd04a3d6028d936bfb35 | 126 | Oats-LND | MIT License |
v2-model/src/commonMain/kotlin/com/bselzer/gw2/v2/model/continent/map/adventure/Adventure.kt | Woody230 | 388,820,096 | false | {"Kotlin": 750899} | package com.bselzer.gw2.v2.model.continent.map.adventure
import com.bselzer.gw2.v2.model.tile.position.TexturePosition
import com.bselzer.ktx.value.identifier.Identifiable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Adventure(
/**
* The id in the... | 2 | Kotlin | 0 | 2 | 7bd43646f94d1e8de9c20dffcc2753707f6e455b | 727 | GW2Wrapper | Apache License 2.0 |
src/android_app/app/src/main/java/com/mobilehealthsports/vaccinepass/business/models/Vaccination.kt | AndreasRoither | 302,008,747 | false | null | package com.mobilehealthsports.vaccinepass.business.models
import java.time.LocalDate
data class Vaccination(
val uid: Long,
val f_uid: Long,
val active: Boolean,
val refreshDate: LocalDate?,
val userId: String,
val vaccinationDate: LocalDate?,
val expiresIn: St... | 0 | Kotlin | 0 | 0 | 55e84ef5d88abcbfe925aa0e48510a2c9acb8ced | 644 | VaccinePass | MIT License |
app/src/main/java/at/shockbytes/dante/ui/adapter/suggestions/SuggestionHintViewHolder.kt | shockbytes | 92,944,830 | false | {"Kotlin": 790848} | package at.shockbytes.dante.ui.adapter.suggestions
import android.view.ViewGroup
import at.shockbytes.dante.R
import at.shockbytes.dante.databinding.ItemGenericExplanationBinding
import at.shockbytes.dante.util.layoutInflater
import at.shockbytes.util.adapter.BaseAdapter
class SuggestionHintViewHolder(
private va... | 21 | Kotlin | 7 | 73 | 626fd7c12691be646fcd7b55a9c46539073af675 | 1,448 | Dante | Apache License 2.0 |
kotlin/graphs/dfs/StronglyConnectedComponents.kt | polydisc | 281,633,906 | true | {"Java": 540473, "Kotlin": 515759, "C++": 265630, "CMake": 571} | package graphs.dfs
import java.util.stream.Stream
// https://en.wikipedia.org/wiki/Kosaraju%27s_algorithm
object StronglyConnectedComponents {
fun scc(graph: Array<List<Integer>>): List<List<Integer>> {
val n = graph.size
val used = BooleanArray(n)
val order: List<Integer> = ArrayList()
... | 1 | Java | 0 | 0 | 4566f3145be72827d72cb93abca8bfd93f1c58df | 2,258 | codelibrary | The Unlicense |
app/src/main/java/com/tensesapp/ui/viewmodel/MateriViewModel.kt | RanggaNf | 802,828,457 | false | {"Kotlin": 238849} | package com.tensesapp.ui.viewmodel
import android.content.Context
import androidx.compose.runtime.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.tensesapp.data.model.Materi
import com.tensesapp.data.repos.MateriRepository
import com.tensesapp.ui.common.UiState
import kotlinx.... | 0 | Kotlin | 1 | 1 | 84cc6594c945178544fa14c2be95a7dee8a1425d | 2,006 | TensesApp | MIT License |
library/src/test/java/co/kyash/vtl/testing/RxImmediateSchedulerRule.kt | Kyash | 117,663,546 | false | null | package co.kyash.vtl.testing
import io.reactivex.rxjava3.plugins.RxJavaPlugins
import io.reactivex.rxjava3.schedulers.Schedulers
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
class RxImmediateSchedulerRule : TestRule {
override fun apply(base: Statem... | 0 | Kotlin | 1 | 24 | 85bd0715df374ba1c0a7adf7505169fd4faa5556 | 1,018 | validatable-textinput-layout | Apache License 2.0 |
src/test/kotlin/no/nav/familie/dokument/storage/integrationTest/StonadControllerIntegrationTest.kt | navikt | 222,470,666 | false | {"Kotlin": 109638, "HTML": 31392, "Dockerfile": 153} | package no.nav.familie.dokument.storage.integrationTest
import com.google.cloud.storage.Blob
import com.google.cloud.storage.BlobId
import com.google.cloud.storage.Storage
import com.google.cloud.storage.StorageException
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import org.assertj.core.api.Asser... | 0 | Kotlin | 0 | 0 | 6df542b4756aff2610ccd1f9ff7b058087fbae23 | 4,215 | familie-dokument | MIT License |
korge/src/commonMain/kotlin/com/soywiz/korge/ui/defaultSkins.kt | TobseF | 234,976,968 | true | {"Kotlin": 1863744, "Java": 182026, "Shell": 1955, "Batchfile": 1618} | package com.soywiz.korge.ui
import com.soywiz.korge.view.*
import com.soywiz.korim.bitmap.*
import com.soywiz.korim.format.*
import com.soywiz.korio.util.encoding.*
val DEFAULT_UI_SKIN_IMG by lazy {
PNG.decode(
"iVBORw0KGgoAAAANSUhEUgAAAQAAAADvCAMAAAAqyfq3AAABZVBMVEVHcExLS0tJSEt2dnZfX19jY2NKSktdXV5nZ2diYm... | 0 | Kotlin | 0 | 0 | badaa679ca4c29fdce5e9ff4acb90a56ad8aea36 | 8,064 | korge | Apache License 2.0 |
core/src/commonMain/kotlin/bruhcollective/itaysonlab/ksteam/serialization/SteamIdSerializer.kt | iTaysonLab | 585,761,817 | false | {"Kotlin": 605935} | package bruhcollective.itaysonlab.ksteam.serialization
import bruhcollective.itaysonlab.ksteam.models.SteamId
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serialization.descriptors.Seria... | 1 | Kotlin | 1 | 35 | 69f547a200a6eb4d89463d7ccd1e89f5ebae2162 | 837 | kSteam | MIT License |
markdown-editor/src/jvmMain/kotlin/me/okonecny/markdowneditor/toolbar/ParagraphStyleCombo.kt | konecny-ondrej | 784,920,382 | false | {"Kotlin": 223790} | package me.okonecny.markdowneditor.toolbar
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.TooltipArea
import androidx.compose.foundation.clickable
import androidx.compose.foundation.text.BasicText
import androidx.compose.material.DropdownMenu
import androidx.compose.mat... | 1 | Kotlin | 0 | 6 | 0e1f0019178329dd2f8194bbd760355228ee989c | 6,222 | compose-markdown-editor | MIT License |
src/main/kotlin/com/jetpackr/source/SourceService.kt | jetpackr | 152,944,199 | false | null | package com.jetpackr.source
import com.jetpackr.data.parameter.Option
import com.jetpackr.source.loader.local.LocalLoader
import com.jetpackr.source.loader.remote.RemoteLoader
class SourceService(
private val localLoaders: Map<Source.Local, LocalLoader>,
private val remoteLoaders: Map<Source.Remote, R... | 0 | Kotlin | 1 | 1 | 2f32d5b4c342a3d9cecf5db7c000669b0769c201 | 1,098 | jetpackr-api | MIT License |
lib/src/main/kotlin/net/dean/jraw/models/ThumbnailType.kt | dukestreet | 458,726,716 | true | {"Kotlin": 505480, "Java": 86651} | package net.dean.jraw.models
import java.util.Locale
/**
* All of the values in this enum can be returned by the reddit API, except for [.URL] and [.NONE].
* If `URL` is returned, then Reddit has created a thumbnail for specifically for that post. If
* `NONE` is returned, then there is no thumbnail available.
*/
... | 0 | Kotlin | 0 | 3 | d333108f3f416ac24676e40457ccbde4b1386588 | 1,022 | JRAW | MIT License |
src/main/kotlin/com/github/trcdeveloppers/clayium/common/interfaces/IConnectable.kt | TRCDeveloppers | 679,576,608 | false | {"Kotlin": 77293} | package com.github.trcdeveloppers.clayium.common.interfaces
import net.minecraft.util.EnumFacing
interface IConnectable {
fun getInput(facing: EnumFacing): Int {
return -1
}
fun getOutput(facing: EnumFacing): Int {
return -1
}
fun rollInput(facing: EnumFacing): Int {
retu... | 0 | Kotlin | 0 | 0 | b710f4464b541af8e378bb37a81b3978b084c3d4 | 582 | Clayium | Creative Commons Attribution 4.0 International |
src/main/kotlin/internal/Parser.kt | LSafer | 613,199,566 | false | null | /*
* Copyright 2023 cufy.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 to in ... | 0 | Kotlin | 0 | 2 | 946a262d3a537b34753649bd882679794ea9c907 | 4,475 | enver | Apache License 2.0 |
app/src/main/java/com/fanrong/frwallet/dapp/CallJsResult.kt | iamprivatewallet | 464,003,911 | false | {"JavaScript": 2822760, "Kotlin": 1140535, "Java": 953177, "HTML": 17003} | package com.fanrong.frwallet.dapp
import android.webkit.WebView
import xc.common.tool.CommonTool
import xc.common.tool.utils.SWLog
object CallJsResult {
fun toResult(webview: WebView, requestId: String, result: String) {
// SWLog.e("toResult() called with: requestId = $requestId, result = $result")
... | 0 | JavaScript | 0 | 1 | be8003e419afbe0429f2eb3fd757866e2e4b9152 | 605 | PrivateWallet.Android | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/digitalprisonreportinglib/data/model/FeatureType.kt | ministryofjustice | 697,333,274 | false | {"Kotlin": 295335} | package uk.gov.justice.digital.hmpps.digitalprisonreportinglib.data.model
import com.google.gson.annotations.SerializedName
enum class FeatureType {
@SerializedName("print")
PRINT,
}
| 7 | Kotlin | 0 | 3 | be419a71abe4cb3650d862ecbc4f8b2aad10c09b | 189 | hmpps-digital-prison-reporting-lib | MIT License |
app/src/main/java/com/mezhendosina/sgo/app/model/ContainerRepository.kt | mezhendosina | 448,087,094 | false | {"Kotlin": 580262, "Java": 5030} | /*
* Copyright 2024 <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 i... | 1 | Kotlin | 1 | 11 | d6727bca32c5daaaaa0ed4c21a671f754b59ffdb | 3,161 | che-zadali-app | Apache License 2.0 |
app/src/main/java/com/cq/cqcallrecorder/call/receiver/CallRecordReceiver.kt | tanbo091 | 197,723,000 | false | null | package com.cq.cqcallrecorder.call.receiver
import android.content.Context
import android.media.MediaRecorder
import com.aykuttasil.callrecord.helper.PrefsHelper
import com.cq.cqcallrecorder.call.CallRecord
import com.cq.cqcallrecorder.util.LogUtils
import java.io.File
import java.io.IOException
import java.util.*
op... | 0 | Kotlin | 1 | 0 | fffb29ef7e254d5c23dbd4365644b21c9cd9f1b1 | 8,137 | callRecorder | Apache License 2.0 |
sample/src/test/java/me/lazy_assedninja/sample/ui/saf/DirectoryViewModelTest.kt | henryhuang1219 | 357,838,778 | false | null | package me.lazy_assedninja.sample.ui.saf
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.documentfile.provider.DocumentFile
import androidx.lifecycle.Observer
import kotlinx.coroutines.ExperimentalCoroutinesApi
import me.lazy_assedninja.sample.common.mock
import me.lazy_assedninja.sa... | 0 | Kotlin | 0 | 0 | 1764dc963f179b2710f189aebf5c45664d51daad | 2,027 | Android-Demo | Apache License 2.0 |
app/src/main/java/com/basar/moviehunter/ui/view/movielist/MovieListView.kt | basarYargici | 507,985,728 | false | {"Kotlin": 152176} | package com.basar.moviehunter.ui.view.movielist
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.basar.moviehunter.data.model.MovieResponse
import com.basar.moviehunter.databinding.ViewMovieListBinding... | 0 | Kotlin | 0 | 6 | 7ae064207ce3507529958d51542e2e012e535cfb | 1,385 | movie-hunt | MIT License |
app/src/main/kotlin/io/github/bsfranca2/athena/dto/project/ProjectDto.kt | bsfranca2 | 275,465,877 | false | null | package io.github.bsfranca2.athena.dto.project
import io.github.bsfranca2.athena.enum.ProjectItemType
import java.time.LocalDateTime
data class ProjectDto(
val id: Long,
val workspaceId: Long,
val name: String,
val items: MutableList<Item>,
val createdByUserId: Long,
va... | 11 | Kotlin | 0 | 0 | 8a048990c1a6ebf23a567490476fc7e41fdadc71 | 588 | Athena | MIT License |
components/membership/synchronisation/src/main/kotlin/net/corda/membership/synchronisation/SynchronisationException.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.membership.synchronisation
/**
* Exception thrown during membership synchronisation.
*/
class SynchronisationException(message: String, cause: Throwable? = null) : Exception(message, cause)
| 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 211 | corda-runtime-os | Apache License 2.0 |
examples/src/tl/tonlib/SetLogVerbosityLevel.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62942} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.tonlib
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("setLogVerbosityLevel")
@TLCombinator... | 0 | Kotlin | 0 | 1 | 16de3f335d8005e35543cb7515a810fd9ac4236d | 525 | tl-kotlin | MIT License |
di-with-koin/src/test/kotlin/org/sdkotlin/koin/hello/RandomGreetingServiceTest.kt | sdkotlin | 127,946,284 | false | {"Kotlin": 170478, "Java": 16390} | package org.sdkotlin.koin.hello
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class RandomGreetingServiceTest {
@Test
fun `should return a random greeting`() {
val greetingService: GreetingService = RandomGreetingService()
val response = greetingService.getGreet... | 0 | Kotlin | 5 | 20 | 852dab9c40cffcc909f487676e1e31a29c2ba332 | 393 | sd-kotlin-talks | Apache License 2.0 |
sample/src/main/java/contacts/sample/cheatsheet/other/kotlin/ContactDefaultDataActivity.kt | vestrel00 | 223,332,584 | false | {"Kotlin": 1616347, "Shell": 635} | package contacts.sample.cheatsheet.other.kotlin
import android.app.Activity
import contacts.core.Contacts
import contacts.core.entities.Phone
import contacts.core.util.*
class ContactDefaultDataActivity : Activity() {
fun isPhoneTheDefaultPhone(phone: Phone): Boolean = phone.isDefault
fun setPhoneAsDefault(... | 26 | Kotlin | 35 | 573 | 383594d2708296f2fbc6ea1f10b117d3acd1f46a | 468 | contacts-android | Apache License 2.0 |
tcp/src/main/kotlin/dev/entao/tcp/TcpLoop.kt | yangentao | 326,213,398 | false | null | @file:Suppress("MemberVisibilityCanBePrivate")
package dev.entao.tcp
import java.io.IOException
import java.nio.ByteBuffer
import java.nio.channels.ClosedSelectorException
import java.nio.channels.SelectionKey
import java.nio.channels.Selector
import java.nio.channels.SocketChannel
import java.nio.channels.spi.Abstra... | 0 | Kotlin | 0 | 0 | 2bfce092d7b81f5c96cfe66bcb04559016a89d1a | 5,362 | sweet | MIT License |
android/app/src/main/kotlin/com/example/social_influencer_template_app/MainActivity.kt | johanehinger | 374,561,534 | false | {"Dart": 57039, "HTML": 4174, "Swift": 404, "Kotlin": 137, "Objective-C": 38} | package com.example.booking_template_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 19 | Dart | 0 | 0 | beb766ef0a28a4aabd89f4047d490bc3a4d753f2 | 137 | booking_template_app | MIT License |
app/src/main/java/com/example/mymovieapp/ui/favorite/FavoriteFragment.kt | rezakardan | 695,951,652 | false | {"Kotlin": 54831} | package com.example.mymovieapp.ui.favorite
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.NavArgs
import androidx.navigation.fragment.findNavContr... | 0 | Kotlin | 0 | 0 | ee4e2e8b965604b5a825218b6239f0255e9923b2 | 2,157 | MovieApp_G | Apache License 2.0 |
app/src/main/java/com/example/az/presentation/home/HomeFragment.kt | annzzu | 440,827,643 | false | null | package com.example.az.presentation.home
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.example.az.databinding.FragmentHomeBinding
import com.example.az.extensions.STRINGS
import com.example.az.extensions.getName
import com.example.az.extensions.invisible
impo... | 0 | Kotlin | 0 | 2 | cf3c2213dc7c2fd1c610dbdfa5e664ad04729f9b | 2,288 | AZ | MIT License |
app/src/main/java/com/twobbble/tools/RxHelper.kt | 872409 | 97,719,825 | true | {"Kotlin": 246224, "Java": 8986} | package com.twobbble.tools
import com.twobbble.view.api.IBaseView
import rx.Observable
import rx.Scheduler
import rx.android.schedulers.AndroidSchedulers
import rx.schedulers.Schedulers
/**
* Created by liuzipeng on 2017/2/21.
*/
class RxHelper {
companion object {
/**
* 输入输出都为List的observable模板... | 0 | Kotlin | 0 | 0 | 63843fdb43ee1f35829fcb47173b171a6c31ea94 | 2,778 | Twobbble | Apache License 2.0 |
app/src/main/kotlin/com/frankegan/sqrshare/PictureScreen.kt | fegan104 | 28,639,081 | false | {"Kotlin": 28658} | package com.frankegan.sqrshare
import android.graphics.Bitmap
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androi... | 0 | Kotlin | 0 | 0 | 34d2809a748f8d9e74bfbb89458db209599199cf | 6,607 | SqrShare | MIT License |
persistence/src/main/kotlin/com/healthmetrix/dynamicconsent/persistence/DatabaseMetricsConfiguration.kt | smart4health | 593,624,880 | false | null | package com.healthmetrix.dynamicconsent.persistence
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.binder.db.DatabaseTableMetrics
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Profile
import javax.annotation.PostConstr... | 0 | Kotlin | 0 | 1 | 64bf43ecd9772f750767ebcb507c0983dfef4182 | 773 | dataprovision-consent-service | MIT License |
shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/Platform.kt | JetBrains | 108,403,211 | false | {"Kotlin": 337688, "HTML": 8498, "JavaScript": 6175, "Ruby": 1674, "Swift": 794, "Shell": 226, "Procfile": 58} | package org.jetbrains.kotlinconf
expect fun generateUserId(): String
| 25 | Kotlin | 313 | 2,991 | 6780a5d6082e788b4ed62439a3ed331c972663c4 | 70 | kotlinconf-app | Apache License 2.0 |
data/src/main/java/com/soethan/data/repository/ExchangeLocalDataSourceImpl.kt | soethan98 | 362,074,808 | false | null | package com.soethan.data.repository
import com.soethan.data.local.ExchangeRateDatabase
import com.soethan.data.model.RateEntity
class ExchangeLocalDataSourceImpl(private val exchangeRateDatabase: ExchangeRateDatabase) :
ExchangeLocalDataSource {
override suspend fun saveRate(rates: List<RateEntity>) {
... | 0 | Kotlin | 0 | 0 | cb933349567ea0de8f69f964d086f5721fa0c7e8 | 764 | MMCurrencyExchange | Apache License 2.0 |
core/designsystem/src/main/kotlin/com/espressodev/gptmap/core/designsystem/component/Text.kt | f-arslan | 714,072,263 | false | {"Kotlin": 312117, "Dockerfile": 852} | package com.espressodev.gptmap.core.designsystem.component
import android.content.ActivityNotFoundException
import android.util.Log
import androidx.compose.foundation.text.ClickableText
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import... | 0 | Kotlin | 0 | 2 | dcc8c8c7a2d40a19e08dd7c4f1c56c7d18e59518 | 2,583 | GptMap | MIT License |
cesium-kotlin/src/jsMain/kotlin/cesium/engine/ClippingPolygon.factory.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6328455} | // Automatically generated - do not modify!
package cesium.engine
import js.objects.jso
inline fun ClippingPolygon(
block: ClippingPolygon.ConstructorOptions.() -> Unit,
): ClippingPolygon =
ClippingPolygon(options = jso(block))
| 1 | Kotlin | 8 | 35 | 6c553c67c6cbf77a802c137d010b143895c7da60 | 240 | types-kotlin | Apache License 2.0 |
android-kotlin/app/src/main/java/io/metropolislab/samplearchitecture/presentation/yellow/YellowActivity.kt | seatcode | 119,967,906 | false | {"Swift": 32457, "Kotlin": 16179} | package io.metropolislab.samplearchitecture.presentation.yellow
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import io.metropolislab.samplearchitecture.R
import io.metropolislab.samplearchitecture.architecture.BaseViewModel
import io.metropolisl... | 0 | Swift | 1 | 2 | a3f7004d65b8387f4243da24569afc3febd6afb3 | 961 | mobile-architecture | Apache License 2.0 |
fourohone/src/test/java/com/commit451/fourohone/FourOhOneTest.kt | Commit451 | 91,028,317 | false | null | package com.commit451.fourohone
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.Route
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import org.junit.Assert
import org.junit.Test
import java.util.concurrent.CountDownLatch
import java.util.... | 0 | Kotlin | 2 | 3 | 69b4396b37f6fa39dfebdd95eba93d75b845e3aa | 2,691 | FourOhOne | Apache License 2.0 |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/Pinned.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.tabler.tabler.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.S... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,703 | compose-icon-collections | MIT License |
mobile-common-lib/src/commonMain/kotlin/fi/riista/common/domain/observation/metadata/HardcodedObservationMetadataProvider.kt | suomenriistakeskus | 78,840,058 | false | null | package fi.riista.common.domain.observation.metadata
import fi.riista.common.domain.observation.metadata.dto.ObservationMetadataDTO
import fi.riista.common.domain.observation.metadata.dto.toObservationMetadata
import fi.riista.common.domain.observation.metadata.model.ObservationMetadata
import fi.riista.common.util.de... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 351,114 | oma-riista-android | MIT License |
src/main/kotlin/com/github/hotm/world/gen/feature/segment/FeatureSegmentType.kt | Heart-of-the-Machine | 271,669,718 | false | null | package com.github.hotm.world.gen.feature.segment
import com.mojang.serialization.Codec
/**
* A type of feature part.
*/
class FeatureSegmentType<C, S : FeatureSegment<C>>(val codec: Codec<S>)
| 7 | Kotlin | 0 | 5 | de148c50f9c8ea1d1a3bd4f4dfb035c4614d70a1 | 197 | heart-of-the-machine | MIT License |
app/src/main/java/com/omk/myapplication/MainApplication.kt | Omarmasudkalam | 580,985,260 | false | null | package com.omk.myapplication
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MainApplication : Application() | 0 | Kotlin | 1 | 1 | 8c0427d11cf42ab439267bc4605b8e782ec52db3 | 158 | AptoideApp | MIT License |
impl/misskey/src/main/kotlin/dev/usbharu/multim/misskey/v12/model/NotesShow.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v12.model
import dev.usbharu.multim.misskey.v12.model.components.Note
import kotlinx.serialization.Serializable
@Serializable
data class NotesShowRequest(
val noteId: String
)
typealias NotesShowResponse = Note
| 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 253 | multim | Apache License 2.0 |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/buildings/TentFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.buildings
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.... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 1,930 | compose-icon-collections | MIT License |
api/main/routes/ActuatorRoutes.kt | navikt | 526,111,403 | false | null | package routes
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import io.micrometer.prometheus.PrometheusMeterRegistry
import no.nav.aap.kafka.streams.v2.Streams
fun Routing.actuatorRoutes(
prometheus: PrometheusMeterRegistry,
kafka: S... | 1 | Kotlin | 0 | 0 | e45f648218bf618a5e659a5e4bf510d4131b7d43 | 904 | aap-api | MIT License |
app/src/main/java/com/example/mvvmlogin/viewmodel/LoginViewModelFactory.kt | lxw-del | 662,531,191 | false | null | package com.example.mvvmlogin.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.mvvmlogin.LoginSource
@Suppress("UNCHECKED_CAST")
class LoginViewModelFactory:ViewModelProvider.Factory{
override fun <T : ViewModel> create(modelClass: Class<T>): T {
... | 0 | Kotlin | 0 | 0 | dc645f7eb5fa8ff7d0bb519494be425ab5cecd65 | 639 | MvvmLogin | Apache License 2.0 |
android/player/src/test/java/com/intuit/playerui/android/utils/Json.kt | player-ui | 513,673,239 | false | null | package com.intuit.player.android.utils
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonElement
internal fun JsonElement.stringify() = Json.encodeToString(JsonElement.serializer(), this)
| 82 | null | 45 | 71 | 47aa8110f895682ca4c5fb389f85433258bc5a04 | 218 | player | MIT License |
harness/tests/src/main/kotlin/godot/tests/inheritance/AbstractClassInheritanceChild.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1649742, "GDScript": 536482, "C++": 487057, "C": 13191, "C#": 10278, "Shell": 7888, "Python": 3941, "Java": 3219, "CMake": 941} | package godot.tests.inheritance
import godot.annotation.RegisterClass
import godot.annotation.RegisterFunction
import godot.annotation.RegisterProperty
import godot.annotation.RegisterSignal
import godot.core.signal2
@RegisterClass
class AbstractClassInheritanceChild : AbstractClassInheritanceParent() {
@Registe... | 49 | Kotlin | 44 | 634 | ac2a1bd5ea931725e2ed19eb5093dea171962e3f | 739 | godot-kotlin-jvm | MIT License |
app/src/main/java/cz/levinzonr/spotie/presentation/screens/trackdetails/TrackDetailsContract.kt | levinzonr | 378,435,877 | false | null | package cz.levinzonr.spotie.presentation.screens.trackdetails
import cz.levinzonr.roxie.BaseAction
import cz.levinzonr.roxie.BaseChange
import cz.levinzonr.roxie.BaseState
import cz.levinzonr.spotie.domain.models.TrackDetails
sealed interface State : BaseState {
object Idle : State
object Loading : State
... | 0 | Kotlin | 0 | 0 | 3b6c8be37d94804f78a0f195e113d6fc119f93fe | 814 | spotie-android | Apache License 2.0 |
ChatroomService/src/main/java/io/agora/chatroom/UIChatroomContext.kt | apex-wang | 728,010,838 | false | {"Kotlin": 497622} | package io.agora.chatroom
import android.content.Context
import android.util.Log
import io.agora.chatroom.model.UIChatroomInfo
class UIChatroomContext{
private lateinit var mChatroomInfo: UIChatroomInfo
var context: Context? = null
companion object {
const val TAG = "UIChatroomContext"
}
... | 0 | Kotlin | 0 | 0 | 20b1ff03d06d87d44565e322ccf9abced24264c5 | 948 | test | MIT License |
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/AllowedExceptionNamePattern.kt | hcknl | 158,261,983 | true | {"Kotlin": 1062676, "Groovy": 3620, "Shell": 1710, "HTML": 698} | package io.gitlab.arturbosch.detekt.rules
internal const val ALLOWED_EXCEPTION_NAME = "^(_|(ignore|expected).*)"
| 0 | Kotlin | 0 | 1 | 565d86d780c15ade77b5468a9e342ba334181333 | 114 | detekt | Apache License 2.0 |
component_lib/src/main/java/com/wdb/component_lib/module/AppMoudle.kt | banketree | 285,600,850 | false | {"Kotlin": 16587} | package com.wdb.component_lib.module
import android.app.Application
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
@Module
class AppMoudle(private val application: Application) {
@Singleton
@Provides
fun provideApplication(): Application {
return this.application
}
... | 0 | Kotlin | 0 | 0 | 0bd1ccef9e2f61501687c8260dcbb81dc47f0ec8 | 321 | ComponentLib | Apache License 2.0 |
src/main/kotlin/final_450/printSqaure.kt | ch8n | 312,467,034 | false | {"Kotlin": 127282} | package final_450
fun main() {
// printSquareFilled(10, 5)
// printSquareNumber(10, 5)
// printSquareHollow(10, 5)
//printOne()
// printTwo(10)
// printThree(9)
printFour(9)
}
fun printOne() {
/*
* 12345
* 1234
* 123
* 12
* 1
*/
(5 downTo 1).forEach { ... | 3 | Kotlin | 0 | 2 | 0556b164c4679aeb557c6dc2b5029e0d4aebc8d5 | 3,737 | Big-Brain-Kotlin | Apache License 2.0 |
src/main/kotlin/com/github/imyuyu/sqltoy/dom/model/translate/CacheUpdateChecker.kt | imyuyu | 711,378,160 | false | {"Kotlin": 86510, "HTML": 764} | package com.github.imyuyu.sqltoy.dom.model.translate
import com.intellij.util.xml.Attribute
import com.intellij.util.xml.DomElement
import com.intellij.util.xml.GenericAttributeValue
import com.intellij.util.xml.SubTagList
/**
* The interface cache-update-checkers element.
*
* @author imyuyu
*/
interface CacheUpd... | 9 | Kotlin | 2 | 8 | 4697c3d70939e949b1ec09acbd8634b384c5b7c5 | 720 | sqltoy-idea-plugin | MIT License |
ackpine-core/src/main/kotlin/ru/solrudev/ackpine/impl/installer/session/IntentBasedInstallSession.kt | solrudev | 641,599,463 | false | {"Kotlin": 376934, "Java": 56082} | /*
* Copyright (C) 2023-2024 Ilya Fomichev
*
* 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... | 5 | Kotlin | 7 | 56 | 69e9fd98bb2c13c5ffb120020231d268a4e96941 | 6,950 | Ackpine | Apache License 2.0 |
app/src/main/java/com/daineey/vita_log/data/remote/OpenAIRepository.kt | VITA-LOG | 652,340,267 | false | {"Kotlin": 142599} | package com.daineey.vita_log.data.remote
import com.daineey.vita_log.models.TextCompletionsParam
import kotlinx.coroutines.flow.Flow
interface OpenAIRepository {
fun textCompletionsWithStream(params: TextCompletionsParam): Flow<String>
} | 0 | Kotlin | 5 | 8 | 1bbc6e5ab384c85296b16218491240e34dee6c4e | 243 | VITA-LOG | Apache License 2.0 |
CJMonitorFlutter/example/android/app/src/main/kotlin/com/dvlproad/CJMonitorFlutter_example/MainActivity.kt | dvlproad | 288,761,050 | false | {"Dart": 4385, "Ruby": 4233, "Kotlin": 2468, "Swift": 1324, "Objective-C": 749} | package com.dvlproad.CJMonitorFlutter_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 0 | f72721999ecf75d5f6c3c534c42d23d328244f15 | 142 | CJMonitor-Flutter | MIT License |
backend/app/src/main/kotlin/io/tolgee/api/v2/hateoas/user_account/PrivateUserAccountModelAssembler.kt | tolgee | 303,766,501 | false | null | package io.tolgee.api.v2.hateoas.user_account
import io.tolgee.api.v2.controllers.V2UserController
import io.tolgee.model.UserAccount
import io.tolgee.service.AvatarService
import io.tolgee.service.security.MfaService
import org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport
import org.springfr... | 100 | Kotlin | 40 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 1,268 | tolgee-platform | Apache License 2.0 |
src/test/kotlin/com/github/gradle/android/i18n/export/XlsExporterTest.kt | denis-colliot | 142,295,825 | false | null | package com.github.gradle.android.i18n.export
import org.apache.poi.ss.usermodel.Sheet
import org.apache.poi.ss.usermodel.WorkbookFactory
import org.gradle.testfixtures.ProjectBuilder
import org.junit.Assert.assertEquals
import org.junit.Rule
import org.junit.Test
import org.junit.rules.TemporaryFolder
import testutil... | 1 | Kotlin | 1 | 4 | 0f91dafba6ce48138f0ca999fc1f9f9c5468b643 | 7,615 | gradle-android-i18n | Apache License 2.0 |
dependency_injection_using_hilt_android/src/main/java/com/yaman/dependency_injection_using_hilt_android/data/AppDatabase.kt | Yamanaswal | 739,722,346 | false | {"Kotlin": 15725} | package com.yaman.dependency_injection_using_hilt_android.data
import androidx.room.Database
import androidx.room.RoomDatabase
/**
* SQLite Database for storing the logs.
*/
@Database(entities = arrayOf(Log::class), version = 1, exportSchema = false)
abstract class AppDatabase : RoomDatabase() {
abstract fun lo... | 0 | Kotlin | 0 | 0 | 73b191854dcbb499d72140d1bef5af8f4e5025a2 | 337 | android-hilt-app | MIT License |
extensions-compose/src/commonMain/kotlin/com/arkivanov/decompose/extensions/compose/utils/Icon.kt | arkivanov | 437,015,897 | false | null | package com.arkivanov.decompose.extensions.compose.jetbrains.utils
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.paint
import androidx.compose.ui.geometry.Size
i... | 8 | null | 84 | 2,207 | 8af551e8895951a5082a5d2750335713d673f80b | 1,411 | Decompose | Apache License 2.0 |
utils/src/main/java/com/example/cloudmusic/utils/MediaPlayerManager.kt | 540882wdnmd | 859,269,064 | false | {"Kotlin": 90355} | package com.example.cloudmusic.utils
import android.content.Context
import android.media.MediaPlayer
import java.lang.ref.WeakReference
object MediaPlayerManager {
private var mediaPlayer : MediaPlayer? = null
private var contextWeakReference : WeakReference<Context>? = null
fun init(context: Context){
... | 0 | Kotlin | 0 | 2 | 8a5b9d9de57cee6fcbc52d7f1e5c39c80afb9d43 | 777 | cloudMusic | Apache License 2.0 |
src/main/kotlin/api/linalg/NormExtension.kt | rarnu | 703,406,784 | false | {"Kotlin": 1084283, "C++": 97163, "C": 28624, "CMake": 2728} | package com.rarnu.numkt.api.linalg
import com.rarnu.numkt.ndarray.data.D2
import com.rarnu.numkt.ndarray.data.MultiArray
/**
* Returns norm of float matrix
*/
fun LinAlg.norm(mat: MultiArray<Float, D2>, norm: Norm = Norm.Fro): Float = this.linAlgEx.normF(mat, norm)
/**
* Returns norm of double matrix
*/
fun Lin... | 0 | Kotlin | 0 | 1 | 4e7bbb186ccf53a34f99a2fdec0134842b9bef7e | 421 | numkt | MIT License |
oofqrreader/src/main/java/com/github/soranakk/oofqrreader/util/MatUtil.kt | shinmiy | 344,734,034 | true | {"Kotlin": 10539} | package com.github.soranakk.oofqrreader.util
import com.github.soranakk.oofqrreader.model.ImageData
import org.opencv.core.CvType
import org.opencv.core.Mat
import org.opencv.imgproc.Imgproc
object MatUtil {
fun convertYuvToGray(image: ImageData): Mat {
return Mat().apply {
val yuv = Mat(image... | 0 | null | 0 | 0 | c765f04cff85caac5ea91dffd135b3beb4bd8771 | 554 | OutOfFocusQRReader | Apache License 2.0 |
app/src/androidTest/kotlin/com/quittle/a11yally/activity/welcome/WelcomeActivityInstrumentationTest.kt | quittle | 135,217,260 | false | null | package com.quittle.a11yally.activity.welcome
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.scrollTo
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.... | 48 | Kotlin | 4 | 22 | b277dda83087b12774198ec8372914278088da3a | 2,464 | a11y-ally | Apache License 2.0 |
src/main/kotlin/dev/mythicdrops/gradle/release/MythicDropsReleaseGitHubExtension.kt | MythicDrops | 391,648,860 | false | {"Kotlin": 20535} | package dev.mythicdrops.gradle.release
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.provider.Property
/**
* Configuration for creating a GitHub release for MythicDrops Gradle projects.
*
* @property repository GitHub repository for the project (e.g., MythicDrops/kindling)
* @propert... | 11 | Kotlin | 0 | 3 | 3a6fcf9443b75af435b1fa3c211c2d6cc8145f51 | 504 | mythicdrops-gradle-plugin | MIT License |
app/src/main/java/com/example/suitmediamobiletest2024/ui/screens/SecondScreen.kt | ghaziakmalf | 840,893,769 | false | {"Kotlin": 30924} | package com.example.suitmediamobiletest2024.ui.screens
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx... | 0 | Kotlin | 0 | 0 | a33185400109be455a19a7d48c417f454a934792 | 5,428 | Suitmedia-Mobile-Test-2024 | MIT License |
network/src/main/java/com/irfanirawansukirman/network/data/service/MovieService.kt | irfanirawansukirman | 347,640,870 | false | null | package com.irfanirawansukirman.network.data.service
import com.irfanirawansukirman.network.BuildConfig
import com.irfanirawansukirman.network.data.response.movies.MovieResponse
import com.irfanirawansukirman.network.data.response.movies.MoviesGeneralResponse
import com.irfanirawansukirman.network.data.response.movies... | 0 | Kotlin | 0 | 0 | b3027d82d9bf6b8a9243133534701e3f295599c9 | 1,698 | android-kita-movie | Apache License 2.0 |
extensionslib/src/main/java/com/omega_r/libs/extensions/view/ViewPagerExtensions.kt | Omega-R | 169,584,808 | false | null | package com.omega_r.libs.extensions.view
import androidx.viewpager.widget.ViewPager
fun ViewPager.addOnPageChangeListener(
onPageSelected: ((position: Int) -> Unit)? = null,
onPageScrollStateChanged: ((state: Int) -> Unit)? = null,
onPageScrolled: ((position: Int, positionOffset: Float, positionOffsetPixe... | 1 | Kotlin | 1 | 0 | 378aff76f7d009054c8a243bf4a561525deab01c | 863 | OmegaExtensions | MIT License |
site/src/jvmMain/kotlin/org/example/blogmultiplatform/models/User.kt | MohamedElgohary88 | 787,687,328 | false | {"Kotlin": 253365, "CSS": 4204, "Dockerfile": 2765} | package org.example.blogmultiplatform.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.litote.kmongo.id.ObjectIdGenerator
@Serializable
actual data class User(
@SerialName(value = "_id")
actual val id: String = ObjectIdGenerator.newObjectId<String>().id.toHex... | 0 | Kotlin | 0 | 4 | d50da6a0e318738220ab8b6dc45d06ad9feb8299 | 616 | BlogMultiplatform | MIT License |
ui/src/commonMain/kotlin/kosh/ui/component/textfield/KoshTextField.kt | niallkh | 855,100,709 | false | {"Kotlin": 1813876, "Swift": 594} | package kosh.ui.component.textfield
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.updateTransition
import androidx.compose.animation.expandVertically
import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.text.KeyboardActions
import androidx.... | 0 | Kotlin | 0 | 3 | f48555a563dfee5b07184771a6c94c065765d570 | 5,061 | kosh | MIT License |
app/src/main/java/com/diegoparra/veggie/order/data/firebase/order_dto/PaymentInfoDto.kt | difparra | 362,878,675 | false | null | package com.diegoparra.veggie.order.data.firebase.order_dto
import com.google.firebase.Timestamp
data class PaymentInfoDto(
val status: String,
val paymentMethod: String,
val details: String, // Information shown to the user.
// All information collected in the transaction.
//... | 0 | Kotlin | 1 | 1 | 47264999c9f5046b7827f499bfb067d65ee614e7 | 696 | veggie | Apache License 2.0 |
increase-kotlin-core/src/main/kotlin/com/increase/api/services/async/PendingTransactionServiceAsync.kt | Increase | 614,596,742 | false | null | @file:Suppress("OVERLOADS_INTERFACE") // See https://youtrack.jetbrains.com/issue/KT-36102
package com.increase.api.services.async
import com.increase.api.core.RequestOptions
import com.increase.api.models.PendingTransaction
import com.increase.api.models.PendingTransactionListPageAsync
import com.increase.api.models... | 1 | Kotlin | 0 | 1 | 031037e9a8475b71741fdfae55b78a6e7df4fd5f | 876 | increase-kotlin | Apache License 2.0 |
src/main/java/io/github/mdsimmo/bomberman/game/GameSave.kt | mdsimmo | 21,511,109 | false | null | package io.github.mdsimmo.bomberman.game
import com.sk89q.worldedit.extent.clipboard.Clipboard
import com.sk89q.worldedit.extent.clipboard.io.BuiltInClipboardFormat
import com.sk89q.worldedit.extent.clipboard.io.ClipboardFormats
import io.github.mdsimmo.bomberman.Bomberman
import org.bukkit.Location
import org.bukkit.... | 12 | Kotlin | 6 | 0 | 5065698b3d9bf9a893fc4340a4ee05a240e3b8f3 | 10,241 | Bomberman | The Unlicense |
thelema-kx/src/commonMain/kotlin/org/ksdfv/thelema/mesh/gen/PlaneMeshBuilder.kt | cybernetics | 365,452,918 | true | {"Kotlin": 3356187, "C": 552354, "Java": 355550, "HTML": 6211, "Makefile": 260} | /*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | null | 0 | 0 | c274a903f0a4d17e5ef14773efa144ee8c8809dd | 3,179 | thelema-engine | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.