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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wasi/src/wasmJsMain/kotlin/org/kowasm/wasi/WasiCli.kt | kowasm | 586,987,800 | false | {"Kotlin": 620989, "JavaScript": 545, "Shell": 263} | /*
* Copyright 2023 the original author or authors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.kowasm.wasi
import org.kowasm.wasi.internal.argsGet
import org.kowasm.wasi.internal.environGet
/**
* Provides access to the command line argume... | 10 | Kotlin | 5 | 315 | a45430d559057f5a3e10ee88d26eba07103bf69d | 813 | kowasm | Apache License 2.0 |
compiler/testData/diagnostics/tests/coroutines/suspendFunctionAsSupertype/suspendFunctionN/mixingSuspendAndNonSuspendSupertypesThruSuperClass.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
// LANGUAGE: +SuspendFunctionAsSupertype
// SKIP_TXT
// DIAGNOSTICS: -CONFLICTING_INHERITED_MEMBERS, -CONFLICTING_OVERLOADS, -ABSTRACT_MEMBER_NOT_IMPLEMENTED, -FUN_INTERFACE_WRONG_COUNT_OF_ABSTRACT_MEMBERS
import kotlin.coroutines.*
abstract class CSuper: () -> Unit
class C: <!MIXING_SUSPEND_AND_NON... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 864 | kotlin | Apache License 2.0 |
nav/safeargs/common/src/com/android/tools/idea/nav/safeargs/finder/SafeArgsScopeEnlarger.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 3,080 | android | Apache License 2.0 |
core/data/src/main/kotlin/com/theophiluskibet/data/repos/CharactersRepositoryImpl.kt | kibettheophilus | 811,054,900 | false | {"Kotlin": 66991} | /**
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | 3 | Kotlin | 0 | 2 | d3bbc6fb5b06a6eb9ed277c7b30880bc37052bd4 | 2,110 | koin-playground | MIT License |
jetpackLib/src/main/java/com/yc/jetpacklib/download/YcDownLoadState.kt | ychxx | 386,224,643 | false | null | package com.yc.jetpacklib.download
import androidx.annotation.IntDef
/**
* Creator: yc
* Date: 2021/9/28 18:24
* UseDes:
*/
@IntDef(YcDownLoadState.DOWNLOAD_NOT_STARTED, YcDownLoadState.DOWNLOADING, YcDownLoadState.DOWNLOAD_FAIL, YcDownLoadState.DOWNLOAD_SUCCESS)
@kotlin.annotation.Retention(AnnotationRetention... | 1 | Kotlin | 0 | 1 | 541417cfcab9fb87474a7d2270b3cbc363beedb8 | 582 | ShadowJetpack | Apache License 2.0 |
sample/src/main/java/com/parsuomash/affogato/app/MainActivity.kt | ghasemdev | 510,960,043 | false | {"Kotlin": 854532, "Shell": 3263} | package com.parsuomash.affogato.app
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.... | 1 | Kotlin | 1 | 12 | 2a483b7db600aee673c99c829c63ff1ea2cbaedf | 7,684 | affogato | MIT License |
internal/test-sketch/src/commonMain/kotlin/com/github/panpf/zoomimage/test/sketch/platform_context.common.kt | panpf | 647,222,866 | false | {"Kotlin": 4055517, "Shell": 3739} | package com.github.panpf.zoomimage.test.sketch
import com.github.panpf.sketch.PlatformContext
expect val platformContext: PlatformContext | 8 | Kotlin | 16 | 303 | 8627b3429ce148cccbaee751cc6793a63cb48b69 | 139 | zoomimage | Apache License 2.0 |
rest/src/main/kotlin/org/flaxo/rest/manager/gitplag/GitplagPlagiarismAnalyser.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.rest.manager.gitplag
import io.gitplag.gitplagapi.model.input.AnalysisRequest
import org.flaxo.common.Language
import org.flaxo.model.ModelException
import org.flaxo.model.data.Task
import org.flaxo.moss.MossMatch
import org.flaxo.moss.MossResult
import org.flaxo.rest.manager.PlagiarismAnalysisExcept... | 30 | null | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 1,989 | flaxo | Apache License 2.0 |
app/src/main/kotlin/com/konkuk/boost/data/model/db/like/LikeCourseContract.kt | sys09270883 | 323,874,439 | false | null | package com.konkuk.boost.data.model.db.like
object LikeCourseContract {
const val TABLE_NAME = "like_courses"
const val DROP_LIKE_COURSE_TABLE = "DROP TABLE IF EXISTS $TABLE_NAME"
}
| 0 | Kotlin | 1 | 19 | 266d8db5f42a3d1cd897eb421450777ac9e18276 | 192 | ku-boost-android | MIT License |
app/src/main/java/com/team5417/frcscouting/recyclerview/ScoutingViewHolder.kt | frc5417 | 514,902,436 | false | null | package com.recyclerviewapp
import android.text.Editable
import android.text.TextWatcher
import android.view.View
import android.widget.Button
import android.widget.CheckBox
import android.widget.EditText
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material... | 2 | Kotlin | 0 | 3 | 0bda4dd3ec3b958e7af4ad50523e4269ebce0610 | 8,590 | FRCScoutingApp | MIT License |
app/src/main/java/com/digitaltalent/androidimageslider/MainActivity.kt | Pisey-Nguon | 855,637,721 | false | {"Kotlin": 17938} | package com.digitaltalent.androidimageslider
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.digitaltalent.image_slider.ImageSliderView
import com.digitaltalen... | 0 | Kotlin | 0 | 0 | 473722d30070675a1e7fa670fe155a521896bd94 | 1,740 | android-image-slider | MIT License |
src/main/kotlin/views/brainView/BrainBoxRenderer.kt | jackson-godfrey | 455,049,973 | false | {"Kotlin": 42674} | package views.brainView
import brain.Brain
import org.hexworks.zircon.api.component.renderer.ComponentRenderContext
import org.hexworks.zircon.api.component.renderer.ComponentRenderer
import org.hexworks.zircon.api.graphics.TileGraphics
class BrainBoxRenderer (val brain: Brain) : ComponentRenderer<BrainBox> {
o... | 0 | Kotlin | 0 | 0 | eed9c10e67a4e53f07f799ed05faf68596e4ba3b | 542 | Roguelike | Apache License 2.0 |
app/src/main/java/com/example/nyethack/Extensions.kt | Rumpl4Skin | 691,654,183 | false | {"Kotlin": 22605} | package com.example.nyethack
fun String.addEnthusiasm(enthusiasmLevel: Int = 1)=
this + "!".repeat(enthusiasmLevel)
operator fun List<List<Room>>.get(coordinate: Coordinate) =
getOrNull(coordinate.y)?.getOrNull(coordinate.x)
infix fun Coordinate.move(direction: Direction) =
direction.updateCoordinate(thi... | 0 | Kotlin | 0 | 0 | a15d5464512f5b0392bdb450c1e5e8091d9cf460 | 486 | NyetHack | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/weather_unit/WeatherUnitModule.kt | Mercandj | 348,799,879 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 14 | 86 | d0b653174d7df1f5c72c7b146a35b37fe16e43f1 | 1,238 | android-dev-challenge-compose-4 | Apache License 2.0 |
src/commonMain/kotlin/uk/gibby/driver/rpc/model/Bind.kt | mnbjhu | 677,583,412 | false | null | package uk.gibby.driver.rpc.model
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.encodeToJsonElement
import uk.gibby.driver.surrealJson
typealias Bind = Pair<String, JsonElement>
/**
* Bind
*
* A helper function to create a parameter as part of a query.
* Used in conjunction with... | 0 | null | 0 | 8 | eb80e1a867b2fb81522d93e233e1bcb1fac28c08 | 793 | surrealdb-kotlin-driver | MIT License |
buildSrc/src/main/kotlin/Dependencies.kt | oneliang | 262,052,605 | false | null | object Dependencies {
private val dependencies = mapOf(
"junit" to "junit:junit:4.12",
"kotlin-reflect" to "org.jetbrains.kotlin:kotlin-reflect:${Constants.kotlinVersion}",
"kotlin-stdlib" to "org.jetbrains.kotlin:kotlin-stdlib:${Constants.kotlinVersion}",
"kotlin-stdlib-js" to "org... | 0 | Kotlin | 1 | 0 | aa3739a88ef88c635f4857b21585534397c639fa | 3,629 | frame-kotlin | Apache License 2.0 |
order/api/src/test/kotlin/com/rarible/protocol/order/api/service/order/AbstractOrderIt.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.api.service.order
import com.rarible.core.common.nowMillis
import com.rarible.ethereum.domain.EthUInt256
import com.rarible.ethereum.sign.domain.EIP712Domain
import com.rarible.protocol.dto.LegacyOrderFormDto
import com.rarible.protocol.dto.OrderFormDto
import com.rarible.protocol.dt... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 6,080 | ethereum-indexer | MIT License |
05_HigherOrder/src/HigherOrder.kt | amagalhaes31 | 288,568,275 | false | null | /*
Author: <NAME>
Date: August 18th, 2020
Link: https://kotlinlang.org/docs/reference/lambdas.html
*/
/*
Parametro de entrada: list: List<Int>
*/
fun filter (list: List<Int>, filtrate: (Int) -> (Boolean)) : List<Int> {
val newList = mutableListOf<Int>()
for (item in list) {
if (filtra... | 0 | Kotlin | 0 | 0 | f432645163a015621a8fcbcad43f31d99e362e35 | 838 | kotlin_study | MIT License |
app/src/main/java/net/squanchy/schedule/view/ScheduleDayPageView.kt | aykuttasil | 117,011,618 | false | {"Gradle": 7, "INI": 1, "Markdown": 7, "Shell": 4, "Text": 1, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 1, "Proguard": 1, "Kotlin": 172, "Java": 65, "XML": 122, "JSON": 1, "YAML": 2} | package net.squanchy.schedule.view
import android.content.Context
import android.support.v7.util.DiffUtil
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import net.squanchy.R
import net.squanchy.schedule.domain.view.Event
import net.... | 1 | null | 1 | 1 | 4254e46c7c9d218cfe1f1abf8ac5ef568f2bd4e6 | 2,013 | squanchy-android | Apache License 2.0 |
app/src/main/kotlin/org/jdc/template/ui/ThemeManager.kt | jeffdcamp | 12,853,600 | false | null | package org.jdc.template.ui
import androidx.appcompat.app.AppCompatDelegate
import kotlinx.coroutines.flow.first
import org.jdc.template.model.data.DisplayThemeType
import org.jdc.template.model.repository.SettingsRepository
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class ThemeManager
@Injec... | 0 | null | 33 | 86 | 4bc4b5426f372a13a1ae8ae61f1cdfb8992582e4 | 922 | android-template | Apache License 2.0 |
materialintro/src/main/kotlin/co/mobiwise/materialintro/animation/AnimationFactory.kt | kurosaki-tisak | 137,983,394 | true | {"Kotlin": 30000, "Java": 674} | package co.mobiwise.materialintro.animation
import android.animation.Animator
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.view.View
/**
* Created by mertsimsek on 25/01/16.
*/
class AnimationFactory {
companion object {
... | 0 | Kotlin | 0 | 0 | 47247c0054812edcc62cf24e3838a7737eef040f | 3,044 | MaterialIntroView | Apache License 2.0 |
common/src/commonMain/kotlin/feature/metarscreen/model/RunwayUi.kt | alexmaryin | 419,989,861 | false | null | package feature.metarscreen.model
import services.airportService.model.Runway
import kotlin.math.PI
import kotlin.math.abs
import kotlin.math.cos
import kotlin.math.sin
data class RunwayUi(
val low: String = "36",
val high: String = "18",
val lowHeading: Int = 0,
val highHeading: Int = 180,
val wi... | 3 | Kotlin | 1 | 5 | 2d6be1414c15cfff085f27ee59abe9fc7efd7d8d | 1,616 | sims_checklist | Apache License 2.0 |
backend/misc/src/main/kotlin/io/tolgee/fixtures/waitFor.kt | tolgee | 303,766,501 | false | null | package io.tolgee.fixtures
fun waitFor(timeout: Long = 10000, pollTime: Long = 10, fn: () -> Boolean) {
val time = System.currentTimeMillis()
var done = false
while (!done && System.currentTimeMillis() - time < timeout) {
done = fn()
if (!done) {
Thread.sleep(pollTime)
}
}
if (!done) {
... | 50 | Kotlin | 15 | 292 | 9896609f260b1ff073134e672303ff8810afc5a1 | 408 | server | Apache License 2.0 |
app/src/main/kotlin/com/ivanovsky/passnotes/domain/entity/LoggingType.kt | aivanovski | 95,774,290 | false | null | package com.ivanovsky.passnotes.domain.entity
enum class LoggingType {
RELEASE,
DEBUG,
FILE;
companion object {
fun getByName(name: String): LoggingType? = values().firstOrNull { it.name == name }
}
} | 4 | null | 1 | 7 | dc4abdf847393919f5480129b64240ae0469b74c | 230 | kpassnotes | Apache License 2.0 |
grbase/src/main/java/us/gotrobot/grbase/feature/drivetrain/MecanumDriveTrain.kt | GotRobotFTC5037 | 194,951,361 | false | null | package us.gotrobot.grbase.feature.drivetrain
import com.qualcomm.robotcore.hardware.DcMotor
import com.qualcomm.robotcore.hardware.DcMotorEx
import com.qualcomm.robotcore.hardware.DcMotorSimple
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import kotlinx.coroutines.selects.select
import us.gotrobot... | 0 | Kotlin | 0 | 0 | c8c0ee5aba1e977d3e7f9fef9f955090d3cfa789 | 9,829 | Rover-Ruckus-Summer-2020 | MIT License |
src/main/kotlin/com/github/princesslana/smalldkt/type/channel/MessageEntity.kt | princesslana | 161,717,242 | false | null | package com.github.princesslana.smalldkt.type.channel
import com.github.princesslana.smalldkt.type.Optional
import com.github.princesslana.smalldkt.type.Snowflake
import com.github.princesslana.smalldkt.type.TimeStamp
import com.github.princesslana.smalldkt.type.guild.PartialGuildMember
import com.github.princesslana.... | 9 | Kotlin | 1 | 1 | 02832f30e9b0a2f232ffe2a1041d9b819005c60c | 5,992 | smalldkt | MIT License |
ui-core/src/main/java/com/adyen/checkout/ui/core/internal/ui/ImageLoadingExtensions.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2022 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by oscars on 14/12/2022.
*/
package com.adyen.checkout.ui.core.internal.ui
import android.content.Context
import android.content.ContextWrapper
import android.util... | 28 | null | 66 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 3,985 | adyen-android | MIT License |
mastodon4j/src/main/java/com/sys1yagi/mastodon4j/api/entity/Mention.kt | MulticolorWorld | 89,324,923 | true | {"Kotlin": 95553} | package com.sys1yagi.mastodon4j.api.entity
import com.google.gson.annotations.SerializedName
/**
* see more https://docs.joinmastodon.org/api/entities/#mention
*/
class Mention(
@SerializedName("url") val url: String = "",
@SerializedName("username") val username: String = "",
@SerializedNam... | 3 | Kotlin | 0 | 6 | 857ca6ffd181c7c55103a7574955c722d9015bd5 | 402 | mastodon4j | MIT License |
android/src/main/kotlin/com/producement/yubikit_flutter/YubikitOpenPGPMethodCallHandler.kt | Producement | 482,778,301 | false | {"Kotlin": 65812, "Swift": 44223, "Dart": 28609, "Ruby": 2379, "Objective-C": 736} | package com.producement.yubikit_flutter
import android.content.Context
import android.util.Log
import androidx.annotation.NonNull
import com.producement.yubikit_flutter.pgp.GenerateECAsymmetricKeyAction
import com.producement.yubikit_flutter.pgp.GenerateRSAAsymmetricKeyAction
import io.flutter.embedding.android.Flutte... | 0 | Kotlin | 0 | 2 | facc0f4c53847c6522e0098d098b210b22032b43 | 3,728 | yubikit_flutter | MIT License |
app/src/main/java/com/monkeyapp/numbers/FullScreenFragment.kt | chengpo | 103,519,589 | false | null | /*
MIT License
Copyright (c) 2017 - 2022 Po Cheng
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... | 0 | null | 1 | 3 | 3d50e6948c8c4aa8d9638f15c31bf9e0683948fb | 5,330 | spell-numbers | MIT License |
orchestration/src/main/java/ru/flowernetes/orchestration/data/controller/NamespaceController.kt | b1nd | 252,335,785 | false | null | package ru.flowernetes.orchestration.data.controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import ru.flowernetes.orchestration.api.domain.usecase.GetNamespaceNamesUseCase
impo... | 0 | Kotlin | 1 | 2 | 8eef7e3324642fa4b26a69be69525d79a4873ea4 | 665 | flowernetes | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppslaunchpadauth/config/HmppsAuthTokenCacheEventListener.kt | ministryofjustice | 650,525,398 | false | {"Kotlin": 210577, "HTML": 2363, "Dockerfile": 1146} | package uk.gov.justice.digital.hmpps.hmppslaunchpadauth.config
import org.ehcache.event.CacheEvent
import org.ehcache.event.CacheEventListener
import org.slf4j.LoggerFactory
class HmppsAuthTokenCacheEventListener : CacheEventListener<String, String> {
private val logger = LoggerFactory.getLogger(HmppsAuthTokenCach... | 1 | Kotlin | 0 | 0 | b5445d86dbf33428e6e91cdad1495f768b5da134 | 657 | hmpps-launchpad-auth | MIT License |
compiler/testData/codegen/box/reflection/annotations/simpleParamAnnotation.kt | JetBrains | 3,432,266 | false | null | // WITH_REFLECT
@Retention(AnnotationRetention.RUNTIME)
annotation class Simple(val value: String)
fun test(@Simple("OK") x: Int) {}
fun box(): String {
return (::test.parameters.single().annotations.single() as Simple).value
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 235 | kotlin | Apache License 2.0 |
modules/wasm-binary/src/commonMain/kotlin/tree/instructions/ReferenceEqualInstruction.kt | wasmium | 761,480,110 | false | {"Kotlin": 661510, "JavaScript": 203} | package org.wasmium.wasm.binary.tree.instructions
import org.wasmium.wasm.binary.tree.Opcode
import org.wasmium.wasm.binary.visitor.ExpressionVisitor
public class ReferenceEqualInstruction : AbstractInstruction(Opcode.REF_EQ), NoneInstruction {
override fun accept(expressionVisitor: ExpressionVisitor) {
e... | 0 | Kotlin | 0 | 3 | dc846f459f0bda1527cad253614df24bbdea012f | 378 | wasmium-wasm | Apache License 2.0 |
app/src/main/java/com/schaefer/mymovies/domain/model/CountryDomain.kt | arturschaefer | 318,792,328 | false | {"Kotlin": 160961} | package com.schaefer.mymovies.domain.model
data class CountryDomain(
val name: String,
val code: String,
val timezone: String
) | 0 | Kotlin | 0 | 0 | a2580e6020ef40b2efbbafd95c3e5db7ab3b1bb3 | 140 | My-Shows | MIT License |
app/src/main/java/io/github/gmathi/novellibrary/service/tts/TTSService.kt | Guiorgy | 233,595,061 | true | {"Kotlin": 582529, "Java": 16521} | package io.github.gmathi.novellibrary.service.tts
import android.app.PendingIntent
import android.app.Service
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Bundle
import android.os.IBinder
import android.speech.tts.TextT... | 1 | Kotlin | 1 | 1 | 4a9e1b66c508430b6024319658bb50eb5a313e64 | 11,980 | NovelLibrary | Apache License 2.0 |
Robot/src/main/kotlin/ca/warp7/frc2019/helper/SpeedControl.kt | Team865 | 164,211,301 | false | null | @file:Suppress("unused")
package ca.warp7.frc2019.helper
import edu.wpi.first.wpilibj.SpeedController
import edu.wpi.first.wpilibj.TimedRobot
import kotlin.math.absoluteValue
import kotlin.math.min
import kotlin.math.withSign
private class LinearRampedSpeedController(ramp: Double, val setter: (Double) -> Unit) : Spe... | 1 | null | 1 | 3 | 2e54e671b0622ed082677cf048d58e8deec3ec56 | 1,788 | FRC-2019 | MIT License |
matrix-sdk-android/src/test/java/org/matrix/android/sdk/internal/session/room/location/DefaultCheckIfExistingActiveLiveTaskTest.kt | tchapgouv | 340,329,238 | false | {"Kotlin": 15930464, "HTML": 68524, "Shell": 57406, "Java": 28010, "Python": 25875, "FreeMarker": 7662, "JavaScript": 6925, "Ruby": 1587} | /*
* Copyright (c) 2022 The im4collab1.pal.co.id 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 requi... | 75 | Kotlin | 6 | 9 | b248ca2dbb0953761d2780e4fba756acc3899958 | 3,871 | tchap-android | Apache License 2.0 |
matrix-sdk-android/src/main/java/im/vector/matrix/android/internal/crypto/actions/SetDeviceVerificationAction.kt | saad100104006 | 212,864,777 | true | {"Kotlin": 3623105, "Java": 26427, "HTML": 22563, "Shell": 20524} | /*
* Copyright 2019 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 agreed ... | 2 | null | 0 | 2 | 588e5d6e63ecfee9d93ef3da5987b8deb59f412f | 1,956 | NovaChat | Apache License 2.0 |
compiler/light-classes/src/org/jetbrains/kotlin/asJava/classes/ultraLightMethod.kt | brandmooffin | 159,280,901 | true | {"Markdown": 55, "Gradle": 457, "Gradle Kotlin DSL": 204, "INI": 90, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 10, "Java": 5162, "Kotlin": 42342, "Proguard": 7, "XML": 1588, "Text": 8648, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpag... | /*
* Copyright 2010-2018 JetBrains s.r.o. 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.asJava.classes
import com.intellij.psi.*
import com.intellij.psi.impl.PsiImplUtil
import com.intellij.psi.impl.PsiSuperMethodI... | 0 | Kotlin | 0 | 0 | 4abcd9a053fa192c69574ca05027cc3a39944b9c | 6,499 | kotlin | Apache License 2.0 |
ocgena-domain/src/test/kotlin/ru/misterpotz/ocgena/serialization/SerializationTest.kt | MisterPotz | 605,293,662 | false | {"Kotlin": 749008, "TypeScript": 495751, "JavaScript": 36713, "CSS": 14489, "Python": 8026, "HTML": 3173, "Ruby": 285, "EJS": 274, "Java": 140} | package ru.misterpotz.ocgena.serialization
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.extension.ExtensionContext
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.ArgumentsProvider
import org.junit.jupit... | 0 | Kotlin | 0 | 1 | 32a25441882c4780ed6b964a24430ef086222b76 | 2,933 | ocgena | MIT License |
base_component/src/main/java/com/william/base_component/alias/BaseAlias.kt | Seachal | 357,416,143 | true | {"Kotlin": 166552, "Java": 22100} | package com.william.base_component.alias
import android.graphics.drawable.Drawable
import android.view.View
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.target.Target
import com.william.base_component.adapter.BaseRvViewHolder
import co... | 0 | null | 0 | 0 | e4dc012c41c599055e62316e2055daad3177fb9c | 2,585 | EasyKotlin | Apache License 2.0 |
fontawesome/src/de/msrd0/fontawesome/icons/FA_REPLY_ALL.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 0 | Kotlin | 0 | 0 | e757d073562077a753280bf412eebfc4a9121b33 | 1,789 | fontawesome-kt | Apache License 2.0 |
src/test/kotlin/dev/jtbw/scriptutils/RegexTests.kt | JeffWright | 552,149,166 | false | {"Kotlin": 28222} | package dev.jtbw.scriptutils
import org.junit.jupiter.api.Test
class RegexTests {
@Test
fun match() {
"the number is 42.".apply {
match(Regex("(\\d+)"))
.shouldBe("42")
matchOrNull(Regex("no(\\d+)"))
.shouldBe(null)
val (a, b, c... | 0 | Kotlin | 0 | 0 | 3afa9a4869ecb4e4634f5d35ac7222198c263f4f | 481 | scriptutils | Apache License 2.0 |
lavaplayer/src/main/java/com/sedmelluq/discord/lavaplayer/source/youtube/YoutubeSignatureCipher.kt | mixtape-bot | 397,835,411 | true | {"Kotlin": 781109, "Java": 315803} | package com.sedmelluq.discord.lavaplayer.source.youtube
import com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeCipherOperationType.*
/**
* Describes one signature cipher
*/
class YoutubeSignatureCipher {
private val operations = mutableListOf<YoutubeCipherOperation>()
var scriptTimestamp = ""
/... | 0 | Kotlin | 0 | 6 | 06b02d8e711930c52d8ca67ad6347a17ca352ba2 | 1,399 | lavaplayer | Apache License 2.0 |
app/src/main/java/com/cyc/sunnyweathercyc/logic/dao/PlaceDao.kt | cyccyccy | 262,980,652 | false | null | package com.cyc.sunnyweathercyc.logic.dao
import android.content.Context
import android.content.SharedPreferences
import androidx.core.content.edit
import com.cyc.sunnyweathercyc.SunnyWeatherApplication
import com.cyc.sunnyweathercyc.logic.model.Place
import com.google.gson.Gson
object PlaceDao {
fun savePlace(pl... | 0 | Kotlin | 0 | 1 | 955d2c9ec6acfe1611de03919bd8150c9594d69a | 801 | SunnyWeather_cyc | Apache License 2.0 |
app/src/main/java/com/hms/referenceapp/workouts/ui/eventcreation/EventCreationViewModel.kt | Explore-In-HMS | 403,880,929 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Kotlin": 62, "XML": 95, "Java": 32, "PureBasic": 1} | /*
* Copyright 2021. Explore in HMS. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | null | 1 | 1 | 3e810732a02b188ec68bca22d269c20e0e3ed485 | 3,662 | WorkoutsEvents | Apache License 2.0 |
shared/src/commonMain/kotlin/com/example/www/data/GitHubRepository.kt | stepmin | 866,513,009 | false | {"Kotlin": 25530, "Swift": 4836} | package com.example.www.data
import com.example.www.domain.model.Repositories
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.launch
class GitHubRepository(
private val gitHubApi: GitHubApi,
private val gitHubStorag... | 0 | Kotlin | 0 | 0 | 3d5c4faf115b83da9a6a710595b6fd68c561c98a | 865 | GitHubSearcherTool | Apache License 2.0 |
android/app/src/main/java/github/tornaco/android/thanos/dashboard/HeaderContent.kt | localhosts-A | 510,693,611 | false | {"Markdown": 5, "Text": 3, "Ignore List": 52, "Git Config": 1, "Java Properties": 3, "Gradle Kotlin DSL": 46, "Shell": 16, "Batchfile": 1, "Proguard": 16, "XML": 808, "Java": 1422, "Kotlin": 211, "INI": 9, "JSON": 47, "XSLT": 1, "Gradle": 5, "AIDL": 52, "Groovy": 15, "Checksums": 20, "Git Attributes": 2, "CMake": 1, "C... | /*
* (C) Copyright 2022 Thanox
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 1 | null | 1 | 1 | f700208dc340324d552260afdd6241b5897e6675 | 7,856 | Thanox | Apache License 2.0 |
feature-soracard-impl/src/main/kotlin/jp/co/soramitsu/soracard/impl/data/SoraCardApi.kt | soramitsu | 278,060,397 | false | {"Git Config": 1, "Gradle": 24, "Java Properties": 2, "Markdown": 3, "Shell": 1, "Text": 1, "Ignore List": 29, "Batchfile": 1, "Groovy": 1, "Kotlin": 1648, "XML": 425, "JSON": 15, "Gradle Kotlin DSL": 13, "TOML": 1, "YAML": 2, "Proguard": 1, "Java": 9} | package jp.co.soramitsu.soracard.impl.data
import jp.co.soramitsu.soracard.impl.domain.models.SoraPrice
import retrofit2.http.GET
interface SoraCardApi {
@GET
suspend fun getXorEuroPrice(): SoraPrice?
}
| 1 | null | 1 | 1 | 72de41d1d1445efdc55b75f0433123af1121a946 | 214 | fearless-Android | Apache License 2.0 |
src/main/kotlin/watersource/world/network/message/PlayerWaterMessage.kt | lemon-slice-studio | 266,243,377 | false | {"Java": 290275} | package watersource.world.network.message
import net.minecraft.client.Minecraft
import net.minecraft.nbt.CompoundTag
import net.minecraft.nbt.Tag
import net.minecraft.network.FriendlyByteBuf
import net.minecraft.world.entity.player.Player
import net.minecraftforge.network.NetworkDirection
import net.minecraftforge.net... | 20 | Kotlin | 8 | 7 | c6cb8b9bf6939c7b7ac3858f20c6e127dc436eeb | 1,074 | WaterSource | MIT License |
app/src/main/java/com/kilomobi/cosmo/domain/usecase/GetFilteredDevicesUseCase.kt | fkistner-dev | 751,512,153 | false | {"Kotlin": 62732} | package com.kilomobi.cosmo.domain.usecase
import com.kilomobi.cosmo.domain.model.CosmoDevice
class GetFilteredDevicesUseCase {
operator fun invoke(devices: List<CosmoDevice>, lightFilter: Float): List<CosmoDevice> {
return devices.filter { it.lightValue != null && it.lightValue <= lightFilter }
}
} | 0 | Kotlin | 0 | 0 | 3ced99f65969bc755061f42e85be367922c1cc98 | 317 | cosmo-android | MIT License |
feature/src/main/java/com/eoyeongbooyeong/mypage/edit_nickname/EditNicknameSideEffect.kt | Booyoungee | 819,817,364 | false | {"Kotlin": 356674} | package com.eoyeongbooyeong.mypage.edit_nickname
sealed class EditNicknameSideEffect {
data object NavigateUp : EditNicknameSideEffect()
}
| 1 | Kotlin | 0 | 1 | d6c0f529cda8a77973313baa3cf63786641c4deb | 144 | booyoungee-android | Apache License 2.0 |
compose-components/src/main/java/com/shivnasoft/compose_components/images/AppThumbnailImage.kt | rajndev | 530,397,235 | false | {"Kotlin": 70201} | package com.shivnasoft.compose_components.images
import android.net.Uri
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import... | 0 | Kotlin | 0 | 4 | dcd39ef036bbb722def242f5568846c678ff8e1b | 1,765 | compose-components | The Unlicense |
modules/feature/bars/impl/src/main/kotlin/kekmech/ru/feature_bars_impl/data/dto/RawMarksResponse.kt | tonykolomeytsev | 203,239,594 | false | null | package kekmech.ru.domain_bars.dto
internal class RawMarksResponse(
val payload: List<DisciplineRow>
)
internal class DisciplineRow(
val disciplineName: String,
val personName: String,
val assessmentType: String,
val units: String,
val activities: List<ControlActivityRow>
)
internal class Con... | 9 | null | 4 | 41 | 15c3c17e33d0ffffc0e269ad0cd6fe47b0bc971a | 678 | mpeiapp | MIT License |
mobile/src/main/java/io/github/tonnyl/latticify/data/SearchedMessageMatchPreNext.kt | TonnyL | 106,430,606 | false | null | package io.github.tonnyl.latticify.data
import com.google.gson.annotations.SerializedName
/**
* Created by lizhaotailang on 13/10/2017.
*/
data class SearchedMessageMatchPreNext(
@SerializedName("type")
val type: String,
@SerializedName("user")
val user: String,
@Serialize... | 2 | null | 4 | 43 | 4f8103fb6a5d46821bf459128dd9c93fb8b24e5f | 623 | Latticify | MIT License |
app/src/main/kotlin/no/nav/tiltakspenger/vedtak/routes/behandling/vilkår/kvp/KvpSaksopplysningDTO.kt | navikt | 487,246,438 | false | {"Kotlin": 1044388, "Shell": 1318, "Dockerfile": 495, "HTML": 45} | package no.nav.tiltakspenger.vedtak.routes.behandling.vilkår.kvp
import no.nav.tiltakspenger.libs.periodisering.PeriodeMedVerdi
import no.nav.tiltakspenger.saksbehandling.domene.vilkår.felles.Deltagelse
import no.nav.tiltakspenger.saksbehandling.domene.vilkår.felles.ÅrsakTilEndring
import no.nav.tiltakspenger.saksbeha... | 2 | Kotlin | 0 | 1 | e5295a1543d080919ecbada5e796e59baa089fa7 | 1,472 | tiltakspenger-vedtak | MIT License |
app-tracking-protection/vpn-impl/src/test/java/com/duckduckgo/mobile/android/vpn/service/notification/AppTpEnabledNotificationContentPluginTest.kt | duckduckgo | 78,869,127 | false | null | /*
* Copyright (c) 2023 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 84 | null | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 12,516 | Android | Apache License 2.0 |
adapter-out/rdb/src/main/kotlin/com/yapp/bol/group/member/MemberRepository.kt | onboard-github | 692,666,215 | false | {"Kotlin": 303169, "HTML": 80958, "Dockerfile": 553} | package com.yapp.bol.group.member
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
internal interface MemberRepository : JpaRepository<MemberEntity, Long>, CustomMemberRepository {
fun findByNickname(nickname: String): MemberEntity?
fun findByG... | 5 | Kotlin | 0 | 1 | 9d971563351974d993fa6fd1a51412e62fed2554 | 1,030 | onboard-be | Apache License 2.0 |
ui-common/src/main/java/com/facebook/fresco/ui/common/ControllerListener2.kt | facebook | 31,533,997 | false | {"Java": 2895425, "Kotlin": 1024596, "C++": 183862, "C": 53836, "Makefile": 10411, "Python": 10096, "Shell": 840} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.ui.common
import android.net.Uri
import com.facebook.infer.annotation.PropagatesNullable
import java... | 233 | Java | 3751 | 17,073 | dbb46cebfffeeabf289db5f4a8d64950ba1e020d | 3,528 | fresco | MIT License |
sqldelight-core/src/main/kotlin/com/squareup/sqldelight/core/compiler/TableInterfaceGenerator.kt | Zhao187 | 130,633,992 | true | {"Kotlin": 458331, "Java": 17791, "Shell": 1376} | /*
* Copyright (C) 2017 Square, 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 agre... | 0 | Kotlin | 0 | 0 | ae6d76c5fa7abe7f14dd41ab47b9b0b733b850d1 | 4,139 | sqldelight | Apache License 2.0 |
app/src/main/java/org/fossasia/openevent/general/order/OrderDetailsFragment.kt | Abhitiwari001 | 178,464,508 | false | null | package org.fossasia.openevent.general.order
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import a... | 0 | null | 0 | 1 | 7e6d70dbfcbeb014ac9dc02ccfd66cc575697c87 | 4,654 | open-event-android | Apache License 2.0 |
gluecodium/src/main/java/com/here/gluecodium/generator/dart/DartGeneratorSuite.kt | tigerninjas | 358,587,950 | true | {"Dart": 1304534, "Kotlin": 1271123, "C++": 1162134, "Swift": 854045, "HTML": 616238, "Java": 194252, "CMake": 125542, "C": 106845, "Shell": 22656, "ANTLR": 13466, "Python": 2387, "Batchfile": 125} | /*
* Copyright (C) 2016-2019 HERE Europe B.V.
*
* 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... | 0 | null | 1 | 0 | 9ea14ac55a6c422b7160a25c6fa60e0f11017723 | 21,907 | gluecodium | Apache License 2.0 |
app/src/main/java/com/octopus/moviesapp/data/repository/lists/ListsRepositoryImp.kt | b-alramlawi | 606,522,847 | false | {"Kotlin": 288183} | package com.octopus.moviesapp.data.repository.lists
import com.octopus.moviesapp.data.remote.response.lists.AddMovieToListResponse
import com.octopus.moviesapp.data.remote.response.lists.CreateListResponse
import com.octopus.moviesapp.data.remote.response.lists.CreatedListsDto
import com.octopus.moviesapp.data.remote.... | 0 | Kotlin | 0 | 0 | 81c315d24c34cb6a2d2fbbb4c12cf65ac0ae3826 | 1,222 | Movies_app | Apache License 2.0 |
src/main/kotlin/com/github/plaskowski/embeddedbrowserintellijplugin/ui/EmbeddedBrowserMainPanel.kt | plaskowski | 337,111,514 | false | null | package com.github.sanghojeon.baekplug.Browser
import com.intellij.icons.AllIcons
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.*
import com.intellij.openapi.ui.SimpleToolWindowPanel
import com.intellij.ui.jcef.JBCefBrowser
import java.awt.BorderLayout
import javax.swing.JPanel
pri... | 0 | null | 0 | 9 | 33720a012f72c5478c1559306c954aeb43bf2b50 | 2,762 | EmbeddedBrowserIntellijPlugin | Apache License 2.0 |
service/src/main/kotlin/com/jongmin/upbit/UpbitException.kt | jongmin92 | 397,954,845 | false | null | package com.jongmin.upbit
data class UpbitException(
val name: String,
override val message: String,
): RuntimeException(message)
| 0 | Kotlin | 4 | 5 | ce31d9b32fe4baa44807f5194f43b38a7b3d252d | 139 | spring-boot-starter-upbit | MIT License |
feature/project/src/main/java/com/yjh/project/ProjectViewModel.kt | yejihai1 | 642,629,204 | false | null | package com.yjh.project
import com.yjh.network.model.ProjectData
import com.yjh.network.retrofit.launchRequest
import com.yjh.ui.base.BaseViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.map
cla... | 0 | Kotlin | 0 | 1 | 44f678382bc1730193a2689422da88b2556f7c94 | 872 | Compose | Apache License 2.0 |
desktop/views/src/main/kotlin/com/soyle/stories/di/writer/WriterModule.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.di.writer
import com.soyle.stories.di.get
import com.soyle.stories.di.scoped
import com.soyle.stories.project.ProjectScope
import com.soyle.stories.writer.setDialogPreferences.SetDialogPreferencesController
import com.soyle.stories.writer.setDialogPreferences.SetDialogPreferencesControllerImp... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 2,143 | soyle-stories | Apache License 2.0 |
plugin/src/main/kotlin/com/nbadal/ktlint/KtlintConfigStorage.kt | nbadal | 294,476,903 | false | {"Kotlin": 89560, "Shell": 2769} | package com.nbadal.ktlint
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.openapi.pro... | 11 | Kotlin | 23 | 158 | 002e28fef42ac3a939c47c236799de6fdadc7a03 | 9,943 | ktlint-intellij-plugin | MIT License |
app/src/main/java/com/kickstarter/models/ShippingRule.kt | kickstarter | 76,278,501 | false | {"Kotlin": 5269841, "Java": 317201, "Ruby": 22177, "Shell": 6325, "Makefile": 3750} | package com.kickstarter.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class ShippingRule private constructor(
private val id: Long?,
private val cost: Double,
private val location: Location?,
private val estimatedMin: Double,
private val estimatedMax: Double
) :... | 8 | Kotlin | 990 | 5,752 | a9187fb484c4d12137c7919a2a53339d67cab0cb | 2,038 | android-oss | Apache License 2.0 |
Confroid/app/src/main/java/fr/uge/confroid/MainActivity.kt | alopesmendes | 317,221,345 | false | null | package fr.uge.confroid
import android.content.Context
import android.content.SharedPreferences
import android.content.res.Resources
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.MenuItem
import androidx.activity.viewModels
import androidx.annotation.RequiresApi
import an... | 1 | Kotlin | 0 | 1 | 7bbd2ae98de1b913a44e5113937de8cf020f3cbd | 7,108 | Android | Creative Commons Zero v1.0 Universal |
branches/dcc/src/main/java/dgca/wallet/app/android/dcc/settings/DccSettingsFragment.kt | eu-digital-green-certificates | 355,069,076 | false | null | /*
* ---license-start
* eu-digital-green-certificates / dgca-verifier-app-android
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 10 | Kotlin | 16 | 58 | b3d059cf726847cee896cc2fe90c6d7a7fc8c1a8 | 6,968 | dgca-wallet-app-android | Apache License 2.0 |
code/library/src/main/kotlin/org/fbme/lib/iec61499/stringify/ParameterDeclarationPrinter.kt | JetBrains | 267,360,098 | false | null | package org.fbme.lib.iec61499.stringify
import org.fbme.lib.iec61499.declarations.ParameterDeclaration
import org.jdom.Element
class ParameterDeclarationPrinter(declaration: ParameterDeclaration) :
DeclarationPrinterBase<ParameterDeclaration>(declaration, "VarDeclaration") {
override fun printDeclarationBody(... | 3 | JetBrains MPS | 12 | 17 | 821aebc97097a62be336018c55548fefe45ea66e | 1,221 | fbme | Apache License 2.0 |
app/src/main/java/com/lk/notizen2/utils/ViewModelFactory.kt | lena0204 | 159,709,634 | false | null | /*
* Copyright (c) 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 i... | 0 | Kotlin | 0 | 1 | f739b379629df0dc8901f59395a903b85f017421 | 992 | notizen | Apache License 2.0 |
lib/src/main/kotlin/com/lemonappdev/konsist/api/provider/KoInterfaceProvider.kt | LemonAppDev | 621,181,534 | false | {"Kotlin": 4854719, "Python": 17926} | package com.lemonappdev.konsist.api.provider
import com.lemonappdev.konsist.api.declaration.KoInterfaceDeclaration
/**
* An interface representing a Kotlin declaration that provides information about interfaces.
*/
interface KoInterfaceProvider : KoBaseProvider {
/**
* The interfaces present in the declara... | 6 | Kotlin | 27 | 995 | 603d19e179f59445c5f4707c1528a438e4595136 | 5,972 | konsist | Apache License 2.0 |
app/src/main/java/com/ng/ui/MainActivity.kt | gzehua | 271,437,672 | true | {"Java": 130968, "Kotlin": 75802, "Groovy": 223} | package com.ng.ui
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import butterknife.ButterKnife
import com.ng.nguilib.utils.LogUtils
import com.ng.ui.aty.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : App... | 1 | null | 0 | 0 | 8b9fbbb510d6386bef13287317d56e01719f3bed | 1,714 | NguiLib | Apache License 2.0 |
adapty-ui/src/main/java/com/adapty/ui/internal/text/TypefaceHolder.kt | adaptyteam | 635,216,932 | false | {"Kotlin": 341248} | @file:OptIn(InternalAdaptyApi::class)
package com.adapty.ui.internal.text
import android.content.Context
import android.graphics.Typeface
import androidx.annotation.RestrictTo
import androidx.core.content.res.ResourcesCompat
import androidx.core.graphics.TypefaceCompat
import com.adapty.internal.utils.InternalAdaptyA... | 2 | Kotlin | 2 | 20 | daf443ba2d297f3c71484c552a96cc576493324b | 1,552 | AdaptyUI-Android | MIT License |
androidApp/src/main/java/com/mongodb/passkeeper/android/ui/theme/Utils.kt | mongodb-developer | 486,861,827 | false | {"Kotlin": 21966, "Swift": 8842, "Ruby": 1782} | package com.mongodb.passkeeper.android.ui.theme
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.Composable... | 0 | Kotlin | 0 | 5 | 46bcd576f6d44e0aa0e1901ee03efada8e1ab1f7 | 932 | PassKeeper | Apache License 2.0 |
app/src/main/java/com/theone/demo/ui/fragment/base/BaseArticleFragment.kt | Theoneee | 473,409,123 | false | null | package com.theone.demo.ui.fragment.base
import android.annotation.SuppressLint
import android.view.View
import androidx.lifecycle.Observer
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.listener.OnItemChildClickListener
import com.theone.demo.R
import com.theone.demo.app.ut... | 0 | null | 4 | 6 | 66e7dd671635352c8039bc3bf47a715620347448 | 4,249 | QMUI-MVVM | Apache License 2.0 |
src/main/kotlin/com/sg/launcher/repository/UserTokenRepository.kt | sachin-goyal-github | 649,453,197 | false | null | package com.sg.launcher.repository
import com.sg.launcher.repository.entity.UserTokenEntity
import org.springframework.data.jpa.repository.JpaRepository
interface UserTokenRepository : JpaRepository<UserTokenEntity?, Long?> {
fun findByUserId(userId: Long?): Set<UserTokenEntity?>?
fun findByUserToken(userToke... | 0 | Kotlin | 0 | 0 | 06d4976e76f7fd70843c6bc935ce8f41fa5f714a | 351 | launcher | Apache License 2.0 |
android/src/main/java/com/mjstudio/reactnativenavermap/overlay/arrowheadpath/RNCNaverMapArrowheadPathManager.kt | mym0404 | 780,420,345 | false | null | package com.mjstudio.reactnativenavermap.overlay.arrowheadpath
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.uimanager.ThemedReactContext
import com.facebook.react.uimanager.annotations.ReactProp
import com.mjstudio.reactnativenavermap.RNCNaverMapArrowheadPathManagerSpec
import com.mjstudio.... | 6 | null | 7 | 87 | f2c49fd40659fe475a1a41a11f71d8fe470329c1 | 3,750 | react-native-naver-map | MIT License |
games-core/src/main/kotlin/net/zomis/games/api/Games.kt | Zomis | 125,767,793 | false | null | package net.zomis.games.api
import net.zomis.games.components.ExpandableGrid
import net.zomis.games.components.Grid
import net.zomis.games.components.GridImpl
object Games {
val api = GamesApi
val components = GamesComponents
}
object GamesComponents {
fun <T> grid(x: Int, y: Int, init: (x: Int, y: In... | 68 | Kotlin | 5 | 13 | bde1df0efa70ddbb51b53673cebba2d5631eb35a | 479 | Games | MIT License |
games-core/src/main/kotlin/net/zomis/games/api/Games.kt | Zomis | 125,767,793 | false | null | package net.zomis.games.api
import net.zomis.games.components.ExpandableGrid
import net.zomis.games.components.Grid
import net.zomis.games.components.GridImpl
object Games {
val api = GamesApi
val components = GamesComponents
}
object GamesComponents {
fun <T> grid(x: Int, y: Int, init: (x: Int, y: In... | 68 | Kotlin | 5 | 13 | bde1df0efa70ddbb51b53673cebba2d5631eb35a | 479 | Games | MIT License |
filesave/src/main/java/com/chicco/filesave/domain/UnknownSaveError.kt | drahovac | 342,925,986 | false | null | package com.chicco.filesave.domain
object UnknownSaveError : Throwable() | 0 | Kotlin | 1 | 2 | ac490dd099347183345e420e1f45a473cb5bde71 | 73 | android-file-save | Apache License 2.0 |
app/src/main/java/com/ismet/parkingzonemaddevs/ui/history/HistoryModule.kt | ismetullah | 182,444,010 | false | null | package com.ismet.parkingzonemaddevs.ui.history
import androidx.recyclerview.widget.LinearLayoutManager
import dagger.Module
import dagger.Provides
import java.util.*
@Module
class HistoryModule {
@Provides
fun provideHistoryAdapter(): HistoryAdapter {
return HistoryAdapter(ArrayList())
}
@P... | 0 | Kotlin | 0 | 0 | ff151fff5973fe5ffdda767e504932885101e641 | 466 | Parking---MadDevs | Apache License 2.0 |
src/main/kotlin/dayFolders/day6/removeNthFromEnd.kt | lilimapradhan9 | 255,344,059 | false | null | package dayFolders.day6
import dayFolders.models.ListNode
fun removeNthFromEnd(head: ListNode?, n: Int): ListNode? {
val dummy = ListNode(0)
dummy.next = head
var first: ListNode? = dummy
var second:ListNode? = dummy
var iterator = 0
while (iterator <= n) {
first = first?.next
... | 0 | Kotlin | 0 | 0 | 356cef0db9f0ba1106c308d33c13358077aa0674 | 494 | kotlin-problems | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_10544.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8359518, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(npc = 7576, x = 2631, z = 3076, height = 0, walkRadius = 5, direction = Direction.NORTH, static = false) //Larry
spawn_npc(npc = Npcs.HAZELMERE, x = 2677, z = 3088, height = 1, walkRadius = 5, direction = Direction.NORTH, static = false) //Hazelmere
spawn_npc(npc... | 36 | Kotlin | 138 | 32 | da66bb6d68ebae531ee325b909a6536e798b1144 | 3,324 | game | Apache License 2.0 |
app/src/main/java/com/cricket/test/ui/activity/MatchDetailActivity.kt | kpatil392 | 649,757,712 | false | null | package com.cricket.test.ui.activity
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.cricket.test.aaautils.PlayerInfo
import com.cricket.test.databinding.ActivityMatchDetailBinding
import com.cricket.te... | 1 | null | 1 | 1 | 9e71899ef431805a48eadd9658d0802871b5bd3f | 2,089 | CricketApp | The Unlicense |
common/common-redis/src/main/kotlin/com/blank/common/redis/handler/KeyPrefixHandler.kt | qq781846712 | 705,955,843 | false | {"Kotlin": 847346, "Vue": 376959, "TypeScript": 137544, "Java": 45954, "HTML": 29445, "SCSS": 19657, "JavaScript": 3399, "Batchfile": 2056, "Shell": 1786, "Dockerfile": 1306} | package com.blank.common.redis.handler
import cn.hutool.core.util.StrUtil
import org.redisson.api.NameMapper
/**
* redis缓存key前缀处理
*/
class KeyPrefixHandler(
private var keyPrefix: String
) : NameMapper {
init {
//前缀为空 则返回空前缀
this.keyPrefix = if (StrUtil.isBlank(keyPrefix)) "" else "$keyPrefi... | 1 | Kotlin | 0 | 0 | d14c56f4a4e6c777eadbb8b1b9d2743034c6a7f6 | 917 | Ruoyi-Vue-Plus-Kotlin | Apache License 2.0 |
faux-core/src/main/kotlin/io/polymorphicpanda/faux/core/debug/StatsHandler.kt | raniejade | 109,104,219 | false | null | package io.polymorphicpanda.faux.core.debug
import com.codahale.metrics.JmxReporter
import com.codahale.metrics.MetricRegistry
import com.codahale.metrics.Timer
import io.polymorphicpanda.faux.system.System
import java.util.concurrent.TimeUnit
object StatsHandler: MetricRegistry() {
private val statsReporter = Jm... | 0 | Kotlin | 0 | 0 | d204efdb3f602ecdd9bf9aae159d900bd5ac4f8e | 1,327 | faux | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/digitalprisonreportinglib/data/AthenaAndRedshiftCommonRepository.kt | ministryofjustice | 697,333,274 | false | {"Kotlin": 463140} | package uk.gov.justice.digital.hmpps.digitalprisonreportinglib.data
import org.apache.commons.lang3.time.StopWatch
import org.slf4j.LoggerFactory
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate
import uk.gov.justice.digita... | 7 | Kotlin | 1 | 2 | a04d8bf9dbfd81d903d0f6b5e632d693254d67c3 | 2,436 | hmpps-digital-prison-reporting-lib | MIT License |
domain/src/main/java/com/bankin/domain/repository/IResourceSearchRepository.kt | Ihebsahloul | 317,058,096 | false | null | package com.bankin.domain.repository
import com.bankin.domain.countries.model.Resource
import kotlinx.coroutines.flow.Flow
interface IResourceSearchRepository {
suspend fun searchCategoryRepositories(forceRefresh: Boolean): Flow<List<Resource>>
} | 0 | Kotlin | 0 | 1 | b1d9049d9ac754bba124e33b7a1f4d0a0291891e | 252 | BankinApp | Apache License 2.0 |
webwrap/src/main/java/com/artear/webwrap/presentation/webjs/WebJsEventManager.kt | Artear | 147,730,344 | false | null | package com.artear.webwrap.presentation.webjs
import android.webkit.ValueCallback
import android.webkit.WebView
import com.artear.injector.api.JsEventManager
import com.artear.injector.api.JsInterface
import com.artear.webwrap.WebWrapper
/**
* A web javascript event manager act like a mediator among your application... | 1 | null | 1 | 1 | 5b15391fac562b5da1ad3bc0b79270aba7da7707 | 2,181 | app_lib_webwrap_android | Apache License 2.0 |
samples/MiscellaneousSamplesKt/app/src/com/pdftron/android/pdfnetsdksamples/samples/PDFATest.kt | NityaNandPandey | 158,280,716 | false | {"Java": 7848044, "C++": 1336563, "C": 244200, "Objective-C": 10868, "HTML": 4282, "IDL": 642} | //---------------------------------------------------------------------------------------
// Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved.
// Consult legal.txt regarding legal and license information.
//---------------------------------------------------------------------------------------
packa... | 0 | Java | 0 | 1 | 7a61d488c718dcb1246ed168502a6a3e6921fc87 | 4,591 | AndroidPDF | Apache License 2.0 |
core/data/src/main/java/com/ahmetocak/data/repository/firebase/storage/StorageRepositoryImpl.kt | AhmetOcak | 793,949,918 | false | {"Kotlin": 406065} | package com.ahmetocak.data.repository.firebase.storage
import android.net.Uri
import com.ahmetocak.network.datasource.firebase.storage.StorageRemoteDataSource
import com.google.android.gms.tasks.Task
import com.google.firebase.storage.UploadTask
import javax.inject.Inject
class StorageRepositoryImpl @Inject construct... | 0 | Kotlin | 0 | 0 | a0ab149e568e8d8b2ce281d84b55b94b71914ca6 | 2,048 | ChatApp | MIT License |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/vehicleassignment/AssignVehicleActionsViewModelFactory.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.vehicleassignment
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.daimler.mbmobilesdk.vehiclestage.StageConfig
internal class AssignVehicleActionsViewModelFactory(
private val app: Application,
private va... | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 673 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailAction.kt | oldergod | 96,057,945 | true | null | package com.example.android.architecture.blueprints.todoapp.taskdetail
import com.example.android.architecture.blueprints.todoapp.mvibase.MviAction
sealed class TaskDetailAction : MviAction {
data class PopulateTaskAction(val taskId: String) : TaskDetailAction()
data class DeleteTaskAction(val taskId: String) : T... | 4 | Kotlin | 71 | 671 | 1352ba59453721c9f46200a1f10cd76515940bf0 | 485 | android-architecture | Apache License 2.0 |
plugins/src/main/java/me/lazy_assedninja/plugins/Google.kt | henryhuang1219 | 357,838,778 | false | null | package me.lazy_assedninja.plugins
@Suppress("unused")
object Google {
const val MATERIAL = "com.google.android.material:material:${DependenciesVersions.GOOGLE_MATERIAL}"
const val FIREBASE = "com.google.firebase:firebase-bom:${DependenciesVersions.FIREBASE}"
const val FIREBASE_CRASHLYTICS = "com.google.f... | 0 | Kotlin | 1 | 2 | 2f5a79974f8d6b6af516a8959824558324bab8ce | 685 | Android-Demo | Apache License 2.0 |
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra/SuperSwitch.kt | miuix-kotlin-multiplatform | 838,760,422 | false | {"Kotlin": 318213, "CSS": 2399, "HTML": 914, "JavaScript": 888, "Swift": 629} | package top.yukonga.miuix.kmp.extra
import androidx.compose.foundation.layout.RowScope
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberUpdatedState
import ... | 1 | Kotlin | 3 | 86 | a2fb9b68a72572bd3bfe01512408de4d9b656912 | 2,741 | miuix | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/srs/ui/symptoms/calendar/SrsSymptomsCalendarFragment.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.srs.ui.symptoms.calendar
import android.content.res.ColorStateList
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
impor... | 6 | null | 506 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 6,158 | cwa-app-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.