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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b880b6d9ce98251d5c14794414e2573bfdf85909 | Java | zuozhuangzhuang/fangyuanyouyue | /business-system/goods-service/src/main/java/com/fangyuanyouyue/goods/model/GoodsCategory.java | UTF-8 | 2,021 | 2.046875 | 2 | [] | no_license | package com.fangyuanyouyue.goods.model;
import java.util.Date;
/**
* 商品类目表
*/
public class GoodsCategory {
private Integer id;
private Integer parentId;//上级id
private String name;//类目名称
private String imgUrl;//图片地址
private Integer sort;//排序
private Integer type;//类型 1普通 2热门
private... | true |
87be63c57d10ad29df375703a78fa63b0e41bdd7 | Java | danny-andersen/network-event-graph | /pcap-to-neo-domain/src/test/java/com/dsa/pcapneo/domain/IpSessionTest.java | UTF-8 | 3,712 | 2.3125 | 2 | [] | no_license | package com.dsa.pcapneo.domain;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import org.junit... | true |
e13732f17fff3ecf028c5f0acde91c12637cdb28 | Java | largecats/flink-learning | /example/src/main/java/window/windowFunction/SmallestReduceProcess.java | UTF-8 | 3,304 | 2.734375 | 3 | [] | no_license | package window.windowFunction;
import org.apache.flink.api.common.eventtime.WatermarkStrategy;
import org.apache.flink.api.common.functions.AggregateFunction;
import org.apache.flink.api.common.functions.ReduceFunction;
import org.apache.flink.api.java.tuple.*;
import org.apache.flink.streaming.api.datastream.DataStre... | true |
0a3163b9344ab2160d426395779b8bffa847e735 | Java | SjoerdvanderHeijden/endless-ql | /Jorick_Mihai/src/org/uva/jomi/qls/ast/statements/widget/SpinboxWidgetStmt.java | UTF-8 | 192 | 1.953125 | 2 | [] | no_license | package org.uva.jomi.qls.ast.statements.widget;
public class SpinboxWidgetStmt extends WidgetStmt {
@Override
public <T> T accept(Visitor<T> visitor) {
return visitor.visit(this);
}
}
| true |
d88dd84fd5cb3f6e13f3ce210279edb5de804d4c | Java | Mooad/MEDYEDEK | /medyedek-global/MEDYEDEK/src/main/java/org/sid/service/inscriptionservices/UserService.java | UTF-8 | 3,497 | 2.046875 | 2 | [] | no_license | package org.sid.service.inscriptionservices;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.O... | true |
84c579dd7d091507c5deb7b8e67250e1b9d5836f | Java | hjc851/SourceCodePlagiarismDetectionDataset | /Variant Programs/2/2-9/Starter.java | UTF-8 | 2,411 | 2.296875 | 2 | [
"MIT"
] | permissive | import java.util.*;
public class Starter {
private static final int synX700int = 1;
private static final int synX699int = 1476562084;
private static final String synX698String = "CLOCK";
private static final String synX697String = "LRU";
private static final double synX696double = 0.9129971829763651;
priva... | true |
51fafe371d4adce509da187aac9d76098ee550f2 | Java | LynetteNB/java-exercises | /src/Rotations.java | UTF-8 | 1,550 | 3.375 | 3 | [] | no_license | //Input:
// - a string strng
// - an array of strings arr
//Output of function contain_all_rots(strng, arr) (or containAllRots or contain-all-rots):
// - a boolean true if all rotations of strng are included in arr (C returns 1)
// - false otherwise (C returns 0)
//#Examples:
//contain_all_rots(
//"bsjq", ["bsjq", "qbs... | true |
b69a99d47808c6a82ee5036c023848eaaf9cfe8e | Java | kunalmanch/algoIV | /src/main/java/my/practice/numbers/Strobogrammatic.java | UTF-8 | 901 | 3.578125 | 4 | [] | no_license | package my.practice.numbers;
import java.util.HashMap;
/**
* Created by kmishra on 8/22/2016.
*/
public class Strobogrammatic {
private final static HashMap<Integer, Integer> map = new HashMap<>();
static {
map.put(0, 0);
map.put(1, 1);
map.put(6, 9);
map.put(9, 6);
... | true |
5152d693be7dfd34837d582eb7eb91f61cfb05e7 | Java | jonnymoore12/twu-biblioteca-jonny-moore | /src/com/twu/biblioteca/UserAccount.java | UTF-8 | 926 | 2.9375 | 3 | [] | no_license | package com.twu.biblioteca;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Created by JonnyM on 23/02/2017.
*/
public class UserAccount {
private List<User> users = new ArrayList(Arrays.asList(new User("Jonny", "jonny@mail.com",
"5551234", "123-4567", "password"))... | true |
fa382bf58f210fecfaafa39c64d2bcb12ce94f25 | Java | RAGURAM-S/Spring | /SourceCode/src/learn/java/Warehouse.java | UTF-8 | 894 | 2.8125 | 3 | [] | no_license | package learn.java;
import java.util.Arrays;
public class Warehouse {
int wareHouseID;
float totalArea;
String location;
String[] workers;
// alt + shift + s + r
@Override
public String toString() {
return "Warehouse [wareHouseID=" + wareHouseID + ", totalArea=" + totalArea + ", location=" + location
... | true |
61b1fad166405e65fee7046b5f7fc14f07a48c70 | Java | AriElisa8/IglooERP-1 | /src/main/java/com/igloo/category/service/CategoryService.java | UTF-8 | 633 | 1.984375 | 2 | [] | no_license | package com.igloo.category.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.igloo.category.model.Category;
import com.igloo.category.response.CategoryAdapter;
import com.igloo.category.response.CategoryResponse;
... | true |
8f5e7df99dd4fb7ac13f461e7663209a915a5f15 | Java | jazzlly/java-example | /001.basic/src/test/java/com/java/examples/basic/enumdemo/PersonTest.java | UTF-8 | 705 | 3.390625 | 3 | [] | no_license | package com.java.examples.basic.enumdemo;
import org.junit.Test;
public class PersonTest {
@Test
public void smoke() {
System.out.println(Person.builder()
.name("wuyifan")
.age(35)
.sex(Person.Gender.FEMALE)
.build());
}... | true |
441f64b24ee6f8a001b13cc206f613b1ddb07c2e | Java | uranik777/SafeDocXmlWork | /src/com/_4ds/safedoc/processing/impl/SafeDocErrorImpl.java | UTF-8 | 2,473 | 2.125 | 2 | [] | no_license | package com._4ds.safedoc.processing.impl;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import com._4ds.eclient.NskCall.EClientError;
import com._4ds.safedoc.processing.SafeDocError;
/**
* @author Yan
* @author AlexD updated: 20... | true |
032ab44069496fed82f13b089717b546c61f655f | Java | cuongthai/dungeon | /src/Dugeon/src/com/rmit/sea/gameengine/mapmodel/pixel/ViewablePixel.java | UTF-8 | 380 | 2 | 2 | [] | no_license | package com.rmit.sea.gameengine.mapmodel.pixel;
import java.awt.Color;
public interface ViewablePixel {
Coordinate getCoordinate();
void setCoordinate(Coordinate c);
Color getColor();
char getRepresentChar();
void setOnSight(boolean isOnSight);
boolean isOnSight();
void setDisco... | true |
29fdfeff3559426fde896dd14aabd675729ee4fd | Java | ronanmiotto/sistemabancoDSD | /src/Servidor.java | UTF-8 | 579 | 2.8125 | 3 | [] | no_license | import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class Servidor {
public static void main(String[] args) throws IOException {
Banco banco = new Banco();
ServerSocket servidor = new ServerSocket(12345);
System.out.println("Porta 172.16.1.100 aberta!");
... | true |
a464bf8d8b38fec32c447ae1c4dced3327d7e48c | Java | jonathanlai/GasPrices | /src/test/java/net/trajano/gasprices/test/UpdateServiceTest.java | UTF-8 | 720 | 2.25 | 2 | [] | no_license | package net.trajano.gasprices.test;
import net.trajano.gasprices.GasPricesUpdateService;
import android.content.Intent;
import android.test.ServiceTestCase;
public class UpdateServiceTest extends ServiceTestCase<GasPricesUpdateService> {
/**
* Must set up a default constructor where the class is passed to the supe... | true |
68698529e029f8b524081fa057bba5c79e893872 | Java | BarhoumiNizar/Servlet-Jsp-Hibernate | /src/metier/notificationInterface.java | UTF-8 | 610 | 1.953125 | 2 | [] | no_license | package metier;
import java.util.List;
import Model.notification;
public interface notificationInterface {
//CRUD: les methodes
public List<notification> getALLnotifications(String classe);
public void deleteNotification(int id);
public void ModifierNotification(notification notif);
public List<notificat... | true |
e4ac4422c55b539176ff34a6df38bc5445128057 | Java | aneshodza/translator | /Backend/SoureCode/src/main/java/ah/com/backend/Model/ReturnMessage.java | UTF-8 | 469 | 2.4375 | 2 | [] | no_license | package ah.com.backend.Model;
/**
* @class: ReturnMessage
* @author: Anes Hodza
* @version: 28.08.2021
**/
public class ReturnMessage {
private String message;
private boolean hasWorked;
public ReturnMessage(String message, boolean hasWorked) {
this.message = message;
this.hasWorked ... | true |
a80b91757b5409b9cd47bc7d038d5935426e2e25 | Java | voltun/SWEN30006-Automail-Robot | /Automail/swen30006/src/automail/Normal.java | UTF-8 | 335 | 2.890625 | 3 | [] | no_license | package automail;
public class Normal extends Mode {
public Normal() {
this.carryCapacity = 2;
this.floorSpeed = 1;
}
@Override
public int update(int currentFloor, int destFloor, boolean areWeOnTheRightFloor, Robot robot) {
if(currentFloor < destFloor)
return ++currentFloor;
else
return --currentF... | true |
317f1ff09989332bf0aa6dd2a975e5168b777956 | Java | annanyadarum/RSOI | /userService/src/main/java/userService/web/model/Request/UserRequest.java | UTF-8 | 1,760 | 2.3125 | 2 | [] | no_license | package userService.web.model.Request;
import com.google.common.base.MoreObjects;
public class UserRequest {
private String lastName;
private String firstName;
private String middleName;
private String clientId;
private String passwordHash;
public String getLastName() {
return last... | true |
d7b644db7d91ea707400e4d8dd4c5b1a8a435258 | Java | macartur-UNB/ProjetoOpera | /Codigo_Fonte_projeto/Codigo_Novo_Manutentação/OPERA_RPG/src/control/Controle_Caracteristica.java | UTF-8 | 7,605 | 2.65625 | 3 | [] | no_license | package control;
import java.io.FileNotFoundException;
import java.io.IOException;
import model.classes.Caracteristica;
import model.classes.Caracteristica_Especifica;
import model.dao.DAO_Caracteristica;
import model.exception.ArquivoInvalidoException;
import model.exception.CaracteristicaInvalidaException;
... | true |
9b59d3b47abc42d0d93a02fda156cd45d098a09d | Java | handong106324/dongex | /src/main/java/com/dong/invest/model/pairs/BinanceInterval.java | UTF-8 | 1,033 | 2.78125 | 3 | [] | no_license | package com.dong.invest.model.pairs;
public enum BinanceInterval {
ONEMIN("1m", 60000),
THREE_MIN("3m", 3 * 60000),
FIVE_MIN("5m", 5 * 60000),
FIFTEEN_MIN("15m", 15 * 60000),
THRITY_MIN("30m", 30 * 60000),
ONE_HOUR("1h", 60 * 60000),
TWO_HOUR("2h", 120 * 60000),
FOUR_HOUR("4h", 240 * 6... | true |
66a50f1cb2d126caf8df00e1133b28bf7009fdf8 | Java | jilinwula/jilinwulas | /jilinwula-aop/src/main/java/com/jilinwula/aop/aspectj/PreGreetingAspect.java | UTF-8 | 374 | 2.296875 | 2 | [] | no_license | package com.jilinwula.aop.aspectj;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
/**
* 标识为一个切面
* @author jilinwula@foxmail.com
* @datetime 16/9/17 下午5:13
*/
@Aspect
public class PreGreetingAspect {
@Before("execution(* greetTo(..))")
public void beforeGreeting() {
... | true |
abd132b9481ebfa752c808f951e15c8d32794f92 | Java | RinesThaix/Serena | /src/main/java/sexy/kostya/serena/exact/LocalSerena.java | UTF-8 | 2,419 | 2.3125 | 2 | [] | no_license | package sexy.kostya.serena.exact;
import sexy.kostya.serena.Serena;
import sexy.kostya.serena.gui.GuiUpdateRequest;
import sexy.kostya.serena.network.SerenaNetworkServer;
import sexy.kostya.serena.network.protocol.Packet5UpdateMaxLogsAmount;
import sexy.kostya.serena.network.protocol.Packet6ServiceRegistration;
import... | true |
2ac2ad1fae6b39247e7d68c682ebb13ff44a1d73 | Java | DeloitteDigitalRO/DDWatch | /src/main/java/com/deloitte/ddwatch/model/ProjectRepo.java | UTF-8 | 1,259 | 2.078125 | 2 | [] | no_license | package com.deloitte.ddwatch.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.*;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "project_repo")
public class ProjectRepo {
... | true |
3dc12e03ff779e87d8d26d8d3a289d1008d69977 | Java | penoncel/zq-web-api | /src/main/java/com/mer/project/service/sms/SmsSandSendPo.java | UTF-8 | 586 | 2.078125 | 2 | [] | no_license | package com.mer.project.service.sms;
import com.mer.framework.config.redis.keyset.KeyPrefix;
import lombok.Data;
/**
* @Program: zq-web-api
* @Description: 短信实体
* @Author: 赵旗
* @Create: 2020-12-09 16:48
*/
@Data
public class SmsSandSendPo {
/** 手机号 **/
private String phone;
/** 消息内容 **/
private S... | true |
835d5a07a64e07448b60320a6c9e33eef993dbe0 | Java | piyush-2712/UM-Generic_Client | /src/main/java/com/company/um/authz/client/authentication/CustomAccessDeniedHandler.java | UTF-8 | 1,134 | 2.15625 | 2 | [] | no_license | package com.company.um.authz.client.authentication;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springf... | true |
78d3f22fcb03400307e0adc80e2ef41fba079822 | Java | ManishJangid007/my-java-notes | /Cuboid.java | UTF-8 | 1,374 | 4.1875 | 4 | [] | no_license | public class Cuboid { // Example of Multiple Constructor
int width;
int height;
int depth;
Cuboid(int width, int height, int depth) {
this.width = width;
this.height = height;
this.depth = depth;
}
Cuboid(int width, int height) {
this.width = width;
this... | true |
5b0e47494b849d68b4e0380e8ff6a5cdbc3bec5d | Java | jc-oliveira/ATM-EBEP | /src/com/atm/hardware/BancoDeDados.java | ISO-8859-1 | 2,129 | 3.03125 | 3 | [] | no_license | package com.atm.hardware;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import com.atm.software.ContaCorrente;
import com.atm.software.Usuario;
public class BancoDeDados {
List<ContaCorrente> contas = new ArrayList<ContaCorrente>();
public BancoDeDados() {
Usuario titularC1 ... | true |
2cb8056abd486174509b51c763dec92ee60af2b7 | Java | UTTAM2311/LearnR | /java/news-analysis/src/main/java/com/imaginea/dc/constants/NewsSource.java | UTF-8 | 263 | 1.640625 | 2 | [] | no_license | package com.imaginea.dc.constants;
public class NewsSource {
public static final String BBC = "BBC";
public static final String NyTime = "NY Times";
public static final String Google = "Google News";
public static final String Hindu = "The Hindu";
}
| true |
f4606a8f04be69bdc1b6f768805cdc96356b7729 | Java | archer258/idea_develop | /src/main/java/myFirstMain.java | UTF-8 | 165 | 2.21875 | 2 | [] | no_license | public class myFirstMain {
public static void main(String[] args) {
System.out.print("This is my first time to use the IDEA.Welcome,Archer.");
}
}
| true |
d6d5367ec765eee892b159d3c782b4f4cff56ead | Java | haducloc/expense-tracker | /src/main/java/com/expensetracker/auth/AccountPrincipal.java | UTF-8 | 543 | 2.234375 | 2 | [] | no_license | package com.expensetracker.auth;
import com.appslandia.plum.base.UserPrincipal;
/**
*
* @author <a href="mailto:haducloc13@gmail.com">Loc Ha</a>
*
*/
public class AccountPrincipal extends UserPrincipal {
final int accountId;
final String dispName;
public AccountPrincipal(int accountId, String email, String d... | true |
63273ddc66158ada2f1b8f0d0034bddabd1e181f | Java | Team488/SeriouslyCommonLib | /src/main/java/xbot/common/math/PIDPropertyManager.java | UTF-8 | 7,151 | 1.945313 | 2 | [] | no_license | package xbot.common.math;
import dagger.assisted.Assisted;
import dagger.assisted.AssistedFactory;
import dagger.assisted.AssistedInject;
import xbot.common.logging.RobotAssertionManager;
import xbot.common.properties.BooleanProperty;
import xbot.common.properties.DoubleProperty;
import xbot.common.properties.Propert... | true |
beba4391711393e7fe5b4c4925a4847c536b7fe4 | Java | ken-wang/spring-cloud-practice | /oauth-service/src/main/java/project/k/w/oauth/security/granter/DeviceProxyTokenGranter.java | UTF-8 | 2,153 | 2.171875 | 2 | [] | no_license | package project.k.w.oauth.security.granter;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframewo... | true |
bd1bbdfd08e5a798ff9098f656e09739e47d02b9 | Java | JasonSCTT/java-learning-guogai | /code/network/src/com/guogai/_01_base/MutilServerDemo.java | UTF-8 | 1,582 | 3.171875 | 3 | [] | no_license | package com.guogai._01_base;
import com.guogai._02_tcp.Server;
import javax.xml.bind.ValidationEvent;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by guo on 2018/1/24.
* 处理多个客户端
*/
public c... | true |
fce1759a84905449257a1e1e08c93cbc66759a04 | Java | zensezz/spring | /spring-core/src/main/java/cn/zz/framework/core/entity/AspectPoint.java | UTF-8 | 439 | 2.03125 | 2 | [] | no_license | package cn.zz.framework.core.entity;
import lombok.Data;
/**
* @Author zenghzong
* @Since 2019/8/23
* @Version 1.0
*/
@Data
public class AspectPoint extends BaseModel{
private AspectAbler abler;
private Object[] params;
public AspectPoint(AspectAbler abler, Object[] params) {
super();
this.abler = abl... | true |
4d4cb45c960b118adcbc88ddd839816f82a318d3 | Java | rsun07/Java_NoteBook | /java/src/test/java/pers/xiaoming/notebook/util/object_methods/CompareFunctions.java | UTF-8 | 847 | 2.78125 | 3 | [] | no_license | package pers.xiaoming.notebook.util.object_methods;
import pers.xiaoming.notebook.util.generictype.PersonAgeComparitor;
import pers.xiaoming.notebook.entity.Person;
import java.util.Arrays;
import java.util.List;
import java.util.TreeSet;
public class CompareFunctions {
public static void main(String args[]) {
... | true |
8d19121aa88146a87107d40552f4577f08485707 | Java | MohawkMEDIC/SharedHealthIntegrationComponents | /org.marc.shic.pix/src/main/java/org/marc/shic/pix/messages/QueryBasedParameter_Q22.java | UTF-8 | 6,728 | 1.921875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2013 Mohawk College of Applied Arts and Technology
*
* 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 ... | true |
5d8cc1156c50dc87c49512a330b4ea82a4b3bcd4 | Java | xuliangliang1995/dubbo-nacos | /pay-service-provider/src/main/java/com/grasswort/picker/pay/PayProviderBootstrap.java | UTF-8 | 665 | 1.6875 | 2 | [] | no_license | package com.grasswort.picker.pay;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @author xuliangliang
* @Classname PayProviderBootstrap
* @Description 服务提供者启... | true |
4accec76066b58f170a95bf063a028a6c5c210b3 | Java | vasskob/Firebase-Accelerometer | /app/src/androidTest/java/com/task/vasskob/firebase/ui/UpLoadFileActivityTest.java | UTF-8 | 655 | 1.625 | 2 | [] | no_license | package com.task.vasskob.firebase.ui;
import android.support.test.filters.SmallTest;
import android.support.test.runner.AndroidJUnit4;
import com.task.vasskob.firebase.R;
import org.junit.Test;
import org.junit.runner.RunWith;
import static android.support.test.espresso.Espresso.onView;
import static android.suppor... | true |
f6d640cc4aaece5081d866dbd0a9e2ccfd6385ca | Java | sureshgl/Verilog-Parser | /tools/com/proteus/cgen/verilogprime/SetExtendedContextVisitor.java | UTF-8 | 931,153 | 2.109375 | 2 | [] | no_license | package com.proteus.cgen.verilogprime;
import org.antlr.v4.runtime.ParserRuleContext;
import com.proteus.cgen.verilogprime.gen.VerilogPrimeParserBaseVisitor;
import com.proteus.cgen.verilogprime.gen.VerilogPrimeParser.*;
import com.proteus.cgen.verilogprime.ext.*;
public class SetExtendedContextVisitor extends Veril... | true |
ec8c8a942cab79eb7e929c5018f3434ec9261079 | Java | sambutler12/School_Projects | /2500 - Butler, Samuel/2500-Lab2/src/SupportLL/SkipListNode.java | UTF-8 | 1,019 | 3.1875 | 3 | [] | no_license | package SupportLL;
public class SkipListNode
{
public String target; // String that goes with the node
public int value; // the int value that goes with the node
public SkipListNode up; // up link
public SkipListNode down; // down link
public SkipListNode right; // right link
public SkipListNode left; // left... | true |
0a8af1908b931949bf51b36cae7fe33165514181 | Java | fadhilfath/30-Days-Of-Code | /day5.java | UTF-8 | 1,307 | 3.328125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */... | true |
4c040faaac910422ff410bc1325f2aa2515f1f50 | Java | HumboldtWirelessLab/helper | /src/Npart/src/NPART/Node.java | UTF-8 | 6,905 | 3.09375 | 3 | [] | no_license | /**
* @author milic bratislav
* Humboldt University, Berlin
* milic@informatik.hu-berlin.de
*
*
*/
package NPART;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
class LinkStats {
public double lq, ilq, etx;
public LinkStats(double a, dou... | true |
aa8adb1251994589b9bfabe4591e4d5d344ab29c | Java | naver/ngrinder | /ngrinder-core/src/test/java/org/ngrinder/monitor/collector/MonitorCollectorTest.java | UTF-8 | 1,060 | 2.3125 | 2 | [
"Apache-2.0",
"MIT",
"CC0-1.0",
"TMate",
"LicenseRef-scancode-westhawk",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain",
"EPL-1.0",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-sun-no-high-risk-activities"
] | permissive | package org.ngrinder.monitor.collector;
import org.junit.Test;
import org.ngrinder.monitor.share.domain.BandWidth;
import org.ngrinder.monitor.share.domain.SystemInfo;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Mockito.spy;
import static org... | true |
80527ca8bb10898b65ac6af24c595a0af85d99f2 | Java | zwn888zwn/javaStudy | /JavaXunLian/src/$5/d5t.java | UTF-8 | 961 | 2.859375 | 3 | [] | no_license | package $5;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
public class d5t {
public static void main(String[] args) throws IOException {
StreamTokenizer st = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
... | true |
72922023c78e965395ea33635776361ea5a58777 | Java | initrail/contractor | /servlets/account_servlets/ValidateCookie.java | UTF-8 | 615 | 2.234375 | 2 | [] | no_license | package account_servlets;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import accountmanager.SessionManager;
public class ValidateCookie extends HttpServlet{
/*... | true |
fca6d9ae13c526f689e8e4e49782cb13fc5126d5 | Java | League-Level0-Student/level-0-module-4-jacobhandy | /src/ownAdventure.java | UTF-8 | 2,334 | 3.390625 | 3 | [] | no_license | import javax.swing.JOptionPane;
public class ownAdventure {
public static void main(String[] args) {
int x = JOptionPane.showOptionDialog(null, "You wake up for school this morning. There is a starship that landed at your house. How do you respond to this?", "Title", 0, JOptionPane.INFORMATION_MESSAGE, null,... | true |
e25783f1e5df20e3dda628294e98f5c70db802a5 | Java | reference-project/credit-project | /web-project/credit-web/src/main/java/com/amass/credit/modules/objection/entity/GradeObjection.java | UTF-8 | 3,239 | 2.046875 | 2 | [] | no_license | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.amass.credit.modules.objection.entity;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.amass.credit.... | true |
93f31b5694aabb1d2a45cd14609526473c7a09fb | Java | VsLoureiro/stemptag | /src/cintil/CRFFeatureExtractor.java | UTF-8 | 12,279 | 2.109375 | 2 | [] | no_license | package cintil;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.PrintWriter;
import ... | true |
8d6d242eca04b68777d4bc37581f6bce7054eba4 | Java | achchhelalMaddheshiya/CoreJava | /Collection/LinkedListDemo1.java | UTF-8 | 614 | 3.53125 | 4 | [] | no_license | import java.util.*;
class LinkedListdemo1
{
public static void main(String[] args)
{
LinkedList <String> ll=new LinkedList<String>();
ll.add("Ravi ");
ll.add("mohan");
ll.add("Ashok");
ll.addFirst("Achchhelal");
ll.addLast("Kamlesh");
ListIterator itr=ll.listIterator();
System.out... | true |
5052fe73719603eeb51b86634c48c1604ae161b9 | Java | rainzhao/example | /src/main/java/com/example/demo/taskrun/ServiceTask.java | UTF-8 | 560 | 2.8125 | 3 | [] | no_license | package com.example.demo.taskrun;
import java.util.concurrent.Callable;
/**
* @author zhaoyu
* @date 2019-08-17
*/
public class ServiceTask<T> implements Callable<T> {
/**
* callable
*/
private Callable<T> callable;
private T result;
public ServiceTask(Callable<T> callable) {
... | true |
f32ccbd154a758379d7aeb711d88a270d96ec8e7 | Java | kohming/api-scylla | /src/main/java/com/scylla/api/scyllaapi/models/SvSurveyTypeAns.java | UTF-8 | 972 | 2.140625 | 2 | [] | no_license | package com.scylla.api.scyllaapi.models;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Ta... | true |
4e504228ce74725ac2d0be12d924dfc96cc3bd7d | Java | siguangyu/yzshopping | /service_impl/src/main/java/com/lynu/yzshopping/service/impl/ScoreShopServiceImpl.java | UTF-8 | 5,196 | 1.953125 | 2 | [] | no_license | package com.lynu.yzshopping.service.impl;
import com.github.pagehelper.PageHelper;
import com.lynu.yzshopping.dao.ScoreDao;
import com.lynu.yzshopping.dao.ScoreShopDao;
import com.lynu.yzshopping.dao.UserGoodMappingDao;
import com.lynu.yzshopping.mybatis.entity.Score;
import com.lynu.yzshopping.mybatis.entity.ScoreSho... | true |
836a5f146ad9a4ae18c67a797b940a4346a748bd | Java | ajaybhima/sTAF_Test | /src/com/careerit/web/utils/ExcelReadWriteUtils.java | UTF-8 | 1,599 | 2.53125 | 3 | [] | no_license | package com.careerit.web.utils;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DataFormatter;
import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.... | true |
6ae79b6da458e99083c95a853c904c7843dc3135 | Java | lukemcd9/rest-project | /src/main/java/io/github/lukemcd9/restproject/configuration/DatabaseConfig.java | UTF-8 | 3,086 | 2.0625 | 2 | [] | no_license | package io.github.lukemcd9.restproject.configuration;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation... | true |
98f47d5db4597df8bf0ea9fa0d1855738659fc5e | Java | alvarohsp/Java_Basics | /src/Collections2/ExercicioArcoIris.java | UTF-8 | 1,754 | 3.640625 | 4 | [] | no_license | package Collections2;
import java.util.*;
public class ExercicioArcoIris {
public static void main(String[] args) {
Set<String> arcoIris = new LinkedHashSet<>();
arcoIris.add("Vermelho");
arcoIris.add("Laranja");
arcoIris.add("Amarelo");
arcoIris.add("Verde");
arco... | true |
570aa5160ad6358f240f48ae9cf8b10b9be6ae52 | Java | looooogan/icomp-mq200-server | /icomp_wsdl/src/com/icomp/wsdl/v01c04/c04s001/endpoint/StockingInfo.java | UTF-8 | 1,455 | 1.953125 | 2 | [] | no_license | package com.icomp.wsdl.v01c04.c04s001.endpoint;
import java.io.Serializable;
public class StockingInfo implements Serializable{
/**
*
*/
private static final long serialVersionUID = -5403452703963061345L;
private String toolCode;
public String getToolCode() {
return toolCode;
}
public void setTool... | true |
adfbf134d380de5bf51772fb7d1ff8c102462f16 | Java | mbuettne/BestXI | /BestXICapstone/src/main/java/com/mbuettner/BestXICapstone/Repositories/playerRepo.java | UTF-8 | 844 | 2.0625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mbuettner.BestXICapstone.Repositories;
import com.mbuettner.BestXICapstone.Entities.Player;
import java.util.List;
import ... | true |
88b008c2c5e7125813ce19d93937e1fc5bffb205 | Java | dpepe20/appandroid | /Preiser/app/src/main/java/com/example/aprendiz/preiser/fragments/AcercaDeFragment.java | UTF-8 | 3,838 | 2.09375 | 2 | [] | no_license | package com.example.aprendiz.preiser.fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.Vie... | true |
30f83226ac11c81ae89c30be0554ca8ae2b766ca | Java | gitChurros/Churros | /src/db/MemberAdivce.java | UTF-8 | 1,422 | 2.796875 | 3 | [] | no_license | package db;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
@Aspect
public class MemberAdivce {
// @Around = 어드바이스, before, after도 어드바이스
@Ar... | true |
60746889bdb57897119f12dd03a3258c8e638c7d | Java | h0tcatSub/libgdx-design | /editor/src/main/java/com/libgdxdesign/core/command/ImportFileCommand.java | UTF-8 | 310 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package com.libgdxdesign.core.command;
public class ImportFileCommand implements Command {
@Override
public void execute(CommandExecutor commandExecutor) {
// TODO Auto-generated method stub
}
@Override
public void undo(CommandExecutor commandExecutor) {
// TODO Auto-generated method stub
}
}
| true |
b328406e4ad936f05f59890646c262ffdbe3b774 | Java | JurenIvan/Nenr | /fuzzy-logic/src/test/java/hr/fer/zemris/nenr/fuzzy/set/MutableFuzzySetTest.java | UTF-8 | 945 | 2.75 | 3 | [] | no_license | package hr.fer.zemris.nenr.fuzzy.set;
import hr.fer.zemris.nenr.fuzzy.domain.DomainElement;
import hr.fer.zemris.nenr.fuzzy.domain.impl.Domain;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class MutableFuzzySetTest {
@Test
public void MutableFuzzySetConstructorCalled_argumentIs... | true |
ba871c1b3eebe97695fe0f80e5f7c799112883a6 | Java | YOUNESSTIZI/TiziCryp | /src/main/java/com/luv2code/springbootDemo/myApp/entity/Frequence.java | UTF-8 | 465 | 2.34375 | 2 | [] | no_license | package com.luv2code.springbootDemo.myApp.entity;
public class Frequence {
private int frequence = 1 ;
public Frequence() {
}
public Frequence(int frequence) {
this.setFrequence(frequence);
}
public int getFrequence() {
return this.frequence;
}
public void setFrequence(int frequence) ... | true |
c4877b15559149e5aa2433de6682f64bd9282a46 | Java | Cioby92/Lab2 | /src/Packets/Interfaces/IAnimal.java | UTF-8 | 203 | 2.21875 | 2 | [] | no_license | package Packets.Interfaces;
/**
* Created by Ciobotaru on 31.10.2014.
*/
public interface IAnimal {
public void getSpecie();
public void getNrPicioare();
public void setNume(String a);
}
| true |
8313f49256114d641b2c47b9602e7820cc7f2075 | Java | vincentMasclet/maven2.1 | /src/main/java/Dao/DaoEnseignementJpaImpl.java | UTF-8 | 775 | 2.1875 | 2 | [] | no_license | package Dao;
import java.util.List;
import Model.Enseignement;
import Model.EnseignementPk;
public class DaoEnseignementJpaImpl implements DaoEnseignement{
@Override
public List<Enseignement> findAll() {
// TODO Auto-generated method stub
return null;
}
@Override
public Enseignement findByKey(Enseignement... | true |
3e7b2bdd136ec15aff47a1c3aa573deb88142fdb | Java | GiorgiSheklashvili/Authcoin-Android | /app/src/main/java/com/authcoinandroid/module/CreateSignaturesModule.java | UTF-8 | 1,046 | 1.992188 | 2 | [] | no_license | package com.authcoinandroid.module;
import android.util.Pair;
import com.authcoinandroid.model.ChallengeResponseRecord;
import com.authcoinandroid.model.SignatureRecord;
import com.authcoinandroid.module.messaging.MessageHandler;
import com.authcoinandroid.service.challenge.ChallengeService;
import com.authcoinandroi... | true |
205fa5f5d01ceb82a02a9e3374e51a4602c21b97 | Java | Dennis-Koch/ambeth | /jambeth/jambeth-util/src/main/java/com/koch/ambeth/util/collections/IMapEntry.java | UTF-8 | 1,075 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package com.koch.ambeth.util.collections;
/*-
* #%L
* jambeth-util
* %%
* Copyright (C) 2017 Koch Softwaredevelopment
* %%
* 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.ap... | true |
92c7d3cbd4abba3ccec5d6591dabca5f64838955 | Java | maharshi95/bis | /choc/src/com/choc/dao/UserDao.java | UTF-8 | 18,724 | 2.59375 | 3 | [] | no_license | package com.choc.dao;
import java.math.BigInteger;
import java.security.SecureRandom;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Lis... | true |
89bcb5b88da933080abe210b9a9f1c3bb9007c2c | Java | Dipleks/Work-progect | /Training/src/Практические_занятия/December_29/WindowTwo.java | UTF-8 | 3,807 | 2.84375 | 3 | [] | no_license | package Практические_занятия.December_29;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.stage.Modality;
import javafx.stage.Stage;
interface WindowTwo {
L... | true |
fb5c0f4f39459ccc634635d9d4b0448e44fdbd06 | Java | QinJiangbo/SpringMVC | /src/main/java/com/qinjiangbo/gen/model/RegtfCentExample.java | UTF-8 | 44,288 | 2.03125 | 2 | [] | no_license | package com.qinjiangbo.gen.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class RegtfCentExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table regtf_cent
*
* @mbggenerated Tue Jun 21 00:00:04 CST 2... | true |
15cab3369fe67e0098eec0a89b084a6d04ecc638 | Java | matteoluzzi/keycloak | /model/api/src/main/java/org/keycloak/models/UserFederationProvider.java | UTF-8 | 1,981 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package org.keycloak.models;
import org.keycloak.provider.Provider;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
*
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a>
* @version $Revision: 1 $
*/
public interface UserFederationProvider extends Provider {
... | true |
a96816296a821e36397bb8f611d9822038234c4d | Java | CyberFlameGO/RoseLoot | /src/main/java/dev/rosewood/roseloot/loot/condition/tags/entity/TraderLlamaConditions.java | UTF-8 | 2,933 | 2.5 | 2 | [
"LicenseRef-scancode-other-permissive"
] | permissive | package dev.rosewood.roseloot.loot.condition.tags.entity;
import dev.rosewood.roseloot.loot.LootContext;
import dev.rosewood.roseloot.loot.condition.EntityConditions;
import dev.rosewood.roseloot.loot.condition.LootCondition;
import dev.rosewood.roseloot.loot.condition.LootConditions;
import java.util.ArrayList;
impor... | true |
8671e68b3707f6a12c525b1c1c4c7a87ce9e28de | Java | FireMasterK/MCProtocolLib-1.8 | /src/main/java/com/github/steveice10/mc/protocol/data/game/values/window/CreativeGrabParam.java | UTF-8 | 144 | 1.5625 | 2 | [
"MIT"
] | permissive | package com.github.steveice10.mc.protocol.data.game.values.window;
public enum CreativeGrabParam implements WindowActionParam {
GRAB;
}
| true |
2095f791a40dd912df2dfe57749c2fd3bf58f4af | Java | cdouthart/iconimport | /src/main/java/com/discoverychurch/icon/domain/IconResponse.java | UTF-8 | 459 | 1.5625 | 2 | [] | no_license | package com.discoverychurch.icon.domain;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class IconResponse {
String number;
String message;
Statistics statistics;
Permissions permissions;
String session;
String role;
int status;
// this is optio... | true |
861ad9f818b4876e97a7b98b542c613f548db512 | Java | invokeG/WebChatV1.0 | /src/dao/GroupDao.java | UTF-8 | 11,184 | 2.4375 | 2 | [] | no_license | package dao;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException... | true |
2541ed89887eab0a04b4af72acc7a4d1d8220392 | Java | BrokenCodes/Sapelli | /Library/src/uk/ac/ucl/excites/sapelli/shared/util/Logger.java | UTF-8 | 3,439 | 2.578125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /**
* Sapelli data collection platform: http://sapelli.org
*
* Copyright 2012-2014 University College London - ExCiteS group
*
* 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
*
* ... | true |
c6b6b5c8c04ad6ff88a95d7b31ce4933abdae0ee | Java | salmanakhtar25/Programming | /src/StringPrograms/CommonPrefix.java | UTF-8 | 633 | 3.296875 | 3 | [] | no_license | package StringPrograms;
public class CommonPrefix {
public static String commonprefix(String[] arr){
String shorteststr=arr[0];
for(String str:arr){
if(str.length()<shorteststr.length()){
shorteststr=str;
}
}
String common="";
for(int i=0;i<shorteststr.length();i++){
String first=arr[0];
for(int ... | true |
8d5c404960329a3ddad22e31e65f5ed05ba0ae79 | Java | robert1111/fancyHeart | /.svn/pristine/8d/8d5c404960329a3ddad22e31e65f5ed05ba0ae79.svn-base | GB18030 | 413 | 2.265625 | 2 | [] | no_license | package com.doteyplay.game.constants.sprite;
public enum SpritePositionType
{
//ǰ
POSITION_TYPE_F()
{
@Override
public String toString()
{
return "ǰ";
}
},
//
POSITION_TYPE_M()
{
@Override
public String toString()
{
return "";
}
},
//
POSITION_TYPE_A()
{
@Ove... | true |
820a18968c37a95358407ca96f31f265bc1e5257 | Java | simeonhearring/app | /core/src/main/java/net/hus/core/shared/util/EntryPointUtil.java | UTF-8 | 2,088 | 2.671875 | 3 | [] | no_license | package net.hus.core.shared.util;
import java.util.HashMap;
import java.util.Map;
public class EntryPointUtil
{
private static final Map<String, String> CHARMAP;
static
{
CHARMAP = new HashMap<>();
CHARMAP.put("$", "%24");
CHARMAP.put("&", "%26");
CHARMAP.put("+", "%2B");
CHARMAP.put(",", "... | true |
2af8a383ac7bcfb309f090266edfe18aa86138c1 | Java | akornienko/bigbluebutton | /bbb-voice/src/main/java/org/bigbluebutton/voiceconf/red5/media/CallStreamObserver.java | UTF-8 | 125 | 1.734375 | 2 | [] | no_license | package org.bigbluebutton.voiceconf.red5.media;
public interface CallStreamObserver {
void onCallStreamStopped();
}
| true |
c593206c8a4cc3c0d16fbde2213c4f3194d88dfe | Java | amberovsky/elements | /src/test/java/pro/amberovsky/elements/util/data/CircularQueueTest.java | UTF-8 | 1,979 | 3.171875 | 3 | [] | no_license | package pro.amberovsky.elements.util.data;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class CircularQueueTest {
CircularQueue<Integer> queue;
@BeforeEach
void initialize() {
queue = new CircularQueue<>(... | true |
36b2ab57eab80eb88ab54172f8660366270e07b7 | Java | akanksh123/Attendance-Management-App | /app/src/main/java/com/example/attendancemanagement/TeacherFragment.java | UTF-8 | 3,642 | 2.296875 | 2 | [] | no_license | package com.example.attendancemanagement;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.wi... | true |
dd421c307aab3f96e3b2290948f97c964acf5b29 | Java | J-avery32/project-t10-animelist | /server/src/main/java/com/github/animelist/animelist/model/response/LoginResponse.java | UTF-8 | 188 | 1.65625 | 2 | [
"MIT"
] | permissive | package com.github.animelist.animelist.model.response;
import com.github.animelist.animelist.entity.User;
public record LoginResponse(boolean success, String token, User user) {
}
| true |
70dee775995cc1fd3e77996a11c871889d73aa24 | Java | Kremliovskyi/NewYorkTimesRevisited | /app/src/main/java/com/kreml/andre/newyorktimesrevisited/utils/NYSharedPreferences.java | UTF-8 | 1,874 | 2.328125 | 2 | [] | no_license | package com.kreml.andre.newyorktimesrevisited.utils;
import android.content.Context;
import android.content.SharedPreferences;
public class NYSharedPreferences {
private SharedPreferences mGeneralPreferences;
private NYSharedPreferences(Context context) {
this.mGeneralPreferences = context.getShared... | true |
97412c56f9c1ce1cfe70818f8806824655103bd5 | Java | aurelhoxha/UniStud | /app/src/main/java/com/example/unistud/Activities/ObjectAdapter.java | UTF-8 | 6,800 | 2 | 2 | [
"MIT"
] | permissive | package com.example.unistud.Activities;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MenuInflater;
import android.view.MenuItem;
i... | true |
3194f2aaa127150dd130dd3dc96c3f324972b542 | Java | hystrixis/EasyWeather | /app/src/main/java/com/example/huang/easyweather/utilities/WeatherJsonUtils.java | UTF-8 | 809 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | package com.example.huang.easyweather.utilities;
import com.example.huang.easyweather.gson.Weather;
import com.google.gson.Gson;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* Created by huang on 2017/6/4.
*/
public class WeatherJsonUtils {
/*
将返回的JSON数据解析成Weather实体类
*/
... | true |
466b9bd0f3711827cece6c5471dc66d1ea7a6f4d | Java | KuaiQuZhouBianYou/ZhouBianYou | /app/src/main/java/com/phone1000/wanttozhoubianyou/discovercontest/DiscoverContest.java | UTF-8 | 753 | 1.5 | 2 | [
"Apache-2.0"
] | permissive | package com.phone1000.wanttozhoubianyou.discovercontest;
/**
* Created by Administrator on 2016/11/28.
*/
public class DiscoverContest {
public static String DISCOVER_URL= "http://apiphp.yaochufa.com/portal/theme/themeinfo?system=android&pageIndex=1&cityCode=370200&channel=yaochufa&pageSize=20&imei=00000000-1621... | true |
2d5cb0f68daab54b7de397576451cd191dc361bd | Java | Orkhan42/openbravotest | /modulesnov3/sa.elm.ob.hcm/src/sa/elm/ob/hcm/event/EmpBusinessMissionEvent.java | UTF-8 | 20,949 | 1.820313 | 2 | [] | no_license | package sa.elm.ob.hcm.event;
import java.util.Date;
import javax.enterprise.event.Observes;
import org.apache.log4j.Logger;
import org.codehaus.jettison.json.JSONObject;
import org.openbravo.base.exception.OBException;
import org.openbravo.base.model.Entity;
import org.openbravo.base.model.ModelProvider;
import org.... | true |
7ddeff9ef7b15572288e58925b3ab35c1602b78a | Java | ashwad96/SIH_Questionnairre | /build/generated/src/org/apache/jsp/view_005fquestion_005fform_jsp.java | UTF-8 | 8,246 | 1.742188 | 2 | [] | no_license | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.ArrayList;
import java.sql.ResultSet;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.Connection;
public final class view_005fquestion_005fform_jsp extends org... | true |
0793de4b9a01e5f04613cceaaa44a179eae7ba43 | Java | kokorin/Jaffree | /src/main/java/com/github/kokorin/jaffree/ffprobe/Chapter.java | UTF-8 | 2,324 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2021 Denis Kokorin
*
* 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 app... | true |
b1ed0cadc159f64601ff40c455c0b5c940b5cd5e | Java | shiwenjie12/LeetCodeQuestion | /src/main/java/Arrays/FindLengthOfLCIS.java | UTF-8 | 486 | 2.859375 | 3 | [] | no_license | package Arrays;
public class FindLengthOfLCIS {
public int findLengthOfLCIS(int[] nums) {
if (nums == null || nums.length == 0)
return 0;
int res = 1;
int max = res;
int pref = nums[0];
for (int i = 1; i < nums.length; i++) {
if (nums[i] > pref) {
... | true |
6bf00319ec71674f0b48ac203c96cdd1a8b4d5c7 | Java | tigerliu0215/PairTesing | /src/test/com/oocl/oobc/parking/ParkingManagerTest.java | UTF-8 | 4,784 | 3 | 3 | [] | no_license | package com.oocl.oobc.parking;
import org.junit.Assert;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.*;
public class ParkingManagerTest {
@Rule
public ExpectedException expectedEx = ExpectedException.none();
private ParkingLot init... | true |
5cad85245c28de53016ea7f7d4b826c2f70b2ca1 | Java | merwinn/AVS | /ll-avs/ll-avs-service/src/main/java/gov/va/med/lom/avs/dao/morphia/BaseMongoDaoImpl.java | UTF-8 | 2,641 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package gov.va.med.lom.avs.dao.morphia;
import java.lang.reflect.ParameterizedType;
import java.net.UnknownHostException;
import java.util.ResourceBundle;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Morphia;
import org.mongodb.morphia.dao.BasicDAO;
import org.mongodb.morphia.query.Quer... | true |
2c7d3fb170640c723c3de19f201121b373e8a166 | Java | pawel-wlk/webcheckers | /test/serverTests/GameControllerTest.java | UTF-8 | 16,052 | 2.625 | 3 | [] | no_license | package serverTests;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import gamelogic.board.BoardSide;
import gamelogic.board.SixPointedStarSide;
import gamelogic.creator.GameCreator;
import gamelogic.exception.*;
import gamelogic.field.Field;
import gamelogic.field.Pawn;
import gamelogic.game.... | true |
4a360ab23d256608a30118385d14061914d3ee0d | Java | mbuechse/vanda-studio | /src/org/vanda/datasources/ElementSelector.java | UTF-8 | 184 | 1.921875 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | package org.vanda.datasources;
import javax.swing.JComponent;
public interface ElementSelector {
JComponent getComponent();
Element getElement();
void setElement(Element e);
}
| true |
40323230b8ef7bfc462c65c04afeb293e69a1eed | Java | snarani7/delphix_masking_gradle | /generator/build/src/main/java/com/delphix/masking/initializer/maskingApi/endpointCaller/GetFileFieldMetadatas.java | UTF-8 | 1,760 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.delphix.masking.initializer.maskingApi.endpointCaller;
import com.delphix.masking.initializer.Constants;
import com.delphix.masking.initializer.Utils;
import com.delphix.masking.initializer.pojo.FileFieldMetadata;
import com.delphix.masking.initializer.pojo.FileFieldMetadataList;
import java.util.ArrayLis... | true |
3f05091204ea7fdc41ce133fd1100788130ccf8e | Java | CSTIB-Hotel/OTCAnalyser | /OTCAnalyser/src/uk/ac/cam/cstibhotel/otcanalyser/communicationlayer/CommunicationLayer.java | UTF-8 | 9,076 | 2.5 | 2 | [
"MIT"
] | permissive | package uk.ac.cam.cstibhotel.otcanalyser.communicationlayer;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import uk.ac.cam.cstibhotel.otcanalyser.dataanalysis.Analyser;
import uk.ac.cam.cstibh... | true |
88f217c356fa34c0232ae89b60a9af51a2dd9bd6 | Java | motocoder/androidcommon | /src/main/java/llc/ufwa/geo/GeoProperties.java | UTF-8 | 202 | 1.960938 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package llc.ufwa.geo;
import llc.ufwa.geo.Constants.GeniusModes;
public interface GeoProperties {
boolean isGenius();
GeniusModes getGeniusMode();
long getMinTime();
double getMinDistance();
}
| true |
ac011715ab1c360660d4cf1d534e93f9bd8bdb4e | Java | 600849155/thread | /src/thread2.java | UTF-8 | 1,429 | 4.125 | 4 | [] | no_license | /**
* 启动:使用静态代理
1)、创建真实角色
2)、创建代理角色
3)、调用start()方法 启动线程
优点:可以同时实现继承,Runnable接口方式更加通用一些。
1、避免单继承的局限性
2、便于共享资源
通过实现Runnable接口实现多线程。(用到了静态代理设计模式)
*/
public class thread2 {
/**
* 推荐使用Runnable创建线程
* 1、避免单继承的局限性
* 2、便于共享资源
*/
public static void main(String[] args) {
... | true |