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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b9178d51a7d05626da0a8e0b4f1f00cd27a91ce9 | Java | dolphinWu/carsharing | /src/main/java/com/ziroom/utils/PriceCalculateUtil.java | UTF-8 | 7,819 | 2.625 | 3 | [] | no_license | package com.ziroom.utils;
import com.ziroom.constant.PriceCalculateType;
import com.ziroom.constant.PriceDiscountType;
import com.ziroom.exception.BusinessException;
import com.ziroom.model.DriverOrderEntity;
import com.ziroom.model.DriverPlanEntity;
import com.ziroom.model.PassengerOrderEntity;
import lombok.extern.s... | true |
281d8509c908e64217f3de6aa6f0446f1922e7a2 | Java | quirinal36/Mansung.com | /src/main/java/www/mansung/com/service/RecommendService.java | UTF-8 | 1,006 | 1.914063 | 2 | [] | no_license | package www.mansung.com.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import www.mansung.com.dao.RecommendDAO;
import www.mansung.com.vo.Recommend;
@Component("recommendService")
public class RecommendService implement... | true |
b172917af43a6894a50529b338548f018a370919 | Java | bogdankolomiiets/Courses | /src/main/java/com/bogdan/kolomiiets/tasks/Task_06_MostCommonSymbol.java | UTF-8 | 1,169 | 3.46875 | 3 | [] | no_license | package com.bogdan.kolomiiets.tasks;
import java.util.HashMap;
import java.util.Map;
public class Task_06_MostCommonSymbol {
protected static String needToCheck = "aaAAsd***** @@@@@@@@@@@@...../,.,";
protected static char symbol = ' ';
public static void main(String[] args) {
System.out.println(c... | true |
9757b9dcb6ae63cc5556f393d1ea8f4c01c3ff29 | Java | mmmmx123/tick_oa | /tick_oa/src/main/java/com/qfedu/controller/UserRoleController.java | UTF-8 | 1,253 | 2 | 2 | [] | no_license | package com.qfedu.controller;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
imp... | true |
1885a84e352b5e0123802f2afba61422da7981be | Java | dmitriy70494/study | /chapter_011_car_sale/src/main/java/ru/job4j/controllers/SpringController.java | UTF-8 | 5,953 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package ru.job4j.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.security.core.Authentication;
import org.springframework.security.cor... | true |
939836a700a3753a1bd6415bcdb25d6e9b027980 | Java | akondasif/train-ticket | /ts-auth-service/src/main/java/auth/controller/UserController.java | UTF-8 | 2,011 | 1.992188 | 2 | [] | no_license | package auth.controller;
import auth.dto.BasicAuthDto;
import auth.entity.User;
import auth.service.TokenService;
import auth.service.UserService;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import edu.fudan.common.util... | true |
2d3fc007f6c0f22779c7bdb862b0d1357ba979f5 | Java | Kdsaid/CleanMVP | /LMDriverApp/src/main/java/com/appzoneltd/lastmile/driver/features/main/home/HomeViewBinder.java | UTF-8 | 871 | 1.742188 | 2 | [] | no_license | package com.appzoneltd.lastmile.driver.features.main.home;
import android.view.View;
import com.appzoneltd.lastmile.driver.R;
import com.base.presentation.annotations.interfaces.BindLayout;
import com.base.presentation.annotations.interfaces.Presenter;
import com.base.presentation.base.abstracts.features.ViewBinder;
... | true |
044abe3973b4c42197642332886bd4a7aeef603c | Java | JavierCordero1989/Algoritmos_y_estructuras_de_datos | /src/monticulos/PruebaMonticulo.java | UTF-8 | 1,103 | 3.4375 | 3 | [] | no_license | package monticulos;
/**
*
* @author Javi Cordero
*/
public class PruebaMonticulo
{
public static void main(String args[])
{
int prioridades[] = {6,5,3,1,8,7,2,4};
Tarea tareas[] = new Tarea[8];
/*Crea las tareas y las guarda en un arreglo*/
for(int i=... | true |
dccbaa24001dd4916f0f76c791287fb18450734b | Java | manjeetkagada/StackUsingArrary | /src/Main.java | UTF-8 | 584 | 2.359375 | 2 | [] | no_license | public class Main {
public static void main(String[] args) {
Stack stack=new Stack();
stack.push(10);
stack.push(20);
stack.push(30);
stack.push(40);
stack.push(50);
// stack.pop();
stack.peek();
stack.show();
stack.pop();
Syst... | true |
731e5fe5704d9d9ddc8d826d670a86f9fba23557 | Java | boxers999/fibers | /src/main/java/com/fibers/http/FiberHttpClientTest.java | UTF-8 | 1,873 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package com.fibers.http;
import co.paralleluniverse.fibers.Fiber;
import co.paralleluniverse.fibers.SuspendExecution;
import java.io.IOException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
/**
* Created by mohan.pandian on 07/0... | true |
5baa95dba377b1360ca6599bbad2eab3295c7353 | Java | rezar1/JsonSqlQuery | /src/main/java/com/extensions/logmonitor/config/LogConfigValidator.java | UTF-8 | 617 | 2.4375 | 2 | [] | no_license | package com.extensions.logmonitor.config;
import org.apache.commons.lang.StringUtils;
/**
* @author Florencio Sarmiento
*
*/
public class LogConfigValidator {
public static void validate(Log log) {
if (StringUtils.isBlank(log.getLogDirectory())) {
throw new IllegalArgumentException("Log directory must not b... | true |
9c3821ce0506c3b9dfdb8494d9b443d1f71f8efe | Java | rkausch/opensphere-desktop | /open-sphere-base/overlay/src/main/java/io/opensphere/overlay/GlobeBackgroundManager.java | UTF-8 | 9,017 | 2.1875 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | package io.opensphere.overlay;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JButton;
import javax.swing.JCheckBox... | true |
731a0f3c96abe6fc82921bed2601962042db88f0 | Java | akaanug/CitizensOfTheWorld | /mainCode/Country.java | UTF-8 | 5,334 | 2.859375 | 3 | [] | no_license | package mainCode;
import java.util.Observable;
import mainCode.pictureClasses.*;
import java.awt.Point;
import java.io.Serializable;
/**
* creating country object and its questions
* @author Batuhan Gelgi
* @version 12.05.2019
*/
public class Country extends Observable implements Serializable
{
... | true |
fdf246deeddb82ee7ee5f779c0be8cbfd78200a4 | Java | jegasmlm/Code-Examples | /MoneyApp/main/java/com/jega/money/dao/EquityAccount.java | UTF-8 | 790 | 2.6875 | 3 | [] | no_license | package com.jega.money.dao;
import static com.jega.money.dao.Account.AccountOperations;
/**
* Created by jegasmlm on 4/3/2015.
*/
public class EquityAccount extends Account implements AccountOperations {
public EquityAccount() {
}
public EquityAccount(float amount) {
super(amount)... | true |
00dda9f70b8401501d69bb33981631f6ecb0e8d1 | Java | J0SEBA/Sociedad | /src/sociedad/DialogoRegistrarConsumicion.java | ISO-8859-1 | 10,461 | 2.25 | 2 | [] | no_license | package sociedad;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.sql.SQLExcepti... | true |
6fb16caf4d27ba023dd5544ba85c2249363c9b54 | Java | zense10827/linebot-qna | /src/main/java/com/ecorp/linebot/LineBotApplication.java | UTF-8 | 5,972 | 2.03125 | 2 | [] | no_license | package com.ecorp.linebot;
import com.ecorp.linebot.config.BotState;
import com.ecorp.linebot.config.RegisterState;
import com.ecorp.linebot.service.MessageService;
import com.linecorp.bot.model.event.Event;
import com.linecorp.bot.model.event.MessageEvent;
import com.linecorp.bot.model.event.message.TextMessageConten... | true |
669d10a1285008d0375f7af4a252795b0c13ff4e | Java | NG-Studio-Development/FriendStep | /app/src/main/java/com/ngstudio/friendstep/testc/MyAdapter.java | UTF-8 | 2,796 | 2.46875 | 2 | [] | no_license | package com.ngstudio.friendstep.testc;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.ngstudio.friendstep.R;
import com.ngstudio.friendstep.ui.adapters.BaseArrayAdapter;
i... | true |
98b4ea026a503a764ebe0d0821d05c533b95aa1c | Java | qaqbeb/CIMS | /demo/src/main/java/com/example/demo/tools/parseString.java | UTF-8 | 3,096 | 2.578125 | 3 | [] | no_license | package com.example.demo.tools;
import java.util.HashMap;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.Goods;
import com.example.demo.entity.Warehouse;
import com.example.demo.mapper.GoodsMapper;
import com.example.demo.mapper.WarehouseMapper;
public class parseS... | true |
0458cb81f82144653ca911f8a4609dec4d3303d0 | Java | msoro/stanford-karel | /CheckerboardKarel.java | UTF-8 | 2,116 | 3.453125 | 3 | [] | no_license | /*
* File: CheckerboardKarel.java
* ----------------------------
* When you finish writing it, the CheckerboardKarel class should draw
* a checkerboard using beepers, as described in Assignment 1. You
* should make sure that your program works for all of the sample
* worlds supplied in the starter folder.
*/
i... | true |
89e713830b62d8036c2e306edc7c1d3e0ca9f098 | Java | sangs/MDAOFATM | /src/com/hw/edu/iit/AccountOverdrawn.java | UTF-8 | 744 | 2.5625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.hw.edu.iit;
/**
*
* @author Owner
*/
public class AccountOverdrawn extends ATMState {
final static String CANNOT_WITHDRAW = "Unable to withdraw. Account has been Overdrawn !";
AccountOverdrawn() {
... | true |
2749b13e369ad0ea4095a8092a1bc2cca34902f6 | Java | prasannaganachar/Example | /src/com/basic/wrapper/BoolenType.java | UTF-8 | 428 | 3.03125 | 3 | [] | no_license | package com.basic.wrapper;
public class BoolenType {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Boolean b1 = new Boolean("true");
Boolean b2 = new Boolean("Door");
Boolean b3 = Boolean.parseBoolean("true");
System.out.printl... | true |
7c11300d568b479fdd13a76a04a7d64867a20657 | Java | lgdniubi/kenuo | /src/main/java/com/training/modules/crm/dao/GoodsUsageDao.java | UTF-8 | 704 | 1.9375 | 2 | [] | no_license | package com.training.modules.crm.dao;
import java.util.List;
import com.training.common.persistence.CrudDao;
import com.training.common.persistence.annotation.MyBatisDao;
import com.training.modules.crm.entity.GoodsUsage;
/**
* kenuo
* @description:商品使用DAO接口
* @author:sharp
* @date:2017年3月7日 ... | true |
ca73f07bb474da988b7b36375e8d5cc1757bf627 | Java | moldalieva26/neobis | /week6/web-app-v1/src/test/java/com/furniture/shop/webappv1/tests/CustomerControllerTest.java | UTF-8 | 4,427 | 2.046875 | 2 | [] | no_license | package com.furniture.shop.webappv1.tests;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import stat... | true |
fd2b13d14a5191ca5a7fd6119b55f75deb746073 | Java | virginiapujols/series_hound | /app/src/androidTest/java/com/app/dnuohseires/vilulabs/serieshound/TestSMContract.java | UTF-8 | 1,756 | 2.4375 | 2 | [] | no_license | package com.app.dnuohseires.vilulabs.serieshound;
import android.net.Uri;
import android.test.AndroidTestCase;
import com.app.dnuohseires.vilulabs.serieshound.data.SMDBContract;
/**
* Created by Virginia on 5/31/2015.
*/
public class TestSMContract extends AndroidTestCase {
// intentionally includes... | true |
75d2bc3215c7a44f7b8bd5188a65fb7f0eefd550 | Java | chenguojia/WeChat | /src/main/java/com/cardvalue/wechat/web/MerchantUserController.java | UTF-8 | 44,456 | 1.757813 | 2 | [] | no_license | package com.cardvalue.wechat.web;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import javax.validation.Valid;
import com.cardvalue.wechat.dto.*;
import com.cardval... | true |
74d845d53d1fb56baec2e3ca9e2d5f6611772add | Java | Chinu1995/java | /test/src/test/Array.java | UTF-8 | 645 | 3.65625 | 4 | [] | no_license | package test;
import java.util.Scanner;
public class Array {
public static void main(String[] args) {
/*
* int a[]= {10,20,30,40}; for(int i=0;i<a.length;i++) {
* //System.out.println(a[i]); System.out.println("a["+i+"]"+"="+a[i]); }
*/
Scanner sc=new Scanner(System.in);//create a scanner object
Syste... | true |
3b9329bfb746658436375558223be32de238dea4 | Java | HyoSangKim-Dev/kakaopay_homework | /src/main/java/com/kakao/card/api/controller/SearchController.java | UTF-8 | 1,767 | 2.171875 | 2 | [] | no_license | package com.kakao.card.api.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation... | true |
079d5a8affb8e33b5b4376d0367e249e29924f8c | Java | tchipi88/FormX | /app/src/main/java/com/appli/nyx/formx/ui/viewholder/EnqueteViewHolder.java | UTF-8 | 1,188 | 2.046875 | 2 | [] | no_license | package com.appli.nyx.formx.ui.viewholder;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatImageButton;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.recyclerview.widget.RecyclerView;
import com.appli.nyx.formx.R;
import com.appli.nyx.formx.m... | true |
58860dd31036a931c664e0627decdef003dea8e9 | Java | chairv/springmvc | /src/main/java/com/xml/SerializeXmlUtil.java | UTF-8 | 1,881 | 2.09375 | 2 | [] | no_license | package com.xml;
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.converters.reflection.ReflectionProvider;
public class SerializeXmlUtil{
public static XStream createXstream() {
return new XStream((ReflectionProvider) new SerializeXmlUtil());
}
public static void main(S... | true |
cdb90b8fecb2e49df01c7de9f665a90ee3436c4c | Java | ThiagoBfim/extenso | /src/main/java/org/math/resource/ExtensoResource.java | UTF-8 | 1,791 | 2.515625 | 3 | [
"MIT"
] | permissive | package org.math.resource;
import org.math.enuns.Language;
import org.math.exception.WrongValueException;
import org.math.model.ResponsePorExtenso;
import org.math.service.PorExtensoFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseE... | true |
4b0a9d1ee351d57870e2eb74cf068fbd89ee1116 | Java | haykam821/Breadcrumbs-Fabric | /src/main/java/com/github/evoslab/breadcrumbs/Breadcrumbs.java | UTF-8 | 1,031 | 1.992188 | 2 | [
"MIT"
] | permissive | package com.github.evoslab.breadcrumbs;
import com.github.evoslab.breadcrumbs.registry.BreadcrumbsBlocks;
import com.github.evoslab.breadcrumbs.registry.BreadcrumbsColumnBlocks;
import com.github.evoslab.breadcrumbs.registry.BreadcrumbsItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.loader.api.Fabri... | true |
2a83eecb68711c4dbb5c8245222b4b6e153c3499 | Java | uq-eresearch/gbr-cat | /gbrcat/web/src/main/java/au/edu/uq/eresearch/transformer/RIFCSTransformer.java | UTF-8 | 19,096 | 1.765625 | 2 | [] | no_license | /*
* Copyright (c) 2011, The University of Queensland
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, ... | true |
8d4cf97919aa5bc713f55c6e9be1414862b734d0 | Java | nick-vigg/Viggiani-9772-Assignment5 | /src/test/java/ucf/assignments/FileManagerTest.java | UTF-8 | 950 | 2.6875 | 3 | [] | no_license | /*
* UCF COP3330 Summer 2021 Assignment 5 Solution
* Copyright 2021 Nicholas Viggiani
*/
package ucf.assignments;
import org.junit.jupiter.api.Test;
import java.net.URL;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class FileManagerTest {
//Test cases not required for promp... | true |
5fea3ea776b750257e189c4d42fcee2fd49c4cc2 | Java | lx512634943/--yskjht | /SoJpt-Boot-Staging/src/main/java/com/sojpt/model/base/BaseRelated.java | UTF-8 | 1,195 | 1.851563 | 2 | [] | no_license | package com.sojpt.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract class BaseRelated<M extends BaseRelated<M>> extends Model<M> implements IBean {
public void set... | true |
5b471bc3e915300211c2e2e7947448c3c2711b89 | Java | isabella232/azure-maven-plugins | /azure-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/handlers/artifact/NONEArtifactHandlerImpl.java | UTF-8 | 1,035 | 2.09375 | 2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.maven.webapp.handlers.artifact;
import com.microsoft.azure.common.deploytarget.DeployTarget;
import com.microsoft.azure.co... | true |
774dccbe5b6e6083de8488f5fb1f5ff2350e0a7f | Java | sangjinKIM93/Habit- | /app/src/main/java/com/sangjin/habit/TogetherPlus/TabFragment3.java | UTF-8 | 23,266 | 1.890625 | 2 | [] | no_license | package com.sangjin.habit.TogetherPlus;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Messa... | true |
130f98768e9353e52e1b5d4b428d300f73257a2e | Java | lunasaw/luna-commons | /luna-commons-db/luna-commons-jpa/src/main/java/com/luna/jpa/utils/CriterionConstant.java | UTF-8 | 534 | 2.109375 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package com.luna.jpa.utils;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
public interface CriterionConstant {
enum Operator {
EQ,
NE,
LIKE,
GT... | true |
69940161dd2dd61cc5c5f98dedddb69b2508b1f3 | Java | zouyaowen/boot-learning | /src/test/java/com/zou/learning/gramar/MainTest.java | UTF-8 | 3,137 | 2.953125 | 3 | [] | no_license | package com.zou.learning.gramar;
import lombok.extern.slf4j.Slf4j;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.concurrent.*;
/**
* @author zou
* @date 2020-03-01 8:16 下午
*/
@Slf4j
public class MainTest {
public static void main(String[] args) {
//testSemaphore();
... | true |
3c5f3b5bac1c91c140ac19889bcb6957a9f48827 | Java | dhjmjava/ssm | /ssm/src/main/java/dh/ssm/service/impl/SysUserServiceImpl.java | UTF-8 | 1,048 | 2.046875 | 2 | [] | no_license | /**
* Project Name:ssm
* File Name:U.java
* Package Name:dh.ssm.service.impl
* Date:2017年7月27日上午11:44:47
* Copyright (c) 2017, jingmendh@163.com All Rights Reserved.
*
*/
package dh.ssm.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Aut... | true |
2aa1409715f1dfb89d564a1a1ab1d89b6511bf84 | Java | DrkSlate/FinalOperativos2020 | /Calle.java | UTF-8 | 1,623 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package proyectofinalso;
import java.awt.Rectangle;
/**
*
* @author richardgarcia
*/
public class Calle {
private Rectangle rectangle;
private int direccion_x;
private int direccion_y;
private Interseccion int_frente = null;
private Interseccion int_atras = null;
public static int TIEMPO_ROJO = 50; // Sin... | true |
57f7699aa56b500f7d2bc245c3099c3fff37c88a | Java | luthai/LiteWorkoutTimer | /app/src/main/java/com/luanthanhthai/android/liteworkouttimer/SettingsDbSchema.java | UTF-8 | 751 | 2.125 | 2 | [
"MIT"
] | permissive | package com.luanthanhthai.android.liteworkouttimer;
/**
* Created by Thai on 13.04.2017.
* Copyright (c) [2016] [Luan Thanh Thai]
* See the file LICENSE.txt for copying permission
*/
public class SettingsDbSchema {
public static final class SettingsTable {
public static final String NAME = "settings";... | true |
33ef594377b1c2baea6448a915828238150e86a8 | Java | cafeeyen/Space-Sheep | /Source code/src/mygame/SetUI.java | UTF-8 | 2,789 | 2.71875 | 3 | [] | no_license | package mygame;
import com.jme3.asset.AssetManager;
import com.jme3.scene.Node;
import com.jme3.system.AppSettings;
import com.jme3.ui.Picture;
public class SetUI
{
private AssetManager assetManager;
private int gear=0, hp=100, lasthp=100;
private float damageTimer;
private Picture sheep, hpBar, hpPro... | true |
8fe801947aa158084d40caeff5bb8c8ae4f8b2cb | Java | JanssenProject/jans | /jans-core/notify-client/src/main/java/io/jans/notify/client/NotifyClientFactory.java | UTF-8 | 2,953 | 2.046875 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Janssen Project software is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2020, Janssen Project
*/
package io.jans.notify.client;
import org.apache.commons.codec.binary.Base64;
import org.apache.http.client.config.CookieSpecs;
import org.apach... | true |
d0c8b32245877da25844b6f89f77797779d6dc9d | Java | limingcode/task | /src/com/teach/service/TpFileTransferRecordService.java | UTF-8 | 283 | 1.796875 | 2 | [] | no_license | package com.teach.service;
import java.util.List;
import java.util.Map;
public interface TpFileTransferRecordService {
public void sendFileToServer(int serverId, String serverAddr, int lessonId, byte type);
public List<Map<String, Object>> getListByLessonId(int lessonId);
}
| true |
b694a63e7579f522a16a35bd938f441100461166 | Java | SV-ZeroOne/Flash | /services/src/main/java/za/co/entelect/bootcamp/flash/services/VoucherService.java | UTF-8 | 403 | 1.984375 | 2 | [] | no_license | package za.co.entelect.bootcamp.flash.services;
import za.co.entelect.bootcamp.flash.persistence.Implementations.VouchersRepository;
/**
* @author kevin.gouws - Created on 2017/01/31.
*/
public class VoucherService {
private VouchersRepository vouchersRepository;
public VoucherService(VouchersRepository v... | true |
a2f482c6dacb7d81692575412644373ee0ef815b | Java | rahulpawargit/Selenium-Practice | /Parameterization/src/com/com/testng/firstTestNG.java | UTF-8 | 1,136 | 2.109375 | 2 | [] | no_license | package com.com.testng;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class fi... | true |
3690e84a45211a22a093c767d0e2ce640f3e4e9c | Java | HIVMAN/parallelTest | /src/main/java/fw/basic/data/properties/BrowserTypes.java | UTF-8 | 277 | 1.640625 | 2 | [] | no_license | package fw.basic.data.properties;
/**
* Created with IntelliJ IDEA.
* User: alpa
* Date: 12/08/13
* Time: 15:46
* To change this template use File | Settings | File Templates.
*/
public enum BrowserTypes {
FIREFOX,
CHROME,
CHROME_SAUCELABS,
IE,
;
}
| true |
9682508377cd6c2dc644f4c4a620d9c5ee59fe19 | Java | shy0407/shyPrj | /POCKET/src/com/pocket/controller/UserController.java | UHC | 6,402 | 1.992188 | 2 | [] | no_license | package com.pocket.controller;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
impo... | true |
05eed0067710c07a1afd3cb697b8fe95ed4b8339 | Java | mepeisen/MinigamesLib_v2 | /plugin/src/main/java/de/minigameslib/mgapi/impl/tasks/AsyncArenaRestartTask.java | UTF-8 | 2,534 | 1.929688 | 2 | [] | no_license | /*
Copyright 2016 by minigameslib.de
All rights reserved.
If you do not own a hand-signed commercial license from minigames.de
you are not allowed to use this software in any way except using
GPL (see below).
------
This program is free software: you can redistribute it and/or modify
... | true |
b4ab123d481c0d4455a2e37fa609fde1a1890b63 | Java | cahpw73/exp-cah | /src/main/java/ch/swissbytes/Service/business/textSnippet/TextSnippetDao.java | UTF-8 | 5,172 | 2.015625 | 2 | [] | no_license | package ch.swissbytes.Service.business.textSnippet;
import ch.swissbytes.Service.infrastructure.Filter;
import ch.swissbytes.Service.infrastructure.GenericDao;
import ch.swissbytes.domain.model.entities.ProjectDocumentEntity;
import ch.swissbytes.domain.model.entities.ProjectTextSnippetEntity;
import ch.swissbytes.dom... | true |
c4c348ade37faec42a2805df249ec42e8062d91a | Java | peterlee8/concurrency | /src/main/java/com/imooc/concurrency/classes/test/Hero1Test.java | UTF-8 | 511 | 2.453125 | 2 | [] | no_license | package com.imooc.concurrency.classes.test;
import com.imooc.concurrency.classes.demo.Hero1;
/**
* @Author peterLee
* @CreateDate 2019/1/17
*/
public class Hero1Test {
public static void main(String[] args) {
try {
Class<?> hero1 = Class.forName("com.imooc.concurrency.classes.demo.Hero1");... | true |
567dd6a275cee58384434f2cd083869c81b4172d | Java | christopher-kwon/codetech | /src/main/java/com/codetech/www/task/ECHandler.java | UTF-8 | 3,134 | 2.546875 | 3 | [] | no_license | package com.codetech.www.task;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.apache.tomcat.util.buf.StringUtils;
import org.springframework.web.socket.CloseStatus;
import org.springfra... | true |
31b6ea497ae0862277e850903387e2186649a3f8 | Java | heyoupeng/Mail | /main/java/com/example/administrator/mail/MailHelper.java | UTF-8 | 194 | 1.609375 | 2 | [] | no_license | package com.example.administrator.mail;
import java.net.Socket;
/**
* Created by Administrator on 2016/11/14 0014.
*/
public class MailHelper {
Socket socket=new Socket();
}
| true |
5830458f40ad3e0251b3de44b4a615413b846fc3 | Java | sscdebora/Spring | /01lojaGame/src/main/java/com/generation/lojaGame/controller/CategoriaController.java | UTF-8 | 2,556 | 2.25 | 2 | [] | no_license | package com.generation.lojaGame.controller;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOri... | true |
2bfb1a118f931f0a3b5062e7c292aea09b768563 | Java | xillio/xill-platform | /xill-processor/src/main/java/nl/xillio/xill/plugins/collection/services/duplicate/DuplicateImpl.java | UTF-8 | 2,477 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2014 Xillio (support@xillio.com)
*
* 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 |
c35946c7169609a462fcce09b000c972651bf3e1 | Java | ssunhj2/doIt_algorithm | /src/CH09/practice/ArrLinkedList_Q6.java | UTF-8 | 7,215 | 3.90625 | 4 | [] | no_license | package CH09.practice;
import java.util.Comparator;
/**
* 연결리스트
* 커서(인덱스)로 연결리스트 만들기
*/
public class ArrLinkedList_Q6<E>
{
class Node<E>
{
private E data;
private int next;
private int dnext;
void set(E data, int next)
{
this.data = data;
this.next = next;
}
}
pri... | true |
18e3b987a1cab7b2f8c0adce09f16720d1d17712 | Java | rennunome/fourth-git | /src/main/java/com/emyus/UserEditController.java | UTF-8 | 3,842 | 2.1875 | 2 | [] | no_license | package com.emyus;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Controller;
import o... | true |
ebf6e5341be3224da9367bfa29f7b5f687518b09 | Java | zlxqiang/AndroidPlug | /test/contentprovider/src/main/java/com/swbyte/contentprovider/CourseContentProvider.java | UTF-8 | 2,300 | 2.140625 | 2 | [] | no_license | package com.swbyte.contentprovider;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;
import com.plugin... | true |
7b48cff0d98747b16c84bc20b98b2f7c9049a9f3 | Java | bdeployteam/bdeploy | /plugins/build-tool-gradle/src/main/java/io/bdeploy/gradle/BDeployGradlePlugin.java | UTF-8 | 557 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package io.bdeploy.gradle;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
/**
* The BDeploy Gradle Plugin.
* <p>
* The Plugin provides Tasks to build, package and push products from arbitrary
* applications. No tasks are create... | true |
31a9b67770862f7ba85fc9f4e8121f5b4d8946f0 | Java | shivendra14/workspace_java | /ChatSystem/src/clientApp.java | UTF-8 | 6,863 | 2.90625 | 3 | [] | no_license | import java.net.*;
import java.util.StringTokenizer;
import javax.swing.*;
import javax.swing.text.DefaultCaret;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
public class clientApp
{
JFrame f1;
static String serverIP="255.255.255.255";
JTextField tfsip=new JTextField(serverIP);;
JTextField t... | true |
bbe4565c1ed18c027becb3672c4024c693b7cdc6 | Java | sayeh84/CodingBat | /CodingBat/src/Map1/topping3.java | UTF-8 | 610 | 2.546875 | 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 Map1;
import java.util.Map;
/**
*
* @author someya.sayeh
*/
public class topping3 {
public Map<String, String> t... | true |
adec6a2fe1f7810cc4ebacbd68a74a6fd6a9e2e4 | Java | HWenTing/leetcode | /T_401_500/T412.java | UTF-8 | 777 | 3.75 | 4 | [] | no_license | package T_401_500;
import java.util.LinkedList;
import java.util.List;
public class T412 {
// 写一个程序,输出从 1 到 n 数字的字符串表示。
// 1. 如果 n 是3的倍数,输出“Fizz”;
// 2. 如果 n 是5的倍数,输出“Buzz”;
// 3.如果 n 同时是3和5的倍数,输出 “FizzBuzz”。
// 慢一点
public List<String> fizzBuzz(int n) {
List<String> ans = new LinkedList<>();... | true |
d04870e0ab03fc35c2962890410c0d38d850bf97 | Java | SVillette/AndroidGames | /app/src/main/java/net/samael/villette/myapplication/activities/photos/PhotoActivity.java | UTF-8 | 8,159 | 1.828125 | 2 | [] | no_license | package net.samael.villette.myapplication.activities.photos;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import ... | true |
522531ff5fa89505d60b312333d59e8d0f5c7551 | Java | SangitaSadhu123/JavaProgramRepo | /E2EProjectPlan/src/test/java/Academy/ValidateTitle.java | UTF-8 | 1,015 | 2.359375 | 2 | [] | no_license | package Academy;
import java.io.IOException;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import PageObjects.LandingPage;
import Page... | true |
849d40ed4372052cad7e1e11a794fa4de056c2bd | Java | f-lab-edu/star-dabang | /src/main/java/dabang/star/cafe/infrastructure/service/SHA256EncryptService.java | UTF-8 | 939 | 2.578125 | 3 | [] | no_license | package dabang.star.cafe.infrastructure.service;
import dabang.star.cafe.domain.authentication.EncryptService;
import org.springframework.stereotype.Service;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
@Service
public class SHA256EncryptService implements EncryptService {
/**
... | true |
2e9fd6becd18c3cb9ae24348a8a55b3e1fad92de | Java | wardat/JRefactory-v2.6.24 | /src/org/acm/seguin/ide/command/UMLFrame.java | UTF-8 | 1,730 | 2.375 | 2 | [] | no_license | package org.acm.seguin.ide.command;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import org.acm.seguin.ide.common.DividedSummaryPanel;
import org.acm.seguin.summary.PackageSummary;
import org.acm.seguin.uml.UMLPack... | true |
66a4b787a4028cbafc0cc069411393196d766878 | Java | acabrerizof/develop | /src/main/java/com/tickets/MyTicketsApp/controller/TicketsController.java | UTF-8 | 2,325 | 2.203125 | 2 | [] | no_license | package com.tickets.MyTicketsApp.controller;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import ... | true |
d49e29ca6be47eb05597ce4a152e1d5b98d9399c | Java | nguyennhung520/Rocket_13 | /Rocket13_HW_TestingSystem_5/src/com/vti/backend/Exercise2_Ques2.java | UTF-8 | 1,690 | 3.21875 | 3 | [] | no_license | package com.vti.backend;
import java.util.Scanner;
import com.vti.entity.Person;
import com.vti.entity.Student_2;
public class Exercise2_Ques2 {
private Scanner sc;
public void Exercise2_Question2() {
// super();
sc = new Scanner(System.in);
}
public void question2() {
while (true) {
Syste... | true |
3daed9707525f0ccf065e2301e97be7efd2e3380 | Java | ityouzi/SpringBootDemo | /src/main/java/com/example/springbootdemo/amqp/mq/MessageSenderImpl.java | UTF-8 | 682 | 2.3125 | 2 | [] | no_license | package com.example.springbootdemo.amqp.mq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Service;
/**
* mq的publisher
*
* @author lizhen created on 2021-11-08 14:50
* @version 1.0
*/
@Service
publ... | true |
38ed946acbafaa3c50530a39104ca1c69ce5a27e | Java | JoyFigueiredo/AED2 | /Reducao/Dijkstra.java | UTF-8 | 2,593 | 3.203125 | 3 | [] | no_license | package MaratonaAED2.Reducao;
import java.util.HashMap;
import java.util.List;
public class Dijkstra {
HashMap<Vertice, Integer> mapa = new HashMap<Vertice, Integer>();
Grafo g;
List<Vertice> grafoV;
public Dijkstra(Grafo grafo) {
this.g = grafo;
}
public int menorCam... | true |
afc7edcbde02860596c5aa48d635d242dbc32c66 | Java | eric-dailey/Project-7 | /src/assignment7/ClientObserver.java | UTF-8 | 539 | 2.546875 | 3 | [] | no_license | /*
* Project 7 ChatRoom
* Eric Dailey <emd925>
* Shariq Memon <skm2662>
* 4/29/2017
* Slip day used: Yes
*/
package assignment7;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Observable;
import java.util.Observer;
public class ClientObserver extends PrintWriter implem... | true |
7f81468b9a7f64acecc5809078da72b9d92acbad | Java | iamalittletester/little-project | /src/test/java/com/imalittletester/tp/ActionsTest.java | UTF-8 | 1,995 | 2.515625 | 3 | [] | no_license | package com.imalittletester.tp;
import com.imalittletester.browser.SetupHelper;
import com.imalittletester.pages.tp.ActionsPage;
import org.junit.jupiter.api.*;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.PageFactory;
import java.io.File;
import static org.junit.jupiter.api.As... | true |
966571bdba838e0f2e09727e388b3d4ed3ed4d1f | Java | elshadsm/LearnQuran | /app/src/main/java/az/gulf/learnquran/adapter/ExpandableRecyclerAdapter.java | UTF-8 | 8,966 | 2.125 | 2 | [] | no_license | package az.gulf.learnquran.adapter;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.util.SparseIntArray;
import android.view.LayoutInflater;
im... | true |
54ba9c683cd3266be344b7083a416eaee3b114c1 | Java | XuanLee/java_test | /java_u1_2/src/java_01_hashMap/hashMap_main.java | UTF-8 | 1,376 | 3.453125 | 3 | [] | no_license | package java_01_hashMap;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Set;
import java.util.concurrent.locks.Condition;
public class hashMap_main {
public static void main(String[] args) {
HashMap map=new HashMap();
//添加
map.put("班长", "熊二");
map.put("学委", ... | true |
61aef39a8aa513228b327f878aa81bf88ad753f4 | Java | viniciusalmada/SolucoesFundamentaisApp | /app/src/main/java/br/almadaapps/fundamentalssolutions/CalculoActivity.java | UTF-8 | 11,585 | 2.015625 | 2 | [] | no_license | package br.almadaapps.fundamentalssolutions;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
import andro... | true |
0435743626353a63e42381c8b567c6980379f8ee | Java | cyberphone/openkeystore | /library/src/org/webpki/cbor/CBORMap.java | UTF-8 | 8,833 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2021 WebPKI.org (http://webpki.org).
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | true |
ddb4025dd602a063809d6763a0745bb061b31fd2 | Java | serk123/L2jOpenSource | /Interlude/L2jFrozen_15/L2jFrozen_15_Revision_1596/L2jFrozen_15/head-src/com/l2jfrozen/gameserver/Shutdown.java | UTF-8 | 15,232 | 1.835938 | 2 | [] | no_license | package com.l2jfrozen.gameserver;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.apache.log4j.Logger;
import com.l2jfrozen.Config;
import com.l2jfrozen.gameserver.controllers.GameTimeController;
import com.l2jfrozen.gameserver.controllers.TradeContro... | true |
766bbbd9a5c5120ace3f5fc9b99791abeb561b3d | Java | vamshi4040/test-portal | /test-portal-common/src/main/java/com/test/portal/login/bean/EmployeeDO.java | UTF-8 | 4,963 | 2.015625 | 2 | [] | no_license | package com.test.portal.login.bean;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Ta... | true |
ceab8aa16b4f717693b0598bd96a8eea3808eb77 | Java | bumptech/glide | /integration/cronet/src/test/java/com/bumptech/glide/integration/cronet/ChromiumUrlFetcherTest.java | UTF-8 | 13,429 | 1.695313 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause-Views",
"Xfig",
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.bumptech.glide.integration.cronet;
import static com.google.common.truth.Truth.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyMap;
import static org.mockito.ArgumentMatchers.anyString;
import stati... | true |
801393bc0172d878434235709e155258b00cbf24 | Java | douping/web | /src/ysbk_web/utility/CommonTool.java | UTF-8 | 8,417 | 2.859375 | 3 | [] | no_license | /*
* クラス名: CommonTool.java
*
* バージョン情報: 1.00
*
* 作成日: 2014/07/22
*
* Copyright:
*/
package ysbk_web.utility;
import org.apache.log4j.Logger;
import java.util.*;
import java.text.*;
/**
* @author COMMONビーン。
*/
public class CommonTool {
private static Logger logger = Logger.getLogger(CommonTool.class);
... | true |
704b39db5b9ae1622f275fb57bb341ad7d1b2d6d | Java | tixsys/esteid | /digidocservice/trunk/src_jdigidoc/ee/sk/utils/ConvertUtils.java | UTF-8 | 7,574 | 2.640625 | 3 | [] | no_license | /*
* ConvertUtils.java
* PROJECT: JDigiDoc
* DESCRIPTION: Digi Doc functions for creating
* and reading signed documents.
* AUTHOR: Veiko Sinivee, S|E|B IT Partner Estonia
*==================================================
* Copyright (C) AS Sertifitseerimiskeskus
* This library is free software; you can red... | true |
6a0be780a60b21376e68d58f29b8428e915de015 | Java | andygulin/simple-orm | /simple-orm/src/main/java/simple/orm/api/query/operator/OperatorConsts.java | UTF-8 | 663 | 1.773438 | 2 | [] | no_license | package simple.orm.api.query.operator;
public class OperatorConsts {
static final String STR_EQ = "=";
static final String STR_LT = "<";
static final String STR_GT = ">";
static final String STR_LE = "<=";
static final String STR_GE = ">=";
static final String STR_NOT_EQ = "<>";
... | true |
8f443a11c6201abda80ee6ca84044eb52c89554e | Java | manREDoo/sed | /timer/src/main/java/top/manred/timer/GameMainJob.java | UTF-8 | 769 | 2.40625 | 2 | [] | no_license | package top.manred.timer;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* <p>
* 定时作业
* </p>
*
* @author : 钟满红
* @date : 2020/11/26 19:45
*/
public class GameMainJob implements Job {
private... | true |
e6cb78886f35237b68855ae0c8206b0ed648b6c5 | Java | julien/fix | /src/Fix.java | UTF-8 | 7,344 | 2.65625 | 3 | [] | no_license | import java.io.*;
public class Fix {
private static String AIR_CONFIG_FILE = "air-config.xml";
private static String AIR_DESCRIPTOR_FILE = "air-descriptor.xml";
private static String ANT_BUILD_FILE = "build.xml";
private static String BUILD_VERSION = ... | true |
6cce3158cb4848e7fc6bb8d68d08060c4952a0af | Java | sunxiaobiu/BasicUnitAndroidTest | /app/src/androidTest/java/TestCase_com_fsecure_freedome_vpn_security_privacy_android__702091896.java | UTF-8 | 526 | 1.539063 | 2 | [] | no_license | import android.net.VpnService.Builder;
import androidx.test.runner.AndroidJUnit4;
import org.easymock.EasyMock;
import org.junit.Test;
import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public class TestCase_com_fsecure_freedome_vpn_security_privacy_android__702091896 {
@Test
public void testCase() t... | true |
9252473ec2a559c1d49802ba821b09a4998834d1 | Java | 38606277/inv | /srv/src/main/java/root/form/task/TaskTableControl.java | UTF-8 | 20,127 | 1.96875 | 2 | [] | no_license | package root.form.task;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.http.Ht... | true |
f6bfb073b3560598937305d90b10ba2bb5b17078 | Java | adithnaveen/SapientTraining2019Batch | /trainer-works/Bit-JavaWorks/designpattern/training/sapeint/factory/Car.java | UTF-8 | 344 | 2.984375 | 3 | [] | no_license | package training.sapeint.factory;
public class Car {
public static Car getMyCar(String carName) {
if(carName.equals(ICars.FORD)) {
return new Ford();
}else if(carName.equals(ICars.MARUTI)) {
return new Maruti();
}else if(carName.equals(ICars.AUDI)) {
return new Audi();
}
... | true |
76d042aaa6ad9b856fa072107026df0eb1243dc7 | Java | xuwujing/TestMain | /TestMain/src/com/pancm/test/nettyTest/demo/unpack/NettyServerFilter.java | UTF-8 | 1,455 | 2.40625 | 2 | [] | no_license | package com.pancm.test.nettyTest.demo.unpack;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.FixedLengthFrameDecoder;
import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.htt... | true |
9a163645b14accf1662e1a585951bdaa0d0c717f | Java | wangtianmiao/guns-parent | /guns-gateway/src/main/java/com/stylefeng/guns/rest/modular/order/OrderController.java | UTF-8 | 1,263 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.stylefeng.guns.rest.modular.order;
import com.stylefeng.guns.rest.modular.vo.ResponseVO;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.b... | true |
1b6118497141b6c14dc4f16dbee6d0640c871f21 | Java | Shaho666/MatrixUtil | /src/com/example/matrixui/uiframe/RootAdvanced.java | UTF-8 | 1,676 | 2.4375 | 2 | [] | no_license | package com.example.matrixui.uiframe;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import javax.swing.JButton;
public class RootAdvanced extends RootPage{
protected JTextArea inputArea = null;
protected JLabel inpu... | true |
7f81090c09e49135bb8c1918739c2d7c68341eb0 | Java | bonghaha/cdp | /cdp/src/main/java/com/to/cdp/rec/controller/RecContestController.java | UTF-8 | 2,155 | 1.976563 | 2 | [] | no_license | package com.to.cdp.rec.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.to.cdp.rec.model.RecContest... | true |
283dc5fc4d1493eba4619e9ff04b4f9933f818cc | Java | chimingbei/polyvPlay | /app/src/main/java/com/ariix/caremawx/PolyvPlayerMediaController.java | UTF-8 | 1,133 | 2.234375 | 2 | [] | no_license | package com.ariix.caremawx;
import android.content.Context;
import android.view.View;
import com.easefun.polyvsdk.video.PolyvBaseMediaController;
public class PolyvPlayerMediaController extends PolyvBaseMediaController {
//显示的状态
private boolean isShowing;
//控制栏显示的时间
private static final int longTi... | true |
407c1560db8f479ce64cf17e52386dfd55159d98 | Java | buildupchao/sparrow | /src/main/java/org/sparrowframework/foundation/aop/proxy/Proxy.java | UTF-8 | 216 | 1.867188 | 2 | [] | no_license | package org.sparrowframework.foundation.aop.proxy;
/**
* @author buildupchao
* @date 2019/06/25 18:32
* @since JDK 1.8
*/
public interface Proxy {
Object doProxy(ProxyChain chain) throws Throwable;
}
| true |
2cbdc29208563eb705b1660389ad613929fd746e | Java | yani-lab/ssm | /src/main/java/com/zking/ssm/controller/info/TAccountflowConroller.java | UTF-8 | 1,450 | 1.960938 | 2 | [] | no_license | package com.zking.ssm.controller.info;
import com.zking.ssm.model.info.TAccountflow;
import com.zking.ssm.service.info.IAccountService;
import com.zking.ssm.service.info.IAccountflowService;
import com.zking.ssm.util.DataProtocol;
import com.zking.ssm.util.PageBean;
import org.springframework.web.HttpRequestHandler;
i... | true |
2a74b3f17ba6166ddc994bbfa07249fe21426aff | Java | ffflyteam/SEBlog | /SEblog/src/com/DAO/ManagerDAO.java | GB18030 | 3,133 | 2.5625 | 3 | [] | no_license | package com.DAO;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
public class ManagerDAO {
private static final String SELECT_MANAGER_INFO = "SELECT * FROM `manager_info` WHERE ManagerId = ?";
private static final String SELECT_MANAGER_INFO_BY_ID_AND_PASSWORD = "SELECT * FROM `manage... | true |
08eacb13349bfc2949fc6208b332d34f89da702f | Java | kdk-pkg-soft/freehep-ncolor-pdf | /jaida/freehep-jaida/src/main/java/hep/aida/ref/pdf/Units.java | UTF-8 | 186 | 1.65625 | 2 | [] | no_license | package hep.aida.ref.pdf;
/**
* The Units.
*
* @author The FreeHEP team @ SLAC.
*
*/
public class Units {
public Units() {
}
public Units(String units) {
}
}
| true |
39b4cd119737b20cc30eea17b86d25bd76e325d8 | Java | Vaerys-Dawn/DiscordSailv2 | /src/main/java/com/github/vaerys/templates/TagReplaceObject.java | UTF-8 | 1,905 | 2.484375 | 2 | [] | no_license | package com.github.vaerys.templates;
import com.github.vaerys.enums.TagType;
import com.github.vaerys.masterobjects.CommandObject;
import com.github.vaerys.objects.ReplaceObject;
import java.util.LinkedList;
import java.util.List;
public abstract class TagReplaceObject extends TagObject {
@Override
public S... | true |
f51519d1a7cb16d6d9854cc5337b23ae9b895f38 | Java | yuhangc525/ChengYuhang | /JAVA_study/第一阶段/chapter11/src/com/enum_/EnumExercise02.java | UTF-8 | 712 | 3.34375 | 3 | [] | no_license | package com.enum_;/*
* @author: 程宇航
* @version: 1.0
* @date: 2021/6/15
* @describe:作业
*/
public class EnumExercise02 {
public static void main(String[] args) {
System.out.println("==所有星期信息如下==");
Week[] weeks = Week.values();
for (Week week : weeks) {
System.out.println(wee... | true |
aae0781936aeded0852f845f7aba9c815de54f53 | Java | bmoth-mc/bmoth | /src/main/java/de/bmoth/backend/ltl/transformation/ConvertNotFinallyToGloballyNot.java | UTF-8 | 1,030 | 2.4375 | 2 | [
"MIT"
] | permissive | package de.bmoth.backend.ltl.transformation;
import de.bmoth.parser.ast.nodes.Node;
import de.bmoth.parser.ast.nodes.ltl.LTLNode;
import de.bmoth.parser.ast.nodes.ltl.LTLPrefixOperatorNode;
import de.bmoth.parser.ast.visitors.ASTTransformation;
import static de.bmoth.backend.ltl.LTLTransformationUtil.contains;
import... | true |
773841697c61ba1d30684eebd4e2453530baf988 | Java | terrencewuxl1/exercise | /leecode/src/main/java/com/leecode/pratice/ReverseList.java | UTF-8 | 371 | 2.734375 | 3 | [] | no_license | package com.leecode.pratice;
public class ReverseList {
public ListNode reverseList(ListNode head) {
ListNode pre = null;
ListNode curr = head;
while (curr!=null){
ListNode nextTemp=curr.next;
curr.next=pre;
pre=curr;
curr=nextTemp... | true |