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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lite/examples/sound_classification/android/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/SoundClassifier.kt | thezwick | 345,521,429 | false | null | /*
* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 1 | null | 1 | 1 | bc3e2ff42e2a2ce2aff0aa10d7ec7f66911cd1ed | 14,528 | sawit_detector_demo | Apache License 2.0 |
common-view/src/main/java/ru/boronin/common/view/viewpager2/ViewPagerFragmentAdapter.kt | boronin-serge | 242,097,636 | false | null | package ru.boronin.cardtasker.common.presentation
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
class ViewPagerFragmentAdapter(
activity: FragmentActivity
) : FragmentStateAdapter(activity) {
private val items: Muta... | 1 | null | 1 | 2 | 07d177d9e9ded6fdf76e0f43ef4cd455ff0692fd | 608 | simpleweather | MIT License |
app/src/main/java/com/hzm/sharedpreference/PropertyListAdapter.kt | Rohaid-Bhatti | 707,578,011 | false | {"Kotlin": 53772} | package com.hzm.sharedpreference
import android.app.AlertDialog
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import androidx.recyclerview.widget.DiffUtil
im... | 0 | Kotlin | 0 | 0 | 7c2e48ecfd819c62e539e16a228661daea9de4ba | 7,124 | Property-Manager-App | MIT License |
modulecheck-parsing/wiring/src/main/kotlin/modulecheck/parsing/wiring/RealAndroidDataBindingNameProvider.kt | RBusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2022 Rick Busarow
* 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 ag... | 76 | null | 7 | 95 | 24e7c7667490630d30cf8b59cd504cd863cd1fba | 2,001 | ModuleCheck | Apache License 2.0 |
platform/workspaceModel/storage/src/com/intellij/workspaceModel/storage/impl/WorkspaceEntityStorageImpl.kt | JetBrains | 2,489,216 | 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.workspaceModel.storage.impl
import com.intellij.openapi.diagnostic.debug
import com.intellij.openapi.diagnostic.logger
import com.intellij.openapi.diagnostic... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 28,593 | intellij-community | Apache License 2.0 |
cards-dto/src/main/kotlin/org/tsdes/cards/dto/Rarity.kt | BM0B0T | 399,238,117 | false | null | package org.tsdes.cards.dto
enum class Rarity {
BRONZE, SILVER, GOLD, PINK_DIAMOND
}
| 0 | Kotlin | 0 | 1 | 55822f3a340d67d1dd3df535f9f64554cc06aac9 | 90 | PG6100-Tasks | Apache License 2.0 |
todoapp/app/src/mock/java/com/example/android/architecture/blueprints/todoapp/data/FakeTasksRemoteDataSource.kt | SerjSmor | 70,144,663 | true | null | /*
* Copyright 2016, 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 applic... | 0 | Kotlin | 1 | 21 | e63f7aa426cb9460429fd046331df552bbc3839a | 3,301 | android-architecture | Apache License 2.0 |
clients/graphql-kotlin-client-gson/src/main/kotlin/com/expediagroup/graphql/client/gson/OptionalInput.kt | Wernerson | 377,828,460 | true | {"Kotlin": 1589698, "Mustache": 7027, "JavaScript": 3942, "HTML": 2744, "CSS": 297} | package com.expediagroup.graphql.client.gson
import com.google.gson.TypeAdapter
import com.google.gson.annotations.JsonAdapter
import com.google.gson.stream.JsonReader
import com.google.gson.stream.JsonWriter
@JsonAdapter(OptionalInputTypeAdapter::class)
sealed class OptionalInput<out T> {
object Undefined : Opt... | 0 | Kotlin | 0 | 0 | 8721e08773e34bc823775b13d689c3e4e391a0ce | 843 | graphql-kotlin | Apache License 2.0 |
src/main/kotlin/com/alcosi/nft/apigateway/service/multiWallet/HttpServiceMultiWalletProvider.kt | alcosi | 713,491,219 | false | {"Kotlin": 335209, "Java": 39800, "HTML": 4727, "PLpgSQL": 1275, "JavaScript": 1127, "CSS": 824} | /*
* Copyright (c) 2023 Alcosi Group Ltd. and affiliates.
*
* 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 ap... | 0 | Kotlin | 0 | 0 | ffa0409d568c8e4e05ee6aa1c3b83fd2c10954ca | 2,149 | alcosi_blockchain_api_gateway | Apache License 2.0 |
core/src/main/java/com/midnight/core/domain/ProductionCountriesModelCore.kt | alireza-87 | 455,999,190 | false | null | package com.midnight.core.domain
data class ProductionCountriesModelCore (
val iso31661 : String,
val name : String?,
) | 0 | Kotlin | 0 | 1 | 61ca0bd902e9e7b1f03c35e9dd8bc60fb95891e4 | 132 | movies_browser | MIT License |
TenextllSDKDemo/app/src/main/java/com/tenext/demo/adapter/ListHolder.kt | wenext-ops | 250,197,017 | false | null | package com.tenext.demo.adapter
import android.content.Context
import android.view.ViewGroup
import com.tenext.demo.holder.BaseHolder
abstract class ListHolder<T : Any> : BaseHolder<T> {
constructor(context: Context, root: ViewGroup, resLayout: Int) : super(context, root, resLayout)
} | 0 | Kotlin | 1 | 0 | 4266bd268686ab0bf6799ac0168967281fdc2051 | 291 | LLForAndroid | MIT License |
ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/SpacingBetweenDeclarationsWithCommentsRule.kt | pinterest | 64,293,719 | false | null | package com.pinterest.ktlint.ruleset.standard.rules
import com.pinterest.ktlint.rule.engine.core.api.AutocorrectDecision
import com.pinterest.ktlint.rule.engine.core.api.ElementType.FILE
import com.pinterest.ktlint.rule.engine.core.api.ElementType.WHITE_SPACE
import com.pinterest.ktlint.rule.engine.core.api.RuleId
imp... | 83 | null | 509 | 6,205 | 80c4d5d822d47bb7077a874ebb9105097f2eb1c2 | 2,920 | ktlint | MIT License |
src/rider/main/kotlin/previewer/AvaloniaPreviewerSession.kt | Keroosha | 242,771,985 | true | {"Kotlin": 39372, "C#": 2222} | package me.fornever.avaloniarider.previewer
import com.jetbrains.rd.util.*
import com.jetbrains.rd.util.lifetime.Lifetime
import com.jetbrains.rd.util.reactive.ISource
import com.jetbrains.rd.util.reactive.Signal
import kotlinx.coroutines.*
import me.fornever.avaloniarider.bson.BsonStreamReader
import me.fornever.aval... | 0 | null | 0 | 0 | df39cdfff39b02e2dba23e6da44a41309cd6eee4 | 4,410 | AvaloniaRider | MIT License |
src/main/kotlin/com/github/pemistahl/lingua/api/Language.kt | pemistahl | 157,676,060 | false | null | /*
* Copyright © 2018-today Peter M. Stahl pemistahl@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 6 | null | 63 | 703 | 6f990b7bded90d754696c4858452ab3cb9fe9ce8 | 17,429 | lingua | Apache License 2.0 |
libs/shape/src/main/kotlin/mono/shape/connector/LineConnector.kt | tuanchauict | 325,686,408 | false | null | /*
* Copyright (c) 2023, tuanchauict
*/
package mono.shape.connector
import mono.graphics.geo.Point
import mono.graphics.geo.PointF
import mono.shape.collection.Identifier
import mono.shape.shape.Line
/**
* A connector for [Line].
*
* @param line The target of this connector
* @param anchor The extra informati... | 11 | Kotlin | 1 | 129 | 624b287a2f13bf66fa98d81ae8c4b55d0f6c188b | 1,142 | MonoSketch | Apache License 2.0 |
app/src/main/java/com/sakethh/linkora/ui/screens/settings/specific/advanced/site_specific_user_agent/SiteSpecificUserAgentScreenVM.kt | sakethpathike | 648,784,316 | false | {"Kotlin": 1590874} | package com.sakethh.linkora.ui.screens.settings.specific.advanced.site_specific_user_agent
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.sakethh.linkora.data.local.SiteSpecificUserAgent
import com.sakethh.linkora.data.local.links.LinksRepo
import com.sakethh.linkora.data.local... | 9 | Kotlin | 11 | 307 | ebbd4669a8e762587267560f60d0ec3339e9e75f | 3,118 | Linkora | MIT License |
android/src/main/kotlin/com/difrancescogianmarco/arcore_flutter_plugin/ArCoreAugmentedImagesView.kt | giandifra | 183,178,383 | false | null | package com.difrancescogianmarco.arcore_flutter_plugin
import android.app.Activity
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import android.util.Pair
import com.difrancescogianmarco.arcore_flutter_plugin.flutter_models.FlutterArCoreNode
... | 138 | null | 263 | 418 | 49e716172807e288a98e02fa7a8c567b57e58b45 | 16,022 | arcore_flutter_plugin | MIT License |
eux-nav-rinasak-webapp/src/main/kotlin/no/nav/eux/rinasak/webapp/RinasakerMapper.kt | navikt | 663,010,258 | false | {"Kotlin": 34464, "HTML": 2030, "Makefile": 122, "Dockerfile": 88} | package no.nav.eux.rinasak.webapp
import no.nav.eux.rinasak.model.dto.NavRinasakCreateRequest
import no.nav.eux.rinasak.model.dto.NavRinasakFinnRequest
import no.nav.eux.rinasak.model.dto.NavRinasakFinnResponse
import no.nav.eux.rinasak.model.dto.NavRinasakPatch
import no.nav.eux.rinasak.model.entity.Dokument
import n... | 2 | Kotlin | 0 | 0 | faa09c76870ddf1068b73ba6d16905b4796811ea | 4,135 | eux-nav-rinasak | MIT License |
plugin/src/main/kotlin/org/neotech/plugin/rootcoverage/JaCoCoConfiguration.kt | NeoTech-Software | 152,748,748 | false | null | package org.neotech.plugin.rootcoverage
import org.gradle.api.Project
import org.gradle.api.file.FileTree
import org.neotech.plugin.rootcoverage.utilities.fileTree
internal fun RootCoveragePluginExtension.getFileFilterPatterns(): List<String> = listOf(
"**/AutoValue_*.*", // Filter to remove generated files from:... | 5 | null | 23 | 68 | 4ce3c6cfc64013e78dc2f8266425307844eef7a2 | 3,307 | Android-Root-Coverage-Plugin | Apache License 2.0 |
krossbow-websocket-core/src/commonMain/kotlin/org/hildan/krossbow/websocket/WebSocketConnection.kt | joffrey-bion | 190,066,229 | false | null | package org.hildan.krossbow.websocket
import kotlinx.coroutines.flow.*
import kotlinx.io.bytestring.*
/**
* Represents a web socket connection to another endpoint.
*
* Implementations must be safe to call concurrently.
*/
interface WebSocketConnection {
/**
* The URL that was used to connect this web so... | 15 | null | 15 | 199 | 4cc809eaf64331536677757fe4bf5d6fc34f6716 | 4,591 | krossbow | MIT License |
app/src/main/java/at/jku/enternot/service/CameraMovementServiceImpl.kt | Shynixn | 135,711,058 | false | {"Kotlin": 78788} | package at.jku.enternot.service
import android.app.Application
import android.arch.lifecycle.MutableLiveData
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.util.Log
import... | 0 | Kotlin | 0 | 1 | f1046f21bb0c66e9a5d1e4e78a67a035e725ac6a | 8,487 | enternot-app | MIT License |
domain/src/main/kotlin/no/nav/su/se/bakover/domain/vedtak/VedtakIverksattSøknadsbehandling.kt | navikt | 227,366,088 | false | {"Kotlin": 9487258, "Shell": 4372, "TSQL": 1233, "Dockerfile": 800} | package no.nav.su.se.bakover.domain.vedtak
import no.nav.su.se.bakover.domain.søknadsbehandling.IverksattSøknadsbehandling
/**
* Grupperer avslag og innvilgelser.
*/
sealed interface VedtakIverksattSøknadsbehandling : Stønadsvedtak {
override val behandling: IverksattSøknadsbehandling
}
| 6 | Kotlin | 1 | 1 | 357eaae76b66b996661ceccb594a9bb7b206e2d6 | 296 | su-se-bakover | MIT License |
kotlin-sdk/kotlin/src/main/kotlin/io/logto/sdk/core/constant/QueryKey.kt | logto-io | 397,657,445 | false | null | package io.logto.sdk.core.constant
object QueryKey {
const val CLIENT_ID = "client_id"
const val CODE = "code"
const val CODE_CHALLENGE = "code_challenge"
const val CODE_CHALLENGE_METHOD = "code_challenge_method"
const val CODE_VERIFIER = "code_verifier"
const val ERROR = "error"
const val ... | 1 | null | 6 | 7 | f8e94f533d2e60b029bca455fdcb1c050ce0a68d | 986 | kotlin | MIT License |
app/src/main/java/com/example/peanutbook/fakeappka/ui/MainController.kt | JosefHruska | 118,558,284 | false | null | package com.example.peanutbook.fakeappka.ui
import com.example.peanutbook.fakeappka.ui.base.BaseController
/**
* Controller for [MainActivity]
*
* @author <NAME> (<EMAIL>)
*/
interface MainController: BaseController {
} | 1 | null | 1 | 1 | fd8a8791eeac603b297c76636ba44172313668f1 | 227 | FakeHacksHackhatonApp | MIT License |
app/src/main/java/com/amitranofinzi/vimata/data/model/TestSet.kt | Ggino11 | 788,949,158 | false | {"Kotlin": 368820} | package com.amitranofinzi.vimata.data.model
import androidx.annotation.NonNull
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
/**
* Represents a set of tests created by a trainer for an athlete.
* This is a Room entity annotated for database table creation.
* The `test... | 0 | Kotlin | 0 | 0 | b52fbb6a00375a55ff1df74b71ae0531702dd5fc | 1,462 | ProgettoAmitranoFinzi-progMob | MIT License |
sample-compose-fragments/src/main/java/uk/gov/hmrc/sample_compose_fragments/navigator/Navigator.kt | hmrc | 299,591,950 | false | {"Kotlin": 510085, "Ruby": 10066, "Shell": 1395} | /*
* Copyright 2023 HM Revenue & Customs
*
* 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... | 4 | Kotlin | 3 | 7 | fbbc75c9cf5a6b5fc1f9cb021eb780d5a2bea937 | 1,478 | android-components | Apache License 2.0 |
src/test/kotlin/org/kotlinbitcointools/ur/BytewordsTest.kt | kotlin-bitcoin-tools | 662,277,344 | false | {"Kotlin": 78108, "Java": 10358, "Just": 254} | package org.kotlinbitcointools.ur
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertFailsWith
import kotlin.test.assertTrue
// Taken from URKit's BytewordsTests.swift
// https://github.com/BlockchainCommons/URKit/blob/master/Tests/URKitTests/BytewordsTests.swift
class BytewordsTest {
... | 0 | Kotlin | 0 | 0 | 90e0d5d3ccefd4c4fe0854a583f3bbf1f3b7145b | 4,346 | ur | Apache License 2.0 |
app/src/main/java/com/nandra/myschool/adapter/ChatDetailListAdapter.kt | nandrasaputra | 235,056,472 | false | null | package com.nandra.myschool.adapter
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.ale.infra.manager.IMMessage
import com.nandra.myschool.adapter.viewholder.ChatDetailReceivedMessageV... | 0 | Kotlin | 0 | 7 | ba2970f561b85866742290a8f77c854f7e7ef515 | 2,123 | MySchool | Apache License 2.0 |
src/app/src/main/kotlin/org/imperial/mrc/hint/logging/LogMetadata.kt | mrc-ide | 186,620,695 | false | {"Markdown": 9, "Dockerfile": 2, "Ignore List": 3, "YAML": 13, "Gradle": 6, "Shell": 19, "Batchfile": 1, "INI": 11, "Java": 23, "HTML": 3, "Text": 6, "Kotlin": 184, "Java Properties": 1, "XML": 4, "JSON": 6, "JavaScript": 6, "JSON with Comments": 2, "FreeMarker": 3, "Fluent": 2, "Vue": 81, "SCSS": 11} | package org.imperial.mrc.hint.logging
import org.imperial.mrc.hint.ConfiguredAppProperties
import org.imperial.mrc.hint.models.ErrorDetail
import org.springframework.http.HttpStatus
import javax.servlet.http.HttpServletRequest
data class Client(
val agent: String? = null,
val geoIp: String? = null,
... | 21 | TypeScript | 2 | 1 | f46238ae819de61e3cc483e8812c6039ccd9a6a4 | 1,444 | hint | MIT License |
src/main/kotlin/org/wagham/db/utils/Aliases.kt | kaironbot | 540,862,397 | false | {"Kotlin": 216574} | package org.wagham.db.utils
typealias PlayerId = String
typealias ItemId = String
typealias CharacterId = String
typealias BinaryData = String | 1 | Kotlin | 0 | 0 | f4fa864299990de40c764742523fba22ad885464 | 146 | kabot-db-connector | MIT License |
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/tasks/KotlinCompileCommon.kt | JakeWharton | 99,388,807 | false | null | /*
* 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... | 4 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,552 | kotlin | Apache License 2.0 |
src/main/kotlin/dev/shtanko/algorithms/leetcode/FourKeysKeyboard.kt | ashtanko | 203,993,092 | false | null | /*
* Copyright 2020 <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 w... | 4 | null | 0 | 19 | 325f2bb712514d1f7993ff7fa6d81ee45d2e6322 | 1,703 | kotlab | Apache License 2.0 |
src/frontendMain/kotlin/me/frost/huebert/components/LightTable.kt | Frostmaid | 448,289,261 | false | null | package me.frost.huebert.components
import io.kvision.core.Container
import io.kvision.tabulator.ColumnDefinition
import io.kvision.tabulator.Layout
import io.kvision.tabulator.TabulatorOptions
import io.kvision.tabulator.tabulator
import me.frost.huebert.Light
fun Container.lightTable(state: List<Light>) {
tab... | 0 | Kotlin | 0 | 0 | 38c246960fccf7a766d2e075f7192304937da6df | 738 | HueWeb | MIT License |
ethers-providers/src/main/kotlin/io/ethers/providers/middleware/EthApi.kt | Kr1ptal | 712,963,462 | false | null | package io.ethers.providers.middleware
import io.ethers.core.types.AccountOverride
import io.ethers.core.types.Address
import io.ethers.core.types.BlockId
import io.ethers.core.types.BlockOverride
import io.ethers.core.types.BlockWithHashes
import io.ethers.core.types.BlockWithTransactions
import io.ethers.core.types.... | 13 | null | 1 | 9 | 85f3824fde9caaeeee91986ca177d005f7a225bb | 15,184 | ethers-kt | Apache License 2.0 |
app/src/main/java/com/william/easykt/widget/ClockView.kt | WeiLianYang | 255,907,870 | false | {"Kotlin": 714308, "Java": 30421} | /*
* Copyright WeiLianYang
*
* 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 wr... | 0 | Kotlin | 6 | 21 | 6e33d7c32945a261117a7de8f2a388a5187637c5 | 6,450 | EasyKotlin | Apache License 2.0 |
app/src/main/java/com/baruckis/kriptofolio/binding/BindingAdapters.kt | baruckis | 121,292,770 | false | null | /*
* Copyright (C) 2018 <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 ... | 6 | null | 9 | 80 | 4f727edbe3cc13d832b183d95834696a13c2b552 | 952 | Kriptofolio | Apache License 2.0 |
src/main/kotlin/com/moqi/kotlin/ch02/2.3.2_2_GetWarmth.kt | HiAwesome | 317,410,821 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Java": 7, "Java Properties": 1, "Kotlin": 104} | package com.moqi.kotlin.ch02
/**
* 使用 When 处理枚举类型
*
* @author moqi On 12/2/20 16:00
*/
enum class Color4 {
RED, ORANGE, YELLOW, GREEN, BLUE, INDIGO, VIOLET
}
fun getWarmth(color: Color4) = when(color) {
Color4.RED, Color4.ORANGE, Color4.YELLOW -> "warm"
Color4.GREEN -> "neutral"
Color4.BLUE, Color... | 0 | Kotlin | 0 | 0 | 2228e08f304f06020917b7bea98f32b83ec22f69 | 442 | kotlin-demo | Apache License 2.0 |
android/src/main/java/com/komoju/android/sdk/ui/screens/webview/WebChromeClient.kt | degica | 851,401,843 | false | {"Kotlin": 266785, "JavaScript": 1844} | package com.komoju.android.sdk.ui.screens.webview
import android.webkit.ConsoleMessage
import com.kevinnzou.web.AccompanistWebChromeClient
internal class WebChromeClient : AccompanistWebChromeClient() {
override fun onConsoleMessage(consoleMessage: ConsoleMessage): Boolean = true
}
| 0 | Kotlin | 0 | 4 | 28e708a0a4c253537509001ef5823172c5a02a55 | 289 | komoju-mobile-sdk | MIT License |
src/main/kotlin/com/chattriggers/ctjs/api/inventory/action/Action.kt | ChatTriggers | 635,543,231 | false | {"Kotlin": 680597, "JavaScript": 62357, "Java": 58141} | package com.chattriggers.ctjs.api.inventory.action
import com.chattriggers.ctjs.api.client.Client
import com.chattriggers.ctjs.api.client.Player
import com.chattriggers.ctjs.api.inventory.Inventory
import net.minecraft.screen.slot.SlotActionType
abstract class Action(var slot: Int, var windowId: Int) {
fun setSlo... | 5 | Kotlin | 8 | 21 | 3921da9991ac09b872db63a1f4fd5e5cc928c032 | 1,717 | ctjs | MIT License |
src/main/kotlin/frc/team449/robot2024/auto/routines/World3.kt | blair-robot-project | 736,410,238 | false | {"Kotlin": 313771} | package frc.team449.robot2024.auto.routines
import edu.wpi.first.wpilibj2.command.InstantCommand
import edu.wpi.first.wpilibj2.command.WaitCommand
import frc.team449.control.auto.ChoreoRoutine
import frc.team449.control.auto.ChoreoRoutineStructure
import frc.team449.control.auto.ChoreoTrajectory
import frc.team449.rob... | 0 | Kotlin | 1 | 6 | 3433d9c7da844b98aad062bd3e9215156658e2c5 | 1,446 | robot2024 | MIT License |
core/src/test/java/com/kevinmost/koolbelt/util/AddOnlyMapTest.kt | kevinmost | 57,383,899 | false | null | package com.kevinmost.kotlin_toolbelt.util
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
class AddOnlyMapTest {
@Test fun `test plus-equals pair`() {
var map = addOnlyMapOf("Foo" to 1)
assertEquals(1, map.size)
assertEquals(1, map["Foo"])
assertEquals... | 0 | null | 2 | 3 | 2a35ac39f57810f7fbc044e780b9a838562e4554 | 1,702 | koolbelt | Apache License 2.0 |
app/src/androidTest/java/com/cheise_proj/translator_ui_challenge/AddLanguageActivityTest.kt | alvinmarshall | 253,371,012 | false | {"Kotlin": 47011} | package com.cheise_proj.translator_ui_challenge
import android.view.View
import android.view.ViewGroup
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.... | 0 | Kotlin | 0 | 0 | 83e205191c22aff1162c8a470e28dc1587ef5537 | 3,133 | Translator-UI-Challenge | MIT License |
src/main/kotlin/org/flowutils/MathUtils.kt | zzorn | 34,295,078 | false | null | package org.flowutils
/**
*
*/
/**
* Tau is 2 Pi, see http://www.tauday.com
*/
public val Tau: Double = Math.PI * 2
/**
* Floating point version of Tau.
*/
public val TauF: Float = Tau.toFloat()
/**
* Interpolate between the start and end values (and beyond).
* @param t 0 corresponds to start, 1 to end.
... | 0 | Kotlin | 0 | 0 | 1c729a7f323172402c783d08502984cf54c196bf | 688 | flowutils-kotlin | Apache License 2.0 |
opendc-experiments/opendc-experiments-greenifier/src/main/kotlin/org/opendc/experiments/greenifier/topology/ClusterSpecReader.kt | atlarge-research | 79,902,234 | false | null | /*
* Copyright (c) 2021 AtLarge Research
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 9 | null | 41 | 64 | 616017ba78a0882fe38b9b171b2b0f68e593cd8d | 4,255 | opendc | MIT License |
notification-infrastructure/src/main/kotlin/io/github/v1servicenotification/domain/notification/presentation/QueueController.kt | team-xquare | 443,712,278 | false | null | package io.github.v1servicenotification.domain.notification.presentation
import io.github.v1servicenotification.detail.api.NotificationDetailApi
import io.github.v1servicenotification.domain.notification.presentation.dto.Group
import io.github.v1servicenotification.domain.notification.presentation.dto.Personal
import ... | 2 | Kotlin | 0 | 8 | d887a015adc21416dcd7d51e6676fbe318795381 | 1,263 | v1-service-notification | MIT License |
app/src/main/java/com/parsanatech/crazycoder/Adapters/contestInfoAdapter.kt | Yash-Parsana | 605,085,323 | false | {"Kotlin": 230490} | package com.parsanatech.crazycoder.Adapters
import android.content.Context
import android.content.Intent
import android.provider.CalendarContract
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextV... | 5 | Kotlin | 34 | 25 | 18a30228d43c6fd8e6841008ca4c98913e530337 | 2,275 | CrazyCoderApp | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/cloudfront/ResponseHeadersStrictTransportSecurity.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 140726596} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.cloudfront
import io.cloudshiftdev.awscdk.Duration
import io.cloudshiftdev.awscdk.common.CdkDslMarker... | 1 | Kotlin | 0 | 4 | a18731816a3ec710bc89fb8767d2ab71cec558a6 | 9,108 | kotlin-cdk-wrapper | Apache License 2.0 |
utils/epic-games-notifier/src/main/kotlin/dev/schlaubi/epic_games_notifier/GameRenderer.kt | DRSchlaubi | 409,332,765 | false | null | package dev.schlaubi.epic_games_notifier
import dev.kord.common.DiscordTimestampStyle
import dev.kord.common.toMessageFormat
import dev.kord.rest.builder.message.EmbedBuilder
import dev.schlaubi.mikbot.plugin.api.util.embed
import io.ktor.http.*
fun Game.toEmbed(): EmbedBuilder = embed {
title = this@toEmbed.titl... | 23 | Kotlin | 11 | 31 | ada5a2d41fa4f9aa4f6b387eaee5ba200d7e6e11 | 1,240 | mikbot | MIT License |
app/src/main/java/gmikhail/notes/viewmodel/EditViewModel.kt | gmikhail | 607,787,948 | false | null | package gmikhail.notes.viewmodel
import androidx.lifecycle.*
private const val MAX_UNDO = 1024
internal const val NEW_NOTE_ID = -1
class EditViewModel(
private var _noteId: Int
) : ViewModel() {
val noteId: Int
get() = _noteId
private val history = mutableListOf<HistoryRecord>()
private var i... | 0 | Kotlin | 0 | 2 | e21038cce8dc8800346d8597d604345303962875 | 2,277 | android-notes | MIT License |
2022/kotlin2022/src/test/kotlin/T13-Coroutine_Cancelation.kt | kyoya-p | 253,926,918 | false | null | import kotlinx.coroutines.*
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import kotlin.time.ExperimentalTime
@ExperimentalTime
@Suppress("NonAsciiCharacters")
class `T13-Coroutine_Cancelation` {
@Test
fun `t01-コルーチンのキャンセル`(): Unit = runBlocking {
var counter = 0
... | 16 | null | 1 | 2 | 37d1f1df3e512b968c3677239316130f21d4836f | 2,013 | samples | Apache License 2.0 |
kotpass/src/main/kotlin/app/keemobile/kotpass/database/modifiers/Credentials.kt | keemobile | 384,214,968 | false | null | package app.keemobile.kotpass.database.modifiers
import app.keemobile.kotpass.database.Credentials
import app.keemobile.kotpass.database.KeePassDatabase
import app.keemobile.kotpass.models.Meta
import java.time.Instant
/**
* Modifies [Credentials] field in [KeePassDatabase] with result of [block] lambda.
* If new [... | 3 | Kotlin | 1 | 9 | 0e123c087c6ec516492f33c0140497debfb3ba15 | 1,027 | kotpass | MIT License |
app/src/main/java/com/finderbar/jovian/viewmodels/discuss/DiscussVoteVM.kt | finderbar | 705,707,975 | false | {"Kotlin": 665596, "Java": 45822} | package com.finderbar.jovian.viewmodels.discuss
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import android.support.v4.content.ContextCompat
import android.view.View
import com.apollographql.apollo.ApolloMutationCall
import com.finderbar.jovian.R
import com.finderbar.jovian.apo... | 0 | Kotlin | 0 | 0 | 63bf5531f367d1892d77151c1baa50789f814b07 | 8,479 | finderbar-app | MIT License |
app/src/main/java/com/android/airmart/viewmodel/PostProductViewModel.kt | air-mrt | 180,135,046 | false | null | package com.android.airmart.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.android.airmart.data.api.model.ProductResponse
import com.android.airmart.data.entity.Product
import com.android.air... | 0 | Kotlin | 0 | 0 | b41e65489d3285c9c3f3638eee4e40231a4f2b11 | 1,161 | android-app | MIT License |
app/src/main/java/com/example/pokescanner/screens/HomeScreen.kt | lostdanielfound | 744,651,808 | false | {"Kotlin": 50445} | package com.example.pokescanner.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import andr... | 0 | Kotlin | 0 | 0 | 833e5408fdfa8e6ca8f7387f444e5a8f82b6758e | 580 | PokeScanner | MIT License |
powdroid/src/main/java/com/tubbert/powdroid/events/TaskScheduler.kt | paulotubbert | 109,696,340 | false | null | package com.tubbert.powdroid.events
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import java.util.concurrent.TimeUnit
/**
*
*/
object TaskScheduler {
fun createSingleTaskScheduler(
delayMs: Long,
subscribeScheduler... | 0 | Kotlin | 0 | 0 | 6cc16a405e0ce53b904abee5a72f694ac5138b3a | 652 | PowDroid | Apache License 2.0 |
src/main/kotlin/com/github/surdus/http/content/multipart/MultipartContent.kt | surdus | 116,360,441 | false | null | package com.github.surdus.http.content.multipart
import com.github.surdus.http.client.toContentBody
import com.github.surdus.http.content.Content
import org.apache.http.HttpEntity
import org.apache.http.entity.mime.MultipartEntityBuilder
import java.io.InputStream
class MultipartContent(fill: MultipartContent.() -> U... | 0 | Kotlin | 0 | 0 | ccc2b577a4d7b3418b9325e9e103e28a348d3316 | 1,032 | kt-http-client | Apache License 2.0 |
plot-base/src/commonMain/kotlin/org/jetbrains/letsPlot/core/interact/feedback/WheelZoomFeedback.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2024. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.core.interact.feedback
import org.jetbrains.letsPlot.commons.geometry.DoubleRectangle
import org.jetbrains.letsPlot.commons.registration.Dispos... | 152 | null | 51 | 1,561 | c8db300544974ddd35a82a90072772b788600ac6 | 2,009 | lets-plot | MIT License |
plugins/markdown/src/org/intellij/plugins/markdown/injection/MarkdownCodeFenceUtils.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 org.intellij.plugins.markdown.injection
import com.intellij.lang.ASTNode
import com.intellij.lang.injection.InjectedLanguageManager
import com.intellij.openapi.util.TextR... | 284 | null | 5162 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 5,907 | intellij-community | Apache License 2.0 |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/database/migration/MigrateSessionTo012.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 The Matrix.org Foundation C.I.C.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 75 | null | 6 | 9 | 70e4c3c6026f9722444ec60ec142f3a4eef2e089 | 2,690 | tchap-android | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/HeartBrokenOutlined.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/HeartBrokenOutlined")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val HeartBrokenOutlined: SvgIconComponent
| 12 | Kotlin | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 220 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/example/sumador/ui/SummaryScreen.kt | JR1331 | 719,062,627 | false | {"Kotlin": 34352} | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 0 | Kotlin | 0 | 0 | eec91a0e740907d3dcb3824bae79711b97c31235 | 3,390 | Sumador | Apache License 2.0 |
examples/purchase-tester/src/main/java/com/revenuecat/purchasetester/ConfigureFragment.kt | RevenueCat | 127,346,826 | false | null | package com.revenuecat.purchasetester
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecy... | 30 | null | 52 | 253 | dad31133777389a224e9a570daec17f5c4c795ca | 8,350 | purchases-android | MIT License |
feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/domain/rewards/RewardCalculator.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_staking_impl.domain.rewards
import jp.co.soramitsu.common.utils.fractionToPercentage
import jp.co.soramitsu.common.utils.median
import jp.co.soramitsu.common.utils.sumByBigInteger
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.math.BigDecimal
imp... | 2 | null | 15 | 55 | 756c1fea772274ad421de1b215a12bf4e2798d12 | 4,625 | fearless-Android | Apache License 2.0 |
komapper-jdbc/src/main/kotlin/org/komapper/jdbc/dsl/runner/SelectJdbcRunner.kt | komapper | 349,909,214 | false | null | package org.komapper.jdbc.dsl.runner
import kotlinx.coroutines.flow.Flow
import org.komapper.core.DatabaseConfig
import org.komapper.core.Statement
import org.komapper.core.dsl.context.SelectContext
import org.komapper.core.dsl.runner.SelectRunner
import org.komapper.jdbc.JdbcDatabaseConfig
import org.komapper.jdbc.Jd... | 1 | Kotlin | 0 | 20 | 2a8827d7c410a5366d875578a635b02dc176e989 | 1,026 | komapper | Apache License 2.0 |
app/src/main/java/kr/sjh/myschedule/ui/theme/Theme.kt | junghoonshin3 | 674,523,154 | false | null | package com.example.pogoda.presentation.ui.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
@Composable
fun WeatherAppTheme(content: @Composable () -> Unit) {
MaterialTheme(
typography = Typography,
shapes = Shapes,
content = content
)
} | 1 | null | 0 | 1 | f7504195a56c5eb2a30bbc2a6c5ad11b1161ad5e | 318 | MySchedule | MIT License |
library/core/engine/src/main/kotlin/de/lise/fluxflow/engine/workflow/WorkflowStarterServiceImpl.kt | lisegmbh | 740,936,659 | false | {"Kotlin": 732949} | package de.lise.fluxflow.engine.workflow
import de.lise.fluxflow.api.ReferredWorkflowObject
import de.lise.fluxflow.api.continuation.Continuation
import de.lise.fluxflow.api.event.EventService
import de.lise.fluxflow.api.workflow.Workflow
import de.lise.fluxflow.api.workflow.WorkflowIdentifier
import de.lise.fluxflow.... | 21 | Kotlin | 0 | 7 | 1ad9ce84c8aa3d87d6b7114125962db5b30801c9 | 1,660 | fluxflow | Apache License 2.0 |
library/src/main/java/com/kroegerama/imgpicker/BottomSheetImagePicker.kt | kroegerama | 179,953,462 | false | null | package com.kroegerama.imgpicker
import android.annotation.SuppressLint
import android.app.Activity.RESULT_OK
import android.app.Dialog
import android.content.Intent
import android.content.pm.PackageManager
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.os.Environment
imp... | 12 | null | 45 | 328 | 0264ac750f4a4c3be48df97e849087bb2846e3e6 | 18,803 | bottomsheet-imagepicker | Apache License 2.0 |
app/src/main/java/br/com/william/fernandes/srp/LavaLoucas.kt | williamjosefernandes | 608,693,253 | false | null | package br.com.william.fernandes.srp
import android.util.Log
class LavaLoucas {
var loucaLavada = false
fun lavarLouca() {
loucaLavada = true
}
}
| 0 | Kotlin | 0 | 0 | 59e490b1b75f00869bab5d4b8dc28ec975e4abb5 | 170 | Single-Responsibility-Principle | Apache License 2.0 |
ripple-core/src/test/java/com/ripple/core/coretypes/STObjectFormatterTest.kt | sublimator | 16,341,429 | true | {"Java": 717983, "Kotlin": 80834, "Python": 874, "Shell": 248} | package com.ripple.core.coretypes
import com.ripple.core.fields.Field
import com.ripple.core.serialized.enums.LedgerEntryType
import com.ripple.core.serialized.enums.TransactionType
import com.ripple.core.types.known.sle.LedgerEntry
import com.ripple.core.types.known.sle.entries.DepositPreauthLe
import com.ripple.core... | 17 | Java | 7 | 7 | 909f983d9cfb379591d3b1abf6622840e4ffd2d1 | 5,044 | ripple-lib-java | ISC License |
app/src/main/java/com/curso/free/data/model/Preference.kt | OmAr-Kader | 714,504,783 | false | {"Kotlin": 534140} | package com.curso.free.data.model
class Preference(
@io.realm.kotlin.types.annotations.PrimaryKey
var _id: org.mongodb.kbson.ObjectId = org.mongodb.kbson.ObjectId.invoke(),
@io.realm.kotlin.types.annotations.Index
var ketString: String,
var value: String,
) : io.realm.kotlin.types.RealmObject {
... | 0 | Kotlin | 0 | 0 | 24761de20fb70c2225674c5051d8846df490bc50 | 502 | Curso | MIT License |
camera/integration-tests/timingtestapp/src/main/java/androidx/camera/integration/antelope/cameracontrollers/CameraXDeviceStateCallback.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 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 applicab... | 8 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,251 | androidx | Apache License 2.0 |
app/src/main/java/com/example/launchcontrol/generals/utils/GetStringResource.kt | Icaro-G-Silva | 344,936,988 | false | null | package com.example.launchcontrol.generals.utils
import android.content.Context
open class GetStringResource(private val context: Context) {
fun getStringRes(resource: Int): String {
return context.getString(resource)
}
} | 0 | Kotlin | 0 | 0 | 1710da30a6d6bf2ec7e05827fdb4ca49fae48434 | 239 | SpaceDroid | MIT License |
src/test/kotlin/com/gmail/blueboxware/libgdxplugin/skin/TestReferences.kt | BlueBoxWare | 64,067,118 | false | null | package com.gmail.blueboxware.libgdxplugin.skin
import com.gmail.blueboxware.libgdxplugin.LibGDXCodeInsightFixtureTestCase
import com.gmail.blueboxware.libgdxplugin.filetypes.atlas.psi.AtlasRegion
import com.gmail.blueboxware.libgdxplugin.filetypes.skin.psi.SkinClassName
import com.gmail.blueboxware.libgdxplugin.filet... | 2 | null | 9 | 145 | bcb911e0c3f3e9319bc8ee2d5b6b554c6090fd6c | 12,936 | LibGDXPlugin | Apache License 2.0 |
mineinabyss-features/src/main/kotlin/com/mineinabyss/features/guilds/menus/GuildJoinRequestScreen.kt | MineInAbyss | 115,279,675 | false | null | package com.mineinabyss.features.guilds.menus
import androidx.compose.runtime.Composable
import com.mineinabyss.features.abyss
import com.mineinabyss.features.guilds.database.GuildJoinType
import com.mineinabyss.features.guilds.database.GuildMessageQueue
import com.mineinabyss.features.guilds.extensions.*
import com.m... | 16 | null | 27 | 99 | 35b12abf13867de5a00acfc4804b1797751b842e | 3,480 | MineInAbyss | MIT License |
src/main/kotlin/com/github/plplmax/simulator/restaurant/RestaurantStateOf.kt | plplmax | 538,049,460 | false | {"Kotlin": 26178} | package com.github.plplmax.simulator.restaurant
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import kotlin.time.Duration
import kotlin.time.DurationUnit
import kotlin.time.toDuration
data class RestaurantStateOf(
override var customersInterval: MutableState<Duration>... | 0 | Kotlin | 0 | 1 | 8950a388d99b1c7ddb67b459a15cbfbee79a2ec1 | 583 | fast-food-simulator | MIT License |
idea-plugin/src/main/kotlin/org/jetbrains/compose/desktop/idea/preview/PreviewRunConfigurationProducer.kt | pratyushkhare1 | 355,441,829 | true | {"Kotlin": 243021, "Dockerfile": 4946, "Shell": 3654, "PowerShell": 1708} | /*
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.compose.desktop.idea.preview
import com.intellij.execution.actions.ConfigurationContext
import com.int... | 0 | null | 0 | 0 | 05b9e962e506733636c8f9a74f8a5313d59c4797 | 3,413 | compose-jb | Apache License 2.0 |
app/src/main/java/com/slobodanantonijevic/simpleopenweatherkt/di/AppModule.kt | slobodanantonijevic | 184,257,150 | false | null | /*
* Copyright (C) 2019 <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 ... | 0 | Kotlin | 0 | 0 | bf54e2de1d2a394415082996ee9421c4285430c9 | 2,874 | SimpleOpenWeatherKT | Apache License 2.0 |
src/main/java/com/mvv/gui/words/word.kt | odisseylm | 679,732,600 | false | {"Kotlin": 917098, "CSS": 25257, "Java": 6651} | package com.mvv.gui.words
import com.mvv.gui.javafx.CacheableObservableValue
import com.mvv.gui.javafx.mapCached
import javafx.beans.property.ObjectProperty
import javafx.beans.property.SimpleObjectProperty
import javafx.beans.property.SimpleStringProperty
import javafx.beans.property.StringProperty
import javafx.bean... | 0 | Kotlin | 0 | 0 | f90861cbea00dd535e86e05dbc411cde129936c3 | 8,325 | learn-words | Creative Commons Attribution 3.0 Unported |
plugins/kotlin/idea/tests/testData/quickfix/surroundWithNullCheck/assignment.kt | ingokegel | 72,937,917 | false | null | // "Surround with null check" "true"
fun foo(s: String?) {
var ss: String = ""
ss = <caret>s
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.SurroundWithNullCheckFix | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 185 | intellij-community | Apache License 2.0 |
app/src/main/java/com/christianbahl/swapico/planets/model/PlanetsResponse.kt | Bodo1981 | 44,470,954 | false | null | package com.christianbahl.swapico.planets.model
import com.christianbahl.swapico.model.IListData
import com.google.gson.annotations.SerializedName
/**
* @author <NAME>
*/
class PlanetsResponse(override val name: String,
val diameter: String,
@SerializedName("rotation_peri... | 1 | null | 1 | 1 | 0d029b8064c941766eafb7bb7000c8289a4c96ec | 1,332 | swapi.co | Apache License 2.0 |
shared/src/test/java/com/google/samples/apps/iosched/test/util/FakeAppDatabase.kt | google | 18,347,476 | false | null | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 77 | Kotlin | 6259 | 21,755 | 738e1e008096fad5f36612325275e80c33dbe436 | 4,294 | iosched | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Emptywallettick.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,721 | VuesaxIcons | MIT License |
kex-runner/src/test/kotlin/org/vorpal/research/kex/crash/DescriptorCrashReproductionLongTest.kt | vorpal-research | 204,454,367 | false | null | package org.vorpal.research.kex.crash
import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.InternalSerializationApi
import org.junit.Test
import org.vorpal.research.kex.asm.analysis.crash.CrashReproductionChecker
import org.vorpal.resear... | 9 | null | 20 | 28 | 459dd8cb1c5b1512b5a920260cd0ebe503861b3e | 1,617 | kex | Apache License 2.0 |
plugins/devkit/devkit-kotlin-tests/testData/inspections/missingApi/library/RecentKotlinUtils.kt | hkjang | 201,411,886 | false | {"Text": 3950, "XML": 4557, "Ant Build System": 13, "Shell": 472, "Markdown": 298, "Ignore List": 79, "Git Attributes": 9, "Batchfile": 30, "SVG": 1981, "Java": 63985, "C++": 15, "HTML": 2721, "Kotlin": 4326, "DTrace": 1, "Gradle": 70, "Java Properties": 94, "INI": 236, "JFlex": 27, "Objective-C": 19, "Groovy": 3306, "... | package library
fun recentTopLevelFunction() {
}
fun String.recentExtensionFunction() {
}
inline fun String.recentInlineExtensionFunction(functionalParameter: () -> String) {
} | 1 | null | 1 | 1 | a79249276cf6b68a6376d1f12964572283301a01 | 179 | intellij-community | Apache License 2.0 |
samples/tutorial/tutorial-3-complete/src/main/java/workflow/tutorial/TodoListLayoutRunner.kt | square | 268,864,554 | false | null | package workflow.tutorial
import androidx.recyclerview.widget.LinearLayoutManager
import com.squareup.workflow1.ui.LayoutRunner
import com.squareup.workflow1.ui.LayoutRunner.Companion.bind
import com.squareup.workflow1.ui.ViewEnvironment
import com.squareup.workflow1.ui.ViewFactory
import com.squareup.workflow1.ui.Wor... | 177 | null | 99 | 995 | daf192e24d7b47943caf534e62e4b70d08028100 | 1,398 | workflow-kotlin | Apache License 2.0 |
exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Constraints.kt | JetBrains | 11,765,017 | false | null | package org.jetbrains.exposed.sql
import org.jetbrains.exposed.sql.transactions.TransactionManager
import org.jetbrains.exposed.sql.vendors.*
import org.jetbrains.exposed.sql.vendors.currentDialectIfAvailable
import org.jetbrains.exposed.sql.vendors.inProperCase
import java.sql.DatabaseMetaData
/**
* Common interfac... | 351 | null | 650 | 7,618 | 600ea0d6c12d5758608c709995af49c97923d546 | 12,394 | Exposed | Apache License 2.0 |
platform/backend/core/src/main/kotlin/io/hamal/core/component/Retry.kt | hamal-io | 622,870,037 | false | {"Kotlin": 2114763, "C": 1398432, "TypeScript": 279976, "Lua": 100966, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 3406, "CMake": 2810, "CSS": 1626, "HTML": 1239, "Shell": 977} | package io.hamal.core.component
import org.springframework.stereotype.Component
import java.util.concurrent.ThreadLocalRandom
import java.util.concurrent.atomic.AtomicReference
import kotlin.math.min
import kotlin.math.pow
import kotlin.time.Duration
fun interface DelayRetry {
operator fun invoke(iteration: Int)... | 26 | Kotlin | 0 | 0 | 64288303fd12b334787c7bbb15afbaa99f716125 | 1,701 | hamal | Creative Commons Zero v1.0 Universal |
libs/sockets/src/unitTest/kotlin/batect/sockets/namedpipes/NamedPipeSocketFactorySpec.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-2021 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | 12 | null | 47 | 620 | 1b6cb1d79d91a70a0cb038cc29b2db1c025fea9e | 8,343 | batect | Apache License 2.0 |
app/src/main/java/com/liuhe/widget/bean/Msg.kt | liuhedev | 129,835,036 | false | null | package com.liuhe.widget.bean
/**
* 消息体
* @author liuhe
*/
class Msg(var title: String, var unReadMsgCount: Int)
| 0 | Kotlin | 0 | 0 | 7bd0a910ec7ea07209f1107506a61e69a3beb5dd | 117 | WidgetPractice | Apache License 2.0 |
bukkit/elysium-core-bukkit/src/main/kotlin/com/seventh_root/elysium/core/bukkit/listener/PluginEnableListener.kt | liambaloh | 72,128,706 | true | {"Kotlin": 752068} | /*
* Copyright 2016 <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 wr... | 0 | Kotlin | 0 | 0 | f3db81625f1c12c8a9fc2b88a3c6bd71c2559acc | 1,313 | elysium | Apache License 2.0 |
presentation/src/main/java/com/jyproject/presentation/ui/feature/home/composable/PlaceBlocks.kt | JunYeong0314 | 778,833,940 | false | {"Kotlin": 208970} | package com.jyproject.presentation.ui.feature.home.composable
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.... | 0 | Kotlin | 0 | 0 | edb71cf4db51cee1593aa31c66c25d616492d24c | 4,727 | PlacePick | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/model/PrisonerAlert.kt | ministryofjustice | 256,501,813 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.model
import io.swagger.v3.oas.annotations.media.Schema
data class PrisonerAlert(
@Schema(description = "Alert Type", example = "H")
val alertType: String,
@Schema(description = "Alert Code", example = "HA")
val alertCode: String,
@Schema(description = "Ac... | 2 | null | 3 | 5 | a5b642d297b981f0db85e39df535861141b815d0 | 447 | prisoner-offender-search | MIT License |
idea/tests/testData/checker/MainWithWarningOnUnusedParam.kt | JetBrains | 278,369,660 | false | null | // FIR_IDENTICAL
// LANGUAGE_VERSION: 1.4
fun main(<warning descr="[UNUSED_PARAMETER] Parameter 'args' is never used">args</warning>: Array<String>) {
}
| 0 | null | 37 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 156 | intellij-kotlin | Apache License 2.0 |
collector-media3-exoplayer/src/main/java/com/bitmovin/analytics/media3/exoplayer/features/Media3ExoPlayerHttpRequestTrackingAdapter.kt | bitmovin | 120,633,749 | false | {"Kotlin": 1363235, "Java": 25098, "Shell": 13133} | package com.bitmovin.analytics.media3.exoplayer.features
import android.net.Uri
import android.util.Log
import androidx.media3.common.C
import androidx.media3.common.Timeline
import androidx.media3.common.util.UnstableApi
import androidx.media3.common.util.Util.inferContentType
import androidx.media3.datasource.HttpDa... | 1 | Kotlin | 6 | 9 | eba960cdc95c2142f5f4bbeb0275690122dc65f9 | 10,593 | bitmovin-analytics-collector-android | Amazon Digital Services License |
src/main/kotlin/ai/hypergraph/kaliningraph/matrix/MatrixRing.kt | ileasile | 424,362,465 | true | {"Kotlin": 121295} | package ai.hypergraph.kaliningraph.matrix
import ai.hypergraph.kaliningraph.*
import ai.hypergraph.kaliningraph.types.*
import org.ejml.data.*
import org.ejml.kotlin.*
import java.lang.reflect.Constructor
import kotlin.math.*
import kotlin.random.Random
/**
* Generic matrix which supports overloadable addition and m... | 0 | null | 0 | 0 | 4b6aadf379ec40fe0c7d5de0ee25fa64520e31b3 | 12,091 | kaliningraph | Apache License 2.0 |
uilib/src/main/java/dev/entao/kan/grid/GridPage.kt | yangentao | 227,030,009 | false | null | package dev.entao.kan.grid
import android.content.Context
import android.view.View
import android.widget.AdapterView
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
import dev.entao.kan.appbase.Task
impo... | 0 | Kotlin | 0 | 0 | 6fe708427ab0b717a0f18c1d9a926dff69a7aa9c | 3,516 | ui | MIT License |
data/src/main/java/com/m3u/data/repository/programme/ProgrammeRepositoryImpl.kt | oxyroid | 592,741,804 | false | {"Kotlin": 1102944} | package com.m3u.data.repository.programme
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.m3u.core.architecture.dispatcher.Dispatcher
import com.m3u.core.architecture.dispatcher.M3uDispatchers.IO
import com.m3u.core.architecture.logger.Logger
import com.m3u... | 34 | Kotlin | 33 | 375 | ca92e3487c8e22b73b50197baa2d652185cb4f2e | 8,594 | M3UAndroid | Apache License 2.0 |
common/src/main/java/cn/thriic/common/utils/HttpUtils.kt | thriic | 649,615,369 | false | null | package com.thryan.secondclass.core.utils
import com.thryan.secondclass.core.result.HttpResult
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.withContext
import okhttp3.FormBody
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.Ok... | 0 | null | 7 | 36 | 2ba4a75a385ebd0bcfb2dd3858969c16beeae94f | 4,813 | SecondClass | MIT License |
composeApp/src/commonMain/kotlin/features/workoutPlanDetail/WorkoutDetailScreenViewModel.kt | anwar-pasaribu | 798,728,457 | false | {"Kotlin": 370338, "Swift": 585} | package features.workoutPlanDetail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import domain.model.gym.ExerciseProgress
import domain.model.gym.WorkoutPlan
import domain.repository.IGymRepository
import domain.usecase.GetExerciseListByWorkoutPlanUseCase
import domain.usecase.GetWorkout... | 0 | Kotlin | 0 | 0 | f2878e0f953fd2003d0c412d6de344a4932c886d | 2,102 | Tabiat | MIT License |
roboquant/src/main/kotlin/org/roboquant/brokers/Account.kt | neurallayer | 406,929,056 | false | {"JavaScript": 3008147, "Kotlin": 1412145, "CSS": 1977} | /*
* Copyright 2020-2023 Neural Layer
*
* 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 agr... | 9 | JavaScript | 42 | 316 | 769f1aade1e8e95817591866faad4561f7768071 | 6,646 | roboquant | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.