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
app/src/main/java/com/sourav/bettere/adapters/HistoryAdapter.kt
Esarve
295,738,170
false
null
/* * Copyright 2020 <NAME> */ package com.sourav.bettere.adapters import com.chad.library.adapter.base.BaseQuickAdapter import com.chad.library.adapter.base.viewholder.BaseViewHolder import com.sourav.bettere.R import com.sourav.bettere.db.entity.ChargingHistory import com.sourav.bettere.utils.Constants import java...
0
Kotlin
0
1
bae943cca164cd226ee596971fe21019458e573a
1,092
BetterE
Apache License 2.0
app/src/main/java/com/example/filmshakerkotlin/di/MovieModule.kt
ibrahimaluc
699,057,469
false
{"Kotlin": 100839}
package com.example.filmshakerkotlin.di import com.example.filmshakerkotlin.data.remote.MovieApi import com.example.filmshakerkotlin.data.remote.repository.MovieRepositoryImpl import com.example.filmshakerkotlin.data.util.MovieConstant import com.example.filmshakerkotlin.domain.repository.MovieRepository import dagger...
0
Kotlin
0
0
b98f124758f421b1ef7ea09bb3f883a58c63a896
1,337
filmshaker
MIT License
s4-repository-layer/final-project/app/src/main/java/com/droidcon/easyinvoice/data/entities/InvoiceItem.kt
droidcon-academy
557,290,152
false
null
package com.droidcon.easyinvoice.data.entities import androidx.room.Entity import androidx.room.ForeignKey import androidx.room.PrimaryKey @Entity( tableName = "invoice_items", foreignKeys = [ ForeignKey( entity = Invoice::class, parentColumns = ["id"], childColumns...
0
Kotlin
0
0
df32960315a4a501893a478daf4f61ae4149cfb3
632
android-room-database-course-materials
Apache License 2.0
src/main/kotlin/org/techlook/net/client/kotlin/ConnectionLifetime.kt
braginxv
352,513,775
false
null
/* * The MIT License * * Copyright (c) 2022 <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, modif...
0
Kotlin
0
0
749dbfe237d3cfb099979e070716ae03dca839a8
1,837
netgym-kotlin
MIT License
sphinx/application/network/concepts/queries/concept-network-query-chat/src/main/java/chat/sphinx/concept_network_query_chat/model/podcast/PodcastValueDto.kt
stakwork
340,103,148
false
null
package chat.sphinx.concept_network_query_chat.model.podcast import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = true) data class PodcastValueDto( val model: PodcastModelDto, val destinations: List<PodcastDestinationDto>, )
90
null
11
18
7811b4f4e5a0cf8a26f343704cfced011b1f9bad
246
sphinx-kotlin
MIT License
app/src/main/kotlin/com/tezov/gofo/recycler/ScrollingHoldOneWay.kt
tezov
640,329,100
false
null
package com.tezov.gofo.recycler import android.annotation.SuppressLint import android.view.MotionEvent import android.view.View class ScrollingHoldOneWay: View.OnTouchListener { companion object{ const val MIN_DISTANCE_TO_LOCK_DIRECTION = 250.0f } private var direction:Boolean? = null private...
0
Kotlin
0
0
02d5d2125f6211e94410cda57af23469a4fa3a33
1,758
gofo
MIT License
animk_builder/src/main/java/com/mozhimen/animk/builder/bases/BaseAnimationBuilder.kt
mozhimen
766,991,738
false
{"Kotlin": 87819}
package com.mozhimen.animk.builder.bases import android.view.animation.Animation import android.view.animation.AnimationSet /** * @ClassName AnimationApi * @Description TODO * @Author mozhimen / <NAME> * @Date 2022/11/17 22:50 * @Version 1.0 */ abstract class BaseAnimationBuilder<BUILDER> : BaseAnimBuilder<BUIL...
0
Kotlin
1
1
83a2864ea8c7a2a3a421b297829a01bc3e8c3e53
351
AAnimKit
MIT License
src/test/kotlin/TestCharset.kt
only52607
269,326,871
false
null
import com.github.only52607.luakt.dsl.withJseStandardGlobals fun main() { withJseStandardGlobals { load(""" function string.urlEncode (srcURL) str = srcURL:gsub (".", function (c) local byte = c:byte() print(byte) if byte == 32 then return "...
1
null
3
10
e044015e835316a856cf60e590339e1bc0d3693c
567
luakt
MIT License
raspikiln-core/src/test/kotlin/org/raspikiln/test/YamlMapper.kt
wakawaka54
463,005,224
false
{"Kotlin": 115341, "TypeScript": 40081, "HTML": 3861, "SCSS": 2696, "JavaScript": 1423}
package org.raspikiln.test import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.dataformat.yaml.YAMLFactory import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator import com.fasterxml.jackson.module.kotlin.registerKotlinModule object YamlMapper { private val mapper = ObjectM...
0
Kotlin
0
0
4399b09d81c8cf0e7efd540d9acfdf9a4fb981bb
405
raspikiln
MIT License
activity_fragment/src/main/java/com/example/activity_fragments/Fragment1.kt
hendrik-roth
422,105,360
false
null
package com.example.activity_fragments import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.fragment_1.* // TODO: Rename parameter arguments, choose names that match // the fragmen...
0
Kotlin
0
0
9d7ba4e782d7eb3a13ab8c0193d1da2deee30549
1,716
kotlin-tutorium
MIT License
src/commonTest/kotlin/faraday/derived/mechanical/MassFlowRateTest.kt
Amagi82
289,812,027
false
null
package faraday.derived.mechanical import faraday.BaseTest internal class MassFlowRateTest : BaseTest{}
0
Kotlin
0
0
b0f08fc06e51344736ef0953a42061044de47f80
108
Faraday
Apache License 2.0
app/src/main/java/com/fjjukic/furniture4you/ui/components/Toolbar.kt
franjojosip
678,130,646
false
{"Kotlin": 435960}
package com.fjjukic.furniture4you.ui.components import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.material3.Icon import androidx.compose.material...
0
Kotlin
0
0
94dc87c76ce31fa260189458d4061640f696ddac
2,711
Furniture4You
MIT License
generator/src/main/kotlin/com/robohorse/robopojogenerator/properties/annotations/PlainJavaAnnotations.kt
robohorse
69,096,198
false
null
package com.robohorse.robopojogenerator.generator.consts.annotations sealed class PojoAnnotations( val classAnnotation: String = EMPTY_ANNOTATION, val annotation: String = EMPTY_ANNOTATION ) { object GSON : PojoAnnotations( annotation = "@SerializedName(\"%1\$s\")" ) object LOG...
11
null
85
713
b8a3d5eb52172b41bca551226c96f09e4ad99c94
980
RoboPOJOGenerator
MIT License
app/src/main/java/me/pisal/abaclone/scene/card/CardsViewModel.kt
pisalcoding
528,368,088
false
{"Kotlin": 97565, "Java": 10129}
package me.pisal.abaclone.scene.card import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import me.pisal.abaclone.model.entity.Card class CardsViewModel : ViewModel() { private val _cards = MutableLiveData<List<Card>>() }
0
Kotlin
0
3
eb85740b5a43588d74db121179092bc5816bf9e8
257
aba-ui-clone
Apache License 2.0
src/main/kotlin/com/tankobon/domain/models/Config.kt
fopwoc
445,686,330
false
null
package com.tankobon.domain.models import java.io.File data class Config( val server: ConfigServerInstance, val database: ConfigDatabase, val api: ConfigApi, val library: ConfigLibrary, ) data class ConfigServerInstance( val title: String, val description: String, val user: String = "user...
1
Kotlin
0
4
3007c8c711a3b5982b710cff58ca6923b49bead0
1,103
tankobon-backend-kotlin
MIT License
apzkr-pzpi-21-11-kokhanevych-pavlo/Task4-MobileClient/src/main/java/com/animal/hotel/presentation/utils/Event.kt
NureKokhanevychPavlo
810,819,177
false
{"Kotlin": 196074, "Java": 178994, "C++": 2061}
package com.animal.hotel.presentation.utils import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData class Event<T>( value: T ) { private var _value: T? = value fun get(): T? = _value.also { _value = null } } // --- helper methods / aliases ...
0
Kotlin
0
0
19d108f579c254e76375a995e3ae366bccfe143a
1,327
apzkr-pzpi-21-11-kokhanevych-pavlo
Apache License 2.0
data-android/model/src/main/java/dev/shuanghua/weather/data/android/model/params/DistrictParams.kt
shuanghua
479,336,029
false
null
package dev.shuanghua.weather.data.android.model.params data class DistrictParams( val cityId: String = "", val uid: String = "", val longitude: String = "", val latitude: String = "" ) fun DistrictParams.toMapParams(): MutableMap<String, String> = mutableMapOf( "cityid" to cityId, "lon" to longitude, "lat" to...
0
null
2
5
218cd475728687ed3c6bf63df793577ea7087bc7
365
jianmoweather
Apache License 2.0
sample/src/main/java/io/lamart/glyph/sample/masterdetail/MasterDetailActivity.kt
Lamartio
186,559,963
false
null
package io.lamart.glyph.sample.masterdetail import android.os.Bundle import android.view.ViewGroup import android.widget.FrameLayout import androidx.appcompat.app.AppCompatActivity import io.lamart.glyph.Dispose import io.lamart.glyph.GlyphScope import io.lamart.glyph.invoke import io.lamart.glyph.sample.masterdetail....
1
Kotlin
1
2
9a12ec4998e3802d237cce06fe66e11212e55a22
1,154
Glyph
Apache License 2.0
app/src/main/java/com/coinninja/coinkeeper/util/crypto/BitcoinUri.kt
coinninjadev
175,276,289
false
null
package com.coinninja.coinkeeper.util.crypto import android.net.Uri import app.dropbit.annotations.Mockable import app.dropbit.commons.currency.BTCCurrency import app.dropbit.commons.util.isNotNullOrEmpty import app.dropbit.commons.util.urlDecode import app.dropbit.commons.util.urlEncode import com.coinninja.coinkeepe...
2
Kotlin
0
6
d67d7c0b9cad27db94470231073c5d6cdda83cd0
9,870
dropbit-android
MIT License
compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/input/appendPartOfCharArray.kt
VexorMC
838,305,267
false
null
/* * Copyright 2022 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...
0
null
0
2
9730aa39ce1cafe408f28962a59b95b82c68587f
1,003
compose
Apache License 2.0
build-common/src/org/jetbrains/kotlin/build/report/metrics/RemoteBuildMetricsReporter.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.build.report.metrics import org.jetbrains.kotlin.build.report.RemoteReporter in...
154
Kotlin
5566
45,025
8a69904d02dd3e40fae5f2a1be4093d44a227788
397
kotlin
Apache License 2.0
plugins/kotlin/formatter/src/org/jetbrains/kotlin/idea/formatter/KotlinObsoleteCodeStyle.kt
JetBrains
2,489,216
false
null
// Copyright 2000-2022 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.jetbrains.kotlin.idea.formatter import com.intellij.psi.codeStyle.CodeStyleSettings import org.jetbrains.kotlin.idea.KotlinLanguage class KotlinOb...
284
null
5162
16,707
def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0
703
intellij-community
Apache License 2.0
plugins/kotlin/idea/tests/testData/inspectionsLocal/replaceManualRangeWithIndicesCalls/simpleFor.kt
ingokegel
72,937,917
true
null
// WITH_STDLIB fun test(args: Array<String>) { for (index in 0..ar<caret>gs.size - 1) { val out = args[index] } }
1
null
1
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
130
intellij-community
Apache License 2.0
libnavigation-base/src/main/java/com/mapbox/navigation/base/internal/route/LegWaypointFactory.kt
mapbox
87,455,763
false
null
package com.mapbox.navigation.base.internal.route import com.google.gson.JsonElement import com.mapbox.geojson.Point import com.mapbox.navigation.base.route.LegWaypoint object LegWaypointFactory { fun createLegWaypoint( location: Point, name: String, target: Point?, @LegWaypoint.T...
505
null
319
621
ad73c6011348cb9b24b92a369024ca06f48845ab
458
mapbox-navigation-android
Apache License 2.0
idea/testData/copyPaste/literal/DontEscapeEntries.to.kt
JakeWharton
99,388,807
true
null
val a = "begin <caret> end"
0
Kotlin
28
83
4383335168338df9bbbe2a63cb213a68d0858104
27
kotlin
Apache License 2.0
android/src/main/java/com/keymanager/KeyManagerModule.kt
thang2162
722,347,868
false
{"YAML": 5, "JSON with Comments": 1, "JSON": 9, "JavaScript": 10, "Ruby": 3, "Markdown": 4, "Text": 1, "Ignore List": 1, "Git Attributes": 1, "TSX": 3, "INI": 3, "Gradle": 4, "XML": 10, "Kotlin": 3, "Java Properties": 1, "Shell": 1, "Batchfile": 1, "Java": 4, "Dotenv": 1, "C": 1, "Swift": 3, "OpenStep Property List": 2...
package com.keymanager import com.facebook.react.bridge.Arguments import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.bridge.ReactContextBaseJavaModule import com.facebook.react.bridge.ReactMethod import com.facebook.react.bridge.Promise class KeyManagerModule(reactContext: ReactApplica...
0
Java
0
0
9c6b95ab7c4d1fef91bc9cd0e597955417bb9967
3,086
react-native-key-manager
MIT License
tmp/arrays/youTrackTests/993.kt
DaniilStepanov
228,623,440
false
null
// Original bug: KT-45405 enum class X { Y { val q = X.Y // here resolve works override fun q() { val x = 10 println(x) // not resolved } } ; open fun q () { val x = 10 println(x) // here resolve works } }
1
null
1
1
602285ec60b01eee473dcb0b08ce497b1c254983
292
bbfgradle
Apache License 2.0
app/src/main/java/com/vctapps/beacon/core/domain/UseCase.kt
victor-vct
98,255,743
false
null
package com.vctapps.beacon.core.domain interface UseCase<T>
1
null
1
1
87556291cc3c1d04ea6bd13242f9ce5a9568dc2f
60
beacon
Apache License 2.0
tmp/arrays/youTrackTests/7378.kt
DaniilStepanov
228,623,440
false
{"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4}
// Original bug: KT-27627 fun leftPad(value: String, length: Int? = null, char: Char? = null): String { val length = length ?: 4 val char = char ?: ' ' return value.padStart(length, char) }
1
null
12
1
602285ec60b01eee473dcb0b08ce497b1c254983
215
bbfgradle
Apache License 2.0
MLKit-Sample/module-vision/src/main/java/com/huawei/mlkit/sample/views/graphic/BaseGraphic.kt
FStranieri
430,136,682
false
{"Markdown": 40, "Text": 9, "XML": 483, "Java Properties": 7, "Gradle": 29, "Batchfile": 7, "Ignore List": 42, "Proguard": 23, "JSON": 9, "Kotlin": 91, "Java": 331, "Shell": 3, "GLSL": 4, "INI": 1}
/** * Copyright 2020. Huawei Technologies Co., Ltd. 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 req...
1
null
1
1
c7cd308b6c25d3b981b4fc91436f32adb4c98649
4,068
hms-ml-demo
Apache License 2.0
exchanger/src/integration-test/kotlin/com/d3/exchange/util/ExchangerServiceTestEnvironment.kt
soramitsu
244,327,608
false
{"Gradle": 14, "Shell": 4, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Groovy": 2, "Markdown": 7, "Kotlin": 116, "INI": 11, "Java Properties": 6, "Dockerfile": 2, "YAML": 19, "Python": 3, "Public Key": 23, "Java": 1}
/* * Copyright D3 Ledger, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package com.d3.exchange.util import com.d3.chainadapter.client.ReliableIrohaChainListener import com.d3.commons.model.IrohaCredential import com.d3.commons.sidechain.iroha.consumer.IrohaConsumerImpl import com.d3.commons.u...
1
null
1
1
f89adf925163279d1cb4c65fa35fb3cbd8230113
3,658
soranet-validator
Apache License 2.0
mf/contracts/src/main/kotlin/ch/maxant/kdc/mf/contracts/dto/CreatePartnerRelationshipCommand.kt
maxant
174,798,779
false
{"YAML": 21, "Text": 1, "Ignore List": 24, "Markdown": 25, "Shell": 4, "PlantUML": 4, "Maven POM": 25, "JSON": 21, "HTML": 28, "Java": 88, "Java Properties": 12, "XML": 4, "JavaScript": 68, "SQL": 49, "Dockerfile": 1, "CSS": 5, "INI": 4, "JSON with Comments": 3, "Browserslist": 1, "EditorConfig": 1, "Kotlin": 143}
package ch.maxant.kdc.mf.contracts.dto import java.time.LocalDateTime import java.util.* data class CreatePartnerRelationshipCommand( val partnerId: UUID, val foreignId: UUID, val role: Role, val start: LocalDateTime, val end: LocalDateTime, val additionalRelationshipsT...
3
Kotlin
2
4
88f4ddfbb7d062c3823b33d9e74cfc844cc9a23a
416
kafka-data-consistency
MIT License
winter/src/main/kotlin/io/jentz/winter/Winter.kt
beyama
107,642,059
false
null
package io.jentz.winter /** * The default [WinterApplication] object. * * It is recommended for applications to use this directly and for libraries it is recommended to * create a library specific object based on [WinterApplication]. * * Example: * * ``` * // configure application component * Winter.componen...
2
Kotlin
2
12
51b49c6da3bad69b549b343093322a86f0615703
692
winter
Apache License 2.0
Section5/video5.5/Services/app/src/main/java/vafa/mona/com/service/MainActivity.kt
Anugrahpackt
178,142,463
true
{"Java": 36215068, "Kotlin": 132222, "Assembly": 138}
package vafa.mona.com.service import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.view.View class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setConte...
0
Java
0
0
9eeea6097983b13e411afa21dcec6460c7d7ee70
660
Hands-on-Android-Application-Components-Services-and-Fragments
MIT License
ontrack-kdsl/src/main/java/net/nemerosa/ontrack/kdsl/spec/support/ServiceConfiguration.kt
nemerosa
19,351,480
false
null
package net.nemerosa.ontrack.kdsl.spec.support import com.fasterxml.jackson.databind.JsonNode data class ServiceConfiguration( val id: String, val data: JsonNode?, )
57
Kotlin
27
97
7c71a3047401e088ba0c6d43aa3a96422024857f
175
ontrack
MIT License
ui/ui-test/src/androidTest/java/androidx/ui/test/BitmapCapturingTest.kt
Sathawale27
284,157,908
true
{"Java Properties": 20, "Shell": 44, "Markdown": 43, "Java": 4516, "HTML": 17, "Kotlin": 3557, "Python": 28, "Proguard": 37, "Batchfile": 6, "JavaScript": 1, "CSS": 1, "TypeScript": 6, "Gradle Kotlin DSL": 2, "INI": 1, "CMake": 1, "C++": 2}
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1
null
1
1
549e3e3003cd308939ff31799cf1250e86d3e63e
6,583
androidx
Apache License 2.0
src/test/kotlin/org/elm/ide/docs/ElmDocumentationProviderTest.kt
intellij-elm
104,530,474
false
{"Kotlin": 1491844, "Elm": 19589, "Lex": 5823, "HTML": 2289}
package org.elm.ide.docs import com.intellij.codeInsight.documentation.DocumentationManager import com.intellij.psi.PsiElement import com.intellij.testFramework.UsefulTestCase.assertSameLines import org.elm.lang.ElmTestBase import org.intellij.lang.annotations.Language import org.junit.Test import org.junit.Assert.* ...
181
Kotlin
70
390
c6b56241eb293e0ba327a91059c57286bae9bf7e
1,036
intellij-elm
MIT License
idea/testData/quickfix/autoImports/notForThisLabel.kt
JakeWharton
99,388,807
true
null
// "class org.jetbrains.kotlin.idea.quickfix.ImportFix" "false" // ERROR: Unresolved reference: @String fun refer() { val v1 = this@String<caret> }
0
Kotlin
28
83
4383335168338df9bbbe2a63cb213a68d0858104
153
kotlin
Apache License 2.0
Introduction/String templates/test/tests.kt
Kotlin
193,907,476
false
null
import org.junit.Test import org.junit.Assert class TestStringTemplates() { private fun testMatch(date: String) = Assert.assertTrue("The pattern should match $date", date.matches(getPattern().toRegex())) private fun testMismatch(date: String) = Assert.assertFalse("The pattern shouldn't match $date", date.match...
7
null
53
88
81107f20825de058eb70e9ed7cd1067d003fbc61
610
kotlin-koans-edu
MIT License
app/src/main/java/com/suhotrub/conversations/ui/activities/groupinfo/GroupInfoPresenter.kt
suhotrub
166,423,819
false
null
package com.suhotrub.conversations.ui.activities.groupinfo import com.arellomobile.mvp.InjectViewState import com.arellomobile.mvp.MvpPresenter import com.suhotrub.conversations.base.di.scopes.ActivityScope import com.suhotrub.conversations.interactor.groups.GroupsInteractor import com.suhotrub.conversations.model.gro...
1
Kotlin
1
1
cd70093f5df47e0d93be5555154d38379ca2fcc4
1,178
ConversationApp
Apache License 2.0
shared/src/commonMain/kotlin/com/techbeloved/hymnbook/shared/data/ColumnAdapters.kt
techbeloved
133,724,406
false
{"Kotlin": 469411, "Java": 8639, "HTML": 4084, "Ruby": 2303, "Swift": 659}
package com.techbeloved.hymnbook.shared.data import app.cash.sqldelight.ColumnAdapter import kotlinx.datetime.Instant import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json internal inline fun <reified T> listColumnAdapter(json: Json) = object : ColumnAdapter<List<T>, String> { ...
3
Kotlin
11
8
00cbad6464a71f89392af48c6089932a2a86d457
1,050
hymnbook
MIT License
plugins/search-everywhere-ml/semantics/src/com/intellij/searchEverywhereMl/semantics/providers/SemanticFilesProvider.kt
JetBrains
2,489,216
false
null
package com.intellij.searchEverywhereMl.semantics.providers import com.intellij.ide.util.gotoByName.FilteringGotoByModel import com.intellij.openapi.project.Project import com.intellij.platform.ml.embeddings.search.services.FileEmbeddingsStorage import com.intellij.searchEverywhereMl.semantics.settings.SearchEverywher...
284
null
5162
16,707
def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0
650
intellij-community
Apache License 2.0
tmp/arrays/youTrackTests/3583.kt
DaniilStepanov
228,623,440
false
null
// Original bug: KT-38337 inline class Wrapper(val id: Int) data class InlineKey(val delegate: Map<Wrapper, String>) : Map<Wrapper, String> by delegate fun main() { val id = 1234 val wrap = Wrapper(id) val keys = InlineKey(mutableMapOf(wrap to "value")) println(keys[wrap]) }
1
null
8
1
602285ec60b01eee473dcb0b08ce497b1c254983
296
bbfgradle
Apache License 2.0
projects/court-case-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/integrations/delius/event/nsi/Nsi.kt
ministryofjustice
500,855,647
false
{"Kotlin": 3260353, "HTML": 54825, "D2": 27334, "Ruby": 24334, "Shell": 12351, "SCSS": 5980, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1288, "Python": 268}
package uk.gov.justice.digital.hmpps.integrations.delius.event.nsi import jakarta.persistence.Column import jakarta.persistence.Entity import jakarta.persistence.Id import jakarta.persistence.JoinColumn import jakarta.persistence.ManyToOne import jakarta.persistence.Table import org.hibernate.annotations.Immutable imp...
70
Kotlin
0
2
b0230d4eae3f0785c555cd5e8496cb35cbbfd1a5
2,148
hmpps-probation-integration-services
MIT License
library/src/androidTest/java/app/suprsend/event/PayloadCreatorTest.kt
suprsend
440,860,884
false
{"Kotlin": 280346}
package app.suprsend.event import app.suprsend.base.toKotlinJsonObject import junit.framework.Assert.assertEquals import org.json.JSONObject import org.junit.Test class PayloadCreatorTest { @Test fun testIdentityEventPayload() { val eventName = "\$identify" val identifiedId = "\$identified_i...
4
Kotlin
1
6
6d31470ec366fa1efe1595e32dfeb86159d2c717
3,678
suprsend-android-sdk
MIT License
forge/src/main/kotlin/io/github/techtastic/cc_vs/forge/CCVSModForge.kt
TechTastic
738,990,549
false
{"Kotlin": 16188, "Lua": 13353, "Java": 9692}
package io.github.techtastic.cc_vs.forge import io.github.techtastic.cc_vs.CCVSMod import io.github.techtastic.cc_vs.CCVSMod.init import io.github.techtastic.cc_vs.CCVSMod.initClient import io.github.techtastic.cc_vs.forge.config.CCVSConfig import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider i...
0
Kotlin
2
1
cd8f0afed588636efca4448c7c19cf3c86bddf70
1,353
CC-VS
Apache License 2.0
src/main/kotlin/lazy/moheads/utils/PlayerResponse.kt
lazyMods
393,726,311
false
null
package lazy.moheads.utils data class PlayerResponse(val name: String, val id: String)
0
Kotlin
0
0
75124e426ef5f94428a2e4ecd884328dc434086f
88
moheads
MIT License
ui-kit/src/main/java/com/quickblox/android_ui_kit/presentation/components/send/TypingTimer.kt
QuickBlox
637,751,718
false
{"Kotlin": 1833847}
/* * Created by Injoit on 1.6.2023. * Copyright © 2023 Quickblox. All rights reserved. * */ package com.quickblox.android_ui_kit.presentation.components.send import java.util.* class TypingTimer { private var timer: Timer? = null private var timerTask: TimerTask? = null private var isNotRunning = tru...
1
Kotlin
0
4
0ef856d22efb1540d6e238a073badbf31c03961a
1,040
android-ui-kit
MIT License
save-agent/src/linuxX64Main/kotlin/com/saveourtool/save/agent/utils/PlatformUtils.kt
saveourtool
300,279,336
false
null
/** * Platform dependent utility methods */ package com.saveourtool.save.agent.utils import platform.posix.SIGTERM import platform.posix.exit import platform.posix.getenv import platform.posix.signal import kotlinx.cinterop.staticCFunction import kotlinx.cinterop.toKString @Suppress("MemberNameEqualsClassName") a...
160
Kotlin
1
31
d83a26b101c0f809d39a6deab4e183de04cc7832
1,277
save-cloud
MIT License
app/src/org/commcare/logging/DataChangeLogger.kt
dimagi
20,939,877
false
{"Java": 3952611, "JavaScript": 466293, "Kotlin": 338683, "Python": 33986, "Shell": 1376, "Ruby": 894, "CSS": 824}
package org.commcare.logging import android.content.Context import android.net.Uri import android.os.Environment import org.apache.commons.lang3.StringUtils import org.commcare.CommCareApplication import org.commcare.android.logging.ReportingUtils import org.commcare.util.LogTypes import org.commcare.utils.CrashUtil i...
51
Java
27
38
b2e4ef9d6d322fb464bc805f42d4cc1fb84d5e72
5,978
commcare-android
Apache License 2.0
lib/src/main/kotlin/org/didcommx/didcomm/model/PackPlaintextResult.kt
sicpa-dlab
387,500,702
false
null
package org.didcommx.didcomm.model /** * Result of pack plaintext message operation. * * @property packedMessage A packed message as a JSON string * @property fromPriorIssuerKid Identifier (DID URL) of FromPrior issuer key */ data class PackPlaintextResult( val packedMessage: String, val fromPriorI...
5
Kotlin
13
12
993265c75c12924f7ded917e3c54282c327ab315
347
didcomm-jvm
Apache License 2.0
common/src/test/kotlin/gradle/exercise/SampleTestUtils.kt
paul-lysak
207,516,920
false
null
package gradle.exercise object SampleTestUtils { val egyptianTriangleCatheti = listOf(3, 4) val egyptianTriangleHypotenuse = 5 }
0
Kotlin
0
0
c8143e141e2e84678d2de05309ab82b565055991
138
gradle-exercise-template
Apache License 2.0
jvb/src/main/kotlin/org/jitsi/videobridge/ice/Harvesters.kt
jitsi
9,657,943
false
{"Kotlin": 2456014, "Java": 596513, "Perl": 20225, "Shell": 9565, "Python": 7802, "JavaScript": 1488, "HTML": 445, "Batchfile": 377}
/* * Copyright @ 2018 - present 8x8, 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...
170
Kotlin
989
2,900
b7dba8242cfaa84364bf6988cc097611346505c0
1,584
jitsi-videobridge
Apache License 2.0
app/src/main/java/ru/kabylin/andrey/vocabulator/ui/WordListActivity.kt
sysint64
140,518,543
false
{"Kotlin": 199316}
package ru.kabylin.andrey.vocabulator.ui import android.app.Activity import android.content.Intent import android.os.Bundle import android.support.v7.widget.LinearLayoutManager import android.view.Menu import android.view.MenuItem import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic....
0
Kotlin
0
1
c6fbadf51f9ca638c1037f75306d11d7c6652444
5,278
vocabulator-android-client
MIT License
8_kyu/Century_From_Year.kt
UlrichBerntien
439,630,417
false
{"Go": 293606, "Rust": 191729, "Python": 184557, "Lua": 137612, "Assembly": 89144, "C": 76738, "Julia": 35473, "Kotlin": 33204, "R": 27633, "C#": 20860, "Shell": 14326, "Forth": 3750, "PLpgSQL": 2117, "C++": 122}
fun century(number: Int): Int = (number+99)/100
0
Go
0
0
034d7f2bdcebc503b02877f2241e4dd143188b43
47
Codewars-Katas
MIT License
src/main/java/frc/robot/drivetrain/DrivetrainIO.kt
linpan0
799,102,890
false
{"Kotlin": 15499}
package frc.robot.drivetrain import org.littletonrobotics.junction.LogTable import org.littletonrobotics.junction.inputs.LoggableInputs interface DrivetrainIO { class DrivetrainIOInputs : LoggableInputs { var leftSpeed = 0.0 var leftDistance = 0.0 var leftVelocity = 0.0 var leftInverted = false ...
0
Kotlin
0
0
cb56a88dd9648af47d50e4ec80039696a38117be
1,671
Math526Project
MIT License
app/src/main/java/com/randomly/videos/trendingrepo/data/VideoDataResponse.kt
dont9s
230,916,289
false
null
package com.randomly.videos.trendingrepo.data import com.google.gson.annotations.SerializedName data class VideoDataResponse( @field:SerializedName("posts") public val postList: List<Post>, @field:SerializedName("page") val page: Int? = null ){ }
0
Kotlin
0
0
e51c675131a7add66e6faae5cd7e334617706a12
274
randomly-videos
Apache License 2.0
app/src/main/java/com/cityu/airship/MainActivity.kt
martingold
142,232,851
false
null
package com.cityu.airship import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.view.MotionEvent import android.widget.SeekBar import com.cityu.airship.model.FlightModel import com.cityu.airship.model.MotorSerializer import kotlinx.android.synthetic.main.activi...
0
Kotlin
0
0
1848d3e2306e46528446eb1c56418c03ad81c671
2,709
airship
MIT License
enode/src/main/java/org/enodeframework/messaging/ReplyMessage.kt
anruence
165,245,292
false
null
package org.enodeframework.messaging import org.enodeframework.commanding.CommandReturnType import org.enodeframework.commanding.CommandStatus import org.enodeframework.queue.MessageTypeCode import org.enodeframework.queue.QueueMessage import org.enodeframework.queue.reply.GenericReplyMessage /** * Represents an app...
1
null
55
205
22c81b98b36a6a221d026272594eaf7817145e0f
1,457
enode
MIT License
valiktor-core/src/main/kotlin/org/valiktor/i18n/formatters/AnyFormatter.kt
valiktor
127,146,179
false
null
/* * Copyright 2018-2019 https://www.valiktor.org * * 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...
32
null
36
405
1b8e71d82ff1a91b66815fc93536ebdf4d148650
947
valiktor
Apache License 2.0
LocalPayment/src/main/java/com/braintreepayments/api/localpayment/LocalPaymentResult.kt
braintree
21,631,528
false
{"Kotlin": 1036089, "Java": 700403, "Shell": 282}
package com.braintreepayments.api.localpayment /** * Result of tokenizing a local payment method */ sealed class LocalPaymentResult { /** * The local payment flow completed successfully. This [nonce] should be sent to your server. */ class Success internal constructor(val nonce: LocalPaymentNonce)...
23
Kotlin
233
409
92dabb74f14e6203259511f6b6a51367e3247fc5
614
braintree_android
MIT License
intellij-plugin/Edu-Cpp/src/com/jetbrains/edu/cpp/hyperskill/CppHyperskillConfigurator.kt
JetBrains
43,696,115
false
{"Kotlin": 5014435, "Java": 42267, "Python": 19649, "HTML": 14893, "CSS": 10327, "JavaScript": 302, "Shell": 71}
package com.jetbrains.edu.cpp.hyperskill import com.jetbrains.edu.cpp.CppConfigurator import com.jetbrains.edu.cpp.CppProjectSettings import com.jetbrains.edu.learning.stepik.hyperskill.HyperskillConfigurator class CppHyperskillConfigurator : HyperskillConfigurator<CppProjectSettings>(CppConfigurator())
7
Kotlin
49
150
9cec6c97d896f4485e76cf9a2a95f8a8dd21c982
306
educational-plugin
Apache License 2.0
java/impl/src/main/kotlin-2.11/org/taymyr/lagom/javadsl/openapi/OpenAPIRouterProvider.kt
taymyr
148,335,201
false
null
package org.taymyr.lagom.javadsl.openapi import com.lightbend.lagom.javadsl.api.Service import com.typesafe.config.Config import play.api.routing.Router import play.mvc.Http import play.mvc.Result import play.mvc.Results.notFound import play.mvc.Results.ok import play.routing.RoutingDsl import javax.inject.Provider @...
4
null
10
36
0c8c96580f5231f52c4ca1b2a38d78c168d18d9b
1,456
lagom-openapi
Apache License 2.0
app/src/main/java/com/alpriest/energystats/ui/settings/battery/ChargeTimePeriod.kt
alpriest
606,081,400
false
null
package com.alpriest.energystats.ui.settings.battery import com.alpriest.energystats.models.ChargeTime import com.alpriest.energystats.models.Time data class ChargeTimePeriod( var start: Time, var end: Time, var enabled: Boolean ) { val description: String get() = String.format("%02d:%02d to %...
6
Kotlin
3
3
c8255d688a230fc23241fe341da74f1becaf6616
634
EnergyStats-Android
MIT License
src/main/kotlin/dev/dexsr/gmod/palworld/toolbox/savegame/composeui/libint/ExternalDrag.desktop.kt
flammky
758,310,188
false
{"Kotlin": 1015888}
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
0
Kotlin
0
4
aabb51b6f5dc01802324cd4c79753f4e7635b6f7
16,685
PalToolbox
Apache License 2.0
feat-favorite-coins/src/main/java/com/mathroda/favorite_coins/FavoriteCoinsViewModel.kt
MathRoda
507,060,394
false
{"Kotlin": 366007}
package com.mathroda.favorite_coins import androidx.compose.runtime.State import androidx.compose.runtime.mutableStateOf import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.mathroda.common.state.DialogState import com.mathroda.common.state.MarketState import com.mathroda.core.state....
1
Kotlin
29
207
669f3fcd49a5cf4d5053a1eba0a8ef75486fc48a
6,185
DashCoin
Apache License 2.0
http_server/src/main/kotlin/Servers.kt
hexagonkt
56,139,239
false
null
package com.hexagonkt.http.server import com.hexagonkt.helpers.CodedException import com.hexagonkt.injection.InjectionManager /** Alias for routes' and filters' callbacks. Functions executed when a route is matched. */ typealias RouteCallback = Call.() -> Unit /** Alias for exceptions' callbacks. Functions executed ...
21
null
80
371
fa472b3a8ff18fe125108e4827aa869c89c98d6b
1,475
hexagon
MIT License
common/src/main/java/com/arman/springsecurityrest/common/model/Privilege.kt
coenvk
212,091,688
false
{"Kotlin": 83491, "HTML": 707}
package com.arman.springsecurityrest.common.model import com.fasterxml.jackson.annotation.JsonIgnore import com.fasterxml.jackson.annotation.JsonRootName import org.slf4j.LoggerFactory import javax.annotation.PostConstruct import javax.persistence.* @Entity @Table(name = "privileges", schema = "public") @JsonRootName...
3
Kotlin
0
1
1710e34415a6218966a54b594d11ba7a5c0c9d5f
1,832
spring-security-rest-api
MIT License
weather-brazil/app/src/main/java/br/com/weather/brazil/view/viewmodel/WeatherViewModel.kt
flavio-junior
752,072,931
false
{"Kotlin": 16881}
package br.com.weather.brazil.view.viewmodel import android.app.Application import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import br.com.weather.brazil.data.dto.Weather import br.com.weather.brazil.data.repository.WeatherRepository import br.com.we...
0
Kotlin
0
0
8e101ff50b978d07e6c476ec9f7b1d014ad9cc50
917
weather-brazil
MIT License
app/src/main/java/com/thuong/langnotenative/ui/home/HomeViewModel.kt
ThomasHandlag
667,011,286
false
null
package com.thuong.langnotenative.ui.home import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.viewModelScope import com.thuong.langnotenative.db.AppDao import com.thuong.langnotenative.db....
0
Kotlin
0
1
237401b50ebca19383c94ff7832dc3f509040962
4,273
langnotenative
MIT License
app/src/main/java/ua/polodarb/gmsflags/ui/screens/flagChange/extScreens/AddMultipleFlags.kt
polodarb
624,518,043
false
{"Kotlin": 524525, "AIDL": 1658}
package ua.polodarb.gmsflags.ui.screens.flagChange.extScreens import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.Row...
4
Kotlin
9
670
6bcb30b897ceed7362af0f9de1b74468e888d7cf
8,813
GMS-Flags
MIT License
src/main/kotlin/uk/gov/justice/digital/hmpps/makerecalldecisionapi/exception/RecommendationStatusUpdateException.kt
ministryofjustice
478,614,213
false
null
package uk.gov.justice.digital.hmpps.makerecalldecisionapi.exception class RecommendationStatusUpdateException(message: String, val error: String) : RuntimeException(message)
4
null
1
3
5a74ad5751d6cbab7d845183fc0a05fc4b26d1ad
176
make-recall-decision-api
MIT License
src/main/kotlin/ffc/entity/Link.kt
ffc-nectec
137,706,528
false
{"Kotlin": 159504}
/* * Copyright 2019 NECTEC * National Electronics and Computer Technology Center, Thailand * * 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/LICE...
2
Kotlin
0
0
6ec51b8cd89c3f9a26548fd0d25e1f5583df1ce8
1,335
entities
Apache License 2.0
src/main/kotlin/world/cepi/sit/SitCommand.kt
Project-Cepi
453,280,687
false
{"Kotlin": 6856}
package world.cepi.sit import world.cepi.kstom.command.kommand.Kommand object SitCommand : Kommand({ syntax().onlyPlayers { if (!player.isOnGround) return@onlyPlayers Sit.sit(player, player.instance!!, player.position) } }, "sit")
11
Kotlin
0
1
851eeda547156308045d358d2ebd80b80968b7ee
257
Sit
MIT License
socketio/src/commonMain/kotlin/io/dyte/socketio/engine/EngineParser.kt
dyte-io
707,181,109
false
{"Kotlin": 143378, "JavaScript": 5696, "Ruby": 1701, "Swift": 456}
package io.dyte.socketio.engine import kotlin.io.encoding.Base64 import kotlin.io.encoding.ExperimentalEncodingApi import kotlinx.serialization.decodeFromString import kotlinx.serialization.json.Json object EnginePacketParser { val protocol = 4 val SEPARATOR = (30).toChar() val ERROR_PACKET = EnginePacket.Er...
2
Kotlin
0
2
2621fdeaf212b92307e1f076629c51cd175da727
2,665
socketio-kotlin
MIT License
shared/src/commonMain/kotlin/co/touchlab/kampkit/models/UserDto.kt
spectrumIG
430,730,147
false
null
package co.touchlab.kampkit.models import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable data class CredentialRequest( @SerialName("password") val password: String, @SerialName("username") val username: String )
0
Kotlin
0
0
ba1b1173065907f31873456799bc2de4406c5ce0
272
kmm-rest-call-playground
Apache License 2.0
src/main/kotlin/dev/crashteam/uzumanalytics/controller/model/CategoryView.kt
crashteamdev
647,366,680
false
{"Kotlin": 506950, "Dockerfile": 1056}
package dev.crashteam.keanalytics.controller.model class CategoryView { var categoryId: Long? = null var title: String? = null var adult: Boolean? = null var eco: Boolean? = null var productAmount: Long? = null var child: List<CategoryView>? = null }
3
Kotlin
0
0
92248351fccad7f3f6454a3721fee69449fb1d4b
276
uzum-analytics
Apache License 2.0
ktor-io/jvm/src/io/ktor/utils/io/errors/IOException.kt
LouisCAD
293,843,627
true
{"Kotlin": 4581040, "JavaScript": 775, "HTML": 165}
package io.ktor.utils.io.errors actual typealias IOException = java.io.IOException actual typealias EOFException = java.io.EOFException
0
null
0
1
76cb0b2453f5983ff21c38f1c0c8ee517ec2385e
138
ktor
Apache License 2.0
twitlin/src/common/main/kotlin/com/sorrowblue/twitlin/v2/users/impl/MutingResponse.kt
SorrowBlue
278,215,181
false
null
package com.sorrowblue.twitlin.v2.users.impl import kotlinx.serialization.Serializable @Serializable internal class MutingResponse(val data: Data) { @Serializable class Data(val muting: Boolean) }
0
Kotlin
0
1
a6f80a270cec89c91239837d590fe92ec869c4ff
208
Twitlin
MIT License
experiences/src/main/kotlin/io/rover/experiences/ui/blocks/web/WebViewModel.kt
mkj-gram
167,372,309
true
{"Gradle": 12, "Shell": 2, "Text": 3, "Ignore List": 8, "Batchfile": 1, "Markdown": 8, "Proguard": 9, "JSON": 5, "Kotlin": 239, "XML": 216, "Java": 255, "Java Properties": 1, "Checksums": 1292}
package io.rover.experiences.ui.blocks.web import io.rover.experiences.data.domain.WebViewBlock import java.net.URL class WebViewModel( private val webViewBlock: WebViewBlock ) : WebViewModelInterface { override val url: URL get() = webViewBlock.webView.url override val scrollingEnabled: Boolean...
0
Java
0
0
a5e155a1ed7d19b1cecd9a7b075e2852623a06bf
379
rover-android
Apache License 2.0
app/src/foss/java/me/blog/korn123/easydiary/activities/gms/drive/RecoverPhotoActivity.kt
TimMagee
208,467,729
true
{"Kotlin": 583300}
package me.blog.korn123.easydiary.gms.drive import androidx.appcompat.app.AppCompatActivity class RecoverPhotoActivity : AppCompatActivity()
0
null
0
0
2e83fc637cae8096c46c3d55e9675fb59aaf046b
143
aaf-easydiary
Apache License 2.0
src/test/kotlin/ktor/graphql/ExplorerTest.kt
excitement-engineer
145,306,525
false
null
package ktor.graphql import io.ktor.http.HttpHeaders import io.ktor.http.HttpMethod import io.ktor.http.HttpStatusCode import io.ktor.request.uri import io.ktor.routing.Routing import io.ktor.server.testing.* import ktor.graphql.helpers.* import org.spekframework.spek2.Spek import org.spekframework.spek2.style.specifi...
1
null
6
62
38c9fc87b7b0466fcfb6ff83479cbfe934e2f99b
5,468
ktor-graphql
MIT License
common/src/commonMain/kotlin/com/supertokens/sdk/common/JsonUtils.kt
Appstractive
656,572,792
false
null
package com.supertokens.sdk.common import kotlinx.serialization.json.JsonArray import kotlinx.serialization.json.JsonElement import kotlinx.serialization.json.JsonNull import kotlinx.serialization.json.JsonObject import kotlinx.serialization.json.JsonPrimitive import kotlinx.serialization.json.booleanOrNull import kot...
5
null
1
3
e4d0ff3664034d1c4981a0a2cdf58c3a053da2a7
2,987
supertokens-kt
Apache License 2.0
src/main/java/testkotlin/domain/Humans.kt
amanurat
54,444,051
false
null
package humantalks.domain import javax.persistence.* import javax.inject.* Entity Table(name="humans") open class Human() { Id GeneratedValue(strategy=GenerationType.AUTO) var id:Int? = null var name:String? = null var age:Int? = null } fun human (name:String, age:Int) :Human{ val human = Hu...
0
Kotlin
0
0
a508fde0b3478e65dd38bcd5b722d44ea3fc40e4
971
spring-kotlin-sample
Apache License 2.0
lib/src/main/kotlin/com/dbflow5/SqlUtils.kt
agrosner
24,161,015
false
null
@file:JvmName("SqlUtils") package com.dbflow5 import android.content.ContentValues import android.net.Uri import com.dbflow5.isNotNullOrEmpty import com.dbflow5.quoteIfNeeded import com.dbflow5.stripQuotes import com.dbflow5.config.FlowManager import com.dbflow5.database.DatabaseWrapper import com.dbflow5.query.NameA...
38
Kotlin
613
4,865
e1b6211dac6ddc0aa0c1c9a76a116478ccf92b86
6,830
DBFlow
MIT License
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppschallengesupportinterventionplanapi/model/request/UpsertDecisionAndActionsRequest.kt
ministryofjustice
797,799,207
false
{"Kotlin": 451673, "Mermaid": 31357, "Shell": 1890, "Dockerfile": 1387}
package uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.model.request import com.fasterxml.jackson.annotation.JsonFormat import io.swagger.v3.oas.annotations.media.Schema import jakarta.validation.constraints.Size import uk.gov.justice.digital.hmpps.hmppschallengesupportinterventionplanapi.enumer...
2
Kotlin
0
0
e7c97c8f0482ed16f5f61994c80555671cdc5543
2,337
hmpps-challenge-support-intervention-plan-api
MIT License
data/src/main/java/com/noomit/data/remote/RadioBrowserController.kt
tinted-knight
292,891,478
false
null
package com.noomit.data.remote import com.noomit.domain.entities.CategoryNetworkEntity import com.noomit.domain.entities.SearchRequest import com.noomit.domain.entities.StationNetworkEntity import retrofit2.http.Body import retrofit2.http.GET import retrofit2.http.POST import retrofit2.http.Path interface RadioBrowse...
0
Kotlin
0
1
32aab4a755daac92973a74509cf2f372ab4537c5
1,021
RadioAlarm04
Apache License 2.0
orchestration/stock/src/main/kotlin/com/example/stock/infra/ProductResponse.kt
luramarchanjo
210,160,105
false
{"Kotlin": 35075}
package com.example.stock.infra data class ProductResponse(val id: String, val name: String, val value: Double, val quantity: Double)
3
Kotlin
2
0
b47c5ec71ac006ecf510adf45e98601ea846141b
134
poc-saga-pattern
Apache License 2.0
core/src/main/kotlin/chat/rocket/core/model/DeleteResult.kt
RocketChat
108,411,604
false
{"Gradle": 7, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "Kotlin": 150, "Java": 3, "Java Properties": 1, "YAML": 1}
package chat.rocket.core.model import com.squareup.moshi.Json import se.ansman.kotshi.JsonSerializable @JsonSerializable data class DeleteResult( @Json(name = "_id") val id: String, @Json(name = "ts") val timestamp: Long?, val success: Boolean )
29
Kotlin
64
67
bb5fb852cc79050b8d52172337c15eb7002b9b12
260
Rocket.Chat.Kotlin.SDK
MIT License
core/src/main/kotlin/chat/rocket/core/model/DeleteResult.kt
RocketChat
108,411,604
false
{"Gradle": 7, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "Kotlin": 150, "Java": 3, "Java Properties": 1, "YAML": 1}
package chat.rocket.core.model import com.squareup.moshi.Json import se.ansman.kotshi.JsonSerializable @JsonSerializable data class DeleteResult( @Json(name = "_id") val id: String, @Json(name = "ts") val timestamp: Long?, val success: Boolean )
29
Kotlin
64
67
bb5fb852cc79050b8d52172337c15eb7002b9b12
260
Rocket.Chat.Kotlin.SDK
MIT License
prime-router/src/main/kotlin/cli/main.kt
mry-usds
327,974,571
true
{"SCSS": 604001, "Kotlin": 301060, "HTML": 35403, "CSS": 28617, "Shell": 25495, "Python": 2693, "Dockerfile": 1038}
@file:Suppress("unused", "unused") package gov.cdc.prime.router.cli import com.github.ajalt.clikt.core.CliktCommand import com.github.ajalt.clikt.parameters.groups.mutuallyExclusiveOptions import com.github.ajalt.clikt.parameters.groups.single import com.github.ajalt.clikt.parameters.options.convert import com.github...
0
null
0
0
dde4069b8fd8bf69896ac9f9bfab50e7672d4d6f
11,644
prime-data-hub
Apache License 2.0
app/src/main/java/me/li2/movies/ui/sort/SortAdapter.kt
li2
257,596,752
false
null
/* * Created by <NAME> on 2020-05-30. * https://github.com/li2 */ package me.li2.movies.ui.sort import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import com.jakewharton.rxbinding4.view.clicks import me.li2.android.common.rx.throttleFirstShort ...
0
Kotlin
0
3
0ccce03aea91bca506b7f1ed2ff3da7695293f2e
3,092
21-movies
Apache License 2.0
app/src/main/java/com/example/mvplayer/ListFragment.kt
pungpungpung
443,740,766
false
{"Kotlin": 45931}
package com.example.mvplayer import android.content.Intent import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.AdapterView import android.widget.ArrayAdapter import androidx.fragment.app.Fragment import androidx.recyclerview.widget.It...
0
Kotlin
0
0
ac4e3e3e77997f0e303b797279a1cda047ef586e
6,091
13Team_MobileProgramming
MIT License
plugins/kotlin/code-insight/impl-base/src/org/jetbrains/kotlin/idea/codeinsights/impl/base/RedundantIfInspectionBase.kt
ingokegel
72,937,917
false
null
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.kotlin.idea.codeinsights.impl.base import com.intellij.codeInspection.* import com.intellij.codeInspection.ProblemHighlightType.GENERIC_ERROR_OR_WARNING import com.intellij.cod...
233
null
4912
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
12,506
intellij-community
Apache License 2.0
app/src/main/java/com/example/navigo/data/network/SearchService.kt
sorourrokni
817,358,568
false
{"Kotlin": 119739}
package com.example.navigo.data.network import com.example.navigo.data.model.response.SearchResponse import retrofit2.Call import retrofit2.http.GET import retrofit2.http.Query interface SearchService { @GET("v1/search") fun search( @Query("term") term: String, @Query("lat") latitude: Double,...
0
Kotlin
0
0
2ca563b84c33615176f64c3cf5fd2d7681915418
392
Navigo
MIT License
vanguard/src/main/java/app/baianat/com/vanguard/views/spinner/SpinnerValidationCase.kt
baianat
308,973,922
false
null
package app.baianat.com.vanguard.views.spinner import android.view.View import android.widget.AdapterView import android.widget.CompoundButton import android.widget.Spinner import app.baianat.com.vanguard.utils.print import app.baianat.com.vanguard.validationCase.CaseArgs import app.baianat.com.vanguard.validationCase...
0
Kotlin
0
0
af1348de175f12002e9b1463cf2e8c8b778a385c
1,720
VanGuard
MIT License
src/main/kotlin/no/nav/familie/ks/sak/kjerne/behandling/steg/vedtak/refusjonEøs/RefusjonEøs.kt
navikt
533,308,075
false
{"Kotlin": 3823868, "Gherkin": 192343, "Shell": 1839, "Dockerfile": 467}
package no.nav.familie.ks.sak.kjerne.behandling.steg.vedtak.refusjonEøs import jakarta.persistence.Column import jakarta.persistence.Entity import jakarta.persistence.GeneratedValue import jakarta.persistence.GenerationType import jakarta.persistence.Id import jakarta.persistence.SequenceGenerator import jakarta.persi...
7
Kotlin
1
2
dfbae65595a8469c0e833ff6a26092bb713ff693
1,331
familie-ks-sak
MIT License
src/main/kotlin/de/yw/psyops/ui/UserInput.kt
AcidSepp
816,664,336
false
{"Kotlin": 39637, "Shell": 202}
package de.yw.psyops.ui import kotlinx.coroutines.isActive import kotlinx.coroutines.launch import kotlinx.coroutines.runBlocking import org.jline.terminal.Terminal class UserInput(private val printer: Printer, private val terminal: Terminal) { fun run() { runBlocking { terminal.enterRawMode(...
0
Kotlin
0
0
62d0ab9591ce2bd493b22921424b18b08f92e31a
1,819
PsyopsTool
The Unlicense
common/src/main/kotlin/org/jetbrains/teamcity/vault/VaultParameterSettings.kt
JetBrains
98,586,359
false
null
package org.jetbrains.teamcity.vault import org.jetbrains.teamcity.vault.VaultConstants.FeatureSettings.DEFAULT_ID import org.jetbrains.teamcity.vault.VaultConstants.ParameterSettings data class VaultParameterSettings( val namespace: String, val vaultQuery: String ) { fun toMap(): Map<String, String> = ma...
29
null
18
28
5c174cbe404547b1bb980766ac45bea40c971006
1,540
teamcity-hashicorp-vault-plugin
Apache License 2.0
Section 23 - Mais sobre Kotlin/Projects/LambdaOuClasseAnonima/src/EventListenerKotlin.kt
vilaJJ
861,494,712
false
{"Kotlin": 131603, "Java": 1684}
interface EventListenerKotlin { fun click() }
0
Kotlin
0
0
bbf9ccbd09aac27cadd8fd9fad226a86d68da992
49
Course_AndroidKotlinDevelopment_GF
The Unlicense