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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/ahmed/schedulebot/services/ImageService.kt | Ahmed-no-oil | 637,725,671 | false | null | package com.ahmed.schedulebot.services
import com.ahmed.schedulebot.entities.Week
import com.ahmed.schedulebot.repositories.ScheduleEntryRepository
import com.ahmed.schedulebot.repositories.WeekRepository
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.cache.annotation.CacheEvict
impo... | 0 | Kotlin | 0 | 0 | c92c2ddff514490520d5f7ca9bb78239bc021760 | 2,170 | Schedule-Bot | MIT No Attribution |
NeuroID/src/test/java/com/neuroid/tracker/events/NIDIdentityAllViewsTest.kt | Neuro-ID | 433,158,128 | false | {"Kotlin": 600757, "JavaScript": 1588, "Shell": 1330, "HTML": 755} | package com.neuroid.tracker.events
import android.text.Editable
import android.widget.EditText
import android.widget.ImageButton
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.RatingBar
import android.widget.SeekBar
import android.widget.ToggleButton
import androidx.appcompat.... | 1 | Kotlin | 3 | 2 | 5e40d3cc444c9a260441d9e9088643032cb3a5eb | 8,437 | neuroid-android-sdk | MIT License |
buildSrc/src/main/kotlin/Versions.kt | ACINQ | 192,964,514 | false | null | object Versions {
const val lightningKmp = "1.5.12-SNAPSHOT"
const val secp256k1 = "0.10.1"
const val torMobile = "0.2.0"
const val kotlin = "1.8.21"
const val coroutines = "1.7.2"
const val serialization = "1.5.1"
const val ktor = "2.3.2"
const val sqlDelight = "1.5.5"
const val k... | 86 | null | 91 | 537 | 6c3e4f976cab8ec86d0fdaceb3b038484b7d333c | 1,598 | phoenix | Apache License 2.0 |
buildSrc/src/main/kotlin/Versions.kt | ACINQ | 192,964,514 | false | null | object Versions {
const val lightningKmp = "1.5.12-SNAPSHOT"
const val secp256k1 = "0.10.1"
const val torMobile = "0.2.0"
const val kotlin = "1.8.21"
const val coroutines = "1.7.2"
const val serialization = "1.5.1"
const val ktor = "2.3.2"
const val sqlDelight = "1.5.5"
const val k... | 86 | null | 91 | 537 | 6c3e4f976cab8ec86d0fdaceb3b038484b7d333c | 1,598 | phoenix | Apache License 2.0 |
forger-data-jpa/src/main/kotlin/com/github/wenslo/forger/data/jpa/model/LongIdEntity.kt | wenslo | 547,177,354 | false | null | package com.github.wenslo.forger.data.jpa.model
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.jpa.domain.support.AuditingEntityListener
import java.time.LocalDateTime
import javax.persistence.*
@MappedSuperclass
@Enti... | 0 | Kotlin | 0 | 1 | dc3be4d08e7fe945bbdbaa3008ccdc267438cb0b | 705 | forger | Apache License 2.0 |
app/src/main/java/com/github/chudoxl/testcontacts/moxy/BaseMvpPresenter.kt | chudoxl | 178,079,862 | false | null | package com.github.chudoxl.testcontacts.moxy
import com.arellomobile.mvp.MvpPresenter
import com.arellomobile.mvp.MvpView
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.disposables.Disposable
abstract class BaseMvpPresenter<V : MvpView> : MvpPresenter<V>() {
private val disposables = Com... | 0 | Kotlin | 0 | 0 | 18cbb0a1f4726ebe4f5cdc6cb4da86c3ad15c555 | 541 | TestContacts | Apache License 2.0 |
app/src/main/java/io/github/msh91/arch/ui/base/adapter/SingleLayoutAdapter.kt | msh91 | 134,849,661 | false | null | package io.github.msh91.arch.ui.base.adapter
import androidx.databinding.ViewDataBinding
/**
* Simple implementation of [BaseAdapter] to use as a single layout adapter.
*/
open class SingleLayoutAdapter<T : Any, B : ViewDataBinding>(
private val layoutId: Int,
var items: List<T> = emptyList(),
onItemClic... | 1 | null | 7 | 25 | 9f0bf81e3493ee733a0b64c9a64249eacd8b652b | 532 | arch | Apache License 2.0 |
fuel-kotlinx-serialization/src/test/kotlin/com/github/kittinunf/fuel/FuelKotlinxSerializationTest.kt | kittinunf | 36,847,034 | false | null | package com.github.kittinunf.fuel
import com.github.kittinunf.fuel.core.FuelError
import com.github.kittinunf.fuel.core.Handler
import com.github.kittinunf.fuel.core.Request
import com.github.kittinunf.fuel.core.Response
import com.github.kittinunf.fuel.jackson.jacksonDeserializerOf
import com.github.kittinunf.fuel.ja... | 83 | null | 397 | 4,181 | 105d3111d71623cb831af3f411ea253db766f369 | 8,307 | fuel | MIT License |
app/src/main/java/com/blocksdecoded/dex/utils/ui/DimenUtils.kt | Sakshamappinternational | 214,494,204 | true | {"Kotlin": 464312} | package com.blocksdecoded.dex.utils.ui
import android.content.Context
import com.blocksdecoded.dex.App
import kotlin.math.ceil
object DimenUtils {
fun dp(dp: Float, context: Context? = App.instance) = context?.let {
val density = context.resources.displayMetrics.density
if (dp == 0f) 0 else ceil((density * dp).t... | 0 | null | 0 | 0 | d9940d1210e54dc32bb135ef344b1d2e713f84ba | 357 | dex-app-android | MIT License |
app/src/main/kotlin/com/ivanovsky/passnotes/data/repository/encdb/EncryptedDatabaseKey.kt | aivanovski | 95,774,290 | false | {"Kotlin": 1165807, "Java": 109948, "Ruby": 2719} | package com.ivanovsky.passnotes.data.repository.encdb
import com.ivanovsky.passnotes.data.entity.KeyType
interface EncryptedDatabaseKey {
val type: KeyType
} | 7 | Kotlin | 2 | 24 | acd12d6deb37a91f27206b516e93f6d71dd03d4c | 163 | kpassnotes | Apache License 2.0 |
thymeleaf/src/main/kotlin/de/tschuehly/spring/viewcomponent/thymeleaf/ThymeleafViewContextContainerMethodReturnValueHandler.kt | tschuehly | 604,349,993 | false | null | package de.tschuehly.spring.viewcomponent.thymeleaf
import de.tschuehly.spring.viewcomponent.core.ViewContextContainer
import de.tschuehly.spring.viewcomponent.core.toMap
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import org.springframework.core.MethodParameter
impor... | 3 | Kotlin | 5 | 94 | fc632f3ae32a43a1baf65e5f12bf37256d3356c1 | 1,894 | spring-view-component | MIT License |
app/src/main/java/com/mycompany/movies/view/adapter/TabViewPagerAdapter.kt | SeltonAlves | 654,772,779 | false | null | package com.mycompany.movies.view.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.mycompany.movies.view.fragment.CurrentlyInMoviesFragment
import com.mycompany.movies.view.fragment.FutureMoviesFragment
class... | 0 | Kotlin | 0 | 0 | 1fe1c42a5b5ad2313c4f28bd41c08582247900d4 | 806 | popcorn_movies_app | MIT License |
app/src/main/java/com/example/androidcomposeguideapp/StepListScreen.kt | Jsk1n22 | 853,761,030 | false | {"Kotlin": 39802} | package com.example.androidcomposeguideapp
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.spring
import androidx.compose.foundation.Image
import androidx.compose.foundation.b... | 0 | Kotlin | 0 | 0 | 8048b5091d4727bd217a0e4f9729c0822d1f9ed5 | 5,265 | Android_Compose_Guide_App | Apache License 2.0 |
compose-designer/src/com/android/tools/idea/compose/pickers/preview/utils/DeviceUtils.kt | JetBrains | 60,701,247 | false | {"Kotlin": 47327090, "Java": 36711107, "HTML": 1217549, "Starlark": 856686, "C++": 321587, "Python": 100400, "C": 71515, "Lex": 66732, "NSIS": 58538, "AIDL": 35209, "Shell": 28699, "CMake": 26717, "JavaScript": 18437, "Batchfile": 7828, "Smali": 7580, "RenderScript": 4411, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* 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... | 3 | Kotlin | 230 | 912 | d88742a5542b0852e7cb2dd6571e01576cb52841 | 8,645 | android | Apache License 2.0 |
app/src/main/java/com/example/countryapplication/data/converters/StringListConverter.kt | ArnoudBury | 736,748,076 | false | {"Kotlin": 247251} | package com.example.countryapplication.data.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* Type converter for converting a list of strings to and from a JSON string representation.
*/
class StringListConverter {
private val gson = Gson()
... | 0 | Kotlin | 0 | 0 | 4ed765c89955b19b70809eb1ce654539fe15036f | 1,053 | Android_Arnoud_Bury_G3A2 | MIT License |
16_CameraIntent/CriminalIntent/app/src/main/java/com/bignerdranch/android/criminalintent/CriminalIntentApplication.kt | sby5388 | 373,231,323 | false | null | package com.bignerdranch.android.criminalintent
import android.app.Application
class CriminalIntentApplication : Application() {
override fun onCreate() {
super.onCreate()
CrimeRepository.initialize(this)
}
} | 1 | null | 4 | 8 | b0fc2c08e17e5333a50e4d57e1d47634e4db562c | 235 | AndroidBianChengQuanWeiZhiNanV4-kotlin | Apache License 2.0 |
src/main/kotlin/org/wagham/commands/Command.kt | kaironbot | 566,988,243 | false | null | package org.wagham.commands
import dev.kord.common.Locale
import dev.kord.core.Kord
import dev.kord.core.entity.interaction.response.PublicMessageInteractionResponse
import dev.kord.core.event.interaction.GuildChatInputCommandInteractionCreateEvent
import dev.kord.rest.builder.RequestBuilder
import dev.kord.rest.build... | 2 | Kotlin | 0 | 0 | cd857d9dad1d9fbc4a9b72973ec036e30d6bbeca | 1,487 | kairon-bot | MIT License |
kotlin-electron/src/jsMain/generated/electron/common/WebContentsWillNavigateEventParams.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron.common
typealias WebContentsWillNavigateEventParams = electron.core.WebContentsWillNavigateEventParams
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 175 | kotlin-wrappers | Apache License 2.0 |
backend/src/test/kotlin/xyz/poeschl/roborush/test/utils/builder/Builders.kt | Poeschl | 722,426,258 | false | {"Kotlin": 258310, "Vue": 118735, "TypeScript": 46733, "Java": 4509, "SCSS": 2877, "Python": 2562, "HTML": 1711, "Dockerfile": 1520, "Batchfile": 570, "Shell": 542, "JavaScript": 270} | package xyz.poeschl.roborush.test.utils.builder
import org.junit.jupiter.api.Disabled
import xyz.poeschl.roborush.configuration.Builder
@Disabled("Marking this file as a test class, to allow a relaxed linting")
class Builders {
companion object {
/***
* This builds an instance of the given builder
* ... | 9 | Kotlin | 0 | 1 | 31d56d0f012bd5ffc5e6893e9785ba3a504f8622 | 1,400 | RoboRush | Apache License 2.0 |
app/src/main/java/com/howto/coredux/HowToVideoListAdapter.kt | mosofsky | 264,519,104 | false | null | package com.howto.coredux
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.howto.coredux.HowToReduxAction.*
class HowToVideoListAdapter(val mainActivity: MainActivity, private val howToV... | 0 | Kotlin | 0 | 0 | c8f001c09d5b4aec052c85368280596d3e23afcd | 1,314 | how-to-coredux | MIT License |
src/main/kotlin/com/github/christophpickl/derbauer/DerBauer.kt | christophpickl | 162,885,556 | false | null | package com.github.christophpickl.derbauer
import ch.qos.logback.classic.Level
import com.github.christophpickl.derbauer.home.HomeView
import com.github.christophpickl.derbauer.misc.Debugger
import com.github.christophpickl.derbauer.misc.DerBauerVersionChecker
import com.github.christophpickl.derbauer.model.Model
impo... | 0 | Kotlin | 0 | 2 | 687b1608f30dd7988e67c1bcba1fe10faaa84423 | 3,390 | derbauer | Apache License 2.0 |
j2k/new/tests/testData/newJ2k/comments/commentsForConstructors.kt | JetBrains | 278,369,660 | false | null | internal class A // this is a primary constructor
// this is a secondary constructor 1
// end of primary constructor body
@JvmOverloads constructor(p: Int = 1) {
private val v = 1
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
// ... | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 702 | intellij-kotlin | Apache License 2.0 |
revolver/src/commonMain/kotlin/com/umain/revolver/RevolverErrorHandler.kt | apegroup | 623,454,493 | false | {"Kotlin": 21984, "Shell": 177} | package com.umain.revolver
/**
* interface for implementing error handlers that can be reused
* and shared between multiple ViewModels
*/
interface MviErrorHandler<STATE, EFFECT, ERROR> {
suspend fun handleError(exception: ERROR, emit: Emitter<STATE, EFFECT>)
}
| 5 | Kotlin | 1 | 33 | 59931988ac6457df57e8ba57943623c2cfe3f5d0 | 271 | revolver | MIT License |
compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/modifier/ModifierLocalSameLayoutNodeTest.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... | 6 | null | 946 | 59 | e18ad812b77fc8babb00aacfcea930607b0794b5 | 17,332 | androidx | Apache License 2.0 |
app/src/main/java/com/example/translate/LetterMeaningsListFragment.kt | Evilangel-kk | 846,406,768 | false | {"Kotlin": 46610} | package com.example.translate
import android.annotation.SuppressLint
import android.graphics.drawable.PictureDrawable
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recycler... | 0 | Kotlin | 0 | 0 | b423520bd449d58e2368a7f5c30976384d376c9a | 3,300 | WordTranslate | MIT License |
app/src/main/java/h/lillie/reborntube/fragments/Home.kt | LillieH1000 | 517,439,028 | false | null | package h.lillie.reborntube.fragments
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import android.widget.LinearLayout
import android.view.View
import android.view.ViewGroup
import android.view.LayoutInflater
import com.google.gso... | 3 | null | 1 | 9 | dfdd3c9dd36edac8a633ec719d730a067d136bb7 | 5,292 | RebornTube | MIT License |
app/src/main/java/org/stepik/android/view/injection/step/StepComponent.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.view.injection.step
import dagger.BindsInstance
import dagger.Subcomponent
import org.stepic.droid.persistence.model.StepPersistentWrapper
import org.stepik.android.domain.lesson.model.LessonData
import org.stepik.android.view.injection.attempt.AttemptDataModule
import org.stepik.android.vie... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 2,320 | stepik-android | Apache License 2.0 |
YRWidget/src/main/java/com/apemans/quickui/label/LabelTextSwitchBtnView.kt | xiongwen-lin | 480,680,777 | false | null | /*
* Copyright (c) 2021 独角鲸 Inc. All rights reserved.
*/
package com.apemans.quickui.label
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.core.content.ContextCompat
import com.apemans.quickui.databinding.LayoutLabelTextSwitchBtnBinding
/**********... | 0 | Kotlin | 0 | 0 | 84704832a8a27e22fa5642ae092af50e2905b952 | 1,609 | SmartFastUi | Apache License 2.0 |
src/main/kotlin/com/maomengte/Application.kt | evendevil66 | 876,136,576 | false | null | package com.sslukess
import com.sslukess.plugins.*
import io.ktor.server.application.*
fun main(args: Array<String>) {
io.ktor.server.netty.EngineMain.main(args)
}
fun Application.module() {
configureSerialization()
configureRouting()
}
| 0 | null | 0 | 2 | b79626aaefcd8a41cdf4863ed2cb9178923f3f8d | 252 | mp-chatglm | Apache License 2.0 |
compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt | JetBrains | 3,432,266 | false | null | // !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_EXPRESSION
// SKIP_TXT
/*
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE)
*
* SECTIONS: dfa
* NUMBER: 6
* DESCRIPTION: Raw data flow analysis test
* HELPERS: classes, enumClasses, interfaces, objects, typealiases, properties, functions
*/
// FILE: other... | 184 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 93,474 | kotlin | Apache License 2.0 |
embrace-test-fakes/src/main/kotlin/io/embrace/android/embracesdk/fakes/FakeMetadataService.kt | embrace-io | 704,537,857 | false | {"Kotlin": 2807710, "C": 190147, "Java": 175321, "C++": 13140, "CMake": 4261} | package io.embrace.android.embracesdk.fakes
import android.content.Context
import io.embrace.android.embracesdk.internal.capture.metadata.MetadataService
import io.embrace.android.embracesdk.internal.payload.AppInfo
import io.embrace.android.embracesdk.internal.payload.DeviceInfo
import io.embrace.android.embracesdk.i... | 22 | Kotlin | 8 | 133 | e5b92a8e0ed1ea64602b68ec071780369e0ea915 | 4,023 | embrace-android-sdk | Apache License 2.0 |
app/src/main/java/github/alexzhirkevich/studentbsuby/di/TimetableModule.kt | geugenm | 689,629,461 | false | null | package github.alexzhirkevich.studentbsuby.di
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import github.alexzhirkevich.studentbsuby.repo.TimetableRepository
import github.alexzhirkevich.studentbsuby.ui.screens.drawer.timetable.Timeta... | 3 | null | 0 | 6 | a89ff407beb83aa9a6fb5c21c319e6bf84e75e2a | 2,098 | student-bsu-by | MIT License |
app/src/main/java/pl/droidsonroids/droidsmap/feature/room/api/RoomImagesInteractor.kt | DroidsOnRoids | 92,831,794 | false | null | package pl.droidsonroids.droidsmap.feature.room.api
import android.net.Uri
import com.google.android.gms.tasks.OnCompleteListener
import io.reactivex.Single
import io.reactivex.Single.create
import pl.droidsonroids.droidsmap.base.BaseFirebaseStorageInteractor
class RoomImagesInteractor : BaseFirebaseStorageInteractor... | 0 | Kotlin | 0 | 1 | 310db4cd84410691743a42834587d05f79144bf2 | 1,060 | DroidsMap | MIT License |
src/main/kotlin/net/savagelabs/skyblockx/listener/ShopListener.kt | ryderbelserion | 669,876,085 | false | null | package net.savagelabs.skyblockx.listener
import com.cryptomorin.xseries.XMaterial
import net.savagelabs.skyblockx.core.Island
import net.savagelabs.skyblockx.core.color
import net.savagelabs.skyblockx.core.getIPlayer
import net.savagelabs.skyblockx.core.getIslandFromLocation
import net.savagelabs.skyblockx.manager.Ch... | 0 | Kotlin | 0 | 0 | 23e430fd51a76e22f95847520e6976e2250058b3 | 9,003 | Skyblock | MIT License |
gmaven/src/main/kotlin/ru/rzn/gmyasoedov/gmaven/project/MavenProjectResolver.kt | grisha9 | 586,299,688 | false | {"Kotlin": 437066, "Java": 266381, "HTML": 339} | package ru.rzn.gmyasoedov.gmaven.project
import com.intellij.externalSystem.JavaProjectData
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.externalSystem.importing.ProjectResolverPolicy
import com.intellij.openapi.externalSystem.model.DataNode
import com.intellij.openapi.externa... | 5 | Kotlin | 0 | 12 | f660c1c047a6f890887014dbebb0bc2fcade8a64 | 8,335 | gmaven-plugin | Apache License 2.0 |
app/src/main/kotlin/com/thundermaps/apilib/android/impl/resources/StandardMethods.kt | SaferMe | 240,105,080 | false | null | package com.thundermaps.apilib.android.impl.resources
import com.thundermaps.apilib.android.api.com.thundermaps.apilib.android.logging.ELog
import com.thundermaps.apilib.android.api.com.thundermaps.apilib.android.logging.SafermeException
import com.thundermaps.apilib.android.api.fromJsonString
import com.thundermaps.a... | 2 | Kotlin | 0 | 0 | e10d64c126cb13e56e5089e8bedd249534dc2ccf | 16,010 | saferme-api-client-android | MIT License |
tea-time-travel-plugin/src/main/java/com/oliynick/max/tea/core/debug/app/feature/presentation/ui/components/theme/WidgetTheme.kt | Xlopec | 188,455,731 | false | null | /*
* Copyright (C) 2021. <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 ... | 0 | Kotlin | 0 | 10 | 343f1c7ea7755db989c752722a02cf85236cf9e2 | 1,772 | Tea-bag | MIT License |
tools/generator/src/main/kotlin/top/bettercode/summer/tools/autodoc/model/Field.kt | top-bettercode | 387,652,015 | false | null | package top.bettercode.autodoc.core.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonPropertyOrder
/**
*
* @author Peter Wu
*/
@JsonPropertyOrder(
"name",
"type",
"description",
"default... | 0 | Kotlin | 0 | 2 | 3e4c089f6a05cf0dcd658e1e792f0f3edcbff649 | 1,598 | summer | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/intentions/convertLambdaToSingleLine/simple5.kt | ingokegel | 72,937,917 | true | null | // WITH_STDLIB
// AFTER-WARNING: Parameter 's' is never used, could be renamed to _
fun test(list: List<String>) {
list.forEachIndexed { index, s -> println(index) }<caret>
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 178 | intellij-community | Apache License 2.0 |
app/src/main/java/com/exceptionhell/todoapp/fragments/databindingadapters/BindingAdapters.kt | SainiShubham2k5 | 666,831,965 | false | null | package com.exceptionhell.todoapp.fragments.databindingadapters
import android.view.View
import androidx.databinding.BindingAdapter
import androidx.lifecycle.MutableLiveData
import androidx.navigation.findNavController
import com.exceptionhell.todoapp.R
import com.google.android.material.floatingactionbutton.FloatingA... | 0 | Kotlin | 0 | 0 | d03497a0cbaec76153a050be143d8de5ab93997e | 1,059 | todo | Apache License 2.0 |
cache-proxy/src/jsTest/kotlin/com/github/burrunan/gradle/proxy/CacheProxyTest.kt | burrunan | 282,982,149 | false | {"Kotlin": 249412, "JavaScript": 1621} | /*
* Copyright 2020 Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
*
* 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... | 29 | Kotlin | 13 | 149 | 115e59dadf4d17b5b57f7a604290a6d2736f81ad | 5,118 | gradle-cache-action | Apache License 2.0 |
app/src/main/java/com/mw/beam/beamwallet/screens/change_address/ChangeAddressPresenter.kt | BeamMW | 156,687,787 | false | {"Kotlin": 1454975, "Java": 16801, "Shell": 4651, "IDL": 1} | /*
* // Copyright 2018 Beam Development
* //
* // 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 ... | 4 | Kotlin | 21 | 36 | d06d79ec6ef47c466acf70e9b89abecfaa49fb96 | 3,591 | android-wallet | Apache License 2.0 |
buildSrc/src/main/kotlin/DependenciesRepositories.kt | Beepiz | 115,416,175 | false | null | /*
* Copyright 2019 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven
fun RepositoryHandler.setupForProject() {
jcenter()
mavenCentral().ensureGroupsStartingWith("com.jakewharton.", "com.squareu... | 19 | null | 44 | 375 | 3a660829a476ea2727eecc392bad41c9b9f0246d | 1,289 | BleGattCoroutines | Apache License 2.0 |
app/src/main/java/com/alpriest/energystats/ui/flow/battery/BatteryPowerFlowView.kt | alpriest | 606,081,400 | false | null | package com.alpriest.energystats.ui.flow.battery
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.... | 6 | null | 2 | 3 | ac10ab887c6145c4e326f68261091a264b654a25 | 4,637 | EnergyStats-Android | MIT License |
vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageLocationItem.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2021 New Vector 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 applicable law or agr... | 86 | null | 675 | 9 | 8781b6bc4c7298ee137571bb574226ff75bd7519 | 5,018 | tchap-android | Apache License 2.0 |
app/src/main/java/com/ramzmania/aicammvd/utils/MediaPlayerUtil.kt | rameshvoltella | 775,820,814 | false | {"Kotlin": 188167, "Java": 13908} | package com.ramzmania.aicammvd.utils
import android.content.Context
import android.media.MediaPlayer
/**
* Utility class for managing MediaPlayer instances.
*
* @param context The context used to create MediaPlayer instances.
*/
class MediaPlayerUtil(private val context: Context) {
private var mediaPlayer: Med... | 0 | Kotlin | 0 | 1 | b1ef96dc554d066949b0529d0a76a4503b68fb32 | 1,264 | KeralaAICameraTracker | MIT License |
app/src/main/kotlin/me/leon/classical/AutoKey.kt | Leon406 | 381,644,086 | false | null | package me.leon.classical
import me.leon.ext.sliceList
fun String.autoKey(keyword: String): String {
val key = keyword.uppercase()
val stripText = this.replace("\\s".toRegex(), "")
val splits = split("\\s+".toRegex()).map { it.length }.also { println(it) }
return stripText
.virgeneneEncode(key... | 0 | Kotlin | 64 | 260 | 7ee6a4065d04cf36ec5471043d291ad97fa0850d | 1,225 | ToolsFx | ISC License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/http/ShortcutResponse.kt | onibahamut | 365,858,379 | true | {"Kotlin": 820537, "Java": 56414, "HTML": 31580, "CSS": 2184} | package ch.rmy.android.http_shortcuts.http
import android.content.Context
import android.net.Uri
import ch.rmy.android.http_shortcuts.exceptions.ResponseTooLargeException
import ch.rmy.android.http_shortcuts.utils.SizeLimitedReader
import java.io.BufferedReader
import java.io.InputStreamReader
class ShortcutResponse... | 0 | null | 0 | 0 | 81ffa869f9a09ac25759c114af8dca8cd55c5168 | 2,173 | HTTP-Shortcuts | MIT License |
redux-kotlin/src/commonMain/kotlin/org/reduxkotlin/utils/IsPlainObject.kt | reduxkotlin | 188,472,766 | false | null | package org.reduxkotlin.utils
fun isPlainObject(obj: Any) = obj !is Function<*> | 27 | Kotlin | 25 | 274 | 67b150e9e3f1fed7c42073bf1c9d2b3fd0af41f6 | 80 | redux-kotlin | MIT License |
AllPermissionsImpl/composeApp/src/iosMain/kotlin/permissions/delegate/AppTrackingTransparencyPermissionDelegate.kt | deepakkaligotla | 733,301,131 | false | {"Kotlin": 138249, "Swift": 1170} | package permissions.delegate
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.suspendCancellableCoroutine
import permissions.model.PermissionState
import permissions.util.openAppSettingsPage
import platform.AppTrackingTransparency.ATTrackingManager
import platform.AppTrackingTransparency.A... | 0 | Kotlin | 0 | 0 | 9a18bb3e2da47815c7710236b499269689de6519 | 2,052 | Kotlin_Compose_Multiplatform | The Unlicense |
src/main/kotlin/com/projectcitybuild/entities/SerializableLocation.kt | projectcitybuild | 42,997,941 | false | null | package com.projectcitybuild.entities
import org.bukkit.Location
data class SerializableLocation(
val worldName: String,
val x: Double,
val y: Double,
val z: Double,
val pitch: Float,
val yaw: Float,
) {
companion object {
fun fromLocation(location: Location): SerializableLocation ... | 8 | Kotlin | 0 | 2 | 670536a5832dd6c3dbde0ba2f94f74a6ec576ed3 | 617 | PCBridge | MIT License |
src/main/kotlin/me/serce/solidity/ide/highlighter.kt | SerCeMan | 78,276,820 | false | null | package me.serce.solidity.ide
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.fileTypes.SingleLazyInstanceSyntaxHighlighterFactory
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase
import com.intellij.psi.tree.IElementType
import me.serce.solidity.lang.core.SolidityLex... | 0 | null | 1 | 1 | 193b6e8d431c4aa0df2885853860deb6962d732f | 2,753 | intellij-solidity | MIT License |
app/src/main/java/com/ozturksahinyetisir/travelguideapp/view/home/HomeFragment.kt | ozturksahinyetisir | 547,540,934 | false | {"Kotlin": 79364} | package com.ozturksahinyetisir.travelguideapp.view.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.ozturksahinyetisir.travelguideapp.adapters.ViewPagerAdapter
import com.... | 0 | Kotlin | 0 | 0 | 003077eff43daa08745eb407d8c9a995c21221e3 | 2,243 | Travel-Guide-Capstone-Project | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/C.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 2,130 | compose-icons | MIT License |
desktopApp/src/jvmMain/kotlin/MyApp.kt | ranger163 | 646,122,079 | false | null | import di.initKoin
/**
* Created by <NAME> on 5/27/23.
*/
val koin = initKoin(enableNetworkLogs = true).koin | 1 | Kotlin | 1 | 3 | 7774e1896b4e544d7db3af42db1fd92ea7e6995d | 111 | kotlin-multiplatform-template | Apache License 2.0 |
projects/src/test/java/org/odk/collect/projects/ProjectsRepositoryTest.kt | getodk | 40,213,809 | false | null | package org.odk.collect.projects
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.`is`
import org.hamcrest.Matchers.isEmptyString
import org.hamcrest.Matchers.not
import org.hamcrest.Matchers.notNullValue
import org.junit.Before
import org.junit.Test
import org.mockito.Mockito.mock
import org.... | 8 | null | 15 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 5,547 | collect | Apache License 2.0 |
app/src/main/java/com/andreyyurko/dnd/data/abilities/classes/sorcerer/DraconicBloodline.kt | AndreyYurko | 538,904,654 | false | null | package com.andreyyurko.dnd.data.abilities.classes.sorcerer
import com.andreyyurko.dnd.data.characterData.*
import com.andreyyurko.dnd.data.characterData.character.AbilityNode
import com.andreyyurko.dnd.data.characterData.character.abilityToModifier
import java.lang.Integer.max
var typeToDamageMap = mapOf(
Pair("... | 0 | Kotlin | 0 | 1 | abe1e74bb5b85a9246a5bdf7e497d8e4fbcd96c3 | 17,132 | DnD | MIT License |
foundation/database/src/main/kotlin/converter/GameCompanyEntityTypeConverter.kt | illarionov | 305,333,284 | false | {"Kotlin": 2011397, "FreeMarker": 2782, "Shell": 855, "Fluent": 72} | /*
* Copyright (c) 2023, the Pixnews project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.foundation.database.converter
import androidx.room.TypeConverter
import ru.pix... | 0 | Kotlin | 0 | 2 | 7930413e808158640c6630cde83a9d43b4ca4498 | 935 | Pixnews | Apache License 2.0 |
features/tasks/src/main/kotlin/com/edricchan/studybuddy/features/tasks/data/repo/TaskRepository.kt | EdricChan03 | 100,260,817 | false | null | package com.edricchan.studybuddy.ui.modules.task.data
import com.edricchan.studybuddy.features.tasks.data.model.TodoItem
import com.edricchan.studybuddy.utils.firebase.QueryMapper
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.da... | 46 | null | 11 | 9 | f3bd7d548380f727e8bffc6c0608b0a8e1dd17bd | 4,762 | studybuddy-android | MIT License |
app/src/main/java/com/samuelokello/kazihub/presentation/business/state/BusinessEvent.kt | OkelloSam21 | 749,782,789 | false | {"Kotlin": 326914} | package com.samuelokello.kazihub.presentation.business.state
import com.google.android.libraries.places.api.model.Place
sealed interface BusinessEvent {
data class OnEmailChanged(val email: String): BusinessEvent
data class OnPhoneNumberChanged(val phone: String): BusinessEvent
data class OnLocationChange... | 0 | Kotlin | 0 | 0 | e2c0776f721e24e2667a98066d79cf6554a5f040 | 698 | KaziHub | MIT License |
lib/src/main/java/com/safframework/lifecycle/listener/CoroutineErrorListener.kt | luhaiwork | 232,261,359 | true | {"Kotlin": 22934, "Java": 1216} | package com.safframework.lifecycle.listener
/**
*
* @FileName:
* com.safframework.lifecycle.listener.CoroutineErrorListener
* @author: <NAME>
* @date: 2019-10-18 02:12
* @version: V1.0 <描述当前版本功能>
*/
interface CoroutineErrorListener {
fun onError(throwable: Throwable)
} | 0 | null | 0 | 0 | 916e818c0375127ef7e12d8dcb8eb2fce99880c4 | 291 | Lifecycle-Coroutines-Extension | Apache License 2.0 |
app/src/main/kotlin/org/hidetake/blebutton/BleCallback.kt | int128 | 55,778,621 | false | null | package org.hidetake.blebutton
import android.bluetooth.*
import android.util.Log
import org.hidetake.blebutton.BleEvent.*
class BleCallback(bleStateManager: BleStateManager) : BluetoothGattCallback() {
val bleStateManager = bleStateManager
override fun onConnectionStateChange(gatt: BluetoothGatt?, status: ... | 2 | Kotlin | 11 | 9 | 8ea8d260c476ea5fc636083822bf1d54388be1b5 | 3,205 | android-ble-button | Apache License 1.1 |
compiler/testData/diagnostics/tests/smartCasts/propertyToNotNull.fir.kt | android | 263,405,600 | false | null | // !WITH_NEW_INFERENCE
class Immutable(val x: String?) {
fun foo(): String {
if (x != null) return x
return ""
}
}
class Mutable(var y: String?) {
fun foo(): String {
if (y != null) return y
return ""
}
} | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 253 | kotlin | Apache License 2.0 |
app/src/main/java/com/solar/ktx/MainFragment.kt | KennethSS | 339,270,035 | false | null | package com.solar.ktx
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.solar.ktx.library.component.getValue
class MainFragment : Fragment() {
val firstName by getValue<String>("firstName") // String?... | 0 | Kotlin | 0 | 0 | b24452f262e1831db5a01d828875fd6cac6c46de | 579 | Ktx | Apache License 2.0 |
app/src/main/java/com/sunflower/pantaucovid19/ui/activity/EmergencyNumberActivity.kt | fiqryq | 252,935,534 | false | null | package com.sunflower.pantaucovid19.ui.activity
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import androidx.core.app.ActivityCompat
import com.sunflower.pantaucovid19.R
import com.sunflower.pantaucovid19.b... | 5 | null | 4 | 17 | 38275d5f6fcb8d2d362f435379410b599f86b673 | 1,461 | Pantaucovid | Apache License 2.0 |
core/src/main/kotlin/org/jrenner/learngl/gameworld/WorldUpdater.kt | jrenner | 28,962,133 | false | null | package org.jrenner.learngl.gameworld
import com.badlogic.gdx.math.Frustum
import com.badlogic.gdx.math.MathUtils
import com.badlogic.gdx.math.Vector3
import com.badlogic.gdx.utils.IntSet
import org.jrenner.learngl.View
import org.jrenner.learngl.cube.CubeDataGrid
import org.jrenner.learngl.utils.inFrustum
import org.... | 1 | null | 13 | 70 | 1266cc7366fea7a069f3a545ac54cc0e753d457a | 5,319 | kotlin-voxel | Apache License 2.0 |
z2-lib/src/jsMain/kotlin/hu/simplexion/z2/site/boot/SnackbarServiceErrorHandler.kt | spxbhuhb | 665,463,766 | false | {"Kotlin": 1313596, "CSS": 126893, "Java": 8222, "HTML": 1560, "JavaScript": 975} | package hu.simplexion.z2.site.boot
import hu.simplexion.z2.browser.material.snackbar.errorSnackbar
import hu.simplexion.z2.browser.material.snackbar.warningSnackbar
import hu.simplexion.z2.localization.text.commonStrings
import hu.simplexion.z2.services.transport.ServiceErrorHandler
import hu.simplexion.z2.services.tr... | 6 | Kotlin | 0 | 1 | 980100fb733a7b9346ff3482ec7bb8a3b03d0e7f | 1,781 | z2 | Apache License 2.0 |
reaktive/src/jvmNativeCommonTest/kotlin/com/badoo/reaktive/disposable/DisposableBuilderWithoutCallbackJvmNativeTest.kt | badoo | 174,194,386 | false | null | package com.badoo.reaktive.disposable
import com.badoo.reaktive.test.doInBackgroundBlocking
import kotlin.test.Test
import kotlin.test.assertTrue
class DisposableBuilderWithCallbackJvmNativeTest {
@Test
fun isDisposed_returns_true_IF_disposed_from_another_thread() {
val disposable = Disposable {}
... | 8 | Kotlin | 49 | 956 | c712c70be2493956e7057f0f30199994571b3670 | 429 | Reaktive | Apache License 2.0 |
app/src/main/java/com/yly/sunnyweather/logic/network/ServiceCreator.kt | Mayo92 | 260,641,362 | false | null | package com.yly.sunnyweather.logic.network
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
/*
* 项目名: SunnyWeather
* 包 名: com.yly.sunnyweather.logic.network
* 文件名: ServiceCreator
* 创建者: YLY
* 时 间: 2020-05-02 17:06
* 描 述: TODO
*/
object ServiceCreator {
private const val BA... | 0 | Kotlin | 0 | 0 | c0b2378290d18b5f2a6318eca73597cae9014563 | 653 | SunnyWeather | Apache License 2.0 |
features/home/impl/src/main/java/ru/aleshin/features/home/impl/presentation/ui/common/CompactCategoriesChoosers.kt | v1tzor | 638,022,252 | false | {"Kotlin": 1688951} | /*
* Copyright 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 in writin... | 7 | Kotlin | 31 | 262 | 4238f8d894ab51859b480d339e6b23ab89d79190 | 8,804 | TimePlanner | Apache License 2.0 |
src/main/java/no/nav/fo/veilarbregistrering/metrics/Events.kt | navikt | 131,013,336 | false | null | package no.nav.fo.veilarbregistrering.metrics
enum class Events(override val key: String) : Event {
AKTIVER_BRUKER("oppfolging.aktiverBruker.event"),
AKTIVER_BRUKER_FEIL("oppfolging.aktiverBruker.feil.event"),
REAKTIVER_BRUKER("oppfolging.reaktiverBruker.event"),
OPPFOLGING_SYKMELDT("oppfolging.sykmeld... | 13 | Kotlin | 4 | 4 | a103f2b269a494d99f5f61fbc5b8505221c8f1f0 | 1,820 | veilarbregistrering | MIT License |
vk-api-generated/src/main/kotlin/name/anton3/vkapi/generated/apps/methods/AppsGetFriendsListExtended.kt | Anton3 | 159,801,334 | true | {"Kotlin": 1382186} | @file:Suppress("unused", "MemberVisibilityCanBePrivate", "SpellCheckingInspection")
package name.anton3.vkapi.generated.apps.methods
import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import name.anton3.vkapi.generated.apps.objects.RequestType
import name.anton3.vkapi.generated.users.objects.Fields
import name... | 2 | Kotlin | 0 | 8 | 773c89751c4382a42f556b6d3c247f83aabec625 | 1,256 | kotlin-vk-api | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/greengrassv2/SystemResourceLimitsPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.greengrassv2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.greengrassv2.CfnDeployment
@Generated
public fun buildSystemResourceLimitsProperty(initializer: @AwsCdkDsl
CfnDeployment.... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 503 | aws-cdk-kt | Apache License 2.0 |
test/kotlin/integration/proxying/ProxyPollPerformHTTPRequestWithoutUsingPACProxyTest.kt | envoyproxy | 173,839,917 | false | null | package test.kotlin.integration.proxying
import android.content.Context
import android.net.ConnectivityManager
import android.net.ProxyInfo
import androidx.test.core.app.ApplicationProvider
import io.envoyproxy.envoymobile.LogLevel
import io.envoyproxy.envoymobile.Custom
import io.envoyproxy.envoymobile.Engine
impor... | 38 | null | 88 | 555 | a9ce5f854d789a9d95d53f8ed3a0f3e4013b7671 | 4,167 | envoy-mobile | Apache License 2.0 |
mmkunyi/src/main/java/com/zawhtetnaing/mmkunyi_app_assignment_zhn/view/holders/JobViewHolder.kt | zawhtetnaing10 | 142,637,994 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 3, "Java": 2, "XML": 66, "Kotlin": 72} | package com.zawhtetnaing.mmkunyi_app_assignment_zhn.view.holders
import android.support.v7.widget.RecyclerView
import android.view.View
import com.zawhtetnaing.mmkunyi_app_assignment_zhn.data.vos.JobVO
import com.zawhtetnaing.mmkunyi_app_assignment_zhn.delegates.JobDelegate
import com.zawhtetnaing.mmkunyi_app_assignme... | 0 | Kotlin | 0 | 0 | 4617a1baa5887a48bf9f648cec6988ff42066244 | 1,249 | MMKuNyi-App-Assignment-ZHN | MIT License |
src/main/kotlin/Module.kt | robot-rover | 752,329,843 | false | {"Kotlin": 11395, "Python": 3482, "Just": 260} | abstract class Module {
abstract fun commitMemory()
abstract val type: ModuleType
abstract fun process()
}
typealias ModuleMap<T> = MutableMap<ModuleType, T>
enum class ModuleType {
Eco, Birth
}
val PRIORITY: Array<Array<Pair<ModuleType, Double>>> = arrayOf(
arrayOf(Pair(ModuleType.Eco, 1.0)),
... | 0 | Kotlin | 0 | 0 | 49ba49bc6299a7937fabcaadf4152126df480c95 | 361 | screeps | MIT License |
app/src/main/kotlin/com/simplemobiletools/calendar/helpers/WeeklyCalendarImpl.kt | tjb | 85,851,175 | true | {"Kotlin": 249776} | package com.simplemobiletools.calendar.helpers
import android.content.Context
import com.simplemobiletools.calendar.interfaces.WeeklyCalendar
import com.simplemobiletools.calendar.models.Event
import java.util.*
class WeeklyCalendarImpl(val mCallback: WeeklyCalendar, val mContext: Context) : DBHelper.GetEventsListene... | 0 | Kotlin | 0 | 1 | 1b80f167234914e4491e1853361856073764db6a | 738 | Simple-Calendar | Apache License 2.0 |
app/src/main/java/uk/co/jakelee/preferencesexample/PreferencesHelper.kt | JakeSteam | 172,698,380 | false | null | package uk.co.jakelee.preferencesexample
import android.content.Context
import android.preference.PreferenceManager
class PreferenceHelper(val context: Context) {
val prefs = PreferenceManager.getDefaultSharedPreferences(context)
enum class BooleanPref(val prefId: Int, val defaultId: Int) {
setting1(... | 0 | Kotlin | 0 | 3 | 84f01d028687718eade40671e2a9e3feb7dd0c3b | 1,693 | PreferencesExample | MIT License |
core/src/test/java/io/github/thibaultbee/streampack/internal/muxers/flv/amf/containers/AmfEcmaArrayTest.kt | ThibaultBee | 262,623,449 | false | null | package io.github.thibaultbee.streampack.internal.muxers.flv.amf.containers
import io.github.thibaultbee.streampack.internal.muxers.flv.amf.AmfType
import io.github.thibaultbee.streampack.internal.utils.extractArray
import org.junit.Assert.assertArrayEquals
import org.junit.Test
class AmfEcmaArrayTest {
@Test
... | 8 | Kotlin | 70 | 99 | 3a9af52fd6f34c2dac308ece85a2a38c6d64760e | 771 | StreamPack | Apache License 2.0 |
android/quest/src/androidTest/java/org/smartregister/fhircore/quest/integration/ui/profile/components/ChangeManagingEntityViewTest.kt | opensrp | 339,242,809 | false | {"Kotlin": 3034140, "Java": 4967, "JavaScript": 3548, "CSS": 459} | /*
* Copyright 2021-2023 Ona Systems, 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 o... | 192 | Kotlin | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 3,432 | fhircore | Apache License 2.0 |
api/src/main/kotlin/net/bytemc/bytecloud/api/services/CloudServiceProvider.kt | bytemcnetzwerk | 684,494,766 | false | {"Kotlin": 163692} | package net.bytemc.bytecloud.api.services
import net.bytemc.bytecloud.api.group.CloudGroup
import net.bytemc.bytecloud.api.network.PacketDeserializable
import java.util.Optional
interface CloudServiceProvider : PacketDeserializable<CloudService> {
fun registerService(service: CloudService): CloudService
fun... | 2 | Kotlin | 3 | 5 | 6657d004ab2d53516506ea57a0cea09506eea8ce | 730 | bytecloud | Apache License 2.0 |
app/src/main/java/com/example/scopedstoragedemo/Image.kt | ruanyandong | 344,148,449 | false | null | package com.example.scopedstoragedemo
import android.net.Uri
class Image(val uri: Uri, var checked: Boolean) | 0 | Kotlin | 0 | 3 | 4d0cb875282baa5ee55ae26c4e9cff68a87329b5 | 110 | Android10-Scoped-Storage | Apache License 2.0 |
shared/src/commonMain/kotlin/domain/MovieListViewModel.kt | youranshul | 652,226,399 | false | null | package domain
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import data.PopularMoviesDataRepository
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableStateFlow
import k... | 0 | null | 4 | 22 | c94b618b00fb58702c197e4fd4edced4c7363163 | 1,880 | KmmMovieBuff | Apache License 2.0 |
app/src/main/java/com/example/timewisefrontend/models/Category.kt | HumanClone | 633,372,328 | false | null | package com.example.timewisefrontend.models
import com.google.gson.annotations.SerializedName
data class Category (
@SerializedName("userId") val UserId:String?,
@SerializedName("categoryId")val id:String?,
@SerializedName("name")val Name:String,
@SerializedName("totalHours") val Totalhours: Double?... | 0 | Kotlin | 0 | 1 | 58d7e55325d948a34a3d13a045dcfd8d1ccd518d | 331 | TimeWiseFrontEnd | MIT License |
app/src/main/java/org/studentmain/xuegaoremote/XueGaoService.kt | studentmain | 366,129,974 | false | null | package org.studentmain.xuegaoremote
import android.Manifest
import android.bluetooth.*
import android.bluetooth.le.ScanCallback
import android.bluetooth.le.ScanResult
import android.content.Context
import android.content.Intent
import android.os.Handler
import android.os.Looper
import android.util.Log
import androidx... | 0 | Kotlin | 1 | 2 | 2d1b62c93faa070f982a88b2038a2b0a769d0f9f | 5,947 | XuegaoRemote | BSD Zero Clause License |
app/src/main/java/xyz/dean/androiddemos/MainApp.kt | deanssss | 203,539,447 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "INI": 2, "Proguard": 4, "Kotlin": 70, "XML": 31, "Java": 4, "JSON": 1} | package xyz.dean.androiddemos
import com.google.auto.service.AutoService
import xyz.dean.framework.common.BaseApp
import xyz.dean.framework.common.event.ComponentEventManifest
import xyz.dean.framework.common.service.ComponentServiceManifest
@Suppress("unused")
@AutoService(BaseApp::class)
class MainApp : BaseApp {
... | 1 | null | 1 | 1 | 41020b7639c96b7d8d0a84edf63610153f07e2c3 | 609 | AndroidDemos | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinGradlePluginIT.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2016 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... | 34 | null | 4980 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 29,309 | kotlin | Apache License 2.0 |
page/src/main/java/com/halcyonmobile/page/db/ValueToKeyMapper.kt | halcyonmobile | 210,580,287 | false | {"Kotlin": 152162} | /*
* Copyright (c) 2020 Halcyon Mobile.
* https://www.halcyonmobile.com
*
* 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
*
* Unles... | 15 | Kotlin | 0 | 1 | 269dd83f85431a628a4ff4f5845046b3ef8984e6 | 1,690 | page-extension | Apache License 2.0 |
features/masterpassword/masterPasswordDomain/src/commonMain/kotlin/io/spherelabs/masterpassworddomain/IsPasswordExist.kt | getspherelabs | 687,455,894 | false | {"Kotlin": 499164, "Ruby": 6984, "Swift": 1167, "Shell": 226} | package io.spherelabs.masterpassworddomain
import io.spherelabs.data.settings.masterpassword.MasterPasswordSetting
interface IsPasswordExist {
suspend fun execute(): Boolean
}
class DefaultIsPasswordExist(private val prefs: MasterPasswordSetting) : IsPasswordExist {
override suspend fun execute(): Boolean {
... | 19 | Kotlin | 13 | 90 | 696fbe6f9c4ff9e8a88492a193d6cb080df41ed6 | 357 | anypass-kmp | Apache License 2.0 |
github-integration/src/test/java/de/zalando/zally/integration/mock/EmbeddedPostgresqlConfiguration.kt | hpdang | 148,153,657 | true | null | package de.zalando.zally.integration.mock
import org.springframework.boot.SpringBootConfiguration
import org.springframework.boot.autoconfigure.flyway.FlywayMigrationStrategy
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.contex... | 0 | Kotlin | 0 | 415 | 91bc7341a5b8d9a65bc67e8ca680b6c423d6c684 | 678 | zally | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/shield/CfnProtectionDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.shield
import io.cloudshiftdev.awscdkdsl.CfnTagDsl
import... | 0 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 11,506 | awscdk-dsl-kotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/Dependencies.kt | Burdzi0 | 326,246,930 | true | {"Kotlin": 224609, "Shell": 304} |
object Libs {
const val kotlin_version = "1.4.21"
const val liquibase_version="3.6.1"
const val h2_version="1.4.193"
object H2 {
private const val version = "1.4.193"
const val h2 = "com.h2database:h2:$version"
}
object Kotlin {
const val kotlinStdLib = "org.jetbrai... | 0 | null | 0 | 0 | 6d40e6c9a54a9ebb90217603e0d8e37d886e1884 | 2,346 | nee | Apache License 2.0 |
src/main/kotlin/com/aoverin/invest/InvestApplication.kt | a-overin | 776,842,962 | false | {"Kotlin": 29524, "Procfile": 81} | package com.aoverin.invest
import com.aoverin.invest.configurations.CostFillConfiguration
import com.aoverin.invest.configurations.InfoFillConfiguration
import com.aoverin.invest.configurations.PolygonApiProperties
import com.aoverin.invest.configurations.TelegramBotProperties
import org.springframework.boot.autoconfi... | 0 | Kotlin | 0 | 0 | c158362f77d0f0addf999d1551064a4d8adf6b30 | 841 | invest-v2 | Apache License 2.0 |
model/src/test/java/com/razeware/emitron/model/LinksTest.kt | razeware | 192,712,585 | false | null | package com.razeware.emitron.model
import android.net.Uri
import com.google.common.truth.Truth.assertThat
import com.nhaarman.mockitokotlin2.doReturn
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.whenever
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import ... | 30 | null | 31 | 53 | 4dcb00f09eee2ae1ff0a6c9c2e2dd141227b51c4 | 1,526 | emitron-Android | Apache License 2.0 |
kotlin-source/src/test/kotlin/net/corda/examples/obligation/flows/ObligationTests.kt | R3-Archive | 123,595,560 | false | null | package net.corda.examples.obligation.flows
import net.corda.core.contracts.Amount
import net.corda.core.contracts.UniqueIdentifier
import net.corda.core.utilities.OpaqueBytes
import net.corda.core.utilities.getOrThrow
import net.corda.finance.flows.CashIssueFlow
import net.corda.testing.internal.chooseIdentity
import... | 2 | null | 14 | 5 | aeec37e400ff62e201f51ef99059a64a527ff7d3 | 3,391 | obligation-cordapp | Apache License 2.0 |
app/src/main/java/com/example/spygamers/screens/register/ConfirmPasswordTextField.kt | Juicy-Lemonberry | 748,985,682 | false | {"Kotlin": 257724} | package com.example.spygamers.screens.register
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text
import androidx.compose.material.TextField
import androidx.compose.runtime.C... | 3 | Kotlin | 2 | 1 | 9512696751a6c7dc5e0361f43b3b08097208ea42 | 1,425 | SpyGamers-App | MIT License |
src/main/kotlin/core/component/render/MultiSpriteAnimationComponent.kt | nflsilva | 521,306,727 | false | {"Kotlin": 72548, "GLSL": 3784} | package core.component.render
import core.BaseEntity
import core.component.BaseComponent
import core.dto.UpdateContext
import render.model.MultiSprite
import java.util.*
class MultiSpriteAnimationComponent(
entityId: UUID,
private val loop: Boolean = true,
) : BaseComponent(entityId) {
private data class... | 0 | Kotlin | 0 | 0 | 5047a234767efda80c0afec990bf27aec5b8effd | 2,095 | 2DGT | MIT License |
data/src/main/java/com/m3u/data/service/impl/PlayerManagerImpl.kt | realOxy | 592,741,804 | false | {"Kotlin": 532650} | package com.m3u.data.service.impl
import android.content.Context
import android.graphics.Rect
import androidx.annotation.OptIn
import androidx.compose.runtime.getValue
import androidx.media3.common.AudioAttributes
import androidx.media3.common.C
import androidx.media3.common.MediaItem
import androidx.media3.common.Pla... | 2 | Kotlin | 6 | 49 | 789adbe85d6ad8ab2003b147c2dea5fbdbf46d72 | 4,356 | M3UAndroid | Apache License 2.0 |
src/main/kotlin/io/github/intellij/dlanguage/features/documentation/DDocParserDefinition.kt | intellij-dlanguage | 27,922,930 | false | null | package io.github.intellij.dlanguage.features.documentation
import com.intellij.lang.ASTNode
import com.intellij.lang.ParserDefinition
import com.intellij.lang.PsiParser
import com.intellij.lexer.Lexer
import com.intellij.openapi.project.Project
import com.intellij.psi.FileViewProvider
import com.intellij.psi.PsiEleme... | 170 | null | 53 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 4,515 | intellij-dlanguage | MIT License |
detekt-rules-style/src/test/kotlin/io/gitlab/arturbosch/detekt/rules/style/UseRequireSpec.kt | arturbosch | 71,729,669 | false | null | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.rules.setupKotlinEnvironment
import io.gitlab.arturbosch.detekt.test.assertThat
import io.gitlab.arturbosch.detekt.test.compileAndLint
import io.gitlab.arturbosch.detekt.test.compileAndLintW... | 125 | null | 589 | 4,331 | 6c3c28df3af8e9d8889af9f7ad39506e03af7f69 | 8,219 | detekt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.