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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ocpp-1-5-core/src/main/kotlin/com/izivia/ocpp/core15/model/clearcache/ClearCacheReq.kt | IZIVIA | 501,708,979 | false | {"Kotlin": 1934096} | package com.izivia.ocpp.core15.model.clearcache
class ClearCacheReq | 6 | Kotlin | 10 | 32 | bd8e7334ae05ea75d02d96a508269acbe076bcd8 | 68 | ocpp-toolkit | MIT License |
apps/intellij/src/main/kotlin/dev/nx/console/generate/ui/NxGeneratorListCellRenderer.kt | nrwl | 137,811,219 | false | {"TypeScript": 760376, "Kotlin": 491881, "JavaScript": 8118, "HTML": 304, "CSS": 298} | package dev.nx.console.generate.ui
import com.intellij.openapi.util.text.StringUtil
import com.intellij.ui.ColoredListCellRenderer
import com.intellij.ui.SimpleTextAttributes
import com.intellij.ui.scale.JBUIScale
import com.intellij.util.ui.EmptyIcon
import com.intellij.util.ui.JBScalableIcon
import com.intellij.util... | 44 | TypeScript | 212 | 1,307 | 990e2dfb2cdc928d4041654d40d8e8c4c5cb45a6 | 1,480 | nx-console | MIT License |
app/src/main/java/com/example/countries/network/CountriesApiService.kt | neerajb18 | 743,459,554 | false | {"Kotlin": 33214} | /*
* 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 app... | 0 | Kotlin | 0 | 0 | 3de052d09bcf9e993fc861f1fdc1ee133ddd3542 | 901 | countries-app | Apache License 2.0 |
sample/src/main/kotlin/com/github/stephenvinouze/kontinuousspeechrecognizer/activities/MainActivity.kt | StephenVinouze | 91,692,096 | false | null | package com.github.stephenvinouze.kontinuousspeechrecognizer.activities
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.speech.SpeechRecognizer
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.appcompat.app.Alert... | 6 | Kotlin | 41 | 132 | 06305c404161f200f6a0cf87b44c4c01b903a0ff | 5,690 | KontinuousSpeechRecognizer | Apache License 2.0 |
firebase/src/main/java/com/safechat/firebase/RegisterServiceImpl.kt | kingcosta | 60,254,872 | true | {"Kotlin": 20111, "Java": 6817} | package com.safechat.firebase
import com.safechat.encryption.toBase64String
import com.safechat.register.RegisterService
import rx.Observable
import java.security.PublicKey
class RegisterServiceImpl : RegisterService {
override fun registerNewKey(publicKey: PublicKey): Observable<Unit> {
val publicKeyStr... | 0 | Kotlin | 0 | 0 | 8e0a36cd4f208fabd3fbc6125451cf1e6150a169 | 635 | secure-messenger-android | Apache License 2.0 |
telegram-bot-core/src/main/kotlin/io/github/dehuckakpyt/telegrambot/api/TelegramBotApiHandling.kt | DEHuckaKpyT | 670,859,055 | false | null | package io.github.dehuckakpyt.telegrambot.api
import io.github.dehuckakpyt.telegrambot.TelegramBot
import io.github.dehuckakpyt.telegrambot.container.Container
import io.github.dehuckakpyt.telegrambot.model.telegram.BotCommand
import io.github.dehuckakpyt.telegrambot.model.telegram.BotCommandScope
import io.github.deh... | 1 | null | 3 | 24 | 5912e61857da3f63a7bb383490730f47f7f1f8c6 | 183,775 | telegram-bot | Apache License 2.0 |
common/theme/theme-impl/src/main/java/dev/bwaim/loteria/theme/impl/ThemeRepositoryImpl.kt | Bwaim | 410,120,178 | false | null | /*
* Copyright 2022 Dev Bwaim team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 19 | Kotlin | 1 | 3 | 83ea974b6e1b14a9a65a6a2f89f407e13e5fea31 | 1,524 | Loteria-Mexicana | Apache License 2.0 |
app/src/main/java/com/unitewikiapp/unitewiki/utils/Response.kt | jhj0517 | 656,711,299 | false | {"Kotlin": 95340, "Java": 9115} | package com.unitewikiapp.unitewiki.utils
sealed class Response<out T> {
class Loading<out T> : Response<T>()
data class Success<out T>(val data: T) : Response<T>()
data class Failure<out T>(val throwable: Throwable) : Response<T>()
} | 0 | Kotlin | 0 | 0 | 71d4eaba5de378f095b2f9fb7cb0b966a4efa9b8 | 246 | UniteWiki | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/viewmodel/BPAlbumViewModel.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1481175, "Ruby": 423} | package org.listenbrainz.android.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.... | 25 | Kotlin | 31 | 99 | 573ab0ec6c5b87ea963f013174159ddfcd123976 | 2,086 | listenbrainz-android | Apache License 2.0 |
app/src/main/java/org/listenbrainz/android/viewmodel/BPAlbumViewModel.kt | metabrainz | 550,726,972 | false | {"Kotlin": 1481175, "Ruby": 423} | package org.listenbrainz.android.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.... | 25 | Kotlin | 31 | 99 | 573ab0ec6c5b87ea963f013174159ddfcd123976 | 2,086 | listenbrainz-android | Apache License 2.0 |
kotlin-node/src/main/generated/node/crypto/getCurves.kt | stefanthaler | 440,580,782 | true | {"Kotlin": 8815376, "JavaScript": 528} | // Automatically generated - do not modify!
@file:JsModule("node:crypto")
@file:JsNonModule
package node.crypto
import kotlinx.js.ReadonlyArray
/**
* ```js
* const {
* getCurves
* } = await import('crypto');
*
* console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...]
* ```
* @since v2.3.0
* ... | 0 | Kotlin | 0 | 0 | fc27a2b5d98423c8db24f8a28d1c3a95dc682b0a | 438 | kotlin-wrappers | Apache License 2.0 |
tests/src/commonMain/kotlin/app/thelema/test/phys/CylinderShapeTest.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 Anton Trushkov
*
* 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 ag... | 3 | Kotlin | 5 | 61 | 8e2943b6d2de3376ce338025b58ff31c14097caf | 2,635 | thelema-engine | Apache License 2.0 |
subprojects/delivery/cd/src/main/kotlin/com/avito/ci/BuildStepListExtension.kt | avito-tech | 230,265,582 | false | null | package com.avito.ci
import com.avito.android.Problem
import com.avito.android.asRuntimeException
import com.avito.ci.steps.ArtifactsConfiguration
import com.avito.ci.steps.BuildStep
import com.avito.ci.steps.CompileUiTests
import com.avito.ci.steps.ConfigurationCheck
import com.avito.ci.steps.CustomTaskStep
import co... | 6 | null | 36 | 327 | b8d12a06a169ae60d89d24f66978a7dc23833282 | 11,385 | avito-android | MIT License |
Zhidian/app/src/main/java/com/zhidian/application/ui/search/SearchViewModel.kt | EricMoin | 638,540,521 | false | null | package com.zhidian.application.ui.search
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.zhidian.application.logic.data.StockItem
import com.zhidian.application.logic.model.SearchRepository
import com.zhidian.application.logic.model.StockRepository
impo... | 0 | Kotlin | 0 | 0 | 54c55ece61c995c46de7160bf0e11b6b528c0b4b | 2,737 | ZhiDianREP | Apache License 2.0 |
app/src/main/java/tw/shounenwind/boringreader/UnitText.kt | michaeimm | 201,517,838 | false | null | package tw.shounenwind.boringreader
import android.content.Context
import android.content.ContextWrapper
import android.view.View
import android.view.ViewGroup
import org.jetbrains.anko.*
class UnitText(base: Context) : AnkoComponent<ViewGroup>, ContextWrapper(base) {
override fun createView(ui: AnkoContext<ViewG... | 0 | Kotlin | 0 | 0 | d753fec31bb0fc793834ed0ea7086ec8a4a60397 | 578 | BoringReader | Apache License 2.0 |
composeApp/src/commonMain/kotlin/ui/screens/characterlist/CharacterListViewModel.kt | gurkankesgin | 834,752,770 | false | {"Kotlin": 18784, "Swift": 621} | package com.disney.ui.screens.characterlist
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.disney.domain.model.Character
import com.disney.domain.usecase.GetCharacterUseCase
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.... | 0 | Kotlin | 0 | 0 | fd8919c17983a10e105018573ba40ca9bd0c88d9 | 1,272 | Disney-KMPOfflineFirstApp | The Unlicense |
android/app/src/main/kotlin/top/z7workbench/focyapp/MainActivity.kt | z7workbench | 355,858,261 | false | {"Dart": 11154, "Swift": 404, "Kotlin": 128, "Objective-C": 38} | package top.z7workbench.focyapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | c40b178e0f5fa82fdf880df6379f856bcd354702 | 128 | focyapp | MIT License |
dagger-track/src/test/kotlin/me/amanjeet/daggertrack/utils/DaggerAndroidMinimalProjectCreator.kt | amanjeetsingh150 | 372,235,899 | false | null | package me.amanjeet.daggertrack.utils
fun createMinimalDaggerAndroidProject(gradleTestRunner: GradleTestRunner) {
gradleTestRunner.addDependencies(
"implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.5.10'",
"implementation 'androidx.appcompat:appcompat:1.1.0'",
"implementation 'androidx... | 4 | Kotlin | 3 | 63 | 38828b3e93ff81ff8e10a60e352462df73e12192 | 8,034 | dagger-track | Apache License 2.0 |
bellatrix.web/src/main/java/solutions/bellatrix/web/components/contracts/ComponentLongDesc.kt | AutomateThePlanet | 334,964,015 | false | null | /*
* Copyright 2021 Automate The Planet Ltd.
* Author: <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 la... | 1 | Kotlin | 1 | 1 | 5da5e705b47e12c66937d130b3031ac8703b8279 | 1,584 | BELLATRIX-Kotlin | Apache License 2.0 |
app/src/main/java/com/smartsolutions/spotifyclone/MainActivity.kt | staglizd | 680,700,900 | false | null | package com.smartsolutions.spotifyclone
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.bumptech.glide.RequestManager
import dagger.hilt.android.AndroidEntryPoint
import javax.inject.Inject
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
@Inject
lateinit var ... | 0 | Kotlin | 0 | 0 | 9d58d3a319726121ed6ac7f66f592844ff81922a | 497 | SpotifyMVVM | MIT License |
app/src/main/java/com/hypertrack/android/ui/common/delegates/AddressDelegate.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.ui.common.delegates
import android.location.Address
import com.google.android.gms.maps.model.LatLng
import com.google.android.libraries.places.api.model.Place
import com.hypertrack.android.api.GeofenceVisit
import com.hypertrack.android.api.asLocation
import com.hypertrack.android.models... | 1 | Kotlin | 15 | 28 | d418c449cbbbb19eca4f875a3e4f1099614213e4 | 6,847 | logistics-android | MIT License |
app/src/main/java/com/hypertrack/android/ui/common/delegates/AddressDelegate.kt | hypertrack | 241,723,736 | false | null | package com.hypertrack.android.ui.common.delegates
import android.location.Address
import com.google.android.gms.maps.model.LatLng
import com.google.android.libraries.places.api.model.Place
import com.hypertrack.android.api.GeofenceVisit
import com.hypertrack.android.api.asLocation
import com.hypertrack.android.models... | 1 | Kotlin | 15 | 28 | d418c449cbbbb19eca4f875a3e4f1099614213e4 | 6,847 | logistics-android | MIT License |
project-system-gradle-psd/src/com/android/tools/idea/gradle/structure/configurables/ui/RenderedComboBox.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 7,400 | android | Apache License 2.0 |
app/src/main/java/io/marlon/cleanarchitecture/data/converter/RepoRemoteConverter.kt | marloncarvalho | 110,142,579 | false | null | package io.marlon.cleanarchitecture.data.converter
import io.marlon.cleanarchitecture.data.remote.api.services.repo.RepoResponse
import io.marlon.cleanarchitecture.domain.converter.Converter
import io.marlon.cleanarchitecture.domain.model.Repo
import javax.inject.Inject
class RepoRemoteConverter @Inject constructor()... | 0 | Kotlin | 0 | 0 | 613153498ffb28813652526a5a829ed64f71a1fa | 729 | android-clean-architecture | MIT License |
src/main/kotlin/dev/emortal/lobby/commands/SpawnCommand.kt | EmortalMC | 396,165,548 | false | null | package dev.emortal.lobby.commands
import dev.emortal.immortal.game.GameManager
import dev.emortal.immortal.game.GameManager.joinGameOrNew
import dev.emortal.lobby.LobbyExtension.Companion.SPAWN_POINT
import net.kyori.adventure.sound.Sound
import net.minestom.server.sound.SoundEvent
import world.cepi.kstom.command.kom... | 2 | Kotlin | 0 | 1 | f1c50b4d916e25651b484169eee172f591ea210d | 767 | LobbyExtension | MIT License |
app/src/main/java/com/example/iverify/devices/ui/theme/Dimens.kt | advaitsaravade | 688,747,942 | false | {"Kotlin": 44547} | package com.example.iverify.devices.ui.theme
import androidx.compose.ui.unit.dp
val BoundsHalf = 8.dp
val Bounds1x = 16.dp
val Bounds2x = 32.dp
val RoundedCornerBound = 5.dp | 0 | Kotlin | 0 | 0 | 16b2ba310c1b3d058e1f6cf8b28a2513f39c6895 | 176 | Devices-Compose-Kotlin | Apache License 2.0 |
src/me/anno/engine/raycast/RaycastSkeletal.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.engine.raycast
import me.anno.ecs.components.mesh.Mesh
import me.anno.utils.Done
import me.anno.utils.types.Booleans.hasFlag
import me.anno.utils.types.Triangles
import org.joml.Matrix4x3d
import org.joml.Matrix4x3f
import org.joml.Vector3d
object RaycastSkeletal {
private class RaycastSkeletalHe... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 5,553 | RemsEngine | Apache License 2.0 |
data/src/main/java/com/toadfrogson/forgetmenot/data/TaskDB.kt | wimpytoad | 516,743,861 | false | null | package com.toadfrogson.forgetmenot.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.toadfrogson.forgetmenot.data.dao.TaskDao
import com.toadfrogson.forgetmenot.data.entity.SingleTaskEntity
import kotlinx.coroutines.CoroutineScope
... | 0 | Kotlin | 0 | 0 | 49153ec730cb29e8a966e29d3d21bf3b9bf32720 | 1,208 | Template | Apache License 2.0 |
jps-plugin/testData/general/KotlinJavaScriptProjectWithTestsAndTestAndSrcModuleDependency/tests/MainTests.kt | JakeWharton | 99,388,807 | false | null | import src.*
import test.*
fun testMain() {
main()
srcAndTests()
testSrcAndTests()
}
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 98 | kotlin | Apache License 2.0 |
plugins/completion-ml-ranking/src/com/intellij/completion/ml/features/MLRankingCompletionCollectorExtension.kt | JetBrains | 2,489,216 | false | null | package com.intellij.completion.ml.features
import com.intellij.codeInsight.lookup.impl.LookupUsageTracker
import com.intellij.internal.statistic.eventLog.events.EventField
import com.intellij.internal.statistic.eventLog.events.EventFields
import com.intellij.internal.statistic.service.fus.collectors.FeatureUsageColle... | 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 868 | intellij-community | Apache License 2.0 |
compose-lint-checks/src/test/java/slack/lint/compose/BaseSlackLintTest.kt | slackhq | 593,729,034 | false | null | // Copyright (C) 2021 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package slack.lint
import com.android.tools.lint.checks.infrastructure.LintDetectorTest
import com.android.tools.lint.checks.infrastructure.TestFile
import com.android.tools.lint.checks.infrastructure.TestLintClient
import com.android... | 20 | null | 8 | 311 | 97c7410b99ebac92a4af5199d60ed9396013115f | 3,603 | compose-lints | Apache License 2.0 |
protoc-gen-kotlin-ext/src/test/kotlin/dev/hsbrysk/protoc/gen/CompileOptionTest.kt | be-hase | 802,058,732 | false | {"Kotlin": 46488} | package dev.hsbrysk.protoc.gen
import assertk.assertFailure
import assertk.assertThat
import assertk.assertions.hasMessage
import assertk.assertions.isEqualTo
import assertk.assertions.isInstanceOf
import com.google.protobuf.compiler.PluginProtos
import dev.hsbrysk.protoc.gen.CompileOption.FACTORY
import dev.hsbrysk.p... | 4 | Kotlin | 1 | 8 | 91558c84b252e52a847c93d09d0ed191e1404115 | 2,492 | protoc-gen-kotlin-ext | MIT License |
app/src/main/java/de/msdevs/einschlafhilfe/AppIntroActivity.kt | DonMarv00 | 171,038,644 | false | null | package de.msdevs.einschlafhilfe
import android.content.SharedPreferences
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.fragment.app.Fragment
import com.github.appintro.AppIntro
import com.github.appintro.AppIntroCustomLayoutFragment
import com.github.appintro.AppIntroFragment
impo... | 1 | null | 2 | 4 | 47e6f2766873d243150169b3fdc87e754281d552 | 1,845 | DieDreiFragezeichenEinschlafhilfe | MIT License |
android/app/src/main/java/ar/edu/utn/frba/foody/ui/navigation/AppScreens.kt | UTN-FRBA-Mobile | 795,060,308 | false | {"Kotlin": 15095} | package ar.edu.utn.frba.foody.ui.navigation
sealed class AppScreens(val route: String) {
object Home_Screen: AppScreens("HomeScreen")
object Login_Screen: AppScreens("Login")
} | 0 | Kotlin | 0 | 2 | 2991ef76f3e78d4bb242430505370e0394d7a662 | 185 | Foody | MIT License |
sdds-core/uikit/src/main/kotlin/com/sdds/uikit/RadioBox.kt | salute-developers | 765,665,583 | false | {"Kotlin": 1286830} | package com.sdds.uikit
import android.content.Context
import android.content.res.ColorStateList
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.graphics.drawable.Icon
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.ColorRes
import ... | 4 | Kotlin | 0 | 1 | fe241f7fbaef5b6d65bdc20dc9eb857dbc31744c | 5,210 | plasma-android | MIT License |
lib/src/main/kotlin/com/swmansion/starknet/data/types/Uint256.kt | software-mansion | 503,730,882 | false | null | package com.swmansion.starknet.data.types
import com.swmansion.starknet.data.parseHex
import com.swmansion.starknet.data.types.conversions.ConvertibleToCalldata
import com.swmansion.starknet.extensions.toHex
import java.math.BigInteger
private const val SHIFT = 128
private val SHIFT_MOD: BigInteger = BigInteger.value... | 7 | null | 16 | 64 | 4e97d5a9e1c524902208a04c0bc1f1be5a92f193 | 2,012 | starknet-jvm | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/components/search/Search.kt | kwmt | 346,881,422 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | Kotlin | 0 | 0 | 6b9f9fbfc040654babe870481e27fde321e45042 | 3,341 | android-dev-challenge-compose-week3 | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/quicksight/CfnDataSetIngestionWaitPolicyPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.quicksight
import io.cloudshiftdev.awscdkdsl.common.CdkDs... | 3 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 2,634 | awscdk-dsl-kotlin | Apache License 2.0 |
app/src/main/java/top/niunaijun/blackboxa/WelcomeActivity.kt | NepMods | 821,652,736 | false | {"C++": 2222377, "Java": 1496924, "C": 111417, "AIDL": 37520, "Kotlin": 8265, "Assembly": 7189, "CMake": 4330, "Makefile": 1571} | package top.niunaijun.blackboxa
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.widget.Toast
import com.android.support.Main
import top.niunaijun.blackbox.BlackBoxCore
class WelcomeActivity : Activity() {
var packag... | 1 | C++ | 15 | 41 | 6784f517d256de0c179964da08bcf526c4ef4bf8 | 1,798 | InjectARM64 | MIT License |
app/src/androidTest/java/me/hufman/androidautoidrive/InstrumentedTestNotificationEmoji.kt | BimmerGestalt | 164,273,785 | false | null | package me.hufman.androidautoidrive
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
class TestNotificationEmoji {
@Before
fun setup() {
UnicodeCleaner._addPlaceholderEmoji("\uD83D\uDC08", listOf("cat2"), "cat")
UnicodeCleaner._addPlaceholderEmoji("\uD83D\uDE3B", listOf("heart_eyes_cat")... | 49 | null | 90 | 546 | ea49ba17a18c353a8ba55f5040e8e4321bf14bd7 | 1,057 | AAIdrive | MIT License |
controls-core/src/commonMain/kotlin/ru/mipt/npm/controls/api/Device.kt | mipt-npm | 240,888,288 | false | null | package space.kscience.controls.api
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import space.ksci... | 5 | Kotlin | 3 | 9 | a20fb97c02f6394fe49436f97373991bed2f8f6f | 4,082 | controls.kt | Apache License 2.0 |
controls-core/src/commonMain/kotlin/ru/mipt/npm/controls/api/Device.kt | mipt-npm | 240,888,288 | false | null | package space.kscience.controls.api
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.cancel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.filterIsInstance
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import space.ksci... | 5 | Kotlin | 3 | 9 | a20fb97c02f6394fe49436f97373991bed2f8f6f | 4,082 | controls.kt | Apache License 2.0 |
sentry-kotlin-multiplatform/src/commonMain/kotlin/io/sentry/kotlin/multiplatform/SentryKMP.kt | getsentry | 285,502,515 | false | null | package io.sentry.kotlin.multiplatform
import io.sentry.kotlin.multiplatform.protocol.SentryId
import io.sentry.kotlin.multiplatform.protocol.UserFeedback
typealias ScopeCallback = (Scope) -> Unit
typealias OptionsConfiguration = (SentryOptions) -> Unit
expect abstract class Context
/** Sentry Kotlin Multiplatform ... | 7 | Kotlin | 9 | 32 | 2842bc3af8cb39b723601aef63a05e042ffcac25 | 2,896 | sentry-kotlin-multiplatform | MIT License |
app/src/main/java/com/kylecorry/trail_sense/tools/augmented_reality/domain/position/SphericalARPoint.kt | kylecorry31 | 215,154,276 | false | {"Kotlin": 2589968, "Python": 22919, "HTML": 18863, "Shell": 5290, "CSS": 5120, "JavaScript": 3814, "Batchfile": 2553} | package com.kylecorry.trail_sense.tools.augmented_reality.domain.position
import com.kylecorry.trail_sense.shared.camera.AugmentedRealityUtils
import com.kylecorry.trail_sense.tools.augmented_reality.ui.AugmentedRealityView
/**
* A point in spherical coordinates
* @param bearing The bearing in degrees
* @param ele... | 456 | Kotlin | 66 | 989 | 41176d17b498b2dcecbbe808fbe2ac638e90d104 | 1,236 | Trail-Sense | MIT License |
app/src/main/java/com/flixclusive/data/config/ConfigurationProviderImpl.kt | rhenwinch | 659,237,375 | false | {"Kotlin": 1156049} | package com.flixclusive.data.config
import com.flixclusive.common.LoggerUtils.errorLog
import com.flixclusive.data.api.GithubConfigService
import com.flixclusive.data.utils.catchInternetRelatedException
import com.flixclusive.domain.config.ConfigurationProvider
import com.flixclusive.domain.config.RemoteConfigStatus
i... | 21 | Kotlin | 7 | 96 | a90215b8c40ac0675cd217b38b842d2d57c90acc | 4,171 | Flixclusive | MIT License |
Android/App_YanZiJi/App/src/main/java/com/zktony/android/ui/Settings.kt | OriginalLight | 556,213,614 | false | {"Kotlin": 6123849, "C#": 376657, "Vue": 164353, "Rust": 101266, "C++": 63250, "TypeScript": 62359, "Python": 28781, "CMake": 18271, "C": 16214, "Less": 2885, "Dockerfile": 1898, "HTML": 648, "JavaScript": 450} | package com.zktony.android.ui
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
impo... | 0 | Kotlin | 0 | 1 | bcf0671b9e4ad199e579764f29683c1c575369d2 | 16,603 | ZkTony | Apache License 2.0 |
app/src/main/java/com/johnny/insytgroove/models/UserMDL.kt | stevandoh | 161,178,663 | false | {"Gradle": 3, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "INI": 1, "Proguard": 1, "Kotlin": 40, "XML": 36, "Java": 4} | package com.johnny.insytgroove.models
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
open class UserMDL: RealmObject() {
@PrimaryKey
@SerializedName("id")
@Expose
var id: Int = 0
@Seria... | 1 | null | 1 | 1 | e36d24cf64927cc92a92bf9cc5e222a227212745 | 670 | insyntGroove | MIT License |
app/src/main/java/com/example/myapplication/ui/theme/Color.kt | AlessandraPastore | 366,678,690 | false | null | package com.example.myapplication.ui.theme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.ui.graphics.Color
val Gray900 = Color(0xFF212121)
val Red500 = Color(0xFFD32F2F)
val Red700 = Color(0xFFB71C1C)
val DeepOrange100 = Color(0xFFFFECB3)
val Amber... | 0 | Kotlin | 2 | 3 | 611b464414244f481713bc2cee0145d066b72a26 | 748 | ComposeApplication | MIT License |
app/src/test/java/com/example/desafio/data/repository/HitRepositoryDataTest.kt | awarewire | 668,075,108 | false | null | @file:OptIn(ExperimentalCoroutinesApi::class)
package com.example.desafio.data.repository
import com.example.desafio.data.datasource.HitRemoteDataSource
import com.example.desafio.data.datasource.db.HitsDao
import com.example.desafio.data.datasource.db.toListEntity
import com.example.desafio.data.datasource.device.Ne... | 0 | Kotlin | 0 | 0 | 32d73bf22dd661eeeff05d02a51724c3825636a5 | 2,813 | desafio-android-reign | MIT License |
src/main/kotlin/challenge2/Challenge2-1.kts | MintInfusion | 573,329,608 | false | {"Kotlin": 7119} | import java.io.File
/**
* A, X = ROCK (1 Point)
* B, Y = PAPER (2 Points)
* C, Z = Scissors (3 Points)
*/
val totalScore = File("./input.txt")
.readLines()
.map { roundString ->
val (opponent, me) = roundString.split(" ")
when (opponent) {
"A" ->
when(me) {
... | 0 | Kotlin | 0 | 0 | 2e7ffe34c5a6f0724e12ae47b79dc929fac63504 | 1,126 | Advent-of-Code-2022 | Apache License 2.0 |
app/src/main/java/com/davion/github/customview/screen/progress/ProgressFragment.kt | dragonddavion | 296,300,104 | false | null | package com.davion.github.customview.screen.progress
import android.os.Bundle
import android.os.CountDownTimer
import android.util.Log
import android.view.View
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.n... | 0 | Kotlin | 0 | 0 | c0a9434d4b4c94bb25322ff520e14deba6a16b86 | 2,555 | custom_view_android | Apache License 2.0 |
essential-tests/src/testFixtures/kotlin/org/stellar/anchor/platform/integrationtest/Sep10Tests.kt | stellar | 452,893,461 | false | null | package org.stellar.anchor.platform.integrationtest
import kotlin.test.assertFailsWith
import org.junit.jupiter.api.Test
import org.stellar.anchor.api.exception.SepNotAuthorizedException
import org.stellar.anchor.api.sep.sep10.ValidationRequest
import org.stellar.anchor.client.Sep10Client
import org.stellar.anchor.pla... | 15 | null | 33 | 32 | 32de9627789218f657eb17c2cea0267b91111f0f | 1,545 | java-stellar-anchor-sdk | Apache License 2.0 |
kotlin-styled-next/src/main/kotlin/styled/CssBuilder.kt | JetBrains | 93,250,841 | false | null | package styled
import kotlinx.css.CssBuilder
import kotlinx.css.properties.*
fun CssBuilder.animation(
duration: Time = 0.s,
timing: Timing = Timing.ease,
delay: Time = 0.s,
iterationCount: IterationCount = 1.times,
direction: AnimationDirection = AnimationDirection.normal,
fillMode: FillMode ... | 38 | null | 162 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 578 | kotlin-wrappers | Apache License 2.0 |
lithic-java-core/src/test/kotlin/com/lithic/api/models/AccountHolderListParamsTest.kt | lithic-com | 592,386,416 | false | {"Kotlin": 4133523, "Java": 5023, "Shell": 1056, "Dockerfile": 305} | // File generated from our OpenAPI spec by Stainless.
package com.lithic.api.models
import com.lithic.api.models.*
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class AccountHolderListParamsTest {
@Test
fun createAccountHolderListParams() {
AccountHolderListPara... | 0 | Kotlin | 0 | 15 | c38a3009752f12f503cbdc99300c160e4450832d | 1,456 | lithic-java | Apache License 2.0 |
client_restaurant/shared/src/androidMain/kotlin/main.android.kt | TheChance101 | 671,967,732 | false | {"Kotlin": 2473455, "Ruby": 8872, "HTML": 6083, "Swift": 4726, "JavaScript": 3082, "CSS": 1436, "Dockerfile": 1407, "Shell": 1140} | import androidx.compose.runtime.Composable
import presentation.app.App
@Composable fun MainView() = App()
| 4 | Kotlin | 55 | 572 | 1d2e72ba7def605529213ac771cd85cbab832241 | 107 | beep-beep | Apache License 2.0 |
examples/randomGif/src/main/kotlin/com/brianegan/bansa/randomGif/store.kt | brianegan | 47,591,925 | false | null | package com.brianegan.bansa.randomGif
| 4 | Kotlin | 29 | 442 | ffb606ad2aefa58cac08e9daee26b6767b03186b | 39 | bansa | MIT License |
app/src/main/java/com/plcoding/jetpackcomposepokedex/MainActivity.kt | wagarcdev | 573,946,216 | false | null | package com.plcoding.jetpackcomposepokedex
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Compos... | 0 | Kotlin | 0 | 0 | a81c4ec8fe7c4da54326fd959921b0705b79a175 | 2,840 | myPokedex | MIT License |
src/main/kotlin/sh/lumin/kioku/utils/LogEntryCodec.kt | lumin-sh | 815,701,453 | false | {"Kotlin": 20893} | /*
* Copyright (C) 2024 LuminSh
*
* 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... | 0 | Kotlin | 0 | 0 | 004b7d15dfbfd86a0017df876eb892f63892fbb7 | 2,959 | Kioku | Apache License 2.0 |
src/main/kotlin/xyz/magentaize/dynamicdata/list/ListFilterPolicy.kt | Magentaize | 290,133,754 | false | null | package xyz.magentaize.dynamicdata.list
enum class ListFilterPolicy {
ClearAndReplace,
CalculateDiff
}
| 0 | Kotlin | 0 | 3 | dda522f335a6ab3847cc90ff56e8429c15834800 | 112 | dynamicdata-kotlin | MIT License |
expandablehinttext/src/main/java/com/tomlonghurst/expandablehinttext/ExpandableEditText.kt | thomhurst | 163,102,531 | false | null | package com.tomlonghurst.expandablehinttext
import android.content.Context
import android.util.AttributeSet
import android.view.KeyEvent
import android.view.MotionEvent
import android.widget.EditText
/**
* Edit Text for Expandable Hint Text
*/
class ExpandableEditText : EditText {
constructor(context: Context?... | 5 | null | 20 | 179 | 5891297e568f1ffe028a119df5f46e85ab2b990a | 1,487 | ExpandableHintText | Apache License 2.0 |
src/test/kotlin/com/fwdekker/randomness/affix/AffixDecoratorTest.kt | FWDekker | 96,791,256 | false | {"Kotlin": 577505, "HTML": 2713, "Java": 1024} | package com.fwdekker.randomness.affix
import com.fwdekker.randomness.stateDeepCopyTestFactory
import com.fwdekker.randomness.testhelpers.Tags
import com.fwdekker.randomness.testhelpers.shouldValidateAsBundle
import io.kotest.core.spec.style.FunSpec
import io.kotest.data.row
import io.kotest.datatest.withData
import io... | 7 | Kotlin | 7 | 45 | 7d323799d6e12fdc741b0984afef62bc363aa7c8 | 2,992 | intellij-randomness | MIT License |
app/src/main/java/com/example/foodpanda/data/DataOrException.kt | mannu1392004 | 764,179,113 | false | {"Kotlin": 103727} | package com.example.foodpanda.data
data class DataOrException<T, Boolean, E: Exception>(
var data: T? = null,
var loading: kotlin.Boolean = true,
var e: E? = null)
| 1 | Kotlin | 0 | 0 | b4bae544a9cc9c65f251df0c81e30af1a3641a9b | 176 | Panda-Food | MIT License |
app/src/main/java/com/task/searchbar/extensions/SearchViewExtentions.kt | EzzWaleed | 205,580,621 | false | null | import android.app.SearchManager
import android.database.MatrixCursor
import androidx.appcompat.widget.SearchView
import androidx.cursoradapter.widget.CursorAdapter
import androidx.cursoradapter.widget.SimpleCursorAdapter
import com.task.searchbar.R
private fun SearchView.initSuggestionAdapterAdapter(){
val column... | 0 | Kotlin | 0 | 3 | b03afd9bfb6a2a674b005c86eb268e984268e6df | 1,592 | SearchBar | Apache License 2.0 |
src/main/kotlin/repository/holder/CreatorItem.kt | matsumo0922 | 551,886,267 | false | {"Kotlin": 30956} | package repository.holder
data class CreatorItem(
val id: String,
val title: String,
val publishedTime: String,
val updateTime: String,
val isLicked: Boolean,
val lickCount: Int,
val commentCount: Int,
) | 0 | Kotlin | 0 | 0 | a5b5f5315cf61e6ef758a1578c029422ff5876a1 | 232 | FanboxDownloader | Apache License 2.0 |
plugins/kotlin/completion/tests/testData/basic/java/importAliases/TopLevelFun.kt | JetBrains | 2,489,216 | false | null | import kotlin.collections.listOf as list
fun foo() {
lis<caret>
}
// EXIST: { lookupString: "list", itemText: "list", tailText: "() (kotlin.collections.listOf)", icon: "nodes/function.svg"}
| 191 | null | 4372 | 13,319 | 4d19d247824d8005662f7bd0c03f88ae81d5364b | 196 | intellij-community | Apache License 2.0 |
subprojects/delivery/nupokati/src/main/kotlin/com/avito/android/agp/Accessors.kt | avito-tech | 230,265,582 | false | {"Kotlin": 3752627, "Java": 67252, "Shell": 27892, "Dockerfile": 12799, "Makefile": 8086} | package com.avito.android.agp
import com.android.build.api.variant.ApplicationVariant
import com.android.build.api.variant.VariantOutputConfiguration
import com.avito.android.Problem
import com.avito.android.asRuntimeException
internal fun ApplicationVariant.getVersionCode(): Int {
return outputs.firstOrNull {
... | 10 | Kotlin | 50 | 414 | 4dc43d73134301c36793e49289305768e68e645b | 733 | avito-android | MIT License |
app/src/main/java/com/uxstate/skycast/domain/repository/WeatherRepository.kt | Tonnie-Dev | 698,802,033 | false | {"Kotlin": 169908} | package com.uxstate.skycast.domain.repository
import com.uxstate.skycast.domain.model.CurrentWeather
import com.uxstate.skycast.domain.model.ForecastWeather
import com.uxstate.skycast.domain.model.GeoPoint
import com.uxstate.skycast.utils.Resource
import kotlinx.coroutines.flow.Flow
interface WeatherRepository {
f... | 0 | Kotlin | 0 | 0 | 1bf6826fb3d0ec9c6decf54d6e1176211bf7f3e2 | 469 | SkyCast | The Unlicense |
partiql-cli/src/main/kotlin/org/partiql/cli/shell/Shell.kt | partiql | 186,474,394 | false | null | /*
* Copyright 2022 Amazon.com, Inc. or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at:
*
* http://aws.amazon.com/apache2.0/
*
* or in the "li... | 228 | Kotlin | 60 | 523 | 6e5d4a637871bccb90f49596d043549e22c15a51 | 12,591 | partiql-lang-kotlin | Apache License 2.0 |
src/test/kotlin/recce/server/dataset/DatasetRecServiceIntegrationTest.kt | thoughtworks | 407,469,297 | false | {"Kotlin": 152890} | package recce.server.dataset
import io.micronaut.context.ApplicationContext
import io.micronaut.inject.qualifiers.Qualifiers
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import io.r2dbc.spi.R2dbcBadGrammarException
import jakarta.inject.Inject
import org.assertj.core.api.Assertions.assertThat
im... | 21 | Kotlin | 3 | 23 | b2d2212a4a789e8585f59e416f2eade26ca66e1c | 8,542 | recce | Apache License 2.0 |
plugin/src/test/kotlin/dev/aga/gradle/versioncatalogs/mock/ResolutionStrategy.kt | austinarbor | 679,523,691 | false | {"Kotlin": 83528} | package dev.aga.gradle.versioncatalogs.mock
import java.util.concurrent.TimeUnit
import org.gradle.api.Action
import org.gradle.api.artifacts.CapabilitiesResolution
import org.gradle.api.artifacts.ComponentSelectionRules
import org.gradle.api.artifacts.DependencyResolveDetails
import org.gradle.api.artifacts.Dependenc... | 3 | Kotlin | 0 | 8 | 2a1a03df12676ab4adaa4c4d793961d49be0dd32 | 6,713 | version-catalog-generator | Apache License 2.0 |
livingdoc-fixture-converter/src/test/java/org/livingdoc/fixture/converter/common/IntegerConverterTest.kt | nicopaul | 93,719,105 | true | {"Kotlin": 33638, "Java": 8950} | package org.livingdoc.fixture.converter.common
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
import org.livingdoc.fixture.api.converter.ConversionException
import java.lang.Integer.MAX_VALUE
import java.lang.Integer.MIN_VALUE
im... | 0 | Kotlin | 0 | 0 | f796609092b479b517762362db5a48d02cd5704b | 2,309 | livingdoc2 | Apache License 2.0 |
app/src/main/java/com/nicoapps/cooktime/model/Instruction.kt | andremn | 758,641,451 | false | {"Kotlin": 185045} | package com.nicoapps.cooktime.model
import java.time.ZonedDateTime
data class Instruction(
val id: Long = 0,
val text: String,
val createdAt: ZonedDateTime = ZonedDateTime.now(),
val lastUpdatedAt: ZonedDateTime? = null
)
| 0 | Kotlin | 0 | 0 | 389af6b6dffccd88ddbf4a434a090fa7c1a65e6a | 240 | cooktime | MIT License |
randomizer/src/main/java/com/chrisjanusa/randomizer/location_base/LocationUIManager.kt | chrisjanusa | 209,855,968 | false | {"Kotlin": 223559} | package com.chrisjanusa.randomizer.location_base
import android.graphics.Bitmap
import android.graphics.Canvas
import androidx.annotation.DrawableRes
import androidx.core.content.res.ResourcesCompat
import com.chrisjanusa.base.CommunicationHelper.sendAction
import com.chrisjanusa.randomizer.R
import com.chrisjanusa.ba... | 1 | Kotlin | 0 | 0 | cd1bfe507e320d2774869d926fd35bc721d2c218 | 2,517 | RandomRestaurantKotlin | MIT License |
manager/src/main/java/moe/shizuku/manager/apphider/ShizukuAppHider.kt | khang-atg-dev | 839,114,891 | false | {"Kotlin": 347249, "Java": 297278, "C++": 44477, "C": 4332, "CMake": 3138, "AIDL": 2437, "Shell": 2054} | package moe.shizuku.manager.apphider
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.os.IBinder
import android.system.Os
import android.util.Log
import moe.shizuku.manager.R
import moe.shizuku.manager.ShizukuSettings
import rikka.shizuku.Shi... | 0 | Kotlin | 0 | 0 | 7928086d4c5f0657b2c6ee093c206cb1858c4b85 | 8,207 | hidden-app-atg | Apache License 2.0 |
alcool_gasolina/android/app/src/main/kotlin/br/uninove/alcool_gasolina/MainActivity.kt | Leandrors91 | 413,806,223 | true | {"Dart": 17815, "HTML": 7712, "Swift": 808, "Kotlin": 256, "Objective-C": 76} | package br.uninove.alcool_gasolina
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 0 | f6d41c4dff5376c1730b29cc62e6342b47e39f51 | 131 | 2021-2_terca_manha | MIT License |
app/src/main/java/com/concordium/wallet/data/backend/repository/ProxyRepository.kt | Concordium | 358,250,608 | false | null | package com.concordium.wallet.data.backend.repository
import com.concordium.wallet.App
import com.concordium.wallet.core.backend.BackendCallback
import com.concordium.wallet.core.backend.BackendRequest
import com.concordium.wallet.data.cryptolib.CreateTransferOutput
import com.concordium.wallet.data.model.AccountBalan... | 17 | null | 3 | 12 | 41f9755247c94f17254b3ddcd0a18696ba0a07dc | 14,376 | concordium-reference-wallet-android | Apache License 2.0 |
src/test/kotlin/org/opensearch/indexmanagement/indexstatemanagement/transport/action/indexpolicy/IndexPolicyResponseTests.kt | mch2 | 400,646,884 | true | {"Kotlin": 1908596, "Python": 1396} | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
/*
* Copyright 2019 Amaz... | 0 | null | 0 | 0 | 5c41b04fb21ec7ed026b7a186ba3a5a3248b2403 | 3,044 | opensearch-project-index-management | Apache License 2.0 |
app/src/main/java/com/example/simplecleanarchitecture/users/usecase/user/UserGetAttachmentUseCase.kt | tom2048 | 350,885,111 | false | null | package com.example.simplecleanarchitecture.users.usecase.user
import com.example.simplecleanarchitecture.core.repository.AssetsRepository
import io.reactivex.rxjava3.core.Single
interface UserGetAttachmentUseCase : (String) -> Single<ByteArray>
class UserGetAttachmentUseCaseDefault(
private val assetsRepository... | 0 | Kotlin | 0 | 1 | bf273b8f7a4418505e5a382cfa5940cc98cceea9 | 470 | simple-clean-architecture-android-example | MIT License |
shoring/desk/src/main/kotlin/com/panopset/marin/apps/fw/FxFunctionLoader.kt | panopset | 752,122,553 | false | {"Kotlin": 597894, "Java": 26106, "Shell": 9716, "CSS": 4623, "JavaScript": 4084, "Batchfile": 2807, "HTML": 1317} | package com.panopset.marin.apps.fw
import com.panopset.flywheel.Flywheel.Companion.defineAllowedScriptCalls
import com.panopset.flywheel.FlywheelFunction
import com.panopset.flywheel.ReflectionInvoker.Companion.all
import javafx.event.ActionEvent
import javafx.event.EventHandler
import javafx.scene.control.ComboBox
im... | 0 | Kotlin | 0 | 0 | 94b3d3bfa9fb74e551b178932125f51b44c30b9a | 1,264 | pan | MIT License |
kotlin-csstype/src/main/generated/csstype/WillChange.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:Suppress(
"NAME_CONTAINS_ILLEGAL_CHARS",
"NESTED_CLASS_IN_EXTERNAL_INTERFACE",
)
package web.cssom
// language=JavaScript
@JsName("""(/*union*/{contents: 'contents', scrollPosition: 'scroll-position'}/*union*/)""")
sealed external interface WillChange {
c... | 12 | Kotlin | 6 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 418 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/com/tangwy/apidemokt/framework/notification/NotificationAPI.kt | troytang | 144,459,140 | false | null | package com.tangwy.apidemokt.framework.notification
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.support.v4.app.NotificationCompat
import ... | 0 | Kotlin | 0 | 2 | b58c94cb57f0d9f0c05fccefd81f6e96557b43f6 | 10,485 | ApiDemoKt | Apache License 2.0 |
buildSrc/src/main/kotlin/Config.kt | SRGSSR | 469,671,723 | false | {"Kotlin": 139247, "Java": 10619, "Shell": 555} | object Config {
const val compileSdk = 33
const val targetSdk = 33
const val minSdk = 21
const val major = 0
const val minor = 6
const val patch = 1
const val versionName = "$major.$minor.$patch"
const val maven_group = "ch.srg.data.provider"
}
| 4 | Kotlin | 0 | 0 | f28db63b568478a81b75163605d8482456d1831e | 279 | srgdataprovider-android | MIT License |
app/src/main/kotlin/batect/cli/CommandLineOptions.kt | HYDPublic | 119,497,078 | true | {"Kotlin": 988909, "Python": 3315, "Shell": 2655, "HTML": 400, "Java": 256} | /*
Copyright 2017-2018 <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... | 0 | Kotlin | 0 | 0 | bebfc745e814168ea6ffce49ffe5e8b221fb96bd | 2,188 | batect | Apache License 2.0 |
common/iteration/src/test/kotlin/com/curtislb/adventofcode/common/iteration/PermutationsTest.kt | curtislb | 226,797,689 | false | {"Kotlin": 2230363} | package com.curtislb.adventofcode.common.iteration
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
/**
* Tests the [permutations] extension function.
*/
class PermutationsTest {
@Test
fun permutations_emptyList() {
val list = emptyList<Any>()
assertThat(li... | 0 | Kotlin | 1 | 1 | 06ddf047ea59b1383afd4596e2bf2607d750a324 | 4,651 | AdventOfCode | MIT License |
app/src/main/java/au/edu/utas/zhe4/babytracker/presentation/record/TimePickerFragment.kt | ShanQincheng | 622,925,577 | false | null | package au.edu.utas.zhe4.babytracker.presentation.record
import android.app.Dialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.text.format.DateFormat
import android.widget.TimePicker
import androidx.fragment.app.DialogFragment
import java.util.Calendar
class TimePickerFragment(setTime:... | 0 | Kotlin | 0 | 0 | 44ce04d21b6a65f89d4f61910f1bf1fe17f6a21f | 1,010 | BabyTracker | Apache License 2.0 |
app/src/androidTest/java/com/praveen/astro/utils/AstroFakeRepository.kt | praveenrajput | 371,303,894 | false | {"Kotlin": 60155} | package com.praveen.astro.utils
import com.praveen.astro.data.repository.AstrosRepositoryInterface
import com.praveen.astro.models.IssNow
import com.praveen.astro.models.IssPosition
import com.praveen.astro.models.People
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flowOf
class AstroFakeReposito... | 0 | Kotlin | 0 | 2 | aa4d668c9ea8fb3c906b263792902a910f07ede7 | 1,055 | Astro | Apache License 2.0 |
src/main/kotlin/io/pivotal/trilogy/parsing/GenericStringTestCaseParser.kt | louishust | 122,236,143 | true | {"Kotlin": 210685, "PLSQL": 9831, "Shell": 6958, "PLpgSQL": 371} | package io.pivotal.trilogy.parsing
import io.pivotal.trilogy.i18n.MessageCreator
import io.pivotal.trilogy.parsing.exceptions.test.BaseParseException
import io.pivotal.trilogy.parsing.exceptions.testcase.InvalidFormat
import io.pivotal.trilogy.testcase.GenericTrilogyTest
import io.pivotal.trilogy.testcase.GenericTrilo... | 0 | Kotlin | 0 | 0 | d578f76bc096649406a00751c2c7536182daa0a5 | 2,093 | trilogy | MIT License |
plugins/kotlin/compiler-reference-index/tests/testData/compilerIndex/properties/fromObject/nestedObject/staticExtensionVariable/Write.kt | ingokegel | 72,937,917 | true | null | package one.two
fun write() {
with(KotlinObject.Nested) {
42.staticExtensionVariable = 3
}
} | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 109 | intellij-community | Apache License 2.0 |
zoomimage-view/src/main/java/com/github/panpf/zoomimage/view/internal/ViewPlatformUtils.kt | panpf | 647,222,866 | false | null | package com.github.panpf.zoomimage.view.internal
import android.graphics.Rect
import android.os.Looper
import android.view.MotionEvent
import android.view.View
import android.widget.ImageView.ScaleType
import androidx.core.view.ViewCompat
import com.github.panpf.zoomimage.core.IntRectCompat
import com.github.panpf.zoo... | 0 | Kotlin | 0 | 3 | a6814e1fc8a84946d8bad0cf41406519197784eb | 5,753 | zoomimage | Apache License 2.0 |
server/src/main/kotlin/net/azisaba/api/server/resources/Store.kt | AzisabaNetwork | 510,787,122 | false | {"Kotlin": 208961} | package net.azisaba.api.server.resources
import com.stripe.model.Event
import com.stripe.model.checkout.Session
import com.stripe.net.ApiResource
import io.ktor.http.HttpStatusCode
import io.ktor.resources.Resource
import io.ktor.server.application.ApplicationCall
import io.ktor.server.application.call
import io.ktor.... | 7 | Kotlin | 0 | 5 | 00a410bbe61d34601ffcc7a2e33152a7ca671540 | 10,762 | api | MIT License |
features/searchproducts/src/main/java/co/com/mercadolibre_test/searchproducts/presentation/productresults/ProductResultsFragment.kt | CarlosQuezadaP | 672,701,916 | false | null | package co.com.mercadolibre_test.searchproducts.presentation.productresults
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import androidx... | 1 | Kotlin | 0 | 0 | 82b89bbe0a55ad3d8901350e71eb03715da87af4 | 6,372 | meliTest | Apache License 2.0 |
application/core/theme/android-util/src/main/java/com/stepango/blockme/core/theme/android/util/di/ThemeComponent.kt | formatools | 289,781,857 | false | {"Kotlin": 279989, "C++": 2058, "C": 545, "CMake": 190} | package com.stepango.blockme.core.theme.android.util.di
import com.stepango.blockme.core.theme.android.util.ThemeUtils
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(modules = [
ThemeModule::class
])
interface ThemeComponent {
fun themeUtils(): ThemeUtils
@Component.Factory
... | 24 | Kotlin | 8 | 176 | b6d3a1378c1bdc0c8e66d0240622975729070808 | 473 | forma | Apache License 2.0 |
src/main/kotlin/no/nav/bidrag/stønad/bo/OppdatertPeriode.kt | navikt | 360,850,317 | false | {"Kotlin": 230915, "Dockerfile": 158} | package no.nav.bidrag.stønad.bo
data class OppdatertPeriode(val periodeListe: List<PeriodeBo>, val oppdaterPerioder: Boolean = false, val settPeriodeSomUgyldig: Boolean = false)
| 8 | Kotlin | 0 | 0 | 868eff6cbd22efecba5fdf48d6d29eae5189c6fc | 179 | bidrag-stonad | MIT License |
lawnchair/src/app/lawnchair/ui/preferences/DockPreferences.kt | Ruppi64 | 453,016,249 | false | {"Java Properties": 2, "YAML": 3, "Text": 9, "XML": 736, "INI": 5, "Makefile": 4, "Gradle": 6, "Shell": 1, "Python": 3, "Markdown": 3, "Batchfile": 1, "Soong": 4, "Ignore List": 5, "Git Config": 1, "AIDL": 12, "Java": 858, "Kotlin": 184, "JSON": 3, "Protocol Buffer": 5, "Proguard": 3} | /*
* Copyright 2021, Lawnchair
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | null | 1 | 1 | c51b2a221838aefb610b7146fc4ef7cb34e5e495 | 2,845 | lawnchair | Apache License 2.0 |
app/src/main/java/com/lateinit/rightweight/di/DatabaseModule.kt | boostcampwm-2022 | 563,132,819 | false | {"Kotlin": 320392} | package com.lateinit.rightweight.di
import android.content.Context
import androidx.room.Room
import com.lateinit.rightweight.data.database.AppDatabase
import com.lateinit.rightweight.data.dataStore.AppPreferencesDataStore
import com.lateinit.rightweight.data.database.dao.HistoryDao
import com.lateinit.rightweight.data... | 6 | Kotlin | 0 | 27 | ff6116ee9e49bd8ed493d3c6928d0b9a7f892689 | 1,612 | android09-RightWeight | MIT License |
template/app/src/main/kotlin/app/datasource/storage/keyvalue/AppKeyValueSource.kt | kotlitecture | 738,057,168 | false | {"Kotlin": 264246, "HTML": 891} | package app.datasource.storage.keyvalue
import android.app.Application
import core.data.datasource.storage.keyvalue.BasicKeyValueSource
/**
* Decorator class for working with key-value storage on the app level.
*
* Can provide extra methods without impacting facade implementations.
*/
class AppKeyValueSource(app:... | 0 | Kotlin | 0 | 0 | 7200f3ed86a9c1bbc2c348c9bdc1f0889b99a531 | 360 | template-android-compose | MIT License |
layout-inspector/src/com/android/tools/idea/layoutinspector/pipeline/appinspection/AppInspectionInspectorClient.kt | phpc0de | 470,555,455 | false | {"Java": 39631279, "Kotlin": 28526369, "HTML": 1206758, "Starlark": 482060, "C": 66005, "Python": 59985, "NSIS": 58515, "Lex": 46798, "CMake": 24483, "JavaScript": 18437, "C++": 11882, "Shell": 7470, "RenderScript": 4411, "AIDL": 3251, "Makefile": 2298, "IDL": 269, "QMake": 18} | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 0 | Java | 1 | 1 | 79e20f027ca1d047b91aa7acd92fb71fa2968a09 | 7,256 | idea-android | Apache License 2.0 |
compiler/testData/writeFlags/function/deprecatedFlag/setter.kt | JakeWharton | 99,388,807 | false | null | class MyClass() {
var test = 1
@deprecated("") set(i: Int) { test = i }
}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: MyClass, setTest
// FLAGS: ACC_DEPRECATED, ACC_PUBLIC, ACC_FINAL
| 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 204 | kotlin | Apache License 2.0 |
app/shared/bitkey-primitives/fake/src/commonMain/kotlin/build/wallet/bitkey/f8e/F8eSpendingKeysetMock.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.bitkey.f8e
import build.wallet.bitcoin.keys.DescriptorPublicKeyMock
val F8eSpendingKeysetMock =
F8eSpendingKeyset(
keysetId = "f8e-spending-keyset-id",
spendingPublicKey =
F8eSpendingPublicKey(
key = DescriptorPublicKeyMock("f8e-spending-keyset-dpub")
)
)
| 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 311 | bitkey | MIT License |
app/src/main/java/com/sukacolab/app/ui/component/StatelessTopBar.kt | cahyadiantoni | 757,308,387 | false | {"Kotlin": 211492} | package com.sukacolab.app.ui.component
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material3.CenterAlignedTopAppBar
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.SmallTopAppBar
import androidx.compose.material3.Text
import androidx.compose.material3.To... | 0 | Kotlin | 0 | 0 | ee38c667fcad913b2ec372d2ca609e64cf860102 | 868 | sukacolab | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.