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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client/android/divkit-demo-app/src/androidTest/java/com/yandex/div/view/ViewInteraction.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.view
import android.view.KeyEvent
import android.view.View
import androidx.recyclerview.widget.RecyclerView.ViewHolder
import androidx.test.espresso.NoMatchingViewException
import androidx.test.espresso.UiController
import androidx.test.espresso.ViewAction
import androidx.test.espresso.ViewInter... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 7,587 | divkit | Apache License 2.0 |
src/main/kotlin/io.github/cottonmc/leylines/energy/LeyEnergyMedium.kt | CottonMC | 187,841,934 | false | null | package io.github.cottonmc.leylines.energy
import net.minecraft.client.util.math.Vector3f
import net.minecraft.world.World
interface LeyEnergyMedium {
val energy:LeyEnergy
val position:Vector3f
/**
* Carries the effect. Spawn an entity, affect entities in the area, do what needs to be done.
* ... | 8 | null | 1 | 1 | 0f3d9dc91416f2d437efe3e26f7839fbcf1411b2 | 350 | LeyLines | MIT License |
app/src/main/java/pl/marianjureczko/poszukiwacz/activity/treasureseditor/RouteNameDialog.kt | mjureczko | 720,519,840 | false | {"Kotlin": 275514} | package pl.marianjureczko.poszukiwacz.activity.treasureseditor
import android.app.AlertDialog
import android.app.Dialog
import android.os.Bundle
import android.text.InputType
import android.widget.EditText
import androidx.fragment.app.DialogFragment
import pl.marianjureczko.poszukiwacz.R
class RouteNameDialog : Dialo... | 17 | Kotlin | 0 | 1 | a09d9d66da1e0be6f561bea9d53f38bfa0b838b4 | 1,195 | maly-poszukiwacz-skarbow | W3C Software Notice and License (2002-12-31) |
src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/config/properties/ReplicaRecordCleanupJobProperties.kt | TencentBlueKing | 548,243,758 | false | {"Kotlin": 13715127, "Vue": 1261493, "JavaScript": 683823, "Shell": 124343, "Lua": 101021, "SCSS": 34137, "Python": 25877, "CSS": 17382, "HTML": 13052, "Dockerfile": 4483, "Smarty": 3661, "Java": 423} | package com.tencent.bkrepo.job.config.properties
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(value = "job.replica-record-cleanup")
class ReplicaRecordCleanupJobProperties(
override var enabled: Boolean = true,
override var cron: String = "0 0 3 * * ?",
)... | 383 | Kotlin | 38 | 70 | 817363204d5cb57fcd6d0cb520210fa7b33cd5d6 | 346 | bk-repo | MIT License |
app/src/main/java/com/example/burjoholic7/ui/transactions/TransactionsFragment.kt | Tugasnya-Givandra | 725,155,620 | false | {"Kotlin": 32901} | package com.example.burjoholic7.ui.transactions
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.findNavController
import androidx.recyclerview.widget.LinearLayoutM... | 6 | Kotlin | 0 | 0 | e81f0327989ed5e0a8620943649aa9c7568082df | 2,733 | PvP-Warmindo | The Unlicense |
src/maze/MazeDFS.kt | navythenerd | 644,418,186 | false | null | package maze
/**
* Singleton object for simple maze generation based on depth-first-search backtracking
*
* @author <NAME>
*/
object MazeDFS : MazeGenerator {
private var rawMaze: Array<Array<MazeField>> = emptyArray() // maze data
private var backtrackState: Array<Array<BacktrackState>> = emptyArray() //... | 0 | Kotlin | 0 | 0 | b5567f8ed8191cfbb7117b5a1ab78361d2c68a66 | 3,475 | kotlin-maze-generation | MIT License |
src/app/src/main/java/com/cunyn/android/financesystem/bean/VerifyCodeBean.kt | hottech-jxd | 150,100,491 | false | null | package com.cunyn.android.financesystem.bean
import android.graphics.Bitmap
data class VerifyCodeBean
(var SafeKey:String?, var image:String?, var imageBitmap:Bitmap? ){
} | 0 | Kotlin | 0 | 1 | ce4ed7ad9f6391401e3ce94ccb055c2fe660bf75 | 173 | financesystem | Apache License 2.0 |
app/src/main/java/com/kayu/business_car_owner/activity/GasStationListActivity.kt | MySelfKiller | 587,607,611 | false | null | package com.kayu.business_car_owner.activity
import android.Manifest
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.view.View
import android.widget.TextView
import androidx.lifecycle.ViewModelProviders
import com.hjq.toast.ToastUtils
import com.kongzue.dialog.v3.... | 0 | Kotlin | 0 | 0 | 6e2a692f23ed7d796f3d61f5dae0141af0a98a69 | 23,301 | CarOwnerPayBusiness | Apache License 2.0 |
app/src/main/java/knf/kuma/videoservers/MangoServer.kt | pablojpf | 163,215,061 | true | {"Kotlin": 988869, "PHP": 267654, "Java": 120651, "CSS": 55991, "JavaScript": 50577, "HTML": 25952, "Ruby": 815} | package knf.kuma.videoservers
import android.content.Context
import knf.kuma.commons.BypassUtil
import knf.kuma.commons.PatternUtil
import knf.kuma.videoservers.VideoServer.Names.MANGO
import org.jsoup.Jsoup
import java.util.regex.Pattern
class MangoServer(context: Context, baseLink: String) : Server(context, baseLin... | 0 | Kotlin | 0 | 0 | 7b257118406b279fba1f78ebed51e6afb159ca1d | 1,674 | UKIKU | MIT License |
app/src/main/java/app/eluvio/wallet/data/stores/MetamaskActivationStore.kt | eluv-io | 719,801,077 | false | {"Kotlin": 776571, "Java": 29738} | package app.eluvio.wallet.data.stores
import app.eluvio.wallet.di.ApiProvider
import app.eluvio.wallet.network.api.authd.AuthServicesApi
import app.eluvio.wallet.network.api.authd.AuthTokenResponse
import app.eluvio.wallet.network.api.authd.MetamaskActivationData
import app.eluvio.wallet.network.api.authd.MetamaskCode... | 8 | Kotlin | 1 | 0 | d8493e512ff9e20239e387ae7449e3a857813eb1 | 2,909 | elv-wallet-android | MIT License |
data/src/main/java/com/shagalalab/qarejet/data/repository/ConfigRepositoryImpl.kt | shagalalab | 113,033,977 | false | null | package com.shagalalab.qarejet.data.repository
import android.content.SharedPreferences
import com.shagalalab.qarejet.domain.repository.ConfigRepository
class ConfigRepositoryImpl(private var sharedPrefs: SharedPreferences) : ConfigRepository {
companion object {
const val INITIAL_DATA_POPULATED = "INITIA... | 3 | Kotlin | 1 | 1 | e58efe5ac77ca0a1b2790b676153b75b25e63355 | 605 | qarejet-android-old | MIT License |
drawable/src/main/java/com/angcyo/drawable/base/BaseProgressDrawable.kt | angcyo | 229,037,615 | false | null | package com.angcyo.drawable.base
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2022/04/16
* Copyright (c) 2020 angcyo. All rights reserved.
*/
abstract class BaseProgressDrawable : AbsDslDrawable() {
/**不确定的进度*/
var isIndeterminate: Boolean = true
set(value) {
field = value
... | 0 | Kotlin | 3 | 1 | 657493761eaaaa5ab42087bfbaf00b2aba4c87ef | 496 | UICore | MIT License |
core-security/src/main/java/com/nullgr/core/security/crypto/CryptoKeysFactory.kt | nullgr | 126,462,193 | false | null | package com.nullgr.core.security.crypto
import android.content.Context
import android.os.Build
import android.security.KeyPairGeneratorSpec
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.support.annotation.RequiresApi
import java.math.BigInteger
impor... | 5 | null | 12 | 24 | 6cb588384090aa76d94f052f32de6c26cbd042e3 | 9,185 | app-core | MIT License |
core-security/src/main/java/com/nullgr/core/security/crypto/CryptoKeysFactory.kt | nullgr | 126,462,193 | false | null | package com.nullgr.core.security.crypto
import android.content.Context
import android.os.Build
import android.security.KeyPairGeneratorSpec
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import android.support.annotation.RequiresApi
import java.math.BigInteger
impor... | 5 | null | 12 | 24 | 6cb588384090aa76d94f052f32de6c26cbd042e3 | 9,177 | app-core | MIT License |
firebase/firebase-storage/src/androidMain/kotlin/tz/co/asoft/FirebaseStorageUploadTask.kt | aSoft-Ltd | 258,530,471 | false | null | package tz.co.asoft
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
actual typealias FirebaseStorageUploadTask = com.google.firebase.storage.UploadTask
actual suspend fun FirebaseStorageUploadTask.await() = suspendCancellableCoroutine... | 0 | Kotlin | 3 | 1 | 8233558139144a26c40ae30526bfd0b26bc7b3cb | 649 | kotlin | MIT License |
app/src/main/java/nvl/com/mvvm/utils/tranforms/NeverApiErrorTransformer.kt | NinhvanLuyen | 159,544,833 | false | null | package nvl.com.mvvm.utils.tranforms
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.ObservableTransformer
import nvl.com.mvvm.data.remote.api.ApiError
class NeverApiErrorTransformer<T> : ObservableTransformer<T, T> {
override fun apply(upstream: Observable<T>): Observable... | 0 | Kotlin | 1 | 11 | 26e6b065a8d9304b5ee7bcefeb93d90aa5d58559 | 735 | MVVMCleanArchitecture | Apache License 2.0 |
2490.Circular Sentence.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun isCircularSentence(sentence: String): Boolean {
val ss: Array<String> = sentence.split(" ".toRegex()).dropLastWhile { it.isEmpty() }.toTypedArray()
val n = ss.size
for (i in 0 until n) {
if (ss[i][ss[i].length - 1] != ss[(i + 1) % n][0]) {
return false
}
... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 347 | kotlin-leetcode | MIT License |
app/src/main/java/com/ibashkimi/wheel/profile/ProfileFragment.kt | indritbashkimi | 246,021,936 | false | null | package com.ibashkimi.wheel.profile
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.NavC... | 1 | Kotlin | 3 | 7 | 9ac7efc8ebca47bf6835bccd0b76e55e2d220fa7 | 5,610 | wheel | MIT License |
android/app/src/main/java/co/nimblehq/smsforwarder/extension/ImageViewExtension.kt | nimblehq | 367,302,182 | false | null | package co.nimblehq.githubactionsrunner.extension
import android.graphics.drawable.ColorDrawable
import android.widget.ImageView
import androidx.core.content.ContextCompat
import co.nimblehq.githubactionsrunner.R
import com.bumptech.glide.load.engine.DiskCacheStrategy
import co.nimblehq.githubactionsrunner.di.modules.... | 15 | null | 1 | 7 | 39bd275698276f531b8fde4030785c2bad55c83b | 706 | sms-forwarder | MIT License |
location-permissions/src/jsMain/kotlin/LocationPermissionManager.kt | splendo | 191,371,940 | false | null | /*
Copyright (c) 2020. Splendo Consulting B.V. The Netherlands
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 ... | 126 | Kotlin | 6 | 156 | 1d77c756008e30aa0818b3ae5f06a63e0371850d | 1,857 | kaluga | Apache License 2.0 |
Kotlin/Useless/comments.kt | rene-roid | 365,851,297 | true | {"C++": 23529, "HTML": 20128, "JavaScript": 9232, "Java": 7972, "Python": 7412, "Kotlin": 5384, "C#": 4659, "CSS": 4181, "Go": 1475, "PHP": 386} | fun main() {
println("Comments are ignored by the compiler!")
// Single line comment
/* Multi
Line Comment */
} | 0 | C++ | 0 | 0 | b2eac5a66b247cfd289ffc2f677e5f9ab1d7843c | 129 | Notes | MIT License |
shared/feature/geminio-sdk/src/main/kotlin/ru/hh/plugins/geminio/sdk/recipe/parsers/commands/RecipeCommandParser.kt | hhru | 159,637,875 | false | null | @file:Suppress("UNCHECKED_CAST")
package ru.hh.plugins.geminio.sdk.recipe.parsers.commands
import ru.hh.plugins.geminio.sdk.recipe.models.commands.RecipeCommand
import ru.hh.plugins.geminio.sdk.recipe.parsers.ParsersErrorsFactory.sectionUnknownEnumKeyErrorMessage
private const val KEY_COMMAND_INSTANTIATE = "instant... | 17 | Kotlin | 11 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 2,846 | android-multimodule-plugin | MIT License |
app/src/main/java/com/foreveross/atwork/cordova/plugin/model/GetStepCountResponse.kt | AoEiuV020 | 421,650,297 | false | {"Java": 8618305, "Kotlin": 1733509, "JavaScript": 719597, "CSS": 277438, "HTML": 111559} | package com.foreveross.atwork.cordova.plugin.model
import com.foreveross.atwork.infrastructure.utils.StringUtils
import com.google.gson.annotations.SerializedName
class GetStepCountResponse {
@SerializedName("steps")
var steps = 0L
@SerializedName("distances")
var distances = StringUtils.EMPTY
} | 1 | null | 1 | 1 | 1c4ca5bdaea6d5230d851fb008cf2578a23b2ce5 | 317 | w6s_lite_android | MIT License |
text_world/src/main/kotlin/cubes/gui/SwingExt.kt | sentinelweb | 228,927,082 | false | {"Gradle": 6, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "JSON": 2, "Kotlin": 205, "SubRip Text": 1, "Java": 14, "Java Properties": 1, "Wavefront Object": 1, "GLSL": 69, "SVG": 8, "XML": 7} | package cubes.gui
import java.awt.Color
import java.awt.Component
import java.awt.Dimension
import java.awt.event.ActionEvent
import java.io.File
import javax.swing.*
import javax.swing.border.EmptyBorder
import javax.swing.event.ChangeEvent
fun JSlider.setup(
initial: Int,
minor: Int,
major: Int,
pa... | 14 | Kotlin | 0 | 0 | 623fd9f4d860b61dfc5b5dfbc5a8f536d978d9f6 | 2,984 | processink | Apache License 2.0 |
app/src/main/java/com/merxury/blocker/exception/StorageNotAvailableException.kt | lihenggui | 115,417,337 | false | null | package com.merxury.blocker.exception
class StorageNotAvailableException : RuntimeException() | 11 | Kotlin | 28 | 237 | a51b75c16303b9837bed72181ab7007cf8a59625 | 94 | blocker | Apache License 2.0 |
library/src/main/java/org/zhiwei/booster/core/net/config/HostInterceptor.kt | zhiwei1990 | 250,278,946 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "YAML": 1, "INI": 1, "Proguard": 1, "Kotlin": 29, "XML": 6, "Java": 1} | package org.zhiwei.booster.core.net.config
import androidx.core.net.toUri
import okhttp3.Interceptor
import okhttp3.Response
/**
* ----------------------------------------------------------------
* 作者: 志威 <EMAIL>
* 主页: Github: https://github.com/zhiwei1990
* 日期: 2020年04月27日 14:51
* 签名: 天行健,君子以自强不息;地势坤,君子以厚德载物。
... | 0 | Kotlin | 1 | 5 | 58895ee9ad5b53063bf079a69f0dc56feb181251 | 1,216 | KtBooster | Apache License 2.0 |
timer/src/main/java/ru/ischenko/roman/focustimer/notification/FocusTimerNotification.kt | djamba | 111,814,090 | false | null | package ru.ischenko.roman.focustimer.notification
import android.app.Notification
interface NotificationCreator {
fun createNotification(title: String, message: String, isOngoing: Boolean, shouldNotify: Boolean,
actions: List<NotificationAction>): Notification
}
interface FocusTimerNo... | 1 | null | 1 | 2 | 48569bb7fbd3be529a8b537e394f2774975c713a | 968 | FocusTimer | MIT License |
idea/testData/intentions/removeExplicitSuperQualifier/WrongOffset2.kt | JakeWharton | 99,388,807 | true | null | // IS_APPLICABLE: false
open class Base {
open fun foo() {
}
}
class A : Base() {
override fun foo() {
super.foo()
}
inner class C {
fun test() {
supe<caret>r<Base>@A.foo()
}
}
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 241 | kotlin | Apache License 2.0 |
library/src/main/java/com/damianogiusti/statedispatcher/internal/StateDispatcherImpl.kt | damianogiusti | 130,755,941 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Kotlin": 17, "XML": 13, "Java": 2} | package com.damianogiusti.statedispatcher.internal
import android.app.Activity
import android.app.Application
import android.os.Bundle
import com.damianogiusti.statedispatcher.*
import io.reactivex.BackpressureStrategy
import io.reactivex.Flowable
import io.reactivex.subjects.PublishSubject
import io.reactivex.subject... | 0 | Kotlin | 0 | 0 | b5bd47653f50bb5b8aadc6fe6372f0fddda4f9f8 | 4,210 | state-dispatcher | Apache License 2.0 |
shorttext/src/main/java/com/tabjin/shorttext/Main3Activity.kt | tianbaojun | 191,313,785 | false | {"Java": 867826, "Kotlin": 111966} | package com.tabjin.shorttext
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
import android.widget.TextView
import kotlinx.android.synthetic.main.activity_main3.*
c... | 1 | null | 1 | 1 | d5bfa951e05c97b96703a61112a8e85066dfa365 | 1,217 | lianxi | Apache License 2.0 |
app/src/main/java/com/dede/android_eggs/ui/drawables/ScaleType.kt | hushenghao | 306,645,388 | false | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.dede.android_eggs.ui
import android.graphics.Matrix
import android.graphics.Rect
import kotlin.math.min
/**
* Options... | 3 | null | 31 | 626 | e1874513fbf03f7b1fbb2c89ce093dc97728e162 | 12,030 | AndroidEasterEggs | Apache License 2.0 |
easy/kotlin/c0110_447_number-of-boomerangs/00_leetcode_0110.kt | drunkwater | 127,843,545 | false | null | // DRUNKWATER TEMPLATE(add description and prototypes)
// Question Title and Description on leetcode.com
// Function Declaration and Function Prototypes on leetcode.com
//447. Number of Boomerangs
//Given n points in the plane that are all pairwise distinct, a "boomerang" is a tuple of points (i, j, k) such that the di... | 1 | null | 1 | 1 | 8cc4a07763e71efbaedb523015f0c1eff2927f60 | 815 | leetcode | Ruby License |
incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/RoToolPanel.kt | fengluandll | 271,823,856 | true | {"INI": 13, "Shell": 31, "YAML": 110, "AsciiDoc": 955, "Text": 12, "Maven POM": 146, "Ignore List": 21, "Git Attributes": 1, "EditorConfig": 1, "Groovy": 2, "Java": 4445, "Java Properties": 37, "JSON": 15, "XML": 158, "HTML": 104, "SVG": 21, "JavaScript": 78, "CSS": 76, "Markdown": 6, "Gradle Kotlin DSL": 2, "Batchfile... | package org.apache.isis.client.kroviz.ui.kv
import kotlinx.serialization.UnstableDefault
import org.apache.isis.client.kroviz.core.model.Exposer
import org.apache.isis.client.kroviz.handler.TObjectHandler
import org.apache.isis.client.kroviz.to.TObject
import org.apache.isis.client.kroviz.ui.BrowserWindow
import org.a... | 0 | null | 0 | 1 | e6959c8b64f73b9ea839d269fcf33e5d4e215d95 | 2,788 | isis | Apache License 2.0 |
examples/android/src/main/java/com/dropbox/core/examples/android/OpenWithActivity.kt | dropbox | 10,983,050 | false | null | package com.dropbox.core.examples.android
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Parcel
import android.util.Base64
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
imp... | 28 | null | 449 | 593 | b485b7ac23a7fb496c831eb7aed3416347c1c3f4 | 7,239 | dropbox-sdk-java | MIT License |
src/main/kotlin/hello/Application.kt | CleverCloud | 117,574,006 | true | {"Kotlin": 5640} | package hello
import io.micrometer.core.instrument.MeterRegistry
import io.micrometer.core.instrument.Metrics
import org.slf4j.LoggerFactory
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.sp... | 0 | Kotlin | 0 | 0 | f2c146a2b309d0f0fac40f2b557a796c674e81ac | 1,765 | kotlin-spring-boot-statsd-example | Apache License 2.0 |
app/src/main/java/com/example/rickmorty/data/local/entities/CharacterEpisodeEntity.kt | A-EHJ | 829,154,296 | false | {"Kotlin": 143861} | package com.example.rickmorty.data.local.entities
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(
tableName = "character_episode",
foreignKeys = [
ForeignKey(
entity = CharacterEntity::class,
parent... | 0 | Kotlin | 0 | 0 | ac1838874032faeee6654a9ca0a918a7c869ebb4 | 872 | Final_Project_Ap2 | FSF All Permissive License |
data/src/main/java/com/doool/pokedex/data/repository/PokemonRepositoryImpl.kt | D000L | 407,756,410 | false | null | package com.doool.pokedex.data.repository
import com.doool.pokedex.data.dao.PokemonDao
import com.doool.pokedex.data.dao.PokemonDetailDao
import com.doool.pokedex.data.entity.AbilityEntity
import com.doool.pokedex.data.entity.FormEntity
import com.doool.pokedex.data.entity.ItemEntity
import com.doool.pokedex.data.enti... | 4 | Kotlin | 1 | 7 | 97bf68de9b87c5c9c99c7286de7df29f285330ce | 8,447 | pokedex-compose | Apache License 2.0 |
tinydvm/src/main/kotlin/com/github/netomi/bat/tinydvm/data/DvmUnitValue.kt | netomi | 265,488,804 | false | {"Kotlin": 1925501, "Smali": 713862, "ANTLR": 25494, "Shell": 12074, "Java": 2326} | /*
* Copyright (c) 2020-2022 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 1 | Kotlin | 3 | 10 | 5f5ec931c47dd34f14bd97230a29413ef1cf219c | 1,073 | bat | Apache License 2.0 |
app/src/main/java/com/amp/bemobile/view/core/utils/Extensions.kt | alvaromarco | 414,525,714 | false | null | package com.amp.bemobile.view.core.utils
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding
inline fun <T : ViewBinding> AppCompatActivity.viewBinding(
crossinline bindingInflater: (LayoutInflater) -> T
) = lazy(... | 0 | null | 0 | 0 | 7a29c67b76bf12fdea7ad869c03e77708bb61ac0 | 585 | BeMobile | Apache License 2.0 |
app/src/main/java/com/rohitthebest/manageyourrenters/adapters/borrowerAdapters/BorrowerPaymentAdapter.kt | rkumar0206 | 308,063,719 | false | {"Kotlin": 1221664} | package com.rohitthebest.manageyourrenters.adapters.borrowerAdapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widg... | 21 | Kotlin | 0 | 1 | 94b7b643c7a5cce9ea7fb9ad70c904c1cad75fc9 | 9,797 | ManageYourRenters | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/hackertronix/divocstats/overview/OverviewViewModel.kt | hackertronix | 249,216,550 | false | null | package com.hackertronix.divocstats.overview
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.github.mikephil.charting.data.Entry
import com.github.mikephil.charting.data.LineDataSet
import com.hackertro... | 3 | Kotlin | 4 | 3 | 74fc478600a30a2edb5eec3909756d7584a3bafc | 4,377 | 91-DIVOC | Apache License 2.0 |
app/src/main/java/com/musicplayer/aow/ui/main/library/home/discover/data/PlaylistObject.kt | ilemobayo | 138,568,151 | false | {"Gradle": 3, "Java Properties": 4, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "XML": 736, "JSON": 3, "Proguard": 1, "Kotlin": 370, "Java": 40, "HTML": 4} | package com.musicplayer.aow.ui.main.library.home.discover.data
import android.arch.persistence.room.Embedded
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import android.support.annotation.NonNull
@Entity(tableName = "discovery")
class PlaylistObject {
@NonNull
@... | 0 | Kotlin | 0 | 2 | bc50a7cace0367b5bcffcd92008f7dbe2727da96 | 947 | KStudio | MIT License |
examples/suppression/DeleteSpecificBlock.kt | desiderantes | 148,538,242 | false | null | import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.sendgrid.*
import java.io.IOException
import java.util.HashMap
//////////////////////////////////////////////////////////////////
// Delete a specific block
// DELETE /suppression/blocks/{email}
object Delet... | 0 | Kotlin | 0 | 0 | 9f188c75d3b3cfa4dc04ea6e5ac8eaf0430af4dd | 907 | sendgrid-kotlin | MIT License |
miruken/src/main/kotlin/com/miruken/callback/HandlingResolve.kt | coridrew | 151,555,181 | true | {"Kotlin": 521215} | package com.miruken.callback
import com.miruken.concurrent.Promise
import com.miruken.typeOf
val Handling.infer get() = InferringHandler(this)
val Handling.inferAll get() = CallbackSemanticsHandler(
InferringHandler(this), CallbackOptions.BROADCAST)
fun Handling.resolve(
key: Any,
parent:... | 0 | Kotlin | 0 | 0 | b39c281286eceda5479c0bf3561db9980fcf7f5a | 2,467 | Miruken-1 | MIT License |
app/src/main/java/io/github/drumber/kitsune/data/source/network/character/model/NetworkCharacter.kt | Drumber | 406,471,554 | false | {"Kotlin": 993796, "Ruby": 2109} | package io.github.drumber.kitsune.data.source.network.character.model
import com.github.jasminb.jsonapi.annotations.Id
import com.github.jasminb.jsonapi.annotations.Relationship
import com.github.jasminb.jsonapi.annotations.Type
import io.github.drumber.kitsune.data.common.Image
import io.github.drumber.kitsune.data.c... | 6 | Kotlin | 4 | 92 | ba6f2a69cb71a9fd71d4825921ff6d9b6300471e | 847 | Kitsune | Apache License 2.0 |
build-logic/src/main/kotlinX/dsl/KotlinJvmCompilerOptions.kt | ktorium | 212,911,373 | false | {"Kotlin": 2834} | @file:Suppress("PackageDirectoryMismatch")
package org.ktorium.expekto.gradle.dsl
import org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompilerOptions
fun KotlinJvmCompilerOptions.withCompilerArguments(configure: KotlinCompilerArgumentsBuilder.() -> Unit) {
val arguments = KotlinCompilerArgumentsBuilder().apply(confi... | 0 | Kotlin | 0 | 0 | 62c1c17c5cbaa033a7d4dfbba7c64c4e5967366d | 376 | expekto | Apache License 2.0 |
app/src/test/java/com/todo/fragment/TodoViewModelTest.kt | mohdaquib | 268,235,549 | false | null | package com.todo.fragment
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import com.todo.model.ToDoListItem
import com.todo.networking.Resource
import com.todo.repository.TodoRepository
import com.todo.utils.TestCoroutineRule
import kotlinx.coroutines.Experimental... | 0 | Kotlin | 0 | 0 | 1c169f1abfb229160fa2c22f9634d30b9872a37b | 2,651 | TodoServer | Apache License 2.0 |
adapter-in/web/src/test/kotlin/com/yapp/bol/group/GroupControllerTest.kt | YAPP-Github | 634,125,780 | false | null | package com.yapp.bol.group
import com.yapp.bol.auth.UserId
import com.yapp.bol.base.ARRAY
import com.yapp.bol.base.BOOLEAN
import com.yapp.bol.base.ControllerTest
import com.yapp.bol.base.ENUM
import com.yapp.bol.base.NUMBER
import com.yapp.bol.base.OBJECT
import com.yapp.bol.base.OpenApiTag
import com.yapp.bol.base.S... | 5 | null | 0 | 13 | cd2951562e26d0d016672dc27e6d6bf2c6658be2 | 11,133 | onboard-server | Apache License 2.0 |
app/src/main/kotlin/com/simplemobiletools/clock/extensions/Long.kt | twckr | 161,425,639 | true | {"Kotlin": 122821} | package com.simplemobiletools.clock.extensions
import java.util.concurrent.TimeUnit
fun Long.formatStopwatchTime(useLongerMSFormat: Boolean): String {
val MSFormat = if (useLongerMSFormat) "%03d" else "%01d"
val hours = TimeUnit.MILLISECONDS.toHours(this)
val minutes = TimeUnit.MILLISECONDS.toMinutes(this... | 0 | Kotlin | 0 | 0 | d004357d997584712298376ff3b8854c05c3189a | 983 | Simple-Clock-With-Geo-Validation- | Apache License 2.0 |
startup-k-rest-service-archetype/src/main/resources/archetype-resources/__rootArtifactId__-ms-et/src/main/kotlin/ms/et/__moduleName__/adapter/__entityName__Adapter.kt | israel-anaya | 318,077,414 | false | {"Java": 46069, "Kotlin": 15949, "Dockerfile": 496} | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.ms.et.${moduleName}.adapter
import org.mapstruct.Mapper
import org.mapstruct.factory.Mappers
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import org.st... | 1 | null | 1 | 1 | dd63d9d8fca45c67ab444b1fb64301ef08112c57 | 1,052 | startup-archetypes | Apache License 2.0 |
build-logic/plugins/src/main/kotlin/DokkaConventionPlugin.kt | aws-amplify | 490,439,616 | false | null | import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.withType
import org.jetbrains.dokka.DokkaDefaults.includeNonPublic
import org.jetbrains.dokka.DokkaDefaults.jdkVersion
import org.jetbrains.dokka.DokkaDefaults.reportUndocumented
import org.jetbrains.dokka.DokkaDefaults.skipDeprecat... | 4 | Kotlin | 1 | 7 | a06a6a739be0573e9e01eba53f7b7f8b9576e5b0 | 1,608 | amplify-ui-android | Apache License 2.0 |
ui/src/main/kotlin/almanakka/ui/behaviors/MonthLabelTextBehavior.kt | MobileAct | 216,492,508 | false | null | package almanakka.ui.behaviors
import almanakka.core.IMonth
import almanakka.ui.configurations.MonthLabelConfig
import almanakka.ui.extensions.setTextAppearanceCompat
import androidx.appcompat.widget.AppCompatTextView
class MonthLabelTextBehavior(private val monthLabelConfig: MonthLabelConfig) : IMonthLabelTextBehavi... | 0 | Kotlin | 1 | 1 | b8809c29056c76ba891d2e14ca835d5effd0b91d | 1,535 | Almanakka | MIT License |
library/src/main/java/renetik/android/preset/property/CSPresetKeyData.kt | renetik | 506,393,397 | false | {"Kotlin": 65979} | package renetik.android.preset.property
import renetik.android.event.common.CSHasDestruct
import renetik.android.preset.CSPreset
import renetik.android.store.CSStore
interface CSPresetKeyData : CSHasDestruct {
companion object
val preset: CSPreset<*, *>
val key: String
fun saveTo(store: CSStore)
... | 0 | Kotlin | 0 | 2 | 211878146de2596f62c93258d25ba3c2ba2d9868 | 395 | renetik-android-preset | MIT License |
app/src/main/java/fr/acinq/phoenix/paymentdetails/PaymentDetailsTechnicalsFragment.kt | bitcoinuser | 247,827,323 | false | null | /*
* Copyright 2019 ACINQ SAS
*
* 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... | 0 | null | 1 | 1 | 69ac18479c230bfb74ab3eabe6d0c0bd5af11f85 | 2,016 | phoenix | Apache License 2.0 |
app/src/main/java/com/kylecorry/trail_sense/tools/clinometer/ui/ClinometerView.kt | kylecorry31 | 215,154,276 | false | null | package com.kylecorry.trail_sense.tools.clinometer.ui
import android.content.Context
import android.graphics.Color
import android.graphics.Path
import android.util.AttributeSet
import com.kylecorry.andromeda.canvas.CanvasView
import com.kylecorry.andromeda.canvas.TextMode
import com.kylecorry.andromeda.core.system.Res... | 456 | null | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 5,958 | Trail-Sense | MIT License |
app/src/main/java/com/ardakazanci/anlikmotivasyon/repositories/ContentAddRepository.kt | ardakazanci | 229,326,545 | false | null | package com.ardakazanci.anlikmotivasyon.repositories
import com.ardakazanci.anlikmotivasyon.data.model.DataModel
import com.ardakazanci.anlikmotivasyon.data.network.IApiInterface
class ContentAddRepository(private val apiInterface: IApiInterface) : BaseRepository() {
suspend fun getContentAddResponse(
sh... | 1 | null | 5 | 45 | 0b3628b9c9757904f1e4dbdeb757fb1ab84c4704 | 989 | Heyyoo | Apache License 2.0 |
android/app/src/main/kotlin/com/quickbirdstudios/flutter_search_bar/MainActivity.kt | QuickBirdEng | 360,814,443 | false | null | package com.quickbirdstudios.flutter_search_bar
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 4 | Dart | 11 | 33 | 1d6a8e571040a58f97de546e72910e8d3d8ed69d | 144 | flutter_platform_search | MIT License |
src/main/kotlin/me/jakubmeysner/amidstus/commands/games/VoteCommand.kt | jakubmeysner | 331,953,815 | false | null | package me.jakubmeysner.amidstus.commands.games
import me.jakubmeysner.amidstus.AmidstUs
import me.jakubmeysner.amidstus.interfaces.Named
import me.jakubmeysner.amidstus.models.EmergencyMeeting
import net.md_5.bungee.api.ChatColor
import net.md_5.bungee.api.chat.ComponentBuilder
import org.bukkit.Bukkit
import org.buk... | 0 | Kotlin | 0 | 0 | 9e5bda44f783ded6b0a407e0b4bfb2ec34d8b647 | 5,853 | amidstus | MIT License |
My Work/app/src/main/java/com/example/composesample/styles/Vector.kt | sowrabhnayak | 232,848,753 | false | null | package com.example.composesample.styles
import androidx.annotation.DrawableRes
import androidx.compose.Composable
import androidx.compose.unaryPlus
import androidx.ui.core.Modifier
import androidx.ui.core.WithDensity
import androidx.ui.graphics.Color
import androidx.ui.graphics.vector.DrawVector
import androidx.ui.la... | 0 | Kotlin | 0 | 0 | 876129d7d030253b3a6647d1ba76d148651f9c3a | 770 | AndroidJetpack | Apache License 2.0 |
remote-env/src/com/jetbrains/edu/remote/RemoteUtils.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.remote
import com.jetbrains.rdserver.unattendedHost.UnattendedStatusUtil
@Suppress("UnstableApiUsage")
fun isRemoteDevServer(): Boolean = UnattendedStatusUtil.getStatus().unattendedMode | 5 | Kotlin | 47 | 124 | 1d2471c087b9ca1466aa95332374d1914a108092 | 213 | educational-plugin | Apache License 2.0 |
app/src/main/java/com/example/recipes/ui/RecipesApp.kt | nejrapribinja | 810,323,851 | false | {"Kotlin": 23558} | /*
* Copyright (C) 2023 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 ap... | 0 | Kotlin | 0 | 0 | 6db57daf49b0472da55495649f26f78c550c5fb0 | 2,348 | recipesApp | Apache License 2.0 |
android-design-tokens/app/src/main/java/com/seljabali/designtokens/ui/textappearances/TextStyles.kt | seljabali | 231,339,929 | false | {"Kotlin": 84885} | package com.seljabali.designtokens.ui.textappearances
interface TextStyles {
val textAppearanceStyle: Int
val textAppearanceName: Int
} | 2 | Kotlin | 1 | 8 | 2d69582b55666d0fda4a247421c59de0d0fc0f6e | 144 | android-design-tokens | Creative Commons Zero v1.0 Universal |
tests/src/main/kotlin/se/ansman/kotshi/SealedClassOnMissingNull.kt | ansman | 95,685,398 | false | null | package se.ansman.kotshi
@JsonSerializable
@Polymorphic(labelKey = "type", onMissing = Polymorphic.Fallback.NULL)
sealed class SealedClassOnMissingNull {
@JsonSerializable
@PolymorphicLabel("type1")
data class Subclass1(val foo: String) : SealedClassOnMissingNull()
@JsonSerializable
@JsonDefaultVa... | 5 | null | 42 | 759 | 9611441b4dcb400d1b219fa0692454a80f9c1ed3 | 378 | kotshi | Apache License 2.0 |
app/src/main/java/com/example/myapplication/Admin/Teacher/Register/TeachersRegisterActivity.kt | resurreccionerick | 709,453,429 | false | {"Kotlin": 229120} | package com.example.myapplication.Admin.Teacher.Register
import android.Manifest
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import... | 0 | Kotlin | 0 | 0 | ef83384d40987c6e2fbaf69eb467c09d1e6cd343 | 6,802 | KindergartenCAI-MVP | MIT License |
starter/src/main/java/com/insidion/axon/openadmin/insights/InsightHandlerEnhancer.kt | CodeDrivenMitch | 370,003,305 | false | {"TypeScript": 101990, "Kotlin": 42853, "HTML": 545, "CSS": 183} | package com.insidion.axon.openadmin.insights
import org.axonframework.messaging.Message
import org.axonframework.messaging.annotation.HandlerEnhancerDefinition
import org.axonframework.messaging.annotation.MessageHandlingMember
import org.axonframework.messaging.annotation.WrappedMessageHandlingMember
import org.axonf... | 11 | TypeScript | 6 | 21 | a764ab8e570b01da50b6da3e23ddb7302ee29368 | 2,353 | axon-open-admin | MIT License |
template/composeApp/src/commonMain/kotlin/kotli/app/feature/loader/data/DataLoaderViewModel.kt | kotlitecture | 790,159,970 | false | {"Kotlin": 296989, "Swift": 587, "HTML": 234} | package kotli.app.feature.loader.data
import kotli.app.datasource.config.AppConfigSource
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.filterNotNull
import kotlinx.coroutines.flow.map
import shared.present... | 2 | Kotlin | 1 | 29 | b692cfd1895fdcd37ce5f6b654bfed834b7e7cec | 1,301 | template-multiplatform-compose | MIT License |
compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/lower/AssociatedObjectsLowering.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2019 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.backend.wasm.lower
import org.jetbrains.kotlin.backend.common.FileLoweringPass
i... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,536 | kotlin | Apache License 2.0 |
src/main/kotlin/com/rsplwe/esurfing/Client.kt | Rsplwe | 645,839,390 | false | {"Kotlin": 23247} | package com.rsplwe.esurfing
import com.rsplwe.esurfing.States.isRunning
import com.rsplwe.esurfing.States.ticket
import com.rsplwe.esurfing.hook.Session
import com.rsplwe.esurfing.network.NetResult
import com.rsplwe.esurfing.network.post
import com.rsplwe.esurfing.utils.ConnectivityStatus.*
import com.rsplwe.esurfing.... | 0 | Kotlin | 2 | 9 | 408e2e581397ea3a963aea12b5c46e0784023f62 | 7,354 | ESurfingDialer | Apache License 2.0 |
server/server-app/src/main/kotlin/projektor/auth/AuthService.kt | aaronzirbes | 329,426,007 | true | {"Kotlin": 699143, "TypeScript": 286831, "Groovy": 218345, "JavaScript": 155322, "Java": 15226, "HTML": 566, "Dockerfile": 175, "Python": 72, "Shell": 35} | package projektor.auth
import io.ktor.util.KtorExperimentalAPI
@KtorExperimentalAPI
class AuthService(private val authConfig: AuthConfig) {
fun isAuthValid(tokenFromRequest: String?) =
authConfig.publishToken.isNullOrEmpty() || authConfig.publishToken == tokenFromRequest
}
| 0 | null | 0 | 0 | bc75d64188375d1623cc2a24879897783dc77886 | 292 | projektor | MIT License |
app/src/main/java/com/joshuacerdenia/android/nicefeed/data/local/FeedPreferencesMigration.kt | joshuacerdenia | 276,687,871 | false | null | package com.joshuacerdenia.android.nicefeed.data.local
import android.content.Context
// Class for managing migration from NiceFeedPreferences to FeedPreferences.
class FeedPreferencesMigration(context: Context) {
private val oldPrefs = context.getSharedPreferences(OLD_NAME, Context.MODE_PRIVATE)
fun migrat... | 25 | Kotlin | 12 | 61 | bf30a4d3c01d43a3cff1e10ee2e0227e5aa4504a | 3,728 | NiceFeed | MIT License |
app/src/main/java/com/test/codingchallengesample/MyApp.kt | Mayo1122 | 460,762,963 | false | null | package com.test.codingchallengesample
import android.app.Application
import com.test.codingchallenge.exposed.CodingChallenge
class MyApp: Application() {
override fun onCreate() {
super.onCreate()
// usage
CodingChallenge.Builder().build()
}
} | 0 | Kotlin | 0 | 1 | 247a8f70cc09f95ef5dddfb19b11f30cc64faa53 | 278 | CodingChallenge | MIT License |
app/src/main/java/com/yechaoa/wanandroid_kotlin/module/navi/NaviPresenter.kt | yechaoa | 231,320,290 | false | null | package com.yechaoa.wanandroid_kotlin.module.navi
import com.yechaoa.wanandroid_kotlin.base.BaseBean
import com.yechaoa.wanandroid_kotlin.bean.Navi
import com.yechaoa.wanandroid_kotlin.http.RetrofitService
import com.yechaoa.yutilskt.LogUtilKt
import io.reactivex.Observer
import io.reactivex.android.schedulers.Android... | 0 | Kotlin | 6 | 33 | 78960c93bd2e67ef29128ac653e62b7ac97f3c36 | 1,437 | wanandroid_kotlin | Apache License 2.0 |
src/main/kotlin/org/arxing/bitrisesdk/core/service/ApplicationService.kt | Arxing | 390,718,612 | false | null | package org.arxing.bitrisesdk.core.service
import okhttp3.ResponseBody
import org.arxing.bitrisesdk.core.Constants.API_VERSION
import org.arxing.bitrisesdk.core.Constants.APP_SLUG
import org.arxing.bitrisesdk.core.Constants.LIMIT
import org.arxing.bitrisesdk.core.Constants.NEXT
import org.arxing.bitrisesdk.core.Consta... | 0 | Kotlin | 0 | 0 | 9639ad21b263fd1ece2383e9ca5a8cd0eb3f2022 | 2,166 | Bitrise-Kotlin-Sdk | Apache License 2.0 |
app/src/main/java/dk/pressere/kbkompas/components/Dialog.kt | rasmuschriste | 513,508,978 | false | {"Kotlin": 124739, "Java": 11142} | package dk.pressere.kbkompas.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import androidx.compose.ui.window.DialogPrope... | 0 | Kotlin | 0 | 2 | de544806ea4acb692f525cfcd7e46c03d82c616b | 4,415 | KBCompass | Apache License 2.0 |
app/src/main/java/com/soussidev/kotlin/login_with_kotlin/MainActivity.kt | datalink747 | 95,580,225 | false | null | package com.soussidev.kotlin.login_with_kotlin
import android.app.Fragment
import android.content.SharedPreferences
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
class MainActivity : AppCompatActivity() {
private var pref: SharedPreferences? = null
override fun onCreate(savedInstan... | 0 | Kotlin | 2 | 3 | 7a6c6948d87fc7deb682e38e4eb81e719c1408e6 | 860 | Login_with_kotlin | Apache License 2.0 |
library/src/main/java/com/chaow/loom/base/viewholder/BasicViewHolder.kt | glassweichao | 209,453,134 | false | null | package com.chaow.loom.base.viewholder
import android.view.View
import androidx.recyclerview.widget.RecyclerView
/**
* @author Char
* @date 2019/9/20
*/
open class BasicViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
} | 0 | Kotlin | 0 | 0 | b857e01b5d6fbee0083e9272dce386c42159d188 | 241 | Loom | Apache License 2.0 |
src/plugin-api/main/uk/co/reecedunn/intellij/plugin/processor/debug/DebugSession.kt | rhdunn | 62,201,764 | false | {"Kotlin": 8262637, "XQuery": 996770, "HTML": 39377, "XSLT": 6853} | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 49 | Kotlin | 9 | 25 | d8d460d31334e8b2376a22f3832a20b2845bacab | 1,143 | xquery-intellij-plugin | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ui/screens/MainScreen.kt | loloof64 | 815,451,002 | false | {"Kotlin": 53133} | package ui.screens
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Refresh
import androidx.compose.runtime.Com... | 0 | Kotlin | 0 | 0 | 665445d621b350503b38b729f29db2742489fec6 | 5,325 | DropboxExperimentComposeMP | MIT License |
app/src/test/java/org/simple/clinic/scheduleappointment/ScheduleAppointmentUpdateTest.kt | simpledotorg | 132,515,649 | false | {"Kotlin": 6129044, "Shell": 1660, "HTML": 545} | package org.simple.clinic.scheduleappointment
import com.spotify.mobius.test.NextMatchers.hasEffects
import com.spotify.mobius.test.NextMatchers.hasModel
import com.spotify.mobius.test.NextMatchers.hasNoEffects
import com.spotify.mobius.test.NextMatchers.hasNoModel
import com.spotify.mobius.test.UpdateSpec
import com.... | 5 | Kotlin | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 8,891 | simple-android | MIT License |
core/src/main/java/com/hrudhaykanth116/core/common/utils/extensions/navigation/NavController.kt | hrudhaykanth116 | 300,963,083 | false | {"Kotlin": 447216} | package com.hrudhaykanth116.core.common.utils.extensions.navigation
import androidx.navigation.NavController
fun NavController.navigateClearBackStack(
route: String
) {
navigate(
route = route
) {
popUpTo(0)
}
} | 0 | Kotlin | 0 | 0 | 5672c21b3bc4d4c948fe96a5ab88f2d36c95deac | 245 | MAFET | MIT License |
test-suite-kotlin-ksp/src/test/kotlin/io/micronaut/http/client/SuspendClient.kt | micronaut-projects | 124,230,204 | false | null | package io.micronaut.http.client
import io.micronaut.http.HttpResponse
import io.micronaut.http.annotation.Get
import io.micronaut.http.annotation.Put
import io.micronaut.http.client.annotation.Client
@Client("/")
interface SuspendClient {
@Put
suspend fun call(newState: String): String
@Get
suspend... | 753 | null | 1061 | 6,059 | c9144646b31b23bd3c4150dec8ddd519947e55cf | 433 | micronaut-core | Apache License 2.0 |
src/main/kotlin/com/willowtreeapps/fuzzywuzzy/diffutils/Applicable.kt | SEPIA-Framework | 129,547,010 | false | {"Java": 2728135, "Kotlin": 71831, "HTML": 60181, "Shell": 7743, "Batchfile": 863, "VBScript": 667} | package com.willowtreeapps.fuzzywuzzy.diffutils
/**
* A ratio/algorithm that can be applied
*/
interface Applicable {
/**
* Apply the ratio/algorithm to the input strings
*
* @param s1 Input string
* @param s2 Input string
* @return The score of similarity
*/
fun apply(s1: Str... | 0 | Java | 15 | 93 | 96a1f63fa5a040be2ebbff616a73cf3eb1768bb7 | 344 | sepia-assist-server | MIT License |
program/find-factorial-of-a-number/FindFactorialOfANumber.kt | isyuricunha | 632,079,464 | true | {"YAML": 15, "Markdown": 207, "JSON": 3, "Ignore List": 1, "JavaScript": 207, "CODEOWNERS": 1, "Text": 1, "Python": 204, "Haskell": 60, "Dart": 99, "C": 197, "Ruby": 167, "Java": 195, "C++": 199, "C#": 187, "PHP": 183, "Go": 165, "Kotlin": 159, "Perl": 85, "Scala": 120, "R": 77, "F#": 73, "Rust": 81, "Swift": 122, "Jul... | import java.util.Scanner
fun main() {
print("Enter String : ")
println()
var min = readLine()
println("Factorial of $min = " + factorialOfNumber(min!!.toInt()))
}
private fun factorialOfNumber(num: Int): Long {
var factorial: Long = 1
for (i in 1..num) {
// factorial = factorial * i;... | 824 | Java | 174 | 6 | c3949d3d4bae20112e007af14d4657cc96142d69 | 383 | program | MIT License |
updater/src/main/java/org/runestar/client/updater/Updater.kt | Xendevgit | 252,574,620 | true | {"Markdown": 31, "Maven POM": 21, "Text": 2, "Kotlin": 587, "Java": 37, "XML": 2, "YAML": 1} | @file:JvmName("Updater")
package org.runestar.client.updater
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import org.runestar.client.common.lookupClassLoader
import org.runestar.client.updater.common.ClassHook
import java.net.URL
val hooksFile: U... | 0 | Kotlin | 0 | 0 | bb09c640990498bd780be499485a3c1046283006 | 618 | openosrs-deob | MIT License |
src/com/marcherdiego/events/navigator/ProjectArchitectureGraph.kt | marcherdiego | 382,966,891 | false | {"Markdown": 1, "Ignore List": 1, "Git Attributes": 1, "Text": 1, "Java": 1, "Kotlin": 14, "SVG": 5, "XML": 1} | package com.marcherdiego.events.navigator
import com.intellij.openapi.module.ModuleManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.rootManager
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiManager
import com.intellij.ps... | 0 | Kotlin | 0 | 3 | 2dc7bf5531125c64c8cd075d5d642aaed18f3acb | 8,952 | bus-events-navigator | Apache License 2.0 |
kamp-streamer/src/main/kotlin/ch/leadrian/samp/kamp/streamer/runtime/entity/DistanceBasedGlobalStreamable.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.streamer.runtime.entity
interface DistanceBasedGlobalStreamable : DistanceBasedStreamable, GlobalStreamable | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 138 | kamp | Apache License 2.0 |
stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/StreamAttachmentFactories.kt | GetStream | 177,873,527 | false | null | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 34 | null | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 8,293 | stream-chat-android | FSF All Permissive License |
crypto_bnb/src/test/java/io/noone/androidcore/bnb/BnbBep2Test.kt | noonewallet | 596,116,671 | false | {"Kotlin": 331895, "C": 329584, "Java": 9270, "C++": 4886, "CMake": 1661} | package io.noone.androidcore.bnb
import io.noone.androidcore.hd.ChildNumber
import io.noone.androidcore.hd.DeterministicSeed
import io.noone.androidcore.utils.hex
import org.junit.Assert
import org.junit.Test
class BnbBep2Test {
private val seed = "c4eb38a2e9a353c180e8e74c474e9192633f81afdbaa49d0c6207def597dafc1... | 1 | Kotlin | 0 | 0 | fa9199bd065a4a1a17c52c4cbf8608c9dcb8e55c | 2,709 | noone-android-core-crypto | MIT License |
plugins/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/dynamic/DynamicMembersStartupActivity.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.plugins.groovy.annotator.intentions.dynamic
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.service
import com.intellij.openap... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 1,171 | intellij-community | Apache License 2.0 |
src/main/kotlin/xyz/mahasamut/gun_game/GunGame.kt | M4h45amu7x | 619,067,634 | false | null | package xyz.mahasamut.gun_game
import org.bukkit.plugin.java.JavaPlugin
import xyz.mahasamut.gun_game.command.CommandManager
import xyz.mahasamut.gun_game.config.ConfigManager
import xyz.mahasamut.gun_game.database.DatabaseManager
import xyz.mahasamut.gun_game.listener.ListenerManager
import xyz.mahasamut.gun_game.pla... | 0 | Kotlin | 0 | 1 | 854a37f1bbc2a57fcbe76b731471d4a1cad44010 | 1,036 | gun-game | Apache License 2.0 |
src/test/kotlin/io/github/kevinah95/kdriller/TestDMM.kt | kevinah95 | 662,345,413 | false | {"Kotlin": 156366} | /*
* Copyright 2023 <NAME>
* Copyright 2018-2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 1 | Kotlin | 1 | 2 | cf4d63bc1bceeaceabeaf74660e9c62acf5ac41a | 7,424 | KDriller | Apache License 2.0 |
example/server/src/main/kotlin/com/yt8492/commonjudgesystem/example/server/Main.kt | yt8492 | 419,847,372 | false | {"Kotlin": 62662} | package com.yt8492.commonjudgesystem.example.server
import com.yt8492.commonjudgesystem.example.server.db.TweetDB
import com.yt8492.commonjudgesystem.library.TestCase
import com.yt8492.commonjudgesystem.example.server.db.UserDB
import com.yt8492.commonjudgesystem.example.server.http.client.HttpClientFactory
import com... | 0 | Kotlin | 0 | 0 | e8bde9962b0883bc200cee88af2841731d14ed64 | 6,124 | CommonJudgeSystem | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsmanageprisonvisitsorchestration/service/listeners/notifiers/PrisonerIncentivesDeletedNotifier.kt | ministryofjustice | 575,484,836 | false | {"Kotlin": 303948, "Dockerfile": 1199} | package uk.gov.justice.digital.hmpps.hmppsmanageprisonvisitsorchestration.service.listeners.notifiers
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.stereotype.Component
import uk.gov.justice.digital.hmpps.hmppsmanageprisonvisitsorchestration.service.listeners.events.DomainEvent
const v... | 0 | Kotlin | 0 | 3 | 2818f51773c97643283026e7883651785bd18ab9 | 611 | hmpps-manage-prison-visits-orchestration | MIT License |
Cache_them_all/app/src/main/java/pl/wti/projekt/cache_them_all/NetworkController.kt | lsmierzchalski | 130,748,775 | false | null | package pl.wti.projekt.cache_them_all
import android.text.TextUtils
import com.android.volley.toolbox.Volley
import com.android.volley.RequestQueue
import android.app.Application
import com.android.volley.Request
/**
* Created by lukis on 18.05.2018.
*/
class NetworkController : Application() {
private latein... | 1 | null | 1 | 1 | f8fb7104a7966feedb8e665cf0a9d14f40c45bbf | 1,274 | Cache_them_all | MIT License |
compose/runtime/runtime/src/androidAndroidTest/kotlin/androidx/compose/runtime/collection/SparseArrayImplTest.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2023 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... | 18 | null | 811 | 4,638 | f168bda5fab13408b85eafc3222cc84a6955cdf6 | 2,612 | androidx | Apache License 2.0 |
api/src/main/java/co/railgun/spica/api/internal/Service.kt | ProjectRailgun | 408,317,880 | false | {"Kotlin": 166353, "Java": 20380} | package co.railgun.spica.api.internal
import co.railgun.spica.api.internal.home.HomeService
import co.railgun.spica.api.internal.user.UserService
import co.railgun.spica.api.internal.watch.WatchService
import retrofit2.create
internal val homeService: HomeService by lazyService()
internal val userService: UserService... | 0 | Kotlin | 0 | 2 | 394f3303fc261289a82e7a39dd77a9e413ca27ed | 477 | Spica | MIT License |
app/src/main/kotlin/me/rei_m/hbfavmaterial/fragments/EditUserIdDialogFragment.kt | mactkg | 57,898,218 | true | {"Kotlin": 276223, "HTML": 2437} | package me.rei_m.hbfavmaterial.fragments
import android.app.Dialog
import android.app.ProgressDialog
import android.os.Bundle
import android.support.design.widget.TextInputLayout
import android.support.v4.app.DialogFragment
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.AppCompatButto... | 0 | Kotlin | 0 | 0 | a6bba3083882f670ca677ff49898839c85f790ee | 4,588 | HBFav_material | MIT License |
0850.Rectangle Area II.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal open class Node {
@kotlin.jvm.JvmField
var l: Int = 0
@kotlin.jvm.JvmField
var r: Int = 0
@kotlin.jvm.JvmField
var cnt: Int = 0
var length: Int = 0
}
internal class SegmentTree(private val nums: IntArray) {
private val tr: Array<Node>
init {
val n = nums.size - 1
tr = arrayOfNulls(n... | 0 | Kotlin | 0 | 0 | 17a80985d970c8316fb694e4952692e598d700af | 2,384 | kotlin-leetcode | MIT License |
backbone/src/commonMain/kotlin/Backbone.kt | CLOVIS-AI | 582,958,014 | false | {"Kotlin": 164778, "Shell": 556, "Dockerfile": 339} | package opensavvy.backbone
/**
* The parent interface for an implementation of the Backbone pattern.
*
* For more information on the Backbone pattern, please read the module-level documentation.
*
* @param Value The object this backbone manages.
* @param Failure Failures that may be returned when calling [Ref.re... | 0 | Kotlin | 0 | 0 | 7af78a187cd39c06afb40ad477a6db5e25e2771b | 493 | Pedestal | Apache License 2.0 |
content-types/content-types-core-services/src/test/kotlin/org/orkg/contenttypes/domain/actions/literaturelists/AbstractLiteratureListSectionValidatorUnitTest.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 4676143, "Cypher": 219284, "Python": 4881, "Shell": 2767, "Groovy": 1936, "HTML": 240} | package org.orkg.contenttypes.domain.actions.literaturelists
import io.kotest.assertions.asClue
import io.kotest.matchers.shouldBe
import io.mockk.clearAllMocks
import io.mockk.confirmVerified
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import java.util.*
import org.junit.jupiter.api.AfterEach
i... | 0 | Kotlin | 0 | 4 | a12880deb7e292c540287dedc1a4f17ef60b7faa | 5,441 | orkg-backend | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.