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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d66a1e48b735b2961c1a30475b479ac27516364f | Java | jxy0413/TestUserBehavir | /gmall0105-publisher/src/main/java/com/atguigu/gmall0105/gmall0105publisher/controller/PublicsherController.java | UTF-8 | 1,970 | 2.03125 | 2 | [] | no_license | package com.atguigu.gmall0105.gmall0105publisher.controller;
import com.alibaba.fastjson.JSON;
import com.atguigu.gmall0105.gmall0105publisher.service.EsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.... | true |
2dafd91e88abef80ce6f4c6c17a9c7b6d290be3c | Java | Rosesqy/FancyBank | /Bank/Utilities/DbConnectionHelper.java | UTF-8 | 1,277 | 3.28125 | 3 | [] | no_license | package Bank.Utilities;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DbConnectionHelper {
// This class creates a connection to the database called FancyBank in your localhost server
public static Connection con = null;
// Constructor
public D... | true |
ea51d80d45c789b622f27bfc3bbb681087d285a9 | Java | nanobecquerel/bloc-mobile | /app/src/main/java/org/sdf/becquerel/bloc/CommViewActivity.java | UTF-8 | 2,743 | 2.203125 | 2 | [] | no_license | package org.sdf.becquerel.bloc;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
impor... | true |
1656e73e5c8288124b301ab920e3040df37b1514 | Java | hxxy2003/niuniu-parent1 | /niuniu-server/niuniu-entity/src/main/java/com/mouchina/moumou_server/entity/permission/StaticPermission.java | UTF-8 | 1,932 | 1.859375 | 2 | [] | no_license | package com.mouchina.moumou_server.entity.permission;
import java.io.Serializable;
public class StaticPermission implements Serializable {
/**
*
*/
private static final long serialVersionUID = 8263274100687260222L;
private Long id;
private String permissionCode;
private String permissionName;
private String... | true |
ec78ffeaec0bc367beb4e6d05600c1d1c3ab4a9a | Java | kosamino/metro | /src/main/java/com/demo/metro/domain/model/dao/TravelRecordDAO.java | UTF-8 | 942 | 2.046875 | 2 | [] | no_license | /**
* Copyright (C), 2015-2019, XXX有限公司
* FileName: TravelRecordDAO
* Author: houjing
* Date: 2019/5/16 00:50
* Description: passenger dao
* History:
* <author> <time> <version> <desc>
* 作者姓名 修改时间 版本号 描述
*/
package com.demo.metro.domain.model.da... | true |
d9dd0d7e4f317152c4ebcdef94afecf1b89d704f | Java | twlkyao/WizAndroidMiNotes | /src/cn/code/notes/share/WizIni.java | GB18030 | 1,524 | 2.796875 | 3 | [] | no_license | package cn.code.notes.share;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
public class WizIni {
static Properties getFile(String fileName) {
FileInputStream is = null... | true |
f62e28dabfc7c0ec515363e146506c7168d67ed0 | Java | TVPT/VoxelGunsmith | /src/main/java/com/voxelplugineering/voxelsniper/shape/SingleMaterialShape.java | UTF-8 | 4,974 | 2.25 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 The Voxel Plugineering Team
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... | true |
4400162bb6c0236a303cad91cf69cf632c7b52d3 | Java | Lakshmanan95/SkyRateWAPI | /skyRateWAPI/src/main/java/com/skyrate/model/message/DeleteMessageRequest.java | UTF-8 | 758 | 1.882813 | 2 | [] | no_license | package com.skyrate.model.message;
public class DeleteMessageRequest {
int messageId;
int userId;
int deleteAll;
int toId;
String subjectId;
public int getMessageId() {
return messageId;
}
public void setMessageId(int messageId) {
this.messageId = messageId;
}
public int getDeleteAll() {
return dele... | true |
ccde808c0929291706a970442758c6f4e2abcd9e | Java | makiam/XFrame | /src/main/java/app/xframe/XFrame.java | UTF-8 | 11,065 | 1.976563 | 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 app.xframe;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thou... | true |
69ed1ae50285b7fd4eb24079186f1fe6323e85ac | Java | NationalSecurityAgency/ghidra | /Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/stackeditor/StackEditorCellEditTest.java | UTF-8 | 37,255 | 1.9375 | 2 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /* ###
* IP: GHIDRA
*
* 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 writin... | true |
58d5a8505c11ba03c7e116728030dac6c6663fdd | Java | zjgary/grpc-java | /xds/src/main/java/io/grpc/xds/LookasideChannelLb.java | UTF-8 | 5,004 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 The gRPC 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 or agree... | true |
747fffb39f0fd87e0dd5f4222dac334014bcaadb | Java | ruby723/javastudy | /chapter03/src/main/java/chapter03/StudentTest.java | UTF-8 | 304 | 2.859375 | 3 | [] | no_license | package chapter03;
public class StudentTest {
public static void main(String[] args) {
Student s1=new Student();
s1.setName("둘리");
s1.setGrade(4);
s1.setMajor("CS");
Person p1=s1;//(암시적)업캐스팅
Student s2=(Student)p1;//다운캐스팅(명시적)
}
}
| true |
9f260f41a692b3d82958c7ca0447c898be143ca9 | Java | brandonhyc/note_collection | /mySolutions/50. Pow(x, n)/Solution.java | UTF-8 | 491 | 2.828125 | 3 | [] | no_license | class Solution {
public double myPow(double x, int n) {
boolean isNegative = false;
if (n < 0) {
x = 1 / x;
isNegative = true;
n = -(n + 1);
}
double ans = 1, tmp = x;
while (n != 0) {
if (n % 2 == 1) {
... | true |
86c1fb414a86d1133e224fdb4d4a1d52c9bb441a | Java | orqu3/geekbrains_java | /src/ru/geekbrains/java/javaone/Lesson_1.java | UTF-8 | 3,231 | 4.15625 | 4 | [] | no_license | package ru.geekbrains.java.javaone;
/*
1. Создать пустой проект в IntelliJ IDEA и прописать метод main();
2. Создать переменные всех пройденных типов данных, и инициализировать их значения;
3. Написать метод вычисляющий выражение a * (b + (c / d)) и возвращающий результат,где a, b, c, d – входные параметры
этого мето... | true |
b8b248bc3f077f88de0adfcdc40649dbb01b90b3 | Java | shju0317/Java_OneDay_Grade | /src/com/biz/grade/service/ScoreServiceImplV1.java | UTF-8 | 7,193 | 2.734375 | 3 | [] | no_license | package com.biz.grade.service;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import com.biz.grade.config.SplitPos;
import com.biz.grade... | true |
d1003285a87a690b8688f29a66e5cfd8f73c0a5d | Java | Harieo/Battleships | /src/main/java/uk/co/harieo/battleships/guis/BattleGUI.java | UTF-8 | 8,950 | 2.625 | 3 | [] | no_license | package uk.co.harieo.battleships.guis;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.bukkit.event.inventory.InventoryCloseEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.*;
import jav... | true |
1f3003b5b93a5263926ef0777819c6e8ec87fc1a | Java | zykinwases/prac6 | /training_center/src/DAO/impl/LessonDAOImpl.java | UTF-8 | 3,796 | 2.859375 | 3 | [] | no_license | package DAO.impl;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.persistence.TemporalType;
import javax.persistence.TypedQuery;
import org.hibernate.Session;
import DAO.LessonDAO;
import database.Cours... | true |
2bbb068dcfe4367256e1a03a3fedf692a6b8f658 | Java | sengeiou/company-frame | /src/main/java/com/frido/hd/exception/code/BaseResponseCode.java | UTF-8 | 1,830 | 2.71875 | 3 | [] | no_license | package com.frido.hd.exception.code;
public enum BaseResponseCode implements ResponseCodeInterface {
/**
* 这个要和前段约定好
* code=0:服务器已成功处理了请求。 通常,这表示服务器提供了请求的网页。
* code=4010001:(授权异常) 请求要求身份验证。 客户端需要跳转到登录页面重新登录
* code=4010002:(凭证过期) 客户端请求刷新凭证接口
* code=4030001:没有权限禁止访问
* code=400xxxx:系统主动... | true |
69b50820255ae4758dc98f74a1f6f21848af8bb0 | Java | imbichitra/azlock | /app/src/main/java/com/asiczen/azlock/DeleteGuestsAsyncTask.java | UTF-8 | 15,888 | 2.3125 | 2 | [] | no_license | package com.asiczen.azlock;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.AsyncTask;
import com.google.android.material.snackbar.Snackbar;
import androidx.appcompat.app.Al... | true |
a8dd27de43f9b970839362aceff3cc70e285c3e9 | Java | deku01/Java-Swing-Projects | /src/ui/PurchaseDetails.java | UTF-8 | 4,607 | 2.15625 | 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 ui;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import jav... | true |
5edcc0665d1fbec225e21cab23904dfcc6a9e39b | Java | YMilind/home-rental | /home-rental/src/main/java/web/controller/ReservationController.java | UTF-8 | 3,243 | 2.34375 | 2 | [] | no_license | package web.controller;
import java.io.IOException;
import java.security.Principal;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.joda.time.LocalDateTime;
import org.springframework.beans.factory.annotation.Aut... | true |
55ccf586a647bee60c6892110a038df93b788007 | Java | Te0gop/More_Exercises | /Data_Structures/Binary_Trees_Exercise/src/main/java/solutions/MinHeap.java | UTF-8 | 462 | 2.859375 | 3 | [] | no_license | package solutions;
import interfaces.Decrease;
import interfaces.Heap;
public class MinHeap<E extends Comparable<E> & Decrease<E>> implements Heap<E> {
@Override
public int size() {
return 0;
}
@Override
public void add(E element) {
}
@Override
public E peek() {
ret... | true |
b07ef62c4b3d3cbdb3d8f64adb59b524fc2921a1 | Java | sanjay-p93/Assignment | /Assignments/Core Java/assignment1/resultDeclare.java | UTF-8 | 525 | 3.0625 | 3 | [] | no_license |
import java.io.*;
import java.util.Scanner;
public class resultDeclare {
public static void main(String[] args){
int m1=0,m2=0,m3=0;
Scanner s = new Scanner(System.in);
System.out.println("\nEnter the marks for all 3 subjects : ");
m1= s.nextInt();
m2= s.nextInt();
m3= s.nextInt();
if(m1>60 && m2>6... | true |
978413c4cb4372e595ce4e2abd6c21b766b98226 | Java | therdes/leetcode | /src/main/java/org/therdes/leetcode/algorithm/backspacestringcompare/ReverseTraversalSolution.java | UTF-8 | 1,572 | 3.21875 | 3 | [] | no_license | package org.therdes.leetcode.algorithm.backspacestringcompare;
/**
* https://leetcode-cn.com/problems/backspace-string-compare/
*/
public class ReverseTraversalSolution {
public boolean backspaceCompare(String S, String T) {
int sn = S.length();
int tn = T.length();
int si = sn - 1;
... | true |
68c0f8c1de975b94f04a6f2fb06eaa7f02e7fe6a | Java | mathiasnielsen/mathirialdesign | /MaterialGuidelines/MathirialDesign/app/src/main/java/com/example/kirkegaard/mathirialdesign/Features/Filters/PeekThoughImageView.java | UTF-8 | 1,821 | 2.546875 | 3 | [] | no_license | package com.example.kirkegaard.mathirialdesign.Features.Filters;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Shader;
import android.util.Attrib... | true |
a1eba97d83f7bd2f127eb1b18eadb94a02598b88 | Java | lxc5980693/studyDemo | /demo/src/main/java/com/example/demo/proxy/service/OrderService.java | UTF-8 | 100 | 1.71875 | 2 | [] | no_license | package com.example.demo.proxy.service;
public interface OrderService {
public void order();
}
| true |
07490a4c3552d5d64f52f8f0d1284d5885dac587 | Java | varunam/MustKnows | /src/varun/dsa/common/string/StringRoundRotation.java | UTF-8 | 1,030 | 4.15625 | 4 | [] | no_license | package varun.dsa.common.string;
import java.util.Scanner;
/**
* Given a string s1 and a string s2, write a snippet to say whether s2 is a rotation of s1?
* (eg given s1 = ABCD and s2 = CDAB, return true, given s1 = ABCD, and s2 = ACBD , return false)
*/
public class StringRoundRotation {
public static void m... | true |
2a4a72789385e0865f4a65e83061027082175f72 | Java | ameyjain/Mercari | /app/src/main/java/com/mercari/mercaritest/dagger/MercariApp.java | UTF-8 | 1,049 | 2.046875 | 2 | [] | no_license | package com.mercari.mercaritest.dagger;
import android.app.Application;
import com.mercari.mercaritest.dagger.AppComponent;
import com.mercari.mercaritest.utils.AppHelper;
import com.mercari.mercaritest.dagger.AppModule;
import com.mercari.mercaritest.dagger.DaggerNetComponent;
import com.mercari.mercaritest.dagger.N... | true |
42cf3c798ae6340d7b01e266f6493c2199ee2706 | Java | Lightwing-Ng/Java_PetStore | /src/com/lightwing/jpetstore/dao/OrderDao.java | GB18030 | 483 | 2.171875 | 2 | [] | no_license | package com.lightwing.jpetstore.dao;
import com.lightwing.jpetstore.domain.Order;
import java.util.List;
// DAO
public interface OrderDao {
// ѯеĶϢ
List<Order> findAll();
// ѯϢ
Order findById(int orderid);
// Ϣ
int create(Order order);
// ĶϢ
int modify(Order ord... | true |
c16c0e658beb7fe429d0dd33bc7a9fd4e88875a5 | Java | yuckuku/leetcode-solutions | /src/main/java/leetcode_solutions/BinaryNumberWithAlternatingBits.java | UTF-8 | 511 | 3.078125 | 3 | [] | no_license | package leetcode_solutions;
/**
* Created by Administrator on 2017/10/13.
*/
public class BinaryNumberWithAlternatingBits {
public boolean hasAlternatingBits(int n) {
if(n==0||n==1){
return true;
}
int preBit =n%2;
n=n/2;
int thisBit =0;
while(n!=0){... | true |
4c8a0f48d9923b3b5fed1d0316db1f1363e7994a | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/domain/DeliveryDetailInfoVO.java | UTF-8 | 1,028 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 配送信息模型
*
* @author auto create
* @since 1.0, 2023-04-09 17:34:46
*/
public class DeliveryDetailInfoVO extends Alip... | true |
8e53a43eab77ca3e0cf9d0f94354a653f62294ab | Java | soyoungboy/ExamplesForAndroid | /src/me/xiaopan/android/examples/activity/custom/SlidingToggleButtonActivity.java | UTF-8 | 4,190 | 2.09375 | 2 | [] | no_license | /*
* Copyright 2013 Peng fei Pan
*
* 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 t... | true |
ba5ea19e6368a123c708bca1e5ce71cb9154a144 | Java | chenyichao-github/second | /src/main/java/lee/StaticImportTest.java | UTF-8 | 261 | 2.296875 | 2 | [] | no_license | package lee;
import static java.lang.Math.PI;
import static java.lang.Math.sqrt;
import static java.lang.System.out;
public class StaticImportTest {
public static void main(String[] args) {
out.println(PI);
out.println(sqrt(256));
}
}
| true |
5ec6a398547b012d0894643251b4be1fb985ca44 | Java | andreabenitez/web-backened-myBatis | /src/main/java/servicios/ProveedorServicios.java | UTF-8 | 2,961 | 2.3125 | 2 | [] | no_license | package servicios;
import config.SqlSessionFactoryProvider;
import excepciones.NoExisteProveedorException;
import mapper.ClienteMapper;
import mapper.ProveedorMapper;
import modelos.Cliente;
import modelos.Producto;
import modelos.Proveedor;
import org.apache.ibatis.session.SqlSession;
import javax.ejb.Stateless;
im... | true |
17623e07fa395a5afce66aacda2dfd83a9f6475c | Java | iJoshoa/Java | /Java/Lab1/Lab1.java | UTF-8 | 2,510 | 2.953125 | 3 | [] | no_license | package lab1;
/**
*
* @author $_F
*/
public class Lab1 {
public static void main(String[] args) {
//lab 1.1
System.out.println("Hello Ravi!!!");
System.out.println("\nlab 1.1-------------------------------------");
//lab 1.2
System.out.println("Hello Ravi!!!");
... | true |
d774a27971b18de10fdc73237ef4a211fd21c2ca | Java | Chajunghun/aurora-project | /aurora-sqlje/src/aurora/sqlje/ast/AutonomousWrapper.java | UTF-8 | 17,443 | 2.34375 | 2 | [] | no_license | package aurora.sqlje.ast;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jdt.core.dom.*;
import aurora.sqlje.core.annotation.Autonomous;
/**
* 将带有@Autonomous标记的方法进行修改
*
* @author jessen
*
*/
public class AutonomousWrapper {
private TypeDeclaration typeDec;
... | true |
639223216566fa54584bfb0845206d3eeb7cf3bb | Java | codebear14/ratinge | /src/servlets/ChangeRatingServlet.java | UTF-8 | 2,034 | 2.59375 | 3 | [] | no_license | package servlets;
import services.MySQLDb;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jav... | true |
9a294a25e51f533dab60c0f44277bbd5a33b0562 | Java | muraleekrish/Hello-World | /prodacs/src/com/savantit/prodacs/businessimplementation/production/MachineNonAccountedDetails.java | UTF-8 | 2,820 | 2.296875 | 2 | [] | no_license | /*
* Created on Nov 7, 2005
*
* ClassName : MachineUnAccountedDetails.java
*
* Copyright (c) 2005 Savant Technologies Pvt Ltd. India. All Rights Reserved.
*
* This software is the confidential and proprietary information of Savant Technologies Pvt Ltd. India.
* (Confidential Information). You shall not discl... | true |
1597ba24d30704fa6bb802a697c145c57bd8ce50 | Java | 180254/miasi-activiti-services | /ServiceTasks/src/main/java/org/miasi/jenkins/BuildApplication.java | UTF-8 | 2,871 | 2.4375 | 2 | [] | no_license | package org.miasi.jenkins;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.impl.util.json.JSONObject;
import org.apache.http.client.fluent.Request;
import org.awaitility.Awaitility;
import java.io.IOException;
import java.util.concurr... | true |
27272ef10c1b035fc5ce6229dc2fe7926356fd24 | Java | tanxiaoqiao/iot | /src/main/java/com/honeywell/fireiot/water/schedule/WaterDailyDataSchedule.java | UTF-8 | 2,747 | 2.359375 | 2 | [] | no_license | package com.honeywell.fireiot.water.schedule;
import com.honeywell.fireiot.service.WaterDeviceService;
import com.honeywell.fireiot.water.service.WaterDailyDataService;
import com.honeywell.fireiot.water.service.WaterDailyEventService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotati... | true |
db0425851fc4096a665ac98357902d89b8313953 | Java | auroraide/aurora | /src/aurora/client/event/ExportLaTeXEvent.java | UTF-8 | 1,290 | 2.609375 | 3 | [
"MIT"
] | permissive | package aurora.client.event;
import aurora.backend.HighlightedLambdaExpression;
import com.google.gwt.event.shared.GwtEvent;
/**
* Occurs when the user clicks the "share LaTeX" button. Contains the term to share.
*/
public class ExportLaTeXEvent extends GwtEvent<ExportLaTeXEventHandler> {
public static Type<Exp... | true |
5c9adda8d65d04b2f629b1ab267f44192595e709 | Java | partha04patel/preston | /src/main/java/bio/guoda/preston/process/RegistryReaderDataONE.java | UTF-8 | 10,790 | 1.710938 | 2 | [
"MIT"
] | permissive | package bio.guoda.preston.process;
import bio.guoda.preston.MimeTypes;
import bio.guoda.preston.Seeds;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.loggin... | true |
4e1cf06aac0efc2c4692f53d9eb87e56c8110db3 | Java | zbcstudy/study-portal | /src/main/java/com/wondertek/baiying/util/FileReadByLine.java | UTF-8 | 1,278 | 2.9375 | 3 | [] | no_license | package com.wondertek.baiying.util;
import java.io.*;
public class FileReadByLine {
public static void read() {
File file = new File("E:/test.txt");
FileInputStream fis = null;
FileOutputStream fos = null;
InputStreamReader isr = null;
BufferedReader bufferedReader = null;
StringBuffer str = new StringBu... | true |
a1b9106ba7f6c00fda9abc210bf39116c0730286 | Java | P254/tenori | /Tenori.java | UTF-8 | 4,469 | 2.59375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
import java.util.Random;
public class Tenori extends JApplet implements ActionListener, Runnable
{
//JButton button[][]=new JButton[5][2];
JToggleButton button[][]=new JToggleButton[15][15];
JToggleButton button2[][]=new JToggleB... | true |
9f334ba8e83cf12e311e0ea40ac7100df49f2cd0 | Java | thiagomanel/intrusiveness-meter | /IntrusivenessMeter/test/analysis/ClusteringTest.java | UTF-8 | 24,058 | 1.945313 | 2 | [] | no_license | package analysis;
import static org.junit.Assert.assertEquals;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import analysis.data.Execution;
import analysis.data.Ha... | true |
86b3cec1be524e1eae5267671e6ad68b22739ca9 | Java | marianogambino/UM-Mobile | /AppUM/src/com/example/services/servicioUM/RestServiceUM.java | UTF-8 | 1,385 | 2.328125 | 2 | [] | no_license | package com.example.services.servicioUM;
import android.util.Log;
import ar.edu.unimoron.model.LoginResponse;
import com.example.restClient.connectionRest.RestConnection;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* @author mariano
... | true |
6e975785b88eec83cfaf015118751d6e0c860b4b | Java | Marxjava/java2_thursday_online_2020_autumn | /team_healthy_tooth/src/main/java/dental_clinic/console_ui/DeletePatientUIAction.java | UTF-8 | 1,072 | 2.828125 | 3 | [] | no_license | package dental_clinic.console_ui;
import dental_clinic.core.requests.DeletePatientRequest;
import dental_clinic.core.responses.DeletePatientResponse;
import dental_clinic.core.services.DeletePatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
... | true |
cd5758c285e8cec4709741d4e6fe478611da4a06 | Java | tanuj96/JavaCodes | /training/src/training/EnhancedForLoop.java | UTF-8 | 297 | 3.296875 | 3 | [] | no_license | package training;
public class EnhancedForLoop {
public static void main(String[] args) {
int a[][] = { {1},
{1,2},
{1,2,3}
};
for(int k[] : a)
{
for(int l : k)
{
System.out.print(l + " ");
}
System.out.println();
}
}
}
| true |
f193f5c08d90b155fe212c0a87e626e0ffb1daa7 | Java | furrukhkhan1998/CloudXplor | /CloudXplor_Scrapper/src/Controller.java | UTF-8 | 2,623 | 2.75 | 3 | [] | no_license | import java.io.*;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
public class Controller {
dbHandler db;
public BufferedWriter br;
void makeConnection(){
db = new dbHandler();
db.createConnection("aps123", "furrukh");
}
void executeSta... | true |
f98c44b6f813970273778833c80bf3b1b07a6c07 | Java | zhangqi960110/algorithm | /algorithm/sort/BubbleSort.java | UTF-8 | 947 | 4.4375 | 4 | [] | no_license | package algorithm.sort;
import java.util.Scanner;
/**
* 冒泡排序,每次比较两个相邻的元素,如果它们的顺序错误就把它们交换过来。
*/
public class BubbleSort {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();//输入一个数n,表示接下来有n个数
int t;
int[] bubble = new int[100];
... | true |
78c401e559bc5694d6769dfc7cdc1549359b8b06 | Java | ysdxz207/tnews | /tnews-manager/src/main/java/com/puyixiaowo/tnews/manager/domain/Permission.java | UTF-8 | 4,315 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.puyixiaowo.tnews.manager.domain;
import java.io.Serializable;
public class Permission implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column manager_permission.id
*
* @mbg.generated Sun Jan 08 22:36:57 C... | true |
4d5a994caef239df8763cfbc2f155462410c171e | Java | huglx/MyFaceit | /app/src/main/java/com/isteel/myfaceit/ui/leaderBoards/LeaderItemViewModel.java | UTF-8 | 1,023 | 1.929688 | 2 | [] | no_license | package com.isteel.myfaceit.ui.leaderBoards;
import androidx.databinding.ObservableField;
import com.isteel.myfaceit.data.model.ResponsePlayer;
public class LeaderItemViewModel {
public final ObservableField<String> nickname;
public final ObservableField<String> avatar;
/* public final String g... | true |
200e13eff9e760a3cdf41345a6935fbc7e799e1b | Java | foretjerome/ARE | /fr/unedic/cali/autresdoms/cohab/sigma/pension/dom/spec/PensionInvaliditeSpec.java | UTF-8 | 981 | 1.679688 | 2 | [] | no_license | package fr.unedic.cali.autresdoms.cohab.sigma.pension.dom.spec;
import fr.unedic.util.QuantiteEuro;
import fr.unedic.util.temps.Damj;
public abstract interface PensionInvaliditeSpec
{
public static final String NATURE_PENSION_INV1 = "INV1";
public static final String NATURE_PENSION_INV2 = "INV2";
public static ... | true |
e88c6da76b579fd45ce039c6a8f2ef4215808e88 | Java | Deaos/Postulantes | /src/web/Postulante.java | UTF-8 | 1,869 | 2.6875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package web;
/**
*
* @author Diabulus
*/
public class Postulante {
private String rut;
private String nombre;
private String nombre2;
private String apellido;
private String a... | true |
b3c87042de2a2a4b83a3fcf16918bb4177a3dae6 | Java | JellyB/graph-storage | /src/main/java/com/wdcloud/data/neo4j/entity/VertexV.java | UTF-8 | 1,498 | 2.390625 | 2 | [] | no_license | package com.wdcloud.data.neo4j.entity;
/**
* Created by bigd on 2017/6/28.
* 顶点-顶点对象
*/
public class VertexV{
/**
* 开始顶点唯一标识
*/
private String sourceId;
/**
* 开始顶点及目标顶点租户值
*/
private String tenant;
/**
* 关系属性
*/
private Edge edge;
... | true |
c83bb04bb2665b7d23f7c77acc6891cf95a3fee2 | Java | LeonildoFAmorim/logica-de-programacao | /src/leonildo/filgueira/com/condicional/ExercicioElse.java | UTF-8 | 969 | 3.875 | 4 | [] | no_license | package leonildo.filgueira.com.condicional;
import java.util.Scanner;
/*
* femino maior que dezoito, pergunte se deseja se alistar;
* feminino menor que dezoito não pode se alistar;
* masculino maior que dezoito alistamento obrigatório;
* masculino menor que dezoito não permitido alistamento.
* */
public class Exercic... | true |
88580c2f2dcd8784609d206cb4d46a5cb80d38d6 | Java | skuodeveloper/YueZhan | /app/src/main/java/com/example/skuo/yuezhan/Observable/MyRxObservable.java | UTF-8 | 472 | 2.21875 | 2 | [] | no_license | package com.example.skuo.yuezhan.Observable;
import android.animation.Animator;
import com.example.skuo.yuezhan.Util.Utils;
import rx.Observable;
/**
* Created by LiCola on 2016/04/10 15:49
*/
public class MyRxObservable {
//动画数据流 添加后会自动开始
public static Observable<Void> add(Animator animator){
Ut... | true |
18164f7d3ec598e31834de0953098024efa649d1 | Java | hongwu666/trunk | /game-model/src/main/java/com/lodogame/model/OnlyoneTimesReward.java | UTF-8 | 745 | 2.265625 | 2 | [] | no_license | package com.lodogame.model;
public class OnlyoneTimesReward implements SystemModel {
private int times;
private int point;
private int copperA;
private int copperB;
public int getTimes() {
return times;
}
public void setTimes(int times) {
this.times = times;
}
public int getPoint() {
return point... | true |
a3b69b611d6f042b7506486bd37c8e29db9ffa1b | Java | retbing/better-world-app | /app/src/main/java/com/example/betterworld/validatorRules/createCharity/CharityForm.java | UTF-8 | 1,666 | 2.171875 | 2 | [] | no_license | package com.example.betterworld.validatorRules.createCharity;
import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;
import androidx.lifecycle.MutableLiveData;
import com.example.betterworld.BR;
import com.example.betterworld.R;
import static com.example.betterworld.utils.HelperClass.logEr... | true |
646e286f73ff0101c6c8b555ad5282550ac265a3 | Java | zcc888/Java9Source | /jdk.scripting.nashorn/jdk/nashorn/internal/runtime/doubleconv/DoubleConversion.java | UTF-8 | 6,811 | 2.28125 | 2 | [] | no_license | /*
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
//
//
//
//
//
// Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in so... | true |
9fecdab9a37d8971c7501ce404f681c6445f4ddb | Java | SandaPanteleimonov/java_tekwill | /src/first/ArrayReverse.java | UTF-8 | 417 | 3.328125 | 3 | [] | no_license | package first;
public class ArrayReverse {
public static void main(String[] args) {
int[] array = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
int[] array2 = new int[array.length];
for (int i = array.length - 1; i >= 0; i--) {
System.out.println(arr[i]) + "";
array2 = arr[i];
... | true |
675c40b950db0511abc932d61bac10ae2f2b8776 | Java | QiGangs/Vsb | /app/src/main/java/com/qi/vsb/Acti/Lookinfo.java | UTF-8 | 445 | 1.59375 | 2 | [] | no_license | package com.qi.vsb.Acti;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.qi.vsb.R;
/**
* Created by qigang on 16/7/18.
*/
public class Lookinfo extends AppCompatActivity {
@Override
protected void onCreate(@Nullable Bundle s... | true |
cd514f897b82c2fbf0f5c4f40f02c515b0625ad9 | Java | ThangaArchi/ODC | /JavaSource/oem/edge/ed/odc/dsmp/client/DSMPBaseMulticaster.java | UTF-8 | 4,334 | 2.46875 | 2 | [] | no_license | package oem.edge.ed.odc.dsmp.client;
import java.util.EventListener;
/* Copyright Header Check */
/* -------------------------------------------------------------------- */
/* */
/* OCO So... | true |
aae8c0051ac7a266f917d0b5db302a9ce6ad6ec6 | Java | bharatKothari/InsuranceManagement | /src/databaseConnectivity/AgentDatabase.java | UTF-8 | 2,101 | 2.734375 | 3 | [] | no_license | package databaseConnectivity;
import java.sql.*;
public class AgentDatabase {
public static Connection getConnection() {
Connection con = null;
try {
Class.forName("com.mysql.cj.jdbc.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost:3306/insurance","root","very_strong_password");
}catch(... | true |
c01140ef00c12ff99a39d21b69b044ee09a5e263 | Java | tejusasapu1247/java-practice | /SuperPrg1/src/Main.java | UTF-8 | 740 | 3.609375 | 4 | [] | no_license |
class Base{
protected int a,b;
public Base(){
}
public Base(int x,int y) {
this.a=x;
this.b=y;
}
public void print() {
System.out.println("this if from Base..");
}
public int add() {
return a+b;
}
}
class Derived extends Base{
private int z;
public Derived() {
}
public Derived(int x,int y,in... | true |
9d44e3997615fe2353cf9429234d0ed41bd79998 | Java | dream7319/scf-bms | /src/main/java/com/lierl/api/spider/AngularjsCnSpider.java | UTF-8 | 3,282 | 2.15625 | 2 | [] | no_license | package com.lierl.api.spider;
import com.alibaba.fastjson.JSON;
import com.google.common.base.Joiner;
import com.lierl.api.spider.bean.AngularjsCn;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.kafka.core.KafkaTemplate;
import us.codecraft.webmagic.Page;
import us.codecraft.webmagic... | true |
05196bc26d33b0e8e2a826e4e5b724d00d79b0c4 | Java | itorii/cursed-vault | /src/main/java/sk/cata/cursedvault/services/PromotionServiceImpl.java | UTF-8 | 2,596 | 2.5 | 2 | [] | no_license | package sk.cata.cursedvault.services;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import sk.cata.cursedvault.models.Promotion;
import sk.cata.cursedvault.models.exception.NotFoundException;
import sk.cata.cursedvault.models.exception.ServiceException;
import sk.cata.cursedvault.rep... | true |
78d5cb00123135b2ae39dc6c135b18fe429f9549 | Java | cardinals/NETESP-1 | /src/main/java/com/g10/ssm/po/forum/PostQueryVo.java | UTF-8 | 801 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package com.g10.ssm.po.forum;
import com.g10.ssm.po.forum.PostCustom;
public class PostQueryVo {
private PostCustom postCustom;
private Integer topicId;
private int upperPostsNum;
private int lowerPostsNum;
public int getLowerPostsNum() {
return lowerPostsNum;
}
public void setLowerPostsNum(int lowerPostsN... | true |
61e9e24397d628dec2d074e2bf4d7a75f1e9f311 | Java | DmitriBoulanger/samples | /basic/1/maven/00_Simple/00_Simple-0-HelloWorld/src/test/java/de/dbo/samples/basic1/maven/simple/HelloWorldTest.java | UTF-8 | 297 | 1.867188 | 2 | [] | no_license | package de.dbo.samples.basic1.maven.simple;
import static org.junit.Assert.*;
import org.junit.Test;
/**
* Unit test for HelloWorld.
*/
public class HelloWorldTest {
/**
* Rigourous Test :-)
*/
@Test
public void testHelloWorld()
{
assertTrue( true );
}
}
| true |
5feffa3c910ac67ca55112fcb841402367defa6b | Java | gab-95/MyAlarm-API | /myAlert/src/main/java/it/myalert/DTO/ManagerDTO.java | UTF-8 | 741 | 2.171875 | 2 | [] | no_license | package it.myalert.DTO;
import java.util.Date;
public class ManagerDTO {
private UserDTO user;
private int idManager;
private Date startDate_task;
private Date endDate_task;
public int getIdManager() {
return idManager;
}
public void setIdManager(int idManager) {
this.idManager = idManager;
}
pub... | true |
d30f03c9a109ca2b27e50a361ed0235103cf7580 | Java | anuchandy/azure-sdk-for-java | /recoveryservices.backup/resource-manager/v2016_12_01/src/main/java/com/microsoft/azure/management/recoveryservices/backup/v2016_12_01/BackupEngineBase.java | UTF-8 | 10,283 | 1.882813 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.recoveryservices.backup.v2016_12_01;
import com.... | true |
7ce65c8a932f7af1b350efa1caee4da4213ff8d7 | Java | xiaowangc/Management | /management-parent/src/main/java/com/libo/system/controller/SysLoginController.java | UTF-8 | 1,489 | 2.140625 | 2 | [] | no_license | package com.libo.system.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.libo.common.exception.ResponseCode;
import com.libo.common.response.Response;
import com.libo.system.domain.entity.SysUserEntity;
import com.libo.system.domain.form.LoginForm;
import com.libo.system.servi... | true |
3cae1f2dd992849637b985be2bc25ae44e0be589 | Java | jinweikim/Algorithm | /src/Company/lilith/Que1.java | UTF-8 | 1,507 | 3.390625 | 3 | [] | no_license | package Company.lilith;
class ListNode {
int val;
ListNode next = null;
public ListNode(int val) {
this.val = val;
}
}
public class Que1 {
public static void main(String[] args) {
ListNode node1 = new ListNode(1);
ListNode node2 = new ListNode(2);
ListNode node3 = new ... | true |
5075008855fdcaa5ddfbdfce6c50c02b3ad3758f | Java | mtesting/DVLATst | /DVLATst/src/test/java/stepdefinition/Testvehicleregistration.java | UTF-8 | 2,786 | 2.515625 | 3 | [] | no_license | package stepdefinition;
import java.io.File;
import java.io.File.*;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
... | true |
b27d4b1d6e3bcf51a43e1d0d38b3cdd669629800 | Java | Liuxingwei/Judge | /src/test/java/cn/liuxingwei/judge/utils/IpUtilTest.java | UTF-8 | 7,023 | 2.34375 | 2 | [] | no_license | package cn.liuxingwei.judge.utils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;
import javax.servlet.http.HttpServletRequest;
import java.net.UnknownHostException;
import static org.ju... | true |
791e7af88203cbc6e70a6124264aa648aac87075 | Java | eclair4151/App-Graveyard | /Android - Drexel_Registration_Assistant/app/src/main/java/com/shemeshapps/drexelregistrationassistant/Activities/ViewClassActivity.java | UTF-8 | 9,529 | 2.078125 | 2 | [] | no_license | package com.shemeshapps.drexelregistrationassistant.Activities;
import android.app.Activity;
import android.app.FragmentManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AlertDi... | true |
d2e31f41a8c47f494e2bce59d39470e8c7c85303 | Java | Aman7123/HueLightsAPI | /src/aaron/api/main/testCase1_Lights.java | UTF-8 | 932 | 2.515625 | 3 | [] | no_license | package aaron.api.main;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import aaron.api.Lights;
import aaron.api.LightsHelper;
import aaron.api.Request;
public class testCase1_Lights {
public static Lights[] lights;
private static String webpageRequest = "/lights";
private static... | true |
a0493c5033ec3428b9d16e1df550b00f5135abeb | Java | Fostev/scheduledJobService | /src/main/java/com/gvozdev/scheduledJobService/controller/JobController.java | UTF-8 | 1,613 | 2.078125 | 2 | [] | no_license | package com.gvozdev.scheduledJobService.controller;
import com.gvozdev.scheduledJobService.helpers.JobType;
import com.gvozdev.scheduledJobService.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.ste... | true |
3d7735251cf85289f851a990256842442b27e7b7 | Java | JackyCheungCode/wpcleaner | /WikipediaCleaner/src/org/wikipediacleaner/api/check/algorithm/a0xx/a04x/a040/CheckErrorAlgorithm040.java | UTF-8 | 1,214 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
* WPCleaner: A tool to help on Wikipedia maintenance tasks.
* Copyright (C) 2013 Nicolas Vervelle
*
* See README.txt file for licensing information.
*/
package org.wikipediacleaner.api.check.algorithm.a0xx.a04x.a040;
import java.util.Collections;
import java.util.Set;
import org.wikipediaclea... | true |
c076c129b56662c96ff5f0a125bd521fd249e46e | Java | WhiteVeil/anathema | /Lib/src/net/sf/anathema/lib/registry/IIdentificateRegistry.java | UTF-8 | 249 | 1.867188 | 2 | [] | no_license | package net.sf.anathema.lib.registry;
import net.sf.anathema.lib.util.Identified;
public interface IIdentificateRegistry<E extends Identified> extends ICollectionRegistry<E> {
boolean idRegistered(String id);
E getById(String id);
} | true |
20ec0c451d7240b0423f69e997fb1fd5a467cfa1 | Java | AlexRogalskiy/jentle | /collections/src/main/java/com/wildbeeslabs/jentle/collections/tree/iface/tree/BinaryTree.java | UTF-8 | 988 | 3.265625 | 3 | [
"MIT"
] | permissive | package com.wildbeeslabs.jentle.collections.tree.iface.tree;
public interface BinaryTree<E> extends Tree<E> {
/**
* Returns the Position of p's left child (or null if no child exists)
*
* @param p
* @return
* @throws IllegalArgumentException
*/
Position<E> left(Position<E> p) thr... | true |
3c22dc9a8dff63a6edd3732c5f518884f24dd53f | Java | chuguet/my-comparer | /comparer/comparer.autosender/comparer.autosender.dbsynchro/comparer.autosender.dbsynchro.usertask/src/test/java/com/comparadorad/bet/comparer/dbsynchro/usertask/state/DeleteUserStateTest.java | UTF-8 | 7,797 | 1.96875 | 2 | [] | no_license | package com.comparadorad.bet.comparer.dbsynchro.usertask.state;
import javax.inject.Inject;
import org.junit.Test;
import org.springframework.transaction.annotation.Transactional;
import com.comparadorad.bet.comparer.dbsynchro.usertask.exception.StateException;
public class DeleteUserStateTest extends Abst... | true |
00abad9c651dff300c5a437254ce4c7df4aa77b0 | Java | afforks/StudioPilates | /StudioPilates/src/br/com/luxu/controller/LoginBean.java | ISO-8859-1 | 3,014 | 2.21875 | 2 | [] | no_license | package br.com.luxu.controller;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import j... | true |
6c86ba28ddecc0ca10d25b3a24070b56af90eb18 | Java | xiaxinyu/learning_parent | /learning-spring/src/main/java/com/learning/spring/event/YellowLevelEventListener.java | UTF-8 | 460 | 2.3125 | 2 | [] | no_license | package com.learning.spring.event;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
@Component
public class YellowLevelEventListener implements ApplicationListener<YellowLevelEvent> {
@Async
@Override
p... | true |
df8b01aae32a40befa92b9ad9ee3b697ad8546d7 | Java | AntoniRD/ControlAccesos | /src/main/java/com/esliceu/dwes/boot/model/Rol.java | UTF-8 | 682 | 2.203125 | 2 | [] | no_license | package com.esliceu.dwes.boot.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
/**
* Created by xavi on 2/03/17.
*/
@Entity(name = "user_roles")
public class Rol implements Serializable {
@Id
@Column(name = "user_name")
pr... | true |
d90c9a31610fb4522ae6ac30bd4db44a43e7b2a7 | Java | eriksola/Achilles-2.0 | /src/Boundary/MainMenuPanel.java | UTF-8 | 4,111 | 2.515625 | 3 | [] | no_license | package Boundary;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.border.EmptyBorder;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
impor... | true |
59d6b8b3c072720d59e3371ab66c21ce4461f3fa | Java | mdanisurrahmanrony/Java-Core-Code-Practice | /All Code/DataType/src/ProblemSolving2/Triangle.java | UTF-8 | 337 | 3.09375 | 3 | [] | no_license | package ProblemSolving2;
public class Triangle extends Shape{
//dim1, dim2
public Triangle(double dim1, double dim2) {
super(dim1, dim2);
}
@Override
void area(){
double result = .5 * dim1 * dim2;
System.out.println("Triangle area : "+result);
... | true |
64f3f71d46d30979429d49355312bdc5e7fcda90 | Java | carlosgalan/Proyecto2015 | /GuardiasProv/src/dao/DaoAsignatura.java | UTF-8 | 1,279 | 2.578125 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import conexiones.Conexion;
import entidades.Asignaturas;
import entidades.Docentes;
public class DaoAsignatura {
public ArrayList<Asignaturas> most... | true |
bf8719a33533758234e761166e08df3dd84fe5f9 | Java | dolynhan15/Java-spring-boot | /Project-new-spring/boost-server-master/boost-server-api/src/main/java/com/qooco/boost/data/oracle/services/VacancyBenefitService.java | UTF-8 | 497 | 1.8125 | 2 | [
"BSL-1.0"
] | permissive | package com.qooco.boost.data.oracle.services;
import com.qooco.boost.data.oracle.entities.VacancyBenefit;
import java.util.List;
/*
* Copyright: Falcon Team - AxonActive
* User: mhvtrung
* Date: 8/6/2018 - 4:21 PM
*/
public interface VacancyBenefitService {
List<VacancyBenefit> findByVacancyId(Long vacancyId... | true |
8ff8ac7597b9a9ed2bba654bc70bb51d68e111ba | Java | freakcsh/CommonAppFramework | /app/src/main/java/com/freak/commonappframework/model/homepage/base/HomepagePresenter.java | UTF-8 | 1,220 | 1.914063 | 2 | [] | no_license | package com.freak.commonappframework.model.homepage.base;
import com.freak.commonappframework.app.api.ApiService;
import com.freak.commonappframework.model.homepage.base.bean.LoginBean;
import com.freak.commonappframework.net.HttpResult;
import com.freak.httphelper.ApiCallback;
import com.freak.httphelper.HttpMethods;... | true |
40c934c92878e47f53485bf53e5e617f98b5b469 | Java | qin-gs/LeetCode | /src/CS_Note/first/datastructure/AVLMap.java | UTF-8 | 714 | 3.109375 | 3 | [] | no_license | package CS_Note.first.datastructure;
import java.util.Comparator;
public class AVLMap<K, V> {
private int size;
private AVLEntry<K, V> root;
private Comparator<K> comparator;
public AVLMap() {
}
public AVLMap(Comparator<K> comparator) {
this.comparator = comparator;
}
public... | true |
25173a7c8d47cf23d51b46b22a6d46e82f795fa3 | Java | sarbarekati/Post_androidApplication | /app/src/main/java/com/anad/mobile/post/API/Retrofit/ApiClient.java | UTF-8 | 2,427 | 2.25 | 2 | [] | no_license | package com.anad.mobile.post.API.Retrofit;
import android.content.Context;
import com.anad.mobile.post.BuildConfig;
import com.anad.mobile.post.Storage.PostSharedPreferences;
import com.anad.mobile.post.Utils.NetworkUtils.NetworkUtil;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.IOE... | true |
d33c48334dd8b53e4f36a5e8e99b70a058f93fdf | Java | pankajsa/solace-spark | /src/main/java/events/EventListener.java | UTF-8 | 1,794 | 2.46875 | 2 | [] | no_license | package events;
import java.util.concurrent.ConcurrentLinkedQueue;
import com.solacesystems.jcsmp.BytesMessage;
import com.solacesystems.jcsmp.BytesXMLMessage;
import com.solacesystems.jcsmp.JCSMPException;
import com.solacesystems.jcsmp.XMLMessageListener;
import lombok.extern.slf4j.Slf4j;
import payment.Debit;
imp... | true |
7dd4ee34c231361105c44eb7166134a599ff4468 | Java | KaurageousSav/cucumber | /src/test/java/case_study/removepro.java | UTF-8 | 2,966 | 2.125 | 2 | [] | no_license | package case_study;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.interactions.Actions;
import cucumber.api.java.en.Given;
import cucumber... | true |
be1273cf6a4ea70203c626392a4a1413acaa0cae | Java | zhangdafeihhh/springmvc-shiro | /src/main/java/com/zhuanche/controller/disinfect/DisinfectController.java | UTF-8 | 5,421 | 2.046875 | 2 | [] | no_license | package com.zhuanche.controller.disinfect;
import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.google.common.base.Stopwatch;
import com.zhuanche.common.paging.PageDTO;
import com.zhuanche.common.web.AjaxResponse;
import com.zhuanche.dto.disinfect... | true |
31c4b6212af2c50686b62fc023a4bbfc50a7b8ea | Java | elaristocrata/shuraprueba | /src/main/java/com/prueba/shura/modules/producto/application/CrearProducto.java | UTF-8 | 646 | 2.21875 | 2 | [] | no_license | package com.prueba.shura.modules.producto.application;
import com.prueba.shura.modules.producto.domain.Producto;
import com.prueba.shura.modules.producto.domain.ProductoRepository;
public class CrearProducto {
private final ProductoRepository repository;
public CrearProducto(ProductoRepository repository) {
... | true |
ee6f063ab47d2ff53a07e54018c06cbcaa17e543 | Java | chertar/matching-engine | /src/main/java/com/chertar/util/OrderIdGenerator.java | UTF-8 | 167 | 2.3125 | 2 | [] | no_license | package com.chertar.util;
public class OrderIdGenerator {
private int id = 0;
public String next() {
id++;
return String.valueOf(id);
}
}
| true |
370375c8d50e049315f28a57363df3d52bf859da | Java | SongOf/LeetCode | /src/main/java/ex109/Solution.java | UTF-8 | 912 | 3.203125 | 3 | [] | no_license | package ex109;
/**
* @author SongOf
* @ClassName Solution
* @Description
* @Date 2021/3/25 19:52
* @Version 1.0
*/
public class Solution {
private ListNode gHead;
public TreeNode sortedListToBST(ListNode head) {
gHead = head;
int length = getLength(head);
return sortedListToBSTCor... | true |
b857ffc46cc20bb9d40618bfcb0b7c7f1cd4d20f | Java | AbrahamWang484/JavaProgrammingB23 | /src/day51_Abstraction/shapeTask/Square.java | UTF-8 | 528 | 3.46875 | 3 | [] | no_license | package day51_Abstraction.shapeTask;
public final class Square extends Shape{
private double s;
public double getS() {
return s;
}
public void setS(double s) {
if(s <= 0){
throw new RuntimeException("Invalid Side: "+s);
}
this.s = s;
}
public Squar... | true |
7b1f990f5845632f9e0db0deaf50aab1fa1138f2 | Java | Hanmourang/Gobblin | /gobblin-scheduler/src/test/java/gobblin/scheduler/JobConfigFileMonitorTest.java | UTF-8 | 5,194 | 1.976563 | 2 | [
"Apache-2.0",
"BSD-3-Clause",
"xpp",
"MIT"
] | permissive | /*
* Copyright (C) 2014-2015 LinkedIn Corp. 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 may obtain a copy of the
* License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |