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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
cf101fa66ec54e791d0e373bd8f3fbe9158c6524 | Java | xiaoyangren6514/android_study | /android_mvc_demo/src/main/java/com/happy/mvc/activity/LoginActivity.java | UTF-8 | 3,213 | 2.40625 | 2 | [] | no_license | package com.happy.mvc.activity;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.happy.mvc.R;
import com.happy.mvc.dom... | true |
eaeac33f70adce50a7ebecb1f39fac99c527a663 | Java | dnault/therapi-runtime-javadoc | /therapi-runtime-javadoc/src/main/java/com/github/therapi/runtimejavadoc/internal/parser/ThrowsTagParser.java | UTF-8 | 1,527 | 2.0625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Copyright 2015 David Nault and contributors
*
* 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 l... | true |
2eb6c79bbe39ca14e4b647d01a36b49e4fa19af3 | Java | Mohanpattabhi/Webshop_ThirdNdFinalSprintCode | /Webshop/Business/src/main/java/com/sogeti/webshop/dao/impl/RegistrationDAOImpl.java | UTF-8 | 1,513 | 2.40625 | 2 | [] | no_license | package com.sogeti.webshop.dao.impl;
import java.util.List;
import javax.ejb.Stateless;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import com.sogeti.webshop.dao.RegistrationDAO;
import com.sogeti.webshop.model.User;
... | true |
b9be074ef61ee00819ec2fd10730d4bf5e358dad | Java | ymzyf2007/zx-mall-parent | /zx-mall-admin/src/main/java/com/zx/mall/admin/security/UserDetailsServiceImpl.java | UTF-8 | 2,474 | 2.1875 | 2 | [] | no_license | package com.zx.mall.admin.security;
import java.util.HashSet;
import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframewor... | true |
9358b68ccd3812711bb945981b602d9df3a1a099 | Java | SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018 | /Corpus/eclipse.jdt.ui/8313.java | UTF-8 | 38,460 | 1.765625 | 2 | [
"MIT"
] | permissive | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | true |
be057decf935e5135fa2db709cc82bc41c5148a1 | Java | KingJA/CityControlPolice | /app/src/main/java/com/tdr/citycontrolpolice/entity/User.java | UTF-8 | 949 | 2.28125 | 2 | [] | no_license | package com.tdr.citycontrolpolice.entity;
/**
* Created by Administrator on 2016/2/27.
*/
public class User {
private String UserID;
private String Name;
private String Phone;
private String IdentityCard;
private String Token;
public String getUserID() {
return UserID;
}
pub... | true |
85cdbbeafd5f7a996055cfa5f52dfe6eb228370c | Java | kkolodziejczak/Organizer | /app/src/main/java/rpk/organizer/actionbar/Utils/GPSCheck.java | UTF-8 | 831 | 1.960938 | 2 | [] | no_license | package rpk.organizer.actionbar.Utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.location.LocationManager;
import android.widget.Toast;
/**
* Created by PL on 2017-05-26.
*/
public class GPSCheck extends BroadcastReceiver {
@Override... | true |
361869dccee217488616f48680151d57f02718ba | Java | V-zhangyunxiang/LoginShareSDK | /libwechat/src/main/java/com/cmplay/dancingline/wxapi/WXEntryActivity.java | UTF-8 | 6,517 | 2.21875 | 2 | [] | no_license | package com.cmplay.dancingline.wxapi;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.cmplay.util.UsersInfo;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.modelmsg.SendAuth;
import com.t... | true |
b4c3f046e405180f68e3a7887492c2f40f50cdb4 | Java | alvinlai808/CMSI-186_Projects | /homework04/Clock.java | UTF-8 | 11,534 | 3.40625 | 3 | [] | no_license | /** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* File name : Clock.java
* Purpose : Provides a class defining methods for the ClockSolver class
* @author : B.J. Johnson
* Date written : 2017-02-28
* Description : This class pro... | true |
c07f9bfb53acd22d16ce32372a054fe038a750c2 | Java | matkluska/extreme-programming | /src/main/java/pl/edu/agh/kis/timetracker/service/project/AbstractProjectExporter.java | UTF-8 | 218 | 1.882813 | 2 | [
"MIT"
] | permissive | package pl.edu.agh.kis.timetracker.service.project;
import pl.edu.agh.kis.timetracker.domain.Project;
public abstract class AbstractProjectExporter {
public abstract void exportProject(final Project project);
}
| true |
e1bc6a518b09183be4ceb96601b1aa5d2e2c8bfe | Java | wizardkeven/Test_vocal | /app/src/main/java/com/example/wizar_000/test_vocal/VoiceRecognition.java | UTF-8 | 11,532 | 2.1875 | 2 | [] | no_license | package com.example.wizar_000.test_vocal;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.speech.RecognizerIntent;
import android.speec... | true |
18abfb2e5413d5342e4430c1cb5475e7ade6b6c4 | Java | Wakeel03/Space-Invader-JavaFX | /Space Invaders/src/application/Bullet.java | UTF-8 | 874 | 3.328125 | 3 | [
"MIT"
] | permissive | package application;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
public class Bullet {
private final int WIDTH = 10, HEIGHT = 10, SPEED = 25;
private int x, y;
public Bullet(int x, int y) {
this.x = x;
this.y = y;
}
public void tick() {
y... | true |
c661ec1efdbccc7337b4ee4be471e76068e90ff7 | Java | testing007user/testing | /src/main/java/com/yesmail/qa/test/configuration/XMLParser.java | UTF-8 | 2,395 | 2.5625 | 3 | [] | no_license | package com.yesmail.qa.test.configuration;
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.s... | true |
87574e0ffeaba2264ddea19e20f0537ca1138880 | Java | fwhui/search-solr | /src/main/java/search/solr/searchsolr/damain/Category.java | UTF-8 | 338 | 1.679688 | 2 | [
"MIT"
] | permissive | package search.solr.searchsolr.damain;
import lombok.Data;
import java.util.Date;
@Data
public class Category {
private Long id;
private Long parentId;
private String name;
private Integer status;
private Integer sortOrder;
private Boolean isParent;
private Date created;
privat... | true |
c97b13a05289475ca775a175ad0441147ef009a2 | Java | LTaeHoon/ncs_spring | /chap07_AOP/src/main/java/spring/aop/ch02/Lecture.java | UTF-8 | 162 | 2.09375 | 2 | [] | no_license | package spring.aop.ch02;
// 핵심 모듈 인터페이스 : 수업진행
public interface Lecture {
void study(); // 수업진행 : 포인트컷 메서드
}
| true |
b82d3f55521ba4d4ead2af2c17dcf259803032fd | Java | olofekelund/BachelorThesis | /org.language/src-gen/org/language/reqLanguage/impl/PrefixConditionImpl.java | UTF-8 | 14,189 | 1.65625 | 2 | [] | no_license | /**
*/
package org.language.reqLanguage.impl;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotific... | true |
ec4e5f017f3359790353b9c07673feeb3680bae0 | Java | guillermofuentesquijada/bonita-studio | /bundles/plugins/org.bonitasoft.studio.common.repository/src/org/bonitasoft/studio/common/repository/filestore/PackageFileStore.java | UTF-8 | 8,324 | 1.835938 | 2 | [] | no_license | /**
* Copyright (C) 2012-2014 Bonitasoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (... | true |
c8c95247890055b8106232efbad98d47693ffe73 | Java | GiovanniPucariello/TeevraCore | /Development3.0/TeevraServer/platform/core/src/main/java/com/headstrong/fusion/core/CamelProcessContext.java | UTF-8 | 19,923 | 1.679688 | 2 | [] | no_license | /*
* The information in this document is subject to change without notice and
* does not represent a commitment by Headstrong Corporation. The software
* and/or databases described in this document are furnished under a license
* agreement and may be used or copied only in accordance with the terms of
* the ag... | true |
4aa4f29b785eea084a03d01b7c3fe739155b0880 | Java | toto9114/BanteriorPrototype | /app/src/main/java/com/example/sony/banteriorprototype/data/Interior/InteriorData.java | UTF-8 | 206 | 1.765625 | 2 | [] | no_license | package com.example.sony.banteriorprototype.data.Interior;
import java.util.List;
/**
* Created by sony on 2016-03-04.
*/
public class InteriorData{
public List<InteriorContentData> interiorList;
}
| true |
d57300e515cb46e91a60e96da0614ce39f49f48f | Java | rebioma/portal | /src/org/rebioma/client/bean/ListStatisticAPIModel.java | UTF-8 | 1,371 | 2.015625 | 2 | [] | no_license | /**
*
*/
package org.rebioma.client.bean;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import com.google.gwt.user.client.rpc.IsSeria... | true |
5ee85529f433e40e0ffebf74643b9dd7bac91d13 | Java | Nuubles/Karanteeni | /KaranteeniPerms/src/main/java/net/karanteeni/karanteeniperms/bungee/groups/ExtendedPermission.java | UTF-8 | 1,947 | 2.875 | 3 | [] | no_license | package net.karanteeni.karanteeniperms.bungee.groups;
public class ExtendedPermission implements Comparable<Object> {
private String permission;
private boolean positive = true;
//private boolean starPermission = false;
public ExtendedPermission(String permission, boolean positive/*, boolean starPermissio... | true |
628d8c2342e6474352a3002a0cb9975e1ee5b938 | Java | tenbirds/OPENWORKS-3.0 | /src/main/java/zes/openworks/common/rest/g2b/vo/G2bVO.java | UTF-8 | 4,586 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012 ZES Inc. All rights reserved.
* This software is the confidential and proprietary information of ZES Inc.
* You shall not disclose such Confidential Information and shall use it
* only in accordance with the terms of the license agreement you entered into
* with ZES Inc. (http://www.zesinc.... | true |
2cc225d3f61e5d590cef062d1f51a7bd23980721 | Java | cha63506/netl | /src/java/com/adnetik/junk/JpartnerConvScan.java | UTF-8 | 1,165 | 1.828125 | 2 | [] | no_license |
package com.adnetik.adhoc;
import java.io.*;
import java.util.*;
import org.apache.hadoop.mapred.*;
//import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.util.*;
import org.apache.hadoop.fs.*;
import org.apache.hadoop.io.*;
import com.adnetik.shared.*;
import com.adnetik... | true |
51402be74270d40b2f95667501e501d169c53f70 | Java | imisbest/emsDeptPink | /src/main/java/com/csw/controller/UserController.java | UTF-8 | 2,356 | 2.3125 | 2 | [] | no_license | package com.csw.controller;
import com.csw.entity.User;
import com.csw.service.UserService;
import com.csw.util.MD5Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet... | true |
29e3f667db94b8013e4c2f65a8e9bb61b73fb2e0 | Java | MinecraftSources/MinecraftServerDec19 | /src/net/minecraft/server/EntityMinecartHopper.java | UTF-8 | 2,432 | 1.695313 | 2 | [] | no_license | package net.minecraft.server;
import java.util.List;
public class EntityMinecartHopper extends class_xk implements class_aou {
private boolean a = true;
private int b = -1;
private class_cj c;
public EntityMinecartHopper(class_ago var1) {
super(var1);
c = class_cj.a;
}
public EntityMinecartHopper(class_ag... | true |
7687dd195c6837c44f41409b132e2d9da6f382db | Java | ThademAravind/mavendemo | /mavenDemo-master/src/main/java/src/main/java/com/newyeargifts/Chocolate.java | UTF-8 | 151 | 2.03125 | 2 | [] | no_license | package src.main.java.com.newyeargifts;
public class Chocolate extends Sweet {
int no_of_varieties;
Chocolate(){
this.no_of_varieties=2;
}
}
| true |
31ad4d2a87c6916cc556fba4b66b241aa3e7fb5c | Java | victorher/desarollo | /src/java/Modelo/Pedidosgetset.java | UTF-8 | 3,356 | 2.265625 | 2 | [] | no_license | package Modelo;
public class Pedidosgetset {
private String CodPedido;
private String Documento;
private String Nombre;
private String Apellido;
private String Estado;
private String FecPedido;
private String FecEntrega;
private String DirEntrega;
private String Tipo;
... | true |
ad885a2900469be8aba2fe06f53cc7dfe844060b | Java | nobbuuu/OneHome | /app/src/main/java/com/dream/onehome/constract/IClickLisrener.java | UTF-8 | 148 | 1.664063 | 2 | [] | no_license | package com.dream.onehome.constract;
/**
* Time:2019/12/23
* Author:TiaoZi
*/
public interface IClickLisrener {
void onClick(int viewId);
}
| true |
af3f6dab7a74ff9464db6eaa2c722380e9a9777e | Java | banhyungil/jblog | /jblog6/src/main/java/kr/co/itcen/jblog/security/ResultAuth.java | UTF-8 | 82 | 1.5625 | 2 | [] | no_license | package kr.co.itcen.jblog.security;
public enum ResultAuth {
USER, ADMIN
}
| true |
44d514f595b31358d2ad9e2e81f7708db87cb96f | Java | SusyAnneR/ProjetoMatrix-Backend | /academico/src/main/java/br/com/projetomatrix/academico/Sistema/Histórico.java | UTF-8 | 271 | 2.203125 | 2 | [] | no_license | package br.com.projetomatrix.academico.Sistema;
import java.util.List;
public class Histórico {
List<Boletim> boletins;
public List<Boletim> getBoletins() {
return boletins;
}
public void setBoletins(List<Boletim> boletins) {
this.boletins = boletins;
}
}
| true |
ac72b7d0b833867a1a4b2f697f6cfabd0bb0f61d | Java | Guozha/BUY | /src/com/guozha/buy/adapter/PreSpecialGridAdapter.java | UTF-8 | 3,039 | 2.390625 | 2 | [] | no_license | package com.guozha.buy.adapter;
import java.util.List;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextV... | true |
7785e0d6bffb58ce8b36dc9b628182f8971be92a | Java | javadev/pt-backend | /src/test/java/com/osomapps/pt/goals/GoalDTOTest.java | UTF-8 | 975 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.osomapps.pt.goals;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import org.junit.Test;
public class GoalDTOTest {
@Test
public void createAllArgs() {
assertThat(new GoalDTO(1L, null, null, null, null), notNullValue());
}
@Test
... | true |
c454b450e070e2adbd92fe600a72e7ea36d54822 | Java | alexcamp/ArrobaTiempoGradle | /workspace_movistar_wl11/zjarUtiliesATiempo/src/co/com/telefonica/atiempo/utiles/Mensaje.java | UTF-8 | 934 | 2.21875 | 2 | [] | no_license | package co.com.telefonica.atiempo.utiles;
public class Mensaje
{
private String txtMsg;
private byte[] messageId;
private byte[] correlationId;
private String replyToQueueManagerName;
private String replyToQueueName;
public String getTxtMsg()
{
return txtMsg;
}
public byte[] getMessageId()
{
return me... | true |
f2b4196923b4a2ff5826b3dbe1bc4d2bff61239b | Java | lovocal/lovocal_android | /app/src/main/java/com/lovocal/data/TableChats.java | UTF-8 | 2,613 | 2.25 | 2 | [] | no_license |
package com.lovocal.data;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import android.text.TextUtils;
import com.lovocal.utils.Logger;
import java.util.Locale;
import com.lovocal.utils.AppConstants.ChatType;
/**
* Table representing a list of chats
*/
public class TableC... | true |
55866963311489034a2750a1b245a281c0bac5f7 | Java | why66666/FastJee-Cloud | /fastjee-cloud-commons/src/main/java/cn/chi365/fastjee/cloud/commons/util/IDUtils.java | UTF-8 | 399 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | package cn.chi365.fastjee.cloud.commons.util;
import java.util.UUID;
/**
* IDUtils TODO
*
* @author :Yusir
* @version :1.0.0
* @date :Created in 2019/4/18 15:43
*/
public class IDUtils {
/**
* 封装JDK自带的UUID, 通过Random数字生成, 中间无-分割.
*/
public static String uuid() {
return UUID.randomUUID()... | true |
a2d90d931023da387edf07c6179e34db539574b3 | Java | raphamendonca/raphamendonca-fizzbuzz | /src/main/java/com/github/raphamendonca/raphamendoncafizzbuzz/exceptionhandler/ResponseError.java | UTF-8 | 2,014 | 2.609375 | 3 | [
"MIT"
] | permissive | package com.github.raphamendonca.raphamendoncafizzbuzz.exceptionhandler;
import org.springframework.http.HttpStatus;
public class ResponseError {
private HttpStatus status;
private int code;
private String message;
private String detail;
public HttpStatus getStatus() {
return st... | true |
21e5b1060ef52238a8656a065fb564d94139bd78 | Java | shiex/SSM-blogs | /src/main/java/com/xbb/service/AppluadService.java | UTF-8 | 305 | 1.539063 | 2 | [] | no_license | package com.xbb.service;
import com.xbb.pojo.Appluad;
/**
* @author Administrator
* @title: AppluadService
* @projectName SSM-blogs
* @description: TODO
* @date 2019\4\7 000715:43
*/
public interface AppluadService {
void add(Appluad appluad);
void remove(int commentId, int userId);
}
| true |
80050fe826c5fa1ac3b03e1dcc9eda2673b696e6 | Java | AdrianCert/SqlGame | /src/microservices/ms-backend/src/main/java/ro/uaic/info/repository/PostRepository.java | UTF-8 | 3,165 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package ro.uaic.info.repository;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import ro.uaic.info.builder.PostBuilder;
import ro.uaic.info.builder.UserTableBuilder;
import ro.uaic.info.database.Database;
import ro.uaic.info.entity.Post;
import ro.uaic.i... | true |
1670b9a63eec4a0e84b8bfa18d1b5f62df3d930c | Java | cckmit/b2b | /src/com/saas/biz/userMgr/UserDetailInfo.java | UTF-8 | 14,135 | 1.765625 | 2 | [] | no_license | package com.saas.biz.userMgr;
import com.saas.biz.commen.commMethodMgr;
import com.saas.biz.dao.userdetailDAO.UserdetailDAO;
import com.saas.biz.dao.userdetailDAO.UserdetailExt;
import com.saas.sys.buffer.Buffers;
import com.saas.sys.dbm.Dbtable;
import com.saas.sys.exp.SaasApplicationException;
import com.saa... | true |
0417f93cf73450e8b71f41d67e0a9dc8d846674b | Java | bsteker/cloudo | /eclipse-plugins/com.bstek.ide.studio/src/com/bstek/ide/studio/protocol/MessageAdapter.java | UTF-8 | 826 | 2.515625 | 3 | [] | no_license | package com.bstek.ide.studio.protocol;
import java.io.InputStream;
import java.io.Writer;
import com.bstek.ide.studio.LogUtil;
import com.bstek.ide.studio.socket.MessageHandler;
/**
* @author matt.yao@bstek.com
* @since 1.0.0
*/
public abstract class MessageAdapter implements MessageHandler {
@Ove... | true |
7b82dffcdd117789c07179f82a4546968393b60a | Java | wadelts/LwSockets | /LwSockets/src/main/java/lw/sockets/SocketTransferMessage.java | UTF-8 | 1,506 | 2.796875 | 3 | [] | no_license | package lw.sockets;
import lw.sockets.SocketComms.SocketFormat;
import lw.sockets.SocketComms.SocketService;
/**
* Encapsulates information about an event arising from socket activity.
*
* Thread-safety: This class is thread safe.
*
* @author Liam Wade
* @version 1.0 20/09/2013
*/
public c... | true |
abbb04f39fad9da14d0e3bd0a838c065b84b99b0 | Java | wuruiliang/xwlbAnalysiser | /xwlb-api/src/main/java/com/wrl/xwlb/controller/StaticController.java | UTF-8 | 912 | 2.046875 | 2 | [] | no_license | package com.wrl.xwlb.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class StaticController {
@RequestMapping("/newsKeywords")
public String newsKeyWords(@R... | true |
eef88f18b3a216250fcac6b3a2993360b79271df | Java | TKnudsen/ComplexDataObject | /src/main/java/com/github/TKnudsen/ComplexDataObject/model/io/parsers/examples/TitanicParser.java | UTF-8 | 12,377 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.TKnudsen.ComplexDataObject.model.io.parsers.examples;
import java.io.IOException;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.github.TKnudsen... | true |
2f53e09940b0370cb56f87d46688923ff6cac741 | Java | SantiPingui58/Splindux_Old | /src/com/santipingui58/spleef/listener/VotifierListener.java | IBM852 | 4,330 | 2.09375 | 2 | [] | no_license | package com.santipingui58.spleef.listener;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import com.santipingui5... | true |
21346740525d761a9505fd9f7d582f64bd06f607 | Java | krzysztofkolcz/java | /collections/src/main/java/collections/Contains.java | UTF-8 | 1,541 | 3.34375 | 3 | [] | no_license | package collections;
import java.util.List;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Random;
public class Contains{
public static void main(String[] arg){
Integer N = 1000000;
Random rand = new Random();
List<Inte... | true |
b3a36b05404cfd697aedfa85ea6857339334c62d | Java | xxxisan/gainambackendfinalupdate | /GainAmBackendFinal-finalupdate/src/main/java/com/boot/project/controller/ManagerController.java | UTF-8 | 4,921 | 2.3125 | 2 | [] | no_license | package com.boot.project.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import com.boot.project.model.Inventory;
import com.boot.project.model.Produ... | true |
47987545159fb999319925b6e2a552cb8d731959 | Java | fsarachu/help-4-travelling | /servidor-central/servidor-central-lib/src/main/java/uy/edu/cure/servidor/central/lib/servicios/ServiceFactory.java | UTF-8 | 1,335 | 1.867188 | 2 | [] | no_license | package uy.edu.cure.servidor.central.lib.servicios;
import uy.edu.cure.servidor.central.lib.servicios.memoria.*;
public class ServiceFactory {
public static CarritoService getCarritoService() {
return CarritoServiceImpl.getInstance();
}
public static CategoriaService getCategoriaService() {
... | true |
17ff85ec7ec18f788c341865c28d21b899171d40 | Java | moravianlibrary/RecordManager2 | /cz.mzk.recordmanager.server/src/main/java/cz/mzk/recordmanager/server/export/ExportRecordsForClassifierProcessor.java | UTF-8 | 1,526 | 2.125 | 2 | [] | no_license | package cz.mzk.recordmanager.server.export;
import cz.mzk.recordmanager.server.marc.MarcRecord;
import cz.mzk.recordmanager.server.marc.MarcXmlParser;
import cz.mzk.recordmanager.server.model.HarvestedRecord;
import cz.mzk.recordmanager.server.oai.dao.HarvestedRecordDAO;
import org.springframework.batch.item.ItemProce... | true |
ee235e254db4dfdaed46e71f84ccd9f281f3d59b | Java | pkorzekwa/trak-git | /src/main/java/pl/pzu/trak/services/PrivilegeService.java | UTF-8 | 442 | 1.992188 | 2 | [] | no_license | package pl.pzu.trak.services;
import java.util.List;
import pl.pzu.trak.domain.Privilege;
public interface PrivilegeService
{
void add(Privilege privilege);
List<Privilege> findAll();
public void remove(Long Id);
void update(Privilege privilege);
void save(Privilege privilege);
Privilege findOn... | true |
000f0f368768a0466d8330c8bd566d3209746114 | Java | importtao/seckill-back-end | /src/main/java/me/importtao/seckillbackend/model/GoodsInfo.java | UTF-8 | 982 | 2.109375 | 2 | [] | no_license | package me.importtao.seckillbackend.model;
import org.springframework.stereotype.Component;
import java.io.Serializable;
@Component
public class GoodsInfo implements Serializable {
private String goodsId;
private String image;
private Double price;
private Integer version;
private static final... | true |
95c4946fdc60f07373b6c38d5046f4bd03830de7 | Java | Akkk08/examples-using-api | /src/main/java/example/api/activation/GetNumbersStatusRun.java | UTF-8 | 2,981 | 2.671875 | 3 | [] | no_license | package example.api.activation;
import com.sms_activate.SMSActivateApi;
import com.sms_activate.error.base.SMSActivateBaseException;
import com.sms_activate.response.api_activation.SMSActivateGetNumbersStatusResponse;
import com.sms_activate.response.api_activation.extra.SMSActivateServiceInfo;
import org.jetbra... | true |
eb7045903848666c64dc7c2e4642d4155c63befd | Java | MaskerPRC/communitychest | /chest/gui/helpers/src/main/java/net/community/chest/ui/helpers/text/InputTextFieldReflectiveProxy.java | UTF-8 | 967 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
*
*/
package net.community.chest.ui.helpers.text;
import net.community.chest.swing.component.text.JTextFieldReflectiveProxy;
/**
* <P>Copyright 2008 as per GPLv2</P>
*
* @param <F> The reflected {@link InputTextField} type
* @author Lyor G.
* @since Jan 12, 2009 12:22:26 PM
*/
public class InputTextFieldRe... | true |
2cd9818a8dd3a253b915779a5182085be72d84f6 | Java | langerhans/requery | /requery/src/main/java/io/requery/JunctionTable.java | UTF-8 | 1,588 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 requery.io
*
* 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 to i... | true |
fa27cedd6f7e0781a757f88c095b6b516cb2d528 | Java | YonghuaWang706/PrototypeApp | /src/main/java/edu/wpi/cs3733/c21/teamY/pages/LandingPageController.java | UTF-8 | 3,406 | 2.390625 | 2 | [
"MIT"
] | permissive | package edu.wpi.cs3733.c21.teamY.pages;
import com.jfoenix.controls.JFXButton;
import edu.wpi.cs3733.c21.teamY.dataops.Settings;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.application.Platform;
impo... | true |
17a23aea39a80ba86ab6831df66b062eb649611b | Java | sheldak/theory-of-concurrency | /java_concurrency/src/semaphores/counting/Config.java | UTF-8 | 137 | 1.664063 | 2 | [] | no_license | package semaphores.counting;
public class Config {
public static final int CARTS = 5;
public static final int CUSTOMERS = 10;
}
| true |
620a296272199fa3b1610c5a13c6d34a1fd8a6d8 | Java | sramos02/PlantsVsZombies | /src/p3/rols/placeables/types/Stone.java | ISO-8859-10 | 577 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | package p3.rols.placeables.types;
import p3.gameLogic.Game;
import p3.rols.placeables.Placeables;
public class Stone extends Placeables{
private static final String symbol = "[X]";
private static final String name = "STONE";
private static int life = 1; //Nunca recibe dao
private static final int cos... | true |
fbb712030999f22372592beaab4847a7420ed1b6 | Java | mlmathisumes/LACountySouthBayTourGuide | /app/src/main/java/com/example/lacountysouthbaytourguide/SeeFragment.java | UTF-8 | 5,017 | 2.15625 | 2 | [] | no_license | /*
* Copyright 2018 The Android Open Source Project
*
* 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 applica... | true |
9bb77aecf4e4b585c38e1f13d0ef928990d9aade | Java | Naoskev/ChatAndroid | /app/src/main/java/com/mines_nantes/utilisateur/chat/listener/LoginListener.java | UTF-8 | 202 | 1.734375 | 2 | [] | no_license | package com.mines_nantes.utilisateur.chat.listener;
/**
* Created by Utilisateur on 20/01/2015.
*/
public interface LoginListener {
public void onLoginSuccess();
public void onLoginFail();
}
| true |
3c0900cd9ecda828fd3e5339eb826df59598446a | Java | atreidas1/QLA | /src/main/java/qla/modules/actions/models/ExecuteSSHCommandActionRQ.java | UTF-8 | 391 | 2.0625 | 2 | [] | no_license | package qla.modules.actions.models;
public class ExecuteSSHCommandActionRQ extends AbstractActionCommand{
private String commandKey;
private String ip;
public String getCommandKey() {
return commandKey;
}
public void setCommandKey(String commandKey) {
this.commandKey = commandKey;
}
public String getIp() ... | true |
dbfd70bcf09ec8e0a22976af15d9ce9ee0bfaa2b | Java | Anda77/project-euler | /src/main/java/com/walshcorp/projecteuler/Problem2_EvenFibonacci.java | UTF-8 | 711 | 3.796875 | 4 | [] | no_license | package com.walshcorp.projecteuler;
/**
* Each new term in the Fibonacci sequence is generated by adding the previous
* two terms. By starting with 1 and 2, the first 10 terms will be:
*
* 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
*
* By considering the terms in the Fibonacci sequence whose values do not exceed
... | true |
5d3c34a8762316e2bd9e2c246492394182164425 | Java | satellitex/hockey | /src/com/example/hockey/GeneralCalc.java | UTF-8 | 1,650 | 2.921875 | 3 | [] | no_license | package com.example.hockey;
import android.util.Log;
public class GeneralCalc {
public static boolean CheckCircleInPoint(Circle c,float sx,float sy){
if( Math.hypot(sx-c.getX(), sy-c.getY()) <= c.getR() ){
return true;
}
return false;
}
public static boolean CheckCircleInCircle(Circle c1,Circle c2){
if(... | true |
0db3a13cfeeb8b18cff472764812d57577a5b6d4 | Java | igit-cn/lemon | /src/main/java/com/mossle/disk/web/DiskVersionController.java | UTF-8 | 3,206 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.mossle.disk.web;
import java.io.InputStream;
import java.util.zip.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mossle.api.auth.CurrentUserHolder;
import com.mossle.api.tenant.TenantHolder;
import com.mossle... | true |
32e84213757de37e5db542414880e91552c659f0 | Java | jjconti/clubxp | /src/guiClub/FrmRecibos.java | ISO-8859-1 | 6,901 | 2.125 | 2 | [] | no_license | package guiClub;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileInputS... | true |
ff4d3a36b7bb3967f4d2167ed2ed66d757b353f4 | Java | lanaflonPerso/tdt4140-examples | /tdt4140-gr1800/app.ui/src/test/java/tdt4140/gr1800/app/ui/FxAppTest.java | UTF-8 | 5,145 | 2.09375 | 2 | [] | no_license | package tdt4140.gr1800.app.ui;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.StandardCopyOption;
import java.util.ArrayList;
import java.util.Collection;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
import org.junit.Befo... | true |
a7857a5ff681cfd1f960a34fd7203ca6d92d54da | Java | krimamshah/WordCount | /CreatingThreads.java | UTF-8 | 1,812 | 3.6875 | 4 | [] | no_license |
package creatingthreads;
//importing the required libraries
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class CreatingThreads {
public static void main(String[] args) throws Exception{
try{
... | true |
b063f498e1eae49aee2bb83476131586d6b6900b | Java | nguyenthanhtung2605/covid19-tracker-back | /covid19-tracker-back/src/main/java/io/soen487p3/webservice/covid19tracker/controller/CovidInfoController.java | UTF-8 | 3,152 | 2.09375 | 2 | [] | no_license | package io.soen487p3.webservice.covid19tracker.controller;
import io.soen487p3.webservice.covid19tracker.model.AffectedCountries;
import io.soen487p3.webservice.covid19tracker.model.CountriesStats;
import io.soen487p3.webservice.covid19tracker.model.CountryStats;
import io.soen487p3.webservice.covid19tracker.model.Wor... | true |
0fc29db99c60d311184fba7b9acb414c5156ea92 | Java | Abhisek2090/Search-Top-Github-Repos | /app/src/main/java/com/abhisek/github/activites/MainActivity.java | UTF-8 | 18,794 | 1.921875 | 2 | [] | no_license | package com.abhisek.github.activites;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Handler;
import android.support.v4.view.MenuItemCompat;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import an... | true |
3c32c408d9cb0a5ec3c877fa73827f875f155b66 | Java | Artemius77/EPAMtasks | /SecondPractise/FirstTask/model/abstracts/Shape.java | UTF-8 | 588 | 3.390625 | 3 | [] | no_license | package SecondPractise.FirstTask.model.abstracts;
import SecondPractise.FirstTask.model.interfaces.Drawable;
public abstract class Shape implements Drawable{
protected String shapeColor;
protected double area;
public Shape(String shapeColor) {
this.shapeColor = shapeColor;
}
... | true |
baed3d8027c9e65dfa85e7570f2ac40ac7f97789 | Java | yonzyun/Final | /src/main/java/com/bitcamp/controller/LoginContoller.java | UTF-8 | 5,790 | 2.0625 | 2 | [] | no_license | package com.bitcamp.controller;
import java.io.IOException;
import java.security.Principal;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.si... | true |
969c098b8329371247ad8d2ff0b77819501b0c40 | Java | metaloph1l/pacman | /src/at/ac/foop/pacman/util/ClientSettings.java | UTF-8 | 535 | 2.109375 | 2 | [] | no_license | package at.ac.foop.pacman.util;
public interface ClientSettings {
public static String CLIENT_CONFIG_PATH = "/at/ac/foop/pacman/resources/";
public static String CLIENT_CONFIG_FILE = "clientconfig.properties";
public static String CLIENT_CONFIG = ClientSettings.CLIENT_CONFIG_PATH + ClientSettings.CLIENT_CONFIG_FIL... | true |
f14e6bd362893c4fb04a1292c6dbbf1c54a715f5 | Java | franciscovillegas/1982-COMMONLIBS | /1982-COMMONLIB-FRONTCONTR/src/portal/com/eje/frontcontroller/ioutils/IOUtilImage.java | ISO-8859-1 | 4,143 | 2.40625 | 2 | [] | no_license | package portal.com.eje.frontcontroller.ioutils;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util... | true |
decb0940c0463bc7366ed6172c1756ae71d6d4f8 | Java | ZYFnp/TianFuAndroid | /app/src/main/java/com/ocnyang/cartlayoutdemo/bean/NormalBean.java | UTF-8 | 348 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package com.ocnyang.cartlayoutdemo.bean;
import com.ocnyang.cartlayout.bean.CartItemBean;
public class NormalBean extends CartItemBean{
int markdownNumber;
public int getMarkdownNumber() {
return markdownNumber;
}
public void setMarkdownNumber(int markdownNumber) {
this.markdownNumbe... | true |
2fbe33966581964f4c3a9379655b9576e45d22b1 | Java | xolbynz/MES_APP | /app/src/main/java/com/mes_app/work_viewActivity.java | UTF-8 | 22,741 | 1.8125 | 2 | [] | no_license | package com.mes_app;
import android.app.DatePickerDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.widget.AdapterView;
import android.widget.D... | true |
90d5a5a137eb2a1f2f47b8833d2c2a9758d49193 | Java | PsyX99/CMRlundi | /CRM_v2/src/main/java/fr/inti/service/IInteretService.java | UTF-8 | 392 | 1.679688 | 2 | [] | no_license | package fr.inti.service;
import java.util.List;
import fr.inti.model.Interet;
public interface IInteretService {
public void addInteret(Interet interet);
public void updateInteret(Interet interet);
public void deleteInteret(Interet interet);
public List<Interet> getAllInteret();
public Interet get... | true |
8124c6320960507a4553c159addb345489dc830c | Java | alexandrajoves/OOP-Laboratory-Activity-1 | /JovesAJLabExer17.java | UTF-8 | 943 | 3.15625 | 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 JovesAJLabActivity101;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
... | true |
c6e19eeb4abde7894c428b571ddedf914ce362b7 | Java | bellakhalAmir/tuto-jsf-spr-hib | /src/main/java/fr/sewatech/university/service/CourseServiceImpl.java | UTF-8 | 876 | 2.296875 | 2 | [] | no_license | package fr.sewatech.university.service;
import java.util.List;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import fr.sewatech.university.model.Course... | true |
f888066554fea3b70bc85cc914e53301e0a19dcf | Java | Seoulite-mobileapp/Seoulite_Android | /app/src/main/java/com/seoulite_android/seoulite/LivingInfoFragment.java | UTF-8 | 17,375 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.seoulite_android.seoulite;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.ContentValues;
import android.content.Context;
import android.content.DialogInterface;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Color;
i... | true |
bd1382a050051f673bf0bfc34c448c1bdd2cccf6 | Java | denniswang123/API | /src/test/java/repositories/StudentRepositoryTest.java | UTF-8 | 1,238 | 2.421875 | 2 | [] | no_license | package repositories;
import com.example.demo.DemoApplication;
import com.example.demo.entities.Student;
import com.example.demo.repositories.StudentRepository;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.bean... | true |
89818a7e7bd499e12f3db44144ac60ce72767e63 | Java | JoachimSchwarte/LCI2016 | /src/de/unistuttgart/iwb/lci2016/Wirkungsvektor.java | ISO-8859-1 | 1,113 | 2.96875 | 3 | [] | no_license | /*
* Beispielprojekt / Wirkungsabschtzung
* Sommersemester 2017
*/
package de.unistuttgart.iwb.lci2016;
import java.util.HashMap;
/**
* Dieses Interface muss von all jenen Klassen implementiert werden,
* zu deren Objekten jeweils ein Wirkungsvektor angegeben oder
* berechnet werden kann, so dass di... | true |
94f319ef9fdbcb23291334746029a5047bf6e3dd | Java | tareq3/NewsViewsV2 | /app/src/main/java/com/mti/newviewsv2/AboutActivity.java | UTF-8 | 1,753 | 2.390625 | 2 | [] | no_license | /*
* Created by Tareq Islam on 2/18/19 1:53 AM
*
* Last modified 2/18/19 1:53 AM
*/
package com.mti.newviewsv2;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.MenuItem;
import android.... | true |
9c15aaf3f0b207509795cb0182360ab7babc6b04 | Java | anwarseu/VolleyExample | /app/src/main/java/com/tricktech/volleyexample/adapters/PostAdapter.java | UTF-8 | 3,032 | 2.5 | 2 | [] | no_license | package com.tricktech.volleyexample.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import andro... | true |
fd93227f8e320279e532778555a76f229f2d7d05 | Java | blooddark/StudentManagement | /src/dao/UserDAO.java | UTF-8 | 1,038 | 2.8125 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import bean.User;
import util.DBConnection;
public class UserDAO {
private Connection conn = null;
private Statement st = null;
public UserDAO() {
conn = DBConnection.getConnection();
... | true |
567b03c7138595f50eff25f32216589ba6b31f62 | Java | kamokaizen/Templates | /SpringWebTemplate/src/main/java/com/example/springwebtemplate/controller/TypeController.java | UTF-8 | 2,504 | 2.4375 | 2 | [] | no_license | package com.example.springwebtemplate.controller;
import java.util.ArrayList;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annota... | true |
3cfbd4582272e35c206025dded4c0fad3dc91352 | Java | TheOldGodsHadKnownHim/OCPJP | /OCPJP/src/ocajp/_0_Recap/hashCode/Card.java | UTF-8 | 703 | 3.25 | 3 | [] | no_license | /**
*
*/
package ocajp._0_Recap.hashCode;
/**
* @author keithclarges
*
*/
public class Card {
private String rank;
private String suit;
private int serialNumber;
public Card(int serialNumber, String rank, String suit) {
if (serialNumber < 0 || rank == null || suit == null) {
throw new IllegalArgumentE... | true |
2737237761cde3078915e9320f813dd43cc91601 | Java | inez/GridImageSearch | /src/com/inez/gridimagesearch/SettingsActivity.java | UTF-8 | 2,556 | 2.25 | 2 | [] | no_license | package com.inez.gridimagesearch;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
public class SettingsActivity extends Act... | true |
6ee9f794c5502dc8668c7daa233ab75cde9bb242 | Java | pradeepreddy0327/algorithms-data-structures | /src/main/java/graph/MaxAreaOfIsland.java | UTF-8 | 1,148 | 3.421875 | 3 | [] | no_license | package graph;
// Leetcode 695 Tags: Facebook
public class MaxAreaOfIsland {
int[][] directions = new int[][]{{-1, 0}, {0, -1}, {1, 0}, {0, 1}};
int m;
int n;
public int maxAreaOfIsland(int[][] grid) {
m = grid.length;
n = grid[0].length;
int maxArea = 0;
for ... | true |
1cb5a03be47f4c1337a6373e8d422ae386995a47 | Java | Julie0u812/OOP-2015 | /Students/Others/Pop I. Andrei/Assignment 4 - Java/src/javasmmr/zoowsome/models/animals/Monkey.java | UTF-8 | 792 | 2.765625 | 3 | [] | no_license | package javasmmr.zoowsome.models.animals;
import java.time.LocalTime;
public class Monkey extends Mammal {
private static final LocalTime beginTime = LocalTime.of(17, 15);
private static final LocalTime endTime = LocalTime.of(17, 40);// I have implemented it only for the Monkey class
public Monkey(int nrLegs, S... | true |
463de95f9cfd353e150d10eca25c1e5398ce8a1f | Java | boyangyuu/leetcode | /src/bit/bit_0_template.java | UTF-8 | 743 | 2.875 | 3 | [] | no_license | package bit;
// 暂时先放弃 bit类题目
public class bit_0_template {
public static void main(String[] args) {
int[] nums = {0,0,0,0};
//System.out.println(a_18_4Sum.fourSum(nums, 0));
}
}
/** 题
*
* http:
*
*/
/** Solution
* 时间 空间
*
*
*
参考网站
TODO solotion
TODO case
TODO bug
bug1
... | true |
1182a76824e82e95b975250411e513298abfa6ca | Java | jxent/Demoz | /Demoz/app/src/main/java/cn/demoz/www/base/BaseActivity.java | UTF-8 | 2,241 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package cn.demoz.www.base;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import java.util.LinkedList;
import java.util.List;
import cn.demoz.www.R;
/**
* 抽取BaseActivity 管理所有activity 方便退出
*
* @author jason
*/
public class BaseActivity extends AppCompatActivity {
// 管理运行的所有的acti... | true |
67c9f77ce1f9d5812bd0303beb233365015d9267 | Java | wdp150360/BasicJavaTutorial | /src/com/java/tutorial/javabasic/javastructure/Animal.java | UTF-8 | 280 | 2.90625 | 3 | [] | no_license | package com.java.tutorial.javabasic.javastructure;
/**
* @author wdp
*
* 2018年1月2日 下午2:22:18
*/
public class Animal {
public Animal(){
}
public void move(){
System.out.println("moving.....");
}
public void say(){
System.out.println("nothing");
}
}
| true |
cdc676c5789693db0f6e57db8a20dddfe0c3ab73 | Java | sdspgy/zhiqiu_meng_backend | /meng-core/src/main/java/com/core/entity/sys/SysLoginForm.java | UTF-8 | 387 | 1.726563 | 2 | [] | no_license | package com.core.entity.sys;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
/**
* @author zhiqiu
* @since 2019-10-26
*/
@Data
public class SysLoginForm {
@NotBlank
@Length(min = 4, max = 12)
private String username;
@NotBlank
@Length(min ... | true |
c112cd2e0e7d840e43783fcfc096dd843f5a219b | Java | tooooolazy/baseapp | /baseApp/utils/src/main/java/com/tooooolazy/util/TLZUtils.java | UTF-8 | 27,603 | 2.46875 | 2 | [] | no_license | /**
*
*/
package com.tooooolazy.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetExceptio... | true |
466fe8f05ab2e4a61f1d7d9cb3431801e24d5b08 | Java | apache/camel-kafka-connector | /core/src/main/java/org/apache/camel/kafkaconnector/CamelConnectorConfig.java | UTF-8 | 8,082 | 1.578125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
93b3ad9539d30ef5b6c6b2314d4b1b6ea5d16d19 | Java | schevalier/incubator-stratos | /components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/conf/configurator/SynapseConfigurator.java | UTF-8 | 8,860 | 1.65625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
6e21c4e0545ff4e3ff7c2c4081a797f685659dcc | Java | BramTeurlings/GraduationProject2020 | /domain/src/main/java/nl/brickx/domain/Models/OrderPickSerialStatusModel.java | UTF-8 | 912 | 2.359375 | 2 | [] | no_license | package nl.brickx.domain.Models;
public class OrderPickSerialStatusModel {
String serialnumber;
Boolean isAvailible;
int productId;
public OrderPickSerialStatusModel() {
}
public OrderPickSerialStatusModel(String serialnumber, Boolean isAvailible, int productId) {
this.serialnumber =... | true |
4d6a8ac49385a2f218b1451329f9c0b06ca0fc98 | Java | methanduck/JAVA | /Android/std_pref/app/src/main/java/com/example/dhdms/std_pref/second.java | UTF-8 | 810 | 2.015625 | 2 | [] | no_license | package com.example.dhdms.std_pref;
import android.content.SharedPreferences;
import android.os.TestLooperManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class second extends AppCompatActivity {
@Override
protected void onResume() {
... | true |
7df14224a663b427f00a4deb7bb0d70d33becfbd | Java | brendendw/NutritionEffex | /NutritionEffex/src/edu/orangecoastcollege/cs272/nutritioneffex/view/FoodDetailsScene.java | UTF-8 | 2,042 | 2.890625 | 3 | [] | no_license | package edu.orangecoastcollege.cs272.nutritioneffex.view;
import java.net.URL;
import java.text.DecimalFormat;
import java.util.ResourceBundle;
import edu.orangecoastcollege.cs272.nutritioneffex.view.FavoriteFoodsScene;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button... | true |
db40bf92086a5f820d16a3a36cf12b9cb9ba94c6 | Java | JasonLinkinBright/FoldLayout | /app/src/main/java/com/jason/foldlayout/behavior/MineContentAdapter.java | UTF-8 | 8,269 | 1.8125 | 2 | [] | no_license | package com.jason.foldlayout.behavior;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v4.view.ViewCompat;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.Log;
import an... | true |
9cbdf25a74d9f00efaa0b5da32ef520e1d37c259 | Java | LoveraSantiago/Cadilac_Tiranossauro | /core/src/lovera/cadilac/tiranossauro2/telas2/jogo/TelaJogo2.java | UTF-8 | 1,059 | 2.40625 | 2 | [] | no_license | package lovera.cadilac.tiranossauro2.telas2.jogo;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL20;
import lovera.cadilac.tiranossauro2.telas2.jogo.controladores.unicos.CameraUnico;
public final class TelaJogo2 implements Screen{
SingletonsManager_TelaJogo singl... | true |
d6e9c240811bb53bc1b3f01e6058c7f6bfd6e3f4 | Java | yiqinlin/campus | /app/src/main/java/com/stark/yiyu/adapter/holder/ViewHolderMid.java | UTF-8 | 335 | 1.625 | 2 | [] | no_license | package com.stark.yiyu.adapter.holder;
import android.widget.ImageView;
import android.widget.TextView;
/**
* Created by Stark on 2017/3/2.
*/
public class ViewHolderMid {
public String id;
public ImageView head;
public TextView nick;
public TextView message;
public TextView date;
public Tex... | true |