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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
azure-communication-ui/demo-app/src/calling/java/com/azure/android/communication/ui/callingcompositedemoapp/FirebaseMessagingService.kt | Azure | 429,521,705 | false | {"Kotlin": 2713288, "Java": 192826, "Shell": 3964, "HTML": 1856} | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callingcompositedemoapp
import android.content.Context
import android.content.Intent
import android.os.PowerManager
import android.util.Log
import com.azure.android.communication.... | 7 | Kotlin | 28 | 24 | d7e46c6063e8e9d3ed548acff2465b5d0f57b1b2 | 4,154 | communication-ui-library-android | MIT License |
KotlinBoilerplate/app/src/main/java/com/tiknil/app/di/modules/UiModule.kt | tiknil | 231,347,612 | false | null | package com.tiknil.app.di.modules
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.tiknil.app.di.AppViewModelFactory
import dagger.Module
import dagger.Provides
import javax.inject.Provider
@Module(includes = [ViewModelsModule::class])
class UiModule {
@Provides
fun ... | 0 | Kotlin | 0 | 0 | b3cfb0cf011cebb7ccdd0e8afa3255cc826afb95 | 508 | kotlin-boilerplate-mvvm | Apache License 2.0 |
model/src/main/kotlin/no/nav/dagpenger/model/seksjon/Henvendelser.kt | navikt | 292,224,937 | false | {"Kotlin": 1028190, "Dockerfile": 813} | package no.nav.dagpenger.model.seksjon
import no.nav.dagpenger.model.faktum.Fakta
import no.nav.dagpenger.model.faktum.Faktatype
import no.nav.dagpenger.model.faktum.Faktaversjon
import no.nav.dagpenger.model.faktum.Person
import no.nav.dagpenger.model.marshalling.FaktumNavBehov
import no.nav.dagpenger.model.subsumsjo... | 3 | Kotlin | 0 | 0 | efdee4e8e4debeeb4d1e9280d6a0c49b56f9bc1e | 4,185 | dp-quiz | MIT License |
shared/src/commonMain/kotlin/data/repository/salary/SalaryRepositoryImpl.kt | adelsaramii | 727,620,001 | false | {"Kotlin": 1014333, "Swift": 2299, "Shell": 228} | package com.attendace.leopard.data.repository.salary
import arrow.core.Either
import com.attendance.leopard.data.model.Salary
import com.attendance.leopard.data.source.remote.model.dto.toSalary
import com.attendace.leopard.data.source.remote.service.salary.SalaryService
import com.attendace.leopard.util.error.Failure
... | 0 | Kotlin | 0 | 0 | ed51d4c99caafefc5fc70cedbe0dd0fa62cce271 | 702 | Leopard-Multiplatform | Apache License 2.0 |
src/main/kotlin/org/lwjglb/engine/loaders/md5/MD5AnimHeader.kt | hoijui | 266,380,281 | false | null | package org.lwjglb.engine.loaders.md5
import java.util.regex.Pattern
class MD5AnimHeader {
var version: String? = null
var commandLine: String? = null
var numFrames = 0
var numJoints = 0
var frameRate = 0
var numAnimatedComponents = 0
override fun toString(): String {
return "anim... | 1 | Kotlin | 0 | 0 | b0d064efe8dcf3dd5a756171733ace7485b3705d | 1,985 | lwjgl-book-game26-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/ratik/uttam/ui/landing/LandingViewModel.kt | libhide | 53,421,614 | false | {"Kotlin": 110864} | package com.ratik.uttam.ui.landing
import com.ratik.uttam.core.BaseViewModel
import com.ratik.uttam.core.DispatcherProvider
import com.ratik.uttam.core.Ignored
import com.ratik.uttam.core.contract.ViewEvent.Navigate
import com.ratik.uttam.ui.landing.LandingAction.GetStarted
import com.ratik.uttam.ui.landing.LandingNav... | 0 | Kotlin | 0 | 3 | 3ff320d2131415608080f131f7fdfc80e329d6ef | 872 | uttam | MIT License |
compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/LinkAnnotation.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 24 | null | 930 | 5,073 | 559b440b4b57a373b305bfc0fe0f284a9f68a1c1 | 5,926 | androidx | Apache License 2.0 |
src/main/kotlin/com/braisgabin/detekt/junit/JUnitRuleSetProvider.kt | BraisGabin | 401,363,031 | false | {"Kotlin": 21299} | package com.braisgabin.detekt.junit
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
class JUnitRuleSetProvider : RuleSetProvider {
override val ruleSetId: String = "JUnit"
override fun instance(config: Config): Ru... | 2 | Kotlin | 0 | 5 | 632470befd6b1fda83981abe885f7e8fd258bd13 | 521 | detekt-junit-rules | Apache License 2.0 |
src/main/kotlin/com/braisgabin/detekt/junit/JUnitRuleSetProvider.kt | BraisGabin | 401,363,031 | false | {"Kotlin": 21299} | package com.braisgabin.detekt.junit
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.RuleSet
import io.gitlab.arturbosch.detekt.api.RuleSetProvider
class JUnitRuleSetProvider : RuleSetProvider {
override val ruleSetId: String = "JUnit"
override fun instance(config: Config): Ru... | 2 | Kotlin | 0 | 5 | 632470befd6b1fda83981abe885f7e8fd258bd13 | 521 | detekt-junit-rules | Apache License 2.0 |
SerawaziApplication/app/src/main/java/com/greenrevive/serawaziapplication/AnswerChat.kt | winnieSikinyi | 725,502,401 | false | {"Kotlin": 109603} | package com.greenrevive.serawaziapplication
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebChromeClient
import android.webkit.WebView
import android.webkit.WebViewClient
import com.greenrevive.serawaziapplication.R
import com.greenrevive.... | 0 | Kotlin | 0 | 0 | b91fac84ae0c512ad8f8e61a348c4d4e01f3f776 | 2,141 | SeraMobile- | MIT License |
app/src/main/java/co/timetableapp/ui/timetables/TermsAdapter.kt | farbodsz | 65,389,161 | false | null | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 46 | Kotlin | 2 | 2 | 6d49e1f321f111fad5b6a5697a0e337e09272e71 | 2,279 | TimetableApp | Apache License 2.0 |
docs/code/test/EdgeCasesTest.kt | adamko-dev | 465,838,213 | false | {"Kotlin": 70444} | // This file was automatically generated from edgecases.md by Knit tool. Do not edit.
@file:Suppress("JSUnusedLocalSymbols")
package dev.adamko.kxstsgen.example.test
import dev.adamko.kxstsgen.util.*
import io.kotest.core.spec.style.*
import io.kotest.matchers.*
import kotlinx.knit.test.*
class EdgeCasesTest : FunSpe... | 11 | Kotlin | 5 | 56 | 9a0866cd6e64456bff0c35ded462e91f1b144150 | 2,411 | kotlinx-serialization-typescript-generator | Apache License 2.0 |
app/src/androidTest/java/com/jraska/github/client/xpush/PushServerClient.kt | j3tm1r | 358,836,554 | true | {"Kotlin": 282276} | package com.jraska.github.client.xpush
import io.reactivex.Completable
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.http.Body
import re... | 0 | null | 0 | 0 | 6e8b2a454c7d352f988f63310e9e90fbe5803008 | 1,298 | github-client | Apache License 2.0 |
androidapp/src/com/lilli/gulliver/LilliIPDownloader.kt | chenkaigithub | 57,477,549 | true | {"Kotlin": 34863, "Python": 12192, "Java": 3848} | package com.lilli.gulliver
import android.content.Context
import java.io.File
object LilliIPDownloader : Downloader {
override fun getData(resource: String, context: Context?, options: Map<String, String?>?): File? {
return LilliDownloader.getData(resource, context, options)
}
public fun toString... | 0 | Kotlin | 0 | 0 | e027f48ddee22609c3302b2a9f7f40d522741c5a | 367 | lilli | The Unlicense |
Compose/BasicswithCompose/PracticeComposeBasics/FlightSearch/src/main/java/com/example/flightsearch/data/database/dao/AirportSearchDao.kt | pherasymchuk | 723,622,473 | false | {"Kotlin": 1123460} | package com.example.flightsearch.data.database.dao
import androidx.room.Dao
import androidx.room.Query
import com.example.flightsearch.data.database.model.DatabaseAirport
import kotlinx.coroutines.flow.Flow
@Dao
interface AirportSearchDao {
@Query("SELECT * FROM airport WHERE name LIKE '%' || :text || '%' OR iata... | 0 | Kotlin | 0 | 1 | 3ce861137744a57058ab1be1ec9adbf3ee179764 | 625 | GoogleCodelabsApps | MIT License |
domain/settings/data/src/jvmMain/kotlin/br/alexandregpereira/hunter/data/settings/di/JvmModule.kt | alexandregpereira | 347,857,709 | false | {"Kotlin": 1412071, "Swift": 754, "Shell": 139} | /*
* 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 writi... | 4 | Kotlin | 5 | 85 | 5256ca9553e070f11a8cde5515afb74503b1a23c | 892 | Monster-Compendium | Apache License 2.0 |
lecture/app/src/main/java/study/bty/androidstudy/CatActivity.kt | BTY-BetterThanYesterday | 307,002,445 | false | null | package study.bty.androidstudy
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_main.*
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import study.bty.androidstudy.cat.ApiClient
import stud... | 1 | null | 1 | 4 | 8aa83934fb2ca82b7ab7f4fd1dd3b77557fa9b30 | 1,348 | AndroidStudy | MIT License |
core/src/main/java/com/benkkstudios/ads/core/enums/ProviderType.kt | benkkstudios | 834,326,902 | false | {"Kotlin": 174900, "Java": 41761} | package com.benkkstudios.ads.core.enums
enum class ProviderType {
PRIMARY,
SECONDARY
} | 0 | Kotlin | 0 | 0 | f1bbdb1eb5e9b42f63cf0c89f711b918f5b9fd2d | 95 | BeeAds | Apache License 2.0 |
app/src/main/java/com/example/jetnotesapp/ui/screens/add_edit_note/AddEditNoteScreen.kt | VladShurakov | 695,581,875 | false | {"Kotlin": 94730} | package com.example.jetnotesapp.ui.screens.add_edit_note
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx... | 1 | Kotlin | 0 | 1 | 7f8b52d9920e3cd867ce82d475ec06e2d7ad0429 | 4,585 | JetNotesApp | MIT License |
src/jvmMain/kotlin/cn/netdiscovery/monica/opencv/ImageProcess.kt | fengzhizi715 | 791,824,947 | false | {"Kotlin": 644938} | package cn.netdiscovery.monica.opencv
import cn.netdiscovery.monica.utils.arch
import cn.netdiscovery.monica.utils.isMac
import cn.netdiscovery.monica.utils.isWindows
import java.io.File
/**
*
* @FileName:
* cn.netdiscovery.monica.opencv.ImageProcess
* @author: <NAME>
* @date: 2024/7/14 21:22
* @versi... | 0 | Kotlin | 6 | 67 | d294095298a07852fc63f3195fae92540c85d38b | 3,226 | Monica | Apache License 2.0 |
lib/src/main/kotlin/io/github/flaviolionelrita/lambdaorm/client/model/QueryQueuedRequest.kt | FlavioLionelRita | 607,104,769 | false | null | package io.github.flaviolionelrita.lambdaorm.client.model
data class QueryQueuedRequest (
val expression: String,
val topic: String,
val options: QueryOptions,
val `data`: Any? = null,
val chunk: java.math.BigDecimal? = null
)
| 0 | Kotlin | 0 | 0 | b525c130842f6299343699674ac91d9699615800 | 247 | lambdaorm-client-kotlin | MIT License |
src/main/kotlin/com/oburtaksi/positionsimulator/App.kt | hasanozgan | 197,203,934 | false | null | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package com.oburtaksi.positionsimulator
import com.oburtaksi.positionsimulator.infrastructure.config.Configuration
import com.oburtaksi.positionsimulator.application.JourneySimulator
import com.oburtaksi.positionsimulator.domain.JourneyService
... | 0 | Kotlin | 0 | 0 | 4cab3ad185344bbe2ed35d9d5130de9938f5d035 | 2,207 | obur-taksi-position-simulator | MIT License |
examples/chat/shared/src/commonMain/kotlin/Data.kt | JetBrains | 293,498,508 | false | {"Kotlin": 1921608, "Shell": 12615, "Dockerfile": 6720, "JavaScript": 5187, "Swift": 2823, "Ruby": 2627, "Java": 1964, "HTML": 1834, "PowerShell": 1708, "Groovy": 1415} | import androidx.compose.ui.graphics.Color
import kotlinx.datetime.Clock
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.ExperimentalResourceApi
import kotlin.random.Random
import kotlin.random.nextInt
data class Message(
val user: User,
val text: String,
val s... | 64 | Kotlin | 1174 | 16,150 | 7e9832f6494edf3e7967082c11417e78cfd1d9d0 | 1,094 | compose-multiplatform | Apache License 2.0 |
app/src/main/java/com/example/todo/injection/ActivityBuilderModule.kt | PabiMoloi | 199,569,679 | false | null | package com.example.todo.injection
import com.example.todo.view.main.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityBuilderModule {
@ContributesAndroidInjector
abstract fun bindMainActivity(): MainActivity
} | 0 | Kotlin | 0 | 0 | 10321fff9a4fc2c46100511cb2945b824494783f | 285 | To-Do-List | Apache License 2.0 |
app/src/androidTest/java/com/typeup/search_apps/TestSearchActivity.kt | marko-mihajlovic | 399,950,230 | false | null | package com.typeup.search_apps
import android.content.Intent
import android.provider.Settings
import androidx.test.espresso.Espresso.onData
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.*
import androidx.test.espresso.assertion.PositionAssertions.isCompletelyBelow
impor... | 0 | Kotlin | 0 | 1 | 8c557f77080cb1cd8b0f58406cb1a3d4fb5b1845 | 3,643 | TypeUp | MIT License |
data/impl/src/main/kotlin/com/morfly/sample/data/impl/storage/entity/StoredUser.kt | Morfly | 398,528,749 | false | null | package com.morfly.sample.data.impl.storage.entity
import androidx.room.ColumnInfo
import com.morfly.sample.common.domain.User
data class StoredUser(
@ColumnInfo(name = "id") override val id: String,
override val name: String,
@ColumnInfo(name = "image_url") override val imageUrl: String
) : User | 2 | Kotlin | 5 | 43 | 93b22c1e198955705ef31aaeadb2b091a90fcdd5 | 312 | compose-arch-sample | MIT License |
skiko/src/awtMain/kotlin/org/jetbrains/skiko/context/OpenGLContextHandler.kt | JetBrains | 282,864,178 | false | null | package org.jetbrains.skiko.context
import org.jetbrains.skija.ColorSpace
import org.jetbrains.skija.FramebufferFormat
import org.jetbrains.skija.Surface
import org.jetbrains.skija.SurfaceColorFormat
import org.jetbrains.skija.SurfaceOrigin
import org.jetbrains.skiko.OpenGLApi
import org.jetbrains.skiko.SkiaLayer
impo... | 80 | null | 71 | 840 | cf67c819f15ffcd8b6ecee3edb29ae2cdce1f2fe | 2,465 | skiko | Apache License 2.0 |
androidOlympusBlog/src/main/java/com/olympusblog/android/BaseApplication.kt | sentrionic | 551,827,184 | false | null | package com.olympusblog.android
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class BaseApplication: Application()
| 0 | Kotlin | 0 | 0 | bb61f26adcdded63b83c505d2f67c50715e8b859 | 160 | OlympusKMM | MIT License |
core/navigation/impl/src/commonMain/kotlin/ru/kyamshanov/mission/core/navigation/impl/di/NavigationComponentImpl.kt | KYamshanov | 656,042,097 | false | {"Kotlin": 435078, "Batchfile": 2703, "HTML": 199, "Dockerfile": 195} | package ru.kyamshanov.mission.core.navigation.impl.di
import ru.kyamshanov.mission.core.di.impl.koin.AbstractComponent
import ru.kyamshanov.mission.core.navigation.api.Navigator
import ru.kyamshanov.mission.core.navigation.api.ResultBus
import ru.kyamshanov.mission.core.navigation.api.di.NavigationComponent
import ru.... | 6 | Kotlin | 0 | 1 | ec372a3bb07d17363b1d41d3f91db28506763973 | 645 | Mission-app | Apache License 2.0 |
tripleklay/src/test/kotlin/tripleklay/util/TypedStorageTest.kt | cdietze | 89,875,388 | false | null | package tripleklay.util
class TypedStorageTest {
// TODO(cdi) re-add when react.RSet is implemented
// @Test fun testSetFor() {
// val pf = StubPlatform()
// val ts = TypedStorage(pf.log(), pf.storage())
// val id = Functions.identity()
//
// val strings = ts.setFor("strings", id, i... | 0 | Kotlin | 0 | 4 | 72031aa267cd304a0612b31c871e2f5cf73d2c4c | 1,030 | klay | Apache License 2.0 |
detail/src/main/java/com/dicoding/detail/ui/DetailViewModel.kt | zakuby | 331,148,528 | false | null | package com.dicoding.detail.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import androidx.paging.PagedList
import com.dicoding.core.data.remote.response.Result
import com.... | 0 | Kotlin | 0 | 0 | 78aed112a3356a9854a8b6fc1708a5f05ebb7a71 | 2,420 | capstone-moviedb | Apache License 2.0 |
JetLagged/app/src/main/java/com/example/jetlagged/sleep/JetLaggedHeader.kt | android | 211,288,349 | false | {"Kotlin": 1511353, "Shell": 9647} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 19 | Kotlin | 4785 | 20,140 | b7897e75b4ac039bd407b6f438cbe30800cc5771 | 2,459 | compose-samples | Apache License 2.0 |
app/src/main/java/com/marlonmafra/coronavirustrackingapp/segmentedTab/LeftTabView.kt | pucamafra | 249,177,290 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 42, "XML": 48, "Java": 1} | package com.marlonmafra.coronavirustrackingapp.segmentedTab
import android.content.Context
class LeftTabView(
context: Context,
layout: Int
) : TabView(context, layout) {
override fun getCornerRadii(roundRadius: Float): FloatArray = floatArrayOf(
roundRadius,
roundRadius,
0f,
... | 1 | null | 1 | 1 | e9b9688704fc06c53a7d387984ccfda39618b42b | 399 | coronaVirusTrackingApp | Apache License 2.0 |
kroki-utils/src/main/kotlin/io/github/kerubistan/kroki/random/random.kt | tomas-c | 300,040,539 | true | {"Kotlin": 102954} | package io.github.kerubistan.kroki.random
import java.util.*
private val pwdCharacters = (
('a'..'z').toList() +
('A'..'Z').toList() +
('0'..'9').toList() +
listOf('_', '-', '.')).toCharArray()
private val globalRandom = Random()
fun genPassword(length: Int = 16, rnd: Random = globalRandom, characters... | 0 | null | 0 | 0 | f6131f50a59502573a3737092d84d3fad149e737 | 459 | kroki | Apache License 2.0 |
tst/poyea/aoc/mmxxii/Day21.kt | poyea | 572,895,010 | false | {"Kotlin": 68491} | package poyea.aoc.mmxxii.day21
import poyea.aoc.utils.readInput
import kotlin.test.Test
import kotlin.test.assertEquals
class Day21Test {
@Test
fun part1Ans() {
assertEquals(part1(readInput("Day21")), 282285213953670)
}
@Test
fun part2Ans() {
assertEquals(part2(readInput("Day21"))... | 0 | Kotlin | 0 | 1 | fd3c96e99e3e786d358d807368c2a4a6085edb2e | 345 | aoc-mmxxii | MIT License |
app/src/main/java/com/identity_crisis/thesamaritans/adapter/PersonalRequestViewHolder.kt | MrRobo24 | 323,911,176 | false | null | package com.identity_crisis.thesamaritans.adapter
import com.identity_crisis.thesamaritans.R
import com.identity_crisis.thesamaritans.model.UserList
import com.xwray.groupie.GroupieViewHolder
import com.xwray.groupie.Item
import kotlinx.android.synthetic.main.single_request_row.view.*
class PersonalRequestViewHolder(... | 0 | Kotlin | 3 | 1 | e70098feb1b79603bf9acc8103267fcc1fa41c34 | 648 | TheSamaritanProject | MIT License |
mobile-ui/src/main/java/com/lekaha/simpletube/ui/view/draggableView/DraggableView.kt | lekaha | 122,983,306 | false | null | /*
* Copyright (C) 2014 <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 w... | 0 | Kotlin | 1 | 2 | 6ee542991cb6d960e30c37b9b279a4f76c37b238 | 29,377 | youtube-like-video-player | MIT License |
src/main/java/ir/firoozehcorp/gameservice/handlers/command/resposne/CancelAutoMatchResponseHandler.kt | firoozehcorporation | 247,745,229 | false | null | /*
* <copyright file="CancelAutoMatchResponseHandler.kt" company="Firoozeh Technology LTD">
* Copyright (C) 2020. Firoozeh Technology LTD. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a ... | 0 | Kotlin | 0 | 0 | 2977427a328b7accb7972a03e4bd401a09693b72 | 1,536 | GameService-Kotlin-SDK | Apache License 2.0 |
ktpack-internal/dependency-resolver/src/commonMain/kotlin/ktpack/compilation/dependencies/MavenDependencyResolver.kt | DrewCarlson | 371,519,366 | false | {"Kotlin": 252702} | package ktpack.compilation.dependencies
import co.touchlab.kermit.Logger
import io.ktor.client.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import io.ktor.util.*
import kotlinx.serialization.decodeFromString
import ktpack.compilation.dependencies.models.DependencyNode
impor... | 15 | Kotlin | 0 | 6 | 48a0691e2a831f28b6d6ccede65fcefb2e29148f | 16,844 | ktpack | MIT License |
app/src/main/java/com/flixclusive/domain/model/entities/User.kt | rhenwinch | 659,237,375 | false | {"Kotlin": 1156049} | package com.flixclusive.domain.model.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class User(
@PrimaryKey(autoGenerate = true)
@ColumnInfo("userId")
val id: Int = 1,
val name: String = USER_DEFAULT_NAME,
val image: Int = 0
) {
... | 26 | Kotlin | 7 | 96 | a90215b8c40ac0675cd217b38b842d2d57c90acc | 401 | Flixclusive | MIT License |
app/src/main/java/com/kursatkumsuz/bootcampfinalprojecttravelapp/presentation/detail/adapter/DetailImagesAdapter.kt | kursatkumsuz | 542,943,275 | false | {"Kotlin": 120683} | package com.kursatkumsuz.bootcampfinalprojecttravelapp.presentation.detail.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.kursatkumsuz.bootcampfinalprojecttravelapp.databinding.ListItemDetailImagesBinding
import com.kursatkumsuz.boot... | 0 | Kotlin | 0 | 7 | af98db336c5ce4d1583f63baa70e68a1c364a849 | 1,181 | travel-guide | MIT License |
content-types/content-types-core-services/src/main/kotlin/org/orkg/contenttypes/domain/actions/AbstractTemplatePropertyCreator.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 4657129, "Cypher": 219284, "Python": 4881, "Shell": 2767, "Groovy": 1936, "HTML": 240} | package org.orkg.contenttypes.domain.actions
import org.orkg.common.ContributorId
import org.orkg.common.ThingId
import org.orkg.contenttypes.input.LiteralTemplatePropertyDefinition
import org.orkg.contenttypes.input.NumberLiteralTemplatePropertyDefinition
import org.orkg.contenttypes.input.ResourceTemplatePropertyDef... | 0 | Kotlin | 0 | 4 | e0b5959b4f5a4af50f3f677f1a206cf8074fa928 | 6,892 | orkg-backend | MIT License |
android/src/main/java/com/smileidentity/react/viewmanagers/SmileIDDocumentVerificationViewManager.kt | smileidentity | 681,120,205 | false | {"Kotlin": 88639, "TypeScript": 75411, "Swift": 67918, "Objective-C": 4927, "Objective-C++": 4853, "Ruby": 3010, "JavaScript": 2122, "Java": 696, "C": 103} | package com.smileidentity.react.viewmanagers
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReadableArray
import com.facebook.react.module.annotations.ReactModule
import com.facebook.react.uimanager.SimpleViewManager
import com.facebook.react.uimanager.ThemedReactContext
impo... | 6 | Kotlin | 2 | 0 | a2dcb77bbcc7085d4f829eb714cacfb6fcc4519a | 3,179 | react-native | MIT License |
app/src/main/java/dev/hitools/noah/modules/init/splash/SplashActivity.kt | EHG613 | 389,940,695 | true | {"Kotlin": 1096191, "Java": 274915, "Python": 4980, "Shell": 505} | package dev.hitools.noah.modules.init.splash
import android.os.Bundle
import androidx.lifecycle.Observer
import dev.hitools.common.entries.status.Success
import dev.hitools.common.extensions.fullWindow
import dev.hitools.common.utils.router.AppRouter
import dev.hitools.noah.R
import dev.hitools.noah.databinding.Activi... | 0 | null | 0 | 0 | be12dc9266810f3e64d55025e926a01b946c7228 | 1,423 | android-Common | Apache License 2.0 |
app/src/main/java/com/shicheeng/copymanga/viewmodel/ExploreMangaViewModel.kt | shizheng233 | 475,870,275 | false | null | package com.shicheeng.copymanga.viewmodel
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import com.shicheeng.copymanga.data.MangaSortBean
import com.shicheeng.copymang... | 5 | Kotlin | 0 | 58 | 0ac29592bde2b108b4da2f189db9f7b81f542b4b | 1,501 | CopyMangaJava | MIT License |
app/src/main/java/me/gm/cleaner/plugin/module/appmanagement/AppListViewModel.kt | MaterialCleaner | 390,636,986 | false | null | /*
* Copyright 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 wr... | 2 | Kotlin | 9 | 40 | 2b5c2b8d54c9705a13c8635fb2680f820db69d95 | 4,727 | Media-Provider-Manager | Apache License 2.0 |
app/src/main/java/com/minimalist/todo/activity/AboutActivity.kt | hendratay | 128,364,481 | false | null | package com.minimalist.todo.activity
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.NavUtils
import com.minimalist.todo.R
import kotlinx.android.synthetic.main.activity_about.*
class AboutActivity : AppCompatActivity() {
override fun... | 0 | Kotlin | 0 | 1 | 6064defaeeb2678a5f0b7ca684226ea07d363c9b | 902 | minimalist-todo | Attribution Assurance License |
src/com/blackoutburst/wally/core/statsobject/PracticeStats.kt | Blackoutburst | 296,468,102 | false | null | package com.blackoutburst.wally.core.statsobject
import com.blackoutburst.wally.utils.APIUtils.getValuesFromAPI
import com.blackoutburst.wally.utils.LeaderboardUtils.getPlayerPosition
import com.blackoutburst.wally.core.leaderboard.LeaderboardManager
import com.blackoutburst.wally.core.leaderboard.Leaderboard
class P... | 0 | Kotlin | 4 | 4 | 9c075ab0c5dc8754b01d202055ca54a64473303c | 4,866 | Wally | Do What The F*ck You Want To Public License |
redis-core-defaults/src/main/java/ru/ar2code/redis/core/defaults/DefaultSynchronizedUseCase.kt | ar2code | 278,618,802 | false | null | /*
* Copyright (c) 2020. The Redis Open Source Project
* Author: <NAME> https://github.com/ar2code
*
* 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... | 0 | Kotlin | 0 | 4 | 9215095302e1bd5d5c0de296bee66df438a81224 | 1,111 | redis | Apache License 2.0 |
java/kotlin/src/main/kotlin/cosmos/mint/v1beta1/QueryAnnualProvisionsResponseKt.kt | iqdevelop | 474,485,760 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/mint/v1beta1/query.proto
package cosmos.mint.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun queryAnnualProvisionsResponse(block: cosmos.mint.v1beta1.QueryAnnualProvisionsResponseKt.Dsl.() -> Unit): cosmos.mint.v1beta1.QueryOuterClass.QueryAnnua... | 0 | null | 0 | 0 | 06fcb6a1e57962a46af0aebb90b5b110e0b42435 | 2,469 | terra.proto | Apache License 2.0 |
src/main/kotlin/br/com/zupacademy/fabio/pix/registra/TipoChave.kt | fabiossz2 | 421,041,711 | true | {"Kotlin": 39106} | package br.com.zupacademy.fabio.pix.registra
import io.micronaut.core.annotation.Introspected
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator
import org.hibernate.validator.internal.constraintvalidators.hv.br.CNPJValidator
import org.hibernate.validator.internal.constraintvalidators.hv.b... | 0 | Kotlin | 0 | 0 | 6cb2a88b224dacf26e2f4340f6c0e09dedad442d | 1,873 | orange-talents-08-template-pix-keymanager-grpc | Apache License 2.0 |
app/src/main/java/com/dluvian/nozzle/data/utils/NostrUtils.kt | dluvian | 645,936,540 | false | null | package com.dluvian.nozzle.data.utils
object NostrUtils {
private val usernamePattern by lazy { Regex("\\w[\\w\\-]+\\w") }
private val whitespacePattern by lazy { Regex("\\s+") }
fun isValidUsername(username: String): Boolean {
return usernamePattern.matches(username)
}
fun getAppendedNos... | 25 | Kotlin | 1 | 9 | 59d9c2acbf8561f11cce9fd9bc1457df6aa1156f | 667 | Nozzle | MIT License |
src/com/dengzii/plugin/rbk/BindType.kt | dengzii | 320,140,508 | false | null | package com.dengzii.plugin.rbk
import com.intellij.psi.PsiAnnotation
enum class BindType {
// Field bind
Anim,
Array,
Bitmap,
Bool,
Color,
Dimen,
Drawable,
Float,
Int,
String,
View,
Views,
// Event bind
OnCheckedChanged,
OnEditorAction,
OnFocusChang... | 1 | Kotlin | 2 | 5 | 3fb9d22cdc36b9b98b4be45adf10495be72af63f | 1,962 | RemoveButterKnife | Apache License 2.0 |
src/main/kotlin/fi/johannes/web/handlers/backup/controllers/BackupController.kt | johannessarpola | 122,476,767 | false | null | package fi.johannes.web.handlers.backup.controllers
import fi.johannes.web.dto.PageDto
import io.vertx.core.AsyncResult
import io.vertx.core.Handler
import io.vertx.ext.web.RoutingContext
/**
* Johannes on 26.1.2018.
*/
interface BackupController {
fun saveBackup(context: RoutingContext)
fun getLatestBackup(c... | 1 | null | 1 | 1 | ba27e48348a4489ca8f9a480088b1ad4d5791502 | 347 | kt-vertx-wiki | MIT License |
idea/testData/highlightingWithDependentLibraries/lib1/lib1.kt | JakeWharton | 99,388,807 | true | null | package lib1
public open class Base {
public open fun baseFun() {
}
}
public fun acceptBase(b: Base) {
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 114 | kotlin | Apache License 2.0 |
src/main/kotlin/com/thapovan/orion/stream/KafkaStream.kt | thapovan-inc | 134,205,358 | false | {"Kotlin": 92631, "Java": 5257, "Shell": 1873} | package com.thapovan.orion.stream
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import com.thapovan.orion.data.LogObject
import com.thapovan.orion.data.MetaDataObject
import com.thapovan.orion.data.SpanNode
import com.thapovan.orion.proto.Span
import com.thapovan.orion.util.TraceIdPartiti... | 0 | Kotlin | 0 | 0 | 1b434c170a62ed8345723fc9207007bde8568cc2 | 4,541 | orion-server-java | Apache License 2.0 |
kotlin-app-starter/src/main/kotlin/eu/dzim/app/start/StageWrapper.kt | bgmf | 71,327,929 | false | {"Java": 807960, "CSS": 77347, "Kotlin": 14571} | package eu.dzim.app.start
import javafx.scene.Scene
import javafx.scene.layout.BorderPane
import javafx.scene.layout.Pane
import javafx.scene.paint.Color
import javafx.scene.paint.Paint
import javafx.stage.Modality
import javafx.stage.Stage
import javafx.stage.StageStyle
import javafx.stage.Window
import java.util.fun... | 1 | Java | 2 | 5 | 2761f2911b45f98154af300d7774c8b7b041faa9 | 1,709 | poc | Apache License 2.0 |
src/test/kotlin/com/github/mvysny/vokdataloader/FiltersTest.kt | mvysny | 157,865,681 | false | null | package com.github.mvysny.vokdataloader
import com.github.mvysny.dynatest.DynaTest
import kotlin.test.assertFailsWith
import kotlin.test.expect
class FiltersTest : DynaTest({
test("not") {
val eq = EqFilter<Person>(Person::name.name, "Name")
val not = NotFilter(eq)
expect(true) { not.test... | 0 | Kotlin | 1 | 0 | f137c8bb42de407e8a6064b6567064ff30f5c384 | 12,098 | vok-dataloader | MIT License |
ToDoList/app/src/main/java/com/example/todolist/ui/viewmodel/AnasayfaViewModel.kt | efebadir | 771,049,955 | false | {"Kotlin": 14782} | package com.example.todolist.ui.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.todolist.data.entity.Liste
import com.example.todolist.data.repo.ListeRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.CoroutineScope
import ... | 0 | Kotlin | 0 | 0 | d3c9f0033cb779e8f7769d6696f1e33f0cc57c5a | 1,029 | ToDoList | MIT License |
src/commonMain/kotlin/com/theguardian/readinghistory/DatabaseDriverFactory.kt | guardian | 390,399,881 | false | null | package com.theguardian.readinghistory
import com.squareup.sqldelight.db.SqlDriver
expect class DatabaseDriverFactory {
fun createDriver(): SqlDriver
}
class ReadingHistoryDatabaseFactory(private val driverFactory: DatabaseDriverFactory) {
fun getDatabase(): ReadingHistory {
return ReadingHistory(dri... | 0 | Kotlin | 0 | 1 | 01b52c98a7ba5b64c82a916badf4e7e937b342bb | 354 | multiplatform-reading-history | MIT License |
test_runner/src/main/kotlin/ftl/api/Orientation.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package ftl.api
import ftl.adapter.GoogleOrientationFetch
val fetchOrientation: Orientation.Fetch get() = GoogleOrientationFetch
data class Orientation(
val id: String,
val name: String,
val tags: List<String>,
) {
interface Fetch : (String, Platform) -> List<Orientation>
}
| 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 294 | flank | Apache License 2.0 |
MyEcMall-K/GoodsCenter/src/main/java/cn/nieking/goodscenter/service/CategoryService.kt | NieQing | 132,399,328 | false | {"Kotlin": 241813, "Java": 7791} | package cn.nieking.goodscenter.service
import cn.nieking.goodscenter.data.protocol.Category
import rx.Observable
interface CategoryService {
fun getCategory(parentId: Int): Observable<MutableList<Category>?>
} | 0 | Kotlin | 0 | 0 | 07b22622f98c8bfd8b26ea1303d48f6d66cc4b4b | 215 | MyEcMall-K | Apache License 2.0 |
src/main/kotlin/icu/windea/pls/core/SwingExtensions.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.core
import com.intellij.ui.*
import com.intellij.util.*
import com.intellij.util.ui.*
import java.awt.*
import java.awt.image.*
import javax.swing.*
fun Icon.resize(width: Int, height: Int): Icon {
return IconUtil.toSize(this, width, height)
}
fun Image.toIcon(): Icon {
return IconUti... | 2 | Kotlin | 2 | 14 | a3816071d500f8cf993240885895966be67ef5c8 | 1,227 | Paradox-Language-Support | MIT License |
subprojects/app/src/main/java/com/olderworld/app/uploader/UploaderLifecycleObserver.kt | tomkoptel | 301,164,678 | false | null | package com.olderworld.app.uploader
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.olderworld.feature.uploader.Uploader
import io.reactivex.rxjava3.disposables.Disposable
import io.react... | 0 | Kotlin | 0 | 0 | 3048fdc743c577bc241363e488461020638524ed | 1,410 | uploader-android-client | MIT License |
src/main/kotlin/no/nav/helse/utgattsykmelding/UtgattSykmeldingQueries.kt | navikt | 225,365,595 | false | null | package no.nav.helse.utgattsykmelding
import java.sql.Timestamp
import java.time.LocalDateTime
import no.nav.helse.db.DatabaseInterface
fun DatabaseInterface.registerSykmeldingerSomSkalSettesTilStatusUtgatt(ugattDato: LocalDateTime): Int {
connection.use { connection ->
val antallUtgatt = connection.prepareSt... | 0 | Kotlin | 1 | 0 | d4d6de009a646e58d2d51d28592a89f55fd685d5 | 1,079 | syfosmjob | MIT License |
app/src/main/java/com/abaferastech/marvelapp/data/local/database/entity/SeriesEntity.kt | CheeseCake-Team | 633,955,610 | false | null | package com.abaferastech.marvelapp.data.local.database.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity("SERIES_HOME_TABLE")
data class SeriesEntity(
@PrimaryKey(false) val id: Int,
val title: String,
val description: String?,
val startYear: Int,
val endYear: Int?,
va... | 0 | Kotlin | 0 | 0 | 7c2e38f2571e5ed5135e2461034d77750546ee23 | 395 | MarvelApp | Apache License 2.0 |
app/src/main/java/com/htetwill/portier/launcher/model/Config.kt | htetwill | 381,110,078 | false | null | package com.htetwill.portier.launcher.model
data class Config(
var background: String? = null,
var color: String? = null,
var hotel: Hotel? = null,
var apps: List<String>? = null
)
| 0 | Kotlin | 0 | 0 | c0511e96c311675dcfe59a055ca335ee9d2eb198 | 198 | Simple-App-Picker | Apache License 1.1 |
foundation/storage/src/test/kotlin/com/pingidentity/storage/Data.kt | ForgeRock | 830,216,912 | false | {"Kotlin": 452482} | /*
* Copyright (c) 2024. PingIdentity. All rights reserved.
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package com.pingidentity.storage
import kotlinx.serialization.Serializable
@Serializable
data class Data(val a: Int, val b: Str... | 2 | Kotlin | 0 | 0 | cb75e4da916db337f5cf8f628a98f68dc9121063 | 384 | unified-sdk-android | MIT License |
komapper-tx-core/src/test/kotlin/org/komapper/tx/core/TransactionOptionTest.kt | komapper | 349,909,214 | false | null | package org.komapper.tx.core
import org.junit.jupiter.api.Test
import java.time.Duration
import kotlin.test.assertEquals
import kotlin.test.assertNull
class TransactionOptionTest {
@Test
fun plus_same_keys() {
val option =
TransactionProperty.IsolationLevel.READ_COMMITTED +
... | 7 | null | 4 | 97 | 851b313c66645d60f2e86934a5036efbe435396a | 2,204 | komapper | Apache License 2.0 |
src/main/kotlin/us/timinc/mc/cobblemon/spawnnotification/events/BroadcastDespawn.kt | timinc-cobble | 808,222,694 | false | {"Kotlin": 21084} | package us.timinc.mc.cobblemon.spawnnotification.events
import com.cobblemon.mod.common.api.events.pokemon.PokemonCapturedEvent
import com.cobblemon.mod.common.api.events.pokemon.PokemonFaintedEvent
import com.cobblemon.mod.common.api.spawning.CobblemonSpawnPools
import com.cobblemon.mod.common.entity.pokemon.PokemonE... | 0 | Kotlin | 1 | 0 | 21c2359d9246145d15ae06e92ef9b4f105f90d74 | 3,121 | cobblemon-spawn-notification-1.5-fabric | MIT License |
app/src/main/java/com/horizon/hewanlangka/AboutActivity.kt | ArfianID | 524,555,980 | false | {"Kotlin": 17609} | package com.horizon.hewanlangka
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.widget.Toolbar
class AboutActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.lay... | 0 | Kotlin | 0 | 0 | 0b5270d5ed5daacb77c8ac54a82a77255f5d9bfd | 543 | Hewan-Langka | Apache License 2.0 |
cipher-xor/lib/src/Mask.kt | andrew-malikov | 149,552,626 | false | {"Kotlin": 65342, "Jupyter Notebook": 9322, "Python": 7284} | package cipher.xor.lib
class Mask(private var seed: Int, private val maxValue: Int) {
private fun updateSeed() {
seed = (seed * seed + seed / 2) % maxValue
}
fun next(): Int {
val mask = seed
updateSeed()
return mask
}
} | 0 | Kotlin | 0 | 1 | db609687eb06b17acfc5621c35494ee257f14a68 | 271 | coding-theory | MIT License |
ktor-features-interceptor/src/main/kotlin/org/iproduct/ktor/Application.kt | iproduct | 277,474,020 | false | null | package org.iproduct.ktor
import com.codahale.metrics.JmxReporter
import com.codahale.metrics.Slf4jReporter
import io.ktor.application.*
import io.ktor.client.HttpClient
import io.ktor.client.features.BodyProgress.Feature.install
import io.ktor.features.*
import io.ktor.gson.gson
import io.ktor.html.respondHtml
import... | 0 | null | 1 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 4,180 | course-kotlin | Apache License 2.0 |
android/app/src/main/java/com/xmrigforandroid/events/StdoutEvent.kt | XMRig-for-Android | 427,750,819 | true | null | package com.xmrigforandroid.events
class StdoutEvent internal constructor(var value: String) | 6 | TypeScript | 2 | 25 | d4e85b059041135f342859a29f021aaff8cacdf9 | 93 | xmrig-for-android | MIT License |
app/src/main/java/com/example/itexblog/ui/BlogActivitiesFragment.kt | darothub | 230,796,284 | false | null | package com.example.itexblog.ui
import android.app.AlertDialog
import android.app.Application
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import andro... | 1 | null | 1 | 1 | 9c06b39188600ad5853ef00d5e37d1c83472cbc1 | 7,973 | itexblog | MIT License |
lib/src/main/java/com/ooftf/vertical/nested/NestVerticalPagerLayout.kt | ooftf | 115,352,446 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 18, "Kotlin": 11, "Java": 1} | package com.ooftf.vertical.nested
import android.content.Context
import android.os.Build
import android.support.annotation.RequiresApi
import android.support.v4.view.NestedScrollingParent2
import android.support.v4.view.PagerAdapter
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEve... | 0 | Kotlin | 0 | 8 | 5b4005f0bcb61d56381a86907c2a4c2fbfea6d88 | 9,269 | VerticalPagerLayout | Apache License 2.0 |
Neato-SDK/neato-sdk-android/src/main/java/com/neatorobotics/sdk/android/robotservices/spotcleaning/SpotCleaningBasic3Service.kt | NeatoRobotics | 53,487,177 | false | null | /*
* Copyright (c) 2019.
* Neato Robotics Inc.
*/
package com.neatorobotics.sdk.android.robotservices.spotcleaning
import com.neatorobotics.sdk.android.models.CleaningMode
import com.neatorobotics.sdk.android.models.CleaningModifier
import com.neatorobotics.sdk.android.models.NavigationMode
class SpotCleaningBasi... | 1 | Kotlin | 8 | 23 | d3a3521a0506b575c5cc37a34fb764acfaba939f | 1,064 | neato-sdk-android | MIT License |
java/kotlin/src/main/kotlin/cosmos/slashing/v1beta1/MissedBlockKt.kt | dimitar-petrov | 413,042,055 | true | {"Git Config": 1, "Text": 1, "Ignore List": 3, "Makefile": 3, "Markdown": 3, "Gradle Kotlin DSL": 5, "INI": 2, "Shell": 3, "Batchfile": 1, "Java": 181, "Kotlin": 917, "JSON with Comments": 1, "JSON": 3, "Git Attributes": 1, "EditorConfig": 1} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cosmos/slashing/v1beta1/genesis.proto
package cosmos.slashing.v1beta1;
@kotlin.jvm.JvmSynthetic
inline fun missedBlock(block: cosmos.slashing.v1beta1.MissedBlockKt.Dsl.() -> Unit): cosmos.slashing.v1beta1.Genesis.MissedBlock =
cosmos.slashing.v1be... | 0 | null | 0 | 0 | 06fcb6a1e57962a46af0aebb90b5b110e0b42435 | 2,372 | terra.proto | Apache License 2.0 |
stphotomap/src/main/java/com/streetography/stphotomap/scenes/stphotomap/tiles/STPhotoUrlTileProvider.kt | mikelanza | 191,293,030 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 27, "Kotlin": 69, "JSON": 3, "XML": 15} | package com.streetography.stphotomap.scenes.stphotomap.tiles
import com.google.android.gms.maps.model.UrlTileProvider
import com.streetography.stphotomap.models.tile_coordinate.TileCoordinate
import com.streetography.stphotomap.scenes.stphotomap.builders.STPhotoMapUriBuilder
import java.net.MalformedURLException
impor... | 0 | Kotlin | 0 | 2 | cff318d3b651751f338c94d3ddabe35be29c7174 | 701 | st-photo-map-android | MIT License |
rewrite-test/src/main/kotlin/org/openrewrite/java/ChangeMethodNameTest.kt | nimakarimipour | 287,045,699 | true | {"Gradle Kotlin DSL": 10, "Shell": 3, "Text": 2, "Ignore List": 1, "Batchfile": 2, "Markdown": 1, "XML": 1, "Kotlin": 140, "Java": 190, "INI": 1, "ANTLR": 7, "YAML": 4, "Java Properties": 1} | /*
* Copyright 2020 the original author or authors.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 0 | null | 0 | 0 | 49d77c0a058425b61b857660ae6d24828fa934f3 | 7,692 | rewrite | Apache License 2.0 |
packages/expo-dev-launcher/android/src/testDebug/java/expo/modules/devlauncher/DevLauncherControllerTest.kt | expo | 65,750,241 | false | {"Gemfile.lock": 1, "YAML": 79, "Git Config": 1, "JSON with Comments": 175, "Ignore List": 236, "JSON": 713, "Markdown": 291, "JavaScript": 1979, "Text": 62, "Git Attributes": 7, "Shell": 66, "Ruby": 99, "TSX": 976, "Gradle": 106, "Java Properties": 5, "Batchfile": 4, "INI": 8, "Proguard": 10, "XML": 273, "Kotlin": 121... | package expo.modules.devlauncher
import android.content.Intent
import android.net.Uri
import androidx.test.core.app.ApplicationProvider
import expo.interfaces.devmenu.ReactHostWrapper
import expo.modules.devlauncher.koin.DevLauncherKoinContext
import expo.modules.devlauncher.tests.DevLauncherTestInterceptor
import exp... | 668 | TypeScript | 5226 | 32,824 | e62f80228dece98d5afaa4f5c5e4fb195f3daa15 | 1,600 | expo | Apache License 2.0 |
popkorn/src/commonTest/kotlin/data/TestResolverPool.kt | corbella83 | 221,466,107 | false | null | package cc.popkorn.data
import cc.popkorn.core.exceptions.ResolverNotFoundException
import cc.popkorn.pools.ResolverPool
import cc.popkorn.resolvers.Resolver
import kotlin.reflect.KClass
/**
* ResolverPool that define how test interfaces are resolved
*
* @author <NAME>
* @since 2.0.0
*/
class TestResolverPool : ... | 8 | null | 5 | 150 | 175a0a25efb3a8c484b710d2d48910f27d42a3f4 | 765 | PopKorn | Apache License 2.0 |
app/src/main/java/com/ghstudios/android/features/meta/AboutActivity.kt | gatheringhallstudios | 60,881,315 | false | {"Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Text": 3, "Markdown": 1, "INI": 1, "XML": 173, "Java": 142, "Kotlin": 166} | package com.ghstudios.android.features.meta
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.ghstudios.android.GenericActivity
import com.ghstudios.and... | 12 | Kotlin | 37 | 90 | 572ede48d78b9f61a91c7ef1fc64f87c9743b162 | 2,321 | MHGenDatabase | MIT License |
wallet/src/main/kotlin/org/trustnote/superwallet/biz/home/FragmentDialogCreateObserverQR.kt | ringringringring | 129,693,546 | false | null | package org.trustnote.superwallet.biz.home
import android.view.View
import android.widget.Button
import android.widget.ImageView
import org.trustnote.superwallet.R
import org.trustnote.superwallet.biz.TTT
import org.trustnote.superwallet.biz.FragmentDialogBase
import org.trustnote.superwallet.util.TTTUtils
class Frag... | 0 | null | 5 | 6 | 7a1c95b60569600ff09b5d520a1c4694fc1a3707 | 918 | trustnote-wallet-android | MIT License |
domain/src/main/java/com/barisatalay/domain/model/NetworkType.kt | barisatalay | 415,278,323 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Kotlin": 79, "Proguard": 1, "XML": 36, "Java": 1, "JSON": 3} | package com.barisatalay.domain.model
import com.google.gson.annotations.SerializedName
import java.util.*
enum class NetworkType(val value: String) {
@SerializedName("unknown")
Unknown("unknown"),
@SerializedName("solana")
SOLANA("solana");
companion object {
fun find(value: String?): Ne... | 0 | Kotlin | 2 | 3 | 12fff536ead073a346763a87a020a9e49391e0c5 | 501 | yorkie-solana-wallet-android | MIT License |
shared/src/commonMain/kotlin/com/teewhydope/muvieapp/presentation/movie_list/MovieListState.kt | teewhydope | 408,187,945 | false | {"Java": 126190, "Kotlin": 89637, "Ruby": 2034, "Swift": 345, "Assembly": 118} | package com.teewhydope.muvieapp.presentation.movie_list
expect class MovieListState {
} | 1 | Java | 1 | 4 | 22ba7cbc9c911ee57604a775d6f62bb66d5a5e23 | 88 | MuvieApp | MIT License |
app/src/main/java/com/mappls/sdk/demo/kotlin/adapter/PoiAlongAdapter.kt | mappls-api | 503,209,680 | false | {"Gradle": 4, "INI": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 466, "Java Properties": 1, "Proguard": 1, "XML": 109, "Java": 114, "Kotlin": 108} | package com.mappls.sdk.demo.kotlin.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.mappls.sdk.demo.R
import com.mappls.sdk.services.api.alongroute.models.SuggestedPOI
/**
* Cr... | 2 | Java | 3 | 6 | 9c99d32a2acb24c9947357701e4f507151ff59e1 | 1,082 | mappls-android-sdk | FSF All Permissive License |
analytics/src/test/java/io/appmetrica/analytics/impl/telephony/MobileConnectionDescriptionExtractorTest.kt | appmetrica | 650,662,094 | false | null | package io.appmetrica.analytics.impl.telephony
import android.Manifest
import android.content.Context
import android.os.Build
import android.telephony.TelephonyManager
import io.appmetrica.analytics.assertions.ObjectPropertyAssertions
import io.appmetrica.analytics.coreapi.internal.system.PermissionExtractor
import io... | 1 | null | 2 | 47 | 630754556850bc2685b787c2fce60e036b8699d2 | 8,258 | appmetrica-sdk-android | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/nullableBooleanElvis/inIfWithIfExpression.kt | ingokegel | 72,937,917 | true | null | fun foo() {
var a: Int? = null
fun isOddNumber(n: Int?): Boolean? {
if (n == null) return null
if (n < 0) return null
return n % 2 == 1
}
if ((if (isOddNumber(a) == true) a == 3 else null) <caret>?: false) {
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 256 | intellij-community | Apache License 2.0 |
kotlin/basic/src/main/kotlin/com/shengsiyuan/kotlin5/FuncTest3.kt | cuixbo | 538,532,557 | true | {"Markdown": 17, "Text": 16, "Ignore List": 37, "Java Properties": 16, "Gradle": 50, "Shell": 8, "Batchfile": 8, "Kotlin": 365, "INI": 13, "XML": 145, "Checksums": 6, "Proguard": 15, "Java": 419, "Makefile": 1, "EditorConfig": 1, "YAML": 5, "JSON": 13, "robots.txt": 2, "HTML": 3, "JavaScript": 29, "CSS": 3, "Git Attrib... | package com.shengsiyuan.kotlin5
/**
* Created by yangliuqing
* 2019-01-24.
* Email: 1239604859@qq.com
*
* 中缀符号 infix notation
*
* 函数还可以通过中缀符号的形式来调用,需要满足如下三个条件
* 1. 是成员函数或是扩展函数
* 2. 拥有单个参数
* 3. 声明时使用 infix 关键字
*/
class InfixTest(private val index: Int) {
infix fun add(added: Int) = index + added
}
fun... | 0 | null | 0 | 0 | 8934028fb0bf69c289b82f737682fa5565f1dd76 | 441 | ShengSiYuan | Apache License 2.0 |
dsl/camel-kotlin-api/src/generated/kotlin/org/apache/camel/kotlin/components/GoogleBigqueryUriDsl.kt | orpiske | 166,656,227 | true | {"Text": 251, "Git Config": 1, "XML": 1790, "Batchfile": 4, "Shell": 21, "YAML": 70, "Maven POM": 593, "JSON": 2573, "Dockerfile": 5, "Markdown": 26, "Ignore List": 19, "Groovy": 164, "Git Attributes": 1, "Java": 21665, "Java Properties": 1066, "AsciiDoc": 1315, "INI": 22, "HTML": 151, "CSS": 2, "JavaScript": 32, "XSLT... | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 0 | Java | 1 | 1 | 30bcf8b84555a952d5122db74f1aff57762946cc | 4,040 | camel | Apache License 2.0 |
app/src/main/java/com/vpaliy/mediaplayer/domain/Repository.kt | vpaliy | 92,111,841 | false | null | package com.vpaliy.mediaplayer.domain
import com.vpaliy.mediaplayer.domain.model.SearchPage
import com.vpaliy.mediaplayer.domain.model.TrackType
import com.vpaliy.mediaplayer.domain.interactor.params.ModifyRequest
import com.vpaliy.mediaplayer.domain.model.Track
import io.reactivex.Completable
import io.reactivex.Sing... | 0 | Kotlin | 13 | 56 | bedd632358e604063fd29f00c63d2ad7c3487767 | 595 | android-music-app | Apache License 2.0 |
app/src/main/java/capstone/aiimageeditor/imageprocessing/ImageHalo.kt | jongwonleee | 252,086,774 | false | {"C++": 4476529, "Java": 3338369, "C": 374230, "CMake": 252003, "Kotlin": 163537, "Objective-C": 7449, "HTML": 6526, "Makefile": 4792, "AIDL": 995} | package capstone.aiimageeditor
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.util.Log
import java.util.*
import kotlin.math.pow
import kotlin.math.sqrt
class ImageHalo {
private lateinit var colors: IntArray
private var weight: Int = 105
priva... | 1 | C++ | 2 | 1 | f11065f43bddeaaf56548a8942b7f481ce9b9053 | 21,684 | pinata | Apache License 2.0 |
bezier/src/main/java/io/channel/bezier/icon/Hourglass1.kt | channel-io | 736,533,981 | false | {"Kotlin": 2421787, "Python": 12500} | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... | 7 | Kotlin | 3 | 6 | 39cd58b0dd4a1543d54f0c1ce7c605f33ce135c6 | 5,463 | bezier-compose | MIT License |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Incognito.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,264 | icons | MIT License |
src/en/manhwanew/src/eu/kanade/tachiyomi/extension/en/manhwanew/ManhwaNew.kt | komikku-app | 720,497,299 | false | null | package eu.kanade.tachiyomi.revived.en.manhwanew
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class ManhwaNew : Madara(
"ManhwaNew",
"https://manhwanew.com",
"en",
dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
) {
override ... | 9 | null | 99 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 487 | komikku-extensions | Apache License 2.0 |
sms-core/src/main/kotlin/team/msg/sms/domain/teacher/service/HomeroomTeacherService.kt | GSM-MSG | 625,717,097 | false | {"Kotlin": 388304, "Shell": 1480, "Dockerfile": 288} | package team.msg.sms.domain.teacher.service
import team.msg.sms.common.annotation.Service
@Service
class HomeroomTeacherService (
checkHomeroomTeacherService: CheckHomeroomTeacherService,
commandHomeroomTeacherService: CommandHomeroomTeacherService,
getHomeroomTeacherService: GetHomeroomTeacherService
) :... | 5 | Kotlin | 0 | 9 | 4005f8463b9248f8a21ab48255e12027381f1118 | 507 | SMS-BackEnd | MIT License |
app/src/main/java/com/example/rifsa_mobile/view/fragment/disease/viewmodel/DiseaseViewModel.kt | RIFSA | 491,493,199 | false | null | package com.example.rifsa_mobile.view.fragment.disease.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.example.rifsa_mobile.model.entity.remotefirebase.DiseaseEntity
import com.example.rifsa_mobile.model.repository.local.disease.DiseaseRepository
import com.example.rifsa_mob... | 0 | Kotlin | 3 | 7 | 2eaf3e2eaef31e00e6b03dcd7c7cb1f7cc521a14 | 740 | Rifsa-Mobile | The Unlicense |
plugins/kotlin/code-insight/kotlin.code-insight.k2/src/org/jetbrains/kotlin/idea/k2/codeinsight/quickFixes/createFromUsage/CreateKotlinCallablePsiEditor.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.k2.codeinsight.quickFixes.createFromUsage
import com.intellij.codeInsight.CodeInsightUtilCore
import com.intellij.codeInsight.template.Template
import com.intellij.... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 8,360 | intellij-community | Apache License 2.0 |
dataforge-context/src/commonMain/kotlin/space/kscience/dataforge/context/Plugin.kt | SciProgCentre | 148,831,678 | false | null | package space.kscience.dataforge.context
import space.kscience.dataforge.context.Plugin.Companion.TARGET
import space.kscience.dataforge.meta.Meta
import space.kscience.dataforge.meta.MetaRepr
import space.kscience.dataforge.misc.DfId
import space.kscience.dataforge.misc.Named
import space.kscience.dataforge.names.Nam... | 19 | null | 3 | 25 | d80846d5fbd4d232b7506f5b4124cddfdc61d17e | 2,134 | dataforge-core | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.