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/kickstarter/ui/viewholders/projectcampaign/ExternalViewViewHolder.kt | kickstarter | 76,278,501 | false | {"Kotlin": 5269841, "Java": 317201, "Ruby": 22177, "Shell": 6325, "Makefile": 3750} | package com.kickstarter.ui.viewholders.projectcampaign
import android.annotation.SuppressLint
import androidx.fragment.app.FragmentActivity
import com.kickstarter.databinding.ViewElementExternalSourceFromHtmlBinding
import com.kickstarter.libs.htmlparser.ExternalSourceViewElement
import com.kickstarter.ui.adapters.pro... | 8 | Kotlin | 989 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 1,449 | android-oss | Apache License 2.0 |
js/js.translator/testData/incremental/invalidation/genericInlineFunctions/lib1/l1.0.kt | JetBrains | 3,432,266 | false | {"Markdown": 192, "Gradle": 401, "Gradle Kotlin DSL": 1182, "Java Properties": 29, "Shell": 45, "Ignore List": 20, "Batchfile": 21, "Git Attributes": 8, "JSON": 203, "XML": 833, "Kotlin": 56096, "INI": 200, "Java": 3899, "Text": 25219, "JavaScript": 316, "JAR Manifest": 2, "Roff": 256, "Roff Manpage": 56, "Protocol Buf... | inline fun <reified T> foo(x: T) = 123
| 179 | Kotlin | 5640 | 48,055 | e3542ec7d0ffb0a27b189cadc323e88e4cb8ba4f | 39 | kotlin | Apache License 2.0 |
src/main/kotlin/org/rust/ide/formatter/RsReturnStatementFormatProcessor.kt | mattsse | 103,789,734 | false | {"Gradle": 1, "Shell": 3, "YAML": 2, "Gradle Kotlin DSL": 1, "INI": 2, "Markdown": 5, "TOML": 5, "Text": 86, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 642, "Rust": 226, "XML": 62, "RenderScript": 1, "Java": 2, "HTML": 75, "SVG": 2, "JFlex": 3} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.formatter
import com.intellij.lang.ASTNode
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiRecursiveElementVisitor
import com.intelli... | 1 | null | 1 | 1 | fd96ed4524a6365ea89bfad3e761954a1361edbc | 1,948 | intellij-rust | MIT License |
app/src/main/java/hive/com/paradiseoctopus/awareness/MainActivity.kt | cliffroot | 68,677,882 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Java": 2, "XML": 39, "Kotlin": 34} | package hive.com.paradiseoctopus.awareness
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import hive.com.paradiseoctopus.awareness.showplaces.ShowPlacesView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInsta... | 0 | Kotlin | 0 | 0 | 77bd018fd938ebebe804ecceca9315112564246b | 503 | awareness | Apache License 2.0 |
sample/src/main/java/ro/andreidobrescu/declarativeadapterktsample/model/CommentsHeader.kt | fossabot | 221,451,438 | true | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "XML": 15, "Markdown": 1, "Proguard": 2, "Kotlin": 17, "Java": 3} | package ro.andreidobrescu.declarativeadapterktsample.model
class CommentsHeader | 0 | Kotlin | 0 | 0 | ceeb83a1cd67cc6d87c96a6e5702d68ddd3fb8ef | 80 | DeclarativeAdapter-kt | Apache License 2.0 |
android/DartsScorecard/domain/src/main/java/nl/entreco/domain/mastercaller/ToggleSoundUsecase.kt | Entreco | 110,022,468 | false | null | package nl.entreco.domain.mastercaller
import nl.entreco.domain.repository.AudioPrefRepository
import nl.entreco.libcore.BaseUsecase
import nl.entreco.libcore.threading.Background
import nl.entreco.libcore.threading.Foreground
import javax.inject.Inject
/**
* Created by entreco on 14/03/2018.
*/
class ToggleSoundUs... | 4 | null | 1 | 1 | a031a0eeadd0aa21cd587b5008364a16f890b264 | 667 | Darts-Scorecard | Apache License 2.0 |
common/src/main/java/com/ruzhan/lion/App.kt | ckrgithub | 150,102,569 | false | null | package com.ruzhan.lion
import android.app.Application
import android.content.Context
import android.support.multidex.MultiDex
import com.blankj.utilcode.util.Utils
import com.crashlytics.android.Crashlytics
import com.ruzhan.common.BuildConfig
import com.ruzhan.lion.util.LionUtils
import io.fabric.sdk.android.Fabric... | 1 | null | 1 | 1 | e73bcaf999e3de04905e781004f02ede6d85eaea | 1,045 | Lion | Apache License 2.0 |
src/test/kotlin/no/skotbuvel/portal/config/HerokuPostgresConfigTest.kt | apgv | 92,088,012 | false | {"Java": 113114, "Vue": 61421, "Kotlin": 42367, "JavaScript": 12781, "HTML": 352, "CSS": 63} | package no.skotbuvel.portal.config
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import java.net.URI
internal class HerokuPostgresConfigTest {
private val pgDatabaseConfig = HerokuPostgresConfig(uri = URI("postgres://user:password@localhost:5432/database"))
@Test
in... | 1 | null | 1 | 1 | d511cb0f187ccba6a1bc7a498fd948f6de8729e5 | 862 | skotbuvel-portal | MIT License |
src/main/kotlin/com/getkeepsafe/dexcount/ColorConsole.kt | cywudia | 160,515,202 | true | {"Kotlin": 62803, "Java": 42535, "Groovy": 38761, "JavaScript": 8847, "Shell": 4301, "HTML": 440, "CSS": 438} | package com.getkeepsafe.dexcount
import org.gradle.api.DefaultTask
import org.gradle.api.logging.LogLevel
import java.io.PrintWriter
import java.io.Writer
import java.lang.reflect.Method
enum class Color {
DEFAULT,
GREEN,
YELLOW,
RED
}
private fun Color.toStyle() = when (this) {
Color.DEFAULT ->... | 1 | Kotlin | 1 | 1 | cae0e1ebb1704842d37d74c4dc07ab8ff90fa8e9 | 5,727 | dexcount-gradle-plugin | Apache License 2.0 |
app/src/main/java/com/mutlak/metis/wordmem/data/model/pojo/ExamSession.kt | MahdiHatami | 213,575,863 | false | {"Kotlin": 178738} | package com.mutlak.metis.wordmem.data.model.pojo
import java.io.Serializable
data class ExamSession(
var id: Int = 0,
var questions: List<Question>? = null,
var time: Int = 0
) : Serializable
| 0 | Kotlin | 0 | 0 | aeff75c3dbc5cea54f1e1c49285af8df064207be | 207 | flashcard-mobile | The Unlicense |
app/src/main/java/com/dede/sonimei/module/db/DatabaseOpenHelper.kt | hushenghao | 133,592,946 | false | null | package com.dede.sonimei.module.db
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import org.jetbrains.anko.db.*
/**
* Created by hsh on 2018/6/6.
*/
class DatabaseOpenHelper(ctx: Context) : ManagedSQLiteOpenHelper(ctx, "sonimei_db", null, 1) {
companion object {
private va... | 0 | null | 18 | 99 | 5ddce06b4cfde3472156aed0693893e3ada7c09c | 2,690 | music | Apache License 2.0 |
castled-notifications/src/main/java/io/castled/android/notifications/tracking/device/DeviceInfotUtils.kt | castledio | 525,047,434 | false | {"Kotlin": 326016, "HTML": 28150, "Java": 18371, "JavaScript": 1717} | package io.castled.android.notifications.tracking.device
import io.castled.android.notifications.store.CastledSharedStore
import io.castled.android.notifications.tracking.events.extensions.toJsonElement
import io.castled.android.notifications.workmanager.models.CastledDeviceInfoRequest
import kotlinx.serialization.jso... | 0 | Kotlin | 2 | 3 | fbde3e243f65fd2d2e5cec364e9e86b33cd38267 | 780 | castled-notifications-android | MIT License |
app/src/main/java/com/jmoraes/componentizationsample/PlayerActivity.kt | julianomoraes | 144,759,971 | false | null | package com.jmoraes.componentizationsample
import android.annotation.SuppressLint
import android.net.Uri
import android.os.Bundle
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintlayout.widget.ConstraintSet
... | 2 | Kotlin | 41 | 268 | f9eb6987cd4c3d3630d42a85e69c6f74248abab6 | 7,226 | componentizationArch | Apache License 2.0 |
app/src/main/kotlin/dev/mbo/dbq/db/model/types/retrystrategy/RetryDelay.kt | mbogner | 487,622,806 | false | {"Kotlin": 77379, "PLpgSQL": 4569} | /*
* Copyright 2022 mbo.dev
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 0 | Kotlin | 0 | 0 | d89d18513f04f69a61e2a955db496548349e19a1 | 935 | dbq | Apache License 2.0 |
core/src/main/kotlin/com/marekkwiecien/sapper/Model.kt | holowizor | 139,164,159 | false | {"Kotlin": 6318} | package com.marekkwiecien.sapper
interface WithCoordinates {
val x: Int
val y: Int
}
data class Point(override val x: Int, override val y: Int) : WithCoordinates
data class Field(override val x: Int, override val y: Int, val mine: Boolean, val neighbourMines: Int) : WithCoordinates
typealias Mine = Point
| 0 | Kotlin | 0 | 0 | ea4ec0618ff82d41bced075120c705d95992639c | 318 | sapper | Apache License 2.0 |
app/src/main/java/com/srg/pruebamarvel/common/di/injections/FragmentInjectionFactory.kt | sebrodgar | 353,656,877 | false | null | package com.srg.codetestrickmorty.common.di.injections
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import javax.inject.Inject
import javax.inject.Provider
class FragmentInjectionFactory @Inject constructor(
private val creators: @JvmSuppressWildcards Map<Class<out Fragment>,... | 0 | Kotlin | 0 | 0 | dfb2f16f8d12809bc97f17cbe4a267df46bf3ffa | 651 | code-test-rick-morty | Apache License 2.0 |
src/main/kotlin/com/github/huifer/ideapluginsdemo/services/MyProjectService.kt | huifer | 293,477,053 | false | null | package com.github.huifer.ideapluginsdemo.services
import com.intellij.openapi.project.Project
import com.github.huifer.ideapluginsdemo.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
}
}
| 0 | Kotlin | 0 | 1 | 2c0dba619dc7480ff43d62ff709855b6b19d0521 | 276 | gitee-todo-list | Apache License 2.0 |
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/playground/structuredconcurrency/4_cancelling_parents_and_children.kt | LukasLechnerDev | 248,218,113 | false | null | package com.demo.code.playground.structuredconcurrency
import kotlinx.coroutines.*
fun main() = runBlocking<Unit> {
val scope = CoroutineScope(Dispatchers.Default)
scope.coroutineContext[Job]!!.invokeOnCompletion { throwable ->
if (throwable is CancellationException) {
println("Parent jo... | 5 | null | 436 | 2,664 | 636b1038c42073a45bfccb25afbedc294b0f032d | 987 | Kotlin-Coroutines-and-Flow-UseCases-on-Android | Apache License 2.0 |
app/src/test/java/org/simple/clinic/home/overdue/OverdueEffectHandlerTest.kt | appdev-academy | 292,263,031 | true | {"Kotlin": 4738177, "Shell": 3719, "Python": 3162} | package org.simple.clinic.home.overdue
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.verifyNoMoreInteractions
import com.nhaarman.mockitokotlin2.verifyZeroInteractions
import org.junit.After
import org.junit.Test
import org.simple.clinic.TestData
i... | 0 | Kotlin | 0 | 0 | 2c7cc71a824bbe4a809bebaa95aef9555c6e7a18 | 1,837 | simple-app-cameroon-android | MIT License |
common/src/test/kotlin/com/github/niuhf0452/exile/common/BytesTest.kt | niuhf0452 | 240,633,641 | false | null | package com.github.niuhf0452.exile.common
import io.kotlintest.shouldBe
import io.kotlintest.specs.FunSpec
class BytesTest : FunSpec({
test("Bytes should convert ByteArray and hex") {
Bytes.toHex(Bytes.fromHex("a0c2")) shouldBe "a0c2"
}
}) | 0 | Kotlin | 1 | 2 | 8020cb1ab799f7b1e75c73f762a9ee1ed493a003 | 257 | exile | Apache License 2.0 |
src/main/kotlin/org/ivcode/gradle/www/util/StringUtils.kt | iv-cores | 852,529,095 | false | {"Kotlin": 42182, "Mustache": 1015} | package org.ivcode.gradle.www.util
/**
* Requires that the string is not null or blank.
*
* @param msg the message to use if the requirement fails
* @return the string if it is not null or blank
* @throws IllegalArgumentException if the string is null or blank
*/
fun String?.requireNotNullOrBlank(msg: String = "... | 0 | Kotlin | 0 | 0 | dc12e89cd82b4f1d38b8faa6af9fc22b4d216d21 | 1,151 | gradle-www | Apache License 2.0 |
idea/idea-completion/testData/basic/common/smartCast/SmartCastForThis.kt | JakeWharton | 99,388,807 | false | null | // FIR_IDENTICAL
// FIR_COMPARISON
interface Expr {
public fun testThis() {
if (this is Num) {
this.<caret>
}
}
}
class Num(val toCheck : Int) : Expr
// EXIST: toCheck | 1 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 205 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/nimbusnote/data/model/WeatherData.kt | MarcelFN88 | 773,023,776 | false | {"Kotlin": 60673} | package com.example.nimbusnote.data.model
/**
* Enthält detaillierte Wetterdaten für einen spezifischen Ort.
*
* @property coord Die geografischen Koordinaten des Ortes, für den die Wetterdaten gelten.
* @property weather Eine Liste von `Weather`-Objekten, die die allgemeinen Wetterbedingungen beschreiben.
* @pro... | 0 | Kotlin | 0 | 0 | 222a165f6297b4597a97af7b09792a7eae984ce6 | 978 | NimbusNote | MIT License |
code/codeplugin/transform/src/main/java/com/qxml/transform/generate/CreateClassFile.kt | duduhuang88 | 375,209,225 | false | null | package com.qxml.transform.generate
import com.google.common.io.Files
import com.google.gson.Gson
import com.qxml.QxmlConfigExtension
import com.qxml.constant.Constants
import com.qxml.tools.GenClassNameTool
import com.qxml.tools.LayoutTypeNameCorrect
import com.qxml.tools.log.LogUtil
import com.qxml.transform.collect... | 3 | null | 14 | 77 | 7dd510e477f9d4658f27b09c486171b360a7165c | 11,080 | qxml | Apache License 2.0 |
app/src/main/java/ru/glindaqu/ejournal/viewModel/implementation/JournalViewModel.kt | glindaqu | 789,473,966 | false | {"Kotlin": 62964} | package ru.glindaqu.ejournal.viewModel.implementation
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import ru.glindaqu.ejournal.dataModels.AcademicPair
import ru.glindaqu.ejournal.dataModels.AcademicPairInfo
import ru.glindaqu.ejournal.dataModels.JournalRowData
import ru.glindaqu.ejournal.d... | 0 | Kotlin | 0 | 0 | bca1da2b4dbeebc72d445a9cfbe33971010ecd54 | 6,187 | EJournal | MIT License |
app/src/main/java/com/sedsoftware/yaptalker/presentation/base/navigation/NavigationPanelDelegateAdapter.kt | djkovrik | 98,050,611 | false | {"Gradle": 7, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 6, "Proguard": 14, "XML": 201, "Kotlin": 418, "Java Properties": 1, "JSON": 2, "Java": 2, "CSS": 1, "INI": 1, "YAML": 1} | package com.sedsoftware.yaptalker.presentation.base.navigation
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ViewHolder
import android.view.ViewGroup
import com.sedsoftware.yaptalker.R
import com.sedsoftware.yaptalker.presentation.base.adapter.YapEntityDelegateAdapte... | 0 | Kotlin | 4 | 9 | 465c34c3dc0dd0488b637073fddf6cd797e78613 | 2,515 | YapTalker | Apache License 2.0 |
kwamp-test-router-conversations/src/test/kotlin/com/laurencegarmstrong/kwamp/router/core/conversations/scripts/SubscribeAndUnsubscribe.kt | LaurenceGA | 142,422,320 | false | null | package com.laurencegarmstrong.kwamp.router.core.conversations.scripts
import com.laurencegarmstrong.kwamp.conversations.core.TestConnection
import com.laurencegarmstrong.kwamp.conversations.core.defaultRouter
import com.laurencegarmstrong.kwamp.core.Uri
import com.laurencegarmstrong.kwamp.core.messages.Subscribe
impo... | 0 | Kotlin | 2 | 12 | aac34f83adc1fcc753637e088a75d2e84997a67a | 1,551 | kwamp | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/visitscheduler/dto/visitnotification/NotificationGroupDto.kt | ministryofjustice | 409,259,375 | false | {"Kotlin": 1555306, "PLpgSQL": 154405, "FreeMarker": 14114, "Dockerfile": 1541, "Shell": 238} | package uk.gov.justice.digital.hmpps.visitscheduler.dto.visitnotification
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull
import uk.gov.justice.digital.hmpps.visitscheduler.dto.... | 4 | Kotlin | 2 | 6 | e2166e8bf546d8792c56ecb3d8d4d838ce63a7c2 | 831 | visit-scheduler | MIT License |
src/main/java/com/matamercer/microblog/storage/StorageException.kt | MataMercer | 255,196,856 | false | {"Kotlin": 166973, "Dockerfile": 626} | package com.matamercer.microblog.storage
open class StorageException : RuntimeException {
constructor(message: String?) : super(message)
constructor(message: String?, cause: Throwable?) : super(message, cause)
} | 8 | Kotlin | 2 | 2 | 5af13938afc405b398e1589a4a9cac2040556910 | 220 | matablog | MIT License |
sample/src/main/java/com/zhihu/matisse/sample/SampleActivity.kt | REBOOTERS | 127,521,767 | false | null | /*
* Copyright 2017 Zhihu Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 3 | null | 7 | 30 | f7fcf8548eda01acbc37aa02fde08ced85330018 | 11,204 | Matisse | Apache License 2.0 |
processors/crypto-processor/src/integrationTest/kotlin/net/corda/processors/crypto/tests/CryptoProcessorTests.kt | corda | 346,070,752 | false | null | package net.corda.processors.crypto.tests
import com.typesafe.config.ConfigRenderOptions
import net.corda.avro.serialization.CordaAvroSerializationFactory
import net.corda.crypto.cipher.suite.CipherSchemeMetadata
import net.corda.crypto.cipher.suite.SignatureSpecImpl
import net.corda.crypto.cipher.suite.SignatureSpecs... | 82 | null | 9 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 39,202 | corda-runtime-os | Apache License 2.0 |
app/src/main/java/com/capyreader/app/ui/settings/panels/UnreadSortOrderSelect.kt | jocmp | 610,083,236 | false | null | package com.capyreader.app.ui.settings
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import com.capyreader.app.R
import com.jocmp.capy.articles.UnreadSortOrder
@Composable
fun UnreadSortOrderSelect(
selected: UnreadSortOrder,
update: (UnreadSortOrder) -> Unit = {},
)... | 33 | null | 4 | 147 | 196690b776eebdecd4562e357a629277fec9cfe9 | 828 | capyreader | MIT License |
src/test/kotlin/ru/yoomoney/gradle/plugins/backend/kotlin/KotlinPluginTest.kt | yoomoney | 334,236,333 | false | null | package ru.yoomoney.gradle.plugins.backend.kotlin
import org.gradle.testkit.runner.TaskOutcome
import org.hamcrest.CoreMatchers
import org.hamcrest.MatcherAssert
import org.junit.Before
import org.junit.Test
import ru.yoomoney.gradle.plugins.backend.build.AbstractPluginTest
import java.nio.file.Files
/**
* @author V... | 0 | null | 2 | 3 | 9cd5e40a523bf67a089b4c1b5746d8ce20cc13e7 | 4,171 | java-plugin | MIT License |
app/src/main/java/com/anytypeio/anytype/ui/sets/ObjectSetIconPickerFragment.kt | anyproto | 647,371,233 | false | {"Kotlin": 10338336, "Java": 69306, "Shell": 11187, "Makefile": 1334} | package com.anytypeio.anytype.ui.sets
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_utils.ext.argBoolean
import com.anytypeio.anytype.core_utils.ext.setVisible
import com.anytypeio.anytype.di.commo... | 35 | Kotlin | 30 | 356 | fd94eba92c6c09d0315cf7e2c3620f0e5422c9f1 | 1,463 | anytype-kotlin | RSA Message-Digest License |
app/src/main/java/com/wjx/android/wanandroidmvvm/ui/collect/repository/CollectRepository.kt | LoveLifeEveryday | 258,932,329 | true | {"Kotlin": 306312} | package com.wjx.android.wanandroidmvvm.ui.collect.repository
import androidx.lifecycle.MutableLiveData
import com.wjx.android.wanandroidmvvm.ui.common.repository.ArticleRepository
import com.wjx.android.wanandroidmvvm.base.observer.BaseObserver
import com.wjx.android.wanandroidmvvm.network.response.BaseResponse
import... | 3 | null | 44 | 3 | c681db14548fce716cd5baab31bf704ce344bf1b | 2,164 | WanAndroidMVVM | Apache License 2.0 |
feature/edittask/src/main/java/easydone/feature/edittask/EditTaskViewModel.kt | kamerok | 192,063,678 | false | {"Kotlin": 200991} | package easydone.feature.edittask
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import easydone.core.domain.DomainRepository
import easydone.core.domain.model.Markers
import easydone.core.domain.model.Task
import easydone.core.domain.model.TaskTemplate
import kotlinx.coroutines.Experimen... | 0 | Kotlin | 0 | 4 | 55b69474c7cc421c084bba5896b31d38eee0bc24 | 6,374 | EasyDone | Apache License 2.0 |
src/me/anno/utils/test/FindWords.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.utils.test
import org.apache.logging.log4j.LogManager
import kotlin.math.min
val minLength = 4
fun main() {
// with a dictionary, it could find words automatically
// so it can just display all substrings in the field nicely,
// which is already a great help
/*findWords(
listO... | 0 | Kotlin | 1 | 8 | 421ba71c93c2b660476f96ffb6f4332fa07bd2b3 | 3,372 | RemsStudio | Apache License 2.0 |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/TriangleCenter.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: TriangleCenter
*
* Full name: System`TriangleCenter
*
* TriangleCenter[tri, type] gives... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,101 | mathemagika | Apache License 2.0 |
viewer/src/main/java/com/viewer/ListActivity.kt | adarshsingh994 | 282,007,779 | false | null | package com.viewer
import android.app.Activity
import android.content.ContentResolver
import android.content.Intent
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
import android.provider.MediaS... | 0 | Kotlin | 0 | 0 | 3c7fef601898f9a32142653bdd634d19e15157df | 7,900 | Viewer | Apache License 2.0 |
src/main/kotlin/Versioning.kt | kordlib | 624,827,432 | false | {"Kotlin": 12810} | package dev.kord.gradle.tools
import dev.kord.gradle.tools.util.libraryVersion
import org.gradle.api.Project
import org.gradle.api.provider.Provider
/**
* This uses [Project.afterEvaluate] to account for changes to [KordExtension.mainBranchName] which is used by
* [libraryVersion].
*/
internal fun Project.applyVer... | 0 | Kotlin | 0 | 1 | 2eb93e6e995c38cef65af41604305f806a7c755a | 522 | gradle-tools | MIT License |
src/main/kotlin/ru/yandex/money/tools/grafana/dsl/metrics/Metrics.kt | arodrime | 176,972,313 | true | {"Kotlin": 92104, "Shell": 5947, "Batchfile": 2183, "Groovy": 25} | package ru.yandex.money.tools.grafana.dsl.metrics
import org.json.JSONArray
import ru.yandex.money.tools.grafana.dsl.json.Json
import ru.yandex.money.tools.grafana.dsl.json.JsonArray
/**
* Metrics collection.
*
* @author Dmitry Komarov (komarovdmitry@yamoney.ru)
* @since 7/23/18
*/
class Metrics(dashboardMetrics... | 0 | Kotlin | 0 | 0 | 0eca3e89a579da88fe1ccd4f4794ff114fef7f3d | 400 | grafana-dashboard-dsl | MIT License |
kotlin-leetcode/src/main/kotlin/io/github/dreamylost/Leetcode_1457.kt | jxnu-liguobin | 123,690,567 | false | null | /* Licensed under Apache-2.0 @梦境迷离 */
package io.github.dreamylost
/**
* 1457. 二叉树中的伪回文路径
*
* 给你一棵二叉树,每个节点的值为 1 到 9 。我们称二叉树中的一条路径是 「伪回文」的,当它满足:路径经过的所有节点值的排列中,存在一个回文序列。
* 请你返回从根到叶子节点的所有路径中 伪回文 路径的数目。
* @see [[https://github.com/jxnu-liguobin]]
* @author 梦境迷离
* @since 2020-10-07
* @version 1.0
*/
class Leet... | 13 | null | 189 | 534 | a97159e99fc6592bec5032d18391d18b84708175 | 1,490 | Java-Learning-Summary | Apache License 2.0 |
brightcove-exoplayer-kotlin/BasicSsaiSampleApp/src/main/java/com/brightcove/ssai/sample/BasicSsaiSampleAppActivity.kt | BrightcoveOS | 14,517,858 | false | {"Java": 197778, "Kotlin": 77053} | package com.brightcove.ssai.sample
import android.os.Bundle
import android.util.Log
import com.brightcove.player.Sdk
import com.brightcove.player.appcompat.BrightcovePlayerActivity
import com.brightcove.player.edge.Catalog
import com.brightcove.player.edge.VideoListener
import com.brightcove.player.event.Event
import ... | 2 | Java | 131 | 132 | 050f9e72cdb7957b9a0a0187fa35c1ca731e40bb | 4,964 | android-player-samples | Apache License 2.0 |
api/src/main/kotlin/com/ford/internalprojects/peoplemover/person/Person.kt | FordLabs | 260,303,075 | false | {"TypeScript": 1000307, "Kotlin": 534941, "SCSS": 109291, "JavaScript": 11743, "HTML": 3768, "Shell": 677} | /*
* Copyright (c) 2021 Ford Motor Company
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 24 | TypeScript | 6 | 7 | 8c9a335048d40dd50612de11633b48a73f337535 | 2,169 | peoplemover | Apache License 2.0 |
fns-hl7-pipeline/fn-receiver-debatcher/src/test/kotlin/DebatcherTest.kt | CDCgov | 510,836,864 | false | {"Kotlin": 750786, "Scala": 208820, "Python": 44391, "Java": 18075, "Batchfile": 11894, "Go": 8661, "JavaScript": 7609, "Groovy": 4230, "HTML": 2177, "Shell": 1362, "CSS": 979} | import gov.cdc.dex.azure.EventHubMetadata
import gov.cdc.dex.hl7.Function
import gov.cdc.dex.hl7.Function.Companion.UTF_BOM
import gov.cdc.dex.hl7.ReceiverProcessMetadata
import gov.cdc.dex.metadata.*
import gov.cdc.dex.util.DateHelper.toIsoString
import gov.cdc.dex.util.StringUtils.Companion.hashMD5
import gov.cdc.dex... | 122 | Kotlin | 14 | 9 | dccefbb2c3cabc5170d09f9cc20f66792af179b6 | 9,475 | data-exchange-hl7 | Apache License 2.0 |
app/src/main/java/ru/iteco/fmhandroid/ui/NewsListFragment.kt | YuriKopshev | 594,466,644 | false | null | package ru.iteco.fmhandroid.ui
import android.app.AlertDialog
import android.os.Bundle
import android.view.View
import android.widget.PopupMenu
import android.widget.Toast
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.setFragmentResultListener
import androidx.fr... | 1 | null | 1 | 1 | 8ef698dc36b6621a250c0d8826e4f45677acc7b2 | 7,025 | QA_middle_finalWork | Apache License 2.0 |
app/src/main/java/pl/marianjureczko/poszukiwacz/permissions/PermissionActivity.kt | mjureczko | 720,519,840 | false | {"Kotlin": 290233} | package pl.marianjureczko.poszukiwacz.permissions
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import pl.marianjureczko.poszukiwacz.shared.ActivityWithAdsAndBackButton
abstract class PermissionActivity : ActivityW... | 22 | Kotlin | 0 | 1 | 7f74a19dac0ebbbb6cc70a453c674a728946e686 | 3,430 | maly-poszukiwacz-skarbow | W3C Software Notice and License (2002-12-31) |
console-framework-client/src/main/java/io/axoniq/console/framework/client/ServerProcessorReporter.kt | AxonIQ | 682,516,729 | false | {"Kotlin": 203036, "Java": 34400} | /*
* Copyright (c) 2022-2024. AxonIQ B.V.
*
* 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... | 4 | Kotlin | 0 | 0 | fc1bcaf4baf0bdcf9fc6a00c1114e19c0ed3635f | 2,212 | console-framework-client | Apache License 2.0 |
app/src/main/java/com/example/mycheesecakes/data/network/api/model/ApiQuizResult.kt | dfirestone21 | 389,194,985 | false | null | package com.example.mycheesecakes.data.network.api.model
import com.google.gson.annotations.SerializedName
data class ApiQuizResult(
@SerializedName("createdTime")
val createdTime: String? = null,
@SerializedName("fields")
val fields: Fields?,
@SerializedName("id")
val id: String? = null
) {
... | 0 | Kotlin | 0 | 0 | 8f87fe6439e9256d90d789bf453be802a26241b4 | 656 | CheesecakeApp | MIT License |
build-logic/src/main/kotlin/AndroidConfig.kt | nisrulz | 772,818,568 | false | {"Kotlin": 16370} | internal object BuildSdkInfo {
const val COMPILE_SDK_VERSION = 34
const val MIN_SDK_VERSION = 21
const val TARGET_SDK_VERSION = 34
const val JVM_TARGET = 8
// https://developer.android.com/jetpack/androidx/releases/compose-kotlin#pre-release_kotlin_compatibility
const val COMPOSE_COMPILER_VERSI... | 1 | Kotlin | 0 | 2 | c5fe65e6316c3572026c102ee4c59d6b7931f801 | 1,174 | device-type-ktx | Apache License 2.0 |
kmp-modifier/src/main/kotlin/com/intellij/packageSearch/mppDependencyUpdater/dsl/KotlinDslProvider.kt | JetBrains | 724,588,585 | false | {"Kotlin": 575593, "Java": 146346, "HTML": 1589, "Batchfile": 209, "Shell": 86} | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.packageSearch.mppDependencyUpdater.dsl
import com.android.tools.idea.gradle.dsl.api.GradleBuildModel
import com.android.tools.idea.gradle.dsl.api.util.GradleDslModel
import com.... | 1 | Kotlin | 0 | 9 | 269d18727cc51aa446478c3aac86a6e605f1d481 | 1,803 | package-search-intellij-plugin | Apache License 2.0 |
libs/serialization/json-validator/src/main/kotlin/net/corda/common/json/validation/WrappedJsonSchema.kt | corda | 346,070,752 | false | {"Kotlin": 20579329, "Java": 307325, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.common.json.validation
import com.networknt.schema.JsonSchema
data class WrappedJsonSchema(val schema: JsonSchema) | 10 | Kotlin | 26 | 67 | b7b4125bd3fbe9869c0f0b1ca7e286ca865901ab | 134 | corda-runtime-os | Apache License 2.0 |
src/main/kotlin/br/com/iphoneswapcenter/config/WebServerConfiguration.kt | harlanpierre | 743,768,553 | false | {"Kotlin": 60633} | package br.com.iphoneswapcenter.config
import org.springframework.beans.factory.annotation.Value
import org.springframework.context.annotation.Configuration
import org.springframework.web.servlet.config.annotation.CorsRegistry
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@Configuration
cl... | 0 | Kotlin | 0 | 0 | 0e031141137f03e344e6e83e87599a6afdfd277c | 754 | spring-boot-and-kotlin-iphoneswapcenter | Apache License 2.0 |
_pending/android-super-hero-app/features/characters/characters-framework/src/main/java/com/carlosrd/superhero/data/characters/framework/room/SuperHeroRoomDatabase.kt | luannguyen252 | 371,359,679 | false | null | package com.carlosrd.superhero.data.characters.framework.room
import androidx.room.Database
import androidx.room.RoomDatabase
import com.carlosrd.superhero.data.characters.datasource.local.room.dao.CharacterDao
import com.carlosrd.superhero.data.characters.datasource.local.room.dao.CharactersCacheControlDao
import com... | 0 | Kotlin | 0 | 1 | a9b5aef8662a1808042c820c3dfac02e1efd5800 | 834 | my-android-journey | MIT License |
billing-v6/src/test/java/io/appmetrica/analytics/billingv6/impl/ProductTypeParserTest.kt | appmetrica | 650,662,094 | false | null | package io.appmetrica.analytics.billingv6.impl
import com.android.billingclient.api.BillingClient
import io.appmetrica.analytics.billinginterface.internal.ProductType
import io.appmetrica.analytics.billingv6.impl.ProductTypeParser.parse
import io.appmetrica.analytics.testutils.CommonTest
import org.assertj.core.api.As... | 1 | null | 5 | 54 | 472d3dfb1e09f4e7f35497e5049f53287ccce7d1 | 1,246 | appmetrica-sdk-android | MIT License |
Kotlin Koans/Collections/Fold/Solution.kt | Kotlin | 50,311,744 | false | null | package collections.fold
import collections.*
fun Shop.getSetOfProductsOrderedByEveryCustomer(): Set<Product> {
/*<taskWindow>*/val allProducts = customers.flatMap { it.orders.flatMap { it.products }}.toSet()
return customers.fold(allProducts, {
orderedByAll, customer ->
orderedByAll.intersect... | 14 | Kotlin | 18 | 55 | 9028a7b3d5c7fc6f9b669deee4596f97f4272b8b | 395 | kotlin-koans-edu-obsolete | MIT License |
server/src/main/kotlin/io/tuzzy/portal/domain/DUser.kt | maxtuzz | 225,085,025 | false | {"TypeScript": 118399, "Kotlin": 59202, "HTML": 1815, "CSS": 358, "Dockerfile": 207} | //package io.tuzzy.portal.domain
//
//import javax.persistence.Column
//import javax.persistence.Entity
//import javax.persistence.Table
//
//@Entity
//@Table(name = "user")
//class DUser(
// // Users external id
// extId: String,
// username: String,
// email: String,
// pictureUrl: String? = null
//) :... | 22 | TypeScript | 0 | 2 | 60da9d67452bf040d8659a7e4cfb6e237602dc5b | 590 | tuzhub | Apache License 2.0 |
ncalcapp/src/main/java/io/jopitel/android/ncalc/napp/MainActivity.kt | countrydev76project | 165,411,056 | false | {"Gradle": 21, "Java Properties": 1, "Shell": 2, "Text": 1, "Ignore List": 6, "Batchfile": 1, "Markdown": 1, "Proguard": 5, "Java": 12, "Kotlin": 21, "XML": 33, "CMake": 2, "C++": 2, "INI": 1} | package io.jopitel.android.ncalc.napp
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import io.jopitel.android.ncalc.ncore.hjCalcMain
import io.jopitel.android.ncalc.nnative.hjCalcNative
import io.jopitel.android.ncalc.nwrap.hjCalcWrapMain
class MainActivity : AppComp... | 1 | null | 1 | 1 | 1a32997bb3eb057fb8e29a82fd22af65d0a5d3b4 | 832 | ncalc-android | MIT License |
examples/GiantExplorer/giant-explorer/src/main/java/com/storyteller_f/giant_explorer/dialog/TaskConfirmDialog.kt | storytellerF | 576,917,592 | false | null | package com.storyteller_f.giant_explorer.dialog
import android.os.Parcelable
import android.widget.LinearLayout
import android.widget.TextView
import com.storyteller_f.common_ui.SimpleDialogFragment
import com.storyteller_f.common_ui.setFragmentResult
import com.storyteller_f.common_ui.setOnClick
import com.storytelle... | 3 | null | 0 | 2 | 0b088479098ad02b083f6396f061f2988f3f817d | 1,503 | common-ui-list-structure | MIT License |
breeze-dsl/src/main/kotlin/dsl/cmd/CmdDslExtensions.kt | DragonKnightOfBreeze | 205,561,109 | false | null | // Copyright (c) 2020-2021 DragonKnightOfBreeze Windea
// Breeze is blowing...
@file:JvmName("CmdDslExtensions")
package icu.windea.breezeframework.dsl.cmd
@CmdDslMarker
inline fun cmdDsl(block: CmdDslDocument.() -> CharSequence): CmdDslDocument {
return CmdDslDocument().apply { text = block() }
}
@CmdDslMarker
fu... | 1 | null | 1 | 8 | e067f9e676fbb2fe2d4b5076e522edea63ce5a0f | 1,388 | Breeze-Framework | MIT License |
src/test/kotlin/dynamicProgramming/UnboundedKnapsackTest.kt | TheAlgorithms | 177,334,737 | false | null | package dynamicProgramming
import org.junit.Test
class UnboundedKnapsackTest {
@Test
fun testBothWeightAndValueArrayHasDifferentValuesGivesExpectedOutput() {
assert(unboundedKnapsack(5, intArrayOf(1, 2, 3), intArrayOf(20, 50, 30), 3) == 120)
}
@Test
fun testBothWeightAndValueArrayHasSameV... | 57 | Kotlin | 293 | 977 | e57a8888dec4454d39414082bbe6a672a9d27ad1 | 714 | Kotlin | MIT License |
src/test/kotlin/net/starlegacy/feature/multiblock/particleshield/ShieldMultiblockClass08iTest.kt | hafarooki | 437,384,015 | false | null | package net.starlegacy.feature.multiblock.particleshield
import net.starlegacy.feature.multiblock.Multiblock
import net.starlegacy.feature.progression.advancement.SLAdvancement
internal class ShieldMultiblockClass08iTest : ShieldMultiblockTest() {
override fun getMultiblock(): Multiblock = ShieldMultiblockClass08... | 0 | Kotlin | 16 | 4 | c830eb40180c935e8bfff599da0f9310eeccfb5c | 468 | StarLegacy | MIT License |
archive/src/main/kotlin/org/openrs2/archive/key/JsonKeyDownloader.kt | openrs2 | 315,027,372 | false | null | package org.openrs2.archive.key
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.future.await
import kotlinx.coroutines.withContext
import org.openrs2.crypto.XteaKey
import org.openrs2.http.checkStatusCode
import java.net.URI
import java.net.http.HttpClient
import java.net.http.HttpRequest
import java.n... | 0 | Kotlin | 2 | 8 | 12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b | 1,017 | openrs2 | ISC License |
common/core/src/main/java/com/cryart/sabbathschool/core/navigation/Destination.kt | Adventech | 65,243,816 | false | null | /*
* Copyright (c) 2021. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... | 7 | null | 49 | 80 | e7bab11541edea65864616c7e8c72569dc8b810a | 2,153 | sabbath-school-android | MIT License |
app/src/main/java/com/example/android/codelabs/paging/ui/SearchRepositoriesActivity.kt | mohammadjannaser | 356,254,420 | false | null | /*
* 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 | 0 | 8e0d058ff85a10a35d876553f07ad3c9035cb9f1 | 6,345 | android-paging-master | Apache License 2.0 |
protocol/push/src/main/kotlin/com/walletconnect/push/common/data/jwt/PushJwtClaims.kt | WalletConnect | 435,951,419 | false | null | package com.walletconnect.push.common.data.jwt
import com.walletconnect.foundation.util.jwt.JwtClaims
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class PushSubscriptionJwtClaim(
@Json(name = "iss") override val issuer: String,
@Json(name = "sub") ... | 147 | Kotlin | 59 | 157 | e34c0e716ca68021602463773403d8d7fd558b34 | 649 | WalletConnectKotlinV2 | Apache License 2.0 |
src/main/kotlin/me/devoxin/flight/internal/utils/MessageCommandUtil.kt | mixtape-oss | 331,475,215 | true | {"Kotlin": 120308} | package me.devoxin.flight.internal.utils
import me.devoxin.flight.api.annotations.Name
import me.devoxin.flight.api.annotations.RateLimit
import me.devoxin.flight.api.command.Context
import me.devoxin.flight.api.command.message.MessageCommandFunction
import me.devoxin.flight.api.command.message.MessageContext
import m... | 0 | Kotlin | 0 | 3 | 70c2ba879fe1d67959d9c125479cced9dea38ed2 | 5,778 | flight | Apache License 2.0 |
common/common_base/src/main/java/com/cl/common_base/BaseBinding.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 3795613, "Java": 743721} | package com.cl.common_base
import androidx.databinding.ViewDataBinding
interface BaseBinding<VB : ViewDataBinding> {
fun VB.initBinding()
} | 0 | Kotlin | 0 | 0 | 247e94565fc8418fc8c43e543dc52dcd541842b4 | 145 | abby | Apache License 2.0 |
modo-compose/src/main/java/com/github/terrakok/modo/ContainerScreen.kt | ikarenkov | 336,628,876 | false | null | package com.github.terrakok.modo
import android.os.Parcel
import android.os.Parcelable
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ProvidedValue
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.Modifier
val LocalContainerScreen = staticCompositionLocal... | 9 | null | 18 | 301 | 6dff8e7281e7a8a04bb19de997037192530f704a | 4,838 | Modo | The Unlicense |
carp.deployment.core/src/commonTest/kotlin/dk/cachet/carp/deployment/infrastructure/DeploymentServiceRequestsTest.kt | cortinico | 333,548,384 | true | {"Kotlin": 877308, "TypeScript": 30334} | package dk.cachet.carp.deployment.infrastructure
import dk.cachet.carp.common.DateTime
import dk.cachet.carp.common.UUID
import dk.cachet.carp.common.ddd.ServiceInvoker
import dk.cachet.carp.deployment.application.DeploymentService
import dk.cachet.carp.deployment.application.DeploymentServiceMock
import dk.cachet.car... | 7 | null | 0 | 0 | 9ed082ee919066a0e4774863cf7ecc3b6d00daf1 | 2,345 | carp.core-kotlin | MIT License |
src/main/java/xyz/nulldev/stubit/StubIt.kt | null-dev | 77,108,491 | false | null | package xyz.nulldev.stubit
import com.github.javaparser.JavaParser
import com.github.javaparser.ast.CompilationUnit
import com.github.javaparser.ast.body.ConstructorDeclaration
import com.github.javaparser.ast.body.FieldDeclaration
import com.github.javaparser.ast.body.MethodDeclaration
import com.github.javaparser.as... | 1 | null | 1 | 1 | b95a174f898767217bcbe544b2293a8cadc1482c | 5,551 | stub-it | MIT License |
app/src/main/java/com/feechan/footballapps/presenter/matches/nextmatch/NextMatchContract.kt | feechanz | 194,433,053 | false | null | package com.feechan.footballapps.presenter.matches.nextmatch
import com.feechan.footballapps.base.BasePresenter
import com.feechan.footballapps.base.BaseView
import com.feechan.footballapps.data.network.response.Event
interface NextMatchContract {
interface View : BaseView {
fun loadMatchData(data: List<... | 0 | Kotlin | 0 | 0 | d83b5a3c00ab005d7daaa061f12dd8fb59a76941 | 423 | FootballApps | Apache License 2.0 |
brazilian-utils-koltin/src/main/java/br/com/lib/brazilian_utils_koltin/currency/CurrencyUtil.kt | letsgosh | 213,450,978 | false | null | package br.com.lib.brazilian_utils_koltin.currency
import java.math.BigDecimal
import java.text.NumberFormat
import java.util.*
object CurrencyUtil {
fun formatRealCurrency(value: Double)=
NumberFormat.getCurrencyInstance(Locale("pt", "BR"))
.format(value)
fun formatRealCurrency(value: B... | 0 | Kotlin | 1 | 1 | cdfaad432182085117dbda92934079da45ab019f | 552 | brazilian-utils-kotlin | MIT License |
src/main/kotlin/com/hotels/intellij/plugins/network/Preferences.kt | ExpediaGroup | 97,828,016 | false | {"Kotlin": 52256} | /*
* Copyright 2017 Expedia Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 5 | Kotlin | 4 | 3 | 7e0f0d8860c905077b4a4c01240e74dfd52bd082 | 818 | network-plugin | Apache License 2.0 |
tools/entry-generator/src/main/kotlin/godot/tools/entry_generator/parser/XMLParser.kt | mrakakuy | 143,293,552 | false | {"Kotlin": 282011, "C": 6051, "Shell": 1222} | package godot.tools.entry_generator.parser
import godot.tools.entry_generator.model.*
import org.w3c.dom.*
import org.xml.sax.InputSource
import java.io.StringReader
import javax.xml.parsers.DocumentBuilderFactory
class XMLParser : Parser {
override fun parseConfig(content: String): Classes {
val reader ... | 5 | Kotlin | 12 | 58 | 8079212873d5214ead4b99ce284f56126926a207 | 3,161 | kotlin-godot-wrapper | Apache License 2.0 |
app/src/main/java/com/mrebollob/situmdemo/utils/Extensions.kt | mrebollob | 94,177,439 | false | null | package com.mrebollob.situmdemo.utils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.support.v4.content.ContextCompat
import android.view.View
import android.widget.Toast
import com.google.android.gms.maps.model.BitmapDescriptor
import com.google.android.gms... | 1 | Kotlin | 0 | 0 | d614565cb5ced777ee8f830f4be75d5cae143ec8 | 1,134 | situm-demo | Apache License 2.0 |
android/src/main/java/deckyfx/reactnative/printer/worker/JobBuilder.kt | deckyfx | 663,502,538 | false | {"Kotlin": 283454, "TypeScript": 61671, "Java": 7149, "C": 5445, "Ruby": 3954, "JavaScript": 3698, "Objective-C": 2368, "Objective-C++": 1066, "Makefile": 817, "CMake": 317, "Swift": 282, "Shell": 89} | package deckyfx.reactnative.printer.worker
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import com.facebook.react.bridge.ReadableMap
import deckyfx.reactnative.p... | 0 | Kotlin | 0 | 0 | 4edce0748f1a2e647eca5648c533b8b6a588ba77 | 5,189 | react-native-printer | MIT License |
features/login/impl/src/main/kotlin/io/element/android/features/login/impl/screens/confirmaccountprovider/ConfirmAccountProviderStateProvider.kt | element-hq | 546,522,002 | false | null | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 263 | null | 129 | 955 | 31d0621fa15fe153bfd36104e560c9703eabe917 | 1,373 | element-x-android | Apache License 2.0 |
compiler/tests-spec/testData/diagnostics/linked/overload-resolution/building-the-overload-candidate-set-ocs/call-with-an-explicit-receiver/call-with-an-explicit-type-receiver/p-3/pos/2.1.fir.kt | JetBrains | 3,432,266 | false | null | // !DIAGNOSTICS: -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT
/*
* TESTCASE NUMBER: 1
* UNEXPECTED BEHAVIOUR
* ISSUES: KT-39129
*/
fun case1() {
C1.<!UNRESOLVED_REFERENCE!>V<!>()
C1.Companion.<!DEBUG_INFO_CALL("fqName: C1.Companion.... | 157 | null | 5563 | 44,965 | e6633d3d9214402fcf3585ae8c24213a4761cc8b | 1,302 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/chessgo/frontend/navigation/AppNavHost.kt | buldosik | 709,015,549 | false | {"Kotlin": 179758} | package com.example.chessgo.frontend.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
@Composable
fun AppNavHost(isLogged:... | 0 | Kotlin | 0 | 1 | a20f0f07c34daffce542c3c66e13c8ffa0e66fee | 1,130 | Chess-Go | MIT License |
src/aws/lambdas/incremental_distribution/cta/src/main/java/uk/nhs/nhsx/keyfederation/download/KeyFederationDownloadConfig.kt | turlodales | 289,705,241 | true | {"Kotlin": 1762543, "HCL": 516174, "Ruby": 402118, "Python": 95997, "HTML": 10538, "Java": 6060, "Shell": 5028, "Dockerfile": 3728, "Makefile": 780, "JavaScript": 554} | package uk.nhs.nhsx.keyfederation.download
import uk.nhs.nhsx.core.Environment
import uk.nhs.nhsx.core.Environment.Companion.WORKSPACE
import uk.nhs.nhsx.core.Environment.EnvironmentKey
import uk.nhs.nhsx.core.FeatureFlag
import uk.nhs.nhsx.core.StandardSigning
import uk.nhs.nhsx.core.WorkspaceFeatureFlag
import uk.nh... | 0 | Kotlin | 0 | 0 | 8c67d6e23c7fc79f039c4012238d82131900a4d4 | 3,400 | covid19-app-system-public | MIT License |
src/com/price_of_command/conditions/Death.kt | atlanticaccent | 409,181,802 | false | null | package com.price_of_command.conditions
import com.fs.starfarer.api.campaign.SectorEntityToken
import com.fs.starfarer.api.characters.PersonAPI
import com.fs.starfarer.api.fleet.FleetMemberAPI
import com.price_of_command.clock
import com.price_of_command.memorial.DeathData
class Death(target: PersonAPI, startDate: Lo... | 0 | Kotlin | 0 | 0 | 5bed23562e783c79d9396674dc94e7f8fa237cfa | 826 | officer-expansion | The Unlicense |
app/src/main/java/com/pebbles/obsidiancompanion/OCWidget.kt | pebblesoft | 547,498,004 | false | {"Kotlin": 6352} | package com.pebbles.obsidiancompanion
import androidx.compose.runtime.Composable
import androidx.glance.appwidget.GlanceAppWidget
import androidx.glance.text.Text
class OCWidget: GlanceAppWidget() {
@Composable
override fun Content() {
Text("hi")
}
} | 0 | Kotlin | 0 | 0 | d7bdc63568535730bfec7b3645efb270354a1ef5 | 273 | obsidian-viewer | MIT License |
ground/src/main/java/com/google/android/ground/persistence/remote/firebase/FirebaseMessagingService.kt | google | 127,777,820 | false | null | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 235 | null | 115 | 245 | bb5229149eb3687923a8391f30f7279e477562a8 | 1,830 | ground-android | Apache License 2.0 |
app/src/main/java/ph/mart/shopmart/di/RepositoryModule.kt | jaymart7 | 271,985,987 | false | null | package ph.mart.shopmart.di
import android.content.SharedPreferences
import ph.mart.shopmart.data.repository.account.AccountRepository
import ph.mart.shopmart.data.repository.account.AccountRepositoryImpl
import ph.mart.shopmart.data.repository.cart.CartRepository
import ph.mart.shopmart.data.repository.cart.CartRepos... | 0 | Kotlin | 1 | 0 | 146870ff030023a15f66e303ece5dfa4717f0c79 | 1,547 | shop-mart | MIT License |
android/quest/src/main/java/org/smartregister/fhircore/quest/ui/profile/components/ChangeManagingEntityView.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021-2024 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 192 | null | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 10,298 | fhircore | Apache License 2.0 |
node/src/main/kotlin/net/corda/node/services/transactions/ValidatingNotaryFlow.kt | tomtau | 141,038,868 | false | null | package net.corda.node.services.transactions
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.contracts.TimeWindow
import net.corda.core.contracts.TransactionVerificationException
import net.corda.core.flows.*
import net.corda.core.internal.ResolveTransactionsFlow
import net.corda.core.internal.vali... | 1 | null | 1 | 1 | f524ed9af7027004abfa91c0bd3a31d645ef0b3b | 2,949 | corda | Apache License 2.0 |
app/src/main/java/dev/zabolotskikh/authguard/domain/model/AppState.kt | kanefron5 | 635,099,229 | false | null | package dev.zabolotskikh.authguard.domain.model
data class AppState(
val isStarted: Boolean,
val isAuthenticated: Boolean,
val isPrivateMode: Boolean
)
| 2 | Kotlin | 0 | 0 | 3c4e206b6c24017599ebbab8c0fd99f5a1fa687a | 165 | authguard | MIT License |
libtulip/src/jsMain/kotlin/com/tajmoti/multiplatform/store/TStoreFactory.kt | Tajmoti | 391,138,914 | false | null | package com.tajmoti.multiplatform.store
import com.tajmoti.libtulip.TulipConfiguration
import com.tajmoti.libtulip.misc.job.NetworkResult
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
actual object TStoreFactory {
actual fun <Key : Any, Output : Any> createStore(
cache: TulipConfi... | 6 | Kotlin | 0 | 0 | 3ead4965a4a6febbd7bbd4f66dc75958b3c68ca5 | 977 | Tulip | MIT License |
ui/common/src/main/java/ly/david/ui/common/place/PlaceListItem.kt | lydavid | 458,021,427 | false | {"Kotlin": 1354694, "HTML": 674577, "Python": 3489, "Shell": 1543, "Ruby": 955} | package ly.david.ui.common.place
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ListItem
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.co... | 54 | Kotlin | 0 | 6 | 5e15119a3c55efa932e37afced1b56609e988fe6 | 3,950 | MusicSearch | Apache License 2.0 |
plugins/git4idea/src/git4idea/branch/GitCompareBranchesVirtualFileSystem.kt | hieuprogrammer | 284,920,751 | true | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package git4idea.branch
import com.google.gson.*
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.LocalF... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 2,201 | intellij-community | Apache License 2.0 |
src/main/kotlin/org/gradle/plugins/fsm/descriptor/WebAppComponents.kt | e-Spirit | 579,945,778 | false | {"Kotlin": 318290, "Java": 19302} | package org.gradle.plugins.fsm.descriptor
import com.espirit.moddev.components.annotations.WebAppComponent
import de.espirit.firstspirit.module.AbstractWebApp
import de.espirit.firstspirit.module.Configuration
import de.espirit.firstspirit.module.WebApp
import io.github.classgraph.AnnotationInfo
import io.github.class... | 0 | Kotlin | 0 | 0 | fb04820e6514d7e173d6a48e13d44b8a5a505959 | 12,147 | firstspirit-module-gradle-plugin | Apache License 2.0 |
app/src/main/java/com/hadiyarajesh/marvel_heroes/data/local/dao/ComicCharacterDao.kt | hadiyarajesh | 748,514,337 | false | null | package com.demo.marvel_heroes.data.local.dao
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Query
import androidx.room.Upsert
import com.demo.marvel_heroes.data.local.entity.ComicCharacterEntity
import com.demo.marvel_heroes.data.model.CharacterAndComics
... | 0 | null | 0 | 8 | cd7da79d3b567eff5c66dc3a701a9015cf90bd04 | 1,454 | marvel-heroes | MIT License |
src/main/kotlin/org/wahlen/spasecurity/dto/UserRegisterDTO.kt | owahlen | 712,925,882 | false | {"Kotlin": 62172} | package org.wahlen.spasecurity.dto
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.Email
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Size
data class UserRegisterDTO(
@Schema(example = "<EMAIL>")
@field:NotBlank
@field:Size(m... | 0 | Kotlin | 0 | 0 | 40f965547c0b9350cd9890052ef3348b52ec8fc8 | 728 | spa-security | Apache License 2.0 |
ModuleBase/src/main/java/simple/code/base/ui/BaseTabContainerFragment.kt | Danil4ever | 217,051,577 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "XML": 33, "Kotlin": 60, "Java": 2, "Proguard": 1} | package simple.code.base.ui
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import ru.terrakok.cicerone.Cicerone
import ru.terrakok.cicerone.Navigator
import ru.terrakok.cicerone.Rout... | 0 | Kotlin | 0 | 1 | d1925923043cfe7f9df94145b40811fae0dde8d2 | 3,281 | SampleProject | The Unlicense |
vocadb-apiclient-fixer/src/main/kotlin/mikufan/cx/vocadbapiclientfixer/VocaDbApiClientFixerApplication.kt | CXwudi | 368,331,904 | false | {"Git Config": 1, "OASv3-json": 1, "Text": 2, "Ignore List": 3, "Markdown": 170, "Shell": 4, "Gradle": 2, "INI": 4, "Batchfile": 2, "YAML": 6, "Java": 344, "XML": 2, "OASv3-yaml": 1, "Maven POM": 1, "Kotlin": 15} | package mikufan.cx.vocadbapiclientfixer
import mikufan.cx.vocadbapiclientfixer.service.MainService
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
@SpringBootApplication
@C... | 0 | Java | 0 | 0 | 605a2e74e8444f5ca3f2c12b5fc98e965cd1a973 | 540 | vocadb-openapi-java-client-autofixer | Do What The F*ck You Want To Public License |
src/main/kotlin/com/mystery2099/wooden_accents_mod/block/custom/enums/CoffeeTableTypes.kt | Mystery2099 | 661,436,370 | false | {"Kotlin": 284868, "Java": 16936} | package com.mystery2099.wooden_accents_mod.block.custom.enums
import net.minecraft.util.StringIdentifiable
/**
* Coffee table types
*
* @property string
* @constructor Create empty Coffee table types
*/
enum class CoffeeTableTypes(private val string: String) : StringIdentifiable {
/**
* Short
*
... | 0 | Kotlin | 0 | 0 | cbaadec822bd9bf876387663d5d4f502e9a2db87 | 633 | WoodenAccentsMod-1.19.4 | Creative Commons Zero v1.0 Universal |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/SetSharedFunction.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: SetSharedFunction
*
* Full name: System`SetSharedFunction
*
* SetSharedFunction[f , f ,... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 3,473 | mathemagika | Apache License 2.0 |
modelql-core/src/commonMain/kotlin/org/modelix/modelql/core/CountingStep.kt | modelix | 533,211,353 | false | {"Kotlin": 2236130, "JetBrains MPS": 274458, "TypeScript": 47718, "Java": 25036, "Gherkin": 7693, "JavaScript": 5004, "Mustache": 2915, "CSS": 2812, "Shell": 2420, "Dockerfile": 378, "Procfile": 76} | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 49 | Kotlin | 9 | 6 | 48aa04bf386063b4093424166a263cee7cc69983 | 1,683 | modelix.core | Apache License 2.0 |
sdk/sync/sync-android-java/src/commonMain/kotlin/com/twilio/sync/client/java/utils/CancellationTokenImpl.kt | twilio | 790,341,870 | false | {"Kotlin": 1150573, "Swift": 178357, "Python": 44263, "Java": 35577, "TypeScript": 26195, "Shell": 21097, "Rust": 5989, "Ruby": 4047, "Makefile": 1384, "Just": 734, "HTML": 533, "Objective-C": 462, "CSS": 331} | //
// Twilio Sync Client
//
// Copyright © Twilio, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
package com.twilio.sync.client.java.utils
internal fun CancellationToken(onCancel: () -> Unit): CancellationToken = CancellationTokenImpl(onCancel)
private class CancellationTokenImpl(private val on... | 0 | Kotlin | 1 | 4 | ac345352614263f7559cba66362bfe008155a3b0 | 403 | twilio-sync-sdk | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.