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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f681dbf00572dff95add883bc245b04466fc926c | Java | zhangxiaoqing0221/DesignPatterns | /DynamicProxy/src/UserManagerImpl2.java | UTF-8 | 587 | 2.296875 | 2 | [] | no_license | /**
* 用户管理真正的实现类2
* @author xiaoqing
*
*/
public class UserManagerImpl2 implements UserManager {
/*****
* 添加用户
*/
public void addUser(String userId, String userName) {
}
/*****
* 删除用户
*/
public void delUser(String userId) {
... | true |
e7c682029f89cb6f55cd3fd0bb67da905b5bfcca | Java | DaikerID/Epam_Java.Core | /src/main/java/com/Epam/JavaCore/hw3_6_12_19/Cargo.java | UTF-8 | 477 | 2.890625 | 3 | [] | no_license | package com.Epam.JavaCore.hw3_6_12_19;
public class Cargo {
private Route route;
private Float weight;
private Float volume;
public Cargo(Route route, float weight, float volume) {
this.route = route;
this.weight = weight;
this.volume = volume;
}
public Route getRoute... | true |
9c31358ab8bc5fc28eb5edfaee8c2c84e15ed424 | Java | eric-weaver/music-player | /app/src/main/java/com/weaver/eric/orion/fragments/CurrentPlayListFragment.java | UTF-8 | 2,151 | 2.484375 | 2 | [] | no_license | package com.weaver.eric.orion.fragments;
import java.util.ArrayList;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;... | true |
3efefff4d95accf43311860e3eb25a38d3acaa5f | Java | Abdel-Sadou/SERVEUR-IUT | /src/main/java/cmr/iut/serveuriut/service/DiplomeAdService.java | UTF-8 | 971 | 2.234375 | 2 | [] | no_license | package cmr.iut.serveuriut.service;
import cmr.iut.serveuriut.entities.DiplomeAdmission;
import cmr.iut.serveuriut.repository.DiplomeAdRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
@Service
p... | true |
3b76b77b9da34596ea0e50d60ecd5b37fc90f20c | Java | purushothamhegde/apihub | /apihub/src/main/java/com/philips/apihub/hp/alm/Client.java | UTF-8 | 5,301 | 2.34375 | 2 | [] | no_license | package com.philips.apihub.hp.alm;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Client
{
private final static Logger Log = LoggerFactory.getLogger(Cl... | true |
1a860fcccc94a1bc0cf8390755b3f406f269e57f | Java | 1Dariusz1/ZajeciaGit | /src/Zajecia_1/creational/factory/Method/Cat.java | UTF-8 | 163 | 2.921875 | 3 | [] | no_license | package Zajecia_1.creational.factory.Method;
public class Cat implements Animal {
public void makeASound() {
System.out.println("Miau miau");
}
}
| true |
18829602ccc868ba208304dc1df1533bc1bd087f | Java | marcuswistisen/WebServiceDevelopmentAssessment | /src/uts/ws/Articles.java | UTF-8 | 3,565 | 2.875 | 3 | [] | no_license | package uts.ws;
import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import javax.xml.bind.JAXBException;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bi... | true |
95b346037abbdb3e43dbf8665d227ad9343269e3 | Java | allthatsounds/dawproject | /src/main/java/com/bitwig/dawproject/device/Limiter.java | UTF-8 | 495 | 1.671875 | 2 | [
"MIT"
] | permissive | package com.bitwig.dawproject.device;
import com.bitwig.dawproject.RealParameter;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Limiter extends BuiltinDevice
{
@XmlElement
public RealParameter threshold;
@XmlElement
public R... | true |
16f9af89266446c02762be403bf0901d5b273c46 | Java | shikong-sk/JAVA_Study | /Test/src/cn/skcks/myCollection/CustomArrayList_2.java | UTF-8 | 1,678 | 3.578125 | 4 | [] | no_license | package cn.skcks.myCollection;
/*
* 自定义ArrayList
* 增加泛型
*/
public class CustomArrayList_2<E> {
private Object[] elementData = null;
private int size;
private static final int DEFAULT_CAPACITY = 10;
public CustomArrayList_2() {
elementData = new Object[DEFAULT_CAPACITY];
}
public C... | true |
149b9e4445df6c17fb98657b908e51011ad84a20 | Java | natanlf/FactoryCar | /src/main/java/com/github/natanlf/CarResource.java | UTF-8 | 620 | 2.421875 | 2 | [] | no_license | package com.github.natanlf;
import com.github.natanlf.dto.input.BuildCarDTO;
import com.github.natanlf.model.Car;
import com.github.natanlf.service.CarService;
import javax.inject.Inject;
import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
@Path("/cars")
@Produces(MediaType.APP... | true |
f89abddd151d28d844fb0980661c85ea5ff070ee | Java | adithyah/PersonalAssistant | /app/src/main/java/com/fsdstaff/ifwwtttt/WeatherAPI/TemperatureFeature.java | UTF-8 | 2,558 | 2.375 | 2 | [] | no_license | package com.fsdstaff.ifwwtttt.WeatherAPI;
import android.content.Context;
import android.content.Intent;
import com.fsdstaff.ifwwtttt.Constants;
import com.fsdstaff.ifwwtttt.HomeActivity;
import com.fsdstaff.ifwwtttt.RuleGrammar.IfThen;
import com.fsdstaff.ifwwtttt.ThenAction.Notification;
import org.w3c.dom.Documen... | true |
b7af135fa2fd8a8af647016c3c7ee66189089f4f | Java | ManojkumarMuralidharan/Rule-Based-Context-Aware-System | /mobile/mo/build/preprocessed/rulec.java | UTF-8 | 4,219 | 2.515625 | 3 | [] | no_license |
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintStream;
import javax.microedition.io.Connector;
import javax.microedition.io.file.FileConnection;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* ... | true |
57c9b58927c2a950559e4feebf63dc0020c9b715 | Java | sivajismax/Price-Service | /src/main/java/com/example/controller/PriceServiceController.java | UTF-8 | 1,252 | 2.0625 | 2 | [] | no_license | package com.example.controller;
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.GetMapping;
import org.springframework.web.bi... | true |
e328093791c9c0eff4be53bb3c0d7703a0f3d644 | Java | Akshay-21-crypto/review-project | /Review Project/src/com/servlets/UserPost.java | UTF-8 | 1,138 | 2.25 | 2 | [] | no_license | package com.servlets;
import javax.servlet.*;
import java.sql.*;
import javax.servlet.http.*;
import com.model.DataCon;
import java.io.*;
public class UserPost extends HttpServlet{
/**
*
*/
private static final long serialVersionUID = 1L;
public void doPost(HttpServletRequest req,HttpServletR... | true |
9941de9118f143a6c11d647d99537095e49cd172 | Java | lion1354/temp | /com.tibco.ma/com.tibco.ma.core/src/main/java/com/tibco/ma/controller/ScheduleController.java | UTF-8 | 11,612 | 1.96875 | 2 | [] | no_license | package com.tibco.ma.controller;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Resource;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apach... | true |
7e365d0b2271e1f9cf349b9a1c146c6e6c74b75b | Java | bugscatcher/reqres-in-api-testing | /src/test/java/com/github/bugscatcher/dto/resources/ResourceSingleDTO.java | UTF-8 | 286 | 2.078125 | 2 | [] | no_license | package com.github.bugscatcher.dto.resources;
public class ResourceSingleDTO {
private ResourceDTO data;
public ResourceDTO getData() {
return data;
}
public ResourceSingleDTO setData(ResourceDTO data) {
this.data = data;
return this;
}
}
| true |
8218f648e22f2eb3f4a86b45902d390dcdbf35c4 | Java | ashley-hunter/worker-framework | /worker-testing-integration/src/main/java/com/hpe/caf/worker/testing/TestControllerFactoryBase.java | UTF-8 | 3,924 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2017 Hewlett Packard Enterprise Development LP.
*
* 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 req... | true |
623810c8043bfac489dc9b1f663effe35ce326ed | Java | craining/android-baidu_push_server | /src/com/zgy/ringforu_push/MainActivity.java | UTF-8 | 737 | 2.15625 | 2 | [] | no_license | package com.zgy.ringforu_push;
import android.app.Activity;
import android.os.Bundle;
import com.zgy.ringforu_push.logic.RequestLogic;
import com.zgy.ringforu_push.observer.RequestObserver;
public class MainActivity extends Activity {
private RequestLogic mLogic;
@Override
protected void onCreate(Bundle saved... | true |
fe935cbc3c8fe3f1e8e626a9f14f7bc440cc3e97 | Java | mtarradellas/Java-Codes | /PO/src/TP5/Ej8/A.java | UTF-8 | 470 | 3.53125 | 4 | [] | no_license | package TP5.Ej8;
public class A {
static final String MESSAGE = "%s %s %s";
public void print(Object o) {
System.out.println(String.format(MESSAGE, "A", "Object", o.getClass()));
}
public void print(Number n) {
System.out.println(String.format(MESSAGE, "A", "Number", n.get... | true |
e36f96c4b023e748cef553a7cc52e44977d21610 | Java | houfei11/test | /src/practice/ListDemo3.java | UTF-8 | 1,486 | 4.28125 | 4 | [] | no_license | package practice;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
/**
* 集合转换成数组,
*/
public class ListDemo3 {
public static void main(String[] args) {
Collection<String> collection = new ArrayList<String>();
collection.add("abc");
c... | true |
88618078697a9eaa94989a2781ea8575539dd9e5 | Java | dwslab/melt | /matching-jena-matchers/src/main/java/de/uni_mannheim/informatik/dws/melt/matching_jena_matchers/metalevel/MachineLearningWEKAFilter.java | UTF-8 | 13,296 | 1.953125 | 2 | [
"MIT"
] | permissive | package de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.metalevel;
import de.uni_mannheim.informatik.dws.melt.matching_jena.MatcherYAAAJena;
import de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Alignment;
import de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.Correspondence;
im... | true |
b2b9256232d543baa26b794aef690b2509de3b63 | Java | joshi-keyur/titus-control-plane | /titus-ext/aws/src/test/java/com/netflix/titus/ext/aws/supervisor/AsgLocalMasterReadinessResolverTest.java | UTF-8 | 6,640 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Netflix, 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 agreed t... | true |
855c4a3974ce4f07adfc7d911d2643e0dc31f8ca | Java | Away-Leo/cw-app | /cw-app-biz/src/main/java/com/cw/biz/goods/domain/entity/PostAddress.java | UTF-8 | 1,063 | 1.929688 | 2 | [] | no_license | package com.cw.biz.goods.domain.entity;
import com.cw.biz.common.entity.AggEntity;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
/**
* 商品邮寄地址
* Created by Administrator on 2017/6/1.
*/
@Ent... | true |
a01386ee63f850951585049f521005b2de9f0030 | Java | a1844993587/gulimall | /gulimall-product/src/main/java/com/yualex/gulimall/product/service/AttrGroupService.java | UTF-8 | 450 | 1.546875 | 2 | [
"Apache-2.0"
] | permissive | package com.yualex.gulimall.product.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yualex.common.utils.PageUtils;
import com.yualex.gulimall.product.entity.AttrGroupEntity;
import java.util.Map;
/**
* 属性分组
*
* @author YuAlex
* @email 1844993587@qq.com
* @date 2021-03-20 00:38:59... | true |
a53c8aa97beb5a26280b4c74bdb2f4871b54f4a3 | Java | ShuaiMou/Algorithms-and-data-structure | /src/main/java/structure/hash/MyHashMap.java | UTF-8 | 819 | 3.28125 | 3 | [] | no_license | package structure.hash;
import java.util.LinkedList;
import lombok.Getter;
import lombok.Setter;
public class MyHashMap<K,V> {
private @Setter @Getter int key;
private @Setter @Getter V value;
private int m = 16 ;
/**
* use separate chanining to store duplicated key
*/
LinkedList<V>[] array = new LinkedLi... | true |
d3322f9e796db729c83218b34970c52b79cef4b7 | Java | 445937773/90world | /src/com/zero/tools/OrderApdater.java | UTF-8 | 5,428 | 1.96875 | 2 | [] | no_license | package com.zero.tools;
import java.util.List;
import com.zero.activity.IndentDetailsActivity;
import com.zero.bean.Indent;
import com.zero.cache.ImageLoader;
import com.zero.www.R;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import and... | true |
99ed902718448f9ed782e94dbc521d5a6c4ca7f5 | Java | miguel-mzbi/Project-Management-Dynamic | /Detective.java | UTF-8 | 2,136 | 3.390625 | 3 | [] | no_license | import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.FileInputStream;
import java.io.Reader;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Detective{
public static int[] readFromFileInput(File in) throws IOException{
FileInputStream fis = new F... | true |
09242dc242e645e1fc59cffd0fec579684207297 | Java | moutainhigh/yili-onlineshop | /aladingshop-store-sku/src/test/java/com/aladingshop/store/sku/StoreSkuImageTest.java | UTF-8 | 1,894 | 1.976563 | 2 | [] | no_license | package com.aladingshop.store.sku;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.aladingshop.store.sku.model.StoreSkuImage;
import com.aladingshop.sto... | true |
2db1c14d35dbb9868ce9252198bf4ea0c120b86d | Java | uk-gov-dft/bluebadge-badgemanagement-service | /service/src/test/java/uk/gov/dft/bluebadge/service/badgemanagement/repository/BadgeManagementRepositoryIntTest.java | UTF-8 | 22,125 | 1.867188 | 2 | [
"MIT"
] | permissive | package uk.gov.dft.bluebadge.service.badgemanagement.repository;
import static org.assertj.core.api.Assertions.assertThat;
import static uk.gov.dft.bluebadge.service.badgemanagement.repository.domain.BadgeEntity.Status.ISSUED;
import static uk.gov.dft.bluebadge.service.badgemanagement.repository.domain.BadgeEntity.Sta... | true |
82d037df1b5c952866c30afe762ecadca056fb44 | Java | zhaoaiqing/study | /cep/ceptest/src/main/esper/com/espertech/esper/core/context/stmt/AIRegistryExpr.java | UTF-8 | 1,865 | 1.539063 | 2 | [] | no_license | /*
* *************************************************************************************
* Copyright (C) 2008 EsperTech, Inc. All rights reserved. *
* http://esper.codehaus.org *
* http://www.espertech.com ... | true |
4bddb08a28c3f195e6aa886fc5f3e353d23bd85a | Java | mayensy27/Planificate | /app/src/main/java/cat/urv/deim/asm/p2/planificate/MainActivity.java | UTF-8 | 6,085 | 1.921875 | 2 | [] | no_license | package cat.urv.deim.asm.p2.planificate;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
impo... | true |
c37c271d53464d42da83eac4902c2e0c70cfc466 | Java | allenpwd/springboot-elastic | /base/src/test/java/pwd/allen/elastic/TransportClientTest.java | UTF-8 | 18,746 | 1.976563 | 2 | [] | no_license | package pwd.allen.elastic;
import lombok.extern.slf4j.Slf4j;
import org.elasticsearch.action.DocWriteResponse;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.bulk.BulkItemResponse;
import org.elasticsearch.action.bulk.BulkRequestBuilder;
import org.elasticse... | true |
9456847a5cb874e956435fe859f7d163d42fe7d6 | Java | MariaLeonovaYar/2021_distributed | /ditribtech-sockets/src/main/java/ru/krista/edu/distrib/tech/socket/portScaner.java | UTF-8 | 839 | 3.109375 | 3 | [] | no_license | package ru.krista.edu.distrib.tech.socket;
import java.io.IOException;
import java.net.ConnectException;
import java.net.Socket;
public class portScaner {
String host = "127.0.0.1";
public void start() throws IOException {
int startPort = 1;
int endPort = 65535;
for (int port = star... | true |
cd71f74a46122ac1b07ddccdbe660df4e25ab59a | Java | Raychenko88/e-shop | /src/test/java/info/sjd/controller/UserControllerTest.java | UTF-8 | 7,281 | 2.1875 | 2 | [] | no_license | package info.sjd.controller;
import info.sjd.model.Order;
import info.sjd.model.User;
import info.sjd.service.UserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.... | true |
699cc34752c41401515a6cc70b185c8f29c60eec | Java | zhangyimingdatiancai/Sotfwork88 | /Java source code and Test/main/java/domain/User.java | UTF-8 | 1,840 | 2.453125 | 2 | [] | no_license | package domain;
import java.util.ArrayList;
import java.util.List;
/**
* @author YiMing Zhang
* @date Created in 2021 2021/4/30
* @description
* @version:1.1
*/
public class User {
private int id;
private String name;
private String phonenum;
private String password;
private String address;
... | true |
da36542a36c8bc11d884f4cd0dc8bb1471a30729 | Java | laolandaye/lan | /lan_bm/laolan-javaeeEx-cache-redis-springdataredis/src/main/java/cn/e3mall/service/impl/ContentServiceImpl.java | UTF-8 | 5,270 | 2.28125 | 2 | [] | no_license | package cn.e3mall.service.impl;
import cn.e3mall.mapper.TbContentMapper;
import cn.e3mall.pojo.TbContent;
import cn.e3mall.pojo.TbContentExample;
import cn.e3mall.service.ContentService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframewo... | true |
87775c861f2c23f5eaade3acc7da909e7b6c3e42 | Java | s-kramer/spodddify | /axon-spodddify/src/main/java/org/skramer/spodddify/invoice/PayOffInvoice.java | UTF-8 | 240 | 1.695313 | 2 | [] | no_license | package org.skramer.spodddify.invoice;
import org.axonframework.modelling.command.TargetAggregateIdentifier;
import lombok.Value;
@Value
class PayOffInvoice {
@TargetAggregateIdentifier
String invoiceId;
long payOffAmount;
}
| true |
9274b40519f18ca8ff25f8ddabac61caaef3e28c | Java | zhihaoSong/spring-practices | /springMVC/src/main/java/com/szh/springtest/ConfigEnvDev.java | UTF-8 | 375 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package com.szh.springtest;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
/**
* Dev环境
* @author zhanyognzhi
*/
@Configuration
@Profile("dev")
public class ConfigEnvDev {
@Bean
public I... | true |
5a18cb6685384ca6734e1b273108714238506f85 | Java | chakaponden/neuroon-classic-app | /src/main/java/com/inteliclinic/neuroon/mask/bluetooth/FirmwareSentEvent.java | UTF-8 | 291 | 2.09375 | 2 | [] | no_license | package com.inteliclinic.neuroon.mask.bluetooth;
public class FirmwareSentEvent {
private float procentage;
private boolean success;
public FirmwareSentEvent(float procentage2, boolean success2) {
this.procentage = procentage2;
this.success = success2;
}
}
| true |
1d869a0ed8221c9cf3b9b49ee6241f7946e40222 | Java | OndraZizka/jawabot | /web/src/main/java/org/jboss/jawabot/plugin/irc/web/_co/ChannelListPanel.java | UTF-8 | 1,214 | 2.0625 | 2 | [] | no_license |
package org.jboss.jawabot.plugin.irc.web._co;
import javax.inject.Inject;
import org.apache.wicket.markup.html.list.ListItem;
import org.apache.wicket.markup.html.list.ListView;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.util.ListModel;
impor... | true |
0ae89b4cd4e0ee2b6340e03ca0a9b42dbed4142e | Java | Beyond-yan/OA | /src/com/gdssoft/oa/util/StringUtil.java | UTF-8 | 1,052 | 2.9375 | 3 | [] | no_license |
package com.gdssoft.oa.util;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* 去掉文本
* @author lxwhappy
*
*/
public class StringUtil {
public static String replaceBlank(String str)
{
Pattern p = Pattern.compile("\\s*|\t|\r|\n");
Matcher m = p.matcher(str);
String after = m.replaceAl... | true |
266a828d10f0c93f1e504963ed4d04dbaf4e6d29 | Java | zhonghh13/ITui | /Itui/src/main/java/cn/itui/webdevelop/utils/recommend/MajorRecommendResult.java | UTF-8 | 1,532 | 2.28125 | 2 | [] | no_license | package cn.itui.webdevelop.utils.recommend;
import java.util.HashMap;
import java.util.List;
/**
* mdjor推荐时过滤后的结果类
* @author jimmycai
*
*/
public class MajorRecommendResult {
private List<HashMap<String, Object>> majors;
private int similiarCount;
private int nearCount;
private int correlateCount;
private in... | true |
d7faac234345bdcc61298407f57c8c6cbbbf8f12 | Java | CuZnDragon/InfiCraft | /client/blocks/Brownstone.java | UTF-8 | 1,711 | 2.484375 | 2 | [] | no_license | package net.minecraft.src.blocks;
import java.util.ArrayList;
import net.minecraft.src.*;
import net.minecraft.src.forge.*;
public class Brownstone extends Block
implements ITextureProvider
{
public Brownstone(int i, int j)
{
super(i, j, Material.rock);
}
public void onEntityWalking(Worl... | true |
04b1ce5c3e748bfb2c769e7558ad98a966fd2b9f | Java | Uniandes-ISIS2603-backup/s1_SitiosWeb_201910 | /s1_sitios-api/src/main/java/co/edu/uniandes/csw/sitios/resources/UsuarioTicketsResource.java | UTF-8 | 4,817 | 2.46875 | 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 co.edu.uniandes.csw.sitios.resources;
import co.edu.uniandes.csw.sitios.dtos.TicketDTO;
import co.edu.uniandes.csw.sitios.ejb.... | true |
ac69650c4910403fcc683761f35f8c7fdd942ff3 | Java | weixiaouser/ThinkInJava | /src/main/java/juc/msbc001/synchtest/SynchronTest.java | UTF-8 | 1,556 | 3.078125 | 3 | [] | no_license | package juc.msbc001.synchtest;
import jdk.management.resource.internal.inst.FileOutputStreamRMHooks;
/**
* @author :weixiao
* @description :Synchronized 关键字对某个对象加锁
* 静态方法static 是没有this对象的 因为静态方法在初始化的时候this当前对象还不存在,对象还没初始化,所以 静态方法没有this对象
* @date :2020/6/4 10:01
*/
public class SynchronTest implements Runnable{
... | true |
45fe9542a48717dfe2e65551e801231b2d02dc11 | Java | oshaw/videocall | /src/main/java/Participant.java | UTF-8 | 26,225 | 2.140625 | 2 | [] | no_license | import io.aeron.Aeron;
import io.aeron.FragmentAssembler;
import io.aeron.Publication;
import io.aeron.Subscription;
import io.aeron.driver.MediaDriver;
import io.aeron.logbuffer.Header;
import org.agrona.BitUtil;
import org.agrona.DirectBuffer;
import org.agrona.collections.Long2ObjectHashMap;
import org.agrona.concur... | true |
c0eccf6ffb2dbaf741eace251970d9a899551d6f | Java | marcintalaga/BookStoreRobotFix | /src/test/java/pl/epam/robot/parsing/FreeBookFinderTest.java | UTF-8 | 1,211 | 2.328125 | 2 | [] | no_license | package pl.epam.robot.parsing;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.testng.annotations.Test;
import pl.epam.robot.database.entity.book.Book;
import pl.epam.robot.finder.FreeBookFinder;
public class FreeBookFind... | true |
4d0fe422b877931a68efd14c669450a0bbc57f19 | Java | P79N6A/icse_20_user_study | /methods/Method_50596.java | UTF-8 | 66 | 2.046875 | 2 | [] | no_license | @Override public boolean isClass(){
return operation == null;
}
| true |
37a18f643274b86ef2176378823e943d460e98e0 | Java | Prudhviraja566/Practiice_Program | /Practice_Program/src/test/java/interview_Quections_String/Convert_into_FirstLetter.java | UTF-8 | 595 | 3.296875 | 3 | [] | no_license | package interview_Quections_String;
public class Convert_into_FirstLetter
{
public static void main(String[] args)
{
String s = "my name is prudhvi raj";
String [] str = s.split(" ");
String res = "";
for(String word : str)
{
char [] ch = word.toCharAr... | true |
f1cf303168af66afcc1b66c924e9502d362fe286 | Java | teddyxlandlee/mavenHelper | /src/io/github/teddyxlandlee/maven/install/FilesHelper.java | UTF-8 | 2,515 | 2.75 | 3 | [] | no_license | package io.github.teddyxlandlee.maven.install;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.UUID;
public class FilesHelper {
public static File createPom(String url, String group, String artifact, String version) throws IOException {
File file = Fil... | true |
25e50a0b66c69d7fbe2b40ebdeaf6b435e5647c9 | Java | Thea2/OfferJava | /src/Offer33.java | UTF-8 | 1,288 | 3.890625 | 4 | [] | no_license | /**
* 题目描述:把只包含质因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含质因子7。
* 习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。
*
* 解题思路:用数组result记录丑数,下标为i的数代表第i个丑数,p5、p2,p3记录5倍、2倍,3倍的在当前已知丑数中的最小值下标
* 在找下一个丑数时,比较p2乘以2,p3乘以3,p5乘以5的大小,取最小值,并把当前p向后移一位。
*/
public class Offer33 {
public int GetUglyNumber_Solution(int ... | true |
54ba720fa027952b3756a6247737c54059958c68 | Java | jeanrjmedu/Xthora-Sistema-Integrado-de-Inspe-es | /src/inspecoes/Database.java | UTF-8 | 9,218 | 2.28125 | 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 inspecoes;
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement... | true |
f6fb6fc0405f1298d060171011b715019bde95e2 | Java | iFocused/iFocused | /src/application/usecases/StatisticsRepository.java | UTF-8 | 1,232 | 2.484375 | 2 | [] | no_license | package application.usecases;
import java.util.ArrayList;
import java.util.HashMap;
import application.entities.DayStats;
import application.entities.Process;
import application.gateways.ProcessRepositoryGateway;
import application.gateways.StatisticsRepositoryGateway;
public class StatisticsRepository {
private D... | true |
0a8c902a03b204cf47eddbc103792ada69f546d5 | Java | weiyou789/order_data | /src/main/java/com/hosjoy/order_data/modules/order_data/bo/resp/OrderNextMonthRepBuyData.java | UTF-8 | 348 | 1.515625 | 2 | [] | no_license | package com.hosjoy.order_data.modules.order_data.bo.resp;
import lombok.Data;
@Data
public class OrderNextMonthRepBuyData {
private String rate;
private String rateBus;
private Integer buyMemListCount;
private Integer buyBusMemListCount;
private Integer nextBuyMemListCount;
private Intege... | true |
80165ab7242875d1d37381b0c6d193e710893fe7 | Java | thiagocm1/CC-PHARMA | /didatica-psoft20182-master/src/main/java/com/example/psoft20182/repository/ProductRepository.java | UTF-8 | 555 | 2.21875 | 2 | [] | no_license | package com.example.psoft20182.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.example.psoft20182.model.produto.*;
@Repository
public interface ProductRepository extends JpaRep... | true |
46a357f8416a5a9ee04580275724ac3f8f01d8ae | Java | RyanTech/SOAPlatSys | /srmmgr/com/srmmgr/bean/ChannelList.java | UTF-8 | 6,023 | 1.898438 | 2 | [] | no_license | package com.srmmgr.bean;
// default package
import java.util.Date;
/**
* ChannelList entity. @author MyEclipse Persistence Tools
*/
public class ChannelList implements java.io.Serializable {
// Fields
private String channelid;
private String channelgid;
private String c... | true |
2c1478c3e73801d2428551e6a8c312d36bd9fbd7 | Java | huahua495/MyStudy | /app/src/main/java/com/example/administrator/allpoint/m_service/MyIntentService.java | UTF-8 | 408 | 1.8125 | 2 | [] | no_license | package com.example.administrator.allpoint.m_service;
import android.app.IntentService;
import android.content.Intent;
/**
* Created by Administrator on 2016/7/29.
* AllPoint
* 说明:IntentService:
*/
public class MyIntentService extends IntentService{
public MyIntentService(String name) {
super(name);... | true |
ec6cae45a6c857e10787d90f6a6d1531cbd1040c | Java | JimmyCW/mycloud | /microservice-zuul/src/main/java/com/wx/microservicezuul/MicroserviceZuulApplication.java | UTF-8 | 551 | 1.804688 | 2 | [] | no_license | package com.wx.microservicezuul;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
/**
* zuul地址/服务名称/服务路径
* http://localhost:9007/micro-provider/product/getByName?productName=1
*
*/... | true |
a8ac58af249b8bb6588a26a905ee64f2c50a8334 | Java | jurip/cuba-example-using-data-import | /modules/web/src/de/diedavids/ddcdit/web/mlb/mlbplayer/MlbPlayerBrowse.java | UTF-8 | 743 | 1.757813 | 2 | [] | no_license | package de.diedavids.ddcdit.web.mlb.mlbplayer;
import com.haulmont.cuba.gui.components.Button;
import com.haulmont.cuba.gui.components.GroupTable;
import de.diedavids.cuba.dataimport.web.WithImport;
import de.diedavids.ddcdit.entity.mlb.MlbPlayer;
import de.diedavids.ddcdit.web.RemoveAllAbstractLookup;
import javax.i... | true |
145fcb2ab5a0c7d4f8e5dbb5a33af802842db39a | Java | roiedanino/100Plus-Investment-House | /InvestmentHouseFrontEnd/src/ClientServerRequest.java | UTF-8 | 3,181 | 2.34375 | 2 | [] | no_license | import java.io.Serializable;
import java.util.List;
public class ClientServerRequest implements Serializable{
private static final long serialVersionUID = 2L;
public enum ClientServerRequestType {SIGNUP , REQUEST, LOGIN, GETALLSTOCKS, GETALLREQUESTSBYINVOKEREMAIL, GETPORTFOLIO,GETBALANCE}
private ClientServerRequ... | true |
92f82ebd8fffa723c51331e8cd8a3ade37bd2374 | Java | Bmcentee148/ProjectEuler | /12.10.2015_SumOfMultiples_1/SumOfMultiples_V2.java | UTF-8 | 613 | 3.625 | 4 | [] | no_license | /* #############################################################################
Class SumOfMultiples_V2 -- SumOfMultiples but simpler implementation. Potent
ially longer running time.
@author Brian McEntee
@version 1.0
############################################################################# */
public class ... | true |
b7db9da1bbdd24d9675d50f15168371a358e277d | Java | AshenKoralage/RMI-PublicChatRoom | /ChatRoomServer/src/Controller/ChatControllerImpl.java | UTF-8 | 1,075 | 2.515625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Controller;
import Observer.ChatObserver;
import Observerble.ChatObserverble;
import java.rmi.RemoteException;
import java.rmi... | true |
d28c7a9c4f5d4e1cb438aea64be8a7f93313b046 | Java | markphip/testing | /jira-dvcs-connector-plugin/src/main/java/com/atlassian/jira/plugins/dvcs/activeobjects/v3/To_11_AddKeyAndSecretToBBAccounts.java | UTF-8 | 3,874 | 2.203125 | 2 | [
"BSD-2-Clause"
] | permissive | package com.atlassian.jira.plugins.dvcs.activeobjects.v3;
import com.atlassian.activeobjects.external.ActiveObjects;
import com.atlassian.activeobjects.external.ActiveObjectsUpgradeTask;
import com.atlassian.activeobjects.external.ModelVersion;
import com.atlassian.sal.api.pluginsettings.PluginSettings;
import c... | true |
476e7c0dfd1cf1888db21f620f18d828806d17f5 | Java | bellmit/backendpro | /src/main/java/com/yongming/backendpro/project/drools/vo/ProductVO.java | UTF-8 | 233 | 1.703125 | 2 | [] | no_license | package com.yongming.backendpro.project.drools.vo;
import lombok.Data;
@Data
public class ProductVO {
private int id;
private int pageIndex;
private int pageSize;
private String productCode;
private String productName;
}
| true |
b61e2f481c808ab8923f892e5f0de29c9e95ed98 | Java | kartoria/lec-202007 | /Project_LMS/src/main/java/kr/or/ddit/lms/professor/studentmanagement/controller/ProfessorStudentManagementController.java | UTF-8 | 5,615 | 1.890625 | 2 | [] | no_license | package kr.or.ddit.lms.professor.studentmanagement.controller;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.jxls.common.Context;
import org.jxls.util.... | true |
d8922ade7ec763349ff9dde4e4abd5bb86f39ab1 | Java | yhcting/scmp | /src/scmp/SCmpPolicy.java | UTF-8 | 2,108 | 2.078125 | 2 | [] | no_license | /*****************************************************************************
* Copyright (C) 2013 Younghyung Cho. <yhcting77@gmail.com>
*
* This file is part of YTMPlayer.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public L... | true |
d033ede5085b5845ca16ffdfda43c440bf2c3dc3 | Java | AndersonPaulaSilva/PROJETO_PEDIDOSAPI | /src/main/java/com/anderson/domain/EstagioPedidos.java | UTF-8 | 527 | 1.640625 | 2 | [] | no_license | package com.anderson.domain;
import lombok.*;
import java.util.Date;
/**
* Created by Anderson on 09/06/2019.
*/
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(of = "id")
public class EstagioPedidos {
@Getter
private Long id;
@Getter
@Setter
private String descricao;
@Getter
... | true |
17c4622fd8521baa5a806b33b475ceec9176c1a1 | Java | iftekharmohsin/SchoolFly | /SchoolFly/SchoolFly-App/src/main/java/com/frozan/service/impl/SubjectService.java | UTF-8 | 1,040 | 2.078125 | 2 | [] | no_license | package com.frozan.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.t... | true |
e5f505010f4b6d0a4c410bb9e4dcc11b829270b2 | Java | tgenman/internet_shop | /shop-core/src/main/java/com/dmitrybondarev/shop/service/api/UserService.java | UTF-8 | 1,074 | 2 | 2 | [] | no_license | package com.dmitrybondarev.shop.service.api;
import com.dmitrybondarev.shop.model.token.VerificationToken;
import com.dmitrybondarev.shop.util.exception.EmailExistsException;
import com.dmitrybondarev.shop.model.User;
import com.dmitrybondarev.shop.model.dto.UserDto;
import org.springframework.stereotype.Service;
imp... | true |
030a067975eb56e68275cf5f33e6ad5835ff09a4 | Java | aleksei-tishkevich/HomeWork3 | /src/main/java/DropdownElementTests.java | UTF-8 | 2,653 | 2.984375 | 3 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import org.testng.Assert;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
impor... | true |
7466b39bc35d7f6d0f43a936e284cd58d34d9a68 | Java | nal3x/JavaLabs5 | /src/Elements.java | UTF-8 | 1,358 | 3.875 | 4 | [] | no_license | class Fire {
public String toString() {
return "Fire";
}
public void method1() {
System.out.println("Fire 1");
}
public void method2() {
System.out.println("Fire 2");
}
}
class Ice extends Fire {
public void method1() {
System.out.... | true |
209e0f0720ba9b191c4301e9e506f35567b0902d | Java | yummyKnight/JavaLabs | /src/main/java/ChangeForm.java | UTF-8 | 20,017 | 2.46875 | 2 | [] | no_license | import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import org.apache.log4j.Logger;
import org.slf4j.LoggerFactory;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.text.DateFormatter... | true |
ac6d572e88328e8288ebaa0cdae9dc758d12419e | Java | joaomarccos/AirSoft-Association | /pos-airsoft-business-rules/src/main/java/io/github/joaomarccos/pos/airsoft/repositories/interfaces/PlayerRepository.java | UTF-8 | 313 | 2.0625 | 2 | [] | no_license | package io.github.joaomarccos.pos.airsoft.repositories.interfaces;
import io.github.joaomarccos.pos.airsoft.entitys.Player;
import java.util.List;
/**
*
* @author João Marcos <joaomarccos.github.io>
*/
public interface PlayerRepository extends Repository<Player> {
Player findbyId(long id);
List<Player> fi... | true |
e058a225196f8d38a6a69bf83519ea4d6a26a427 | Java | ninoijl4/vavi-sound | /vavi-util-tag/src/main/java/vavi/util/tag/id3/v2/impl/ID3v2HeaderV220.java | UTF-8 | 3,655 | 2.171875 | 2 | [] | no_license | /*
* ID3v2Header.java
*
* $Id: ID3v2Header.java,v 1.1 2003/07/05 18:43:36 axelwernicke Exp $
*
* de.vdheide.mp3: Access MP3 properties, ID3 and ID3v2 tags
* Copyright (C) 1999 Jens Vonderheide <jens@vdheide.de>
*
* This library is free software; you can redistribute it and/or
* modify it under the ter... | true |
f371d49d265a3afa5c2ad601a40d0f64f146b86f | Java | ShindeVishal4376/MyUserApplication | /app/src/main/java/com/example/userapplication/view/activity/MainActivity.java | UTF-8 | 9,658 | 1.851563 | 2 | [] | no_license | package com.example.userapplication.view.activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProviders;
import andro... | true |
01f15e970cf2827b60aba2e1ddfec0a66b42201f | Java | Hemantbhatiahb/Btech-Ptu-Syllabus-Application | /app/src/main/java/com/example/syllabus/DataOfCse.java | UTF-8 | 3,593 | 2.28125 | 2 | [] | no_license | package com.example.syllabus;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NavUtils;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view... | true |
d6108b30d62bf209803c5500789a6e5c5ce1f834 | Java | deepakab03/java-ks | /core-java-intermediate/src/AssertEx.java | UTF-8 | 379 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | public class AssertEx {
AssertEx(Integer i) {
if (i == null) {
throw new NullPointerException("passed int can't be null");
}
init(i);
}
private void init(Integer i) {
assert(i < 100): "i is greater than 100!!";
//i should be < 100
//... other... | true |
fc8aeec77f159b5948a48e42d80bffa8c6d17b9f | Java | GuzIlya/fantasy-football-api | /src/main/java/by/guz/fantasy/football/service/impl/TeamServiceImpl.java | UTF-8 | 792 | 2.109375 | 2 | [] | no_license | package by.guz.fantasy.football.service.impl;
import by.guz.fantasy.football.dto.TeamDto;
import by.guz.fantasy.football.repository.TeamRepository;
import by.guz.fantasy.football.service.TeamService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;
import java.ut... | true |
de23f27d9a6ab9dc69faba885571f3cc50e72d86 | Java | 333Madi333/TestNG | /main/BasicMath.java | UTF-8 | 339 | 3.421875 | 3 | [] | no_license | public class BasicMath {
public int sum(int num1, int num2) {
return num1 + num2;
}
public int sub(int num1, int num2) {
return num1 - num2;
}
public double div(double num1, double num2) {
return num1 / num2;
}
public int mul(int num1, int num2) {
return nu... | true |
b48b33adb49874a35e977888303724d8a5f40e44 | Java | wrajer/Codelity | /src/Arrays09/ChallangeBank/Codelity/SolutionTapeEquilibrium.java | UTF-8 | 629 | 3 | 3 | [] | no_license | package Arrays09.ChallangeBank.Codelity;
public class SolutionTapeEquilibrium {
public int solution(int[] A) {
int sumStart = A[0];
int sumEnd = 0;
for (int i = 1; i < A.length; i++) {
sumEnd += A[i];
}
System.out.println(sumEnd);
int difference = Math... | true |
4166ba9f8a812b822aeb0230232f14e6f43bc322 | Java | Petrisor98/Laborator10 | /solutions/GoogleMapPlaces/app/src/main/java/ro/pub/cs/systems/eim/lab10/googlemapplaces/controller/PlacesAdapter.java | UTF-8 | 1,881 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package ro.pub.cs.systems.eim.lab10.googlemapplaces.controller;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.List;
import ro.pub.cs.systems.eim.lab10.R;
... | true |
d1a3009021ffeedaa4e042581897a04a79829c51 | Java | tellen7/algorithm | /maxSubArray/src/Main.java | UTF-8 | 936 | 3.78125 | 4 | [] | no_license | /**
* 求给定随机数组中不相邻元素的最大和
*/
public class Main {
public static void main(String[] args) {
int val[] = {1,2,4,1,7,8,3};
System.out.println(rec_opt(val, 6));
System.out.println(dp_opt(val));
}
static int rec_opt(int[] arr, int i) {
if (i == 0) {
return arr[0];
... | true |
dbc0a3eefe3a37bd1a859ecf2c01821a7002ff5d | Java | AcidRain909/servletInnopolis | /src/main/java/ru/innopolis/stc9/lesson20ee2/controller/AdminDashboardController.java | UTF-8 | 3,962 | 2.640625 | 3 | [] | no_license | package ru.innopolis.stc9.lesson20ee2.controller;
import org.apache.log4j.Logger;
import ru.innopolis.stc9.lesson20ee2.db.dao.SubjectDaoImpl;
import ru.innopolis.stc9.lesson20ee2.pojo.Grades;
import ru.innopolis.stc9.lesson20ee2.pojo.Subject;
import ru.innopolis.stc9.lesson20ee2.pojo.User;
import ru.innopolis.stc9.les... | true |
f0a5ad21acdcb68625f6c8e5cab9fd47df39e7ac | Java | cs160-berkeley/prog-02-represent-nguyensomniac | /App/proj02-shared/src/main/java/com/example/lily/proj02_shared/MessageContainer.java | UTF-8 | 2,673 | 2.125 | 2 | [] | no_license | package com.example.lily.proj02_shared;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Message;
import android.util.Base64;
import com.google.gson.JsonArray;
im... | true |
941b0dd4e0bb760c7388ba9160ace4fc12f5c5ce | Java | Viktor-s/new_app | /app/src/main/java/me/justup/upme/api_rpc/response_object/sub_object/Answer.java | UTF-8 | 747 | 2.28125 | 2 | [] | no_license | package me.justup.upme.api_rpc.response_object.sub_object;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import me.justup.upme.api_rpc.utils.Constants;
public class Answer implements Serializable {
@SerializedName(Constants.ANSWERS_HASH)
private String answer_hash;
@S... | true |
fb05345a67a7c92c5866ce164b82302fec709a86 | Java | sgsgoutham98/empmgmt | /src/main/java/com/dbs/empmgmt/model/Employee.java | UTF-8 | 2,895 | 2.625 | 3 | [] | no_license | package com.dbs.empmgmt.model;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Objects;
import javax.annotation.Generated;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persiste... | true |
890c358b2b3d3642a9a459bcf523a455b472c13c | Java | vane-spb/flight-pices-collector | /src/main/java/com/example/flightpricescollector/pojo/skyscanner/Place.java | UTF-8 | 712 | 1.875 | 2 | [] | no_license | package com.example.flightpricescollector.pojo.skyscanner;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class Place {
@JsonProperty... | true |
617773958c925e516224a851287b59ae96affb3c | Java | BlazeLoader/BlazeLoader | /src/main/com/blazeloader/api/entity/profession/MatingCondition.java | UTF-8 | 543 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive | package com.blazeloader.api.entity.profession;
public enum MatingCondition {
/**
* Does this villager have enough food to breed?
*/
BREED(1),
/**
* Does this villager have enough food to give away?
*/
GIVE(2),
/**
* Does this villager need more feed?
*/
FEED(5);
private final int multiplier;
pr... | true |
152577d88eb3512d9e39197431f7e383c1812ca8 | Java | Suflext/Lazy | /src/main/java/analytics/controller/BasicController.java | UTF-8 | 767 | 2.671875 | 3 | [] | no_license | package analytics.controller;
import analytics.config.EmployeePrincipal;
import analytics.entity.Employee;
import org.springframework.security.core.Authentication;
public class BasicController {
protected Employee getEmployee(Authentication authentication) {
return ((EmployeePrincipal) authentication.get... | true |
3d9a4b5778b52dd9e6ab32e78900b77fb26160c1 | Java | ftorrecillas/programacion | /Unidad2/src/Ej1.java | UTF-8 | 368 | 1.679688 | 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.
*/
/**
*
* @author mati
*/
public class Ej1 {
public static void main (String args[]) {
System.out.println("Pablo Torrec... | true |
f1605f13321a7cb6d973ed73bdf45f020a5a3c3c | Java | porter3/Dev10_Classwork | /Summatives/GuessTheNumberProjectFiles/GuessTheNumber/src/main/java/com/jakeporter/guessthenumber/service/GuessServiceLayer.java | UTF-8 | 1,450 | 3.03125 | 3 | [] | no_license | package com.jakeporter.guessthenumber.service;
import com.jakeporter.guessthenumber.entities.Game;
import com.jakeporter.guessthenumber.entities.Round;
import java.util.List;
/**
*
* @author jake
*/
public interface GuessServiceLayer {
public int startGame();
/**
*
* @param guess
* @pa... | true |
ee6981696797a32c2948d5ab21811bed4558a051 | Java | ElginAmandla/tiy-java-spring-2016-week6 | /src/tiy/week6/SultonRunner.java | UTF-8 | 371 | 2.515625 | 3 | [] | no_license | package tiy.week6;
/**
* Created by Sulton on 5/2/2016.
*/
public class SultonRunner extends RunnerBase {
public SultonRunner(Programmer programmer) {
super(programmer);
}
public static void main(String[] args) {
Sulton sulton = new Sulton();
SultonRunner runner = new SultonRunne... | true |
0b65813f246bd91e35de6c9320e1b47f3af00f00 | Java | gpwGrabberProjekt/grabber | /GpwGrabber/src/com/gpw/grabber/utility/InitSpolkaComboValues.java | WINDOWS-1250 | 628 | 2.421875 | 2 | [] | no_license | package com.gpw.grabber.utility;
import com.gpw.grabber.engine.parsing.GpwGrabberParsingEngine;
import com.gpw.grabber.engine.parsing.IGpwGrabberParsingEngine;
import javafx.scene.control.ComboBox;
/**
*
* @author GK
*
* Klasa odpowiedzialna za inicjacj listy nazw spek
*
*/
public class InitSpolkaComboValue... | true |
0bee8069b13460586ba4c65bbce1a04acb714257 | Java | Evelops/SABANA | /app/src/main/java/com/example/sabana/ConviListActivity.java | UTF-8 | 1,536 | 1.90625 | 2 | [] | no_license | package com.example.sabana;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class ConviListActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sav... | true |
32edeb0b87e79ace5462fe488cd82876cca8304d | Java | jaybhate214/abstract | /src/main/java/com/att/cmlp/bot_demo/service/IntentExtractor.java | UTF-8 | 4,989 | 2.3125 | 2 | [] | no_license | package com.att.cmlp.bot_demo.service;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import com.fasterxml.jackson.databind.exc.InvalidFormatException;
import opennlp.tools.chunker.ChunkerME;
import opennlp.tools.ch... | true |
cc577294f289be41a0cda8ae339c64b30434539e | Java | beenham/PixelDungeon | /core/src/net/team11/pixeldungeon/game/items/Item.java | UTF-8 | 1,861 | 2.78125 | 3 | [] | no_license | package net.team11.pixeldungeon.game.items;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import java.util.UUID;
public class Item {
private ClickListener listener = new ClickListener();
protect... | true |
d8843fd5f634a9ce5814eb8059f526ba06f9584f | Java | journeyjava0/Java-Fundamentals | /src/labs_examples/datastructures/linkedlist/labs/CustomLinkedList/ControllerLinkedList.java | UTF-8 | 1,469 | 3.921875 | 4 | [] | no_license | package labs_examples.datastructures.linkedlist.labs.CustomLinkedList;
//Exercise 2 from datastructures/linkedlist
/**
* LinkedLists - ControllerLinkedList
*
* Write your own custom LinkedList class. Although it can mimic the CustomLinkedList
* class we used here, it must be entirely unique. Please a... | true |
9279090e187c5602616b37edbbe6655bf483d787 | Java | gharizanov92/Java | /Java Exam Problems/MostCommon/MostCommon.java | UTF-8 | 2,173 | 3.453125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created by user on 11/8/2015.
*/
public class MostCommon {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
List<String> firs... | true |
f1bb829a3eda3cf2d757c9b04dd68cd9d4357da2 | Java | mitroistefan1/APD | /MatrixMultiplication/MatrixMultipicationThreads/src/p/MatrixMultiplication.java | UTF-8 | 119 | 1.867188 | 2 | [] | no_license | package p;
public interface MatrixMultiplication {
public double[][] multiplication(double[][] A, double[][] B);
}
| true |
21b51df88a16d494f1811da912900270a7888a45 | Java | Trisaa/VoiceHelper | /app/src/main/java/com/voice/android/VoiceControlActivity.java | UTF-8 | 4,378 | 2.1875 | 2 | [] | no_license | package com.voice.android;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;
import com.google.gson.Gson;
impor... | true |