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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c4de37bab04eefa3f610edb9836b36bf5cecbe5f | Java | mono83/xray-java | /src/main/java/com/github/mono83/xray/ArgsArray.java | UTF-8 | 1,231 | 3.125 | 3 | [] | no_license | package com.github.mono83.xray;
import java.util.Arrays;
import java.util.Iterator;
import java.util.Objects;
import java.util.Optional;
/**
* Arguments collection, implemented as array.
* This implementation is not effective on CPU,
* but has very low memory footprint.
* <p>
* Should not be used on large collec... | true |
fff10cc3be3f83331c10c2bfe6ff8f27e153088d | Java | dongl-dl/lcn-parent | /lcn-handlingexception/src/main/java/com/dongl/handlingexception/LcnHandlingexceptionApplication.java | UTF-8 | 448 | 1.554688 | 2 | [] | no_license | package com.dongl.handlingexception;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class LcnHandlingexceptionApplication {
... | true |
fae1b0469bb949398acb57ba13cbb1d664230c5f | Java | sbenavidesvazquez/Examen-2-ev-libreria | /src/examcodl/Metodos.java | UTF-8 | 3,767 | 2.8125 | 3 | [] | no_license | package examcodl;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import twitter4j.DirectMessage;
import twitter4j.Query;
import twitter4j.QueryResult;
import twitter4j.Status;
import twitter4j.Twitter;
import twitter4j.TwitterException... | true |
f7b881cfe3927d6f01361e82d58bed526b9f46da | Java | OneDeepFish/ImoocMarket | /app/src/main/java/com/imooc/util/L.java | UTF-8 | 350 | 1.84375 | 2 | [] | no_license | package com.imooc.util;
import android.util.Log;
import com.imooc.imoocmarket.BuildConfig;
/**
* author : 3S
* date : 2019/12/5
* version: 1.0
*/
public class L {
private static boolean isDebug = BuildConfig.DEBUG;
public static void d(String tag, String msg) {
if (isDebug) {
Log.d( ... | true |
5882f9f601487548fe9e80d1706bf852d9763fec | Java | garrett9/cs555 | /CS555Project/src/edu/stevens/cs555/project/processors/FewerThan15Siblings.java | UTF-8 | 679 | 2.6875 | 3 | [] | no_license | package edu.stevens.cs555.project.processors;
import edu.stevens.cs555.project.Family;
import edu.stevens.cs555.project.GEDCOMValidationException;
import edu.stevens.cs555.project.Individual;
public class FewerThan15Siblings extends GEDCOMProcessor {
public FewerThan15Siblings() {
super("US15");
}
@Override
... | true |
b56772ec3a6c1da106f44f292d0d54f72de7e334 | Java | DuncanDoyle/alexa-coolstore-microservice | /src/main/java/com/redhat/coolstore/alexa/ShoppingCartOutputSpeechFactory.java | UTF-8 | 1,600 | 2.53125 | 3 | [] | no_license | package com.redhat.coolstore.alexa;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.amazon.speech.ui.PlainTextOutputSpeech;
import com.redhat.coolstore.api_gateway.model.ShoppingCart;
import com.redhat.coolstore.api_gateway.model.ShoppingCartItem;
public class ShoppingCartOutputSpeechFactory impl... | true |
8d50335f1f1348ff97a270649325f9c96f4f1b7c | Java | Jgoga/sworsorc | /doc/hw3/B/Tables/EmissaryResult/EmissaryResult.java | UTF-8 | 1,381 | 3.40625 | 3 | [] | no_license | /* Jay Drage
EmissaryResult.java
Emissary Results Table
Swords and Sorcery
*/
import java.util.*;
public class EmissaryResult {
int result;
boolean eaten;
// test if working
public static void main( String [] args ){
EmissaryResult eR = new EmissaryResult();
for( int i = -3 ; i < 6 ; i++ ){
eR.ge... | true |
d30262a35384adb6a834bd988a927c03894283db | Java | Richard1112/Twproject-2017 | /Teamwork/src/com/twproject/exchange/msproject/businessLogic/ProjectImportExportControllerAction.java | UTF-8 | 16,453 | 1.648438 | 2 | [] | no_license | package com.twproject.exchange.msproject.businessLogic;
import com.twproject.operator.TeamworkOperator;
import com.twproject.resource.Person;
import com.twproject.resource.Resource;
import com.twproject.security.RoleTeamwork;
import com.twproject.security.TeamworkPermissions;
import com.twproject.task.Assignmen... | true |
840fef17ed6f56d116b725843a676610d55c377b | Java | goodev/liudongbaoproject | /com.mymoney/src/gv.java | UTF-8 | 2,772 | 1.734375 | 2 | [] | no_license | import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
public class gv
{
public static void a(Context paramContext, int paramInt1, int paramInt2, CharSequence paramCharSequence1, CharSequence paramCharSequence2, CharSequence p... | true |
101c434db3c0b4756781d7820e8cf4198f9cb314 | Java | liqiang2199/crazymusic | /app/src/main/java/com/music/utils/ShopBuyDialog.java | UTF-8 | 8,823 | 1.601563 | 2 | [] | no_license | package com.music.utils;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.Display;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.v... | true |
7be86fe307592dfab47d37398bae3f2690d7726a | Java | istar1978/centit-meta-form | /meta-form-module/src/test/java/com/centit/metaform/formaccess/TestJSON.java | UTF-8 | 993 | 2.28125 | 2 | [] | no_license | package com.centit.metaform.formaccess;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.centit.support.database.metadata.SimpleTableField;
import com.centit.support.xml.XMLObject;
public class TestJSON {
public static void getAString(){
SimpleTableField pc = new Simpl... | true |
b4e44c6996e807abb230d35df231a12c25f507b0 | Java | iamreshkumar/Core--java | /String Handling/src/com/amresh/core/Test_24.java | UTF-8 | 562 | 3.3125 | 3 | [] | no_license | /* Q.) Write a program to reverse the words in string objects the string objects
i/p----> How are You ?
o/p----> You?are How
*/
package com.amresh.core;
import java.util.Scanner;
public class Test_24 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
Sys... | true |
b6c0575bcf715de12d4e5b430d7f59baecd2a608 | Java | 26597925/growingio-sdk-android-autotracker | /growingio-tracker/src/main/java/com/growingio/android/sdk/track/listener/ListenerContainer.java | UTF-8 | 1,565 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 Beijing Yishu Technology 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | true |
2787b3a50eb20983992b1c09bdcd0fe4caa6abe6 | Java | Alexph7/AulaHeranca | /src/com/alex/aulaheranca/ComissaoEmpregado.java | UTF-8 | 2,710 | 3.25 | 3 | [] | no_license | package com.alex.aulaheranca;
public class ComissaoEmpregado {
private final String nome;
private final String sobreNome;
private final String numSeguroSocial;
private double vendaBruta;
private double taxaComissao; //porcentagem da comissão
public ComissaoEmpregado(St... | true |
3215e6e8bd7b4d269a8b025dcd6a310566f3107c | Java | andersonbrss/condominioBackEnd | /src/main/java/com/zends/condominio/ata/service/AtaServiceImp.java | UTF-8 | 336 | 1.742188 | 2 | [] | no_license | package com.zends.condominio.ata.service;
import java.time.LocalDate;
import org.springframework.http.ResponseEntity;
import com.zends.condominio.comum.service.AbstractService;
public interface AtaServiceImp<T> extends AbstractService<T>{
ResponseEntity<?> buscarAtaData(LocalDate dataInicio, LocalDate ... | true |
33d126443afce21a626638daa7870ee4e4fef927 | Java | JamisonBice/Week6_JPAJoinsProject | /src/main/java/controller/ElectricCarController.java | UTF-8 | 4,164 | 2.78125 | 3 | [] | no_license | package controller;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.persistence.TypedQuery;
import model.ElectricCar;
/**
* @author Jamison Bice - jdbice
* CIS175 - Fall 2021
* Sep 15, 2021
*/
public... | true |
a4da7ecb57f7b4ea875b4a2238290cfd08198d68 | Java | sbt-java-school/pavel-hometasks | /src/main/java/com/norg/home18/chat/server/ChatConnectionServer.java | UTF-8 | 3,968 | 2.890625 | 3 | [] | no_license | package com.norg.home18.chat.server;
import com.norg.home18.chat.exception.WrongInputException;
import com.norg.home18.chat.server.model.ChatCommand;
import com.norg.home18.chat.server.model.ChatMessage;
import com.norg.home18.chat.server.dao.MessageDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import... | true |
9e6b2157eb9d4f34fa8ad0a25c1fc8b658968439 | Java | HuiyuYun/spring-security-oauth2.0-distributed | /security-distributed-uaa/src/main/java/org/yunhuiyu/security/distributed/uaa/dao/UserDao.java | UTF-8 | 1,616 | 2.28125 | 2 | [] | no_license | package org.yunhuiyu.security.distributed.uaa.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import org.yunhuiyu.security.distributed.uaa... | true |
b1cbb868d389ab40d514c6bdfea7684095916723 | Java | racingss/nuthabit | /nuthabit/src/main/java/adon/word/BookServlet.java | UTF-8 | 1,978 | 2.34375 | 2 | [] | no_license | package adon.word;
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;
/**
* Servlet implementation class BookServlet
*/
@Web... | true |
8a906717f703b128e4494004c311d130828cea3e | Java | moutainhigh/lotto-skeleton-wl | /src/main/java/com/hhly/skeleton/cms/operatemgr/vo/OperateActivityVO.java | UTF-8 | 6,391 | 1.914063 | 2 | [] | no_license | package com.hhly.skeleton.cms.operatemgr.vo;
import static com.hhly.skeleton.base.valid.GroupValue.ADD;
import static com.hhly.skeleton.base.valid.GroupValue.UPD;
import java.util.Date;
import com.hhly.skeleton.base.valid.Group;
import com.hhly.skeleton.base.valid.GroupValue;
import com.hhly.skeleton.base.valid.LenR... | true |
6a6c74aa7e80f2e141eadf69f92dcafdaef8fa1e | Java | samoverton/analytics-connector-core | /src/main/java/com/acunu/analytics/ingest/FlowSource.java | UTF-8 | 3,173 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | package com.acunu.analytics.ingest;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import org.slf4j.Logger;
import org.slf4j.LoggerF... | true |
f8c58e894ceedd7c2ef91411c1a91b3e9829c7d7 | Java | popluation-health/decision-services | /src/main/java/org/pophealth/client/AlertService.java | UTF-8 | 415 | 1.820313 | 2 | [
"MIT"
] | permissive | package org.pophealth.client;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import org.pophealth.model.Alert;
@RegisterRestClient
public interface AlertService {
@POST
@P... | true |
2042bf5f6a801c1b76a62f5d824b8be88011c2b4 | Java | jacktian/TaiHuWan | /src/com/gloria/hbh/util/FileUtils.java | UTF-8 | 13,006 | 2.625 | 3 | [] | no_license | package com.gloria.hbh.util;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.... | true |
c09492a586fc5e40bc423105934f2b8b129ad895 | Java | ohwer/mahjong4j | /src/main/java/org/mahjong4j/MahjongBoard.java | UTF-8 | 238 | 1.84375 | 2 | [
"MIT"
] | permissive | package org.mahjong4j;
/**
* @author yu1ro
*/
public class MahjongBoard {
private GeneralSituation generalSituation;
private Player playerA;
private Player playerB;
private Player playerC;
private Player playerD;
}
| true |
543dddacbb671d5b1f9f051ea4159a5ac3278251 | Java | xPh3n0m/nfc_projects | /Event_Manager_NFC/src/epfl/tnyfeler/eventmanager/model/events/Event.java | UTF-8 | 1,311 | 2.6875 | 3 | [] | no_license | package epfl.tnyfeler.eventmanager.model.events;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Event {
private final StringProperty eventName;
private fi... | true |
1a6e5377007ce8e96e77d18c981f79a8d348a27e | Java | BKSum/leetcode | /src/test/java/bksum/leetcode/fb/array/ValidNumberTest.java | UTF-8 | 1,551 | 2.5625 | 3 | [] | no_license | package bksum.leetcode.fb.array;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ValidNumberTest {
private ValidNumber vn;
@Before
public void setUp() {
vn = new ValidNumber();
}
@Test
public void isNumberZero() {
assertTrue(vn... | true |
0895534e21be5fdf694ef02d4b179e6b4a3a8ac1 | Java | aist2000/ML-public | /lite/examples/smart_reply/android/app/src/javatests/org/tensorflow/lite/examples/smartreply/SmartReplyTest.java | UTF-8 | 2,109 | 2.203125 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | /* Copyright 2019 The TensorFlow Authors. 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 law or a... | true |
d4627046153038902d9d4c1ae268cf05367b4771 | Java | hornyja4/cc16-java-aop-multithreading | /src/main/java/cz/codecamp/aop/service/TransactionManagerInterface.java | UTF-8 | 141 | 1.734375 | 2 | [] | no_license | package cz.codecamp.aop.service;
public interface TransactionManagerInterface {
void begin();
void commit();
void rollback();
}
| true |
dcbccf5f07248ec26a234e9cc58286e61d2bafff | Java | Irthir/application-mobile-rendu | /app/src/main/java/com/example/schlotter_romain_liste_personnalise_avec_recherche/Detail.java | UTF-8 | 2,474 | 2.375 | 2 | [] | no_license | package com.example.schlotter_romain_liste_personnalise_avec_recherche;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import and... | true |
53dc414163a2a25ff67b2407a59ca0728b343e18 | Java | utopia-group/SmartPulseTool | /trunk/source/Library-Automata/src/de/uni_freiburg/informatik/ultimate/automata/petrinet/unfolding/EsparzaRoemerVoglerOrder.java | UTF-8 | 1,317 | 2.984375 | 3 | [] | no_license | package de.uni_freiburg.informatik.ultimate.automata.petrinet.unfolding;
/**
* Order presented by Esparza, Römer, Vogler in 1996 TACAS,
* <a href="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.1.9584">
* An improvement of McMillan's unfolding algorithm</a>, definition 4.1.
*
* @author Julian Jarecki (j... | true |
2367ff46e26afdadecfce45173775dd936350b9f | Java | jiujin666/Kuang | /app/src/main/java/com/example/kuangjia/ui/activitys/MainActivity.java | UTF-8 | 3,377 | 2.125 | 2 | [] | no_license | package com.example.kuangjia.ui.activitys;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;
import com.example.kuangjia.R;
import com.example.kuangjia... | true |
42b9894d1c29c83c00248b1a5ee964ff6df34c11 | Java | mariskamartin/mtgInventory | /src/main/java/com/gmail/mariska/martin/mtginventory/listeners/EventBusManager.java | UTF-8 | 1,835 | 2.6875 | 3 | [
"MIT"
] | permissive | package com.gmail.mariska.martin.mtginventory.listeners;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.apache.log4j.Logger;
import com.google.common.eventbus.DeadEvent;
import com.google.common.eventbus.EventBus;
impor... | true |
e6276c224c39f73b10591fd718be4430a7a5423a | Java | java-qinhao/demo | /demo-aop/src/main/java/com/luban/dao/UserDao.java | UTF-8 | 141 | 1.554688 | 2 | [] | no_license | package com.luban.dao;
import org.springframework.stereotype.Repository;
@Repository
public interface UserDao {
public void query();
}
| true |
cdb427d0dd6126d3f725cece8539a695c9ddf32e | Java | yellowbee/wspace_interview | /interview/src/com/amazon/llist/ReverseLinkedList.java | UTF-8 | 977 | 3.5 | 4 | [] | no_license | package com.amazon.llist;
import com.leetcode.oj.common.ListNode;
import com.leetcode.oj.common.ListUtilities;
public class ReverseLinkedList {
public static void main(String[] args) {
int[] arr = {1,2,3,4,5,6};
ListNode head = ListUtilities.arrayToList(arr);
ListUtilities.printList(head);
ListNode ... | true |
2f58c17a05df89b6d1a909e546ef3f9adec8232d | Java | wilson-castro/App-Academia-POO | /TopFit/src/paineis/PesquisarModalidade.java | UTF-8 | 22,748 | 2.21875 | 2 | [] | no_license |
package paineis;
import Beans.BeansBuscarFuncionario;
import Beans.BeansModalidades;
import DAO.FuncionarioDAO;
import DAO.ModalidadesDAO;
import Frames.EditarModalidade;
import controle.conexao;
import static controle.conexao.getConnection;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLEx... | true |
03c173e614d2c625d34e1ebb7bb4daf6ba466ad1 | Java | google-code/4delivery | /delivery_project/src/main/java/com/nc/delivery_project/client/department_details/DepartmentDetailsPresenter.java | UTF-8 | 843 | 1.984375 | 2 | [] | no_license | package com.nc.delivery_project.client.department_details;
import com.nc.delivery_project.client.Presenter;
import com.nc.delivery_project.shared.proxy.CityProxy;
import com.nc.delivery_project.shared.proxy.CountryProxy;
import com.nc.delivery_project.shared.proxy.DepartmentProxy;
import com.nc.delivery_proj... | true |
5ca9740a0d8bc0755ad4d2f11c2dcb4058efa7c3 | Java | listen-1994/LeetCode | /src/DynamicProgramming/WildcardMatching.java | UTF-8 | 1,550 | 3.515625 | 4 | [] | no_license | package DynamicProgramming;
/**
* LeetCode 第44题
* 通配符匹配
*/
public class WildcardMatching {
boolean[][] sav;
public boolean isMatch(String s ,String p){
sav=new boolean[s.length()+1][p.length()+1];
sav[0][0]=true;
for(int i=1;i<=p.length();i++){
if(p.charAt(i-1)=='*'){
... | true |
a6ee136098699b48a6c2ee4e6d496f4f59669069 | Java | alexivaner/GadgetX-Android-App | /src/com/inponsel/android/widget/EFStrokeTextView.java | UTF-8 | 1,653 | 2.34375 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.inponsel.android.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.text.TextPaint;
import andro... | true |
90108c316a9f648229598847473f066e168057fb | Java | HKWisdom/WisdomTakeout | /app/src/main/java/com/wisdom/takeout/ui/activity/AddOrEditAddressActivity.java | UTF-8 | 12,040 | 1.804688 | 2 | [] | no_license | package com.wisdom.takeout.ui.activity;
import android.content.DialogInterface;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.t... | true |
2f1d1ad481a76c2b6ca15bdc0ff5312a4be1a076 | Java | project-snail/snailmq | /snailmq-server/src/main/java/com/snail/ServerApplication.java | UTF-8 | 426 | 1.5 | 2 | [] | no_license | package com.snail;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @version V1.0
* @author: csz
* @Title
* @Package: com.snail
* @Description:
* @date: 2020/12/13
*/
@SpringBootApplication
public class ServerApplication {
public... | true |
cded40874f94bc86ba260bd7a36622a71ba1cf3c | Java | klmjr/Quiz1 | /src/baseball/Player.java | UTF-8 | 2,413 | 2.984375 | 3 | [] | no_license | package baseball;
public class Player {
private int Hits;
private int AB;
private int BB; //walks
private int HBP; //Hit by Pitch
private int SF;
private int dbl;
private int triple;
private int HR;
public Player(int Hits, int AB, int BB, int HBP, int SF, int dbl, int triple, int HR) {
supe... | true |
276f3e71535838bbd9770d050406fca2d0d9c375 | Java | bartimaeusnek/crops-plus-plus | /src/main/java/com/github/bartimaeusnek/cropspp/crops/cpp/trees/InstalledTreesGetter.java | UTF-8 | 7,965 | 1.640625 | 2 | [
"BSD-3-Clause",
"MIT"
] | permissive | package com.github.bartimaeusnek.cropspp.crops.cpp.trees;
import com.github.bartimaeusnek.croploadcore.OreDict;
import com.github.bartimaeusnek.croploadcore.config;
import com.github.bartimaeusnek.cropspp.ConfigValues;
import com.github.bartimaeusnek.cropspp.Cropspp;
import cpw.mods.fml.common.event.FMLPreInitializati... | true |
bba948d716780dbfa748f1472c33b2858749b373 | Java | igordamiano/java9 | /src/br/com/igor/capitulo5/EmissorSubscriberFilter.java | ISO-8859-1 | 931 | 3.15625 | 3 | [] | no_license | package br.com.igor.capitulo5;
import java.util.Scanner;
import java.util.concurrent.SubmissionPublisher;
public class EmissorSubscriberFilter {
public static void main(String[] args) {
SubmissionPublisher<NF> publisher = new SubmissionPublisher<NF>();
NFSubscriber subscriber = new NFSubscriber();
NFFil... | true |
6458244c27398bed64995aacbceb33d9d1432113 | Java | diael01/reservations-AngularJS-Java-MySQL | /reservations-back/src/main/java/com/reservations/back/models/Facility.java | UTF-8 | 404 | 1.8125 | 2 | [] | no_license | package com.reservations.back.models;
public class Facility {
public int id;
public String name;
public String address;
public String phone;
public String city;
public String country;
public String zipcode;
public int courts;
public Boolean lights;
public String courtTypes;
... | true |
79474a210a66c8a6cb3cee0e8547db5f2b1f019e | Java | yp59/test | /exif/src/exif/bangjungsick.java | UTF-8 | 314 | 2.15625 | 2 | [] | no_license | package exif;
public class bangjungsick {
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int i=0;i<=10;i++) {
for(int j=0;j<=10;j++) {
if((2*i+4*j)==10) {
System.out.println(i+" "+j);
}
}
}
}
}
// | true |
101ad12662a51d2cacc74e350501ec1fbedfc35a | Java | itcrazy0717/leetcode | /src/main/java/com/leetcode/crazy/link/SwapPairs.java | UTF-8 | 1,415 | 3.96875 | 4 | [] | no_license | package com.leetcode.crazy.link;
/**
* @author: dengxin.chen
* @date: 2020-08-11 19:09
* @description:两两交换链表的节点
*/
public class SwapPairs {
/**
* 给定一个链表,两两交换其中相邻的节点,并返回交换后的链表。
* <p>
* 你不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。
*
* 示例:
* 给定 1->2->3->4, 你应该返回 2->1->4->3.
* 链接:https://leetcode-cn.com/problems/... | true |
550ec1fe26013cfe3448c780ce353967352b1e84 | Java | adibhat369/softplasticwarrior_app | /app/src/main/java/com/example/softplasticwarrior1/RecycleList.java | UTF-8 | 4,773 | 2.265625 | 2 | [] | no_license | package com.example.softplasticwarrior1;
import android.Manifest;
import android.content.Context;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import java.io.Buffere... | true |
70a4aebd1586960bf0f63679ee55e381f0d13c97 | Java | MaxLazyrin/Public | /БГПС/Лаб 5/service-bus-master/core/src/main/java/net/progruzovik/bus/replication/model/Subscription.java | UTF-8 | 1,246 | 2.453125 | 2 | [] | no_license | package net.progruzovik.bus.replication.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Subscription {
private String address;
private final String entityName;
private final SubscriptionType type;
public Subscription(@JsonProperty("address") String address,
... | true |
9066552b401c7c6b11717abc8a5a1a13f12e76c5 | Java | aantonello/jguime | /src/x/android/xml/CXmlFile.java | UTF-8 | 12,381 | 2.8125 | 3 | [] | no_license | /**
* \file
* Defines the CXmlFile class.
*
* \author Alessandro Antonello <aantonello@paralaxe.com.br>
* \date October 06, 2010
*
* \par Copyright
* This file is provided in hope that it will be useful to someone. It is
* offered in public domain. You may use, modify or distribute it freely.
*
* The code ... | true |
654c55528fb7d9aa61079bceda497dab5a1ef34b | Java | fcdmeng/comcoscoedi | /com.cosco.edi/src/cosco/vsagent/navigator/NavigatorActionGroup.java | WINDOWS-1252 | 2,424 | 2.28125 | 2 | [] | no_license | package cosco.vsagent.navigator;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.ISha... | true |
0cd35040fb8add8833fab10192437fc06231533c | Java | ElTakuma/pge | /src/main/java/com/codeup/myapp/service/ProfesseurService.java | UTF-8 | 961 | 2.4375 | 2 | [] | no_license | package com.codeup.myapp.service;
import com.codeup.myapp.domain.Professeur;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
/**
* Service Interface for managing {@link Professeur}.
*/
public interface ProfesseurService {
/**
* Sav... | true |
f21a680bb424706443c74065c2f22c32b5592704 | Java | prakashjha18/problem-solving-DSA | /contests/passworddery.java | UTF-8 | 3,332 | 3.96875 | 4 | [] | no_license | // { Driver Code Starts
//Initial Template for Java
/*
Alice wants to secure his bank account details and wants to encrypt his password P. He wants to encrypt it in such a
fashion:-
Suppose P = "zyxabc", he will randomly shuffle his password, then he will concatenate a random string S1 in starting
of P and a random st... | true |
1d7356f5bb211161c047840695e8c9ed04102594 | Java | Royarn/Mini | /src/main/java/com/royarn/mini/config/Result.java | UTF-8 | 356 | 1.859375 | 2 | [] | no_license | package com.royarn.mini.config;
/**
* @author lizq
* @Description: ${todo}
* @date 2018/6/28 14:38
*/
public class Result {
private int code;
private String message;
private Object info;
public Result(int code, String message, Object info) {
this.code = code;
this.message = messag... | true |
15cc17f6f0383af82e83ac8529eaa2bcdbebb61e | Java | green-fox-academy/WinterMan001 | /Week 1/Day 4/src/isitodd.java | UTF-8 | 342 | 3.203125 | 3 | [] | no_license | import java.util.Scanner;
public class isitodd {
public static void main(String[]args){
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
if (1 % 2 ==0) {
System.out.println("The number is even!");
} else {
System.out.println("The number is odd!"... | true |
546cc157f6884e37ba88686a5f0cb322ec8d9236 | Java | rafaguedes/pokeapi | /app/src/main/java/br/com/yourapp/pokeapi/utils/ActivityUtils.java | UTF-8 | 2,257 | 1.984375 | 2 | [] | no_license | package br.com.yourapp.pokeapi.utils;
import android.app.Activity;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;
... | true |
ff9c2d61fd2a0d772e4ef340cf5bd18696c2d5f4 | Java | MobileApplicationDevelopment2018/MAD_Lab04 | /app/src/main/java/it/polito/mad/mad2018/data/UserProfile.java | UTF-8 | 11,357 | 1.835938 | 2 | [] | no_license | package it.polito.mad.mad2018.data;
import android.content.res.Resources;
import android.support.annotation.NonNull;
import android.util.Base64;
import com.google.android.gms.location.places.Place;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.... | true |
353fe4ca334c059823c9ae2aaa8bffae77ff4e80 | Java | henriquebernardo/1VA-TANNUS | /src/atividade4/Main.java | UTF-8 | 953 | 3.4375 | 3 | [] | no_license | package atividade4;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
BombaDaAgua bomba = new BombaDaAgua();
boolean executar = true;
while (executar) {
System.out.println("Digite uma opção")... | true |
86e80829e252e2bc23b6e4e8d5c52cb149647e09 | Java | dbadia/org.openhab.binding.zwave | /src/test/java/org/openhab/binding/zwave/internal/converter/ZWaveAlarmConverterTest.java | UTF-8 | 15,522 | 1.726563 | 2 | [] | no_license | /**
* Copyright (c) 2010-2018 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
pa... | true |
ba4c0d8e4335343f0d08cad0bbb11146d2b8774e | Java | swojcicki/easyuekplan | /src/main/java/pl/krakow/uek/knp/easyuekplan/actions/RootAction.java | UTF-8 | 430 | 1.828125 | 2 | [] | no_license | package pl.krakow.uek.knp.easyuekplan.actions;
import net.sourceforge.stripes.action.DefaultHandler;
import net.sourceforge.stripes.action.Resolution;
import net.sourceforge.stripes.action.UrlBinding;
/**
* Created on: 06.03.13 22:36 <br/>
*
* @author Slawomir Wojcicki
*/
@UrlBinding("/")
public class RootAction ... | true |
924d6b87b06b3a7ebc1053b11eacfdf3231a74c5 | Java | runi95/pocketmonsters | /PokeStats/src/javafx/model/BasePokemon.java | UTF-8 | 1,507 | 2.734375 | 3 | [] | no_license | package javafx.model;
import javafx.util.Pair;
public class BasePokemon {
private String name, image;
private String[] evolutions;
private Type[] type;
private Pair<Integer, Integer> hp, attack, defense, spa, spd, speed;
public BasePokemon(String name, String[] evolutions, Type[] type, String image , Pair<Inte... | true |
2c866debf04e3c2078d61e33b61bf0035a62cde1 | Java | sygns13/sistemafarmaciafacturaelectronica | /Sistema-Farma-PagoElectronico/src/com/org/ws/BolElectronica.java | UTF-8 | 55,617 | 1.914063 | 2 | [] | no_license | package com.org.ws;
import com.org.model.beans.DocumentoCabBean;
import com.org.model.beans.DocumentodetBean;
import com.org.model.beans.Leyenda;
import com.org.util.GeneralFunctions;
import com.org.util.HeaderHandlerResolver;
import com.org.util.LecturaXML;
import java.io.BufferedOutputStream;
import java.io.File;
... | true |
8c783ebf8a4a4aefbea525c78938e42263b9c6d9 | Java | tarekait1996/SOSWedding | /app/src/main/java/com/example/soswedding/ui/allRequests/RequestAdapter.java | UTF-8 | 4,610 | 2.34375 | 2 | [] | no_license | package com.example.soswedding.ui.allRequests;
import android.app.Activity;
import android.content.Context;
import android.graphics.Typeface;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.ann... | true |
d7c1d9d6afd13f6da35afc8135b6ad8bb52bba69 | Java | BiggerLee/learngit | /java/myProject/src/main/java/com/xtli/controller/Spring/StudentController.java | UTF-8 | 923 | 2.171875 | 2 | [] | no_license | package com.xtli.controller.Spring;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import... | true |
150d3d29172ca3a74f31056d77a36fcde2d97550 | Java | aadamson44/OP-test | /src/main/java/com/observepoint/test/test/repository/DepartmentRepository.java | UTF-8 | 306 | 1.625 | 2 | [] | no_license | package com.observepoint.test.test.repository;
import org.springframework.data.repository.CrudRepository;
import com.observepoint.test.test.entity.Department;
import org.springframework.stereotype.Repository;
@Repository
public interface DepartmentRepository extends CrudRepository<Department, Long> {
}
| true |
048d2e45972852c352aeef3c18723dad2c145a47 | Java | dhjacobson/davidj-stuff | /src/main/java/com/hgdata/davidj/validation/ChildValidation.java | UTF-8 | 1,883 | 2.6875 | 3 | [] | no_license | package com.hgdata.davidj.validation;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class ChildValidation extends Validation {
private String subQueryAlias;
private List<String> childJoinFields = new ArrayList<>();
private... | true |
0e8fea44f3809e4f4fa0f4e3645d6dbeb714218c | Java | akramul-hasan-m4/t | /h/src/main/java/com/harnest/inventory/ws/controller/FinishedGoodsQCController.java | UTF-8 | 4,190 | 1.90625 | 2 | [] | no_license | package com.harnest.inventory.ws.controller;
import static com.harnest.inventory.ws.commons.URIConstants.*;
import static com.harnest.inventory.ws.commons.URIConstants.ERROR_MSG;
import static com.harnest.inventory.ws.commons.URIConstants.FINISH_GOODS_QC;
import static com.harnest.inventory.ws.commons.URIConstants.FIN... | true |
07d64d2e3c3128f29c688360e89b2e435bcdf4cd | Java | DivinePurposeCreations/searchview-with-firebase-filter-recyclerview | /app/src/main/java/com/example/searchview/ExampleItem.java | UTF-8 | 387 | 2.484375 | 2 | [] | no_license | package com.example.searchview;
public class ExampleItem {
private int imageResource;
private String text2;
public ExampleItem(int imageResource, String text2) {
this.imageResource = imageResource;
this.text2 = text2;
}
public int getImageResource() {
return imageResource;
... | true |
aea383100161bab8991317571728e32cb4298067 | Java | delly2332/sendgrid-java | /src/main/java/com/sendgrid/APICallback.java | UTF-8 | 454 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.sendgrid;
/**
* An interface describing a callback mechanism for the
* asynchronous, rate limit aware API connection.
*/
public interface APICallback {
/**
* Callback method in case of an error.
* @param ex the error that was thrown.
*/
void error(Exception ex);
/**
* Ca... | true |
0c2c2f1b54c85405e610321e2d699b1e4d8fd47f | Java | DmitriiElagin/SpringEx | /src/main/java/com/elagin/dmitry/beans/JavaConfigDemoApp.java | UTF-8 | 637 | 2.40625 | 2 | [] | no_license | package com.elagin.dmitry.beans;
import com.elagin.dmitry.Config;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class JavaConfigDemoApp {
public static void main(String[] args) {
AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(C... | true |
3c7e46c9cbced0305647ad6bec2e054acad4ee08 | Java | Njanderson/Synapse-Repository-Services | /lib/lib-dynamo/src/main/java/org/sagebionetworks/dynamo/DynamoTimeoutException.java | UTF-8 | 443 | 2.3125 | 2 | [] | no_license | package org.sagebionetworks.dynamo;
/**
* When Dynamo fails to complete within the specified time.
*/
public class DynamoTimeoutException extends RuntimeException {
private static final long serialVersionUID = 7698572578705859972L;
public DynamoTimeoutException(String msg) {
super(msg);
}
public DynamoTimeo... | true |
a0b4bfbe1bdf0a95959fa63905518b724c38b962 | Java | AndreynRosa/Americas-Chellenge | /api/src/test/java/com/americas/challenge/api/ProjectRegistration/ProjectRegistrationServiceTest.java | UTF-8 | 2,875 | 1.929688 | 2 | [] | no_license | package com.americas.challenge.api.ProjectRegistration;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import com.americas.challenge.api.model.entity.ProjectEntity;
import com.americas.challenge.api.model.entity.ProjectRegistrationEnt... | true |
d4678aed7c073bf2540d684904df6f0e1643e812 | Java | auerbachs/BMDExpress-2 | /src/main/java/com/sciome/bmdexpress2/service/CategoryAnalysisService.java | UTF-8 | 10,753 | 1.78125 | 2 | [
"MIT"
] | permissive | package com.sciome.bmdexpress2.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.sciome.bmdexpress2.mvp.model.category.CategoryAnalysisResult;
import com.sciome.bmdexpress2.mvp.model.category.CategoryAnalysisResults;
import com.sciome.bmdexpress2.mvp.model.category.i... | true |
16c483bd8808f056e99bcb3b4d9a8381f8835381 | Java | onap/so | /bpmn/so-bpmn-infrastructure-common/src/main/java/org/onap/so/bpmn/infrastructure/pnf/delegate/CreateRelation.java | UTF-8 | 2,585 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | /*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2019 Nokia.
* ================================================================================
* Licensed under the ... | true |
8ba5b56c7a760a4ae288a33754a1223d7252b1ab | Java | karlwettin/datahamstern | /maven/server/src/main/java/se/datahamstern/io/SeleniumAccessor.java | UTF-8 | 12,672 | 2.296875 | 2 | [
"LicenseRef-scancode-public-domain"
] | permissive | package se.datahamstern.io;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.SeleniumException;
import org.cyberneko.html.parsers.DOMParser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
impo... | true |
362e37fa2b89dbc35f40a344377ef7d4cb56b19d | Java | JigarMav/AUContentManagementBackend | /src/test/java/com/example/course/services/CourseServiceTest.java | UTF-8 | 2,801 | 2.40625 | 2 | [] | no_license | package com.example.course.services;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.*;
import java.util.ArrayList;
import java.util.List;
import com.example.course.CourseApplication;
import com.example.course.dao.Impl.CourseDaoImpl;
import com.example.course.models.C... | true |
d33bb2c529fd7c04417c493c926c87bd09e334ef | Java | Phynvi/Titan | /src/main/java/org/maxgamer/rs/structure/dbmodel/Mapping.java | UTF-8 | 837 | 2.359375 | 2 | [] | no_license | package org.maxgamer.rs.structure.dbmodel;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Mapping class that is used by transparent objects to define class properties
* that are to be serialized a... | true |
7a75b3d720ccfaa1d3dd8b37018d0e191068fc0f | Java | leex12/jfireframework | /jfire-baseutil/src/main/java/com/jfireframework/baseutil/collection/buffer/CompositeByteBuf.java | UTF-8 | 5,427 | 2.578125 | 3 | [] | no_license | package com.jfireframework.baseutil.collection.buffer;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.LinkedList;
public class CompositeByteBuf extends ByteBuf<Void>
{
private static final RuntimeException unsupport = new RuntimeException("unsupport,it is a compositeBuf");
... | true |
0022b254639cf5804ef94536142af409ad140944 | Java | junges521/src_awe | /src/main/java/com/ss/android/ttvecamera/b/d.java | UTF-8 | 1,625 | 1.578125 | 2 | [] | no_license | package com.ss.android.ttvecamera.b;
import android.graphics.Rect;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CaptureRequest;
import android.hardware.camera2.params.MeteringRectangle;
import android.support.annotation.NonNull;
import android.support.annotation.RequiresApi;
im... | true |
93314f01b7b8e2e636ae7053f60b7cdeac99771a | Java | Excen/WebWinkelSprong | /WebWinkelSpringWerken/src/main/java/com/anjewe/anjewewebwinkel/Service/AccountService.java | UTF-8 | 3,790 | 2.40625 | 2 | [] | no_license |
package com.anjewe.anjewewebwinkel.Service;
import com.anjewe.anjewewebwinkel.DAOGenerics.GenericDaoImpl;
import com.anjewe.anjewewebwinkel.DAOs.AccountDao;
import com.anjewe.anjewewebwinkel.POJO.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.L... | true |
fbad8a43f3217c671c87e971b0ba2da83ab92325 | Java | we10710aa/raymond-box | /app/src/main/java/com/api/kkbox/KKAssistant.java | UTF-8 | 5,202 | 2.171875 | 2 | [] | no_license | package com.api.kkbox;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.LinkedHashMap;
import java.util.Map;
import okhttp3.MediaType;
import okhttp3.OkHttpClie... | true |
bd1a1d6a919f402cab516aa0c68ac2e6e16160d2 | Java | maheshkumarrouth/SendMailer | /src/main/java/com/cultuzz/dao/mappers/DistributorRowMapper.java | UTF-8 | 514 | 2.296875 | 2 | [] | no_license | package com.cultuzz.dao.mappers;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.cultuzz.models.Distributor;
public class DistributorRowMapper implements RowMapper<Distributor>{
@Override
public Distributor mapRow(ResultSet arg0, int arg1) throw... | true |
91934cb15faa495ab1acf36364cd710b1367990d | Java | hthuc2051/cheese-coffee-webservice | /src/main/java/com/cheesecoffee/services/serviceImpl/ShopeeServiceImpl.java | UTF-8 | 789 | 2.0625 | 2 | [] | no_license | package com.cheesecoffee.services.serviceImpl;
import com.cheesecoffee.common.Constants;
import com.cheesecoffee.common.CustomUtils;
import com.cheesecoffee.dtos.ShopeeParamsDto;
import com.cheesecoffee.services.ShopeeService;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util... | true |
ffa2bc9d9f9c03523e487d1fbcf2ef62082b6cc1 | Java | 90vFan/algo | /apractice/edu/princeton/cs/algs4/EulerianCycle.java | UTF-8 | 1,518 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | package edu.princeton.cs.algs4;
public class EulerianCycle {
private Stack<Integer> cycle = new Stack<Integer>();
private static class Edge {
private final int v;
private final int w;
private boolean isUsed;
public Edge(int v, int w) {
this.v = v;
this.... | true |
3a2ce4dd7d0b6b8cef919e5bb39c080d367ef67f | Java | eruditehassan/java-oop-practice | /InheritenceAndComposition/PersonWithCompositionConcept/Faculty.java | UTF-8 | 1,441 | 3.109375 | 3 | [] | no_license | public class Faculty extends Person {
//Faculty class is extending Person class
//Defining all the data fields specific to faculty members
private String officeNumber;
private JobDescription jobDescription;
private HiringDate hiringDate;
//No arguement constructor
Faculty(){}
Facult... | true |
256af474899e40706b1d51ecaa82bd627e862bf4 | Java | marcofasa/ing-sw-2021-Fasanella-Maggioni-Manini | /src/main/java/it/polimi/ingsw/server/VirtualClient.java | UTF-8 | 6,087 | 2.65625 | 3 | [
"MIT"
] | permissive | package it.polimi.ingsw.server;
import it.polimi.ingsw.client.RequestTimedOutException;
import it.polimi.ingsw.communication.server.ServerKeepAlive;
import it.polimi.ingsw.communication.timeout_handler.ServerTimeoutHandler;
import it.polimi.ingsw.communication.client.ClientMessage;
import it.polimi.ingsw.communication... | true |
5f862d147af5661768b74a71c85f3c16bf310826 | Java | cseadnan16/All-Java-Problems | /Java Problems/Bajlur_java/6th chapter/Exercise/src/bookApp/TestApp.java | UTF-8 | 482 | 3.25 | 3 | [] | no_license | package bookApp;
public class TestApp {
public static void main(String[] args) {
Author author = new Author("Adnan", "adnanan.cse2016@gmail.com", "Male");
Book book = new Book("Computer Programming", "author", 250, 1000);
System.out.println("Name of the Book: "+ book.getBookName());
System.out.println("N... | true |
4d2c4ce943979500ac7a45de95202b976bdb29c3 | Java | fengpku/GEM3 | /src/edu/mit/csail/cgs/tools/hypotheses/HypothesesProperties.java | UTF-8 | 711 | 2.609375 | 3 | [] | no_license | package edu.mit.csail.cgs.tools.hypotheses;
import java.util.*;
public class HypothesesProperties {
private static ResourceBundle bundle;
private static HashSet<String> bundleKeys;
static {
bundle = ResourceBundle.getBundle("edu.mit.csail.cgs.tools.hypotheses.hypotheses");
bundleKeys = new Hash... | true |
a491211312516b686a6702e26a4c44227b356a5b | Java | cigg93/share | /src/main/java/com/ccc/uml/Translate.java | UTF-8 | 181 | 1.625 | 2 | [] | no_license | package com.ccc.uml;
import com.ccc.uml.entity.Article;
/**
* 翻译
*
* Created by ccc on 2017/2/26.
*/
public interface Translate {
String translate(Article article);
}
| true |
3370677796669ecb8fab5d512752a5c7b18ec358 | Java | reiNatsu/lab-Android | /Lec30_MasterDetail03/app/src/main/java/edu/android/lec30_masterdetail03/ProductLab.java | UTF-8 | 1,345 | 2.890625 | 3 | [] | no_license | package edu.android.lec30_masterdetail03;
import java.util.ArrayList;
import java.util.List;
/**
* Created by user on 2018-03-26.
*
* ------
* DAO Class
*/
public class ProductLab {
public static final int[] PRODUCT_PHOTOS = {
R.drawable.pr1, R.drawable.pr2, R.drawable.pr3, R.drawable.pr4,
... | true |
0fe9c455a30ca1575c7de2897b4bc2f1e33f16db | Java | ItamarGino/JavaProjects | /GMC/src/common/entities/Map.java | UTF-8 | 1,741 | 2.9375 | 3 | [] | no_license | package common.entities;
/** @author Shahar Ronen.
* @author Dorin Segall.
* @author Remez David.
* @author Itamar Gino.
* @author Amit Sinter.
*
* Map is an entity for storing the Map deatils
* We will use this entity to upload data to tables on the screens and Send data in the object to the server... | true |
56c23f75b7a41ec5336b55d75c373d8fe373ff9a | Java | redsun9/leetcode | /src/leetcode/leetcode5xx/leetcode526/Solution3.java | UTF-8 | 2,057 | 3.0625 | 3 | [] | no_license | package leetcode.leetcode5xx.leetcode526;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
public class Solution3 {
public long countArrangement(int n) {
Integer[][] factors = new Integer[n][];
f... | true |
5a0bc9a59a58cfd4f187a8cc82dcbfb1841a8c2e | Java | ZuzannaWeichel/CodeWars_katas | /Ghost.java | UTF-8 | 453 | 2.703125 | 3 | [] | no_license | package com.zuPadawan;
import java.util.Random;
public class Ghost {
private String color;
private Random random;
public Ghost(){
this.random = new Random();
this.color = "white";
}
public String getColor(){
int i = random.next... | true |
7e37bc2f5956281e7b99dd3288e8a6e5b05b4021 | Java | Ktar5/Jazzy | /libgdx/src/main/java/com/ktar5/jazzy/libgdx/map/JazzyMapLayer.java | UTF-8 | 3,063 | 3.03125 | 3 | [] | no_license | package com.ktar5.jazzy.libgdx.map;
import com.ktar5.jazzy.libgdx.tileset.JazzyTile;
import org.json.JSONArray;
import org.json.JSONObject;
public abstract class JazzyMapLayer extends JazzyAbstractLayer {
private int width;
private int height;
private float tileWidth;
private float tileHeight;
... | true |
db685a317997209684c7b165f9da36c3e539aef8 | Java | lcjqyml/Study | /Root/pedicure/src/main/java/com/milin/pedicure/dao/support/HibernateDaoSupport.java | UTF-8 | 743 | 2.046875 | 2 | [] | no_license | package com.milin.pedicure.dao.support;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate4.HibernateTemplate;
/**
* Created by Changjun Liao on 2016/9/3.
*/
public class HibernateDaoSupport extends org.springframework... | true |
2320a57e36ba346823010234bc99b9458fb1c669 | Java | kpelykh/fuse | /sandbox/eca/eca-core/src/main/java/org/fusesource/eca/processor/StatisticsCalculator.java | UTF-8 | 13,555 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) FuseSource, Inc.
* http://fusesource.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 required by... | true |
897f9062013a7a88965bbc70ae745fde4d132ed6 | Java | DanieleGambini/prog-OOP-and-CER | /Java/src/main/java/it/univipm/Gambini/Ragaini/Prog_OOP_CER/service/RequestService.java | UTF-8 | 1,444 | 2.515625 | 3 | [] | no_license | package it.univipm.Gambini.Ragaini.Prog_OOP_CER.service;
/**
* Interfaccia dei metodi che gestiscono le richieste provenienti dalla classe RequestController
*/
public interface RequestService {
/**
* Metodo che fornisce il dataset di riferimento parsato.
* @return Array di oggetti in formato json
*/
public... | true |
17f3b4ba62d47b1bb78a649abd9da116b8d03dd0 | Java | cartola-erp/emissor-fiscal | /src/test/java/net/cartola/emissorfiscal/view/ExecutaTestesDoSelenium.java | UTF-8 | 15,503 | 2.109375 | 2 | [
"MIT"
] | permissive | package net.cartola.emissorfiscal.view;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springf... | true |
19f426d7b65b7f871ab2db86ac0f267da1c65d86 | Java | rubenvh/ruben.traces | /src/ruben/traces/engine/IImageSourceRepository.java | UTF-8 | 170 | 1.664063 | 2 | [] | no_license | package ruben.traces.engine;
import ruben.common.processing.video.IWindowedImageSource;
public interface IImageSourceRepository
{
IWindowedImageSource get_source();
}
| true |
7baf40315929457a18249643bb9d909db5ee5e4d | Java | ly1037181864/design-pattern | /src/main/java/cn/topideal/com/design/delegate/DelegateTest.java | UTF-8 | 839 | 3.3125 | 3 | [] | no_license | package cn.topideal.com.design.delegate;
/**
* 委派模式
*/
public class DelegateTest {
/**
* 委派模式跟策略模式非常的相像,但是委派模式强调的是任务的派发,也就是说,老板根据不同的任务来安排
* 不同的部门经理去处理,强调的是任务分派,而策略模式是根据不同的策略用不同的方案去实现,两者着重的
* 角度不同
*
* @param args
*/
public static void main(String[] args) {
Boss boss = ne... | true |
5b30946f8c7a677ed60682025ddb36bedbf3e176 | Java | jays95jp/storyPreviewLikeInsta | /app/src/main/java/com/storypreview/storyView/fragment/ProfileStoryPreviewFragment.java | UTF-8 | 12,629 | 1.90625 | 2 | [] | no_license | package com.storypreview.storyView.fragment;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
i... | true |