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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0fd891b063747263650be79aa12a4ad704f9c605 | Java | Eszty/Taalmodellen | /NGram.java | UTF-8 | 965 | 3.078125 | 3 | [] | no_license |
public class NGram implements Comparable<NGram> {
private String string;
private int count = 1;
private int n;
public String[] parts;
public NGram( int n, String inputString, int inputCount ) {
setN( n );
setString(inputString);
setCount(inputCount);
parts = string.split(" ");
}
public... | true |
b82c6cdee9dd4c106b2603e8724f10e47e452465 | Java | oitsjustjose/Crawl-n-Brawl | /src/com/oitsjustjose/crawlnbrawl/Tile/Surface/TileGrass.java | UTF-8 | 1,823 | 2.703125 | 3 | [] | no_license | package com.oitsjustjose.crawlnbrawl.Tile.Surface;
import com.oitsjustjose.crawlnbrawl.Tile.ITile;
import com.oitsjustjose.crawlnbrawl.Util.Helper;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.Rectangle;
import org.newdawn.slick.opengl.Texture;
import java.io.File;
public cla... | true |
04945a65c0ab521683b27d8991f5778e91b1e9f1 | Java | lolz3r/prir_projekt | /src/watki/TaskExecutor.java | UTF-8 | 230 | 2.40625 | 2 | [] | no_license |
package watki;
/**
* Interfejs wykonujący zadanie
*/
public interface TaskExecutor<T> {
/**
* Wykonaj zadanie
* @param task zadanie
* @throws Exception
*/
void execute(T task) throws Exception;
}
| true |
1e2c12067371a04f07fbe7a1d51d9cc74b1bce2f | Java | MRROOX/TheUltimateMicroServicesTemplate | /Stegeriluminacion/micro-publico/src/main/java/micro/publico/services/interfaces/IFavoritos.java | UTF-8 | 525 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | package micro.publico.services.interfaces;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import dto.main.Respuesta;
import dto.micro.publico.favoritos.FiltroFavoritosDTO;
import modelo.Favoritos;
public interface IFavoritos {
Respuesta<Page<Favoritos>> obtenerTodos(... | true |
6f0035a489aedbd2cff9ea37917c4d786fd2c305 | Java | Hari-stackroute/sunbird-lms-service | /service/src/main/java/org/sunbird/service/user/impl/UserExternalIdentityServiceImpl.java | UTF-8 | 6,059 | 1.890625 | 2 | [
"MIT"
] | permissive | package org.sunbird.service.user.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.sunbird.dao.user.UserExternalIdentityDao;
import org.sunbird.dao.user.i... | true |
018fae1dc012e82da51cf326ab8f6aadd3ff4e91 | Java | hk20088/Projects | /APS/src/com/newspace/aps/common/GeneralUtils.java | UTF-8 | 747 | 2.359375 | 2 | [] | no_license | package com.newspace.aps.common;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.newspace.aps.mapper.systemDomain.SystemDomainMapper;
import com.newspace.aps.model.SystemDomain;
import com.newspace.common.utils.SpringBeanUtils;
public class GeneralUtils {
//根据包名获取系统ID
public sta... | true |
99fcf042f849e7e218a03e8b14fe9d4779bdf59d | Java | cckmit/tac-service | /src/main/java/com/brick/bpm/work/ActivityWorkItemHandler.java | UTF-8 | 1,716 | 2.0625 | 2 | [] | no_license | package com.brick.bpm.work;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import com.brick.bpm.ins.FlowInstance;
import com.brick.bpm.service.InstanceService;
import com.brick.bpm.service.TaskService;
import com.brick.bpm.util.E... | true |
9949a332e5e420b3f9632bd2564717691fd286a9 | Java | amanuel2/Leetcode | /242.java | UTF-8 | 518 | 3.078125 | 3 | [] | no_license | class Solution {
public boolean isAnagram(String s, String t) {
if (s.length() != t.length())
return false;
int[] alpha = new int[26];
int[] alpha2 = new int[26];
for (char c : s.toCharArray())
alpha[c - 'a'] += 1;
for (char c : t.toCharArray... | true |
91bcb2d2a8f6aec01124fd803c0a75a8a8152ece | Java | baoziguo/baby | /app/src/main/java/com/baozi/baby/base/CommonWebActivity.java | UTF-8 | 316 | 1.921875 | 2 | [] | no_license | package com.baozi.baby.base;
/**
* 统一的web页面
*
* @author jiahua.huang 2018/04/11
*/
public class CommonWebActivity extends BaseWebActivity {
public static final String URL = BaseWebActivity.URL;
@Override
public Object getWebActor() {
return new CommonWebActor(mWebView);
}
}
| true |
0df28d471ee0586f7b089a61d358abba7b1fa721 | Java | Thorador/Hausarbeit | /src/main/java/model/User.java | UTF-8 | 2,148 | 2.140625 | 2 | [] | no_license | package model;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name="u... | true |
aa482b379c8f505aa7c9573a6ccbed3ea939161f | Java | johnbukaixin/iot | /src/main/java/com/ptl/message/mqtt/MqttReceiveMessage.java | UTF-8 | 724 | 2.25 | 2 | [] | no_license | package com.ptl.message.mqtt;
import com.ptl.message.mqtt.config.IotMqttClient;
import com.ptl.message.mqtt.handler.MqttReceiveMessageHandler;
import org.eclipse.paho.client.mqttv3.MqttException;
/**
* created by panta on 2019/9/4.
*
* @author panta
*/
public class MqttReceiveMessage {
private MqttReceiveMes... | true |
9c4be09411b1d6dce71fdf4a51033a5571110b74 | Java | helena37/Hibernate_And_Spring_Data | /APP Introduction/src/E06_removeVillain.java | UTF-8 | 3,069 | 3.0625 | 3 | [] | no_license | import java.sql.SQLException;
import static com.imports.MyValues.*;
public class E06_removeVillain {
public static void main(String[] args) throws SQLException {
connectionProperties();
System.out.println("Enter villain Id: ");
int villainId = Integer.parseInt(reader.readLine());
... | true |
eebb8e232ec8f165de4ea30ae8fbf335ce32c946 | Java | jychiou/OOP_Homework | /src/com/senao/oop/FileFinderFactory.java | UTF-8 | 469 | 2.296875 | 2 | [] | no_license | package com.senao.oop;
import com.senao.oop.candidate.Candidate;
import com.senao.oop.bean.Config;
import com.senao.oop.file.FileFinder;
import com.senao.oop.file.LocalFileFinder;
/**
* 負責建立適合的 FileFinder
* @author 014616
*
*/
public class FileFinderFactory {
public static FileFinder<Candidate> cr... | true |
208c5c3ba27ceb504364ca90f92aa131a6d82608 | Java | igorpo/SearchEngine | /servlet/src/edu/upenn/cis455/servlet/MainServlet.java | UTF-8 | 2,255 | 2.5625 | 3 | [
"MIT"
] | permissive | package edu.upenn.cis455.servlet;
import edu.upenn.cis455.querying.QueryHandler;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
im... | true |
0f053573011206bd3f9aaa7768298491015acc67 | Java | zhangtalent/ComputerStudy_Web | /StudyCS/src/z/talent/tengyu/mapper/EnglishReadDataMapper.java | UTF-8 | 791 | 1.796875 | 2 | [] | no_license | package z.talent.tengyu.mapper;
import java.util.ArrayList;
import org.apache.ibatis.annotations.Param;
import z.talent.tengyu.bean.EnglishReadData;
public interface EnglishReadDataMapper {
public int getEnglishReadDataByPageIdAndUserId(@Param("pageid")String pageid,@Param("userid")String userid,@Param("time")St... | true |
185f280c97e10b06c9d860760ae22573724c10c2 | Java | WGZCELL/Notes | /day7/src/com/network/TcpTest2.java | UTF-8 | 2,656 | 2.984375 | 3 | [
"MIT"
] | permissive | package com.network;
import java.io.*;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
/**
*
*/
public class TcpTest2 {
public static void client(){
Socket socket = null;
OutputStream os = null;
FileInputStream fis = null;
try {
sock... | true |
37841b94ce2458639d42f92f2bb7815f0a2a149a | Java | kusnandi/IF1-10119024-Latihan56-UmurBarangAntik | /if110119024Latihan56UmurBarangAntikOO/src/if110119024latihan56umurbarangantikoo/If110119024Latihan56UmurBarangAntikOO.java | UTF-8 | 693 | 2.375 | 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 if110119024latihan56umurbarangantikoo;
/**
*
* @author acer
* KUSNANDI PIRMANSYAH
* IF-1
* 10119024
*/
pub... | true |
68e083a9d2904712c1a9e467686feb0fc790a6bf | Java | rupaljain24/Task-10-7-09-19 | /src/Download.java | UTF-8 | 1,114 | 2.296875 | 2 | [] | no_license |
import java.io.FileInputStream;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResp... | true |
97eccb7f038b47f7298a97661e27d62d3359e129 | Java | guibertjulien/OmahaBot | /src/com/omahaBot/model/draw/TwoPairModel.java | UTF-8 | 2,447 | 3.0625 | 3 | [] | no_license | package com.omahaBot.model.draw;
import java.util.Arrays;
import java.util.SortedSet;
import java.util.TreeSet;
import lombok.Data;
import com.omahaBot.enums.HandCategory;
import com.omahaBot.enums.Rank;
import com.omahaBot.model.CardModel;
import com.omahaBot.model.CoupleCards;
public @Data class TwoPairModel exte... | true |
af9cbf74775aa74ecc2542a16009396693319faa | Java | cjxonix/fineractapp | /fineract-provider/src/main/java/org/apache/fineract/infrastructure/bulkimport/constants/LoanConstants.java | UTF-8 | 3,771 | 1.5 | 2 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"LicenseRef-scancode-public-domain",
"CDDL-1.1",
"LicenseRef-scancode-free-unknown",
"EPL-1.0",
"Classpath-exception-2.0",
"GPL-2.0-only"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | true |
6760c775f22fe246f94ffd25ca998722b8988378 | Java | engcomAndre/Playgrounds | /Java/Java - SpringBoot/BackendM1k/src/main/java/com/backend/entity/contacts/Phone.java | UTF-8 | 2,577 | 2.390625 | 2 | [] | no_license | package com.backend.entity.contacts;
import java.io.Serializable;
import java.sql.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.b... | true |
c8ae9c8e5d4d9c50225803ebc9b30cafc64e3f05 | Java | mymailmjj/test | /src/main/java/mq/kafka/KafkaConsumerMain.java | UTF-8 | 693 | 2.59375 | 3 | [] | no_license | package mq.kafka;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
*
* kafka consumer 多线程模拟多个consumer的情况
* 同一个consumeGroup则是竞争去同一个topic的消息
* 不同的consumerGroup则是订阅同一个topic的消息
* @author cango
*
*/
public class KafkaConsumerMain {
public static void main(... | true |
9b10e7f61b4407b695630152e862461910d5f040 | Java | jumpinjackie/mapguide4j | /app/controllers/MgLibraryFeatureServiceController.java | UTF-8 | 10,257 | 2.046875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | package controllers;
import play.*;
import play.mvc.*;
import org.osgeo.mapguide.*;
import java.lang.String;
import java.util.Map;
import java.util.Set;
/**
* REST controller for MapGuide Feature Service operations on site repository resources
*/
public class MgLibraryFeatureServiceController extends MgFeatureSer... | true |
543f282c932dea38f08f021e3e6d8f373c3b2992 | Java | Coos-Wolff/track_team_members_phone_destroyer | /src/test/java/com/wolffsoft/phonedestroyer/configuration/AbstractTestRepository.java | UTF-8 | 3,103 | 2.125 | 2 | [] | no_license | package com.wolffsoft.phonedestroyer.configuration;
import org.flywaydb.core.Flyway;
import org.h2.jdbcx.JdbcDataSource;
import org.h2.tools.RunScript;
import org.jdbi.v3.core.Handle;
import org.jdbi.v3.core.Jdbi;
import org.jooq.*;
import org.jooq.conf.RenderNameStyle;
import org.jooq.conf.Settings;
import org.jooq.i... | true |
c666ec32a2ee2a8c3d7e57c9496e273011b9ca81 | Java | Mert1980/JAVA-11-Fundamentals | /Chapter10_Inheritance&Polymorphism/src/be/intecbrussel/exercise10_06/SquareApp.java | UTF-8 | 538 | 3.28125 | 3 | [] | no_license | package be.intecbrussel.exercise10_06;
public class SquareApp {
public static void main(String[] args) {
Square square = new Square();
Rectangle rect1 = new Rectangle();
Rectangle rect2 = new Square();
System.out.println(rect1.getCount()); // prints 3
System.out.println(r... | true |
3db964785f06980127366e8928184608abca764c | Java | xxsheng/JavaTest | /work/09_ecai/lotteryServer/src/main/java/lottery/domains/pool/payment/af/AFPayment.java | UTF-8 | 18,342 | 1.84375 | 2 | [] | no_license | package lottery.domains.pool.payment.af;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.codec.digest.DigestUtils;
import o... | true |
2297c5faa339bdc883ed61a9f0cac6daece15c8a | Java | DenisKitanovski/task-managment | /task-managment/spring-web-proektna/src/main/java/com/example/springwebproektna/config/WebSocketConfig.java | UTF-8 | 3,250 | 2.140625 | 2 | [] | no_license | package com.example.springwebproektna.config;
import com.example.springwebproektna.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.lang.Nullable;
import org.springframework.messaging.Message;
imp... | true |
19799ffb94d56d624736495de551468107edfcfa | Java | Ailsafr/LeetCode | /src/solution/string/ReverseWordsInAString.java | GB18030 | 3,826 | 4.34375 | 4 | [] | no_license | package solution.string;
import java.util.Arrays;
import java.util.Collections;
/**
* @author By RuiCUI
* 2019-11-01
* Medium
* Question 151:Reverse Words in a String.
* Given an input string, reverse the string word by word.
* Example 1:
* Input: "the sky is blue"
* Output: "blue is sky the"
* Example 2:
*... | true |
7b5d1a29c8f76dcff418248ddc418fc54065f94f | Java | ZakharenkoDaniil/MyFirstSpringbootApp | /src/main/java/org/example/RESTonSpringBoot/Entity/Task.java | UTF-8 | 1,513 | 2.46875 | 2 | [] | no_license | package org.example.RESTonSpringBoot.Entity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Task {
@JsonProperty("id")
private Long id;
@JsonProperty("description")
private String description;
@JsonProperty("userId")
priv... | true |
2de68cc153c972eeb68232b9a77767eca0cc7e22 | Java | chrisyun/macho-project-home | /OTAS-DM-Project/nWave-DM-Common/src/com/npower/dm/msm/tools/TestPackageCheckerImpl.java | UTF-8 | 2,542 | 2.15625 | 2 | [] | no_license | /**
* $Header: /home/master/nWave-DM-Common/src/com/npower/dm/msm/tools/TestPackageCheckerImpl.java,v 1.3 2008/05/08 10:07:39 zhao Exp $
* $Revision: 1.3 $
* $Date: 2008/05/08 10:07:39 $
*
* ===============================================================================================
* License, Version 1.... | true |
6a42b1db29d61cb9e1f94b857b5633e46882f406 | Java | yilaoban/hy_esite2.0 | /src/com/huiyee/interact/cb/mgr/impl/InteractCbMgrImpl.java | GB18030 | 3,746 | 1.71875 | 2 | [] | no_license |
package com.huiyee.interact.cb.mgr.impl;
import java.util.Map;
import com.huiyee.esite.dto.HdRsDto;
import com.huiyee.esite.model.Account;
import com.huiyee.esite.model.AppointmentRecord;
import com.huiyee.esite.model.VisitUser;
import com.huiyee.interact.appointment.dao.IInteractAptDao;
import com.huiyee.... | true |
be98af68ae7016365bc94257f2eb47e2ef0d217f | Java | aislanml/FPC | /ConcurrentTables/TableSTM.java | UTF-8 | 3,590 | 2.671875 | 3 | [] | no_license | import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
public class TableSTM {
public static double[] table;
private static int capacity;
private static int number0fThreads;
private static int numberOfTransactions;
private static ... | true |
16578de9874831feb5ca19eff34732f8d85d3458 | Java | yang2008cs/jt808-tcp-netty | /src/main/java/com/jt808/vo/req/ExtendedTimekeepingTrainingMsg.java | UTF-8 | 4,387 | 2.3125 | 2 | [] | no_license | package com.jt808.vo.req;
import com.alibaba.fastjson.annotation.JSONField;
import com.jt808.vo.PackageData;
import java.util.Arrays;
/**
* 扩展计时培训消息
*/
public class ExtendedTimekeepingTrainingMsg extends PackageData {
private ExtendedTimekeepingTrainingInfo extendedTimekeepingTrainingInfo;
public Extende... | true |
9eaad2c9c1d7def5069b0cb0576cfb3e659033e1 | Java | rcgeorge23/smtp-mailer | /src/main/java/uk/co/novinet/smtpmailer/repository/SmtpMessageRepository.java | UTF-8 | 673 | 2.015625 | 2 | [] | no_license | package uk.co.novinet.smtpmailer.repository;
import java.util.Date;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import uk.co.novinet.smtpmailer.model.SmtpAuthentication;
import uk.co.novinet.smtpmailer.model.SmtpMessage;
public interface SmtpMessageRepository extends JpaRepo... | true |
a216b1ee08bb2c03116b20e6ec376e5c2a70f4a8 | Java | charliecamenen/Biathlon | /Jeu Biathlon/src/com/biathlon/action/JPanelGraphisme.java | ISO-8859-1 | 2,829 | 2.75 | 3 | [] | no_license | package com.biathlon.action;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.ArrayList;
import javax.swing.JPanel;
public class JPanelGraphisme extends InterfaceGraphique {
private Rectangle rectangle;
private Color rectangle_color_fill;
private Color rectangle_color_... | true |
4b63f334ab6b608ebc22b997e8ba0ef750fe7576 | Java | Housum/javaporject | /ActOfJava/src/com/hotusm/java8/lambda/Functions.java | GB18030 | 2,400 | 3.71875 | 4 | [] | no_license | package com.hotusm.java8.lambda;
public class Functions {
public static void main(String[] args) {
Converter<String,Integer> converter=(from)->Integer.valueOf(from);
System.out.println(converter.convert("3"));
//빹캯
//̬
Converter<String,Integer> converter1=Integer::valueOf;
System.out.prin... | true |
8addbc3de2468872974bf589ca0744340bbce28c | Java | moutainhigh/chdHRP | /src/com/chd/hrp/acc/controller/wagedata/AccWagePayController.java | UTF-8 | 40,178 | 1.898438 | 2 | [] | no_license | /**
* @Copyright: Copyright (c) 2015-2-14
* @Company: 智慧云康(北京)数据科技有限公司
*/
package com.chd.hrp.acc.controller.wagedata;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matche... | true |
8dad52bc1ea6faa9937d903ad2ca84af5db2c2d3 | Java | wzpRoc/entitylinking | /Project/src/org/ailab/wimfra/core/Page.java | UTF-8 | 8,054 | 2.515625 | 3 | [] | no_license | package org.ailab.wimfra.core;
import org.ailab.wimfra.util.StringUtil;
import java.util.ArrayList;
import java.util.List;
/**
* User: Lu Tingming
* Time: 2010-01-5
* Desc: 分页查询中的一页
*/
public class Page {
public static final int MAXRECORDNUMPERPAGE = 200;
/**
* 记录列表
*/
protected List list... | true |
ebc3692aca763f0d606078549d15b8d7c481842a | Java | lugaoyu/webframework | /miaosha/src/main/java/com/gaoyu/miaosha/controller/SampleController.java | UTF-8 | 2,525 | 2.375 | 2 | [] | no_license | package com.gaoyu.miaosha.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.gaoyu.miaosha.domain.User;
impor... | true |
c44812457f6a16d7a44bbf68b2f3a5f13f367a9e | Java | dgarcia0/proyectos | /practica7-master/src/main/java/Login.java | UTF-8 | 2,006 | 2.765625 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.text.ParseException;
/**
* Created by calamarte on 23/05/2017.
*/
public class Login {
//elementos del panel
private JButton loginButton;
private JTe... | true |
a31fca3c44103737b6da1a416d14b647aa2181aa | Java | fjbatresv/EduAndroidChat | /app/src/main/java/edu/galileo/android/androidchat/login/LoginPresenter.java | UTF-8 | 370 | 1.851563 | 2 | [] | no_license | package edu.galileo.android.androidchat.login;
import edu.galileo.android.androidchat.login.events.LoginEvent;
/**
* Created by javie on 7/06/2016.
*/
public interface LoginPresenter {
void onCreate();
void onDestroy();
void checkAuthenticatedUser();
void validateLogin(String email, String password)... | true |
bb4183db75a2d87bd90db64757ee5d45c587f647 | Java | IngHcl/lms | /src/main/java/com/hcl/lms/service/RangeService.java | UTF-8 | 280 | 1.640625 | 2 | [] | no_license | package com.hcl.lms.service;
import java.util.List;
import org.springframework.stereotype.Service;
import com.hcl.lms.dto.LeaveHistoryWithinDateOutput;
@Service
public interface RangeService {
List<LeaveHistoryWithinDateOutput> getRange (Integer userId,Integer range);
}
| true |
0266f6b67990c58a077e9da69a561192a87424f9 | Java | bntan/tsa-service | /tsa-service-web/src/main/java/com/bntan/tsa/service/web/configuration/TimeStampServerConfig.java | UTF-8 | 941 | 1.898438 | 2 | [] | no_license | package com.bntan.tsa.service.web.configuration;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import java.util.List;
@Configuration
@ConfigurationProperties(prefix = "timestamp.serv... | true |
48041c66b5323812fc820cfe21c6ba6432b12e82 | Java | miguelc95/Voyager | /Java/.antlr/VoyagerLexer.java | UTF-8 | 14,842 | 1.859375 | 2 | [] | no_license | // Generated from /Users/iramD24/Workspace/Compiler/Voyager/Java/Voyager.g4 by ANTLR 4.7.1
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.a... | true |
8fde211ed1afeedc70d01b8f1ccc5819d79322c4 | Java | xingbo/uimaster | /modules/uipage/src/main/java/org/shaolin/uimaster/page/cache/PageCacheManager.java | UTF-8 | 3,954 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 The UIMaster Project
*
* The UIMaster Project licenses this file to you 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 |
7bdff118619dbcefcc4c1a5b2341eae2f0640a1a | Java | iyera2/Excerises | /C16/AgetoSec.java | UTF-8 | 858 | 3.546875 | 4 | [] | no_license | import java.util.Scanner;
public class AgetoSec{
public static void main(String[] args) {
Scanner scan = new Scanner( System.in );
double years, months, days;
System.out.println("Enter the number of years:");
years = scan.nextDouble();
System.out.println("Enter the number o... | true |
3b018bd37667f07877798870da570ceead27c6aa | Java | mirror5821/LXYG | /devMirrorLibrary/src/main/java/dev/mirror/library/activity/DevBaseActivity.java | UTF-8 | 7,085 | 2.21875 | 2 | [] | no_license | package dev.mirror.library.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Bundle;
import andro... | true |
22502455ff856519536b84583f6ed2fc615e852a | Java | live-kampus/final-live-kampus-services | /event-service/event-service/src/main/java/com/capgemini/eventservice/entity/Event.java | UTF-8 | 1,955 | 2.1875 | 2 | [] | no_license | package com.capgemini.eventservice.entity;
import java.io.File;
import java.text.SimpleDateFormat;
import java.time.LocalTime;
import java.util.Date;
import org.springframework.data.mongodb.core.mapping.Document;
import com.fasterxml.jackson.annotation.JsonFormat;
@Document
public class Event {
private String e... | true |
09b7662a5be96e89a7c93ccf5096214d891c2229 | Java | ddd-wro/ddd-wro-warehouse | /warehouse-infrastructure/src/main/java/warehouse/picklist/FifoViewRepository.java | UTF-8 | 3,051 | 2.53125 | 3 | [
"MIT"
] | permissive | package warehouse.picklist;
import tools.MultiMethod;
import warehouse.locations.Location;
import warehouse.products.ProductStockFileRepository;
import java.lang.invoke.MethodHandles;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* Querying and influencing events be... | true |
f33dca65e99711aba2440098e274485138216228 | Java | GoJava3/Kickstarter | /src/main/java/ua/goit/controller/CategoryController.java | UTF-8 | 2,048 | 2.171875 | 2 | [] | no_license | package ua.goit.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.R... | true |
5fca5aa71f995c357b75e08026ddde70092ef889 | Java | cesar1287/rodasamba-android-app | /app/src/main/java/com/ribeiro/cardoso/rodasamba/UserSettingsFragment.java | UTF-8 | 12,077 | 2 | 2 | [] | no_license | package com.ribeiro.cardoso.rodasamba;
import android.app.Activity;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
... | true |
82268c737cbc6f6f525d1bb70cde607e30c58b07 | Java | Giovanniflores/STPSEmpleo | /web-movil/src/main/java/mx/gob/stps/portal/movil/web/empresa/form/EmpresaEspacioForm.java | UTF-8 | 992 | 1.648438 | 2 | [] | no_license | package mx.gob.stps.portal.movil.web.empresa.form;
import org.apache.struts.action.ActionForm;
public class EmpresaEspacioForm extends ActionForm{
/**
*
*/
private static final long serialVersionUID = -8445390268608633076L;
private long idEmpresa;
private String nombreEmpresa;
private String contactoEmpr... | true |
cebb467feec811085d9d71e9d72f9c2187cb3d73 | Java | ryokousuru/JavaLaunchCodeLinkedListUS | /src/com/launchcode/java/LinkedListUS.java | UTF-8 | 2,664 | 4.0625 | 4 | [] | no_license | package com.launchcode.java;
import java.util.LinkedList;
public class LinkedListUS {
//properties
Node head; //reference to next node
int count; // so will know when at the end of the list
//constructors
//public LinkedListUS(){
//head = null;
//count = 0; // can initializ... | true |
3a398e1a5ec35c2ac2079533b3889925d86e5e36 | Java | ithaca-comp-345/345-task01-Dxu528 | /src/main/java/edu/ithaca/dragon/bank/BankAccount.java | UTF-8 | 2,759 | 3.625 | 4 | [] | no_license | package edu.ithaca.dragon.bank;
public class BankAccount {
private String email;
private double balance;
private double balance2;
/**
* @throws IllegalArgumentException if email is invalid
*/
public BankAccount(String email, double startingBalance){
if (isEmailValid(email) && is... | true |
a51f23b2e2328df4add4028716def668a8849642 | Java | FlorMigliorini/JavaNCI | /src/emerskitchen/App/OrderApp.java | UTF-8 | 1,038 | 2.5625 | 3 | [] | no_license |
package emerskitchen.App;
public class OrderApp {
String prod, category, date, who;
int order;
// public OrderApp(String prod, String category, String date, String who, int order) {
// this.prod = prod;
// this.category = category;
// this.date = date;
// this.who = who;
// ... | true |
0f22bfede2d7294784231d0bc4eca5d14e181115 | Java | zhu-dev/FloatingBar | /floatingbar/src/main/java/me/u5510/floatingbar/ItemAnimEffectDrawer.java | UTF-8 | 3,802 | 2.484375 | 2 | [] | no_license | package me.u5510.floatingbar;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
/**
* Created by u5510 on 2017/9/19.
*/
public class ItemAnimEffectDrawer extends EffectDrawer {
/**
* 期望... | true |
1fa46c4b7c94d0094214f9d9d8d057bf0b47d2e7 | Java | PMcca/closest-events | /src/main/java/codetest/DataGen.java | UTF-8 | 1,501 | 3.109375 | 3 | [] | no_license | package codetest;
import java.util.*;
/**
* Generates random test data.
*/
public class DataGen
{
private static final float MAX_TICKET_PRICE = 100f;
public static void genTestdata(int TEST_COUNT, EventDatabase database)
{
Random rng = new Random(System.currentTimeMillis());
if(TEST_COUNT > Location.MA... | true |
975358714a4893e47f11e4e2245766315eebe331 | Java | rmatuszczak/homework-java | /UseAuto.java | UTF-8 | 383 | 3.171875 | 3 | [] | no_license |
public class UseAuto {
public static void main(String[] args){
Kia soul = new Kia();
Ford focus = new Ford();
soul.setMake("Kia Soul");
soul.setPrice();
focus.setMake("Ford focus");
focus.setPrice();
System.out.println("The " + soul.getMake() + "costs " + soul.getPrice());
System.out.println... | true |
0363bb3e4ad30c1de5cd09c504dfa70d1a8f1a75 | Java | zhangmanlalala/javaproject | /Leetcode_review/src/leetcode_061_rotate_list/Solution1.java | GB18030 | 889 | 3.90625 | 4 | [] | no_license | package leetcode_061_rotate_list;
/**
*
* ͣһĵkڵ
* @author Administrator
*
*/
//ʹ˫ָ뷨һָk-1Ȼָһߣһָߵβڵʱڶָָľǵ
//kλע
//ע壺kпܴڽڵ
public class Solution1 {
public static ListNode findKthToTail(ListNode head,int k){
if(head == null || head.next == null){
return head;
}
ListNode slow = head,fast = head;
... | true |
8ad49d0ab027f21a71c4c640b54d84a131a787e0 | Java | lawrencemontoya1425/Prueba | /tienda/src/main/java/com/tienda/co/business/impl/ProductsServiceEmpl.java | UTF-8 | 3,882 | 2.484375 | 2 | [] | no_license | package com.tienda.co.business.impl;
import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.List;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import j... | true |
a8103ccafed204c47ca17eadb81c43e22302b47b | Java | 6x10tothe23rd/Neural-Network | /src/Main.java | UTF-8 | 2,725 | 3.234375 | 3 | [] | no_license | import java.util.*;
import core.*;
import training.*;
public class Main {
public static int highest(ArrayList<InputOutputValue> arr){
int highestIndex = 0;
for(int i = 1; i < arr.size(); i++){
if(arr.get(i).getValue() > arr.get(highestIndex).getValue()){
highestIndex = ... | true |
38b466c5e3fc5c5103d8fcd41797f2ab9ec415e0 | Java | punit102/Object-Oriented-Programming-and-Design | /HW17/test/src/edu/umb/cs/cs680/ThereeDObserverTest.java | UTF-8 | 1,511 | 3.078125 | 3 | [] | no_license | package edu.umb.cs.cs680;
import static org.junit.Assert.*;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ThereeDObserverTest {
/*
*
*
* This is ThereeDObserver update method testing. Here I used
... | true |
05bb7a0815cde1a37ae5602704d45457bfea50ee | Java | mobialia/jmini3d | /demo-common/src/main/java/jmini3d/demo/CubeScene.java | UTF-8 | 1,066 | 2.953125 | 3 | [
"MIT"
] | permissive | package jmini3d.demo;
import jmini3d.Color4;
import jmini3d.Object3d;
import jmini3d.Texture;
import jmini3d.Vector3;
import jmini3d.geometry.BoxGeometry;
import jmini3d.geometry.Geometry;
import jmini3d.light.AmbientLight;
import jmini3d.light.DirectionalLight;
import jmini3d.light.PointLight;
import jmini3d.material... | true |
f7f5a8a02169a48aa809e31f129f023ddd6e950a | Java | kishoresh/MyJavaLearningProjects | /src/com/Threading/ThreadLocal/ThreadLocalDemo.java | UTF-8 | 467 | 2.59375 | 3 | [] | no_license | package com.Threading.ThreadLocal;
public class ThreadLocalDemo extends Thread{
@Override
public void run() {
Context context = new Context();
context.setTransactionId(getName());
context.setUserId("Kishore Sharma");
MyThreadLocal.set(context);
}
public static void main(String... | true |
a1c3835fcdd137a033eb19c0e8fc1cabda592e0b | Java | DoSomethingArchive/ds-android | /dosomething/src/org/dosomething/android/widget/DSFacebookLoginButton.java | UTF-8 | 1,867 | 2.5 | 2 | [
"MIT"
] | permissive | package org.dosomething.android.widget;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import com.facebook.widget.LoginButton;
import org.dosomething.android.R;
/**
* Custom Facebook Login button with... | true |
aa472983e27c00c35478cdd92fd54fc0f104a400 | Java | fibelatti/raffler | /app/src/main/java/com/fibelatti/raffler/db/QuickDecision/QuickDecisionSchema.java | UTF-8 | 2,984 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package com.fibelatti.raffler.db.QuickDecision;
public interface QuickDecisionSchema {
String QUICK_DECISION_TABLE = "quick_decision";
String QUICK_DECISION_COLUMN_ID = "quick_decision_key";
String QUICK_DECISION_COLUMN_LOCALE = "quick_decision_locale";
String QUICK_DECISION_COLUMN_NAME = "quick_decisi... | true |
0a93fdef53126a12ee8ce5e65d2fd042a2e9bd61 | Java | VenkataKarthikP/qds-sdk-java | /src/test/java/com/qubole/qds/sdk/java/TestRequestComposition.java | UTF-8 | 2,255 | 2 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2014- Qubole 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 |
4b4039d7b0b5e74dea132b56126048e9750700aa | Java | willawn/HouseReadily | /HouseReadily/src/com/huzhiyi/housereadily/entity/base/AbstractTask.java | UTF-8 | 2,418 | 2.296875 | 2 | [] | no_license | package com.huzhiyi.housereadily.entity.base;
import com.tastysoft.swct.db.model.TastyEntity;
/**
* AbstractTask entity provides the base persistence definition of the Task
* entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractTask extends TastyEntity implements java.io.Serializable {
/... | true |
f3cc213352e645692327d598c03e96523855530d | Java | naosim/sparksample | /src/main/java/com/naosim/spark/lib/basicauth/basicauthprime/BasicAuthError.java | UTF-8 | 501 | 2.1875 | 2 | [] | no_license | package com.naosim.spark.lib.basicauth.basicauthprime;
/**
* Created by nao_pillows on 2015/06/22.
*/
public class BasicAuthError {
private final String headerKey = "WWW-Authenticate";
private final String headerValue = "Basic";
private final int httpStatusCode = 401;
public String getHeaderKey() {
... | true |
fef5e18111fb2bc4a32000f8bf7b802838a850d7 | Java | jengland17/java_stack | /Fundamentals/basics/BasicAlgosTest.java | UTF-8 | 736 | 3.171875 | 3 | [] | no_license | public class BasicAlgosTest {
public static void main(String[] args) {
BasicAlgos basic = new BasicAlgos();
basic.print1To255();
basic.printOdds();
basic.printSum();
int[] a = {1,3,5,7,9,13};
basic.iterateArray(a);
int[] x = {1,3,5,7,9,-13};
... | true |
5203f223d473ef009b6b0968b483415ee48c6a8d | Java | jim19770812/learning-graphql | /learning-graphql-server/src/main/java/com/example/server/resolvers/Mutation.java | UTF-8 | 1,303 | 2.25 | 2 | [] | no_license | package com.example.server.resolvers;
import com.coxautodev.graphql.tools.GraphQLMutationResolver;
import com.example.server.beans.MUser;
import com.example.server.inputs.TAddUser;
import com.example.server.inputs.TUpdateUser;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Component;
im... | true |
75c1f61a17176a26812031bd0a54d237aa8a1ba7 | Java | simonjhy/blade.tools | /blade.migrate.liferay70/test/blade/migrate/core/JavaFileCheckerTest.java | UTF-8 | 1,235 | 2.609375 | 3 | [] | no_license | package blade.migrate.core;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.io.File;
import org.junit.Test;
import blade.migrate.core.JavaFileChecker;
import blade.migrate.core.SearchResult;
public class JavaFileCheckerTest {
@Test
public void checkStaticMe... | true |
d7c8915319924b086aedb1e975c81c80c6b28bcd | Java | cuipengpeng/p1-android | /src/com/p1/mobile/p1android/net/withclause/LatLongParam.java | UTF-8 | 1,010 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.p1.mobile.p1android.net.withclause;
import android.util.Log;
public class LatLongParam implements Param {
public static final String TAG = LatLongParam.class.getSimpleName();
private double latitude;
private double longitude;
private static final String SEPARATOR = ",";
private stati... | true |
2c8842e232dca6770cb98ef4ccc8e7e92329a146 | Java | ravyn13/autopsy-ahbm | /test/unit/src/com/pcbje/ahbm/AhbmIngestModuleTest.java | UTF-8 | 5,919 | 1.765625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | /**
* This work is made available under the Apache License, Version 2.0.
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
... | true |
68a73970cbb052eff24875aa34093a2b71346c75 | Java | JacobEhvall/tictactoe | /src/com/company/Board.java | UTF-8 | 3,048 | 3.53125 | 4 | [] | no_license | import java.util.*;
public class Board {
private char [] gameBoard = new char [9];
private int counter = 0;
// Create the table
public Board() {
gameBoard[0] = ' ';
gameBoard[1] = ' ';
gameBoard[2] = ' ';
gameBoard[3] = ' ';
gameBoard[4] = ' ';
gameBoar... | true |
9666572d279cfed5ab074780760fb6785f41ab72 | Java | johanncepeda9816/nexos-app | /src/main/java/com/nexos/app/repositories/ItemRepository.java | UTF-8 | 404 | 1.96875 | 2 | [] | no_license | package com.nexos.app.repositories;
import java.sql.Date;
import java.util.List;
import com.nexos.app.model.Item;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ItemRepository extends JpaRepository<Item, String>{
List<I... | true |
d8d4188dd433a35110bfde4a6bd29af639f3c198 | Java | kotiandatian/nasa | /nasa/src/main/java/com/framework/loippi/utils/SQLUtil.java | UTF-8 | 341 | 2.46875 | 2 | [] | no_license | package com.framework.loippi.utils;
/**
* SQL工具类
* @author dovyeYH
*
*/
public class SQLUtil {
/**
* 过滤SQL中的特殊字符
* @param sql
* @return
*/
public static String filterSQL(String sql){
if(StringUtil.isEmpty(sql))
return "";
return sql.replaceAll(".*([';]+|(--)+).*", " ");
}
}
| true |
ed57f93f79596bf091f86160ad514fed6afc179f | Java | charliekoerner/JThing | /JThingLifxAdapter/src/bt/siemens/jthing/lifxadapter/GMS_OM_LIFX.java | UTF-8 | 703 | 2.234375 | 2 | [
"MIT"
] | permissive | package bt.siemens.jthing.lifxadapter;
import java.net.URI;
import bt.siemens.jthing.types.Property;
import bt.siemens.jthing.types.Thing;
public class GMS_OM_LIFX extends Thing {
public GMS_OM_LIFX(URI uri) {
super(uri);
brightness = new Property<Short>(uri, "brightness", "Brightness") ;
brightness.setWrita... | true |
895db87fa8022f4c16d4ed6613925373cbbb212f | Java | felucius/JEA_Microservices | /MicroserviceAccount/src/main/java/service/util.java | UTF-8 | 652 | 1.984375 | 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 service;
import domain.Account;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
i... | true |
c0380a8b13bbf7ea9af77826a63189fdd9384639 | Java | jarlehansen/pg5100 | /4_7-jpa-egentrening/src/main/java/no/nith/pg5100/db/DbMain.java | UTF-8 | 321 | 1.882813 | 2 | [] | no_license | package no.nith.pg5100.db;
import org.h2.tools.Server;
import java.sql.SQLException;
public class DbMain {
public static void main(String[] args) throws SQLException {
Server server = Server.createTcpServer("-tcpAllowOthers");
server.start();
System.out.println(server.getStatus());
}
... | true |
387a30adb8ff9042e98174b60f4eb8f65ec973be | Java | SeanCheatham/chess | /src/chess/Location.java | UTF-8 | 1,507 | 3.34375 | 3 | [] | no_license | package chess;
public class Location {
private int file;
private int rank;
private Piece occupant;
public Location(int x, int y) {
file = x;
rank = y;
occupant = null;
}
public Location(int x, int y, Piece p) {
file = x;
rank = y;
occupant = p;
}
public String toStrin... | true |
0eb99fca177dc145bfe14500d9fe3ae56ca0ad68 | Java | YelusuruVinay/SpringBootMicroservices | /CarApi/src/main/java/com/bt/carapi/CarApiApplication.java | UTF-8 | 470 | 1.570313 | 2 | [] | no_license | package com.bt.carapi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableDisc... | true |
fa6e8f1748adc662e664e680ced9986602182b51 | Java | sameena83/DevNewsArticleApp | /demo/src/main/java/se/sda/web/demo/NewsArticle/NewsArticleController.java | UTF-8 | 1,367 | 2.515625 | 3 | [] | no_license | package se.sda.web.demo.NewsArticle;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@RestController
public class NewsArticleController {
private List<NewsArticle> newsArticles;
public NewsAr... | true |
4dddf6fcafef2584f97677ae563cd824f75f6c55 | Java | Xarybdis167/HRMS-System | /src/main/java/Java/dev/HRMS/business/concretes/JobAdvertisementManager.java | UTF-8 | 2,618 | 2.265625 | 2 | [] | no_license | package Java.dev.HRMS.business.concretes;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import Java.dev.HRMS.business.abstracts.JobAdvertisementService;
import Java.dev.HRMS.co... | true |
f09412a3a74892319b4b79920f6327270ced65cf | Java | marcuzzuu/lotflights | /be/src/main/java/com/hackyeah/lotflights/controller/FlightsController.java | UTF-8 | 2,418 | 2.234375 | 2 | [] | no_license | package com.hackyeah.lotflights.controller;
import com.hackyeah.lotflights.model.Airport;
import com.hackyeah.lotflights.model.GeoJsonPoint;
import com.hackyeah.lotflights.service.FlightsService;
import com.hackyeah.lotflights.service.GeoService;
import com.hackyeah.lotflights.service.IATAService;
import com.hackyeah.... | true |
46d8c228d81cfda99d03d1e77fd04a142f025cdb | Java | matrixyz/infod | /src/main/java/com/zzsc/infod/util/LetterMatrix.java | UTF-8 | 12,168 | 3.3125 | 3 | [] | no_license | package com.zzsc.infod.util;
import java.util.HashMap;
import java.util.Map;
public class LetterMatrix {
public static void main(String[] args) {
LetterMatrix matrix = new LetterMatrix();
matrix.printString("Hello World");
}
private static Map<Character, int[]> letterMapping = null;
p... | true |
453924f0c20543d3f1033e87b602738f113ff272 | Java | aws-amplify/amplify-android | /aws-api/src/main/java/com/amplifyframework/api/aws/MultiAuthSubscriptionOperation.java | UTF-8 | 11,225 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | true |
8a2a78d4914d8766665d98ce509593780683c4b6 | Java | markame/forca-de-vendas | /EmpresaEJB/src/java/br/com/forcaVendas/empresa/entidade/Pedido.java | UTF-8 | 3,595 | 2.515625 | 3 | [] | no_license | package br.com.forcaVendas.empresa.entidade;
import br.com.forcaVendas.dto.interfaces.IPedido;
import br.com.forcaVendas.dto.interfaces.IVendedor;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.... | true |
f7d05036b4468eed9f0006c1417f2e164f25cc5d | Java | Cloudhunter/OpenCCSensors | /src/main/java/openccsensors/common/util/EntityUtils.java | UTF-8 | 5,186 | 2.359375 | 2 | [
"MIT"
] | permissive | package openccsensors.common.util;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.passive.EntityTameable;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.en... | true |
1eb1e1f1f61aebe31d8ea7e37535e9dd97f5afda | Java | venky177/leetcode | /src/SearchInsertPosition35.java | UTF-8 | 985 | 3.640625 | 4 | [] | no_license | /*
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
*/
import java.util.HashMap;
public class SearchInsertPosition35 {
public static void main(String []args){
int[] arr = {1,3,4,7,9};
int t... | true |
3f13e0f00c9ba3b36cbd613260d7a389b58793eb | Java | cha63506/CompSecurity | /Photography/amazon_photos_source/src/com/amazon/gallery/framework/kindle/timeline/TimelineMarker.java | UTF-8 | 1,683 | 2.0625 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.amazon.gallery.framework.kindle.timeline;
import com.amazon.gallery.framework.kindle.timeline.model.ContainerItem;
public class Tim... | true |
16efecd5e45e02cbbcd41037a4cf8cf113bff608 | Java | Qmppu842/MoareSceneTesting | /src/moaretestingtogetscenesworking/Updatable.java | UTF-8 | 204 | 1.90625 | 2 | [] | no_license | package moaretestingtogetscenesworking;
import javafx.scene.canvas.GraphicsContext;
/**
*
* @author Qmppu842
*/
public abstract interface Updatable {
abstract void update(GraphicsContext gc);
}
| true |
8217cb27f2f8806dda5ce96e720086d29d5779b5 | Java | baihuaiyu00/cloud | /cloud-common/src/main/java/com/xupt/cloud/common/util/JSONUtils.java | UTF-8 | 4,019 | 2.4375 | 2 | [] | no_license | package com.xupt.cloud.common.util;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml... | true |
fe540fb4fa7969d2bd7eedba9ba95d4cf88b4797 | Java | BrunoMNDantas/TPL4J | /src/test/java/com/github/brunomndantas/tpl4j/context/builder/ContextBuilderTest.java | UTF-8 | 3,171 | 2.28125 | 2 | [
"MIT"
] | permissive | package com.github.brunomndantas.tpl4j.context.builder;
import com.github.brunomndantas.tpl4j.context.IContext;
import com.github.brunomndantas.tpl4j.context.manager.ContextManager;
import com.github.brunomndantas.tpl4j.core.action.IAction;
import com.github.brunomndantas.tpl4j.core.cancel.CancellationToken;
import co... | true |
294fe5d8bdb259b68b7107652dfa71c928d83228 | Java | chq347796066/base-interface | /server/account/src/main/java/com/spring/account/service/IAccountChangeRecordService.java | UTF-8 | 1,077 | 1.976563 | 2 | [] | no_license | package com.spring.account.service;
import com.spring.base.entity.account.AccountChangeRecordEntity;
import com.spring.base.service.IBaseService;
import com.spring.base.vo.pay.accountchangerecode.AccountChangeRecordAddVo;
import com.spring.base.vo.pay.accountchangerecode.AccountChangeRecordUpdateVo;
import com.spring.... | true |
023079df7ba1d3f962ec729465ced7138b014327 | Java | YptSpr/CrazyCodes | /app/src/main/java/com/example/spr_ypt/crazycodes/GroupRecycleViewTestActivity.java | UTF-8 | 3,860 | 2.25 | 2 | [] | no_license | package com.example.spr_ypt.crazycodes;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerV... | true |
41f3b2861c8d827c83c5f5255cebbf38d050b9f7 | Java | SindhyaKumari/Simba | /TabsWithSwipeGesture/src/com/SIMBA/Welcome/StartupActivity.java | UTF-8 | 2,944 | 2.375 | 2 | [] | no_license | package com.SIMBA.Welcome;
import java.util.HashMap;
import dataAccessPackage.LoginSession;
import info.androidhive.tabsswipe.MainActivity;
import info.androidhive.tabsswipe.NewProductsListActivity;
import info.androidhive.tabsswipe.R;
import info.androidhive.tabsswipe.ShoppingListManager;
import android.app.Activity... | true |
a9dc172fc1856729e2c90bafa566de3ecc9af394 | Java | 0862374/DEV6A---Algoritmiek | /src/Objecten/Bestelling.java | UTF-8 | 1,371 | 2.71875 | 3 | [] | no_license | package Objecten;
import java.util.Date;
public class Bestelling {
private int bestellingId;
private Klant klant;
private Date startTijd;
private long duur;
private boolean inVerwerking;
private boolean isCompleet;
private boolean isDadelijk;
public Bestelling(int bestellingId, Klant klant){
this.bestelli... | true |
429d40a34f709504e12e7ef7951fd0fdd7b57618 | Java | pandas007/FanipolParkingReview | /presentation/src/main/java/com/example/evgen/fanipolparking/presentation/listeners/NextFocusTextWatcher.java | UTF-8 | 1,034 | 2.5625 | 3 | [] | no_license | package com.example.evgen.fanipolparking.presentation.listeners;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.EditText;
//Use is BindingAdapters for requesting focus.
public class NextFocusTextWatcher implements TextWatcher{
private EditText editT... | true |
967c348d3e59532f47b285f16147f8950904a289 | Java | DrDoorknob/css-relativity | /src/ru/artlebedev/csscompressor/ConfigOption.java | UTF-8 | 6,290 | 2.46875 | 2 | [] | no_license | /**
* Author: Alexander Samilyak (aleksam241@gmail.com)
* Created: 2012.02.19
* Copyright 2012 Art. Lebedev Studio. All Rights Reserved.
*/
package ru.artlebedev.csscompressor;
public enum ConfigOption {
ROOT(
"root", "string",
new Updater(){
@Override
public void up... | true |