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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
common-ui/src/main/java/com/lighthouse/android/common_ui/util/Extension.kt | soma-lighthouse | 658,620,687 | false | {"Kotlin": 442318} | package com.lighthouse.android.common_ui.util
import android.app.Activity
import android.content.Context
import android.content.Context.INPUT_METHOD_SERVICE
import android.content.Intent
import android.content.res.Resources
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.text.... | 0 | Kotlin | 0 | 0 | 2109f0e2f50e4502c2778bc2a831272785eaf7a7 | 6,959 | FE-lingo-talk | Apache License 2.0 |
mvvm/app/src/main/java/com/tyhoo/android/mvvm/data/RuneResponse.kt | cnwutianhao | 743,416,120 | false | {"Kotlin": 94980} | package com.tyhoo.android.mvvm.data
import com.google.gson.annotations.SerializedName
data class ArcanaResponse(
@field:SerializedName("ming_id") val mingId: String,
@field:SerializedName("ming_type") val mingType: String,
@field:SerializedName("ming_grade") val mingGrade: String,
@field:SerializedNam... | 0 | Kotlin | 0 | 1 | 7c6aaf91fa2c09b92a6083677877d70c4211c26a | 416 | android | MIT License |
sample/src/main/java/ro/dobrescuandrei/demonewlibs/restaurant/editor/RestaurantEditorViewModel.kt | ProProfessor | 188,118,832 | true | {"Kotlin": 51690, "Java": 7157} | package ro.dobrescuandrei.demonewlibs.restaurant.editor
import ro.dobrescuandrei.demonewlibs.api.AddRestaurantRequest
import ro.dobrescuandrei.demonewlibs.api.EditRestaurantRequest
import ro.dobrescuandrei.demonewlibs.model.Restaurant
import ro.dobrescuandrei.mvvm.editor.BaseEditorViewModel
class RestaurantEditorView... | 0 | Kotlin | 0 | 0 | d315620d6da09af370075277fc9c8d6049583385 | 579 | DobDroidMVVM | Apache License 2.0 |
ok-marketplace-mp-transport-mp/src/commonMain/kotlin/ru/otus/otuskotlin/marketplace/transport/kmp/models/proposals/MpProposalDto.kt | otuskotlin | 323,966,359 | false | null | package ru.otus.otuskotlin.marketplace.transport.kmp.models.proposals
import kotlinx.serialization.Serializable
import ru.otus.otuskotlin.marketplace.transport.kmp.models.common.IMpItemDto
import ru.otus.otuskotlin.marketplace.transport.kmp.models.common.MpItemPermission
import ru.otus.otuskotlin.marketplace.transport... | 0 | Kotlin | 0 | 1 | 5f05fe658504dfa5d7300e3f0f523d250ff6ce31 | 730 | 202012-otuskotlin-marketplace | MIT License |
api/src/main/java/city/zouitel/api/ApiModule.kt | City-Zouitel | 576,223,915 | false | null | package city.zouitel.api
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import io.github.jan.supabase.SupabaseClient
import io.github.jan.supabase.createSupabaseClient
import io.github.jan.supabase.gotrue.GoTrue
import io.github.jan.supabase.po... | 27 | Kotlin | 9 | 58 | ba98fc702e39e3633893dea49e7a2bf0aa200da3 | 1,022 | JetNote | Apache License 2.0 |
PluginsAndFeatures/azure-toolkit-for-intellij/rider/src/com/microsoft/intellij/runner/appbase/config/ui/AppDeployMvpViewBase.kt | JetBrains | 137,064,201 | false | null | /**
* Copyright (c) 2019 JetBrains s.r.o.
* <p/>
* All rights reserved.
* <p/>
* MIT License
* <p/>
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including withou... | 73 | null | 10 | 41 | a8b64627376a5144a71725853ba4217b97044722 | 2,292 | azure-tools-for-intellij | MIT License |
modules/app-server/dao/src/jooq/generated/domain/keys/Keys.kt | 4sh | 503,263,982 | false | {"Kotlin": 389479, "Svelte": 103924, "TypeScript": 57499, "SCSS": 6504, "JavaScript": 1253, "HTML": 1021, "CSS": 567} | /*
* This file is generated by jOOQ.
*/
package generated.domain.keys
import generated.domain.tables.DmBatchExecution
import generated.domain.tables.DmBatchExecutionDmFlag
import generated.domain.tables.DmEnvironment
import generated.domain.tables.DmFlag
import generated.domain.tables.DmModule
import generated.doma... | 1 | Kotlin | 1 | 0 | 827701b0203858017433cd250ce5301b9eb01b7a | 9,121 | datamaintain-monitoring | Apache License 2.0 |
MXVideoLib/src/main/java/com/mx/video/utils/MXTicket.kt | zhangmengxiong | 386,496,265 | false | null | package com.mx.video.utils
import android.os.Handler
import android.os.Looper
internal class MXTicket {
private val mHandler = Handler(Looper.getMainLooper())
private var isTicketStart = false
private var runnable: Runnable? = null
fun setTicketRun(runnable: Runnable) {
this.runnable = runnabl... | 1 | null | 1 | 6 | 0375751073ef7e9296ff15a4cd934cb8b93a3fef | 1,007 | MXVideo | Apache License 2.0 |
app/src/main/java/org/zlobste/spotter/features/analytics/logic/FilterDriversByDate.kt | zlobste | 372,320,932 | false | null | package org.zlobste.spotter.features.analytics.logic
import org.zlobste.spotter.features.my_drivers.model.Driver
import org.zlobste.spotter.features.my_drivers.model.MyDrivers
import java.util.*
class FilterDriversByDate {
companion object {
fun getDrivers(startDate: Date, endDate: Date): List<Driver> {
... | 0 | Kotlin | 0 | 0 | e5135d0da1c14abd2eba906022a3d6ecc3d473bf | 1,044 | spotter-android-client | MIT License |
app/src/main/java/com/ti/sunrain/ui/weather/WeatherActivity.kt | bluebonnet27 | 317,797,469 | false | null | package com.ti.sunrain.ui.weather
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.graphics.BitmapFactory
import android.graphics.Color
impor... | 1 | Kotlin | 1 | 4 | c8f8b09a3557b20791d564d8eb9f069c7fcf413e | 32,299 | SunRain | MIT License |
src/main/kotlin/at/doml/anc/lab3/Task2.kt | domagojlatecki | 124,923,523 | false | null | package at.doml.anc.lab3
import at.doml.anc.lab1.Matrix
import at.doml.anc.lab1.MutableMatrix
import java.nio.file.Files
import java.nio.file.Paths
import java.util.Properties
import kotlin.system.exitProcess
fun main(args: Array<String>) {
if (args.size != 1) {
println("Path to property file is expected.... | 0 | Kotlin | 0 | 0 | b483dda88bd9f2a6dc9f4928c7aa4e9a217eac8f | 4,678 | anc-lab | MIT License |
app/src/main/java/com/dicoding/submission/githubuser/ui/main/viewmodel/FollowingViewModel.kt | muhammadhassan3 | 405,538,513 | false | null | package com.dicoding.submission.githubuser.ui.main.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.dicoding.submission.githubuser.data.model.UserDetails
import com.dicoding.submission.githubuser.data.repository.UserRepository
import com.dicoding.submission.githubuser.... | 0 | Kotlin | 0 | 0 | c5434dc97345178d32fe4cace4502a67f5b19934 | 811 | github-api-example | MIT License |
app/src/main/kotlin/com/hpedrorodrigues/dradddle/entity/Player.kt | clertonleal | 39,105,482 | false | null | package com.hpedrorodrigues.dradddle.entity;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Player : Serializable {
var id: Long? = null
var name: String? = null
@SerializedName("avatar_url")
var avatarUrl: String? = null
@SerializedName("username... | 0 | Kotlin | 0 | 0 | e480fc32e0d6b85a22b669e8ceb4bc19ef7896c2 | 357 | Dradddle | Apache License 2.0 |
library/tiler/src/commonTest/kotlin/com/tunjid/tiler/TilingIterationOrderTest.kt | tunjid | 383,674,542 | false | {"Kotlin": 164257} | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 4 | 89 | 907a092f2683f4cfb0af096d4517f82def3d7187 | 9,304 | Tiler | Apache License 2.0 |
library/src/main/java/com/g2pdev/smartrate/interactor/is_rated/IsRated.kt | oscarito9410 | 300,996,771 | true | {"Kotlin": 107803, "Shell": 944} | package com.g2pdev.smartrate.interactor.is_rated
import com.g2pdev.smartrate.repository.RateRepository
import io.reactivex.Single
internal interface IsRated {
fun exec(): Single<Boolean>
}
internal class IsRatedImpl(
private val rateRepository: RateRepository
) : IsRated {
override fun exec(): Single<Bo... | 0 | null | 0 | 0 | b5ef98cb1d3270723f582d8a711dea3087b67368 | 377 | android-smart-rate | Apache License 2.0 |
domain/src/main/java/com/shagalalab/qarejet/domain/model/Transaction.kt | shagalalab | 113,033,977 | false | null | package com.shagalalab.qarejet.domain.model
import com.shagalalab.qarejet.core.utils.Category
import java.util.Date
data class Transaction(
val id: Long, val type: Int, val date: Date, val account: Account,
val category: Category, val amount: Double, val memo: String
)
enum class TransactionType {
INCOME... | 3 | Kotlin | 1 | 1 | e58efe5ac77ca0a1b2790b676153b75b25e63355 | 336 | qarejet-android-old | MIT License |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsAdjust.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 1,847 | compose-icon-collections | MIT License |
app/src/main/java/com/jakubisz/obd2ai/BluetoothHelper.kt | JaKuBisz | 729,487,821 | false | {"Kotlin": 28037} | package com.jakubisz.obd2ai
import android.app.Activity
import android.app.AlertDialog
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothManager
import android.bluetooth.BluetoothSocket
import android.content.Context
import android.content.Intent
impor... | 1 | Kotlin | 0 | 0 | 5afc59bca453ed913e0e7d50a41c5aaf6500ec68 | 5,501 | OBD2AI | Apache License 2.0 |
features/deck/domain/src/main/java/com/mctech/pokergrinder/deck/domain/Deck.kt | MayconCardoso | 539,349,342 | false | {"Kotlin": 630714} | package com.mctech.pokergrinder.deck.domain
/**
* Holds a deck of cards.
*/
object Deck {
/**
* Holds deck cards.
*/
val cards = buildList {
addAll(createCardsBySuit(CardSuit.CLUBS))
addAll(createCardsBySuit(CardSuit.SPADES))
addAll(createCardsBySuit(CardSuit.HEARTS))
addAll(createCardsByS... | 7 | Kotlin | 1 | 7 | ecb4278d82b5e055b3dd1d08080ebbf8a17d2915 | 1,015 | poker-grinder | Apache License 2.0 |
src/test/kotlin/com/pms/placemanagementsystemserverside/domain/space/SpaceDomainTest.kt | sge-sistema-gerenciador-de-espacos | 178,943,974 | false | null | package com.pms.placemanagementsystemserverside.domain.space
import com.pms.placemanagementsystemserverside.models.enums.SpaceTypeEnum
import com.pms.placemanagementsystemserverside.models.space.SpaceModel
import org.junit.Assert
import org.junit.Test
internal class SpaceDomainTest {
@Test
fun `Should match ... | 0 | Kotlin | 0 | 0 | d402ddb56d523062a4cfbff245a1c4d49aec7ba6 | 1,255 | place-management-system-server-side | MIT License |
android-aop-core/src/main/java/com/flyjingfish/android_aop_core/utils/Utils.kt | FlyJingFish | 722,020,803 | false | {"Kotlin": 60916, "Java": 52527} | package com.flyjingfish.android_aop_core.utils
import com.flyjingfish.android_aop_annotation.ProceedJoinPoint
object Utils {
/**
* 获取简约的方法名
*
* @param joinPoint
* @return
*/
fun getMethodName(joinPoint: ProceedJoinPoint): String {
val methodName = joinPoint.targetMethod.name /... | 0 | Kotlin | 1 | 15 | f4204d29f0cae6d048776b830b95d6be58140420 | 647 | AndroidAOP | Apache License 2.0 |
app/src/main/java/com/jeme/jedis/MainActivity.kt | lianaini | 438,566,627 | false | null | package com.jeme.jedis
import android.content.Context
import android.os.Bundle
import android.text.Editable
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import andro... | 0 | Kotlin | 0 | 3 | 402aa4e4586f3357cbb8199174a69495402ccf2c | 6,677 | as_redis_client | Apache License 2.0 |
rabbit-base/src/main/java/com/susion/rabbit/base/entities/RabbitAppSpeedMonitorConfig.kt | SusionSuc | 210,506,798 | false | null | package com.susion.rabbit.base.entities
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
/**
* susionwang at 2019-11-21
*
* Rabbit 应用测速 配置信息
*/
@Keep
class RabbitAppSpeedMonitorConfig(
@SerializedName("home_activity") val homeActivity: String = "",
@SerializedName("page_... | 9 | Kotlin | 146 | 998 | f1d1faf9f69b4ec162ae2215e9338dd1d7bdc893 | 842 | rabbit-client | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/GroupElementQ.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: GroupElementQ
*
* Full name: System`GroupElementQ
*
* Usage: GroupElementQ[group, g] returns T... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,032 | mathemagika | Apache License 2.0 |
src/main/kotlin/io/github/cottonmc/ingamedatafactory/ChangePackNameCommand.kt | CottonMC | 165,546,451 | false | {"Kotlin": 14006} | /* This file is a part of the In-Game Data Factory project
* by the Cotton Project, licensed under the MIT license.
* Full code and license: https://github.com/CottonMC/ingame-data-factory
*/
package io.github.cottonmc.ingamedatafactory
import com.mojang.brigadier.arguments.StringArgumentType
import com.mojang.brig... | 1 | Kotlin | 0 | 0 | 4a81e203ee304b2f9df5f296c07e5b2a70ee4744 | 1,309 | InGameDataFactory | MIT License |
app/src/main/java/de/schlangguru/paperlessuploader/util/BindingAdapters.kt | schlangguru | 104,633,510 | false | null | package de.schlangguru.paperlessuploader.util
import android.databinding.BindingAdapter
import android.net.Uri
import android.widget.ImageView
import de.schlangguru.paperlessuploader.ContextHolder
/**
* Binding Adapter to generate a bitmap based on the Uri of a PDF file.
*/
@BindingAdapter("bind:pdf_thumbnail_uri")... | 0 | Kotlin | 0 | 0 | d8590ec40df3dd253f4075256f9e5cfa685d2bf8 | 473 | paperless-uploader | MIT License |
app/src/main/java/com/example/flixsterplus/MainActivity.kt | jananipands | 544,716,912 | false | null | package com.example.flixsterplus
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.R.id.content
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity... | 0 | Kotlin | 0 | 0 | f4d727d37031556e5b04ec163231ea191ccdbd77 | 553 | FlixsterPlus | Apache License 2.0 |
data/src/main/java/org/lotka/xenonx/data/local/entity/model/CoinDetail.kt | armanqanih | 831,384,890 | false | {"Kotlin": 181020} | package org.lotka.xenonx.data.local.entity.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import org.lotka.xenonx.data.model.convert.Converters
import org.lotka.xenonx.domain.model.CoinDetailModel
@Entity(tableName = "coins_detail")
@TypeConverters(Converters:... | 0 | Kotlin | 0 | 0 | 866982022e5baf8ba6a2d533765d5287f38524e2 | 1,330 | MyGradleLastVersion | Apache License 2.0 |
src/main/kotlin/pl/net/gwynder/central/common/errors/DataNotFound.kt | mikrzem | 168,373,172 | false | null | package pl.net.gwynder.central.common.errors
class DataNotFound(missing: String) : Exception("Data not found: $missing") | 0 | Kotlin | 0 | 0 | d59cb442b439a50a42ef56b62d8dfc9625e2f808 | 121 | gwynder-central | MIT License |
src/main/kotlin/world/chunk/ChunkCreationNeighborBookkeeper.kt | Heknon | 368,843,099 | false | null | package world.chunk
import world.World
import world.getLocation
class ChunkCreationNeighborBookkeeper(private val world: World) {
private val neighborCreationBooks = mutableMapOf<Long, MutableList<Long>>()
fun registerChunk(chunk: Chunk) {
val compressedChunkLoc = chunk.location.compress()
va... | 0 | Kotlin | 0 | 0 | ef898d4dd6fbc1fc7a0f38ad990871a274d1c02d | 1,453 | Minecraft-Final-CS | MIT License |
plugins/kotlin/compiler-plugins/parcelize/tests/testData/quickfix/propertyWontBeSerialized/simple.kt | ingokegel | 72,937,917 | false | null | // "Add '@IgnoredOnParcel' annotation" "true"
// WITH_STDLIB
package com.myapp.activity
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class Test : Parcelable {
val <caret>a = 5
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 214 | intellij-community | Apache License 2.0 |
app/src/main/java/com/example/bookingapp/domain/usecases/user/GetCurrentUserUseCase.kt | sv-bubenschikov | 511,498,525 | false | null | package com.example.bookingapp.domain.usecases.user
import com.example.bookingapp.domain.repositories_interface.UserRepository
import javax.inject.Inject
class GetCurrentUserUseCase @Inject constructor(
private val userRepository: UserRepository
) {
operator fun invoke() =
userRepository.getCurrentUse... | 3 | Kotlin | 1 | 0 | 643699535e4f9aad8cb71c5ce478cdaf4fb4edd1 | 325 | booking | MIT License |
frontend/app/src/main/java/com/example/library_management_system/presentation/UI/Authentication/signup/SignUpViewModel.kt | aasif21 | 835,881,037 | false | {"Kotlin": 75858, "JavaScript": 8858} | package com.example.library_management_system.presentation.UI.Authentication.signup
import android.util.Log
import androidx.compose.ui.platform.LocalContext
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.library_management_system.api.RetrofitInstance
import com.example.... | 0 | Kotlin | 0 | 0 | aa41f515fe703505ba9a0ecf047241f34f3f08ad | 2,296 | Library_Management_System | MIT License |
app/src/main/java/br/com/devmeist3r/movie_favorite_feature/domain/usecase/IsMovieFavoriteUseCase.kt | luksinocencio | 717,076,189 | false | {"Kotlin": 129980} | package br.com.devmeist3r.movie_favorite_feature.domain.usecase
import br.com.devmeist3r.core.domain.model.Movie
import br.com.devmeist3r.core.util.ResultData
import br.com.devmeist3r.movie_favorite_feature.domain.repository.MovieFavoriteRepository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.F... | 0 | Kotlin | 0 | 0 | 539feb490298d76761df67f701e3a5be4d2949b3 | 1,009 | kotlin_movie_app_compose | MIT License |
app/src/main/java/com/itscryo/hermes/app/inbox/model/UserMessageStatus.kt | cryoelite | 453,900,367 | false | null | package com.itscryo.hermes.app.inbox.model
import android.graphics.drawable.Drawable
import com.itscryo.hermes.R
enum class UserMessageStatusEnum(val drawableID: Int) {
SENT(R.drawable.message_delivered_icon), SEEN(R.drawable.message_read_icon), WAITING(R.drawable.message_waiting_icon),
}
data class UserMessageStat... | 0 | Kotlin | 0 | 0 | 050ca21e3dab49b99a24a9a6f2a6481872f1b88a | 358 | Hermes | MIT License |
cotton-base/src/commonTest/kotlin/MockServers.kt | kyzmitch | 90,989,082 | false | {"Swift": 852534, "Kotlin": 83129, "JavaScript": 12500, "Ruby": 8534, "Makefile": 8274, "Objective-C": 4975, "HTML": 3562} | import org.cotton.base.Host
import org.cotton.base.ServerDescription
class MockGoogleDnsServer : ServerDescription(Host("dns.google"))
class MockGoogleSearchServer : ServerDescription(Host("www.google.com"))
class MockDuckDuckGoServer : ServerDescription(Host("ac.duckduckgo.com"))
| 17 | Swift | 0 | 5 | f0e3a91c6bb34a5a7117f664be556eb4cdf654d3 | 285 | Cotton | MIT No Attribution |
korio/src/jvmMain/kotlin/com/soywiz/korio/util/ProcessExt.kt | korlibs | 77,343,418 | false | null | package com.soywiz.korio.util
val Process.isAliveJre7: Boolean
get() = try {
exitValue()
false
} catch (e: IllegalThreadStateException) {
true
}
| 15 | Kotlin | 33 | 349 | e9e89804f5682db0a70e58b91f469b49698dd72b | 155 | korio | MIT License |
vire-engine/src/main/kotlin/net/voxelpi/vire/engine/environment/library/KotlinLibrary.kt | VoxelPi | 700,036,011 | false | {"Kotlin": 336452} | package net.voxelpi.vire.engine.environment.library
import net.voxelpi.vire.engine.Identifier
import net.voxelpi.vire.engine.kernel.Kernel
import net.voxelpi.vire.engine.kernel.registered.LibraryKernel
/**
* A library for a vire environment that was defined in kotlin source code.
*/
public abstract class KotlinLibr... | 2 | Kotlin | 0 | 0 | 425bd5d0c2fee1125f059b7a6308ab8d5409c7b7 | 1,152 | Vire | MIT License |
src/client/kotlin/fyi/fyw/monutils/modules/misc/Pickup.kt | FYWinds | 796,139,959 | false | {"Kotlin": 68734, "Java": 4565} | package fyi.fyw.monutils.modules.misc
import fyi.fyw.monutils.config.Misc
import net.minecraft.client.MinecraftClient
import kotlin.math.abs
object Pickup {
private var ticksSneaking = 0
private var switched = false
fun tick(client: MinecraftClient) {
val player = client.player ?: return
... | 0 | Kotlin | 0 | 0 | b50c825bb53b6c99e00a0867104a086b37ae7c79 | 1,473 | MonutilsFabric | MIT License |
secdra-web/src/main/kotlin/com/junjie/secdraweb/controller/WebSocketController.kt | fuzeongit | 154,359,683 | false | null | package com.junjie.secdraweb.controller
import com.junjie.secdracore.model.Result
import com.junjie.secdraservice.model.Draw
import com.junjie.secdraweb.base.component.BaseConfig
import org.springframework.messaging.Message
import org.springframework.messaging.handler.annotation.Headers
import org.springframework.mess... | 1 | null | 4 | 11 | f75c32e5fb834d456a3182f71aee08029a1629d3 | 2,160 | secdra | MIT License |
Kotlin-Hello/src/main/kotlin/org/example/Hello.kt | Vipcube | 288,696,367 | false | null | package org.example
fun main(args: Array<String>) {
println( Tools.echo( "World!" ) )
}
| 1 | null | 1 | 1 | f77d34cfeff10287184fbd9f691e9073a5171dac | 94 | Demo-Kotlin | MIT License |
src/test/kotlin/no/nav/helse/flex/utvikling/UtviklingApplication.kt | navikt | 475,306,289 | false | {"Kotlin": 1690428, "Dockerfile": 267} | package no.nav.helse.flex.utvikling
import no.nav.helse.flex.Application
import no.nav.helse.flex.mockdispatcher.FlexSyketilfelleMockDispatcher
import no.nav.helse.flex.testoppsett.startAlleContainere
import no.nav.helse.flex.testoppsett.startMockWebServere
import no.nav.security.token.support.spring.test.EnableMockOA... | 0 | Kotlin | 0 | 4 | 23e9271bf48afe3a192a0c99841b9e9b6439d1f7 | 1,142 | sykepengesoknad-backend | MIT License |
app/src/main/java/com/istu/schedule/domain/usecase/projfair/GetSpecialitiesListUseCase.kt | imysko | 498,018,609 | false | {"Kotlin": 655983} | package com.istu.schedule.domain.usecase.projfair
import com.istu.schedule.domain.model.projfair.Speciality
import com.istu.schedule.domain.repository.projfair.FiltersDataRepository
import javax.inject.Inject
class GetSpecialitiesListUseCase @Inject constructor(
private val filtersDataRepository: FiltersDataRepos... | 1 | Kotlin | 0 | 2 | 832c06b891f1c9088d6871e76c7eb3956d9cf762 | 479 | Schedule-ISTU | MIT License |
app/src/main/java/com/snatik/matches/fragments/MenuFragment.kt | okparbaba | 283,109,473 | false | {"Kotlin": 94031, "Java": 209} | package com.snatik.matches.fragments
import android.animation.*
import android.annotation.SuppressLint
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AccelerateDecelerateInterpolator... | 0 | Kotlin | 0 | 0 | 6a6b28a833f4e14d72136a0fd8a9d757b05681c5 | 5,647 | Memory-Game | Apache License 2.0 |
shared/src/commonMain/kotlin/com/martianlab/recipes/entities/Result.kt | topinambur | 322,031,089 | false | {"YAML": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 2, "Dart": 15, "INI": 8, "Gradle": 3, "Java Properties": 4, "XML": 15, "Kotlin": 38, "Java": 2, "Gradle Kotlin DSL": 1, "Ruby": 1, "OpenStep Property List": 4, "Objective-C": 1, "Swift": 1, "JSON": 2, "SVG": 11} | package com.martianlab.recipes.entities
sealed class Result<out T> {
data class Success<T>(val data: T?) : Result<T>()
data class Failure(val statusCode: Int?) : Result<Nothing>()
object NetworkError : Result<Nothing>()
} | 1 | Kotlin | 1 | 6 | 515e7d3324290dc51075c780ed43c16064c6f8ad | 234 | Recipes-Flutter-KMM | Apache License 2.0 |
app/src/main/kotlin/batect/updates/UpdateInfoStorage.kt | da4089 | 183,998,060 | false | {"Gradle": 20, "INI": 2, "Markdown": 26, "Shell": 25, "Text": 3, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 1, "YAML": 41, "Kotlin": 391, "Dockerfile": 25, "HTML": 5, "Groovy": 4, "Python": 2, "Java": 1, "JSON": 2, "JavaScript": 8} | /*
Copyright 2017-2019 Charles Korn.
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... | 4 | null | 1 | 1 | b02013e2b0ab3e9ba3298f160c69971543bda985 | 3,484 | batect | Apache License 2.0 |
app/src/main/java/org/xm/app/translator/opensource/ui/MainDrawerActivity.kt | devallever | 282,608,665 | false | null | package org.xm.app.translator.opensource.ui
import android.os.Bundle
import com.allever.lib.common.app.BaseActivity
import org.xm.app.translator.opensource.R
class MainDrawerActivity : BaseActivity(){
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setConten... | 1 | null | 1 | 1 | e45837e2134bbde2cff6c00e46c47ee6e0a3c244 | 547 | Translator-MVVM-Jetpack-OpenSource | Apache License 2.0 |
tmp/arrays/youTrackTests/321.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-36468
interface A : Cloneable {
override fun clone(): A = super.clone() as A
}
class C(val result: String) : A {
public override fun clone(): C = super.clone() as C
}
fun box(): String = C("OK").clone().result
fun main() {
println(box())
}
| 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 276 | bbfgradle | Apache License 2.0 |
Network/src/main/java/com/nankung/network/repository/MovieRepository.kt | anunkwp | 245,392,754 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "INI": 2, "Proguard": 3, "Kotlin": 91, "XML": 57, "Java": 1} | package com.nankung.network.repository
import androidx.lifecycle.LiveData
import com.nankung.network.database.dao.MovieDao
import com.nankung.network.database.MovieDatabase
import com.nankung.network.engine.trigger.PopularTrigger
import com.nankung.network.engine.trigger.ValidateTrigger
import com.nankung.network.mode... | 1 | null | 1 | 1 | 852c96bbd9b9d41d42f5c27248cbe3f219dc9fda | 6,301 | KotlinMvvmStructure | Apache License 2.0 |
app/src/main/java/io/redgreen/oneway/catalogue/smiley/SmileyIntention.kt | ragunathjawahar | 153,209,384 | false | null | package io.redgreen.oneway.catalogue.smiley
import arrow.core.None
import arrow.core.Option
import arrow.core.Some
sealed class SmileyIntention
@Suppress("DataClassPrivateConstructor")
data class PickSmileyIntention private constructor(
val characterOption: Option<String>
) : SmileyIntention() {
companion obje... | 2 | Kotlin | 1 | 26 | c50fb8ace2ed4be480d102d62138c6917d3aef95 | 471 | OneWay | Apache License 2.0 |
app/src/main/java/cn/imrhj/cowlevel/utils/SecurityUtils.kt | fossabot | 152,681,532 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Proguard": 1, "XML": 88, "Kotlin": 140, "Java": 1} | package cn.imrhj.cowlevel.utils
import cn.imrhj.cowlevel.App
import cn.imrhj.cowlevel.utils.cache.ACache
import com.elvishew.xlog.XLog
/**
* Created by rhj on 13/12/2017.
*/
object SecurityUtils {
private val mACache = ACache.get(App.app.filesDir)
private val SEED = "<KEY>"
fun getValue(key: String): ... | 0 | Kotlin | 0 | 1 | 26e361d39ae804d8093555a46b10c348d5bd4fee | 914 | NotCowLevel | Apache License 2.0 |
apps/samples/src/main/kotlin/io/agora/meeting/example/fragment/Main.kt | AgoraIO-Usecase | 390,732,016 | false | null | package io.agora.meeting.example.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import io.agora.meeting.R
import io.agora.meeting.annotation.Example
import io.agora.meeting.common.BaseFragment
import io.agora.meeting.common.model.Examples
imp... | 3 | Kotlin | 4 | 6 | 25739896f4a20e9e0fa01a005dc361b1030192c1 | 2,183 | AgoraMeeting-Android | MIT License |
Network/src/main/java/com/nankung/network/remote/ApiResponse.kt | anunkwp | 245,392,754 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "INI": 2, "Proguard": 3, "Kotlin": 91, "XML": 57, "Java": 1} | package com.nankung.network.remote
import retrofit2.Response
import java.util.regex.Pattern
@Suppress("unused") // T is used in extending classes
sealed class ApiResponse<T> {
companion object {
fun <T> create(error: Throwable): ApiErrorResponse<T> {
return ApiErrorResponse(error.message ?: "... | 1 | null | 1 | 1 | 852c96bbd9b9d41d42f5c27248cbe3f219dc9fda | 1,348 | KotlinMvvmStructure | Apache License 2.0 |
core/src/main/java/de/danoeh/antennapod/core/feed/FavoritesEntity.kt | rhysmdnz | 220,586,899 | true | {"INI": 1, "Shell": 2, "Markdown": 5, "Python": 1, "Batchfile": 1, "Java Properties": 1, "Proguard": 1, "Java": 428, "Kotlin": 12, "HTML": 1} | package de.danoeh.antennapod.core.feed
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "Favorites")
data class FavoritesEntity(
@PrimaryKey
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(name = "feeditem")
val ... | 0 | Java | 0 | 0 | 4bfbd8cf5c11e2243f395f7f23fe714995705fb0 | 394 | AntennaPod | MIT License |
presentation/src/main/java/com/yveschiong/personalrecordbook/common/rules/RegularPersonDetailRule.kt | yveschiong | 155,301,951 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 51, "Kotlin": 106, "INI": 1, "JSON": 2} | package com.yveschiong.personalrecordbook.common.rules
import com.yveschiong.personalrecordbook.entities.PersonDetail
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class RegularPersonDetailRule @Inject constructor(
private val timestampRule: TimestampRule,
private val complexTimestampRul... | 0 | Kotlin | 0 | 0 | 0fcef969c37db162b4eebbaa974a2d950a12cfec | 1,048 | personal-record-book | Apache License 2.0 |
work/work-runtime/src/main/java/androidx/work/OutOfQuotaPolicy.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 29 | null | 937 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,139 | androidx | Apache License 2.0 |
kex-runner/src/main/kotlin/org/vorpal/research/kex/trace/runner/SymbolicTracingRunner.kt | vorpal-research | 204,454,367 | false | {"Kotlin": 2271251, "Java": 82857, "Python": 1696} | package org.vorpal.research.kex.trace.runner
import org.vorpal.research.kex.ExecutionContext
import org.vorpal.research.kex.parameters.Parameters
import org.vorpal.research.kex.trace.symbolic.InstructionTraceCollector
import org.vorpal.research.kex.trace.symbolic.SymbolicState
import org.vorpal.research.kex.trace.symb... | 10 | Kotlin | 20 | 28 | 459dd8cb1c5b1512b5a920260cd0ebe503861b3e | 1,648 | kex | Apache License 2.0 |
stripe/src/test/java/com/stripe/android/StripeFireAndForgetRequestExecutorTest.kt | swdreams | 220,836,994 | true | {"Kotlin": 1543131, "Java": 141606, "Ruby": 6208} | package com.stripe.android
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.stripe.android.exception.APIConnectionException
import com.stripe.android.exception.InvalidRequestException
import java.util.UUID
import kotlin.test.Test
import kotlin.test.assertEquals
import org.jun... | 0 | null | 1 | 2 | 413c85d6213d894510cc78684287783e36eeb53b | 1,038 | stripe-android | MIT License |
app/src/main/java/org/wikipedia/suggestededits/provider/MissingDescriptionProvider.kt | AutoscanForJavaFork | 459,177,548 | false | null | package org.wikipedia.suggestededits.provider
import io.reactivex.Observable
import io.reactivex.functions.BiFunction
import org.wikipedia.dataclient.Service
import org.wikipedia.dataclient.ServiceFactory
import org.wikipedia.dataclient.WikiSite
import org.wikipedia.dataclient.mwapi.MwQueryPage
import org.wikipedia.da... | 1 | null | 1 | 1 | c760da625e612f1f781cd39d3cd00a4ec2db735a | 13,302 | apps-android-wikipedia | Apache License 2.0 |
laboratory/src/main/kotlin/net/kolotyluk/loom/LoomUtilities.kt | kolotyluk | 452,324,005 | false | {"Java": 207449, "Kotlin": 2883, "Gherkin": 1279, "Scala": 685, "CSS": 89} | package net.kolotyluk.loom
import java.util.concurrent.ExecutorService
object LoomUtilities {
fun ExecutorService.use(block: (executorService: ExecutorService) -> Unit) = block(this)
}
| 1 | Java | 2 | 1 | 438c4ae574a2c1f87f19f0839b34a8d14681db91 | 194 | loom-lab | Apache License 2.0 |
clients/kotlin-server/generated/src/main/kotlin/org/openapitools/server/models/FineTuningJobCheckpoint.kt | oapicf | 529,246,487 | false | {"Markdown": 6348, "YAML": 73, "Text": 16, "Ignore List": 52, "JSON": 1138, "Makefile": 3, "JavaScript": 1042, "F#": 585, "XML": 468, "Shell": 47, "Batchfile": 10, "Scala": 2313, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 6356, "Emacs Lisp": 1, "Haskell": 39, "Swift": 263, "Ruby": 555, "OASv3-yaml": 19, "Cab... | /**
* OpenAI API
* The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
*
* The version of the OpenAPI document: 2.0.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not ed... | 2 | Java | 0 | 4 | c04dc03fa17b816be6e9a262c047840301c084b6 | 2,170 | openapi-openai | MIT License |
clients/kotlin-server/generated/src/main/kotlin/org/openapitools/server/models/FineTuningJobCheckpoint.kt | oapicf | 529,246,487 | false | {"Markdown": 6348, "YAML": 73, "Text": 16, "Ignore List": 52, "JSON": 1138, "Makefile": 3, "JavaScript": 1042, "F#": 585, "XML": 468, "Shell": 47, "Batchfile": 10, "Scala": 2313, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 6356, "Emacs Lisp": 1, "Haskell": 39, "Swift": 263, "Ruby": 555, "OASv3-yaml": 19, "Cab... | /**
* OpenAI API
* The OpenAI REST API. Please see https://platform.openai.com/docs/api-reference for more details.
*
* The version of the OpenAPI document: 2.0.0
* Contact: <EMAIL>
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not ed... | 2 | Java | 0 | 4 | c04dc03fa17b816be6e9a262c047840301c084b6 | 2,170 | openapi-openai | MIT License |
src/test/kotlin/io/javalin/examples/HelloWorldSse.kt | dwestheide | 165,886,560 | false | null | /*
* Javalin - https://javalin.io
* Copyright 2017 <NAME>
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.examples
import io.javalin.Javalin
import io.javalin.serversentevent.EventSource
import java.util.concurrent.ConcurrentLinkedQueue
import java.util.conc... | 1 | null | 1 | 1 | 7332cf338088de30ddd5b2f07c2fd92f6fcc5afb | 933 | javalin | Apache License 2.0 |
services/report/src/test/kotlin/de/codecentric/hc/report/ReportControllerIntegrationTest.kt | codecentric | 448,952,713 | false | null | package de.codecentric.hc.report
import com.ninjasquad.springmockk.MockkBean
import de.codecentric.hc.report.api.ReportController
import io.mockk.every
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTe... | 11 | null | 3 | 22 | 615f85985bd3f752a214c51329efb66443fef1c9 | 932 | habitcentric | MIT License |
plugins/kotlin/idea/tests/testData/idea/actions/kotlinAddImportAction/Flexible.dependency.kt | ingokegel | 72,937,917 | false | null | // FIR_COMPARISON
// EXPECT_VARIANT_IN_ORDER "public fun String.quoteIfNeeded(): kotlin.Unit defined in p1 in file Flexible.dependency.kt"
package p1
fun String.quoteIfNeeded() {}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 181 | intellij-community | Apache License 2.0 |
chats/src/main/java/com/cyberland/messenger/chats/components/ChatGroupShareMemberCell.kt | Era-CyberLabs | 576,196,269 | false | {"Java": 6276144, "Kotlin": 5427066, "HTML": 92928, "C": 30870, "Groovy": 12495, "C++": 6551, "CMake": 2728, "Python": 1600, "AIDL": 1267, "Makefile": 472} | package com.bcm.messenger.chats.components
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import com.bcm.messenger.chats.R
import com.bcm.messenger.common.core.Address
import com.... | 1 | null | 1 | 1 | 65a11e5f009394897ddc08f4252969458454d052 | 2,068 | cyberland-android | Apache License 2.0 |
app/src/main/java/com/mappls/sdk/demo/kotlin/activity/FullModeFragmentAutocompleteActivity.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.activity
import android.app.Activity
import android.content.DialogInterface
import android.content.Intent
import android.graphics.Color
import android.location.Location
import android.os.Bundle
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.A... | 2 | Java | 1 | 6 | 9c99d32a2acb24c9947357701e4f507151ff59e1 | 11,497 | mappls-android-sdk | FSF All Permissive License |
src/main/kotlin/org/kstore/demo/stars/gameplay/model/player/resources/consts.kt | minorbyte | 194,674,817 | false | null | package org.kstore.demo.stars.gameplay.model.player.resources
const val INITIAL_RESOURCES = 1000
const val INITIAL_FUEL = 50
| 0 | Kotlin | 0 | 0 | b91a6a00d4e60a84dc8bceba5dd02c3aa352ca88 | 128 | kotlin-reactive-store | MIT License |
core/src/com/arcadan/push_the_player/collideExercise/RectangleCircleCollisionGame.kt | ArcaDone | 351,150,969 | false | {"Gradle": 6, "INI": 3, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 28, "Proguard": 1, "XML": 17, "Java Properties": 1, "Java": 3, "JSON": 3} | package com.arcadan.push_the_player.collideExercise
import com.badlogic.gdx.Game
class RectangleCircleCollisionGame : Game() {
override fun create() {
setScreen(RectangleCircleCollisionScreen())
}
} | 1 | null | 1 | 1 | 492f73852edf8734dae3d3f35755b4c9edb24832 | 216 | PlatformGameLibGDX | MIT License |
libs/sockets/src/main/kotlin/batect/sockets/namedpipes/NativeMethods.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-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... | 12 | Kotlin | 47 | 620 | 1b6cb1d79d91a70a0cb038cc29b2db1c025fea9e | 12,090 | batect | Apache License 2.0 |
app/src/main/java/eu/se_bastiaan/marietje/data/model/Song.kt | se-bastiaan | 32,793,162 | false | null | package eu.se_bastiaan.marietje.data.model
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import paperparcel.PaperParcel
import java.util.*
@PaperParcel
data class Song(
@SerializedName("id") val objectId: Long,
val duration: Long,
val t... | 0 | null | 1 | 1 | 56640fc3636ccf00e64e67b12872687217862273 | 940 | Marietje-Android | Apache License 2.0 |
Android/android-repository/common/src/main/java/com/sea/common/http/interceptor/ui/HttpLogsRequestFragment.kt | entrealist | 389,325,711 | false | null | package com.sea.common.http.interceptor.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.sea.common.R
import com.sea.common.databinding.HttpFragmentLogsReque... | 1 | null | 1 | 1 | 5a23991a94e3fe6eaaa49263b7b78f4954edda7a | 1,403 | ReadingNote | MIT License |
app/src/main/kotlin/me/sweetll/tucao/di/service/JsonApiService.kt | zssAndroid | 98,253,795 | true | {"Java Properties": 3, "YAML": 1, "Gradle": 9, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Text": 3, "Ignore List": 3, "Git Config": 1, "Proguard": 2, "Java": 155, "XML": 149, "INI": 4, "Ant Build System": 1, "Kotlin": 142} | package me.sweetll.tucao.di.service
import io.reactivex.Observable
import me.sweetll.tucao.model.json.BaseResponse
import me.sweetll.tucao.model.json.ListResponse
import me.sweetll.tucao.model.json.Result
import me.sweetll.tucao.model.json.Version
import retrofit2.http.GET
import retrofit2.http.Query
interface JsonAp... | 0 | Java | 0 | 0 | b10075d7190913a28660b70f68a5ee485c9a9f31 | 1,345 | Tucao | MIT License |
src/main/kotlin/snyk/common/codevision/LSCodeVisionProvider.kt | snyk | 117,852,067 | false | null | package snyk.common.codevision
import com.intellij.codeInsight.codeVision.*
import com.intellij.codeInsight.codeVision.settings.CodeVisionGroupSettingProvider
import com.intellij.codeInsight.codeVision.ui.model.ClickableTextCodeVisionEntry
import com.intellij.openapi.application.ReadAction
import com.intellij.openapi.... | 8 | null | 34 | 54 | 170f7da4c648b9201c07818810e04ba73fe2e567 | 4,909 | snyk-intellij-plugin | Apache License 2.0 |
litho-it/src/main/java/com/facebook/litho/widget/KotlinObjectSpec.kt | dmitryvinn | 458,717,576 | true | {"Java Properties": 51, "Markdown": 76, "Shell": 20, "Batchfile": 12, "Java": 1879, "Kotlin": 315, "C": 2, "C++": 44, "CMake": 2, "JavaScript": 7, "HTML": 1141, "CSS": 1, "Proguard": 9, "Haskell": 1} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 0 | Java | 0 | 0 | 965e9604a8147d39f34ca440930002ce946c9429 | 1,373 | litho | Apache License 2.0 |
rxdownload3/src/main/java/zlc/season/rxdownload3/core/RealMission.kt | wujushan | 108,525,871 | false | {"Java": 184511, "Kotlin": 170389} | package zlc.season.rxdownload3.core
import android.app.NotificationManager
import android.content.Context
import io.reactivex.Flowable
import io.reactivex.Maybe
import io.reactivex.disposables.Disposable
import io.reactivex.processors.BehaviorProcessor
import io.reactivex.schedulers.Schedulers.io
import io.reactivex.s... | 1 | Java | 1 | 1 | e117722967e6899804cf898d84186e7055c7feb9 | 7,631 | ssseasonnn-RxDownload-1e1e75d | Apache License 2.0 |
backend/src/test/kotlin/ase/athlete_view/unit/user/UserControllerUnitTests.kt | bastianferch | 753,047,760 | false | {"Kotlin": 895253, "TypeScript": 217992, "HTML": 75240, "Python": 44465, "SCSS": 25875, "JavaScript": 9353, "Dockerfile": 1329, "Shell": 203} | /*-
* #%L
* athlete_view
* %%
* Copyright (C) 2023 - 2024 TU Wien INSO ASE GROUP 5 WS2023
* %%
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without l... | 0 | Kotlin | 0 | 3 | bb6edd91d50f4944948d194f2b300ec9d2ec818a | 8,130 | AthleteView | MIT License |
app/src/main/java/com/jdagnogo/welovemarathon/restaurant/presentation/RestaurantScreen.kt | jdagnogo | 424,252,162 | false | {"Kotlin": 625180} | package com.jdagnogo.welovemarathon.restaurant.presentation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.navigation.NavController
import com.jdagnogo.welovemarathon.common.ui.compon... | 0 | Kotlin | 0 | 0 | e82d9fb221b605ce996a68dc938692273279f662 | 1,382 | WeLoveMArathon | The Unlicense |
client/android/SmartHouseRemote/app/src/main/java/org/calinrc/smarthouseremote/data/Parsers.kt | calinrc | 430,226,113 | false | null | package org.calinrc.smarthouseremote.data
import java.io.BufferedReader
import java.io.InputStream
sealed class HomeResponse {
data class HomeStatusResponse(val statusCode: Int, val response: String) : HomeResponse() {
override fun toString(): String {
return "$statusCode - $response"
... | 0 | Kotlin | 0 | 1 | a4f74d868cf73375018ddbc8b7a807343bf68d63 | 3,079 | smart-home-remote | Apache License 2.0 |
app/src/main/java/com/dede/sonimei/module/play/IPlayControllerListenerI.kt | hushenghao | 133,592,946 | false | null | package com.dede.sonimei.module.play
import android.os.Build
import androidx.annotation.RequiresApi
import com.dede.sonimei.data.BaseSong
/**
* Created by hsh on 2018/8/6.
* 播放控制接口
*/
interface IPlayControllerListenerI : IReviseOnPlayStateChangeListener {
/**
* 获取当前播放列表
*/
fun getPlayList(): Lis... | 0 | null | 18 | 99 | 5ddce06b4cfde3472156aed0693893e3ada7c09c | 1,477 | music | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/roommultiprocess/data/repository/NumberRepository.kt | raheemadamboev | 524,027,302 | false | {"Kotlin": 13125} | package xyz.teamgravity.roommultiprocess.data.repository
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.withContext
import xyz.teamgravity.roommultiprocess.data.local.dao.NumberDao
import xyz.teamgravity.roommultiprocess.data.mappe... | 0 | Kotlin | 0 | 0 | 9e2acc3156d977b3f703a1752a6088f9700466a1 | 1,128 | room-multi-process | Apache License 2.0 |
app/src/main/java/com/msomodi/imageverse/repository/AuthenticationRepository.kt | MarioSomodi | 602,268,671 | false | {"Kotlin": 274194} | package com.msomodi.imageverse.repository
import com.msomodi.imageverse.api.ImageverseApi
import com.msomodi.imageverse.db.ImageverseDatabase
import com.msomodi.imageverse.model.auth.request.LoginRequest
import com.msomodi.imageverse.model.auth.request.RegisterRequest
import com.msomodi.imageverse.model.auth.response.... | 0 | Kotlin | 0 | 0 | 879469f59f4417f3a3e3d1de63d31723f81fb2b4 | 2,118 | Imageverse | MIT License |
app/src/main/java/com/hyouteki/projects/memey/interfaces/Saver.kt | Hyouteki | 581,155,877 | false | {"Kotlin": 114267} | package com.hyouteki.projects.memey.interfaces
import android.content.Context
import android.content.SharedPreferences
interface Saver {
companion object {
private const val TAG = "SharedPreferences@Memey"
private const val MODE = Context.MODE_PRIVATE
// TAG names
const val DEFAU... | 0 | Kotlin | 0 | 6 | f5fffc4e18d196404fd407ae648f66faf9f8121e | 1,111 | Memey | MIT License |
feature/records/src/main/kotlin/cn/wj/android/cashbook/feature/records/viewmodel/CalendarViewModel.kt | WangJie0822 | 365,932,300 | false | null | /*
* Copyright 2021 The Cashbook Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 7 | null | 8 | 71 | 6c39b443a1e1e46cf3c4533db3ab270df1f1b9e8 | 5,088 | Cashbook | Apache License 2.0 |
kotlin-js-action/src/main/kotlin/internal/github/context.module_@actions_github.kt | rnett | 338,472,474 | false | null | @file:Suppress(
"INTERFACE_WITH_SUPERCLASS",
"OVERRIDING_FINAL_MEMBER",
"RETURN_TYPE_MISMATCH_ON_OVERRIDE",
"CONFLICTING_OVERLOADS"
)
@file:JsModule("@actions/github")
@file:JsNonModule
package internal.github
internal external open class Context {
open var payload: WebhookPayload
open var eve... | 0 | Kotlin | 0 | 8 | f81dee66d926b6eff272dbe1ed6a49ee43251e47 | 645 | kotlin-js-action | Apache License 2.0 |
app/src/main/java/com/example/kotlin_mvvm_clean_architecture_demo/presentation/view/activity/MainActivity.kt | caramelWaffle | 291,373,142 | false | null | package com.example.kotlin_mvvm_clean_architecture_demo.presentation.view.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import com.example.kotlin_mvvm_clean_architecture_demo.R
import com.example.kotlin_mvvm_clean_architecture_demo.databin... | 0 | Kotlin | 0 | 0 | d8b8ac5f828e0f3fccb418b142a8d06eda87f135 | 630 | Kotlin-MVVM-Clean-Architecture-Demo | MIT License |
app/src/main/java/id/blossom/ui/fragment/home/adapter/OnGoingAnimeAdapter.kt | spookynova | 675,505,750 | false | {"Kotlin": 153182} | package id.blossom.ui.fragment.home.adapter
import android.view.LayoutInflater
import android.view.View.GONE
import android.view.ViewGroup
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCache... | 0 | Kotlin | 2 | 17 | f0b47497b956399a63422f6c505521a6615951f5 | 2,337 | Blossom | Apache License 2.0 |
app/src/main/java/com/example/android/eggtimernotifications/util/NotificationUtils.kt | Isgors | 425,952,705 | true | {"Kotlin": 20210} | /*
* Copyright (C) 2019 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 0 | Kotlin | 0 | 1 | 52eadadbee28263f9b8bf516f10caee329c71892 | 2,914 | android-kotlin-notifications | Apache License 2.0 |
net/src/test/java/com/tans/tfiletransporter/TcpClientTest.kt | Tans5 | 329,625,887 | false | {"Kotlin": 513053} | package com.tans.tfiletransporter
import com.tans.tfiletransporter.netty.*
import com.tans.tfiletransporter.netty.extensions.*
import com.tans.tfiletransporter.netty.tcp.NettyTcpClientConnectionTask
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.asExecutor
import kotlinx.coroutines.delay
import kotlin... | 0 | Kotlin | 20 | 96 | 061bf75ba02b48693e61fbc15af670dc24a4c2cf | 3,103 | tFileTransporter | Apache License 2.0 |
sdk-scrapper/src/test/kotlin/io/github/wulkanowy/sdk/scrapper/BaseLocalTest.kt | wulkanowy | 138,756,468 | false | null | package io.github.wulkanowy.sdk.scrapper
import com.squareup.moshi.Moshi
import io.github.wulkanowy.sdk.scrapper.adapter.CustomDateAdapter
import io.github.wulkanowy.sdk.scrapper.adapter.GradeDateDeserializer
import io.github.wulkanowy.sdk.scrapper.interceptor.AutoLoginInterceptor
import io.github.wulkanowy.sdk.scrapp... | 9 | null | 4 | 18 | 57680ecb3fa0ddf352ab1c5c53a00f260e5d6c9c | 3,880 | sdk | Apache License 2.0 |
src/main/kotlin/io/github/suitetecsa/sdk/nauta/model/users/UsersResponse.kt | suitetecsa | 696,970,114 | false | null | package io.github.suitetecsa.sdk.nauta.model.users
import com.squareup.moshi.Json
import com.squareup.moshi.JsonAdapter
import com.squareup.moshi.JsonClass
import com.squareup.moshi.JsonReader
import com.squareup.moshi.JsonWriter
import com.squareup.moshi.Moshi
import io.github.suitetecsa.sdk.exception.NautaAttributeE... | 1 | null | 1 | 3 | 0e245b2ec75fa10a44b451616c79e69952e3d465 | 1,304 | sdk-kotlin | MIT License |
clients/kotlin-vertx/generated/src/main/kotlin/org/openapitools/server/api/verticle/RemoteAccessApiVerticle.kt | oapicf | 90,140,540 | false | {"Markdown": 2427, "YAML": 76, "Text": 16, "Ignore List": 61, "JSON": 514, "Makefile": 3, "JavaScript": 371, "F#": 195, "XML": 206, "Shell": 50, "Batchfile": 10, "Scala": 796, "INI": 31, "Dockerfile": 17, "Maven POM": 22, "Java": 2299, "Emacs Lisp": 1, "Haskell": 40, "Swift": 96, "Ruby": 215, "Cabal Config": 2, "OASv3-... | package org.openapitools.server.api.verticle
import io.vertx.core.Vertx
import io.vertx.core.AbstractVerticle
import io.vertx.serviceproxy.ServiceBinder
fun main(){
Vertx.vertx().deployVerticle(RemoteAccessApiVerticle())
}
class RemoteAccessApiVerticle:AbstractVerticle() {
override fun start() {
val ... | 30 | Java | 12 | 19 | 277d791c0d363a4d93832bec8a581d4c01297b18 | 641 | swaggy-jenkins | MIT License |
components/bridge/dao/impl/src/test/java/com/flipperdevices/bridge/dao/impl/api/key/DatabaseKeyContentConverterTest.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 4167715, "FreeMarker": 10352, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.bridge.dao.impl.api.key
import android.content.Context
import android.os.Build
import android.os.Looper
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.flipperdevices.bridge.dao.api.model.FlipperKeyContent
import com.flipperdevices.bridge.dao.impl.comparator.FileComparator
im... | 21 | Kotlin | 174 | 1,528 | 8f293e596741a6c97409acbc8de10c7ae6e8d8b0 | 5,241 | Flipper-Android-App | MIT License |
app/src/main/java/ir/denora/statelayout_sample/MainActivity.kt | denora-team | 171,352,499 | false | null | package ir.denora.statelayout_sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import ir.denora.statelayout.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate... | 1 | Kotlin | 1 | 2 | 5c60739e1d22e4eb1aa6470b83647154f372bf4b | 1,638 | Android-StateLayout | MIT License |
app/src/main/java/com/supersuman/nerdclocks/BinaryClock.kt | supersu-man | 395,405,004 | false | {"Kotlin": 37146} | package com.supersuman.nerdclocks
import android.content.Context
import android.graphics.drawable.ShapeDrawable
import android.graphics.drawable.shapes.RoundRectShape
import android.os.Build
import androidx.annotation.ColorInt
import androidx.annotation.FloatRange
import androidx.compose.runtime.Composable
import andr... | 0 | Kotlin | 0 | 2 | 19d45dae969a35a5e299ff008cc225c5ecca92e2 | 5,127 | nerd-clocks | MIT License |
libs/saksbehandling-common/src/main/kotlin/VedtakType.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte.libs.common.vedtak
enum class VedtakType {
INNVILGELSE, OPPHOER, AVSLAG, ENDRING
} | 15 | Kotlin | 0 | 3 | 5c317f6c94b58c725545af6cdec64bf3f3f39e12 | 113 | pensjon-etterlatte-saksbehandling | MIT License |
bytecode/src/main/kotlin/gay/pizza/pork/bytecode/SymbolTable.kt | GayPizzaSpecifications | 680,636,847 | false | {"Kotlin": 319507} | package gay.pizza.pork.bytecode
import kotlinx.serialization.Serializable
@Serializable
data class SymbolTable(
val symbols: List<SymbolInfo>
)
| 0 | Kotlin | 1 | 0 | 4c50d48e1e9b73430af9cede99e3d9a6dfedb740 | 148 | pork | MIT License |
paysafe-core/src/main/java/com/paysafe/android/core/domain/exception/PaysafeRuntimeError.kt | paysafegroup | 768,755,663 | false | {"Kotlin": 688855, "Shell": 912} | /*
* Copyright (c) 2024 Paysafe Group
*/
package com.paysafe.android.core.domain.exception
data class PaysafeRuntimeError(
val code: Int = 0,
val displayMessage: String = "",
val detailedMessage: String = "",
val correlationId: String = ""
) : Throwable(displayMessage)
internal fun PaysafeRuntimeEr... | 0 | Kotlin | 0 | 0 | 12c474247106de081c0470647e325f8c24be4770 | 493 | paysafe_sdk_android_payments_api | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsstrengthsbasedneedsassessmentsapi/persistence/entity/Assessment.kt | ministryofjustice | 623,389,131 | false | {"Kotlin": 46788, "Dockerfile": 1216} | package uk.gov.justice.digital.hmpps.hmppsstrengthsbasedneedsassessmentsapi.persistence.entity
import jakarta.persistence.Column
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import jakarta.persistence.OneToOne
import... | 2 | Kotlin | 0 | 0 | f905f780ca1850707b0b1202798a3d77baea8746 | 853 | hmpps-strengths-based-needs-assessments-api | MIT License |
oops/src/main/kotlin/io/nichijou/oops/live/LongPrefLive.kt | iota9star | 148,626,401 | false | null | package io.nichijou.oops.live
import android.content.SharedPreferences
import kotlinx.coroutines.launch
class LongPrefLive(private val prefs: SharedPreferences, private val key: String) : CoroutinesIOLiveData<Long>(), SharedPreferences.OnSharedPreferenceChangeListener {
init {
launch {
postValue(getPrefV... | 0 | Kotlin | 1 | 11 | 81cfcfe281cd659e07c14defcafbcaee19cfed19 | 912 | oops-android-kt | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.