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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
70f5c229fd9ab6e5db0edb1b6270bf8be37047b5 | Java | CoenNeefjes/project_speelveld | /app/src/main/java/nl/example/coolgame/CoolGameBoardView.java | UTF-8 | 2,704 | 2.453125 | 2 | [] | no_license | package nl.example.coolgame;
import nl.example.coolgame.objects.Wall;
import nl.saxion.act.playground.model.GameObject;
import nl.saxion.act.playground.view.GameBoardView;
import nl.example.coolgame.objects.Leaf;
import nl.example.coolgame.objects.Rock;
import nl.example.coolgame.objects.Wombat;
import nl.saxion.act.p... | true |
fa66921680c6f7cb98da775156881745b81874b1 | Java | arvinzhao88/bims | /src/main/java/com/cummins/bims/controller/MachingContorller.java | UTF-8 | 1,978 | 1.953125 | 2 | [] | no_license | package com.cummins.bims.controller;
import com.alibaba.fastjson.JSONObject;
import com.cummins.bims.dto.Issue;
import com.cummins.bims.dto.IssueExtend;
import com.cummins.bims.dto.IssueParam;
import com.cummins.bims.service.ApuCheckService;
import com.cummins.model.DatatablesView;
import com.cummins.model.SearchPara... | true |
e54f635efa08ed9f7f9d97e0426fc00b31431b37 | Java | Hardik8184/XMPP_Chat_App | /app/src/main/java/com/oozee/xmppchat/ofrestclient/entity/wrapper/PropertiesWrapper.java | UTF-8 | 683 | 2.03125 | 2 | [] | no_license | package com.oozee.xmppchat.ofrestclient.entity.wrapper;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.oozee.xmppchat.ofrestclient.entity.Property;
import java.io.Serializable;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class PropertiesWrapper implements Seria... | true |
5d67d48fa6042c79540f1854125ce707b4265c49 | Java | SzymonLepianka/AGH-DP-OAuth | /src/main/java/Group28/OAuth/Model/State/VerifyingDataFromClient.java | UTF-8 | 5,832 | 2.421875 | 2 | [] | no_license | package Group28.OAuth.Model.State;
import Group28.OAuth.DAO.DatabaseEditor;
import Group28.OAuth.DAO.IDatabaseEditor;
import Group28.OAuth.Domain.AuthCode;
import Group28.OAuth.Domain.RefreshToken;
import Group28.OAuth.token.TokenDecoder;
import io.jsonwebtoken.Claims;
import org.springframework.http.HttpStatus;
impor... | true |
5cba80f4068cc6ad4a319da2166b12789fe6a1c1 | Java | juanfem/pvDatabaseJava | /src/org/epics/pvdatabase/PVRecord.java | UTF-8 | 20,659 | 2.0625 | 2 | [
"MIT"
] | permissive | /**
* Copyright - See the COPYRIGHT that is included with this distribution.
* EPICS pvData is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
*/
package org.epics.pvdatabase;
import java.util.concurrent.locks.ReentrantLock;
import org.epics.pva... | true |
2a8d926de278f9085d21c43dbe7b3d4f9251ae5c | Java | gloriasky/HotelSystem | /Util/src/main/java/ru/senla/training/util/DateConvertors.java | UTF-8 | 1,061 | 2.859375 | 3 | [] | no_license | package ru.senla.training.util;
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.Date;
public class DateConvertors {
public static Date stringToDate(String stringDate){
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy");
... | true |
d341ddc0e5b9814f88d7e0b29839cb48c5204bec | Java | Naurzera/NaurYT | /src/main/java/com/ryuservers/Listener.java | UTF-8 | 1,140 | 2.265625 | 2 | [] | no_license | package com.ryuservers;
import com.ryuservers.utils.Menu;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.inventory.InventoryClickEvent;
... | true |
a583daf57fe113ada5600c771ca02d8f0046e837 | Java | Git-ELian/krt_ssm | /src/main/java/com/krt/sys/mapper/QuartzJobMapper.java | UTF-8 | 674 | 2.0625 | 2 | [] | no_license | package com.krt.sys.mapper;
import com.krt.common.base.BaseMapper;
import com.krt.sys.entity.QuartzJob;
import java.util.List;
import java.util.Map;
/**
* @Description: 任务调度映射层
* @author 殷帅
* @date 2016年7月22日
* @version 1.0
*/
public interface QuartzJobMapper extends BaseMapper<QuartzJob> {
/**
* 根据id查询定时任务... | true |
fe1c62c6d67b97b61206393220e25f812adf9815 | Java | kaiserswiktor/HomeWorks | /src/lesson7/Bkj.java | UTF-8 | 1,677 | 2.890625 | 3 | [] | no_license | package lesson7;
import java.util.Enumeration;
import java.util.Locale;
import java.util.ResourceBundle;
import java.io.*;
import java.util.*;
/**
* class vhoda v prilochenie
*
* @author User
*
*/
public class Bkj {
private static Scanner scanner;// variable class Scann... | true |
08ee41fd23207833e2b3d54213798187b7dbc8a7 | Java | sumitne/tic-tac-toe | /TTT.java | UTF-8 | 9,264 | 3.03125 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
public class TTT extends Frame {
Dialog d;
public static String i = "X"; //for play button
int k =0;
public static String s1="10";
public static String s2="2";
public static String s3="3";
public static String s4="4";
public static String s5 ="5";//for ta... | true |
d654bb2434d535768757c6381a1bc314175e1d58 | Java | klimas7/Learn | /src/main/java/pl/klimas7/codylity/FrogJmp.java | UTF-8 | 296 | 2.5 | 2 | [] | no_license | package pl.klimas7.codylity;
public class FrogJmp {
public int solution(int X, int Y, int D) {
int dif = Y - X;
if (dif == D) {
return 0;
}
if (dif % D == 0) {
return dif/D;
}
else
return dif/D + 1;
}
}
| true |
3b5065d80e3969ad9dd991fcde55cbfbdc67e5b1 | Java | XuLeiiii/JavaSenior | /Day2/src/com/xulei/java2/CommunicationTest.java | UTF-8 | 1,539 | 3.859375 | 4 | [] | no_license | package com.xulei.java2;
/**
* @author xl
* @Description:
* @date: 2021-04-22 22:04
* @since JDK 1.8
* 交替输出
* 涉及到的方法
* wait();一旦执行此方法,当前线程就进入阻塞状态,并释放同步监视器
* notify();会唤醒一个wait的一个线程
* notifyAll();会唤醒所有wait的线程
* 这三个方法必须使用在synchronized代码块或方法中
* 这三个方法必须是同步代码块或同步方法中的同步监视器调用
*/
public class CommunicationTes... | true |
dfa0db3da0664b1aee4cbd0b0ae4c60ed891cbe4 | Java | nurfajrinur/praktikum-pbo | /laporan6/versi1/Motor.java | UTF-8 | 787 | 2.59375 | 3 | [] | no_license | package laporan6.versi1;
import laporan6.Rangka;
public class Motor {
private Rangka rangka;
protected laporan6.Mesin mesin;
private int nomer;
protected String nama;
public Motor(){
setRangka(new Rangka());
setMesin(new laporan6.Mesin());
System.out.println("Konstruktor Motor");
}
public Motor(Strin... | true |
1909e8a592bfb87f479e4cfade53e8e0353fd313 | Java | smpaaark/leetcode-practice | /src/leetcode/interview/dp/Q53.java | UTF-8 | 692 | 3.640625 | 4 | [] | no_license | package leetcode.interview.dp;
/**
* LeetCode
* 53. Maximum Subarray
* Dynamic Programming
*/
public class Q53 {
public int maxSubArray(int[] nums) {
int max = nums[0]; // 결과로 반환할 최대값
int prevMaxSum = nums[0]; // 이전 배열 값의 최대값
for (int i = 1; i < nums.length; i++) {
... | true |
e08e411e199a34bcac57954ded4b065ed2b4f6d8 | Java | matebence/Udalosti-Android | /app/src/main/java/com/mate/bence/udalosti/Udaje/Siet/Model/Pozicia/LocationIQ.java | UTF-8 | 487 | 2.171875 | 2 | [] | no_license | package com.mate.bence.udalosti.Udaje.Siet.Model.Pozicia;
import com.google.gson.annotations.SerializedName;
public class LocationIQ {
@SerializedName("address")
private Pozicia pozicia;
public LocationIQ(Pozicia pozicia) {
this.pozicia = pozicia;
}
public Pozicia getPozicia() {
... | true |
c465e9e8dc1e9947184c2d636ba2c30e85b691fc | Java | bigshiliu/test | /com.hutong.supersdk/src/main/java/com/hutong/supersdk/sdk/modeltools/tongbutui/TBTSDKInfo.java | UTF-8 | 400 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.hutong.supersdk.sdk.modeltools.tongbutui;
public class TBTSDKInfo {
private String requestUrl;
private String appKey;
public String getAppKey() {
return appKey;
}
public void setAppKey(String appKey) {
this.appKey = appKey;
}
public String getRequestUrl() {
return requestUrl;
}
publ... | true |
f4d91bd88c81a1ed8dffd70fdc0e22c67370c264 | Java | philezwini/beta | /src/ga/Selector.java | UTF-8 | 9,458 | 2.796875 | 3 | [] | no_license | package ga;
import java.util.ArrayList;
import java.util.Random;
import Entity.Player;
import exception.GAException;
import model.DTree;
import model.Node;
public class Selector {
private static final int TEAM_SIZE = 10; // The allowed size for each team.
private static final double MUT_STEP_SIZE = 0.0001; // Muta... | true |
62477c971ca56b3f3bf6b37b7f822c29eccd8dbc | Java | homsdev/JAVA-StringsRegex | /Strings/src/com/homsdev/Solution_String_reversed.java | UTF-8 | 470 | 3.125 | 3 | [] | no_license | package com.homsdev;
import java.util.*;
public class Solution_String_reversed {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
String A=sc.next();
String reversed="";
for(int i=A.length()-1;i>=0;i--) {
... | true |
f1a88cf8f77d630e550ec7ab6beccbe281464fa2 | Java | FXalana/cenas | /Game/src/org/academiadecodigo/bootcamp11/game/Game.java | UTF-8 | 871 | 3.328125 | 3 | [] | no_license | package org.academiadecodigo.bootcamp11.game;
/**
* Created by codecadet on 19/09/17.
*/
public class Game {
private int maxNumber;
Player[] players;
public Game(int maxNumber, Player[] players) {
this.maxNumber = maxNumber;
this.players = players;
}
public int chooseNumber(int ... | true |
2bd34069e31c7d4d428b72be8e292c460ae8540c | Java | vencc/demo | /test-app-persistence/src/main/java/indi/test/domain/entity/GroupRoleEntity.java | UTF-8 | 686 | 2.171875 | 2 | [] | no_license | package indi.test.domain.entity;
import javax.persistence.*;
@Entity
@Table(name = "sys_group_role")
public class GroupRoleEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private String id;
private String groupId;
private String roleId;
public String getId() {
return ... | true |
664529f3e6cbb338c980225b67dd6903dd157edd | Java | nqobani/DVT-weather-app | /app/src/main/java/com/example/zulu/dvtweatherapp/network/interafaces/WeatherAPIGateway.java | UTF-8 | 987 | 2.25 | 2 | [] | no_license | package com.example.zulu.dvtweatherapp.network.interafaces;
import com.example.zulu.dvtweatherapp.models.CurrentWeatherResponse;
import com.example.zulu.dvtweatherapp.models.FiveDayWeatherResponse;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface WeatherAPIGat... | true |
0ae7131cde1af5e1fc25d73f72f8e7b9470b16da | Java | VascoUP/HeliUp | /core/src/com/av/game/screen/screen/ReviveScreen.java | UTF-8 | 2,079 | 2.328125 | 2 | [] | no_license | package com.av.game.screen.screen;
import com.av.game.file.Record;
import com.av.game.graphics.GameRenderer;
import com.av.game.gui.ReviveUI;
import com.av.game.input.Input;
import com.av.game.input.InputObserver;
import com.av.game.logic.Game;
import com.av.game.screen.ads.Device;
import com.av.game.screen.util.Scree... | true |
c3a3445a4ecb81884041e54549c58ff96c7a9f4a | Java | guneriu/vertx-eventbus-demo | /src/main/java/VertxDemo.java | UTF-8 | 635 | 2.546875 | 3 | [] | no_license | import io.vertx.core.Vertx;
import io.vertx.core.eventbus.EventBus;
/**
* Created by ugur on 14.01.2016.
*/
public class VertxDemo {
public static void main(String[] args) {
Vertx vertx = Vertx.vertx();
EventBus eventBus = vertx.eventBus();
eventBus.consumer("customer").handler(message... | true |
7aa4a3638e4f8a627ae685dd595e2f51353bb82e | Java | dainvinc/pfizer | /src/main/java/com/pfizer/configurations/SecurityConfiguration.java | UTF-8 | 1,407 | 1.953125 | 2 | [
"MIT"
] | permissive | package com.pfizer.configurations;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotatio... | true |
0e8690005dada00ed18d6494d295117e5655a0ac | Java | hamzajeljeli95/eventWs | /target/classes/MainPackage/Beans/AppUser.java | UTF-8 | 3,938 | 2.25 | 2 | [] | no_license | package MainPackage.Beans;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
import javax.persistence.*;
import java.util.Collection;
@Entity
public class AppUser {
private String username;
private String passwordHash;
private int isConfirmed;
priv... | true |
dbb2a31ef96ccda4c655d96aef580cf335523916 | Java | firefoxxy8/crash-lab | /src/main/java/com/tomakehurst/crashlab/Rate.java | UTF-8 | 877 | 2.953125 | 3 | [] | no_license | package com.tomakehurst.crashlab;
import java.util.concurrent.TimeUnit;
import static java.util.concurrent.TimeUnit.NANOSECONDS;
import static java.util.concurrent.TimeUnit.SECONDS;
public class Rate {
private long quantity;
private TimeUnit timeUnit;
public Rate(long quantity) {
this.quantity ... | true |
10b272d783d7ecd4cbafafc3edfd494463df163d | Java | ksandhu27/connected | /src/main/java/com/test/mc/ConnectedController.java | UTF-8 | 1,707 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.test.mc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import... | true |
ddb4a3ae0a8cd4e7a2bddb0b630988a2acf57d64 | Java | VishalS047/SpringCore | /java/com/spring/init/InitLifeCycle.java | UTF-8 | 569 | 2.71875 | 3 | [] | no_license | package com.spring.init;
public class InitLifeCycle
{
private String name;
@Override
public String toString() {
return "InitLifeCycle [name=" + name + "]";
}
public String getName() {
return name;
}
public void setName(String name) {
System.out.println("Setting name");
this.name = name;
}
public ... | true |
6c5d51ff33c2d9f13fdb199e13d246f274841d4b | Java | diegooliveira/SimpleZookeeper | /src/edu/zookeeper/SimpleClient.java | UTF-8 | 583 | 2.875 | 3 | [] | no_license | package edu.zookeeper;
import java.util.List;
import org.apache.zookeeper.*;
public class SimpleClient {
public static void main(String args[]) {
new SimpleClient("localhost:2181");
}
public SimpleClient(String endereco) {
try {
ZooKeeper zk = new ZooKeeper(endereco, 10000, null);
List<String> filhos =... | true |
afd32a26f401758302c693f89d1dafdfa859bae8 | Java | XieQinghua/Beeway | /beeway/src/main/java/com/thvc/beeway/bean/ShowShareBean.java | UTF-8 | 2,849 | 2.40625 | 2 | [] | no_license | package com.thvc.beeway.bean;
/**
* com.thvc.beeway.bean
* 创建日期: 2015/9/16.
* 版权:天合融创
* 作者:喻亚龙.
* 版本号:1.0.
* 修改历史:
*/
public class ShowShareBean {
/**
* data : {"imageurl":"http://7xj45w.com1.z0.glb.clouddn.com/avatar/BDB93022-7712-40D6-936C-5B8B2ADEA1C6+1442311360.jpg","description":"TT:冬季三环","defaul... | true |
379340419c57095c3fc8f81260f2359b4fd648e8 | Java | redsanji/Gemgame | /core/src/com/sak/gdx/game/WorldRenderer.java | UTF-8 | 1,250 | 2.59375 | 3 | [] | no_license | package com.sak.gdx.game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.math.Vector2;
public class WorldRenderer {
pr... | true |
074956f3a9142a13d730feaa0842f471ca8e4008 | Java | Salmane719/data-Structures | /Algorithmic-problems-for-data-structures/SplayTreeMap.java | UTF-8 | 3,340 | 3.53125 | 4 | [] | no_license | /**
* An implementation of a sorted map using a splay tree.
* <p>
* All Map ADT and SortedMap ADT functions are inherited from TreeMap.
* <p>
* The purpose of this class is to override the template implementations of rebalanceInsert,
* rebalanceDelete and rebalanceAccess methods from TreeMap, in order to splay th... | true |
ba77fd8e041f8e9f229adf1d72c854a82897ef75 | Java | HEEYEOP/HEEYEOP.JAVA | /Project/src/Day6/Day63.java | UTF-8 | 1,174 | 3.765625 | 4 | [] | no_license | package Day6;
public class Day63 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int num1 = 7, num2 = 9;
int gcdNum = 0;
gcdNum = gcd(num1, num2);
System.out.println(gcdNum);
System.out.println(isCoprime(num1, num2));
if(isCoprime(num1, num2)){
Sys... | true |
b92d2e8b3dbafb85e91365f364a5d24c2e35f706 | Java | Apxdono/kmautomation | /src/main/java/com/kmware/automation/elements/checkbox/PFCheckBox.java | UTF-8 | 1,116 | 2.09375 | 2 | [] | no_license | package com.kmware.automation.elements.checkbox;
import org.openqa.selenium.WebElement;
import com.kmware.automation.elements.base.Element;
import com.kmware.automation.elements.base.JQElement;
import com.kmware.automation.jquery.jQuery;
import com.kmware.automation.jquery.jQueryFactory;
@JQElement(
... | true |
8d467d5b5599f6e778440a755117de7ecb77d044 | Java | caoweizhao/PersonHealthRecord | /app/src/main/java/com/example/administrator/personhealthrecord/mvp/reserve_order/ReserveOrderModelImpl.java | UTF-8 | 1,905 | 2.203125 | 2 | [] | no_license | package com.example.administrator.personhealthrecord.mvp.reserve_order;
import com.example.administrator.personhealthrecord.bean.AppointmentBean;
import com.example.administrator.personhealthrecord.bean.ReserveOrderBean;
import com.example.administrator.personhealthrecord.bean.ResultUtilOfHealthyOrderBean;
import com.... | true |
289977424983d1c036ae2adc5822ed5b5c80cea2 | Java | Strifer/JavaCourse | /Homework/12/trazilica/src/main/java/hr/fer/zemris/java/student0036474052/hw12/Console.java | UTF-8 | 3,271 | 3.203125 | 3 | [] | no_license | package hr.fer.zemris.java.student0036474052.hw12;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.TreeMap;
import java.util.Map.Ent... | true |
39b38f2b3996b93b0eb5174b9e194f5da9fa5bce | Java | sahibul-nf/sentiment-analysis | /src/main/java/sentiment/bolts/PositiveBolt.java | UTF-8 | 2,712 | 2.671875 | 3 | [] | no_license | package sentiment.bolts;
import backtype.storm.topology.BasicOutputCollector;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseBasicBolt;
import backtype.storm.tuple.Fields;
import backtype.storm.tuple.Tuple;
import backtype.storm.tuple.Values;
import sentiment.entitys.UserR... | true |
015a372699a00048fc8e9e9c02bd9c0de632c76b | Java | JonathanABarnett/just_eat_it | /app/src/main/java/com/alaythiaproductions/justeatit/model/BestDealModel.java | UTF-8 | 916 | 2.453125 | 2 | [] | no_license | package com.alaythiaproductions.justeatit.model;
public class BestDealModel {
private String menuId, foodId, name, image;
public BestDealModel() {}
public BestDealModel(String menuId, String foodId, String name, String image) {
this.menuId = menuId;
this.foodId = foodId;
this.nam... | true |
eb8e4cb7738a24d55303a6ad741ea7b8cfad2c18 | Java | niu56798405/net | /src/main/java/com/x/net/codec/Message.java | UTF-8 | 11,830 | 2.5625 | 3 | [] | no_license | package com.x.net.codec;
import io.netty.buffer.ByteBuf;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.function.Consumer;
import com.google.protobuf.MessageLite;
import com.x.tools.Strings;
import com.x.util.ProtostuffCodec;
/**
* 前后端通信消 消息头+消息体,... | true |
b6fa9a09f9e0dbfc74a83d7d2b3a9a17ce2eef27 | Java | wang-shun/groundwork-trunk | /groundwork-monitor-framework/core/src/main/org/jboss/portal/test/core/Utils.java | UTF-8 | 3,208 | 1.71875 | 2 | [] | no_license | /******************************************************************************
* JBoss, a division of Red Hat *
* Copyright 2006, Red Hat Middleware, LLC, and individual *
* contributors as indicated by the @authors tag. See the *
... | true |
93fa17562f85f3c34334dfc5953c2d312b8f4605 | Java | Eturial/Rfid-Service-Backend | /src/main/java/com/server/mapper/EquipmentMapper.java | UTF-8 | 283 | 1.648438 | 2 | [] | no_license | package com.server.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.server.pojo.Equipment;
import org.apache.ibatis.annotations.Mapper;
/**
* @Entity com.server.pojo.Equipment
*/
@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {
}
| true |
19c5e2dae7fee2daa4130c580c8386f5405402d2 | Java | fengmingli/awesome-java | /springboot/springboot-redis/src/test/java/com/lifengming/redis/lock/RedisLockTest.java | UTF-8 | 3,057 | 2.546875 | 3 | [] | no_license | package com.lifengming.redis.lock;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.redisson.Redisson;
import org.redisson.RedissonRedLock;
import org.redisson.api.RLock;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import... | true |
6fea2b7943bb177cb0bd08f13a1edfce99b5740b | Java | airpoet/bigdata | /Storm_Project/StormCalllogDemo/src/main/java/com/rox/storm/wordcount/CountBolt.java | UTF-8 | 1,758 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.rox.storm.wordcount;
import com.rox.storm.util.Util;
import org.apache.storm.task.OutputCollector;
import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.IRichBolt;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.tuple.Tuple;
import java.util.HashMap;... | true |
41b1268af7b89eb21e310dbc980d8de9cd355c8a | Java | aruskembaeva/finalsdp_project | /final/src/adapter/TestAdapter.java | UTF-8 | 799 | 3.3125 | 3 | [] | no_license | package adapter;
/*
import java.util.Scanner;
public class TestAdapter {
public static void main(String[] args) {
deliveryChoose();
}
public static void deliveryChoose(){
PickUp pickUp = new PickUp();
Courier courier = new Courier();
Delivery pickUpAdapter =... | true |
8dc921d9a92a6a03b94c6711840ee4b9cbf5a2eb | Java | jpreinosom/salesTax | /salesTax/src/main/java/salesTax/AplicarImpuesto.java | UTF-8 | 192 | 1.617188 | 2 | [] | no_license | package salesTax;
import java.util.Collection;
public interface AplicarImpuesto {
Collection<TaxEntry> apply(ProductoEntry entry);
ProductoEntry UpdateAmount(ProductoEntry entry);
} | true |
01a018f4ba648bece462f679dd033ab13d04b7bd | Java | Yzhaoqi/MusicPlayer_Android | /app/src/main/java/com/yzq/android/musicplayer/MainActivity.java | UTF-8 | 12,015 | 1.789063 | 2 | [] | no_license | package com.yzq.android.musicplayer;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.pm.PackageManager;
import android.net.Uri;
impo... | true |
9aa6ccedf2a74dc8ce674349ad3f59ad18ea5381 | Java | OlfOlak/battlemage-arena-3.0 | /src/olafolak/battlemagearena30/models/hud/NextWaveCounter.java | UTF-8 | 2,214 | 3.484375 | 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 olafolak.battlemagearena30.models.hud;
import java.awt.Font;
import java.awt.Graphics;
import olafolak.battlemagearen... | true |
9ef0b24fab125011e7aa15f8f4685110fcbb927a | Java | apache/phoenix | /phoenix-core/src/it/java/org/apache/phoenix/end2end/LikeExpressionIT.java | UTF-8 | 18,864 | 2.328125 | 2 | [
"MIT",
"OFL-1.1",
"BSD-3-Clause",
"ISC",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
880fdef384646d0539f14abd05139d12a9e6a4a7 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_c22c5b7f81f30665a08cec8b24809b218ad68cd6/RcDatabaseDummifier/2_c22c5b7f81f30665a08cec8b24809b218ad68cd6_RcDatabaseDummifier_s.java | UTF-8 | 7,220 | 2.171875 | 2 | [] | no_license | package net.ripe.db.rcdummifier;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import net.ripe.db.whois.common.dao.jdbc.JdbcStreamingHelper;
import net.ripe.db.whois.common.jdbc.SimpleDataSourceFactory;
import net.ripe.db.whois.common.rpsl.DummifierCurrent;
import net.ripe.db.whois.common.rpsl.R... | true |
d0879e75505dac1eae6477a4948efdfb661cc87f | Java | stashvala/RSO | /user/user-business-logic/src/main/java/streaming/user/cdi/configuration/RestProperties.java | UTF-8 | 631 | 1.859375 | 2 | [] | no_license | package streaming.user.cdi.configuration;
import com.kumuluz.ee.configuration.cdi.ConfigBundle;
import com.kumuluz.ee.configuration.cdi.ConfigValue;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
@ConfigBundle("rest-properties")
public class RestProperties {
@ConfigValue(value = "external... | true |
0de27fb86d9507df62b35855cf02c38ebea77ddc | Java | Centennial-College/COMP228-F2016-Assignment5 | /src/controllers/PlayerController.java | UTF-8 | 6,841 | 3.0625 | 3 | [] | no_license | package controllers;
import java.sql.SQLException;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import models.Player;
/**
* @file PlayerController.java
* @author Kevin Ma | #: 300867968
* @date December 11, 2016
* @version 1.1.0 - implemented deletion confirmation; updated d... | true |
fa647491b8359a9c425d02ac9eecc18d63aa32ba | Java | YANG-NJUST/shortVideoApp | /app/src/main/java/com/example/shortvide0_demo1/MenuActivity.java | UTF-8 | 8,230 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.shortvide0_demo1;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android.widget.Toast;
import androidx.annotation.Nullable;
im... | true |
4e4a6a403b389b7e0450f9931f0b4b8b9f1dc43b | Java | nehalsalah/servicesExchange | /app/src/main/java/com/serviceexchange/www/serviceexchangeandroid/utils/BasePresenter.java | UTF-8 | 440 | 1.554688 | 2 | [] | no_license | package com.serviceexchange.www.serviceexchangeandroid.utils;
import com.serviceexchange.www.serviceexchangeandroid.loginmodule.CustomEvent;
import com.serviceexchange.www.serviceexchangeandroid.manageservicesfragment.activetransactiondetailactivity.TimelineMVP;
import org.greenrobot.eventbus.Subscribe;
public inter... | true |
70e2b876226f076c4e2350a1a2a0c3b525be14dd | Java | sontekliu/datastruct-core | /src/main/java/com/javaliu/collection/array/Array.java | UTF-8 | 5,776 | 3.765625 | 4 | [] | no_license | package com.javaliu.collection.array;
/**
* 描 述:数组
* 类 名:Array
* 作 者:javaliu
* 创 建:2019年09月18日 10:56:00
* 版 本:V1.0.0
*/
public class Array<E> {
private E[] data;
private int size;
/**
* 构造数组对象
*
* @param capacity 初始化时的容量
*/
public Array(int capacity) {
data = (E[]) n... | true |
8728725ee51167e7da2fd22cf2430757b3220fe7 | Java | lesterhsu0205/Angular1x | /angular1x-core/src/main/java/com/lester/core/model/UploadFileInfo.java | UTF-8 | 1,303 | 2.375 | 2 | [] | no_license | package com.lester.core.model;
import java.io.Serializable;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
public class UploadFileInfo implements Serializable{
private CommonsMultipartFile file;
private Long ticketId;
private Long fileType;
private String remark;
public static Result... | true |
ab8c4c1651dce660f73ea3fa49f190b95c45da58 | Java | nilini/spring | /src/main/java/collection/Chinese.java | UTF-8 | 1,592 | 2.609375 | 3 | [] | no_license | package collection;
import java.util.*;
public class Chinese {
private List<String> schools;
private Map scores;
private Map<String, Axe> phaseAxes;
private Properties health;
private Set axes;
private String[] books;
public Chinese(){
System.out.println("Spring实例化主调bean: Chinese实... | true |
9e247a2a823adb5dc7ded85fd14bf643cc9e61ed | Java | Downeys/Stephen_Downey_JavaS1 | /StephenDowneyU1Capstone/src/test/java/com/company/StephenDowneyU1Capstone/daos/GameDaoJdbcTemplateImplTest.java | UTF-8 | 13,726 | 2.609375 | 3 | [] | no_license | package com.company.StephenDowneyU1Capstone.daos;
import com.company.StephenDowneyU1Capstone.exceptions.JdbcOperationFailedException;
import com.company.StephenDowneyU1Capstone.models.Game;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotat... | true |
7e171c445039d9d96e8bc8ee03925079c3d958eb | Java | erikalmeida/prime-mobile | /Prime/app/src/main/java/com/si/servialdana/prime/sql/modelo/Session.java | UTF-8 | 699 | 2.171875 | 2 | [] | no_license | package com.si.servialdana.prime.sql.modelo;
/*
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.preference.Preference;
import android.content.Context;
public class Session {
private SharedPreferences prefs;
public Session(Context cntx) {
// TODO ... | true |
7266af972d277f34081708de319ac5490855ac17 | Java | qiuchili/ggnn_graph_classification | /program_data/JavaProgramData/103/224.java | UTF-8 | 704 | 2.765625 | 3 | [
"MIT"
] | permissive | package <missing>;
public class GlobalMembers
{
public static void Main(String[] args)
{
int i;
int j;
int n = 0;
final String a = "";
a = new Scanner(System.in).nextLine();
for (i = 0;i < 1000;i++)
{
if (a.charAt(i) == '\0')
{
break;
}
if (a.charAt(i) >= 'a' && a.charAt(i) <= 'z'... | true |
4574be05f723e43d29f0ffbf47108cbcbe67d2fc | Java | SongSieun/TIL-Android-Java | /ProgressBar_Loading/app/src/main/java/com/example/dsm2016/progressbar_loading/MainActivity.java | UTF-8 | 939 | 2.234375 | 2 | [] | no_license | package com.example.dsm2016.progressbar_loading;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;
public class MainActivity extends AppCompatActivity {
private Handler... | true |
6e2a7d1a854d669b407fe000bbde744fcf35cf8f | Java | occipita/kindx1 | /src/test/java/kind/x1/interpreter/types/ConstraintTest.java | UTF-8 | 952 | 2.109375 | 2 | [] | no_license | package kind.x1.interpreter.types;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
import kind.x1.misc.SID;
import kind.x1.interpreter.*;
import kind.x1.interpreter.test.*;
public class ConstraintTest
{
@Test
public void canResolveAndCheckRelations ()
{
TypeParameterContext tpc... | true |
9d14876150cd89a61f633b15e07daaf6af26733b | Java | romellfudi/FudiAnnotation | /app/src/main/java/com/romellfudi/fudi_annotation/sample/child_pk/DatosPersonalesFragment.java | UTF-8 | 4,618 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.romellfudi.fudi_annotation.sample.child_pk;
import android.app.DatePickerDialog;
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.ArrayAdapter;
import android.widget.DatePicke... | true |
c20ba37709d5c73a012e12f64460e1be1a868a25 | Java | litunt/testRepo | /src/main/java/hello/controller/HelloController.java | UTF-8 | 1,445 | 2.859375 | 3 | [] | no_license | package hello.controller;
import hello.exceptions.NotFoundException;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("/messages")
public class HelloController {
private int counte... | true |
279e760105108c77d1fe3736e4aec2eb786b6449 | Java | jpittmanpc/JasonRocks | /app/src/main/java/thisdomain/jasonrocks/activities/FeedActivity.java | UTF-8 | 6,151 | 2.1875 | 2 | [] | no_license | package thisdomain.jasonrocks.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.provider.Settings;
import android.app.Activity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import and... | true |
c11c9ff80ececdcea9277993f837617f5f40d315 | Java | rase-/location-awareness | /src/main/java/acs/fluffy/service/PlaceService.java | UTF-8 | 1,429 | 2.859375 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package acs.fluffy.service;
import java.util.List;
import acs.fluffy.form.MeasurementForm;
import acs.fluffy.domain.Place;
/**
* Defines basic operations of Place objects
* @author tonykovanen
*/
public interface Pl... | true |
b61b1740373a6a4297d0fbbf34725f297f0b0b3a | Java | yony228/image-web | /src/main/java/com/web/image/dao/impl/ImageTypesDaoImpl.java | UTF-8 | 1,276 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.web.image.dao.impl;
import com.web.image.dao.IImageTypesDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.*;
import org.springframework.stereot... | true |
ec2c18f7bacb5cf1bba94d4efb0b06ca63a8bc05 | Java | NCIP/c3pr | /codebase/projects/core/src/java/edu/duke/cabig/c3pr/domain/StudySubjectConsentVersion.java | UTF-8 | 6,092 | 1.898438 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
**********************************************... | true |
083d77998c4dd64aed9a5c8dc78b85aa581176ce | Java | piece-the-world/inspect | /Inspect/app/src/main/java/com/growingio_rewriter/a/a/d/be.java | UTF-8 | 2,333 | 1.867188 | 2 | [] | no_license | /*
* Decompiled with CFR 0_115.
*/
package com.growingio.a.a.d;
import com.growingio.a.a.b.aq;
import com.growingio.a.a.d.ba;
import com.growingio.a.a.d.bb;
import com.growingio.a.a.d.hG;
import com.growingio.a.a.d.hT;
import com.growingio.a.a.d.id;
import java.lang.ref.ReferenceQueue;
import java.util.concurrent.Ex... | true |
89a572156b5b9e1d85eacd0205cc1e924a5632d6 | Java | Mo-AG/xinlizixun_app | /pao_user/Framework/src/main/java/com/framework/utils/NetworkUtils.java | UTF-8 | 4,505 | 2.4375 | 2 | [] | no_license | package com.framework.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* 网络工具类
*
* @author Administrator
*/
public class NetworkUtils {
/**
* 判断网络连接是否开启
*/
public static boolean isNetwo... | true |
8c37f92558568876b0bb27051b5da98db5e1b4be | Java | anita-martin5703/BeerBuddy | /app/src/main/java/edu/cnm/deepdive/beer_buddy/service/UntappdService.java | UTF-8 | 2,293 | 2.203125 | 2 | [] | no_license | /**
* Copyright 2019 Anita Martin. All rights reserved.
*/
package edu.cnm.deepdive.beer_buddy.service;
import edu.cnm.deepdive.beer_buddy.BuildConfig;
import edu.cnm.deepdive.beer_buddy.model.pojo.BarSearchResponse;
import edu.cnm.deepdive.beer_buddy.model.pojo.BeerSearchResponse;
import io.reactivex.Single;
import... | true |
0fa843fcb417ea7c5a72736a774871813ad78771 | Java | livmettehamre/azure_ovelser | /src/main/java/com/example/azure_continuosintegration_ovelser/AzureContinuosIntegrationOvelserApplication.java | UTF-8 | 935 | 2.046875 | 2 | [] | no_license | package com.example.azure_continuosintegration_ovelser;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframew... | true |
e16fc8704a5c630e432ff82add435338227e4ea5 | Java | vkscorpio3/happy | /callCenter/castoramaCommon/src/com/castorama/i18n/I18nTools.java | UTF-8 | 2,726 | 2.828125 | 3 | [] | no_license | package com.castorama.i18n;
import atg.core.util.ResourceUtils;
import atg.droplet.DropletException;
/**
* @author Florte Jérémy (jeremy.florte@logicacmg.com)
*
* @version 0.1
*
* Description :
*
* Classe d'utilitaires pour l'internationalisation
*/
public class I18nTools
{
/*
* ------------------... | true |
e6c20e7de5e70e0212561ae29e331a9b8e780e2b | Java | bryazginkos/jax-rs-test | /controller/src/main/java/ru/kosdev/train/jaxrs/controller/impl/ContactControllerImpl.java | UTF-8 | 5,057 | 2.171875 | 2 | [] | no_license | package ru.kosdev.train.jaxrs.controller.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import ru.kosdev.train.jaxrs.common.MessageCode;
... | true |
885c474015d164d2d7affe862e9897df4bba588e | Java | wildfly/wildfly-common | /src/main/java/org/wildfly/common/lock/ExtendedLock.java | UTF-8 | 1,486 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /*
* JBoss, Home of Professional Open Source.
* Copyright 2018 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | true |
a64b6fdf49934634e2ababa783dead4dbc1b412a | Java | iservport/helianto | /helianto-core/src/main/java/org/helianto/core/domain/PersonalAddress.java | UTF-8 | 3,176 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package org.helianto.core.domain;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;
import org.helianto.core.domain.enums.AddressType;
import org.helianto.core.internal.AbstractAddress;
... | true |
38ff94e45c8b6ddaa207826e5be54a8955ed4842 | Java | Ethrian/AriamisWizardy | /src/main/java/electroblob/wizardry/spell/Heal.java | UTF-8 | 2,528 | 2.625 | 3 | [] | no_license | package electroblob.wizardry.spell;
import electroblob.wizardry.EnumElement;
import electroblob.wizardry.EnumParticleType;
import electroblob.wizardry.EnumSpellType;
import electroblob.wizardry.EnumTier;
import electroblob.wizardry.Wizardry;
import electroblob.wizardry.WizardryUtilities;
import net.minecraft.entity.En... | true |
17c9aec54f2772e2500940309d27ff437465e06f | Java | TimeConqueror/Time-Core | /src/test/java/ru/timeconqueror/timecore/animation_example/block_example/registry/ATileRegistry.java | UTF-8 | 1,117 | 2.078125 | 2 | [] | no_license | package ru.timeconqueror.timecore.animation_example.block_example.registry;
import net.minecraft.tileentity.TileEntityType;
import ru.timeconqueror.timecore.TimeCore;
import ru.timeconqueror.timecore.animation_example.block_example.block.tile.TileHeatCube;
import ru.timeconqueror.timecore.animation_example.block_examp... | true |
ac8b3bc0733b16d2f99030f157d9f132a78f22c8 | Java | webserg/algorithmsDesignAndAnalysis | /src/com/gmail/webserg/algorithmsAndAnalysis/v1/Combination.java | UTF-8 | 2,452 | 3.390625 | 3 | [] | no_license | package com.gmail.webserg.algorithmsAndAnalysis.v1;
import java.util.Iterator;
/**
* Created by webserg on 08.07.2014.
*/
public class Combination implements Iterable<int[]> {
protected final int n;
protected final int r;
protected final long size;
public Combination(final int n, final int r) {
... | true |
56ea99f9658c5cff7998275623cc054eb556bdad | Java | LornartheBreton/StandEncyclopedia | /src/StandAddController.java | UTF-8 | 2,670 | 2.71875 | 3 | [] | no_license | import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Scanner;
/*
* Copyright Hector G. T. Torres 191589
* 12/2... | true |
294c8e404fddeaeaa391e36ae9aa240710e42021 | Java | FTC11313/ftc_app | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/StriaghtAuto.java | UTF-8 | 1,704 | 2.53125 | 3 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorController;
import com.qualcomm.robotcore.hardware.DcMotorSimple;... | true |
16f6aaf3b26d9f071f7827437866e10aa38afae9 | Java | FadwaSoti/API_Back_End | /src/main/java/com/ubo/repository/CandidatRepository.java | UTF-8 | 211 | 1.53125 | 2 | [] | no_license | package com.ubo.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.ubo.modele.Candidat;
public interface CandidatRepository extends JpaRepository<Candidat, String>{
}
| true |
836dcad7845a025f61aaa2ff378b71b5d4a3288a | Java | yuzhixingdao/framework-ssm | /aac-framework-persistence/src/main/java/com/aac/framework/persistence/impl/BaseMybatisDaoImpl.java | UTF-8 | 6,352 | 2.1875 | 2 | [] | no_license | package com.aac.framework.persistence.impl;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.ibatis.session.RowBounds;
import org.mybatis.spring.SqlSessionTemplate;
import com.aac.framework.dict.PageSt... | true |
c13e5e15fb62283bcaf34a31ca311db458a4ab17 | Java | kangec/GoF | /src/experiment/test_5/Client.java | UTF-8 | 298 | 2.15625 | 2 | [
"MIT"
] | permissive | package experiment.test_5;
import java.util.List;
public class Client {
public static void main(String[] args) {
Plate plate = new Plate();
List<Object> list = XMLUtil.getBean();
list.forEach(element -> plate.add((MyElement) element));
plate.eat();
}
}
| true |
952dd878dde4cd6936d68da35664699469ba5450 | Java | IsaakKrut/springmvc-deliveryapp | /deliveryapp-data/src/main/java/com/isaakkrut/deliveryapp/data/services/jpa/UserJpaService.java | UTF-8 | 1,872 | 2.46875 | 2 | [] | no_license | package com.isaakkrut.deliveryapp.data.services.jpa;
import com.isaakkrut.deliveryapp.data.domain.Login;
import com.isaakkrut.deliveryapp.data.domain.User;
import com.isaakkrut.deliveryapp.data.repository.UserRepository;
import com.isaakkrut.deliveryapp.data.services.UserService;
import org.springframework.stereotype.... | true |
1b277579456af2e11d9c5a576b2e5eb030c073ff | Java | AndriiKolomiiets/ua.training.foodtrackingsystem | /src/main/java/ua/training/finalproject/foodtrackingsystem/model/service/util/CheckTrackDateService.java | UTF-8 | 977 | 2.328125 | 2 | [] | no_license | package ua.training.finalproject.foodtrackingsystem.model.service.util;
import ua.training.finalproject.foodtrackingsystem.model.dao.DaoFactory;
import ua.training.finalproject.foodtrackingsystem.model.dao.JdbcDaoFactory;
import ua.training.finalproject.foodtrackingsystem.model.dao.dao.DayMealDao;
import ua.training.f... | true |
5aab1093d60bc18913d7a175bc3555d3dab79ebd | Java | dehasi/tsys | /client/src/main/Java/classes/data/statuses/TruckStatus.java | UTF-8 | 419 | 2.734375 | 3 | [] | no_license | package classes.data.statuses;
/**
* Created by Rafa on 20.06.2015.
*/
public enum TruckStatus {
OK(0), DEFECTIVE(1);
TruckStatus(long l) {
}
public static TruckStatus fromInt(int x) {
switch(x) {
case 0:
return TruckStatus.OK;
case 1:
... | true |
2008c1f227aacc855f3c84efd0da4c557b1b5a7a | Java | zigmoi/ketchup-core | /src/main/java/org/zigmoi/ketchup/application/dtos/DeploymentStatus.java | UTF-8 | 391 | 1.671875 | 2 | [
"MIT"
] | permissive | package org.zigmoi.ketchup.application.dtos;
import lombok.Data;
@Data
public class DeploymentStatus {
private int requiredReplicas;
private int availableReplicas;
private int readyReplicas;
private int uptoDateReplicas;
private String revisionVersionNo;
private String status; //Success|In-Pro... | true |
d5d65c330c5f1509efa2ea48f5a9032cb4bfe66e | Java | weikog/leyou-advance | /ly-user/src/main/java/com/leyou/user/service/UserInfoService.java | UTF-8 | 6,087 | 2.3125 | 2 | [] | no_license | package com.leyou.user.service;
import com.leyou.common.exception.pojo.ExceptionEnum;
import com.leyou.common.exception.pojo.LyException;
import com.leyou.user.config.JwtProperties;
import com.leyou.user.entity.UserInfo;
import com.leyou.user.mapper.AreaMapper;
import com.leyou.user.mapper.CityMapper;
import com.leyo... | true |
722c645953646515ea979ef1fadade97843bba62 | Java | Esieve/myblog | /myblog-mt/src/main/java/com/esieve/category/dao/CategoryDao.java | UTF-8 | 925 | 2.015625 | 2 | [] | no_license | package com.esieve.category.dao;
import com.esieve.category.bean.Category;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* Created by 77239 on 2017/3/31/00... | true |
c8416b9bc23c9dcae33e7e0dfbf3dc51da34342f | Java | kristofferous/Zray | /src/main/java/com/vorlus/zray/Listeners/Commands/ZrayCommand.java | UTF-8 | 1,200 | 2.125 | 2 | [] | no_license | package com.vorlus.zray.Listeners.Commands;
import com.vorlus.zray.Util.Files.FileBasics;
import net.minecraft.server.level.WorldServer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.craft... | true |
c1ba0710694a8ce8e0926f336a7eefc90fca5e08 | Java | seregaizsbera/contacts | /ContactsEJB/ejbModule/su/sergey/contacts/util/xml/ObjectToXmlConverter.java | UTF-8 | 5,140 | 2.640625 | 3 | [] | no_license | package su.sergey.contacts.util.xml;
import java.beans.BeanInfo;
import java.beans.IntrospectionException;
import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.text.DateForm... | true |
ab0ae53d47604ccbf013851b0e0736d2e2fcc3e7 | Java | newyuliuyu/liuyu-flink | /src/main/java/liuyu/similar/simbash/support/bt/BTree.java | UTF-8 | 1,128 | 2.5625 | 3 | [] | no_license | package liuyu.similar.simbash.support.bt;
import liuyu.similar.simbash.support.AbstractNode;
import java.math.BigInteger;
/**
* ClassName: BTree <br/>
* Function: ADD FUNCTION. <br/>
* Reason: ADD REASON(可选). <br/>
* date: 18-9-4 下午5:32 <br/>
*
* @author liuyu
* @version v1.0
* @since JDK 1.7+
*/
public i... | true |
646b78701e7cc3f5ef202c4763463e30e53e554c | Java | BelumBikin/PBO | /Enkapsulasi/src/Latihan3/UjiSiswa.java | UTF-8 | 655 | 2.59375 | 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 Latihan3;
/**
*
* @author MOKLET-2
*/
public class UjiSiswa {
public static void main (String args[]) {
... | true |
9fc80dacb96d774f0452fb0161cfac3e258d8e35 | Java | eumji025/javapaser-rest-doc | /apigcc-core/src/main/java/com/apigcc/core/common/description/TypeDescription.java | UTF-8 | 2,412 | 2.40625 | 2 | [
"MIT"
] | permissive | package com.apigcc.core.common.description;
import com.apigcc.core.common.helper.StringHelper;
import com.apigcc.core.schema.Row;
import com.google.common.collect.Lists;
import lombok.Getter;
import lombok.Setter;
import java.util.Collection;
@Setter
@Getter
public abstract class TypeDescription {
protected Str... | true |
9d7d1306b666edb69e6b4452480242cd1dce0b7e | Java | Giahong/Java-practice | /疯狂java习题/src/课后习题/第8章/Question2.java | UTF-8 | 491 | 2.90625 | 3 | [] | no_license | package 课后习题.第8章;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
public class Question2 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = 0;
Set<String> stringSet = new HashSet<>();
while (count < 10){
... | true |
8358f28d1cd7231011bc60a523c501cbd1fcfa40 | Java | LeonekOne/ksiazka-wzorce-projektowe-rusz-glowa | /src/main/java/rozdzial04/Pizza.java | UTF-8 | 1,532 | 3.25 | 3 | [] | no_license | package rozdzial04;
import java.util.ArrayList;
import java.util.Arrays;
public abstract class Pizza {
String nazwa;
Ciasto ciasto;
Sos sos;
Warzywa warzywa[];
Ser ser;
Pepperoni pepperoni;
Malze malze;
// ArrayList dodatki = new ArrayList();
// void przygotowanie() {
// Sy... | true |
c14a37160ac6b53ebb354cdaceb0d81126c03e14 | Java | kronosengineer2/RESTfulWebService | /src/main/java/org/peddi/learning/messenger/messages/MessageResource.java | UTF-8 | 1,704 | 2.734375 | 3 | [] | no_license | package org.peddi.learning.messenger.messages;
import java.util.List;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
... | true |
fb232991f50629e6f0d4f225412817ac7ca4d8f2 | Java | CC18717397391/JavaEE | /servlet-demo/src/util/CookieUtil.java | GB18030 | 1,662 | 2.9375 | 3 | [] | no_license | package util;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
* ࣬ṩӣɾѯCookieһЩ
*/
public class CookieUtil {
private static int age... | true |
74c9bb33ff86f22b8755a97c31de9ccedfff3210 | Java | MiriamAG/ejercicios-ud2-funciones | /10_morse/Morse/src/com/jaureguialzo/Main.java | UTF-8 | 1,724 | 3.328125 | 3 | [
"Apache-2.0"
] | permissive | package com.jaureguialzo;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static String morse(String cadena) {
String r = "";
int longitud = cadena.length();
for (int i = 0; i < longitud; i++) {
char ... | true |
c575da9d1b30a9459a6205e67f7236d28e0c0cdc | Java | josauder/AOP_incubator_beam | /runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/AccumulatorSingleton.java | UTF-8 | 2,051 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |