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-kit/src/main/java/media/pixi/appkit/ui/signup/SignUpActivity.kt | NateWickstrom | 166,901,841 | false | null | package media.pixi.appkit.ui.signup
import android.os.Bundle
import dagger.android.support.DaggerAppCompatActivity
import kotlinx.android.synthetic.main.appkit__appbar.*
import media.pixi.appkit.R
import media.pixi.appkit.utils.ActivityUtils
import javax.inject.Inject
class SignUpActivity : DaggerAppCompatActivity() ... | 0 | Kotlin | 0 | 0 | 67e3f5cb6e1d0d7ed12002408325823ce1772492 | 759 | android-rx-firebase-app-kit | Apache License 2.0 |
tmp/arrays/youTrackTests/7099.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-28421
interface A {
fun foo() {}
}
interface B {
fun foo() {}
}
fun some(ab: Any) {
if (ab is A && ab is B) {
ab.foo() // Why it's not an ambiguity?
}
}
| 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 200 | bbfgradle | Apache License 2.0 |
idea/testData/multiModuleQuickFix/importCommonFunInJvm/common/a.kt | JakeWharton | 99,388,807 | false | null |
package foo
fun foo() {
} | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 28 | kotlin | Apache License 2.0 |
app/src/main/java/com/alarm/alARm_you_need/ArPreviewActivity.kt | tofhddl9 | 276,293,107 | false | {"Java": 152319, "Kotlin": 85353, "GLSL": 23811} | package com.alarm.alARm_you_need
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.google.ar.core.AugmentedImage
import com.google.ar.core.TrackingState
import com.google.ar.core.examples.java.common.helpers.Camer... | 2 | null | 1 | 1 | bf4f93bda388d4f19c2c3201c783cefdf1aaa4de | 3,033 | alARm-you-need | Apache License 2.0 |
Kotlin/Code/Kotlin-Coroutines/src/main/kotlin/core/select/01_SelectingFromChannels.kt | hiloWang | 203,300,702 | false | null | package core.select
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.cancelChildren
import kotlinx.coroutines.channels.ReceiveChannel
import kotlinx.coroutines.channels.produce
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.selects.select
/*
select 表达... | 0 | null | 15 | 4 | 64a637a86f734e4e80975f4aa93ab47e8d7e8b64 | 1,477 | notes | Apache License 2.0 |
Code/Shared/src/commonMain/kotlin/org/chrishatton/example/model/UUID.kt | chris-hatton | 196,953,459 | false | null | package org.chrishatton.example.model
expect class UUID
| 1 | Kotlin | 3 | 18 | 26dc1b5b1df888167f0b4af7fd74b039a4a574c3 | 57 | kotlin-multiplatform-template | MIT License |
idea/testData/copyPaste/conversion/ConversionInCorrectContext.dependency.kt | JakeWharton | 99,388,807 | true | null | class Dependency {
fun getInt(): Int = 1
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 46 | kotlin | Apache License 2.0 |
analysis/analysis-api/testData/components/resolver/singleByPsi/withErrors/variableWithInvokeFunctionCall_extensionReceiver.kt | JetBrains | 3,432,266 | false | null | operator fun Int.invoke() {}
class A {
fun test() {
<expr>f()</expr>
}
}
val A.f: Int = 1
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 107 | kotlin | Apache License 2.0 |
proto/src/main/java/com/hik/proto/utils/thread/pool/DefaultThreadPool.kt | DeveloperLinus | 538,288,229 | false | {"Java": 343699, "Kotlin": 118261} | /*
* Copyright 2020-present hikvision
*
* 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 agree... | 1 | null | 1 | 1 | abc54ce42e65acb9f135006a5ac1f297b555f132 | 2,173 | HEOP_DEMO_V3.1.0_personSource | MIT License |
spring-data-requery-kotlin/src/test/kotlin/org/springframework/data/requery/kotlin/QueryElementExtensionsTest.kt | debop | 188,192,108 | false | {"Java": 915808, "Kotlin": 629888} | /*
* Copyright 2018 Coupang Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1 | Java | 1 | 5 | 80ff3671fccfe98cee8aa22418923237f2e9ce2f | 3,206 | spring-data-requery | Apache License 2.0 |
app/src/main/java/com/bounhackers/wowservice/profileedit/ProfileEditContract.kt | BounHackers | 159,948,954 | false | {"Gradle": 3, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "Kotlin": 40, "XML": 28, "Java": 1} | package com.bounhackers.wowservice.profileedit
import com.bounhackers.wowservice.base.BaseContract
class ProfileEditContract {
interface View: BaseContract.View {
}
interface Presenter: BaseContract.Presenter<View> {
}
} | 1 | null | 1 | 1 | f68332a5aa5dfb95ab9b446b4d0839f70dc5951a | 241 | servisim-app | MIT License |
app/src/main/java/com/dujiajun/courseblock/constant/PreferenceKey.kt | dujiajun | 178,798,441 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "YAML": 1, "Proguard": 2, "XML": 58, "Kotlin": 43, "INI": 1, "Java": 6} | package com.dujiajun.courseblock.constant
class PreferenceKey {
companion object {
const val FIRST_MONDAY = "first_monday"
const val LAST_SUNDAY = "last_sunday"
const val REFERER = "referer"
const val CURRENT_TERM = "cur_term"
const val CURRENT_YEAR = "cur_year"
con... | 6 | Kotlin | 2 | 24 | c79597cdd69cf788f06e12643f616e51fbf0bb4e | 563 | CourseBlock | MIT License |
src/test/java/nl/jovmit/lyrics/domain/search/SearchServiceShould.kt | mitrejcevski | 274,624,763 | false | null | package nl.jovmit.lyrics.domain.search
import nl.jovmit.lyrics.domain.songs.SongRepository
import nl.jovmit.lyrics.domain.users.UnknownUserException
import nl.jovmit.lyrics.domain.users.UserRepository
import nl.jovmit.lyrics.infrastructure.builder.SongBuilder.Companion.aSong
import nl.jovmit.lyrics.infrastructure.buil... | 1 | null | 1 | 1 | 32bccdc270f5a6e4351f9aa2d03d1c73aab08498 | 2,202 | lyrics-backend | Apache License 2.0 |
kotlin/src/test/kotlin/api/ColorSpec.kt | fossabot | 191,747,173 | true | {"YAML": 1, "Gradle": 11, "Shell": 2, "EditorConfig": 1, "Markdown": 1, "Git Attributes": 1, "Batchfile": 1, "Text": 30, "Ignore List": 1, "Python": 26, "INI": 2, "AsciiDoc": 10, "C++": 8, "C": 20, "Kotlin": 36, "Groovy": 139, "Java": 306} | package api
import com.google.common.truth.Truth.assertThat
import org.jetbrains.spek.api.Spek
import org.jetbrains.spek.api.dsl.context
import org.jetbrains.spek.api.dsl.describe
import org.jetbrains.spek.api.dsl.it
object ColorSpec : Spek({
describe("Color Enum") {
context("'valueOf' String") {
... | 0 | Java | 0 | 0 | 96809893c7d7448c382d3f94ada1af92042089ac | 642 | cs-interview-questions | Apache License 2.0 |
core/src/main/kotlin/com/justai/jaicf/activator/StateMapActivator.kt | klits111 | 282,262,247 | true | {"Kotlin": 195973, "Java": 11791} | package com.justai.jaicf.activator
import com.justai.jaicf.context.BotContext
import com.justai.jaicf.model.activation.ActivationRuleType
import com.justai.jaicf.model.scenario.ScenarioModel
import com.justai.jaicf.model.state.StatePath
/**
* A helper abstraction for every [Activator] that should activate a state if... | 1 | null | 1 | 1 | 35a778503744df742fd22a7a178a0befbbb422f5 | 1,582 | jaicf-kotlin | Apache License 2.0 |
mobile/src/main/java/com/siliconlabs/bledemo/home_screen/menu_items/MatterDemo.kt | SiliconLabs | 85,345,875 | false | null | package com.siliconlabs.bledemo.home_screen.menu_items
import androidx.annotation.DrawableRes
import com.siliconlabs.bledemo.bluetooth.services.BluetoothService
class MatterDemo(
@DrawableRes imageResId: Int,
title: String,
description: String
) : DemoMenuItem(imageResId, title, description) {
overrid... | 21 | null | 76 | 154 | b5bf71aadb39d48f5612de8c4aed3bf12c9896cb | 386 | SimplicityConnect-android | Apache License 2.0 |
src/main/kotlin/net/megavex/redikt/protocol/RedisTypeWriter.kt | MegavexNetwork | 666,473,616 | false | null | package net.megavex.redikt.protocol
import net.megavex.redikt.buffer.ByteWriter
internal object RedisTypeWriter {
suspend fun write(writer: ByteWriter, type: RedisType.Array<String, RedisType.BulkString>) {
writer.writeAsciiChar(ProtocolConstants.ARRAY)
writeInteger(writer, type.elements.size)
... | 0 | Kotlin | 0 | 0 | a35976ed5dd96727a8cfe28c3d26dff4f033fcad | 1,006 | redikt | MIT License |
server/src/main/java/com/pyamsoft/tetherfi/server/proxy/session/tcp/socks/four/SOCKS4Implementation.kt | pyamsoft | 475,225,784 | false | {"Kotlin": 933742, "Shell": 2212} | /*
* Copyright 2024 pyamsoft
*
* 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... | 10 | Kotlin | 31 | 401 | aebdfc88e59a967d2c343d68d5dccb49dfa4ac06 | 9,504 | tetherfi | Apache License 2.0 |
library/src/main/kotlin/delta/codecharacter/dtos/CreateMapRevisionRequestDto.kt | delta | 731,776,389 | false | {"Kotlin": 563450, "Dockerfile": 618, "Shell": 299} | package delta.codecharacter.dtos
import java.util.Objects
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonValue
import delta.codecharacter.dtos.GameMapTypeDto
import jakarta.validation.constraints.DecimalMax
import jakarta.validation.constraints.DecimalMin
import jakart... | 0 | Kotlin | 0 | 0 | 4b7add531880e3fa00a8471c4248f18e8268d862 | 1,551 | codecharacter-server | MIT License |
library/plugins/base/base-publisher/src/main/java/io/github/cdsap/talaiot/publisher/timeline/TimelinePublisher.kt | cdsap | 157,973,716 | false | null | package io.github.cdsap.talaiot.publisher.timeline
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import io.github.cdsap.talaiot.entities.ExecutionReport
import io.github.cdsap.talaiot.publisher.Publisher
import java.io.BufferedWriter
import java.io.File
import java.io.FileWriter
import java.io.InputSt... | 27 | Kotlin | 36 | 550 | 3b352fea5355448450c9ffb96946788212b40099 | 2,446 | Talaiot | MIT License |
app/src/main/java/com/jnj/vaccinetracker/sync/domain/usecases/masterdata/SyncLocalizationUseCase.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1690434} | package com.jnj.vaccinetracker.sync.domain.usecases.masterdata
import com.jnj.vaccinetracker.common.data.models.api.response.LocalizationMapDto
import com.jnj.vaccinetracker.common.data.repositories.MasterDataRepository
import com.jnj.vaccinetracker.common.domain.entities.MasterDataFile
import com.jnj.vaccinetracker.s... | 2 | Kotlin | 1 | 1 | dbf657c7fb7cb1233ed5c26bc554a1032afda3e0 | 1,158 | vxnaid | Apache License 2.0 |
src/main/kotlin/org/stvad/kask/model/constants.kt | Stvad | 144,476,230 | false | null | package org.stvad.kask.model
const val amazonPrefix = "AMAZON." | 1 | Kotlin | 0 | 5 | cd86ed9d07c9233c484001f771171dd0587d2344 | 64 | kask | Apache License 2.0 |
edge-agent-sdk/src/commonMain/kotlin/org/hyperledger/identus/walletsdk/edgeagent/protocols/outOfBand/InvitationType.kt | hyperledger | 564,174,099 | false | {"Kotlin": 1701521, "Gherkin": 4030, "JavaScript": 375} | package org.hyperledger.identus.walletsdk.edgeagent.protocols.outOfBand
import kotlinx.serialization.Serializable
/**
* Represents a sealed class for different types of invitations.
*/
@Serializable
sealed class InvitationType
| 2 | Kotlin | 4 | 9 | 0437927de1d21b9acaaaf257d24e7c9a30de657c | 231 | identus-edge-agent-sdk-kmp | Apache License 2.0 |
sources-jvm/model/MValueParameterIndex.kt | fluidsonic | 168,738,824 | false | null | package io.fluidsonic.meta
public inline class MValueParameterIndex(public val value: Int) {
override fun toString(): String = value.toString()
public companion object
}
| 0 | Kotlin | 1 | 11 | edfa3f0a4484d4a6f03e359e69ad131ec5208cef | 177 | fluid-meta | Apache License 2.0 |
api-owm/src/main/java/com/kennyc/dashweather/api_owm/response/OWMResponse.kt | Kennyc1012 | 105,380,988 | false | null | package com.kennyc.dashweather.api_owm.response
import com.google.gson.annotations.SerializedName
import com.kennyc.dashweather.api_owm.model.OWMCurrent
import com.kennyc.dashweather.api_owm.model.OWMDaily
data class OWMResponse(@SerializedName("lat") val lat: Double,
@SerializedName("lon") val... | 0 | Kotlin | 2 | 0 | 212ce9f0dc434a537530b3904b1763684f7f6915 | 540 | DashWeatherExtension | Apache License 2.0 |
ksiren-okhttp3-plugin/src/main/java/com/brightspace/ksiren/okhttp3_plugin/KSirenOkhttp3RequestBuilder.kt | Brightspace | 98,900,973 | false | null | package com.brightspace.ksiren.okhttp3_request_builder
import com.brightspace.ksiren.Action
import com.brightspace.ksiren.ContentType
import com.brightspace.ksiren.KSirenJsonWriter
import com.brightspace.ksiren.KSirenRequestBuilder
import okhttp3.*
/**
* Copyright 2017 D2L Corporation
*
* Licensed under the Apache... | 1 | Kotlin | 2 | 2 | 82300a4c223be1529465bba23853bd4789d4b39e | 2,228 | ksiren | Apache License 2.0 |
src/lib/kotlin/slatekit-workers/src/main/kotlin/slatekit/workers/status/RunState.kt | TrendingTechnology | 157,646,990 | true | {"Kotlin": 1826115, "Scala": 1124254, "Batchfile": 17450, "Shell": 8834, "Java": 2251, "Swift": 1555, "HTML": 303, "CSS": 35, "JavaScript": 28} | /**
* <slate_header>
* url: www.slatekit.com
* git: www.github.com/code-helix/slatekit
* org: www.codehelix.co
* author: Kishore Reddy
* copyright: 2016 CodeHelix Solutions Inc.
* license: refer to website and/or github
* about: A tool-kit, utility library and server-backend
* mantra: Simplicity above all else... | 0 | Kotlin | 0 | 0 | 03b468db9dd69a80ff3d9bb01141c65bd0e21456 | 1,678 | slatekit | Apache License 2.0 |
src/main/kotlin/org/example/detekt/rules/arch/mappers/SeparateDataModelPerLayerRule.kt | Keslerdk | 863,145,840 | false | {"Kotlin": 58750, "Shell": 738} | package org.example.detekt.rules.arch.mappers
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Rule... | 1 | Kotlin | 0 | 0 | 614c19c88d61c41f6a9af7e6d49d677945965509 | 3,561 | fluffy-octo-meme | Apache License 2.0 |
design/src/main/java/com/ingresse/design/ui/dialog/DSConfirmDialog.kt | ingresse | 203,441,687 | false | null | package com.ingresse.design.ui.dialog
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.ViewGroup
import com.ingresse.design.R
import com.ingresse.design.helper.setVisible
import kotlinx.android.synthetic.main.ds_confirm_dialog.*
class DSConfirmDialog(context: Context): DSBa... | 3 | Kotlin | 0 | 1 | 381d7b36d8ad693cf13c7a5ba02127bcb6278019 | 1,723 | design-systems-android | MIT License |
app/src/main/java/com/berkaykurtoglu/recipequest/domain/model/recipedetailmodel/RecipeDetailModel.kt | BerkayyKurtoglu | 789,163,245 | false | {"Kotlin": 144729} | package com.berkaykurtoglu.recipequest.domain.model.recipedetailmodel
data class RecipeDetailModel(
val analyzedInstructionModels: List<AnalyzedInstructionModel>,
val allergenList: List<AllergenModel>,
val dishTypes: List<String>,
val extendedIngredientModels: List<ExtendedIngredientModel>,
val id... | 0 | Kotlin | 0 | 0 | 152b6d0b6e1faf31de89ff613e2e5a5541f14c11 | 600 | Papara-Final-Project | MIT License |
src/test/kotlin/com/romankagan/pyramid/PyramidControllerTestsHebrew.kt | romankagan | 244,289,596 | false | null | package com.romankagan.pyramid
import org.hamcrest.CoreMatchers
import org.junit.Assert
import org.springframework.http.HttpStatus
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.s... | 0 | Kotlin | 0 | 0 | c66f11d07c2a56a3df531b976d1e2d57897089c9 | 2,306 | pyramid | Apache License 2.0 |
edicion/Dashboard_V2/app/src/main/java/com/example/dashboard_v2/components/OnBoardingData.kt | maurodri | 678,590,413 | false | null | package com.example.dashboard_v2.components
import androidx.compose.ui.graphics.Color
import com.example.dashboard_v2.ui.theme.ColorBlue
data class OnBoardingData(
val image: Int, val title: String,
val desc: String,
val backgroundColor:Color,
val mainColor:Color = ColorBlue
) | 0 | Kotlin | 0 | 0 | 6122d3e2a4a89794b05985bde11f8f58949ec648 | 295 | Trabajos-Kotlin | MIT License |
src/main/kotlin/org/awong/koans/KollectionKoans.kt | alanktwong | 245,327,983 | false | null | package org.awong.koans
// https://play.kotlinlang.org/koans/Collections/Introduction/Task.kt
fun Shop.getSetOfCustomers(): Set<Customer> = customers.toSet()
// https://play.kotlinlang.org/koans/Collections/Filter%20map/Task.kt
// Return the set of cities the customers are from
fun Shop.getCitiesCustomersAreFrom():... | 0 | Kotlin | 0 | 0 | cdf2483bfdfb824b3c8dc51d387012cbebb45ec5 | 5,392 | learning-kotlin | MIT License |
src/main/kotlin/dermomedic/ai/service/DermoAnalyser.kt | fbrunacci | 303,677,842 | false | {"Jupyter Notebook": 1708775, "Kotlin": 22785, "Python": 8530, "CSS": 94} | package dermomedic.ai.service
import dermomedic.ai.Config
import kotlinx.coroutines.*
import dermomedic.ai.service.ktor.Analyse
import org.datavec.image.loader.NativeImageLoader
import org.deeplearning4j.nn.graph.ComputationGraph
import org.deeplearning4j.util.ModelSerializer
import org.nd4j.linalg.api.ndarray.INDArra... | 0 | Jupyter Notebook | 0 | 0 | 361f1f0a52c457d27e2bc648f0888bdf71cb0f32 | 1,544 | dermomedic.ai | Apache License 2.0 |
feature/products/src/main/java/co/ke/xently/products/di/RepositoryModule.kt | ajharry69 | 391,476,966 | false | null | package co.ke.xently.products.di
import co.ke.xently.products.repository.IProductsRepository
import co.ke.xently.products.repository.ProductsRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
i... | 8 | Kotlin | 0 | 0 | 591f88f92313c1e57422dac61774533dfc52a2df | 467 | xently-archived | MIT License |
app/src/main/java/com/julianczaja/esp_monitoring_app/data/remote/RetrofitEspMonitoringApi.kt | julianczaja | 575,978,649 | false | {"Kotlin": 588227} | package com.julianczaja.esp_monitoring_app.data.remote
import com.julianczaja.esp_monitoring_app.domain.model.DeviceInfo
import com.julianczaja.esp_monitoring_app.domain.model.DeviceServerSettings
import com.julianczaja.esp_monitoring_app.domain.model.Photo
import retrofit2.http.Body
import retrofit2.http.DELETE
impor... | 0 | Kotlin | 0 | 2 | 0a062d07b9429de22d33811d50fddc7291234fa0 | 1,687 | esp_monitoring_app | MIT License |
core/presentation/flow/src/main/java/com/krossovochkin/core/presentation/flow/FlowUtils.kt | krossovochkin | 221,648,261 | false | {"Kotlin": 493412, "Python": 2433, "Shell": 369} | package com.krossovochkin.core.presentation.flow
import androidx.fragment.app.Fragment
import androidx.lifecycle.flowWithLifecycle
import androidx.lifecycle.lifecycleScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
inline fun <reified T> Flow<T>.c... | 0 | Kotlin | 0 | 15 | 3568c445d83bdf332f1c6b96d9c137440c01cc25 | 526 | FiberyUnofficial | Apache License 2.0 |
src/main/kotlin/com/grappenmaker/snake/Data.kt | 770grappenmaker | 505,066,875 | false | {"Kotlin": 20208} | package com.grappenmaker.snake
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class BotInfo(
@SerialName("apiversion") val apiVersion: String = "1",
val author: String,
val color: String,
val head: String,
val tail: String,
val version: Str... | 0 | Kotlin | 0 | 1 | a3de714cb876edf0e2da5374678e3a9784f3b7d7 | 2,218 | snek-bro | The Unlicense |
src/test/unit/kotlin/com/kilchichakov/fiveletters/MongoTestSuiteExternal.kt | augur | 194,393,890 | false | {"Kotlin": 306716, "JavaScript": 3426, "Dockerfile": 135, "HTML": 9} | package com.kilchichakov.fiveletters
import com.kilchichakov.fiveletters.config.MongoConfig
import com.kilchichakov.fiveletters.service.TransactionWrapper
import com.mongodb.BasicDBObject
import com.mongodb.MongoClient
import com.mongodb.client.MongoDatabase
import org.junit.jupiter.api.AfterAll
import org.junit.jupit... | 0 | Kotlin | 0 | 0 | 64734f93bef1c36309caaece5b04fe8852872498 | 1,576 | five-letters | MIT License |
src/main/kotlin/com/uca/bigdreamscoders/bigcinema/services/ProvinceService.kt | BigDreamsCoders | 192,656,497 | false | {"JavaScript": 129854, "HTML": 104338, "Kotlin": 55736} | package com.uca.bigdreamscoders.bigcinema.services
import com.uca.bigdreamscoders.bigcinema.repositories.ProvinceRepository
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
@Service
class ProvinceService{
@Autowired
lateinit var provinceRepository: Pr... | 0 | JavaScript | 0 | 0 | f416244db46c6fe06fccc993a7a050103833d2a1 | 462 | bigcinema | MIT License |
app/src/main/java/com/craiovadata/android/sunshine/ui/models/WebcamEntry.kt | alboteanud | 141,880,564 | false | {"Java": 178703, "Kotlin": 149743} | package com.craiovadata.android.sunshine.ui.models
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.util.*
@Entity(tableName = "webcams", indices = [Index(value = ["id"], unique = true)])
class WebcamEntry(
@PrimaryKey var id: String,
var title: String,
va... | 0 | Java | 0 | 0 | ba5a32e3454c7f6a9825375d4088b7a44f9a66b7 | 885 | Sunshine---my-weather-app | Apache License 2.0 |
tests/integration-tests/src/test/kotlin/steps/did/UpdateDidSteps.kt | hyperledger | 512,835,706 | false | {"Scala": 2680210, "Kotlin": 166165, "TypeScript": 50664, "Shell": 30427, "Python": 13723, "Gherkin": 10879, "Smarty": 2922, "JavaScript": 1204} | package steps.did
import common.TestConstants
import interactions.Get
import interactions.Post
import io.cucumber.java.en.Then
import io.cucumber.java.en.When
import io.iohk.atala.automation.extensions.get
import io.iohk.atala.automation.serenity.ensure.Ensure
import io.iohk.atala.automation.utils.Wait
import net.sere... | 26 | Scala | 18 | 72 | 5398a75cfde7ee922588bd84608223abf389d5c1 | 8,224 | identus-cloud-agent | Apache License 2.0 |
kmp/features/appSettings/src/commonMain/kotlin/com/egoriku/grodnoroads/appsettings/domain/util/UrlLauncher.kt | BehindWheel | 485,026,420 | false | {"Kotlin": 1196733, "Swift": 86939, "Ruby": 5951, "Shell": 830} | package com.egoriku.grodnoroads.appsettings.domain.util
import androidx.compose.runtime.Composable
interface UrlLauncher {
fun openUrl(url: String)
}
@Composable
expect fun rememberUrlLauncher(): UrlLauncher
| 20 | Kotlin | 1 | 18 | d7c3250ff2b360c61398425b7b2c28bf021b175c | 215 | BehindWheelKMP | Apache License 2.0 |
src/main/kotlin/svg/attributes.kt | xfeldman | 153,592,601 | false | null | package svg
import kotlinx.html.attributes.Attribute
import kotlinx.html.attributes.StringAttribute
internal val attributeStringString : Attribute<String> = StringAttribute()
| 0 | Kotlin | 1 | 0 | 78e97e0ac5bdbf05159a71096b4d5aecf9e101af | 177 | kotlin-d3-sample | Apache License 2.0 |
shared/src/commonMain/kotlin/com/mongodb/dublinmug_kmm/Expects.kt | mongodb-developer | 546,175,862 | false | {"Kotlin": 12017, "Ruby": 1722, "Swift": 1338} | package com.mongodb.dublinmug_kmm
expect class RandomUUID(){
val randomId : String
}
expect class Platform(){
val getPlatform : String
} | 0 | Kotlin | 2 | 8 | e0a0939c9d134e29137e919e6391e74627280b04 | 146 | Conference-Queries-App | Apache License 2.0 |
AndroidApp/domain/src/main/java/me/nya_n/notificationnotifier/domain/usecase/LoadAppUseCase.kt | ptkNktq | 50,931,408 | false | null | package me.nya_n.notificationnotifier.domain.usecase
import android.content.pm.PackageManager
import androidx.annotation.VisibleForTesting
import me.nya_n.notificationnotifier.data.repository.AppRepository
import me.nya_n.notificationnotifier.data.repository.UserSettingRepository
import me.nya_n.notificationnotifier.m... | 12 | Kotlin | 0 | 2 | 412261d4c9b0ec8f05e3cbc0d7a1c5b716190405 | 1,519 | AndroidNotificationNotifier | MIT License |
common/src/main/kotlin/ru/art/platform/common/emitter/Emitter.kt | art-community | 284,500,366 | false | null | package ru.art.platform.common.emitter
import java.lang.Runtime.*
import java.util.concurrent.atomic.*
fun <T> simpleEmitter(emitter: (T) -> Unit = {}) = Emitter(emitter, {}, {})
fun <T> emitterWithErrors(emitter: (T) -> Unit = {}, errorEmitter: (Throwable) -> Unit = {}) = Emitter(emitter, errorEmitter, {})
fun <T> e... | 1 | TypeScript | 0 | 1 | 80051409f70eec2abb66afb7d72359a975198a2b | 1,266 | art-platform | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_MARS_STROKE_UP.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | 1358935395f9254cab27852457e2aa6c58902e16 | 1,827 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/no/mhl/kotdoc/repository/DocRepository.kt | maxhvesser | 332,813,944 | false | null | package no.mhl.kotdoc.repository
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
import no.mhl.kotdoc.data.remote.DocService
import javax.inject.Inject
class DocRepository @Inject constructor(
private val docService: DocService
) {
... | 1 | Kotlin | 2 | 4 | e644ead28ff30410838815c16b308093bc4a3fea | 573 | kotdoc-android | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/consumer/syfosmregister/sykmeldingModel/SporsmalSvarDTO.kt | navikt | 303,972,532 | false | {"Kotlin": 385324, "Dockerfile": 148} | package no.nav.syfo.consumer.syfosmregister.sykmeldingModel
data class SporsmalSvarDTO(
val sporsmal: String?,
val svar: String,
val restriksjoner: List<SvarRestriksjonDTO>
)
| 4 | Kotlin | 2 | 0 | 40826147d9ea77aaa58a3aa7660203c38e5b77ba | 188 | esyfovarsel | MIT License |
gerbera-main/src/main/kotlin/process/Process.kt | kotpot | 672,754,643 | false | {"Kotlin": 22941, "HTML": 82} | package org.kotpot.gerbera.process
sealed class Process {
abstract val block: suspend () -> Unit
abstract val next: ProcessSwitcher
}
class ProcessBuilder {
private class ProcessImpl : Process() {
override var block: suspend () -> Unit = {}
override var next: ProcessSwitcher = ProcessSw... | 0 | Kotlin | 0 | 4 | 9648fd588fb72affeedaed2a8122575082d712c1 | 372 | gerbera | MIT License |
src/main/kotlin/kotlinmud/action/contextBuilder/EquippedItemContextBuilder.kt | brandonlamb | 275,313,206 | true | {"Kotlin": 435931, "Dockerfile": 133, "Shell": 126} | package kotlinmud.action.contextBuilder
import kotlinmud.action.model.Context
import kotlinmud.action.type.Status
import kotlinmud.io.type.Syntax
import kotlinmud.mob.model.Mob
class EquippedItemContextBuilder(private val mob: Mob) : ContextBuilder {
override fun build(syntax: Syntax, word: String): Context<Any> ... | 0 | null | 0 | 0 | fc03c6230b9b3b66cd63994e74ddd7897732d527 | 598 | kotlinmud | MIT License |
features/feature-translate/src/main/java/com/worldturtlemedia/whalesay/features/translate/ui/error/state/ErrorBindingState.kt | worldturtlemedia | 167,640,908 | false | null | package com.worldturtlemedia.whalesay.features.translate.ui.error.state
import androidx.annotation.StringRes
import androidx.lifecycle.LiveData
import com.etiennelenhart.eiffel.binding.BindableMapping1
import com.etiennelenhart.eiffel.binding.BindableState
import com.etiennelenhart.eiffel.binding.bindableMapping
impor... | 12 | Kotlin | 0 | 0 | fbe09a3c0d5a332b090710626e2f75ca521d8384 | 1,412 | whalesay | MIT License |
src/main/kotlin/co/csadev/advent2022/Day20.kt | gtcompscientist | 577,439,489 | false | {"Kotlin": 252918} | /**
* Copyright (c) 2022 by <NAME>
* Advent of Code 2022, Day 20
* Problem Description: http://adventofcode.com/2021/day/20
*/
package co.csadev.advent2022
import co.csadev.adventOfCode.BaseDay
import co.csadev.adventOfCode.Resources.resourceAsList
import co.csadev.adventOfCode.circular
class Day20(override val i... | 0 | Kotlin | 0 | 1 | 43cbaac4e8b0a53e8aaae0f67dfc4395080e1383 | 1,068 | advent-of-kotlin | Apache License 2.0 |
libraries/scripting/dependencies-maven/src/kotlin/script/experimental/dependencies/maven/MavenDependenciesResolver.kt | BradOselo | 367,097,840 | true | 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 kotlin.script.experimental.dependencies.maven
import org.eclipse.aether.artifact.DefaultArtifact
impo... | 0 | null | 0 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 5,078 | kotlin | Apache License 2.0 |
model/src/main/kotlin/me/ogq/ocp/sample/model/publicityright/PublicityRight.kt | mj-at-ogq | 605,355,876 | false | null | package me.ogq.ocp.sample.model.publicityright
import me.ogq.ocp.sample.model.image.Image
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.OneToMany
@Entity
class PublicityRight(
@Id
var id: Long,
@OneToMany(mappedBy = "publicityRight")
val salesMarkets: MutableSet<... | 0 | Kotlin | 1 | 0 | 43ab8aa22afd010120bdbbe2a5268f33d77f968b | 834 | image-platform-api | MIT License |
lib/basic/src/main/java/com/dinesh/basic/app/network/api/util/ApiUtil.kt | Dinesh2811 | 745,880,179 | false | {"Kotlin": 1200547, "Java": 206284, "JavaScript": 20260} | package com.dinesh.basic.app.network.api.util
import org.json.JSONException
import org.json.JSONObject
import retrofit2.Response
fun <T> Response<T?>.relativeUrl(): String {
return try {
val pathSegments = raw().request.url.pathSegments.takeLast(2)
pathSegments.joinToString("/")
} catch (e: E... | 0 | Kotlin | 0 | 1 | d5b4b55728848196c71c351c186df7e57ad4e8c2 | 877 | Android101 | Apache License 2.0 |
app/src/main/java/com/example/androidonkotlin/view/history/HistoryFragment.kt | zurbaevi | 354,132,653 | false | null | package com.example.androidonkotlin.view.history
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.example.androidonkotlin.R
i... | 0 | Kotlin | 0 | 0 | a007a4817bcadf9e6d71084bd307ea6e5cea4719 | 2,708 | android-on-kotlin | MIT License |
src/me/camdenorrb/opencast/commands/sub/IntervalCmd.kt | camdenorrb | 77,727,425 | false | null | package me.camdenorrb.opencast.commands.sub
import me.camdenorrb.opencast.OpenCast
import me.camdenorrb.opencast.commands.SubCmd
import org.bukkit.ChatColor.*
import org.bukkit.command.CommandSender
/**
* Created by camdenorrb on 12/27/16.
*/
class IntervalCmd(val openCast: OpenCast) : SubCmd("interval", 1, "$RED/... | 0 | Kotlin | 0 | 2 | c7f1d43d1a0eb8a3d7648d8170aecdfecf4e9c6b | 819 | OpenCast | MIT License |
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/call/stats/model/RtcOutboundRtpAudioStreamStats.kt | GetStream | 505,572,267 | false | {"Kotlin": 2549850, "MDX": 279508, "Python": 18285, "Shell": 4455, "JavaScript": 1112, "PureBasic": 107} | /*
* Copyright (c) 2014-2023 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... | 3 | Kotlin | 30 | 308 | 1c67906e4c01e480ab180f30b39f341675bc147e | 2,975 | stream-video-android | FSF All Permissive License |
example/android/app/src/main/kotlin/com/example/client_information_example/MainActivity.kt | Tsagaanbayr1 | 387,647,276 | true | {"Dart": 24132, "Kotlin": 3583, "Swift": 2884, "Ruby": 2312, "HTML": 1573, "Objective-C": 763} | package kent.chien.client_information_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | null | 0 | 1 | ad2715b955d09249b531296ec5020a71b11e6d9c | 142 | client_information | MIT License |
libraries/api/src/main/java/com/simplecrud/api/interceptors/HelloWorldHeaderInterceptor.kt | keppra | 510,439,516 | false | {"Kotlin": 122424, "Java": 33124} | package com.simplecrud.api.interceptors
import okhttp3.Interceptor
import okhttp3.Response
import org.koin.core.component.KoinComponent
class HelloWorldHeaderInterceptor: Interceptor, KoinComponent {
override fun intercept(chain: Interceptor.Chain): Response = chain.run {
proceed(
request()
... | 0 | Kotlin | 0 | 0 | 67a6468860c57593e219f3942e1341198023b6e1 | 541 | simple-crud | MIT License |
app/src/main/java/com/joshuacerdenia/android/nicefeed/ui/viewmodel/EntryViewModel.kt | kitlith | 297,803,241 | true | {"Kotlin": 207296} | package com.joshuacerdenia.android.nicefeed.ui.viewmodel
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.joshuacerdenia.android.nicefeed.data.NiceFeedRepository
import com.joshuacerdenia.androi... | 0 | null | 0 | 0 | 8a81efe5886b27efbce15b817d2eab9704543550 | 2,216 | NiceFeed | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/CfnEgressOnlyInternetGatewayPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnEgressOnlyInternetGatewayProps
@Generated
public fun buildCfnEgressOnlyInternetGatewayProps(initializer: @AwsCdkDsl
CfnEgre... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 479 | aws-cdk-kt | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/CfnEgressOnlyInternetGatewayPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnEgressOnlyInternetGatewayProps
@Generated
public fun buildCfnEgressOnlyInternetGatewayProps(initializer: @AwsCdkDsl
CfnEgre... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 479 | aws-cdk-kt | Apache License 2.0 |
app/src/main/java/android/project/auction/presentation/updateprofile/UpdateProfileEvent.kt | RavanSA | 515,232,661 | false | {"Kotlin": 429676} | package android.project.auction.presentation.updateprofile
import android.net.Uri
sealed class UpdateProfileEvent {
data class OnFullNameChange(val value: String) : UpdateProfileEvent()
data class OnTitleChange(val value: String) : UpdateProfileEvent()
data class OnEmailChange(val value: String) : UpdateP... | 0 | Kotlin | 1 | 3 | c5914b4870d6b004152c45d6d41d7bd6c99eb9e6 | 909 | AuctionProject | MIT License |
plugin/src/main/kotlin/io/wttech/gradle/config/InputMode.kt | wttech | 542,640,409 | false | null | package io.wttech.gradle.config
enum class InputMode {
DEFAULTS,
GUI,
CLI,
FILE;
companion object {
fun of(name: String) = values().firstOrNull { it.name.equals(name, true) }
?: throw ConfigException("Config input mode '$name' is not supported!")
}
}
| 0 | Kotlin | 0 | 1 | 077f5140fab6faa026003c7a602612ee7663061c | 297 | gradle-config-plugin | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/ui/view/WeatherScreen.kt | ked4ma | 349,264,309 | 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 | 440dd9a070b329fc6aeb237878e6a2665bcacf4d | 14,105 | AndroidDevChallengeJetpackComposeWeek4 | Apache License 2.0 |
app/src/main/java/me/proton/reactiveui/ui/MessagesListScreen.kt | 4face-studi0 | 508,248,835 | false | null | package me.proton.reactiveui.ui
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
imp... | 0 | Kotlin | 1 | 0 | 3bcd2cda818f22ef259f8d36512f52e8f966a4c8 | 2,539 | ProtonReactiveUI | Apache License 2.0 |
containers/src/commonTest/kotlin/IteratorTests.kt | aeckar | 834,956,853 | false | {"Kotlin": 123024, "ANTLR": 18047} | import io.github.aeckar.parsing.containers.PivotIterator
import io.github.aeckar.parsing.containers.RevertibleIterator
import io.github.aeckar.parsing.containers.pivotIterator
import io.github.aeckar.parsing.containers.revertibleIterator
import kotlinx.io.buffered
import kotlinx.io.files.Path
import kotlinx.io.files.Sy... | 0 | Kotlin | 0 | 1 | 1682778adfd33ba3d38d0f967d80a0277b96216c | 2,826 | modular-parsers | MIT License |
app/src/main/java/com/example/currency_converter_plus/model/remote/RetrofitClient.kt | AntonyLajes | 575,114,247 | false | {"Kotlin": 19508} | package com.example.currency_converter_plus.model.remote
import com.example.currency_converter_plus.util.constants.RetrofitConstants
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
class RetrofitClient private constructor() {
companion object{
pr... | 0 | Kotlin | 0 | 0 | 089dc6c8b97512f2ebbf2b17da3f57eb78feccc0 | 879 | currency-converter-plus | MIT License |
app/src/main/java/coder/seventy/two/ecommerce/SingleCategoryProducts.kt | waiferkolar | 178,734,222 | false | null | package coder.seventy.two.ecommerce
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.view.MenuItemCompat
import android.support.v7.widget.LinearLayoutManager
import android.view.Menu
import android.view.MenuItem
import coder.seventy.two.ec... | 0 | Kotlin | 0 | 1 | 0cb3ac52ab2c0ac18635a85827b9a81d91a94fa5 | 2,736 | 72Android-Ecommerce | Freetype Project License |
common/src/main/java/net/sistr/flexibleguns/resource/DataDrivenModelLoader.kt | SistrScarlet | 437,250,021 | false | {"Kotlin": 239434, "Java": 36089} | package net.sistr.flexibleguns.resource
import com.google.common.collect.Lists
import net.minecraft.resource.ResourceManager
import net.minecraft.util.Identifier
import net.sistr.flexibleguns.FlexibleGunsMod
class DataDrivenModelLoader {
companion object {
val INSTANCE = DataDrivenModelLoader()
}
... | 0 | Kotlin | 0 | 2 | c00fbbfbd98a253f971cb9f5c87a4cf3eef9b6a2 | 926 | FlexibleGuns | MIT License |
src/test/kotlin/eZmaxApi/models/FieldEEzsigntemplateelementdependencyOperatorTest.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 | 705 | eZmax-SDK-kotlin | MIT License |
src/test/kotlin/org/jetbrains/kotlinx/jupyter/test/embeddingTest.kt | Snowgrass | 363,977,155 | true | {"Kotlin": 492519, "HTML": 54181, "JavaScript": 38779, "CSS": 16140, "Python": 6245, "Shell": 73} | package org.jetbrains.kotlinx.jupyter.test
import org.jetbrains.kotlinx.jupyter.ReplForJupyterImpl
import org.jetbrains.kotlinx.jupyter.api.MimeTypedResult
import org.jetbrains.kotlinx.jupyter.api.ResultHandlerCodeExecution
import org.jetbrains.kotlinx.jupyter.api.SubtypeRendererTypeHandler
import org.jetbrains.kotlin... | 8 | null | 0 | 0 | ce0bf03f5423c1861e8cd777874a00f71ec144cb | 4,641 | kotlin-jupyter | Apache License 2.0 |
src/main/kotlin/org/teamvoided/dusk_debris/block/voided/sign/VoidSignBlock.kt | TeamVoided | 814,767,803 | false | {"Kotlin": 153037, "Java": 3724} | package org.teamvoided.dusk_debris.block.voided.sign
import net.minecraft.block.sign.SignBlock
import net.minecraft.block.sign.SignType
import net.minecraft.util.Identifier
class VoidSignBlock(override val texture: Identifier, woodType: SignType, settings: Settings) :
SignBlock(woodType, settings.solid()), VoidSi... | 0 | Kotlin | 0 | 0 | 7973b474b08276fc01cb6222ceadf235004c29f3 | 324 | Dusk-Debris | MIT License |
domain-recipes/src/main/java/pl/smcebi/recipeme/domain/recipes/GetQuickAnswerUseCase.kt | Seba0855 | 616,026,534 | false | {"Kotlin": 89067} | package pl.smcebi.recipeme.domain.recipes
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.withContext
import pl.smcebi.recipeme.domain.common.dispatchers.DispatcherIO
import pl.smcebi.recipeme.domain.common.utils.DomainResult
import pl.smcebi.recipeme.domain.common.utils.getErrorMessage
import ... | 0 | Kotlin | 0 | 0 | 04a9966a50929063f3f85c2c270c91ce3133575e | 1,288 | recipe.me | Apache License 2.0 |
src/main/kotlin/mindustry_plugin_utils/Templates.kt | jakubDoka | 366,089,363 | false | null | package mindustry_plugin_utils
import java.lang.Integer.max
import java.lang.Integer.min
import java.lang.StringBuilder
object Templates {
fun page(title: String, lines: Array<String>, cap: Int, index: Int, color :String = "orange", comment: String = ""): String {
val count = lines.size / cap
val ... | 0 | Kotlin | 0 | 0 | 8c05670e12a18072e35654750df20d47deb1e21f | 1,957 | mindustry-plugin-utils | MIT License |
src/main/kotlin/dev/emad/framework/data/remote/response/mapper/AudioResponseMapper.kt | razavioo | 541,187,073 | false | null | package dev.emad.framework.data.remote.response.mapper
import dev.emad.business.model.Audio
import dev.emad.framework.data.local.mapper.Mapper
import dev.emad.framework.data.remote.response.model.AudioResponse
class AudioResponseMapper : Mapper<Audio, AudioResponse>() {
override fun from(value: Audio): AudioRespo... | 0 | Kotlin | 0 | 3 | 089d88eb806226e907976f0e631c1cf19710ea7b | 619 | any-audio-finder | MIT License |
app/src/androidTest/java/com/example/movieapp/detail/DetailFragmentTest.kt | Ahnset | 539,038,324 | false | {"Kotlin": 138435} | package com.example.movieapp.detail
import androidx.core.os.bundleOf
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.Visibility.VISIBLE
import androidx.... | 0 | Kotlin | 2 | 3 | a5ddc921f8f4df80cc13f17284015086fe6112b0 | 3,199 | movieapp | Apache License 2.0 |
features/chart/src/commonMain/kotlin/com/mathroda/chart/common/model/MultiChartDataSet.kt | MathRoda | 507,060,394 | false | {"Kotlin": 446115, "Swift": 4323, "Ruby": 2379, "Java": 624} | package com.mathroda.chart.common.model
import com.mathroda.chart.common.internal.common.model.ChartDataItem
import com.mathroda.chart.common.internal.common.model.MultiChartData
import com.mathroda.chart.common.internal.common.model.toChartData
/**
* A class that represents a data set for a chart.
*
* @property d... | 0 | Kotlin | 41 | 297 | cf303ba50bad35a816253bee5b27beee5ea364b8 | 1,314 | DashCoin | Apache License 2.0 |
android/app/src/main/kotlin/com/example/hashcode/MainActivity.kt | savagecarol | 324,532,127 | true | {"Dart": 20752, "HTML": 1505, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.hashcode
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | null | 0 | 0 | de8c57b594fef8a98b0ac2f046ce94b244b3bb5e | 125 | hashcode_app | MIT License |
app/src/main/java/teka/android/chamaaapp/presentation/home/HomeScreenViewModel.kt | samAricha | 759,726,734 | false | {"Kotlin": 368851} | package teka.android.chamaaapp.presentation.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import teka.android.... | 0 | Kotlin | 0 | 1 | 72c9892e0bec64f082d0c237da58be9cc6822194 | 1,305 | ChamaYetu | The Unlicense |
zoomimage-core/src/main/java/com/github/panpf/zoomimage/core/internal/CoreOtherUtils.kt | panpf | 647,222,866 | false | null | package com.github.panpf.zoomimage.core.internal
import java.math.BigDecimal
import java.math.RoundingMode
import kotlin.math.pow
import kotlin.math.roundToInt
import kotlin.math.roundToLong
internal fun Any.toHexString(): String = Integer.toHexString(this.hashCode())
internal fun Float.format(newScale: Int): Float... | 0 | Kotlin | 0 | 3 | a6814e1fc8a84946d8bad0cf41406519197784eb | 2,244 | zoomimage | Apache License 2.0 |
api/src/main/kotlin/kontrol/api/Monitorable.kt | neilellis | 15,782,049 | false | null | /*
* Copyright 2014 Cazcade Limited (http://cazcade.com)
*
* 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 | 38d115785e33b1383d389815e039f5f09f6ccec1 | 1,421 | kontrol | Apache License 2.0 |
whetstone/src/main/java/com/deliveryhero/whetstone/fragment/MultibindingFragmentFactory.kt | deliveryhero | 402,753,721 | false | {"Kotlin": 77197} | package com.deliveryhero.whetstone.fragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.deliveryhero.whetstone.activity.ActivityScope
import com.squareup.anvil.annotations.ContributesBinding
import dagger.Reusable
import javax.inject.Inject
import javax.inject.Provider... | 5 | Kotlin | 5 | 211 | 34d67b2c03f8110eb8c71b21678207677928b704 | 1,573 | whetstone | Apache License 2.0 |
src/main/kotlin/com/leetcode/top100LikedQuestions/easy/move_zeroes/Main.kt | frikit | 254,842,734 | false | null | package com.leetcode.top100LikedQuestions.easy.move_zeroes
fun main() {
println("Test case 1:")
println(Solution().moveZeroes(intArrayOf(0, 1, 0, 3, 12)))
println()
println("Test case 2:")
println(Solution().moveZeroes(intArrayOf(0)))
println()
}
class Solution {
fun moveZeroes(nums: IntA... | 0 | Kotlin | 0 | 0 | ba08fd191a0d1224f3ad3e949c77e9dce1abf34c | 684 | leet-code-problems | Apache License 2.0 |
app/src/main/java/com/tsu/firstlab/database/Word.kt | astyd256 | 609,680,319 | false | null | package com.tsu.firstlab.database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity()
data class Word(
@PrimaryKey(autoGenerate = false) val word: String,
val phonetic: String,
val partOfSpeech: String,
val soundURL: String,
@ColumnInfo(defaultValu... | 0 | Kotlin | 0 | 0 | ef4281bcec96d5fa7bff489c889e3789d5e92dcd | 357 | English-Vocabulary-Android-App | MIT License |
data/src/main/java/com/semicolon/data/remote/request/users/UpdateProfileRequest.kt | Walkhub | 443,006,389 | false | null | package com.semicolon.data.remote.request.users
import com.google.gson.annotations.SerializedName
data class UpdateProfileRequest(
@SerializedName("name") val name: String,
@SerializedName("profile_image_url") val profileImageUrl: String,
@SerializedName("sex") val sex: String
) | 30 | Kotlin | 1 | 15 | c2d85ebb9ae8b200be22e9029dcfdcbfed19e473 | 293 | walkhub_android | MIT License |
src/commonMain/kotlin/com/bkahlert/kommons/builder/EnumSetBuilder.kt | bkahlert | 323,048,013 | false | null | @file:Suppress("PropertyName")
package com.bkahlert.kommons.builder
import com.bkahlert.kommons.asString
import com.bkahlert.kommons.builder.context.ListBuildingContext
import kotlin.contracts.InvocationKind.EXACTLY_ONCE
import kotlin.contracts.contract
/**
* Builder of an [Enum] [Set] of any enum type [E].
*
* @... | 7 | Kotlin | 0 | 9 | 35e2ac1c4246decdf7e7a1160bfdd5c9e28fd066 | 2,166 | kommons | MIT License |
app/src/main/java/com/example/busschedule/data/AppContainer.kt | JimmyAlele | 702,268,926 | false | {"Kotlin": 29026} | package com.example.busschedule.data
import android.content.Context
/**
* App container for Dependency injection.
*/
interface AppContainer {
val busScheduleRepository: BusScheduleRepository
}
/**
* [AppContainer] implementation that provides instance of [OfflineBusScheduleRepository]
*/
class AppDataContain... | 0 | Kotlin | 0 | 0 | 375cb7bf9a44b3ecb2eb159c3e36e0cf7663c0ad | 613 | BusSchedule | Apache License 2.0 |
src/main/kotlin/io/cutebot/memegenmanage/bot/commands/ManageBotCommand.kt | asundukov | 280,483,551 | false | null | package io.cutebot.memegenmanage.bot.commands
import io.cutebot.memegenmanage.bot.blocks.StartBlock
import io.cutebot.memegenmanage.bot.blocks.managebot.ManageMenuBlock
import io.cutebot.memegenmanage.bot.blocks.managebot.tools.ManageTools
import io.cutebot.memegenmanage.bot.blocks.managebot.tools.ManageToolsFactory
i... | 7 | Kotlin | 0 | 0 | 358dd371a66a77968c646020ecd3dd555bebef3b | 1,459 | meme-gen-manage-bot | Apache License 2.0 |
app/src/main/java/com/dew/aihua/infolist/adapter/InfoItemDialog.kt | ed828a | 172,828,123 | false | null | package com.dew.aihua.infolist.adapter
import android.app.Activity
import android.app.AlertDialog
import android.content.DialogInterface
import android.view.View
import android.widget.TextView
import com.dew.aihua.R
import org.schabi.newpipe.extractor.stream.StreamInfoItem
/**
* Created by Edward on 3/2/2019.
*/
c... | 0 | Kotlin | 0 | 1 | 1896f46888b5a954b367e83f40b845ce174a2328 | 1,577 | Aihua | Apache License 2.0 |
richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/parser/markdown/MarkdownAnnotation.kt | MohamedRejeb | 630,584,174 | false | null | package com.mohamedrejeb.richeditor.parser.markdown
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.unit.em
import com.mohamedrejeb.richeditor.model.R... | 12 | Kotlin | 17 | 484 | 4dac74b8cce711dee0a2191d332ee6824c0a3761 | 9,053 | Compose-Rich-Editor | Apache License 2.0 |
LeetCode/Remove All Occurrences of a Substring/main.kt | Code-With-Aagam | 455,843,406 | true | {"C++": 2823238, "Kotlin": 190162, "Swift": 170085, "Java": 56114, "Python": 14574, "C": 3440, "Shell": 732, "JavaScript": 719} | class Solution {
fun removeOccurrences(s: String, part: String): String {
var ans = s
while (ans.contains(part)) {
ans = ans.replaceFirst(part, "")
}
return ans
}
} | 0 | null | 0 | 2 | 610520cc396fb13a03c606b5fb6739cfd68cc444 | 216 | competitive-programming | MIT License |
src/Day09.kt | Misano9699 | 572,108,457 | false | null | fun main() {
val head = 0
var tail = 1
var knots = MutableList(tail + 1) { Point(0, 0) }
var tailPoints = mutableSetOf(knots[tail])
fun reset() {
knots = MutableList(tail + 1) { Point(0, 0) }
tailPoints = mutableSetOf(knots[tail])
}
fun moveTailY(knot: Int) = when (knots[... | 0 | Kotlin | 0 | 0 | adb8c5e5098fde01a4438eb2a437840922fb8ae6 | 2,774 | advent-of-code-2022 | Apache License 2.0 |
app/src/main/java/ton/coin/wallet/feature/send/amount/SendAmountViewModel.kt | protoshadowmaker | 643,940,461 | false | null | package ton.coin.wallet.feature.send.amount
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.launch
import org.koin.core.component.inject
import ton.coin.wallet.common.lifecycle.ConductorViewModel
import ton.co... | 0 | Kotlin | 0 | 0 | adf8eb798a8e044427b7295136913869bf264e7e | 3,431 | tonwallet | MIT License |
vb-prebuilt/src/main/java/live/hms/vb_prebuilt/VirtualBackgroundOptions.kt | 100mslive | 330,654,934 | false | {"Kotlin": 1217116, "Java": 63283} | package live.hms.vb_prebuilt
import android.graphics.Bitmap
import androidx.annotation.DrawableRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arra... | 29 | Kotlin | 39 | 87 | ca00e87c14b81319118b60d52c22038ca9bb7e22 | 12,711 | 100ms-android | MIT License |
interactors/src/main/java/app/tivi/interactors/UpdateShowSeasons.kt | kumamon-git | 143,403,157 | true | {"Kotlin": 535436, "Shell": 2064, "Java": 737} | /*
* 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 | Kotlin | 0 | 0 | 576ce71a830303f3a78bf0ed20ef4dd9e6f93b1d | 1,732 | tivi | Apache License 2.0 |
src/main/kotlin/io/github/platan/tests_execution_chart/reporters/json/JsonReporter.kt | platan | 549,810,072 | false | null | package io.github.platan.tests_execution_chart.reporters.json
import groovy.json.JsonOutput
import io.github.platan.tests_execution_chart.config.Json
import io.github.platan.tests_execution_chart.report.TestExecutionScheduleReport
import io.github.platan.tests_execution_chart.reporters.GanttDiagramReporter
import io.g... | 0 | Kotlin | 3 | 9 | 16069d8cf9d6661246f7e9438b73a99c3cc4bf62 | 903 | tests-execution-chart | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.