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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
js/js.tests/test/org/jetbrains/kotlin/js/test/ir/AbstractJsBlackBoxCodegenTestBase.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.js.test
import org.jetbrains.kotlin.js.test.handlers.*
import org.jetbrains.kotl... | 184 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 5,104 | kotlin | Apache License 2.0 |
android-kotlin/android-extensions-idea/testData/android/parcel/checker/constructors.kt | JetBrains | 60,701,247 | false | null | package test
import kotlinx.parcelize.Parcelize
import android.os.Parcelable
@Parcelize
class A : Parcelable
@Parcelize
class B(val firstName: String, val secondName: String) : Parcelable
@Parcelize
class C(val firstName: String, <error descr="[PARCELABLE_CONSTRUCTOR_PARAMETER_SHOULD_BE_VAL_OR_VAR] 'Parcelable' con... | 125 | null | 4813 | 857 | 8d22f48a9233679e85e42e8a7ed78bbff2c82ddb | 816 | android | Apache License 2.0 |
app/src/main/java/com/funnypaper/simme/data/local/entity/SplineEntity.kt | FunnyPaper | 731,113,350 | false | {"Kotlin": 146083} | package com.funnypaper.simme.data.local.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.PrimaryKey
import com.funnypaper.simme.domain.model.SplineModel
@Entity(
tableName = "spline",
foreignKeys = [
Fore... | 0 | Kotlin | 0 | 0 | 48ea4876ef47cfddbfa8a8b79324d164c7403df4 | 829 | SIMME | MIT License |
app/src/test/java/com/openwallet/ui/activity/fragment/resetpassword/model/ResetPasswordViewModelTest.kt | hsbc | 742,467,592 | false | {"Kotlin": 502702, "Java": 40426} | package com.openwallet.ui.activity.fragment.resetpassword.model
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.google.gson.JsonObject
import com.openwallet.app.AppViewModel
import com.openwallet.app.OpenWalletApplication
import com.openwallet.ext... | 0 | Kotlin | 0 | 1 | b72ac403ce1e38139ab42548967e08e6db347ddd | 4,335 | OpenWallet-aOS | Apache License 2.0 |
dsl/src/main/kotlin/cloudshift/awscdk/dsl/services/ec2/CfnVPCEndpointServicePermissionsPropsDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.ec2
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.collections.Collect... | 1 | Kotlin | 0 | 0 | 17c41bdaffb2e10d31b32eb2282b73dd18be09fa | 2,793 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/jaiselrahman/wastatus/ui/playlist/PlaylistViewModel.kt | jaiselrahman | 171,029,157 | false | null | package com.jaiselrahman.wastatus.ui.videos
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.jaiselrahman.wastatus.data.PlaylistDataSource
import com.jaiselrahman.wast... | 0 | null | 1 | 1 | 555be1b2ef99e873e044b1580ea0f2d08d125633 | 1,567 | WAStatus | Apache License 2.0 |
app-compose/src/androidTest/java/com/example/android/trackr/compose/ui/TagGroupTest.kt | android | 344,900,266 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 20 | Kotlin | 93 | 645 | 9b7c22d6e7b2782959389ed115730efcfcddc790 | 2,172 | trackr | Apache License 2.0 |
app/src/main/java/com/adriantache/bigfivepersonalitytest/json/Domain.kt | adriantache | 114,641,994 | false | null | package com.adriantache.bigfivepersonalitytest.json
import com.squareup.moshi.JsonQualifier
/**
* annotation for JSON domain field
**/
@Retention(AnnotationRetention.RUNTIME)
@JsonQualifier
annotation class Domain | 1 | Kotlin | 3 | 19 | d73e66303c3aab1e40c2018724deace321a1375b | 218 | Big-Five-Personality-Test | MIT License |
src/main/kotlin/com/skillw/pouvoir/internal/core/script/javascript/JSGlobal.kt | Glom-c | 396,683,163 | false | null | package com.skillw.pouvoir.internal.core.script.javascript
import com.skillw.pouvoir.Pouvoir
import com.skillw.pouvoir.internal.manager.PouConfig
import com.skillw.pouvoir.util.listSubFiles
import com.skillw.pouvoir.util.serverFolder
import taboolib.common.platform.function.warning
import java.io.File
import javax.scr... | 3 | Kotlin | 8 | 9 | 35b93485f5f4c2d5c534a2765ff7cfb8f34dd737 | 2,805 | Pouvoir | MIT License |
src/main/kotlin/no/nav/toi/kandidatvarsel/AzureAuthentication.kt | navikt | 768,528,587 | false | {"Kotlin": 92600, "Dockerfile": 255} | package no.nav.toi.kandidatvarsel
import com.auth0.jwk.JwkProviderBuilder
import com.auth0.jwk.SigningKeyNotFoundException
import com.auth0.jwt.JWT
import com.auth0.jwt.JWTVerifier
import com.auth0.jwt.algorithms.Algorithm
import com.auth0.jwt.exceptions.JWTVerificationException
import com.auth0.jwt.exceptions.Missing... | 0 | Kotlin | 0 | 0 | 5745dfd8430ee775675708eb089048340cf6d68a | 7,572 | rekrutteringsbistand-kandidatvarsel-api | MIT License |
src/Day04.kt | thomasreader | 573,047,664 | false | null | import java.io.Reader
fun main() {
val testInput = """
2-4,6-8
2-3,4-5
5-7,7-9
2-8,3-7
6-6,4-6
2-6,4-8
""".trimIndent()
check(partOne(testInput.reader()) == 2)
val input = file("Day04.txt")
println(partOne(input.bufferedReader()))
check(partTw... | 0 | Kotlin | 0 | 0 | eff121af4aa65f33e05eb5e65c97d2ee464d18a6 | 1,391 | advent-of-code-2022-kotlin | Apache License 2.0 |
bbfgradle/tmp/results/diffCompile/jorbvyg.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Different compile happens on:JVM ,JVM -Xnew-inference
fun foo(a: Any
) {
a as BooleanArray
a!!.size
}
| 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 107 | kotlinWithFuzzer | Apache License 2.0 |
admin/app/src/main/java/com/yazan98/groupyadmin/screens/ProfileScreen.kt | Yazan98 | 226,006,997 | false | {"Gradle": 6, "Java Properties": 4, "Shell": 2, "Text": 1, "Ignore List": 4, "Batchfile": 2, "Markdown": 1, "JSON": 2, "Proguard": 2, "Kotlin": 72, "XML": 143, "Java": 1} | package com.yazan98.groupyadmin.screens
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.yazan98.groupyadmin.R
import com.yazan98.groupyadmin.logic.ProfileRepository
import com.yazan98... | 1 | null | 1 | 1 | bbefd5b4a567982d31cfb70ec2adb2a9fbb35ca2 | 3,248 | Groupy | Apache License 2.0 |
src/pilha/estatica/pilhaInvertida/Main.kt | pedrofernandeslopes | 763,226,285 | false | {"Kotlin": 71189} | fun main(args: Array<String>) {
var pilha: Empilhavel = PilhaInvertida(7)
pilha.empilhar("Instituto")
pilha.empilhar("Federal")
println("Topo: ${pilha.espiar()}")
pilha.empilhar("de")
pilha.empilhar("Educação")
pilha.empilhar("Ciência")
pilha.empilhar("e")
println("Topo: ${pilha.espi... | 0 | Kotlin | 0 | 0 | 6d64070b507016a5b786a5269c1bb5bfa7742aa4 | 370 | estrutura-de-dados-ifba | MIT License |
graph/graph-adapter-input-rest-spring-mvc/src/test/kotlin/eu/tib/orkg/prototype/statements/application/BulkStatementControllerUnitTest.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2449567, "Cypher": 215872, "Python": 4880, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package eu.tib.orkg.prototype.statements.application
import com.ninjasquad.springmockk.MockkBean
import eu.tib.orkg.prototype.auth.api.AuthUseCase
import eu.tib.orkg.prototype.core.rest.ExceptionHandler
import eu.tib.orkg.prototype.statements.testing.fixtures.createResource
import eu.tib.orkg.prototype.statements.test... | 0 | Kotlin | 2 | 5 | a5eceabf6ae74cc5be5290aac6029ce585455ea5 | 11,932 | orkg-backend | MIT License |
plugins/client/graphql-kotlin-client-generator/src/test/data/jackson/union/unionquerywithinlinefragments/BasicUnion.kt | ExpediaGroup | 148,706,161 | false | null | package com.expediagroup.graphql.generated.unionquerywithinlinefragments
import com.expediagroup.graphql.client.Generated
import com.fasterxml.jackson.`annotation`.JsonSubTypes
import com.fasterxml.jackson.`annotation`.JsonTypeInfo
import com.fasterxml.jackson.`annotation`.JsonTypeInfo.As.PROPERTY
import com.fasterxml... | 51 | null | 340 | 1,717 | bce5bc46590c8a12a1c5a0a70970202660eea4bb | 1,674 | graphql-kotlin | Apache License 2.0 |
src/main/kotlin/com/pineypiney/game_engine/resources/text/Font.kt | PineyPiney | 491,900,499 | false | {"Kotlin": 679789, "GLSL": 33407} | package com.pineypiney.game_engine.resources.text
import com.pineypiney.game_engine.GameEngineI
import com.pineypiney.game_engine.objects.text.Text
import com.pineypiney.game_engine.objects.util.shapes.TextMesh
import com.pineypiney.game_engine.resources.shaders.Shader
import com.pineypiney.game_engine.resources.shade... | 0 | Kotlin | 0 | 0 | ea19730171692c9a12eee6d49fe2bbb545028274 | 1,568 | GameEngine | MIT License |
workshop/vertx/vertx-sqlclient-demo/src/test/kotlin/io/bluetape4k/workshop/sqlclient/model/User.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.workshop.sqlclient.model
import java.io.Serializable
data class User(
val id: Long,
val firstName: String,
val lastName: String,
): Serializable
| 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 181 | bluetape4k | MIT License |
kt-klaxon/src/main/kotlin/HelloFunction.kt | delabassee | 142,158,942 | false | null |
package com.delabassee
import com.beust.klaxon.*
data class Country(
@Json(name = "country")
val name: String,
val capital: String,
val population: Int )
fun hello(input: String): String {
val myCountries= listOf(
Country("Belgium", "Brussels", 11_190_846 ),
... | 0 | Kotlin | 0 | 0 | 74ce075e86936a247529f4c51d343ca1f475f2ce | 940 | fn-snippets | Apache License 2.0 |
app/src/main/java/za/co/nemesisnet/budgettracker/ui/nav/EnterExpenseDestination.kt | NemesisGuy | 716,458,071 | false | {"Kotlin": 45174} | package za.co.nemesisnet.budgettracker.ui.nav
import za.co.nemesisnet.budgettracker.R
object EnterExpenseDestination : NavigationDestination {
override val route = "enter_expense"
override val titleRes = R.string.enter_expense
}
| 0 | Kotlin | 0 | 0 | abafcbffb5dc73fdea3012b95b5d315dc0c250f9 | 240 | BudgetTracker | MIT License |
core/validation/src/commonMain/kotlin/io/spherelabs/validation/di/Koin.validation.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 917584, "Ruby": 6814, "Swift": 1128, "Shell": 1048} | package io.spherelabs.validation.di
import io.spherelabs.validation.DefaultEmailValidation
import io.spherelabs.validation.DefaultKeyPasswordValidation
import io.spherelabs.validation.DefaultNameValidation
import io.spherelabs.validation.DefaultPasswordValidation
import io.spherelabs.validation.DefaultWebsiteValidatio... | 18 | Kotlin | 27 | 236 | 902a0505c5eaf0f3848a5e06afaec98c1ed35584 | 939 | anypass-kmp | Apache License 2.0 |
cgps-core/src/main/java/com/genius/cgps/HardwareCGPS.kt | GeniusRUS | 140,468,471 | false | {"Kotlin": 72335} | @file:Suppress("UNUSED")
package com.genius.cgps
import android.Manifest
import android.content.Context
import android.location.*
import android.os.Build
import android.os.Bundle
import androidx.annotation.IntRange
import androidx.core.content.ContextCompat
import kotlinx.coroutines.*
import kotlinx.coroutines.channe... | 0 | Kotlin | 0 | 2 | d5c3e2ced7d53acec2744869b26b0c3368ebc834 | 11,405 | CGPS | Apache License 2.0 |
editor/src/main/java/good/damn/editor/anchors/internal/VEIAnchorableInternal.kt | GoodDamn | 850,249,504 | false | {"Kotlin": 68918, "Java": 700} | package good.damn.editor.anchors.internal
import android.graphics.Canvas
import android.graphics.PointF
interface VEIAnchorableInternal {
fun draw(
canvas: Canvas
)
fun checkAnchor(
from: PointF,
to: PointF,
touch: PointF
): PointF?
} | 0 | Kotlin | 0 | 1 | 7889c135f817b773958e4a5fcda1eeaaa9410505 | 287 | VectorEditorAndroid | MIT License |
plugins/markdown/core/src/org/intellij/plugins/markdown/fileActions/importFrom/googleDocs/GoogleDocsFileLoader.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. 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.fileActions.importFrom.googleDocs
import com.google.api.client.auth.oauth2.Credential
import com.google.api.client.googlea... | 233 | null | 4912 | 15,461 | 9fdd68f908db0b6bb6e08dc33fafb26e2e4712af | 4,397 | intellij-community | Apache License 2.0 |
sample/src/main/java/xyz/louiscad/splittiessample/AppInit.kt | AdamMc331 | 116,874,219 | false | null | /*
* Copyright (c) 2017. <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... | 1 | null | 1 | 1 | 8d321ef24a137e84301051fde22cca6686cffe32 | 996 | Splitties | Apache License 2.0 |
app/src/main/kotlin/ru/art2000/androraider/view/settings/ISettingsController.kt | ARTI1208 | 179,843,834 | false | null | package ru.art2000.androraider.view.settings
import javafx.scene.control.Button
import javafx.scene.control.TextField
import ru.art2000.androraider.arch.IController
interface ISettingsController : IController {
var javaSourcesPathSelectButton: Button
var apktoolPathSelectButton: Button
var frameworkFil... | 11 | Kotlin | 0 | 0 | a75ec6ceb09ba1d24ddb77afc63776b856f0197e | 533 | AnDroRaider | MIT License |
features/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/UnsupportedViewMapper.kt | DataDog | 219,536,756 | false | {"Kotlin": 7850465, "Java": 236752, "C": 79303, "Shell": 63027, "C++": 32351, "Python": 5556, "CMake": 2000} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.internal.recorder.mapper
i... | 54 | Kotlin | 57 | 140 | de8989f0056124457b3296a6d6c2d91b70f181aa | 2,486 | dd-sdk-android | Apache License 2.0 |
sd-client-app/src/jvmMain/kotlin/de/lostmekka/sdwuic/Main.kt | LostMekka | 600,748,935 | false | null | package de.lostmekka.sdwuic
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.material.Button
import androidx.compose.material.Checkbox
import androidx.compose.material.CircularProgressIndica... | 0 | Kotlin | 0 | 0 | 27029321b990924439d9b346cb8d522f70fd14a5 | 11,854 | stable-diffusion-webui-client | Apache License 2.0 |
clevertap-core/src/main/java/com/clevertap/android/sdk/inapp/customtemplates/CustomTemplatesExt.kt | CleverTap | 42,078,482 | false | {"Java": 1808395, "Kotlin": 1695745, "HTML": 10233} | package com.clevertap.android.sdk.inapp.customtemplates
import com.clevertap.android.sdk.inapp.customtemplates.CustomTemplate.FunctionBuilder
import com.clevertap.android.sdk.inapp.customtemplates.CustomTemplate.TemplateBuilder
/**
* Utility function to define a set of [CustomTemplate]s
*/
fun templatesSet(vararg t... | 9 | Java | 74 | 80 | 2968228861fc6584424c28e30ddc570994465d79 | 951 | clevertap-android-sdk | MIT License |
kommerce-users/src/main/kotlin/com/github/kommerce/users/repo/AiromemUsersRepo.kt | michalperlak | 247,168,850 | false | null | package com.github.kommerce.users.repo
import arrow.core.Option
import com.github.kommerce.common.repo.AiromemRepository
import com.github.kommerce.users.domain.Email
import com.github.kommerce.users.domain.User
import com.github.kommerce.users.domain.UserId
import java.nio.file.Path
class AiromemUsersRepo(path: Path... | 0 | Kotlin | 0 | 0 | 642fb6087e4a9ed8902c1fc5ef2927a6f324f657 | 777 | kommerce | MIT License |
js/js.ast/src/org/jetbrains/kotlin/js/backend/ast/jsScopes.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2017 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... | 132 | null | 5074 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 5,435 | kotlin | Apache License 2.0 |
app/src/main/java/io/chaldeaprjkt/gamespace/gamebar/SessionService.kt | crdroidandroid | 492,680,724 | false | null | /*
* Copyright (C) 2021 Chaldeaprjkt
*
* 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... | 2 | null | 9 | 8 | df6296d74d3a452374225eec55efaffed4cc5333 | 6,300 | android_packages_apps_GameSpace | Apache License 2.0 |
app/src/main/java/org/y20k/transistor/MainActivity.kt | CrepeTF | 342,317,736 | true | {"Kotlin": 333565} | /*
* MainActivity.kt
* Implements the MainActivity class
* MainActivity is the default activity that can host the player fragment and the settings fragment
*
* This file is part of
* TRANSISTOR - Radio App for Android
*
* Copyright (c) 2015-21 - Y20K.org
* Licensed under the MIT-License
* http://opensource.or... | 1 | Kotlin | 1 | 3 | 250e29996f8d6822a76b99016142eb8ab4ada9eb | 3,251 | Junction | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/seed/cas2/Cas2ApplicationsSeedJob.kt | ministryofjustice | 515,276,548 | false | null | package uk.gov.justice.digital.hmpps.approvedpremisesapi.seed.cas2
import org.slf4j.LoggerFactory
import org.springframework.core.io.DefaultResourceLoader
import org.springframework.util.FileCopyUtils
import uk.gov.justice.digital.hmpps.approvedpremisesapi.jpa.entity.Cas2ApplicationEntity
import uk.gov.justice.digital... | 32 | null | 2 | 4 | bc7d57577d3f4c2521132c4a3da340e23729b0e5 | 6,284 | hmpps-approved-premises-api | MIT License |
src/test/kotlin/no/nav/familie/ef/iverksett/brev/DistribuerVedtaksbrevTaskTest.kt | navikt | 357,821,728 | false | null | package no.nav.familie.ef.iverksett.brev
import io.mockk.every
import io.mockk.mockk
import io.mockk.slot
import io.mockk.verify
import no.nav.familie.ef.iverksett.iverksetting.domene.DistribuerVedtaksbrevResultat
import no.nav.familie.ef.iverksett.iverksetting.domene.JournalpostResultat
import no.nav.familie.ef.iverk... | 12 | Kotlin | 0 | 0 | 9785e50dc2f1dbc65ef4ab60e23282504f7a85b0 | 2,229 | familie-ef-iverksett | MIT License |
app/src/main/java/com/breezebengaldetergentproducts/features/damageProduct/api/GetDamageProductListRegRepository.kt | DebashisINT | 863,405,964 | false | {"Kotlin": 15991783, "Java": 1032672} | package com.breezebengaldetergentproducts.features.damageProduct.api
import android.content.Context
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.breezebengaldetergentproducts.app.FileUtils
import com.breezebengaldetergentproducts.base.BaseResponse
import com.breezebengaldeter... | 0 | Kotlin | 0 | 0 | 0cd8b29158b494893e3d7be77b87a725e3d49abf | 1,646 | BengalDetergentProducts | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/activities/SchedulesServiceTest.kt | ministryofjustice | 445,140,246 | false | {"Kotlin": 1290877, "Mustache": 1803, "Dockerfile": 1118} | @file:OptIn(ExperimentalCoroutinesApi::class)
package uk.gov.justice.digital.hmpps.prisonertonomisupdate.activities
import com.microsoft.applicationinsights.TelemetryClient
import jakarta.validation.ValidationException
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
import o... | 2 | Kotlin | 0 | 2 | cb523828b23bbf57983c5c99c67fee2821ef8a51 | 9,565 | hmpps-prisoner-to-nomis-update | MIT License |
compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/input/InputInLayerTest.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30 | Kotlin | 974 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 4,189 | androidx | Apache License 2.0 |
buildSrc/src/main/kotlin/constants.kt | AppsCDN | 362,898,757 | true | {"Kotlin": 59604, "Swift": 3832} | const val KOTLIN_VERSION = "1.4.31"
const val KTOR_VERSION = "1.5.2"
const val COROUTINES_VERSION = "1.4.3-native-mt"
| 0 | null | 0 | 1 | 50db02ebbab4baba74dab73410dbf6d966c9dd7e | 118 | CoinGecko-Kotlin | MIT License |
app/src/main/java/info/juanmendez/breedgallery/ui/breedlist/viewmodel/BreedObservable.kt | juanmendez | 121,443,075 | false | null | package info.juanmendez.breedgallery.ui.breedlist.viewmodel
import android.databinding.BaseObservable
import android.databinding.Bindable
import info.juanmendez.breedgallery.BR
import info.juanmendez.breedgallery.models.Breed
/**
* Created by <NAME> on 2/15/18.
*
* This is an observable used for recyclerView holde... | 0 | Kotlin | 0 | 1 | bb108ca4648466c66eebc437884388f9875dc9f7 | 586 | PetGallery | The Unlicense |
code/demo/src/main/kotlin/com/example/demo/DemoApplication.kt | Grenguar | 349,338,242 | false | {"TypeScript": 3438, "Kotlin": 2702, "JavaScript": 497, "Dockerfile": 142} | package com.example.demo
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import com.example.demo.DemoController
import org.springframework.context.annotation.Bean
@SpringBootApplication
class DemoApplication
fun main(args: Array<String>) {
runApplic... | 0 | TypeScript | 0 | 2 | 8c266ed07cfdadc55bf48d2348fc96ea0a9b702c | 353 | cdk-ecs-fargate-spring-secrets | MIT License |
src/main/kotlin/com/kiptechie/rooms/MemberAlreadyExistsException.kt | kiptechie | 430,393,558 | false | null | package com.kiptechie.rooms
class MemberAlreadyExistsException : Exception(
"There is already a member with that username in the room"
) | 0 | Kotlin | 0 | 1 | e5598239c5a42436c800fc242d754ada206c79c7 | 141 | ktor-chat | MIT License |
src/commonMain/kotlin/com/github/kotlinizer/mqtt/topic/TopicMatcher.kt | kotlinization | 182,853,094 | false | null | package com.github.kotlinizer.mqtt.topic
internal class TopicMatcher {
fun matches(subscribedTo: String, receivedOn: String): Boolean {
return if (subscribedTo.contains('#')) {
val subscribedPrefix = subscribedTo
.removeSuffix("#")
.removeSuffix("/")
... | 0 | Kotlin | 3 | 3 | 418eb2587ed2726d24e443fe537d50710fd481b3 | 434 | kotlin-mqtt-client | Apache License 2.0 |
app/src/main/java/net/xaethos/trackernotifier/StoryActivity.kt | xaethos | 42,404,910 | false | null | package net.xaethos.trackernotifier
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.CollapsingToolbarLayout
import android.support.design.widget.TabLayout
import android.support.v4.app.FragmentPagerAdapter
import android.support.v4.view.ViewPag... | 0 | Kotlin | 1 | 0 | 46f589eb8e4759a587dbc4a6d9fa5d4c33a8ff59 | 4,647 | tracker-notifier | MIT License |
navigation-material/src/main/java/com/google/accompanist/navigation/material/SheetContentHost.kt | google | 261,392,630 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 88 | null | 937 | 7,396 | 52a660d1988f838dc8b8ff84ee5f267b060b6e04 | 3,414 | accompanist | Apache License 2.0 |
hmpps-prisoner-search-indexer/src/test/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/indexer/integration/wiremock/IncentivesApiMockServer.kt | ministryofjustice | 636,804,116 | false | null | package uk.gov.justice.digital.hmpps.prisonersearchindexer.integration.wiremock
import com.github.tomakehurst.wiremock.WireMockServer
import com.github.tomakehurst.wiremock.client.WireMock.aResponse
import com.github.tomakehurst.wiremock.client.WireMock.get
import com.github.tomakehurst.wiremock.client.WireMock.getReq... | 1 | null | 1 | 2 | 2ac87f7349d61e3d274bcb20b11be285c5a50700 | 2,621 | hmpps-prisoner-search | MIT License |
app/src/main/java/com/mateuszcholyn/wallet/frontend/view/screen/categoryScreen/CategoryFormStateless.kt | mateusz-nalepa | 467,673,984 | false | {"Kotlin": 606018} | package com.mateuszcholyn.wallet.frontend.view.screen.categoryScreen
import android.annotation.SuppressLint
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.comp... | 0 | Kotlin | 0 | 0 | 3213bca91abc9aae68f43b5b2b627561ee1437b9 | 5,162 | wallet | Apache License 2.0 |
app/src/main/java/com/jacktor/batterylab/interfaces/views/MenuInterface.kt | jacktor-stan | 773,048,759 | false | {"Kotlin": 705997, "Java": 4558, "C++": 3298, "C": 458, "CMake": 284} | package com.jacktor.batterylab.interfaces.views
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.os.Build
import android.view.LayoutInflater
import android.widget.Toast
import androidx.appcompat.content.res.AppCompatRes... | 0 | Kotlin | 1 | 3 | 6409caae85d430339d94b8802c3a8ecfb7ab746f | 12,383 | battery-lab | Apache License 2.0 |
app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/KitsuInterceptor.kt | mihonapp | 743,704,912 | false | null | package eu.kanade.tachiyomi.data.track.kitsu
import eu.kanade.tachiyomi.BuildConfig
import kotlinx.serialization.json.Json
import okhttp3.Interceptor
import okhttp3.Response
import uy.kohesive.injekt.injectLazy
class KitsuInterceptor(private val kitsu: Kitsu) : Interceptor {
private val json: Json by injectLazy(... | 262 | null | 4 | 8,984 | 8f9a325895bb7b94c2ec92dd969094fc30b3b5e2 | 1,641 | mihon | Apache License 2.0 |
sample/src/main/java/net/mm2d/webclip/SettingsFragment.kt | TrendingTechnology | 201,249,129 | true | {"Kotlin": 104865} | /*
* Copyright (c) 2019 大前良介 (OHMAE Ryosuke)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
package net.mm2d.webclip
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.preference.PreferenceFragmentCompat
import net.mm2d.webc... | 0 | Kotlin | 0 | 0 | 31173de4d1a35e3e7cc58eabab5a3d2e78169d5d | 1,426 | touch-icon-extractor | MIT License |
app/src/test/java/FileReader.kt | Rahula-12 | 853,794,873 | false | {"Kotlin": 97510} | package com.learning.mygenai
import androidx.appcompat.widget.ThemedSpinnerAdapter.Helper
import java.io.InputStreamReader
object FileReader {
fun readFile(file:String):String {
val inputStream=Helper::class.java.getResourceAsStream(file)
val builder=StringBuilder()
val inputStreamReader=... | 0 | Kotlin | 0 | 0 | c3f35c2a29c951d36e0b797a8fb6be3df47b67e4 | 494 | GenzAI | MIT License |
agiletoast/src/main/java/work/wanghao/agiletoast/widget/ToastStyle.kt | Doublemine | 81,313,767 | false | null | package work.wanghao.agiletoast.widget
/**
* @author doublemine
* Created on 2017/02/09 22:27.
* Summary:
*/
enum class ToastStyle {
NORMAL
,
CORNER
,
FILL
} | 1 | null | 1 | 3 | e3b7f50c83ce5c6b00add696657d372cf44e62dd | 189 | AgileToast | Apache License 2.0 |
rewrite-test/src/main/kotlin/org/openrewrite/java/NoWhitespaceAfterTest.kt | openrewrite | 263,442,622 | false | null | /*
* Copyright 2021 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 47 | null | 51 | 431 | 5515571843fc3ce486fbf9a83258779d90517a0a | 11,705 | rewrite | Apache License 2.0 |
core/src/main/java/io/blockv/core/client/Blockv.kt | VatomInc | 401,319,567 | true | {"Kotlin": 317235, "Java": 3833} | /*
* BlockV AG. Copyright (c) 2018, all rights reserved.
*
* Licensed under the BlockV SDK License (the "License"); you may not use this file or the BlockV SDK except in
* compliance with the License accompanying it. Unless required by applicable law or agreed to in writing, the BlockV
* SDK distributed under ... | 0 | null | 0 | 1 | e306fc8255172df99eb0f63ba639c58960c29951 | 8,179 | android-sdk | RSA Message-Digest License |
app/src/main/java/ch/filmreel/model/MovieWithQuestionAndAnswers.kt | GenZHAW | 539,026,296 | false | null | version https://git-lfs.github.com/spec/v1
oid sha256:75fcb71cc9b265c01d6bc491289adfefcf789030f8d189be1132ccba898a0c10
size 679
| 10 | Kotlin | 0 | 0 | c90f8a39bf5fd78130efb42b182bc1d4010c0479 | 128 | FILMREEL | Apache License 2.0 |
app/src/main/java/com/henrikherzig/playintegritychecker/attestation/Requests.kt | herzhenr | 588,969,794 | false | {"Kotlin": 118298, "Java": 4275} | package com.henrikherzig.playintegritychecker.attestation
import android.content.ContentValues
import android.util.Log
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.ResponseBody
import org.json.JSONObject
/**
* sends generic api call and checks for errors in the response
... | 5 | Kotlin | 10 | 91 | 8361fc92f2f7c5afd48ff76274e5be9f3acdf2ab | 1,366 | spic-android | MIT License |
idea/testData/quickfix/addStarProjections/inner/inner7.kt | JakeWharton | 99,388,807 | true | null | // "Add star projections" "true"
class A {
class B<T> {
inner class C<U> {
inner class D
fun test(x: Any) = x is D<caret>
}
}
} | 284 | Kotlin | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 175 | kotlin | Apache License 2.0 |
core/network/src/main/java/com/mburakcakir/network/di/NetworkModule.kt | mburakcakir | 812,291,624 | false | {"Kotlin": 81965} | package com.mburakcakir.network.di
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHtt... | 0 | Kotlin | 0 | 0 | 04961794a58fea1e0ee45a5ad5db9974da6da65f | 1,193 | Table | Apache License 2.0 |
clients/kotlin-server/generated/src/main/kotlin/org/openapitools/server/apis/VersionGroupApi.kt | cliffano | 464,411,689 | false | {"C++": 5121151, "Java": 4259235, "TypeScript": 3170746, "HTML": 2401291, "C#": 1569306, "Python": 1470207, "PHP": 1250759, "Scala": 1204291, "Rust": 1144006, "Kotlin": 966686, "JavaScript": 896371, "R": 547831, "Erlang": 504910, "Ada": 495819, "F#": 490032, "Shell": 436186, "Objective-C": 431570, "Go": 402480, "PowerS... | /**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 20220523
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not... | 1 | C++ | 2 | 4 | d2d9531d4febf5f82411f11ea5779aafd21e1bb9 | 1,240 | pokeapi-clients | MIT License |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/ToolWindowUtils.kt | JetBrains | 2,489,216 | false | null | package com.jetbrains.packagesearch.intellij.plugin.ui.toolwindow
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ex.ToolWindowEx
import com.intell... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 5,374 | intellij-community | Apache License 2.0 |
app/src/main/java/tool/xfy9326/schedule/utils/DownloadUtils.kt | XFY9326 | 325,915,275 | false | null | package tool.xfy9326.schedule.utils
import android.app.DownloadManager
import android.content.Context
import android.net.Uri
import android.os.Environment
import androidx.core.content.getSystemService
import androidx.core.net.toUri
import io.github.xfy9326.atools.ui.openUrlInBrowser
import tool.xfy9326.schedule.kt.PRO... | 1 | null | 1 | 5 | 6e4c0d01b16a02402c7445c9fc340998cabd5e81 | 1,626 | Schedule | Apache License 2.0 |
compiler/testData/diagnostics/testsWithJsStdLib/name/classAndFunction.kt | JakeWharton | 99,388,807 | false | null | package foo
class <!JS_NAME_CLASH!>A(val x: Int)<!>
<!JS_NAME_CLASH!>fun A()<!> {} | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 84 | kotlin | Apache License 2.0 |
app/src/main/java/com/abdallah_abdelazim/asteroidradar/MainActivity.kt | Abdallah-Abdelazim | 591,115,654 | false | null | package com.abdallah_abdelazim.asteroidradar
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.navigateUp
import androi... | 0 | Kotlin | 0 | 1 | 03475e4db5fe71e86774790e4157c3b5f5c6186b | 1,399 | nd940-asteroid-radar-app-android | MIT License |
plugin/src/main/kotlin/ru/astrainteractive/aspekt/event/tc/di/TCDependencies.kt | Astra-Interactive | 588,890,842 | false | {"Kotlin": 145506} | package ru.astrainteractive.aspekt.event.tc.di
import kotlinx.coroutines.CoroutineScope
import ru.astrainteractive.aspekt.AspeKt
import ru.astrainteractive.aspekt.di.CoreModule
import ru.astrainteractive.aspekt.plugin.PluginConfiguration
import ru.astrainteractive.astralibs.async.BukkitDispatchers
import ru.astrainter... | 0 | Kotlin | 0 | 0 | b249dc73f62c7d0d786a0805603550a8c2a03552 | 1,287 | AspeKt | MIT License |
spotlight/src/test/kotlin/no/nav/helse/e2e/AbstractE2ETest.kt | navikt | 767,438,587 | false | {"Kotlin": 49683, "Dockerfile": 118} | package no.nav.helse.e2e
import io.mockk.mockk
import io.mockk.verify
import no.nav.helse.Mediator
import no.nav.helse.TestRapidHelpers.hendelser
import no.nav.helse.Testdata.COMMAND_CONTEXT_ID
import no.nav.helse.Testdata.OPPRETTET
import no.nav.helse.Testmeldinger.halvTime
import no.nav.helse.Testmeldinger.helTime
i... | 0 | Kotlin | 0 | 0 | 9549a255cb15e832a13722fab0e1db2ceb698d56 | 2,369 | helse-spotlight | MIT License |
app/src/main/java/com/andria/wordcounter/di/wordcounter/WordCounterComponent.kt | AndriaNjoku | 328,239,741 | false | null | package com.andria.wordcounter.di.wordcounter
import android.app.Activity
import com.andria.wordcounter.bookSelectionScreen.BookSelectionActivity
import com.andria.wordcounter.wordCountScreen.WordCountActivity
import dagger.Subcomponent
import dagger.android.AndroidInjector
@Subcomponent(modules = [WordCounterModule:... | 1 | null | 1 | 1 | 931934004c9b99e9d703a141aa30ec7c2c914bcd | 706 | WordCounter | Apache License 2.0 |
app/src/main/java/com/github/satoshun/example/StackCardExampleActivity.kt | satoshun-android-example | 181,663,736 | false | null | package com.github.satoshun.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class StackCardExampleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.stack_card_act)
}
}
| 0 | Kotlin | 0 | 0 | 19b36dcaf4ec956d83cb25b4ad5f59502c575ce0 | 310 | MotionLayout | Apache License 2.0 |
app/src/main/java/com/github/satoshun/example/StackCardExampleActivity.kt | satoshun-android-example | 181,663,736 | false | null | package com.github.satoshun.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class StackCardExampleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.stack_card_act)
}
}
| 0 | Kotlin | 0 | 0 | 19b36dcaf4ec956d83cb25b4ad5f59502c575ce0 | 310 | MotionLayout | Apache License 2.0 |
app/src/main/java/com/lighttigerxiv/simple/mp/compose/screens/main/artist/artist_select_cover/SelectArtistCoverScreen.kt | lighttigerXIV | 547,473,082 | false | null | package com.lighttigerxiv.simple.mp.compose.screens.main.artist.artist_select_cover
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import android.util.Base64
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import and... | 2 | null | 3 | 98 | 0700d0a6618da48a94b73a4633f8c7582af7a387 | 8,384 | SimpleMP-Compose | MIT License |
plugin/src/main/kotlin/org/gradle/github/dependency/extractor/internal/GitHubRepositorySnapshotBuilder.kt | gradle | 434,412,403 | false | null | package org.gradle.github.dependency.extractor.internal
import org.gradle.github.dependency.extractor.internal.json.BaseGitHubManifest
import org.gradle.github.dependency.extractor.internal.json.GitHubDetector
import org.gradle.github.dependency.extractor.internal.json.GitHubJob
import org.gradle.github.dependency.ext... | 4 | Kotlin | 7 | 22 | 2062217b62d6b11965464f433889c1ee93ca3e4e | 3,196 | github-dependency-extractor | Apache License 2.0 |
examples/todo/src/jvmMain/kotlin/todo/api/Add.kt | varabyte | 389,223,226 | false | null | package todo.api
import com.varabyte.kobweb.api.Api
import com.varabyte.kobweb.api.ApiContext
import com.varabyte.kobweb.api.data.getValue
import com.varabyte.kobweb.api.http.HttpMethod
import todo.model.TodoStore
@Api
fun addTodo(ctx: ApiContext) {
if (ctx.req.method != HttpMethod.POST) return
val ownerId =... | 80 | null | 19 | 446 | 95f455fdff15a61af083d72f2a8c758d7c502bfd | 528 | kobweb | Apache License 2.0 |
app/src/main/java/com/bluelock/realdownloader/util/BroadcastService.kt | thezayin | 671,003,290 | false | {"Kotlin": 145430, "Java": 27329} | package com.bluelock.realdownloader.util
import android.app.DownloadManager
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Environment
import android.os.IBinder
import android.util.Lo... | 0 | Kotlin | 0 | 1 | ff273008c433f11770c9d41f1435854dbfa477e8 | 3,204 | Instagram-Video-Downloader | The Unlicense |
src/main/kotlin/org/bibletranslationtools/scriptureburrito/flavor/XFlavorSchema.kt | Bible-Translation-Tools | 804,953,693 | false | {"Kotlin": 157326} | package org.bibletranslationtools.scriptureburrito.flavor
import com.fasterxml.jackson.annotation.JsonInclude
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonPropertyOrder
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder(
"name"
)
class XFlavorSchema ... | 0 | Kotlin | 0 | 1 | 71170bc16a35ba4e5a69f80f1a68dc162260ad48 | 818 | kotlin-scripture-burrito | MIT License |
syftlib/src/test/java/org/openmined/syft/integration/AuthenticationTest.kt | menzi101 | 277,331,168 | true | {"Kotlin": 300127} | package org.openmined.syft.integration
import android.net.NetworkCapabilities
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.argumentCaptor
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.verify
import org.junit.Test
import o... | 0 | Kotlin | 0 | 0 | 24f2567ef4a2ec96dd6d6d9f0c17b117c1577b96 | 5,818 | KotlinSyft | Apache License 2.0 |
src/main/kotlin/ink/ptms/chemdah/core/conversation/ConversationLoader.kt | TabooLib | 338,114,548 | false | null | package ink.ptms.chemdah.core.conversation
import ink.ptms.chemdah.api.ChemdahAPI
import ink.ptms.chemdah.api.event.collect.ConversationEvents
import ink.ptms.chemdah.core.conversation.AgentType.Companion.toAgentType
import ink.ptms.chemdah.core.conversation.theme.ThemeChat
import ink.ptms.chemdah.core.conversation.th... | 4 | Kotlin | 28 | 37 | 47e61f162650a7a1fc48d4832fe1bf5f5e54cb6e | 4,414 | Chemdah | MIT License |
js/js.translator/testData/box/propertyAccess/defaultAccessorsWithJsName.kt | JakeWharton | 99,388,807 | false | null | // IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1288
package foo
class A {
@get:JsName("getX_") val x = 23
@get:JsName("getY_") @set:JsName("setY_") var y = 0
@JsName("z_") var z = 0
}
fun box(): String {
val a = A()
assertEquals(23, a.x)
assertEquals(0, a.y)
a.y = 42
assertEq... | 184 | null | 5691 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 570 | kotlin | Apache License 2.0 |
server/src/main/com/broll/gainea/server/core/goals/impl/all/G_MoveUnit.kt | Rolleander | 253,573,579 | false | {"Kotlin": 522423, "Java": 322590, "HTML": 1714, "CSS": 1069, "Shell": 104, "Batchfile": 100, "JavaScript": 24} | package com.broll.gainea.server.core.goals.impl.all
import com.broll.gainea.server.core.Game
import com.broll.gainea.server.core.bot.strategy.GoalStrategy
import com.broll.gainea.server.core.goals.CustomOccupyGoal
import com.broll.gainea.server.core.goals.GoalDifficulty
import com.broll.gainea.server.core.map.Area
imp... | 0 | Kotlin | 1 | 3 | ab47587c08ce2884269653a49c8fd8351cc4349f | 3,361 | Gainea | MIT License |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/DataBindingAdaptersTest.kt | covid-be-app | 281,650,940 | false | null | package de.rki.coronawarnapp.util
import android.content.Context
import android.content.res.Resources
import android.graphics.drawable.Drawable
import android.widget.Switch
import com.airbnb.lottie.LottieAnimationView
import com.airbnb.lottie.LottieDrawable
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.uti... | 6 | null | 8 | 55 | d556b0b9f29e76295b59be2a1ba89bc4cf6ec33b | 4,845 | cwa-app-android | Apache License 2.0 |
app/src/main/java/com/opsc/timesync/ui/report/ReportFragment.kt | johanngeustyn | 648,824,203 | false | null | package com.opsc.timesync.ui.report
import android.app.DatePickerDialog
import android.os.Build
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Butt... | 0 | Kotlin | 0 | 0 | 3d93f597b803c66247b16d1ea7a06efb6d50c9da | 4,950 | TimeSync | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/core/managers/AppConfigProvider.kt | WaltonChain | 263,802,120 | false | null | package io.horizontalsystems.bankwallet.core.managers
import io.horizontalsystems.bankwallet.BuildConfig
import io.horizontalsystems.bankwallet.R
import io.horizontalsystems.bankwallet.core.App
import io.horizontalsystems.bankwallet.core.IAppConfigProvider
import io.horizontalsystems.bankwallet.entities.Coin
import io... | 4 | null | 2 | 4 | ec877434f12db879faabcfbd69d8647f8c2eefdc | 10,860 | waltonchain-wallet-android | MIT License |
src/commonMain/kotlin/data/items/VindicatorsBandOfTriumph.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import character.Buff
import character.Stats
import kotlin.Array
import kotlin.Boolean
import kotlin.Double
import kotlin.Int
import kot... | 21 | null | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,763 | tbcsim | MIT License |
project-system-gradle-models/src/com/android/tools/idea/gradle/model/impl/IdeVariantImpl.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,448 | android | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/helpers/WebClientHelpers.kt | ministryofjustice | 445,140,246 | false | {"Kotlin": 1130745, "Mustache": 1803, "Dockerfile": 1118} | package uk.gov.justice.digital.hmpps.prisonertonomisupdate.helpers
import kotlinx.coroutines.reactor.awaitSingle
import kotlinx.coroutines.reactor.awaitSingleOrNull
import org.springframework.http.HttpStatus
import org.springframework.web.reactive.function.client.WebClient
import org.springframework.web.reactive.funct... | 1 | Kotlin | 0 | 2 | e168c734a06480b70bd771581ef2692e83f4fc1b | 2,769 | hmpps-prisoner-to-nomis-update | MIT License |
kotlin/samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/MainActivity.kt | arriolac | 208,501,497 | true | {"Gemfile.lock": 1, "Ruby": 5, "Markdown": 22, "Text": 1, "Ignore List": 1, "Swift": 44, "YAML": 1, "XML": 40, "JSON": 2, "OpenStep Property List": 5, "Shell": 2, "Gradle": 20, "Java Properties": 10, "Batchfile": 1, "EditorConfig": 1, "Kotlin": 167, "INI": 1, "Java": 1} | /*
* Copyright 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 agreed to ... | 0 | Kotlin | 0 | 1 | 8acff486c2fc80b1de2e1956170819f03fa0eafd | 2,375 | workflow | Apache License 2.0 |
xof-rest-api/src/main/kotlin/com/github/danzx/xof/entrypoint/rest/controller/HealthRestController.kt | dan-zx | 220,341,123 | false | null | package com.github.danzx.xof.entrypoint.rest.controller
import com.github.danzx.xof.entrypoint.rest.controller.BaseRestController.Companion.BASE_PATH
import com.github.danzx.xof.entrypoint.rest.response.SuccessResponse
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.anno... | 0 | Kotlin | 0 | 5 | 379eebd63fde5c645f822fb6d816f82d58d44b83 | 889 | xof-api | Apache License 2.0 |
src/main/no/nav/pto/veilarbfilter/service/MetricsReporter.kt | navikt | 207,477,352 | false | null | package no.nav.pto.veilarbfilter.service
import no.nav.common.metrics.Event
import no.nav.common.metrics.InfluxClient
import no.nav.common.metrics.MetricsClient
import no.nav.pto.veilarbfilter.config.dbQuery
import no.nav.pto.veilarbfilter.db.MetricsReporterInfo
import org.apache.commons.codec.digest.DigestUtils
impor... | 7 | Kotlin | 0 | 0 | d1bd1580d40e3cc248c51cf0c35d5cb6e85b62a7 | 8,734 | veilarbfilter | MIT License |
src/main/kotlin/xyz/jmullin/drifter/assets/PlaceholderSound.kt | JustinMullin | 65,239,521 | false | null | package xyz.jmullin.drifter.assets
import com.badlogic.gdx.audio.Sound
/**
* Used as a placeholder noop implementation of [Sound] for [DrifterAssets].
*/
class PlaceholderSound : Sound {
val PlaceholderMessage = "This is a placeholder asset; this method should never have been called!"
override fun pause() ... | 0 | Kotlin | 0 | 0 | df40d709d57861053e2c17b3ec8bb115ad2a377d | 2,021 | drifter-kotlin | MIT License |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/native/CocoaPodsIT.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.native
import org.jetbrains.kotlin.gradle.BaseGradleIT
import org.jetbrai... | 7 | null | 5478 | 44,267 | 7545472dd3b67d2ac5eb8024054e3e6ff7795bf6 | 48,209 | kotlin | Apache License 2.0 |
compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/PropertyReferenceLowering.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.jvm.lower
import org.jetbrains.kotlin.backend.common.FileLoweringPass
im... | 7 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 29,809 | kotlin | Apache License 2.0 |
src/main/java/ru/hollowhorizon/hollowengine/common/scripting/mod/ModScriptBase.kt | HollowHorizon | 586,593,959 | false | {"Kotlin": 945627, "Java": 23246, "GLSL": 2628} | /*
* MIT License
*
* Copyright (c) 2024 HollowHorizon
*
* 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, mo... | 0 | Kotlin | 6 | 27 | a81eb9337c22e97c950528d2e5b638ff81ce2d2e | 1,835 | HollowEngine | MIT License |
baseKit/src/main/java/me/shetj/base/tools/app/Tim.kt | SheTieJun | 137,007,462 | false | {"Kotlin": 841510, "Java": 165162} | package me.shetj.base.tools.app
import android.util.Log
import timber.log.Timber
import java.io.File
object Tim {
private val LOG_FILE_PATH = Utils.app.externalCacheDir?.path + File.separator + "baseLog.test"
/**
* 设置log自动在debug打开,在release关闭
* @param isDebug
*/
fun setLogAuto(isDebug: Boo... | 1 | Kotlin | 1 | 7 | b6935cc5983d32b51dc7c4850dd1e8f63a38a75b | 1,951 | BaseKit | MIT License |
src/main/kotlin/com/wutsi/flutter/sdui/Chip.kt | wutsi | 415,658,640 | false | null | package com.wutsi.flutter.sdui
import com.wutsi.flutter.sdui.enums.WidgetType
class Chip(
val color: String? = null,
val backgroundColor: String? = null,
val caption: String? = null,
val shadowColor: String? = null,
val padding: Double? = null,
val elevation: Double? = null,
val fontSize: ... | 1 | Kotlin | 1 | 2 | 0e39b6120b9cb6e8acf35c5d4d86cf95e75ebfae | 787 | sdui-kotlin | MIT License |
wasi-emscripten-host/src/commonMain/kotlin/wasi/preview1/type/EventFdReadwrite.kt | illarionov | 769,429,996 | false | null | /*
* Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file
* for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
* SPDX-License-Identifier: Apache-2.0
*/
package ru.pixnews.wasm.sqlite.open.helper.host... | 0 | null | 0 | 3 | 546dc6fce69d2d3704ddf34939ab498931b2d047 | 683 | wasm-sqlite-open-helper | Apache License 2.0 |
camera/integration-tests/extensionstestapp/src/main/java/androidx/camera/integration/extensions/utils/PermissionUtil.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 4,540 | androidx | Apache License 2.0 |
app/src/main/java/com/sakebook/android/nexustimer/model/Week.kt | sakebook | 60,192,310 | false | null | package com.sakebook.android.nexustimer.model
/**
* Created by sakemotoshinya on 16/06/08.
*/
enum class Week(val id: Long) {
Sun(10),
Mon(11),
Tue(12),
Wed(13),
Thu(14),
Fri(15),
Sat(16),
;
var enable = false
fun label(): String {
return when(enable) {
t... | 1 | Kotlin | 0 | 0 | c4a583de795c4c4c2127fbc0148bd3c58024642c | 376 | NexusTimer | Apache License 2.0 |
fxgl/src/main/kotlin/com/almasb/fxgl/scene/ProgressDialog.kt | Ravanla | 205,673,093 | false | null | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.app
import com.almasb.fxgl.core.concurrent.IOTask
import com.almasb.fxgl.dsl.FXGL
import com.almasb.fxgl.ui.DialogBox
/**
*
*
* @author <NAME> (<EMAIL>)
*/
class Pro... | 0 | null | 0 | 1 | 25433dbdebb4c358eabe622063fac0ccc8a910f6 | 577 | FXGL | MIT License |
noty-android/app/composeapp/src/androidTest/java/dev/shreyaspatil/noty/composeapp/component/ConnectivityStatusTest.kt | PatilShreyas | 303,164,275 | false | {"Kotlin": 494618, "Procfile": 59} | /*
* 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 wr... | 16 | Kotlin | 243 | 1,705 | 35d18480fe22904e68c25233eb704f97ae9b6200 | 1,920 | NotyKT | Apache License 2.0 |
noty-android/app/composeapp/src/androidTest/java/dev/shreyaspatil/noty/composeapp/component/ConnectivityStatusTest.kt | PatilShreyas | 303,164,275 | false | {"Kotlin": 494618, "Procfile": 59} | /*
* 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 wr... | 16 | Kotlin | 243 | 1,705 | 35d18480fe22904e68c25233eb704f97ae9b6200 | 1,920 | NotyKT | Apache License 2.0 |
dd-sdk-android/src/main/kotlin/com/datadog/android/rum/internal/instrumentation/GesturesTrackingStrategy.kt | slicelife | 366,814,258 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.rum.internal.instrumentation
import andr... | 0 | Kotlin | 0 | 0 | e2b11f61f57f7a6e55a4d1de299e30f6c4e8d237 | 1,078 | dd-sdk-android-1.8.0-maven | Apache License 2.0 |
core/designsystem/src/test/kotlin/com/merxury/blocker/core/designsystem/BackgroundScreenshotTests.kt | lihenggui | 115,417,337 | false | null | /*
* Copyright 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 applica... | 25 | null | 54 | 988 | 9696c391c64d1aa4a74384d22b4433fb7c67c890 | 2,372 | blocker | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.