blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
671d18a2bb1c98e4436c62dd8e8c7657ce5d3b49 | Java | moutainhigh/dm-platform | /dm-media/dm-media-domain/src/test/java/com/damon/media/domain/SpecAggregateTest.java | UTF-8 | 6,119 | 2.046875 | 2 | [] | no_license | package com.damon.media.domain;
import com.damon.media.domain.slot.spec.aggregate.SpecAggregate;
import com.damon.media.domain.slot.spec.aggregate.SpecId;
import com.damon.media.domain.slot.spec.command.ActivateSpecCommand;
import com.damon.media.domain.slot.spec.command.CreateSpecCommand;
import com.damon.media.domai... | true |
9fbe72984219bbd874f7b8fe1651401e4c243033 | Java | szszwjk/yiyang | /yiyang-manager/yiyang-manager-pojo/src/main/java/com/yiyang/pojo/ParentInfo.java | UTF-8 | 4,579 | 2.359375 | 2 | [] | no_license | package com.yiyang.pojo;
import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;
public class ParentInfo implements Serializable {
// <tr> <td rowspan="4"> 照片</td><td>性别:${item.infoSex}</td><td>身份证:${item.pIdnum}</td></tr>
// <tr> <td>联系方式:${item.infoTel}</td><td>出生地:... | true |
21c926144c2ed8f0e3deec3efa3a9e90502c7926 | Java | alldatacenter/alldata | /studio/modules/service-data-dts-parent/service-data-dts/src/main/java/com/platform/admin/tool/flinkx/FlinkxJsonInterface.java | UTF-8 | 733 | 1.648438 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | package com.platform.admin.tool.flinkx;
import java.util.Map;
/**
* 构建 com.guoliang.flinkx json的基础接口
*
* @author AllDataDC
* @ClassName FlinkxJsonHelper
* @Version 2.1.1
* @date 2022/03/14 12:24
*/
public interface FlinkxJsonInterface {
Map<String, Object> buildJob();
Map<String, Object> buildSetting... | true |
f9f3fba3cb274f606ac3013037ba58449246a9cb | Java | stef38-code/StrategyPattern | /src/main/java/com/stephane/strategy/pattern/examples/client/rest/response/post/Post.java | UTF-8 | 218 | 1.671875 | 2 | [] | no_license | package com.stephane.strategy.pattern.examples.client.rest.response.post;
import lombok.Data;
public @Data
class Post {
private int id;
private String title;
private String body;
private int userId;
} | true |
eb6e7b0a76614659afa0a661affe259742085076 | Java | GeraldGono/Android_Exercises | /DIALOG_PICKER/exercises_DIALOG_PICKER/src/com/example/exercises_dialog_picker/PickerActivity.java | UTF-8 | 1,306 | 2.8125 | 3 | [] | no_license | package com.example.exercises_dialog_picker;
import android.app.Activity;
import android.os.Bundle;
import android.widget.NumberPicker;
import android.widget.NumberPicker.OnValueChangeListener;
import android.widget.TextView;
public class PickerActivity extends Activity {
NumberPicker np;
TextView tv1, tv2;
// i... | true |
327ce5caff6fded44ca4b2e6d6d706478fda755e | Java | ArgelOrtiz/BrainCommunityApp | /app/src/main/java/com/example/braincommunity/Post/PostViewActivity.java | UTF-8 | 1,676 | 1.929688 | 2 | [] | no_license | package com.example.braincommunity.Post;
import android.content.Intent;
import android.os.Bundle;
import android.service.autofill.TextValueSanitizer;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
impor... | true |
81e4a5366eabcdc9d572ef6b40dcbf537660c967 | Java | Alphonsbaby/JAVA | /GFGA.JAVA | UTF-8 | 2,011 | 3.4375 | 3 | [] | no_license | import java.util.*;
public class GFGA {
static void checkSymmetric(int mat[][], int row,
int col)
{
int i, j, flag = 1;
System.out.println("The matrix formed is:");
for (i = 0; i < row; i++) {
for (j = 0; j < col; j++) {
... | true |
c68bd14e8a709b15c66a57b6ae34f1e508abb69a | Java | sheraz-nadeem/oboe_recorder_sample | /oboe_recorder/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/AudioStreamBase.java | UTF-8 | 3,484 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 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... | true |
cbac48f6c8a3472317abde821968b58453a9eaef | Java | DarkNormal/3rd-year-app | /app/src/main/java/project/b_ourguest/bourguest/BookingActivity.java | UTF-8 | 17,976 | 2 | 2 | [] | no_license | package project.b_ourguest.bourguest;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.PorterDuff... | true |
e210488e89f27ac2f88efcf92a5ddc7eca188d35 | Java | pnambic/depan | /DepanViewDoc/prod/src/com/google/devtools/depan/view_doc/layout/grid/GridLayoutRunner.java | UTF-8 | 3,956 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 The Depan Project Authors
*
* 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... | true |
39448888ca2dbae9bc9d4fdc7de38207ebb78735 | Java | nguyenkiemhieu1/loginVNPT | /app/src/main/java/com/example/login/adapter/NewHistoryDetailAdapter.java | UTF-8 | 7,899 | 2.15625 | 2 | [] | no_license | package com.example.login.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
imp... | true |
0bcf0208b6663a3cf047015d9ade408d283c0b17 | Java | aniketsurya2205/aniket | /SprinMVCDropdown/src/main/java/com/controller/DropdownController.java | UTF-8 | 1,135 | 2.328125 | 2 | [] | no_license |
package com.controller;
import java.util.LinkedHashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
... | true |
ad3978b52b63e411d94fb1929ecb0895cfe61b79 | Java | bearhsu2/design_patterns | /src/main/java/com/kuma/design_patterns/singleton/StaticBlock.java | UTF-8 | 401 | 2.75 | 3 | [] | no_license | package com.kuma.design_patterns.singleton;
/**
* Created by bearhsu2 on 10/10/2016.
*/
// Static block initialization implementation is similar to eager initialization.
public class StaticBlock {
private static StaticBlock instance;
static {
instance = new StaticBlock();
}
... | true |
aee45c2ae3abc56c55fc7bed9dd065fec73e01fe | Java | rintala/DD2380 | /TTT/Player.java | UTF-8 | 6,882 | 3.515625 | 4 | [] | no_license | import java.util.*;
public class Player {
/**
* Performs a move
*
* @param gameState the current state of the board
* @param deadline time before which we must have returned
* @return the next state the board is in after our move
*/
private static int PLAYER;
private static... | true |
3b7bad50e7e1a79d435baa9cd91dac02b019a398 | Java | bruno1022/mercado-acoes | /src/main/java/com/javaee/bruno/mercadoacoes/controllers/v1/AcaoController.java | UTF-8 | 5,457 | 2.109375 | 2 | [] | no_license | package com.javaee.bruno.mercadoacoes.controllers.v1;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Pat... | true |
13cbf5853aad9df60992a02ffe9b7c8edf954b36 | Java | Baltiless/LisUbuntu | /program/java/leetcode/Solution.java | UTF-8 | 1,159 | 3.421875 | 3 | [] | no_license | import java.util.*;
public class Solution {
public List<String[]> nQueens(int n) {
List<String[]> output = new ArrayList<String[]>();
}
private void helper(int n, int row, int[] thQueen, List<String[]> output) {
if(row == n) {
String[] entry = new String[n];
for(int ... | true |
8a9cad01416153798e2b61d80392b3f8e14fbcb5 | Java | zhangwan/xiaohuplay_android | /common/src/main/java/com/tinytiger/common/net/data/home2/NewsBean.java | UTF-8 | 1,128 | 1.875 | 2 | [] | no_license | package com.tinytiger.common.net.data.home2;
/**
* 游戏分类
*/
public class NewsBean {
public String id;
public int type=1;
public String title;
public String cover;
public int view_num;
public String video_url;
public long video_length;
public String create_time;
public String g... | true |
b91b91c19248feeebd0a2d1270bcd86854d52d00 | Java | hbkuang/yangjian | /agent-plugins/agent-plugin-jedis/src/main/java/com/yametech/yangjian/agent/plugin/jedis/JedisConvert.java | UTF-8 | 4,259 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 yametech.
*
* 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... | true |
62d725c217e9221396e517868ee194162343bb36 | Java | Ayushi51/HappyPlace | /app/src/main/java/com/example/happyplace/SwiggyActivity.java | UTF-8 | 696 | 1.976563 | 2 | [] | no_license | package com.example.happyplace;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class SwiggyActivity extends AppCompatActivity {
WebView webo;
@Override
protected void... | true |
8831b4a7579c5ed3a3965e08052e96c483505ddb | Java | marciowillian/PedidoVenda | /src/main/java/TesteCliente.java | UTF-8 | 976 | 2.4375 | 2 | [] | no_license | import com.mwcc.pedidovenda.model.*;
import javax.persistence.*;
import java.math.BigDecimal;
public class TesteCliente {
public static void main(String[]args){
EntityManagerFactory factory = Persistence.createEntityManagerFactory("PedidoPU");
EntityManager manager = factory.createEntityManager();... | true |
1393def15c4edcb798fd6ce579514dbb4500a5cd | Java | chihyuyang/Maze | /stuff/Main.java | UTF-8 | 545 | 2.796875 | 3 | [] | no_license | import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
import javax.swing.JFrame;
public class Main
{
public static void main(String[] args)
{
JFrame frame = new JFrame("Maze");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.s... | true |
6c5be16368fe35f1b46a3f546fe604b308350ec7 | Java | OrysiaKozak/Online_Shop | /src/main/java/ua/controllers/HomeControllers.java | UTF-8 | 619 | 1.976563 | 2 | [] | no_license | package ua.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class HomeControllers {
/*Home Page*/
@RequestMapping(value="/")
public String welcome(){
return "homePage";
}
/*Redirect to Home Page*/
@Re... | true |
67977b3b946ff48607bb9a0fadd4d2bf94f50f43 | Java | Randehh/Epic-Quiz | /src/randy/quiz/quiz.java | UTF-8 | 7,709 | 2.109375 | 2 | [] | no_license | package randy.quiz;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.Cha... | true |
66945f11b75870ce4a3100a045c5b341de549aca | Java | paulxi/LeetCodeJava | /src/main/java/com/leetcode/algorithm/easy/intersectionoftwoarrays/Solution.java | UTF-8 | 548 | 3.328125 | 3 | [
"MIT"
] | permissive | package com.leetcode.algorithm.easy.intersectionoftwoarrays;
import java.util.HashSet;
class Solution {
public int[] intersection(int[] nums1, int[] nums2) {
HashSet<Integer> set = new HashSet<>();
HashSet<Integer> result = new HashSet<>();
for (int num : nums1) {
set.add(num);
}
for (int... | true |
669776b5b57944a42d94805a097c0e565bbd6b32 | Java | alexkng97/Employees-Project | /EmployeeProject/src/main/java/org/sparta/alex/controller/ThreadManager.java | UTF-8 | 2,235 | 3.046875 | 3 | [] | no_license | package org.sparta.alex.controller;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.sparta.alex.model.EmployeeDTO;
import org.sparta.alex.model.EmployeeThread;
import java.util.ArrayList;
public class ThreadManager {
private Thread[] employeeThreads;
private int... | true |
e55824e777aaae73c28f3df8bac8804aadad4179 | Java | qonfi/AndroidPermissionRequester | /PermissionRequester.java | UTF-8 | 2,787 | 2.59375 | 3 | [] | no_license | package com.example.baker.permissiontest;
import android.app.Activity;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.PermissionChecker;
import android.content.Context;
import static android.content.pm.PackageManager.*;
import static com.example.baker.p... | true |
87e532c2aaf765d71253e920ee934c2901a4a04a | Java | zheddie/samplecodes | /src_java/zGCtest.java | UTF-8 | 267 | 2.25 | 2 | [] | no_license |
public class zGCtest {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String s = new String("xxxx");
Integer i = new Integer(100);
s = s+"yyyyyy";
System.gc();
System.out.println("s="+s);
}
}
| true |
a77ea302dddf235d7a3dc2be8d15e173ed93698b | Java | m15581052050/mqttDemo | /src/main/java/com/example/demo/Controller/PublishMessage.java | UTF-8 | 3,146 | 2.34375 | 2 | [] | no_license | package com.example.demo.Controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.example.demo.client.Client;
import com.example.demo.server.Server;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.eclipse.paho.cli... | true |
42e3b2c8a0469d63f64b01e40696819a0ec3ca97 | Java | xujie01/DigitalShop | /digital-fp/src/com/digital/dao/impl/UserInfoDAOImpl.java | GB18030 | 961 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.digital.dao.impl;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Example;
import com.digital.dao.UserInfoDAO;
import com.digital.entity.UserInfo;
public class UserInfoDAOImpl implements UserInfoDAO {... | true |
c5523abebd5425d9739e069a626eb67073ea8fc4 | Java | yeonsu100/CodingTest | /JavaCollection/src/dynamic/UniquePath02.java | UTF-8 | 495 | 3.296875 | 3 | [] | no_license | package dynamic;
public class UniquePath02 {
// Dynamic Programming
public static void main(String[] args) {
int m=7, n=3;
System.out.println(uniquePaths(m,n));
}
public static int uniquePaths(int m, int n) {
Integer[][] map=new Integer[m][n];
for(int i=0; i<m; i++) {
map[i][0]=1;
}
for(int ... | true |
19428494b9ef59e4b9ce31939bf477fe50f4a47a | Java | cckmit/OCS | /oct-app/oct-web-commons/src/test/java/eu/europa/ec/eci/oct/webcommons/services/translations/TranslationServiceImplTest.java | UTF-8 | 1,639 | 2.265625 | 2 | [] | no_license | package eu.europa.ec.eci.oct.webcommons.services.translations;
import org.junit.Test;
import eu.europa.ec.eci.oct.entities.system.Language;
import eu.europa.ec.eci.oct.webcommons.services.commons.ServicesTest;
import eu.europa.ec.eci.oct.webcommons.services.exceptions.OCTException;
import eu.europa.ec.eci.oct.... | true |
bc92f042a158ca117caaac52ca66102736502175 | Java | Daply/rebus-generator-app | /src/main/java/com/rebusgenerator/entity/Rebus.java | UTF-8 | 1,414 | 2.328125 | 2 | [] | no_license | package com.rebusgenerator.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
imp... | true |
09ab8a67c00625a0194a470c50a5f8b478e048f2 | Java | luutb/SourceChat | /src/main/java/com/giaynhap/service/UserConversationService.java | UTF-8 | 340 | 1.648438 | 2 | [] | no_license | package com.giaynhap.service;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
@Service
public interface UserConversationService {
public void updateKey(String conversationUuid,String userUuid,String key);
public void updateLastSeen(String conversationUuid, String userUuid, Loca... | true |
f80fdbfd4f55fa259f22904afe2941341c70d17e | Java | llac78/HeroesAPI | /src/main/java/com/llac/model/Hero.java | UTF-8 | 978 | 2.296875 | 2 | [] | no_license | package com.llac.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.pe... | true |
ad86b6fb7017f349358b892880099445b4298bc3 | Java | deenliu/AndroidInstantMsg | /server/Connector.java | UTF-8 | 12,275 | 2.875 | 3 | [] | no_license | import java.sql.*;
import java.io.*;
import java.util.*;
import java.util.Calendar;
public class Connector {
public static final String SUCCESSFUL = "1";
public static final String FAILED = "0";
public static final String SIGN_UP_USERNAME_CRASHED = "2";
public static final String ADD_NEW_USERNAME_NOT_FOUND = "2";
... | true |
384c587148e3c6ef8032570d29858cd3b3e5705b | Java | moutainhigh/jkzx1 | /auth-service/src/main/java/tech/tongyu/bct/auth/service/intel/DepartmentService.java | UTF-8 | 1,222 | 1.921875 | 2 | [] | no_license | package tech.tongyu.bct.auth.service.intel;
import tech.tongyu.bct.auth.dto.CompanyInfo;
import tech.tongyu.bct.auth.dto.Department;
public interface DepartmentService {
/*------------------------ department related api --------------------------*/
Department authDepartmentCreate(String departmentName, Stri... | true |
5021cf8b98ea2133a79329e22ae6298fc641754b | Java | zjclugger/JLibrary | /oa/src/main/java/com/metashare/oa/ui/OABaseFragment.java | UTF-8 | 673 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.zjclugger.oa.ui;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProviders;
import com.zjclugger.lib.base.BaseFragment;
/**
* @title <br>
* Created by King.Zi on 2020/1/2.<br>
* Copyright (c) 2020 zjclugger.com
*/
public abstract class OABaseFragment... | true |
55635fbb77968f63a55b20c52928059f3240a8e9 | Java | ingvaras/DDD-BackEnd | /src/main/java/com/ddd/Shipment/mybatis/model/ShipmentEvent.java | UTF-8 | 4,812 | 2.265625 | 2 | [] | no_license | package com.ddd.Shipment.mybatis.model;
public class ShipmentEvent {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column PUBLIC.SHIPMENTEVENT.ID
*
* @mbg.generated Sat May 08 13:31:26 EEST 2021
*/
private Integer id;
/**
... | true |
b5a9760a0c84cb676d6f118c45e90eeb6e7b4a81 | Java | Nansy-S/UserManagementApp | /src/main/java/com/prokopovich/usermanagementapp/enumeration/UserRole.java | UTF-8 | 806 | 3 | 3 | [] | no_license | package com.prokopovich.usermanagementapp.enumeration;
import java.util.ArrayList;
import java.util.List;
public enum UserRole {
ROLE_ADMIN("ADMIN"),
ROLE_USER("USER");
private final String title;
UserRole(String title) {
this.title = title;
}
public String getTitle() {
ret... | true |
07c91829fec7502d443578c7a682aa455324f72a | Java | RemigiuszDudek/flink-playground | /src/test/java/prv/dudekre/FlinkTest.java | UTF-8 | 1,525 | 2.25 | 2 | [] | no_license | package prv.dudekre;
import org.apache.flink.api.common.ExecutionConfig;
import org.apache.flink.api.common.serialization.TypeInformationSerializationSchema;
import org.apache.flink.api.java.typeutils.GenericTypeInfo;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink... | true |
119ed7d4003a0ac7d288d085fac7870f19a5c0d0 | Java | zhangyiweizyw/searchForLovedOnes | /SearchForLovedOnes/app/src/main/java/com/example/administrator/searchforlovedones/Idv_SerachFamily.java | UTF-8 | 3,477 | 1.945313 | 2 | [] | no_license | package com.example.administrator.searchforlovedones;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;
import com.google.gson.Gson;
import com.loper7.layout.TitleBar;
... | true |
d491ee8e06999c32bd7dcb797090cf5cbf363d05 | Java | fujirah/helloworld | /fujairah/src/main/java/com/woom/baseTool/catcher/Catcher.java | UTF-8 | 188 | 1.78125 | 2 | [] | no_license | package com.woom.baseTool.catcher;
import com.woom.baseTool.resource.Resource;
/**
* Created by yuhao.zx on 14-9-11.
*/
public interface Catcher<T> {
T catchContent(String url);
}
| true |
bf47fe56b33d14542ae7933ab1a005762eacb51a | Java | brayJava/bray | /common/src/main/java/com/whiteplanet/config/JMessageType.java | UTF-8 | 1,133 | 2.328125 | 2 | [] | no_license | package com.whiteplanet.config;
/**
* @author:wuzhiyuan
* @description: IM相关类型常量
* @date: Created in 10:05 2018/6/21
* @modified By:
*/
public class JMessageType {
/**
* 用户类型:user
*/
public static final String USER_TYPE_USER = "user";
/**
* 用户类型:admin
*/
public static final St... | true |
544f30d47dafdf14baaef745eb9e0a2adbc1e433 | Java | guray/javarest | /src/main/java/com/javahelps/restservice/entity/Hastalar.java | UTF-8 | 1,968 | 2.171875 | 2 | [] | no_license | package com.javahelps.restservice.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class Hastalar {
@Id
private String kimlikno;
private String adsoyad;
private String hastano;
private String dtarih;
private String dyer;
private String meslek;
private S... | true |
6e0671b3c74ee899e87016846d68f8aef3204893 | Java | tianlong513/NGOA | /src/main/java/org/oa/service/impl/ContractServiceImpl.java | UTF-8 | 2,032 | 2.15625 | 2 | [] | no_license | package org.oa.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.oa.bean.ResponseBean;
import org.oa.entity.TbContract;
import org.oa.mapper.ContractMapper;... | true |
087d9e3b6e44b4317240e4013baf859624163d67 | Java | ReikaKalseki/ReactorCraft | /ClientProxy.java | UTF-8 | 5,387 | 1.507813 | 2 | [] | no_license | /*******************************************************************************
* @author Reika Kalseki
*
* Copyright 2017
*
* All rights reserved.
* Distribution of the software in any form is only allowed with
* explicit, prior permission from the owner.
******************************************************... | true |
5022d5423214847d32ff72dfccc0aeba527e2c91 | Java | WilianPeng/datakit | /src/com/datakit/account/action/LoginAction.java | UTF-8 | 1,771 | 2.25 | 2 | [] | no_license | package com.datakit.account.action;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import org.springframework.stereotype.Controller;
import com.datakit.entity.Account;
import com.datakit.service.account.AccountService;
import ... | true |
6ae03a4d57b62362c8151b971dbda98f2417431b | Java | Fuizziy/FY_Reputation | /src/fr/fuizziy/reputation/Reputation.java | ISO-8859-1 | 945 | 2.171875 | 2 | [] | no_license | package fr.fuizziy.reputation;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.java.JavaPlugin;
import fr.fuizziy.commands.MainCommand;
import fr.fuizziy.listeners.Listeners;
import net.md_5.bungee.api.ChatColor;
public class Reputation extends JavaPlugin {
public static Plugin instance;
... | true |
e1b19495dc3eda1adcfd5e4c1cbb6a8b1606ec8a | Java | pthahnil/simple | /simple-common/src/main/java/com/simple/xrcraft/common/useless/StringLongConverterFactory.java | UTF-8 | 942 | 2.65625 | 3 | [] | no_license | package com.simple.xrcraft.common.useless;
import lombok.Getter;
import java.util.HashMap;
import java.util.Map;
/**
* @description:
* @author pthahnil
* @date 2021/5/31 11:45
*/
public class StringLongConverterFactory {
private static final Map<ConverterType, StringLongConverter> converterMap = new HashMap<>()... | true |
263108454b5acf601016bd3e0405bddd926e93e9 | Java | FirstTestOrganizationForLearning/hotel | /b2b_admin/src/main/java/com/fntx/admin/service/impl/BFrequencyLogServiceImpl.java | UTF-8 | 559 | 1.515625 | 2 | [] | no_license | package com.fntx.admin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fntx.admin.service.IBFrequencyLogService;
import com.fntx.common.dao.BFrequencyLogMapper;
import com.fntx.common.domain.BFrequencyLog;
import org.springframework.stereotype.Service;
/**
* <p>
* 分销商接口频... | true |
7ae64310d492e6c8f3b3ebee453ef99efdb5d4ca | Java | taehyuk0314/bit_etland_sf4 | /bit_etland/src/main/java/com/bit_etland/web/supp/Supplier.java | UTF-8 | 329 | 1.789063 | 2 | [] | no_license | package com.bit_etland.web.supp;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import lombok.Data;
@Component @Data @Lazy
public class Supplier {
private String supplierID,
supplierName
,contactName
,address
,city
,postalCode
,country
,ph... | true |
9078e56d4b9b4fb1d9ef8b589beb85533612f234 | Java | Baros2535/eu5-jdbc-practice | /src/test/java/Homework/HomeworkAPI1.java | UTF-8 | 3,286 | 2.578125 | 3 | [] | no_license | package Homework;
import DAY6_POJO.Spartan;
import io.restassured.http.ContentType;
import io.restassured.response.Response;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import utilities.ConfigurationReader;
import utilities.ExcelUtil;
impo... | true |
305348e6d9f2103030f26910befff7ac06f764f1 | Java | Murilovisque/payment-exercise | /payment-api/src/test/java/com/payment/api/BuyerAPITest.java | UTF-8 | 2,943 | 2.296875 | 2 | [] | no_license | package com.payment.api;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.sql.SQLException;
import java.util.List;
import java.util.Optional;
import com.payment.api.exceptions.PaymentException;
import com.payment.api.models.Buyer;
import com.payment.api.repositories... | true |
9fadfb11737ef534b1fcfb7980dd1ef0eb48fcd4 | Java | wesource/springboot-foo-artifact | /src/main/java/se/wesource/fooartifact/controller/CustomerController.java | UTF-8 | 1,371 | 2.4375 | 2 | [] | no_license | package se.wesource.fooartifact.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestCon... | true |
4101894451092007e2181adce041573320456ec5 | Java | popovdenys/design-patterns | /src/main/java/po/patterns/postredirectget/galaxy/domain/Galaxy.java | UTF-8 | 1,178 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | /*
* File : Galaxy.java
* Description : Galaxy bean
*
* Author : Popov Denys
* Created : 01 Feb, 2018
*
* Modified : 01 Feb, 2018
* Modified by: Popov Denys
*
* Last modification : Galaxy object
*/
package po.patterns.postredirectget.galaxy.domain;
public class Galaxy {
private int id;
private Strin... | true |
1db163c74fbdd33b5b2667e9f247eb0c844a276d | Java | chidocodigo/2018-07-27-desacoplar-logica-controlador | /src/main/java/mx/gob/catalogos/controlador/MunicipioControlador.java | UTF-8 | 2,158 | 2.171875 | 2 | [] | no_license | package mx.gob.catalogos.controlador;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMa... | true |
e937e83ac1003ca8c0961a786fbbba02ff28d770 | Java | Amirr90/PlayLudo | /app/src/main/java/com/example/playludo/fragments/AddedSuccessfullyFragment.java | UTF-8 | 1,111 | 1.75 | 2 | [] | no_license | package com.example.playludo.fragments;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.playludo.HomeScreen;
impor... | true |
489458c2f0f55a5b250dc9a44fbbc43b7562f3bc | Java | fstanchese/reservatorio | /reservatorio/src/main/java/br/com/stanchese/reservatorio/repository/SistemaRepositorio.java | UTF-8 | 427 | 1.890625 | 2 | [] | no_license | package br.com.stanchese.reservatorio.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import br.com.stanchese.reservatorio.model.Sistema;
public interface SistemaRepositorio extends JpaRepository<Sistema,... | true |
808e2d04ea888ba7c9208a94153f8d31e34e4c9a | Java | AkankshaNagpal/RecommendationSystemYelp | /src/com/cmpe239/dao/TestClass.java | UTF-8 | 952 | 2.34375 | 2 | [] | no_license | package com.cmpe239.dao;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import com.cmpe239.entities.BusinessEntity;
import com.cmpe239.entities.UserEntity;
import com.cmpe239.model.Business;
import com.cmpe239.util.HibernateUtil;
public class Te... | true |
b5440a73ffa95d1eb4ac236a84ffc2837b5b3d4a | Java | EastSunrise/oj-java | /src/main/java/cn/wsg/oj/leetcode/problems/offer/Offer36.java | UTF-8 | 1,500 | 3.328125 | 3 | [] | no_license | package cn.wsg.oj.leetcode.problems.offer;
import cn.wsg.oj.leetcode.problems.base.Solution;
/**
* 剑指 Offer 36. 二叉搜索树与双向链表 LCOF (MEDIUM)
*
* @author Kingen
* @see <a href="https://leetcode-cn.com/problems/er-cha-sou-suo-shu-yu-shuang-xiang-lian-biao-lcof/">二叉搜索树与双向链表
* LCOF</a>
*/
public class Offer36 implemen... | true |
e5ca8c5e20788259f9edad7b1f58ac3ce3324fb9 | Java | carnifex1389/job4j_elementary | /src/ru/job4j/array/Machine.java | UTF-8 | 1,420 | 3.5625 | 4 | [] | no_license | package ru.job4j.array;
import java.util.Arrays;
public class Machine {
private final int[] COINS = {10, 5, 2, 1};
public int[] changeOnce(int money, int price) {
int[] result = new int[100];
int emptyCellPointer = 0;
int number = money - price;
for (int i = 0; i < COINS.lengt... | true |
95f2ce5b7ffb36a407ec0603ecfa942502ed1b4b | Java | Akers/AkSchedule | /Sources/MySchedule 1.5/src/MyGui/TitlePanel.java | UTF-8 | 1,037 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package MyGui;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;
public class TitlePanel extends JPanel
{
private static final long serialVersionUID = 2L;
private ImageIcon icon_clos... | true |
065b7a2fa30f0d4b2c42da8c460cbbe6a3f70ab2 | Java | bucky1995/CS_509_DSS | /cs509resources/WordMap/src/shapes/controller/moves/VConnectShape.java | UTF-8 | 2,011 | 3.15625 | 3 | [] | no_license | package shapes.controller.moves;
import shapes.controller.Move;
import shapes.model.*;
/**
* Needs access to the model to make this happen.
*
*/
public class VConnectShape extends Move {
final Shape shape;
final Shape target;
int oldSelectedX;
int oldSelectedY;
int releaseX; // where mouse ... | true |
251fe326510c74016c741baa6281043f30a0186b | Java | aliceb64/amapj | /src/fr/amapj/service/services/mescontrats/MesCartesPrepayeesService.java | UTF-8 | 3,660 | 2.203125 | 2 | [] | no_license | /*
* Copyright 2013-2016 Emmanuel BRUN (contact@amapj.fr)
*
* This file is part of AmapJ.
*
* AmapJ 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 Free Software Foundation, either version 3 of the License,... | true |
52339aa6b5c01da733554c7746fd1cb36d88b5b8 | Java | cga2351/code | /DecompiledViberSrc/app/src/main/java/com/mixpanel/android/c/o.java | UTF-8 | 16,668 | 1.65625 | 2 | [] | no_license | package com.mixpanel.android.c;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.text.Editable;
import android.text.TextWatcher;
import android.util.SparseArray;
import android.view.View;
import android.view.View.Accessibility... | true |
4bc0ca35f84783ccc7532117458b193e8c15ea91 | Java | zhongxingyu/Seer | /Diff-Raw-Data/5/5_bd719f9c06ce017979af6e18501e03ae8b5981db/AlleleFrequencyEstimate/5_bd719f9c06ce017979af6e18501e03ae8b5981db_AlleleFrequencyEstimate_t.java | UTF-8 | 6,910 | 2.328125 | 2 | [] | no_license | package org.broadinstitute.sting.playground.utils;
import org.broadinstitute.sting.playground.gatk.walkers.AlleleFrequencyWalker;
import java.util.Arrays;
import java.lang.Math;
import org.broadinstitute.sting.utils.GenomeLoc;
public class AlleleFrequencyEstimate {
static
{
bool... | true |
2995e71fd8387d39f667baf6221829db5debefab | Java | Edward83528/OCEJWCD | /course/examples/OCEJWCD_CH16/src/java/net/hello/servlets/StepTwoServlet.java | UTF-8 | 1,658 | 2.5 | 2 | [] | no_license | package net.hello.servlets;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;... | true |
1b2e36c8dedf7800833145b17128d013dc4151a6 | Java | jsubodh06/SubodhDunzoAssingment | /src/main/java/com/dunzo/assignment/model/Ingredient.java | UTF-8 | 728 | 2.8125 | 3 | [] | no_license | package com.dunzo.assignment.model;
/**
* created by Subodh Jain
* date :- 06-sept-2020
* Ingredient enum to add new Beverages.
*/
public enum Ingredient {
Hotmilk(Unit.ml,100.0f),
HotWater(Unit.ml,100.0f),
TeaLeavesSyrup(Unit.ml,100.0f),
GingerSyrup(Unit.ml,10.0f),
SugarSyrup(Unit.ml,10.0f),
... | true |
5cf637d41badd1a17bab9e00dc6d229a9342c541 | Java | aqqbjlgu/rms-spring-cloud | /authority/src/main/java/com/youngsun/authority/service/impl/RoleServiceImpl.java | UTF-8 | 7,253 | 1.976563 | 2 | [] | no_license | package com.youngsun.authority.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.youngsun.authority.dto.RoleDto;
import com.youngsun.authority.dto.RolePermissionDto;
import com.youngsun.authority.entity.RoleEntity;
import com.youngsun.authority.entity.UserRoleEnti... | true |
f40f01668d92b80e701d2f3aedb7c16b4a1978a3 | Java | Telecooperation/big-sense | /MeasureApplications/Acceleration/app/src/main/java/de/tudarmstadt/tk/dbsystel/acceleration/StartService.java | UTF-8 | 3,683 | 2.109375 | 2 | [
"MIT"
] | permissive | package de.tudarmstadt.tk.dbsystel.acceleration;
import android.app.Notification;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import org.json.JSONException;
import org.json.JSONObject;
public class StartService extends Servic... | true |
b423b2879c804f3580dcea15a7a5cf7a21382c68 | Java | tuean/leetcodeRecords | /src/main/java/com/tuean/LeetCode/L200toL299/L290.java | UTF-8 | 724 | 3.1875 | 3 | [] | no_license | package com.tuean.LeetCode.L200toL299;
import java.util.HashMap;
import java.util.Map;
public class L290 {
public boolean wordPattern(String pattern, String str) {
String[] ss = str.split(" ");
if (ss.length != pattern.length()) return false;
Map<Character, String> map = new HashMap<>();
... | true |
84d783cc1071735b1cb9937bb26332dadff67ddf | Java | feiyu2016/make-better-ui | /DemoTrunk/src/com/qihoo/move_gridview/DiskManager.java | UTF-8 | 10,681 | 2.0625 | 2 | [] | no_license | package com.qihoo.move_gridview;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import j... | true |
efe8ddaede732c8d1a8172b99f3dce4ed1bac7e4 | Java | DavidGnanaraj1/KonakartCss | /Practo old/src/main/java/com/atmecs/automations/pageactions/PageActions.java | UTF-8 | 1,161 | 2.21875 | 2 | [] | no_license | package com.atmecs.automations.pageactions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
import co... | true |
43dc7319ec9a47cf4d04e835e9699179d64bea16 | Java | AneeshMishra/GenpactLibraryManagementSystemApplication | /src/main/java/com/aneesh/mylibrary/GenpactLibraryManagementSystem/config/RestExceptionHandler.java | UTF-8 | 1,007 | 2.21875 | 2 | [] | no_license | package com.aneesh.mylibrary.GenpactLibraryManagementSystem.config;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.we... | true |
ed06c75c6e3210874fea63bd8ac3911190335d14 | Java | 1000000000/Minecraft-Ping-Tool | /src/aor/PingTool/PingToolPlayerListener.java | UTF-8 | 1,656 | 2.453125 | 2 | [] | no_license | package aor.PingTool;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.material.Dye;
import org.buk... | true |
9fbada5f289aef2b1eb5c968ebf1cff1927f5927 | Java | feiyunruyue/zhihu | /Spider/src/Zhihu.java | UTF-8 | 634 | 2.09375 | 2 | [] | no_license |
public class Zhihu {
private String questionTitle;// 问题标题
private String questionDetail;// 问题描述
private String questionUrl;// 问题url
public String getQuestionTitle() {
return questionTitle;
}
public void setQuestionTitle(String questionTitle) {
this.questionTitle = questionTitle;
}
public String getQuest... | true |
209e6b9d42886b477b64bc91e3910e5f421b511e | Java | fahadzafar/ServerYouMp3 | /src/com/yt/thread/WorkerThread.java | UTF-8 | 3,465 | 2.453125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.yt.thread;
import com.yt.parse.ParseOperation;
import com.yt.util.SharedData;
import java.io.File;
import java.util.List;
... | true |
4f50a03d319cc2153b1a2002e56d324dc710c1d9 | Java | TommesDee/cpachecker | /src/org/sosy_lab/cpachecker/cfa/blocks/builder/.svn/text-base/LoopPartitioning.java.svn-base | UTF-8 | 4,937 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2013 Dirk Beyer
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | true |
b95e7ec29b54afdd89d957abd113b279ccf420a0 | Java | fredrickRoyal/Ludo | /src/hello/Singletones/Singleton.java | UTF-8 | 5,756 | 2.4375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hello.Singletones;
import hello.ArtficialIntelligence;
import hello.Controller;
import hello.players.*;
import javax.microedition.lcdui.Image;
/**
*
* @author Royal
*/
public class Singleton {
private ... | true |
2b36e54592e7cfd8323a4a9ce148f0a8757782c4 | Java | tuannt39-study/vietjack-jsp-servlet-bookstore | /src/com/vietjack/dao/OrderDAO.java | UTF-8 | 5,561 | 2.453125 | 2 | [] | no_license | package com.vietjack.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Date;
import com.vietjack.core.Order;
public class OrderDAO {
private Connection conn;
... | true |
c9da3d5f667d2529a63dc53d19376ecb060f17ca | Java | MMeunierSide/buck | /src/com/facebook/buck/skylark/function/ReadConfig.java | UTF-8 | 3,646 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-present Facebook, 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... | true |
c82389d3a0d69fd739c8de8fdb90d50f22f6a759 | Java | cliangtime/huangliwo_android | /app/src/main/java/com/feitianzhu/huangliwo/GlobalUtil.java | UTF-8 | 2,453 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.feitianzhu.huangliwo;
import android.app.Application;
import android.support.v4.app.FragmentActivity;
import android.text.Html;
import android.text.Spanned;
import com.feitianzhu.huangliwo.utils.ScreenUtil;
/**
* Created by bch on 2020/5/11
* 全局对象保存
* 全局操作,方便调用
*/
public class GlobalUtil {
privat... | true |
e6e1c0c4b149e3210ca1bb85071d630b7f17468c | Java | JavaRubyNode/Projetos_NetBeans | /ProjetosNetbeans/CadastroVeiculosSwing/src/cadastroveiculosswing/Sistema.java | UTF-8 | 684 | 3.125 | 3 | [] | no_license | package cadastroveiculosswing;
import java.util.ArrayList;
public class Sistema {
// ArrayList que guardará os veículos cadastrados
private ArrayList<Veiculo> veiculos = new ArrayList();
// método que permite cadastrar um novo veículo
public void cadastrarVeiculo(Veiculo v){
thi... | true |
39e7be74d2b2e3d23050ba02438cb37f239223c6 | Java | cuba-platform/cuba | /modules/gui/src/com/haulmont/cuba/gui/export/ExportFormat.java | UTF-8 | 3,780 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016 Haulmont.
*
* 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 agr... | true |
511d053dd36a15ff6e502ecdabdaa04de98cdfb2 | Java | GillesVanDeVyver/ir | /Engine.java | UTF-8 | 5,669 | 2.546875 | 3 | [] | no_license | /*
* This file is part of the computer assignment for the
* Information Retrieval course at KTH.
*
* Johan Boye, 2017
*/
package ir;
import java.util.ArrayList;
import java.util.Map.Entry;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOExcep... | true |
6d5d0dfe37b9ccbe7869637ceebe67fcd5523d45 | Java | google-code-export/zkcalendar | /zkcalendar3/calendar/src/org/zkoss/calendar/api/DateFormatter.java | UTF-8 | 1,377 | 2.59375 | 3 | [] | no_license | /* ContentHandler.java
{{IS_NOTE
Purpose:
Description:
History:
Mar 11, 2009 4:27:29 PM , Created by jumperchen
}}IS_NOTE
Copyright (C) 2009 Potix Corporation. All Rights Reserved.
{{IS_RIGHT
}}IS_RIGHT
*/
package org.zkoss.calendar.api;
import java.util.Date;
import java.util.Locale;
... | true |
f6191700eb2d20f35e253eac4cdd166a3d2445c6 | Java | NintendoLink/leetcode | /src/com/qhl/leetcode/tree/RangeSumBSTSolution.java | UTF-8 | 2,264 | 3.75 | 4 | [] | no_license | /**
* @Author: LinK
* @Date: 2019/5/20 14:48
*/
package com.qhl.leetcode.tree;
import com.qhl.leetcode.basestructure.TreeNode;
/**
* 给定二叉搜索树的根结点 root,返回 L 和 R(含)之间的所有结点的值的和。
二叉搜索树保证具有唯一的值。
示例 1:
输入:root = [10,5,15,3,7,null,18], L = 7, R = 15
输出:32
示例 2:
输入:root = [10,5,15,3,7,13,18,1,null,6], L = 6, ... | true |
82028b9b139c88015e968db47c88ab083db3c8bc | Java | G-Jay-R/Project-javaweb | /jspForStudent/src/com/tz/jspstudy/test/ReflectTest.java | UTF-8 | 3,625 | 3.203125 | 3 | [] | no_license | package com.tz.jspstudy.test;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import com.tz.jspstudy.sysmanage.bean.User;
import com.tz.jspstudy.sysmanage.bean.UserReflect;
/**
*
* 类描述: 测试两个有相同属性的对象互相复制属性的值
* 类名称:com.tz.jspstudy.test.ReflectTe... | true |
b2047becd3710a28bd50cc9a29378486887ba20e | Java | sajal02gupta/hetznerAssignment | /src/main/java/com/hetzner/demo/controller/ServerController.java | UTF-8 | 655 | 2.109375 | 2 | [] | no_license | package com.hetzner.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.hetzner.demo.model.Serve... | true |
08508af95510e7d9cf8dd5140729641e7d62a2bd | Java | soberhjj/tianyan-cloud-service | /tianyan-gateway-service/src/main/java/com/newland/tianyan/gateway/filter/ApiLogRespFilter.java | UTF-8 | 3,748 | 1.960938 | 2 | [] | no_license | package com.newland.tianyan.gateway.filter;
import com.newland.tianyan.gateway.support.GatewayLoggerSupport;
import com.newland.tianyan.gateway.support.ResponseBodyTraceIdDecorator;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.reactivestreams.Publisher;
import org.springframework.cloud.gate... | true |
f324e01e4a56748ebc6743e2cd62f9d7ce00edb0 | Java | so0487/Spring | /spring_board/src/main/java/kr/or/ddit/service/BoardServiceImpl.java | UTF-8 | 2,045 | 2.3125 | 2 | [] | no_license | package kr.or.ddit.service;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import kr.or.ddit.dao.BoardDAO;
import kr.or.ddit.dao.ReplyDAO;
import kr.or.ddit.dto.BoardVO;
import kr.or.ddit.request.PageMaker;
import kr.or.ddit.request.SearchCriteria;
public class B... | true |
c5e63ee47aa1ce91cb7fad68958f0cd562e4f425 | Java | gaurav-shashank/MyProjects | /library/src/main/java/com/example/library/repository/BooksRepository.java | UTF-8 | 405 | 1.625 | 2 | [] | no_license | package com.example.library.repository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.example.library.entity.Books;
@Repository
public interface BooksRepository ... | true |
b0085c52d0875c85a9232ce9d8f7e7bb0852d32c | Java | luotianwen/pgy | /dd_adserver/src/com/kokmobi/server/protocol/service/impl/AdLogDataProcessServiceImpl.java | UTF-8 | 11,589 | 1.757813 | 2 | [] | no_license | package com.kokmobi.server.protocol.service.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.kokmobi.server.servlet.util.CompatibleUtil;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import... | true |
88e3f0f8dc3e9e26d4e45722b8b8937f0cb81efa | Java | lightbatis/lightbatis | /lightbatis-core/src/main/java/titan/lightbatis/table/DataSourceTableSchemaManager.java | UTF-8 | 16,772 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /**
*
*/
package titan.lightbatis.table;
import com.google.common.primitives.Primitives;
import com.querydsl.sql.codegen.DefaultNamingStrategy;
import com.querydsl.sql.types.Type;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeansException;
import or... | true |
985aaef3ead792fccf4ba7520c545cc3caf3c9f3 | Java | lazx24/Java | /Kinglo/src/com/common/util/zip/FileResourceCollection.java | UTF-8 | 969 | 2.703125 | 3 | [] | no_license | package com.common.util.zip;
import java.io.File;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.tools.ant.types.ResourceCollection;
import org.apache.tools.ant.types.resources.FileResource;
/**
*
* 类的描述:文件资源集合类
* 创建人:邹建华
* 创建时间:2015-4-11
*/
public final class Fil... | true |
3b229e3b8b17359551e59ca76095cfe81a2f41fc | Java | prarthnasl/FoodieApp | /iFoodieDemo/app/src/main/java/com/ifoodie/prarthnasl/ifoodiedemo/controllers/category/CategoryListActivity.java | UTF-8 | 4,825 | 2.234375 | 2 | [] | no_license | package com.ifoodie.prarthnasl.ifoodiedemo.controllers.category;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Rec... | true |
e608b2aa39da25126034c0470bbbcd0e5df1c378 | Java | zaiternouara/MyApplication | /app/src/main/java/com/example/myapplication/Repository/MyfileRequeteSingleton.java | UTF-8 | 1,273 | 2.375 | 2 | [] | no_license | package com.example.myapplication.Repository;
import android.app.Application;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
//pour evite a chq fois de fair connection avec le web sevice
public class MyfileRequeteSingleton extends Application {
... | true |
a2ab9b08c924b0d3b69413bbbd1b11b71dec5f54 | Java | olegmentuz1991/Day1ProjectsMentuz | /src/by/javatr/task1/util/test/Tester.java | UTF-8 | 889 | 2.5 | 2 | [] | no_license | package by.javatr.task1.util.test;
import by.javatr.task1.util.LastNumberSquareCalculation;
import org.junit.Assert;
import org.junit.Test;
public class Tester{
@Test
public void LastNumberSquareCalculation_Test_Right_Number() {
int a = 3;
int expected = 9;
int actual = LastNumberSquar... | true |
22ed38136c00f2a83e3b8c78344e2c298c6fa971 | Java | youyiliang/homework | /homework/src/student/Computer.java | UTF-8 | 562 | 2.953125 | 3 | [] | no_license | package student;
public class Computer extends Student {
private double makeScore;
private double engScore;
public Computer() {
}
public Computer(String name,String id ,String sex, int age,double lastScore,double minScore,double makeScore,double engScore) {
super(name, id ,sex ,age ,lastScor... | true |
0c39258782b3ed46c4f8047bf14a42eb7e9d1b8c | Java | P79N6A/icse_20_user_study | /methods/Method_44648.java | UTF-8 | 229 | 1.960938 | 2 | [] | no_license | private static Stream<LimitOrder> adaptLimitOrders(OrderType type,BigDecimal[][] list,Date timestamp,CurrencyPair currencyPair){
return Arrays.stream(list).map(data -> adaptLimitOrder(type,data,currencyPair,null,timestamp));
}
| true |