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/org/dclm/live/ui/experience/prayer/PrayerFragment.kt | Ochornma | 275,347,425 | false | null | package org.dclm.live.ui.experience.prayer
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import kotlinx.android.synthetic.main.prayer_fragme... | 0 | Kotlin | 1 | 1 | 2715e65c7c96587f0365c870b5fa6c8120d00f82 | 2,105 | DCLM-Project | MIT License |
app/src/main/java/com/naeem/merasangeet/adapter/PlaylistViewAdapter.kt | naeem-manyar | 640,937,185 | false | null | package com.naeem.merasangeet.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widge... | 0 | Kotlin | 0 | 0 | 93783989442e76348b862e8e704bdc4e95bf9698 | 3,125 | Mera-Sangeet | MIT License |
kotlin-springwebmvc/src/test/kotlin/com/gyejoon/springwebmvc/blog/HttpApiTests.kt | Gyejoon | 141,891,522 | false | null | package blog
import com.nhaarman.mockito_kotlin.whenever
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.extension.ExtendWith
import org.mockito.Mockito.any
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest
import org.... | 0 | Kotlin | 0 | 2 | 2118ea4ccfb857434cc5b22009e58a6126d2c6d9 | 2,855 | kotlin-examples | MIT License |
src/main/kotlin/no/nav/personbruker/minesaker/api/domain/Datotype.kt | navikt | 331,032,645 | false | null | package no.nav.personbruker.minesaker.api.domain
enum class Datotype {
OPPRETTET,
REGISTRERT,
EKSPEDERT,
AV_RETUR,
DOKUMENT,
JOURNALFORT,
SENDT_PRINT,
UKJENT
}
| 1 | Kotlin | 1 | 0 | 9483405e40b286e7b537a699ca3cf4eaca40ed0e | 193 | mine-saker-api | MIT License |
app/src/main/java/es/voghdev/playbattlegrounds/features/season/usecase/SetCurrentSeason.kt | voghDev | 125,352,944 | false | null | /*
* Copyright (C) 2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 5 | Kotlin | 2 | 10 | 860788cebfa6d0563e8c4de9611c0daeca492a1b | 784 | PlayBattlegrounds | Apache License 2.0 |
projectgraphmetrics/src/test/kotlin/io/github/cdsap/projectgraphmetrics/parser/GraphIndicatorsParserTest.kt | cdsap | 725,238,050 | false | {"Kotlin": 11798} | package io.github.cdsap.projectgraphmetrics.parser
import io.github.cdsap.projectgraphmetrics.ProjectGraphMetrics
import io.github.cdsap.projectgraphmetrics.parser.GraphParser
import org.junit.Assert.*
import org.junit.Test
import java.io.File
class GraphIndicatorsParserTest {
@Test
fun testModulesAreParsedC... | 0 | Kotlin | 0 | 5 | b54094c23d3a53bc0208f405a1705f7cc812f735 | 1,518 | ProjectGraphMetrics | MIT License |
features/feature-settings/src/main/kotlin/com/maximillianleonov/musicmax/feature/settings/SettingsScreen.kt | MaximillianLeonov | 559,137,206 | false | null | /*
* Copyright 2022 Maximillian Leonov
*
* 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... | 5 | Kotlin | 4 | 61 | 29dd1c65e202aae78d6565c6490e3019d921fb23 | 2,655 | Musicmax | Apache License 2.0 |
platform/statistics/uploader/src/com/intellij/internal/statistic/eventLog/LogEvents.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2019 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 com.intellij.internal.statistic.eventLog
import com.intellij.internal.statistic.eventLog.StatisticsEventEscaper.escapeFieldName
import java.util.*
fun newLogEvent(sess... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 5,362 | intellij-community | Apache License 2.0 |
ospf-kotlin-core/src/main/fuookami/ospf/kotlin/core/frontend/expression/symbol/linear_function/SatisfiedAmountInequality.kt | fuookami | 359,831,793 | false | {"Kotlin": 2440181, "Python": 6629} | package fuookami.ospf.kotlin.core.frontend.expression.symbol.linear_function
import org.apache.logging.log4j.kotlin.*
import fuookami.ospf.kotlin.utils.math.*
import fuookami.ospf.kotlin.utils.functional.*
import fuookami.ospf.kotlin.utils.multi_array.*
import fuookami.ospf.kotlin.core.frontend.variable.*
import fuook... | 0 | Kotlin | 0 | 4 | b34cda509b31884e6a15d77f00a6134d001868de | 12,372 | ospf-kotlin | Apache License 2.0 |
app/src/main/java/com/example/android/marsphotos/network/MarsApiService.kt | kbhh | 511,225,618 | false | {"Kotlin": 9860} | package com.example.android.marsphotos
import com.example.android.marsphotos.network.MarsPhoto
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import retrofit2.Retrofit
import retrofit2.converter.moshi.MoshiConverterFactory
import retrofit2.http.GET
private val moshi ... | 0 | Kotlin | 0 | 0 | 0f6437aa87e61bcdf8ebd806b71a3bc75e0a98e6 | 820 | MarsPhotos | Apache License 2.0 |
app/src/main/java/com/lighttigerxiv/simple/mp/compose/backend/realm/collections/Album.kt | jpbandroid | 733,977,750 | false | {"Kotlin": 458602} | package com.jpb.music.compose.backend.realm.collections
import io.realm.kotlin.types.RealmObject
import io.realm.kotlin.types.annotations.PrimaryKey
class Album: RealmObject {
@PrimaryKey var id: Long = 0L
var artistId: Long = 0L
var name: String = ""
} | 0 | Kotlin | 0 | 0 | e53569c3ebe0cba05a70519805ffb6c97137fe1e | 267 | jpbMusic-Compose | MIT License |
src/main/kotlin/org/misarch/shipment/persistence/repository/ShipmentMethodRepository.kt | MiSArch | 761,247,429 | false | {"Kotlin": 103125, "Shell": 748, "Dockerfile": 219} | package org.misarch.shipment.persistence.repository
import com.infobip.spring.data.r2dbc.QuerydslR2dbcRepository
import org.misarch.shipment.persistence.model.ShipmentMethodEntity
import org.springframework.stereotype.Repository
import java.util.*
/**
* Repository for [ShipmentMethodEntity]s
*/
@Repository
interfac... | 0 | Kotlin | 0 | 0 | 634bf9623e868f1822a6b8e79bf3372993c654b7 | 400 | shipment | MIT License |
shared/core/src/main/java/com/sadri/core/domain/executor/DispatcherProviderImpl.kt | sepehrsadri | 577,511,564 | false | {"Kotlin": 57847} | package com.sadri.core.domain.executor
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
class DispatcherProviderImpl : DispatcherProvider {
override val ui: CoroutineDispatcher
get() = Dispatchers.Main
override val io: CoroutineDispatcher
get() = Dispatchers.IO
overrid... | 0 | Kotlin | 0 | 0 | 2ee26111d7ff892d2f1d23c182894245cb7e8258 | 388 | KittenAppComposeUI | Apache License 2.0 |
mobile/src/main/java/com/github/ssa/plugin/NoPlugin.kt | FakeTrader | 76,080,289 | true | {"Kotlin": 603376, "C": 39979, "Makefile": 16869, "C++": 5312, "Batchfile": 3611, "Shell": 3486, "Python": 3428, "Java": 2916, "HTML": 2874, "Perl": 280, "Dockerfile": 212} | package com.github.ssa.plugin
import com.github.ssa.App.Companion.app
object NoPlugin : Plugin() {
override val id: String get() = ""
override val label: CharSequence get() = app.getText(com.github.ssa.R.string.plugin_disabled)
}
| 0 | Kotlin | 0 | 0 | 3559e6b101546750e18d1e79beb5e4933b7cd3d7 | 240 | shadowsocks-android | ISC License |
app/src/main/java/openfoodfacts/github/scrachx/openfood/models/Nutriment.kt | openfoodfacts | 35,174,991 | false | null | package openfoodfacts.rackluxury.scrachx.openfood.models
import openfoodfacts.rackluxury.scrachx.openfood.R
import openfoodfacts.rackluxury.scrachx.openfood.models.Nutriment.*
enum class Nutriment(val key: String) {
ENERGY_KCAL("energy-kcal"),
ENERGY_KJ("energy-kj"),
ENERGY_FROM_FAT("energy-from-fat"),
... | 390 | null | 447 | 772 | 836bab540ec9e2792b692a3b25ff61e444fae045 | 6,051 | openfoodfacts-androidapp | Apache License 2.0 |
libraries/navigation/src/nonAndroidMain/kotlin/com/hoc081098/compose_multiplatform_kmpviewmodel_sample/navigation/internal/StoreViewModel.kt | hoc081098 | 675,918,221 | false | null | /**
* Copied from [com.freeletics.khonshu.navigation.compose.internal.StoreViewModel.kt](https://github.com/freeletics/khonshu/blob/de0e8f812d89303ac347119d5c448bc40224d4f2/navigation-experimental/src/main/kotlin/com/freeletics/khonshu/navigation/compose/internal/StoreViewModel.kt).
*/
package com.hoc081098.compose_... | 12 | null | 4 | 8 | 539c189185a5c77646e020928ec3a23334722317 | 1,518 | Compose-Multiplatform-KmpViewModel-Unsplash-Sample | Apache License 2.0 |
src/main/kotlin/algorithms/sorting/QuickSort.kt | ibado | 484,821,732 | false | null | package algorithms.sorting
class QuickSort : Sort {
override fun <T : Comparable<T>> invoke(target: List<T>): List<T> {
if (target.isEmpty()) return emptyList()
val pivot = target.last()
val left = mutableListOf<T>()
val right = mutableListOf<T>()
for (i in 0 until target... | 0 | Kotlin | 0 | 0 | ede1947912874b408697c91acd2df9b932b41ab5 | 578 | Computer-science-fundamentals | MIT License |
src/main/kotlin/com/arkivanov/composnake/DefaultGame.kt | arkivanov | 355,491,169 | false | null | package com.arkivanov.composnake
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
class DefaultGame : Game {
private val _board: MutableState<Board>
private val randomPointGenerator: RandomPointGenerator
init {
val ... | 1 | null | 1 | 66 | 6bc96a46d577e4d95d09d6f33730e4ff0afbdc1e | 3,079 | CompoSnake | MIT License |
src/main/kotlin/domain/model/Config.kt | omuomugin | 264,404,491 | false | null | package domain.model
data class Config(
val labels: List<Label>
)
| 0 | Kotlin | 0 | 0 | e39ab93c5de45e849750b3b70db728b9bff67025 | 71 | labelit | MIT License |
app/src/test/java/com/arjanvlek/oxygenupdater/models/SystemVersionPropertiesTest.kt | iGotYourBackMr | 254,597,651 | true | {"Kotlin": 640563, "Java": 101703} | package com.arjanvlek.oxygenupdater.models
import com.arjanvlek.oxygenupdater.OxygenUpdater
import com.arjanvlek.oxygenupdater.utils.Utils.checkDeviceOsSpec
import java.lang.reflect.InvocationTargetException
import java.util.*
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertSa... | 0 | null | 0 | 0 | 884766371e62969831f2933ba790bbec4c2c1613 | 10,593 | oxygen-updater | MIT License |
app/src/main/java/com/febers/uestc_bbs/module/message/view/MessageFragment.kt | Febers | 135,606,653 | false | null | package com.febers.uestc_bbs.module.message.view
import android.os.Bundle
import androidx.annotation.UiThread
import androidx.recyclerview.widget.LinearLayoutManager
import com.febers.uestc_bbs.MyApp
import com.febers.uestc_bbs.R
import com.febers.uestc_bbs.base.*
import com.febers.uestc_bbs.entity.*
import com.febers... | 1 | Kotlin | 11 | 41 | b9da253984e2febc235121ac6745bfbc215a7609 | 8,746 | UESTC_BBS | Apache License 2.0 |
projects/workforce-allocations-to-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/ManagerGenerator.kt | ministryofjustice | 500,855,647 | false | null | package uk.gov.justice.digital.hmpps.data.generator
import uk.gov.justice.digital.hmpps.datetime.EuropeLondon
import uk.gov.justice.digital.hmpps.integrations.delius.allocations.entity.ManagerBaseEntity
import uk.gov.justice.digital.hmpps.integrations.delius.provider.Provider
import uk.gov.justice.digital.hmpps.integr... | 5 | Kotlin | 0 | 2 | f7042c113b7cfd4d439c6c77231a1a28f93e9485 | 1,565 | hmpps-probation-integration-services | MIT License |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/email/incontext/prompt/EmailProtectionInContextSignUpPromptFragment.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.autofill.impl.email.incontext.prompt
import android.content.Context
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.setFragmentResult
import androidx.lifecycle... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 5,005 | DuckDuckGo | Apache License 2.0 |
idea/testData/run/ClassesAndObjects/module/src/test.kt | JakeWharton | 99,388,807 | false | null | package q
import kotlin.platform.platformStatic
// RUN: q.Foo
object Foo {
// RUN: q.Foo
platformStatic fun main(s: Array<String>) {
println("Foo")
}
// RUN: q.Foo.InnerFoo
class InnerFoo {
companion object {
// RUN: q.Foo.InnerFoo
platformStatic fun main(s... | 284 | null | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,339 | kotlin | Apache License 2.0 |
koncat-compile-contract/src/main/kotlin/me/xx2bab/koncat/contract/KoncatArgumentsContract.kt | 2BAB | 433,810,120 | false | {"Kotlin": 83292, "Shell": 128} | package me.xx2bab.koncat.contract
import kotlinx.serialization.Serializable
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromStream
import java.io.File
@Serializable
data class KoncatArgumentsContract(
val projectName: String,
val k... | 3 | Kotlin | 3 | 57 | 04e6400fe06fb8d099ed31c8f3ed246f8c805ac6 | 1,107 | Koncat | Apache License 2.0 |
src/main/kotlin/com/github/breninsul/webfluxlogging/client/WebClientLoggingAutoConfig.kt | BreninSul | 631,416,800 | false | {"Kotlin": 50389} | /*
* MIT License
*
* Copyright (c) 2023 BreninSul
*
* 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... | 0 | Kotlin | 0 | 0 | 6c89ff1e860f010291df35b2d29780a26ff4a179 | 3,597 | webflux-request-logging | MIT License |
src/main/kotlin/no/nav/helse/inntektsmeldingsvarsel/varsling/VarslingMapper.kt | navikt | 255,909,562 | false | null | package no.nav.helse.inntektsmeldingsvarsel.varsling
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.helse.inntektsmeldingsvarsel.domene.varsling.Varsling
import no.nav.helse.inntektsmeldingsvarsel.domene.varsling.repository.VarslingDbEntity
class ... | 6 | Kotlin | 0 | 0 | a519ca65a4c93e277d5c6395e4e38b33678eb99a | 1,121 | im-varsel | MIT License |
app/src/main/java/com/oreo/status/hub/ui/whatsapp/WhatsappPagerAdapter.kt | africantechdotworld | 842,383,119 | false | {"Kotlin": 22124} | package com.oreo.status.hub.ui.whabus
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.oreo.status.hub.fragments.whabus.WhabusStatusFragment
import com.oreo.status.hub.fragments.whabus.WhabusVideoFragment
import com.o... | 0 | Kotlin | 0 | 0 | 61994e1c419fd663f90822d95388a8851b04e55a | 932 | status-hub | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/hover/stax/hover/BountyContract.kt | UseHover | 286,494,631 | false | {"Kotlin": 1033610, "Java": 88968, "Shell": 274, "Ruby": 235} | /*
* Copyright 2023 Stax
*
* 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 wri... | 106 | Kotlin | 72 | 79 | 5b735dc215b63533420fe899c579a42a44f598ea | 1,868 | Stax | Apache License 2.0 |
src/main/kotlin/pm/n2/hajlib/event/EventHandler.kt | n2pm | 657,755,321 | false | {"Kotlin": 12266, "Java": 4332} | package pm.n2.hajlib.event
/**
* Marks a function as an event handler.
* The function must have a single parameter of the event type.
*/
@Target(AnnotationTarget.FUNCTION)
annotation class EventHandler
| 0 | Kotlin | 0 | 0 | 449af9b78d74ec5a8c1b9af935441f1e8d04b382 | 206 | hajlib | MIT License |
app/src/main/kotlin/com/w10group/hertzdictionary/app/core/view/CurveView.kt | qiaoyuang | 119,500,508 | false | null | package com.w10group.hertzdictionary.app.core.view
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.core.content.ContextCompat
import com.w10group.hertzdictionary.app.R
import com.w10group.hertzdictionary.... | 0 | Kotlin | 2 | 10 | 3d52dafa3d3cf89f483d50f4721c3f42a0bb5536 | 11,216 | HertzDictionary | Apache License 2.0 |
src/main/kotlin/edu/rit/gis/sunspec/models/model_12.kt | wz2b | 303,254,575 | true | {"Kotlin": 556515} | /*
* Model 12 - model_12
*/
package edu.rit.gis.sunspec.models
import edu.rit.gis.sunspec.annotations.*
import edu.rit.gis.sunspec.parser.SunSpecByteBuffer
import edu.rit.gis.sunspec.parser.SunSpecModelBase
data class Model_12 (
@SunSpecPoint(id="ID", label="Model ID", offset=0, registers=1, description="Model... | 0 | Kotlin | 0 | 0 | bfdbbff1764a7900eaf6427132c4e04bd2cb4f64 | 4,011 | sunspec-models-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/aboust/develop_guide/widget/recyclerview/DividerAlignChildViewItemDecoration.kt | cyzaoj | 233,992,143 | false | null | package com.aboust.develop_guide.widget.recyclerview
import android.graphics.Canvas
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.view.View
import androidx.annotation.IntDef
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayou... | 0 | Kotlin | 0 | 0 | 93f09425f686d1ea1476202ec00bedeeef5a1e40 | 1,743 | Android_Develop_Guide | MIT License |
src/test/kotlin/org/rust/lang/core/mir/MirBuildTest.kt | intellij-rust | 42,619,487 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 5, "Markdown": 11, "TOML": 19, "Shell": 2, "Text": 124, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 140, "Kotlin": 2284, "INI": 3, "ANTLR": 1, "Rust": 362, "YAML": 131, "RenderScript": 1, "JSON": 6, "HTML": 198, "SVG": 136, "JFlex": 1, "Java": 1, "Python": 37} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.mir
import com.intellij.openapi.util.io.FileUtil
import com.intellij.testFramework.UsefulTestCase
import junit.framework.TestCase
import org.intellij.lang.annotations.Language
import o... | 1,841 | Kotlin | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 8,501 | intellij-rust | MIT License |
code/Samples/app/src/main/java/com/ky/demo/util/AndroidUtils.kt | androidKy | 146,855,123 | false | null | package com.ky.demo.util
import android.util.Log
import java.io.BufferedReader
import java.io.InputStreamReader
/**
* description:
* author:kyXiao
* date:2019/5/27
*/
class AndroidUtils {
companion object {
private val TAG by lazy { AndroidUtils::class.java.simpleName }
fun getRunningProcess()... | 0 | Kotlin | 0 | 0 | 44e060c1380a8c071939cb136facb744d7268adb | 700 | android-study-note | Apache License 2.0 |
src/test/java/com/vladsch/md/nav/editor/util/HtmlCompatibilityTest.kt | vsch | 32,095,357 | false | {"Kotlin": 2420465, "Java": 2294749, "HTML": 131988, "JavaScript": 68307, "CSS": 64158, "Python": 486} | /*
* Copyright (c) 2015-2019 Vladimir Schneider <vladimir.schneider@gmail.com>
*
* 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 th... | 134 | Kotlin | 131 | 809 | ec413c0e1b784ff7309ef073ddb4907d04345073 | 8,547 | idea-multimarkdown | Apache License 2.0 |
test-suite-kotlin-ksp/src/test/kotlin/io/micronaut/docs/aop/around/NotNullInterceptor.kt | micronaut-projects | 124,230,204 | false | null | /*
* Copyright 2017-2020 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 753 | null | 1061 | 6,059 | c9144646b31b23bd3c4150dec8ddd519947e55cf | 1,613 | micronaut-core | Apache License 2.0 |
lib/src/main/java/me/jessyan/retrofiturlmanager/parser/SuperUrlParser.kt | genaku | 284,626,937 | true | {"Kotlin": 55405, "Java": 16706} | /*
* Copyright 2018 JessYan
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 0 | Kotlin | 0 | 0 | f9a4fb5b752bc68cfc956a359e227963f6fb7bed | 6,647 | RetrofitUrlManager | Apache License 2.0 |
pico-automator/src/main/java/com/github/aivanovski/picoautomator/domain/steps/AssertVisible.kt | aivanovski | 691,067,002 | false | {"Kotlin": 96751} | package com.github.aivanovski.picoautomator.domain.steps
import com.github.aivanovski.picoautomator.data.adb.AdbExecutor
import com.github.aivanovski.picoautomator.data.adb.command.GetUiTreeCommand
import com.github.aivanovski.picoautomator.domain.entity.Either
import com.github.aivanovski.picoautomator.domain.entity.... | 1 | Kotlin | 0 | 0 | 75b47d8207239b5d6d30fee09949a999c5901655 | 2,028 | pico-automator | Apache License 2.0 |
src/main/kotlin/io/runescript/plugin/lang/psi/refs/RsDynamicExpressionReference.kt | waleedyaseen | 642,509,853 | false | {"Kotlin": 348987, "Java": 258240, "Lex": 11777, "HTML": 1047} | package io.runescript.plugin.lang.psi.refs
import com.intellij.codeInsight.lookup.LookupElement
import com.intellij.psi.*
import com.intellij.psi.search.GlobalSearchScope
import com.intellij.psi.stubs.StubIndex
import io.runescript.plugin.lang.psi.RsDynamicExpression
import io.runescript.plugin.lang.psi.RsScript
impor... | 7 | Kotlin | 1 | 0 | 95deed024eaaed860e616b8ee46a30664c9a0793 | 2,669 | intellij-runescript | MIT License |
actions/src/git/git_status_opt_t.kt | hubvd | 388,790,188 | false | {"Kotlin": 250616, "Python": 22012, "Shell": 7638, "JavaScript": 922} | @file:Suppress("ClassName", "ktlint:standard:filename")
package com.github.hubvd.odootools.actions.git
enum class git_status_opt_t(val value: Int) {
GIT_STATUS_OPT_INCLUDE_UNTRACKED(1 shl 0),
GIT_STATUS_OPT_INCLUDE_IGNORED(1 shl 1),
GIT_STATUS_OPT_INCLUDE_UNMODIFIED(1 shl 2),
GIT_STATUS_OPT_EXCLUDE_SU... | 0 | Kotlin | 5 | 5 | d2d925c3b45161754c5dcafaaae2ba287ba4d86a | 952 | odoo-tools | MIT License |
src/main/kotlin/dev/bitflow/kfox/context/ButtonContext.kt | WinteryFox | 475,625,210 | false | {"Kotlin": 74517} | package dev.bitflow.kfox.context
import dev.bitflow.kfox.KFox
import dev.bitflow.kfox.data.ComponentRegistry
import dev.kord.core.Kord
import dev.kord.core.behavior.interaction.response.EphemeralMessageInteractionResponseBehavior
import dev.kord.core.behavior.interaction.response.PublicMessageInteractionResponseBehavi... | 0 | Kotlin | 0 | 4 | b6fc0b280468f52f9126bb015430cea3bfbffcc2 | 1,410 | KFox | Apache License 2.0 |
app/src/main/java/com/vobbla16/mesh/domain/repository/MeshRepository.kt | x3lfyn | 654,997,267 | false | null | package com.vobbla16.mesh.domain.repository
import com.vobbla16.mesh.common.structures.OrLoading
import com.vobbla16.mesh.common.structures.Resource
import com.vobbla16.mesh.domain.model.acadYears.AcademicYearItemModel
import com.vobbla16.mesh.domain.model.classmates.ClassmateModel
import com.vobbla16.mesh.domain.mode... | 5 | null | 1 | 6 | f4e73600627cd792569ffbf64e335ec8b9edec08 | 1,864 | libremesh | MIT License |
app/src/main/java/com/puutaro/commandclick/proccess/edit/edit_text_support_view/lib/DragSortListViewProducer.kt | puutaro | 596,852,758 | false | null | package com.puutaro.commandclick.proccess.edit.edit_text_support_view.lib
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.Canvas
import android.view.Gravity
import android.widget.Button
import android.widget.LinearLayout
import android.widget... | 2 | Kotlin | 1 | 36 | b2e17401ae2d7d81b4aaf6b80c204b8bdb0e80c1 | 9,403 | CommandClick | MIT License |
modules/views-coroutines-material/src/androidMain/kotlin/splitties/views/coroutines/material/FloatingActionButton.kt | LouisCAD | 65,558,914 | false | null | /*
* Copyright 2019 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.views.coroutines.material
import com.google.android.material.floatingactionbutton.FloatingActionButton
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.resume
/**
* Enables... | 53 | null | 160 | 2,476 | 1ed56ba2779f31dbf909509c955fce7b9768e208 | 1,172 | Splitties | Apache License 2.0 |
uicomponent-compose/main/src/test/java/ExampleUnitTest.kt | DroidKaigi | 283,062,475 | false | null | import org.junit.Assert
import org.junit.Test
class ExampleUnitTest {
/**
* For fixing build error
* * What went wrong:
* Execution failed for task ':uicomponent-compose:main:transformDebugUnitTestClassesWithAsm'.
* > java.nio.file.NoSuchFileException:
/home/runner/work/conference-app-2021... | 45 | Kotlin | 189 | 633 | 3fb47a7b7b245e5a7c7c66d6c18cb7d2a7b295f2 | 511 | conference-app-2021 | Apache License 2.0 |
common/common_base/src/main/java/com/cl/common_base/bean/RichTextData.kt | alizhijun | 528,318,389 | false | null | package com.cl.common_base.bean
import com.chad.library.adapter.base.entity.MultiItemEntity
import com.cl.common_base.BaseBean
import com.google.gson.annotations.SerializedName
data class RichTextData(
val flushingWeigh: String? = null, // 冲刷期重量
val name: String? = null, // 文档名称
val txtId: String? = null,... | 0 | Kotlin | 0 | 0 | e2de221f77fc9e2e0237570252aa4985b002d91d | 3,848 | abby | Apache License 2.0 |
app/src/main/java/io/github/gusandrianos/foxforreddit/data/models/ChildrenItem.kt | idalez | 288,726,149 | false | {"Java": 261363, "Kotlin": 161585} | package io.github.gusandrianos.foxforreddit.data.models
import com.google.gson.annotations.SerializedName
class ChildrenItem(val loadMoreChild: String) {
@SerializedName("data")
val data: CommentData? = null
@SerializedName("kind")
val kind: String? = null
} | 1 | null | 1 | 1 | a35f0675f322d366a6270dbc4e2d5ccda6580fe9 | 277 | fox-for-reddit | MIT License |
src/main/kotlin/no/nav/meldeplikt/meldekortservice/service/SoapService.kt | navikt | 207,759,254 | false | null | package no.nav.meldeplikt.meldekortservice.service
import no.aetat.arena.mk_meldekort_kontrollert.MeldekortKontrollertType
import no.nav.meldeplikt.meldekortservice.model.WeblogicPing
import no.nav.meldeplikt.meldekortservice.model.meldekortdetaljer.Meldekortdetaljer
interface SoapService {
fun kontrollerMeldekor... | 0 | Kotlin | 1 | 0 | 982e896d5b98ff1cf0abf8fcc58b2a7f7bde8e87 | 424 | meldekortservice | MIT License |
app/src/main/java/com/cyl/musiclake/ui/music/playqueue/PlayQueueAdapter.kt | caiyonglong | 55,852,788 | false | null | package com.cyl.musiclake.ui.music.playqueue
import androidx.core.content.ContextCompat
import android.view.View
import android.widget.TextView
import com.chad.library.adapter.base.BaseItemDraggableAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.cyl.musiclake.R
import com.cyl.musiclake.api.musi... | 8 | null | 455 | 2,316 | c7824199699c218b192d66036aa56fafa3164cfb | 4,361 | MusicLake | Apache License 2.0 |
compiler/psi/src/org/jetbrains/kotlin/psi/KtClass.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.psi
import com.intellij.lang.ASTNode
import com.intellij.psi.PsiElement
import c... | 184 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,572 | kotlin | Apache License 2.0 |
goofy/oneko/src/main/kotlin/com/deflatedpickle/rawky/goofy/oneko/ONekoPlugin.kt | DeflatedPickle | 197,672,095 | false | {"Kotlin": 641980, "Python": 2204} | @file:Suppress("SpellCheckingInspection")
package com.deflatedpickle.rawky.goofy.oneko
import com.deflatedpickle.haruhi.api.constants.MenuCategory
import com.deflatedpickle.haruhi.api.plugin.Plugin
import com.deflatedpickle.haruhi.api.plugin.PluginType
import com.deflatedpickle.haruhi.event.EventProgramFinishSetup
im... | 7 | Kotlin | 6 | 27 | 81dafc9065f76fad8ffe0c10ad6cc9ed26c7965f | 1,629 | Rawky | MIT License |
app/src/main/java/com/example/myapplication/ui/Ai.kt | DeegayuA | 755,910,174 | false | {"Kotlin": 22632} | package com.example.myapplication
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | cdcfc49002ed3c6af9dc93dffd8c4a2f9c4fdeb1 | 5,409 | SnapLearn | MIT License |
app/src/main/java/com/example/myapplication/ui/Ai.kt | DeegayuA | 755,910,174 | false | {"Kotlin": 22632} | package com.example.myapplication
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... | 0 | Kotlin | 0 | 0 | cdcfc49002ed3c6af9dc93dffd8c4a2f9c4fdeb1 | 5,409 | SnapLearn | MIT License |
nlp/model/storage-mongo/src/main/kotlin/NlpApplicationConfigurationMongoDAO.kt | theopenconversationkit | 84,538,053 | false | {"Kotlin": 6173880, "TypeScript": 1286450, "HTML": 532576, "Python": 376720, "SCSS": 79512, "CSS": 66318, "Shell": 12085, "JavaScript": 1849} | /*
* Copyright (C) 2017 VSCT
*
* 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 wri... | 163 | Kotlin | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 2,827 | tock | Apache License 2.0 |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/ui/destinations/usage/components/TariffProjectionTilesAdaptive.kt | ryanw-mobile | 794,752,204 | false | {"Kotlin": 1436400, "Ruby": 2466, "Swift": 693} | /*
* Copyright (c) 2024. RW MobiMedia UK Limited
*
* Contributions made by other developers remain the property of their respective authors but are licensed
* to RW MobiMedia UK Limited and others under the same licence terms as the main project, as outlined in
* the LICENSE file.
*
* RW MobiMedia UK Limited res... | 19 | Kotlin | 10 | 145 | 67e4ea568fbae25b0ee59982bd97dcbe9c52a2a8 | 6,917 | OctoMeter | Creative Commons Attribution 4.0 International |
http/src/test/kotlin/io/wavebeans/http/AudioServiceSpec.kt | WaveBeans | 174,378,458 | false | {"Kotlin": 1263856, "Shell": 6924, "Dockerfile": 408} | package io.wavebeans.http
import assertk.Assert
import assertk.all
import assertk.assertThat
import assertk.assertions.*
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.eq
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import io.wavebeans.lib.*
import io.w... | 26 | Kotlin | 0 | 21 | 2a0eb6b481f0f848a7e66f7cb4c395ddb47952d1 | 9,239 | wavebeans | Apache License 2.0 |
Firebase_android/app/src/main/java/allanksr/com/firebase/cloudFirestore/FireStoreView.kt | Allanksr | 312,747,617 | false | null | package allanksr.com.firebase.cloudFirestore
interface FireStoreView {
fun waitResult()
fun setError(error: String)
fun getData()
} | 0 | Kotlin | 0 | 0 | 69c12649a2531c3fa728cbbbe2a8cacb1fea9756 | 144 | FirebaseApi | MIT License |
owl2java/src/main/kotlin/io/clouditor/graph/SemanticNodeGenerator.kt | clouditor | 383,231,250 | false | null | package io.clouditor.graph
import kotlin.Throws
import kotlin.jvm.JvmStatic
import org.jboss.forge.roaster.model.source.JavaClassSource
import org.apache.commons.lang3.StringUtils
import org.semanticweb.owlapi.model.OWLOntologyCreationException
import java.io.File
import java.io.FileWriter
import java.io.IOException
i... | 9 | Kotlin | 1 | 8 | 1677a4114b11871f2e7c6791e6f46be5a538d4e9 | 13,338 | cloud-property-graph | Apache License 2.0 |
app/composeApp/src/iosMain/kotlin/main.kt | alexaragao | 809,759,421 | false | {"Kotlin": 126157, "Dockerfile": 709, "Swift": 522} | import androidx.compose.ui.window.ComposeUIViewController
import com.xboxgamecollection.app.App
import platform.UIKit.UIViewController
fun MainViewController(): UIViewController = ComposeUIViewController { App() }
| 0 | Kotlin | 0 | 1 | 25cdf1704a2f5a9a587dce225cb612df731c38e7 | 215 | xbox-game-collection-app | MIT License |
src/main/kotlin/pubg/radar/ui/GLMap.kt | whitewingz2017 | 129,306,460 | false | null | @file:Suppress("NAME_SHADOWING")
package pubg.radar.ui
//import pubg.radar.deserializer.channel.ActorChannel.Companion.actorHasWeapons
//import pubg.radar.deserializer.channel.ActorChannel.Companion.weapons
import com.badlogic.gdx.ApplicationListener
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.Input.Buttons.L... | 2 | null | 3 | 7 | 0810899b85ac5bea69cb558c24c8241d5cc29ff3 | 76,557 | Gdar | The Unlicense |
wear/src/main/kotlin/com/weartools/weekdayutccomp/presentation/ui/Components.kt | amoledwatchfaces | 571,962,206 | false | null | package com.weartools.weekdayutccomp.presentation
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
imp... | 3 | null | 8 | 68 | f495275c519bf275b9eca72d6e0d958b4af2e64d | 7,783 | Complications-Suite-Wear-OS | Apache License 2.0 |
app/src/main/java/org/sesac/management/view/MainActivity.kt | SeSAC-3th | 703,429,812 | false | {"Kotlin": 178829} | package org.sesac.management.view
import android.graphics.Rect
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.Splas... | 4 | Kotlin | 4 | 0 | eed031a47183b52c48a333187264a1e42f8879f1 | 6,545 | SeSalChai | MIT License |
playground/src/main/java/androidx/essentials/playground/location/LocationServiceImpl.kt | kunal26das | 282,238,393 | false | null | package androidx.essentials.playground.location
import android.location.Location
import com.google.android.gms.location.FusedLocationProviderClient
import javax.inject.Inject
class LocationServiceImpl @Inject constructor(
private val fusedLocationProviderClient: FusedLocationProviderClient
) : LocationService {
... | 5 | Kotlin | 0 | 3 | 4968a43c341f728c905d3db7a124fd8b6e05041a | 435 | androidx-essentials | Apache License 2.0 |
src/main/kotlin/dev/capybaralabs/shipa/discord/interaction/model/ApplicationCommandType.kt | CapybaraLabs | 519,179,073 | false | {"Kotlin": 191942} | package dev.capybaralabs.shipa.discord.interaction.model
import com.fasterxml.jackson.annotation.JsonValue
/**
* [Discord Application Command Type](https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-types)
*/
enum class ApplicationCommandType(@JsonVa... | 0 | Kotlin | 0 | 1 | a8ad61315f5fb3bcbd1d85fbc0485b75ad22b5dc | 383 | shipa | MIT License |
plugins/server/io.ktor/pebble/2.3/install.kt | ktorio | 729,497,149 | false | {"Kotlin": 161300, "HTML": 329, "FreeMarker": 139} | import io.ktor.server.application.*
import io.ktor.server.pebble.*
import io.ktor.server.response.*
import io.pebbletemplates.pebble.loader.ClasspathLoader
public fun Application.configureTemplating() {
install(Pebble) {
loader(ClasspathLoader().apply {
prefix = "templates"
})
}
}
| 6 | Kotlin | 14 | 53 | fdbb3e01b1ab6c99ed8b6b7ff8940534515b7fe6 | 319 | ktor-plugin-registry | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/covid19/android/app/battery/BatteryOptimizationRequired.kt | nhsx-mirror | 289,296,773 | true | {"Kotlin": 2761696, "Shell": 1098, "Ruby": 847, "Batchfile": 197} | package uk.nhs.nhsx.covid19.android.app.battery
import com.jeroenmols.featureflag.framework.FeatureFlag
import com.jeroenmols.featureflag.framework.RuntimeBehavior
import javax.inject.Inject
class BatteryOptimizationRequired @Inject constructor(
private val batteryOptimizationChecker: BatteryOptimizationChecker,
... | 0 | Kotlin | 0 | 0 | 296c9decde1b5ed904b760ff77b05afc51f24281 | 681 | covid-19-app-android-ag-public | MIT License |
shared/src/commonMain/kotlin/me/saket/press/shared/sync/SyncCoordinator.kt | jeremiahespinosa | 292,441,707 | true | {"Kotlin": 439091, "Swift": 38925, "Java": 27798, "Ruby": 5879} | package me.saket.press.shared.sync
import com.badoo.reaktive.completable.Completable
import com.badoo.reaktive.completable.completableFromFunction
import com.badoo.reaktive.completable.doOnBeforeError
import com.badoo.reaktive.completable.onErrorComplete
import com.badoo.reaktive.completable.subscribe
import com.badoo... | 0 | null | 0 | 0 | 1de96c1b3e969ab462b9d5c3b6611d68d8024fda | 1,303 | press | Apache License 2.0 |
buildSrc/src/main/java/dependencies/Versions.kt | rintio | 418,429,604 | true | {"Java Properties": 2, "Shell": 3, "INI": 17, "Markdown": 16, "Batchfile": 1, "Java": 932, "Kotlin": 242, "HTML": 1, "JavaScript": 1, "Proguard": 2, "Gradle Kotlin DSL": 1} | package dependencies
object Versions {
const val android_compile_sdk = 30
const val android_min_sdk = 21
const val android_target_sdk = 29
const val androidx_fragment = "1.3.6"
const val okhttp3 = "4.9.1"
const val dagger = "2.38.1"
const val kotlin = "1.5.21"
const val mockito = "3.11... | 0 | null | 0 | 0 | e84d3350e4939a2ce2678c44395c15af19ead1f8 | 404 | collect | Apache License 2.0 |
src/main/kotlin/no/nav/familie/baks/mottak/integrasjoner/BarnetrygdOppgaveMapper.kt | navikt | 221,166,975 | false | {"Kotlin": 543188, "Java": 28936, "Dockerfile": 165} | package no.nav.familie.baks.mottak.integrasjoner
import no.nav.familie.baks.mottak.søknad.barnetrygd.domene.SøknadRepository
import no.nav.familie.baks.mottak.søknad.barnetrygd.domene.harEøsSteg
import no.nav.familie.kontrakter.felles.Behandlingstema
import no.nav.familie.kontrakter.felles.Tema
import no.nav.familie.k... | 4 | Kotlin | 0 | 1 | b53a012a103086d2c292a04cc5b378039f71bfa1 | 3,336 | familie-baks-mottak | MIT License |
plugins/markdown/core/src/org/intellij/plugins/markdown/extensions/common/InlineStylesExtension.kt | ingokegel | 72,937,917 | false | 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 org.intellij.plugins.markdown.extensions.common
import com.intellij.openapi.project.Project
import org.intellij.plugins.markdown.extensions.MarkdownBrowserPreviewExtensio... | 191 | null | 4372 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,712 | intellij-community | Apache License 2.0 |
uiuser/src/main/java/it/codingjam/github/ui/user/UserViewState.kt | fabioCollini | 94,247,429 | false | null | package it.codingjam.github.ui.user
import it.codingjam.github.core.UserDetail
import it.codingjam.github.vo.Lce
typealias UserViewState = Lce<UserDetail> | 2 | Kotlin | 36 | 274 | 5248bae79f8faaba81ec2ef87bec1a402d475763 | 156 | ArchitectureComponentsDemo | Apache License 2.0 |
src/main/kotlin/dev/arbjerg/lavalink/libraries/discord4j/D4JVoiceUpdateHandler.kt | lavalink-devs | 642,292,256 | false | null | @file:JvmName("D4JVoiceHandler")
package dev.arbjerg.lavalink.libraries.discord4j
import dev.arbjerg.lavalink.client.LavalinkClient
import dev.arbjerg.lavalink.client.LinkState
import dev.arbjerg.lavalink.client.loadbalancing.VoiceRegion
import dev.arbjerg.lavalink.protocol.v4.VoiceState
import discord4j.core.Gateway... | 3 | null | 5 | 9 | c6d430fefbab72a456a38afa5640f82c9ec32324 | 2,117 | lavalink-client | MIT License |
.teamcity/Buildship/Project.kt | eclipse | 32,398,083 | false | null | package Buildship
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.Project
import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle
import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.*
val individualBuildsForPhase1 = listOf(
Individua... | 294 | null | 175 | 511 | 942a601b12e2da706ad3bbcbf3950cc29b5c86ab | 21,379 | buildship | Naumen Public License |
platform/lang-impl/src/com/intellij/codeInsight/actions/ReaderModeListener.kt | code-general | 400,360,974 | false | null | // Copyright 2000-2021 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 com.intellij.codeInsight.actions
import com.intellij.application.options.colors.ReaderModeStatsCollector
import com.intellij.codeInsight.actions.ReaderModeSettings.Compan... | 1 | null | 1 | 1 | a00c61d009b376bdf62a2859dd757c0766894a28 | 3,958 | intellij-community | Apache License 2.0 |
Lesson1/01-Hello-World.kt | PhoenixNest | 477,221,062 | false | {"Kotlin": 43932, "Java": 236} | package Lesson1
// in kotlin, all the function default type is public
public fun main() {
println("Hello World")
test()
}
private fun test() {
println("This is a private function")
} | 0 | Kotlin | 0 | 0 | f5e5f226de5578dfedd754bf19cb3e686afba5b1 | 197 | Hello-Kotlin | MIT License |
screens/page/src/main/java/com/app/mviarch/screens/page/PageScreen.kt | MichailSamoylov | 594,727,251 | false | null | package com.app.mviarch.screens.page
import com.app.mviarch.screens.page.ui.PageFragment
import com.github.terrakok.cicerone.androidx.FragmentScreen
fun getPageScreen(nameOfPokemon: String) = FragmentScreen { PageFragment.newInstance(nameOfPokemon) } | 0 | Kotlin | 0 | 0 | e951a8d4f1b8c3de38be951d5aa734d52a21c1f6 | 252 | MVI-Arch | Apache License 2.0 |
apollo/src/commonMain/kotlin/org/hyperledger/identus/apollo/base64/Base64.kt | hyperledger | 535,641,324 | false | null | package io.iohk.atala.prism.apollo.base64
import kotlin.math.min
/**
* Base64 implementation
*/
internal final object Base64 {
/**
* Encode ByteArray to Base64 String
*/
fun encodeToString(input: ByteArray, encoding: Encoding = Encoding.Standard): String {
if (input.contentEquals("".encod... | 3 | null | 4 | 9 | 453aef6045323c1a348d7cf9c6c2d086ede5a53b | 21,250 | identus-apollo | Apache License 2.0 |
GrowthBook/src/commonMain/kotlin/com/sdk/growthbook/evaluators/GBConditionEvaluator.kt | growthbook | 445,362,249 | false | null | package com.sdk.growthbook.evaluators
import com.sdk.growthbook.Utils.GBCondition
import com.sdk.growthbook.Utils.GBUtils
import kotlinx.serialization.builtins.ListSerializer
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonElement
import kotlinx.... | 8 | null | 20 | 24 | b7bc211c29c68dc6b8361add740bbd07e475f416 | 19,468 | growthbook-kotlin | MIT License |
app/src/main/java/com/tiagohs/hqr/interceptors/FavoritesInterceptor.kt | tiagohs | 135,235,006 | false | null | package com.tiagohs.hqr.interceptors
import android.content.Context
import com.tiagohs.hqr.database.IComicsRepository
import com.tiagohs.hqr.database.IHistoryRepository
import com.tiagohs.hqr.database.ISourceRepository
import com.tiagohs.hqr.helpers.tools.ListPaginator
import com.tiagohs.hqr.helpers.tools.PreferenceHe... | 1 | Kotlin | 2 | 11 | 8a86fa1c66a9ba52afcf02bea4acbb674d8a473a | 2,496 | hqr-comics-reader | Apache License 2.0 |
idea/testData/completion/smart/ConstructorForGenericType.kt | staltz | 50,647,805 | true | {"Java": 15450397, "Kotlin": 8578737, "JavaScript": 176060, "HTML": 22810, "Lex": 17327, "Protocol Buffer": 13024, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | class Foo<T>
fun foo(p : Any){
var a : Foo<String> = <caret>
}
// EXIST: { lookupString:"Foo", itemText:"Foo<kotlin.String>()" }
| 1 | Java | 1 | 1 | f41f48b1124e2f162295718850426193ab55f43f | 135 | kotlin | Apache License 2.0 |
src/main/kotlin/com/wynnlab/base/BaseSpell.kt | WynnLab | 375,456,791 | false | null | package com.wynnlab.base
import com.wynnlab.WynnLabAPI
import org.bukkit.Bukkit
abstract class BaseSpell(private val maxTick: Int) : Runnable {
var t = -1
private var taskId = -1
open fun onCast() {}
open fun onTick() {}
open fun onCancel() {}
override fun run() {
++t
onT... | 0 | Kotlin | 0 | 1 | 371ad81f90ee2db5b15cceb4bf1524ee9e697f45 | 704 | WynnLab-API | MIT License |
data/src/main/java/com/petrulak/cleankotlin/data/source/local/dao/WeatherDao.kt | Petrulak | 104,648,833 | false | null | package com.petrulak.cleankotlin.data.source.local.dao
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Query
import com.petrulak.cleankotlin.data.source.local.model.WeatherEntity
import io.reactivex.Flowable
@Dao
interface WeatherDao {
@Qu... | 0 | Kotlin | 10 | 111 | 51033f30ecdb9573000454f1b8890d20c2438002 | 670 | android-kotlin-mvp-clean-architecture | MIT License |
core/src/gameobjects/JewelMove.kt | PatriotCodes | 114,823,813 | false | null | package gameobjects
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import physics.Movement
class JewelMove(xFrom: Float, yFrom: Float, xTo: Float, yTo: Float, val jewel : Jewel,
startSpeed: Float, topSpeed: Float = startSpeed, acceleration: Float = 0f) :
Movement(xFrom, yFrom, xTo, yTo, star... | 13 | Kotlin | 0 | 5 | 3c654ce4744c1e0dab9c8727c25738baabfd304f | 962 | Diamond-Story | MIT License |
ktor-io/jvm/test/io/ktor/utils/io/ByteBufferChannelTest.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2020 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.utils.io
import kotlinx.coroutines.*
import kotlinx.coroutines.debug.junit4.*
import org.junit.*
import java.io.*
import kotlin.test.*
import kotlin.test.Test
class ByteBuffe... | 9 | null | 774 | 9,308 | 9244f9a4a406f3eca06dc05d9ca0f7d7ec74a314 | 3,170 | ktor | Apache License 2.0 |
gmaven/src/main/kotlin/ru/rzn/gmyasoedov/gmaven/project/importing/kotlin/KotlinMavenPluginDataService.kt | grisha9 | 586,299,688 | false | null | package ru.rzn.gmyasoedov.gmaven.project.importing.kotlin
import com.intellij.openapi.externalSystem.model.DataNode
import com.intellij.openapi.externalSystem.model.project.ModuleData
import com.intellij.openapi.externalSystem.model.project.ProjectData
import com.intellij.openapi.externalSystem.service.project.IdeModi... | 3 | null | 0 | 12 | 824ec9cab804b12d27cd952d3cdbe7e541c162bf | 3,764 | gmaven-plugin | Apache License 2.0 |
android/src/main/kotlin/com/julow/environment_sensors/EnvironmentSensorsPlugin.kt | nhandrew | 345,823,761 | false | {"Dart": 7216, "Kotlin": 5445, "Swift": 2971, "Ruby": 2225, "Objective-C": 772} | package com.julow.environment_sensors
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin
import i... | 2 | Dart | 6 | 6 | 6d6ba7e014c26497ee96d4d297a674c6fcebd14f | 5,303 | environment_sensors | MIT License |
compose/test-utils/src/commonMain/kotlin/androidx/compose/testutils/ModifierTestUtils.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,641 | androidx | Apache License 2.0 |
app/src/main/java/ru/maxim/barybians/ui/fragment/chat/ChatRecyclerAdapter.kt | maximborodkin | 286,116,912 | false | null | package ru.maxim.barybians.ui.fragment.chat
import android.graphics.drawable.Animatable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.widget.AppCompatImageView
import androidx.appcompat.widget.AppCompatTextView
import ... | 0 | Kotlin | 1 | 4 | eb0dbd6e0e0e732f2d2721f7bf5fbe13fe6338ad | 3,930 | Barybians-Android-App | MIT License |
shared/src/commonMain/kotlin/com/takaotech/dashboard/model/github/TagDao.kt | TakaoTech | 761,297,714 | false | {"Kotlin": 301488, "Swift": 594, "HTML": 369, "Dockerfile": 348} | package com.takaotech.dashboard.model
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class TagDao(
@SerialName("id")
val id: Int,
@SerialName("name")
val name: String,
@SerialName("description")
val description: String? = null
)
@Serializable
data class Tag... | 6 | Kotlin | 0 | 2 | 10b1c4559d059234e968543dd5d975ee9b795107 | 430 | TTD | Apache License 2.0 |
src/main/kotlin/com/peasenet/mixinterface/IMinecraftClient.kt | gavinsmod | 493,304,032 | false | null | /*
* Copyright (c) 2022-2023. <NAME> and contributors.
*
* 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... | 1 | Kotlin | 0 | 21 | 740ecd3aff4f0fcab2aee10ffe6b9ca29d5c42f2 | 4,255 | minecraft-mod | MIT License |
arrow-inject-compiler-plugin/src/testData/box/value-arguments/a_polymorphic_provider_may_have_injection_arguments_which_are_polymorphically_resolved.kt | arrow-kt | 471,344,439 | false | null | package foo.bar
import arrow.inject.annotations.Inject
import foo.bar.annotations.Given
@Given internal fun intProvider(): Int = 42
data class Foo<A>(val n: A)
@Given internal fun <A> fooProvider(@Given x: A): Foo<A> = Foo(x)
@Inject fun <A> given(@Given value: A): A = value
fun box(): String {
val result = giv... | 13 | Kotlin | 2 | 9 | f2d62a93fa18fc7f2944687642c8ad01a0d23bf5 | 415 | arrow-proofs | Apache License 2.0 |
app/src/main/java/com/igweze/ebi/todosqlite/CategoryActivity.kt | ebi-igweze | 126,055,743 | false | null | package com.igweze.ebi.todosqlite
import android.app.AlertDialog
import android.app.LoaderManager
import android.databinding.ObservableArrayList
import android.os.Bundle
import android.content.ContentValues
import android.content.CursorLoader
import android.content.DialogInterface
import android.content.Loader
import ... | 0 | Kotlin | 0 | 0 | 6a3307fa3b2accfd7cb5f27fc69316a5939e726d | 5,547 | todosqlite | MIT License |
app/src/main/java/com/example/background/workers/WorkerUtils.kt | AnaLu72651718 | 523,479,436 | 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 | cfed93d248eabea2e62db57b16a2418746d1b358 | 6,794 | android-workmanager-master | Apache License 2.0 |
ktor-http/ktor-http-cio/jvm/src/io/ktor/http/cio/Pipeline.kt | jakobkmar | 323,173,348 | false | null | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.http.cio
import io.ktor.http.cio.internals.*
import io.ktor.server.cio.backend.*
import io.ktor.utils.io.*
import kotlinx.coroutines.*
@Deprecated("This is going to become pr... | 0 | null | 1 | 7 | ea35658a05cc085b97297a303a7c0de37efe0024 | 2,579 | ktor | Apache License 2.0 |
android/app/src/main/java/com/pda/screenshotmatcher2/views/fragments/SettingsFragment.kt | PDA-UR | 337,995,962 | false | null | package com.pda.screenshotmatcher2.views.fragments
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.view.HapticFeedbackConstants
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayou... | 9 | null | 0 | 8 | 54c05298543778ad0f15a0276aa626ab84cd4522 | 3,378 | Screenshotmatcher-2.0 | MIT License |
platform/lang-impl/src/com/intellij/codeInsight/completion/OffsetsInFile.kt | tnorbye | 170,095,405 | true | {"Java": 169603963, "Python": 25582594, "Kotlin": 6740047, "Groovy": 3535139, "HTML": 2117263, "C": 214294, "C++": 180123, "CSS": 172743, "JavaScript": 148969, "Lex": 148871, "XSLT": 113036, "Jupyter Notebook": 93222, "Shell": 60209, "NSIS": 58584, "Batchfile": 49961, "Roff": 37497, "Objective-C": 32636, "TeX": 25473, ... | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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... | 0 | Java | 0 | 1 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | 3,239 | intellij-community | Apache License 2.0 |
visionforge-solid/src/commonMain/kotlin/space/kscience/visionforge/solid/ColorAccessor.kt | mipt-npm | 174,502,624 | false | null | package space.kscience.visionforge.solid
import space.kscience.dataforge.meta.MutableItemProvider
import space.kscience.dataforge.meta.set
import space.kscience.dataforge.meta.value
import space.kscience.dataforge.names.Name
import space.kscience.dataforge.values.Value
import space.kscience.dataforge.values.asValue
im... | 11 | Kotlin | 5 | 25 | 456e01fcfa48f798a03cc5866acc5d4c557e00c3 | 1,397 | visionforge | Apache License 2.0 |
buildSrc/src/main/kotlin/AndroidTestLibs.kt | mobdev778 | 583,432,301 | false | null | sealed class AndroidTestLibs(val name: String) {
object testRunner : AndroidTestLibs("androidx.test:runner:1.2.0")
object extJUnit : AndroidTestLibs("androidx.test.ext:junit:1.1.5")
object espressoCore : AndroidTestLibs("androidx.test.espresso:espresso-core:3.5.1")
object uiTestJUnit4 : AndroidTestLibs... | 1 | Kotlin | 0 | 0 | b86aaf0e86c963c098d620b649b360cfa5277ae6 | 988 | yusupova-android-app | MIT License |
buildSrc/src/main/kotlin/AndroidTestLibs.kt | mobdev778 | 583,432,301 | false | null | sealed class AndroidTestLibs(val name: String) {
object testRunner : AndroidTestLibs("androidx.test:runner:1.2.0")
object extJUnit : AndroidTestLibs("androidx.test.ext:junit:1.1.5")
object espressoCore : AndroidTestLibs("androidx.test.espresso:espresso-core:3.5.1")
object uiTestJUnit4 : AndroidTestLibs... | 1 | Kotlin | 0 | 0 | b86aaf0e86c963c098d620b649b360cfa5277ae6 | 988 | yusupova-android-app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.