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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
components/src/androidTest/java/emperorfin/android/components/ui/screens/authentication/uicomponents/AuthenticationFormTest5.kt | emperorfin | 611,222,954 | false | null | /**
* Copyright 2023 <NAME> (emperorfin)
*
* 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... | 0 | null | 0 | 28 | e0d9ad8b2b0fc13087d602b88b0c64cf6dddb3c2 | 29,794 | MilitaryJet | Apache License 2.0 |
kmmtshared/analytics/src/androidMain/kotlin/com/kmmt/analytics/platforms/uxcam/ExpectationsMixpanel.kt | jittya | 361,707,096 | false | null | package com.kmmt.analytics.platforms.uxcam
import com.kmmt.analytics.expectations.AnalyticsContext
import org.koin.core.module.KoinDefinition
import org.koin.core.module.Module
actual fun analyticsUXCamModule(module: Module, key: String): KoinDefinition<AnalyticsUXCam> {
return module.single {
AnalyticsU... | 0 | Kotlin | 10 | 221 | 2faa5eb1fdd785cc1b07f03b9c186af1a3acfc40 | 415 | KMMT | MIT License |
mvvm/src/androidTest/java/dev/sunnyday/core/mvvm/binding/ViewExtrasTest.kt | SunnyDayDev | 178,215,276 | false | null | package dev.sunnyday.core.mvvm.binding
import android.view.View
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Test
import org.junit.Assert.*
class ViewExtrasTest : Bindings() {
@Test
fun testThatExtrasAlwaysTheSame() {
val testView = View(InstrumentationRegistry.getInstr... | 0 | Kotlin | 0 | 0 | ec79bad3cc61ecb2e0b2fa651caa6f73ccf39b33 | 3,213 | core | MIT License |
collector/test-data-uploader/src/main/kotlin/com/buildkite/test/collector/android/tracer/environment/TestEnvironmentValue.kt | buildkite | 519,058,398 | false | {"Kotlin": 71408, "Shell": 1804} | package com.buildkite.test.collector.android.tracer.environment
/**
* Contains environment variable keys for configuring the Buildkite test analytics collector.
*
* These constants are used to retrieve environment values from local machines or Continuous Integration (CI) environments
* to configure the Buildkite t... | 1 | Kotlin | 3 | 4 | 24188cd631d6765ce34d2de92de3e3b0f616b94b | 1,640 | test-collector-android | MIT License |
desktop/src/jvmMain/kotlin/Main.kt | sproctor | 638,790,475 | false | {"Kotlin": 57060} | import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import com.seanproctor.datatable.demo.App
fun main() = application {
Window(onCloseRequest = ::exitApplication) {
App { println("Row clicked: $it") }
}
}
| 6 | Kotlin | 13 | 95 | 12a6fb483923904f9e0f28967cedb420288f5443 | 259 | compose-data-table | Apache License 2.0 |
backend/src/main/kotlin/com/beanpedia/Application.kt | nicarl | 425,200,757 | false | {"Kotlin": 74678, "Dockerfile": 538} | package com.beanpedia
import com.beanpedia.exceptions.configureStatusPages
import com.beanpedia.routes.configureRouting
import com.beanpedia.service.BeanService
import com.beanpedia.service.DatabaseBeanService
import com.beanpedia.service.DatabaseFactory
import com.beanpedia.service.DatabaseRoasteryService
import com.... | 11 | Kotlin | 0 | 0 | c48cbf9b8f0061b56c5b218fb3e39709ed693191 | 1,249 | beanpedia | Apache License 2.0 |
src/com/softmoore/graphlib/Point.kt | SoftMoore | 313,323,758 | false | null | package com.softmoore.graphlib
/**
* Point encapsulates a pair of double values representing a point
* in the x,y-plane using world coordinates.
*/
data class Point(val x : Double, val y : Double)
{
constructor(x : Int, y : Int) : this(x.toDouble(), y.toDouble())
}
| 0 | Kotlin | 0 | 0 | bbc9c7ba6360e0bad2f6214a3bed6a6b5fff8ab8 | 279 | GraphLib-Kt | The Unlicense |
src/main/kotlin/dev/deos/etrium/Init.kt | Deos-Team | 664,702,265 | false | null | package dev.deos.etrium
import dev.deos.etrium.command.EnergyCommand
import dev.deos.etrium.config.ConfigManager
import dev.deos.etrium.network.DataPackets
object Init {
init {
EnergyCommand
ConfigManager
DataPackets.registerS2CPackets()
}
} | 0 | Kotlin | 0 | 0 | 2740c91b97ffcf7d148af00684b7987bf0a3c0af | 275 | etrium-rpg | MIT License |
app/src/main/java/com/semisonfire/cloudgallery/ui/main/ui/state/StateViewController.kt | Semyon100116907 | 132,183,724 | false | null | package com.semisonfire.cloudgallery.ui.main.ui.state
import android.content.Intent
import android.net.Uri
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.semisonfire.cloudgallery.R
import com.semisonfire.cloudgallery.core.ui.state.State
import com.semisonfire.cloudga... | 0 | Kotlin | 0 | 1 | 59f8b94fdeaf8db0557deef84f1b25224ab768e4 | 3,118 | CloudGallery | MIT License |
spesialist-selve/src/main/kotlin/no/nav/helse/mediator/api/OverstyringApi.kt | navikt | 244,907,980 | false | null | package no.nav.helse.mediator.api
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.auth.jwt.*
import io.ktor.http.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import kotlinx.coroutines.Dispatchers
import kotl... | 0 | Kotlin | 0 | 0 | e6407eb836046ced04e33a3eb7db4490a1df59c1 | 4,971 | helse-spesialist | MIT License |
app/src/main/kotlin/com/vshkl/calk/android/ui/CalculationRow.kt | vshkl | 601,305,071 | false | null | package com.vshkl.calk.android.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.c... | 0 | Kotlin | 0 | 0 | fd877c48a50746a4ba7050c0373a19436dce2a4e | 1,164 | Calk | Apache License 2.0 |
bucketeer/src/test/kotlin/io/bucketeer/sdk/android/internal/event/BKTExceptionToMetricEventsTest.kt | bucketeer-io | 517,624,444 | false | null | package io.bucketeer.sdk.android.internal.event
import com.google.common.truth.Truth
import com.google.testing.junit.testparameterinjector.TestParameter
import com.google.testing.junit.testparameterinjector.TestParameterInjector
import io.bucketeer.sdk.android.BKTException
import io.bucketeer.sdk.android.internal.mode... | 6 | Kotlin | 2 | 5 | 806ec1a8e3c333bb536b17af51836e93115124e5 | 1,674 | android-client-sdk | Apache License 2.0 |
app/src/main/kotlin/com/generalmobile/app/gmnotes/di/component/ApplicationComponent.kt | general-mobile | 92,407,208 | false | null | package com.generalmobile.app.gmnotes.di.component
import android.content.Context
import android.content.SharedPreferences
import com.generalmobile.app.gmnotes.Application
import com.generalmobile.app.gmnotes.db.AppDatabase
import com.generalmobile.app.gmnotes.di.module.ApplicationModule
import com.generalmobile.app.g... | 1 | null | 12 | 105 | 1d0ac39dd3104491f736f06ab940b283fba34553 | 886 | kotlin-architecture-components-notes-demo | MIT License |
app/src/main/java/com/example/managebudget/ui/theme/Color.kt | merajdh | 770,254,994 | false | {"Kotlin": 44539} | package com.example.managebudget.ui.theme
import androidx.compose.ui.graphics.Color
val PrimaryLight = Color(0xFFF8F9FA)
val PrimaryDark = Color(0xFF161622)
val PrimaryVariant = Color(0xFF131822)
val Secondary = Color(0xFF252A57)
val IncomingColor = Color(0xFF67D4CA)
val ExpanseColor = Color(0xFFF28080)
val Ligh... | 0 | Kotlin | 0 | 0 | d91fc893347fdaba0c080ef0f6145d55a9f5bbae | 387 | budget-manager | MIT License |
analytics/src/testSnapshot/java/io/appmetrica/analytics/snapshot/impl/db/storage/TempCacheDbHelperWrapperAssertTest.kt | appmetrica | 650,662,094 | false | {"Java": 5810866, "C++": 5729793, "Kotlin": 2626120, "Python": 229161, "Objective-C++": 152166, "C": 127185, "Assembly": 59003, "Emacs Lisp": 14657, "Objective-C": 10302, "Starlark": 7767, "Shell": 5746, "Go": 4930, "CMake": 3562, "CSS": 1454, "AppleScript": 1429, "AIDL": 504} | package io.appmetrica.analytics.snapshot.impl.db.storage
import android.content.Context
import io.appmetrica.analytics.coreapi.internal.data.TempCacheStorage
import io.appmetrica.analytics.impl.db.StorageType
import io.appmetrica.analytics.impl.db.storage.TempCacheDbHelperWrapper
import io.appmetrica.analytics.impl.ut... | 1 | Java | 5 | 54 | 472d3dfb1e09f4e7f35497e5049f53287ccce7d1 | 1,910 | appmetrica-sdk-android | MIT License |
app/src/test/java/com/aws/amazonlocation/utils/turf/TurfMetaCoordsPointTest.kt | aws-geospatial | 625,008,140 | false | {"Kotlin": 1731535, "Java": 37880, "JavaScript": 5632, "Ruby": 1270, "Shell": 797} | package com.aws.amazonlocation.utils.turf
import com.aws.amazonlocation.mock.TEST_DATA_LAT
import com.aws.amazonlocation.mock.TEST_DATA_LNG
import com.aws.amazonlocation.utils.geofence_helper.turf.TurfMeta
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.maplibre.geojson.MultiLi... | 2 | Kotlin | 4 | 0 | 59078d38cfa768c9777ce220489a39eff8afe388 | 1,470 | amazon-location-features-demo-android | MIT No Attribution |
packages/cinterop/src/androidAndroidTest/kotlin/io/realm/kotlin/test/sync/SyncEnumTests.kt | realm | 235,075,339 | false | null | /*
* Copyright 2022 Realm 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 in wr... | 188 | Kotlin | 42 | 610 | 107ad3b592fd9adccb476b1835d4579f13d7e765 | 6,371 | realm-kotlin | Apache License 2.0 |
src/main/kotlin/de/longuyen/nqueen/Main.kt | longmakesstuff | 282,503,660 | false | null | package de.longuyen.nqueen
fun main(){
val population = Population(200)
population.fitAndSort()
val before = System.currentTimeMillis()
for(i in 0 until 1000){
population.evolve()
population.fitAndSort()
}
val after = System.currentTimeMillis()
println("Genetic algorithm's f... | 0 | Kotlin | 0 | 2 | 88e44f138123daab94fccde54bbcc179dba30224 | 449 | Genetic | Apache License 2.0 |
src/main/kotlin/de/longuyen/nqueen/Main.kt | longmakesstuff | 282,503,660 | false | null | package de.longuyen.nqueen
fun main(){
val population = Population(200)
population.fitAndSort()
val before = System.currentTimeMillis()
for(i in 0 until 1000){
population.evolve()
population.fitAndSort()
}
val after = System.currentTimeMillis()
println("Genetic algorithm's f... | 0 | Kotlin | 0 | 2 | 88e44f138123daab94fccde54bbcc179dba30224 | 449 | Genetic | Apache License 2.0 |
Extractor/Gradle/plugin/core/src/test/kotlin/net/meilcli/bibliothekar/extractor/plugin/core/entities/json/PomJsonDeserializerTest.kt | MeilCli | 577,465,825 | false | {"Kotlin": 276465, "TypeScript": 28176, "JavaScript": 194} | package net.meilcli.bibliothekar.extractor.plugin.core.entities.json
import net.meilcli.bibliothekar.extractor.plugin.core.entities.*
import org.junit.Test
import kotlin.test.assertEquals
class PomJsonDeserializerTest {
@Test
fun testDeserialize_full() {
val pom = Pom(
group = "net.meilcl... | 8 | Kotlin | 0 | 2 | 5409f463ae19e71039eb54e84bc29381a0d3dc0d | 1,839 | Bibliothekar | MIT License |
src/commonMain/kotlin/data/items/MantleOfTheTempest.kt | marisa-ashkandi | 332,658,265 | false | null | package `data`.items
import `data`.Constants
import `data`.buffs.Buffs
import `data`.itemsets.ItemSets
import `data`.model.Color
import `data`.model.Item
import `data`.model.ItemSet
import `data`.model.Socket
import `data`.model.SocketBonus
import `data`.socketbonus.SocketBonuses
import character.Buff
import character... | 21 | Kotlin | 11 | 25 | 9cb6a0e51a650b5d04c63883cb9bf3f64057ce73 | 1,990 | tbcsim | MIT License |
net/craftventure/core/feature/minigame/BaseMinigame.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.feature.minigame
import net.craftventure.bukkit.ktx.entitymeta.getMetadata
import net.craftventure.bukkit.ktx.extension.removeAllPotionEffects
import net.craftventure.bukkit.ktx.extension.sendTo
import net.craftventure.bukkit.ktx.manager.MessageBarManager
import net.craftventure.bukkit.kt... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 17,306 | open-plugin-parts | MIT License |
validable/src/main/java/tech/devscast/validable/WithValidable.kt | devscast | 433,571,968 | false | {"Kotlin": 43349, "Shell": 41} | package tech.devscast.validable
fun withValidable(vararg fields: BaseValidable, next: () -> Unit) {
val errors: List<Boolean> = fields.map {
it.enableShowErrors()
it.hasError()
}
if (!errors.contains(true)) {
next()
}
}
| 2 | Kotlin | 4 | 30 | 045d14c7c09a141e8dd2add009b458a6d50e1a8a | 262 | validable | MIT License |
app/src/main/java/com/liuzhenli/app/ui/activity/SettingActivity.kt | liuzhenli | 270,669,186 | false | {"Java": 626886, "Kotlin": 3791} | package com.liuzhenli.app.ui.activity
import android.content.Context
import android.content.Intent
import butterknife.BindView
import com.liuzhenli.app.R
import com.liuzhenli.app.base.BaseActivity
import com.liuzhenli.app.events.LoginOutEvent
import com.liuzhenli.app.network.AppComponent
import com.liuzhenli.app.ui.co... | 1 | null | 1 | 1 | e76fac9be77b2f10f9f3a4764f7983c7f84a13c8 | 1,586 | WanAndroid | Apache License 2.0 |
backend/src/main/kotlin/dev/dres/api/rest/ClientOpenApiPlugin.kt | dres-dev | 248,713,193 | false | {"Kotlin": 942970, "TypeScript": 466681, "HTML": 192895, "SCSS": 12579, "JavaScript": 1835, "Shell": 925, "Dockerfile": 412} | package dev.dres.api.rest
import com.fasterxml.jackson.databind.node.ObjectNode
import dev.dres.DRES
import io.javalin.openapi.CookieAuth
import io.javalin.openapi.plugin.OpenApiConfiguration
import io.javalin.openapi.plugin.OpenApiPlugin
import io.javalin.openapi.plugin.OpenApiPluginConfiguration
import io.javalin.op... | 37 | Kotlin | 3 | 14 | 7fbe29f3d77f105fc6e1ae31c76bac7fd39a6bae | 2,049 | DRES | MIT License |
src/test/kotlin/net/codetreats/aoc2021/day06/Day06Test.kt | codetreats | 433,929,847 | false | {"Kotlin": 133030, "Shell": 811} | package net.codetreats.aoc2021.day06
import net.codetreats.aoc2021.util.Level
import net.codetreats.aoc2021.util.Logger
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
class Day06Test {
private lateinit var classUnderTest : Day06
... | 0 | Kotlin | 0 | 0 | f7c456faa31f85420e988baa47682e0de973e906 | 970 | aoc2021 | MIT License |
android/app/src/main/kotlin/net/seven/nodebase/External.kt | dna2github | 83,192,148 | false | null | package net.seven.nodebase
import android.content.Context
import android.content.Intent
import android.net.Uri
import java.io.File
object External {
fun openBrowser(context: Context, url: String) {
val intent = Intent(Intent.ACTION_SEND)
intent.action = "android.intent.action.VIEW"
intent... | 2 | null | 64 | 91 | 78f227907fe612d0fff89c4a6d8969cc24561f78 | 1,156 | NodeBase | Apache License 2.0 |
MapboxSearch/common-tests/src/main/java/com/mapbox/search/common/tests/CoreTestDataFactory.kt | mapbox | 438,355,708 | false | {"Kotlin": 2244061, "Java": 41736, "Python": 18980, "Shell": 17499} | package com.mapbox.search.common.tests
import com.mapbox.bindgen.ExpectedFactory
import com.mapbox.geojson.Point
import com.mapbox.search.internal.bindgen.AttributeSet
import com.mapbox.search.internal.bindgen.ConnectionError
import com.mapbox.search.internal.bindgen.HttpError
import com.mapbox.search.internal.bindgen... | 17 | Kotlin | 7 | 33 | 369bc63bb10a7da7f2b3e57839ba47b762c87b99 | 11,646 | mapbox-search-android | Apache License 2.0 |
meteor-viewmodel/src/commonMain/kotlin/io/spherelabs/meteorviewmodel/concurrency/Synchronized.kt | getspherelabs | 646,328,849 | false | {"Kotlin": 68656} | package io.spherelabs.meteorviewmodel.concurrency
internal expect inline fun <R> synchronized(lock: Lock, block: () -> R): R
| 13 | Kotlin | 3 | 41 | c2406b12c08ab20485130d00b82ef181ebd0a890 | 126 | meteor-kmp | Apache License 2.0 |
src/main/kotlin/com/alzakharov/patterns/ip/V6.kt | al-zakharov | 508,063,626 | false | {"Kotlin": 22276} | package com.alzakharov.patterns.ip
object V6 {
fun apply(ip: String) = (
"^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:" +
"[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[" +
"0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0," +
... | 0 | Kotlin | 0 | 0 | e80d2853a4546e2493df72b92dd64dd73166fac6 | 1,260 | kotlin-validators | Apache License 2.0 |
game-server/game/src/main/kotlin/com/osrs/game/network/packet/builder/impl/RunClientScriptPacketBuilder.kt | runetopic | 613,076,716 | false | {"Kotlin": 296499, "Witcher Script": 2511} | package com.osrs.game.network.packet.builder.impl
import com.google.inject.Singleton
import com.osrs.api.buffer.RSByteBuffer
import com.osrs.api.item.Item
import com.osrs.game.container.Container
import com.osrs.game.network.packet.builder.PacketBuilder
import com.osrs.game.network.packet.type.server.ClientScriptPacke... | 1 | Kotlin | 1 | 10 | 2a5186b2b7befa7c364e0b989da68ed83070a926 | 1,845 | osrs-server | MIT License |
MusicPlayer/src/main/java/com/randos/music_player/service/MusicSessionService.kt | vsnappy1 | 787,726,120 | false | {"Kotlin": 73419} | package com.randos.music_player.service
import androidx.media3.session.MediaSession
import androidx.media3.session.MediaSessionService
class MusicSessionService: MediaSessionService() {
override fun onGetSession(controllerInfo: MediaSession.ControllerInfo): MediaSession? {
TODO("Not yet implemented")
... | 0 | Kotlin | 0 | 0 | 69e15504d895851b46bc3af916906dda1782b34d | 323 | MusicVibe | Apache License 2.0 |
app/src/main/java/io/wookey/dash/feature/asset/SendViewModel.kt | msgpo | 545,626,152 | true | {"C": 2987509, "C++": 2009138, "Assembly": 778483, "Python": 496859, "Kotlin": 301796, "Java": 196221, "CMake": 128422, "Shell": 25505, "Objective-C": 120} | package io.wookey.dash.feature.asset
import android.app.Activity
import android.arch.lifecycle.MediatorLiveData
import android.arch.lifecycle.MutableLiveData
import android.content.Intent
import io.wookey.dash.R
import io.wookey.dash.base.BaseViewModel
import io.wookey.dash.core.Repository
import io.wookey.dash.core.W... | 0 | null | 0 | 0 | 37316315f8e163bd6dbdab2534b41c9ee577039b | 5,859 | dash-wallet-android-app | MIT License |
src/main/java/com/dzen/campfire/api/requests/wiki/RWikiItemHistoryRestore.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.requests.wiki
import com.dzen.campfire.api.tools.client.Request
import com.sup.dev.java.libs.json.Json
open class RWikiItemHistoryRestore(
var pagesId: Long
) : Request<RWikiItemHistoryRestore.Response>() {
override fun jsonSub(inp: Boolean, json: Json) {
pagesId = j... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 827 | CampfireApi | Apache License 2.0 |
src/test/kotlin/io/snyk/plugin/ui/jcef/OpenFileLoadHandlerGeneratorTest.kt | snyk | 117,852,067 | false | {"Kotlin": 1062043, "Java": 67741, "JavaScript": 9475, "SCSS": 3094, "HCL": 562} | package io.snyk.plugin.ui.jcef
import com.intellij.execution.testframework.TestsUIUtil
import com.intellij.openapi.application.WriteAction
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiFile
import com.intellij.testFramework.PlatformTestU... | 8 | Kotlin | 32 | 52 | 3be4495e463c6338e827aaa32031ab7971ab2982 | 2,201 | snyk-intellij-plugin | Apache License 2.0 |
src/main/kotlin/com/semperhilaris/slopeone/Item.kt | semperhilaris | 131,739,341 | false | null | package com.semperhilaris.slopeone
data class Item(var label: String) | 0 | Kotlin | 0 | 1 | b4573567b0fdcc0c9bd936d0779ad1e851de7e93 | 70 | slopeone | MIT License |
app/src/main/java/com/example/rickandmorttytest/di/module/RetrofitModule.kt | devom7022 | 349,423,997 | false | null | package com.example.rickandmorttytest.di.module
import com.example.rickandmorttytest.BuildConfig
import com.example.rickandmorttytest.api.ApiClient
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.... | 0 | Kotlin | 0 | 0 | 42c34fd4fccdfb9ad4151868b7caa65ffc8c9152 | 1,258 | rick | MIT License |
app/src/main/java/me/devsaki/hentoid/fragments/library/LibraryBottomGroupsFragment.kt | avluis | 37,775,708 | false | null | package me.devsaki.hentoid.fragments.library
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.ViewModelProv... | 172 | null | 84 | 992 | f54df07b79da4147951bc9902ab0dbd70edb50f1 | 6,611 | Hentoid | Apache License 2.0 |
app/src/androidTest/kotlin/photos/network/home/photos/PhotosScreenTests.kt | photos-network | 336,262,847 | false | null | /*
* Copyright 2020-2022 Photos.network developers
*
* 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 applicab... | 0 | Kotlin | 0 | 2 | 994d3609a1b9ea4a1aefcfbf7943a4705c401ed6 | 1,445 | android | Apache License 2.0 |
twitter-clone/app/src/main/java/io/github/vnicius/twitterclone/data/remote/api/APIInterface.kt | Vnicius | 200,317,783 | false | null | package io.github.vnicius.twitterclone.data.remote.api
import twitter4j.ResponseList
import twitter4j.Status
import twitter4j.Trend
import twitter4j.User
/**
* Interface to the Twitter API calls
*/
interface APIInterface {
/**
* Search tweets by a [query] and limit by a [count]
* @param [query] the q... | 1 | Kotlin | 0 | 3 | fac5e8cacf4d6e11f711121ca7c1dd3ac44f2d03 | 1,177 | twitter-clone-android | MIT License |
twitter-clone/app/src/main/java/io/github/vnicius/twitterclone/data/remote/api/APIInterface.kt | Vnicius | 200,317,783 | false | null | package io.github.vnicius.twitterclone.data.remote.api
import twitter4j.ResponseList
import twitter4j.Status
import twitter4j.Trend
import twitter4j.User
/**
* Interface to the Twitter API calls
*/
interface APIInterface {
/**
* Search tweets by a [query] and limit by a [count]
* @param [query] the q... | 1 | Kotlin | 0 | 3 | fac5e8cacf4d6e11f711121ca7c1dd3ac44f2d03 | 1,177 | twitter-clone-android | MIT License |
app/src/main/java/com/yoyiyi/soleil/adapter/home/live/LivePartitionAdapter.kt | yoyiyi | 97,073,764 | false | null | package com.yoyiyi.soleil.adapter.home.live
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.yoyiyi.soleil.R
import com.yoyiyi.sole... | 2 | Kotlin | 25 | 141 | 044f76fd499bb49b0fe94d9c83c9bb1db283b8ea | 1,299 | bilisoleil-kotlin | Apache License 2.0 |
rtmp/src/main/java/com/pedro/rtmp/utils/BitBuffer.kt | pedroSG94 | 79,667,969 | false | {"Kotlin": 1116814, "Java": 618860, "GLSL": 34672} | /*
* Copyright (C) 2024 pedroSG94.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 87 | Kotlin | 772 | 2,545 | eca59948009d5a7b564f9a838c149b850898d089 | 2,830 | RootEncoder | Apache License 2.0 |
app/src/main/java/com/mapbox/search/sample/api/ReverseGeocodingKotlinExampleActivity.kt | mapbox | 288,445,988 | false | null | package com.mapbox.search.sample.api
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.mapbox.geojson.Point
import com.mapbox.search.MapboxSearchSdk
import com.mapbox.search.ResponseInfo
import com.mapbox.search.ReverseGeoOptions
import com.mapbox.search.Revers... | 0 | null | 5 | 5 | e4895da7ad714a56ce2479e6a7eb0d08e4762d29 | 1,693 | mapbox-search-android-examples | Creative Commons Zero v1.0 Universal |
test/dorkboxTest/network/RandomId65kAllocatorTest.kt | dorkbox | 53,281,134 | false | {"Kotlin": 1427302, "Java": 82773} | package dorkboxTest.network
import dorkbox.network.handshake.RandomId65kAllocator
import org.junit.Assert
import org.junit.Test
class RandomId65kAllocatorTest : BaseTest() {
@Test
fun reassignment() {
val allocator = RandomId65kAllocator(1, 7)
repeat(6) {
allocator.allocate()
... | 1 | Kotlin | 2 | 7 | 3f77af5894b45070a7e09ee9a47b977cf2f8e5d9 | 1,247 | Network | Creative Commons Zero v1.0 Universal |
core/src/main/java/io/iamjosephmj/core/interactors/SearchForJobs.kt | iamjosephmj | 347,596,083 | false | null | /*
* MIT License
*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pu... | 0 | null | 0 | 2 | c98b95542857eab6ecc0deb47382c70ef82c756d | 1,648 | Rx-Clean | MIT License |
UIViews/src/main/java/com/programmersbox/uiviews/settings/ExtensionListScreen.kt | jakepurple13 | 353,155,453 | false | null | package com.programmersbox.uiviews.settings
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Build
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import... | 9 | null | 21 | 407 | 71aed9ffc1116d38075d1da677ea6fcfceed0125 | 30,492 | OtakuWorld | Apache License 2.0 |
mentosweb/src/main/java/site/exciter/mentosweb/command/CommandDispatcher.kt | zhangmushui | 449,321,191 | false | null | package site.exciter.mentosweb.command
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.os.IBinder
import android.util.Log
import site.exciter.mentosweb.ICallbackFromMainprocessToWebViewProcessInterface
import site... | 0 | Kotlin | 1 | 9 | 0e54cb1942a9c1c9e592ae90adf6bba910d2dde2 | 1,988 | MentosWeb | Apache License 2.0 |
plot-config-portable/src/commonMain/kotlin/jetbrains/datalore/plot/config/LayerConfigUtil.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.config
import jetbrains.datalore.plot.base.Aes
import jetbrains.datalore.plot.base.DataFrame
import jetbrains.datalore.plot.base.DataFrame.Var... | 85 | null | 44 | 854 | 0d18a34fc08ba7447aceab41c4c0a6badbae6ffd | 3,378 | lets-plot | MIT License |
presentation/src/commonMain/kotlin/ireader/presentation/ui/home/library/ui/LibrarySelectionBar.kt | kazemcodes | 540,829,865 | true | {"Kotlin": 2179459} | package ireader.presentation.ui.home.library.ui
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
import androidx.compose.animation.shrinkVertically
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.... | 0 | Kotlin | 0 | 6 | b6b2414fa002cec2aa0d199871fcfb4c2e190a8f | 2,603 | IReader | Apache License 2.0 |
presentation-databinding/src/main/java/com/htecgroup/androidcore/presentation/viewmodel/Action.kt | htecgroup | 614,231,356 | false | null | /*
* Copyright 2023 HTEC Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 1 | 3 | f995c32c19b1a794f9b0e841a4d05266e28d9683 | 820 | android-core | Apache License 2.0 |
legacy/src/main/kotlin/rs/emulate/legacy/widget/type/ModelWidget.kt | apollo-rsps | 50,723,825 | false | null | package rs.emulate.legacy.widget.type
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import rs.emulate.legacy.widget.Widget
import rs.emulate.legacy.widget.WidgetGroup
import rs.emulate.legacy.widget.WidgetGroup.MODEL
import rs.emulate.legacy.widget.WidgetOption
import rs.emulate.legacy.widget.script.L... | 11 | Kotlin | 5 | 11 | 2b50896d38dace93fad792af55b653c2b05b5aa0 | 2,672 | Vicis | ISC License |
erikflowers-weather-icons/src/commonMain/kotlin/compose/icons/weathericons/DirectionRight.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.weathericons
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
impo... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,636 | compose-icons | MIT License |
technocracy.astronautics/src/main/kotlin/net/cydhra/technocracy/astronautics/content/blocks/RocketControllerBlock.kt | tth05 | 198,904,996 | true | {"Kotlin": 1367573, "GLSL": 13066} | package net.cydhra.technocracy.astronautics.content.blocks
import net.cydhra.technocracy.astronautics.content.tileentity.TileEntityRocketController
import net.cydhra.technocracy.foundation.TCFoundation
import net.cydhra.technocracy.foundation.client.gui.handler.TCGuiHandler
import net.cydhra.technocracy.foundation.dat... | 0 | Kotlin | 0 | 1 | 057d12813fbcb73a11b202caae0631020b2fa303 | 3,129 | Technocracy | MIT License |
korge/src/commonMain/kotlin/com/soywiz/korge/animate/Animator.kt | korlibs | 80,095,683 | false | null | package com.soywiz.korge.animate
import com.soywiz.kds.*
import com.soywiz.kds.iterators.*
import com.soywiz.klock.*
import com.soywiz.korge.tween.*
import com.soywiz.korge.view.*
import com.soywiz.korio.async.*
import com.soywiz.korma.geom.Angle
import com.soywiz.korma.geom.plus
import com.soywiz.korma.interpolation.... | 102 | Kotlin | 64 | 1,192 | 7fa8c9981d09c2ac3727799f3925363f1af82f45 | 15,372 | korge | Apache License 2.0 |
core/model/src/main/java/com/anshtya/core/model/library/LibraryTask.kt | anshtya | 704,151,092 | false | {"Kotlin": 252581} | package com.anshtya.core.model.library
import com.anshtya.core.model.MediaType
class LibraryTask private constructor(
val mediaId: Int,
val mediaType: MediaType,
val taskType: LibraryTaskType,
val itemExistLocally: Boolean
) {
companion object {
fun favoriteItemTask(mediaId: Int, mediaType... | 1 | Kotlin | 0 | 1 | 2f44b6e36602ad1d0c2896e1c950aed50a989814 | 676 | MovieInfo | MIT License |
clientconnector-okhttp/src/test/kotlin/org/ergoplatform/mosaik/OkHttpBackendConnectorTest.kt | MrStahlfelge | 487,586,253 | false | {"Kotlin": 275596, "Java": 204652, "FreeMarker": 2176, "HTML": 302} | package org.ergoplatform.mosaik
import okhttp3.OkHttpClient
import org.ergoplatform.mosaik.model.MosaikContext
import org.junit.Assert.*
import org.junit.Test
class OkHttpBackendConnectorTest {
@Test
fun checkForMosaikRelTag() {
val backendConnector = OkHttpBackendConnector(
OkHttpClient... | 1 | Kotlin | 0 | 0 | c01447684543a4d2ea2a086e6183a88306a7e0c5 | 1,593 | mosaik | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/walletconnect/connectionrequest/domain/repository/WCDomainScammerStateRepository.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 wri... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,086 | pera-wallet | Apache License 2.0 |
app/src/main/java/com/chesire/nekome/injection/AuthModule.kt | Chesire | 223,272,337 | false | null | package com.chesire.nekome.injection
import com.chesire.nekome.auth.api.AuthApi
import com.chesire.nekome.kitsu.KITSU_URL
import com.chesire.nekome.kitsu.auth.KitsuAuth
import com.chesire.nekome.kitsu.auth.KitsuAuthService
import com.squareup.moshi.Moshi
import dagger.Binds
import dagger.Module
import dagger.Provides
... | 24 | null | 42 | 471 | 191def4011f659972951d3766bfb4e5af4076ab1 | 1,335 | Nekome | Apache License 2.0 |
lcc-content-data/src/main/kotlin/com/joshmanisdabomb/lcc/data/factory/recipe/HeartContainerRecipeFactory.kt | joshmanisdabomb | 537,458,013 | false | {"Kotlin": 2724329, "Java": 138822} | package com.joshmanisdabomb.lcc.data.factory.recipe
import com.joshmanisdabomb.lcc.block.HeartCondenserBlock
import com.joshmanisdabomb.lcc.data.DataAccessor
import com.joshmanisdabomb.lcc.data.json.recipe.HeartCondenserRecipeJsonFactory
import com.joshmanisdabomb.lcc.directory.LCCItems
import com.joshmanisdabomb.lcc.... | 0 | Kotlin | 0 | 0 | a836162eaf64a75ca97daffa02c1f9e66bdde1b4 | 1,090 | loosely-connected-concepts | Creative Commons Zero v1.0 Universal |
kotlinx-coroutines-core/common/src/channels/Channels.common.kt | hltj | 151,721,407 | false | null | /*
* Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
@file:JvmMultifileClass
@file:JvmName("ChannelsKt")
@file:OptIn(ExperimentalContracts::class)
package kotlinx.coroutines.channels
import kotlinx.coroutines.*
import kotlinx.coroutines.selects.*
import kotlin.... | 289 | null | 99 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 4,850 | kotlinx.coroutines-cn | Apache License 2.0 |
core/mvvm/src/commonMain/kotlin/com/opencritic/mvvm/ExceptionDescription.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 604244, "Swift": 213504, "Objective-C": 8050} | package com.opencritic.mvvm
import com.opencritic.api.exceptions.NoInternetException
import com.opencritic.api.exceptions.UnsuccessfulResponseException
import com.opencritic.resources.text.StringRes
import com.opencritic.resources.text.TextSource
import com.opencritic.resources.text.asTextSource
fun Throwable.asTextS... | 0 | Kotlin | 0 | 4 | 99c3df65e8620fe5f2d5c16ade0d593357869fa5 | 598 | OpenCritic | Apache License 2.0 |
core/mvvm/src/commonMain/kotlin/com/opencritic/mvvm/ExceptionDescription.kt | MAX-POLKOVNIK | 797,563,657 | false | {"Kotlin": 604244, "Swift": 213504, "Objective-C": 8050} | package com.opencritic.mvvm
import com.opencritic.api.exceptions.NoInternetException
import com.opencritic.api.exceptions.UnsuccessfulResponseException
import com.opencritic.resources.text.StringRes
import com.opencritic.resources.text.TextSource
import com.opencritic.resources.text.asTextSource
fun Throwable.asTextS... | 0 | Kotlin | 0 | 4 | 99c3df65e8620fe5f2d5c16ade0d593357869fa5 | 598 | OpenCritic | Apache License 2.0 |
testing/e2e-test-utilities/src/main/kotlin/net/corda/e2etest/utilities/websocket/client/MessageQueueWebSocketHandler.kt | corda | 346,070,752 | false | null | package net.corda.e2etest.utilities.websocket.client
import org.eclipse.jetty.websocket.api.Session
import org.eclipse.jetty.websocket.client.NoOpEndpoint
import org.slf4j.LoggerFactory
import java.io.IOException
import java.util.concurrent.CopyOnWriteArrayList
class MessageQueueWebSocketHandler : NoOpEndpoint(), Int... | 27 | null | 25 | 61 | 1f146ffd2d65f6198929109ae0d02e78c0549e20 | 1,737 | corda-runtime-os | Apache License 2.0 |
content-service/src/test/kotlin/com/sandjelkovic/dispatchd/content/trakt/provider/TraktMediaProviderContractTest.kt | sandjelkovic | 77,168,649 | false | null | package com.sandjelkovic.dispatchd.content.trakt.provider
import com.sandjelkovic.dispatchd.content.isNone
import com.sandjelkovic.dispatchd.content.isSome
import com.sandjelkovic.dispatchd.content.isSuccess
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autow... | 24 | Kotlin | 1 | 2 | 20187c0d3dc9b4208f08d7debdcc5f9faf45f9df | 3,160 | dispatchd | Apache License 2.0 |
src/test/kotlin/org/docksidestage/app/web/member/MemberEditActionTest.kt | t-kameyama | 155,081,790 | true | {"Maven POM": 1, "XML": 21, "EditorConfig": 1, "Markdown": 7, "Text": 26, "Ignore List": 13, "INI": 5, "Kotlin": 75, "HTML": 37, "CSS": 6, "JavaScript": 5, "Java": 222, "Java Properties": 10, "JSON": 6, "JSON with Comments": 2, "Shell": 24, "Batchfile": 28, "SQL": 6, "Roff": 1, "Perl": 3, "Python": 1, "XSLT": 14} | package org.docksidestage.app.web.member
import org.docksidestage.dbflute.allcommon.CDef
import org.docksidestage.dbflute.exbhv.MemberBhv
import org.docksidestage.mylasta.action.ParadeplazaHtmlPath
import org.docksidestage.unit.UnitParadeplazaTestCase
import org.junit.Assert
import org.lastaflute.web.token.exception.D... | 0 | Java | 1 | 0 | a1544951284d5e2ed7b46583c5175c54045c08d3 | 3,039 | lastaflute-example-paradeplaza | Apache License 2.0 |
src/main/kotlin/no/nav/aap/util/StringExtensions.kt | navikt | 432,668,965 | false | {"Kotlin": 45041} | package no.nav.aap.util
import com.fasterxml.jackson.databind.ObjectMapper
import java.time.LocalDate
import java.time.format.DateTimeFormatter.ISO_LOCAL_DATE
import java.util.Base64.getEncoder
import java.util.Locale.getDefault
import java.util.Optional
import java.util.UUID
import kotlin.math.min
import kotlin.text.... | 0 | Kotlin | 0 | 2 | 95e865fade630320cbc8afa81342f721c5591133 | 2,610 | aap-domain | MIT License |
rsocket-transports/local/src/commonMain/kotlin/io/rsocket/kotlin/transport/local/LocalServerConnector.kt | rsocket | 109,894,810 | false | {"Kotlin": 628647, "JavaScript": 203} | /*
* Copyright 2015-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 23 | Kotlin | 37 | 550 | b7f27ba4c3a0d639d375731231f347e595ed307c | 6,860 | rsocket-kotlin | Apache License 2.0 |
src/main/java/tpoomlmly/blockround/client/ui/BarSignEditor.kt | tpoomlmly | 379,071,851 | false | null | package tpoomlmly.blockround.client.ui
import com.mojang.blaze3d.platform.GlStateManager
import com.mojang.blaze3d.systems.RenderSystem
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking
import net.minecraft.client.gui.screen.Screen
import net.minecraft.client.gui.screen.ScreenTexts
import net.mi... | 0 | Kotlin | 0 | 0 | af368ddf4ac0df5c8fa51262a39b4c07a907bbfe | 8,225 | blockround | MIT License |
sample/src/main/java/com/paydock/sample/feature/wallet/domain/model/WalletCharge.kt | PayDock | 746,753,687 | false | {"Kotlin": 749998, "Dockerfile": 1641, "Ruby": 1412, "Shell": 1240} | package com.paydock.sample.feature.wallet.domain.model
data class WalletCharge(
val walletToken: String? = null,
val chargeId: String,
val status: String
)
| 0 | Kotlin | 0 | 1 | f223b7e1d2b0f1b056fb069ea7ba10629ebaf7d0 | 169 | android-mobile-sdk | Apache License 2.0 |
src/linuxX64Main/kotlin/dimensional/usagi/tools/BitSet.kt | dimensional-fun | 530,918,524 | false | null | package dimensional.usagi.tools
/**
* Simplified version of java.util.BitSet
*/
public actual class BitSet actual constructor(size: Int) {
public companion object {
private const val ADDRESS_BITS_PER_WORD = 6
private const val BITS_PER_WORD = 1 shl ADDRESS_BITS_PER_WORD
private const val ... | 2 | Kotlin | 0 | 2 | 87cde51e0d5f1af741acc506f893b0c7f7c12c7c | 3,914 | usagi | Apache License 2.0 |
app/src/main/java/com/kuss/tangerine/views/TaskItemDecoration.kt | KusStar | 218,548,390 | false | null | package com.kuss.tangerine.views
import androidx.recyclerview.widget.RecyclerView
import android.content.Context
import android.graphics.Rect
import android.view.View
import com.kuss.tangerine.R
class TaskItemDecoration(context: Context) : RecyclerView.ItemDecoration() {
private var divider: Int? = null
ini... | 0 | Kotlin | 0 | 2 | 8d32c8a820d62b70d6a78805e248ea934e9d1b71 | 691 | tangerine-android | MIT License |
composeApp/src/commonMain/kotlin/dev/ishubhamsingh/splashy/features/settings/ui/SettingsScreen.kt | ishubhamsingh | 670,661,834 | false | null | /*
* Copyright 2023 Shubham Singh
*
* 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 t... | 6 | null | 1 | 45 | b0c6f45a8e63a648e5ebc8e674fca379d98050d9 | 9,420 | Splashy | Apache License 2.0 |
net/craftventure/audioserver/packet/PacketSync.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.audioserver.packet
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
class PacketSync(
@Json(name = "area_id")
val areaId: Long,
val sync: Long
) : BasePacket(PacketID.SYNC)
| 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 265 | open-plugin-parts | MIT License |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/healthandmedical/LungsFill.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.remix.remix.healthandmedical
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.gr... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 2,615 | compose-icon-collections | MIT License |
src/main/kotlin/com/blr19c/falowp/bot/system/api/SendMessage.kt | falowp-bot | 736,172,318 | false | {"Kotlin": 329143, "HTML": 3910} | package com.blr19c.falowp.bot.system.api
import com.blr19c.falowp.bot.system.expand.ImageUrl
import java.util.*
/**
* 可以作为发送的消息
*/
interface SendMessage {
companion object {
fun builder(content: String): Builder {
return Builder().text(content)
}
fun builder(): Builder {
... | 0 | Kotlin | 0 | 3 | 9c9c5c9f8c5b8d4b9ceb63969f3e7a98462f8b56 | 2,623 | falowp-bot-system | Apache License 2.0 |
js/js.translator/testFiles/expression/function/cases/functionInsideFunction.kt | chirino | 3,596,099 | false | null | package foo
fun box(): Boolean {
fun f() = 3
return (((f() + f()) == 6) && (b() == 24))
}
fun b(): Int {
fun a(): Int {
fun c() = 4
return c() * 3
}
val a = 2
return a() * a
} | 0 | null | 28 | 71 | ac434d48525a0e5b57c66b9f61b388ccf3d898b5 | 219 | kotlin | Apache License 2.0 |
t-tasks/src/main/java/com/teo/ttasks/jobs/TaskUpdateJob.kt | teobaranga | 28,672,362 | false | null | package com.teo.ttasks.jobs
import com.evernote.android.job.JobManager
import com.evernote.android.job.JobRequest
import com.evernote.android.job.util.support.PersistableBundleCompat
import com.teo.ttasks.api.TasksApi
import com.teo.ttasks.data.local.TaskFields
import com.teo.ttasks.data.local.WidgetHelper
import com.... | 1 | Kotlin | 3 | 7 | 04da2bc5ae76a165f9ebff00093c048923f87bf2 | 5,370 | T-Tasks | Apache License 2.0 |
app/src/main/java/com/ewentteamfsm/features/weather/api/WeatherRepo.kt | DebashisINT | 735,935,748 | false | {"Kotlin": 13772029, "Java": 998175} | package com.ewentteamfsm.features.weather.api
import com.ewentteamfsm.base.BaseResponse
import com.ewentteamfsm.features.task.api.TaskApi
import com.ewentteamfsm.features.task.model.AddTaskInputModel
import com.ewentteamfsm.features.weather.model.ForeCastAPIResponse
import com.ewentteamfsm.features.weather.model.Weath... | 0 | Kotlin | 0 | 0 | b7b72b92f99ff4c486f755a8f10fdaaaa0f28861 | 682 | SaraogiEVentures | Apache License 2.0 |
composeApp/src/commonMain/kotlin/AppScreens.kt | ernestovega | 820,493,782 | false | {"Kotlin": 216083, "Swift": 621, "HTML": 341, "CSS": 102} | import mahjongscoring3.composeapp.generated.resources.Res
import mahjongscoring3.composeapp.generated.resources.create_game
import mahjongscoring3.composeapp.generated.resources.game
import mahjongscoring3.composeapp.generated.resources.help
import mahjongscoring3.composeapp.generated.resources.old_games
import org.jet... | 0 | Kotlin | 0 | 0 | a1c1b5de82d6991e07bdded6f1de375d7a02425c | 736 | MahjongScoring3 | Apache License 2.0 |
app/src/main/java/com/peng/ui/fragment/CheckOutFragment.kt | abdulwahabhassan | 516,570,722 | false | {"Kotlin": 146808} | package com.peng.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.*
import android.view.ViewGroup
import android.widget.Toast
import androidx.activity.OnBackPressedCallback
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment... | 0 | Kotlin | 0 | 1 | a03b09a604dab4bcf20794096f9b35c8b26ca583 | 17,811 | peng | Apache License 2.0 |
roboquant/src/main/kotlin/org/roboquant/brokers/sim/NoFeeModel.kt | neurallayer | 406,929,056 | false | {"JavaScript": 3006756, "Kotlin": 1109762, "CSS": 1220} | /*
* Copyright 2020-2023 Neural Layer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 8 | JavaScript | 42 | 332 | 49a6f0af1a224e4f03c99b03a9894f5e2acef15d | 1,016 | roboquant | Apache License 2.0 |
src/main/kotlin/de/db/moredux/State.kt | dbvertrieb | 841,414,679 | false | {"Kotlin": 96546} | /*
* Copyright 2024, DB Vertrieb GmbH.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | Kotlin | 0 | 2 | 929dfc5e5b07e9b31c23f264686bcd837c274a7d | 1,102 | MoRedux | Apache License 2.0 |
app/src/main/java/dev/seabat/android/shinobuetuner/compose/GoodBadImage.kt | seabat | 755,504,480 | false | {"Kotlin": 47273} | package dev.seabat.android.shinobuetuner.compose
import android.util.Log
import androidx.compose.runtime.Composable
import dev.seabat.android.shinobuetuner.utils.MusicalScale.ShinobueScaleType
@Composable
fun GoodBadImage(scaleInfo: ScaleInfo, imageComposable: @Composable (GoodBadType)->Unit) {
if ((scaleInfo.di... | 0 | Kotlin | 0 | 0 | fc5eb2a741e5982c22541cbbb6ed13dfcd40bcbf | 1,293 | shinobue-tuner | Apache License 2.0 |
api/src/main/kotlin/eu/codeloop/thehub/Boot.kt | codeloopeu | 140,247,675 | false | {"Dotenv": 3, "Text": 3, "Ignore List": 1, "YAML": 5, "Markdown": 2, "JSON": 3, "EditorConfig": 2, "JSON with Comments": 1, "HTML": 2, "JavaScript": 36, "SVG": 3, "SCSS": 2, "Gradle Kotlin DSL": 2, "Procfile": 1, "INI": 3, "Gradle": 1, "Shell": 1, "Batchfile": 1, "Kotlin": 49, "Java": 28, "SQL": 6, "Dockerfile": 1} | package eu.codeloop.thehub
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Configuration
import org.springframework.data.jpa.rep... | 18 | Kotlin | 0 | 0 | 056b501f6262d59d239ab270cee4bf77c0496c0d | 810 | thehub | ISC License |
src/main/kotlin/com/chattriggers/ctjs/api/vec/Vec3f.kt | ChatTriggers | 635,543,231 | false | {"Kotlin": 680597, "JavaScript": 62357, "Java": 58141} | package com.chattriggers.ctjs.api.vec
import kotlin.math.acos
import kotlin.math.sqrt
data class Vec3f @JvmOverloads constructor(
val x: Float = 0f, val y: Float = 0f, val z: Float = 0f,
) {
fun magnitudeSquared() = x * x + y * y + z * z
fun magnitude() = sqrt(magnitudeSquared())
fun translated(dx: ... | 5 | Kotlin | 8 | 21 | 3921da9991ac09b872db63a1f4fd5e5cc928c032 | 1,258 | ctjs | MIT License |
android/src/main/kotlin/com/exponea/data/ReceivedPush.kt | exponea | 382,037,046 | false | {"Dart": 143993, "Kotlin": 105271, "Swift": 103585, "Ruby": 2683, "Objective-C": 668} | package com.exponea.data
data class ReceivedPush(val data: Map<String, Any>) {
fun toMap(): Map<String, Any?> {
return mapOf("data" to data)
}
}
| 2 | Dart | 5 | 7 | d989a90fd88235093a66be68b3b34d487834b519 | 162 | exponea-flutter-sdk | MIT License |
src/main/java/robTheSpire/cards/Block.kt | MillerIsa | 272,558,280 | false | null | package robTheSpire.cards
import basemod.BaseMod
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction
import com.megacrit.cardcrawl.actions.common.GainBlockAction
import com.megacrit.cardcrawl.characters.AbstractPlayer
import com.megacrit.cardcrawl.dungeons.AbstractDungeon
import com.megacrit.cardcrawl.monst... | 0 | Kotlin | 0 | 0 | 4e51a202508f0d0779d303bea378107a947dbc00 | 2,038 | Rob-the-Spire | Apache License 2.0 |
feature/movie-details/src/main/java/br/com/moov/moviedetails/DefaultMovieDetailsNavigator.kt | tdopires | 240,281,957 | true | {"Kotlin": 120432, "Shell": 538} | /*
* Copyright 2020 Alex Almeida Tavella
*
* 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... | 3 | null | 1 | 1 | 1d8243a5183c749867e306d34c773c6c108804e3 | 1,287 | MooV | Apache License 2.0 |
share/src/main/java/com/kyawhut/atsycast/share/components/RowHeaderComponent.kt | kyawhtut-cu | 406,324,527 | false | null | package com.kyawhut.atsycast.share.components
import android.content.Context
import android.util.AttributeSet
import android.widget.LinearLayout
import androidx.leanback.widget.RowHeaderView
import com.kyawhut.atsycast.share.R
import com.kyawhut.atsycast.share.utils.binding.TextViewBinding.applyMMFont
/**
* @author ... | 0 | Kotlin | 4 | 3 | 72d56fa28f5be7526f0a9848491ddd87cca3804d | 673 | atsy-cast | Apache License 2.0 |
library/verification-core/src/test/java/com/sinch/verificationcore/config/general/GlobalConfigBuilderTest.kt | isabella232 | 463,064,200 | true | {"Kotlin": 370117, "Dockerfile": 3056} | package com.sinch.verificationcore.config.general
import android.os.Build
import androidx.test.core.app.ApplicationProvider
import com.sinch.verification.core.config.general.SinchGlobalConfig
import io.mockk.mockk
import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
import org.robol... | 1 | null | 0 | 0 | 2d1b65e4a42e52e509b6a0d7a9892b9ddc5de3c9 | 923 | verification-android-sdk | Apache License 2.0 |
app/src/main/java/net/vezk/dialogsystem/MainActivity.kt | va3mezk | 425,632,141 | false | null | package net.vezk.dialogsystem
import android.app.Dialog
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.LayoutInflater
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import net.vezk.dialogsystem.databinding.AceptDialogBinding
import net.vezk.dialogsy... | 0 | Kotlin | 1 | 1 | 1304468ce13ed0e169e8b3634a5cd27a05c405f7 | 2,764 | DialogSystem | MIT License |
drivers/ios-driver/src/nativeTest/kotlin/com/squareup/sqldelight/drivers/ios/IosQueryTest.kt | kkovach | 167,496,223 | true | {"Kotlin": 596519, "Java": 9352, "Shell": 2066, "HTML": 57} | package com.squareup.sqldelight.drivers.ios
import co.touchlab.sqliter.NativeFileContext
import com.squareup.sqldelight.db.SqlDriver
import com.squareup.sqldelight.driver.test.QueryTest
import kotlin.test.AfterTest
import kotlin.test.BeforeTest
import kotlin.test.Test
class IosQueryTest: QueryTest() {
override fun ... | 0 | Kotlin | 0 | 0 | 824688a3d585cc847336150d94baa1c155fa1110 | 1,722 | sqldelight | Apache License 2.0 |
app/src/main/java/dev/arkbuilders/rate/presentation/ui/AppDividers.kt | ARK-Builders | 515,514,394 | false | {"Kotlin": 373246} | package dev.arkbuilders.rate.presentation.ui
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.HorizontalDivider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import dev.arkbuilders.rate.presentation.theme.ArkColor
@... | 36 | Kotlin | 2 | 2 | e12ebb0ad63da8971a7827648ec7fe710cf393d7 | 724 | ARK-Rate | MIT License |
Kotlin for Java Developers. Week 5/Games/Task/src/games/game2048/Game2048.kt | vnay | 251,709,901 | false | null | package games.game2048
import board.Cell
import board.Direction
import board.GameBoard
import board.createGameBoard
import games.game.Game
/*
* Your task is to implement the game 2048 https://en.wikipedia.org/wiki/2048_(video_game).
* Implement the utility methods below.
*
* After implementing it you can try to p... | 0 | Kotlin | 0 | 0 | ce638b0272bd5fac80891a669cd17848bf6d0721 | 3,844 | Kotlin-for-Java-Developers | MIT License |
src/main/kotlin/no/nav/fo/veilarbregistrering/featuretoggle/UnleashConfig.kt | navikt | 131,013,336 | false | null | package no.nav.fo.veilarbregistrering.featuretoggle
import no.nav.common.featuretoggle.UnleashClient
import no.nav.common.featuretoggle.UnleashClientImpl
import no.nav.fo.veilarbregistrering.config.requireApplicationName
import no.nav.fo.veilarbregistrering.config.requireProperty
import org.springframework.context.ann... | 8 | null | 5 | 6 | 0ecf248adee242a7eac34b655f86278946641d7e | 718 | veilarbregistrering | MIT License |
app/src/main/java/com/shevelev/my_footprints_remastered/ui/activity_first_loading/fragment_google_drive_sign_in/view/GoogleDriveSignInFragment.kt | AlShevelev | 283,178,554 | false | null | package com.shevelev.my_footprints_remastered.ui.activity_first_loading.fragment_google_drive_sign_in.view
import android.content.Intent
import com.shevelev.my_footprints_remastered.R
import com.shevelev.my_footprints_remastered.application.App
import com.shevelev.my_footprints_remastered.databinding.FragmentGoogleDri... | 0 | Kotlin | 0 | 1 | 6894f98fb439f30ef7a9988043ace059b844c81b | 3,292 | MyFootprints_remastered | Apache License 2.0 |
features/episodes/src/main/java/com/developersancho/episodes/detail/view/EpisodeDetailContent.kt | developersancho | 454,045,719 | false | {"Kotlin": 643302} | package com.developersancho.episodes.detail.view
import android.content.res.Configuration
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Ic... | 1 | Kotlin | 33 | 236 | 53d96f038e70712387f26a0099949c26a2aa2311 | 6,934 | JetRorty.Android | Apache License 2.0 |
pixelgrid/impex/rawr/src/main/kotlin/com/deflatedpickle/rawky/pixelgrid/impex/rawr/RawrPlugin.kt | DeflatedPickle | 197,672,095 | false | null | /* Copyright (c) 2022 DeflatedPickle under the MIT license */
@file:Suppress("unused", "SpellCheckingInspection", "UNCHECKED_CAST")
package com.deflatedpickle.rawky.pixelgrid.export.text.rawr
import blue.endless.jankson.Jankson
import com.deflatedpickle.haruhi.Haruhi
import com.deflatedpickle.haruhi.api.plugin.Plugi... | 7 | Kotlin | 6 | 27 | faaa3d329fe5281fdcad58909743303a62de6a63 | 3,729 | Rawky | MIT License |
core/src/main/kotlin/entity/interaction/followup/PublicFollowupMessage.kt | jombidev | 507,000,315 | false | {"Kotlin": 2022642, "Java": 87103} | package dev.jombi.kordsb.core.entity.interaction.followup
import dev.jombi.kordsb.common.entity.Snowflake
import dev.jombi.kordsb.core.Kord
import dev.jombi.kordsb.core.behavior.interaction.followup.PublicFollowupMessageBehavior
import dev.jombi.kordsb.core.entity.Message
import dev.jombi.kordsb.core.supplier.EntitySu... | 0 | Kotlin | 0 | 4 | 7e4eba1e65e5454e5c9400da83bd2de883acf96d | 1,149 | kord-selfbot | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.