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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d6e6cc2ff4e28d51f24e365ae9f897ff24932253 | Java | iantal/AndroidPermissions | /apks/malware/app50/source/com/shoufu/receiver/AppReceiver.java | UTF-8 | 2,832 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.shoufu.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundExceptio... | true |
d4b47ac801bc5d9abfea49ce2eaa3a8032c703e4 | Java | excelzhenyu/lgMachine | /src/main/java/com/k2data/platform/modules/lg/common/entity/LgDeviceMapLine.java | UTF-8 | 1,208 | 2.125 | 2 | [] | no_license | /**
* Copyright © 2016 <a href="https://www.k2data.com.cn">K2DATA</a> All rights reserved.
*/
package com.k2data.platform.modules.lg.common.entity;
import java.util.List;
/**
* 地图轨迹实体
* @author K2DATA.wsguo
* @date Jun 24, 2016 12:29:11 PM
*
*/
public class LgDeviceMapLine {
private String device;
... | true |
673a9ad7bf56d2666382fc9d368a8a21e6ea46b2 | Java | anLA7856/rocketmq-learn | /rocketmq-sample/src/main/java/com/anla/rocketmqlearn/sample/broadcast/BroadcastProducer.java | UTF-8 | 1,102 | 2.296875 | 2 | [] | no_license | package com.anla.rocketmqlearn.sample.broadcast;
import com.anla.rocketmqlearn.sample.config.SampleConstant;
import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.apache.rocketmq.client.producer.SendResult;
import org.apache.rocketmq.common.message.Message;
import org.apache.rocketmq.remoting.common... | true |
e020004a10847bbc52c0793ed0f0d9576bb9483d | Java | Buggy97/iot-city-mon | /core-collector/src/Iot/Mqtt/MqttQueue.java | UTF-8 | 1,381 | 2.953125 | 3 | [] | no_license | package Iot.Mqtt;
import Iot.Pair;
import java.io.Serializable;
import java.util.Optional;
import java.util.concurrent.ConcurrentLinkedQueue;
public class MqttQueue
{
private ConcurrentLinkedQueue<Pair<String, Serializable>> _queue;
private final Object _lock;
private boolean _locked;
public MqttQue... | true |
4fc39abe1e9eb6813a451005c04c5bd173e6d43f | Java | Shamim48/FCI | /app/src/main/java/com/example/fci/myapp_1/ThirteenbatchCST.java | UTF-8 | 5,325 | 1.898438 | 2 | [] | no_license | package com.example.fci.myapp_1;
import android.Manifest;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.support.v4.app.ActivityCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
imp... | true |
870cb963408bbc36eff58171a22b0fff77edf42f | Java | P79N6A/zlqb | /nyd-cash-pay/nyd-cash-pay-service/src/main/java/com/creativearts/nyd/pay/service/zzl/helibao/HelibaoEntrustedLoanServiceImpl.java | UTF-8 | 27,341 | 1.515625 | 2 | [] | no_license | package com.creativearts.nyd.pay.service.zzl.helibao;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
import org.apache.commons.httpclient.HttpStatus;
import org.... | true |
64328a5ea24e713d780f9b45ecbd3b2e0613bda2 | Java | hyogij/Algorithm | /leetcode.com/Day10.ValidPalindrome/src/leetCode/ValidPalindrome.java | UTF-8 | 3,218 | 3.921875 | 4 | [] | no_license | package leetCode;
/*
==========================================================
Author : Hyogi Jung(hyogij@gmail.com)
Date : 2015.07.16
Question Number : 45
Link : https://leetcode.com/problems/valid-palindrome/
==========================================================
*/
public class ValidPalindrome {
/*
*... | true |
9028297ca9f9323f8a0fc536bfa149deafb3853b | Java | gitter-badger/higgs | /higgs-data-web/src/test/java/io/vilada/higgs/data/web/controller/service/v2/transaction/SnapshotServiceTest.java | UTF-8 | 2,943 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 The Higgs Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | true |
0ec36220e139537e7202f495eaaea0cc79b6fbf5 | Java | JeremyYin1996/SSM | /RDI/src/main/java/com/sqc/dao/TempMapper.java | UTF-8 | 831 | 1.820313 | 2 | [] | no_license | package com.sqc.dao;
import com.sqc.bean.Temp;
import com.sqc.bean.TempExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TempMapper {
long countByExample(TempExample example);
int deleteByExample(TempExample example);
int deleteByPrimaryKey(Long id);
int i... | true |
a1e22464a9b61cad02239ce10ed403686c2f8243 | Java | ChiRenhua/Parking_Lot | /src/com/example/qiniufiletool/FiledownData.java | GB18030 | 1,409 | 2.34375 | 2 | [] | no_license | package com.example.qiniufiletool;
import java.io.File;
public class FiledownData {
//0 ļʼ 1ع_ETagһ¡ɫ¡ 2ع_ETagһ¡ɫ¡ 3ɡɫ¡
int FILEDOWN = 0;
File downfile;
int startIndex;
int endLength;
String fileCode;
String urlString;
String filename;
public FiledownData(File downfile,int startIndex,int endLength,St... | true |
896cf2b35a81996eca88659c90a5cc5b90e01d37 | Java | LouisTech/CMT-219-Algorithms-Exercises | /week4/Login.java | UTF-8 | 1,022 | 3.34375 | 3 | [] | no_license | import java.util.Map;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.HashMap;
public class Login {
public static void main(String[] args) {
System.out.println("Enter username and password");
Scanner input = new Scanner(System.in);
String... | true |
f819f0be596ffd227c9b67774db86233e627d225 | Java | senpure/senpure | /senpure-io/senpure-io-generator/src/main/java/com/senpure/io/generator/executor/JavaExecutor.java | UTF-8 | 8,098 | 2.09375 | 2 | [] | no_license | package com.senpure.io.generator.executor;
import com.senpure.base.util.Assert;
import com.senpure.io.generator.habit.JavaConfig;
import com.senpure.io.generator.model.Bean;
import com.senpure.io.generator.model.Event;
import com.senpure.io.generator.model.Message;
import com.senpure.template.FileUtil;
import com.senp... | true |
32accc8be68748da617449a62ea918655597b6f3 | Java | satee107/WaterBilling | /app/src/main/java/com/example/ammulu/waterbilling/ReportsActivity.java | UTF-8 | 7,888 | 1.765625 | 2 | [] | no_license | package com.example.ammulu.waterbilling;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
impo... | true |
64b2d02966b78a24be338eac8d2adf444c55d51f | Java | scratches/spring-data-gazillions | /src/main/java/hello/service/Customer1371Service.java | UTF-8 | 223 | 1.578125 | 2 | [] | no_license | package hello.service;
import org.springframework.stereotype.Service;
import hello.repo.Customer1371Repository;
@Service
public class Customer1371Service {
public Customer1371Service(Customer1371Repository repo) {
}
}
| true |
ca3af28873f919436cae4c065b5639681a5d066f | Java | hrabur/spring-boot-demo | /src/main/java/bg/proxiad/cours/TenisCounterCongfig.java | UTF-8 | 777 | 2.484375 | 2 | [] | no_license | package bg.proxiad.cours;
public class TenisCounterCongfig {
public static enum TenisRules {
OLD, NEW
}
public static enum GamesNumber {
TWO_OF_THREE, THREE_OF_FIVE
}
private String player1;
private String player2;
private TenisRules rules;
private GamesNumber games;
public String getPlayer1() {
ret... | true |
7c5c931b9b95fd6c96c527ba54a74e80a545980a | Java | reshift-projects/CoElectronicBillsXMLGenerator | /src/main/java/com/mycompany/xmlgenerator/DigitalSignature.java | UTF-8 | 2,755 | 2.359375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.xmlgenerator;
/**
*
* @author diana
*/
public class DigitalSignature implements Element{
private String s... | true |
ec9443453d7e8fd68f4dae053402c70d2244519c | Java | hritikrafale/Dest | /dest-main/Triway/src/triway/ProgressMonitorE.java | UTF-8 | 14,883 | 2.203125 | 2 | [
"MIT"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package triway;
/**
* @author SSN
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.Def... | true |
0eb0b90b9aea0bffd8b771c697b8c3cf199455a4 | Java | ryselis/atf | /atf-eplug/src/eu/atac/atf/test/metadata/MethodObjectRepository.java | UTF-8 | 817 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | package eu.atac.atf.test.metadata;
import java.util.ArrayList;
import java.util.List;
import eu.atac.atf.main.ATFException;
public class MethodObjectRepository {
private int id = 10000;
private List<SVariable> variables = new ArrayList<SVariable>();
public boolean existByName(String name){
for (int i = 0; i... | true |
69c4939799e0c6c630a92cc0e2f6981f52213350 | Java | 1028504131/java | /AuthManage/src/test/test.java | UTF-8 | 765 | 1.921875 | 2 | [] | no_license | package test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.ssm.auth.dao.RoleMapper;
import com.ssm.auth.dao.UserInfoMapper;
import com.ssm.auth.vo.Use... | true |
fe620704cff591c28e4b8363d6e408ff308e8e5f | Java | Hoplophile/Street-racing | /app/src/main/java/com/example/piotr/streetracing/MainFragment.java | UTF-8 | 9,239 | 1.695313 | 2 | [] | no_license | package com.example.piotr.streetracing;
import android.content.Context;
import android.graphics.Camera;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.Fragment;
import android.view.La... | true |
e8c00dd3377af1c08316b7b8d3187ae46d4a434f | Java | arteesian/Java-Zadania | /src/com/company/devices/LPG.java | UTF-8 | 322 | 2.609375 | 3 | [] | no_license | package com.company.devices;
public class LPG extends Car{
public LPG(String producer, String model, Double value, Integer yearOfProduction) {
super(producer, model, value, yearOfProduction);
}
@Override
public void refuel() {
System.out.println("The car got refueled with gas");
}
... | true |
eca9798922f7a7a009025fe61e9f7f5b27ea7333 | Java | rrrrrr111/codility-examples | /codility-solutions/src/main/java/ru/roman/task/pramp/MoveZerosToEnd.java | UTF-8 | 1,260 | 3.859375 | 4 | [] | no_license | package ru.roman.task.pramp;
import java.util.Arrays;
/**
* Move Zeros To End
* Given a static-sized array of integers arr, move all zeroes in the array to the end of the array. You should preserve the relative order of items in the array.
* <p>
* We should implement a solution that is more efficient than a naive... | true |
412de6b9ecbff1e370f4317d52419bb53a2af7bd | Java | drexpp/DP-Hackathon-Acme-Usera | /Acme-Usera/src/main/java/domain/Advertisement.java | UTF-8 | 1,853 | 2.28125 | 2 | [] | no_license | package domain;
import java.util.Collection;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import org.hibernate... | true |
89527e5330a56f9ea4de888a71c9afa47de4eefc | Java | fahrydgt/idoctor | /src/model/medicine.java | UTF-8 | 414 | 2.515625 | 3 | [] | no_license | package model;
public class medicine {
private String name;
private String capacity;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getCapacity() {
return capacity;
}
... | true |
6e680a0dd9eb0b48d4f6d2433658b013bbf49e93 | Java | chochim/RobotFace | /app/src/main/java/in/huhuba/robot/FullscreenActivity.java | UTF-8 | 11,034 | 2.203125 | 2 | [] | no_license | package in.huhuba.robot;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionE... | true |
bfac86bcaabc769ac89d56344c191876f0465325 | Java | suanyuan/WAREWMS_JAVA | /wms-service/src/main/java/com/wms/vo/DocMtDetailsVO.java | UTF-8 | 1,750 | 1.570313 | 2 | [] | no_license | package com.wms.vo;
import com.alibaba.fastjson.annotation.JSONField;
import com.wms.entity.*;
import lombok.Data;
@Data
public class DocMtDetailsVO {
private String mtno;
private long mtlineno;
private String linestatus;
private String customerid;
private String sku;
private String inventoryage;
private Stri... | true |
bc42e543468f40b22bb061fbcfee60a6df3b2e00 | Java | thomas-risi/cpe-2021-3ics-poo_filrouge-2 | /Projet_Java_Atelier2_Bon_Corriger.zip_expanded/POO_FilRouge_Atelier1/atelier1/checkersGameModel/AbstractComparaison.java | UTF-8 | 601 | 3 | 3 | [] | no_license | package atelier1.checkersGameModel;
import java.util.Comparator;
public abstract class AbstractComparaison implements Comparator<PieceModel> {
@Override
public int compare (PieceModel piece1, PieceModel piece2) {
int comparaison = 0;
if(true) {
comparaison = piece2.getCoord().getLigne() - piece1.g... | true |
b8ab399b7712cb183f11da2fb3bba68674a776f2 | Java | lucuy/xiakee-market | /.svn/pristine/70/70a95ef6e57fe8cf06449d954b482f16ffeea85a.svn-base | UTF-8 | 2,923 | 2.28125 | 2 | [] | no_license | package com.xiakee.service.urm;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.security.authentication.dao.DaoAuthenticationProvider;
import org.springframework.security.core.userdetails.UserD... | true |
2d1a6cebf83a8f6577f3f60d134fccac603affeb | Java | mobilewebguru/appboy-android-sdk | /wear-library/src/main/java/com/appboy/wear/enums/Gender.java | UTF-8 | 116 | 2.09375 | 2 | [] | no_license | package com.appboy.wear.enums;
/**
* Convenience enum to represent gender.
*/
public enum Gender{
MALE,FEMALE
} | true |
5c28d922d31e170da4abb9853086dfc9cb91fbe1 | Java | OLskrain/AggregatorNews | /app/src/main/java/com/olskrain/aggregatornews/presentation/presenter/NewsListFragmentPresenter.java | UTF-8 | 5,238 | 2.078125 | 2 | [] | no_license | package com.olskrain.aggregatornews.presentation.presenter;
import android.annotation.SuppressLint;
import com.olskrain.aggregatornews.Common.Command;
import com.olskrain.aggregatornews.abctractFactory.FactoryProvider;
import com.olskrain.aggregatornews.domain.entities.ItemNew;
import com.olskrain.aggregatornews.doma... | true |
42761e306526d2f368d6dcd79bd44f349be1e857 | Java | sruan2/five-hundred-card-game | /src/comp303/fivehundred/gui/GameRunner.java | UTF-8 | 6,527 | 2.75 | 3 | [] | no_license | package comp303.fivehundred.gui;
import comp303.fivehundred.ai.IPlayer;
import comp303.fivehundred.ai.advanced.AdvancedRobot;
import comp303.fivehundred.ai.basic.BasicRobot;
import comp303.fivehundred.ai.human.HumanPlayer;
import comp303.fivehundred.ai.random.RandomRobot;
import comp303.fivehundred.engine.GameE... | true |
2081150a855e4fae3fb9450b58f813ee768e4134 | Java | cuitianyun0718/idea | /curry/cty/src/com/Day1_13/Student.java | UTF-8 | 650 | 3.09375 | 3 | [] | no_license | package com.Day1_13;
/**
* @Author:cty
* @Date:2019/1/13 14:06
* @Description:不负自己
*/
public class Student {
// 先给一些Student类的属性
private String name;
private String age;
private String sex;
// 给他设置一些公共方法可以被调用
public String getName(){
return name;
}
public String getSex() {
... | true |
1e891a8374590a8c4736625277ef6d6b1d1c3d59 | Java | GrantCampell/Lab12 | /DrawFrame.java | UTF-8 | 4,150 | 3.5 | 4 | [] | no_license |
import java.awt.Color;
import java.awt.Point;
import java.io.IOException;
import javax.swing.JFrame;
/**
* This class extends JFrame and contains the main entry point for the program.
*
* @author CS2334. Modified by: Stephen
* @version 2018-04-02 Lab 11
*/
public class DrawFrame extends JFrame
{
/**
*... | true |
5dec39f1473323fe0ccff231342ca0fccc819900 | Java | chenxinxiang/chen | /yingjia/src/main/java/com/cornucopia/service/UserPasswordDao.java | UTF-8 | 138 | 1.679688 | 2 | [] | no_license | package com.cornucopia.service;
public interface UserPasswordDao {
public void updateUserPassword(String user_name,String ps);
}
| true |
b318153925e632312b94fe7e181ff75752bb7d16 | Java | AdonisRothchild/leetcode | /2021-01/src/com/adonis/until/UnionFind.java | UTF-8 | 1,125 | 3.046875 | 3 | [] | no_license | package com.adonis.until;
/**
* 并查集
*/
public class UnionFind
{
private final int[] parents;
private final int[] ranks;
private int setCount;
public int getSetCount()
{
return setCount;
}
public void setSetCount(int setCount)
{
this.setCount = setCount;
}
pu... | true |
4efc8bc4cbe382e7ccaacc5051f279d53a94a848 | Java | zuowenhai-mfw/firstProject | /src/light/mvc/controller/basic/PaymentController.java | UTF-8 | 2,372 | 2.09375 | 2 | [] | no_license | package light.mvc.controller.basic;
import javax.servlet.http.HttpServletRequest;
import light.mvc.framework.exception.ServiceException;
import light.mvc.framework.tool.Grid;
import light.mvc.framework.tool.Json;
import light.mvc.framework.tool.PageFilter;
import light.mvc.framework.web.BaseController;
import light.m... | true |
a09974f829cbd842e9b71029c3974a6c04f49966 | Java | Chukwuemeka18/Terriost-Watch-2.0 | /Main.java | UTF-8 | 2,157 | 3.5625 | 4 | [] | no_license | import java.util.Scanner;
import java.io.FileInputStream;
import java.io.IOException;
class Main {
public static void main (String[] args) throws IOException {
FileInputStream fileByteStream = null; // File input stream
Scanner inFS = null; // Scanner object
String fileNum1;... | true |
0f1ca09c277400bc2d44e9a75cb032b223881315 | Java | liamjdonlan/iCode-Student-Mods | /kareem/lucky_block/src/main/java/net/mcreator/luckyblock/procedures/GhastSwordLivingEntityIsHitWithToolProcedure.java | UTF-8 | 841 | 2.15625 | 2 | [] | no_license | package net.mcreator.luckyblock.procedures;
import net.minecraft.entity.Entity;
import net.mcreator.luckyblock.LuckyBlockModElements;
import net.mcreator.luckyblock.LuckyBlockMod;
import java.util.Map;
@LuckyBlockModElements.ModElement.Tag
public class GhastSwordLivingEntityIsHitWithToolProcedure extends LuckyBlock... | true |
f53c19fda350bb6df0e193d61a13e2d12ba987ae | Java | kubamarchwicki/nfj-masterclazz-service | /app/src/main/java/com/example/service/domain/DomainConfiguration.java | UTF-8 | 616 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.example.service.domain;
import com.example.service.gateway.audit.GovAuditServiceClient;
import com.example.service.gateway.customers.CustomerDetailsClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
class DomainConfigurat... | true |
7ef25b19064c0c2489b1e678a763faa54d0af735 | Java | kamwoh/SimpleChatbotInJava | /src/chatbot/engine/math/MathFunction.java | UTF-8 | 1,307 | 2.734375 | 3 | [] | no_license | package chatbot.engine.math;
public class MathFunction {
private static FindingPowRootExp fr = new FindingPowRootExp();
public static double sqrt(double x) {
return Math.sqrt(x);
// return fr.newtonFindRt(x, 2);
}
public static double pow(double x, int n) {
return Math.pow(x, n... | true |
2a82286de3e66ead737a9733df4f9d0ec628ce85 | Java | xiaosong-git/InternetContrSer | /src/main/java/com/uppermac/service/impl/HCNetSDKServiceImpl.java | UTF-8 | 51,929 | 1.726563 | 2 | [] | no_license | package com.uppermac.service.impl;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.text.DateFormat;
import java.text.ParseExceptio... | true |
e914a14a054e2da941083bbe05664527b2b90664 | Java | noelcurtis/allegro | /src/main/java/com/noelcurtis/allegro/WordPairer.java | UTF-8 | 1,493 | 3.4375 | 3 | [] | no_license | package com.noelcurtis.allegro;
import com.google.common.base.Strings;
import com.google.gson.Gson;
import java.util.HashSet;
import java.util.Set;
public class WordPairer implements Runnable
{
private final String _operator;
// using a Set here with the assumption that there is a
// constraint on not hav... | true |
9fee92406ea30699839c5d60a223500c7809a9dc | Java | Yulika19/lab_6 | /src/Yul/Server/commands/SumOfStudentsCountCommand.java | UTF-8 | 671 | 2.453125 | 2 | [] | no_license | package Yul.Server.commands;
import Yul.General.general.AbstractCommand;
import Yul.Server.collection.CollectionManager;
public class SumOfStudentsCountCommand extends AbstractCommand {
private final CollectionManager collectionManager;
public SumOfStudentsCountCommand(CollectionManager colle... | true |
632d49d842f9019ccf81cc14993afcc40b44f1fb | Java | dgrebowiec/counter-words | /backend/src/main/java/pl/dgrebowiec/counterwords/repository/LearnRepository.java | UTF-8 | 391 | 1.90625 | 2 | [] | no_license | package pl.dgrebowiec.counterwords.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import pl.dgrebowiec.counterwords.domain.entity.Learn;
/**
* User: mgalezewska
* Date: 2016-02-20
*/
@Repository
public interface LearnRepository extends Jp... | true |
abea814a2dc7406e23d09d49b6609dfb341fac20 | Java | chenjian-520/sparkDemo | /data-engine/src/main/java/com/foxconn/dpm/common/executor/FilterExecutor.java | UTF-8 | 259 | 1.6875 | 2 | [] | no_license | package com.foxconn.dpm.common.executor;
import org.apache.spark.api.java.JavaRDD;
/**
* @Author HY
* @Date 2020/6/28 13:58
* @Description TODO
*/
public interface FilterExecutor {
<T> JavaRDD<T> doFilter(JavaRDD<T> params, Class<T> classType);
}
| true |
97144900a6c6009796d13e1aef82e830de202e12 | Java | sudar8760/SampleProgram | /src/interview/MethodOverride.java | UTF-8 | 592 | 2.890625 | 3 | [] | no_license | package interview;
public class MethodOverride extends MethodOverload {
@Override
public void empId(String name) {
System.out.println("String name:"+name);
super.empId(name);
}
@Override
public void empId(int id, long mobile) {
System.out.println("int id:"+id+"long mobile:"+mobile);
super.empId(id... | true |
4fb85df6b6ddc60361d27fba20b5c0900b36988e | Java | Yikeji/CloudDemo | /CloudCode/src/com/yldlsy/test/Director.java | UTF-8 | 382 | 2.515625 | 3 | [] | no_license | package com.yldlsy.test;
/**
* 导演者角色
*/
public class Director {
private Builder builder;
/**
* 产品构造方法,负责调用各个零件的调用方法
*/
public void construct(){
ConcreteBuilder1 builder = new ConcreteBuilder1();
builder.buildPart1();
builder.buildPart2();
builder.retrieveResult... | true |
caea46582cf3e566f949deec6b481e67abe285fe | Java | joooker195/JSP1 | /src/src/java/Tools/CreateDb.java | UTF-8 | 1,494 | 2.328125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package src.java.Tools;
import src.java.db.DataAccessObject;
import java.sql.SQLException;
import java.util.ArrayList;
import src.jav... | true |
3dd81fc68c8387d079727d667bd735dc59f6836c | Java | xuehung/xuehung.github.io | /leetcode/009_easy_PalindromeNumber.java | UTF-8 | 400 | 2.765625 | 3 | [] | no_license | // Importance: xx
class Solution {
public boolean isPalindrome(int x) {
if (x >= 0 && x < 10) return true;
if (x < 0 || x % 10 == 0) return false;
int half = 0;
while (half < x) {
half = half * 10 + x % 10;
x /= 10;
... | true |
b9a8ffd63e069910221a48941e6eccbfc7679c35 | Java | oualaeddine/GestionFastFood | /GestionFastFood/src/main/java/dz/dzDevs/GestionFastFood/Service/CustomerServiceImpl.java | UTF-8 | 782 | 1.90625 | 2 | [] | no_license | package dz.dzDevs.GestionFastFood.Service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import dz.dzDevs.GestionFastFood.Entity.Command;
import dz.dzDevs.GestionFastFood.Entity.User;
@Service("CustomerService")
@Transactional
public class Cus... | true |
2f554b7baad64cd8aed260b5f4ab6a91b1e33348 | Java | zqqiang/reading-list | /src/java/gwtDocs/src/com/google/gwt/sample/docs/basics/DelayedLogic.java | UTF-8 | 1,775 | 2.8125 | 3 | [] | no_license | package com.google.gwt.sample.docs.basics;
import com.google.gwt.core.client.GWT;
import com.google.gwt.sample.docs.client.GreetingService;
import com.google.gwt.sample.docs.client.GreetingServiceAsync;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.rpc.AsyncCallback;
public class DelayedL... | true |
f3a6f70f86521b360c0b72aeb96b2ce06683c4f5 | Java | epwqice/shop | /src/main/java/benyi/shop/token/TokenManager.java | UTF-8 | 3,330 | 2.75 | 3 | [] | no_license | package benyi.shop.token;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import org.springframework.util.StringUtils;
import com.auth0.jwt.JWT;
import com.auth0.jwt.JWTVerifier;
import com.auth0.jwt.algorithms.Algorithm;
import com.auth0.jwt.exceptions.AlgorithmMism... | true |
ed8ae2c2c289c508094b45b240d27ddd3158e7b9 | Java | jordivilagut/spring-authentication | /src/main/java/application/controllers/AuthenticationController.java | UTF-8 | 2,789 | 2.75 | 3 | [] | no_license | package application.controllers;
import application.model.User;
import application.services.AuthenticationService;
import application.services.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import ... | true |
83716a8d260a37323d2f66f924fe82c2d9711c14 | Java | Isuru657/Kevin_Bacon | /Graph.java | UTF-8 | 1,745 | 3.296875 | 3 | [] | no_license | /**
* Simple interface for graphs, simplified from Goodrich & Tamassia
* Centered on directed edges, with undirected edges treated as pairs of directed edges
*
* @param <V> the type of vertices
* @param <E> the type of edge labels
* @author Isuru Abeysekara
*/
public interface Graph<V,E> {
/** How many vertic... | true |
8a726246d7408b65cf095ff1c8913a9dde5fba2a | Java | fulvio999/jxmlutil | /jxmlutil/src/main/java/jxmutil/business/logic/ApplyXPATHexpression.java | UTF-8 | 3,935 | 2.671875 | 3 | [] | no_license | package jxmutil.business.logic;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import j... | true |
2d42573ad7a932d73301c5cf2fea15e1c1e8477e | Java | nihanabaci/ShareARide_OOP | /src/main/java/com/ride_share/sar/report/Report.java | UTF-8 | 1,339 | 2.203125 | 2 | [] | no_license | package com.ride_share.sar.report;
import java.util.List;
import javax.xml.bind.annotation.XmlRootElement;
import com.ride_share.sar.rides.Ride;
@XmlRootElement
public class Report {
private long pid = 0;
private String name;
private String start_date;
private String end_date;
private int rides;
private List<D... | true |
81fd62f8bde2f2183c5e5e9ef486bbbc89c1d01f | Java | huangdu94/myTank | /src/main/java/work/huangdu/mytank/action/GameFrame.java | UTF-8 | 4,334 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package work.huangdu.mytank.action;
import work.huangdu.mytank.loader.GameMapLoader;
import work.huangdu.mytank.constant.GameConstant;
import work.huangdu.mytank.element.Hero;
import work.huangdu.mytank.loader.PropertiesLoader;
import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt... | true |
d6af85c4a5d1e1bb267078d6c6bd1c4da6e1a407 | Java | sowndaraperumal/Bridelabz_Projects | /BridgeLab/spring-master/spring-master/SpringBasic/src/test/java/com/bridgeit/aop/Aop.java | UTF-8 | 704 | 2.390625 | 2 | [] | no_license | package com.bridgeit.aop;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Aop {
public static void main(String[] args) {
/*ApplicationContext context=new AnnotationConfigApplicationContext(AopConfig.class);
Operation o... | true |
26ae6eb89f30b840b14a51ec9a3694a4f2f7b6f2 | Java | ksander301/hibernateProject | /ru/lesson/hibernate/dao/PublisherDAO.java | UTF-8 | 397 | 2.140625 | 2 | [] | no_license | package ru.lesson.hibernate.dao;
import ru.lesson.hibernate.model.Book;
import ru.lesson.hibernate.model.Publisher;
import java.util.List;
public interface PublisherDAO {
Publisher getPublisherById(Long id);
void deletePublisher(Long id);
Publisher savePublisher(Publisher publisher);
List<Publishe... | true |
8c819521e5957f82ed59532a56c4916c4e838d93 | Java | zjBoy/springboot-cms | /src/main/java/com/leecp/jpa/controller/LoginController.java | UTF-8 | 2,414 | 2.3125 | 2 | [] | no_license | package com.leecp.jpa.controller;
import com.leecp.jpa.common.base.Result;
import com.leecp.jpa.model.User;
import com.leecp.jpa.service.UserService;
import com.leecp.jpa.vo.UserVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spring... | true |
f0282c6ad71a74cb6d951798c7cf30bc25df69b3 | Java | omarbrahmi/Gestion-Bancaire-master | /src/main/java/tn/esprit/repository/CompteRepository.java | UTF-8 | 1,038 | 1.953125 | 2 | [] | no_license | package tn.esprit.repository;
import java.util.List;
import javax.websocket.server.PathParam;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Reposit... | true |
ec89ff8f05abaa5c624ddc341dddb4bbce07876b | Java | testvidya11/java-toolkit | /projects/typetools/src/main/java/org/nohope/typetools/JSON.java | UTF-8 | 3,684 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package org.nohope.typetools;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.introspect.VisibilityChecker;
import com.fasterxml.jackson.datatype.joda.JodaModule;
import org.nohope.logging.Logger;
import org.nohope.logging.LoggerFactory;
import org.nohope.typetools.json.ColorM... | true |
6e636a765c8581129aeca4486e598a43f43c3a7e | Java | zhouzhibiao2718/laozhou | /src/main/java/com/maizuo/web/controller/IndexController.java | UTF-8 | 1,521 | 2.21875 | 2 | [] | no_license | package com.maizuo.web.controller;
/**
* Created by Table on 14-2-31.
*/
import com.maizuo.domain.Result;
import com.maizuo.entity.User;
import com.maizuo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.... | true |
6bc9d6ec03086645286d3caecb474690b74fb5f9 | Java | cbidici/CIMHbys | /src/main/java/com/cimstd/hbys/controller/api/BaseApiCtrl.java | UTF-8 | 1,429 | 2.125 | 2 | [] | no_license | package com.cimstd.hbys.controller.api;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldEr... | true |
30c952104c6afc4639c9ac05b55a3654faf1143a | Java | ozgurtayfur/CodeVolley | /app/src/main/java/com/sonradersin/codevolley/CodeVolley/CodeVolley.java | UTF-8 | 2,335 | 2.21875 | 2 | [] | no_license | package com.sonradersin.codevolley.CodeVolley;
import android.content.Context;
import android.util.Log;
import com.android.volley.NetworkResponse;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.HttpHeaderParser;
impo... | true |
4d04c746524f7f3e9e38f709bb086560fd1bf7ec | Java | chenshun131/CloudNote | /src/main/java/com/chenshun/studyapp/task/SendEmailTask.java | UTF-8 | 2,877 | 2.625 | 3 | [] | no_license | package com.chenshun.studyapp.task;
import com.chenshun.component.exception.ServiceException;
import com.chenshun.utils.spring.SpringContextHolder;
import freemarker.template.Template;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.spring... | true |
91e1e2c2f9906a76aa6ae1e2385691dd320dadfc | Java | RudBob/leetcode | /work/monitor-master/leetcode/src/tag/string/reverseVowels.java | UTF-8 | 1,236 | 3.59375 | 4 | [] | no_license | package tag.string;
/**
* @ClassName reverseVowels
* @Description TODO
* @Author 任耀
* @Date 2019/1/21 22:13
* @Version 1.0
*/
public class reverseVowels {
public String reverseVowels(String s) {
if(s.length() == 0){
return s;
}
char[] chars = s.toCharArray();
int h... | true |
52997372bc72beead0c1b41757de2e6121b35157 | Java | GuilhermeRodriguesSantos/ProjetoMawe | /ProjetoMawe/src/main/java/com/Mawe/ProjetoIntegrador/DTO/CategoriaDTO.java | UTF-8 | 576 | 2.203125 | 2 | [] | no_license |
package com.Mawe.ProjetoIntegrador.DTO;
import javax.validation.constraints.NotEmpty;
public class CategoriaDTO {
private int categoriaRanking;
@NotEmpty(message = "Não pode ser nulo!")
private String categoriaDoacao;
public int getCategoriaRanking() {
return categoriaRanking;
}
public void setCategoria... | true |
9cc28ddee4efc9153cca37d8d4bddcedce33e474 | Java | ACMFramework/ACMF | /src/framework/artefactRepresentation/TypeComponent.java | UTF-8 | 904 | 2.59375 | 3 | [] | no_license | package framework.artefactRepresentation;
/**
*
*
*/
public abstract class TypeComponent extends ObjectOrientedElement implements ITypeComponent
{
private String variableType;
public String getVariableType()
{
return variableType;
}
public void setVariableType(String variableType)
{
this.variableTyp... | true |
d5e09d99871feb45b41fb20ba9f4913249d9464b | Java | Aldhafara/sdacademy-examples | /19_kolekcje/src/main/java/pl/sdacademy/Cwiczenia/App.java | UTF-8 | 797 | 3.125 | 3 | [] | no_license | package pl.sdacademy.Cwiczenia;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class App {
public static void main(String[] args) {
List<String> napisy = new ArrayList<>();
napisy.add("Ala");
napisy.add("ma");
napisy.add("kota");
List<Integer> liczby = new ArrayList<>(... | true |
b3361efa30e9a6e6eb088685616ecab8b01f7187 | Java | joslynSmall/yq-xocde | /src/main/java/com/yq/xcode/security/entity/query/Criterion.java | UTF-8 | 193 | 1.632813 | 2 | [] | no_license | package com.yq.xcode.security.entity.query;
public interface Criterion {
public void appendToJpaQuery(JpaQueryBuilder builder);
public void appendToSqlQuery(JpaQueryBuilder builder);
}
| true |
47a5bb31af0aae719635c062c1c28c7e7890d0a9 | Java | ZOUANI/-ecom-back-v2 | /src/main/java/ma/zs/generated/ws/rest/provided/vo/OperationStockTypeVo.java | UTF-8 | 1,067 | 2.03125 | 2 | [] | no_license | package ma.zs.generated.ws.rest.provided.vo;
public class OperationStockTypeVo {
private String label ;
private String code ;
private String id ;
private String codeMax ;
private String codeMin ;
public OperationStockTypeVo(){
super();
}
public String get... | true |
e95a2989a14b80adfcb60ff4b24944dc197fe442 | Java | hungmans6779/Java-Web-integration-development | /xfire1.2.6/src/com/webservice/signature/PasswordHandler.java | BIG5 | 1,494 | 2.875 | 3 | [] | no_license | package com.webservice.signature;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.security.auth.callback.Callback;
import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
import org.apache.ws.security.WSPassword... | true |
1b3576be443566743137218689bd4f9da38aec06 | Java | jbwang0106/concurrency | /src/main/java/com/jbwang/concurrency/example/singleton/SingletonExample01.java | UTF-8 | 532 | 2.640625 | 3 | [] | no_license | package com.jbwang.concurrency.example.singleton;
import com.jbwang.concurrency.annoations.NotThreadSafe;
/**
* @author: jbwang0106
* @description: 懒汉式的单例模式
* @create: 2018-06-07 22:07
**/
@NotThreadSafe
public class SingletonExample01 {
private SingletonExample01() {}
private static SingletonExample01... | true |
ff1628330e9cd1537b234b02c0c08a005d0a9829 | Java | DennisCheung/nxft | /n00/nxft-common-ui/src/main/java/com/wit/fxp/nxft/personpage/section/PersonPageRightPartParams.java | UTF-8 | 616 | 1.75 | 2 | [] | no_license | package com.wit.fxp.nxft.personpage.section;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.BuilderCall;
@Data
@NoArgsConstructor
@AllArgsConstructor
@BuilderCall
public class PersonPageRightPartParams {
/**
* 客户id
*/
private String ... | true |
fd62477c37f47c8d1eb0f4527f5f1d7b3f7bd725 | Java | YaYi0805/JAVA | /JavaLab/src/interFace/Product.java | UTF-8 | 1,053 | 3.171875 | 3 | [] | no_license | package interFace;
import java.util.Date;
import java.util.GregorianCalendar;
public abstract class Product {//有抽象必為抽象類別
//抽象類別不一定會有抽象方法
//**public abstract void calc();
// public static final double TAX = 0.05;
public static final double TAX;
static {//只會執行一次
TAX = 0.05;
System.out.println("static b... | true |
8b73e17d6281b668be3c647e516a04083cd270ef | Java | francs1/DesignPatterns | /Behavioral/ChainofResponsibility/ConcreteHandlerC.java | UTF-8 | 459 | 3.0625 | 3 | [] | no_license | package Behavioral.ChainofResponsibility;
public class ConcreteHandlerC extends Handler {
@Override
public void handleRequest(String request) {
// TODO Auto-generated method stub
System.out.println("C接受任务");
if (request == "C") {
System.out.println("任务已经由<" + this.getClass().getName() + ">处理");
} else {
... | true |
39902ea871f1b29e853d144d75214b654c5539a0 | Java | nghianh993/CMS_VNP | /src/main/java/vn/fis/cms/configs/SessionListener.java | UTF-8 | 380 | 1.859375 | 2 | [] | no_license | package vn.fis.cms.configs;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class SessionListener implements HttpSessionListener {
@Override
public void sessionCreated(HttpSessionEvent event) {
event.getSession().setMaxInactiveInterval(30 * 60);
}
@Override
p... | true |
aef31173066286b59cd3dfdd20f185a15f6c5d56 | Java | LazyInsomaniac/Android | /Notification/ForegroundServiceSTOP/app/src/main/java/com/sambhav/foregroundservicestop/MainActivity.java | UTF-8 | 1,643 | 2.203125 | 2 | [] | no_license |
package com.sambhav.foregroundservicestop;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends... | true |
da814d737f751a5dc43058f48298f56bc0acc5c6 | Java | skyarland/logger | /app/src/main/java/com/letsdoit/logger/data/dao/ActivityInterval.java | UTF-8 | 2,798 | 2.71875 | 3 | [] | no_license | package com.letsdoit.logger.data.dao;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import org.joda.time.DateTime;
import org.joda.time.Duration;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;
import java.util.Iterator;
import java.ut... | true |
a3d6c2df015e326fbda597f1625e0a4b18653fac | Java | pauybs/2021-dikkat-algi-merkezi | /src/main/java/com/example/template/sevices/SubTestService.java | UTF-8 | 1,181 | 1.976563 | 2 | [] | no_license | package com.example.template.sevices;
import com.example.template.GlobalVariables;
import com.example.template.model.user.SubTest;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;
import java.util.List;
import ... | true |
3107ee8026ca5fe5d4eb1b95c2989b3139dfa491 | Java | Mikkel94/TDT4180-prototype | /src/oving5/ProfilController.java | UTF-8 | 1,830 | 2.3125 | 2 | [] | no_license | package oving5;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ToggleButton;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
public class ProfilController extends MenuController {
@FXML private Button btnNiva, btnGodta... | true |
162ecd61df671659728df1245e48f2533b3e8058 | Java | thefangbear/RooBot2017 | /src/main/java/org/usfirst/frc/team4373/robot/RobotMap.java | UTF-8 | 679 | 2.625 | 3 | [] | no_license | package org.usfirst.frc.team4373.robot;
/**
* RobotMap holds various constants.
* @author Henry Pitcairn
*/
public class RobotMap {
// Joystick axes and buttons
public static final int JOYSTICK_FORWARD_AXIS = 1;
public static final int JOYSTICK_HORIZONTAL_AXIS = 2;
public static final int JOYSTICK_T... | true |
fc7eb061359f2553911c0a730728d6a59b32fe60 | Java | tyhjh/DesignMode | /code/src/state/Registed.java | UTF-8 | 351 | 2.328125 | 2 | [] | no_license | package state;
public class Registed implements OperateState {
@Override
public void share() {
System.out.println("分享到朋友圈成功");
}
@Override
public void like() {
System.out.println("点赞成功");
}
@Override
public void collect() {
System.out.println("收藏成功");
}
}
| true |
c0617c986ac2654e54fb539c238585e15b4c2c46 | Java | TotalCross/tc-issues | /src/main/java/tcissues/issues/Issue_397.java | UTF-8 | 1,548 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package tcissues.issues;
import tcissues.BaseIssue;
import totalcross.sys.Settings;
import totalcross.ui.Container;
import totalcross.ui.Edit;
import totalcross.ui.Label;
import totalcross.ui.ScrollContainer;
import totalcross.ui.gfx.Color;
public class Issue_397 extends BaseIssue {
Container header = null;
Contai... | true |
f1f7288b035848ac61f4bdd9d07947a047ccd4de | Java | sp-jaume-palencia/game-jam | /test/core/src/com/test/network/model/NetRoom.java | UTF-8 | 1,697 | 2.546875 | 3 | [] | no_license | package com.test.network.model;
import com.badlogic.gdx.utils.TimeUtils;
import com.test.data.GameState;
import com.test.data.MapState;
import com.test.systems.RootSystem;
public class NetRoom
{
int id;
public int players[];
int numPlayers;
long initTimestamp;
public int currentTurn;
public int currentPlayer;
... | true |
e9433cec82dcaafbdd7a8440ad0760838d11c05c | Java | alauda/configuration-as-code-plugin | /plugin/src/main/java/io/jenkins/plugins/casc/yaml/YamlUtils.java | UTF-8 | 2,654 | 2.34375 | 2 | [
"MIT"
] | permissive | package io.jenkins.plugins.casc.yaml;
import io.jenkins.plugins.casc.ConfigurationAsCode;
import io.jenkins.plugins.casc.ConfiguratorException;
import io.jenkins.plugins.casc.model.Mapping;
import io.jenkins.plugins.casc.snakeyaml.composer.Composer;
import io.jenkins.plugins.casc.snakeyaml.nodes.Node;
import io.jenkin... | true |
68e3814818d8bb54cc06f8321f8bed314f16c3d5 | Java | P79N6A/icse_20_user_study | /methods/Method_18736.java | UTF-8 | 582 | 2.03125 | 2 | [] | no_license | @Nullable static TypeName getReturnType(PsiClass psiClass){
PsiAnnotation eventAnnotation=AnnotationUtil.findAnnotation(psiClass,"com.facebook.litho.annotations.Event");
PsiNameValuePair returnTypePair=AnnotationUtil.findDeclaredAttribute(eventAnnotation,"returnType");
if (returnTypePair == null) {
return Typ... | true |
53e62eb01870f14900188fbbd751bb750d3a6e7d | Java | EBI-IntAct/intact-editor | /src/main/java/uk/ac/ebi/intact/editor/util/FlashScope.java | UTF-8 | 1,748 | 1.898438 | 2 | [
"CC-BY-4.0"
] | permissive | /**
* Copyright 2010 The European Bioinformatics Institute, and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | true |
18af686958a4efc32393c904d00d3feab67d2954 | Java | InverseBlade/SecondHand | /src/main/java/com/zzw/secondhand/service/CategoryService.java | UTF-8 | 857 | 1.976563 | 2 | [] | no_license | package com.zzw.secondhand.service;
import com.zzw.secondhand.dto.CategoryDTO;
import com.zzw.secondhand.po.Category;
import com.zzw.secondhand.util.JsonRes;
import java.util.List;
public interface CategoryService {
/**
* 获取分类列表
*
* @return json
*/
JsonRes<List<CategoryDTO>> list();
... | true |
cf44d0b1aa3a074846a66e99c788efb80d542664 | Java | LiuKW/SystemDispatch | /src/main/java/event/impl/StatusChangeEvent.java | UTF-8 | 289 | 1.914063 | 2 | [] | no_license | package event.impl;
import event.Event;
import lombok.AllArgsConstructor;
import lombok.Data;
import struct.PCB;
@AllArgsConstructor
@Data
public class StatusChangeEvent implements Event<PCB> {
private PCB pcb;
@Override
public PCB getSource() {
return pcb;
}
}
| true |
d72f6f9dcea43f9e595345474f25d6ed15ac2bd2 | Java | sw402f19/Ardu3K | /src/exception/factory/FullCollectorException.java | UTF-8 | 332 | 2.28125 | 2 | [
"MIT"
] | permissive | package exception.factory;
import java.util.ArrayList;
public class FullCollectorException extends SemanticException{
public FullCollectorException() {
}
public FullCollectorException(String message) {
super(message);
}
public FullCollectorException(Throwable cause) {
super(caus... | true |
1922f9b6bac498fcf8013f5a0a2a93f62355f0a0 | Java | zsrr/android-clean-architecture-demo | /app/src/main/java/com/stephen/friendsnotebook/data/FriendIdBundle.java | UTF-8 | 293 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | package com.stephen.friendsnotebook.data;
/**
* Created by StephenZhang on 2017/5/7.
*/
public class FriendIdBundle {
public final Friend friend;
public final long id;
public FriendIdBundle(Friend friend, long id) {
this.friend = friend;
this.id = id;
}
}
| true |
cb6e179e3f620b251f83928bf499eead03ae325b | Java | Skorpien/songVotes | /src/main/java/com/coreServices/Songs/domain/Category.java | UTF-8 | 1,038 | 3.015625 | 3 | [] | no_license | package com.coreServices.Songs.domain;
import javax.xml.bind.annotation.XmlEnum;
@XmlEnum
public enum Category {
ROCK("Rock"),
METAL("Metal"),
HIPHOP("HipHop"),
BLUES("Blues"),
JAZZ("Jazz"),
COUNTRY("Country"),
SOUL("Soul"),
DANCE("Dance"),
ALTERNATIVE("Alternative"),
RNB("R&B"... | true |
80632a01af41457ed70d2b5daa009e20ee41d7d9 | Java | taotao365s/mbpay | /mpbase/src/main/java/com/tangdi/production/mpbase/util/MoneyUtils.java | UTF-8 | 5,903 | 3.203125 | 3 | [] | no_license | package com.tangdi.production.mpbase.util;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import org.apache.commons.lang.math.NumberUtils;
/**
* 金额转换类
*
* @author limiao
*
*/
public class MoneyUtils {
/**
* 金额 元 格式转换对象
*/
public static DecimalFormat FORMAT_YUAN = new Dec... | true |
2a3af5e3416a1d7f30b94f0a5b54e27513c04bc9 | Java | lnnn1982/leetJava | /src/leetCode/GoogleTestQuestion.java | UTF-8 | 16,941 | 3.015625 | 3 | [] | no_license | package leetCode;
import java.util.*;
public class GoogleTestQuestion {
static public class CarPeopleMatchProblem {
int maxX = Integer.MIN_VALUE;
int minX = Integer.MAX_VALUE;
int maxY = Integer.MIN_VALUE;
int minY = Integer.MAX_VALUE;
int minDistance = Integer.MAX_VALUE;
List<List<int ... | true |
0f0f092d672831c11513ef9350e3ff46b32601c7 | Java | diyiliu/myWS | /src/main/java/com/diyiliu/Main.java | UTF-8 | 640 | 2.203125 | 2 | [] | no_license | package com.diyiliu;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* Description: Main
* Author: DIYILIU
* Update: 2016-01-15 17:15
*/
public class Main {
public static void main(String[] args) {
/**
Stri... | true |
0ed38154c4f4cc3919bc14a633df599ac45f3a9c | Java | xudongstorm/algorithm020 | /Week1/MergeArray.java | UTF-8 | 839 | 3.265625 | 3 | [] | no_license | package firstweek;
/**
* 88. 合并两个有序数组
*/
public class MergeArray {
public void merge(int[] nums1, int m, int[] nums2, int n) {
if(m<=0 && n<=0){
return;
}
if(m<=0){
for(int i=0; i<nums2.length; i++){
nums1[i] = nums2[i];
}
r... | true |
5f5a717565073142974c9e83ec9f910097df400b | Java | JardelBrandon/katyusco_lpoo | /Cap.5/5.5/JavaApplication5.5/src/Questao3/Empresa.java | UTF-8 | 621 | 3.203125 | 3 | [] | no_license | /*
3) Crie uma classe TestaEmpresa que possuirá um método main. Dentro dele crie algumas instâncias de
Funcionario e passe para a empresa pelo método adiciona. Repare que antes você vai precisar criar a
array, pois inicialmente o atributo empregados da classe Empresa não referencia lugar nenhum (seu valor
é null):
*/
... | true |
fc501ac80bc8f729a245b458b6daa5d88270ab56 | Java | allegea/TopCoder | /src/AdditionGame.java | UTF-8 | 1,145 | 3.109375 | 3 | [] | no_license | import java.util.*;
public class AdditionGame {
public int getMaximumPoints(int A, int B, int C, int N) {
int res = 0;
int may = A;
for(int i=0; i< N;i++)
{
if(A>=B && A>=C )
{ res+=A;
A--;
}
else if(B>=A && B>=C )
... | true |