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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f048c0a947c9341a6c274b8816830f02560ee396 | Java | powbot/api | /src/main/java/org/powerbot/bot/cache/AbstractCacheWorker.java | UTF-8 | 501 | 1.757813 | 2 | [] | no_license | package org.powerbot.bot.cache;
import org.powerbot.script.rt4.*;
public abstract class AbstractCacheWorker {
public abstract Block getBlock(final int tree_index, final int block);
public abstract CacheObjectConfig.Loader objectConfigLoader();
public abstract CacheNpcConfig.Loader npcConfigLoader();
public ab... | true |
1c1faf717d86f08f01c078381d945561a64118d1 | Java | moutainhigh/credit-master | /credit-service/src/main/java/com/zdmoney/credit/fee/service/LoanFeeAmountChangeServiceImpl.java | UTF-8 | 1,492 | 2 | 2 | [] | no_license | package com.zdmoney.credit.fee.service;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.zdmoney.c... | true |
fdf50c5ebba58f58362fe4631d37ec25fd7cbd38 | Java | CresciTeam/cresci-api | /server/crescibr/src/main/java/br/com/cresci/crescibr/model/CompraModel.java | UTF-8 | 985 | 1.976563 | 2 | [] | no_license | package br.com.cresci.crescibr.model;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import ... | true |
a00d58d77cb62f466601c3f38c02d86935e35d88 | Java | NafizMahmud/Travel_Companion | /src/com/example/pgooglemap/All.java | UTF-8 | 3,494 | 1.960938 | 2 | [] | no_license | package com.example.pgooglemap;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Image... | true |
f613d12436e8b173712f104bf75e9dc0baebaaa0 | Java | thanhnd/chat-app | /app/src/main/java/com/chatapp/service/models/response/CountryModel.java | UTF-8 | 1,167 | 2.140625 | 2 | [] | no_license | package com.chatapp.service.models.response;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import io.realm.RealmObject;
/**
* Created by thanhnguyen on 12/27/16.
*/
public class CountryModel extends RealmObject implements Serializable {... | true |
b4f216f80b7c2afc1394b2425b786b7eb59efead | Java | chaupow/SirDaniel | /src/p4_LineFollower/DriveForward.java | UTF-8 | 402 | 2.140625 | 2 | [] | no_license | package p4_LineFollower;
import lejos.nxt.LCD;
import lejos.robotics.subsumption.Behavior;
public class DriveForward implements Behavior{
@Override
public boolean takeControl() {
return Config.foundEnd;
}
@Override
public void action() {
LCD.clear();
LCD.drawString("MUHAHAHAHAH", 1, 1);
}
@Override
p... | true |
9e329452872eb77cdf6a28440a43c54a14d3424f | Java | saswata-dutta/icici-imps | /src/main/java/Main.java | UTF-8 | 1,094 | 2.359375 | 2 | [] | no_license | import java.util.UUID;
public class Main {
public static void main(String[] args) {
IciciConfig config = new IciciConfig("url", "bc", "pass", "remit-name", "remit-mobile");
String transactionRef = UUID.randomUUID().toString().toUpperCase().replaceAll("-", "");
ImpsParams reqParams = new ImpsParams(args[... | true |
3f0adb673173e81cdae9e19f8cfe37ba14d61787 | Java | NikitaZhelonkin/leetcode | /lib/src/main/java/ClimbingStairs.java | UTF-8 | 589 | 3.3125 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Map;
public class ClimbingStairs {
public int climbStairs(int n) {
if (n == 2) return n;
int[] memo = new int[n];
return climbStairs( 0, n, memo);
}
public int climbStairs(int s, int n, int[] memo) {
if (s == n) return 1;
... | true |
49ab24528d796a29481c26eced447c7efd8e5ea7 | Java | Numperposition/cryptopals | /Set1/src/Challenage_14.java | UTF-8 | 1,836 | 2.90625 | 3 | [] | no_license | import java.util.*;
public class Challenage_14 {
public static void main(String[] args){
Challenage_14 ch14 = new Challenage_14();
Challenage_12 ch12 = new Challenage_12();
byte[] key = ch12.generateKey();
String plainText = "Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd2... | true |
84cabe37749b1db448522504bc12ddf7de9d27a0 | Java | elsahani/DemoDataPassingTest | /app/src/main/java/sg/edu/rp/c346/id20023841/demodatapassingtest/FourthActivity.java | UTF-8 | 703 | 2.265625 | 2 | [] | no_license | package sg.edu.rp.c346.id20023841.demodatapassingtest;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
public class FourthActivity extends AppCompatActivity {
TextView tvAnswerDouble;
@Override
protected void onCre... | true |
09007232454cc91faa23bb3ae87a1b19ab1bd671 | Java | peter-hill/ssm-demo | /ssm-demo/src/com/core/admin/StoreController.java | UTF-8 | 6,810 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.core.admin;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.log4j.Logger;
import org.springframework.stereot... | true |
a4035077b31e78cc060ef752aa7817c73f354108 | Java | SmileJun/1_2_PL_in_Java | /BattleShip/src/ship/Ship.java | UTF-8 | 2,085 | 3.0625 | 3 | [] | no_license | package ship;
import map.Position;
import enums.HitResult;
import enums.ShipType;
public class Ship {
protected final static int AIRCRAFT_LENGTH = 5;
protected final static int BATTLESHIP_LENGTH = 4;
protected final static int CRUISER_LENGTH = 3;
protected final static int DESTROYER_LENGTH = 2;
protected final s... | true |
36129edd2a89399f554d64c1c19742d464dda83d | Java | Timc233/miniproj_463 | /backend/src/main/java/com/miniproj/miniproj/service/impl/RecipeServiceImpl.java | UTF-8 | 7,211 | 2.203125 | 2 | [] | no_license | package com.miniproj.miniproj.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.miniproj.miniproj.APIOperation.APIRequest;
import com.miniproj.miniproj.APIOperation.entity.FdcReturn;
import com.miniproj.miniproj.entity.Recipe;
import com.miniproj.miniproj.entity.Serving... | true |
217db848dad94352f5fdfff1008cb0b3ec8e5c25 | Java | boyqian/dubbox | /svc-sls-config-api/.svn/pristine/e3/e373d47b4abc2952d2d913c28ef8c327ea3589cc.svn-base | UTF-8 | 3,889 | 1.96875 | 2 | [] | no_license | package com.upsoft.sep.sls.config.schedule.entity;
import com.upsoft.sep.autocoder.client.libs.AutoCoderDataRule;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import javax.persistence.Id;
/**
* 调度时间配置主要用于根据问题来源和紧急程度设置指挥调度首问题处理派发任务的截止时间
*
* sls_config_schedule_time
*... | true |
8d70af023da4e87274536ba7d597bd4c577bc578 | Java | jcantillog/ArchToxGUI | /build/generated-sources/jax-ws/ws/usuario/Rol.java | UTF-8 | 1,915 | 2.359375 | 2 | [] | no_license |
package ws.usuario;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para rol complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
*
*... | true |
603edd52335c0eec257a9871d62de419b542871e | Java | M1kemclain247/ParkingDemo | /app/src/main/java/com/example/m1kes/parkingdemo/SyncTransactions.java | UTF-8 | 15,868 | 1.695313 | 2 | [
"MIT"
] | permissive | package com.example.m1kes.parkingdemo;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.os.Handler;
import android.support.design.widget.S... | true |
ce5a265d61dc7eb641f5c0637a2cb53a003696a7 | Java | liuyu7177/zuoriweilai | /src/main/java/com/liuyu7177/zuoriweilai/service/UserRedPacketService.java | UTF-8 | 1,654 | 2.375 | 2 | [] | no_license | package com.liuyu7177.zuoriweilai.service;
/**
* Created by liuyu7177 On 2019/5/22
*/
public interface UserRedPacketService {
/**
* 插入抢红包信息 有超发情况
* @param redPacketId
* @param userId
* @return
*/
public int grabRedPacket(Long redPacketId,Long userId);
/**
* 插入抢红包信息 乐观锁机制
... | true |
3d422732e0dedc49a84ecc4a40594566bcd9fe33 | Java | KramerKonstantin/Software_Design | /hw4/src/main/java/mvc/config/InMemoryDaoContextConfiguration.java | UTF-8 | 332 | 1.828125 | 2 | [] | no_license | package mvc.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import mvc.dao.TaskInMemoryDao;
@Configuration
public class InMemoryDaoContextConfiguration {
@Bean
public TaskInMemoryDao taskInMemoryDao() {
return new TaskInMemoryDao... | true |
591fd179ae3143762c992404252b951e0b9d8885 | Java | marco-savard/org.mslab.tool.educ | /org.mslab.tool.educ/src/org/mslab/tool/educ/client/tool/MenuTabPanel.java | UTF-8 | 2,330 | 2.40625 | 2 | [] | no_license | package org.mslab.tool.educ.client.tool;
import org.mslab.tool.educ.shared.types.Color;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.BorderStyle;
import com.google.gwt.dom.client.Style.FontWeight;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.logical.shared... | true |
8256adae4592c15875cbc2ba60b2007e77b92f7b | Java | gmcfall/konig | /konig-transform/src/main/java/io/konig/sql/query/SimpleWhenClause.java | UTF-8 | 516 | 2.703125 | 3 | [] | no_license | package io.konig.sql.query;
import io.konig.core.io.PrettyPrintWriter;
public class SimpleWhenClause extends AbstractExpression {
private ValueExpression whenOperand;
private Result result;
public SimpleWhenClause(ValueExpression whenOperand, Result result) {
this.whenOperand = whenOperand;
... | true |
5892aba7ecfa19bddabbb5b18939cfb95e19a089 | Java | lbruges/bowling_game | /src/main/java/com/lbruges/bowling/model/score/impl/FrameScore.java | UTF-8 | 444 | 2.390625 | 2 | [] | no_license | package com.lbruges.bowling.model.score.impl;
import com.lbruges.bowling.model.score.IScore;
import lombok.AllArgsConstructor;
/**
* Model to hold per frame score.
*
* @author Laura Bruges
*/
@AllArgsConstructor
public class FrameScore implements IScore {
private int score;
@Override
public int getS... | true |
f1e8deb1de2ee6638d1a23c464e641de1dce8be4 | Java | chenchangzhi/CameraPreView | /app/src/main/java/com/camerapreview/ImageUtil.java | UTF-8 | 876 | 2.421875 | 2 | [] | no_license | package com.camerapreview;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.hardware.Camera;
public class ImageUtil {
public static Bitmap getRotateBitmap(Bitmap b, float rotateDegree, int i) {
Matrix matrix = new Matrix();
matrix.postRotate((float) rotateDegree);
... | true |
eecf9cb29bccbc7746cb89f2bfe4fe82b865869a | Java | 206069780/bankapi | /src/main/java/com/bankapi/bankapi/sevice/iml/LocalIndicatorAllocationServiceIml.java | UTF-8 | 952 | 1.921875 | 2 | [] | no_license | package com.bankapi.bankapi.sevice.iml;
import com.bankapi.bankapi.dao.dormatdao.LocalIndicatorAllocationDao;
import com.bankapi.bankapi.model.dormat.LocalIndicatorAllocation;
import com.bankapi.bankapi.sevice.LocalIndicatorAllocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | true |
e50e63fec8b645810ad7a4aa3d43f850095ee069 | Java | marcelNgan/Webapps | /logginSession/src/com/example/logginsession/PSQL_Connection.java | UTF-8 | 1,983 | 2.640625 | 3 | [] | no_license | package com.example.logginsession;
// Plain_Postgres.java - example connection to Postgres
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import com.example.logginsession.query.MyQuery;
import android.os.AsyncTask;
import android.os.Looper;
public cl... | true |
aab2952feb9f29a98e13f147fac4e9d2278999ad | Java | mook30888/Projekt | /core/src/main/java/Rungunguns/TopBottomEdge.java | UTF-8 | 995 | 2.453125 | 2 | [] | no_license | package Rungunguns;
import Rungunguns.TextureBox.TopBottomEdgeTexture;
import org.mini2Dx.core.graphics.Graphics;
import static Rungunguns.Maingame.GAME_WIDTH;
import static Rungunguns.Maingame.GAME_HEIGHT;
public class TopBottomEdge extends Hazards {
TopBottomEdgeTexture topBottomEdgeTexture;
private flo... | true |
71d88fe76b28dd2b8439a0b0315f45b64171e3ce | Java | ariellekhan/Appointment-Scheduler | /DoctorAppointmentScheduler/src/doctorappointmentscheduler/client/presenter/RecordsPresenter.java | UTF-8 | 6,191 | 2.390625 | 2 | [] | no_license | package doctorappointmentscheduler.client.presenter;
import java.util.ArrayList;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.s... | true |
6f09376e6f2f1bc4d934ad80852682cef8e058ec | Java | rob4abcba/FoodAndFitTracker | /app/src/main/java/network/TrackerInterface.java | UTF-8 | 1,154 | 1.953125 | 2 | [] | no_license | package network;
import com.raemacias.foodandfittracker.BuildConfig;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import models.getCaloriesBurnedForExercises.Exercise;
import models.getCaloriesBurnedForExercises.ExerciseBase;
import models.getCaloriesBurnedForExercises.ExerciseRequest;
impo... | true |
84b0a843aa22662993bb28f0ce4c2736fc32a07b | Java | gomson/alice_source_re | /edu/cmu/cs/stage3/alice/scenegraph/renderer/directx7renderer/RenderTargetAdapter.java | UTF-8 | 5,429 | 1.984375 | 2 | [] | no_license | package edu.cmu.cs.stage3.alice.scenegraph.renderer.directx7renderer;
import edu.cmu.cs.stage3.alice.scenegraph.renderer.nativerenderer.TextureMapProxy;
public class RenderTargetAdapter extends edu.cmu.cs.stage3.alice.scenegraph.renderer.nativerenderer.RenderTargetAdapter {
public RenderTargetAdapter(edu.cmu.cs.sta... | true |
bf97868f268dc793f8b95108910e7e6050f290be | Java | ngoluan/FlippIt-Android | /app/src/main/java/luan/com/flippit/utilities/CopyService.java | UTF-8 | 1,856 | 2.546875 | 3 | [] | no_license | package luan.com.flippit.utilities;
import android.app.IntentService;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import luan.com.flippit.MyActivity;
/**
* An {@link Int... | true |
544a1fd22510b52a1e878ac53e6638b83d40dd23 | Java | BlueCodeSystems/opensrp-server | /opensrp-web/src/test/java/org/opensrp/web/utils/RestUtilsTest.java | UTF-8 | 595 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package org.opensrp.web.utils;
import java.text.ParseException;
import org.junit.Test;
import org.opensrp.common.AllConstants.BaseEntity;
import org.opensrp.common.AllConstants.Client;
import org.opensrp.web.rest.RestUtils;
import org.springframework.mock.web.MockHttpServletRequest;
public class RestUtilsT... | true |
992cda177f186c348d70be0dfb1c6d21cd572286 | Java | boomini/test_spring | /intranet/src/main/java/egovframework/cms/sign/service/DocService.java | UTF-8 | 352 | 1.734375 | 2 | [] | no_license | package egovframework.cms.sign.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public interface DocService {
public int getListCount(Map<String, Object> param) throws Exception;
public List<Map<String, Object>> getList(Map<String, Obj... | true |
45f886b08e91a7a85d65e9eefef78b6c68917a7a | Java | xbxs/Simplysalary | /服务端代码/SimplySalary/src/service/ScheduleDao.java | UTF-8 | 653 | 2.25 | 2 | [] | no_license | package service;
import java.util.List;
import entity.Schedule;
public interface ScheduleDao {
//查询所有排班
public List<Schedule> queryAllSchedules();
//根据查询某个时刻的所有排班
public List<Schedule> querySchedulesByTime(String time);
//查询某个人某个时间段分排班
public List<Schedule> querySchedulesByTimeUphone(String hxid,String... | true |
f49ae96b312264d317efc2ce704ac1e9b75c513f | Java | ZMTraobin/ZMTraobin | /villager/csp-core/src/main/java/com/cmig/future/csportal/module/sys/utils/UserTokenUtils.java | UTF-8 | 4,577 | 2.109375 | 2 | [] | no_license | package com.cmig.future.csportal.module.sys.utils;
import com.cmig.future.csportal.common.config.Global;
import com.cmig.future.csportal.common.utils.DateUtils;
import com.cmig.future.csportal.common.utils.JedisUtils;
import com.cmig.future.csportal.common.utils.MD5;
import com.cmig.future.csportal.common.zmcore.sso.... | true |
5fb1441f7f23d240d977924337f7d7f7140c75a5 | Java | chenlaw/Digital-Theater-Systems | /4f6735326a794978bd4df92fe95121de/src/main/java/com/example/cinema/blImpl/user/AdminServiceImpl.java | UTF-8 | 3,025 | 2.390625 | 2 | [] | no_license | package com.example.cinema.blImpl.user;
import com.example.cinema.bl.user.AdminService;
import com.example.cinema.data.user.AccountMapper;
import com.example.cinema.po.User;
import com.example.cinema.vo.ResponseVO;
import com.example.cinema.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
impo... | true |
c3b27bc1fc2abf4b1061ac1ce4e61494448ed4c0 | Java | yapengWen/agan-boot | /01/agan-boot-mybatis-multi-datasource/src/main/java/com/agan/boot/service/PayService.java | UTF-8 | 2,329 | 2.390625 | 2 | [] | no_license | package com.agan.boot.service;
import com.agan.boot.mapper.account.entity.CapitalAccount;
import com.agan.boot.mapper.account.mapper.CapitalAccountMapper;
import com.agan.boot.mapper.redaccount.entity.RedPacketAccount;
import com.agan.boot.mapper.redaccount.mapper.RedPacketAccountMapper;
import org.springframework.bea... | true |
3d53633ce1fb9b32c6df478c642e34c4a812cdd2 | Java | zaveri/BlackJack | /src/BlackJack/BlackJackCard.java | UTF-8 | 452 | 3.078125 | 3 | [] | no_license | package BlackJack;
public class BlackJackCard extends Card {
public BlackJackCard (int s, int v) {
super(s, v);
suit = s;
value = v;
}
public BlackJackCard(String s, String val){
super(s, val);
}
public int getValue() {
if (value == 10) {
return 10;
}
else if (value == 11) {
return 10;
... | true |
4c573340152fd8dced28a93dffc6b8ef08215c6a | Java | jam0cam/AndroidExample | /app/src/main/java/com/jitse/example/activities/AndroidPayCompleteActivity.java | UTF-8 | 1,846 | 1.960938 | 2 | [] | no_license | package com.jitse.example.activities;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import com.google.android.gms.identity.intents.model.UserAddress;
import com.google.android.gms.wallet.FullWallet;
import com.jitse.example.Constants;
import com.jitse.example.R;
import butter... | true |
728ae8179156d5449a9f43c46835d19d637f137e | Java | jfhuang0728/leetcode | /src/array/MergeIntervals.java | UTF-8 | 868 | 3.328125 | 3 | [] | no_license | package array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
public class MergeIntervals {
public int[][] merge(int[][] intervals) {
ArrayList<Integer[]> results = new ArrayList<>();
Arrays.sort(intervals, new Comparator<int[]>() {
@Override
... | true |
adeb0abd18ed7d637c898a4ce6d445920d1eb98b | Java | mrenouf/minecraft-server | /reference/0.2.3/src/jx.java | UTF-8 | 238 | 1.5625 | 2 | [] | no_license | // Decompiled by: Fernflower v0.6
// Date: 09.11.2010 14:07:59
// Copyright: 2008-2009, Stiver
// Home page: http://www.reversed-java.com
public interface jx {
int a();
hh a(int var1);
}
| true |
0ce995c83732dd0d92a3143bffaa9b77e566c379 | Java | Filipek98/Technologie-sieciowe | /Zadanie1/src/Encoder.java | UTF-8 | 800 | 2.984375 | 3 | [] | no_license | public class Encoder {
private final CRC8 crc;
private final String terminator = "01111110";
Encoder(){
crc = new CRC8();
}
String encode(String source, int size){
StringBuilder result = new StringBuilder();
int bitsUsed = 0;
while (bitsUsed < source.le... | true |
f5f3c8b9a39afd79451b32448617ccb5885b5a39 | Java | RockLee444/Uso_Tabla | /TablaInteractiva.java | UTF-8 | 8,004 | 2.9375 | 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.
*/
/**
*
* @author Luis Matuz
*/
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListene... | true |
735b8c6bcaec146835f26d8db0b4282d01672393 | Java | danielsuter/angular-todo | /todo-backend/src/main/java/ch/daniel/todobackend/domain/Todo.java | UTF-8 | 1,567 | 2.359375 | 2 | [] | no_license | package ch.daniel.todobackend.domain;
import java.util.Calendar;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;... | true |
2770c155b333701d791d173a09c7705a21d95fcd | Java | leszko/hz-docs | /docs/modules/ROOT/examples/cp/CpSubsystemConfiguration.java | UTF-8 | 1,703 | 2.359375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-NC-SA-3.0"
] | permissive | import com.hazelcast.config.*;
import com.hazelcast.config.cp.*;
public class CpSubsystemConfiguration {
public static void main(String[] args) throws Exception{
Config config = new Config();
//tag::cpconf[]
config.getCPSubsystemConfig()
.setCPMemberCount(7)
.s... | true |
87d97a87cf32b7ef57db022ba2d209d78d5520aa | Java | ITEA3-Measure/QualityGuardAnalysis | /src/test/java/org/quality/guard/analysis/web/rest/QualityGuardResourceIntTest.java | UTF-8 | 12,383 | 1.9375 | 2 | [] | no_license | package org.quality.guard.analysis.web.rest;
import org.quality.guard.analysis.QualityGuardAnalysisApp;
import org.quality.guard.analysis.domain.QualityGuard;
import org.quality.guard.analysis.repository.QualityGuardRepository;
import org.quality.guard.analysis.web.rest.errors.ExceptionTranslator;
import org.junit.B... | true |
77ec1c1f81bacb9cbd37669b8659d352cd3b0873 | Java | milktea-boy/simplefarm-server | /simplefarm-netty/src/main/java/org/milkteaboy/simplefarm/netty/handler/ISocketErrorEventHandler.java | UTF-8 | 377 | 1.984375 | 2 | [] | no_license | package org.milkteaboy.simplefarm.netty.handler;
import io.netty.channel.ChannelHandlerContext;
import org.milkteaboy.simplefarm.netty.constant.SocketErrorType;
import org.milkteaboy.simplefarm.netty.entity.Message;
/**
* Socket错误消息事件处理
*/
public interface ISocketErrorEventHandler {
public void handler(Message... | true |
a5336ab3cc1a5af5fb2aa97f5cc7a76db22c6e10 | Java | baysmax/limolive | /app/src/main/java/com/example/project/limolive/bean/live/Be_Liveing_Bean.java | UTF-8 | 4,956 | 2.375 | 2 | [] | no_license | package com.example.project.limolive.bean.live;
/**
* 作者:hpg on 2016/12/29 09:36
* 功能:在直播的2个(更多)好友店铺页面
*/
public class Be_Liveing_Bean {
private String avRoomId; // 直播房间号码
private String chatRoomId; // 聊天室ID
private String title; // 直播标题
private String cover; // 直播房间... | true |
1f119c1191bbc0e9b99c28c408acf682826417e0 | Java | zoubata/java_utilities | /java/utils/svg/Line.java | UTF-8 | 909 | 2.765625 | 3 | [] | no_license | package com.zoubworld.java.utils.svg;
public class Line extends BasicSvg implements ISvgObject{
public Line(Svg owner,Double my_x1,Double my_y1,Double my_x2,Double my_y2) {
x=my_x1;
x2=my_x2;
y=my_y1;
y2=my_y2;
}
public Line(Svg owner,Double my_x1,Double my_y1,Double alpha) {
x=my_x1+1*Math.cos(alpha... | true |
83b82768ebf7a3bb31ae8119e8ed3a0311936356 | Java | jraduget/kaleido-repository | /kaleido-core/src/main/java/org/kaleidofoundry/core/util/CollectionsHelper.java | UTF-8 | 6,581 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008-2021 the original author or authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | true |
f0f27c60f946939e5daca939f9ef7c9e60e15e6e | Java | pa2020/pa2020-api | /src/main/java/fr/esgi/api/config/RabbitMQConfig.java | UTF-8 | 2,086 | 2.0625 | 2 | [] | no_license | package fr.esgi.api.config;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.rabbit.annotation.Rabbit... | true |
779f2c1592b4a3bd035545f7e173642ecaa274b1 | Java | yangzhiming003/TwoTrading | /src/com/yzm/fuckapp/BaseActivity.java | UTF-8 | 269 | 1.601563 | 2 | [] | no_license | package com.yzm.fuckapp;
import android.app.Activity;
import android.os.Bundle;
public class BaseActivity extends Activity{
@Override
public void onCreate(Bundle savedInstanceState) {
// TODO Auto-generated method stub
super.onCreate(savedInstanceState);
}
}
| true |
768801328b2e28b1240e0d16ca277d770067e0da | Java | WFTinternship/ArtWork | /src/main/java/am/aca/wftartproject/service/ArtistSpecializationService.java | UTF-8 | 693 | 2.09375 | 2 | [] | no_license | package am.aca.wftartproject.service;
import am.aca.wftartproject.model.ArtistSpecialization;
/**
* @author surik
*/
public interface ArtistSpecializationService {
/**
* Adds artist specializations into springconfig.database
*/
void addArtistSpecialization();
/**
* Gets artist specializ... | true |
f865ce6cb295234901d1c41395210d3025289425 | Java | automen/Single_Debug_1.0.1 | /app/src/main/java/com/example/pangxiezi/single/ui/activity/MusicActivity.java | UTF-8 | 3,008 | 1.804688 | 2 | [] | no_license | package com.example.pangxiezi.single.ui.activity;
import android.content.Intent;
import android.support.v4.widget.SwipeRefreshLayout;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.example.pangx... | true |
84a44a46306d5278946bceb297087556bc88743e | Java | huangzhi1234/dbm-api | /src/main/java/com/withlee/dbm/service/showapi/impl/Answer_contentServiceImpl.java | UTF-8 | 963 | 1.921875 | 2 | [] | no_license | package com.withlee.dbm.service.showapi.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.withlee.dbm.domain.showapi.Ianswer_content;
import com.withlee... | true |
8106fa1d83ffb5c2a8d646f5d1919245a0f13933 | Java | pawllo86/DesignPatterns | /src/main/java/pma/main/Application.java | UTF-8 | 2,560 | 3.3125 | 3 | [] | no_license | package pma.main;
import pma.command.CreateCommand;
import pma.command.ICommand;
import pma.command.MoveCommand;
import pma.command.ScaleCommand;
import pma.invoker.SquareManipulationSystem;
import pma.receiver.SquareReceiver;
import java.io.*;
public class Application {
public static void main(String[] args) ... | true |
41a4061c2abcf765567cbe42c5884f16f6f5aed6 | Java | oliviabiswas/CS680_Olivia | /HW12/src/edu/umb/cs680/hw12/AlphabeticalComparator.java | UTF-8 | 257 | 2.703125 | 3 | [] | no_license | package edu.umb.cs680.hw12;
import java.util.Comparator;
public class AlphabeticalComparator implements Comparator<ApfsElement> {
@Override
public int compare(ApfsElement fse1, ApfsElement fse2) {
return fse1.getName().compareTo(fse2.getName());
}
} | true |
ae26d7920f2d603dc17db3233cad1972dea4b51c | Java | DearZh/xpocket | /xpocket-runtime/src/main/java/com/perfma/xlab/xpocket/command/impl/KillCommand.java | UTF-8 | 1,680 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | package com.perfma.xlab.xpocket.command.impl;
import com.perfma.xlab.xpocket.command.AbstractSystemCommand;
import com.perfma.xlab.xpocket.spi.command.CommandInfo;
import com.perfma.xlab.xpocket.spi.command.XPocketProcessTemplate;
import com.perfma.xlab.xpocket.spi.process.XPocketProcess;
import com.perfma.xlab.xpocke... | true |
acf394163baee5c0b011b51cc42b46ebf75beff6 | Java | mjhinek/comp1406 | /Assignments/comp1406a2/Box.java | UTF-8 | 2,585 | 3.796875 | 4 | [] | no_license | package comp1406a2;
/** A box holds a secret (and maybe a key). You can read the secret if
* the box is open. Otherwise, you'll need the right key to open it.
*/
public class Box{
// ADD ATTRIBUTES HERE
/** Creates a Box object containing the specified secret with the specified lock.
* Will creat... | true |
de5f1e03205632c8a26dff3f91c4499f27ebb4c5 | Java | bbimber/platform | /study/gwtsrc/gwt/client/org/labkey/study/designer/client/GridModel.java | UTF-8 | 1,086 | 1.609375 | 2 | [] | no_license | /*
* Copyright (c) 2010-2013 LabKey Corporation
*
* 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 app... | true |
a0e2f2672aa58235948ca85c80e3f25a0dba3c74 | Java | abkkm/dynamic-limiter-toolkit | /src/main/java/com/github/nicklaus/limiter/boot/jvm/cpu/CPUMetricProvider.java | UTF-8 | 1,266 | 2.515625 | 3 | [] | no_license | package com.github.nicklaus.limiter.boot.jvm.cpu;
import java.lang.management.ManagementFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* cpu provider
*
* @author weishibai
* @date 2019/03/26 2:20 PM
*/
public class CPUMetricProvider {
private static final Logger LOGGER = LoggerFactor... | true |
c7a850313703ae6affb4a711b0f8dc46ad2ebb88 | Java | jb-seo/JBeeGL | /src/com/jbee/rcp/gl/view/GLViewer.java | UHC | 8,242 | 2.375 | 2 | [] | no_license | package com.jbee.rcp.gl.view;
import java.io.File;
import java.util.ArrayList;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import org... | true |
96f94c3bbd04c710dc262d7066e365d031e89c12 | Java | safetech/multi-pom-project | /ole-qa-ui/src/test/java/resources/pages/greenbaypages/CustomerInformationPage.java | UTF-8 | 4,970 | 1.992188 | 2 | [] | no_license | package resources.pages.greenbaypages;
import org.fluentlenium.core.domain.FluentWebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.Select;
import resources.entity.Application;
import resources.pages.WizardPage;
import static org.hamcrest.CoreMatchers.equalTo;
import static o... | true |
1d63f6fde02f6a81893e2aba369b01db5dc21d16 | Java | bobsoft-solutions/fsranking-back | /src/test/java/me/bobsoft/fsranking/service/PlayerServiceTest.java | UTF-8 | 11,163 | 2.03125 | 2 | [] | no_license | package me.bobsoft.fsranking.service;
import me.bobsoft.fsranking.model.dto.PlayerDTO;
import me.bobsoft.fsranking.model.dto.PlayerDTOforPlayersEndpoint;
import me.bobsoft.fsranking.model.dto.PlayerStatisticsDTO;
import me.bobsoft.fsranking.model.entities.*;
import me.bobsoft.fsranking.model.utils.CumulatedPointDTO;
i... | true |
82af613b62151ad2f423e4a256bff76974f0643d | Java | KevinAnYuan/gxq | /backend/gxqpt-file/gxqpt-file-repository/src/main/java/com/hengyunsoft/platform/file/repository/file/service/ShareFileService.java | UTF-8 | 1,400 | 1.851563 | 2 | [] | no_license | package com.hengyunsoft.platform.file.repository.file.service;
import com.hengyunsoft.base.service.BaseAllService;
import com.hengyunsoft.platform.file.entity.file.domain.ShareFileRateDO;
import com.hengyunsoft.platform.file.entity.file.domain.SynFileDataDO;
import com.hengyunsoft.platform.file.entity.file.po.File;
im... | true |
2e342035333a71819b93fb1d3bb15ae00f7982b1 | Java | robert0714/cwbdata | /src/main/java/tw/gov/cwb/model/Weather.java | UTF-8 | 1,036 | 2.265625 | 2 | [] | no_license | package tw.gov.cwb.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.... | true |
8665a6210e1ecf2f9fca9cb2b1e098006f2e9360 | Java | java-april-2021/CrystalH-Assignments | /02-java-oop/01-project-class/ProjectClassTest.java | UTF-8 | 603 | 2.953125 | 3 | [] | no_license | import java.util.ArrayList;
public class ProjectClassTest {
public ArrayList<ProjectClass> ProjectClass;
public ProjectClassTest() {
this.ProjectClass = new ArrayList<ProjectClass>();
}
public void AddToProjectClassTest(ProjectClass p) {
ProjectClass.add(p);
}
public String ge... | true |
01d57cc14e1460fd5a721629f5de2b626c04f6f3 | Java | gholdys/TheEconomyStupid | /source/eu/theeconomystupid/gui/effects/PixelizingFadeEffect.java | UTF-8 | 6,045 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package eu.theeconomystupid.gui.effects;
import java.awt.AlphaComposite;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import... | true |
06c7320b0325893d5d3b8ad893b2bceb937646ca | Java | makuning/mycode | /studyCode/schoolStudyYear2/code/Java/studyForDLJD/src/com/makun/javase/array/homework/hotelmanagement/HotelManage01.java | UTF-8 | 3,789 | 4.21875 | 4 | [] | no_license | package com.makun.javase.array.homework.hotelmanagement;
/*
* 为某个酒店编写程序:酒店管理系统,模拟订房、退房、打印所有房间状态等功能。
* 5、系统应该对外提供的功能:
* 可以预定房间:用户输入房间编号,订房。
* 可以退房:用户输入房间编号,退房。
* 可以查看所有房间的状态:用户输入某个指令应该可以查看所有房间状态。*/
// 实现管理接口Management的第一个系统
public class HotelManage01 implements Management {
// 这个管理系统,管理一个酒店
private Hotel hotel;... | true |
f27804161d4b79ffdcfd9760e305c9752d2c62a6 | Java | eunjiWon/CompilerTheory | /src/main/java/dfa1.java | UTF-8 | 534 | 2.84375 | 3 | [] | no_license | import java.util.HashMap;
import java.util.Scanner;
public class dfa1 extends DFA{
public static void main(String[] args) {
HashMap<Character, Integer> map = new HashMap<>();
map.put('a', 0);
map.put('b', 1);
boolean[] accept = {false, true, false, true, false};
int[][] T = {
{1, 4},
{1, 2},
{3,... | true |
3c4eabd30fe1b2fcb0c7a99caa80de95eb3fef28 | Java | smtifahim/EFBO-Project | /src/ca/queensu/efbo/EFBOOntologyManager.java | UTF-8 | 29,175 | 1.523438 | 2 | [] | no_license | /**
* @author Fahim Imam
*/
package ca.queensu.efbo;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.mindswap.pellet.jena.PelletReasonerFactory;
//import org.semanticweb.HermiT.Reasoner;
import org.semanticweb.HermiT.... | true |
a8e3dd1a8a2bef5ea577412e480f328954cc0cff | Java | bibhutisahub/messaging-app | /src/main/java/com/bsahu/message/service/OutgoingMessageService.java | UTF-8 | 551 | 2.078125 | 2 | [] | no_license | package com.bsahu.message.service;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import com.bsahu.message.exception.MessageException;
import com.bsahu.message.model.MessageBO;
/**
* @author bsahu
... | true |
5c73b7cf415aa56955ecbac629c25c3d73e9c6ec | Java | joseavilajr/-Virtual-library-on-android | /Aplicativo/BibliotecaVirtualMySQL/app/src/main/java/com/example/jgavi/bibliotecavirtual/Cadastro_Livro_Fisico.java | UTF-8 | 7,209 | 2.03125 | 2 | [] | no_license | package com.example.jgavi.bibliotecavirtual;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v7.app.AppCompatActivity;
import android.util.Lo... | true |
1a4ddb4d2458186f30d8f4a22906a83ae0ddd2a1 | Java | BestYun/spring-boot-demo | /spring-boot-web/src/main/java/com/readchen/springbootweb/controller/route/ControllerResponse.java | UTF-8 | 544 | 2.078125 | 2 | [] | no_license | package com.readchen.springbootweb.controller.route;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
@RestController
public class Con... | true |
b67474dcab87c06be5996fad8a2108726f051cd9 | Java | kimdoyeonn/books | /book_user/src/kr/co/sist/user/mypage/domain/OrderListBookDomain.java | UTF-8 | 561 | 2 | 2 | [] | no_license | package kr.co.sist.user.mypage.domain;
public class OrderListBookDomain {
private String book_name;
private int order_no, order_book_cnt;
public String getBook_name() {
return book_name;
}
public void setBook_name(String book_name) {
this.book_name = book_name;
}
public int getOrder_no() {
return order_... | true |
4057bb3f8213a3d945f60780574ae4e59c45d94b | Java | NayanPunyarthi/Day8_EmployeeWage | /src/UC5.java | UTF-8 | 1,012 | 3.5625 | 4 | [] | no_license | //Calculating Wages for a Month
public class UC5 {
public static final int PART_TIME = 1;
public static final int FULL_TIME = 2;
public static final int PER_HR = 20;
public static final int NO_OF_WORKING_DAY = 2;
public static void main(String[] args) {
//Variables
int emphr = 0;
... | true |
03dd0b825148bc84037e8462a3a1f88493b61117 | Java | Shuvoneel/Java | /dec_19/dec_19/src/dec_19/quiz/for_loop/quiz_1.java | UTF-8 | 218 | 3.265625 | 3 | [] | no_license | package dec_19.quiz.for_loop;
// Print 1 to 20
public class quiz_1 {
public static void main(String[] args) {
for (int i = 1; i <= 20; i++) {
System.out.println("For: " + i);
}
}
}
| true |
0c8b18286d7980eafbdd65bfa9e889c37667271f | Java | RajKGupta/SBEEmployee | /app/src/main/java/com/example/pulkit/employeeapp/adapters/ViewImageAdapter.java | UTF-8 | 1,744 | 2.359375 | 2 | [] | no_license | package com.example.pulkit.employeeapp.adapters;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import ... | true |
207c1fa6003ab93857a928252c914064a4ad63cc | Java | bnu-land/landuse | /src/cn/mutu/land/web/LandEvaluationController.java | UTF-8 | 4,866 | 2.21875 | 2 | [] | no_license | package cn.mutu.land.web;
import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.sp... | true |
8abebfb5143ab3901833d1773dd2270028c71ba8 | Java | terrible-coder/Java-Pong | /PVector.java | UTF-8 | 618 | 3.359375 | 3 | [] | no_license | public class PVector {
double x, y;
PVector(){
this(0, 0);
}
PVector(double x){
this(x, 0);
}
PVector(double x, double y){
this.x = x;
this.y = y;
}
void set(double x, double y){
this.x = x;
this.y = y;
}
double mag(){
return Math.sqrt(x*x + y*y);
}
double angle(){
ret... | true |
d0c1735a35b15871ef2fd93d20adf914030ca049 | Java | jndx-snow/patientCare | /app/src/main/java/upa/jiangnan/care/activity/PatientDetailActivity.java | GB18030 | 17,678 | 1.5625 | 2 | [] | no_license | package upa.jiangnan.care.activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.FragmentActivity;
import android.support.... | true |
ddb6455e47dfd3246442211f54a06a3432bc851c | Java | csebu/introduction-of-data-structure-buerfan | /ecommerce/src/model/ProductModel.java | UTF-8 | 1,935 | 2.359375 | 2 | [] | no_license | package model;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
... | true |
d24b1aa8cf0481fe4329571e326f92c1ad45fbe4 | Java | GuestEG/PluginsForForestry | /src/main/java/denoflionsx/PluginsforForestry/Plugins/Railcraft/PluginRailcraft.java | UTF-8 | 5,968 | 1.734375 | 2 | [] | no_license | package denoflionsx.PluginsforForestry.Plugins.Railcraft;
import cpw.mods.fml.common.Loader;
import denoflionsx.PluginsforForestry.API.Plugin.IPfFPlugin;
import denoflionsx.PluginsforForestry.Config.PfFTuning;
import denoflionsx.PluginsforForestry.Core.PfF;
import denoflionsx.PluginsforForestry.ModAPIWrappers.Forestry... | true |
4e73e2b52b45c224a8460fbc1252d4906af29e1e | Java | AmericanDreams/jax-rs-tutorial | /src/main/java/mir/project/massenger/resources/MessageResource.java | UTF-8 | 3,299 | 2.359375 | 2 | [] | no_license | package mir.project.massenger.resources;
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.QueryParam... | true |
46bc939e69bafc4b5bbf6524e48545f37578a5ef | Java | daviddongkc/PRMS | /src/java/sg/edu/nus/iss/phoenix/schedule/restful/ScheduleRESTService.java | UTF-8 | 3,275 | 2.421875 | 2 | [] | no_license | package sg.edu.nus.iss.phoenix.schedule.restful;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
//import java.sql.Date;
import java.util.ArrayList;
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs... | true |
9ec5d87ab4d6938835218f6fdabd69d0174168d8 | Java | sepanniemi/ehcache-inmemory-sample | /spring-ehcache-reader/src/main/java/fi/essi/spring/ehcache/reader/CacheReaderApplication.java | UTF-8 | 823 | 1.828125 | 2 | [] | no_license | package fi.essi.spring.ehcache.reader;
import fi.essi.spring.ehcache.store.EnableSampleCache;
import fi.essi.spring.ehcache.store.service.ReadOnlyCache;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.En... | true |
47d85e1197b07e394f2c20265263ebeb836b78e5 | Java | jachaunited/practice-java | /java_practice/src/john/pleasantSolution/src/recursion.java | UTF-8 | 273 | 2.859375 | 3 | [] | no_license |
public class recursion {
public static void funky (int x){
if (x > 0 ){
x--;
funky(x);
}
System.out.printf("%d", x);
}
/*public int tester(){
funky(5);
return 0;
}*/
public static void main(String args[]){
funky(5);
}
}
| true |
033d295b155bc2d9e88c6a461dc285c4dcb972b7 | Java | samuelthomas2774/android-tv-homekit | /app/src/main/java/uk/org/fancy/AndroidTvHomeKit/TelevisionInterface.java | UTF-8 | 1,200 | 2.09375 | 2 | [
"MIT"
] | permissive | package uk.org.fancy.AndroidTvHomeKit;
import java.util.List;
import io.github.hapjava.Service;
public interface TelevisionInterface {
public String getName();
public String getManufacturer();
public String getModel();
public String getSerialNumber();
public String getFirmwareRevision();
publ... | true |
c450f23cf3ff02e83df090cd57b3be5976801873 | Java | maxmuffin/DistributedCardGame31 | /src/distributedLogic/game/Move.java | UTF-8 | 1,374 | 2.953125 | 3 | [] | no_license | package distributedLogic.game;
import java.io.Serializable;
public class Move implements Cloneable, Serializable {
private boolean coveredPick; // Pesca la carta dal mazzo coperto
private int discardedCard;
private String status; // Pesca - Scarta - Busso
private int playerMove;
private boolean b... | true |
e0da881108b298507fe9ef78d6d06e4a5050cd03 | Java | satake0916/LeetCode | /easy/125.java | UTF-8 | 635 | 3.25 | 3 | [] | no_license | class Solution {
public boolean isPalindrome(String s) {
s = s.toLowerCase();
int n = s.length();
if(n == 0) return true;
int start = 0, end = n-1;
while(start < end){
char a = s.charAt(start), b = s.charAt(end);
if(!Character.isLetterOrDigit(... | true |
f8f3e96699d1876a0ee69fe25143bf7942763b75 | Java | chrlembeck/chrlembeck-util | /src/main/java/de/chrlembeck/util/swing/border/RoundTitledBorder.java | UTF-8 | 7,842 | 3.078125 | 3 | [
"BSD-3-Clause"
] | permissive | package de.chrlembeck.util.swing.border;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Insets;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Render... | true |
84b5d7b4b36facdb522326579aa4182a7b074d74 | Java | google-code/banco-de-curriculos | /src/br/com/bancodecurriculos/pessoa/fisica/dao/impl/PessoaFisicaDAO.java | UTF-8 | 11,218 | 1.875 | 2 | [] | no_license | package br.com.bancodecurriculos.pessoa.fisica.dao.impl;
import java.io.IOException;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.com.bancodecurriculos.controleacesso.dominio.Per... | true |
9fc1729d1115154ec4d428be559b6caeaf2db5a1 | Java | TheMasterDirk/PhysIL | /Variable.java | UTF-8 | 7,196 | 2.90625 | 3 | [] | no_license | import java.util.ArrayList;
public class Variable
{
private Object name, variableName, value, originValue;
private Double angle, originAngle;
private String units;
private ArrayList<Variable> oldVariables = new ArrayList<Variable>();
private boolean isConstant, isEnvironmental, isVisibleVector = fal... | true |
709d335ed406cbd4a59602b25e768c254eef474d | Java | camilo1184/encuesta | /src/main/java/co/gov/sic/encuesta/domain/User.java | UTF-8 | 668 | 2.109375 | 2 | [] | no_license | package co.gov.sic.encuesta.domain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Getter
@Setter
@NoArgsConstructor
@Table(name = "user", uniqueConstraints = {
@UniqueConstraint(columnNames = {"user_name"}, name="uk_user_name")
})
public cla... | true |
66563c861fbfd6cbc8b2c3cd58f41384f9e7d0e9 | Java | joyzeus/multimedia | /app/src/main/java/com/gjayz/multimedia/net/NetConf.java | UTF-8 | 126 | 1.601563 | 2 | [] | no_license | package com.gjayz.multimedia.net;
public class NetConf {
public static final String IP_HOST = "https://ifconfig.co/";
}
| true |
66382ddd050c5f45652239063ec592b1ddeab54b | Java | Loveofworld/ServerFramework | /ServerFramework/src/com/loveofworld/mvc/common/resolver/CustomWebArgumentResolver.java | UTF-8 | 473 | 1.773438 | 2 | [] | no_license | package com.loveofworld.mvc.common.resolver;
import org.springframework.core.MethodParameter;
import org.springframework.web.bind.support.WebArgumentResolver;
import org.springframework.web.context.request.NativeWebRequest;
public class CustomWebArgumentResolver implements WebArgumentResolver {
@Override
public O... | true |
b944d42d981f9f77b5e1dafa77c24d516b977f65 | Java | wonjuYang/work_f | /src/main/java/com/wonju/work/controller/LentcarController.java | UTF-8 | 5,205 | 1.960938 | 2 | [] | no_license | package com.wonju.work.controller;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMa... | true |
20897f892f64f31daf773a52013132839962c69c | Java | Eren-Uygun/JavaWorksheet | /Java Çalışmalar/abstractClasses/src/OlderGameCalculator.java | UTF-8 | 95 | 1.570313 | 2 | [] | no_license | public class OlderGameCalculator extends GameCalculator {
public void hesapla() {
}
}
| true |
7ab8af5363af899171dc9fb3429cd342b3f4ab6a | Java | fermadeiral/StyleErrors | /geosolutions-it-mapsforge/57b379001d57a9ae8c40b84f87567e3259e3c50a/327/OverlayWithoutBaseMapViewer.java | UTF-8 | 1,315 | 2.28125 | 2 | [] | no_license | /*
* Copyright 2010, 2011, 2012, 2013 mapsforge.org
*
* This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later version.
*
* Th... | true |
3029ea9720741ddc8e15b77cdc58616b1c59ab3a | Java | throneless65/SuperDuperTvApp | /app/src/main/java/com/hackathontv/model/VideoInfo.java | UTF-8 | 228 | 1.617188 | 2 | [] | no_license | package com.hackathontv.model;
import com.google.gson.annotations.SerializedName;
public class VideoInfo {
@SerializedName("riptide_id")
public String riptideId;
public double duration;
public String src;
}
| true |
4b61fb89c22fa9133b00dd561892f2b0eace8c1a | Java | vincentpasquier/StarWarsLife | /src/main/java/ch/eia/simulife/controllers/DogController.java | UTF-8 | 214 | 1.820313 | 2 | [] | no_license | package ch.eia.simulife.controllers;
import ch.eia.simulife.factories.CreatureFactory;
public class DogController extends SideController {
public DogController(CreatureFactory factory) {
super(factory);
}
} | true |
432469976fb3c0017bc5ffbafb56c4e9f21054cf | Java | fanjia1024/demo | /src/main/java/com/imooc/demo/entity/Usr.java | UTF-8 | 763 | 2.3125 | 2 | [] | no_license | package com.imooc.demo.entity;
import java.util.Date;
public class Usr {
// 主键ID
private Integer Id;
// 用户名
private String usrName;
// 权重,越大越排前显示
private Integer userId;
// 密码
private String usrPassword;
public Integer getId() {
return Id;
}
public void setId(Integer id) {
Id = id;
}
p... | true |