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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mobile_app1/module954/src/main/java/module954packageKt0/Foo0.kt | uber-common | 294,831,672 | false | null | package module954packageKt0;
annotation class Foo0Fancy
@Foo0Fancy
class Foo0 {
fun foo0(){
module1213packageJava0.Foo0().foo3()
module73packageJava0.Foo0().foo0()
module940packageKt0.Foo0().foo11()
module273packageKt0.Foo0().foo7()
module1195packageJava0.Foo0().foo0()
module341packageKt0.Fo... | 6 | null | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 692 | android-build-eval | Apache License 2.0 |
core/src/main/java/com/summit/core/network/model/departamento/ProvinciaItem.kt | cesarwillymc | 326,488,032 | false | null | package com.summit.core.network.model.departamento
data class ProvinciaItem(
val department_id: String?=null,
val id: String,
val name: String
) | 0 | Kotlin | 0 | 2 | 9583792cfc3832bdc5b76584ff90a741f4b87458 | 157 | AddFast | Apache License 2.0 |
nj2k/testData/newJ2k/methodCallExpression/parameterToReceiver.kt | cr8tpro | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | import kotlinApi.extensionFunction
fun adjust(name: String?, maxLen: Int) {
(1 + 1).toString()
"a".split(("\\s+" + "\\s+").toRegex(), 2).toTypedArray()
(1 + 1).extensionFunction()
} | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 194 | kotlin | Apache License 2.0 |
mahjanmodule/src/main/kotlin/dev/yuriel/kotmahjan/rules/MentsuSupport.kt | kiruto | 63,875,336 | false | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 yuriel<<EMAIL>>
*
* 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 u... | 1 | Kotlin | 3 | 20 | aba30853260b8a28155a4909f8c911a8ddeaaff7 | 7,882 | kotlin-android-mahjong | MIT License |
src/main/kotlin/no/nav/tiltakspenger/mottak/søknad/ArenaTiltakDTO.kt | navikt | 417,420,999 | false | null | package no.nav.tiltakspenger.mottak.søknad
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import no.nav.tiltakspenger.mottak.serder.StrictLocalDateSerializer
import no.nav.tiltakspenger.mottak.søknad.models.JoarkSøknad
import java.time.LocalDate
@Serializable
data class ArenaTiltakDT... | 0 | Kotlin | 0 | 3 | 62915111bd69f1664f235b7b9f91e989dcbf1ddf | 1,993 | tiltakspenger-mottak | MIT License |
backend/src/main/kotlin/uk/co/threebugs/darwinexclient/trade/TradeMapper.kt | willhumphreys | 707,276,309 | false | {"Kotlin": 159250, "TypeScript": 51099, "MQL5": 45825, "JavaScript": 1753, "Python": 848, "CSS": 606, "Shell": 548, "Dockerfile": 361} | package uk.co.threebugs.darwinexclient.trade
import org.mapstruct.*
import uk.co.threebugs.darwinexclient.account.Account
import uk.co.threebugs.darwinexclient.search.TradeSearchDto
import uk.co.threebugs.darwinexclient.setup.Setup
import java.nio.file.Path
import java.time.Clock
import java.time.ZonedDateTime
@Mapp... | 0 | Kotlin | 0 | 0 | 1d9809b1223c38471dd10d9c72eb09edd3f62ee1 | 2,339 | darwinex-client | Apache License 2.0 |
frontend/screen/root/src/commonMain/kotlin/com/mindovercnc/linuxcnc/screen/root/child/Manual.kt | 85vmh | 543,628,296 | false | {"Kotlin": 956103, "C++": 75148, "Java": 7157, "Makefile": 2742, "HTML": 419, "Shell": 398, "CSS": 108} | package com.mindovercnc.linuxcnc.screen.root.child
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.runtime.... | 0 | Kotlin | 1 | 3 | 5cf42426895ba8691c9b53ba1b97c274bbdabc07 | 1,626 | mindovercnclathe | Apache License 2.0 |
src/io/c6/Main.kt | chandu-io | 97,352,298 | false | {"Kotlin": 96} | package io.c6
fun main(args: Array<String>) {
val name = "World"
println("Hello $name!")
}
| 0 | Kotlin | 0 | 0 | c449e848f9e839a5553ac53e86dfb84730681f03 | 96 | try-kotlinlang | Apache License 2.0 |
src/main/kotlin/io/github/cottonmc/jsonfactory/frontend/i18n/LayeredI18n.kt | CottonMC | 165,309,595 | false | null | package io.github.cottonmc.jsonfactory.frontend.i18n
import java.util.Locale
/**
* An [I18n] instance that combines a [primary] `I18n` and a secondary `I18n` [layers].
* @see get
*/
class LayeredI18n(private val primary: I18n, private val layers: Iterable<I18n>) : I18n {
/**
* The primary backing instance... | 7 | Kotlin | 1 | 0 | 8551ea37e1d3337f15dd91597a3de0096caeaae4 | 1,747 | json-factory | MIT License |
projectional-editor-ssr-client-lib/src/jsMain/kotlin/org/modelix/editor/ssr/client/ClientSideEditors.kt | modelix | 533,219,285 | false | {"Kotlin": 1960671, "JetBrains MPS": 1571409, "TypeScript": 97037, "CSS": 8723, "HTML": 5438, "SCSS": 2871, "JavaScript": 2492, "Shell": 731} | package org.modelix.editor.ssr.client
import io.github.oshai.kotlinlogging.KotlinLogging
import org.modelix.editor.ssr.common.MessageFromClient
import org.modelix.editor.ssr.common.MessageFromServer
import org.modelix.model.api.INodeReference
import org.w3c.dom.HTMLDivElement
import org.w3c.dom.HTMLElement
private va... | 10 | Kotlin | 0 | 0 | 26dbb67378f2ec560f49ba83bb84998427b64cb3 | 1,548 | modelix.text-editor | Apache License 2.0 |
app/src/main/java/com/elementary/tasks/notes/preview/NotePreviewActivity.kt | naz013 | 255,411,818 | false | null | package com.elementary.tasks.notes.preview
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.core.content.ContextCompat
import androidx.life... | 0 | Kotlin | 3 | 0 | ed79158ac4df09d18749b03b7e77c5208175b550 | 11,643 | reminder-kotlin | Apache License 2.0 |
hubspot/src/main/kotlin/org/boomevents/hubspot/model/http/RequestMethod.kt | boomeventsorg | 483,280,591 | false | null | package org.boomevents.hubspot.model.http
enum class RequestMethod {
GET,
POST,
PATCH,
DELETE
}
| 2 | Kotlin | 1 | 3 | 31f23072ea03620eed15180ffab7113b49183e49 | 113 | hubspot | Apache License 2.0 |
app/src/main/java/com/jnj/vaccinetracker/common/domain/entities/LocalParticipantMatch.kt | johnsonandjohnson | 503,902,626 | false | {"Kotlin": 1690434} | package com.jnj.vaccinetracker.common.domain.entities
data class LocalParticipantMatch(val participant: ParticipantBase, val matchingScore: Int? = null) {
val uuid get() = participant.participantUuid
} | 3 | Kotlin | 1 | 1 | 8ea37ee80c98574f3d480582b756df15990f497d | 206 | vxnaid | Apache License 2.0 |
core/src/main/java/com/android/sample/core/database/MyDatabase.kt | AliRezaeiii | 398,708,723 | false | null | package com.android.sample.core.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.android.sample.core.BuildConfig
@Database(
entities = [DbMedia::class],
version = BuildConfig.DATABASE_VERSION,
exportSchema = BuildConfig.DATABASE_EXPORT... | 0 | Kotlin | 0 | 1 | e7eefa3d8450273acbdf986d2d64071e355361d0 | 456 | DFM-Dagger-MultiModule-Cache | The Unlicense |
src/main/kotlin/gg/octave/bot/entities/Configuration.kt | paralikes | 263,690,458 | true | {"Kotlin": 283666, "Java": 26643} | package gg.octave.bot.entities
import com.google.common.reflect.TypeToken
import gg.octave.bot.utils.get
import gg.octave.bot.utils.toDuration
import ninja.leaping.configurate.hocon.HoconConfigurationLoader
import java.io.File
import java.time.Duration
class Configuration(file: File) {
private val loader = HoconC... | 26 | Kotlin | 2 | 0 | 8b0a9699a4254e93c635ceb470ecca18731645f0 | 2,431 | Octave | MIT License |
core/src/main/kotlin/dev/gumil/nookbot/entities/Resident.kt | gumil | 273,346,644 | false | null | package dev.gumil.nookbot.entities
/**
* Buyer/Seller, an island resident
*/
data class Resident(
val id: Long,
val name: String
)
| 6 | Kotlin | 0 | 5 | 2eb3bcfdba6d77ad94a042d1e79e0a7ac82ccfa4 | 142 | NookBot | Apache License 2.0 |
src/main/kotlin/io/swagger/client/infrastructure/auth/ApiKeyAuth.kt | em-ad | 443,796,768 | false | null | package io.swagger.client.infrastructure.auth
import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response
import java.io.IOException
import java.net.URI
import java.net.URISyntaxException
import kotlin.Throws
class ApiKeyAuth(val location: String, val paramName: String) : Interceptor {
var apiKey: S... | 0 | Kotlin | 0 | 0 | be4c2e4a6222d467a51d9148555eed25264c7eb0 | 1,435 | kotlinsdk | Condor Public License v1.1 |
subprojects/dsl/src/main/kotlin/co/uzzu/structurizr/ktx/dsl/model/SoftwareSystemDsl.kt | uzzu | 291,060,647 | false | null | @file:Suppress("FunctionName")
package co.uzzu.structurizr.ktx.dsl.model
import co.uzzu.structurizr.ktx.dsl.ApplyBlock
import com.structurizr.model.Container
import com.structurizr.model.Location
import com.structurizr.model.SoftwareSystem
/**
* @see [SoftwareSystem.location]
*/
var ElementScope<SoftwareSystem>.lo... | 0 | Kotlin | 0 | 0 | a198f0b9aefe662f216f6182eb7fcfa45a20a05e | 785 | structurizr-ktx | Apache License 2.0 |
native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/SirParentProviderImpl.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2024 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.sir.providers.impl
import org.jetbrains.kotlin.analysis.api.KaSession
import org... | 182 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,374 | kotlin | Apache License 2.0 |
app/ui/legacy/src/main/java/com/fsck/k9/activity/LauncherShortcuts.kt | thunderbird | 1,326,671 | false | null | package com.fsck.k9.activity
import android.content.Intent
import android.content.res.Resources.Theme
import android.os.Build
import android.os.Bundle
import android.util.TypedValue
import androidx.annotation.AttrRes
import androidx.core.content.pm.ShortcutInfoCompat
import androidx.core.content.pm.ShortcutManagerComp... | 808 | null | 2433 | 9,637 | 3a379646a04263492eb1281f3daf94b665543933 | 3,104 | thunderbird-android | Apache License 2.0 |
app/src/main/java/com/example/user/eventest/SettingsActivity.kt | Dima-1 | 114,025,756 | false | null | package com.example.user.eventest
import android.content.res.Configuration
import android.os.Bundle
import android.preference.PreferenceActivity
import android.support.annotation.LayoutRes
import android.support.v7.app.ActionBar
import android.support.v7.app.AppCompatDelegate
import android.support.v7.widget.Toolbar
i... | 1 | null | 1 | 1 | 1eb2a8814326eb24558af38dd839e6f0a98ca3a0 | 3,477 | eventbus-sandbox | MIT License |
app/src/main/java/jp/cordea/quicktile/TileStatusRepository.kt | CORDEA | 280,596,448 | false | null | package jp.cordea.quicktile
import android.content.SharedPreferences
import dagger.Reusable
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.channels.sendBlocking
import kotlinx.coroutines.flow.callbackFlow
import javax.inject.Inject
@Reusable... | 0 | Kotlin | 0 | 0 | 4016c87272c7ba42edc5c777f7bf8c785eede45a | 1,161 | QuickTile | Apache License 2.0 |
domain/src/main/java/com/gk/android/domain/artist/repository/ArtistRepository.kt | gauravk95 | 337,455,111 | false | null | package com.gk.android.domain.artist.repository
import androidx.paging.PagingData
import com.gk.android.domain.Resource
import com.gk.android.domain.artist.model.Artist
import kotlinx.coroutines.flow.Flow
interface ArtistRepository {
suspend fun searchArtists(searchQuery: String, first: Int): Flow<PagingData<Arti... | 0 | Kotlin | 1 | 0 | 3aa56970035eb0d7bc10d4e41d47912a98066c3b | 543 | android-kotlin-mvvm-clean | Apache License 2.0 |
core/src/main/kotlin/org/futurerobotics/jargon/math/RealMotion.kt | Future14473 | 199,776,352 | false | null | package org.futurerobotics.jargon.math
import kotlin.math.pow
import kotlin.math.sqrt
/**
* An [MotionOnly] with double values for velocity ([v]) and acceleration ([a]),
* also containing some useful calculations for one-dimensional motion.
*
* @property v velocity
* @property a acceleration
*/
@Suppress("OVERR... | 9 | Kotlin | 0 | 1 | 2cb837a402fb3fe2ce634e07cff9bed426447125 | 3,770 | JARGON | MIT License |
app/src/main/java/com/haslan/profilescreen/presentation/BasePresenter.kt | uLbyy | 182,025,589 | false | null | package com.haslan.profilescreen.presentation
interface BasePresenter<in T> {
fun setView(view: T)
fun clearPresenterDispose()
} | 0 | Kotlin | 0 | 1 | af5fa651daf8f8f73b4a194a2438286e09f1a513 | 139 | mvp_basic_profile_screen | MIT License |
app/src/main/java/com/vicky7230/cayennekt/ui/home/likes/LikesMvpView.kt | pranaypatel512 | 122,066,604 | false | null | package com.vicky7230.cayennekt.ui.home.likes
import com.vicky7230.cayennekt.data.network.model.recipes.Recipe
import com.vicky7230.cayennekt.ui.base.MvpView
/**
* Created by vicky on 17/2/18.
*/
interface LikesMvpView : MvpView {
fun updateLikeList(recipes: MutableList<Recipe>?)
fun showIngredients(ingredi... | 0 | Kotlin | 0 | 0 | 7d99b4be5ed025010fcdaae4cd1f6ec7bbfe2255 | 342 | Cayenne-Kt | Apache License 2.0 |
graphql-api/src/main/kotlin/io/zeebe/zeeqs/graphql/resolvers/type/SignalResolver.kt | camunda-community-hub | 237,922,743 | false | {"Kotlin": 233560, "Shell": 973} | package io.zeebe.zeeqs.graphql.resolvers.type
import io.zeebe.zeeqs.data.entity.Signal
import io.zeebe.zeeqs.data.entity.SignalVariable
import io.zeebe.zeeqs.data.repository.SignalVariableRepository
import org.springframework.graphql.data.method.annotation.Argument
import org.springframework.graphql.data.method.annota... | 19 | Kotlin | 15 | 62 | 291cada92890050dfd25a48a6e1c235f56be8100 | 943 | zeeqs | Apache License 2.0 |
net/craftventure/core/map/renderer/MapManager.kt | Craftventure | 770,049,457 | false | {"Kotlin": 3656616, "Java": 684034} | package net.craftventure.core.map.renderer
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.sync.withPermit
import net.craftventure.bukkit.ktx.extension.isCrew
import net.craftventure.core.CraftventureCore
import net.craftventure.core.ktx.util.Logger.capture
import net.craftventure.core.ktx.util.Logger.... | 0 | Kotlin | 1 | 21 | 015687ff6687160835deacda57121480f542531b | 13,354 | open-plugin-parts | MIT License |
gi/src/commonMain/kotlin/data/activity/ActivityPushTipsData.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 535420} | package data.activity
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@ProtoModel
interface ActivityPushTipsData {
var state: ActivityPushTipsState
var activityPushTipsId: Int
} | 0 | Kotlin | 3 | 6 | 9fc2c2ea7e3c2561ffaa66e7f58012ae1dcc4256 | 208 | anime-game-multi-proto | MIT License |
z2-schematic-runtime/src/commonMain/kotlin/hu/simplexion/z2/schematic/runtime/Schematic.kt | spxbhuhb | 665,349,157 | false | null | package hu.simplexion.z2.schematic.runtime
import hu.simplexion.z2.commons.event.EventCentral
import hu.simplexion.z2.commons.util.UUID
import hu.simplexion.z2.commons.util.nextHandle
import hu.simplexion.z2.schematic.runtime.access.SchematicAccessContext
import hu.simplexion.z2.schematic.runtime.schema.Schema
import ... | 0 | Kotlin | 0 | 0 | 25510b8c73a66647c78e4f77cc11f9f7e035383c | 7,582 | z2-schematic | Apache License 2.0 |
app/src/main/java/in/silive/lateentryproject/ui/fragments/SplashScreenFragment.kt | its-me-debk007 | 660,292,889 | false | {"Kotlin": 86393} | package `in`.silive.lateentryproject.ui.fragments
import `in`.silive.lateentryproject.R
import `in`.silive.lateentryproject.databinding.SplashScreenBinding
import `in`.silive.lateentryproject.utils.Datastore
import android.Manifest
import android.content.Context
import android.content.Intent
import android.graphics.Co... | 1 | Kotlin | 0 | 0 | 0723d344f04689bd3df0efe8278b99b138f790b3 | 3,438 | Late-Entry-Project | MIT License |
ionav/src/main/java/de/ironjan/arionav_fw/ionav/model/osm/Node.kt | ironjan | 233,279,124 | false | null | package de.ironjan.arionav_fw.ionav.model.osm
/**
* Represents a simplified osm node.
*/
open class Node(
id: Long,
val lat: Double,
val lon: Double,
tags: Map<String, String>
) : Element(id, tags) | 0 | Kotlin | 0 | 0 | bc5cb699f450587047fbdbe3132aab18803068ab | 216 | arionav-framework | MIT License |
app/src/main/java/com/mudassir/moviesapp/MovieApp.kt | mookyjan | 313,948,503 | false | null | package com.mudassir.moviesapp
import android.app.Application
import com.github.ajalt.timberkt.Timber
import com.mudassir.moviesapp.di.component.AppComponent
import com.mudassir.moviesapp.di.component.DaggerAppComponent
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagge... | 0 | Kotlin | 0 | 4 | ebdc9848305a3cb2272e2ac8c396e0db223172ae | 944 | MoviesApp | Apache License 2.0 |
src/main/kotlin/org/motivepick/security/JwtTokenAuthenticationProcessingFilter.kt | motivepick | 143,636,614 | false | null | package org.motivepick.security
import io.jsonwebtoken.Claims
import io.jsonwebtoken.Jws
import io.jsonwebtoken.MalformedJwtException
import org.springframework.security.authentication.AuthenticationServiceException
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.sprin... | 5 | Kotlin | 0 | 0 | 65eb1d950d7cd536000eb5eb8587685004f0f0b1 | 2,225 | motive-back-end | MIT License |
sphinx/activity/main/activitymain/src/main/java/chat/sphinx/activitymain/navigation/navigators/primary/OnBoardNavigatorImpl.kt | kngako | 383,966,538 | true | {"Kotlin": 1838358, "Java": 357402, "JavaScript": 4745, "Shell": 2453} | package chat.sphinx.activitymain.navigation.navigators.primary
import chat.sphinx.activitymain.R
import chat.sphinx.activitymain.navigation.drivers.PrimaryNavigationDriver
import chat.sphinx.onboard.navigation.OnBoardNavigator
import chat.sphinx.onboard_common.model.OnBoardStep
import chat.sphinx.onboard_name.navigati... | 0 | Kotlin | 0 | 0 | b8326dc6cf81aaaa9d95cc7c23d40a8bdbffd844 | 754 | sphinx-kotlin | MIT License |
app/src/main/kotlin/pe/aioo/openmoa/module/configModule.kt | AiOO | 556,034,007 | false | {"Kotlin": 91457} | package pe.aioo.openmoa.module
import org.koin.dsl.module
import pe.aioo.openmoa.config.Config
val configModule = module {
single { Config() }
} | 2 | Kotlin | 2 | 14 | 707e30d6eb02372dc6a8f89c9e4a6867764768c2 | 150 | OpenMoa | MIT License |
riistaandroid/src/main/java/fi/riista/mobile/utils/UserInfoStoreImpl.kt | suomenriistakeskus | 78,840,058 | false | null | package fi.riista.mobile.utils
import android.content.Context
import androidx.preference.PreferenceManager
import fi.riista.mobile.models.user.UserInfo
// This class abstracts away the implementation detail that UserInfo is stored in shared preferences.
class UserInfoStoreImpl(private val appContext: Context, private... | 0 | Kotlin | 0 | 3 | 23645d1abe61c68d649b6d0ca1d16556aa8ffa16 | 1,903 | oma-riista-android | MIT License |
app/src/main/java/com/phantasmdragon/quote/daggerLevel/module/repository/RepositoryModule.kt | abstractHero | 151,456,475 | false | null | /*
* Copyright 2018 abstractHero
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 2 | 62e9c04c94f24d0ee1c32bc6703e090759617913 | 2,048 | QuoteX | Apache License 2.0 |
canvas2/src/main/java/com/angcyo/canvas/render/data/SmartAssistantValue.kt | angcyo | 229,037,615 | false | null | package com.angcyo.canvas.render.data
import android.graphics.RectF
import com.angcyo.canvas.render.annotation.CanvasInsideCoordinate
import com.angcyo.canvas.render.renderer.CanvasElementRenderer
import com.angcyo.library.component.hawk.LibHawkKeys
import com.angcyo.library.ex.isSameDirection
import com.angcyo.librar... | 0 | null | 6 | 5 | 18cdbc1d8e6c0ed88adbf3c441ea28e1a61d6e17 | 1,807 | UICore | MIT License |
kotlin-electron/src/jsMain/generated/electron/core/UsbDeviceRemovedDetails.kt | JetBrains | 93,250,841 | false | {"Kotlin": 11411371, "JavaScript": 154302} | package electron.core
external interface UsbDeviceRemovedDetails {
var device: USBDevice
var frame: WebFrameMain
}
| 28 | Kotlin | 173 | 1,250 | 9e9dda28cf74f68b42a712c27f2e97d63af17628 | 125 | kotlin-wrappers | Apache License 2.0 |
core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/BinaryVersion.kt | guiping | 49,639,828 | true | {"Java": 16009659, "Kotlin": 12242000, "JavaScript": 177557, "Protocol Buffer": 42440, "HTML": 27393, "Lex": 16598, "ANTLR": 9689, "CSS": 9358, "Groovy": 5566, "Shell": 4638, "Batchfile": 3703, "IDL": 3441} | /*
* Copyright 2010-2015 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... | 0 | Java | 0 | 1 | 29af6586f2109bf48432a141a5193fbb487edd10 | 2,190 | kotlin | Apache License 2.0 |
micronaut/src/test/kotlin/test/micronaut/path/onlycontrollerannotation/delete/OnlyControllerAnnotationWithDeletePathTestController.kt | codecentric | 167,929,609 | false | null | package test.micronaut.path.onlycontrollerannotation.delete
import io.micronaut.http.annotation.Controller
import io.micronaut.http.annotation.Delete
@Controller("/todos")
class OnlyControllerAnnotationWithDeletePathTestController {
@Delete
fun todos() { }
} | 19 | null | 19 | 193 | b8a754f91b524b53a464167bf0abd6044caa25a4 | 269 | hikaku | Apache License 2.0 |
app/src/main/kotlin/com/thuanpx/mvvm_architecture/utils/coroutines/adapters/ApiResponseCallAdapter.kt | ThuanPx | 285,618,493 | false | null | package com.thuanpx.mvvm_architecture.utils.coroutines.adapters
import com.thuanpx.mvvm_architecture.utils.coroutines.ApiResponse
import com.thuanpx.mvvm_architecture.utils.coroutines.adapters.internal.ApiResponseCallDelegate
import retrofit2.Call
import retrofit2.CallAdapter
import java.lang.reflect.Type
/**
* @aut... | 0 | Kotlin | 5 | 8 | 2b9b473288b9fd5620ed0d58b071b1edfe32aef6 | 861 | MVVM-Architecture | Apache License 2.0 |
react-query-kotlin/src/jsMain/kotlin/tanstack/query/core/InitialDataFunction.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6619312} | // Automatically generated - do not modify!
@file:Suppress(
"UNUSED_TYPEALIAS_PARAMETER",
)
package tanstack.query.core
typealias InitialDataFunction<T> = () -> T?
| 0 | Kotlin | 6 | 28 | 2e94b60c9e3838c464ab9da211ca44de54e74133 | 171 | types-kotlin | Apache License 2.0 |
resources/KoreanBotsInfo.kt | JellyBrick | 271,667,806 | false | null | package __PACKAGE
object KoreanBotsInfo {
const val API_BASE_URL = "__API_BASE_URL"
const val GITHUB_URL = "__GITHUB_URL"
const val VERSION = "__VERSION"
}
| 3 | Kotlin | 0 | 12 | f9a814cfbc7300ed41cbdc5ce663f4ae2dd7231e | 169 | Koreanbots-Kotlin-SDK | Apache License 2.0 |
app/src/main/java/com/plweegie/android/telladog/ui/FirebaseDialog.kt | plweegie | 121,174,075 | false | {"Kotlin": 54651, "CMake": 1715} | package com.plweegie.android.telladog.ui
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
import androidx.core.content.res.ResourcesCompat
import androidx.fragment.app.DialogFragment
import com.plweegie.android.telladog.R
import com.plweegie.android.t... | 0 | Kotlin | 0 | 3 | 894e2816e3566d54b62dbc542250a055b1a78909 | 1,683 | TellADog | Apache License 2.0 |
app/src/main/java/org/tokend/template/features/recovery/logic/RecoveryUseCase.kt | CLPAAN | 177,770,901 | true | {"Kotlin": 846056, "HTML": 55444, "Java": 9720} | package org.tokend.template.features.recovery.logic
import io.reactivex.Completable
import io.reactivex.Single
import io.reactivex.functions.BiFunction
import org.tokend.rx.extensions.fromSecretSeedSingle
import org.tokend.rx.extensions.randomSingle
import org.tokend.rx.extensions.toSingle
import org.tokend.sdk.keyser... | 0 | Kotlin | 0 | 0 | e62e2c5b9dfd7250c5ca06bcdfbceeae781453e1 | 3,332 | android-client | Apache License 2.0 |
app/src/main/java/ken/projects/imagegalleryapp/domain/model/PhotoMetadata.kt | aakifnehal | 680,914,711 | false | null | package ken.projects.imagegalleryapp.domain.model
data class PhotoMetadata(
val camera: String,
val exif: List<Exif>,
val farm: Int,
val id: String,
val secret: String,
val server: String
) | 0 | Kotlin | 0 | 0 | 40572e968ee5df2b3719f4aa8e2ef4d861603634 | 214 | FlickArt | MIT License |
shared/src/commonMain/kotlin/data/model/GitHubUser.kt | watabee | 631,177,239 | false | null | package data.model
data class GitHubUser(
val id: String,
val name: String,
val avatarUrl: String,
val bio: String?
)
| 0 | Kotlin | 0 | 0 | c3345f07eb18348f865d410b52a55e88993febab | 135 | GitHubClientCompose | Apache License 2.0 |
app/src/main/kotlin/com/mustalk/minisimulator/MiniSimulatorApp.kt | mustalk | 829,185,459 | false | {"Kotlin": 191863, "JavaScript": 6806, "Ruby": 4353, "Shell": 656} | package com.mustalk.minisimulator
import android.app.Application
import com.google.firebase.FirebaseApp
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.mustalk.minisimulator.BuildConfig.DEBUG
import dagger.hilt.android.HiltAndroidApp
/**
* @author by MusTalK on 15/07/2024
*/
@HiltAndroidApp
c... | 0 | Kotlin | 0 | 1 | a5943be3bdb9b637c846db6ccae994e576673d8f | 636 | MiniSoccerSimulator | Apache License 2.0 |
modelcontract/src/commonMain/kotlin/tech/skot/model/SKLocalDateSerializer.kt | skot-framework | 235,318,194 | false | {"Kotlin": 773248, "Shell": 117} | package tech.skot.model
import kotlinx.datetime.LocalDate
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toLocalDateTime
import kotlinx.serialization.KSerializer
import kotlinx.serialization.descriptors.PrimitiveKind
import kotlinx.serialization.descriptors.PrimitiveSerialDescriptor
import kotlinx.serializat... | 1 | Kotlin | 4 | 6 | 8fcff82c719c9775e63da9c3808817704068cbba | 1,069 | skot | Apache License 2.0 |
domain/src/commonMain/kotlin/com/example/domainn/usecases/GetFiveRandomJokesUseCase.kt | ashishcors | 337,320,127 | false | {"Kotlin": 47039, "Java": 367, "Shell": 287} | package com.example.domainn.usecases
import com.example.domainn.entity.Joke
import com.example.domainn.repository.JokesRepo
import com.example.domainn.utils.SafeResult
import com.example.domainn.utils.SafeResult.Failure
import com.example.domainn.utils.SafeResult.NetworkError
import com.example.domainn.utils.SafeResul... | 0 | Kotlin | 0 | 0 | 145116b3ea63ea119d605860f0632edd24c6dfdf | 726 | praxis_kmm | Apache License 2.0 |
src/main/java/com/intellij/debugger/streams/trace/impl/handler/type/GenericType.kt | bibaev | 80,594,815 | false | null | /*
* Copyright 2000-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... | 9 | null | 5 | 7 | 1e4184d83eb0bbc99e878fccb59236937d50c7a1 | 894 | stream-debugger-plugin | Apache License 2.0 |
backbone/src/main/java/org/researchstack/backbone/answerformat/ScaleAnswerFormat.kt | DonGiovanni83 | 194,921,093 | true | {"INI": 1, "YAML": 1, "Gradle": 3, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Text": 1, "Ignore List": 2, "XML": 212, "Proguard": 1, "JSON": 14, "Java": 252, "Kotlin": 5, "Java Properties": 1} | package org.researchstack.backbone.answerformat
import org.researchstack.backbone.ui.step.body.IntegerQuestionBody
import org.researchstack.backbone.ui.step.body.ScaleQuestionBody
import org.researchstack.backbone.ui.step.body.StepBody
class ScaleAnswerFormat(private val minVal: Int, private val maxVal: Int, val step... | 0 | Java | 0 | 0 | 2a17e6970a41c2386ce7a509abda4d515854a9ae | 712 | ResearchStack | Apache License 2.0 |
app/src/main/java/ht/pq/khanh/preference/TaskPreference.kt | khanhpq29 | 105,360,322 | false | null | package ht.pq.khanh.preference
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
/**
* Created by khanhpq on 9/29/17.
*/
object TaskPreference {
private val DESCRIPTION_KEY = "description"
val PROPERTY_COLOR_PICKER = "color_selected"
val ... | 0 | Kotlin | 0 | 0 | cfa0157381f8f5bcc4b46e80e5bca57c13292a0b | 1,115 | My-Task | Apache License 2.0 |
zircon.core/common/src/main/kotlin/org/hexworks/zircon/api/kotlin/TextHolderExtensions.kt | nobso | 178,613,075 | true | {"Kotlin": 1311958, "Java": 122797} | package org.hexworks.zircon.api.extensions
import org.hexworks.cobalt.databinding.api.event.ChangeEvent
import org.hexworks.cobalt.databinding.api.event.ChangeListener
import org.hexworks.cobalt.events.api.Subscription
import org.hexworks.zircon.api.behavior.TextHolder
/**
* Extension function which adapts [TextHold... | 0 | Kotlin | 0 | 0 | af0aa588107e108c33dac2459e1b31c5aeb10460 | 648 | zircon | MIT License |
runtime/src/main/kotlin/PersistDefaultValue.kt | meowool | 728,358,591 | false | {"Kotlin": 69817} | /*
* Copyright (C) 2023 Meowool <https://github.com/meowool/mmkv-ktx/graphs/contributors>
*
* This file is part of the MMKV-KTX project <https://github.com/meowool/mmkv-ktx>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 6 | Kotlin | 1 | 3 | 915a26d78de8d47e5e02e3fba0f673526ba85cca | 1,545 | mmkv-ktx | Apache License 2.0 |
src/test/kotlin/unibz/cs/semint/kprime/domain/GidTest.kt | kprime-dev | 722,929,885 | false | {"Kotlin": 383495, "XSLT": 1078, "HTML": 372, "Makefile": 218} | package unibz.cs.semint.kprime.domain
import org.junit.Test
import java.util.*
import kotlin.test.assertFalse
import kotlin.test.assertTrue
class GidTest {
@Test
fun test_gid() {
assertTrue("1234567890".isValidGid())
assertFalse("".isValidGid())
assertFalse("123456789".isValidGid())
... | 0 | Kotlin | 0 | 0 | 34ceb56e3da8b2e64329c7655d50f40400487f25 | 702 | kprime-arm | MIT License |
app/src/main/java/com/kyaracter/hatenabookmark/presentation/main/entity/RssItem.kt | daisuke-nomura | 164,650,006 | false | null | package com.kyaracter.hatenabookmark.presentation.main.entity
import org.threeten.bp.LocalDateTime
data class RssItem(val name: String,
val date: LocalDateTime,
val description: String,
val url: String,
val thumbnail: String,
... | 0 | Kotlin | 0 | 0 | 168c31fda37e4304b390f54ba5a192536141933a | 346 | hatenabookmark | Apache License 2.0 |
shared-ui/src/commonMain/kotlin/co.touchlab.droidcon/ui/session/SessionBlockView.kt | touchlab | 140,843,272 | false | null | package co.touchlab.droidcon.ui.session
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.l... | 11 | null | 77 | 931 | 100f83d3c6ad66c23321cfdceef84139cbba89fd | 4,542 | DroidconKotlin | Apache License 2.0 |
core/src/jsMain/kotlin/tech/antibytes/kfixture/ClassNameResolver.kt | bitPogo | 471,069,650 | false | null | /*
* Copyright (c) 2022 <NAME> (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
@file:Suppress("ktlint:standard:filename")
package tech.antibytes.kfixture
import kotlin.reflect.KClass
// Ensure stable names
private val classNames: MutableMap<KClass<*>, String> = HashMap... | 0 | null | 1 | 12 | 52ccc8a29b0429fc07335cd4926169d254a78551 | 697 | kfixture | Apache License 2.0 |
javalin/src/main/java/io/javalin/config/JettyConfig.kt | javalin | 87,012,358 | false | {"Kotlin": 1108498, "Java": 131173, "Vue": 3364, "HTML": 1455, "JavaScript": 198, "CSS": 92, "Twig": 40, "FreeMarker": 35, "StringTemplate": 34, "Mustache": 20} | package io.javalin.config
import io.javalin.jetty.JettyServer
import org.eclipse.jetty.server.Connector
import org.eclipse.jetty.server.HttpConfiguration
import org.eclipse.jetty.server.Server
import org.eclipse.jetty.server.session.SessionHandler
import org.eclipse.jetty.servlet.ServletContextHandler
import org.eclip... | 8 | Kotlin | 603 | 7,573 | 6e53b6237dc54fcb05b7a8531941bcb60a17e687 | 2,658 | javalin | Apache License 2.0 |
app/src/main/java/com/example/radiola/ui/fragments/SongFragment.kt | geocdias | 331,162,907 | false | {"Kotlin": 44081} | package com.example.radiola.ui.fragments
import android.os.Bundle
import android.support.v4.media.session.PlaybackStateCompat
import android.view.View
import android.widget.SeekBar
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.ViewModelProvider
import com.bumpt... | 1 | Kotlin | 0 | 0 | a87b7395979cee7a084ba1b22e0f973befe6cdd5 | 3,995 | Radiola | MIT License |
src/main/kotlin/utils/BGPNotificationCollector.kt | ssbgp | 108,266,875 | false | {"Kotlin": 396337} | package utils
import bgp.notifications.*
import core.simulator.notifications.Notification
/**
* Created on 26-07-2017
*
* @author <NAME>
*/
class BGPNotificationCollector(val withOutput: Boolean): NotificationCollector(),
LearnListener, DetectListener, SelectListener, ExportListener {
//region Lists ... | 3 | Kotlin | 0 | 9 | f2b681afdbf9fec8e91a13e5c69b5559d692e9b1 | 2,186 | simulator | MIT License |
ReduxLikeState/app/src/main/kotlin/nolambda/state/di/components/ActivityComponent.kt | esafirm | 113,326,270 | false | null | package nolambda.state.di.components
import dagger.Subcomponent
import nolambda.state.di.modules.ActivityModule
import nolambda.state.di.modules.NavigatorModule
import nolambda.state.di.scopes.ActivityScope
import nolambda.state.navigator.AppNavigator
import nolambda.state.navigator.IntentNavigator
@ActivityScope
@Su... | 0 | Kotlin | 3 | 3 | 29a92839466c60be294eea06e6ea1441da0e9863 | 1,154 | talks-codes | MIT License |
app/src/main/java/com/learning/webviewuploadintentexample/MainActivity.kt | dvento | 475,216,903 | false | null | package com.learning.webviewuploadintentexample
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Environment
import android.os.Parcelable
import android.provider.MediaStore
import android.webkit.ValueCallback
import android.webkit.WebChromeClie... | 0 | Kotlin | 0 | 3 | 9e4fa9f96cae060f91ae11d9a00a77061f7a51ab | 5,510 | LEARNING_WebView_Upload_Intent_Example | Apache License 2.0 |
composeApp/src/commonMain/kotlin/presentation/designsystem/components/BusbyPasswordTextField.kt | steve1rm | 832,577,643 | false | {"Kotlin": 81942, "Swift": 621, "HTML": 343, "CSS": 102} | package presentation.designsystem.components
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.f... | 0 | Kotlin | 0 | 1 | 8b37f04d269f1deb9d11cb9d301a24a5df8b1646 | 6,578 | BusbyTravelMateV2 | MIT License |
app/src/main/java/com/example/androiddevchallenge/home/HomeScreen.kt | msasikanth | 342,771,229 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 1 | 15 | 381a2a8b51bc46eefabcbb84b4fd4dc4a79827f6 | 6,275 | paw | Apache License 2.0 |
app/src/main/java/com/rsdosev/squarerepos/utils/DividerItemDecorator.kt | RSDosev | 301,542,543 | false | null | package com.rsdosev.squarerepos.utils
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ItemDecoration
class DividerItemDecorator(private val divider: Drawable) : ItemDecoration() {
override f... | 0 | Kotlin | 0 | 0 | 2406b9806c8f437bb2df40a71f6f493c4b52afc5 | 1,018 | square-github-repos | Apache License 2.0 |
app/src/main/kotlin/com/example/android/recyclerview/RecyclerViewAdapter.kt | ozbek | 180,975,318 | false | null | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 0 | Kotlin | 0 | 1 | 5fe3f3c21c0aaf072e3fce632ff17c4c4cd58448 | 3,416 | picasso-viewholder | Apache License 2.0 |
lib/src/androidTest/java/ir/alireza/lib/opensslhandle/ConditionCheck.kt | midnightgeek1988 | 227,999,586 | false | null | package ir.alireza.lib.opensslhandle
interface ConditionCheck {
fun condition():Boolean
fun finalyAssert()
} | 1 | null | 1 | 1 | 401a7f9569cb2f050babf372c11e20e1ad63bef1 | 117 | FetchSslCert-Android | MIT License |
chris-app/src/main/java/it/barusu/chris/channel/process/Processor.kt | barusu-it | 195,362,983 | false | null | package it.barusu.chris.channel.process
interface Processor {
companion object {
const val NAME_SUFFIX: String = "Processor"
}
fun <T : Response> execute(request: Request): T
fun <T : Response> handle(content: String, request: Request): T
} | 1 | Kotlin | 1 | 1 | abcdabdddf18e9df53ec18db548119c08273cca8 | 266 | chris | Apache License 2.0 |
workflows/src/main/kotlin/com/r3/corda/lib/tokens/workflows/flows/redeem/ConfidentialRedeemFungibleTokensFlow.kt | corda | 160,397,060 | false | {"Kotlin": 673352, "Java": 18696, "Dockerfile": 2031} | package com.r3.corda.lib.tokens.workflows.flows.redeem
import co.paralleluniverse.fibers.Suspendable
import com.r3.corda.lib.tokens.contracts.types.TokenType
import net.corda.core.contracts.Amount
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.FlowSession
import net.corda.core.identity.AbstractParty... | 38 | Kotlin | 77 | 80 | 749483f691c2c6ca56d9caacdd73a9e6319a969e | 2,418 | token-sdk | Apache License 2.0 |
src/test/kotlin/io/mstream/boardgameengine/game/tictactoe/TicTacToePossibleMovesSearchTest.kt | mstream | 41,374,648 | false | null | package io.mstream.boardgameengine.game.tictactoe
import io.mstream.boardgameengine.*
import io.mstream.boardgameengine.move.*
import org.junit.*
class TicTacToePossibleMovesSearchTest {
@Test fun canFindAllPossibleMoves() {
val recordingEventSender = RecordingEventSender()
val ticTacToe = TicTa... | 0 | Kotlin | 0 | 1 | 803661bf6bea9125465c74dac95d0a74bc332549 | 939 | BoardGameEngine | MIT License |
kommandant-core/src/main/kotlin/com/github/kvnxiao/kommandant/Kommandant.kt | kvnxiao | 61,843,633 | false | null | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 1 | Kotlin | 1 | 5 | 44579d10a33dfb8228219834cfe76c7a50f3630d | 7,897 | kommandant | Apache License 2.0 |
buildSrc/src/main/kotlin/constants/Libs.kt | AlexRogalskiy | 331,076,596 | false | null | /*
* Copyright (C) 2021. <NAME>. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 13 | Kotlin | 1 | 2 | d7173ec1d9ef227308d926e71335b530c43c92a8 | 1,569 | gradle-kotlin-sample | Apache License 2.0 |
app/src/main/java/com/playlab/escaperoomtimer/ui/components/Buttons.kt | joaoplay16 | 568,274,757 | false | null | package com.playlab.escaperoomtimer.ui.components
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CornerBasedShape... | 0 | Kotlin | 2 | 9 | c03a6910e5445c77e234cfc990f77314986e74a1 | 3,843 | escape-room-timer | Apache License 2.0 |
data/RF01899/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01899"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
2 to 7... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 2,229 | Rfam-for-RNArtist | MIT License |
app/src/main/java/de/christinecoenen/code/zapp/tv/main/MainNavPagerAdapter.kt | mediathekview | 68,289,398 | false | null | package de.christinecoenen.code.zapp.tv.main
import android.content.Context
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import de.christinecoenen.code.zapp.R
import de.christinecoenen.code.zapp... | 57 | null | 33 | 201 | 7a3cadf5a8b8efd1bb5cb9a0d6175c995e2f5aaf | 1,447 | zapp | MIT License |
sample-android/src/main/java/com/chrynan/sample/util/ToneEqualNoteUtils.kt | chRyNaN | 51,400,387 | false | null | package com.chrynan.sample.util
import com.chrynan.sample.model.DiatonicScale
import com.chrynan.sample.model.DiatonicScaleMode
import com.chrynan.sample.model.ToneEqualNote
val ToneEqualNote.Companion.A_FLAT
get() = ToneEqualNote.G_SHARP
val ToneEqualNote.Companion.B_FLAT
get() = ToneEqualNote.A_SHARP
val ... | 0 | Kotlin | 5 | 28 | 5a2e21c9b4789c878f0459e3d5c6fcfcbc66658d | 753 | chords | Apache License 2.0 |
app/src/main/java/com/samourai/sentinel/ui/SentinelActivity.kt | wanderingking072 | 851,747,619 | false | {"Kotlin": 678939, "Java": 428427} | package com.samourai.sentinel.ui
import android.Manifest
import android.content.Intent
import android.graphics.Rect
import android.graphics.RectF
import android.os.Build
import android.os.Bundle
import android.util.DisplayMetrics
import android.view.MenuItem
import android.view.WindowManager
import android.widget.Toas... | 0 | Kotlin | 0 | 1 | 00bd0896f8e4b99c91d7dc9bc90d92d95ff6d76e | 5,442 | sentinel-android | The Unlicense |
lib-multisrc/mangathemesia/src/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaAlt.kt | keiyoushi | 740,710,728 | false | {"Kotlin": 5891570, "JavaScript": 2160} | package eu.kanade.tachiyomi.multisrc.mangathemesia
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.PreferenceScreen
import androidx.preference.SwitchPreferenceCompat
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.await
import eu.kanade.tachi... | 249 | Kotlin | 271 | 1,198 | 16011407c56035f33abbb6cd6b4fabbe630e7ad2 | 5,310 | extensions-source | Apache License 2.0 |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/test/timeout/ContainerTimeoutTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.test.timeout
import io.kotest.common.ExperimentalKotest
import io.kotest.core.spec.style.FunSpec
import io.kotest.engine.TestEngineLauncher
import io.kotest.engine.listener.CollectingTestEngineListener
import io.kotest.matchers.shouldBe
import kotlinx.coroutines.delay
import kotlin.t... | 60 | null | 632 | 4,364 | 0054608c69772bd253aec319bedc2231983e13f1 | 1,135 | kotest | Apache License 2.0 |
app/src/main/java/com/zhangteng/app/adapter/BaseListMvpDemoAdapter.kt | DL-ZhangTeng | 536,515,906 | false | null | package com.zhangteng.app.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import com.zhangteng.base.base.BaseAdapter
import com.zhangteng.app.R
import com.zhangteng.app.bean.BaseListMvpDemoBean
class BaseListMvpDemoAdapter(data: MutableList<BaseListMvpDemoBean?>?) :
BaseAdapter<BaseListM... | 0 | Kotlin | 0 | 1 | fd70ddbe20570499f3130b77d9ec60e8f735aa5a | 779 | MVP | The Unlicense |
common-spring-backend/src/main/kotlin/digital/wup/superheroapp/rx/Completable.kt | wupdigital | 126,070,339 | false | null | package digital.wup.superheroapp.rx
actual typealias Completable = io.reactivex.Completable | 0 | Kotlin | 1 | 0 | aace81a2a9871ba67090d13ee552fd35b0d5722e | 92 | kotlin-multiplatform-superhero-app | Apache License 2.0 |
app/src/main/java/com/studiocinqo/diardeonandroid/ui/fragments/project/EditProjectModalFragment.kt | Diarde | 375,262,759 | false | null | package com.studiocinqo.diardeonandroid.ui.fragments.project
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.View
import android.widget.EditText
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import com.studiocinqo.dia... | 0 | Kotlin | 0 | 0 | bb1e1b792e2162763a09778de2181cc412e42f6c | 2,276 | DIARDEOnAndroid | MIT License |
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/superTypes/KtSuperTypesCallArgumentsRenderer.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78346118, "Java": 6692370, "Swift": 4062767, "C": 2609482, "C++": 1962762, "Objective-C++": 169966, "JavaScript": 138328, "Python": 59488, "Shell": 35024, "TypeScript": 22800, "Lex": 18369, "Groovy": 17400, "Objective-C": 15578, "Batchfile": 11746, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9857, "EJS": 5241... | /*
* Copyright 2010-2022 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.analysis.api.renderer.declarations.superTypes
import org.jetbrains.kotlin.analys... | 182 | Kotlin | 5617 | 47,637 | d257153a50bdaa761d54bbc9fd1c5d78a3769f0f | 1,903 | kotlin | Apache License 2.0 |
app/src/main/java/com/zeynelerdi/mackolik/di/module/LiveScoreFragmentModule.kt | ZeynelErdiKarabulut | 320,010,103 | false | {"Kotlin": 116012} | package com.zeynelerdi.mackolik.ui.livescore
import com.zeynelerdi.mackolik.di.ViewModelKey
import dagger.Module
@Module
abstract class LiveScoreFragmentModule {
@ViewModelKey(LiveScoreViewModel::class)
internal abstract fun provideMainViewModel(viewModel: LiveScoreViewModel): LiveScoreViewModel
}
| 0 | Kotlin | 0 | 1 | 4b40e57d2193706e15e18dd77fbb459e960f35db | 311 | Mackolik | Apache License 2.0 |
reactive-logger/src/main/kotlin/io/github/numichi/reactive/logger/reactor/RLogger.kt | Numichi | 448,675,398 | true | {"Kotlin": 386596, "Java": 18115} | package io.github.numichi.reactive.logger.reactor
import io.github.numichi.reactive.logger.core.RSnapshot
import org.slf4j.Marker
import reactor.core.publisher.Mono
/**
* @see [org.slf4j.Logger]
*/
interface RLogger : RSnapshot {
val isTraceEnabled: Boolean
fun isTraceEnabled(marker: Marker?): Boolean
f... | 0 | Kotlin | 4 | 16 | 0b2eb0cac1b82c1e5a2771ca7b3166ddc56e3b6e | 3,870 | reactive-logger | Apache License 2.0 |
reactive-logger/src/main/kotlin/io/github/numichi/reactive/logger/reactor/RLogger.kt | Numichi | 448,675,398 | true | {"Kotlin": 386596, "Java": 18115} | package io.github.numichi.reactive.logger.reactor
import io.github.numichi.reactive.logger.core.RSnapshot
import org.slf4j.Marker
import reactor.core.publisher.Mono
/**
* @see [org.slf4j.Logger]
*/
interface RLogger : RSnapshot {
val isTraceEnabled: Boolean
fun isTraceEnabled(marker: Marker?): Boolean
f... | 0 | Kotlin | 4 | 16 | 0b2eb0cac1b82c1e5a2771ca7b3166ddc56e3b6e | 3,870 | reactive-logger | Apache License 2.0 |
services/hanke-service/src/main/kotlin/fi/hel/haitaton/hanke/organisaatio/OrganisaatioServiceImpl.kt | City-of-Helsinki | 300,534,352 | false | null | package fi.hel.haitaton.hanke.organisaatio
import org.springframework.beans.factory.annotation.Autowired
class OrganisaatioServiceImpl(@Autowired val organisaatioRepository: OrganisaatioRepository) : OrganisaatioService {
override fun getOrganisaatiot(): Iterable<Organisaatio> {
val entities = organisaat... | 1 | Kotlin | 4 | 1 | 89ac42586cfb1355f79b09062ba54736a4a6adfd | 727 | haitaton-backend | MIT License |
android/app/src/main/java/com/pda/screenshotmatcher2/utils/PhotoConverter.kt | PDA-UR | 337,995,962 | false | null | package com.pda.screenshotmatcher2.utils
import android.graphics.*
import androidx.core.graphics.scale
import kotlin.math.max
fun rescale(bitmap: Bitmap, targetSize: Int): Bitmap {
val longSide = max(bitmap.width, bitmap.height)
val factor : Float = targetSize.toFloat() / longSide.toFloat()
val greybmp : ... | 7 | Kotlin | 0 | 6 | 4dae43e52b109b8786882eae1650ccef44457fe9 | 911 | Screenshotmatcher-2.0 | MIT License |
core/src/main/kotlin/com/sfl/tms/core/service/translatable/field/exception/TranslatableEntityFieldExistsForTranslatableEntityException.kt | sflpro | 246,614,641 | true | {"Kotlin": 148887, "Java": 15523, "Dockerfile": 85} | package com.sfl.tms.core.service.translatable.field.exception
/**
* User: <NAME>
* Date: 12/5/18
* Time: 6:11 PM
*/
class TranslatableEntityFieldExistsForTranslatableEntityException(key: String, uuid: String, label: String) :
RuntimeException("TranslatableEntityField already exists by '$key' key for Translatab... | 0 | Kotlin | 1 | 0 | 25d5e9ec42109ec190858d36e5636e8bef76b712 | 366 | translation-ms | Apache License 2.0 |
hub-backend/src/main/kotlin/org/panda_lang/hub/auth/AuthEndpoint.kt | panda-lang | 126,084,199 | false | null | /*
* Copyright (c) 2021 Hub Team of panda-lang organization
*
* 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 ... | 33 | Kotlin | 3 | 21 | 1c62afcf4a65ca60ae00533b4659d588ebff0fae | 1,558 | hub | Apache License 2.0 |
core/src/main/java/app/futured/arkitekt/core/livedata/DefaultValueMediatorLiveData.kt | futuredapp | 124,508,581 | false | {"Kotlin": 357272, "Java": 1724, "Ruby": 1104} | package com.thefuntasty.mvvm.livedata
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
/**
* Extended [MediatorLiveData] class with default value. Default value can't be null.
*/
class DefaultValueMediatorLiveData<T : Any>(defaultValue: T) : MediatorLiveData<T>() {
init {
v... | 10 | Kotlin | 9 | 120 | 2a3d089342a53f4a09e6055a9076275974dc3f04 | 715 | arkitekt | MIT License |
app/src/main/java/com/creative/qrcodescanner/ui/history/HistoryLayout.kt | dantech0xff | 735,255,021 | false | {"Kotlin": 166617} | package com.creative.qrcodescanner.ui.history
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.EaseInOutBack
import androidx.compose.animation.core.LinearEasing
import androidx.c... | 0 | Kotlin | 0 | 9 | b204cc786b5c5e146056c7ab66cc58ce5d8d66e1 | 10,709 | compose-barcode-scanner | MIT License |
module_view/src/main/java/com/vension/fastframe/view/ui/fragments/ToastFragment.kt | unboundedcode | 198,977,992 | false | {"Gradle": 14, "Markdown": 1, "Java Properties": 2, "Shell": 1, "Ignore List": 8, "Batchfile": 1, "Proguard": 7, "JSON": 33, "Kotlin": 333, "XML": 363, "Java": 130, "HTML": 1, "INI": 1} | package com.vension.fastframe.view.ui.fragments
import android.graphics.Typeface
import android.os.Bundle
import android.view.Gravity
import android.view.View
import android.widget.Toast
import com.vension.fastframe.view.R
import com.wuhenzhizao.titlebar.widget.CommonTitleBar
import kotlinx.android.synthetic.main.frag... | 0 | Kotlin | 0 | 3 | 2e5b1e8001d855cd34cdf04dea7eac12bd6cda32 | 3,895 | V-FastFrame | Apache License 2.0 |
neetcode/src/main/java/org/arrays/Arrays.kt | gouthamhusky | 682,822,938 | false | {"Java": 7421, "Kotlin": 6822} | package org.arrays
import kotlin.text.StringBuilder
fun main() {
val nums = intArrayOf(1, 2, 3, 4)
val answer = productExceptSelf(nums)
print(answer.contentToString())
}
/*
https://leetcode.com/problems/contains-duplicate/description/
Clever way: nums.size == nums.toSet().size (size of array equals size... | 0 | Kotlin | 0 | 0 | 4c2736f40c1125637a64dc89829f40373ad099e4 | 4,638 | leetcode-journey | MIT License |
game-loop/src/main/java/homemade/game/pipeline/stages/ComboProcessingStage.kt | mazhukinevgeniy | 177,178,631 | false | {"Java": 101913, "Kotlin": 92615, "Python": 7633} | package homemade.game.pipeline.stages
import homemade.game.fieldstructure.CellCode
import homemade.game.fieldstructure.Direction
import homemade.game.fieldstructure.FieldStructure
import homemade.game.fieldstructure.LinkCode
import homemade.game.loop.BlockExploded
import homemade.game.loop.BlockRemoved
import homemade... | 1 | null | 1 | 1 | b6794dff39906efe34eaed9da3ad7aee94453281 | 5,138 | tiapttf | MIT License |
app/src/main/java/com/example/weatherapp/domain/models/Forecast.kt | t1geryan | 635,408,978 | false | null | package com.example.weatherapp.domain.models
/**
* A class that store briefly information about future weather
*/
data class Forecast(
val weatherIconName: String,
val temperature: Int,
val dateTimeUnixUtc: Long,
val shiftFromUtcSeconds: Long,
) | 0 | Kotlin | 0 | 0 | 95db60e66edddf9b01dd5d2142088eeda1789465 | 264 | DSR_Android_Weather_App | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.