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/dscoding/paging3caching/data/remote/BeerDto.kt
diogosantos41
706,395,695
false
{"Kotlin": 18856}
package com.dscoding.paging3caching.data.remote data class BeerDto( val id: Int, val name: String, val tagline: String, val description: String, val first_brewed: String, val image_url: String? )
0
Kotlin
0
0
41e4b2f58fef284d2bd18d4d54cce760117d75c8
220
paging3-cache-android
MIT License
app/src/main/java/com/herry/test/app/main/MainActivity.kt
HerryPark
273,154,769
false
null
package com.herry.test.app.main import com.herry.test.R import com.herry.test.app.base.nav.BaseNavActivity class MainActivity : BaseNavActivity() { override fun getGraph(): Int = R.navigation.main_navigation }
0
Kotlin
1
3
d30435c01387614ec24a79ffd5afcdb89edf5298
216
HerryApiDemo
Apache License 2.0
format/d2v-format-common/src/test/kotlin/io/data2viz/format/FormatSpecifierTests.kt
yijunwu
207,939,886
true
{"Kotlin": 1013995, "HTML": 45385, "JavaScript": 6548}
@file:Suppress("FunctionName", "unused") package io.data2viz.format import io.data2viz.test.TestBase import io.data2viz.test.shouldThrow import kotlin.test.Test class FormatSpecifierTests : TestBase() { @Test fun formatSpecifier_throws_an_error_for_invalid_formats () { shouldThrow<IllegalArgumentExcepti...
0
Kotlin
0
0
733f9ac458755ab065becd16d7f001be21080f59
3,071
data2viz
Apache License 2.0
generators/test-generator/tests/org/jetbrains/kotlin/generators/util/TestGeneratorUtil.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.generators.util import org.intellij.lang.annotations.Language import java.io.File...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
1,806
kotlin
Apache License 2.0
time/src/iosMain/kotlin/com/merseyside/merseyLib/time/utils/PatternUtils.kt
Merseyside
396,607,192
false
null
package com.merseyside.merseyLib.time.utils import com.merseyside.merseyLib.time.utils.Pattern.* import com.merseyside.merseyLib.time.exception.TimeParseException import platform.Foundation.* internal fun patternToFormattedOptions(pattern: Pattern): ULong { return when(pattern) { is ISO_DATE_TIME -> { ...
0
Kotlin
0
0
ebef4db3b924440bdeaf0711164cab446e41ec5b
2,228
mersey-kmp-time
Apache License 2.0
jar-filter/src/test/kotlin/net/corda/gradle/jarfilter/RemoveAnnotationsTest.kt
corda
120,318,601
false
{"Kotlin": 810473, "Java": 383021, "Groovy": 76556, "Shell": 4346, "Batchfile": 106}
package net.corda.gradle.jarfilter import net.corda.gradle.unwanted.HasUnwantedFun import net.corda.gradle.unwanted.HasUnwantedVal import net.corda.gradle.unwanted.HasUnwantedVar import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.BeforeAll import org.junit.jupiter.api.Test import org.junit.jupiter....
17
Kotlin
35
24
aeb324e3b9cb523f55bc32541688b2e90d920791
6,235
corda-gradle-plugins
Apache License 2.0
processor/testuut/kotlin/src/main/java/com/instagram/common/json/annotation/processor/SomeKotlinStuff.kt
classicvalues
398,375,428
false
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.instagram.common.json.annotation.processor import com.instagram.common.json.annotation.JsonField import com.instagram....
1
null
0
1
896b663c2fefe09f00f841ae715aba5bc523f497
873
ig-json-parser
MIT License
projects/manage-supervision-and-delius/src/test/kotlin/uk/gov/justice/digital/hmpps/service/UserServiceTest.kt
ministryofjustice
500,855,647
false
{"Kotlin": 3705021, "HTML": 57595, "D2": 27334, "Ruby": 25392, "Shell": 12351, "SCSS": 6240, "HCL": 2712, "Dockerfile": 2414, "JavaScript": 1344, "Python": 268}
package uk.gov.justice.digital.hmpps.service import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.equalTo import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith import org.mockito.InjectMocks import org.mockito.Mock import org.mockito.junit.jupiter.MockitoExtension imp...
5
Kotlin
0
2
bafb32470fd72f96026e8e8c53a636778c6abacf
4,740
hmpps-probation-integration-services
MIT License
android/app/src/main/kotlin/by/matskevich/arkham_horror_statistic/MainActivity.kt
amatskevich
442,608,723
false
{"Dart": 38737, "Swift": 404, "Kotlin": 142, "Objective-C": 38}
package by.matskevich.arkham_horror_statistic import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
0
Dart
0
0
a10c2492738b068f3ea9fd7ff5eaddf9460d6b72
142
arkham_horror_statistic
MIT License
js/js.translator/testData/box/extensionFunction/virtualExtensionOverride.kt
JakeWharton
99,388,807
false
null
package foo open class A(var a: Int) { open fun Int.modify(): Int { return this * 3; } fun eval() = a.modify(); } class B(a: Int) : A(a) { override fun Int.modify(): Int { return this - 2; } } fun box(): Boolean { return (A(4).eval() == 12) && (A(2).eval() == 6) && (B(3).eva...
184
null
5691
83
4383335168338df9bbbe2a63cb213a68d0858104
332
kotlin
Apache License 2.0
plugins/kotlin-serialization/kotlin-serialization-compiler/src/org/jetbrains/kotlinx/serialization/compiler/resolve/KSerializationUtil.kt
JetBrains
3,432,266
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...
157
null
5209
42,102
65f712ab2d54e34c5b02ffa3ca8c659740277133
12,342
kotlin
Apache License 2.0
cmpe/common/src/desktopMain/kotlin/xyz/mcxross/cohesive/mellow/UriConverter.kt
mcxross
514,846,313
false
null
package com.mcxross.cohesive.mellow import io.ktor.utils.io.core.* import io.ktor.utils.io.streams.* import java.io.File import java.nio.file.Files actual class UriConverter { actual fun toInput(uri: Uri): Input = when { uri.path.startsWith("http") -> TODO("unimplemented") else -> File(uri.path).inputStream...
0
Kotlin
0
3
29bc632d6e9ce746b3eedacdfe18e617ebcad175
670
cohesive
Apache License 2.0
app/src/main/java/dev/jx/pokedex/ui/PokemonListFragment.kt
Jeff-Soares
407,314,984
false
null
package dev.jx.pokedex.ui import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.inputmethod.InputMethodManager import android.widget.ImageView import androidx.appcompat.widget.SearchView import androidx.frag...
0
Kotlin
0
0
65984150050b3b1e517ffa92f90721160fd39d3a
5,041
Pokedex-App
MIT License
app/src/main/java/com/example/challengecovid/Constants.kt
michaelmeckl
274,500,062
false
null
package com.example.challengecovid object Constants { const val SHARED_PREFS_NAME = "challengeCovidSharedPrefs" const val PREFS_USER_ID = "CurrentUserId" const val PREFS_LAST_DAY = "LastDay" const val PREFS_LAST_DAILY_CHALLENGE = "LastDailyChallenge" //const val PREFS_ALREADY_RESET = "AlreadyReset"...
0
Kotlin
0
0
b9bb96fca621c9a494e2abedfc3cf656da7f4595
1,208
Forschungsseminar_I3C_ChallengeApp
MIT License
lib/src/main/java/com/sd/lib/libkt/coroutine/scope/FViewScope.kt
zj565061763
366,790,731
false
null
package com.sd.lib.libkt.coroutine.scope import android.view.View import com.sd.lib.libkt.utils.LibUtils import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineStart import kotlinx.coroutines.Job import kotlin.coroutines.CoroutineContext class FViewScope : FCoroutineScope { private val _view:...
0
Kotlin
0
0
565969b174a01dd16edeb548f48806ef944af9c5
1,408
libkt
MIT License
ui/collections/src/main/java/ly/david/ui/collections/instruments/InstrumentsByCollectionViewModel.kt
lydavid
458,021,427
false
null
package ly.david.ui.collections.instruments import ly.david.musicsearch.core.models.listitem.InstrumentListItemModel import ly.david.musicsearch.core.models.network.MusicBrainzEntity import ly.david.musicsearch.domain.instrument.usecase.GetInstrumentsByEntity import ly.david.ui.common.EntitiesByEntityViewModel import ...
110
null
0
6
5e15119a3c55efa932e37afced1b56609e988fe6
630
MusicSearch
Apache License 2.0
android/gradle/demo/src/main/java/com/example/demo/MainActivity.kt
maplibre
432,679,159
false
{"Rust": 567395, "TypeScript": 10749, "Just": 9647, "WGSL": 6773, "JavaScript": 5807, "Nix": 2112, "Swift": 1905, "Java": 987, "HTML": 612, "Kotlin": 453, "Objective-C": 408, "EJS": 333, "Shell": 8}
package com.example.demo import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import org.maplibre_rs.MapLibreRs // Currently not used. Instead the NativeActivity referenced in AndroidManifest.xml is used. class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bun...
68
Rust
78
1,346
c0032f959769c5d2116dac4f462773b46c17b8e6
453
maplibre-rs
Apache License 2.0
src/main/kotlin/org/opensearch/indexmanagement/indexstatemanagement/transport/action/indexpolicy/TransportIndexPolicyAction.kt
lezzago
387,870,264
true
{"Kotlin": 1905550, "Python": 1396}
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Copyright Amazon.co...
0
Kotlin
0
0
d042b0a259e7104a93676ddc45a155a86cd665a0
9,095
opensearch-project-index-management
Apache License 2.0
protocol/osrs-226/osrs-226-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/misc/client/SetInteractionModeEncoder.kt
blurite
771,753,685
false
{"Kotlin": 11355829}
package net.rsprot.protocol.game.outgoing.codec.misc.client import net.rsprot.buffer.JagByteBuf import net.rsprot.crypto.cipher.StreamCipher import net.rsprot.protocol.ServerProt import net.rsprot.protocol.game.outgoing.misc.client.SetInteractionMode import net.rsprot.protocol.game.outgoing.prot.GameServerProt import ...
5
Kotlin
6
27
d08cb7c11ae758b5dcabd6e85d34a4bfdba7ad3c
853
rsprot
MIT License
app/src/main/java/com/github/wnebyte/workoutapp/ui/workout/ForegroundService.kt
wnebyte
381,744,339
false
null
package com.github.wnebyte.workoutapp.ui.workout import java.util.* import android.app.Notification import android.app.Service import android.content.Context import android.content.Intent import android.os.* import android.util.Log import androidx.core.app.NotificationCompat import androidx.localbroadcastmanager.conte...
0
Kotlin
0
3
7ec18589b24726b8c09247e8c03d7040ddf08d05
4,264
workout-app
Matrix Template Library License
client/src/commonMain/kotlin/com/algolia/client/model/querysuggestions/SourceIndex.kt
algolia
153,273,215
false
{"Kotlin": 1464911}
/** Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. */ package com.algolia.client.model.querysuggestions import kotlinx.serialization.* import kotlinx.serialization.json.* /** * Configurat...
15
Kotlin
8
59
686cdfb400aa4254fc3b62dac6ca3d10c7aac846
2,199
algoliasearch-client-kotlin
MIT License
app/src/main/java/com/urbandroid/sleep/addon/stats/model/socialjetlag/ChronoRecord.kt
petrnalevka
456,982,453
false
{"Java": 183480, "Kotlin": 17905}
package com.urbandroid.sleep.addon.stats.model.socialjetlag import com.urbandroid.sleep.addon.stats.model.StatRecord import java.util.* class ChronoRecord @JvmOverloads constructor( val from: Date, val to: Date, //Fractional hours (e.g. 22:30 is 22.5) in the user's local time. val fromHour: Fl...
6
Java
1
0
e5d247c4636ad51fc186a60daae9bea309a2c6a0
3,033
sleep-irregularity
Apache License 2.0
compiler/testData/diagnostics/tests/resolve/noCandidates/resolvedToClassifier.kt
JetBrains
3,432,266
false
null
// DIAGNOSTICS: -UNUSED_VARIABLE interface A object B class C fun test() { val interface_as_fun = <!RESOLUTION_TO_CLASSIFIER!>A<!>() val interface_as_val = <!NO_COMPANION_OBJECT!>A<!> val object_as_fun = <!FUNCTION_EXPECTED!>B<!>() val class_as_val = <!NO_COMPANION_OBJECT!>C<!> } fun <T> bar() { ...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
764
kotlin
Apache License 2.0
src/commonMain/kotlin/me/devnatan/yoki/models/Healthcheck.kt
DevNatan
392,883,613
false
{"Kotlin": 195907}
package me.devnatan.yoki.models import kotlinx.datetime.Instant import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable public data class Healthcheck internal constructor( // TODO create sealed class for status @SerialName("Status") public val statusString: String, ...
9
Kotlin
4
19
dfe370c33247ccc88b4dcf36737598874bcd4b92
946
yoki
MIT License
CanadianInvestor/src/Compound.kt
bassamriman
98,359,661
false
null
interface ICompoundPerTime<T : TimeUnit<T>> : TemporalRate.UnitPerTime<Compound.UNIT, T> interface ICompoundFrequency<T : TimeUnit<T>> : ICompoundPerTime<T>, TemporalRate.UnitPerTime.Frequency<Compound.UNIT, T> interface ITimePerCompound<T : TimeUnit<T>> : TemporalRate.TimePerUnit<T, Compound.UNIT> interface ICompoundP...
0
Kotlin
0
0
bb232001b120ab0e38a23ba33524f56ea09ca9b4
626
AdvancedCompoundCalculator
Apache License 2.0
selekt-android/src/test/kotlin/com/bloomberg/selekt/android/SQLDatabaseSampleInputTest.kt
bloomberg
281,998,984
false
null
/* * Copyright 2022 Bloomberg Finance L.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
4
null
9
46
510eb128dce97c7b1357e279e92d9dd4e50b71e2
3,080
selekt
Apache License 2.0
android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/images/RCTMGLImagesManager.kt
rnmapbox
180,028,389
false
null
package com.mapbox.rctmgl.components.images import android.graphics.drawable.BitmapDrawable import android.view.View import com.facebook.react.bridge.* import com.facebook.react.common.MapBuilder import com.facebook.react.uimanager.ThemedReactContext import com.facebook.react.uimanager.annotations.ReactProp import com...
34
null
786
1,786
5e87a8d33d311d04c15d0c9489179e69d4b6d3ba
8,757
maps
MIT License
test2code/src/main/kotlin/com/epam/drill/test2code/coverage/ProbesProvider.kt
Drill4J
240,284,351
false
{"Kotlin": 218235, "Java": 57214, "Batchfile": 410, "Shell": 329}
/** * Copyright 2020 - 2022 EPAM Systems * * 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 agree...
7
Kotlin
2
6
8d286d6f5d4cee9b1db94d6960140584f247477e
1,387
java-agent
Apache License 2.0
shared/src/commonMain/kotlin/com/joetr/sync/sphere/ui/icon/IconSelectionScreen.kt
j-roskopf
712,951,839
false
{"Kotlin": 1502373, "Ruby": 3083, "Shell": 1352, "Swift": 588}
package com.joetr.sync.sphere.ui.icon import androidx.compose.animation.AnimatedContent import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.pad...
0
Kotlin
0
9
9566fd5ee3a7bd5dfcf5e37d2900cbe601534783
4,668
SyncSphere
MIT License
app/src/main/java/softspark/com/inventorypilot/common/di/CommonUseCaseModule.kt
Landony04
836,511,304
false
{"Kotlin": 300138}
package softspark.com.inventorypilot.common.di import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ViewModelComponent import dagger.hilt.android.scopes.ViewModelScoped import softspark.com.inventorypilot.common.domain.useCases.GenerateCurrentDateUTCUseCase imp...
2
Kotlin
0
0
a6778291c9ec4079f826299720486a7c590023ec
1,369
inventory-pilot
MIT License
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/package-info.kt
yschimke
42,286,486
true
{"Kotlin": 2601894, "Java": 877352, "Shell": 3288}
/** A DNS over HTTPS implementation for OkHttp. */ package okhttp3.dnsoverhttps
1
Kotlin
3
6
ef459b1d8b0530c915386c527e8a141c88cd5c15
81
okhttp
Apache License 2.0
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/Views.kt
corona-warn-app
268,027,139
false
null
package de.rki.coronawarnapp.util import android.text.SpannableString import android.text.Spanned import android.text.method.LinkMovementMethod import android.text.style.URLSpan import android.text.util.Linkify import android.util.Patterns import android.widget.TextView import androidx.core.text.util.LinkifyCompat imp...
6
Kotlin
514
2,495
d3833a212bd4c84e38a1fad23b282836d70ab8d5
1,757
cwa-app-android
Apache License 2.0
definitions/src/main/kotlin-gen/xyz/urbanmatrix/mavlink/definitions/avssuas/AvssDroneImu.kt
urbanmatrix
484,943,163
false
null
package com.divpundir.mavlink.definitions.avssuas import com.divpundir.mavlink.api.GeneratedMavField import com.divpundir.mavlink.api.GeneratedMavMessage import com.divpundir.mavlink.api.MavMessage import com.divpundir.mavlink.serialization.decodeFloat import com.divpundir.mavlink.serialization.decodeUInt32 import com...
1
null
4
9
8f480256eeaac5755a2ce5582c338a4b30c7e178
5,331
mavlink-kotlin
Apache License 2.0
module_home/src/main/java/com/quyunshuo/wanandroid/home/bean/ArticleBean.kt
Quyunshuo
389,148,840
false
null
package com.quyunshuo.wanandroid.home.bean /** * 文章数据类 * * @property apkLink String? * @property audit Int? * @property author String? 作者 * @property canEdit Boolean? * @property chapterId Int? * @property chapterName String? * @property collect Boolean? * @property courseId Int? * @property desc String? *...
1
Kotlin
7
34
b00274fb9ad349dc8b9d2f32ed1af5e2864246c6
3,034
WanAndroidMVVM
Apache License 2.0
app/src/main/java/org/fossasia/openevent/general/auth/ProfileViewModel.kt
G-LOKi
178,464,508
true
{"Kotlin": 379840, "Java": 3836, "Shell": 3765}
package org.fossasia.openevent.general.auth import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import io.reactivex.android.schedulers.AndroidSchedulers import io.reactivex.disposables.CompositeDisposable import io.reactivex.schedulers.Schedulers import org....
0
Kotlin
0
1
7e6d70dbfcbeb014ac9dc02ccfd66cc575697c87
2,104
open-event-android
Apache License 2.0
core/src/main/kotlin/in/specmatic/core/pattern/BooleanPattern.kt
znsio
247,710,440
false
null
package `in`.specmatic.core.pattern import `in`.specmatic.core.Resolver import `in`.specmatic.core.Result import `in`.specmatic.core.mismatchResult import `in`.specmatic.core.value.BooleanValue import `in`.specmatic.core.value.JSONArrayValue import `in`.specmatic.core.value.Value import java.util.* data class Boolean...
66
null
8
92
b3eb9b6e0f7d42bde35d95b83ea187cd1d6aa3bc
2,059
specmatic
MIT License
features/accounts/src/main/java/com/yuriikonovalov/accounts/framework/ui/AccountsFragment.kt
yuriikonovalov
563,974,428
false
{"Kotlin": 872022}
package com.yuriikonovalov.accounts.framework.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.isVisible import androidx.core.view.updatePadding import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels i...
0
Kotlin
0
0
8063508f836512fc8f8a0ba18f794bb895ee2449
6,357
budgethub
MIT License
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/resolved/KotlinRootNpmResolution.kt
JetBrains
3,432,266
false
{"Kotlin": 74444760, "Java": 6669398, "Swift": 4261253, "C": 2620837, "C++": 1953730, "Objective-C": 640870, "Objective-C++": 170766, "JavaScript": 135724, "Python": 48402, "Shell": 30960, "TypeScript": 22754, "Lex": 18369, "Groovy": 17273, "Batchfile": 11693, "CSS": 11368, "Ruby": 10470, "EJS": 5241, "Dockerfile": 513...
/* * 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.targets.js.npm.resolved import org.gradle.api.logging.Logger import org.g...
166
Kotlin
5771
46,772
bef0946ab7e5acd5b24b971eca532c43c8eba750
2,627
kotlin
Apache License 2.0
app/src/main/java/com/mrspd/letschat/fragments/one_to_one_chat/ChatAdapter.kt
satyamurti
275,247,716
false
null
package com.mrspd.letschat.fragments.one_to_one_chat import android.content.Context import android.media.MediaPlayer import android.os.CountDownTimer import android.view.LayoutInflater import android.view.ViewGroup import android.widget.ImageView import android.widget.ProgressBar import androidx.recyclerview.widget....
1
null
30
80
62f0f0ae22b38d8c48c5c27800005039f2030987
17,325
LetsChat
MIT License
common/src/commonMain/kotlin/io/config4k/NameCase.kt
Matt1Krause
323,059,657
false
null
package io.config4k sealed class NameCase { abstract fun computeNameFor(name: PropertyName): String object SnakeCase : NameCase() { override fun computeNameFor(name: PropertyName): String = name.joinToString(separator = "_") } object UpperSnakeCase : NameCase() { override fun computeN...
0
Kotlin
0
0
da4bbb1a0248fb134e6be3942ff0527cb99bb016
1,233
Config4k
Apache License 2.0
app/src/main/java/com/johnlennonlobo/appilunne/ui/activity/login/AuthActivity.kt
john-lobo
382,523,866
false
null
package com.johnlennonlobo.appilunne.ui.activity.login import android.content.Intent import android.view.View import androidx.appcompat.app.AlertDialog import androidx.lifecycle.ViewModelProvider import androidx.viewbinding.ViewBinding import com.johnlennonlobo.appilunne.databinding.AuthActivityBinding import com.john...
0
Kotlin
0
2
62b08c90c425eb53f033c60a47bbe697781f35d9
5,604
AppIlunne
MIT License
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/KotlinNativeCompilation.kt
ahsc786
173,781,731
true
{"Kotlin": 33489577, "Java": 7553371, "JavaScript": 152998, "HTML": 73561, "Lex": 23082, "IDL": 10847, "ANTLR": 9803, "Shell": 7727, "Groovy": 6893, "Batchfile": 5362, "CSS": 4679, "Scala": 80}
/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ @file:Suppress("PackageDirectoryMismatch") // Old package for compatibility package org.jetbrains.kotlin.gradle.plugin.mpp import groovy.lang.Closure impo...
0
Kotlin
0
0
14a6f684dc7121182495bd59c94ef658f04d6ae3
7,105
kotlin
Apache License 2.0
examples/cactus-example-supply-chain-business-logic-plugin/src/main/kotlin/generated/openapi/kotlin-client/src/main/kotlin/org/openapitools/client/models/ListShipmentResponse.kt
hyperledger
216,610,150
false
null
/** * Hyperledger Cactus Example - Carbon Accounting App * * Demonstrates how a business use case can be satisfied with Cactus when multiple distinct ledgers are involved. * * The version of the OpenAPI document: 0.2.0 * * * Please note: * This class is auto generated by OpenAPI Generator (https://openapi-gen...
488
TypeScript
230
273
ea5522ba02a32764674cbc4a3512ba5d406e7891
699
cacti
Apache License 2.0
src/main/kotlin/me/melijn/melijnbot/database/role/TempRoleWrapper.kt
ToxicMushroom
107,187,088
false
null
package me.melijn.melijnbot.database.role class TempRoleWrapper(private val tempRoleDao: TempRoleDao) { fun addTempRole(guildId: Long, userId: Long, roleId: Long, duration: Long, added: Boolean) { val start = System.currentTimeMillis() tempRoleDao.set(guildId, userId, roleId, start, start + durati...
5
Kotlin
22
80
01107bbaad0e343d770b1e4124a5a9873b1bb5bd
573
Melijn
MIT License
lib_base/src/main/kotlin/com/crow/base/tools/extensions/BaseEventExt.kt
CrowForKotlin
610,636,509
false
null
@file:Suppress("unused") package com.crow.base.tools.extensions import android.os.Handler import android.text.Editable import android.text.TextWatcher import android.view.MenuItem import android.view.View import android.widget.EditText import com.crow.base.ui.view.event.BaseEvent import com.crow.base.ui.view.event.Ba...
4
null
6
76
3b64f3bc7ef0f8014e9311f1c69515ecba83ebfc
5,576
CopyMangaX
Apache License 2.0
src/main/kotlin/com/github/ferinagy/adventOfCode/aoc2022/2022-08.kt
ferinagy
432,170,488
false
{"Kotlin": 787586}
package com.github.ferinagy.adventOfCode.aoc2022 import com.github.ferinagy.adventOfCode.Coord2D import com.github.ferinagy.adventOfCode.IntGrid import com.github.ferinagy.adventOfCode.get import com.github.ferinagy.adventOfCode.println import com.github.ferinagy.adventOfCode.readInputLines import com.github.ferinagy....
0
Kotlin
0
1
f4890c25841c78784b308db0c814d88cf2de384b
2,360
advent-of-code
MIT License
app/src/main/java/com/diegobezerra/cinemaisapp/ui/main/home/HomeAdapter.kt
dsbezerra
212,875,134
false
null
package com.diegobezerra.cinemaisapp.ui.main.home import android.annotation.SuppressLint import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView...
1
null
1
1
93747bb7148cd46b76e9255f517405db1ae75fdd
12,447
cinemais-android
Apache License 2.0
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/api/behavior/Selectable.kt
Xanik
282,687,897
false
null
package org.hexworks.zircon.api.behavior import org.hexworks.cobalt.databinding.api.property.Property import org.hexworks.zircon.internal.behavior.impl.DefaultSelectable import kotlin.jvm.JvmStatic /** * Represents an object which can be selected. */ interface Selectable { var isSelected: Boolean val sele...
1
null
1
2
bf435cddeb55f7c3a9da5dd5c29be13af8354d0f
506
zircon
Apache License 2.0
app/src/main/java/ru/lapov/forrabitresult/activities/SplashScreen.kt
metalink94
162,844,359
false
{"Gradle": 3, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "JSON": 1, "Kotlin": 16, "XML": 42, "Java": 1}
package ru.lapov.forrabitresult.activities import android.content.Intent import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.util.Log import com.google.firebase.database.DataSnapshot import com.google.firebase.database.DatabaseError import com.google.firebase.database.FirebaseDataba...
0
Kotlin
0
0
a9d318a4b00d992dd6a5899940364a04a9c582c9
1,724
ForRabitResult
Apache License 2.0
src/main/kotlin/com/vampmir/features/qol/Drops.kt
jeenyuhs
749,534,575
false
{"Kotlin": 72421, "Java": 3028}
package com.vampmir.features.qol import com.vampmir.GSM import com.vampmir.utils.Player import com.vampmir.utils.TitleRender import com.vampmir.utils.chat import gg.essential.universal.ChatColor import gg.essential.universal.UMatrixStack import net.minecraft.util.StringUtils import net.minecraftforge.client.event.Clie...
7
Kotlin
0
0
e62482e3ac9b8b4b5e68d7f6bf33ff72527ed24c
2,497
GSM
The Unlicense
src/main/kotlin/com/github/attacktive/troubleshootereditor/model/Identifiable.kt
Attacktive
517,579,517
false
null
package com.github.attacktive.troubleshootereditor.model interface Identifiable<T> { fun getId(): T }
0
Kotlin
0
1
01bda97520317ac800b1db32808c9721042cea07
104
troubleshooter-editor-back-end
MIT License
app/k9mail/src/main/java/com/fsck/k9/Dependencies.kt
pueffl
165,477,804
true
{"Java": 4395423, "Kotlin": 540181, "Shell": 3101, "HTML": 292}
package com.fsck.k9 import com.fsck.k9.backends.backendsModule import com.fsck.k9.controller.ControllerExtension import com.fsck.k9.crypto.EncryptionExtractor import com.fsck.k9.crypto.openpgp.OpenPgpEncryptionExtractor import com.fsck.k9.external.BroadcastSenderListener import com.fsck.k9.external.externalModule impo...
0
Java
0
0
38be7d2f1a83dce89d43c8c55d0be77b58282704
1,578
k-9
Apache License 2.0
app/src/main/kotlin/jp/co/yumemi/android/codecheck/model/GitHubResponse.kt
0v0d
771,582,978
false
{"Kotlin": 15693}
package jp.co.yumemi.android.codecheck.model import android.os.Parcelable import com.squareup.moshi.Json import kotlinx.parcelize.Parcelize /** * GitHubのリポジトリ情報を保持するデータクラス * @param items リポジトリ情報 */ @Parcelize data class GitHubResponse( @Json(name = "items") val items: List<RepositoryItem> ) : Parcelable
3
Kotlin
0
0
1edcbf7f97c11594abf480dc98aea91591473c1a
317
android-engineer-codecheck
Apache License 2.0
bellatrix.ios/src/main/java/solutions/bellatrix/ios/services/AppService.kt
AutomateThePlanet
334,964,015
false
null
/* * Copyright 2021 Automate The Planet Ltd. * Author: <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 la...
1
Kotlin
1
1
5da5e705b47e12c66937d130b3031ac8703b8279
1,742
BELLATRIX-Kotlin
Apache License 2.0
src/commonTest/kotlin/com.mfrancza.jwtrevocation/rules/conditions/DateTimeAfterTest.kt
mfrancza
585,426,278
false
null
package com.mfrancza.jwtrevocation.rules.conditions import kotlin.test.Test import kotlin.test.assertFalse import kotlin.test.assertTrue class DateTimeAfterTest { @Test fun testAfter() { val condition = DateTimeAfter(1666928921) assertFalse( condition.isMet(condition.value), ...
1
Kotlin
0
0
8dd296653b1236cc96df7306ae8202684e0dd843
713
jwt-revocation-rules
Apache License 2.0
src/main/kotlin/no/nav/arbeidsforhold/service/outbound/ArbeidsforholdDto.kt
navikt
175,394,209
false
{"Kotlin": 57979, "Dockerfile": 263}
package no.nav.arbeidsforhold.service.outbound import kotlinx.serialization.Serializable @Serializable data class ArbeidsforholdDto( val navArbeidsforholdId: Long? = null, val eksternArbeidsforholdId: String? = null, var type: String? = null, val sistBekreftet: String? = null, val arbeidsgiver: Ar...
2
Kotlin
0
1
f54ca6f7870760d64d63b879cbca51777c11044a
1,136
arbeidsforhold-api
MIT License
idea/testData/intentions/convertSecondaryConstructorToPrimary/withDelegation.kt
JakeWharton
99,388,807
false
null
// IS_APPLICABLE: false class WithDelegation { constructor() constructor<caret>(x: Int): this() }
0
null
28
83
4383335168338df9bbbe2a63cb213a68d0858104
107
kotlin
Apache License 2.0
code/jvm/src/main/kotlin/aguDataSystem/server/repository/jdbi/mappers/MapperUtils.kt
AGU-Data-System
765,690,492
false
{"Kotlin": 723386, "TypeScript": 153702, "JavaScript": 1600, "CSS": 925, "Shell": 889, "HTML": 267}
package aguDataSystem.server.repository.jdbi.mappers import aguDataSystem.server.domain.Location import aguDataSystem.server.domain.company.DNO import aguDataSystem.server.domain.company.TransportCompany import aguDataSystem.server.domain.gasLevels.GasLevels import java.sql.ResultSet /** * Utility class for mapping ...
0
Kotlin
0
1
d41bcf2ff0a21ac97f476a59c83802ddf0269606
1,518
AGU-Data-System
MIT License
common/src/test/kotlin/org/amshove/kluent/tests/collections/ShouldContainSingleItemShould.kt
MarkusAmshove
51,317,191
false
null
package org.amshove.kluent.tests.collections import org.amshove.kluent.shouldBeEqualTo import org.amshove.kluent.shouldHaveSingleItem import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class ShouldContainSingleItemShould { @Test fun notThrowWhenACollectionHasOneItem() { ...
12
Kotlin
66
843
2826b263e5e2b5a74d8eb0394a4354848052e786
1,931
Kluent
MIT License
src/main/java/ar/edu/unq/eperdemic/EperdemicApplication.kt
Dominikowivan
257,255,510
false
{"Gradle Kotlin DSL": 2, "Shell": 1, "Text": 1, "Batchfile": 1, "Markdown": 1, "YAML": 3, "XML": 7, "SQL": 4, "INI": 3, "Kotlin": 22, "Java": 1, "Java Properties": 1}
package ar.edu.unq.eperdemic import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication @SpringBootApplication class EperdemicApplication fun main(args: Array<String>) { runApplication<EperdemicApplication>(*args) }
0
Kotlin
0
0
d0b012c8cd6d6aed07fdc054f40573dee6fc08be
276
EPERdemic_Backend
MIT License
telegramClient/src/commonMain/kotlin/pw/binom/telegram/dto/SetWebhookRequest.kt
caffeine-mgn
309,111,702
false
null
package pw.binom.telegram.dto import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable @Serializable class SetWebhookRequest( @SerialName("url") val url: String, @SerialName("certificate") val certificate: String? = null, @SerialName("max_connections") val maxConnect...
0
null
0
2
c5d7857070f691965d2097b8a944512bc0283889
424
telegramClient
Apache License 2.0
src/lsp/intellij-plugin/src/main/kotlin/Types.kt
flock-community
506,356,849
false
null
package community.flock.wirespec.lsp.intellij_plugin import com.intellij.psi.tree.IElementType interface Types { class ElementType(debugName: String) : IElementType(debugName, Language.INSTANCE) companion object { val COLON = ElementType("COLON") val COMMA = ElementType("COMMA") val C...
9
null
2
9
581cd0ceee63d461c544d34f1cf2cf47813ff90e
1,624
wirespec
Apache License 2.0
app/src/main/java/de/thomaskuenneth/benice/IconButtonWithTooltip.kt
tkuenneth
736,289,151
false
{"Kotlin": 40659}
package de.thomaskuenneth.benice import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material3.IconButton import androidx.compose.material3.PlainTooltipBox import androidx.compose.material3.Text import androidx.compose.runtime.Composable import andr...
1
Kotlin
0
5
923fb35a4eb2557f0a2489bb9765c86e81695035
963
BeNice
Apache License 2.0
libfunrenderer/src/main/java/io/github/kenneycode/funrenderer/io/FrameBuffer.kt
kenneycode
186,097,106
false
null
package io.github.kenneycode.funrenderer.io import android.opengl.GLES30 import io.github.kenneycode.funrenderer.common.FrameBufferCache import io.github.kenneycode.funrenderer.uitl.GLUtil /** * * Coded by kenney * * http://www.github.com/kenneycode * **/ open class FrameBuffer(var texture: Int = 0, ...
0
Kotlin
2
16
d76114e926ecb66c36f11b8251939c4c8143a7e6
2,200
FunRenderer
Apache License 2.0
component/src/main/java/cn/nekocode/kotgo/component/ui/stack/RequestData.kt
tiagobarreto
85,804,001
true
{"Kotlin": 38427, "Python": 9330, "Java": 120}
package cn.nekocode.kotgo.component.ui import android.content.Intent import android.os.Parcel import android.os.Parcelable /** * Created by nekocode on 16/8/25. */ class RequestInfo(var requestCode: Int, var resultCode: Int = 0, var resultData: Intent? = null) : Parcelable { constructor(source: Parcel) : this( ...
0
Kotlin
0
0
802cef3999515a4d92b1571128fdf64cae8c743d
1,121
kotgo
Apache License 2.0
app/src/main/java/mil/nga/msi/ui/map/filter/MapFilterViewModel.kt
ngageoint
588,211,646
false
{"Kotlin": 1898030}
package mil.nga.msi.ui.map.filter import androidx.lifecycle.LiveData import androidx.lifecycle.MediatorLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.asLiveData import dagger.hilt.android.lifecycle.HiltViewModel import mil.nga.msi.datasource.DataSource import mil.nga.msi.location.LocationPolicy...
0
Kotlin
1
0
d7670ab5f73e2e89b741a56e418b49f2acc810a2
1,212
marlin-android
MIT License
app/src/main/kotlin/me/zhiyao/waterever/exts/IntExt.kt
WangZhiYao
243,558,800
false
null
package me.zhiyao.waterever.exts import android.content.Context import android.util.TypedValue import kotlin.math.roundToInt /** * * @author WangZhiYao * @date 2020/8/18 */ fun Int.dp2px(context: Context) = TypedValue.applyDimension( TypedValue.COMPLEX_UNIT_DIP, this.toFloat(), context.resourc...
0
Kotlin
0
0
232f20d623209eb2b9fb889aeb05af6ec3fee535
535
WaterEver
Apache License 2.0
library/src/test/kotlin/com/cesarferreira/pluralize/SingularizationTest.kt
cesarferreira
67,342,759
false
null
package com.cesarferreira.pluralize import org.junit.Assert.assertEquals import org.junit.Test class SingularizationTest { @Test fun `Should remove default "s" suffix`() { assertEquals("word", "words".singularize()) } @Test fun `Should handle unCountable words`() { assertEquals("...
4
Kotlin
6
46
e6ed6038c399ce11a8a0268ea0693504ee6497c6
605
kotlin-pluralizer
MIT License
cache-core/src/main/kotlin/im/toss/util/cache/CacheValueLoader.kt
toss
228,551,924
false
null
package im.toss.util.cache import java.lang.Exception interface CacheValueLoader<T: Any> { val version: Long @Throws(AlreadyLoadedException::class) suspend fun load(value: T): LoadResult<T> suspend fun release() } class AlreadyLoadedException : Exception() class ResultGetOrLockForLoad<T: Any>( ...
1
Kotlin
3
7
006062a4cc9548d57c09c11cbccdf1811de73589
517
cache
Apache License 2.0
Wisdom_Education_Android/edu-logic/src/main/java/com/netease/yunxin/app/wisdom/edu/logic/options/NEEduOptions.kt
leeox
423,769,135
true
{"Kotlin": 725060, "Objective-C": 715250, "Java": 300037, "TypeScript": 281229, "Swift": 59456, "Less": 38860, "Ruby": 16266, "JavaScript": 8813, "C": 5895, "HTML": 2087}
/* * Copyright (c) 2021 NetEase, Inc. All rights reserved. * Use of this source code is governed by a MIT license that can be found in the LICENSE file. */ package com.netease.yunxin.app.wisdom.edu.logic.options import com.netease.yunxin.app.wisdom.edu.logic.foreground.NEEduForegroundServiceConfig /** * SDK 全局配...
0
null
0
0
9b688d0df67721e407cf2c691a94be36551aa0bf
815
WisdomEducation
MIT License
shared/src/commonMain/kotlin/com/techbeloved/hymnbook/shared/App.kt
techbeloved
133,724,406
false
{"Kotlin": 469411, "Java": 8639, "HTML": 4084, "Ruby": 2303, "Swift": 659}
package com.techbeloved.hymnbook.shared import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.runtime.Composable import cafe.adriel.voyager.navigator.Navigator import com.techbeloved.hymnbook.shared.ui.home.HomeScreen import com.techbeloved.hymnbook.shared.ui.theme.AppTheme @Composable pu...
3
Kotlin
11
8
00cbad6464a71f89392af48c6089932a2a86d457
399
hymnbook
MIT License
app/src/main/java/com/dreamsoftware/fitflextv/ui/screens/settings/SettingsScreen.kt
sergio11
534,529,261
false
null
package com.dreamsoftware.saborytv.ui.screens.settings import androidx.compose.runtime.Composable import androidx.hilt.navigation.compose.hiltViewModel import com.dreamsoftware.fudge.component.FudgeTvScreen @Composable fun SettingsScreen( viewModel: SettingsViewModel = hiltViewModel(), onGoToSubscriptions: ()...
0
null
4
40
98f42de1194e7cbaa6e5507a7cd5feaa6452849e
848
fitflextv_android
MIT License
src/main/kotlin/convention/publishing/dsl/MavenPom.kt
indramahkota
868,423,800
false
{"Kotlin": 65624}
package convention.publishing.dsl import org.gradle.api.publish.maven.MavenPom import org.gradle.api.publish.maven.MavenPomContributor import org.gradle.api.publish.maven.MavenPomContributorSpec import org.gradle.api.publish.maven.MavenPomDeveloper import org.gradle.api.publish.maven.MavenPomDeveloperSpec import org.g...
0
Kotlin
0
0
944cb7d03b754ef15b86ed5b7d8f21d7adbe9226
2,094
build-logic
MIT License
src/main/kotlin/convention/publishing/dsl/MavenPom.kt
indramahkota
868,423,800
false
{"Kotlin": 65624}
package convention.publishing.dsl import org.gradle.api.publish.maven.MavenPom import org.gradle.api.publish.maven.MavenPomContributor import org.gradle.api.publish.maven.MavenPomContributorSpec import org.gradle.api.publish.maven.MavenPomDeveloper import org.gradle.api.publish.maven.MavenPomDeveloperSpec import org.g...
0
Kotlin
0
0
944cb7d03b754ef15b86ed5b7d8f21d7adbe9226
2,094
build-logic
MIT License
whetstone/compiler/src/main/kotlin/com/freeletics/mad/whetstone/parser/Reference.kt
freeletics
375,363,637
false
null
package com.freeletics.mad.whetstone.parser import com.squareup.anvil.annotations.ExperimentalAnvilApi import com.squareup.anvil.compiler.internal.reference.AnnotatedReference import com.squareup.anvil.compiler.internal.reference.AnnotationReference import com.squareup.anvil.compiler.internal.reference.AnvilCompilatio...
9
Kotlin
7
60
c6d34481b5bb90e8d720e6c7b018f87c0fe28f9a
3,022
mad
Apache License 2.0
z2-kotlin-plugin/src/hu/simplexion/z2/kotlin/adaptive/ir/air/visitors/AirElementVisitorVoid.kt
spxbhuhb
665,463,766
false
{"Kotlin": 1586446, "CSS": 166528, "Java": 12046, "HTML": 1560, "JavaScript": 975}
/* * Copyright © 2020-2021, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license. */ package hu.simplexion.z2.kotlin.adaptive.ir.air.visitors import hu.simplexion.z2.kotlin.adaptive.ir.air.* interface AirElementVisitorVoid<out R> : AirElementVisitor<R, Nothing?> { fun visitEle...
5
Kotlin
0
1
a7213ad95437796bc87674dd9530a95e1528901e
3,852
z2
Apache License 2.0
verik-compiler/src/main/kotlin/io/verik/compiler/check/mid/ValueParameterCheckerStage.kt
frwang96
269,980,078
false
null
/* * SPDX-License-Identifier: Apache-2.0 */ package io.verik.compiler.check.mid import io.verik.compiler.ast.element.declaration.kt.EKtAbstractFunction import io.verik.compiler.ast.element.declaration.kt.EKtValueParameter import io.verik.compiler.common.TreeVisitor import io.verik.compiler.core.common.Core import i...
0
Kotlin
1
33
ee22969235460fd144294bcbcbab0338c638eb92
1,319
verik
Apache License 2.0
openai/api/src/main/kotlin/io/bluetape4k/openai/api/models/embedding/EmbeddingResult.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.openai.api.models.embedding import com.fasterxml.jackson.annotation.JsonProperty import io.bluetape4k.openai.api.models.ObjectId import io.bluetape4k.openai.api.models.Usage import io.bluetape4k.openai.api.models.model.ModelId import java.io.Serializable /** * Embeddings response * * @propert...
0
Kotlin
0
1
ce3da5b6bddadd29271303840d334b71db7766d2
589
bluetape4k
MIT License
app/src/main/java/it/unibs/mp/horace/backend/DateTimeFormatter.kt
H3isenb3rg
604,173,455
false
null
package it.unibs.mp.horace.backend import android.content.Context import it.unibs.mp.horace.R import java.time.LocalDate import java.time.LocalTime import java.time.format.DateTimeFormatter class DateTimeFormatter(val context: Context) { fun formatDate(date: LocalDate): String { return when (date) { ...
9
Kotlin
0
0
807d5f55d3cdfc9e45b9a2db6cf736335e8e9d19
1,239
MobileProgramming2023
MIT License
baselibs/src/main/java/com/cxz/kotlin/baselibs/mvp/IView.kt
iceCola7
157,877,897
false
null
package com.cxz.kotlin.baselibs.mvp /** * @author chenxz * @date 2018/11/18 * @desc IView */ interface IView { /** * 显示加载 */ fun showLoading() /** * 隐藏加载 */ fun hideLoading() /** * 使用默认的样式显示信息: CustomToast */ fun showDefaultMsg(msg: String) /** * 显示...
1
Kotlin
40
160
1a57b38ab15c718f4fce77fc70486cc71a3d507a
430
KotlinMVPSamples
Apache License 2.0
serialization-djvm/src/main/kotlin/net/corda/serialization/djvm/serializers/SandboxZonedDateTimeSerializer.kt
corda
70,137,417
false
null
package net.corda.serialization.djvm.serializers import net.corda.djvm.rewiring.SandboxClassLoader import net.corda.serialization.djvm.deserializers.ZonedDateTimeDeserializer import net.corda.serialization.djvm.toSandboxAnyClass import net.corda.serialization.internal.amqp.CustomSerializer import net.corda.serializati...
57
null
1090
3,952
1eb3b3b42b2b916b7f81354238ccd3ce685b0bd3
1,827
corda
Apache License 2.0
android/src/main/java/com/facebook/flipper/plugins/uidebugger/descriptors/FragmentFrameworkDescriptor.kt
facebook
129,283,183
false
null
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.flipper.plugins.uidebugger.descriptors import android.os.Bundle import androidx.fragment.app.Fragment impor...
500
null
953
13,340
533f0886100aebb3f1207465a7a2165247f5efc1
2,022
flipper
MIT License
app/src/main/java/pl/sienczykm/templbn/utils/EmptyStringTypeAdapter.kt
mat-sienczyk
193,071,707
false
null
package pl.sienczykm.templbn.utils import com.google.gson.JsonDeserializationContext import com.google.gson.JsonDeserializer import com.google.gson.JsonElement import com.google.gson.JsonParseException import java.lang.reflect.Type class EmptyStringTypeAdapter<T> private constructor() : JsonDeserializer<T> { @T...
0
Kotlin
1
2
9c87e40d685d62a4e523708428c2f8ec44494948
761
LubelskieStacjePogodowe
Apache License 2.0
features/letterboxd/api/src/main/kotlin/com/letterboxd/authentication/AccessTokenFetcher.kt
mr-archano
146,216,727
false
null
package com.letterboxd.authentication import io.reactivex.Single interface AccessTokenFetcher { fun createAccessToken(username: String, password: String): Single<AccessToken> fun refreshAccessToken(refreshToken: RefreshToken): Single<AccessToken> }
0
Kotlin
0
2
ce0878d93549121beb5b79dda7bd2cd6c4ae8783
260
playground
Apache License 2.0
src/main/kotlin/com/papsign/ktor/openapigen/annotations/type/string/length/MinLength.kt
papsign
186,148,881
false
null
package com.papsign.ktor.openapigen.annotations.type.string.length import com.papsign.ktor.openapigen.schema.processor.SchemaProcessorAnnotation import com.papsign.ktor.openapigen.validation.ValidatorAnnotation @Target(AnnotationTarget.TYPE, AnnotationTarget.PROPERTY) @SchemaProcessorAnnotation(MinLengthProcessor::cl...
24
null
35
172
8362dafa8a8b701983ad7d0119a15a12b863953f
446
Ktor-OpenAPI-Generator
Apache License 2.0
sdkpushexpress/src/main/java/com/pushexpress/sdk/repository/ApiRepositoryImpl.kt
pushexpress
600,907,986
false
null
package com.pushexpress.sdk.repository import android.content.Context import android.telephony.TelephonyManager import android.util.Log import com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo import com.pushexpress.sdk.local_settings.SdkSettingsRepository import com.pushexpress.sdk.retro...
0
Kotlin
0
2
d4d3a824b5633a161ae6c87d846f6e922cd4b56b
5,906
pushexpress-android-sdk
Apache License 2.0
app/src/main/java/com/spindox/composetemplate/api/BaseRepo.kt
michele-marconi
712,552,242
false
{"Kotlin": 53719}
package com.spindox.composetemplate.api import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import retrofit2.HttpException import retrofit2.Response import timber.log.Timber import java.io.IOException abstract class BaseRepo { // This is a generic function to handle all API calls suspe...
0
Kotlin
0
0
c7c471b04207b8943a073a4f119cad32bd1764f4
1,222
compose-template
MIT License
noteServer/note/src/main/kotlin/com/rabbitcat/note/aop/LogAspect.kt
bcc829
155,066,475
false
null
package com.rabbitcat.note.aop import org.aspectj.lang.JoinPoint import org.aspectj.lang.ProceedingJoinPoint import org.aspectj.lang.annotation.Around import org.aspectj.lang.annotation.Aspect import org.aspectj.lang.annotation.Before import org.slf4j.LoggerFactory import org.springframework.stereotype.Component impor...
0
Kotlin
0
0
86de7b7de8acea55072bf7cc083d3cb85e7f82bb
3,801
noteServer
Apache License 2.0
app/src/main/java/cn/lelight/iot/blemesh/demo/CommonDeviceActivity.kt
LeMeshIoT
462,249,715
false
{"Kotlin": 60213, "Java": 1411}
package cn.lelight.iot.blemesh.demo import android.annotation.SuppressLint import android.content.Context import android.os.Bundle import android.text.InputType import android.view.MenuItem import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import cn.lelight.iot.blemesh.demo.databinding.Activi...
1
Kotlin
0
0
80837f5dad923cab33b761c1323066d764dbf730
15,420
LeMesh-blemesh-android-sdk-sample-kotlin
MIT License
src/test/kotlin/days/Day12Test.kt
butnotstupid
571,247,661
false
null
package days import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.core.Is.`is` import org.junit.jupiter.api.Test class Day12Test { private val dayTwelve = Day12() @Test fun testPartOne() { val partOne = dayTwelve.partOne() println("\nPART ONE: $partOne") assertThat(pa...
0
Kotlin
0
0
4760289e11d322b341141c1cde34cfbc7d0ed59b
508
aoc-2022
Creative Commons Zero v1.0 Universal
vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/photos/GetAllExtendedResponse.kt
alatushkin
156,866,851
false
null
package name.alatushkin.api.vk.generated.photos open class GetAllExtendedResponse( val count: Long? = null, val items: Array<PhotoFullXtrRealOffset>? = null, val more: Boolean? = null )
2
Kotlin
3
10
123bd61b24be70f9bbf044328b98a3901523cb1b
199
kotlin-vk-api
MIT License
src/test/kotlin/dev/olog/flow/test/observer/FlowTestCollectorImplErrorMessagesTest.kt
ologe
235,895,634
false
null
package dev.olog.flow.test.observer import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.flow import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.test.UnconfinedTestDispatcher import kotlinx.coroutines.test.runTest import org.junit.AfterClass import org.junit.Assert.assertEquals i...
0
Kotlin
0
40
315ec4a863ca38d9820f9858f3ea6fe49533af3d
14,598
flow-test-observer
MIT License
app/src/main/java/com/project/neardoc/utils/service/StepCountForegroundServiceManager.kt
HashemDeveloper
207,633,364
false
null
package com.project.neardoc.utils.service import android.app.ActivityManager import android.content.ComponentName import android.content.Context import android.content.Intent import android.content.ServiceConnection import android.os.Build import android.os.IBinder import android.util.Log import com.project.neardoc.Bu...
0
Kotlin
0
1
38bbb6b46017f0da78d0c5bfda187a864830db4c
4,903
NearDoc
Apache License 2.0
kgl-glfw/src/jvmMain/kotlin/com/kgl/glfw/Cursor.kt
Dominaezzz
164,507,082
false
null
/** * Copyright [2019] [<NAME>] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
13
null
11
96
41155a8200602535697b872232e41cfe6f5eb20e
1,464
kgl
Apache License 2.0
data-layer/src/main/kotlin/org/deafsapps/android/favquotes/datalayer/domain/OnDataMapper.kt
pablodeafsapps
354,134,895
false
null
package org.deafsapps.android.favquotes.datalayer.domain import org.deafsapps.android.favquotes.domainlayer.domain.FailureBo import org.deafsapps.android.favquotes.domainlayer.domain.QuoteBo import org.deafsapps.android.favquotes.domainlayer.domain.QuoteListWrapperBo private const val DEFAULT_STRING_VALUE = "" privat...
0
Kotlin
1
0
7aee42ace3c06830262a3bc5e407186e4da93850
2,636
fav-quotes
MIT License
shared/src/commonMain/kotlin/data/classSchedule/GetVerifyCodeFormWest2.kt
west2-online
840,273,230
false
{"Kotlin": 742964, "Swift": 592, "Shell": 228}
package data.classSchedule import kotlinx.serialization.Serializable @Serializable data class GetVerifyCodeFormWest2(val message: String)
6
Kotlin
2
0
484b699b372e6ff5c43ae725372b28c6de4eaa73
140
fzuhelper-KMP
Apache License 2.0
server/src/main/kotlin/jetbrains/rsynk/io/BasicReadingIO.kt
richardy2012
96,218,024
true
{"Kotlin": 167498, "Python": 3069, "FreeMarker": 566}
/** * Copyright 2016 - 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 a...
0
Kotlin
0
0
75dfd34ec9b90a3f4ab0eddbd2d4961ae8496491
1,639
rsynk
Apache License 2.0
cache/src/main/java/com/playone/mobile/cache/db/Db.kt
lekaha
121,380,867
false
null
package com.playone.mobile.cache.db /** * This class defines the tables found within the application Database. All table * definitions should contain column names and a sequence for creating the table. */ object Db { object PlayoneTable { const val TABLE_NAME = "playone" const val PLAYONE_ID =...
5
Kotlin
0
1
15ca77cbe9189554723b9b5cd4302946fd4675a8
715
playone-android
MIT License
backend/src/main/java/radar/stats/repositories/api/StatsRepository.kt
community-graph
107,399,783
false
{"JavaScript": 26063, "Kotlin": 19083, "HTML": 9320, "SCSS": 6334, "CSS": 444}
package radar.stats.repositories.api interface StatsRepository { data class Monthly(val month: String, val count: Int) fun tweetsPerMonth(): List<Monthly> }
4
JavaScript
2
2
356eb3188cff3f1090f427f65557c8b0e1c3518d
168
community-radar
Apache License 2.0
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/SendMoneySmartphone.kt
localhostov
808,861,591
false
{"Kotlin": 79430321, "HTML": 331, "CSS": 102}
package me.localx.icons.straight.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter...
1
Kotlin
0
5
cbd8b510fca0e5e40e95498834f23ec73cc8f245
4,183
icons
MIT License