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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
compose-multiplatform/library/src/commonMain/kotlin/com/kizitonwose/calendar/core/format/Format.kt | kizitonwose | 182,417,603 | false | {"Kotlin": 670112, "HTML": 343, "CSS": 102} | package com.kizitonwose.calendar.core.format
import com.kizitonwose.calendar.core.Year
import com.kizitonwose.calendar.core.YearMonth
import com.kizitonwose.calendar.core.atMonth
import com.kizitonwose.calendar.core.atStartOfMonth
import com.kizitonwose.calendar.core.yearMonth
import kotlinx.datetime.LocalDate
import ... | 13 | Kotlin | 505 | 4,651 | 36de800a6c36a8f142f6432a0992e0ea4ae8a789 | 1,168 | Calendar | MIT License |
experience/src/main/kotlin/io/github/shkschneider/awesome/experience/obelisk/ObeliskBlockEntity.kt | shkschneider | 555,774,039 | false | null | package io.github.shkschneider.awesome.obelisk
import io.github.shkschneider.awesome.core.AwesomeBlockEntity
import io.github.shkschneider.awesome.custom.InputOutput
import net.minecraft.block.BlockState
import net.minecraft.block.entity.BlockEntityType
import net.minecraft.entity.player.PlayerEntity
import net.minecr... | 0 | Kotlin | 0 | 0 | 806a3a79816b00ddda1dc12ce1a2a0322402b6aa | 2,041 | mc_awesome | MIT License |
src/main/kotlin/mixit/security/handler/ExternalUserDto.kt | mixitconf | 76,134,720 | false | null | package mixit.security.handler
import mixit.talk.model.Language
import mixit.user.model.Link
import mixit.user.model.User
import mixit.user.model.Users
data class ExternalUserDto(
val login: String,
val firstname: String,
val lastname: String,
val links: List<Link> = listOf(),
val description: Map... | 13 | null | 127 | 539 | d94f2335bccea760ac31fad66b648a3080ac35c5 | 645 | mixit | Apache License 2.0 |
plugin-dotnet-agent/src/main/kotlin/jetbrains/buildServer/dotnet/toolResolvers/DotnetToolResolverImpl.kt | JetBrains | 49,584,664 | false | {"Kotlin": 2711266, "C#": 319161, "Java": 95520, "Dockerfile": 831, "CSS": 123} |
package jetbrains.buildServer.dotnet.toolResolvers
import jetbrains.buildServer.RunBuildException
import jetbrains.buildServer.agent.*
import jetbrains.buildServer.agent.runner.ParameterType
import jetbrains.buildServer.agent.runner.ParametersService
import jetbrains.buildServer.util.OSType
import jetbrains.buildSer... | 3 | Kotlin | 25 | 94 | cdecbf2c7721a40265a031453262614809d5378d | 3,342 | teamcity-dotnet-plugin | Apache License 2.0 |
app/src/main/java/com/example/githubusers/di/component/AppComponent.kt | freelanzer1 | 373,213,635 | false | null | package com.example.githubusers.di.component
import com.example.githubusers.ui.MainActivity
import com.example.githubusers.di.module.AppModule
import com.example.githubusers.di.module.NetworkModule
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = [AppModule::class, NetworkModule::... | 0 | Kotlin | 0 | 0 | 1cfdc76104750493cdcd53b4fdacfd580a4d9e43 | 391 | GitHubUsers | Apache License 2.0 |
src/test/kotlin/watch/craft/scrapers/RedWillowScraperTest.kt | oliver-charlesworth | 279,883,860 | false | {"Kotlin": 289472, "TypeScript": 40268, "CSS": 9885, "HCL": 1516, "JavaScript": 964, "Shell": 440} | package watch.craft.scrapers
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
import watch.craft.*
import watch.craft.Scraper.ScrapedItem
import java.net.URI
class RedWillowScraperTest {
companion object {
private val ITEMS = executeScraper(RedWillowScraper())
}
@Test
fun `find... | 4 | Kotlin | 1 | 0 | 9f4337f3da7223644ee389282e9a199d86336d8f | 1,699 | craft-watch | MIT License |
src/main/kotlin/org/elm/ide/icons/ElmIcons.kt | vincecampanale | 132,259,370 | true | {"Kotlin": 335885, "Elm": 6285, "Lex": 4466} | package org.elm.ide.icons
import com.intellij.openapi.util.IconLoader
import javax.swing.Icon
object ElmIcons {
val FILE = getIcon("elm-file.png")
val FUNCTION = getIcon("function.png")
val VALUE = getIcon("value.png")
val UNION_TYPE = getIcon("type.png")
val TYPE_ALIAS = getIcon("type.png")
... | 0 | Kotlin | 0 | 0 | e677bde9741995c2806f6db130b5367031dac79f | 419 | intellij-elm | MIT License |
adapty/src/main/java/com/adapty/internal/data/cloud/NetworkConnectionCreator.kt | adaptyteam | 238,537,754 | false | {"Kotlin": 412229} | package com.adapty.internal.data.cloud
import androidx.annotation.RestrictTo
import com.adapty.internal.data.cloud.Request.Method.GET
import java.io.BufferedWriter
import java.io.OutputStreamWriter
import java.net.HttpURLConnection
import java.net.URL
import java.util.*
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
int... | 1 | Kotlin | 16 | 80 | fdfe155e4e57c02830d2184db017af2a419351f4 | 1,341 | AdaptySDK-Android | MIT License |
app/src/main/java/uk/co/sentinelweb/qcstechtest/net/RepoRetrofitRepository.kt | sentinelweb | 212,645,607 | false | null | package uk.co.sentinelweb.qcstechtest.net
import androidx.annotation.VisibleForTesting
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import uk.co.... | 0 | Kotlin | 0 | 0 | c708afe20bbee3fd54b0598803517e32566bbc29 | 1,410 | qcs_test | Apache License 2.0 |
src/main/kotlin/ure/Ure.kt | langara | 124,675,080 | false | null |
package pl.mareklangiewicz.ure
import kotlin.jvm.JvmInline
import kotlin.reflect.*
import kotlin.text.RegexOption.*
/**
* Multiplatform Kotlin Frontend / DSL for regular expressions. Actual regular expressions are used like IR
* (intermediate representation) just to compile it to standard kotlin.text.Regex,
* but... | 0 | null | 2 | 5 | eb79526a6b773516f5d87c413f2de4b97715b7a0 | 21,768 | DepsKt | Apache License 2.0 |
app/src/main/java/com/example/comeoneinstein/ui/fragment/MarkdownFragment.kt | Ferguson-fang | 401,770,866 | false | {"Kotlin": 148146} | package com.example.comeoneinstein.ui.fragment
import android.view.View
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.example.comeoneinstein.R
import com.example.comeoneinstein.adapter.MdPagerAdapter
import com.example.comeoneinstein.base.BaseFragment
import com.example.comeoneinstein.ui.activity.... | 0 | Kotlin | 0 | 0 | 8b743ba0eb3f1e11daef400f5f13ea646067a928 | 1,472 | ComeOnEinstein | Apache License 2.0 |
tinkercat-gremlin/src/main/kotlin/org/apache/tinkerpop4/gremlin/tinkercat/process/computer/TinkerWorkerPool.kt | phreed | 449,920,526 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 4 | null | 1 | 1 | cb6805d686e9a27caa8e597b0728a50a63dc9092 | 5,730 | tinkerpop4 | Apache License 2.0 |
src/main/kotlin/no/nav/dagpenger/soknad/orkestrator/søknad/LegacySøknad.kt | navikt | 758,018,874 | false | {"Kotlin": 11957, "Dockerfile": 109} | package no.nav.dagpenger.soknad.orkestrator.søknad
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.LocalDateTime
import java.util.UUID
data class Fakta(
val beskrivendeId: String,
val svar: List<String>,
val type: String,
)
data class Seksjoner(
val beskrivendeId: String,
va... | 0 | Kotlin | 0 | 0 | 3416e58699a6185f57f3675154bd3c2dd00f9b88 | 765 | dp-soknad-orkestrator | MIT License |
fontawesome/src/de/msrd0/fontawesome/icons/FA_SKULL.kt | msrd0 | 363,665,023 | false | null | /* @generated
*
* This file is part of the FontAwesome Kotlin library.
* https://github.com/msrd0/fontawesome-kt
*
* This library is not affiliated with FontAwesome.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 1 | Kotlin | 0 | 0 | 35406669ca5592ee3480ccfba51a00d975ac07af | 1,828 | fontawesome-kt | Apache License 2.0 |
app/src/main/java/org/radarbase/android/widget/Extensions.kt | RADAR-base | 69,361,881 | false | {"Kotlin": 94989} | package org.radarbase.android.widget
import android.content.Intent
import android.graphics.drawable.Animatable2
import android.graphics.drawable.AnimatedVectorDrawable
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Build
import android.view.View
import android.widget.ImageView
impor... | 19 | Kotlin | 26 | 22 | 4b94b9d28a41e963eaa04ac1aa63cb795620f5cd | 1,553 | radar-prmt-android | Apache License 2.0 |
coroutine/src/main/java/com/frybits/preferences/coroutine/CoroutinePreference.kt | pablobaxter | 533,538,754 | false | null | package com.frybits.preferences.coroutine
import androidx.annotation.CheckResult
import com.frybits.preferences.core.Preference
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.FlowCollector
import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.map... | 0 | Kotlin | 0 | 1 | 1bea35a4cd125e66e9eb0ebafe62def9ab1d73b2 | 4,059 | reactive-preferences | Apache License 2.0 |
core/src/main/kotlin/com/maltaisn/nines/core/game/event/TradeHandMove.kt | maltaisn | 766,227,327 | false | {"Kotlin": 177578} | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 0 | 0f21d34ffe0cb7e7337c3f51723247615a49f1c4 | 1,644 | card-game-nines | Apache License 2.0 |
core/src/commonMain/kotlin/com.chrynan.graphkl/language/lexer/Lexer.kt | chRyNaN | 230,310,677 | false | null | package com.chrynan.graphkl.language.lexer
import com.chrynan.graphkl.language.Source
import com.chrynan.graphkl.language.token.Token
import com.chrynan.graphkl.language.token.TokenKind
import com.chrynan.graphkl.language.token.TokenResult
/**
* Given a Source object, creates a Lexer for that source.
* A Lexer is a... | 0 | Kotlin | 0 | 2 | 2526cedddc0a5b5777dea0ec7fc67bc2cd16fe05 | 3,643 | graphkl | Apache License 2.0 |
app/src/main/java/com/sharehands/sharehands_frontend/view/schedule/calendar_decorator/SaturdayDecorate.kt | kmkim2689 | 649,790,966 | false | {"Kotlin": 714518} | package com.sharehands.sharehands_frontend.view.schedule.calendar_decorator
import android.graphics.Color
import android.text.style.ForegroundColorSpan
import com.prolificinteractive.materialcalendarview.CalendarDay
import com.prolificinteractive.materialcalendarview.DayViewDecorator
import com.prolificinteractive.mat... | 0 | Kotlin | 0 | 0 | fa28733c4814bb0bcc42be23308c7cf23567e633 | 771 | sharehands-android | The Unlicense |
libs/packaging/packaging-core/src/test/kotlin/net/corda/libs/packaging/core/CpkMetadataConverter.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.libs.packaging.core
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class CpkMetadataConverter {
@Test
fun `can convert to json avro and back`() {
val cpkMetadata = CpkMetaTestData.create()
val json = cpkMetadata.toJsonAvro()
val d... | 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 429 | corda-runtime-os | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/samConstructors/runnable.kt | JetBrains | 3,432,266 | false | null | fun foo(runnable: Runnable) {}
fun main() {
foo(Runnable {})
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 68 | kotlin | Apache License 2.0 |
rewrite-test/src/main/kotlin/org/openrewrite/java/cleanup/RenameMethodsNamedHashcodeEqualOrTostringTest.kt | openrewrite | 263,442,622 | false | null | /*
* Copyright 2021 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 47 | Java | 51 | 431 | 5515571843fc3ce486fbf9a83258779d90517a0a | 2,625 | rewrite | Apache License 2.0 |
library/src/main/java/com/d10ng/app/resource/ExternalUtils.kt | D10NGYANG | 378,832,800 | false | {"Kotlin": 207694} | package com.d10ng.app.resource
import android.os.Environment
import com.d10ng.app.startup.ctx
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
/**
* 外置存储器工具
* @Author d10ng
* @Date 2023/9/19 10:10
*/
/**
* 获取外置存储器根目录路径
* @return String
*/
fun getExternalRootPath(): String {
... | 0 | Kotlin | 0 | 1 | 90db8ad73b882c0ac53de29c5b3058beee6ec57d | 2,179 | DLAppUtil | MIT License |
template/f-profile/src/main/java/ru/surfstudio/standard/f_profile/ProfileMiddleware.kt | surfstudio | 139,034,657 | false | null | package ru.surfstudio.standard.f_profile
import io.reactivex.Observable
import ru.surfstudio.android.core.mvi.impls.ui.middleware.BaseMiddleware
import ru.surfstudio.android.core.mvi.impls.ui.middleware.BaseMiddlewareDependency
import ru.surfstudio.android.dagger.scope.PerScreen
import ru.surfstudio.standard.f_profile... | 5 | null | 30 | 249 | 6d73ebcaac4b4bd7186e84964cac2396a55ce2cc | 924 | SurfAndroidStandard | Apache License 2.0 |
app/src/main/java/com/rk/xededitor/MainActivity/MenuClickHandler.kt | RohitKushvaha01 | 761,046,569 | false | {"Java": 1999002, "Kotlin": 439352} | package com.rk.xededitor.MainActivity
import android.content.Intent
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.widget.CheckBox
import android.widget.EditText
import android.widget.TextView
import com.google.android.material.dialog.MaterialAlertDialogBuilder
... | 9 | Java | 13 | 234 | 5695ec9af9b7af641b68ebb5c4a44ad0f677af07 | 8,597 | Xed-Editor | MIT License |
src/Season.kt | Roaim | 205,469,151 | false | null | data class Season(val name: String, private var tempMin: Int = Int.MAX_VALUE, private var tempMax: Int = Int.MIN_VALUE) {
fun amplitude() = tempMax - tempMin
fun addTemp(temp: Int) {
if (temp < tempMin) tempMin = temp
if (temp > tempMax) tempMax = temp
}
} | 1 | Kotlin | 3 | 0 | 46b29c019cf36cf54dbfa9fcac597d32dadc04d7 | 284 | ProblemSolvingInKotlin | MIT License |
src/main/kotlin/one/digitalinnovation/collections/TesteDoubleArray.kt | luispolippo | 342,740,419 | false | null | package one.digitalinnovation.collections
fun main() {
//Arrays do tipo DoubleArray funcionam exatamente como os outros Arrays vistos, porém só aceitam
//valores do tipo Double.
val salarios = DoubleArray(3)
salarios[0] = 1000.0
salarios[1] = 3000.0
salarios[2] = 500.0
salarios.forEach {... | 0 | Kotlin | 0 | 0 | 618814edc0ebcca89d8db81d5e0390db11c050e9 | 1,093 | Estudo-Collections-e-Arrays-em-Kotlin | MIT License |
src/main/kotlin/com/github/rinacm/sayaka/common/util/reflector/TypedSubclassesScanner.kt | dylech30th | 299,322,553 | false | null | package com.github.rinacm.sayaka.common.util.reflector
import com.github.rinacm.sayaka.common.util.set
import kotlin.reflect.KClass
object TypedSubclassesScanner : TypedScanner<KClass<*>, KClass<out Any>>() {
override val markedMap: Map<KClass<*>, List<KClass<out Any>>> by lazy {
val map = mutableMapOf<KC... | 0 | Kotlin | 0 | 2 | f27998445fafc1cf0ee66fef2b8abc7a95efecca | 788 | sayaka | MIT License |
smartrecyclerview/src/main/java/com/smartnsoft/smartrecyclerview/wrapper/DiffUtilSmartRecyclerViewWrapper.kt | n0tnull | 118,465,870 | true | {"Kotlin": 59201} | // The MIT License (MIT)
//
// Copyright (c) 2017
//
// 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, m... | 0 | Kotlin | 0 | 0 | ca7247943a7428a6f10565894769871e00154760 | 2,130 | smartrecyclerview | MIT License |
src/main/java/com/vladsch/md/nav/settings/api/SettingsFormImpl.kt | vsch | 32,095,357 | false | null | // Copyright (c) 2015-2023 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.settings.api
import com.intellij.openapi.util.Disposer
import com.intellij.uiDesigner.core.GridConstraints
import com.intellij.uiDesigner.core.Grid... | 134 | null | 131 | 809 | ec413c0e1b784ff7309ef073ddb4907d04345073 | 5,480 | idea-multimarkdown | Apache License 2.0 |
web/src/jsMain/kotlin/de/jensklingenberg/sheasy/web/ui/apps/AppsPresenter.kt | MinateKyo | 180,421,707 | true | {"Kotlin": 2690960, "CSS": 89520, "HTML": 8751, "Java": 2901} | package de.jensklingenberg.sheasy.web.ui.apps
import de.jensklingenberg.sheasy.model.Error
import de.jensklingenberg.sheasy.web.data.FileDataSource
import de.jensklingenberg.sheasy.web.model.response.App
import kodando.rxjs.observable.of
import kodando.rxjs.subscribeBy
import org.w3c.dom.events.Event
class AppsPresen... | 0 | Kotlin | 0 | 2 | b63609e043a60a4090d591c3a1e91cedc3b7b61b | 1,861 | Sheasy | Apache License 2.0 |
libs/project/base/arch/src/main/java/com/hl/arch/mvvm/fragment/MvvmBaseFragment.kt | Heart-Beats | 473,996,742 | false | null | package com.hl.arch.mvvm.fragment
import com.hl.arch.base.BaseNavigationFragment
import com.hl.arch.mvvm.vmDelegate.BaseViewModelDelegate
import com.hl.arch.mvvm.vmDelegate.ViewModelDelegate
/**
* @Author 张磊 on 2020/08/28 at 18:35
* Email: <EMAIL>
*/
abstract class MvvmBaseFragment : BaseNavigationFragment(), ... | 0 | Kotlin | 0 | 1 | 8b569c797232c4290ea797ea88197544fcb27892 | 369 | BaseProject | Apache License 2.0 |
libs/project/base/arch/src/main/java/com/hl/arch/mvvm/fragment/MvvmBaseFragment.kt | Heart-Beats | 473,996,742 | false | null | package com.hl.arch.mvvm.fragment
import com.hl.arch.base.BaseNavigationFragment
import com.hl.arch.mvvm.vmDelegate.BaseViewModelDelegate
import com.hl.arch.mvvm.vmDelegate.ViewModelDelegate
/**
* @Author 张磊 on 2020/08/28 at 18:35
* Email: 913305160@qq.com
*/
abstract class MvvmBaseFragment : BaseNavigationFra... | 0 | Kotlin | 0 | 1 | 8b569c797232c4290ea797ea88197544fcb27892 | 378 | BaseProject | Apache License 2.0 |
src/test/kotlin/no/nav/syfo/testhelper/generator/DialogmeldingFromBehandlerGenerator.kt | navikt | 378,118,189 | false | null | package no.nav.syfo.testhelper.generator
import no.nav.syfo.behandler.kafka.dialogmeldingfrombehandler.KafkaDialogmeldingFromBehandlerDTO
import java.time.LocalDateTime
import java.util.*
const val partnerRef = "12345"
const val dokIdNotat = "OD2010199930316"
const val fellesformatXml = """<?xml version="1.0" ?>
... | 1 | Kotlin | 1 | 0 | dd12b992684acda2da79c73c5364ece6d58f3dbd | 5,070 | isdialogmelding | MIT License |
go/src/main/java/com/aukletapm/go/module/OsModule.kt | aukletapm | 125,328,035 | false | {"Maven POM": 4, "Text": 1, "Ignore List": 1, "YAML": 1, "Markdown": 1, "Kotlin": 27, "XML": 2, "INI": 1, "Java": 1, "HTML": 1} | /*
* Copyright [2018] [AukletAPM]
*
* Author: <NAME>
* Email: <EMAIL>
* WebURL: https://github.com/aukletapm
*
* 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
*
* htt... | 1 | null | 1 | 1 | fc5e261ef04024aa39c53e2370b850882a6a8af5 | 2,203 | aukletapm-to-go | Apache License 2.0 |
src/main/kotlin/network/piction/example/api/serivces/WalletService.kt | piction-protocol | 254,258,437 | false | null | package network.piction.example.api.serivces
import network.piction.example.api.entities.Wallet
import network.piction.example.api.repositories.WalletRepository
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
@Service
class WalletService(val walletRepository: Wa... | 0 | Kotlin | 0 | 0 | 49c6b95e068c824afde14949af1bc15c14172923 | 485 | api-example | Apache License 2.0 |
src/main/kotlin/no/nav/medlemskap/regler/v1/lovvalg/HarBrukerJobbet100ProsentEllerMerRegel.kt | navikt | 225,422,169 | false | {"Kotlin": 943408, "Gherkin": 426906, "Shell": 151, "Dockerfile": 147} | package no.nav.medlemskap.regler.v1.lovvalg
import no.nav.medlemskap.domene.Datagrunnlag
import no.nav.medlemskap.domene.Ytelse
import no.nav.medlemskap.domene.arbeidsforhold.Arbeidsforhold
import no.nav.medlemskap.domene.arbeidsforhold.Arbeidsforhold.Companion.harBrukerJobbetMerEnnGittStillingsprosentTilEnhverTid
imp... | 10 | Kotlin | 1 | 0 | ef1d25c3b042bfec4fc2f235fb658e97f94479d6 | 1,523 | medlemskap-oppslag | MIT License |
sample-app/shared/src/commonMain/kotlin/org/publicvalue/multiplatform/oidc/sample/Constants.kt | kalinjul | 717,845,466 | false | {"Kotlin": 323467, "Swift": 925} | package org.publicvalue.multiplatform.oidc.sample
interface Constants {
val redirectUrl: String
}
expect object PlatformConstants: Constants | 8 | Kotlin | 15 | 44 | ee7dce23ce538a9ef62a75f5e3ff8a882636b746 | 146 | kotlin-multiplatform-oidc | Apache License 2.0 |
fd-applet-server/src/main/kotlin/io/github/haruhisa_enomoto/server/routes/QuiverRoutes.kt | haruhisa-enomoto | 628,298,470 | false | null | package io.github.haruhisa_enomoto.server.routes
import io.github.haruhisa_enomoto.backend.utils.toListWithLeq
import io.github.haruhisa_enomoto.server.utils.getRfAlgebra
import io.github.haruhisa_enomoto.server.utils.toStringQuiver
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.se... | 0 | Kotlin | 0 | 0 | 8ec1afe14e9f0d6330d02652c1cd782a68fca5db | 4,104 | fd-applet | MIT License |
app/src/main/java/com/example/cookit/data/offline/RecipesRepository.kt | Renekakpo | 605,760,439 | false | null | package com.example.cookit.data.offline
import com.example.cookit.database.RecipeDao
import com.example.cookit.models.Recipe
import kotlinx.coroutines.flow.Flow
/**
* Repository that provides insert, update, delete, and retrieve of [Recipe] from a given data source.
*/
interface RecipesRepository {
/**
* ... | 0 | Kotlin | 0 | 0 | d0507b202437465e8a993954b6529bd7ab677bd9 | 1,561 | cookIt | MIT License |
app/movies/domain/src/main/java/io/github/kunal26das/yify/movies/domain/model/Torrent.kt | kunal26das | 283,553,926 | false | {"Kotlin": 111678, "Java": 27396, "Swift": 614, "Assembly": 3} | package io.github.kunal26das.yify.movies.domain.model
import kotlinx.serialization.Serializable
@Serializable
data class Torrent(
val movieId: Long?,
val hash: String,
val dateUploaded: Long,
val peers: Int,
val quality: Quality?,
val seeds: Int,
val size: String,
val sizeBytes: Long,
... | 1 | Kotlin | 1 | 2 | 742e9d5455c0e1d352d9fcc869beee4877829545 | 365 | yify | Apache License 2.0 |
LocalStorageHomework_problem1/app/src/main/java/com/example/localstoragehomework_problem1/MainActivity.kt | GerganaKraeva | 709,205,986 | false | {"Kotlin": 21739} | package com.example.localstoragehomework_problem1
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.localstoragehomework_problem1.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding:Activi... | 0 | Kotlin | 0 | 0 | 7f830506fc12c9517021ec42698562e952343012 | 1,163 | Kotlin | MIT License |
core/src/main/java/org/roylance/yaclib/core/utilities/StringUtilities.kt | roylanceMichael | 64,247,402 | false | {"Text": 1, "Ignore List": 1, "Markdown": 1, "Gradle": 4, "Shell": 2, "Batchfile": 2, "Java Properties": 1, "Java": 15, "Kotlin": 122, "Protocol Buffer": 7, "INI": 1, "Groovy": 2, "XML": 2} | package org.roylance.yaclib.core.utilities
import com.google.protobuf.Descriptors
import org.roylance.yaclib.YaclibModel
import org.roylance.yaclib.core.enums.CommonTokens
object StringUtilities {
fun convertPackageToJavaFolderStructureServices(packageName: String, type: String): String {
val workspace = String... | 3 | null | 1 | 1 | 38635eab474ffe49bfd3f436d76ef9dcbddab503 | 2,093 | yaclib | MIT License |
kotlin-node/src/jsMain/generated/node/crypto/ECKeyPairKeyObjectOptionsParamEncoding.kt | JetBrains | 93,250,841 | false | null | // Generated by Karakum - do not modify it manually!
package node.crypto
sealed external interface ECKeyPairKeyObjectOptionsParamEncoding {
companion object {
@seskar.js.JsValue("explicit")
val explicit: ECKeyPairKeyObjectOptionsParamEncoding
@seskar.js.JsValue("named")
val named:... | 40 | null | 165 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 368 | kotlin-wrappers | Apache License 2.0 |
src/test/java/tech/sirwellington/alchemy/generator/Throwables.kt | SirWellington | 44,460,064 | false | null | /*
* Copyright © 2019. Sir Wellington.
* 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... | 5 | Kotlin | 0 | 1 | cb061c7d107e938ba98b4567e26697235f37cf90 | 1,734 | alchemy-generator | Apache License 2.0 |
presentation/src/main/java/com/jyproject/presentation/MainScreen.kt | JunYeong0314 | 778,833,940 | false | {"Kotlin": 52918} | package com.jyproject.presentation
import android.content.res.Configuration
import androidx.annotation.StringRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.com... | 0 | Kotlin | 0 | 0 | cf53f54560da2b48b8348ac0d31b0886a6f6db54 | 5,518 | PlacePick | MIT License |
app/src/main/java/me/zhanghai/android/fastscroll/ItemHeightsObserver.kt | MaterialCleaner | 390,636,986 | false | null | /*
* Copyright 2022 <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... | 0 | Kotlin | 5 | 40 | 2b5c2b8d54c9705a13c8635fb2680f820db69d95 | 3,722 | Media-Provider-Manager | Apache License 2.0 |
room/src/main/java/xing/room/db3/Playlist.kt | Microhx | 104,326,835 | false | {"Java": 170989, "Kotlin": 39062, "Python": 10115} | package xing.room.db3
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* author: Java
*
* 纵然万劫不复,纵然相思入骨,我依然待你眉眼如初,岁月如故。
*
* date : 2019/5/9
*
* version : 1.0.1
*
* desc :
*
*
*/
@Entity
data class Playlist(
@PrimaryKey(autoGenerate = true) val id : Int,
val name:String?,
val des... | 0 | Java | 2 | 3 | 9bddbe91072bb14cbe82a5e13fcf52c8cb4f2c5b | 338 | studyCodes | Apache License 2.0 |
app/src/main/java/com/hgapplication/to_do_list/model/CurrentTask.kt | hritvikgupta | 586,014,481 | false | null | package com.hgapplication.to_do_list.model
object CurrentTask {
var taskList:Tasks?=null
var currentTask:List<Items>?=null
var items:Items? = null
fun currentState(task:Tasks){
this.taskList = task
}
} | 0 | Kotlin | 0 | 0 | 1e71c60e0bc3b24237acaccaeac422a3ef208742 | 232 | To-Do-List | MIT License |
app/src/main/java/com/irmansyah/catalogmoviekotlin/ui/main/MainViewModel.kt | irmansyah | 133,018,362 | false | null | package com.irmansyah.catalogmoviekotlin.ui.main
import com.irmansyah.catalogmoviekotlin.data.DataManager
import com.irmansyah.catalogmoviekotlin.ui.base.BaseViewModel
import com.irmansyah.catalogmoviekotlin.utils.SchedulerProvider
class MainViewModel constructor(dataManager: DataManager, schedulerProvider: Scheduler... | 0 | Kotlin | 3 | 7 | 99f7f489c5dc0d23998f470b563a667f1ec8a68b | 432 | Movie-MVVM-Kotlin | Apache License 2.0 |
Neato-SDK/neato-sdk-android/src/test/java/com/neatorobotics/sdk/android/robotservices/housecleaning/HouseCleaningMinimal2ServiceTest.kt | NeatoRobotics | 53,487,177 | false | null | /*
* Copyright (c) 2019.
* Neato Robotics Inc.
*/
package com.neatorobotics.sdk.android.robotservices.housecleaning
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mock
import org.mockito.MockitoAnnotations
import org.mockito.junit.MockitoJUnitRunner
import org.jun... | 1 | null | 8 | 23 | d3a3521a0506b575c5cc37a34fb764acfaba939f | 1,296 | neato-sdk-android | MIT License |
app/src/test/java/com/example/notesapp/note_list/domain/use_case/GetNotesSortedByDateAddedTest.kt | info-kareemmohamed | 854,056,641 | false | {"Kotlin": 91079} | package com.example.notesapp.note_list.domain.use_case
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.example.notesapp.core.data.repository.FakeNoteRepository
import com.google.common.truth.Truth.assertThat
import kotlinx.coroutines.test.runTest
import org.junit.Before
import org.junit.R... | 0 | Kotlin | 0 | 0 | 663ede2a7d4703d08407161a85196253c7816012 | 1,152 | Notes-App-MVI-jetpack-compose | MIT License |
src/test/kotlin/com/github/kerubistan/kerub/model/collection/VirtualStorageDataCollectionTest.kt | kerubistan | 19,528,622 | false | null | package com.github.kerubistan.kerub.model.collection
import com.github.kerubistan.kerub.model.dynamic.VirtualStorageDeviceDynamic
import com.github.kerubistan.kerub.model.dynamic.VirtualStorageLvmAllocation
import com.github.kerubistan.kerub.testDisk
import com.github.kerubistan.kerub.testHost
import com.github.kerubi... | 109 | Kotlin | 4 | 14 | 99cb43c962da46df7a0beb75f2e0c839c6c50bda | 2,556 | kerub | Apache License 2.0 |
graphics/src/main/kotlin/matt/fx/graphics/wrapper/group/group.kt | mgroth0 | 497,866,693 | false | null | package matt.fx.graphics.wrapper.group
import javafx.scene.Group
import matt.fx.graphics.service.uncheckedWrapperConverter
import matt.fx.graphics.wrapper.ET
import matt.fx.graphics.wrapper.node.NodeWrapper
import matt.fx.graphics.wrapper.node.attach
import matt.fx.graphics.wrapper.node.parent.ParentWrapperImpl
import... | 0 | Kotlin | 0 | 0 | aaec5b3fde37dea27d079b0216f61ed05feda341 | 1,124 | fx | MIT License |
shared/src/androidMain/kotlin/util/ImageLoader.kt | mbakgun | 629,040,507 | false | {"Kotlin": 63999, "Ruby": 2296, "Swift": 771, "HTML": 453, "Shell": 228} | package util
import android.content.Context
import com.seiko.imageloader.ImageLoader
import com.seiko.imageloader.cache.memory.maxSizePercent
import com.seiko.imageloader.component.setupDefaultComponents
import com.seiko.imageloader.intercept.bitmapMemoryCacheConfig
import com.seiko.imageloader.intercept.imageMemoryCa... | 2 | Kotlin | 19 | 220 | 9d1de4c3dcddf23cdba4a94bbb213f07eb81c608 | 1,328 | midjourney-images-compose-multiplatform | MIT License |
data/src/main/java/com/core/data/persistence/AppDatabase.kt | raxden | 165,669,612 | false | {"Gradle": 8, "Java Properties": 2, "Shell": 2, "Ignore List": 5, "Batchfile": 1, "Markdown": 2, "Proguard": 20, "Kotlin": 182, "XML": 41, "JSON": 5, "INI": 1, "Java": 1, "Text": 3} | package com.core.data.persistence
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.core.data.persistence.converter.LocalDateTimeConverter
import com.core.data.persistence.converter.UriConverter
import com.core.data.persistence.dao.AccountDao
import com.core... | 1 | null | 1 | 1 | 9ad3b3d2fffdaa7abdf567320e8d6d9f98a67746 | 813 | android-core | Apache License 2.0 |
lib_base/src/main/kotlin/com/crow/base/tools/extensions/EventExt.kt | CrowForKotlin | 610,636,509 | false | null | @file:Suppress("unused")
package com.crow.base.tools.extensions
import android.text.Editable
import android.text.TextWatcher
import android.view.MenuItem
import android.view.View
import android.widget.EditText
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import androidx.swiperefre... | 0 | Kotlin | 0 | 2 | a89de12c3004f749270a0cfd6cc4b042de332715 | 7,396 | CopyManga_Crow | Apache License 2.0 |
markdown/src/main/kotlin/com/appmattus/markdown/rules/extentions/BulletListItemExt.kt | mazzonem | 179,463,499 | true | {"Kotlin": 184860, "XSLT": 5582} | package com.appmattus.markdown.rules.extentions
import com.appmattus.markdown.rules.config.UnorderedListStyle
import com.vladsch.flexmark.ast.BulletListItem
fun BulletListItem.style(): UnorderedListStyle = when (openingMarker.toString()) {
"*" -> UnorderedListStyle.Asterisk
"+" -> UnorderedListStyle.Plus
... | 0 | Kotlin | 0 | 0 | 1d0244c8f54b4a4d2d8158db3071fb3a403dd8e2 | 395 | markdown-lint | Apache License 2.0 |
SceytChatUiKit/src/main/java/com/sceyt/sceytchatuikit/presentation/uicomponents/conversationinfo/ChannelFileItem.kt | sceyt | 549,073,085 | false | null | package com.sceyt.sceytchatuikit.presentation.uicomponents.conversationinfo
import com.sceyt.sceytchatuikit.data.models.messages.AttachmentWithUserData
import com.sceyt.sceytchatuikit.presentation.uicomponents.conversation.adapters.files.AttachmentDataItem
import com.sceyt.sceytchatuikit.shared.helpers.LinkPreviewHelp... | 0 | Kotlin | 0 | 0 | 0b135841180b7c4fdd66b1b0f7655d8d79fe8a03 | 1,363 | sceyt-chat-android-uikit | MIT License |
openai-android/src/main/java/dev/sunnat629/ai_client/apis/fineTuning/FineTuningRepository.kt | sunnat629 | 778,014,307 | false | {"Kotlin": 96033} | /**
* @author Mohi Us Sunnat
* @date 01.04.24
* Copyright ©2024 Sunnat629.dev. All rights reserved.
*/
package dev.sunnat629.ai_client.apis.fineTuning
import dev.sunnat629.ai_client.models.fineTuning.CreateFineTuningRequest
import dev.sunnat629.ai_client.models.fineTuning.FineTuningResponse
import dev.sunnat6... | 3 | Kotlin | 0 | 1 | 324c454b9fe651cd3c6984815642919e8e29ac06 | 911 | openai-android | MIT License |
app/src/main/java/com/app/skyss_companion/view/planner/TravelPlannerTimePickerFragment.kt | martinheitmann | 339,335,251 | false | null | package com.app.skyss_companion.view.planner
import android.app.Dialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.text.format.DateFormat
import android.util.Log
import android.widget.TimePicker
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.setFragmentResult
i... | 0 | Kotlin | 0 | 1 | a4a79e658643731cd76617cdb9458aa1f742d4c3 | 1,663 | bus-companion | MIT License |
src/IncrementAndDecrement.kt | Ingynnmon | 185,525,405 | false | null |
/*
Operations rules| Priorities rules
1- ()
2- ++, -- (before var)
2- ^
3- * | /
4- + | -
5- =
6- ++,-- (after var)
*/
fun main(args: Array<String>){
var x=10
var y=11
var z=--x+y //(++x)=(x=x+1)
println("z: $z")
var m=x+++y
println("x: $m")
} | 0 | Kotlin | 0 | 0 | 83f27fa8eb9c58a5f621ec1efc9e28faffa9190a | 270 | KotlinBasicClone | Apache License 2.0 |
app/src/main/java/moe/matsuri/nb4a/ui/EditConfigPreference.kt | xchacha20-poly1305 | 735,230,186 | false | {"Kotlin": 870875, "Java": 202335, "Go": 110430, "Shell": 8239, "AIDL": 902, "Makefile": 304} | package moe.matsuri.nb4a.ui
import android.content.Context
import android.content.Intent
import android.util.AttributeSet
import androidx.preference.Preference
import io.nekohasekai.sagernet.R
import io.nekohasekai.sagernet.database.DataStore
import io.nekohasekai.sagernet.ktx.app
import io.nekohasekai.sagernet.ui.pro... | 3 | Kotlin | 6 | 93 | d574b8d42903686836d11ae524e378317e584a19 | 1,308 | husi | BSD Source Code Attribution |
snap-to-roads/src/main/java/com/daniyelp/snaptoroads/remote/api/SnapToRoadsApi.kt | daniyelp | 397,212,466 | false | null | package com.daniyelp.snaptoroads.remote.api
import com.daniyelp.snaptoroads.remote.model.SnappedPoints
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Query
internal interface SnapToRoadsApi {
@GET("/v1/snapToRoads")
suspend fun getSnappedToRoadsPath(
@Query("path") path: St... | 0 | Kotlin | 0 | 0 | 70f793653067b52410fc5d09d979ce6f9fce7a3b | 455 | CustomGoogleMap | Apache License 2.0 |
plugins/stream-debugger/src/com/intellij/debugger/streams/trace/dsl/Lambda.kt | androidports | 115,100,208 | true | {"Java": 168074327, "Python": 25851822, "Kotlin": 6237300, "Groovy": 3448233, "HTML": 1962706, "C": 214338, "C++": 180382, "CSS": 172743, "JavaScript": 148969, "Lex": 148787, "XSLT": 113040, "Jupyter Notebook": 93222, "Shell": 60321, "NSIS": 57796, "Batchfile": 51257, "Roff": 37534, "Objective-C": 27309, "TeX": 25473, ... | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.streams.trace.dsl
/**
* @author Vitaliy.Bibaev
*/
interface Lambda : Expression {
val variableName: String
val body: CodeBlock
} | 6 | Java | 0 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 306 | intellij-community | Apache License 2.0 |
core-datasource/src/main/java/com/mathroda/datasource/usecases/GetFavoriteCoinsUseCase.kt | MathRoda | 507,060,394 | false | {"Kotlin": 375433} | package com.mathroda.datasource.usecases
import com.mathroda.core.util.Resource
import com.mathroda.datasource.core.DashCoinRepository
import com.mathroda.datasource.firebase.FirebaseRepository
import com.mathroda.domain.model.FavoriteCoin
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import ... | 0 | Kotlin | 40 | 275 | 33ef0b13d4873bb2b297b501dce8fda5e4982d42 | 1,526 | DashCoin | Apache License 2.0 |
src/com/silverkeytech/android_rivers/meta_weblog/PostPayload.kt | svtk | 13,240,006 | true | {"Java Properties": 9, "Markdown": 3, "Java": 310, "Kotlin": 122, "Shell": 2} | package com.silverkeytech.android_rivers.meta_weblog
import java.util.HashMap
import com.silverkeytech.android_rivers.isNullOrEmpty
//ref http://codex.wordpress.org/XML-RPC_MetaWeblog_API#metaWeblog.newPost
public data class PostPayload{
public var title: String? = null
public var description: String? = null... | 0 | Java | 2 | 7 | b86837bc1035bbf891fae0065eec0cb71d701cb7 | 2,995 | AndroidRivers | Apache License 2.0 |
app/src/main/java/com/fun/auction/ui/adapter/PatRecordEndAdapter.kt | blueskky | 410,872,361 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "XML": 216, "Kotlin": 167, "Java": 6, "HTML": 2} | package com.`fun`.auction.ui.adapter
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.`fun`.auction.R
import com.`fun`.auction.line
import com.`fun`.auction.model.PatEnd
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.ch... | 1 | null | 1 | 1 | c3955e3b770b46d7e7b14c8925e1d7a9e691b248 | 1,649 | FunAuction | MIT License |
app/src/main/java/com/thanksmister/things/wallpanel/ui/activities/AboutActivity.kt | thanksmister | 183,223,740 | false | null | /*
* Copyright (c) 2019 ThanksMister LLC
*
* 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... | 1 | null | 1 | 3 | 33fe68eb56610801acf8b2994302e4fabe7a8109 | 3,264 | wallpanel-android-things | MIT License |
library/src/main/java/com/jaychang/extensions/av/codec/AACEncoder.kt | jaychang0917 | 105,377,556 | false | null | package com.jaychang.extensions.av.codec
import android.annotation.SuppressLint
import android.media.MediaCodec
import android.media.MediaCodecInfo
import android.media.MediaFormat
import android.media.MediaMuxer
import android.support.annotation.RequiresApi
import android.util.Log
import java.io.File
import java.io.F... | 1 | null | 1 | 6 | 3a796425aa18798ceac028e2728af25bad1b0788 | 6,604 | AndroidExtensions | Apache License 2.0 |
app/src/main/java/org/fossasia/openevent/general/search/location/PlaceSuggestionViewHolder.kt | fossasia | 34,847,604 | false | null | package org.fossasia.openevent.general.search.location
import android.view.View
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.mapbox.api.geocoding.v5.models.CarmenFeature
import kotlinx.android.synthetic.main.item_place_suggestion.view.placeName
import kotlinx.android.... | 73 | Kotlin | 562 | 1,942 | e3214589f83c155e477f9e727370d7bbef8fd915 | 1,502 | open-event-attendee-android | Apache License 2.0 |
src/test/kotlin/canal/example/PipelineJsonTest.kt | canal-pipelines | 171,799,219 | false | null | package canal.example
import org.assertj.core.api.Assertions.assertThat
import org.junit.Test
class PipelineJsonTest {
@Test
fun `Test existence of pipelines`() {
assertThat(pipelines.pipelinesForApp.keys).containsExactly("app1", "app2")
assertThat(pipelines.pipelinesForApp["app1"]?.map { it.... | 1 | Kotlin | 3 | 1 | 8497f386aa6447e0d2a33d51d89097d84a18eef9 | 513 | canal_example | Apache License 2.0 |
app/src/main/java/com/google/firebase/ml/md/kotlin/History.kt | tommyzam | 255,256,544 | false | {"Gradle": 3, "Shell": 2, "Java Properties": 2, "Markdown": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "EditorConfig": 1, "YAML": 1, "Proguard": 1, "XML": 58, "Java": 44, "Kotlin": 59} | package com.google.firebase.ml.md.kotlin
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.database.*
import com.google.firebase.ml.md.kotlin.LiveBarcodeScanningActivity.Companion.BARCODE
import com.google.firebas... | 0 | Kotlin | 0 | 0 | 7eff2c0d5a7b33c493d0f6804a097a4eee5ef468 | 2,086 | recash | Apache License 2.0 |
legacy/core/src/main/java/com/fsck/k9/controller/NotificationState.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4766001, "Java": 2159946, "Shell": 2768, "AIDL": 1946} | package com.fsck.k9.controller
class NotificationState {
@get:JvmName("wasNotified")
var wasNotified: Boolean = false
}
| 846 | Kotlin | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 129 | thunderbird-android | Apache License 2.0 |
vertx-lang-kotlin/src/main/kotlin/io/vertx/kotlin/ext/stomp/StompServerHandler.kt | tsegismont | 136,018,012 | false | {"Maven POM": 7, "Ignore List": 1, "EditorConfig": 1, "Text": 1, "Markdown": 1, "JAR Manifest": 2, "Java": 200, "AsciiDoc": 66, "XML": 10, "Java Properties": 1, "Groovy": 14, "Ruby": 27, "Kotlin": 245, "JavaScript": 40, "FreeMarker": 1, "JSON": 1} | package io.vertx.kotlin.ext.stomp
import io.vertx.ext.stomp.StompServerConnection
import io.vertx.ext.stomp.StompServerHandler
import io.vertx.kotlin.coroutines.awaitResult
/**
* Called when the client connects to a server requiring authentication. It invokes the configured
* using [io.vertx.ext.stomp.StompServerH... | 1 | null | 1 | 1 | 5bed3976c3e3a08efad73123dcf024e067825c98 | 966 | vertx-base-stack | Apache License 2.0 |
aws-datastore/src/test/java/com/amplifyframework/datastore/syncengine/MergerTest.kt | aws-amplify | 177,009,933 | false | null | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 97 | null | 115 | 245 | 14c71f38f052a964b96d7abaff6e157bd21a64d8 | 32,249 | amplify-android | Apache License 2.0 |
app/src/main/java/org/simple/clinic/di/AppComponent.kt | eco4ndly | 244,967,563 | false | {"Gradle": 9, "Shell": 4, "Markdown": 26, "Java Properties": 2, "Text": 1, "Ignore List": 8, "Batchfile": 1, "YAML": 3, "Kotlin": 1176, "XML": 237, "INI": 2, "Proguard": 2, "JSON": 62, "Java": 1, "SVG": 1} | package org.simple.clinic.di
import dagger.Component
import org.simple.clinic.ClinicApp
import org.simple.clinic.bloodsugar.entry.di.BloodSugarEntryComponent
import org.simple.clinic.login.OtpSmsReceiver
import org.simple.clinic.main.TheActivityComponent
import org.simple.clinic.newentry.clearbutton.ClearFieldImageBut... | 1 | null | 1 | 1 | c0bb3139dada4f34206928ec81f1e5f6f056134b | 1,305 | simple-android | MIT License |
Chapter03/BeSocial/app/src/main/java/com/kotlinblueprint/besocial/data/remote/MyTwitterApiClient.kt | PacktPublishing | 111,666,634 | false | null | package com.kotlinblueprint.besocial.data.remote
import com.twitter.sdk.android.core.TwitterApiClient
import com.twitter.sdk.android.core.TwitterSession
import com.twitter.sdk.android.core.models.Tweet
import com.twitter.sdk.android.core.models.User
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http... | 0 | null | 10 | 21 | 8421895a6835a96ff51b9bfde650b5ea3f2b3cd7 | 824 | Kotlin-Blueprints | MIT License |
plugins/devkit/devkit-java-tests/testData/inspections/missingApi/plugin/missingApiUsages.kt | burnasheva | 182,238,844 | false | {"Text": 3537, "XML": 4490, "Ant Build System": 14, "Shell": 33, "Markdown": 23, "Ignore List": 35, "Git Attributes": 8, "Batchfile": 26, "SVG": 1881, "Java": 62093, "C++": 15, "HTML": 2674, "Kotlin": 3426, "DTrace": 1, "Gradle": 49, "Java Properties": 89, "INI": 220, "JFlex": 26, "Groovy": 2937, "XSLT": 109, "JavaScri... | package client
import java.util.function.Supplier
import library.RecentClass
import library.RecentKotlinClass
import library.RecentInterface
import library.RecentKotlinInterface
import library.RecentSamInterface
import library.OldClass
import library.OldKotlinClass
import library.OldClassWithDefaultConstructor
im... | 1 | null | 1 | 1 | 6cd66151fcd1182fd02a6a201ae0c30d9e1b548c | 8,166 | intellij-community | Apache License 2.0 |
LavalinkServer/src/main/java/lavalink/server/player/filters/FilterChain.kt | NinkyNonkers | 584,361,050 | false | {"Markdown": 6, "YAML": 7, "Gradle Kotlin DSL": 3, "Shell": 1, "Gradle": 1, "Batchfile": 1, "Text": 1, "Ignore List": 3, "INI": 2, "Kotlin": 16, "Java": 74, "Dockerfile": 1} | package lavalink.server.player.filters
import com.google.gson.Gson
import com.sedmelluq.discord.lavaplayer.filter.AudioFilter
import com.sedmelluq.discord.lavaplayer.filter.FloatPcmAudioFilter
import com.sedmelluq.discord.lavaplayer.filter.PcmFilterFactory
import com.sedmelluq.discord.lavaplayer.filter.UniversalPcmAud... | 1 | null | 1 | 1 | 073c70071452ac0854cb64d167817fca9d31d2f5 | 2,115 | Lavalink | MIT License |
ontrack-model/src/main/java/net/nemerosa/ontrack/model/support/CollectedConnectorStatus.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.model.support
import java.time.LocalDateTime
data class CollectedConnectorStatus(
val status: ConnectorStatus,
val time: LocalDateTime
) | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 183 | ontrack | MIT License |
platform/vcs-log/impl/src/com/intellij/vcs/log/ui/filter/TextFilterModel.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.vcs.log.ui.filter
import com.intellij.openapi.Disposable
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.util.text.StringUtil
import com.intellij.vcs.l... | 251 | null | 5079 | 16,158 | 831d1a4524048aebf64173c1f0b26e04b61c6880 | 4,294 | intellij-community | Apache License 2.0 |
javatests/dagger/functional/kotlinsrc/multipackage/moduleconstructor/ModuleWithInaccessibleConstructor.kt | andhiratobing | 586,597,662 | false | null | /*
* Copyright (C) 2023 The Dagger 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 applicable law or ag... | 0 | null | 0 | 1 | e209fa9efa1210006ef21569aab53328aa7f374e | 1,051 | dagger | Apache License 2.0 |
so-65667450/src/test/kotlin/stackoverflow/so65667450/So65667450ApplicationTests.kt | artembilan | 128,234,101 | false | {"Text": 1, "Markdown": 5, "Batchfile": 22, "Shell": 22, "Maven POM": 17, "Ignore List": 22, "AsciiDoc": 8, "INI": 40, "Java": 50, "YAML": 1, "Java Properties": 3, "SQL": 1, "Gradle": 10, "PLpgSQL": 1, "Kotlin": 2} | package stackoverflow.so65667450
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.boot.web.server.LocalServerPort
import org.springframework.kafka.core.KafkaTemplate
import org.springfr... | 0 | Java | 10 | 20 | 41489a22df16a0d46bce0c6a08a0ff34f27e9d40 | 1,726 | sandbox | Apache License 2.0 |
SingleModuleApp/app/src/main/java/com/github/yamamotoj/singlemoduleapp/package16/Foo01678.kt | yamamotoj | 163,851,411 | false | {"Text": 1, "Ignore List": 30, "Markdown": 1, "Gradle": 34, "Java Properties": 11, "Shell": 6, "Batchfile": 6, "Proguard": 22, "Kotlin": 36021, "XML": 93, "INI": 1, "Java": 32, "Python": 2} | package com.github.yamamotoj.singlemoduleapp.package16
class Foo01678 {
fun method0() {
Foo01677().method5()
}
fun method1() {
method0()
}
fun method2() {
method1()
}
fun method3() {
method2()
}
fun method4() {
method3()
}
fun met... | 0 | Kotlin | 0 | 9 | 2a771697dfebca9201f6df5ef8441578b5102641 | 355 | android_multi_module_experiment | Apache License 2.0 |
app/src/main/kotlin/kozyriatskyi/anton/sked/data/provider/ApiTeacherInfoProvider.kt | antonKozyriatskyi | 123,421,471 | false | null | package kozyriatskyi.anton.sked.data.provider
import kozyriatskyi.anton.sked.data.api.TeacherApi
import kozyriatskyi.anton.sked.data.pojo.Item
import kozyriatskyi.anton.sked.data.pojo.LoginItem
import kozyriatskyi.anton.sked.repository.TeacherInfoProvider
/**
* Created by Anton on 01.08.2017.
*/
class ApiTeacherInf... | 1 | Kotlin | 1 | 3 | 32709bf035cf95523b373c0449685233fedff5d0 | 687 | sked | Apache License 2.0 |
rsocket-core/src/main/java/io/rsocket/util/RSocketProxy.kt | robertroeser | 111,460,230 | true | {"Kotlin": 215225, "Java": 73304, "Shell": 1063} | /*
* Copyright 2016 Netflix, 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... | 0 | Kotlin | 0 | 0 | 57e6a39cc02348fd067633eac069f58f2310574c | 1,818 | rsocket-android | Apache License 2.0 |
k9mail/src/test/java/com/fsck/k9/DependencyInjectionTest.kt | vic3t3chn0 | 138,862,944 | true | {"INI": 2, "YAML": 1, "Gradle": 13, "Shell": 4, "Markdown": 7, "Git Attributes": 1, "Batchfile": 1, "Text": 5, "Ignore List": 4, "Git Config": 1, "XML": 348, "AIDL": 2, "Java": 637, "Java Properties": 1, "SVG": 64, "PostScript": 1, "Kotlin": 88, "Proguard": 1, "E-mail": 8, "HTML": 1} | package com.fsck.k9
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleOwner
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferActivity
import com.fsck.k9.ui.endtoend.AutocryptKeyTransferViewModel
import com.fsck.k9.ui.endtoend.AutocryptSetupMessageLiveEvent
import com.nhaarman.mockito_kot... | 0 | Java | 0 | 0 | bf33cfd73a81e37df2f48f35ee4c2f1ec3fe2427 | 924 | k-9 | Apache License 2.0 |
WZDCTool/app/src/main/java/com/wzdctool/android/ui/data_collection/DataCollectionFragmentViewModel.kt | TonyEnglish | 297,727,090 | false | {"Markdown": 4, "Java Properties": 5, "YAML": 1, "Gradle": 3, "Shell": 2, "Ignore List": 4, "Batchfile": 2, "Proguard": 1, "Kotlin": 40, "XML": 196, "Java": 1, "SVG": 16} | package com.wzdctool.android.ui.data_collection
import android.location.Location
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.android.gms.maps.CameraUpdateFactory
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.MapView
import com.google... | 1 | null | 1 | 1 | 6c7e72c300b0c4b47a36506ffb7bdf33a8c870a3 | 11,339 | V2X_MobileApplication | MIT License |
module-lib-one/src/main/java/com/yjy/module_lib_one/LibTestOneActivity.kt | hanswook | 252,705,642 | false | null | package com.yjy.module_lib_one
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class LibTestOneActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_lib_test_one)
}
}
| 1 | null | 1 | 1 | b070852a1f283197e65e850f877056de058d7932 | 319 | shadowDemo | Apache License 2.0 |
backend.native/tests/external/stdlib/collections/ArraysTest/sortedNullableBy.kt | juliuskunze | 116,136,849 | false | null | import kotlin.test.*
fun box() {
fun String.nullIfEmpty() = if (this.isEmpty()) null else this
arrayOf(null, "").let {
expect(listOf(null, "")) { it.sortedWith(nullsFirst(compareBy { it })) }
expect(listOf("", null)) { it.sortedWith(nullsLast(compareByDescending { it })) }
expect(listOf... | 0 | null | 0 | 1 | 2e07b3f52f99b51d353a8c0e53bdf9fff86988e0 | 411 | kotlin-native | Apache License 2.0 |
qubit-sdk/src/main/java/com/qubit/android/sdk/internal/experience/connector/ExperienceConnectorImpl.kt | qubitdigital | 104,327,148 | false | {"Gradle": 8, "Markdown": 2, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Text": 1, "XML": 9, "Proguard": 2, "Java": 91, "Kotlin": 55} | package com.qubit.android.sdk.internal.experience.connector
import com.qubit.android.sdk.internal.common.logging.QBLogger
import com.qubit.android.sdk.internal.experience.model.ExperienceModel
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import java.io.IOException
internal class Experienc... | 1 | Java | 4 | 2 | 02a3e4d93bb750d3c191902c04d6c9eb8f3c435f | 2,152 | qubit-sdk-android | Apache License 2.0 |
app/src/main/java/net/squanchy/eventdetails/EventDetailsComponent.kt | nguyendat | 111,056,536 | true | {"INI": 1, "Gradle": 6, "Shell": 4, "Markdown": 3, "Batchfile": 1, "Text": 1, "Ignore List": 2, "XML": 122, "JSON": 1, "YAML": 2, "Java Properties": 1, "Proguard": 1, "Java": 142, "Kotlin": 100} | package net.squanchy.eventdetails
import net.squanchy.injection.ActivityLifecycle
import net.squanchy.injection.ApplicationComponent
import net.squanchy.navigation.NavigationModule
import net.squanchy.navigation.Navigator
import dagger.Component
import net.squanchy.injection.ActivityContextModule
import net.squanchy.... | 0 | Java | 0 | 0 | f82cae7a67ac3f13a1b12b3205e5c4275456541c | 1,011 | squanchy-android | Apache License 2.0 |
kotlin-node/src/jsMain/kotlin/node/events/decorateListener.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | package node.events
import js.array.JsTuple
import js.array.JsTuple1
import js.function.JsFunction
import js.function.invoke
import js.symbol.Symbol
private val DECORATED_LISTENER = Symbol("@@decorated-listener")
private val toNodeListener = JsFunction<JsTuple1<Function<Unit>>, Function<Unit>>(
parameterNames = ... | 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 805 | kotlin-wrappers | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/broken/__Medicine.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.broken
import androidx.compose.ui.graphics.vector.ImageVector
import com.chiksmedina.solar.BrokenSolar
import com.chiksmedina.solar.broken.medicine.AdhesivePlaster
import com.chiksmedina.solar.broken.medicine.AdhesivePlaster2
import com.chiksmedina.solar.broken.medicine.Bacteria
import co... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 3,031 | SolarIconSetAndroid | MIT License |
kotlin-browser/src/main/generated/dom/svg/SVGUseElement.kt | stefanthaler | 440,580,782 | true | {"Kotlin": 8815376, "JavaScript": 528} | // Automatically generated - do not modify!
package dom.svg
typealias SVGUseElement = org.w3c.dom.svg.SVGUseElement
| 0 | Kotlin | 0 | 0 | fc27a2b5d98423c8db24f8a28d1c3a95dc682b0a | 118 | kotlin-wrappers | Apache License 2.0 |
src/medium/_71SimplifyPath.kt | ilinqh | 390,190,883 | false | {"Kotlin": 388403, "Java": 32733} | package medium
import java.util.*
class _71SimplifyPath {
class Solution {
fun simplifyPath(path: String): String {
if (path.isEmpty()) {
return "/"
}
val array = path.split("/")
val list = LinkedList<String>()
for (i in array.ind... | 0 | Kotlin | 0 | 0 | 09ceb9d894a084faf03f29807a02362b46f813a4 | 1,001 | AlgorithmsProject | Apache License 2.0 |
app/src/main/java/xyz/fairportstudios/popularin/interfaces/UnfollowUserRequestCallback.kt | rgxcp | 277,228,278 | false | null | package xyz.fairportstudios.popularin.interfaces
interface UnfollowUserRequestCallback {
fun onSuccess()
fun onError(message: String)
} | 0 | Kotlin | 0 | 0 | ac82b65d5f43d07b64aa5010218c663983c839cb | 144 | PopularinKotlin | MIT License |
src/main/kotlin/io/github/chao2zhang/ConsiderNotifyMethodVisitor.kt | chao2zhang | 349,547,788 | false | {"Kotlin": 12636} | package io.github.chao2zhang
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes.*
/**
* Add the following code after invoking `observer.onChanged`:
* ```
* Log.i("LiveData", "considerNotify() called with LiveData = " + this + " Observer = " + observer.mObserver + " Data = " + this.mData);
... | 1 | Kotlin | 0 | 5 | 2bcf0143b3e5d35e3db528e88de70415f0b81afe | 2,998 | LiveDataDebugger | Apache License 2.0 |
app/src/main/java/de/schwerin/stoppCoronaDE/model/repositories/FilesRepository.kt | Mandarin-Medien | 269,321,452 | false | null | package at.roteskreuz.stopcorona.model.repositories
import androidx.annotation.RawRes
import at.roteskreuz.stopcorona.BuildConfig
import at.roteskreuz.stopcorona.model.repositories.other.ContextInteractor
import at.roteskreuz.stopcorona.skeleton.core.model.helpers.AppDispatchers
import kotlinx.coroutines.CoroutineScop... | 0 | null | 0 | 1 | a8a489c25b55cce8b14d60b9afa3fb44cfecab43 | 4,714 | stopp-corona-de-android | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.