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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
9d0089a6d0390ec331c1d4ea3e27a98958f668e0 | Java | Taher2011/java-core-java | /function/src/main/java/com/gl/java/function/AndThenMethod.java | UTF-8 | 653 | 3.875 | 4 | [] | no_license | package com.gl.java.function;
import java.util.function.Function;
public class AndThenMethod {
public static void main(String[] args) {
/*
* f1.andThen(f2).apply("taher ali"); => first execute f1.apply("taher ali") method and based on
* output first method, f2.apply(result_of_f1_method) method execute.
... | true |
f891156e43638c8f663c910bd078e787f26bae33 | Java | RomelIdmeCalderon/BigboxClienteJavaAndroid | /app/src/main/java/com/romelidme/androidbigbox/vistas/Fragmentos/fragmentCerrar.java | UTF-8 | 1,084 | 1.921875 | 2 | [] | no_license | package com.romelidme.androidbigbox.vistas.Fragmentos;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.google.firebase.auth.FirebaseAuth;
import wholetec.cliente.bi... | true |
83b64944e376589b69cd0ae2fe5aad6f78bd0e7b | Java | vinayaknpatil/javapractice | /leetcode/java/medium/SingleNum2.java | UTF-8 | 2,133 | 3.703125 | 4 | [] | no_license | import java.util.HashMap;
import java.util.Map;
/**
* Given a non-empty array of integers, every element appears three times except for one, which appears exactly once. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
Example 1:
... | true |
1707fb269125dfddfd3b167e9fe9e9d237a1c670 | Java | jgoetsch/tradeframework | /event-trader/src/main/java/com/jgoetsch/eventtrader/filter/SymbolOncePerDayFilter.java | UTF-8 | 1,598 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012 Jeremy Goetsch
*
* 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 agr... | true |
058d06a0946ba1726050594b48d8414220891105 | Java | tell10glu/MobilProgramlamaSoruCevapTool | /src/Soru.java | UTF-8 | 255 | 2.609375 | 3 | [] | no_license |
public class Soru {
public int dogruCevap;
public String[] cevaplar;
public String soru;
private Soru(int dogruCevap, String[] cevaplar, String soru) {
super();
this.dogruCevap = dogruCevap;
this.cevaplar = cevaplar;
this.soru = soru;
}
}
| true |
1e789457d9caf3d47187dce15114392b94c45bd9 | Java | FNicon/ZAFF-ZOO-VZ03-JAVA | /src/animal/landanimal/felidae/Lion.java | UTF-8 | 450 | 2.484375 | 2 | [] | no_license | package animal.landanimal.felidae;
/**
* Nama : Zacki Zulfikar Fauzi
* <br>NIM : 13515147
* <br>Nama File : Lion.java
* <br>Tanggal : 26-Mar-17
*/
public class Lion extends Felidae {
/**
* Konstruktor Lion
*/
public Lion() {
super();
species = "Panthera l... | true |
a64d5e00a7ab5e8e5269f764facd7f405223fcee | Java | z406404887/7x_Server | /wolf/src/com/youxigu/app/domain/Item.java | UTF-8 | 296 | 2 | 2 | [] | no_license | package com.youxigu.app.domain;
/**
* 1 装备: 不能堆叠,装备还能进行修改;
* 2 消耗性道具:堆叠数量有限,背包中可能有很多堆;
* 3 资源: 背包中不能存放,而且堆叠数量趋于无穷
*
* @author wuliangzhu
*
*/
public class Item {
}
| true |
e1ff8e6417f3caadace4e5954a40f2b6d5980cd1 | Java | cghislai/wildfly-ear-tests | /jwt-ejb/src/main/java/org/example/eartests/jwt/ejb/JwtEjbService.java | UTF-8 | 1,963 | 2.109375 | 2 | [] | no_license | package org.example.eartests.jwt.ejb;
import org.eclipse.microprofile.jwt.Claim;
import org.eclipse.microprofile.jwt.Claims;
import org.eclipse.microprofile.jwt.JsonWebToken;
import javax.annotation.Resource;
import javax.annotation.security.PermitAll;
import javax.annotation.security.RolesAllowed;
import javax.ejb.S... | true |
5b2c280935060651012c66f0838969d6ea10808f | Java | ChandraKiranSaladi/LeetCode | /Strings/686. Repeated String Match ( Can be improved using KMP)/Solution.java | UTF-8 | 482 | 3.078125 | 3 | [] | no_license | class Solution {
public int repeatedStringMatch(String A, String B) {
if(A.length() == 0 || B.length() == 0)
return -1;
StringBuilder build = new StringBuilder();
int i;
for(i = 0 ; build.length() < B.length(); i++ ){
build.append(A);
}
... | true |
7ecf19be544758ef51658315938da7b6b3d018ec | Java | DF-1317/2018 | /programming/syslog4j/src/test/java/org/productivity/java/syslog4j/test/net/SSLTCPNetSyslog4jTest.java | UTF-8 | 1,823 | 2.3125 | 2 | [] | no_license | package org.productivity.java.syslog4j.test.net;
import org.productivity.java.syslog4j.Syslog;
import org.productivity.java.syslog4j.impl.net.tcp.ssl.SSLTCPNetSyslogConfig;
import org.productivity.java.syslog4j.server.SyslogServer;
import org.productivity.java.syslog4j.server.impl.net.tcp.ssl.SSLTCPNetSyslogServe... | true |
d4b69f794f4148e99f46c3490e541e66c1f52102 | Java | sanju784/DS-Algo_Questions | /9. Search/9.java | UTF-8 | 1,070 | 3.5 | 4 | [] | no_license | /*********************************************
*
* Find first element that is repeated
*
*/////////////////////////////////////////////
import java.io.*;
import java.util.*;
class FirstRepeat{
public static void main(String args[]) {
int arr[] = {1,6,3,2,3,6,6};
printFirstRepeat(arr);
}
public static void ... | true |
d720e7dd11d508f9436418f94359b785394fa101 | Java | SupriyaShalvi/J2EE-examples | /JDBC/Test.java | UTF-8 | 1,704 | 2.9375 | 3 | [] | no_license | package com.tcs.JDBC;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Test {
public static void main( String args[] )
{
try
{
// Load the database driver... | true |
d85b6a805428a23c972d3c0931f5b2ad3f6e2562 | Java | DoKyung-Ha/GoFunding | /src/main/java/com/funding/sprout/funding/service/FundingServiceImpl.java | UTF-8 | 3,613 | 1.773438 | 2 | [] | no_license | package com.funding.sprout.funding.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.funding.sprout.funding.dao.FundingDao;
import com.funding.sprout.vo.Funding;
import com.funding.sprout.vo.Order;
import com.fundi... | true |
c70b09da97bdba6d3abcf275a8ec76cd4ed43d78 | Java | vijay876/Corejava | /java_Programs/src/com/Remove_Duplicates_FromString_nd_StringArray/String_split_Method.java | UTF-8 | 669 | 3.328125 | 3 | [] | no_license | package com.Remove_Duplicates_FromString_nd_StringArray;
public class String_split_Method
{
public static void main(String[] args) {
//split method will used slipt each string or each character and it
//returns String[]
String s="viiiijayy";
String[] split = s.split("");//String[]split={"v"... | true |
b7a7db6f91146d2a3a48dce347c49a7527f7d491 | Java | josephine93/listens | /Listens2/src/com/senseos/listens/SStartMenu.java | UTF-8 | 1,155 | 2.125 | 2 | [] | no_license | package com.senseos.listens;
import android.app.ListActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
public class SStartMenu extends ListActivity{
public String menu[] = {"Over", "Contact"};
pu... | true |
5c0cc2b7b322e3c53472e7e4abb7b76786ed143b | Java | xilin0007/template | /src/main/java/com/fxl/frame/util/weixin/SmallpgSubscribeMessage.java | UTF-8 | 3,410 | 2.390625 | 2 | [] | no_license | package com.fxl.frame.util.weixin;
import com.alibaba.fastjson.JSONObject;
import com.fxl.frame.util.http.HttpClientUtil;
/**
* @Description 小程序订阅消息发送
* @author fangxilin
* @date 2020-11-09
* @Copyright: 深圳市宁远科技股份有限公司版权所有(C)2020
*/
public class SmallpgSubscribeMessage {
/**
* 发送订阅消息
*/
public ... | true |
24c3b5f62c657ae57427d144ec027dd2e8e1910d | Java | arjavibahety/duke | /src/main/java/ListCommand.java | UTF-8 | 578 | 2.875 | 3 | [] | no_license | public class ListCommand extends Command {
/**
* Returns the message DukeBot will show after each interaction with the user.
* @param tasks refers to the list of tasks DukeBot is handling
* @param ui refers to the instance of the UI class which handles output messages
* @param storage refers to... | true |
23913648336d990c7bf634effd28e0b19a7a23e7 | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/Colors_put.java | UTF-8 | 476 | 3.34375 | 3 | [] | no_license | /**
* Convenience method to add a {@code color} with its {@code name}. The invocation of this method is equivalent to the
* expression {@code Colors.getColors().put(name, color)}
*
* @param name the name of the color
* @param color the color
* @return the previous {@code color} associated with {@code name}, or {@... | true |
56671562bd5018dd450dee876fa07cbad3a32915 | Java | blaec/JavaRush | /javaRush/projects/JavaRushTasks/4.JavaCollections/src/com/javarush/task/task40/task4004/Solution.java | UTF-8 | 3,584 | 3.4375 | 3 | [] | no_license | package com.javarush.task.task40.task4004;
import java.util.ArrayList;
import java.util.List;
/*
Принадлежность точки многоугольнику
http://www.sanfoundry.com/java-program-check-whether-given-point-lies-given-polygon/
https://habrahabr.ru/post/144571/
*/
class Point {
public int x;
public int y;
Point(... | true |
fcde8cb9e632568b423ac19c244e639af0296d29 | Java | fus-ro-doh/demon-castle-dracula | /Game/TwoDSix.java | UTF-8 | 191 | 2.90625 | 3 | [] | no_license | import java.util.Random;
interface TwoDSix {
final Random dice = new Random();
static int dice(){
return dice.nextInt(6) + 1;
}
static int TwoDSix(){
return (dice() + dice());
}
} | true |
2de138abbcce10153e8788ac880e9bc969377ec4 | Java | wxz1010976356/RtfRxMVP | /app/src/main/java/me/pwcong/rtfrxmvp/manager/NotificationManager.java | UTF-8 | 553 | 1.945313 | 2 | [] | no_license | package me.pwcong.rtfrxmvp.manager;
import android.content.Context;
import me.pwcong.rtfrxmvp.App;
/**
* Created by pwcong on 2016/9/2.
*/
public class NotificationManager {
private NotificationManager(){}
private static android.app.NotificationManager instance;
public static synchronized android.ap... | true |
593687ee1f0a504f2f34d8919d74929e60931ef1 | Java | bilak/csv-splitter | /src/main/java/com/github/bilak/spring/csvsplitter/configuration/CsvProperties.java | UTF-8 | 2,684 | 2.453125 | 2 | [] | no_license | package com.github.bilak.spring.csvsplitter.configuration;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* @author lvasek.
*/
@ConfigurationProperties
public class CsvProperties {
private boolean caseSensitiveColumnNames = false;
private String charSet = "UTF-8";
/**
* the ch... | true |
ac8dccd41e53b96f37c28e65e0cc6314f29fe07d | Java | HakJko/AutocodeEpam | /design_patterns/design_patterns/src/test/java/com/epam/rd/autocode/factory/plot/PlotFactoriesTest.java | UTF-8 | 5,111 | 3.0625 | 3 | [] | no_license | package com.epam.rd.autocode.factory.plot;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PlotFactoriesTest {
private PlotFactories factories = new PlotFactories();
@Test
public void classicDisneyPlotFactory() {
PlotFactory mermaidPlotFactory = factories.classi... | true |
18cd3ee9866304814e99047762731f2a258bf3c9 | Java | kratipaw/InterviewBit-JavaSolutions | /L3_BitMani/MinXORValue.java | UTF-8 | 904 | 3.78125 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
/**
* Given an array of N integers, find the pair of integers in the array which have minimum XOR value. Report the minimum XOR value.
Examples :
Input
0 2 5 7
Output
2 (0 XOR 2)
Input
0 4 7 9
Output
3 (4 XOR 7)
Constraints:
2 <= N <= 10... | true |
566cd9bd50343703f6768923827e8f551aa7a35c | Java | Nunkyl/Tourism | /src/main/java/order/domain/Order.java | UTF-8 | 2,617 | 2.78125 | 3 | [] | no_license | package order.domain;
import city.domain.City;
import common.business.domain.BaseDomain;
import country.domain.BaseCountry;
import user.domain.BaseUser;
import java.util.List;
/**
* Created by eliza on 22.02.19.
*/
public class Order extends BaseDomain {
private float price;
private BaseUser user;
pri... | true |
e44e0647cb3f54ae2c69898e654f3681b89f2568 | Java | jinseonhan/myFirstProject | /src/com/hw10/controller/RideController.java | UTF-8 | 2,463 | 3.4375 | 3 | [] | no_license | package com.hw10.controller;
import com.hw10.model.vo.Guests;
import com.hw10.model.vo.RollerCoaster;
public class RideController {
Guests[] gs= {new Guests("홍길동",17,'M',120.2),new Guests("유관순",20,'F',120.3),new Guests("김유신",23,'M',110.4),new Guests("김흥부",21,'M',112.5)};
Guests[] onboard; // 놀이기구 허용 인원수 크기의 ... | true |
c513a31c2cc39dfc34f8a55e244414442ff536a2 | Java | amit002pas/Approval | /src/main/java/com/yodlee/sms/yad/response/FetchMaintenanceResponse.java | UTF-8 | 787 | 2.15625 | 2 | [] | no_license | package com.yodlee.sms.yad.response;
public class FetchMaintenanceResponse {
private String status;
private String description;
private ResponseDataFetch responseData;
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getDescription()... | true |
6ece4f0f2a452233fa5961524b143e682dac253e | Java | strongerok/Git_KTP_BVT1801_Molokanov | /Zada4i/src/Difficulty_1/number7.java | UTF-8 | 824 | 3.5625 | 4 | [] | no_license | package Difficulty_1;
import java.util.Scanner;
public class number7 {
public static void main(String[] args) {//функция main. здесь выводится результат
Scanner scanner = new Scanner(System.in);//сканер, считывающий введенные с клавиатуры данные
int a = scanner.nextInt();//переменные, в которых зап... | true |
0034168b28256b301b5723086c19d7c6f6482851 | Java | DawnScience/dawn-common | /org.dawnsci.conversion/src/org/dawnsci/conversion/schemes/AlignImagesConverterScheme.java | UTF-8 | 312 | 1.921875 | 2 | [] | no_license | package org.dawnsci.conversion.schemes;
import org.dawnsci.conversion.converters.AlignImagesConverter;
public class AlignImagesConverterScheme extends AbstractConversionScheme {
public AlignImagesConverterScheme() {
super(AlignImagesConverter.class, " align stack of images", true, false, 2, 3, 4, 5);
}
}
| true |
2927bc69bf7def5a9c37fbf2903a48c53db477db | Java | prabhatsingh2408/jlc | /advance java/spring/Lab21/src/com/jlcindia/spring/Lab21.java | UTF-8 | 629 | 2.453125 | 2 | [] | no_license | package com.jlcindia.spring;
import org.springframework.core.io.*;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
public class Lab21 {
public static void main(String[] args) {
Resource res=new ClassPathResource("jlcindia.xml");
BeanFactory... | true |
4861ea2d0e9373aa0f864fa3bbe0470151e87f3d | Java | VinSey1/projet-capture | /client-javafx/src/vue/VueJour.java | UTF-8 | 12,081 | 2.421875 | 2 | [] | no_license | package vue;
import action.Controleur;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.DatePicker;
import javafx.sc... | true |
58edd6ecc2caee22900ae2923eb07d708f88b2b1 | Java | Cheikna/skypiea | /skypiea-batch/src/main/java/com/skytech/skypiea/batch/task/abstracts/CheckerTask.java | UTF-8 | 2,070 | 2.421875 | 2 | [] | no_license | package com.skytech.skypiea.batch.task.abstracts;
import java.util.TimerTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import com.skytech.skypiea.api.service.ApplicationParameterService;
import com.skytech.skypiea.commons.entity.Applicati... | true |
af62c2f6163568185016d0e0a4e10ccab377b901 | Java | brillinx/brillinx-iot-protocol | /src/main/java/com/brillinx/iot/service/core/entity/dataconnection/batch/BatchDataConnection.java | UTF-8 | 3,245 | 2.03125 | 2 | [] | no_license | package com.brillinx.iot.service.core.entity.dataconnection.batch;
import com.brillinx.iot.service.core.entity.Entity;
/**`
* Created by Kai on 2016/7/14.
*/
public class BatchDataConnection extends Entity {
public static String DataConnectFileUploadSuccess = "upload sucess";
public static String DataConne... | true |
38e3fbbd2c059225a917470c501687c5bf65d281 | Java | vidhaat/eshipper | /src/main/java/com/eshipper/web/rest/ClaimCarrierRefundResource.java | UTF-8 | 5,703 | 2.328125 | 2 | [] | no_license | package com.eshipper.web.rest;
import com.eshipper.service.ClaimCarrierRefundService;
import com.eshipper.web.rest.errors.BadRequestAlertException;
import com.eshipper.service.dto.ClaimCarrierRefundDTO;
import io.github.jhipster.web.util.HeaderUtil;
import io.github.jhipster.web.util.ResponseUtil;
import org.slf4j.Lo... | true |
a44e52e83f634f2b46e4db7338aa35a21cec4269 | Java | renespithal/DungeonCrawler | /HP/src/view/design/scenes/singleplayerGame/SingleplayerGamePresenter.java | UTF-8 | 13,623 | 2.4375 | 2 | [] | no_license | package view.design.scenes.singleplayerGame;
import javafx.beans.property.SimpleStringProperty;
import javafx.geometry.Insets;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.Background;
import javafx.scene.layout.BackgroundFill;
import javafx.scene.layout.CornerRadii;... | true |
6bb76a2ce6de30fd22c8a147e8d28c7eae053c6a | Java | hanzych/blog-dubbo | /hy-blog-common-base/src/main/java/com/yfancy/common/base/util/CommonUtil.java | UTF-8 | 2,810 | 3.046875 | 3 | [] | no_license | package com.yfancy.common.base.util;
import javax.servlet.http.HttpServletRequest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Arrays;
/**
... | true |
d29462eb57878ae279b309c6cf2cb17aab4f681d | Java | DharmendraPandit/QProgramms | /src/test/com/test/BalancedBrackets.java | UTF-8 | 1,573 | 3.484375 | 3 | [] | no_license | package test.com.test;
import java.util.Scanner;
import java.util.Stack;
public class BalancedBrackets {
public static boolean isBalanced(String expression) {
Stack<String> sb = new Stack<String>();
String[] brackets = expression.split("");
for(int i=0; i<brackets.length; i++){
... | true |
3a9f51cb08f67a72280ad427e9f57029fb826ea4 | Java | FelipeGadelha/okwork-api | /src/main/java/com/portifolio/osworkapi/domain/service/OrdemServicoService.java | UTF-8 | 4,899 | 1.992188 | 2 | [] | no_license | package com.portifolio.osworkapi.domain.service;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
imp... | true |
5206bba6229d48dee1ff3d96ac94e268ec924ade | Java | lichsword/platform | /src/com/util/UnixUtils.java | UTF-8 | 1,492 | 2.578125 | 3 | [] | no_license | package com.util;
import com.jni.UNIX;
import java.io.File;
/**
* Created with IntelliJ IDEA.
* User: lichsword
* Date: 14-6-21
* Time: 下午12:51
* <p/>
* TODO
*/
public class UnixUtils {
public static int getFileLineCount(String filepath) {
int result = 0;
File file = new File(filepath);
... | true |
78f35050d9228d5267a8432b843aca18b77578f1 | Java | SeeYCD/git_demo | /aaa/src/main/java/quick/aaa/demo/App.java | UTF-8 | 2,583 | 2.875 | 3 | [] | no_license | package quick.aaa.demo;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ThreadPoolExecutor;
import org.junit.Test;
import org.springframework.scheduling.concurrent.... | true |
f023cad56b4b8b250bd877bdd33133f7f60b3812 | Java | cxufo/ET | /et/src/com/et/util/SystemTime.java | GB18030 | 452 | 2.609375 | 3 | [] | no_license | package com.et.util;
import java.text.SimpleDateFormat;
import java.util.Date;
public class SystemTime {
/**
* ȡǰϵͳʱ
* @return ϵͳʱַ
*/
public static String getSystemTime() {
SimpleDateFormat time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// ڸʽ
String currentTime = time.format(new Date());/... | true |
32ffd3d7bb0e41b6a66b854cc396375168f1d7e6 | Java | patryllus/openmrs-module-kenyaemrIL | /api/src/main/java/org/openmrs/module/kenyaemrIL/api/db/hibernate/HibernateKenyaEMRILDAO.java | UTF-8 | 3,707 | 2.1875 | 2 | [] | no_license | /**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
* <p>
* Software distributed under the License is distributed on an "AS I... | true |
245d9ecb14a810d354955ce996e68f4153a8ec07 | Java | lavengebla/telegramGame | /src/main/java/ru/dcp/gamedev/demo/models/model/inventory/InventoryModel.java | UTF-8 | 458 | 2 | 2 | [] | no_license | package ru.dcp.gamedev.demo.models.model.inventory;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import ru.dcp.gamedev.demo.models.AbstractBaseEntity;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
@Getter
@Setter
@NoArgsCon... | true |
c0bfd52fd2ffdb63c98532015cc9e4f767d43a33 | Java | ibisek/vfrManual-android | /app/src/main/java/com/ibisek/vfrmanualcz/data/Contact.java | UTF-8 | 616 | 2.390625 | 2 | [] | no_license | package com.ibisek.vfrmanualcz.data;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by ibisek on 26.3.18.
*/
public class Contact {
public String name;
public String phone;
public String mail;
public Contact(String name, String phone, String mail) {
this.name = n... | true |
40369c7f2041a1e780375df336cad7d9e5f6908e | Java | randomgrace/2018-POWERUP_old | /src/com/spartronics4915/frc2018/auto/modes/PowerupHelper.java | UTF-8 | 1,215 | 2.140625 | 2 | [
"MIT"
] | permissive | package com.spartronics4915.frc2018.auto.modes;
import com.spartronics4915.frc2018.auto.actions.Action;
import com.spartronics4915.frc2018.auto.actions.ActuateArticulatedGrabberAction;
import com.spartronics4915.frc2018.auto.actions.DrivePathAction;
import com.spartronics4915.frc2018.auto.actions.ParallelAction;
impor... | true |
27cfaca6c6d900e88bb747a921271856111ae42d | Java | Pypy233/ERPServer | /src/main/java/service/dataservice/GoodsStockReturnDataService.java | UTF-8 | 546 | 1.890625 | 2 | [
"MIT"
] | permissive | package service.dataservice;
import objects.ResultMessage;
import po.GoodsStockReturnPO;
public interface GoodsStockReturnDataService {
/**
*增加库存退货商品
* @param po
* @return
*/
public ResultMessage add(GoodsStockReturnPO po);
/**
*删除库存退货商品
* @param po
* @return
*/
... | true |
83b8a90b9e8d74ccb8556634cadc1127fbbc1f39 | Java | DoubleFooker/program-tutorials | /tutorials-parent/pattern/src/main/java/com/ognice/proxy/dproxy/jdkproxy/JdkProxyTargetInterface.java | UTF-8 | 176 | 1.8125 | 2 | [] | no_license | package com.ognice.proxy.dproxy.jdkproxy;
/**
* 动态代理接口类
*/
public interface JdkProxyTargetInterface {
void doMethod(String name);
void doMethod2();
}
| true |
d2e5a399d664c54b6f7d24a30f6e60d17a036833 | Java | johnspade/blog | /src/main/java/ru/johnspade/dao/Post.java | UTF-8 | 1,791 | 2.453125 | 2 | [] | no_license | package ru.johnspade.dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
impor... | true |
24454c138b8afaa261bae90c8e701ee18ab4be2c | Java | karimaechihabi/lernaean-hydra | /hydra1/code/dstree/dstree-orig/src/main/java/cn/fudan/cs/dstree/util/system/SystemInfoUtils.java | UTF-8 | 724 | 1.6875 | 2 | [] | no_license | package cn.edu.fudan.cs.dstree.util.system;
import java.util.List;
public interface SystemInfoUtils {
public static final long MEGABYTE = 0x100000L;
public abstract long getTotalMemory();
public abstract long getFreeMemory();
public abstract long getUsedMemory();
public abstract L... | true |
0af11badf78e2dbee589535df92924dd06831e39 | Java | iamacnhero/citrus | /service/resource/src/main/java/com/alibaba/citrus/service/resource/impl/ResourceLoaderContextImpl.java | UTF-8 | 6,963 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2002-2012 Alibaba Group Holding Limited.
* 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... | true |
b260467658c510f111a8c6109cd227e87e38f196 | Java | wangxiaobin0/leetcode | /src/main/java/com/leetcode/hot/LeetCode_20_IsValid.java | UTF-8 | 1,580 | 3.984375 | 4 | [] | no_license | package com.leetcode.hot;
import java.util.HashMap;
import java.util.Stack;
/**
* 20. 有效的括号
* 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。
*
* 有效字符串需满足:
*
* 左括号必须用相同类型的右括号闭合。
* 左括号必须以正确的顺序闭合。
* 注意空字符串可被认为是有效字符串。
*
* @author
* @date 2020/4/20
*/
public class LeetCode_20_IsValid {
public static boo... | true |
e63d14058f797cc285c71c9ceab500f9809f471b | Java | ccbury/GroupProject | /src/main/java/com/groupo/project/services/CustomerService.java | UTF-8 | 1,133 | 2.671875 | 3 | [] | no_license | package com.groupo.project.services;
import com.groupo.project.databases.Database;
import com.groupo.project.models.Customer;
import java.util.ArrayList;
import java.util.List;
public class CustomerService {
Database d = new Database();
private List<Customer> customer = d.getCustomersDB();
public Lis... | true |
8346168453fc92e68fac203470a71ef6801b8efb | Java | borisvera/copy-program-partial-java-18-1-with-interface | /src/copy4/designsmell/Printer.java | UTF-8 | 177 | 2.59375 | 3 | [] | no_license | package copy4.designsmell;
import common.Util;
public class Printer implements InterfaceWriter{
public void write(String value) {
Util.output(" *Printer: " + value);
}
} | true |
d09377ae82328ffbd473cb38fa7b23f848062924 | Java | sambit77/Algoexpert-Java | /MaxSumIncreasingSubsequence.java | UTF-8 | 5,193 | 3.984375 | 4 | [] | no_license | //Time Complexity O(n^2) | Space Complexity O(n)
import java.util.*;
class A
{
//to share max sum of increasing subsequnce across functions/methods
public static int maxSum = 0;
public static void main(String[] args)
{
//given array from which we need to find max sun increasing sub sequence
int[] arr ... | true |
446813036d0b05e07950d55925166ecc19f75b66 | Java | class7hb/android2017 | /json/src/com/hb/company/Sales.java | UTF-8 | 590 | 2.59375 | 3 | [] | no_license | package com.hb.company;
public class Sales {
private String sabun,name;
public Sales() {
// TODO Auto-generated constructor stub
}
public Sales(String sabun, String name) {
super();
this.sabun = sabun;
this.name = name;
}
public String getSabun() {
return sabun;
}
public void setS... | true |
e1647de6dd5e02dd6c2f64245720e4fafd27085d | Java | homan0613/taskManagement | /src/taskmanagement/processor/RankProcess.java | UTF-8 | 1,105 | 2.453125 | 2 | [] | no_license | package taskmanagement.processor;
import java.util.List;
import taskmanagement.taskinfo.PersonRank;
import taskmanagement.taskinfo.Rank;
public class RankProcess {
/**
* @param idPerson id person can lay thong tin event
* @param cost so gio lam cua task
* @param listRank danh sach rank
* @param listRankPe... | true |
9588abfe02ef88d549a88f93f01970379cea8a69 | Java | LeandroKlug/senai | /estoque/src/dao/ItensDoadosDAO.java | ISO-8859-2 | 879 | 2.59375 | 3 | [] | no_license | package dao;
import java.util.List;
import javax.persistence.Query;
import models.ItensDoados;
import models.Pessoa;
import models.Roupas;
public class ItensDoadosDAO extends DAOModel<ItensDoados> {
public boolean salvar(ItensDoados d1) {
if(d1.getId() > 0) {
// j est no banco de dados
this.update(d1);... | true |
f2b0b5d0aba6b079dcf69e3dad6dc35d60db3739 | Java | Vortelf/DnDAndroid | /BuildApp/DnD/src/vortelf/dnd/Paladin.java | UTF-8 | 674 | 2.140625 | 2 | [] | no_license | package vortelf.dnd;
public class Paladin extends Classes {
public Skill[] PaladinSkills;
public Paladin(AbilityModifiers AM, String[] SkillArr) {
super(AM);
PaladinSkills = new Skill[] {
new Skill("Athletics"),
new Skill("Insight"),
new Skill("Intimidation"),
new Skill("Medicine"),
new Skill("P... | true |
d766180577f996351724ed3ae343f0dc87fb9d18 | Java | dnjsp/JAVA | /HIGH JAVA/ServletTest/src/main/java/kr/or/ddit/json/LprodDAO.java | UTF-8 | 1,133 | 2.40625 | 2 | [] | no_license | package kr.or.ddit.json;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import kr.or.ddit.util.DBUtil;
public class LprodDAO {
public List<LprodVO> getLprodList() {
Connection conn = ... | true |
01bd7f05244db7436a32247422f649f66f4d3c45 | Java | rlrlaa123/SDS_Algorithm | /problem2621_sol.java | UTF-8 | 2,889 | 2.953125 | 3 | [] | no_license | package example01;
import java.util.Arrays;
import java.util.Scanner;
public class problem2621_sol {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int[] Ncolors = new int[4];
int[] Nnumbers = new int[9];
for(int i=0; i<5; i... | true |
b3c6e69242f0d24a44473a846a21e5205e4a12bd | Java | ToliNety/algorithms | /8Puzzle/src/Board.java | UTF-8 | 3,273 | 3.15625 | 3 | [] | no_license | import java.util.LinkedList;
import java.util.List;
public class Board {
private final int[][] blocks;
private final int length;
private int i0;
private int j0;
private final int manhattan;
public Board(int[][] blocks) {
this.blocks = blocks;
this.length = blocks.length;
... | true |
5e77ddb6cdd6be16453b3de6b7d82f8f33a34d8e | Java | desaikrutarth/Core-Java | /Core Java/src/LeetCode/Medium/MaximumAreaOfIsland.java | UTF-8 | 2,467 | 3.734375 | 4 | [] | no_license | package LeetCode.Medium;
/*
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrounded by water.
Find the maximum area of an island in the given 2D array. (If there is n... | true |
b42733f821374aaa0db9fb0159a159309f57147f | Java | MyGitHub-CC/Java1703 | /src/review/stringDemo/StringDemo.java | UTF-8 | 816 | 3.109375 | 3 | [] | no_license | package review.stringDemo;
import org.junit.Test;
public class StringDemo {
public static void main(String[] args) {
}
@Test
public void test1() {
String str1 = "1212";
String str2 = "123";
int num1 = Integer.parseInt(str1);
int num2 = Integer.parseInt(str2);
System.out.println(num1);
System.o... | true |
ecb65aeee27d86356a7949ea3983d51143bbb81d | Java | wojaczek/fpj-monitor | /fpj-monitor/src/main/java/com/fpj/spring/service/GenericService.java | UTF-8 | 3,928 | 2.171875 | 2 | [] | no_license | package com.fpj.spring.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.springframework.da... | true |
cc88922ec20ced92a599846bdbbbfa9e0140f561 | Java | Zefalcon/ATSSG | /Script/ScriptInterface.java | UTF-8 | 11,785 | 2.578125 | 3 | [] | no_license | package ATSSG.Script;
import ATSSG.Entities.Entity;
import ATSSG.Script.Framework.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import ... | true |
3bd0f71777c0a1be74f7af849b049ce8154a6bb3 | Java | s3791620/Assignment-2-HanLin-s3791620 | /src/main/controller/AdminController.java | UTF-8 | 14,513 | 2.0625 | 2 | [] | no_license | package main.controller;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.*;... | true |
364615c80427da462f53349cb545948a85b4da50 | Java | pengrad/old-moscow3 | /src/rzd/model/objects/CarHistory.java | UTF-8 | 1,410 | 2.625 | 3 | [] | no_license | package rzd.model.objects;
import java.util.Date;
/**
* Created by IntelliJ IDEA.
* User: Евгений
* Date: 17.10.2010
* Time: 2:20:46
* To change this template use File | Settings | File Templates.
*/
public class CarHistory {
private Date date;
private CarLocation carLocation;
private ... | true |
0534ff85225f3e945958c2b312826f1ba36a035c | Java | Bachhop98/Strust1 | /Demo/src/bachtuanhop/actionForm/T002ActionForm.java | UTF-8 | 2,534 | 2.375 | 2 | [] | no_license | package bachtuanhop.actionForm;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts.action.ActionForm;
public class T002ActionForm extends ActionForm {
private static final long serialVersionUID = 1L;
private String userName;
private String customerName;
private String sex;
private Strin... | true |
6ea976ec1750255314e03cfe79d040da076cf306 | Java | AurielKiss/GITworkspace | /BKAuzduotys1/src/P6dot10/Main.java | UTF-8 | 529 | 3.21875 | 3 | [] | no_license | package P6dot10;
public class Main {
public static void main(String[] args) {
int pirmas[] = {5,3,2,5,6,4,2,4};
int antras[] = {6,2,5,4,2,9,5,3};
System.out.println(sameSet(pirmas, antras));
}
public static boolean sameSet(int[] a, int[] b){
boolean nzn = false;
for(int i = 0; i < a.length; i++... | true |
5f51c7cae6855eda13a25e76d5104d23eb4614af | Java | marthel/DistroLabA | /src/UI/UpdateShopServlet.java | UTF-8 | 1,889 | 2.46875 | 2 | [] | no_license | package UI;
import BO.CarHandler;
import DB.DatabaseException;
import UI.Models.UiCar;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.... | true |
ed5eff5689910e38b9f4e751829f7a35631c7a94 | Java | mahara13/solarStatistic | /src/main/java/vm/example/solarStatistic/service/SolarService.java | UTF-8 | 3,695 | 2.4375 | 2 | [] | no_license | package vm.example.solarStatistic.service;
import org.springframework.stereotype.Component;
import vm.example.solarStatistic.model.DayStatistic;
import vm.example.solarStatistic.model.StatisticResponse;
import vm.example.solarStatistic.model.exception.BadFormattedDateRangeException;
import vm.example.solarStatistic.mo... | true |
04ba36b60067ddc7968d5693e3ba49da4ca729f8 | Java | TheTimurid/constellation | /CoreGraphFramework/src/au/gov/asd/tac/constellation/graph/schema/concept/SchemaConceptUtilities.java | UTF-8 | 10,207 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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 appl... | true |
4b760732514c983ae1b6c65e1d088f9ba90dc1c9 | Java | ytempest/love_food | /src/main/java/com/ytempest/service/ActivityInfoService.java | UTF-8 | 574 | 1.757813 | 2 | [] | no_license | package com.ytempest.service;
import com.ytempest.exception.ServiceException;
import com.ytempest.vo.ActivityInfoVO;
import com.ytempest.vo.PageVO;
import com.ytempest.vo.UserActivityPrizeVO;
import java.util.List;
/**
* @author ytempest
* Description:
*/
public interface ActivityInfoService {
PageVO<Activity... | true |
c6e53709d59c1f3cd16c14fbbe9d120ee7b628d3 | Java | MapleStoryBoy/JavaStudy | /code6/src/code6/Test1_Rectangle.java | UTF-8 | 1,058 | 4.0625 | 4 | [] | no_license | package code6;
public class Test1_Rectangle { //矩形
public static void main(String[] args) {
// TODO Auto-generated method stub
Rectangle r = new Rectangle(10,20);
System.out.println(r.getLength());
System.out.println(r.getArea());
}
}
/*
A:案例演示
需求:
定义一个长方形类,定义 求周长和面积的方法,
然后定义一个测试类进行测试。
分析:
... | true |
7f80e215312327d05f9cda96ef99be34c02ba9bc | Java | sivasrinivas/RecFlix | /src/main/java/com/nimbus/RecFlix/UserBased/UserSimilarity.java | UTF-8 | 4,541 | 2.6875 | 3 | [] | no_license | package com.nimbus.RecFlix.UserBased;
import java.io.IOException;
import java.util.*;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.io.*;
import org.apache.hadoop.mapreduce.*;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce... | true |
b071cf3a09ab12cba9c66d1e368e726bcb7b80d4 | Java | Arcty/P2Ptest | /app/src/main/java/tbs/p2p/MainActivity.java | UTF-8 | 3,789 | 2.421875 | 2 | [] | no_license | package tbs.p2p;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.*;
import java.util.ArrayList;
public class MainActivity extends Activity {
public static MainActivity mainActivity;
public st... | true |
573ac6c6b9b63ebe2e75de9c4ededfa656695dc9 | Java | f4bio/jafs | /Game/src/client/ui/UiManager.java | UTF-8 | 1,986 | 2.5625 | 3 | [] | no_license | package client.ui;
import client.Main;
import java.awt.AlphaComposite;
import java.awt.Graphics2D;
import java.util.Vector;
/**
*
* @author Julian Sanio
*/
public class UiManager {
/**
*
*/
public static final int DECO_HEIGHT = 0;
/**
*
*/
public static final int DECO_WIDTH = 1... | true |
8dfde9c2d1772d90296b197d1d82064fc71bccc7 | Java | MiguelPMorales/workspace | /Code Work/src/workstuff/Employees.java | UTF-8 | 1,012 | 3.25 | 3 | [] | no_license | package workstuff;
public class Employees {
public static void main(String[] args) {
String[] employeeName = {"Greg","George","Jill","John","Basil"};
int[] wage = {15,16,21,15,22};
int[] hoursWorked = {20,30,15,60,38};
for(int i = 0; i < employeeName.length; i++) {
System.out.println("i: " + ... | true |
6cbec2064d834bfc980f2e17d962f2f0ea958f99 | Java | meetparekh09/Coding-Practice | /Java/practice/LeetCodeProblem63.java | UTF-8 | 1,336 | 3.265625 | 3 | [] | no_license | package practice;
public class LeetCodeProblem63 {
public static void main(String []args) {
Solution63 sol = new Solution63();
System.out.println(sol.uniquePathsWithObstacles(new int[][]{{0, 0, 0}, {0, 1, 0}, {0, 0, 0}}));
}
}
class Solution63 {
public int uniquePathsWithObstacles(int[][] ... | true |
b7422e7a0331027ec6fbaf3d3d8c3172bd3df457 | Java | rithika59/ds-bubble-sort | /bubble.java | UTF-8 | 942 | 3.5625 | 4 | [] | no_license | /* bubble sort */
public class bubble{
static void bsort(int[] arr){
int n = arr.length;
for(int i =0;i<n;i++){
for(int j =1;j<(n-i);j++){
if(arr[j-1]>arr[j])
{
arr[j-1] = arr[j-1]+arr[j];
arr[j] = arr... | true |
ff817d4d05e6f85b02d6e2369fac4a403e11f0ea | Java | lstypka/spring-security-oauth2-distributed-system | /client1/src/main/java/pl/lstypka/springSecurityOAuth2DistributedSystem/client1/ClientApplication.java | UTF-8 | 577 | 1.742188 | 2 | [] | no_license | package pl.lstypka.springSecurityOAuth2DistributedSystem.client1;
/**
* Created by Lukasz Stypka on 2015-11-23.
*/
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.... | true |
9e5a434c6f24a54746263d092ca6dcc3be6700ec | Java | Nakeuh/Sandbox-Computing | /Sandbox_Java/src/main/java/spark/modulary_data_processing_architecture/example/modules/paris_market/CustomMarchesStream.java | UTF-8 | 1,226 | 2.5 | 2 | [] | no_license | package spark.modulary_data_processing_architecture.example.modules.paris_market;
import java.nio.file.Files;
import java.nio.file.Paths;
import org.apache.spark.storage.StorageLevel;
import org.apache.spark.streaming.receiver.Receiver;
import spark.modulary_data_processing_architecture.example.modules.utils... | true |
0d6e41475188b817c5b13b3f33d90a643dbcc13b | Java | Catfeeds/Einvoice | /e-invoice-pro/src/main/java/com/invoice/bean/db/PreInvoiceAsk.java | UTF-8 | 2,307 | 1.65625 | 2 | [] | no_license | package com.invoice.bean.db;
import java.util.Date;
public class PreInvoiceAsk {
private String entid;
private String sheetid;
private String sheettype;
private String recvemail;
private String recvphone;
private int flag;
private String gmftax;
private String gmfname;
private String gmfadd;
private String ... | true |
17465c8e4246ea3b671e1956bccd5bad49fef39b | Java | cecastil/Tutorial | /src/Orelly/StringApiRepeatAString.java | UTF-8 | 1,111 | 4.25 | 4 | [] | no_license | package Orelly;
public class StringApiRepeatAString {
public static void main(String[] args) {
//Imagine that you need to build a data table with padded whitespaces between key/values pairs to improve
//its readability.
System.out.println(renderInfo("CPU Usage: ", "5%"));
System.o... | true |
1082a5cb3525db35015f6481b3c6a6a654950830 | Java | yokim809/-_JAVA | /oop/src/oop5/Product.java | UHC | 448 | 3.34375 | 3 | [] | no_license | package oop5;
class Product{
private String name;
private int price;
private String brand;
public Product() { }
public Product(String name, int price, String brand) {
this.name = name;
this.price = price;
this.brand = brand;
}
public void print(){
System.out.println("ǰ: " + name);... | true |
dbed10a7f1e71d5ae907b19e04db11086449f2df | Java | monrealis/java-experiments | /design-patterns/src/main/java/eu/vytenis/patterns/structural/composite/money/Person.java | UTF-8 | 507 | 2.953125 | 3 | [] | no_license | package eu.vytenis.patterns.structural.composite.money;
import eu.vytenis.patterns.structural.composite.api.MoneySource;
import java.util.ArrayList;
import java.util.List;
public class Person implements MoneySource {
private final List<MoneySource> sources = new ArrayList<>();
public void addSource(MoneySou... | true |
35c75f6781a700ac46fd05b30c63c29e07cf0926 | Java | franck-romano/quarkus | /core/runtime/src/main/java/io/quarkus/runtime/Application.java | UTF-8 | 10,035 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package io.quarkus.runtime;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.LockSupport;
import org.eclipse.microprofile.config.spi.ConfigProviderResolver;
import org.graalvm.nativeimage.ImageInfo;
import org.wildfly.common.Assert;
import org.wild... | true |
84a6b38767e224ecabfeb081c7eede1370883e86 | Java | BrewWinds/common | /src/main/java/file/Files.java | UTF-8 | 331 | 1.953125 | 2 | [] | no_license | package file;
/**
* @Date: 2019/8/20 14:45
* @Description:
*/
public final class Files {
private Files(){};
public static final int BUFF_SIZE = 8192;
public static final String UNIX_LINE_SEP = "\n";
public static final String WINDOWS_LINE_SEP = "\r\n";
public static final String MAC_LINE_SEP ... | true |
398dafe6424f9cb07004bd26f438ba81e66c3acb | Java | Contents-Issue-Project/Android-application | /app/src/main/java/com/example/android_application/presentation/Details/Leaf/LeafPresenter.java | UTF-8 | 1,434 | 2.484375 | 2 | [] | no_license | package com.example.android_application.presentation.Details.Leaf;
import com.example.android_application.Data.Leaf.LeafFormat;
import com.example.android_application.Data.Leaf.LeafParam;
import com.example.android_application.Domain.Leaf.LeafUseCase;
import com.example.android_application.util.DataUnavailableExcepti... | true |
6e38024902ce0d0939f329a1ce70827677d3c30d | Java | witnesslq/zhengxin | /src/org/xpup/hafmis/sysloan/dataready/assistantorg/business/InsuranceBS.java | GB18030 | 13,152 | 1.984375 | 2 | [] | no_license | package org.xpup.hafmis.sysloan.dataready.assistantorg.business;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.xpup.common.util.Pagination;
import org.xpup.hafmis.common.util.BusiConst;
import org.xpup.hafmis.common.util.BusiTools;
import o... | true |
c12133f8492fff109db879db30a9083a21ba9304 | Java | pnor/GridWars | /core/src/com/mygdx/game/creators/EntityConstructor.java | UTF-8 | 111,615 | 2.40625 | 2 | [
"MIT"
] | permissive | package com.mygdx.game.creators;
import com.badlogic.ashley.core.Engine;
import com.badlogic.ashley.core.Entity;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.g... | true |
a959023e3445a826236a7de654a7ee6375b547b4 | Java | yiwenbin/SmartPlatform | /module_main/src/main/java/com/ywb/module_main/WelcomeService.java | UTF-8 | 343 | 1.84375 | 2 | [] | no_license | package com.ywb.module_main;
import io.reactivex.Observable;
import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Url;
/**
* 描述:欢迎页网络请求
* 作者:ywb
* 日期:2018/5/4 14:47
*/
public interface WelcomeService {
@GET
Observable<ResponseBody> getAdvertisementBitmap(@Url String url);
}
| true |
4f1776835a6b828c4d67d94abaac9b0c1e51f098 | Java | uzol1/springTry | /springproject/src/main/java/com/bway/springproject/daos/StudentDaoImpl.java | UTF-8 | 1,422 | 2.5 | 2 | [] | no_license | package com.bway.springproject.daos;
import java.util.List;
import javax.annotation.Resource;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
... | true |
f41840998a68c2b9f76a3123f7daf793579071fc | Java | gabrielnicolae3103/Student-Management-App-BackEnd | /src/main/java/com/aws/codestar/projecttemplates/service/GrupaService.java | UTF-8 | 510 | 1.820313 | 2 | [] | no_license | package com.aws.codestar.projecttemplates.service;
import com.aws.codestar.projecttemplates.models.Grupa;
import com.aws.codestar.projecttemplates.repositories.GrupaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class GrupaServ... | true |
374973a421fa4a7c05608e8c0934938c9f7f2df2 | Java | nvivas/Proyecto | /Proyecto/ProyectoFPSv6/src/sentencias/Tareas_modulo.java | UTF-8 | 2,801 | 2.765625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sentencias;
import Gestor.Conexion;
import clases.Modulo;
import clases.Pedido;
import java.sql.PreparedStatement;
import java... | true |
e461430420bd7b0a0b3572c8832e2a03c5a864e8 | Java | fernando-romulo-silva/myStudies | /java/spring/pro-spring-5/pro-spring-5-chapter03-introducing-ioc-di-spring/pro-spring-5-chapter03-part06-field-injection/src/main/java/com/apress/prospring5/ch3/annotated/FieldInjectionMain.java | UTF-8 | 1,116 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | package com.apress.prospring5.ch3.annotated;
import org.springframework.context.support.GenericXmlApplicationContext;
/**
* Created by iuliana.cosmina on 2/15/17.
*/
public class FieldInjectionMain {
// But there are drawbacks, and this is why using field injection is usually avoided.
//
// * Although ... | true |
7142ca631271033362bd1360e9198df2a8774ed9 | Java | ottocash/ottocash-sdk | /sdk/src/main/java/com/otto/sdk/model/api/response/ClientsResponse.java | UTF-8 | 2,227 | 2.046875 | 2 | [] | no_license | package com.otto.sdk.model.api.response;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import app.beelabs.com.codebase.base.response.BaseResponse;
@JsonIgnoreProperties(ignoreUnknown = true)
public class ClientsResponse extends BaseResponse {
private Data data;
private Meta meta;
public ... | true |
34dbb4d130ca79fc9a9265f6890731e9501d64b8 | Java | mars3725/Networked-Shooter | /core/src/com/mattmohandiss/networkedShooter/Screens/GameServer.java | UTF-8 | 1,669 | 2.53125 | 3 | [] | no_license | package com.mattmohandiss.networkedShooter.Screens;
import com.badlogic.ashley.core.Engine;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.kotcrab.vis.ui.VisUI;
import com.mattmohandiss.networkedShooter.Commander;
import com.mattmohandiss.networkedShooter.GameWorld;
import com.matt... | true |
f1e103fb9ed419737a0a75ee06dcea81e1fe1094 | Java | uzxmx/monjya_android | /app/src/main/java/com/monjya/android/util/ToastManager.java | UTF-8 | 1,750 | 2.671875 | 3 | [] | no_license | package com.monjya.android.util;
import android.content.Context;
import android.widget.Toast;
import com.monjya.android.app.Monjya;
import java.lang.ref.WeakReference;
/**
* Created by xuemingxiang on 16-11-13.
*/
public class ToastManager {
private static WeakReference<Toast> toastWeakReference;
publi... | true |
84ce28fb82476f8aa7244b43ee5d228d582ab002 | Java | hanggege/testnm | /androidlib/td/td_wb/src/main/java/com/joker/wb/login/WeiboLoginModel.java | UTF-8 | 2,840 | 1.96875 | 2 | [] | no_license | package com.joker.wb.login;
import android.app.Activity;
import android.content.Intent;
import androidx.annotation.NonNull;
import com.joker.connect.TdCallBack;
import com.joker.constant.TdErrorCode;
import com.joker.flag.TdFlags;
import com.joker.login.LoginModel;
import com.joker.model.BackResult;
import com.joker... | true |