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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0319c1da6a6d3c37defbba65371f24cb6a4ac198 | Java | SiteView/ECC8.13 | /trunk/java.prj/ITSMCSharp2Java/Fusion.Api/Fusion/Api/FusionPropertyDescriptor.java | WINDOWS-1252 | 1,189 | 2.296875 | 2 | [] | no_license | package Fusion.Api;
import java.beans.PropertyDescriptor;
/**
* @author Administrator
* @version 1.0
* @created 15--2010 14:44:40
*/
public class FusionPropertyDescriptor extends PropertyDescriptor {
protected FieldDef m_fieldDef;
public FusionPropertyDescriptor(){
}
public void finalize(... | true |
f87974143ca6a691a8e69b8d80f15e8fb0f2043e | Java | LeonNeon85/CRUD | /src/main/java/com/mycomp/crud/model/UserDao.java | UTF-8 | 276 | 2.09375 | 2 | [] | no_license | package com.mycomp.crud.model;
import java.util.List;
import com.mycomp.crud.model.User;
public interface UserDao {
void create (User user);
void update (Integer id, User newUser);
void delete (User user);
List<User> showAllUsers();
List<User> searhUser(User user);
}
| true |
39da3f19b51d7c5df788ce3ece4e01e8faf1c9e7 | Java | cckmit/api-youzan | /src/main/java/com/saopay/apiyouzan/util/http/Coder.java | UTF-8 | 1,154 | 2.484375 | 2 | [] | no_license | package com.saopay.apiyouzan.util.http;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import org.apache.commons.lang3.StringUtils;
/**
* @author huangding
* @description
* @date 2018/11/12 16:53
*/
public class Coder {
public static String encoder(String... | true |
27c8e7c3eeba9e5f6022e5eeedd767b5d953f09d | Java | chaconnewu/stepCap | /portfolio/src/main/java/com/google/sps/servlets/BookNowServlet.java | UTF-8 | 1,765 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.google.sps.servlets;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.Entity;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet... | true |
d863962313b814300845843ddb8803549c902788 | Java | AdvProg2020/Project_team-13 | /src/main/java/Models/Auction.java | UTF-8 | 2,888 | 2.71875 | 3 | [] | no_license | package Models;
import Models.Product.Product;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
public class Auction {
private Date startTime;
private Date endTime;
private Product product;
private String auctionId;
private String sellerId;
private HashMap<String, ... | true |
ba3b79692169f2a7601823fc98fa179cb075b1da | Java | songxowe/YiYaoGuan | /WebServer/服务器最终服务器/Yiyao/src/com/yiyao/servlet/UploadServlet.java | UTF-8 | 2,525 | 2.625 | 3 | [] | no_license | package com.yiyao.servlet;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRes... | true |
39f88523b7c3b665db63edb9695fdd7fffbb1872 | Java | matthewjt/RaidManagement | /RaidManagement/src/main/java/com/tomasov/raidmanagement/user/UnmatchedPasswordException.java | UTF-8 | 420 | 2.203125 | 2 | [] | no_license | package com.tomasov.raidmanagement.user;
/**
* intended to be used when a password is attempted to be validated against a shard user and fails
*
* Created by seth on 1/11/2018.
*/
public class UnmatchedPasswordException extends Exception {
public UnmatchedPasswordException(String message) {
super(message);
}
... | true |
e49c354afba8f0f4d15a665c66900e08b2578013 | Java | gastronomecc/gastronome-app | /app/src/main/java/com/kevintoh0305gmail/gastronome/ChooseLoginRegister.java | UTF-8 | 1,082 | 2.0625 | 2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.kevintoh0305gmail.gastronome;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class ChooseLoginRegister extends AppCompatActivity {
Button btnSignUp, btnLogIn;
@Override
pro... | true |
6a75283b65d18396834f6638e36c4fb2ac095f6e | Java | DennyScott/HealthTrack | /app/src/main/java/business/ApplicationConstants.java | UTF-8 | 607 | 1.625 | 2 | [] | no_license | package business;
public interface ApplicationConstants {
boolean USE_STUB_DATABASE = true;
int APPLICATION_ERROR = -1;
//...................CALCULATION CONSTANTS...................
int BAD_CALCULATION = -1;
double MAX_FLOAT_VARIATION = 0.1;
double MIN_CONVERSION_VAL = 0;
double MAX_CONVER... | true |
16856e7ce9d628db65faf7eb5813ab5eaf991528 | Java | m10gandhi/DalAssist | /app/src/main/java/com/grp17/dalassist/Catalog.java | UTF-8 | 7,063 | 1.820313 | 2 | [] | no_license | package com.grp17.dalassist;
import android.content.Intent;
import android.graphics.Color;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.design.widget.NavigationView;
import android.suppor... | true |
1ef93852333bd6be09cb89e37e21620f01340c41 | Java | roquijo/ServletsTorneoUnibague | /src/main/java/sos/sisho/myFirstServlet/servlet/servletsForPlayer/AddPlayerServlet.java | UTF-8 | 1,171 | 2.359375 | 2 | [] | no_license | package sos.sisho.myFirstServlet.servlet.servletsForPlayer;
import client.dto.Player;
import controllers.controller.ControllerForPlayer;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax... | true |
b3560623a3b476c962105e78a5a8c9cff2b4eb2b | Java | acampillUC3M/bookshelf | /app/src/main/java/com/example/bookshelf/SubirFotoLibro.java | UTF-8 | 710 | 1.703125 | 2 | [] | no_license | package com.example.bookshelf;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.view.View;
import android.widget.ImageView;
import java.util.ArrayLi... | true |
3c1b86af18dfe7a14202624eb6f2c58ce204dc28 | Java | pyaesonehein1141991/FNI-LIFE | /web/org/ace/insurance/web/manage/report/account/MonthlyIncomeReportActionBean.java | UTF-8 | 4,289 | 1.789063 | 2 | [] | no_license | package org.ace.insurance.web.manage.report.account;
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.EnumSet;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.bean.Managed... | true |
a6535db3496a7cf46015491f2fd499c60c02ba9e | Java | weispring/chun-easyexcel | /src/main/java/com/alibaba/excel/analysis/v07/XlsxSaxAnalyser.java | UTF-8 | 6,539 | 1.835938 | 2 | [] | no_license | /* */ package com.alibaba.excel.analysis.v07;
/* */
/* */ import com.alibaba.excel.analysis.BaseSaxAnalyser;
/* */ import com.alibaba.excel.context.AnalysisContext;
/* */ import com.alibaba.excel.exception.ExcelAnalysisException;
/* */ import com.alibaba.excel.metadata.Sheet;
/* */ import j... | true |
4894fbb56536fa1f3bd0bab6c5cae59c427efb7c | Java | lucasduete/sgd-generateWordlist | /src/main/java/io/github/lucasduete/sgd/gererateWordlist/core/TechniqueColapseWords.java | UTF-8 | 24,336 | 2.875 | 3 | [] | no_license | package io.github.lucasduete.sgd.gererateWordlist.core;
import io.github.lucasduete.sgd.gererateWordlist.factories.WordlistFactory;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class TechniqueColapseWords implements GenerateTechnique {
@Over... | true |
6efab2daf6b4081f6eb4aca6e3babf340a3fd5db | Java | yua2307/OnlineExamination | /src/main/java/com/mycompany/entity/ExamQuestionEntity.java | UTF-8 | 2,316 | 2.28125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.entity;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persis... | true |
4cfd2ed30b5eaef42258a2dfdabfd881b844549d | Java | SopraSteriaDigilab/mycareer-rest-api | /src/test/java/dataStructure/EmployeeTest.java | UTF-8 | 36,248 | 2.171875 | 2 | [] | no_license | package dataStructure;
import static org.junit.Assert.*;
import static utils.Utils.generateFeedbackRequestID;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.management.Inva... | true |
d708d481e958fc577eb28b8dee5120d78a8f3cd3 | Java | cyoubo/Calibration | /src/com/calibration/beanshelper/CalibrationResultHelper.java | GB18030 | 3,960 | 2.4375 | 2 | [] | no_license | package com.calibration.beanshelper;
import java.util.ArrayList;
import java.util.List;
import org.opencv.core.CvType;
import org.opencv.core.Mat;
import com.calibration.beans.CalibrationResultBeans;
import com.component.SQLiteOrmHelperPHM;
import com.j256.ormlite.dao.RuntimeExceptionDao;
import com.tool.... | true |
fd653abfc0fafb7c27657480246b925f324e73f1 | Java | y897356576/DesignPattern | /src/main/java/stonesStrict/pattern_strategy/duck/quackBehavior/Squeak.java | UTF-8 | 234 | 2.53125 | 3 | [] | no_license | package stonesStrict.pattern_strategy.duck.quackBehavior;
/**
* Created by admin on 2018/4/17.
*/
public class Squeak implements QuackBehavior {
@Override
public void quack() {
System.out.println("Squeak");
}
}
| true |
3e827a2aed8697dcc7b70801d0a0e5091d7e65d4 | Java | caiwjhi/Software-project_XT | /XiaoTianWeather/src/com/example/xiaotianweather/FragmentTodayCan.java | UTF-8 | 16,932 | 1.617188 | 2 | [] | no_license |
package com.example.xiaotianweather;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.http.HttpEntity;
import org.apache.h... | true |
1b97896904a41c356ae4b755ec1198420116f207 | Java | Jenn-Monn/Contacts_Manager | /src/FileIO.java | UTF-8 | 8,713 | 3.28125 | 3 | [] | no_license |
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
import java.util.ArrayList;
import java.util.List;
public class FileIO {
public static void createNewFile(String directory, String filename){
Path cont... | true |
6d2de71e3b4e76d0f1792813a558fb5cd341637f | Java | filipmaelbrancke/devoxxuk-2014-android-app-dev | /_tasks - solutions_/004_bigbang_instr_tests/BigBangProject/BigBang/src/androidTest/java/com/devoxx/android/bigbang/test/PersonDetailActivityTest.java | UTF-8 | 1,923 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.devoxx.android.bigbang.test;
import android.content.Intent;
import android.test.ActivityInstrumentationTestCase2;
import android.view.View;
import android.widget.TextView;
import com.devoxx.android.bigbang.PersonDetailActivity;
import com.devoxx.android.bigbang.PersonDetailFragment;
import com.devoxx.andr... | true |
1aa1811baead3e5d78f049a4c054c6edaed181a1 | Java | lucky-jun/ShoppingMall | /src/com/j/controller/UserManageController.java | GB18030 | 9,479 | 2.125 | 2 | [] | no_license | package com.j.controller;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.... | true |
e3bace0cbd4c140ae0de8687f5cf2143e3eab6a0 | Java | drothauser/rothsmith-encrypt | /src/main/java/com/rothsmith/encrypt/text/TextEncryptor.java | UTF-8 | 1,465 | 2.65625 | 3 | [] | no_license | /*
* (c) 2012 FCCI Insurance Group All Rights Reserved.
*/
package com.rothsmith.encrypt.text;
/**
*
* Interface for String encryption.
*
* @version $Id: TextEncryptor.java 757 2012-09-05 23:00:32Z drarch $
*
* @author Doug Rothauser
*/
public interface TextEncryptor {
/**
* This method encrypts a giv... | true |
8b846a9217ff3209ff96f8f6aed3b88793898262 | Java | pisee/springboot-examples | /src/test/java/com/doni/springboot/examples/staticTests/StaticClassTest.java | UTF-8 | 1,277 | 2.28125 | 2 | [] | no_license | package com.doni.springboot.examples.staticTests;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
impor... | true |
e14c1320a49762db74827e78d417e0dccfd8f340 | Java | YashrajSwarnkar/BSCMS-JAVA-Swing | /Blood Bank Supply Chain System/src/UserInterface/User/ScheduleAppointment.java | UTF-8 | 12,964 | 2.140625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package UserInterface.User;
import Business.Connection.Connection;
import Business.Network;
import Business.User.User;
import java.awt... | true |
ec0b0744f650112d452f27a3d8f0c87201386d6f | Java | heySeattleW/order | /src/main/java/com/hey/entity/User.java | UTF-8 | 2,021 | 2.21875 | 2 | [] | no_license | package com.hey.entity;
/**
* Created by heer on 2018/6/20.
*/
public class User extends BaseEntity{
private Long userId;
private String tel;
private String userDesc;
private String password;
private Integer userStatus;
private String imageUrl;
private String imageMd5;
public ... | true |
97fdb23d85acf623a54c5e776ecdb5ce9af6bafd | Java | cckmit/libai | /dj-wika-weixin/src/main/java/com/dajie/wika/weixin/constant/EventType.java | UTF-8 | 270 | 1.53125 | 2 | [] | no_license | package com.dajie.wika.weixin.constant;
/**
* Created by wills on 2/10/14.
*/
public class EventType {
public static final String SUBSCRIBE="subscribe";
public static final String UNSUBSCRIBE="unsubscribe";
public static final String CLICK="CLICK";
}
| true |
260012a73c8cf79accd313eb9bcefb32899e5945 | Java | neerajk0702/ipad | /app/src/main/java/com/apitechnosoft/ipad/adapter/ShareRecivedCommentAdapter.java | UTF-8 | 1,918 | 2.140625 | 2 | [] | no_license | package com.apitechnosoft.ipad.adapter;
import android.content.Context;
import android.graphics.Typeface;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.apitechnosoft.ipad.R;
import ... | true |
470667f1e4a44f2a895498a7024aecea7baea9ff | Java | rpramoth/Automation-Selenium- | /seleniumlearning_3/src/selenium/Form.java | UTF-8 | 2,871 | 2.0625 | 2 | [] | no_license | package selenium;
import java.util.Set;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
public class Form {
public s... | true |
c467186a9bda041f69ca2dd571b2790a40b8182c | Java | liudongguang/sdeyqiyehao | /src/main/java/com/weixin/controller/WXKFController.java | UTF-8 | 2,597 | 1.96875 | 2 | [] | no_license | package com.weixin.controller;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.ldg.api.util.JsonUtil;
import com.qq.weixin.mp.aes.AesException;
import com.qq.weixin.mp.aes.WXBizMsgCrypt;
import com.weixin.constant.WeixinConstant;
import com.weixin.util.Access_token;
import com.weixin.util.HttpCli... | true |
534c88e3e48a7ec2dde635cc90fe710b81665639 | Java | csys-fresher-batch-2019/hms-spring-vijay | /src/main/java/com/chainsys/hmsapplication/controller/DoctorController.java | UTF-8 | 1,482 | 2.09375 | 2 | [] | no_license | package com.chainsys.hmsapplication.controller;
import java.util.ArrayList;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Reques... | true |
b6a74123904cee76fb2601087321415f23f0f802 | Java | Harshamukund/UST-Global-16-SEP-19-Harshamukund | /maps/src/com/ustglobalmaps/TestG.java | UTF-8 | 1,295 | 3.171875 | 3 | [] | no_license | package com.ustglobalmaps;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
public class TestG {
public static void main(String[] args) {
Employee e1=new Employee(1,"abhi",12000);
Employee e2=new Employee(2,"adhi",2000);
Employee e3=new Employee(3,"akarshi",13000);
... | true |
19fae404b52190b5d760d879091bb7630c47724b | Java | Sairam954/LibraryWebApplication | /src/main/java/com/epam/finalweb/command/impl/CreateBookCommand.java | UTF-8 | 2,234 | 2.46875 | 2 | [] | no_license | package com.epam.finalweb.command.impl;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.epam.finalweb.command.Command;
import com.epam.finalweb.domain.Book;
import com.epam.finalweb.domain.BookT... | true |
fca2285fe15d27a992f2136cb73172540361b365 | Java | JasmineCA/Projects | /licence_informatique/L2/CoreWar/corewar-tpa/trunk/tags/v2/src/instruction/Jmz.java | UTF-8 | 2,592 | 3.046875 | 3 | [] | no_license | package instruction;
import errors.BadInstructionException;
import virtual.VirtualMachine;
import virtual.Warrior;
import java.util.ArrayList;
/**
* Classe JMZ, instruction RedCode qui saute au champ B si le champ A est égal à zéro.
* Le champ B est une adresse, avec adressage relatif, ou non.
*/
publ... | true |
b30d4b4f45e54cc15a7caa1e7b88fddd0089c277 | Java | tsironis13/EpoptiaKioskModeApp | /data/src/main/java/data/com/epoptia/mappers/WorkerPanelPreferenceModelToWorkerPanelDomainModelMapper.java | UTF-8 | 823 | 2.046875 | 2 | [] | no_license | package data.com.epoptia.mappers;
import javax.inject.Inject;
import data.com.epoptia.localstorage.prefs.entities.Preference_WorkerPanel;
import domain.com.epoptia.model.domain.DomainWorkerPanelModel;
public class WorkerPanelPreferenceModelToWorkerPanelDomainModelMapper {
//region Injections
@Inject
Do... | true |
7afd789252362986b6850fdedefab66033aec023 | Java | qinlinsen/design-pattern | /Chain-Of-Responsibility/src/com/qls/Client.java | UTF-8 | 374 | 1.953125 | 2 | [] | no_license | package com.qls;
/**
* @author Abraham Qin
* @since 2019/3/26
*/
public class Client {
public static void main(String[] args) {
ConcreteHanlderA concreteHanlderA = new ConcreteHanlderA();
ConcreteHanlderB concreteHanlderB = new ConcreteHanlderB();
concreteHanlderA.setNext(concreteHanlder... | true |
a4c06aa2f8b11a18710b8af4f3b1c1ed11f7f4de | Java | arnaudmedina/mabonnereconversion | /src/main/java/ecolededev/pe/controller/profil/CompetenceSaisieForm.java | UTF-8 | 2,106 | 1.882813 | 2 | [] | no_license | package ecolededev.pe.controller.profil;
import java.util.List;
import ecolededev.pe.domaine.Competence;
import ecolededev.pe.domaine.CompetenceType;
public class CompetenceSaisieForm {
private List<Competence> competences ;
private List<CompetenceType> competenceTypes;
private Integer niveau;
priva... | true |
e9cabc3fb3345235d4de8dfc3d392f64ac304f09 | Java | kbiid/UIMS | /src/main/java/kr/co/torpedo/uims/controller/PageController.java | UTF-8 | 1,600 | 2 | 2 | [] | no_license | package kr.co.torpedo.uims.controller;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.spring... | true |
cf203a6c850d1925658b6803b956f0cee4cea1c6 | Java | CharlotteSean/SevenPounds | /app/src/main/java/me/lancer/sevenpounds/mvp/photo/fragment/PhotoThemeFragment.java | UTF-8 | 8,150 | 1.648438 | 2 | [] | no_license | package me.lancer.sevenpounds.mvp.photo.fragment;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.St... | true |
48c85530c0f51d8ccfa355b2e2f64e88d88a2819 | Java | zhoukaixuan123/leyou | /ly-search/src/main/java/com/leyou/search/service/SearchService.java | UTF-8 | 14,092 | 2.078125 | 2 | [] | no_license | package com.leyou.search.service;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.leyou.common.enums.ExceptionEnum;
import com.leyou.common.exception.LyException;
import com.leyou.common.vo.PageResult;
import com.leyou.item.pojo.*;
import com.leyou.... | true |
3b216f5e1147ae0c7a7f28ca35db14c918e220e7 | Java | yukihirai0505/java-competitive-programming | /src/main/java/com/example/JumpingOnClouds.java | UTF-8 | 914 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | package com.example;
import java.util.Arrays;
public class JumpingOnClouds {
// Complete the jumpingOnClouds function below.
private static int jumpingOnClouds(int[] c) {
int total = 0;
for (int i = 0; i < c.length - 1; i++) {
if (i < c.length - 2 && c[i + 2] != 1) {
... | true |
65a91a9a0110c0f51f8cf7a8139eceac57c1d3f3 | Java | HLJJMS/zqzy | /app/src/main/java/com/example/administrator/zqzy/adpter/SelectClassDetailListAdapter.java | UTF-8 | 2,035 | 2.265625 | 2 | [] | no_license | package com.example.administrator.zqzy.adpter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.example.admin... | true |
9c8c0d672cd09d627cddbfb949dcb11a0bbfd071 | Java | sharf85/tasks | /11/20_09_07_stream_api/src/com/telran/predicate/DifferentNumbersPredicate.java | UTF-8 | 215 | 2.4375 | 2 | [] | no_license | package com.telran.predicate;
public class DifferentNumbersPredicate implements TernaryIntPredicate {
@Override
public boolean test(int a, int b, int c) {
return a != b && b != c && c != a;
}
}
| true |
9f01e5b2be1cb3c1755b3c6a812d6ffc1acb957a | Java | Lejszlo/mennyei | /soccer-platform/competition-query/src/main/java/com/hajdu/sp/competition/query/resource/SeasonDocumentResourceAssemblerSupport.java | UTF-8 | 1,890 | 2.0625 | 2 | [] | no_license | package com.hajdu.sp.competition.query.resource;
import com.hajdu.sp.competition.lib.resource.SeasonDocumentResource;
import com.hajdu.sp.competition.query.controller.CompetitionDocumentController;
import com.hajdu.sp.competition.query.controller.StageDocumentQueryController;
import com.hajdu.sp.competition.query.enti... | true |
039c517c9573e0cd3e69b734f40ca5ae4cc587b1 | Java | zhougz9527/SSM | /src/main/java/com/ssm/utils/CommonUtil.java | UTF-8 | 311 | 1.828125 | 2 | [] | no_license | package com.ssm.utils;
import org.springframework.util.StringUtils;
/**
*
* 通用工具类
*
* @Author: Think
* @Date: 2019/3/27
* @Time: 17:04
*/
public class CommonUtil extends BaseUtil {
public static boolean notEmpty(Object o) {
return null != o && !StringUtils.isEmpty(o);
}
}
| true |
335b79f45c7d345ca0efff6e89c99478941a097d | Java | CCSanders/cs300-final-project | /edu/cs300/SearchResponse.java | UTF-8 | 952 | 2.765625 | 3 | [] | no_license | package edu.cs300;
public class SearchResponse {
int prefixID;
String prefix;
int passageIndex;
String passageName;
String longestWord;
int passageCount;
int present;
@Override
public String toString() {
return "SearchResponse [longestWord=" + longestWord + ", passageCount... | true |
9e7ebbbc0a4926eb884268839e6dee0114712d1e | Java | xuanzhao/Algorithm-Princeton_Cousera- | /Programming Assignment 5: Kd-Trees/KdTree.java | UTF-8 | 10,397 | 3.421875 | 3 | [] | no_license | import edu.princeton.cs.algs4.Stack;
import edu.princeton.cs.algs4.SET;
import edu.princeton.cs.algs4.Point2D;
import edu.princeton.cs.algs4.RectHV;
import edu.princeton.cs.algs4.*;
public class KdTree {
private static class Node {
// the point
private Point2D point;
// the axis-aligned re... | true |
0751e8406ef0115a4d033b5d7863423facda1bca | Java | RandomQA/tutumluAnne | /src/test/java/stepdefinitions/D_US_04_Header_StepDefinitions.java | UTF-8 | 2,862 | 2.140625 | 2 | [] | no_license | package stepdefinitions;
import io.cucumber.java.en.And;
import io.cucumber.java.en.Given;
import pages.D_US_04_Header_Page;
import utilities.Driver;
import utilities.ReusableMethods;
public class D_US_04_Header_StepDefinitions {
D_US_04_Header_Page d_us_04_header_page;
@Given("Kullanici sayfanin en altina ... | true |
5a81419a59cfb55ca71d2b6bc823a666d2a8c90f | Java | as12334/xy-creditbox | /common/java/so/wwb/creditbox/common/exceptions/CryptException.java | UTF-8 | 717 | 2.203125 | 2 | [] | no_license | package so.wwb.creditbox.common.exceptions;
import org.soul.commons.exception.CustomRuntimeException;
public class CryptException extends CustomRuntimeException {
public CryptException() {
}
public CryptException(String message, Throwable e) {
super(e, message);
}
public CryptException(S... | true |
4814b8fb38e3349dbfafcbecda498c7c805ce3fb | Java | ZoranLi/thunder | /com/qihoo360/replugin/utils/a/c.java | UTF-8 | 10,758 | 2.34375 | 2 | [] | no_license | package com.qihoo360.replugin.utils.a;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
import java.util.Set;
/* compiled from: ArraySet */
public final class c<E> implements Collection<E>, Set<E> {
static Object[] a;
static int b;
static Object[] c;
static int d... | true |
3cae67dbc793827de3cb4d367cd1c5750363c45c | Java | jeremydanielfox/game_engine | /src/engine/gameobject/units/BuffTracker.java | UTF-8 | 2,586 | 3.21875 | 3 | [
"MIT"
] | permissive | package engine.gameobject.units;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import engine.gameobject.GameObject;
public class BuffTracker {
private List<Buff> buffList;
private Map<Class<? extends Buff>, UpgradeType> immunityList;
public BuffTr... | true |
9f9e4a4d08d8814f21c45138e68ea61d1a3f7fcd | Java | ankitvats24/trackify | /src/main/java/com/trackify/tracker/controller/DeviceStatusController.java | UTF-8 | 2,696 | 2.265625 | 2 | [] | no_license | package com.trackify.tracker.controller;
import java.io.IOException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.... | true |
e104e319028add13b520b274075c8bb87df8a9c7 | Java | paraswatts/MyApppp | /SalesLines/app/src/main/java/com/nitesh/brill/saleslines/_User_Classes/User_Call_Record/Database/AudioDbHelper.java | UTF-8 | 19,569 | 1.601563 | 2 | [] | no_license | /*
* Copyright (C) 2016 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 app... | true |
e2954d6e175bc34469a16b37f2215a3922642824 | Java | svalexander/DogCeoMVP | /app/src/main/java/nyc/shannonalexander_navarro/dogceomvp/views/SelectedBreedAdapter.java | UTF-8 | 1,225 | 2.25 | 2 | [] | no_license | package nyc.shannonalexander_navarro.dogceomvp.views;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
import nyc.shannonalexander_navarro.dogceomvp.R;
public ... | true |
679af036f380b8c67e0681db6e8887471c01ae97 | Java | GuruAswitha24/LabAssignment_Aswitha | /LabAssignment_5/exercise3/EmployeeSalaryException.java | UTF-8 | 162 | 1.992188 | 2 | [] | no_license | package com.cg.eis.exception;
public class EmployeeSalaryException extends Exception {
public EmployeeSalaryException(String message) {
super(message);
}
}
| true |
a3f4d3dab79416b7f04099578ec28b857a70713f | Java | pm4617/restapitestdemo | /restapitestdemo/src/EqualsInJava.java | UTF-8 | 1,076 | 3.421875 | 3 | [] | no_license | import javax.print.DocFlavor.STRING;
public class EqualsInJava {
public static void main(String[] args) {
int a = 100;
int b = 100;
System.out.println(a == b); //true
Integer g = 100;
Integer h = 100;
System.out.println(g == h); //true
float c = 100.5f;
float d = 100.5f;
System.out.pr... | true |
18bf73e5d149fba1f3768ed7a55cbdae4658edc3 | Java | Geomatys/geotoolkit | /geotk-xml-csw/src/main/java/org/geotoolkit/csw/xml/v202/RequestStatusType.java | UTF-8 | 4,531 | 1.914063 | 2 | [] | no_license | /*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eit... | true |
5d4c96793c2423687b512641bc33a1d2071a075f | Java | priyanka079/JavaBasics | /UmaMakkapati/assignments/Collections/src/com/list/ArrLisToArr.java | UTF-8 | 381 | 3.109375 | 3 | [] | no_license | package com.list;
import java.util.ArrayList;
import java.util.List;
public class ArrLisToArr {
public static void main(String[] args) {
List<String> l = new ArrayList<String>();
l.add("Nithya");
l.add("Parthiv");
l.add("Devika");
String[] str = l.toArray(new String[l.size()]);
for(String t... | true |
7056388dbbe661cd5c20f0b15653500a6469b317 | Java | gururaj19831983/POM | /src/test/java/com/XYZcompany/ecommerce/pagelibrary/CreateAnAccount.java | UTF-8 | 5,183 | 2.125 | 2 | [] | no_license | package com.XYZcompany.ecommerce.pagelibrary;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.Select;
import com.XYZcompany.ecommerce.logs.ExtentReportsLogs;
import com.relevantcodes.extentreports.LogStatus;
public class CreateAnAccount extends ExtentReports... | true |
28ea32bd29ba90bbf59a472ab132a3b5f28a5903 | Java | mariemwannes/GestionClinique | /dmi-core/src/test/java/com/csys/dmi/dao/CodeFeuilleFacadeTest.java | UTF-8 | 2,055 | 2.171875 | 2 | [] | no_license | ///*
// * To change this license header, choose License Headers in Project Properties.
// * To change this template file, choose Tools | Templates
// * and open the template in the editor.
// */
//
//package com.csys.dmi.dao;
//import com.csys.dmi.model.gclinique.Client;
//import com.csys.dmi.model.gclinique.CodeFeuill... | true |
c4a0c1c76af40a248e93e449f5899c9a2fc4183b | Java | braintree/braintree_java | /src/main/java/com/braintreegateway/ExchangeRateQuoteInput.java | UTF-8 | 1,495 | 2.21875 | 2 | [
"LicenseRef-scancode-other-permissive",
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | package com.braintreegateway;
import java.util.HashMap;
import java.util.Map;
public class ExchangeRateQuoteInput extends Request {
private String baseCurrency;
private String quoteCurrency;
private String baseAmount; //Optional
private String markup; //Optional
private ExchangeRateQuoteRequest p... | true |
19368726a112a10cb35c583939cca3420618be8b | Java | lucadebeir/tuto_clean_architecture | /core/src/test/java/com/clean/architecture/tuto/core/use/cases/equipe/UpdateTeamUseCaseTest.java | UTF-8 | 7,184 | 2.59375 | 3 | [] | no_license | package com.clean.architecture.tuto.core.use.cases.equipe;
import com.clean.architecture.tuto.core.exceptions.BusinessException;
import com.clean.architecture.tuto.core.exceptions.TechnicalException;
import com.clean.architecture.tuto.core.models.Person;
import com.clean.architecture.tuto.core.models.Team;
import com.... | true |
639db89433af52299fed26d7a37962c458d96e51 | Java | ChenDanni/J2EE_Homework | /j2ee_homework6/src/dao/ExamDAOBean.java | UTF-8 | 1,374 | 2.359375 | 2 | [] | no_license | package dao;
import dao.impl.DaoHelperImpl;
import model.Exam;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement... | true |
7eab512420a20bbdc7cd40c47fbbd57c923e157d | Java | bfqcbfq/jhipster | /src/main/java/com/ivision/app/domain/DeliveryDetails.java | UTF-8 | 5,108 | 2.34375 | 2 | [] | no_license | package com.ivision.app.domain;
import java.io.Serializable;
public class DeliveryDetails implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String storehouseNo;
private String materialNo;
private String brand;
private String unit;
private String quantity;
... | true |
f26a2b678bb87fff003abfef1de678a72c5929a1 | Java | habronat/habronat | /HabronatCommon/src/test/java/com/habronat/common/config/PropertiesConfigLoaderTest.java | UTF-8 | 937 | 2.34375 | 2 | [] | no_license | package com.habronat.common.config;
import org.junit.Before;
import org.junit.Test;
import java.util.Properties;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class PropertiesConfigLoaderTest {
private PropertiesConfigLoader propertiesConfigLoader;... | true |
3ace8a8e662a2afc00309a04b8702224d51ac484 | Java | MingfeiPan/leetcode | /array/1184.java | UTF-8 | 584 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | class Solution {
public int distanceBetweenBusStops(int[] distance, int start, int destination) {
int cd = 0;
int ccd = 0;
if (start > destination) {
int temp = destination;
destination = start;
start = temp;
}
for (int i = 0; i < distance.... | true |
abaef44afac4c87c33b1c4a5e6471357234e6ad5 | Java | DaeHoonWi/MyProject | /src/order/command/OrderHandler.java | UTF-8 | 1,738 | 2.375 | 2 | [] | no_license | package order.command;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import mvc.command.CommandHandler;
import order.model.Order;
import order.service.NotFoundedGoodsExcpetion;
import order.service.OrderService;
public class OrderHandler implements CommandHandler {
pr... | true |
48006d3a96441a927d9db2ca551a145458a7d479 | Java | hr19900125/Samples | /AndroidSamples/CustomWidgetDemo/src/main/java/com/ryan/demo/MainActivity.java | UTF-8 | 2,791 | 2.296875 | 2 | [] | no_license | package com.ryan.demo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import com.ryan.demo.activity.CircleImageDrawableActivity;
import com.ryan.demo.activity.CircleIm... | true |
fd061fe45c7c0f56f1997218c3868e6405a3b375 | Java | hudezhi123/AllDemo | /customview/src/main/java/com/first/hdz/customview/swipelayout/QQSwipeActivity.java | UTF-8 | 668 | 1.914063 | 2 | [] | no_license | package com.first.hdz.customview.swipelayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import com.first.hdz.customview.R;
public class QQSwipeActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle... | true |
54e8cb2ab7796972d9a3155da30434246ccc0e2a | Java | paulofor/projeto-android-aplicacao | /Monitor/coletorGeralPreco_0_1/src/main/java/coletapreco/modelo/vo/MarcaVo.java | UTF-8 | 6,262 | 2.140625 | 2 | [] | no_license | package coletapreco.modelo.vo;
import android.view.View;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import org.json.JSONObject;
import org.json.JSONArray;
import org.json.JSONException;
import... | true |
be10b6e01721b5f4d22954a5072bb453aaf11a14 | Java | jrdrg/java-roguelike | /roguelike/src/roguelike/maps/DungeonMapBuilder.java | UTF-8 | 11,655 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package roguelike.maps;
import java.awt.Point;
import java.awt.Rectangle;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.ArrayList;
import java.util.Stack;
import roguelike.Game;
import roguelike.util.CollectionUtils;
import roguelike.util.Log;
import roguelike.util.Symbol;
import squi... | true |
730f7d18a1ef9401b71d4e3cc6ca4ce57ec2061c | Java | suhyunjeon/ankus | /ankus-core/src/main/java/org/ankus/mapreduce/algorithms/statistics/numericstats/NumericStats2MRSplitReducer.java | UTF-8 | 3,013 | 2.234375 | 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 ... | true |
a93fecc19e8d5f927bf70332d8f7bf3b978a1a98 | Java | tianshiaimili/MyNewsAppTest_v1 | /src/com/hua/test/activity/BaseActivity.java | UTF-8 | 4,426 | 2.1875 | 2 | [] | no_license | package com.hua.test.activity;
import java.util.ArrayList;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.widget.Toast;
import com.hua.test.contants.Url;
import com.hua.test.network.utils.Htt... | true |
6e9a02d461d4ff167889cffc228a72e3c8b637a7 | Java | mvidela/GWTPresentation | /src/main/java/com/teracode/client/slides/Slide13.java | UTF-8 | 582 | 2.15625 | 2 | [] | no_license | package com.teracode.client.slides;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.teracode.client.model.Presentable;
public class Slide13 extends Widget implements Presentable {
... | true |
f92bef7f3fde2c40680ca48645a90f77a11c2043 | Java | shnek/MiKUT | /pl.edu.agh.to2/src/main/java/OperatorResolver/operatorresolver/billingcontainers/Billing.java | UTF-8 | 1,269 | 2.796875 | 3 | [] | no_license | package OperatorResolver.operatorresolver.billingcontainers;
import OperatorResolver.operatorresolver.Operator;
import java.util.HashMap;
import java.util.Map;
public class Billing {
private ServiceDetails internet;
private Map<Operator, Services> operatorToServices;
public Billing() {
this.internet = new Ser... | true |
d0ec35385e97fbb3d061712f93027d4026b863a5 | Java | dakhnod/PhotoRemover | /app/src/main/java/d/d/photoremover/schedule/database/ScheduleDatabaseHelper.java | UTF-8 | 5,105 | 2.390625 | 2 | [] | no_license | package d.d.photoremover.schedule.database;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
imp... | true |
cec2d5d94b42e07e8c9a40a58222a5de4604f112 | Java | liviu27/files-read-write | /src/main/java/transaction/manager/io/writer/TransactionAbstractFileWriter.java | UTF-8 | 1,217 | 2.5625 | 3 | [] | no_license | package transaction.manager.io.writer;
import transaction.config.AppConfig;
import transaction.manager.model.Transaction;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
public abstract class TransactionAbstractFileWriter implement... | true |
a50c1add05d556cb0a7968b08f9c2f84b1dbfe55 | Java | langtianya/JadaSite | /source/WEB-INF/classes/com/jada/jpa/entity/SiteCurrency.java | UTF-8 | 6,252 | 1.742188 | 2 | [] | no_license | /*
* Copyright 2007-2010 JadaSite.
* This file is part of JadaSite.
* JadaSite 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 3 of the License, or
* (at your option) any later ... | true |
b08260dde53abcb780f88ad14f943210ed564a77 | Java | lavas1234/lavas1234 | /Hello World.java | UTF-8 | 228 | 3.265625 | 3 | [] | no_license |
public class HelloWorld{
public void display(int x,int y)
{
System.out.println("Sum of the two numbers:"+(x+y));
}
public static void main(String[]args)
{
HelloWorld helloworld = new HelloWorld();
helloWorld.display(10,20);
}
} | true |
c5ac32d397b75c52077ed673802dea7589a60d18 | Java | haileyan/biz_504_2019_01_spring | /SpMVC_FileUp/src/main/java/com/biz/file/controller/MemberController.java | UTF-8 | 2,273 | 2.515625 | 3 | [] | no_license | package com.biz.file.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.... | true |
ca5a1d30f7934c7e847c914a8a2640895f9d3fb5 | Java | latas/DummyPosts | /app/src/main/java/com/babylon/testproject/data/responses/PostResp.java | UTF-8 | 763 | 2.390625 | 2 | [] | no_license | package com.babylon.testproject.data.responses;
import com.babylon.testproject.data.models.Post;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class PostResp {
@Expose
@SerializedName("id")
public final long id;
@Expose
@SerializedName("user... | true |
e4772937967bcac702ad04c083196c74e6ededd7 | Java | Edmund-Hu/HistoryDemo | /Spring/src/com/edmund/Test/TestManage.java | UTF-8 | 455 | 1.898438 | 2 | [] | no_license | package com.edmund.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.edmund.entity.Manange;
public class TestManage {
public static void main(String[] args) {
ApplicationContext ctx =new ClassPathXmlApplicationContex... | true |
c72052ca18b135e36e8102f8068171df22309020 | Java | EncoreJiang/presto | /presto-product-tests/src/main/java/com/facebook/presto/tests/cli/PrestoCliTests.java | UTF-8 | 5,722 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 in writing, software
* distribut... | true |
cebbc8f47fe9604c54d6a89037bed9a536ee3a6d | Java | szechy/farkel | /src/farkel/FarkelRandom.java | UTF-8 | 463 | 2.828125 | 3 | [] | no_license | package farkel;
import java.util.Random;
public class FarkelRandom {
//use default constructor
static Random generator = new Random();
public static int[] generateRoll(int numberOfDiceToRoll){
int[] result = new int[numberOfDiceToRoll];
for(int i = 0; numberOfDiceToRoll != 0; num... | true |
066ca3676f33460a23e240a2c065226b69c613c2 | Java | kianelbo/online-battleship | /src/view/boards/BaseBoard.java | UTF-8 | 231 | 2.4375 | 2 | [] | no_license | package view.boards;
import javax.swing.*;
import java.awt.*;
abstract public class BaseBoard extends JPanel {
public BaseBoard() {
super(null);
setSize(400, 400);
setBackground(Color.WHITE);
}
}
| true |
9fa64f7fa196fa88be1ef8d566f4705c677ac8de | Java | omeganoor/SimpleWebfluxDemo | /src/main/java/com/demo/webflux/service/impl/UserServiceImpl.java | UTF-8 | 2,209 | 2.46875 | 2 | [] | no_license | package com.demo.webflux.service.impl;
import com.demo.webflux.dao.UserRepository;
import com.demo.webflux.entity.dao.User;
import com.demo.webflux.libraries.BeanMapper;
import com.demo.webflux.service.api.UserService;
import com.demo.webflux.rest.model.UserRequestParameter;
import com.demo.webflux.rest.model.UserResp... | true |
e863a0477cf8d6fc39b14e98d45f5aac6efdf06b | Java | Heromachine/RJT_CW_919_ANDROID_FLAVORS | /app/src/main/java/com/example/jessi/rjt_cw_919_android_flavors/paid/PaidActivity.java | UTF-8 | 518 | 1.726563 | 2 | [] | no_license | package com.example.jessi.rjt_cw_919_android_flavors.paid;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import com.example.jessi.rjt_cw_919_android_flavors.R;
public class PaidActivity extends AppCompatActivity {
Button b... | true |
b41307e32d4825463f27db0a53792b6767fabd78 | Java | zebrajaeger/esp8266_switch | /backend_sta/src/main/java/de/zebrajaeger/esp8266/ledserver/LedService.java | UTF-8 | 101 | 1.867188 | 2 | [
"MIT"
] | permissive | package de.zebrajaeger.esp8266.ledserver;
public interface LedService {
LedData getLedData();
}
| true |
ea16eaef52e7af31d433136f248db5f827d2541f | Java | liuqun/stanford-programming-abstractions-in-java-source-code | /src/edu/stanford/cs/javacs2/ch2/EuclidGCD.java | UTF-8 | 1,012 | 4.0625 | 4 | [] | no_license | /*
* File: EuclidGCD.java
* --------------------
* This program uses Euclid's algorithm to compute the greatest
* common divisor of two integers.
*/
package edu.stanford.cs.javacs2.ch2;
import java.util.Scanner;
public class EuclidGCD {
public void run() {
Scanner sysin = new Scanner(System.in);
... | true |
e14951ba2c51fb619779b09fbf09c2867864e935 | Java | HuangRicher/tree | /service-user/src/main/java/com/tongzhu/user/po/RobotPO.java | UTF-8 | 1,475 | 1.976563 | 2 | [] | no_license | package com.tongzhu.user.po;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
public class RobotPO implements Serializable {
private String userName;
private Integer roleId;
private Integer roleLevel;
private String roleName;
private String openId;
private List<SkillP... | true |
55f1690de16e4e6e288493f9d437cbc3bb72b43c | Java | ChampionJiang/CMSSAnalysis | /src/com/cmss/storage/IndexPool.java | UTF-8 | 433 | 2.34375 | 2 | [] | no_license | package com.cmss.storage;
import java.util.Map;
public class IndexPool {
private Map<int[], TabIndex> indices;
public TabIndex getIndex(int [] units) {
if (indices.containsKey(units)) {
return indices.get(units);
}
TabIndex result = null;
// find base index
// generate index from the base inde... | true |
0cd500ee0add0914b1c8d5eb583dfabddfb77fab | Java | haloskzd/Lab3-for-376 | /src/PrimeFactorsTest.java | UTF-8 | 1,488 | 2.796875 | 3 | [] | no_license | import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Test;
public class PrimeFactorsTest {
@Test
public void testNum1() {
ArrayList<Integer> list = new ArrayList<Integer>();
//list.add(1);
assertEquals(list, PrimeFactor.generate(1));
}
@Test
public void testNum2() {
ArrayLi... | true |
6ee811cfda230e18261a750c8540c5cc8cc7c74c | Java | ZorD007/back-end-inventory-system | /Inventory-System/src/main/java/com/project/imp/MarcaImp.java | UTF-8 | 5,481 | 2.5 | 2 | [] | no_license | package com.project.imp;
import com.project.dto.ReqDtoMarca;
import com.project.dto.ResponseDtoMarca;
import com.project.exception.NoActualizarException;
import com.project.exception.NoEncontradoException;
import com.project.exception.NoGuardadoException;
import com.project.mapping.MappingObjetoMarca;
import com.proje... | true |
08b31eeafe75b9e2c7b6f9fd14f89775c2d9a1ba | Java | eou/Algorithm | /LeetCode/3. Longest Substring Without Repeating Characters.java | UTF-8 | 1,730 | 3.703125 | 4 | [] | no_license | // 3. Longest Substring Without Repeating Characters
// sliding window
class Solution {
public int lengthOfLongestSubstring(String s) {
if (s == null || s.length() == 0) {
return 0;
}
int len = 0;
Map<Character, Integer> map = new HashMap<>();
int left = 0, right... | true |
317f28b825558d4f1a8fa1c0cebfd3c189b34fda | Java | bellmit/osms | /test/com/itecheasy/desinger_pattern/Visitor/A1/FileFindVisitor.java | UTF-8 | 1,324 | 2.8125 | 3 | [
"Zlib"
] | permissive | /*
* Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagi... | true |
56b0b6c7dc722ee924fb1769573d9da8e1ed34e8 | Java | shootercheng/dynamic-datasource | /src/main/java/com/scd/service/impl/TxtExportServiceImpl.java | UTF-8 | 2,835 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.scd.service.impl;
import com.scd.config.ParamConfig;
import com.scd.model.vo.ExportResult;
import com.scd.model.vo.RequestApiData;
import com.scd.service.ApiExportBase;
import com.scd.service.ApiExportService;
import com.scd.util.FileUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org... | true |
ca128e765658fb4414a03341b1fe0c410f251f71 | Java | sanguiine/Projekt | /src/main/java/projektKompetencyjny/chat/chatController.java | UTF-8 | 429 | 1.773438 | 2 | [] | no_license | package projektKompetencyjny.chat;
import javafx.fxml.Initializable;
import java.net.URL;
import java.util.ResourceBundle;
public class chatController implements Initializable {
//id rozwijanej listy listaOsob
//id kolumn to data, godzina, autor, wiadomosc
//id przycisku wyslij
//id pola tekstowego ... | true |
1d6b817e2acf5623206c6f122f492b23c047b6ba | Java | IgnacioEsparza/Escuela | /src/main/java/EscuelaPackage/Curso.java | UTF-8 | 2,507 | 2.703125 | 3 | [] | no_license |
package EscuelaPackage;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
*
* @author Ignacio Esparza
*/
//@XmlRootElement(name="Curso")
@XmlType(propOrder={"nivel","letra","estudiant... | true |
368e534b4815579a5f34fd065d463c66f93fff9d | Java | 2387693636/oauth-thirdparty | /openplatform_java_sdk-dev/src/main/java/com/douyin/open/models/PoiProductProductBody.java | UTF-8 | 7,495 | 2.015625 | 2 | [] | no_license | /*
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
... | true |