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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
56fd31403b03fbd140c74d44515f4d8c2d047595 | Java | Avocadososemix/caverns | /src/main/java/Main.java | UTF-8 | 1,828 | 2.875 | 3 | [] | no_license |
import BinarySpacePartition.BinarySpacePartition;
import GameLogic.Level;
import javafx.application.Application;
import java.io.IOException;
import static javafx.application.Application.launch;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
/*
* To ch... | true |
db7988b63e4b80ea4ccf75f8f0958e3e47214caf | Java | Skyfire156/ProjectPortfolio | /Downtimeapp (Java)/Downtime App/src/downtimeapp/Downtimeapp.java | UTF-8 | 8,217 | 2.59375 | 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 downtimeapp;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStrea... | true |
f998bbfaa3f8f9b1f530b098dcd4d8502522680b | Java | djgupta2013/Login-Register-webService | /LoginRegistrationProject/src/studentInterfaceImpl/StudentImpl.java | UTF-8 | 5,960 | 2.609375 | 3 | [] | no_license | package studentInterfaceImpl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import bean.Otp;
import bean.User;
import connection.ConnectionProvider;
import studentInterfaceDao.StudentInterface;
public class StudentImpl implements StudentInterface{
Connecti... | true |
47ae820a80f6d1bcb7def0727f7e3a86c99eefb9 | Java | failry/dine | /dine/src/main/java/com/dine/service/impl/ProductServiceImpl.java | UTF-8 | 4,388 | 2.453125 | 2 | [] | no_license | package com.dine.service.impl;
import com.dine.entiry.ProductInfo;
import com.dine.dto.CartDTO;
import com.dine.enums.ProductStatusEnum;
import com.dine.enums.ResultEnum;
import com.dine.exception.SellException;
import com.dine.repository.ProductInfoRepository;
import com.dine.service.ProductService;
import org.spring... | true |
e72eb75ffb70bd78883555c6411521b7c7b15ecc | Java | tandser/hibernate | /src/main/java/ru/tandser/hibernate/models/Amount.java | UTF-8 | 1,511 | 3.09375 | 3 | [] | no_license | package ru.tandser.hibernate.models;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Currency;
import java.util.Objects;
public class Amount implements Serializable {
private BigDecimal amount;
private Currency currency;
public Amount(BigDecimal amount, Currency currency) {
... | true |
fd9e6211d62e6489094f006628b48cf1d5b2a888 | Java | shannah/CN1FontBox | /src/com/codename1/ui/FontBoxFontProvider.java | UTF-8 | 5,517 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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.codename1.ui;
import com.codename1.io.ConnectionRequest;
import com.codename1.io.FileSystemStorage;
import com.codename1.... | true |
cd54db40afb99a4f86e8026ab6177be0da0cf835 | Java | KwonYI/WieV | /BackEnd/Project_A405/src/main/java/com/web/project/model/hr/Company.java | UTF-8 | 631 | 1.945313 | 2 | [] | no_license | package com.web.project.model.hr;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;... | true |
c1e97b431f28667525145ddfd223e6f8e269eedf | Java | JRodrigues123/CMSC203-Workspace | /CMSC203_Lab1/src/MovieDriver.java | UTF-8 | 1,493 | 3.75 | 4 | [] | no_license | /**
*
* @author justinrodrigues
*/
import java.util.Scanner;
public class MovieDriver {
public static void main(String[] args) {
//Created Scanner
@SuppressWarnings("resource")
Scanner in = new Scanner(System.in);
Movie m1 = new Movie();
//Holds the movie's title and rating
String title;
St... | true |
1f0314bf1b7975db57ea57d3987b80246b03b50e | Java | sitharaSasindu/Chat-Application | /Chat_CLient/build/generated/jax-wsCache/ChatService/chat/Message.java | UTF-8 | 2,596 | 2.328125 | 2 | [] | no_license |
package chat;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for message complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
*... | true |
799be8f72ac514580baacd43f418d03e236d87da | Java | nabilaalifia/todolist | /src/it/simoli/todolist/EditActivity.java | UTF-8 | 1,978 | 2.671875 | 3 | [] | no_license | package it.simoli.todolist;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
public class EditActivity extends Activity {
p... | true |
d7df1e21c40e2062ebe7d7a858ca11dafe82ef59 | Java | LielBarouch/Eshop | /Product.java | UTF-8 | 1,339 | 2.96875 | 3 | [] | no_license | package Eshop;
public class Product {
protected String name;
protected int id;
protected double price;
protected double discount;
public Product(String name, int id, double price, double discount) {
this.name = name;
this.id = id;
this.price = price;
thi... | true |
24314fc3e7d1a7d5f63ff72fd74451c84c8252da | Java | IcyEzra/JavaProgramming2020_B21 | /src/day10_IfElseStatement/WarmupTasks.java | UTF-8 | 1,657 | 3.9375 | 4 | [] | no_license | package day10_IfElseStatement;
public class WarmupTasks {
public static void main(String[] args) {
//Task 1 Valid Triangle
String shape = "Triangle";
int num1 = 50;
int num2 = 70;
int num3 = 90;
boolean isTriangle = num1 + num2 + num3 == 180;
boolean notaTri... | true |
ca12d57c4ab49fee0969e4a6cf6a39f5d97e15d7 | Java | jconverter/jconverter | /src/main/java/org/jconverter/typesolver/TypeSolverChain.java | UTF-8 | 834 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package org.jconverter.typesolver;
import java.lang.reflect.Type;
import java.util.List;
import java.util.function.Function;
import org.jcategory.ChainOfResponsibilityExhaustedException;
import org.jcategory.strategy.ChainOfResponsibility;
public class TypeSolverChain<T> extends ChainOfResponsibility<TypeSolver<T>, ... | true |
b614acfebe7f0a6a7dae4f544d79c606c0c28c62 | Java | zhangdian/marketing | /src/main/java/com/bd17kaka/marketing/dao/UserInfoDaoImpl.java | UTF-8 | 1,635 | 2.28125 | 2 | [] | no_license | package com.bd17kaka.marketing.dao;
import java.sql.Types;
import java.util.List;
import org.apache.commons.lang.StringEscapeUtils;
import org.springframework.jdbc.core.simple.ParameterizedBeanPropertyRowMapper;
import org.springframework.stereotype.Repository;
import com.bd17kaka.marketing.po.UserInfo;
... | true |
b1fb5b2eb5bb6bc5f74ffa66e9ef8a473911c502 | Java | lee-chance/RAUM | /src/main/java/com/MajorCompany/RAUM/dto/SSB/paymentList.java | UTF-8 | 1,923 | 2.234375 | 2 | [] | no_license | package com.MajorCompany.RAUM.dto.SSB;
public class paymentList {
private String payment;
private String seq;
private String orderdate;
private String name;
private String image;
private String size;
private String qty;
private String price;
private String checked;
private String status;
public paymentL... | true |
e886af853c0d3121998a436b412c0df2514764a4 | Java | MCC-Java/Poliklinik-Monolith-Indri-William | /src/main/java/com/mcc/poliklinik/services/JadwalService.java | UTF-8 | 1,010 | 1.945313 | 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.mcc.poliklinik.services;
import com.mcc.poliklinik.entities.Jadwal;
import com.mcc.poliklinik.repositories.JadwalR... | true |
e291827b657085a2fbe0a9811b2b48c9ffcf2e5a | Java | padenot/Summon | /src/fr/neamar/summon/holder/AppHolder.java | UTF-8 | 292 | 1.726563 | 2 | [] | no_license | package fr.neamar.summon.holder;
public class AppHolder extends Holder {
public String name = "";
public String nameLowerCased = "";
public String displayName = ""; // App name with markers to put query text
// in bold
public String packageName;
public String activityName;
}
| true |
08304cfd88f04c28874e5b58ed1d6c407a3fe2a7 | Java | andreagrance30/EventosFinal | /src/java/py/com/metre/administracionBase/cdi/ControladorBarrio.java | UTF-8 | 4,693 | 2.09375 | 2 | [] | no_license | package py.com.metre.administracionBase.cdi;
import java.io.Serializable;
import java.util.List;
import org.apache.log4j.Logger;
import javax.ejb.EJB;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.persistence.P... | true |
d300382d49c117e1eb9e56d4ab2d7044981409e7 | Java | marcseid/Prog2 | /src/Tutorium_Termin_6/MannschaftenMain.java | UTF-8 | 1,110 | 3.359375 | 3 | [] | no_license | package Tutorium_Termin_6;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class MannschaftenMain {
public static void main(String[] args) {
Mannschaft aJugend = new Mannschaft("A Jugend");
aJugend.addSpieler(new Spieler("Julian", 1));
aJugend.addSpieler(... | true |
e83392665805283692bccc941c96ac52f2a35b89 | Java | nthung2112/NthSettings | /src/com/nth/settings/utils/Common.java | UTF-8 | 924 | 2.25 | 2 | [] | no_license | package com.nth.settings.utils;
import android.content.ContentResolver;
import android.preference.CheckBoxPreference;
import android.preference.ListPreference;
public class Common
{
public ContentResolver cr;
public Common(ContentResolver content)
{
cr = content;
}
public void initList(ListPreference lp)
{
... | true |
f92c1c0f20a866c6441a7ef542e79866d401cd08 | Java | fercotrena/serenity_bdd | /src/test/java/com/automationpractice/utils/PropertyReader.java | UTF-8 | 377 | 2.328125 | 2 | [] | no_license | package com.automationpractice.utils;
import java.util.ResourceBundle;
public class PropertyReader {
private ResourceBundle configFile;
public PropertyReader() {
try {
configFile = ResourceBundle.getBundle("base");
} catch (Exception ex) {
ex.printStackTrace();
}
}
public String getProperty(Str... | true |
6a06d58d31af3127cf797418cb107aa5e0032b8c | Java | guylerme/menthor-patterns | /net.menthor.patternRecognition/src/net/menthor/patternRecognition/wizard/phasePattern/PhasePatternWizard.java | UTF-8 | 947 | 2.40625 | 2 | [] | no_license | package net.menthor.patternRecognition.wizard.phasePattern;
import net.menthor.patternRecognition.phasePattern.PhasePattern;
import net.menthor.patternRecognition.phasePattern.PhaseOccurrence;
import net.menthor.patternRecognition.wizard.PatternWizard;
import net.menthor.patternRecognition.wizard.FinishingPage;
... | true |
f0b84a9cd26d16bf588b1089ec7236c02b0a9f94 | Java | alvi17/GMA_App | /app/src/main/java/gma_chakra/gma_app/Ack_Resources.java | UTF-8 | 1,712 | 2.0625 | 2 | [] | no_license | package gma_chakra.gma_app;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.ScrollView;
/**
* Created by Alvi17 on 10/15/2015.
*... | true |
3e0685de60a22cd10045bc2f3778307cdfeba6ec | Java | rrifcode/Project2 | /MainModel/src/com/cskaoyan/controller/PassengerController.java | UTF-8 | 22,306 | 2.296875 | 2 | [] | no_license | package com.cskaoyan.controller;
import com.cskaoyan.bean.Passenger;
import com.cskaoyan.service.PassengerService;
import com.cskaoyan.utils.Downorder;
import com.cskaoyan.utils.Page;
import com.cskaoyan.utils.PassengerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereot... | true |
d467178f7996b5c80ac8588eb4fd175774c2b36c | Java | P79N6A/icse_20_user_study | /methods/Method_1017178.java | UTF-8 | 116 | 1.742188 | 2 | [] | no_license | public IndexRequestBuilder index(String index,String type){
return client.getClient().prepareIndex(index,type);
}
| true |
e342e3f637a858b22184bde35ecacc98d3d0f5f6 | Java | jparkerpearson/APT-sets-java | /APT Set 3/src/UnderCoverCoder.java | UTF-8 | 1,833 | 3.453125 | 3 | [] | no_license | import java.util.HashMap;
public class UnderCoverCoder {
public int totalNotes(String[] clips, String[] notes) {
// make all lowercase
// loop through .charat add everything in to map
// }
for ( int i=0; i<clips.length;i++)
{
clips[i]=clips[i].replaceAll("\\s","");
clips[i]=clips[i].to... | true |
2d7ae82c4176b11c9e34cd7e1e234b6e9fb21f8d | Java | yangfancoming/mybatis | /src/main/java/org/apache/ibatis/builder/IncompleteElementException.java | UTF-8 | 496 | 1.914063 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive |
package org.apache.ibatis.builder;
public class IncompleteElementException extends BuilderException {
private static final long serialVersionUID = -3697292286890900315L;
public IncompleteElementException() {
super();
}
public IncompleteElementException(String message, Throwable cause) {
super(mess... | true |
a52e7da3f4109eeb52b8916ceec253c23f7df005 | Java | renandpaula/RestServiceAluno | /src/main/java/br/edu/ucsal/restalunos/viewer/model/Aluno.java | UTF-8 | 1,275 | 2.515625 | 3 | [] | no_license | package br.edu.ucsal.restalunos.viewer.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Aluno {
private String nome;
@JsonIgnore
private Turma turma;
private String nomeTurma;
private int matricula;
public Aluno() {
... | true |
57550ba9803b2c11d4d02ff8759418a7dbb64932 | Java | v1nc3ntl1/learn-java | /PackageChallenge/src/com/learning/Series.java | UTF-8 | 1,301 | 3.859375 | 4 | [] | no_license | package com.learning;
public class Series {
public static int nSum(int n) {
int sum = 0;
int previousInt = 0;
for (int i = 1; i < n; i++) {
sum += (previousInt + i);
previousInt = previousInt + i;
System.out.println(previousInt);
}
return... | true |
4b838a99a02712dfd4e1dd9840cc4c7b00a1b0d0 | Java | markzgwu/mobileapps | /lbs/src/org/examples/v2/DrawGrids.java | UTF-8 | 874 | 3.171875 | 3 | [] | no_license | package org.examples.v2;
import java.awt.*;
import java.awt.event.*;
class Grids extends Canvas {
int width, height, rows, columns;
Grids(int w, int h, int r, int c) {
setSize(width = w, height = h);
rows = r;
columns = c;
}
public void paint(Graphics g) {
int k;
width = getSize().width;
height =... | true |
454bf029d43e16dfd522b426572e79e6a62fa0ce | Java | sven-meyenberger/JavaTraining | /src/main/java/stage/AdvancedStage.java | UTF-8 | 1,118 | 2.671875 | 3 | [
"Unlicense"
] | permissive | package stage;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public class AdvancedStage extends Application {
@Override
public void start(Stage primaryStage) throws Except... | true |
38d70d88f66cfae73d9b05f8a3a981551805adf5 | Java | gunsliderua-second/profiles-loader | /app/src/main/java/denys/salikhov/exam01/profileloader/ui/AvatarActivity.java | UTF-8 | 695 | 2.0625 | 2 | [] | no_license | package denys.salikhov.exam01.profileloader.ui;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import denys.salikhov.exam01.profileloader.R;
public class AvatarActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedIns... | true |
8abb87f3a0744c970d3dfac95ca45b4a15bf4703 | Java | cylgtl/jiancha | /src/main/java/org/jeecgframework/web/system/service/impl/DynamicDataSourceServiceImpl.java | UTF-8 | 1,392 | 2.109375 | 2 | [] | no_license | package org.jeecgframework.web.system.service.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.jeecgframework.web.system.service.DynamicDataSourc... | true |
67ce5477cfc4f9bca8a5b5b59cd08809fa223388 | Java | craigmcc/bookcase-client-test | /src/test/java/org/craigmcc/bookcase/client/AuthorClientTest.java | UTF-8 | 10,771 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 craigmcc.
*
* 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 |
0f10acbae141b9364eb2faa79b18e53dc271f36b | Java | buruqinshouburu/Login | /src/com/itheima/web/Servlet/LoginServlet.java | UTF-8 | 2,419 | 2.453125 | 2 | [] | no_license | package com.itheima.web.Servlet;
import com.itheima.domain.User;
import com.itheima.dao.UserDao;
import org.apache.commons.beanutils.BeanUtils;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import... | true |
14483ddb5a2e00df99390586087e53671fb0e7e8 | Java | jason790/SmartDosing | /SmartDosingKhanV1/Smart_Dispenser/src/com/example/smart_dispenser/Nurse.java | UTF-8 | 1,869 | 2.15625 | 2 | [] | no_license | package com.example.smart_dispenser;
import com.vaadin.addon.touchkit.ui.NavigationView;
import com.vaadin.data.Container;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.C... | true |
345105c983bcfc492361e0c9b6a8f0b49691d3dd | Java | AncientMariner/jax | /src/main/java/jaxb/validation/Validation.java | UTF-8 | 1,587 | 2.4375 | 2 | [
"MIT"
] | permissive | package jaxb.validation;
import org.xml.sax.SAXException;
import javax.xml.XMLConstants;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import java.io.Fil... | true |
70772fdc80f65afeea77897ed9a8ce9a42934e16 | Java | rupesh2053/employeemgmt | /src/java/com/servlet/ShowAllServlet.java | UTF-8 | 1,656 | 2.421875 | 2 | [] | no_license | package com.servlet;
import com.employee.EmployeeRecord;
import com.employee.dao.EmployeeDao;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.*;
import javax.servlet.http.*;
public class ShowAllServlet extends HttpServlet {
protected void proces... | true |
5cde73f778cfb2d3bba40293471c85eebb5ee7a5 | Java | jun-hyeji/jblog | /jblog/src/main/java/com/bitacademy/jblog/service/UsersService.java | UTF-8 | 357 | 1.789063 | 2 | [] | no_license | package com.bitacademy.jblog.service;
import com.bitacademy.jblog.vo.UserVo;
public interface UsersService {
public UserVo login(String id,String pw); //로그인
public boolean idCheck(String id); //id중복체크
public boolean userInsert(UserVo uvo); //회원가입
public Long selectUserNo(String id);
public String selectId(L... | true |
dfa7f1620ebf596cd9daced9e92063a6f74ac250 | Java | KalhanVithana/Rest-api-backend | /Rest-api-Backend/User/src/main/java/com/user/User/Resource/UserResource.java | UTF-8 | 5,381 | 2.421875 | 2 | [] | no_license | package com.user.User.Resource;
import java.security.NoSuchAlgorithmException
;
import java.util.ArrayList;
import javax.annotation.security.RolesAllowed;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
im... | true |
9a1ef37e71a1dac296ba5fee05aa626044db8922 | Java | mtbdc-dy/zhongds01 | /sa_center/sacenter-parent/sacenter-receive/src/main/java/com/ai/sacenter/receive/teaminvoke/out/impl/UpdcFSVImpl.java | UTF-8 | 19,471 | 1.671875 | 2 | [] | no_license | package com.ai.sacenter.receive.teaminvoke.out.impl;
import java.rmi.RemoteException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.ai.sacenter.IUpdcContext;
import com.ai.sacenter.SFException;
import com.ai.sacenter.center.SFCenterFactory;
import com.ai.sacenter.comm... | true |
8e21da7e0a111cc3cb2dd75a5bcf44e593fbd8de | Java | kamochu/sds | /sds_message_processor/src/com/sds/core/conf/TextConfigs.java | UTF-8 | 970 | 2.015625 | 2 | [] | no_license | package com.sds.core.conf;
/**
*
* @author Samuel Kamochu
*/
public class TextConfigs {
/**
* General technical failure text to be
*/
public final static String GEN_TECHNICAL_FAILURE_TEXT = "Dear customer. We are unable to process your request at the moment. Please try again later. Thank you.";
... | true |
d0be80dbd50e9bd5020abab8edc969600830a5e0 | Java | benNek/AsgardAscension | /src/com/nekrosius/asgardascension/utils/TribeUtils.java | UTF-8 | 1,262 | 3 | 3 | [
"MIT"
] | permissive | package com.nekrosius.asgardascension.utils;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Location;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
public class TribeUtils {
public TribeUtils() {
// It's empty because why not?
}
public Location getCenterLocation(Loc... | true |
462bb4206b636b8edb36d1210e43ea127a712a31 | Java | meet-007/spring-core-practice | /practice/src/main/java/com/spring/practice/SimpleFactory.java | UTF-8 | 506 | 2.796875 | 3 | [] | no_license | package com.spring.practice;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
@Component
public class SimpleFactory {
@Bean(name = "lion")
Animal Lion() {
final Lion lion = new Lion();
lion.setSpeed(44);
lion.setType("4asdfasdf");
lion.setWeight(42);
ret... | true |
672b3ddcc76625c226451a688b98aed0a44e998e | Java | rexlNico/RexlTech | /src/main/java/de/rexlnico/rexltech/utils/init/SoundInit.java | UTF-8 | 1,066 | 2.234375 | 2 | [] | no_license | package de.rexlnico.rexltech.utils.init;
import de.rexlnico.rexltech.RexlTech;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.registries.IForgeRegistry;
pu... | true |
bda7a1989e383fc4fde595745ccaa9e2855ee0dc | Java | mrtamm/sqlstore | /src/test/java/ws/rocket/sqlstore/connection/SharedConnectionManagerTest.java | UTF-8 | 2,564 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 the original author or authors.
*
* 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 applicab... | true |
de518eb505ad47989b0aa04a48d43972fe16485e | Java | minxc/iEMPv7 | /emp-platform/system/system-core/src/main/java/org/minxc/emp/syetem2/service/SystemDataSourceServiceImpl.java | UTF-8 | 1,157 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package org.minxc.emp.syetem2.service;
import org.minxc.emp.system.api2.model.SystemDataSource;
import org.minxc.emp.system.api2.service.SystemDataSourceService;
import org.minxc.emp.syetem2.manager.SystemDataSourceManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.... | true |
0b92fc4f3dbe70a5c25bc2ea704ad1057e0b9957 | Java | openGDA/gda-core | /uk.ac.gda.client.live.stream/src/uk/ac/gda/client/live/stream/view/LiveStreamMenuContribution.java | UTF-8 | 7,595 | 1.859375 | 2 | [] | no_license | /*-
* Copyright © 2017 Diamond Light Source Ltd.
*
* This file is part of GDA.
*
* GDA is free software: you can redistribute it and/or modify it under the
* terms of the GNU General Public License version 3 as published by the Free
* Software Foundation.
*
* GDA is distributed in the hope that it will be usef... | true |
2fc1c0065739b28e47b859d73aaea64445b3fb1b | Java | macosong/riskManagement | /src/main/java/nju/agile/riskmanagement/service/StandardService.java | UTF-8 | 1,431 | 2.078125 | 2 | [] | no_license | package nju.agile.riskmanagement.service;
import com.github.pagehelper.PageHelper;
import nju.agile.riskmanagement.mapper.StandardMapper;
import nju.agile.riskmanagement.pojo.SAndS;
import nju.agile.riskmanagement.pojo.StandardWords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | true |
cc867eafbadab51cb79fc5e65442d6df4911f82d | Java | bernhardroth3/code | /snippets/engine-plugin-signal-to-azure-eventhub/signal-to-AzureEventHub-engine-plugin/src/main/java/com/camunda/consulting/eventhub/plugin/AttachEventHubProducerParseListener.java | UTF-8 | 1,584 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.camunda.consulting.eventhub.plugin;
import org.camunda.bpm.engine.delegate.ExecutionListener;
import org.camunda.bpm.engine.impl.bpmn.parser.AbstractBpmnParseListener;
import org.camunda.bpm.engine.impl.bpmn.parser.BpmnParseListener;
import org.camunda.bpm.engine.impl.pvm.process.ActivityImpl;
import org.c... | true |
e3c1327211bbd5e2769061b1b9259c6b64e2684b | Java | johannawiberg/TDA367project | /src/main/java/viewcontroller/PanelItemManager.java | UTF-8 | 2,074 | 3 | 3 | [] | no_license | package viewcontroller;
import com.google.inject.Inject;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javafx.scene.effect.DropShadow;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.FlowPane;
import javafx.scene.paint.Color;
import model.Course;
public class ... | true |
beccdecaa1f0c3040abd9eafea985d1685dff1e7 | Java | michelebof/introsde-2016-assignment-1 | /src/HealthProfileReader.java | UTF-8 | 6,357 | 2.65625 | 3 | [] | no_license | import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathExpressi... | true |
47f2ae700c1ac15dbbd8313fe1dfaccab6690ae6 | Java | TiffyZ/Mobile-Computing-Project-eReader-ebook-reader-app | /eReader/src/activity/MainActivity.java | GB18030 | 3,490 | 2.3125 | 2 | [] | no_license | package activity;
import java.util.ArrayList;
import java.util.List;
import com.zzj.z_reader.R;
import adapter.ShelfAdapter;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.... | true |
52cdc3908dd76322a038eb68d7a5963dcbb38734 | Java | Sahapap-Usadee/hht_demo | /app/src/main/java/com/jastec/hht_demo/remote/IMyAPI.java | UTF-8 | 940 | 1.695313 | 2 | [] | no_license | package com.jastec.hht_demo.remote;
import com.jastec.hht_demo.model.MsPg;
import com.jastec.hht_demo.model.TerTest;
import java.util.List;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.http.Body;
import retrofit2.http.GET;
import ret... | true |
a540fdc90a26897a8cb4291c59efb02a06bfeb0e | Java | jojoldu/devbeginner | /src/test/java/com/blogcode/RepositoryTests.java | UTF-8 | 3,943 | 2.171875 | 2 | [] | no_license | package com.blogcode;
import com.blogcode.member.domain.Member;
import com.blogcode.member.repository.MemberRepository;
import com.blogcode.oauth.domain.Facebook;
import com.blogcode.posting.domain.Posting;
import com.blogcode.posting.repository.PostingRepository;
import com.blogcode.reply.domain.Reply;
import com.blo... | true |
df3e0f45ef2ffc93533bd4b2e4d73623777d510b | Java | rahulsachint/IntJava | /src/ttl/intjava/dao/DaoFactory.java | UTF-8 | 168 | 1.554688 | 2 | [] | no_license | package ttl.intjava.dao;
public class DaoFactory {
public static BaseDAO getStudentDao() {
//return new MysqlStudentDAO();
return new InMemoryStudentDao();
}
}
| true |
e9cd60434d4e55cace08ad9e26a4ac3691ca3e2a | Java | SebaSphere/GameStagesFabric | /ItemModule/src/main/java/com/dolphin2point0/gamestagesfabric/itemmodule/HashMapItemStageCheckerImpl.java | UTF-8 | 2,162 | 2.578125 | 3 | [
"MIT"
] | permissive | package com.dolphin2point0.gamestagesfabric.itemmodule;
import com.dolphin2point0.gamestagesfabric.itemmodule.api.ItemStageChecker;
import com.dolphin2point0.gamestagesfabric.api.GameStagesAPI;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
import java.util.Arrays;
import java.util.H... | true |
e5cd8cb2a9d0effaa81ae8a683ac1f748ee1f607 | Java | leee549/cloud-mall | /mall-product/src/main/java/cn/lhx/mall/MallProductApplication.java | UTF-8 | 873 | 1.695313 | 2 | [] | no_license | package cn.lhx.mall;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClien... | true |
1ad341ceaf8bf2ac304a430055c9ce89d0ad6284 | Java | P79N6A/icse_20_user_study | /methods/Method_1016274.java | UTF-8 | 418 | 2.9375 | 3 | [] | no_license | /**
* Returns maximum dimension combined from specified components dimensions.
* @param components components
* @return maximum dimension
*/
public static Dimension max(final Component... components){
Dimension max=components.length > 0 ? components[0].getPreferredSize() : new Dimension(0,0);
for (int i=1; i <... | true |
9105083abc0eb100f952dc1b3a975ada75c410a4 | Java | hulixia1992/lixia.hu | /HuLixia/app/src/main/java/com/example/drum/hulixia/util/image_cache/LocalCacheUtils.java | UTF-8 | 1,784 | 2.40625 | 2 | [] | no_license | package com.example.drum.hulixia.util.image_cache;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
/**
* Created ... | true |
2cd4d86b78a412b543dc22754271a4a382f1a25e | Java | yxjme/LoadImageDemo | /app/src/main/java/com/deringmobile/jbh/loadimagedemo/loadimage/LoadImageManager.java | UTF-8 | 3,469 | 2 | 2 | [] | no_license | package com.deringmobile.jbh.loadimagedemo.loadimage;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.support.annotation.Nullable;
import android.util.DisplayMetrics;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.b... | true |
8c68cca4d6771c689558c5c396212683b376c9b7 | Java | galaxyfeeder/Beaconfy-Android | /Beacons/src/com/tomorrowdev/beacons/MM.java | UTF-8 | 1,216 | 3.390625 | 3 | [] | no_license | package com.tomorrowdev.beacons;
public class MM {
int minor, major;
private int deathCount = 0;
double distance;
public MM(int major, int minor) {
this.minor = minor;
this.major = major;
}
public MM(int major, int minor, double distance) {
this.minor = minor;
this.major = major;
this.distance = d... | true |
813552c17173ce569505fdd29302ddd84c1fb73d | Java | zgs17951/RubiksCubeSolver-2 | /src/solver/CaptureButton.java | UTF-8 | 730 | 2.78125 | 3 | [] | no_license | package solver;
import android.content.Context;
import android.view.View;
import android.widget.Button;
/**
* CaptureButton class so that perhaps one day, the bulk of its code won't be in the SolverActivity
* @author Andy Zhang
*/
public class CaptureButton extends Button{
private int face = 0;
/**
* Initia... | true |
9c8e51414f4041a7633426e7df544a09b078c861 | Java | bellmit/MSFM | /client/Java/translator/com/cboe/consumers/callback/OrderStatusConsumerFactory.java | UTF-8 | 1,556 | 2.21875 | 2 | [] | no_license | package com.cboe.consumers.callback;
import com.cboe.application.shared.*;
import com.cboe.util.*;
import com.cboe.util.event.*;
import com.cboe.delegates.callback.*;
import com.cboe.interfaces.callback.*;
import com.cboe.idl.cmiCallback.*;
import com.cboe.presentation.common.logging.GUILoggerHome;
/**
* Factory us... | true |
ef6a3730c3274711e23c1bde1202a3acdd36709a | Java | oliveira-sidnei/sohs3411 | /ess/src/main/java/br/com/ins/bean/GeraBoletoBean.java | UTF-8 | 4,679 | 1.929688 | 2 | [] | no_license | package br.com.ins.bean;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.face... | true |
3487b391251df53a76b4b7db2278bb73443ce35b | Java | sunilkumarg1986/HackerRank | /Java/Challenges/Cracking_the_coding_interview/Sorting_Comparator/Checker.java | UTF-8 | 969 | 4.03125 | 4 | [] | no_license | /*
Comparators are used to compare two objects. In this challenge, you'll create a comparator and use it to sort an array.
The Player class is provided in the editor below; it has two fields:
A string, .
An integer, .
Given an array of Player objects, write a comparator that sorts them in order of decreasing s... | true |
6945ab906944ff864a245ddc6c061f28f464128a | Java | Mefi100feLL/Sales | /app/src/main/java/com/PopCorp/Sales/Activities/LoginActivity.java | UTF-8 | 5,685 | 1.984375 | 2 | [] | no_license | package com.PopCorp.Sales.Activities;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditTex... | true |
89ccf3423c981010ef148a50a18927a5068ff68f | Java | AY1920S2-CS2103T-F10-3/main | /src/main/java/seedu/nova/model/schedule/Day.java | UTF-8 | 5,263 | 3.125 | 3 | [
"MIT"
] | permissive | package seedu.nova.model.schedule;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import seedu.nova.model.schedule.event.Event;
import seedu.nova.model.schedule.event.Lesson;
import seedu.nova.model.schedule.event.WeakEvent;
im... | true |
e5382fe066744cb5ba9313ac9799fcb7e08f6637 | Java | xMlex/l2walker | /java/fw/connection/login/clientpackets/RequestServerLogin.java | UTF-8 | 315 | 1.773438 | 2 | [] | no_license | package fw.connection.login.clientpackets;
public class RequestServerLogin extends LoginClientPacket {
@Override
public void excecute() {
writeC(0x02);
writeD(getClient().geLoginOk()[0]);
writeD(getClient().geLoginOk()[1]);
writeC(getClient().getServerId());
writeB(new byte[14]);
}
}
| true |
cb275030dd60ed0920a8cbe5dac9edbfab18f1b9 | Java | xbkaishui/common-web | /src/main/java/cn/gniic/common/mybatisplus/MybatisPlusSqlInjector.java | UTF-8 | 1,707 | 2.078125 | 2 | [] | no_license | package cn.gniic.common.mybatisplus;
import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.AbstractSqlInjector;
import com.baomidou.mybatisplus.core.injector.methods.Delete;
import com.baomidou.mybatisplus.core.injector.methods.DeleteById;
import com.baomidou.mybat... | true |
b5f3444ff898688174af26f1df871c5fde4aeb1d | Java | pietrobraione/sushi | /master/src/main/java/sushi/execution/minimizer/MinimizerProblemFactory.java | UTF-8 | 6,422 | 2.8125 | 3 | [] | no_license | package sushi.execution.minimizer;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Files;
import java.util.List;
import java.util.TreeSet;
import sushi.exceptions.TerminationException;
abstract class MinimizerProblemFactory<P extends MinimizerProblem> {
/** The parameters. */
protec... | true |
10dbc9fce96f18769506885c83c3ffca873215be | Java | naveenkumarsahu1/QuizApp3 | /app/src/main/java/com/example/quiz_app/Home_Page.java | UTF-8 | 1,788 | 2.21875 | 2 | [] | no_license | package com.example.quiz_app;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
public class Home_Page extends Activity {
ImageView img_technical,img_apt... | true |
c0257819645153a3f73f43ed1563ea33836ac32f | Java | hee4245/Parking | /app/src/main/java/com/bug/parking/camera/MyCamera.java | UTF-8 | 6,428 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.bug.parking.camera;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.graphics.Point;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.ha... | true |
bb9b53d749359511199bb0f329fe7bea93404e56 | Java | mobends/MoBends | /src/main/java/goblinbob/mobends/core/animation/controller/IAnimationController.java | UTF-8 | 519 | 2.34375 | 2 | [
"MIT"
] | permissive | package goblinbob.mobends.core.animation.controller;
import goblinbob.mobends.core.data.EntityData;
import javax.annotation.Nullable;
import java.util.Collection;
/*
* This interface is responsible for updating animation for each
* instance of an AnimatedEntity.
*
* It's a member of an EntityData instance, and ... | true |
7961107de6b1a048be16d35bb2362f2449139405 | Java | bewithme/dl4j-zoo-modelx-model | /src/main/java/org/freeware/dl4j/modelx/utils/ExtendedFileUtils.java | UTF-8 | 1,282 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package org.freeware.dl4j.modelx.utils;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
public class ExtendedFileUtils extends FileUtils{
public static void makeDirs(String dirs){
Fi... | true |
131237fde4b164387dcef33abd183dafa9fac08c | Java | GuoxinL/spring-boot-demo | /spring-demo-aop/src/main/java/pub/guoxin/aop/aspect/TestAspect.java | UTF-8 | 996 | 2.140625 | 2 | [] | no_license | package pub.guoxin.aop.aspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import pub.guo... | true |
f8c19531cf8838538a2dacc9a170cd5832ff6a26 | Java | vexsnare/javaprog | /src/main/java/designpatterns/Singleton/App.java | UTF-8 | 237 | 2.390625 | 2 | [] | no_license | package designpatterns.Singleton;
/**
* Created by vinaysaini on 11/14/16.
*/
public class App {
public static void main(String[] args) {
Singleton singleton = Singleton.getInstance();
singleton.display();
}
}
| true |
7f956597306cdaa81de2ca92693de82e910cb8b4 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_fb9f219bdd47a4ce430abddfbc4ced15e714ca35/PropertiesConfiguration/2_fb9f219bdd47a4ce430abddfbc4ced15e714ca35_PropertiesConfiguration_s.java | UTF-8 | 6,628 | 2.421875 | 2 | [] | no_license | // $Id$
/*
* Copyright 2004 The Apache Software Foundation
*
* 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 re... | true |
fb519b5a1303775adb3af56e541811f939cf8a4b | Java | ronsalas/bischeck | /src/main/java/com/ingby/socbox/bischeck/jepext/AverageMad.java | UTF-8 | 4,084 | 2.828125 | 3 | [] | no_license | /*
#
# Copyright (C) 2010-2012 Anders Håål, Ingenjorsbyn AB
#
# 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 of the License, or
# (at your option) any later version.
#
# This p... | true |
1d4f2d36614b7e529b0937ed1bb5a2221b783d59 | Java | KrasuckiD/antyklegro | /src/main/java/com/controller/UserAccountControllerImpl.java | UTF-8 | 1,474 | 2.34375 | 2 | [] | no_license | package com.controller;
import com.domain.UserAccount;
import com.dto.UserDto;
import com.exeption.IncorrectPasswordOrEmailException;
import com.exeption.UserAlreadyExistException;
import com.service.UserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.Resp... | true |
5654b16279dd5958f5498af8181b86eb5d23dbc2 | Java | rayferric/comet | /comet-core/src/main/java/com/rayferric/comet/core/scenegraph/resource/video/texture/ImageTexture.java | UTF-8 | 3,338 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.rayferric.comet.core.scenegraph.resource.video.texture;
import com.rayferric.comet.core.engine.Engine;
import com.rayferric.comet.core.math.Vector2i;
import com.rayferric.comet.core.video.recipe.texture.Texture2DRecipe;
import com.rayferric.comet.core.util.ResourceLoader;
import com.rayferric.comet.core.vi... | true |
753eecc7abfdf6a6086c15142cdb28393d46b514 | Java | vip96300/finance-parent | /finance-common/src/main/java/com/rw/finance/common/pass/eynon/MessageDigest.java | UTF-8 | 1,759 | 2.5 | 2 | [] | no_license | package com.rw.finance.common.pass.eynon;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.rw.finance.common.pass.eynon.utils.Digest;
public class MessageDigest implements Digest {
private static final Logger log = LoggerFactory.getLogger(MessageDigest.class);
private String algorithm;
... | true |
2afdc81d5e125b93b5986a72e9a8d5ed598fa03e | Java | luxurymask/recommendation.clustering | /src/clustering/TimeTreeNodeClusteror.java | UTF-8 | 4,201 | 2.640625 | 3 | [] | no_license | package clustering;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
impo... | true |
bb97e030ccc9648825f04cd167cbf8573e034579 | Java | Stringxukang/repositoryidea | /day07/src/com/heima_09/Quadrangle.java | UTF-8 | 124 | 1.554688 | 2 | [] | no_license | package com.heima_09;
public class Quadrangle {
public static void draw(Quadrangle q){
//somesentence
}
}
| true |
f16c1f366d923b83e83b7c1351c29236d471e54a | Java | creative-active-technology/entity-service-hrm | /entity-service-hrm/entity-service-hrm/src/main/java/com/inkubator/hrm/dao/impl/PositionDaoImpl.java | UTF-8 | 4,506 | 1.960938 | 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.inkubator.hrm.dao.impl;
import com.inkubator.datacore.dao.impl.IDAOImpl;
import com.inkubator.hrm.dao.PositionDao;... | true |
1f8368996dffbc02c7b75e99cb3ca8622919c874 | Java | nguyendinhthuan789/LazadaSite | /LzaProject_DataDriven/src/UI_Map/UI_SearchPage.java | UTF-8 | 1,227 | 2.09375 | 2 | [] | no_license | package UI_Map;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class UI_SearchPage {
public UI_SearchPage(WebDriver driver) {
// TODO Auto-generated constructor stub
PageFactory.initE... | true |
e8926762c33c7cf8ae78756988154eb49f51d54d | Java | BartoszNowacki/PopularMovies | /app/src/main/java/com/example/rewan/ui/detail/DetailPresenter.java | UTF-8 | 5,582 | 2.046875 | 2 | [] | no_license | package com.example.rewan.ui.detail;
import android.content.IntentFilter;
import android.database.Cursor;
import android.support.annotation.NonNull;
import android.util.Log;
import com.example.rewan.R;
import com.example.rewan.base.BasePresenter;
import com.example.rewan.model.Movie;
import com.example.rewan.model.R... | true |
3711ea229c4cd32de907cfe49f40b916bb088ae6 | Java | fuzhen5/dsAlgo | /src/main/java/com/gbase/dsAlgo/sort/QuickSort3Ways.java | UTF-8 | 1,545 | 3.5 | 4 | [] | no_license | package com.gbase.dsAlgo.sort;
import java.util.Random;
import com.gbase.dsAlgo.util.SortUtil;
/**
* 三路快速排序
* @author wangf
*
*/
public class QuickSort3Ways {
public static void main(String[] args) {
int n = 1000000;
Integer[] arr = SortUtil.generateRandomArray(n, 0, 100);
Integer[] arr1 = arr.clone();
... | true |
38068e0192c7e066ce1448204837df2bd0b50b5a | Java | 497022407/Haoyu-Wang-s-university-assignments-Svn-repository- | /fcs/week-03/practical-03/Problem05/Problem05.java | UTF-8 | 1,590 | 3.71875 | 4 | [] | no_license | // student ID: a1785394
// student name: Haoyu Wang
// calculate determinant of matrix
import java.util.*;
public class Problem05{ //declare calss
public static void main(String[] args){ //declare function main
int dimension, result = 0; //declare int variable
// create Scanner object
Scanner input = n... | true |
e3eff672e0c4892cebf7d5aadc5571cf1020ebff | Java | s2iwi2s/fasttrackd-student-work | /spring-assessment-social-media-optimize-prime/src/main/java/com/cooksys/assessment/socialmedia/mappers/UserMapper.java | UTF-8 | 879 | 2.046875 | 2 | [] | no_license | package com.cooksys.assessment.socialmedia.mappers;
import java.util.Set;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import com.cooksys.assessment.socialmedia.dtos.ProfileDto;
import com.cooksys.assessment.socialmedia.dtos.UserRequestDto;
import com.cooksys.assessment.socialmedia.dtos.UserResponseDto... | true |
7bb9130cf30bf008cef5e7ddba142e3bfa9e6470 | Java | luocaca/TestGitHub | /app/src/main/java/net/fengg/app/lcb/adapter/ProductAdapter.java | UTF-8 | 5,349 | 2.109375 | 2 | [] | no_license | package net.fengg.app.lcb.adapter;
import java.util.ArrayList;
import java.util.List;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
i... | true |
e5d9dab54e8806d054ca2c4fdd1968ce06d88bfd | Java | youyuge34/ACM_Personal_Training | /2-2/src/hanxin.java | UTF-8 | 609 | 2.9375 | 3 | [] | no_license | import java.io.FileInputStream;
import java.util.Scanner;
public class hanxin {
public static void main(String[] args) {
int count=0;
int i;
Scanner in=new Scanner(System.in);
try{in=new Scanner(new FileInputStream("data.in"));}catch(Exception e){}
while (in.hasNext()){
int a = in.nextInt();
int b =... | true |
2abddfb990ca8e8ee6ca696f80dfdc1384fe8d01 | Java | cz67998/datastructure | /src/main/java/com/wangzhou/datastructure/stack/solution/LetterSolution.java | UTF-8 | 2,048 | 3.625 | 4 | [] | no_license | package com.wangzhou.datastructure.stack.solution;
import com.wangzhou.datastructure.stack.ArrayStack;
import java.util.Objects;
import java.util.Stack;
/**
* Created by IDEA
* author:wangzhou
* Date:2019/4/15
* Time:8:59
**/
public class LetterSolution {
private Stack stack;
public boolean isVaild(St... | true |
01567b0d68ce731e42f9a7101b0173352b52a6d4 | Java | mengtiancheng/zot-team-jxing | /src/com/zot/xing/dao/subscribe/WorkOrderAS.java | UTF-8 | 1,603 | 2.234375 | 2 | [] | no_license | /**
* 服务预定接口
*/
package com.zot.xing.dao.subscribe;
import java.util.Date;
import java.util.List;
/**
* @author jack
*
*/
public interface WorkOrderAS {
/**
* 增加一个 新订单
* @param workOrder
*/
public void addPreSubscribeService(XingWorkOrderBO workOrder);
/**
* 订单状态变更为服务中
*/
... | true |
6d41290af664021870846858ee3ede0441c43426 | Java | antoniovazquezaraujo/AEDI | /AED1y2/src/aed1/ejercicios/ContarIntervalos.java | UTF-8 | 1,143 | 3.84375 | 4 | [] | no_license | package aed1.ejercicios;
public class ContarIntervalos {
public static int menoresA(int min, int datos[]) {
for (int n = 0; n < datos.length; n++) {
if (datos[n] >= min) {
return n;
}
}
return datos.length;
}
public static int mayoresA(int max, int datos[]) {
for (int n = 0; n < dato... | true |
95f51b1cb351adb13bc207002ec61a10797bfcb6 | Java | ZoneMo/com.tencent.mm | /src/com/tencent/mm/app/plugin/URISpanHandlerSet$EmotionStoreUriSpanHandler.java | UTF-8 | 1,622 | 1.539063 | 2 | [] | no_license | package com.tencent.mm.app.plugin;
import android.content.Intent;
import android.os.Bundle;
import com.tencent.mm.aj.c;
import com.tencent.mm.pluginsdk.n;
import com.tencent.mm.pluginsdk.ui.applet.ah;
import com.tencent.mm.pluginsdk.ui.d.f;
@URISpanHandlerSet.a
class URISpanHandlerSet$EmotionStoreUriSpanHandler
ext... | true |
23073ccfeba0c16509fc21d8e979b3475d7bf0b7 | Java | CunDeveloper/AlumniGroupService | /school-friend-service-webapp/src/main/java/com/nju/edu/cn/software/domain/AlumniQuestion.java | UTF-8 | 1,880 | 2.265625 | 2 | [] | no_license | package com.nju.edu.cn.software.domain;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nju.edu.cn.software.entity.AuthorInfo;
public class AlumniQuestion extends BaseEntity {
private String problem;
private String description;
private String img... | true |
92473a5e2b9c134a48ec8dcf2dae74cbb91d4129 | Java | Supzle/lab3_1 | /TestSystem/src/Control/Display.java | UTF-8 | 1,417 | 2.859375 | 3 | [] | no_license | package Control;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import View.ComandView;
public class Display {
ComandView CV;
Frame frame=new Frame("display");
JButton[] btn = new JButton[13];
void clsvis(int s, int t) {
for (int i = s; i < t; ... | true |
9b27a6445ac47378c564baafef34170baec0a072 | Java | yangyuqi/android_hxd | /app/src/main/java/com/zhejiang/haoxiadan/model/requestData/in/LuceneListData.java | UTF-8 | 3,714 | 1.796875 | 2 | [] | no_license | package com.zhejiang.haoxiadan.model.requestData.in;
/**
* Created by KK on 2017/9/13.
*/
public class LuceneListData {
private long vo_id;// 是 String
private String vo_title;// 是 String
private String vo_type;// 搜索属性 否 String
private String vo_storeId;// 商家ID 否 String
private int vo_goods_sale... | true |
6b3cf79e9d7ef566ba5c6eca919cd047a873f2d5 | Java | REBOOTERS/DoraemonKit | /Android/java/doraemonkit/src/main/java/com/didichuxing/doraemonkit/widget/tableview/format/FastTextDrawFormat.java | UTF-8 | 1,929 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.didichuxing.doraemonkit.widget.tableview.format;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import com.didichuxing.doraemonkit.widget.tableview.bean.Column;
import com.didichuxing.doraemonkit.widget.tableview.utils.DrawUtils;
import com.didichuxing.doraemo... | true |