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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
remote/src/main/kotlin/org/brainail/everboxing/lingo/remote/mapper/UrbanSuggestionRemoteMapper.kt | brainail | 106,741,862 | false | null | /*
* Copyright 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... | 6 | Kotlin | 1 | 2 | d71cf6dec0c0c7ba4d80666869b4c91f60a599f2 | 1,074 | .lingo | Apache License 2.0 |
app/src/main/java/com/tawk/framework/mvvm/utils/BindingUtil.kt | evankhan1234 | 423,089,159 | false | {"Gradle": 3, "Java Properties": 4, "Shell": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Ignore List": 2, "JSON": 1, "Kotlin": 59, "XML": 194, "Java": 5, "INI": 3} | package com.tawk.framework.mvvm.utils
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import coil.load
import coil.request.CachePolicy
import coil.transform.CircleCropTransformation
import com.tawk.framework.mvvm.R
import com.tawk.framework.mvvm.data.model.User
import javax.inject.Inject
im... | 0 | Kotlin | 0 | 0 | 26608cfb6d1cbce0f90540de6595082ba824ae43 | 873 | Tawk | Apache License 2.0 |
src/com/rian/osu/difficulty/evaluators/DroidVisualEvaluator.kt | osudroid | 248,937,035 | false | null | package com.rian.osu.difficulty.evaluators
import com.rian.osu.beatmap.hitobject.Slider
import com.rian.osu.beatmap.hitobject.Spinner
import com.rian.osu.difficulty.DroidDifficultyHitObject
import kotlin.math.abs
import kotlin.math.min
import kotlin.math.pow
/**
* An evaluator for calculating osu!droid visual diffic... | 27 | null | 77 | 521 | 9f1da90c2c26b179bf425fb55fbb626515c2fc97 | 4,660 | osu-droid | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/opmodes/test/DetermineArmAngles.kt | GoldEnter21 | 705,399,695 | false | {"Java Properties": 2, "Gradle": 6, "Shell": 1, "HTML": 2, "Markdown": 6, "Batchfile": 1, "Text": 4, "Ignore List": 1, "XML": 16, "Java": 96, "Kotlin": 100} | package org.firstinspires.ftc.teamcode.opmodes.test
import com.acmerobotics.roadrunner.geometry.Pose2d
import com.arcrobotics.ftclib.command.CommandBase
import com.arcrobotics.ftclib.command.CommandOpMode
import com.arcrobotics.ftclib.command.InstantCommand
import com.arcrobotics.ftclib.command.button.Trigger
import c... | 1 | null | 1 | 1 | a696b287ee27a77a02288b105f2148c123a6e612 | 6,256 | RoboknightsOffSeasonCopy | BSD 3-Clause Clear License |
uikit/src/main/java/com/sendbird/uikit/internal/model/serializer/Serializers.kt | sendbird | 350,188,329 | false | null | package com.sendbird.uikit.internal.model.serializer
import android.graphics.Color
import com.sendbird.uikit.consts.ReplyType
import com.sendbird.uikit.consts.ThreadReplySelectType
import com.sendbird.uikit.internal.model.notifications.CSVColor
import kotlinx.serialization.KSerializer
import kotlinx.serialization.desc... | 1 | null | 43 | 36 | 4066912c419683a6fdc5dc67948807f4a4903656 | 3,279 | sendbird-uikit-android | MIT License |
analysis/analysis-api/testData/components/resolver/singleByPsi/implicitInvoke.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... | operator fun Int.invoke(i: Int) {}
fun x(c: Char) {}
fun call(x: kotlin.Int) {
fun x(b: Boolean) {}
<expr>x(true)</expr>
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 132 | kotlin | Apache License 2.0 |
solar/src/main/java/co/sentinel/solar/core/util/Extensions.kt | sentinel-official | 578,087,836 | false | null | package co.sentinel.solar.core.util
import android.content.Context
import androidx.annotation.RawRes
import com.google.gson.Gson
inline fun <reified T> Context.jsonToClass(@RawRes resourceId: Int): T =
Gson().fromJson(
resources.openRawResource(resourceId).bufferedReader().use { it.readText() },
T... | 1 | null | 4 | 4 | 58b79967924e5049397c5297bb9b2aefe98060f0 | 338 | sentinel-dvpn-for-android | MIT License |
libraries/tools/kotlin-gradle-plugin-api/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinJsDceOptions.kt | JetBrains | 3,432,266 | false | null | // DO NOT EDIT MANUALLY!
// Generated by org/jetbrains/kotlin/generators/arguments/GenerateGradleOptions.kt
// To regenerate run 'generateGradleOptions' task
@file:Suppress("RemoveRedundantQualifierName", "Deprecation", "Deprecation_Error", "DuplicatedCode")
package org.jetbrains.kotlin.gradle.dsl
/**
* Options for ... | 182 | null | 5646 | 48,182 | bc1ddd8205f6107c7aec87a9fb3bd7713e68902d | 1,326 | kotlin | Apache License 2.0 |
shared/src/commonMain/kotlin/com/teewhydope/muvieapp/datasource/network/MovieServiceImpl.kt | teewhydope | 408,187,945 | false | null | package com.teewhydope.muvieapp.datasource.network
import com.teewhydope.muvieapp.datasource.network.model.MovieDto
import com.teewhydope.muvieapp.datasource.network.model.MovieSearchResponse
import com.teewhydope.muvieapp.domain.model.Movie
import io.ktor.client.*
import io.ktor.client.request.*
class MovieServiceIm... | 1 | null | 1 | 4 | 22ba7cbc9c911ee57604a775d6f62bb66d5a5e23 | 1,532 | MuvieApp | MIT License |
Assimilator/app/src/main/java/earth/devgalileo/assimilator/activities/SignUpActivity.kt | M87K452b | 324,200,724 | false | {"Text": 60, "Markdown": 1, "Gradle": 33, "Java Properties": 45, "XML": 895, "Shell": 11, "Ignore List": 22, "Batchfile": 11, "Proguard": 11, "Kotlin": 123, "Java": 12, "JSON": 1330, "SQL": 12, "Unix Assembly": 3, "Motorola 68K Assembly": 7} | package earth.devgalileo.assimilator.activities
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.view.WindowManager
import android.widget.Toast
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import earth.dev... | 0 | Kotlin | 0 | 1 | fc0bfc3b717a681f504c7a438460798d4c7620d5 | 3,278 | android-dev-w-kotlin | Apache License 2.0 |
plugins/gradle/src/org/jetbrains/plugins/gradle/execution/target/TargetModelBuilder.kt | JetBrains | 2,489,216 | false | null | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.gradle.execution.target
import com.intellij.openapi.util.Key
import org.gradle.tooling.GradleConnectionException
import org.gradle.tooling.ModelBuil... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 3,258 | intellij-community | Apache License 2.0 |
app/src/main/java/cn/cqautotest/sunnybeach/ui/activity/VipActivity.kt | MySelfKiller | 477,018,246 | true | {"Java Properties": 2, "Gradle": 12, "Markdown": 2, "Shell": 1, "Batchfile": 1, "Text": 1, "JSON": 8, "Ignore List": 4, "Proguard": 6, "XML": 362, "Java": 160, "Kotlin": 249, "INI": 1, "HTML": 3, "CSS": 18, "JavaScript": 30} | package cn.cqautotest.sunnybeach.ui.activity
import by.kirich1409.viewbindingdelegate.viewBinding
import cn.cqautotest.sunnybeach.R
import cn.cqautotest.sunnybeach.app.AppActivity
import cn.cqautotest.sunnybeach.app.AppFragment
import cn.cqautotest.sunnybeach.databinding.VipActivityBinding
import cn.cqautotest.sunnybe... | 0 | null | 0 | 1 | c3c6157eba059f3dce995fbb202316fcf16bae61 | 1,436 | SunnyBeach | Apache License 2.0 |
migratedb-scanner/src/test/java/migratedb/v1/scanner/testing/Kind.kt | daniel-huss | 456,543,899 | false | {"Maven POM": 13, "Markdown": 1, "Text": 7, "Ignore List": 3, "Git Attributes": 1, "AsciiDoc": 3, "Kotlin": 140, "XML": 7, "Java": 473, "Gradle": 5, "Shell": 2, "Batchfile": 2, "INI": 1, "SQL": 1, "Groovy": 3, "Java Properties": 5, "YAML": 2} | /*
* Copyright 2022-2023 The MigrateDB contributors
*
* 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 appl... | 0 | Java | 0 | 0 | 97ce486d14df4669846a53e5a046a9a87f77788d | 843 | migratedb | Apache License 2.0 |
tests/compiler-plugins/add-field/src/main/kotlin/hooks/TestPlugin.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package hooks
import com.apollographql.apollo.ast.GQLField
import com.apollographql.apollo.ast.GQLFragmentDefinition
import com.apollographql.apollo.ast.GQLFragmentSpread
import com.apollographql.apollo.ast.GQLInlineFragment
import com.apollographql.apollo.ast.GQLOperationDefinition
import com.apollographql.apollo.ast... | 135 | Kotlin | 651 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 2,446 | apollo-kotlin | MIT License |
tests/compiler-plugins/add-field/src/main/kotlin/hooks/TestPlugin.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package hooks
import com.apollographql.apollo.ast.GQLField
import com.apollographql.apollo.ast.GQLFragmentDefinition
import com.apollographql.apollo.ast.GQLFragmentSpread
import com.apollographql.apollo.ast.GQLInlineFragment
import com.apollographql.apollo.ast.GQLOperationDefinition
import com.apollographql.apollo.ast... | 135 | Kotlin | 651 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 2,446 | apollo-kotlin | MIT License |
src/main/kotlin/util/currentPrice.kt | Ivanhai | 352,138,410 | false | null | package util
import okhttp3.OkHttpClient
import okhttp3.Request
import java.io.IOException
fun currentPrice(): String? { // получить CoinDesk Bitcoin Price Index
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api.coindesk.com/v1/bpi/currentprice.json")
.buil... | 0 | Kotlin | 1 | 0 | ddfac6f441ebca7f5238d70f4c6429b551a05faa | 511 | mhbot | MIT License |
app/src/test/java/com/sloupycom/shaper/viewmodel/AddTaskViewModelTest.kt | 5hahryar | 291,789,447 | false | null | package com.sloupycom.shaper.viewmodel
import android.view.View
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.platform.app.InstrumentationRegistry
import com.sloupycom.shaper.R
import androidx.test.runner.AndroidJUnit4
import com.sloupycom.shaper.core.util.Event
import com.slo... | 0 | Kotlin | 0 | 0 | 283777d187a67fce4dde606bbd5753a674e2d674 | 1,558 | Shaper | MIT License |
app/src/main/java/com/apolloclinicfsm/features/menuBeat/MenuBeatRepository.kt | DebashisINT | 502,029,040 | false | {"Kotlin": 13505773, "Java": 994492} | package com.apolloclinicfsm.features.menuBeat
import android.content.Context
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.fasterxml.jackson.databind.ObjectMapper
import com.apolloclinicfsm.app.FileUtils
import com.apolloclinicfsm.app.Pref
import com.apolloclinicfsm.base.BaseR... | 0 | Kotlin | 0 | 0 | ef9e98e239b86578363759a43265cc2e99762524 | 1,497 | ApolloClinic | Apache License 2.0 |
app/src/main/java/com/imgego/android_kotlin_boilerplate/presentation/bottomnav/BottomNavGraph.kt | immustafa | 765,232,638 | false | {"Kotlin": 82804} | package com.imgego.android_kotlin_boilerplate.presentation.bottomnav
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
@Composable
fun BottomNavGraph(
navController: NavHostController
) {
NavHost(
navController = navCon... | 0 | Kotlin | 0 | 0 | 5288e726a41ca820e871ba941c6e6ea160049177 | 635 | android_kotlin_boilerplate | MIT License |
app/src/main/java/com/paprolafsmnew/features/login/model/userconfig/UserConfigResponseModel.kt | DebashisINT | 676,852,117 | false | {"Kotlin": 13694213, "Java": 996851} | package com.paprolafsmnew.features.login.model.userconfig
import com.paprolafsmnew.base.BaseResponse
/**
* Created by Saikat on 14-01-2019.
*/
class UserConfigResponseModel : BaseResponse() {
var getconfigure: ArrayList<UserConfigDataModel>? = null
} | 0 | Kotlin | 0 | 0 | be98678f759713d2d5f0b9ec4bc9aa35a54d51e9 | 258 | PaprolaMarketing | Apache License 2.0 |
app/src/main/java/nl/appt/widgets/ToolbarFragment.kt | appt-org | 277,572,532 | false | {"Kotlin": 52581} | package nl.appt.widgets
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import kotlinx.android.synthetic.main.view_toolbar.view.*
import nl.appt.R
/**
* Created by <NAME> on 19/10/2020
* Copyright... | 0 | Kotlin | 0 | 2 | 7b27473f2bdadc58e5dda8694ef2d362aefd0b95 | 1,110 | appt-android | MIT License |
data_wallet/src/main/java/io/igrant/data_wallet/adapter/ThirdPartyDataSharingAdapter.kt | decentralised-dataexchange | 344,557,240 | false | {"Kotlin": 985864, "Java": 85361} | package io.igrant.data_wallet.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.SwitchCompat
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerv... | 4 | Kotlin | 0 | 1 | 6fb76f662470967d92fce2b1dbca43251b4b3cde | 2,658 | ama-android-sdk | Apache License 2.0 |
app/src/main/java/com/praveen/astro/models/Astros.kt | praveenrajput | 371,303,894 | false | {"Kotlin": 60155} | package com.praveen.astro.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class Astros(
@SerialName("message")
val message: String = "",
@SerialName("number")
val number: Int = 0,
@SerialName("people")
val people: List<People> = listO... | 0 | Kotlin | 0 | 2 | aa4d668c9ea8fb3c906b263792902a910f07ede7 | 326 | Astro | Apache License 2.0 |
src/main/kotlin/no/nav/fo/veilarbregistrering/log/MDCConstants.kt | navikt | 131,013,336 | false | {"Kotlin": 892366, "PLpgSQL": 853, "PLSQL": 546, "Dockerfile": 87} | package no.nav.fo.veilarbregistrering.log
object MDCConstants {
val MDC_USER_ID: String = "userId"
val MDC_CONSUMER_ID: String = "consumerId"
val MDC_CALL_ID: String = "callId"
val MDC_REQUEST_ID: String = "requestId"
val MDC_JOB_ID: String = "jobId"
val MDC_JOB_NAME: String = "jobName"
}
| 17 | Kotlin | 5 | 6 | 68dabd12cfa5af1eb0a3af33fd422a3e755ad433 | 315 | veilarbregistrering | MIT License |
app/src/main/java/com/benrostudios/airtree/models/WeatherData.kt | DarthBenro008 | 349,176,050 | false | null | package com.benrostudios.airtree.models
import com.google.gson.annotations.SerializedName
data class WeatherData(
var components: Components = Components(),
var dt: Int = 0, // 1616094000
var main: Main = Main()
) | 0 | Kotlin | 2 | 7 | 41a472be18c39e3f65e2bb9dd134f59887754e7a | 228 | AirTree | MIT License |
features/home/src/main/java/kanda/lab/feature/home/ui/adapter/CharacterListAdapter.kt | diegobraz | 438,755,188 | false | {"Kotlin": 42658} | package kanda.lab.feature.home.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import kanda.lab.domain.Character
import kand... | 0 | Kotlin | 0 | 0 | 097f81626645f1a8cc7d3cc6720a239d78d59345 | 2,381 | RickMorty | MIT License |
app/src/main/java/app/airsignal/weather/util/object/DataTypeParser.kt | tekken5953 | 611,614,821 | false | {"Kotlin": 399092, "Java": 2271} | package app.airsignal.weather.util.`object`
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.Drawable
import androidx.core.content.res.ResourcesCompat
import app.airsignal.weather.R
import java.text.SimpleDateFormat
import java.time.Instant
import java.time.LocalDa... | 0 | Kotlin | 0 | 1 | 1fec24a292730a9e48fcbd83936fb728ec937f02 | 21,435 | AS_Cloud_App | Open Market License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ecr/Repository.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 142794926} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.ecr
import io.cloudshiftdev.awscdk.RemovalPolicy
import io.cloudshiftdev.awscdk.common.CdkDslMarker
i... | 0 | Kotlin | 0 | 4 | 02f9bf5c751dfc56ca19167782ef4ea418587326 | 17,490 | kotlin-cdk-wrapper | Apache License 2.0 |
src/main/kotlin/org/patternfly/showcase/component/Pagination.kt | patternfly-kotlin | 289,884,356 | false | null | package org.patternfly.showcase.component
import dev.fritz2.dom.html.Events
import dev.fritz2.dom.html.Input
import dev.fritz2.dom.html.RenderContext
import dev.fritz2.dom.states
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
impo... | 0 | null | 2 | 4 | 8ac1d715d9346dc3e675c7ab245a5d93b1b16634 | 5,967 | patternfly-fritz2-showcase | Apache License 2.0 |
RopApp/app/src/main/java/com/apm/ropapp/AddCategories.kt | lukebella | 755,185,152 | false | {"Kotlin": 76462} | package com.apm.ropapp
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.apm.ropapp.databinding.AddchoicecategoryBinding
class AddCategories : AppCompatActivity() {
private lateinit var binding: AddchoicecategoryBinding
... | 0 | Kotlin | 0 | 2 | 8d02872a2839508ae6f8a6eea344b4a5c57f7339 | 3,897 | RopApp | MIT License |
src/main/kotlin/swyg/hollang/aop/LogTraceAspect.kt | swyg-goorm | 591,871,632 | false | null | package swyg.hollang.aop
import org.aspectj.lang.ProceedingJoinPoint
import org.aspectj.lang.annotation.Around
import org.aspectj.lang.annotation.Aspect
import swyg.hollang.trace.TraceStatus
import swyg.hollang.trace.logtrace.LogTrace
@Aspect
class LogTraceAspect(private val logTrace: LogTrace) {
@Around("swyg.h... | 1 | Kotlin | 0 | 1 | 770c00a8573f66156973e21feba203af4d4f2215 | 836 | api_server | MIT License |
common/src/commonMain/kotlin/org/orca/htmltext/element/HtmlParagraphDisplay.kt | thennothinghappened | 603,730,874 | false | {"Kotlin": 23015} | package org.orca.htmltext.element
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
val HtmlParagraph = HtmlElementRenderer { element, modifier ->
HtmlParagraphDisplay(modifier) {
HtmlChildRenderer(... | 1 | Kotlin | 1 | 5 | 016d7f0726028c18cde75e1df43d3438aec63386 | 716 | HtmlText | MIT License |
sample/src/main/java/com/ismaeldivita/chipnavigation/sample/VerticalModeActivity.kt | dlxorkd | 389,811,235 | false | null | package com.ismaeldivita.chipnavigation.sample
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ContentValues
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.graphics.*
import... | 0 | Kotlin | 0 | 0 | c66f17d4a2a1480637870a899c5a33f9a39e058c | 43,014 | DiabetesAppProject | MIT License |
frontend/shared/ui/src/androidMain/kotlin/com/ams/groundwater/main/GroundWaterInfoMap.android.kt | meikefeliciah | 710,363,969 | false | {"Kotlin": 25941, "Swift": 652, "Dockerfile": 527, "Shell": 228} | package com.ams.groundwater.main
import android.Manifest
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue... | 0 | Kotlin | 0 | 0 | b55015da52aa8302a3a22b5cef90dee6e9ca9de0 | 2,959 | groundwater | Apache License 2.0 |
App_Mobile/app/src/main/java/com/example/quickmatch/content/match/MatchMeetsheetFragmentViewModel.kt | aliissaoui | 309,474,880 | false | null | package com.example.quickmatch.content.match
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.quickmatch.content.club.RequestStatus
import com.example.quickmatch.network.*
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutin... | 0 | Kotlin | 0 | 0 | 0243cc5ec35ab5e088a938f2ebbb4d4707c267ac | 8,077 | quickmatch | MIT License |
game/pathfinder/src/main/kotlin/org/rsmod/game/pathfinder/reach/WallBoundary.kt | rsmod | 293,875,986 | false | null | @file:Suppress("DuplicatedCode")
package org.rsmod.game.pathfinder.reach
import org.rsmod.game.pathfinder.collision.CollisionFlagMap
import org.rsmod.game.pathfinder.flag.CollisionFlag
internal fun reachWall(
flags: CollisionFlagMap,
x: Int,
z: Int,
level: Int,
destX: Int,
destZ: Int,
src... | 0 | Kotlin | 50 | 60 | bbf35cfdc12b8af62f801c7accf9d1e4db8e4d35 | 14,070 | rsmod | ISC License |
data/framework/api/src/main/kotlin/io/github/wykopmobilny/domain/navigation/ClipboardService.kt | otwarty-wykop-mobilny | 374,160,630 | true | {"Kotlin": 1326147, "HTML": 66896, "Java": 38599} | package io.github.wykopmobilny.domain.navigation
interface ClipboardService {
suspend fun copy(text: String)
}
| 13 | Kotlin | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 117 | wykop-android | MIT License |
diskordin-base/src/main/kotlin/org/tesserakt/diskordin/util/JSON.kt | ITesserakt | 218,969,129 | false | null | package org.tesserakt.diskordin.util
import com.google.gson.FieldNamingPolicy
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.google.gson.JsonElement
import com.google.gson.reflect.TypeToken
import kotlinx.datetime.Instant
import org.tesserakt.diskordin.core.data.Snowflake
import org.tesserak... | 1 | Kotlin | 1 | 12 | e93964fcb5ecb0e1d03dd0fc7d3dd2637a0e08ae | 1,233 | diskordin | Apache License 2.0 |
app/src/main/java/xoulis/xaris/com/spamfree/binding/CodeBindingAdapter.kt | HarisHoulis | 144,389,511 | false | {"Kotlin": 76668, "TypeScript": 24152} | package xoulis.xaris.com.spamfree.binding
import android.util.Log
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.BindingAdapter
import xoulis.xaris.com.spamfree.R
import xoulis.xaris.com.spamfree.data.vo.ClientCode
import xoulis.xaris.com.spamfree.da... | 0 | Kotlin | 0 | 3 | ce9b7a071b4cf70d1c81a8607346c9d4b3677342 | 1,690 | SpamFREE | Apache License 2.0 |
next/kmp/core/src/jvmMain/kotlin/org/dweb_browser/core/std/file/ext/RespondLocalFileContext.jvm.kt | BioforestChain | 594,577,896 | false | {"Kotlin": 3452649, "TypeScript": 797969, "Swift": 368692, "Vue": 156621, "SCSS": 39016, "Objective-C": 17350, "HTML": 16888, "Shell": 13534, "JavaScript": 4687, "Svelte": 3504, "CSS": 818} | package org.dweb_browser.core.std.file.ext
import io.ktor.util.cio.toByteReadChannel
import org.dweb_browser.pure.http.PureResponse
import java.io.File
import java.io.InputStream
fun ResponseLocalFileBase.returnFile(inputStream: InputStream, size: Long) =
returnFile(inputStream.toByteReadChannel(), size)
fun Respo... | 60 | Kotlin | 4 | 13 | 31a925694978ec33fe08fcbf6005cd7f6f85e3e6 | 789 | dweb_browser | MIT License |
app/src/main/java/dev/razil/folio/ui/widgets/BottomSheetDialog.kt | razilsh | 191,126,172 | false | {"Java": 141761, "Kotlin": 116517} | /*
* MIT License
*
* Copyright (postChannel) 2019 Razil
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | 1 | null | 1 | 1 | 0127e04a44d1388439c44c71fa89c696460f161c | 2,329 | Folio | MIT License |
sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/OrganizationsActivity.kt | leonardoBrad | 246,800,555 | true | {"Kotlin": 181205} | package com.kirkbushman.sampleapp.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.kirkbushman.sampleapp.R
import com.kirkbushman.sampleapp.SampleApplication
import com.kirkbushman.sampleapp.controllers.OnUpDelCallback
import com.kirkbushman.sampleapp.controllers.Organizat... | 0 | Kotlin | 0 | 0 | f5cc2b85a4bf07de89bf6e3a3fc897cbf9cdb5cf | 2,313 | zammad-android | MIT License |
app/src/main/java/fr/skyle/scanny/ui/splash/SplashViewModel.kt | SkyleKayma | 524,119,671 | false | {"Kotlin": 227338} | package fr.skyle.scanny.ui.splash
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.flow
im... | 0 | Kotlin | 0 | 0 | fcc9b0ab303791a12f9bac96917f6b1cba3ec7c5 | 660 | Scanny | Apache License 2.0 |
examples/src/tl/ton/engine/validator/EngineValidatorJsonConfig.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.ton.engine.validator
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("engine.validator.jsonC... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 491 | tl-kotlin | MIT License |
lib/test/src/test/kotlin/schema/SampleEventV4712Test.kt | holixon | 354,810,047 | false | null | package io.holixon.avro.lib.test.schema
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
internal class SampleEventV4712Test {
@Test
fun `parse schema data`() {
val schemaData = SampleEventV4712.schemaData
assertThat(schemaData.namespace).isEqualTo("test.fixture")
... | 7 | null | 1 | 8 | ea4a0c93aad5ccfaa3a3d7e222e03cc64210ae3a | 544 | avro-registry-adapter | Apache License 2.0 |
data/src/main/java/com/depromeet/threedays/data/entity/habit/SingleHabitEntity.kt | depromeet12th | 548,194,728 | false | null | package com.depromeet.threedays.data.entity.habit
import com.depromeet.threedays.domain.entity.habit.HabitNotification
import com.depromeet.threedays.domain.entity.mate.Mate
import java.time.DayOfWeek
import java.time.LocalDateTime
data class SingleHabitEntity(
val color: String,
val createAt: LocalDateTime,
... | 0 | Kotlin | 1 | 15 | 1cc08fcf2b038924ab0fe5feaaff548974f40f4d | 659 | three-days-android | MIT License |
app/src/main/java/com/notification/man/MainActivity.kt | 10zgurr | 290,265,902 | false | null | package com.notification.man
import android.os.Build
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.notification.man.databinding.ActivityMainBinding
import com.notificationman.... | 0 | Kotlin | 1 | 9 | 3efefc48b0293a961c677beceb24bb8ba6d60134 | 3,297 | NotificationMan | MIT License |
app/src/main/java/com/medicine/mico/Personal_btn_Activity.kt | Ammad994 | 477,478,970 | false | null | package com.medicine.mico
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
class Personal_btn_Activity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... | 0 | Kotlin | 0 | 0 | 8cc47fdeed4be0ea7c0e11d414297d96d5b86da6 | 1,313 | Miko_HealthCare | MIT License |
idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_wrongPosition.kt | JakeWharton | 99,388,807 | false | null | // IS_APPLICABLE: false
fun <A> applyTwice(f: (A) -> A, x: A) = f(f(x))
val x = applyTwice({ p -> p + <caret>1 }, 40)
| 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 119 | kotlin | Apache License 2.0 |
src/main/kotlin/br/com/zup/edu/consulta/ConsultaChavePixResponseConverter.kt | micaelps | 359,457,305 | true | {"Kotlin": 68364} | package br.com.zup.edu.consulta
import br.com.zup.edu.ConsultaChavePixResponse
class ConsultaChavePixResponseConverter {
fun convert(chaveInfo: ChavePixInfo): ConsultaChavePixResponse {
return ConsultaChavePixResponse.newBuilder()
.setClienteId(chaveInfo.clienteId?.toString() ?: "")
... | 0 | Kotlin | 0 | 0 | 1df60d6db03393cb1a400dfc30ec5322c9b28990 | 1,172 | orange-talents-02-template-pix-keymanager-grpc | Apache License 2.0 |
src/main/kotlin/io/github/durun/lateko/renderer/common/ChangeSectionIdVisitor.kt | Durun | 244,782,805 | false | null | package io.github.durun.lateko.renderer.common
import io.github.durun.lateko.model.Document
import io.github.durun.lateko.model.Format
import io.github.durun.lateko.model.inline.InlineElement
import io.github.durun.lateko.model.inline.Reference
import io.github.durun.lateko.model.structure.*
import io.github.durun.lat... | 5 | Kotlin | 0 | 1 | b5809e171acf41a804b2fbdb4ddb21185bd93e8b | 2,419 | lateko | MIT License |
src/main/kotlin/io/github/durun/lateko/renderer/common/ChangeSectionIdVisitor.kt | Durun | 244,782,805 | false | null | package io.github.durun.lateko.renderer.common
import io.github.durun.lateko.model.Document
import io.github.durun.lateko.model.Format
import io.github.durun.lateko.model.inline.InlineElement
import io.github.durun.lateko.model.inline.Reference
import io.github.durun.lateko.model.structure.*
import io.github.durun.lat... | 5 | Kotlin | 0 | 1 | b5809e171acf41a804b2fbdb4ddb21185bd93e8b | 2,419 | lateko | MIT License |
indicator/src/main/java/com/zhpan/indicator/enums/IndicatorSlideMode.kt | zhpanvip | 235,051,986 | false | {"Kotlin": 74587, "Java": 8506} | /*
Copyright (C) 2020 zhpanvip,ViewPagerIndicator 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 applicable law o... | 2 | Kotlin | 57 | 683 | 0de668d12eed8c390d19113ad5d380da64de5b57 | 889 | viewpagerindicator | Apache License 2.0 |
aptos-protocol-client-starter/src/main/kotlin/com/rarible/protocol/aptos/client/autoconfigure/AptosApiClientAutoConfiguration.kt | rarible | 499,013,324 | false | {"Kotlin": 13620} | package com.rarible.protocol.aptos.client.autoconfigure
import com.rarible.core.application.ApplicationEnvironmentInfo
import com.rarible.protocol.aptos.api.client.*
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.bo... | 0 | Kotlin | 0 | 0 | 4a614a912d24cec05d31a9268006d0055580fc1b | 1,533 | aptos-openapi | MIT License |
Plugins/Economy/src/main/kotlin/tw/xserver/plugin/economy/MessageReplier.kt | IceXinShou | 830,436,296 | false | {"Kotlin": 158486} | package tw.xserver.plugin.economy
import net.dv8tion.jda.api.EmbedBuilder
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
import net.dv8tion.jda.api.utils.messages.MessageEditData
import tw.xserver.plugin.creator.message.MessageCreator
import tw.xserver.plugin.economy.Event.PLUGIN_DI... | 0 | Kotlin | 0 | 1 | 4eb00d55fab407292b7a590198b30ed7fc66e4ec | 1,293 | XsDiscordBotKt | Apache License 2.0 |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/ChevronLeft12.kt | walter-juan | 868,046,028 | false | {"Kotlin": 34345428} | package com.woowla.compose.icon.collections.octicons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.Stro... | 0 | Kotlin | 0 | 3 | eca6c73337093fbbfbb88546a88d4546482cfffc | 1,945 | compose-icon-collections | MIT License |
app/src/test/java/com/whz/myjetpack/ExampleUnitTest.kt | beijing-java | 257,142,942 | false | null | package com.whz.myjetpack
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEqu... | 0 | Kotlin | 0 | 1 | 64b86c1c29c46ccd2c95b25998724e5a284f6a3f | 488 | JetPackTest | Apache License 2.0 |
part2/chapter4/Person2/app/src/main/java/org/techtown/person2/Person.kt | mike-jung | 281,814,310 | false | null | package org.techtown.person2
import android.widget.TextView
open class Person(val name:String?) {
var age:Int? = null
var address:String? = null
init {
println("Person의 init 블록에서 실행됨.")
}
constructor(name:String?, age:Int?, address:String?):this(name) {
println("Person의 생성자에서 실행됨... | 0 | Kotlin | 17 | 13 | f7b6f1df6d5445bee3b02c63527c997da22157f1 | 494 | kotlin-android | Apache License 2.0 |
core/data/src/main/kotlin/com/ngapps/phototime/core/data/repository/shoots/ShootWithTasksResourceRepository.kt | ngapp-dev | 752,386,763 | false | {"Kotlin": 1833486, "Shell": 10136} | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | 0 | Kotlin | 0 | 3 | bc1990bccd9674c6ac210fa72a56ef5318bf7241 | 1,298 | phototime | Apache License 2.0 |
app/src/main/java/com/fundito/fundito/presentation/login/LoginGuidePagerAdapter.kt | Fundito | 229,454,426 | false | null | package com.fundito.fundito.presentation.login
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.DrawableRes
import androidx.databinding.library.baseAdapters.BR
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recycle... | 0 | Kotlin | 2 | 1 | ab84903068b62626c8287db7c2f4b7818b3eb31e | 2,026 | Fundito-Android | Apache License 2.0 |
src/test/kotlin/ui/utils/TestData.kt | prabint | 569,996,326 | false | {"Kotlin": 131902} | package ui.utils
import api.bank.utils.toVariableRepresentation
object TestData {
private const val varContentType = "content_type"
internal const val varBaseUrl = "baseurl"
internal val uuidRegex =
Regex("^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}\$... | 1 | Kotlin | 1 | 4 | 4a6b3faac5f8dd3954c823d16646fd6d53921af9 | 1,346 | api-bank | MIT License |
app/src/main/java/com/ezpnix/writeon/presentation/screens/settings/widgets/SettingsDialog.kt | 3zpnix | 850,596,389 | false | {"Kotlin": 256758} | package com.ezpnix.writeon.presentation.screens.settings.widgets
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
i... | 7 | Kotlin | 0 | 6 | 2b59993da41c2ebdf325d9d60f0c42e00ef5ad5c | 2,932 | WriteOn | Apache License 2.0 |
core/src/main/kotlin/io/petros/movies/core/list/AdapterStatus.kt | jnkforks | 282,209,632 | true | {"Kotlin": 374220} | package io.petros.movies.core.list
enum class AdapterStatus {
IDLE,
LOADING,
ERROR;
}
| 0 | null | 0 | 0 | aab03ee4c6a8c5b3ed9ae1501e23d1cd8c753322 | 101 | sample-code-movies | Apache License 2.0 |
app/src/main/java/com/recordThings/mobile/db/datasource/SportClassInitCreator.kt | clbDream | 554,756,461 | false | {"Kotlin": 894539, "Java": 69702} | package com.recordThings.mobile.db.datasource
import android.content.res.Resources
import com.recordThings.mobile.app.AppApplication
import com.recordThings.mobile.db.entities.SportClass
object SportClassInitCreator {
fun createSportClassData(): Array<SportClass> {
val list: ArrayList<SportClass> = Array... | 0 | Kotlin | 0 | 1 | 73f0167c0dcb6e2ff52f44891108f037fec5c3e0 | 1,509 | RecordThings-Android | Apache License 2.0 |
src/com/vladsch/smart/RepeatedCharSequence.kt | vsch | 51,629,488 | false | null | /*
* Copyright (c) 2015-2020 <NAME> <<EMAIL>>
*
* 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 Apach... | 0 | Kotlin | 1 | 1 | 7c7c99bf84b2d3eca97d1bd83085be3d074b44b6 | 2,274 | SmartData | Apache License 2.0 |
app/src/main/java/com/androiddevs/mvvmnewsapp/api/RetrofitInstance.kt | burakselcuk1 | 442,604,682 | false | null | package com.androiddevs.mvvmnewsapp.api
import com.androiddevs.mvvmnewsapp.util.Constans.Companion.BASE_URL
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import retrofit2.create
class RetrofitInstance {
comp... | 0 | Kotlin | 0 | 1 | ba64d5b64e763abdf5332ef51c3fb8ced03887b0 | 897 | News-App | The Unlicense |
android/src/main/kotlin/net/halowd/flutter_native_pedometer/walker/StepListner.kt | 111coding | 462,131,902 | false | null | package net.halowd.flutter_native_pedometer.walker
interface StepListener {
fun onStep(step : Int)
} | 0 | Kotlin | 0 | 2 | cfa835f426af9f0dcd1176f6354a6848376f521d | 105 | Flutter_Native_Pedometer | Apache License 2.0 |
data/src/main/java/ru/nesterov/data/booking/sources/RetrofitBookingApi.kt | anaesthez | 689,421,041 | false | {"Kotlin": 93079} | package ru.nesterov.data.booking.sources
import ru.nesterov.data.BookingDataRepository
import ru.nesterov.data.base.retrofit.BaseRetrofitSource
import ru.nesterov.data.base.retrofit.RetrofitConfig
import ru.nesterov.data.booking.entities.BookingDataEntity
import javax.inject.Inject
class RetrofitBookingApi @Inject co... | 0 | Kotlin | 0 | 0 | c5fc99aa24b2c672edeb059e8135f96c38e13fea | 636 | test | MIT License |
common/src/main/kotlin/tech/figure/hdwallet/common/chararray/CharArrayBuffer.kt | FigureTechnologies | 388,860,095 | false | {"Kotlin": 167668, "Java": 10335} | package tech.figure.hdwallet.common.chararray
open class CharArrayBuffer : Appendable, MutableCollection<CharArray> {
private val buffer = mutableListOf<CharArray>()
// Implement Appendable
override fun append(p0: Char): Appendable = apply { buffer += CharArray(1).also { it[0] = p0 } }
override fun ap... | 5 | Kotlin | 0 | 4 | 5f57604e1697e87d87a4bb3abbb776b84da62ec1 | 1,722 | hdwallet | Apache License 2.0 |
mvvm-coroutines-clean-architecture/domain/src/main/java/br/com/mobiplus/gitclient/domain/usecases/GetPullRequestsUseCase.kt | mariofelesdossantosjunior | 249,457,538 | true | {"Kotlin": 145177} | package br.com.mobiplus.gitclient.domain.usecases
import br.com.mobiplus.gitclient.domain.base.BaseErrorData
import br.com.mobiplus.gitclient.domain.base.resultwrapper.ResultWrapper
import br.com.mobiplus.gitclient.domain.base.usecase.BaseAsyncUseCase
import br.com.mobiplus.gitclient.domain.model.GithubError
import br... | 0 | Kotlin | 0 | 1 | f1d96c8f45814b883fab3987b8e365310e2de2dc | 1,080 | android-architecture-examples | MIT License |
src/main/kotlin/textUI/Main.kt | liefswanson | 130,515,078 | false | null | package textUI
import model.board.Board
import model.board.Cell
import model.board.InvalidBoardException
import model.solver.ThreadedSimpleSolver
import utils.align
import java.io.File
import java.io.FileNotFoundException
import java.nio.file.Paths
import kotlin.system.exitProcess
private const val SIZE_FLAG = "--siz... | 2 | Kotlin | 0 | 0 | 9b293ad974775825d94f8189f1cad4c4adc689d4 | 3,721 | auto-sudoku | MIT License |
app/src/main/java/com/tmdb/movie/component/myiconpack/ImgEmptyData.kt | sqsong66 | 703,818,964 | false | {"Kotlin": 899108} | package com.tmdb.movie.component.myiconpack
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.M... | 1 | Kotlin | 11 | 24 | 7dfc6aa197d1646773967f06eeef5a998bcda5a3 | 11,384 | TMDB-Movie | Apache License 2.0 |
app/src/main/kotlin/com/mukeshsolanki/snake/presentation/component/Button.kt | mukeshsolanki | 496,139,030 | false | null | package cucerdariancatalin.snake.presentation.component
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modi... | 0 | null | 17 | 61 | cda74cc67b53eaf5a2fb665118b51d472e70dab4 | 1,408 | snake-game-android | MIT License |
library/src/main/java/com/paypal/messages/io/LocalStorage.kt | paypal | 676,987,000 | false | {"Kotlin": 84520, "Shell": 1403} | package com.paypal.messages.io
import android.content.Context
import com.google.gson.Gson
import com.paypal.messages.utils.LogCat
class LocalStorage constructor(context: Context) {
private val TAG = this::class.java.simpleName
private val key = "PayPalUpstreamLocalStorage"
private val sharedPrefs = context.getShar... | 2 | Kotlin | 0 | 0 | 84316bb553ebdfc11c1d02e5d8c4e804c1806a0a | 1,962 | paypal-messages-android | MIT License |
app/src/main/java/com/prisar/dalim/util/StrngExt.kt | prisar | 592,835,279 | false | null | package com.prisar.dalim.util
fun String.trimToMaxWordCount(count: Int): String {
val allWords = allWords()
val wordCount = allWords.size
if (wordCount < count) return this
val lastWords = allWords.toMutableList().subList(allWords.size - count, allWords.size)
val lastText = lastWords.joinToString(... | 0 | Kotlin | 0 | 0 | 1e9ed755477c564c6ebd55c1dbf6e7b3e1c546e1 | 1,498 | dalim | MIT License |
src/main/kotlin/ipsum_amet/me/data/models/AcknowledgementResponse.kt | kibetrns | 567,488,872 | false | {"Kotlin": 50542} | package ipsum_amet.me.data.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class AcknowledgementResponse(
@SerialName("status")
val status: Status,
@SerialName("message")
val message: String
)
enum class Status() {
SUCCESS, FAILED
} | 0 | Kotlin | 0 | 0 | 9298d9541eb1246a2c024c3f1ffdd9caeab23545 | 316 | BikePlaceAPI_ktor | Apache License 2.0 |
SuperShortcutsPhone/src/main/java/net/geekstools/supershortcuts/PRO/Utils/InAppStore/DigitalAssets/Utils/PurchasesCheckpoint.kt | GeeksEmpireOfficial | 180,521,200 | false | null | /*
* Copyright © 2021 By Geeks Empire.
*
* Created by <NAME>
* Last modified 10/5/21, 6:05 AM
*
* Licensed Under MIT License.
* https://opensource.org/licenses/MIT
*/
package net.geekstools.supershortcuts.PRO.Utils.InAppStore.DigitalAssets.Utils
import androidx.appcompat.app.AppCompatActivity
import androidx.... | 1 | null | 1 | 7 | ab21b11d956c504c536d203d7836da067798c3b1 | 7,083 | SuperShortcuts | MIT License |
app/src/main/java/com/depoza/design/state/StateView.kt | amagda | 157,441,045 | false | null | package com.depoza.design.state
import android.content.Context
import android.content.res.TypedArray
import androidx.annotation.LayoutRes
import androidx.appcompat.widget.AppCompatImageView
import android.util.AttributeSet
import android.view.ViewGroup
import android.widget.RelativeLayout
import android.widget.TextVie... | 0 | null | 1 | 5 | 7a43311e6eec9e6b000a564081457e1d033669fe | 6,683 | StateView | MIT License |
android/app/src/main/kotlin/com/huhx/cnblog/MainActivity.kt | huhx | 522,818,397 | false | {"Dart": 424911, "CSS": 3916, "Shell": 2305, "Ruby": 1355, "Swift": 404, "Kotlin": 120, "Objective-C": 38} | package com.huhx.cnblog
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 12 | Dart | 6 | 25 | 6a2b343ffa2025502547daa53046c6172d2d4bf6 | 120 | flutter-cnblog | MIT License |
spring/src/main/kotlin/com/cloudground/spring/CustomersRestController.kt | Cloudground | 145,141,949 | false | {"HCL": 15163, "Kotlin": 9411, "Shell": 5801, "HTML": 2898, "JavaScript": 2886, "Go": 1794, "Dockerfile": 759, "CSS": 165} | package com.cloudground.spring
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
@RestController
@RequestMapping("/customers... | 4 | HCL | 1 | 2 | fd3a15e62f22c0ad2bc4549ec54a768ad680c8c0 | 542 | Cloudground | Apache License 2.0 |
src/main/kotlin/io/github/guttenbase/configuration/Db2TargetDatabaseConfiguration.kt | guttenbase | 644,774,036 | false | {"Kotlin": 539819, "PLpgSQL": 271} | package io.github.guttenbase.configuration
import io.github.guttenbase.hints.TableOrderHint
import io.github.guttenbase.meta.TableMetaData
import io.github.guttenbase.repository.ConnectorRepository
import io.github.guttenbase.tools.ScriptExecutorTool
import java.sql.Connection
import java.sql.SQLException
import java.... | 0 | Kotlin | 0 | 1 | 109a053ad4bbeccf1356da68a7d2c3653cb67682 | 2,978 | guttenbase | Apache License 2.0 |
src/main/kotlin/fp/kotlin/example/chapter08/solution/8_1_functor.kt | funfunStory | 101,662,895 | false | null | package fp.kotlin.example.chapter08.solution
import fp.kotlin.example.chapter04.solution.curried
import fp.kotlin.example.chapter07.solution.Cons
import fp.kotlin.example.chapter07.solution.FunList
import fp.kotlin.example.chapter07.solution.Nil
/**
*
* 연습문제 8-1
*
* 7장에서 만든 리스트 펑터를 사용해서 ``product`` 함수에 [1, 2, 3, ... | 2 | Kotlin | 19 | 39 | 29b9940890ef50f5165af25a7ee45ea0b955f28b | 912 | fp-kotlin-example | MIT License |
app/src/main/java/io/xapk/apkinstaller/model/event/EventManager.kt | cade335 | 220,771,143 | false | {"Kotlin": 249734, "Java": 9328} | package io.xapk.apkinstaller.model.event
import org.greenrobot.eventbus.EventBus
object EventManager {
fun register(subscriber: Any) {
EventBus.getDefault().register(subscriber)
}
fun unregister(subscriber: Any) {
EventBus.getDefault().unregister(subscriber)
}
fun post(event: An... | 1 | null | 1 | 2 | d41e2446466d6fc56b9d3f404a8c875cd776fe5c | 375 | xapk-installer | MIT License |
src/main/kotlin/com/delta/graphics/geometry/Cell.kt | delta-summer-camp-team | 668,869,095 | false | null | package com.delta.graphics.geometry
import com.badlogic.gdx.math.Polygon
import com.delta.graphics.config.ColorSettings
/**
* Представляет собой реализацию "клетки" на доске.
* @property raw номер строки, в которой клетка находится.
* @property col номер столбца, в которой клетка находится.
* @property color тек... | 0 | Kotlin | 0 | 0 | 305f16d80f0aacd1b15337addb1b9e1764eab892 | 912 | TilousClient | MIT License |
feature/home/src/main/java/st/slex/csplashscreen/feature/home/ui/component/tabs/MainScreenTabs.kt | stslex | 413,161,718 | false | null | package st.slex.csplashscreen.feature.home.ui.components.tabs
import androidx.annotation.StringRes
import st.slex.csplashscreen.feature.home.R
enum class MainScreenTabs(
val pageNum: Int,
@StringRes val titleRes: Int,
) {
PHOTOS(
pageNum = 0,
titleRes = R.string.main_screen_tab_photos
... | 4 | null | 0 | 4 | a60bf72a776d445b48d8c868cb99b7ad1252d8f8 | 425 | CSplashScreen | Apache License 2.0 |
lib/src/test/kotlin/mhc/attempt3timebucketed/MinuteHourCounterTest.kt | kazurof | 607,420,962 | false | null | package mhc.attempt3timebucketed
import java.util.concurrent.TimeUnit
import kotlin.test.Test
import kotlin.test.assertEquals
class MinuteHourCounterTest {
@Test
fun testTypicalCase() {
val sut = MinuteHourCounter()
sut.add(1)
assertEquals(1, sut.hourCount())
sut.add(10)
... | 5 | Kotlin | 0 | 0 | 66d043d85a60da3f7ddb9309bb3ae166dffbdb44 | 548 | minute-hour-counter | Creative Commons Zero v1.0 Universal |
src/main/java/cn/mycommons/stuff/core/gen/OriginGenerateImpl.kt | LiushuiXiaoxia | 249,631,208 | false | {"Gradle": 2, "Shell": 2, "Java Properties": 2, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java": 2, "Kotlin": 26, "XML": 2, "YAML": 1} | package cn.mycommons.stuff.core.gen
import cn.mycommons.stuff.core.IGenerateRule
/**
* 不转换
* abc --> abc
* ABC --> ABC
*/
class OriginGenerateImpl : IGenerateRule {
override fun gen(name: String): String = name
} | 1 | null | 1 | 1 | 6cec05dfe03fa27e39d3524dd2a08968d2857a56 | 223 | ProtoStuffGen | Apache License 2.0 |
app/src/main/java/com/android/task/budgetmanagement/data/database/dao/TransactionDao.kt | AhmadSSamhan | 638,052,395 | false | null | package com.android.task.budgetmanagement.data.database.dao
import androidx.room.*
import com.android.task.budgetmanagement.data.database.entity.MonthYearEntity
import com.android.task.budgetmanagement.data.database.entity.TransactionEntity
import com.android.task.budgetmanagement.data.database.entity.TransactionWithS... | 0 | Kotlin | 0 | 0 | aec81be66a01e2cd95f5b1e101fab181ee372a3e | 989 | budgetManagement | MIT License |
dist/src/main/kotlin/kr/toxicity/advancedskills/AdvancedSkillsImpl.kt | toxicity188 | 786,461,908 | false | {"Kotlin": 38258, "Java": 13914} | package kr.toxicity.advancedskills
import kr.toxicity.advancedskills.api.AdvancedSkills
import kr.toxicity.advancedskills.api.event.PluginLoadEvent
import kr.toxicity.advancedskills.api.event.PluginReloadedEvent
import kr.toxicity.advancedskills.api.nms.NMS
import kr.toxicity.advancedskills.api.plugin.ReloadResult
imp... | 0 | Kotlin | 0 | 2 | e7d5aabf65be16ed024d4a2fc9e86ef6c3e23b3f | 5,475 | AdvancedSkills | MIT License |
nrouter-api/src/main/java/club/fdawei/nrouter/api/inject/AutowiredProvider.kt | fangdawei | 188,443,333 | false | null | package club.fdawei.nrouter.api.inject
import club.fdawei.nrouter.api.NRouter
import club.fdawei.nrouter.api.action.ActionBundle
import kotlin.reflect.KClass
/**
* Create by david on 2019/06/04.
*/
open class AutowiredProvider {
open fun <T : Any> getAutowired(
source: Any,
name: String,
... | 0 | Kotlin | 1 | 3 | 3fcab2bdfbea45a322daaaeaab79bae844d1b2ec | 659 | NRouter | Apache License 2.0 |
bezier/src/main/java/io/channel/bezier/icon/TriangleRightCircleFilled.kt | channel-io | 736,533,981 | false | {"Kotlin": 2421787, "Python": 12500} | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... | 7 | Kotlin | 3 | 6 | 39cd58b0dd4a1543d54f0c1ce7c605f33ce135c6 | 3,559 | bezier-compose | MIT License |
app/src/main/java/com/pratthamarora/todoapp/utils/Utility.kt | PratthamArora | 280,664,323 | false | {"Kotlin": 29309} | package com.pratthamarora.todoapp.utils
import android.app.Activity
import android.content.Context
import android.view.inputmethod.InputMethodManager
import android.widget.EditText
object Utility {
fun Context.hideTheKeyboard(editText: EditText) {
editText.clearFocus()
val `in` =
this.... | 0 | Kotlin | 3 | 14 | a5b5980fdbde3bfec03b1ec681d1f22ad8e829f7 | 937 | TodoList_App | MIT License |
feature/authorization/presentation/src/jvmTestOld/kotlin/org/timemates/app/authorization/ui/initial_authorization/InitialAuthorizationReducerTest.kt | timemates | 575,537,317 | false | {"Kotlin": 329102} | package org.timemates.app.authorization.ui.initial_authorization
import io.mockk.mockk
import io.mockk.verify
import kotlinx.coroutines.test.TestScope
import org.junit.jupiter.api.Test
import org.timemates.app.foundation.mvi.reduce
import kotlin.test.assertEquals
class InitialAuthorizationReducerTest {
private va... | 19 | Kotlin | 0 | 28 | bec7508d38e87149005c57a98f10a0eb4dbd4891 | 916 | app | MIT License |
kcp-netty/src/main/kotlin/com/mmo4j/kcp/netty/KcpException.kt | mmo4j | 242,472,299 | false | null | package com.mmo4j.kcp.netty
class KcpException : RuntimeException {
constructor() : super()
constructor(message: String?, cause: Throwable?) : super(message, cause)
constructor(message: String?) : super(message)
constructor(cause: Throwable?) : super(cause)
}
| 1 | null | 1 | 1 | e3fac5bd410a0b1740449e42c20648326e9faba1 | 269 | mmo4j-kcp-netty | MIT License |
crypto-cipher/src/main/kotlin/org/tokend/crypto/cipher/Aes256GCM.kt | tokend | 154,165,603 | false | null | package org.tokend.crypto.cipher
import org.spongycastle.crypto.engines.AESEngine
import org.spongycastle.crypto.modes.GCMBlockCipher
import org.spongycastle.crypto.params.KeyParameter
import org.spongycastle.crypto.params.ParametersWithIV
/**
* Represents AES-256-GCM cipher.
*/
class Aes256GCM : Cipher{
privat... | 0 | Kotlin | 0 | 9 | c370e0e05eebe9073516efa3d95a1d6c24d09ce5 | 1,745 | kotlin-crypto-kit | Apache License 2.0 |
simplebouncyrecycler/src/main/java/com/stanford/simplebouncyrecycler/layoutmanagers/SimpleBouncyLayoutManager.kt | IainS1986 | 233,466,584 | false | null | package com.stanford.simplebouncyrecycler.layoutmanagers
import android.animation.TimeInterpolator
import android.animation.ValueAnimator
import android.content.Context
import android.util.AttributeSet
import android.util.DisplayMetrics
import android.view.View
import android.view.WindowManager
import android.view.ani... | 0 | Kotlin | 0 | 18 | bea8676e9f68a85254168a3eb432e2f97ac5cd10 | 8,794 | SimpleBouncyRecyclerView | MIT License |
plugins/kotlin/jvm-debugger/core/src/org/jetbrains/kotlin/idea/debugger/core/StackFrameInterceptor.kt | SamB | 215,873,627 | false | {"Text": 9365, "INI": 518, "YAML": 419, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 740, "Ignore List": 143, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 256, "XML": 7809, "SVG": 4411, "Kotlin": 58041, "Java": 83545, "HTML": 3781, "Java Properties": 215, "Gradle"... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.debugger.core
import com.intellij.debugger.engine.DebugProcessImpl
import com.intellij.debugger.engine.SuspendContextImpl
import com.intellij.debugger.jdi.StackFra... | 1 | null | 1 | 1 | 37c7118b1a4fb7f21c1a2636355c91f2a7d9ba05 | 1,049 | intellij-community | Apache License 2.0 |
shared/kmp-common-firebase/src/commonMain/kotlin/com/gchristov/thecodinglove/kmpcommonfirebase/KmpCommonFirebaseModule.kt | gchristov | 533,472,792 | false | null | package com.gchristov.thecodinglove.kmpcommonfirebase
import com.gchristov.thecodinglove.kmpcommonkotlin.BuildConfig
import com.gchristov.thecodinglove.kmpcommonkotlin.di.DiModule
import dev.gitlive.firebase.Firebase
import dev.gitlive.firebase.FirebaseApp
import dev.gitlive.firebase.FirebaseOptions
import dev.gitlive... | 1 | Kotlin | 0 | 3 | c674df658a0787f9254bd8ce240cddb25b25fff8 | 1,474 | thecodinglove-kmp | Apache License 2.0 |
compiler/testData/codegen/box/multifileClasses/samePartNameDifferentFacades.kt | AlexeyTsvetkov | 17,321,988 | false | null | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// WITH_RUNTIME
// FILE: 1/part.kt
@file:JvmName("Foo")
@file:JvmMultifileClass
package test
fun foo(): String = "O"
// FILE: 2/part.kt
@file:JvmName("Bar")
@file:JvmMultifileClass
package test
fun bar(): String = "K"
... | 1 | null | 0 | 2 | 72a84083fbe50d3d12226925b94ed0fe86c9d794 | 385 | kotlin | Apache License 2.0 |
solver/src/test/java/me/italankin/fifteen/solver/heuristics/RelaxedAdjacencyTest.kt | italankin | 853,258,707 | false | {"Kotlin": 126131, "Java": 24030} | package me.italankin.fifteen.solver.heuristics
import me.italankin.fifteen.game.ClassicGame
import me.italankin.fifteen.solver.GameParameters
import org.junit.Assert.assertEquals
import org.junit.Test
class RelaxedAdjacencyTest {
@Test
fun calc() {
val game = ClassicGame(
4, 4,
... | 0 | Kotlin | 0 | 0 | f04bea961a6fa9064b9251e46d8ef67c56fbdd61 | 606 | fifteen-solver | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.