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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
operator/src/main/kotlin/eu/glasskube/operator/infra/mariadb/Database.kt | glasskube | 528,301,150 | false | null | package eu.glasskube.operator.infra.mariadb
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import io.fabric8.kubernetes.api.model.Namespaced
import io.fabric8.kubernetes.client.CustomResource
import io.fabric8.kubernetes.model.annotation.Group
import io.fabric8.kubernetes.model.annotation.Version
@JsonI... | 9 | Kotlin | 4 | 47 | 9811e11222360129c6c17eda445438ac4acbf323 | 894 | operator | MIT License |
algorithms/src/test/kotlin/com/kotlinground/algorithms/arrays/optimaltasks/OptimalTaskAssignmentTest.kt | BrianLusina | 113,182,832 | false | {"Kotlin": 653866, "Shell": 7283, "Python": 1725} | package com.kotlinground.algorithms.arrays.optimaltasks
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class OptimalTaskAssignmentTest {
@Test
fun `should return ((2,7), (3,6),(5,5)) from (6, 3, 2, 7, 5, 5)`() {
val tasks = listOf(6, 3, 2, 7, 5, 5)
val expected = listOf(Pair... | 1 | Kotlin | 1 | 0 | a68c11a7d6dad80369bf304e9c1ac9e9a2632c6a | 449 | KotlinGround | MIT License |
src/commonTest/kotlin/csense/kotlin/patterns/ExpectedTest.kt | csense-oss | 136,911,995 | false | null | package csense.kotlin.patterns
import csense.kotlin.tests.assertions.*
import kotlin.test.*
class ExpectedTest {
@Test
fun isSuccess() {
Expected.success(42).isSuccess().assertTrue()
Expected.success("hmm").isSuccess().assertTrue()
Expected.success(Exception("ex")).isSuccess().assertTr... | 1 | Kotlin | 0 | 2 | 49113dd6b2cb1e18992d07faa1e0305d18f766f4 | 19,622 | csense-kotlin | MIT License |
app/src/test/java/com/github/vase4kin/teamcityapp/overview/data/BuildDetailsImplTest.kt | vase4kin | 68,111,887 | false | null | /*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 0 | null | 11 | 52 | 9abb1ed56c127d64679124c38d30b0014ec024de | 14,514 | TeamCityApp | Apache License 2.0 |
shoring/lowerclass/src/main/java/com/panopset/lowerclass/VersionParser.kt | panopset | 735,643,703 | false | {"Kotlin": 591951, "Java": 45005, "Shell": 10059, "CSS": 4623, "JavaScript": 4084, "Batchfile": 3046, "HTML": 1005} | package com.panopset.lowerclass
import com.panopset.compat.Logop.dspmsg
import com.panopset.compat.StatusListener
import com.panopset.compat.Stringop.USH
import java.io.File
import java.io.IOException
class VersionParser : StatusListener {
constructor()
constructor(pathtojarOrDirectorytotraverse: String) : t... | 0 | Kotlin | 0 | 0 | 3db4947b509e036cbbdbae06f06c36abd620b1ca | 2,003 | pan | MIT License |
app/src/main/java/space/rodionov/selfanalysis/ui/NotesViewModel.kt | aleksej-rodionov | 367,346,414 | false | null | package space.rodionov.selfanalysis.ui
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.google.gson.Gson
import kotlinx.coroutines.channels.Channel
//import kotlinx.coroutines.flow.flatMapLatest
//import kotlinx.coroutines.flow.receiveAsFlow
import kot... | 1 | Kotlin | 0 | 0 | 4ddf2244012c525600e3f581cfa5a167f6510c61 | 3,312 | self-analysis | Apache License 2.0 |
core/domain/src/main/kotlin/org/michaelbel/movies/domain/ktx/MovieKtx.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.domain.ktx
import org.michaelbel.movies.domain.data.entity.MovieDb
import org.michaelbel.movies.entities.image.formatBackdropImage
import org.michaelbel.movies.network.model.Movie
internal val Movie.mapToMovieDb: MovieDb
get() = MovieDb(
movieList = "",
dateAdded = 0L... | 2 | Kotlin | 24 | 129 | 11b6ce51e38ca19a9bb798a98c4aa2806dde72bb | 632 | movies | Apache License 2.0 |
app/src/main/java/com/gamapp/dmplayer/presenter/ui/screen/listof/linear/artist/ArtistList.kt | aliHosseinNezhad | 507,626,994 | false | null | package com.gamapp.dmplayer.presenter.ui.screen.listof.artist
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.gamapp.dmplayer.presenter.ui.screen.listof.linear.BaseList
import com.gamapp.domain.models.ArtistModel
@Composable
fun ArtistList(artists: List<ArtistModel>, modifier... | 0 | Kotlin | 0 | 2 | 8eddbdbcd5706072262ed7bd2cf6b2d0a6df6ada | 592 | DMPlayer_public | MIT License |
src/main/kotlin/domain/conf/ReadConf.kt | saro-lab | 540,782,110 | false | null | package domain.conf
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.xml.XmlMapper
import java.io.File
class ReadConf {
companion object {
fun handle(): Conf? {
val file = File(ConfVars.CONF_FILE_NA... | 0 | Kotlin | 2 | 8 | 2c0d0a458b78eb3c043064b33791b0a42cbbdff1 | 635 | solr-db-importer | Apache License 2.0 |
j2k/testData/fileOrElement/declarationStatement/multiplyIntDeclaration.kt | JakeWharton | 99,388,807 | true | null | val k: Int
val l: Int
val m: Int
| 284 | Kotlin | 5162 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 33 | kotlin | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ba/sak/integrasjoner/sanity/SanityService.kt | navikt | 224,639,942 | false | {"Kotlin": 6461348, "Gherkin": 823945, "PLpgSQL": 4478, "Shell": 3094, "Dockerfile": 1000} | package no.nav.familie.ba.sak.integrasjoner.sanity
import no.nav.familie.ba.sak.common.EnvService
import no.nav.familie.ba.sak.kjerne.brev.domene.ISanityBegrunnelse
import no.nav.familie.ba.sak.kjerne.brev.domene.SanityBegrunnelse
import no.nav.familie.ba.sak.kjerne.brev.domene.SanityEØSBegrunnelse
import no.nav.famil... | 6 | Kotlin | 1 | 9 | b927a371915e60c337ae2a876698f39c2024bb0c | 3,389 | familie-ba-sak | MIT License |
app/src/main/java/com/cliffracertech/bootycrate/recyclerview/BootyCrateRecyclerView.kt | NicholasHochstetler | 261,876,852 | false | null | /* Copyright 2021 Nicholas Hochstetler
* You may not use this file except in compliance with the Apache License
* Version 2.0, obtainable at http://www.apache.org/licenses/LICENSE-2.0
* or in the file LICENSE in the project's root directory. */
package com.cliffracertech.bootycrate.recyclerview
import android.conte... | 0 | Kotlin | 0 | 13 | 5b429d0528c902b852f47bc8759d3cd75c2d29f7 | 6,627 | BootyCrate | Apache License 2.0 |
app/src/main/java/hr/olfo/alarmclock/dialogs/DialogRingtone.kt | Caellian | 132,017,018 | false | null | package hr.olfo.alarmclock.dialogs
import android.app.DialogFragment
import android.content.DialogInterface
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RadioButton
import hr.olfo.alarmclock.R
import hr.o... | 1 | Kotlin | 1 | 1 | 4ed3633f50b9f355e9ce35e537ed176ded1eed80 | 2,639 | AlarmClock | MIT License |
yama-raft/src/main/java/com/song/yama/raft/Unstable.kt | aCoder2013 | 161,024,583 | false | null | /*
* Copyright 2018 acoder2013
*
* 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 ... | 1 | Kotlin | 1 | 1 | fde639d37d2be7fde6cdc8ad845135966e9d335b | 6,975 | yama | Apache License 2.0 |
repository/src/main/java/ca/bc/gov/repository/TermsOfServiceRepository.kt | bcgov | 414,797,174 | false | {"Kotlin": 1344329, "Java": 582146} | package ca.bc.gov.repository
import ca.bc.gov.common.model.TermsOfServiceDto
import ca.bc.gov.data.datasource.remote.TermsOfServiceRemoteDataSource
import ca.bc.gov.data.model.mapper.toDto
import javax.inject.Inject
/**
* @author <NAME>
*/
class TermsOfServiceRepository @Inject constructor(
private val termsOfS... | 6 | Kotlin | 5 | 5 | fb45bb6e75c979c509f6424ace7f4028a5577bb0 | 567 | myhealthBC-android | Apache License 2.0 |
Demos/Ktor/src/main/kotlin/com/groupdocs/ui/comparison/ktor/modules/description/DescriptionModule.kt | groupdocs-comparison | 65,550,714 | false | null | package com.groupdocs.ui.signature.ktor.modules.description
import com.groupdocs.ui.signature.ktor.model.DescriptionRequest
import io.ktor.http.*
import io.ktor.server.application.*
import io.ktor.server.request.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import org.koin.ktor.ext.inject
fun Ro... | 5 | null | 9 | 7 | 4d289958d8fc6ab338bbcfca8e82d237b71838be | 631 | GroupDocs.Comparison-for-Java | MIT License |
cli/src/commonMain/kotlin/com/kss/zoom/cli/ZoomCommand.kt | Kotlin-server-squad | 710,163,911 | false | {"Kotlin": 131466, "JavaScript": 98} | package com.kss.zoom.cli
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.context
import com.github.ajalt.clikt.core.subcommands
import com.github.ajalt.mordant.terminal.Terminal
import com.kss.zoom.Zoom
import com.kss.zoom.cli.subcommands.*
class ZoomCommand(zoom: Zoom, terminal: Te... | 7 | Kotlin | 0 | 1 | 5d67d8a6012b2dc6e0564d5217477f6c43b68697 | 992 | zoomsdk | Apache License 2.0 |
android/app/src/main/kotlin/com/example/eternary/MainActivity.kt | Echolon166 | 296,956,539 | false | {"Dart": 53145, "HTML": 1113, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.eternary
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 3 | b8d1d10bd5b2eaa7a4703cf77b7649c71ddfb549 | 125 | eternary | MIT License |
android/app/src/main/kotlin/com/example/eternary/MainActivity.kt | Echolon166 | 296,956,539 | false | {"Dart": 53145, "HTML": 1113, "Swift": 404, "Kotlin": 125, "Objective-C": 38} | package com.example.eternary
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 1 | 3 | b8d1d10bd5b2eaa7a4703cf77b7649c71ddfb549 | 125 | eternary | MIT License |
server/src/main/kotlin/com/kamelia/hedera/rest/user/Routes.kt | Black-Kamelia | 492,280,011 | false | null | package com.kamelia.hedera.rest.user
import com.kamelia.hedera.core.ExpiredOrInvalidTokenException
import com.kamelia.hedera.core.respond
import com.kamelia.hedera.plugins.AuthJwt
import com.kamelia.hedera.rest.core.pageable.PageDefinitionDTO
import com.kamelia.hedera.util.*
import io.ktor.server.application.*
import ... | 18 | Kotlin | 1 | 11 | 75207342485a17131f8508852549485833a4eb78 | 2,173 | Hedera | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/DiceFour.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,921 | icons | MIT License |
platform/collaboration-tools/src/com/intellij/collaboration/ui/codereview/CodeReviewTabs.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.collaboration.ui.codereview
import com.intellij.collaboration.messages.CollaborationToolsBundle.message
import com.intellij.ui.SimpleTextAt... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,465 | intellij-community | Apache License 2.0 |
android/src/com/android/tools/idea/diagnostics/jfr/RecordingManager.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 7,493 | android | Apache License 2.0 |
sample/counter/shared/src/androidMain/kotlin/com/arkivanov/sample/counter/shared/ui/compose/CounterComposable.kt | brovarenkosvetlana | 352,764,618 | true | {"Kotlin": 135542, "Groovy": 79} | package com.arkivanov.sample.counter.shared.ui.compose
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.runtime.Composab... | 0 | null | 0 | 0 | 18f5e4b7e8687438de7915cebdf861865ec933ae | 826 | Decompose | Apache License 2.0 |
http4k-serverless/lambda/integration-test/src/test/kotlin/org/http4k/serverless/lambda/testing/setup/aws/apigatewayv2/CreateStage.kt | http4k | 86,003,479 | false | {"Kotlin": 2824516, "Java": 40971, "HTML": 10441, "CSS": 5145, "Shell": 3222, "JavaScript": 2853, "TypeScript": 2319, "Handlebars": 1941, "Python": 1714, "Pug": 944, "Dockerfile": 256} | package org.http4k.serverless.lambda.testing.setup.aws.apigatewayv2
import org.http4k.core.Body
import org.http4k.core.Method
import org.http4k.core.Request
import org.http4k.core.with
import org.http4k.serverless.lambda.testing.setup.aws.apigatewayv2.ApiGatewayJackson.auto
import org.http4k.serverless.lambda.testing.... | 28 | Kotlin | 222 | 2,384 | b2f24a0fb8ac0537b81a1f4d98bddb65be8b6bb0 | 590 | http4k | Apache License 2.0 |
dbinspector/src/main/kotlin/com/infinum/dbinspector/ui/content/shared/ContentState.kt | infinum | 17,116,181 | false | null | package com.infinum.dbinspector.ui.content.shared
import androidx.paging.PagingData
import com.infinum.dbinspector.domain.shared.models.Cell
import com.infinum.dbinspector.ui.shared.headers.Header
internal sealed class ContentState {
data class Headers(
val headers: List<Header>
) : ContentState()
... | 0 | Kotlin | 93 | 936 | 10b9ac5013ca01e602976a615e754dff7001f11d | 406 | android_dbinspector | Apache License 2.0 |
komapper-core/src/main/kotlin/org/komapper/core/dsl/query/FlowSubquerySupport.kt | komapper | 349,909,214 | false | null | package org.komapper.core.dsl.query
import org.komapper.core.dsl.context.SetOperationContext
import org.komapper.core.dsl.context.SetOperationKind
import org.komapper.core.dsl.context.SubqueryContext
import org.komapper.core.dsl.expression.SubqueryExpression
internal class FlowSubquerySupport<T>(
private val cont... | 7 | null | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 1,264 | komapper | Apache License 2.0 |
components-core/src/main/java/com/adyen/checkout/components/core/PaymentComponentData.kt | Adyen | 91,104,663 | false | null | /*
* Copyright (c) 2019 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 23/7/2019.
*/
package com.adyen.checkout.components.core
import com.adyen.checkout.components.core.paymentmethod.PaymentMethodDetails
import com.adyen.chec... | 28 | null | 66 | 96 | 1f000e27e07467f3a30bb3a786a43de62be003b2 | 5,727 | adyen-android | MIT License |
animations/src/main/java/dev/funkymuse/animations/transition/utils/TransitionUtils.kt | FunkyMuse | 168,687,007 | false | null | package com.crazylegend.kotlinextensions.transition.utils
import androidx.recyclerview.widget.RecyclerView
import androidx.transition.ChangeBounds
import androidx.transition.Fade
import androidx.transition.Transition
import androidx.transition.TransitionSet
import com.crazylegend.kotlinextensions.effects.onTransitionE... | 6 | null | 92 | 818 | fe984e6bdeb95fb5819f27dcb12001dcfd911819 | 2,729 | KAHelpers | MIT License |
statelayout/src/main/java/com/drake/statelayout/StateConfig.kt | weileifrank | 380,920,042 | true | {"Kotlin": 21380, "Java": 2309} | /*
* Copyright (C) 2018 Drake, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | null | 0 | 0 | f90973f7f7d66f4607b031b5033853f9817cd873 | 2,692 | StateLayout | Apache License 2.0 |
app/src/main/java/com/awave/wrkout/dashboard/workout/workoutProgress/WorkoutProgressActivity.kt | awave1 | 163,772,467 | false | null | package com.awave.wrkout.dashboard.workout.workoutProgress
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.awave.wrkout.R
import com.awave.wrkout.db.Set
import com.awave.wrkout.db.SetExercise
impo... | 1 | null | 1 | 1 | a8bab438e847b72eb6e3b1479f959a5af0f5cb6a | 2,556 | wrkout | MIT License |
src/main/kotlin/com/haozileung/web/controller/IndexController.kt | haozileung | 33,441,644 | false | null | package com.haozileung.web.controller
import com.haozileung.infra.web.BaseServlet
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import javax.servlet.annotation.WebServlet
import javax.servlet.http.HttpServletRequest
import javax.servlet.http.HttpServletResponse
/**
* Created by haozi on 16-3-20.
*/
@WebSer... | 0 | Kotlin | 1 | 1 | d536077c9b4b3980e434d9b0031e52bcf9592b63 | 613 | test | MIT License |
shared/src/commonMain/kotlin/com/teka/organiks/core/data/remote/EggCollectionService.kt | samAricha | 742,657,034 | false | {"Kotlin": 325336, "Java": 225730, "Shell": 1615, "Assembly": 30} | package com.teka.organiks.core.data.remote
//We can setup in such a way that our Backend API implements this interface
interface EggCollectionService {
// @POST("api/eventVisitors/update")
// suspend fun updateEggCollection(@Body eggCollection: EggCollectionRequest)
//
//
// @GET("collections/egg")
// sus... | 0 | Kotlin | 0 | 15 | 43925a9d661e4a89b78b03fb92acebd20c5f3622 | 537 | Organiks1_KMP_Server | MIT License |
src/main/kotlin/us/frollo/frollosdk/model/coredata/reports/Report.kt | frollous | 261,670,220 | false | {"Kotlin": 3160767} | /*
* Copyright 2019 Frollo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 6 | Kotlin | 1 | 2 | f73bf69d7e8003abf39ee1c18eab9cc44e78404e | 1,505 | frollo-android-sdk | Apache License 2.0 |
biometric/src/main/java/dev/skomlach/biometric/compat/utils/activityView/ActivityViewWatcher.kt | samgithiaka | 344,751,781 | true | {"Kotlin": 794301} | /*
* Copyright (c) 2021 <NAME> aka Salat-Cx65; Original project: https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* 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... | 0 | null | 0 | 0 | ed38ab6076e40089fb4da90e68049c779fa33c15 | 4,833 | AdvancedBiometricPromptCompat | Apache License 2.0 |
Section 10 - Testes unitários/Projects/TesteUnitarioFullCoverage/src/test/kotlin/MainTest.kt | vilaJJ | 861,494,712 | false | {"Kotlin": 70466, "Java": 1627} | import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
class MainTest {
@Test
@DisplayName("Realizar a ação de portaria")
fun testRealizarPortaria() {
Assertions.assertAll(
{ Assertions.assertTrue(realizarPortaria(19u, 2, "XL13... | 0 | Kotlin | 0 | 0 | 9cd55ab7b1de7a4af802a0eb8212da6b70506998 | 2,019 | Course_AndroidKotlinDevelopment_GF | The Unlicense |
src/test/kotlin/org/kotlin/examples/TransactionTest.kt | Iurii-Dziuban | 67,015,911 | false | null | package org.kotlin.examples
import org.junit.Test
import org.kotlin.examples.data.Transaction
import kotlin.test.assertEquals
import kotlin.test.assertFalse
import kotlin.test.assertTrue
/**
* Created by iurii.dziuban on 23.08.2016.
*/
class TransactionTest {
@Test
fun test(){
val transaction = Tran... | 3 | Kotlin | 0 | 0 | 772feec9e81883d0bc5071f55bc218c301f7e718 | 818 | kotlin-examples | MIT License |
app/src/main/java/eu/kanade/domain/chapter/interactor/SetDefaultChapterSettings.kt | scb261 | 381,944,147 | true | {"Kotlin": 4047397} | package eu.kanade.domain.chapter.interactor
import eu.kanade.domain.library.service.LibraryPreferences
import eu.kanade.domain.manga.interactor.GetFavorites
import eu.kanade.domain.manga.interactor.SetMangaChapterFlags
import tachiyomi.core.util.lang.withNonCancellableContext
import tachiyomi.domain.manga.model.Manga
... | 480 | Kotlin | 2361 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 1,354 | TachiyomiSY | Apache License 2.0 |
app/src/main/java/rto/exam/rtoexam/SymbolCatagory.kt | chirag99044 | 702,073,287 | false | {"Kotlin": 54329} | package rto.exam.rtoexam
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.cardview.widget.CardView
class SymbolCatagory : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | a00e248d99d421cef5bc658ee1573f293e0b6dca | 988 | RTOExam | MIT License |
fadecandy-service/src/main/java/fr/bmartel/android/fadecandy/inter/IUsbEventListener.kt | bertrandmartel | 67,318,732 | false | null | /**
* The MIT License (MIT)
*
*
* Copyright (c) 2016-2018 <NAME>
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* t... | 4 | Kotlin | 3 | 24 | 8dd1ac5c332bb3ce89fd91b6f8d9679ef0601ab5 | 1,684 | fadecandy-android | MIT License |
models/src/main/java/com/vimeo/networking2/params/ModifyVideosInAlbumSpecs.kt | vimeo | 41,306,732 | false | null | package com.vimeo.networking2.params
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
/**
* An object that is used to patch video addition and deletion updates to an Album.
*
* @param removeVideoSet The set of videos that should be removed.
* @param addVideoSet The set of videos that should be a... | 21 | null | 52 | 123 | e4f31d4fa144756d576101b3a82120657e9e8a51 | 583 | vimeo-networking-java | MIT License |
light/src/main/kotlin/net/kotlinx/awscdk/component/CdkStaticHost.kt | mypojo | 565,799,715 | false | {"Kotlin": 1234575, "Java": 9531, "Jupyter Notebook": 7080} | package net.kotlinx.awscdk.component
import net.kotlinx.awscdk.util.HostedZoneUtil
import net.kotlinx.awscdk.util.Route53Util
import net.kotlinx.core.Kdsl
import software.amazon.awscdk.RemovalPolicy
import software.amazon.awscdk.Stack
import software.amazon.awscdk.services.certificatemanager.Certificate
/**
* 간단한 스... | 0 | Kotlin | 0 | 1 | b8c4df14baee1f636b2dbf04438943b1ba4b064f | 1,859 | kx_kotlin_support | MIT License |
DSLs/kubernetes/dsl/src/main/kotlin-gen/dev/forkhandles/k8s/controllerPublishSecretRef.kt | fork-handles | 649,794,132 | false | {"Kotlin": 575626, "Shell": 2264, "Just": 1042, "Nix": 740} | // GENERATED
package dev.forkhandles.k8s
import io.fabric8.kubernetes.api.model.CSIPersistentVolumeSource as model_CSIPersistentVolumeSource
import io.fabric8.kubernetes.api.model.SecretReference as model_SecretReference
fun model_CSIPersistentVolumeSource.controllerPublishSecretRef(block: model_SecretReference.() ->... | 0 | Kotlin | 0 | 9 | 68221cee577ea16dc498745606d07b0fb62f5cb7 | 489 | k8s-dsl | MIT License |
src/main/kotlin/com/terraformation/backend/accelerator/api/ParticipantProjectSpeciesController.kt | terraware | 323,722,525 | false | {"Kotlin": 4671567, "HTML": 121869, "Python": 46250, "FreeMarker": 20088, "PLpgSQL": 3305, "Makefile": 746, "Dockerfile": 674} | package com.terraformation.backend.accelerator.api
import com.terraformation.backend.accelerator.ParticipantProjectSpeciesService
import com.terraformation.backend.accelerator.db.ParticipantProjectSpeciesStore
import com.terraformation.backend.accelerator.model.ExistingParticipantProjectSpeciesModel
import com.terrafo... | 8 | Kotlin | 1 | 10 | b851266448d2f7c3d24908660972d6b973e5f5e4 | 9,664 | terraware-server | Apache License 2.0 |
app/src/main/java/com/github/luks91/teambucket/main/FragmentsPagerAdapter.kt | luks91 | 90,465,104 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 54, "XML": 27, "Java": 1} | /**
* Copyright (c) 2017-present, Team Bucket Contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 12 | Kotlin | 0 | 2 | ad53dfbc7a02dde3509e52c812cfb8cef3f4191d | 2,604 | Team-Bucket | Apache License 2.0 |
app/src/main/java/com/programmergabut/solatkuy/worker/FireAlarmManagerWorker.kt | jiwomdf | 247,947,112 | false | null | package com.programmergabut.solatkuy.worker
import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.programmergabut.solatkuy.data.local.dao.MsConfigurationDao
import com.programmergabu... | 0 | Kotlin | 23 | 35 | fc8e239f3cd677470bb5099ab021210db36a18e5 | 1,734 | solat-kuy-android-mvvm-with-coroutine | MIT License |
watchmen-utilities/src/main/kotlin/com/matrdata/watchmen/utils/BooleanGlue.kt | Indexical-Metrics-Measure-Advisory | 478,865,509 | false | {"Kotlin": 160616} | package com.matrdata.watchmen.utils
import kotlin.contracts.ExperimentalContracts
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract
/**
* call given function only when this is true
*/
@OptIn(ExperimentalContracts::class)
inline fun Boolean.doIfTrue(block: Boolean.() -> Unit): Boolean {
contra... | 0 | Kotlin | 0 | 0 | bd8ef342a31c4a2bac57f96f00e9069b386e7c5a | 1,456 | watchmen-kotlin | MIT License |
src/main/kotlin/io/grimlocations/data/repo/action/MetaActions.kt | recursivelftr | 336,897,177 | false | null | package io.grimlocations.data.repo.action
import io.grimlocations.data.domain.*
import io.grimlocations.data.dto.MetaDTO
import io.grimlocations.data.repo.SqliteRepository
import io.grimlocations.ui.viewmodel.state.container.PMDContainer
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.Dispatchers
import o... | 0 | Kotlin | 0 | 6 | ad767a8625dc972b64cdd6eb01981fc4b5d8154f | 1,799 | Grim-Locations | MIT License |
app/src/debug/java/io/github/droidkaigi/confsched2018/di/BuildTypeBasedNetworkModule.kt | DroidKaigi | 115,203,383 | false | null | package io.github.droidkaigi.confsched2018.di
import com.facebook.stetho.okhttp3.StethoInterceptor
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import okhttp3.Interceptor
import okhttp3.logging.HttpLoggingInterceptor
import javax.inject.Singleton
@Module
internal class BuildTypeBase... | 30 | Kotlin | 337 | 1,340 | f19dd63f8b691d44ba7f758d92c2ca615cdad08d | 633 | conference-app-2018 | Apache License 2.0 |
app/src/main/java/de/tum/informatics/www1/artemis/native_app/android/db/AppDatabase.kt | ls1intum | 537,104,541 | false | null | package de.tum.informatics.www1.artemis.native_app.android.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import de.tum.informatics.www1.artemis.native_app.core.datastore.room.RoomTypeConverters
import de.tum.informatics.www1.artemis.native_app.feature.metis.dao.... | 2 | Kotlin | 0 | 2 | eb5bedf163449341918209cf40bfd477bc9fa8a7 | 1,966 | artemis-android | Apache License 2.0 |
app/src/main/java/com/example/kotlin_coroutines_and_flow/usecases/coroutines/usecase7/rx/TimeoutAndRetryRxActivity.kt | bgunay | 786,270,720 | false | {"Kotlin": 323057} | package com.example.kotlin_coroutines_and_flow.usecases.coroutines.usecase7.rx
import android.os.Bundle
import androidx.activity.viewModels
import androidx.lifecycle.Observer
import com.example.kotlin_coroutines_and_flow.base.BaseActivity
import com.example.kotlin_coroutines_and_flow.base.useCase7Description
import co... | 0 | Kotlin | 0 | 0 | 7015291989b8f839abdafc5295178752b4664e66 | 2,602 | kotlin-coroutines-flow-android | Apache License 2.0 |
libraries/tools/kotlin-stdlib-gen/src/generators/GenerateCollections.kt | jsyeo | 42,903,228 | true | {"Java": 15458673, "Kotlin": 9420270, "JavaScript": 176060, "Protocol Buffer": 40373, "HTML": 23495, "Lex": 17327, "ANTLR": 9689, "CSS": 9358, "Groovy": 4934, "Shell": 3931, "IDL": 3255, "Batchfile": 2831} | package generators
import java.io.*
import templates.Family.*
import templates.*
import templates.PrimitiveType.*
fun generateCollectionsAPI(outDir: File) {
elements().writeTo(File(outDir, "_Elements.kt")) { build() }
filtering().writeTo(File(outDir, "_Filtering.kt")) { build() }
ordering().writeTo(File(o... | 0 | Java | 0 | 0 | b4efe33efa4fc1d3f84ffe4ecc82b0a5e3852d0d | 1,407 | kotlin | Apache License 2.0 |
src/main/kotlin/utils/String.kt | ricochhet | 211,928,761 | false | {"Kotlin": 83077, "JavaScript": 2914, "Dockerfile": 203} | package utils
import java.util.*
// this is so we can handle cases like Ahtal-Ka
fun String.capitalizeDashes(locale: Locale? = null): String {
return split("-").joinToString("-") { word ->
word.replaceFirstChar {
if (it.isLowerCase()) {
it.titlecase(locale ?: Locale.getDefault(... | 0 | Kotlin | 1 | 3 | 19b4dfc0433df0367dd502c4b560ef55f1169c4a | 405 | CatBot | MIT License |
app/src/main/java/minesweeper/hulkdx/com/minesweeper/data/Board.kt | hulkdx | 145,207,996 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "Java": 1, "XML": 13, "Kotlin": 13} | package minesweeper.hulkdx.com.minesweeper.data
import android.content.Context
import android.graphics.Bitmap
import android.util.Log
import minesweeper.hulkdx.com.minesweeper.Game
import minesweeper.hulkdx.com.minesweeper.util.BitmapHolder
import minesweeper.hulkdx.com.minesweeper.util.convertDpToPixel
import mineswe... | 0 | Kotlin | 0 | 0 | 4c042966798e53b31e2ba12d4f229f5424b5560a | 6,779 | minesweeper | Apache License 2.0 |
app/src/main/java/be/shiro/meowshot/WebServer.kt | shrhdk | 162,141,233 | false | null | /*
* Copyright (C) 2018 theta4j 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 law or a... | 0 | Kotlin | 3 | 3 | e067dcdc57f80094d0080daa37df3d36c7fbbf79 | 1,857 | meowshot | Apache License 2.0 |
spring-boot/API cliente/src/main/kotlin/sptech/projetojpa1/dto/horario/HorarioFuncionamentoAttRequest.kt | kronos-agendamento | 758,290,087 | false | {"Kotlin": 2102015, "HTML": 149828, "CSS": 88782, "JavaScript": 48173} | package sptech.projetojpa1.dto.horario
import jakarta.validation.constraints.NotBlank
data class HorarioFuncionamentoAttRequest(
@field:NotBlank val horario: String
)
| 0 | Kotlin | 0 | 2 | a7a37e8702bae735ac76cb137e967a1d5ebd766a | 173 | projeto-teste | MIT License |
save-frontend-common/src/main/kotlin/com/saveourtool/save/frontend/common/components/views/organization/CreateOrganizationView.kt | saveourtool | 300,279,336 | false | null | /**
* A view with organization creation details
*/
@file:Suppress("WildcardImport", "FILE_WILDCARD_IMPORTS")
package com.saveourtool.save.frontend.common.components.views.organization
import com.saveourtool.save.entities.*
import com.saveourtool.save.frontend.common.components.basic.AVATAR_ORGANIZATION_PLACEHOLDER... | 202 | null | 3 | 38 | e101105f8e449253d5fbe81ece2668654d08639f | 6,437 | save-cloud | MIT License |
src/test/kotlin/io/github/leandroborgesferreira/dagcommand/RunKtTest.kt | leandroBorgesFerreira | 268,720,218 | false | {"Kotlin": 41837} | package io.github.leandroborgesferreira.dagcommand
import io.github.leandroborgesferreira.dagcommand.enums.OutputType
import io.github.leandroborgesferreira.dagcommand.utils.testProject
import org.junit.Test
import java.io.File
import kotlin.test.assertEquals
private const val TEST_BUILD_PATH = "./test-results"
clas... | 6 | Kotlin | 11 | 39 | ef7c97e4b2691c9d16953b35dfdd0bdb8691d841 | 1,505 | dag-command | Apache License 2.0 |
sample/src/test/java/com/sanogueralorenzo/sample/data/repository/UserRepositoryImplTest.kt | vmadalin | 202,329,518 | false | null | @file:Suppress("IllegalIdentifier")
package com.sanogueralorenzo.sample.data.repository
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import com.nhaarman.mockitokotlin2.whenever
import com.sanogueralorenzo.sample.data.datasource.UserCacheDataSource
import com.sanogueralorenzo.sampl... | 0 | null | 1 | 1 | 5a4496acdd3f706b62e92afb8e88eb45d548ca06 | 5,587 | Android-Kotlin-Clean-Architecture | Apache License 2.0 |
LudoCompose/app/src/main/java/hu/bme/aut/android/ludocompose/domain/model/Field.kt | Kis-Benjamin | 693,261,151 | false | {"Kotlin": 123208, "Java": 182} | package hu.bme.aut.android.ludocompose.domain.model
data class Field(
var playerIndex: Int? = null,
var isPointer: Boolean = false,
)
fun Field.set(playerIndex: Int?, isPointer: Boolean) {
this.playerIndex = playerIndex
this.isPointer = isPointer
}
| 0 | Kotlin | 0 | 0 | 8593b3544705623dbbb363f36e9ccb03b5c7d5df | 267 | Ludo | Apache License 2.0 |
plugins/python/src/main/kotlin/io/paddle/plugin/python/dependencies/packages/PyPackageVersionSpecifier.kt | JetBrains-Research | 377,213,824 | false | null | package io.paddle.plugin.python.dependencies.packages
enum class PyPackageVersionRelation(val operator: String) {
LTE("<="),
GTE(">="),
STR_EQ("==="),
LT("<"),
GT(">"),
EQ("=="),
NE("!="),
COMPATIBLE("~=")
}
typealias PyPackageVersion = String
class PyPackageVersionSpecifier private c... | 13 | Kotlin | 6 | 20 | 42a26a7f5815961d564f71e3606252fab7a87f82 | 1,422 | paddle | MIT License |
basick/src/main/java/com/mozhimen/basick/postk/encrypt/helpers/EncryptDESProvider.kt | mozhimen | 353,952,154 | false | null | package com.mozhimen.basick.postk.encrypt.helpers
import android.util.Base64
import androidx.annotation.RequiresApi
import com.mozhimen.basick.elemk.cons.CAlgorithm
import com.mozhimen.basick.elemk.cons.CVersCode
import com.mozhimen.basick.postk.encrypt.commons.IEncrypt
import com.mozhimen.basick.postk.encrypt.mos.MEn... | 0 | null | 6 | 112 | efbc55d940b169511106a9b813513fc3f86df1fb | 2,958 | SwiftKit | Apache License 2.0 |
app/src/main/java/com/leony/app/ricknmorty/view/SplashActivity.kt | veronicalw | 512,367,388 | false | null | package com.leony.app.ricknmorty.view
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.leony.app.rickn... | 0 | Kotlin | 0 | 0 | e58ca2d3987080136509b20be588333100fb17d7 | 1,525 | RicknMorty | Apache License 2.0 |
app/src/main/java/com/example/sunkai/heritage/entity/SpecialTopicViewModel.kt | sunkaiiii | 92,040,914 | false | {"Kotlin": 292444} | package com.example.sunkai.heritage.entity
import com.example.sunkai.heritage.entity.response.NewsListResponse
import com.example.sunkai.heritage.logic.Repository
import retrofit2.Call
import kotlin.reflect.KFunction1
class SpecialTopicViewModel(repository: Repository,listCaller: KFunction1<Int, Call<List<NewsListRes... | 0 | Kotlin | 0 | 6 | bda95ace70e3dc8fcc14a98431401374aec2d4ef | 376 | heritage-online-android | Apache License 2.0 |
app/src/main/java/com/metropolia/eatthefrog/database/Database.kt | metropolia-mobile-project | 558,353,904 | false | {"Kotlin": 267772} | package com.metropolia.eatthefrog.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
/**
* Singleton class used for creating and accessing the Room DB.
* @property Task: Task table, contains all Task objects.
* @property Subtask: Subtas... | 4 | Kotlin | 2 | 1 | 2ae0deeb9527471bd63871a5c166b155b5147f38 | 1,104 | EatTheFrog | MIT License |
api/src/main/kotlin/com/possible_triangle/skygrid/platform/Services.kt | PssbleTrngle | 174,212,271 | false | null | package com.possible_triangle.skygrid.platform
import com.possible_triangle.skygrid.platform.services.IConfigs
import com.possible_triangle.skygrid.platform.services.IEvents
import com.possible_triangle.skygrid.platform.services.IPlatformHelper
import java.util.*
object Services {
val PLATFORM = load(IPlatformHe... | 2 | null | 1 | 12 | 7ac419cae6db2f54e000193338eaa976e4cf68d1 | 642 | Skygrid | Creative Commons Zero v1.0 Universal |
sqldelight-gradle-plugin/src/test/kotlin/com/squareup/sqldelight/MultiModuleTests.kt | sanghoon9173 | 271,522,043 | true | {"Kotlin": 731963, "Java": 9422, "Shell": 2066, "HTML": 57} | package com.squareup.sqldelight
import com.google.common.truth.Truth.assertThat
import com.squareup.sqldelight.core.SqlDelightCompilationUnit
import com.squareup.sqldelight.core.SqlDelightPropertiesFile
import com.squareup.sqldelight.core.SqlDelightSourceFolder
import org.gradle.testkit.runner.GradleRunner
import org.... | 0 | Kotlin | 0 | 0 | fed5c9c23ed927bfdfe2f0e8d06a783388df2384 | 9,659 | sqldelight | Apache License 2.0 |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/data/repository/SessionRepository.kt | novasamatech | 415,834,480 | false | {"Kotlin": 8137060, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_staking_impl.data.repository
import io.novafoundation.nova.feature_staking_impl.data.network.blockhain.api.currentIndex
import io.novafoundation.nova.feature_staking_impl.data.network.blockhain.api.session
import io.novafoundation.nova.runtime.multiNetwork.chain.model.ChainId
imp... | 12 | Kotlin | 6 | 9 | 618357859a4b7af95391fc0991339b78aff1be82 | 967 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/com/auliaisb/weatherforecast/ui/MainFragment.kt | auliaisb | 201,660,219 | false | null | package com.auliaisb.weatherforecast.ui
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import ... | 0 | Kotlin | 0 | 0 | f8302f5393f2e24b83b4ded575c4f025669cb69f | 2,198 | WeatherForecast | Apache License 2.0 |
app/src/main/java/uk/co/alt236/bluetoothconnectionlog/receiver/BluetoothConnectionReceiver.kt | alt236 | 196,390,058 | false | null | package uk.co.alt236.bluetoothconnectionlog.receiver
import android.Manifest
import android.annotation.SuppressLint
import android.bluetooth.BluetoothDevice
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.util... | 0 | Kotlin | 2 | 1 | 51c7f8cbd70165ba089d469a0901fe472d71f3d4 | 5,063 | bluetooth-connection-log | Apache License 2.0 |
api/src/main/kotlin/dev/schlaubi/mikbot/plugin/api/util/ErrorUtil.kt | DRSchlaubi | 409,332,765 | false | {"Kotlin": 328660, "Java": 5426, "Dockerfile": 201, "Shell": 197, "PowerShell": 96} | package dev.schlaubi.mikbot.plugin.api.util
import com.kotlindiscord.kord.extensions.DiscordRelayedException
/**
* Throws a [DiscordRelayedException] with [message] and therefore sends it to the user.
*/
public fun discordError(message: String): Nothing = throw DiscordRelayedException(message)
| 16 | Kotlin | 12 | 36 | 5b57b3e6e8a06324da478231f6bd7035a0c1feb2 | 299 | mikbot | MIT License |
tachikoma-it/src/test/kotlin/com/sourceforgery/tachikoma/auth/UserServiceTest.kt | SourceForgery | 112,076,342 | false | null | package com.sourceforgery.tachikoma.auth
import com.sourceforgery.tachikoma.common.AuthenticationRole
import com.sourceforgery.tachikoma.common.PasswordStorage
import com.sourceforgery.tachikoma.database.dao.AuthenticationDAO
import com.sourceforgery.tachikoma.database.objects.AccountDBO
import com.sourceforgery.tachi... | 9 | null | 3 | 5 | 12d8d0e0ccafaa8506b98d6269cae4f1bb228bf4 | 4,781 | tachikoma | Apache License 2.0 |
acornui-utils/src/commonMain/kotlin/com/acornui/string/character.kt | konsoletyper | 190,776,981 | true | {"Kotlin": 2963922, "JavaScript": 15366, "HTML": 5956, "Java": 4507} | /*
* Copyright 2015 <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 | 3 | 0 | a84b559fe1d1cad01eb9223ad9af73b4d5fb5bc8 | 1,271 | acornui | Apache License 2.0 |
composables/src/main/java/com/google/android/horologist/composables/TimePicker.kt | google | 451,563,714 | false | null | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 66 | Kotlin | 45 | 342 | d24a514f92b658f99259004e46524de6b80c2795 | 33,360 | horologist | Apache License 2.0 |
src/main/kotlin/com/nmincuzzi/ipweather/application/Weather.kt | NicoMincuzzi | 266,125,569 | false | null | package com.nmincuzzi.ipweather.application
import com.nmincuzzi.ipweather.infrastructure.WeatherRepresentation
interface Weather {
fun retrieveBy(city: String): WeatherRepresentation
} | 0 | Kotlin | 0 | 1 | e75c1365931f5dd94620951361ea9fe944543139 | 191 | ipweather | Apache License 2.0 |
eclipse-pde-partial-idea/src/main/kotlin/cn/varsa/idea/pde/partial/plugin/i18n/EclipsePDEPartialBundles.kt | JaneWardSandy | 361,593,873 | false | null | package cn.varsa.idea.pde.partial.plugin.i18n
import com.intellij.*
import org.jetbrains.annotations.*
private const val bundlePath = "messages.EclipsePDEPartialBundles_locale"
object EclipsePDEPartialBundles : DynamicBundle(bundlePath) {
@Nls fun message(@PropertyKey(resourceBundle = bundlePath) key: String, va... | 3 | null | 6 | 9 | 5c8192b92d5b0d3eba9e7a6218d180a0996aea49 | 383 | eclipse-pde-partial-idea | Apache License 2.0 |
codelabs/events/app/src/main/java/com/facebook/litho/codelab/events/ButtonSpec.kt | facebook | 80,179,724 | false | null | /*
* Copyright 2019-present Facebook, 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 a... | 88 | null | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 1,392 | litho | Apache License 2.0 |
Kotlin com Android/LivroKotlinComAndroidExemplos/src/main/kotlin/For.kt | kbmbarreto | 471,227,065 | false | null | fun main(args: Array<String>) {
val lista1 = listOf(1,2,3,4)
for(i in lista1) {
println("Item: $i")
}
println("---------------------------------------")
val lista2 = listOf(1,2,3,4)
for((indice ,valor) in lista2.withIndex()){
println("índice: $indice valor: $valor")
}
... | 0 | Kotlin | 0 | 0 | 4800e170fc0a1461b356f521e8d500cb75a706ee | 457 | EstudosKotlinAndroid | MIT License |
features/rum/src/iosMain/kotlin/com/datadog/kmp/rum/tracking/UIKitRUMActionsPredicate.kt | DataDog | 788,897,440 | false | {"Kotlin": 641494, "Shell": 5411, "Objective-C": 3510} | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.kmp.rum.tracking
import platform.UIKit.UIView
/... | 1 | Kotlin | 0 | 5 | 4d60ee727cf0bccfde69ebf23ab7ed9fcb0c9b0f | 739 | dd-sdk-kotlin-multiplatform | Apache License 2.0 |
app/src/main/java/me/fabianfg/filesender/frontend/ui/appsend/AppSendActivity.kt | FabianFG | 237,303,112 | false | null | package me.fabianfg.filesender.frontend.ui.appsend
import android.content.pm.ApplicationInfo
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_app_send.*
import me.fabianfg.filesender.R
import me.fabianfg.filesender.config.update
class AppSendActiv... | 0 | Kotlin | 0 | 0 | a83cc1b6664a474311be2a80e9a07a762b5b5f12 | 1,390 | FileSender | Apache License 2.0 |
openISBTFrontend/src/main/kotlin/dataobjects/ParameterObject.kt | boxrhcp | 268,053,815 | true | {"Kotlin": 221541, "HTML": 13666, "CSS": 8632, "Shell": 3548, "JavaScript": 1849} | package dataobjects
import kotlin.js.Json
data class ParameterObject ( var name:String,
var schema: Json){
} | 0 | null | 0 | 0 | 9bbe85b49b3dca705b262a06c50a53cb330127f6 | 139 | openISBT | MIT License |
feature-wallet-impl/src/main/java/jp/co/soramitsu/feature_wallet_impl/data/network/blockchain/struct/extrinsic/SubmittableExtrinsic.kt | metrocoindev | 372,627,505 | true | {"Kotlin": 1715024} | package jp.co.soramitsu.feature_wallet_impl.data.network.blockchain.struct.extrinsic
import io.emeraldpay.polkaj.scale.ScaleCodecReader
import io.emeraldpay.polkaj.scale.ScaleCodecWriter
import jp.co.soramitsu.fearless_utils.scale.Schema
import jp.co.soramitsu.fearless_utils.scale.compactInt
import jp.co.soramitsu.fea... | 0 | null | 0 | 0 | f63b80c711d17b9f07e8632260b69029dea6e517 | 2,698 | fearless-Android | Apache License 2.0 |
app/src/main/java/com/example/animatedsplashscreen/navigation/Screen.kt | ridvanozcan | 773,275,090 | false | {"Kotlin": 8436} | package com.example.animatedsplashscreen.navigation
sealed class Screen(val route: String) {
object Splash : Screen("splash_screen")
object Home : Screen("home_screen")
} | 0 | Kotlin | 0 | 0 | 9363d3f76645531278b52eece233967b4e0222ad | 180 | AnimatedSplashScreen | Apache License 2.0 |
app/src/main/java/ua/eshcherbinock/reachabilitytest/module/sample/SampleModuleContracts.kt | Eugene-Shcherbinock | 154,482,454 | false | null | package ua.eshcherbinock.reachabilitytest.module.sample
import ua.eshcherbinock.reachabilitytest.module.base.BaseContracts
object SampleModuleContracts {
interface SampleViewType: BaseContracts.BaseViewType {
fun setLoadingIndicatorState(show: Boolean)
fun setReachabilityIndicatorState(show: Bo... | 0 | Kotlin | 1 | 2 | 870549181104e66535937e9098bb9b537341add0 | 499 | Reachability | Apache License 2.0 |
lint-rules-android-lint/src/main/java/com/vanniktech/lintrules/android/XmlSpacingDetector.kt | MaTriXy | 116,227,290 | true | {"Kotlin": 177642, "Java": 43098, "Shell": 1027} | package com.vanniktech.lintrules.android
import com.android.tools.lint.detector.api.Category
import com.android.tools.lint.detector.api.Implementation
import com.android.tools.lint.detector.api.Issue
import com.android.tools.lint.detector.api.Location
import com.android.tools.lint.detector.api.ResourceXmlDetector
impo... | 0 | Kotlin | 0 | 0 | 06cf052b352bfcba7010b2f0e285f0ac327c332e | 1,198 | lint-rules | Apache License 2.0 |
src/main/kotlin/io/github/ivsokol/poe/catalog/CatalogElementHandler.kt | ivsokol | 850,045,264 | false | {"Kotlin": 1891986} | package io.github.ivsokol.poe.catalog
import io.github.ivsokol.poe.Context
import io.github.ivsokol.poe.IRef
import io.github.ivsokol.poe.PolicyEntityEnum
import io.github.ivsokol.poe.PolicyEntityRefEnum
import org.slf4j.Logger
import org.slf4j.Marker
/**
* Retrieves a reference value from the policy catalog based o... | 0 | Kotlin | 0 | 1 | e1513c000ced3eafefad6778fc6085df8c4b17ee | 2,493 | policy-engine | Apache License 2.0 |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/MyApplication.kt | Abhimanyu14 | 429,663,688 | false | null | package com.makeappssimple.abhimanyu.financemanager.android
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import com.makeappssimple.abhimanyu.financemanager.android.core.notificationkit.NotificationConstants
import dagger.hil... | 4 | null | 0 | 2 | 0d668aa70fa76e7c8e70c2e077b6dd363c01d2e4 | 949 | finance-manager | Apache License 2.0 |
laws/src/commonMain/kotlin/com/github/fsbarata/functional/ContextTest.kt | fsbarata | 277,280,202 | false | {"Kotlin": 309214} | package com.github.fsbarata.functional
import kotlin.test.asserter
interface ContextTest<F> {
fun <A> Context<F, A>.equalTo(other: Context<F, A>): Boolean = this == other
fun <A> Context<F, A>.describe() = toString()
fun <A> assertEqualF(r1: Context<F, A>, r2: Context<F, A>) {
asserter.assertTrue({ "${r1.descri... | 0 | Kotlin | 2 | 0 | 9f3601b8c0fc26caf1b9303030313983a52cf2d9 | 386 | kotlin-functional | Apache License 2.0 |
src/main/kotlin/com/email/microservice/dto/EmailDTO.kt | pgkavogiannis | 487,733,725 | false | {"Kotlin": 29455, "Dockerfile": 323} | package com.email.microservice.dto
import javax.validation.constraints.NotBlank
import javax.validation.constraints.NotEmpty
data class EmailDTO(
@get:NotBlank
val sender: String,
@get:NotEmpty
val recipients: Set<String>,
val mailSubject: String?,
val mailBody: String?
) | 0 | Kotlin | 0 | 0 | fea6823bf9cc3aa65c20d155e6a2b00567d06757 | 301 | RESTful-Email-Microservice | MIT License |
ZhiHu/src/main/java/com/xfhy/zhihu/data/bean/DailyExtraInfoBean.kt | xfhy | 134,017,261 | false | null | package com.xfhy.zhihu.data.bean
import com.google.gson.annotations.SerializedName
/**
* Created by xfhy on 2018/3/8 22:39
* Description :日报额外信息
*/
data class DailyExtraInfoBean(
/**
* 长评论总数
*/
@SerializedName("long_comments") var longComments: Int? = 0,
/**
* 点赞总数
... | 1 | Kotlin | 5 | 41 | 2f5410d10174e460331807179000fcea9f80acf0 | 587 | LifeHelper | Apache License 2.0 |
app/src/main/java/ceui/lisa/adapters/FeatureAdapter.kt | CeuiLiSA | 178,835,117 | false | {"Java": 1983271, "Kotlin": 618050, "CSS": 1258} | package ceui.lisa.adapters
import android.content.Context
import android.widget.ImageView
import ceui.lisa.R
import ceui.lisa.databinding.RecyFeatureBinding
import ceui.lisa.feature.FeatureEntity
import ceui.lisa.models.IllustsBean
import ceui.lisa.models.MangaSeriesItem
import ceui.lisa.utils.GlideUtil
import com.bum... | 99 | Java | 188 | 4,490 | ee2afee674fb4c8a2871970427cf81bb8362292f | 2,554 | Pixiv-Shaft | MIT License |
clients/kotlin-vertx/generated/src/main/kotlin/org/openapitools/server/api/verticle/LeadAdsApiVerticle.kt | oapicf | 489,369,143 | false | {"Markdown": 13009, "YAML": 64, "Text": 6, "Ignore List": 43, "JSON": 688, "Makefile": 2, "JavaScript": 2261, "F#": 1305, "XML": 1120, "Shell": 44, "Batchfile": 10, "Scala": 4677, "INI": 23, "Dockerfile": 14, "Maven POM": 22, "Java": 13384, "Emacs Lisp": 1, "Haskell": 75, "Swift": 551, "Ruby": 1149, "Cabal Config": 2, ... | package org.openapitools.server.api.verticle
import io.vertx.core.Vertx
import io.vertx.core.AbstractVerticle
import io.vertx.serviceproxy.ServiceBinder
fun main(){
Vertx.vertx().deployVerticle(LeadAdsApiVerticle())
}
class LeadAdsApiVerticle:AbstractVerticle() {
override fun start() {
val instance =... | 0 | Java | 0 | 2 | dcd328f1e62119774fd8ddbb6e4bad6d7878e898 | 611 | pinterest-sdk | MIT License |
buildSrc/src/main/kotlin/PlatformConfig.kt | Incendo | 325,284,618 | false | null | import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.api.plugins.JavaPluginConvention
import org.gradle.api.tasks.bundling.Jar
import org.gradle.api.tasks.compile.JavaCompile
import org.gradle.api.tasks.javadoc.Javadoc
import... | 1 | null | 1 | 5 | dd1225ea5d9860d0f1043d8831725774e45824b4 | 5,346 | hastig | MIT License |
compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/misc.kt | damenez | 176,209,431 | true | {"Markdown": 56, "Gradle": 497, "Gradle Kotlin DSL": 215, "Java Properties": 12, "Shell": 11, "Ignore List": 10, "Batchfile": 9, "Git Attributes": 1, "Protocol Buffer": 12, "Java": 5238, "Kotlin": 43905, "Proguard": 7, "XML": 1594, "Text": 9172, "JavaScript": 239, "JAR Manifest": 2, "Roff": 209, "Roff Manpage": 34, "IN... | /*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.ir.backend.js.utils
import org.jetbrains.kotlin.ir.IrElement
import org.jetbrains.kotlin.ir.declarations.IrFunction
import org... | 0 | Kotlin | 0 | 2 | 9a2178d96bd736c67ba914b0f595e42d1bba374d | 736 | kotlin | Apache License 2.0 |
http4k-core/src/test/kotlin/org/http4k/util/RetryRule.kt | spruceholdings | 154,645,976 | true | {"Kotlin": 1048185, "JavaScript": 133282, "Java": 32317, "Shell": 8657, "HTML": 2882, "CSS": 792} | package org.http4k.util
//class RetryRule private constructor(private val attempts: Int = 5) : TestRule {
//
// override fun apply(base: Statement, description: Description): Statement = statement(base, description)
//
// private fun statement(base: Statement, description: Description): Statement = object : Sta... | 1 | Kotlin | 1 | 1 | e58450e03bf3676bf7277c27be7f605116c3ef4f | 1,091 | http4k | Apache License 2.0 |
compiler/testData/codegen/box/casts/asSafe.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
fun foo(x: Any) = x as? Runnable
fun box(): String {
val r = object : Runnable {
override fun run() {}
}
return if (foo(r) === r) "OK" else "Fail"
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 205 | kotlin | Apache License 2.0 |
platform/platform-api/src/com/intellij/openapi/observable/properties/BooleanProperty.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.observable.properties
import com.intellij.openapi.Disposable
import org.jetbrains.annotations.ApiStatus
/**
* Boolean property provides api for mutable property.
* Yo... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,513 | intellij-community | Apache License 2.0 |
src/main/java/dev/sora/relay/game/utils/movement/MovementUtils.kt | OIMeowIO | 592,181,303 | true | {"Batchfile": 1, "Shell": 1, "Markdown": 2, "INI": 2, "Kotlin": 100, "Java": 71} | package dev.sora.relay.game.utils.movement
import com.nukkitx.math.vector.Vector3f
import dev.sora.relay.cheat.BasicThing
import dev.sora.relay.game.GameSession
import dev.sora.relay.game.utils.math.MathHelper
import kotlin.math.cos
import kotlin.math.sin
object MovementUtils {
@JvmStatic
fun calculateLookAtM... | 0 | Java | 0 | 1 | 1b302e622be69ea7f7a1e5ee4bae82f34c8c63b9 | 1,562 | ProtoHax | MIT License |
ontrack-service/src/main/java/net/nemerosa/ontrack/service/job/JobConfig.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.service.job
import io.micrometer.core.instrument.MeterRegistry
import net.nemerosa.ontrack.common.Time
import net.nemerosa.ontrack.job.JobListener
import net.nemerosa.ontrack.job.JobScheduler
import net.nemerosa.ontrack.job.support.DefaultJobScheduler
import net.nemerosa.ontrack.job.suppor... | 57 | Kotlin | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 3,192 | ontrack | MIT License |
execution/common/testSrc/com/android/tools/idea/execution/common/processhandler/SingleDeviceAndroidProcessMonitorTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 10,127 | 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.