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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dataset/src/commonMain/kotlin/org/jetbrains/kotlinx/dl/dataset/preprocessing/PreprocessingPipeline.kt | dosier | 376,921,671 | true | {"Kotlin": 1569528, "Jupyter Notebook": 50439} | package org.jetbrains.kotlinx.dl.dataset.preprocessing
import org.jetbrains.kotlinx.dl.dataset.shape.TensorShape
/**
* This class is a special type of Operation which is used to build typesafe pipeline of preprocessing operations.
* Kudos to [@juliabeliaeva](https://github.com/juliabeliaeva) for the idea.
*/
publi... | 0 | Kotlin | 0 | 0 | 71a87e8ddf295cc90af094e4064ec174a6473434 | 811 | KotlinDL | Apache License 2.0 |
idea/idea-core/src/org/jetbrains/kotlin/idea/statistics/MoveRefactoringFUSCollector.kt | android | 263,405,600 | true | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.statistics
object MoveRefactoringFUSCollector {
/**
* @param isDe... | 0 | Kotlin | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 1,302 | kotlin | Apache License 2.0 |
buildSrc/src/main/kotlin/Dependencies.kt | manosbatsis | 372,983,603 | true | {"Kotlin": 363535, "Java": 2350, "Ruby": 172} | object Dependencies {
const val detektFormatting = "io.gitlab.arturbosch.detekt:detekt-formatting:${Versions.detekt}"
}
| 1 | null | 0 | 0 | b1056475bf2ec833dd5b40327ab7cf8589aceacf | 124 | sealed-enum | Apache License 2.0 |
chords-core/src/androidMain/kotlin/com/chrynan/chords/widget/ChordWidget.kt | chRyNaN | 51,400,387 | false | null | package com.chrynan.chords.widget
import android.content.Context
import android.graphics.*
import android.os.Parcel
import android.os.Parcelable
import android.util.AttributeSet
import android.view.View
import com.chrynan.chords.R
import com.chrynan.chords.model.*
import com.chrynan.chords.parcel.ChordChartParceler
im... | 0 | null | 5 | 28 | 5a2e21c9b4789c878f0459e3d5c6fcfcbc66658d | 25,196 | chords | Apache License 2.0 |
snowplow-tracker/src/androidTest/java/com/snowplowanalytics/snowplow/event/SelfDescribingTest.kt | snowplow | 20,056,757 | false | {"Kotlin": 1214708, "Java": 38410, "Shell": 78} | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... | 16 | Kotlin | 62 | 102 | 0605fd08181d2017e544e5c1daa862b910ef439c | 1,221 | snowplow-android-tracker | Apache License 2.0 |
lib/src/commonMain/kotlin/maryk/lib/time/DateTime.kt | marykdb | 290,454,412 | false | null | package maryk.lib.time
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone.Companion.UTC
import kotlinx.datetime.atTime
import kotlinx.datetime.toLocalDateTime
object DateTime {
val MIN = Date.MIN.atTime(0, 0)
val MAX_IN_SECONDS ... | 0 | Kotlin | 0 | 4 | 4af6f983a1306d1340d09eb7217d4af1384c2042 | 783 | maryk | Apache License 2.0 |
src/test/kotlin/dev/shtanko/algorithms/dp/FibonacciSequenceTest.kt | ashtanko | 203,993,092 | false | {"Kotlin": 7429739, "Shell": 1168, "Makefile": 1144} | /*
* Copyright 2020 Oleksii Shtanko
*
* 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 agree... | 6 | Kotlin | 0 | 19 | c6e2befdce892e9f2caf1d98f54dc1dd9b2c89ba | 3,453 | kotlab | Apache License 2.0 |
src/test/kotlin/dev/shtanko/algorithms/leetcode/MinimumTimeVisitingAllPointsTest.kt | ashtanko | 203,993,092 | false | {"Kotlin": 5349245, "Shell": 1158, "Makefile": 820} | /*
* Copyright 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... | 4 | Kotlin | 0 | 18 | ee25dc01a6031963efe57078de6e803e3146512a | 3,137 | kotlab | Apache License 2.0 |
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/model/StationModel.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.infrastructure.database.model
import com.fasterxml.jackson.annotation.JsonManagedReference
import fr.gouv.cacem.monitorenv.domain.entities.station.StationEntity
import fr.gouv.cacem.monitorenv.domain.use_cases.station.dtos.FullStationDTO
import jakarta.persistence.*
import org.hibernat... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 2,524 | monitorenv | MIT License |
src/main/kotlin/su/vshk/billing/bot/util/SbssTariffParser.kt | arendering | 682,932,625 | false | {"Kotlin": 408431} | package su.vshk.billing.bot.util
import su.vshk.billing.bot.service.dto.Tariff
class SbssTariffParser private constructor() {
companion object {
private val logger = getLogger()
private val channelsRegex = """^\d+""".toRegex()
/**
* Парсит строку с информацией по тарифу, получе... | 0 | Kotlin | 0 | 0 | 4ab7bd2422225ad990716717f0f791ecae8901f7 | 1,409 | billing-bot | MIT License |
src/main/kotlin/no/nav/k9/los/tjenester/avdelingsleder/oppgaveko/SorteringDatoDto.kt | navikt | 238,874,021 | false | {"Kotlin": 1562879, "JavaScript": 741, "Shell": 659, "Dockerfile": 343, "PLpgSQL": 167} | package no.nav.k9.los.tjenester.avdelingsleder.oppgaveko
import java.time.LocalDate
data class SorteringDatoDto (
val id: String,
var fomDato: LocalDate?,
var tomDato: LocalDate?
)
| 17 | Kotlin | 0 | 0 | 9c5db8002a7c3da23de1d3b767f852d05f8a685c | 195 | k9-los-api | MIT License |
app/src/main/java/com/aitgacem/budgeter/ui/viewmodels/DepositViewModel.kt | naitgacem | 722,472,421 | false | {"Kotlin": 91294} | package com.aitgacem.budgeter.ui.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.aitgacem.budgeter.data.TransactionsRepository
import com.aitgacem.budgeter.data.model.Transaction
import com.aitgacem.budgeter.ui.components.Category
import dagger.hilt.android.lifecycle.... | 0 | Kotlin | 0 | 0 | e02bab7fff751a6cb7714dc932139a2c30fcecbf | 2,578 | Budgeter | Apache License 2.0 |
app/src/main/java/chat/rocket/android/chatroom/presentation/ChatRoomNavigator.kt | powermobileweb | 170,920,708 | false | null | package chat.rocket.android.chatroom.presentation
import chat.rocket.android.R
import chat.rocket.android.chatdetails.ui.TAG_CHAT_DETAILS_FRAGMENT
import chat.rocket.android.chatinformation.ui.messageInformationIntent
import chat.rocket.android.chatroom.ui.ChatRoomActivity
import chat.rocket.android.chatroom.ui.chatRo... | 0 | Kotlin | 1 | 7 | 3c6dc69e04ac9f96ea90cc614261355d18863b45 | 4,769 | Rocket.Chat.Android | MIT License |
ksp-di/testksp/src/main/java/com/azharkova/multiplatform_sample/ui/adapter/SectionsPagerAdapter.kt | anioutkazharkova | 388,542,263 | false | null | package com.example.movies.ui.adapter
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import androidx.fragment.app.FragmentStatePagerAdapter
import com.example.movies.ui.movieslist.MoviesListFragment
imp... | 0 | null | 1 | 8 | e211991b9f3fdcae5528d2389ac580df751d46b9 | 1,405 | ksp-di-playground | Apache License 2.0 |
shared/feature/geminio-sdk/src/main/kotlin/ru/hh/plugins/geminio/sdk/template/models/GeminioRecipeExecutorData.kt | hhru | 159,637,875 | false | null | package ru.hh.plugins.geminio.sdk.template.models
import com.android.tools.idea.wizard.template.ModuleTemplateData
import com.intellij.openapi.project.Project
import ru.hh.plugins.freemarker_wrapper.FreemarkerConfiguration
import ru.hh.plugins.geminio.sdk.template.aliases.AndroidStudioTemplateParameter
internal data... | 17 | null | 11 | 97 | 2d6c02fc814eff3934c17de77ef7ade91d3116f5 | 635 | android-multimodule-plugin | MIT License |
app/src/main/java/com/a10miaomiao/bilimiao/entity/HomeRegionInfo.kt | 10miaomiao | 115,510,569 | false | null | package com.a10miaomiao.bilimiao.entity
import android.content.Context
import android.preference.PreferenceManager
import com.a10miaomiao.bilimiao.R
/**
* Created by 10喵喵 on 2017/9/16.
*/
data class HomeRegionInfo (
var name: String,
var icon: Int
){
companion object{
fun create(context:... | 1 | null | 1 | 20 | dfd78b56b5c41eb49454836ee2bce5cefc667db7 | 2,053 | bilimiao | Apache License 2.0 |
main/src/main/java/st/slex/messenger/main/data/user/UserData.kt | stslex | 378,152,043 | false | null | package st.slex.messenger.main.data.user
interface UserData {
fun id(): String
fun phone(): String
fun username(): String
fun url(): String
fun bio(): String
fun fullName(): String
fun state(): String
data class Base(
val id: String = "",
val phone: String = "",
... | 1 | Kotlin | 0 | 0 | 8cb7aa0df9f90e57bbb9b096ef21c7c8ceb1a287 | 818 | Messenger | Apache License 2.0 |
app/src/main/java/com/pechuro/bsuirschedule/feature/appwidget/ScheduleWidgetDataProvider.kt | Ilyshka991 | 147,244,674 | false | null | package com.pechuro.bsuirschedule.feature.appwidget
import com.pechuro.bsuirschedule.domain.common.getOrDefault
import com.pechuro.bsuirschedule.domain.entity.Exam
import com.pechuro.bsuirschedule.domain.entity.Lesson
import com.pechuro.bsuirschedule.domain.entity.LocalDate
import com.pechuro.bsuirschedule.domain.enti... | 1 | null | 1 | 8 | 8e07557025ed64784821fe31f5e02c53c976e5f4 | 5,108 | BsuirSchedule | Apache License 2.0 |
app/src/main/java/com/example/lemonade/MainActivity.kt | rishhhkumar | 557,897,343 | false | {"Kotlin": 8393} | package com.example.lemonade
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
im... | 0 | Kotlin | 0 | 0 | 99451d1669160bb3fb1788cf38aacbd3aeb20882 | 4,954 | Lemonade | MIT License |
cinescout/common/src/commonMain/kotlin/cinescout/common/model/Keyword.kt | 4face-studi0 | 280,630,732 | false | null | package cinescout.common.model
data class Keyword(
val id: TmdbKeywordId,
val name: String
)
| 19 | Kotlin | 2 | 3 | d64398507d60a20a445db1451bdd8be23d65c9aa | 102 | CineScout | Apache License 2.0 |
app/src/main/java/pl/grzybdev/openmic/client/receivers/signals/DialogSignalReceiver.kt | GrzybDev | 502,872,040 | false | null | package pl.grzybdev.openmic.client.receivers.signals
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import pl.grzybdev.openmic.client.enumerators.DialogType
import pl.grzybdev.openmic.client.interfaces.IDialog
import pl.grzybdev.openmic.client.singletons.AppData
... | 0 | Kotlin | 0 | 0 | ebb28c031e8ece10dc326159cc5c57eb0d1bf6c6 | 1,185 | OpenMicClient | MIT License |
app/src/main/java/ir/softap/mefit/ui/abstraction/DaggerXActivity.kt | alirezanobahari | 184,204,774 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 1, "Proguard": 1, "Kotlin": 139, "XML": 125, "Java": 3} | package ir.softap.mefit.ui.abstraction
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import dagger.android.AndroidInjection
import javax.inject.Inject
abstract class DaggerXActivity: BaseActivity() {
@Inject
lateinit var viewModelFactory: ViewModelProvider.Factory
override fun onC... | 0 | Kotlin | 0 | 1 | 2b910f96bde535c543b4a6cd7fcf2acd0198f5a8 | 446 | mefit-kotlin | MIT License |
app/src/main/java/io/wookey/wallet/feature/generate/create/BackupMnemonicViewModel.kt | WooKeyWallet | 176,637,569 | false | {"Kotlin": 448185, "Java": 407883, "C++": 135434, "CMake": 7579, "Shell": 1922} | package io.wookey.wallet.feature.generate.create
import android.arch.lifecycle.MutableLiveData
import android.view.View
import io.wookey.wallet.R
import io.wookey.wallet.base.BaseViewModel
import io.wookey.wallet.core.XMRRepository
import io.wookey.wallet.core.XMRWalletController
import io.wookey.wallet.data.AppDataba... | 6 | Kotlin | 20 | 23 | 93d0d6a4743e95ab2455bb6ae24b2cc6b616bd90 | 2,690 | monero-wallet-android-app | MIT License |
app-login/src/main/java/com/llj/login/LoginMvcBaseFragment.kt | liulinjie1990823 | 133,350,610 | false | {"Gradle": 94, "Python": 7, "JSON": 2, "Java Properties": 40, "Shell": 54, "Text": 149, "JavaScript": 32, "Ignore List": 72, "Markdown": 59, "Java": 651, "INI": 17, "Proguard": 56, "XML": 352, "Groovy": 16, "CMake": 13, "C++": 49, "C": 704, "Kotlin": 304, "Roff Manpage": 30, "YAML": 11, "CSS": 6, "JAR Manifest": 1, "HT... | package com.llj.login
import androidx.viewbinding.ViewBinding
import com.llj.component.service.PlatformMvcBaseFragment
import com.llj.application.router.CRouter
/**
* ArchitectureDemo.
* describe:
* @author llj
* @date 2019/3/14
*/
abstract class LoginMvcBaseFragment<V : ViewBinding> : PlatformMvcBaseFragment<V>... | 1 | null | 1 | 1 | 7c5d7fe1e5e594baba19778e0ed857325ce58095 | 404 | ArchitectureDemo | Apache License 2.0 |
project/app/src/androidTest/java/com/nexte/nexte/MatchScene/MatchModelTestTest.kt | fga-gpp-mds | 124,143,396 | false | null | //package com.nexte.nexte.MatchScene
//
//import org.junit.Assert.*
//
//class MatchModelTestTest
| 10 | null | 4 | 9 | b603be5a55de445349805b319275c965fe4a3a92 | 98 | 2018.1_Nexte | MIT License |
core/src/main/kotlin/io/github/oleksivio/tl/kbot/core/controller/network/ApiProvider.kt | oleksivio | 145,889,451 | false | null | package io.github.oleksivio.tl.kbot.core.controller.network
import io.github.oleksivio.tl.kbot.core.model.ErrorResponse
import io.github.oleksivio.tl.kbot.server.api.model.method.Action
abstract class ApiProvider(token: String) {
companion object {
const val TELEGRAM_SERVER_URL = "https://api.telegram.or... | 0 | null | 0 | 5 | d38b5be33c5217a3f91e44394995f112fd6b0ab9 | 543 | tl-kbot | Apache License 2.0 |
projects/KtorApplications/ktor-utils/src/io/ktor/cio/Channels.kt | mx-smblt | 152,640,893 | true | {"Text": 680, "Markdown": 1247, "Gradle": 123, "Shell": 59, "Ignore List": 305, "Batchfile": 38, "XML": 288, "Java Properties": 43, "Kotlin": 581, "INI": 3, "Java": 13, "Proguard": 6, "JSON": 1057, "HTML": 2613, "JavaScript": 7548, "CMake": 1, "Makefile": 71, "C++": 42, "JAR Manifest": 61, "SQL": 31, "Motorola 68K Asse... | package io.ktor.cio
import java.io.*
open class ChannelIOException(message: String, exception: Throwable) : IOException(message, exception)
class ChannelWriteException(message: String = "Cannot write to a channel", exception: Throwable) : ChannelIOException(message, exception)
class ChannelReadException(message: Str... | 0 | JavaScript | 0 | 0 | e6e5939d82e8526d381755811e27fefbc6aabdc1 | 420 | ktor | Apache License 2.0 |
idea/idea-analysis/src/org/jetbrains/kotlin/idea/kdoc/KDocReference.kt | errandir | 50,827,951 | true | {"Markdown": 33, "XML": 603, "Ant Build System": 32, "Ignore List": 8, "Maven POM": 47, "Kotlin": 16416, "Java": 4173, "CSS": 10, "Shell": 7, "Batchfile": 7, "Java Properties": 9, "Gradle": 67, "HTML": 114, "INI": 7, "Groovy": 19, "JavaScript": 66, "Text": 3441, "JFlex": 3, "JAR Manifest": 2, "Roff": 30, "Roff Manpage"... | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 0 | e0a394ec62f364a4a96c15b2d2adace32ce61e9e | 8,422 | kotlin | Apache License 2.0 |
plugins/maven/src/main/java/org/jetbrains/idea/maven/importing/MavenPomPathModuleService.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.maven.importing
import com.intellij.openapi.components.BaseState
import com.intellij.openapi.components.SimplePersistentStateComponent
import com.intellij.openapi.componen... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 990 | intellij-community | Apache License 2.0 |
compiler/testData/klib/evolution/changeConstInitialization.kt | JetBrains | 3,432,266 | false | null | // MODULE: lib
// FILE: A.kt
// VERSION: 1
const val bar = 17
const val muc = "first"
object X {
const val tis = "second"
const val roo = 19
}
class Y {
companion object {
const val zeb = 23
const val loo = "third"
}
}
// FILE: B.kt
// VERSION: 2
const val bar = 31
const val muc = "... | 181 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 837 | kotlin | Apache License 2.0 |
app/src/main/java/com/joeracosta/covidtracker/data/db/CovidDataDao.kt | JayyyR | 263,769,003 | false | null | package com.joeracosta.covidtracker.data.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.joeracosta.covidtracker.data.CovidData
import io.reactivex.Flowable
import java.util.*
@Dao
interface CovidDataDao {
@Query("SELECT * FROM covid_data_table WHERE location = :stat... | 1 | Kotlin | 1 | 1 | a7a8f37a4182bbf9ecc864ca52ff4358ded4f91d | 553 | SimpleCovidData | MIT License |
app/src/main/java/com/huotu/android/mifang/mvp/contract/CashContract.kt | hottech-jxd | 163,493,643 | false | null | package com.huotu.android.mifang.mvp.contract
import com.huotu.android.mifang.bean.ApiResult
import com.huotu.android.mifang.bean.CashIndex
import com.huotu.android.mifang.bean.CashRecord
import com.huotu.android.mifang.mvp.IPresenter
import com.huotu.android.mifang.mvp.IView
interface CashContract {
interface Pr... | 1 | null | 1 | 1 | d409993f3900a1ebef52bfd8ea2bbbd7799bce79 | 817 | mifang-shopman-android | Apache License 2.0 |
openrndr-kartifex/src/commonMain/kotlin/utils/regions/Split.kt | openrndr | 122,222,767 | false | null | package org.openrndr.kartifex.utils.regions
import org.openrndr.kartifex.*
import org.openrndr.kartifex.utils.Intersections
import org.openrndr.kartifex.utils.Intersections.SPATIAL_EPSILON
import org.openrndr.kartifex.utils.Scalars
import org.openrndr.kartifex.utils.SweepQueue
import utils.DoubleAccumulator
object Sp... | 23 | null | 73 | 880 | 2ef3c463ecb66701771dc0cf8fb3364e960a5e3c | 5,512 | openrndr | BSD 2-Clause FreeBSD License |
matrix-sdk-android/src/main/java/im/vector/matrix/android/api/auth/registration/RegistrationWizard.kt | aalzehla | 287,565,471 | false | null | /*
* Copyright 2019 New Vector 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 applicable law or agreed ... | 1 | null | 1 | 1 | ee1d5faf0d59f9cc1c058d45fae3e811d97740fd | 1,851 | element-android | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/command/intake/arm/IntakeArmGoToPositionCmd.kt | DevoltRobotics | 702,717,251 | false | {"Gradle": 7, "Java Properties": 1, "Shell": 1, "Text": 4, "Ignore List": 2, "Batchfile": 1, "Markdown": 7, "INI": 1, "Kotlin": 53, "XML": 11, "Java": 95, "JSON": 1} | package org.firstinspires.ftc.teamcode.command.intake.arm
import org.firstinspires.ftc.teamcode.subsystem.IntakeArmSubsystem
import com.acmerobotics.roadrunner.profile.MotionProfileGenerator
import com.acmerobotics.roadrunner.profile.MotionState
import com.github.serivesmejia.deltacommander.DeltaCommand
import com.qua... | 0 | Java | 0 | 0 | 72a32f8475e43f97dc980909614559419848adcf | 1,179 | Phobos-CenterStage | BSD 3-Clause Clear License |
compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/GeneratorExtensions.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.psi2ir.generators
import org.jetbrains.kotlin.descriptors.ClassDescriptor
import... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 3,400 | kotlin | Apache License 2.0 |
dns-discovery/src/integrationTest/kotlin/org/apache/tuweni/discovery/DNSResolverTest.kt | apache | 178,461,625 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 47 | null | 54 | 133 | a93e49473a559dfe1078442578253478b9989ec0 | 2,309 | incubator-tuweni | Apache License 2.0 |
app/src/main/java/blue/aodev/animeultimetv/presentation/screen/search/SearchActivity.kt | esnaultdev | 94,973,529 | false | {"Markdown": 2, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "SVG": 1, "Proguard": 1, "XML": 17, "Kotlin": 55, "Java": 3} | package blue.aodev.animeultimetv.presentation.screen.search
import android.content.Intent
import android.os.Bundle
import android.view.KeyEvent
import blue.aodev.animeultimetv.R
import blue.aodev.animeultimetv.presentation.screen.LeanbackActivity
class SearchActivity : LeanbackActivity() {
private lateinit var f... | 1 | null | 1 | 1 | 481bb13907ec07226180290c5dbfc4e96284d950 | 1,178 | AnimeUltimeTv | MIT License |
app/src/main/kotlin/be/zvz/covid/remaining/vaccine/App.kt | woobinn | 392,902,676 | true | {"Java": 30698, "Kotlin": 23635} | package be.zvz.covid.remaining.vaccine
import cmonster.browsers.ChromeBrowser
import cmonster.cookies.DecryptedCookie
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.json.JsonMapper
import com.fasterxml.jackson.module.afterburner.AfterburnerModule
import com.fasterxml... | 0 | null | 0 | 0 | 96b3cce6c00acd0e28e8a8377dcffab193d37c3a | 17,995 | korea-covid-19-remaining-vaccine | Apache License 2.0 |
http4k-core/src/main/kotlin/org/http4k/routing/routing.kt | spruceholdings | 262,562,771 | false | null | package org.http4k.routing
import org.http4k.core.Body
import org.http4k.core.ContentType
import org.http4k.core.Filter
import org.http4k.core.Headers
import org.http4k.core.HttpHandler
import org.http4k.core.Method
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.core.Uri
import org.ht... | 1 | null | 1 | 1 | e58450e03bf3676bf7277c27be7f605116c3ef4f | 7,233 | http4k | Apache License 2.0 |
1.0/app/src/main/java/com/kubekbreha/instagrambot/mainActivity/ListsAdapter.kt | kubekbreha | 125,869,339 | false | null | package com.kubekbreha.instagrambot.mainActivity
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.cardview.widget.CardView
import andr... | 1 | null | 1 | 1 | d27278bf3ee0d8a80492f7f634d63de5166b8440 | 3,413 | InstagramFollowBot | MIT License |
plugins/kotlin/idea/tests/testData/inspectionsLocal/nonVarPropertyInExternalInterface/externalInterfaceNotReact.kt | ingokegel | 72,937,917 | false | null | // JS
// PROBLEM: none
external interface ExternalInterfaceWithProperties {
<caret>val pl: String
var pr: String
}
| 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 124 | intellij-community | Apache License 2.0 |
modules/kgpu/src/jvmMain/kotlin/io/github/kgpu/Id.kt | sh54 | 337,487,892 | true | {"INI": 1, "Gradle Kotlin DSL": 9, "Shell": 1, "Markdown": 14, "Batchfile": 1, "Text": 1, "Ignore List": 1, "Kotlin": 34, "YAML": 2, "Java Properties": 1, "TOML": 1, "HTML": 1, "GLSL": 3, "Java": 99, "C": 1} | package io.github.kgpu
/**
* Represents a Wgpu ID
*
* Bits 0-32 are the index Bits 32-61 are the epoch Bits 61-64 are the backend
*/
class Id(val index: Int, val epoch: Int, val backend: Int) {
companion object {
fun fromLong(input: Long): Id {
val backend = input shr 61
val ep... | 0 | null | 0 | 0 | e73635f0987ea5f31dc0818400a7a17aa91066d9 | 868 | kgpu | MIT License |
kotlin/test-fixtures-and-suites-friends/src/main/kotlin/com/example/UsagesFromKotlin.kt | TWiStErRob | 175,983,199 | false | null | package com.example
// Same source set, everything is good.
@Suppress("unused")
class UseMainFromKotlin {
private val useJavaPublic = MainJavaPublic()
private val useJavaInternal = MainJavaPackagePrivate()
private val useKotlinPublic = MainKotlinPublic()
private val useKotlinInternal = MainKotlinInternal()
}
// P... | 0 | Kotlin | 3 | 0 | d3019d7f0bba4e08a8a84b75c2673a26dc30b2db | 1,354 | repros | The Unlicense |
features/home/domain/src/main/java/io/github/japskiddin/sudoku/feature/home/domain/UiState.kt | Japskiddin | 766,410,608 | false | {"Kotlin": 189521} | package io.github.japskiddin.sudoku.feature.home.domain
import androidx.annotation.StringRes
public sealed class UiState {
public class Loading(@StringRes public val message: Int) : UiState()
public data object Menu : UiState()
public companion object {
public val Initial: UiState = Menu
}
} | 0 | Kotlin | 0 | 0 | b1bdfa5f5afa8fe820360386092ee1aa202fdf91 | 308 | SudokuGame | Apache License 2.0 |
src/main/kotlin/HigherFunction/TypicFunction.kt | Kingwentao | 191,273,439 | false | null | package HigherFunction
import java.io.BufferedReader
import java.io.File
import java.io.FileReader
import java.lang.StringBuilder
/**
* Created by wentaoKing on 2019-06-12
* description: 常用的高阶函数
*/
fun main(args: Array<String>) {
val list = listOf(1,3,4,5,10,8,2)
//1.在list的基础上创建一个新的集合并遍历
var newList... | 0 | Kotlin | 0 | 0 | 68aa347999aa615c86bedd8ca08908f2693fe475 | 3,986 | KotlinofLearn | Apache License 2.0 |
app/ui/legacy/src/main/java/com/fsck/k9/ui/ecckeygen/EccKeygenViewModel.kt | PlumStream24 | 629,172,650 | false | null | package com.fsck.k9.ui.ecckeygen
import androidx.lifecycle.ViewModel
internal class EccKeygenViewModel() : ViewModel()
| 0 | Kotlin | 1 | 0 | 4aa78659f95382f92f5b59c36cfe47825cb75d00 | 121 | k-9-ecc | Apache License 2.0 |
app/src/test/java/com/example/bletracker/data/utils/ble/CollectionBeacontoEntriesExtensionKtTest.kt | sowalks | 749,925,143 | false | {"Kotlin": 103956} | package com.example.bletracker.data.utils.ble
import org.junit.Test
class CollectionBeacontoEntriesExtensionKtTest {
@Test
fun toListEntry() {
}
} | 0 | Kotlin | 0 | 0 | d3c493542a3208958a9a047f6ccb7342815cd7e2 | 161 | android-ble-tracker | Apache License 2.0 |
koko-demo/src/main/java/com/hmware/android/koko_demo/movies/details/WireMovieDetails.kt | HM-Ware | 364,317,841 | false | null | package com.hmware.android.koko_demo.movies.details
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.core.parameter.parametersOf
import org.koin.dsl.module
val movieDetailsModule = module {
// ViewModel for Detail View
viewModel { (id: String) -> MovieDetailsViewModel(get { parametersOf(id) })... | 0 | Kotlin | 0 | 0 | 895b95f5ec1363a27179c5572fa1d48ab235e378 | 324 | koko-android | Apache License 2.0 |
src/test/kotlin/com/github/gantsign/maven/doxia/sink/kotlin/content/TableRowsTest.kt | gantsign | 133,130,534 | false | null | /*-
* #%L
* doxia-sink-api-ktx
* %%
* Copyright (C) 2018 GantSign 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
*
* U... | 0 | Kotlin | 0 | 0 | 350360b59bf93fc7ec4819574cca9ac418c9ece3 | 6,586 | doxia-sink-api-ktx | Apache License 2.0 |
core/src/commonMain/kotlin/it/unibo/tuprolog/core/Cons.kt | zakski | 302,286,056 | true | {"Kotlin": 2201746, "Java": 13453, "ANTLR": 10228} | package it.unibo.tuprolog.core
import it.unibo.tuprolog.core.impl.ConsImpl
import kotlin.js.JsName
import kotlin.jvm.JvmStatic
import it.unibo.tuprolog.core.List as LogicList
interface Cons : LogicList {
override val isCons: Boolean
get() = true
override val isEmptyList: Boolean
get() = fals... | 0 | null | 0 | 0 | ee678d1cce0aca11c33aa0281ac9cd49e57eb465 | 1,013 | thunderjaw | Apache License 2.0 |
url-gen/src/test/kotlin/com/cloudinary/transformation/TransformationTest.kt | cloudinary | 226,841,227 | false | null | package com.cloudinary.transformation
import com.cloudinary.cldAssert
import com.cloudinary.transformation.BackgroundColor.Companion.color
import com.cloudinary.transformation.CustomFunction.Companion.wasm
import com.cloudinary.transformation.Transformation.Companion.transformation
import com.cloudinary.transformation... | 6 | Kotlin | 3 | 6 | 9e7dc35adc269d4de45c9b792e6132c2a6f7a245 | 11,152 | cloudinary_kotlin | MIT License |
lib/java/mobi/lab/components/button/LabButton.kt | LabMobi | 705,613,161 | false | {"Kotlin": 60205} | package mobi.lab.components.button
import android.content.Context
import android.util.AttributeSet
import com.google.android.material.button.MaterialButton
public open class LabButton : MaterialButton {
public constructor(context: Context) : super(context)
public constructor(context: Context, attrs: Attribute... | 0 | Kotlin | 0 | 1 | 15eda1fcb226277c4ab5597a764f8ed031b34bb3 | 472 | labcomponents-android | MIT License |
utility/src/main/java/org/oppia/util/gcsresource/GcsResouceAnnotations.kt | prathameshbhalekar | 263,243,180 | true | {"Kotlin": 2189262, "Shell": 1855} | // ktlint-disable filename
package org.oppia.util.gcsresource
import javax.inject.Qualifier
/** Corresponds to the default GCS Resource Bucket Name. */
@Qualifier annotation class DefaultResource
| 0 | Kotlin | 0 | 0 | 85a8c388d9e72822f6ab9f0e20023fa5648c9508 | 198 | oppia-android | Apache License 2.0 |
src/me/anno/utils/test/structures/GenericLists.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.utils.test.structures
import me.anno.utils.Warning.unused
fun main() {
testList(listOf(1, 2, 3))
testList(listOf("a", "b", "c"))
secondTest(listOf("cool house") as List<*>)
}
fun testList(list: List<*>) {
val clazz = list::class
// LOGGER.info(clazz.nestedClasses)
// LOGGER.in... | 0 | Kotlin | 1 | 8 | e5f0bb17202552fa26c87c230e31fa44cd3dd5c6 | 573 | RemsStudio | Apache License 2.0 |
src/main/kotlin/org/neo4j/graphql/CypherGenerator.kt | glevine | 104,232,440 | false | null | package org.neo4j.graphql
import graphql.language.*
import org.neo4j.kernel.internal.Version
fun <T> Iterable<T>.joinNonEmpty(separator: CharSequence = ", ", prefix: CharSequence = "", postfix: CharSequence = "", limit: Int = -1, truncated: CharSequence = "...", transform: ((T) -> CharSequence)? = null): String {
... | 1 | null | 1 | 1 | d006a734dca4328346c895a21e5fdc4c6c688ca3 | 13,030 | neo4j-graphql | Apache License 2.0 |
workflix/backend/backend/src/main/kotlin/de/se/team3/logic/DAOInterfaces/UserRoleDAOInterface.kt | elite-se | 221,695,449 | false | {"JavaScript": 227922, "Kotlin": 209131, "HTML": 6665, "CSS": 238} | package de.se.team3.logic.DAOInterfaces
import de.se.team3.logic.domain.UserRole
interface UserRoleDAOInterface {
fun getAllUserRoles(): List<UserRole>
fun getUserRole(userRoleID: Int): UserRole?
fun createUserRole(userRole: UserRole): Int
fun updateUserRole(userRole: UserRole)
fun deleteUserR... | 7 | JavaScript | 0 | 1 | c3d4bf7aea5b009f36deb7a4137df3107a8923c4 | 352 | workflix | MIT License |
plugins/groovy/src/org/jetbrains/plugins/groovy/refactoring/convertToStatic/ConvertToStaticIntention.kt | Im-dex | 161,265,572 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.refactoring.convertToStatic
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.Psi... | 1 | null | 1 | 1 | 570e9e8faa5b8c184387572bc819b917dfe7729e | 2,300 | intellij-community | Apache License 2.0 |
swc-binding/src/main/kotlin/dev/yidafu/swc/dsl/TsTypeParameter.kt | yidafu | 745,507,915 | false | {"Kotlin": 1532978, "JavaScript": 1186983, "TypeScript": 52873, "Rust": 15241, "Shell": 2012} | package dev.yidafu.swc.dsl
import dev.yidafu.swc.types.*
/**
* TsTypeParameter#name: Identifier
* extension function for create Identifier -> IdentifierImpl
*/
fun TsTypeParameter.identifier(block: Identifier.() -> Unit): Identifier {
return IdentifierImpl().apply(block)
}
/**
* TsTypeParameter#default: TsTy... | 1 | Kotlin | 0 | 0 | fecf831e1b47f4693eba781e74d3cf7df22dfac7 | 5,613 | swc-binding | Apache License 2.0 |
solve/src/commonMain/kotlin/it/unibo/tuprolog/solve/stdlib/function/Subtraction.kt | tuProlog | 230,784,338 | false | {"Kotlin": 3949669, "Java": 18690, "ANTLR": 10366, "CSS": 1535, "JavaScript": 894, "Prolog": 818} | package it.unibo.tuprolog.solve.stdlib.function
import it.unibo.tuprolog.core.Integer
import it.unibo.tuprolog.core.Numeric
import it.unibo.tuprolog.core.Real
import it.unibo.tuprolog.solve.ExecutionContext
import it.unibo.tuprolog.solve.function.BinaryMathFunction
import org.gciatto.kt.math.BigDecimal
/**
* Impleme... | 92 | Kotlin | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 1,565 | 2p-kt | Apache License 2.0 |
evm/src/main/kotlin/org/apache/tuweni/evm/TransactionalEVMHostContext.kt | apache | 178,461,625 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 47 | Java | 54 | 133 | a93e49473a559dfe1078442578253478b9989ec0 | 11,539 | incubator-tuweni | Apache License 2.0 |
sample/android-app/app/src/androidTest/java/com/example/FilePushTest.kt | dandycheung | 240,221,665 | false | {"Gradle Kotlin DSL": 27, "CODEOWNERS": 1, "Shell": 11, "Text": 2, "Ignore List": 5, "Batchfile": 4, "YAML": 27, "EditorConfig": 1, "Markdown": 22, "XML": 54, "OpenStep Property List": 11, "Swift": 18, "JSON": 22, "INI": 8, "Java": 10, "Gherkin": 5, "Kotlin": 508, "Gradle": 3, "JavaScript": 27, "JSON with Comments": 1,... | package com.example
import androidx.test.ext.junit.rules.ActivityScenarioRule
import org.junit.Assert.assertTrue
import org.junit.Rule
import org.junit.Test
import java.io.File
class FilePushTest {
@get:Rule
val rule = ActivityScenarioRule(MainActivity::class.java)
@Test
fun testExternalFilePresent(... | 1 | null | 1 | 1 | 39e4201ee0d2d93e2dfaeafa5982cb5eda0da932 | 656 | marathon | Apache License 2.0 |
jdk_17_maven/cs/rest/familie-tilbake/src/main/kotlin/no/nav/familie/tilbake/dokumentbestilling/vedtak/Vedtaksbrevgrunnlag.kt | WebFuzzing | 94,008,854 | false | null | package no.nav.familie.tilbake.dokumentbestilling.vedtak
import no.nav.familie.kontrakter.felles.Fagsystem
import no.nav.familie.kontrakter.felles.tilbakekreving.Ytelsestype
import no.nav.familie.tilbake.behandling.domain.Behandlingsresultat
import no.nav.familie.tilbake.behandling.domain.Behandlingstype
import no.nav... | 4 | null | 16 | 26 | 1777aafb22c6fc7c1bc7db96c86b6ea70e38a36e | 8,181 | EMB | Apache License 2.0 |
application/module/module_main/src/main/java/afkt_replace/module/main/MainContainerActivity.kt | afkT | 343,177,221 | false | {"Kotlin": 592177} | package afkt_replace.module.main
import afkt_replace.core.lib.base.app.BaseAppActivity
import afkt_replace.core.lib.base.controller.ui.ext.defaultMainContainerController
import afkt_replace.core.lib.base.controller.ui.ext.setExitBackIntercept
import afkt_replace.core.lib.base.controller.ui.theme.defaultMainContainerUI... | 2 | Kotlin | 17 | 72 | 710033ee53928e30f8dc7b37aacdbde7283a7841 | 2,942 | DevComponent | Apache License 2.0 |
app/src/main/java/exh/eh/tags/Group.kt | scb261 | 381,944,147 | true | {"Kotlin": 4047397} | package exh.eh.tags
object Group : TagList {
override fun getTags1(): List<String> = listOf(
"group:---",
"group:... mou ii desu.",
"group:...with my tears.",
"group:.7",
"group:.zip teikoku",
"group:0 clock 3 16",
"group:0 degree celcius",
"group:0.0... | 0 | Kotlin | 0 | 7 | 5a3a2084cbfff68c4187ea55ad6b8fd7be2796b7 | 182,538 | TachiyomiSY | Apache License 2.0 |
app/src/main/java/com/example/scanbot/usecases/AR_FindAndPickActivity.kt | doo | 655,744,952 | false | null | package com.example.scanbot.usecases
import android.Manifest
import android.content.pm.PackageManager
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.core.view.Windo... | 0 | Kotlin | 0 | 0 | bcb52ad7f999fd371dad51a8cf8029e8c218f46f | 4,790 | scanbot-barcode-sdk-usecases-example-android | Matrix Template Library License |
chat-oa/src/main/java/com/fzm/oa/data/OAError.kt | txchat | 507,831,442 | false | {"Kotlin": 2234450, "Java": 384844} | package com.fzm.oa.data
/**
* @author zhengjy
* @since 2021/09/08
* Description:
*/
/**
* 用户未绑定手机
*/
const val UserNotBindPhone = 15000
/**
* 用户不存在企业信息
*/
const val UserNotExist = 13001
/**
* 公司不存在
*/
const val CompanyNotExist = 13012 | 0 | Kotlin | 1 | 1 | 6a3c6edf6ae341199764d4d08dffd8146877678b | 247 | ChatPro-Android | MIT License |
vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailTestWeb.kt | FaradayApp | 732,727,396 | false | {"Kotlin": 15889711, "Java": 250183, "Shell": 102807, "HTML": 28529, "Python": 25379, "FreeMarker": 7662, "JavaScript": 7070, "Ruby": 3420, "Gherkin": 58} | /*
* Copyright (c) 2024 New Vector 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 applicable law or agr... | 0 | Kotlin | 2 | 0 | d765bc66c3dc1ee2ab2e54f3d1f7bc09896b3708 | 4,483 | Faraday-android | Apache License 2.0 |
src/main/kotlin/io/viascom/discord/bot/aluna/model/GatewayResponse.kt | viascom | 478,002,925 | false | {"Kotlin": 1009884} | /*
* Copyright 2023 Viascom Ltd liab. Co
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache Lic... | 2 | Kotlin | 0 | 4 | 7a1a7237b822633b082995e0602916fbb8784534 | 1,482 | aluna-spring-boot-starter | Apache License 2.0 |
app/src/main/java/ro/ioanm/fissh/SettingsFragment.kt | ioanmdev | 755,574,215 | false | {"Kotlin": 18531, "Java": 12436} | package ro.ioanm.fissh
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.OnFocusChangeListener
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.google.android.material.floatin... | 0 | Kotlin | 0 | 0 | 141c6b843374a22ae4a2305ea54a5cb8923f36ec | 3,053 | FiSSH-App | MIT License |
app/src/main/kotlin/ca/warp7/rt/ext/formulas/Utils.kt | Team865 | 159,395,287 | false | null | package ca.warp7.rt.ext.formulas
fun <E> List<E>.replaceRange(intRange: IntRange, that: List<E>) =
this[0 until intRange.first] + that + this[(intRange.last + 1) until this.size]
operator fun <E> List<E>.get(range: IntRange) = slice(range)
fun <E> List<E>.replaceAt(i: Int, that: List<E>): List<E> =
t... | 0 | Kotlin | 0 | 2 | 4c97affce1eb48e14511a4b0824bb45fbb4cbcb9 | 1,022 | Restructured-Tables | MIT License |
koda-time/src/test/kotlin/com/github/debop/kodatimes/ranges/reactive/ReactiveRangeExtensionsTest.kt | debop | 62,798,850 | false | {"Kotlin": 256811} | package com.github.debop.kodatimes.ranges.reactive
import com.github.debop.kodatimes.AbstractKodaTimesTest
import com.github.debop.kodatimes.plus
import com.github.debop.kodatimes.ranges.DateTimeProgression
import com.github.debop.kodatimes.ranges.InstantProgression
import com.github.debop.kodatimes.seconds
import kot... | 3 | Kotlin | 7 | 83 | cbb0efedaa53bdf9d77b230d8477cb0ae0d7abd7 | 1,663 | koda-time | Apache License 2.0 |
src/main/kotlin/day10/CRTProcessor.kt | jankase | 573,187,696 | false | null | package day10
internal data class CRTProcessor(
val signals: List<Signal>,
val screenWidth: Int = 40,
var currentCycle: Int = 1,
var registerX: Int = 1
) {
private var row: Int = 0
private val currentPixel: Int
get() = (currentCycle - 1) - row * screenWidth
private val currentSprite... | 0 | Kotlin | 0 | 0 | 0dac4ec92c82a5ebb2179988fb91fccaed8f800a | 1,279 | adventofcode2022 | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/LockCopyTask.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 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.gradle.targets.js.npm
import org.gradle.api.DefaultTask
import org.gradle.api.fi... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,289 | kotlin | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/LockCopyTask.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | /*
* Copyright 2010-2023 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.gradle.targets.js.npm
import org.gradle.api.DefaultTask
import org.gradle.api.fi... | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 2,289 | kotlin | Apache License 2.0 |
app/src/main/java/com/jeremiahzucker/pandroid/util/HexUtil.kt | sugarmanz | 95,634,669 | false | null | package com.jeremiahzucker.pandroid.util
/**
* Created by <NAME> on 8/19/2017.
*/
fun String.hexStringToByteArray(): ByteArray {
val len = length
val data = ByteArray(len / 2)
var i = 0
while (i < len) {
data[i / 2] = ((Character.digit(this[i], 16) shl 4) + Character.digit(this[i + 1], 16)).... | 2 | Kotlin | 5 | 6 | a71f9ece2284e64a8666e4f8b61f7b6731efb288 | 828 | Pandroid | MIT License |
src/test/kotlin/cn/tinyhai/android/AndroidConfigPluginPluginTest.kt | TinyHai | 497,931,920 | false | null | /*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package cn.tinyhai.android
import kotlin.test.Test
/**
* A simple unit test for the 'cn.tinyhai.android.modules.config.greeting' plugin.
*/
class AndroidConfigPluginPluginTest {
@Test fun `plugin registers task`() {
// // Create a... | 0 | Kotlin | 0 | 0 | cb399560554aa03b1d898c6b7a96d4488b0bee5a | 594 | TinyHaiPlugin | MIT License |
cache-x/src/main/java/com/aqrlei/cachex/lru/memory/ActiveResource.kt | AqrLei | 288,323,505 | false | null | package com.aqrlei.cachex.lru.memory
import com.aqrlei.cachex.CacheModel
import com.aqrlei.cachex.ITaskBackground
import com.aqrlei.cachex.Key
import com.aqrlei.cachex.activeResourceJob
import java.lang.ref.ReferenceQueue
/**
* created by AqrLei on 2/26/21
* 活动缓存
*/
class ActiveResource private constructor() : Cac... | 0 | Kotlin | 0 | 0 | 97736c830d01c9b5ead753cf6bc7586fc771afe4 | 2,492 | Cache-X | Apache License 2.0 |
src/main/kotlin/com/binance/api/client/domain/rest/margin/TransferHistory.kt | Krokodilushka | 513,034,979 | false | {"Kotlin": 205950} | package com.binance.api.client.domain.rest.margin
import com.binance.api.client.domain.CrossMarginTransferType
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
@JsonIgnoreProperties(ignoreUnknown = true)
data class TransferHistory(
@JsonPropert... | 0 | Kotlin | 2 | 0 | dbb6c702389cd9a5ecc136bb696b8d8791470850 | 1,017 | binance-kotlin-api | MIT License |
src/main/kotlin/com/meltwater/docker/compose/DockerCompose.kt | picaron | 135,616,868 | true | {"Kotlin": 15977, "Groovy": 1940} | package com.meltwater.docker.compose
import com.meltwater.docker.compose.ExecUtils.NOOP_CONSUMER
import com.meltwater.docker.compose.ExecUtils.executeCommand
import com.meltwater.docker.compose.ExecUtils.executeCommandAsync
import com.meltwater.docker.compose.data.InspectData
import org.apache.commons.io.IOUtils
impor... | 0 | Kotlin | 0 | 0 | e06cd3d482ebfdc8154d6bff3e75541677897d2c | 5,882 | kotlin-compose | MIT License |
app/src/main/java/com/tei/snapshop/feature_authentication/sign_in/presentation/ui/SocialAuthComposable.kt | eniolaipoola | 782,442,268 | false | {"Kotlin": 133358} | package com.tei.snapshop.feature_authentication.sign_in.presentation.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impo... | 1 | Kotlin | 0 | 0 | 4ccbbefdf16b60d4905cb837cfae26b29ceb9a54 | 4,359 | SnapShop | Apache License 2.0 |
protocol/src/main/kotlin/com/github/traderjoe95/mls/protocol/types/tree/LeafNode.kt | AbdulRahmanTaleb | 779,315,699 | false | {"Kotlin": 1270240} | @file:Suppress("kotlin:S6531")
package com.github.traderjoe95.mls.protocol.types.tree
import arrow.core.Either
import arrow.core.raise.either
import com.github.traderjoe95.mls.codec.Encodable
import com.github.traderjoe95.mls.codec.type.DataType
import com.github.traderjoe95.mls.codec.type.derive
import com.github.tr... | 0 | Kotlin | 0 | 0 | 345c410cebe1460df6a9dede6b396094f783f6c4 | 15,918 | Quarantined-TreeKEM | MIT License |
src/test/kotlin/de/flapdoodle/fx/layout/WeightedSizeTest.kt | flapdoodle-oss | 231,620,257 | false | null | package de.flapdoodle.fx.layout
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class WeightedSizeTest {
@Test
fun `same weights must share space equal`() {
val src = listOf(
WeightedSize(weight = 1.0, min = 0.0, max = Double.MAX_VALUE),
We... | 1 | null | 1 | 1 | 2c39e73edb0d1eefd277c1e31d2ed7042cf62029 | 1,976 | photosync | Apache License 2.0 |
shared/src/androidMain/kotlin/dev/vengateshm/kotlin_multiplatform_samples/BaseViewModel.kt | vengateshm | 767,983,517 | false | {"Kotlin": 47549, "Swift": 7392} | package dev.vengateshm.kmpudemycourseapp
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineScope
actual open class BaseViewModel : ViewModel() {
actual val scope: CoroutineScope
get() = viewModelScope
} | 0 | Kotlin | 0 | 1 | 5e00f2e430b40f81ed8671f973600d03c6b4e78d | 278 | KMP-Udemy-Course-Practice | Apache License 2.0 |
app/src/main/java/samman/schoter/newsapp/db/Converters.kt | Sam7Man | 510,080,445 | false | {"Kotlin": 27040} | package samman.schoter.newsapp.db
import androidx.room.TypeConverter
import samman.schoter.newsapp.models.Source
class Converters {
@TypeConverter
fun fromSource(source: Source): String{
return source.name
}
@TypeConverter
fun toSource(name: String): Source {
return Source(name, ... | 0 | Kotlin | 0 | 0 | f0f9a9e0402f6928554fb1001927f3b2f9333e0f | 334 | NewsApp | MIT License |
ivassistant/src/main/java/com/thoughtworks/ivassistant/abilities/tts/ali/AliTtsFileWriter.kt | TW-Smart-CoE | 679,741,051 | false | {"Kotlin": 95347} | package com.thoughtworks.ivassistant.abilities.tts.ali
import android.util.Log
import com.thoughtworks.ivassistant.abilities.tts.ali.AliTtsConstant.TAG
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
import java.io.OutputStream
class AliTtsFileWriter(
var ttsFilePath: String = "",
)... | 1 | Kotlin | 0 | 1 | c93dbb6528dfa980e19e28dfed09e6be4934e860 | 1,380 | ivassistant-android | Apache License 2.0 |
app/src/main/java/com/adwi/pexwallpapers/ui/search/SearchFragment.kt | adimanwit | 388,852,382 | false | null | package com.adwi.pexwallpapers.ui.search
import android.view.MenuItem
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.core.view.isVisible
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.paging.LoadState
import androidx.r... | 0 | Kotlin | 1 | 2 | 0a0cefec5b890262ea6c62ca7f62cbaa0a956ac5 | 10,520 | PexWallpapers | Apache License 2.0 |
src/main/kotlin/com/github/fmjsjx/demo/http/common/util/Fastjson2Extension.kt | fmjsjx | 865,428,888 | false | {"Kotlin": 98900, "Java": 91988} | package com.github.fmjsjx.demo.http.common.util
import com.alibaba.fastjson2.JSONObject
import com.alibaba.fastjson2.JSONWriter.Feature.WriteMapNullValue
fun JSONObject.toJsonString(): String = toJSONString(WriteMapNullValue) | 0 | Kotlin | 0 | 1 | 80ea54e47772f3c95ee2da6bf5c3c83d94d5a775 | 227 | http-demo-kotlin | MIT License |
app/src/main/java/com/example/buncisapp/views/inputData/InputDataViewModel.kt | pertamina-kontinental | 680,141,012 | false | null | package com.example.buncisapp.views.inputData
class InputDataViewModel {
// Implemented later
} | 0 | Kotlin | 0 | 0 | a17ba97a87e3f6d77a15b03699267e007dde44ba | 99 | BuncisMobileApp | MIT License |
app/src/main/java/com/abhijith/assignment/github_trending/network/GithubRepoApiClient.kt | nasreekar | 229,694,467 | false | null | package com.abhijith.assignment.github_trending.network
import com.abhijith.assignment.github_trending.models.GithubRepo
import io.reactivex.Observable
class GithubRepoApiClient {
companion object {
const val TAG = "GithubRepoApiClient"
}
fun getTrendingRepos(): Observable<List<GithubRepo>> {
... | 0 | Kotlin | 0 | 0 | a36ba11ab18bbfe415a4c933c16fe701e8fcd15f | 405 | Trending-github-repos | MIT License |
src/jvmMain/kotlin/org/mm0/kt/actual.kt | Lakedaemon | 358,930,427 | false | null | package org.mm0.kt
import java.io.File
actual fun string(folder:String, fileName:String):String= File(folder, fileName).readText(Charsets.US_ASCII) | 0 | Kotlin | 0 | 0 | 80edc091dac6ff0f2cd6914f8e37bc1217e11ab7 | 148 | mm0kt | Creative Commons Zero v1.0 Universal |
compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/RedundantCheckCastElimination.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 34 | null | 4 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 2,687 | kotlin | Apache License 2.0 |
app/src/main/java/me/rosuh/easywatermark/ui/about/AboutActivity.kt | rosuH | 281,094,148 | false | null | package me.rosuh.easywatermark.ui.about
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import dagger.hilt.android.Andr... | 15 | Kotlin | 69 | 766 | ff31c39477a553e7c124b7c8b994d1b595a371cd | 3,962 | EasyWatermark | MIT License |
solar/src/main/java/com/chiksmedina/solar/bold/__Like.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.bold
import androidx.compose.ui.graphics.vector.ImageVector
import com.chiksmedina.solar.BoldSolar
import com.chiksmedina.solar.bold.like.Dislike
import com.chiksmedina.solar.bold.like.Heart
import com.chiksmedina.solar.bold.like.HeartAngle
import com.chiksmedina.solar.bold.like.HeartBrok... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 1,579 | SolarIconSetAndroid | MIT License |
src/main/kotlin/su/gachi/commands/items/WeaponsCommand.kt | Oxygen-Studio-VAX | 577,374,170 | false | {"Kotlin": 57867, "Shell": 188} | package su.gachi.commands.items
import net.dv8tion.jda.api.EmbedBuilder
import net.dv8tion.jda.api.interactions.DiscordLocale
import net.dv8tion.jda.api.interactions.commands.OptionType
import net.dv8tion.jda.api.interactions.commands.build.OptionData
import org.json.JSONObject
import su.gachi.Config
import su.gachi.c... | 0 | Kotlin | 0 | 0 | 08bf5ece5c02acaf2c99265488d0280d21ee25a4 | 4,272 | oxybot-jda | Apache License 2.0 |
sphereon-kmp-cbor/src/commonMain/kotlin/com/sphereon/cbor/NumberLabel.kt | Sphereon-Opensource | 832,677,457 | false | {"Kotlin": 532209, "JavaScript": 3855} | package com.sphereon.cbor
import com.sphereon.kmp.LongKMP
import kotlinx.io.bytestring.ByteStringBuilder
import kotlinx.serialization.json.JsonElement
import kotlinx.serialization.json.JsonPrimitive
import kotlin.js.JsExport
import kotlin.math.abs
@JsExport
class NumberLabel(value: Int) : CoseLabel<LongKMP>(LongKMP(a... | 0 | Kotlin | 0 | 2 | 15a6f133cd830a213eccc96726d4167a6fd81891 | 716 | mdoc-cbor-crypto-multiplatform | Apache License 2.0 |
backend/development/src/main/kotlin/io/tolgee/controllers/internal/e2eData/WebsocketTranslationsE2eDataController.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.controllers.internal.e2eData
import io.swagger.v3.oas.annotations.Hidden
import io.tolgee.development.testDataBuilder.builders.TestDataBuilder
import io.tolgee.development.testDataBuilder.data.TranslationsTestData
import org.springframework.transaction.annotation.Transactional
import org.springframew... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 1,113 | tolgee-platform | Apache License 2.0 |
james/src/main/java/com/arch/jonnyhsia/james/MyPlugin.kt | jonnyhsia | 656,774,894 | false | null | package com.arch.jonnyhsia.james
import com.android.build.api.artifact.ScopedArtifact
import com.android.build.api.instrumentation.FramesComputationMode
import com.android.build.api.instrumentation.InstrumentationScope
import com.android.build.api.variant.AndroidComponentsExtension
import com.android.build.api.variant... | 0 | Kotlin | 0 | 0 | 46af6ea90aa8b26668a6e7e0449fb2486e179b55 | 2,396 | james | MIT License |
app/src/main/java/com/example/incode/models/EndLocation.kt | CharlesMuvaka | 641,490,688 | false | null | package com.example.incode.models
data class EndLocation(
val lat: Double,
val lng: Double
) | 0 | Kotlin | 0 | 0 | 735847f6204830cc2a31ea7fabbdaf29f1615a67 | 101 | inDrive | MIT License |
features/callrecord/src/main/java/com/github/dhaval2404/callrecorder/callrecord/service/ContactSyncService.kt | Dhaval2404 | 236,434,194 | false | null | package com.github.dhaval2404.callrecorder.callrecord.service
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import androidx.core.app.JobIntentService
import com.github.dhaval2404.callrecorder.callrecord.data.repo.ContactRepo
import com.git... | 0 | Kotlin | 1 | 3 | 825684009e4f257a745967410a4860c4a427c04a | 1,221 | CallRecorder | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.