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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
258d0cfbc2334ec5ee61483ea79174059e850609 | Java | eniomoura/cs-2019-01 | /aula-08/inteiro/src/main/java/com/github/eniomoura/ufg/cs/aula08/inteiro/InteiroCLI.java | UTF-8 | 1,781 | 3.359375 | 3 | [] | no_license | package com.github.eniomoura.ufg.cs.aula08.inteiro;
import java.io.File;
import java.io.IOException;
import org.apache.commons.codec.binary.Hex;
/**
* Classe contendo os processamentos necessários para input e output
* da linha de comando para o uso do programa.
*/
public final class InteiroCLI {
... | true |
e792f2fcb11c4d00a1495a91864134081fba270b | Java | TarasTkhir/TestTaskBusinessStatistic | /src/main/java/com/testtask/demo/domain/Purchase.java | UTF-8 | 781 | 2.390625 | 2 | [] | no_license | package com.testtask.demo.domain;
import lombok.*;
import javax.persistence.*;
import java.time.LocalDate;
@Entity
@Table(name = "purchases")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Purchase {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
... | true |
82d94871b10748ead9b242d372f745a9d2f79ff0 | Java | OxyEho/HttpClients-Java | /src/main/java/bechmark/BenchmarkClients.java | UTF-8 | 2,972 | 2.203125 | 2 | [] | no_license | package bechmark;
import clients.*;
import org.openjdk.jmh.annotations.*;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
//@Threads(value = 1)
//@Measurement(iterations = 1000)
//@Fork(value = 1, warmups = 1)
//@BenchmarkMode(Mode.SingleShotTime)
//@OutputTimeUnit(TimeUnit.MILLISECONDS)
//@Warmup(ite... | true |
ec349796551c09818cd2b0e838a8b3b92f552fe5 | Java | techlearner/usermanagement | /src/main/java/com/teleportcall/config/AppConfiguration.java | UTF-8 | 2,665 | 2.046875 | 2 | [] | no_license | package com.teleportcall.config;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.dozer.DozerBeanMapper;
import org.hibernate.ConnectionReleaseMode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.spri... | true |
a29c51cf9570c9e2c5bb3cd05342ac6976d2e6e4 | Java | GhostNwa/election-eva-admin | /admin/admin-settlement/src/main/java/no/valg/eva/admin/settlement/domain/model/strategy/ProcessCandidateRanksForElectionWithRenumbering.java | UTF-8 | 3,356 | 2.53125 | 3 | [] | no_license | package no.valg.eva.admin.settlement.domain.model.strategy;
import static com.codepoetics.protonpack.StreamUtils.groupRuns;
import static java.util.stream.Collectors.toList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import j... | true |
377980ed0f9b41b35242bd0c777f2ecdc50a3e86 | Java | moutainhigh/fiancee-center | /ledger/src/main/java/com/njwd/ledger/cloudclient/BankAccountFeignClient.java | UTF-8 | 355 | 1.515625 | 2 | [] | no_license | package com.njwd.ledger.cloudclient;
import com.njwd.basedata.api.BankAccountApi;
import org.springframework.cloud.openfeign.FeignClient;
/**
* @Author lj
* @Description 银行账户
* @Date:10:43 2019/8/20
**/
@FeignClient(name = "base-data", contextId = "BankAccountFeignClient")
public interface BankAccountFeignClient ... | true |
aaee7a093f7caa5075fc06f501f0025a332d856d | Java | tiagoadmstz/JMemoria7 | /src/jmemoria7/PainelBotoes.java | UTF-8 | 7,538 | 2.421875 | 2 | [
"MIT"
] | permissive | package jmemoria7;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
//======================================
public final c... | true |
17c3db17c44d7779aab44a32ad020e65a9a5dbab | Java | huang-jie1990/Skqing | /docs/java-application/springboot-demo/demo-logger/src/main/java/com/springboot/demo/logger/DemoLoggerApplication.java | UTF-8 | 459 | 1.890625 | 2 | [
"LicenseRef-scancode-mulanpsl-2.0-en",
"MulanPSL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.springboot.demo.logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* http://www.itmuch.com/work/simple-standard-log/
* http://www.itmuch.com/spring-boot/change-logger-level/
*
*/
@SpringBootApplication
public class DemoLo... | true |
fc50eb856aa23ff3fbc412b1e976690b56c3b9b5 | Java | shindhu/LearningDiary | /src/Servlets/SignupServlet.java | UTF-8 | 2,893 | 2.390625 | 2 | [] | no_license | package Servlets;
import java.io.IOException;
import java.sql.SQLException;
import javax.annotation.Resource;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Http... | true |
9bcf4417d737bd09b0e47b2cf0a651b555c2f48a | Java | ALTRAXEN/Spring-SpringMVC-Mybatis | /src/main/java/com/hisen/service/impl/UserServiceImpl.java | UTF-8 | 665 | 2.125 | 2 | [] | no_license | package com.hisen.service.impl;
import com.hisen.dao.ReaderLoginDao;
import com.hisen.entity.ReaderLogin;
import com.hisen.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class UserServiceImpl im... | true |
5b11a0deeb8363601df49ae2e14549217028db46 | Java | tenchlite/tenchliteclient | /runelite-client/src/main/java/net/runelite/client/plugins/tobstats/Raid.java | UTF-8 | 987 | 2.15625 | 2 | [
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | package net.runelite.client.plugins.tobstats;
import lombok.Data;
import org.sql2o.Connection;
@Data
class Raid implements DatabaseObject
{
private int id;
// rooms
private Integer maiden_id = null;
private Integer bloat_id = null;
private Integer nylocas_id = null;
private Integer sotetseg_id = null;
private... | true |
6693ed61270afbbcf2478073d1dc4c8699f8f516 | Java | czw168/CT | /src/main/java/cn/ubot/mapper/generator/LtcMapper.java | UTF-8 | 1,001 | 1.882813 | 2 | [] | no_license | package cn.ubot.mapper.generator;
import cn.ubot.pojo.generator.Ltc;
import cn.ubot.pojo.generator.LtcExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LtcMapper {
long countByExample(LtcExample example);
int deleteByExample(LtcExample example);
int deleteByPri... | true |
0935fd084595fd7906ff22c9e0ea7318cc27cdfc | Java | drowinternet/mage | /Mage/src/main/java/mage/filter/predicate/other/PermanentCanTargetPermanentId.java | UTF-8 | 931 | 2.390625 | 2 | [
"MIT"
] | permissive |
package mage.filter.predicate.other;
import java.util.UUID;
import mage.filter.predicate.Predicate;
import mage.game.Game;
import mage.game.permanent.Permanent;
import mage.target.Target;
/**
*
* @author LevelIX
*/
public class PermanentCanTargetPermanentId implements Predicate<Permanent> {
private final UUI... | true |
37a9b2f3dcf13650533b02a23b3f20e33ac4b138 | Java | VirusIII/Telichko_Ivtb12_lr8_2 | /RAFileDemo.java | UTF-8 | 3,845 | 3.453125 | 3 | [] | no_license | import java.io.*;
import java.util.Random;
public class RAFileDemo{
public static void main (String args[]) {
int n=7, m=5; String t="boolean"; //9 матриц 3 x 3, тип boolean
File f1=new File("Matr/matr_"+n+"_"+m+"_"+t+".bin"); //файл
System.out.println ("В файл выводятся "+n+" матриц "+m+"x"+m+
... | true |
7d539edff5fbfd21a06b4f74f5d4eb397cee94eb | Java | badrulme/accounts-management-system | /src/main/java/com/nahalit/nahalapimanager/dao/AuthRepo.java | UTF-8 | 2,406 | 2.09375 | 2 | [] | no_license | package com.nahalit.nahalapimanager.dao;
import com.nahalit.nahalapimanager.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stere... | true |
a99c9f9d06bcd2cddd894b7040918189071fdb0c | Java | licc168/concurrent | /concur/src-basesource/basesource/storage/FormatDefinition.java | UTF-8 | 1,756 | 2.6875 | 3 | [
"BSD-3-Clause"
] | permissive | package basesource.storage;
import basesource.anno.Resource;
import utils.StringUtils;
import java.io.File;
/**
* 格式信息定义
*
* @author frank
*/
public class FormatDefinition {
public final static String FILE_SPLIT = ".";
public final static String FILE_PATH = File.separator;
private final St... | true |
ef91fc7501d69e792765aa4b1f2177c69b300f79 | Java | Inyanga/Protozoa | /core/src/com/inyanga/protozoa/Timer.java | UTF-8 | 767 | 2.546875 | 3 | [] | no_license | package com.inyanga.protozoa;
import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.utils.TimeUtils;
/**
* Created by Pavel Shakhtarin on 24.05.2018.
*/
public final class Timer {
public static float cyclePosition(long initialTime, float period) {
return elapsedPeriods(initialTime, period) %... | true |
d0dbb7c5a3ff9de3ae9a68b4d2b8269d7d787851 | Java | Bekz7/design-patterns | /src/main/java/pl/bekz/factories/fruitmarket_abstractfactory/fruits/BloodOrange.java | UTF-8 | 193 | 2.265625 | 2 | [] | no_license | package pl.bekz.factories.fruitmarket_abstractfactory.fruits;
public class BloodOrange implements Orange {
@Override
public String toString() {
return "Blood Orange";
}
}
| true |
49c424eb0d19bd73bf25f0a54c1f1bb5328fb137 | Java | RyanTech/aliprint | /src/main/java/com/elivoa/aliprint/data/APIResponse.java | UTF-8 | 4,348 | 2.765625 | 3 | [] | no_license | package com.elivoa.aliprint.data;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;
import com.elivoa.aliprint.entity.AliOldResult;
import com.google.common.collect.Lists;
public class APIRespon... | true |
3972d657c9ec2344cb57f78441e33fca270af23d | Java | karasova/DoctorPlus | /app/src/main/java/com/example/doctorplus/ClosedCallsActivity.java | UTF-8 | 3,620 | 2.109375 | 2 | [] | no_license | package com.example.doctorplus;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ListView;
import com.google.gson.Gson;
import java.i... | true |
89b7e06cdad2e8d2477a6fdf7d594c7982a872e9 | Java | IMustBeMad/Vapi-DSL | /src/main/java/vapidsl/dict/TerminationMode.java | UTF-8 | 1,281 | 2.546875 | 3 | [
"MIT"
] | permissive | package vapidsl.dict;
import vapidsl.common.ConditionCluster;
import vapidsl.domain.ConditionBinder;
/**
* The {@code TerminationMode} enum represents a mode
* that should be used while performing validation.
* <p>
* Depends on {@link PurposeMode} and {@link MatchMode} combination.
*/
public enum TerminationMode... | true |
35ac6b06e067ab646b67e4e3cec9df9806dbedb0 | Java | MisterMorales/CrudHeroes | /src/main/java/com/example/heroes/service/HeroService.java | UTF-8 | 1,403 | 2.28125 | 2 | [] | no_license | package com.example.heroes.service;
import java.util.List;
import java.util.Optional;
import com.example.heroes.annotation.Timer;
import com.example.heroes.converter.HeroConverter;
import com.example.heroes.entity.Hero;
import com.example.heroes.model.HeroDTO;
import com.example.heroes.repository.IHeroRepository;
im... | true |
76aafde6b8cdf0c5f7df4a8726492921f20306df | Java | ojy95/study | /Main_B_9019_DSLR.java | UTF-8 | 1,631 | 2.953125 | 3 | [] | no_license | package Solution_B_1005_ACM_Craft;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.LinkedList;
import java.util.Queue;
import java.util.StringTokenizer;
public class Main_B_9019_DSLR {
static int A,B;
static boolean check[];
public static vo... | true |
d8f3a9a0a784ce1f8d4b4ddd381b06c45e596b85 | Java | hemenp/l7 | /pgc-portlet/pgc-portlet/docroot/WEB-INF/src/com/dsi/intranet/pgc/persistence/documentum/writers/BlockInfoWriter.java | WINDOWS-1252 | 802 | 1.953125 | 2 | [] | no_license | /**
* Copyright 2011 DAIICHI SANKYO COMPANY, LIMITED. All Rights Reserved.
*/
package com.dsi.intranet.pgc.persistence.documentum.writers;
import com.dsi.intranet.pgc.persistence.documentum.DocumentumRequest;
import com.dsi.intranet.pgc.persistence.documentum.IRequestWriter;
import com.dsi.intranet.pgc.portlet.mode... | true |
15dd05e79d55d7a5b3b36b6e5634fae10b4dff93 | Java | lihaiteng/selfwdkj | /app/src/main/java/zztest/nettyudpdemo/Netty2Activity.java | UTF-8 | 1,738 | 2.265625 | 2 | [] | no_license | package zztest.nettyudpdemo;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.view.View;
import com.turui.yuncheng.... | true |
5184274b49382cba8edf49f1620f57b28b15ebb5 | Java | rodLouzada/Hotel | /2bim/src/HospedagemDAO.java | UTF-8 | 9,004 | 2.5 | 2 | [] | no_license | import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class HospedagemDAO {... | true |
2907bbd61776f5dacaf4b5516366e9964287aaae | Java | wenguang/coldstart | /coldstart-java-rearend/src/main/java/com/dvs/rearend/service/CmsArticleTagServiceImpl.java | UTF-8 | 956 | 1.742188 | 2 | [] | no_license | package com.dvs.rearend.service;
import com.dvs.rearend.common.annotation.BaseService;
import com.dvs.rearend.common.base.BaseServiceImpl;
import com.dvs.rearend.dao.mapper.CmsArticleTagMapper;
import com.dvs.rearend.dao.model.CmsArticleTag;
import com.dvs.rearend.dao.model.CmsArticleTagExample;
import org.slf4j.Logge... | true |
0004877fe804bb905f0f1f207fdfd29d1468bb8b | Java | DanielW33/ChatModifiers | /ChatModifiers/src/me/MuchDan/ChatModifiers/Commands/TabCompleters/setChatTabCompleter.java | UTF-8 | 2,133 | 2.71875 | 3 | [] | no_license | package me.MuchDan.ChatModifiers.Commands.TabCompleters;
import me.MuchDan.ChatModifiers.ChatModifiers;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.util.StringUtil;
import java.util.ArrayList;
import java.util.Arrays;
import jav... | true |
2b1288aa3952eff5c8c7e739d18528abf3aa7838 | Java | hyn110/shiro-training | /src/main/java/com/fmi110/service/IRoleService.java | UTF-8 | 1,505 | 2.1875 | 2 | [] | no_license | package com.fmi110.service;
import com.baomidou.mybatisplus.service.IService;
import com.fmi110.commons.result.PageBean;
import com.fmi110.model.Role;
import java.util.List;
import java.util.Map;
import java.util.Set;
public interface IRoleService extends IService<Role> {
// void selectDataGrid(PageBean pageInfo)... | true |
f7ebfd3015ed1036145cc2a478ae46b7025696be | Java | jjarenas34/microservices_saga | /kafka/order-service/src/main/java/com/example/kafka/order/entity/PurchaseOrder.java | UTF-8 | 666 | 2.140625 | 2 | [] | no_license | package com.example.kafka.order.entity;
import com.example.kafka.commons.event.OrderStatus;
import com.example.kafka.commons.event.PaymentStatus;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
@Entity
@Table(name = "PURCHASE_ORDER_TBL")
@Data
@AllAr... | true |
ab8cf06a7ff21888ee9b741084f9f81818840f52 | Java | rust89/News | /app/src/main/java/ru/sike/lada/services/updaters/BaseUpdater.java | UTF-8 | 1,389 | 2.40625 | 2 | [] | no_license | package ru.sike.lada.services.updaters;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public abstract class BaseUpdater... | true |
7a0a81a2e00cf13d4bbf5fcf3cd10f3a7c70954c | Java | yamahachou/Daily_Coding | /src/Merge_two_sorted_lists.java | UTF-8 | 1,347 | 3.421875 | 3 | [] | no_license | /**
* Created by yamahachou on 2019/3/13.
*/
public class Merge_two_sorted_lists {
static class ListNode{
int val;
ListNode next;
ListNode(int val){
this.val = val;
}
}
public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {
ListNode dummyHead... | true |
76b7e7eedb61ba2dd8df7dac7fc89bb9d7549ae0 | Java | masinew/spring-test | /src/main/java/com/masinew/spring/annotation/config/AnnotationPropertyConfig.java | UTF-8 | 1,472 | 2.015625 | 2 | [] | no_license | package com.masinew.spring.annotation.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotati... | true |
30690f7bc0346ebb666d68c98f20c1ef86a9a8bb | Java | artur-augustyniak/sequencing-rules | /src/main/java/pl/aaugustyniak/sequencing/alg/SimpleQueue.java | UTF-8 | 202 | 2.375 | 2 | [
"MIT"
] | permissive | package pl.aaugustyniak.sequencing.alg;
/**
* @author artur
*/
interface SimpleQueue<T> extends Iterable<T> {
void enqueue(T item);
T dequeue();
boolean isEmpty();
int size();
} | true |
97cca055168da7dad01fe6d82c5b316b78628fbb | Java | AlexShtarbev/jtorrent | /src/main/java/com/jtorrent/messaging/message/RequestMessage.java | UTF-8 | 2,088 | 2.765625 | 3 | [] | no_license | package com.jtorrent.messaging.message;
import java.nio.ByteBuffer;
import com.jtorrent.storage.PieceRepository;
import com.jtorrent.torrent.TorrentSession;
public class RequestMessage extends Message {
/** Default block size is 2^14 bytes, or 16kB. */
public static final int DEFAULT_REQUEST_SIZE = 1638... | true |
81ffa7b58866f9922fefa898ac1a12c9be2d1a1a | Java | wadeveloper2020/TiketApp | /app/src/main/java/com/example/tikets/SplashAct.java | UTF-8 | 2,053 | 2 | 2 | [] | no_license | package com.example.tikets;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
im... | true |
14dc460e45e74d0f30ed5b459958a914fb6c979e | Java | jeezhau/ec-client | /src/main/java/com/mofangyouxuan/common/SysParam.java | UTF-8 | 1,256 | 2.203125 | 2 | [] | no_license | package com.mofangyouxuan.common;
import java.util.Map;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import com.mofangyouxuan.service.SysParamService;
@Component
public class SysParam {
private static Map<String,String> SYS_Param_Map = null;
privat... | true |
5d005d5a53119aca11b418df9a6d9975bf753e7a | Java | uwrov/2018-2019 | /control/lib/pi4j-1.2/pi4j-1.2/examples/RPIServoBlasterExample.java | UTF-8 | 2,153 | 2.390625 | 2 | [
"BSD-2-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: Java Examples
* FILENAME : RPIServoBlasterExample.java
*
* This file is part of the Pi4J project. More information about
* this project can be found here: http://www.pi4j.c... | true |
7784a29cad7ffd7230e76e448cb6de9a767799c1 | Java | Kiree/Mufasa | /src/test/java/StringUtilityTest.java | UTF-8 | 1,335 | 2.921875 | 3 | [] | no_license | import org.junit.Before;
import org.junit.Test;
import util.StringUtility;
import static junit.framework.TestCase.assertTrue;
import static org.junit.Assert.assertFalse;
/**
* @author Petteri Salonurmi
*
* StringUtilityTest
* Unit tests for the String Utilities
*
*/
public class StringUtilityTest {
private... | true |
15ebd4ec83818028fd50b5426c613d3c7e1b8390 | Java | longlong-2l/myDLPU | /app/src/main/java/com/surpassli/www/myapp/support/adapter/TagCloudViewAdapter.java | UTF-8 | 3,143 | 2.40625 | 2 | [] | no_license | package com.surpassli.www.myapp.support.adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.moxun.tagcloudlib.view.TagsAdapter;
import com... | true |
95d064743a88f2ae3a669e43fb6ab26919d2616b | Java | HongbinW/Java | /learn_java/src/basic/IO/TestOtherStream.java | UTF-8 | 6,267 | 3.78125 | 4 | [] | no_license | package basic.IO;
import org.junit.Test;
import java.io.*;
public class TestOtherStream {
/*
转换流:InputStreamReader OutputStreamWriter
解码:字节数组---->字符串
编码:字符串---->字节数组
System.in 是字节流
*/
@Test
public void test1() {
BufferedReader br = null;//进一步提升效率
Bu... | true |
b702be4b7db11e88deb90217528d7edc7858324f | Java | leTeng/spring-action | /spring-ioc/src/main/java/com/eTeng/autowired/ambiguity/bean/impl/Dog.java | UTF-8 | 293 | 2.296875 | 2 | [] | no_license | package com.eTeng.autowired.ambiguity.bean.impl;
import com.eTeng.autowired.ambiguity.bean.interfaces.Animal;
/**
* @FileName Dog.java
* @Author eTeng
* @Date 2018/10/30 16:22
* @Description
*/
public class Dog implements Animal{
public int getLegCount(){
return 4;
}
}
| true |
9c851e076061cdbf90b8985bca5427d794981c16 | Java | munquasimalam/configclient | /src/main/java/com/mm/configclient/GreetingController.java | UTF-8 | 906 | 1.929688 | 2 | [] | no_license | package com.mm.configclient;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.Ge... | true |
0f5b1df06710e06a700eef944c4113836cfc4574 | Java | pdhoot/QuiCAR | /QuiCAR-Android/app/src/main/java/in/co/sdslabs/quickr/AdsCollection.java | UTF-8 | 423 | 2.296875 | 2 | [] | no_license | package in.co.sdslabs.quickr;
import java.util.*;
/**
* Created by pdh1596 on 13/9/15.
*/
public class AdsCollection {
private Map<MyItem, Ads> adMap;
public AdsCollection() {
adMap = new HashMap<MyItem , Ads>();
}
public void addMappedItem(MyItem markerItem, Ads ad) {
adMap.put(mar... | true |
2c696f317e7485fe73422805c498a9f7dc32c468 | Java | carlossepulveda/expensestracker | /src/main/java/co/sepulveda/web/Main.java | UTF-8 | 606 | 2.03125 | 2 | [] | no_license | package co.sepulveda.web;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
*
* @author Carlos Sepulveda <ca.sepulveda.sanchez@gmail.com>
*/
public class Main {
public static void main(String [] args) {
try {
String[] contextLocations = {
"class... | true |
061e24b5b518270c6a2bb4a0e596db6f6fa0f2a1 | Java | milelu-y/heart | /milelu-service/src/main/java/com/milelu/service/service/evaluate/EvalResultService.java | UTF-8 | 1,327 | 1.742188 | 2 | [
"MIT"
] | permissive | package com.milelu.service.service.evaluate;
import java.util.List;
import com.milelu.common.core.domain.AjaxResult;
import com.milelu.service.domain.EvalResult;
import com.milelu.service.domain.TestResult;
/**
* 得分Service接口
*
* @author MILELU
* @date 2021-03-04
*/
public interface EvalResultService
{
/**
... | true |
52de57d82f14d83f2b0c0cd5dca0f9c1e97f4d44 | Java | iandegroot/quik-trak | /app/src/main/java/com/threehundredpercentbears/quiktrak/models/category/Category.java | UTF-8 | 857 | 2.515625 | 3 | [] | no_license | package com.threehundredpercentbears.quiktrak.models.category;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "categories_table")
public class Category {
@PrimaryKey
private int id;
private String categoryName;
private int rank;
public Category(int id, String c... | true |
ba789e7ef57b6c2ba27e220f6669b84247fdb6a1 | Java | mutouji/testredis | /src/main/java/org/delphy/testredis/Product.java | UTF-8 | 940 | 2.609375 | 3 | [] | no_license | package org.delphy.testredis;
import java.io.Serializable;
public class Product implements Serializable {
public Integer id;
public String name;
public String detail;
public Product(Integer id, String name, String detail) {
this.id = id;
this.name = name;
this.detail = detail;
... | true |
7d003a983779ca0120b8da3b3258dc4866978873 | Java | Sadokmh/Student-app-android | /app/src/main/java/com/example/sadokmm/student/MessageNotifClass.java | UTF-8 | 2,348 | 2.15625 | 2 | [] | no_license | package com.example.sadokmm.student;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.I... | true |
93f0905fa714e55a2e5f5ef9ca0ce5f147f5d047 | Java | ramyasarma/tictactoe | /tictactoe/src/controller/Controller.java | UTF-8 | 623 | 3.3125 | 3 | [] | no_license | /*
The Controller class is responsible for requesting the model
to update its state whenever there is an event on a button on
the game board.
*/
package controller;
import java.util.ArrayList;
import model.*;
public class Controller {
// initializing the reference of model class
private Model m;
public void s... | true |
a019d193967aa500b058913953275d9e76926f4c | Java | Antwan1117/COP3330_giangaspro | /giangaspro_p5/src/MainApp.java | UTF-8 | 1,024 | 3.609375 | 4 | [] | no_license | import java.util.Scanner;
public class MainApp {
public static void main (String [] args) {
int choice;
do {
PrintMenu();
choice = ObtainChoice(3);
if (choice == 1) {
TaskApp.TaskApplication();
}
if (choice == 2) {
... | true |
090e35bf4b1fa6ff66656945d5332b641ca715d2 | Java | windygu/mybackup | /src_note/develop/others/java_src/Exam/FinacingProductSys/src/accp/finacingproduct/dao/BaseDao.java | GB18030 | 1,211 | 2.59375 | 3 | [] | no_license | package accp.finacingproduct.dao;
import java.sql.*;
public class BaseDao {
/**
* sqlserver
*/
static{
try {
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");//com.microsoft.sqlserver.jdbc");
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printS... | true |
7f38f8f9c0cfca55b4a8b9be6f2583ddbf53b6b2 | Java | jijiahui1999/com.java | /src/com/jihe/E6_1.java | GB18030 | 978 | 3.453125 | 3 | [] | no_license | package com.jihe;
import java.util.ArrayList;
import java.util.LinkedList;
public class E6_1 {
public static void main(String[] args) {
ArrayList<String> list=new ArrayList<String>();
list.add("s1");
list.add("s2");
list.add("s3");
list.add("s4");
System.out.println("ϳ"+list.size());
System.out.... | true |
e7bdebb4483e3d0f674fb4cbf49cba1ee49c1e37 | Java | 617076674/LeetCode | /question2114/Solution.java | UTF-8 | 381 | 2.796875 | 3 | [] | no_license | package question2114;
public class Solution {
public int mostWordsFound(String[] sentences) {
int result = 0;
for (String sentence : sentences) {
int temp = 0;
for (int i = 0; i < sentence.length(); i++) {
if (sentence.charAt(i) == ' ') {
temp++;
}
}
result ... | true |
847a8dd3ea142625607147437de2d64cdf141c39 | Java | sashajones/Midterm1 | /Midterm Coding Project/src/main/java/com/cisc181/core/PersonException.java | UTF-8 | 264 | 2.421875 | 2 | [] | no_license | package com.cisc181.core;
public class PersonException extends Exception {
private Person p;
public PersonException(Person p, String Message) {
super(Message);
this.p = p;
}
/**
* @return the p
*/
public Person getP() {
return p;
}
}
| true |
b0ea87dcbb9b65ceef936e00b3ca8ebde5374734 | Java | karnatiravi/reservation-service | /src/main/java/com/reservation/service/PassengerService.java | UTF-8 | 562 | 2.140625 | 2 | [] | no_license | package com.reservation.service;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import com.reservation.dao.PassengerDao;
import com.reservation.entity.Passenger;
@... | true |
6cb76f15eb9f193a2e1b17e93e8905b57ac25d92 | Java | tub-aset/gateplugin-DeepSRLAdapter | /src/main/java/deepSRL/DeepSRL.java | UTF-8 | 1,091 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package deepSRL;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import deepSRL.mapping.Document;
import deepSRL.mapping.Parser;
public class DeepSRL implements Closeable {
private boolean closed = false;
private OutputStream outputStream... | true |
1e398307a4dbdf5a38860f32246aaa78a99b4b91 | Java | KNero/ExOf | /exof/src/main/java/team/balam/exof/module/service/ServiceProvider.java | UTF-8 | 3,733 | 2.25 | 2 | [] | no_license | package team.balam.exof.module.service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import team.balam.exof.db.ServiceInfoDao;
import team.balam.exof.environment.EnvKey;
import team.balam.exof.environment.SystemSetting;
import team.balam.exof.environment.vo.ServiceDirectoryInfo;
import team.balam.e... | true |
03ecb9b0d7312f74750be137c74ed697b2b024ec | Java | project-renard-survey/nwb | /tags/v1.0.0beta/plugins/analysis/edu.iu.iv.attacktolerance/src/edu/iu/iv/attacktolerance/AttackTolerance.java | UTF-8 | 1,240 | 3.1875 | 3 | [] | no_license | package edu.iu.iv.attacktolerance;
import java.util.Iterator;
import edu.uci.ics.jung.algorithms.importance.DegreeDistributionRanker;
import edu.uci.ics.jung.algorithms.importance.NodeRanking;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.Vertex;
/**
* Perform Attack Tolerance Test on the netwo... | true |
e8c74d01569db2d898fb7f4ecb02b7c73f92669f | Java | LiquidMind/hw2-oiskra | /src/main/java/edu/cmu/lti/oaqa/bio/resource_wrapper/ResourceWrapper.java | UTF-8 | 1,604 | 2.828125 | 3 | [] | no_license | package edu.cmu.lti.oaqa.bio.resource_wrapper;
import java.util.Collection;
public interface ResourceWrapper {
/**
* Get the top Term result from the resource.
* The top result is determined by the search function for that resource.
* @param termQuery String to query the resource for
* @return Term object ... | true |
51a652a1391f0ef60bcdb5decad2b9a98d5b6c0b | Java | sun-yifeng/sales | /src/main/java/com/sinosafe/xszc/law/service/impl/LawRateServiceImpl.java | UTF-8 | 19,447 | 1.773438 | 2 | [] | no_license | package com.sinosafe.xszc.law.service.impl;
import static com.sinosafe.xszc.sqlmapper.MapperNameSpace.INSERT_VO;
import static com.sinosafe.xszc.sqlmapper.MapperNameSpace.T_LAW_RATE;
import static com.sinosafe.xszc.sqlmapper.MapperNameSpace.UPDATE_PK_VO;
import static com.sinosafe.xszc.sqlmapper.MapperNameSpace.T_LAW_... | true |
eef0f6e72f650fb110e0d9760a85d34d190185ae | Java | emilyttran/Sorting-Algo-Lab | /src/Sort.java | UTF-8 | 9,645 | 3.09375 | 3 | [] | no_license | import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.util.WorkbookUtil;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.Random;
import static java.lang.Math.t... | true |
548ba957fb7616e99bde0686268cb77f155120dc | Java | gronnmann/ChatPerWorld | /src/io/github/gronnmann/chatperworld/ConfigManager.java | UTF-8 | 1,615 | 2.53125 | 3 | [
"MIT"
] | permissive | package io.github.gronnmann.chatperworld;
import java.io.File;
import java.io.IOException;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.Plugin;
public class ConfigManager {
private ConfigManager(){}... | true |
c77aefd72dec1fddc5b83c2fd08c22446de41385 | Java | pauxus/groovy-cps | /src/main/java/com/cloudbees/groovy/cps/impl/MapBlock.java | UTF-8 | 480 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.cloudbees.groovy.cps.impl;
import com.cloudbees.groovy.cps.Block;
import org.codehaus.groovy.runtime.InvokerHelper;
/**
* [a:b, c:d, e:f, ...]
*
* @author Kohsuke Kawaguchi
*/
public class MapBlock extends CollectionLiteralBlock {
public MapBlock(Block... args) {
super(args);
}
@O... | true |
c11460ea2a0e4062545698b661434becece292c2 | Java | Brramble/SirenBot | /src/main/java/com/jagrosh/jmusicbot/commands/fun/CatCmd.java | UTF-8 | 4,434 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 John Grosh <john.a.grosh@gmail.com>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
9c4ac4a5bda177a960586bb734930be3d4e25109 | Java | oaplatform/oap | /oap-stdlib/src/main/java/oap/testng/ResultAssertion.java | UTF-8 | 3,035 | 2.109375 | 2 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) Open Application Platform Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the r... | true |
030dc800fa72ddd06a5134a762aabb35abdd62e2 | Java | MarlonSdS/POO2SEM | /exercicios.metodos/metodos/Questao4.java | UTF-8 | 1,475 | 3.671875 | 4 | [] | no_license |
package exercicios.metodos;
import java.util.Scanner;
/**
*
* @author Marlon Santana dos S
*/
public class Questao4 {
public static void ordenarValores(int v1,int v2,int v3){
int menor = 0;
int meio = 0;
int maior = 0;
if(v1 > v2 && v1 > v3){
... | true |
60ff62da8addcc45b256ba93df8d7b726107a3c6 | Java | Apptive-dev-10th/ApptiveStudy | /week3/assignment/week3_JangYuri/app/src/main/java/com/example/yuri/myapplication/ListViewAdapter.java | UTF-8 | 2,439 | 2.28125 | 2 | [] | no_license | package com.example.yuri.myapplication;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
import android.os.Build;
import android.support.design.widget.TabLayout;
impo... | true |
33899b8f334d31683f7e5aae275a2c84bdfb3ce7 | Java | 859162000/et-eds-java | /eds/api/src/main/java/com/edaisong/api/service/inter/IMarkService.java | UTF-8 | 925 | 1.8125 | 2 | [] | no_license | package com.edaisong.api.service.inter;
import java.util.List;
import com.edaisong.entity.Mark;
import com.edaisong.entity.common.PagedResponse;
import com.edaisong.entity.common.ResponseBase;
import com.edaisong.entity.req.MarkEditReq;
import com.edaisong.entity.req.MarkReq;
public interface IMarkService {
/**
... | true |
a703dbf2d1db33e5aefe31a3ee231ae75ec3f4a6 | Java | LilyMG/ORMNewExample | /app/src/main/java/com/example/lilit/ormnewexample/User.java | UTF-8 | 1,008 | 2.609375 | 3 | [] | no_license | package com.example.lilit.ormnewexample;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
/**
* Created by Lilit on 5/22/15.
*/
@DatabaseTable(tableName = "users")
public class User {
public User() {
}
@DatabaseField(id = true, generatedId = true)
private I... | true |
b12f8ffc19f1a40a3a5d9c57ffaedbcaec71e91d | Java | jcgay/maven-color | /maven-color-core/src/main/java/com/github/jcgay/maven/color/core/MavenColorException.java | UTF-8 | 275 | 2 | 2 | [
"MIT"
] | permissive | package com.github.jcgay.maven.color.core;
public class MavenColorException extends RuntimeException {
public MavenColorException(String s) {
super(s);
}
public MavenColorException(String s, Throwable throwable) {
super(s, throwable);
}
}
| true |
0cfe021c03fc172d326c2363edcf26837005cc67 | Java | karataymarufemre/p2pEncryptedChatApp | /MyPair.java | UTF-8 | 911 | 2.9375 | 3 | [
"MIT"
] | permissive | import java.io.Serializable;
public class MyPair implements Serializable {
private int code;
private String username;
private byte[] data;
public MyPair(int code,String username, byte[] data) {
this.code=code;
this.username = username;
this.data = data;
}
... | true |
41da10a3b51bcd671cebc8f524fc127d606ec2ff | Java | AndrewLiu/JRebirth | /org.jrebirth/transition/src/main/java/org/jrebirth/transition/slicer/ImageSlicerService.java | UTF-8 | 4,531 | 2.484375 | 2 | [] | no_license | package org.jrebirth.transition.slicer;
import java.util.ArrayList;
import java.util.List;
import javafx.beans.property.IntegerProperty;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.scene.imag... | true |
45e946cf567c2e869f9d3047022258dd888607bb | Java | abhaymane/POMWithJava | /src/main/java/com/qa/crmpro/pages/HomePage.java | UTF-8 | 573 | 2.015625 | 2 | [] | no_license | package com.qa.crmpro.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class HomePage extends BasePage {
public HomePage(WebDriver driver, WebDriverWait wait) {
super(driver, wait);
// TODO Auto-generated constructor stub
}
... | true |
be07bba9fbae02a82ad9614f9fe05233658a0b3f | Java | auxor/android-wear-decompile | /decompiled/org/apache/xalan/templates/ElemForEach.java | UTF-8 | 26,388 | 1.851563 | 2 | [] | no_license | package org.apache.xalan.templates;
import java.util.Vector;
import org.apache.xpath.Expression;
import org.apache.xpath.ExpressionOwner;
import org.apache.xpath.XPath;
public class ElemForEach extends ElemTemplateElement implements ExpressionOwner {
static final boolean DEBUG = false;
static final long seria... | true |
fe6b91b2a88769619c456aef00745a1adf5c86f8 | Java | 15002909557/OIP | /src/com/beyondsoft/expensesystem/action/system/LogoutAction.java | GB18030 | 1,113 | 2.234375 | 2 | [] | no_license | package com.beyondsoft.expensesystem.action.system;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapp... | true |
0d1bfffa4c03020be71b6ad7e7b2f0693c479f67 | Java | icecoldaswin/csvsql | /src/main/java/in/avc/csvsql/parser/model/ParseTree.java | UTF-8 | 639 | 2.453125 | 2 | [] | no_license | package in.avc.csvsql.parser.model;
import lombok.Getter;
public class ParseTree<T> {
@Getter
private final ParseTreeNode<T> root;
@Getter
private ParseTreeNode<T> lastAdded;
public ParseTree() {
root = new ParseTreeNode<>(null);
}
public ParseTreeNode<T> addChild(f... | true |
c41da6dd3f2322018985bc937e47ca7b5e565f51 | Java | rozza/mongo-java-driver | /driver-core/src/test/unit/com/mongodb/client/model/search/SearchHighlightTest.java | UTF-8 | 4,754 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2008-present MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
5ae2e8bf738dfc75e25e0bf17a4eefb5dbfee983 | Java | joaoeduardodossantos/estudo-java1 | /MeuProgramaModificado2.java | UTF-8 | 145 | 2.5 | 2 | [] | no_license | public class MeuProgramaModificado2 {
public static void main(String[] args) {
System.out.println("Primeira linha \n Segunda linha");
}
}
| true |
b7c785dcd60192586ac69a07f294a3c50eb1db78 | Java | huotuinc/micromall | /micromall-datacenter/src/main/java/com/micromall/datacenter/service/delivery/DeliverItemService.java | UTF-8 | 1,960 | 1.859375 | 2 | [] | no_license | package com.micromall.datacenter.service.delivery;
import com.micromall.datacenter.bean.delivery.DeliverItemBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.transaction.annotation.Transactional;
import java.util.Date;
import java.util.Map;
... | true |
578d02b5ba1764d3272ad19e25878aae5a55eb4c | Java | duthils/revolance-ui-monitoring | /server/src/main/java/com/smash/revolance/ui/server/renderable/merge/NewElementRenderable.java | UTF-8 | 3,144 | 2.1875 | 2 | [] | no_license | package com.smash.revolance.ui.server.renderable.merge;
import com.smash.revolance.ui.comparator.element.ElementComparison;
import com.smash.revolance.ui.comparator.element.ElementDifferency;
import com.smash.revolance.ui.model.element.api.ElementBean;
import com.smash.revolance.ui.server.renderable.ContextualRenderab... | true |
e9f0bb05ffba47696c7ad8d3259d38a8e2970492 | Java | LuizFelipeDev/Jogo_da_velha | /Jogo_DVelha/src/Player.java | UTF-8 | 3,920 | 3.390625 | 3 | [] | no_license |
import javax.swing.JOptionPane;
public class Player
{
public String Nome;
public String Simbolo;
public static String[] Resultado(String[][] tabuleiro, Player nome1, Player nome2, int rodada)
{
String[] result = new String[2];
for(int x=0;x<3;x... | true |
ce149d0b61c92baf2983dd5e00a5e03d57c370ce | Java | rudderlabs/rudder-sdk-android | /core/src/main/java/com/rudderstack/android/sdk/core/RudderMessageBuilder.java | UTF-8 | 3,369 | 1.976563 | 2 | [
"MIT"
] | permissive | package com.rudderstack.android.sdk.core;
import androidx.annotation.Nullable;
import java.util.Map;
/*
* builder for RudderElement (alias RudderEvent)
* */
public class RudderMessageBuilder {
private RudderMessage parentMessage;
public static RudderMessageBuilder from(RudderMessage message){
Rudd... | true |
ddb03815cb1342c1e0e1ab5dc82c47e630825b49 | Java | grzeniu/ai-application | /src/main/java/pl/edu/wat/ai/app/mappers/UserMapperImpl.java | UTF-8 | 1,204 | 2.40625 | 2 | [] | no_license | package pl.edu.wat.ai.app.mappers;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import pl.edu.wat.ai.app.interfaces.rest.user.dto.NewUserDto;
import pl.edu.wat.ai.app.interfaces.rest.user.dto.UserDto;
import pl.edu.wat.ai.app.user.User;
public class UserMapperImpl implements UserMapper {
... | true |
9c524aac88a50ebd2cc59ba653f9ee1b94a04093 | Java | blackice999/Mobility-client | /app/src/main/java/com/project/mobility/model/login/provider/GoogleAuthProvider.java | UTF-8 | 1,331 | 2.25 | 2 | [] | no_license | package com.project.mobility.model.login.provider;
import com.google.firebase.auth.FirebaseAuth;
import com.project.mobility.model.user.User;
import javax.inject.Inject;
import durdinapps.rxfirebase2.RxFirebaseAuth;
import io.reactivex.Maybe;
import io.reactivex.Single;
import timber.log.Timber;
public class Google... | true |
45317f7429a24ca34c6938446ce9756188995fcb | Java | gandhim175/Hw8 | /CompanySales.java | UTF-8 | 6,572 | 2.921875 | 3 | [] | no_license | /*
* Name: Milind Gandhi
* Date: 04/01/2020
* Class: ObjectOreiented
* Assignment: Homework - GUI
* Dispcription: In this program is about the calculate services and sale calculating by java GUI program
*/
package javaapplication52;
/**
*
* @author Gandhi
*/
import java.awt.Color;
import java.aw... | true |
1ad492b24ee67831bfc7822c43b9b1aed5571e1c | Java | zhang-hongjie/Jose4j | /src/test/java/org/jose4j/jwk/OctJwkGeneratorTest.java | UTF-8 | 1,194 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2015 Brian Campbell
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | true |
aed62e3c80962528fedaaf0856692266841f1d10 | Java | jamack/Project-TourGuideapp | /app/src/main/java/com/example/android/project_tourguideapp/RestaurantsListFragment.java | UTF-8 | 12,256 | 2.515625 | 3 | [] | no_license | package com.example.android.project_tourguideapp;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ListView;
import jav... | true |
16a78e53e239f8d4b34050a96335a3b1e52b15f2 | Java | wrdobject/tourism | /src/main/java/com/sdgl/mapper/suppliers/VehicleMapper.java | UTF-8 | 807 | 2.203125 | 2 | [] | no_license | package com.sdgl.mapper.suppliers;
import com.sdgl.pojo.suppliers.Vehicle;
import java.util.List;
/**
* @Author: 乔紫阳
* @Description:
* @Date: 2018/7/3 17:15
*/
public interface VehicleMapper {
/**
* 查询所有车辆信息
* @return
*/
List<Vehicle> selVehicle();
/**
* 添加车辆信息
* @param vehi... | true |
8645871410d8018a5ba99a28d1a08e1b5b9bea75 | Java | hongliang5623/car4ssystem | /src/cn/pdsu/bs/serviceImpl/ApplyOutServiceImpl.java | UTF-8 | 2,802 | 2.078125 | 2 | [] | no_license | package cn.pdsu.bs.serviceImpl;
import java.util.List;
import cn.pdsu.bs.dao.IApplyOutDao;
import cn.pdsu.bs.domain.ApplyOut;
import cn.pdsu.bs.domain.Page;
import cn.pdsu.bs.domain.User;
import cn.pdsu.bs.service.IApplyOutService;
public class ApplyOutServiceImpl implements IApplyOutService {
private IApp... | true |
9aa22120e0c5f55cde63a35574ecb6bea80042c1 | Java | kodebot/exp-mobileapps | /com.qubits.cordova.plugin.backgroundaudioplayer/src/android/BackgroundAudioPlayerService.java | UTF-8 | 16,542 | 1.984375 | 2 | [] | no_license | package src.android;
import android.app.Activity;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.AudioManager;
... | true |
87402cde3a7d1fff3d1d5e5b38729fef69247c36 | Java | theFiles/zhlm-manage | /src/com/rogrand/common/domain/Provinces.java | UTF-8 | 1,366 | 1.976563 | 2 | [] | no_license | package com.rogrand.common.domain;
import com.rogrand.core.annotation.FieldAnnotation;
import com.rogrand.core.domain.Base;
public class Provinces
extends Base
{
@FieldAnnotation(comment = "id", exp = false, imp = false, empty = true, len = 10, pk = true)
private Long id;
@FieldAnnotation(comment = "province... | true |
9ac2d50a61b3dc62cb6b1c00c5c995db51e06077 | Java | wagnew3/mlgpu | /src/offPolicyMonteCarlo/CarRaceRewardFunction.java | UTF-8 | 851 | 2.8125 | 3 | [] | no_license | package offPolicyMonteCarlo;
import ReinforcementMachineLearningFramework.Action;
import ReinforcementMachineLearningFramework.RewardFunction;
import ReinforcementMachineLearningFramework.State;
public class CarRaceRewardFunction extends RewardFunction
{
private CarRaceEnvironment carRaceEnvironment;
... | true |
f2f2192784bd1a5457475abfc369bf1407bedf71 | Java | ducng0610/MortgageApplicationChecker | /.svn/pristine/81/810ecf52de3c1cb44ca783ea113cc0209dbbd38c.svn-base | UTF-8 | 1,677 | 2.265625 | 2 | [] | no_license | package com.fdmgroup.fluffycrmsystem.controllers;
import java.util.Calendar;
import java.util.List;
import com.fdmgroup.fluffycrmsystem.clientmanagement.Client;
import com.fdmgroup.fluffycrmsystem.clientmanagement.ClientFactory;
import com.fdmgroup.fluffycrmsystem.databaseconnectivities.client.ClientReadCommand;
impo... | true |
b604a3831da49f4382262fe8451ee35e5231d88b | Java | andreasp1994/UdacityAndroid-P1-PopularMovies | /app/src/main/java/com/apogiatzis/udacitymovieproject/utilities/NetworkUtils.java | UTF-8 | 4,316 | 2.921875 | 3 | [] | no_license | package com.apogiatzis.udacitymovieproject.utilities;
import android.net.Uri;
import android.util.Log;
import com.apogiatzis.udacitymovieproject.models.Movie;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.InputStream;
import java.net.Ht... | true |
8469164c21ab84a9e4790e163076aa9ecd07008d | Java | camelya58/materials-for-lectures | /src/module02/lesson12_generics/example/Teacher.java | UTF-8 | 239 | 2.65625 | 3 | [] | no_license | package module02.lesson12_generics.example;
/**
* Класс Teacher
*
* @author Kamila Meshcheryakova
* created 21.08.2020
*/
public class Teacher extends Participant {
public Teacher(String name, int age) {
super(name, age);
}
}
| true |
1557c93f44c170366a54d444a7bc785ce53a6147 | Java | WeiWei0721/duke | /src/main/java/com/weiwei/storage/StorageFile.java | UTF-8 | 4,218 | 2.9375 | 3 | [] | no_license | package com.weiwei.storage;
import com.weiwei.exception.BusinessException;
import com.weiwei.task.Task;
import com.weiwei.task.TaskList;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java... | true |
f69668dabc38f8123d23d5c7d8733f24091831ef | Java | wongwaituck/GraphMeTestCases | /src/com/company/model/DummyEnum.java | UTF-8 | 116 | 1.757813 | 2 | [] | no_license | package com.company.model;
/**
* Created by WaiTuck on 05/02/2016.
*/
public enum DummyEnum {
DUMMY_VALUE;
}
| true |
64555cb1023fe7e3aaf09f0277835d31faf43e40 | Java | hyunk-go/Reservation | /Reservation/src/main/java/dto/ProductDto.java | UTF-8 | 1,556 | 2.40625 | 2 | [] | no_license | package dto;
public class ProductDto {
private int displayId;
private int productId;
private String productDescription;
private String placeName;
private String productContent;
private String productImgUrl;
public int getDisplayId() {
return displayId;
}
public void setDisplayId(int displayI... | true |
6e19afd2814f07045d0b1ee2cc6466710f4ba24d | Java | chriszhangmq/Data-_Structure | /02Sorting/src/QuickSort/QuickSort.java | UTF-8 | 3,586 | 3.625 | 4 | [] | no_license | package QuickSort;
import SystemParameter.RunTime;
/**
* 快速排序
* Created by Chris on 2019/11/17.
*/
public class QuickSort {
private int[] arr;
private final int NUMELE;
private int cycleIndex;
public QuickSort(int NUMELE){
this.NUMELE = NUMELE;
arr = new int[NUMELE];
}
pu... | true |