You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# copies of the Software, and to permit persons to whom the Software is
11
+
# furnished to do so, subject to the following conditions:
12
+
#
13
+
# The above copyright notice and this permission notice shall be included in all
14
+
# copies or substantial portions of the Software.
15
+
#
16
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+
# SOFTWARE.
23
+
# =
24
+
moduleCopyleaks
25
+
classDeprecationService
26
+
defself.show_deprecation_message
27
+
28
+
warn"DEPRECATION NOTICE: AI Code Detection will be discontinued on August 29, 2025. Please remove AI code detection integrations before the sunset date."
Copy file name to clipboardExpand all lines: lib/copyleaks/models/submissions/file_submission_model.rb
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ class CopyleaksFileSubmissionModel < CopyleaksSubmissionModel
26
26
# @param [String] base64 A base64 data string of a file. If you would like to scan plain text, encode it as base64 and submit it.
27
27
# @param [String] filename The name of the file as it will appear in the Copyleaks scan report Make sure to include the right extension for your filetype.
28
28
# @param [SubmissionProperties] properties Check inner properties for more details.
29
+
attr_reader:base64,:filename,:properties
30
+
29
31
definitialize(base64,filename,properties)
30
32
unlessbase64.instance_of?(String)
31
33
raise'Copyleaks::CopyleaksFileSubmissionModel - base64 - base64 must be of type String'
0 commit comments