repo_name stringlengths 7 81 | path stringlengths 6 242 | copies stringclasses 53
values | size stringlengths 2 6 | content stringlengths 73 737k | license stringclasses 15
values | hash stringlengths 32 32 | line_mean float64 5.44 99.8 | line_max int64 15 977 | alpha_frac float64 0.3 0.91 | ratio float64 2 9.93 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
icela/FriceEngine | src/org/frice/obj/button/ImageButton.kt | 1 | 1128 | package org.frice.obj.button
import org.frice.event.MOUSE_PRESSED
import org.frice.event.OnMouseEvent
import org.frice.platform.FriceImage
import org.frice.platform.owner.ImageOwner
import org.frice.resource.image.ImageResource
import org.frice.util.shape.FShapeQuad
import java.util.function.Consumer
/**
* Created b... | agpl-3.0 | 1db8d3d4a3a82bf68ae2e87c4cd030f3 | 27.948718 | 92 | 0.77039 | 3.53605 | false | false | false | false |
AsamK/TextSecure | app/src/main/java/org/thoughtcrime/securesms/notifications/v2/NotificationStateProvider.kt | 1 | 8143 | package org.thoughtcrime.securesms.notifications.v2
import androidx.annotation.WorkerThread
import org.signal.core.util.CursorUtil
import org.signal.core.util.logging.Log
import org.thoughtcrime.securesms.database.MmsSmsColumns
import org.thoughtcrime.securesms.database.MmsSmsDatabase
import org.thoughtcrime.securesms... | gpl-3.0 | 2c6eba3fc0810e4285c45ff371442b1c | 48.054217 | 189 | 0.727373 | 5.53569 | false | false | false | false |
marius-m/wt4 | app/src/main/java/lt/markmerkk/widgets/PopUpDisplay.kt | 1 | 1416 | package lt.markmerkk.widgets
import com.jfoenix.controls.JFXPopup
import com.jfoenix.svg.SVGGlyph
import javafx.scene.Node
import javafx.scene.Parent
import javafx.scene.layout.VBox
import lt.markmerkk.Styles
import lt.markmerkk.ui_2.views.jfxButton
import tornadofx.*
interface PopUpDisplay {
fun show()
/**... | apache-2.0 | 6f27ea323880899af3820e90467cf723 | 27.32 | 94 | 0.544492 | 4.704319 | false | false | false | false |
RayBa82/DVBViewerController | dvbViewerController/src/main/java/org/dvbviewer/controller/ui/fragments/EPGDetails.kt | 1 | 3811 | /*
* Copyright © 2013 dvbviewer-controller 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 applicable... | apache-2.0 | 2d5a100101f7f74619d3682e9e0338af | 34.943396 | 125 | 0.673228 | 4.354286 | false | false | false | false |
DarrenAtherton49/droid-community-app | app/src/main/kotlin/com/darrenatherton/droidcommunity/features/subscriptiondrawer/SubscriptionDrawerPresenter.kt | 1 | 1104 | package com.darrenatherton.droidcommunity.features.subscriptiondrawer
import com.darrenatherton.droidcommunity.base.presentation.BasePresenter
import com.darrenatherton.droidcommunity.base.presentation.BaseView
import com.darrenatherton.droidcommunity.common.injection.scope.PerScreen
import javax.inject.Inject
@PerSc... | mit | bf54d3ab6c878823e1976e9ea1d2615c | 29.694444 | 109 | 0.501812 | 7.122581 | false | false | false | false |
Doctoror/ParticleConstellationsLiveWallpaper | app/src/main/java/com/doctoror/particleswallpaper/framework/opengl/KnownOpenglIssuesHandler.kt | 1 | 2940 | /*
* Copyright (C) 2018 Yaroslav Mytkalyk
*
* 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... | apache-2.0 | 082741304b87248de2262576c4fe3e9b | 37.684211 | 152 | 0.656122 | 4.749596 | false | false | false | false |
iSoron/uhabits | uhabits-core/src/jvmMain/java/org/isoron/uhabits/core/ui/screens/habits/list/ListHabitsBehavior.kt | 1 | 5574 | /*
* Copyright (C) 2016-2021 Álinson Santos Xavier <git@axavier.org>
*
* This file is part of Loop Habit Tracker.
*
* Loop Habit Tracker is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 ... | gpl-3.0 | 3a3633d8dd8e3ee7cd12b4ff911355a9 | 31.782353 | 107 | 0.654764 | 4.564292 | false | false | false | false |
dbrant/apps-android-wikipedia | app/src/main/java/org/wikipedia/language/LanguagesListActivity.kt | 1 | 11651 | package org.wikipedia.language
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.*
import android.widget.TextView
import androidx.appcompat.view.ActionMode
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
im... | apache-2.0 | 6ca80d272b69d94b3b60ccde586fa314 | 43.639847 | 169 | 0.67462 | 5.6394 | false | false | false | false |
dahlstrom-g/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/SimplifyWhenWithBooleanConstantConditionInspection.kt | 1 | 3594 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.inspections
import com.intellij.codeInspection.*
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementV... | apache-2.0 | f297b75d77ea696cbcf8b6520bb8cca4 | 40.321839 | 132 | 0.729827 | 5.047753 | false | false | false | false |
jcsantosbr/suadeome-backendjvm | src/main/kotlin/com/jcs/suadeome/main/App.kt | 1 | 4916 | package com.jcs.suadeome.main
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.jcs.suadeome.context.RouteFactory
import com.jcs.suadeome.professionals.Professional
import com.jcs.suadeome.professionals.ProfessionalJsonSerializer
import com.jcs.suadeome.professionals.ProfessionalResource
import... | mit | c680b7dd047751237b40a77b9563148e | 31.773333 | 103 | 0.667209 | 4.713327 | false | true | false | false |
JuliaSoboleva/SmartReceiptsLibrary | app/src/main/java/co/smartreceipts/android/workers/AttachmentFilesWriter.kt | 1 | 19998 | package co.smartreceipts.android.workers
import android.content.Context
import android.graphics.*
import android.graphics.Bitmap.CompressFormat
import android.graphics.Paint.Align
import co.smartreceipts.analytics.log.Logger
import co.smartreceipts.android.R
import co.smartreceipts.android.date.DateFormatter
import co... | agpl-3.0 | e1930b91fffd723f27f171f106667892 | 42.857456 | 167 | 0.59611 | 5.257098 | false | false | false | false |
elpassion/mainframer-intellij-plugin | src/main/kotlin/com/elpassion/mainframerplugin/util/ui.kt | 1 | 1460 | package com.elpassion.mainframerplugin.util
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.MessageType
import com.intellij.openapi.ui.popup.Balloon
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.openapi.wm.WindowManager
import com.intellij.ui.awt.RelativePoint
impor... | apache-2.0 | 499c1152d449db8864d0fbd929145256 | 40.742857 | 105 | 0.733562 | 4.771242 | false | false | false | false |
DemonWav/MinecraftDevIntelliJ | src/main/kotlin/com/demonwav/mcdev/util/reference/PackageNameReferenceProvider.kt | 1 | 6071 | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2020 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.util.reference
import com.demonwav.mcdev.util.manipulator
import com.demonwav.mcdev.util.packageName
import com.intellij.codeInsight.lookup.LookupElementBuilder
impor... | mit | 2d06c53b6100e461bf8f13a71b2cf9f9 | 33.890805 | 118 | 0.652775 | 5.149279 | false | false | false | false |
DemonWav/MinecraftDevIntelliJ | src/main/kotlin/com/demonwav/mcdev/translations/TranslationConstants.kt | 1 | 841 | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2020 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.translations
object TranslationConstants {
const val DEFAULT_LOCALE = "en_us"
const val I18N_CLIENT_CLASS = "net.minecraft.client.resources.I18n"
const va... | mit | a02d4b576363f3b0d8983b08951af528 | 32.64 | 94 | 0.717004 | 3.391129 | false | false | false | false |
paplorinc/intellij-community | python/src/com/jetbrains/python/testing/PyTestsShared.kt | 2 | 34039 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.testing
import com.intellij.execution.ExecutionException
import com.intellij.execution.Location
import com.intellij.execution.PsiLocation
import co... | apache-2.0 | 05e8264de8cc18444a1e7d34d9771389 | 40.209443 | 140 | 0.70572 | 5.46197 | false | true | false | false |
paplorinc/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/references/GrExplicitMethodCallReference.kt | 2 | 2119 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.lang.resolve.references
import org.jetbrains.plugins.groovy.lang.psi.api.GroovyResolveResult
import org.jetbrains.plugins.groovy.lang.psi.api... | apache-2.0 | ee1431d187723a106679e66dcfa25e26 | 51.975 | 140 | 0.815007 | 4.626638 | false | false | false | false |
google/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/MoveVariableDeclarationIntoWhenInspection.kt | 2 | 6268 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.inspections
import com.intellij.codeInspection.CleanupLocalInspectionTool
import com.intellij.codeInspection.LocalQuickFix
im... | apache-2.0 | 1fd5a25ec08bdc058c5e916a77ea1489 | 45.088235 | 158 | 0.716656 | 5.527337 | false | false | false | false |
ronocod/BeerSignal | android/app/src/main/kotlin/com/starstorm/beer/activity/LoginActivity.kt | 1 | 1773 | package com.starstorm.beer.activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.ActionBarActivity
import android.view.View
import android.widget.ProgressBar
import com.novoda.notils.caster.Views
import com.parse.ParseFacebookUtils
import com.parse.ParseUser
import com.starstor... | gpl-2.0 | b3f88c6ae38a7b1b4a3b170104e25c59 | 30.660714 | 115 | 0.69656 | 4.952514 | false | false | false | false |
NeatoRobotics/neato-sdk-android | Neato-SDK/neato-sdk-android/src/main/java/com/neatorobotics/sdk/android/robotservices/housecleaning/HouseCleaningBasic1Service.kt | 1 | 711 | /*
* Copyright (c) 2019.
* Neato Robotics Inc.
*/
package com.neatorobotics.sdk.android.robotservices.housecleaning
class HouseCleaningBasic1Service : HouseCleaningService() {
override val isMultipleZonesCleaningSupported: Boolean
get() = false
override val isEcoModeSupported: Boolean
get... | mit | 7ecb7c348fcd16ac33d2c825b8568ab8 | 21.21875 | 65 | 0.690577 | 4.708609 | false | false | false | false |
allotria/intellij-community | platform/lang-impl/src/com/intellij/model/psi/impl/PsiElementDeclarationSearcher.kt | 2 | 3056 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.model.psi.impl
import com.intellij.codeInsight.daemon.impl.IdentifierUtil
import com.intellij.codeInsight.highlighting.HighlightUsagesHandler
import com.inte... | apache-2.0 | 8a07cf88574a1d820135e3e7112a155b | 43.941176 | 148 | 0.794175 | 4.897436 | false | false | false | false |
fluidsonic/fluid-json | basic/sources-jvm/JsonWriter.kt | 1 | 28454 | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package io.fluidsonic.json
import java.io.*
import kotlin.contracts.*
import kotlin.internal.*
public interface JsonWriter : Closeable, Flushable {
public val depth: JsonDepth
public val isErrored: Boolean
public val isInValueIsolation: Boolean
public v... | apache-2.0 | f812c1554c56f42949bd809f2482189e | 21.745004 | 141 | 0.736698 | 3.867609 | false | false | false | false |
ttomsu/orca | orca-queue/src/test/kotlin/com/netflix/spinnaker/orca/q/handler/CancelStageHandlerTest.kt | 1 | 5830 | /*
* Copyright 2017 Netflix, 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 to i... | apache-2.0 | 147a512afed366ad0735b818bcd962ae | 33.702381 | 119 | 0.712178 | 4.522886 | false | false | false | false |
allotria/intellij-community | platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab2.kt | 2 | 13809 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.xdebugger.impl.ui
import com.intellij.debugger.ui.DebuggerContentInfo
import com.intellij.execution.runners.ExecutionEnvironment
import com.intellij.executio... | apache-2.0 | 6250d2a04a3ba44f50617b94c8fc571f | 34.684755 | 194 | 0.718155 | 5.228701 | false | false | false | false |
zdary/intellij-community | platform/workspaceModel/storage/tests/testSrc/com/intellij/workspaceModel/storage/EntityStorageSerializationTest.kt | 2 | 7007 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.workspaceModel.storage
import com.intellij.workspaceModel.storage.bridgeEntities.LibraryTableId
import com.intellij.workspaceModel.storage.bridgeEntities.add... | apache-2.0 | 956e6c568eb9f302a716dc450e9dddda | 43.348101 | 140 | 0.773798 | 4.715343 | false | true | false | false |
zdary/intellij-community | plugins/gradle/src/org/jetbrains/plugins/gradle/issue/UnresolvedDependencyIssue.kt | 3 | 4811 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.issue
import com.intellij.build.BuildView
import com.intellij.build.issue.BuildIssue
import com.intellij.build.issue.BuildIssueQuickFix
impor... | apache-2.0 | 56d4561185a95ee40a95be370b6cdba4 | 50.191489 | 140 | 0.766784 | 5.162017 | false | false | false | false |
faceofcat/Tesla-Core-Lib | src/main/kotlin/net/ndrei/teslacorelib/utils/BlockPosUtils.kt | 1 | 1911 | package net.ndrei.teslacorelib.utils
import net.minecraft.util.EnumFacing
import net.minecraft.util.math.BlockPos
/**
* Created by CF on 2017-07-06.
*/
object BlockPosUtils {
fun getCube(entityPos: BlockPos, facing: EnumFacing?, radius: Int, height: Int): BlockCube {
val pos1: BlockPos
var pos2:... | mit | 0739d38d0e076a4543f0ba863cb0d614 | 35.769231 | 96 | 0.47933 | 4.765586 | false | false | false | false |
JuliusKunze/kotlin-native | backend.native/tests/external/codegen/box/jvmStatic/propertyAccessorsCompanion.kt | 2 | 393 | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS, NATIVE
// WITH_RUNTIME
var result = "fail 2"
class Foo {
val b = { a }
val c = Runnable { result = a }
companion object {
@JvmStatic
private val a = "OK"
}
}
fun box(): String {
if (Fo... | apache-2.0 | 2624b5f1cc883475d8cfcae5f9cb4c7d | 16.086957 | 72 | 0.562341 | 3.417391 | false | false | false | false |
leafclick/intellij-community | platform/vcs-impl/src/com/intellij/openapi/vcs/changes/committed/CommittedChangesFilterComponent.kt | 1 | 4333 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.vcs.changes.committed
import com.intellij.openapi.Disposable
import com.intellij.openapi.ui.ComponentValidator
import com.intellij.openapi.ui.Validat... | apache-2.0 | fe52709f26e87b42fe3bf351c945a0aa | 34.818182 | 140 | 0.770367 | 4.782561 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/DestructureIntention.kt | 1 | 19109 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiEl... | apache-2.0 | 371aad8b30e623263fd4d9f2bb5b6474 | 47.625954 | 158 | 0.578837 | 6.764248 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/jvm-debugger/coroutines/src/org/jetbrains/kotlin/idea/debugger/coroutine/proxy/mirror/debugMetadata.kt | 1 | 4848 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.debugger.coroutine.proxy.mirror
import com.sun.jdi.ArrayReference
import com.sun.jdi.ObjectReference
import com.sun.jdi.Strin... | apache-2.0 | 0fb5ccad755f3bae2ad3daf4e2c40a82 | 54.090909 | 164 | 0.738861 | 5.933905 | false | false | false | false |
feelfreelinux/WykopMobilny | app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/adapters/viewholders/DownvoterViewHolder.kt | 1 | 1403 | package io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders
import android.view.View
import io.github.feelfreelinux.wykopmobilny.R
import io.github.feelfreelinux.wykopmobilny.models.dataclass.Downvoter
import io.github.feelfreelinux.wykopmobilny.utils.toPrettyDate
import kotlinx.android.synthetic.main.downvot... | mit | 606aa2a958d94ea0261dd61e4e1402a7 | 45.8 | 106 | 0.72345 | 3.997151 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/gradle/gradle-idea/src/org/jetbrains/kotlin/idea/configuration/gradleModuleBuilderUtils.kt | 1 | 6155 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.configuration
import com.intellij.framework.addSupport.FrameworkSupportInModuleConfigurable
import com.intellij.ide.util.fram... | apache-2.0 | 4137713c6dada1e5626710f51f405e50 | 49.876033 | 158 | 0.767994 | 5.238298 | false | false | false | false |
siosio/intellij-community | python/python-features-trainer/src/com/jetbrains/python/ift/lesson/run/PythonRunLessonsUtils.kt | 2 | 1261 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.ift.lesson.run
import training.dsl.parseLessonSample
object PythonRunLessonsUtils {
const val demoConfigurationName = "sandbox"
val demoSample ... | apache-2.0 | f6bda34d329453a973b7acd8f5124942 | 26.413043 | 140 | 0.587629 | 4.028754 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/idea/tests/testData/structuralsearch/countFilter/oneLambdaParameter.kt | 4 | 257 | val p0: () -> Int = { 31 }
val p1: (Int) -> Int = <warning descr="SSR">{ x -> x }</warning>
val p1b: (Int) -> Int = <warning descr="SSR">{ it }</warning>
val p2: (Int, Int) -> Int = { x, y -> x + y }
val p3: (Int, Int, Int) -> Int = { x, y, z -> x + y + z } | apache-2.0 | dcdc7bce6482c1bf98c58d9c8997ede6 | 50.6 | 64 | 0.474708 | 2.424528 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/frontend-fir/src/org/jetbrains/kotlin/idea/asJava/methods/FirLightAccessorMethodForSymbol.kt | 2 | 7661 | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.asJava
import com.intellij.psi.*
import com.intellij.psi.impl.light.LightPa... | apache-2.0 | 1eb8393f5802f3cde1caf6e25ac7b980 | 38.90625 | 115 | 0.715833 | 5.799394 | false | false | false | false |
jwren/intellij-community | plugins/evaluation-plugin/core/src/com/intellij/cce/core/TokenProperties.kt | 1 | 4050 | package com.intellij.cce.core
import com.google.gson.*
import java.lang.reflect.Type
interface TokenProperties {
val tokenType: TypeProperty
val location: SymbolLocation
fun additionalProperty(name: String): String?
fun describe(): String
fun hasFeature(feature: String): Boolean
fun withFeatures(featu... | apache-2.0 | 24866e90460c6aea895e130ae8353224 | 29 | 129 | 0.719259 | 4.676674 | false | false | false | false |
intellij-solidity/intellij-solidity | src/test/kotlin/me/serce/solidity/lang/completion/SolMemberAccessCompletionTest.kt | 1 | 2901 | package me.serce.solidity.lang.completion
class SolMemberAccessCompletionTest : SolCompletionTestBase() {
fun testEmptyCompletion() = checkCompletion(hashSetOf("doSmth"), """
contract SomeContract {
function doSmth() public {
}
}
contract... | mit | 15f6ecd14f68a4022f13bad3c1b520c5 | 23.175 | 103 | 0.460876 | 5.813627 | false | true | false | false |
chrhsmt/Sishen | app/src/main/java/com/chrhsmt/sisheng/AudioServiceMock.kt | 1 | 2062 | package com.chrhsmt.sisheng
import android.annotation.SuppressLint
import android.app.Activity
import com.chrhsmt.sisheng.exception.AudioServiceException
import com.chrhsmt.sisheng.point.Point
import com.chrhsmt.sisheng.point.SimplePointCalculator
import com.chrhsmt.sisheng.ui.Chart
/**
* Created by hkimura on 2017/... | mit | a23e563289eebb67fa3cbf6baa2a90d4 | 25.113924 | 135 | 0.642095 | 4.633708 | false | false | false | false |
androidx/androidx | compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/semantics/SemanticsSort.kt | 3 | 7050 | /*
* 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... | apache-2.0 | a7b428d591e8410fc148eed6fbe1cf01 | 35.528497 | 100 | 0.659574 | 4.936975 | false | false | false | false |
androidx/androidx | compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/AbstractControlFlowTransformTests.kt | 3 | 2319 | /*
* Copyright 2020 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... | apache-2.0 | df46375665405e03fe78972c0efe0519 | 35.809524 | 84 | 0.607158 | 4.665996 | false | false | false | false |
GunoH/intellij-community | plugins/kotlin/uast/uast-kotlin-base/src/org/jetbrains/uast/kotlin/declarations/KotlinUMethod.kt | 2 | 5623 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.uast.kotlin
import com.intellij.lang.jvm.JvmModifier
import com.intellij.psi.*
import org.jetbrains.annotations.ApiStatus
import org.jetb... | apache-2.0 | 145f51f378e70971b42fbdfa24ccefc5 | 42.253846 | 158 | 0.688067 | 5.427606 | false | false | false | false |
GunoH/intellij-community | python/src/com/jetbrains/python/testing/PyRerunFailedTestsAction.kt | 8 | 9062 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.jetbrains.python.testing
import com.intellij.execution.ExecutionException
import com.intellij.execution.ExecutionResult
import com.intellij.execution.Executor
import ... | apache-2.0 | 111e1c065477aea199b00ce06e62e5b1 | 45.716495 | 140 | 0.738468 | 5.406921 | false | true | false | false |
GunoH/intellij-community | platform/lang-impl/src/com/intellij/lang/documentation/ide/impl/DocumentationBrowser.kt | 7 | 5913 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.lang.documentation.ide.impl
import com.intellij.lang.documentation.DocumentationTarget
import com.intellij.lang.documentation.ide.DocumentationBrowserFacade
import com.intellij... | apache-2.0 | 9e7cf200531fe0e9abd5e8c7319fd42c | 30.285714 | 120 | 0.727042 | 4.830882 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertToScopeIntention.kt | 1 | 13876 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.intentions
import com.intellij.java.refactoring.JavaRefactoringBundle
import com.intellij.openapi.editor.Editor
import com.in... | apache-2.0 | 95d27a08d6111a36731f7ce1605afe59 | 43.191083 | 158 | 0.656313 | 5.929915 | false | false | false | false |
GunoH/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/ConvertLineCommentToBlockCommentIntention.kt | 4 | 2588 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.intentions
import com.intellij.openapi.editor.Editor
import com.intellij.psi.PsiComment
import com.intellij.psi.PsiElement
im... | apache-2.0 | 323388f23d98d379e640a5c176bd3d14 | 40.741935 | 158 | 0.702859 | 4.696915 | false | false | false | false |
smmribeiro/intellij-community | platform/testFramework/src/com/intellij/util/io/impl/FileTextMatchers.kt | 9 | 1267 | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.io.impl
import com.intellij.openapi.util.JDOMUtil
import com.intellij.util.io.FileTextMatcher
object FileTextMatchers {
val exact =... | apache-2.0 | 61e7d1808a9ef08d2cc65d20051ed455 | 38.59375 | 158 | 0.718232 | 4.641026 | false | false | false | false |
80998062/Fank | presentation/src/main/java/com/sinyuk/fanfou/ui/ABaseTransformer.kt | 1 | 4569 | /*
*
* * Apache License
* *
* * Copyright [2017] Sinyuk
* *
* * 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
* *... | mit | 7f1d646748dc8a9ceb29363f3058840d | 33.104478 | 120 | 0.643905 | 4.306315 | false | false | false | false |
RADAR-CNS/RADAR-AndroidApplication | app/src/main/java/org/radarcns/detail/SourceRowView.kt | 1 | 7214 | /*
* Copyright 2017 The Hyve
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... | apache-2.0 | 35409beb6e4ab7c619ad321c227dbe05 | 37.566845 | 159 | 0.646007 | 4.876268 | false | false | false | false |
simonnorberg/dmach | app/src/main/java/net/simno/dmach/db/DbModule.kt | 1 | 1282 | package net.simno.dmach.db
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.runBlocking
import net.simno.d... | gpl-3.0 | 2b2e97e5fc508746632824183d4478f3 | 28.813953 | 84 | 0.705928 | 4.661818 | false | false | false | false |
NlRVANA/Unity | app/src/test/java/com/zwq65/unity/algorithm/dataStructures/FixedCapacityStackOfStrings.kt | 1 | 537 | package com.zwq65.unity.algorithm.dataStructures
/**
* ================================================
*
* Created by NIRVANA on 2020/6/17.
* Contact with <zwq651406441@gmail.com>
* ================================================
*/
class FixedCapacityStackOfStrings(capacity: Int) {
private val s: Array<St... | apache-2.0 | c28b2b74a6fbb75ba349d7e5d974c8b9 | 21.416667 | 58 | 0.486034 | 4.162791 | false | false | false | false |
Waboodoo/HTTP-Shortcuts | HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/data/domains/shortcuts/ShortcutRepository.kt | 1 | 6496 | package ch.rmy.android.http_shortcuts.data.domains.shortcuts
import ch.rmy.android.framework.data.BaseRepository
import ch.rmy.android.framework.data.RealmFactory
import ch.rmy.android.framework.data.RealmTransactionContext
import ch.rmy.android.framework.extensions.detachFromRealm
import ch.rmy.android.framework.exte... | mit | c80a99ea87ab26b92a09f494da2c3341 | 34.497268 | 145 | 0.618688 | 5.426901 | false | false | false | false |
byoutline/SecretSauce | SecretSauce/src/main/java/com/byoutline/secretsauce/utils/NetworkChangeReceiver.kt | 1 | 2370 | package com.byoutline.secretsauce.utils
import android.Manifest
import android.annotation.SuppressLint
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import androidx.databinding.Observabl... | apache-2.0 | 25803cc8de6193389d1b4b3a174d3770 | 31.930556 | 108 | 0.724051 | 5.152174 | false | false | false | false |
marktony/ZhiHuDaily | app/src/main/java/com/marktony/zhihudaily/data/ZhihuDailyContent.kt | 1 | 2526 | /*
* Copyright 2016 lizhaotailang
*
* 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... | apache-2.0 | e4bd9bed9e4482ce4a9bae9ecc8cc2f2 | 26.769231 | 75 | 0.657957 | 4.416084 | false | false | false | false |
seventhroot/elysium | bukkit/rpk-chat-bukkit/src/main/kotlin/com/rpkit/chat/bukkit/command/unmute/UnmuteCommand.kt | 1 | 2904 | /*
* Copyright 2016 Ross Binden
*
* 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 ... | apache-2.0 | edb0e3a9e774d902ecefa06b3a04d590 | 42.358209 | 128 | 0.618457 | 5.223022 | false | false | false | false |
Petrulak/kotlin-mvp-clean-architecture | app/src/main/java/com/petrulak/cleankotlin/ui/example3/fragment/Example3Presenter.kt | 1 | 3319 | package com.petrulak.cleankotlin.ui.example3.fragment
import android.util.Log
import com.petrulak.cleankotlin.di.scope.ViewScope
import com.petrulak.cleankotlin.domain.interactor.definition.GetWeatherRemotelyUseCase
import com.petrulak.cleankotlin.domain.model.Weather
import com.petrulak.cleankotlin.platform.bus.data.... | mit | aee98d6025da0cb7ff42eb5567ffb0a3 | 32.867347 | 97 | 0.707141 | 4.622563 | false | false | false | false |
bk138/multivnc | android/app/src/main/java/com/coboltforge/dontmind/multivnc/ImportExport.kt | 1 | 2128 | package com.coboltforge.dontmind.multivnc
import kotlinx.serialization.Serializable
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import java.io.Reader
import java.io.Writer
/**
* Import/Export Utility
*/
object ImportExport {
/... | gpl-3.0 | 09f9f39cea181cda27b626bbe615c47b | 25.6125 | 68 | 0.56297 | 4.676923 | false | false | false | false |
wizardofos/Protozoo | component/taskcommand/src/main/kotlin/org.protozoo.component.task.command/ListAction.kt | 1 | 719 | package org.protozoo.component.task.command
import org.apache.karaf.shell.api.action.Command
import org.apache.karaf.shell.api.action.lifecycle.Service
/**
* List all the components currently installed.
*/
@Command(scope = TaskCommandConstants.TASK_COMMAND, name = TaskCommandConstants.LIST_FUNCTION, description = "... | mit | fb781ba10a985d8e341392b859f97aa8 | 25.666667 | 135 | 0.630042 | 4.132184 | false | false | false | false |
premnirmal/StockTicker | app/src/main/kotlin/com/github/premnirmal/ticker/news/GraphActivity.kt | 1 | 3362 | package com.github.premnirmal.ticker.news
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import com.github.mikephil.charting.animation.Easing
import com.github.mikephil.charting.charts.LineChart
import com.github.premnirmal.ticker.base.BaseGraphActivity
import com.github.premnirm... | gpl-3.0 | 8dbb55dd07fc3f2902df77b7685dbf6b | 32.29703 | 92 | 0.735277 | 4.389034 | false | false | false | false |
rharter/windy-city-devcon-android | core/src/main/kotlin/com/gdgchicagowest/windycitydevcon/ext/Bytes.kt | 1 | 702 | package com.gdgchicagowest.windycitydevcon.ext
/**
* Set of chars for a half-byte.
*/
private val CHARS = arrayOf('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f')
/**
* Returns the string of two characters representing the HEX value of the byte.
*/
internal fun Byte.toHexString() ... | apache-2.0 | 76726069c97625f75d7f6aab61b7ff01 | 25.037037 | 107 | 0.612536 | 3.205479 | false | false | false | false |
FutureioLab/FastPeak | app/src/main/java/com/binlly/fastpeak/base/net/Net.kt | 1 | 739 | package com.binlly.fastpeak.base.net
import android.content.Context
import android.net.ConnectivityManager
import com.binlly.fastpeak.service.Services
/**
* Created by yy on 2017/8/23.
*/
object Net {
fun isAvailable(): Boolean {
val mConnectivityManager = Services.app().getSystemService(Context.CONNEC... | mit | 2c1fbec84ed4f9f5112453d4ca44ee51 | 31.173913 | 119 | 0.742896 | 4.861842 | false | false | false | false |
FutureioLab/FastPeak | app/src/main/java/com/binlly/fastpeak/business/test/model/TestModel.kt | 1 | 1352 | package com.binlly.fastpeak.business.test.model
import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable
class TestModel: MultiItemEntity, Serializable {
var item_type: Int = 0
val isSectionType: Boolean
get() = item_type == TYPE_SECTION
val isEnvType: Boolean
... | mit | 94d368f3a873de3bfe112dceadc6b0cb | 23.6 | 92 | 0.659763 | 4.121951 | false | false | false | false |
zxj5470/BugKotlinDocument | src/main/kotlin/com/github/zxj5470/bugktdoc/BugKtDocTools.kt | 1 | 1569 | package com.github.zxj5470.bugktdoc
import com.github.zxj5470.bugktdoc.options.BugKtDocGlobalSettings
import com.intellij.CommonBundle
import com.intellij.openapi.components.ServiceManager
import com.intellij.util.PlatformUtils
import org.jetbrains.annotations.NonNls
import org.jetbrains.annotations.PropertyKey
import... | apache-2.0 | 342a6bbed1ef44dc8e251d131be4c888 | 31.708333 | 103 | 0.823454 | 4.064767 | false | false | false | false |
industrial-data-space/trusted-connector | ids-container-manager/src/main/kotlin/de/fhg/aisec/ids/comm/unixsocket/TrustmeUnixSocketResponseHandler.kt | 1 | 1843 | /*-
* ========================LICENSE_START=================================
* ids-container-manager
* %%
* Copyright (C) 2019 Fraunhofer AISEC
* %%
* 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... | apache-2.0 | af4967ad53ca5a240d3583942ade28d4 | 31.910714 | 91 | 0.593597 | 4.774611 | false | false | false | false |
googlearchive/background-tasks-samples | WorkManager/lib/src/main/java/com/example/background/imgur/PostImageResponse.kt | 1 | 1177 | /*
*
* * Copyright (C) 2018 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
* ... | apache-2.0 | bfbac410f969642e04524067be89d9ba | 25.155556 | 78 | 0.668649 | 3.949664 | false | false | false | false |
LorittaBot/Loritta | discord/loritta-bot-common/src/main/kotlin/net/perfectdreams/loritta/morenitta/gifs/GetOverHereGIF.kt | 1 | 1631 | package net.perfectdreams.loritta.morenitta.gifs
import net.perfectdreams.loritta.morenitta.LorittaBot
import net.perfectdreams.loritta.morenitta.utils.extensions.readImage
import java.awt.image.BufferedImage
import java.io.File
import javax.imageio.stream.FileImageOutputStream
object GetOverHereGIF {
suspend fun ge... | agpl-3.0 | 0ad4631190b02410661e7f936c5a9359 | 33 | 114 | 0.689761 | 3.185547 | false | false | false | false |
sandeepraju/concurrency | kotlin/src/main/kotlin/io/github/sandeepraju/ServerWithEventloop.kt | 1 | 3381 | package io.github.sandeepraju
import io.github.sandeepraju.utils.Database
import io.github.sandeepraju.utils.Image
import java.net.InetSocketAddress
import java.nio.ByteBuffer
import java.nio.channels.SelectionKey
import java.nio.channels.Selector
import java.nio.channels.ServerSocketChannel
import java.nio.channels.S... | bsd-3-clause | cc0f6c584bea5a9ae83a48c25169be95 | 33.865979 | 107 | 0.571724 | 5.570016 | false | false | false | false |
Nagarajj/orca | orca-queue/src/test/kotlin/com/netflix/spinnaker/orca/q/handler/StartExecutionHandlerSpec.kt | 1 | 3457 | /*
* Copyright 2017 Netflix, 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 to i... | apache-2.0 | d4e5a779dcd547f6efef04ff320ca3ee | 29.59292 | 96 | 0.683541 | 4.640268 | false | false | false | false |
gatheringhallstudios/MHGenDatabase | app/src/main/java/com/ghstudios/android/data/classes/MeowsterRewards.kt | 1 | 1198 | package com.ghstudios.android.data.classes
import com.ghstudios.android.ITintedIcon
import com.ghstudios.android.mhgendatabase.R
enum class MeowsterType(val type:Int){
STONE(0),
FISH(1),
GRASS(2),
NUTS(3),
BONE(4),
BAIT(5),
HONEY(6),
INSECT(7),
MUSHROOM(8)
}
class MeowsterRewards ... | mit | 86b081bf7680a5d6c866796de2ee98f7 | 23.958333 | 52 | 0.597663 | 3.839744 | false | false | false | false |
shyiko/ktlint | ktlint-reporter-plain/src/main/kotlin/com/pinterest/ktlint/reporter/plain/PlainReporterProvider.kt | 1 | 1021 | package com.pinterest.ktlint.reporter.plain
import com.pinterest.ktlint.core.Reporter
import com.pinterest.ktlint.core.ReporterProvider
import com.pinterest.ktlint.reporter.plain.internal.Color
import java.io.PrintStream
public class PlainReporterProvider : ReporterProvider {
override val id: String = "plain"
... | mit | 1c1f1fb1317b0061d96a855547d91d36 | 36.814815 | 129 | 0.662096 | 4.47807 | false | false | false | false |
vanniktech/Emoji | emoji-facebook/src/commonMain/kotlin/com/vanniktech/emoji/facebook/category/SmileysAndPeopleCategoryChunk3.kt | 1 | 71746 | /*
* Copyright (C) 2016 - Niklas Baudy, Ruben Gees, Mario Đanić and contributors
*
* 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
*
... | apache-2.0 | 8f10e2238791120cc02bacd57a90a3e3 | 78.275138 | 168 | 0.666341 | 2.685935 | false | false | false | false |
JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/run/configurations/UnityAttachToEditorSettingsEditor.kt | 1 | 1651 | package com.jetbrains.rider.plugins.unity.run.configurations
import com.intellij.execution.impl.CheckableRunConfigurationEditor
import com.intellij.openapi.options.SettingsEditor
import com.intellij.openapi.project.Project
import com.intellij.openapi.rd.defineNestedLifetime
import com.jetbrains.rd.util.lifetime.Lifeti... | apache-2.0 | 3fdd65a10394428b731078c9c7cf97dd | 41.358974 | 124 | 0.786796 | 5.521739 | false | true | false | false |
Magneticraft-Team/Magneticraft | src/main/kotlin/com/cout970/magneticraft/misc/render/AnimationTimer.kt | 2 | 711 | package com.cout970.magneticraft.misc.render
/**
* Created by cout970 on 16/07/2016.
*/
class AnimationTimer {
var active = true
var lastTime = System.currentTimeMillis()
var animationStage = 0f
fun updateAnimation() {
animationStage += getDelta().toFloat()
resetDelta()
}
f... | gpl-2.0 | 9c49f82b1342172a85f018501f773978 | 22.733333 | 85 | 0.648383 | 4.283133 | false | false | false | false |
lispyclouds/bob | src/main/kotlin/bob/core/primitives/job/Serialization.kt | 1 | 1979 | /*
* This file is part of Bob.
*
* Bob is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Bob is distributed in the hope that ... | gpl-3.0 | 01ce027f1e6e287b9a019f2032dfa27a | 27.271429 | 71 | 0.613441 | 3.926587 | false | false | false | false |
spark/photon-tinker-android | mesh/src/main/java/io/particle/mesh/common/Delegates.kt | 1 | 1527 | package io.particle.mesh.common
import mu.KLogger
import mu.KotlinLogging
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
fun <T> KLogger.logged(): ReadWriteProperty<Any?, T?> = NullableLogWhenSetVar(this)
fun <T> KLogger.logged(initialValue: T): ReadWriteProperty<Any?, T> {
return Non... | apache-2.0 | b3885e7eadd65f3e3dc70c0a49e90a7b | 28.365385 | 90 | 0.660118 | 4.206612 | false | false | false | false |
fnouama/intellij-community | plugins/settings-repository/src/git/CommitMessageFormatter.kt | 9 | 2585 | /*
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | apache-2.0 | e47813fc8c9cfdfebe92597fb8cc125c | 37.029412 | 165 | 0.732689 | 4.543058 | false | false | false | false |
android/camera-samples | CameraXVideo/utils/src/main/java/com/example/android/camera/utils/AutoFitSurfaceView.kt | 7 | 2782 | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | 29252bc94bbfc049489712e20a3bcb21 | 34.21519 | 83 | 0.664989 | 4.788296 | false | false | false | false |
CarrotCodes/Warren | src/test/kotlin/chat/willow/warren/handler/QuitHandlerTests.kt | 1 | 4741 | package chat.willow.warren.handler
import chat.willow.kale.helper.CaseMapping
import chat.willow.kale.irc.message.rfc1459.QuitMessage
import chat.willow.kale.irc.prefix.Prefix
import chat.willow.kale.irc.prefix.prefix
import chat.willow.kale.irc.tag.TagStore
import chat.willow.warren.event.ConnectionLifecycleEvent
imp... | isc | e76d9594b2f118b6480858c62f52adc8 | 53.505747 | 177 | 0.760388 | 5.164488 | false | true | false | false |
Ekito/koin | koin-projects/koin-core-ext/src/main/kotlin/org/koin/experimental/builder/InstanceBuilder.kt | 1 | 1899 | package org.koin.experimental.builder
import org.koin.core.logger.Level
import org.koin.core.scope.Scope
import org.koin.core.time.measureDurationForResult
import org.koin.ext.getFullName
import java.lang.reflect.Constructor
/**
* Create instance for type T and inject dependencies into 1st constructor
*/
inline fun... | apache-2.0 | 27da6755f665bc3fcbf2680786d98c6b | 28.230769 | 80 | 0.640864 | 4.315909 | false | false | false | false |
Shynixn/BlockBall | blockball-bukkit-plugin/bukkit-nms-118R2/src/main/java/com/github/shynixn/blockball/bukkit/logic/business/service/nms/v1_18_R2/InternalVersionPacket118R2ServiceImpl.kt | 1 | 7119 | package com.github.shynixn.blockball.bukkit.logic.business.service.nms.v1_18_R2
import com.github.shynixn.blockball.api.business.enumeration.CompatibilityArmorSlotType
import com.github.shynixn.blockball.api.business.proxy.PluginProxy
import com.github.shynixn.blockball.api.business.service.InternalVersionPacketServic... | apache-2.0 | 33af5f14d85e202ff2740dce27f95761 | 37.481081 | 119 | 0.669897 | 4.362132 | false | false | false | false |
charlesmadere/smash-ranks-android | smash-ranks-android/app/src/main/java/com/garpr/android/features/settings/RegionPreferenceView.kt | 1 | 1301 | package com.garpr.android.features.settings
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.core.content.ContextCompat
import com.garpr.android.R
import com.garpr.android.data.models.Region
import com.garpr.android.features.common.views.SimplePreferenceView
cla... | unlicense | 4125db3d3394f917a76c6f049ef03e8f | 29.97619 | 98 | 0.707148 | 4.351171 | false | false | false | false |
dataloom/conductor-client | src/main/kotlin/com/openlattice/postgres/PostgresResultSetAdapters.kt | 1 | 9716 | package com.openlattice.postgres
import com.dataloom.mappers.ObjectMappers
import com.fasterxml.jackson.module.kotlin.readValue
import com.openlattice.IdConstants.LAST_WRITE_ID
import com.openlattice.data.storage.ByteBlobDataManager
import com.openlattice.data.storage.MetadataOption
import com.openlattice.data.storage... | gpl-3.0 | 1a79608d01362e7ef3bb3fd1748c5cbe | 37.868 | 122 | 0.678571 | 4.82423 | false | false | false | false |
JimSeker/ui | Communication/FragComNavLiveDemo_kt/app/src/main/java/edu/cs4730/fragcomnavlivedemo_kt/SecondFragment.kt | 1 | 1559 | package edu.cs4730.fragcomnavlivedemo_kt
import androidx.navigation.Navigation.findNavController
import android.widget.TextView
import android.view.LayoutInflater
import android.view.ViewGroup
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.fragment.app.Fragment
import a... | apache-2.0 | 25c718f489c5488f3669094132ffad0b | 37.04878 | 128 | 0.710071 | 4.259563 | false | false | false | false |
italoag/qksms | data/src/main/java/com/moez/QKSMS/blocking/CallBlockerBlockingClient.kt | 3 | 3583 | /*
* Copyright (C) 2020 Moez Bhatti <moez.bhatti@gmail.com>
*
* This file is part of QKSMS.
*
* QKSMS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opti... | gpl-3.0 | 970c913a3c6af61044090eb161ef920d | 38.373626 | 115 | 0.701088 | 4.473159 | false | false | false | false |
blackbbc/Tucao | app/src/main/kotlin/me/sweetll/tucao/business/home/adapter/RecommendAdapter.kt | 1 | 3687 | package me.sweetll.tucao.business.home.adapter
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import me.sweetll.tucao.R
import me.sweetll.tucao.model.json.Video
import me.s... | mit | 79acab642eb133b4e55f03638ffaa723 | 39.888889 | 171 | 0.543898 | 4.15237 | false | false | false | false |
vhromada/Catalog-Swing | src/main/kotlin/cz/vhromada/catalog/gui/game/GameInfoDialog.kt | 1 | 9525 | package cz.vhromada.catalog.gui.game
import cz.vhromada.catalog.entity.Game
import cz.vhromada.catalog.gui.common.AbstractInfoDialog
import cz.vhromada.catalog.gui.common.CatalogSwingConstants
import javax.swing.GroupLayout
import javax.swing.JCheckBox
import javax.swing.JLabel
import javax.swing.JSpinner
import javax... | mit | 59a140666184a1bad7e68b5218bcef6e | 38.036885 | 187 | 0.650919 | 5.165401 | false | false | false | false |
apiote/Bimba | app/src/main/java/ml/adamsprogs/bimba/models/Plate.kt | 1 | 3099 | package ml.adamsprogs.bimba.models
import java.io.Serializable
data class Plate(val id: ID, val departures: HashMap<Int, HashSet<Departure>>?) {
override fun toString(): String {
var result = "${id.line}=${id.stop}=${id.headsign}={"
if (departures != null) {
for ((service, column) in d... | gpl-3.0 | c3c2802f1c6a2a20ebba8a080ab3f8c7 | 35.470588 | 117 | 0.475637 | 5.047231 | false | false | false | false |
infinum/android_dbinspector | dbinspector/src/test/kotlin/com/infinum/dbinspector/domain/schema/shared/SchemaRepositoryTest.kt | 1 | 4353 | package com.infinum.dbinspector.domain.schema.shared
import com.infinum.dbinspector.data.models.local.cursor.input.Query
import com.infinum.dbinspector.data.models.local.cursor.output.QueryResult
import com.infinum.dbinspector.domain.Control
import com.infinum.dbinspector.domain.shared.base.BaseInteractor
import com.i... | apache-2.0 | 0582de84129fd1faccdb8b98e17278a3 | 36.852174 | 110 | 0.642086 | 4.726384 | false | true | false | false |
ankidroid/Anki-Android | AnkiDroid/src/main/java/com/ichi2/anki/StudyOptionsActivity.kt | 1 | 4677 | /***************************************************************************************
* Copyright (c) 2012 Norbert Nagold <norbert.nagold@gmail.com> *
* *
* This program is free software; you can redistrib... | gpl-3.0 | 74d1361b9fa7bf34fa61a83b7c3fb228 | 40.026316 | 105 | 0.600171 | 5.521842 | false | false | false | false |
ebraminio/DroidPersianCalendar | PersianCalendar/src/main/java/com/byagowi/persiancalendar/utils/AthanUtils.kt | 1 | 1519 | package com.byagowi.persiancalendar.utils
import android.content.ContentResolver
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.core.net.toUri
import com.byagowi.persiancalendar.*
import com.byagowi.persiancalendar.service.AthanNotification
import com.byagowi.persia... | gpl-3.0 | 29cc298686ab800bbf93a7452695f9e9 | 37.974359 | 90 | 0.737986 | 3.826196 | false | false | false | false |
udevbe/westmalle | compositor/src/main/kotlin/org/westford/compositor/core/Output.kt | 3 | 6411 | /*
* Westford Wayland Compositor.
* Copyright (C) 2016 Erik De Rijcke
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any ... | agpl-3.0 | 9fb7c30099ea2faa10d33ec6bff20c69 | 36.491228 | 105 | 0.565122 | 5.31592 | false | false | false | false |
wordpress-mobile/WordPress-Stores-Android | plugins/woocommerce/src/main/kotlin/org/wordpress/android/fluxc/store/WCOrderStore.kt | 2 | 37063 | package org.wordpress.android.fluxc.store
import kotlinx.coroutines.flow.Flow
import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode
import org.wordpress.android.fluxc.Dispatcher
import org.wordpress.android.fluxc.Payload
import org.wordpress.android.fluxc.action.WCOrderAction
import org.wo... | gpl-2.0 | 4f939113ce81acbe4f7c52ed622ffe9c | 38.767167 | 119 | 0.654939 | 5.465713 | false | false | false | false |
OpenWeen/OpenWeen.Droid | app/src/main/java/moe/tlaster/openween/core/model/LimitStatusModel.kt | 1 | 834 | package moe.tlaster.openween.core.model
import com.fasterxml.jackson.annotation.JsonProperty
/**
* Created by Tlaster on 2016/8/26.
*/
class LimitStatusModel {
@field:JsonProperty("ip_limit")
var ipLimit: Long = 0
@field:JsonProperty("limit_time_unit")
var limitTimeUnit: String? = null
@field:J... | mit | c11112b3f33d49f31160516db08259c1 | 28.785714 | 52 | 0.694245 | 3.73991 | false | false | false | false |
andersonlucasg3/SpriteKit-Android | SpriteKitLib/src/main/java/br/com/insanitech/spritekit/SKScene.kt | 1 | 1687 | package br.com.insanitech.spritekit
import br.com.insanitech.spritekit.graphics.SKColor
import br.com.insanitech.spritekit.graphics.SKPoint
import br.com.insanitech.spritekit.graphics.SKSize
open class SKScene : SKEffectNode {
var anchorPoint: SKPoint = SKPoint()
set(value) { field.point.assignByValue(val... | bsd-3-clause | bd566dbaee5ac9d72b9295412966e152 | 21.197368 | 94 | 0.642561 | 3.860412 | false | false | false | false |
MatthijsKok/TI2806-Contextproject | BankChain/app/src/main/java/nl/tudelft/ewi/ds/bankchain/bank/bunq/BunqAccount.kt | 1 | 888 | package nl.tudelft.ewi.ds.bankchain.bank.bunq
import nl.tudelft.ewi.ds.bankchain.bank.Account
import nl.tudelft.ewi.ds.bankchain.bank.Party
import java8.util.stream.StreamSupport.*
import nl.tudelft.ewi.ds.bankchain.bank.bunq.api.AccountService.*
/**
* Bunq implementation of account
*/
class BunqAccount : Account {... | lgpl-3.0 | 8a362396a71d190fe2838f6498cf1680 | 26.75 | 70 | 0.644144 | 3.669421 | false | false | false | false |
minjaesong/terran-basic-java-vm | src/net/torvald/terrarum/virtualcomputer/terranvmadapter/Memvwr.kt | 1 | 3406 | package net.torvald.terrarum.virtualcomputer.terranvmadapter
import net.torvald.terranvm.runtime.TerranVM
import net.torvald.terranvm.runtime.to8HexString
import net.torvald.terranvm.runtime.toHexString
import net.torvald.terranvm.runtime.toUint
import java.awt.BorderLayout
import java.awt.Dimension
import java.awt.Fo... | mit | 1a8f67baf4fbc26e2edff9a14d033a61 | 24.425373 | 143 | 0.483558 | 3.788654 | false | false | false | false |
if710/if710.github.io | 2019-10-02/SystemServices/app/src/main/java/br/ufpe/cin/android/systemservices/phonesms/PhoneManagerActivity.kt | 1 | 2599 | package br.ufpe.cin.android.systemservices.phonesms
import android.Manifest
import android.app.ListActivity
import android.content.Context
import android.content.pm.PackageManager
import android.os.Bundle
import android.telephony.TelephonyManager
import android.widget.ArrayAdapter
import android.widget.Toast
import an... | mit | 16cbb111ee0b2b59f887e63e36953904 | 41.606557 | 155 | 0.697844 | 4.977011 | false | false | false | false |
ahmedeltaher/MVP-Sample | app/src/main/java/com/task/ui/base/BaseActivity.kt | 1 | 3055 | package com.task.ui.base
import android.os.Bundle
import android.view.MenuItem
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import butterknife.BindVi... | apache-2.0 | 64a9a135d4182a7440559907f9ac8355 | 25.798246 | 76 | 0.664812 | 4.7 | false | false | false | false |
clangen/musikcube | src/musikdroid/app/src/main/java/io/casey/musikcube/remote/ui/shared/extension/Compat.kt | 1 | 2074 | package io.casey.musikcube.remote.ui.shared.extension
import android.content.Intent
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.os.Parcelable
import androidx.activity.ComponentActivity
import androidx.activity.result.Act... | bsd-3-clause | d99ed00f8047843dfb9312dfefe9e29d | 34.758621 | 114 | 0.762295 | 4.460215 | false | false | false | false |
AoEiuV020/PaNovel | app/src/main/java/cc/aoeiuv020/panovel/find/qidiantu/list/QidiantuListActivity.kt | 1 | 7206 | package cc.aoeiuv020.panovel.find.qidiantu.list
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import cc.... | gpl-3.0 | c9a3f639f633b4666459b0f88371933e | 32.395349 | 277 | 0.618663 | 4.396816 | false | false | false | false |
dumptruckman/PluginBase | pluginbase-core/messages/src/main/kotlin/pluginbase/messages/ChatColor.kt | 1 | 6484 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
package pluginbase.messages
import java.util.HashMap
/**
* All supported color values for chat.
*/
enum class C... | mpl-2.0 | bec32b3c8adb3b23338b6ecb2df7891d | 26.591489 | 118 | 0.51095 | 4.29404 | false | false | false | false |
Subsets and Splits
Kotlin Imports 10-100
Retrieves a limited number of code snippets starting with 'import' and having a length between 10 and 1000 characters, providing basic filtering of the dataset.
Kotlin Imports Starters
Retrieves the first 20,000 entries from the dataset where the content starts with 'import', providing a basic filter on the data.