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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
767612b292b632d005947e35cb288cf268a6ba65 | Java | bellmit/luhai | /jeecbmie-luhai-webapp/src/main/java/com/cbmie/lh/mobile/Main.java | UTF-8 | 3,204 | 2.09375 | 2 | [] | no_license | package com.cbmie.lh.mobile;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.... | true |
82fd38bfad838655f2736585d6e88eae3357e2de | Java | VIJAYAJUPUDI/Stage1 | /JUnit,Mockito/885149/Electricity Bill/ElectricityBill/src/EBBillTest.java | UTF-8 | 1,381 | 2.640625 | 3 | [] | no_license | import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.Assert;
import org.junit.Test;
public class EBBillTest
{
EBBill eb;
@Test
public void testCalculateBillAmount_UnitsEqualTo0(){
eb = new EBBill(0);
Assert.assertEquals(0,eb.calculateBillAmo... | true |
e76af5909ea3a3879d7a524dc3071be7f1a663c5 | Java | won21kr/Malware_Project_Skycloset | /skycloset_malware/src/com/facebook/common/d/g.java | UTF-8 | 432 | 1.828125 | 2 | [] | no_license | package com.facebook.common.d;
public class g {
public static int a(int... paramVarArgs) {
boolean bool;
int i = paramVarArgs.length;
byte b = 1;
if (i > 0) {
bool = true;
} else {
bool = false;
}
i.a(bool);
for (i = paramVarArgs[0]; b < paramVarArgs.length; i = j) {
... | true |
de7cc003c6662449f65b6dc9eaac8a6de35415ef | Java | saketrule/Research_Project-HackerRank_CheckStyle | /game_theory/game-of-stones-1/java/shivshankar.java | UTF-8 | 607 | 3.25 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
int i1,i2;
... | true |
11a25603e6aaf2fd5ce74e54f167c09c049ca8b6 | Java | CrazyChaoz/VideoCuttingTool | /backend/src/at/jku/videocuttingtool/backend/Export.java | UTF-8 | 1,111 | 2.71875 | 3 | [] | no_license | package at.jku.videocuttingtool.backend;
import java.io.File;
import java.nio.file.Paths;
/**
* Container Class for an export
*/
public class Export {
private final Timeline timeline;
private final File export;
private final String videoFormat;
private final String audioFormat;
/**
* @para... | true |
13de401585ccdc7030cba3813ba48b669394b905 | Java | zhoujinhua/lyqc-aloan | /lyqc-aloan-iface/src/main/java/com/rdfs/lyqc/system/entity/SyUserDepartment.java | UTF-8 | 2,055 | 2.15625 | 2 | [] | no_license | package com.rdfs.lyqc.system.entity;
/**
* 用户部门关系表
*/
public class SyUserDepartment implements java.io.Serializable {
/**
*
*/
private static final long serialVersionUID = 1605997991269788628L;
private String userId;
private String userPostion;
private Integer departmentId;
private SyDepartment depar... | true |
2000055ac165353b34254bb6e6818490edc368b9 | Java | aroussie-zz/J2EE_finalProject | /src/main/java/edu/iit/sat/itmd4515/aroussie/service/StartUpBean.java | UTF-8 | 7,095 | 2.484375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package edu.iit.sat.itmd4515.aroussie.service;
import edu.iit.sat.itmd4515.aroussie.domain.Administrator;
import edu.iit.sat.itmd4515.... | true |
83b507870c0d7dfbb38504067d4440002a9631f0 | Java | yogesh2511/GitJenkinsIntegration | /src/test/java/automation/vaccinationSlot/testScript/Vaccination.java | UTF-8 | 683 | 1.828125 | 2 | [] | no_license | package automation.vaccinationSlot.testScript;
import java.io.IOException;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.Test;
import automation.vaccinationSlot.pages.HomePage;
import automation.vaccinationSlot.testBase.TestBase;
public class Vaccination extends TestBase {
@Test(priorit... | true |
24b4211314726561384e43d74fea3407f157349c | Java | backumich/prof0918 | /src/main/java/com/vertex/unittesting/impl/StringMathUtilImpl.java | UTF-8 | 284 | 2.1875 | 2 | [] | no_license | package com.vertex.unittesting.impl;
import com.vertex.unittesting.StringMathUtil;
public class StringMathUtilImpl implements StringMathUtil {
@Override
public int getMinLength(String first, String second) {
return Math.min(first.length(), second.length());
}
}
| true |
f04c3ecabdae29661210ae9969732d666a3e8e16 | Java | vicvr823/Proyecto-UAPP | /app/src/main/java/com/example/ejemplo1/RegistrosActivity.java | UTF-8 | 8,004 | 2.046875 | 2 | [] | no_license | package com.example.ejemplo1;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.Spinner;
import android.widget.To... | true |
2ddf17ad269f54a64cd34e55e39d5a9131953a73 | Java | dieSwartPiet/DashLive | /src/DB_FUNCTIONS.java | UTF-8 | 22,359 | 2.765625 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.scene.control.TableView;
public class DB_FUNCTIONS {
// show all the m... | true |
5ef546c2a332393f95ea52043cce1b4f3c2bccee | Java | psm8/pseemannlabobj | /Lab8Ex4/src/SortBrutto.java | UTF-8 | 322 | 2.859375 | 3 | [] | no_license | import java.util.*;
public class SortBrutto implements Comparator<Pracownik> {
public int compare(Pracownik prac1, Pracownik prac2){
return prac1.getWynagrodzenieBrutto() < prac2.getWynagrodzenieBrutto() ? -1 : prac1.getWynagrodzenieBrutto() == prac2.getWynagrodzenieBrutto() ? 0 : 1;
}
... | true |
3cc155006d795672e14c8dfb6be84eaffa46a73e | Java | Rusamson/Spring-MVC-Hibernate-Maven | /src/main/java/com/samson/service/TrackerServiceImpl.java | UTF-8 | 900 | 2.21875 | 2 | [] | no_license | package com.samson.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.samson.dao.TrackerDao;
import com.samson.model.Tracker;
@Service
public class TrackerServiceImpl implements TrackerService {
private Tracke... | true |
f372c3ad5d5c4a3beb9bb7146b147b5ddc34eeb7 | Java | mrZolutions/Integridad | /integridad-api/src/main/java/com/mrzolution/integridad/app/controllers/DetailDailybookContabController.java | UTF-8 | 4,693 | 2.015625 | 2 | [] | no_license | package com.mrzolution.integridad.app.controllers;
import com.mrzolution.integridad.app.domain.DetailDailybookContab;
import com.mrzolution.integridad.app.domain.report.AllDailyReport;
import com.mrzolution.integridad.app.domain.report.EspecificMajorReport;
import com.mrzolution.integridad.app.domain.report.GeneralMaj... | true |
4e14f61ca5c95c3177ff4d154364d4b8d55ba794 | Java | BaherAlsaqa/RamiAlastora | /app/src/main/java/com/ramyhd/ramyalastora/classes/responses/search/Data.java | UTF-8 | 963 | 2.03125 | 2 | [] | no_license |
package com.ramyhd.ramyalastora.classes.responses.search;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
public class Data {
@SerializedName("players")
@Expose
private ArrayList<Player> players = null;
@SerializedName("teams... | true |
68e0e2058578ef9e36050a26e95530456a170c7b | Java | rjhanson47/marchMadness | /src/marchMadness/db/TourneySlot.java | UTF-8 | 904 | 2.671875 | 3 | [] | no_license | package marchMadness.db;
/**
* March Madness
* @author Jin and Robert
*
*/
public class TourneySlot {
private String season;
private String slot;
private String strongseed;
private String weakseed;
public TourneySlot (String season, String slot, String strongseed, String weakseed) {
this.season = season... | true |
cca8818bdbc285717ef16a5eef568e41694ede87 | Java | Ab0o0oD/Learning_Spring | /Spring Framework 5 - Beginner ToGuru/spring-mvc-rest/src/main/java/com/fredrikpedersen/springmvcrest/repositories/CustomerRepository.java | UTF-8 | 328 | 1.671875 | 2 | [] | no_license | package com.fredrikpedersen.springmvcrest.repositories;
import com.fredrikpedersen.springmvcrest.domain.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @author Fredrik Pedersen
* @version 1.0
* @since 16/02/2020 at 17:52
*/
public interface CustomerRepository extends JpaRepository<Cu... | true |
d9a89464f998e0cdb108eba4a60d6553663d62af | Java | linjiang911/jincao-commerce | /src/main/java/com/godsmiracle/jincao/common/util/SMSConfig.java | UTF-8 | 744 | 2.25 | 2 | [] | no_license | package com.godsmiracle.jincao.common.util;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.springframework.jdbc.support.JdbcUtils;
public class SMSConfig {
public final static String URL = getConfig("URL");
public final static String ACCOUNT = getConfig("ACCOUNT"... | true |
1c3bba5105c8afe3b219235f04f00b7631bda6aa | Java | Doggy228/SysProgLAB | /labfinal/4-20-Java-IO-83-Omelyanskyi/4-20-Java-IO-83-Omelyanskyi/src/main/java/edu/kpi/io8322/sysprog/lab/lexical/LexTypeEnum.java | UTF-8 | 253 | 1.617188 | 2 | [] | no_license | package edu.kpi.io8322.sysprog.lab.lexical;
public enum LexTypeEnum {
NONE, BLOCKINDENT, SYMB, BKTB, BKTE, COLON, QUOTE1, QUOTE2, KEYWORD, DEF, RETURN, CONST, CONSTINT, CONSTCHAR, ID,
NOT, PLUS,
EQUAL, MINUS, LESS, CONSTSTR,
IF, ELSE
}
| true |
30e7d51cfb4fc243f69eada98e16e0863a16eb99 | Java | mbatchelor/pentaho-commons-xul | /pentaho-xul-core/src/org/pentaho/ui/xul/binding/BindingProvider.java | UTF-8 | 1,375 | 1.632813 | 2 | [] | no_license | /*!
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software
* Foundation.
*
* You should have received a copy of the GNU Lesser General Public License along with this
* program; if not, you ... | true |
6c854f6fca89378d1da3d5cc1e51f5a9a7e94065 | Java | yadnyesh/timbuljava | /src/io/ttp/SerializeDemo.java | UTF-8 | 943 | 2.921875 | 3 | [] | no_license | package io.ttp;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
public class SerializeDemo {
public static void main(String[] args) {
serializeEmployee();
}
private static void serializeEmployee() {
Employee e = new Employee();... | true |
1ac84df50354bbb714d0e336e439d3cd4e3f4916 | Java | spring-projects/spring-framework | /spring-web/src/testFixtures/java/org/springframework/web/testfixture/servlet/DelegatingServletInputStream.java | UTF-8 | 2,356 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2002-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
b67cb933d11c09312e886b8545c912d4c5d74392 | Java | nigelmaddocks/gpitf-purchasing | /purchasing-frontend/src/main/java/uk/nhs/gpitf/purchasing/endpoints/OrganisationDataController.java | UTF-8 | 4,943 | 2.0625 | 2 | [] | no_license | package uk.nhs.gpitf.purchasing.endpoints;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annota... | true |
549e5dfa46561cbe39ee7dac14cb7a6110587da0 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_completed/299251.java | UTF-8 | 3,332 | 2.71875 | 3 | [] | no_license |
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
import java.io.UncheckedIOException;
class c299251 {
public MyHelperClass port;
public Arr... | true |
e741e06e7a873163e9afee6fb3554dc73a8789e6 | Java | jprimas/zCafe | /zCafe/src/com/zynga/zcafe/views/PopupEditText.java | UTF-8 | 4,226 | 2.125 | 2 | [] | no_license | package com.zynga.zcafe.views;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.text.Editable;
import android.text.SpannableStringBuilder;
import android.text.TextWatcher;
import android.util.AttributeSet;
import android.util.Log;
import android.vie... | true |
11614656eca088d6a1b8115f83426e4d8d53a205 | Java | vinicius-zhu/GerenciadorFinanceiro | /app/src/main/java/br/edu/ifsp/aluno/viniciuszhu/gerenciadorfinanceiro/views/GerarExtratoActivity.java | UTF-8 | 3,208 | 2.15625 | 2 | [] | no_license | package br.edu.ifsp.aluno.viniciuszhu.gerenciadorfinanceiro.views;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;
import java.util.... | true |
0010b9b4becd6cb8c2d72942c2b438de9dbd6c92 | Java | Zhang-xaio/FiveFlowers-2 | /src/main/java/com/whjx/service/impl/SelectSpuServiceImpl.java | UTF-8 | 484 | 2.0625 | 2 | [] | no_license | package com.whjx.service.impl;
import com.whjx.dao.SelectSpuMapper;
import com.whjx.pojo.Spu;
import com.whjx.service.SelectSpuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class SelectSpuServiceImpl implements SelectSpuService {... | true |
aa02ad200950f048c19a05cd51c80445e5de5cbe | Java | majiajue/ooobgy | /pizza-mr/src/com/taobao/dw/pizza/path_analysis/core/PizzaConst.java | GB18030 | 575 | 2.015625 | 2 | [] | no_license | package com.taobao.dw.pizza.path_analysis.core;
/**
* ·ó
*
* @author
*
*/
public class PizzaConst {
public static final String SPLIT = "\u0001";
public static final String SECOND_SPLIT = "\u0002";
public static final String COMMA_SPLIT = ",";
public static final String TAB_SPLIT = "\t";
... | true |
8656ca17864781ade4e785679a089dbee4ed81f1 | Java | gghate/SuperDrive | /src/main/java/com/udacity/jwdnd/course1/cloudstorage/Controller/CredentialsController.java | UTF-8 | 3,819 | 2.265625 | 2 | [] | no_license | package com.udacity.jwdnd.course1.cloudstorage.Controller;
import com.udacity.jwdnd.course1.cloudstorage.Model.Credentials;
import com.udacity.jwdnd.course1.cloudstorage.Model.Notes;
import com.udacity.jwdnd.course1.cloudstorage.Model.User;
import com.udacity.jwdnd.course1.cloudstorage.services.CredentialsService;
imp... | true |
2b88717ba14a39927c88e25c7f494af8cf3d2855 | Java | vikeshpawar/HomeLaptopcodeTestNG | /TestSelenium/src/main/java/Browser/InternetExplorer.java | UTF-8 | 169 | 2.28125 | 2 | [] | no_license | package Browser;
public class InternetExplorer implements Browser {
public void openbrowser() {
System.out.println("InternetExplorer Browser");
}
}
| true |
1b41a6770bf6a2453767be8e3106a85137f4cfc5 | Java | AndroidTVDeveloper/com.google.android.tvlauncher | /HOLD/sources/defpackage/bqw.java | UTF-8 | 1,359 | 1.859375 | 2 | [] | no_license | package defpackage;
import android.os.Looper;
import android.os.Message;
import android.util.Log;
import java.util.concurrent.locks.Lock;
/* renamed from: bqw reason: default package */
/* compiled from: PG */
final class bqw extends bvm {
private final /* synthetic */ bqx a;
/* JADX INFO: super call moved ... | true |
ea44b2dbd4b14c0ace3ccaaec52a807ac5699c32 | Java | HayleyLee/enji_iot | /data/src/main/java/com/enji_iot/data/Controller/IotScreenController.java | UTF-8 | 11,983 | 1.859375 | 2 | [] | no_license | package com.enji_iot.data.Controller;
import com.enji_iot.cache.Cache.CacheName;
import com.enji_iot.cache.Cache.ProCacheUtil;
import com.enji_iot.data.Service.*;
import com.enji_iot.data.Util.UserUtil;
import com.enji_iot.util.Common.RequestURLIOT;
import com.enji_iot.util.Entity.bo.*;
import com.enji_iot.uti... | true |
e373cedb05a2f7921bda190002e225e344c4b792 | Java | prestodb/presto | /presto-product-tests/src/main/java/com/facebook/presto/tests/hive/TestHivePartitionSchemaEvolution.java | UTF-8 | 6,741 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | true |
20c34049a46d5c0dc9d314194a80f6d303665fce | Java | helixgit2001/Pacman-helia-ghorabani-P2 | /src/main/java/engine/phy/Collider.java | UTF-8 | 698 | 3.21875 | 3 | [] | no_license | package engine.phy;
/**
* Interface defining the classes allowing to detect collisions and exit of zone
*/
public interface Collider {
/**
* Updates the collider's position
* @param newPosition
*/
public void update(Position newPosition);
/**
* Function allowing to detect if there is... | true |
9181025cd387016a1c5009b7e7c030137056de71 | Java | HOUJIANWEI98/HouJianWeiMaintainMangementSystem | /src/com/dao/LeaveStatusDao.java | UTF-8 | 565 | 1.84375 | 2 | [] | no_license | package com.dao;
import static com.util.common.Constants.LEAVESTATUSTABLE;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import com.pojo.LeaveStatus;;
public interface LeaveStatusDao {
//查询
@Select("select * from "+LEAVESTATUSTABLE+" ")
List<LeaveStatus> selectAllLeaveType();
@Select("s... | true |
11c05bca97184004ccc163cbc9c42324fb36c80d | Java | fivesmallq/hbase-ui | /src/main/java/org/nll/hbase/ui/service/HbaseDataService.java | UTF-8 | 1,702 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 fivesmallq.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | true |
dba18342378f7c84c2f2074dae8a7909c149eca3 | Java | andredly/horses-race | /webapp/src/main/java/com/charniauski/training/horsesrace/web/controller/RacecourseController.java | UTF-8 | 3,459 | 2.21875 | 2 | [] | no_license | package com.charniauski.training.horsesrace.web.controller;
import com.charniauski.training.horsesrace.datamodel.Racecourse;
import com.charniauski.training.horsesrace.services.GenericService;
import com.charniauski.training.horsesrace.services.RacecourseService;
import com.charniauski.training.horsesrace.services.wra... | true |
eeb03de5c9e1aa5ee789a37e715accb0e0e47ba2 | Java | osamafaqeeh/DOT-task | /src/main/java/com/osama/task/command/user/EmptyCommand.java | UTF-8 | 402 | 2 | 2 | [] | no_license | package com.osama.task.command.user;
import com.osama.task.command.ActionCommand;
import com.osama.task.command.Page;
import javax.servlet.http.HttpServletRequest;
import static com.osama.task.command.Page.LOGIN_PAGE_PATH;
public class EmptyCommand implements ActionCommand {
@Override
public Page execute(Htt... | true |
8fcf72e36afa3025b7fe70360aa51fdbec012bf9 | Java | evasnowind/distributed-dev-learning | /circuit-breaker/hystrix-demo/labx-23-scn-hystrix-feign/src/main/java/cn/iocoder/springcloud/labx23/hystrixdemo/controller/FeignDemoController.java | UTF-8 | 970 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package cn.iocoder.springcloud.labx23.hystrixdemo.controller;
import cn.iocoder.springcloud.labx23.hystrixdemo.feign.UserServiceFeignClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;... | true |
215415ba41e5a307d7547beabcff7250c0b4a6d7 | Java | jasonkung0211/SpringBoot-SQLite-examples | /src/main/java/com/jasonkung/springboot/ScheduledTasks.java | UTF-8 | 1,099 | 2.296875 | 2 | [] | no_license | package com.jasonkung.springboot;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.jasonkung.springboot.model.Parking;
import com.jasonkung.springboot.model.ParkingMapper;
import okhttp3.ResponseBody;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframewo... | true |
14f7deb363de1e3ff4953af970c49633f2941a82 | Java | valegrajales/recommendation_systems_lab1 | /recommender101/src/org/recommender101/guiconfig/FrmSettings.java | UTF-8 | 18,458 | 2.03125 | 2 | [
"MIT"
] | permissive | package org.recommender101.guiconfig;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;... | true |
9c7d999afbdd92e91a6525a57f66f34d24486685 | Java | byr-ly/leetcode | /trunk/opus/src/main/java/com/eb/bi/rs/opus/itemcf/predictscore/.svn/text-base/TopUserOpusReducer.java.svn-base | UTF-8 | 1,803 | 2.296875 | 2 | [] | no_license | package com.eb.bi.rs.opus.itemcf.predictscore;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.hadoop.conf.Configuration;
... | true |
ff89ee31479387c57e96356034942d029055bca1 | Java | denis-mhd/JavaDesignPatterns | /src/design/patterns/creational/abstractfactory/ConcreteProductAOne.java | UTF-8 | 109 | 1.828125 | 2 | [] | no_license | package design.patterns.creational.abstractfactory;
public class ConcreteProductAOne implements ProductA{
}
| true |
ce139f1427b7e4c3e86aaa6297396b0d24cd1039 | Java | ESTAT/core-geonetwork | /web-itest/src/test/java/itest/org/fao/geonet/services/main/SearchTest.java | UTF-8 | 2,163 | 2.3125 | 2 | [] | no_license | package itest.org.fao.geonet.services.main;
import itest.org.fao.geonet.Utils;
import java.io.IOException;
import org.junit.Test;
import junit.framework.TestCase;
public class SearchTest extends TestCase {
public SearchTest() {
Utils.setSequential();
Utils.cleanCatalogue();
}
@Test
public void testDenomi... | true |
007878475dd5cbd64687b1d8ec1478fe72311694 | Java | JoSeRyeon/SWDO_study | /Capa0415/src/main/java/com/swdo/test/controller/PortfolioViewController.java | UTF-8 | 1,766 | 2.15625 | 2 | [] | no_license | package com.swdo.test.controller;
import java.util.ArrayList;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.sp... | true |
23bc12ad8b069858fc6227ffeb1eac08f5c14cf4 | Java | MicroServicesRepository/JDBCTemplate | /src/main/java/com/jdbc/MySQL/Example/MicroServiceDAOImpl.java | UTF-8 | 672 | 2.109375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.jdbc.MySQL.Example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.Jd... | true |
8b7161d96c0378d671d81dc9b471191322db4916 | Java | jmSwift/JavaPrograms | /primeNumbers.java | UTF-8 | 571 | 3.375 | 3 | [] | no_license | import java.util.*;
import java.io.*;
import java.text.*;
public class primeNumbers
{
public static void main(String[] args)
{
Scanner userInput = new Scanner(System.in);
System.out.print("Enter a number: " );
int pNumber = userInput.nextInt();
boolean primeNumber = false;
int j;
... | true |
0aa303488663a85a3589c8efea9b60388cc4752c | Java | natalialionel/Aprendendo-SQLite | /app/src/main/java/a2works/com/br/aprendendosqlite/AlterarActivity.java | UTF-8 | 3,180 | 2.21875 | 2 | [] | no_license | package a2works.com.br.aprendendosqlite;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.wi... | true |
0bf2c4780c83e2e8058cfb93ca25e84ae43111b1 | Java | prkharueh12/JavaIntroClass | /src/day16ArraysList/ArrayListIntro.java | UTF-8 | 893 | 3.65625 | 4 | [] | no_license | package day16ArraysList;
import java.util.ArrayList;
public class ArrayListIntro {
public static void main(String[] args) {
ArrayList<String> names = new ArrayList<String> ();
names.add("Selenium"); //0
names.add("SDET"); //1
names.add("Techcircle"); //2
names.add("Cucumber");... | true |
ae06420119eb4ee0896b63e117007ae6d7e1eea5 | Java | kasaram/PinBot-3 | /src/common/Http.java | UTF-8 | 15,051 | 2.234375 | 2 | [
"MIT"
] | permissive | package common;
import java.io.EOFException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.SocketTimeoutException;
import java.net.UnknownHostException;
import java.util.Map;
import java.util.NoSuchElementException;
import org.apache.http.Header;
import org.a... | true |
3032cb8f80b2f069d33470801aaaea2b056f4ae9 | Java | 767954322/Android2 | /yuewan/src/main/java/com/tuwan/yuewan/entity/SelectServiceBean.java | UTF-8 | 4,213 | 1.742188 | 2 | [] | no_license | package com.tuwan.yuewan.entity;
import java.util.List;
/**
* Created by Administrator on 2018/3/1.
*/
public class SelectServiceBean {
private String teacherId;
private String speech;
private String desc;
private String grading;
private String dtid;
private String arcrank;
... | true |
894f91b594c9547354b3206fcd8be3a9e4ee0414 | Java | gbahuguna/hiring_exercise | /software-engineer/src/main/java/com/drmtx/app/repositories/WordFrequencyRepository.java | UTF-8 | 646 | 2.0625 | 2 | [] | no_license | package com.drmtx.app.repositories;
import java.util.List;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.drmtx.app.entities.WordFre... | true |
8270e641a842e88735d1a691afbf4e736065ab10 | Java | surekhakoliebill/tangerine_fab_13march | /Tangerine_App/app/src/main/java/com/aryagami/tangerine/activities/BarcodeScannerActivity.java | UTF-8 | 3,189 | 2.140625 | 2 | [] | no_license | package com.aryagami.tangerine.activities;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import a... | true |
14f68df6961b7013214c3a20351b3be16f233a2e | Java | jcobb2020/SeeYouInCourt | /src/main/java/CourtObjects/ReferencedCourtCase.java | UTF-8 | 595 | 2.59375 | 3 | [] | no_license | package CourtObjects;
import java.util.List;
public class ReferencedCourtCase {
private String caseNumber;
private List<String> judgmentIds;
private boolean generated;
public String getCaseNumber(){
return this.caseNumber;
}
@Override
public boolean equals(Object o){
if(!... | true |
97fe3522d75d989600e3cd752d3fa9b7dc5cc65d | Java | echeva/Facultad | /Concurrente/Resoluciones/Parciales_Parte2/ada_parcial1.java | UTF-8 | 986 | 3.046875 | 3 | [] | no_license | /* En un banco se tiene un sistema que administra el uso de una sala de reuniones
por parte de N clientes. Los clientes se clasifican en Habitulaes y Temporales.
La sala puede ser usada por un único cliente a la vez, y cuando está libre se debe
determinar a quién permitirle su uso dando prioridad a los clientes Habitua... | true |
61dcb30decbf02e9836f41233c9218b6316cc4db | Java | dinongs/ShuNdeud | /ShuNdeud/src/com/example/shundeud/MAdapter.java | GB18030 | 2,095 | 2.265625 | 2 | [] | no_license | package com.example.shundeud;
import java.util.ArrayList;
import android.content.Context;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
... | true |
82a8783aa189009daf76d73012376724386783d9 | Java | Natsvora/angularwithnode | /MavenSpring/src/main/java/com/argusoft/mavenspring/dao/DeptDao.java | UTF-8 | 3,546 | 2.328125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.argusoft.mavenspring.dao;
import com.argusoft.mavenspring.bean.Dept;
import com.argusoft.mavenspring.bean.Emp;
import com.... | true |
99c558e98bd0ec0855ed210b868ee09e0ff24a05 | Java | Cooble/ChristmasAdventureGame | /CoobleEngine/src/cooble/ch/entity/Mover.java | UTF-8 | 2,407 | 3.0625 | 3 | [] | no_license | package cooble.ch.entity;
import com.sun.istack.internal.Nullable;
import cooble.ch.core.Game;
import cooble.ch.window.Tickable;
/**
* Used to move IMoveable to another location in Location
* Needs to call tick()
*/
public final class Mover implements Tickable {
private IMovable MOVEABLE;
private final P... | true |
79e9c3c5405611a6cab71e190d7c19ba04f33c83 | Java | kalyansvm/biproject | /BIServer/src/main/java/com/jaspersoft/jasperserver/api/common/service/impl/ImplementationClassObjectFactoryImpl.java | UTF-8 | 3,346 | 1.703125 | 2 | [] | no_license | /*
* Copyright (C) 2005 - 2007 JasperSoft Corporation. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from JasperSoft,
* the following license terms apply:
*
* This program is free software; you can redistribute it and/or modify
* it under... | true |
bf3d4f25d51aa56187bf0a3c47d903c8b9972459 | Java | XClouded/avp | /agp-core/src/main/java/com/lvsint/abp/AbpFormat.java | UTF-8 | 7,766 | 2.3125 | 2 | [] | no_license | package com.lvsint.abp;
import java.math.BigDecimal;
import java.text.DateFormat;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Currency;
import java.util.List;
import org.apache.log4j.Logger;
import uk.co.abp.QuarterBallLongSpreadFormat;
imp... | true |
652d581833329679a246669c6447d12f7e10db6e | Java | ViktorDimitrov1989/online-shop-be | /src/test/java/com/online/shop/users/UserServiceTests.java | UTF-8 | 14,193 | 1.90625 | 2 | [] | no_license | package com.online.shop.users;
import com.online.shop.areas.users.dto.user.UserResponseDto;
import com.online.shop.areas.users.entities.Role;
import com.online.shop.areas.users.entities.User;
import com.online.shop.areas.users.enums.RoleType;
import com.online.shop.areas.users.models.binding.user.LoginUserBindingModel... | true |
f63da8dc831e5368cec65065d342d965380267b3 | Java | xixuebin/YRPhoto | /app/src/main/java/com/xixb/yrphoto/ContactsActivity.java | UTF-8 | 11,410 | 1.945313 | 2 | [] | no_license | package com.xixb.yrphoto;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.util.ArrayList;
import android.app.ListActivity;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.conte... | true |
fe67f1bf0b9ec98232befd8bd9c9ff609bfd668c | Java | davidpy3/lisbioid | /Editoriadm/src/controlador/DetalleRecibo.java | UTF-8 | 4,691 | 2.609375 | 3 | [] | no_license | /*
* DetalleRecibo.java
*
* Created on 27 de marzo de 2007, 20:15
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package controlador;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author PC
*/
public class Detalle... | true |
41c90a77eca5e0cd3e74fab57b7a2fb4d8963db7 | Java | che8987/Rate-Limiter | /src/main/java/cn/c1w/ratelimiter/dao/TPSDemoDao.java | UTF-8 | 284 | 1.78125 | 2 | [] | no_license | package cn.c1w.ratelimiter.dao;
import cn.c1w.ratelimiter.entity.TPSDemo;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
public interface TPSDemoDao extends JpaRepository<TPSDemo, Integer> {
List<TPSDemo> getByOrderByCurrentDataTime();
}
| true |
009d164a7142b4c3705a283e1059b37c0acffd92 | Java | Verdilac/oop24h | /main/ManageStudent.java | UTF-8 | 111 | 1.820313 | 2 | [] | no_license | package main;
public interface ManageStudent {
public String generateID();
public void showDetails();
}
| true |
39e266c517bede54c17f53933b23363735462dc3 | Java | eventuate-local/eventuate-local | /eventuate-client-java/src/main/java/io/eventuate/EntityWithMetadata.java | UTF-8 | 1,054 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package io.eventuate;
import io.eventuate.common.id.Int128;
import java.util.List;
import java.util.Optional;
public class EntityWithMetadata<T extends Aggregate> {
private EntityIdAndVersion entityIdAndVersion;
private Optional<Int128> snapshotVersion;
private List<EventWithMetadata> events;
public Entity... | true |
ce815168b7b3ee950e53eda3a9f597b8e33bfa99 | Java | keerthik26/hackerrank | /src/main/java/com/keerthi/codechef/lineardatastructures/WormholesSolution.java | UTF-8 | 5,365 | 4 | 4 | [] | no_license | package com.keerthi.codechef.lineardatastructures;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.TreeSet;
/** The year is 2102 and today is the day of ZCO. This year there are N contests and the starting and ending times of each contest is known to you. You have to part... | true |
e5b2e6491757cd5edb0c9500e8d82ef4154eb748 | Java | saikiran40cs/KiranSerenityJBehave | /src/test/java/net/serenitybdd/demo/TestRunner.java | UTF-8 | 253 | 1.703125 | 2 | [
"Unlicense"
] | permissive | package net.serenitybdd.demo;
import net.serenitybdd.jbehave.SerenityStories;
public class TestRunner extends SerenityStories {
public TestRunner() {
// runSerenity().withDriver("chrome");
runSerenity().inASingleSession();
}
}
| true |
0b25304ab85f578d565583570aa20acec69768e2 | Java | yxw027/irurueta-navigation | /src/test/java/com/irurueta/navigation/gnss/GNSSEstimationTest.java | UTF-8 | 48,123 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2019 Alberto Irurueta Carro (alberto@irurueta.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
*
* Unles... | true |
0e642cce075e3959aa7e9a2edf7b24929887d07e | Java | Niranjanct424/Fellowship-Programs | /src/main/java/com/bridgelabz/junitprograms/SquareRootofNonNegativeNumber.java | UTF-8 | 272 | 2.765625 | 3 | [] | no_license | package com.bridgelabz.junitprograms;
import com.bridgelabz.utility.Util;
public class SquareRootofNonNegativeNumber
{
public static void main(String[] args)
{
double sqrt = Util.sqrtofnonnegnumber(70);
System.out.println("sqrt of non-negative num "+sqrt);
}
}
| true |
dbde710cfbacc30fe11f3ae589a3f86fe050e894 | Java | vignesh-nagendra/Java-Full-Stack | /ExceptionHandling/src/main/java/com/infytel/dto/EntityList.java | UTF-8 | 661 | 2.015625 | 2 | [] | no_license | package com.infytel.dto;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
@XmlRootElement
@XmlSeeAlso({PlanDTO.class})
public class EntityList<T> {
private Li... | true |
3a273459a226001a0cd4d6b9b92172666604a727 | Java | lazarwolfe/SlotMachine | /src/main/java/io/github/lazarwolfe/slots/Architect/Construction.java | UTF-8 | 10,720 | 3.015625 | 3 | [] | no_license | package io.github.lazarwolfe.slots.Architect;
import java.util.Iterator;
import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
import org.bukkit.entity.Entity;
import org.bukkit.entity.EntityType;
imp... | true |
af5e9b7300aff8b24758cdfc84a8fc22b96bfeb7 | Java | sachinyadav111140/IIHT_project | /IIHT/src/main/java/com/example/demo/service/SectorService.java | UTF-8 | 338 | 1.648438 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.dtos.SectorDto;
import antlr.collections.List;
public interface SectorService
{
public SectorDto getSectorById(Long sectorId);
public List getCompaniesBySectorId(Long sectorId);
public void addSector(SectorDto sectorDto);
//public SectorDto getSectorById(... | true |
f146489c9e9e4a90563ecd1e4cd4b6c7cf64b98e | Java | Tavy7/Restaurant-Organizer | /app/src/main/java/ro/unibuc/myapplication/Adapters/TableSelectionAdapter.java | UTF-8 | 2,158 | 2.375 | 2 | [] | no_license | package ro.unibuc.myapplication.Adapters;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.List;
import ro... | true |
80317e8470867356a74289ad344043c0e8ba19ed | Java | nvara2/BorrowerMs | /src/test/java/com/smoothstack/borrower/JerseyConfigurationTest.java | UTF-8 | 304 | 1.671875 | 2 | [] | no_license | package com.smoothstack.borrower;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class JerseyConfigurationTest {
@Test
public void testJerseyConfig() {
JerseyConfiguration config = new JerseyConfiguration();
assertNotNull(config);
config.setUp();
}
}
| true |
920131534ece7c79e28be36408b91cce6316e4f5 | Java | emoritani/Sonic | /sonic08/app/src/main/java/jp/klab/sonic08/MainActivity.java | UTF-8 | 8,875 | 2.3125 | 2 | [
"BSD-2-Clause"
] | permissive | /**
* sonic08
*
* 端末のマイクから集音した信号をバイトデータに変換する
* 伝送効率改善版
* FFT 処理に JTransforms ライブラリを利用
* 対向の送信プログラムは sonic07
*
*/
package jp.klab.sonic08;
import org.jtransforms.fft.DoubleFFT_1D;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.os.Bundle;
i... | true |
562ef9702fef0b71ff75381e17c98188a5505f61 | Java | TheDDoSFriend/Spotty | /Spotty Bot/src/org/spotty/bot/commands/BanCommand.java | UTF-8 | 1,983 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2016 TheDDoSFriend
*
* 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 ag... | true |
bac05463cdffd75c5e33f9fca1cb8c46a42a2260 | Java | vinothkarbonn/vinoth | /Longest string.java | UTF-8 | 534 | 2.953125 | 3 | [] | no_license | public String longestCommonPrefix(String[] strs) {
String longestPrefix = "";
if(strs.length>0){
longestPrefix = strs[0];
}
for(int j=1; j<strs.length; j++){
String analyzing = strs[j];
int i=0;
for( i<Math.min(longestPrefix.length(); strs[j].length()); i++... | true |
40c22fb6cddcb455d5fe9a5c742bcf3f580bdca3 | Java | edinak26/translator | /src/main/java/phoenix/model/reader/TextReader.java | UTF-8 | 2,156 | 2.8125 | 3 | [] | no_license | package phoenix.model.reader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;
public class TextReader {
private List<String> text;
private List<List<String>> splitText;
private String path;
private Divider div... | true |
8ee514692291fb6b661e93e40b529030c3f424f8 | Java | khoiln218/Coffee-Khoi-Nguyen | /CapheKN/app/src/main/java/com/khoinguyen/caphekhoinguyen/cache/DonHangCache.java | UTF-8 | 18,101 | 2.234375 | 2 | [] | no_license | package com.khoinguyen.caphekhoinguyen.cache;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Build;
import android.text.TextUtils;
import com.khoinguyen.caphekhoinguyen.R;
import com.khoinguyen.caphekhoinguyen.model.DonHang;
import java.util.ArrayList;
import java.util.Cale... | true |
a9e6974f483c136e5ab339d48934954b778f9199 | Java | natalysmota/sistemaos | /src/br/com/natalysoares/sistemaos/screens/ScreenCliente.java | ISO-8859-1 | 11,447 | 2.28125 | 2 | [] | no_license | package br.com.natalysoares.sistemaos.screens;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import... | true |
cd3acb92d27ceb14618c05fdb3140ffaa6ec2cc4 | Java | viniciustoni/samples | /twitter/src/test/java/com/vinicius/twitter/BaseTest.java | UTF-8 | 401 | 1.78125 | 2 | [] | no_license | package com.vinicius.twitter;
import static br.com.six2six.fixturefactory.loader.FixtureFactoryLoader.loadTemplates;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
@RunWith(MockitoJUnitRunner.class)
public abstract class BaseTest
{
@BeforeClass
pub... | true |
587c22ddb8e588a6db8a9e223f5e7aec098a717b | Java | DiteDo/kageNoShinobi | /naruto/collision/CollisionPoint.java | UTF-8 | 875 | 3.015625 | 3 | [] | no_license | package com.ditedo.kagenoshinobi.naruto.collision;
import com.ditedo.kagenoshinobi.naruto.Position;
public class CollisionPoint implements Collision {
//ATTRIBUTES
protected Position position;
//CONSTRUCTOR
/** Create a point to test collision */
public CollisionPoint(Position position) {
this.position = posi... | true |
e4febf8feb7be048a527248bd49c3d87b6a9c623 | Java | rabeld1986/projects | /theGame/MyImageLayer.java | UTF-8 | 759 | 3.09375 | 3 | [] | no_license | package theGame;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Toolkit;
public class MyImageLayer
{
Image Image;
int x;
int y;
int z;
public MyImageLayer(String File, int x, int y,int z)
{
Image = Toolkit.getDefaultToolkit().getImage(File);
this.x= x;
... | true |
803da4fb338c29cb6ec261463e6fa21b5a2db37d | Java | ghas-results/vr180 | /java/com/google/vr180/media/BaseEncoder.java | UTF-8 | 10,548 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | true |
c004c2ca6b8947738d146292a34f3aba7a5d65b3 | Java | mgorav/jpa-eclipselink | /jpa-eclipselink-spring-boot-autoconfigure/src/main/java/com/gm/shared/jpa/eclipselink/rest/spring/filter/JpaFilter.java | UTF-8 | 1,800 | 2.046875 | 2 | [] | no_license | package com.gm.shared.jpa.eclipselink.rest.spring.filter;
import com.gm.shared.jpa.eclipselink.rest.persistence.JpaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;
impo... | true |
6e93ed0ceaba433722732d976eb5b8aaebfe14bb | Java | Hansaanuradha93/Eligibility | /app/src/main/java/com/example/hansaanuradhawickramanayake/eligibility/RegisterActivity.java | UTF-8 | 3,180 | 2.28125 | 2 | [] | no_license | package com.example.hansaanuradhawickramanayake.eligibility;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.E... | true |
ed7b56b69c8194b5bd67b82b00e655ccaa2dcaef | Java | maciejmikosik/testory | /test/java/org/testory/TestStubbing.java | UTF-8 | 6,840 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package org.testory;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotSame;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.fail;
import static org.testory.Testory.given;
import static org.testory.Testory.mock;
import static org.testory.Testory.willReturn;
... | true |
6cf07a92908e5707c32ab3733d50173fc65a2943 | Java | doanvu2000/Doan-BTVN_JavaCore | /BTVN_06/bai4/RunMain.java | UTF-8 | 4,346 | 3.609375 | 4 | [] | no_license | package bai4;
import java.util.Scanner;
public class RunMain {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
System.out.println("Lựa chọn player: ");
System.out.println(1+"."+new Archers().toString());
System.out.println(2+"."+new Knight().toString());
System.out.... | true |
5f96d79a671907df1694437376a6b8c06bae5c6f | Java | ErkAlmeida/Java-Servi-oDePagamento | /src/model/services/ContractService.java | UTF-8 | 918 | 2.78125 | 3 | [] | no_license | package model.services;
import java.util.Calendar;
import java.util.Date;
import model.entities.Contract;
import model.entities.Installment;
public class ContractService
{
private TaxServices taxService;
public ContractService(TaxServices taxService) {
this.taxService = taxService;
}
private Date addM... | true |
a8c61c148acbf1c6068f0b68e5350a05d5747792 | Java | abcjojo/spider_java | /src/main/java/com/java/spider/util/RegexUtil.java | UTF-8 | 509 | 2.5 | 2 | [] | no_license | package com.java.spider.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* @program: learn_spider
* @description: 正则匹配工具类
* @author: Jojo.Lee
* @create: 2020-03-22 21:27
**/
public class RegexUtil {
public static String getPageInfoByRegex(String content, Pattern pattern, int groupNo... | true |
73c0e6f514381344bd7a20d3562adef0a8ebc81c | Java | ActivaPlatform/activa | /9.0 Activ8 WORKSPACE/activ8ejb/src/com/o2hlink/activ8/server/entity/Answer.java | UTF-8 | 2,194 | 2.296875 | 2 | [] | no_license | /**
*
*/
package com.o2hlink.activ8.server.entity;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persist... | true |
6f9de7c0ada81de720534730497ca4854c756a4a | Java | jhs19920309/fuel | /src/main/java/dto/jang/hs/Top10Vo2.java | UTF-8 | 761 | 1.78125 | 2 | [] | no_license | package dto.jang.hs;
public class Top10Vo2{
private String OS_NM;
private long Price;
private String NEW_ADR;
private String UNI_ID;
private String VAN_ADR;
public String getOS_NM() {
return OS_NM;
}
public void setOS_NM(String oS_NM) {
OS_NM = oS_NM;
}
public long getPrice() {
return... | true |
af18b5998758ab7b0a895ae30ccd733979ac14fe | Java | bellmit/v68_2.0 | /zhajinhua-server/src/main/java/com/dmg/zhajinhuaserver/service/cache/impl/PlayerServiceImpl.java | UTF-8 | 2,977 | 2.125 | 2 | [] | no_license | package com.dmg.zhajinhuaserver.service.cache.impl;
import java.math.BigDecimal;
import com.dmg.data.common.dto.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Service;
import com.dmg.data.client.Nett... | true |
6319adf654bb1f9e6faf6eae143e05e07eabeb3e | Java | JHerculesqz/Hulk | /java/core-fw-spring/src/main/java/com/firelord/spring/component/mvc/cookie/CookieUtilsEx.java | UTF-8 | 3,468 | 2.59375 | 3 | [
"CC-BY-NC-3.0",
"CC0-1.0",
"CC-BY-3.0",
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | package com.firelord.spring.component.mvc.cookie;
import com.firelord.spring.component.mvc.cookie.mo.CookieMo;
import com.firelord.spring.component.mvc.servlet.ServletUtilsEx;
import org.owasp.esapi.ESAPI;
import org.owasp.esapi.errors.ValidationException;
import javax.servlet.http.Cookie;
import javax.servlet.http.H... | true |
9e038d14d32636d3a116bf1730f89de11852cf82 | Java | sgyt1993/Thread | /ThreadDemo/src/main/java/chapter8/LinkedRunnableQueue.java | UTF-8 | 1,730 | 3.484375 | 3 | [] | no_license | package chapter8;
import java.util.LinkedList;
/**
* @Author:sgyt
* @Description:
* @Date:2019/1/31 14:39
*/
public class LinkedRunnableQueue implements RunnableQueue{
// 任务队列的最大容量,在构造时传入
private int limit;
// 若任务队列中的任务已经满了,则需要执行拒绝策略
private DenyPolicy denyPolicy;
// 存放任务队列
private final Li... | true |
9601bf47dbe769b3d0390866405d902a04e5fc6b | Java | KIM-JS-95/Restaurant_System | /eatgo-customer-api/src/main/java/com/reservationsystem/interfaces/ReservationController.java | UTF-8 | 1,674 | 2.28125 | 2 | [] | no_license | package com.reservationsystem.interfaces;
import com.reservationsystem.application.ReservationService;
import com.reservationsystem.domain.Reservation;
import io.jsonwebtoken.Claims;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Authentication;
import org.springfr... | true |
feda748122b0e1ec336e83bbfe2a315599010131 | Java | petruchcho/rbfn | /network/src/network/ClassificationNetwork.java | UTF-8 | 142 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package network;
import data.Data;
public interface ClassificationNetwork extends NeuralNetworkWithTeacher {
int classify(Data data);
}
| true |
863e05bf38ff517c63efbb992342c94199196c56 | Java | Uniandes-ISIS2603-backup/s2_Idiomas_2_201910 | /s2_idiomas-back/src/main/java/co/edu/uniandes/csw/idiomas/ejb/OtroLogic.java | UTF-8 | 7,175 | 2.953125 | 3 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package co.edu.uniandes.csw.idiomas.ejb;
import co.edu.uniandes.csw.idiomas.entities.OtroEntity;
import co.edu.uniandes.csw.idiomas.en... | true |
d4ea16aaeb27516a81d3a0b8684ed1eef67aab40 | Java | lcl100/designpattern-learning | /src/工厂模式/抽象工厂模式/咖啡店实例/Dessert.java | UTF-8 | 198 | 2.28125 | 2 | [] | no_license | package 工厂模式.抽象工厂模式.咖啡店实例;
/**
* @author lcl100
* @create 2021-07-05 23:33
* @desc 甜点类
*/
public abstract class Dessert {
public abstract void show();
}
| true |