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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/tools/important/tankslua/LevelScripts.kt | dabigf5 | 752,112,579 | false | {"Kotlin": 48194, "Lua": 5284} | package tools.important.tankslua
import party.iroiro.luajava.Lua
import party.iroiro.luajava.LuaException
import party.iroiro.luajava.luajit.LuaJit
import party.iroiro.luajava.value.LuaValue
var currentLevelScript: LevelScript? = null
private set
fun clearCurrentLevelScript() {
currentLevelScript?.luaState?.... | 0 | Kotlin | 0 | 2 | 9a9cef853f320490e7d00588368f986f3f0dd5f8 | 3,250 | TanksLua | MIT License |
app/src/main/java/com/odhiambopaul/movie/data/entity/Genre.kt | paulodhiambo | 259,288,146 | false | null | package com.odhiambopaul.movie.data.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
data class Genre(
val id: Int, // 16
val name: String // Animation
) | 1 | Kotlin | 3 | 4 | 006a2bbe5fd1e128ca34c660d41fbab63b826013 | 182 | MovieApp | The Unlicense |
app/router/src/main/java/com/gmail/jiangyang5157/router/fragment/setup/AsFragmentActivityRouterHost.kt | jiangyang5157 | 553,993,370 | false | null | package com.gmail.jiangyang5157.router.fragment.setup
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.Lifecycle
internal class AsFragmentActivityRouterHost(
override val activity: FragmentActivity
) : FragmentRouterHost {
override val lifecycle: Lifecycle
get() = activity.life... | 0 | Kotlin | 0 | 0 | e514a86bbe149504508cc2ee23bf21c0984d3f48 | 328 | kotlin-multiplatform-mobile | MIT License |
app/src/main/java/club/anifox/android/domain/model/dto/anime/AnimeDetailsDto.kt | DeNyWho | 721,119,459 | false | {"Kotlin": 71162} | @file:UseSerializers(LocalDateSerializer::class, LocalDateTimeSerializer::class)
package club.anifox.android.domain.model.dto.anime
import club.anifox.android.domain.model.anime.AnimeDetails
import club.anifox.android.domain.model.anime.AnimeSeason
import club.anifox.android.domain.model.anime.AnimeStatus
import club... | 0 | Kotlin | 0 | 0 | 89853169b42e0b073275d99142870994ee2b310c | 2,838 | Anifox_Android | Apache License 2.0 |
android/src/oldarch/AwesomeLibrarySpec.kt | pnthach95 | 877,709,351 | false | {"Kotlin": 4948, "Ruby": 3280, "Objective-C": 2551, "TypeScript": 1771, "JavaScript": 1613, "Objective-C++": 1535, "C": 103, "Swift": 66} | package com.awesomelibrary
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.Promise
abstract class AwesomeLibrarySpec internal constructor(context: ReactApplicationContext) :
ReactContextBaseJavaModule(context) {
... | 0 | Kotlin | 0 | 0 | 76c612f6161d5819bf04d55a855e55fe0bd83da4 | 385 | awesome-library | MIT License |
UIViewLess/src/main/java/com/angcyo/uiview/less/kotlin/dialog/GridDialogConfig.kt | zhilangtaosha | 223,696,624 | false | {"Java": 4666343, "Kotlin": 1191272} | package com.angcyo.uiview.less.kotlin.dialog
import android.app.Dialog
import android.graphics.drawable.Drawable
import com.angcyo.uiview.less.R
import com.angcyo.uiview.less.kotlin.dslAdapter
import com.angcyo.uiview.less.kotlin.renderItem
import com.angcyo.uiview.less.recycler.RBaseViewHolder
import com.angcyo.uivie... | 0 | Java | 2 | 0 | 8a09b91edaa4a21a43b356f67d3e063e72df3a19 | 3,167 | UIKit | MIT License |
libs/rest/rest-tools/src/main/kotlin/net/corda/rest/tools/annotations/validation/utils/RestApiVersionUtils.kt | corda | 346,070,752 | false | {"Kotlin": 20585393, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.rest.tools.annotations.validation.utils
import net.corda.rest.annotations.RestApiVersion
internal tailrec fun RestApiVersion.isEqualOrChildOf(earlierVersion: RestApiVersion): Boolean {
if (this == earlierVersion) {
return true
}
this.parentVersion.let {
if (it == null) ... | 14 | Kotlin | 27 | 69 | 0766222eb6284c01ba321633e12b70f1a93ca04e | 415 | corda-runtime-os | Apache License 2.0 |
mealkitary-infrastructure/adapter-persistence-spring-data-jpa/src/main/kotlin/com/mealkitary/reservation/adapter/output/persistence/PaymentRepository.kt | le2sky | 640,586,872 | false | null | package com.mealkitary.reservation.adapter.output.persistence
import com.mealkitary.reservation.domain.payment.Payment
import org.springframework.data.jpa.repository.JpaRepository
import java.util.UUID
interface PaymentRepository : JpaRepository<Payment, UUID>
| 1 | Kotlin | 0 | 2 | 40ac08e4b87b597bae39c5e8f9ffe796806e5d8f | 263 | mealkitary-server | Apache License 2.0 |
replicator-api/src/main/kotlin/ru/splite/replicator/log/LogEntry.kt | olgio | 349,186,036 | false | null | package ru.splite.replicator.log
import kotlinx.serialization.Serializable
@Serializable
data class LogEntry(val term: Long, val command: ByteArray) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as LogE... | 0 | Kotlin | 0 | 0 | dea389a4db73c5c16e69cdea9964333cecd86a49 | 736 | replicator | Apache License 2.0 |
src/main/kotlin/com/example/decorator/coffee/Decaf.kt | bernovie | 589,173,234 | false | null | package com.example.decorator.coffee
import com.example.decorator.Beverage
class Decaf: Beverage {
override val description: String = "Decaf Coffee"
constructor(): super()
override fun cost(): Double {
return 1.05
}
} | 0 | Kotlin | 0 | 2 | f7be25b3e2d57bdc9d5208c0009b5cf7133ccdff | 246 | design-patterns | MIT License |
data/src/main/java/cat/jorcollmar/data/model/dto/ArtistDto.kt | jordicollmarin | 301,751,792 | false | null | package cat.jorcollmar.data.model.dto
data class ArtistDto(
val id: String,
val name: String?
) | 0 | Kotlin | 0 | 0 | f65a05afbac84f71a6b4ca5674cfd283d04add32 | 104 | SpotifyPanel | Apache License 2.0 |
app/app_shared/generated/java/com/knowledgespike/db/tables/Reserveumpiresmatches.kt | kevinrjones | 698,194,275 | false | {"Kotlin": 1647193} | /*
* This file is generated by jOOQ.
*/
package com.knowledgespike.db.tables
import com.knowledgespike.db.Cricketarchive
import com.knowledgespike.db.indexes.RESERVEUMPIRESMATCHES_MATCHID
import com.knowledgespike.db.indexes.RESERVEUMPIRESMATCHES_PERSONID
import com.knowledgespike.db.keys.RESERVEUMPIRESMATCHES_IBFK... | 0 | Kotlin | 0 | 0 | ddfe103bb49dda7a5ac553ac984008ea32acb4b4 | 8,817 | team-v-team | MIT License |
eventlog/eventlog-ports/eventlog-eventlistener-kafka/src/main/kotlin/co/nilin/opex/eventlog/ports/kafka/listener/consumer/OrderKafkaListener.kt | opexdev | 370,411,517 | false | null | package co.nilin.opex.eventlog.ports.kafka.listener.consumer
import co.nilin.opex.eventlog.ports.kafka.listener.inout.OrderRequestEvent
import co.nilin.opex.eventlog.ports.kafka.listener.spi.OrderSubmitRequestListener
import kotlinx.coroutines.ExecutorCoroutineDispatcher
import kotlinx.coroutines.runBlocking
import ko... | 29 | null | 9 | 51 | fedf3be46ee7fb85ca7177ae91b13dbc6f2e8a73 | 1,286 | core | MIT License |
src/main/kotlin/org/rust/ide/annotator/RustLiteralAnnotator.kt | alexpana | 56,848,447 | false | null | package org.rust.ide.annotator
import com.intellij.lang.annotation.Annotation
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.psi.PsiElement
import com.intellij.psi.tree.IElementType
import org.rust.lang.core.psi.RustLiteral
import org.rust.lang.co... | 1 | null | 1 | 1 | d375dcab92dff9ca6e891aad9b2fb3b78b1cedbb | 3,187 | intellij-rust | MIT License |
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt | mofada | 343,253,756 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | a023cca96e60d6283b29d1b74f85a12b04ae72a3 | 2,142 | ComposePuppyAdoption | Apache License 2.0 |
compiler/fir/java/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt | llzxcv2014 | 275,179,903 | true | {"Markdown": 67, "Gradle": 695, "Gradle Kotlin DSL": 485, "Java Properties": 14, "Shell": 10, "Ignore List": 12, "Batchfile": 9, "Git Attributes": 7, "Protocol Buffer": 12, "Java": 6518, "Kotlin": 58340, "Proguard": 12, "XML": 1595, "Text": 11521, "INI": 177, "JavaScript": 265, "JAR Manifest": 2, "Roff": 212, "Roff Man... | /*
* Copyright 2010-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/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.java.deserialization
import org.jetbrains.kotlin.descriptors.SourceElement
import org.jetbrains.kotlin.fir.FirSession
impo... | 0 | Kotlin | 0 | 0 | 66e53305bf2226356e7a7bfe90826054950e68ff | 9,403 | kotlin | Apache License 2.0 |
app/src/main/java/com/coupleblog/adapter/CB_EmailAdapter.kt | Yumin2019 | 412,790,011 | false | {"Kotlin": 547883, "Java": 37622} | package com.coupleblog.adapter
import com.coupleblog.fragment.mail.CB_MailBoxFragment
import com.coupleblog.fragment.mail.MailItemBinding
import com.coupleblog.model.CB_Mail
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import andr... | 1 | Kotlin | 0 | 1 | e4092ca0149a8cf76d3dcb49b54a7abf76d586db | 4,716 | CoupleBlog | MIT License |
platform/built-in-server/testSrc/RestApiTest.kt | martinwicke | 38,354,689 | false | null | package org.jetbrains.ide
import io.netty.handler.codec.http.HttpResponseStatus
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.hamcrest.CoreMatchers.equalTo
import org.jetbrains.ide.TestManager.TestDescriptor
import org.junit.Assert.assertThat
import java.net.URL
import java.n... | 0 | null | 0 | 1 | bbe1f614c266d4767b3cda667ec3fcd161c9bb6f | 3,490 | intellij-community | Apache License 2.0 |
nuget-tests/src/jetbrains/buildServer/nuget/tests/integration/feed/json/JsonRegistrationTest.kt | 38438-38438-org | 193,887,431 | false | null | package jetbrains.buildServer.nuget.tests.integration.feed.json
import org.apache.http.HttpStatus
import org.testng.annotations.Test
class JsonRegistrationTest : JsonFeedIntegrationTestBase() {
@Test
fun get_package_registrations() {
addMockPackage("MyPackage", "1.0.0.0")
addMockPackage("MyPa... | 1 | null | 1 | 1 | 6cff9f41569191e258c63b1140fdfbfe5f9a7be9 | 1,227 | teamcity-nuget-support | Apache License 2.0 |
compiler/testData/diagnostics/tests/secondaryConstructors/redeclarations.fir.kt | JetBrains | 3,432,266 | false | null | // !DIAGNOSTICS: -UNUSED_PARAMETER
class A(x: String = "", y: String = "") {
constructor(x: String, y: String): <!AMBIGUITY!>this<!>(x, y)
constructor(): <!AMBIGUITY!>this<!>("", "")
constructor(): <!AMBIGUITY!>this<!>("", "")
}
class B {
constructor(x: Int)
}
fun B(x: Int) {}
class Outer {
clas... | 4 | Kotlin | 5608 | 45,423 | 2db8f31966862388df4eba2702b2f92487e1d401 | 611 | kotlin | Apache License 2.0 |
src/main/kotlin/org/ethereum/lists/methodsignatures/ImportFromEtherscan.kt | ethereum-lists | 121,240,429 | false | null | package org.ethereum.lists.methodsignatures
import org.kethereum.abi.EthereumABI
import org.kethereum.abi.getAllFunctions
import org.kethereum.methodsignatures.toTextMethodSignature
import java.io.File
fun main() {
import()
}
private fun import() {
File("/home/ligi/git/etherscan_contract_analyzer/contracts/1... | 5 | null | 28 | 97 | 0ee722e516c91dc6a3de01c26ea06955123eeddb | 674 | 4bytes | MIT License |
kotlinP/src/main/java/com/jadyn/kotlinp/thread/thread-1-produce.kt | JadynAi | 136,196,478 | false | null | package com.jadyn.kotlinp.thread
import com.jadyn.kotlinp.coroutine.printWithThreadName
import java.util.*
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.thread
/**
*JadynAi since 5/4/21
*
* 生产者消费者队列
*/
fun main() {
Thread {
for (i in 0..9) {
produce1()
... | 0 | Kotlin | 6 | 17 | 9c5efa0da4346d9f3712333ca02356fa4616a904 | 1,193 | Kotlin-D | Apache License 2.0 |
kotlinP/src/main/java/com/jadyn/kotlinp/thread/thread-1-produce.kt | JadynAi | 136,196,478 | false | null | package com.jadyn.kotlinp.thread
import com.jadyn.kotlinp.coroutine.printWithThreadName
import java.util.*
import java.util.concurrent.locks.ReentrantLock
import kotlin.concurrent.thread
/**
*JadynAi since 5/4/21
*
* 生产者消费者队列
*/
fun main() {
Thread {
for (i in 0..9) {
produce1()
... | 0 | Kotlin | 6 | 17 | 9c5efa0da4346d9f3712333ca02356fa4616a904 | 1,193 | Kotlin-D | Apache License 2.0 |
app/src/main/java/de/bauerapps/resimulate/PostShockConfig.kt | GitHelge | 215,010,312 | false | null | package de.bauerapps.resimulate
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import de.bauerapps.resimulate.config.VitalSignConfig
import de.bauerapps.resimulate.helper.VSConfigType
import de.bauerapps.resimulate.view... | 5 | null | 2 | 2 | 98126117710e681aa93a21a5270aefc46ec17185 | 3,652 | resimulate | MIT License |
info/buildSrc/src/main/kotlin/org/cqfn/diktat/generation/docs/WarningsTableGenerator.kt | akuleshov7 | 280,211,043 | false | {"SVG": 2, "YAML": 20, "Maven POM": 9, "Markdown": 21, "Text": 1, "Ignore List": 1, "Git Attributes": 1, "Java": 1, "INI": 6, "JSON": 5, "Java Properties": 1, "Kotlin": 552, "Gradle Kotlin DSL": 7, "Shell": 3, "BibTeX": 1, "Makefile": 1, "TeX": 11, "Batchfile": 1, "Gradle": 1} | package org.cqfn.diktat.generation.docs
import org.cqfn.diktat.ruleset.constants.Warnings
import java.io.File
/**
* Path to diktat code style guide, which has links to code style chapters
*/
const val DIKTAT_GUIDE: String = "guide/diktat-coding-convention.md#"
/**
* Generates a table, which maps warning names to... | 1 | null | 1 | 1 | 9eefb12b73fd6b44d164199c3ef0295c8908054d | 1,512 | diKTat | MIT License |
platform/script-debugger/protocol/protocol-reader/src/TextOutput.kt | androidports | 115,100,208 | false | null | // Copyright 2000-2018 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.jetbrains.protocolReader
import java.util.*
val EMPTY_CHARS: CharArray = CharArray(0)
private const val indentGranularity = 2
class TextOutput(val out: StringBuilde... | 6 | null | 11 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 3,097 | intellij-community | Apache License 2.0 |
lib-droid-qr-gen/src/main/java/com/bhargavms/WrapperDroidQrGen/QRImageGenerator.kt | bhargavms | 78,631,458 | false | null | package com.bhargavms.WrapperDroidQrGen
import android.graphics.Bitmap
import com.mogra.zxing.BarcodeFormat
import com.mogra.zxing.MultiFormatWriter
import com.mogra.zxing.WriterException
import com.mogra.zxing.common.BitMatrix
import android.graphics.Color.BLACK
import android.graphics.Color.WHITE
/**
* Qr code i... | 1 | null | 1 | 1 | 74c0fed07c497edce0cd336c5127f603cc61f4f9 | 1,690 | QrCodeGenerator | Apache License 2.0 |
ModelViewIntentSample/search/src/main/java/com/novoda/movies/mvi/search/view/SearchResultsConverter.kt | mickelfeng | 15,562,716 | true | {"Markdown": 34, "Shell": 8, "Proguard": 6, "Java": 129, "Java Properties": 10, "HTML": 3, "Batchfile": 6, "Kotlin": 116, "INI": 1} | package com.novoda.movies.mvi.search.view
import com.novoda.movies.mvi.search.SearchResultItem
import com.novoda.movies.mvi.search.SearchResults
internal open class SearchResultsConverter {
fun convert(searchResults: SearchResults): ViewSearchResults =
ViewSearchResults(
searchResults.totalRe... | 0 | Java | 0 | 1 | f3999dcb3170617dda1ef3915c8ae0d8040f83a4 | 662 | android-demos | Apache License 2.0 |
src/Chapter11/11.2.1_LambdasWithReceivers3.kt | ldk123456 | 157,306,847 | false | null | package Chapter11.LambdasWithReceivers3
val appendExcl: StringBuilder.() -> Unit = //appendExcl是一个扩展函数类型的值
{ this.append("!") }
fun main() {
val sb = StringBuilder("Hi")
sb.appendExcl() //可以像调用扩展函数一样调用appendExcl
println(sb)
//>>>Hi!
println(buildString(appendExcl)) //也可以将appendExcl作为参数... | 1 | null | 1 | 1 | 301ea7daa495231ff878317311d7ded3a0fbcbc8 | 335 | KotlinInAction | Apache License 2.0 |
src/test/kotlin/com/nibado/projects/advent/y2021/Bm2021.kt | nielsutrecht | 47,550,570 | false | null | package com.nibado.projects.advent.y2021
import com.nibado.projects.advent.Benchmark
fun main() {
Benchmark(AoC2021.days).run()
}
| 1 | Kotlin | 0 | 16 | b4221cdd75e07b2860abf6cdc27c165b979aa1c7 | 136 | adventofcode | MIT License |
matrix-sdk-android/src/rustCrypto/java/org/matrix/android/sdk/internal/crypto/DecryptRoomEventUseCase.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 The Matrix.org Foundation C.I.C.
*
* 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... | 79 | null | 702 | 9 | 786e66d1aceeb1928d43c720633151c7ec284448 | 1,896 | tchap-android | Apache License 2.0 |
model/src/main/java/org/stepik/android/model/Progress.kt | StepicOrg | 139,451,308 | false | null | package org.stepic.droid.model
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
data class Progress(
val id: String? = null,
@SerializedName("last_viewed")
val lastViewed: String? = null, //in SECONDS
var score: String? = null,
... | 0 | null | 0 | 1 | f2ed2cff758f5531f84e39ab939a8f7ee4146a41 | 1,444 | stepik-android-exams | Apache License 2.0 |
src/test/kotlin/com/totec/trading/core/utils/LongListTest.kt | ondrsh | 753,510,952 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "INI": 1, "Java Properties": 1, "Kotlin": 112, "Java": 6} | package com.totec.trading.core.utils
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.doubles.shouldBeExactly
import io.kotest.matchers.ints.shouldBeExactly
import io.kotest.matchers.longs.shouldBeExactly
import io.kotest.matchers.shouldBe
import ... | 0 | Java | 0 | 0 | b777d094d4d4522777b418b6e1f9709f08adf44d | 3,072 | totec-core | MIT License |
plugins/kotlin/code-insight/line-markers-shared/src/org/jetbrains/kotlin/idea/codeInsight/lineMarkers/shared/KotlinRunLineMarkerContributor.kt | ingokegel | 72,937,917 | 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.kotlin.idea.codeInsight.lineMarkers.shared
import com.intellij.execution.lineMarker.ExecutorAction
import com.intellij.execution.lineMarker.RunLineMarkerContributor
import com.... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,732 | intellij-community | Apache License 2.0 |
compiler/tests-spec/testData/diagnostics/notLinked/contracts/analysis/controlFlow/initialization/pos/5.kt | JetBrains | 3,432,266 | false | null | // !OPT_IN: kotlin.contracts.ExperimentalContracts
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE)
*
* SECTIONS: contracts, analysis, controlFlow, initialization
* NUMBER: 5
* DESCRIPTION: Smart initialization with correspond contract function with default value before lambda.
* ISSUES: KT-26444
*/
// ... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 729 | kotlin | Apache License 2.0 |
src/main/kotlin/com/sourcegraph/cody/autocomplete/action/CycleForwardAutocompleteAction.kt | sourcegraph | 702,947,607 | false | null | package com.sourcegraph.cody.autocomplete.action
import com.intellij.openapi.editor.actionSystem.EditorAction
import com.sourcegraph.cody.autocomplete.action.CycleCodyAutocompleteActionHandler.Companion.CycleDirection
class CycleForwardAutocompleteAction :
EditorAction(CycleCodyAutocompleteActionHandler(CycleDire... | 56 | null | 5 | 8 | 7268d6d4fe06432d710c86bdfc09c0dd9534bdd2 | 348 | jetbrains | Apache License 2.0 |
visionppi/app/src/main/java/org/mifos/visionppi/ui/new_survey/PPIQuestionFragment.kt | yashk2000 | 250,595,640 | false | null | package org.mifos.visionppi.ui.new_survey
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.android.synthetic.main... | 1 | null | 1 | 1 | 6f15ab8214fceebba913a97bf873b7af80880829 | 1,108 | ppi-vision | MIT License |
app/src/main/java/com/tfandkusu/tryphotoview/MainGroupieItem.kt | tfandkusu | 391,609,791 | false | null | package com.tfandkusu.tryphotoview
import android.view.View
import coil.load
import com.tfandkusu.tryphotoview.databinding.ListItemMainBinding
import com.xwray.groupie.Item
import com.xwray.groupie.viewbinding.BindableItem
class MainGroupieItem(
private val index: Int,
private val imageUrl: String,
privat... | 4 | null | 1 | 1 | a473b62db366ed425a4a421ffeafff7f24ab4e77 | 1,438 | TryPhotoView | Apache License 2.0 |
feature/confirmation/src/main/java/ru/nesterov/confirmation/ConfirmationFragment.kt | anaesthez | 689,421,041 | false | {"Kotlin": 93079} | package ru.nesterov.confirmation
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import ru.nesterov.confirmation.databinding.FragmentConfirmationBinding
class ConfirmationFragment : Fragment(R.layout.fragment_confirmation) {
private ... | 0 | Kotlin | 0 | 0 | c5fc99aa24b2c672edeb059e8135f96c38e13fea | 1,064 | test | MIT License |
week08/fallingDistance.kt | Edward4070545 | 747,264,497 | false | {"Kotlin": 7475} | fun fallingDistance(time: Int): Double {
val g = 9.8
val distance = 0.5 * g * time * time
return distance
}
fun main() {
for (t in 1..10) {
val distance = fallingDistance(t)
println("Time: $t seconds, Distance: ${"%.2f".format(distance)} meters")
}
}
| 0 | Kotlin | 0 | 0 | e620aeb2b9a94e0b08bc6a19aa082a2d6e040c43 | 288 | kotlin | MIT License |
src/jsMain/kotlin/reactredux/containers/ResourceEntryField.kt | imkacarlson | 289,292,786 | true | {"Kotlin": 119411} | package reactredux.containers
import model.CliContext
import model.ValidationOutcome
import react.RClass
import react.RProps
import react.invoke
import react.redux.rConnect
import reactredux.actions.AddManuallyEnteredFileValidationOutcome
import reactredux.state.AppState
import redux.RAction
import redux.WrapperAction... | 0 | Kotlin | 0 | 0 | ccf4b9727b6d8743e852045dc2d23349b449cc45 | 1,146 | org.hl7.fhir.validator-wrapper | Apache License 2.0 |
fsaf/src/main/java/com/github/k1rakishou/fsaf/BadPathSymbolResolutionStrategy.kt | K1rakishou | 207,005,461 | false | null | package com.github.k1rakishou.fsaf
import com.github.k1rakishou.fsaf.util.FSAFUtils
enum class BadPathSymbolResolutionStrategy {
/**
* Good for debug/dev builds. Whenever there is an attempt to create/clone a file/directory
* with bad characters in their name an IllegalArgumentException will be thrown right a... | 3 | Kotlin | 11 | 251 | e4f07127f62508f5d6be45e020a13205b342a27e | 633 | Fuck-Storage-Access-Framework | The Unlicense |
protocol/osrs-225/osrs-225-api/src/main/kotlin/net/rsprot/protocol/api/suppliers/NpcInfoSupplier.kt | blurite | 771,753,685 | false | {"Kotlin": 9348194} | package net.rsprot.protocol.api.suppliers
import com.github.michaelbull.logging.InlineLogger
import net.rsprot.protocol.game.outgoing.info.filter.DefaultExtendedInfoFilter
import net.rsprot.protocol.game.outgoing.info.filter.ExtendedInfoFilter
import net.rsprot.protocol.game.outgoing.info.npcinfo.NpcAvatarExceptionHan... | 4 | Kotlin | 6 | 27 | 349184703744ee53a0c260c2aad88846b95dcb93 | 2,782 | rsprot | MIT License |
app/src/main/java/com/example/exam/Constants.kt | lavinia06 | 767,497,189 | false | {"Kotlin": 113869} | package com.example.exam
import com.example.exam.model.Car
object Constants {
const val SERVER_IP = "172.30.114.146"
const val SERVER_PORT = "2406"
const val NAVIGATION_LIST = "list"
const val NAVIGATION_CREATE = "create"
const val NAVIGATION_EDIT = "edit/{id}"
const val NAVIGATION_DETAILS = ... | 0 | Kotlin | 0 | 0 | f9c9c93eeaa983bb520752432826ea37e2decaf8 | 835 | MobileApp | MIT License |
dd-sdk-android-core/src/test/kotlin/com/datadog/android/core/internal/data/upload/DefaultUploadSchedulerStrategyTest.kt | DataDog | 219,536,756 | false | {"Kotlin": 9121111, "Java": 1179237, "C": 79303, "Shell": 63055, "C++": 32351, "Python": 5556, "CMake": 2000} | package com.datadog.android.core.internal.data.upload
import com.datadog.android.core.configuration.UploadSchedulerStrategy
import com.datadog.android.core.internal.configuration.DataUploadConfiguration
import com.datadog.android.utils.forge.Configurator
import fr.xgouchet.elmyr.annotation.Forgery
import fr.xgouchet.e... | 44 | Kotlin | 60 | 151 | d7e640cf6440ab150c2bbfbac261e09b27e258f4 | 4,213 | dd-sdk-android | Apache License 2.0 |
compiler/tests-common-new/tests/org/jetbrains/kotlin/test/frontend/classic/ClassicFrontendFailingTestSuppressor.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 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.test.frontend.classic
import org.jetbrains.kotlin.test.WrappedException
import o... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,206 | kotlin | Apache License 2.0 |
src/main/kotlin/inkohx/xyz/nukkit/survival/task/ServerListTask.kt | VectorNetworkProject | 152,212,978 | false | {"Kotlin": 15885} | package inkohx.xyz.nukkit.survival.task
import cn.nukkit.scheduler.PluginTask
import inkohx.xyz.nukkit.survival.Main
class ServerListTask(owner: Main) : PluginTask<Main>(owner) {
private var time = 0
override fun onRun(currentTick: Int) {
if ((System.currentTimeMillis() / 1000L).toInt() - this.time ... | 0 | Kotlin | 0 | 0 | e24c36bb1e28f242ac3a3e21684f6b362b5fef5c | 450 | Survival | MIT License |
app/src/main/java/com/andreapivetta/blu/data/jobs/PopulateDatabaseIntentService.kt | ziggy42 | 59,509,988 | false | null | package com.andreapivetta.blu.data.jobs
import android.app.IntentService
import android.content.Context
import android.content.Intent
import android.support.v4.content.LocalBroadcastManager
import com.andreapivetta.blu.common.settings.AppSettingsFactory
import com.andreapivetta.blu.data.model.PrivateMessage
import com... | 2 | null | 16 | 78 | 2443e47e0af3d89424a93d264782f7e3e7c44a47 | 3,598 | Blum | Apache License 2.0 |
kotlinui/src/main/java/kotlinx/kotlinui/Views/Button.kt | bclnet | 327,138,530 | false | null | package kotlinx.kotlinui
import android.view.View as XView
import kotlinx.ptype.PType
data class Button<Label : View> private constructor(
val action: () -> Unit,
val _label: Label
) : View {
constructor(action: () -> Unit, label: ViewBuilder.() -> Label) : this(action, label(ViewBuilder))
//where La... | 0 | Kotlin | 0 | 0 | 8ea61bd04ce4a0b3dd440c36d4b82a5ccf5ec3f2 | 816 | KotlinUI | MIT License |
app/src/main/java/com/github/ojh102/timary/ui/main/MainFragment.kt | ojh102 | 131,490,034 | false | null | package com.github.ojh102.timary.ui.main
import android.os.Bundle
import android.view.WindowManager
import androidx.fragment.app.viewModels
import androidx.navigation.Navigation
import androidx.navigation.ui.setupWithNavController
import com.github.ojh102.timary.R
import com.github.ojh102.timary.base.BaseFragment
impo... | 0 | Kotlin | 3 | 17 | fd625388b87a80a717ab817d8345fe0d655863c8 | 1,288 | Timary | Apache License 2.0 |
src/test/kotlin/com/discounts/nearby/config/extension/SmtpMailServerExtension.kt | MarchenkoVladislav | 330,028,034 | false | {"HTML": 3540056, "Kotlin": 111830, "JavaScript": 26285, "CSS": 755} | package com.discounts.nearby.config.extension
import com.discounts.nearby.config.MailServiceTestConfig
import com.discounts.nearby.config.extension.SmtpMailServerExtension.SmtpMailServer
import com.icegreen.greenmail.util.GreenMail
import com.icegreen.greenmail.util.ServerSetup
import org.junit.jupiter.api.extension.*... | 0 | HTML | 0 | 0 | 035fc24a53c2313a7f0a17acd66324982c05fd98 | 1,987 | DiscountsNearby | MIT License |
ontrack-extension-api/src/main/java/net/nemerosa/ontrack/extension/api/PromotionRunCheckExtension.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.extension.api
import net.nemerosa.ontrack.model.exceptions.InputException
import net.nemerosa.ontrack.model.extension.Extension
import net.nemerosa.ontrack.model.structure.PromotionRun
/**
* Check on a promotion run for it creation.
*/
interface PromotionRunCheckExtension : Extension {
... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 675 | ontrack | MIT License |
app/src/main/java/id/fahrizal/crudfactory/MainViewModel.kt | fahrizal89 | 448,019,096 | false | {"Kotlin": 11441} | package id.fahrizal.crudfactory
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import id.fahrizal.crudfactory.employee.model.Employee
/**
* @author <NAME> (<EMAIL>)
* @version MainViewModel, v 0.1 02/01/22 10.52 by <NAME>
*/
class MainViewModel : ViewModel() {
val employeeLiveDa... | 0 | Kotlin | 0 | 1 | fff81f008605e4cfd666b819c588dc55173ebf39 | 528 | factory_method_pattern_android | Apache License 2.0 |
app/src/main/java/com/example/motionlayoutdemos/CollapsingToolbarActivity.kt | vipulshah2010 | 174,746,927 | false | null | package com.example.motionlayoutdemos
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import coil.api.load
import com.examp... | 0 | Kotlin | 1 | 26 | c501161a1ba8b508f514bcc9d10553039123ee00 | 1,570 | MotionLayoutDemos | Apache License 2.0 |
Compose/BasicswithCompose/PracticeComposeBasics/WaterMe/src/main/java/com/example/waterme/worker/WorkerUtils.kt | pherasymchuk | 723,622,473 | false | null | /*
* Copyright (C) 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | null | 0 | 1 | e9b1f31c30e2eb08f92f12df366c5e1fdd182d73 | 3,218 | GoogleCodelabsApps | MIT License |
src/test/kotlin/shirates/core/uitest/android/basic/TestDriverTest_Properties.kt | ldi-github | 538,873,481 | false | null | package shirates.core.uitest.android.basic
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import shirates.core.configuration.Testrun
import shirates.core.driver.testContext
import shirates.core.testcode.UITest
@Testrun("unitTestData/testCon... | 0 | Kotlin | 0 | 4 | a4d59ee94efea8de8c3c2a5e88f87063e6c6477e | 1,326 | shirates-core | Apache License 2.0 |
shared/src/commonMain/kotlin/MainMenu.kt | meisam-hasan | 649,714,143 | false | null | package com.epeople.riseofbengal
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.itemsIndexed
i... | 0 | Kotlin | 0 | 0 | daee339b9d1820d46149d075a31c31d995a9bd81 | 1,299 | cmp-riseofbengal-ios-template | Apache License 2.0 |
app/src/main/java/com/sunnyweather/android/ui/weather/WeatherViewModel.kt | 15284824482 | 290,418,168 | false | null | package com.sunnyweather.android.ui.weather
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.sunnyweather.android.logic.Repository
import com.sunnyweather.android.logic.model.Location
/*
定义ViewModel
WeatherViewModel的实现. 这里定义了一个refr... | 0 | Kotlin | 0 | 0 | 2ebda0a388bbd0195b879f56817971d10d99555f | 1,111 | SunnyWeather | Apache License 2.0 |
data/impl/src/main/kotlin/com/mindovercnc/linuxcnc/MotionStatusRepositoryImpl.kt | 85vmh | 543,628,296 | false | null | package com.mindovercnc.linuxcnc
import com.mindovercnc.repository.CncStatusRepository
import com.mindovercnc.repository.MotionStatusRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import ro.dragossusi.proto.linuxcnc.status.MotionStatus
/** Implementation for [MotionStatusRepository]... | 0 | Kotlin | 1 | 2 | ed1002352f1a9b437869b560510365e1467d6b8c | 565 | mindovercnclathe | Apache License 2.0 |
idea/testData/intentions/addLabeledReturnInLambda/labeledLambda.kt | JakeWharton | 99,388,807 | true | null | // WITH_RUNTIME
// INTENTION_TEXT: "Add return@label"
fun foo() {
listOf(1,2,3).find label@{
<caret>true
}
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 125 | kotlin | Apache License 2.0 |
app/src/main/java/amin/rz3/bikeshopping/data/repository/BikeRepository.kt | aminrz3 | 847,816,619 | false | {"Kotlin": 105855} | package amin.rz3.bikeshopping.data.repository
import amin.rz3.bikeshopping.data.datasource.remote.ApiService
import amin.rz3.bikeshopping.data.models.Banner
import amin.rz3.bikeshopping.data.models.ShopItems
import amin.rz3.bikeshopping.ui.commons.DataState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines... | 0 | Kotlin | 0 | 0 | 7cb3a3de5f04a8fc1d48909347e74e66fba93edf | 1,093 | BikeShopApp-Android | MIT License |
library/src/main/java/jutt/com/zcalenderview/SimpleMonthView.kt | Zulqurnain | 101,569,677 | false | {"Kotlin": 51165, "Shell": 644} | package jutt.com.zcalenderview
import android.annotation.SuppressLint
import android.content.Context
import kotlin.jvm.JvmOverloads
import androidx.recyclerview.widget.RecyclerView
import jutt.com.zcalenderview.SimpleMonthAdapter
import jutt.com.zcalenderview.DatePickerController
import android.content.res.TypedArray
... | 1 | Kotlin | 2 | 2 | 0fa01702abd9f29a628d78dbf17dd40ff4bf3487 | 26,481 | ZCalenderView | The Unlicense |
app/src/main/java/com/yougame/takayamaaren/yougame/sdk/model/response/InventoryItem.kt | 428talent | 167,779,777 | false | null | package com.yougame.takayamaaren.yougame.sdk.model.response
import com.google.gson.annotations.SerializedName
import java.util.*
data class InventoryItem(
val created: Date,
@SerializedName("good_id")
val goodId: Int,
val id: Int,
@SerializedName("user_id")
val userId:... | 0 | Kotlin | 0 | 0 | 7220b15262652bd59f8c8b035c88bdb02f78f6e6 | 326 | YouGame-Android | MIT License |
app/src/main/java/com/gmail/eamosse/imdb/ui/movies/ProductionCompaniesAdapter.kt | ClementDums | 243,378,399 | false | null | package com.gmail.eamosse.imdb.ui.movies
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.gmail.eamosse.idbdata.data.Movie
import com.gmail.eamosse.idbdata.data.ProductionCompany
import com.gmail.eamosse.imdb.databinding.ProductionCompaniesIte... | 1 | Kotlin | 1 | 2 | 98b1d160fdb0cb31bf2eda333cabc6c3b9f1cf29 | 1,206 | NetflixApp | Apache License 2.0 |
core/src/jsMain/kotlin/dev/fritz2/binding/mount.kt | cybernetics | 299,002,743 | true | {"Kotlin": 312105} | package dev.fritz2.binding
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.catch
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
/**
* A [SingleMountPoint] co... | 0 | null | 0 | 0 | 1ca5aac6de688140af7baeea4c5ec7c895eee0f4 | 1,691 | fritz2 | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageadjudicationsapi/controllers/reported/ReportedAdjudicationWorkflowControllerTest.kt | ministryofjustice | 416,301,250 | false | null | package uk.gov.justice.digital.hmpps.hmppsmanageadjudicationsapi.controllers.reported
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import org.mockito.kotlin.any
import org.mockito.kotlin.whenever
import org.springframework.boot.autoconfigure.security.oauth2.client.servlet.OAuth2ClientAutoC... | 6 | Kotlin | 0 | 3 | fc46931a8d940ffe3d2f14b497fc6d23f81212fa | 3,509 | hmpps-manage-adjudications-api | MIT License |
plugins/terminal/src/org/jetbrains/plugins/terminal/exp/TerminalWidgetImpl.kt | rpaquay | 136,651,574 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.terminal.exp
import com.intellij.openapi.Disposable
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.Disposer
import com.intellij.terminal.J... | 1 | null | 1 | 1 | 1f52648bb045575c53c3b22ccbab8bf8ad93094b | 2,341 | intellij-community | Apache License 2.0 |
mylibrary/src/main/java/com/esp/library/utilities/data/applicants/LinkApplicationsDAO.kt | ahsan1122 | 252,773,303 | false | {"Java": 842247, "Kotlin": 834320} | package utilities.data.applicants
import java.io.Serializable
import utilities.data.Base
class LinkApplicationsDAO : Base(), Serializable {
var ApplicationsDAO: Int = 0
var linkDefinitionNameCustomFieldId: Int= 0
var linkDefinitionSectionId: Int= 0
var applicationId: Int= 0
var pendingLinkAppl... | 1 | null | 1 | 1 | 2b7c6b7f21434bddef0733f4159846b838dc5dc5 | 644 | ESP_Library | MIT License |
graphql-dgs-spring-webmvc/src/main/kotlin/com/netflix/graphql/dgs/mvc/ServletCookieValueResolver.kt | Netflix | 317,375,887 | false | null | /*
* Copyright 2021 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 88 | null | 289 | 3,037 | bd2d0c524e70a9d1d625d518a94926c7b53a7e7c | 1,288 | dgs-framework | Apache License 2.0 |
index/src/main/java/cz/kudlav/vutindex/index/viewmodel/IndexViewModel.kt | kudlav | 489,882,756 | false | null | package cz.kudlav.vutindex.index.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import cz.kudlav.vutindex.index.models.IndexFeedModel
import cz.kudlav.vutindex.index.... | 0 | Kotlin | 0 | 0 | b7dd9162638400b03e71620250b1499b021e2380 | 2,572 | VUT-index-2.0 | MIT License |
shared/src/commonMain/kotlin/com/grayraccoon/samples/spacexlaunches/shared/SpaceXSdk.kt | herychemo | 320,732,143 | false | null | package com.grayraccoon.samples.spacexlaunches.shared
import com.grayraccoon.samples.spacexlaunches.shared.cache.Database
import com.grayraccoon.samples.spacexlaunches.shared.cache.DatabaseDriverFactory
import com.grayraccoon.samples.spacexlaunches.shared.entity.RocketLaunch
import com.grayraccoon.samples.spacexlaunch... | 0 | Kotlin | 1 | 0 | 05862b3279830d8ab10e8398f720466244b9ff65 | 937 | KMM-SpaceX-Launches | Apache License 2.0 |
igdbclient-core/src/commonMain/kotlin/internal/BackoffDelaySequences.kt | illarionov | 660,855,100 | false | null | /*
* Copyright (c) 2023, the Igdbclient project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.igdbclient.internal
import kotlin.math.roundToLong
import kotlin.time.Durati... | 2 | null | 0 | 5 | 5c47475867f42b3be2d7c37ffff23eb271c83f6d | 1,499 | igdbclient | Apache License 2.0 |
mineinabyss-features/src/main/kotlin/com/mineinabyss/features/guilds/listeners/EternalFortuneGuildListener.kt | MineInAbyss | 115,279,675 | false | null | package com.mineinabyss.features.guilds.listeners
import com.mineinabyss.eternalfortune.api.events.PlayerOpenGraveEvent
import com.mineinabyss.features.guilds.extensions.getGuildName
import com.mineinabyss.features.guilds.extensions.hasGuild
import com.mineinabyss.features.helpers.di.Features
import org.bukkit.event.E... | 11 | null | 27 | 99 | 35b12abf13867de5a00acfc4804b1797751b842e | 844 | MineInAbyss | MIT License |
base/src/main/java/app/tivi/extensions/RxExtensions.kt | SagarKisanAvhad | 146,028,545 | false | null | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 0 | null | 1 | 1 | 687191398bd42fc87d4f50c89f21228e89c3a523 | 1,320 | tivi-master | Apache License 2.0 |
app/src/main/java/com/oriplastbreezefsm/features/contacts/ContactData.kt | DebashisINT | 630,052,678 | false | {"Kotlin": 13733433, "Java": 997699} | package com.oriplastbreezefsm.features.contacts
import com.oriplastbreezefsm.app.domain.CompanyMasterEntity
import com.oriplastbreezefsm.app.domain.SourceMasterEntity
import com.oriplastbreezefsm.app.domain.StageMasterEntity
import com.oriplastbreezefsm.app.domain.StatusMasterEntity
import com.oriplastbreezefsm.app.do... | 0 | Kotlin | 0 | 0 | 73dad2bc294fb86ff3caceba4240b7946f15d3fa | 1,007 | Oriplast | Apache License 2.0 |
posthog/src/main/java/com/posthog/internal/PostHogDecideRequest.kt | PostHog | 259,885,092 | false | null | package com.posthog.internal
/**
* The decide data structure for calling the decide API
*/
internal class PostHogDecideRequest(
apiKey: String,
distinctId: String,
anonymousId: String?,
groups: Map<String, Any>?,
// add person_properties, group_properties
) : HashMap<String, Any>() {
init {
... | 4 | null | 17 | 35 | 8013cccadfe52ad347eedcb492ce01690a1f7786 | 600 | posthog-android | MIT License |
src/main/kotlin/dev/komu/ahwen/query/ProjectPlan.kt | komu | 176,022,411 | false | null | package dev.komu.ahwen.query
import dev.komu.ahwen.record.Schema
import dev.komu.ahwen.types.ColumnName
/**
* Performs projection: takes [columns] from input and discards the rest
*/
class ProjectPlan(private val plan: Plan, private val columns: Collection<ColumnName>) : Plan by plan {
override val schema = pl... | 0 | Kotlin | 2 | 70 | c103d10c5e62ff702e094a5f5ff581cdaf65c95f | 424 | ahwen | MIT License |
src/de/movie4k/src/eu/kanade/tachiyomi/animeextension/de/movie4k/extractors/StreamZExtractor.kt | almightyhak | 817,607,446 | false | {"Kotlin": 4066862} | package eu.kanade.tachiyomi.animeextension.de.aniking.extractors
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import okhttp3.Headers
import okhttp3.OkHttpClient
class StreamZExtractor(private val client: OkHttpClient) {
fun videoFromUrl(url: String, quality: String): ... | 55 | Kotlin | 28 | 93 | 507dddff536702999357b17577edc48353eab5ad | 889 | aniyomi-extensions | Apache License 2.0 |
app/src/main/java/com/kunalfarmah/covid_19_info_dashboard/room/CovidDao.kt | KunalFarmah98 | 362,598,329 | false | null | package com.kunalfarmah.covid_19_info_dashboard.room
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface CovidDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertLatest(covidEntity: CovidEntity)
@Quer... | 1 | null | 1 | 1 | 3325570cedda2741d33d96c0e141c98746bf3a02 | 1,212 | COVID-19-India-Dashboard-Information-Vaccination-Leads | MIT License |
androidApp/src/main/java/press/sync/GitHostIntegrationView.kt | gouthamijami | 290,724,594 | false | null | package press.sync
import android.content.Context
import android.widget.ProgressBar
import androidx.core.view.isGone
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.OnScrollListener
import com.jakewharton.rxbindin... | 0 | null | 0 | 1 | 332a5179af8fbb805c2b4b8c7e53984158983d12 | 5,008 | press | Apache License 2.0 |
src/main/kotlin/mixit/model/Post.kt | konrad-kaminski | 94,822,051 | true | {"HTML": 90494, "Kotlin": 76303, "CSS": 25975, "JavaScript": 6164, "TypeScript": 2185} | package mixit.model
import mixit.util.toSlug
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import java.time.LocalDateTime
@Document
data class Post(
val author: User,
val addedAt: LocalDateTime = LocalDateTime.now(),
val title: Map... | 0 | HTML | 1 | 2 | 996f11323f564e35d482e2ed0326b0de73100650 | 608 | mixit | Apache License 2.0 |
kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/tools/jacoco/JacocoAnt.kt | Kotlin | 394,574,917 | false | null | /*
* Copyright 2017-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.kover.gradle.plugin.tools.jacoco
import groovy.lang.*
import kotlinx.kover.gradle.plugin.commons.*
import kotlinx.kover.gradle.plugin.commons.ReportFilters
import kotlinx.kover.gradle.plugin.u... | 52 | null | 39 | 997 | a78053e7b0791be3e517412eb48d301adaf0654a | 2,866 | kotlinx-kover | Apache License 2.0 |
main-files/main-files/src/main/java/com/samara/main_files/presentation/screens/files/MainFilesState.kt | Salieri666 | 667,969,784 | false | null | package com.samara.main_files.presentation.screens.files
import com.samara.main_files.presentation.mappers.FileExtensions
import com.samara.main_files.presentation.models.FileUi
import kotlinx.parcelize.Parcelize
import models.UiState
import presentation.base.State
@Parcelize
data class MainFilesState(
val uiStat... | 0 | Kotlin | 0 | 0 | b1dfcb322c2210d1ceaadc15969e13ecacbaa905 | 819 | simple-file-manager | Apache License 2.0 |
feature/movies/src/main/kotlin/com/ihardanilchanka/sampleapp2/presentation/movielist/MovieListScreen.kt | igordanilcenko | 479,943,101 | false | null | package com.ihardanilchanka.sampleapp2.presentation.movielist
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn... | 0 | Kotlin | 0 | 0 | 72b01119cbb38adc9e6fff204e8c81e3ff0fa278 | 6,383 | popular-movie-list2 | Apache License 2.0 |
src/test/kotlin/eZmaxApi/models/UsergroupexternalmembershipResponseTest.kt | eZmaxinc | 271,950,932 | false | {"Kotlin": 6909939} | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package eZmaxApi.models
import io.kotlintest.sh... | 0 | Kotlin | 0 | 0 | 961c97a9f13f3df7986ea7ba55052874183047ab | 2,746 | eZmax-SDK-kotlin | MIT License |
app/src/main/java/com/craftworks/music/providers/navidrome/GetNavidromeSongs.kt | CraftWorksMC | 734,035,874 | false | {"Kotlin": 427730} | package com.craftworks.music.providers.navidrome
import android.graphics.Color
import android.net.Uri
import android.util.Log
import com.craftworks.music.data.Song
import com.craftworks.music.data.navidromeServersList
import com.craftworks.music.data.search3SongList
import com.craftworks.music.data.selectedNavidromeSe... | 1 | Kotlin | 2 | 55 | 44416644355300969bfdb08deabbd787e4fc29f5 | 7,407 | Chora | Apache License 2.0 |
components/approval/backend/src/main/kotlin/io/holunda/polyflow/example/process/approval/service/impl/datajpa/RequestEntity.kt | holunda-io | 435,500,011 | false | null | package io.holunda.polyflow.example.process.approval.service.impl.datajpa
import java.math.BigDecimal
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table
@Entity
@Table(name = "APP_APPROVAL_REQUEST")
class RequestEntity(
@Id
var id: String,
... | 20 | Kotlin | 1 | 5 | 2011b9bf9eda295b6d083d477795d68bc77eed2a | 454 | polyflow-examples | Apache License 2.0 |
wendy/src/main/java/com/levibostian/wendy/listeners/PendingTaskStatusListener.kt | levibostian | 86,403,502 | false | null | package com.levibostian.wendy.listeners
import android.support.annotation.UiThread
import com.levibostian.wendy.WendyConfig
import com.levibostian.wendy.service.PendingTask
import com.levibostian.wendy.types.ReasonPendingTaskSkipped
/**
* Listen to status updates on a specific [PendingTask] instance you care to list... | 12 | null | 16 | 62 | 684c0b6ef573f4561bd585f600a11389eb1a42cf | 2,907 | Wendy-Android | MIT License |
app/src/main/java/mvvm/f4wzy/com/samplelogin/util/CustomeProgressDialog.kt | muhammadFawzy | 145,230,801 | false | null | package mvvm.f4wzy.com.samplelogin.util
import android.R.attr.duration
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.animation.Animation
import android.view.animation.RotateAnimation
import kotlinx.android.synthetic.main.dialog_progress.*
import mvvm.f4wzy.com.sa... | 0 | null | 17 | 46 | 359f11e1f4e2c63c3be3813e3fd43e044cb5bdc6 | 920 | android-kotlin-mvvm-architecture | Apache License 2.0 |
platform/platform-tests/testSrc/com/intellij/concurrency/ThreadContextTest.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.concurrency
import org.junit.jupiter.api.Test
import kotlin.coroutines.EmptyCoroutineContext
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import kotlin.test.as... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,403 | intellij-community | Apache License 2.0 |
test-resources/src/main/kotlin/tech/aaregall/lab/petclinic/test/spec/keycloak/KeycloakSpec.kt | ArnauAregall | 720,654,012 | false | {"Kotlin": 330999} | package tech.aaregall.lab.petclinic.test.spec.keycloak
import dasniko.testcontainers.keycloak.KeycloakContainer
import io.micronaut.core.annotation.ReflectiveAccess
import io.micronaut.test.extensions.testresources.TestResourcesPropertyProvider
import io.restassured.http.ContentType
import io.restassured.http.Header
i... | 0 | Kotlin | 0 | 1 | aedb6115f44c8c1bc0afed4bf9f8f852d3b8c64a | 2,168 | micronaut-kotlin-petclinic-clean-architecture | Apache License 2.0 |
castled-notifications/src/main/java/io/castled/android/notifications/push/service/PushRepository.kt | castledio | 525,047,434 | false | {"Kotlin": 255947, "HTML": 28150, "Java": 17986, "JavaScript": 1717} | package io.castled.android.notifications.push.service
import android.content.Context
import io.castled.android.notifications.network.CastledRetrofitClient.Companion.create
import io.castled.android.notifications.push.models.NotificationActionContext
import io.castled.android.notifications.push.extensions.toCastledPush... | 1 | Kotlin | 2 | 3 | aa6f6e7a8f353200db740b14448b1d828552b33a | 2,214 | castled-notifications-android | MIT License |
idea/tests/testData/quickfix/deprecatedSymbolUsage/typeAliases/withTypeArgument.kt | JetBrains | 278,369,660 | false | null | // "Replace with 'B<String>'" "true"
// WITH_RUNTIME
@Deprecated(message = "renamed", replaceWith = ReplaceWith("B<E>"))
typealias A<E> = List<E>
typealias B<E> = List<E>
val x: <caret>A<String> = emptyList()
| 233 | null | 4912 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 212 | intellij-kotlin | Apache License 2.0 |
defaults/src/commonMain/kotlin/jp/pois/oxacillin/defaults/endpoints/collections/entries/Remove.kt | pois0 | 339,318,315 | true | {"Kotlin": 1970084} | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2020 StarryBlueSky
* Copyright (c) 2021 poispois
*
* 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, inclu... | 0 | Kotlin | 0 | 0 | bc33905228c2a1ecf954fbeed53b08323cde6d41 | 2,907 | Oxacillin | MIT License |
view/view-api/src/main/kotlin/query/task/TasksForGroupQuery.kt | holunda-io | 135,994,693 | false | {"Kotlin": 1271745} | package io.holunda.polyflow.view.query.task
import io.holunda.polyflow.view.Task
import io.holunda.polyflow.view.auth.User
/**
* Query for tasks visible for user.
* @param user - the user with groups accessing the tasks.
* @param includeAssigned flag indicating if assigned tasks are returned.
* @param page - page... | 21 | Kotlin | 26 | 68 | 0a80b87e49127b355d62f8a32e91a6c355d11419 | 1,521 | camunda-bpm-taskpool | Apache License 2.0 |
Kotlin/P38_d.kt | deveshp007 | 535,653,594 | false | {"Kotlin": 84827} | package com.example.two
interface OnColorReq {
fun onColorRequest(code: Int){
}
} | 0 | Kotlin | 6 | 24 | a5d62d97081826a35308defd9641bb9552f5e789 | 91 | Android-App-Development | MIT License |
app/src/main/java/com/oxyethylene/easynote/common/enumeration/ComponentSize.kt | PolyOxyethylene | 738,671,054 | false | {"Kotlin": 359757, "Java": 106555, "JavaScript": 10698, "CSS": 1739, "HTML": 414} | package com.oxyethylene.easynote.common.enumeration
/**
* Created with IntelliJ IDEA.
* @Project : EasyNote
* @Package : com.oxyethylene.easynote.common.enumeration
* @ClassName : ComponentSize.java
* @createTime : 2024/5/8 21:59
* @version : 1.0
* @author : Polyoxyethylene
* @Descrip... | 0 | Kotlin | 0 | 0 | 06401fa6f13345180904f22606a45aeb8a425420 | 410 | EasyNote | Apache License 2.0 |
app/src/main/java/com/mrb/remember/presentation/main/journal/JournalFragment.kt | mrebollob | 183,808,523 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 88, "XML": 49, "Java": 1, "JSON": 2} | package com.mrb.remember.presentation.main.journal
import android.os.Bundle
import android.view.View
import com.mrb.remember.R
import com.mrb.remember.domain.exception.Failure
import com.mrb.remember.domain.extension.toast
import com.mrb.remember.presentation.platform.BaseFragment
class JournalFragment : BaseFragment... | 0 | Kotlin | 0 | 0 | 9aa05168f4302eaba1618dce322c5959b3d9926b | 784 | remember | Apache License 2.0 |
template/app/src/androidMain/kotlin/kotli/app/platform/createSqlDriver.kt | kotlitecture | 790,159,970 | false | null | package kotli.app.di.platform
import app.cash.sqldelight.async.coroutines.synchronous
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
import kotli.app.Application
import kotli.app.common.data.source.database.sqldelight.AppDatabase
actual fun createSqlDriver(name: ... | 2 | null | 3 | 55 | b96c8867f393bedba65b2f6f8a40e806bf07bcd9 | 461 | template-multiplatform-compose | MIT License |
bot/orchestration/src/main/kotlin/ai/tock/bot/orchestration/connector/OrchestrationService.kt | theopenconversationkit | 84,538,053 | false | null | /*
* Copyright (C) 2017/2021 e-voyageurs technologies
*
* 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... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 2,510 | tock | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.