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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
098416aa8f5c38ed91460e6a74be4dc0729fa8e7 | Java | wwwumr/back-end | /hw1-wordladder/wordLadder/src/main/java/com/ladder/WordLadder.java | UTF-8 | 1,206 | 3.75 | 4 | [] | no_license | package com.ladder;
import java.util.Scanner;
public class WordLadder {
//get start word and end word
public static String[] getWords(){
Scanner sc = new Scanner(System.in);
System.out.print("start word:");
String word1 = sc.nextLine();
System.out.print("end word:");
S... | true |
cc081310f4218cc91cb90057c7f6b07b4243f8b8 | Java | sudhakarkoonimbedu/HybridDesktop_Winium | /src/test/java/DSTPSAutomation/HybridDesktopGUI/pages/GUI_POSError_LandingPageSelector.java | UTF-8 | 1,790 | 1.929688 | 2 | [] | no_license | package DSTPSAutomation.HybridDesktopGUI.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import DSTPSAutomation.HybridDesktopGUI.Apps.common.HybridDesktop_GUI_Utility;
import DSTPSAutomation.HybridDesktopGUI.Apps.common.HybridDesktop_SharedResource;
import DSTPSAutomation.HybridDeskto... | true |
f2190a064a1ccef13badb72e2b748cd8b94dede5 | Java | dMeshko/blog | /web-programming-spring-mvc-starter/src/main/java/mk/ukim/finki/wp/model/Tag.java | UTF-8 | 735 | 2.328125 | 2 | [] | no_license | package mk.ukim.finki.wp.model;
import org.hibernate.validator.constraints.Length;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import java.util.List;
import java.util.Set;
/**
* Created by Darko on 3/3/2016.
*/
@Entity
... | true |
00727b79db849fdc61d19b7f82f2aa80e662e902 | Java | freetest/pet_android_new | /app/src/main/java/com/haotang/pet/entity/FosterRoom.java | UTF-8 | 5,801 | 2.265625 | 2 | [] | no_license | package com.haotang.pet.entity;
import com.haotang.pet.util.ComputeUtil;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* <p>Title:${type_name}</p>
* <p>Description:</p>
* <p>Company:北京昊唐科技有限公司</p>
*
* @author 徐俊
* @... | true |
70943b558a06b01f971198d0b54cfa007856dce3 | Java | misschip/SpringBoot-RoomEscape-for-Anrdroid | /src/main/java/com/cos/roomescape/controller/IndexController.java | UTF-8 | 2,771 | 2.171875 | 2 | [] | no_license | package com.cos.roomescape.controller;
import java.util.Iterator;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.se... | true |
9e65c8f6bec901affff9d5b486091549c183b2d1 | Java | Git-yangrui/java-remote-repository | /thread/src/main/java/com/newtouch/thread/pipeline/strategy/SimplePipeline.java | GB18030 | 1,384 | 2.765625 | 3 | [] | no_license | package com.newtouch.thread.pipeline.strategy;
import java.util.LinkedList;
import java.util.Queue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
/**
* pipelineʵ
* @author Administrator
*
* @param <T>
* @param <OUT>
*... | true |
b4e38a071f525e8acbfca6d639984a8d898413cb | Java | ederwyk/java-14-features | /src/br/com/feature/TextBlock.java | IBM852 | 229 | 2.125 | 2 | [] | no_license | package br.com.feature;
public class TextBlock {
public static String retorno() {
return """
Meu text block...
cool ;)
tirando a quebra de \
linha
mantendo os espaos no final \s
""";
}
}
| true |
f5c24ce499a56299b20adb373a98f1484f98c7bc | Java | franklindeoliveira/design-patterns | /flyweight-case/src/Programa.java | UTF-8 | 286 | 2.546875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.List;
public class Programa {
public static void main(String[] args) {
List<Nota> musica = Arrays.asList(
new Do(),
new Re(),
new Mi(),
new Fa(),
new Fa(),
new Fa());
System.out.println(musica);
}
}
| true |
838ac79fd53edccd50fd16daccb10e897c81a57e | Java | moutainhigh/qd-insurance | /qding-api/src/main/java/com/qding/api/call/app/qding/v1_4_1/struct/hotcycle/request/PassGroupApplyRequest.java | UTF-8 | 1,224 | 1.789063 | 2 | [] | no_license | package com.qding.api.call.app.qding.v1_4_1.struct.hotcycle.request;
import com.qding.framework.common.api.struct.request.BaseRequest;
import com.qding.framework.common.smart.validate.Validate;
import com.qding.framework.common.smart.validate.rule.NotNullValidate;
/**
* Created by qd on 2015/10/27.
*/
@Validate
pub... | true |
9c4523343791f5c13cb1a76abd5ea616a8d63671 | Java | zwj1314/bigdata | /spring_03/src/com/itheima/demo2/Test2.java | UTF-8 | 1,027 | 2.40625 | 2 | [] | no_license | package com.itheima.demo2;
import org.junit.Test;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DriverManagerDataSource;
/**
* @author zhangjian
* @version V1.0.0
* @Date Created in 2018/8/23
* @description:演示jdbc的模版类
*/
public class Test2 {
/*
演示模版类
... | true |
c63669fd55275fd2d415bd10f15a12359d8f7b7d | Java | zhangboxiaoxiao123/booksworld | /src/com/books/service/CartlistService.java | GB18030 | 343 | 1.617188 | 2 | [] | no_license | package com.books.service;
import java.util.List;
import com.books.po.Cartlist;
public interface CartlistService {
//ѯﳵϢû
public List<Cartlist> selectByPrimaryKey(Integer uid1);
//Ʒû
public int insert(Cartlist record);
//ɾƷû
public int deleteByPrimaryKey(Integer cid);
}
| true |
405c0559fab7c51393ad7caf3042f01565e59d0a | Java | LJaer/PhoneManager | /app/src/main/java/top/ljaer/www/phonemanager/service/WidgetService.java | UTF-8 | 7,171 | 2.078125 | 2 | [] | no_license | package top.ljaer.www.phonemanager.service;
import android.app.ActivityManager;
import android.app.ActivityManager.RunningAppProcessInfo;
import android.app.PendingIntent;
import android.app.Service;
import android.appwidget.AppWidgetManager;
import android.content.BroadcastReceiver;
import android.content.ComponentNa... | true |
8096767f2317ab26d1b28e94a51d639b4d445901 | Java | acquydem12/field-runner | /FieldRunners/src/fieldrunners/gameobjects/runners/effect/DamageEffectFactory.java | UTF-8 | 1,622 | 2.46875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package fieldrunners.gameobjects.runners.effect;
import org.w3c.dom.Element;
import tbgameframework.xml.xmldata.XmlLoader;
import tbgameframework.xml.xmldata.XmlSaver;
/**
*
* @author Uchiha Salm
*/
public class Dam... | true |
6ad8085a81171f5d9ba407e5b1d3dbaec31f9926 | Java | pkokki/sportmonitor | /src/main/java/com/panos/sportmonitor/spark/dto/EventScoreChange.java | UTF-8 | 1,682 | 2.203125 | 2 | [] | no_license | package com.panos.sportmonitor.spark.dto;
import java.io.Serializable;
public class EventScoreChange implements Serializable {
private long eventId;
private long eventStamp;
private String clockTime;
private int home;
private int away;
private int homeDiff;
private int awayDiff;
publi... | true |
41d9437f8fde722d9f2e3fd6f89ffbe511d88452 | Java | sanjuthomas/tdd-java | /tdd-jmockit/src/main/java/com/ourownjava/tdd/jmockit/BaseClass.java | UTF-8 | 184 | 1.914063 | 2 | [] | no_license | package com.ourownjava.tdd.jmockit;
/**
*
* @author Sanju Thomas
*
*/
public class BaseClass {
public BaseClass(final String name){
throw new IllegalArgumentException(name);
}
}
| true |
3545d1836476794ce5a21978a11e966b803a36a1 | Java | 1752476837/cardProject | /card/src/main/java/com/ly/card/controller/UploadController.java | UTF-8 | 2,713 | 2.34375 | 2 | [] | no_license | package com.ly.card.controller;
import com.ly.card.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import... | true |
2fed4d775022ef08623488fac427fbb470918fb2 | Java | zytKing/MyBlog | /blog-front/blog-front-service/src/main/java/com/zyt/blog/front/service/impl/BlogCommentFrontServiceImpl.java | UTF-8 | 996 | 2 | 2 | [] | no_license | package com.zyt.blog.front.service.impl;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zyt.blog.common.pojo.Comment;
import com.zyt.blog.front.dao.BlogCommentFrontDao;
import com.zyt.blog.front.pojo.ContactMessage;
impo... | true |
10b8aef87b8805c4170d753c8a5febff3ba45279 | Java | MorFix/DutiesManager | /app/src/main/java/com/morfix/dutiesmanager/dataAccess/interfaces/BaseDao.java | UTF-8 | 301 | 1.976563 | 2 | [] | no_license | package com.morfix.dutiesmanager.dataAccess.interfaces;
import android.arch.lifecycle.LiveData;
import java.util.List;
public interface BaseDao<T> {
LiveData<List<T>> getAll();
LiveData<T> getById(Long id);
void insert(T entity);
void update(T entity);
void delete(T entity);
}
| true |
7e370e6dc4ff486f3b8e0e862e62ddf0d168cd7a | Java | nichousha1935/MyApplication | /app/src/main/java/bean/ListCarInfo.java | UTF-8 | 261 | 1.898438 | 2 | [] | no_license | package bean;
import java.util.List;
public class ListCarInfo extends response {
private List<CarInfo> list;
public List<CarInfo> getList() {
return list;
}
public void setList(List<CarInfo> list) {
this.list = list;
}
}
| true |
6ed82df0fb755d18475209569551a659e68a943a | Java | shiyuzhe/dushuren_android | /app/src/main/java/com/hulai/dushuren/di/module/SecondActivityModule.java | UTF-8 | 507 | 2.09375 | 2 | [] | no_license | package com.hulai.dushuren.di.module;
import com.hulai.dushuren.mvp.model.bean.Teacher;
import com.hulai.dushuren.di.scope.ActivityScope;
import com.hulai.dushuren.ui.activity.SecondActivity;
import dagger.Module;
import dagger.Provides;
@Module
public abstract class SecondActivityModule {
@Provides
static... | true |
731b5b91e2bcb3b16706b10298fa294599a1428e | Java | hapifhir/hapi-fhir | /hapi-fhir-jpaserver-test-r4/src/test/java/ca/uhn/fhir/jpa/term/TerminologyLoaderSvcSnomedCtTest.java | UTF-8 | 6,176 | 1.679688 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | package ca.uhn.fhir.jpa.term;
import ca.uhn.fhir.jpa.entity.TermCodeSystemVersion;
import ca.uhn.fhir.jpa.entity.TermConcept;
import ca.uhn.fhir.jpa.entity.TermConceptParentChildLink;
import ca.uhn.fhir.jpa.term.api.ITermCodeSystemStorageSvc;
import ca.uhn.fhir.jpa.term.api.ITermDeferredStorageSvc;
import ca.uhn.fhir.... | true |
11e692aa40ed45acef782484b33479ea73ceb586 | Java | isabellyfd/twu-biblioteca-isabelly | /test/com/twu/biblioteca/exception/CouldNotCheckoutBookExceptionTest.java | UTF-8 | 381 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.twu.biblioteca.exception;
import org.junit.Assert;
import org.junit.Test;
public class CouldNotCheckoutBookExceptionTest {
@Test
public void testIfMessageOfExceptionIsCorrect() {
CouldNotCheckoutBookException exception = new CouldNotCheckoutBookException();
Assert.assertEquals("Th... | true |
789808b6c7eaf6f16c9f4bc0593d782a7c36715b | Java | 13018585117/HXYPay | /app/src/main/java/com/hxypay/customview/IToast.java | UTF-8 | 588 | 2.34375 | 2 | [] | no_license | package com.hxypay.customview;
import android.widget.Toast;
import com.hxypay.App;
public class IToast {
private static IToast iToast;
public static IToast getIToast() {
if (iToast == null) {
iToast = new IToast();
}
return iToast;
}
public void showIToast(Strin... | true |
805cb93d8b444695d148ab592bc4f86fd5cab330 | Java | prince-chrismc/Enterprise-WebApp | /GameSearcher/src/java/Views/LandingPageUserSection.java | UTF-8 | 7,517 | 2.0625 | 2 | [
"MIT"
] | permissive | /*
MIT License
Copyright (c) 2017 Chris Mc, prince.chrismc(at)gmail(dot)com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation t... | true |
2beeb82b061e5a21fb1f3796f69e5cac60233812 | Java | HerSta/NTNU-cyborg_backend | /src/main/java/hello/Main.java | UTF-8 | 1,171 | 2.453125 | 2 | [] | no_license | package hello;
import utilities.DBHandler;
import java.sql.DriverManager;
import utilities.FileHandler;
import java.util.List;
import java.util.Map;
public class Main {
public static void main(String[] args) {
DBHandler dbHandler = new DBHandler();
dbHandler.getConnection();
dbHandler.... | true |
bd0d8ff9ab52eb131e66d46076fa063bb4bb5338 | Java | umashankarpatra/link_sharing_Spring_boot | /src/main/java/com/optum/linksharing/model/Link.java | UTF-8 | 2,400 | 2.1875 | 2 | [] | no_license | package com.optum.linksharing.model;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java... | true |
29c5efb78b6a3837b4a39f09a72039955cd2e7ca | Java | sbtqa/swingback-test | /SwingApplication/src/SwingApplication.java | UTF-8 | 1,447 | 3.09375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
/**
* @author Olga Germanova
*/
public class SwingApplication
{
public static void main(String[] args)
{
final JFrame frame = new JFrame("Example app");
frame.setSize(500, 200);
frame.setLayout(new BorderLayout());
JPanel jPanel = new JPanel(new FlowLayou... | true |
f987d91f56da90f6d75251e4ecbc98cd8e32d53c | Java | ap0810231/jt | /jt-manage/jt-manage-service/src/main/java/com/jt/manage/service/RabbitItemService.java | UTF-8 | 404 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.jt.manage.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jt.common.service.RedisService;
@Service //rabbitmq侦听自动触发
public class RabbitItemService {
@Autowired
private RedisService redisService;
public void updateItem(... | true |
349a8b7dcf87caa30c12fbcaa2a6321be7eced06 | Java | SEPR4/AHOD2 | /core/src/main/java/uk/ac/york/sepr4/ahod2/util/NodeUtil.java | UTF-8 | 7,323 | 2.90625 | 3 | [] | no_license | package uk.ac.york.sepr4.ahod2.util;
import com.badlogic.gdx.Gdx;
import uk.ac.york.sepr4.ahod2.node.*;
import uk.ac.york.sepr4.ahod2.object.GameLevel;
import uk.ac.york.sepr4.ahod2.object.building.Department;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
//possible action from each nod... | true |
bd64ae5f983af0aae344f7897e630a218487e1eb | Java | pooja160699/Java-Practice-Programs | /PossiblePaths.java | UTF-8 | 451 | 2.90625 | 3 | [] | no_license | package JavaPractice;
public class PossiblePaths {
public static void main(String[] args) {
int row=1,columns=2;
int x,y;
int[][] arr=new int[row][columns];
for(int i=0;i<row;i++){
arr[i][0]=1;
}
for(int i=0;i<columns;i++){
arr[0][i]=1;
}
for(int i=1;i<row;i++){
for(int ... | true |
712d07a365aa288eb9ff5817478eb0b4f7e8c517 | Java | k1455365/Plagiarism | /Plagiarism_Detection/src/kcl/qutong/plagiarism/entity/SmithWaterman/SmithWaterman_overlap.java | UTF-8 | 11,233 | 2.78125 | 3 | [] | no_license | package kcl.qutong.plagiarism.entity.SmithWaterman;
import java.util.ArrayList;
import java.util.List;
/**
* this version considering overlaps between canidate paths
* @author qutong
*
*/
public class SmithWaterman_overlap {
List<cell> candidateSet = new ArrayList<cell>();
String[] X;// row in score matrix
Stri... | true |
624e922abf3347d873ba027a465abf0e73a449c2 | Java | kingqueenly/sharing-platform-backend | /src/main/java/com/sharingplatform/user/adapter/listener/UseCaseViewedListener.java | UTF-8 | 656 | 1.820313 | 2 | [] | no_license | package com.sharingplatform.user.adapter.listener;
import com.sharingplatform.framework.domain.DomainEventListener;
import com.sharingplatform.usecase.domain.event.UseCaseViewedEvent;
import com.sharingplatform.user.domain.score.ViewCaseRule;
import org.springframework.context.event.EventListener;
import org.springfra... | true |
a4e8aec8f8dc0fffd78b52798a25e3473862df72 | Java | WhiteorBlack/SmartParty | /app/src/main/java/com/qiantang/smartparty/wxapi/WXEntryActivity.java | UTF-8 | 1,263 | 1.960938 | 2 | [] | no_license | package com.qiantang.smartparty.wxapi;
import android.util.Log;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.umeng.socialize.weixin.view.WXCallbackActivity;
import org.greenrobot.eventbus.EventBus;
public class WXEntryActivity extends WXCallbackActivity {
@Override
public void onResp(BaseRe... | true |
ec82c044b19cbabc9b363341bfae8d61ae5dc873 | Java | KennethAguilar/MenuLateral | /app/src/main/java/com/ejemplo/MenuLateral/Perfil_Equipo.java | UTF-8 | 2,632 | 2.0625 | 2 | [] | no_license | package com.elpoeta.menulateralslide;
import android.app.ActionBar;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.ViewPager;
import android... | true |
61b5c7d4bda32c87e41a2897ca001c6876bd9eeb | Java | xulihuazj/acms | /acms-service/acms-service-core/src/main/java/cn/edu/haut/cssp/acms/core/entity/User.java | UTF-8 | 2,252 | 2.234375 | 2 | [] | no_license | package cn.edu.haut.cssp.acms.core.entity;
public class User {
/**
* 资源id,主键,自增
*/
private Long id;
/**
* 用户名,不可为空
*/
private String userName;
/**
* 密码值SHA1后的小写16进制字符串
*/
private String password;
/**
* 1-超级管理员;2-普通管理员
*/
private Integer type;
/**
* 手机号
*... | true |
ca0081a6bb3545fd2fbfd4e26aa369a894379255 | Java | m3hdiii/selenium-boot-framework | /selenium-boot-project/selenium-boot-webdriver/src/main/java/selenium/boot/webdriver/matchers/DisplayedMatcher.java | UTF-8 | 1,758 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package selenium.boot.webdriver.matchers;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.TypeSafeMatcher;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
/**
* Indicates whether {@link org.openqa.selenium.WebElement} is displayed or not.
*
... | true |
60fbf64a9e07b572a61243eb913a26c0b66184b8 | Java | RSGyana/MyJavaProj | /src/main/java/in/nit/service/IUomservice.java | UTF-8 | 334 | 1.765625 | 2 | [] | no_license | package in.nit.service;
import java.util.List;
import in.nit.model.Uom;
public interface IUomservice {
Integer saveUom(Uom u);
List<Uom> loadallIUom();
void deleteUom(Integer id);
Uom getOneUom(Integer id);
void updateUom(Uom u);
List<Object[]> getUomModeCount();
List<Object[]> getUomIdAndUomM... | true |
ea823207c4be82eae5cc909e38405a0708f63f79 | Java | pgirgaonkar/spring_jpa_rest_hateaos_secure | /src/main/java/bookmarks/Bookmark.java | UTF-8 | 1,105 | 2.328125 | 2 | [] | no_license | package bookmarks;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.per... | true |
803a5755f752d829fe6268788cf8f18cdeb2bd3a | Java | LysenkoAnastasia/ParallelAndDistribProgLab5 | /lab5/src/main/java/ru/bmstu/akka/lab5/ResultURL.java | UTF-8 | 381 | 2.234375 | 2 | [] | no_license | package ru.bmstu.akka.lab5;
import java.io.Serializable;
public class ResultURL implements Serializable {
private Long time;
private TestURL test;
public ResultURL(TestURL test, Long time) {
this.time = time;
this.test = test;
}
public Long getTime() {
return time;
}
... | true |
84284e07b1f5264b328ac44acd7a8eec383f977e | Java | GasenLi/Struts2_Practice | /src/main/java/Action/Login.java | UTF-8 | 1,358 | 2.515625 | 3 | [] | no_license | package Action;
import Entity.User;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import net.sf.json.JSONObject;
public class Login extends ActionSupport implements ModelDriven<User>{
private User user = new User();
pub... | true |
202fa93da67548567e6a3dd1c274196ace46ba4d | Java | EstebanDalelR/tinderAnalysis | /apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/chat/view/model/C8501v.java | UTF-8 | 970 | 1.8125 | 2 | [] | no_license | package com.tinder.chat.view.model;
import com.tinder.domain.message.Message;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\t\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0004¢\u000... | true |
1313a27ff75c4547e1082b143d1329750e2c64cb | Java | vervaingod/Public-security-equipment-maintenance | /src/com/equipment/dao/FailTypeDao.java | UTF-8 | 743 | 1.976563 | 2 | [] | no_license | package com.equipment.dao;
import java.util.List;
import com.equipment.bean.FailTypeBean;
public interface FailTypeDao {
public List<FailTypeBean> fillAllFailType(int pageno) throws Exception;
public List<FailTypeBean> fetchAllFailType() throws Exception;
public int updateFailTypeById(int fail_type_id, String ... | true |
267e5edb1a333540495093bd66dbfda921a87e1e | Java | mosoni/dms-atos-temp | /dms-moi-workspace/modules/liferay-devcon-appointment/liferay-devcon-appointment-impl/src/main/java/com/liferay/appointments/internal/graphql/query/v1_0/Query.java | UTF-8 | 4,946 | 1.695313 | 2 | [] | no_license | package com.liferay.appointments.internal.graphql.query.v1_0;
import com.liferay.appointments.dto.v1_0.Appointment;
import com.liferay.appointments.dto.v1_0.SiteDocument;
import com.liferay.appointments.resource.v1_0.AppointmentResource;
import com.liferay.petra.function.UnsafeConsumer;
import com.liferay.petra.functi... | true |
712197f0c2198984c7b7d3cf03acb7bd8b96d587 | Java | paras285/Data-Structure | /src/com/leetcode/arrays/easy/ContainsDuplicate.java | UTF-8 | 596 | 3.234375 | 3 | [] | no_license | package com.leetcode.arrays.easy;
import java.util.HashSet;
//Leetcode-217
public class ContainsDuplicate {
public static void main(String[] args) {
int array[] = new int[]{};
System.out.println(containsDuplicate(array));
}
private static boolean containsDuplicate(int[] nums) {
HashSet<Integer> set ... | true |
f78d1845bc2a27d6d4ed71850a288b28b449911c | Java | maayehkhaled/Mamong-us | /Mamong Us Server/src/tk/mamong_us/Main.java | UTF-8 | 1,373 | 2.203125 | 2 | [
"MIT"
] | permissive | package tk.mamong_us;
import com.siinus.server.JavaServer;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import tk.mamong_us.game.MamongUsGame;
import java.io.IOException;
import java.util.ArrayList;
import jav... | true |
faa1f39eda67facba5bbab002b93e90f03aa4b55 | Java | ima-ocon/cs162-project | /Scheduling/src/BurstTimeComparator.java | UTF-8 | 249 | 2.65625 | 3 | [] | no_license | import java.util.Comparator;
class BurstTimeComparator implements Comparator<Process> {
@Override
public int compare(Process p1, Process p2) {
if (p1.burst == p2.burst)
return p1.arrival - p2.arrival;
return p1.burst - p2.burst;
}
} | true |
39ea5b26897b5520dc31e5f9431b566ee369931f | Java | vijayks/AmegingRep | /src/com/buysell/actionclass/CitySelectionAction.java | UTF-8 | 3,786 | 2.21875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.buysell.actionclass;
import com.buysell.util.BuySellProperties;
import com.buysell.util.City;
import com.buysell.util.CityUtil;
import com.buysell.util.StaticCityList;
import java.io.File;
import java.util.... | true |
e8db98e54bbbc81ffdeb9cec145444ebae0262ac | Java | vikashkodati/kafkademo | /kafka-client/moved_example/example/KafkaProperties.java | UTF-8 | 1,162 | 1.835938 | 2 | [] | no_license | package com.tmobile.kafka.example;
public class KafkaProperties {
public static final String TOPIC = "tmotest";
public static final String KAFKA_SERVER_URL = "localhost";
public static final int KAFKA_SERVER_PORT = 9092;
public static final int KAFKA_PRODUCER_BUFFER_SIZE = 64 * 1024;
public static final int ... | true |
85d382cf43932219214ba724a790930664cdae60 | Java | alxdv97/web-shop | /nfo-shop/src/main/java/ru/alxdv/nfoshop/entity/Employee.java | UTF-8 | 946 | 2.296875 | 2 | [] | no_license | package ru.alxdv.nfoshop.entity;
import lombok.*;
import javax.persistence.*;
import java.util.Set;
@Setter
@Getter
@Entity
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Table(name = "employees")
@Builder
public class Employee {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Colum... | true |
20076dd23dfde66c4644a101dcdf79393708598d | Java | RGumma/selenium | /seleniumnew/JavaSelenium/src/com/practise/Selenium/TablewithCheckbox.java | UTF-8 | 1,295 | 2.1875 | 2 | [] | no_license | package com.practise.Selenium;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class TablewithCheckbox {
public static void main(S... | true |
c279484d8ae2539009936343847627eafc81ec19 | Java | cckmit/ota-all | /ota-admin/src/main/java/cn/sd/service/order/IVisitorOrderService.java | UTF-8 | 1,058 | 1.859375 | 2 | [] | no_license | package cn.sd.service.order;
import java.util.List;
import java.util.Map;
public interface IVisitorOrderService {
public void saveVisitorService(Map<String, Object> params)throws Exception;
public void saveBatchVisitorService(List<Map<String, Object>> params, String ORDER_ID)throws Exception;
public void delOrd... | true |
ad7e843916b0e4a9ad2d1e10b4bc5702c56c6373 | Java | qmwu2000/workshop | /app/app-unidal-expense/src/main/java/org/unidal/expense/biz/member/signin/Context.java | UTF-8 | 380 | 2.03125 | 2 | [] | no_license | package org.unidal.expense.biz.member.signin;
import org.unidal.expense.dal.Member;
import com.site.web.mvc.ActionContext;
public class Context extends ActionContext<Payload> {
private Member m_signinMember;
public Member getSigninMember() {
return m_signinMember;
}
public void setSigninMember(M... | true |
94365be953a471bc04add053a50ab6b33b873510 | Java | mcabre94/meli-challenge | /src/test/java/com/app/meli/appmeli/AppmeliApplicationTests.java | UTF-8 | 486 | 1.632813 | 2 | [] | no_license | package com.app.meli.appmeli;
import static org.assertj.core.api.Assertions.assertThat;
import com.app.meli.appmeli.controllers.CouponController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootT... | true |
9457f547a22ed003ea87e3d0328230744c7af3bd | Java | guotaisu/android_projects | /FileManager/app/src/main/java/com/buaa/adapter/MyAdapter.java | UTF-8 | 1,718 | 2.265625 | 2 | [] | no_license | package com.buaa.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.buaa.activity.R;
import com.buaa.util.Globals;
import... | true |
37ddc1f2895c97736df884b73300fb0d6ad79be8 | Java | KyujuuAlpha/Balloon | /src/com/troi/balloon/whileBlock.java | UTF-8 | 197 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.troi.balloon;
import java.awt.Color;
public class whileBlock extends Block{
public whileBlock(Panel p) {
super(p);
setText("while");
setColor(new Color(113, 152, 245));
}
}
| true |
a9522ba47e1e53228b9c3a38872a94529ef13b40 | Java | RicardoAndersonJC/EstudoJava | /aula24/ContaCorrente.java | UTF-8 | 147 | 1.632813 | 2 | [] | no_license | package com.ricardo.cursojava.aula24;
public class ContaCorrente {
int numConta;
double saldoConta;
String contaEspecial;
double limite;
}
| true |
d7aa0434182e1ee0549fa1f684e0be585a9b299f | Java | cha63506/CompSecurity | /sound-cloud_source/src/com/soundcloud/android/playback/PlayQueueOperations.java | UTF-8 | 7,208 | 1.59375 | 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.soundcloud.android.playback;
import android.content.Context;
import android.content.SharedPreferences;
import com.soundcloud.android... | true |
4899cce9a824580db75f9385348a5b5bbc5d363e | Java | stefan0351/media-library | /web/src/com/kiwisoft/media/PDFServlet.java | UTF-8 | 5,021 | 2.125 | 2 | [] | no_license | package com.kiwisoft.media;
import org.apache.fop.apps.*;
import org.apache.fop.servlet.ServletContextURIResolver;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.app.event.implement.EscapeXmlReference;
import org.apache.velocity.runtime.RuntimeConstants;
import org.apache.velocity.Vel... | true |
aaf754fca07a89d4f7d796d06c32478fe7c402fc | Java | tankorbox/APIHuongDichVu | /src/main/java/tv/thanh/controller/ThanhToanController.java | UTF-8 | 887 | 2.078125 | 2 | [] | no_license | package tv.thanh.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.spring... | true |
82d2141f6c6466fc4129e0e8e3fe957f42d7832f | Java | Grt1228/thread_learning | /src/main/java/com/unfbx/test/ThreadNumberTest.java | UTF-8 | 770 | 2.84375 | 3 | [] | no_license | package com.unfbx.test;
import lombok.extern.slf4j.Slf4j;
/**
* @Description
* @Author Grt
* @Date 2021-08-05
*/
@Slf4j(topic = "c.ThreadNumberTest")
public class ThreadNumberTest {
public static void main(String[] args) {
Number n1 = new Number();
Number n2 = new Number();
new Thread... | true |
05cf2ec8cfe59479e0ed14b16e9943dad6eeddaa | Java | mustaeenbasit/LKW-Walter_Automation | /src/test/java/com/sugarcrm/test/meetings/Meetings_21081.java | UTF-8 | 2,996 | 2.046875 | 2 | [] | no_license | package com.sugarcrm.test.meetings;
import org.junit.Test;
import com.sugarcrm.candybean.datasource.FieldSet;
import com.sugarcrm.sugar.VoodooControl;
import com.sugarcrm.sugar.VoodooSelect;
import com.sugarcrm.sugar.VoodooUtils;
import com.sugarcrm.test.SugarTest;
public class Meetings_21081 extends SugarTest {
Vo... | true |
242194bfc0b95bad775f8c188fd60e7c86fa89fd | Java | GoogleCloudPlatform/fda-mystudies | /response-datastore/response-server-service/src/main/java/com/google/cloud/healthcare/fdamystudies/bean/QuestionnaireActivityStructureBean.java | UTF-8 | 868 | 1.9375 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package com.google.cloud.healthcare.fdamystudies.bean;
import com.google.cloud.healthcare.fdamystudies.utils.AppConstants;
import... | true |
7b40758da3cc097d3429b8f9a3260e1d64680c02 | Java | coder3/weekend-project | /src/RPNUnderflowException.java | UTF-8 | 321 | 2.078125 | 2 | [] | no_license | /**
* *******************************************************************
* File: RPNUnderflowException.java
* *********************************************************************
*/
class RPNUnderflowException extends IllegalArgumentException {
public RPNUnderflowException(String msg){
super(msg);
}
}... | true |
4f2a67fa396761730c46c4be574b8a49d37278c6 | Java | Mibburo/pameas-brms | /src/main/java/com/pameas/brms/model/AccessPoint.java | UTF-8 | 324 | 1.828125 | 2 | [] | no_license | package com.pameas.brms.model;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@ToString
@Getter
@Setter
@NoArgsConstructor
public class AccessPoint {
private String macAddress;
private String name;
private String radioBssid;
private String rssiVal... | true |
eea5b8aa3dd01161632ac31ca609cf80603a519d | Java | clbhii/java | /java/src/main/java/com/cl/java/util/zip/AntZipUtil.java | UTF-8 | 950 | 2.53125 | 3 | [] | no_license | package com.cl.java.util.zip;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.nio.charset.Charset;
import org.apache.tools.zip.ZipEntry;
import org.apache.tools.zip.ZipOutputStream;
import org.junit.Test;
public class AntZipUtil {
@Test
public void ... | true |
ff2161a5856520db950e34da82de256887288682 | Java | joe-zhou-hub/joezhou-java-base | /javase-oop/src/com/joezhou/innerclass/StaticInnerClassTest.java | UTF-8 | 1,135 | 3.265625 | 3 | [] | no_license | package com.joezhou.innerclass;
import org.junit.Test;
/**
* @author JoeZhou
*/
public class StaticInnerClassTest {
@Test
public void staticInnerClass() {
StaticOuter.StaticInner staticInner = new StaticOuter.StaticInner();
staticInner.method();
StaticOuter.StaticInner.staticMethod()... | true |
1e2a41a61485daaa403148a57d8d5022a3709150 | Java | haohhmaru/deswebmob005 | /app/src/main/java/br/usjt/desmob/geodata/ListCountryActivity.java | UTF-8 | 1,439 | 2.1875 | 2 | [] | no_license | package br.usjt.desmob.geodata;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
/*
Haohhmaru (c) 03/31/2018
Alessandro Lima da silva
RA: 201522705
Turma: CCP3AN-MCA2
*/
p... | true |
2384408649992f9a67d76202481421bcad83262f | Java | seratch/jslack-maintenance-releases | /jslack-app-backend/src/main/java/com/github/seratch/jslack/app_backend/events/handler/GroupHistoryChangedHandler.java | UTF-8 | 502 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.github.seratch.jslack.app_backend.events.handler;
import com.github.seratch.jslack.api.model.event.GroupHistoryChangedEvent;
import com.github.seratch.jslack.app_backend.events.EventHandler;
import com.github.seratch.jslack.app_backend.events.payload.GroupHistoryChangedPayload;
public abstract class Group... | true |
7713d0bedea0f5dcf5235fef6f5f2025b47ab0c9 | Java | baygoit/GoJava | /trunk/GoJava1/oleksiy.kotov/FreeTime/src/freetime/Task.java | UTF-8 | 2,844 | 3.15625 | 3 | [] | no_license | package freetime;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
public class Task {
private String description;
private Date start;
private int estimateDays;
private Date end;
pr... | true |
bd65e0e4c2f495869282f7c312aaad9692d0f416 | Java | Allen4831/canUtils | /app/src/main/java/com/can/canutils/ui/VoiceWaveViewActivity.java | UTF-8 | 804 | 1.960938 | 2 | [] | no_license | package com.can.canutils.ui;
import android.os.Bundle;
import com.can.canutils.R;
import com.can.mvp.base.BaseActivity;
import com.can.mvp.views.BindView;
import com.can.mvp.views.VoiceWaveView;
/**
* Created by CAN on 18-11-27.
*/
public class VoiceWaveViewActivity extends BaseActivity {
@BindView(id = R.id... | true |
3669e006ad2135e8e423e20b0f3ddea3428e2e64 | Java | michaelramon/SonyTestCase | /SonyStoreTestCase/src/framework/pages/SonyMyAccountPage.java | UTF-8 | 535 | 2.109375 | 2 | [] | no_license | package framework.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import framework.factories.SonyPageFactory;
public class SonyMyAccountPage extends MyAccountPage{
SonyPageFactory pageFactory = new SonyPageFactory(driver);
public SonyMyAccountPage(WebDriver driver) {
super(... | true |
efb83aac5ebbcac4ef26dc09f2ea4b760eacad2f | Java | HHX00001/algorithm | /src/cn/hhx/algorithm/array/SpareArray.java | UTF-8 | 3,122 | 3.71875 | 4 | [] | no_license | package cn.hhx.algorithm.array;
/**
* 稀疏数组的存取
*
* @author hhxStellar
* @date 2021/9/30-23:37
*/
public class SpareArray {
public static void main(String[] args) {
int[][] chessArray = new int[11][11];//二维数组
chessArray[1][2] = 1;
chessArray[2][3] = 2;
chessArray[4][9] = 22;
... | true |
23fb054219de3e6425ad358d10c2fd39540cf944 | Java | mkl34367803/bboo2014 | /bboo/src/com/smart/comm/entity/SwitchEntity.java | UTF-8 | 2,136 | 2.0625 | 2 | [] | no_license | package com.smart.comm.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* 开关
*
* @author eric
*
*/
@Entity
@Table(name = "z... | true |
dff700b831fafb6b8f6da02cfbd9c120c73d79ed | Java | cha63506/CompSecurity | /Shopping/groupon_source/src/com/twinprime/msgpack/type/ValueType.java | UTF-8 | 1,320 | 2.1875 | 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.twinprime.msgpack.type;
public final class ValueType extends Enum
{
private static final ValueType $VALUES[];
public stati... | true |
4e09d82e01b91ab688f86e24dfa61acf1e7111fc | Java | pandagoodluck/BarrageViewAndroid | /barrageview/src/main/java/com/pancheng/barrageview/bean/BasebarrageItemBean.java | UTF-8 | 265 | 1.59375 | 2 | [] | no_license | package com.pancheng.barrageview.bean;
/**
* Created by pancheng on 2015/11/18.
*/
public abstract class BaseBarrageItemBean {
public String mContent;
public int mPosX;
public int mPosY;
public int curAlpha;
public Boolean mIsFadeIn;
}
| true |
d841bdc6749b9d7db31e78dd7af0809ef13aeaa7 | Java | hk1997/zoudiy-merchant-android-app | /app/src/main/java/com/example/zoudiy/Activities/trip/AddTrip.java | UTF-8 | 16,293 | 1.742188 | 2 | [] | no_license | package com.example.zoudiy.Activities.trip;
import android.app.ProgressDialog;
import android.os.Build;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputType;
import android.text.TextWatcher;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import a... | true |
e3dc20d28e12e64b514a38fd22643e06996ae568 | Java | bravehui9402/newsPub | /src/com/lh/web/servlet/UserServlet.java | UTF-8 | 6,229 | 2.25 | 2 | [] | no_license | package com.lh.web.servlet;
import com.lh.bean.ResultBean;
import com.lh.bean.User;
import com.lh.service.UserService;
import com.lh.service.impl.UserServiceImpl;
import org.apache.commons.beanutils.BeanUtils;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http... | true |
9bfbedf4c9345d919666be4b996e4876ba21f44c | Java | csepulveda7/COP3330 | /Assignment2/sepulveda_p1/src/Problem1.java | UTF-8 | 936 | 3.5625 | 4 | [] | no_license | package sepulveda_p1;
import java.util.Scanner;
public class Problem1 {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
System.out.println("Enter a 4-digit number to encrypt:");
int data = scnr.nextInt();
int digit1 = (((data / 1000) % 10) + 7) % 10;
int digit2 = (((data /... | true |
6471bc89138dad49eea28da83e1b2cac81cf4396 | Java | tak0294/DungeonRpg | /openglCustom4/src/all/jp/Game/Event/Battle/BattleManager.java | SHIFT_JIS | 53,227 | 2.03125 | 2 | [] | no_license | package all.jp.Game.Event.Battle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import javax.microedition.khronos.opengles.GL11;
import cx.fam.tak0294.storage.DBHelper;
import all.jp.Game.GameMode;
import all.... | true |
b4e65c3bd112552a4ee181aa67d05755ee771067 | Java | ZNWhahaha/LeetCodes | /src/main/java/test/wuba58_01.java | UTF-8 | 1,797 | 3.21875 | 3 | [] | no_license | package test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class wuba58_01 {
// boolean[] used;
// int result = 0;
// int path = 0;
// int start;
// public int[] subArraySum (int[] Array, int arrayLen, int subArrayLen) {
// // write code here
// used ... | true |
f3ddf0de4bd2e8c1e8551e526531ddd078d24bd8 | Java | chrisneven/FooMe-backend | /src/main/java/Controller/AccelerationController.java | UTF-8 | 2,576 | 2.828125 | 3 | [] | no_license | package Controller;
import DAO.AccelerationDAO;
import Model.Acceleration;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import... | true |
3b89313368afe199a9606eea194c1f8116c277ed | Java | SharonFabin/MovieRecommendation | /src/model/MovieScrapper.java | UTF-8 | 2,130 | 2.765625 | 3 | [] | no_license | package model;/*
* Created by Sharon on 31/03/2018.
*/
import model.Scrapper.JSoupCrawler;
import model.Scrapper.Scrapper;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;
import java.util.Arrays;
import java.util.... | true |
1e229bec02cf8f0d38eb1143e6d47c01c3ad176d | Java | Charles-Garza/lab7-ApplicationsProgramming | /src/application/controller/MainController.java | UTF-8 | 15,985 | 2.75 | 3 | [] | no_license | package application.controller;
import java.net.URL;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import java.util.ResourceBundle;
import application.model.Item;
import application.model.Market;
import javafx.an... | true |
6c1c593bc9ed5b68d18d095d6dff15ac76f0798f | Java | fishey2/java-component-template | /src/test/java/com/roboautomator/component/patient/PatientControllerTestIT.java | UTF-8 | 4,194 | 2.25 | 2 | [
"MIT"
] | permissive | package com.roboautomator.component.patient;
import static com.roboautomator.component.patient.utils.PatientTestUtils.getPatientNumber;
import static org.assertj.core.api.Assertions.assertThat;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import org.junit.jupiter.api.BeforeEach;
imp... | true |
ef4092f95ea37321c52ae8bdbfd43b11e8fc59e7 | Java | elizabethrego/Assembly-Language-Computer-Architecture-Assignments | /ElizabethRego-Assignment1-#3/src/BinaryToHex.java | UTF-8 | 4,118 | 3.75 | 4 | [] | no_license | /**
* BinaryToHex converts binary numbers to their hexadecimal equivalents, and back again.
* Created by Elizabeth Rego on 10/1/14.
*/
public class BinaryToHex {
// Create jagged array to store mappings of binary numbers to
// their hexadecimal equivalents
public static String[][] mappingBinaryToHex
... | true |
f0ea2501362e46f6ee72d3776bd331c161340a4e | Java | James1345/bfg | /src/com/mithos/bfg/core/BFGWindowProperties.java | UTF-8 | 4,249 | 3.25 | 3 | [
"BSD-2-Clause"
] | permissive | package com.mithos.bfg.core;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Point;
/**
* This class is used to hold information about the current or initial state of
* an AppWindow. it is instantiated with sensible defaults (detailed below).
*
* There are two variants of this class. One is cr... | true |
aa953ed5869ecc9f6de37375e745c233d8e55c39 | Java | 987625922/springbootlearn2 | /src/test/java/com/wind/springbootlearn2/Springbootlearn2ApplicationTests.java | UTF-8 | 855 | 2.078125 | 2 | [] | no_license | package com.wind.springbootlearn2;
import junit.framework.TestCase;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
/*
* springboot单元测试
* ... | true |
9b1bae0767b28b4ac399a033a12994ba77d3861c | Java | stalker77/sprint | /core-client/src/main/java/ru/dobrokvashinevgeny/sprint/infrastructure/services/appmodel/JsonComponentApplicationTranslator.java | UTF-8 | 2,904 | 2.09375 | 2 | [] | no_license | /*
* Copyright (c) 2018 Evgeny Dobrokvashin, All Rights Reserved.
*/
package ru.dobrokvashinevgeny.sprint.infrastructure.services.appmodel;
import com.github.nmorel.gwtjackson.client.ObjectMapper;
import com.google.gwt.core.client.GWT;
import com.google.gwt.json.client.*;
import ru.dobrokvashinevgeny.sprint.domain.... | true |
ca6c9e42499ce8f1a42fa9e94ca348e776029ff3 | Java | namimono/zhny | /src/main/java/org/rcisoft/business/common/dao/CommonDao.java | UTF-8 | 6,833 | 2.09375 | 2 | [] | no_license | package org.rcisoft.business.common.dao;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;
import org.rcisoft.business.common.entity.DeviceParam;
import org.rcisoft.business.common.entit... | true |
62eb1bf8a221d0836784c7be3e935853c1a29b63 | Java | runzhigu/CS2 | /lab04/tests/edu/caltech/cs2/lab04/DecisionTreeTests.java | UTF-8 | 5,147 | 2.40625 | 2 | [] | no_license | package edu.caltech.cs2.lab04;
import edu.caltech.cs2.helpers.Inspection;
import org.junit.jupiter.api.*;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.List;
import java.util.Map;
import ja... | true |
bf8282ed04006a964211bc569671399d54a55737 | Java | taranggodhari/PocketCinema | /app/src/main/java/com/centennial/tarang/comp304_003_assignment4/WelcomeActivity.java | UTF-8 | 10,234 | 2.40625 | 2 | [] | no_license | package com.centennial.tarang.comp304_003_assignment4;
//Author: Vrunda Shah(300900997), Tarang Godhari (300931365)
//COMP304_003Assignment4_WelcomeActivity
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import a... | true |
9ad47d3746bfeaaf91d7a7cc43562910580adb63 | Java | Home-Java8/combiq | /web/src/main/java/ru/atott/combiq/web/view/SearchViewBuilder.java | UTF-8 | 1,855 | 2.046875 | 2 | [
"MIT"
] | permissive | package ru.atott.combiq.web.view;
import org.springframework.web.servlet.ModelAndView;
import ru.atott.combiq.service.bean.Question;
import ru.atott.combiq.service.bean.Tag;
import ru.atott.combiq.web.bean.PagingBean;
import java.util.List;
public class SearchViewBuilder {
private List<Question> questions;
p... | true |
0e63553fc235a1d34de185e35b83a548723ec0ef | Java | zhouxian1/druid | /src/main/java/com/hjj/common/domain/Example.java | UTF-8 | 194 | 1.664063 | 2 | [] | no_license | package com.hjj.common.domain;
/**
* Created by zzy on 2015/11/2.
*/
public class Example extends tk.mybatis.mapper.entity.Example {
public Example(Class<?> c){
super(c);
}
}
| true |
d2fe5d431906882ff64cbf2bd6816253bd4ae8e3 | Java | jonhassall/AndroidSOFT40151 | /mapstest/app/src/main/java/com/jonhassall/mapstest/MyLocationListener.java | UTF-8 | 1,019 | 2.34375 | 2 | [] | no_license | package com.jonhassall.mapstest;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;
import android.util.Log;
/* Class My Location Listener */
public class MyLocationListener implements LocationListener
{
@Override
public void o... | true |
ac61ec5dcd330ce430d62fecf597e51e93567373 | Java | behind-the-blocks/armada | /armada-scheduler/src/main/java/net/twerion/armada/scheduler/util/YamlTypeSequenceReader.java | UTF-8 | 2,233 | 2.40625 | 2 | [
"MIT"
] | permissive | package net.twerion.armada.scheduler.util;
import java.util.Collection;
import java.util.Collections;
import javax.annotation.Nullable;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import com... | true |
fc2d2a69d9f66b0ccf54dce62ab399ef413df26d | Java | VaishaliMistry13/BDD-Framework | /src/main/java/SeleniumSession/FrameHandle.java | UTF-8 | 875 | 2.15625 | 2 | [] | no_license | package SeleniumSession;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class FrameHandle {
public static void main(String[] args) throws InterruptedException {
WebDriverManager... | true |
491325737b2cd644a37f0e5e2aa91ea3d89478e0 | Java | maczam/jmacs | /src/main/java/info/hexin/jmacs/mvc/handler/upload/MemTempFile.java | UTF-8 | 686 | 2.359375 | 2 | [] | no_license | package info.hexin.jmacs.mvc.handler.upload;
import info.hexin.lang.Exceptions;
import java.io.UnsupportedEncodingException;
/**
* 内存格式
*
* @author hexin
*
*/
public class MemTempFile extends TempFile {
byte[] buffer;
public void append(byte[] buffer, int s, int len) {
this.... | true |
21c5edae14dc2f8633c7a2741276eafc28f7c0fa | Java | pombredanne/lsh-for-source-code | /Big_Clone_Bench_files_used/bcb_reduced/3/selected/502490.java | UTF-8 | 7,806 | 2.703125 | 3 | [
"MIT"
] | permissive | package gov.lanl.Utility;
import org.apache.log4j.Logger;
import org.apache.xerces.impl.dv.util.Base64;
import java.security.MessageDigest;
public class IdentitySHA {
private boolean verbose = false;
private MessageDigest sha = null;
private static Logger cat = Logger.getLogger(IdentitySHA.class.getNam... | true |
3f2ee37410ce5e36fcea747a49e236cb0161879d | Java | kevbot-git/JavaMusicGenerator | /src/com/kevinmenhinick/generativemusic/MajorKey.java | UTF-8 | 341 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.kevinmenhinick.generativemusic;
public class MajorKey extends Key {
public MajorKey(int rootNote) {
super(rootNote);
}
public MinorKey relativeMinor() {
return new MinorKey((getRoot() + 9) % 12);
}
@Override
public Key relative() {
return relativeM... | true |
55409596dd3415bb50ae8420e16a1397c864a97e | Java | mass14/TrabalhoQuatro | /TrabalhoQuatro/src/formas/Poligono.java | UTF-8 | 111 | 2.03125 | 2 | [] | no_license | package formas;
public abstract class Poligono {
private double lado;
public abstract double getArea();
}
| true |