path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/club/anifox/android/data/local/entity/anime/translations/AnimeTranslationsEntity.kt | DeNyWho | 721,119,459 | false | {"Kotlin": 71162} | package club.anifox.android.data.local.entity.anime.translations
import androidx.room.Entity
import androidx.room.PrimaryKey
import club.anifox.android.domain.model.anime.translations.AnimeTranslations
@Entity(tableName = "anime_translations")
data class AnimeTranslationsEntity(
@PrimaryKey val translationId: Int... | 0 | Kotlin | 0 | 0 | 7ba1d37a007915e1a5e83d800b2bf5aa42579727 | 513 | Anifox_Android | Apache License 2.0 |
src/main/kotlin/com/minmax/ultradex/journeymap/PixelmonJMPlugin.kt | m-nny | 640,413,391 | false | null | package com.minmax.ultradex.journeymap
import com.minmax.ultradex.UltraDex
import journeymap.client.api.ClientPlugin
import journeymap.client.api.IClientAPI
import journeymap.client.api.IClientPlugin
import journeymap.client.api.display.MarkerOverlay
import journeymap.client.api.event.ClientEvent
import journeymap.cli... | 0 | Kotlin | 0 | 0 | 78618d476f95639778cb1d6422efb17a34042c2f | 2,014 | ultradex | MIT License |
src/main/kotlin/dev/rivu/rivutalks/plugins/HTTP.kt | RivuChk | 589,626,244 | false | null | package dev.rivu.rivutalks.plugins
import io.ktor.server.plugins.cachingheaders.*
import io.ktor.http.content.*
import io.ktor.http.*
import io.ktor.server.plugins.conditionalheaders.*
import io.ktor.server.plugins.swagger.*
import io.ktor.server.routing.*
import io.ktor.server.application.*
fun Application.configure... | 0 | Kotlin | 0 | 0 | a3a2c70847282a492d01492ab7bbfccb7aa7dbb1 | 671 | RivuTalks-Backend | MIT License |
src/main/kotlin/datamodel/DataType.kt | OKGenTool | 766,121,849 | false | {"Kotlin": 146826} | package datamodel
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.asTypeName
import org.slf4j.LoggerFactory
import java.time.LocalDate
import java.time.LocalDateTime
private val logger = LoggerFactory.getLogger(DataType::class.java.simpleName)
//TODO this enum is compromised with kotlinpoet
e... | 24 | Kotlin | 0 | 2 | 774a9f40251052d2fb0ae75d92771d123c4995cd | 2,263 | okgentool | Apache License 2.0 |
delrey-master/src/main/kotlin/dev/d1s/delrey/master/route/GetRunRoute.kt | d1snin | 697,357,995 | false | {"Kotlin": 60727, "Shell": 545, "Dockerfile": 128} | /*
* Copyright 2023 Mikhail Titov
*
* 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 t... | 0 | Kotlin | 0 | 0 | 1b093b1f2c1e8935ffa7fa16fd4a1d6c9d0d4e79 | 1,514 | delrey | Apache License 2.0 |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/ui/credential/saving/AutofillSavingCredentialsViewModel.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* Copyright (c) 2022 DuckDuckGo
*
* 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 ... | 67 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 2,801 | Android | Apache License 2.0 |
clients/graphql-kotlin-client-jackson/src/test/kotlin/com/expediagroup/graphql/client/jackson/data/EntitiesQuery.kt | ExpediaGroup | 148,706,161 | false | {"Kotlin": 2410561, "MDX": 720089, "HTML": 12165, "JavaScript": 10447, "CSS": 297, "Dockerfile": 147} | /*
* Copyright 2022 Expedia, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 68 | Kotlin | 345 | 1,739 | d3ad96077fc6d02471f996ef34c67066145acb15 | 1,852 | graphql-kotlin | Apache License 2.0 |
src/main/kotlin/com/haiziwang/platform/jplugin/kotlin/Extension.kt | sd4324530 | 109,666,246 | false | null | package com.haiziwang.platform.jplugin.kotlin
import net.jplugin.core.kernel.api.AbstractPlugin
/**
* 扩展接口,表示jplugin框架的一个扩展点功能
* @author peiyu
*/
interface Extension {
/**
* 注册这个扩展
* @param plugin 需要注册到的plugin
*/
fun register(plugin: AbstractPlugin)
}
/**
* 扩展异常
* @author peiyu
*/
class... | 1 | Kotlin | 0 | 0 | 41aad2c726f1eabde28349401be7e9fba3f52c65 | 395 | Jplugin-Kotlin-Support | Apache License 2.0 |
MarvelApp/app/src/main/java/br/com/fiap/marvelapp/presentation/CharacterListAdapter.kt | Rphmelo | 597,932,475 | false | {"Kotlin": 67946} | package br.com.fiap.marvelapp.presentation
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import br.com.fiap.marvelapp.R
//import br.c... | 0 | Kotlin | 1 | 6 | bc283856b7789bb51b6a925ef2b8cc32c6b7f57e | 2,770 | Android_3SIT_2023 | MIT License |
app/src/main/java/com/myanmar/tmn/mygooglemaps/model/Photos.kt | MrMyatNoe | 135,931,040 | false | {"Kotlin": 15222} | package com.myanmar.tmn.mygooglemaps.model
/**
* Created by msi on 6/3/2018.
*/
class Photos {
var height: Int = 0
var html_attributions: Array<String>? = null
var photo_reference: String? = null
var width: Int = 0
} | 0 | Kotlin | 0 | 0 | 491924726049e6ee635cbd3e458477ab88aeca1f | 236 | MyGoogleMaps | Apache License 2.0 |
app/src/main/java/com/panda/pda/app/operation/qms/quality_distribute/QualityDistributeDistributeFragment.kt | Givennn | 402,701,983 | false | null | package com.panda.pda.app.operation.qms.quality_distribute
import android.os.Bundle
import android.view.View
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.setFragmentResultListener
import by.kirich1409.viewbindingdelegate.viewBinding
import com.google.android.material.datepicker.Material... | 0 | Kotlin | 0 | 0 | 24f6284eed22b1fe91b5462a0cdd5a466d6531ad | 5,864 | pda | MIT License |
app/src/main/java/com/developerspace/webrtcsample/compose/data/model/RemoteStory.kt | nur-shuvo | 693,727,158 | false | {"Kotlin": 249872} | package com.developerspace.webrtcsample.compose.data.model
const val STORIES_REMOTE_PATH = "stories"
data class RemoteStory(
var userID: String? = "",
var storyUrl: String = "",
var postTimeStamp: String = "",
var extraData: String = "",
) | 5 | Kotlin | 0 | 1 | 33aa99b42433f718629e4896c5c16f0f878a38b1 | 257 | SwapMind | MIT License |
app/src/main/java/com/jadebyte/jadeplayer/main/albums/AlbumsFragment.kt | wilburt | 177,040,268 | false | null | // Copyright (c) 2019 . <NAME>. All Rights Reserved.
package com.jadebyte.jadeplayer.main.albums
import android.os.Bundle
import android.view.View
import androidx.core.view.ViewCompat
import androidx.lifecycle.ViewModelProviders
import androidx.navigation.fragment.FragmentNavigator
import androidx.navigation.fragmen... | 5 | Kotlin | 28 | 75 | e8b887c5074c6dde830252e322869d0ff8d362c5 | 2,352 | Jade-Player | Apache License 2.0 |
app/src/main/java/com/stratagile/qlink/ui/activity/otc/presenter/SelectCurrencyPresenter.kt | qlcchain | 115,608,966 | false | null | package com.stratagile.qlink.ui.activity.otc.presenter
import android.support.annotation.NonNull
import com.socks.library.KLog
import com.stratagile.qlink.data.api.HttpAPIWrapper
import com.stratagile.qlink.entity.otc.TradePair
import com.stratagile.qlink.ui.activity.otc.contract.SelectCurrencyContract
import com.strat... | 1 | null | 18 | 46 | 1c8066e4ebbb53c7401751ea3887a6315ccbe5eb | 1,670 | QWallet-Android | MIT License |
src/main/java/com/dzen/campfire/api/models/publications/post/PageLinkImage.kt | ZeonXX | 381,983,751 | false | {"Kotlin": 1087578} | package com.dzen.campfire.api.models.publications.post
import com.dzen.campfire.api.API
import com.dzen.campfire.api.tools.client.Request
import com.dzen.campfire.api.tools.server.IControllerResources
import com.sup.dev.java.libs.json.Json
class PageLinkImage : Page() {
var imageId = 0L
var link = ""
var... | 0 | Kotlin | 2 | 5 | 6f3b371624fb66a065bcbaa6302830c574c55e9f | 1,302 | CampfireApi | Apache License 2.0 |
app/src/main/java/com/example/culturaverde/Fragments/PrincipalConsumidoresFragment.kt | UTN-FRBA-Mobile | 207,704,504 | false | null | package com.example.culturaverde.Ui.Principalconsumidores
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProviders
import androidx.navigation.findNavController
import com.example... | 0 | Kotlin | 1 | 0 | 65c0be7f169ee51fc69c636ac92dd22e43e4aa18 | 1,911 | CulturaVerde | MIT License |
web-jsbridge-common/src/main/java/com/radiuswallet/uniweb/jsbridge/common/utils/JsBridgePhotoFileProvider.kt | z-chu | 507,885,693 | false | {"Kotlin": 235647, "HTML": 35730, "Java": 2730} | package com.radiuswallet.uniweb.jsbridge.common.utils
import android.content.Context
import androidx.core.content.FileProvider
import java.io.File
import java.text.SimpleDateFormat
import java.util.*
class JsBridgePhotoFileProvider : FileProvider() {
companion object {
private const val EXTERNAL_CACHE_PA... | 0 | Kotlin | 0 | 0 | ff68a80e02e19cecb8bf76243932639635df9fb5 | 2,148 | UniWeb | Apache License 2.0 |
src/main/kotlin/coverosR3z/persistence/exceptions/DatabaseCorruptedException.kt | 7ep | 269,398,431 | false | null | package coverosR3z.exceptions
/**
* If the database is irretrievably corrupted
*/
class DatabaseCorruptedException(message: String, val ex : Throwable? = null) : Exception(message) | 0 | null | 5 | 9 | 0c132ef0d0646d2137f39d4555b50010907b57df | 183 | r3z | MIT License |
app/src/main/java/com/kvl/cyclotrack/data/DerivedTripState.kt | kevinvanleer | 311,970,003 | false | null | package com.kvl.cyclotrack.data
data class DerivedTripState constructor(
val tripId: Long = -1L,
val timestamp: Long = 0L,
val duration: Double = 0.0,
val durationDelta: Double = 0.0,
val totalDistance: Double = 0.0,
val distanceDelta: Double = 0.0,
val altitude: Double = 0.0,
val altit... | 0 | Kotlin | 0 | 7 | e62bbb39eec10d2f3c327c024f1462e3a6736987 | 478 | cyclotrack | The Unlicense |
app/src/main/java/com/shweta/maskimageinshape/MainActivity.kt | ShwetaChauhan18 | 332,171,534 | false | null | package com.shweta.maskimageinshape
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setC... | 0 | Kotlin | 2 | 6 | 486b7ac4bd5211612ae766bcc511b4ea277328e6 | 641 | MaskImageInShape | Apache License 2.0 |
src/main/kotlin/dev/supergrecko/vexe/llvm/ir/values/constants/ConstantStruct.kt | arkencl | 275,663,397 | true | {"Kotlin": 372536, "Makefile": 227} | package dev.supergrecko.vexe.llvm.ir.values.constants
import dev.supergrecko.vexe.llvm.internal.util.toLLVMBool
import dev.supergrecko.vexe.llvm.ir.Context
import dev.supergrecko.vexe.llvm.ir.Value
import dev.supergrecko.vexe.llvm.ir.types.StructType
import dev.supergrecko.vexe.llvm.ir.values.traits.AggregateValue
imp... | 0 | Kotlin | 0 | 0 | 673522b620db4c8a619db5ccc5dfe62197b12f11 | 1,695 | llvm4kt | Apache License 2.0 |
app/src/main/java/com/dreamsoftware/tvnexa/ui/components/CommonFavoriteButton.kt | sergio11 | 328,373,511 | false | {"Kotlin": 586066} | @file:OptIn(ExperimentalTvMaterial3Api::class)
package com.dreamsoftware.tvnexa.ui.components
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.mater... | 0 | Kotlin | 0 | 1 | 30fb84765276b1afcadc27b0ce8ffc15155decc4 | 1,909 | tvnexa_androidtv | Apache License 2.0 |
app/src/main/java/com/example/myapplication/PoseLandMark.kt | kdh4718 | 524,694,364 | false | {"Kotlin": 24369} | /*
* Copyright 2020 Google LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 3 | 2 | 06c01407a7a7664570dd783ec48acd48ed366430 | 738 | Mediapipe_pose_Tracking_AAR_example | Apache License 2.0 |
app/src/main/java/com/example/worldexplorer/ui/searchlist/SearchListFragment.kt | Jokubas126 | 240,034,217 | false | null | package com.example.worldexplorer.ui.searchlist
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.Lin... | 0 | Kotlin | 0 | 1 | 3aeff21916b289ed7d68813880ac7ddfd50714dc | 2,819 | WorldExplorer | MIT License |
common/src/main/kotlin/kingmc/util/errorprone/IncompatibleModifiers.kt | Kingsthere | 603,292,992 | false | null | /*
* Copyright 2015 The Error Prone Authors.
*
* 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 ... | 0 | Kotlin | 0 | 1 | 7ce900670cdd8ddbf3b01d20ef3f1810179449b7 | 1,766 | kingmc-common | MIT License |
kotlin-typescript/src/main/generated/typescript/getPreEmitDiagnostics.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
import kotlinx.js.ReadonlyArray
external fun getPreEmitDiagnostics(
program: Program,
sourceFile: SourceFile = definedExternally,
cancellationToken: CancellationToken = definedExternally,
): Rea... | 12 | Kotlin | 145 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 343 | kotlin-wrappers | Apache License 2.0 |
10-async/src/main/kotlin/course/kotilin/async/futures/Promise.kt | iproduct | 277,474,020 | false | {"JavaScript": 3237497, "Kotlin": 545267, "Java": 110766, "HTML": 83688, "CSS": 44893, "SCSS": 32196, "Dockerfile": 58} | package course.kotilin.async.futures
class Promise<T> {
fun thenCompose(any: Any): Promise<T> {
return this
}
fun thenAccept(any: Any) {
}
}
| 0 | JavaScript | 1 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 169 | course-kotlin | Apache License 2.0 |
library/src/main/java/com/example/library/loadmore/DefaultLoadMoreViewProvide.kt | rain9155 | 196,387,879 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 7, "XML": 27, "Kotlin": 17} | package com.example.library.loadmore
import com.example.library.R
/**
* ILoadMoreHelper的默认实现
* Created by 陈健宇 at 2019/10/16
*/
class DefaultLoadMoreViewProvide : ILoadMoreViewProvide{
override fun getLoadMoreLayoutId(): Int = R.layout.baseadapter_load_more_layout
override fun getLoadingViewId(): Int = R.... | 0 | Kotlin | 1 | 1 | 936e2ce3096d9a8164537424896218210e48c274 | 499 | BaseAdapter | Apache License 2.0 |
app/src/main/java/com/livin/starwars/data/remote/dto/PeopleSearchDto.kt | Livinlawrence | 460,738,188 | false | {"Kotlin": 50922} | package com.livin.starwars.data.remote.dto
data class PeopleSearchDto(
val count: Int,
val next: String,
val previous: Any,
val results: List<Result>
) | 1 | Kotlin | 0 | 1 | 68f9fc34e2c79737b419ea06fa02f249d7cccce8 | 168 | StarwarsAPI | Apache License 2.0 |
project/app/src/main/java/com/cyuan/mysampleforkotlin/sample/instagram/ui/home/PostViewHolder.kt | WunKaiCyuan | 282,482,812 | false | null | package com.cyuan.mysampleforkotlin.sample.instagram.ui.home
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.cyuan.mysampleforkotlin.R
import com.cyuan.mysampleforkotlin.databinding.ItemInstagramPos... | 0 | Kotlin | 0 | 0 | 08bb41b64828848e35f6297d75dfcc13ccc11961 | 1,116 | MyAndroidSampleForKotlin | Apache License 2.0 |
decomat-core/src/test/kotlin/io/decomat/MatchTest.kt | ExoQuery | 642,945,613 | false | null | package io.decomat
import org.junit.jupiter.api.Nested
import kotlin.test.Test
import kotlin.test.assertFalse
import kotlin.test.assertTrue
@Suppress("DANGEROUS_CHARACTERS")
internal class MatchTest {
val foo = Entity("foo")
val bar = Entity("bar")
val baz = Entity("baz")
val waz = Entity("waz")
val kaz =... | 0 | Kotlin | 1 | 8 | 5770b2c8cdf547f0c16d9b9186391d8985ea2f29 | 2,060 | DecoMat | Apache License 2.0 |
ogya/src/main/java/com/billkainkoom/ogya/shared/OgyaListableTypes.kt | billkainkoom | 136,360,795 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 22, "XML": 36, "Java": 2} | package com.billkainkoom.ogya.shared
import com.billkainkoom.ogya.R
import com.billkainkoom.ogya.quicklist.ListableType
object OgyaListableTypes {
val QuickFormInput = ListableType(R.layout.component_quick_form_input)
} | 0 | Kotlin | 2 | 12 | 3d8d6e0a55763f066deacf2f57774eddf426abff | 225 | ogya | MIT License |
app/src/main/java/com/ash/smplaqi/AqiApp.kt | droid-ash | 439,088,826 | false | null | package com.ash.smplaqi
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class AqiApp : Application() | 0 | Kotlin | 1 | 0 | 750ae78a117abcff2e89cce8603fbd02c87113de | 143 | Smpl-AQI | Apache License 2.0 |
scripts/src/main/java/io/github/fate_grand_automata/scripts/prefs/IFriendGachaPreferences.kt | ArthurKun21 | 743,056,546 | false | {"Kotlin": 1420613} | package io.github.fate_grand_automata.scripts.prefs
interface IFriendGachaPreferences {
var shouldLimitFP: Boolean
var limitFP: Int
var shouldCreateCEBombAfterSummon: Boolean
var shouldRedirectToSell: Boolean
} | 18 | Kotlin | 0 | 1 | e491d9c467d24d70fdad5ff93b7a480804c5e79d | 230 | FGA-Preview | MIT License |
clef-workflow-api/clef-workflow-api-adapter/clef-workflow-api-adapter-element/src/main/java/io/arkitik/clef/workflow/api/adapter/element/creator/ElementFlowIdentityCreatorImpl.kt | arkitik | 443,436,455 | false | {"Kotlin": 433170, "Shell": 268, "Dockerfile": 244} | package io.arkitik.clef.workflow.api.adapter.element.creator
import io.arkitik.clef.workflow.api.domain.action.ActionIdentity
import io.arkitik.clef.workflow.api.domain.element.ElementFlowIdentity
import io.arkitik.clef.workflow.api.domain.element.ElementIdentity
import io.arkitik.clef.workflow.api.domain.stage.StageI... | 0 | Kotlin | 0 | 0 | 785e1b4ee583b6a6e3ea01e656eecd8365f171ef | 3,487 | clef-workflow | Apache License 2.0 |
qmobileapi/src/main/java/com/qmobile/qmobileapi/model/entity/DeletedRecord.kt | 4d | 611,817,848 | false | {"Kotlin": 209570, "Shell": 1659} | /*
* Created by <NAME> on 27/3/2020.
* 4D SAS
* Copyright (c) 2020 <NAME>. All rights reserved.
*/
package com.qmobile.qmobileapi.model.entity
data class DeletedRecord(
override val __KEY: String,
override val __TIMESTAMP: String? = null,
override val __STAMP: Int? = null,
override val __GlobalSta... | 1 | Kotlin | 0 | 1 | 09a8e259b98e839854e5dad59022d8151f20b9c5 | 788 | android-QMobileAPI | Apache License 2.0 |
CodeTester-IntelliJ-IDEA/src/main/java/de/fxnm/config/settings/project/transientstate/ProjectTransientSettingsData.kt | fxnm | 313,034,839 | false | null | package de.fxnm.config.settings.project.transientstate
class ProjectTransientSettingsData {
var loginLogoutPossible = true
var runPossible = true
var loggedIn = false
var internetConnectionToCodeTester = false
}
| 1 | null | 1 | 1 | 619cb4caa1c2fe17200612c3f1c2b40b2a295b2f | 234 | CodeTester-IDEA | MIT License |
src/trataEntrada.kt | AddsonVinicyus | 711,909,120 | false | {"Kotlin": 12495} | package src
//lambda [parâmetro] : tipo . [corpo]
fun verificaEntrada(expressao: String): Int{
//0 para expressão válida
//1 para expressão não válida por erro na entrada
//-1 para expressão não válida por não ser bem-tipado
if(expressao.contains("lambda")) {
return when {
express... | 0 | Kotlin | 0 | 0 | 3e6244748f4dd6e43c86d0f9e5605fc16fca2fc1 | 8,128 | implementacaoTipagem | MIT License |
android/app/src/main/kotlin/com/emergetools/hackernews/utils/TimeUtils.kt | EmergeTools | 682,684,464 | false | {"Kotlin": 34051, "Swift": 28591, "Ruby": 5785, "Objective-C": 544} | package com.emergetools.hackernews.utils
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext
import com.emergetools.hackernews.R
const val MILLIS_IN_SEC = 1000
const val SEC_IN_MIN = 60
const val SEC_IN_HOUR = 3600
const val SEC_IN_DAY = 86400
const val SEC_IN_WEEK = 604800
con... | 9 | Kotlin | 1 | 8 | 0f0a35715c3e296652ec4f97600ebe68848001cc | 1,964 | hackernews | MIT License |
app/src/test/java/com/pouyaheydari/sample/map/android/features/splash/SplashViewModelTest.kt | SirLordPouya | 278,319,980 | false | null | package com.pouyaheydari.sample.map.android.features.splash
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.pouyaheydari.sample.map.android.MainCoroutineRule
import com.pouyaheydari.sample.map.android.features.FakeDataRepository
import com.pouyaheydari.sample.map.android.features.getVehic... | 0 | Kotlin | 0 | 8 | 1567969246900fd391e2219d273238cd9d9aa4e9 | 2,381 | MapSample | Apache License 2.0 |
app/src/main/java/xyz/teamgravity/roomsqlcipher/data/model/FootballerModel.kt | raheemadamboev | 523,367,951 | false | {"Kotlin": 22283} | package xyz.teamgravity.roomsqlcipher.data.model
import xyz.teamgravity.roomsqlcipher.core.constant.Position
data class FootballerModel(
val id: Long = 0,
val name: String,
val ranking: Int,
val position: Position,
)
| 0 | Kotlin | 2 | 3 | 243253210ec1067cf2e245d59e497eb8dd0b5d9a | 235 | room-sqlcipher | Apache License 2.0 |
PokemonDeck/app/src/main/java/io/a2xe/experiments/pokemondeck/views/help/HelpFragment.kt | GiorgioNatili | 110,987,110 | false | null | package io.a2xe.experiments.pokemondeck.views.help
import android.support.v4.app.Fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import io.a2xe.experiments.pokemondeck.R
class HelpFragment : Fragment() {
override fun onCreate(savedInstan... | 0 | Kotlin | 0 | 2 | 7b919e2dd4ba8249bcd3bc29a41a410cad1eec2b | 763 | android-the-kotlin-way | MIT License |
ui-toolkit/src/main/kotlin/io/snabble/sdk/dynamicview/data/dto/SwitchEnvironmentDto.kt | snabble | 124,525,499 | false | null | package io.snabble.sdk.dynamicview.data.dto
import android.content.Context
import io.snabble.sdk.dynamicview.domain.model.SwitchEnvironmentItem
import io.snabble.sdk.utils.resolveResourceString
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("snabble.switchE... | 1 | null | 1 | 6 | a91cf68f7837ffdd9aa41d0e1e58d84fb85a41cc | 1,160 | Android-SDK | MIT License |
app/src/main/java/com/kevalpatel2106/yip/di/ActivityModule.kt | kevalpatel2106 | 166,789,807 | false | null | package com.kevalpatel2106.yip.di
import androidx.fragment.app.FragmentActivity
import com.google.android.play.core.appupdate.AppUpdateManager
import com.google.android.play.core.review.ReviewManager
import com.kevalpatel2106.yip.dashboard.inAppReview.InAppReviewManager
import com.kevalpatel2106.yip.dashboard.inAppUpd... | 0 | Kotlin | 1 | 16 | 61311ba7d40802ba7fed87b2f16b72089c6f7746 | 986 | year-in-progress | Apache License 2.0 |
app/src/main/java/com/do55anto5/moviestreaming/presenter/components/switch/SwitchUI.kt | do5-5anto5 | 849,023,984 | false | {"Kotlin": 160809} | package com.do55anto5.moviestreaming.presenter.components.switch
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
im... | 0 | Kotlin | 0 | 0 | 6faf09e9f392b8da2e72147531f481ef9f95b9d8 | 2,616 | Movie-Streaming | MIT License |
app/src/main/java/com/example/dictionaryappakash/dataSources/WordDataInterface.kt | akashroshanmund | 481,467,254 | false | {"Kotlin": 37015} | package com.example.dictionaryappakash.dataSources
/* should be implemented by all the data class */
interface WordDataInterface {
val word : String?
val phoneticText : String?
val phoneticAudioUri : String?
val origin : String?
val partOfSpeech: String?
val definition : String?
val synony... | 0 | Kotlin | 0 | 0 | a6b1d28cc6d0a679b59896cafcdbd3c606a31442 | 334 | DictionaryAppAkash | Apache License 2.0 |
src/main/kotlin/domain/service/TaxAmountCalculator.kt | nlasagni | 393,081,842 | false | null | package domain.service
import domain.model.Amount
import domain.model.Product
/**
* Calculates tax amount and taxed prices of [Product]s.
*
* @author <NAME> on 11/08/2021.
*/
interface TaxAmountCalculator {
/**
* Calculates the amount of taxes for the given [product].
* @return The taxes amount.
... | 0 | Kotlin | 0 | 0 | d084f76943f18df980c2a4e77dadd7e9d80e9f81 | 381 | sales-taxes-problem | MIT License |
image-loader/src/main/java/org/odk/collect/imageloader/svg/SvgModule.kt | getodk | 40,213,809 | false | null | package org.odk.collect.glide.svg
import android.content.Context
import android.graphics.drawable.PictureDrawable
import com.bumptech.glide.Glide
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.module.AppGlideModule
import com.caverock.androidsvg.SVG
import... | 8 | null | 15 | 717 | 63050fdd265c42f3c340f0ada5cdff3c52a883bc | 973 | collect | Apache License 2.0 |
src/main/kotlin/com/baulsupp/cooee/p/TokenResponse.kt | yschimke | 159,716,451 | false | null | // Code generated by Wire protocol buffer compiler, do not edit.
// Source: com.baulsupp.cooee.p.TokenResponse in api.proto
package com.baulsupp.cooee.p
import com.squareup.wire.FieldEncoding
import com.squareup.wire.Message
import com.squareup.wire.ProtoAdapter
import com.squareup.wire.ProtoReader
import com.squareup... | 0 | Kotlin | 0 | 1 | dc4b1d355184277375f88ebfea9d76fc4c0f574d | 4,834 | cooee-cli | Apache License 2.0 |
app/src/main/java/spam/blocker/ui/widgets/HtmlText.kt | aj3423 | 783,998,987 | false | {"Kotlin": 536929, "Go": 6482} | package spam.blocker.ui.widgets
import android.text.method.LinkMovementMethod
import android.widget.TextView
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.compose.ui.viewinterop.Android... | 4 | Kotlin | 22 | 429 | 9352dd7f2ce404ebd284e474b2e1e8dd21373d54 | 1,027 | SpamBlocker | MIT License |
src/main/kotlin/com/github/azibug/generatorideaplugin/services/MyProjectService.kt | azibug | 297,845,320 | false | null | package com.github.azibug.generatorideaplugin.services
import com.intellij.openapi.project.Project
import com.github.azibug.generatorideaplugin.MyBundle
class MyProjectService(project: Project) {
init {
println(MyBundle.message("projectService", project.name))
}
}
| 0 | Kotlin | 0 | 0 | 317f2038d874ac33ec606cd3ac69fe3190e41dd4 | 284 | generator-idea-plugin | Apache License 2.0 |
src/main/kotlin/leetcode/Problem2295.kt | fredyw | 28,460,187 | false | null | package leetcode
/**
* https://leetcode.com/problems/replace-elements-in-an-array/
*/
class Problem2295 {
fun arrayChange(nums: IntArray, operations: Array<IntArray>): IntArray {
val map = mutableMapOf<Int, Int>()
for ((index, num) in nums.withIndex()) {
map[num] = index
}
... | 1 | null | 1 | 4 | a59d77c4fd00674426a5f4f7b9b009d9b8321d6d | 542 | leetcode | MIT License |
module/ui-dialog-bag/src/test/kotlin/com/github/jameshnsears/chance/ui/dialog/bag/card/dice/CardDiceViewModelUnitTest.kt | jameshnsears | 725,514,594 | false | {"Kotlin": 372490, "Shell": 1419} | package com.github.jameshnsears.chance.ui.dialog.bag.card.dice
import com.github.jameshnsears.chance.data.sample.bag.SampleBagTestData
import com.github.jameshnsears.chance.ui.dialog.bag.DialogBagUnitTestHelper
import kotlinx.coroutines.test.runTest
import org.junit.Assert.assertEquals
import org.junit.Assert.assertFa... | 4 | Kotlin | 2 | 6 | 3abfa1d918d8d34dadc2498888793726cba508a0 | 4,508 | Chance | Apache License 2.0 |
app/src/main/java/com/eit/enhancedconsultant/utils/Utils.kt | suki-sahota | 287,359,374 | false | null | package com.eit.enhancedconsultant.utils
import java.text.SimpleDateFormat
import java.util.*
import java.util.regex.Matcher
import java.util.regex.Pattern
@Suppress("UNUSED")
object Utils
{
private const val regex = "^[a-zA-Z0-9_!#$%&'*+/=?`{|}~^.-]+@[a-zA-Z0-9.-]+$"
var rowPositions: ArrayList<Int> = Arra... | 0 | Kotlin | 0 | 0 | d8de6c0298203e938a1a8de9bcdcf6052d5727b9 | 8,006 | eZLog-InTwo | MIT License |
utils/src/main/kotlin/com/mirage/utils/Configuration.kt | ardenit | 159,560,530 | false | null | package com.mirage.utils
const val COMPLETED_QUEST_PHASE = 1000000
const val LOG_ALL_MESSAGES = true
const val OUTER_DLMTR = '\n' //Символ, который должен вставляться в конец каждого сериализованного сообщения
// Этот символ лучше не менять - ClientMessageInputStream читает сообщения пост... | 0 | Kotlin | 0 | 0 | f94f8bee518f70f5942aacf66afb5887bbb04988 | 1,791 | shattered-world | Apache License 2.0 |
tmp/arrays/kotlinAndJava/300.kt | mandelshtamd | 346,008,310 | true | {"Kotlin": 7965847} | //File A.java
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
public final class A {
public final double foo(double $this$foo, double a, double b) {
return a + b;
}
// $FF: synthetic method
public static double foo$default(A var0, double var1, double var3, double var5, int var7, Ob... | 1 | Kotlin | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 1,015 | kotlinWithFuzzer | Apache License 2.0 |
tachikoma-grpc/src/main/kotlin/com/sourceforgery/tachikoma/tracking/DeliveryNotificationService.kt | SourceForgery | 112,076,342 | false | null | package com.sourceforgery.tachikoma.tracking
import com.google.protobuf.Empty
import com.sourceforgery.tachikoma.common.EmailStatus
import com.sourceforgery.tachikoma.common.toTimestamp
import com.sourceforgery.tachikoma.database.dao.EmailDAO
import com.sourceforgery.tachikoma.database.objects.EmailDBO
import com.sour... | 8 | null | 3 | 5 | d841c1db2817d1cda1a690b14eaf2e0f33b4ffcc | 7,654 | tachikoma | Apache License 2.0 |
goblinframework-example/goblinframework-example-remote/goblinframework-example-remote-client/src/main/java/org/goblinframework/example/remote/client/service/TimeServiceClient.kt | HuangKunInkess | 224,439,191 | false | null | package org.goblinframework.example.remote.client.service
import org.goblinframework.api.remote.ImportService
import org.goblinframework.core.container.SpringContainerObject
import org.goblinframework.example.remote.api.TimeService
import javax.inject.Named
@Named
class TimeServiceClient : SpringContainerObject() {
... | 1 | null | 1 | 1 | 75124c38c952c51dfed9849d11ee20d2424eb081 | 417 | goblinframework | Apache License 2.0 |
core/common/src/iosMain/kotlin/club/nito/core/common/network/NitoDispatchers.kt | 2rabs | 711,156,470 | false | {"Kotlin": 211834, "Swift": 20406, "Shell": 1287, "HTML": 269, "Makefile": 246} | package club.nito.core.common.network
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.IO
internal actual val defaultDispatcher: CoroutineDispatcher
get() = Dispatchers.Default
internal actual val ioDispatcher: CoroutineDispatcher
get() = Dispatche... | 1 | Kotlin | 0 | 0 | d27bfca23e776be569ea217e7a98e19cc1832d0f | 326 | nito-app | MIT License |
FredBoat/src/main/java/fredboat/event/ShardLifecycleHandler.kt | freyacodes | 53,135,203 | false | null | /*
* MIT License
*
* Copyright (c) 2017-2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 93 | Kotlin | 238 | 499 | 580238acdbb1def34014141bd3e69ec07f961ae8 | 5,551 | archived-bot | MIT License |
FredBoat/src/main/java/fredboat/event/ShardLifecycleHandler.kt | freyacodes | 53,135,203 | false | null | /*
* MIT License
*
* Copyright (c) 2017-2018 Frederik Ar. Mikkelsen
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to... | 93 | Kotlin | 238 | 499 | 580238acdbb1def34014141bd3e69ec07f961ae8 | 5,567 | archived-bot | MIT License |
samples/legacy-architecture-samples/simple-stack-example-mvp-fragments/src/main/java/com/zhuinden/simplestackdemoexamplefragments/features/taskdetail/TaskDetailPresenter.kt | SEAbdulbasit | 330,345,962 | true | {"Java Properties": 2, "Gradle Kotlin DSL": 16, "Markdown": 6, "Text": 1, "Shell": 1, "YAML": 2, "Batchfile": 1, "Ignore List": 17, "Proguard": 17, "Java": 146, "XML": 327, "Kotlin": 286, "JSON": 1, "Gradle": 2} | package com.zhuinden.simplestackdemoexamplefragments.features.taskdetail
import android.annotation.SuppressLint
import com.zhuinden.simplestack.Backstack
import com.zhuinden.simplestackdemoexamplefragments.core.mvp.BasePresenter
import com.zhuinden.simplestackdemoexamplefragments.data.models.Task
import com.zhuinden.s... | 0 | null | 0 | 2 | b8a95bcf90f7014ed097bec68ecd55140370bec6 | 2,431 | simple-stack | Apache License 2.0 |
logger/src/main/java/com/sked/logger/Print.kt | vermacool | 201,726,505 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 4, "XML": 18, "Java": 2} | package com.sked.logger
import android.util.Log
class Print {
companion object {
private val Tag = "Logger"
public fun e(messege: String) {
Log.d(Tag, messege)
}
}
} | 1 | null | 1 | 1 | 1c34870d2b1a3720457ff633a1ed433b163a8b2e | 213 | logger-android | Apache License 2.0 |
src/main/kotlin/nl/mvdr/adventofcode/adventofcode2015/day24/ItHangsInTheBalancePart1.kt | TinusTinus | 189,766,134 | false | {"Maven POM": 1, "Ignore List": 1, "Text": 666, "Markdown": 1, "XML": 2, "Java": 1066, "Kotlin": 309, "INI": 1, "YAML": 1} | package nl.mvdr.adventofcode.adventofcode2015.day24
import io.github.oshai.kotlinlogging.KotlinLogging
import nl.mvdr.adventofcode.FunctionSolver
private val logger = KotlinLogging.logger{}
fun solvePart1(lines: Sequence<String>) = selectFirstGroup(lines, 3)
fun main() {
val result = FunctionSolver(::solvePart1... | 0 | Java | 0 | 0 | 18b66bbb239590f3399afbedb7fde1d1180bde3b | 381 | adventofcode | MIT License |
test/nl/hannahsten/texifyidea/inspections/latex/typesetting/spacing/LatexNonBreakingSpaceInspectionTest.kt | Hannah-Sten | 62,398,769 | false | {"Kotlin": 2697096, "TeX": 71181, "Lex": 31225, "HTML": 23552, "Python": 967, "Perl": 39} | package nl.hannahsten.texifyidea.inspections.latex.typesetting.spacing
import nl.hannahsten.texifyidea.file.LatexFileType
import nl.hannahsten.texifyidea.inspections.TexifyInspectionTestBase
import nl.hannahsten.texifyidea.testutils.writeCommand
class LatexNonBreakingSpaceInspectionTest : TexifyInspectionTestBase(Lat... | 99 | Kotlin | 87 | 891 | 986550410e2fea91d1e93abfc683db1c8527c9d9 | 4,380 | TeXiFy-IDEA | MIT License |
app/src/main/java/com/pinkal/todo/category/fragment/CategoryFragment.kt | Pinkal7600 | 92,501,823 | false | null | package com.pinkal.todo.category.fragment
import android.os.Bundle
import android.support.design.widget.FloatingActionButton
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.Log
import android.view.LayoutInflat... | 0 | Kotlin | 7 | 17 | c6a975ed6fe627da5e410a21d649366da668f0bc | 3,269 | Todo | Apache License 2.0 |
RoomWordsSample/kotlin/src/main/java/com/example/android/kotlin/roomwordssample/WordListAdapter.kt | leftleg07 | 159,279,575 | true | {"Java": 427290, "Kotlin": 95563} | package com.example.android.kotlin.roomwordssample
/*
* Copyright (C) 2018 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-... | 0 | Java | 0 | 0 | 7c2c09ede6f133f34cc4ab605b5365078522e8b2 | 1,989 | android-fundamentals-apps-v2 | Apache License 2.0 |
src/test/kotlin/com/ecwid/maleorang/method/v3_0/reports/report/ReportTest.kt | raisin-gmbh | 167,515,352 | true | {"Gradle": 6, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "XML": 1, "Text": 1, "Markdown": 1, "INI": 1, "Java": 5, "Kotlin": 64} | package com.ecwid.maleorang.method.v3_0.reports.report
import com.ecwid.maleorang.MailchimpClient
import org.testng.Assert
import org.testng.annotations.Test
import org.testng.annotations.Parameters
class ReportTest
@Parameters("mailchimp.test.apikey")
constructor(private val apiKey: String) {
@Test
fun testG... | 3 | Kotlin | 2 | 2 | 82e6951889ec629486ee813abf5b888de1a5e7ea | 716 | maleorang | Apache License 2.0 |
app/src/main/kotlin/io/github/importre/popular/api/Item.kt | importre | 33,769,779 | false | null | package io.github.importre.popular.api
public class Item {
val type: String = "image"
val link: String = "https://instagram.com/"
val created_time: Long = 0
val images: Images = Images(Image(), Image(), Image())
val videos: Images = Images(Image(), Image(), Image())
val user: User = User()
... | 1 | Kotlin | 4 | 26 | 68f4ea931f3b15df9be002798fe347930039f176 | 1,133 | popular | MIT License |
idea/tests/testData/inspectionsLocal/collections/convertCallChainIntoSequence/iterable.kt | JetBrains | 278,369,660 | false | null | // WITH_RUNTIME
fun test(i: Iterable<Int>): List<Int> {
return i.<caret>filter { it > 1 }.map { it * 2 }
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 111 | intellij-kotlin | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/wrappers/ActionTimer.kt | San68bot | 529,865,900 | false | {"Java": 42525, "Kotlin": 14322} | package org.firstinspires.ftc.teamcode.wrappers
import com.qualcomm.robotcore.util.ElapsedTime
class ActionTimer {
private val timer = ElapsedTime()
val seconds: Double
get() = timer.seconds()
val milliseconds: Double
get() = timer.milliseconds()
infix fun checkTime(sec: Double) = se... | 1 | null | 1 | 1 | 834bd4936718986db06440b2b1a5f52473c49b5c | 435 | pid-ex | BSD 3-Clause Clear License |
app/src/main/java/com/lee/leewanandroid/ui/main/AnimationActivity.kt | Mr1ee | 186,852,345 | false | null | package com.lee.leewanandroid.ui.main
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.animation.*
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.lee.leewanandroid.R
import com.lee.leewanandroid.widget.ToastUtils
import kotlinx.android.syntheti... | 1 | null | 1 | 1 | cd2f059083fcaf6b40f264b2a0ba88e545660b39 | 3,360 | LeeWanAndroid | Apache License 2.0 |
demo-app/src/main/java/uz/pentoligy/smartbackgroundmanagerdemo/presentation/fragment/grid/picasso/PicassoVerticalGridFragment.kt | ChandrakantOmn | 153,090,813 | true | {"Kotlin": 61161, "Java": 7154} | /*
* Copyright (c) 2018 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 1 | af919077fe5f5a3464a12069506af762298aad93 | 2,982 | SmartBackgroundManager | Apache License 2.0 |
src/main/java/com/github/shiraji/kreateintentinspection/inspection/KreateIntentInspection.kt | shiraji | 59,823,825 | false | null | package com.github.shiraji.kreateintentinspection.inspection
import com.intellij.codeInspection.LocalInspectionToolSession
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.ui.DocumentAdapter
import org.jetbrains.kotlin.idea.inspections.AbstractKotlinInspection
import javax.swing.JComponent
import ... | 2 | Kotlin | 1 | 7 | e5d797bc62773ad317a06773f0423f79b39e309e | 1,391 | kreate-intent-inspection | Apache License 2.0 |
app/src/main/java/com/edwardzhang/sorry/utils/Utilities.kt | Edward7Zhang | 132,153,608 | false | null | package com.edwardzhang.sorry.utils
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Build
import android.os.Looper
import android.os.Handler
import android.support.v4.app.Fragment as V4Fragment
import android.app.Fragment... | 1 | null | 1 | 1 | d269527854050fc0a2bd272e6c2558fcc964cce0 | 3,241 | Sorry-AndroidClient | Apache License 2.0 |
Alkitab/src/main/java/yuku/alkitab/datatransfer/process/Serializer.kt | yukuku | 5,657,549 | false | {"Gradle": 23, "Shell": 4, "Java Properties": 4, "Ignore List": 23, "Batchfile": 2, "EditorConfig": 1, "Text": 108, "Markdown": 1, "Proguard": 19, "XML": 464, "Java": 345, "INI": 2, "YAML": 1, "Python": 6, "Kotlin": 109, "JSON": 6, "HTML": 19, "CSS": 1, "Ant Build System": 1, "PHP": 1, "JAR Manifest": 2, "C++": 2, "C":... | package yuku.alkitab.datatransfer.process
import kotlinx.serialization.json.Json
object Serializer {
val exportJson = Json {
classDiscriminator = "kind"
encodeDefaults = false
}
val importJson = Json {
classDiscriminator = "kind"
ignoreUnknownKeys = true
}
}
| 23 | Java | 174 | 310 | d43ae4e17650b34b6757d0ddfd8100e44a677f67 | 310 | androidbible | Apache License 2.0 |
src/main/kotlin/com/ridi/books/helper/io/ZipHelper.kt | ridi | 70,668,180 | false | {"Java Properties": 2, "Gradle": 1, "Proguard": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Markdown": 1, "Kotlin": 27, "XML": 1, "Java": 2, "YAML": 1} | package com.ridi.books.helper.io
import com.ridi.books.helper.Log
import java.io.BufferedInputStream
import java.io.BufferedOutputStream
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import java.io.InputStream
import java.io.OutputStream
import java.nio.charset.MalformedInputExcept... | 0 | Kotlin | 0 | 3 | 8a72a827a5ad747c7194836dbf3fbae1327e189b | 5,067 | rbhelper-android | MIT License |
compiler/testData/loadJava/compiledKotlin/annotations/classMembers/PublishedApiAnnotationOnInlineClassCosntructor.kt | JetBrains | 3,432,266 | false | null | // PLATFORM_DEPENDANT_METADATA
// !LANGUAGE: +InlineClasses
// NO_CHECK_SOURCE_VS_BINARY
package test
inline class Z @PublishedApi internal constructor(val value: Int)
| 179 | null | 5614 | 47,508 | 5fa326aec313d6e9bb0b461664c38d445eac72e9 | 170 | kotlin | Apache License 2.0 |
kotlin-modules/kotlin-libraries-2/src/test/kotlin/cn/tuyucheng/taketoday/kotlin/tomap/GsonMapHelperTest.kt | tu-yucheng | 665,975,665 | false | {"Java": 23064539, "JavaScript": 3484231, "HTML": 808829, "Kotlin": 801709, "CSS": 689526, "TypeScript": 669186, "Groovy": 139102, "AspectJ": 71773, "Shell": 60634, "FreeMarker": 41357, "RAML": 38085, "ANTLR": 31940, "SCSS": 29096, "Mustache": 15860, "Gherkin": 15603, "Scala": 15349, "Python": 14777, "HCL": 13943, "Doc... | package cn.tuyucheng.taketoday.kotlin.tomap
import cn.tuyucheng.taketoday.kotlin.tomap.GsonMapHelper.GSON_MAPPER
import cn.tuyucheng.taketoday.kotlin.tomap.GsonMapHelper.KOTLIN_GSON_MAPPER
import cn.tuyucheng.taketoday.kotlin.tomap.ToMapTestFixture.PROJECT
import org.junit.jupiter.api.Assertions.assertEquals
import or... | 1 | null | 1 | 1 | 1d22d457d31ec5b1f83196958477afd37dbd8939 | 2,279 | taketoday-tutorial4j-backup | MIT License |
src/main/kotlin/org/rust/ide/utils/import/ImportContext.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.utils.import
import com.intellij.openapi.project.Project
import org.rust.lang.core.RsPsiPattern
import org.rust.lang.core.parser.RustParserUtil
import org.rust.lang.core.psi.*
import org.rus... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 4,870 | intellij-rust | MIT License |
BluetoothAdvertisementsKotlin/app/src/main/java/com/example/bluetoothadvertisements/adapter/ScannerAdapter.kt | android | 206,875,901 | false | null | /**
* Copyright (C) 2021 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 159 | null | 935 | 946 | dbbae39ce91c2e709458c61dccf9a86452b890ba | 2,938 | connectivity-samples | Apache License 2.0 |
common/common-json-diff/src/main/kotlin/com/testerum/common/json_diff/json_path/JavaScriptIdentifierStringExtension.kt | testerum | 241,460,788 | false | null | package com.testerum.common.json_diff.json_path
internal fun String.isValidJavascriptIdentifier(): Boolean {
if (this.isEmpty()) {
return false
}
if (this.isJavascriptReservedWord()) {
return false
}
// assuming same rules as in Java
if (!Character.isJavaIdentifierStart(this[0]... | 33 | null | 3 | 22 | 0a53c71b5f659e41282114127f595aad5ab1e4fb | 910 | testerum | Apache License 2.0 |
plugins/kotlin/code-insight/line-markers-shared/src/org/jetbrains/kotlin/idea/codeInsight/lineMarkers/shared/NavigationPopupDescriptor.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.codeInsight.lineMarkers.shared
import com.intellij.codeInsight.navigation.PsiTargetNavigator
import com.intellij.codeInsight.navigation.TargetPresentationProvider
i... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,098 | intellij-community | Apache License 2.0 |
app/src/main/java/com/frogobox/kickstart/mvvm/detail/DetailViewModel.kt | amirisback | 228,884,023 | false | null | package com.frogobox.kickstart.mvvm.detail
import android.app.Application
import com.frogobox.kickstart.core.BaseViewModel
import com.frogobox.kickstart.source.ProjectDataRepository
import com.frogobox.kickstart.source.model.Favorite
/*
* Created by faisalamir on 12/07/21
* KickStartProject
* ---------------------... | 0 | null | 2 | 21 | cb0071465277ea9dea4d6b1dbdd486cff99f5150 | 794 | android-kick-start | Apache License 2.0 |
openai-kotlin/src/main/java/com.aallam.openai.api/core/Usage.kt | KitsuneFolk | 735,334,673 | false | {"Kotlin": 114743} | package com.aallam.openai.api.core
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Usage(
/**
* Count of prompts tokens.
*/
@SerialName("prompt_tokens") val promptTokens: Int? = null,
/**
* Count of completion tokens.
*/
@S... | 0 | Kotlin | 0 | 1 | 2b9f0f94b4d435fbf817327b993543379333f023 | 496 | LeChat | Apache License 2.0 |
sharing-service/src/de/faweizz/topicservice/service/sharing/TransformationStepAddRequest.kt | faweizz | 390,689,980 | false | null | package de.faweizz.topicservice.service.sharing
data class TransformationStepAddRequest(
val transformationStepId: String,
val data: Map<String, String>
) | 0 | Kotlin | 0 | 0 | b5b494e81e6643c86d51f884309497bc78715f36 | 163 | florescence | Apache License 2.0 |
data/src/main/java/com/alexzh/data/model/HttpDataException.kt | AlexZhukovich | 192,403,534 | false | null | package com.alexzh.data.model
import java.lang.RuntimeException
class HttpDataException(
val code: Int,
message: String
) : RuntimeException(message) | 8 | Kotlin | 1 | 7 | dab7ea97efee664dd87c201dc15ac293bf3416a5 | 159 | ImBarista-App | Apache License 2.0 |
data/src/main/java/com/alexzh/data/model/HttpDataException.kt | AlexZhukovich | 192,403,534 | false | null | package com.alexzh.data.model
import java.lang.RuntimeException
class HttpDataException(
val code: Int,
message: String
) : RuntimeException(message) | 8 | Kotlin | 1 | 7 | dab7ea97efee664dd87c201dc15ac293bf3416a5 | 159 | ImBarista-App | Apache License 2.0 |
src/main/kotlin/me/mocha/spongeplugin/area/model/serializer/AreaSerializer.kt | namuare | 325,523,606 | false | null | package me.mocha.spongeplugin.area.model.serializer
import com.google.common.reflect.TypeToken
import me.mocha.spongeplugin.area.AreaSystem
import me.mocha.spongeplugin.area.model.entity.Area
import me.mocha.spongeplugin.area.util.Vector3
import ninja.leaping.configurate.ConfigurationNode
import ninja.leaping.configur... | 2 | Kotlin | 0 | 0 | 74f036c530e36d36b951d0dfb3d5818a29ff8f06 | 1,557 | AreaSystem | MIT License |
src/main/kotlin/com/github/cloudcodec/core/druid/TypesConverter.kt | cloudcodec | 850,691,674 | false | {"Kotlin": 26883} | package com.github.cloudcodec.core.druid
import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr
import com.alibaba.druid.sql.ast.statement.SQLColumnDefinition
import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType
import java.sql.Types
object TypesConverter {
// private val availableTypes = setOf(Types.BO... | 0 | Kotlin | 0 | 0 | 9e61603c8651472ba478420f99dd1b1010edd582 | 1,919 | sql-to-jpa-kotlin | Apache License 2.0 |
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/UClipboard.kt | smartbackme | 390,677,125 | false | null | package com.kangraoo.basektlib.tools
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
object UClipboard {
/**
* 拷贝文字到剪贴版
* @param context
* @param text 内容
*/
fun clipboardCopyText(context: Context, text: CharSequence?) {
val cm ... | 0 | Kotlin | 1 | 2 | 39b595a9a7a8bf5176022a51bc3fd63fa536414d | 1,375 | Creative-Challenge-DrawingBoard | MIT License |
cli/src/main/kotlin/com/ac101m/spcp/cli/Main.kt | ac101m | 671,182,699 | false | null | package com.ac101m.spcp.cli
fun main(args: Array<String>) {
println("How hard can it be?")
}
| 0 | Kotlin | 0 | 0 | 348dfe47ae1d46ead5796370c314f202b8c2da73 | 98 | SPCP | MIT License |
app/src/main/java/com/example/myapplication/di/component/ApiComponent.kt | krissirk0906 | 465,191,081 | false | null | package com.example.myapplication.di.component
import com.example.myapplication.di.ApiModule
import com.example.myapplication.di.retrofit_setup.RetrofitService
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = [ApiModule::class])
interface ApiComponent {
fun inject(retrofi... | 0 | Kotlin | 0 | 0 | 3cfc67c3b76e4731296a34d9202b6fb9b0a85442 | 525 | news_app | MIT License |
core/gamedex-core-maintenance/src/main/kotlin/com/gitlab/ykrasik/gamedex/core/maintenance/presenter/FolderNameDiffReportPresenter.kt | ykrasik | 177,211,746 | false | null | /****************************************************************************
* Copyright (C) 2016-2020 <NAME> *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
* you may not u... | 0 | Kotlin | 1 | 14 | 6c63cb16032f9c9e230afc808bb8498760477464 | 4,412 | gamedex | Apache License 2.0 |
app/src/main/java/com/annapol04/munchkin/util/NonNullLiveData.kt | AnastasiiaPolishchuk | 110,602,766 | false | {"Gradle": 3, "Markdown": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "JSON": 1, "Proguard": 1, "Kotlin": 51, "Java": 27, "XML": 47} | package com.annapol04.munchkin.util
import android.arch.lifecycle.LiveData
/**
* A LiveData implementation with an initial value and that does not allow null values.
*/
open class NonNullLiveData<T>(initialValue: T) : LiveData<T>() {
init {
value = initialValue
}
var version = -1
/**
... | 1 | Kotlin | 0 | 0 | 2c61d80d6ec6c5405f5a8490e2433e142723bc24 | 1,181 | SP_2017 | MIT License |
GcbApplication/lib_common/src/main/java/com/gocashback/lib_common/widget/GcbHeadView.kt | ybx945ybx | 247,870,704 | false | null | package com.gocashback.lib_common.widget
import android.app.Activity
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.RelativeLayout
import com.gocashback.lib_common.R
imp... | 0 | Kotlin | 0 | 0 | 0da5ca3b1dddcb8907d5bcc062722b4ad3ac3546 | 2,733 | gcb | Apache License 2.0 |
app/src/main/java/com/satvikfoods/features/viewAllOrder/interf/ProductListNewOrderOnClick.kt | DebashisINT | 503,250,676 | false | {"Kotlin": 10746565, "Java": 948000} | package com.satvikfoods.features.viewAllOrder.interf
import com.satvikfoods.app.domain.NewOrderGenderEntity
import com.satvikfoods.app.domain.NewOrderProductEntity
interface ProductListNewOrderOnClick {
fun productListOnClick(product: NewOrderProductEntity)
} | 0 | Kotlin | 0 | 0 | 9c88ec580f6db313d1518553007a5a4f17bf1388 | 265 | SatvikFoods | Apache License 2.0 |
core/design-system/src/main/java/io/filmtime/core/designsystem/composable/ProgressBar.kt | moallemi | 633,160,161 | false | {"Kotlin": 522936, "Shell": 3102} | package io.filmtime.core.designsystem.composable
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.ProgressIndicatorDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.un... | 21 | Kotlin | 14 | 87 | ad3eeed30bed20216a9fa12e34f06e43b70a74cc | 644 | Film-Time | MIT License |
src/test/kotlin/tech/relaycorp/veraid/VeraStubs.kt | relaycorp | 598,082,603 | false | {"Kotlin": 313518} | package tech.relaycorp.veraid
import org.bouncycastle.asn1.ASN1ObjectIdentifier
import tech.relaycorp.veraid.pki.MemberCertificate
import tech.relaycorp.veraid.pki.OrgCertificate
import tech.relaycorp.veraid.testing.generateRSAKeyPair
import java.time.ZonedDateTime
const val ORG_NAME = "example.com"
val ORG_KEY_PAIR ... | 4 | Kotlin | 0 | 2 | 9a42b70bfbf31fd95b3f071adc6f0073abea84e1 | 884 | veraid-jvm | Apache License 2.0 |
ui/src/commonMain/kotlin/com/github/nathanieloliveira/kolorful/ui/KolorfulUi.kt | nathanieloliveira | 795,780,377 | false | {"Kotlin": 122684} | @file:OptIn(ExperimentalStdlibApi::class)
package com.github.nathanieloliveira.kolorful.ui
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
im... | 0 | Kotlin | 0 | 0 | 945ee6afbcb6cc098599dd727a32bc2f819de6a9 | 15,925 | kolorful | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.