path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/test/kotlin/com/intellij/aws/cloudformation/tests/ReferencesTest.kt | shalupov | 15,524,636 | false | null | package com.intellij.aws.cloudformation.tests
import com.intellij.testFramework.LightPlatformCodeInsightTestCase
import java.io.File
class ReferencesTest: LightPlatformCodeInsightTestCase() {
fun testRefRange() {
configureByFile("refRange.yaml")
TestUtil.checkContent(
File(testDataPath, "refRange.ya... | 41 | Kotlin | 28 | 143 | 22a7a3aaee8784afc49b752c55da518b702fc067 | 520 | idea-cloudformation | Apache License 2.0 |
core/src/main/kotlin/com/toasttab/expediter/types/ArrayDescriptor.kt | open-toast | 685,226,715 | false | null | /*
* Copyright (c) 2023 Toast Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 4 | null | 1 | 5 | e4145ffcd61177d5d0b09f092cb95ef4bf1a7f46 | 2,401 | expediter | Apache License 2.0 |
src/commonMain/kotlin/MainStage3d.kt | korlibs | 607,166,953 | false | null | import korlibs.time.*
import korlibs.korge.input.*
import korlibs.korge.scene.*
import korlibs.korge.tween.*
import korlibs.korge.ui.*
import korlibs.korge.view.*
import korlibs.korge3d.*
import korlibs.math.geom.*
class MainStage3d : Scene() {
lateinit var contentSceneContainer: SceneContainer
override suspe... | 7 | Kotlin | 3 | 3 | 8e4059e25f39623825312601706569ac817de336 | 3,500 | korge-k3d | MIT License |
app/src/main/kotlin/app/lawnchair/lawnicons/viewmodel/AcknowledgementViewModel.kt | LawnchairLauncher | 423,607,805 | false | null | package app.lawnchair.lawnicons.viewmodel
import android.text.SpannableString
import android.text.style.URLSpan
import android.text.util.Linkify
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.lifecycle.ViewM... | 42 | null | 459 | 999 | 4d99b9af5d9ff35db98d25aeb83191dfab45de74 | 2,015 | lawnicons | Apache License 2.0 |
sdk/src/main/java/com/qonversion/android/sdk/internal/extensions.kt | qonversion | 224,974,105 | false | null | package com.qonversion.android.sdk.internal
import android.app.Application
import android.content.Context
import android.content.pm.ApplicationInfo
import com.qonversion.android.sdk.dto.QEntitlement
import com.qonversion.android.sdk.internal.dto.QPermission
import org.json.JSONArray
import org.json.JSONObject
import r... | 6 | null | 21 | 122 | 619465b65dbf2612486ec3adad9b0a8750d76c7b | 2,920 | android-sdk | MIT License |
BaseExtend/src/main/java/com/chen/baseextend/view/NoHorizontalScrollerViewPager.kt | chen397254698 | 268,411,455 | false | null | package com.chen.baseextend.view
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.viewpager.widget.ViewPager
/**
* Created by zejian
* Time 16/1/7 上午11:12
* Email <EMAIL>
* Description:不可横向滑动的ViewPager
*/
class NoHorizontalScrollerViewPager : ViewP... | 1 | null | 14 | 47 | 85ffc5e307c6171767e14bbfaf992b8d62ec1cc6 | 834 | EasyAndroid | Apache License 2.0 |
powermanager-trigger/src/main/java/com/pyamsoft/powermanager/trigger/TriggerPresenter.kt | pyamsoft | 24,553,477 | false | null | /*
* Copyright 2017 Peter Kenji Yamanaka
*
* 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 a... | 0 | Kotlin | 0 | 1 | bfc57e557e56a0503daae89a964a0ab447695b16 | 3,143 | power-manager | Apache License 2.0 |
app/src/main/java/com/codepath/bestsellerlistapp/BestSellerBooksFragment.kt | mateamilloshi | 702,118,454 | false | {"Kotlin": 8597} | package com.codepath.bestsellerlistapp
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.ContentLoadingProgressBar
import androidx.fragment.app.Fragment
import androidx.recy... | 0 | Kotlin | 0 | 0 | 8c0b21e8f74bef1a95d99a2238ea8931da35f081 | 4,479 | FlexterApp2 | Apache License 2.0 |
app/src/main/java/com/masscode/animesuta/di/AppModule.kt | agustiyann | 299,888,684 | false | null | package com.masscode.animesuta.di
import com.masscode.animesuta.core.domain.usecase.AnimeInteractor
import com.masscode.animesuta.core.domain.usecase.AnimeUseCase
import com.masscode.animesuta.detail.DetailAnimeViewModel
import com.masscode.animesuta.home.HomeViewModel
import org.koin.android.viewmodel.dsl.viewModel
i... | 0 | Kotlin | 10 | 55 | 0a51677ddcd69eb9f8c2f9c8da62518c894d06ce | 556 | Android-Clean-Architecture | Apache License 2.0 |
app/src/main/java/com/jetpackcompose/playground/ui/common/components/SearchField.kt | StefanWyszynski | 765,607,090 | false | {"Kotlin": 48635} | package com.jetpackcompose.playground.common.presentation.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.compose.materi... | 0 | Kotlin | 0 | 0 | ca8f5ff7943a37b6c5c2f65213138548888fb109 | 1,564 | JetpackComposePlayground | MIT License |
app/src/main/kotlin/jp/co/yumemi/android/code_check/presentation/util/SnackbarSetting.kt | kokoichi206 | 572,676,235 | false | null | package jp.co.yumemi.android.code_check.presentation.util
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.Co... | 6 | Kotlin | 0 | 1 | eac5913bebdddaafccde199831598417481cdcd4 | 1,850 | android-engineer-codecheck | Apache License 2.0 |
s2-test/s2-test-bdd/src/main/kotlin/s2/bdd/exception/NoParserFoundException.kt | komune-io | 746,796,094 | false | {"Kotlin": 149768, "Makefile": 4275, "JavaScript": 1453, "Dockerfile": 963, "CSS": 102} | package s2.bdd.exception
import kotlin.reflect.KClass
class NoParserFoundException(
type: KClass<*>
): UnsupportedOperationException("No entry parser registered for type ${type.simpleName}")
| 1 | Kotlin | 0 | 0 | 9b65957be1785aec45efa80c78cc80ea244924ce | 197 | fixers-s2 | Apache License 2.0 |
api/src/main/kotlin/nebulosa/api/calibration/CalibrationFrameService.kt | tiagohm | 568,578,345 | false | {"Kotlin": 2372483, "TypeScript": 377934, "HTML": 198335, "SCSS": 10342, "Python": 2817, "JavaScript": 1165} | package nebulosa.api.calibration
import nebulosa.fits.*
import nebulosa.image.Image
import nebulosa.image.algorithms.transformation.correction.BiasSubtraction
import nebulosa.image.algorithms.transformation.correction.DarkSubtraction
import nebulosa.image.algorithms.transformation.correction.FlatCorrection
import nebu... | 2 | Kotlin | 1 | 2 | b44e250a575b375b01acfc84a7c4198b06ab97c5 | 8,321 | nebulosa | MIT License |
src/main/kotlin/br/com/alura/bytebank/modelo/Cliente.kt | giovannanascimento-hotmart | 465,475,377 | false | {"Kotlin": 39474} | package br.com.alura.bytebank.modelo
class Cliente (
val nome: String,
val cpf: String,
var endereco: Endereco = Endereco(),
protected val senha: Int): Autenticavel {
override fun autenticacao(senha: Int): Boolean {
if (this.senha == senha){
return true
}
retur... | 0 | Kotlin | 1 | 0 | 7e2845b52c28b3f4b89a1731263d476c47e6850f | 337 | bytebank | MIT License |
SafeDriveApp/app/src/main/java/com/example/safedrive/viewModels/FireBaseViewModel.kt | Android-development-group-13 | 771,413,371 | false | {"Kotlin": 12244} | package com.example.safedrive.viewModels
import android.util.Log
import androidx.lifecycle.ViewModel
import com.google.firebase.Firebase
import com.google.firebase.firestore.firestore
data class User(val email: String, val password: String, val fName: String, val lName: String)
class FireBaseViewModel : ViewModel(... | 1 | Kotlin | 0 | 0 | 1e7badbdb3c868bd8af7b1ff28d0d6fc7fec93ea | 659 | safedrive | MIT License |
core-geojson/src/main/java/com/github/teracy/odpt/core/geojson/response/LineString.kt | teracy | 193,032,147 | false | null | package com.github.teracy.odpt.core.geojson.response
import com.squareup.moshi.Json
/**
* GeoJSONのジオメトリ:"LineString"
*/
data class LineString(
/**
* 2つ以上の座標の配列(個々の座標メンバは、投影された座標では[東行, 北行]の順、地理座標では[経度, 緯度]の順)
*/
@field:Json(name = "coordinates")
val coordinates: List<List<Double>>
) : Geometry(... | 0 | Kotlin | 0 | 1 | 002554e4ca6e2f460207cfd1cb8265c2267f149d | 346 | odpt | Apache License 2.0 |
src/jsMain/kotlin/com/jakewharton/platformcollections/PlatformList.kt | JakeWharton | 591,003,112 | false | null | @file:Suppress("EXTENSION_SHADOWED_BY_MEMBER")
package com.jakewharton.platformcollections
public actual typealias PlatformList<E> = JsArray<E>
public actual inline fun <E> PlatformList<E>.add(item: E) {
push(item)
}
public actual fun <E> PlatformList<E>.add(index: Int, item: E) {
if (index < 0 || index > length)... | 4 | null | 2 | 83 | 3d9824a9c9f60a010fa5c5d8c62bf65084b2a234 | 1,881 | platform-collections | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/UsersSlash.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 4,908 | icons | MIT License |
build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt | jerryOkafor | 677,650,066 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2023 IheNkiri Project
*
* 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 ... | 14 | null | 2 | 9 | dd7d1b3350eb1066c78fb77b7a6bcfffd1c4d54b | 3,316 | IheNkiri | MIT License |
utils/test-utils/src/main/java/com/microsoft/device/dualscreen/testing/rules/PublishWindowInfoTrackerDecorator.kt | microsoft | 262,129,243 | 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 4 | Kotlin | 945 | 63 | 059a23684baff99de1293d1f54119b611a5765a3 | 1,269 | surface-duo-sdk | MIT License |
src/main/kotlin/me/serce/bazillion/libs.kt | SerCeMan | 164,261,128 | false | null | package me.serce.bazillion
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.fasterxml.jackson.module.kotlin.registerKotlinModule
import com.i... | 1 | null | 4 | 15 | 0b94a19589dfd2950f404bf3e804f86a842ca21a | 7,091 | bazillion | MIT License |
ground/src/main/java/com/google/android/ground/ui/home/SignOutConfirmationDialog.kt | google | 127,777,820 | false | {"Kotlin": 1403201} | /*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 224 | Kotlin | 116 | 245 | 502a3bcafa4d65ba62868036cf5287a4219aaf5c | 1,800 | ground-android | Apache License 2.0 |
wan/src/main/java/com/hzy/wan/viewmodel/BaseViewModel.kt | maxrco | 262,023,085 | false | null | package com.hzy.wan.viewmodel
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.viewModelScope
import com.aleyn.mvvm.base.IBaseResponse
import com.aleyn.mvvm.event.Message
import com.aleyn.mvvm.event.SingleLiveEvent
import com.aleyn.mvvm.network.Exception... | 1 | null | 1 | 1 | fbc4f6e1905165ec0348f2856a4dc04c1010bb8e | 4,674 | footballs | Apache License 2.0 |
source/sdk/src/main/java/com/stytch/sdk/common/dfp/ActivityProvider.kt | stytchauth | 314,556,359 | false | null | package com.stytch.sdk.common.dfp
import android.app.Activity
import android.app.Application
import android.os.Bundle
import java.lang.ref.WeakReference
internal class ActivityProvider(application: Application) : Application.ActivityLifecycleCallbacks {
private var _currentActivity = WeakReference<Activity>(null... | 2 | null | 2 | 23 | 50f005d2273a248eb9c10bfadfc0a3c97dfc1b59 | 1,618 | stytch-android | MIT License |
WebAPI/src/main/kotlin/dev/fstudio/mcworldstats/web/routers/DeathCounter.kt | Kamillaova | 463,396,605 | false | {"Kotlin": 78372} | package dev.fstudio.mcworldstats.web.routers
import dev.fstudio.mcworldstats.util.ConfigManager.config
import dev.fstudio.mcworldstats.web.plugins.json
import io.ktor.application.*
import io.ktor.html.*
import io.ktor.http.*
import io.ktor.response.*
import io.ktor.routing.*
import kotlinx.html.*
import kotlinx.serial... | 0 | Kotlin | 0 | 1 | a935ae2b1831949a347c954c70c3df6628d3dde5 | 2,075 | Ellison | MIT License |
reactivestate-core/src/commonMain/kotlin/com/ensody/reactivestate/FatalError.kt | ensody | 246,103,397 | false | {"Kotlin": 188198, "Shell": 3131, "Python": 1267, "Dockerfile": 252} | package com.ensody.reactivestate
public expect fun Throwable.isFatal(): Boolean
/** Throws this exception if it's fatal. Otherwise returns it. */
@Suppress("NOTHING_TO_INLINE")
public inline fun <T : Throwable> T.throwIfFatal(): T =
if (isFatal()) throw this else this
/** Similar to the stdlib [runCatching], but... | 3 | Kotlin | 2 | 38 | aee5e749799fc542d23c39cd6862a12e7b8831ae | 907 | ReactiveState-Kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/com/presta/customer/ui/components/payLoan/ui/PayLoanScreen.kt | morgan4080 | 678,697,424 | false | null | package com.presta.customer.ui.components.payLoan.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import com.pres... | 0 | Kotlin | 0 | 0 | d26cc0013c5bedf29d2f349b86e90052a0aca64e | 641 | kotlin-multiplatform | Apache License 2.0 |
app/src/main/java/com/wavesplatform/wallet/v2/ui/auth/import_account/ImportAccountFragmentPageAdapter.kt | inozemtsev-roman | 202,315,169 | false | null | /*
* Created by <NAME> on 1/4/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.ui.auth.import_account
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentStatePagerAdapter
import com.wavesplatf... | 1 | null | 1 | 2 | 9359a88dfe96f9fbc78360fd22c17fce252a88ae | 1,034 | PZU-android | MIT License |
src/main/kotlin/com/glinboy/telegram/bot/monitorspringboot/dto/LinkDataDTO.kt | GLinBoy | 537,545,489 | false | {"Kotlin": 21799} | package com.glinboy.telegram.bot.monitorspringboot.dto
data class LinkDataDTO(
val href: String?,
val templated: Boolean?
)
| 23 | Kotlin | 0 | 1 | 8a2ccecda7dff0ac111692fec9e4e2c524ceea6c | 133 | spring-boot-version-monitor-bot | MIT License |
compiler/testData/codegen/box/ranges/literal/progressionMinValueToMinValue.kt | arrow-kt | 109,678,056 | false | null | // TODO: muted automatically, investigate should it be ran for JS_IR or not
// IGNORE_BACKEND: JS_IR
// TODO: muted automatically, investigate should it be ran for JVM_IR or not
// IGNORE_BACKEND: JVM_IR
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
// WITH_RUN... | 12 | null | 1 | 43 | d2a24985b602e5f708e199aa58ece652a4b0ea48 | 2,863 | kotlin | Apache License 2.0 |
leakcanary-android-core/src/main/java/leakcanary/internal/activity/db/Db.kt | Pvredev | 254,723,305 | true | {"Kotlin": 837683, "Shell": 1407, "Java": 91} | package leakcanary.internal.activity.db
import android.database.sqlite.SQLiteDatabase
import android.view.View
import leakcanary.internal.InternalLeakCanary
import leakcanary.internal.activity.db.Db.OnDb
import leakcanary.internal.activity.db.Io.OnIo
internal object Db {
private val dbHelper = LeaksDbHelper(Intern... | 0 | Kotlin | 0 | 2 | fbcf730bb5c89d51cc925d1847f80ec15390fcbe | 1,140 | leakcanary | Apache License 2.0 |
src/main/kotlin/kotlinmud/action/contextBuilder/DoorInRoomContextBuilder.kt | brandonlamb | 275,313,206 | true | {"Kotlin": 435931, "Dockerfile": 133, "Shell": 126} | package kotlinmud.action.contextBuilder
import kotlinmud.action.model.Context
import kotlinmud.action.type.Status
import kotlinmud.helper.string.matches
import kotlinmud.io.type.Syntax
import kotlinmud.room.model.Exit
import kotlinmud.room.model.Room
class DoorInRoomContextBuilder(private val room: Room) : ContextBui... | 0 | null | 0 | 0 | fc03c6230b9b3b66cd63994e74ddd7897732d527 | 910 | kotlinmud | MIT License |
owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/oauth/params/ClientRegistrationParams.kt | jesmrec | 464,454,115 | true | {"INI": 2, "Gradle": 4, "Shell": 1, "EditorConfig": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 1, "XML": 11, "YAML": 2, "Text": 1, "Java": 46, "Kotlin": 74, "JSON": 2} | /* ownCloud Android Library is available under MIT license
*
* @author <NAME>
*
* Copyright (C) 2021 ownCloud GmbH.
*
* 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... | 0 | Java | 0 | 0 | fb7bfb23e0aeabdcdfaadc48ecbe7c6bca4889b4 | 2,462 | android-library | MIT License |
owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/oauth/params/ClientRegistrationParams.kt | jesmrec | 464,454,115 | true | {"INI": 2, "Gradle": 4, "Shell": 1, "EditorConfig": 1, "Markdown": 2, "Batchfile": 1, "Ignore List": 1, "XML": 11, "YAML": 2, "Text": 1, "Java": 46, "Kotlin": 74, "JSON": 2} | /* ownCloud Android Library is available under MIT license
*
* @author <NAME>
*
* Copyright (C) 2021 ownCloud GmbH.
*
* 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... | 0 | Java | 0 | 0 | fb7bfb23e0aeabdcdfaadc48ecbe7c6bca4889b4 | 2,462 | android-library | MIT License |
app/src/main/kotlin/com/cogzidel/calendar/services/SnoozeService.kt | selvakumar1994 | 140,288,445 | true | {"Kotlin": 418618} | package com.cogzidel.calendar.services
import android.app.IntentService
import android.content.Intent
import com.cogzidel.calendar.extensions.config
import com.cogzidel.calendar.extensions.dbHelper
import com.cogzidel.calendar.extensions.rescheduleReminder
import com.cogzidel.calendar.helpers.EVENT_ID
class SnoozeSer... | 0 | Kotlin | 0 | 0 | aba35398e6a97b9369f6ad857c3d661f515d398e | 571 | SimpleCalender | Apache License 2.0 |
app/src/main/java/com/dania/productfinder/di/ViewModelModule.kt | daniachan | 335,151,127 | false | null | package com.dania.productfinder.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import com.dania.productfinder.ui.search.SearchViewModel
import com.dania.productfinder.viewmodel.GithubViewModelFactory
@Supp... | 0 | Kotlin | 0 | 0 | a7cf8399e5c9e73b7ecadadc78b57b20dfae40c4 | 635 | ProductFinder | MIT License |
PayPal/src/main/java/com/braintreepayments/api/paypal/PayPalLauncher.kt | braintree | 21,631,528 | false | {"Kotlin": 1036089, "Java": 700403, "Shell": 282} | package com.braintreepayments.api.paypal
import android.content.Intent
import androidx.activity.ComponentActivity
import com.braintreepayments.api.BrowserSwitchClient
import com.braintreepayments.api.BrowserSwitchException
import com.braintreepayments.api.BrowserSwitchFinalResult
import com.braintreepayments.api.Brows... | 24 | Kotlin | 233 | 409 | 92dabb74f14e6203259511f6b6a51367e3247fc5 | 4,910 | braintree_android | MIT License |
data/RF03050/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03050"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
9 to 1... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,166 | Rfam-for-RNArtist | MIT License |
akari-core/src/main/java/io/github/takusan23/akaricore/v2/common/MediaMuxerTool.kt | takusan23 | 584,131,815 | false | {"Kotlin": 370704, "Java": 67808} | package io.github.takusan23.akaricore.v1.tool
import android.annotation.SuppressLint
import android.media.MediaCodec
import android.media.MediaExtractor
import android.media.MediaMuxer
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import java.io.File
imp... | 0 | Kotlin | 0 | 0 | f97cf00ac2eb71239e3a9a4b438634ec8d79d48f | 2,575 | AkariDroid | Apache License 2.0 |
radixdlt-kotlin/src/test/kotlin/com/radixdlt/client/application/translate/UniquePropertyTranslatorTest.kt | radixdlt | 144,838,647 | false | null | package com.radixdlt.client.application.translate
import com.radixdlt.client.core.atoms.AtomBuilder
import io.reactivex.observers.TestObserver
import org.junit.Test
import org.mockito.Mockito.mock
class UniquePropertyTranslatorTest {
@Test
fun nullPropertyTest() {
val translator = UniquePropertyTransl... | 1 | Kotlin | 1 | 5 | 37d86b43bd5e9e5c24c85a8f2d7865b51cd24a7b | 555 | radixdlt-kotlin | MIT License |
shared/src/commonMain/kotlin/com/example/moveeapp_compose_kmm/data/account/AccountServiceImpl.kt | adessoTurkey | 673,248,729 | false | {"Kotlin": 334470, "Swift": 3538, "Ruby": 101} | package com.example.moveeapp_compose_kmm.data.account
import com.example.moveeapp_compose_kmm.data.account.login.LoginRequestModel
import com.example.moveeapp_compose_kmm.data.account.login.LoginResponseModel
import com.example.moveeapp_compose_kmm.data.account.login.RequestTokenResponseModel
import com.example.moveea... | 9 | Kotlin | 3 | 78 | 2dbbd48654ee482258c37f0e51e52eb6af15ec3c | 2,334 | compose-multiplatform-sampleapp | Apache License 2.0 |
src/test/kotlin/io/fixture/controller/StaticControllerTest.kt | martinlau | 11,140,245 | false | null | /*
* #%L
* fixture
* %%
* Copyright (C) 2013 <NAME>
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 6 | Kotlin | 0 | 0 | a751ea312708bac231f01dbf66ed1859a79f684a | 1,494 | fixture | Apache License 2.0 |
libs/crypto/crypto-impl/src/test/kotlin/net/corda/crypto/impl/retrying/CryptoRetryingExecutorsTests.kt | corda | 346,070,752 | false | null | package net.corda.crypto.impl.retrying
import net.corda.crypto.core.CryptoRetryException
import net.corda.v5.crypto.exceptions.CryptoException
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.junit.jupiter.params.ParameterizedTest
... | 96 | null | 7 | 51 | 08c3e610a0e6ec20143c47d044e0516019ba6578 | 7,719 | corda-runtime-os | Apache License 2.0 |
core/src/main/kotlin/processes/CardProcessWorkers.kt | crowdproj | 543,982,440 | false | {"Kotlin": 595956, "JavaScript": 60372, "HTML": 21115, "Dockerfile": 361} | package com.gitlab.sszuev.flashcards.core.processes
import com.gitlab.sszuev.flashcards.CardContext
import com.gitlab.sszuev.flashcards.core.normalizers.normalize
import com.gitlab.sszuev.flashcards.corlib.ChainDSL
import com.gitlab.sszuev.flashcards.corlib.worker
import com.gitlab.sszuev.flashcards.model.common.AppSt... | 5 | Kotlin | 0 | 2 | 71acb1fdffe1d764f44d75c20df96f56629f4bdd | 6,429 | opentutor | Apache License 2.0 |
idea/src/main/kotlin/org/openpolicyagent/ideaplugin/ide/extensions/RegoModuleType.kt | open-policy-agent | 246,697,491 | false | {"Kotlin": 206314, "Open Policy Agent": 35784, "Shell": 12590, "Lex": 2811, "HTML": 108} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.openpolicyagent.ideaplugin.ide.extensions
import com.intellij.ide.util.projectWizard.ModuleWizardStep
import com.intellij.ide.util.projectWizard.WizardContext
import com.intellij.openapi.module.Modul... | 34 | Kotlin | 21 | 57 | f67f7a8c059889e6f2ef6be7f5cbbd0793023ecd | 1,458 | opa-idea-plugin | MIT License |
feature/settings/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/settings/view/implementation/ui/controller/SettingsViewStateController.kt | savvasdalkitsis | 485,908,521 | false | null | /*
Copyright 2022 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... | 70 | null | 26 | 358 | a1159f2236f66fe533f7ba785d47e4201e10424a | 3,520 | uhuruphotos-android | Apache License 2.0 |
analysis/analysis-test-framework/tests/org/jetbrains/kotlin/analysis/test/framework/services/KtTestProjectStructureProvider.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.analysis.test.framework.services
import com.intellij.openapi.project.Project
imp... | 180 | null | 5771 | 48,082 | 2742b94d9f4dbdb1064e65e05682cb2b0badf2fc | 2,703 | kotlin | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/prefs/DisplayThemeType.kt | AnthonyCAS | 200,759,833 | true | {"Kotlin": 159688, "Java": 912} | package org.jdc.template.prefs
enum class DisplayThemeType {
SYSTEM_DEFAULT,
LIGHT,
DARK;
}
| 0 | Kotlin | 0 | 0 | ce4a3a7ecab6452f18a6bc5298ebcc4f7377fd1c | 105 | android-template | Apache License 2.0 |
app/src/main/java/com/felixfavour/mobotithe/gui/view/onboarding/OnboardingWelcomeActivity.kt | felixfavour | 221,737,389 | false | null | package com.felixfavour.mobotithe.gui.view.onboarding
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.databinding... | 0 | Kotlin | 0 | 1 | 2678a1525f35e3d196c27d63cb9facce4d063e43 | 2,838 | Mobotithe | MIT License |
compiler/tests-spec/testData/diagnostics/linked/expressions/elvis-operator-expression/p-3/pos/1.1.fir.kt | JetBrains | 3,432,266 | false | null | // !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNREACHABLE_CODE -UNUSED_VARIABLE -ASSIGNED_BUT_NEVER_ACCESSED_VARIABLE -UNUSED_VALUE -UNUSED_PARAMETER -UNUSED_EXPRESSION
// SKIP_TXT
// TESTCASE NUMBER: 1
fun case1() {
val x = null ?: getNull()
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.Boolean?")!>x<!>
}
fun getNull... | 157 | null | 5563 | 44,965 | e6633d3d9214402fcf3585ae8c24213a4761cc8b | 823 | kotlin | Apache License 2.0 |
app/src/main/java/com/tanasi/streamflix/ui/PlayerSettingsView.kt | stantanasi | 511,319,545 | false | null | package com.tanasi.streamflix.ui
import android.content.Context
import android.content.res.ColorStateList
import android.content.res.Resources
import android.graphics.Color
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.constra... | 39 | null | 52 | 93 | c9255fe9ee2ef3ed8bfbeef567950f1a63a51752 | 59,110 | streamflix | Apache License 2.0 |
shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt | soniccat | 302,971,014 | false | null | package com.aglushkov.wordteacher.shared.features.definitions.vm
import dev.icerock.moko.resources.desc.Resource
import dev.icerock.moko.resources.desc.StringDesc
import com.aglushkov.wordteacher.shared.events.Event
import com.aglushkov.wordteacher.shared.features.cardsets.vm.CardSetViewItem
import com.aglushkov.wordt... | 0 | null | 1 | 3 | d853cd31e7a609777bffb6ceef18461cccf8222d | 16,003 | WordTeacher | MIT License |
shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/features/definitions/vm/DefinitionsVM.kt | soniccat | 302,971,014 | false | null | package com.aglushkov.wordteacher.shared.features.definitions.vm
import dev.icerock.moko.resources.desc.Resource
import dev.icerock.moko.resources.desc.StringDesc
import com.aglushkov.wordteacher.shared.events.Event
import com.aglushkov.wordteacher.shared.features.cardsets.vm.CardSetViewItem
import com.aglushkov.wordt... | 0 | null | 1 | 3 | d853cd31e7a609777bffb6ceef18461cccf8222d | 16,003 | WordTeacher | MIT License |
src/commonMain/kotlin/pw/binom/lua/StdOut.kt | caffeine-mgn | 432,464,938 | false | {"C": 836370, "Kotlin": 167159, "C++": 1216, "JavaScript": 194, "HTML": 84} | package pw.binom.lua
object StdOut {
internal var func: ((String) -> Unit)? = null
fun info(txt: String) {
func?.invoke(txt)
}
}
| 0 | C | 0 | 1 | 302f8855c6a2bf0cc2e3f015ca79475e811d8230 | 150 | klua | Apache License 2.0 |
src/main/kotlin/com/faendir/zachtronics/bot/discord/LinkConverter.kt | F43nd1r | 290,065,466 | false | null | /*
* Copyright (c) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 3 | null | 1 | 2 | 6ed66aa90151f585a20f8ce8e31aae7f4c1701e4 | 2,630 | zachtronics-leaderboard-bot | Apache License 2.0 |
src/main/kotlin/com/faendir/zachtronics/bot/discord/LinkConverter.kt | F43nd1r | 290,065,466 | false | null | /*
* Copyright (c) 2021
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | 3 | null | 1 | 2 | 6ed66aa90151f585a20f8ce8e31aae7f4c1701e4 | 2,630 | zachtronics-leaderboard-bot | Apache License 2.0 |
app/src/androidTest/java/com/miguelrr/capsshop/ExampleInstrumentedTest.kt | MiguelRom3ro | 776,249,721 | false | {"Kotlin": 70546} | package com.miguelrr.capsshop
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documenta... | 0 | Kotlin | 0 | 0 | 4474d1d07f629efe0cb3c45427d999ca972a7fbd | 669 | CapsShop | MIT License |
projects/unpaid-work-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/ContactTypeGenerator.kt | ministryofjustice | 500,855,647 | false | {"Kotlin": 4362222, "HTML": 70066, "D2": 44286, "Ruby": 25921, "Shell": 19356, "SCSS": 6370, "HCL": 2712, "Dockerfile": 2447, "JavaScript": 1372, "Python": 268} | package uk.gov.justice.digital.hmpps.data.generator
import uk.gov.justice.digital.hmpps.integrations.common.entity.contact.type.ContactType
import uk.gov.justice.digital.hmpps.integrations.common.entity.contact.type.ContactTypeCode
object ContactTypeGenerator {
val DEFAULT = generate()
fun generate(id: Long ... | 4 | Kotlin | 0 | 2 | 9f6663d820fb8123d915107edfa9abc5f82d3fb6 | 410 | hmpps-probation-integration-services | MIT License |
examples/getting-started-compose/composeApp/src/jvmMain/kotlin/Platform.jvm.kt | jeffdgr8 | 518,984,559 | false | null | package com.example
class JvmPlatform : Platform {
override val name: String = "JVM ${ System.getProperty("java.version")}"
}
actual fun getPlatform(): Platform = JvmPlatform() | 181 | null | 5748 | 67 | 339bea038018dff346cbfe0e4f8309c653b9f3b1 | 182 | kotbase | Apache License 2.0 |
src/main/kotlin/org/dripto/githubissuetracker/service/HelloService.kt | driptaroop | 260,482,930 | false | null | package org.dripto.githubissuetracker.service
import org.springframework.stereotype.Service
@Service
class HelloService {
fun doAddition(vararg i: Int) = i.fold(0) { a, b -> a + b }
fun subtraction(i: Int, j: Int) = i - j
}
| 1 | Kotlin | 0 | 1 | 8ccd5be84b5de68140dbd1e741698031e7bfc22c | 235 | github-issue-tracker | MIT License |
app/src/main/java/com/kcteam/features/reimbursement/api/reimbursementshopapi/ReimbursementShopApi.kt | DebashisINT | 558,234,039 | false | null | package com.chittchorefsm.features.reimbursement.api.reimbursementshopapi
import com.chittchorefsm.app.NetworkConstant
import com.chittchorefsm.features.reimbursement.model.reimbursement_shop.ReimbursementShopResponseModel
import io.reactivex.Observable
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava... | 0 | null | 1 | 1 | e6114824d91cba2e70623631db7cbd9b4d9690ed | 1,867 | NationalPlastic | Apache License 2.0 |
src/test/kotlin/no/nav/helper/AltinnProxyContainer.kt | navikt | 644,356,194 | false | {"Kotlin": 83975, "Dockerfile": 214} | package no.nav.fia.arbeidsgiver.helper
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock
import com.github.tomakehurst.wiremock.core.WireMockConfiguration
import org.apache.http.protocol.HTTP.CONTENT_TYPE
import org.testcontainers.Testcontainers
class Altinn... | 0 | Kotlin | 0 | 0 | 7cbc469c0fe892d304938a0011e5fd46e0aa9ff9 | 2,364 | fia-arbeidsgiver | MIT License |
octicons/src/commonMain/kotlin/compose/icons/octicons/CheckCircle24.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.com... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,643 | compose-icons | MIT License |
packages/expo-updates/android/src/main/java/expo/modules/updates/loader/LoaderTask.kt | betomoedano | 462,599,485 | false | null | package expo.modules.updates.loader
import android.content.Context
import android.os.AsyncTask
import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import expo.modules.updates.UpdatesConfiguration
import expo.modules.updates.UpdatesUtils
import expo.modules.updates.db.DatabaseHolder
import... | 668 | null | 5226 | 4 | 52d6405570a39a87149648d045d91098374f4423 | 17,844 | expo | MIT License |
kotlin/src/src/main/java/com/techlabcamp/neuronet/ui/frag/CertificateDetailsFrag.kt | dimske-sys | 610,048,630 | false | null | package com.techlabcamp.neuronet.ui.frag
import android.Manifest
import android.content.pm.PackageManager
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.... | 0 | Kotlin | 0 | 0 | 0f4cc0534a3c77a8edfb0fa043fb2ed7e2707250 | 12,772 | neuronet | Apache License 2.0 |
app/src/main/java/co/nimblehq/data/model/AuthData.kt | minhnimble | 295,922,281 | false | {"Kotlin": 251393, "Java": 6013, "XSLT": 1824, "Ruby": 753} | package co.nimblehq.data.model
import co.nimblehq.data.api.response.auth.OAuthResponse
data class AuthData(
val accessToken: String = "",
val createdAt: Long = 0,
val expiresIn: Long = 0,
val refreshToken: String = "",
val tokenType: String = ""
) {
val isValid: Boolean
get() = accessT... | 1 | Kotlin | 1 | 1 | 98266e2455f5f5c5f532830faab19402e56e71cc | 677 | internal-certification-surveys-android | MIT License |
pstatus-notifications-workflow-ktor/src/main/kotlin/cache/InMemoryCache.kt | CDCgov | 679,761,337 | false | {"Kotlin": 644056, "Python": 14605, "TypeScript": 7647, "Java": 4266, "JavaScript": 2382} | package gov.cdc.ocio.processingnotifications.cache
import gov.cdc.ocio.processingnotifications.model.*
import java.util.concurrent.locks.ReentrantReadWriteLock
import kotlin.collections.HashMap
/**
* This class represents InMemoryCache to maintain state of the data at any given point for
* subscription of rules and... | 8 | Kotlin | 0 | 2 | dc4faece607e12726e0bbc09159ca808e7909c13 | 4,008 | data-exchange-processing-status | Apache License 2.0 |
src/test/kotlin/fr/o80/aoc/day03/part1/Day03Part1UnitTest.kt | olivierperez | 310,899,127 | false | null | package fr.o80.aoc.day03.part1
import fr.o80.aoc.day03.Day03
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import java.util.stream.Stream
internal class Day03Part1Unit... | 0 | Kotlin | 1 | 2 | c92001b5d4651e67e17c20eb8ddc2ac62b14f2c2 | 987 | AdventOfCode-KotlinStarterKit | Apache License 2.0 |
protocol/src/commonMain/kotlin/com/sourceplusplus/protocol/artifact/trace/Trace.kt | kaizhiyu | 327,907,510 | true | {"Kotlin": 571623, "Java": 10932, "CSS": 8168, "JavaScript": 3693, "HTML": 2027} | package com.sourceplusplus.protocol.artifact.trace
import com.sourceplusplus.protocol.Serializers
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
/**
* todo: description.
*
* @since 0.1.0
* @author [Brandon Fergerson](mailto:bfergerson@apache.org)
*/
@Serializable
data class Trace(
... | 0 | null | 0 | 0 | f5f1549c1e0d5a65bf1745bbbef69702854e99ee | 668 | SourceMarker | Apache License 2.0 |
app/src/main/java/ar/com/play2play/model/Loading.kt | UTN-FRBA-Mobile | 365,641,042 | false | null | package ar.com.play2play.model
open class LoadingScreen(val isLoading: Boolean)
class VisibleLoadingScreen(val waitingText: String): LoadingScreen(isLoading = true)
object HiddenLoadingScreen: LoadingScreen(isLoading = false)
| 0 | Kotlin | 1 | 0 | 3212cb762824af2e12d3a7492ef66cc72326f3d0 | 229 | Play2Play | MIT License |
app/src/main/java/com/ls/localsky/ui/components/HourlyWeatherForecast.kt | TULocalSky | 747,823,407 | false | {"Kotlin": 90231} | package com.ls.localsky.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foun... | 9 | Kotlin | 0 | 0 | b993227f0f545bc45c8a9a73dc5f9cf91204dcfc | 2,816 | localsky | MIT License |
app/src/main/java/com/tompee/arctictern/main/MainActivity.kt | tompee26 | 405,841,505 | false | {"Kotlin": 140845, "Shell": 288} | package com.tompee.arctictern.main
import androidx.activity.ComponentActivity
class MainActivity : ComponentActivity()
| 0 | Kotlin | 0 | 1 | 5d9ae7abe4ba62a9936fac8406c164f2616adb92 | 121 | arctic-tern | MIT License |
src/main/kotlin/me/melijn/melijnbot/database/role/SelfRoleWrapper.kt | ToxicMushroom | 107,187,088 | false | null | package me.melijn.melijnbot.database.role
import com.fasterxml.jackson.module.kotlin.readValue
import me.melijn.melijnbot.database.HIGHER_CACHE
import me.melijn.melijnbot.database.NORMAL_CACHE
import me.melijn.melijnbot.objectMapper
import net.dv8tion.jda.api.utils.data.DataArray
class SelfRoleWrapper(private val sel... | 5 | null | 22 | 80 | 01107bbaad0e343d770b1e4124a5a9873b1bb5bd | 6,116 | Melijn | MIT License |
skiko/src/jvmMain/kotlin/org/jetbrains/skija/ImageFilter.kt | pa-dieter | 403,520,837 | true | {"Kotlin": 949848, "C++": 483039, "Objective-C++": 20299, "Dockerfile": 2368, "JavaScript": 1202, "Shell": 555} | @file:Suppress("NESTED_EXTERNAL_DECLARATION")
package org.jetbrains.skia
import org.jetbrains.skia.impl.Library.Companion.staticLoad
import org.jetbrains.skia.impl.RefCnt
import org.jetbrains.skia.impl.Native
import org.jetbrains.skia.impl.Stats
import org.jetbrains.skia.impl.reachabilityBarrier
import kotlin.jvm.JvmS... | 0 | null | 0 | 0 | c9dda21dea90abfa68db1fdf8932d8f12141c1f8 | 23,308 | skiko | Apache License 2.0 |
app/src/main/java/com/donfreddy/troona/domain/model/Album.kt | donfreddy | 736,820,576 | false | {"Kotlin": 215077} | /*
=============
Author: <NAME>
Github: https://github.com/donfreddy
Website: https://donfreddy.com
=============
Application: Troona - Music Player
Homepage: https://github.com/donfreddy/troona
License: https://github.com/donfreddy/troona/blob/main/LICENSE
Copyright: © 2023, <NAME>. All rights reserved.
=============
... | 0 | Kotlin | 0 | 0 | d91b051907a5f4b365e04fa6c959a07827c9fd54 | 1,097 | troona | MIT License |
buildSrc/src/main/kotlin/utils/PropertiesUtil.kt | ForteScarlet | 535,336,835 | false | null | package utils
import org.gradle.api.provider.Property
import java.time.Duration
import java.util.concurrent.TimeUnit
fun systemProperty(propKey: String, envKey: String = propKey): String? {
return System.getProperty(propKey, System.getenv(envKey))
}
infix fun <T> Property<T>.by(value: T) {
set(value)
}
infi... | 3 | null | 3 | 7 | c00c14897262a4dea87b6371695e83143d797911 | 1,236 | kotlin-suspend-transform-compiler-plugin | MIT License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/http/RequestUtil.kt | Waboodoo | 34,525,124 | false | {"Kotlin": 1970466, "HTML": 200869, "CSS": 2316, "Python": 1548} | package ch.rmy.android.http_shortcuts.http
import ch.rmy.android.http_shortcuts.exceptions.InvalidContentTypeException
import okhttp3.MediaType
import okhttp3.MediaType.Companion.toMediaType
import java.net.URLEncoder
object RequestUtil {
const val FORM_MULTIPART_BOUNDARY = "----53014704754052338"
const val ... | 31 | Kotlin | 87 | 999 | 34ec1652d431d581c3c275335eb4dbcf24ced9f5 | 1,035 | HTTP-Shortcuts | MIT License |
src/main/kotlin/org/arend/module/starter/ArendStarterInitialStep.kt | JetBrains | 96,068,447 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.starters.local.wizard
import com.intellij.ide.starters.JavaStartersBundle
import com.intellij.ide.starters.local.*
import com.intellij.ide.starters.share... | 54 | null | 4912 | 90 | 7a6608a2e44369e11c5baad3ef2928d6f9c971b2 | 9,639 | intellij-arend | Apache License 2.0 |
vector/src/main/java/im/vector/app/features/crypto/recover/BootstrapViewState.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2020 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... | 91 | Kotlin | 418 | 9 | a2c060c687b0aa69af681138c5788d6933d19860 | 1,692 | tchap-android | Apache License 2.0 |
src/backend/archive/biz-archive/src/main/kotlin/com/tencent/bkrepo/archive/listener/StorageCompressListener.kt | TencentBlueKing | 548,243,758 | false | {"Kotlin": 13657594, "Vue": 1261332, "JavaScript": 683823, "Shell": 124343, "Lua": 100415, "SCSS": 34137, "Python": 25877, "CSS": 17382, "HTML": 13052, "Dockerfile": 4483, "Smarty": 3661, "Java": 423} | package com.tencent.bkrepo.archive.listener
import com.tencent.bkrepo.archive.constant.DEFAULT_KEY
import com.tencent.bkrepo.archive.event.StorageFileCompressedEvent
import com.tencent.bkrepo.archive.event.StorageFileUncompressedEvent
import com.tencent.bkrepo.archive.metrics.ArchiveMetrics
import com.tencent.bkrepo.c... | 363 | Kotlin | 38 | 70 | 54b0c7ab20ddbd988387bac6c9143b594681e73c | 3,031 | bk-repo | MIT License |
sdk/src/main/kotlin/io/rover/sdk/ui/blocks/button/ButtonBlockViewModel.kt | RoverPlatform | 55,724,334 | false | null | package io.rover.sdk.ui.blocks.button
import io.rover.sdk.ui.blocks.concerns.background.BackgroundViewModelInterface
import io.rover.sdk.ui.blocks.concerns.border.BorderViewModelInterface
import io.rover.sdk.ui.layout.ViewType
import io.rover.sdk.ui.blocks.concerns.layout.BlockViewModelInterface
import io.rover.sdk.ui... | 16 | null | 13 | 6 | 1b6e627a1e4b3651d0cc9f6e78f995ed9e4a821a | 918 | rover-android | Apache License 2.0 |
sdk/src/main/kotlin/io/rover/sdk/ui/blocks/button/ButtonBlockViewModel.kt | RoverPlatform | 55,724,334 | false | null | package io.rover.sdk.ui.blocks.button
import io.rover.sdk.ui.blocks.concerns.background.BackgroundViewModelInterface
import io.rover.sdk.ui.blocks.concerns.border.BorderViewModelInterface
import io.rover.sdk.ui.layout.ViewType
import io.rover.sdk.ui.blocks.concerns.layout.BlockViewModelInterface
import io.rover.sdk.ui... | 16 | null | 13 | 6 | 1b6e627a1e4b3651d0cc9f6e78f995ed9e4a821a | 918 | rover-android | Apache License 2.0 |
app/src/main/java/com/skythrew/kattpad/api/Authentication.kt | Skythrew | 841,580,801 | false | {"Kotlin": 83254} | package com.skythrew.kattpad.api
import io.ktor.http.parameters
import io.ktor.http.setCookie
open class Authentication : com.skythrew.kattpad.api.config.Request() {
var loggedIn = false
suspend fun login(username: String, password: String) {
val loginResponse = this.simplePost("https://www.wattpad.c... | 2 | Kotlin | 0 | 3 | 5b4b40b7e36ba07c3aa225e71fe766784acf4f3d | 650 | kattpad | MIT License |
corbind-swiperefreshlayout/src/main/kotlin/ru/ldralighieri/corbind/swiperefreshlayout/SwipeRefreshLayoutRefreshes.kt | LDRAlighieri | 201,738,972 | false | null | /*
* Copyright 2019 Vladimir Raupov
*
* 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... | 8 | null | 24 | 501 | 603a988f18f981c56a42d0712ab04bbfc7b50535 | 3,917 | Corbind | Apache License 2.0 |
uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/expressions/KotlinUImplicitReturnExpression.kt | JetBrains | 278,369,660 | 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.uast.kotlin
import com.intellij.psi.PsiElement
import org.jetbrains.uast.UElement
impor... | 0 | Kotlin | 29 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 867 | intellij-kotlin | Apache License 2.0 |
client/android/webrtc/src/main/java/com/qifan/webrtc/extensions/rtc/AudioExt.kt | underwindfall | 264,275,893 | false | null | /**
* Copyright (C) 2020 by Qifan YANG (@underwindfall)
*
* 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... | 6 | Kotlin | 0 | 9 | 077bb037c7935845125c6cee48403dba65a81ac1 | 4,166 | webrtcsamples | Apache License 2.0 |
libraries/stdlib/native-wasm/src/kotlin/Exceptions.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin
public expect open class OutOfMemoryError : Error {
public constructor()
public constr... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 345 | kotlin | Apache License 2.0 |
kotlin-frontend/src/main/kotlin/org/jetbrains/kotlin/gradle/frontend/rollup/GenerateRollupConfigTask.kt | Kotlin | 74,062,359 | false | null | package org.jetbrains.kotlin.gradle.frontend.rollup
import groovy.json.*
import org.gradle.api.*
import org.gradle.api.tasks.*
import org.jetbrains.kotlin.gradle.frontend.util.*
import org.jetbrains.kotlin.gradle.frontend.webpack.GenerateWebPackConfigTask.Companion.handleFile
open class GenerateRollupConfigTask : Def... | 86 | null | 69 | 573 | 6c10cc4f46df9ea419db282e3d2bb32d392f139e | 1,845 | kotlin-frontend-plugin | Apache License 2.0 |
app/src/main/java/com/borabor/movieapp/presentation/adapter/PersonAdapter.kt | bbor98 | 510,432,451 | false | null | package com.borabor.movieapp.presentation.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.borabor... | 0 | null | 4 | 15 | 369393ac387ed6c1c30939831b60c78b51f6f56a | 1,589 | movieapp-mvvm-clean-architecture | MIT License |
src/main/kotlin/io/github/kryszak/gwatlin/clients/achievements/AchievementsClient.kt | Kryszak | 214,791,260 | false | {"Kotlin": 443350, "Shell": 665} | package io.github.kryszak.gwatlin.clients.achievements
import io.github.kryszak.gwatlin.api.achievement.model.Achievement
import io.github.kryszak.gwatlin.api.achievement.model.category.AchievementCategory
import io.github.kryszak.gwatlin.api.achievement.model.daily.DailyAchievementList
import io.github.kryszak.gwatli... | 2 | Kotlin | 1 | 6 | 8bbcac5c1b44620abfc2db626b6af89f1f4e650a | 1,724 | gwatlin | MIT License |
platform/platform-impl/src/com/intellij/ide/gdpr/ui/Styles.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.gdpr.ui
import com.intellij.ui.JBColor
import com.intellij.ui.scale.JBUIScale
import com.intellij.util.ui.StartupUiUtil
import java.awt.Color
import javax... | 214 | null | 4829 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 2,511 | intellij-community | Apache License 2.0 |
compiler/testData/diagnostics/tests/multiplatform/actualClassifierMustHasTheSameMembersAsNonFinalExpectClassifierChecker/memberScopeMismatch_oldLanguageVersion.kt | JetBrains | 3,432,266 | false | null | // MODULE: m1-common
// FILE: common.kt
expect open class Foo {
fun existingMethod()
val existingParam: Int
}
// MODULE: m2-jvm()()(m1-common)
// FILE: jvm.kt
actual open class Foo {
actual fun existingMethod() {}
actual val existingParam: Int = 904
protected fun injectedMethod() {} // accidenti... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 396 | kotlin | Apache License 2.0 |
data_content/src/main/java/com/cmj/wanandroid/data/content/ContentListAdapter.kt | mikechenmj | 590,477,705 | false | null | package com.cmj.wanandroid.content.home
import android.content.Context
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.paging.PagingDataAdapter
import androidx.recyclerv... | 0 | Kotlin | 0 | 0 | b6ba391b5925a5ebff3040575a813ce9e140cbd3 | 4,261 | WanAndroid | Apache License 2.0 |
app/ui/src/main/java/foo/bar/clean/ui/common/widget/MaxMinIndicator.kt | erdo | 371,918,666 | false | null | package foo.bar.clean.ui.common.widget
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import foo.bar.clean.ui.R
import foo.bar.... | 0 | Kotlin | 1 | 5 | 93b02cb8f02d9fd71cb17ec3b46f6fcd7e127c4c | 3,556 | clean-modules-sample | Apache License 2.0 |
src/jsMain/kotlin/id/walt/sdjwt/SimpleJWTCryptoProvider.kt | walt-id | 645,414,701 | false | null | package id.walt.sdjwt
import kotlinx.serialization.json.JsonObject
actual class SimpleJWTCryptoProvider : JWTCryptoProvider {
override fun sign(payload: JsonObject, keyID: String?): String {
TODO("Not yet implemented")
}
override fun verify(jwt: String): Boolean {
TODO("Not yet implemented")
}
} | 0 | Kotlin | 0 | 2 | 45d5eee9dcc413b609ee82bf88ff387ae719ee0d | 315 | waltid-sd-jwt | Apache License 2.0 |
ktor-samples/ktor-samples-async/src/org/jetbrains/ktor/samples/async/AsyncApplication.kt | hallefy | 94,839,121 | false | null | package org.jetbrains.ktor.samples.async
import kotlinx.coroutines.experimental.*
import kotlinx.html.*
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.features.*
import org.jetbrains.ktor.html.*
import org.jetbrains.ktor.logging.*
import org.jetbrains.ktor.pipeline.*
import org.jetbrains.ktor.routin... | 0 | null | 0 | 1 | b5dcbe5b740c2d25c7704104e01e0a01bf53d675 | 1,204 | ktor | Apache License 2.0 |
examples/app/delete/deleteAnApp/main.kt | GWT-M3O-TEST | 485,009,715 | false | null |
package examples.app.delete
import com.m3o.m3okotlin.M3O
import com.m3o.m3okotlin.services.app
suspend fun main() {
M3O.initialize(System.getenv("M3O_API_TOKEN"))
val req = AppDeleteRequest(Name = "helloworld",)
try {
val response = AppServ.delete(req)
println(response)
} catch (e: Exception)... | 1 | Kotlin | 1 | 0 | 54158b584ba47bd7323a484804dcd78c55ef7f69 | 346 | m3o-kotlin | Apache License 2.0 |
features/settings/src/main/java/ir/mehdiyari/krypt/setting/di/SettingsModule.kt | mehdiyari | 459,064,107 | false | {"Kotlin": 470699, "Java": 87170} | package ir.mehdiyari.krypt.setting.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import ir.mehdiyari.krypt.setting.data.repositories.SettingsRepository
import ir.mehdiyari.krypt.setting.data.repositories.SettingsRepositoryImpl
@Module
@Instal... | 17 | Kotlin | 1 | 3 | e25bd222787ed7312ca4f0f78974fdee5d3148e0 | 501 | krypt | Apache License 2.0 |
plugins/core/jetbrains-community/src/migration/software/aws/toolkits/jetbrains/core/credentials/profiles/ProfileWatcher.kt | aws | 91,485,909 | false | null | // Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package migration.software.aws.toolkits.jetbrains.core.credentials.profiles
import com.intellij.openapi.components.service
interface ProfileWatcher {
fun addListener(listener: () -> Unit)
fun for... | 519 | null | 220 | 757 | a81caf64a293b59056cef3f8a6f1c977be46937e | 421 | aws-toolkit-jetbrains | Apache License 2.0 |
internal-publish-plugins/maven-publish-plugin/src/main/kotlin/com/bselzer/gradle/internal/maven/publish/plugin/LocalProperty.kt | Woody230 | 638,902,833 | false | {"Kotlin": 80247} | package com.bselzer.gradle.internal.maven.publish.plugin
internal object LocalProperty {
const val SONATYPE_USERNAME = "sonatype.username"
const val SONATYPE_PASSWORD = "<PASSWORD>"
const val SIGNING_KEY_ID = "signing.keyId"
const val SIGNING_KEY = "signing.key"
const val SIGNING_PASSWORD = "<PASSW... | 0 | Kotlin | 0 | 0 | 420226a7409d19a056831908280aac27c613993d | 327 | GradleExtensions | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.