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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c390b5314d2dd3e9805e40ac2f6fe9a637c1be24 | Java | annyl/rl_game | /core/src/ru/hse/checker/model/Checker.java | UTF-8 | 612 | 3.234375 | 3 | [] | no_license | package ru.hse.checker.model;
public class Checker {
public enum Type {
WHITE, BLACK
}
public final Type type;
private boolean isQueen;
private Cell cell;
public Checker(Type type, Cell cell) {
this.type = type;
this.cell = cell;
}
public void upToQueen() {
... | true |
f42a18f975c3967bca63049dd40bfef14eb25198 | Java | efortney/CSC406-Banking | /src/test/java/PersonTest.java | UTF-8 | 894 | 3.125 | 3 | [] | no_license | import org.junit.Test;
import static org.junit.Assert.*;
public class PersonTest {
private Person testPerson = new Person("Joe","Schmoe",123123123,64454,"123 Rochester Lane","Saint Joseph", "MO");
@Test
public void fullAddressTest() throws Exception {
assertEquals("123 Rochester Lane, Saint Jose... | true |
464b8eed80c92eb85399c2a898ba5c907237f42c | Java | javipichu/boletin-2 | /boletin2_4/src/boletin2_4/Boletin2_4.java | UTF-8 | 1,215 | 3.21875 | 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 boletin2_4;
import java.util.Scanner;
/**
*
* @author jalvarezotero
*/
public class Boletin2_4 {
/**
* @param ar... | true |
f95c10e29d4a43bdcd0ec48eab3fcf2a43e49763 | Java | timyi1212/dbcpConnectZk | /src/com/eproe/monitor/was/model/WLSServer.java | UTF-8 | 2,182 | 2.03125 | 2 | [] | no_license | package com.eproe.monitor.was.model;
import java.util.Date;
public class WLSServer
{
private Integer id;
private String creator;
private String modifier;
private Date createTime;
private Date updatedTime;
private String isDeleted;
private String ipAddr;
private String port... | true |
d8e3073e6b9d2ec599cdab377aa48c04ddf8224f | Java | tanmai-h/IT-LAB | /sem3/pop/lab1/selection.java | UTF-8 | 561 | 3.40625 | 3 | [] | no_license | import java.util.Scanner;
public class selection{
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter n");
int n = sc.nextInt();
int [] a = new int[n];
for(int i = 0; i < n; i++) {
a[i] = sc.nextInt();
}
for(int i = 0; i < n... | true |
05dd4155884879e246703800e64e48adb45a3454 | Java | samfdl/MyApplication | /app/src/main/java/com/samfdl/ui/toast/Notification1.java | UTF-8 | 2,508 | 2.171875 | 2 | [] | no_license | package com.samfdl.ui.toast;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.samfdl.R;
publ... | true |
7a6c2582d8962dc51396f15c4a9bf63f013c47bd | Java | mokhtaris11/SWEProject | /src/business/EntityPair.java | UTF-8 | 502 | 2.546875 | 3 | [] | no_license | package business;
/**
* stores old values and new values for an entity class used by rules
*
* pcorazza
*
*/
public class EntityPair {
private Object entityNewVals;
private Object entityOldVals;
public EntityPair(Object entityNew, Object entityOld) {
entityNewVals = entityNew;
entit... | true |
ec7db5f3abb400081aaa996aca1438b0ebd6dfb7 | Java | Limy-901/With_My_Pet_final | /src/main/java/pet/shop/domain/ProductVo.java | UTF-8 | 377 | 2.078125 | 2 | [] | no_license | package pet.shop.domain;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
public class ProductVo {
String catgo;
String keyword;
private int cp;
private int ps;
{
cp=1;
ps=5;
}
public int getStartRow() {
return (cp-1) * ps;
... | true |
cd9b2048472c730d191891ce3c4edfe1173b9107 | Java | jefrsilva/sat | /src/main/java/br/com/caelum/sat/filtro/MorphologyFiltro.java | UTF-8 | 1,009 | 2.765625 | 3 | [] | no_license | package br.com.caelum.sat.filtro;
import static org.bytedeco.javacpp.opencv_imgproc.*;
import org.bytedeco.javacpp.opencv_core.Mat;
import org.bytedeco.javacpp.opencv_core.Size;
public class MorphologyFiltro extends Filtro<Mat, Mat> {
public enum Operacao {
OPEN, CLOSE, ERODE, DILATE;
}
private Mat output;
p... | true |
347f3a282a66ce998064af3f80e4a1734e8302d1 | Java | xmashka/GoIt | /module3/zadacha2/Flower.java | UTF-8 | 497 | 2.9375 | 3 | [] | no_license | package module3.zadacha2;
abstract public class Flower implements FlowerInterface {
String nameFlower;
Integer numberPetal;
public String getNameFlower() {
return nameFlower;
}
public void setNameFlower(String nameFlower) {
this.nameFlower = nameFlower;
}
pu... | true |
c23ee3b3861faa7b96770db715fcafec8f71fdcd | Java | mikejyg/smecli | /src/main/java/mikejyg/smecli/CmdReturnType.java | UTF-8 | 3,067 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | package mikejyg.smecli;
import java.nio.ByteBuffer;
import mikejyg.socket.ByteBufferAccumulator;
/**
* this class is to wrap the 2 return values.
* @author jgu
*
*/
public class CmdReturnType {
/**
* the enumeration of return code is used by the calling party to
* decide the next action.
* @author jgu... | true |
241621e7b5c39fa77e8fb1d00d5bf3998c5bee50 | Java | SimGenius/XWTTravel | /app/src/main/java/com/wt/xwttravel/adapter/DetailPagerAdapter.java | UTF-8 | 1,790 | 2.21875 | 2 | [] | no_license | package com.wt.xwttravel.adapter;
import android.content.Context;
import android.net.Uri;
import android.support.v4.view.PagerAdapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.facebook.drawee.view.SimpleDraweeView;
import ... | true |
93354b47f7439068c68efe32592225d77c835e18 | Java | MuhammadRizqiPanji/praxis-academy | /novice/01-04/latihan/src/main/java/latihan/PaketCombo1.java | UTF-8 | 255 | 1.953125 | 2 | [] | no_license | package latihan;
public class PaketCombo1 extends Kfc {
@Override
public int PaketCombo1() {
System.out.println("Pesanan kamu " + super.PaketCombo1Desc());
System.out.println("Rp. ");
return super.PaketCombo1() ;
}
}
| true |
983e8761f42b41a5a80e55cb3e3d1360251a3266 | Java | Jdruwe/k8s-scrum | /k8s-product-owner/src/main/java/be/jeroendruwe/k8s/productowner/controller/SprintController.java | UTF-8 | 875 | 2.015625 | 2 | [] | no_license | package be.jeroendruwe.k8s.productowner.controller;
import be.jeroendruwe.k8s.productowner.model.DeveloperResponse;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotatio... | true |
0d8732d939a8ec51fb75697e9ad508443a433f19 | Java | darshilkhuntdk/AndroidLabs | /app/src/main/java/com/cst2355/khun0008/Message.java | UTF-8 | 686 | 2.78125 | 3 | [] | no_license | package com.cst2355.khun0008;
public class Message {
protected String message;
protected int isSendOrRecieve;
protected long id;
/**Constructor:*/
public Message(String m, int isr, long i)
{
message = m;
isSendOrRecieve = isr;
id = i;
}
public void update(Strin... | true |
58a9dfc6e91f6b22e3eaf58cf869ffc5eadd2f2b | Java | chasan23/cabtest | /src/main/java/com/cabtest/agent/AssignmentAgent.java | UTF-8 | 5,340 | 2.515625 | 3 | [] | no_license | package com.cabtest.agent;
import com.cabtest.bean.SMSMessage;
import com.cabtest.bean.TimeSlot;
import com.cabtest.model.Assignment;
import com.cabtest.model.Booking;
import com.cabtest.model.DriverVehicle;
import com.cabtest.model.Location;
import com.cabtest.service.AssignmentService;
import com.cabtest.service.Boo... | true |
9431f30ca64ffa5a7af867c0f1a7c04efcf0c7e0 | Java | ytqandrew/RecyclerViewTools | /extras/src/main/java/com/eyeem/recyclerviewtools/extras/PicassoOnScrollListener.java | UTF-8 | 1,182 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.eyeem.recyclerviewtools.extras;
import android.support.v7.widget.RecyclerView;
import com.squareup.picasso.Picasso;
/**
* Created by budius on 13.04.15.
* <p/>
* RecyclerView.OnScrollListener to control Picasso pauseTag/resumeTag interactions
*/
public class PicassoOnScrollListener extends RecyclerVi... | true |
3df23968bc979f0bcda53da94a54251dd7887782 | Java | verbeekgerard/evoluting-life-java | /src/main/java/eu/luminis/robots/pi/PiSensor.java | UTF-8 | 2,273 | 2.78125 | 3 | [] | no_license | package eu.luminis.robots.pi;
import com.pi4j.io.gpio.*;
import eu.luminis.robots.pi.util.Sensor;
import java.util.concurrent.*;
public class PiSensor extends Sensor<Double> {
private static final int SPEEDOFSOUND_CM_S = 34029;
private final GpioPinDigitalOutput trigger;
private final GpioPinDigitalInpu... | true |
9f7d579fb9f9a0f638f267630250aaf590c8f664 | Java | maple00/ChestnutCustom | /app/src/main/java/com/rainwood/chestnut/ui/adapter/MessageListAdapter.java | UTF-8 | 3,172 | 2.40625 | 2 | [] | no_license | package com.rainwood.chestnut.ui.adapter;
import android.content.Context;
import android.text.Layout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.rainwood.... | true |
0b897dc36cab067aa6168961a1dfb1bfea4fa358 | Java | Siril-O/TransportSystemProject | /TransportSystem/src/ua/kpi/epam/transport/dao/StopDao.java | UTF-8 | 667 | 2.328125 | 2 | [] | no_license | package ua.kpi.epam.transport.dao;
import java.util.List;
import ua.kpi.epam.transport.entities.Route;
import ua.kpi.epam.transport.entities.Stop;
/**
*
* @author KIRIL
*/
public interface StopDao {
/**
*
* @param stop
*/
void create(Stop stop);
/**
*
* @param id
* @ret... | true |
84d9679b8ca5fb7509077b5fd9e7abdd919f9932 | Java | subhashjha35/cloudbreak | /core/src/main/java/com/sequenceiq/cloudbreak/reactor/api/event/resource/MountDisksOnNewHostsResult.java | UTF-8 | 463 | 1.601563 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0"
] | permissive | package com.sequenceiq.cloudbreak.reactor.api.event.resource;
public class MountDisksOnNewHostsResult extends AbstractClusterBootstrapResult<MountDisksOnNewHostsRequest> {
public MountDisksOnNewHostsResult(MountDisksOnNewHostsRequest request) {
super(request);
}
public MountDisksOnNewHostsResult(S... | true |
776dfcdbaec57004be9427c18391b4fdc2b9600d | Java | cytoscape/aMatReader | /src/main/java/org/cytoscape/aMatReader/internal/tasks/FileChooserTask.java | UTF-8 | 2,758 | 2.65625 | 3 | [] | no_license | package org.cytoscape.aMatReader.internal.tasks;
import java.io.File;
import javax.swing.BorderFactory;
import javax.swing.JFileChooser;
import javax.swing.SwingUtilities;
import javax.swing.filechooser.FileFilter;
import org.cytoscape.aMatReader.internal.ResourceManager;
import org.cytoscape.work.AbstractTask;
impo... | true |
9e934be2d7d51071ee283dfc6156f9615ac72039 | Java | JetBrains/intellij-community | /plugins/rareJavaRefactorings/src/com/intellij/refactoring/tempWithQuery/TempWithQueryHandler.java | UTF-8 | 8,221 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.refactoring.tempWithQuery;
import com.intellij.codeInsight.TargetElementUtil;
import com.intellij.codeInsight.highlighting.HighlightManager... | true |
d9f3a696391eff1eee9389b34e10b8a3bd30a7af | Java | chencj29/brytrms | /src/main/java/cn/net/metadata/rule/action/dist/slideCoast/SlideCoastStatusDetectingAction.java | UTF-8 | 2,941 | 2.09375 | 2 | [] | no_license | package cn.net.metadata.rule.action.dist.slideCoast;
import com.bstek.urule.model.flow.ActionNode;
import com.bstek.urule.model.flow.FlowAction;
import com.bstek.urule.model.flow.ins.FlowContext;
import com.bstek.urule.model.flow.ins.ProcessInstance;
import com.google.common.base.Joiner;
import com.google.common.base.... | true |
13d48359bdd20ddbf18b0d70b3a8abdba81ec3ab | Java | elkingiraldo/miprestamo-backend | /miprestamoapi/src/main/java/com/miprestamo/apps/miprestamoapi/services/IBankService.java | UTF-8 | 505 | 2.234375 | 2 | [] | no_license | package com.miprestamo.apps.miprestamoapi.services;
import java.util.List;
import com.miprestamo.apps.miprestamoapi.dtos.BankDTO;
/**
* Interface for handling services related to banks
*
* @author elkin.giraldo
*
*/
public interface IBankService {
/**
* This method will call all classes and methods require... | true |
1a7cfd4af427545ab9b8c4bb47805b1593b2c017 | Java | zenglx/zlx_lear | /src/com/zlx/im/activity/MainActivity.java | GB18030 | 3,912 | 2.125 | 2 | [] | no_license | package com.zlx.im.activity;
import java.util.ArrayList;
import java.util.List;
import com.example.videonetty.R;
import com.zlx.im.domain.MessageType;
import com.zlx.im.domain.Msg;
import com.zlx.im.domain.QQMessage;
import com.zlx.im.netty.MsgAdapter;
import com.zlx.im.netty.SimpleChatClientHandler;
impor... | true |
492c7fe3ae04ed8dc8567c8cec800bec3820c6ba | Java | Lukmannudin/HotelFantasi | /src/com/company/data/customerdatasource/CustomerCollection.java | UTF-8 | 248 | 2.03125 | 2 | [] | no_license | package com.company.data.customerdatasource;
import com.company.data.customerdatasource.customer.Customer;
import java.util.ArrayList;
public interface CustomerCollection {
CustomerIterator getListCustomers(ArrayList<Customer> customers);
}
| true |
9476efc979d2a6a8742978425fe04863cf079346 | Java | afdhalulhsn/mymusicplaylist | /src/main/java/com/myspotify/dao/PlaylistDao.java | UTF-8 | 1,115 | 2.265625 | 2 | [] | no_license | package com.myspotify.dao;
import java.util.List;
import javax.transaction.Transactional;
import org.springframework.stereotype.Repository;
import com.myspotify.model.Playlist;
@Repository("tb_playlist")
@Transactional
public class PlaylistDao extends BaseDao implements BaseMasterDao{
@Override
public <T> void... | true |
ef1b3b3cbd63b1a07973bba63dded3fc14d977e4 | Java | redbeanlyx/webtool_final | /EcommerceFront-master/src/main/java/com/spring/nikita/service/UserRolesService.java | UTF-8 | 236 | 1.617188 | 2 | [] | no_license | package com.spring.nikita.service;
import java.sql.SQLException;
/**
* Created by nikita on 16.09.16.
*/
public interface UserRolesService {
void addUserRole(com.spring.nikita.model.UserRoles userRoles) throws SQLException;
}
| true |
e79d0206467b8e0ce35e33551fa1a15c07ea81fa | Java | grutten/conscan | /conscan/src/main/java/com/tippingpoint/utilities/NameValuePair.java | UTF-8 | 2,564 | 3.75 | 4 | [] | no_license | package com.tippingpoint.utilities;
import org.apache.commons.lang.StringUtils;
/**
* This class holds a name/value pair.
*/
public class NameValuePair {
/** This member holds the name of the pair. */
private String m_strName;
/** This member holds the value of the pair. */
private String m_strValu... | true |
fb497c89252181c12f063b6711bf74c050c57278 | Java | bellmit/exhibition | /src/main/java/cn/org/chtf/card/manage/system/service/impl/SysReservationFrequencyServiceImpl.java | UTF-8 | 1,853 | 2.046875 | 2 | [] | no_license | package cn.org.chtf.card.manage.system.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.org.chtf.card.manage.system.dao.SysReservationFrequencyMapper;
import cn.org.chtf.card.manage.syste... | true |
e09909307cd3e3c453849deed0e8652cb62734db | Java | cfyhmyx/code_practice | /cp498_diagonal_traverse.java | UTF-8 | 2,056 | 3.234375 | 3 | [] | no_license | //description: https://leetcode.com/problems/diagonal-traverse/description/
public class Leetcode498 {
public static void main(String args[]) {
int[][] matrix = {{1,2,3},{4,5,6},{7,8,9}};
int[] result = findDiagonalOrder(matrix);
for(int i=0; i<result.length; i++) {
System.out.pr... | true |
ed3199cfc235ccb658a426f44e92d83c7a9df11d | Java | depromeet/7th-final-team10-server | /src/main/java/com/depromeet/boiledegg/notification/domain/entity/Notification.java | UTF-8 | 2,211 | 2.109375 | 2 | [] | no_license | package com.depromeet.boiledegg.notification.domain.entity;
import com.depromeet.boiledegg.common.domain.entity.base.CreateDateAuditEntity;
import com.depromeet.boiledegg.common.exception.ForbiddenException;
import com.depromeet.boiledegg.common.infrastructure.security.SessionUser;
import com.depromeet.boiledegg.notif... | true |
603a66bab9bd757b8fad53746fac3e5c0137fb8d | Java | atkins126/JavaLaboratory | /springboot-joinfaces-bootsfaces/bookmark/src/main/java/com/ezequieljuliano/bookmark/utilities/MessageSeverity.java | UTF-8 | 122 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.ezequieljuliano.bookmark.utilities;
public enum MessageSeverity {
INFO,
WARN,
ERROR,
FATAL
}
| true |
abf064e7f375db097a136e3eb5320f59d1a79d83 | Java | arvin-xiao/ranch | /ranch-user/src/main/java/org/lpw/ranch/user/type/WeixinMiniImpl.java | UTF-8 | 1,737 | 2.03125 | 2 | [
"MIT",
"Apache-2.0"
] | permissive | package org.lpw.ranch.user.type;
import com.alibaba.fastjson.JSONObject;
import org.lpw.ranch.user.UserModel;
import org.lpw.ranch.weixin.helper.WeixinHelper;
import org.lpw.tephra.ctrl.context.Request;
import org.lpw.tephra.util.Context;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
/**... | true |
93dcea26b0f82a5eaa274626c5b8b943eef84966 | Java | zzyzzyxx/User_Validation_with_CSV_File_1 | /src/com/company/Main.java | UTF-8 | 1,917 | 3.390625 | 3 | [] | no_license | package com.company;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class Main {
static String[] userData = new String[3];
static Scanner scan = new Scanner(System.in);
static User[] users = new User[4];
static String line;
st... | true |
9b2bb613ef02372711aacbd81e7905ed929b8ed0 | Java | CrownlessKing13/Probing | /chainingProbing.java | UTF-8 | 4,157 | 3.015625 | 3 | [] | no_license |
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.util.*;
public class chainingProbing {
public static Node[] llArr;
public static int tableSize;
public static int total=0;
public static int countSearch=0;
public static int countInsert=0;
... | true |
9b3d4e1c5fd92191928663c0db0078309abef639 | Java | sidmodur/cs151lab7 | /WebPageIndex.java | UTF-8 | 3,733 | 3.328125 | 3 | [] | no_license | import java.util.*;
import java.io.*;
public class WebPageIndex {
String url;
int wordCount;
RBTreeMap<String, ArrayList<Integer>> wordMap;
// WebPageIndex constructor
WebPageIndex(String url) throws IOException {
wordMap = new RBTreeMap<String, ArrayList<Integer>>();
wordCount = 0;
this.url = url;
HTML... | true |
e9e737dd1f86c73cb82a643c7ea0bdd930a4bb3d | Java | Gibado/AutoThreading | /src/main/java/com/gibado/basics/workunit/WorkUnit.java | UTF-8 | 4,376 | 2.4375 | 2 | [] | no_license | package com.gibado.basics.workunit;
import com.gibado.basics.IProcessPlant;
import com.gibado.basics.sharable.ISharable;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* This object represents a single unit of work.
*/
public abstrac... | true |
0efbfa7851405c00c585b60f13033f632a3e209d | Java | tutkuince/ocajp8 | /chapter06/_03exceptiontypes/CheckedExceptions.java | UTF-8 | 237 | 1.929688 | 2 | [] | no_license | package com.oracle.javacert.associate.chapter06._03exceptiontypes;
public class CheckedExceptions {
public static void main(String[] args) {
// FileNotFoundException -> it is a subclass of IOException
// IOException
}
}
| true |
861df9389941412509b8db7fb19a1e1b91411d2f | Java | shalk/learn-dubbo | /simple-zookeeper/src/main/java/com/xshalk/dubbo/zk/Consumer.java | UTF-8 | 582 | 2.09375 | 2 | [] | no_license | package com.xshalk.dubbo.zk;
import com.xshalk.dubbo.simple.api.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author shalk
* @since 19-5-8
*/
public class Consumer {
public static void main(String[] args) {
ClassPathXmlApplicationContext context = new Cl... | true |
e1c6991eaa6b368e10811674aebba7f0c835efeb | Java | iAashayG/FireDemo | /app/src/main/java/aashay/com/firedemo/Fact.java | UTF-8 | 2,896 | 2.015625 | 2 | [] | no_license | package aashay.com.firedemo;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.To... | true |
3da2f1fa2971edefb6851d7c9d52b759cc671f97 | Java | Tominous/LabyMod-1.9 | /ali$1.java | UTF-8 | 15 | 1.851563 | 2 | [] | no_license | class ali$1 {}
| true |
cb5448ed15fb0d180c1da8b3ddc9e2c70c063110 | Java | ivoth/Security | /app/src/main/java/cn/hzu/mobile/security/service/LocationService.java | UTF-8 | 2,242 | 2.109375 | 2 | [] | no_license | package cn.hzu.mobile.security.service;
import android.app.Service;
import android.content.Intent;
import android.location.Criteria;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.os.IBinder;
import android.... | true |
372ca054ddf4f821ccf2f819a7aa1198cbfde869 | Java | awsasif8/INGRetailBankApp | /src/main/java/com/hcl/ing/retailbank/app/service/RetailBankServiceImpl.java | UTF-8 | 347 | 1.757813 | 2 | [] | no_license | package com.hcl.ing.retailbank.app.service;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Service;
@Service
public class RetailBankServiceImpl implements RetailBankService {
private static final Logger logger=LogManager.getLogger(RetailBan... | true |
d0eef90754244b9239dc8bc774fc3c8549c9dc38 | Java | evsinev/dc-agent | /dc-agent-app/src/main/java/com/payneteasy/dcagent/admin/dao/impl/AuthDaoImpl.java | UTF-8 | 2,125 | 2.359375 | 2 | [] | no_license | package com.payneteasy.dcagent.admin.dao.impl;
import com.payneteasy.dcagent.admin.dao.IAuthDao;
import com.payneteasy.dcagent.admin.dao.model.TClient;
import com.payneteasy.dcagent.admin.dao.model.TRole;
import com.payneteasy.dcagent.admin.dao.model.TUser;
import com.payneteasy.dcagent.admin.dao.model.TAuthConfig;
im... | true |
573c8a6674f9d581a8fd1a4d94219d86cac4260c | Java | Abhivul/BackUpProj | /BackupProj/src/org/testing/Pages/Login.java | UTF-8 | 850 | 2.265625 | 2 | [] | no_license | package org.testing.Pages;
import java.util.Properties;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
public class Login{
ChromeDriver d;
Properties pr;
public Login(ChromeDriver d,Properties pr)
{
this.d=d;
this.pr=pr;
}
public void Signin(Strin... | true |
5904fdc8aa39f1c53ebcc5a3266417f00a3ab371 | Java | uk-gov-mirror/UKGovernmentBEIS.PRS-Exemptions-Register | /NdsBeisSharedModel/src/main/java/com/northgateps/nds/beis/api/beisregistration/BeisRegistrationNdsResponse.java | UTF-8 | 665 | 1.929688 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.northgateps.nds.beis.api.beisregistration;
import javax.xml.bind.annotation.XmlAccessType;
/**
* The NDS response to indicate success/failure of new user registered
*/
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlT... | true |
7cf4f674956bd803da1e0b30188e81945191e286 | Java | rechardguo/algorithm | /src/main/java/rechard/learn/algorithm/sort/SelectionSort.java | UTF-8 | 976 | 3.25 | 3 | [] | no_license | package rechard.learn.algorithm.sort;
import org.junit.Assert;
import org.junit.Test;
/**
* 选择排序
*/
public class SelectionSort {
@Test
public void check(){
for(int i=0;i<100;i++) {
int[] arr = SortUtil.generateArr(i);
int[] arr2 = SortUtil.clone(arr);
sort(a... | true |
c738f0323aa9de36ffcec05382091431ac9f328b | Java | Mahamurahti/Healthcenter-Simulator | /src/simu/Palvelupiste.java | UTF-8 | 4,121 | 2.515625 | 3 | [] | no_license | package simu;
import java.util.LinkedList;
import eduni.distributions.ContinuousGenerator;
/**
*
* Palvelupiste-luokan tarkoitus on pitää listaa asiakkaista, jotka ovat jonossa kyseiseen
* palvelupisteeseen ja palvella jonon ensimmäistä asiakasta palveluajan verran.
*
* @author Eric Keränen
* @version 1.5
*
*... | true |
6ca3a172acc224e9b48b8d24fb40b351676c1ff1 | Java | ZhiCYue/spring-boot-restful | /src/main/java/com/huami/yuezhichao/restful/config/BaseInterceptor.java | UTF-8 | 519 | 2.15625 | 2 | [] | no_license | package com.huami.yuezhichao.restful.config;
import javax.servlet.http.HttpServletResponse;
public class BaseInterceptor {
public void allowCors(HttpServletResponse response) {
response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Methods", "POST,PUT,OPT... | true |
6168695fa77772f2d8b77ad48ea88adcc5478caf | Java | wangpeng6fan/Test | /HibernateExecise/src/com/test/util/Test.java | UTF-8 | 188 | 1.929688 | 2 | [] | no_license | package com.test.util;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
double f=1234.5678;
System.out.printf("%e",f);
}
}
| true |
6e7a62e513d93101ffec6baafc7ddf189e741622 | Java | Mayeesha1/213Proj4 | /mainMenuController.java | UTF-8 | 4,548 | 2.9375 | 3 | [] | no_license | package application;
import java.util.ArrayList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.text.Text;
import javafx.stag... | true |
98cbf90c36dc60913411d1290e6a2c6c2cf4ebe2 | Java | dvberkel/persphone | /code/java/underground/src/main/java/org/effrafax/underground/web/order/overview/OrderOverviewPage.java | UTF-8 | 401 | 1.703125 | 2 | [] | no_license | package org.effrafax.underground.web.order.overview;
import org.apache.wicket.markup.html.WebPage;
import org.effrafax.underground.web.order.overview.panel.OrderOverviewPanel;
public class OrderOverviewPage extends WebPage
{
public OrderOverviewPage()
{
super();
}
@Override
protected void onInitialize()
{
... | true |
217fbb364fbaa17363205067ad9f605bdbaffb9b | Java | avatar-claro-peru/claro-selenium | /claro-selenium-sisact/src/test/java/com/test/step/definitions/LoginClaro.java | UTF-8 | 1,137 | 2.5625 | 3 | [] | no_license | package com.test.step.definitions;
import org.openqa.selenium.WebDriver;
import com.test.step.logic.Login;
import cucumber.api.DataTable;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class LoginClaro {
public WebDriver driver;
public LoginClaro() {... | true |
0e5e17a9107127113154262b5f1cf1aa6325e9b9 | Java | SmartLockGo/SmartLockGo | /app/src/main/java/com/eum/ssrgo/GetRidingList.java | UTF-8 | 769 | 2.09375 | 2 | [] | no_license | package com.eum.ssrgo;
import com.google.firebase.database.IgnoreExtraProperties;
/**
* Created by KHR on 2016-10-19.
*/
@IgnoreExtraProperties
public class GetRidingList {
public Double latitude;
public Double longitude;
public String time;
public Double getlatitude(){
return latitude;
... | true |
e71d1ebe1c11dfba8e23c4d1d414819b430f7b7a | Java | Forest1027/Logistics-Program | /bos_management/src/main/java/com/forest/bos/dao/base/WorkBillRepository.java | UTF-8 | 232 | 1.585938 | 2 | [] | no_license | package com.forest.bos.dao.base;
import org.springframework.data.jpa.repository.JpaRepository;
import com.forest.bos.domain.take_delivery.WorkBill;
public interface WorkBillRepository extends JpaRepository<WorkBill, Integer>{
}
| true |
439ec4d3222804254f1960a519cec47030041fa9 | Java | wagnervielmo/Meupeso | /app/src/main/java/net/vielmond/meupeso/dao/GraficosThread.java | UTF-8 | 8,570 | 2.25 | 2 | [] | no_license | package net.vielmond.meupeso.dao;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Color;
import android.graphics.DashPathEffect;
import android.graphics.drawable.Drawable;
import android.os.AsyncTask;
import android.support.v4.content.ContextCompa... | true |
5cb5b9a055dd4cd2f3b0132881ba03d15a44e1e6 | Java | avpatil006/Public | /src/journolDev/testThreadJoinMethod.java | MacCentralEurope | 2,251 | 3.953125 | 4 | [] | no_license | package journolDev;
/*Java thread join method can be used to pause the current thread execution
* until unless the specified thread is dead.
* There are three overloaded join functions.
* public final void join(): This java thread join method puts the current thread on wait
* until the thread on which ... | true |
df7952a4303bf250a7ef8badeeee5a7fc3042c79 | Java | jambestwick/HackWechat | /app/src/main/java/com/tencent/mm/plugin/webview/ui/tools/WebViewUI$59.java | UTF-8 | 1,311 | 2.03125 | 2 | [] | no_license | package com.tencent.mm.plugin.webview.ui.tools;
import com.tencent.mm.plugin.webview.model.y$b;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
class WebViewUI$59 implements y$b {
final /* synthetic */ WebViewUI tAv;
private Map<Integer, Integer> tBr = new HashMap();
WebViewUI... | true |
a9c4168e0c4729133820fc4ac9ed1efd0848b28a | Java | xiaoshijiu333/Premission | /src/main/java/fei/web/LoginController.java | UTF-8 | 1,894 | 2.28125 | 2 | [] | no_license | package fei.web;
import fei.model.Employee;
import fei.model.NotAdminException;
import fei.model.ResultMessage;
import fei.web.shiro.realm.EmployeeRealm;
import fei.web.shiro.token.TokenManager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.shiro.authc.Incorrect... | true |
f84ad80313db679ed714ed710dece60f26508a27 | Java | JaerenTredway/java-projects | /java-kata/EvenOdd.java | UTF-8 | 455 | 3.625 | 4 | [] | no_license | /** Example of mutual recursion */
public class EvenOdd {
public static void main(String[] args) {
System.out.println(isEven(6));
}
public static boolean isEven(int n) {
if(n == 0) {
return true;
} else {
return isOdd(n-1);
}
}
public static ... | true |
d85c17eba38bc73b2701f9e9d7ec2ce49b3cc56e | Java | zhangnengxian/GYPROJECT | /GYproject-biz-base/src/main/java/cc/dfsoft/project/biz/ifs/projectQuery/service/impl/ProjectQueryServiceImpl.java | UTF-8 | 6,398 | 1.851563 | 2 | [] | no_license | package cc.dfsoft.project.biz.ifs.projectQuery.service.impl;
import java.util.List;
import javax.annotation.Resource;
import javax.jws.WebParam;
import javax.jws.WebService;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;
import net.sf.json.util.CycleDetectionStrategy;
import org.springframework.stere... | true |
4f29ed348976166494f785433bb4c62a624a194d | Java | DevXtrfEu/catapult | /src/test/java/eu/xtrf/cat/parser/impl/CATAnalysisParserSDLTMS2017XLSXTest.java | UTF-8 | 6,450 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package eu.xtrf.cat.parser.impl;
import static eu.xtrf.cat.MatchType.ADAPTIVE_MT_BASELINE;
import static eu.xtrf.cat.MatchType.ADAPTIVE_MT_WITH_LEARNINGS;
import static eu.xtrf.cat.MatchType.CONTEXT_MATCH;
import static eu.xtrf.cat.MatchType.CROSS_FILE_REPETITIONS;
import static eu.xtrf.cat.MatchType.INTERNAL_50_74;
i... | true |
327e0b638709a6589fd4cf26fd623b62b61a8efb | Java | PawelSzeligowski1993/Udemy-Nauka-Luty2019 | /UdemyJava/src/main/java/_5_programowanieFunkcyjne/_1_programowanieFunkcyjne/Indeks.java | UTF-8 | 134 | 1.5 | 2 | [] | no_license | package _5_programowanieFunkcyjne._1_programowanieFunkcyjne;
public class Indeks {
public Indeks(String indeksNumber) {
}
}
| true |
1a7dcd5ac9fe59c112ac7cf974c958c983b09890 | Java | Anakinliu/IJCE_Projects | /CodeWars/src/kyu8/Sid.java | UTF-8 | 1,075 | 2.828125 | 3 | [] | no_license | package kyu8;
/*
https://www.codewars.com/kata/57f24e6a18e9fad8eb000296
*/
/*
AUTHOR: linux
TIME: 2019/11/11
GOOD LUCK AND NO BUG.
*/
public class Sid {
private static String[] PETAL =
new String[]{
"I love you",
"a little",
"a lot... | true |
27095467a04a6b38e13de5ca09f94bb6b7a67d55 | Java | senina-m/programming-lab-8 | /ServerProject/src/main/java/ru/senina/itmo/lab8/commands/CommandWithoutArgs.java | UTF-8 | 531 | 2.890625 | 3 | [] | no_license | package ru.senina.itmo.lab8.commands;
import ru.senina.itmo.lab8.exceptions.InvalidArgumentsException;
/**
* Command's who don't have string arguments parent
*/
public abstract class CommandWithoutArgs extends Command{
public CommandWithoutArgs(String name, String description) {
super(name, description... | true |
675865fc21f03b55ad82dbf36d1fe0699dd64f4a | Java | gspandy/frame | /分布式事务/O2OService/src/test/java/com/mtsbw/example/MybatisTest111.java | UTF-8 | 874 | 2.015625 | 2 | [] | no_license | /*
* 文件名:MybatisTest.java 版权:Copyright 2014 MetersBonwe. All Rights Reserved. 描述:TODO 修改人:Weijf 修改时间:下午1:58:52 修改内容:
*/
package com.mtsbw.example;
import mb.erp.dr.soa.vo.common.MsgVo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.s... | true |
73274495db8685f4ce47af706f802ab68f01983a | Java | apache/arrow | /java/algorithm/src/test/java/org/apache/arrow/algorithm/search/TestVectorRangeSearcher.java | UTF-8 | 6,137 | 2.421875 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause",
"ZPL-2.1",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"NTP",
"OpenSSL",
"CC-BY-4.0",
"LLVM-exception",
"Python-2.0",
"CC0-1.0",
"LicenseRef-scancode-protobuf",
"JSON",
"Zlib",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-licens... | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
9354eb7966c46bd66e1fb94524d29c39a2fa7a8e | Java | Ugur-Avsar/Bomberman | /src/exceptions/InvalidLevelFormatException.java | UTF-8 | 176 | 2.390625 | 2 | [] | no_license | package exceptions;
public class InvalidLevelFormatException extends Exception {
@Override
public String getMessage() {
return "Unvalid Format in Level-File!";
}
} | true |
2f40de21ac8bac6c19a2a045fcbf3e66e96d194e | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/jonan_ForkHub/app/src/main/java/com/github/mobile/api/service/PaginationService.java | UTF-8 | 2,282 | 1.96875 | 2 | [] | no_license | // isComment
package com.github.mobile.api.service;
import com.github.mobile.api.PageIterator;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
public abstract class isClassOrIsInterface<V> {
public static final int isVariable = isIntegerConstant;
public static final int ... | true |
d67eb08ec3f8441ed46f8957ab661893d5dc4aad | Java | domestos/localSite | /src/main/java/com/local/site/service/impl/FilledCartridgeServiceImpl.java | UTF-8 | 532 | 1.71875 | 2 | [] | no_license | package com.local.site.service.impl;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import com.local.site.dao.RepositoryDao;
import com.local.site.model.FilledCartridge;
import com.local.site.service.FilledCartridgeService;
@Service
public class FilledCartridgeService... | true |
efe6dd3e0e7eed3333f3b4bf5236b3806da9ea0e | Java | devyeony/shobu | /shobu/src/com/shobu/datasource/DataSourceManager.java | UTF-8 | 1,334 | 2.625 | 3 | [] | no_license | package com.shobu.datasource;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class DataSourceManager {
pr... | true |
eb3f8be431117a747f25abe85d6a814a4eb26b24 | Java | hialmar/coursJava | /src/cours/p4objets/P4Tableaux.java | UTF-8 | 1,341 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | package cours.p4objets;
public class P4Tableaux {
public static void main(String[] args) {
// tableaux
// attention il faut créer les "cases" du tableau en utilisant l'opérateur new
int [] tabEntiers = new int[3];
// les tableaux fonctionnent un peu comme des objets et ont un attribut length
// qui stocke ... | true |
fea100e75f619097bd0fda5afbf0a861e4c808be | Java | RobertFischer/tomcat8-redis-sessions | /src/main/java/com/webonise/tomcat8/redisession/RedisSessionManager.java | UTF-8 | 32,695 | 2.296875 | 2 | [
"Unlicense"
] | permissive | package com.webonise.tomcat8.redisession;
import com.webonise.tomcat8.redisession.redisclient.BooleanConverter;
import com.webonise.tomcat8.redisession.redisclient.Redis;
import org.apache.catalina.*;
import org.apache.catalina.util.StandardSessionIdGenerator;
import org.apache.juli.logging.Log;
import org.apache.juli... | true |
8017041c69c372feb846d32ada42cf9e519a0509 | Java | nosmoon/misdevteam | /src/chosun/ciis/mt/etccar/ds/MT_ETCCAR_2000_LDataSet.java | UHC | 4,434 | 2 | 2 | [] | no_license | /***************************************************************************************************
* ϸ : .java
* : ڿ-û
* ۼ : 2007-05-22
* ۼ : 뼷
***************************************************************************************************/
/*****************************************************************... | true |
ed7489f1b94e1e4cde96c7409fce9fb0f2b39ac2 | Java | JKAK47/batch-parent | /batch-common/src/main/java/common/TaskExecutor.java | UTF-8 | 748 | 2.734375 | 3 | [] | no_license | package common;
import java.util.concurrent.Callable;
import java.util.concurrent.Future;
/**
* @Package: common <br/>
* @Description: 线程池任务执行接口 <br/>
* @author: PengRong <br/>
* @Date: Created in 2017/12/25 12:27 <br/>
* @Company: PLCC <br/>
* @Copyright: Copyright (c) 2017 <br/>
* @Version: 1.0 <br/>
* @Mod... | true |
57817260427584ecfa7207d016360929cb2dc3aa | Java | funcas/pboot | /src/main/java/com/funcas/pboot/module/sys/service/impl/SystemAuditServiceImpl.java | UTF-8 | 1,524 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.funcas.pboot.module.sys.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.funcas.pboot.common.PageRequest;
import com.funcas.pboot.module.sys.en... | true |
94bf3e2150aaeed054b6b1685feb022d1a06521e | Java | mkl34367803/bboo2014 | /bboo/services/com/smart/oo/service/imp/DropFileServiceImpl.java | UTF-8 | 1,783 | 2 | 2 | [] | no_license | package com.smart.oo.service.imp;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.smart.comm.entity.DropFileEntity;
import com.smart.framework.base.Page;
import com.smart.oo.d... | true |
2a22913290464d0199f618c221ebb62a72df03da | Java | OneToOneBillion/GKD | /app/src/main/java/cn/edu/tongji/sse/twitch/gkd/presenter/TrackPresenter/ITrackPresenter.java | UTF-8 | 333 | 1.59375 | 2 | [] | no_license | package cn.edu.tongji.sse.twitch.gkd.presenter.TrackPresenter;
import com.amap.api.track.query.entity.Point;
import java.util.List;
public interface ITrackPresenter {
void startRun();//开始运动
void pauseRun();//暂停运动
void stopRun(); //停止
void startService();//开启服务
long getTrackId();
}
| true |
d5621acf23beec19bdcb717b3509583ba67b42bd | Java | wolfchinaliu/gameCenter | /jwx/.svn/pristine/43/438f9c7d116bf87879fe3658e1b9621d0f6fde6d.svn-base | UTF-8 | 852 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package weixin.tenant.service;
import org.jeecgframework.core.common.service.CommonService;
import weixin.tenant.entity.WeixinAdminEntity;
import java.io.Serializable;
/**
* Created by aa on 2015/12/17.
*/
public interface WeixinAdminServiceI extends CommonService {
public <T> void delete(T entity);
publi... | true |
9da0a68d7ed0aa1b8a70bbbaefb0179304383c20 | Java | mingyuan1031/microservicecloud-config | /trunk/src/main/java/com/lwxf/newstore/webapp/facade/goods/impl/GoodsCommentFacadeImpl.java | UTF-8 | 15,604 | 1.507813 | 2 | [] | no_license | package com.lwxf.newstore.webapp.facade.goods.impl;
import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.*;
import com.lwxf.commons.utils.DateUtil;
import com.lwxf.newstore.webapp.bizservice.company.CompanyService;
import com.lwxf.newstore.webapp.bizservice.goods.GoodsExtendService;
... | true |
a703adff6e36fe3d19834017d2e005698fe75d22 | Java | ws01016121/TestExtract | /src/main/java/com/example/testnavigation/moudle/IDownListNewsM.java | UTF-8 | 1,590 | 1.976563 | 2 | [] | no_license | package com.example.testnavigation.moudle;
import com.example.testnavigation.base.BaseObserver;
import com.example.testnavigation.brean.inform.Demo;
import com.example.testnavigation.brean.inform.DownListNews;
import com.example.testnavigation.contact.IDownListNews;
import com.example.testnavigation.http.HttpManager;
... | true |
ba88144adddae8e7e754b32cd72ce4bcf6f99922 | Java | Pawls/Coding-Challenges | /hackerrank/Java/JavaBitSet.java | UTF-8 | 851 | 3.328125 | 3 | [] | no_license | import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int m = input.nextInt();
int n = input.nextInt();
BitSet[] B = {new BitSet(m), new BitSet(m)};
for (int i = 0; i < n; i++) {
String op = input.next();
int par... | true |
d00b905e5d92ebe78a3bc1511c7bd7df27e8d247 | Java | lorenzoPatras/mazeGame | /src/view/CustomButton.java | UTF-8 | 505 | 2.671875 | 3 | [] | no_license | package view;
import javax.swing.*;
import java.awt.*;
/**
* Created by lorenzop on 12/18/16.
*/
public class CustomButton extends JButton {
public CustomButton(String content, int width, int height) {
super(content);
setSize(width, height);
setOpaque(false);
setContentAreaFille... | true |
4edefdcb3b63578ad186f28a7e47a984f557a53b | Java | iconoclastpython/LeetCode | /linkedList.java | UTF-8 | 11,646 | 3.734375 | 4 | [] | no_license | Palindrome Linked List:
public class Solution {
public boolean isPalindrome(ListNode head)
{
if(head == null || head.next == null) return true;
ListNode slow = head, fast = head;
while(fast.next != null && fast.next.next != null)
{
slow = slow.n... | true |
b8fa39e39a6f39d5289aa5d16b670724dbfbf3c7 | Java | ShivaCherupally/exampleFMCG | /app/src/main/java/com/fmcg/models/LoginData.java | UTF-8 | 311 | 1.523438 | 2 | [] | no_license | package com.fmcg.models;
import java.util.List;
public class LoginData
{
public String EmployeeId;
public String EmployeeName;
public String MobileNumber;
public String EmployeeCode;
public String EmployeeDesignation;
public String RouetCode;
public String RoleId;
public List<GetShopsArray> Data;
}
| true |
863bdce00319e54699570342f5e1d58030bd994c | Java | arthurlang/AndroidLearning | /puzzle/src/com/azy/app/puzzle/LogoActivity.java | GB18030 | 1,018 | 2.171875 | 2 | [] | no_license | package com.azy.app.puzzle;
import com.azy.app.puzzle.view.LogoView;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
public class LogoActivity extends Activity {
public static int ScreenW,ScreenH;
public static LogoActivity instence;
@Override
protected void onCreate(Bundle... | true |
785548de758f1ab5f94e0ba2b44a1b5dbc5a8be5 | Java | believexin/hr | /src/com/icss/hr/leavemessage/service/LmbService.java | UTF-8 | 1,245 | 2.328125 | 2 | [] | no_license | package com.icss.hr.leavemessage.service;
import java.sql.SQLException;
import java.util.ArrayList;
import com.icss.hr.leavemessage.dao.LmbDao;
import com.icss.hr.leavemessage.pojo.Lmb;
/**
* 留言板业务逻辑层
* @author believexin
*
*/
public class LmbService {
private LmbDao dao = new LmbDao();
/**
* 增加一条留言
* ... | true |
311b19532256dfb8ac2ea9becfdeb2e456816211 | Java | SkydevilK/Dionysos | /Back_End/src/main/java/com/ssafy/wine/dto/WineLikeDto.java | UTF-8 | 260 | 1.703125 | 2 | [
"MIT"
] | permissive | package com.ssafy.wine.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Data
public class WineLikeDto {
private Long wid;
private String nameKor;
private String nameEng;
}
| true |
a25604518a531155c101880a5159d3850de96736 | Java | dhkdwns93/Bit | /ApiTest01/src/mini/user/dao/UserDAO.java | UTF-8 | 825 | 2.234375 | 2 | [] | no_license | package mini.user.dao;
import java.sql.SQLException;
import mini.user.dto.UserDTO;
public interface UserDAO {
/**
* 로그인 기능
* select user_id, pwd, name from users where user_id=? and pwd=?
* */
UserDTO loginCheck(UserDTO userDTO)throws SQLException;
/**
* 회원 가입 기능
* insert into users values(user_id=?... | true |
daa625171b2d65acabb29e5958f0c7bb9022a312 | Java | navigill2511/Calculator | /Calculator/src/application/SingleEventProbabilityController.java | UTF-8 | 2,436 | 3.4375 | 3 | [] | no_license | package application;
import application.formatter.Object;
import application.model.StatisticsModel;
import javafx.event.Event;
import javafx.fxml.FXML;
import javafx.scene.control.TextField;
/***********************************************************************************************************************
* Crea... | true |
8f13722df8102eec7f49194066137682ddcd2123 | Java | Sergeuser/WebTest | /WebApp/src/java/ru/mycomp/client/clnt.java | UTF-8 | 3,138 | 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 ru.mycomp.client;
import java.io.File;
import java.io.FileNotFoundException;
import java.sql.SQLException;
import java.util.Sc... | true |
aea775d8e48f62ad1743705d92e96a04a8bf5788 | Java | xgeekshq/workshop-intro-java-11-spring | /java/src/main/java/com/company/soccer/PlayerFluent.java | UTF-8 | 256 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.company.soccer;
public interface PlayerFluent {
PlayerFluentCity name(String name);
interface PlayerFluentCity {
PlayerFluentCountry city(String city);
}
interface PlayerFluentCountry {
Player build();
}
}
| true |
ade3ac2d91158f8480ad6c35331d061d70d29992 | Java | rushimg/quack | /src/quack/VariableReplacer.java | UTF-8 | 4,009 | 2.609375 | 3 | [] | no_license | package quack;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Vector;
import apple.laf.JRSUIConstants.Size;
import com.sun.tools.javac.uti... | true |
52608a6c480d61d682fca4be73a08fa8482d4009 | Java | tom-liu123/MiShop | /src/com/itqf/controller/CodeController.java | UTF-8 | 930 | 2.046875 | 2 | [] | no_license | package com.itqf.controller;
import cn.dsna.util.images.ValidateCode;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | true |
213cd7d0cd833f73c449dab4b3dad58205c773eb | Java | Ayush97-Upadhyaya/App_dev-Adani_tirora | /app/src/main/java/bits/emd/adani/SwitchYard/cbm_400kv/cbm_400kv_earthing_resistance_line_bus_generator_transformer.java | UTF-8 | 16,849 | 1.851563 | 2 | [] | no_license | package bits.emd.adani.SwitchYard.cbm_400kv;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.CharacterPickerDialog;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Radi... | true |
cc482a5c753c6f0ac16ebac5db94daf1e06b4a48 | Java | SaTarantino/SelectionAndQuickSortVersion1 | /src/arraySorter/QuickSort.java | UTF-8 | 2,065 | 3.8125 | 4 | [] | no_license | package arraySorter;
/**
* author Salvatore Tarantino, u1860830
* u1860830@hud.ac.uk
*/
public class QuickSort<T extends Comparable<? super T>> implements ArraySort<T> {
/**
* An implementation of the Selection Sort algorithm.
*
* @param array the array to be sorted
* @return the sorted ar... | true |
14ae3cd80bcde94eb8bc35f1991b50f3d6bd1648 | Java | MoinR/JavaUnits | /unit-2/AreaCalc.java | UTF-8 | 791 | 4.46875 | 4 | [] | no_license | /* Create class calculation with an abstract method area( ). Create Rectangle and
9 Triangle subclasses of calculation and find area of rectangle and triangle.*/
abstract class Calculation{
abstract void area(int x, int y);
}
class Rectangle extends Calculation{
@Override
public void area(int length, int ... | true |
c9311bbc3b0a5196ecd7e2e4e63f32073efc49bc | Java | NULLcaption/dubbotest | /provider/src/main/java/com/cxg/provider/service/Impl/SysUserServiceImpl.java | UTF-8 | 816 | 1.96875 | 2 | [] | no_license | package com.cxg.provider.service.Impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.cxg.common.domin.SysUserDo;
import com.cxg.common.service.SysUserService;
import com.cxg.provider.mapper.SysUserMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory... | true |