path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/in/habituer/crypto/utils/ImageLoader.kt | habituer | 171,280,374 | false | null | package `in`.habituer.crypto.utils
import `in`.habituer.crypto.R
import android.widget.ImageView
import com.squareup.picasso.Picasso
/**
* Created by januprasad on 19,February,2019
*/
object ImageLoader {
fun loadImage(url:String, view: ImageView) {
Picasso.get().load(StringBuilder(Utils.imageUrl)
... | 0 | Kotlin | 0 | 0 | 7b31785d9312a15b2d93a79bb10c11e3409286e9 | 507 | cryptomizin | MIT License |
plugin/src/main/kotlin/swagger/code/generator/gradle/plugin/SwaggerCodeGeneratorGradlePlugin.kt | RevealOscar | 719,722,765 | false | {"Kotlin": 4184} | /*
* Author: Oscar Devora
*/
package swagger.code.generator.gradle.plugin
import io.swagger.codegen.languages.SwaggerGenerator
import io.swagger.codegen.v3.ClientOptInput
import io.swagger.codegen.v3.CodegenConfig
import org.gradle.api.NamedDomainObjectContainer
import org.gradle.api.Plugin
import org.gradle.api.Pro... | 0 | Kotlin | 0 | 0 | 791f4bd696b1e97c51392bcaea4f4c01bd9735da | 1,944 | Swagger-Code-Generator-Gradle-Plugin | Apache License 2.0 |
sdk/hardware/src/main/java/org/btelman/controlsdk/hardware/translators/ArduinoTranslator.kt | ControlSDK | 162,783,618 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 7, "Batchfile": 1, "Markdown": 1, "Proguard": 6, "Kotlin": 88, "XML": 25, "Java": 15} | package org.btelman.controlsdk.hardware.translators
import org.btelman.controlsdk.hardware.interfaces.Translator
import org.btelman.controlsdk.hardware.interfaces.TranslatorComponent
import org.btelman.controlsdk.services.ControlSDKService
import org.btelman.logutil.kotlin.LogUtil
import java.nio.charset.Charset
/**
... | 3 | null | 1 | 1 | f20c1df969cc1e2d4f88abc4e2ee6219d76c4cee | 1,332 | ControlSDK | Apache License 2.0 |
ui/src/androidUnitTest/kotlin/kiwi/orbit/compose/ui/controls/SegmentedSwitchTest.kt | kiwicom | 289,355,053 | false | null | package kiwi.orbit.compose.ui.controls
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.test.assertTextContains
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.performClick
i... | 23 | null | 21 | 97 | 6d4026eef9fa059388c50cd9e9760d593c3ad6ac | 2,496 | orbit-compose | MIT License |
app/src/main/java/com/learning/pestifyapp/ui/screen/dashboard/ensiklopedia/EnsiklopediaScreen.kt | C241-PS242-Pestify | 804,948,341 | false | {"Kotlin": 373653} | package com.learning.pestifyapp.ui.screen.dashboard.ensiklopedia
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androi... | 0 | Kotlin | 0 | 0 | 183a267f75524076743ac8894943e84795d5a74f | 10,398 | PestifyApp | MIT License |
app/src/main/java/id/setyatmoko/movielist/Adapters/BaseAdapter.kt | ocekaye | 142,835,447 | false | {"Java": 92192, "Kotlin": 23397} | package id.setyatmoko.movielist.Adapters
import android.support.v7.widget.RecyclerView
abstract class BaseAdapter<T, VH : RecyclerView.ViewHolder?>() : RecyclerView.Adapter<VH>() {
private val list = ArrayList<T>()
constructor(_list : ArrayList<T>) : this() {
list.addAll(_list)
}
fun add(item... | 1 | null | 1 | 1 | a1e08a8c178b701bab602c7f81df16cc9c9aba0e | 1,012 | MovieList | MIT License |
sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/GalleryActivity.kt | KirkBushman | 278,324,411 | false | null | package com.kirkbushman.sampleapp.activities
import android.content.Context
import android.content.Intent
import com.kirkbushman.imgur.ImgurClient
import com.kirkbushman.imgur.models.Gallery
import com.kirkbushman.sampleapp.activities.base.BaseSearchPrintActivity
class GalleryActivity : BaseSearchPrintActivity<Galler... | 0 | Kotlin | 0 | 1 | 28d5cd8141b1c64c591712ffd6b94caa330e19a2 | 642 | imgur-android | MIT License |
build-logic/plugins/src/main/kotlin/com/soberg/gradle/KotlinCompilerArgs.kt | jsoberg | 575,643,501 | false | {"Kotlin": 100715} | package com.soberg.gradle
val KotlinCompilerArgs = listOf(
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
) | 1 | Kotlin | 0 | 4 | 9991d19c0bc9def60c1d46539bee49d5e6750690 | 121 | Android-Net-Info | MIT License |
testcaller/src/main/kotlin/pers/shawxingkwok/test/server/AuthApiImpl.kt | ShawxingKwok | 702,423,277 | false | {"Kotlin": 122297} | package pers.shawxingkwok.test.server
import io.ktor.server.application.*
import io.ktor.util.pipeline.*
import pers.shawxingkwok.center.api.AccountApi
import pers.shawxingkwok.center.api.AuthApi
import pers.shawxingkwok.center.model.LoginResult
import pers.shawxingkwok.center.model.User
object AuthApiImpl{
objec... | 0 | Kotlin | 0 | 0 | 402c4c6c351bb743736a6fb50724a177be6dc95e | 1,372 | Phone | Apache License 2.0 |
common/src/main/java/cc/xiaobaicz/common/app/PopupDialog.kt | XiaoBaiCZ | 387,231,239 | false | null | package cc.xiaobaicz.common.app
import android.content.res.Resources
import android.view.Gravity
import android.view.View
import android.view.animation.AlphaAnimation
import android.widget.FrameLayout
import androidx.appcompat.app.AppCompatActivity
import cc.xiaobaicz.common.app.Dialog.AnimationFactory
import cc.xiaob... | 0 | Kotlin | 0 | 0 | aebde335fe36d4da4677feacbc66073249b443a7 | 4,775 | Android-Common | Apache License 2.0 |
app/src/main/java/es/upm/bienestaremocional/ui/screens/history/HistoryViewModel.kt | Emotional-Wellbeing | 531,973,820 | false | null | package es.upm.bienestaremocional.ui.screens.history
import android.util.Range
import androidx.core.util.toRange
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.patrykandpatrick.vico.core.entry.ChartEntry
import com.patrykandpatrick.vic... | 0 | Kotlin | 0 | 1 | 1f579af1073a4a8ac99011b0a881a5dcfb424821 | 5,887 | App | Apache License 2.0 |
lib/src/main/java/com/barista_v/image_picker/extensions/FileExtensions.kt | BaristaVentures | 92,336,733 | false | null | package com.barista_v.image_picker.extensions
import java.io.File
fun File.safeDelete() {
if (exists()) {
delete()
}
} | 2 | Kotlin | 0 | 1 | 2c226e7065162052e1e5f077ba980e2bcc3043fa | 128 | android-image-picker | Apache License 2.0 |
app/src/main/java/com/explore/playground/arrow/ArrowActivity.kt | arifinreinaldo | 230,264,774 | false | null | package com.explore.playground.arrow
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import arrow.core.Either
import arrow.core.flatMap
import com.explore.playground.R
class ArrowActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(s... | 0 | Kotlin | 0 | 0 | b4f3c09a2b03aeadcc03f8b781cbfafb58b1a943 | 645 | playground | MIT License |
app/src/main/java/com/nvkhang96/tymexgithubusers/base/utils/LogUtil.kt | nvkhang96 | 877,077,444 | false | {"Kotlin": 69643} | package com.nvkhang96.tymexgithubusers.base.utils
import co.touchlab.kermit.Logger
import com.nvkhang96.tymexgithubusers.BuildConfig
@Suppress("KotlinConstantConditions")
object LogUtil {
private const val TAG = "TymeXGitHubUsers"
private const val ENABLE_VERBOSE = true
private const val ENABLE_DEBUG = tr... | 0 | Kotlin | 0 | 0 | 9d04290a9ac7aaae5dcf21f11f15d28111bd4d44 | 1,275 | TymeXGitHubUsers | Apache License 2.0 |
Android/examples/demo/src/main/java/com/didi/aoe/examples/demo/features/vision/CameraFragment.kt | didi | 199,149,606 | false | {"C++": 387625, "Objective-C": 203073, "C": 197767, "Java": 123392, "Kotlin": 104237, "Objective-C++": 19387, "Ruby": 9735, "Python": 7961, "Dart": 5232, "Shell": 2242, "CMake": 1600} | /*
* Copyright 2019 The AoE Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 11 | C++ | 128 | 869 | 2b4ddd38462eca4ca3a6e939067187504084d1fa | 2,459 | AoE | Apache License 2.0 |
gi/src/commonMain/kotlin/data/activity/summer_time/SummerTimeSprintBoatSettleNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 679531} | package data.activity.summer_time
import org.anime_game_servers.core.base.annotations.AddedIn
import data.general.Vector
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.CommandType
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn... | 1 | Kotlin | 3 | 6 | b342ff34dfb0f168a902498b53682c315c40d44e | 607 | anime-game-multi-proto | MIT License |
gi/src/commonMain/kotlin/data/activity/summer_time/SummerTimeSprintBoatSettleNotify.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 679531} | package data.activity.summer_time
import org.anime_game_servers.core.base.annotations.AddedIn
import data.general.Vector
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.CommandType
import org.anime_game_servers.core.base.annotations.proto.ProtoCommand
@AddedIn... | 1 | Kotlin | 3 | 6 | b342ff34dfb0f168a902498b53682c315c40d44e | 607 | anime-game-multi-proto | MIT License |
src/main/java/ru/hollowhorizon/hc/client/models/fbx/raw/HollowByteStream.kt | HollowHorizon | 450,852,365 | false | {"Kotlin": 443192, "Java": 140075, "GLSL": 2355, "HTML": 357} | package ru.hollowhorizon.hc.client.models.fbx.raw
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.io.InputStream
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.util.zip.DataFormatException
import java.util.zip.Inflater
class HollowByteS... | 0 | Kotlin | 2 | 9 | 2f523cd594154cc5472a635c75bf077a18b8bf49 | 4,610 | HollowCore | MIT License |
src/main/kotlin/lsd/format/xml/XmlPrinter.kt | lsd-consulting | 384,566,399 | false | {"Kotlin": 13111, "Shell": 1724, "Java": 119} | package lsd.format.xml
import lsd.format.config.log
import org.dom4j.DocumentException
import org.dom4j.DocumentHelper
import org.dom4j.io.OutputFormat
import org.dom4j.io.XMLWriter
import java.io.IOException
import java.io.StringWriter
private val format = OutputFormat.createPrettyPrint()
fun indentXml(document: St... | 0 | Kotlin | 0 | 0 | 50541c4551d7632ad6d146c7b67eeb25cf0825a5 | 706 | lsd-formatting-library | MIT License |
rpgJavaInterpreter-core/src/test/kotlin/com/smeup/rpgparser/overlay/RpgParserOverlayTest12.kt | eprparadocs | 263,168,951 | true | {"Kotlin": 805492, "ANTLR": 158813, "Ruby": 1899, "PowerShell": 861, "Dockerfile": 551, "Batchfile": 395} | package com.smeup.rpgparser.overlay
import com.smeup.rpgparser.assertASTCanBeProduced
import com.smeup.rpgparser.assertCanBeParsed
import com.smeup.rpgparser.executeAnnotations
import com.smeup.rpgparser.interpreter.*
import com.smeup.rpgparser.interpreter.ArrayType
import com.smeup.rpgparser.interpreter.CharacterType... | 0 | null | 0 | 0 | a52bb6034582a03325b179c79b2c9a8ecd783a79 | 11,098 | jariko | Apache License 2.0 |
src/main/kotlin/me/iamnotagenius/MerchantsDelight.kt | Iamnotagenius | 749,223,503 | false | {"Kotlin": 17394, "Java": 5615} | package me.iamnotagenius
import com.chocohead.mm.api.ClassTinkerers
import fzzyhmstrs.structurized_reborn.impl.FabricStructurePoolRegistry
import me.iamnotagenius.blocks.MerchantWalletBlock
import me.iamnotagenius.blocks.entities.MerchantWalletBlockEntity
import me.iamnotagenius.items.MerchantWalletItem
import me.iamn... | 0 | Kotlin | 0 | 0 | 89ccc36d3581dd138a3bb522edb414a4d7a4540c | 3,740 | MerchantsDelight | MIT License |
CompanyDemoApp/app/src/main/java/com/viseo/companyapp/model/Name.kt | shriduttkothari | 229,314,100 | false | null | package com.viseo.companyapp.model
import android.os.Parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
*
* @author Shridutt.Kothari
*/
class Name() : Parcelable {
var first: String? = null
var last: String? = null
constructor(parcel: Parcel) : this() {
first = par... | 0 | Kotlin | 0 | 1 | 703d588980477ca5d09c20abf3c91a22f7df4999 | 931 | CompanyApp | Apache License 2.0 |
src/main/kotlin/online/bingiz/bilibili/video/internal/config/SettingConfig.kt | BingZi-233 | 706,595,133 | false | {"Kotlin": 54092} | package online.bingiz.bilibili.video.internal.config
import online.bingiz.bilibili.video.internal.cache.baffleCache
import taboolib.common.LifeCycle
import taboolib.common.platform.Awake
import taboolib.common5.Baffle
import taboolib.module.configuration.Config
import taboolib.module.configuration.Configuration
import... | 0 | Kotlin | 2 | 4 | c25f47403b4795544bb0ef51f1b2c54be7e60c26 | 1,016 | BilibiliVideo | Creative Commons Zero v1.0 Universal |
app/src/main/java/pro/devapp/walkietalkiek/VoiceRecorder.kt | devapro | 289,724,584 | false | null | package pro.devapp.walkietalkiek
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaRecorder
import timber.log.Timber
import java.util.concurrent.Executors
class VoiceRecorder(private val recordListener: (bytes: ByteArray) -> Unit) {
private val channelConfig = AudioFormat... | 0 | Kotlin | 6 | 18 | 402f6cdce2c34ba7e989ebc49b678638ed3fb4c7 | 2,754 | LANwalkieTalkie | MIT License |
app/src/main/java/com/example/gestaolistacompras/ListActivity.kt | GabrielCarvalheiroRuela | 863,728,275 | false | {"Kotlin": 30295} | // <NAME> - 837871
package com.example.gestaolistacompras
import android.content.Intent
import android.os.Bundle
import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.appcompat.widget.SearchView
import com.example.gestaolista... | 0 | Kotlin | 0 | 0 | fdaa91c6df6a1770646506bfb344f213738d92d7 | 4,255 | gestao-lista-compras | MIT License |
middleware/src/main/java/com/anytypeio/anytype/middleware/interactor/MiddlewareSubscriptionEventChannel.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.middleware.interactor
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.SubscriptionEvent
import com.anytypeio.anytype.data.auth.event.SubscriptionEventRemoteChannel
import com.anytypeio.anytype.middleware.EventProxy
import com.anytypeio.anytype.middlewa... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 5,786 | anytype-kotlin | RSA Message-Digest License |
kotlinx-coroutines-core/common/src/internal/Concurrent.common.kt | Kotlin | 61,722,736 | false | {"Kotlin": 3787246, "Java": 34700, "Python": 3107, "Shell": 2685} | package kotlinx.coroutines.internal
internal expect class ReentrantLock() {
fun tryLock(): Boolean
fun unlock()
}
internal expect inline fun <T> ReentrantLock.withLock(action: () -> T): T
internal expect fun <E> identitySet(expectedSize: Int): MutableSet<E>
/**
* Annotation indicating that the marked prope... | 286 | Kotlin | 1804 | 12,661 | 8c516f5ab1fcc39629d2838489598135eedd7b80 | 732 | kotlinx.coroutines | Apache License 2.0 |
onixlabs-corda-bnms-workflow/src/main/kotlin/io/onixlabs/corda/bnms/workflow/relationship/IssueRelationshipAttestationFlow.kt | onix-labs | 281,494,633 | false | null | /*
* Copyright 2020-2021 ONIXLabs
*
* 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 | Kotlin | 0 | 0 | 1f9e1fd0db0a83a782aefca78afa9940f26f0a64 | 3,357 | onixlabs-corda-bnms | Apache License 2.0 |
presentation/src/main/java/com/jyproject/presentation/ui/feature/placeSearch/PlaceSearchContract.kt | JunYeong0314 | 778,833,940 | false | {"Kotlin": 158676} | package com.jyproject.presentation.ui.feature.placeSearch
import com.jyproject.domain.models.Place
import com.jyproject.presentation.ui.base.ViewEvent
import com.jyproject.presentation.ui.base.ViewSideEffect
import com.jyproject.presentation.ui.base.ViewState
class PlaceSearchContract {
sealed class Event: ViewEv... | 0 | Kotlin | 0 | 0 | 2341a329320565d60cfae95a92fb5b5d49a7f42f | 914 | PlacePick | MIT License |
src/commonMain/kotlin/dev/gluton/flrpc/Logger.kt | Gluton-Official | 664,062,345 | false | null | package dev.gluton.flrpc
import dev.gluton.flrpc.util.EXE_PATH
import korlibs.logger.AnsiEscape
import korlibs.logger.AnsiEscape.Companion.blue
import korlibs.logger.AnsiEscape.Companion.color
import korlibs.logger.AnsiEscape.Companion.red
import korlibs.logger.AnsiEscape.Companion.white
import korlibs.logger.AnsiEsca... | 0 | Kotlin | 0 | 1 | a7b8bc881230874bcc4637218f91c55c8a45c375 | 5,056 | FLRPC | MIT License |
app/app_progressive/src/main/kotlin/com/knowledgespike/progressive/database/ProcessTeams.kt | kevinrjones | 698,194,275 | false | {"Kotlin": 276404} | package com.knowledgespike.progressive.database
import com.knowledgespike.progressive.json.getProgressiveJsonData
import com.knowledgespike.shared.TeamPairHomePagesData
import com.knowledgespike.shared.data.*
import com.knowledgespike.shared.database.DatabaseConnection
import com.knowledgespike.shared.database.checkIf... | 0 | Kotlin | 0 | 0 | 48bc82163e1cfc75998c0d8ba4f8054bb6e7818a | 5,322 | team-v-team | MIT License |
frontend-common/src/commonMain/kotlin/dev/tonycode/kmp/common/utils/ViewProxy.kt | tonycode | 808,709,237 | false | {"Kotlin": 79954, "HTML": 523} | package dev.tonycode.kmp.common.utils
import com.arkivanov.mvikotlin.core.view.BaseMviView
open class ViewProxy<in Model : Any, Event : Any>(
private val render: (Model) -> Unit,
) : BaseMviView<Model, Event>() {
override fun render(model: Model) {
super.render(model)
render.invoke(model)
... | 0 | Kotlin | 0 | 0 | f2c10d52e423e7458c30c463cf49ab45f7bd62e6 | 327 | kvStore-kmp | MIT License |
feature_profile/src/main/kotlin/com/igorwojda/showcase/feature/profile/presentation/profile/ProfileFragment.kt | mohdaquib | 265,792,674 | true | {"Kotlin": 88879} | package com.igorwojda.showcase.feature.profile.presentation.profile
import androidx.fragment.app.Fragment
import by.kirich1409.viewbindingdelegate.viewBinding
import com.igorwojda.showcase.feature.profile.R
import com.igorwojda.showcase.feature.profile.databinding.FragmentProfileBinding
class ProfileFragment : Fragme... | 0 | Kotlin | 0 | 0 | 61c174c03fec629ba6687bfbd7de1bfbbb7637e9 | 541 | android-showcase | MIT License |
app/src/main/java/br/com/connectattoo/local/database/entity/TagEntity.kt | connectattoo | 601,818,127 | false | {"Kotlin": 135467, "Shell": 88, "JavaScript": 67} | package br.com.connectattoo.local.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import br.com.connectattoo.data.Tag
@Entity(tableName = "tags")
data class TagEntity(
@PrimaryKey(autoGenerate = true) val idRoom: Long = 0,
val id: String? = "",
val name: String? = ""
) {
fu... | 1 | Kotlin | 3 | 0 | ddf2a4370ad51c26fd1920a3afb648fc83460ecd | 489 | connectattoo.android | MIT License |
library/src/test/kotlin/kotlinx/serialization/csv/config/CsvRecordSeparatorTest.kt | peterfigure | 266,210,173 | true | {"Kotlin": 141716} | package kotlinx.serialization.csv.config
import kotlinx.serialization.csv.Csv
import kotlinx.serialization.csv.CsvConfiguration
import kotlinx.serialization.csv.records.IntRecord
import kotlinx.serialization.list
import kotlinx.serialization.test.assertStringFormAndRestored
import kotlin.test.Test
/**
* Test [Csv] w... | 0 | null | 0 | 0 | e4a9b01b3c6e3bd636d2ee19c7eb60d5199cacbf | 1,658 | kotlinx-serialization-csv | Apache License 2.0 |
src/main/kotlin/lgp/core/evolution/training/Trainer.kt | HongyuJerryWang | 155,792,979 | true | {"Kotlin": 257639, "Java": 11167, "Shell": 968} | package lgp.core.evolution.training
import lgp.core.environment.Environment
import lgp.core.environment.dataset.Dataset
import lgp.core.evolution.model.EvolutionModel
import lgp.core.evolution.model.EvolutionResult
/**
* Represents the result of training a model using a runner.
*
* @property evaluations A collecti... | 0 | Kotlin | 0 | 0 | dbf64c5294afab4ea4fcaad79b15640337368923 | 3,239 | LGP | MIT License |
app/src/main/java/com/example/screp/dao/StepCountDao.kt | GiangNguyen1207 | 541,750,538 | false | null | package com.example.screp.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.example.screp.data.StepCount
@Dao
interface StepCountDao {
@Query("SELECT * FROM stepcount WHERE startTime >= :start A... | 0 | Kotlin | 1 | 1 | a871ef75d21b675753b83146a10fe68b0ff39dc5 | 629 | screp | MIT License |
app/src/main/java/com/vipulasri/jetinstagram/ui/add/Add.kt | mikecasey93 | 811,348,675 | false | {"Kotlin": 51862} | package com.vipulasri.jetinstagram.ui.add
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout... | 0 | Kotlin | 0 | 0 | 0b8cd7db21c2a3a15e302e659089b4cc6a7ebe81 | 3,740 | JetInstagramProject | Apache License 2.0 |
android/app/src/main/kotlin/com/example/thein_test/MainActivity.kt | bihire | 447,526,437 | false | {"Dart": 8003, "HTML": 3932, "Swift": 404, "Kotlin": 127, "Objective-C": 38} | package com.example.thein_test
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 317161ea054a443e523e0b35f137695dd7715c49 | 127 | FlutterTechincalTask | ISC License |
app/src/main/java/de/seemoo/at_tracking_detection/ui/devices/filter/models/IgnoredFilter.kt | seemoo-lab | 385,199,222 | false | null | package de.seemoo.at_tracking_detection.ui.devices.filter.models
import de.seemoo.at_tracking_detection.database.tables.Device
class IgnoredFilter : Filter() {
override fun apply(devices: List<Device>): List<Device> {
return devices.filter {
it.ignore
}
}
companion object {
... | 19 | Kotlin | 38 | 993 | d00572f6917eff89b14055d8702d1ebfc5d823f6 | 371 | AirGuard | Apache License 2.0 |
app/src/main/java/com/rotemati/foregroundtesterapp/ui/main/MainViewModel.kt | ironSource | 302,076,724 | false | null | package com.rotemati.foregroundtesterapp.ui.main
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.rotemati.foregroundsdk.external.retryepolicy.RetryData
import com.rotemati.foregroundsdk.external.retryepolicy.RetryPolicy
import com.rotemati.for... | 1 | Kotlin | 0 | 19 | 01a38f1f30a705a03b24731bac1909bcb16d1d75 | 1,748 | alleviate | The Unlicense |
app/src/main/java/shvyn22/flexinglyrics/ui/details/adapter/PagerAdapter.kt | shvyn22 | 348,453,435 | false | {"Kotlin": 129941} | package shvyn22.flexinglyrics.ui.details.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import shvyn22.flexinglyrics.ui.details.tabs.LyricsFragment
import shvyn22.flexinglyrics.ui.det... | 0 | Kotlin | 0 | 2 | fc264ac9d38f3d39ab7a74321ba33ad598e31c9a | 803 | FlexingLyrics | MIT License |
app/src/main/java/com/zone/chatterz/adapter/ExploreAdapter.kt | Bluesachinkr | 212,034,673 | false | {"Kotlin": 279133} | package com.zone.chatterz.adapter
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.gl... | 0 | Kotlin | 3 | 4 | 2da249eee6bdc89b6172a43beae3a50c81733476 | 6,247 | chatterz-android | MIT License |
common/src/main/kotlin/es/guillermoorellana/keynotedex/responses/ConferenceResponse.kt | tysheng | 149,243,936 | true | {"Kotlin": 68428, "FreeMarker": 1176, "JavaScript": 477, "CSS": 109} | package es.guillermoorellana.keynotedex.responses
import es.guillermoorellana.keynotedex.dto.Conference
import kotlinx.serialization.Serializable
@Serializable
data class ConferenceResponse(val conference: Conference)
| 0 | Kotlin | 0 | 0 | 86afc0f4006be8ff4f5c59dac5d3df075731dd94 | 220 | keynotedex | Apache License 2.0 |
app/src/main/java/com/example/currencyconverter/ui/RatesAdapter.kt | jukka413 | 186,253,140 | false | null | package com.example.currencyconverter.ui
import android.support.v7.util.DiffUtil
import android.support.v7.widget.RecyclerView
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.currencyconverter.view... | 0 | Kotlin | 0 | 0 | de7cf658b2292c66760a42867c5faae3998521ed | 4,035 | Currency-converter | Apache License 2.0 |
pager/src/androidTest/java/com/google/accompanist/pager/VerticalPagerTest.kt | halilozercan | 378,894,426 | 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 applic... | 0 | null | 0 | 2 | 4e24003060bbd65f90d2a86641c800d76a35bde2 | 7,084 | accompanist | Apache License 2.0 |
app/src/main/java/com/tasomaniac/openwith/settings/GeneralSettings.kt | tasomaniac | 42,516,482 | false | null | package com.tasomaniac.openwith.settings
import android.app.Activity
import android.content.Intent
import android.content.SharedPreferences
import com.tasomaniac.openwith.R
import com.tasomaniac.openwith.browser.BrowserPreferences
import com.tasomaniac.openwith.browser.PreferredBrowserActivity
import com.tasomaniac.op... | 42 | null | 32 | 352 | ae55b1854c5ce4e65b7f1ba85457cd3bff78dcbd | 2,408 | OpenLinkWith | Apache License 2.0 |
app/src/main/java/com/isaiahvonrundstedt/fokus/features/settings/BackupFragment.kt | icabetong | 261,652,041 | false | {"Kotlin": 508888} | package com.isaiahvonrundstedt.fokus.features.settings
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andr... | 25 | Kotlin | 23 | 230 | fb57365edc3fa28614697094ab4cc4dccd47be65 | 8,214 | fokus-android | MIT License |
src/main/kotlin/me/jiho/fruitreactive/habits/HabitRestController.kt | jiho-s | 369,449,874 | false | null | package me.jiho.fruitreactive.habits
import me.jiho.fruitreactive.commons.ApiResult
import org.springframework.http.HttpStatus
import org.springframework.web.bind.annotation.*
import reactor.core.publisher.Mono
import reactor.kotlin.core.publisher.switchIfEmpty
import java.time.LocalDate
@RestController
@RequestMappi... | 0 | Kotlin | 0 | 0 | 5d85c2f58a0bb1abfcd4a01c603a77f041191ce2 | 1,968 | fruit-reactive | MIT License |
compose/src/main/java/org/zhiwei/compose/screen/graphics/PathUtils.kt | iOrchid | 156,658,695 | false | null | package com.smarttoolfactory.tutorial1_1basics.chapter6_graphics
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Path
import kotlin.math.cos
import kotlin.math.sin
/**
* Creates a polygon with number of ... | 4 | null | 312 | 627 | 2c24cb98da0b1731279fd9c1473c1aa229198fa7 | 6,763 | android-jetpack-demo | Apache License 2.0 |
jsfring-webservice/src/test/kotlin/fr/pinguet62/jsfring/webservice/config/RestTemplateConfig.kt | pinguet62 | 20,840,724 | false | {"Java": 489593, "HTML": 76385, "Rich Text Format": 32564, "TypeScript": 31995, "Kotlin": 23485, "JavaScript": 21937, "CSS": 2295, "Dockerfile": 1199, "Python": 593, "TSQL": 35} | package fr.pinguet62.jsfring.webservice.config
import fr.pinguet62.jsfring.webservice.config.Oauth2Helper.Companion.HEADER_AUTHORIZATION
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.web.client.RestTemplateBuilder
import org.springframework.context.annotation.Bean
import... | 1 | null | 1 | 1 | ee8ff590113f2f0a992259f4044a0497f84b207e | 1,090 | JSFring | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/modular/Positions.kt | Honey-Nut-Gearios-9530 | 691,140,112 | false | {"Java Properties": 1, "Shell": 1, "Markdown": 6, "Batchfile": 1, "INI": 1, "Java": 53, "Kotlin": 11} | package org.firstinspires.ftc.teamcode.modular
object Positions {
const val clawOpen = 0.9
const val clawClosed = 0.5
const val leftGrabberOpen = 1.0
const val leftGrabberClose = 0.705
const val leftGrabberFullyClose = 0.63
const val rightGrabberOpen = 0.45
const val rightGrabberFullyClose ... | 1 | null | 1 | 1 | aa77c11055cf96efbf077e391a6b3085756b3301 | 627 | FtcRobotController-Centerstage | BSD 3-Clause Clear License |
teacher/app/src/androidTest/java/com/instructure/teacher/ui/pages/ChooseRecipientsPage.kt | XinicsInc | 123,872,784 | true | {"Markdown": 5, "INI": 18, "Shell": 27, "Proguard": 16, "Gradle": 54, "Ignore List": 38, "Java": 1391, "XML": 1946, "Gradle Kotlin DSL": 2, "Kotlin": 965, "Ruby": 19, "Protocol Buffer": 14, "JSON": 7, "GraphQL": 1, "Text": 12, "Batchfile": 2, "Java Properties": 11, "HTML": 7, "Python": 1, "YAML": 3, "CSS": 1, "Ant Buil... | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 0 | Java | 0 | 1 | 70b0cd08042e05293fc78478f90c3608a31831e1 | 1,942 | instructure-android | Apache License 2.0 |
hello-algo/hello-algo-main/codes/kotlin/chapter_searching/binary_search_edge.kt | CoderDream | 402,249,596 | false | {"Maven POM": 206, "XML": 643, "Text": 661, "Ignore List": 121, "Markdown": 677, "YAML": 235, "JSON": 112, "JavaScript": 832, "EditorConfig": 9, "Browserslist": 15, "HTML": 431, "robots.txt": 1, "SVG": 21, "Vue": 121, "Java": 4312, "Java Properties": 58, "SQL": 25, "Batchfile": 33, "Shell": 71, "Dockerfile": 23, "INI":... | /**
* File: binary_search_edge.kt
* Created Time: 2024-01-25
* Author: curtishd (1023632660@qq.com)
*/
package chapter_searching
/* 二分查找最左一个 target */
fun binarySearchLeftEdge(nums: IntArray, target: Int): Int {
// 等价于查找 target 的插入点
val i = binarySearchInsertion(nums, target)
// 未找到 target ,返回 -1
... | 1 | Java | 5 | 5 | 1af9462ce13a6fd1125a160e418b549c4510fa30 | 1,209 | java-architect-util | Apache License 2.0 |
feature/post/src/main/java/com/msg/post/navigation/PostNavigation.kt | School-of-Company | 700,744,250 | false | null | package com.msg.post.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.msg.post.PostDetailScreenRoute
import com.msg.post.PostScreenRoute
const val postRoute = "post_route"
const... | 6 | null | 1 | 22 | 358bf40188fa2fc2baf23aa6b308b039cb3fbc8c | 1,149 | Bitgoeul-Android | MIT License |
src/main/kotlin/br/com/zupacademy/fabio/exceptions/EntityNotFoundOnClientItauException.kt | fabiossz2 | 421,041,711 | true | {"Kotlin": 39106} | package br.com.zupacademy.fabio.exceptions
class EntityNotFoundOnClientItauException(message: String = "Entidade não encontrado no Itau") :
BusinessException(message) {
} | 0 | Kotlin | 0 | 0 | 6cb2a88b224dacf26e2f4340f6c0e09dedad442d | 175 | orange-talents-08-template-pix-keymanager-grpc | Apache License 2.0 |
injektor/src/main/kotlin/com/github/lexer/injektor/Inject.kt | lexer | 143,588,526 | false | null | package com.github.lexer.injektor
import kotlin.reflect.KProperty
interface Inject<out T> {
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
fun isInitialized(): Boolean
}
fun <T> inject(initializer: () -> T): Inject<T> = SynchronizedInjectImpl(initializer)
internal object UNINITIALIZED_VALU... | 0 | Kotlin | 1 | 20 | 171b34abf9856342fa9498b3474cfef79b5df707 | 1,399 | injektor | Apache License 2.0 |
app/src/main/java/com/reefii/atlasindonesia/Tentang_app_Unmodified.kt | Reefoldfiveteen | 392,013,362 | false | null | //<NAME>
package com.reefii.atlasindonesia
//import plugin yg diperlukan
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
class Tentang_app_Unmodified: kodepembantu() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 0 | Kotlin | 0 | 0 | dd0a8617df71c15f84940fdf867437eb0178645e | 1,129 | Atlas-Indonesia_Android-App | MIT License |
data/src/main/java/com/sonphil/canadarecallsandsafetyalerts/data/api/model/search/ApiSearchResult.kt | Sonphil | 237,512,399 | false | null | package com.sonphil.canadarecallsandsafetyalerts.data.api.model.search
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class ApiSearchResult(
@Json(name = "category")
val category: List<Int>,
@Json(name = "date_published")
val datePublished: I... | 0 | Kotlin | 0 | 1 | 7c7e02702861ce87c5a058a05acfcc61cb8f78f6 | 591 | CanadaRecallsAndSafetyAlerts | Apache License 2.0 |
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescAnnotationCall.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.analysis.api.descriptors.annotations
import org.jetbrains.kotlin.analysis.api.an... | 125 | Kotlin | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 2,339 | kotlin | Apache License 2.0 |
.support/module-generator/src/main/kotlin/app/immich/kmp/module/generator/ui/GeneratorTextField.kt | eygraber | 738,812,490 | false | {"Kotlin": 251155, "Shell": 1809, "JavaScript": 1484, "Swift": 615, "HTML": 567} | package app.immich.kmp.module.generator.ui
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getVal... | 4 | Kotlin | 0 | 2 | 4966dfe4cf01d9f34df1738a59634108c68f9ada | 2,864 | immich-kmp | MIT License |
core/src/main/kotlin/io/github/dejankos/jdoctest/core/DocTestParser.kt | dejankos | 448,609,705 | false | {"Kotlin": 15260, "Java": 3159} | package io.github.dejankos.jdoctest.core
import spoon.Launcher
import spoon.javadoc.internal.JavadocInlineTag
import spoon.javadoc.internal.JavadocSnippet
import spoon.reflect.CtModel
import spoon.reflect.code.CtComment
import spoon.reflect.code.CtJavaDoc
import spoon.reflect.declaration.CtPackage
import spoon.reflect... | 0 | Kotlin | 0 | 4 | 0a006e0f1f8e6bfa15a35d69d815a1c187b19dd9 | 3,964 | jdoctest | MIT License |
core/ui/src/main/java/com/loryblu/core/ui/components/LBRadioButton.kt | loryblu | 665,795,911 | false | {"Kotlin": 122847} | package com.loryblu.core.ui.components
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.RadioButton
import androidx.compose.material3.RadioButtonDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import andr... | 0 | Kotlin | 2 | 3 | 38f2b25c629a4d0edf5f5e387f4788942ebf6a66 | 910 | loryblu-android | MIT License |
app/src/main/java/com/hadi/minimalnotes/ui/screens/search_note/SearchNoteViewModel.kt | unaisulhadi | 435,369,043 | false | {"Kotlin": 49830} | package com.hadi.minimalnotes.ui.screens.search_note
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.hadi.minimalnotes.data.re... | 0 | Kotlin | 2 | 22 | 3c60aac740c9643fefd624b0e214e47b882752c4 | 1,167 | MinimalNotes | MIT License |
zircon.core/src/main/kotlin/org/hexworks/zircon/internal/graphics/ConcurrentTileGraphic.kt | ahmedolaibrahim | 147,102,847 | true | {"Kotlin": 826245, "Java": 98220} | package org.hexworks.zircon.internal.graphics
import org.hexworks.zircon.api.data.Size
import org.hexworks.zircon.api.data.Tile
import org.hexworks.zircon.api.graphics.BaseTileGraphic
import org.hexworks.zircon.api.graphics.StyleSet
import org.hexworks.zircon.api.resource.TilesetResource
import org.hexworks.zircon.pla... | 0 | Kotlin | 0 | 0 | 1331f79a03d3c84e7888ab2aa9dd4f7c9338013d | 643 | zircon | MIT License |
src/main/kotlin/org/patternfly/showcase/Settings.kt | abstratt | 412,124,609 | true | {"Kotlin": 305003, "CSS": 2106, "Shell": 1269, "HTML": 391, "JavaScript": 189} | package org.patternfly.showcase
import kotlin.time.Duration
internal val EVENT_DELAY = Duration.milliseconds(333)
| 0 | Kotlin | 0 | 0 | ee5ca57293542d5c473899e7e185a950be61abf4 | 116 | patternfly-fritz2-showcase | Apache License 2.0 |
app/src/main/java/com/example/myapplication/data/model/searchmodel/SearchModel.kt | Osman0812 | 698,538,398 | false | {"Kotlin": 185794} | package com.example.myapplication.data.model.searchmodel
import com.google.gson.annotations.SerializedName
data class SearchModel(
@SerializedName("page")
val page: Int,
@SerializedName("results")
val results: List<Result>,
@SerializedName("total_pages")
val totalPages: Int,
@SerializedNam... | 0 | Kotlin | 0 | 0 | c83e22c25e6cf88b00eeb10eb523683a4e518b80 | 366 | MoveeApp | MIT License |
app/src/main/java/de/metzgore/beansplan/api/RbtvScheduleApi.kt | metzgore | 71,047,344 | false | null | package de.metzgore.beansplan.api
import android.arch.lifecycle.LiveData
import de.metzgore.beansplan.data.WeeklyScheduleResponse
import retrofit2.http.GET
interface RbtvScheduleApi {
@GET("/v1/schedule/legacy/weekdays")
fun scheduleOfCurrentWeek(): LiveData<ApiResponse<WeeklyScheduleResponse>>
}
| 0 | Kotlin | 2 | 3 | 46fcce056ee9039d76a5d3e1fa8ca602bcca9e80 | 308 | BeansPlan | Apache License 2.0 |
DemoApps/AddressAutofill/app/src/main/java/com/mapbox/demo/autofill/SampleAppUtils.kt | mapbox | 438,355,708 | false | {"Kotlin": 1984080, "Java": 41736, "Python": 18980, "Shell": 16647} | package com.mapbox.demo.autofill
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.core.content.Conte... | 15 | Kotlin | 9 | 24 | f3606e9d1314d750d776039f968b7f9e4c56fed3 | 1,829 | mapbox-search-android | Apache License 2.0 |
app/src/main/kotlin/com/thundermaps/apilib/android/api/responses/models/Layer.kt | SaferMe | 240,105,080 | false | null | package com.thundermaps.apilib.android.api.responses.models
import com.google.gson.annotations.SerializedName
import com.thundermaps.apilib.android.api.ExcludeFromJacocoGeneratedReport
@ExcludeFromJacocoGeneratedReport
data class Layer(
val id: String,
val type: String,
val source: LayerSource,
@Seria... | 3 | Kotlin | 0 | 0 | 3f208711f12b1b5b8a1a31ddac9274f802d871ea | 799 | saferme-api-client-android | MIT License |
ExamplesKotlin/FragmentDynamicLayoutWithActionBar/app/src/main/java/course/examples/fragments/actionbar/QuotesFragment.kt | aporter | 15,648,899 | false | null | package course.examples.fragments.actionbar
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import an... | 65 | null | 5469 | 4,289 | 157373885fbfa18b83fa97cd46f6a003905970ea | 4,076 | coursera-android | MIT License |
app/src/main/java/com/hujun/modulize/AppApplication.kt | Hujunjob | 249,903,978 | false | {"Java": 24334, "Kotlin": 15213, "CMake": 1702, "C++": 265} | package com.hujun.modulize
import com.hujun.common.RecordPathManager
import com.hujun.common.base.BaseApplication
/**
* Created by junhu on 2020/3/27
*/
class AppApplication: BaseApplication() {
override fun onCreate() {
super.onCreate()
// RecordPathManager.joinGroup("app","MainActivity",MainAct... | 1 | null | 1 | 1 | c8453aa2d52456b814290dbcf330dcca689949e9 | 551 | AndroidModulize | MIT License |
app/src/main/java/com/agobikk/cookeatenjoy/util/SavedShared.kt | AGOBIKK | 483,512,081 | false | null | package com.agobikk.cookeatenjoy.util
import android.content.Context
interface SavedShared {
fun setFavorite(context: Context?, key: String, value: Boolean)
fun getFavorite(context: Context?, key: String): Boolean
} | 0 | Kotlin | 0 | 0 | 663238d46b9a7308608a5d14b953f0691a91fe95 | 226 | CookEatEnjoy | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/TCPServer.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 60 | Kotlin | 25 | 345 | ec2cf9e270c7311848af89ee67a02431993f3595 | 3,886 | godot-kotlin-jvm | MIT License |
src/main/kotlin/com/forum/springboot/forum3API/repositorys/UserRoleRepository.kt | BraveWorm | 602,570,714 | false | null | package com.forum.springboot.forum3API.repositorys
import com.forum.springboot.forum3API.models.UserRole
import org.springframework.data.jpa.repository.JpaRepository
interface UserRoleRepository: JpaRepository<UserRole, Long> {
} | 0 | Kotlin | 0 | 0 | a88a178a723004f4641a75d55efc085a3747336b | 231 | Forum3Api | MIT License |
src/main/java/com/masahirosaito/spigot/allmining/utils/PlayerUtil.kt | m4kvn | 82,058,860 | false | null | package com.masahirosaito.spigot.allmining.utils
import org.bukkit.GameMode
import org.bukkit.entity.ExperienceOrb
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
val Player.itemInMainHand: ItemStack get() = inventory.itemInMainHand
fun Player.isCreativeMode() = gameMode == GameMode.CREATIVE
f... | 0 | Kotlin | 0 | 0 | bd56c0b1f4cd90a1419f4d47233bd0498629a87a | 437 | spigot-miner-legacy | Apache License 2.0 |
src/main/kotlin/io/github/intellij/dlanguage/annotator/DHighlightingAnnotator.kt | intellij-dlanguage | 27,922,930 | false | null | package io.github.intellij.dlanguage.annotator
import com.intellij.lang.annotation.AnnotationHolder
import com.intellij.lang.annotation.Annotator
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import io.github.intellij.dlanguage.colors.DColor
import io.github.intellij.dlanguage.resolve.p... | 135 | null | 46 | 293 | f2f172e625c9ffe8db967d078644763cae59dc4f | 3,049 | intellij-dlanguage | MIT License |
src/commonMain/kotlin/io/github/arashiyama11/exceptions.kt | arashiyama11 | 581,833,835 | false | {"Kotlin": 69471} | package io.github.arashiyama11
class ParseException(input: String, at: Int, message: String? = null) : Exception(
"""${message ?: "Unexpected token ${input[at]}"}
$input
${" ".repeat(at)}^
"""
)
class UnknownTermBaseInstanceException : Exception()
class InvalidLetterException(char: Char) : Exception("$char is in... | 0 | Kotlin | 0 | 0 | c3832fb4248060b55d2a0528ece479ac799002d8 | 448 | mojishiki | MIT License |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/quicksight/CfnTemplateColumnGroupColumnSchemaPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")
package cloudshift.awscdk.dsl.services.quicksight
import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.services.q... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 1,425 | awscdk-dsl-kotlin | Apache License 2.0 |
arrow-libs/fx/arrow-fx/src/main/kotlin/arrow/fx/typeclasses/Dispatchers.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.fx.typeclasses
import arrow.fx.IODeprecation
import kotlin.coroutines.CoroutineContext
@Deprecated(IODeprecation)
interface Dispatchers<F> {
fun default(): CoroutineContext
fun io(): CoroutineContext
}
| 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 222 | arrow | Apache License 2.0 |
exposed-spring-boot-starter/src/test/kotlin/org/jetbrains/exposed/spring/Application.kt | Blackdread | 218,660,472 | true | {"Kotlin": 584526} | package org.jetbrains.exposed.spring
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
open class Application {
open fun main(args: Array<String>) {
SpringApplication.run(Application::class.java, *args)
}
} | 0 | null | 0 | 0 | 3367e21a14c633bf536bf84f0deac730ac40675d | 316 | Exposed | Apache License 2.0 |
exposed-spring-boot-starter/src/test/kotlin/org/jetbrains/exposed/spring/Application.kt | Blackdread | 218,660,472 | true | {"Kotlin": 584526} | package org.jetbrains.exposed.spring
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
@SpringBootApplication
open class Application {
open fun main(args: Array<String>) {
SpringApplication.run(Application::class.java, *args)
}
} | 0 | null | 0 | 0 | 3367e21a14c633bf536bf84f0deac730ac40675d | 316 | Exposed | Apache License 2.0 |
compiler/src/main/kotlin/asmble/run/jvm/EnvModule.kt | fluencelabs | 141,392,357 | false | null | package asmble.run.jvm
/**
* Used to tack the state of the environment module.
*/
data class EnvState(
var spentGas: Long = 0,
// executed instruction counter
var EIC: Long = 0
)
/**
* Module used for gas and EIC metering.
*/
open class EnvModule(private val gasLimit: Long) {
private ... | 2 | null | 2 | 7 | 4c65740d03b7a0723d0d4286bf2fa46c461171a0 | 1,290 | asmble | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/Control.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: Control
*
* Full name: System`Control
*
* Control[{u, dom}] represents an interactive c... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,285 | mathemagika | Apache License 2.0 |
buy-oyc-commons/src/test/kotlin/org/jesperancinha/concert/buy/oyc/commons/domain/TicketReservationTest.kt | jesperancinha | 65,844,678 | false | {"Kotlin": 119759, "Batchfile": 39648, "Shell": 9865, "TypeScript": 8618, "Makefile": 6882, "Python": 1737, "HTML": 1721, "Dockerfile": 1545, "CSS": 930, "JavaScript": 99} | package org.jesperancinha.concert.buy.oyc.commons.domain
import io.kotest.matchers.collections.shouldBeEmpty
import io.kotest.matchers.comparables.shouldBeEqualComparingTo
import io.kotest.matchers.comparables.shouldBeLessThan
import io.kotest.matchers.nulls.shouldBeNull
import io.kotest.matchers.nulls.shouldNotBeNull... | 0 | Kotlin | 1 | 4 | ce9877fcb3882f311eaa1abc6a82c8380da884e1 | 10,579 | buy-odd-yucca-concert | Apache License 2.0 |
app/src/main/java/com/prerna/albumapp/data/model/mapper/Mappable.kt | Prernaakumaree | 358,332,548 | false | null | package com.prerna.albumapp.data.model.mapper
interface Mappable<Api, Domain> {
fun map(api: Api): Domain
}
fun <Api, Domain> List<Api>.apiToDomain(model: Mappable<Api, Domain>) : List<Domain> {
return this.map { model.map(it) }
} | 0 | Kotlin | 0 | 0 | 8a4ab9ef2974ff6beb2c124b642ec9df2b078399 | 240 | Album-App | Apache License 2.0 |
app/src/main/java/com/frogobox/recyclerviewimpl/ui/adapter/child/ChildViewAdapter.kt | amirisback | 231,027,893 | false | null | package com.frogobox.recyclerviewimpl.ui.adapter.child
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.frogobox.recycler.core.FrogoRecyclerViewAdapter
import com.frogobox.recycler.core.FrogoRecyclerViewHolder
import com.frogobox.recyclerviewimpl.model.Child
import kotl... | 0 | Kotlin | 1 | 7 | 55fe53ad749dc7f5bb2d5b617280c32bd17acff6 | 1,347 | recyclerview-in-recyclerview | Apache License 2.0 |
app/src/main/java/com/frogobox/recyclerviewimpl/ui/adapter/child/ChildViewAdapter.kt | amirisback | 231,027,893 | false | null | package com.frogobox.recyclerviewimpl.ui.adapter.child
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.frogobox.recycler.core.FrogoRecyclerViewAdapter
import com.frogobox.recycler.core.FrogoRecyclerViewHolder
import com.frogobox.recyclerviewimpl.model.Child
import kotl... | 0 | Kotlin | 1 | 7 | 55fe53ad749dc7f5bb2d5b617280c32bd17acff6 | 1,381 | recyclerview-in-recyclerview | Apache License 2.0 |
ShopperInsights/src/test/java/com/braintreepayments/api/shopperinsights/EligiblePaymentsApiResultUnitTest.kt | braintree | 21,631,528 | false | null | package com.braintreepayments.api
import org.junit.Assert.*
import org.junit.Test
class EligiblePaymentsApiResultUnitTest {
@Test
fun testVenmoFromJson() {
// Sample JSON string
val jsonString = """
{
"eligible_methods": {
"venmo": {
... | 24 | null | 233 | 409 | 92dabb74f14e6203259511f6b6a51367e3247fc5 | 1,885 | braintree_android | MIT License |
kandy-lets-plot/src/main/kotlin/org/jetbrains/kotlinx/kandy/letsplot/stat/Statistic.kt | Kotlin | 502,039,936 | false | null | /*
* Copyright 2020-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.kotlinx.kandy.letsplot.stat
import org.jetbrains.kotlinx.dataframe.columns.ColumnReference
public typealias Statistic<T> = ColumnReference<T>
| 79 | Kotlin | 0 | 98 | fd613edc4dd37aac0d0ecdb4245a770e09617fc7 | 275 | kandy | Apache License 2.0 |
app/src/main/java/com/gelostech/dankmemes/ui/adapters/CommentAdapter.kt | tirgei | 122,351,155 | false | {"Gradle": 3, "XML": 82, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 2, "Proguard": 1, "Java": 2, "Kotlin": 92, "YAML": 1} | package com.gelostech.dankmemes.ui.adapters
import android.view.ViewGroup
import androidx.paging.PagedList
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.gelostech.dankmemes.R
import com.gelostech.dankmemes.data.models.Co... | 1 | Kotlin | 18 | 58 | 67dac7af5bd2897c44d5c5ebd8007dab43c42f56 | 2,696 | DankMemes | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/incidentreporting/jpa/PrisonerInvolvement.kt | ministryofjustice | 725,638,590 | false | {"Kotlin": 239888, "Dockerfile": 1365} | package uk.gov.justice.digital.hmpps.incidentreporting.jpa
import jakarta.persistence.Entity
import jakarta.persistence.EnumType
import jakarta.persistence.Enumerated
import jakarta.persistence.FetchType
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
i... | 2 | Kotlin | 0 | 0 | c424db6080838a9ad133a983146f4f35e7ebdf5f | 1,644 | hmpps-incident-reporting-api | MIT License |
backend/src/main/kotlin/medpod/blood/controllers/model/RegisterPatientCommand.kt | MedPod | 378,226,864 | false | null | package medpod.blood.controllers.model
data class RegisterPatientCommand(
val snils: String
)
| 0 | Kotlin | 0 | 1 | 8cb0779a04cb28babd8645fa9f7a9065d0ca745e | 99 | blood-pressure-diary | Apache License 2.0 |
pulsar-rest/src/main/kotlin/ai/platon/pulsar/rest/api/ApiApplication.kt | platonai | 124,882,400 | false | null | package ai.platon.pulsar.rest.api
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration
import org.springframework.boot.autoconfigure.domain.EntityScan
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfigur... | 1 | HTML | 32 | 110 | f93bccf5075009dc7766442d3a23b5268c721f54 | 775 | pulsar | Apache License 2.0 |
src/main/java/com/nardai/practice/controller/UserInfo.kt | lnardai | 94,374,280 | false | null | package com.nardai.practice.controller
data class UserInfo(
val id: Long,
val name: String = "Rick") | 1 | null | 1 | 1 | 897113512cb2410d2e8b419a887550d2a6dfa4bc | 134 | springboot-kotlin-practice | MIT License |
MaWPhotos/src/main/kotlin/us/mikeandwan/photos/domain/RandomPreferenceRepository.kt | AerisG222 | 59,966,716 | false | {"Kotlin": 360667, "Shell": 2132} | package us.mikeandwan.photos.domain
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.map
import us.mikeandwan.photos.database.RandomPreferenceDao
import us.mikeandwan.photos.domain.models.GridThumbnailSize
import us.mikeandwan.photos.domain.models.RandomPreference
import javax.inject.Inject
class R... | 0 | Kotlin | 0 | 0 | 85ae4bf8baf64fd4fb90b3232e0cd1c62266efaa | 1,635 | maw_photos_android | MIT License |
app/src/main/java/com/flamyoad/tsukiviewer/ui/settings/GalleryAppPickerDialog.kt | flamyoad | 286,064,194 | false | null | package com.flamyoad.tsukiviewer.ui.settings
import android.app.Dialog
import android.content.DialogInterface
import android.graphics.Point
import android.os.Bundle
import android.view.Display
import android.view.Gravity
import android.view.LayoutInflater
import android.view.Window
import androidx.appcompat.app.AlertD... | 3 | null | 1 | 6 | 2ad5060d52b758c5c60ab133f1cc7aed49ccca9b | 3,216 | TsukiViewer | Apache License 2.0 |
src/backend/ci/core/dispatch-kubernetes/biz-dispatch-kubernetes/src/main/kotlin/com/tencent/devops/dispatch/kubernetes/kubernetes/client/JobClient.kt | Florence-y | 466,159,327 | true | {"Kotlin": 32055720, "Java": 5630945, "Vue": 5114034, "Go": 2452911, "JavaScript": 1705688, "Lua": 782810, "Dart": 551043, "TypeScript": 401445, "Shell": 395465, "SCSS": 382534, "C++": 149772, "HTML": 134571, "CSS": 92893, "Python": 50689, "C": 33502, "Smarty": 27962, "Less": 24714, "Objective-C": 18613, "Dockerfile": ... | package com.tencent.devops.dispatch.kubernetes.kubernetes.client
import com.tencent.devops.common.api.pojo.Result
import com.tencent.devops.dispatch.kubernetes.common.NFS_VOLUME_NAME_PREFIX
import com.tencent.devops.dispatch.kubernetes.config.DispatchBuildConfig
import com.tencent.devops.dispatch.kubernetes.config.Dis... | 0 | Kotlin | 0 | 2 | 58baee8fabd09ff8e42885162a3b894bab1577da | 4,864 | bk-ci | MIT License |
kotlinx-coroutines-core/concurrent/test/selects/SelectChannelStressTest.kt | Kotlin | 61,722,736 | false | {"Kotlin": 3835333, "Java": 34700, "Python": 3107, "Shell": 2685} | /*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.selects
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import kotlin.test.*
class SelectChannelStressTest: TestBase() {
// Running less iterations on native ... | 295 | Kotlin | 1850 | 13,033 | 6c6df2b850382887462eeaf51f21f58bd982491d | 2,066 | kotlinx.coroutines | Apache License 2.0 |
library/src/commonMain/kotlin/com/myunidays/kiterable/models/IterableInAppMessageInterface.kt | MyUNiDAYS | 570,215,922 | false | {"Kotlin": 28503, "Shell": 1057} | package com.myunidays.kiterable.models
interface IterableInAppMessageInterface {
val messageId: String
val customPayload: Payload?
val createdAt: String?
val expiresAt: String?
}
| 0 | Kotlin | 0 | 4 | 8b7c6e1bb1895f71ab6789ccebbc97add6000415 | 196 | KIterable | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.