repo_name stringlengths 7 79 | path stringlengths 8 206 | copies stringclasses 36
values | size stringlengths 2 6 | content stringlengths 55 523k | license stringclasses 15
values | hash stringlengths 32 32 | line_mean float64 7.18 99.5 | line_max int64 16 979 | alpha_frac float64 0.3 0.87 | ratio float64 2.01 8.07 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
material-components/material-components-android-examples | Reply/app/src/main/java/com/materialstudies/reply/ui/nav/OnStateChangedAction.kt | 1 | 3636 | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | fdfdfda80f3057ca45e840e2a4992ccc | 33.628571 | 97 | 0.710396 | 4.494438 | false | false | false | false |
Orchextra/orchextra-android-sdk | core/src/main/java/com/gigigo/orchextra/core/domain/entities/Error.kt | 1 | 1015 | /*
* Created by Orchextra
*
* Copyright (C) 2017 Gigigo Mobile Services SL
*
* 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... | apache-2.0 | d3fd9f6f810fc5c444676ac54c571b69 | 30.75 | 75 | 0.728079 | 3.934109 | false | false | false | false |
apixandru/intellij-community | platform/platform-tests/testSrc/com/intellij/ide/updates/UpdateInfoParsingTest.kt | 1 | 5138 | /*
* Copyright 2000-2017 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 | aafe568badf8d2d665c6d7fd8e89ef48 | 35.971223 | 155 | 0.648696 | 3.916159 | false | true | false | false |
lare96/luna | plugins/world/player/skill/firemaking/Log.kt | 1 | 842 | package world.player.skill.firemaking
/**
* An enum representing logs that can be burned.
*/
enum class Log(val id: Int, val level: Int, val exp: Double) {
NORMAL(id = 1511,
level = 1,
exp = 40.0),
OAK(id = 1521,
level = 15,
exp = 60.0),
WILLOW(id = 1519,
... | mit | 2074e30f0c8959e972ab39bc4eb61fb0 | 20.589744 | 62 | 0.445368 | 3.328063 | false | false | false | false |
openstreetview/android | app/src/main/java/com/telenav/osv/map/viewmodel/MapViewModel.kt | 1 | 21734 | package com.telenav.osv.map.viewmodel
import android.annotation.SuppressLint
import android.location.Location
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.mapbox.mapboxsdk.geometry.LatLng
import com.mapbox.mapboxsdk.geometry.LatLngBounds
im... | lgpl-3.0 | 214488afb2eeec88a5d519120d50d5c8 | 45.442308 | 249 | 0.625104 | 5.177227 | false | false | false | false |
cjkent/osiris | core/src/main/kotlin/ws/osiris/core/Api.kt | 1 | 18939 | package ws.osiris.core
import org.slf4j.LoggerFactory
import java.util.regex.Pattern
import kotlin.reflect.KClass
private val log = LoggerFactory.getLogger("ws.osiris.core")
/**
* The MIME types that are treated as binary by default.
*
* The user can specify additional types that should be treated as binary using... | apache-2.0 | f1b26e4847511fa515fa61a32a5f7a78 | 38.955696 | 124 | 0.662179 | 4.259784 | false | false | false | false |
BilledTrain380/sporttag-psa | app/desktop-starter/src/main/kotlin/ch/schulealtendorf/psa/desktop/PsaApplicationContext.kt | 1 | 898 | package ch.schulealtendorf.psa.desktop
import ch.schulealtendorf.psa.PsaApplication
import ch.schulealtendorf.psa.setup.AppDirsApplicationDirectory
import org.springframework.boot.builder.SpringApplicationBuilder
import org.springframework.context.ConfigurableApplicationContext
import java.nio.file.Path
object PsaApp... | gpl-3.0 | ead1f8a1edca8f262c15a84e3ac9c186 | 29.965517 | 80 | 0.709354 | 4.776596 | false | true | false | false |
ioc1778/incubator | incubator-quant/src/main/java/com/riaektiv/quant/options/OneStepBinomialModel.kt | 2 | 1827 | package com.riaektiv.quant.options
/**
* Coding With Passion Since 1991
* Created: 8/20/2016, 9:09 PM Eastern Time
* @author Sergey Chuykov
*/
class OneStepBinomialModel(val strike: Double, val months: Double,
val S0: Double, val u: Double, val d: Double,
val r... | bsd-3-clause | 4ab22e6d94a03266ad20c0e7522f5946 | 27.107692 | 92 | 0.550629 | 3.19965 | false | false | false | false |
jk1/youtrack-idea-plugin | src/main/kotlin/com/github/jk1/ytplugin/rest/ScriptsRestClient.kt | 1 | 2499 | package com.github.jk1.ytplugin.rest
import com.github.jk1.ytplugin.issues.model.Workflow
import com.github.jk1.ytplugin.issues.model.WorkflowRule
import com.github.jk1.ytplugin.logger
import com.github.jk1.ytplugin.rest.MulticatchException.Companion.multicatchException
import com.github.jk1.ytplugin.tasks.YouTrackSer... | apache-2.0 | 67cb0378edb49cd37b70a5e2926c6f34 | 39.967213 | 105 | 0.667067 | 4.551913 | false | false | false | false |
liuche/focus-android | app/src/main/java/org/mozilla/focus/autocomplete/UrlAutoCompleteFilter.kt | 3 | 5855 | /* 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 org.mozilla.focus.autocomplete
import android.content.Context
import android.util.Log
import kotlinx.coro... | mpl-2.0 | 3430e477dcfd0cd5a1d7a7d98c48d82b | 35.141975 | 115 | 0.622032 | 5.195209 | false | false | false | false |
kiruto/debug-bottle | components/src/main/kotlin/com/exyui/android/debugbottle/components/okhttp/LoggingInterceptor.kt | 1 | 3677 | package com.exyui.android.debugbottle.components.okhttp
import android.util.Log
import com.squareup.okhttp.*
import com.exyui.android.debugbottle.components.DTSettings
import java.io.IOException
import okio.Buffer
/**
* Created by yuriel on 8/18/16.
*/
internal class LoggingInterceptor : Interceptor {
@Throw... | apache-2.0 | 10c186fecdfa801beb41672e8e90366c | 34.708738 | 95 | 0.55344 | 4.896138 | false | false | false | false |
androidx/androidx | compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/snapping/LazyListSnappingDemos.kt | 3 | 5847 | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | apache-2.0 | 58809476bee686577b616b191db58f9a | 36.248408 | 96 | 0.759364 | 5.183511 | false | false | false | false |
androidx/androidx | compose/foundation/foundation/benchmark/src/androidTest/java/androidx/compose/foundation/benchmark/ScrollerTestCase.kt | 3 | 2750 | /*
* 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 | 5b6f9baf847a8d58092ae376e36e1cf7 | 34.727273 | 101 | 0.651636 | 4.537954 | false | true | false | false |
google/ide-perf | src/main/java/com/google/idea/perf/cvtracer/CachedValueTable.kt | 1 | 5773 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | 835db38166f65a36b288cd92c770be28 | 35.08125 | 98 | 0.596917 | 4.728092 | false | false | false | false |
raxden/square | square-commons/src/main/java/com/raxdenstudios/square/interceptor/commons/floatingactionbutton/HasFloatingActionButtonFragmentInterceptor.kt | 2 | 2945 | package com.raxdenstudios.square.interceptor.commons.floatingactionbutton
import android.support.design.widget.FloatingActionButton
import android.support.v4.app.Fragment
import android.support.v7.widget.Toolbar
import android.view.View
import com.raxdenstudios.square.interceptor.HasInterceptor
/**
* Created by Ánge... | apache-2.0 | 619dc637a5007a52400f9c842110d962 | 38.24 | 93 | 0.674822 | 4.315249 | false | false | false | false |
JavaEden/Orchid | plugins/OrchidPluginDocs/src/main/kotlin/com/eden/orchid/plugindocs/controllers/AdminController.kt | 2 | 2415 | package com.eden.orchid.plugindocs.controllers
import com.eden.orchid.api.OrchidContext
import com.eden.orchid.api.options.Descriptive
import com.eden.orchid.api.options.OptionsHolder
import com.eden.orchid.api.options.annotations.Option
import com.eden.orchid.api.server.OrchidController
import com.eden.orchid.api.ser... | lgpl-3.0 | 60c01288a5ce65a9e12fde2d656019e1 | 34.514706 | 134 | 0.676605 | 4.343525 | false | false | false | false |
HabitRPG/habitica-android | Habitica/src/main/java/com/habitrpg/android/habitica/helpers/notifications/HabiticaLocalNotification.kt | 1 | 3037 | package com.habitrpg.android.habitica.helpers.notifications
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.media.RingtoneManager
import androidx.annotation.CallSuper
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCom... | gpl-3.0 | aea22ad7b7ef68f4b59193e5c34747ea | 34.313953 | 105 | 0.708265 | 4.954323 | false | false | false | false |
sz-piotr/pik-projekt | backend/src/main/kotlin/app/result/Result.kt | 1 | 735 | package app.result
import app.test.Test
import app.user.User
import com.fasterxml.jackson.annotation.JsonIgnore
import javax.persistence.*
/**
* Created by michal on 23/05/2017.
*/
@Entity
@Table(name="\"Result\"")
data class Result ( @ManyToOne @JoinColumn(name = "test_id")
var test: Test? = n... | mit | 0d35647c9274d33aae3c2439e873aacb | 34.047619 | 93 | 0.587755 | 4.176136 | false | true | false | false |
Cypher121/discordplayer | src/main/kotlin/coffee/cypher/discordplayer/commands/general.kt | 1 | 2531 | package coffee.cypher.discordplayer.commands
import coffee.cypher.discordplayer.*
import coffee.cypher.discordplayer.model.MusicFile
import sx.blah.discord.handle.obj.IMessage
import java.io.File
fun printAvailable(context: CommandContext) {
val list = context.client.musicList.sortedBy(MusicFile::index).joinToStr... | mit | 10cb388115875ad897ea355fd2a65bc4 | 31.883117 | 124 | 0.618333 | 4.011094 | false | false | false | false |
StepicOrg/stepic-android | app/src/main/java/org/stepik/android/view/lesson/ui/dialog/SectionUnavailableDialogFragment.kt | 2 | 8412 | package org.stepik.android.view.lesson.ui.dialog
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.core.content.ContextCompat
import androidx.fragment.app.DialogFragment
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import org.stepic.dro... | apache-2.0 | b56493e5f3ca7f61b06a4d9676147a62 | 44.231183 | 174 | 0.683785 | 5.434109 | false | false | false | false |
walleth/walleth | app/src/main/java/org/walleth/transactions/TransactionRecyclerAdapter.kt | 1 | 1833 | package org.walleth.transactions
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import org.walleth.R
import org.walleth.data.AppDatabase
import org.walleth.data.config.Setting... | gpl-3.0 | 48f6938af960795b42623b8a8cfff4f7 | 39.755556 | 125 | 0.755592 | 5.40708 | false | false | false | false |
UCSoftworks/LeafDb | leafdb-jdbc/src/main/java/com/ucsoftworks/leafdb/jdbc/ReadableLeafDbJdbc.kt | 1 | 1256 | package com.ucsoftworks.leafdb.jdbc
import com.ucsoftworks.leafdb.wrapper.ILeafDbCursor
import com.ucsoftworks.leafdb.wrapper.ILeafDbReadableDatabase
import java.sql.Statement
/**
* Created by Pasenchuk Victor on 25/08/2017
*/
internal class ReadableLeafDbJdbc(private val readableDatabase: Statement) : ILeafDbReada... | lgpl-3.0 | 99d7707a714765ce5916d563e617a76e | 28.904762 | 115 | 0.703025 | 4.376307 | false | false | false | false |
da1z/intellij-community | plugins/stream-debugger/test/com/intellij/debugger/streams/exec/streamex/ConcatenateOperationsTest.kt | 4 | 761 | // Copyright 2000-2017 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.debugger.streams.exec.streamex
/**
* @author Vitaliy.Bibaev
*/
class ConcatenateOperationsTest : StreamExTestCase() {
override val packageName: String = ... | apache-2.0 | 5b91c7370ed85c36eef62d503c932698 | 39.105263 | 140 | 0.779238 | 4.275281 | false | true | false | false |
Heiner1/AndroidAPS | database/src/main/java/info/nightscout/androidaps/database/interfaces/TraceableDBEntry.kt | 1 | 788 | package info.nightscout.androidaps.database.interfaces
import info.nightscout.androidaps.database.embedments.InterfaceIDs
interface TraceableDBEntry: DBEntry {
var version: Int
var dateCreated: Long
var isValid: Boolean
var referenceId: Long?
@Suppress("PropertyName") var interfaceIDs_backing: Int... | agpl-3.0 | d272800804589a1fea071aebfe370aac | 27.178571 | 69 | 0.628173 | 5.083871 | false | false | false | false |
Heiner1/AndroidAPS | app/src/main/java/info/nightscout/androidaps/plugins/aps/openAPSAMA/OpenAPSAMAPlugin.kt | 1 | 9753 | package info.nightscout.androidaps.plugins.aps.openAPSAMA
import android.content.Context
import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.R
import info.nightscout.androidaps.annotations.OpenForTesting
import info.nightscout.androidaps.interfaces.Profile
import info.nightscout.androidaps.datab... | agpl-3.0 | 9c213bb93272425fdd3b702c09bbb5a2 | 53.797753 | 227 | 0.729212 | 4.451392 | false | false | false | false |
saletrak/WykopMobilny | app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/modules/mikroblog/entry/EntryDetailActivity.kt | 1 | 5771 | package io.github.feelfreelinux.wykopmobilny.ui.modules.mikroblog.entry
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import android.view.Menu
import android.view.MenuItem
import io.github.feelfreeli... | mit | 316ac5bd78ae2744ac7fe1dccf20dda5 | 32.952941 | 115 | 0.700225 | 4.957904 | false | false | false | false |
elsiff/MoreFish | src/main/kotlin/me/elsiff/morefish/util/InventoryExtension.kt | 1 | 483 | package me.elsiff.morefish.util
import org.bukkit.Material
import org.bukkit.inventory.Inventory
import org.bukkit.inventory.ItemStack
/**
* Created by elsiff on 2019-01-07.
*/
fun Inventory.isEmptyAt(slot: Int): Boolean {
val item = getItem(slot)
return item == null || item.type == Material.AIR
}
fun Inve... | mit | 530b50e7ec8345b1e4400332fcf1e4ec | 22.047619 | 52 | 0.712215 | 3.47482 | false | false | false | false |
PolymerLabs/arcs | java/arcs/core/data/expression/Expression.kt | 1 | 20849 | /*
* Copyright 2020 Google LLC.
*
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt
*
* Code distributed by Google as part of this project is also subject to an additional IP rights
* grant found at
* http://polymer.github.io/PATENTS.txt
*/
package arcs.c... | bsd-3-clause | 1380a854b13d262d71a0710b7010f840 | 34.761578 | 98 | 0.660032 | 4.173974 | false | false | false | false |
hpost/kommon | app/src/main/java/cc/femto/kommon/ui/recyclerview/InsetItemDecoration.kt | 1 | 977 | package cc.femto.kommon.ui.recyclerview
import android.graphics.Rect
import android.support.annotation.Dimension
import android.support.annotation.LayoutRes
import android.support.v7.widget.RecyclerView
import android.view.View
class InsetItemDecoration(@LayoutRes private val itemLayoutId: Int,
... | apache-2.0 | d6f56987aa1fd1540a399f8a81674712 | 36.576923 | 110 | 0.704197 | 5.062176 | false | false | false | false |
ismail-s/JTime | JTime-android/src/main/kotlin/com/ismail_s/jtime/android/fragment/MasjidFragment.kt | 1 | 4173 | package com.ismail_s.jtime.android.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import com.ismail_s.jtime.android.CalendarFormatter.formatCalendarAsDate
import com.ismail_s.jtime.a... | gpl-2.0 | 00b2fd7e37522ebf53cf1de90eb22640 | 41.151515 | 101 | 0.623772 | 4.288798 | false | false | false | false |
DiUS/pact-jvm | core/support/src/main/kotlin/au/com/dius/pact/core/support/KotlinLanguageSupport.kt | 1 | 1589 | package au.com.dius.pact.core.support
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import com.github.michaelbull.result.UnwrapException
import java.lang.Integer.max
import java.net.URL
import kotlin.reflect.KProperty1
import kotlin.reflect... | apache-2.0 | 7cf2fc125c3d8ab6b758db4bc8b83614 | 28.981132 | 112 | 0.683449 | 3.409871 | false | false | false | false |
mdaniel/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/hints/codeVision/DaemonBoundCodeVisionProvider.kt | 4 | 2741 | // 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.codeInsight.hints.codeVision
import com.intellij.codeInsight.codeVision.CodeVisionAnchorKind
import com.intellij.codeInsight.codeVision.Cod... | apache-2.0 | 0d48189d7b3342e4a09d3b769568f924 | 34.61039 | 158 | 0.779642 | 4.630068 | false | false | false | false |
mdaniel/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/IncompleteDestructuringInspection.kt | 1 | 5608 | // 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.inspections
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.ProblemDescriptor
import com.... | apache-2.0 | 403efad917d01d7cc633257c57d69e32 | 50.449541 | 158 | 0.713445 | 5.775489 | false | false | false | false |
andrewoma/kommon | src/main/kotlin/com/github/andrewoma/kommon/lang/ObjectExtensions.kt | 1 | 1614 | /*
* Copyright (c) 2016 Andrew O'Malley
*
* 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, modify, merge, pub... | mit | 9b3bca93cf8c6b4bc60a8999623d4c22 | 41.5 | 96 | 0.728005 | 4.014925 | false | false | false | false |
hermantai/samples | kotlin/kotlin-and-android-development-featuring-jetpack/chapter-15/app/src/main/java/dev/mfazio/pennydrop/game/AI.kt | 1 | 1198 | package dev.mfazio.pennydrop.game
import dev.mfazio.pennydrop.types.Player
import dev.mfazio.pennydrop.types.Slot
import dev.mfazio.pennydrop.types.fullSlots
data class AI(
val aiId: Int = 0,
val name: String,
val rollAgain: (slots: List<Slot>) -> Boolean
) {
override fun toString() = name
fun t... | apache-2.0 | 00913e49f6fbdf45f10d4b1dc76dffc7 | 30.552632 | 86 | 0.542571 | 3.482558 | false | false | false | false |
AberrantFox/hotbot | src/main/kotlin/me/aberrantfox/hotbot/listeners/antispam/DuplicateMessageListener.kt | 1 | 2617 | package me.aberrantfox.hotbot.listeners.antispam
import me.aberrantfox.hotbot.commandframework.commands.administration.SecurityLevelState
import me.aberrantfox.hotbot.extensions.jda.descriptor
import me.aberrantfox.hotbot.extensions.jda.fullName
import me.aberrantfox.hotbot.extensions.jda.isImagePost
import me.aberran... | mit | 09e912ace2cd5c78a2d6ddd5ce9b6688 | 37.485294 | 129 | 0.716087 | 4.101881 | false | true | false | false |
austinv11/D4JBot | src/main/kotlin/com/austinv11/d4j/bot/command/impl/KotlinEvalCommand.kt | 1 | 2690 | package com.austinv11.d4j.bot.command.impl
import com.austinv11.d4j.bot.command.CommandExecutor
import com.austinv11.d4j.bot.command.Executor
import com.austinv11.d4j.bot.command.Parameter
import com.austinv11.d4j.bot.command.context
import com.austinv11.d4j.bot.extensions.embed
import com.austinv11.d4j.bot.scripting.... | gpl-3.0 | 030c4a13d77a7a2340ac8cdb2129645e | 43.098361 | 166 | 0.683271 | 4.269841 | false | false | false | false |
vickychijwani/kotlin-koans-android | app/src/main/code/me/vickychijwani/kotlinkoans/features/common/TabLayoutWithFonts.kt | 1 | 1301 | package me.vickychijwani.kotlinkoans.features.common
import android.content.Context
import android.graphics.Typeface
import android.support.design.widget.TabLayout
import android.util.AttributeSet
import android.view.ViewGroup
import android.widget.TextView
class TabLayoutWithFonts : TabLayout {
private var mTyp... | mit | a19e1489992a735772f6c1cbc28472ca | 27.911111 | 113 | 0.675634 | 4.365772 | false | false | false | false |
GunoH/intellij-community | plugins/kotlin/j2k/new/src/org/jetbrains/kotlin/nj2k/conversions/DefaultArgumentsConversion.kt | 2 | 9261 | // 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.nj2k.conversions
import com.intellij.psi.PsiMethod
import org.jetbrains.kotlin.load.java.propertyNameByGetMethodName
import org.jetbrains.kotlin.name.Name
import org.j... | apache-2.0 | 18fb9405947c9f7d67b2b49956c2afbb | 47.742105 | 136 | 0.606306 | 5.650397 | false | false | false | false |
google/accompanist | pager/src/sharedTest/kotlin/com/google/accompanist/pager/PagerStateUnitTest.kt | 1 | 3632 | /*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | apache-2.0 | df03a7205084c0aa7914012fef2bdf70 | 32.62963 | 75 | 0.697137 | 4.894879 | false | true | false | false |
marius-m/wt4 | components/src/main/java/lt/markmerkk/tickets/TicketInfoLoader.kt | 1 | 1816 | package lt.markmerkk.tickets
import lt.markmerkk.Tags
import lt.markmerkk.TicketStorage
import lt.markmerkk.entities.Ticket
import lt.markmerkk.entities.TicketCode
import org.slf4j.LoggerFactory
import rx.Observable
import rx.Scheduler
import rx.Subscription
import rx.subjects.BehaviorSubject
import java.util.concurre... | apache-2.0 | 66b7bc1224fd45f6fb20c90ec8f507fa | 27.390625 | 77 | 0.627753 | 4.948229 | false | false | false | false |
roylanceMichael/yaclib | core/src/main/java/org/roylance/yaclib/core/services/swift/SwiftServiceBuilder.kt | 1 | 1648 | package org.roylance.yaclib.core.services.swift
import org.roylance.common.service.IBuilder
import org.roylance.yaclib.YaclibModel
import org.roylance.yaclib.core.enums.CommonTokens
import org.roylance.yaclib.core.utilities.StringUtilities
import org.roylance.yaclib.core.utilities.SwiftUtilities
class SwiftServiceBui... | mit | a6978bfafc0c66f20e30febbd0e38731 | 38.261905 | 143 | 0.745146 | 4.708571 | false | false | false | false |
ktorio/ktor | ktor-client/ktor-client-jetty/jvm/src/io/ktor/client/engine/jetty/JettyResponseListener.kt | 1 | 4994 | /*
* Copyright 2014-2021 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.client.engine.jetty
import io.ktor.client.request.*
import io.ktor.http.*
import io.ktor.http.HttpMethod
import io.ktor.utils.io.*
import kotlinx.coroutines.*
import kotlinx.cor... | apache-2.0 | fd6a68d4e8f0a2b1cd634e9ed7ed8b0b | 32.972789 | 118 | 0.636964 | 4.684803 | false | false | false | false |
inorichi/mangafeed | app/src/main/java/eu/kanade/tachiyomi/ui/setting/search/SettingsSearchHelper.kt | 2 | 5763 | package eu.kanade.tachiyomi.ui.setting.search
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.Resources
import androidx.preference.Preference
import androidx.preference.PreferenceCategory
import androidx.preference.PreferenceGroup
import androidx.preference.PreferenceMa... | apache-2.0 | 6cc1789c150fbcf495d5b5c6deffd212 | 40.164286 | 137 | 0.651917 | 5.205962 | false | false | false | false |
cmzy/okhttp | okhttp/src/test/java/okhttp3/RecordingExecutor.kt | 2 | 2186 | /*
* Copyright (C) 2019 Square, 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 agre... | apache-2.0 | 38fd4b084b71a710a3d7cb06991e168e | 28.945205 | 75 | 0.729186 | 4.407258 | false | false | false | false |
meik99/CoffeeList | app/src/main/java/rynkbit/tk/coffeelist/db/facade/BaseFacade.kt | 1 | 2137 | package rynkbit.tk.coffeelist.db.facade
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import io.reactivex.schedulers.Schedulers
import org.koin.core.KoinComponent
import org.koin.core.inject
import rynkbit.tk.coffeelist.db.AppDatabase
import rynkbit.tk.coffeelist.db.dao.BaseDao
import ja... | mit | e1455d416b7d94b628b833f0a12f531a | 30.441176 | 94 | 0.620028 | 5.063981 | false | false | false | false |
dahlstrom-g/intellij-community | platform/lang-impl/src/com/intellij/ide/bookmark/actions/AddAnotherBookmarkAction.kt | 4 | 1142 | // 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.ide.bookmark.actions
import com.intellij.ide.bookmark.BookmarkBundle
import com.intellij.ide.bookmark.LineBookmark
import com.intellij.open... | apache-2.0 | ec48a02aa4aed6d3c47242f4b35c6b24 | 35.83871 | 158 | 0.769702 | 4.531746 | false | false | false | false |
dahlstrom-g/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/inspections/ReplaceToStringWithStringTemplateInspection.kt | 2 | 1656 | // 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.inspections
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import org.jetbrains.kotlin... | apache-2.0 | 0b0d7b7efca2370f3f0f4e6bd1ab6a2e | 50.78125 | 158 | 0.788647 | 5.273885 | false | false | false | false |
atfox7/KotlinSealedUnions | src/main/kotlin/io/andyfox/unions/Union6.kt | 1 | 3659 | /*
* Copyright (c) andyfox 2016
*
* 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 | c110aebdd24f2de3b6b9291714a71c12 | 42.058824 | 143 | 0.665756 | 4.003282 | false | false | false | false |
zbeboy/ISY | src/main/java/top/zbeboy/isy/service/data/CollegeRoleServiceImpl.kt | 1 | 2155 | package top.zbeboy.isy.service.data
import org.jooq.DSLContext
import org.jooq.Record
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import org.springframework.transaction.annotation.Propagation
import org.springframework.transaction.annotation.Transactional... | mit | 4b00f143798539f3bb2b168651234899 | 33.222222 | 107 | 0.715545 | 4.217221 | false | false | false | false |
paplorinc/intellij-community | platform/platform-impl/src/com/intellij/execution/filters/ArgumentFileFilter.kt | 3 | 1338 | // 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.intellij.execution.filters
import java.io.File
import java.nio.charset.Charset
/**
* A console filter which looks for a given path in an output and creates a link f... | apache-2.0 | ee9800a2b98d559ad738650c1c6ebe5a | 28.755556 | 140 | 0.656951 | 4.104294 | false | false | false | false |
paplorinc/intellij-community | plugins/git4idea/src/git4idea/rebase/GitRewordAction.kt | 2 | 6574 | /*
* Copyright 2000-2017 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 | b212ce462f51a6e3898fac55c8339875 | 38.608434 | 140 | 0.735929 | 4.574809 | false | false | false | false |
JetBrains/intellij-community | platform/lang-impl/src/com/intellij/codeInsight/hints/chain/AbstractCallChainHintsProvider.kt | 1 | 7923 | // 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.codeInsight.hints.chain
import com.intellij.codeInsight.CodeInsightBundle
import com.intellij.codeInsight.hints.*
import com.intellij.codeI... | apache-2.0 | 9fe73a3b830daa0812bc89cf4b761c7c | 43.511236 | 158 | 0.689638 | 5.289052 | false | false | false | false |
JetBrains/intellij-community | plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/timeline/GHPRTimelineItemComponentFactory.kt | 1 | 12381 | // Copyright 2000-2021 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.github.pullrequest.ui.timeline
import com.intellij.collaboration.async.CompletableFutureUtil.successOnEdt
import com.intellij.collaboration.ui.coder... | apache-2.0 | 2434707193e5ed6f66d0a04dc70abf18 | 46.623077 | 140 | 0.695097 | 5.145885 | false | false | false | false |
allotria/intellij-community | platform/configuration-store-impl/src/schemeManager/SchemeFileTracker.kt | 1 | 6065 | // 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.configurationStore.schemeManager
import com.intellij.configurationStore.LOG
import com.intellij.configurationStore.StoreReloadManager
import com.intellij.con... | apache-2.0 | 7f7c260a7f55aea23f2b6f788fdee9c8 | 38.38961 | 140 | 0.71789 | 4.708851 | false | false | false | false |
CORDEA/MackerelClient | app/src/main/java/jp/cordea/mackerelclient/view/OtherAlertListItem.kt | 1 | 1474 | package jp.cordea.mackerelclient.view
import android.content.Context
import com.xwray.groupie.databinding.BindableItem
import jp.cordea.mackerelclient.R
import jp.cordea.mackerelclient.databinding.ListItemOtherAlertBinding
import jp.cordea.mackerelclient.model.DisplayableAlert
import jp.cordea.mackerelclient.navigator... | apache-2.0 | 2df45572a9133f7166394ce3f0ed8958 | 34.095238 | 99 | 0.746269 | 4.360947 | false | false | false | false |
zdary/intellij-community | plugins/git4idea/src/git4idea/revert/GitRevertOperation.kt | 2 | 2524 | /*
* Copyright 2000-2017 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 | f8217292254b49cf62a18f5e17e6e989 | 42.534483 | 130 | 0.641442 | 4.988142 | false | false | false | false |
Raizlabs/DBFlow | lib/src/main/kotlin/com/dbflow5/query/CaseCondition.kt | 1 | 2023 | package com.dbflow5.query
import com.dbflow5.query.property.IProperty
import com.dbflow5.sql.Query
/**
* Description: Represents an individual condition inside a CASE.
*/
class CaseCondition<TReturn> : Query {
private val caze: Case<TReturn>
private val whenValue: TReturn?
private val sqlOperator: SQLO... | mit | cab047bbd939173824b58b6e6e6a6a85 | 29.651515 | 87 | 0.630746 | 4.258947 | false | false | false | false |
vimeo/vimeo-networking-java | models/src/main/java/com/vimeo/networking2/Product.kt | 1 | 1237 | @file:JvmName("ProductUtils")
package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.vimeo.networking2.enums.BillingPeriodType
import com.vimeo.networking2.enums.asEnum
/**
* Product data.
*
* @param billingPeriod The monthly or yearly billing period of the pro... | mit | 60a4ee06905e8753ff1afc72651ab935 | 24.770833 | 109 | 0.717057 | 3.841615 | false | false | false | false |
AndroidX/androidx | health/connect/connect-client/src/main/java/androidx/health/connect/client/records/ExerciseRouteRecord.kt | 3 | 4409 | /*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 | a5f3c8d7d67a12baf55624a733c38a25 | 35.139344 | 100 | 0.704695 | 4.326791 | false | false | false | false |
smmribeiro/intellij-community | plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/ResolveUtil.kt | 4 | 7915 | // 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.
@file:Suppress("LoopToCallChain")
package org.jetbrains.plugins.groovy.lang.resolve
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.util.Key
import com.... | apache-2.0 | 49b131dd44eb053ce72d184d9147682a | 42.251366 | 140 | 0.799747 | 4.639508 | false | false | false | false |
smmribeiro/intellij-community | plugins/groovy/src/org/jetbrains/plugins/groovy/intentions/style/inference/InferenceProcess.kt | 12 | 3855 | // Copyright 2000-2021 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.intentions.style.inference
import com.intellij.psi.PsiTypeParameter
import com.intellij.psi.SmartPsiElementPointer
import org.jetbrains.plugi... | apache-2.0 | ba9354b68a15acf0839a55813f2441a3 | 58.323077 | 140 | 0.814008 | 4.917092 | false | false | false | false |
kickstarter/android-oss | app/src/main/java/com/kickstarter/models/Checkout.kt | 1 | 2416 | package com.kickstarter.models
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
class Checkout private constructor(
private val id: Long?,
private val backing: Backing,
) : Parcelable {
fun id() = this.id
fun backing() = this.backing
@Parcelize
data class Builder(
... | apache-2.0 | 676fd552c7fd5568a22fc3bf489b1aa1 | 26.770115 | 104 | 0.554636 | 5.033333 | false | false | false | false |
jotomo/AndroidAPS | app/src/main/java/info/nightscout/androidaps/plugins/general/nsclient/data/NSSettingsStatus.kt | 1 | 9555 | package info.nightscout.androidaps.plugins.general.nsclient.data
import android.content.Context
import info.nightscout.androidaps.Config
import info.nightscout.androidaps.R
import info.nightscout.androidaps.logging.AAPSLogger
import info.nightscout.androidaps.logging.LTag
import info.nightscout.androidaps.plugins.bus.... | agpl-3.0 | 9a11e87483fbfbbd43d1c3bba30ddcec | 38.651452 | 274 | 0.649084 | 3.928865 | false | false | false | false |
kickstarter/android-oss | app/src/main/java/com/kickstarter/ui/fragments/RewardsFragment.kt | 1 | 7197 | package com.kickstarter.ui.fragments
import android.os.Bundle
import android.util.Pair
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import androidx.core.view.isGone
import androidx.recyclerview.widget.LinearLayoutManager
import com.... | apache-2.0 | 9a2217eeb2c26098a37a499ceb79b9cc | 37.902703 | 131 | 0.660831 | 5.097025 | false | false | false | false |
RedEpicness/redis-messenger | src/test/kotlin/me/redepicness/redismsg/tests/RedisDataTest.kt | 1 | 4251 | /*
* Copyright 2017 Red_Epicness
*
* 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 l... | apache-2.0 | 1afc96fc0c13a44dd44800120171ed92 | 27.34 | 78 | 0.537285 | 3.648927 | false | true | false | false |
EnricSala/RxSSE | src/main/kotlin/com/saladevs/rxsse/RxSSE.kt | 1 | 1544 | package com.saladevs.rxsse
import io.reactivex.Flowable
import io.reactivex.Single
import okhttp3.OkHttpClient
import okhttp3.Request
class RxSSE(private val client: OkHttpClient = OkHttpClient()) {
fun connectTo(url: String) = start(prepare(url))
fun connectTo(request: Request) = start(prepare(request))
... | apache-2.0 | be684251d11f5013fe950e6e2a62c365 | 33.311111 | 69 | 0.580311 | 4.636637 | false | false | false | false |
leafclick/intellij-community | platform/vcs-log/impl/src/com/intellij/vcs/log/ui/details/commit/CommitDetailsPanel.kt | 1 | 8326 | // 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.vcs.log.ui.details.commit
import com.intellij.ide.IdeTooltipManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.VerticalFlowLa... | apache-2.0 | 7dcff1a5b258e8e718764e1081a56fe2 | 30.070896 | 140 | 0.717511 | 4.352326 | false | false | false | false |
JetBrains/xodus | openAPI/src/main/kotlin/jetbrains/exodus/crypto/StreamCipherInputStream.kt | 1 | 2372 | /**
* Copyright 2010 - 2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | apache-2.0 | e4bbe8b285931b36a8af323a694cd7be | 29.037975 | 124 | 0.618465 | 4.281588 | false | false | false | false |
siosio/intellij-community | plugins/kotlin/jvm/src/org/jetbrains/kotlin/idea/vcs/BunchCheckinHandler.kt | 1 | 5844 | // 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.vcs
import com.intellij.BundleBase.replaceMnemonicAmpersand
import com.intellij.CommonBundle
import com.intellij.ide.plugins.... | apache-2.0 | bbbfc74260b509ef5a73aef327dbe7e7 | 39.867133 | 158 | 0.648186 | 4.931646 | false | false | false | false |
jwren/intellij-community | plugins/kotlin/frontend-independent/src/org/jetbrains/kotlin/idea/completion/keywords/DefaultCompletionKeywordHandlerProvider.kt | 6 | 4019 | // 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.completion.keywords
import com.intellij.codeInsight.completion.CompletionParameters
import org.jetbrains.kotlin.idea.completion.breakOrContinueExpressionItems
impo... | apache-2.0 | 52a6b7b315ee966593f8816351aeece8 | 41.765957 | 139 | 0.565066 | 5.892962 | false | false | false | false |
jwren/intellij-community | plugins/github/src/org/jetbrains/plugins/github/ui/cloneDialog/GHCloneDialogExtension.kt | 1 | 6133 | // Copyright 2000-2021 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.github.ui.cloneDialog
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ModalityState
import com.intellij.openapi.compo... | apache-2.0 | 6e41d1cb21dc5d4854d11fb74e69a509 | 36.631902 | 140 | 0.776618 | 4.587135 | false | false | false | false |
jwren/intellij-community | plugins/kotlin/gradle/gradle-java/src/org/jetbrains/kotlin/idea/gradleJava/configuration/kpm/KotlinFragmentContentRootsCreator.kt | 1 | 3144 | // 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.gradleJava.configuration.kpm
import com.intellij.openapi.externalSystem.model.DataNode
import com.intellij.openapi.externalSystem.model.ProjectKeys
import com.intel... | apache-2.0 | bdc9637eda0e52bae25f3415c163e653 | 48.140625 | 135 | 0.728053 | 5.328814 | false | false | false | false |
androidx/androidx | collection/collection/src/commonTest/kotlin/androidx/collection/ArraySetTest.kt | 3 | 7048 | /*
* 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 | 41323b6cc7f8b23cf33afe58e7d96f35 | 31.040909 | 99 | 0.585982 | 4.689288 | false | true | false | false |
GunoH/intellij-community | plugins/kotlin/jvm-debugger/sequence/src/org/jetbrains/kotlin/idea/debugger/sequence/psi/sequence/SequenceTypeExtractor.kt | 4 | 2460 | // 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.debugger.sequence.psi.sequence
import com.intellij.debugger.streams.trace.impl.handler.type.ClassTypeImpl
import com.intellij... | apache-2.0 | e872eb3342758346e6cb1e7672c8102f | 47.254902 | 158 | 0.750407 | 4.880952 | false | false | false | false |
vovagrechka/fucking-everything | phizdets/phizdetsc/src/CompileStdlib.kt | 1 | 2093 | package phizdets.compiler
import com.fasterxml.jackson.core.JsonParseException
import com.fasterxml.jackson.databind.JsonMappingException
import com.fasterxml.jackson.databind.ObjectMapper
import org.jetbrains.kotlin.cli.js.K2PhizdetsCompiler
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jet... | apache-2.0 | b6a38e474c8d11def424498bae308303 | 37.054545 | 98 | 0.789298 | 4.103922 | false | false | false | false |
GunoH/intellij-community | plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/projectView/KtDeclarationTreeNode.kt | 5 | 4000 | // 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.projectView
import com.intellij.ide.projectView.PresentationData
import com.intellij.ide.projectView.ViewSettings
import com.intellij.ide.projectView.impl.nodes.Abs... | apache-2.0 | 74413257edf876d9fef4bd2ce4485000 | 38.60396 | 120 | 0.58775 | 5.763689 | false | false | false | false |
TachiWeb/TachiWeb-Server | Tachiyomi-App/src/main/java/eu/kanade/tachiyomi/source/online/english/Mangahere.kt | 1 | 9986 | package eu.kanade.tachiyomi.source.online.english
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.*
import eu.kanade.tachiyomi.source.online.ParsedHttpSource
import okhttp3.HttpUrl
import okhttp3.Request
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import java.security.... | apache-2.0 | 3f6d854fc9750ef566e7f9b545fa3e31 | 37.559846 | 177 | 0.601142 | 4.547359 | false | false | false | false |
ThiagoGarciaAlves/intellij-community | python/src/com/jetbrains/python/codeInsight/typing/PyTypeShed.kt | 1 | 5020 | /*
* Copyright 2000-2017 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 | 0711127be06d6d836edc9b1fae8f9dd9 | 34.602837 | 138 | 0.688446 | 4.320138 | false | false | false | false |
joaomneto/TitanCompanion | src/main/java/pt/joaomneto/titancompanion/adventure/impl/fragments/sob/SOBShipCombatFragment.kt | 1 | 5126 | package pt.joaomneto.titancompanion.adventure.impl.fragments.sob
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.OnClickListener
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import pt.joaomneto.titancompanion.R
i... | lgpl-3.0 | fe657caec21ad35b844c63979f81fafd | 36.144928 | 129 | 0.611198 | 4.962246 | false | false | false | false |
scp504677840/Widget | Floating/app/src/main/java/com/scp/floating/MainService.kt | 1 | 4104 | package com.scp.floating
import android.annotation.SuppressLint
import android.app.Service
import android.content.Context
import android.content.Intent
import android.graphics.PixelFormat
import android.os.Binder
import android.os.IBinder
import android.util.Log
import android.view.Gravity
import android.view.LayoutIn... | apache-2.0 | aee8586a018da1c964c879cadfff8bcb | 31.380531 | 89 | 0.664297 | 3.984749 | false | false | false | false |
BastiaanOlij/godot | platform/android/java/lib/src/org/godotengine/godot/io/file/DataAccess.kt | 12 | 6118 | /*************************************************************************/
/* DataAccess.kt */
/*************************************************************************/
/* This file is part of: */
/* ... | mit | 6ba371cbc25fbc261e2820945f61fce5 | 32.431694 | 100 | 0.602975 | 4.092308 | false | false | false | false |
JayNewstrom/json | tests/integration-tests/src/test/java/com/jaynewstrom/jsonDelight/sample/custom/LenientTest.kt | 1 | 1141 | package com.jaynewstrom.jsonDelight.sample.custom
import com.jaynewstrom.jsonDelight.sample.JsonTestHelper
import org.fest.assertions.api.Assertions.assertThat
import org.junit.Test
class LenientTest {
@Test fun testLenientSerializerTrue() {
val testHelper = JsonTestHelper()
val serialized = testH... | apache-2.0 | b9f0433a9adac177e8e55473e210c0aa | 35.806452 | 92 | 0.679229 | 4.600806 | false | true | false | false |
Goyatuzo/LurkerBot | plyd/plyd-core/src/main/kotlin/com/lurkerbot/core/response/RecentlyPlayed.kt | 1 | 1471 | package com.lurkerbot.core.response
import com.lurkerbot.core.gameTime.TimeRecord
import java.time.Duration
import java.time.LocalDateTime
@kotlinx.serialization.Serializable
data class RecentlyPlayed(
val gameName: String,
val gameDetail: String?,
val gameState: String?,
val smallAssetText: String?,
... | apache-2.0 | 43c004fac72950d645f5340e79d351d6 | 34.02381 | 88 | 0.575119 | 4.870861 | false | false | false | false |
AlexandrDrinov/kotlin-koans-edu | src/ii_collections/_22_Fold_.kt | 1 | 530 | package ii_collections
fun example9() {
val result = listOf(1, 2, 3, 4).fold(1, { partResult, element -> element * partResult })
result == 24
}
// The same as
fun whatFoldDoes(): Int {
var result = 1
listOf(1, 2, 3, 4).forEach { element -> result = element * result}
return result
}
fun Shop.getSe... | mit | cf0aa86b756967b1c16bca6cda600be4 | 28.444444 | 92 | 0.664151 | 3.81295 | false | false | false | false |
EMResearch/EvoMaster | e2e-tests/spring-rest-openapi-v3/src/main/kotlin/com/foo/rest/examples/spring/openapi/v3/wiremock/jsonarray/WmJsonArrayRest.kt | 1 | 1207 | package com.foo.rest.examples.spring.openapi.v3.wiremock.jsonarray
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bin... | lgpl-3.0 | f3b953baa6af8388937cab856723cc02 | 31.648649 | 87 | 0.67937 | 4.22028 | false | false | false | false |
AndroidX/constraintlayout | projects/ComposeConstraintLayout/dsl-verification/src/main/java/com/example/dsl_verification/constraint/Rtl.kt | 2 | 2802 | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | apache-2.0 | 87beb2ffe20b113869ca1af8a13ba24a | 34.481013 | 82 | 0.665953 | 4.765306 | false | false | false | false |
RP-Kit/RPKit | bukkit/rpk-auctions-bukkit/src/main/kotlin/com/rpkit/auctions/bukkit/listener/SignChangeListener.kt | 1 | 3774 | /*
* Copyright 2021 Ren 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 in w... | apache-2.0 | b3dbf9955435489c93bf23ba1f7d03d8 | 42.37931 | 117 | 0.550609 | 5.32299 | false | false | false | false |
google/summit-ast | src/main/java/com/google/summit/ast/traversal/DfsWalker.kt | 1 | 4042 | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | apache-2.0 | 55e941eb43e80c4bbfbcd99120b6e28f | 36.775701 | 100 | 0.688273 | 3.958864 | false | false | false | false |
YiiGuxing/TranslationPlugin | src/main/kotlin/cn/yiiguxing/plugin/translate/action/TranslateAction.kt | 1 | 4548 | package cn.yiiguxing.plugin.translate.action
import cn.yiiguxing.plugin.translate.service.TranslationUIManager
import cn.yiiguxing.plugin.translate.ui.BalloonPositionTracker
import cn.yiiguxing.plugin.translate.util.SelectionMode
import cn.yiiguxing.plugin.translate.util.createCaretRangeMarker
import cn.yiiguxing.plug... | mit | 20b538556dc4b42c6edcfb3d1212e84f | 39.6 | 107 | 0.677788 | 5.06924 | false | false | false | false |
danirod/rectball | app/src/main/java/es/danirod/rectball/scene2d/input/DragBoardSelectionListener.kt | 1 | 2349 | package es.danirod.rectball.scene2d.input
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.scenes.scene2d.InputEvent
import com.badlogic.gdx.scenes.scene2d.InputListener
import es.danirod.rectball.model.Bounds
import es.danirod.rectball.model.Coordinate
import es.danirod.rectball.scene2d.game.BallActor
i... | gpl-3.0 | 0917d12fcca6a11e60d8fbb0b617f139 | 28.746835 | 104 | 0.604513 | 3.857143 | false | false | false | false |
a642500/Ybook | app/src/main/kotlin/com/ybook/app/ui/detail/BookDetailActivity.kt | 1 | 8505 | /*
Copyright 2015 Carlos
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | apache-2.0 | 682a0b6f413d140b6845ecdc7a81897e | 41.53 | 203 | 0.669371 | 4.271723 | false | false | false | false |
LorittaBot/Loritta | discord/loritta-bot-common/src/main/kotlin/net/perfectdreams/loritta/cinnamon/discord/interactions/vanilla/discord/RoleInfoExecutor.kt | 1 | 5312 | package net.perfectdreams.loritta.cinnamon.discord.interactions.vanilla.discord
import dev.kord.common.Color
import dev.kord.rest.Image
import net.perfectdreams.discordinteraktions.common.builder.message.actionRow
import net.perfectdreams.discordinteraktions.common.builder.message.embed
import net.perfectdreams.discor... | agpl-3.0 | 601e337aac97a1f59c3eddfb868552c4 | 41.846774 | 130 | 0.610316 | 4.751342 | false | false | false | false |
simonorono/pradera_baja | asistencia/src/main/kotlin/pb/asistencia/controller/Control.kt | 1 | 2885 | /*
* Copyright 2016 Simón Oroñ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 agreed to ... | apache-2.0 | f8789c5b62ef5afa402e92e563a31f8b | 24.289474 | 75 | 0.579951 | 4.100996 | false | false | false | false |
sampsonjoliver/Firestarter | app/src/main/java/com/sampsonjoliver/firestarter/utils/KotlinUtils.kt | 1 | 3666 | package com.sampsonjoliver.firestarter.utils
import android.content.Context
import android.location.Location
import android.os.Handler
import android.os.SystemClock
import android.support.annotation.LayoutRes
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.... | apache-2.0 | 7e89aa73ff96c63d5dbb607582268a77 | 32.036036 | 114 | 0.694763 | 4.059801 | false | false | false | false |
JetBrains/resharper-unity | rider/src/main/kotlin/com/jetbrains/rider/plugins/unity/toolWindow/log/UnityLogPanelToolbarBuilder.kt | 1 | 5457 | package com.jetbrains.rider.plugins.unity.toolWindow.log
import com.intellij.icons.AllIcons
import com.intellij.openapi.actionSystem.*
import com.jetbrains.rider.plugins.unity.UnityBundle
import com.jetbrains.rider.plugins.unity.model.LogEventMode
import com.jetbrains.rider.plugins.unity.model.LogEventType
import com.... | apache-2.0 | 416c67f82c3db4d43bdd48f55f6d322f | 48.171171 | 171 | 0.663368 | 4.70431 | false | false | false | false |
yschimke/oksocial | src/main/kotlin/com/baulsupp/okurl/security/CertificatePin.kt | 1 | 909 | package com.baulsupp.okurl.security
import com.baulsupp.oksocial.output.UsageException
import okhttp3.CertificatePinner
class CertificatePin(patternAndPin: String) {
val pattern: String
private val pin: String?
init {
val parts = patternAndPin.split(":".toRegex(), 2).toTypedArray()
pattern = parts[0]
... | apache-2.0 | 9a79f1f00cba5e5f4570af4d17174833 | 21.725 | 79 | 0.658966 | 4.208333 | false | false | false | false |
EyeSeeTea/QAApp | app/src/main/java/org/eyeseetea/malariacare/presentation/bugs/BugReport.kt | 1 | 1133 | package org.eyeseetea.malariacare.presentation.bugs
import android.content.Context
import android.util.Log
import com.google.firebase.crashlytics.FirebaseCrashlytics
import org.eyeseetea.malariacare.utils.AUtils.getCommitHash
private const val gitHashKey: String = "gitHash"
private const val serverKey: String = "serv... | gpl-3.0 | a465d7ecb2f3fddb3a974366d9216dec | 35.548387 | 74 | 0.764342 | 4.12 | false | false | false | false |
jdinkla/groovy-java-ray-tracer | src/main/kotlin/net/dinkla/raytracer/materials/Transparent.kt | 1 | 1727 | package net.dinkla.raytracer.materials
import net.dinkla.raytracer.colors.Color
import net.dinkla.raytracer.hits.Shade
import net.dinkla.raytracer.brdf.PerfectSpecular
import net.dinkla.raytracer.btdf.PerfectTransmitter
import net.dinkla.raytracer.math.Ray
import net.dinkla.raytracer.worlds.World
class Transparent :... | apache-2.0 | 5cea2c6604f62fe95435140f5a2eee5d | 27.783333 | 69 | 0.610886 | 3.481855 | false | false | false | false |
AdityaAnand1/Morphing-Material-Dialogs | library/src/main/java/com/adityaanand/morphdialog/morphutil/MorphDrawable.kt | 1 | 2556 | package com.adityaanand.morphdialog.morphutil
import android.annotation.TargetApi
import android.graphics.Canvas
import android.graphics.ColorFilter
import android.graphics.Outline
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.os.Build
import android.util.Property
import androi... | mit | 27ac4a7e910dabc1163c83bc1f56c0f1 | 27.4 | 136 | 0.643975 | 4.638838 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.