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/main/kotlin/me/schalk/spigot/tmcz/modules/mob/ZombieListener.kt | themaskedcrusader | 9,065,161 | false | {"Kotlin": 92952} | /*
* Copyright (c) 2013 - 2023 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publi... | 0 | Kotlin | 0 | 0 | 71d06ba1454f4d1e3ee51e4812574cf5facb53f2 | 5,182 | tmcz | MIT License |
app/src/main/java/mobi/visamate/view/adapter/SchoolsAdapter.kt | gabeira | 120,718,185 | false | null | package mobi.visamate.view.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import mobi.visamate.R
import mobi.visamate.model.School
import mobi.visamate.view.StudyFragment.OnListFragmentInter... | 1 | Kotlin | 1 | 0 | 4c9ccd5f85c342fa67daf2846123dcfb8b53f0f8 | 2,196 | VisaMate | Apache License 2.0 |
src/test/kotlin/engineer/thomas_werner/euler/Problem27Test.kt | KKghai | 183,355,188 | true | {"Kotlin": 116039, "Java": 34495} | package engineer.thomas_werner.euler
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class Problem27Test {
@Test
fun testIsPrime() {
Assertions.assertEquals(true, Problem27.isPrime(0, -79, 1601))
}
@Test
fun testGetConsecutivePrimes() {
Assertions.assert... | 0 | Kotlin | 0 | 0 | abd5c4f0dfbc820aac857017e12dcaf0ac1ff68a | 457 | euler | MIT License |
src/main/kotlin/com/axel/todo/dto/TodoDto.kt | axelasa | 670,972,749 | false | null | package com.axel.todo.dto
import com.axel.todo.entities.TodoEntity
import java.util.Date
data class TodoDto (
val title:String,
val notes:String,
val createdAt:Date,
val updatedAt:Date,
val username:String,
){
companion object{
fun fromTodoEntity(s: TodoEntity):TodoDto{
ret... | 0 | Kotlin | 0 | 0 | 6e5c7e14a24cd2357341526dc3a5d77e55cf0094 | 406 | todo_backend | MIT License |
kotlin/services/translate/src/main/kotlin/com/kotlin/translate/BatchTranslation.kt | awsdocs | 66,023,605 | false | {"Java": 6203673, "Python": 3418340, "C#": 2622899, "C++": 2219841, "JavaScript": 2089519, "Go": 1637068, "Kotlin": 1428578, "Rust": 1079600, "PHP": 962022, "Ruby": 565537, "Swift": 541762, "ABAP": 529305, "Shell": 319760, "TypeScript": 255687, "CMake": 225257, "HTML": 141442, "CSS": 26181, "Dockerfile": 11827, "Jinja"... | //snippet-sourcedescription:[BatchTranslation.kt demonstrates how to translate multiple text documents located in an Amazon S3 bucket.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon Translate]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[11/05/2021]
//snip... | 248 | Java | 5614 | 9,502 | 3d8f94799b9c661cd7092e03d6673efc10720e52 | 3,750 | aws-doc-sdk-examples | Apache License 2.0 |
plugins/maven/src/main/java/org/jetbrains/idea/maven/server/AbstractMavenServerConnector.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.maven.server
import com.intellij.openapi.project.Project
import com.intellij.openapi.projectRoots.Sdk
import com.intellij.util.ExceptionUtil
import org.jetbrains.idea.mave... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 4,721 | intellij-community | Apache License 2.0 |
core/metadata.jvm/src/org/jetbrains/kotlin/metadata/jvm/deserialization/BinaryModuleData.kt | prasenjitghose36 | 258,198,392 | true | null | /*
* Copyright 2000-2018 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.metadata.jvm.deserialization
/**
* @param annotations list of module annotation... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 447 | kotlin | Apache License 2.0 |
demo-exoplayer/src/main/java/toro/demo/exoplayer/basic/SectionContentAdapter.kt | eneim | 50,781,664 | false | null | /*
* Copyright (c) 2018 <NAME>, <EMAIL>
*
* 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... | 162 | Java | 258 | 1,426 | cb59d3a15053741c0ee1ae0a60e32719778aef02 | 2,297 | toro | Apache License 2.0 |
libs/docker-client/src/main/kotlin/batect/docker/pull/ImagePullProgress.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-2021 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | 12 | null | 47 | 620 | 1b6cb1d79d91a70a0cb038cc29b2db1c025fea9e | 1,030 | batect | Apache License 2.0 |
autoconsent/autoconsent-impl/src/main/java/com/duckduckgo/autoconsent/impl/store/AutoconsentDatabase.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2022 DuckDuckGo
*
* 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 ... | 67 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 969 | Android | Apache License 2.0 |
mvi/src/main/java/com/worldsnas/mvi/MviProcessor.kt | worldsnas | 178,716,293 | false | {"Kotlin": 397002, "Java": 240871} | package com.worldsnas.mvi
import io.reactivex.ObservableTransformer
interface MviProcessor<A : MviIntent, R : MviResult> {
val actionProcessor: ObservableTransformer<A, R>
} | 1 | Kotlin | 8 | 57 | c7d084d2cf2c4f9486337fe347d5d6b8b5806e0a | 180 | AIO | Apache License 2.0 |
mobile-common-lib/src/commonMain/kotlin/fi/riista/common/domain/huntingControl/ui/HuntingControlEventField.kt | suomenriistakeskus | 78,840,058 | false | null | package fi.riista.common.domain.huntingControl.ui
import fi.riista.common.ui.dataField.IndexedDataFieldId
data class HuntingControlEventField(
override val type: Type,
override val index: Int = 0
) : IndexedDataFieldId<HuntingControlEventField.Type>() {
init {
validateIndex()
}
enum clas... | 0 | null | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 1,222 | oma-riista-android | MIT License |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/annotator/intentions/AddParenthesesToLambdaParameterIntention.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.groovy.annotator.intentions
import com.intellij.modcommand.ActionContext
import com.intellij.modcommand.ModPsiUpdater
import com.intellij.modcommand.Presentation
import... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,753 | intellij-community | Apache License 2.0 |
libnavigation-base/src/test/java/com/mapbox/navigation/base/options/PredictiveCacheOptionsTest.kt | mapbox | 87,455,763 | false | {"Kotlin": 9692008, "Python": 65081, "Java": 36829, "HTML": 17811, "Makefile": 9840, "Shell": 7129} | package com.mapbox.navigation.base.options
import org.junit.Assert.assertEquals
import org.junit.Test
class PredictiveCacheOptionsTest {
@Test
fun defaultMapsOptionsList() {
val expected = PredictiveCacheMapsOptions.Builder().build()
val actual = PredictiveCacheOptions.Builder().build()
... | 505 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 3,269 | mapbox-navigation-android | Apache License 2.0 |
soapui-transform-karate/src/main/kotlin/eu/k5/soapui/transform/karate/TransformProperties.kt | denninger-eu | 244,302,123 | false | null | package eu.k5.soapui.transform.karate
import eu.k5.soapui.streams.model.SuuProperties
import eu.k5.soapui.streams.model.test.SuuPropertyTransfer
import eu.k5.soapui.streams.model.test.SuuTestStepProperties
import eu.k5.soapui.streams.model.test.SuuTestStepPropertyTransfers
import eu.k5.soapui.streams.model.test.SuuTes... | 5 | Kotlin | 0 | 0 | 665e54e4ac65d6c7e9805bb1b44f30f9ec702ce3 | 1,870 | soapui-utils | Apache License 2.0 |
Android/app/src/main/java/io/github/project_travel_mate/destinations/description/RestaurantDetailsActivity.kt | smtrz | 216,486,179 | false | null | package io.github.project_travel_mate.destinations.description
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import android.util.Log
import com.squareup.picasso.Picasso
import io.github.project... | 1 | null | 2 | 5 | bec6f8e12e5d0e7d3ba7f664c6498cb22265a66b | 2,633 | Travel-Mate | MIT License |
src/main/kotlin/com/xfastgames/witness/blocks/redstone/IronStandBlock.kt | xxfast | 262,454,399 | false | null | package com.xfastgames.witness.blocks.redstone
import com.xfastgames.witness.Witness
import com.xfastgames.witness.utils.*
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.block.Material
import net.m... | 5 | null | 2 | 3 | a71fcb603202c382b06036756ea28bb79f5e76f3 | 2,344 | fabric-witness | Creative Commons Zero v1.0 Universal |
src/main/kotlin/com/xfastgames/witness/blocks/redstone/IronStandBlock.kt | xxfast | 262,454,399 | false | null | package com.xfastgames.witness.blocks.redstone
import com.xfastgames.witness.Witness
import com.xfastgames.witness.utils.*
import net.fabricmc.fabric.api.`object`.builder.v1.block.FabricBlockSettings
import net.minecraft.block.Block
import net.minecraft.block.BlockState
import net.minecraft.block.Material
import net.m... | 5 | null | 2 | 3 | a71fcb603202c382b06036756ea28bb79f5e76f3 | 2,344 | fabric-witness | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/diplom/map/room/dao/GlobalDao.kt | DonGlebon | 175,883,786 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Proguard": 1, "XML": 55, "Kotlin": 78, "Java": 1} | package com.diplom.map.room.dao
import android.graphics.Color
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Transaction
import com.diplom.map.utils.model.ESRILayer
import com.diplom.map.room.entities.*
import java.util.*
import kotlin.collections.ArrayList
@Dao
i... | 1 | null | 1 | 1 | 45f2e59eed6f228f42d0b2b45ad374746a7dc9d3 | 3,114 | Diplom | MIT License |
resources/sdk/purecloudkotlin/extensions/connector/apache/ApacheHttpResponse.kt | purecloudlabs | 86,603,958 | false | null | package com.mypurecloud.sdk.v2.connector.apache
import com.mypurecloud.sdk.v2.connector.ApiClientConnectorResponse
import org.apache.http.client.methods.CloseableHttpResponse
import org.apache.http.entity.BufferedHttpEntity
import org.apache.http.util.EntityUtils
import org.slf4j.LoggerFactory
import java.io.IOExcepti... | 7 | null | 34 | 5 | 422af22870610196fb253ac1125cc14fe2e01fc4 | 1,989 | platform-client-sdk-common | MIT License |
examples/MagicWeatherCompose/app/src/main/java/com/revenuecat/sample/paywall/PaywallLoadingView.kt | RevenueCat | 127,346,826 | false | {"Kotlin": 3187935, "Java": 82657, "Ruby": 28079, "Shell": 443} | package com.revenuecat.sample.paywall
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compo... | 30 | Kotlin | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 799 | purchases-android | MIT License |
base/src/main/kotlin/rmg/apps/cards/base/dsl/MutableSignifiedRepositoryAddDsl.kt | rmgrimm | 91,530,687 | false | {"Batchfile": 1, "XML": 45, "Shell": 2, "Maven POM": 12, "Ignore List": 4, "EditorConfig": 1, "Markdown": 6, "Kotlin": 39, "INI": 1, "Java": 1, "YAML": 1, "JSON": 1, "JSON with Comments": 2, "JavaScript": 21, "Jest Snapshot": 1, "EJS": 1, "CSS": 1, "HTML": 9} | package rmg.apps.cards.base.dsl
import rmg.apps.cards.base.MutableSignifiedRepository
import rmg.apps.cards.base.model.Definition
import rmg.apps.cards.base.model.Signified
import rmg.apps.cards.base.model.Signifier
import rmg.apps.cards.base.model.WrittenWord
inline fun <T, U> MutableSignifiedRepository<T, U>.add(el... | 0 | Kotlin | 1 | 1 | 7189dabb97892aa9bb314c83924d8f2484df0e00 | 1,877 | cards | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/motion/Path.kt | jmaff | 190,898,816 | false | {"Gradle": 7, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 8, "HTML": 387, "CSS": 1, "JavaScript": 1, "Text": 5, "INI": 1, "XML": 19, "Java": 60, "Kotlin": 45} | package org.firstinspires.ftc.teamcode.motion
import kotlin.math.abs
import kotlin.math.atan2
import kotlin.math.hypot
class Path(val waypoints: MutableList<Waypoint>) {
val lastIndex
get() = waypoints.lastIndex
constructor() : this(mutableListOf<Waypoint>())
constructor(vararg waypoints: Waypoint... | 1 | null | 1 | 1 | 784f1f006bc5b0887e104b33b7fc58e8dd846752 | 1,824 | skystone | MIT License |
zircon.jvm.swing/src/main/kotlin/org/hexworks/zircon/internal/tileset/Java2DImageDictionaryTileset.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.internal.tileset
import com.github.benmanes.caffeine.cache.Caffeine
import org.hexworks.cobalt.datatypes.factory.IdentifierFactory
import org.hexworks.zircon.api.data.ImageTile
import org.hexworks.zircon.api.data.Position
import org.hexworks.zircon.api.data.Tile
import org.hexworks.zircon.i... | 42 | null | 138 | 735 | 9eeabb2b30e493189c9931f40d48bae877cf3554 | 2,404 | zircon | Apache License 2.0 |
base/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/cxx/configure/CmakeCommandLine.kt | qiangxu1996 | 301,210,525 | false | {"Gradle Kotlin DSL": 2, "Shell": 29, "Markdown": 39, "Batchfile": 10, "Text": 287, "Ignore List": 47, "Java": 4790, "INI": 19, "XML": 1725, "Gradle": 543, "Starlark": 149, "JAR Manifest": 3, "Kotlin": 1462, "Ant Build System": 3, "HTML": 6, "Makefile": 12, "XSLT": 6, "CSS": 10, "Git Attributes": 2, "Protocol Buffer": ... | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 1 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 10,411 | vmtrace | Apache License 2.0 |
j2k/tests/testData/ast/arrayInitializerExpression/oneDimWithVariables.kt | craastad | 18,462,025 | false | {"Markdown": 18, "XML": 405, "Ant Build System": 23, "Ignore List": 7, "Maven POM": 34, "Kotlin": 10194, "Java": 3675, "CSS": 10, "Shell": 6, "Batchfile": 6, "Java Properties": 9, "Gradle": 61, "INI": 6, "JavaScript": 42, "HTML": 77, "Text": 875, "Roff": 53, "Roff Manpage": 8, "JFlex": 3, "JAR Manifest": 1, "Protocol B... | var a: Int = 0
var b: Int = 0
var c: Int = 0
var `is`: IntArray? = intArray(a, b, c) | 1 | null | 1 | 1 | f41f48b1124e2f162295718850426193ab55f43f | 84 | kotlin | Apache License 2.0 |
compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/rewriteAtSliceFunctor.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// See KT-28847
class Foo(val str: String?) {
val first = run {
str.isNullOrEmpty()
second
}
val second = str.isNullOrEmpty()
} | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 174 | kotlin | Apache License 2.0 |
src/main/kotlin/com/txq/tree/BST.kt | flyingyizi | 124,735,014 | false | {"Maven POM": 1, "Shell": 1, "Dockerfile": 1, "Text": 1, "Ignore List": 1, "Markdown": 3, "XML": 2, "Java": 5, "Kotlin": 26, "YAML": 1, "INI": 1} | package com.txq.tree
//BST: binary search tree 二叉搜索树,二叉查找树
class BST <E> {
private var root: Node<E>? = null
private class Node<E>(var key: E, var parent: Node<E>?) {
var left: Node<E>? = null
var right: Node<E>? = null
}
fun insert(key: E): Boolean {
if (root == null)
... | 0 | Kotlin | 0 | 0 | f4ace2d018ae8a93becaee85b7db882098074b7a | 2,529 | helloworldprovider | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/fieldNameClashGeneric.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
OPTIONAL_JVM_INLINE_ANNOTATION
value class Z<T: String>(val s: T) {
val Int.s: Int get() = 42
}
fun box(): String {
if (Z("a").toString() == "Z(s=a)")
return "OK"
return "Fail"
}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 299 | kotlin | Apache License 2.0 |
exchanger/src/main/kotlin/com/d3/exchange/exchanger/strategy/CurveRateStrategy.kt | soramitsu | 244,327,608 | false | {"Gradle": 14, "Shell": 4, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 7, "Kotlin": 116, "INI": 11, "Java Properties": 6, "Dockerfile": 2, "YAML": 19, "Python": 3, "Public Key": 23, "Java": 1} | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.exchange.exchanger.strategy
import com.d3.commons.sidechain.iroha.util.IrohaQueryHelper
import com.d3.exchange.exchanger.exceptions.TooMuchAssetVolumeException
import mu.KLogging
import org.apache.commons.ma... | 1 | null | 1 | 1 | f89adf925163279d1cb4c65fa35fb3cbd8230113 | 2,641 | soranet-validator | Apache License 2.0 |
demo/app/src/main/java/com/alecarnevale/diplomatico/demo/DrinkDatabase.kt | alecarnevale | 849,456,596 | false | {"Kotlin": 53018} | package com.alecarnevale.diplomatico.demo
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.alecarnevale.diplomatico.annotations.HashingRoomDBVersion
import com.alecarnevale.diplomatico.demo.beverage.B... | 7 | Kotlin | 0 | 3 | f4faabdcc8f81637e52c0a563a5a6d080092a2d0 | 2,032 | diplomatico | Apache License 2.0 |
src/main/kotlin/com/troy/theme/StartListener.kt | yahweh042 | 636,054,740 | false | null | package com.troy.theme
import com.intellij.ide.AppLifecycleListener
import com.intellij.openapi.application.ApplicationManager
import javax.swing.UIManager
class StartListener : AppLifecycleListener {
override fun appFrameCreated(commandLineArgs: MutableList<String>) {
replaceActionButton()
// ... | 0 | Kotlin | 0 | 0 | 5cefea5e3f1630f39f0da58be58f27439058858c | 670 | a-theme | MIT License |
src/test/kotlin/g2101_2200/s2197_replace_non_coprime_numbers_in_array/SolutionTest.kt | javadev | 190,711,550 | false | {"Kotlin": 4909193, "TypeScript": 50446, "Python": 3646, "Shell": 994} | package g2101_2200.s2197_replace_non_coprime_numbers_in_array
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.jupiter.api.Test
internal class SolutionTest {
@Test
fun replaceNonCoprimes() {
assertThat(
Solution().replaceNonCoprimes(int... | 0 | Kotlin | 20 | 43 | 62708bc4d70ca2bfb6942e4bbfb4c64641e598e8 | 866 | LeetCode-in-Kotlin | MIT License |
kmmtest1_base/src/commonMain/kotlin/com/santiihoyos/kmmtest1/data/datasources/api/response/LocationResponse.kt | santiihoyos | 450,130,452 | false | null | package com.santiihoyos.kmmtest1.data.datasources.api.response
data class LocationResponse(
/**
* The id of the location.
*/
val id: Int?,
/**
* The name of the location.
*/
val name: String?,
/**
* The type of the location.
*/
val type: String?,
/**
*... | 0 | Kotlin | 0 | 0 | e2a5d30ad9194eb0537a8382889f32e2808f9550 | 714 | kmm-poc | MIT License |
app/src/main/java/com/apaluk/wsplayer/domain/repository/StreamCinemaRepository.kt | apaluk | 576,009,487 | false | null | package com.apaluk.wsplayer.domain.repository
import com.apaluk.wsplayer.core.util.Resource
import com.apaluk.wsplayer.domain.model.media.*
import com.apaluk.wsplayer.domain.model.search.SearchResultItem
import kotlinx.coroutines.flow.Flow
interface StreamCinemaRepository {
fun getMediaStreams(mediaId: String): ... | 0 | Kotlin | 0 | 0 | 551703a932d3659f5dadd058d4e3083cbff25534 | 658 | ws-player-android | MIT License |
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/attach/dialog/AttachViewType.kt | ingokegel | 72,937,917 | true | 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.xdebugger.impl.ui.attach.dialog
import com.intellij.xdebugger.XDebuggerBundle
import org.jetbrains.annotations.Nls
enum class AttachViewType(@Nls val displayText: String) {
L... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 459 | intellij-community | Apache License 2.0 |
composeApp/src/commonMain/kotlin/dev/anvith/binanceninja/data/remote/models/AdDetails.kt | humblerookie | 734,842,239 | false | {"Kotlin": 157941, "Swift": 4768} | package dev.anvith.binanceninja.data.remote.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AdDetails(
@SerialName( "advNo")
val advNo: String?,
@SerialName( "asset")
val asset: String?,
@SerialName( "buyerBtcPositionLimit")
va... | 1 | Kotlin | 1 | 1 | 351e3924e3333663d2b43fe3b8e97139c97a7a6c | 1,624 | binance-ninja | Apache License 2.0 |
app/src/main/java/io/github/tobyhs/weatherweight/data/model/ForecastResultSet.kt | tobyhs | 78,722,921 | false | {"Kotlin": 83159} | package io.github.tobyhs.weatherweight.data.model
import com.squareup.moshi.JsonClass
import java.time.ZonedDateTime
/**
* A result set for weather forecasts
*
* @property location location this forecast is for
* @property publicationTime time of this forecast
* @property dailyForecasts daily forecasts for toda... | 0 | Kotlin | 1 | 9 | c377e4c1254c6ff4b0228ba252b3218993e050ae | 569 | WeatherWeight | MIT License |
src/nativeGen/kotlin/godot/AStar.kt | piiertho | 237,614,467 | true | {"Kotlin": 5300589} | // DO NOT EDIT, THIS FILE IS GENERATED FROM api.json
package godot
import gdnative.godot_method_bind
import godot.core.Godot
import godot.core.PoolIntArray
import godot.core.PoolVector3Array
import godot.core.Variant
import godot.core.VariantArray
import godot.core.Vector3
import kotlin.Boolean
import kotlin.Float
imp... | 0 | null | 0 | 1 | 3a8c598040f9b47b2b8cf8f5432543f61d6f83e8 | 13,308 | godot-kotlin | MIT License |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/channels/listeners/ChannelPopupClickListenersImpl.kt | sceyt | 549,073,085 | false | {"Kotlin": 2675924, "Java": 107920} | package com.sceyt.sceytchatuikit.presentation.uicomponents.channels.listeners
import com.sceyt.sceytchatuikit.data.models.channels.SceytChannel
import com.sceyt.sceytchatuikit.presentation.uicomponents.channels.ChannelsListView
open class ChannelPopupClickListenersImpl(view: ChannelsListView) : ChannelPopupClickListe... | 0 | Kotlin | 1 | 2 | ce9c1b95555fadaafcd11f0d073fcdb07ca49600 | 5,573 | sceyt-chat-android-uikit | MIT License |
app/src/main/java/com/kotlin/cleanarchitecture/presentation/root/RootScreen.kt | hiroshi-homma-origin | 287,533,709 | false | {"Kotlin": 36592, "Ruby": 4164} | package com.kotlin.cleanarchitecture.presentation.root
import androidx.compose.material.FabPosition
import androidx.compose.material.Scaffold
import androidx.compose.material.rememberScaffoldState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.liveda... | 0 | Kotlin | 1 | 1 | 9f155d0b8cc2e0eb86bcdd6eb226fca887c74a1e | 2,011 | hiroCleanArchitecture | Apache License 2.0 |
watchmen-model/src/main/kotlin/com/matrdata/watchmen/model/chart/BarChart.kt | Indexical-Metrics-Measure-Advisory | 478,865,509 | false | {"Kotlin": 160616} | package com.matrdata.watchmen.model.chart
import com.matrdata.watchmen.model.common.DataModel
import java.math.BigDecimal
enum class BarLabelPosition(val code: String) {
TOP("top"),
LEFT("left"),
RIGHT("right"),
BOTTOM("bottom"),
INSIDE("inside"),
INSIDE_LEFT("insideLeft"),
INSIDE_RIGHT("insideRight"),
INSIDE... | 0 | Kotlin | 0 | 0 | bd8ef342a31c4a2bac57f96f00e9069b386e7c5a | 2,264 | watchmen-kotlin | MIT License |
adoptopenjdk-api-v3-frontend/src/main/kotlin/net/adoptopenjdk/api/v3/routes/info/ReleaseListResource.kt | heubeck | 355,335,958 | true | {"Kotlin": 463588, "HTML": 1846, "Shell": 1256, "CSS": 992, "Dockerfile": 608} | package net.adoptopenjdk.api.v3.routes.info
import net.adoptopenjdk.api.v3.OpenApiDocs
import net.adoptopenjdk.api.v3.Pagination
import net.adoptopenjdk.api.v3.Pagination.getPage
import net.adoptopenjdk.api.v3.dataSources.APIDataStore
import net.adoptopenjdk.api.v3.dataSources.SortMethod
import net.adoptopenjdk.api.v3... | 10 | Kotlin | 0 | 0 | 3bf55828098d0089c17051547e1aa1a69155efb7 | 6,067 | api.adoptium.net | Apache License 2.0 |
app/src/main/java/be/digitalia/fosdem/db/converters/NonNullDateTypeConverters.kt | oraluben | 219,161,297 | true | {"Kotlin": 293346} | package be.digitalia.fosdem.db.converters
import androidx.room.TypeConverter
import java.util.*
object NonNullDateTypeConverters {
@JvmStatic
@TypeConverter
fun toDate(value: Long): Date = Date(value)
@JvmStatic
@TypeConverter
fun fromDate(value: Date): Long = value.time
} | 0 | Kotlin | 0 | 0 | 64188a1bd67ea8748d48db8f31b44865347397dd | 300 | fosdem-companion-android | Apache License 2.0 |
app/src/main/java/com/dm/client/services/Message.kt | azarudeenpn | 168,494,224 | false | null | package com.dm.client.services
import com.bluelinelabs.logansquare.annotation.JsonField
import com.bluelinelabs.logansquare.annotation.JsonObject
@JsonObject
public class Message{
@JsonField
public var message: String = ""
} | 0 | Kotlin | 0 | 0 | 74d3aadfd03f3b25ce087b26898292305e75a2ff | 236 | dm-android | MIT License |
ui-components/src/main/java/com/mapbox/navigation/ui/components/maneuver/model/ManeuverPrimaryOptions.kt | mapbox | 87,455,763 | false | {"Kotlin": 8885438, "Makefile": 8762, "Python": 7925, "Java": 4624} | package com.mapbox.navigation.ui.maneuver.model
import androidx.annotation.StyleRes
import androidx.core.widget.TextViewCompat
import com.mapbox.navigation.ui.maneuver.R
import com.mapbox.navigation.ui.maneuver.view.MapboxExitText
import com.mapbox.navigation.ui.maneuver.view.MapboxPrimaryManeuver
/**
* Specifies op... | 508 | Kotlin | 319 | 621 | ad73c6011348cb9b24b92a369024ca06f48845ab | 3,095 | mapbox-navigation-android | Apache License 2.0 |
app/src/main/java/com/qhy040404/libraryonetap/constant/GlobalValues.kt | qhy040404 | 484,416,715 | false | null | package com.qhy040404.libraryonetap.constant
import androidx.core.content.edit
import com.qhy040404.libraryonetap.BuildConfig
import com.qhy040404.libraryonetap.R
import com.qhy040404.libraryonetap.utils.PackageUtils
import com.qhy040404.libraryonetap.utils.SPDelegates
import com.qhy040404.libraryonetap.utils.SPUtils
... | 5 | null | 0 | 9 | db5d2cf858f05a03273c5fe1e06944a713842c71 | 4,070 | Library-One-Tap-Android | Apache License 2.0 |
stripe/src/test/java/com/stripe/android/model/PaymentIntentRedirectDataTest.kt | swdreams | 220,836,994 | false | null | package com.stripe.android.model
import android.net.Uri
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
@RunWith(RobolectricTestRunner::class)
class PaymentIntentRedirect... | 0 | null | 1 | 2 | 413c85d6213d894510cc78684287783e36eeb53b | 1,468 | stripe-android | MIT License |
module_common/src/main/kotlin/com/yizhenwind/booster/common/model/ZoneServer.kt | WangZhiYao | 523,400,448 | false | null | package com.yizhenwind.booster.common.model
import android.os.Parcelable
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize
/**
* 大区与服务器
*
* @author WangZhiYao
* @since 2022/4/26
*/
@Parcelize
@JsonClass(generateAdapter = true)
data class ZoneServer(
val zone: Zone,
val serverList: Li... | 0 | Kotlin | 0 | 1 | 27665819d3e65ba70727a5cc4eafc52b5e0fae2b | 346 | Booster | Apache License 2.0 |
core/ui/src/main/kotlin/com/t8rin/imagetoolboxlite/core/ui/widget/buttons/ToggleGroupButton.kt | T8RIN | 767,600,774 | false | {"Kotlin": 3806441} | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... | 9 | Kotlin | 79 | 8 | f8fe322c2bde32544e207b49a01cfeac92c187ce | 8,303 | ImageToolboxLite | Apache License 2.0 |
src/main/kotlin/com/caesarealabs/searchit/impl/QueryParser.kt | Caesarea-Labs | 697,611,753 | false | {"Kotlin": 58359} | package com.caesarealabs.searchit.impl
import com.caesarealabs.searchit.DataLens
import com.caesarealabs.searchit.Filter
import com.caesarealabs.searchit.TimeRange
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import java.text.ParseExceptio... | 0 | Kotlin | 0 | 0 | 7110b4c3d868c969380fe67872438b8b3f1e2394 | 11,537 | Searchit | MIT License |
app/src/main/java/com/bsuir/bsuirschedule/domain/models/ScheduleTerm.kt | Saydullin | 526,953,048 | false | {"Kotlin": 634026, "HTML": 7301} | package com.bsuir.bsuirschedule.domain.models
enum class ScheduleTerm {
NOTHING,
CURRENT_SCHEDULE,
PREVIOUS_SCHEDULE,
SESSION,
} | 0 | Kotlin | 0 | 4 | edb67f1ec3602227f4a4a757bc89a6ec587160c3 | 145 | BSUIR_Schedule | Creative Commons Zero v1.0 Universal |
extensions-compose-jetpack/src/main/java/com/arkivanov/decompose/extensions/compose/jetpack/stack/animation/StackAnimation.kt | arkivanov | 437,015,897 | false | null | @file:OptIn(ExperimentalDecomposeApi::class)
package com.arkivanov.decompose.extensions.compose.jetpack.stack.animation
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.arkivanov.decompose.Child
import com.arkivanov.decompose.ExperimentalDecomposeApi
import com.arkivanov.decom... | 10 | Kotlin | 22 | 594 | e545295c2621b6f9d5c962be7fb0b0784c160768 | 2,225 | Decompose | Apache License 2.0 |
core/src/main/kotlin/kr/bydelta/koala/extension.kt | koalanlp | 22,649,749 | false | null | @file:JvmName("ExtUtil")
package kr.bydelta.koala
/** '가'(ga) 위치 **/
private const val HANGUL_START = '가'
/** '힣'(hih) 위치 **/
private const val HANGUL_END = '힣'
/** 종성 범위의 폭 **/
private const val JONGSUNG_RANGE = 0x001C
/** 중성 범위의 폭 **/
private const val JUNGSUNG_RANGE = 0x024C
/*********************
***** 알파벳 읽기 ... | 2 | Kotlin | 43 | 185 | 507604be03f3796030fc6e01c3fd70db0bb40107 | 37,276 | koalanlp | MIT License |
shared/src/commonMain/kotlin/me/next/serverdriven/core/library/interfaces/Screen.kt | vinisauter | 697,948,272 | false | {"Kotlin": 71399, "Swift": 580, "Shell": 228} | package me.next.serverdriven.core.library.interfaces
import androidx.compose.runtime.Composable
import generateUUID
interface Screen {
val key: ScreenKey
get() = uniqueScreenKey
@Composable
fun Content()
}
typealias ScreenKey = String
val Screen.uniqueScreenKey: ScreenKey
get() = "Screen#$... | 0 | Kotlin | 1 | 0 | 16cc472c5cea12643558afdf58946f45b1955410 | 337 | compose-multiplatform-sdui | Apache License 2.0 |
app/src/main/java/com/mfahmi/myfundamentalandroid/model/User.kt | MohFahmi27 | 346,395,962 | false | null | package com.mfahmi.myfundamentalandroid.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class User(
val id: Int,
val username: String,
val userType: String,
val avatarUrl: String
) : Parcelable | 0 | Kotlin | 1 | 7 | a50e72af66f686fed2f6c723c09f7147abf0315a | 244 | MyFundamentalAndroidSubmission | MIT License |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/elements/InputController.kt | francescrecio | 389,373,811 | true | {"Kotlin": 3451442, "Java": 67213, "Shell": 10274} | package com.stripe.android.paymentsheet.elements
import androidx.annotation.StringRes
import kotlinx.coroutines.flow.Flow
/** This is a generic controller */
internal sealed interface Controller
/**
* This class provides the logic behind the fields.
*/
internal sealed interface InputController : Controller {
v... | 0 | null | 0 | 0 | d5219de6b33ea178893cb0a9abab26a02b0b983f | 726 | stripe-android | MIT License |
api/src/main/kotlin/com/google/prefab/api/AndroidAbiMetadata.kt | DanAlbert | 219,671,482 | true | {"Kotlin": 108330} | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 1 | a0bc1ba22f8bfde0251a3098ac2d12fdafd5b14e | 1,461 | prefab | Apache License 2.0 |
kotlin/BinaryHeap.kt | pratikkumar399 | 509,844,710 | false | null | import java.util.PriorityQueue
import kotlin.random.Random
class BinaryHeap(val heap: IntArray, var size: Int) {
constructor(n: Int) : this(IntArray(n), 0)
constructor(heap: IntArray) : this(heap, heap.size) {
for (pos in heap.size / 2 - 1 downTo 0)
down(pos)
}
fun removeMin(): In... | 96 | null | 517 | 3 | 7b6a7fafa7f45420c21c1d901810c62023223794 | 1,715 | codelibrary | The Unlicense |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/render/CloseButton.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3446191, "TypeScript": 818538, "Swift": 369625, "Vue": 156647, "SCSS": 39016, "Objective-C": 17350, "HTML": 16184, "Shell": 13534, "JavaScript": 3982, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.browser.desk.render
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import andr... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 1,298 | dweb_browser | MIT License |
JZNightMode/src/main/java/me/jordanzimmitti/jz_night_mode/JZNightMode.kt | JordanZimmitti | 189,104,373 | false | null | package me.jordanzimmitti.jz_night_mode
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.widget.Toast
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import com.luckycatlabs.sunrisesunset.Sunris... | 0 | Kotlin | 0 | 0 | fc0dc3d1df4863efbd6ad6ab60ed78a017019fb2 | 6,357 | JZNightMode | MIT License |
jetbrains-core/src/software/aws/toolkits/jetbrains/services/cloudwatch/logs/LogStreamEntry.kt | JetBrains | 223,485,227 | false | null | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.cloudwatch.logs
import software.amazon.awssdk.services.cloudwatchlogs.model.FilteredLogEvent
import software.amazon.awssdk.services.cloudwatchlogs.model.Ou... | 6 | null | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 585 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/kotlin/com/getstrm/pace/processing_platforms/postgres/PostgresTransformer.kt | getstrm | 706,692,316 | false | {"Kotlin": 503641, "Makefile": 9481, "Shell": 1355, "Python": 794, "Dockerfile": 569} | package com.getstrm.pace.processing_platforms.postgres
import build.buf.gen.getstrm.pace.api.entities.v1alpha.DataPolicy
import com.getstrm.pace.processing_platforms.CAPTURING_GROUP_REGEX
import com.getstrm.pace.processing_platforms.ProcessingPlatformTransformer
import com.getstrm.pace.util.fullName
import org.jooq.Fi... | 24 | Kotlin | 0 | 24 | 06240c4d99cd17b4ad08dfb8b8384e014d531ff5 | 1,313 | pace | Apache License 2.0 |
source/app/src/main/java/com/apion/apionhome/di/ApiModule.kt | ApionTech | 386,238,144 | false | null | package com.apion.apionhome.di
import com.apion.apionhome.data.source.remote.utils.BookMarkAPIService
import com.apion.apionhome.data.source.remote.utils.CommunityAPIService
import com.apion.apionhome.data.source.remote.utils.HouseAPIService
import com.apion.apionhome.data.source.remote.utils.UserAPIService
import org... | 0 | Kotlin | 1 | 0 | 24ddb088ffd985dcd34e3e8deeb5edcc1d717558 | 666 | apion_home | Apache License 2.0 |
data/src/main/java/com/arthurivanets/sample/data/util/TypeAliases.kt | thapld | 191,291,215 | true | {"Kotlin": 465524, "Java": 10474} | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* 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... | 0 | Kotlin | 0 | 1 | b36d2dd04b04dcc52f2fbf8e3f5db8412c168c1f | 1,899 | android-mvvm | Apache License 2.0 |
toolargetool/src/main/java/com/gu/toolargetool/TooLargeTool.kt | ymnder | 142,827,417 | true | {"Kotlin": 14343, "Java": 5455} | package com.gu.toolargetool
import android.app.Application
/**
* A collection of helper methods to assist you in debugging crashes due to
* [android.os.TransactionTooLargeException]
* <p>
* The easiest way to use this class is to call TooLargeTool#startLogging(Application) in your app's
* Application#onCreate() ... | 3 | Kotlin | 0 | 1 | 19e22b430a3acc604d17699826ade9fbac32f664 | 858 | toolargetool | MIT License |
src/main/kotlin/fr/nicopico/n2rss/analytics/data/AnalyticsData.kt | nicopico-dev | 747,919,496 | false | {"Kotlin": 355525, "HTML": 10832, "CSS": 3265, "JavaScript": 2724, "Shell": 2608} | /*
* Copyright (c) 2024 Nicolas PICON
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish,... | 1 | Kotlin | 0 | 2 | 651dd2cc33c7dde103ca18c29909a7ff8832e336 | 4,622 | n2rss | MIT License |
kotlin/conditionals/if-else.kt | SayanBan | 211,892,888 | false | {"C++": 83427, "Python": 39504, "JavaScript": 14154, "C": 13803, "Ruby": 13347, "Java": 8813, "Kotlin": 3730, "C#": 1789, "Dart": 819} | package conditionals
fun main(){
val a = 20
val b = 30
if(a>b){
println("$a bigger than $b")
}else{
println("$b bigger than $a")
}
} | 1 | C++ | 28 | 7 | 2d19903df0a1935edd1cf91e01b79f73afe5a053 | 170 | Hacktoberfest-Codes | MIT License |
src/main/kotlin/com/askrepps/advent2021/day13/Day13.kt | askrepps | 726,566,200 | false | {"Kotlin": 302802} | /*
* MIT License
*
* Copyright (c) 2021 Andrew Krepps
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 0 | Kotlin | 0 | 0 | 89de848ddc43c5106dc6b3be290fef5bbaed2e5a | 4,069 | advent-of-code-kotlin | MIT License |
platform/lang-impl/src/com/intellij/codeInsight/codeVision/settings/CodeVisionUngroppedSettingProvider.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInsight.codeVision.settings
/**
* Uses to create dummy settings for [com.intellij.codeInsight.codeVision.CodeVisionProvider] if no [Co... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 481 | intellij-community | Apache License 2.0 |
droidils/src/main/java/com/aptus/droidils/utils/AppShortCutUtils.kt | shanmugasanthosh7 | 131,676,320 | false | null | @file:Suppress("unused")
package com.aptus.droidils.utils
import android.content.Intent
import android.util.SparseArray
import android.content.pm.ShortcutManager
import android.os.Build
import androidx.annotation.RequiresApi
import android.content.pm.ShortcutInfo
import android.content.Context
import android.graphics... | 0 | null | 5 | 7 | dde83e5fc86006339c13b6ad38b3a2b583ed8c8b | 4,310 | Droidils | Apache License 2.0 |
src/test/kotlin/com/github/vgrishechko/sushi/SushiTest.kt | v-grishechko | 152,442,614 | false | null | package com.github.vgrishechko.sushi
import com.github.vgrishechko.sushi.data.Simple
import com.github.vgrishechko.sushi.data.TestErrorHandlingData
import com.squareup.moshi.Moshi
import com.squareup.moshi.SafeCollectionJsonAdapter
import com.squareup.moshi.SafeMapJsonAdapter
import org.assertj.core.api.Assertions.ass... | 0 | Kotlin | 0 | 0 | a62577ff983f379e5f88d97920d61d9b19009f37 | 5,781 | sushi | Apache License 2.0 |
src/main/kotlin/com/jahnelgroup/jackson/security/filter/JacksonSecureFieldFilterAutoConfiguration.kt | JahnelGroup | 104,111,024 | false | null | package com.jahnelgroup.jackson.security.filter
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider
import com.jahnelgroup.jackson.security.entity.EntityCreatedByProvider
import com.jahnelgroup.jackson.security.exception.AccessDeniedExceptionHandler
im... | 3 | Kotlin | 4 | 19 | d72365d6c02b3a9a82aa95240ac83902847cffae | 2,136 | jackson-field-security | MIT License |
src/main/java/com/yazan98/destiny/server/ServletInitializer.kt | Yazan98 | 230,821,005 | false | null | package com.yazan98.destiny.server
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
/**
* Created By : Yazan Tarifi
* Date : 12/31/2019
* Time : 3:50 PM
*/
open class ServletInitializer : SpringBootServletInitializer... | 1 | null | 1 | 1 | d416bb5980e17e822ef59f8dfa95945ffb40741c | 489 | Destiny-Api | Apache License 2.0 |
src/main/kotlin/ar/edu/unq/bacco/model/Recipe.kt | UnderABloodySky | 776,226,029 | false | {"Kotlin": 88610} | package ar.edu.unq.bacco.model
import com.fasterxml.jackson.annotation.JsonIdentityInfo
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonManagedReference
import com.fasterxml.jackson.annotation.ObjectIdGenerators
import org.springframework.data.neo4j.core.schema.... | 0 | Kotlin | 0 | 1 | 1123c2cc5852a0883cf1bab999adc5fadd5044d9 | 2,309 | bacco-backend | MIT License |
core/database/src/main/java/com/lkw1120/pokedex/core/database/entity/Converters.kt | lkw1120 | 727,588,825 | false | {"Kotlin": 96364} | package com.lkw1120.pokedex.core.database.entity
import androidx.room.TypeConverter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
class Converters {
@TypeConverter
fun statsToJson(stats: List<StatEntity>): String {
va... | 0 | Kotlin | 0 | 1 | 82f3e35091e9aa8d0ae9e0a0319f618a0414cd62 | 1,892 | compose-pokedex | Apache License 2.0 |
brd-android/kyc/src/main/java/com/fabriik/kyc/ui/features/personalinformation/PersonalInformationFragment.kt | fabriik | 489,117,365 | false | null | package com.fabriik.kyc.ui.features.personalinformation
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.doAfterTextChanged
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecyc... | 2 | null | 1 | 1 | 8894f5c38203c64e48242dae9ae9344ed4b2a61f | 7,391 | wallet-android | MIT License |
data/remote/src/main/java/com/xanthenite/isining/data/remote/model/response/LoginResponse.kt | ajcatindig | 534,358,909 | false | {"Kotlin": 484017} | package com.xanthenite.isining.data.remote.model.response
data class LoginResponse(
override val state: State,
override val message: String?
):BaseResponse
| 1 | Kotlin | 2 | 4 | c91e1d2240fe7f189f001813726e1171e0856047 | 165 | iSining | Apache License 2.0 |
coroutinebinding/src/main/java/com/github/satoshun/coroutinebinding/OnCancelableChannel.kt | satoshun | 130,614,016 | false | null | @file:Suppress("NOTHING_TO_INLINE")
package com.github.satoshun.coroutinebinding
import android.os.Handler
import android.os.Looper
import androidx.annotation.RestrictTo
import androidx.annotation.RestrictTo.Scope.LIBRARY
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.ReceiveChannel
pr... | 1 | Kotlin | 0 | 51 | 6f88a6731f8e70af8eeeffcb8de3806c7b4d1a28 | 982 | CoroutineBinding | Apache License 2.0 |
imageloading-glide/src/main/java/com/arthurivanets/sample/imageloading/glide/GlideImageLoader.kt | arthur3486 | 178,744,323 | false | null | /*
* Copyright 2018 <NAME>, <EMAIL>
*
* 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... | 0 | null | 23 | 110 | 495600968cd055bcf98d93d7fe6ab46038e125e7 | 2,231 | android-mvvm | Apache License 2.0 |
app/src/main/java/com/anytypeio/anytype/ui/sets/modals/BaseDialogListFragment.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.ui.sets.modals
import android.app.Dialog
import android.os.Bundle
import android.view.*
import androidx.fragment.app.DialogFragment
import androidx.recyclerview.widget.RecyclerView
import com.anytypeio.anytype.R
abstract class BaseDialogListFragment : DialogFragment() {
abstract fun... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 1,397 | anytype-kotlin | RSA Message-Digest License |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/plugin/FirCompilerRequiredAnnotationsResolveTransformer.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2023 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.fir.resolve.transformers.plugin
import org.jetbrains.kotlin.fir.FirAnnotationCon... | 182 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 13,499 | kotlin | Apache License 2.0 |
dynamiclinks/src/main/java/se/warting/firebasecompose/dynamiclinks/LocalFirebaseDynamicLinks.kt | warting | 412,458,814 | false | null | package se.warting.firebasecompose.dynamiclinks
import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.staticCompositionLocalOf
import com.google.firebase.dynamiclinks.FirebaseDynamicLinks
import com.google.firebase.dynamiclinks.ktx.dynamicLinks
import com.google.firebase.ktx.Fireba... | 5 | Kotlin | 1 | 8 | 9ead7acb22e97af1bbc3afe43a6b5e2f7ad2114a | 510 | firebase-compose | MIT License |
lib/src/main/kotlin/trees/BSTree.kt | spbu-coding-2023 | 771,922,976 | false | {"Kotlin": 66366} | package trees
import treeNodes.BSTreeNode
class BSTree<K : Comparable<K>, V> : BinaryTree<K, V, BSTreeNode<K, V>>() {
override fun insert(
key: K,
value: V,
) {
root = insert(root, key, value)
}
private fun insert(
node: BSTreeNode<K, V>?,
key: K,
value... | 1 | Kotlin | 2 | 3 | 29628d18b40b9f5a1abb5bd18493425b0b395acf | 1,893 | trees-7 | MIT License |
lib/src/main/kotlin/org/zecdev/zip321/parser/CharsetValidations.kt | zecdev | 721,262,710 | false | {"Kotlin": 82025} | package org.zecdev.zip321.parser
class CharsetValidations {
companion object {
object Base58CharacterSet {
val characters: Set<Char> = setOf(
'1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K',
'L', 'M', ... | 3 | Kotlin | 0 | 2 | cc4ea482031502914ce062a559b96551e9d6b12f | 3,146 | zcash-kotlin-payment-uri | MIT License |
analytics/src/test/java/com/segment/analytics/LoggerTest.kt | andrew-polk | 292,639,952 | true | {"Java": 567472, "Kotlin": 105152, "Shell": 1155} | package com.segment.analytics
import android.util.Log
import com.segment.analytics.integrations.Logger
import org.assertj.core.api.Assertions
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import org.robolect... | 0 | null | 0 | 0 | 735590931e56e1e76359f0ceb4160d690e37ef48 | 3,615 | analytics-android | MIT License |
fsmlib/src/main/kotlin/org/suggs/fsm/behavior/builders/TransitionBuilder.kt | suggitpe | 158,869,057 | false | null | package org.suggs.fsm.behavior.builders
import org.suggs.fsm.behavior.*
import org.suggs.fsm.behavior.Event.Companion.COMPLETION_EVENT_NAME
import org.suggs.fsm.behavior.FinalState.Companion.DEFAULT_FINAL_STATE_NAME
import org.suggs.fsm.behavior.builders.ConstraintBuilder.Companion.aConstraintCalled
import org.suggs.f... | 0 | Kotlin | 0 | 0 | 874dd36add564ca968f334c6e9aa050c5e495b64 | 3,061 | fsm | Apache License 2.0 |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/storage/status.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s.storage
import io.fabric8.kubernetes.api.model.storage.VolumeAttachment as storage_VolumeAttachment
import io.fabric8.kubernetes.api.model.storage.VolumeAttachmentStatus as storage_VolumeAttachmentStatus
fun storage_VolumeAttachment.status(block: storage_VolumeAttachmentStatus... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 444 | k8s-dsl | MIT License |
designsystem/src/main/java/com/babylon/wallet/android/designsystem/theme/RadixDimensions.kt | radixdlt | 513,047,280 | false | null | package com.babylon.wallet.android.designsystem.theme
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.calculateEndPadding
import androidx.compose.foundation.layout.calculateStartPadding
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.Loca... | 8 | null | 6 | 9 | 04554f86520d77f3e9f27786064c666ad45a3d7c | 1,385 | babylon-wallet-android | Apache License 2.0 |
sphinx/application/network/concepts/queries/concept-network-query-chat/src/main/java/chat/sphinx/concept_network_query_chat/model/PutPinMessageDto.kt | stakwork | 340,103,148 | false | {"Kotlin": 4002700, "Java": 403469, "JavaScript": 4745, "HTML": 4706, "Shell": 2453} | package chat.sphinx.concept_network_query_chat.model
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class PutPinMessageDto(
val pin: String?
) | 99 | Kotlin | 11 | 18 | 01d4be42df107d5e4fa8d2411f5390aeea60ea74 | 177 | sphinx-kotlin | MIT License |
app/src/main/java/com/example/studyspot/utilities/navigation/NavigationSetup.kt | yagmurdere | 776,868,129 | false | {"Kotlin": 160141} | package com.example.studyspot.utilities.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.example.studyspot.modul... | 0 | Kotlin | 4 | 0 | 62f80043bd5c07aafcebd3a20e5e89aaacdaeade | 2,696 | AndroidProject | MIT License |
library/src/test/java/com/trendyol/showcase/TestExtension.kt | bilgehankalkan | 191,935,274 | false | null | package com.trendyol.showcase
import org.junit.Assert
infix fun Any.`should be`(expectedResult: Any) {
Assert.assertEquals(expectedResult, this)
} | 0 | Kotlin | 10 | 8 | fa998c9760e229d5b9378e7b511ae0a3e7528edb | 152 | showcase | Apache License 2.0 |
src/main/kotlin/coffee/cypher/kettle/scheduler/SchedulerDsl.kt | Cypher121 | 174,577,171 | false | null | package coffee.cypher.kettle.scheduler
import java.util.*
/**
* Marks functions and types belonging to the
* scheduler creation DSL.
*/
@DslMarker
public annotation class SchedulerDsl
/**
* A builder object used with DSL extensions
* to create a [Task].
*
* @property name the name of the created task
*/
@Sch... | 1 | null | 1 | 4 | 287257c38d89d05234dd3b78b46a9c95466f5989 | 5,491 | kettle | MIT License |
buildSrc/src/main/kotlin/Versions.kt | enginebai | 32,935,880 | false | null | object Versions {
const val kotlin = "1.5.31"
const val androidGradle = "7.0.2"
const val material = "1.4.0"
// TODO: Deprecated, to migrate to coroutine + flow
const val rxJava = "2.2.19"
const val rxAndroid = "2.1.1"
// TODO: Deprecated, to migrate to kotlin.serialization
const val g... | 4 | Kotlin | 79 | 657 | a08608e4b23dbf7d1aebfe4dbd3f7811f267abc8 | 1,583 | MovieHunt | MIT License |
src/main/kotlin/com/jerryjeon/logjerry/tab/TabManager.kt | jerry-jeon | 521,791,909 | false | {"Kotlin": 642877} | package com.jerryjeon.logjerry.tab
import com.jerryjeon.logjerry.preferences.Preferences
import com.jerryjeon.logjerry.source.Source
import com.jerryjeon.logjerry.source.SourceManager
import kotlinx.coroutines.flow.MutableStateFlow
import java.io.File
class TabManager(
private val preferences: Preferences,
in... | 3 | Kotlin | 5 | 50 | 22e02dc7f342d805dbbe47fa1be67f696eb162bf | 3,696 | LogJerry | Apache License 2.0 |
walletconnectv2/src/main/kotlin/com/walletconnect/walletconnectv2/network/data/adapter/FlowStreamAdapter.kt | WalletConnect | 435,951,419 | false | null | package com.walletconnect.walletconnectv2.network.data.adapter
import com.tinder.scarlet.Stream
import com.tinder.scarlet.StreamAdapter
import com.tinder.scarlet.utils.getRawType
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.reactive.collect
import java.lang.reflect.... | 28 | Kotlin | 4 | 22 | 7a85b5e726c6793df8b92ee4cb4a6f612f8749ae | 822 | WalletConnectKotlinV2 | Apache License 2.0 |
firefly-net/src/main/kotlin/com/fireflysource/net/http/server/impl/AsyncHttpServerRequest.kt | hypercube1024 | 3,458,429 | false | null | package com.fireflysource.net.http.server.impl
import com.fireflysource.net.http.common.HttpConfig
import com.fireflysource.net.http.common.codec.CookieParser
import com.fireflysource.net.http.common.codec.UrlEncoded
import com.fireflysource.net.http.common.model.*
import com.fireflysource.net.http.server.HttpServerCo... | 2 | null | 114 | 295 | e4774ba7726a08afbe97a7ee8d7343bc9df671de | 6,721 | firefly | Apache License 2.0 |
app/src/main/java/com/bharatdodeja/mycv/detail/view/CVDetailActivity.kt | bharatdodeja | 160,635,814 | false | {"Kotlin": 73995, "Java": 1950} | package com.bharatdodeja.mycv.detail.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.text.bold
import androidx.core.text.buildSpannedString
import androidx.core.text.color
import androidx.core.text.scale
import com.bharatdodeja.mycv.R
import com.bharatdodeja.mycv.deta... | 0 | Kotlin | 0 | 4 | c65750bb1c9cfeb01172d880d60d6ac1c952cb90 | 6,040 | MyCV | MIT License |
src/test/java/com/github/ai/autokpass/domain/usecases/ReadConfigFileUseCaseTest.kt | aivanovski | 473,610,974 | false | null | package com.github.ai.autokpass.domain.usecases
import com.github.ai.autokpass.data.file.DefaultFileSystemProvider
import com.github.ai.autokpass.data.file.FileSystemProvider
import com.github.ai.autokpass.domain.SystemPropertyProvider
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
inter... | 0 | Kotlin | 0 | 0 | f0b371689861072d5d0e713102680ebf62c7a9d7 | 687 | autokpass | Apache License 2.0 |
src/main/kotlin/bvanseg/kotlincommons/time/Stopwatch.kt | AlexCouch | 281,023,717 | false | null | package bvanseg.kotlincommons.time
import bvanseg.kotlincommons.collections.iterables.sumByLong
import java.lang.RuntimeException
import java.util.concurrent.TimeUnit
/**
* A useful utility class used to measure the time between execution of code.
*
* @author Boston Vanseghi
* @since 2.1.6
*/
class Stopwatch {
... | 0 | Kotlin | 0 | 0 | aa619625e10cc1c0c8faaa16d12cf9e35a827d8e | 2,671 | KotlinCommons | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.