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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4c55f23c41397b2ff01f40eb626ac9dbf34bf7b2 | Java | SunnyMarkLiu/tiny4j | /src/test/java/com/markliu/study/aspectj/GreetingIntroductionAspect.java | UTF-8 | 465 | 2.015625 | 2 | [] | no_license | package com.markliu.study.aspectj;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;
import org.springframework.stereotype.Component;
/**
* 引入增强
*
* author:sunnymarkliu
* date :16-9-26
* time :下午9:57
*/
@Aspect
@Component
public class GreetingIntroductionAspect {
... | true |
c60e61f129f076635f0ecf0edc0a93c62f4a2272 | Java | AlaeddineAmama/NotificationBySchedule | /app/src/main/java/klogi/com/notificationbyschedule/initialisation/Autentificationadmin.java | UTF-8 | 2,822 | 2.265625 | 2 | [] | no_license | package klogi.com.notificationbyschedule.initialisation;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.V... | true |
c655717ad202ea49d8bafc00acb892342eca9131 | Java | naeemchak/pyramus | /rest/src/main/java/fi/pyramus/rest/tranquil/students/StudentStudyEndReasonEntity.java | UTF-8 | 1,343 | 2.046875 | 2 | [] | no_license | package fi.pyramus.rest.tranquil.students;
import fi.tranquil.TranquilModel;
import fi.tranquil.TranquilModelType;
@TranquilModel (entityClass = fi.pyramus.domainmodel.students.StudentStudyEndReason.class, entityType = TranquilModelType.COMPACT)
public class StudentStudyEndReasonEntity implements fi.tranquil.Tranqui... | true |
b7f17595a2c7ec2004a9175ac671a6b4726a3f39 | Java | solitaryreaper/rule-generator | /src/test/java/com/walmartlabs/productgenome/rulegenerator/model/rule/RuleTest.java | UTF-8 | 1,065 | 2.65625 | 3 | [] | no_license | package com.walmartlabs.productgenome.rulegenerator.model.rule;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.Lists;
import com.walmartlabs.productgenome.rulegenerator.model.data.ItemPair.MatchStatus;
import com.walmartlabs.productgenome.rulegenerator.model.rule.Clause.LogicalOperato... | true |
5d938bfe608ce63e54e232740150b40cd488c2ad | Java | FaycalBekhechi/sometrpg | /core/src/main/java/com/ziodyne/sometrpg/view/components/ViewportPosition.java | UTF-8 | 357 | 2.171875 | 2 | [] | no_license | package com.ziodyne.sometrpg.view.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.math.Vector2;
public class ViewportPosition extends Component {
private final Vector2 position;
public ViewportPosition(Vector2 position) {
this.position = position;
}
public Vector2 getPosi... | true |
714aa7363a702129f6fb9841777e8277f8709217 | Java | Departuers/Algorithm | /ACWing/src/最大流/费用流SPFA.java | UTF-8 | 3,552 | 2.859375 | 3 | [
"MIT"
] | permissive | package 最大流;
import java.io.*;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.StringTokenizer;
import static java.lang.System.in;
/**
* https://www.luogu.com.cn/problem/P3381
* https://www.acwing.com/activity/content/code/content/447948/
* https://blog.csdn.net/lym940928/article/details/90... | true |
450f151a79b2a0c6e3a235bcf9653d7f2be4d22a | Java | gonefuture/mmorpg | /gameserver/src/main/java/com/wan37/gameserver/game/user/controller/UserController.java | UTF-8 | 2,539 | 2.046875 | 2 | [
"MIT"
] | permissive | package com.wan37.gameserver.game.user.controller;
import com.wan37.common.entity.Message;
import com.wan37.common.entity.Cmd;
import com.wan37.gameserver.game.player.manager.RoleClassManager;
import com.wan37.gameserver.game.user.service.UserService;
import com.wan37.gameserver.game.user.manager.UserCacheManger;
impo... | true |
6074f113f4a60c54a9d94ec9ed988b130fc8c180 | Java | yanguibao1997/shopping | /shopping-items/shopping-items-interface/src/main/java/com/study/api/SpuApi.java | UTF-8 | 985 | 1.90625 | 2 | [] | no_license | package com.study.api;
import com.study.bo.SpuBo;
import com.study.page.PageResult;
import com.study.pojo.Spu;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RequestMapping("/spu")
public interface SpuApi {
@GetMapping("/page")
PageResult<SpuBo> querySpuPage(
@RequestP... | true |
6296cc09279b4ea47daa9715736836c0ccdf449c | Java | seul-pace/SemoProject | /semoProject/src/com/kh/admin/controller/mainServlet.java | UTF-8 | 2,121 | 2.359375 | 2 | [] | no_license | package com.kh.admin.controller;
import java.io.IOException;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.kh... | true |
728e1231c991ddbe82c56e611777b41db5161cf5 | Java | Mandarava/SpringBootDemo | /src/main/java/com/ztc/utils/MessageConverterUtil.java | UTF-8 | 1,115 | 1.96875 | 2 | [] | no_license | package com.ztc.utils;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.http.MediaType;
import java.util.ArrayList;
import java.util.List;
public fi... | true |
df30a536e38987d994b10ea802a548a570630119 | Java | fgguo/OddTime | /前端/main/java/activitytest/example/com/myapplication/CraditActivity.java | UTF-8 | 3,849 | 2.265625 | 2 | [] | no_license | package activitytest.example.com.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import java.text.SimpleDateFormat;
impo... | true |
6b832e17ea8b536b5c40b9ed50253d044820e249 | Java | jhelpgg/JHelpAPI2 | /GUI/samples/jhelp/gui/samples/d2/list/ListModelSample.java | UTF-8 | 3,912 | 2.609375 | 3 | [] | no_license | /*
* Copyright:
* License :
* The following code is deliver as is.
* I take care that code compile and work, but I am not responsible about any damage it may cause.
* You can use, modify, the code as your need for any usage.
* But you can't do any action that avoid me or other person use, modify this code.... | true |
23ecc8f5e3bb59c92018098013fabdc500407b21 | Java | TodaShi/esy | /src/org/ry8/CeaFrame/view/BaseSideSlidingMenu.java | UTF-8 | 5,086 | 2.328125 | 2 | [
"MIT"
] | permissive | package org.ry8.CeaFrame.view;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;
import ... | true |
799d0b8dafbfb31941e160df09092272aa7b3cd7 | Java | luckydddyf/Car-rental-system | /src/main/java/com/example/system/controller/WebController.java | UTF-8 | 671 | 2.015625 | 2 | [] | no_license | package com.example.system.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* @Description
* @Author luckydddyf
* @Date 2021-01-25 17:57
*/
@Controller
@Slf4j
publ... | true |
5bdb12a9e31bfa4493f0e9e13f4376a0b3aab002 | Java | 908Inc/stickerfactory | /src/main/java/vc908/stickerfactory/utils/Logger.java | UTF-8 | 3,178 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | package vc908.stickerfactory.utils;
import android.util.Log;
import vc908.stickerfactory.analytics.AnalyticsManager;
/**
* Logger class is entry point of any logging operations.
* Log messages wrap all tags with prefix {@link Logger#TAG_PREFIX}
* Use {@link Logger#setConsoleLoggingEnabled(boolean)} to enable or d... | true |
ba5e848113c971877f9b9658f016209707a6fd9e | Java | chegini91/Chess-Java | /src/ir/sharif/ce/javaclass/chess/IPlayer.java | UTF-8 | 107 | 2.0625 | 2 | [
"MIT"
] | permissive | package ir.sharif.ce.javaclass.chess;
public interface IPlayer {
public String move(Chess chess);
}
| true |
3c0a0b7c27d15b2f45bbdc6760306922b14be520 | Java | jqmtony/micro-service-mybatis | /aljoin-web/src/main/java/aljoin/web/controller/sys/SysParameterController.java | UTF-8 | 4,594 | 2.1875 | 2 | [] | no_license | package aljoin.web.controller.sys;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Re... | true |
cd4415a80e94a3f8ba8d8ba2489d05e8b479b067 | Java | makzmslv/badam7 | /database/src/main/java/org/mk/badam7/database/dao/PlayerDAO.java | UTF-8 | 426 | 2.046875 | 2 | [] | no_license | package org.mk.badam7.database.dao;
import org.mk.badam7.database.entity.PlayerEntity;
import org.springframework.data.jpa.repository.JpaRepository;
public interface PlayerDAO extends JpaRepository<PlayerEntity, Integer>
{
public PlayerEntity findByUsernameAndVerified(String username, Boolean isVerified);
pu... | true |
7f7adb608fd343fe20a952f02f78833f3870383d | Java | tuanzijiang/pizza | /pizza-data/src/main/java/edu/ecnu/scsse/pizza/data/repository/ShopIngredientJpaRepository.java | UTF-8 | 1,332 | 2.0625 | 2 | [] | no_license | package edu.ecnu.scsse.pizza.data.repository;
import edu.ecnu.scsse.pizza.data.domain.ShopIngredientEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transactio... | true |
026014d4276353e2d5683a5c042cf86692158012 | Java | garlicgarrison/IsolationAI | /Board.java | UTF-8 | 4,415 | 3.625 | 4 | [] | no_license |
import java.util.Arrays;
import java.util.Scanner;
import java.util.*;
public class Board
{
public int[][] board = new int[8][8];
private int currentPos1;
private int currentPos2;
private HashSet<Integer> legalMoves1;
private HashSet<Integer> legalMoves2;
//0 means empty, 1 means taken, 2 means... | true |
ee8513c96ab86bd61a68997324cb22f1211fed83 | Java | youngzil/quickstart-remoting | /quickstart-netty/src/main/java/org/quickstart/netty/v4x/multiprotocol/PersonEncoder.java | UTF-8 | 828 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /**
* 项目名称:quickstart-netty
* 文件名:PersonEncoder.java
* 版本信息:
* 日期:2017年1月17日
* Copyright youngzil Corporation 2017
* 版权所有 *
*/
package org.quickstart.netty.v4x.multiprotocol;
import org.quickstart.netty.v4x.selfprotocol.ByteObjConverter;
import org.quickstart.netty.v4x.selfprotocol.Person;
import io.netty.buf... | true |
c4c9f41c62a9d78b3f931ee6fada2926c4eee3aa | Java | fischerfel/TUM-Crypto | /data/cipher/insecure/Snippet10562577_34895.java | UTF-8 | 594 | 2.875 | 3 | [] | no_license | public static byte[] decrypted_Data(byte[] crypt) throws Exception {
String seed = "SuperSecretPassword";
KeyGenerator keygen = KeyGenerator.getInstance("AES");
SecureRandom secrand = SecureRandom.getInstance("SHA1PRNG");
secrand.setSeed(seed.getBytes());
keygen.init(128, secrand);
SecretKey seckey ... | true |
ac2c460329a1d1bd487d7e3fb14cbf31c8381d1d | Java | KuriyamaMiraiQcy/Leetcode | /src/Uber/beautifulArrangement.java | UTF-8 | 682 | 3.109375 | 3 | [] | no_license | package Uber;
public class BeautifulArrangement {
public int countArrangement(int N) {
boolean[] visited = new boolean[N];
return DFS(N, N, visited);
}
// faster if go from back
private int DFS(int cur, int N, boolean[] visited) {
if (cur == 0) {
return 1;
}
... | true |
c6949d00c050c05c0f317bc51cef03da91543898 | Java | RobDaykin/Cuppy | /cuppy/testsrc/de/hybris/platform/cuppy/services/ByDateMatchdayCalculationStrategyTest.java | UTF-8 | 3,189 | 2.21875 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2012 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the
* li... | true |
056219e03282470f02a042680d271e774489ca8c | Java | akc-zensar/services-event | /src/main/java/org/akc/assembler/CommitteeAssembler.java | UTF-8 | 1,094 | 2.265625 | 2 | [] | no_license | package org.akc.assembler;
import org.akc.dto.CommitteeForm;
import org.akc.exception.InvalidException;
/**
* Author: Chander
* Date: 09/08/15
* ChairPersonAssembler interface for save the ChairPerson related data on ChairPerson table.
*/
public interface CommitteeAssembler {
/**
* getCom... | true |
42409baa5cce37ad21c29a1e80953cd21fcc7174 | Java | FurknKOC/Homey_Mobil_Uygulama | /homeyBackend/src/main/java/com/furkan/homey/model/entity/Notification.java | UTF-8 | 1,077 | 2.296875 | 2 | [] | no_license | package com.furkan.homey.model.entity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Getter
@Setter
@Entity
public class Notification extends BaseEntity{
private final static String SEQUENCE_NAME = "notification_id";
public final static String JOIN_COLUMN = "notification_id";
... | true |
48fbbd3c155c3bb5e3296fad805dc0c52bfa62d0 | Java | midstr/code-mixed | /src/main/java/org/midstr/hash/Test.java | UTF-8 | 942 | 3.09375 | 3 | [] | no_license | package org.midstr.hash;
import java.util.ArrayList;
import java.util.Collection;
/**
* @author yaogangli
* @date 2013-6-18 下午3:11:24
*/
public class Test {
/**
* @param args
*/
public static void main(String[] args) {
Collection<Node> nodes = new ArrayList<Node>();
for (int i = 0; i < 5; i++) {
nodes... | true |
380aca06f8c889ba50b105605e080c2cd6e52e7a | Java | seintaridis/kinderplan-1 | /src/main/java/com/webapplication/dto/user/SubmitProviderCommentRequestDto.java | UTF-8 | 608 | 2.078125 | 2 | [] | no_license | package com.webapplication.dto.user;
/**
* Created by mary on 2/7/2017.
*/
public class SubmitProviderCommentRequestDto {
private String comment;
private Integer user_id;
private Integer provider_id;
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = co... | true |
e52b7abec261fb51935972992eba9dd29fa50cba | Java | moutainhigh/chehulian | /carscraporder-manager/carscraporder-manager-pojo/src/main/java/com/car/app/carscraporder/pojo/CarScrapMailingAddress.java | UTF-8 | 2,300 | 2.25 | 2 | [] | no_license | package com.car.app.carscraporder.pojo;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* 类名称:CarScrapMailingAddress
* 类描述: 订单手续邮寄地址
* 创建人:刘子亮
* 创建时间:2018年10月9... | true |
fc963c2aca6f83ac681ff9a0a038be32ee472516 | Java | miguelperezcolom/mateu-ui | /core/src/main/java/io/mateu/ui/core/shared/ViewProvider.java | UTF-8 | 269 | 1.789063 | 2 | [
"Beerware"
] | permissive | package io.mateu.ui.core.shared;
import io.mateu.ui.core.client.views.AbstractView;
import java.io.Serializable;
public interface ViewProvider extends Serializable {
String getViewName(String viewNameAndParameters);
AbstractView getView(String viewName);
} | true |
d4cefda3003672e9299b586a06324ac033acdbd7 | Java | tassoneroberto/math-tools | /analysis/PolynomialLL.java | UTF-8 | 1,214 | 3.8125 | 4 | [
"MIT"
] | permissive | package analysis;
import java.util.Iterator;
import java.util.LinkedList;
public class PolynomialLL implements Iterable<Monomial> {
private LinkedList<Monomial> monomials = new LinkedList<Monomial>();
public PolynomialLL(Monomial m) {
monomials.add(new Monomial(m));
}
public PolynomialLL(PolynomialLL p) {
f... | true |
092d5336418e1e30b653abaae17ada1ab9830f3b | Java | The-Software-Guild/java-mpls-0819-ThreeStooges | /sneakermarketplace/src/test/java/sg/sneakermarketplace/daos/ShoeConditionDaoTest.java | UTF-8 | 2,215 | 2.015625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sg.sneakermarketplace.daos;
import javax.transaction.Transactional;
import org.junit.After;
import org.junit.AfterClass;
impor... | true |
e53566e981f029bf0a742f0e206dd8fd726a4276 | Java | enjoqy/halk_study | /rabbitm_transaction/order_service/src/main/java/org/halk/order_service/config/RabbitMQConfiguration.java | UTF-8 | 1,896 | 2.234375 | 2 | [] | no_license | package org.halk.order_service.config;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.contex... | true |
21ac6b17095f69c76ac845c289ceb359ebf97211 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_9d493decdbbaf5d142480d08baf086042fcdf45e/XHTMLStylesheetAttachedXMLProvider/2_9d493decdbbaf5d142480d08baf086042fcdf45e_XHTMLStylesheetAttachedXMLProvider_t.java | UTF-8 | 7,447 | 1.515625 | 2 | [] | no_license | /*
* Copyright (c) 2009 Stephan Schloepke and innoQ Deutschland GmbH
*
* Stephan Schloepke: http://www.schloepke.de/
* innoQ Deutschland GmbH: http://www.innoq.com/
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation file... | true |
9293240aa51226d83beba42f49480b9469e2b62a | Java | pkolomiy/UNIT_Factory | /avaj-launcher/src/com/avaj/Aircraft.java | UTF-8 | 835 | 2.953125 | 3 | [] | no_license | package com.avaj;
public class Aircraft {
protected long id;
protected String name;
protected Coordinates coordinates;
private static long idCounter = 0;
protected Aircraft(String name, Coordinates coordinates) {
this.id = this.nextId();
this.name = name;
this.coordinates =... | true |
9cfe46da0092d221f2c1c057534b5aa86d773b7e | Java | westwoodl/JavaSE | /src/main/java/com/xu/day14__reg/DateDemo.java | UTF-8 | 441 | 2.890625 | 3 | [] | no_license | package com.xu.day14__reg;
import org.junit.Test;
import java.text.DateFormat;
import java.util.Date;
public class DateDemo {
@Test
public void test(){
System.out.println(new Date(0));//东8区,为8点,其实为0.CST可视为美国、澳大利亚、古巴或中国的标准时间。
DateFormat df = DateFormat.getDateInstance();//获取子类SimpleDateForma... | true |
ecf10d2d1d1351d548c444fbc5811e8ca57b2353 | Java | geekplus001/java | /对象一对多和多对多关系/src/对象一对多和多对多关系/manytomany/ManeToManyDemo.java | GB18030 | 545 | 3.15625 | 3 | [] | no_license | package һԶͶԶϵ.manytomany;
public class ManeToManyDemo
{
public static void main(String[] args)
{
Teacher t1 = new Teacher("ʦ",18);
Teacher t2 = new Teacher("ʦ",28);
Student s1 = new Student("С",18);
Student s2 = new Student("С",19);
t1.getStudents().add(s1);
t1.getStudents().add(s2);
t2.ge... | true |
269e31c0f5e856672a2f0237b769af82740fedc1 | Java | Felipe-Cesar/Estrutura_de_Dados | /ExerciciosEstruturaDados/src/exercicios1503/Exercicio03.java | UTF-8 | 1,004 | 4.21875 | 4 | [
"MIT"
] | permissive | package exercicios1503;
import java.util.Scanner;
/*
Crie um vetor A de inteiro e cadastre 5 números. Depois
implemente um vetor B que deverá conter os elementos do vetor A
elevados ao quadrado.
*/
public class Exercicio03 {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.... | true |
1899b7d4568e73d7cbd104c9627302672aa9bd23 | Java | tianjia0604/study | /牛客练习/practice_11/Main.java | UTF-8 | 1,239 | 4.03125 | 4 | [] | no_license | package practice_11;
import java.util.Scanner;
/**
* 个位数字统计
* 给定一个k位整数N = dk-1*10k-1 + ... + d1*101 + d0 (0<=di<=9, i=0,...,k-1, dk-1>0),请编写程序统计每种不同
* 的个位数字出现的次数。例如:给定N = 100311,则有2个0,3个1,和1个3。
* 输入描述:
* 每个输入包含1个测试用例,即一个不超过1000位的正整数N。
* 输出描述:
* 对N中每一种不同的个位数字,以D:M的格式在一行中输出该位数字D及其在N中出现的次数M。要求按D的
* 升序输出。
* 示例1:
... | true |
d57c5f9f89031647eeae89029d73b7362223d568 | Java | Hymas-Landon/GDPTuning | /app/src/main/java/com/gdptuning/gdptuning/FeaturesActivity.java | UTF-8 | 33,587 | 1.554688 | 2 | [] | no_license | package com.gdptuning.gdptuning;
import android.annotation.SuppressLint;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.support.design.widget.TabLay... | true |
f773abcba3185fd5e7c6fb08467fdb73b96c997f | Java | FeyinPub/feyin-app-demo | /src/main/java/net/feyin/openapi/service/FeyinAppService.java | UTF-8 | 2,145 | 2.28125 | 2 | [] | no_license | package net.feyin.openapi.service;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import net.feyin.openapi.exception.ResponseException;
import net.feyin.openapi.model.FeyinAuthMember;
import net.feyin.openapi.model.FeyinAuthMemberInfo;
import net.feyin.openapi.model.auth.Token;
im... | true |
faee93a58487cc4ebb747f0e6ddc7ba9c2fcfb7f | Java | nanko89/JavaAdvance | /Archive/LinearDataStructuresExercises/P13RecursiveFibonacci.java | UTF-8 | 525 | 3.171875 | 3 | [] | no_license | package LinearDataStructuresExercises;
import java.util.Scanner;
public class P13RecursiveFibonacci {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
long first = 0;
long second = 1;
long third... | true |
00595b74f54cdfe62693a3d868c46c80d0d58e63 | Java | durgaktkm/cassandra-poc | /src/test/java/co/mimosa/cassandra/parser/LoadTestPhystats.java | UTF-8 | 1,998 | 2.125 | 2 | [] | no_license | package co.mimosa.cassandra.parser;
import co.mimosa.kafka.valueobjects.GateWayData;
import com.amazonaws.util.StringUtils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import org.codehaus.jackson.JsonNode;
import java.io.IOExceptio... | true |
a2aa136991e8f489815f99f3d05c8d744d1eb141 | Java | MarcosBarreiroOtero/ewic-clientsApp | /ClientsApp/app/src/main/java/es/ewic/clients/model/Client.java | UTF-8 | 1,326 | 2.328125 | 2 | [] | no_license | package es.ewic.clients.model;
import java.io.Serializable;
public class Client implements Serializable {
private int idClient;
private String idGoogleLogin;
private String firstName;
private String lastName;
private String email;
public Client(int idClient, String idGoogleLogin, String firs... | true |
1511d9383b77e198bd5590be91752517a24808dc | Java | laki098/isa-popravni2kol | /restorani_plugin/src/main/java/app/security/model/RegistrovaniSistem.java | UTF-8 | 806 | 2.375 | 2 | [] | no_license | package app.security.model;
import app.model.AbstractEntity;
import javax.persistence.Entity;
@Entity
public class RegistrovaniSistem extends AbstractEntity {
private String korisnickoIme;
private String lozinka;
public RegistrovaniSistem(Long id, Integer version, String korisnickoIme, String lozinka) {... | true |
505c48f1f46232801eb522a51a54aa077b413276 | Java | RizkyMIqbal16/RekamMedisApps | /app/src/main/java/com/example/rekammedisapps/Adapter/ListPasienAdapter.java | UTF-8 | 6,440 | 1.84375 | 2 | [] | no_license | package com.example.rekammedisapps.Adapter;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.... | true |
2f762dab8572174efe780103aa212a44a4330bc8 | Java | abdu22/Algorithm | /Misc/src/TwoDArray.java | UTF-8 | 1,689 | 3.65625 | 4 | [] | no_license |
public class TwoDArray {
public static void main(String[] args) {
int a [] [] = {{1,2,3,4},{5,6,7,8},{9,10,11,12}} ;
//print the initial array
System.out.println("--------------------");
System.out.println("the initial 2d array");
System.out.println("--------------------");
for(int i=0; i<a.length;... | true |
44188091f0dc6dd7d6d8ff7df503fecef2aa1a39 | Java | sd-2017-30233/assignment-1-PopLaura | /Bank/src/business/ValidareClient.java | UTF-8 | 554 | 2.625 | 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 business;
import static java.lang.Integer.parseInt;
import static java.lang.Long.parseLong;
/**
*
* @author maria
*/
publi... | true |
88abf0b59f36cfc28b1844a462bbb866e477d690 | Java | thangduong-99/springbootall | /src/main/java/com/congthang/controller/SignUpController.java | UTF-8 | 3,519 | 2.296875 | 2 | [] | no_license | package com.congthang.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
import org.springframe... | true |
b6efe8ef9f5f6fc2050c78bc1c74241402917248 | Java | xiYan-02/MyCloudMusicAndroidJava | /app/src/main/java/com/ixuea/courses/mymusic/domain/SheetDetailWrapper.java | UTF-8 | 347 | 2.125 | 2 | [] | no_license | package com.ixuea.courses.mymusic.domain;
/**
* 歌单详情包裹对象
*
* 只是用来测试
*/
public class SheetDetailWrapper {
/**
* 歌单详情
*/
private SheetDetail data;
public SheetDetail getData() {
return data;
}
public void setData(SheetDetail data) {
this.data = data;
}
}
| true |
877ad8c99fb8fa5ec72c611fa7fa33094aae8ac9 | Java | moutainhigh/water-project | /water-iot-api/src/main/java/com/space/water/iot/api/scheduled/IotTefreshTokenScheduledTask.java | UTF-8 | 1,406 | 2.125 | 2 | [] | no_license | package com.space.water.iot.api.scheduled;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import or... | true |
011bd126360e481e375bbd5d077425ecb680db05 | Java | lamlam18/BaiTapBuoi2 | /BaiTapQuanLySV/src/main/main.java | UTF-8 | 2,599 | 2.828125 | 3 | [] | no_license | package main;
import java.util.Scanner;
import QuanLySinhVien.OOP.QuanLy;
import QuanLySinhVien.OOP.SinhVien;
public class main {
public static void main(String[] args) {
// TODO Auto-generated method stub
QuanLy quanLy = new QuanLy();
Scanner sc = new Scanner(System.in);
int luaChon;
boolean run =... | true |
bd3abc8f3a63bc56dc9d4b1f4e9303c0ebc1898c | Java | Team2152/PowerUpPublic | /PowerUp/src/org/usfirst/frc/team2152/robot/ControllerMap.java | UTF-8 | 4,122 | 2.109375 | 2 | [] | no_license | package org.usfirst.frc.team2152.robot;
import edu.wpi.first.wpilibj.Joystick;
public class ControllerMap {
// -----Shared Commands-----
private static Joystick driver = null;
private static Joystick operator = null;
public static Joystick elevatorJoystick = null;// Robot.m_oi.operatorXbox;
public stati... | true |
190cab534212c8cd265e7898dbde4823c65b10ac | Java | lmhkkang/BoogieBook | /src/main/java/com/boogie/admin/service/AdminServiceImp.java | UTF-8 | 20,524 | 2.53125 | 3 | [] | no_license | package com.boogie.admin.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework... | true |
d5cbb57ff2f9525de696eefc3e22832d4bc7ca5f | Java | aa5816/java | /small console game/Driver.java | UTF-8 | 26,765 | 2.796875 | 3 | [] | no_license |
import java.io.*;
import java.util.*; import java.lang.*; import java.awt.MouseInfo;
public class Driver extends Thread
{
static int[] x=new int[27];
public static int j=0;
static int x2=40;
public static int d=0;
static int score1=0;
private static Scanner scan;
public static void main... | true |
156fd9e06c01e5748494eb50d662f2aeeca2f27a | Java | deonna/twitter-client | /app/src/main/java/com/deonna/twitterclient/events/UsersListCallback.java | UTF-8 | 249 | 1.8125 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.deonna.twitterclient.events;
import com.deonna.twitterclient.models.User;
import java.util.List;
public interface UsersListCallback {
void onUsersReceived(List<User> newUsers, Long nextCursor);
void onUsersReceivedError();
}
| true |
9500d6ccc95d52687e01d1375dfba2adca4f6980 | Java | dankosorkin/822-124 | /coupon.system/src/coupon/system/core/pools/ConnectionPool.java | UTF-8 | 1,411 | 2.796875 | 3 | [] | no_license | package coupon.system.core.pools;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import coupon.system.core.exceptions.CouponSystemException;
public class ConnectionPool {
private Set<Co... | true |
4a8154ba632d92f4b53f7990bf1484330e0b3c58 | Java | myusufcse/extentreports-java | /src/test/java/com/relevantcodes/extentreports/view/extenthtml/TestWithoutLogsHasPassStatus.java | UTF-8 | 1,501 | 2.25 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package com.relevantcodes.extentreports.view.extenthtml;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.relevantcodes.extentreports.Base;
import com.relevantcod... | true |
5839953f0bd80976809a68b8ea5ff80088612bd2 | Java | tasya671/JavaRushTasks | /4.JavaCollections/src/com/javarush/task/task32/task3210/Solution.java | UTF-8 | 834 | 3.046875 | 3 | [] | no_license | package com.javarush.task.task32.task3210;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
/*
Используем RandomAccessFile
*/
public class Solution {
public static void main(String... args) throws IOException {
if(args.length <3)
return;
... | true |
e01804e9e9f64780a5bfa1bfb32f1a5ab74fda94 | Java | ncuello/spring | /src/main/java/net/sysone/app/repository/BannersRepository.java | UTF-8 | 284 | 1.804688 | 2 | [] | no_license | package net.sysone.app.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import net.sysone.app.model.Banner;
public interface BannersRepository extends JpaRepository<Banner, Integer> {
List<Banner> findByEstatus(String estatus);
}
| true |
7993b1aeaca386c4c2f9ade8b446f84e15763d0e | Java | mmt1611/Java-New-features | /Java8/src/com/eazybytes/java8/PredicateExample.java | UTF-8 | 1,438 | 3.90625 | 4 | [] | no_license | /**
*
*/
package com.eazybytes.java8;
import java.util.Arrays;
import java.util.List;
import java.util.function.Predicate;
import java.util.stream.Collectors;
/**
* @author EazyBytes
*
*/
public class PredicateExample {
/**
* @param args
*/
public static void main(String[] args) {
// Creating a predic... | true |
134203bb9604a076242415eb508213a227a37a1f | Java | whenSunSet/DataEgine | /app/src/main/java/com/example/administrator/policemap/dataEngin/localDataService/database/greenDaoDataBase/PolicePeopleDao.java | UTF-8 | 4,751 | 2.296875 | 2 | [] | no_license | package com.example.administrator.policemap.dataEngin.localDataService.database.greenDaoDataBase;
import android.database.Cursor;
import android.database.sqlite.SQLiteStatement;
import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.Property;
import org.greenrobot.greendao.internal.DaoConfig;
impo... | true |
922d6a1836806039a1e76211e589c5f4b7492075 | Java | acastroy/safiserver-all | /CoreActionPak1Model/src/com/safi/workshop/model/actionpak1/ActionPak1Activator.java | UTF-8 | 767 | 1.914063 | 2 | [] | no_license | package com.safi.workshop.model.actionpak1;
import java.util.logging.Logger;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
public class ActionPak1Activator implements BundleActivator {
private final static Logger log = Logger.getLogger(ActionPak1Activator.class.getNam... | true |
27e91ef84a678a052bb0d5bd6e38cbeb24b5e170 | Java | wj19940612/FinanceAnd | /app/src/main/java/com/sbai/finance/model/mine/UserAttentionModel.java | UTF-8 | 3,117 | 1.945313 | 2 | [] | no_license | package com.sbai.finance.model.mine;
/**
* Created by ${wangJie} on 2017/4/28.
*/
public class UserAttentionModel {
/**
* createTime : 1493654400000
* followUserId : 71
* followuserName : 用户213
* id : 63
* userId : 86
* userName : 溺水的鱼
* userPortrait : https://esongtest.oss-c... | true |
f2c4efe8708c666d9dc8cef74e2052f4b5b5128c | Java | maheshpd/KotlinLocationUpdateInBackground | /app/src/main/java/com/healthbank/adapter/VitalAdapter.java | UTF-8 | 1,285 | 2.359375 | 2 | [] | no_license | package com.healthbank.adapter;
import android.content.Context;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.healthbank.R;
import com.healthbank.classes.Vitalsdata;
import java.util.ArrayList;
/**
* Created... | true |
2e522432d121fe6b8c3ec6d898d67cc31ba306c2 | Java | curquhart/securejson | /src/main/java/com/chelseaurquhart/securejson/ListReader.java | UTF-8 | 3,885 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Chelsea Urquhart
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | true |
3f164a9c296d5c68278138029d00b8ea15a18b63 | Java | TouK/wsht | /ht-services/src/test/java/pl/touk/humantask/model/TaskIntegrationTest.java | UTF-8 | 2,410 | 2.28125 | 2 | [] | no_license | package pl.touk.humantask.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import javax.annotation.Resource;
import javax.xml.xpath.XPathConstants;
import org.junit.Assume;
import org.junit.Test;
import org.springframework.test.context.ContextConfiguration;
import org... | true |
4a99150296a2c442e4d3f39d5599d38dd05d5569 | Java | Touqi634/Smart_Mobile | /TRIO/Fitness_app/app/src/main/java/org/fhict/fitness_app/WeightActivity.java | UTF-8 | 2,838 | 2.453125 | 2 | [] | no_license | package org.fhict.fitness_app;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import com.google.android.gms.tasks.OnSuccessListener;
import com.google.firebase.auth.Fireb... | true |
3175d77e3505304dab832363d47ee56a361c5213 | Java | renshuaishuai/leetcode | /src/main/java/com/natsu/leetcode/LeetCode1365.java | UTF-8 | 1,150 | 3.734375 | 4 | [] | no_license | package com.natsu.leetcode;
import java.util.Arrays;
/**
* 1365. 有多少小于当前数字的数字
* 给你一个数组 nums,对于其中每个元素 nums[i],请你统计数组中比它小的所有数字的数目。
* <p>
* 换而言之,对于每个 nums[i] 你必须计算出有效的 j 的数量,其中 j 满足 j != i 且 nums[j] < nums[i] 。
* <p>
* 以数组形式返回答案。
*
* @author shuaishuai.ren
* @since 2020-10-26
*/
public class LeetCode1365 {
... | true |
4bd12cb132d597caf124597c502a35ce1ea56e98 | Java | Rayson-LD/JAVA_Programs | /LeakyDemo.java | UTF-8 | 2,298 | 3.078125 | 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 javaapplication4;
/**
*
* @author HP
*/
import java.util.Scanner;
import java.util.Random;
public class LeakyD... | true |
3c8c770de535ad556a8e78347863d1312332be61 | Java | kits-ab/gakusei | /src/main/java/se/kits/gakusei/util/QuestionHandler.java | UTF-8 | 8,975 | 2.578125 | 3 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | package se.kits.gakusei.util;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.*;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import se.kits.gakusei.content.mod... | true |
74186bada80b1468b10267e6a407bd89ac477678 | Java | pyg/TxCache | /JAVAlibpq/SnapshotTest.java | UTF-8 | 2,012 | 2.484375 | 2 | [] | no_license | import java.util.Date;
public class SnapshotTest {
public static String executeq(String command, String conn) throws Exception{
String res = TxCache.TxPQexec(conn, command);
String result = "";
for (int i = 0; i < TxCache.PQntuples(res); ++i) {
for (int j = 0; j < TxCache.PQnfields(res)... | true |
715e871f54d8c1eb66762a033b4ce7459f4cd762 | Java | milybarrios/Sistema-de-Hotel | /src/py/com/hoteleria/form/FormDetalle.java | UTF-8 | 5,264 | 2.46875 | 2 | [] | no_license | package py.com.hoteleria.form;
/**
* @author Hermenegildo
*/
import java.awt.EventQueue;
import javax.swing.JDialog;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JPanel;
import jav... | true |
47b3bbb87a881fb42cdd604dda9222e99553ce06 | Java | bambooJohn/web | /workspace-sts-3.9.4.RELEASE/day28_code/src/com/bambooJohn/test02/jdbc/TestJDBC2.java | UTF-8 | 2,914 | 2.953125 | 3 | [] | no_license | package com.bambooJohn.test02.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import org.junit.Test;
/**
* 步骤:
* 1、注册驱动
* 三部曲:(1)把jar复制到libs (2)把jar添加到Build path中(3)加载驱动类
* 2、建立连接
* 获取Connection对象
* 3、执行sql
* (1)编写sql
* (2)创建Statement
*... | true |
16567e1c001459dd8f3e83e7c8e55f1181bdb620 | Java | bhagath210/InheritanceTypes | /MultilevelInheritanceEx.java | UTF-8 | 1,762 | 3.984375 | 4 | [] | no_license | package com.pioneercoders.inheritance;
class Teams {
int JerseyNumber;
String TeamName;
String Name;
Teams() { // default constructor in super class
}
Teams(String TeamName, String Name, int JerseyNumber) // constructor with parameters in super class
{
this.TeamName = TeamName; // initializing... | true |
cc6120fce4d11ad000c95b6b62588b68543b3463 | Java | HimanskDevStuff/FoodFreak | /app/src/main/java/com/example/foodfreak/com/foodfreak/main/user/SplashScreen_foodfreak.java | UTF-8 | 6,455 | 1.914063 | 2 | [] | no_license | package com.example.foodfreak.com.foodfreak.main.user;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatImageView;
import android.app.ActivityOptions;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import ... | true |
3bc1829bc5f30783d2c94e8dea4aac000eb14ad3 | Java | salwaelmohandes/CSC223-A4-5 | /src/main/java/Membership.java | UTF-8 | 3,534 | 3.390625 | 3 | [] | no_license | import java.time.LocalDate;
/**
* abstract class Membership that PAYG, Monthly, and Yearly memberships will extend
* Allows for less redundant code between membership classes
*/
public abstract class Membership {
/** total rides left that come included with membership */
private int totalRidesLeft;
/*... | true |
c991a65020fbc8892beb086a600def80dd8784b4 | Java | Silvanam1/clases-codo-a-codo-Java | /src/clase4/Direccion.java | UTF-8 | 302 | 3 | 3 | [] | no_license | package clase4;
public class Direccion {
private final String calle;
private final int numero;
public Direccion(String calle, int numero) {
this.calle = calle;
this.numero = numero;
}
public String getDirection(){
return this.calle + this.numero;
}
}
| true |
9c1b7560c890bf6260ae6c93405122d299c210c4 | Java | KH-Zhang/thinking-in-spring | /dependency-injection/src/main/java/org/zxb/thinking/in/spring/ioc/dependency/injection/annotaion/UserGroup.java | UTF-8 | 490 | 2 | 2 | [] | no_license | package org.zxb.thinking.in.spring.ioc.dependency.injection.annotaion;
import org.springframework.beans.factory.annotation.Qualifier;
import java.lang.annotation.*;
/**
* 用户组注解,扩展 {@link Qualifier}
*
* @author Mr.zxb
* @date 2020-07-11 18:01
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMET... | true |
c25db46e5ede1d95f3d1078d223c22b6b6259e4a | Java | elfiec/protobuf-swarm | /lib/src/main/java/com/gmail/spb/elf/protobuf/swarm/travel/SwarmTraveler.java | UTF-8 | 919 | 2.59375 | 3 | [
"MIT"
] | permissive | package com.gmail.spb.elf.protobuf.swarm.travel;
import com.gmail.spb.elf.protobuf.swarm.model.Field;
import com.gmail.spb.elf.protobuf.swarm.model.Message;
import com.gmail.spb.elf.protobuf.swarm.model.Type;
import java.util.Optional;
/**
* @author Dmitrii Sukhikh
*/
public class SwarmTraveler {
private fina... | true |
7c27f1f13d45801b17b403bf20fe7597a5fdc696 | Java | DKisKING/byD8qrUKLS2QkYrv-Server | /src/com/vencillio/core/util/Highscores.java | UTF-8 | 2,439 | 2.640625 | 3 | [] | no_license | package com.vencillio.core.util;
import java.sql.PreparedStatement;
import com.vencillio.core.network.mysql.Database;
import com.vencillio.rs2.entity.player.Player;
import com.vencillio.rs2.entity.player.PlayerConstants;
public class Highscores implements Runnable {
private Player player;
public Highscores(P... | true |
27b05f69ea9943d75aed79d55ced86d717883a45 | Java | Liwu-di/spring-cloud-check-system | /graduate-design-user-info-manage-service/src/main/java/fun/liwudi/graduatedesignuserinfomanage/rest/UserCompanyRelationRest.java | UTF-8 | 4,525 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package fun.liwudi.graduatedesignuserinfomanage.rest;
import fun.liwudi.graduatedesignuserinfomanage.constants.Constants;
import fun.liwudi.graduatedesignuserinfomanage.domain.JsonResponse;
import fun.liwudi.graduatedesignuserinfomanage.domain.UserConf;
import fun.liwudi.graduatedesignuserinfomanage.helper.JsonRespons... | true |
f17792b4c98292bff3ede9bc34f6f0e40789e265 | Java | GenesisVision/android-client | /app/src/main/java/vision/genesis/clientapp/ui/SettingsSwitchButton.java | UTF-8 | 1,810 | 2.328125 | 2 | [] | no_license | package vision.genesis.clientapp.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.SwitchCompat;
import butterknife.BindView;
import butterknife.ButterKnife;
import vision.genesis.clientapp.R;
... | true |
de5f999c2ff7998857d4c6d9210c7f42eb0d9a7c | Java | SongHeeJae/trading_parking_ticket | /src/test/java/com/kuke/parkingticket/service/alarm/AlarmServiceTest.java | UTF-8 | 5,424 | 1.984375 | 2 | [] | no_license | package com.kuke.parkingticket.service.alarm;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.kuke.parkingticket.entity.Region;
import com.kuke.parkingticket.entity.Town;
import com.kuke.parkingticket.model.dto.message.MessageCreateR... | true |
7bb1de594daac5c0a6388ab857cac59c74deaafa | Java | grazianiborcai/Agenda_WS | /src/br/com/mind5/business/materialGroupStore/model/action/MatoporeVisiMergeMatore.java | UTF-8 | 1,421 | 2.09375 | 2 | [] | no_license | package br.com.mind5.business.materialGroupStore.model.action;
import java.util.List;
import br.com.mind5.business.materialGroupStore.info.MatoporeInfo;
import br.com.mind5.business.materialGroupStore.info.MatoporeMerger;
import br.com.mind5.business.materialStore.info.MatoreCopier;
import br.com.mind5.busines... | true |
529b74c9dc5f918aabeccbd90864c9c5e9f97b5d | Java | 859162000/infosystem | /ims-intfsh/src/main/java/com/ailk/ims/business/crminterface/privilege/QueryEntitysByOpIdBean.java | UTF-8 | 3,960 | 1.898438 | 2 | [] | no_license | package com.ailk.ims.business.crminterface.privilege;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.ailk.easyframe.web.common.exception.BaseException;
import com.ailk.ims.business.crminterface.bo.RoleGrandInfo;
import com.ailk.ims.common.BaseBusiBean;
import com.ailk.ims.define.Erro... | true |
c8340bd8b96bd9a0f031103a4d6bf908bc98fee0 | Java | Galg8/ItStepPublic | /l7_homework02/src/Task1/Task1.java | UTF-8 | 2,993 | 3.65625 | 4 | [] | no_license | package Task1;
import java.util.Arrays;
import java.util.List;
public class Task1 {
public static void main(String[] args) {
/*
Task 1
Develop and test a set of classes to solve the task of calculating the wage of employees of a certain company.
The company has several methods of remuneration ... | true |
ec7ff449746c96b032fa312aa962119ecc984277 | Java | LadyCailin/PureUtilities | /src/main/java/com/methodscript/PureUtilities/ThreadPump.java | UTF-8 | 6,432 | 3.140625 | 3 | [] | no_license | package com.methodscript.PureUtilities;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.Callable;
/**
* This class provides a framework of simple hooks to run critical code on the main thread for code that is running off
* the main thread.
*
* The main operations for code that use... | true |
e3d508aa976cee86d4a96c32d0050999cdf7906a | Java | MASurganova/restaurantVoting | /src/test/java/ru/voting/service/mock/InMemoryVotingServiceTest.java | UTF-8 | 7,081 | 2.109375 | 2 | [] | no_license | package ru.voting.service.mock;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRun... | true |
979ba306e33399051e68455e118719c855eb2f23 | Java | zhaowei2530/multi-thread | /src/test/thread/TestStatic.java | UTF-8 | 410 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | package test.thread;
public class TestStatic {
static volatile int i = 0, j = 0;
static void one() {
i++;
j++;
}
static void two() {
if (i != j) {
System.out.println("假 i=" + i + " j=" + j);
// 正常退出
System.exit(0);
}
if (i == j... | true |
63675457bc07bdc4e6b8c181e6bceb545b9ef9c3 | Java | Krzemien/java-social-network | /src/main/java/pl/krzemien/javasocialnetwork/model/UserSex.java | UTF-8 | 86 | 1.796875 | 2 | [] | no_license | package pl.krzemien.javasocialnetwork.model;
public enum UserSex {
MALE, FEMALE
} | true |
8717aaaab4fb61470d81f6e4117d093bba60ddfa | Java | mipcdn/NswtOldPF | /src/main/java/com/nswt/cms/webservice/CmsServiceImpl.java | GB18030 | 7,084 | 2.171875 | 2 | [] | no_license | package com.nswt.cms.webservice;
import com.nswt.cms.api.ArticleAPI;
import com.nswt.cms.api.CatalogAPI;
import com.nswt.cms.api.MemberAPI;
import com.nswt.cms.api.UserAPI;
import com.nswt.cms.datachannel.Publisher;
import com.nswt.framework.data.QueryBuilder;
import com.nswt.framework.messages.LongTimeTask;
... | true |
cb3f20fb00ac88c084361effff91f2d578045a6e | Java | yangtree21st/Maven.Cohort5-Quiz2 | /src/main/java/com/zipcodewilmington/assessment2/part2/Router.java | UTF-8 | 600 | 2.890625 | 3 | [] | no_license | package com.zipcodewilmington.assessment2.part2;
import java.util.TreeMap;
public class Router {
TreeMap<String, String> router = new TreeMap<>();
public void add(String path, String controller) {
router.put(path,controller);
}
public Integer size() {
return router.size();
}... | true |
990b8c5141c53bd8a7149e7e7b8048e116c6c1e8 | Java | antonzabirko/codingChallenges | /src/URLify/URLify.java | UTF-8 | 1,130 | 3.6875 | 4 | [] | no_license | package URLify;
public class URLify {
// Best that comes to mind is O(n).
public static String urlify(String s) {
int length = s.length(),
spaces = 0,
outLength = 0,
count = s.length() - 1;
char[] url;
// Count spaces first to create a char array lar... | true |
da16452973f85f215277bbdb5f5b3019301860b9 | Java | wang369073048/jifenserver2 | /score-biz/src/main/java/org/trc/biz/goods/IGoodsBiz.java | UTF-8 | 4,086 | 2.015625 | 2 | [] | no_license | package org.trc.biz.goods;
import com.trc.mall.externalservice.dto.CouponDto;
import com.trc.mall.externalservice.dto.TairanCouponDto;
import org.trc.domain.goods.GoodsClassificationRelationshipDO;
import org.trc.domain.goods.GoodsDO;
import org.trc.domain.query.GoodsQuery;
import org.trc.exception.CouponException;
im... | true |
b7df2e81cac68e826f71101555ad6ee958814cf9 | Java | cesxl/gchat | /core/src/main/java/com/demo/common/utils/EncodeUtil.java | UTF-8 | 970 | 2.5625 | 3 | [] | no_license | package com.demo.common.utils;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Hex;
import org.apache.shiro.crypto.hash.Hash;
import org.apache.shiro.crypto.hash.SimpleHash;
public class EncodeUtil {
/**
* Hex解码.
*/
public static byte[] decodeHex(String inpu... | true |
769c09f0b1f8f956976c07957ce26d10c7f8c857 | Java | alana-engel/softexpert-programa-estagio | /10-biblioteca-jdbc/sistema-biblioteca/src/main/java/br/com/softexpert/library/user/author/UpdateAuthor.java | ISO-8859-1 | 1,866 | 2.9375 | 3 | [] | no_license | package br.com.softexpert.library.user.author;
import javax.swing.JOptionPane;
import br.com.softexpert.library.entity.Author;
import br.com.softexpert.library.interfaces.Operations;
import br.com.softexpert.library.library.DateOperations;
import br.com.softexpert.library.operations.db.AuthorDao;
public class Updat... | true |
f856c6a96246d75ba0123026494c5dfea8b9e04d | Java | jojo0899/Programming-Project | /BeddelEvent/src/Functionalities/User.java | UTF-8 | 259 | 1.765625 | 2 | [] | no_license | package Functionalities;
public class User {
public static String username ="";
public static String firstName="";
public static String lastName="";
public static String gender="";
public static String passwort="";
public static String email="";
}
| true |
d9ed661500d43f92f09109f2cc6108a67ed5cf70 | Java | designreuse/transport-robo | /trobo/src/main/java/com/abcc/trobo/service/impl/TripSheetServiceImpl.java | UTF-8 | 18,520 | 2.0625 | 2 | [] | no_license | package com.abcc.trobo.service.impl;
import java.awt.Color;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.ut... | true |
4d5dd05447a49de453628264a8e3b40a5d7a20b7 | Java | zqq794681545/GodGoddess | /GodGoddess/src/com/godgoddess/base/entity/TBaseMenuEntity.java | UTF-8 | 1,737 | 2.0625 | 2 | [] | no_license | package com.godgoddess.base.entity;
/**
* @ClassName com.kingtopinfo.base.entity.TBaseMenuEntity
* @Description T_BASE_MENU表映射实体类
* @author dzb@kingtopinfo.com
* @date 2014-02-20 09:12:37
* @version 1.0
* @remark create by generator
*/
public class TBaseMenuEntity {
private String url;
privat... | true |