path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Essays/Testability/PacMan/src/test/kotlin/palbp/laboratory/essays/testability/pacman/view/PointTests.kt | palbp | 463,200,783 | false | {"Kotlin": 793883, "C": 16710, "Assembly": 891, "Dockerfile": 610, "Swift": 594, "Makefile": 383} | package palbp.laboratory.essays.testability.pacman.view
import org.junit.jupiter.api.assertThrows
import kotlin.test.Test
class PointTests {
@Test
fun `points must have non-negative x values`() {
assertThrows<IllegalArgumentException> {
Point(x = -1, y = 0)
}
}
@Test
f... | 1 | Kotlin | 0 | 5 | 9067753258a6a71bcd79cd59401edd58df66db71 | 468 | laboratory | MIT License |
android/plugin/src/main/java/com/opensource/legosdk/plugin/brightness/LGOBrightness.kt | LEGO-SDK | 107,534,219 | false | {"Objective-C": 392172, "C": 383803, "JavaScript": 11380, "Shell": 9951, "C++": 5194, "Kotlin": 2952, "Java": 2349, "HTML": 1594, "Ruby": 591} | package com.opensource.legosdk.plugin.brightness
import com.opensource.legosdk.core.*
import org.json.JSONObject
class LGOBrightness: LGOModule() {
override fun buildWithJSONObject(obj: JSONObject, context: LGORequestContext): LGORequestable? {
val request = LGOBrightnessRequest(context)
request.... | 0 | Objective-C | 0 | 0 | 440cf6882229cc838082b297bf7e0ba8772b4143 | 431 | Plugin-Brightness | Apache License 2.0 |
ontrack-ui-graphql/src/main/java/net/nemerosa/ontrack/graphql/schema/links/AbstractGQLGraphFieldContributor.kt | nemerosa | 19,351,480 | false | null | package net.nemerosa.ontrack.graphql.schema.links
import graphql.schema.GraphQLFieldDefinition
import graphql.schema.GraphQLNonNull
import net.nemerosa.ontrack.graphql.schema.GQLProjectEntityFieldContributor
import net.nemerosa.ontrack.graphql.support.nullableOutputType
import net.nemerosa.ontrack.model.links.BranchLi... | 57 | null | 27 | 97 | 7c71a3047401e088ba0c6d43aa3a96422024857f | 2,410 | ontrack | MIT License |
app-extensions/app-configuration/src/main/java/com/kaleyra/app_configuration/ui/ViewFinderView.kt | Bandyer | 153,806,014 | false | {"Kotlin": 231153, "Java": 91909} | /*
* Copyright 2022 Kaleyra @ https://www.kaleyra.com
*
* 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 appli... | 1 | Kotlin | 4 | 13 | 76ab8e228721504ce874c007b4815446888480e5 | 9,754 | Bandyer-Android-SDK | Apache License 2.0 |
src/commonMain/kotlin/magneton/observable/ObservableValue.kt | DaanVandenBosch | 180,017,293 | false | null | package magneton.observable
import kotlin.reflect.KProperty
class ObservableValue<T>(
private var value: T
) : Observable<T> {
override val derivations: MutableList<Derivation> = mutableListOf()
override var lastActionRunId: Int = -1
override fun get(): T {
reportObserved()
return... | 0 | Kotlin | 0 | 16 | ff2d0cfb12db2173bdffb6bec689ddfd092c191d | 737 | magneton | MIT License |
RetenoSdkCore/src/main/java/com/reteno/core/data/remote/model/iam/displayrules/frequency/FrequencyRuleValidator.kt | reteno-com | 545,381,514 | false | {"Kotlin": 1371803, "Java": 161863, "HTML": 17807, "Shell": 379} | package com.reteno.core.data.remote.model.iam.displayrules.frequency
import com.reteno.core.data.remote.model.iam.message.InAppMessage
class FrequencyRuleValidator {
fun checkInAppMatchesFrequencyRules(
inAppMessage: InAppMessage,
sessionStartTimestamp: Long,
showingOnAppStart: Boolean = f... | 1 | Kotlin | 2 | 1 | f93f726cb59992dd28abb35ba85da0c512a46ddf | 3,094 | reteno-mobile-android-sdk | MIT License |
app/src/main/java/com/chisw/iotdemo/ui/main/MainActivity.kt | chiswandroid | 142,880,512 | false | {"Java": 904683, "Kotlin": 101882, "C++": 3998, "Makefile": 343} | /*
* Copyright (C) 2018 CHI Software 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... | 1 | Java | 1 | 1 | a8be65de4d66b63533c7e979b1be8c2990f54553 | 6,064 | IOTdemo | Apache License 2.0 |
android/app/src/main/kotlin/com/ascentic_assignment/centic_bids/MainActivity.kt | tharinduprabath | 382,564,796 | false | {"Dart": 217037, "Swift": 404, "Kotlin": 140, "Objective-C": 38} | package com.ascentic_assignment.centic_bids
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | 584c08c90369153bab73233597bc3f7a2428fd23 | 140 | CenticBids-Mobile | MIT License |
src/main/kotlin/com/github/szymon2603/fixedlengthrecordseditor/NoStripTrailingSpacesFilterFactory.kt | Szymon2603 | 288,003,238 | false | null | package com.github.szymon2603.fixedlengthrecordseditor
import com.github.szymon2603.fixedlengthrecordseditor.filetypes.FixedLengthRecordsFileType
import com.intellij.openapi.editor.Document
import com.intellij.openapi.editor.StripTrailingSpacesFilter
import com.intellij.openapi.editor.StripTrailingSpacesFilterFactory
... | 5 | Kotlin | 0 | 0 | 50b35e9ce2a26154df820f597b935699b37a4414 | 1,144 | fixed-length-records-editor | Apache License 2.0 |
solutions/src/test/kotlin/y2021/Y2021D09Test.kt | Jadarma | 324,646,170 | false | null | package y2021
import io.github.jadarma.aoc.test.AdventSpec
import io.kotest.core.spec.DisplayName
@DisplayName("Y2021D09 Smoke Basin")
class Y2021D09Test : AdventSpec(Y2021D09(), {
val exampleInput = """
2199943210
3987894921
9856789892
8767896789
9899965678
""".trimInd... | 0 | Kotlin | 0 | 3 | 3f36fc11261dee5583947dc1e1fbaa1e7d656b47 | 421 | advent-of-code-kotlin | MIT License |
pman_android/app/src/main/java/com/sz/pman/EntityView.kt | sergz72 | 695,116,874 | false | {"Rust": 185966, "Kotlin": 126008, "Swift": 47326, "Shell": 1343} | package com.sz.pman
import android.net.Uri
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layo... | 0 | Rust | 0 | 0 | 7e92e487cf7cd8ef6c2cad7938c0fd710883780a | 9,812 | pman_rust | MIT License |
app/src/main/kotlin/com/github/hiking93/m3demo/shared/FragmentExtensions.kt | Dcard | 539,924,454 | false | {"Kotlin": 51532} | package com.github.hiking93.m3demo.shared
import android.os.Bundle
import androidx.fragment.app.Fragment
fun Fragment.putArguments(args: Bundle) {
arguments = (arguments ?: Bundle()).apply {
putAll(args)
}
} | 0 | Kotlin | 0 | 10 | ad01b40a6862c78a90813b721229c5b906433fb5 | 225 | material3-android-demo | Apache License 2.0 |
src/main/kotlin/kvmInternals/instructions/arithmetic/mod.kt | ChippyPlus | 850,474,357 | false | {"Kotlin": 74636} | package org.example.kvmInternals.instructions.arithmetic
import kvmInternals.instructions.arithmetic.Arithmetic
import org.example.data.registers.enumIdenifiers.ReturnRegisterType
import org.example.data.registers.enumIdenifiers.SuperRegisterType
import org.example.errors
import org.example.helpers.fullRegisterRead
im... | 0 | Kotlin | 0 | 1 | 86733d9aa14f896af295c1cc9b941d85a04d71a5 | 689 | MVM | MIT License |
rest/src/main/kotlin/org/flaxo/rest/SwaggerConfiguration.kt | tcibinan | 112,068,459 | false | null | package org.flaxo.rest
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import springfox.documentation.builders.PathSelectors
import springfox.documentation.builders.RequestHandlerSelectors
import springfox.documentation.spi.DocumentationType
import springf... | 30 | Kotlin | 6 | 9 | a745d82604737699699210267ad5d2aa552f92d8 | 744 | flaxo | Apache License 2.0 |
app/src/main/java/dev/sertan/android/paper/ui/main/MainViewModel.kt | scnplt | 385,908,880 | false | null | package dev.sertan.android.paper.ui.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sertan.android.paper.data.model.Note
import dev.sertan.android.paper.data.repo.NoteRepo
import dev.sertan.android.paper.data.repo.UserRepo
... | 0 | Kotlin | 0 | 0 | 8299ba3cca8ed6db04ab032345d514fe7928c981 | 1,906 | paper | MIT License |
library/src/test/kotlin/is/hth/opengrapher/MapTests.kt | hrafnthor | 598,508,368 | false | null | package `is`.hth.opengrapher
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.shouldBe
import `is`.hth.opengrapher.data.toGraph
import `is`.hth.opengrapher.model.*
import `is`.hth.opengrapher.tree.Node
import `is`.hth.opengrapher.tree.add
internal class MapTests : StringSpec({
val image1 = I... | 0 | Kotlin | 0 | 1 | a3211ea814f0a5d2393c80d84786c133e9f43884 | 8,052 | opengrapher | Apache License 2.0 |
app/src/main/java/com/example/evgeniy/facebot_client_android/extensions.kt | gen1nya | 128,521,025 | false | null | package com.example.evgeniy.facebot_client_android
import android.app.Activity
import android.app.Fragment
/**
* @author evgeniy
* @since 07.04.18.
*/
/**
* Расширение для перехода на новый фрагмент
*
* Принимает:
* [fragment] - новый фрагмент
* [placeHolder] - ID framelayout'а в который будет загружен фрагме... | 1 | null | 1 | 1 | ffaac5939a2dbd4cc389943fea14b0fc7447c721 | 1,721 | faceboot-android | MIT License |
app/src/main/java/cn/wthee/pcrtool/database/AppTweetDatabase.kt | wthee | 277,015,110 | false | {"Kotlin": 1656782} | package cn.wthee.pcrtool.database
import android.annotation.SuppressLint
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import cn.wthee.pcrtool.MyApplication
import cn.wthee.pcrtool.data.db.dao.TweetDao
import cn.wthee.pcrtool.data.db.entity.TweetData
import cn.wthee.pcrtool.... | 1 | Kotlin | 5 | 90 | c60547933372fbbc595da93c7b0ea30319bbf124 | 1,256 | pcr-tool | Apache License 2.0 |
features/rates/src/main/kotlin/com/dmdiaz/currency/features/rates/RateAdapter.kt | dmdiaz4 | 338,934,852 | false | {"Kotlin": 130746} | /*
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 1 | 9decfab6093c5405b574ad4b191f26585a56065e | 3,216 | Currency | MIT License |
src/main/kotlin/com/stepanov/bbf/bugfinder/AbiComparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/FieldChecker.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | package org.jetbrains.kotlin.abicmp.checkers
import org.jetbrains.kotlin.abicmp.reports.FieldReport
import org.objectweb.asm.tree.FieldNode
import kotlin.reflect.KProperty1
interface FieldChecker : Checker {
fun check(field1: FieldNode, field2: FieldNode, report: FieldReport)
}
inline fun <T> fieldPropertyChecke... | 1 | null | 1 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 1,207 | bbfgradle | Apache License 2.0 |
app/src/main/java/com/example/newscast/ui/ViewModelFactory.kt | gerin98 | 270,440,269 | false | null | package com.example.newscast.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.newscast.ui.browse.BrowseViewModel
import com.example.newscast.ui.favourite.FavouritesViewModel
import com.example.newscast.ui.newspaper.NewsPaperViewModel
import com.example.newscast.ui.s... | 0 | Kotlin | 2 | 2 | 28cb8c203869526ce63e86edc033b314d2536155 | 996 | NewsCast | MIT License |
Readable/src/main/java/com/iammert/library/readablebottombar/BottomBarItemConfig.kt | Arshianb | 324,984,324 | false | {"Java": 804332, "Kotlin": 34751} | package com.iammert.library.readablebottombar
import android.graphics.drawable.Drawable
data class BottomBarItemConfig(
val text: String,
val drawable: Drawable,
val index: Int
) | 1 | Java | 1 | 2 | d88d39f0e6a84447708c64b550a7a05db9f42ee0 | 192 | Meal-Like-Mom | MIT License |
test-utils/src/main/java/com/criteo/publisher/MraidUtil.kt | criteo | 276,380,681 | false | {"Java": 1090077, "Kotlin": 899121, "Groovy": 5188} | /*
* Copyright 2020 Criteo
*
* 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 ... | 4 | Java | 8 | 12 | 8295b0029e21101b85f0fcdfa2f53a6cf3259aa4 | 1,455 | android-publisher-sdk | Apache License 2.0 |
core/src/commonMain/kotlin/dev/lennartegb/vec2compose/core/commands/HorizontalLineTo.kt | LennartEgb | 520,006,256 | false | {"Kotlin": 194622, "Shell": 892, "HTML": 636} | package dev.lennartegb.vec2compose.core.commands
/**
* Horizontal line to command indicated by h/H
*/
data object HorizontalLineTo : CommandSpec {
override val name: String = "horizontalLineTo"
override val argsCount: Int = 1
override fun getArguments(args: List<String>): String = "${args[0]}f"
}
| 1 | Kotlin | 4 | 29 | cd3e0bf9b4733ef0cffb92e2a2050828fcc1e905 | 313 | vec2compose | MIT License |
app/src/main/java/com/fridaytech/dex/presentation/orders/orderbook/OrderBookFragment.kt | 5daytech | 198,758,400 | false | null | package com.fridaytech.dex.presentation.orders.orderbook
import android.os.Bundle
import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.LinearLayoutManager
import com.fridaytech.dex.R
import com.fridaytech.dex.core.ui.CoreFragment
i... | 0 | Kotlin | 13 | 21 | 50200c97a9a7a456b588cf132fdb901141efb1d1 | 3,819 | udex-app-android | MIT License |
katabase/app/src/main/java/it/kenble/katabase/base/BaseActivity.kt | fctaddia | 309,387,512 | false | null | package it.kenble.katabase.base
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
open class BaseActivity: AppCompatActivity() {
internal fun showToast(message: String) {
Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
}
} | 0 | Kotlin | 0 | 1 | dda1c1e84a00e7e1e9f87eda262f4a67ab5a5d30 | 277 | KataBase | MIT License |
app/src/main/java/me/ranko/autodark/ui/DarkWallpaperFragment.kt | 0ranko0P | 208,796,965 | false | null | package me.ranko.autodark.ui
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.*
import android.widg... | 6 | null | 4 | 74 | c59bae15f3e89b5f768d71d937539b498f405e9a | 21,337 | AutoDark | MIT License |
src/main/kotlin/turfkt/Length.kt | hudsonb | 172,511,286 | false | null | package turfkt
import geojsonkt.*
/**
* Calculates the length of the feature/geometry in the specified units.
*
* Length is calculated as follows:
* - [Point] 0.0
* - [MultiPoint] 0.0
* - [LineString] length of the line string
* - [MultiLineString] combined length of all line strings
* - [Polygon] length of t... | 19 | Kotlin | 2 | 1 | e39bf4f24366bc569129a3b3b2239c1909f6b7f1 | 1,428 | turf.kt | MIT License |
src/main/kotlin/com/village/mod/entity/village/TaskManager.kt | jlzht | 742,617,634 | false | {"Kotlin": 140399, "Java": 5721} | package com.village.mod.entity.village
import com.village.mod.village.villager.Task
import net.minecraft.util.math.BlockPos
import com.village.mod.LOGGER
class TaskManager {
private var task: Task = Task.NONE
fun get(): Task {
return task
}
fun set(t: Task) {
task = t
}
}
| 0 | Kotlin | 0 | 0 | af4af4f4328f240c745ff40b1290b0cace405afa | 314 | village | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/precopia/david/lists/view/authentication/AuthView.kt | DavidPrecopia | 150,194,957 | false | null | package com.precopia.david.lists.view.authentication
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation... | 1 | Kotlin | 2 | 4 | 1f20908547972ac55036d1f804f5e93906aeb509 | 4,128 | Lists | Apache License 2.0 |
src/Application.kt | fstien | 317,690,419 | false | null | package com.github.fstien
import com.fasterxml.jackson.databind.SerializationFeature
import com.zopa.ktor.opentracing.OpenTracingServer
import com.zopa.ktor.opentracing.ThreadContextElementScopeManager
import io.jaegertracing.Configuration
import io.jaegertracing.internal.samplers.ConstSampler
import io.ktor.applicati... | 0 | Kotlin | 0 | 0 | 0329735eaafea35f7c70c258dedea0a16ea3ffbd | 2,161 | Exposed-OpenTracing-example | MIT License |
shared/src/jvmMain/kotlin/com/joelkanyi/focusbloom/platform/MultiplatformSettingsWrapper.jvm.kt | joelkanyi | 680,275,879 | false | null | /*
* Copyright 2023 Joel Kanyi.
*
* 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... | 10 | null | 52 | 421 | a8974cc2e30466f2696c471dae7fa86257fb8b3d | 957 | FocusBloom | Apache License 2.0 |
crashreporter/src/main/java/com/avneesh/crashreporter/utils/CrashUtil.kt | AvneeshGupta1 | 214,762,974 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 3, "XML": 23, "Kotlin": 19} | package com.avneesh.crashreporter.utils
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Context.NOTIFICATION_SERVICE
import android.os.Build
import android.text.TextUtils
import android.util.Log
import ... | 0 | Kotlin | 0 | 0 | b2afdd6fb5d893e612f2e4591d8ffe3bb4aecffc | 5,223 | CrashNotes | Apache License 2.0 |
compose/ui/ui-graphics/src/androidAndroidTest/kotlin/androidx/compose/ui/graphics/OutlineTest.kt | RikkaW | 389,105,112 | false | null | /*
* 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... | 24 | null | 929 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,799 | androidx | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/codepipeline/RuleDeclarationPropertyDsl.kt | F43nd1r | 643,016,506 | false | {"Kotlin": 5401358} | package com.faendir.awscdkkt.generated.services.codepipeline
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.codepipeline.CfnPipeline
@Generated
public fun buildRuleDeclarationProperty(initializer: @AwsCdkDsl
CfnPipeline.RuleDecla... | 1 | Kotlin | 0 | 4 | 4828234cc20f6fa5d0545958f0a290790d952d8c | 480 | aws-cdk-kt | Apache License 2.0 |
src/main/java/com/solarexsoft/designpatterns/pattern/structural/decorator/Decorator.kt | flyfire | 207,770,091 | false | null | package com.solarexsoft.designpatterns.pattern.structural.decorator
/**
* Created by houruhou on 2019/9/16.
* Desc:
*/
abstract class ABatterCake {
abstract fun getDesc(): String
abstract fun getCost(): Int
}
open class AbstractDecorator public constructor(open var aBatterCake: ABatterCake): ABatterCake() ... | 0 | Kotlin | 0 | 0 | 22f57b6d62fba1ded7b180ccd5e2c1b42fe15964 | 1,626 | DesignPatternsLearning | MIT License |
app/src/main/java/com/dinhlam/sharebox/modelview/sharelist/ShareListTextModelView.kt | dinhlamvn | 532,200,939 | false | null | package com.dinhlam.sharebox.modelview.sharelist
import android.view.View
import com.dinhlam.sharebox.R
import com.dinhlam.sharebox.base.BaseListAdapter
import com.dinhlam.sharebox.base.BaseSpanSizeLookup
import com.dinhlam.sharebox.databinding.ModelViewShareListTextBinding
import com.dinhlam.sharebox.extensions.forma... | 0 | Kotlin | 0 | 0 | 6d3899d4b7220951d247c35d7c95248b196a30b2 | 2,010 | sharebox | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/createFromUsage/createFunction/call/typeArguments/classMemberWithReceiverArg.kt | JetBrains | 2,489,216 | false | null | // "Create member function 'B.foo'" "true"
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.createFromUsage.createCallable.CreateCallableFromUsageFix
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.quickFixes.createFromUsage.CreateKotlinCallableAction
class B<T>(val t: T) {
}
class A<T>(val... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 411 | intellij-community | Apache License 2.0 |
app/src/main/java/com/ucsm/tylersai/amsteacher/ui/fragments/AddTeacherFragmentDean.kt | hanlinag | 290,556,091 | false | null | package com.ucsm.tylersai.amsteacher
import android.app.ProgressDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ListView
import android.widge... | 0 | null | 2 | 4 | 2ea4e1408c3b74d89f4a9594a6e81994715f958b | 3,846 | ams-teacher | MIT License |
compiler/testData/resolvedCalls/implicitReceiverIsExtensionReceiver.kt | JakeWharton | 99,388,807 | false | null | class A {}
fun A.foo() {}
fun A.bar() {
<caret>foo()
}
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 61 | kotlin | Apache License 2.0 |
jhip60video/kotlin-app/src/main/kotlin/com/mycompany/myapp/config/LoggingAspectConfiguration.kt | PacktPublishing | 181,413,961 | false | null | package com.mycompany.myapp.config
import com.mycompany.myapp.aop.logging.LoggingAspect
import io.github.jhipster.config.JHipsterConstants
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.EnableAspectJAutoProx... | 57 | null | 4 | 2 | 29988104aef5240a44686aa51f64e8390c58aabb | 668 | Hands-On-JHipster-Powerful-Web-Apps-in-Spring-Boot-and-Angular | MIT License |
src/main/kotlin/io/github/smiley4/ktorswaggerui/spec/openapi/ExampleBuilder.kt | SMILEY4 | 526,907,299 | false | {"Kotlin": 296072} | package io.github.smiley4.ktorswaggerui.spec.openapi
import io.github.smiley4.ktorswaggerui.SwaggerUIPluginConfig
import io.github.smiley4.ktorswaggerui.dsl.OpenApiExample
import io.github.smiley4.ktorswaggerui.dsl.SchemaType
import io.swagger.v3.oas.models.examples.Example
class ExampleBuilder(
private val confi... | 4 | Kotlin | 18 | 83 | f9cd6261b949cec9b8de1722706138e2a81bc522 | 772 | ktor-swagger-ui | Apache License 2.0 |
app/src/main/java/ca/on/hojat/gamenews/core/data/api/igdb/games/entities/ApiCompany.kt | hojat72elect | 574,228,468 | false | null | package ca.on.hojat.gamenews.core.data.api.igdb.games.entities
import ca.on.hojat.gamenews.core.data.api.igdbcalypse.serialization.annotations.Apicalypse
import ca.on.hojat.gamenews.core.data.api.igdbcalypse.serialization.annotations.ApicalypseClass
import kotlinx.serialization.SerialName
import kotlinx.serialization.... | 0 | Kotlin | 8 | 4 | b1c07551e90790ee3d273bc4c0ad3a5f97f71202 | 1,066 | GameHub | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/oauth2server/maintain/RolesServiceTest.kt | ministryofjustice | 118,512,431 | false | {"Kotlin": 2265678, "HTML": 206930, "Shell": 16327, "CSS": 11834, "Dockerfile": 1459, "JavaScript": 439, "Procfile": 74} | package uk.gov.justice.digital.hmpps.oauth2server.maintain
import com.microsoft.applicationinsights.TelemetryClient
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import org.mockito.Argume... | 5 | Kotlin | 4 | 8 | b942eee399e28a96129a6fe993348e9d6e157fa8 | 18,879 | hmpps-auth | MIT License |
src/main/kotlin/com/polydus/codeformatter/model/FormSettingsInput.kt | Polydus | 353,436,722 | false | null | package com.polydus.codeformatter.model
class FormSettingsInput() {
var content: String? = null
var setting: String? = null
var indentation: String? = null
var encodetype: String? = null
var decodetype: String? = null
var minify: String? = null
var xmlToJson: String? = null
var xmlR... | 0 | Kotlin | 0 | 0 | a2514d49502682000733de471de56c6049ded3e7 | 665 | code-formatter | MIT License |
magellan-library/src/test/java/com/wealthfront/magellan/navigation/LinearNavigatorTest.kt | ydxb7 | 414,727,990 | true | {"Kotlin": 170555, "Java": 34936} | package com.wealthfront.magellan.navigation
import android.app.Activity
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import com.google.common.truth.Truth.assertThat
import com.wealthfront.magellan.Direction.FORWARD
import com.wealthfront.magellan.ScreenContainer
import com.wealthfront.magel... | 0 | null | 0 | 0 | 673ed1b70571fa77f62a148d9180d3d89c7fc565 | 6,889 | magellan | Apache License 2.0 |
enro-core/src/main/java/dev/enro/core/NavigationHandle.kt | isaac-udy | 256,179,010 | false | null | package dev.enro.core
import android.os.Bundle
import android.os.Looper
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import dev.enro.core.container.NavigationContainer
import dev.enro.core.controller.EnroDependencyScope
import dev.enro.core.contr... | 13 | Kotlin | 13 | 217 | 84dbdbd4b6dda314629353b06db6491863431a91 | 5,706 | Enro | Apache License 2.0 |
src/main/java/nablarch/intellij/plugin/inspector/BlacklistJavaApiLambdaInspector.kt | nablarch | 76,304,789 | false | {"Gradle": 2, "Shell": 1, "Ignore List": 1, "Batchfile": 1, "Text": 1, "Markdown": 2, "Java Properties": 1, "Kotlin": 15, "XML": 1, "HTML": 2, "Java": 27} | package nablarch.intellij.plugin.inspector
import com.intellij.codeInspection.*
import com.intellij.psi.*
import com.intellij.psi.util.*
/**
* ブラックリストに定義されたクラスのインスタンス生成を検出するクラス。
*
* @author <NAME>
*/
class BlacklistJavaApiLambdaInspector(
private val expression: PsiLambdaExpression?,
private val holder: P... | 0 | Kotlin | 1 | 1 | a4f5a8281da54603f039ac8d211ac472685c5735 | 653 | nablarch-intellij-plugin | Apache License 2.0 |
app/src/main/kotlin/id/android/anvil/home/data/HomeDatasource.kt | budioktaviyan | 289,841,025 | false | null | package id.android.anvil.home.data
import io.reactivex.rxjava3.core.Single
import retrofit2.http.GET
import retrofit2.http.Query
interface HomeDatasource {
@GET("/3/movie/now_playing")
fun nowPlaying(
@Query("api_key")
apiKey: String
): Single<HomeResponse>
} | 0 | Kotlin | 1 | 8 | 95b229edb583a27b2a25d779a8b3ea7e9aa81a13 | 276 | anvil-sample | MIT License |
ndarray/ndarray-webgpu/src/commonMain/kotlin/io/kinference/ndarray/functions/activations/SoftmaxFunction.kt | isomethane | 591,976,225 | false | null | package io.kinference.ndarray.functions.activations
import io.kinference.ndarray.arrays.*
import io.kinference.ndarray.extensions.indexAxis
import io.kinference.ndarray.functions.NDArrayFunction
import io.kinference.ndarray.functions.math.ArithmeticOperator
import io.kinference.ndarray.functions.math.SubOperator
impor... | 0 | Kotlin | 0 | 0 | 3056bc4ebcd03a86d0ee9ef093cdac81491325b2 | 2,138 | kinference | Apache License 2.0 |
app/src/main/java/com/spaceapp/data/datasource/remote/location/hms/LocationDataSource.kt | AhmetOcak | 552,274,999 | false | {"Kotlin": 365290} | package com.spaceapp.data.datasource.remote.location.hms
import android.Manifest
import android.app.Application
import android.content.Context
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import androidx.core.content.ContextCompat
import com.huawei.h... | 0 | Kotlin | 1 | 2 | f8a8c6d90874fc70566cdbd310231b5ec41baad3 | 2,359 | Explore-Universe | MIT License |
casa-do-codigo-grpc/src/main/kotlin/br/com/zup/handler/ErrorAroundHandler.kt | LMoraes7 | 368,206,654 | true | {"Kotlin": 109411} | package br.com.zup.handler
import io.micronaut.aop.Around
import kotlin.annotation.AnnotationRetention.*
import kotlin.annotation.AnnotationTarget.*
@MustBeDocumented
@Target(CLASS)
@Retention(RUNTIME)
@Around
annotation class ErrorAroundHandler
| 0 | Kotlin | 0 | 0 | f652c9afde963bd64c51dcecc78e41c10562d4b9 | 248 | orange-talents-05-template-casa-do-codigo | Apache License 2.0 |
data/users/network/src/commonMain/kotlin/dev/burnoo/demo/listapp/data/users/network/api/UsersApi.kt | burnoo | 568,089,196 | false | {"Kotlin": 112052, "HTML": 367} | package dev.burnoo.demo.listapp.data.users.network.api
import com.github.michaelbull.result.Result
import com.github.michaelbull.result.mapError
import com.github.michaelbull.result.runCatching
import dev.burnoo.demo.listapp.data.users.network.UsersNetworkDataSource
import dev.burnoo.demo.listapp.data.users.network.Us... | 12 | Kotlin | 0 | 1 | ac5386bf2e2166b749c023faba51c88fb612c56b | 2,317 | DemoListApp | MIT License |
app/src/main/java/com/antonicastejon/cryptodata/CryptoApplication.kt | liemvo | 190,676,368 | true | {"Kotlin": 37188} | package com.antonicastejon.cryptodata
import android.app.Activity
import android.app.Application
import com.antonicastejon.cryptodata.di.DaggerApplicationComponent
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector
import javax.inject.Inject... | 0 | Kotlin | 0 | 0 | 1da41badfdbec9fb9712963ee73c1783ee6c8088 | 708 | cryptodata | Apache License 2.0 |
src/test/kotlin/org/bloqly/machine/service/GenesisServiceTest.kt | abaracadaor | 147,365,768 | false | {"Gradle": 1, "Shell": 9, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "INI": 1, "YAML": 7, "JSON": 3, "JavaScript": 6, "Kotlin": 129, "Java": 4, "XML": 1, "SVG": 1} | package org.bloqly.machine.service
import org.bloqly.machine.Application
import org.bloqly.machine.test.BaseTest
import org.bloqly.machine.util.ObjectUtils
import org.bloqly.machine.util.decode16
import org.bloqly.machine.vo.genesis.Genesis
import org.junit.Assert.assertEquals
import org.junit.Test
import org.junit.ru... | 1 | null | 1 | 1 | cfe046f6d93ebc51d12b2fecdbf0215181152a03 | 1,404 | bloqly | MIT License |
app/src/main/java/com/sebastijanzindl/galore/ui/theme/Color.kt | m1thrandir225 | 743,270,603 | false | {"Kotlin": 154788} | package com.sebastijanzindl.galore.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF8A5022)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFFFDCC5)
val onPrimaryContainerLight = Color(0xFF301400)
val secondaryLight = Color(0xFF755845)
val onSecondaryLight = C... | 0 | Kotlin | 0 | 0 | 2313edd4a62ca0e58aee4777ed341254a691e53c | 10,904 | galore-android | MIT License |
src/test/kotlin/org/kgilmer/marconi/FileMatchingCompositeTest.kt | kgilmer | 121,460,625 | false | null | package org.kgilmer.marconi
import org.jaudiotagger.tag.FieldKey
import org.junit.Assert.assertTrue
import org.junit.Test
class FileMatchingCompositeTest {
data class TrackDescriptor(val albumArtist: String, val album: String, val title: String, val index: String, val trackArtist: String = albumArtist)
@Tes... | 0 | Kotlin | 0 | 0 | 5a443b2ba1f40c8f04af7647d5d96cb3451df1b3 | 2,211 | marconi | Apache License 2.0 |
buildSrc/src/main/kotlin/com/almarai/gradle/dependencies/BuildDependencies.kt | mohammed-uzair | 265,682,614 | false | null | package com.almarai.gradle.dependencies
const val APP_NAME = "Easy Pick"
//region Build Versions
const val APP_VERSION_MAJOR = 1
const val APP_VERSION_MINOR = 0
const val APP_VERSION_PATCH = 0
//DO NOT USE OR CHANGE
val APP_VERSION_CODE: Int = "$APP_VERSION_MAJOR$APP_VERSION_MINOR$APP_VERSION_PATCH".toInt()
const va... | 0 | Kotlin | 0 | 0 | 347b7efc7e454e12fd629944a07db128de730cb3 | 699 | almarai-easy-pick | Apache License 2.0 |
decoder/wasm/src/commonTest/kotlin/io/github/charlietap/chasm/decoder/wasm/decoder/type/memory/BinaryMemoryTypeDecoderTest.kt | CharlieTap | 743,980,037 | false | null | package io.github.charlietap.chasm.decoder.wasm.decoder.type.memory
import com.github.michaelbull.result.Ok
import io.github.charlietap.chasm.ast.type.Limits
import io.github.charlietap.chasm.ast.type.MemoryType
import io.github.charlietap.chasm.decoder.wasm.decoder.type.limits.LimitsDecoder
import io.github.charlieta... | 2 | null | 2 | 43 | addbd2285ab2c9a7f0c12bb0d9fd246241f59513 | 1,200 | chasm | Apache License 2.0 |
kotlinx-extensions-browser/src/main/kotlin/kotlinx/extensions/FontFaceSets.kt | aSoft-Ltd | 313,492,715 | false | null | package tz.co.asoft
import org.w3c.dom.Document
import kotlin.js.Promise
external interface FontFaceSet {
val ready: Promise<Any>
fun check(font: String): Boolean
}
inline val Document.fonts: FontFaceSet get() = asDynamic()["fonts"] | 0 | null | 1 | 1 | 29b07c97bd32a7a46c5c414ec97d61c1aa8fcd33 | 243 | kotlinx-extensions | MIT License |
kotlinx-extensions-browser/src/main/kotlin/kotlinx/extensions/FontFaceSets.kt | aSoft-Ltd | 313,492,715 | false | null | package tz.co.asoft
import org.w3c.dom.Document
import kotlin.js.Promise
external interface FontFaceSet {
val ready: Promise<Any>
fun check(font: String): Boolean
}
inline val Document.fonts: FontFaceSet get() = asDynamic()["fonts"] | 0 | null | 1 | 1 | 29b07c97bd32a7a46c5c414ec97d61c1aa8fcd33 | 243 | kotlinx-extensions | MIT License |
src/main/kotlin/com/atlassian/performance/tools/awsinfrastructure/api/hardware/M4ExtraLargeElastic.kt | atlassian | 172,857,587 | false | {"Kotlin": 209735, "Java": 343} | package com.atlassian.performance.tools.awsinfrastructure.api.hardware
import com.amazonaws.services.ec2.model.InstanceType
import com.atlassian.performance.tools.ssh.api.SshConnection
/**
* M4, XL, EBS storage.
*
* @since 2.7.0
*/
class M4ExtraLargeElastic : Computer() {
override val instanceType: InstanceT... | 9 | Kotlin | 32 | 7 | e91a93fae6a866abfcf4f89fa7f7b9a10d46220e | 495 | aws-infrastructure | Apache License 2.0 |
paradox-language-support/src/main/kotlin/com/windea/plugin/idea/paradox/localisation/editor/ParadoxLocalisationFindUsagesProvider.kt | fonata | 320,514,128 | true | {"Kotlin": 532553, "Lex": 41918, "HTML": 3712} | package com.windea.plugin.idea.paradox.localisation.editor
import com.intellij.lang.*
import com.intellij.lang.cacheBuilder.*
import com.intellij.lang.findUsages.*
import com.intellij.psi.*
import com.windea.plugin.idea.paradox.*
import com.windea.plugin.idea.paradox.localisation.psi.*
class ParadoxLocalisationFindUs... | 0 | Kotlin | 0 | 0 | edf37fb29407701d65749e76a70f73ff55614461 | 1,471 | Idea-Plugins | MIT License |
src/main/kotlin/care/better/platform/web/template/converter/flat/mapper/DvTimeToFlatMapper.kt | better-care | 343,549,109 | false | null | /* Copyright 2021 Better Ltd (www.better.care)
*
* 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 ... | 0 | Kotlin | 1 | 1 | 4aa47c5c598be6687dc2c095b1f7fcee49702a28 | 3,367 | web-template | Apache License 2.0 |
src/Day11.kt | mkfsn | 573,042,358 | false | null | fun main() {
data class Decision(val to: Int, val item: Long)
class Monkey(spec: List<String>) {
val id: Int
val items: MutableList<Long>
val operateFn: (Long) -> Long
val testFn: (Long) -> Boolean
val dividedBy: Long
val ifTrue: Int
val ifFalse: Int
... | 0 | Kotlin | 0 | 3 | 8c7bdd66f8550a82030127aa36c2a6a4262592cd | 3,279 | advent-of-code-kotlin-2022 | Apache License 2.0 |
app/src/main/java/com/humxa/pipdemo/presentation/view/HomeActivity.kt | humxamoghal | 752,617,016 | false | {"Kotlin": 13565} | package com.humxa.pipdemo.presentation.view
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.materia... | 0 | Kotlin | 0 | 0 | e08a8df1ce1de779a5aafbb0c5f41e07df73ec6a | 1,428 | pipdemo | Open LDAP Public License v2.2.1 |
protokt-runtime/src/jvmMain/kotlin/protokt/v1/OldToNewAdapter.kt | open-toast | 231,140,493 | false | {"Kotlin": 986017, "Shell": 346} | /*
* Copyright (c) 2023 Toast, 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 in ... | 11 | Kotlin | 12 | 128 | 0554c61ec6cca6547c9cf7574c7b21860ba0063d | 3,054 | protokt | Apache License 2.0 |
protocol/osrs-226/osrs-226-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/playerinfo/extendedinfo/PlayerChatEncoder.kt | blurite | 771,753,685 | false | {"Kotlin": 11331205} | package net.rsprot.protocol.game.outgoing.codec.playerinfo.extendedinfo
import io.netty.buffer.ByteBufAllocator
import net.rsprot.buffer.JagByteBuf
import net.rsprot.buffer.extensions.toJagByteBuf
import net.rsprot.compression.provider.HuffmanCodecProvider
import net.rsprot.protocol.common.game.outgoing.info.encoder.P... | 5 | Kotlin | 6 | 27 | d3849749f0787f9a538d2f8afc6b4b8d029e8143 | 1,812 | rsprot | MIT License |
app/src/main/java/com/example/cardnotify/models/Card.kt | yusuftalhaklc | 683,368,165 | false | null | package com.example.cardnotify.models
data class Card(
val id: Number,
val photo_url:String,
val title:String,
val description:String,
val gender:String,
val premium_card:Boolean,
val lock:Boolean
)
| 0 | Kotlin | 0 | 2 | b31d75bca15ba2fa063fab28200824c2abb440ea | 228 | jcompose-cardnotify | MIT License |
native/native.tests/tests/org/jetbrains/kotlin/konan/test/ManifestWritingTest.kt | JetBrains | 3,432,266 | false | {"Kotlin": 78963920, "Java": 6943075, "Swift": 4063829, "C": 2609498, "C++": 1947933, "Objective-C++": 170573, "JavaScript": 106044, "Python": 59695, "Shell": 32949, "Objective-C": 22132, "Lex": 21352, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2024 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.konan.test
import com.intellij.testFramework.TestDataPath
import org.jetbrains.k... | 184 | Kotlin | 5691 | 48,625 | bb25d2f8aa74406ff0af254b2388fd601525386a | 5,815 | kotlin | Apache License 2.0 |
demo/src/main/kotlin/ch/umb/curo/demo/CuroDemoApplication.kt | itsmefox | 419,787,291 | true | {"Kotlin": 347848} | package ch.umb.curo.demo
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
@SpringBootApplication
open class CuroDemoApplication : SpringBootServletInitializer() {
com... | 0 | null | 0 | 0 | 2c202b0bdbb2370a2c457d55b89caf0febea98d8 | 468 | curo | Apache License 2.0 |
sample/src/main/java/com/madrapps/sample/linegraph/LineGraph5.kt | Madrapps | 388,481,192 | false | null | package com.madrapps.sample.linegraph
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.m... | 7 | Kotlin | 8 | 89 | 4fde7d442002e7e57597cb5a904d978f57a1b2c7 | 1,550 | plot | Apache License 2.0 |
exchange-symmetric-key-view/src/main/java/com/safechat/conversation/symmetrickey/ExchangeSymmetricKeyActivity.kt | asymmetric-team | 58,806,571 | false | null | package com.safechat.conversation.symmetrickey
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.CoordinatorLayout
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.view.View
class Excha... | 6 | null | 2 | 1 | 34274e068eef9e297c6ad9e7f3d896d37fd0d125 | 2,039 | secure-messenger-android | Apache License 2.0 |
src/main/kotlin/com/riku1227/vrchatlin/data/VRChatPlatform.kt | riku1227 | 235,975,942 | false | null | package com.riku1227.vrchatlin.data
class VRChatPlatform {
companion object {
const val WINDOWS = "standalonewindows"
const val QUEST = "android"
}
} | 0 | Kotlin | 0 | 2 | 1a0955432507fdde3bfebabc9c99c3a2e7cad4f0 | 174 | VRChatlin | MIT License |
sample/src/main/java/com/fraggjkee/smsconfirmationview/sample/MainActivity.kt | hsmnzaydn | 707,904,341 | false | {"Kotlin": 36962} | package com.fraggjkee.smsconfirmationview.sample
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.hsmnzaydn.smsconfirmationview.SmsConfirmationView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... | 0 | Kotlin | 0 | 0 | 178b8b4bb59dd5908ee3d9108e88993d07300273 | 1,008 | sim-pin-android-lib | Apache License 2.0 |
plugin/src/main/kotlin/ru/astrainteractive/messagebridge/events/TelegramChatConsumer.kt | Astra-Interactive | 584,452,095 | false | {"Kotlin": 44477} | package ru.astrainteractive.messagebridge.events
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.flow.timeout
import kotlinx.coroutines.launch
import kotlinx.datetime.Clock
import org.bukkit.Bukkit
import org.bukkit.entity.Play... | 2 | Kotlin | 0 | 0 | 8ebededeb5876e7275850548e921aa464abc23b0 | 6,084 | TelegramBridge | MIT License |
src/main/kotlin/kotlinmudv2/item/Position.kt | danielmunro | 515,227,142 | false | {"Kotlin": 214222, "Dockerfile": 179, "Makefile": 134} | package kotlinmudv2.item
enum class Position {
Head,
Torso,
Arms,
Legs,
Feet,
Neck,
Weapon,
}
| 0 | Kotlin | 0 | 0 | 28b5a049c54ad072ccade19c9ad2bb36b9cf8909 | 123 | kotlinmud-v2 | MIT License |
core/src/main/kotlin/info/laht/threekt/materials/LineDashedMaterial.kt | Dominaezzz | 199,304,218 | false | null | package info.laht.threekt.materials
class LineDashedMaterial: LineBasicMaterial() {
var scale = 1f
var dashSize = 3f
var gapSize = 1f
override fun clone(): LineDashedMaterial {
return LineDashedMaterial().copy(this)
}
fun copy( source: LineDashedMaterial ): LineDashedMaterial {
... | 0 | null | 0 | 1 | f5803ac4982dd7b89303eda059c95c5ac00488b5 | 489 | three.kt | MIT License |
flick_player/src/main/java/com/flipkart/flick/core/db/repository/AdsRepository.kt | flipkart-incubator | 354,808,240 | false | null | /*
* Copyright (C) 2021 Flipkart Internet Pvt Ltd
*
* 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 applicabl... | 1 | Kotlin | 7 | 23 | 9007af5431245c69ba8e85e5a382c247e57f9664 | 2,303 | android-video-player | Apache License 2.0 |
autoscrollcircularpagerview/src/main/java/com/mindinventory/CenterItemFinder.kt | malikmotani | 342,138,752 | true | {"Kotlin": 15278} | package com.mindinventory
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kotlin.math.abs
class CenterItemFinder(
private val context: Context,
private val layoutManager: LinearLayoutManager,
private val callbac... | 0 | null | 0 | 0 | 743c75cc75bff46c885a5945e5feb64643874ca5 | 1,660 | AutoScrollCircularPagerView | MIT License |
src/main/kotlin/com/bloock/sdk/record/entity/document/JsonDocument.kt | bloock | 305,086,190 | false | null | package com.bloock.sdk.record.entity.document
import com.bloock.sdk.shared.Signature
import com.bloock.sdk.shared.SignatureSerializer
import com.bloock.sdk.shared.Utils
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import java.lang.r... | 0 | Kotlin | 0 | 0 | 8ab2fa2de53e1ba94781e110456c13428300c65c | 2,797 | bloock-sdk-kotlin | MIT License |
src/main/kotlin/no/nav/pensjon/simulator/core/domain/regler/kode/TypeCti.kt | navikt | 753,551,695 | false | {"Kotlin": 1608776, "Java": 48078, "Dockerfile": 144} | package no.nav.pensjon.simulator.core.domain.regler.kode
import java.io.Serializable
import java.util.*
abstract class TypeCti : Serializable {
open var kode: String = ""
var dekode: String? = null
var dato_fom: Date? = null
var dato_tom: Date? = null
var er_gyldig: Boolean = false
var komment... | 2 | Kotlin | 0 | 0 | 1e3fd6d13c5d57e166b7457076f63c7ed9ffbcb9 | 5,240 | pensjonssimulator | MIT License |
feature/about/src/main/java/cn/jcn/jailedbird/feature/about/exposeimpl/AboutExposeImpl.kt | JailedBird | 576,180,318 | false | {"Kotlin": 123459, "Java": 2738} | package cn.jcn.jailedbird.feature.about.exposeimpl
import androidx.appcompat.app.AppCompatActivity
import cn.jcn.jailedbird.feature.about.AboutActivity
import cn.jcn.jailedbird.feature.about.expose.AboutEntity
import cn.jcn.jailedbird.feature.about.expose.AboutExpose
import javax.inject.Inject
class AboutExposeImpl @... | 0 | Kotlin | 0 | 7 | 145220185e63f67d77e37fe179d1377cb7c6d6ba | 506 | ModuleExpose | Apache License 2.0 |
app/src/main/java/com/instagram/hdprofile/downloader/model/UserInfoForSingleStoryDownload.kt | AndroidWithRossyn | 860,918,851 | false | {"Kotlin": 110676} | package com.instagram.hdprofile.downloader.model
import com.google.gson.annotations.SerializedName
import com.instagram.hdprofile.downloader.model.story.User
import java.io.Serializable
data class UserInfoForSingleStoryDownload(@SerializedName("user") val user: User?) : Serializable
| 0 | Kotlin | 0 | 0 | 023e5a2e8f4b8a1236b95180daf15749aae7d97d | 287 | Instagram-HD-Profile-Downloader | Apache License 2.0 |
QuizApplication/app/src/main/java/com/app/quiz/QuizResultAdapter.kt | katlaang | 461,564,362 | false | null | package com.app.quiz
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.app.quiz.entity.QuizResult
class QuizResultAdapter(private val quizResults: ArrayList<QuizResult>) :
RecyclerVi... | 0 | Kotlin | 0 | 0 | 8efb8e9f4170189656d47dc5ffeedb1cd59eb30e | 1,598 | Mobile_Device_Programing | MIT License |
feature_workbrowse/src/main/java/com/andtv/flicknplay/workbrowse/domain/GetFavoritesUseCase.kt | procoder1128 | 553,094,605 | false | null | /*
* Copyright (C) 2021 Flicknplay
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 1 | 4 | 45d661d6b872c13b6a1235bbb9a44c91740d3f9d | 1,613 | blockchain | Apache License 2.0 |
core/ui/src/main/java/com/peonlee/core/ui/viewholder/product/ProductViewHolder.kt | YAPP-Github | 634,125,265 | false | null | package com.peonlee.core.ui.viewholder.product
import androidx.constraintlayout.widget.ConstraintLayout.LayoutParams
import androidx.core.view.isVisible
import coil.load
import com.peonlee.common.ext.toFormattedMoney
import com.peonlee.core.ui.Navigator
import com.peonlee.core.ui.R
import com.peonlee.core.ui.databindi... | 4 | Kotlin | 0 | 8 | 648ee3f13682367a7c8d7966d056e4047bb9ce23 | 1,418 | pyeonlee-aos | Apache License 2.0 |
log4k/src/appleTest/kotlin/saschpe/log4k/LoggedTest.apple.kt | saschpe | 221,440,719 | false | {"Kotlin": 24958, "Shell": 4224} | package saschpe.log4k
internal actual val expectedListTag: String = ""
internal actual val expectedMapTag: String = "HashMap"
| 1 | Kotlin | 2 | 13 | 4b2a19dce47c62d5665313031402a90830ec094f | 127 | Log4K | Apache License 2.0 |
app-android/src/main/java/org/mtransit/android/ui/pref/PreferencesViewModel.kt | mtransitapps | 24,649,585 | false | null | package org.mtransit.android.ui.pref
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import org.mtransit.android.commons.MTLog
import org.mtransit.android.ui.view.common.getLiveDataDistinct
import javax.inject.Inject
@HiltViewModel
clas... | 5 | null | 4 | 36 | 86d48b5202534c6683ea0b5090809dd5207590a6 | 827 | mtransit-for-android | Apache License 2.0 |
kotlin/src/main/kotlin/com/github/jntakpe/aoc2021/days/day5/Day5.kt | jntakpe | 433,584,164 | false | null | package com.github.jntakpe.aoc2021.days.day5
import com.github.jntakpe.aoc2021.shared.Day
import com.github.jntakpe.aoc2021.shared.readInputLines
import kotlin.math.abs
object Day5 : Day {
override val input = readInputLines(5).map { it.split("->").parseLine() }
override fun part1() = input.flatMap { it.str... | 0 | Kotlin | 1 | 5 | 2b9dfa4570568eb99571c6b4ee3592fbd6b605d8 | 2,077 | aoc2021 | MIT License |
src/main/kotlin/com/giyeok/passzero2/gui/MasterPasswordView.kt | Joonsoo | 376,332,722 | false | null | package com.giyeok.passzero2.gui
import com.giyeok.passzero2.core.CryptSession
import com.giyeok.passzero2.core.LocalInfoWithRevision
import com.giyeok.passzero2.core.storage.DropboxSession
import com.google.protobuf.ByteString
import okhttp3.OkHttpClient
import java.awt.GridBagConstraints
import java.awt.GridBagLayou... | 0 | Kotlin | 0 | 0 | 751d37fd37acb104cdeb426440cd61567b8abb35 | 3,379 | passzero2 | MIT License |
src/test/kotlin/com/github/wpanas/security/testing/TestingApplicationTests.kt | wpanas | 234,714,941 | false | null | package com.github.wpanas.security.testing
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class TestingApplicationTests {
@Test
fun contextLoads() {
}
}
| 0 | Kotlin | 0 | 0 | 6100bcac80ca59b755e3373950534476e9871e93 | 223 | spring-security-testing | MIT License |
platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/autoimport/ExternalProjectsSettingsWatcher.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.externalSystem.service.project.autoimport
import com.intellij.openapi.components.service
import com.intellij.openapi.extensions.ExtensionPointUtil
import com.intellij.op... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,898 | intellij-community | Apache License 2.0 |
src/wasmWasiMain/kotlin/IfaceExports.kt | skuzmich | 788,387,283 | false | {"Kotlin": 24293, "Rust": 2583, "Shell": 1789, "JavaScript": 997} | object IfaceExportsImpl : IfaceExports {
override fun markdownToHtml(x: String): String = Iface.markdownToHtml(x)
override fun test1(p1: Boolean, p2: Byte, p3: Short, p4: Int, p5: Long, p6: UByte, p7: UShort, p8: UInt, p9: ULong, p10: Int): String =
Iface.test1(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10)
... | 0 | Kotlin | 0 | 0 | 8cf3df578595a6593d91353ae428b99913d6e74d | 3,137 | kotlin-wasm-cm-experiments | Apache License 2.0 |
src/test/kotlin/com/expedia/graphql/generator/extensions/AnnotationExtensionsTest.kt | d4rken | 157,257,082 | true | {"Kotlin": 238077, "Shell": 2933} | package com.expedia.graphql.generator.extensions
import com.expedia.graphql.annotations.GraphQLDescription
import com.expedia.graphql.annotations.GraphQLID
import com.expedia.graphql.annotations.GraphQLIgnore
import org.junit.jupiter.api.Test
import kotlin.reflect.full.declaredMemberProperties
import kotlin.test.asser... | 1 | Kotlin | 0 | 2 | 1d78a129b7f8e7b01c4bed063076a215ca4b29be | 2,118 | graphql-kotlin | Apache License 2.0 |
EasyRoom/app/src/main/java/pt/ipca/easyroom/screen/HomeTenantActivity.kt | TheAdventurersOrg | 695,132,245 | false | {"Kotlin": 112248} | package pt.ipca.easyroom.screen
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.Toast
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import pt.ipca.easyroom.... | 0 | Kotlin | 0 | 0 | 88bbd2a69b2e85acdf98e3733c1587c01cb55c96 | 5,405 | EasyRoom | MIT License |
github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/dsl/JobBuilder.kt | typesafegithub | 439,670,569 | false | {"Kotlin": 573057} | package io.github.typesafegithub.workflows.dsl
import io.github.typesafegithub.workflows.annotations.ExperimentalKotlinLogicStep
import io.github.typesafegithub.workflows.domain.ActionStep
import io.github.typesafegithub.workflows.domain.CommandStep
import io.github.typesafegithub.workflows.domain.Concurrency
import i... | 38 | Kotlin | 24 | 519 | e53f3e38214a447730ac27595affa0a9e6cc7a21 | 7,930 | github-workflows-kt | Apache License 2.0 |
core/src/main/java/kr/edoli/edolview/util/NativeBuffer.kt | edoli | 390,192,597 | false | null | package kr.edoli.edolview.util
import java.nio.Buffer
import java.nio.ByteBuffer
import java.nio.ByteOrder
object NativeBuffer {
private val address = Buffer::class.java.getDeclaredField("address")
private val capacity = Buffer::class.java.getDeclaredField("capacity")
init {
address.isAccessible ... | 0 | Kotlin | 2 | 9 | 20a9de9594b96cd93c6088177153e04d13ffc51f | 1,060 | edolview | MIT License |
coil-base/src/main/java/coil/util/ImageLoaderOptions.kt | coil-kt | 201,684,760 | false | null | package coil.util
import coil.ImageLoader
import coil.RealImageLoader
import coil.decode.BitmapFactoryDecoder.Companion.DEFAULT_MAX_PARALLELISM
/**
* Private configuration options used by [RealImageLoader].
*
* @see ImageLoader.Builder
*/
internal class ImageLoaderOptions(
val addLastModifiedToFileCacheKey: B... | 31 | Kotlin | 490 | 8,007 | cfdff5c5dd67db5a572d7579d27e7a6fc7b0a931 | 986 | coil | Apache License 2.0 |
bot/src/main/kotlin/me/y9san9/prizebot/handlers/private_messages/fsm/states/giveaway/conditions/SubscriptionChannelInputState.kt | y9san9 | 337,414,979 | false | null | package me.y9san9.prizebot.handlers.private_messages.fsm.states.giveaway.conditions
import dev.inmo.tgbotapi.extensions.api.chat.get.getChat
import dev.inmo.tgbotapi.types.ChatId
import dev.inmo.tgbotapi.types.chat.UsernameChat
import dev.inmo.tgbotapi.types.toChatId
import kotlinx.serialization.Serializable
import me... | 15 | null | 6 | 71 | a606dbb02a98fdfc775e16e2c35344e6336ec74b | 4,485 | prizebot | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.