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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Demo/src/main/java/com/danny/demo/filepicker/view/OpenImageActivity.kt | dannycx | 643,140,932 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 10, "Batchfile": 1, "Markdown": 58, "INI": 8, "Proguard": 9, "Kotlin": 149, "XML": 117, "Java": 130, "JSON": 2} | package com.danny.demo.filepicker.view
import android.os.Bundle
import android.view.Window
import android.view.WindowManager
import androidx.databinding.DataBindingUtil
import com.bumptech.glide.Glide
import com.danny.demo.R
import com.danny.demo.databinding.ActivityImageBinding
import com.danny.demo.filepicker.FilePi... | 0 | Java | 0 | 0 | 31020de9d942f1d0013c1bf7a8115decd229e296 | 1,548 | XLib | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/robobo/RoboboRemote.kt | MechDancer | 212,054,987 | true | {"Gradle": 7, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 8, "HTML": 386, "CSS": 1, "JavaScript": 1, "Text": 5, "INI": 1, "XML": 19, "Java": 47, "Kotlin": 59} | package org.firstinspires.ftc.teamcode.robobo
import com.qualcomm.robotcore.eventloop.opmode.Disabled
import com.qualcomm.robotcore.eventloop.opmode.TeleOp
import org.mechdancer.dataflow.core.minus
import org.mechdancer.flow.HostedOpMode
import org.mechdancer.flow.struct.preset.chassis.MecanumChassis
@TeleOp
@Disable... | 0 | Kotlin | 0 | 0 | 4f42f7827e91b72c816f8d647633f76b316c4b96 | 1,009 | SkyStone | MIT License |
src/jsBackendMain/kotlin/de/robolab/server/data/IMqttMessageStore.kt | pixix4 | 243,975,894 | false | null | package de.robolab.server.data
interface IMqttMessageStore | 4 | Kotlin | 0 | 2 | 1f20731971a9b02f971f01ab8ae8f4e506ff542b | 59 | robolab-renderer | MIT License |
app/src/main/java/com/example/cupcake/FlavorFragment.kt | JanaYAlSalem | 427,696,295 | false | null | package com.example.cupcake
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import com.example.cupcake.databindi... | 0 | Kotlin | 0 | 0 | 1dd61303a47ee713c3d37fa2f67efbb9a6b71cd6 | 2,866 | Cupcake | Apache License 2.0 |
lego/lego_plugins/src/main/java/com/lego/plugins/root/TestPlugin.kt | ruichard | 775,792,965 | false | {"Kotlin": 369040, "Java": 13237} | package com.lego.plugins.root
import com.lego.plugins.LegoPlugin
import com.lego.plugins.basic.exception.LegoPluginNotApplyException
import com.lego.plugins.basic.exception.LegoTestMavenVersionNotSetException
import com.lego.plugins.basic.exception.LegoTestNotLegoRootException
import com.lego.plugins.basic.utility.add... | 0 | Kotlin | 0 | 1 | 0a581d294e3e76050b9bc7478fbc200a43b4b919 | 2,478 | Lego | Apache License 2.0 |
android/app/src/main/kotlin/com/hoc/node_auth/MainActivity.kt | hoc081098 | 168,883,828 | false | {"Dart": 128609, "C++": 16820, "CMake": 8227, "Kotlin": 4399, "Swift": 4117, "HTML": 3930, "Ruby": 1389, "C": 734, "Objective-C": 38} | package com.hoc.node_auth
import android.util.Log
import com.google.crypto.tink.subtle.Base64
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import kotlinx.coroutines.*
class ... | 18 | Dart | 54 | 263 | fb2cc83e6320ce5d555542ad265c224f773e2cc1 | 3,261 | node-auth-flutter-BLoC-pattern-RxDart | MIT License |
presentation/src/main/java/net/radityalabs/myalquran/android/App.kt | BechirAhmed | 96,075,503 | true | {"Kotlin": 5789, "Java": 2372} | package net.radityalabs.myalquran.android
import android.app.Application
/**
* Created by radityagumay on 5/24/17.
*/
class App : Application() {
companion object {
lateinit var instance: App
}
init {
instance = this
}
override fun onCreate() {
super.onCreate()
}
} | 0 | Kotlin | 0 | 0 | 5052fe8dc34c5c173c72b3dbd39898af8d07a8b6 | 319 | My-AlQuran-Android | Apache License 2.0 |
sdk/sdk-all/src/commonMain/kotlin/io/opentelemetry/kotlin/sdk/OpenTelemetrySdk.kt | dcxp | 450,518,130 | false | {"Kotlin": 1483649} | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.kotlin.sdk
import io.opentelemetry.kotlin.api.OpenTelemetry
import io.opentelemetry.kotlin.api.trace.Tracer
import io.opentelemetry.kotlin.api.trace.TracerBuilder
import io.opentelemetry.kotlin.api.trace.Trace... | 10 | Kotlin | 2 | 29 | 9c3186e26bd3ac78b650163be2c8f569096aaeec | 2,297 | opentelemetry-kotlin | Apache License 2.0 |
backend/search-data/src/commonMain/kotlin/com/gchristov/thecodinglove/searchdata/db/DbSearchSession.kt | gchristov | 533,472,792 | false | {"Kotlin": 377856, "CSS": 87216, "HTML": 54731, "Shell": 1670, "JavaScript": 742, "Dockerfile": 315} | package com.gchristov.thecodinglove.searchdata.db
import com.gchristov.thecodinglove.searchdata.domain.SearchSession
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serializa... | 0 | Kotlin | 0 | 3 | 977533cf18f2963a89fc3e93b2b7a2ce313bc0ae | 2,734 | thecodinglove-kotlinjs | Apache License 2.0 |
crypto-subscriber/src/main/kotlin/com/oberasoftware/crypto/consumer/InfluxDBClient.kt | renarj | 190,466,631 | false | null | package com.oberasoftware.crypto.consumer
import com.oberasoftware.crypto.common.AssetPriceEvent
import org.influxdb.BatchOptions
import org.influxdb.InfluxDB
import org.influxdb.InfluxDBFactory
import org.influxdb.dto.Point
import org.influxdb.dto.Query
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import ja... | 0 | Kotlin | 1 | 3 | a923f48253c0e3f2a79c9bd0ca62faae07ed5fef | 1,754 | crypto-dashboard | X11 License |
app/src/main/kotlin/com/thoughtbot/tropos/scrolling/WeatherSnapHelper.kt | thoughtbot | 78,581,829 | false | null | package com.thoughtbot.tropos.scrolling
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.LinearSnapHelper
import androidx.recyclerview.widget.OrientationHelper
import androidx.recyclerview.widget.RecyclerView
/**
* Implementation of {@link LinearSn... | 5 | Kotlin | 21 | 132 | f78bf3c84ea91c08d200da6ad851920fcc259f82 | 2,399 | tropos-android | MIT License |
fabric/src/main/java/com/lunabbie/mushroommod/items/groups/MushroomItemGroup.kt | Lunabbie-Mods | 524,260,875 | false | {"Kotlin": 6516, "Java": 2870} | package com.lunabbie.mushroommod.items.groups
import com.lunabbie.mushroommod.items.MushroomBrew
import com.lunabbie.mushroommod.items.Painshroom
object MushroomItemGroup: ModItemGroup(key = "items", icon = { Painshroom.defaultStack }) {
init {
MushroomBrew registeredAs "mushroom_brew"
Painshroom ... | 5 | Kotlin | 0 | 3 | f8a28bb1b6eb1f358c901c10fe7265d25ac37dd8 | 353 | mushroom-mod | MIT License |
src/main/kotlin/com/c5inco/modifiers/ui/controls/SmallIconButton.kt | c5inco | 349,346,768 | false | null | package com.c5inco.modifiers.ui.controls
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import a... | 0 | Kotlin | 1 | 97 | 81c0e1b0a6a9688085e3f249efadd49264097220 | 1,735 | Compose-Modifiers-Playground | MIT License |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/profile/GetMultipleAccountTask.kt | FaradayApp | 732,727,396 | false | {"Kotlin": 15888339, "Java": 250183, "Shell": 102807, "HTML": 28529, "Python": 25379, "FreeMarker": 7662, "JavaScript": 7070, "Ruby": 3420, "Gherkin": 58} | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 2 | 0 | f2144cf19419aa0042d6666fad47f042e44aaf9b | 1,894 | Faraday-android | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/profile/GetMultipleAccountTask.kt | FaradayApp | 732,727,396 | false | {"Kotlin": 15888339, "Java": 250183, "Shell": 102807, "HTML": 28529, "Python": 25379, "FreeMarker": 7662, "JavaScript": 7070, "Ruby": 3420, "Gherkin": 58} | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 0 | Kotlin | 2 | 0 | f2144cf19419aa0042d6666fad47f042e44aaf9b | 1,894 | Faraday-android | Apache License 2.0 |
app/src/main/java/com/steelzoo/ownweather/data/Mapper.kt | SteelZoo | 593,188,811 | false | null | package com.steelzoo.ownweather.data
import com.steelzoo.ownweather.data.weather.model.NowWeatherDto
import com.steelzoo.ownweather.domain.model.NowWeatherData
fun NowWeatherDto.toNowWeatherData(): NowWeatherData {
var temperature = 0.0
var oneHourPrecipitation = 0.0
var eastWestWindComponent = 0.0
v... | 0 | Kotlin | 0 | 0 | e807b9edcd42d54f59eabfc8995a6d684365f30b | 1,378 | OwnWeather | MIT License |
app/src/main/java/com/example/mastertask/Adapters/EditAccountSkillsAdapter.kt | pp3-mastertask | 682,073,681 | false | {"Kotlin": 143143} | package com.example.mastertask.Adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.mastertask.Models.SkillModel
import com.example.mastertask.R
class EditAccountSkillsAdapt... | 0 | Kotlin | 0 | 1 | b21b68d26fedf00434e6c22ff1ec2c48cdf80ad0 | 1,516 | mastertask-mobile | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/CfnClientVpnTargetNetworkAssociationPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.ec2.CfnClientVpnTargetNetworkAssociationProps
@Generated
public fun buildCfnClientVpnTargetNetworkAssociationProps(initializer: @AwsCd... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 523 | aws-cdk-kt | Apache License 2.0 |
interactor/src/commonMain/kotlin/gcu/product/interactor/rest/other/geocoding/GeocodingUseCase.kt | Ilyandr | 612,297,078 | false | null | package gcu.product.interactor.rest.other.geocoding
import gcu.product.entities.location.GeocodingEntity
import gcu.product.entities.location.LocationEntity
import gcu.product.entities.location.PlaceEntityWrapper
interface GeocodingUseCase {
fun places(
location: LocationEntity,
language: String,... | 0 | Kotlin | 0 | 1 | cd59d48d83efff270b9627ef04a0ccb7647c262d | 553 | Friendly | Apache License 2.0 |
app/src/main/java/com/concordium/wallet/ui/common/failed/FailedActivity.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.ui.common.failed
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import com.concordium.wallet.R
import com.concordium.wallet.core.backend.BackendError
import com.concordium.wallet.ui.MainActivity
import com.concordium.wallet.ui.account.ac... | 56 | Kotlin | 0 | 4 | 0b5304794f93c5a041d4170bf893188bbd0faf1d | 3,854 | concordium-reference-wallet-android | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/test/TestCoverageSummaryFilesItemFunctionsItem.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.test
sealed external interface TestCoverageSummaryFilesItemFunctionsItem {
/**
* The name of the function.
*/
var name: String
/**
* The line number where the function is defined.
*/
var line: Double
/**
*... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 398 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/skapps/shoppingapp/ui/purchaseHistory/HistoryPurchaseViewModel.kt | sahinkaradeniz | 557,354,723 | false | {"Kotlin": 135488} | package com.skapps.shoppingapp.ui.purchaseHistory
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.skapps.shoppingapp.data.model.Product
import com.skapps.shoppingapp.data.remote.... | 0 | Kotlin | 0 | 2 | 89341c708463bb570e9bef4b520936b2f82e41bc | 1,188 | ShoppingApp | MIT License |
ktgfx/src/main/kotlin/de/roamingthings/ktgfx/GfxFont.kt | roamingthings | 114,105,702 | false | null | package de.roamingthings.ktgfx
class GfxFont(
val bitmap: IntArray, // Glyph bitmaps, concatenated
val glyph: Array<GfxGlyph>, // Glyph array
val first: Int,
val last: Int, // ASCII extents
val yAdvance: Int
)
class GfxGlyph(
val bitmapOffset: Int, // Poi... | 0 | Kotlin | 0 | 6 | bb24eb43ef85406a1e8bf0ed7d53428a8c11867b | 555 | ktepaper | Apache License 2.0 |
app/composeApp/src/commonMain/kotlin/com/xboxgamecollection/app/features/auth/data/repository/AuthenticationRepository.kt | alexaragao | 809,759,421 | false | {"Kotlin": 126157, "Dockerfile": 709, "Swift": 522} | package com.xboxgamecollection.app.features.auth.data.repository
import com.xboxgamecollection.app.features.auth.data.model.AuthLoginRequest
import com.xboxgamecollection.app.features.auth.data.model.AuthRegisterRequest
import com.xboxgamecollection.app.features.auth.data.model.AuthenticationResponse
import com.xboxga... | 0 | Kotlin | 0 | 1 | 25cdf1704a2f5a9a587dce225cb612df731c38e7 | 1,139 | xbox-game-collection-app | MIT License |
app/composeApp/src/commonMain/kotlin/com/xboxgamecollection/app/features/auth/data/repository/AuthenticationRepository.kt | alexaragao | 809,759,421 | false | {"Kotlin": 126157, "Dockerfile": 709, "Swift": 522} | package com.xboxgamecollection.app.features.auth.data.repository
import com.xboxgamecollection.app.features.auth.data.model.AuthLoginRequest
import com.xboxgamecollection.app.features.auth.data.model.AuthRegisterRequest
import com.xboxgamecollection.app.features.auth.data.model.AuthenticationResponse
import com.xboxga... | 0 | Kotlin | 0 | 1 | 25cdf1704a2f5a9a587dce225cb612df731c38e7 | 1,139 | xbox-game-collection-app | MIT License |
app/src/main/java/dev/shorthouse/coinwatch/ui/screen/search/CoinSearchUiState.kt | shorthouse | 655,260,745 | false | {"Kotlin": 356282} | package dev.shorthouse.coinwatch.ui.screen.search
import dev.shorthouse.coinwatch.model.SearchCoin
import kotlinx.collections.immutable.ImmutableList
sealed interface CoinSearchUiState {
object Loading : CoinSearchUiState
data class Success(
val searchResults: ImmutableList<SearchCoin>,
val qu... | 0 | Kotlin | 0 | 4 | 6059a9e9c08add44975af25c96d9632f58d613bd | 437 | CoinWatch | Apache License 2.0 |
app/src/main/java/de/jepfa/yapm/ui/DropDownList.kt | jenspfahl | 378,141,282 | false | {"Kotlin": 896203, "HTML": 36434} | package de.jepfa.yapm.ui
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatSpinner
class DropDownList(context: Context, attributeSet: AttributeSet?): AppCompatSpinner(context, attributeSet) {
override fun setSelection(position: Int, animate: Boolean) {
... | 6 | Kotlin | 3 | 53 | d4ff7b49bfcad92ca9d56ab8e077436cc0f93203 | 1,085 | ANOTHERpass | MIT License |
agent/src/main/kotlin/org/nessus/didcomm/service/MessageDispatchService.kt | tdiesler | 578,916,709 | false | null | /*-
* #%L
* Nessus DIDComm :: Core
* %%
* Copyright (C) 2022 Nessus
* %%
* 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
*
* Un... | 19 | Kotlin | 0 | 5 | 2680c7e2b1c1741bed55d5942707273321209ad3 | 8,835 | nessus-didcomm | Apache License 2.0 |
app/src/main/java/com/bangkit/faniabdullah_bfaa/ui/detailuser/followers/FollowersViewModel.kt | faniabdullah | 346,223,332 | false | null | package com.bangkit.faniabdullah_bfaa.ui.detailuser.followers
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.bangkit.faniabdullah_bfaa.data.local.FavoriteUser
import com.bangkit.fa... | 0 | Kotlin | 0 | 1 | 40e3eb35a7c21b0d5e390dcd6b9b3d8a6634af82 | 3,256 | android-application-fundamentals | MIT License |
buildSrc/src/main/kotlin/Libs.kt | sanogueralorenzo | 115,441,256 | false | null | import kotlin.String
/**
* Generated by https://github.com/jmfayard/buildSrcVersions
*
* Update this file with
* `$ ./gradlew buildSrcVersions`
*/
object Libs {
/**
* https://github.com/square/retrofit
*/
const val converter_moshi: String = "com.squareup.retrofit2:converter-moshi:" +
... | 3 | Kotlin | 309 | 1,599 | 9c27cce37376148d61394e0a4622521dc8805483 | 5,485 | Android-Kotlin-Clean-Architecture | Apache License 2.0 |
src/main/kotlin/no/nav/pensjon/simulator/core/domain/regler/enum/PSats_ST.kt | navikt | 753,551,695 | false | {"Kotlin": 1687999, "Java": 2774, "Dockerfile": 144} | package no.nav.pensjon.simulator.core.domain.regler.enum
enum class PSats_ST {
Ordinær,
Minste,
Forhøyet
}
| 1 | Kotlin | 0 | 0 | 1f7f146757ea054e29a6d82aa656cb21c9c61961 | 120 | pensjonssimulator | MIT License |
2019-android-applications/AssignmentLeslie/app/src/main/java/dev/csshortcourse/assignment/view/LoginActivity.kt | kevin2-cyber | 437,880,493 | false | {"Kotlin": 765037, "CSS": 301626, "SCSS": 287609, "HTML": 208821, "JavaScript": 16612, "Java": 2758, "TypeScript": 366} | package dev.csshortcourse.assignment.view
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import dev.csshortcourse.assignment.R
import dev.csshortcourse.assignment.viewmodel.AppViewModel
import dev.csshortcourse.assignment.viewmodel.Respon... | 0 | Kotlin | 0 | 1 | 32e38fd6bfe6074f23f6cd630c20d8a53f91156d | 1,607 | ug-short-course | MIT License |
code/jvm/src/main/kotlin/aguDataSystem/server/domain/tank/TankUpdateInfo.kt | AGU-Data-System | 765,690,492 | false | {"Kotlin": 723386, "TypeScript": 153702, "JavaScript": 1600, "CSS": 925, "Shell": 889, "HTML": 267} | package aguDataSystem.server.domain.tank
import aguDataSystem.server.domain.gasLevels.GasLevels
/**
* Represents the tank update info
* @property levels the gas levels
* @property capacity the capacity
* @property correctionFactor the correction factor
*/
data class TankUpdateInfo(
val levels: GasLevels,
val c... | 0 | Kotlin | 0 | 1 | d41bcf2ff0a21ac97f476a59c83802ddf0269606 | 366 | AGU-Data-System | MIT License |
app/src/main/java/dev/iamspathan/simpletodo/ItemsAdapter.kt | iamspathan | 352,577,466 | false | null | package dev.iamspathan.simpletodo
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import dev.iamspathan.simpletodo.ItemsAdapter.ItemViewHolder
class ItemsAdapter(val list: List<String>, val onItem... | 0 | Kotlin | 0 | 0 | 2ff03f4956b52c8731cfbb40c122eff2c866d476 | 1,470 | SimpleTodo | Apache License 2.0 |
app/src/main/java/com/eliteapartment/gallery/di/PersistenceModule.kt | criss08 | 752,309,649 | false | {"Kotlin": 42488} | package com.eliteapartment.gallery.di
import android.content.Context
import androidx.room.Room
import com.eliteapartment.gallery.data.persistence.AppDatabase
import com.eliteapartment.gallery.data.dao.ImageDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifier... | 0 | Kotlin | 0 | 0 | a689ad0c6a2b50b92bb4bdf4d0172ee0e91a0294 | 902 | elite-technical-assessment | Apache License 2.0 |
src/kotlin/src/tutorial/coroutine/error/NoneCancellationExceptionSample.kt | NanamiMio | 457,178,790 | true | {"HTML": 3072012, "CSS": 1909531, "Scheme": 308236, "Java": 183277, "Emacs Lisp": 108499, "Kotlin": 105053, "Erlang": 76979, "Rust": 75302, "Python": 53551, "Go": 47318, "C": 7008, "Shell": 372} | package tutorial.coroutine.error
import kotlinx.coroutines.*
fun main() = runBlocking {
val handler = CoroutineExceptionHandler { _, exception -> println("Caught $exception") }
val job = GlobalScope.launch(handler) {
launch { // 第一个子协程
try {
delay(Long.MAX_VALUE)
... | 0 | HTML | 0 | 0 | 278937d27d09c1d659eb9e4fc65a2844e5fe3c72 | 827 | klose911.github.io | Apache License 2.0 |
app/src/main/java/com/example/weatherapp/feature/about/screen/AboutScreen.kt | codeKrishnan | 517,036,927 | false | null | package com.example.weatherapp.feature.about.screen
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.... | 1 | Kotlin | 0 | 0 | dbe09f247738c8a5ee9ef835a55557be1264bdcc | 2,746 | weather-app | Apache License 2.0 |
domain/src/main/kotlin/com/bphenriques/employeeshifts/domain/shift/model/Exceptions.kt | bphenriques-interview-challenges | 342,201,072 | false | null | package com.bphenriques.employeeshifts.domain.shift.model
sealed class ShiftRowOperationException(
override val message: String?,
override val cause: Throwable?
) : RuntimeException(message, cause)
class ShiftUnmappedFailedOperation(val shifts: List<Shift>, override val cause: Throwable) : ShiftRowOperationEx... | 0 | Kotlin | 0 | 0 | a45b3adb08c550ab036e48bbb6e86dcb799cbbaf | 1,192 | employee-shift-api-challenge | MIT License |
PluginsAndFeatures/azure-toolkit-for-intellij/rider/src/org/jetbrains/plugins/azure/RiderAzureUtils.kt | JetBrains | 137,064,201 | true | {"Java": 6822615, "Kotlin": 2384238, "C#": 198892, "Scala": 151332, "Gherkin": 108427, "JavaScript": 98350, "HTML": 23518, "CSS": 21770, "Groovy": 21447, "Shell": 21354, "XSLT": 7141, "Dockerfile": 3518, "Batchfile": 2155} | /**
* Copyright (c) 2020 JetBrains s.r.o.
* <p/>
* All rights reserved.
* <p/>
* MIT License
* <p/>
* 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 withou... | 70 | Java | 10 | 41 | 5ffb7e600c2bdac8762461921c6255106b376a5d | 1,821 | azure-tools-for-intellij | MIT License |
backend/real/onedrive/src/main/kotlin/swynck/real/onedrive/dto/DeltaResponse.kt | skewwhiffy | 143,559,508 | false | null | package swynck.real.onedrive.dto
import com.fasterxml.jackson.annotation.JsonProperty
import org.http4k.core.Body
import org.http4k.core.Response
import java.net.URI
import swynck.common.Json.auto
data class DeltaResponse(
@JsonProperty("@odata.nextLink")
val nextLink: URI?,
@JsonProperty("@odata.deltaLin... | 0 | Kotlin | 0 | 0 | d8663e6308e2d886ad29af4c22c0c151aac18fde | 535 | Swynck | Apache License 2.0 |
DragonBallApp/app/src/main/java/com/example/dragonballappavanzado/presentation/MainActivity.kt | salvaMsanchez | 743,980,302 | false | {"Kotlin": 65204} | package com.example.dragonballappavanzado.presentation
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.example.dragonballappavanzado.R
im... | 0 | Kotlin | 0 | 0 | cf4dec66e96de8144e956a42e4576f055d0022ac | 1,238 | DragonBallApp-Android | MIT License |
src/de/anime24/src/eu/kanade/tachiyomi/animeextension/de/anime24/Anime24.kt | MoonLGH | 553,636,037 | true | {"Kotlin": 1919153, "Java": 6463} | package eu.kanade.tachiyomi.animeextension.de.anime24
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.MultiSelectListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.animeextension.de.anime24.e... | 0 | Kotlin | 0 | 0 | 9f953f84c59ada522d8d728c9aee0d9e3c358c8a | 9,395 | aniyomi-tachiyomi-ext | Apache License 2.0 |
src/main/kotlin/com/webflux/wt/service/member/MemberService.kt | bleusoir | 698,287,667 | false | {"Kotlin": 6106} | package com.webflux.wt.service.member
import com.webflux.wt.domain.member.Member
import com.webflux.wt.domain.member.MemberRepository
import com.webflux.wt.dto.member.MemberDto
import mu.KotlinLogging
import org.springframework.http.HttpStatus.BAD_REQUEST
import org.springframework.http.HttpStatus.NOT_FOUND
import org... | 0 | Kotlin | 0 | 0 | 2d7b40c8038f59a432c3ab402f04cf3a2fa81188 | 2,215 | spring-webflux-template | MIT License |
tutorial/6.keepParametersOrder_option/android_kotlin/EvgenAnalytics.kt | yandex | 536,504,936 | false | {"TypeScript": 93450, "Handlebars": 63665, "C#": 39234, "Swift": 34021, "Java": 32567, "Kotlin": 27325, "Dart": 25162, "JavaScript": 5539} | /**
* AUTO-GENERATED FILE. DO NOT MODIFY
* This class was automatically generated.
*/
/* ktlint-disable */
interface EvgenAnalyticsTracker {
fun trackEvent(event: String, parameters: Map<String, Any>)
}
interface EvgenAnalyticsGlobalParamsProvider {
fun getGlobalParams(): EvgenAnalyticsGlobalParams
}
inte... | 1 | TypeScript | 0 | 16 | 566895c49bb047be431dddb437e778557b679e0b | 2,791 | evgen | Apache License 2.0 |
app/src/main/java/com/kiyotaka/jetpackdemo/http/ResultException.kt | Zzy9797 | 347,554,269 | false | null | package com.kiyotaka.jetpackdemo.http
import java.lang.Exception
class ResultException constructor(val code:Int,val msg:String): Exception() {
} | 0 | Kotlin | 0 | 0 | 74007e514212d26a91ec4081345311cb9bd5626e | 146 | projectVideo | Apache License 2.0 |
src/main/kotlin/me/jakejmattson/kutils/api/extensions/stdlib/LongExtensions.kt | markhc | 271,817,502 | true | {"Kotlin": 126651} | @file:Suppress("unused")
package me.jakejmattson.kutils.api.extensions.stdlib
import java.time.Duration
import java.time.temporal.ChronoUnit
fun Number.pluralize(unit: String) = "$this ${if (this.toLong() == 1L) unit else "${unit}s"}"
fun Long.toTimeString(trimFront: Boolean = true, trimBack: Boolean = true) = with... | 0 | null | 0 | 0 | 473fcd9ca6391bef2512879aa383d010c6195e04 | 1,189 | KUtils | MIT License |
app/src/main/java/com/cactus/themovie/common/ViewExtensions.kt | rafaelkapi | 404,492,565 | false | null | package com.cactus.themovie.common
import android.view.View
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.facebook.shimmer.Shimmer
fun View.show() {
visibility = View.VISIBLE
}
fun View.hide() {
visibility = View.GONE
}
| 0 | Kotlin | 0 | 0 | c46371efece34fcbc178048143cf27315eeb43b9 | 317 | TheMovie | MIT License |
app/src/main/java/maxeem/america/desserts/util/Glob.kt | maxeema | 198,182,943 | true | {"Kotlin": 24438} | package maxeem.america.desserts.util
/**
* Global const, conf, values, aliases
*/
typealias Str = String
typealias Bool = Boolean
val thread get() = Thread.currentThread()
val timeMillis get() = System.currentTimeMillis()
| 0 | Kotlin | 0 | 0 | 38c880daa8eb1d2a898306d45187aecf4844d7b5 | 228 | andfun-kotlin-dessert-pusher | Apache License 2.0 |
src/main/kotlin/com/team4099/robot2023/util/FieldGeomUtil.kt | team4099 | 560,942,123 | false | null | package com.team4099.robot2023.util
import com.team4099.robot2023.config.constants.FieldConstants
import org.team4099.lib.geometry.Pose2d
fun Pose2d.isOnInnerSideOfChargeStation(): Boolean {
val normalizedPose = AllianceFlipUtil.apply(this)
return normalizedPose.x < FieldConstants.Community.chargingStationInnerX
... | 1 | Kotlin | 2 | 8 | 6e94b287d4da353073439dc699ba8b96f5b5092f | 607 | ChargedUp-2023 | MIT License |
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/groups/GroupCategoryFull.kt | alatushkin | 156,866,851 | false | null | package name.alatushkin.api.vk.generated.groups
open class GroupCategoryFull(
val id: Long,
val name: String,
val subcategories: Array<GroupCategory>? = null,
val pageCount: Long,
val pagePreviews: Array<Group>
) | 2 | Kotlin | 3 | 10 | 123bd61b24be70f9bbf044328b98a3901523cb1b | 234 | kotlin-vk-api | MIT License |
app/src/main/java/serat/maemaeen/notecleanmvvm/ui/theme/Color.kt | AliMansoorzare | 579,020,763 | false | null | package serat.maemaeen.notecleanmvvm.ui.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
object AppColors {
val Purple200 = Color(0xFF67626D)
val Purple500 = Color(0x5DA7AF0E)
val Purple700 = Color(0x960873BB)
val ... | 0 | Kotlin | 0 | 0 | 60feb9e0daf207dc9e04f003b922d9140336c963 | 1,164 | Android-Clean-MVVM-Jetpack-Compose | MIT License |
client/app/src/main/java/com/unina/natourkt/core/presentation/util/UiTextUtil.kt | archer-65 | 433,413,556 | false | null | package com.unina.natourkt.core.presentation.util
import android.content.Context
/**
* Source:
* https://github.com/philipplackner
*/
fun UiText.asString(context: Context): String {
return when (this) {
is UiText.DynamicString -> this.value
is UiText.StringResource -> context.getString(this.id... | 0 | Kotlin | 0 | 1 | d0c4881e6b8432aff5cf1751d58350da2d5a4461 | 329 | natour-2122 | Apache License 2.0 |
src/commonMain/kotlin/com/dxc/ssi/agent/didcomm/processor/Procesors.kt | dxc-technology | 259,322,339 | false | {"Kotlin": 598967, "Objective-C": 537589, "Objective-C++": 442889, "C": 238203, "Ruby": 12614, "Shell": 7187, "Swift": 1114} | package com.dxc.ssi.agent.didcomm.processor
import com.dxc.ssi.agent.didcomm.processor.abandon.AbandonConnectionProcessor
import com.dxc.ssi.agent.didcomm.processor.didexchange.DidExchangeProcessor
import com.dxc.ssi.agent.didcomm.processor.issue.CredIssuerProcessor
import com.dxc.ssi.agent.didcomm.processor.trustping... | 3 | Kotlin | 6 | 5 | 9bede83e0358b16d6dc9459ccc2fd85541027b6c | 744 | ssi-mobile-sdk | Apache License 2.0 |
afterpay/src/main/kotlin/com/afterpay/android/internal/AfterpayCheckoutMessage.kt | DheerajNagubandi | 383,642,845 | true | {"Kotlin": 126383, "HTML": 1085} | package com.afterpay.android.internal
import com.afterpay.android.model.ShippingAddress
import com.afterpay.android.model.ShippingOption
import com.afterpay.android.model.ShippingOptionsErrorResult
import com.afterpay.android.model.ShippingOptionsResult
import com.afterpay.android.model.ShippingOptionsSuccessResult
im... | 0 | null | 0 | 0 | 684a0f1ad4c361f4e86bc2008d30aca855b334d0 | 2,164 | sdk-android | Apache License 2.0 |
domain/usecase/src/main/kotlin/it/battagliandrea/formula1/domain/usecase/GetResultsUseCase.kt | battagliandrea | 708,330,176 | false | {"Kotlin": 63780, "Shell": 1093} | package it.battagliandrea.formula1.domain.usecase
import it.battagliandrea.formula1.data.results.api.repository.IResultsRepository
import it.battagliandrea.formula1.domain.models.QueryResult
import it.battagliandrea.formula1.domain.models.Race
import it.battagliandrea.formula1.domain.usecase.GetResultsUseCase.Params
i... | 3 | Kotlin | 0 | 0 | 8b7a95e7f4807f068ce1100d792e3003ed51ec5e | 1,073 | Fomula1 | Apache License 2.0 |
src/main/kotlin/it/heptartle/kbgg/domain/geekdo/Files.kt | Babanel | 450,175,929 | true | {"Kotlin": 44766} | package it.heptartle.kbgg.domain.geekdo
import it.heptartle.kbgg.Utils.Language
data class Files(val files: FilesContent,
val config: FilesConfig)
data class FilesContent(val list: List<File>)
data class File(val filepageid: String,
val fileid: String,
val filename: ... | 0 | Kotlin | 0 | 1 | c49d637a0f8f36a83555049b1a730a1bd2a56d43 | 928 | kbgg | MIT License |
src/main/kotlin/table/x0c7.kt | oklookat | 808,293,457 | false | {"Kotlin": 806745, "Python": 4615} | package table
internal val x0c7 = listOf(
"wek", // 0x00
"wet", // 0x01
"wep", // 0x02
"weh", // 0x03
"wi", // 0x04
"wig", // 0x05
"wigg", // 0x06
"wigs", // 0x07
"win", // 0x08
"winj", // 0x09
"winh", // 0x0a
"wid", // 0x0b
"wil", // 0x0c
"wilg", // 0x0d
"wilm", // 0x0e
"wilb", // 0x0f
"wils", // 0x10
"wilt", // 0x11... | 0 | Kotlin | 0 | 0 | b85c17dfaeef152a7d8313f612570149d0b6acba | 4,085 | unidecode4k | MIT License |
kt/godot-runtime/src/main/kotlin/godot/core/CoreType.kt | totalorder | 306,142,639 | true | {"GDScript": 255599, "Kotlin": 221911, "C++": 106511, "CMake": 738, "C": 368, "Shell": 124, "Python": 75} | package godot.core
interface CoreType {
} | 0 | null | 0 | 0 | d3a856d10d2f6fccef1e63b73b96b6b79bb8536d | 42 | godot-jvm | MIT License |
app/src/main/java/in/jatindhankhar/wlosh/network/UnSplashClient.kt | jatindhankhar | 120,306,742 | false | null | package `in`.jatindhankhar.wlosh.network
import `in`.jatindhankhar.wlosh.model.DownloadLinkResponse
import `in`.jatindhankhar.wlosh.model.Response
import retrofit2.Call
import retrofit2.Callback
/**
* Created by jatin on 2/10/18.
*/
abstract class UnSplashClient(accessKey: String) {
private var mUnsplashService... | 0 | Kotlin | 0 | 4 | 78583e130df7d8da824416b25bbafcf2b98e34b1 | 1,997 | wlosh | MIT License |
catalog/src/main/java/kiwi/orbit/compose/catalog/CatalogApplication.kt | kiwicom | 289,355,053 | false | null | package kiwi.orbit.compose.catalog
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.g... | 22 | Kotlin | 4 | 18 | ae0431508972d5099046fcfcaeef3eae376c96d7 | 1,043 | orbit-compose | MIT License |
next/kmp/helper/src/commonMain/kotlin/org/dweb_browser/helper/const.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.helper
public const val PrivacyUrl: String = "https://dweb-browser.bagen.info/protocol.html" // 隐私协议地址
public const val SupportUrl: String = "https://dweb-browser.bagen.info/support.html" // webview版本升级帮助界面 | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 232 | dweb_browser | MIT License |
src/main/kotlin/co/csadev/whitelabel/WhiteLabelPluginExtension.kt | gtcompscientist | 128,252,504 | false | null | package co.csadev.whitelabel
import java.io.File
open class WhiteLabelPluginExtension {
var root: File? = null
var dimensionPosition: Int = 0
var addApplicationSuffix: Boolean = true
} | 1 | Kotlin | 2 | 7 | 90db9829122ba8196a15118f78450afe3a6ffc28 | 198 | whitelabel | Apache License 2.0 |
htmlAnnotator-core/src/commonMain/kotlin/com/ravenl/htmlannotator/core/handler/AbsAppendLinesHandler.kt | RavenLiao | 772,909,415 | false | {"Kotlin": 177592, "Swift": 594} | package com.ravenl.htmlannotator.core.handler
import com.fleeksoft.ksoup.nodes.Node
import com.ravenl.htmlannotator.core.css.model.CSSDeclaration
import com.ravenl.htmlannotator.core.model.TextStyler
abstract class AbsAppendLinesHandler(private val amount: Int) : TagHandler() {
override fun addTagStylers(
... | 0 | Kotlin | 1 | 6 | 70a620eccaf24ed9204b2d162eb7ada55a17bb91 | 587 | HtmlAnnotator | Apache License 2.0 |
ok-propertysale-mp-pipelines/src/commonMain/kotlin/ru/otus/otuskotlin/propertysale/mp/pipelines/IOperation.kt | otuskotlin | 330,109,804 | false | null | package ru.otus.otuskotlin.propertysale.mp.pipelines
interface IOperation<T> {
suspend fun execute(context: T)
}
| 0 | Kotlin | 0 | 1 | ed9a38627e64ed36131280ca7449547ba1d06829 | 118 | otuskotlin-202012-propertysale-ks | MIT License |
app/src/main/java/me/knighthat/interactivedeck/vars/Memory.kt | knighthat | 671,970,572 | false | {"Kotlin": 34032, "Java": 5104} | /*
* Copyright (c) 2023. Knight Hat
* All rights reserved.
* 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, mer... | 0 | Kotlin | 0 | 1 | 6201e9595d962c4d9dfbc56f091e3d3e21645291 | 3,552 | InteractiveDeck-Android | MIT License |
src/main/kotlin/com/kilchichakov/fiveletters/service/job/PeriodicLetterStatJobProcessor.kt | augur | 194,393,890 | false | {"Kotlin": 306716, "JavaScript": 3426, "Dockerfile": 135, "HTML": 9} | package com.kilchichakov.fiveletters.service.job
import com.kilchichakov.fiveletters.LOG
import com.kilchichakov.fiveletters.model.job.PeriodicLetterStatJobPayload
import com.kilchichakov.fiveletters.service.LetterStatDataService
import org.springframework.stereotype.Component
@Component
class PeriodicLetterStatJobPr... | 0 | Kotlin | 0 | 0 | 64734f93bef1c36309caaece5b04fe8852872498 | 673 | five-letters | MIT License |
app/src/main/java/com/example/wagba/OrderFragment.kt | AhmedElshobaky | 576,712,867 | false | null | package com.example.wagba
import android.content.ContentValues
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.LinearLayoutMan... | 0 | Kotlin | 0 | 0 | 733be8b2a02d2c68d9149952bdd8ca36b535a078 | 4,494 | Wagba-ENG-ASU | MIT License |
Base/src/main/java/xy/xy/base/widget/recycler/adapter/RecyclerSingleSelectAdapter.kt | xiuone | 291,512,847 | false | null | package com.xy.base.widget.recycler.adapter
abstract class RecyclerSingleSelectAdapter<T>(layoutId:Int) : RecyclerSingleAdapter<T>(layoutId) {
protected var selectPosition = -1
fun setCurrentSelectPosition(position:Int){
if (position == selectPosition)return
val oldSelectPosition = this.sele... | 0 | Kotlin | 1 | 2 | f0778a53355f36d09bf01104d58458232872f223 | 976 | ajinlib | Apache License 2.0 |
app/src/main/java/com/example/burutoapp/presentation/homescreen/components/HomeTopAppBar.kt | Mzazi25 | 528,442,786 | false | {"Kotlin": 130574} | package com.example.burutoapp.presentation.homescreen.components
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Search
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooli... | 0 | Kotlin | 0 | 2 | 849814c25164d23352eb066c3e361700f5b64919 | 1,197 | BorutoApp | The Unlicense |
app/src/main/kotlin/com/pnuema/bible/android/ui/fragments/viewModel/VersesViewModel.kt | barnhill | 98,140,541 | false | null | package com.pnuema.bible.android.ui.fragments.viewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.pnuema.bible.android.data.firefly.VerseCount
import com.pnuema.bible.android.retrievers.FireflyRet... | 0 | Kotlin | 2 | 13 | 6e7f7f2c0b75952afbdd3fb53f90c448b1f0147b | 783 | Bible | Apache License 2.0 |
core/src/main/kotlin/ch/ergon/dope/resolvable/expression/unaliased/type/function/stringfunction/MaskExpression.kt | ergon | 745,483,606 | false | {"Kotlin": 1886765} | package ch.ergon.dope.resolvable.expression.unaliased.type.function.stringfunction
import ch.ergon.dope.DopeQuery
import ch.ergon.dope.DopeQueryManager
import ch.ergon.dope.resolvable.expression.TypeExpression
import ch.ergon.dope.resolvable.expression.unaliased.type.toDopeType
import ch.ergon.dope.resolvable.operator... | 2 | Kotlin | 0 | 6 | 40b18241d25c360080768902fc108ea70bb2f211 | 1,229 | dope-query-builder | MIT License |
app/src/main/java/nawrot/mateusz/timesup/TimesUpApp.kt | mateusz-nawrot | 155,840,332 | false | null | package nawrot.mateusz.timesup
import android.app.Activity
import android.app.Application
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector
import nawrot.mateusz.timesup.di.AppComponent
import nawrot.mateusz.timesup.di.DaggerAppComponent
im... | 0 | Kotlin | 0 | 1 | 3110e0649ee63e0c9d43d6092030d19d74acdee7 | 873 | TimesUp | MIT License |
src/main/java/com/cloudkitchens/Display.kt | rtpatton-lab | 375,521,820 | false | {"Kotlin": 72885} | /*
* Copyright 2019 SirWellington
*
* 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 t... | 0 | Kotlin | 0 | 0 | 32297f323276eaacc028c42dabbfd800e6f1f76b | 4,190 | OrderSimulation | Apache License 2.0 |
cinescout/profile/presentation/src/test/kotlin/cinescout/profile/presentation/viewmodel/ProfileViewModelTest.kt | fardavide | 280,630,732 | false | null | package cinescout.profile.presentation.viewmodel
import app.cash.turbine.test
import arrow.core.left
import arrow.core.right
import cinescout.FakeGetAppVersion
import cinescout.account.domain.model.Account
import cinescout.account.domain.model.GetAccountError
import cinescout.account.domain.sample.AccountSample
import... | 10 | Kotlin | 2 | 6 | 7a875cd67a3df0ab98af520485122652bd5de560 | 3,327 | CineScout | Apache License 2.0 |
DragonBallApp/app/src/main/java/com/example/dragonballappavanzado/presentation/main/favorites/FavoritesFragment.kt | salvaMsanchez | 743,980,302 | false | {"Kotlin": 64646} | package com.example.dragonballappavanzado.presentation.main.favorites
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.viewMod... | 0 | Kotlin | 0 | 0 | a13c4a6ca9765fabca878791318a30521b096812 | 3,028 | DragonBallApp-Android | MIT License |
jungle/src/main/java/com/github/c5fr7q/jungle/command/Middleware.kt | C5FR7Q | 247,728,656 | false | {"Kotlin": 21531} | package com.github.c5fr7q.jungle.command
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.ObservableTransformer
import java.lang.reflect.ParameterizedType
abstract class Middleware<Input : Command> : ObservableTransformer<Command, CommandResult> {
private val inputType: Class<I... | 0 | Kotlin | 0 | 5 | 62a72d6a27cad9b6769729757b299ef705d703d9 | 619 | Jungle | Apache License 2.0 |
source-code/starter-project/app/src/main/java/com/droidcon/localizationcompose/ui/screens/home/Home.kt | droidcon-academy | 690,377,685 | false | {"Kotlin": 36560} | package com.droidcon.localizationcompose.ui.screens.home
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import ... | 0 | Kotlin | 0 | 0 | 59196aa7692b2d5c34b2f0b9acb050676ec37506 | 2,635 | android-cbc-localization-compose | Apache License 2.0 |
next/kmp/dwebview/src/iosMain/kotlin/org/dweb_browser/dwebview/engine/setupIconFlow.ios.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.dwebview.engine
import androidx.compose.ui.graphics.ImageBitmap
import kotlinx.coroutines.flow.MutableStateFlow
import org.dweb_browser.dwebview.polyfill.DWebViewFaviconMessageHandler
import org.dweb_browser.dwebview.polyfill.DwebViewIosPolyfill
import org.dweb_browser.dwebview.polyfill.Favico... | 66 | Kotlin | 5 | 20 | 6db1137257e38400c87279f4ccf46511752cd45a | 1,743 | dweb_browser | MIT License |
app/main/innsending/postgres/PostgresDatasource.kt | navikt | 733,410,261 | false | {"Kotlin": 36012, "Dockerfile": 1009} | package innsending.postgres
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import innsending.PostgresConfig
import org.flywaydb.core.Flyway
import org.slf4j.LoggerFactory
import java.sql.Connection
import java.sql.PreparedStatement
import java.sql.ResultSet
import java.util.*
import ja... | 0 | Kotlin | 0 | 0 | 9937976506597ad045d8373aca0bd9d0f652017a | 2,611 | aap-innsending | MIT License |
plugin/versioning/src/testFixtures/kotlin/net/twisterrob/gradle/vcs/GITHelpers.kt | TWiStErRob | 116,494,236 | false | null | package net.twisterrob.gradle.vcs
import org.eclipse.jgit.api.Git
import org.eclipse.jgit.lib.ObjectId
import org.eclipse.jgit.lib.Ref
import org.eclipse.jgit.revwalk.RevCommit
import java.io.File
import java.util.concurrent.Callable
inline fun git(repoDir: File, block: Git.() -> Unit) {
val repo = createGitReposito... | 79 | null | 4 | 7 | b1363d4c90d3db43e5c77efe9738b538d312d263 | 1,235 | net.twisterrob.gradle | MIT License |
app/src/main/java/mobi/lab/keyimportdemo/common/BaseViewModel.kt | LabMobi | 539,421,428 | false | null | package mobi.lab.keyimportdemo.common
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import mobi.lab.keyimportdemo.common.util.asLiveData
abstract class BaseViewModel : ViewModel() {
private val _finish = MutableLiveData(false)
val finish = _finish.asLiveData()
protected op... | 2 | Kotlin | 0 | 0 | ae51ebd2c7aa75808672880c56278ca16c3ccce9 | 375 | HardwareKeyImportDemoAndroid | MIT License |
app/src/main/java/com/lsp/view/activity/main/PostAdapter.kt | AnranYus | 543,646,685 | false | {"Kotlin": 56673} | package com.lsp.view.activity.main
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.model.GlideUrl
impo... | 0 | Kotlin | 0 | 0 | c1942d8417e8d038618e6266a81f0c79647ed6ef | 4,465 | YandView | MIT License |
app/src/main/java/com/sunnyswag/chatgptapi/MainActivity.kt | sunnyswag | 611,497,361 | false | null | package com.sunnyswag.chatgptapi
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.sunnyswag.chatgptapi.databinding.ActivityMainBinding
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceS... | 0 | Kotlin | 0 | 0 | 64649de74a6790395427d5c0fb2c532837c4886c | 508 | ChatGPT-API-Android | Apache License 2.0 |
chazm-api/src/main/kotlin/runtimemodels/chazm/api/entity/Agent.kt | RuntimeModels | 32,474,965 | false | null | package runtimemodels.chazm.api.entity
import runtimemodels.chazm.api.id.Identifiable
import runtimemodels.chazm.api.organization.Organization
/**
* The [Agent] interface defines an agent entity of an [Organization].
*
* @author <NAME>
* @since 3.4
*/
interface Agent : Identifiable<Agent, AgentId> {
/**
... | 7 | Kotlin | 1 | 1 | e64c35dbd0a11a0f3759305e1cae4b2b593005c8 | 1,104 | chazm | Apache License 2.0 |
main/src/main/java/cn/edu/nankai/onlinejudge/main/StatusFragment.kt | NankaiACM | 135,110,278 | false | null | package cn.edu.nankai.onlinejudge.main
import android.annotation.SuppressLint
import android.os.Bundle
import android.os.Handler
import android.support.v4.app.Fragment
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerVi... | 1 | null | 1 | 2 | 68d9337a04bf3598b07aaf5c5d647430c27d754d | 8,584 | NKOJ-Android | MIT License |
src/main/kotlin/zielu/gittoolbox/util/ConcurrentUtil.kt | koalazub | 341,766,854 | true | {"Java": 355922, "Kotlin": 312085, "HTML": 7800} | package zielu.gittoolbox.util
import com.intellij.openapi.diagnostic.Logger
import java.util.concurrent.ExecutorService
internal object ConcurrentUtil {
private val log = Logger.getInstance(ConcurrentUtil::class.java)
fun shutdown(executor: ExecutorService) {
executor.shutdownNow().forEach { notStarted: Runn... | 0 | null | 0 | 0 | c9dc7d2f7d77d5130288ae4d6ba3a9a8867314ba | 393 | GitToolBox | Apache License 2.0 |
src/main/java/be/sch3lp/j2k/nullability/kotlin/Validation.kt | Sch3lp | 431,976,369 | false | {"Java": 21183, "Kotlin": 12451} | package be.sch3lp.j2k.nullability.kotlin
internal fun validateNotNull(value: Any?, field: String) {
requireNotNull(value) { "$field cannot be null." }
}
internal fun validateNotBlank(value: String?, field: String) {
require(value?.isNotBlank() ?: true) { "$field cannot be empty or blank." }
} | 1 | null | 1 | 1 | 3e20f519b8636d9d617fac4bd951980b52ba4015 | 303 | JavaToKotlin | MIT License |
mvicore-plugin/idea/src/main/java/com/badoo/mvicore/plugin/ui/ConnectionList.kt | emreakcan | 287,947,555 | true | {"Gradle": 15, "Java Properties": 2, "Shell": 3, "Text": 1, "Ignore List": 13, "Batchfile": 1, "YAML": 2, "Markdown": 31, "Kotlin": 130, "XML": 31, "Proguard": 6, "Java": 5} | package com.badoo.mvicore.plugin.ui
import com.badoo.mvicore.plugin.model.ConnectionData
import com.badoo.mvicore.plugin.utils.toTreeNode
import com.intellij.ui.TreeSpeedSearch
import com.intellij.ui.treeStructure.Tree
import java.util.ArrayList
import javax.swing.event.TreeSelectionEvent
import javax.swing.tree.Defau... | 0 | Kotlin | 0 | 2 | b381a0c3684afca743a39808fbc8a2e37a722375 | 2,580 | MVICore | Apache License 2.0 |
core/src/main/kotlin/info/laht/threekt/renderers/shaders/chunk/encodings_fragment.kt | markaren | 196,544,572 | false | null | package info.laht.threekt.renderers.shaders.chunk
internal val __encodings_fragment = """
gl_FragColor = linearToOutputTexel( gl_FragColor );
"""
| 7 | Kotlin | 14 | 187 | 8dc6186d777182da6831cf1c79f39ee2d5960cd7 | 151 | three.kt | MIT License |
languages/php/src/main/kotlin/io/vrap/codegen/languages/php/model/PhpUnionTypeRenderer.kt | commercetools | 136,635,215 | false | {"Kotlin": 1402704, "RAML": 92731, "Groovy": 37966, "Java": 12163, "PHP": 5795, "JavaScript": 5731, "Shell": 3692, "TypeScript": 2505, "Dockerfile": 303} | package io.vrap.codegen.languages.php.model
import io.vrap.codegen.languages.php.ClientConstants
import io.vrap.codegen.languages.php.PhpSubTemplates
import io.vrap.codegen.languages.php.extensions.*
import io.vrap.rmf.codegen.io.TemplateFile
import io.vrap.rmf.codegen.rendering.UnionTypeRenderer
import io.vrap.rmf.co... | 21 | Kotlin | 6 | 14 | 1d93054f2117374f2f9384947c9d93a51f53f5ab | 3,539 | rmf-codegen | Apache License 2.0 |
android/app/src/main/java/com/tvd12/freechat/request/GetContactsRequest.kt | youngmonkeys | 152,706,853 | false | {"Java": 102296, "Dart": 78632, "Kotlin": 46585, "JavaScript": 43889, "Swift": 28910, "SCSS": 12637, "Shell": 4384, "HTML": 822, "Batchfile": 709, "Ruby": 263, "Objective-C": 38} | package com.tvd12.freechat.request
import com.tvd12.ezyfoxserver.client.entity.EzyData
import com.tvd12.ezyfoxserver.client.factory.EzyEntityFactory
import com.tvd12.ezyfoxserver.client.request.EzyRequest
import com.tvd12.freechat.constant.Commands
/**
* Created by tavandung12 on 10/3/18.
*/
class GetContactsReque... | 1 | Java | 20 | 34 | 9079939d7bd33d9b0e050a130df8b0d931bf13a0 | 689 | freechat | Apache License 1.1 |
compiler/fir/checkers/checkers.jvm/src/org/jetbrains/kotlin/fir/analysis/jvm/checkers/declaration/FirInlineBodyRegularClassChecker.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.analysis.jvm.checkers.declaration
import org.jetbrains.kotlin.diagnostics.Di... | 181 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,294 | kotlin | Apache License 2.0 |
app/src/main/kotlin/fr/letroll/githubbookmarkmanager/data/model/RepoAuthorization.kt | letroll | 27,186,114 | false | null | package fr.letroll.githubbookmarkmanager.data.model
import java.util.*
/**
* Created by jquievreux on 05/12/14.
*/
public data class RepoAuthorization(
var id: Int,
var url: String,
var app: App,
var token: String,
var note: String,
var note_url: String,
var created_at: String,
var ... | 0 | Kotlin | 0 | 0 | 6ce81c5f3aa5cb40df4d33bc5e06f8a844832431 | 756 | githubbookmarkmanager | Apache License 2.0 |
projects/ComposeConstraintLayout/app/src/main/java/androidx/constraintlayout/extension/util/VpGraphCompose.kt | androidx | 212,409,034 | false | {"Java": 6974738, "Kotlin": 1953962, "Shell": 1512} | package androidx.constraintlayout.extension.util
import androidx.compose.foundation.Canvas
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.neverEqualPolicy
import androidx.compose.runtime.remember
i... | 97 | Java | 182 | 1,043 | 9cd4b5a4079a14175f91dc897abd83270799364a | 2,778 | constraintlayout | Apache License 2.0 |
packages/google-maps/src-native/android/googlemaps/src/main/java/org/nativescript/plugins/googlemaps/MapView.kt | NativeScript | 288,901,292 | false | {"TypeScript": 1103187, "Swift": 91214, "Objective-C": 62409, "Java": 51718, "Kotlin": 40178, "HTML": 29250, "JavaScript": 17150, "CSS": 3311, "Shell": 1594, "SCSS": 971, "Ruby": 925} | package org.nativescript.plugins.googlemaps
import android.R.attr
import android.app.Activity
import android.app.Application
import android.content.Context
import android.graphics.Bitmap
import android.os.Bundle
import android.util.AttributeSet
import com.google.android.gms.maps.MapView
import com.google.android.gms.m... | 155 | TypeScript | 108 | 190 | d6891192cf275fffdf1104f2555dbd9edf7d6de9 | 1,351 | plugins | Apache License 2.0 |
prettylistlib/src/main/java/com/tripl3dev/prettyListView/baseAdapter/BaseListAdapter.kt | Rohyme | 183,774,677 | false | null | package com.tripl3dev.prettyListView.baseAdapter
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.ObservableArrayList
import androidx.databinding.ObservableInt
import androidx.data... | 0 | null | 0 | 1 | 4c34146c75aaa182b7085b37390eb7fd5461b54f | 10,048 | CleanArch-MVVM-kt-Mini-Core | Apache License 2.0 |
compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/components/FixationOrderCalculator.kt | yuexiaodong | 98,856,226 | true | {"Markdown": 40, "Shell": 6, "Batchfile": 10, "Kotlin": 33481, "Java": 5006, "HTML": 343, "JavaScript": 226, "INI": 70, "Java Properties": 15, "Proguard": 7, "CSS": 1, "Gradle Kotlin DSL": 14} | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 1 | 24865ba26a245b681750a1e9ad8da41a13460cf7 | 12,948 | kotlin | Apache License 2.0 |
librococoa/src/main/kotlin/darwin/NSWindow.kt | wgpu4k | 773,068,055 | false | {"Kotlin": 1819399, "Java": 1651224, "C": 1136043, "TypeScript": 966071, "HTML": 87125, "WGSL": 68238, "JavaScript": 8101, "CSS": 5773, "Shell": 253} | package darwin
import com.sun.jna.Pointer
import org.rococoa.Foundation
import org.rococoa.ID
import org.rococoa.ObjCClass
import org.rococoa.Rococoa
import org.rococoa.cocoa.CGFloat
import org.rococoa.cocoa.foundation.*
/// <i>native declaration : :119</i>
abstract class NSWindow : NSResponder() {
/// enum values
... | 1 | Kotlin | 2 | 25 | a7f0d7ffcd720e6c1a5da511655434627baff91e | 54,767 | wgpu4k | MIT License |
analysis/analysis-api/testData/components/expressionTypeProvider/expressionType/nameReference/invokeCallOnObject2.kt | JetBrains | 3,432,266 | false | null | class Foo {
companion object {
operator fun invoke(i: Int): String {}
}
}
fun take() {
<expr>Foo</expr>(10)
} | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 130 | kotlin | Apache License 2.0 |
app/src/main/java/com/earth/angel/mine/ui/EditProfileActivity.kt | engineerrep | 643,933,914 | false | {"Java": 2291635, "Kotlin": 1651449} | package com.earth.angel.mine.ui
import android.Manifest
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.view.KeyEvent
import androidx.core.widget.doAfterTextChanged
import androidx.core.widget.doOnTextChanged
import andr... | 1 | null | 1 | 1 | 415e0417870b6ff2c84a9798d1f3f3a4e6921354 | 10,579 | EarthAngel | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.