Dataset Viewer
Auto-converted to Parquet Duplicate
Code_Function
stringlengths
13
13.9k
Message
stringlengths
10
1.46k
@KnownFailure("Fixed on DonutBurger, Wrong Exception thrown") fun`test_unwrap_ByteBuffer$ByteBuffer_02`() { val host = "new host" val port = 8080 val bbs: ByteBuffer = ByteBuffer.allocate(10) val bbR: ByteBuffer = ByteBuffer.allocate(100).asReadOnlyBuffer() val bbA: Array<ByteBuffer> = arrayOf<ByteBuffer>(bbR, ByteBuff...
javax.net.ssl.SSLEngine # unwrap ( ByteBuffer src , ByteBuffer [ ] dsts ) ReadOnlyBufferException should be thrown .
fun make(bits: Int): CstFloat? { return CstFloat(bits)}
Makes an instance for the given value . This may ( but does not necessarily ) return an already-allocated instance .
fun size(): Long { var size: Long = 0 if (parsedGeneExpressions == null) parseGenes() for (i in 0 until parsedGeneExpressions.length) size += parsedGeneExpressions.get(i).numberOfNodes() return size}
Returns the `` size '' of the chromosome , namely , the number of nodes in all of its parsed genes -- does not include the linking functions .
fun increment(view: View?) { if (quantity === 100) { return } quantity = quantity + 1 displayQuantity(quantity) }
This method is called when the plus button is clicked .
fun trimToSize() { ++modCount if (size < elementData.length) { elementData = Arrays.copyOf(elementData, size) } }
Trims the capacity of this < tt > ArrayHashList < /tt > instance to be the list 's current size . An application can use this operation to minimize the storage of an < tt > ArrayHashList < /tt > instance .
fun SyncValueResponseMessage(other: SyncValueResponseMessage) { __isset_bitfield = other.__isset_bitfield if (other.isSetHeader()) { this.header = AsyncMessageHeader(other.header) } this.count = other.count }
Performs a deep copy on < i > other < /i > .
fun clearParsers() { if (parserManager != null) { parserManager.clearParsers() } }
Removes all parsers from this text area .
fun run() { while (doWork) { deliverLock() while (tomLayer.isRetrievingState()) { println("-- Retrieving State") canDeliver.awaitUninterruptibly() if (tomLayer.getLastExec() === -1) println("-- Ready to process operations") } try { val decisions: ArrayList<Decision> = ArrayList<Decision>() decidedLock.lock() if (decide...
This is the code for the thread . It delivers decisions to the TOM request receiver object ( which is the application )
Throws(GeneralSecurityException::class, EncryptionUnsupportedByProductException::class) private fun calculateUValue( generalKey: ByteArray, firstDocIdValue: ByteArray?, revision: Int ): ByteArray? { return if (revision == 2) { val rc4: Cipher = createRC4Cipher() val key: SecretKey = createRC4Key(generalKey) initEncrypt...
Calculate what the U value should consist of given a particular key and document configuration . Correponds to Algorithms 3.4 and 3.5 of the PDF Reference version 1.7
private fun assign(labelMap: HashMap<String, DBIDs>, label: String, id: DBIDRef) { if (labelMap.containsKey(label)) { val exist: DBIDs? = labelMap[label] if (exist is DBID) { val n: ModifiableDBIDs = DBIDUtil.newHashSet() n.add(exist as DBID?) n.add(id) labelMap[label] = n } else { assert(exist is HashSetModifiableDBID...
Assigns the specified id to the labelMap according to its label
private fun showFeedback(message: String) { if (myHost != null) { myHost.showFeedback(message) } else { println(message) } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface .
fun CDeleteAction(debuggerProvider: BackEndDebuggerProvider?, rows: IntArray) { super(if (rows.size == 1) "Remove Breakpoint" else "Remove Breakpoints") m_debuggerProvider = Preconditions.checkNotNull( debuggerProvider,”IE01344: Debugger provider argument can not be null) m_rows = rows.clone() }
Creates a new action object .
fun Yaml( constructor: BaseConstructor, representer: Representer, dumperOptions: DumperOptions, resolver: Resolver ) { if (!constructor.isExplicitPropertyUtils()) { constructor.setPropertyUtils(representer.getPropertyUtils()) } else if (!representer.isExplicitPropertyUtils()) { representer.setPropertyUtils(constructor....
Create Yaml instance . It is safe to create a few instances and use them in different Threads .
fun testHitEndAfterFind() { hitEndTest(true, "#01.0", "r((ege)|(geg))x", "regexx", false) hitEndTest(true, "#01.1", "r((ege)|(geg))x", "regex", false) hitEndTest(true, "#01.2", "r((ege)|(geg))x", "rege", true) hitEndTest(true, "#01.2", "r((ege)|(geg))x", "xregexx", false) hitEndTest(true, "#02.0", "regex", "rexreger", ...
Regression test for HARMONY-4396
fun add(individual: Individual?) { individuals.add(individual) }
Adds a single individual .
fun removeSession(sesId: IgniteUuid?): Boolean { val ses: GridTaskSessionImpl = sesMap.get(sesId) assert(ses == null || ses.isFullSupport()) if (ses != null && ses.release()) { sesMap.remove(sesId, ses) return true } return false }
Removes session for a given session ID .
@Throws(ImageLoadException::class) fun loadBitmapOptimized(uri: Uri?, context: Context?, limit: Int): Bitmap? { return loadBitmapOptimized(object : UriSource(uri, context) {}, limit) }
Loading bitmap with optimized loaded size less than specific pixels count
protected fun BasePeriod(duration: Long) { super() iType = PeriodType.standard() val values: IntArray = ISOChronology.getInstanceUTC().get(DUMMY_PERIOD, duration) iValues = IntArray(8) System.arraycopy(values, 0, iValues, 4, 4) }
Creates a period from the given millisecond duration with the standard period type and ISO rules , ensuring that the calculation is performed with the time-only period type . < p > The calculation uses the hour , minute , second and millisecond fields .
fun FlatBufferBuilder() { this(1024) }
Start with a buffer of 1KiB , then grow as required .
fun PbrpcConnectionException(arg0: String?, arg1: Throwable?) { super(arg0, arg1) }
Creates a new instance of PbrpcConnectionException .
fun uninstallUI(a: javax.swing.JComponent?) { for (i in 0 until uis.size()) { (uis.elementAt(i) as javax.swing.plaf.ComponentUI).uninstallUI(a) } }
Invokes the < code > uninstallUI < /code > method on each UI handled by this object .
fun shutdown() { if (instance != null) { instance.save() } }
Saves the configuration file .
fun GE(w2: org.graalvm.compiler.word.Word): Boolean { return value.GE(w2.value) }
Greater-than or equal comparison
fun of(elementCoders: List<Coder<*>?>?): UnionCoder? { return UnionCoder(elementCoders) }
Builds a union coder with the given list of element coders . This list corresponds to a mapping of union tag to Coder . Union tags start at 0 .
@Throws(Exception::class) fun testFileDeletion() { val testDir: File = createTestDir("testFileDeletion") val prefix1 = "testFileDeletion1" val files1: Array<File> = createFiles(testDir, prefix1, 5) val prefix2 = "testFileDeletion2" val files2: Array<File> = createFiles(testDir, prefix2, 5) FileCommands.deleteFiles(file...
Verify ability to delete a list of files .
fun isOnClasspath(classpath: String?): Boolean { return classpath.equals(classpath) }
Evaluates if the Dependency is targeted for a classpath type .
protected fun source(ceylon: String) { val providerPreSrc = "provider/" + ceylon + "_pre.ceylon" val providerPostSrc = "provider/" + ceylon + "_post.ceylon" val clientSrc = "client/" + ceylon + "_client.ceylon" compile(providerPreSrc, providerModuleSrc, providerPackageSrc) compile(clientSrc, clientModuleSrc) compile(pr...
Checks that we can still compile a client after a change
fun PerformanceMonitor() { initComponents() if (Display.getInstance().getCurrent() != null) { refreshFrameActionPerformed(null) } resultData.setModel(Model()) performanceLog.setLineWrap(true) resultData.setRowSorter(javax.swing.table.TableRowSorter<Model>(resultData.getModel() as Model)) }
Creates new form PerformanceMonitor
"@DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-09-03 15:01:15.190 -0400", hash_original_method = "F262A3A18BABECF7EC492736953EAF6E",hash_generated_method = "94A4545C167C029CC38AACEACF2087E9") private fun unparkSuccessor(node: Node) {val ws: Int = node.waitStatus if (ws < 0) compar...
Wakes up node 's successor , if one exists .
@DSComment("From safe class list") @DSSafe(DSCat.SAFE_LIST) @DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 13:02:44.364 -0500", hash_original_method = "EA3734ADDEB20313C9CAB09B48812C54", hash_generated_method = "4858AFE909DDE63867ACB561D5449C13" ) fun assertFalse(message: Str...
Asserts that a condition is false . If it is n't it throws an AssertionFailedError with the given message .
protected fun initData() { val intent = Intent(this, PushMessageService::class.java) this.startService(intent) this.bindService(intent, this.connection, Context.BIND_AUTO_CREATE) }
Initialize the Activity data
@Throws(ParseException::class) fun parseDateDay(dateString: String?): Date? { return getSimplDateFormat(DF_DEF).parse(dateString) }
Returns date parsed from string in format : yyyy.MM.dd .
private fun doesStoragePortExistsInVArray( umfsStoragePort: StoragePort, virtualArray: VirtualArray ): Boolean { val virtualArrayPorts: List<URI> = returnAllPortsInVArray(virtualArray.getId()) return if (virtualArrayPorts.contains(umfsStoragePort.getId())) { true } else false }
Checks if the given storage port is part of VArray
@Throws(ServiceException::class) fun SpringVaadinServletService( servlet: VaadinServlet?, deploymentConfiguration: DeploymentConfiguration?, serviceUrl: String ) { super(servlet, deploymentConfiguration) serviceUrl = serviceUrl }
Create a servlet service instance that allows the use of a custom service URL .
@Throws(InternalTranslationException::class) private fun translateChildrenOfNode( environment: ITranslationEnvironment, expression: IOperandTreeNode, size: org.graalvm.compiler.asm.amd64.AMD64Assembler.OperandSize, loadOperand: Boolean, baseOffset: Long ): List<TranslationResult>? { var baseOffset: Long? = baseOffset v...
Iterates over the children of a node in the operand tree and generates translations for them .
fun removeShutdownLatch(latch: CountDownLatch?) { removeShutdownLatch(latch, false) }
Releases the latch and removes it from the latches being handled by this handler .
fun Version() { this(CommonReflection.getVersionTag()) }
Constructs a new Version from the current server version running
fun startActivity(context: Context, chatId: String?) { val intent = Intent(context, SendGroupFile::class.java) intent.putExtra(EXTRA_CHAT_ID, chatId) context.startActivity(intent) }
Start SendGroupFile activity
fun excludedDataCenters(excludedDataCenters: String?): Index? { excludedDataCenters = excludedDataCenters return this }
Sets the list of excluded data centers .
@Throws(IOException::class) fun read(): Int { val result: Int = src.read() if (result != -1) { ++pointer } return result }
Forwards the request to the real < code > InputStream < /code > .
fun compareAndSwapInt(obj: Any?, off: Long, exp: Int, upd: Int): Boolean { return UNSAFE.compareAndSwapInt(obj, off, exp, upd) }
Integer CAS .
fun dec2Bin(value: Int): String? { val result = "" return dec2Bin(value, result) }
Methods converts a decimal number into a binary number as a string
fun apply(recyclerView: RecyclerView, items: Iterable<Item>?) { if (items != null) { val cache: HashMap<Int, Stack<RecyclerView.ViewHolder>> = HashMap() for (d in items) { if (!cache.containsKey(d.getType())) { cache[d.getType()] = Stack<RecyclerView.ViewHolder>() } if (mCacheSize === -1 || cache[d.getType()].size() <=...
init the cache on your own .
fun incNumOverflowOnDisk(delta: Long) { this.stats.incLong(numOverflowOnDiskId, delta) }
Increments the current number of entries whose value has been overflowed to disk by a given amount .
fun paint(a: java.awt.Graphics?, b: javax.swing.JComponent?) { for (i in 0 until uis.size()) { (uis.elementAt(i) as javax.swing.plaf.ComponentUI).paint(a, b) } }
Invokes the < code > paint < /code > method on each UI handled by this object .
fun updateUI() { setUI(javax.swing.UIManager.getUI(this) as javax.swing.plaf.TableHeaderUI) val renderer: javax.swing.table.TableCellRenderer = getDefaultRenderer() if (renderer is Component) { javax.swing.SwingUtilities.updateComponentTreeUI(renderer as Component) } }
Notification from the < code > UIManager < /code > that the look and feel ( L & amp ; F ) has changed . Replaces the current UI object with the latest version from the < code > UIManager < /code > .
fun create(status: IStatus): RefactoringStatus? { if (status.isOK()) return RefactoringStatus() return if (!status.isMultiStatus()) { when (status.getSeverity()) { IStatus.OK -> RefactoringStatus() IStatus.INFO -> RefactoringStatus.createWarningStatus(status.getMessage()) IStatus.WARNING -> RefactoringStatus.createErro...
Creates a new < code > RefactoringStatus < /code > from the given < code > IStatus < /code > . An OK status is mapped to an OK refactoring status , an information status is mapped to a warning refactoring status , a warning status is mapped to an error refactoring status and an error or cancel status is mapped to a fat...
fun debug(msg: String?) { debugLogger.debug(msg) }
Log a Setup and/or administrative log message for log4jdbc .
fun size(): Int { return codon.length }
Returns the length of the integer codon representation of this grammar .
@Throws(UnsupportedEncodingException::class, DecodingException::class)fun decode(): jdk.internal.org.jline.utils.DiffHelper.Diff? { val header: Int = r.read(3) if (DiffAction.parse(header) !== DiffAction.DECODER_DATA) { throw DecodingException("Invalid codecData code: $header") } val blockSize_C = 3 val blockSize_S: In...
Decodes the information and returns the Diff .
fun FontSizeLocator() {}
Creates a new instance .
fun <E : Comparable<E>?> createAutoSortedCollection(values: Collection<E>?): AutoSortedCollection<E>? { return createAutoSortedCollection(null, values) }
Construct new auto sorted collection using natural order .
override fun toString(): String? { return super.toString() }
Returns the super class implementation of toString ( ) .
fun useLayoutEditor(destination: SignalMast?): Boolean { return if (!destList.containsKey(destination)) { false } else destList.get(destination).useLayoutEditor() }
Query if we are using the layout editor panels to build the signal mast logic , blocks , turnouts .
private fun unescapePathComponent(name: String): String? { return name.replace("\\\\(.)".toRegex(), "$1") }
Convert a path component that contains backslash escape sequences to a literal string . This is necessary when you want to explicitly refer to a path that contains globber metacharacters .
fun AbstractExampleTable(attributes: List<Attribute?>?) { addAttributes(attributes) }
Creates a new ExampleTable .
fun zoomOut() { val save: Matrix = mViewPortHandler.zoomOut(getWidth() / 2f, -(getHeight() / 2f)) mViewPortHandler.refresh(save, this, true) }
Zooms out by 0.7f , from the charts center . center .
@Throws(IOException::class) fun createBackgroundMedia(uri: String?): Media? { return impl.createBackgroundMedia(uri) }
Creates an audio media that can be played in the background .
private fun hasNextTlsMode(): Boolean { return nextTlsMode !== TLS_MODE_NULL }
Returns true if there 's another TLS mode to try .
protected fun copyToOpsw() { opsw.get(1) = fullmode.isSelected() opsw.get(2) = twoaspects.isSelected() opsw.get(11) = semaphore.isSelected() opsw.get(12) = pulsed.isSelected() opsw.get(13) = disableDS.isSelected() opsw.get(14) = fromloconet.isSelected() opsw.get(15) = disablelocal.isSelected() opsw.get(17) = sigaddress...
Copy from the GUI to the opsw array . < p > Used before write operations start
override fun onRequestPermissionsResult( requestCode: Int, permissions: Array<String?>, grantResults: IntArray ) { if (requestCode == ALLOW_PERMISSIONS && grantResults.size > 0) { val permissionsNotAllowed: MutableList<String?> = ArrayList() for (i in permissions.indices) { if (grantResults[i] == PackageManager.PERMISS...
This method is a callback . Check the user 's answer after requesting permission .
fun rowGet(key: String?): String? { val resolvedKey: String = resolveRowKey(key) val cachedValue: String = rowMapCache.get(resolvedKey) if (cachedValue != null) { return cachedValue } var value: String = rowMap.get(resolvedKey) if (value == null && jdk.javadoc.internal.doclets.toolkit.util.DocPath.parent != null) { val...
Looks up and returns the RowSpec associated with the given key . First looks for an association in this LayoutMap . If there 's no association , the lookup continues with the parent map - if any .
fun postEvaluationStatistics(state: EvolutionState) { super.postEvaluationStatistics(state) state.output.println( ""” Generation: ${state.generation) """.trimIndent(), Output.V_NO_GENERAL, statisticslog ) for (x in 0 until state.population.subpops.length) for (y in 1 until state.population.subpops.get( x ).individuals....
Logs the best individual of the generation .
@Throws(Exception::class) private fun checkUserExists(entidad: String) { val count: Int val table = UsersTable() val dbConn = DbConnection() try { dbConn.open(DBSessionManager.getSession()) count = if (_id === ISicresAdminDefsKeys.NULL_ID) DbSelectFns.selectCount( dbConn, table.getBaseTableName(), table.getCountNameQua...
Comprueba que el usuario tiene distinto nombre a los que ya existen .
@Transactional fun createRoleWithPermissions(role: Role, permissionIds: Set<Long?>?): Role? { val current: Role = findRoleByRoleName(role.getRoleName()) Preconditions.checkState(current == null, "Role %s already exists!", role.getRoleName()) val createdRole: Role = roleRepository.save(role) if (!CollectionUtils.isEmpty...
Create role with permissions , note that role name should be unique
protected fun generateNewCursorBox() { if (old_m_x2 !== -1 || old_m_y2 !== -1 || Math.abs(commonValues.m_x2 - old_m_x2) > 5 || Math.abs( commonValues.m_y2 - old_m_y2 ) > 5 ) { var top_x: Int = commonValues.m_x1 if (commonValues.m_x1 > commonValues.m_x2) { top_x = commonValues.m_x2 } var top_y: Int = commonValues.m_y1 i...
generate new cursorBox and highlight extractable text , if hardware acceleration off and extraction on < br > and update current cursor box displayed on screen
fun OMGraphicList(initialCapacity: Int) { graphics = Collections.synchronizedList(ArrayList<OMGraphic>(initialCapacity)) }
Construct an OMGraphicList with an initial capacity .
private fun saveToSettings() { val dataToSave: MutableList<String> = LinkedList() for (item in data) { dataToSave.add( item.getId().toString() + "," + HtmlColors.getColorString(item.getColor()) ) } settings.putList("usercolors", dataToSave) }
Copy the current data to the settings .
fun isArrayForName(value: String?): Boolean { return ARRAY_FOR_NAME_PATTERN.matcher(value).matches() }
Returns true if the given string looks like a Java array name .
fun length(): Double { return Math.sqrt(this.x * this.x + this.y * this.y) }
Calculates the length of the vector .
override fun toString(): String? { return schema }
Returns this ' media-type ( a MIME content-type category ) ( previously returned a description key )
fun restoreStarting(numPackages: Int) {}
The restore operation has begun .
@Throws(CoreException::class) private fun resourceIsGwtXmlAndInGwt(resource: IResource): Boolean { return GWTNature.isGWTProject(resource.getProject()) && resource.getName() .endsWith(".gwt.xml") }
If the resource is a .gwt.xml file and we 're in a gwt-enabled project , return true .
fun GlowCreature(location: Location?, type: EntityType, maxHealth: Double) { super(location, maxHealth) type = type }
Creates a new monster .
fun CacheLayer() {}
Construct a default CacheLayer .
@Throws(JSONException::class) protected fun buildAndroidAddress(jResult: JSONObject): Address? { val gAddress = Address(mLocale) gAddress.setLatitude(jResult.getDouble("lat")) gAddress.setLongitude(jResult.getDouble("lng")) var addressIndex = 0 if (jResult.has("streetName")) { gAddress.setAddressLine(addressIndex++, jR...
Build an Android Address object from the Gisgraphy address in JSON format .
@Throws(SQLException::class) fun JDBCCategoryDataset(connection: Connection?, query: String?) { this(connection) executeQuery(query) }
Creates a new dataset with the given database connection , and executes the supplied query to populate the dataset .
fun generateReqsFromCancelledPOItems( dctx: DispatchContext, context: Map<String?, Any?> ): Map<String?, Any?>? { val delegator: Delegator = dctx.getDelegator() val dispatcher: LocalDispatcher = dctx.getDispatcher() val userLogin: GenericValue? = context["userLogin"] as GenericValue? val locale: Locale? = context["loca...
Generates a product requirement for the total cancelled quantity over all order items for each product
@Throws(IOException::class, ClassNotFoundException::class) private fun readObject(s: ObjectInputStream) { s.defaultReadObject() if (bayesIm == null) { throw NullPointerException() } if (variables == null) { throw NullPointerException() } }
Adds semantic checks to the default deserialization method . This method must have the standard signature for a readObject method , and the body of the method must begin with `` s.defaultReadObject ( ) ; '' . Other than that , any semantic checks can be specified and do not need to stay the same from version to version...
operator fun contains(protocolVersion: ProtocolVersion): Boolean { return if (protocolVersion === ProtocolVersion.SSL20Hello) { false } else protocols.contains(protocolVersion) }
Return whether this list contains the specified protocol version . SSLv2Hello is not a real protocol version we support , we always return false for it .
protected fun eStaticClass(): EClass? { return DatatypePackage.Literals.OBJECT_PROPERTY_TYPE }
< ! -- begin-user-doc -- > < ! -- end-user-doc -- >
@DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 12:34:35.806 -0500", hash_original_method = "E14DF72F5869874CC38AD67447F5264E", hash_generated_method = "127365361841BB38033FE96228DFD635" ) fun typesIterator(): Iterator<String>? { return if (mDataTypes != null) mDataTypes.itera...
Return an iterator over the filter 's data types .
fun registerGUI(gui: ConfigGUI) { gui = gui }
Sets the reference of the GUI .
fun IntersectionMatrix(other: IntersectionMatrix) { this() matrix.get(Location.INTERIOR).get(Location.INTERIOR) = other.matrix.get(Location.INTERIOR).get(Location.INTERIOR) matrix.get(Location.INTERIOR).get(Location.BOUNDARY) = other.matrix.get(Location.INTERIOR).get(Location.BOUNDARY) matrix.get(Location.INTERIOR).get...
Creates an < code > IntersectionMatrix < /code > with the same elements as < code > other < /code > .
fun readUnsignedInt(): Long { val result: Long = shiftIntoLong(data, position, 4) position += 4 return result }
Reads the next four bytes as an unsigned value .
fun emit(out: SpannableStringBuilder?, root: Block) { root.removeSurroundingEmptyLines() when (root.type) { NONE -> {} javax.accessibility.AccessibleRole.PARAGRAPH -> this.config.decorator.openParagraph(out) javax.swing.text.html.HTML.Tag.BLOCKQUOTE -> this.config.decorator.openBlockquote(out) UNORDERED_LIST -> this.co...
Transforms the given block recursively into HTML .
fun isInternable(): Boolean { return classAnnotations != null && fieldAnnotations == null && methodAnnotations == null && parameterAnnotations == null }
Returns whether this item is a candidate for interning . The only interning candidates are ones that < i > only < /i > have a non-null set of class annotations , with no other lists .
@Throws(javax.print.URIException::class) fun URI( scheme: String?, userinfo: String?, host: String?, port: Int, path: String?, query: String?, fragment: String? ) { this( scheme, if (host == null) null else (if (userinfo != null) "$userinfo@" else "") + host + if (port != -1) ":$port" else "", path, query, fragment ) }
Construct a general URI from the given components .
fun addUser(user: User?) { users.addElement(user) }
Add a user
@Throws(SignatureException::class) protected fun engineUpdate(b: Byte) { msgDigest.update(b) }
Updates data to sign or to verify .
@Throws(IOException::class) fun RqMtFake(req: Request?, vararg dispositions: Request?) { this.fake = RqMtBase(FakeMultipartRequest(req, dispositions)) }
Fake ctor .
fun randomVideo(): Video? { val id: String = UUID.randomUUID().toString() val title = "Video-$id" val url = http://coursera.org/some/video-$id val duration = (60 * Math.rint(Math.random() * 60).toInt() * 1000).toLong() return Video(title, url, duration) }
Construct and return a Video object with a rnadom name , url , and duration .
fun addHeader(header: String?, value: String?) { clientHeaderMap.put(header, value) }
Sets headers that will be added to all requests this client makes ( before sending ) .
fun addPostalAddress(postalAddress: PostalAddress?) { getPostalAddresses().add(postalAddress) }
Adds a new contact postal address .
fun newCaughtExceptionRef(): CaughtExceptionRef? { return JCaughtExceptionRef() }
Constructs a CaughtExceptionRef ( ) grammar chunk .
fun actionPerformed(e: java.awt.event.ActionEvent) { if (e.getSource() is PerformanceIndicator) { val pi: PerformanceIndicator = e.getSource() as PerformanceIndicator log.info(pi.getName()) val goal: MGoal = pi.getGoal() if (goal.getMeasure() != null) PerformanceDetail(goal) } }
Action Listener for Drill Down
fun childIterator(dirtyNodesOnly: Boolean): Iterator<com.sun.tools.javac.util.GraphUtils.AbstractNode?>? { return if (dirtyNodesOnly) { DirtyChildIterator(this) } else { com.sun.org.apache.xpath.internal.axes.ChildIterator(this) } }
Iterator visits the direct child nodes in the external key ordering .
fun maxIndex(doubles: DoubleArray): Int { var maximum = 0.0 var maxIndex = 0 for (i in doubles.indices) { if (i == 0 || doubles[i] > maximum) { maxIndex = I maximum = doubles[i] } } return maxIndex }
Returns index of maximum element in a given array of doubles . First maximum is returned .
private fun crawlSingleIndexableResource(indexableFragment: IndexableFragment): List<PreferenceIndex>? { val indexablePreferences: MutableList<PreferenceIndex> = ArrayList() val parser: XmlPullParser = mContext.getResources().getXml(indexableFragment.xmlRes) var type: Int try { while (parser.next().also { type = it } !...
Skim through the xml preference file .
private fun crawlSingleIndexableResource(indexableFragment: IndexableFragment): List<PreferenceIndex>? { val indexablePreferences: MutableList<PreferenceIndex> = ArrayList() val parser: XmlPullParser = mContext.getResources().getXml(indexableFragment.xmlRes) var type: Int try { while (parser.next().also { type = it } !...
Generate an explicit null check ( compare to zero ) .
End of preview. Expand in Data Studio

Dataset Card for Dataset kotlin_code

Dataset Summary

This Dataset contains Kotlin functions with there documentation. This dataset can be useful in fine-tuning or creating new models for developing models which can generate the code documentaiton

Supported Tasks and Leaderboards

[More Information Needed]

Languages

[More Information Needed]

Dataset Structure

Data Instances

[More Information Needed]

Data Fields

[More Information Needed]

Data Splits

[More Information Needed]

Dataset Creation

Curation Rationale

[More Information Needed]

Source Data

Initial Data Collection and Normalization

[More Information Needed]

Who are the source language producers?

[More Information Needed]

Annotations

Annotation process

[More Information Needed]

Who are the annotators?

[More Information Needed]

Personal and Sensitive Information

[More Information Needed]

Considerations for Using the Data

Social Impact of Dataset

[More Information Needed]

Discussion of Biases

[More Information Needed]

Other Known Limitations

[More Information Needed]

Additional Information

Dataset Curators

[More Information Needed]

Licensing Information

[More Information Needed]

Citation Information

[More Information Needed]

Contributions

[More Information Needed]

Downloads last month
59