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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0fe72e1961569e4a566bb8b9b1332ee000620ff4 | Java | bryanchou/cabinet | /src/main/java/com/suzhou/cabinet/utils/BaiDuMapUtil.java | UTF-8 | 9,930 | 2.5 | 2 | [] | no_license | package com.suzhou.cabinet.utils;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
/... | true |
95a79129369c3f892787df1b01caf00913087f3b | Java | chupen/SummaryTask4 | /src/ua/nure/teteruk/util/PasswordHash.java | UTF-8 | 207 | 2.109375 | 2 | [] | no_license | package ua.nure.teteruk.util;
import org.apache.commons.codec.digest.DigestUtils;
public class PasswordHash {
public String hash(String password) {
return DigestUtils.md2Hex(password);
}
}
| true |
5d82fc219579a88802c99cecbb60f184fff236b4 | Java | gauravsaxena81/GraphIVM | /Java/src/test/java/org/ucsd/db/bsmagen1M/diffs/FastJoinDeltaManager1MQ1.java | UTF-8 | 11,568 | 2 | 2 | [] | no_license | package org.ucsd.db.bsmagen1M.diffs;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
import org.ucsd.db.bsmagen.Tes... | true |
d3e8fcc54dea0a45d72543d22a74a0c85b5a93ad | Java | crisj1985/SpringBootRestGastos | /src/main/java/modelo/Cliente.java | UTF-8 | 1,419 | 2.328125 | 2 | [] | no_license | package modelo;
import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import javax.persistence.*;
@Entity
@Table(name = "Ciente")
public class Cliente {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
private Integer Id;
@Column(name="nombres", nullabl... | true |
4424577f21940b25f50d38c282a7a906d54bff8e | Java | inocentnine/JAVA-StructuralPatterns | /JAVA-StructuralPatterns/lab3_8/DrawAdapter.java | UTF-8 | 321 | 2.65625 | 3 | [] | no_license | package lab3_8;
public class DrawAdapter extends DrawCircle{
private DrawAngle drawangle;
public DrawAdapter(){
}
public DrawAdapter(DrawAngle angle){
this.drawangle=angle;
}
public void insert(String msg){
System.out.print("DrawCircle:");
drawangle.insert(msg);
}
}... | true |
7b9a8a4fbfc0c3bd0b74906dbb3f74d0d858abdc | Java | KUSUMA210/springboot-mappings-onetomany | /springboot-mappings-onetomany/src/main/java/com/otsi/mappings/serviceimp/ServiceClassImp.java | UTF-8 | 2,816 | 2.296875 | 2 | [] | no_license | package com.otsi.mappings.serviceimp;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.otsi.mappings.model.Role;
import com.otsi.mappings.model.User;
import com.otsi.mappings.repository.Rol... | true |
226c59e22e2ee0c9807641303e7df34ebeadffbb | Java | brucevsked/vskeddemolist | /vskeddemos/projects/poidemo/src/com/vsked/test/excel/TestExcelUtils.java | UTF-8 | 3,175 | 2.65625 | 3 | [
"MIT"
] | permissive | package com.vsked.test.excel;
import java.util.HashMap;
import java.util.Map;
import com.vsked.util.ExcelUtils;
public class TestExcelUtils {
public static void main(String[] args) throws Exception {
TestExcelUtils ts=new TestExcelUtils();
//ts.testExcelXssfRead();
ts.testExcelHssfRead();
//t... | true |
d9ee0696a4eee2e8a889ea122b159e6b256000a0 | Java | jhhj424/monoloticSpringExample | /src/main/java/com/monoloticdemo/service/ReaderService.java | UTF-8 | 765 | 2.265625 | 2 | [] | no_license | package com.monoloticdemo.service;
import com.monoloticdemo.model.entity.Reader;
import com.monoloticdemo.model.form.RegisterReaderForm;
import com.monoloticdemo.repository.ReaderRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
@Service... | true |
ce4d75690c47b81e9f6153c150b9a25dd43dbf8e | Java | Akshaydee/The-Simple-Meal-App-backend | /src/main/java/com/example/Fooddeliverysystem/model/Confirmationtoken.java | UTF-8 | 1,765 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.example.Fooddeliverysystem.model;
import io.swagger.annotations.ApiModel;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
/**
* The persistent class for the confirmationtoken database table.
*/
@ApiModel
@Entity
@Table(name = "ConfirmationToken")
@NamedQuery(name = "Conf... | true |
bb19e636c3d59aa07dc095f08265f81c22796d5f | Java | shhdwo/JPA1 | /src/main/java/com/capgemini/domain/EmployeeEntity.java | UTF-8 | 1,894 | 2.203125 | 2 | [] | no_license | package com.capgemini.domain;
import java.util.Date;
import java.util.List;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.p... | true |
7e1ad48cc27e55d7cd453412c0d254f9b749ae3a | Java | ScrabbleVerificar/verif | /src/logic/ListaLetras.java | UTF-8 | 4,963 | 2.609375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package logic;
import java.io.IOException;
/**
*
* @author estadm
*/
public class ListaLetras {
/**
*
... | true |
01b7e218d9f48c7b266257eb8f1d69918028f2e6 | Java | Conculco/Cab-302 | /src/asgn2Tests/RestaurantCustomerTests.java | UTF-8 | 4,460 | 2.953125 | 3 | [] | no_license | package asgn2Tests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import asgn2Exceptions.CustomerException;
import asgn2Exceptions.LogHandlerException;
import asgn2Exceptions.PizzaException;
import asgn2Restaurant.PizzaRestaurant;
/**
* A class that that tests the methods relating to the hand... | true |
901eb3b17ac67a49504fb7b73636a7a8fb9509d6 | Java | kikisp/spring-reactive-authorization-server | /sample/src/main/java/uaa/config/AuthenticationServerConfig.java | UTF-8 | 1,613 | 2.0625 | 2 | [] | no_license | package uaa.config;
import authorization.ReactiveTokenGranter;
import authorization.client.ReactiveClientDetailsService;
import authorization.configuration.ReactiveAuthorizationServerConfigurer;
import authorization.configuration.configurers.ReactiveAuthorizationServerEndpointsConfigurer;
import authorization.configur... | true |
0637741c4e9d2c47072ad70effb8f326ad695542 | Java | xian-bai-hong/shop | /shop-service/src/main/java/com/service/user/impl/UsersImpl.java | UTF-8 | 952 | 1.914063 | 2 | [] | no_license | package com.service.user.impl;
import com.dao.user.UsersDao;
import com.entity.article.Article;
import com.entity.user.Users;
import com.service.user.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public clas... | true |
44ebe977f19aca200de8331bb91f76569bc042ac | Java | happydhKim/MyDataStructureAlgorithm | /newMyDataStructureAlgorithm/solve/boj/dfs/15684.java | UTF-8 | 1,307 | 3 | 3 | [] | no_license | import java.util.Scanner;
class 15684 {
static int N, M, H, cnt, ans, a[][];
static boolean go() {
for (int z = 1; z <= N; z++) {
int val = z;
for (int i = 1; i <= H; i++) {
if (a[i][val] == 1) {
val++;
} else if (a[i][val - 1] == 1) {
val--;
}
}
if (val == z)
continue;
el... | true |
a7811b364039fd18b0edc803768a84e6c93cc34d | Java | clubs-project/PubPsych | /src/main/java/eu/pubpsych/query/Tok2Stemmer.java | UTF-8 | 2,224 | 3.265625 | 3 | [] | no_license | /**
*
*/
package eu.pubpsych.query;
import java.io.IOException;
import java.io.StringReader;
import java.util.Locale;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;
/**
* Class for preprocessing an i... | true |
eec2a077bfefc0a68211c131107228d5c2176b75 | Java | anderscore-hjhessmann/junit5-samples | /src/test/java/com/anderscore/samples/junit5/sample16/SimpleJUnit5Test.java | UTF-8 | 372 | 2.15625 | 2 | [] | no_license | package com.anderscore.samples.junit5.sample16;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import static org.junit.jupiter.api.Assertions.assertEquals;
@RunWith(JUnitPlatform.class)
public class SimpleJUnit5Test {
@Test
public void tes... | true |
b3501a66e7cd47a7903fd284d07890f639b29f54 | Java | tungnv36/TimaEvaluation | /app/src/main/java/vn/tima/timainspection/Model/Entity/UserEntity.java | UTF-8 | 3,610 | 1.867188 | 2 | [] | no_license | package vn.tima.timainspection.Model.Entity;
import java.io.Serializable;
/**
* Created by DinhAnh on 11/7/2016.
*/
public class UserEntity implements Serializable {
String ID;
String UserName;
String Password;
String FullName;
String Phone;
String Email;
String GroupId;
String Work... | true |
d79a55d63f7bde336549b2554e3c65167857ebd5 | Java | HarveyLuo91/KillBugTestCases | /test-case-src/src/main/java/java/sfBugs/Bug1965452b.java | UTF-8 | 164 | 1.554688 | 2 | [] | no_license | package java.sfBugs;
import javax.annotation.Nullable;
public class Bug1965452b {
static int foo(@Nullable Object x) {
return x.hashCode();
}
}
| true |
27aeac5d99f4515e1d8bd8fd17e124a8a59ec83c | Java | KaseyTurat/Java | /src/main/java/Day09/ConditionalStatement/IfStatement.java | UTF-8 | 281 | 3.40625 | 3 | [] | no_license | package Day09.ConditionalStatement;
public class IfStatement {
public static void main(String[] args) {
String progLang = "Java";
if(progLang.equals("Java")) {
System.out.println("Good job!");
}
else {
System.out.println("You should learn java.");
}
}
}
| true |
e7f51cef8eb1093bf64ee297c0a03351273debc1 | Java | fitimkuis/JideaProjects | /src/main/java/com/read.image/ReadImageText.java | UTF-8 | 1,099 | 3.078125 | 3 | [] | no_license | package com.read.image;
import java.io.File;
import net.sourceforge.tess4j.*;
public class ReadImageText {
static Tesseract tesseract = new Tesseract();
public static void main(String[] args) throws TesseractException {
try {
File image = new File("src\\main\\images\\image.png");
... | true |
6a28f9129068ad2dc756d921c28ee9d1508982a8 | Java | ClaymanTwinkle/OpenGL | /app/src/main/java/com/andy/opengl/demo/GLDemoActivity.java | UTF-8 | 1,416 | 2.3125 | 2 | [] | no_license | package com.andy.opengl.demo;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.andy.opengl.BaseActivity;
import com.andy.opengl.R;
/**
* 自带了layout,demo专用的Activity
*
* @author andyqtchen <br/>
* 创建日期:2018/5/23 15:07
*/
public abstract class GLD... | true |
90e66f6f1fbe710646faca32d4c2c0834916674f | Java | chsubhasis/springdatajpa | /src/main/java/com/myspring/springdatajpa/repos/StudentRepository.java | UTF-8 | 245 | 1.703125 | 2 | [] | no_license | package com.myspring.springdatajpa.repos;
import org.springframework.data.jpa.repository.JpaRepository;
import com.myspring.springdatajpa.entities.Student;
public interface StudentRepository extends JpaRepository<Student, Long> {
}
| true |
71954595ac282aa6267ff2774461f164a30bc1a9 | Java | Weederini/MoreCraft | /java/kittehmod/morecraft/block/ModCarpetBlock.java | UTF-8 | 316 | 1.8125 | 2 | [] | no_license | package kittehmod.morecraft.block;
import net.minecraft.block.Block;
import net.minecraft.block.CarpetBlock;
import net.minecraft.item.DyeColor;
public class ModCarpetBlock extends CarpetBlock {
public ModCarpetBlock(DyeColor p_i48290_1_, Block.Properties properties) {
super(p_i48290_1_, properties);
}
}
| true |
665883fb70099392c0d9a37dd2a8d447c485a348 | Java | LeThaoHuyen/final_mobile_app_dev | /RememberMe/app/src/main/java/com/example/rememberme/SingletonClass.java | UTF-8 | 2,330 | 2.734375 | 3 | [] | no_license | package com.example.rememberme;
import com.example.rememberme.Models.Product;
import java.util.ArrayList;
import java.util.List;
public class SingletonClass {
private static SingletonClass singleton;
private static List<Product> productList = new ArrayList<>();
private static Product currentProduct;
... | true |
cf2fa0ee560e88ab1dda3b0549b0911734f9da0e | Java | Nasruddinkhan/spring-source | /IOCProj15-CollectionMerging/src/main/java/com/mypractice/test/Test.java | UTF-8 | 454 | 2.015625 | 2 | [] | no_license | package com.mypractice.test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.mypractice.bean.Course;
public class Test {
public static void main(String[] args) {
ApplicationContext applicationContext = new ClassPathXmlAp... | true |
7bfcd0666caaba85e3f7f59bb8e7e434e63613dd | Java | menglingpeng/vonVimeo | /app/src/main/java/com/menglingpeng/vonvimeo/mvp/view/activity/UserOnDemandPageVideosActivity.java | UTF-8 | 6,173 | 1.5625 | 2 | [] | no_license | package com.menglingpeng.vonvimeo.mvp.view.activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog... | true |
70e5a2388c7dcb57a33cfe88a4fdabdef4402045 | Java | waxnkw/ERPNJU | /SalesSystemServer/src/rmi/dataRemoteObject/approveBillRemoteObject/ApproveSalesBillRemoteObject.java | GB18030 | 1,337 | 2.234375 | 2 | [] | no_license | package rmi.dataRemoteObject.approveBillRemoteObject;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import blImpl.bill.approveBillBl.ApproveSalesBillBlController;
import blService.billService.approveBillBlService.ApproveSalesBillBlService;
import vo.SalesBil... | true |
58e9cfb92be9ca5832eb2d633e47714430276491 | Java | 1303110335/weixin-java-spring-first | /src/main/java/com/imooc/first/filter/LoggingFilter.java | UTF-8 | 2,604 | 2.15625 | 2 | [] | no_license | package com.imooc.first.filter;
import ch.qos.logback.classic.Level;
import com.imooc.first.common.utils.IpUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import com.imooc.first.filter.logging.ThreadLevelFilter;
import javax.servlet.*;
import javax.serv... | true |
6e7721e7e8a86e3b47a07cf3dec7eb07a66acb36 | Java | mayuri2525/Home_Work | /com.myapp.assignment/src/com/conditional/MaxMinNo.java | UTF-8 | 471 | 3.578125 | 4 | [] | no_license | package com.conditional;
import java.util.Scanner;
public class MaxMinNo {
public static void main(String[] args) {
int num1,num2;
Scanner sc=new Scanner(System.in);
num1=sc.nextInt();
num2=sc.nextInt();
System.out.println("enter the no " +num1+ " " +num2 );
if(num1>num2) {
System.out.println("max... | true |
21e2dc8ac4074b30efd89454c00c9240fbe6f84e | Java | Hemanth543/findfriend | /app/src/main/java/thehub/life/fd/signup.java | UTF-8 | 2,124 | 2.109375 | 2 | [] | no_license | package thehub.life.fd;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class signup extends AppCompatActivity {
privat... | true |
77f60f851355fc16e7240da4d575c9c4ad32e882 | Java | modernmaster/tutorials | /algorithms/src/main/java/uk/co/jamesmcguigan/algorithms/shortestpath/dijkstra/Vertex.java | UTF-8 | 1,019 | 3.21875 | 3 | [
"MIT"
] | permissive | package uk.co.jamesmcguigan.algorithms.shortestpath.dijkstra;
class Vertex implements Comparable<Vertex> {
private final String name;
private Edge[] adjacencies;
private double minDistance = Double.POSITIVE_INFINITY;
private Vertex previous;
Vertex(final String argName) {
name = argName;
... | true |
c65467c63530503a5b577a9048e3afefaf0e72fa | Java | abhijeetashri/design-patterns | /src/com/design/pattern/adapter/game/WizardFighterAdapter.java | UTF-8 | 278 | 2.5625 | 3 | [] | no_license | package com.design.pattern.adapter.game;
public class WizardFighterAdapter {
private Wizard wizard;
public WizardFighterAdapter() {
wizard = new Wizard();
}
public void spellMagic() {
this.wizard.spellMagic();
}
public void fly() {
this.wizard.flyBroom();
}
}
| true |
b629a395bd9c1d74557eb8bede3313213355bdfd | Java | dwifdji/real-project | /366pai/zeus-rest-crawler/zeus-crawler-core/src/main/java/com/_360pai/seimi/service/WinningBidService.java | UTF-8 | 103 | 1.65625 | 2 | [] | no_license | package com._360pai.seimi.service;
public interface WinningBidService {
void getWinningBids();
}
| true |
6e91fce5747ae90a50c25f269a35f5edec50c5ea | Java | shanghaif/workspace-kepler | /CHPT/source/trunk/web_app/SspApp/src/com/ctfo/filter/CheckLoginFilter.java | UTF-8 | 2,454 | 2.0625 | 2 | [] | no_license | package com.ctfo.filter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Enumeration;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
imp... | true |
bf131cab1dc2e1f1497a87bc9be8ba59abd58e5e | Java | FaycalBekhechi/sometrpg | /core/src/main/java/com/ziodyne/sometrpg/view/components/TiledMapComponent.java | UTF-8 | 755 | 2.46875 | 2 | [] | no_license | package com.ziodyne.sometrpg.view.components;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
/**
* An Artemis component that holds a Map instance loaded ... | true |
96dd4fc866a0c98eb5bd22523052002e5a23d2e5 | Java | Arulkp/Java | /star_1.java | UTF-8 | 294 | 2.484375 | 2 | [] | no_license | class Star{
public static void main(String[] args){
int n = 5;
for(int i=0;i<n;i++){
for(int k=i;k<=n;k++){
System.out.print(" ");
}
for(int j=0;j<=i;j++){
System.out.print(" *");
}
System.out.println();
}
}
} | true |
a1dfbc608ebb9b59b6759decb8174ad792bdaecc | Java | AngelovskiTeodor/bnks_project_securedrive | /src/main/java/mk/ukim/finki/bnks/securedrive/service/AuthService.java | UTF-8 | 293 | 1.992188 | 2 | [] | no_license | package mk.ukim.finki.bnks.securedrive.service;
import mk.ukim.finki.bnks.securedrive.model.User;
public interface AuthService {
User getCurrentUser();
String getCurrentUsername();
User registerUser(String username, String password, String repeatedPassword) throws Exception;
}
| true |
2acd9433e9918b1b94a3f1d61c4ba0c34a221e3f | Java | kumaranm/gojava | /JavaTuts/src/com/mk/programiz/BalancedBinaryTree.java | UTF-8 | 1,256 | 3.5 | 4 | [] | no_license | package com.mk.programiz;
class BBTHeight {
int height = 0;
}
public class BalancedBinaryTree {
Node root;
public BalancedBinaryTree() {
root = null;
}
boolean isBalancedBinaryTree(Node node, BBTHeight h) {
if (node == null) {
h.height = 0;
return true;
}
BBTHeight leftH... | true |
a71996695e66a57295ae21ef4d821321b21a24bc | Java | lehaihaitaly/auto | /automation/src/test/java/baseTest/BaseTest.java | UTF-8 | 509 | 2.03125 | 2 | [] | no_license | package baseTest;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import org.testng.annotations.AfterMethod;
import utilities.CommonUtils;
public class BaseTest {
public AppiumDriver<MobileElement> driver;
public void setUp() {
if (driver == null) {
... | true |
aab8f9db0a43b86dcfda5d98315c7903c73ca662 | Java | enam786/WebAutomationEnamNov2018 | /Amazon/src/main/java/homePage/HoverOver.java | UTF-8 | 3,788 | 2.28125 | 2 | [] | no_license | package homePage;
import base.CommonAPI;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.testng.Assert;
import reporting.TestLogger;
import java.util.ArrayList;
import java.util.List;
public class HoverOver extends CommonAPI {
publ... | true |
43172d6b7b069ed4927871f7ea2d72d16f201dbe | Java | jlmanjari6/AWS-Microservices-MEAN-Project | /android-front-end/app/src/main/java/com/example/tourismapp/Fragments/LoginFragment.java | UTF-8 | 9,187 | 1.679688 | 2 | [] | no_license | package com.example.tourismapp.Fragments;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.InputType;
import android.util.Log;
import android.view.LayoutInflater;
import android... | true |
5bce6affc4d8deab7176ec4f20691c6407bd391f | Java | GroganflyOver/BlogManagePlatform | /src/main/java/frodez/config/security/util/AuthorityUtil.java | UTF-8 | 1,503 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package frodez.config.security.util;
import frodez.dao.model.table.permission.Endpoint;
import frodez.util.common.StreamUtil;
import java.util.List;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.se... | true |
4c02060e5dc163578ddc695d534cc6334d432aed | Java | rd-alliance-ddri/research-data-switchboard | /v2/src/Harvesters/harvester_publications/src/main/java/org/grants/harvesters/publications/Harvester.java | UTF-8 | 8,689 | 1.921875 | 2 | [] | no_license | package org.grants.harvesters.publications;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
impor... | true |
1ae97de4b209e4aa4121d9ebb46cfaf2f165d7f0 | Java | Rukmangathantv/Cucumber | /Employee Details/org.emp/Employee.java | UTF-8 | 551 | 2.921875 | 3 | [] | no_license |
public class Employee {
public void empId() {
System.out.println("empId is") ;
}
public void empName() {
System.out.println("empName is");
}
public void empDOB() {
System.out.println("empDOB is");
}
public void empPhone() {
System.out.println("empPhone is");
}
public void empMail() {
System.out.println("empMail is... | true |
b6ea88dcae3dd573426b5b1d7648c564a6a43a0f | Java | PesterevViacheslav/vpesterev | /chapter_002/src/main/java/ru/job4j/profession/Diagnose.java | UTF-8 | 924 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | package ru.job4j.profession;
/**
* Class Diagnose решение задачи Части 002. ООП урок 2.
*
* @author Viacheslav Pesterev (pesterevvv@gmail.com)
* @since 18.04.2018
* @version 1
*/
public class Diagnose {
private String description;
private String prescription;
/**
* Method Diagnose. Конструктор.
... | true |
80883c9f6825ea19518fe18f9c5ea69fe06e5bf5 | Java | RodrigoCastilla/GatoDist | /src/Cliente/controller/componentes/ComponentePanelResultado.java | UTF-8 | 428 | 1.804688 | 2 | [] | no_license | package Cliente.controller.componentes;
import Cliente.controller.eventos.EventosPanelResultado;
import Cliente.view.PanelResultado;
public class ComponentePanelResultado {
private PanelResultado panelResultado;
public ComponentePanelResultado() {
this.panelResultado = new PanelResultado();
new EventosPanel... | true |
7f7d308b34a36f985c93b0b88af0f2c7091e7f91 | Java | oliraug/olify_microservices | /product/src/test/java/com/olify/eprice/microservice/product/ProductServiceImplTest.java | UTF-8 | 3,591 | 2.59375 | 3 | [] | no_license | package com.olify.eprice.microservice.product;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.doNothing;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;... | true |
56f36fe64ff2fb09fa1d22027e064cd80f186968 | Java | Wanchanok/oop_359211110029 | /src/ooplab3/TestForLoop.java | UTF-8 | 237 | 2.34375 | 2 | [] | no_license | package ooplab3;
public class TestForLoop {
public static void main(String[] args) {
for (int i=1;i<=100;i++) {
if (i % 2 ==0|| i % 4 == 0|| i % 6 ==0)
System.out.print(" " + i);
}//f
}//m
}//c
| true |
dceb3c7b1699e169a742c060761b003809fa4422 | Java | origamisith/handy-calculator-2 | /src/main/java/com/lsedillo/Controller/UnitController.java | UTF-8 | 2,466 | 3.359375 | 3 | [] | no_license | package com.lsedillo.Controller;
import com.lsedillo.Model.Data;
import com.lsedillo.Model.Rate;
import java.util.Arrays;
public class UnitController {
public static String convertData(String... tokens) {
int i = 0;
if(tokens.length == 6) i+=4; //Skip past "Convert Data Unit To"
String un... | true |
bf9c6286893e6c21c5ccf5a8feb0dbfc37cec870 | Java | RichardNooooh/Chess | /src/main/java/org/ideaman/gui/ChessGUI.java | UTF-8 | 1,504 | 2.890625 | 3 | [] | no_license | package org.ideaman.gui;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
import org.ideaman.utils.Position;
public class ChessGUI
{
GUIManager guiManager;
TileGUI[][] boardGUI;
Stage primaryStage;
public ChessGUI(Stage... | true |
7e8ff11166dfdd9e8cecbc29ea8aef6aea9514c1 | Java | Letractively/dew-sid | /Web/test/sid/negocio/GestionVisitaTest.java | UTF-8 | 2,350 | 2.296875 | 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 sid.negocio;
import java.util.Collection;
import org.junit.Assert;
import sid.persistencia.DAOExcepcion;
import si... | true |
8f826ada302a8375e25cdc2125bdd401cb41aeeb | Java | liopalacios/retofinancieraapi | /src/main/java/com/financiera/reto/controller/ClienteController.java | UTF-8 | 933 | 2.28125 | 2 | [] | no_license | package com.financiera.reto.controller;
import com.financiera.reto.entity.ClienteEntity;
import com.financiera.reto.service.ClienteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframewo... | true |
fd2f22e698b51c21be3d976dd7520338663e9cbb | Java | netbeans45/NetBeansProjectsLaptop | /Chap3/src/GratuityCalculator.java | UTF-8 | 1,059 | 3.1875 | 3 | [] | no_license |
import javax.swing.JOptionPane;
// Author: @ Tyler Coatsworth (9/23/2013)
public class GratuityCalculator {
public static void main(String[] args) {
String checkAmount = JOptionPane.showInputDialog("Enter Check Amount (ex. 10.25)");
double numCheckAmount = Double.parseDouble(checkAmount);
... | true |
13094a12fab1f951bb868f23af8b97dd0f5564b3 | Java | thaithong12/Bemine-Shop | /src/main/java/com/tq/service/FavouriteService.java | UTF-8 | 736 | 2 | 2 | [] | no_license | package com.tq.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tq.entities.AccountEntity;
import com.tq.entities.Favourite;
import com.tq.repositories.FavouriteRepository;
@Service
public class Favou... | true |
b3d9f823bf27557a39dd54f87589c28f92ad1800 | Java | dilipcrao/assignment | /dvlatest/src/main/java/pages/DVLAStartPage.java | UTF-8 | 349 | 2.21875 | 2 | [] | no_license | package pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class DVLAStartPage extends AbstractPage{
@FindBy(linkText = "Start now")
WebElement startNowButton;
public DVLAStartPage clickStartNow(){
startNowButton.click();
return createPage(DVL... | true |
64ad95ca484ff7f111d0b55a524ea07f65305703 | Java | huynhthanhbinh/demo-soap-parser | /src/main/java/org/bamboo/model/flightport/OriginDestinationInfo.java | UTF-8 | 8,100 | 1.929688 | 2 | [] | no_license |
package org.bamboo.model.flightport;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType... | true |
012c9f573a246d7abf1990aed760fe8b34476c61 | Java | claudemirferreira/ieadam-service-api | /src/main/java/br/com/setebit/sgr/repository/PerfilRotinaRepositorioSql.java | UTF-8 | 303 | 1.601563 | 2 | [] | no_license | package br.com.setebit.sgr.repository;
import java.util.List;
import br.com.setebit.sgr.security.entity.Rotina;
public interface PerfilRotinaRepositorioSql {
public List<Rotina> listaRotinaNotInPerfil(int idPerfil);
public Rotina existeRotinaAssociada(int idPerfil, int idRotina);
} | true |
4bae52cc745b6deee3808aadd9b2c70673b085b7 | Java | jbmkahdeksan/1ProyectoProgra4 | /1Proyecto/src/java/Logic/estado.java | UTF-8 | 1,665 | 2.875 | 3 | [] | no_license | /*
Programación 4
I Ciclo - 2021
Proyecto 1 - Cursos Libres.com
117440348 - Joaquin Barrientos Monge
A00144883 - Kathy Sandoval Blandon
*/
package Logic;
import java.util.Objects;
/**
*
* @author ksand
*/
public class estado {
private int id_estado;
private String descripcion;
pub... | true |
03e093a393775584efbd6694439daa1e385dad5a | Java | nancyshenouda/Java-programming | /src/Tasks/Classes_Objects/Twix.java | UTF-8 | 382 | 3 | 3 | [] | no_license | package Tasks.Classes_Objects;
/*
Create a class Twix [Child class]
* Inherits Candy class
* constructor that invokes the parent constructor
* extra: static hiding, final, sub class
*/
public class Twix extends Candy{
public Twix(String brand, int quantity, boolean hasPeanuts, int totalCandy) {
... | true |
470ad5451b3c0ec210dae70b06df4b81da25d0aa | Java | Sahim-Nazif/Inheritance_Java_Assignment | /Asssignment3/src/EmployeeTest.java | UTF-8 | 1,124 | 2.984375 | 3 | [] | no_license |
public class EmployeeTest {
public static void main(String[] args) {
Employee employee= new Employee("Kelly Jones",44955.78);
Manager manager= new Manager("Macas Warda",65800.29,"Bank of Montreal(BMO)");
Executive executive=new Executive ("Alam Yusuf",97670.39,"Bank of Montreal(BMO)",6700.93,20);
Employee... | true |
5d9792a4a0c82f83520df8c2bea6217be692603b | Java | harish250/ArutlaHarish-CleanCode | /CleanCodeEpam/src/main/java/com/ArutlaHarish/CleanCodeExample/InputReader.java | UTF-8 | 823 | 3.203125 | 3 | [] | no_license | package com.ArutlaHarish.CleanCodeExample;
import java.util.Scanner;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
class InputReader
{
String materialStandard;
int totalArea;
InputReader()
{
materialStandard=null;
totalArea=0;
}
void readInput()
{
L... | true |
88450acb807ddf374523f8fae9fd0d2f06d2eca2 | Java | PizzaFactory/a-workflow-demo | /jp.ac.nagoya_u.is.nces.a_rte.m2m/src/jp/ac/nagoya_u/is/nces/a_rte/m2m/internal/module/builder/OsApiModelBuilder.java | UTF-8 | 6,417 | 1.59375 | 2 | [] | no_license | /*
* TOPPERS/A-RTEGEN
* Automotive Runtime Environment Generator
*
* Copyright (C) 2013-2016 by Eiwa System Management, Inc., JAPAN
*
* 上記著作権者は,以下の(1)〜(4)の条件を満たす場合に限り,本ソフトウェ
* ア(本ソフトウェアを改変したものを含む.以下同じ)を使用・複製・改
* 変・再配布(以下,利用と呼ぶ)することを無償で許諾する.
* (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
* 権表示,この利用条件および... | true |
977d14eeec4c373d795fcb0b60c5234c2d4ba51d | Java | anandkrrai/CompetitiveCoding | /src/pep/IntersectionPoint.java | UTF-8 | 1,714 | 3.359375 | 3 | [] | no_license | package pep;
public class IntersectionPoint {
public static int counter = 0;
public static class Node {
int data;
Node next;
public Node() {
this.data = counter;
++counter;
}
}
public static void detectCycle(Node node) {
Node slow = node, fast = node;
do {
slow = slow.next;
fast = fast... | true |
4f9a2517bb5d5ed4689ed340ce23893713a26a61 | Java | musman013/testLab91 | /petsdemoa/src/main/java/com/nfinity/demo/petsdemoa/domain/irepository/IUserpermissionRepository.java | UTF-8 | 809 | 1.71875 | 2 | [] | no_license | package com.nfinity.demo.petsdemoa.domain.irepository;
import com.nfinity.demo.petsdemoa.domain.model.UserpermissionId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import or... | true |
5554066c2c7c9ccc010f0a1bfdfab268a1aa3c45 | Java | amandarfernandes/SeleniumIntroduction | /src/pageobjects/LoginPageFactory.java | UTF-8 | 716 | 2.28125 | 2 | [] | no_license | package pageobjects;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class LoginPageFactory {
WebDriver driver;
@FindBy(css="input#login1")
private WebElement userName;
@FindBy(css="... | true |
75f6354a65cd466e10456708abb5e2862e6c3d71 | Java | imenk1986/scholar-mw | /hadrumaths/hadrumaths-java/src/main/java/net/vpc/scholar/hadrumaths/plot/console/PlotConsoleWindowManager.java | UTF-8 | 1,551 | 2.625 | 3 | [] | no_license | package net.vpc.scholar.hadrumaths.plot.console;
import net.vpc.scholar.hadrumaths.plot.AbstractPlotWindowManager;
import net.vpc.scholar.hadrumaths.plot.PlotComponent;
/**
* @author taha.bensalah@gmail.com on 7/22/16.
*/
public class PlotConsoleWindowManager extends AbstractPlotWindowManager {
private PlotCons... | true |
cd50f879aff19c37bd5ecf1a1fc3d881fc476d3a | Java | gsteinacker/jcg | /src/test/java/de/steinacker/jcg/model/MethodTest.java | UTF-8 | 6,301 | 2.671875 | 3 | [] | no_license | /*
* Copyright (c) 2010 by Guido Steinacker
*/
package de.steinacker.jcg.model;
import org.testng.annotations.Test;
import java.util.Collections;
import java.util.List;
import static org.testng.Assert.assertEquals;
/**
* @author Guido Steinacker
* @since 28.07.2010
*/
public class MethodTest {
@Test
p... | true |
9d5713aa30d396b0c9b6386391e4b6c5b7608145 | Java | TDiva/Genetic-Scheduling | /gen-schedules/src/tests/BruteOpenShopTest.java | UTF-8 | 2,467 | 2.65625 | 3 | [] | no_license | package tests;
import algorithm.brute.BruteOpenShop;
import org.apache.commons.lang.time.StopWatch;
import org.junit.Test;
import problem.Problem;
import problem.Schedule;
import java.util.HashMap;
import java.util.Map;
/**
* Created by TDiva on 5/18/16.
*/
public class BruteOpenShopTest {
public static final... | true |
6e0f7ef41f7daa3829d172de0439bbf78ce7370a | Java | vsaravanan/carpark | /carpark/src/main/java/conti/ies/carpark/controller/ParkingBillController.java | UTF-8 | 5,264 | 2.046875 | 2 | [] | no_license | package conti.ies.carpark.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
246857b5a258799adbecd80d6964127bae8a0fd5 | Java | almazhou/RichGameSourceCode | /maven_rich/src/main/java/enigma/shells/commandline/commands/Cd.java | UTF-8 | 1,145 | 2.875 | 3 | [] | no_license | package enigma.shells.commandline.commands;
import java.io.*;
import java.util.*;
import enigma.core.*;
import enigma.util.Util;
/**
* Changes the current working directory.
*
*@status.stable
*@author Ethan Royael Nicholas (<a href="mailto:ethan@ethannicholas.com">ethan@ethannicholas.com</a>)
*/
public class C... | true |
bd889515f2d91b5fdb95c06fb388415250e6663f | Java | ebad-ali/KickStarter | /app/src/main/java/com/example/ahmedkhattak/kickstarter/Utils/ToolbarOperations.java | UTF-8 | 164 | 1.515625 | 2 | [] | no_license | package com.example.ahmedkhattak.kickstarter.Utils;
/**
* Created by Ahmed Khattak on 02/12/2017.
*/
public enum ToolbarOperations {
TitleChange,
CreateMenu
}
| true |
f293b00ead2bba88b1251a9a2f07a28b37ecb139 | Java | Akita20/UENSeleniumNew | /src/test/java/com/practice_cybertekschool/tests/RegistrationFormTest.java | UTF-8 | 1,818 | 2.46875 | 2 | [] | no_license | package com.practice_cybertekschool.tests;
import com.practice_cybertekschool.pages.HomePage;
import com.practice_cybertekschool.pages.RegistrationConfirmationPage;
import com.practice_cybertekschool.pages.RegistrationFormPage;
import com.practice_cybertekschool.utilities.BrowserUtils;
import org.testng.Assert;
import... | true |
8c3e21758213181f7e684f40e517d8cf483cf27b | Java | ggj2010/EasyBug | /src/main/java/com/gaoguangjin/count/vo/BugCountReportVO.java | UTF-8 | 1,040 | 1.804688 | 2 | [] | no_license | package com.gaoguangjin.count.vo;
public class BugCountReportVO {
private String levelStr;
private String statusStr;
private String allBugStr;
private String newBugStr;
private String moduleStr;
private String userStr;
public String getLevelStr() {
return levelStr;
}
public void setLevelStr(String level... | true |
ba18cc76fb11f245309f329eb9bc61460357dc51 | Java | jaredpearson/deckbuilder-api | /src/main/java/deckbuilder/mtg/http/rest/models/CardSetListModelBuilder.java | UTF-8 | 975 | 2.671875 | 3 | [] | no_license | package deckbuilder.mtg.http.rest.models;
import java.util.List;
import javax.annotation.Nonnull;
import com.google.common.collect.Lists;
import deckbuilder.mtg.http.rest.Builder;
/**
* Builder for instances of {@link CardSetListModel}
* @author jared.pearson
*/
public class CardSetListModelBuilder implements B... | true |
f8b1a11844ed0814b13efb43de048331b97b9985 | Java | FudgeRacoon/TinyRenderer | /src/tinyrenderer/core/Camera.java | UTF-8 | 2,539 | 2.703125 | 3 | [] | no_license | package tinyrenderer.core;
import tinyrenderer.Application;
import tinyrenderer.math.Vector3;
import tinyrenderer.math.Vector4;
import tinyrenderer.math.Matrix4;
enum CameraMode
{
PERSPECTIVE,
ORTHOGRAPHIC
};
public class Camera
{
public Vector3 position;
public Vector3 rotation;
public Vector3... | true |
c22f79cf16099b8e554b3193f5d8fc2a87e3d92d | Java | KaushlendraSingh39/Rest-Assured-Assignent | /src/test/java/stepsdefinitions/TestStepdefs.java | UTF-8 | 6,123 | 2.359375 | 2 | [] | no_license | package stepsdefinitions;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import helper.CommonFunctions;
import io.restassured.response.Response;
import org.junit.Assert;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import pojo.Comments;
import pojo.Posts;
import static org.hamcrest.C... | true |
6aafe3d7915d060e17e47335e7f00854eada1996 | Java | JaydenHoFly/AndroidTech | /app/src/main/java/com/jaydenho/androidtech/widget/view/custom/FlowLayout.java | UTF-8 | 4,760 | 2.59375 | 3 | [] | no_license | package com.jaydenho.androidtech.widget.view.custom;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by hedazhao on 2017/6/14.
*/
public class FlowLayout extends ViewGroup {
public FlowLayout(Context context) {
sup... | true |
b7fe133a8754b31361be28bdb821c33aaf1cd4ca | Java | DavidFernando95/Programacion-Afectiva | /clase1/src/clase1/Potencia.java | UTF-8 | 874 | 3.15625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package clase1;
import java.util.Scanner;
/**
*
* @author Usuario
*/
public class Potencia {
public int pot;
public i... | true |
ecd2dec7c322c8d685a6dbaceaf4440818886dd7 | Java | luiseduardo1/ULTaxi | /src/main/java/ca/ulaval/glo4003/ultaxi/domain/vehicle/exception/InvalidVehicleTypeException.java | UTF-8 | 218 | 2.140625 | 2 | [] | no_license | package ca.ulaval.glo4003.ultaxi.domain.vehicle.exception;
public class InvalidVehicleTypeException extends RuntimeException {
public InvalidVehicleTypeException(String message) {
super(message);
}
}
| true |
ec3aa5ccb607994be2a29bba75900e8523f6f388 | Java | danivm1/biblioteca | /src/main/java/com/biblioteca/resource/LivroResource.java | UTF-8 | 1,850 | 2.515625 | 3 | [] | no_license | package com.biblioteca.resource;
import com.biblioteca.entity.Cliente;
import com.biblioteca.entity.Livro;
import com.biblioteca.repository.LivroRepository;
import javax.inject.Inject;
import javax.transaction.Transactional;
import javax.validation.Valid;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
impor... | true |
79f4cf99287c9b5a0920509eea972505bf17e2f4 | Java | rossirm/Programming-Basics-with-Java-2017 | /04.Complex_Conditions/src/p09_Day_of_Week.java | UTF-8 | 1,277 | 3.40625 | 3 | [] | no_license | import java.time.DayOfWeek;
import java.util.Scanner;
public class p09_Day_of_Week {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int day = Integer.parseInt(scan.nextLine());
switch (day) {
case 1:
System.out.println(DayOfWeek... | true |
e16162be3ef62aa63999ed6a1b3a01f993719c68 | Java | softicar/platform | /platform-db/src/test/java/com/softicar/platform/db/runtime/object/DbAutomaticTestObjectReference.java | UTF-8 | 1,431 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.softicar.platform.db.runtime.object;
import com.softicar.platform.db.runtime.field.IDbForeignField;
import com.softicar.platform.db.runtime.field.IDbIdField;
import com.softicar.platform.db.runtime.logic.AbstractDbObject;
import com.softicar.platform.db.runtime.logic.DbObjectTable;
import com.softicar.plat... | true |
6111f9287a7bece765d7fd6c164576db216ba4ca | Java | denmob/2020-05-otus-spring-Emelyanov-home-work | /hw10-spring-mvc-ajax/src/main/java/ru/otus/hw10/service/CommentServiceImpl.java | UTF-8 | 1,170 | 2.25 | 2 | [] | no_license | package ru.otus.hw10.service;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import ru.otus.hw10.model.Comment;
import ru.otus.hw10.repository.CommentRepository;
import java.util.List;
@Service
@RequiredArgsConst... | true |
8f276c01d822ee2e954eefbbbef1e577f5ed1c3b | Java | jvia/fyp | /src/test/java/org/bham/aucom/data/RangeScoreTest.java | UTF-8 | 1,424 | 2.546875 | 3 | [] | no_license | package org.bham.aucom.data;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
public class RangeScoreTest {
@Before
public void setUp() throws Exception {
}
@SuppressWarnings("boxing")
@Test
public void testGetVariance() {
Ar... | true |
c6764e08b4867cac429496a774cf1967073a5e79 | Java | chanyaz/and_unimed | /sources/com/google/android/gms/internal/measurement/hq.java | UTF-8 | 316 | 1.734375 | 2 | [] | no_license | package com.google.android.gms.internal.measurement;
final class hq implements Runnable {
private final /* synthetic */ long a;
private final /* synthetic */ hm b;
hq(hm hmVar, long j) {
this.b = hmVar;
this.a = j;
}
public final void run() {
this.b.b(this.a);
}
}
| true |
0d916825cb99b714ab72c19781683f97a2ad5fc1 | Java | billjyc/cse291e-lab1 | /docker-test/backup/rmiclient/rmi/Listening.java | UTF-8 | 1,194 | 3 | 3 | [] | no_license | package rmi;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
/**
* Created by tao on 4/8/16.
*/
public class Listening<T> implements Runnable{
private ServerSocket serverSocket;
private T server;
protected boolean started = true;
publi... | true |
f213b9fede1390ce0b6410bfa5e89e3f991e306b | Java | sidrakazmi/Library-Project | /src/main/java/com/lexicon/exceptions/MemberAlreadyAvailable.java | UTF-8 | 217 | 2.171875 | 2 | [] | no_license | package com.lexicon.exceptions;
public class MemberAlreadyAvailable extends Exception {
public MemberAlreadyAvailable(String message)
{
super(message);
}
public MemberAlreadyAvailable()
{
super();
}
}
| true |
eb68888220e21db94031f07c4e1a8accedb1b414 | Java | Brozen/redis-lock | /src/main/java/com/limbo/lock/annotations/Locked.java | UTF-8 | 890 | 2.46875 | 2 | [] | no_license | package com.limbo.lock.annotations;
import com.limbo.lock.aop.LockPolicy;
import java.lang.annotation.*;
/**
* @author Brozen
* @date 2019/5/21 7:02 PM
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface Locked {
/**
* 锁名称;
* 若此处不指定锁名,可以使用expr... | true |
7160520f0c1f7c77058566a028bd62ebbb1ee5e1 | Java | IShahnawazShaikh/Swaad-Restaurant-Application | /app/src/main/java/com/restaurent/swaadapplication/ItemsAdapter.java | UTF-8 | 4,765 | 2.203125 | 2 | [] | no_license | package com.restaurent.swaadapplication;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.Image... | true |
81575b4ea59d8fc091f803134d1118668b213889 | Java | Sheyster/estudo | /design-patterns/src/br/com/alura/designPatterns/Moderado.java | UTF-8 | 667 | 3 | 3 | [] | no_license | /**
*
*/
package br.com.alura.designPatterns;
import java.util.Random;
import br.com.alura.designPatterns.interfaces.Investimento;
import br.com.alura.designPatterns.model.Conta;
/**
* @author eltonf
*
*/
public class Moderado implements Investimento {
private Random random;
/**
*
*/
public Moderado()... | true |
f331d7e389fa113305b27cabb941fa1f93156f7e | Java | dl01852/Assignment-2 | /Main.java | UTF-8 | 912 | 2.625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* Created by David on 1/30/2016.
*/
public class Main {
public static void main(String[] args)
{
AJC ajc = new AJC();
List<Observer> observersList = new ArrayList<>();
obser... | true |
90714ce4fd6439ee1cd8735b0935d18e5e5d56fc | Java | BlackGold-1989/Masapp-Client | /app/src/main/java/com/laodev/masapp/fragment/buyer/BuyerRequestFragment.java | UTF-8 | 3,087 | 2.09375 | 2 | [] | no_license | package com.laodev.masapp.fragment.buyer;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import com.googl... | true |
b95170c2b701a8bab531c571a3f55e1821b0a8ce | Java | josejuancarrasco/Pokemon | /demo/demo/src/main/java/com/example/demo/services/IPokemonService.java | UTF-8 | 331 | 1.929688 | 2 | [] | no_license | package com.example.demo.services;
import java.util.List;
import com.example.demo.entity.PokemonStats;
public interface IPokemonService {
void addPokemonStats(PokemonStats pokemonStats);
List<PokemonStats> getMoreBaseExperiencePokemon();
List<PokemonStats> getHeaviestPokemon();
List<PokemonStats> getHighestPo... | true |
5fa715b7fad011258921e817a5b068b8b15f5794 | Java | 1XTheTab/Java | /Лабараторна робота 5(Інтерфейси)/src/Tasks/TaskTwo/TaskTwo.java | UTF-8 | 9,293 | 3.140625 | 3 | [] | no_license | package Tasks.TaskTwo;
import Tasks.Task;
import java.io.*;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Scanner;
public class TaskTwo implements Task {
ArrayList<Speech> speeches;
public TaskTwo() {
speeches = new ArrayList<Speech>();
download();
}
publ... | true |
b98330bd3aba85308ec0c49a8fbe957665e4cf83 | Java | mwhahaha/repose | /repose-aggregator/services/service-client/api/src/main/java/org/openrepose/core/services/serviceclient/akka/AkkaServiceClientException.java | UTF-8 | 230 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | package org.openrepose.core.services.serviceclient.akka;
public class AkkaServiceClientException extends Exception {
public AkkaServiceClientException(String message, Throwable cause) {
super(message, cause);
}
}
| true |
8f91673466410b1c2c0791f998edae8d2d190725 | Java | olen4ixxx/TaskArray | /src/test/java/test/olen4ixxx/taskarray/mapper/LinesToCustomArrayMapperTest.java | UTF-8 | 1,083 | 2.4375 | 2 | [] | no_license | package test.olen4ixxx.taskarray.mapper;
import io.olen4ixxx.taskarray.entity.CustomArray;
import io.olen4ixxx.taskarray.exception.CustomArrayException;
import io.olen4ixxx.taskarray.mapper.LinesToCustomArrayMapper;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import java.util.ArrayL... | true |
647ee4ea0a31444310ab1af99b2876ab6aa85885 | Java | mmaico/beyond-object-calisthenics | /src/main/java/examples/repository/advertence/application/AdvertenceFacade.java | UTF-8 | 436 | 2.03125 | 2 | [] | no_license | package examples.repository.advertence.application;
import examples.repository.advertence.domain.model.advertence.Advertence;
import examples.repository.advertence.domain.model.director.Director;
import org.springframework.data.domain.Page;
import java.util.Collection;
public interface AdvertenceFacade {
Advert... | true |
38b8f9902319b7e5ddbd53b7ad79a14c387e0c3b | Java | vigak/DesignPatterns | /BridgePattern/src/BridgeImpl.java | UTF-8 | 380 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | public class BridgeImpl {
public static void main(String[] args){
ArtistResource artistResource = new ArtistResource();
LongView longArtistView = new LongView(artistResource);
ShortView shortArtistView = new ShortView(artistResource);
System.out.println(longArtistView.Show());
... | true |
a466fed8d01a1ce2a1d9576d3750e02cd740470a | Java | shaozicheng/demo | /OA/src/main/java/com/app/OA/controller/AccountController.java | UTF-8 | 7,853 | 2.25 | 2 | [] | no_license | package com.app.OA.controller;
import java.text.ParseException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |