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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1a0922e36b92e8cda5424c9075359713e09a1228 | Java | aaron0819/SalonAppV2 | /src/main/java/com/hampson/salonapp/util/AppointmentUtils.java | UTF-8 | 891 | 2.421875 | 2 | [] | no_license | package com.hampson.salonapp.util;
import com.hampson.salonapp.model.AppointmentRequest;
public class AppointmentUtils {
public static AppointmentRequest buildAppointmentObject(String appointmentType, int customerId,
String appointmentDate, String alternateAppointmentDate, String appointmentStartTime,
... | true |
77575bab351b269cb49d2ab089433737d5c258fa | Java | guoyu07/Latte-lang | /src/test/java/lt/compiler/library/TestLibraries.java | UTF-8 | 7,575 | 2.046875 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 KuiGang Wang
*
* 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 rights
* to use,... | true |
d8892eb6f36256dbbd5b43fb8fe1dd29e94be1f2 | Java | hippiesus/Analizador | /src/analizador/Nodo.java | UTF-8 | 852 | 2.53125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package analizador;
import java.util.LinkedList;
import java.util.List;
/**
*
* @author juancarlos
*/
public class Nodo {
private String programa;
private List<Nodo> relaciones= new LinkedList<Nodo>();
... | true |
edbdff0bb0d424a21dddddfc316eb444467d7137 | Java | jsnejcopbe/nanny | /src/com/zhuoan/shh/biz/SSHUtilBiz.java | UTF-8 | 2,206 | 2.40625 | 2 | [] | no_license | package com.zhuoan.shh.biz;
import java.io.Serializable;
import java.util.List;
import com.zhuoan.ssh.bean.PageUtil;
import com.zhuoan.ssh.bean.QueryParam;
public interface SSHUtilBiz {
/**
* 将实体对象持久化(保存到数据库)
* @param obj
* @return
*/
public Serializable saveObject(Object obj);
/**
* 根据实体对象ID获取实体对象
... | true |
a96cbaf2d44cc45b71cb1946afd04b161dfa5f03 | Java | Great001/Intranet_Android | /app/src/main/java/com/xogrp/tkgz/fragment/PhotoWallFragment.java | UTF-8 | 6,270 | 1.96875 | 2 | [] | no_license | package com.xogrp.tkgz.fragment;
import android.app.Activity;
import android.support.v4.view.ViewPager;
import android.view.View;
import android.widget.Toast;
import com.xogrp.tkgz.R;
import com.xogrp.tkgz.TKGZApplication;
import com.xogrp.tkgz.View.AlphabetScrollBar;
import com.xogrp.tkgz.Widget.CirclePageIndicator;... | true |
caf546c486a4081acb6306ecc9482ab676d61582 | Java | shimaomao/language | /java/disable/library/src/test/java/com/qunar/fresh/librarysystem/service/SystemServiceTest.java | UTF-8 | 4,683 | 1.992188 | 2 | [] | no_license | package com.qunar.fresh.librarysystem.service;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import com.qunar.fresh.librarysystem.dao.SystemServiceDao;
import com.qunar.fresh.librarysystem.model.SystemParam;
import com.qunar.fresh.li... | true |
90d815c234cb2468bdd3ce332e2ac90b286837e3 | Java | simran191996/TSL756 | /TSL756/src/testNg_Day4/TestSelenium.java | UTF-8 | 778 | 2.0625 | 2 | [] | no_license | package testNg_Day4;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;
import util.Base2;
public class TestSelenium extends Base2 {
@Test
public void LoginProcess() throws Exception {
Login login= new Login(driver);
driver.get("http://127.0.0.1:8080/htmldb");
login.LoginProcess(... | true |
56f2925c731f6ed909c9d1629ad883a5c873d0b6 | Java | hechuan73/train_ticket | /ts-travel-plan-service/src/main/java/travelplan/domain/GetRoutePlanInfo.java | UTF-8 | 1,200 | 2.453125 | 2 | [] | no_license | package travelplan.domain;
import java.util.Date;
public class GetRoutePlanInfo {
private String formStationName;
private String toStationName;
private Date travelDate;
private int num;
public GetRoutePlanInfo() {
//Empty Constructor
}
public GetRoutePlanInfo(String formStati... | true |
b22b43f99601966e590bd5aa42a7b8a6383903c3 | Java | huiyunfei/cultural | /src/main/java/com/yunfei/cultural/mapper/TCulturalSpecialistShMapper.java | UTF-8 | 485 | 1.726563 | 2 | [] | no_license | package com.yunfei.cultural.mapper;
import com.yunfei.cultural.entity.TCulturalSpecialistSh;
import com.yunfei.cultural.model.vo.CulturalSpecialistShResult;
import java.util.List;
import java.util.Map;
public interface TCulturalSpecialistShMapper {
void saveOrUpdateBitch(List<TCulturalSpecialistSh> culturalSpec... | true |
1cdd486b0af2dea675aee7ec47717f39b1e06891 | Java | manogna5/JavaApplets | /SimpleRoll.java | UTF-8 | 3,516 | 2.921875 | 3 | [] | no_license | package sample;
import java.applet.*;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import SpinFilter;
public class SimpleRoll extends Applet
implements Runnable
{
private boolean init = false;
Image myImage = null;
Image allImages[] = null;
Thread animation = null;
... | true |
7ad73d9e7cd3b96a9eabbc3b9f4f3fe5ec8e30dc | Java | vuquangtin/designpattern | /java/src/designpatterns/apps/IT49-2015-DP/dialogs/DlgModifyingLine.java | UTF-8 | 8,494 | 2.8125 | 3 | [
"MIT"
] | permissive | package dialogs;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JColorCho... | true |
fe249694c81807e59898e4ea3e26ebef31c24e42 | Java | xuyixuanwhut/Hadoop-Naive-Bayes | /src/main/java/org/xuchenlian/project/bank/NumClassifierReducer.java | UTF-8 | 1,110 | 2.65625 | 3 | [] | no_license | package org.xuchenlian.project.bank;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class NumClassifierReducer extends Reducer<Te... | true |
726921e82ffded7819ccdebd09995d76aebd4fcc | Java | myevas/myinterview | /src/test/java/helpers/GetProperties.java | UTF-8 | 1,153 | 3 | 3 | [] | no_license | package helpers;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import java.util.Set;
public class GetProperties {
private final Properties configProp = new Properties();
private GetProperties()
{
//Private constructor to restrict new instances
InputS... | true |
33ce3076a94c069abe777c8c8f99250820649ae9 | Java | amanmishra086/competitive-programming | /collection/src/collection/MyArrayList.java | UTF-8 | 2,018 | 3.21875 | 3 | [] | no_license | package collection;
import java.util.*;
public class MyArrayList {
public static void main(String[] args) {
// Pair< String , Integer> p1=new Pair("Aman",067);
// Pair< Boolean , Integer> p2=new Pair(true,067);
ArrayList<String> arraylist=new ArrayList<>();
LinkedList<String> linklist=new LinkedList<>();
... | true |
48d97d1f5cee261db60d5d4af514083992cf7dcb | Java | eray-onur/kres-otomasyonu | /src/meltem/controllers/AdminClassroomInfoController.java | UTF-8 | 9,018 | 2.390625 | 2 | [] | no_license | package meltem.controllers;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx... | true |
520f3ac57cf6780046243d9b7202fc413c927be3 | Java | tux1224/BakingApp2 | /app/src/main/java/com/example/salvadorelizarraras/bakingapp/FragmentsStepDetailView.java | UTF-8 | 10,955 | 1.773438 | 2 | [] | no_license | package com.example.salvadorelizarraras.bakingapp;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.Nullable;
import android.support.v4.app.Frag... | true |
08587550a5aff87cfa8327b20ba0f30399655024 | Java | cybernhl/MvpCase | /app/src/main/java/com/tamic/mvp/sample/bisiness/api/LoginApi.java | UTF-8 | 1,080 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.tamic.mvp.sample.bisiness.api;
import com.tamic.mvp.sample.base.api.Api;
import com.tamic.mvp.sample.bisiness.UserBean;
import java.util.Map;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.QueryMap;
/**
* Created by Tamic on 2017-12-28.
*/
publ... | true |
9c4e76377654684d95c13e3b676345e7f8b0becd | Java | syte-ai/Android-SDK | /app/src/main/java/com/syte/ai/android_sdk/app/fragments/WildImageSearchFragment.java | UTF-8 | 3,320 | 1.882813 | 2 | [] | no_license | package com.syte.ai.android_sdk.app.fragments;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.B... | true |
39213f79027b2ad09b717de6e77a82160727257e | Java | cdvcristiann/java-informatorio | /Actividades del informatorio/Ejercicios/ejercicio3.java | UTF-8 | 992 | 3.515625 | 4 | [] | no_license | package Ejercicios;
import java.util.Scanner;
public class ejercicio3{
public static void main(String[] args){
Scanner entradasdenotas = new Scanner(System.in);
System.out.println("Ingrese la nota del alumno: ");
int notas = entradasdenotas.nextInt();
if(notas>=93 && notas<=100){
System.o... | true |
e711d68c26c12e6a408f623ff4c19b0552c06cb2 | Java | Kevi0128/JavaDesignPatterns | /src/main/java/cn/kevi/study/design/create/FactoryMetohd/multi/impl/NSGame.java | UTF-8 | 266 | 2.125 | 2 | [] | no_license | package cn.kevi.study.design.create.FactoryMetohd.multi.impl;
import cn.kevi.study.design.create.FactoryMetohd.multi.interface_.Game;
public class NSGame implements Game {
@Override
public void play() {
System.out.println("play NS game");
}
}
| true |
35c39bb308007e0972675b28a206705671d919d9 | Java | zhongxingyu/Seer | /Diff-Raw-Data/32/32_4237682b42ccb16d41e22617403a089733eb1959/Goomba/32_4237682b42ccb16d41e22617403a089733eb1959_Goomba_t.java | UTF-8 | 2,665 | 2.734375 | 3 | [] | no_license | package characters;
import java.util.Random;
import map.DungeonCollision;
import core.Board;
import core.FileLink;
import core.GameManager;
public class Goomba extends AbstractEnemy implements Runnable, FileLink {
private static Player player;
private static DungeonCollision dungeonCollision... | true |
413daf4dcd96a0d3eed2064032a048ab4c7cbe2d | Java | 06112497liu/ssm | /common-dao/src/main/java/com/bbd/dao/OpinionExtDao.java | UTF-8 | 827 | 1.804688 | 2 | [] | no_license | package com.bbd.dao;
import com.bbd.param.ChannelTrend;
import com.bbd.param.NameValueInfo;
import com.bbd.param.OpinionVo;
import java.util.List;
import java.util.Map;
public interface OpinionExtDao {
/**
* 查询预警舆情top10
* @return
*/
List<OpinionVo> selectWarnOpinionTopTen();
/**
... | true |
1ed513cf0b6cf03f0d28c6d34884bf2b96f8cfcb | Java | ostapkoziy/PublicEnemies | /PublicEnemies/src/main/java/com/epam/publicenemies/web/fight/FightResultController.java | UTF-8 | 2,332 | 2.21875 | 2 | [] | no_license | package com.epam.publicenemies.web.fight;
import java.util.Random;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind... | true |
ed9d7917124d22b2bd681ab71bb95e99e29bb864 | Java | HosamZ/back-end | /reflection/encoder/src/main/java/at/nacs/encoder/EncoderEndpoint.java | UTF-8 | 892 | 2.125 | 2 | [] | no_license | package at.nacs.encoder;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import j... | true |
4a8cdc0b0125c7d965b19434b7de2029e1ae810c | Java | ValenbergHar/G-JD1-2019-10-01_ValenbergHar | /src/android/CoolLessons/Saints/app/src/main/java/com/example/saints/Saint.java | UTF-8 | 855 | 2.921875 | 3 | [] | no_license | package com.example.saints;
public class Saint {
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDob() {
return dob;
}
public void setDob(String dob) {
this.dob = dob;
}
public Strin... | true |
19f3faba42669ffd286b7f2c0c7ded1338e5b4b5 | Java | cowbi/sparrow | /design-pattern/src/main/java/factory/abstractFactory/Vehicle.java | UTF-8 | 152 | 2.21875 | 2 | [] | no_license | package factory.abstractFactory;
/**
* @author zhaoyancheng
* @date 2021-05-19 08:29
**/
public abstract class Vehicle {
abstract void run();
}
| true |
1d4dcd450031f0a1992b61fd2d1d3e3955ad83de | Java | bellmit/newHouses | /myssh/src/com/sc/tradmaster/service/visitRecords/VisitRecordsService.java | UTF-8 | 1,580 | 2.09375 | 2 | [] | no_license | package com.sc.tradmaster.service.visitRecords;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
import com.sc.tradmaster.bean.ProjectCustomers;
import com.sc.tradmaster.bean.User;
import com.sc.tradmaster.bean.VisitRecords;
import com.sc.tradmaster.service.visitRecords.impl.visitRecordDT... | true |
393b32ec85b67c7f73bface08f865aa8017ec1bc | Java | egoistor/Notepad | /app/src/main/java/com/example/android/notepadtext/DeleteActivity.java | UTF-8 | 1,534 | 2.015625 | 2 | [] | no_license | package com.example.android.notepadtext;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerVi... | true |
5b6b60042fcb0394238b96de771a68a50cc9a43d | Java | abdirahmanali1997/Calculus | /calculus/source/SequencesGraph.java | UTF-8 | 11,508 | 2.640625 | 3 | [] | no_license | import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import org.nfunk.jep.*;
class Series{
double val;
double sum;
double ratio;
double root;
long n;
Series next;
Series previous;
public Series( double val, Series previous){
this.val = val;
this.previous = previous;
this.sum = val;
t... | true |
e5f2e05629f4498e849dc0f691964994da60b45c | Java | FamilySearch/gedcomx-java | /gedcomx-model/src/main/java/org/gedcomx/common/EvidenceReference.java | UTF-8 | 5,169 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright Intellectual Reserve, 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 a... | true |
8cf75dfdd97eb2575229f95836af5eafc1776a62 | Java | ccrodrigues/curso-angular-mvc | /mvc/src/main/java/com/brq/mvc/resources/exception/ObjectNotFoundException.java | UTF-8 | 318 | 2.203125 | 2 | [] | no_license | package com.brq.mvc.resources.exception;
public class ObjectNotFoundException extends RuntimeException {
private static final long serialVersionUID = 1L;
public ObjectNotFoundException(int id, Object obj) {
super ("O " + obj.getClass().getSimpleName() +
" com id " + id + " não foi localizado");
}
}
| true |
c28d77ca7e4d94e94cb0cff5070621eadae81cf8 | Java | morreman/MahFoodInfoServer | /unicorn-spark/src/main/java/recensions/Storage.java | UTF-8 | 5,785 | 2.96875 | 3 | [
"MIT"
] | permissive | package recensions;
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.List;
/**
* @author "Anton & Mårten"
*/
public class Storage {
private Connection connection = null;
... | true |
b4aeaf62d10524d3a4bfe60f122507e3f676c19c | Java | ShivrajMPujari/bridgeIt | /objectOriented/StockMain.java | UTF-8 | 3,869 | 3.015625 | 3 | [] | no_license | package com.bridgeIt.objectOriented;
import org.json.simple.JSONObject;
import com.bridgeIt.utility.Utility;
public class StockMain {
public static void main(String[] args) {
System.out.println("Stock processing-");
System.out.println("1.New user \n2.Existing user");
int user=Utility.inputInt();
if(user... | true |
9d8423e709a65752b0277b61ba471acffa706285 | Java | joabeleonard/clubeserver | /src/main/java/com/example/polls/model/CategoriaEmpresa.java | UTF-8 | 1,248 | 2.6875 | 3 | [] | no_license | package com.example.polls.model;
import java.util.HashMap;
import java.util.Map;
/**
* Created by rajeevkumarsingh on 07/12/17.
*/
public enum CategoriaEmpresa {
ALIMENTACAO("ALIMENTACAO","Alimentacao"),
SERVICO_AUTOMATIVO("SERVICO_AUTOMATIVO","Serviço Automativo"),
EDUCACAO("EDUCACAO","Educação"),
TURISMO("... | true |
27e920f0ffe17045da64ccbf5c0f698dbd6ba9fe | Java | Liu-zhi-xiang/Kxian | /app/src/main/java/com/gjmetal/app/model/my/AdviceModel.java | UTF-8 | 1,622 | 2.125 | 2 | [
"MIT"
] | permissive | package com.gjmetal.app.model.my;
/**
* Description: 版本信息
* @author :liuzhixiang
* @Email 1910609992@qq.com
* @date 2019/4/27 13:22
*/
public class AdviceModel {
//app版本
private String appVersion;
//联系方式
private String contact;
//反馈内容
private String content;
//设备版本
private Strin... | true |
be613ce1d2a90567cbfbf5afa792f98d708fcd25 | Java | tosim/Java-interview | /interview/src/main/java/com/tosim/interview/designpartten/creation/builder/Test.java | UTF-8 | 315 | 2.65625 | 3 | [] | no_license | package com.tosim.interview.designpartten.creation.builder;
public class Test {
public static void main(String[] args){
HouseDirector houseDirector = new HouseDirector();
House house = houseDirector.buildHouse(new ConcreteHouseBuilder());
System.out.println(house.toString());
}
}
| true |
981f869c8ec7ccdd83be57a52ff15232bba721c6 | Java | AugustoVasconellosUFC/qxd007-cofre | /src/test/java/TestCofre.java | UTF-8 | 4,895 | 3.140625 | 3 | [] | no_license | import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class TestCofre {
@Test
public void testMoedas() {
assertTrue(Moeda.M10 instanceof Enum, "As moedas devem ser enumeracoes");
assertTrue(Moeda.M25 instanceof Enum, "As moedas devem ser enumeracoes");
... | true |
b0f3f14f8a776e773ad2fb83b4b5afd84ca82b05 | Java | virtudesp/gesmusic-server | /src/main/java/net/daw/bean/implementation/SociedadBean.java | UTF-8 | 8,150 | 2.234375 | 2 | [
"MIT"
] | permissive | /*
* 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 net.daw.bean.implementation;
import com.google.gson.annotations.Expose;
import java.sql.Connection;
import java.sql.ResultSet;... | true |
4a696508dd9ff114889064448443c371ccb8547c | Java | 4lch4/Hermes_Android | /app/src/main/java/com/devinl/hermes/fragments/HomeFragment.java | UTF-8 | 3,838 | 2.515625 | 3 | [] | no_license | package com.devinl.hermes.fragments;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Bu... | true |
a8bbb74448718447e27da94ac2af2ffda0ec6029 | Java | lukeharrison95/MyDevProjectBackend | /src/main/java/com/DM/demo/Util/PlayerNotFoundException.java | UTF-8 | 248 | 1.585938 | 2 | [] | no_license | package com.DM.demo.Util;
import javax.persistence.EntityNotFoundException;
public class PlayerNotFoundException extends EntityNotFoundException{
/**
*
*/
private static final long serialVersionUID = -7345397540802437683L;
}
| true |
852f6ce6cc0077473219014f4e8dd1fb924d4e10 | Java | DataScientists/OccIDEAS | /src/main/java/org/occideas/mapper/InterviewModuleMapperImpl.java | UTF-8 | 2,638 | 2.15625 | 2 | [
"MIT"
] | permissive | package org.occideas.mapper;
import org.occideas.entity.InterviewModule;
import org.occideas.vo.InterviewModuleVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
public class InterviewModule... | true |
679dc5cb45783edbbd74f5d273e1253729f42e9a | Java | elbarbero/TrabajosJavaClase | /NetBeansProjects/Ejercicio4.Colecciones.JFrame/src/modelo/Usuario.java | UTF-8 | 3,760 | 3.1875 | 3 | [] | 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 modelo;
import java.util.ArrayList;
/**
*
* @author Mario
*/
public class Usuario {
private String nombre, login, pas... | true |
b4ee767c8d709a91110fcc3d292db6bbefaa1e4d | Java | archwu/INFO-5100-SP-2020 | /assignment4/src/IceCream.java | UTF-8 | 375 | 2.8125 | 3 | [] | no_license | public class IceCream extends DessertItem {
int cost;
public IceCream(String name, int cost){
super(name);
this.cost = cost;
}
@Override
public int getCost() {
return cost;
}
//TODO
public String getString() {
return String.format("%-30s%5s\n", name, De... | true |
432efbacbe2ef58ee09f91febb1399ac605f31b1 | Java | lucasjadami/bomberboys | /client/src/main/java/com/bomberboys/game/Bomb.java | UTF-8 | 2,272 | 2.84375 | 3 | [] | no_license | package com.bomberboys.game;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import java.io.IOException;
import com.bomberboys.ui.Images;
public class Bomb extends MapObject {
private static final String[] sprite... | true |
267f67fed13ba5ad6940ea4f1b42d7c4015f9195 | Java | jeffcanas13/mytest | /src/main/java/adec/tech/atms/validation/validator/VerticalValidator.java | UTF-8 | 975 | 2.421875 | 2 | [] | no_license | package adec.tech.atms.validation.validator;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.beans.factory.annotation.Autowired;
import adec.tech.atms.config.Constants;
import adec.tech.atms.repository.VerticalRepository;
import adec.tech.at... | true |
8648f186d4d4f9472c66e2c4beade0670f268d10 | Java | aartisoft/QuickRideAndroid | /quickRide/src/main/java/com/disha/quickride/androidapp/ecometer/RideSharingCommunityContributionGettingAsyncTask.java | UTF-8 | 2,920 | 2.078125 | 2 | [] | no_license | package com.disha.quickride.androidapp.ecometer;
import android.content.Context;
import android.os.AsyncTask;
import android.support.v7.app.AppCompatActivity;
import com.disha.quickride.androidapp.usermgmt.cache.UserDataCache;
import com.disha.quickride.androidapp.usermgmt.cache.UserDataCacheReceiver;
import com.dish... | true |
10f877ac52eb93acfae883b8a748cc01695acdf4 | Java | sengeiou/workspace_xg | /jfAppService/src/main/java/com/jf/entity/MchtInfoCustom.java | UTF-8 | 2,930 | 1.960938 | 2 | [] | no_license | package com.jf.entity;
import java.math.BigDecimal;
import java.util.List;
public class MchtInfoCustom extends MchtInfo{
private Integer sourceNicheId;
private String storyIntroduction;
private String productIds;
private String oldProductIds;
private List<ProductCustom> productCustomList;
private String coupon... | true |
62a2855786ba2f8780f08355be3f5bbae2385d3e | Java | dudals4824/android-extract-gif-develop | /android-extract-gif/app/src/main/java/com/naver/hackday/android_extract_gif/database/GIFDao.java | UTF-8 | 457 | 2.25 | 2 | [] | no_license | package com.naver.hackday.android_extract_gif.database;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import java.util.List;
@Dao
public interface GIFDao {
@Query("SELECT * FROM gif"... | true |
0d82eb9fb2c1545d25b9f0b46bd174301b97180e | Java | TechGitRepo2020/AkashSatputePortfolio | /BookStoreApplication/src/main/java/com/nt/service/BookServiceImpl.java | UTF-8 | 662 | 2.546875 | 3 | [] | no_license | package com.nt.service;
import com.nt.bo.BookBO;
import com.nt.dao.BookDAOImpl;
import com.nt.dao.IBookDAO;
import com.nt.dto.BookDTO;
public class BookServiceImpl implements IBookService {
private IBookDAO dao;
public BookServiceImpl() {
dao=new BookDAOImpl();
}
@Override
public String Store... | true |
b8a9638de11156aaa0942e29a31ed0e0a45b4eb1 | Java | raulgarciadevop/SweetControl | /app/src/main/java/com/youngwaresoft/sweetcontrol/MyAdapter.java | UTF-8 | 1,170 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.youngwaresoft.sweetcontrol;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class MyAdapter extends RecyclerView.Adapter<MyAdapter.MyViewHolder> {
private S... | true |
a3be6eae8800ca3b21bf3608a76a90c063b55a8f | Java | christianmanzi/MTNECWAgentProd | /src/java/mtnecwagent/logic/AbstractMMHandler.java | UTF-8 | 516 | 1.8125 | 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 mtnecwagent.logic;
import java.io.InputStream;
/**
*
* @author aimable
*/
public abstract class AbstractMMHandler {
... | true |
3bb588dd369a26cd2cf3b47e8452d5ab74eaf9e5 | Java | zshunxiang/database | /src/main/java/first/StudentDao.java | UTF-8 | 2,805 | 2.828125 | 3 | [] | no_license | package first;
import com.mysql.jdbc.PreparedStatement;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import common.*;
public class StudentDao {
private MyDB myDB=new MyDB();
public int insertStudent(Student student){
int i = 0;
String sql = "insert into s... | true |
74dc87f21fe79152b85afb141e10d633dbac372f | Java | TaylorHarvin/LegoSoccer | /LEGO_S_NEWEST/src/fullSoccer/SensorControl.java | UTF-8 | 6,511 | 2.4375 | 2 | [] | no_license | package fullSoccer;
import java.io.FileNotFoundException;
import java.io.FileReader;
import lejos.hardware.Button;
import lejos.hardware.port.Port;
import lejos.hardware.sensor.EV3UltrasonicSensor;
import lejos.hardware.sensor.HiTechnicCompass;
import lejos.hardware.sensor.HiTechnicIRSeekerV2;
import lejos.robotics.Sa... | true |
82956de186ea57104931e8d6a21a94f67577659b | Java | manishee/Sep2020JavaSession2 | /src/JavaSessions/Ecomm.java | UTF-8 | 769 | 2.328125 | 2 | [] | no_license | //*************** Oct 21 -p2*******************
package JavaSessions;
public class Ecomm {
public static void main(String[] args) {
Ecomm e1=new Ecomm();
e1.search("samsung", 50);
}
public void search() {
}
public void search(String name) {
}
public void search(String name, int price) {
Sys... | true |
762977d6ee0c2dd007817fd1138b1a06f8ddd964 | Java | deathrat/MineFactoryReloaded | /src/powercrystals/minefactoryreloaded/farmables/FertilizableGrass.java | UTF-8 | 1,669 | 2.28125 | 2 | [] | no_license | package powercrystals.minefactoryreloaded.farmables;
import java.util.Random;
import powercrystals.minefactoryreloaded.api.FertilizerType;
import powercrystals.minefactoryreloaded.api.IFactoryFertilizable;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeHooks;... | true |
d9bb8537e3d04b198d780413c5ca5ba13a5a2318 | Java | lijian12388806/WSP | /src/com/liveneo/plat/web/form/mgr/MgrWoDefineForm.java | UTF-8 | 2,595 | 1.640625 | 2 | [] | no_license | package com.liveneo.plat.web.form.mgr;
import com.liveneo.plat.web.form.base.BaseForm;
public class MgrWoDefineForm extends BaseForm {
private static final long serialVersionUID = 1L;
private java.lang.String defType;
private java.lang.String defCol;
private java.lang.String defCanedit;
private java.lang.Strin... | true |
4e8b4b27a8d8a276570d315649b1ab9e3a3aac06 | Java | c0deX1/BankSystem | /src/com/company/Interfaces/IBankController.java | UTF-8 | 330 | 1.710938 | 2 | [] | no_license | package com.company.Interfaces;
import com.company.dto.PaymentDocumentRq;
import com.company.dto.PaymentDocumentRs;
import java.io.IOException;
public interface IBankController {
PaymentDocumentRs paymentDocumentRqProcess(PaymentDocumentRq rq, boolean fromAnotherBank) throws IOException;
String showAccountsI... | true |
ef7dfa1d157fbf51045ba047b4fd0361090f2954 | Java | IYash/test | /src/main/java/com/test/innerclass/OuterClass.java | UTF-8 | 1,232 | 3.484375 | 3 | [] | no_license | package com.test.innerclass;
/**
* @author huangchangling on 2017/8/14 0014
*
* 内部类可以访问外部类的范围
*/
public class OuterClass {
private String outer = "outer";
private static String souter = "souter_hello_world";
public String getOuter(){
return outer;
}
public static String getSouter(){
... | true |
e5acafd460c62176669af70c9ba9e498d6ca6ed1 | Java | JessenPan/leetcode | /algorithms/java/src/test/java/org/jessenpan/leetcode/greedy/S874WalkingRobotSimulationTest.java | UTF-8 | 619 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package org.jessenpan.leetcode.greedy;
import org.junit.Assert;
import org.junit.Test;
/**
* @author jessenpan
*/
public class S874WalkingRobotSimulationTest {
private S874WalkingRobotSimulation walkingRobotSimulation = new S874WalkingRobotSimulation();
@Test
public void test1() {
int t = walk... | true |
3937a1417b2207e4590297bb4a6b42e178b47752 | Java | luvlysehgal/Address-Book | /AddressBook.java | UTF-8 | 999 | 2.828125 | 3 | [] | no_license | import java.util.ArrayList;
public class AddressBook {
public static void main(String[] args){
PersonInformation personInformation1 = new PersonInformation("Lovely", "Sehgal",
"Model Town", "Rohtak", "Haryana", 124001L, 8000004990L);
PersonInformation personInformation2 = new PersonInformation("Muskan", ... | true |
d18d610a6510b671e4e5ff2f682b7c7c37a932b2 | Java | tosrikant/interviews | /src/main/java/com/interview/company/airbnb/ValidParentheses.java | UTF-8 | 1,733 | 3.59375 | 4 | [] | no_license | package com.interview.company.airbnb;
import java.util.HashMap;
import java.util.Stack;
//https://www.programcreek.com/2012/12/leetcode-valid-parentheses-java/
public class ValidParentheses {
public static boolean isValid2(String s) {
HashMap<Character, Character> map = new HashMap<Character, Character>(... | true |
66958bf2f98a00e2abb5fce4ff11a2eb03e78a7a | Java | Naua-stack/TCC-ControlBusiness | /app/src/main/java/com/example/tcc/SuportActivity.java | UTF-8 | 2,335 | 2.140625 | 2 | [] | no_license | package com.example.tcc;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.Toast;
import androidx.appcompat... | true |
4af8d3b120f423bfc9c829757c7be8e0d1a9a731 | Java | dione/credis-suisse | /src/main/java/com/test/EventsCorrelator.java | UTF-8 | 116 | 1.515625 | 2 | [] | no_license | package com.test;
import java.nio.file.Path;
public interface EventsCorrelator {
void checkFile(Path path);
}
| true |
995487bfc191d0241f326c46d5f0a7473442c4ea | Java | Anubhav007-hue/Eclipse | /Damon/src/Josh/LeavesSum.java | UTF-8 | 1,094 | 3.265625 | 3 | [] | no_license | package Josh;
import Josh.PrintNodeWithOneChild.TreeNode;
public class LeavesSum {
class TreeNode
{
int data;
TreeNode left=null;
TreeNode right=null;
TreeNode (int data)
{
this.data=data;
}
}
public TreeNode insert(int data)
{
TreeNode node=new TreeNode(data);
retu... | true |
40d68fc311bdc5b9d80f8867adc45ba3a4bfe79b | Java | goldsenator/goldsenator | /account-service/src/main/java/kz/iitu/liquor/eshop/model/UserRoles.java | UTF-8 | 621 | 2.015625 | 2 | [] | no_license | package kz.iitu.liquor.eshop.model;
import lombok.Data;
import javax.persistence.*;
@Entity
@Table(name = "user_role")
@Data
public class UserRoles {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
Long id;
@ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.MER... | true |
780735f63a1438a5e08a7323ab369543b64b40e3 | Java | tvdstorm/sea-of-saf | /martijnvdmaas/src/jsaf/game/FightEngine.java | UTF-8 | 11,253 | 2.640625 | 3 | [] | no_license | package jsaf.game;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Random;
import jsaf.astelements.Behaviour... | true |
5bd2ce9c81074ee82bc3eee5d667bd98631f8856 | Java | nasermasalma/Color-Models-Conversion | /src/p1/Activity.java | UTF-8 | 10,947 | 2.78125 | 3 | [] | no_license | package p1;
import javax.swing.*;
import javax.swing.border.TitledBorder;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
//this is my project Naser Masalma
@SuppressWarnings("... | true |
86d6f407a43b081e240b260238b702fa1d91e7c2 | Java | EminAliev/Biology-study | /src/main/java/ru/itis/biology/dto/QuestionDto.java | UTF-8 | 208 | 1.742188 | 2 | [] | no_license | package ru.itis.biology.dto;
import lombok.Data;
import ru.itis.biology.models.Answer;
import java.util.Set;
@Data
public class QuestionDto {
private String content;
private Set<Answer> answers;
}
| true |
cbddbf6f56f54ecb932fa42e10b02e91fe6ad734 | Java | cbtian/strayboy | /app/src/main/java/com/tiancb/strayboy/logic/BaseLogic.java | UTF-8 | 277 | 1.804688 | 2 | [] | no_license | package com.tiancb.strayboy.logic;
import com.tiancb.strayboy.MainApplication;
/**
* Created by tiancb on 2018/4/11.
*/
public class BaseLogic {
public MainApplication app;
public BaseLogic(){
app = (MainApplication) MainApplication.getInstance();
}
}
| true |
415c427a61d1381f92435458d37c75bc3867db05 | Java | 3035147105/HFQ-SpringBoot | /src/main/java/com/toy/server/config/dataBase/CtradeDataSourceConfig.java | UTF-8 | 2,384 | 2 | 2 | [] | no_license | package com.toy.server.config.dataBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateSettings;
import org.springframework.boot.autoconfigure.orm.jpa.JpaProperties;
import org.... | true |
b6621d738828a4424b4b05938f75dc5cf9c8f47a | Java | evgenykuzin/crud-with-kafka | /src/test/java/ru/sberbank/kuzin19190813/crudwithkafka/controllers/CrudControllerTest.java | UTF-8 | 4,816 | 2.28125 | 2 | [] | no_license | package ru.sberbank.kuzin19190813.crudwithkafka.controllers;
import lombok.*;
import lombok.experimental.FieldDefaults;
import org.junit.jupiter.api.Test;
import ru.sberbank.kuzin19190813.crudwithkafka.body.response.NotFoundBody;
import ru.sberbank.kuzin19190813.crudwithkafka.body.response.RespBody;
import ru.sberbank... | true |
54db9b59449ada0054b636f09b7eba8a5b26105d | Java | P79N6A/icse_20_user_study | /methods/Method_1003203.java | UTF-8 | 315 | 2.0625 | 2 | [] | no_license | @Override public boolean next(){
if (rowId < rowCount) {
rowId++;
remapIfOld();
if (rowId < rowCount) {
if (rowId - rowOffset >= result.size()) {
fetchRows(true);
}
currentRow=result.get(rowId - rowOffset);
return true;
}
currentRow=null;
}
return false;
}
| true |
1890dfd3a968fc7424c430ee46a7ac5df55e2387 | Java | Harshith7829/TY_CG_HTD_BangloreNovember_JFS_HarshithCR | /Module-2 test/retailer_db/src/main/java/com/capgemini/retailer_db/controller/UserController.java | UTF-8 | 4,128 | 2.359375 | 2 | [] | no_license | package com.capgemini.retailer_db.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMappin... | true |
9abab9ce7ce5ef13d8215be8e16611156d78cf6c | Java | karenc-bq/aws-postgresql-jdbc | /pgjdbc/src/test/java/software/aws/rds/jdbc/postgresql/ca/ClusterAwareWriterFailoverHandlerTest.java | UTF-8 | 23,973 | 1.96875 | 2 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* AWS JDBC Driver for PostgreSQL
* Copyright Amazon.com Inc. or affiliates.
* See the LICENSE file in the project root for more information.
*/
package software.aws.rds.jdbc.postgresql.ca;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
i... | true |
f3ace8a75396e3b7c79ca1bcc2bc87076e78450d | Java | dorizorus/ATOS-fil-rouge-back | /src/main/java/atos/bdd/controller/CollaborateurController.java | UTF-8 | 6,268 | 2.390625 | 2 | [] | no_license | package atos.bdd.controller;
import atos.bdd.dao.ICollaborateurDao;
import atos.bdd.dao.IExperienceDao;
import atos.bdd.model.Collaborateur;
import atos.bdd.model.relation.Cle_collab_competence;
import atos.bdd.model.relation.Collaborateurs_Competences;
import atos.bdd.view.MyJsonView;
import java.util.List;
import... | true |
decb2995e97f357664dcbe75d76cc15b417f4400 | Java | dipkothari/Assignments | /Day2/src/SelfReview/Example1.java | UTF-8 | 232 | 2.671875 | 3 | [] | no_license | package SelfReview;
public class Example1 {
public static void main(String[] args) {
int intValOne=5, intValTwo=7;
System.out.println(((intValTwo * 2)% intValOne));
System.out.println((intValTwo % intValOne));
}
}
| true |
8869d279478f25b4593fdf8bb8512eaa0838f24e | Java | MitashGaurh/MusicLibrary | /src/main/java/com/mitashgaurh/musiclibrary/java/dao/SongDao.java | UTF-8 | 377 | 2.140625 | 2 | [] | no_license | package com.mitashgaurh.musiclibrary.java.dao;
import com.mitashgaurh.musiclibrary.java.entities.Song;
import java.util.List;
public interface SongDao {
Song addSong(Song song);
Song updateSong(Song song);
void deleteSong(Song song);
Song findSongById(Integer songId);
List<Song> getSongs();
... | true |
aa3fbac75776a8b8661a68d3e75a5d90a1a759d9 | Java | dabaoqiang/rabbitmq-demo | /src/main/java/com/xxq/rest/rabbitmq/demo1/demo6/ReceiveLogsToConsole.java | UTF-8 | 1,687 | 2.78125 | 3 | [] | no_license | package com.xxq.rest.rabbitmq.demo1.demo6;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
import com.rabbitmq.client.QueueingConsumer;
/**
* 控制器日志打印
*/
public class ReceiveLogsToConsole implements Runnable {
// 转发器
private static f... | true |
d6163868f865bd0f68614d7eb015f01e8cc02004 | Java | Grrui/ECollaborationMaven | /src/main/java/action/com/logIn/LogInAction.java | UTF-8 | 3,471 | 2.265625 | 2 | [] | no_license | package action.com.logIn;
import com.opensymphony.xwork2.ActionSupport;
import net.sf.json.JSONObject;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;
import org.springframework.context.Applicatio... | true |
c0da9fbb64e4359403607327b0defff3a2a8b849 | Java | Gaurav-Gaikwad-1/Placement-Management-System | /src/campusrecruitmentsystem/Driver.java | UTF-8 | 207 | 1.5625 | 2 | [] | no_license | package campusrecruitmentsystem;
import Dashboard.MainScreen;
import LoginPages.Login;
public class Driver {
public static void main(String args[]){
new MainScreen().setVisible(true);
}
}
| true |
b4e927ae09dc45ee9421e2ba5c94c4d93e1fa271 | Java | pgithaiga/Pingball | /pingball-phase2/src/pingball/simulation/GridLocation.java | UTF-8 | 1,008 | 3.234375 | 3 | [] | no_license | package pingball.simulation;
import physics.Vect;
import pingball.util.Pair;
/**
* A grid location on the board.
*
* This is a lightweight wrapper around Pair.
*
* Rep-Invariant:
* None. The pair of integer can be anything within Integer range.
*/
public class GridLocation extends Pair<Integer, Integer>... | true |
e9df8bca33e751d57d60a7e934bfc247b7153c43 | Java | fabiano1749/cepalab | /SistemaVendas/src/main/java/com/cepalab/sistemaVendas/operacao/controle/pesquisaRecebimentoInadimplenteBean.java | UTF-8 | 3,003 | 1.976563 | 2 | [] | no_license | package com.cepalab.sistemaVendas.operacao.controle;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import com.cepalab.sistemaVendas.cadastro.dominio.Func... | true |
9490953120b15f59edc4a61861d7cb046cfeeb2c | Java | jingw/hanabi-bot | /src/main/java/hanabi/BitVectorUtil.java | UTF-8 | 786 | 3.4375 | 3 | [] | no_license | package hanabi;
public class BitVectorUtil {
/**
* Remove the ith bit by shifting down all higher order bits
*/
public static int deleteAndShift(int vector, int i) {
int lowerMask = (1 << i) - 1;
int upperMask = ~((1 << (i + 1)) - 1);
return ((vector & upperMask) >>> 1) | (vec... | true |
cb8aab6579a9f95167f2792c322ba86920d87eed | Java | DefNeoRoman/resumeStorage2 | /src/test/java/abstractClasses/AbstractStorageTest.java | UTF-8 | 3,102 | 2.671875 | 3 | [] | no_license | package abstractClasses;
import TestData.*;
import com.exception.ExistStorageException;
import com.exception.NotExistStorageException;
import com.model.*;
import com.storage.interfaces.Storage;
import com.Config;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.File;
import java... | true |
cce3e7a1b974465e03bdc6b0e0a77152fe7263fa | Java | percussion/percussioncms | /projects/sitemanage/src/test/java/com/percussion/share/data/PSDataObjectTestCase.java | UTF-8 | 1,772 | 1.851563 | 2 | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0",
"OFL-1.1",
"LGPL-2.0-or-later"
] | permissive | /*
* Copyright 1999-2023 Percussion Software, 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 applicabl... | true |
7530af86247f1871f630c2de95b05f27aefd2099 | Java | YongCheng97/Beautify | /Beautify-ws/src/java/ws/restful/StaffResource.java | UTF-8 | 3,022 | 2.265625 | 2 | [] | no_license | package ws.restful;
import ejb.session.stateless.ServiceProviderSessionBeanLocal;
import ejb.session.stateless.StaffSessionBeanLocal;
import entity.ServiceProvider;
import entity.Staff;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.naming.InitialContext;
import javax.naming.NamingExcept... | true |
5c3e5f797d352155f543374b623ebf4d2bae09ce | Java | vradhan/Hackathon | /SpringBoot-master/src/main/java/com/primefaces/bean/MachineBean.java | UTF-8 | 5,468 | 2.359375 | 2 | [] | no_license | package com.primefaces.bean;
import java.time.LocalTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.inject.Named;
import org.primefaces.model.chart.Axis;
import org.primefaces.model.chart.AxisType;
import org.primefaces.model.chart.Ba... | true |
c709ab8d5223e4570563306852b80a302bd1d7a0 | Java | zsl131/hlx | /src/main/java/com/zslin/multi/controller/AdminDiningTableController.java | UTF-8 | 4,601 | 2.078125 | 2 | [] | no_license | package com.zslin.multi.controller;
import com.zslin.basic.annotations.AdminAuth;
import com.zslin.basic.annotations.Token;
import com.zslin.basic.repository.SimplePageBuilder;
import com.zslin.basic.repository.SimpleSortBuilder;
import com.zslin.basic.tools.MyBeanUtils;
import com.zslin.basic.tools.TokenTools;
import... | true |
3669cf26d84cffb40a2ea63fa1a7109a301ea741 | Java | MKanoune/Prog2-1 | /src/de/hsa/games/fatsquirrel/Core/Entity/EntityContainer.java | UTF-8 | 3,131 | 3.0625 | 3 | [] | no_license | package de.hsa.games.fatsquirrel.Core.Entity;
import de.hsa.games.fatsquirrel.Core.Board.EntityContext;
import de.hsa.games.fatsquirrel.Core.Entity.Entities.Squirrel.MasterSquirrel;
import de.hsa.games.fatsquirrel.Core.Movement.XY;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import java.util.*;
imp... | true |
b9b984c3c5e65c9e55d5306100d61dedf47ad71d | Java | zhongxingyu/Seer | /Diff-Raw-Data/3/3_60599cdc959a1637534dd3a0004f67ab11a72046/AbstractJBTreeView/3_60599cdc959a1637534dd3a0004f67ab11a72046_AbstractJBTreeView_s.java | UTF-8 | 12,063 | 1.609375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2004, 2010 BREDEX GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | true |
92c04ccb2771b51eca85c65ca891e3b9b566b460 | Java | Julia9803/CuteProject | /CPClient/src/main/java/blservice/saleblservice/SaleUniBLService.java | UTF-8 | 750 | 1.867188 | 2 | [] | no_license | package blservice.saleblservice;
import java.util.List;
import VO.saleVO.SalesmanListVO;
import resultmessage.DataRM;
/**
* @author 李安迪
* @date 2017年12月24日
* @description 销售类单据统一的增删改查接口
*/
public interface SaleUniBLService {
public String getId();
public DataRM delete(String id);
// public Data... | true |
f126d1d4226a971425af748ceefdf28ab93b5ff7 | Java | olbucaille/Andoid_Project_server | /Server_Mobility_Project/src/com/isep/mobility/project/server/Handler/RunnablerServer.java | ISO-8859-1 | 2,342 | 2.921875 | 3 | [] | no_license | package com.isep.mobility.project.server.Handler;
import java.net.*;
import java.io.*;
import com.isep.mobility.project.server.controller.StringProvider;
//** Classe associe chaque client **
class RunnableServer implements Runnable
{
private Thread _t; // contiendra le thread du client
private Socket _s; // re... | true |
485f66fc5136377ba1941476d3f62d05fcdef4b0 | Java | lvniqi/Android_DSO | /multimeter/src/main/java/com/example/lvniqi/multimeter/LEDView.java | UTF-8 | 3,527 | 2.453125 | 2 | [] | no_license | package com.example.lvniqi.multimeter;
/**
* Created by lvniqi on 2015-05-17.
*/
import android.content.Context;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
impor... | true |
a73a25e2cc0ad111cdb79ce25e432542c994127d | Java | AxeemHaider/zeem-api | /src/main/java/org/octabyte/zeem/Queues/FollowerFeed.java | UTF-8 | 3,407 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package org.octabyte.zeem.Queues;
import com.googlecode.objectify.Key;
import org.octabyte.zeem.API.Helper.UserHelper;
import org.octabyte.zeem.Datastore.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRe... | true |
afb791279fadbe2e3c14e2b4bdd3f38638de9a14 | Java | Runningsoftware/RunnerMeter | /SportsMeter/src/main/java/com/runner/sportsmeter/activities/AccountActivity.java | UTF-8 | 11,862 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package com.runner.sportsmeter.activities;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.wifi.WifiManager;
import android.os.AsyncTask;
import android... | true |
15bba5457f9a359ee44e00508536ade0ac5135f6 | Java | Shinku443/Tap1 | /app/src/main/java/com/example/michael/tap/User.java | UTF-8 | 725 | 2.734375 | 3 | [] | no_license | package com.example.michael.tap;
/**
* Created by Nick Hauser on 2/9/2015.
*/
//TODO - this class is a stub used for testing; it likely needs improvement
public class User {
private String name;
private String id;
private String auth;
public User(String name) {
this.name = name;
}
p... | true |
327ab5ca9494d2623e25dd55b23d293e1c2ac082 | Java | iljaosintsev/Apress-Calc | /calculator/src/main/java/com/turlir/calculator/member/Operator.java | UTF-8 | 657 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.turlir.calculator.member;
import com.turlir.calculator.converter.Member;
import com.turlir.calculator.converter.Visual;
public abstract class Operator implements Member, Comparable<Operator> {
private final int mPriority;
private final Visual mVisual;
protected Operator(String token, int pri... | true |
1fd83cc6cf3e59d4d2ac87dd150519c9c3ac05d9 | Java | GekovIN/graduation | /src/main/java/ru/gekov/web/MenuDishController.java | UTF-8 | 2,993 | 2.28125 | 2 | [] | no_license | package ru.gekov.web;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframewo... | true |
81bcfabcad7dce345e0d4b6971234fdb12e73479 | Java | Aset-U/distribution-service | /src/main/java/dao/mysql/MySqlCategoryDao.java | UTF-8 | 3,201 | 2.828125 | 3 | [] | no_license | package dao.mysql;
import dao.CategoryDao;
import dao.DaoFactory;
import dao.PersistException;
import entity.Category;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.LinkedList;
import java.util.List;
public class MySqlCategoryDao extends AbstractJDBCDao<... | true |
64eef33ed028423892875f48b0cd985a5276d1e1 | Java | sasanyi/JSlender | /JSlender2.0/JSlender/src/map/MapObjects.java | UTF-8 | 1,368 | 2.640625 | 3 | [] | no_license | package map;
import characters.Position;
import characters.Slenderman;
public class MapObjects {
public Position position = new Position(0, 0);
protected int width;
protected int height;
protected String mark;
protected boolean obstace;
protected boolean seeable;
protected boolean slenderman = fals... | true |