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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e750eed119ae7ea3bfea8dba5dbb3d24e7503cf6 | Java | NicEastvillage/Uni-OOP | /src/week2/assignment/items/Juice.java | UTF-8 | 522 | 3.515625 | 4 | [] | no_license | package week2.assignment.items;
import java.util.Date;
public class Juice extends Item implements Drinkable {
public static final String NAME = "Juice";
public Juice(Date expiration) {
super(NAME, 4, expiration);
}
@Override
public void drink(Date when) {
if (isExpired(when)) {
... | true |
8d41b59e2b57929718c24dcdd3efcd16751c28ab | Java | mustafaonurdurkal/kafe | /src/tr/edu/deu/ceng/coffie/entity/applicationform/CheckOut.java | UTF-8 | 1,168 | 2.46875 | 2 | [] | no_license | package tr.edu.deu.ceng.coffie.entity.applicationform;
import java.awt.EventQueue;
import java.io.IOException;
import javax.swing.JFrame;
public class CheckOut {
private JFrame frame,parent;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
... | true |
4bb2d9de8658e93146b2e13a37f490f5f14107a9 | Java | Wildprogrammingape/Spring-Project | /spring-demo-one/src/myspringdemo/TrackCoach.java | UTF-8 | 614 | 2.796875 | 3 | [] | no_license | package myspringdemo;
public class TrackCoach implements Coach {
private FortuneService fortuneService;
public TrackCoach(FortuneService fortuneService) {
this.fortuneService = fortuneService;
}
@Override
public String getDailyWorkout() {
return "Run a hard 5k";
}
@Override
public String getFortune... | true |
2fc762a8d18c86a01820f2cae18daddc39873a7b | Java | trenellgalman/ru102j | /src/main/java/com/redislabs/university/ru102j/dao/SiteGeoDaoRedisImpl.java | UTF-8 | 4,706 | 2.25 | 2 | [
"MIT"
] | permissive | package com.redislabs.university.ru102j.dao;
import com.redislabs.university.ru102j.api.Coordinate;
import com.redislabs.university.ru102j.api.GeoQuery;
import com.redislabs.university.ru102j.api.Site;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Objects;
import java.util.S... | true |
201ce38dba6a2ab41a62ba9250bc590aec4d1ee7 | Java | moutainhigh/chdHRP | /src/com/chd/hrp/cost/service/analysis/AnalysisService.java | UTF-8 | 7,995 | 2.015625 | 2 | [] | no_license | /**
* @Copyright: Copyright (c) 2015-2-14
* @Company: 智慧云康(北京)数据科技有限公司
*/
package com.chd.hrp.cost.service.analysis;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
/**
* @Title. @Description.
* 构成结余分析服务类<BR>
* @Author: LiuYingDuo
* @email: bell@s-chd.com
* @Version:... | true |
84b40dfdca661e9ddb45b0652128f9b017849d6e | Java | rachaTrabelsi/PregnancyTrackerAndroidApp | /app/src/main/java/com/esprit/pregnancytracker/main/DetailsInformationActivity.java | UTF-8 | 2,337 | 2.109375 | 2 | [] | no_license | package com.esprit.pregnancytracker.main;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.esprit.pregnancytrack... | true |
728f53c56035f7621df74ac7d814c32839b94df6 | Java | lorrampi/better-hud | /src/main/java/jobicade/betterhud/util/ISlider.java | UTF-8 | 1,424 | 3.28125 | 3 | [
"MIT"
] | permissive | package jobicade.betterhud.util;
import net.minecraft.util.math.MathHelper;
/** Interface representing a slider which maintains a minimum and maximum,
* an interval between valid values and a current value */
public interface ISlider extends IGetSet<Double> {
/** @return the minimum of the slider's range */
... | true |
b65fd7bb51ad425923ed9e727cc8a92e8009c49f | Java | Masoudas/Algorithms | /src/main/java/Chapter1/UnionFind_1_4/QuickUnion_3.java | UTF-8 | 2,006 | 3.828125 | 4 | [] | no_license | package Chapter1.UnionFind_1_4;
import java.util.stream.IntStream;
/**
* One thing that we did in the previous algorithm which was unnecessay, was that we gave all the
* components the same name, and because of this, we had to iterate all over the ids. Hence, our search
* is linear.
*
* Here's how we can chang... | true |
ff4b8f4942e2b5a89989dcbc6904847f7b8d50e2 | Java | jimgong3/SoCo | /client-android/app/src/main/java/com/soco/SoCoClient/events/service/JoinEventService.java | UTF-8 | 4,486 | 2.34375 | 2 | [] | no_license | package com.soco.SoCoClient.events.service;
import android.app.IntentService;
import android.content.Intent;
import android.util.Log;
import com.soco.SoCoClient.common.HttpStatus;
import com.soco.SoCoClient.common.http.HttpUtil;
import com.soco.SoCoClient.common.http.JsonKeys;
import com.soco.SoCoClient.common.http.U... | true |
025e32a6677be895ef5a0ddf61acfb801bb154de | Java | NikitaKemarskiy/ds-labs | /lab2/src/com/deque/MyLinkedDeque.java | UTF-8 | 5,586 | 3.78125 | 4 | [
"MIT"
] | permissive | package com.deque;
// Мои классы
import com.exception.*;
// Классы Java
import java.lang.Math;
public class MyLinkedDeque implements MyDeque {
// Private
private int size = 0;
private DequeItem back = null;
private DequeItem front = null;
// Public
public MyLinkedDeque() { // Конструктор по... | true |
e33f25303a94e0f5c9279edea2991f7da25198d2 | Java | mrtamb9/BKSportAnnotation | /src - Copy/main/java/org/bksport/annotation/mvc/view/StatisticMediator.java | UTF-8 | 1,175 | 2.390625 | 2 | [] | no_license | package org.bksport.annotation.mvc.view;
import java.awt.Frame;
import java.util.HashMap;
import org.bksport.annotation.mvc.AppFacade;
import org.bksport.annotation.mvc.view.ui.StatisticDialog;
import org.puremvc.java.interfaces.INotification;
import org.puremvc.java.patterns.mediator.Mediator;
/**
*
* Mediator o... | true |
220f2b7191dd3721dc22503e3206a7d4936e5862 | Java | mbohnearschi-endava/jiraminer | /src/main/java/org/dxworks/dxplatform/jiraminer/Main.java | UTF-8 | 2,846 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package org.dxworks.dxplatform.jiraminer;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.dxworks.dxplatform.jiraminer.configuration.JiraMinerConfiguration;
import org.dxworks.dxplatform.jiraminer.rest.client.JiraMinerUnauthorizedException;
import org.dxworks.dxplatform... | true |
d0d72729386a88ca88dfe64bdc4648ff49c8b942 | Java | jackycaojiaqi/yaoyaoLive | /app/src/main/java/com/fubang/video/ui/RegisterActivity.java | UTF-8 | 14,263 | 1.578125 | 2 | [] | no_license | package com.fubang.video.ui;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.view.Wi... | true |
a95c32dea5a4121e4f19a74387fd19dcb60886f3 | Java | andrewrstubbs/Recursive-Descent-Parser | /Slump.java | UTF-8 | 1,890 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
/**
* @author Andrew Stubbs
* @version 3/22/15
* The definition of the Slump rule of the ENBF
*/
public class Slump {
protected int nextToken;
protected char lexeme;
protected ArrayList<Character> chars;
protected Slurpy slurpy;
protected final Character D = 'D';
p... | true |
8773e9663c94fc0927872f4a36c857f29a07a637 | Java | Quantum64/OpenModDetector | /src/main/java/co/q64/omd/spigot/SpigotOpenModDetectorPlugin.java | UTF-8 | 709 | 1.9375 | 2 | [] | no_license | package co.q64.omd.spigot;
import org.bukkit.plugin.java.JavaPlugin;
import co.q64.omd.OpenModDetector;
import co.q64.omd.OpenModDetectorPlugin;
import co.q64.omd.base.inject.ModDetectorModule;
import co.q64.omd.spigot.inject.*;
public class SpigotOpenModDetectorPlugin extends JavaPlugin implements OpenModDetectorPl... | true |
c2b6f2ec1b5037048eef6b6b3eac7583b140994a | Java | multi-os-engine/moe-core | /moe.apple/moe.platform.ios/src/main/java/apple/foundation/NSOutputStream.java | UTF-8 | 7,821 | 1.578125 | 2 | [
"Apache-2.0",
"ICU",
"W3C"
] | permissive | /*
Copyright 2014-2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | true |
9e780118f6c3a10fbe028dbbd2c18343ab3ace7b | Java | arpit2425/getwel | /app/src/main/java/com/example/arpit/getwel/customer.java | UTF-8 | 1,011 | 2.21875 | 2 | [] | no_license | package com.example.arpit.getwel;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import java.util.ArrayList;
public class customer {
String name;
String email;
String phone;
String address;
String product;
String amount;
Stri... | true |
d2416c4622d820c7d0e9fb8fa6e156d9fa3ebb00 | Java | kimnamsun/stocker | /src/board/controller/BoardCommentInsertServlet.java | UTF-8 | 1,628 | 2.34375 | 2 | [] | no_license | package board.controller;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import board.model.service.BoardServic... | true |
01942c71871fd8a09e54550edad79a1770c100da | Java | jvitorc/Ticket-To-Ride | /src/network/ActorNetGames.java | ISO-8859-1 | 2,726 | 2.453125 | 2 | [] | no_license | package network;
import br.ufsc.inf.leobr.cliente.Jogada;
import br.ufsc.inf.leobr.cliente.OuvidorProxy;
import br.ufsc.inf.leobr.cliente.Proxy;
import br.ufsc.inf.leobr.cliente.exception.ArquivoMultiplayerException;
import br.ufsc.inf.leobr.cliente.exception.JahConectadoException;
import br.ufsc.inf.leobr.clie... | true |
baa5c34964fc3b34e521f62cc0815d596bf608cc | Java | fabiomorais/poo-2018.1 | /src/patterns/abstract_factory/FabricaSRT.java | UTF-8 | 494 | 2.515625 | 3 | [] | no_license | package patterns.abstract_factory;
public class FabricaSRT extends Fabrica {
@Override
public Sanduiche montarSanduche() {
Sanduiche sanduiche = super.montarSanduche();
Salada s = criarSalada();
sanduiche.addSalada(s);
return sanduiche;
}
public Salada criarSalada() {
return new Salada();
}
publ... | true |
15e80ced25059e3987009b45ae6f8b5ff53c06b6 | Java | 384401056/JavaDesignPattern | /11-模板方法模式Template Method/src/com/templatemethod/MainTest.java | UTF-8 | 190 | 2.03125 | 2 | [] | no_license | package com.templatemethod;
public class MainTest {
/**
* @param args
*/
public static void main(String[] args) {
Template template = new MyClass2();
template.method();
}
}
| true |
96d506404a35bcf5fe97505bf75b3ade63880487 | Java | hasee284/Java | /src/member/MemberDao.java | UTF-8 | 717 | 2.140625 | 2 | [] | no_license | package member;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
public class MemberDao {
private static MemberDao instance;
public static MemberDao getInstance() {
if (instance == null) {
instance = new MemberDao();
}
return instan... | true |
4f132c215d9116f19362149a4cc0253c5741e74b | Java | gouthampradhan/html-analyzer | /src/main/java/htmlanalyzer/parser/data/Metadata.java | UTF-8 | 1,357 | 2.640625 | 3 | [] | no_license | package htmlanalyzer.parser.data;
import java.util.Map;
/**
* Created by gouthamvidyapradhan on 07/10/2017.
* Data response object to populate HTML Metadata information
*/
public class Metadata{
//Html version
private String htmlVersion;
//HTML title
private String title;
//Map of header type... | true |
50c3649e3423553ebcb67bbf62045806ba4acdfc | Java | semaj7/ledder | /src/Picture.java | UTF-8 | 884 | 3.109375 | 3 | [] | no_license | import java.awt.*;
import java.util.ArrayList;
/**
* Created by james on 07/02/16.
* A combination of compositions which should be active simultaneously.
*/
public class Picture extends ArrayList<Composition>{
Picture(Color color){
makeAll(color);
}
Picture(Composition comp){
makeAll(co... | true |
e460b5251ff184cf03e584f4b4ce86311978732b | Java | wearablebiosensing/tex-tronics | /androidedge/SmartGloveArchives/Demo_Versions/WithGraphing_Flex_Only/SmartGloveFragments/app/src/main/java/andrewpeltier/smartglovefragments/fragments/patientfrags/FinishFragment.java | UTF-8 | 9,811 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package andrewpeltier.smartglovefragments.fragments.patientfrags;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
imp... | true |
a9e9863202827f1225c819ee4b0bea3d58a0e0b2 | Java | dgutu/java | /SearchIncite/src/com/searchincite/client/widgets/entitylabels/DocumentStatusLabel.java | UTF-8 | 3,081 | 1.828125 | 2 | [] | no_license | package com.searchincite.client.widgets.entitylabels;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Hyperlink;
import com.google.gwt.user.client.ui.MenuBar;
import com.google.gwt.user.client.ui.Widget;
import com.searchin... | true |
92460027f43db3fd4789555a582567ca2a65f7bf | Java | wkendwr/FuturesBot | /src/messenger/facebook.java | UTF-8 | 5,397 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package messenger;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smac... | true |
7a48f7b7cb316ee7153f67befdd6df2c5eaac8bb | Java | Tibiusc/TutorialJava | /src/test/java/AbstractizareInterfete/PersoanaStudent.java | UTF-8 | 753 | 2.828125 | 3 | [] | no_license | package AbstractizareInterfete;
public class PersoanaStudent extends Persoana implements Student {
//Mostenire = extends; (O clasa se mosteneste)
//Interfata = implements; (O interfata se implementeaza)
// O clasa poate implementa o multime de interfete;
//Cand o clasa implementeaza o clasa => clasa t... | true |
9462419586d1a6f64a2edcaaf147866941096aee | Java | batfish/batfish | /projects/question/src/test/java/org/batfish/question/comparefilters/CompareFiltersAnswererTest.java | UTF-8 | 5,246 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.batfish.question.comparefilters;
import static com.google.common.base.Preconditions.checkArgument;
import static org.batfish.datamodel.LineAction.DENY;
import static org.batfish.datamodel.LineAction.PERMIT;
import static org.batfish.question.comparefilters.CompareFiltersAnswerer.compareFilters;
import stat... | true |
d951326ad82e0890c85fe4f7cba015976d7bd532 | Java | YYdesoul/spring5-study | /spring-08-proxy/src/main/java/com/soul/staticProxy/Client.java | UTF-8 | 320 | 2.5625 | 3 | [] | no_license | package com.soul.staticProxy;
public class Client {
public static void main(String[] args) {
// without proxy
// Host host = new Host();
// host.rent();
// 代理可以做一些被代理对象做不了的事情
Proxy proxy = new Proxy(new Host());
proxy.rent();
}
}
| true |
3acd88493563e1eb7f4f44a1a78656df55357b2f | Java | mfkiwl/jet | /limo_apps/Dev_and_test_apps/TabExample/src/com/reconinstruments/tabexample/WidgetTestActivity.java | UTF-8 | 428 | 1.757813 | 2 | [] | no_license | package com.reconinstruments.tabexample;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
public class WidgetTestActivity extends Activity {
private View mTabView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | true |
379a18ba581ec226762e2aebd383b9ba323d1945 | Java | ycfn97/IdeaWorkspace | /ArraySortProj/src/myarraysort/BinarySearch.java | UTF-8 | 2,523 | 4.21875 | 4 | [] | no_license | package myarraysort;
import java.util.Arrays;
import java.util.Scanner;
public class BinarySearch {
public static void main(String[] args) {
int arr[]=new int[10];
for (int i=0;i<10;i++){
arr[i]=(int)(Math.random()*100+1);
}
Arrays.sort(arr);
System.out.println(... | true |
1af990b3cf3b2e9cd45e98216b4a1f2b1097edaa | Java | Viji7789/PageObjectModel | /PageObjectModel/src/testCases/MyProfilePage.java | UTF-8 | 2,103 | 2.0625 | 2 | [] | no_license | package testCases;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.PageFactory;
import pageObjects.LoginPageObjects;
//import org.openqa.selenium.interactions.Actions... | true |
cd7595d339aa8f291a1b16561b954f0ca2cfa0e1 | Java | nettm/exercise | /exercise-spring/src/main/java/com/nettm/exercise/spring/cat/MyCatService.java | UTF-8 | 228 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.nettm.exercise.spring.cat;
import org.springframework.stereotype.Component;
@Component
public class MyCatService implements MyCat {
@Override
public void run() {
System.out.println("run");
}
}
| true |
814946ddaeddd6a2bff0f8162a898cdb37c743a9 | Java | nguyentung-199/HomeInsurance | /src/kevinrogers/homeinsurance/servlet/GenerateQuote.java | UTF-8 | 3,060 | 2.390625 | 2 | [] | no_license | package kevinrogers.homeinsurance.servlet;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | true |
2e64250565b82f30daa1d935a3065591f6dd7f58 | Java | mstftikir/contactlist | /src/test/java/com/kn/contactlist/service/impl/ContactListServiceImplTests.java | UTF-8 | 2,194 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.kn.contactlist.service.impl;
import com.kn.contactlist.dto.ContactDto;
import com.kn.contactlist.exception.type.BusinessException;
import com.kn.contactlist.model.ContactTable;
import com.kn.contactlist.repository.ContactRepository;
import org.junit.Assert;
import org.junit.Before;
import org.junit... | true |
196ce8278106a56954c3d5a315169f5eefe0136c | Java | thinkpi9/spring-boot | /spring-boot-async/src/main/java/com/learn/asyc/component/WebSocketComponent.java | UTF-8 | 1,634 | 2.71875 | 3 | [] | no_license | package com.learn.asyc.component;
import java.io.IOException;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArraySet;
import javax.websocket.OnClose;
import javax.websocket.OnError;
import javax.websocket.OnMessage;
import javax.websocket.OnOpen;
import javax.websocket.Session;
import j... | true |
09b5c4a9014138a24e36b804beaba10aed7620f9 | Java | lsm1998/jvm | /src/main/java/com/lsm1998/jvm/clazz/constant/impl/ConstantMethodTypeInfo.java | UTF-8 | 577 | 2.234375 | 2 | [] | no_license | package com.lsm1998.jvm.clazz.constant.impl;
import com.lsm1998.jvm.clazz.ClassRead;
import com.lsm1998.jvm.clazz.constant.ConstantInfo;
import com.lsm1998.jvm.utils.ClassReadUtil;
/**
* @作者:刘时明
* @时间:2019/3/28-15:40
* @作用:
*/
public class ConstantMethodTypeInfo implements ConstantInfo
{
public int descripto... | true |
dc19a07ce4e63f499c6390e36ec9b9123ff060db | Java | Icygocode/Project_DA_Java_EN_Come_to_the_Rescue_of_a_Java_Application | /Project02Eclipse/src/com/hemebiotech/analytics/writer/WriteException.java | UTF-8 | 160 | 1.929688 | 2 | [] | no_license | package com.hemebiotech.analytics.writer;
public class WriteException extends Exception {
public WriteException(Throwable cause) {
super(cause);
}
}
| true |
efb0ca7118ad4d868dda7686a96b874b85117a89 | Java | akhil741990/java8-try-outs | /src/com/soul/java8/iterable/foreach/Java8ForEachInIterable.java | UTF-8 | 706 | 3.6875 | 4 | [] | no_license | package com.soul.java8.iterable.foreach;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
public class Java8ForEachInIterable {
public static void main(String args[]) {
List<Integer> l = new ArrayList<>();
l.add(1);
l.add(2);
l.add(3);
l.forEach(new Consumer... | true |
1ee3ac162f55fbfb8b0521a6d60aa65df80d61fa | Java | shika-sophia/sepJavaRecurrent | /javaSilver/SE11Black/Examin02.java | UTF-8 | 6,474 | 2.984375 | 3 | [] | no_license | /**
* @title javaSilver / SE11Black / Examin02
* @content
* @see 志賀澄人『徹底攻略 Java SE11 Silver 問題集[1ZO-815]』(黒本),インプレス, 2019
* @author shika
* @date 2021-01-18 / 07:52-10:29 (157分)
* @correctRate ①73.75 % ( 〇59問 / 全80問 )
*/
package javaSilver.SE11Black;
import javaSilver.AnswerMaker;
public class Exam... | true |
8dfb10713b423255b4cceb7d32bd26476e1751a5 | Java | sgholamian/log-aware-clone-detection | /NLPCCd/HBase/770_2.java | UTF-8 | 481 | 2.078125 | 2 | [
"MIT"
] | permissive | //,temp,sample_5465.java,2,19,temp,sample_5510.java,2,19
//,3
public class xxx {
public void dummy_method(){
reader = createWALReaderForPrimary();
long flushSeqId = -1;
while (true) {
WAL.Entry entry = reader.next();
if (entry == null) {
break;
}
FlushDescriptor flushDesc = WALEdit.getFlushDescriptor(entry.getEdit().g... | true |
e82c01e38370ae76c94a88c9f5fc0903d2aa1eea | Java | hkdragon9/HashWolf2_BackEnd | /hashwolf2/src/main/java/com/HashWolf2/hashwolf2/Controllers/UserController.java | UTF-8 | 2,091 | 2.296875 | 2 | [] | no_license | package com.HashWolf2.hashwolf2.Controllers;
import com.HashWolf2.hashwolf2.Model.GroupTable;
import com.HashWolf2.hashwolf2.Model.User;
import com.HashWolf2.hashwolf2.Repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import ja... | true |
3bd90d664f5a18fb67021dc11de1c4ee60939b71 | Java | zuokai666/WorkFlow | /workflow/src/main/java/org/zk/workflow/util/TimeUtil.java | UTF-8 | 357 | 2.109375 | 2 | [] | no_license | package org.zk.workflow.util;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TimeUtil {
public static String now(){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return dateFormat.format(new Date());
}
public static String key(){
return ""... | true |
2d19df72fdae446ddc275b667a42e7a4bff7e94d | Java | zulnerub/Java---Java-OOP | /InterfacesAndAbstraction/army/HelperClasses/Interfaces/Repair.java | UTF-8 | 144 | 2.34375 | 2 | [] | no_license | package InterfacesAndAbstraction.army.HelperClasses.Interfaces;
public interface Repair {
String getName();
String getHoursWorked();
}
| true |
824d599effd9d747f90b0e528e529d42daf01101 | Java | jrnbulu/core-java | /coreJavaApp/src/com/bss/module1/SumOfNumbersInRange.java | UTF-8 | 847 | 3.59375 | 4 | [] | no_license | package com.bss.module1;
import java.util.Scanner;
public class SumOfNumbersInRange {
public static void main(String[] args) {
int start,end;
if(args.length > 1)
{
start = Integer.parseInt(args[0]);
end = Integer.parseInt(args[1]);
System.out.println("Input from command line array: start :"+arg... | true |
fd1c07bf9ee6293570b93446b3cd0f0fab53a433 | Java | kongra/SAN | /2013 letni/Lodz B/ALGO-Lodz-B/src/san/algo/TestPow.java | UTF-8 | 512 | 2.703125 | 3 | [] | no_license | package san.algo;
import java.math.BigInteger;
import san.algo.math.Pow;
public class TestPow {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
testFastPow();
}
// System.out.println(val.toString().length());
}
private static void testFastPow() {
long start = Sy... | true |
08252e05b7514dad3b70c83742fa7b28bdd5db8a | Java | jeyanthank/graph-cloner | /src/main/java/com/workspan/cloner/model/Entity.java | UTF-8 | 1,488 | 2.6875 | 3 | [] | no_license | package com.workspan.cloner.model;
import com.google.gson.annotations.SerializedName;
import java.util.Optional;
/**
* User: jeyanthan
* Date: 2019-02-27
* Add description here
*/
public class Entity {
@SerializedName("entity_id")
private Integer entityId;
private String name;
private String des... | true |
8a5d4dac3d74c95accd807bcbf8ddf00d327c8be | Java | suyeongs/PayQuick_GraduationProject | /Android/app/src/main/java/com/example/payquick/ScanStockActivity.java | UTF-8 | 4,173 | 2.140625 | 2 | [] | no_license | package com.example.payquick;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.widget.To... | true |
f0e62f927f4ebfd91582c9b6e1885fcab92d5bd6 | Java | Ikii-developer/ikii-backend | /ikii-back-microservices/ikii-back-payment/src/main/java/mx/ikii/payment/service/payment/IkiiPaymentServiceWrapperImpl.java | UTF-8 | 6,102 | 1.882813 | 2 | [
"MIT"
] | permissive | package mx.ikii.payment.service.payment;
import java.util.List;
import java.util.Objects;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;
import org.springframework.web.server.ResponseStatusException;
import io.co... | true |
d804264ca144f0285f58750196ce5bd05cd76729 | Java | war10ckIT/javaRogueLike | /src/main/java/com/fxgl/games/roguelike/control/BombControl.java | UTF-8 | 988 | 2.5 | 2 | [
"MIT"
] | permissive | package com.fxgl.games.roguelike.control;
import com.almasb.fxgl.app.FXGL;
import com.almasb.fxgl.entity.component.Component;
import com.almasb.fxgl.entity.components.BoundingBoxComponent;
import com.fxgl.games.roguelike.GameApp;
import com.fxgl.games.roguelike.GameTypes;
public class BombControl extends Component {
... | true |
11ed9f0ee1a22668d8d8e318689cfc40243de9b7 | Java | nikhilthota7/RestApiExtentReport | /CucumberReportingApi2/src/test/java/com/cts/StepDefinition/DeleteRequest.java | UTF-8 | 1,317 | 2.25 | 2 | [] | no_license | package com.cts.StepDefinition;
import cucumber.api.Scenario;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import io.restassured.response.Response;
import io.restassured.response.ValidatableResponse;
import io.restassur... | true |
31c7d11ac582c4aaf8c31ef2979401d39f1e13a8 | Java | ryan4fun/kmmk | /kmmk/src/com/gps/Message.java | UTF-8 | 114 | 1.898438 | 2 | [] | no_license | package com.gps;
public class Message extends Exception {
public Message(String msg){
super(msg);
}
}
| true |
5f57e74ecc13f16153b45212ac14c1de84d6d855 | Java | ZinKoWinn/Hateoas-Test | /src/main/java/com/example/hateoastest/ds/Address.java | UTF-8 | 2,212 | 2.484375 | 2 | [] | no_license | package com.example.hateoastest.ds;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constrain... | true |
adfabe2cf7d97d94d139e7895dc75e9d753df641 | Java | FredyKcrez/JAVA | /G9_Ejr1_CuentaClaseAbstracta/src/ejercicios/clasesabstractas/Ahorro.java | UTF-8 | 871 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | package ejercicios.clasesabstractas;
/**
* @date 04/07/2018
* @author Fredy Kcrez
*/
public class Ahorro extends Cuenta {
protected double tasaInteres;
public Ahorro(int numeroCuenta, double ti) {
super( numeroCuenta, "Ahorro" );
this.setTasaInteres( ti );
}
@Override... | true |
3125bcc95550476bdcd33287f4fe6d99a476ae35 | Java | kaushiknsanji/firestore-friendly-eats-android | /app/src/main/java/com/google/firebase/example/fireeats/RestaurantDetailActivity.java | UTF-8 | 9,113 | 1.882813 | 2 | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-other-permissive"
] | permissive | /*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* 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 ... | true |
b7e70609db9a0c35b37ffc677f549d3772f494c0 | Java | brianmontierth/Scheduler | /app/src/main/java/com/wgu/brian/scheduler/database/TermDao.java | UTF-8 | 852 | 2.15625 | 2 | [] | no_license | package com.wgu.brian.scheduler.database;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import com.wgu.brian.scheduler.database.ent... | true |
0457eb6b3c324271d050f88bc68cd681343eba04 | Java | utopia-group/dynamite | /src/dynamite/util/FileUtils.java | UTF-8 | 4,492 | 3.265625 | 3 | [] | no_license | package dynamite.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Li... | true |
aa75ee9ad5bc037b56a69fcb9fdcf83ee8e8542d | Java | DmitryPronin/JAVA_IT_PARK_3 | /test/myproject/src/main/java/ru/itpark/probro/services/FilesService.java | UTF-8 | 386 | 1.875 | 2 | [] | no_license | package ru.itpark.probro.services;
import org.springframework.security.core.Authentication;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
public interface FilesService {
String save(Authentication authentication, MultipartFile multipartFile);
void wri... | true |
521531dbdfc3f26e2f53f01add5868fb123c1476 | Java | jack921/Weather | /app/src/main/java/com/jack/weather/app/WeatherApplication.java | UTF-8 | 2,298 | 2.171875 | 2 | [] | no_license | package com.jack.weather.app;
/*
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
.' \\| |// `.
/ \\||| : |||// \
/ _||||| -:- |||||- \
| | \\\ - /// | |
| \_| ''\---/'' | |
\ .-\__ `-` ___/-. /
___`. .' /--.--\ `. . __
."" '< `.___\_<|>_/___.' >'"".
| | : `-... | true |
ef2bc0a81d725c7ad64a6151b1855fa99cfb8571 | Java | wso2/micro-integrator | /components/org.wso2.micro.integrator.ndatasource.core/src/main/java/org/wso2/micro/integrator/ndatasource/core/services/WSDataSourceMetaInfo.java | UTF-8 | 3,884 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2012, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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... | true |
097652846a47385e400b2d35c054e5dba05a1612 | Java | javargas1098/SuperEasy | /src/main/java/edu/eci/arsw/model/Trueque.java | UTF-8 | 258 | 2.265625 | 2 | [] | no_license | package edu.eci.arsw.model;
public class Trueque extends TipoDePago {
Item item;
TipoDePago tipoDePago;
public Trueque() {
}
public Trueque(Item item, TipoDePago tipoDePago) {
super();
this.item = item;
this.tipoDePago = tipoDePago;
}
}
| true |
a9ec49cc8f8119150dd232b9cde7c978220b57d7 | Java | MasterSchool4031/SchoolUserInterface | /src/main/java/school/client/commons/Lesson.java | UTF-8 | 678 | 2.703125 | 3 | [] | no_license | package school.client.commons;
import java.net.URL;
/**
* un Cours est définit par un nom et un contenu.
*
* <pre>
* Propriétés
* - nom :String // le nom du cours
* - contenu :URL // le contenu du cours
*
* Contraintes sur les Propriétés
* Le contenu et l'intitulé ne peuvent pas être nu... | true |
a753a177d77324aa0e4a6094a0de072a73f667be | Java | tadakazu1972/RedSword | /app/src/main/java/tadakazu1972/redsword/Shot.java | UTF-8 | 2,720 | 2.765625 | 3 | [] | no_license | package tadakazu1972.redsword;
/**
* Created by tadakazu on 2015/09/22.
*/
public class Shot {
public float x, y;
public float wx, wy;
public float vx, vy;
public float l, r, t, b;
public int base_index; //アニメーション基底 0:右向き 2:左向き
public int index;
public int visible;
public Shot(MyChar... | true |
321281759523a5ec7c01de47d4fa9d7ccad06c5e | Java | BeCandid/JaDX | /java/defpackage/xa.java | UTF-8 | 2,651 | 1.789063 | 2 | [] | no_license | package defpackage;
import android.os.Bundle;
import com.facebook.FacebookException;
import com.facebook.share.internal.ShareFeedContent;
import com.facebook.share.model.ShareContent;
import com.facebook.share.model.ShareHashtag;
import com.facebook.share.model.ShareLinkContent;
import com.facebook.share.model.ShareOp... | true |
4abea0825b3f6f3101d378430b6cb17c3ca21dd9 | Java | 744719042/misc2 | /app/src/main/java/com/example/misc2/BugFixActivity.java | UTF-8 | 4,947 | 2.390625 | 2 | [] | no_license | package com.example.misc2;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.example.misc2.utils.ExceptionUtils;
import java.io.File;
import... | true |
4f5607870c0a3cdd143af2f805f2b0fefc57d4e1 | Java | Phenix-Collection/Android-6.0-packages | /code/apps/FileExplorer/src/com/sprd/fileexplorer/util/NotifyManager.java | UTF-8 | 1,751 | 2.734375 | 3 | [] | no_license | package com.sprd.fileexplorer.util;
import android.content.Context;
import android.os.Handler;
import android.widget.Toast;
public class NotifyManager {
private static final int TOAST_LONG_DELAY = 3500;
private static final int TOAST_SHORT_DELAY = 2000;
private static NotifyManager mManager;
... | true |
b351ea4c3f930002792a6b353f15b54dd0371df4 | Java | kalia305/ServletProgram | /RaliwayTicketReservation_LayeredApllication/src/kcp/servlet/bo/CustomerBO.java | UTF-8 | 1,305 | 2.3125 | 2 | [] | no_license | package kcp.servlet.bo;
public class CustomerBO {
long PNRno;
double price, distance, discountAmount,totalPrice;
public double getTotalPrice() {
return totalPrice;
}
public void setTotalPrice(double totalPrice) {
this.totalPrice = totalPrice;
}
String customerName, source, destination;
pu... | true |
310a7c900a33d088ebbf36014e712baee965384f | Java | iDeliver1/iceHrmObjectModel | /IceHrmObjectModel/src/test/java/testcase/TC001_iceHrmAttendenceTest.java | UTF-8 | 4,250 | 2.328125 | 2 | [] | no_license | package testcase;
import org.testng.Assert;
import org.testng.annotations.Test;
import base.TestBase;
import pages.AttendancePage;
import pages.HomePage;
import pages.LeavePage;
import pages.LoginPage;
public class TC001_iceHrmAttendenceTest extends TestBase{
<<<<<<< HEAD
LoginPage pgLogin;
HomePage pgHome;
Attend... | true |
dfa5bfaf30e8caee48359e698149d985e1b730de | Java | xbhou/study_test | /src/main/java/cn/study/jdk/IDCard/IDCardComplete.java | UTF-8 | 2,404 | 2.953125 | 3 | [] | no_license | /**
* @author xiaobin.hou
* @create 2018-07-02 15:15
**/
package cn.study.jdk.IDCard;
import cn.study.jdk.util.DateUtils;
import cn.study.jdk.util.IdcardValidator;
import java.util.Calendar;
public class IDCardComplete {
public static void main(String[] args) {
IdcardValidator validator = new Idcard... | true |
db26ace6add70fd947ef73f59854a101ed00793e | Java | sqlancer/sqlancer | /src/sqlancer/materialize/ast/MaterializePOSIXRegularExpression.java | UTF-8 | 1,615 | 2.625 | 3 | [
"MIT"
] | permissive | package sqlancer.materialize.ast;
import sqlancer.Randomly;
import sqlancer.common.ast.BinaryOperatorNode.Operator;
import sqlancer.materialize.MaterializeSchema.MaterializeDataType;
public class MaterializePOSIXRegularExpression implements MaterializeExpression {
private MaterializeExpression string;
privat... | true |
8fac686e9e54ea6d7445fd9421e7a9bd98d62384 | Java | GHMarcianoR/AlinhadorOnto | /src/br/ufjf/Ancoragem.java | UTF-8 | 11,105 | 2.34375 | 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 br.ufjf;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayLi... | true |
8e82825dc13e0f907bbfc02514607db6f9ea816d | Java | aprilshenju/babybaby | /umeijia/src/main/java/com/umeijia/util/FileUtils.java | UTF-8 | 5,563 | 3.15625 | 3 | [] | no_license | package com.umeijia.util;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
/**
* Created by Administrator on 2016/6/24.
*/
public class FileUtils {
/**
* the traditional io way
*
* @param filename
* @return
* @throws ... | true |
8d2f557f6aa8e1ae96b1a2e5072b26c4fd3bacd9 | Java | guilhermejccavalcanti/sourceeis | /MergeConflictParserAndAnalyser/src/cin/ufpe/br/util/ConflictsCollector.java | UTF-8 | 4,418 | 2.453125 | 2 | [] | no_license | package cin.ufpe.br.util;
import java.io.IOException;
import java.util.ArrayList;
import org.eclipse.jdt.core.dom.ASTParser;
import cin.ufpe.br.parser.Parsed;
import cin.ufpe.br.parser.Parser;
public final class ConflictsCollector {
public static ArrayList<MergeConflict> collect(String filename) throws IOExceptio... | true |
93cc2a1c6c5845be42f0ca980814fa2dac6a36dc | Java | febbyftrp/Shopistic-Project | /app/src/main/java/mmu/edu/my/shopistic/model/RecentlyViewed.java | UTF-8 | 1,604 | 2.515625 | 3 | [] | no_license | package mmu.edu.my.shopistic.model;
public class RecentlyViewed {
String name;
String description;
String price;
String size;
String colour;
int imageUrl;
int bigimageurl;
public RecentlyViewed(String name, String description, String price, String size, String colour, int
i... | true |
5e84e35415620f25624c05c68f0f9d4976a179cf | Java | fight4gold/Playground | /src/test/java/net/fratzlow/jdk/Java8Test.java | UTF-8 | 2,228 | 3 | 3 | [] | no_license | package net.fratzlow.jdk;
import org.junit.Assert;
import org.junit.Test;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
/**
* //... | true |
1c4d27d395bf20e752c936a8cd25f6d260d34a8c | Java | tech-interview-prep/technical-interview-preparation | /src/utils/Interval.java | UTF-8 | 1,203 | 3.359375 | 3 | [] | no_license | package utils;
import java.util.ArrayList;
import java.util.List;
public class Interval {
public int start;
public int end;
public Interval() {
start = end = 0;
}
public Interval(int s, int e) {
start = s;
end = e;
}
public String toString() {
return "[" +... | true |
b1dba244b32efb606d549852845053f9fb218917 | Java | hhz1992/leetcode | /src/hashTable/No166_FractiontoRecurringDecimal.java | UTF-8 | 1,104 | 3.046875 | 3 | [] | no_license | package hashTable;
import java.util.HashMap;
/**
* Created by Huanzhou on 2016/2/22.
*/
public class No166_FractiontoRecurringDecimal {
public String fractionToDecimal(int numerator, int denominator) {
if(numerator == 0 )
return "0";
StringBuilder sb = new StringBuilder();
... | true |
d3f828e0608e36bd39ef679f333625a4968180f1 | Java | epam/cloud-pipeline | /docker-comp-scan/src/test/java/com/epam/dockercompscan/owasp/analyzer/RPackageAnalyzerTest.java | UTF-8 | 2,054 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/)
*
* 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 requ... | true |
48404e98ec9302389f70f14b0a1dd1ea76ad8318 | Java | littcai/littcore-codegen | /src/main/java/com/littcore/codegen/model/Func.java | UTF-8 | 1,201 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.littcore.codegen.model;
public class Func
{
/**
* 编号.
*/
private String code;
private String fullCode;
/**
* 标题.
*/
private String title;
private String descr;
/**
*
*/
private boolean isPermission = true;
/**
* @return the code
*/
public String getCode()
{
retur... | true |
37525cb36d77a91841c9bc92abe3675f6e202f3d | Java | lzl471954654/IQIYI_OPEN_API_TEST | /app/src/main/java/com/lzl/iqiyi_open_api_test/MainActivity.java | UTF-8 | 10,264 | 1.992188 | 2 | [] | no_license | package com.lzl.iqiyi_open_api_test;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.wi... | true |
24f437f2aede51f020127a211ce6e8da77da0bb0 | Java | SimonVT/cathode | /cathode/src/main/java/net/simonvt/cathode/ui/suggestions/shows/ShowSuggestionsFragment.java | UTF-8 | 2,030 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2016 Simon Vig Therkildsen
*
* 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 ... | true |
77743ae533d4bd764f76af5b3ee770812f54b1b4 | Java | jaxonjma/Prueba | /Prueba/src/main/java/com/jaxon/prueba/service/IStudentService.java | UTF-8 | 542 | 1.914063 | 2 | [] | no_license | package com.jaxon.prueba.service;
import java.util.List;
import com.jaxon.prueba.model.Student;
import com.jaxon.prueba.service.exceptions.BDException;
import com.jaxon.prueba.service.exceptions.ElementNotFoundException;
public interface IStudentService {
List<Student> getAllStudents();
void saveStudentsInDataB... | true |
7557943a0884901463ee3bae4d4db8c78f2356f4 | Java | laura0luc/Collaborative | /src/edu/itesm/db/TaskTable.java | UTF-8 | 1,070 | 2.28125 | 2 | [] | no_license | package edu.itesm.db;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
public class TaskTable {
public static final String TABLA_TASKS = "tasks";
public static final String ID_COLUMN = "_id";
public static final String NAME_COLUMN = "name";
public static final String COLAB_COLUMN = "collabo... | true |
b75d33aa83a534b52fecda0188f63a1a5acf34c0 | Java | ngohado/MuaBanNhaDat | /app/src/main/java/com/qtd/muabannhadat/model/ApartmentCategory.java | UTF-8 | 683 | 2.53125 | 3 | [] | no_license | package com.qtd.muabannhadat.model;
import java.util.ArrayList;
/**
* Created by Dell on 4/9/2016.
*/
public class ApartmentCategory {
private String name;
private ArrayList<Apartment> apartments;
public ApartmentCategory(String name, ArrayList<Apartment> apartments) {
this.name = name;
... | true |
846630af14078ba355cd8313a9b3e03b7bacf1e7 | Java | John-Smile/Practice | /src/main/java/practice/nia/chp5/ReferenceCounting.java | UTF-8 | 395 | 2.109375 | 2 | [] | no_license | package practice.nia.chp5;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.Channel;
public class ReferenceCounting {
public static void main(String[] args) {
Channel channel = null;
ByteBufAllocator allocator = channel.alloc();
ByteBuf buffe... | true |
8810eb7d4d7be63654c7f3281b2dbf1f52651a69 | Java | lilavera/Cucumber-Tests | /cucumberTests/src/test/java/ogorek/NowyUzytkownikSteps.java | UTF-8 | 1,130 | 2.734375 | 3 | [] | no_license | package ogorek;
import cucumber.api.DataTable;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import java.util.Map;
public class NowyUzytkownikSteps {
@Given("^uzytkownik jest na stronie formularzu dodawania nowego uzytkownika$")
public v... | true |
5e5065534265bac0b97e826161b597fe7a12d278 | Java | computerphilosopher/arcus-java-client | /src/main/java/net/spy/memcached/protocol/ascii/BaseGetOpImpl.java | UTF-8 | 7,093 | 2.15625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* arcus-java-client : Arcus Java client
* Copyright 2010-2014 NAVER Corp.
* Copyright 2014-2022 JaM2in Co., Ltd.
*
* 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.apa... | true |
8ff41bb8bc1d0f9f75c0dadc8cfb5dcda6f29d34 | Java | WuttipatNilsiri/Payroll | /src/TestCase/PayrollDBTest.java | UTF-8 | 2,921 | 2.53125 | 3 | [] | no_license | package TestCase;
import static org.junit.Assert.*;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import Command.AddEmployeeTransaction;
import Command.Command;
import DB.AccountDB;
import DB.EmployeeDB;
import DB.PayrollDB;
import Entity.EmployeeType;
import Entity... | true |
975adfa19dc323c4d6ce139f6760ffe26023580a | Java | alexbobp/TinkeredConstructer | /src/main/java/slimeknights/tconstruct/library/materials/ExtraMaterialStats.java | UTF-8 | 1,132 | 2.390625 | 2 | [
"MIT"
] | permissive | package slimeknights.tconstruct.library.materials;
import com.google.common.collect.ImmutableList;
import java.util.List;
import slimeknights.tconstruct.library.Util;
public class ExtraMaterialStats extends AbstractMaterialStats {
@Deprecated
public final static String TYPE = MaterialTypes.EXTRA;
public fin... | true |
434dea9a1b5c312ec593c1736832269811528f04 | Java | lwlshawn/ip | /src/main/java/duke/TaskList.java | UTF-8 | 884 | 3.125 | 3 | [] | no_license | package duke;
import java.util.ArrayList;
import duke.task.Task;
/**
* Class to manage the list of users tasks during an application run. Class is basically an alias for
* Java's arraylist with a more limited interface, implemented due to course requirements.
*/
public class TaskList {
private ArrayList<Task>... | true |
fc8c0e120fe954ee2ffd4c1d8a897b3597d67094 | Java | Iskieria/super-computing-machine | /src/main/java/com/example/siobhan/trafficapp/MainActivity.java | UTF-8 | 3,775 | 2.390625 | 2 | [] | no_license | package com.example.siobhan.trafficapp;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;... | true |
b79f9a299f123740fd530674009a70b6218cbc0c | Java | meetkiki/data-structure | /stack/src/main/java/MyQueue.java | UTF-8 | 1,063 | 4 | 4 | [] | no_license | import java.util.Stack;
/**
* 用栈实现队列
*/
class MyQueue {
Stack<Integer> data1 = new Stack<>();
Stack<Integer> data2 = new Stack<>();
MyQueue() {}
/** Push element x to the back of queue. */
void push(int x) {
while (!data1.empty()) {
data2.push(data1.peek()); data1.pop();
... | true |
b0ac3fa25af31b55bfba882f42f9ddb12ae8d8fa | Java | janscheidegger/mqtt-client | /src/main/java/mqttclient/MqttTestMain.java | UTF-8 | 860 | 2.265625 | 2 | [] | no_license | package main.java.mqttclient;
import main.java.mqttclient.mqtt.MqttAccessor;
import org.eclipse.paho.client.mqttv3.MqttException;
/**
* mqqt-client
*
* @author jan
*/
public class MqttTestMain {
public static void main(String[] args) {
MqttAccessor mqttAccessor = MqttAccessor.getInstance();
... | true |
8fb841dfe9f72eebbc05a140681ede4035b6e07b | Java | tusharsuthar4828/HomeMART | /app/src/main/java/com/homemart/models/CategoryToDisplay.java | UTF-8 | 356 | 2.328125 | 2 | [] | no_license | package com.homemart.models;
import com.thoughtbot.expandablerecyclerview.models.ExpandableGroup;
import java.util.List;
public class CategoryToDisplay extends ExpandableGroup<Product> {
String mCategoryName;
List<Product> mProductsList;
public CategoryToDisplay(String title, List<Product> items) {
... | true |
7ff970886bc53b4d799eb1a29387e7f86b76fff2 | Java | nycjay/flyway | /flyway-sqlserver/src/main/java/org/flywaydb/database/sqlserver/synapse/SynapseTable.java | UTF-8 | 2,447 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) Red Gate Software Ltd 2010-2022
*
* 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 appli... | true |
0434a751d5fdda86985369c57aec1b71dce17265 | Java | lzl471954654/WanXiyouApp | /app/src/main/java/com/lzl/wanxiyouapp/Moudle/MoudleInterface/IXuptManagement.java | UTF-8 | 444 | 1.570313 | 2 | [] | no_license | package com.lzl.wanxiyouapp.Moudle.MoudleInterface;
import com.lzl.wanxiyouapp.CallBack;
import okhttp3.Call;
import okhttp3.Callback;
/**
* Created by LZL on 2017/7/20.
*/
public interface IXuptManagement {
public void userLogon(String username,String password,String cookie);
public void userLogon(Stri... | true |
05138a261236387839b8cefa537dffd1b0c818db | Java | carlhume/summer-game-server | /src/main/java/com/tds/server/MapData.java | UTF-8 | 304 | 2.296875 | 2 | [] | no_license | package com.tds.server;
public class MapData {
private Terrain terrain;
public MapData() {
this.terrain = new Terrain();
}
public MapData( Terrain newTerrain ) {
this.terrain = newTerrain;
}
public Terrain getTerrain() {
return this.terrain;
}
}
| true |
47b4ad9174f86e4d95655d62fff04a551a49fba8 | Java | imayavgi/ignite-exp | /src/main/java/uiak/exper/ignite/service/PriceService.java | UTF-8 | 192 | 1.796875 | 2 | [] | no_license | package uiak.exper.ignite.service;
import javax.cache.CacheException;
/**
* Created by imaya on 8/14/16.
*/
public interface PriceService {
void updatePrice() throws CacheException;
}
| true |
0a07dd5a49635266b8952e79f6cd1e8baa65f39a | Java | rshubhankar/crossover-test | /src/com/exam/config/ConfigurationChangeListener.java | UTF-8 | 4,060 | 2.875 | 3 | [] | no_license | package com.exam.config;
import static java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY;
import java.io.File;
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.WatchEvent;
import java.nio.file.WatchKey;
import java.nio.file.Watc... | true |