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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
dceadbba132e0d528d38e8d3d3bb4492aff2a1cb | Java | IanDarwin/annabot | /src/main/java/demo/MyAnnotation.java | UTF-8 | 455 | 2.484375 | 2 | [
"LicenseRef-scancode-bsd-simplified-darwin"
] | permissive | package demo;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* A sample annotation for types (classes, interfaces);
* it will be available at run time.
*/
@Target({ElementType.TYPE,ElementType.METH... | true |
7b780ea93cf8b2d820f573d8df85447889eb34a2 | Java | moutainhigh/LYProject | /src/main/java/com/liaoyin/lyproject/entity/TSystemNews.java | UTF-8 | 2,487 | 2.265625 | 2 | [] | no_license | package com.liaoyin.lyproject.entity;
import java.util.Date;
import javax.persistence.*;
@Table(name = "t_system_news")
public class TSystemNews {
/**
* id主键
*/
@Id
private Integer id;
/**
* 标题
*/
private String title;
/**
* 消息分类:0-投票通知
*/
private Integer ty... | true |
3b88f5bdff9dc60ea3f6f03cd5766e7c3cf96d70 | Java | Patrick-Edouard/HomeVoiceControler | /src/main/java/fr/uds/info907/view/AbstractItemView.java | UTF-8 | 1,724 | 2.671875 | 3 | [] | no_license | package fr.uds.info907.view;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JLabel;
public class AbstractItemView extends JDialog{
private static final long seria... | true |
4a90573d7cadd15c5e7542076ac650be39d0afef | Java | oudream/hello-java | /referto/bookcode/core8th5/v1ch4/CardDeck/CardDeck.java | UTF-8 | 1,587 | 3.6875 | 4 | [] | no_license | /**
* @version 1.20 27 Mar 1998
* @author Cay Horstmann
*/
import corejava.*;
public class CardDeck
{ public CardDeck()
{ deck = new Card[52];
fill();
shuffle();
}
public void fill()
{ int i;
int j;
for (i = 1; i <= ... | true |
ca15632620638add283ccdeff4b78c415b8602a6 | Java | xiaocaimeng007/Hong1.0- | /app/src/main/java/net/sourceforge/simcpux/PayActivity.java | UTF-8 | 6,287 | 1.796875 | 2 | [] | no_license | package net.sourceforge.simcpux;
import android.os.Bundle;
import android.widget.Toast;
import com.example.aaron.library.MLog;
import com.hongbao5656.base.App;
import com.hongbao5656.base.BaseActivity;
import com.hongbao5656.okhttp.HttpDataHandlerListener;
import com.hongbao5656.okhttp.HttpException;
import com.hongb... | true |
12803a7958c400f9d9d1234a752b79cfceef2503 | Java | cckmit/bhshop | /bhshop/bh-admin/src/main/java/com/bh/admin/service/TopicBargainLogService.java | UTF-8 | 514 | 1.679688 | 2 | [] | no_license | package com.bh.admin.service;
import com.bh.admin.pojo.goods.TopicBargainLog;
import com.bh.admin.pojo.user.Member;
import com.bh.utils.PageBean;
public interface TopicBargainLogService {
//添加
int add(TopicBargainLog entity, Member member);
//获取
TopicBargainLog get(Integer id);
//列表
PageBean<TopicBa... | true |
8086f2be6ff01199aa1a9b395257407ff97eee85 | Java | yangfeit19/auc-miner | /auc-miner/src/aucminer/handlers/MiningRulesThread.java | WINDOWS-1252 | 1,741 | 2.03125 | 2 | [] | no_license | package aucminer.handlers;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.Job;
import aucminer.AucMinerActivator;
import aucminer.core.AssociationRuleList;
import aucminer.core.Configurati... | true |
798ec3eb38946e45e54abcb5d52db6ed630c846b | Java | talk2alie/csc1051 | /Arrays/ReadingFiles.java | UTF-8 | 1,088 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | // 1. Import the Scanner class from the java.util package
import java.util.Scanner;
/**
* ReadingFiles
*/
public class ReadingFiles {
public static void main(String[] args) {
// 2. Instantiate a Scanner object.
// Note that System.in is how Java represents the keyboard.
// So when ... | true |
ca8fd8ab538ca9809eba979370ab28eb55be1b53 | Java | wang-jun-hao/discrete-event-simulator | /RestEvent.java | UTF-8 | 754 | 3.25 | 3 | [] | no_license | package cs2030.simulator;
/**
* RestEvent class that extends Event and represents the event whereby a server
* temporarily pauses its service after finishing serving a customer.
*/
class RestEvent extends Event {
// constructor
/**
* Constructs a RestEvent at given time involving given server.
* @... | true |
6cb2f11022dced37a0989d62d6466d2a613f3412 | Java | green-fox-academy/rolandcsa | /week-04/day-3/src/Sum.java | UTF-8 | 231 | 3.015625 | 3 | [] | no_license | import java.util.List;
public class Sum {
public Integer sumElements(List<Integer> numbers) {
int sum = 0;
for (Integer number : numbers) {
sum = sum + number;
}
return sum;
}
}
| true |
0081b96f15fe6729dbca67696296094a7991ff0b | Java | UrQA/stresstest_android | /libraries/URQANative/src/com/urqa/rank/ErrorRank.java | UTF-8 | 255 | 2.46875 | 2 | [
"MIT"
] | permissive | package com.urqa.rank;
public enum ErrorRank {
Nothing(-1),Unhandle(0),Native(1),Critical(2),Major(3),Minor(4);
private final int value;
ErrorRank(int value)
{
this.value = value;
}
public int value()
{
return value;
}
}
| true |
5f4d0e9079091460cca78b06053572817e97aebc | Java | jeevan-patil/hearth | /src/main/java/org/hearth/march14/Password.java | UTF-8 | 2,559 | 3.84375 | 4 | [] | no_license | package org.hearth.march14;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author jeevan
* @orgaization :)
* @date 18-Mar-2014 10:35:39 PM
*
* Danny has a possible list of passwords of Manny's faceb... | true |
68985f2555e2ea3836f67ee657945318a07ba0d6 | Java | phwd/quest-tracker | /hollywood/com.oculus.socialplatform-base/sources/X/AnonymousClass0f0.java | UTF-8 | 1,057 | 1.992188 | 2 | [] | no_license | package X;
import com.google.common.collect.Multiset;
import org.checkerframework.checker.nullness.compatqual.NullableDecl;
/* renamed from: X.0f0 reason: invalid class name */
public abstract class AnonymousClass0f0<E> extends AbstractC05580wA<Multiset.Entry<E>> {
public abstract AbstractC05490vp<E> A00();
... | true |
0fd90c09372ab27f0ff5c09a6f8f9621462030d7 | Java | MrEyeballs29/Decoblocks | /src/main/java/mreyeballs29/decoblocks/utils/ConfigManagerIssacCore.java | UTF-8 | 4,562 | 2.015625 | 2 | [
"MIT"
] | permissive | package mreyeballs29.decoblocks.utils;
import java.io.File;
import net.minecraftforge.common.config.Configuration;
public class ConfigManagerIssacCore {
public static String CATERGORY_WORLD = "world";
public static String CATERGORY_INTREGRATED_WORLD = "worldIntergation";
public static String CATERGORY_BIOME_GEMS ... | true |
aa1d239b0283e504239f7c5f17c35f83d05eaff9 | Java | killghost/Interface | /mobile_interface_1/src/main/java/zxjt/intfc/dao/trade/ptyw/A03SJKMMSLCXRepository.java | UTF-8 | 347 | 1.632813 | 2 | [] | no_license | package zxjt.intfc.dao.trade.ptyw;
import org.springframework.stereotype.Repository;
import zxjt.intfc.dao.common.BaseRepository;
import zxjt.intfc.entity.trade.ptyw.A03SJKMMSLCX;
@Repository
public interface A03SJKMMSLCXRepository extends BaseRepository<A03SJKMMSLCX> {
//查询
public A03SJKMMSLCX findOneByFunction... | true |
87f3f5a4d87b43c834ffe1eb70a75b354a1a769d | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/domogik_domodroid/Domodroid/src/main/java/Entity/Entity_Map.java | UTF-8 | 2,292 | 1.625 | 2 | [] | no_license | // isComment
package Entity;
import android.app.Activity;
import misc.tracerengine;
public class isClassOrIsInterface extends Entity_Feature {
private int isVariable;
private int isVariable;
private int isVariable;
private String isVariable;
private String isVariable;
private Boolean isV... | true |
e0f3047194177e3caa3f76e1ad8e44e9f9176cf5 | Java | OGKotov/task3-expression_calculator | /src/main/java/com/epam/jwd35/kotov/task3/expression_calculator/entity/LexemeType.java | UTF-8 | 326 | 2.125 | 2 | [] | no_license | /*
* Java Web Development
* JWD 35
* Oleg Kotov
* Task3
* Information Handling
* From 06-11-2021 to 11-11-2021
*/
package com.epam.jwd35.kotov.task3.expression_calculator.entity;
public enum LexemeType {
LEFT_BRACKET,
RIGHT_BRACKET,
OP_PLUS,
OP_MINUS,
OP_MULTIPLY,
OP_DIVIDE,
NUMBER,
... | true |
845d6be46f4cee83e96f7cac31f09f5d199277e3 | Java | simbest/simbest-api | /src/main/java/com/alipay/pojo/account/query/AccountPageQueryResult.java | UTF-8 | 1,759 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.pojo.account.query;
import java.io.Serializable;
import java.util.List;
import com.quigley.moose.mapping.provider.annotation.XML;
import com.quigley.moose.mapping.provider.annotation.XMLField;
import com.quigley.moose.mapping.provider.annotation.XMLList;
@XML(name = "account_page_query_result")
pu... | true |
f0fcb783de8d4b3fe1bfb5d871307ce2e347b238 | Java | jaiishankar/estools | /relestimation/src/main/java/edu/aspen/capstone/estimation/relative/resource/ProjectResourceController.java | UTF-8 | 2,492 | 1.953125 | 2 | [] | no_license | /*
*
*
*
*/
package edu.aspen.capstone.estimation.relative.resource;
import edu.aspen.capstone.estimation.relative.domain.ProjectDO;
import edu.aspen.capstone.estimation.relative.service.ProjectService;
import edu.aspen.capstone.estimation.relative.utils.JSONResponseWrapper;
import org.springframework.beans.f... | true |
7f60eab21768f07f4659f633e9e42059907bc093 | Java | marceltoben/evandrix.github.com | /go/jgo/src/main/java/jgo/runtime/Slices.java | UTF-8 | 4,465 | 2.953125 | 3 | [] | no_license | package jgo.runtime;
import java.util.*;
/**
* Utility functions for slices.
*
* @author Harrison Klaperman
*/
public final class Slices {
private Slices() { }
public static <T> Slice<T> make(int len) {
return new ObjSlice<T>((T[])new Object[len]);
}
public static <T> Slice<T> make(int len, int cap... | true |
2271ff3d8472714830c37efe234dfc3f98db1f9f | Java | NhamPhanDinh/math | /MathLogic/src/ydc/math/braintest/mathlogic/ultis/Untils.java | UTF-8 | 716 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package ydc.math.braintest.mathlogic.ultis;
import android.app.Activity;
import android.content.Context;
import android.net.ConnectivityManager;
import android.util.Log;
public class Untils {
/**
* check connect internet
*
*/
public static boolean checkInternetConnection(Activity activity)
{
ConnectivityM... | true |
2b629b6f3a15ff8977295a846ffce53b1f587fd2 | Java | alexbabalau/movie-manager-service | /src/test/java/service/delete/ReplyDeleteTest.java | UTF-8 | 2,449 | 2.015625 | 2 | [] | no_license | package service.delete;
import application.MovieManagerServiceApplication;
import model.Reply;
import model.Review;
import org.springframework.test.context.ActiveProfiles;
import repository.ReplyRepository;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
8a771cd7ba8596376479c9624a23e984aa06c217 | Java | ssahla/tikape-harjoitus | /src/main/java/tikape/harjoitus/database/AnnosRaakaAineDao.java | UTF-8 | 6,098 | 2.3125 | 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 tikape.harjoitus.database;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import ja... | true |
e3cff9a3f6c06bd6b68c7c1abab85b0216db315c | Java | miccgood55/BWM_GenInterface_1-1 | /GenData/GenData/src/gen/GenUnitTrust.java | UTF-8 | 14,112 | 2.046875 | 2 | [] | no_license | package src.gen;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import src.GenerateFile;
import src.extend.Constants;
import src.extend.GenFilesUtils;
public class GenUnitTrust {
private final static Map<Integer, String> FUND_CODE_MAP = new HashMap<Int... | true |
8ed5a2c100c5358e7ac5a8338fbd3cc0562be582 | Java | Liplhello/project_68 | /src/com/firstKind/String5_6.java | UTF-8 | 700 | 2.96875 | 3 | [] | no_license | package com.firstKind;
/**
* Created by lpl on 2018/6/25.
*/
public class String5_6 {
public static void main(String[] args) {
String str = "Java技术学习班20070326";
String str1 = "MLDN JAVA";
String str2 = "Java技术学习班20070326 MLDN 老师";
String userCard = "110110154011113452";
S... | true |
0f0930ba4850352f64ea4e039d65c9f74bc9aee8 | Java | vikramtambe/hackerrank-test | /src/main/java/com/hackerrank/test/SolutionRepeatedString.java | UTF-8 | 2,656 | 3.671875 | 4 | [] | no_license | package com.hackerrank.test;
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
/**
* Lilah has a string, s , of lowercase English letters that she repeated infinitely many times.
Given an integer, n , find and... | true |
3cf90e9090925be0851dfd368c4fb83efe5fd8ae | Java | paramonov-yo/java_homeworks | /JavaSpring/src/main/java/com/JavaDevSpring/service/impl/BookServiceImpl.java | UTF-8 | 1,420 | 2.53125 | 3 | [] | no_license | package com.JavaDevSpring.service.impl;
import com.JavaDevSpring.model.Book;
import com.JavaDevSpring.repository.BookRepository;
import com.JavaDevSpring.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import jav... | true |
adcba021d7919b3323c39851bf562a569e2dfbe5 | Java | keerthivyas/90-days-program | /week3/PrintString5.java | UTF-8 | 611 | 3.703125 | 4 | [] | no_license | package freeJava.week3;
import java.util.Scanner;
public class PrintString5 {
public static void main(String[] args) {
String[] arr = new String[5];
Scanner input = new Scanner(System.in);
System.out.println("Enter elements : ");
for (int i = 0; i <5;... | true |
7ef43a15653f5668e07e2a9910ec543abdfe4a2f | Java | gruzilla/swag | /modelDrivenSwag/src-gen/swag/db/dao/MapDAO.java | UTF-8 | 1,749 | 2.703125 | 3 | [] | no_license | package swag.db.dao;
import javax.persistence.*;
import swag.db.model.Map;
public class MapDAO {
private static EntityManagerFactory entityManagerFactory;
private static EntityManager entityManager;
public static void initializeEntityManagerFactory(
EntityManagerFactory entityManagerFactory) {
MapDAO.entity... | true |
58846473f1d8daf787a91da85a7f31a68b761c6c | Java | SaoriKaku/LaiCode | /Array/2D Array/1. Spiral Order Traverse I.Java | UTF-8 | 1,427 | 3.984375 | 4 | [] | no_license |
/*
Traverse an N * N 2D array in spiral order clock-wise starting from the top left corner. Return the list of traversal sequence.
Assumptions
The 2D array is not null and has size of N * N where N >= 0
Examples
{ {1, 2, 3},
{4, 5, 6},
{7, 8, 9} }
the traversal sequence is [1, 2, 3, 6, 9, 8, 7, 4, 5]
*... | true |
73f1430a1afb12055d98caf573fdafe27cac9ad2 | Java | chen4778482/jjfw | /test/interfacetest/HttpUtil.java | UTF-8 | 7,108 | 2.328125 | 2 | [] | no_license | package interfacetest;
/**
* @class IfsUtil
* @Describtion ���������
* @Date 2011-09-15
* @Author zhouyouyi
*/
import java.io.IOException;
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.HttpException;
impo... | true |
3394563ec9841b9cef3c6c43630ede4b76f18bcf | Java | minhhoangtcu/Sortingcomparison | /src/sorting/algorithms/QuickSort.java | UTF-8 | 2,373 | 3.984375 | 4 | [] | no_license |
package sorting.algorithms;
public class QuickSort<T extends Comparable<T>> extends SortingAlgorithm<T> {
public QuickSort(T[] input) {
super();
sort(input);
sortingMethod = SortingMethod.QUICK;
}
@Override
protected void sort(T[] input) {
sort(input, 0, input.length-1);
output = input;... | true |
d3bb73be35a27066403b49d6c90391e14d5a2303 | Java | Pokesy/YZL-master | /tox/src/main/java/com/thinksky/fragment/CheckInFragment.java | UTF-8 | 7,525 | 1.882813 | 2 | [] | no_license | package com.thinksky.fragment;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.wi... | true |
d8ccd58712224980efee1be3528e4b960a7023bc | Java | gitzqs/edu-unioncenter | /src/main/java/com/zqs/model/course/CourseInfo.java | UTF-8 | 2,153 | 2.359375 | 2 | [] | no_license | package com.zqs.model.course;
import java.util.Date;
import com.zqs.model.basics.REntity;
/**
* 课程概览信息
*
* @author qiushi.zhou
* @date 2017年7月3日 下午4:13:29
*/
public class CourseInfo extends REntity{
private static final long serialVersionUID = 3072320582091905713L;
/** 课程名称 */
private String name;
/*... | true |
f26f2210bb9f7f10aba05e6f81c8a3a3e6ce04b6 | Java | kongyh/emart | /emart_services/item-service/src/test/java/com/fsd/emart/item/test/TestItemService.java | UTF-8 | 541 | 1.96875 | 2 | [] | no_license | package com.fsd.emart.item.test;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import com.fsd.emart.item.entity.Item;
import com.fsd.emart.item.service.ItemServiceImpl;
public class TestItemService extends TestTemplate {
@Autowired ItemSer... | true |
3ea5a0d79134c776a0bd0ccde768359b4d2354b5 | Java | Finkky/sy-clappin | /src/main/java/cz/cvut/fit/culkajac/dp/dto/RoutableFileDTO.java | UTF-8 | 1,285 | 2.46875 | 2 | [] | no_license | package cz.cvut.fit.culkajac.dp.dto;
import java.util.Set;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import com.google.common.collect.Sets;
public class RoutableFileDTO {
privat... | true |
a2e3cb48f372fdcd5faccef32c8cf6be9c95d9db | Java | rgpolizeli/quarkus-app | /src/main/java/org/acme/controller/repositories/IPostoColetaRepository.java | UTF-8 | 273 | 2.015625 | 2 | [] | no_license | package org.acme.controller.repositories;
import org.acme.model.api.errors.InvalidPostoColetaError;
import org.acme.model.entities.PostoColeta;
public interface IPostoColetaRepository {
public PostoColeta getPostoColetaById(Long id) throws InvalidPostoColetaError;
}
| true |
3a6aab114297c6a8157496fe271c79dc5ea4097d | Java | AubreyNgoma/AutomationTesting | /InternalFormsConfiguration.java | UTF-8 | 9,373 | 1.914063 | 2 | [] | no_license | package za.co.resbank.pages.Internal;
import net.serenitybdd.core.annotations.findby.FindBy;
import net.serenitybdd.core.pages.WebElementFacade;
import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
... | true |
1f9203c3f6a1f26a74b03fed0fdb94fff9f27da3 | Java | DanielCY79/net | /src/main/java/com/daniel/other/Other3.java | UTF-8 | 1,154 | 3.671875 | 4 | [] | no_license | package com.daniel.other;
/**
* [1, 2, 100, 4] 两个人,从两边取数,问获胜的人点数总和
*
* @author Daniel Xia
* @since 2019-07-03 20:36
*/
public class Other3 {
public int win(int[] nums) {
if (nums == null || nums.length == 0) {
return 0;
}
return Math.max(
first(nums, 0, nu... | true |
b9cf003eb5f3039d67ba2139c17f2792e598713d | Java | BatriderD/uzao | /uzao/uzao/app/src/main/java/com/zhaotai/uzao/ui/designer/adapter/DesignerListAdapter.java | UTF-8 | 1,742 | 2.15625 | 2 | [] | no_license | package com.zhaotai.uzao.ui.designer.adapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zhaotai.uzao.R;
import com.zhaotai.uzao.api.ApiConstants;
import com.zhaotai.uzao.base.BaseRecyclerAdapter;
import com.zhaotai.uzao.bean.Design... | true |
eb6c279c677018ce40a5cfb15373f0a6b29c2e97 | Java | qq764813981/OASystem | /src/dao/impl/ProjectDaoImpl.java | UTF-8 | 339 | 1.703125 | 2 | [] | no_license | package dao.impl;
import dao.ProjectDao;
import entity.Project;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
/**
* Created by 嘉诚 on 2016/8/29.
*/
@Repository("projectDao")
public class ProjectDaoImpl extends BaseDaoImpl<Project> implements... | true |
59c670a5d806a2c725c23ce6c98a7e78e14e9938 | Java | feizhihui/Algorithms-in-Java | /POJ代码分类/easy/Main3331.java | UTF-8 | 909 | 3.0625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package poj.easy;
import java.math.BigInteger;
import java.util.Scanner;
/**
*
* 高精度阶乘问题
*/
public class Main3331 {
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
i... | true |
b7c6e92596927d5454488c2f422c8e2d78167e97 | Java | nullsector12/inClass | /Cp2_Operator/src/chapter2_Op/TestOp4.java | UTF-8 | 1,000 | 4.03125 | 4 | [] | no_license | package chapter2_Op;
public class TestOp4 {
public static void main(String[] args) {
/*a= {{(25+5)+(36/4)}-72}*5, b= {{(25x5)+(36-4)}-71}/4, c=(128/4)*2 일 때
a>b>c 가 참이면 true 아니면 false를 출력하는 프로그램 작성 */
int a = (((25+5)+(36/4))-72)*5; // -165
int b = (((25*5)+(36-4))-71)/4; // 21
int c = (128/4)*2; // 64
... | true |
8c0d6b23e82c2e9fd624c0d75812aa7a56f3f41d | Java | XingtaoZhou/test1 | /tkmybatis/src/main/java/com/example/mapper/StudentMapper.java | UTF-8 | 494 | 1.773438 | 2 | [] | no_license | package com.example.mapper;
import com.example.entity.Student;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
import java.util.Map;
public interface StudentMapper extends Mapper<Student> {
List<Student> select1();
List<Student> select6(String sclass, String ssex);
List<Map<String, Objec... | true |
c599a18c69fe3acf5ef5074d46665b10464ae09f | Java | JoniMatias/Mufasa | /Mufasa/src/UserValidator.java | UTF-8 | 2,231 | 3.015625 | 3 | [] | no_license |
public class UserValidator {
public CountryCodeList countryList;
public UserValidator(CountryCodeList codeList) {
countryList = codeList;
}
public boolean isUserValid(User user) throws UserValidationError {
//if (!isNameValid(user.getFirstName())) return false;
//if (!isNameValid(user.getLas... | true |
daf1be008050b63669a2f149628e70fe69d61e99 | Java | xushjie1987/appd-analytics | /analytics-shared-rest/src/main/java/com/appdynamics/analytics/shared/rest/client/utils/HttpRequestFactory.java | UTF-8 | 6,873 | 2.140625 | 2 | [] | no_license | /* */ package com.appdynamics.analytics.shared.rest.client.utils;
/* */
/* */ import com.appdynamics.analytics.shared.rest.exceptions.ClientException;
/* */ import com.fasterxml.jackson.databind.ObjectMapper;
/* */ import com.google.common.base.Strings;
/* */ import com.google.common.base.Throw... | true |
a8e7bd6b899bdd2f0a691708574bf12260a7a893 | Java | chulicaoli/Algorithm | /test/src/algorithm/kdTree/Iterator.java | UTF-8 | 299 | 2.484375 | 2 | [] | no_license | package algorithm.kdTree;
import java.io.Serializable;
/**抽象迭代器或遍历器接口*/
public interface Iterator<S> extends java.util.Iterator<S> , Serializable
{
/**返回前一个元素*/
public S prior();
/**判断是否存在前一个元素*/
public boolean hasPrior();
}
| true |
2260b2411f80f1919c6af8d5b6fb155fb091cb93 | Java | fakhethazem/exercice1 | /src/com/company/design/bridge/Rectangle.java | UTF-8 | 268 | 2.8125 | 3 | [] | no_license | package com.company.design.bridge;
public class Rectangle extends Shape {
public Rectangle(Color col){
super(col);
}
@Override
public void applay() {
System.out.println("la rectangle de couleur :");
col.applycolor();
}
}
| true |
17b8415cfc48534524d18173a5b8f14d8d5ae973 | Java | a-malyshev/CheckConnectionEmulator | /src/test/java/com/malyshev/SupervisorTests.java | UTF-8 | 1,394 | 2.609375 | 3 | [] | no_license | package com.malyshev;
import com.malyshev.metrics.Timer;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class SupervisorTests {
private final int NUMBER_OF_DEVICES = 1000;
private Timer timer;
private List<String> devi... | true |
e0d61b9461668229108d220abb3acf05a8e46882 | Java | james1106/open-cloud | /opencloud-app/opencloud-admin-provider/src/main/java/com/github/lyd/admin/provider/controller/AdminController.java | UTF-8 | 4,521 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.github.lyd.admin.provider.controller;
import com.github.lyd.common.configuration.CommonProperties;
import com.github.lyd.common.http.OpenRestTemplate;
import com.github.lyd.common.model.ResultBody;
import com.github.lyd.common.utils.DateUtils;
import com.github.lyd.common.utils.RandomValueUtils;
import com... | true |
a0780dc490a1ff74b9f52124fc58482c3894c6a1 | Java | 18645956947/text | /src/zhx/day20190128/Solution.java | WINDOWS-1252 | 584 | 2.78125 | 3 | [] | no_license | package zhx.day20190128;
import java.awt.geom.Ellipse2D;
import javax.imageio.ImageTypeSpecifier;
/**
* @author lenovo
* @date 201912810:43:07
* @Description:
*/
/* The isBadVersion API is defined in the parent class VersionControl.
boolean isBadVersion(int version); */
public class Solution extends VersionContr... | true |
bf4fcdb7597a36d5d8f160a9650f5258753c5ceb | Java | redtroy/sxj-src | /supervisor-parent/supervisor-tasks/src/main/java/com/sxj/supervisor/model/tasks/WindDoorModel.java | UTF-8 | 690 | 2.015625 | 2 | [] | no_license | package com.sxj.supervisor.model.tasks;
import com.sxj.supervisor.entity.gather.WindDoorEntity;
public class WindDoorModel extends WindDoorEntity
{
/**
*
*/
private static final long serialVersionUID = -6646912373367372232L;
private String starDate;
private String end... | true |
764102f207c6c519420674fdca67770b2c2a57b7 | Java | ForomePlatform/Anfisa-Annotations | /annotation-service/src/main/java/org/forome/annotation/utils/ZygosityUtils.java | UTF-8 | 2,000 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020. Vladimir Ulitin, Partners Healthcare and members of Forome Association
*
* Developed by Vladimir Ulitin and Michael Bouzinier
*
* 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 cop... | true |
a0df3fbc19a2e00542eb7b5dbb3bd2aa109df5ce | Java | Kobyrisko/VEFCRM | /src/com/aleykoteretpro/packages/TransDAO.java | UTF-8 | 4,732 | 2.75 | 3 | [] | no_license | package com.aleykoteretpro.packages;
import java.util.Iterator;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.AnnotationConfiguration;
public class TransDAO implements ITransDAO {
/**Data access object.
* Pr... | true |
eab827c9852824a788e176cda5dad8de143a614b | Java | mathwiz/JavaTDD | /src/main/java/littlejava/Radish.java | UTF-8 | 465 | 2.859375 | 3 | [] | no_license | package littlejava;
/**
* Created by Yohan on 1/19/14.
*/
public class Radish extends KebabD {
KebabD k;
public Radish(KebabD k) {
this.k = k;
}
@Override
public boolean isVeggie() {
return k.isVeggie();
}
@Override
public Object whatHolder() {
return k.what... | true |
faee48623356917bbf9b2af79130a0c8b815c2f7 | Java | brokersolutions/bs-common | /src/main/java/bs/common/util/JsonUtil.java | UTF-8 | 4,438 | 2.59375 | 3 | [] | no_license | package bs.common.util;
import java.io.IOException;
import java.io.Serializable;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.Deserializat... | true |
e3e9ff48c35bd0d57a85b4e98a3a27a7445abcfc | Java | SagenApp/MySQL-UTILS | /src/main/java/app/sagen/mysqlutils/callback/MySQLUpdateCallback.java | UTF-8 | 700 | 1.632813 | 2 | [] | no_license | /*-----------------------------------------------------------------------------
- Copyright (C) BlueLapiz.net - All Rights Reserved -
- Unauthorized copying of this file, via any medium is strictly prohibited -
- Proprietary and confidential -
... | true |
32d5d57f906b4b2e0d664206baa00aa131c10b27 | Java | tablesheep233/leetcode | /src/org/table/swordfingeroffer/ConstructArr_66.java | UTF-8 | 994 | 3.546875 | 4 | [] | no_license | package org.table.swordfingeroffer;
/**
* 给定一个数组 A[0,1,…,n-1],请构建一个数组 B[0,1,…,n-1],其中B[i] 的值是数组 A 中除了下标 i 以外的元素的积,
* 即B[i]=A[0]×A[1]×…×A[i-1]×A[i+1]×…×A[n-1]。不能使用除法。
*
*/
public class ConstructArr_66 {
//每个元素左边的乘积与右边的乘积
public int[] constructArr(int[] a) {
if(a == null) {
return null;
... | true |
92a0fcdfd5adb5c48d26f225a08aab7449a0d8fe | Java | mcanoy/quarkus-ex | /src/main/java/com/mcanoy/Version.java | UTF-8 | 721 | 2.1875 | 2 | [] | no_license | package com.mcanoy;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.microprofile.metrics.annotation.Counted;
import org.eclipse.microprofile.... | true |
4f069d90b19dd84325ed80e6d56c9701cd8b0932 | Java | zhaohongbogit/androidNetty | /app/src/main/java/com/cclx/mobile/hb_connect/net/SocketService.java | UTF-8 | 834 | 2.234375 | 2 | [] | no_license | package com.cclx.mobile.hb_connect.net;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.util.Log;
public class SocketService extends Service {
@Nullable
@Override
public IBinder onBind(Intent intent) {
... | true |
b2750777600df6d0e900380ef9e87963cc5c67e8 | Java | sollunna/leetcode-practice | /src/crackingcode/Easy0206.java | UTF-8 | 1,779 | 3.921875 | 4 | [] | no_license | package crackingcode;
import org.junit.Test;
/**
* 编写一个函数,检查输入的链表是否是回文的。
*
* 示例 1:
* 输入: 1->2
* 输出: false
* 示例 2:
* 输入: 1->2->2->1
* 输出: true
*
* 进阶:
* 你能否用 O(n) 时间复杂度和 O(1) 空间复杂度解决此题?
*
* 思路:快慢指针,快走两步慢走一步,链表长度为奇数,慢指针指向最中间,偶数指向后半段开头
* O(1)空间复杂度实现:遍历前半段时,让每个元素指向都相反,则完成了反转
* 常规思路从中间开始将后半段入栈,在一个个弹出来后前半段... | true |
8e87e2a484953c1241d6fcc4d941f4305e5bf224 | Java | AshkIza/AlgorithmsAndSystemDesign | /src/main/java/leetcode/Strings/myAtoi.java | UTF-8 | 1,623 | 3.65625 | 4 | [] | no_license | package leetcode.Strings;
public class myAtoi {
public static int myAtoi(String s) {
if(s.length() == 0) return 0;
long result = 0;
int index = 0;
while(index < s.length() && s.charAt(index) == ' '){//ignore whitespaces
index++;
}
if(index > s.le... | true |
a5d67a2a340ffe2bc30c7378d48c67c64703ce8c | Java | acgatea/Java-compiler | /target/test-classes/a5/J1_sideeffect7.java | UTF-8 | 435 | 1.976563 | 2 | [] | no_license | // CODE_GENERATION
public class J1_sideeffect7 {
public J1_sideeffect7() {}
protected int g;
public static int test() {
return new J1_sideeffect7().test2();
}
public int test2() {
g=1;
boolean b7 = (f(1)==2 || 10/0<10);
int r7 = String.valueOf(b7).charAt... | true |
6b8e8a21f0c65264571bd405e58fa7a8e29d82e3 | Java | mannguyen1411/PlayMusicDuAn1 | /app/src/main/java/com/example/duan1/playmusicduan1/FeedbackActivity.java | UTF-8 | 2,648 | 1.929688 | 2 | [] | no_license | package com.example.duan1.playmusicduan1;
import android.app.ProgressDialog;
import android.graphics.Bitmap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.MotionEvent;
import android.webkit.WebChromeClient;
import ... | true |
845aa9c36429f6af1daa70de1d6a2b22cb7debd0 | Java | geeeeet/weixin-server | /weixin-controller/src/main/java/pers/lrf/weixinserver/controller/weixintest/ExampleController.java | UTF-8 | 1,000 | 1.921875 | 2 | [] | no_license | package pers.lrf.weixinserver.controller.weixintest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.lrf.w... | true |
061b385ccf0836945b2b1715a423d35e4c58120d | Java | aleffilus/tddestudy | /projectteste/src/test/java/br/com/projectteste/CalculadoraDeSalarioTest.java | UTF-8 | 1,418 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package br.com.projectteste;
import br.com.projectteste.domain.CalculadoraDeSalario;
import br.com.projectteste.domain.Cargo;
import br.com.projectteste.domain.Funcionario;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
/**
* Created by Alessandro on 08/05/2017.
*/
public class... | true |
bd888d305573b989d0548b5ee9ef5fbc987a612f | Java | astock1229/main | /src/main/java/seedu/address/ui/TaskDetailsPane.java | UTF-8 | 2,149 | 2.734375 | 3 | [
"MIT"
] | permissive | package seedu.address.ui;
import java.util.logging.Logger;
import com.google.common.eventbus.Subscribe;
import javafx.event.Event;
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Region;
import seedu.address.... | true |
69b807ac5eeb705c7c57d4b555c210e9f51489ac | Java | lc522108813/tradecoin | /src/main/java/com/coins/tradecoin/enums/RequestType.java | UTF-8 | 543 | 2.546875 | 3 | [] | no_license | package com.coins.tradecoin.enums;
public enum RequestType {
GET(1,"GET"),
POST(2,"POST"),
;
private RequestType(Integer type, String name) {
this.type = type;
this.name = name;
}
private Integer type;
private String name;
public Integer getType() {
ret... | true |
3ccf25f493e858b5518cb40f9aa9c05113406fd2 | Java | mihaelacalin/studio | /workspace/MyBatisAnnotation/src/mc/CommentoMapper.java | UTF-8 | 1,052 | 2.21875 | 2 | [] | no_license | package mc;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
public interface CommentoMapper {
@Insert("create table Commento(id INTEGER PRIMARY KEY,authorId INTEGER NOT NULL, postId INTEGER NOT NULL,text VA... | true |
07b188cf7bdd270b2fc5337cb92daec39f2d8f2d | Java | piwicode/diplomacy-strategy-editor | /src/diplo/visu/Frame.java | UTF-8 | 4,418 | 2.40625 | 2 | [] | no_license | package diplo.visu;
import java.awt.event.*;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.geom.*;
import diplo.framework.*;
import diplo.meta.MetaGame;
import java.util.List;
public class Frame extends GraphicalComponent implements ComponentListener {
... | true |
f7294fefb7eaeead1d7a5340180e413f96f906dd | Java | rodrigobitdelima/Auditeste-Web-Automation | /src/test/java/pageFactory/HomePage.java | UTF-8 | 1,474 | 2.234375 | 2 | [
"MIT"
] | permissive | package pageFactory;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class HomePage {
WebDriver driver;
@FindBy(xpath = "//*[@id=\"sgpb-popup-dialog-m... | true |
899f48158eb6bc74914aaa6de93c4ab1c14ee3b3 | Java | 211806230/ReadC | /StringUtil.java | UTF-8 | 526 | 3 | 3 | [] | no_license | package ReadClockIn.www.Others;
/**
* 字符串工具类
*/
public class StringUtil {
//判断是否为空
public static boolean isEmpty(String str) {
if (str == null || "".equals ( str.trim () )) {
return true;
} else {
return false;
}
}
//判断是否不为空
public static boolean ... | true |
557a06383d55fe65fad29ac5ca015304159d94ce | Java | CSC3054-Group/GroupProject | /app/src/main/java/com/groupwork/activity/SocketClass.java | UTF-8 | 8,635 | 2.421875 | 2 | [] | no_license | package com.groupwork.activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
i... | true |
b0f2cf7d71843f25390f6f2e8ac45934ec4639e6 | Java | lvfaqiang/Multi-Image-Selector | /app/src/main/java/com/lvfq/multiimage_master/impl/IDeletePicCallback.java | UTF-8 | 213 | 1.679688 | 2 | [] | no_license | package com.lvfq.multiimage_master.impl;
/**
* IDeletePicCallback
*
* @author lvfq
* @date 2017/4/5 上午9:20
* @mainFunction :
*/
public interface IDeletePicCallback {
void callBack(int position);
}
| true |
27aa1ed3c1c51ae41e55f32c0c56f9474117cb4c | Java | KRHwangSeonWoo/kw_infosci_board_project01 | /src/bFrontController/BFrontController.java | UTF-8 | 4,241 | 2.140625 | 2 | [] | no_license | package bFrontController;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import ... | true |
38fd68738f9bae6a5cf3eac457baafc757f81844 | Java | bondareko/trezor-android | /cgcmn-liban/src/main/java/com/circlegate/liban/utils/ActivityUtils.java | UTF-8 | 2,739 | 1.976563 | 2 | [] | no_license | package com.circlegate.liban.utils;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Parcelable;
import android.speech.RecognizerIntent;
import android.text.TextUtils;
import an... | true |
e61a0fa015848c5246c38a6d59e0a6531c1ae75b | Java | bcy569/SWD4TA020-3008 | /Bookstore/src/main/java/fi/bcy569/domain_class_pojo_orm/Category.java | UTF-8 | 1,053 | 2.6875 | 3 | [
"MIT"
] | permissive | package fi.bcy569.domain_class_pojo_orm;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
imp... | true |
aa3c416d89375233f0d485428b67ac09022cbb5e | Java | kh4904/SteadyTurtle | /src/main/java/com/spring/ex/dto/BoardDTO.java | UTF-8 | 1,435 | 2.640625 | 3 | [] | no_license | package com.spring.ex.dto;
public class BoardDTO {
// 작성자
private String mName;
// 게시글 번호
private String bNum;
// 게시글 메인제목
private String bTitle;
// 게시글 내용
private String bNote;
// 게시글 날짜
private String bDate;
// 게시글 카테고리
private String bCate;
// 게시글 답변내용
private String bReply;
pub... | true |
806059b5a83cc864562b16252e999ff9478a4d3d | Java | mattia-marchesini-unibo/oop20-bang | /src/model/states/PlayCardState.java | UTF-8 | 2,717 | 2.578125 | 3 | [] | no_license | package model.states;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import libs.Pair;
import model.GameStateMachine;
import model.Player;
import model.Table;
import model.Table.Message;
import model.card.Card;
import model.card.Color;
import model.effects.Weapon;
p... | true |
07591d6636a040bde1974014cc8e906959e15903 | Java | bullshitprojects/java-SistemaHospitalario | /Entidades/ConsumoMedicamento.java | UTF-8 | 362 | 2.25 | 2 | [] | no_license | package Entidades;
import java.util.Date;
/**
*
* @author juliocanizalez
*/
public class ConsumoMedicamento extends Medicamento{
protected Date fechaDeConsumo;
public Date getFechaDeConsumo() {
return fechaDeConsumo;
}
public void setFechaDeConsumo(Date fechaDeConsumo) {
this.fech... | true |
868a1189829ea50cd42804e2c6e7abc7abf8065d | Java | jankovicdragan/flight-advisor-app | /src/main/java/com/jankovicd/flightadvisor/auth/jwt/JwtPropertiesProvider.java | UTF-8 | 536 | 2.03125 | 2 | [] | no_license | package com.jankovicd.flightadvisor.auth.jwt;
import javax.crypto.SecretKey;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import io.jsonwebtoken.security.Keys;
@Component
public class JwtPropertiesProvider {
@Value("${jwt.secret}")
private String secr... | true |
2e021d16fbb0d60499bea9a1d02ea156f74d769c | Java | liuhaosource/OppoFramework | /A1_7_1_1/src/main/java/com/android/server/wifi/hotspot2/pps/DomainMatcher.java | UTF-8 | 10,718 | 1.890625 | 2 | [] | no_license | package com.android.server.wifi.hotspot2.pps;
import com.android.server.wifi.hotspot2.Utils;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
/* JADX ERROR: NullPointerException in p... | true |
3f8519b56b28db342bff9ed2d54a2f8ee6fcda7d | Java | P79N6A/icse_20_user_study | /methods/Method_8072.java | UTF-8 | 1,379 | 2.109375 | 2 | [] | no_license | public void setPhotoEntry(MediaController.PhotoEntry entry,boolean needCheckShow,boolean last){
pressed=false;
photoEntry=entry;
isLast=last;
if (photoEntry.isVideo) {
imageView.setOrientation(0,true);
videoInfoContainer.setVisibility(VISIBLE);
int minutes=photoEntry.duration / 60;
int seconds=p... | true |
5eed649da84369fbe9e9214c50674b8a8f5cd62b | Java | sawtor/LinkerConfigRefactor | /src/com/taylor/stb/STBDataManager.java | UTF-8 | 11,512 | 2.109375 | 2 | [] | no_license | package com.taylor.stb;
import android.content.Context;
import android.os.Handler;
import android.util.Log;
import com.tvezu.localdb.LocalDBManager;
import com.tvezu.restclient.AsyncRESTClient;
import com.tvezu.restclient.RESTException;
import com.tvezu.urc.restclient.*;
import java.util.*;
/**
* Created by Taylor... | true |
55c58ba234d71b4d2280e797b6ffd668b841c4f0 | Java | JavaTool/DataPlatform | /src/dataplatform/cache/lazy/hash/DayRefreshLazyHash.java | UTF-8 | 489 | 2.234375 | 2 | [] | no_license | package dataplatform.cache.lazy.hash;
import static dataplatform.util.DateUtil.getMilliSecondStartOfDayRefresh;
import dataplatform.cache.manager.ICachePlatform;
public class DayRefreshLazyHash<F, V> extends ExpireLazyHash<F, V> {
public DayRefreshLazyHash(ICachePlatform cachePlatform, Class<F> fclz, Class<V> vclz... | true |
9b0fb087a19e2fe43239338d4c6e1d0d4346a5aa | Java | Prashant203/dr_auto | /app/src/main/java/com/example/dr_auto/Login/Register_1.java | UTF-8 | 3,918 | 1.976563 | 2 | [] | no_license | package com.example.dr_auto.Login;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.databinding.DataBindingUtil;
... | true |
007f8d29683841de5811c34b950d9e1e5983e60f | Java | ontop/ontop | /engine/reformulation/core/src/main/java/it/unibz/inf/ontop/answering/reformulation/rewriting/impl/DummyRewriter.java | UTF-8 | 7,545 | 1.796875 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | package it.unibz.inf.ontop.answering.reformulation.rewriting.impl;
/*
* #%L
* ontop-reformulation-core
* %%
* Copyright (C) 2009 - 2014 Free University of Bozen-Bolzano
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | true |
6d1ca6000c6684b4d9ffefba7319658bdc003895 | Java | Jioji1321/bankWeb | /src/java/cn/com/ultrawise/bank/bnk/dao/hibernate/BnkBankDaoHibernate.java | UTF-8 | 1,288 | 2.375 | 2 | [] | no_license | package cn.com.ultrawise.bank.bnk.dao.hibernate;
import java.util.ArrayList;
import java.util.List;
import cn.com.ultrawise.bank.bnk.dao.BnkBankDao;
import cn.com.ultrawise.bank.bnk.model.BnkBank;
import cn.com.ultrawise.bank.dao.hibernate.BaseDaoHibernate;
/**
* @author zhouxing email:admin@zhouxing.org
*
*/
pu... | true |
288d0569b1da0acba8f37f1845ba197fdf4fdcf9 | Java | qinxiangyangnet/design | /src/main/java/com/yangyue/design/template/example2/NomalLogin.java | UTF-8 | 813 | 2.625 | 3 | [] | no_license | package com.yangyue.design.template.example2;
/**
* @program: design
* @description:
* @author: yueyang
* @create: 2020-02-29 10:15
**/
public class NomalLogin {
public boolean login(LoginModel loginModel) {
UserModel userModel = this.findUserByUserId(loginModel.getUserId());
if(userModel!=nu... | true |
9c3fa8b1368de8c63d01a3f9e4aec660266c49b2 | Java | sub-rat/AndroidTrainingAll | /src/com/gdg/androidtraining/database/DatabaseActivity.java | UTF-8 | 4,870 | 2.484375 | 2 | [] | no_license | package com.gdg.androidtraining.database;
import java.util.List;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.preference.Pr... | true |
aca2c452d3e130ec6cec39f6d78c21953576d6ee | Java | P79N6A/icse_20_user_study | /methods/Method_1001646.java | UTF-8 | 550 | 2.828125 | 3 | [] | no_license | private Line2D.Double change(Line2D.Double line,Point2D p1,Point2D p2){
if (line.getP1().equals(p1) == false && line.getP2().equals(p2) == false) {
return line;
}
final double dx=line.x2 - line.x1;
final double dy=line.y2 - line.y1;
if (line.getP1().equals(p1)) {
p1=new Point2D.Double(line.x1 + dx / 1... | true |
be7fd46426e1dfc695209fb365202ad3b14d050e | Java | naveenanimation20/DecSessionSeleniumCode | /src/main/java/WebDriverSessions/TitleSync.java | UTF-8 | 1,213 | 2.265625 | 2 | [] | no_license | package WebDriverSessions;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class TitleSync {... | true |
07ed82b35994c3e7fd890627c08b51a86150f0b2 | Java | williamtanws/beanframework | /bin/modules/backoffice/src/main/java/com/beanframework/backoffice/config/BackofficeConfig.java | UTF-8 | 887 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.beanframework.backoffice.config;
import javax.servlet.ServletContext;
import javax.servlet.ServletRegistration;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.WebApplicationInitializer;
import org.springframework.web.context.support.XmlWebApplicationContex... | true |
3aa8070ca367e2c480603d955d7d9b52ceb4e471 | Java | bibikar/hacktx16 | /src/hacktx16/PlayState.java | UTF-8 | 1,939 | 2.71875 | 3 | [] | no_license | package hacktx16;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics2D;
import hacktx16.entity.Player;
import hacktx16.map.Camera;
import hacktx16.map.Map;
import hacktx16.map.Platform;
import hacktx16.map.PlatformLoader;
public class PlayState extends GameState {
Dimension dim... | true |
28099103b94de1d5f07eea2c33373729c92230a2 | Java | stephen-gao/reimuBlog | /src/main/java/com/reimu/service/impl/CategoryServiceImpl.java | UTF-8 | 909 | 1.953125 | 2 | [] | no_license | package com.reimu.service.impl;
import com.reimu.entity.Category;
import com.reimu.dao.CategoryMapper;
import com.reimu.service.ICategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.reimu.utils.ShortIdUtil;
import org.springframework.beans.factory.annotation.Value;
import org... | true |
4be6261c214943189c786b20ff783a58734a346c | Java | cloudwebsoft/ywoa | /c-common/src/main/java/com/cloudwebsoft/framework/security/ProtectFormConfig.java | UTF-8 | 4,402 | 2.3125 | 2 | [] | no_license | package com.cloudwebsoft.framework.security;
import cn.js.fan.cache.jcs.RMCache;
import cn.js.fan.util.StrUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.Logger;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jdo... | true |
394c7e25cde9c98179fdb3e8a1074e32e9c67a17 | Java | kmilo9999/CS1971 | /src/fxengine/PathFinding/NodeComparator.java | UTF-8 | 223 | 2 | 2 | [] | no_license | package fxengine.PathFinding;
import java.util.Comparator;
public class NodeComparator implements Comparable<Node>{
@Override
public int compareTo(Node o) {
// TODO Auto-generated method stub
return 0;
}
} | true |
5856b19a5757056a9037566b40ae8891b7fd033d | Java | l1ghtsword/developer-exercise | /src/main/java/ca/braelor/l1ghtsword/assignment/events/PlayerCookingEvent.java | UTF-8 | 689 | 2.65625 | 3 | [] | no_license | package ca.braelor.l1ghtsword.assignment.events;
import ca.braelor.l1ghtsword.assignment.model.enums.Item;
import net.gameslabs.api.Player;
import net.gameslabs.api.PlayerEvent;
/**
* Event used to request an item be cooked by player.
* This event will not inform player success of failure, that is
* managed by Coo... | true |
beeb4393107009561082d1a52fccfdb99dd6924b | Java | katayohe/fhir-java-lambda | /src/main/java/example/pojo/patient/Meta.java | UTF-8 | 863 | 2.125 | 2 | [] | no_license |
package example.pojo.patient;
import java.util.List;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Meta {
@SerializedName("versionId")
@Expose
private String versionId;
@SerializedName("tag")
@Expose
private List<Tag> tag = null;
... | true |
ae11a3f41fe0e4eccf1c1211c8798f6fa3fc57ea | Java | aa215166671/Ywg | /app/src/main/java/com/kyun/android/baisibudejie/pro/essense/view/essence_all/BB_file/adapter/JianZhiHolder.java | UTF-8 | 797 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package com.kyun.android.baisibudejie.pro.essense.view.essence_all.BB_file.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import com.kyun.android.baisibudejie.R;
import com.kyun.android.baisibudejie.pro.essense.view.es... | true |