path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/io/github/droidkaigi/confsched2018/util/ext/TextViewExt.kt | DroidKaigi | 115,203,383 | false | null | package io.github.droidkaigi.confsched2018.util.ext
import android.widget.TextView
// Prevent requestLayout()
fun TextView.setTextIfChanged(newText: String) {
if (newText != text) {
text = newText
}
}
val TextView.selectedText: CharSequence
get() = text.subSequence(selectionStart, selectionEnd)
| 30 | Kotlin | 337 | 1,340 | f19dd63f8b691d44ba7f758d92c2ca615cdad08d | 319 | conference-app-2018 | Apache License 2.0 |
app/src/main/java/dev/falhad/movieshowcase/model/db/dao/SettingDao.kt | falhad | 509,160,308 | false | null | package dev.falhad.movieshowcase.model.db.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy.REPLACE
import androidx.room.Query
import dev.falhad.movieshowcase.model.db.entity.SettingEntity
@Dao
interface Sett... | 0 | Kotlin | 0 | 0 | 8529f0b1c4eb9e19a13521ef030882c991a9e270 | 636 | mvp-movie | MIT License |
adapty/src/main/java/com/adapty/internal/data/cloud/AdaptyResponseTypeAdapterFactory.kt | adaptyteam | 238,537,754 | false | {"Kotlin": 408771} | package com.adapty.internal.data.cloud
import androidx.annotation.RestrictTo
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.TypeAdapter
import com.google.gson.TypeAdapterFactory
import com.google.gson.reflect.TypeToken
import com.google.gson.stream.JsonReader
import com.google.gs... | 2 | Kotlin | 14 | 80 | 49bc4d25fffc19183221652d24df0996b4178b4e | 1,876 | AdaptySDK-Android | MIT License |
app/src/main/java/com/krygodev/coctailsrecipesapp/ui/fragments/FavouriteCoctailsFragment.kt | krygo-dev | 360,652,871 | false | null | package com.krygodev.coctailsrecipesapp.ui.fragments
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.GridLayoutManager
import com.google.android.mate... | 0 | Kotlin | 0 | 0 | fee3d11246e2bf8ca54a366a2cecb58855bcb3c3 | 1,959 | CocktailsRecipesApp | MIT License |
domain/src/test/java/com/bolaware/movieproapp/SearchMovieUseCaseTest.kt | bolaware | 222,885,334 | false | null | package com.bolaware.movieproapp
import com.bolaware.movieproapp.domain.executor.PostExecutionThread
import com.bolaware.movieproapp.domain.interactor.search.SearchMoviesUseCase
import com.bolaware.movieproapp.domain.model.MovieSummary
import com.bolaware.movieproapp.domain.repository.IMoviesProRepository
import com.n... | 1 | null | 1 | 2 | 1fb9932eeceab7e4b4e4dfb39bc3fe8df661bff8 | 3,556 | MovieProApp | Apache License 2.0 |
plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/MacOsUnityDetector.kt | JetBrains | 159,985,216 | false | null | /*
* Copyright 2000-2023 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 41 | Kotlin | 38 | 68 | 0fc7156aaf4e9f6b2e40509ded24688123ae804b | 2,726 | teamcity-unity-plugin | Apache License 2.0 |
app/src/main/java/com/inlacou/commons/ui/activities/BaseActCtrl.kt | inlacou | 400,138,100 | false | {"Kotlin": 513611, "Shell": 139} | package com.inlacou.commons.ui.activities
import android.content.Intent
import io.reactivex.rxjava3.disposables.Disposable
/**
* Created by inlacou on 19/03/18.
*/
abstract class BaseActCtrl(val _view: BaseAct, val _model: Any) {
val disposables: MutableList<Disposable?>
get() = _view.disposables
open fun onCre... | 0 | Kotlin | 0 | 0 | aa90dfc787a4fae77765d333d327929750da7d18 | 638 | InkCommons | MIT License |
Utils.kt | GrgnPl | 527,281,069 | false | null | package com.example.photos_app
import android.content.ContentResolver
import android.net.Uri
import android.provider.OpenableColumns
import android.view.View
import com.google.android.material.snackbar.Snackbar
fun View.snackbar(message: String) {
Snackbar.make(
this,
message,
Snackbar.LEN... | 0 | null | 0 | 1 | 5180935056e7a0fbf9141663a917763085841de6 | 837 | Retrofit | MIT License |
sampleapplication/src/main/java/com/evervault/sampleapplication/navigation/Route.kt | evervault | 650,073,299 | false | {"Kotlin": 331362, "Java": 1240, "Shell": 273} | package com.evervault.sampleapplication.navigation
sealed class Route(val route: String) {
object Home : Route("home")
object BasicEncryption : Route("BasicEncryption")
object FileEncryption : Route("FileEncryption")
object CreditCardInput : Route("CreditCardInput")
object CreditCardInputWithP... | 3 | Kotlin | 1 | 4 | fd158425048b638a3b4ca9948da31fed5c556468 | 1,207 | evervault-android | MIT License |
android/libraries/libHorses/src/main/java/nl/entreco/giddyapp/libhorses/cycle/InstantHorseCycler.kt | Entreco | 164,009,012 | false | null | package nl.entreco.giddyapp.libhorses.cycle
import nl.entreco.giddyapp.libhorses.Horse
import kotlin.math.min
internal class InstantHorseCycler : HorseCycler {
companion object {
private const val MAX_HORSES = 5
}
override fun initialHorses(collection: List<Horse>): List<Horse> {
return ... | 23 | null | 1 | 1 | 59960640ecd182c502df2d52fa17ed619d415c91 | 764 | GiddyApp | Apache License 2.0 |
services/s3/common/test/aws/sdk/kotlin/services/s3/model/TestS3Size.kt | awslabs | 121,333,316 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package aws.sdk.kotlin.services.s3.model
import kotlin.test.Test
import kotlin.test.assertIs
class TestS3Size {
@Test
fun testSizeIsLong() {
// verify no regressions in `Size` shape re... | 79 | Kotlin | 7 | 98 | 05fb6d3631b02e87034f60e57051c25b7b70351d | 615 | aws-sdk-kotlin | Apache License 2.0 |
app/src/main/java/com/dede/nativetools/util/ProcessKt.kt | hushenghao | 242,718,110 | false | null | @file:JvmName("ProcessKt")
package com.dede.nativetools.util
import android.app.ActivityManager
import android.app.Application
import android.content.ComponentCallbacks2
import android.content.Context
import android.os.Build
import android.os.Process
import com.google.firebase.perf.metrics.AddTrace
import kotlin.cont... | 1 | null | 5 | 5 | f7550e37d20efe555914c0c2428a048b131a89aa | 2,748 | NativeTools | Apache License 2.0 |
spigot/src/main/kotlin/io/pixeloutlaw/minecraft/spigot/config/FileAwareYamlConfiguration.kt | MythicDrops | 10,021,467 | false | null | /*
* This file is part of MythicDrops, licensed under the MIT License.
*
* Copyright (C) 2021 <NAME>
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including wi... | 64 | null | 43 | 40 | e08d2ad3befda5e18bd763b6f30f00fa4ff44c35 | 3,590 | MythicDrops | MIT License |
app/src/main/java/ir/composenews/ui/MainActivity.kt | Kaaveh | 576,928,671 | false | null | package ir.composenews.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.Windo... | 7 | null | 52 | 315 | ce21f7cdea8b8ae5babc383571c60c5be79b0cdb | 4,681 | ComposeNews | Apache License 2.0 |
the.orm.itest/src/test/kotlin/io/the/orm/test/functional/exp/SchemaLoadingTest.kt | christophsturm | 260,202,802 | false | {"Kotlin": 176994} | package io.the.orm.test.functional.exp
import failgood.Ignored
import failgood.Test
import io.the.orm.dbio.DBResult
import io.the.orm.mapper.SimpleResultMapper
import io.the.orm.test.DBS
import io.the.orm.test.describeOnAllDbs
import io.the.orm.test.functional.USERS_SCHEMA
import kotlinx.coroutines.flow.Flow
import ko... | 14 | Kotlin | 0 | 0 | 2625d48f2b4eeb862863262ac7bc3aa7d3c27256 | 3,402 | the.orm | MIT License |
example-spark-runner/src/main/kotlin/io/github/arthurpessoa/schema/Movie.kt | arthurpessoa | 708,798,233 | false | {"Kotlin": 30425} | package io.github.arthurpessoa.schema
import org.apache.beam.sdk.schemas.JavaBeanSchema
import org.apache.beam.sdk.schemas.annotations.DefaultSchema
import java.io.Serializable
@DefaultSchema(JavaBeanSchema::class)
data class Movie(
var id: Long? = null,
var name: String? = null
) : Serializable | 0 | Kotlin | 0 | 3 | 117f6e7b93e1af4c406add3f4b015c8eabaf6c6f | 306 | kotlin-beam-starter | MIT License |
app/src/main/java/io/jachoteam/kaska/screens/login/LoginActivity.kt | tynarbekov | 159,201,128 | false | {"Kotlin": 129794, "Java": 63242} | package io.jachoteam.kaska.screens.login
import android.arch.lifecycle.Observer
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import io.jachoteam.kaska.screens.common.BaseActivity
import io.jachoteam.kaska.screens.common.coordinateBtnAndInputs
import io.jachote... | 0 | Kotlin | 0 | 0 | 1aa2857144eac0a2a0a3e9aa919e8dc76981fc48 | 2,565 | Kaska | MIT License |
androidApp/src/main/java/app/opass/ccip/android/utils/CommonUtil.kt | CCIP-App | 844,022,286 | false | {"Kotlin": 115735, "Swift": 21755} | package app.opass.ccip.android.utils
import android.app.Activity
import android.content.Context
import android.view.WindowManager
object CommonUtil {
fun setBrightness(context: Context, isFull: Boolean) {
val activity = context as? Activity ?: return
val layoutParams: WindowManager.LayoutParams =... | 0 | Kotlin | 0 | 2 | 483083cc6ab608bce7b6cd7be3d9d479fe14d8a3 | 532 | CCIP-KMP | Apache License 2.0 |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/domain/validations/unbond/ControllerCanPayFeeValidation.kt | soramitsu | 278,060,397 | false | {"Kotlin": 5738459, "Java": 18796} | package jp.co.soramitsu.staking.impl.domain.validations.unbond
import jp.co.soramitsu.common.validation.DefaultFailureLevel
import jp.co.soramitsu.common.validation.Validation
import jp.co.soramitsu.common.validation.ValidationStatus
import jp.co.soramitsu.wallet.impl.domain.validation.AmountProducer
class Controller... | 15 | Kotlin | 30 | 89 | 1de6dfa7c77d4960eca2d215df2bdcf71a2ef5f2 | 836 | fearless-Android | Apache License 2.0 |
app/src/main/java/ru/ekbtrees/treemap/domain/entity/Entity.kt | dienyaaa | 355,126,052 | true | {"Kotlin": 8056} | package ru.ekbtrees.treemap
data class ClusterTreesEntity(val count: Int, val coord: LatLonEntity)
data class TreeEntity(val id: String, val diameter: Float, val species: SpeciesEntity, val coord: LatLonEntity)
data class SpeciesEntity(val id: String, val color: String, val name: String)
data class LatLonEntity(val... | 0 | Kotlin | 0 | 0 | c6097eea7daf2e51906453c39fdca25029c98b97 | 350 | ekbtrees-android | MIT License |
apps/teacher/src/androidTest/java/com/instructure/teacher/ui/e2e/DiscussionsE2ETest.kt | instructure | 179,290,947 | false | {"Kotlin": 16415961, "Dart": 4454406, "HTML": 185120, "Ruby": 35686, "Java": 24752, "Shell": 19157, "Groovy": 11717, "JavaScript": 9505, "Objective-C": 7431, "Python": 2438, "CSS": 1356, "Swift": 807, "Dockerfile": 112} | /*
* Copyright (C) 2021 - present Instructure, 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 requ... | 7 | Kotlin | 102 | 127 | ca6e2aeaeedb851003af5497e64c22e02dbf0db8 | 11,243 | canvas-android | Apache License 2.0 |
app/src/androidTest/java/eu/caraus/appsflastfm/data/local/LastFmDbTest.kt | alexandrucaraus | 144,028,779 | false | {"Kotlin": 202701} | package eu.caraus.appsflastfm.data.local
import android.arch.persistence.room.Room
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import eu.caraus.appsflastfm.data.remote.lastFm.LastFmApi
import eu.caraus.appsflastfm.data.remote.lastFm.LastFmApiClient
import eu.ca... | 0 | Kotlin | 0 | 0 | fb9b4a218fa4c09b23b253eb75ee62456b4b47ff | 2,814 | ShowCase-AppsFactoryLastFmMvp | MIT License |
app/src/main/java/com/composebootcamp/triviva/viewmodel/GameScreenViewModel.kt | tudang88 | 697,826,302 | false | {"Kotlin": 51107} | package com.composebootcamp.triviva.viewmodel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
data class Question(
val text: String,
val answers: List<String>,
val key: String
)
// test da... | 0 | Kotlin | 0 | 0 | f35eee212632fbc409866679306167c60f2e031d | 3,940 | jetpack-compose-triviva | Apache License 2.0 |
app/src/main/java/com/w2solo/android/ui/webview/WebViewFragment.kt | w2solo | 330,132,683 | false | null | package com.w2solo.android.ui.webview
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Build
import android.text.TextUtils
import android.view.View
import android.view.ViewGroup
import android.webkit.*
import android.widget.ProgressBar
import android.widget.Toast
im... | 1 | Kotlin | 1 | 11 | 791040ba585d8d5952474ee664a5c9a988038dfa | 8,484 | dreamland-android | MIT License |
blockchain-development-kit/accelerators/corda/cordapps/chat/cordapp/src/main/kotlin/net/corda/workbench/chat/flow/workbench/FSMCurrentStateFlow.kt | corda | 158,275,332 | true | {"HTML": 3979585, "Python": 1081109, "Java": 880816, "Kotlin": 599568, "C#": 491991, "JavaScript": 161542, "PowerShell": 94018, "CSS": 48236, "Shell": 17585, "PLpgSQL": 16377, "Batchfile": 8685, "Dockerfile": 4248, "Scala": 840, "ASP": 105} | package net.corda.workbench.chat.flow.workbench
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.contracts.UniqueIdentifier
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.InitiatingFlow
import net.corda.core.flows.StartableByRPC
import net.corda.core.node.services.queryBy
import n... | 0 | HTML | 1 | 0 | c8686c9d1be88750522cd775c52d36fd9f489b62 | 1,276 | blockchain | MIT License |
app/src/main/java/com/mjrt/app/allebooks/ui/reading/ReadingFragment.kt | gabrielmjr | 792,882,049 | false | {"Kotlin": 18470, "Java": 2045} | package com.mjrt.app.allebooks.ui.reading
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import com.mjrt.app.allebooks.databinding.Fragmen... | 0 | Kotlin | 0 | 2 | 099fbe04bc6dcf9cc57010482e24f32e7150e397 | 1,201 | AllEBooks | Apache License 2.0 |
src/main/kotlin/br/com/lucascm/mangaeasy/micro_api_monolito/features/achievements/controllers/AchievementsController.kt | manga-easy | 627,169,031 | false | {"Kotlin": 232817, "Dockerfile": 130} | package br.com.lucascm.mangaeasy.micro_api_monolito.features.achievements.controllers
import br.com.lucascm.mangaeasy.micro_api_monolito.core.entities.BusinessException
import br.com.lucascm.mangaeasy.micro_api_monolito.core.entities.UserAuth
import br.com.lucascm.mangaeasy.micro_api_monolito.core.service.HandlerPermi... | 0 | Kotlin | 1 | 3 | f5118df03be9f689620733999c5aae2de6bf75be | 4,461 | manga_easy_micro_api_monolito | MIT License |
raw-assets/src/main/java/me/thierrylee/fe3hdb/assets/model/transformer/MagicRequirementAssetTransformer.kt | thierrylee | 201,639,277 | false | null | package me.thierrylee.fe3hdb.assets.model.transformer
import me.thierrylee.fe3hdb.assets.model.MagicRequirementAsset
internal object MagicRequirementAssetTransformer : AbstractAssetTransformer<MagicRequirementAsset>() {
override fun getAssetFile() = "magic_req_personallearn"
override fun getColumnCount() = 4... | 0 | Kotlin | 0 | 4 | 22583d1c4cec0a37c671c51a69587cd99ee91540 | 621 | FE3H-AssetsDB | MIT License |
app/src/main/java/oliveira/br/consultacepmvvm/di/annotations/ForApplication.kt | oliveiradev27 | 165,511,274 | false | null | package oliveira.br.consultacepmvvm.di.annotations
import javax.inject.Qualifier
@Qualifier
@Retention(AnnotationRetention.RUNTIME)
annotation class ForApplication | 0 | Kotlin | 0 | 0 | f7be19eac57bfa42cc564533b4c94ec26e2568e3 | 165 | Consulta-CEP-MVVM-AAC | MIT License |
platform/statistics/src/com/intellij/internal/statistic/utils/PluginInfoDetector.kt | hieuprogrammer | 284,920,751 | false | null | // Copyright 2000-2020 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.internal.statistic.utils
import com.intellij.ide.plugins.PluginInfoProvider
import com.intellij.ide.plugins.PluginManager
import com.intellij.ide.plugins.Plu... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 7,611 | intellij-community | Apache License 2.0 |
ktor-client/ktor-client-plugins/ktor-client-auth/common/src/io/ktor/client/plugins/auth/providers/BasicAuthProvider.kt | danbrough | 527,165,659 | false | null | /*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.plugins.auth.providers
import io.ktor.client.plugins.auth.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.http.... | 5 | null | 962 | 2 | f6f34582a36ee2f950ea672c4908498680cc24b2 | 5,026 | ktor | Apache License 2.0 |
src/commonTest/kotlin/MenuSceneTest.kt | EternalJourneyman1 | 434,406,296 | false | {"Kotlin": 7160, "Shell": 1210} | import com.soywiz.korge.tests.ViewsForTesting
import kotlin.test.Test
class MenuSceneTest : ViewsForTesting() {
@Test
fun `menuScreen`() = sceneTest<MenuScene> {
val log = listOf<String>()
}
} | 0 | Kotlin | 0 | 0 | 9e8fbc457ddef88f1282a011cdd62e3252b84595 | 219 | korge-game | MIT License |
app/src/main/java/com/fourteenrows/p2pcs/services/RequesConfermationtListener.kt | FourteenRows | 185,977,617 | false | null | package com.fourteenrows.p2pcs.services
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.core.app.NotificationCompat
import ... | 0 | Kotlin | 0 | 0 | b88364cb6775aa24ef005845943d1086a7f76bbe | 4,359 | P2PCS | MIT License |
core/src/main/kotlin/net/corda/flows/FetchDataFlow.kt | evisoft | 75,185,334 | false | null | package net.corda.flows
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.contracts.NamedByHash
import net.corda.core.crypto.Party
import net.corda.core.crypto.SecureHash
import net.corda.core.flows.FlowLogic
import net.corda.core.utilities.UntrustworthyData
import net.corda.flows.FetchDataFlow.Downl... | 4 | null | 1 | 1 | 4a9f5cafc1f2f09e8f612a09f30f9dfffd985a6c | 4,263 | corda | Apache License 2.0 |
wear/watchface/watchface-editor/samples/src/main/java/androidx/wear/watchface/editor/sample/ConfigFragment.kt | JetBrains | 351,708,598 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 16 | 59 | 3fbd775007164912b34a1d59a923ad3387028b97 | 11,472 | androidx | Apache License 2.0 |
storage/src/main/java/com/shevelev/wizard_camera/storage/repositories/LastUsedFilterRepository.kt | AlShevelev | 262,626,159 | false | null | package com.shevelev.wizard_camera.storage.repositories
import com.shevelev.wizard_camera.common_entities.entities.LastUsedFilter
interface LastUsedFilterRepository {
fun update(filter: LastUsedFilter)
fun remove(filter: LastUsedFilter)
fun read(): List<LastUsedFilter>
} | 0 | Kotlin | 4 | 40 | ca008839fb157bac0f9b914243ef2a9d7c6a72fa | 287 | WizardCamera | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecs/Cluster.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 137826907} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ecs
import io.cloudshiftdev.awscdk.Resource
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import... | 4 | Kotlin | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 26,348 | kotlin-cdk-wrapper | Apache License 2.0 |
datalogger/src/main/java/org/obd/graphs/bl/trip/TripModelSerializers.kt | tzebrowski | 326,375,780 | false | null | package org.obd.graphs.bl.trip
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.core.JsonParser
import com.fasterxml.jackson.databind.DeserializationContext
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jacks... | 1 | Kotlin | 2 | 8 | 61f19f1f8bcba21906e15d4d49b9dc3012cccf41 | 3,179 | ObdGraphs | Apache License 2.0 |
mobzy-pathfinding/src/main/kotlin/com/mineinabyss/mobzy/ecs/goals/minecraft/FollowParentBehaviour.kt | MineInAbyss | 142,800,887 | false | null | package com.mineinabyss.mobzy.ecs.goals.minecraft
import com.mineinabyss.mobzy.api.nms.aliases.NMSPathfinderGoal
import com.mineinabyss.mobzy.api.nms.aliases.toNMS
import com.mineinabyss.mobzy.ecs.components.initialization.pathfinding.PathfinderComponent
import kotlinx.serialization.SerialName
import kotlinx.serializa... | 13 | null | 8 | 29 | 6fdf955a0bc906f297eb91340fcdcabf5031beef | 793 | Mobzy | MIT License |
mobzy-pathfinding/src/main/kotlin/com/mineinabyss/mobzy/ecs/goals/minecraft/FollowParentBehaviour.kt | MineInAbyss | 142,800,887 | false | null | package com.mineinabyss.mobzy.ecs.goals.minecraft
import com.mineinabyss.mobzy.api.nms.aliases.NMSPathfinderGoal
import com.mineinabyss.mobzy.api.nms.aliases.toNMS
import com.mineinabyss.mobzy.ecs.components.initialization.pathfinding.PathfinderComponent
import kotlinx.serialization.SerialName
import kotlinx.serializa... | 13 | null | 8 | 29 | 6fdf955a0bc906f297eb91340fcdcabf5031beef | 793 | Mobzy | MIT License |
model-aws/src/main/kotlin/uy/kohesive/iac/model/aws/cloudformation/resources/builders/Lambda.kt | kohesive | 81,814,921 | false | null | package uy.kohesive.iac.model.aws.cloudformation.resources.builders
import com.amazonaws.AmazonWebServiceRequest
import com.amazonaws.services.lambda.model.*
import uy.kohesive.iac.model.aws.cloudformation.ResourcePropertiesBuilder
import uy.kohesive.iac.model.aws.cloudformation.resources.Lambda
class LambdaVersionRe... | 0 | Kotlin | 1 | 3 | c52427c99384396ea60f436750932ed12aad4e6d | 4,358 | kohesive-iac | MIT License |
app/src/main/java/com/thecode/cryptomania/presentation/splash/SplashActivity.kt | gabriel-TheCode | 375,033,948 | false | {"Kotlin": 89192} | package com.thecode.cryptomania.presentation.splash
import android.content.Intent
import android.os.Bundle
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import android.view.animation.LinearInterpolator
import android.view.animation.RotateAnimation
import androidx.activity.viewMod... | 1 | Kotlin | 6 | 26 | c45130092bd4f73b92b47a3eb57b57ba3978dd82 | 2,426 | CryptoMania | Apache License 2.0 |
api/src/test/kotlin/glimpse/shaders/ProgramBuilderSpec.kt | glimpse-graphics | 44,015,157 | false | {"Kotlin": 207226, "GLSL": 7035} | package glimpse.shaders
import com.nhaarman.mockito_kotlin.*
import glimpse.gles.GLES
import glimpse.test.GlimpseSpec
class ProgramBuilderSpec : GlimpseSpec() {
init {
"Program builder" should {
"create both shaders" {
val glesMock = glesMock()
buildShaderProgram()
verify(glesMock).createShader(Sh... | 0 | Kotlin | 0 | 16 | 5069cc1c3f2d8cb344740f3d33bcf11848f94583 | 3,104 | glimpse-framework | Apache License 2.0 |
android/src/main/java/com/reactnativerangersapplogreactnativeplugin/RangersApplogReactnativePluginPackage.kt | bashen1 | 384,293,703 | false | {"Kotlin": 16124, "Objective-C": 12044, "JavaScript": 6720, "Ruby": 1240} | package com.reactnativerangersapplogreactnativeplugin
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ViewManager
class RangersApplogReactnativePluginPackage : ReactPackage {
override... | 0 | Kotlin | 0 | 2 | 76d1833f724c2b46a6630702a4e78523d60a91fe | 624 | react-native-mrangers-log | MIT License |
src/main/kotlin/org/xbery/artbeams/common/mailer/service/Mailer.kt | beranradek | 354,546,253 | false | {"Kotlin": 573095, "JavaScript": 286267, "FreeMarker": 109973, "CSS": 12906, "Procfile": 109} | package org.xbery.artbeams.common.mailer.service
import org.apache.http.HttpEntity
import org.apache.http.NameValuePair
import org.apache.http.StatusLine
import org.apache.http.client.entity.UrlEncodedFormEntity
import org.apache.http.client.methods.HttpPost
import org.apache.http.impl.client.HttpClients
import org.ap... | 0 | Kotlin | 1 | 2 | 8e0a0b4dd464e0735a2d2f3f6931ff4638b6d023 | 2,949 | artbeams | Apache License 2.0 |
app/src/test/kotlin/de/markusfisch/android/binaryeye/actions/web/WebTest.kt | markusfisch | 101,552,674 | false | null | package de.markusfisch.android.binaryeye.actions.web
import junit.framework.TestCase.*
import org.junit.Test
class WebTest {
@Test
fun correct() {
val urls = listOf(
"https://google.com",
"https://markusfisch.de",
"http://markusfisch.de",
"http://www.markusfisch.de",
"http://www.markusfisch.de/",
... | 83 | Kotlin | 97 | 992 | e99e2d7dccba2f6ffb6d7d6d2e6428288834dcf5 | 1,294 | BinaryEye | MIT License |
src/main/kotlin/net/polvott/kotlinnats/PublishMessageController.kt | jankb | 721,622,202 | false | {"Kotlin": 1505} | package net.polvott.kotlinnats
import io.nats.client.Nats
import io.nats.client.Options
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RestController
@RestController
class PublishMessageController {
... | 0 | Kotlin | 0 | 0 | 1f58ea8d8e12f7dcaf3f53df00c805cdcf35ae36 | 1,011 | kotlinnats | MIT License |
src/nl/hannahsten/texifyidea/intentions/LatexDisplayMathIntention.kt | Hannah-Sten | 62,398,769 | false | null | package nl.hannahsten.texifyidea.intentions
import com.intellij.openapi.application.runWriteAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
import nl.hannahsten.texifyidea.lang.DefaultEnvironment
import nl.hannahsten.texifyidea.psi.LatexBegin... | 99 | null | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 1,968 | TeXiFy-IDEA | MIT License |
CAP-10/MyRoom/app/src/main/java/es/javiercarrasco/myroom/ui/EditorialActivity.kt | KotlinStuff | 601,574,601 | false | null | package es.javiercarrasco.myroom.ui
import android.app.ActivityOptions
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.room.CoroutinesRoom
import es.javiercarrasco.myroom.MyRoomApplication
import es.javiercarrasco.myroom.R
import es.javiercarrasco.... | 0 | null | 0 | 1 | 2469656f963c4cdc2888b69a6d4427f23487b65e | 2,091 | DMKotlin-v2023 | MIT License |
src/main/kotlin/no/nav/syfo/aktivitetskrav/api/AktivitetskravResponseDTO.kt | navikt | 554,767,872 | false | {"Kotlin": 394337, "Dockerfile": 226} | package no.nav.syfo.aktivitetskrav.api
import no.nav.syfo.aktivitetskrav.domain.AktivitetskravStatus
import no.nav.syfo.aktivitetskrav.domain.VurderingArsak
import java.time.LocalDate
import java.time.LocalDateTime
data class AktivitetskravResponseDTO(
val uuid: String,
val createdAt: LocalDateTime,
val s... | 2 | Kotlin | 1 | 0 | f3be9861b8c74cb60aee92cfffe38e7ac8a8c5ca | 867 | isaktivitetskrav | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/lambda/eventsources/SnsEventSourceDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.lambda.eventsources
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import kotlin.col... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 2,474 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/com/keithsmyth/ecommerce/ui/product/ProductViewModel.kt | keithsmyth | 610,826,987 | false | null | package com.keithsmyth.ecommerce.ui.product
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.keithsmyth.ecommerce.domain.ProductController
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow... | 0 | Kotlin | 0 | 0 | ec7bdfb62f768f70a456949d1a4ad381f6b97382 | 1,016 | Ecommerce | Apache License 2.0 |
app/src/main/java/com/battlelancer/seriesguide/lists/ListManageDialogFragment.kt | UweTrottmann | 1,990,682 | false | null | package com.battlelancer.seriesguide.lists
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AppCompatDialogFragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.repeatOnLifecycle
impor... | 56 | null | 403 | 1,966 | c7bc6445ecc58b841c1887a56146dc2d2f817007 | 4,988 | SeriesGuide | Apache License 2.0 |
code/jvm/main/kotlin/com/isel/leic/ps/ionClassCode/domain/input/ApplyInput.kt | i-on-project | 607,828,295 | false | null | package com.isel.leic.ps.ionClassCode.domain.input
/**
* Apply Input Interface
*/
data class ApplyInput(
val pendingTeacherId: Int,
) {
fun isNotValid(): Boolean {
return pendingTeacherId <= 0
}
}
| 2 | Kotlin | 0 | 2 | 3daeed28d8a2ce9cb90ec642698b9ecb2eb9fe0d | 220 | repohouse | Apache License 2.0 |
src/main/kotlin/dev/sterner/common/entity/AbstractCultistEntity.kt | mrsterner | 854,711,582 | false | null | package dev.sterner.common.entity
import net.minecraft.nbt.CompoundTag
import net.minecraft.sounds.SoundEvent
import net.minecraft.sounds.SoundEvents
import net.minecraft.world.DifficultyInstance
import net.minecraft.world.damagesource.DamageSource
import net.minecraft.world.entity.EntityType
import net.minecraft.worl... | 0 | null | 0 | 1 | 6ae8ea7a62e6deb2326662e9498c7d31466db9e4 | 3,381 | voidbound | MIT License |
core/src/main/kotlin/restaurant/internal/undertow/Undertow.kt | christophsturm | 360,472,665 | false | null | package restaurant.internal.undertow
import io.undertow.Undertow
import io.undertow.server.HttpServerExchange
import io.undertow.server.RoutingHandler
import io.undertow.server.handlers.error.SimpleErrorPageHandler
import io.undertow.util.HttpString
import io.undertow.util.Methods
import restaurant.*
import kotlin.cor... | 9 | null | 0 | 5 | 7491c3346aef3bc4bb823022c6db219880d01db9 | 3,093 | restaurant | MIT License |
src/main/kotlin/solve/SolveApp.kt | prime-slam | 542,695,410 | false | {"Kotlin": 372628, "GLSL": 8458} | package solve
import javafx.stage.Stage
import solve.main.MainView
import tornadofx.App
import tornadofx.launch
class SolveApp : App(MainView::class) {
override fun start(stage: Stage) {
with(stage) {
width = 1000.0
height = 600.0
isMaximized = true
}
su... | 50 | Kotlin | 0 | 8 | c7151d6ec19eea84920bcc9d9857f37726f0c813 | 401 | SOLVE | MIT License |
app/src/main/java/com/example/mydiagnosis/database/dao/EvidencesDao.kt | VishwaP98 | 190,676,831 | false | null | package com.example.mydiagnosis.database.dao
import android.arch.persistence.room.*
import com.example.mydiagnosis.model.Evidence
@Dao
interface EvidencesDao {
@Query("SELECT * from Evidences where evidenceId = :id")
fun getEvidenceIfPresent(id : String) : Evidence
@Query("SELECT * from Evidences")
... | 1 | Kotlin | 1 | 0 | ccd4ae5cfa2ca7e081ab029943f4c12438def024 | 838 | MyDiagnosis | MIT License |
src/main/kotlin/com/khekrn/demo/workflow/WorkflowBeamConfiguration.kt | khekrncs | 459,418,233 | false | {"Kotlin": 7372} | package com.khekrn.demo.workflow
import com.cs.beam.engine.workflow.executor.service.WorkflowExecutorService
import com.cs.beam.engine.workflow.runtime.config.BeamEngineConfig
import org.springframework.core.io.ClassPathResource
import org.springframework.core.io.Resource
import org.springframework.stereotype.Componen... | 0 | Kotlin | 0 | 0 | b0fc27dd9a8649633bb85b2f3415ce8a818d96a0 | 936 | beam-demo | Apache License 2.0 |
core/src/main/kotlin/com/github/icarohs7/unoxandroidarch/extensions/StateViewExtensions.kt | icarohs7 | 168,861,268 | false | null | package com.github.icarohs7.unoxandroidarch.extensions
import com.umutbey.stateviews.StateView
/**
* Display the loading state if the parameter
* is true of hide all states if false
*/
fun StateView.toggleLoading(isLoading: Boolean) {
if (isLoading) displayLoadingState()
else hideStates()
} | 0 | Kotlin | 0 | 0 | 22ab4cd951974741a235698a5cdb57342ce7325b | 304 | unox-android-arch | MIT License |
core/src/main/java/com/infinitepower/newquiz/core/math/evaluator/internal/TokenType.kt | joaomanaia | 443,198,327 | false | null | package com.agadimi.calculator.exprk.internal
internal enum class TokenType {
// Basic operators
PLUS,
MINUS,
STAR,
SLASH,
MODULO,
EXPONENT,
SQUARE_ROOT,
ASSIGN,
// Logical operators
EQUAL_EQUAL,
NOT_EQUAL,
GREATER,
GREATER_EQUAL,
LESS,
LESS_EQUAL,
... | 388 | null | 30 | 99 | 4741a80f1db8073c7d33499523117b446489bbf0 | 476 | newquiz | Apache License 2.0 |
platform/lang-impl/src/com/intellij/ide/bookmark/providers/InvalidBookmark.kt | JetBrains | 2,489,216 | 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.ide.bookmark.providers
import com.intellij.ide.bookmark.Bookmark
import java.util.Objects
internal class InvalidBookmark(override val prov... | 214 | null | 4829 | 15,129 | 5578c1c17d75ca03071cc95049ce260b3a43d50d | 1,115 | intellij-community | Apache License 2.0 |
app/src/main/java/ir/apptune/antispam/features/callog/adapter/CallLogsDiffUtils.kt | SirLordPouya | 241,154,265 | false | null | package ir.apptune.antispam.features.callog.adapter
import androidx.recyclerview.widget.DiffUtil
import ir.apptune.antispam.pojos.CallModel
/**
* DiffUtils for call logs
*
*/
class CallLogsDiffUtils : DiffUtil.ItemCallback<CallModel>() {
override fun areItemsTheSame(oldItem: CallModel, newItem: CallModel) =
... | 0 | Kotlin | 1 | 9 | fb620efe5ac319057f854ca91e810887d295feb6 | 656 | AntiSpam | Apache License 2.0 |
src/main/java/com/worksap/nlp/elasticsearch/sudachi/index/SudachiStopTokenFilterFactory.kt | WorksApplications | 110,100,447 | false | {"Kotlin": 205751, "Java": 76537, "Groovy": 18805, "Python": 12600, "Shell": 5542} | /*
* Copyright (c) 2017-2023 Works Applications Co., Ltd.
*
* 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 ap... | 3 | Kotlin | 41 | 183 | df617af023e9ab5b834b07170eb860c9b1c6af6b | 2,085 | elasticsearch-sudachi | Apache License 2.0 |
src/main/kotlin/solve/importer/model/FileInfo.kt | prime-slam | 542,695,410 | false | {"Kotlin": 442756} | package solve.importer.model
data class FileInfo(
val name: String = "",
val isLeaf: Boolean = false,
val errors: MutableList<String> = mutableListOf()
)
| 52 | Kotlin | 0 | 8 | 67352bd0ed1f437fad6b151400898f57ae926c67 | 167 | SOLVE | MIT License |
src/main/kotlin/org/kamiblue/client/manager/managers/KamiMojiManager.kt | NotMonika | 509,486,355 | false | {"Kotlin": 1389924, "Java": 110277, "Shell": 15180, "GLSL": 3626} | /*
* This file is adapted from 2b2t-Utilities/emoji-api which is licensed under MIT.
* You can find a copy of the original license here: https://github.com/2b2t-Utilities/emoji-api/blob/35b0683/LICENSE
*/
package org.kamiblue.client.manager.managers
import com.google.gson.JsonObject
import com.google.gson.JsonPars... | 0 | Kotlin | 0 | 0 | 88dc5a7e96ba358898b03681bfdf760e93f94812 | 4,621 | __AntiZhangZongZe__ | Do What The F*ck You Want To Public License |
commons/src/commonMain/kotlin/org/jetbrains/letsPlot/commons/geometry/DoubleRectangles.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2023. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package org.jetbrains.letsPlot.commons.geometry
import kotlin.math.max
import kotlin.math.min
object DoubleRectangles {
/*
Returns null if point collection is empty... | 97 | Kotlin | 47 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 1,442 | lets-plot | MIT License |
2 Layouts/AboutMe/app/src/main/java/com/android/example/AboutMe/MyName.kt | Android-SrA-2020 | 232,567,525 | false | null | package com.android.example.AboutMe
| 0 | Kotlin | 0 | 0 | 3f1481b37aad553ebe529eabc40692edecd837ae | 37 | homework-KhoiRyanNguyen | MIT License |
app/src/main/java/com/github/cfogrady/vitalwear/character/mood/MoodBroadCastReceiver.kt | cfogrady | 619,941,986 | false | {"Kotlin": 573795} | package com.github.cfogrady.vitalwear.character.mood
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import java.time.LocalDateTime
class MoodBroadcastReceiver(
private val moodService: MoodService) : BroadcastReceiver() {
companion... | 21 | Kotlin | 0 | 4 | 2d56228325fd0e6a68456173a28f880dea3e0cb3 | 691 | VitalWear | MIT License |
editor-plugins/src/main/kotlin/ru/ilyasshafigin/openrndr/editor/plugin/ShaderPlugin.kt | ilyasshafigin | 258,325,328 | false | null | package ru.ilyasshafigin.openrndr.editor.plugin
import ru.ilyasshafigin.openrndr.editor.Canvas
import ru.ilyasshafigin.openrndr.editor.Editor
import ru.ilyasshafigin.openrndr.editor.EditorPlugin
import mu.KotlinLogging
import org.openrndr.color.ColorRGBa
import org.openrndr.draw.ArrayTexture
import org.openrndr.draw.B... | 0 | Kotlin | 0 | 1 | 7166d40e19687da68b2cf7d9c40b322daa17864e | 12,627 | openrndr-editor | MIT License |
data/src/main/java/team/msg/data/dto/notice/response/getDetailNotice/Path.kt | GSM-MSG | 637,641,666 | false | null | package team.msg.data.dto.notice.response.getDetailNotice
import team.msg.domain.model.notice.response.getDetailNotice.PathModel
import java.util.UUID
data class Path(
val id: UUID
)
fun Path.asPathModel() = PathModel(id)
| 0 | Kotlin | 0 | 10 | 782ebaa545a6aa2f21b5cb91efbd4371c4875d65 | 229 | Hi-v2-Android | MIT License |
app/src/main/java/com/charlesmuchene/kotlin/learn/models/Country.kt | StevenKatabalwa | 191,611,390 | true | {"Kotlin": 21641} | package com.charlesmuchene.kotlin.learn.models
import android.os.Parcelable
import com.charlesmuchene.kotlin.learn.utilities.orDash
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
/**
* Country class
*/
@Parcelize
data class Country(
@SerializedName("name") val name: St... | 0 | Kotlin | 0 | 0 | 6c1648fccf3e61f940e176cf3f7fbe8f66c6d469 | 1,966 | learn-kotlin-app | Apache License 2.0 |
app/src/main/java/com/leehendryp/stoneandroidchallenge/feed/data/dependencyinjection/DataModule.kt | leehendryp | 258,582,373 | false | null | package com.leehendryp.stoneandroidchallenge.feed.data.dependencyinjection
import android.content.Context
import com.leehendryp.stoneandroidchallenge.core.utils.NetworkUtils
import com.leehendryp.stoneandroidchallenge.feed.data.JokeRepositoryImpl
import com.leehendryp.stoneandroidchallenge.feed.data.local.LocalDataSou... | 2 | Kotlin | 0 | 0 | 3f165de843abe9ec89eaaf9e93144ac4e6f56f7f | 2,659 | stone_android_challenge | MIT License |
revcrm-server/src/main/kotlin/org/revcrm/db/EntityStoredPropertyPersister.kt | RevCRM | 78,327,204 | false | {"JavaScript": 1795259, "Kotlin": 243670, "TypeScript": 181730, "CSS": 40221, "HTML": 6649, "Dockerfile": 278, "Shell": 89} | package org.revcrm.db
import com.mongodb.DBObject
import org.revcrm.annotations.Stored
import xyz.morphia.AbstractEntityInterceptor
import xyz.morphia.mapping.Mapper
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.memberProperties
import kotlin.reflect.jvm.javaField
class EntityStoredPropertyPers... | 5 | JavaScript | 1 | 3 | 4e9682e0e6919ea59105adc9522084f91b2cfb50 | 921 | kotlin-prototype | Apache License 2.0 |
src/main/kotlin/de/neusta/ncc/infrastructure/mapper/CsvImportMapper.kt | larmic | 123,574,305 | false | null | package de.neusta.ncc.infrastructure.mapper
import com.fasterxml.jackson.databind.MappingIterator
import com.fasterxml.jackson.dataformat.csv.CsvMapper
import com.fasterxml.jackson.dataformat.csv.CsvParser
import de.neusta.ncc.domain.Room
import de.neusta.ncc.infrastructure.mapper.exception.CsvPersonNotValidException
... | 3 | null | 0 | 2 | 69fb7e7bb82cd4a29bf6b790fecf05a86965a00b | 3,065 | neusta-code-challange-kotlin | Apache License 2.0 |
cmm/src/main/java/com/benli/cmm/network/CacheInterceptor.kt | beilly | 98,971,871 | false | null | package com.benli.cmm.network
import android.content.Context
import android.util.Log
import com.benli.cmm.utils.NetworkUtils
import okhttp3.Interceptor
import okhttp3.Response
import okhttp3.CacheControl
/**
* Created by lvruheng on 2017/7/4.
*/
class CacheInterceptor(context: Context) : Interceptor{
val cont... | 0 | Kotlin | 0 | 1 | 74ad306c941d49a22012d67aa6c05309a81c0452 | 1,409 | KotlinWeather | Apache License 2.0 |
app/src/main/java/de/seemoo/at_tracking_detection/ui/scan/ScanFragment.kt | seemoo-lab | 385,199,222 | false | null | package de.seemoo.at_tracking_detection.ui.scan
import android.Manifest
import android.annotation.SuppressLint
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothManager
import android.bluetooth.le.BluetoothLeScanner
import android.bluetooth.le.ScanCallback
import android.bluetooth.le.ScanResu... | 34 | null | 85 | 1,608 | a53fb9e7d4706d8d03a6da30273f648e6015a765 | 4,818 | AirGuard | Apache License 2.0 |
collections-extensions/src/main/kotlin/org/knowledger/collections/CollectionsExtensions.kt | andrediogo92 | 122,662,386 | false | {"Kotlin": 795385, "Rust": 9666, "Python": 228} | package org.knowledger.collections
import kotlin.contracts.InvocationKind
import kotlin.contracts.contract
fun <T> emptySortedList(comparator: Comparator<T>): SortedList<T> =
DelegatedSortedList(comparator)
fun <T : Comparable<T>> emptySortedList(): SortedList<T> =
emptySortedList { o1, o2 -> o1.compareTo(o2... | 0 | Kotlin | 1 | 3 | 0e5121243b9faf101b6d2ccf5bce60a657a31b4e | 8,481 | KnowLedger | MIT License |
app/src/main/java/com/johnlennonlobo/appilunne/ui/activity/login/AuthResponse.kt | john-lobo | 382,523,866 | false | null | package com.johnlennonlobo.appilunne.ui.activity.login
interface AuthResponse {
fun hideProgressBar(hide:Boolean)
fun onSuccess(message: String)
fun onFailure(message: String)
} | 0 | Kotlin | 0 | 2 | 62b08c90c425eb53f033c60a47bbe697781f35d9 | 190 | AppIlunne | MIT License |
testapp/src/main/java/name/wildswift/testapp/readwrite/TestReadWriteModesViewDelegate.kt | wild-swift | 153,925,818 | false | null | /*
* Copyright (C) 2020 <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 i... | 12 | Kotlin | 1 | 1 | 43b67b1c0fec28f17c55f28a62cf314506f7e2a6 | 2,459 | ws-android-annotations | Apache License 2.0 |
wpi/src/main/kotlin/frc/team4069/saturn/lib/util/CoroutineUtils.kt | FRCTeam4069 | 152,143,141 | false | null | /*
* Copyright 2019 Lo-Ellen Robotics
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Kotlin | 0 | 5 | cafa7ae6dbd39177f807d5aaa5ef17c98f057826 | 2,101 | SaturnLibrary | Apache License 2.0 |
src/main/kotlin/com/sourcegraph/cody/agent/protocol/ProtocolTextDocument.kt | sourcegraph | 702,947,607 | false | {"Kotlin": 578448, "Java": 231040, "Shell": 4404, "TypeScript": 2153, "Nix": 1122, "JavaScript": 436, "HTML": 294} | package com.sourcegraph.cody.agent.protocol
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.fileEditor.FileEditorManager
import com.intellij.openapi.vfs.VirtualFile
import com.sourcegraph.cody.agent.protocol.util.Rfc3986UriEncoder
class ... | 278 | Kotlin | 9 | 33 | 5a9f9fc4986b6dabf8fba00c8c07ba5d37a68b98 | 1,785 | jetbrains | Apache License 2.0 |
src/main/kotlin/dev/vndx/SMF.kt | viandoxdev | 786,055,582 | false | {"Rust": 78111, "Kotlin": 20036, "Java": 7932, "GLSL": 289} | package dev.vndx
import dev.vndx.bindings.*
import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.Mod
import net.minecraftforge.fml.common.event.FMLInitializationEvent
import org.apache.logging.log4j.LogManager
import java.nio.ByteBuffer
@Mod(modid = "smf", useMetadata = true)
class SMF {
@Mo... | 0 | Rust | 0 | 0 | a91e1a4fb31a9dbee8fe8a5aa459e9e5c0de4a19 | 583 | smf | The Unlicense |
app/src/main/java/com/example/instabus/Constants.kt | Dramaix | 238,223,346 | false | null | package com.example.instabus
const val WEB_SERVICE_URL="http://barcelonaapi.marcpous.com" | 2 | Kotlin | 0 | 0 | b242078c8893a07b6d7f55c872fecd81613014ce | 90 | InstaBus | MIT License |
client/app/src/main/java/com/hao/heji/ui/setting/export/ExportViewModel.kt | RUANHAOANDROID | 324,589,079 | false | null | package com.hao.heji.ui.setting.export
import android.os.Environment
import com.blankj.utilcode.util.LogUtils
import com.hao.heji.App
import com.hao.heji.network.HttpManager
import com.hao.heji.ui.base.BaseViewModel
import com.hao.heji.ui.setting.export.ExportAction.ExportExcel
import com.hao.heji.utils.MyUtils
import... | 0 | null | 7 | 36 | c5491871ebbe68bca3684d1a7db3f1f78c870d68 | 2,154 | heji | Apache License 2.0 |
couchbase-lite/src/nativeMain/kotlin/kotbase/internal/DbContext.kt | jeffdgr8 | 518,984,559 | false | {"Kotlin": 2266831, "Python": 294} | /*
* Copyright 2022-2023 <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 ... | 0 | Kotlin | 0 | 7 | ec8fbeb0d3e6c487ec8fb48ba2ba5388c71a29b1 | 2,837 | kotbase | Apache License 2.0 |
avro-kotlin-serialization/src/main/kotlin/serializer/DoubleLogicalTypeSerializer.kt | toolisticon | 493,962,736 | false | {"Kotlin": 474632, "Java": 1511} | package io.toolisticon.kotlin.avro.serialization.serializer
import com.github.avrokotlin.avro4k.AvroDecoder
import com.github.avrokotlin.avro4k.AvroEncoder
import io.toolisticon.kotlin.avro.logical.DoubleLogicalType
import io.toolisticon.kotlin.avro.logical.conversion.DoubleLogicalTypeConversion
import kotlinx.seriali... | 12 | Kotlin | 0 | 4 | d45b8fc3300205d4bf278a53ebfa53d3c46d0a48 | 826 | avro-kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/com/presta/customer/network/signHome/model/Details.kt | morgan4080 | 726,765,347 | false | {"Kotlin": 2170913, "Swift": 2162, "Ruby": 382, "Shell": 228} | package com.presta.customer.network.signHome.model
import kotlinx.serialization.EncodeDefault
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
@Serializable
data class Details @OptIn(ExperimentalSerializationApi::class) constructor(
@EncodeDefault val value: Str... | 0 | Kotlin | 0 | 0 | 0850928853c87390a97953cfec2d21751904d3a9 | 437 | kmp | Apache License 2.0 |
server/src/main/kotlin/org/ivdnt/galahad/util/StringExtensions.kt | INL | 808,669,682 | false | {"Kotlin": 407350, "Vue": 251252, "TypeScript": 81103, "Shell": 24857, "JavaScript": 2290, "Dockerfile": 2176, "HTML": 777, "XSLT": 362} | package org.ivdnt.galahad.util
fun String.matchesUpTo(textToMatch: String): Int {
var matchingIndex = 0
for (i in 1 until this.length + 1) {
if (textToMatch.startsWith(this.substring(0, i))) matchingIndex = i
else break
}
return matchingIndex
}
fun Any?.toNonEmptyString(default: String... | 0 | Kotlin | 0 | 0 | 84a7fb40da99bd1b9ebada112e6958086d034b50 | 420 | galahad | Apache License 2.0 |
proj.android/app/src/main/java/com/lh/kete/threadpool/KeteExec.kt | tienlocbui1110 | 175,465,509 | false | {"Markdown": 2, "Gradle": 13, "Java Properties": 8, "Shell": 5, "Ignore List": 9, "Batchfile": 5, "Proguard": 2, "Java": 95, "XML": 37, "Kotlin": 72, "JSON": 14, "Text": 13, "INI": 3, "JavaScript": 16, "CSS": 2, "EJS": 3} | package com.lh.kete.threadpool
import android.os.Process
import java.util.concurrent.LinkedBlockingQueue
import java.util.concurrent.ThreadFactory
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit
interface KeteExec {
companion object {
private val NUMBER_OF_CORES = Runti... | 1 | null | 1 | 1 | 1b18ca584ab3d8f0c27f2180388b7cf3043efe42 | 1,293 | Kele | MIT License |
src/main/kotlin/com/intershop/gradle/scm/utils/Utils.kt | IntershopCommunicationsAG | 62,041,957 | false | null | /*
* Copyright 2019 Intershop Communications AG.
*
* 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 ... | 9 | null | 5 | 9 | 76c55233ff8c09a0f8972550a4660068d202d421 | 2,065 | scmversion-gradle-plugin | Apache License 2.0 |
komapper-core/src/main/kotlin/org/komapper/core/dsl/query/RelationSetOperationQuery.kt | komapper | 349,909,214 | false | null | package org.komapper.core.dsl.query
import kotlinx.coroutines.flow.Flow
import org.komapper.core.dsl.context.SetOperationContext
import org.komapper.core.dsl.expression.SortExpression
import org.komapper.core.dsl.expression.SubqueryExpression
import org.komapper.core.dsl.metamodel.EntityMetamodel
import org.komapper.c... | 8 | null | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 2,533 | komapper | Apache License 2.0 |
app/src/main/java/ca/bc/gov/bchealth/ui/healthpass/add/FetchVaccineRecordViewModel.kt | bcgov | 414,797,174 | false | {"Kotlin": 1307307, "Java": 582146} | package ca.bc.gov.bchealth.ui.healthpass.add
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import ca.bc.gov.bchealth.R
import ca.bc.gov.common.const.SERVER_ERROR_DATA_MISMATCH
import ca.bc.gov.common.const.SERVER_ERROR_INCORRECT_PHN
import ca.bc.gov.common.exceptions.MyHealthException
im... | 7 | Kotlin | 5 | 5 | 77f398a01b468267c1b3a61d124bbf1f49ef1d9b | 5,147 | myhealthBC-android | Apache License 2.0 |
libs/etterlatte-ktor/src/main/kotlin/no/nav/etterlatte/libs/ktorobo/Models.kt | navikt | 417,041,535 | false | {"Kotlin": 5224679, "TypeScript": 1253274, "Handlebars": 21854, "Shell": 10666, "HTML": 1776, "CSS": 598, "Dockerfile": 587} | package no.nav.etterlatte.libs.ktorobo
import com.fasterxml.jackson.databind.JsonNode
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Result
import io.ktor.client.call.body
import io.ktor.client.statement.HttpResponse
import no.nav.etterlatte.libs.common.feilhaandtering.InternfeilExceptio... | 18 | Kotlin | 0 | 6 | aa6b1757cdd96526892ad4a04d3886037f968735 | 1,311 | pensjon-etterlatte-saksbehandling | MIT License |
app/src/main/java/com/necatisozer/bloom/ui/components/BloomCard.kt | necatisozer | 349,928,694 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | null | 1 | 4 | d1e8f323109642837dcb3f5705f62985b31b7cd3 | 1,141 | Bloom | Apache License 2.0 |
KirraDungeonServer/src/main/kotlin/net/sakuragame/eternal/kirradungeon/server/zone/data/writer/implement/ModelWriter.kt | Eternalland-Server | 569,813,142 | false | null | package net.sakuragame.eternal.kirradungeon.server.zone.data.writer.implement
import net.sakuragame.eternal.kirradungeon.server.zone.Zone
import net.sakuragame.eternal.kirradungeon.server.zone.ZoneLocation
import net.sakuragame.eternal.kirradungeon.server.zone.data.ZoneModelData
import net.sakuragame.eternal.kirradung... | 0 | Kotlin | 0 | 0 | 537f062f32d1b14cf26c89161a8efc178e596d14 | 1,259 | KirraDungeon | Creative Commons Zero v1.0 Universal |
omnia/src/javaMain/omnia/reference/WeakReference.kt | StrangePan | 224,343,744 | false | {"Kotlin": 475894} | package omnia.reference
actual class WeakReference<T : Any> private constructor(value: T? = null) {
private val weakReference = java.lang.ref.WeakReference(value)
actual companion object {
actual fun <T : Any> of(value: T) = WeakReference<T>(value)
actual fun <T : Any> empty() = WeakReference<T>()
}
... | 0 | Kotlin | 0 | 1 | b7bb7a1c9d1deb40a3ce7544d6dfd117fdac052e | 411 | omnia | The Unlicense |
Base/src/main/java/com/xy/base/utils/permission/PermissionRequestMode.kt | xiuone | 291,512,847 | false | null | package com.xy.base.utils.permission
class PermissionRequestMode(val permission:Array<String>,val permissionInfo:String?)
| 0 | Kotlin | 1 | 2 | a91666c064e6843511094727503687a1ade12f3f | 123 | ajinlib | Apache License 2.0 |
platform/android/goldengate/GoldenGateConnectionManager/src/test/java/com/fitbit/goldengate/bt/gatt/server/services/gattcache/GattCacheServiceEventListenerTest.kt | Fitbit | 252,750,226 | false | {"C": 2519513, "Kotlin": 897890, "Swift": 806092, "C++": 805305, "CMake": 121256, "Python": 115131, "Objective-C": 88567, "JavaScript": 20929, "HTML": 13841, "Shell": 2041, "Dockerfile": 1379, "Ruby": 252} | package com.fitbit.goldengate.bt.gatt.server.services.gattcache
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothGatt
import com.fitbit.bluetooth.fbgatt.FitbitBluetoothDevice
import com.fitbit.bluetooth.fbgatt.GattServerConnection
import com.fitbit.bluetooth.fbgatt.TransactionResult
import co... | 14 | C | 32 | 290 | 417aad0080bdc8b20c27cf8fff2455c20e6f3adb | 5,844 | golden-gate | Apache License 2.0 |
src/main/kotlin/com/github/oduig/auctionswindler/blizzard/generated/Links.kt | Oduig | 201,813,155 | false | null | package com.github.oduig.auctionswindler.blizzard.generated
data class Links(
val self: Self
) | 0 | Kotlin | 0 | 0 | fbe50b740e65280122d5677b7ca33d4c760539eb | 99 | auction-swindler | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.