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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
92b6f8c9495ece091ed51395fb9603c04cda54fa | Java | NJohansen/external_DSLs | /math_interpreter/dk.sdu.mmmi.mdsd.MathIntAssignment.ui/xtend-gen/dk/sdu/mmmi/mdsd/ui/ExpressionsEObjectHoverProvider.java | UTF-8 | 2,062 | 2.25 | 2 | [] | no_license | package dk.sdu.mmmi.mdsd.ui;
import dk.sdu.mmmi.mdsd.generator.MathIntLanguageGenerator;
import dk.sdu.mmmi.mdsd.mathIntLanguage.Expression;
import dk.sdu.mmmi.mdsd.mathIntLanguage.MathExp;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.util.Diagnostician;
import org.eclipse.emf.ecore.util.EcoreUti... | true |
c3b87ec2962d321a6d2d8bda612435472ee23001 | Java | google-code/aionknight | /gameserver/src/gameserver/model/alliance/PlayerAllianceGroup.java | UTF-8 | 2,334 | 2.265625 | 2 | [] | no_license | /*
* Emulator game server Aion 2.7 from the command of developers 'Aion-Knight Dev. Team' is
* free software; you can redistribute it and/or modify it under the terms of
* GNU affero general Public License (GNU GPL)as published by the free software
* security (FSF), or to License version 3 or (at your option) a... | true |
d4980dc616adfb29a4d2b96b186abe2b66c1d0ca | Java | CyrusCeasar/java8test | /src/cn/sz/cyrus/java8test/lambda/People.java | UTF-8 | 384 | 2.875 | 3 | [] | no_license | package cn.sz.cyrus.java8test.lambda;
import java.util.Random;
public class People {
private String name;
private int age;
public People(){
name = "people"+hashCode();
}
public People(String name){
this.name = name;
age = new Random().nextInt(100);
}
public String getName(){
re... | true |
e61ad4c24751ea73e251851c0ed0f1827168fe59 | Java | eliubakk/AP_CS_Pokemon | /src/moves/Disable.java | UTF-8 | 360 | 2.25 | 2 | [] | no_license | package moves;
import pokemon.SeenPokemon;
import red.PokemonGame;
public class Disable extends Move
{
public Disable()
{
super("Disable", PokemonGame.Normal, 2, 20, 0, 100, 1, 0);
}
public void secondaryEffect(SeenPokemon Attacker, SeenPokemon Defender, int Damage)
{
//Disables the last move... | true |
0fafc2b019125c69d1a348e834b059e58852a62f | Java | Edifierlurker/EduServer | /src/main/java/com/pinke/uni/mobile/protal/bbs/ls/TBbsinfoNoticeMapLS.java | UTF-8 | 7,293 | 2.140625 | 2 | [] | no_license | package com.pinke.uni.mobile.protal.bbs.ls;
import java.util.List;
import com.pinke.uni.mobile.protal.bbs.model.TBbsinfo;
import com.pinke.uni.mobile.protal.bbs.model.TBbsinfoNoticeMap;
import com.pinke.uni.mobile.protal.bbs.service.ITBbsinfoDS;
import com.pinke.uni.mobile.protal.bbs.service.ITBbsinfoNoticeMapDS;
imp... | true |
236003b65af93d5a49cfbede6e200eaf87740f58 | Java | AlexeyFor/JavaSt2021 | /task08/src/main/java/by/training/task08/service/GemParserFactory.java | UTF-8 | 656 | 2.703125 | 3 | [] | no_license | package by.training.task08.service;
import by.training.task08.service.dom.GemDOMService;
import by.training.task08.service.sax.GemSAXService;
import by.training.task08.service.stax.GemStAXService;
public class GemParserFactory {
public GemParserService takeParser(String name) throws ServiceException {
GemParserSe... | true |
89bb232c7998c0dd2f784c50bbfa6f2a3e97cc99 | Java | CulverLab/sparcd | /Sanimal FX/src/main/java/model/analysis/SanimalTextOutputFormatter.java | UTF-8 | 9,385 | 2.90625 | 3 | [] | no_license | package model.analysis;
import model.analysis.textFormatters.*;
import model.image.ImageEntry;
import java.util.List;
/**
* The formatter that simulates the creation of Jim Sanderson's "Output.txt"
*
* @author David Slovikosky
*/
public class SanimalTextOutputFormatter
{
/**
* Returns a massive string that i... | true |
6161d3929e407a76b1626a4ae54a1446d3d64039 | Java | kingbox666/yublog | /src/main/java/com/yunblog/service/impl/CommentServiceImpl.java | UTF-8 | 3,026 | 2.328125 | 2 | [] | no_license | package com.yunblog.service.impl;
import com.yunblog.entiy.Comment;
import com.yunblog.mapper.BlogMapper;
import com.yunblog.mapper.CommentMapper;
import com.yunblog.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springfr... | true |
d837ecad0334079cd842079bebd75f96d53b5ec9 | Java | wrpys/abdp | /plat-common/request-log/src/main/java/com/newland/spring/request/log/model/RemoteResult.java | UTF-8 | 1,023 | 1.960938 | 2 | [] | no_license | package com.newland.spring.request.log.model;
/**
* Created by garfield on 2018/9/28.
*/
public class RemoteResult extends Result {
private Long longBeginTime;
private String url;
private String args;
private String remoteAddr;
private String method;
public String getMethod() {
... | true |
76056fe5e4cd6b9035d7b7d3c069a18bdeff54eb | Java | bruce770405/travel-discussion-backend | /src/main/java/javaserver/model/FileModel.java | UTF-8 | 573 | 2.46875 | 2 | [] | no_license | package javaserver.model;
import java.util.ArrayList;
import java.util.List;
public class FileModel {
private List<String> fileList = new ArrayList<>();
private String username;
public FileModel(String username, List<String> list) {
this.setUsername(username);
this.setFileList(list);
}
public List<String>... | true |
75acdf6981272fdc9fddc297dcef8d9fe6bc2ac0 | Java | nshiva000/geniusBaby | /app/src/main/java/com/hanivisu/geniusbaby/MediaPlayerActivity.java | UTF-8 | 8,305 | 2.28125 | 2 | [] | no_license | package com.hanivisu.geniusbaby;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.content.Intent;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
... | true |
f235b404fc54d5cd7230a3753f221a956cde8e09 | Java | MartinGuehmann/PIA2 | /pia/phyutility/src/jebl/evolution/distances/JukesCantorDistanceMatrix.java | UTF-8 | 3,693 | 2.859375 | 3 | [
"MIT",
"GPL-3.0-only"
] | permissive | package jebl.evolution.distances;
import jebl.evolution.alignments.Alignment;
import jebl.evolution.alignments.Pattern;
import jebl.evolution.sequences.State;
import jebl.util.ProgressListener;
/**
* Compute jukes-cantor corrected distance matrix for a set of aligned sequences.
* Adapted from BEAST code by joseph.
... | true |
30655a34ddf9cde61a001dc05c6ee422081604b8 | Java | soldiers1989/my_dev | /ddf-parent/ddf-common-reference/src/main/java/com/ddf/reference/sms/ShortMessageReference.java | UTF-8 | 2,632 | 1.929688 | 2 | [] | no_license | package com.ddf.reference.sms;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPara... | true |
9015647635440525ec9e129fa781c33f3f921d6f | Java | lizheng473/b2bEshow | /V1.0/src/main/java/com/logo/eshow/util/ImageUtil.java | UTF-8 | 9,792 | 2.546875 | 3 | [] | no_license | package com.logo.eshow.util;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.... | true |
0ad761257a6b2ae0700943e91549aa2a616a324b | Java | renjunbakamei/nettytest | /src/main/java/com/jfpay/dao/read/IRejectinfoDao.java | UTF-8 | 568 | 1.929688 | 2 | [] | no_license | /**
*
*/
package com.jfpay.dao.read;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.jfpay.entity.vo.RejectinfoVO;
import tk.mybatis.mapper.common.Mapper;
/**
* @author dongyuqiang
*
* @date 2017年9月5日
*/
@Repository
public interface IRejectinfoDao extends Mapper<Rejectinf... | true |
0b0d1f99e1c0b45abc91ad4dc25e6598a0ad9068 | Java | MichalG09/Alcohol_Collection | /src/main/java/pl/mgrzech/alcohols_collection/property/PropertyService.java | UTF-8 | 2,741 | 2.453125 | 2 | [] | no_license | package pl.mgrzech.alcohols_collection.property;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import pl.mgrzech... | true |
ce91aa289ce8cc33b527346c6d561f47af8d980f | Java | Coder-M-Chen/PhoneStoreProject | /src/com/bean/Addressee.java | UTF-8 | 546 | 2.515625 | 3 | [] | no_license | package com.bean;
public class Addressee {
private String address;
private String phone;
private String owner;
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getPhone() {
return p... | true |
b6d9f51a23eb23cf2a26b9a284c4be77d35c579a | Java | ShijiaYan/PhoenixSim | /javanco/src/ch/epfl/general_libraries/webserver/HistogrammService.java | UTF-8 | 1,694 | 2.609375 | 3 | [] | no_license | package ch.epfl.general_libraries.webserver;
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
import org.jfree.chart.JFreeChart;
import simple.http.Request;
import simple.http.Response;
import simple.http.serve.Context;
import ch.epfl.general_libraries.charts.HistogramProvider;
import ... | true |
f6a810dfe9e3371d7e28f4e151b6bb3159a16c5b | Java | fan2008shuai/octo-ns | /sdk/mns-invoker/src/main/java/com/meituan/octo/mns/cache/ServiceCache.java | UTF-8 | 16,388 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you u... | true |
0b200e9db06387944885108b10c72f38459eff97 | Java | gacemabderaouf/HangedMan | /src/GuiHangAMan/FormPane.java | UTF-8 | 2,734 | 2.765625 | 3 | [] | no_license | package GuiHangAMan;
import KernelHangAMan.Players;
import KernelHangAMan.PseudonymeException;
import javafx.scene.Scene;
import javafx.scene.control.Button;
/**
* Created by Rifux on 07/05/2017.
*/
public class FormPane extends ModifFormPane{
public FormPane(Scene welcomeScene) {
super(welcomeScene,fa... | true |
e16cb04792a46ab445d2b99b79f84390dd1e1184 | Java | Ejmi11/myWork | /src/ActivitiesPage.java | UTF-8 | 4,742 | 2.421875 | 2 | [] | no_license | import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
impo... | true |
d44ade27e091c57290bdbfe41505c757b8d9c872 | Java | raidentrance/order-fake-api | /src/main/java/com/walmart/app/model/OrderInfo.java | UTF-8 | 4,081 | 2.109375 | 2 | [] | no_license | /**
*
*/
package com.walmart.app.model;
import java.util.Date;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence... | true |
63a814c7f73782225f8c403edab17f52b2880e11 | Java | doytsujin/webfx | /mongoose/mongoose-shared/mongoose-shared-entities/src/main/java/mongoose/shared/entities/impl/DocumentLineImpl.java | UTF-8 | 743 | 2.0625 | 2 | [] | no_license | package mongoose.shared.entities.impl;
import mongoose.shared.entities.DocumentLine;
import webfx.framework.shared.orm.entity.EntityId;
import webfx.framework.shared.orm.entity.EntityStore;
import webfx.framework.shared.orm.entity.impl.DynamicEntity;
import webfx.framework.shared.orm.entity.impl.EntityFactoryProviderI... | true |
6782fc2e2b27461caa89c3cf5d7a2dd1e7a7bcd1 | Java | nigaknight/Note | /Project/algorithm/src/leetcode557/Solution.java | UTF-8 | 855 | 3.546875 | 4 | [] | no_license | package leetcode557;
/**
* @author nigaknight
* @time 2019/10/22
* StringBuilder自带字符串反转的函数reverse
* 去除收尾空格可以用trim函数
**/
public class Solution {
public String reverseWords(String s) {
String[] ss = s.split(" ");
for (int i = 0; i < ss.length; i++) {
ss[i] = reverse(ss[i]);
}... | true |
af3ccbcc0f444858db4a951ab85593072996992c | Java | narfman0/BorderJumpingBonanza | /borderjumpingbonanza/src/com/blastedstudios/borderjumpingbonanza/ui/HighScoreScreen.java | UTF-8 | 2,156 | 2.625 | 3 | [] | no_license | package com.blastedstudios.borderjumpingbonanza.ui;
import java.util.List;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Button;
import com.badlogic.gdx.scenes.scene2d.ui.ClickListener;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.b... | true |
212806adee6510205e5a86246109ac8b2d92e5b8 | Java | bulison/test | /ops-pc/src/main/java/cn/fooltech/fool_ops/web/test/TestController.java | UTF-8 | 5,884 | 2.1875 | 2 | [] | no_license | package cn.fooltech.fool_ops.web.test;
import cn.fooltech.fool_ops.rate.tools.Calculate;
import cn.fooltech.fool_ops.rate.tools.EveryTradeBean;
import cn.fooltech.fool_ops.rate.tools.RateBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
impo... | true |
89e1da13c65c2c88f596bff86c9ccdce1594d488 | Java | zhoudy-github/efreight-cloud | /efreight-afbase/src/main/java/com/efreight/afbase/service/OrderInquiryService.java | UTF-8 | 1,130 | 1.609375 | 2 | [] | no_license | package com.efreight.afbase.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.efreight.afbase.entity.OrderInquiry;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
import java.util.Map;
/**
* ... | true |
f96dca923c8c836c459e2d977d53bc4658b34cd2 | Java | chronotable/procon | /pku/1423.java | UTF-8 | 595 | 3.125 | 3 | [] | no_license | import java.util.*;
import static java.lang.Math.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int[] a = new int[100000];
double x = 0.0;
for(int i = 1; i < 100000;i++){
x += log10((double)i);
a[i] = (int)x + 1;
}
int t = sc.nextInt()... | true |
7f203bfbc4affd6164837cec24142562cf160ef8 | Java | AleksandarPetkov/JavaFundamentals-repo | /JavaOOPBasics/src/ExamPreparationTheExpance/Family.java | UTF-8 | 307 | 2.171875 | 2 | [] | no_license | package ExamPreparationTheExpance;
import ExamPreparationTheExpance.colonist.Colonist;
import java.util.ArrayList;
import java.util.List;
public class Family {
private String Id;
public Family(String id) {
this.Id = id;
}
public String getId() {
return this.Id;
}
}
| true |
e5273e3c09f80496607e5a0da02beeb6beb32a49 | Java | marioclr/RiesgosMovil | /app/src/main/java/com/mclr/mini/riesgosmovil/modelos/pojoSinking.java | UTF-8 | 881 | 2.625 | 3 | [] | no_license | package com.mclr.mini.riesgosmovil.modelos;
public class pojoSinking {
private String sinkingID;
private double position;
private int severity;
public pojoSinking(){
sinkingID = "";
position = 0.0;
severity = 0;
}
/**
* @return the position
*/
public double getPosition() {
return position;
}
... | true |
bdc22045fba170b9ed93fcaf1162e2c9187c0319 | Java | svennjegac/FER-java-optjava | /hw13-0036479615/src/main/java/hr/fer/zemris/optjava/dz13/genetic/IProblem.java | UTF-8 | 177 | 2.328125 | 2 | [] | no_license | package hr.fer.zemris.optjava.dz13.genetic;
public interface IProblem<T> {
public double getFitness(ISolution<T> solution);
public double getValue(ISolution<T> solution);
}
| true |
1077f06f27640b5c78b82fcc552de660c7f12a0a | Java | NensiVasani1602/awesome_notifications | /android/src/main/java/me/carda/awesome_notifications/notifications/models/NotificationCrontab.java | UTF-8 | 7,794 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package me.carda.awesome_notifications.notifications.models;
import android.content.Context;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import me.carda.awesome_notifications.Definitions;
import me.carda.awesome_notifications.externalLibs.... | true |
a95fbbd9f0a69258e9f1192a8c8ec02548a6c0d7 | Java | LLLLimbo/camunda-demo | /src/main/java/com/example/workflow/bpmn/maintain/ServiceTaskSendOrder.java | UTF-8 | 443 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.example.workflow.bpmn.maintain;
import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
@Slf4j
public class ServiceTaskSendOrder implements JavaDelegate {
@Override
public void execute(DelegateExecution delegateE... | true |
a97b795e37a9ddc774eeb2061a271a37d272d79e | Java | jarp14/spaceclipse | /SPACEclipse/src/spaceclipse/sincronizacion/DMensajesSWT.java | UTF-8 | 2,155 | 2.671875 | 3 | [] | no_license | package spaceclipse.sincronizacion;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.D... | true |
987cfa744f29c76b88ddedc9cdd796a4bc18d93c | Java | uddhab22/ud-22 | /src/Relp/practise/AccountTest.java | UTF-8 | 349 | 2.53125 | 3 | [] | no_license | package Relp.practise;
public class AccountTest {
public static void main(String[] args) {
Account mm = new Account();
mm.setAcc(7890000000l);
mm.setName("Sumair");
mm.setemail("sumair@syntaxsolutions.com ");
mm.setAmount(500000.0);
System.out.print(mm.getAcc()+" "+mm.getName()+" "+m... | true |
89ae52a0f9c54c5e822af24c94cdbf63a5a23c88 | Java | kupaul/GW_CC9 | /modules/configuration/generated/com/guidewire/_generated/entity/TableUpdateStatsStatementInternal.java | UTF-8 | 1,846 | 1.773438 | 2 | [] | no_license | package com.guidewire._generated.entity;
@javax.annotation.Generated(value = "com.guidewire.pl.metadata.codegen.Codegen", comments = "TableUpdateStatsStatement.eti;TableUpdateStatsStatement.eix;TableUpdateStatsStatement.etx")
@java.lang.SuppressWarnings(value = {"deprecation", "unchecked"})
public interface TableUpdat... | true |
470ed529be73e3cc81fa3efbed2bfd181c817b48 | Java | konexios/moonstone | /pegasus-dashboard-db/src/main/java/com/arrow/pegasus/dashboard/repo/ContainerRepositoryImpl.java | UTF-8 | 1,269 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.arrow.pegasus.dashboard.repo;
import java.util.ArrayList;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.core.query.Criteria;
import com.arrow.pegasus.dashboard.data.Container;
import c... | true |
a727c51e91339000c4ee694fd72c8c9dc2c63ff6 | Java | joshuadavis/yajul | /yajul/src/test/java/org/yajul/log/Log4JDebugProxyTest.java | UTF-8 | 1,145 | 2.625 | 3 | [] | no_license | package org.yajul.log;
import junit.framework.TestCase;
import java.io.*;
/**
* Test the Log4JDebugProxy.
* <br>
* User: josh
* Date: Aug 12, 2008
* Time: 12:37:39 PM
*/
public class Log4JDebugProxyTest extends TestCase {
public static class Thingie implements Serializable {
private int one;
... | true |
9db3f9fc4e4031517a5f88bc8d3ed38f34df05ac | Java | businesscode/BCD-UI | /Server/src/main/java/de/businesscode/bcdui/web/wrs/WrsAccessLogEvent.java | UTF-8 | 6,308 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2010-2021 BusinessCode GmbH, Germany
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 agreed... | true |
5eeddb35d03d0a2ca3bce10221e3962078fa76df | Java | rosiej/eBookForRent | /src/main/java/pl/sdacademy/domain/Category.java | UTF-8 | 762 | 2.75 | 3 | [] | no_license | package pl.sdacademy.domain;
import java.util.ArrayList;
import java.util.HashMap;
public class Category {
private String name;
private Category parent = null;
private ArrayList <Category> children;
private HashMap<String,Book> books;
public int getId() {
return id;
}
private in... | true |
2df50895287fd2761458ba244536597e6397eb2d | Java | felentovic/Java-course | /HW10/jnotepadpp/src/main/java/hr/fer/zemris/java/hw10/jnotepadpp/actions/SaveAsDocumentAction.java | UTF-8 | 1,265 | 2.53125 | 3 | [] | no_license | package hr.fer.zemris.java.hw10.jnotepadpp.actions;
import hr.fer.zemris.java.hw10.jnotepadpp.JNotepadPP;
import hr.fer.zemris.java.hw10.jnotepadpp.i18n.FormLocalizationProvider;
import hr.fer.zemris.java.hw10.jnotepadpp.i18n.LocalizableAction;
import java.awt.event.ActionEvent;
import javax.swing.Action;
i... | true |
66308732c5937b860c00449ca9d77e24e89a8efa | Java | franciscarruido/tarea5 | /app/src/main/java/com/francistudio/animalapp/adapter/MascotaDetailAdaptador.java | UTF-8 | 2,486 | 2.515625 | 3 | [] | no_license | package com.francistudio.animalapp.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerV... | true |
462d3020f9b6b290af410a04f81c75b299e0b122 | Java | P79N6A/icse_20_user_study | /methods/Method_1009949.java | UTF-8 | 115 | 1.671875 | 2 | [] | no_license | /**
* ?????????
*/
public PermissionsUtil request(String... permissions){
return requestArray(permissions);
}
| true |
574c3ec8cb281285c80b74196d8e28f9305aa623 | Java | YoungerCper/JavaLabs | /Java_Lab1/Java_Lab1_Task1/src/Main.java | UTF-8 | 1,185 | 3.9375 | 4 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner consoleInput = new Scanner(System.in);
System.out.println("Input your string, please: ");
System.out.println(AlphabetWar(consoleInput.nextLine()));
}
public static String AlphabetWar... | true |
d3e3ad50a3394dcbb5021792ed0af2aa3ff29c55 | Java | wuwenyishi/security | /src/main/java/com/haha/xixi/controller/HelloController.java | UTF-8 | 3,751 | 2.234375 | 2 | [] | no_license | package com.haha.xixi.controller;
import com.alibaba.fastjson.JSON;
import com.haha.xixi.json.AjaxJson;
import com.haha.xixi.json.JWT;
import com.haha.xixi.json.UserJson;
import com.haha.xixi.model.OauthClientDetailsModel;
import com.haha.xixi.model.UserBaseExtModel;
import com.haha.xixi.model.UserBaseModel;
import c... | true |
609e3e9be370f43e59fb7289a15ff54d777fed1c | Java | Game-Designing/Custom-Football-Game | /sources/p026rx/p390c/p393c/C14778a.java | UTF-8 | 745 | 2.28125 | 2 | [
"MIT"
] | permissive | package p026rx.p390c.p393c;
import java.util.concurrent.ThreadFactory;
/* renamed from: rx.c.c.a */
/* compiled from: CachedThreadScheduler */
class C14778a implements ThreadFactory {
/* renamed from: a */
final /* synthetic */ ThreadFactory f43967a;
/* renamed from: b */
final /* synthetic */ C1478... | true |
12cee047e3c50fb06c3ee74bb47c354ae261c3fb | Java | seballoll/Math-Socket-proyecto | /Math Socket/src/Server_Socket.java | UTF-8 | 2,258 | 3.03125 | 3 | [] | no_license | import java.io.*;
import java.net.*;
public class Server_Socket extends ChessBoardWithColumnsAndRows implements Serializable {
static ServerSocket ss;
static Socket s ;
static String host_user;
/**
* metodo para inicar el servidor (espera hasta que un cliente se conecte)
* @throws IOExcept... | true |
d57be0f1fcc4299b2e720ef3be0f99286f0c67db | Java | zparker96/comp3700_iteration2 | /iteration2_code/src/ManagerView.java | UTF-8 | 2,573 | 2.796875 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ManagerView extends JFrame {
private JButton btnManage;
private JButton btnCreateUser;
private JButton btnViewReport;
private JButton btnChangePassword;
private... | true |
87b66e64d4d6578c02928c121b38b16729a4fc26 | Java | milano95a/jdbc | /src/main/java/com/aj/JDBC/Question.java | UTF-8 | 985 | 2.53125 | 3 | [] | no_license | package com.aj.JDBC;
import javax.persistence.*;
import java.util.List;
@Entity
public class Question {
@Id
@GeneratedValue
long id;
String question;
@OneToMany( targetEntity=Answer.class )
List answers;
@OneToOne
Answer me;
public Question() {
}
public Question(Strin... | true |
418a5e48dc0e8055e93febafef349a1094254839 | Java | PhotoSynthesiis/Generics | /src/generic/GenericDemo3.java | UTF-8 | 454 | 3.15625 | 3 | [] | no_license | package generic;
public class GenericDemo3 {
public static void main(String[] args) {
Info<String> info = new Info<String>();
info.setVar("this is a test");
fun(info);
}
private static void fun(Info<?> info) {
System.out.println(info);
}
}
class Info<T> {
private ... | true |
bbd0bcc734e81c9cf8e84194e755e63e2237ad1c | Java | matt2393/TurismoAbanquino | /app/src/main/java/com/ejemplo/usuariio/turismoabanquino/YouTubeVideos.java | UTF-8 | 358 | 2.109375 | 2 | [] | no_license | package com.ejemplo.usuariio.turismoabanquino;
class YouTubeVideos {
String VideoUrl;
public YouTubeVideos(){
}
public YouTubeVideos(String videoUrl) {
VideoUrl = videoUrl;
}
public String getVideoUrl() {
return VideoUrl;
}
public void setVideoUrl(String videoUrl) {... | true |
a579d13b650d50cb86a30b19fcc1701164df0583 | Java | xiaozhongying/account | /common/common/util/MyUtil.java | UTF-8 | 826 | 2.375 | 2 | [] | no_license | package common.util;
import common.auth.Auth;
public class MyUtil
{
public static int getMySspq(Auth auth)
{
int sspq=0;//所属片区
switch(auth.getName())
{
case "越秀区商务委":
sspq=1;
break;
case "荔湾区商务委":
sspq=2;
break;
case "海珠区商务委":
sspq=3;
break;
case "天河区商务委"... | true |
e51f356257076d0d7e8aebbe4083fd08c161436a | Java | DivyaMididuddi/project | /linkedlist/LinkedListpgm3.java | UTF-8 | 383 | 3.125 | 3 | [] | no_license | package linkedlist;
import java.util.Iterator;
import java.util.LinkedList;
public class LinkedListpgm3
{
public static void main(String[] args)
{
LinkedList c1=new LinkedList();
c1.add(9.9);
c1.add(8.8);
c1.add(4.4);
c1.add(2.2);
c1.add(1.1);
Iterator i1=c1.iterator();
while(i1.hasNe... | true |
1456319d0bdce3d9e972aaadda3de63274bd2eb9 | Java | codehaus/picocontainer | /tags/monolithic-src-tree/java/picogems/src/test/org/picocontainer/gems/constraints/ConstraintIntegrationTestCase.java | UTF-8 | 7,010 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | /*****************************************************************************
* Copyright (C) PicoContainer Organization. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* s... | true |
3ea835049f1eb406b5b1c802c9496fe92d63da13 | Java | nejstastnejsistene/maze | /src/edu/wm/cs/pajohn/maze/Maze.java | UTF-8 | 8,756 | 3.40625 | 3 | [] | no_license | package edu.wm.cs.pajohn.maze;
import java.util.HashSet;
public class Maze {
private int width;
private int height;
private short[][] cells;
private int[][] distances;
private boolean hasRooms = false;
protected Maze(int width, int height) throws MazeException {
this.width = width;
this.height = height;
... | true |
38133c8f9f8247a999a4a3f10e924c9efa096ad5 | Java | KEVINYZY1/wasindoor | /wasindoor/src/main/java/com/waspring/wasindoor/locale/ITrainGen.java | UTF-8 | 426 | 1.65625 | 2 | [
"Apache-2.0"
] | permissive | package com.waspring.wasindoor.locale;
import java.sql.SQLException;
public interface ITrainGen {
void init() throws Exception;
void gen() throws Exception;
void destory() throws Exception;
String getTrainFile();
int getBuildNo();
int getFloorNo();
int getBuildFloorLocation() throws SQLE... | true |
dec74a4c5caeb8df96fe9e3a79ff457aa092310f | Java | sivakurapati87/CorpMedia | /CorpMediaService/src/com/intuiture/corp/controller/NotifyController.java | UTF-8 | 1,719 | 1.9375 | 2 | [] | no_license | package com.intuiture.corp.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.anno... | true |
cd58af013b3fe319d1ff79395df4cf1b28c6d66b | Java | elcomthien/source | /workspace_ehotel/DBIGateway/src/ehotel/dao/eMenuDAO.java | UTF-8 | 3,467 | 2.15625 | 2 | [] | no_license | package ehotel.dao;
import java.util.Vector;
import org.apache.log4j.Logger;
import com.elcom.DBI.SubProParam;
import ehotel.domain.menu.Group;
import ehotel.domain.menu.Menu;
import ehotel.sql.eMenuSql;
import ehotel.utils.DataUtils;
public class eMenuDAO extends eBaseDao {
private static Logger log = Logger.get... | true |
c9a92bead08d3a9839dd16d9b662a6d47fa80aeb | Java | PimvanderLoos/CAP | /cap-core/src/main/java/nl/pim16aap2/cap/command/ArgumentManager.java | UTF-8 | 9,674 | 2.25 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2020 Pim van der Loos
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy... | true |
512ec6e65c550e98bcc915102bdef1d46b2612df | Java | swiftlee/kc-game | /src/main/java/net/jmdev/util/ActionBar.java | UTF-8 | 1,672 | 2.359375 | 2 | [] | no_license | package net.jmdev.util;
import net.jmdev.Main;
import net.jmdev.game.GamePlayer;
import net.minecraft.server.v1_9_R2.IChatBaseComponent;
import net.minecraft.server.v1_9_R2.PacketPlayOutChat;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.v1_9_R2.entity.CraftPlayer;
import org.bu... | true |
7df34e76ba513ace2a61c7c795b941a10b860485 | Java | itarocha/hospedagem-api-obsolete | /src/main/java/br/com/itarocha/hospedagem/repository/AbstractRepository.java | UTF-8 | 4,677 | 2.390625 | 2 | [] | no_license | package br.com.itarocha.hospedagem.repository;
import javax.persistence.EntityManager;
import javax.persistence.FlushModeType;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.*;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import java.util.Optional;
import br.com.itarocha.... | true |
184a58041875993e9c10d1c1411a432927affa65 | Java | cmeher196/springboot-training | /FirstJavaApp/src/main/java/com/stackroute/FirstJavaApp/config/Myconfiguration.java | UTF-8 | 653 | 2.15625 | 2 | [] | no_license | package com.stackroute.FirstJavaApp.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import com.stackroute.FirstJavaApp.Author;
import com.stackroute.FirstJavaApp.Book;
@Configuration
public ... | true |
2fa0e05417f4ad8fc7a5a9371fb45f5a2c832767 | Java | mach6/ios-driver | /server/src/test/java/org/uiautomation/ios/e2e/config/SmokeWebDriverTest.java | UTF-8 | 3,149 | 1.632813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2013 eBay Software Foundation and ios-driver committers
*
* 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 req... | true |
6128633f100c60705fd222dcd6d93ce681c7dd61 | Java | roessling/animal-av | /src/generators/maths/FiboRecursiv.java | UTF-8 | 10,024 | 2.65625 | 3 | [] | no_license | package generators.maths;
//import FibonacciRec;
import generators.framework.Generator;
import generators.framework.GeneratorType;
import generators.framework.properties.AnimationPropertiesContainer;
import java.awt.Color;
import java.awt.Font;
import java.util.Hashtable;
import java.util.Locale;
import ... | true |
e2a5d3ca86845b8d6e5b742484757ec53f129188 | Java | DDRgood/GitTests2 | /src/main/java/SuperClass.java | UTF-8 | 95 | 1.992188 | 2 | [] | no_license | public class SuperClass {
public SuperClass(){
System.out.println("sfsd");
}
}
| true |
ebbff3e2b57024c1eb08757131251f7685869e41 | Java | o14da38/code | /part1_5/src/cn/tedu/func/Test2.java | UTF-8 | 686 | 4.15625 | 4 | [] | no_license | package cn.tedu.func;
public class Test2 {
public void showNumber(int... value) {
// 输入参数不是null,注意:没有给定参数时候,value!=null
if (value != null) {
// 首先判断这个方法是否给定了参数,如果没有给,输出提示信息
if (value.length == 0) {
System.out.println("方法没有参数!");
}
// 如果给了参数,那么输出全部
else {
// 需要注意的是,value是一个数组,取值时候用遍历数组的方式进行
for (... | true |
1079ce8ad3338699b2bea3bd0ec7b3c1c9c344d0 | Java | oath0123/15.CLASSTIME | /lib/src/main/java/com/example/lib/MyClass.java | UTF-8 | 460 | 2.9375 | 3 | [] | no_license | package com.example.lib;
import java.util.Scanner;
public class MyClass {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter Time:");
int num1 = scanner.nextInt();
int num2 = scanner.nextInt();
if((num1>=7&&num2<=30)... | true |
ac50b5a8e041159513979ae5be3c30d0fc955941 | Java | GrayOxygen/system-starter | /src/main/java/com/shineoxygen/work/admin/service/AdminUserRolePermissionMgr.java | UTF-8 | 8,958 | 2 | 2 | [] | no_license | package com.shineoxygen.work.admin.service;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.Transformer;
import org.apache.commons.lang3.StringUtils;
import org.apache.loggin... | true |
855845875ddb6936ca08076a8fb4a99540d1751e | Java | google-code/automated-deployment-manager | /automated-deployment-manager-gui/src/main/java/nl/tranquilizedquality/adm/gwt/gui/client/view/dashboard/usergroup/AvailableUsersSearchPanel.java | UTF-8 | 5,076 | 1.976563 | 2 | [] | no_license | /**
* <pre>
* Project: automated-deployment-manager-gui Created on: Aug 25, 2012 File: fAvailableUsersSearchPanel.java
* Package: nl.tranquilizedquality.adm.gwt.gui.client.view.dashboard.security
*
* Copyright (c) 2012 Tranquilized Quality www.tq-quality.nl All rights
* reserved.
*
* This software is ... | true |
905e01881a07baa9ad281d52a10352960ad0b4cf | Java | slvidya/eSign | /src/java/com/integra/model/LoginBean.java | UTF-8 | 864 | 2.09375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.integra.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
*
* @author Vidya
*/
@Entity
@Table(name="user_master")
public class LoginBean {
@Id
... | true |
0cc50b7c4579fffbb41f521e4707400d0753db5f | Java | luclucluca/Discord-Bot | /src/main/java/Main.java | UTF-8 | 385 | 2.15625 | 2 | [] | no_license | import net.dv8tion.jda.api.JDABuilder;
import javax.security.auth.login.LoginException;
public class Main {
public static void main(String[] args) throws LoginException {
JDABuilder builder = new JDABuilder();
String token = "insert Token here";
builder.setToken(token);
builder.add... | true |
af1e66786cfce3f1dfccffd8513859f9df9be040 | Java | monavorschulze/KW22_Thursday_Spring_Database_Add_Test_200528 | /src/main/java/de/neuefische/springgroupproject1/db/ProductDB.java | UTF-8 | 892 | 2.640625 | 3 | [] | no_license | package de.neuefische.springgroupproject1.db;
import de.neuefische.springgroupproject1.model.Product;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Lis... | true |
ae34990161cc5b52bf3b923bd3265e29bf8e5502 | Java | bunnyml/yz-git | /mvn-ssm-shop/src/main/java/com/jk/controller/GoodsController.java | UTF-8 | 1,015 | 2.09375 | 2 | [] | no_license | package com.jk.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.jk.pojo.Goods;
import com.jk.serv... | true |
858e5e2b42885563497e9a02db5e96c1e638e906 | Java | lujianxiong/JavaBasics | /JavaCommonClassLibraryStudy/src/第12节_SimpleDateFormat日期格式化/demo3.java | UTF-8 | 565 | 3.609375 | 4 | [] | no_license | package 第12节_SimpleDateFormat日期格式化;
//范例:格式化日期显示
import java.text.SimpleDateFormat;
import java.util.Date;
public class demo3 {
public static void main(String[] args) {
Date date = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:s.SSS"); //匹配日期格式 (pattern即格式、式样)
... | true |
c2f9c3c716224bc241852ea3193c6bed8b8e4f4a | Java | ICtest333/test_java | /ch08-collection/src/com/map/HashMapEx01.java | UHC | 768 | 3.515625 | 4 | [] | no_license | package com.map;
import java.util.HashMap;
public class HashMapEx01 {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashMap<String,Integer> map = new HashMap<String,Integer>();
map.put("ظ", new Integer(95));
map.put("츣̿´", new Integer(100));
map.put("", new Integer(85));
... | true |
7253bf10e6986c7aefe6252fffde7bf86dcd14b3 | Java | jia614/Excellence | /src/cs3500/animator/model/IReadOnlyAnimationModel.java | UTF-8 | 2,270 | 3.03125 | 3 | [] | no_license | package cs3500.animator.model;
import cs3500.animator.model.events.IEvent;
import cs3500.animator.model.shapes.IReadOnlyShape;
import cs3500.animator.model.shapes.IShape;
import java.util.List;
import java.util.Map;
/**
* Maintains the state for an animation that can only be read from (i.e. only includes the
* gett... | true |
36341a55bb38f92fec58e8aff64b1875bdd171c6 | Java | spatome/corp | /api-task/src/main/java/com/hengpeng/api/task/servicefactory/ServiceFactory.java | UTF-8 | 1,306 | 1.851563 | 2 | [] | no_license | /**
* Copyright © 2017 恒朋科技. All rights reserved.
*
* @Title: ServiceFactory.java
* @Prject: api-task
* @Package: com.hengpeng.api.task.servicefactory
* @Description: TODO
* @author: zhangwei
* @date: 2017年8月8日 下午1:48:10
* @version: V1.0
*/
package com.hengpeng.api.task.servicefactory;... | true |
aeee5d1d5b36679fc91f3a07d0ede1a5604a3bfc | Java | zhuweiqiang/XDXS-master | /src/com/qylm/entity/LeaguerDetail.java | UTF-8 | 3,687 | 2.34375 | 2 | [] | no_license | package com.qylm.entity;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* 会员详细持久化类
* @author smj
*/
@Entity
@Table(uniqueConstraints = {}, name = "leaguer... | true |
88120bb19e73fa7c5ee717d499e5c0afd4db8894 | Java | alepro123/CalculadoraCurso | /app/src/main/java/android/utn/curso/com/calculadora/MainActivity.java | UTF-8 | 13,294 | 2.625 | 3 | [] | no_license | package android.utn.curso.com.calculadora;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
TextView txt_pantalla... | true |
723f80eef1a7db39fbaa63be8e2bc002882b1627 | Java | KarthikBommineni/practise | /Inherited.java | UTF-8 | 427 | 3.421875 | 3 | [] | no_license | import java.util.*;
/*implementing inheritance by single inheritance
using extends keyword
inherits--subclass
inherited--superclass
*/
class Inherits{
int odi=1456;
int test=1423;
}
public class Inherited extends Inherits{
public static void main(String[] args) {
Inherited score=new Inherited();
System.out.... | true |
dc9792ceda1c1ef12421c9b56d0a6a39cdd62692 | Java | shivamgeek/Data-Structures-and-Algorithms | /linkedListDataStructure/src/com/pack/linkedList.java | UTF-8 | 2,327 | 3.515625 | 4 | [] | no_license | package com.pack;
public class linkedList {
node start,temp,newNode;
void addNode(int data){
if(start==null){
newNode=new node();
start=newNode;
temp=newNode;
start.setData(data);
}
else{
newNode=new node();
newNode.setData(data);
temp.setNext(newNode);
temp=newNode;
}
... | true |
7cd7d8a1da6cb45d8771daa273909fdfc4a218ee | Java | Jorge-Comp/paa | /quick_Sort.java | UTF-8 | 1,893 | 3.5 | 4 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author Jorge
*/
public class quick_Sort {
public static void main(String[] args) {
int[] Num= {9 , 10 , -1... | true |
3a2893d7639671ff54f9b444db260825cb2e323e | Java | seaweedy/Board_spring | /src/test/java/kr/or/ddit/attachment/repository/AttachmentRepositoryTest.java | UTF-8 | 1,744 | 2.109375 | 2 | [] | no_license | package kr.or.ddit.attachment.repository;
import static org.junit.Assert.assertEquals;
import java.util.List;
import javax.annotation.Resource;
import org.junit.Test;
import kr.or.ddit.ModelTestConfig;
import kr.or.ddit.attachment.dao.AttachmentDaoI;
import kr.or.ddit.attachment.model.AttachmentVo;
public class A... | true |
b9b0c53cf8c6b74eeb41c055fc49405a7b6622d1 | Java | moutainhigh/boss2 | /src/main/java/cn/eeepay/boss/thread/SuperBankBankProfitRunnable.java | UTF-8 | 766 | 2.140625 | 2 | [] | no_license | package cn.eeepay.boss.thread;
import cn.eeepay.framework.service.SuperBankService;
import cn.eeepay.framework.util.ClientInterface;
import com.auth0.jwt.internal.org.apache.commons.lang3.StringUtils;
/**
* 超级银行家
* 根据根据批次号,计算办卡的分润
* @author tans
* @data 2017-12-14
*/
public class SuperBankBankProfitRunnable impl... | true |
f5d2fe248fe6c2288e842257b95f5af09fabaf42 | Java | wangxlong/BigData | /graphiteSinker/src/main/java/cn/whl/graphiteSinker/util/GraphiteSinkerLogAppender.java | UTF-8 | 418 | 2.28125 | 2 | [] | no_license | package cn.whl.graphiteSinker.util;
import org.apache.log4j.DailyRollingFileAppender;
import org.apache.log4j.Priority;
/**
* Created by didi on 2017/6/22.
*/
public class GraphiteSinkerLogAppender extends DailyRollingFileAppender {
public boolean isAsSevereAsThreshold(Priority priority) {
//只判断是否相等,而... | true |
9893ebf5a996ba604471cffaaca5f0f785eba9b1 | Java | TheDreadingDark/Pokemon | /src/pokemon/model/Ivysaur.java | UTF-8 | 457 | 2.40625 | 2 | [] | no_license | package pokemon.model;
public class Ivysaur extends Bulbasaur
{
public Ivysaur()
{
super(002, "Ivysaur");
setup();
}
public Ivysaur(String name)
{
super(002, name);
setup();
}
public Ivysaur(int number, String name)
{
super(number, name);
setup();
}
@Override
protected void setup()
{
su... | true |
ea991fa8b6a61f7a1f16e48d1b1a6a67a549c1c3 | Java | AniketSurya-Debug/BasicJavaPrograms | /ExceptionalHandling.java | UTF-8 | 618 | 3.546875 | 4 | [] | no_license | public class ExceptionalHandling{
public static void main(String args[])
{
try{
//int a=4;
//int b=0;
//int c=a/b;
//System.out.println(c);
int a[]=new int[5];
System.out.println(a[6]);
}
catch(ArithmeticException e){... | true |
aaf3a9d2f5492144c0563322a3ab7018f2d619da | Java | annazhang2002/CivicCitizen | /app/src/main/java/com/example/votingapp/activities/OpeningActivity.java | UTF-8 | 3,187 | 2.328125 | 2 | [] | no_license | package com.example.votingapp.activities;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.v... | true |
afccf2eeef3030079849d90772391f7befde7379 | Java | Mar71n1/SWiM_ImageGallery | /app/src/main/java/pl/pwr/imagegallery/ImageData.java | UTF-8 | 1,786 | 2.640625 | 3 | [] | no_license | package pl.pwr.imagegallery;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
public class ImageData implements Parcelable {
private String url;
private String title;
private String date;
private ArrayList<String> tags;
public ImageData(String url, String titl... | true |
22e357fac4bbf8f76a56e45b0417c501a5e3181e | Java | OneLand/krane_api | /src/main/java/com/gachaland/api/store/dto/mapper/StoreItemMapper.java | UTF-8 | 693 | 2.1875 | 2 | [] | no_license | package com.gachaland.api.store.dto.mapper;
import com.gachaland.api.store.dao.model.StoreItem;
import com.gachaland.api.store.dto.model.StoreItemDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class StoreItemMapper {
public StoreItemDTO mappingStoreIt... | true |
b7621ee4fb65e1f3294f4599cf2a68c4d30cd660 | Java | shaojava/v3.6.3 | /.svn/pristine/b7/b7621ee4fb65e1f3294f4599cf2a68c4d30cd660.svn-base | UTF-8 | 7,130 | 1.820313 | 2 | [] | no_license | package com.jinr.core.transfer;
import android.os.Bundle;
import android.text.Html;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;
import com.google.gson.... | true |
e0a0143daa442fc32859d782feec03a6c275b768 | Java | led-os/Coach_App | /app/src/main/java/com/jsjlzj/wayne/entity/find/CashOutPageBean.java | UTF-8 | 4,790 | 2.515625 | 3 | [] | no_license | package com.jsjlzj.wayne.entity.find;
import java.util.List;
/**
* @ClassName: CashOutPageBean
* @Description: java类作用描述
* @Author: 曾海强
* @CreateDate: 2020/5/6 22:35
*/
public class CashOutPageBean {
/**
* data : {"pageNo":"当前页","pageSize":"每页大小","result":[{"amount":"提现金额","balance":"本次余额","bankName":"... | true |
be15f3b1c9dd9c8dedddf8ffd32dc060c376410b | Java | claudioDcv/portafolio | /src/main/java/org/portafolio/safe/dto/ResponseDto.java | UTF-8 | 284 | 1.84375 | 2 | [] | no_license | package org.portafolio.safe.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
public class ResponseDto<T> {
@Getter @Setter T object;
@Getter @Setter String message = "";
}
| true |
f1ce0ac7ceb49615684ad489c9473c84384d7d49 | Java | parkhyeji/practiceproject | /src/main/java/nexacro/aml/service/ReportManagementService.java | UTF-8 | 1,739 | 1.859375 | 2 | [] | no_license | package nexacro.aml.service;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.annotation.Resource;
import nexacro.aml.dao.ReportManagementDAO;
import org.springframework.stereotype.Service;
import egovframework.rte.fdl.cmmn.AbstractServiceImpl;
@SuppressWarnings("deprecation"... | true |
8ef30695f3c590910de1a548b73fa1611d8136b2 | Java | pavithra-naagarajan/alstrom-ui | /alstrom-project-dynamicpage-hibernate/src/test/java/com/revature/pms/service/CustomerServiceImplTest.java | UTF-8 | 1,682 | 2.125 | 2 | [] | no_license | package com.revature.pms.service;
import static org.junit.Assert.*;
import java.util.Date;
import javax.persistence.Column;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.revature.pms.model.Customer;
pub... | true |
75a359ee9ac4b17c040c90b24a569f77399ea4a4 | Java | 958212662/nm | /antiepidemicplatform/src/main/java/com/basicInfo/controller/VeterinarianController.java | UTF-8 | 4,227 | 2.171875 | 2 | [] | no_license | package com.basicInfo.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ster... | true |
094485cbef71993199cf86b950f4ef3eeaef9540 | Java | viritin/viritin | /viritin/src/main/java/org/vaadin/viritin/layouts/MWindow.java | UTF-8 | 2,298 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package org.vaadin.viritin.layouts;
import org.vaadin.viritin.MSize;
import com.vaadin.server.Resource;
import com.vaadin.ui.Component;
import com.vaadin.ui.Window;
public class MWindow extends Window {
private static final long serialVersionUID = -9067209720594324637L;
public MWindow() {
super();
... | true |
1bde551df27f5b934054d891efce7f743870e1c1 | Java | StemlabsSL/Stemlabschat-Android | /app/build/generated/data_binding_base_class_source_out/debug/out/com/stemlabs/ellu/databinding/DialogAlarmNameBinding.java | UTF-8 | 2,967 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | // Generated by view binder compiler. Do not edit!
package com.stemlabs.ellu.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
... | true |
7edbfd27b6874d0de29e4120dc9e18e09a9fcdc4 | Java | SongJJ12138/hksgj_java | /src/main/java/com/sbsocket/controller/SpringbootApplication.java | UTF-8 | 609 | 1.710938 | 2 | [] | no_license | package com.sbsocket.controller;
import org.apache.catalina.core.ApplicationContext;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationCo... | true |
7bbc5ee27fb1e0e6d1a62939854d38dfaa9cf6d7 | Java | nowanys/cc-project-easyui | /cjhmeframework/src/main/java/com/cjhme/system/access/dao/impl/AccessUrlDaoImpl.java | UTF-8 | 2,773 | 2.265625 | 2 | [] | no_license | package com.cjhme.system.access.dao.impl;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.cjhme.system.access.bean.AccessUrlBean;
import com.cjhme.system.access.dao.AccessUrlDao;
import com.cjhme.system.main.dao.BaseDao;
import com.cjhme.system.main.intercept... | true |