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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fontawesome/src/de/msrd0/fontawesome/icons/FA_B.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 1358935395f9254cab27852457e2aa6c58902e16 | 1,503 | fontawesome-kt | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_B.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 1358935395f9254cab27852457e2aa6c58902e16 | 1,503 | fontawesome-kt | Apache License 2.0 |
src/main/kotlin/com/example/gungjeonjegwa/domain/bread/data/dto/LikeItemActivityResponse.kt | gungjeonjegwa | 579,803,041 | false | null | package com.example.gungjeonjegwa.domain.bread.data.dto
class LikeItemActivityResponse(
val isLikeItem: Boolean
) {
} | 0 | Kotlin | 0 | 0 | 30a77ac8c8ec594a6d1267ae36df365f1622f250 | 122 | GGJG-Backend | MIT License |
jvm/src/main/kotlin/org/ionproject/core/programme/model/ProgrammeOffer.kt | i-on-project | 242,369,946 | false | null | package org.ionproject.core.programme.model
class ProgrammeOffer(
val id: Int,
val courseAcr: String,
val courseName: String,
val programmeId: Int,
val courseId: Int,
val termNumber: List<Int>,
val optional: Boolean
)
| 14 | Kotlin | 0 | 3 | 339407d56e66ec164ecdc4172347272d97cc26b3 | 247 | core | Apache License 2.0 |
community/community-ports-input/src/main/kotlin/org/orkg/community/input/compat.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2994730, "Cypher": 216833, "Python": 4881, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package org.orkg.community.input
interface ObservatoryUseCases : RetrieveObservatoryUseCase, CreateObservatoryUseCase, UpdateObservatoryUseCase,
DeleteObservatoryUseCase
| 0 | Kotlin | 1 | 5 | 0186bb4cfe4ef7116ba121327f13d9e4c2e9938a | 175 | orkg-backend | MIT License |
facilis/src/main/java/com/prembros/facilis/swiper/SwipeListener.kt | premacck | 144,760,443 | false | null | package com.prembros.facilis.swiper
import android.animation.*
import android.annotation.SuppressLint
import android.app.Activity
import android.util.Log
import android.view.*
import android.view.View.OnTouchListener
import android.view.animation.OvershootInterpolator
import androidx.interpolator.view.animation.FastOu... | 0 | Kotlin | 5 | 35 | 83b3f1fcba97f4305ba852985b76d932df0d97da | 11,046 | facilis | MIT License |
apps/student/src/main/java/com/instructure/student/mobius/assignmentDetails/submissionDetails/content/emptySubmission/ui/SubmissionDetailsEmptyContentView.kt | instructure | 179,290,947 | false | null | /*
* Copyright (C) 2019 - present Instructure, 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 requ... | 7 | null | 85 | 99 | 1bac9958504306c03960bdce7fbb87cc63bc6845 | 11,952 | canvas-android | Apache License 2.0 |
core/design/src/main/kotlin/edu/stanford/spezi/core/design/component/markdown/MarkdownParser.kt | StanfordSpezi | 787,513,636 | false | {"Kotlin": 659549, "Ruby": 1755, "Shell": 212} | package edu.stanford.spezi.core.design.component.markdown
import javax.inject.Inject
private const val HEADING_LEVEL_1 = 1
private const val HEADING_LEVEL_2 = 2
private const val HEADING_LEVEL_3 = 3
class MarkdownParser @Inject constructor() {
fun parse(text: String): List<MarkdownElement> = buildList {
... | 13 | Kotlin | 1 | 8 | 41fbabf3e858609116e18bbf881ee1f6c656d723 | 1,445 | SpeziKt | MIT License |
core-utils/src/main/java/com/rygital/core_utils/ComponentFactoryProviders.kt | 102Rudy | 273,904,625 | false | null | package com.rygital.core_utils
import android.app.Service
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
val FragmentActivity.componentFactory: ComponentFactory
get() = (application as ComponentFactoryHolder).componentFactory
val Fragment.componentFactory: ComponentFactory
... | 0 | Kotlin | 0 | 0 | b94f834a2d99e7f355965e444ab8a58d066eba31 | 482 | Currencies | MIT License |
clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/actions/generate/RunAllTestsWithCoverageAction.kt | UnitTestBot | 414,561,684 | false | {"C++": 1727348, "Kotlin": 269507, "C": 249924, "TypeScript": 230111, "Shell": 28129, "CMake": 23083, "JavaScript": 14798, "HTML": 13208, "CSS": 8653, "Python": 2980, "Batchfile": 882, "Makefile": 648} | package org.utbot.cpp.clion.plugin.actions.generate
import com.intellij.openapi.actionSystem.AnActionEvent
import org.utbot.cpp.clion.plugin.client.requests.RunAllTestsWithCoverageRequest
import org.utbot.cpp.clion.plugin.grpc.GrpcRequestBuilderFactory
import org.utbot.cpp.clion.plugin.utils.activeProject
class RunAl... | 117 | C++ | 21 | 95 | b39958f776d32c3caa9cb5c367f56593be13e85b | 721 | UTBotCpp | Apache License 2.0 |
data-remote/src/main/java/com/wo1f/remote/model/Post.kt | adwardwolf | 387,865,580 | false | null | package com.wo1f.remote.model
import com.wo1f.domain.model.Image
import com.wo1f.domain.model.UserTemplate
import org.bson.codecs.pojo.annotations.BsonId
data class Post(
@BsonId
val id: String,
val user: UserTemplate,
val privacy: String,
val body: String,
val image: Image,
val loves: Int... | 0 | Kotlin | 0 | 2 | d9372ab26a0f74ff32e196ffc7457258f1d7270c | 451 | the-earth | Apache License 2.0 |
embrace-android-core/src/test/java/io/embrace/android/embracesdk/internal/utils/ThreadLocalExtensionsTest.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2879745, "C": 189341, "Java": 162931, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.internal.utils
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotEquals
import org.junit.Test
import java.util.concurrent.CountDownLatch
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
internal class ThreadLocalExtensionsTest {
... | 23 | Kotlin | 8 | 134 | 06fb424ba2746c22e8e47e549a9f00ae8f85d72d | 822 | embrace-android-sdk | Apache License 2.0 |
src/main/java/com/alcosi/lib/db/JsonRowMapper.kt | alcosi | 698,911,809 | false | {"Kotlin": 405550, "Java": 82765, "HTML": 3451, "JavaScript": 509, "CSS": 203} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* 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 ap... | 0 | Kotlin | 0 | 0 | 4c71ef407342eb8a9b8f7aad8fc2f28d6198366f | 2,445 | alcosi_commons_library | Apache License 2.0 |
test-suite-kotlin-ksp/src/test/kotlin/io/micronaut/docs/aop/lifecycle/LifeCycleAdviseSpec.kt | micronaut-projects | 124,230,204 | false | {"Java": 13018207, "Groovy": 7010109, "Kotlin": 1674872, "HTML": 143, "Shell": 14} | package io.micronaut.docs.aop.lifecycle
import io.micronaut.context.ApplicationContext
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
class LifeCycleAdviseSpec {
@Test
fun testLifeCycleAdvise() {
ApplicationConte... | 753 | Java | 1061 | 6,059 | c9144646b31b23bd3c4150dec8ddd519947e55cf | 856 | micronaut-core | Apache License 2.0 |
app/src/main/java/com/joeloewi/croissant/MainActivity.kt | joeloewi7178 | 489,906,155 | false | null | package com.joeloewi.croissant
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.Settings
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat... | 8 | null | 0 | 9 | 78a10911356527d5d880cd8f3ec82406d0318346 | 19,773 | Croissant | Apache License 2.0 |
facebook-android-sdk-main/facebook-core/src/test/kotlin/com/facebook/AuthenticationTokenTest.kt | PESP-privacy-preserving-social-SDK | 774,671,173 | false | {"Kotlin": 2660453, "Java": 1785287, "Python": 24158, "Shell": 14666, "AIDL": 11889} | package com.facebook
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import androidx.test.core.app.ApplicationProvider
import com.facebook.internal.security.OidcSecurityUtil
import com.facebook.util.common.AuthenticationTokenTestUtil
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockit... | 0 | Kotlin | 0 | 0 | fcf4852069e2a9625aa663dc22ccc926e2a94799 | 5,377 | PESP | MIT License |
app/src/main/java/eu/kanade/tachiyomi/data/database/models/Chapter.kt | TachiWeb | 66,624,691 | false | null | package eu.kanade.tachiyomi.data.database.models
import java.io.Serializable
interface Chapter : Serializable {
var id: Long?
var manga_id: Long?
var url: String
var name: String
var read: Boolean
var bookmark: Boolean
var last_page_read: Int
var date_fetch: Long
var date_... | 0 | null | 0 | 5 | 9dac958ed1414338dfff825c8d7dbe78fb98209a | 595 | tachiyomi | Apache License 2.0 |
github-workflows-kt/src/gen/kotlin/io/github/typesafegithub/workflows/actions/peterevans/CreatePullRequestV6.kt | typesafegithub | 439,670,569 | false | {"Kotlin": 1903542} | // This file was generated using action-binding-generator. Don't change it by hand, otherwise your
// changes will be overwritten with the next binding code regeneration.
// See https://github.com/typesafegithub/github-workflows-kt for more info.
@file:Suppress(
"DataClassPrivateConstructor",
"UNUSED_PARAMETER"... | 31 | Kotlin | 24 | 498 | eafac8ece82c076293bd2e6db47b1911e108b501 | 11,373 | github-workflows-kt | Apache License 2.0 |
android/ui/settings/src/main/java/any/ui/settings/ui/ScrollBehaviorsItem.kt | dokar3 | 572,488,513 | false | null | package any.ui.settings.ui
import any.base.R as BaseR
import any.ui.common.R as CommonUiR
import androidx.compose.animation.core.EaseInOutQuart
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.... | 8 | Kotlin | 0 | 9 | 86ccf75753698d54a6b5a24d8747d5bd23ecf71e | 8,755 | any | Apache License 2.0 |
src/test/kotlin/com/s2s/kotlin/autoclose/test/UsingTest.kt | uluckas | 106,658,835 | true | {"Kotlin": 19396} | /*
* Copyright 2017 Kyle Wood (DemonWav)
* Adapted 2017 Uli Luckas, SinnerSchrader Swipe GmbH
*
* 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/L... | 0 | Kotlin | 1 | 2 | 3bae7b96452cf9f723a283f90612dc3a2bf9ab3f | 17,541 | s2s-KotlinAutoClose | Apache License 2.0 |
compiler/testData/diagnostics/tests/kt46483.fir.kt | JetBrains | 3,432,266 | false | null | @Repeatable
@Target( AnnotationTarget.TYPE_PARAMETER)
annotation class TypeParameterAnn(val name: String)
interface Generic<Z>
fun <<!MISPLACED_TYPE_PARAMETER_CONSTRAINTS!>@TypeParameterAnn("T") T: Any<!>> whereClauseWithAnnotation() where <!ANNOTATION_IN_WHERE_CLAUSE_ERROR!>@TypeParameterAnn("Prohibit me!!!")<!> T ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 536 | kotlin | Apache License 2.0 |
bootstrap-icons-compose/src/main/java/com/wiryadev/bootstrapiconscompose/bootstrapicons/normal/CalendarDate.kt | wiryadev | 380,639,096 | false | null | package com.wiryadev.bootstrapiconscompose.bootstrapicons.normal
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
imp... | 0 | Kotlin | 0 | 2 | 1c199d953dc96b261aab16ac230dc7f01fb14a53 | 4,711 | bootstrap-icons-compose | MIT License |
examples/custom-format-example/dokkatoo/src/main/kotlin/demo/HelloWorld.kt | adamko-dev | 598,382,061 | false | null | package demo
/**
* This class supports greeting people by name.
*
* @property name The name of the person to be greeted.
*/
class Greeter(val name: String) {
/**
* Prints the greeting to the standard output.
*/
fun greet() {
println("Hello $name!")
}
}
fun main(args: Array<String>) ... | 4 | Kotlin | 7 | 9 | cfebdcc16620c6972283b4d6c8159cdae61e9b65 | 352 | dokkatoo | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Pan.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 1,997 | icons | MIT License |
app/src/main/java/com/juangm/moviesmvi/constants/Constants.kt | juangranadilla | 192,718,432 | false | null | package com.juangm.moviesmvi.constants
const val TMDB_BASE_IMAGE_URL = "https://image.tmdb.org/t/p/w185" | 0 | Kotlin | 0 | 3 | f26c93678f0f64843dc3cfbc588e3051e0a770b9 | 105 | movies-mvi | Apache License 2.0 |
ktlint-rules/tst/software/aws/toolkits/ktlint/rules/CopyrightHeaderRuleTest.kt | tbtmuse | 224,356,807 | false | null | // Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.ktlint.rules
import com.pinterest.ktlint.core.LintError
import com.pinterest.ktlint.test.lint
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
import j... | 1 | null | 1 | 1 | 961d5ab9747161f7ed9587b1db7cde63c51c395a | 1,082 | jsinbucket | Apache License 2.0 |
samples/jvm/src/test/java/guru/stefma/cleancomponents/usecase/sample/jvm/GetUserCoroutineUseCaseTest.kt | StefMa | 127,291,902 | false | null | package guru.stefma.cleancomponents.usecase.sample.jvm
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.launch
import kotlinx.coroutines.test.TestCoroutineScope
import org.assertj.core.api.Assertions.*
import org.junit.jupiter.api.*
@ExperimentalCoroutinesApi
class GetUserCoroutineUseCase... | 10 | Kotlin | 2 | 0 | bcf18400382c5d83f88184bf94d10dd11616e025 | 870 | UseKase | MIT License |
app/src/main/java/com/example/showoff/ActivitysMarcacao/BarbeiroNivel.kt | TafariDragon | 780,165,072 | false | {"Kotlin": 16625} | package com.example.showoff.ActivitysMarcacao
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.showoff.databinding.ActivityBarbeiroNivelBinding
class BarbeiroNivel : AppCompatActivity() {
private lateinit var binding:ActivityBarbeiroNivelB... | 0 | Kotlin | 0 | 0 | 5c4b6d4a60572f5ba2e740783ac6fa1e570cd131 | 741 | ShowOff | MIT License |
app/src/androidTest/java/br/com/tinoco/ui/LoginActivityTest.kt | gustinoco | 150,333,694 | false | null | package br.com.tinoco.ui
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.*
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.intent.rule.IntentsTestRule
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.test.ru... | 0 | Kotlin | 0 | 0 | 86116a32b62f3207df07efb926bf186721bbe333 | 3,204 | iddog | MIT License |
core/src/main/kotlin/cache/data/InteractionData.kt | emrul | 338,278,659 | true | {"Kotlin": 1114973} | package dev.kord.core.cache.data
import dev.kord.common.annotation.KordExperimental
import dev.kord.common.annotation.KordPreview
import dev.kord.common.entity.*
import dev.kord.common.entity.NotSerializable
import dev.kord.common.entity.optional.Optional
import dev.kord.common.entity.optional.mapList
import dev.kord.... | 0 | null | 0 | 0 | 746e04457247767d0607cd695da054dd7ccc72ad | 3,488 | kord | MIT License |
src/test/kotlin/no/nav/familie/ef/mottak/mockapi/SøknadControllerExtension.kt | navikt | 204,919,927 | false | {"Kotlin": 442565, "Dockerfile": 178} | package no.nav.familie.ef.mottak.mockapi
import no.nav.familie.ef.mottak.repository.domain.EncryptedFile
import no.nav.familie.ef.mottak.repository.domain.Søknad
import no.nav.familie.ef.mottak.service.SøknadService
import no.nav.security.token.support.core.api.Unprotected
import org.springframework.http.MediaType
imp... | 3 | Kotlin | 1 | 0 | f017b9c6c848684676126d372b6523fbad6b53dd | 1,037 | familie-ef-mottak | MIT License |
klio/src/commonMain/kotlin/org/kodein/memory/text/Charset.kt | kosi-libs | 181,659,560 | false | {"C": 2929780, "Kotlin": 313185, "JavaScript": 359} | package org.kodein.memory.text
import org.kodein.memory.io.*
import org.kodein.memory.io.swapEndian
@OptIn(ExperimentalStdlibApi::class)
public abstract class Charset(public val name: String) {
public abstract fun codePointOf(char: Char): Int
public abstract fun charOf(codePoint: Int): Char
public abstr... | 0 | C | 0 | 7 | bab7f6ff28ca5cf9031a3d312f56d67fe3151d3c | 13,349 | Klio | MIT License |
sdk/src/main/kotlin/io/rover/sdk/ui/blocks/poll/OptionResults.kt | RoverPlatform | 55,724,334 | false | null | package io.rover.sdk.ui.blocks.poll
import io.rover.sdk.data.graphql.putProp
import io.rover.sdk.data.graphql.toStringIntHash
import org.json.JSONObject
internal data class OptionResults(val results: Map<String, Int>) {
fun encodeJson(): JSONObject {
return JSONObject().apply {
putProp(this@Op... | 16 | null | 13 | 6 | 1b6e627a1e4b3651d0cc9f6e78f995ed9e4a821a | 1,885 | rover-android | Apache License 2.0 |
app/src/main/java/io/github/sdwfqin/quickseed/utils/ServerException.kt | sdwfqin | 119,345,649 | false | null | package io.github.sdwfqin.app_kt.utils
/**
* 描述:服务器下发的错误
*
* @author zhangqin
* @date 2018/2/27
*/
class ServerException(var code: Int, message: String) : RuntimeException(message) | 0 | Java | 166 | 850 | b4741e22d20b137342282219d41d2533b55d5b69 | 186 | AndroidQuick | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/entities/transactionrecords/evm/ContractCreationTransactionRecord.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.entities.transactionrecords.evm
import io.horizontalsystems.bankwallet.modules.transactions.TransactionSource
import io.horizontalsystems.ethereumkit.models.Transaction
import io.horizontalsystems.marketkit.models.Token
class ContractCreationTransactionRecord(
transaction: ... | 168 | null | 364 | 895 | 218cd81423c570cdd92b1d5161a600d07c35c232 | 442 | unstoppable-wallet-android | MIT License |
DoodleMaze/app/src/main/java/com/doomteam/doodlemaze/Instructions.kt | ejdea | 274,464,646 | false | {"Java": 1720629, "C#": 914087, "HLSL": 308003, "ShaderLab": 213534, "Python": 52819, "Kotlin": 36971} | package com.doomteam.doodlemaze
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
class Instructions: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.instructions_p... | 1 | null | 1 | 1 | 003a631ebafde30d5dd74099e9b73ab0801e7034 | 392 | ProjectDoom | MIT License |
kotlin/kotlin-feature/src/main/kotlin/top/spencercjh/chapter3/lazy.kt | spencercjh | 175,650,453 | false | {"Java": 512838, "Kotlin": 99897, "Python": 16109, "HTML": 13016, "JavaScript": 11973, "CSS": 3821, "Scala": 3218} | package top.spencercjh.chapter3
/**
* @author SpencerCJH
* @date 2019/10/26
*/
val testLazy: String by lazy {
println("first");"hello"
}
fun main(args: Array<String>) {
println(testLazy)
println(testLazy)
} | 9 | Java | 1 | 7 | be27d99380c0a1bdf4bea9a86b0d436deb7e2d2d | 223 | codeLife | Apache License 2.0 |
collector/src/main/java/com/bitmovin/analytics/ads/AdPosition.kt | bitmovin | 120,633,749 | false | null | package com.bitmovin.analytics.ads
@Suppress("ktlint")
enum class AdPosition(val position: String) {
PRE("pre"),
MID("mid"),
POST("post");
override fun toString(): String {
return position
}
}
| 1 | null | 6 | 9 | 32626ceb4ce353293339d7fd1d8f00e02742814a | 223 | bitmovin-analytics-collector-android | Amazon Digital Services License |
src/main/kotlin/run/RunConfigurationFactory.kt | exigow | 202,529,822 | false | null | package run
import com.intellij.execution.configurations.ConfigurationFactory
import com.intellij.execution.configurations.ConfigurationType
import com.intellij.openapi.project.Project
import common.Icons
class RunConfigurationFactory(type: ConfigurationType) : ConfigurationFactory(type) {
override fun createTem... | 25 | null | 9 | 98 | 44c934ed885fa733d5766cff359bc3335daab8a0 | 450 | intellij-gdscript | MIT License |
app/src/main/java/com/example/sumitthakur/doordashlite/ui/MainActivity.kt | developer-sumit-thakur | 146,271,670 | false | null | package com.example.sumitthakur.doordashlite.ui
import android.os.Bundle
import android.view.View
class MainActivity : BaseActivity(), DiscoverFragment.FragmentListener {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
progress_container.visibility = View.V... | 0 | Kotlin | 0 | 1 | a421517c1ece348e8c2597a9dba3b8f3ba2a7a3f | 552 | SampleApp | MIT License |
api/src/main/kotlin/me/kvalbrus/multibans/api/punishment/target/PunishmentTarget.kt | kvalbrus | 615,076,387 | false | {"Java": 129548, "Kotlin": 128711} | package me.kvalbrus.multibans.api.punishment.target
import me.kvalbrus.multibans.api.Player
import me.kvalbrus.multibans.api.punishment.Punishment
interface PunishmentTarget : Player {
var punishment: Punishment?
} | 1 | null | 1 | 1 | 180bbaf8b7d6d599f911d43756792a6424b956a4 | 220 | MultiBans | MIT License |
src/main/kotlin/io/unthrottled/amii/personality/MoodStatusBarWidget.kt | ani-memes | 303,354,188 | false | {"Kotlin": 330895, "Java": 45710, "Shell": 207, "Batchfile": 32} | package io.unthrottled.amii.personality
import com.intellij.ide.ui.LafManagerListener
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.options.ShowSettingsUtil
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupManager
import com.intellij.openap... | 7 | Kotlin | 14 | 257 | c9a4ef10f6e1a5ce68dc3a007b45cadbc33deed0 | 3,761 | AMII | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/outgoing/rabbit/impl/listeners/OrderBookListener.kt | LykkeCity | 52,304,364 | false | {"Gradle": 2, "Shell": 3, "Text": 2, "Ignore List": 1, "Batchfile": 2, "Markdown": 1, "Java Properties": 2, "Kotlin": 596, "XML": 2, "Java": 21, "Protocol Buffer": 1, "INI": 3, "YAML": 1} | package com.lykke.matching.engine.outgoing.rabbit.impl.listeners
import com.lykke.matching.engine.outgoing.messages.OrderBook
import com.lykke.matching.engine.outgoing.rabbit.RabbitMqService
import com.lykke.matching.engine.outgoing.rabbit.events.RabbitFailureEvent
import com.lykke.matching.engine.outgoing.rabbit.even... | 5 | Kotlin | 16 | 31 | 937b360b10d461e444ebc7133dd9ab6b64ae4cb5 | 2,620 | MatchingEngine | MIT License |
src/main/kotlin/com/epam/brn/job/configuration/JobConfiguration.kt | Egor-Shnel | 252,230,101 | false | {"Gradle": 2, "YAML": 13, "Markdown": 5, "Dockerfile": 1, "INI": 4, "Shell": 6, "Ignore List": 5, "Batchfile": 1, "Git Attributes": 2, "EditorConfig": 3, "Makefile": 1, "JSON": 42, "JavaScript": 188, "SVG": 4, "XML": 2, "robots.txt": 1, "HTML": 11, "Handlebars": 34, "CSS": 17, "Kotlin": 126, "Java": 1, "Text": 2, "Java... | package com.epam.brn.job.configuration
import com.epam.brn.upload.CsvUploadService
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class JobConfiguration(private val csvUploadService: CsvUploadService) {
companion object {
cons... | 1 | null | 1 | 1 | 87a184091c7d19ff68feb2807b64af46d49eba35 | 651 | brn | MIT License |
eventlibrary/src/main/java/org/mhacks/app/eventlibrary/widget/EventDescriptionItem.kt | mhacks | 22,456,318 | false | null | package org.mhacks.app.eventlibrary.widget
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import org.mhacks.app.eventlibrary.data.model.Event
import org.mhacks.app.eventlibrary.databinding.ItemEventDescBinding
... | 1 | null | 12 | 21 | 12309b463e51acc3f41c463df647f410e16a6261 | 1,243 | mhacks-android | MIT License |
AndroidGenesisSample-Kotlin/AndroidGenesisSample/src/main/java/com/emerchantpay/gateway/androidgenesissample/activities/SplashScreen.kt | GenesisGateway | 132,108,849 | false | {"Text": 1, "Ignore List": 4, "YAML": 1, "Markdown": 3, "Gradle": 6, "XML": 253, "Java Properties": 6, "Shell": 2, "Batchfile": 2, "Proguard": 2, "Java": 9, "Kotlin": 18} | package com.emerchantpay.gateway.androidgenesissample.activities
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.emerchantpay.gateway.androidgenesissample.R
class SplashScreen : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bund... | 1 | null | 1 | 1 | e652ec8ad8312273b983dcbbe4215b9b269611d5 | 924 | android_app | MIT License |
compiler/testData/diagnostics/tests/inference/reportingImprovements/inferTypeFromUnresolvedArgument.kt | android | 263,405,600 | false | null | // !WITH_NEW_INFERENCE
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun <K> id2(x: K, s: String): K = x
fun <K> ret(s: String): K = TODO()
fun test() {
id2(<!UNRESOLVED_REFERENCE!>unresolved<!>, "foo")
id2(<!UNRESOLVED_REFERENCE!>unresolved<!>, <!CONSTANT_EXPECTED_TYPE_MISMATCH!>42<!>)
<!NI;NEW_INFERENCE_NO_INFORM... | 0 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 505 | kotlin | Apache License 2.0 |
src/main/kotlin/org/n52/spare/kicker/rankings/MatchpointsAlgorithmImpl.kt | matthesrieke | 240,745,271 | false | {"Gradle Kotlin DSL": 2, "YAML": 3, "Ignore List": 3, "Dockerfile": 1, "Shell": 1, "Text": 1, "Batchfile": 1, "Markdown": 1, "INI": 1, "Kotlin": 23, "Java": 8} | package org.n52.spare.kicker.rankings
import org.n52.spare.kicker.model.Match
import org.n52.spare.kicker.model.Player
import org.n52.spare.kicker.model.Rank
class MatchpointsAlgorithmImpl : RankingsAlgorithm {
private val ranks: MutableMap<Player, Rank> = mutableMapOf()
override fun calculateForMatches(matches... | 3 | null | 1 | 1 | efe974a4865f8395d6d8fc901050c0e4aafede95 | 1,926 | kicker-league-rest | Apache License 2.0 |
plugins/groovy/src/org/jetbrains/plugins/groovy/dgm/GroovyMacroModuleListener.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.groovy.dgm
import com.intellij.openapi.components.service
import com.intellij.util.castSafelyTo
import com.intellij.workspaceModel.ide.WorkspaceModelChangeListener
impo... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,285 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/android/chessclock/MyFragmentPagerAdapter.kt | H3AR7B3A7 | 296,896,877 | true | {"Kotlin": 47513, "Java": 19838} | package com.example.android.chessclock
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
class MyFragmentPagerAdapter(fm: FragmentManager?) : FragmentPagerAdapter(fm){
override fun getCount(): Int {
return 2;
}
... | 0 | Kotlin | 0 | 2 | 9abf4660b003d60434ecf8b0d1be4e1b6be6fd79 | 524 | ChessClock | Apache License 2.0 |
fuzzer/src/test/kotlin/ru/au/kotlinfuzzer/RegressionTests.kt | ItsLastDay | 102,885,402 | false | null | package ru.au.kotlinfuzzer
import org.junit.Test
import ru.au.kotlinfuzzer.ast.builders.buildASTFromFile
import ru.au.kotlinfuzzer.mutation.AddNullability
import ru.au.kotlinfuzzer.mutation.DeleteNullability
import ru.au.kotlinfuzzer.mutation.mutateAST
import ru.au.kotlinfuzzer.mutation.mutateASTWith
import ru.au.kotl... | 1 | null | 1 | 6 | bb80db8b1383a6c7f186bea95c53faff4c0e0281 | 1,872 | KotlinFuzzer | MIT License |
src/main/kotlin/com/longforus/mvpautocodeplus/maker/TemplateMaker.kt | longforus | 139,694,214 | false | null | package com.longforus.mvpautocodeplus.maker
import com.intellij.ide.fileTemplates.FileTemplate
import com.intellij.ide.fileTemplates.FileTemplateManager
import com.intellij.ide.fileTemplates.FileTemplateUtil
import com.intellij.ide.fileTemplates.impl.FileTemplateManagerImpl
import com.intellij.openapi.project.Project
... | 2 | null | 28 | 180 | 95a553487260d4e26b4531c362873593516701dd | 2,782 | MvpAutoCodePlus | Apache License 2.0 |
app/src/main/java/paxel/yogi/data/remote/RemoteDataSource.kt | yodeput | 411,745,240 | false | null | package paxel.yogi.data.remote
import paxel.yogi.data.Resource
import paxel.yogi.data.dto.employee.EmployeeList
import paxel.yogi.data.dto.employee.EmployeeResponse
internal interface RemoteDataSource {
suspend fun requestEmployee(): Resource<EmployeeList>
}
| 1 | Kotlin | 1 | 1 | 50f84dc79545c58448089aad3db200857040c1a9 | 266 | Mini-Project-Test-for-Android-Kotlin | Apache License 2.0 |
WearComplicationProvidersTestSuite/Wearable/src/main/java/com/example/android/wearable/wear/wearcomplicationproviderstestsuite/RangedValueProviderService.kt | sarahamilton | 384,536,063 | true | {"Markdown": 16, "Text": 2, "Ignore List": 7, "Java Properties": 21, "Gradle": 44, "Shell": 13, "Batchfile": 13, "YAML": 13, "Proguard": 3, "XML": 257, "Kotlin": 42, "Java": 71, "INI": 5} | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | null | 0 | 0 | f8a2f43f7c0b7fe0a13cc10c7f7ccfe1f2d566fc | 4,560 | wear-os-samples | Apache License 2.0 |
app/src/main/java/com/syleiman/gingermoney/core/utils/encryption/aes/EncryptorAESOldApi.kt | AlShevelev | 158,343,218 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 4, "XML": 137, "Kotlin": 385, "JSON": 1} | package com.syleiman.gingermoney.core.utils.encryption.aes
import com.syleiman.gingermoney.core.storages.key_value.KeyValueStorageFacade
import com.syleiman.gingermoney.core.utils.encryption.Encryptor
import java.security.Key
import javax.crypto.spec.SecretKeySpec
import javax.inject.Inject
/** Encryption/Decryption ... | 1 | null | 1 | 1 | 91ef2b9bd5c19043104734b588940841fa6f9f4f | 1,445 | ginger-money | MIT License |
app/src/main/java/vn/loitp/up/a/cv/scrollablePanel/OrderInfo.kt | tplloi | 126,578,283 | false | null | package vn.loitp.up.a.cv.scrollablePanel
import androidx.annotation.Keep
import com.loitp.core.base.BaseModel
import java.util.* // ktlint-disable no-wildcard-imports
@Keep
class OrderInfo : BaseModel() {
var id: Long = 0
var guestName: String? = null
var status: Status? = null
var isBegin: Boolean = ... | 1 | Kotlin | 1 | 9 | 1bf1d6c0099ae80c5f223065a2bf606a7542c2b9 | 745 | base | Apache License 2.0 |
app/src/main/java/com/example/kotlinexamples/MainActivity.kt | jaykishan-sewak999 | 607,093,091 | false | {"Kotlin": 18394} | package com.example.kotlinexamples
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.kotlinexamples.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private var binding: ActivityMainBinding? = null
override fun o... | 0 | Kotlin | 0 | 0 | e7b8b491cc5ea6f66f9e563ed5179ab581547ca9 | 977 | kotlin-examples | Apache License 2.0 |
src/main/kotlin/insyncwithfoo/ryecharm/others/requirementsinjection/RequirementsInjector.kt | InSyncWithFoo | 849,672,176 | false | {"Kotlin": 328384, "Python": 7749, "HTML": 1337} | package insyncwithfoo.ryecharm.others.requirementsinjection
import com.intellij.lang.injection.general.Injection
import com.intellij.lang.injection.general.LanguageInjectionContributor
import com.intellij.lang.injection.general.SimpleInjection
import com.intellij.psi.PsiElement
import com.jetbrains.python.requirements... | 2 | Kotlin | 1 | 51 | b857626181d4ca5aaab0f3fd7417be782d1ee7d0 | 3,371 | ryecharm | MIT License |
DDRTools/DDRTools/src/main/java/com/mx/ddrtools/components/dialogs/DDRAlert.kt | EderNocelo | 328,757,086 | false | null | /**
Copyright 2021 DDRTools
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
distribut... | 1 | Kotlin | 1 | 1 | ad2ffc8183f5fd4f84ee76947c8311086bae054c | 2,071 | DDRTools | Apache License 2.0 |
domain/src/test/java/me/rei_m/hyakuninisshu/domain/karuta/model/KarutaColorTest.kt | rei-m | 68,487,243 | false | {"Kotlin": 446709, "HTML": 1416} | /*
* Copyright (c) 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... | 0 | Kotlin | 1 | 11 | d88621799d19fb55443c14748870a85c063026e3 | 993 | android_hyakuninisshu | Apache License 2.0 |
src/commonMain/kotlin/io/grule/parser/ParserMatcherTransform.kt | 7hens | 376,845,987 | false | null | package io.grule.parser
import io.grule.node.NodeMapper
internal class ParserMatcherTransform(val parser: Parser, val mapper: NodeMapper) : Parser {
override val key: Any get() = parser.key
override fun match(status: ParserStatus): ParserStatus {
val result = parser.match(status)
val resultNo... | 0 | Kotlin | 0 | 1 | 3c00cfd151e78515a93f20a90369e43dd3b75f73 | 494 | grule | Apache License 2.0 |
core/src/main/java/com/marknjunge/core/data/network/OrdersService.kt | ashishkharcheiuforks | 240,098,537 | true | {"Kotlin": 215102} | package com.marknjunge.core.data.network
import com.marknjunge.core.data.model.Order
import com.marknjunge.core.data.model.PlaceOrderDto
import retrofit2.http.*
internal interface OrdersService{
@POST("/orders/place")
suspend fun placeOrder(@Header("session-id") sessionId: String, @Body body: PlaceOrderDto): ... | 0 | null | 0 | 0 | 152ace09c6c807ef0d3ece36a45f71d1e9dd7f99 | 569 | JustJava-Android | Apache License 2.0 |
commonlibrary/src/main/java/com/android/generalextensionlibrary/ext/Context.kt | AlbertShen0211 | 239,265,995 | false | null | package com.android.generalextensionlibrary.ext
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
/**
* Starts the Activity [A], in a more concise way, while still allowing to configure the [Intent] in
* the optional [configInte... | 2 | Kotlin | 9 | 19 | 148711c0b14e9838bdef738d6acf0bb1d63c45d1 | 2,113 | Android-Common-Library | Apache License 2.0 |
src/main/java/com/uwetrottmann/tmdb2/entities/Configuration.kt | sevar83 | 105,251,132 | false | {"PowerShell": 1, "Maven POM": 1, "Proguard": 1, "Markdown": 3, "Gradle": 1, "Ignore List": 1, "Git Attributes": 1, "Kotlin": 107, "XML": 1, "Java": 2} | package com.uwetrottmann.tmdb2.entities
import kotlin.collections.List
class Configuration(
val images: ImagesConfiguration,
val change_keys: List<String>? = null
) {
class ImagesConfiguration(
val base_url: String? = null,
val secure_base_url: String? = null,
val poste... | 0 | Kotlin | 0 | 3 | 9d8cb60f4aad3f1a682fd47ec1d596baf0ec08b4 | 566 | tmdb-rxjava2-kotlin | The Unlicense |
Corona-Warn-App/src/main/java/be/sciensano/coronalert/service/Statistics.kt | ici-be | 310,042,293 | true | {"Kotlin": 979464, "HTML": 189219} | package be.sciensano.coronalert.service
data class Statistics(
val averageInfected: Int,
val averageInfectedChangePercentage: Int,
val averageHospitalised: Int,
val averageHospitalisedChangePercentage: Int,
val averageDeceased: Int,
val averageDeceasedChangePercentage: Int,
val startDate: L... | 0 | null | 0 | 0 | 652f37467a375e0857437a0615ecd6e018c9ed78 | 380 | cwa-app-android | Apache License 2.0 |
src/main/kotlin/com/pandus/leetcode/solutions/daily/AppendCharactersToStringToMakeSubsequence.kt | bodyangug | 740,204,714 | false | {"Kotlin": 285275} | package com.pandus.leetcode.solutions.daily
// Reference: https://leetcode.com/problems/append-characters-to-string-to-make-subsequence
class AppendCharactersToStringToMakeSubsequence {
fun appendCharacters(s: String, t: String): Int {
var first = 0
var longestPrefix = 0
while (first < s.le... | 0 | Kotlin | 0 | 1 | f94eefed24b1ca6317aa34d749dbda84570935d0 | 528 | leetcode-solutions | MIT License |
dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/TahuHostUriDsl.kt | apache | 206,317 | false | {"Java": 120369566, "Kotlin": 4840949, "Groovy": 565537, "XSLT": 278550, "HTML": 223724, "JavaScript": 108632, "Shell": 23899, "RobotFramework": 8490, "FreeMarker": 8015, "Dockerfile": 6982, "Thrift": 6979, "Apex": 6695, "Mustache": 6202, "Tcl": 4974, "CSS": 4277, "Rust": 3839, "Jsonnet": 1734, "Batchfile": 941, "Pytho... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 9 | Java | 4927 | 5,469 | 6868630819e071391ce33f05450a728eacf9bc54 | 6,304 | camel | Apache License 2.0 |
lbmlib/src/main/kotlin/com/alekseyzhelo/lbm/core/cell/CellD2Q9.kt | AlekseyZhelo | 59,054,178 | false | {"Maven POM": 6, "Text": 1, "Ignore List": 1, "Markdown": 1, "JAR Manifest": 3, "Kotlin": 57, "Java": 8, "GLSL": 2} | package com.alekseyzhelo.lbm.core.cell
import com.alekseyzhelo.lbm.core.lattice.DescriptorD2Q9
import com.alekseyzhelo.lbm.core.lattice.DescriptorD2Q9.Q
import com.alekseyzhelo.lbm.dynamics.Dynamics2DQ9
/**
* @author Aleks on 18-05-2016.
*/
// TODO: add 1 to rho for improved numerical stability? What are the other ... | 1 | null | 1 | 1 | 09f583fd6bdf9ee196c3b2d0e569fe1cfc9ba8bb | 1,838 | LBM | Apache License 2.0 |
app/src/main/java/com/customappsms/to_dolist/viewmodel/AuthViewMobel.kt | MaksymSolomkin | 687,570,503 | false | {"Kotlin": 25938} | package com.customappsms.to_dolist.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.customappsms.to_dolist.data.AuthRepository
import com.customappsms.to_dolist.utils.UIState
import com.google.firebase.auth.FirebaseUser
import dagger.... | 0 | Kotlin | 0 | 1 | 3b4c2a5dec6b233a9e07596a152b2a7e3deb8e6d | 1,001 | To-Do-List | MIT License |
src/main/kotlin/com/moqi/kotlin/ch03/3.5.1_SplittingStrings.kt | HiAwesome | 317,410,821 | false | null | package com.moqi.kotlin.ch03
/**
* 字符串和正则表达式
*
* @author moqi On 12/3/20 10:58
*/
fun main() {
// println("12.345-6.A".split("\\.|-".toRegex()))
println("12.345-6.A".split("[.\\-]".toRegex()))
println()
// 指定多个分割符
println("12.345-6.A".split(".", "-"))
}
| 0 | Kotlin | 0 | 0 | 2228e08f304f06020917b7bea98f32b83ec22f69 | 279 | kotlin-demo | Apache License 2.0 |
app/src/main/java/com/istu/schedule/ui/util/VibrationManager.kt | imysko | 498,018,609 | false | {"Kotlin": 862247} | package com.istu.schedule.ui.util
import android.content.Context
import android.os.Build
import android.os.CombinedVibration
import android.os.VibrationEffect
import android.os.Vibrator
import android.os.VibratorManager
import javax.inject.Inject
interface VibrationManager {
fun vibrate(context: Context, effect:... | 1 | Kotlin | 1 | 2 | 36ff18c29364921c0eb9b09af090b434fca2a36e | 1,318 | Schedule-ISTU | MIT License |
library/src/main/java/wannabe/grid/iterators/InBoundsIterator.kt | pforhan | 14,547,654 | false | null | package wannabe.grid.iterators
import wannabe.Bounds
import wannabe.Voxel
import wannabe.grid.Grid
import java.util.ArrayList
// TODO this should be a streaming solution not a caching one
class InBoundsIterator(
source: Grid,
bounds: Bounds
) : MutableIterator<Voxel> {
private val realIterator: MutableIterator<... | 12 | Kotlin | 0 | 1 | 4fecd52959262ae7d8ee7aa76d26b82e110e9d9a | 669 | wannabe | MIT License |
app/src/main/java/com/concordium/wallet/data/walletconnect/Schema.kt | Concordium | 750,205,274 | false | {"Kotlin": 1674268, "Java": 68714, "HTML": 53707, "CSS": 256} | package com.concordium.wallet.data.walletconnect
import java.io.Serializable
sealed interface Schema : Serializable {
/**
* The version is present for "module" type schema.
*/
val version: Int?
data class ValueSchema(
val type: String?,
val value: String?,
override val v... | 20 | Kotlin | 0 | 1 | 8f6c0019e2edf22900fbe480b3fa39996fefa2dc | 814 | cryptox-android | Apache License 2.0 |
core/src/commonMain/kotlin/se/gustavkarlsson/conveyor/internal/StatefulMutableSharedFlow.kt | gustavkarlsson | 291,828,391 | false | null | package se.gustavkarlsson.conveyor.internal
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import se.gustavkarlsson.conveyor.InternalConveyorApi
@InternalConveyorApi
public class StatefulMutableShar... | 0 | Kotlin | 1 | 7 | ef88e724ece82b711df6daf7a15f42cf26792634 | 1,174 | conveyor | MIT License |
models/src/main/java/com/vimeo/networking2/UserSegmentSurveyList.kt | vimeo | 41,306,732 | false | null | package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.vimeo.networking2.common.Page
/**
* A list of [UserSegmentSurveys][UserSegmentSurvey].
*/
@JsonClass(generateAdapter = true)
data class UserSegmentSurveyList(
@Json(name = "total")
override val total... | 21 | Kotlin | 52 | 123 | e4f31d4fa144756d576101b3a82120657e9e8a51 | 525 | vimeo-networking-java | MIT License |
openapi-dsl-core/src/commonMain/kotlin/ch/acmesoftware/openapidsl/lowlevel/v3/PathItem.kt | acme-software | 283,266,541 | false | null | package ch.acmesoftware.openapidsl.lowlevel.v3
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* @see [https://swagger.io/specification/#path-item-object]
*/
@Serializable
data class PathItem(
@SerialName("\$ref")
val ref: String? = null,
val summary: String? = null... | 0 | Kotlin | 0 | 0 | 2334732494ac8d0512807f8fc7236b122fb46ad6 | 1,496 | openapi-dsl | MIT License |
app/main/arenaoppslag/fellesordningen/FellesordningenDao.kt | navikt | 690,073,639 | false | {"Kotlin": 12115, "Dockerfile": 501} | package arenaoppslag.fellesordningen
import arenaoppslag.dao.map
import java.sql.Date
import java.time.LocalDate
import javax.sql.DataSource
class FellesordningenDao(private val dataSource: DataSource) {
private val selectVedtakMedTidsbegrensningSql = """
SELECT til_dato, fra_dato
FROM vedtak ... | 0 | Kotlin | 0 | 0 | d54720cadc0c02baaaa57f6276ccb487ea3b127e | 1,663 | aap-arenaoppslag | MIT License |
app/src/main/java/com/lolo/io/onelist/App.kt | newhinton | 234,555,103 | false | null | package com.lolo.io.onelist
import android.app.Application
import android.content.Context
class App : Application() {
val context: Context
get() = applicationContext
override fun onCreate() {
super.onCreate()
instance = this
}
companion object {
lateinit var instance: App
... | 0 | null | 0 | 1 | 401384430b0b64537347f7704d8f24aeacf8b795 | 327 | OneList | MIT License |
src/main/kotlin/custom_resources/CustomSpacers.kt | olracnai | 720,999,284 | false | {"Kotlin": 107863, "Go": 565} | package custom_resources
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
//// Width
@Composable
fun msSpa... | 0 | Kotlin | 0 | 1 | de512651131dee7cfb3078843ea0549a10e8b797 | 765 | monithor-client | MIT License |
app/src/main/java/com/fafadiatech/newscout/model/CategorySubMenuData.kt | fafadiatech | 219,917,156 | false | null | package com.fafadiatech.newscout.model
data class CategorySubMenuData(var category_id: Int, var name: String, var hash_tags: ArrayList<CategoryTagData>) | 20 | Kotlin | 1 | 0 | aa136721998e6c1fa0ab1e2fa1215584a1384b84 | 153 | newscout_android | Apache License 2.0 |
okhttp/src/jvmTest/java/okhttp3/KotlinDeprecationErrorTest.kt | yschimke | 42,286,486 | false | null | /*
* Copyright (C) 2020 Square, 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 agre... | 2 | null | 9281 | 6 | ef459b1d8b0530c915386c527e8a141c88cd5c15 | 14,146 | okhttp | Apache License 2.0 |
app/src/main/java/wardani/dika/gitsearch/api/response/ProjectResponse.kt | dikawardani24 | 290,758,380 | false | null | package wardani.dika.gitsearch.api.response
import com.google.gson.annotations.SerializedName
data class ProjectResponse(
@SerializedName("id")
val id: Long,
@SerializedName("name")
val name: String,
@SerializedName("full_name")
val fullName: String,
@SerializedName("owner")
val owner:... | 0 | Kotlin | 0 | 0 | ca002b3b44bbc1904b59de0409bb6ee36c8afaae | 335 | git-search | Apache License 2.0 |
android/src/main/kotlin/io/vinicius/appodeal_flutter/AppodealFlutterPlugin.kt | tommybuonomo | 314,791,924 | true | {"Dart": 16036, "Kotlin": 13127, "Swift": 12456, "Ruby": 3203, "Objective-C": 745} | package io.vinicius.appodeal_flutter
import android.app.Activity
import androidx.annotation.NonNull
import com.appodeal.ads.Appodeal
import com.appodeal.ads.BannerCallbacks
import com.appodeal.ads.InterstitialCallbacks
import com.appodeal.ads.NonSkippableVideoCallbacks
import com.appodeal.ads.RewardedVideoCallbacks
im... | 0 | null | 0 | 0 | e3d1702ec8b99821aa30b4c128fed99e7159a822 | 11,509 | appodeal | ISC License |
app/src/main/java/fi/kroon/vadret/data/district/mapper/DistrictEntityMapper.kt | marvinmosa | 241,497,201 | true | {"Kotlin": 871560} | package fi.kroon.vadret.data.district.mapper
import fi.kroon.vadret.data.district.model.District
import fi.kroon.vadret.data.district.model.DistrictEntity
object DistrictEntityMapper {
/**
* Transforms [District] into it's database
* representation [DistrictEntity].
*/
operator fun invoke(di... | 0 | null | 0 | 0 | f8149920c34bb3bc5e3148785ce217e37e596fbe | 713 | android | Apache License 2.0 |
library/src/test/java/com/paypal/messages/config/message/PayPalMessageEventsCallbacksTest.kt | paypal | 676,987,000 | false | {"Kotlin": 162033, "Shell": 1508, "Java": 1010} | package com.paypal.messages.config.message
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.jupiter.api.Test
class PayPalMessageEventsCallbacksTest {
@Test
fun testConstructor() {
val onClickMock = mockk<() -> Unit>("onClickMock")
every { onClickMock() } answers {}
val onApp... | 5 | Kotlin | 3 | 1 | b06039c3b9676e58cdc8853bb82a4e6513c9b168 | 621 | paypal-messages-android | MIT License |
sdk-base/src/main/java/com/mapbox/maps/plugin/compass/generated/CompassSettingsInterface.kt | mapbox | 330,365,289 | false | null | // This file is generated.
package com.mapbox.maps.plugin.compass.generated
import com.mapbox.maps.ImageHolder
/**
* Interface that defines the public settings interface for CompassPlugin.
*/
interface CompassSettingsInterface {
/**
* Get current compass configuration.
*
* @return compass settings
*/... | 216 | null | 126 | 435 | 7faf620b4694bd50f4b4399abcf6eca29e3173ba | 1,809 | mapbox-maps-android | Apache License 2.0 |
app/src/main/java/com/nima/guessthatpokemon/MainActivity.kt | NimaKhajehpour | 594,760,766 | false | null | package com.nima.guessthatpokemon
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.mater... | 4 | Kotlin | 0 | 9 | 34b4d2fa72dc93efc69dffb25f6557f34a387433 | 1,743 | GuessThatPokemon | MIT License |
plugins/gradle/testSources/org/jetbrains/plugins/gradle/testFramework/util/FileTestFixtureUtil.kt | jinsihou19 | 192,350,885 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.gradle.testFramework.util
import org.jetbrains.plugins.gradle.testFramework.fixtures.FileTestFixture
fun <R> FileTestFixture.withSuppressedErrors(action: () -> R): R {... | 1 | null | 1 | 1 | 55cb0396e166a3f4e114a59e9357d2e390a6dd96 | 420 | intellij-community | Apache License 2.0 |
ui/src/main/java/io/snabble/sdk/ui/payment/PaymentMethodMetaData.kt | snabble | 124,525,499 | false | null | package io.snabble.sdk.ui.payment
import android.content.Context
import androidx.annotation.DrawableRes
import io.snabble.sdk.PaymentMethod
import io.snabble.sdk.PaymentMethod.AMEX
import io.snabble.sdk.PaymentMethod.CUSTOMERCARD_POS
import io.snabble.sdk.PaymentMethod.DE_DIRECT_DEBIT
import io.snabble.sdk.PaymentMeth... | 3 | null | 1 | 6 | 666c1e53da8a2748519cd805accffc05e13381dd | 4,343 | Android-SDK | MIT License |
core/src/main/java/com/serious/service/injections/ServiceInjection.kt | coolsamson7 | 700,938,199 | false | {"Kotlin": 145337} | package com.serious.service.injections
/*
* @COPYRIGHT (C) 2023 <NAME>
*
* All rights reserved
*/
import com.serious.injection.AbstractInjection
import com.serious.injection.Injection
import com.serious.injection.InjectorFactory
import com.serious.lang.Keywords
import com.serious.service.BaseDescriptor
import com.seri... | 0 | Kotlin | 0 | 1 | 6056db90b2d4287be80db780d2dd2a6d1197bded | 2,338 | service | Apache License 2.0 |
snappicker-compose/src/main/kotlin/io/woong/snappicker/compose/SnapPickerState.kt | cheonjaewoong | 595,586,562 | false | null | package io.woong.snappicker.compose
import androidx.compose.foundation.MutatePriority
import androidx.compose.foundation.gestures.ScrollScope
import androidx.compose.foundation.gestures.ScrollableState
import androidx.compose.foundation.lazy.LazyListItemInfo
import androidx.compose.foundation.lazy.LazyListState
import... | 0 | Kotlin | 0 | 1 | 203a217ca182b8268c68e763b0b948f835210158 | 3,468 | snappicker | MIT License |
app/src/main/java/com/github/rezita/homelearning/adapters/SentenceAdapter.kt | rezita | 722,617,292 | false | {"Kotlin": 168782, "JavaScript": 48136} | package com.github.rezita.homelearning.adapters
import android.annotation.SuppressLint
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
i... | 0 | Kotlin | 0 | 0 | e8539948299064137d80ed6ec3ba71523e44fddc | 3,926 | HomeLearning | Apache License 2.0 |
telegram-bot/src/commonMain/kotlin/eu/vendeli/tgbot/api/media/Document.kt | vendelieu | 496,567,172 | false | null | @file:Suppress("MatchingDeclarationName")
package eu.vendeli.tgbot.api.media
import eu.vendeli.tgbot.interfaces.BusinessActionExt
import eu.vendeli.tgbot.interfaces.MediaAction
import eu.vendeli.tgbot.interfaces.features.CaptionFeature
import eu.vendeli.tgbot.interfaces.features.MarkupFeature
import eu.vendeli.tgbot.... | 6 | null | 9 | 165 | c1ddf4a42c577410af31249dc650858320668263 | 4,304 | telegram-bot | Apache License 2.0 |
app/src/persistent_database/java/uk/ac/aber/dcs/cs31620/faa/datasource/FaaPersistentRoomDatabase.kt | chriswloftus | 696,706,931 | false | {"Kotlin": 108132} | package uk.ac.aber.dcs.cs31620.faa.datasource
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.sqlite.db.SupportSQLiteDatabase
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.D... | 0 | Kotlin | 0 | 0 | b7569d8f908b83eb98d1854556983166778feb3c | 4,525 | feline-adoption-agency-v10 | MIT License |
database/src/test/kotlin/no/nav/su/se/bakover/database/søknadsbehandling/SøknadsbehandlingPostgresRepoTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.database.søknadsbehandling
import arrow.core.nonEmptyListOf
import io.kotest.matchers.shouldBe
import io.kotest.matchers.shouldNotBe
import io.kotest.matchers.types.shouldBeTypeOf
import no.nav.su.se.bakover.common.Tidspunkt
import no.nav.su.se.bakover.common.desember
import no.nav.su.se.b... | 6 | Kotlin | 0 | 0 | 2ed4ed4aa002a19d14ce7dd37c27271a227668a8 | 28,103 | su-se-bakover | MIT License |
app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/externallibraries/LottieScreenTest.kt | Vivecstel | 338,792,534 | false | {"Kotlin": 1538487} | package com.steleot.jetpackcompose.playground.compose.externallibraries
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import com.steleot.jetpackcompose.playground.MainActivity
import com.steleot.jetpackcompose.playground.compose.theme.TestTheme
import org.junit.Rule
import org.junit.Test
class Lotti... | 1 | Kotlin | 46 | 346 | 0161d9c7bf2eee53270ba2227a61d71ba8292ad0 | 705 | Jetpack-Compose-Playground | Apache License 2.0 |
src/commonMain/kotlin/baaahs/mapper/Mapper.kt | baaahs | 174,897,412 | false | null | package baaahs.mapper
import baaahs.Color
import baaahs.MediaDevices
import baaahs.SparkleMotion
import baaahs.geom.Vector2F
import baaahs.geom.Vector3F
import baaahs.imaging.Bitmap
import baaahs.imaging.Dimen
import baaahs.imaging.Image
import baaahs.imaging.createWritableBitmap
import baaahs.model.Model
import baaah... | 99 | null | 12 | 40 | 2aca7de985798cd222b8427841052742cf0fe453 | 22,308 | sparklemotion | MIT License |
src/test/kotlin/com/amazon/ionpathextraction/PathExtractorTest.kt | amazon-ion | 152,325,812 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fil... | 6 | null | 9 | 13 | ab9aec5682cfe49cf271a34c519b26893f9b206e | 14,764 | ion-java-path-extraction | Apache License 2.0 |
retrofit-jsonapi-converter/src/test/java/tech/jorgecastro/jsonapi/JsonApiCallAdapterTest.kt | devjorgecastro | 249,588,529 | false | null | package tech.jorgecastro.jsonapi
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.Mockito.mock
import org.mockito.junit.MockitoJUnitRunner
import retrofit2.Call
import tech.jorgecastro.jsonapi.adapter.JsonApiCa... | 7 | Kotlin | 0 | 10 | 6d940502123a9b0a87b743dc8125df891a860495 | 1,229 | retrofit-jsonapi-converter | Apache License 2.0 |
project-system-gradle-psd/src/com/android/tools/idea/gradle/structure/model/helpers/ExtractVariableWorker.kt | JetBrains | 60,701,247 | 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... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,903 | android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.