repo_name
stringlengths
7
81
path
stringlengths
6
242
copies
stringclasses
53 values
size
stringlengths
2
6
content
stringlengths
73
737k
license
stringclasses
15 values
hash
stringlengths
32
32
line_mean
float64
5.44
99.8
line_max
int64
15
977
alpha_frac
float64
0.3
0.91
ratio
float64
2
9.93
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
Cognifide/gradle-aem-plugin
src/main/kotlin/com/cognifide/gradle/aem/instance/tasks/InstanceReload.kt
1
1052
package com.cognifide.gradle.aem.instance.tasks import com.cognifide.gradle.aem.common.instance.action.AwaitUpAction import com.cognifide.gradle.aem.common.instance.action.ReloadAction import com.cognifide.gradle.aem.common.instance.names import com.cognifide.gradle.aem.common.tasks.Instance import org.gradle.api.task...
apache-2.0
58e4760293fa5e3870e9b9a12efdab8f
28.222222
89
0.70057
4.109375
false
false
false
false
80998062/Fank
presentation/src/main/java/com/sinyuk/fanfou/ui/status/StatusView.kt
1
8490
/* * * * Apache License * * * * Copyright [2017] Sinyuk * * * * 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 * *...
mit
5af36f349b9d956a8978f0e89d209a86
35.9
128
0.686071
4.762065
false
false
false
false
TimePath/java-vfs
src/main/kotlin/com/timepath/vfs/provider/jdbc/JDBCTable.kt
1
1410
package com.timepath.vfs.provider.jdbc import com.timepath.vfs.MockFile import com.timepath.vfs.SimpleVFile import com.timepath.vfs.provider.ProviderStub import org.jetbrains.annotations.NonNls import java.sql.SQLException import java.text.MessageFormat import java.util.LinkedList import java.util.logging.Level /** ...
artistic-2.0
0f28077c74af286debbd9eba0d5de3ef
33.390244
103
0.580142
4.40625
false
false
false
false
vector-im/vector-android
vector/src/main/java/im/vector/preference/RoomAvatarPreference.kt
2
1639
/* * Copyright 2018 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
apache-2.0
ed599f3608c83ea8cc0a4af370b5893a
31.156863
103
0.723002
4.235142
false
false
false
false
mikepenz/MaterialDrawer
materialdrawer/src/main/java/com/mikepenz/materialdrawer/model/AbstractToggleableDrawerItem.kt
1
3288
package com.mikepenz.materialdrawer.model import android.view.View import android.widget.CompoundButton import android.widget.ToggleButton import androidx.annotation.LayoutRes import com.mikepenz.materialdrawer.R import com.mikepenz.materialdrawer.interfaces.OnCheckedChangeListener import com.mikepenz.materialdrawer.m...
apache-2.0
6aa352fe5951c4b3b9be36e335b1b810
37.232558
173
0.70955
5.452736
false
false
false
false
deltadak/plep
src/main/kotlin/nl/deltadak/plep/ui/taskcell/TaskLayout.kt
1
4729
package nl.deltadak.plep.ui.taskcell import javafx.geometry.Pos import javafx.scene.control.CheckBox import javafx.scene.control.ComboBox import javafx.scene.control.Label import javafx.scene.control.TreeItem import javafx.scene.layout.HBox import javafx.scene.layout.Priority import javafx.scene.layout.Region import j...
mit
55703359bf4aa0d1e4effebbfc1dc383
36.832
308
0.683866
4.705473
false
false
false
false
orgzly/orgzly-android
app/src/main/java/com/orgzly/android/query/QueryTokenizer.kt
1
2478
package com.orgzly.android.query class QueryTokenizer(val str: String, private val groupOpen: String, private val groupClose: String) { val tokens = tokanize(str) var nextToken = 0 fun hasMoreTokens(): Boolean = nextToken < tokens.size fun nextToken() = tokens[nextToken++] private fun tokanize(...
gpl-3.0
1fde97a2f66940fc14668d1837d9747f
28.164706
102
0.45682
4.783784
false
false
false
false
orgzly/orgzly-android
app/src/main/java/com/orgzly/android/ui/drawer/DrawerNavigationView.kt
1
5383
package com.orgzly.android.ui.drawer import android.content.Intent import android.content.res.Resources import android.view.Menu import androidx.lifecycle.Observer import com.google.android.material.navigation.NavigationView import com.orgzly.BuildConfig import com.orgzly.R import com.orgzly.android.AppIntent import c...
gpl-3.0
23bd78f0ea78f40355777d5e6379a664
29.241573
91
0.636448
4.474647
false
false
false
false
whym/apps-android-commons
app/src/test/kotlin/fr/free/nrw/commons/TestCommonsApplication.kt
1
3762
package fr.free.nrw.commons import android.content.ContentProviderClient import android.content.Context import android.content.SharedPreferences import android.support.v4.util.LruCache import com.nhaarman.mockito_kotlin.mock import com.squareup.leakcanary.RefWatcher import fr.free.nrw.commons.auth.AccountUtil import f...
apache-2.0
b17ee99f85f8731510a4c274d4677b20
46.632911
166
0.805954
5.614925
false
false
false
false
kmruiz/sonata
frontend/src/main/kotlin/io/sonatalang/snc/frontend/domain/token/NewLineToken.kt
1
324
package io.sonatalang.snc.frontend.domain.token object NewLineToken : BasicToken(false), TokenFactory<NewLineToken> { override fun with(character: Char) = this override fun toString() = "\n" override fun isSuitable(character: Char) = character == '\n' override fun create(character: Char) = NewLineToke...
gpl-2.0
41dcacab5368a98018db38e1105170de
35
69
0.728395
4.05
false
false
false
false
OpenConference/OpenConference-android
app/src/main/java/com/openconference/sessiondetails/presentationmodel/SessionDetailsPresentationModelTransformer.kt
1
2271
package com.openconference.sessiondetails.presentationmodel import com.openconference.model.Session import org.threeten.bp.LocalDateTime import org.threeten.bp.ZoneId import org.threeten.bp.format.DateTimeFormatter import org.threeten.bp.format.FormatStyle import java.util.* /** * Responsible to transform a Session ...
apache-2.0
82de0443dfb89a114e7cea847cdc68d1
27.4
100
0.713342
4.560241
false
false
false
false
UweTrottmann/SeriesGuide
app/src/main/java/com/battlelancer/seriesguide/traktapi/CheckInDialogFragment.kt
1
1942
package com.battlelancer.seriesguide.traktapi import android.content.Context import android.os.AsyncTask import android.os.Bundle import androidx.fragment.app.FragmentManager import com.battlelancer.seriesguide.provider.SgRoomDatabase.Companion.getInstance import com.battlelancer.seriesguide.util.TextTools import com....
apache-2.0
8d8c7fd133c47abfc729684673c1adc7
35.660377
96
0.656025
5.044156
false
false
false
false
redpen-cc/redpen-intellij-plugin
src/cc/redpen/intellij/StatusWidget.kt
1
5697
package cc.redpen.intellij import com.intellij.codeInsight.daemon.DaemonCodeAnalyzer import com.intellij.icons.AllIcons import com.intellij.ide.DataManager import com.intellij.openapi.actionSystem.* import com.intellij.openapi.actionSystem.LangDataKeys.PSI_FILE import com.intellij.openapi.actionSystem.impl.SimpleDataC...
apache-2.0
2b4053ba36d846e90b27bb160e47611f
35.754839
125
0.672284
5.07754
false
false
false
false
ColaGom/KtGitCloner
src/main/kotlin/net/ProjectExtractor.kt
1
1848
package net import SearchResponse import com.google.gson.Gson import com.google.gson.GsonBuilder import com.google.gson.reflect.TypeToken import data.Repository import java.io.PrintWriter import java.nio.file.Path class ProjectExtractor(val savePath: Path, val start:String, val end:String) { fun extract(page : In...
apache-2.0
3513c1b5dd0c5a0b9408d758f58f142a
30.322034
126
0.555195
4.738462
false
false
false
false
duftler/orca
orca-queue-tck/src/main/kotlin/com/netflix/spinnaker/orca/q/ExecutionLatch.kt
1
3713
/* * Copyright 2017 Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
apache-2.0
9f7e49b478f4afae4843f98df40e083b
33.06422
148
0.764611
4.425507
false
false
false
false
willowtreeapps/assertk
assertk/src/commonTest/kotlin/test/assertk/assertions/MapTest.kt
1
8247
package test.assertk.assertions import assertk.assertThat import assertk.assertions.* import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class MapTest { //region contains @Test fun contains_element_present_passes() { assertThat(mapOf("one" to 1, "two" to 2)).contain...
mit
238aac7563b9417f7e567504e005dad5
32.79918
111
0.56566
4.127628
false
true
false
false
cketti/k-9
app/storage/src/main/java/com/fsck/k9/storage/messages/RetrieveFolderOperations.kt
1
7702
package com.fsck.k9.storage.messages import android.database.Cursor import androidx.core.database.getLongOrNull import com.fsck.k9.Account.FolderMode import com.fsck.k9.helper.map import com.fsck.k9.mail.FolderClass import com.fsck.k9.mail.FolderType import com.fsck.k9.mailstore.FolderDetailsAccessor import com.fsck.k...
apache-2.0
8e5c09a2f2e22358a2e8571792545009
31.091667
114
0.583615
4.702076
false
false
false
false
Naliwe/IntelliJ_WowAddOnSupport
src/org/squarecell/wow/addon_support/builders/AddOnModuleBuilder.kt
1
3241
package org.squarecell.wow.addon_support.builders import com.intellij.ide.plugins.PluginManager import com.intellij.ide.util.PropertiesComponent import com.intellij.ide.util.projectWizard.ModuleBuilder import com.intellij.ide.util.projectWizard.ModuleBuilderListener import com.intellij.ide.util.projectWizard.ModuleWiz...
mit
ed67ccabfcb285c00c2dd178fc383999
40.025316
96
0.740512
4.794379
false
false
false
false
newbieandroid/AppBase
app/src/main/java/com/fuyoul/sanwenseller/ui/money/SettlementTypeActivity.kt
1
9245
package com.fuyoul.sanwenseller.ui.money import android.content.Context import android.content.Intent import android.graphics.drawable.Drawable import android.os.Bundle import android.support.design.widget.AppBarLayout import android.support.v7.widget.LinearLayoutManager import android.support.v7.widget.RecyclerView i...
apache-2.0
67aad4b9b3464eee0113aff45dec2b67
36.138211
177
0.678818
4.932505
false
false
false
false
commons-app/apps-android-commons
app/src/main/java/fr/free/nrw/commons/actions/PageEditInterface.kt
5
3876
package fr.free.nrw.commons.actions import io.reactivex.Observable import io.reactivex.Single import org.wikipedia.dataclient.Service import org.wikipedia.dataclient.mwapi.MwQueryResponse import org.wikipedia.edit.Edit import org.wikipedia.wikidata.Entities import retrofit2.http.* /** * This interface facilitates wi...
apache-2.0
2dad9b77f9fa30fc35f6e13ccf9b55ef
37.386139
100
0.668215
4.176724
false
false
false
false
kittinunf/ReactiveAndroid
reactiveandroid-support-v4/src/main/kotlin/com/github/kittinunf/reactiveandroid/support/v4/widget/SwipeRefreshLayoutProperty.kt
1
959
package com.github.kittinunf.reactiveandroid.support.v4.widget import android.support.v4.widget.SwipeRefreshLayout import com.github.kittinunf.reactiveandroid.MutableProperty import com.github.kittinunf.reactiveandroid.createMainThreadMutableProperty //=================================================================...
mit
9ca709be2942535aef9b98cbf19c1d92
37.36
82
0.618352
6.031447
false
false
false
false
JayNewstrom/Concrete
concrete/src/main/java/com/jaynewstrom/concrete/ConcreteWallContext.kt
1
732
package com.jaynewstrom.concrete import android.content.Context import android.content.ContextWrapper import android.view.LayoutInflater internal class ConcreteWallContext<C>( baseContext: Context, private val wall: ConcreteWall<C> ) : ContextWrapper(baseContext) { private var inflater: LayoutInflater? = ...
apache-2.0
91fa178009178e8b5c03d9f05df34541
28.28
80
0.657104
4.815789
false
false
false
false
NuclearCoder/nuclear-bot
src/nuclearbot/gui/components/chat/LimitedStringList.kt
1
2690
package nuclearbot.gui.components.chat import java.util.* import javax.swing.AbstractListModel import javax.swing.JList /* * Copyright (C) 2017 NuclearCoder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the...
agpl-3.0
f9ba378006bf76466fafc9152088c819
29.91954
82
0.624535
4.373984
false
false
false
false
lanhuaguizha/Christian
app/src/main/java/com/christian/nav/me/HidingGospelFragment.kt
1
7641
package com.christian.nav.me import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.NonNull import androidx.fragment.app.Fragment import androidx.recyclerview.widget.RecyclerView import com.christian.R import...
gpl-3.0
c7a9636999f4701376e2115199f79a27
37.01
119
0.576503
5.177793
false
false
false
false
AlmasB/FXGLGames
OutRun/src/main/kotlin/com/almasb/fxglgames/outrun/PlayerComponent.kt
1
2726
/* * The MIT License (MIT) * * FXGL - JavaFX Game Library * * Copyright (c) 2015-2016 AlmasB (almaslvl@gmail.com) * * 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 restrictio...
mit
a0d1242ecc3216f1bc4e31b99552d765
25.221154
80
0.629127
3.967977
false
false
false
false
brunordg/ctanywhere
app/src/main/java/br/com/codeteam/ctanywhere/ext/ContextExt.kt
1
991
package br.com.codeteam.ctanywhere.ext import android.content.Context import android.content.pm.PackageManager import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat /** * ...
mit
335c185ec4e2caf1405a8cf6142528e1
29.030303
106
0.774975
4.463964
false
false
false
false
westoncb/HNDesktop
src/main/java/App.kt
1
17053
import com.google.gson.JsonElement import com.google.gson.JsonObject import com.google.gson.JsonParser import com.google.gson.JsonPrimitive import javafx.application.Platform import javafx.embed.swing.JFXPanel import javafx.scene.Scene import javafx.scene.web.WebView import javax.swing.* import java.net.URL import java...
mit
1f900d1051def469acfb5e875158ffd4
32.177043
254
0.615552
4.905926
false
false
false
false
talhacohen/android
app/src/main/java/com/etesync/syncadapter/log/PlainTextFormatter.kt
1
1903
/* * Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering). * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html */ package ...
gpl-3.0
78d679d25643810875d7816dee049fab
31.758621
91
0.644737
4.269663
false
false
false
false
google/ksp
compiler-plugin/src/main/kotlin/com/google/devtools/ksp/symbol/impl/java/KSClassDeclarationJavaImpl.kt
1
6743
/* * Copyright 2020 Google LLC * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language 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.apac...
apache-2.0
c989627a8e542a240d1cb9a6b9a869d5
37.976879
116
0.689901
4.772116
false
false
false
false
macleod2486/AndroidSwissKnife
app/src/main/java/com/macleod2486/androidswissknife/components/Flashlight.kt
1
3071
/* AndroidSwissKnife Copyright (C) 2016 macleod2486 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
gpl-3.0
15ecbd0d2f1ba51c5b00356febdc2483
32.758242
123
0.647021
4.783489
false
false
false
false
wuseal/JsonToKotlinClass
src/main/kotlin/wu/seal/jsontokotlin/InsertKotlinClassAction.kt
1
8218
package wu.seal.jsontokotlin import com.google.gson.Gson import com.intellij.openapi.actionSystem.AnAction import com.intellij.openapi.actionSystem.AnActionEvent import com.intellij.openapi.actionSystem.PlatformDataKeys import com.intellij.openapi.editor.Caret import com.intellij.openapi.editor.Document import com.int...
gpl-3.0
331878500b49281dd63d70b1612b276f
37.401869
121
0.597834
5.460465
false
false
false
false
jtransc/jtransc
benchmark_kotlin_mpp/wip/jzlib/GZIPInputStream.kt
1
4000
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */ /* Copyright (c) 2011 ymnk, JCraft,Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the...
apache-2.0
3520d2983fe6c587932c68ae53584650
30.753968
99
0.68975
3.433476
false
false
false
false
Fitbit/MvRx
mock_generation/ShellAccess.kt
1
5910
#!/usr/bin/env kscript /** * Functions for executing shell commands and receiving the result. */ import java.io.BufferedReader import java.io.File import java.io.IOException import java.lang.ProcessBuilder.Redirect import java.util.concurrent.TimeUnit import kotlin.system.exitProcess /** * Executes the receiving s...
apache-2.0
448e3f92b126235d54663dec7631d407
36.405063
135
0.651777
4.974747
false
false
false
false
jtransc/jtransc
jtransc-core/src/com/jtransc/ast/dependency/analyzer.kt
1
7670
/* * Copyright 2016 Carlos Ballesteros Velasco * * 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 l...
apache-2.0
14cf0a519011e11202c21b01d7705ca9
25.912281
120
0.633246
3.244501
false
false
false
false
premisedata/cameraview
demo/src/main/kotlin/com/otaliastudios/cameraview/demo/MessageView.kt
1
1057
package com.otaliastudios.cameraview.demo import android.content.Context import android.util.AttributeSet import android.view.View import android.view.ViewGroup import android.widget.LinearLayout import android.widget.TextView class MessageView @JvmOverloads constructor( context: Context, attrs: Attri...
apache-2.0
5fdd56a4f33825eed84c9400a8c1d548
30.088235
99
0.712394
4.24498
false
false
false
false
msebire/intellij-community
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/resolve/GrCodeReferenceResolver.kt
1
10648
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.lang.resolve import com.intellij.psi.* import com.intellij.psi.scope.PsiScopeProcessor import com.intellij.psi.util.parentOfType import org.j...
apache-2.0
839efefb2945d31d77a5e1e9216aa8d0
39.181132
140
0.766529
4.796396
false
false
false
false
square/duktape-android
zipline-loader/src/commonTest/kotlin/app/cash/zipline/loader/internal/fetcher/HttpFetcherTest.kt
1
3505
/* * Copyright (C) 2022 Block, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
apache-2.0
504e17d33dfea18f287c3e4dfbf0fb60
29.745614
95
0.580884
3.651042
false
true
false
false
kannix68/advent_of_code_2016
day11/src_kotlin/Day11a.kt
1
11501
import java.security.* // MessageDigest import java.math.* // BigInteger import AocBase /** * AoC2016 Day11a main class. * Run with: * * ``` * run.sh * ``` * * Document with: * `java -jar dokka-fatjar.jar day13a.kt -format html -module "aoc16 day11a" -nodeprecated` */ class Day11a : AocBase() { val maxro...
mit
be1cd3f8e6963162c3caff3db71d8b1a
33.026627
254
0.604295
3.837504
false
false
false
false
infinum/android_dbinspector
dbinspector/src/main/kotlin/com/infinum/dbinspector/domain/history/interactors/RemoveExecutionInteractor.kt
1
1116
package com.infinum.dbinspector.domain.history.interactors import com.infinum.dbinspector.data.Sources import com.infinum.dbinspector.data.models.local.proto.input.HistoryTask import com.infinum.dbinspector.data.models.local.proto.output.HistoryEntity import com.infinum.dbinspector.domain.Interactors internal class R...
apache-2.0
107dff75e63636decff790c01e281692
38.857143
75
0.58871
5.552239
false
false
false
false
akvo/akvo-flow-mobile
domain/src/main/java/org/akvo/flow/domain/interactor/DownloadDataPoints.kt
1
3117
/* * Copyright (C) 2017-2018 Stichting Akvo (Akvo Foundation) * * This file is part of Akvo Flow. * * Akvo Flow is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at...
gpl-3.0
689b85dcb6c7dbcd573550adf750916b
37.012195
86
0.652871
4.955485
false
false
false
false
android/topeka
quiz/src/main/java/com/google/samples/apps/topeka/widget/quiz/FillTwoBlanksQuizView.kt
1
2908
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
626d80544164e9fdb30f858d42ee89c4
33.619048
76
0.690165
4.432927
false
false
false
false
andersonlucasg3/SpriteKit-Android
SpriteKitLib/src/main/java/br/com/insanitech/spritekit/easing/Quint.kt
1
871
package br.com.insanitech.spritekit.easing object Quint { fun easeIn(t: Float, b: Float, c: Float, d: Float): Float { var t = t val tLambda = { a: Float -> Float t = a t } return c * (tLambda(t / d)) * t * t * t * t + b } fun easeOut(t:...
bsd-3-clause
c1e6d40878a009af5c5d8efde875844e
25.21875
131
0.397245
3.178832
false
false
false
false
LanternPowered/LanternServer
src/main/kotlin/org/lanternpowered/server/network/vanilla/command/argument/ArgumentTypes.kt
1
2839
/* * Lantern * * Copyright (c) LanternPowered <https://www.lanternpowered.org> * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * This work is licensed under the terms of the MIT License (MIT). For * a copy, see 'LICENSE.txt' or <https://opensource.org/licenses/MIT>. ...
mit
d28c72e6955c10b90c867f70ce89664e
42.015152
102
0.702008
4.422118
false
false
false
false
Kotlin/kotlinx.serialization
formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonUnionEnumTest.kt
1
842
/* * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.json import kotlinx.serialization.* import kotlin.test.Test import kotlin.test.assertEquals class JsonUnionEnumTest : JsonTestBase() { enum class SomeEnum { ALPHA, BETA, GA...
apache-2.0
ca2d82b3a9cdb9bb2b437b18256c0546
30.185185
102
0.671021
4.502674
false
true
false
false
Kotlin/kotlinx.serialization
formats/protobuf/commonTest/src/kotlinx/serialization/protobuf/ProtobufPrimitiveWrappersTest.kt
1
2133
/* * Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.protobuf import kotlinx.serialization.* import kotlin.test.* /* * TODO improve these tests: * * All primitive types * * All nullable types * * Built-in types (TBD) * * P...
apache-2.0
bc3b36843cf9515c97d4a54745040cd1
28.625
119
0.65354
4.960465
false
true
false
false
k0kubun/github-ranking
worker/src/main/kotlin/com/github/k0kubun/gitstar_ranking/db/PaginatedUsers.kt
2
1044
package com.github.k0kubun.gitstar_ranking.db import com.github.k0kubun.gitstar_ranking.core.StarsCursor import com.github.k0kubun.gitstar_ranking.core.User import org.jooq.DSLContext private const val PAGE_SIZE = 5000 // This class does cursor-based-pagination for users order by stargazers_count DESC. class Paginat...
mit
f9627a8d9371803379190e98f6339a44
32.677419
84
0.64272
4.142857
false
false
false
false
debop/debop4k
debop4k-timeperiod/src/main/kotlin/debop4k/timeperiod/timeranges/HourRangeCollection.kt
1
2365
/* * Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@gmail.com> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
apache-2.0
3ce599d39b219060423eecb010356343
32.323944
103
0.672304
4.748996
false
false
false
false
Geobert/radis
app/src/main/kotlin/fr/geobert/radis/tools/PauseHandler.kt
1
1797
package fr.geobert.radis.tools import android.app.Activity import android.os.Handler import android.os.Message import java.util.* /** * Message Handler class that supports buffering up of messages when the activity is paused i.e. in the background. */ public abstract class PauseHandler : Handler() { /** *...
gpl-2.0
712dc203b004076c376ca72f8befa80a
24.671429
115
0.621035
4.667532
false
false
false
false
Mauin/detekt
detekt-api/src/main/kotlin/io/gitlab/arturbosch/detekt/api/Entity.kt
2
775
package io.gitlab.arturbosch.detekt.api import org.jetbrains.kotlin.com.intellij.psi.PsiElement import org.jetbrains.kotlin.psi.KtElement /** * Stores information about a specific code fragment. * * @author Artur Bosch */ data class Entity(val name: String, val className: String, val signature: String...
apache-2.0
4ea2b8988fb502a24a85085a0b129a97
27.703704
95
0.709677
3.836634
false
false
false
false
mopsalarm/Pr0
app/src/main/java/kotterknife/Kotterknife.kt
1
865
package kotterknife import android.app.Activity import android.view.View import kotlin.properties.ReadOnlyProperty import kotlin.reflect.KProperty fun <V : View> Activity.bindView(id: Int): ReadOnlyProperty<Activity, V> = Lazy { _: Any?, desc -> findViewById<V>(id) ?: viewNotFound(id, desc) } private fun viewNo...
mit
e0154a8ad55d19e4a211a5cdca9485c9
27.866667
98
0.655491
4.138756
false
false
false
false
if710/if710.github.io
2019-08-28/Threads/app/src/main/java/br/ufpe/cin/android/threads/ThreadViewPost.kt
1
1256
package br.ufpe.cin.android.threads import android.app.Activity import android.graphics.Bitmap import android.graphics.BitmapFactory import android.os.Bundle import android.widget.Toast import kotlinx.android.synthetic.main.threads.* class ThreadViewPost : Activity() { private var mBitmap: Bitmap? = null priv...
mit
db07b7ab2f5487a62e6e2773b8960f47
28.904762
107
0.642516
4.70412
false
false
false
false
Mithrandir21/Duopoints
app/src/main/java/com/duopoints/android/fragments/relprofile/RelationshipProfilePresenter.kt
1
5546
package com.duopoints.android.fragments.relprofile import com.duopoints.android.Calls import com.duopoints.android.fragments.base.BasePresenter import com.duopoints.android.logistics.SessionManager import com.duopoints.android.rest.models.composites.CompositeRelationship import com.duopoints.android.rest.models.enums....
gpl-3.0
b15e4275615e6a3ed3e01308d4bd99dd
46.008475
179
0.669672
5.765073
false
false
false
false
lukashaertel/megal-vm
src/main/kotlin/org/softlang/util/Lists.kt
1
868
package org.softlang.util /** * Skips [num] elements in the list. */ fun <E> List<E>.skip(num: Int) = subList(num, size) /** * Returns the tail of the list. */ fun <E> List<E>.tail() = skip(1) /** * Constructs a list from the first element and a list of remaining elements. */ infix fun <E> E.then(list: List<E>...
mit
d518663a1415b1e47278cbf2be39a28d
23.138889
77
0.612903
3.056338
false
false
false
false
chibatching/Kotpref
kotpref/src/main/kotlin/com/chibatching/kotpref/pref/StringSetPref.kt
1
8490
package com.chibatching.kotpref.pref import android.annotation.SuppressLint import android.annotation.TargetApi import android.os.Build import android.os.SystemClock import com.chibatching.kotpref.KotprefModel import com.chibatching.kotpref.execute import kotlin.reflect.KProperty /** * Delegate string set shared pre...
apache-2.0
5d5baa1158a4b1132724ce1d595a8d6b
35.282051
97
0.62768
5.690349
false
false
false
false
rsiebert/TVHClient
app/src/main/java/org/tvheadend/tvhclient/util/worker/RecordingNotificationWorker.kt
1
2026
package org.tvheadend.tvhclient.util.worker import android.app.PendingIntent import android.content.Context import android.content.Intent import androidx.core.app.NotificationManagerCompat import androidx.work.Worker import androidx.work.WorkerParameters import org.tvheadend.tvhclient.R import org.tvheadend.tvhclient....
gpl-3.0
e0049610ed966b009be1a6a5f7a8fcec
40.346939
129
0.733465
4.689815
false
false
false
false
rubixhacker/Kontact
kontact/src/main/kotlin/com/hackedcube/kontact/ContactUtils.kt
1
4119
@file:JvmName("ContactUtils") package com.hackedcube.kontact import android.content.Context import android.database.Cursor import android.net.Uri import android.provider.ContactsContract fun Context.queryAllContacts(): List<Kontact> { contentResolver.query(ContactsContract.Contacts.CONTENT_URI, null,...
apache-2.0
e704061328587b219133feb413b8dad2
41.840426
205
0.640447
4.772885
false
false
false
false
olonho/carkot
server/src/main/java/clInterface/executor/Sonar.kt
1
2359
package clInterface.executor import SonarRequest import objects.Car import objects.Environment import java.net.ConnectException import java.util.* import java.util.concurrent.TimeUnit class Sonar : CommandExecutor { private val SONAR_REGEX = Regex("sonar [0-9]{1,10}") override fun execute(command: String) {...
mit
dee442a4a34cf7e43cb2c3da48fdbe77
31.777778
100
0.496397
5.019149
false
false
false
false
genobis/tornadofx
src/main/java/tornadofx/Async.kt
1
14271
package tornadofx import com.sun.javafx.tk.Toolkit import javafx.application.Platform import javafx.beans.property.* import javafx.beans.value.ChangeListener import javafx.beans.value.ObservableValue import javafx.concurrent.Task import javafx.scene.Node import javafx.scene.control.Labeled import javafx.scene.control....
apache-2.0
f832bffad9e6af27ea5be4c5180f5e43
35.312977
173
0.683204
4.320618
false
false
false
false
d9n/intellij-rust
src/test/kotlin/org/rust/ide/inspections/RsMissingElseInspectionTest.kt
1
2651
package org.rust.ide.inspections /** * Tests for Missing Else inspection. */ class RsMissingElseInspectionTest : RsInspectionsTestBase(RsMissingElseInspection()) { fun testSimple() = checkByText(""" fn main() { if true { }<warning descr="Suspicious if. Did you mean `else if`?"> i...
mit
b2a0577c8252db8a99e672c9f4f49895
24.490385
120
0.422482
4.42571
false
true
false
false
gdomingues/keural
src/test/kotlin/br/com/germanno/keural/KeuralManagerTest.kt
1
1883
package br.com.germanno.keural import br.com.germanno.keural.activation_functions.HyperbolicTangent import org.junit.Assert import org.junit.Test /** * @author Germanno Domingues - germanno.domingues@gmail.com * @since 1/30/17 3:10 AM */ class KeuralManagerTest { private val wordsDatabase = arrayOf( ...
mit
b71a669bc6765f32565bcd891ee39cc6
27.530303
91
0.554434
4.399533
false
false
false
false
hewking/HUILibrary
app/src/main/java/com/hewking/custom/SectionSeekBar.kt
1
8139
package com.hewking.custom import android.animation.ValueAnimator import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint import android.graphics.RectF import android.util.AttributeSet import android.util.Log import android.view.MotionEvent i...
mit
bb4bf5a08b3102a3129c11dfd8f0f2c4
29.711382
160
0.572234
4.806531
false
false
false
false
DemonWav/IntelliJBukkitSupport
src/main/kotlin/toml/TomlStringValueInsertionHandler.kt
1
1866
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2021 minecraft-dev * * MIT License */ package com.demonwav.mcdev.toml import com.intellij.codeInsight.completion.InsertHandler import com.intellij.codeInsight.completion.InsertionContext import com.intellij.codeInsight.lookup.Looku...
mit
b743c99ca0489f032d08339225afe948
37.875
111
0.729368
4.464115
false
false
false
false
Ribesg/anko
dsl/static/src/common/viewChildrenSequences.kt
1
3829
/* * Copyright 2015 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
2f0538834ed994b77bf1d51343cfe3d0
29.388889
90
0.616871
4.646845
false
false
false
false
android/health-samples
health-connect/HealthConnectSample/app/src/main/java/com/example/healthconnectsample/presentation/navigation/DrawerItem.kt
1
2251
/* * Copyright 2022 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...
apache-2.0
e22b6eedb19026d4681643c25fcb1ff4
30.263889
76
0.698801
4.565923
false
false
false
false
wikimedia/apps-android-wikipedia
app/src/main/java/org/wikipedia/page/Namespace.kt
1
5426
package org.wikipedia.page import org.wikipedia.dataclient.WikiSite import org.wikipedia.language.AppLanguageLookUpTable import org.wikipedia.model.EnumCode import org.wikipedia.model.EnumCodeMap import org.wikipedia.staticdata.* import java.util.* /** An enumeration describing the different possible namespace codes....
apache-2.0
e4398c28ed91e02708289185d8a371d5
25.861386
134
0.60763
3.653872
false
false
false
false
wikimedia/apps-android-wikipedia
app/src/main/java/org/wikipedia/edit/richtext/SuperscriptSpanEx.kt
1
581
package org.wikipedia.edit.richtext import android.text.TextPaint import android.text.style.MetricAffectingSpan class SuperscriptSpanEx(override var start: Int, override var syntaxRule: SyntaxRule) : MetricAffectingSpan(), SpanExtents { override var end = 0 override fun updateDrawState(tp: TextPaint)...
apache-2.0
ae09c33200708113917ea2c7ed89d45d
29.578947
87
0.681583
3.952381
false
false
false
false
vanita5/twittnuker
twittnuker/src/main/kotlin/de/vanita5/twittnuker/adapter/ParcelableUserListsAdapter.kt
1
5072
/* * Twittnuker - Twitter client for Android * * Copyright (C) 2013-2017 vanita5 <mail@vanit.as> * * This program incorporates a modified version of Twidere. * Copyright (C) 2012-2017 Mariotaku Lee <mariotaku.lee@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the...
gpl-3.0
497c9d835e887b6802b4c82b4f384ce4
34.725352
123
0.682177
4.816714
false
false
false
false
Popalay/Cardme
presentation/src/main/kotlin/com/popalay/cardme/utils/extensions/CommonExt.kt
1
4406
package com.popalay.cardme.utils.extensions import android.arch.lifecycle.ViewModelProvider import android.arch.lifecycle.ViewModelProviders import android.content.ComponentName import android.content.Context import android.content.Intent import android.databinding.DataBindingUtil import android.databinding.ViewDataBi...
apache-2.0
631d6d8a1330cdc65cdceaeb350d86c6
37.321739
113
0.724921
4.55636
false
false
false
false
stripe/stripe-android
paymentsheet/src/androidTest/java/com/stripe/android/paymentsheet/utils/MockPaymentMethodsFactory.kt
1
2169
package com.stripe.android.paymentsheet.utils import com.stripe.android.paymentsheet.forms.PaymentMethodRequirements import com.stripe.android.ui.core.R import com.stripe.android.ui.core.elements.LayoutSpec import com.stripe.android.ui.core.forms.resources.LpmRepository object MockPaymentMethodsFactory { fun cre...
mit
3928d8fc9f5be3eecfb28a7699e67bac
37.732143
89
0.617796
5.491139
false
false
false
false
hannesa2/owncloud-android
owncloudApp/src/main/java/com/owncloud/android/presentation/ui/sharing/fragments/EditPrivateShareFragment.kt
2
18776
/** * ownCloud Android client application * * @author masensio * @author David A. Velasco * @author Christian Schabesberger * @author David González Verdugo * Copyright (C) 2020 ownCloud GmbH. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
gpl-2.0
4ffa0e5bc7ea5cbb9b3ca146add1a160
38.861996
132
0.596858
5.784042
false
false
false
false
kittinunf/Fuel
fuel/src/main/kotlin/com/github/kittinunf/fuel/toolbox/HttpClient.kt
1
13359
package com.github.kittinunf.fuel.toolbox import com.github.kittinunf.fuel.core.Client import com.github.kittinunf.fuel.core.FuelError import com.github.kittinunf.fuel.core.FuelManager import com.github.kittinunf.fuel.core.HeaderName import com.github.kittinunf.fuel.core.Headers import com.github.kittinunf.fuel.core.M...
mit
9a343afa7ef51df46d07058f1d797a27
46.204947
144
0.664646
5.108604
false
false
false
false
TeamWizardry/LibrarianLib
modules/glitter/src/test/kotlin/com/teamwizardry/librarianlib/glitter/test/systems/ForwardFacingSystem.kt
1
2271
package com.teamwizardry.librarianlib.glitter.test.systems import com.teamwizardry.librarianlib.glitter.bindings.ConstantBinding import com.teamwizardry.librarianlib.glitter.modules.BasicPhysicsUpdateModule import com.teamwizardry.librarianlib.glitter.modules.SpriteRenderModule import net.minecraft.entity.Entity impor...
lgpl-3.0
fd4014d31381b6d11965bb104737e898
31.457143
91
0.562748
4.991209
false
false
false
false
jorjoluiso/QuijoteLui
src/main/kotlin/com/quijotelui/model/RetencionDetalle.kt
1
1111
package com.quijotelui.model import org.hibernate.annotations.Immutable import java.math.BigDecimal import javax.persistence.Column import javax.persistence.Entity import javax.persistence.Id import javax.persistence.Table @Entity @Immutable @Table(name = "v_ele_retenciones_detalle") class RetencionDetalle { @I...
gpl-3.0
c8f350e8d530ad2656da8c03c1f0e0fb
21.24
42
0.673267
3.583871
false
false
false
false
androidx/androidx
room/room-compiler/src/main/kotlin/androidx/room/parser/expansion/ProjectionExpander.kt
3
10104
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
e6f2e2a6c737da2c74fca2f893590e8c
36.010989
98
0.54226
5.219008
false
false
false
false
androidx/androidx
appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/NightModeRtlTestUtilsRegressionTestCase.kt
3
3580
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
apache-2.0
aad70702947b81952303a16b5733f6db
33.757282
99
0.735754
4.877384
false
true
false
false
coffeemakr/OST
lib/sbb/src/main/java/ch/unstable/lib/sbb/auth/AuthInterceptor.kt
1
2278
package ch.unstable.lib.sbb.auth import android.util.Base64 import okhttp3.Interceptor import okhttp3.Request import okhttp3.Response import okhttp3.internal.Util.UTF_8 import java.text.SimpleDateFormat import java.util.* import javax.crypto.Mac import javax.crypto.spec.SecretKeySpec class AuthInterceptor(private va...
gpl-3.0
848c3c518f119f7a1d6b3b61d3ee7bc8
33
97
0.63345
4.510891
false
false
false
false
google/android-auto-companion-android
trustagent/tests/unit/src/com/google/android/libraries/car/trustagent/AssociationManagerMissingBluetoothPermissionsTest.kt
1
3859
// Copyright 2022 Google LLC // // 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 ...
apache-2.0
d317406c074208514eabdee1458807df
34.40367
98
0.783364
5.031291
false
true
false
false
EmmyLua/IntelliJ-EmmyLua
src/main/java/com/tang/intellij/lua/debugger/emmy/value/LuaXValue.kt
2
6458
/* * Copyright (c) 2017. tangzx(love.tangzx@qq.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
apache-2.0
3cf08ee91921826ef514c50c95009b47
33.540107
98
0.605141
4.622763
false
false
false
false
wordpress-mobile/AztecEditor-Android
wordpress-shortcodes/src/main/java/org/wordpress/aztec/plugins/shortcodes/VideoShortcodePlugin.kt
1
4304
package org.wordpress.aztec.plugins.shortcodes import org.wordpress.aztec.plugins.shortcodes.extensions.ATTRIBUTE_VIDEOPRESS_HIDDEN_ID import org.wordpress.aztec.plugins.shortcodes.extensions.ATTRIBUTE_VIDEOPRESS_HIDDEN_SRC import org.wordpress.aztec.plugins.html2visual.IHtmlPreprocessor import org.wordpress.aztec.plu...
mpl-2.0
5e43e4b51330e35f14669a393c0a4a33
43.371134
148
0.594796
4.618026
false
false
false
false
hpedrorodrigues/GZMD
app/src/main/kotlin/com/hpedrorodrigues/gzmd/constant/PreferenceKey.kt
1
899
/* * Copyright 2016 Pedro Rodrigues * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
apache-2.0
b3eaee9b69dc0c2c0e943fd6542af53b
32.333333
75
0.718576
3.84188
false
false
false
false
TCA-Team/TumCampusApp
app/src/main/java/de/tum/in/tumcampusapp/component/tumui/lectures/adapter/LectureListSelectionAdapter.kt
1
2049
package de.tum.`in`.tumcampusapp.component.tumui.lectures.adapter import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import android.widget.CheckBox import android.widget.CompoundButton import de.tum.`in`.tumcampusa...
gpl-3.0
f3440cc1bd73cbf83df1f57749cdcda2
38.403846
111
0.756467
4.710345
false
false
false
false
jk1/pmd-kotlin
src/test/resources/org/jetbrains/pmdkotlin/ignoreIdentifiersAndLiteralsTest/IgnoreIdentifiers2.kt
1
389
fun sum(a : Int, b : Int): Int { return a + b } fun factorial20() : Int { var res = 1 for (n in (1..20)) { res *= n } return res // it's another comment } fun my(first : Double, second : Char, f : Int) { var third = 2 * f; var forth = 3 * first; val fifth = 100 * 9 * 3423 *...
apache-2.0
5fb0f4b5eb4e90d8a9caf006ed86027a
15.956522
48
0.491003
3.039063
false
false
false
false
PoweRGbg/AndroidAPS
app/src/main/java/info/nightscout/androidaps/plugins/constraints/versionChecker/VersionCheckerUtils.kt
2
4879
package info.nightscout.androidaps.plugins.constraints.versionChecker import android.content.Context import android.net.ConnectivityManager import info.nightscout.androidaps.BuildConfig import info.nightscout.androidaps.MainApp import info.nightscout.androidaps.R import info.nightscout.androidaps.logging.L import info...
agpl-3.0
b3252e7dce2ebc8d32fbbf9c0f751a90
37.722222
167
0.699324
4.333037
false
false
false
false
westnordost/osmagent
app/src/main/java/de/westnordost/streetcomplete/view/StreetSideSelectPuzzle.kt
1
5017
package de.westnordost.streetcomplete.view import android.content.Context import android.graphics.Bitmap import android.graphics.Matrix import android.graphics.Shader import android.graphics.drawable.BitmapDrawable import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import andr...
gpl-3.0
4579a34e9922da2d28dc889c2d69e911
34.58156
109
0.668726
4.769011
false
false
false
false
StepicOrg/stepic-android
app/src/main/java/org/stepik/android/presentation/magic_links/MagicLinkPresenter.kt
2
1365
package org.stepik.android.presentation.magic_links import io.reactivex.Scheduler import io.reactivex.rxkotlin.plusAssign import io.reactivex.rxkotlin.subscribeBy import org.stepic.droid.di.qualifiers.BackgroundScheduler import org.stepic.droid.di.qualifiers.MainScheduler import org.stepik.android.domain.magic_links.i...
apache-2.0
f66b198b9a3d0b0de2ff7efd694a0a01
32.317073
76
0.710623
4.875
false
false
false
false
Commit451/GitLabAndroid
app/src/main/java/com/commit451/gitlab/model/api/Todo.kt
2
1464
package com.commit451.gitlab.model.api import android.os.Parcelable import androidx.annotation.StringDef import com.squareup.moshi.Json import kotlinx.android.parcel.Parcelize import java.util.Date /** * Todos. Not processing Target, since it is different depending on what the type is, which * makes it not play nic...
apache-2.0
715bc41e5c698bc2586facf1650f087b
26.111111
91
0.662568
3.763496
false
false
false
false
divinespear/jpa-schema-gradle-plugin
src/main/kotlin/io/github/divinespear/plugin/plugin.kt
1
2062
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
apache-2.0
b9401dd008dc5cdfdb5f2452e71feffc
31.21875
77
0.703201
4.359408
false
false
false
false
Exaltead/SceneClassifier
SceneClassifier/app/src/main/java/com/exaltead/sceneclassifier/extraction/constants.kt
1
351
package com.exaltead.sceneclassifier.extraction import android.media.AudioFormat import android.media.AudioFormat.CHANNEL_IN_MONO const val SAMPLING_RATE = 44100 const val SAMPLE_DURATION = 1 const val SAMPLE_MAX_LENGHT = SAMPLING_RATE * SAMPLE_DURATION const val CHANNELS = CHANNEL_IN_MONO const val AUDIO_ENCODING = ...
gpl-3.0
a717b2401b667672b2945fb7190eac27
34.1
61
0.820513
3.734043
false
false
false
false
itsmortoncornelius/example-wifi-direct
app/src/main/java/de/handler/mobile/wifivideo/WifiP2pDeviceRecyclerViewAdapter.kt
1
1657
package de.handler.mobile.wifivideo import android.net.wifi.p2p.WifiP2pDevice import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import de.handler.mobile.wifivideo.DeviceListFragment.OnListFragmentIntera...
apache-2.0
189c81f4886a09b8e90ba263983c1212
32.816327
168
0.777912
3.844548
false
false
false
false
Heiner1/AndroidAPS
app/src/main/java/info/nightscout/androidaps/activities/HistoryBrowseActivity.kt
1
17892
package info.nightscout.androidaps.activities import android.annotation.SuppressLint import android.content.Context import android.os.Bundle import android.util.DisplayMetrics import android.view.ViewGroup import android.widget.LinearLayout import android.widget.RelativeLayout import android.widget.TextView import com...
agpl-3.0
72be9c1f119fee63db0c40104fc3eb63
47.356757
195
0.681031
5.21025
false
false
false
false
MKA-Nigeria/MKAN-Report-Android
videos_module/src/main/java/com/abdulmujibaliu/koutube/adapters/VideoTabsAdapter.kt
1
976
package com.abdulmujibaliu.koutube.adapters import android.support.v4.app.Fragment import android.support.v4.app.FragmentManager import android.support.v4.app.FragmentPagerAdapter import com.abdulmujibaliu.koutube.fragments.playlists.PlaylistsFragment import com.abdulmujibaliu.koutube.fragments.videos.VideosFragment ...
mit
f4534d9d2d37a649dddc8c7417b3665a
26.138889
106
0.680328
4.497696
false
false
false
false
auth0/Auth0.Android
auth0/src/test/java/com/auth0/android/util/AuthenticationAPIMockServer.kt
1
5102
package com.auth0.android.util import okhttp3.mockwebserver.MockResponse import java.nio.file.Files import java.nio.file.Paths internal class AuthenticationAPIMockServer : APIMockServer() { fun willReturnSuccessfulChangePassword(): AuthenticationAPIMockServer { server.enqueue(responseWithJSON("NOT REALLY...
mit
b88399e6d582b82ef28864ce6cf75469
30.89375
178
0.587809
4.52305
false
false
false
false
Maccimo/intellij-community
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/intentions/branchedTransformations/BranchedFoldingUtils.kt
3
11446
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.kotlin.idea.intentions.branchedTransformations import org.jetbrains.kotlin.cfg.WhenChecker import org.jetbrains.kotlin.diagnostics.Errors...
apache-2.0
153bce8520c5543ffde3c1eee136022b
46.493776
158
0.632099
5.774975
false
false
false
false
AcornUI/Acorn
acornui-core/src/main/kotlin/com/acornui/graphic/Hsv.kt
1
1539
package com.acornui.graphic import kotlinx.serialization.* import kotlinx.serialization.builtins.* import kotlinx.serialization.descriptors.* import kotlinx.serialization.encoding.* import kotlin.math.abs /** * Hue saturation value */ @Serializable(with = HsvSerializer::class) data class Hsv( val h: Double = 0.0,...
apache-2.0
25c0c9b0a7ab5e0108f93d4210694618
19.263158
114
0.575699
2.763016
false
false
false
false
wordpress-mobile/WordPress-Android
WordPress/src/main/java/org/wordpress/android/ui/mysite/cards/quickstart/QuickStartCardViewHolder.kt
1
5925
package org.wordpress.android.ui.mysite.cards.quickstart import android.animation.ObjectAnimator import android.content.res.ColorStateList import android.graphics.Paint import android.view.View import android.view.ViewGroup import android.widget.ProgressBar import androidx.appcompat.widget.PopupMenu import androidx.co...
gpl-2.0
5e191211dccf69a576f4d1f29e501951
43.216418
108
0.743797
5.243363
false
false
false
false
mdaniel/intellij-community
platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogContentUtil.kt
3
5659
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.vcs.log.impl import com.intellij.openapi.project.Project import com.intellij.openapi.ui.MessageType import com.intellij.openapi.util.NlsContexts import com.intellij.openapi.vcs....
apache-2.0
aaf760e64001e2905f998db13ed2f25c
41.238806
137
0.74112
4.657613
false
false
false
false
ingokegel/intellij-community
plugins/kotlin/code-insight/api/src/org/jetbrains/kotlin/idea/codeinsight/api/classic/quickfixes/QuickFixesPsiBasedFactory.kt
5
2784
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.kotlin.idea.codeinsight.api.classic.quickfixes import com.intellij.codeInsight.intention.IntentionAction import com.intellij.psi.PsiElement import kotlin.reflect.KClass import...
apache-2.0
17de27bdc5e68a3b0ba0a88ae95f631a
39.941176
120
0.74533
5.184358
false
false
false
false
ingokegel/intellij-community
platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/BuildContextImpl.kt
1
14006
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. @file:Suppress("ReplaceJavaStaticMethodWithKotlinAnalog") package org.jetbrains.intellij.build.impl import com.intellij.openapi.util.io.FileUtilRt import com.intellij.openapi.util.text.Strings impo...
apache-2.0
7ff65afdfdb0dc2179d00bb1980a56c0
43.322785
151
0.728402
5.728425
false
false
false
false
sys1yagi/longest-streak-android
app/src/main/java/com/sys1yagi/longeststreakandroid/tool/LongestStreakCounter.kt
1
1928
package com.sys1yagi.longeststreakandroid.tool import android.util.Log import com.sys1yagi.longeststreakandroid.db.OrmaDatabase import com.sys1yagi.longeststreakandroid.model.Event import java.util.* class LongestStreakCounter { val a = Calendar.getInstance() val b = Calendar.getInstance() fun count(dat...
mit
0134e0973f085451609854b44c435ad2
31.133333
88
0.475622
4.473318
false
false
false
false
leksak/kilobyte
src/main/kotlin/kilobyte/common/instruction/parametrizedroutines/ParametrizedInstructionRoutines.kt
1
18467
package kilobyte.common.instruction.parametrizedroutines import com.google.common.base.Preconditions.checkArgument import kilobyte.common.extensions.* import kilobyte.common.hardware.RegisterFile import kilobyte.common.instruction.DecompiledInstruction import kilobyte.common.instruction.Format import kilobyte.common.i...
mit
3cf2d339dee964034a14501bd164f31d
37.594142
126
0.647531
4.134245
false
false
false
false