file_id stringlengths 4 10 | content stringlengths 91 42.8k | repo stringlengths 7 108 | path stringlengths 7 251 | token_length int64 34 8.19k | original_comment stringlengths 11 11.5k | comment_type stringclasses 2
values | detected_lang stringclasses 1
value | prompt stringlengths 34 42.8k |
|---|---|---|---|---|---|---|---|---|
2_29 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | elastic/elasticsearch | libs/h3/src/main/java/org/elasticsearch/h3/CoordIJK.java | 3,778 | /**
* Rotates ijk coordinates 60 degrees clockwise.
*
*/ | block_comment | nl | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
2_34 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | elastic/elasticsearch | libs/h3/src/main/java/org/elasticsearch/h3/CoordIJK.java | 3,778 | /**
* Rotates ijk coordinates 60 degrees counter-clockwise.
*/ | block_comment | nl | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... |
28_45 | /*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you 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... | netty/netty | handler/src/main/java/io/netty/handler/ssl/OpenSsl.java | 8,169 | // generic arch-dependent library | line_comment | nl | /*
* Copyright 2014 The Netty Project
*
* The Netty Project licenses this file to you 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... |
40_6 | /*
* Copyright 2020 The Netty Project
*
* The Netty Project licenses this file to you 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... | netty/netty | buffer/src/main/java/io/netty/buffer/SizeClasses.java | 4,514 | //[index, log2Group, log2Delta, nDelta, isMultiPageSize, isSubPage, log2DeltaLookup] | line_comment | nl | /*
* Copyright 2020 The Netty Project
*
* The Netty Project licenses this file to you 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... |
89_23 | // Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island
// by building roads, settlements and cities across its uncharted wilderness.
// You are employed by a software company that just has decided to develop a computer version of
// this game, and you are chosen to implemen... | kdn251/interviews | uva/TheSettlersOfCatan.java | 1,174 | //get edge between node x and node y | line_comment | nl | // Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island
// by building roads, settlements and cities across its uncharted wilderness.
// You are employed by a software company that just has decided to develop a computer version of
// this game, and you are chosen to implemen... |
93_1 | package com.thealgorithms.sorts;
/**
* Comb Sort algorithm implementation
*
* <p>
* Best-case performance O(n * log(n)) Worst-case performance O(n ^ 2)
* Worst-case space complexity O(1)
*
* <p>
* Comb sort improves on bubble sort.
*
* @author Sandeep Roy (https://github.com/sandeeproy99)
* @author Podshiva... | TheAlgorithms/Java | src/main/java/com/thealgorithms/sorts/CombSort.java | 632 | // To find gap between elements | line_comment | nl | package com.thealgorithms.sorts;
/**
* Comb Sort algorithm implementation
*
* <p>
* Best-case performance O(n * log(n)) Worst-case performance O(n ^ 2)
* Worst-case space complexity O(1)
*
* <p>
* Comb sort improves on bubble sort.
*
* @author Sandeep Roy (https://github.com/sandeeproy99)
* @author Podshiva... |
99_7 | package com.thealgorithms.others;
import java.util.Objects;
/**
* The Verhoeff algorithm is a checksum formula for error detection developed by
* the Dutch mathematician Jacobus Verhoeff and was first published in 1969. It
* was the first decimal check digit algorithm which detects all single-digit
* errors, and ... | TheAlgorithms/Java | src/main/java/com/thealgorithms/others/Verhoeff.java | 1,958 | // Add zero to end of input value | line_comment | nl | package com.thealgorithms.others;
import java.util.Objects;
/**
* The Verhoeff algorithm is a checksum formula for error detection developed by
* the Dutch mathematician Jacobus Verhoeff and was first published in 1969. It
* was the first decimal check digit algorithm which detects all single-digit
* errors, and ... |
315_124 | "// ASM: a very small and fast Java bytecode manipulation framework\n// Copyright (c) 2000-2011 INRI(...TRUNCATED) | spring-projects/spring-framework | spring-core/src/main/java/org/springframework/asm/Label.java | 7,954 | // Overridden Object methods | line_comment | nl | "// ASM: a very small and fast Java bytecode manipulation framework\n// Copyright (c) 2000-2011 INRI(...TRUNCATED) |
346_0 | "///usr/bin/env jbang \"$0\" \"$@\" ; exit $?\n// //DEPS <dependency1> <dependency2>\n\nimport stati(...TRUNCATED) | eugenp/tutorials | jbang/hello.java | 70 | ///usr/bin/env jbang "$0" "$@" ; exit $? | line_comment | nl | "///usr/bin/env jbang<SUF>\n// //DEPS <dependency1> <dependency2>\n\nimport static java.lang.System.(...TRUNCATED) |
404_9 | "/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License(...TRUNCATED) | tensorflow/tensorflow | tensorflow/lite/java/src/main/java/org/tensorflow/lite/DataType.java | 544 | // Boolean size is JVM-dependent. | line_comment | nl | "/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n\nLicensed under the Apache License(...TRUNCATED) |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3