file_id stringlengths 5 8 | content stringlengths 131 14.4k | repo stringlengths 9 59 | path stringlengths 8 120 | token_length int64 36 3.49k | original_comment stringlengths 5 791 | comment_type stringclasses 2
values | detected_lang stringclasses 1
value | masked_comment stringlengths 135 14.3k | excluded float64 0 0 | file-tokens-Qwen/Qwen2-7B int64 30 3.27k | comment-tokens-Qwen/Qwen2-7B int64 2 459 | file-tokens-bigcode/starcoder2-7b int64 35 3.49k | comment-tokens-bigcode/starcoder2-7b int64 3 483 | file-tokens-google/codegemma-7b int64 36 3.61k | comment-tokens-google/codegemma-7b int64 3 465 | file-tokens-ibm-granite/granite-8b-code-base int64 35 3.49k | comment-tokens-ibm-granite/granite-8b-code-base int64 3 483 | file-tokens-meta-llama/CodeLlama-7b-hf int64 44 4.13k | comment-tokens-meta-llama/CodeLlama-7b-hf int64 4 592 | excluded-based-on-tokenizer-Qwen/Qwen2-7B bool 2
classes | excluded-based-on-tokenizer-bigcode/starcoder2-7b bool 2
classes | excluded-based-on-tokenizer-google/codegemma-7b bool 2
classes | excluded-based-on-tokenizer-ibm-granite/granite-8b-code-base bool 2
classes | excluded-based-on-tokenizer-meta-llama/CodeLlama-7b-hf bool 2
classes | include-for-inference bool 2
classes |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44207_2 | import java.util.*;
//二、实验内容
// 1、完成一个简易学生信息系统,学生分为本科生和研究生,本科生有学号、姓名、年龄、班级、专业、
// 地址、各科成绩等信息,研究生有学号、姓名、年龄、班级、地址、导师、研究方向、各科成绩等信息
// ,所有地址包含省份、城市、街道、门牌号等信息。系统至少需要实现以下功能:增加、修改、删除学生信息,
// 浏览(各类)学生信息,可以根据班级、姓名或者学号查询学生信息,可以根据各科成绩、总成绩、
// 学号排序显示(各类)所有学生信息,能分别查看本科生、研究生人数,以及所有学生的总人数。
// 其它要求如下:
/... | 000dust000/StudentDataOperation | StudentDataOperation.java | 388 | // 地址、各科成绩等信息,研究生有学号、姓名、年龄、班级、地址、导师、研究方向、各科成绩等信息 | line_comment | zh-cn | import java.util.*;
//二、实验内容
// 1、完成一个简易学生信息系统,学生分为本科生和研究生,本科生有学号、姓名、年龄、班级、专业、
// 地址 <SUF>
// ,所有地址包含省份、城市、街道、门牌号等信息。系统至少需要实现以下功能:增加、修改、删除学生信息,
// 浏览(各类)学生信息,可以根据班级、姓名或者学号查询学生信息,可以根据各科成绩、总成绩、
// 学号排序显示(各类)所有学生信息,能分别查看本科生、研究生人数,以及所有学生的总人数。
// 其它要求如下:
// (1)要求应用面向对象程序设计的思想,根据给定的需求进行... | 0 | 318 | 35 | 388 | 44 | 338 | 33 | 388 | 44 | 587 | 65 | false | false | false | false | false | true |
55868_25 | //package com.example.wwwapplication;
//
//import androidx.appcompat.app.AppCompatActivity;
//
//import android.os.Bundle;
//import android.util.Log;
//import android.webkit.WebSettings;
//import android.webkit.WebView;
//import android.webkit.WebViewClient;
//
//import com.google.gson.Gson;
//
//import java.util.Array... | 01Petard/News | app/src/main/java/com/example/wwwapplication/guangchangActivity.java | 1,359 | // //设置WebView排版算法, 实现单列显示, 不允许横向移动 | line_comment | zh-cn | //package com.example.wwwapplication;
//
//import androidx.appcompat.app.AppCompatActivity;
//
//import android.os.Bundle;
//import android.util.Log;
//import android.webkit.WebSettings;
//import android.webkit.WebView;
//import android.webkit.WebViewClient;
//
//import com.google.gson.Gson;
//
//import java.util.Array... | 0 | 984 | 19 | 1,359 | 21 | 1,145 | 19 | 1,359 | 21 | 1,725 | 35 | false | false | false | false | false | true |
46292_13 | package com.huiguanjia.action;
import java.util.*;
import org.apache.struts2.json.JSONException;
import org.apache.struts2.json.JSONUtil;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.alibaba.fastjson.JSON;
import com.huiguanjia.pojo.Department;
import com.hui... | 0326/MeetingMng | src/com/huiguanjia/action/MeetingAction.java | 2,972 | //会议实际完成时间 | line_comment | zh-cn | package com.huiguanjia.action;
import java.util.*;
import org.apache.struts2.json.JSONException;
import org.apache.struts2.json.JSONUtil;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.alibaba.fastjson.JSON;
import com.huiguanjia.pojo.Department;
import com.hui... | 0 | 2,463 | 5 | 2,972 | 6 | 2,929 | 5 | 2,972 | 6 | 3,748 | 13 | false | false | false | false | false | true |
37053_3 | import java.io.*;
import java.net.*;
import java.util.*;
import java.util.Map.Entry;
public class server{
public static void main(String args[])throws Exception{
try{
//链式散列集用来存储与小车连接的线程0
Map<String,serverthread> threadList = new HashMap<String,serverthread>();
ServerSocket server = new ServerS... | 068089dy/voice-wifi-car | server.java | 867 | //发送数据 | line_comment | zh-cn | import java.io.*;
import java.net.*;
import java.util.*;
import java.util.Map.Entry;
public class server{
public static void main(String args[])throws Exception{
try{
//链式散列集用来存储与小车连接的线程0
Map<String,serverthread> threadList = new HashMap<String,serverthread>();
ServerSocket server = new ServerS... | 0 | 737 | 3 | 867 | 3 | 949 | 3 | 867 | 3 | 1,033 | 5 | false | false | false | false | false | true |
26292_20 | package view;
/*标题栏高度30,但在linux下不占用window高度
*如何避免所有重绘,而只画其中一部分【1.截图,设置背景2.】
* 重绘指定区域【http://bbs.csdn.net/topics/220032015】repaint(x,y,width,height)
* */
import model.MyFood;
import model.MyPoint;
import model.MySnake;
import org.apache.log4j.Logger;
//import org.junit.Test;
import javax.swing.*;
import java.awt.*;
imp... | 0874/tanChiShe | src/main/java/view/GamePanel.java | 2,915 | //给最后一个赋值 | line_comment | zh-cn | package view;
/*标题栏高度30,但在linux下不占用window高度
*如何避免所有重绘,而只画其中一部分【1.截图,设置背景2.】
* 重绘指定区域【http://bbs.csdn.net/topics/220032015】repaint(x,y,width,height)
* */
import model.MyFood;
import model.MyPoint;
import model.MySnake;
import org.apache.log4j.Logger;
//import org.junit.Test;
import javax.swing.*;
import java.awt.*;
imp... | 0 | 2,561 | 5 | 2,915 | 5 | 3,055 | 4 | 2,915 | 5 | 3,737 | 10 | false | false | false | false | false | true |
6749_34 | package com.opslab.helper;
import com.opslab.Opslab;
import com.opslab.useful.SSLmiTM;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* 封装常见的HTTP方法
*/
public final class ... | 0opslab/opslabJutil | src/main/java/com/opslab/helper/HttpHelper.java | 2,843 | // 默认值为:false,当向远程服务器传送数据/写数据时,需要设置为true
| line_comment | zh-cn | package com.opslab.helper;
import com.opslab.Opslab;
import com.opslab.useful.SSLmiTM;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLSession;
import java.io.*;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* 封装常见的HTTP方法
*/
public final class ... | 0 | 2,734 | 23 | 2,835 | 22 | 3,110 | 21 | 2,835 | 22 | 3,896 | 35 | false | false | false | false | false | true |
49815_11 | package com.zhangke.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Moti... | 0xZhangKe/Collection | DrawView/DrawView.java | 2,095 | //遍历绘制记录表,通过 ID 找到对应的记录 | line_comment | zh-cn | package com.zhangke.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.PointF;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.view.Moti... | 0 | 1,865 | 14 | 2,097 | 13 | 2,224 | 12 | 2,095 | 13 | 2,654 | 28 | false | false | false | false | false | true |
30389_3 | package pers.tan.database;
import java.io.InputStream;
import java.sql.*;
import java.util.Properties;
/**
* DB class
*
* @author tanwei
* @date 17-11-19
*/
public class DB {
private static Properties info = null;
private static String driverUrl = null;
private static String user = null;
private ... | 0xc9e36/toyCode | java/src/pers/tan/database/DB.java | 548 | /**
* 插入100条记录
*/ | block_comment | zh-cn | package pers.tan.database;
import java.io.InputStream;
import java.sql.*;
import java.util.Properties;
/**
* DB class
*
* @author tanwei
* @date 17-11-19
*/
public class DB {
private static Properties info = null;
private static String driverUrl = null;
private static String user = null;
private ... | 0 | 507 | 14 | 548 | 13 | 607 | 13 | 548 | 13 | 677 | 18 | false | false | false | false | false | true |
52655_7 | package com.yu.service;
import org.springframework.stereotype.Service;
/**
* 发送vosa的车相关的服务实现接口
* @author za'y
*/
@Service
public interface CarService {
// 通用实现
boolean common(String key, int value);
// 初始化
boolean init();
// 减速
boolean sspeed();
// 停车
boolean Stop();
// 控制速度... | 0xiaoyu/vsoa_yolov_car | src/main/java/com/yu/service/CarService.java | 178 | // 设置门状态 | line_comment | zh-cn | package com.yu.service;
import org.springframework.stereotype.Service;
/**
* 发送vosa的车相关的服务实现接口
* @author za'y
*/
@Service
public interface CarService {
// 通用实现
boolean common(String key, int value);
// 初始化
boolean init();
// 减速
boolean sspeed();
// 停车
boolean Stop();
// 控制速度... | 0 | 157 | 4 | 178 | 4 | 176 | 4 | 178 | 4 | 240 | 7 | false | false | false | false | false | true |
36688_1 | import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
int [] nums = {1,2,3};
Solution solution = new Solution();
System.out.println(solution.permutationsI(nums));
}
}
class Solution {
/* 回溯算法:全排列 I */
void backtrack(List... | 0xihehe0/leetcode-Java | leetcode/_046/src/Main.java | 369 | // 当状态长度等于元素数量时,记录解 | line_comment | zh-cn | import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
int [] nums = {1,2,3};
Solution solution = new Solution();
System.out.println(solution.permutationsI(nums));
}
}
class Solution {
/* 回溯算法:全排列 I */
void backtrack(List... | 0 | 317 | 11 | 369 | 11 | 384 | 11 | 369 | 11 | 475 | 18 | false | false | false | false | false | true |
24139_14 | /*
* Copyright 2013 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 1030907690/netty-netty-4.1.27.Final | common/src/main/java/io/netty/util/concurrent/Future.java | 1,625 | // 阻塞等待任务结束,如果任务失败,将“导致失败的异常”重新抛出来 | line_comment | zh-cn | /*
* Copyright 2013 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:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 0 | 1,604 | 23 | 1,625 | 22 | 1,730 | 21 | 1,625 | 22 | 2,123 | 47 | false | false | false | false | false | true |
47074_20 | package xws.neuron;
import com.alibaba.fastjson.JSON;
import java.util.Random;
/**
* 神经网络的工具类
* Created by xws on 2019/2/19.
*/
public class UtilNeuralNet {
public static double alpha = 0000000000000000000000000000001D;
//扩展输入数据 如果步幅导致不能出现数据边界有未处理数据
public static double[][] extension(double[][] inpu... | 1036225283/xws | src/main/java/xws/neuron/UtilNeuralNet.java | 1,908 | //求均值 | line_comment | zh-cn | package xws.neuron;
import com.alibaba.fastjson.JSON;
import java.util.Random;
/**
* 神经网络的工具类
* Created by xws on 2019/2/19.
*/
public class UtilNeuralNet {
public static double alpha = 0000000000000000000000000000001D;
//扩展输入数据 如果步幅导致不能出现数据边界有未处理数据
public static double[][] extension(double[][] inpu... | 0 | 1,807 | 4 | 1,908 | 4 | 2,073 | 4 | 1,908 | 4 | 2,328 | 6 | false | false | false | false | false | true |
26648_10 | //package AddressBook;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONObject;
public class Resolution {
public static JSONObject addressResolution(String txt,char flag)
{
JSONObject jsonObject=new JSONObject();
//char flag=txt.charAt(0);//flag... | 1061413241/AddressBook | Resolution.java | 1,175 | //未处理具体地址中包含市县的情况 | line_comment | zh-cn | //package AddressBook;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONObject;
public class Resolution {
public static JSONObject addressResolution(String txt,char flag)
{
JSONObject jsonObject=new JSONObject();
//char flag=txt.charAt(0);//flag... | 0 | 956 | 9 | 1,175 | 11 | 1,149 | 10 | 1,175 | 11 | 1,509 | 22 | false | false | false | false | false | true |
31172_5 | package com.jaydenxiao.androidfire.ui.ClockResult.config;
import android.content.Context;
import android.os.Environment;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.Serializable;
import java.util.Properties;
/**
* Created by xtt on 2017/9/7.
*
*/
public cl... | 1097919195/FaceCheck | app/src/main/java/com/jaydenxiao/androidfire/ui/ClockResult/config/FaceTimeConfig.java | 642 | //人走开,最大持续人脸数字 | line_comment | zh-cn | package com.jaydenxiao.androidfire.ui.ClockResult.config;
import android.content.Context;
import android.os.Environment;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.Serializable;
import java.util.Properties;
/**
* Created by xtt on 2017/9/7.
*
*/
public cl... | 0 | 540 | 9 | 642 | 12 | 673 | 10 | 642 | 12 | 796 | 19 | false | false | false | false | false | true |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4