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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3f0b51483a779ded8aaace4ea3c3f696a7fa678c | Java | LJOSS/MeassurePreassure | /app/src/main/java/com/example/measurepressure/History.java | UTF-8 | 811 | 2.5625 | 3 | [] | no_license | package com.example.measurepressure;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import java.util.List;
public class History extends AppCompatActivity {
TextView tvShow;
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
696e54af35167180bbeafa6b8e379f1d280591f6 | Java | Siarko/remote-cmd-host | /src/main/java/pl/siarko/Profiler/ProfilerCategory.java | UTF-8 | 351 | 2.84375 | 3 | [] | no_license | package pl.siarko.Profiler;
public class ProfilerCategory {
private int times = 0;
private int count = 0;
public void update(int time){
this.times += time;
this.count++;
}
public int getCount(){
return this.count;
}
public float getAvg(){
return (float)(t... | true |
ffa921460285245ff938eefa3a204e12ea1edbbd | Java | LegacyofAden/emu-ungp | /commons/src/main/java/org/l2junity/commons/config/utils/ConfigLoader.java | UTF-8 | 9,028 | 2.046875 | 2 | [] | no_license | package org.l2junity.commons.config.utils;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.text.StrBuilder;
import org.atteo.classindex.ClassIndex;
import org.l2junity.commons.config.annotation.ConfigAfterLoad;
import org.l2ju... | true |
88c34e184177641275cf736fd82ae38cba650fd6 | Java | eeveorg/GMSI | /script/names/IntVarSpace.java | UTF-8 | 3,446 | 2.4375 | 2 | [
"MIT"
] | permissive | /*
* Decompiled with CFR 0_119.
*/
package script.names;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.TreeMap;
import script.InternalScriptError;
import script.dataObjects.DataObject;
import script.dataObjects.DataType;
import script.dataObjects.LastArrayIndex... | true |
e3f4efc1d97c1e2c1476d244c6788dc673c9d89a | Java | lazy-share/lazy-falcon | /lazy-falcon-core/src/main/java/com/lazy/falcon/core/model/input/ApiResponseParamItemInputModel.java | UTF-8 | 1,205 | 2.015625 | 2 | [] | no_license | package com.lazy.falcon.core.model.input;
/**
* <p>
* API 响应参数 Item 输入模型
* </p>
*
* @author laizhiyuan
* @date 2018/6/2.
*/
public class ApiResponseParamItemInputModel {
/**
* 参数名称
*/
private String name;
/**
* 参数描述
*/
private String desc;
/**
* 参数备注
*/
... | true |
a9f88a16b3067eca374a4ab56980dba6e80c543f | Java | tsuyo/topcoder-tsuyo | /catandrat-java/CatAndRat.java | UTF-8 | 376 | 2.828125 | 3 | [] | no_license | import static java.util.Arrays.*;
import static java.lang.Math.*;
import java.util.*;
public class CatAndRat {
public double getTime(int R, int T, int Vrat, int Vcat) {
if (Vrat >= Vcat) return -1.0;
double D = Math.PI * R;
double rat = Vrat * T;
if (rat >= D) {
return D / (Vcat - Vrat);
... | true |
a711256646a1ddd4f9e4301488585caa8cf98a14 | Java | FantuzzoMarco/Tesina | /Fantuzzo Marco/App/app/src/main/java/com/pitteriimpiantisrl/app/AddJobDialog.java | UTF-8 | 7,441 | 2.171875 | 2 | [] | no_license | package com.pitteriimpiantisrl.app;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.AsyncTask;
import android.text.format.DateUtils;
import android.view.View;
import android.widget.Button;
import android.widget... | true |
af725eb169d11e3b2c419f053e6cc426337de597 | Java | yudaidang/AlgorithmTSPTW | /app/src/main/java/com/example/yudai/algorithmtsptw/Tour.java | UTF-8 | 193 | 1.9375 | 2 | [] | no_license | package com.example.yudai.algorithmtsptw;
public class Tour {
public double score;
public int[] tour;
public Tour() {
score = 0;
tour = new int[TSPTW.N+1];
}
}
| true |
7249b6ce423b666c469f72873a8d2ae8ad6e43ee | Java | tgrundtvig/EDMA | /IntelliJ/ExampleModel/DiveWithUs/src/com/cphdiving/divewithus/edma/generated/valuedomains/coursereg/BootSize.java | UTF-8 | 3,727 | 2.703125 | 3 | [] | no_license | package com.cphdiving.divewithus.edma.generated.valuedomains.coursereg;
import com.cphdiving.divewithus.edma.generated.DiveWithUs;
import com.cphdiving.divewithus.edma.generated.valuedomains.coursereg.impl.BootSizeImpl;
import com.cphdiving.divewithus.edma.generated.valuedomains.external.EDMA_ExternalConstraints;
impo... | true |
e570a22b0afcaa9e7057e3d02456e0ef3cc77836 | Java | danyele999/progettoUtente | /BlockBuster/src/main/java/it/daniele/business/TipoRuolo.java | UTF-8 | 80 | 1.796875 | 2 | [] | no_license | package it.daniele.business;
public enum TipoRuolo {
ROLE_USER, ROLE_ADMIN
}
| true |
5b5737e3ead5ab0b885c85699da3f0dc4cae6279 | Java | cristianokunas/ExpoPorto-APP | /app/src/main/java/kunas/app/expoporto/ListaProgramacaoActivity.java | UTF-8 | 4,743 | 1.921875 | 2 | [] | no_license | package kunas.app.expoporto;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.w... | true |
223c1fc4bba8318d0e8fa3305c079645e4244efd | Java | UCLA-ECE209AS-2018W/Haoming-Liang | /Rachio_apk/sources/com/shinobicontrols/charts/cf.java | UTF-8 | 624 | 2.234375 | 2 | [
"BSD-2-Clause"
] | permissive | package com.shinobicontrols.charts;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.os.Build.VERSION;
import android.view.View;
class cf extends View {
private final Drawable jZ;
@SuppressLint({"NewApi", "ViewConstructor"})
... | true |
7b7c5f53e4a093a63f902387ea2235914f224692 | Java | l793854601/TKMHimalaya | /app/src/main/java/com/tkm/himalaya/fragments/HistoryFragment.java | UTF-8 | 751 | 2 | 2 | [] | no_license | package com.tkm.himalaya.fragments;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.tkm.himalaya.R;
import com.tkm.himalaya.base.BaseFragment;
/**
* 历史
*/
publ... | true |
c324d354d4f77e54f706df66e6eac8d87b6adc07 | Java | BradleyKRamunas/Daely | /app/src/main/java/com/bramuna/daely/data/types/History.java | UTF-8 | 1,418 | 2.625 | 3 | [] | no_license | package com.bramuna.daely.data.types;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class History {
@SerializedName("date")
@Expose
private String date;
@Serialize... | true |
bcc7c6c2c240f8c0993e1c32a10a64b675291c8d | Java | maboeckmann/java-serializer | /dataformat-xml/src/main/java/io/adminshell/aas/v3/dataformat/xml/mixin/BlobMixin.java | UTF-8 | 756 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package io.adminshell.aas.v3.dataformat.xml.mixin;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import io.adminshell.aas.v3.dataformat.xml.serialization.BlobValueS... | true |
15ca84be2021b233338de3861df9e1b463677f41 | Java | zhx1019/leetCodeSrc | /ojTest/BalancedTree.java | UTF-8 | 1,279 | 3.5625 | 4 | [] | no_license | package ojTest;
import java.util.ArrayList;
public class BalancedTree {
public boolean isBalanced(TreeNode root) {
if(root == null)
{
return true;
}
ArrayList<Integer> al = new ArrayList<Integer>();
traverseTree(root, al, 1);
int max = al.get(0);
int min =... | true |
d106fdf043b304f8f8ca9ebe19461b7548c041e9 | Java | nikowitt/3rd-party-issues | /src/test/java/IDEA_189535_Junit5SingleTestSelectionTest.java | UTF-8 | 782 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | import static org.junit.jupiter.params.provider.Arguments.of;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public ... | true |
699622705ebe5613fa21cbba8007af51fd2fb673 | Java | TheDarkeOne/DesignPatternsRepo | /Swing-Testing/src/MainFrame.java | UTF-8 | 1,699 | 3.1875 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MainFrame extends JFrame {
private Input input;
private JButton btn1;
private JButton btn2;
private Output output;
public MainFrame(){
super("Swing Testing");
... | true |
156509197d2c65e238582fb324b24df49681af62 | Java | weipingQin/AndroidShoppingAdProject | /goumei/src/com/www/goumei/activity/AttentionAct.java | UTF-8 | 1,168 | 1.8125 | 2 | [] | no_license | package com.www.goumei.activity;
import com.www.goumei.R;
import com.www.goumei.fragment.AttentionFragment;
import android.os.Bundle;
/**
*
* @ClassName: AttentionAct
* @Description: TODO
* @author sunyouyi
* @date 2015-6-1 下午9:17:52
*
*/
public class AttentionAct extends BaseFragmentActivity {
@Override
p... | true |
d0121bf22c5b9d98b3a572a529db17e6986f723d | Java | aruiz69/SimpleJPA | /JavaApplication6/src/entities/Order.java | UTF-8 | 2,578 | 2.5625 | 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 entities;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import java... | true |
aff074b41b8975c1b0eb0de04eaf5f9d6bab12de | Java | MarkusBerthold/group311-server | /src/LongestTrain.java | UTF-8 | 198 | 2.15625 | 2 | [] | no_license |
import java.awt.image.BufferedImage;
public class LongestTrain extends Card {
private int points;
private BufferedImage image;
LongestTrain(){
this.points = 10;
}
}
| true |
0f42020fa22f8a90a1b1eee1ad3aedc6a84c2310 | Java | rudy2steiner/KVEngine | /engine_java/src/main/java/com/alibabacloud/polar_race/engine/kv/event/Cell.java | UTF-8 | 1,506 | 2.40625 | 2 | [] | no_license | package com.alibabacloud.polar_race.engine.kv.event;
import com.alibabacloud.polar_race.engine.common.StoreConfig;
import com.alibabacloud.polar_race.engine.common.recyclable;
import java.nio.ByteBuffer;
public class Cell implements recyclable {
private final static int KEY_LENGTH=StoreConfig.KEY_SIZE;
priva... | true |
2b28a5579d5bf4ba1737bba49936dc7eb378d988 | Java | gerixx/spring-boot | /accounts-management/src/main/java/com/smec/cc/accountsmanagement/db/entity/AccountEntityRepository.java | UTF-8 | 210 | 1.539063 | 2 | [] | no_license | package com.smec.cc.accountsmanagement.db.entity;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AccountEntityRepository
extends JpaRepository<AccountEntity, Long> {
}
| true |
b347f2a1519e4b1233c166f0a1d93a53016e94f9 | Java | SuperHuggy/HogLab | /Temp/src/LabWork0.java | UTF-8 | 3,281 | 3.1875 | 3 | [] | no_license | import java.io.*;
import java.text.DecimalFormat;
public class LabWork0
{
public static void main(String[] args)
{
System.out.println("-----------------------------------------------------------------------------------------------------------------------------------");
System.out.println(" № |... | true |
d86b263c72a2709a1c976a4adf53247afd4d1268 | Java | NightTerror1721/gow | /src/main/java/kp/gow/parser/Operator.java | UTF-8 | 3,989 | 2.671875 | 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 kp.gow.parser;
/**
*
* @author mpasc
*/
public class Operator implements ParsedCode
{
private final OperatorSymbol symb... | true |
301f3a017364387cc5775274184d674e053e5971 | Java | jimsush/IHN | /projects/bootstrap/src/java/com/sf/core/bootstrap/def/module/ModuleConstants.java | GB18030 | 943 | 2.390625 | 2 | [] | no_license | package com.sf.core.bootstrap.def.module;
/**
* <p>
* Title: ModuleConstants
* </p>
* <p>
* Description: ģƵij࣬ģ״̬
* </p>
*
* modified [who date description]
* check [who date description]
*/
public interface ModuleConstants {
/**
* ״̬
*/
String STATUS_NONE = "NONE";
/**
*... | true |
29e5af115b46f052c85073a869fc16335aca0964 | Java | moutainhigh/agent | /agentManage/agentManageAdmin-api/src/main/java/com/ryx/credit/pojo/admin/agent/AgentQuit.java | UTF-8 | 6,851 | 1.578125 | 2 | [] | no_license | package com.ryx.credit.pojo.admin.agent;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
public class AgentQuit implements Serializable{
private String id;
private String agentId;
private String agentName;
private String quitPlatform;
pri... | true |
b9553d4671fc6fea44c06ffc6cb52f020613ba45 | Java | explosiveforce/HR_management | /HR_management/src/main/java/com/ndgwww/HR/management/Config/DepartConfig.java | UTF-8 | 2,357 | 2.3125 | 2 | [] | no_license | package com.ndgwww.HR.management.Config;
import com.ndgwww.HR.management.pojo.Department;
import org.apache.ibatis.jdbc.SQL;
public class DepartConfig {
//更新
public String update(Department department) {
return new SQL() {{
UPDATE("department");
if (department.getNa... | true |
418584705deac3e11c940361912d68504ea62b73 | Java | nativebinary/java-common | /java-common-basic/src/main/java/common/basic/events/EventChange.java | UTF-8 | 194 | 2.078125 | 2 | [] | no_license | package common.basic.events;
public class EventChange<T> {
public boolean onChanging(T before, T after) {
return true;
}
public void onChanged(T before, T after) {
}
}
| true |
c093f97ff72f14c09da1dc22cff38b001dd97a68 | Java | yoojaZhang/xiaojue | /src/main/java/com/eg/mp/web/controller/LoginController.java | UTF-8 | 705 | 1.734375 | 2 | [] | no_license | package com.eg.mp.web.controller;
import com.eg.mp.web.error.OperationStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org... | true |
9bfca71d5c43b3eb30358272ab354c3eae95cd2a | Java | n-ong/Monopoly | /prop.java | UTF-8 | 452 | 2.828125 | 3 | [] | no_license | public class prop extends SquareType
{
private int cost;
private int value;
public prop(String name, String tileType, int cost, int value)
{
super(name, tileType);
this.cost = cost;
this.value = value;
}
public int getCost()
{
return cost;
}
public void setCost(int x)
{
... | true |
a70d6b3d5867c6585f6b20f41270f7fbdcf3271a | Java | arpit9691/Data-Structures-and-Algorithms | /DataStructures/src/AnagramPractice.java | UTF-8 | 962 | 3.34375 | 3 | [] | no_license | import java.util.HashMap;
public class AnagramPractice {
public static void main(String[] args) {
// TODO Auto-generated method stub
String a = "Arpot"; char[] a1 = a.toCharArray();
String b = "rpiAt"; char[] b1 = b.toCharArray();
HashMap<Character,Integer> hm = new HashMap<Character,Integer>();
if(... | true |
7bffb1b4ab59170bfe93a3c84ff8fee870bccaf6 | Java | LukeSAV/ProtoScape | /src/org/apollo/game/event/handler/impl/PrivateChatEventHandler.java | UTF-8 | 536 | 2.078125 | 2 | [
"ISC"
] | permissive | package org.apollo.game.event.handler.impl;
import org.apollo.game.event.handler.EventHandler;
import org.apollo.game.event.handler.EventHandlerContext;
import org.apollo.game.event.impl.PrivateChatEvent;
import org.apollo.game.model.Player;
import org.apollo.game.model.PrivateChat;
public final class PrivateChatEven... | true |
872dca9b1844b5c40812bb1f29665e6d3d552aa0 | Java | XY113HE/DouYu | /app/src/main/java/com/ibagou/dou/network/NetWorkManager.java | UTF-8 | 1,989 | 2.1875 | 2 | [] | no_license | package com.ibagou.dou.network;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.CallAdapter;
import retrofit2.Converter;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import com.... | true |
7bfb2fdcc9a0429cf5bc7e44f6a0ff05a362a70d | Java | currrentbp/myGenProject | /src/main/java/com/currentbp/test/other/Java8Test.java | UTF-8 | 6,342 | 3.03125 | 3 | [] | no_license | package com.currentbp.test.other;
import com.currentbp.common.model.Course;
import com.currentbp.common.model.Student;
import com.currentbp.common.model.Subject;
import com.currentbp.util.all.ListUtil;
import org.assertj.core.util.Lists;
import org.junit.Test;
import java.util.*;
import java.util.stream.Collectors;
... | true |
c47a6a46b539c400f06f347a6f485180a13b6ef1 | Java | borjafg/IPS_SCRUM | /IPS_L5/src/business/impl/empaquetado/CargarProductosOT.java | ISO-8859-1 | 1,162 | 2.625 | 3 | [] | no_license | package business.impl.empaquetado;
import javax.persistence.PersistenceException;
import business.exception.BusinessException;
import business.impl.util.Command;
import model.OrdenTrabajo;
import model.Pedido;
import persistence.ProductoEnOrdenTrabajoFinder;
import persistence.exception.MyPersistenceException;
publi... | true |
89e055760fd05257faa91f019e6bd63f678e706c | Java | yetote/MP4Info | /app/src/main/java/com/yetote/mp4info/bean/Vmhd.java | UTF-8 | 1,957 | 2.09375 | 2 | [] | no_license | package com.yetote.mp4info.bean;
import android.text.SpannableStringBuilder;
import android.util.Log;
import com.yetote.mp4info.model.Box;
import com.yetote.mp4info.model.FullBox;
import com.yetote.mp4info.util.CharUtil;
import com.yetote.mp4info.util.NIOReadInfo;
import java.nio.channels.FileChannel;
public class ... | true |
89cb83c7f769e0c8a7a6f698696746b16d55a69d | Java | Maciej-Poleski/DnDP-SVN | /trunk/DnDC/src/dndp/engine/card/bonus/Bonus.java | UTF-8 | 688 | 2.953125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates and open the template in
* the editor.
*/
package dndp.engine.card.bonus;
/**
* Modeluje zachowania premii.
*
* @author bambucha
*/
public interface Bonus
{
/**
* Dodaje premię danego typu do pola
*
* @param bonus
* War... | true |
cf1d17448d1f409df7ce835f3b83db119f17ecb6 | Java | MaelSantos/Veiculos-Pajeu | /src/br/com/VeiculosPajeu/Dao/DaoFuncionario.java | UTF-8 | 289 | 1.90625 | 2 | [] | no_license | package br.com.VeiculosPajeu.Dao;
import br.com.VeiculosPajeu.Dao.Interface.IDaoFuncionario;
import br.com.VeiculosPajeu.Entidade.Funcionario;
public class DaoFuncionario extends Dao<Funcionario> implements IDaoFuncionario {
public DaoFuncionario() {
super(Funcionario.class);
}
}
| true |
1bb368695762b4f66fcc51df0781b45fb5cfd7fb | Java | bhanupalsingh/Simpl | /src/com/simpl/validate/Validator.java | UTF-8 | 202 | 2.21875 | 2 | [] | no_license | package com.simpl.validate;
public class Validator {
public static boolean isDiscountValid(double discount) {
if(discount <0 || discount > 100) {
return false;
}else {
return true;
}
}
}
| true |
3d01b6c2399ca05595bb1377f90bfc7ad8e7474e | Java | kakeking/kra | /app/src/main/java/com/usyd/riceapp/DfRecord.java | UTF-8 | 2,659 | 2.25 | 2 | [] | no_license | package com.usyd.riceapp;
import com.google.firebase.firestore.GeoPoint;
import com.google.firebase.firestore.ServerTimestamp;
import java.util.ArrayList;
import java.util.Date;
public class DfRecord {
private String recordId;
private @ServerTimestamp Date plantDate;
private @ServerTimestamp Date createD... | true |
bc04ca49421ad800dc8c1fa2c188f52007b19143 | Java | zhong2peng/dnight-framework | /dnight-leetcode/[0127][Word Ladder]/src/Solution.java | UTF-8 | 3,116 | 3.6875 | 4 | [
"MIT"
] | permissive | import java.util.*;
/**
* @author ZHONGPENG769
* @date 2019/9/9
*/
public class Solution {
/**
* Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:
* <p>
* Only one letter can be changed... | true |
89c72606c15fa19791e9adf78485f9b579ef9bfd | Java | PalladioSimulator/Palladio-Addons-EnvironmentalDynamics | /tests/org.palladiosimulator.envdyn.api.tests/src/org/palladiosimulator/envdyn/api/tests/util/ModelLoader.java | UTF-8 | 5,190 | 1.539063 | 2 | [] | no_license | package org.palladiosimulator.envdyn.api.tests.util;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.Collections;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.Resour... | true |
c495d9e3ddc244c3fd85b054acb71547fb269419 | Java | sanathsaithal/Wolken | /spring/dependency_injection/loggers/shops/src/main/java/com/wolken/shops/dao/ShopsDAO.java | UTF-8 | 142 | 1.625 | 2 | [] | no_license | package com.wolken.shops.dao;
import com.wolken.shops.entity.ShopsEntity;
public interface ShopsDAO {
String save(ShopsEntity entity);
}
| true |
3373ad55eb63e7f08cd2cbfc991639990adda85b | Java | cckmit/mimosaframework | /mimosa-orm/src/main/java/org/mimosaframework/orm/sql/WhereItem.java | UTF-8 | 1,935 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package org.mimosaframework.orm.sql;
import org.mimosaframework.orm.criteria.CriteriaLogic;
public class WhereItem {
private Class tableLeft;
private Object field;
private SymbolType symbol = SymbolType.EQ;
private Class tableRight;
/**
* 如果tableRight存在则value肯定是字段
* 如果tableRight不存在则valu... | true |
6fb40541d06afa8c1ec230c58eaeab2f755a7e46 | Java | jasonkim4201/tasktrackv0 | /src/main/java/com/tasktrack/tasktrackv0/repository/TodosRepo.java | UTF-8 | 276 | 1.507813 | 2 | [] | no_license | package com.tasktrack.tasktrackv0.repository;
import com.tasktrack.tasktrackv0.model.Todos;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;
public interface TodosRepo extends JpaRepository<Todos, Long> {
}
| true |
cbd3c4c053140c9e72f9b30ebd5d9ac800b2488c | Java | Pavan18/intuit_assignment | /Primenumber.java | UTF-8 | 1,872 | 3.828125 | 4 | [] | no_license |
/*
*
* Input : Number of prime numbers to be found and the numbers itself
* Output: Prime number associated with the input numbers
* Description: Finds the prime number based on the input using Sieve of Eratosthenes in O(nlog(log(n)))
*
*
*/
import java.util.HashMap;
import java.util.Scan... | true |
9f40f4b3193746a132618f63a6a0fc3fd590d922 | Java | kevinmingtarja/kattis-solutions | /conformity.java | UTF-8 | 2,026 | 3.109375 | 3 | [] | no_license | import java.io.*;
import java.util.HashMap;
import java.util.HashSet;
public class conformity {
// Kevin Nathanael Mingtarja
// A0219748N
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
PrintWriter pw = new PrintWriter(new B... | true |
e50602e711cd87d0e99cbbc0ca791d8dc3c35195 | Java | ruynzhang/shanxing | /pay/src/main/java/com/dimeng/p2p/pay/job/TestJob.java | UTF-8 | 789 | 2.078125 | 2 | [] | no_license | package com.dimeng.p2p.pay.job;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.quartz.CronTrigger;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import com.dimeng.p2p.pay.util.QuDateUtil;
/**
* 测试Job
*
* @au... | true |
5c8bc9d653b765bce55daa4c4ea015568430fedb | Java | Leclaire1941/Transport | /src/main/java/by/epam/classes/transport/util/Calculator.java | UTF-8 | 2,118 | 2.75 | 3 | [] | no_license | package by.epam.classes.transport.util;
import by.epam.classes.transport.entity.AbstractWagon;
import by.epam.classes.transport.entity.CargoWagon;
import by.epam.classes.transport.entity.CoachWagon;
import by.epam.classes.transport.entity.Train;
import org.apache.log4j.Logger;
import java.util.ArrayList;
import java.... | true |
f0caedfe2fbd8ea72d29b9e89b3d9415f0415d65 | Java | probaby/cloud | /spring-service1/src/main/java/com/example/springcontrol/dispatch/DispatchControl.java | UTF-8 | 804 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.example.springcontrol.dispatch;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author huangbia... | true |
8cedfe9ee3cd2bf07636d5ac16fa8b77e7805080 | Java | AccaEmme/DemoJerseyRESTAPI | /src/main/java/it/accaemme/spring/demo/DemoApplication.java | UTF-8 | 605 | 1.960938 | 2 | [] | no_license | package it.accaemme.spring.demo;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication extends ResourceConfig {
public static void main(String[] ar... | true |
310f68ef5e4dc8b8ccdb68da5dd751c2820e4c24 | Java | Aniz/EvDSL | /splcc/data/Author.java | UTF-8 | 2,315 | 2.4375 | 2 | [] | no_license | //#if ${InsertAuthors} == "T"
package {{systemName|lower}}.ev.data;
public class Author {
private int idAuthor;
private String name;
private String filiation;
private String email;
{% if data.option.properties|length > 0 %}
//generated By DSL
{% for property in data.option.properties %}
private {{property.type|... | true |
eb89ff6665e26a879a3b58aa71ceabb590c1b3f8 | Java | mrizkymunggaran/moten-util | /markup/trunk/src/main/java/moten/david/markup/CurrentStudy.java | UTF-8 | 1,578 | 2.546875 | 3 | [] | no_license | package moten.david.markup;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import moten.david.markup.xml.study.Document;
import moten.david.markup.xml.study.Study;
import org.apache.commons.io.IOUtils;
import com.google.inject.Inject;
import co... | true |
aad03fe1c5d43ac0b516bbeb26f1fd023cd947cf | Java | Zhornovyi/flowershop | /FlowerShop.java | UTF-8 | 1,580 | 2.578125 | 3 | [] | no_license | package flowershop;
import flowershop.Flower.Flower;
import flowershop.Flower.FreshFlower;
import java.io.File;
import java.io.FileNotFoundException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Date;
import java.util.Sca... | true |
73a8d2e30183af2732be22688696d4b243fd3897 | Java | eric-lanita/BigRoadTruckingLogbookApp_v21.0.12_source_from_JADX | /com/bigroad/shared/at.java | UTF-8 | 12,915 | 1.835938 | 2 | [] | no_license | package com.bigroad.shared;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
public class at {
private static final byte[] f2644a = new byte[]{(byte) 8, (byte) 7, (byte) 6, (byte) 5, (byte) 4, (byte) 3, (byte) 2, (byte) 10, (byte) 0, (byte) 9, (byte) 8, (byte) 7,... | true |
d06198836f60044d24ba628d38422dd3825d881b | Java | aghyles/Anek08 | /src/main/java/com/popov/t04jh/service/impl/DosageServiceImpl.java | UTF-8 | 1,932 | 2.5 | 2 | [] | no_license | package com.popov.t04jh.service.impl;
import com.popov.t04jh.service.DosageService;
import com.popov.t04jh.domain.Dosage;
import com.popov.t04jh.repository.DosageRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.a... | true |
e370f53aced3487abb0129bd12240d0c124cb5ca | Java | MissakaI/Institute-Administration-System | /src/lk/ijse/gdse41/ias/dao/custom/QueryDAO.java | UTF-8 | 2,079 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lk.ijse.gdse41.ias.dao.custom;
import java.util.ArrayList;
import lk.ijse.gdse41.ias.dao.SuperDAO;
import lk.ijse.gdse41.ias.d... | true |
b1450983eed045206bbcfa4c95e68241118b7c31 | Java | BelegCuthalion/utanks | /src/GamePanel.java | UTF-8 | 3,662 | 2.890625 | 3 | [] | no_license | import things.*;
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class GamePanel extends JPanel implements BombArena {
private Tank player1;
private Tank player2;
private List<Thing> thingsToDraw = new ArrayList<>(10);
private List<Wall> walls = new A... | true |
e37569ab6c96bd899d0eef2a26df18c2f66f0e89 | Java | slvrookie/sea-of-ql | /DannyKop/QLJava/src/org/uva/sea/ql/parser/test/form/TestQuestions.java | UTF-8 | 1,166 | 2.546875 | 3 | [] | no_license | package org.uva.sea.ql.parser.test.form;
import static org.junit.Assert.*;
import org.junit.Test;
import org.uva.sea.ql.ast.form.*;
import org.uva.sea.ql.ast.types.BoolType;
import org.uva.sea.ql.ast.types.IntType;
import org.uva.sea.ql.ast.types.StrType;
import org.uva.sea.ql.parser.test.ParseError;
import org.uva.s... | true |
4fa8e41c95293069dbf86bc4c711459a9c58452d | Java | lhirsu/Algorithms | /src/main/java/problems/maximum_subarray/MaximumSubArrayAlgo.java | UTF-8 | 151 | 1.929688 | 2 | [] | no_license | package problems.maximum_subarray;
public interface MaximumSubArrayAlgo {
String getName();
MaximumSubArray findMaxSubArray(int[] array);
} | true |
a788d3b801a2bd66095ccc254e08b7444cf3c307 | Java | quochuy190/BabuMart | /app/src/main/java/com/vn/babumart/activity/notify/ActivityDetailNotify.java | UTF-8 | 2,340 | 1.929688 | 2 | [] | no_license | package com.vn.babumart.activity.notify;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;
import com.vn.babumart.R;
import com.vn.babumart.base.BaseActivity;
import com.vn.babumart.config.Constants;
import com.vn.babum... | true |
1c37c242fc46598a5043e51619ee64fe7db8ece3 | Java | shoadowboy/algorithm | /src/main/java/com/demo/algorithm/array/ReversePairs.java | UTF-8 | 617 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | package com.demo.algorithm.array;
/**
* 在数组中的两个数字如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
* 给你一个数组,求出这个数组中逆序对的总数。概括
* :如果a[i] > a[j] 且 i < j, a[i] 和 a[j] 构成一个逆序对。
*
* @author peichunle
*
*/
public class ReversePairs {
public long reversePairs(int[] A) {
//复杂度o(n^2) 后续优化
long count = 0;
for (int i = 0; i < A.le... | true |
e9a71927e23988f55edbc45dd52d46d96cd24e52 | Java | chaetodontidae/Glimmer-small-task | /src/main/java/com/example/demo/util/JsonTransfer.java | UTF-8 | 705 | 2.59375 | 3 | [] | no_license | package com.example.demo.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class JsonTransfer {
public static String ObjectToJason(Object object){
ObjectMapper mapper=new ObjectMapper();
String json=null;
try{
... | true |
ab29ce674f9a53a4a2cf2a02b22b0688f63debc1 | Java | ChuZiHang/H5.skstravel.com | /src/main/java/com/skstravel/common/mapper/sksports2/SkCartMapper.java | UTF-8 | 1,111 | 1.859375 | 2 | [] | no_license | package com.skstravel.common.mapper.sksports2;
import com.skstravel.common.model.sksports2.SkCart;
import com.skstravel.common.model.sksports2.SkCartExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface SkCartMapper {
long countByExample(SkCartExample example);
int dele... | true |
4b30cc7e2d93dbbfd801c57119689cafe9f88a21 | Java | sriramprasad4u/shopping | /ManuVastra/app/src/main/java/com/manuvastra/Store.java | UTF-8 | 4,664 | 2.5625 | 3 | [] | no_license | package com.manuvastra;
import android.app.Activity;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.json.JSONArray;
import org.json.JSONException;
import java.io.IOException;
import java... | true |
20a96466537c890759c1643b3f5a4140f6af9376 | Java | Nabiarov/Java_pirma | /src/main/java/Klientas.java | UTF-8 | 877 | 2.578125 | 3 | [] | no_license | public class Klientas {
private String vardas;
private String pavarde;
private String pavadinimas;
private int kiekis;
public Klientas(){
}
public Klientas(String vardas,String pavarde,String pavadinimas,int kiekis) {
this.vardas = vardas;
this.pavarde = pavarde;
t... | true |
7177742f5605fc3fadb8a36c514fffc7f5157871 | Java | JauneWhale/JW-Mini3D | /Mmath/Mbasic.java | UTF-8 | 672 | 2.921875 | 3 | [] | no_license | package Mmath;
public final class Mbasic {
public static int Isinclude(int x, int min, int max){
return (x < min)? min : ((x > max)? max : x);
}
public static float Isinclude(float x, float min, float max){
return (x < min)? min : ((x > max)? max : x);
}
public static float Interp(float x1, float x... | true |
e7ffae0f11fa22003f04554ad93ac16e1cb71844 | Java | AppSecAI-TEST/UIView2 | /valley/src/main/java/com/hn/d/valley/main/other/SearchPOIUIView.java | UTF-8 | 7,868 | 1.703125 | 2 | [] | no_license | package com.hn.d.valley.main.other;
import android.support.annotation.NonNull;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.animation.Animation;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.amap.api.maps.mo... | true |
130c5f9921b018c556acb0634213d82c253e69de | Java | ahowe442/java-web-dev-exercises | /src/exercises/Triangle.java | UTF-8 | 497 | 3.578125 | 4 | [] | no_license | package exercises;
import java.util.Scanner;
public class Triangle {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.println("What is your Triangle's height?: ");
int triHeight = input.nextInt();
System.out.println("What is your Triangle's... | true |
1c2c1602f369b5f20310d2bc95e5bda469ab5681 | Java | RaulSong/java_study | /CH19_Exception/src/throwing_exception/Thermostat.java | UHC | 467 | 3.53125 | 4 | [
"MIT"
] | permissive | package throwing_exception;
public class Thermostat {
public void setTemperature(double temperature) throws Exception {
if(temperature < 0 || temperature > 35) {
//µ ó . throw ϴ ܸ ߿ ó( ҵ带 ȣ ó)
throw new Exception("µ Դϴ.");
}
System.out.println("µ : " + temperature); //µ
}
}
| true |
0dddf3e34d1a791ce82c00c9a59dab0b3e0a1f2b | Java | zann1x/ProjectEuler | /src/Problem005.java | UTF-8 | 642 | 3.265625 | 3 | [] | no_license | /*
* Find the smallest positive number that is evenly divisible by all numbers from 1 to 20
* Answer: 232792560
*/
public class Problem005 {
public static void main(String[] args) {
long num = 20;
while (true) {
if (num % 2 == 0 && num % 3 == 0 && num % 4 == 0 && num % 5 == 0 &&
num % 6 == 0 && num % ... | true |
648cea118dd0efbb3536f84210cc4816ba38c62b | Java | SMugallimov/SynergyProject | /src/main/java/block3/homework3_1/EmployeeRunner.java | UTF-8 | 2,175 | 3.8125 | 4 | [] | no_license | package block3.homework3_1;
import java.util.*;
public class EmployeeRunner {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
List<Employee> employees = new ArrayList<>();
int qtyEmployees = 15;
int workAges;
int workAge = 0;
Rando... | true |
4245bbd63b8d04fab2255dd72123ed961785ed3c | Java | caprice/myAndroidCommLib | /Git/GMProjects/driverGuard/src/main/java/com/gm/driverGuard/util/ConfigManager.java | UTF-8 | 2,059 | 2.625 | 3 | [] | no_license | package com.gm.driverGuard.util;
import java.io.File;
import java.io.FileInputStream;
import java.net.URL;
import java.util.Properties;
import org.apache.commons.lang3.StringUtils;
import org.apache.log4j.helpers.Loader;
/**
* <li><li>File Name: ConfigManager.java <li>Title: ConfigManager
* <li>Descr... | true |
fd7822ebc51fd379404801c1e8e0a14424ccde34 | Java | SignV/BlogSSM | /src/main/java/ssm/blog/controller/BlogTypeAdminController.java | UTF-8 | 3,499 | 2.515625 | 3 | [] | no_license | package ssm.blog.controller;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
imp... | true |
8bda24e871fb272c0fc22a34b970b4b478d2d0d8 | Java | deepexpert-gaohz/sa-d | /jnnsBank/system-api/src/main/java/com/ideatech/ams/system/trace/dto/UserTraceDTO.java | UTF-8 | 1,444 | 1.898438 | 2 | [] | no_license | package com.ideatech.ams.system.trace.dto;
import com.ideatech.ams.system.trace.enums.OperateModule;
import com.ideatech.ams.system.trace.enums.OperateType;
import com.ideatech.common.dto.BaseMaintainableDto;
import lombok.Data;
import java.util.Date;
/**
* @author jzh
* @date 2019-10-30.
*/
@Data
public class U... | true |
62308edf7134ac1424733609ce14530a5f47e359 | Java | Almubn/basic-testing-project | /src/test/java/com/examples/CreateTable.java | UTF-8 | 1,227 | 2.390625 | 2 | [] | no_license | package com.examples;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.... | true |
8661cbda677c7adbfaad4ea340f5384c38dde267 | Java | wocaishiliuke/study-datastructure | /src/com/baicai/tree/Tree.java | UTF-8 | 762 | 3.234375 | 3 | [] | no_license | package com.baicai.tree;
/**
* 树
* @Author yuzhou
* @Date 18-12-14
*/
public interface Tree {
/**
* 查找节点
* @param value
* @return Node
*/
Node find(int value);
/**
* 查找最大值
* @return Node
*/
Node findMax();
/**
* 查找最小值
* @return Node
*/
No... | true |
071231e7d5ec487f3d29dbde0c19f743b74a5cec | Java | edgd1er/M1S2_CAR | /TP2/src/com/restgateway/services/FTPService.java | UTF-8 | 12,782 | 2.640625 | 3 | [] | no_license | package com.restgateway.services;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.cor... | true |
94e705daa32ab6d36040cfd4860c7832a0db21cc | Java | huanghaixiang/FirstGitTest | /src/main/java/com/noah/manage/controller/BaseController.java | UTF-8 | 1,981 | 2.34375 | 2 | [] | no_license | package com.noah.manage.controller;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.OutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.ExceptionHandler;
... | true |
683b746fe2c2d4f0df17feee00c4ebd8208c2ce7 | Java | Thief007/x9pro | /Settings/com/mediatek/settings/PDebug.java | UTF-8 | 892 | 2.09375 | 2 | [] | no_license | package com.mediatek.settings;
import android.os.SystemProperties;
import android.os.Trace;
public class PDebug {
private static Boolean DEBUG;
private static long TRACE_TAG;
static {
boolean z = true;
DEBUG = Boolean.valueOf(true);
TRACE_TAG = 0;
if (SystemProperties.get(... | true |
1cbf9f2bb77ea9b3ed6cf30187dfd442f27ea36a | Java | neeeekoooo/boubei-tss | /src/main/java/com/boubei/tssx/wx/gzh/GetGZHOpenId.java | UTF-8 | 2,453 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /* ==================================================================
* Created [2018-03-14] by Jon.King
* ==================================================================
* TSS
* ==================================================================
* mailTo:boubei@163.com
* Copyright (c) boubei.com, 2015-... | true |
be77b4d4f408bb6b7604a3cf8aa2aef32203924b | Java | ruupusensei/BellmanFord | /Vertex.java | UTF-8 | 142 | 2.421875 | 2 | [] | no_license |
public class Vertex {
int label;
Vertex predecessor;
public Vertex(int label) {
this.label = label;
this.predecessor = null;
}
}
| true |
9a33de965b3ad5eaa03b5730e408b168ede4ae07 | Java | burningrain/libGDX-book-gameDelopmentByExample | /chapter4/ecs-simple/src/com/github/br/ecs/simple/engine/debug/data/ImageData.java | UTF-8 | 169 | 1.523438 | 2 | [
"MIT"
] | permissive | package com.github.br.ecs.simple.engine.debug.data;
/**
* Created by user on 07.04.2018.
*/
public class ImageData implements DebugData {
private float x, y;
}
| true |
d987c1b2c7838038ca1e18ffc4ec9fe1bb6ad2a5 | Java | Rea2/UT | /src/test/java/triangle/TestMethod_getSquare.java | UTF-8 | 4,976 | 2.84375 | 3 | [] | no_license | package triangle;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import java.util.*;
/**
* Created by Raik Yauheni on 23.11.2018.
*/
public class TestMethod_getSquare {
@DataProvider(name = "dP_Squares")
public Object[][] create() {
return ne... | true |
d9c6b3cf1054e5284b238006afaa32a3ab754c26 | Java | elingsudo/NikiLaundry | /src/controller/master/MasterLayananController.java | UTF-8 | 2,513 | 2.0625 | 2 | [] | no_license | /*
* Copyright (C) 2017 triastowo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distribu... | true |
def62701cabe375432dd1d88c1788eef97474269 | Java | Carln-66/JavaNotebook | /JavaSenior/Reflection/src/NewInstanceTest.java | UTF-8 | 2,420 | 3.796875 | 4 | [] | no_license | import org.junit.Test;
import reflection.Person;
import java.util.Random;
/**
* @Auther: Carl
* @Date: 2021/02/20/18:50
* @Description:
* 通过反射创建对应的运行时类对象
*/
public class NewInstanceTest {
@Test
public void test1() throws IllegalAccessException, InstantiationException {
Class<Person> aClass = Pers... | true |
516fb510c540e0441206c9c857c85d5e892e9477 | Java | deepexpert-gaohz/sa-d | /jnnsBank/pbc-service/src/main/java/com/ideatech/ams/pbc/spi/syncValidater/AmsLinshiOpenSyncValidater.java | UTF-8 | 5,287 | 2.390625 | 2 | [] | no_license | package com.ideatech.ams.pbc.spi.syncValidater;
import com.ideatech.ams.pbc.dto.AllAcct;
import com.ideatech.ams.pbc.exception.SyncException;
import com.ideatech.common.utils.StringUtils;
import org.apache.commons.lang.ArrayUtils;
import org.springframework.stereotype.Component;
/**
* 人行账管系统临时户开户报备校验器
*
* @autho... | true |
f46a8d25c336f60f71bbfde20b3ffda9a708d094 | Java | AlejandroDaneri/AlgoMon | /src/vista/contenedores/ZonaDeEleccionParaJugador.java | UTF-8 | 1,087 | 2.296875 | 2 | [] | no_license | package vista.contenedores;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
public class ZonaDeEleccionParaJugador extends BorderPane {
public ZonaDeEleccionPara... | true |
9d9cb7349a02383139715e012a53e1ddfdd4f797 | Java | dinesh0307/Stockader | /ShareMarket/src/main/java/com/dinesh/share/market/dao/StockHistoryDataDao.java | UTF-8 | 1,021 | 2.65625 | 3 | [] | no_license | package com.dinesh.share.market.dao;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
/**
*
* @author Dinesh S
*
*/
public class StockHistoryDataDao
{
private Connection connection;
public StockHistoryDataDao( Connection connection )
{
this.connection = ... | true |
3b34992bb3ea09e6f673adc17573a61b3d228418 | Java | suyash-capiot/operations | /src/main/java/com/coxandkings/travel/operations/service/prepaymenttosupplier/paymentadvice/PaymentAdviceLoaderService.java | UTF-8 | 866 | 2 | 2 | [] | no_license | package com.coxandkings.travel.operations.service.prepaymenttosupplier.paymentadvice;
import com.coxandkings.travel.operations.exceptions.OperationException;
import com.coxandkings.travel.operations.model.prepaymenttosupplier.paymentadvice.PaymentAdvice;
import com.coxandkings.travel.operations.resource.prepaymenttosu... | true |
76c1b3225da2c0547d2aba3198529087f978a14d | Java | ZRich97/SpeedGame | /src/Card.java | UTF-8 | 2,698 | 3.90625 | 4 | [] | no_license |
import java.awt.Image;
public class Card{
private int value;
private String suit;
private Image image;
int x;
int y;
/**
Default constructor for Card class.
*/
public Card(){
suit = "";
value = 0;
image = null;
x = 30;
y = 30;
}
/**
In-depth... | true |
5de3f02f7f6f22a11dab01c73de07bd8d036f49b | Java | lyn-hub/CodingPractice | /Implement PriorityQueue/src/heap/PriorityQueue.java | UTF-8 | 2,516 | 3.671875 | 4 | [] | no_license | package heap;
import java.util.Arrays;
public class PriorityQueue {
//Fields
//For easy to test, I set the fields are public.
public int[] array;
public int size;
private static final int[] DEFAULT_ARRAY = new int[16];
// Constructors
public PriorityQueue(int[] array) {
if (array == null ... | true |
2c2c7e27093e3d3034bf37c9276d40fd3a403eb9 | Java | RedHotChiliBots/FRC4453_2020_PROJ | /src/main/java/frc/robot/commands/AutonDriveJoystick.java | UTF-8 | 2,226 | 2.390625 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
b93b0b37b1be46ed88523107dfd5e25eaaf224b4 | Java | ishche/zgis | /GeoTech/src/org/mati/geotech/app/ApplicationWorkbenchAdvisor.java | UTF-8 | 651 | 1.921875 | 2 | [] | no_license | package org.mati.geotech.app;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;
public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
@Override
public String getInitialWindo... | true |
0831e1d5448aeb3c8a439c07e75c3fb1027e9e53 | Java | AlaricLightin/S1000D-PM-Viewer | /src/test/java/ru/biderman/s1000dpmviewer/rest/SecurityPublicationTest.java | UTF-8 | 3,634 | 2.078125 | 2 | [] | no_license | package ru.biderman.s1000dpmviewer.rest;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
impo... | true |
6902b959444880b4117c3004c3612ea7db08b392 | Java | paulzhouuu/clean-android-java | /app/src/main/java/com/mconnect/mobile/imageviewer/ui/internal/di/modules/DataModule.java | UTF-8 | 4,091 | 1.914063 | 2 | [] | no_license | package com.mconnect.mobile.imageviewer.ui.internal.di.modules;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.mconnect.mobile.imageviewer.data.db.SqliteDbHelper;
import ... | true |
a2afcb95fcd505fc3449fe2d19e91aecc120ff14 | Java | stanvanrooy/decompiled-instagram | /decompiled/instagram/sources/p000X/C45171xP.java | UTF-8 | 325 | 1.5625 | 2 | [] | no_license | package p000X;
/* renamed from: X.1xP reason: invalid class name and case insensitive filesystem */
public abstract class C45171xP extends C12380ge {
public final boolean A00;
public final int AGu() {
return 1;
}
public C45171xP(int i, boolean z) {
super(i);
this.A00 = z;
... | true |
69f47e81ba6c80ddce32a53fbf6b33ca4ec9d8ed | Java | illandril/CableModemStatus | /src/net/illandril/cableModem/status/ArrisSB6141.java | UTF-8 | 5,871 | 2.359375 | 2 | [
"MIT"
] | permissive | package net.illandril.cableModem.status;
import java.time.ZonedDateTime;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ArrisSB6141 extends StatusPageParser {
@Override
public StatusPageData parse( ZonedDateTime statusPageRequestTime, String statusPageHTML ) {
... | true |
96988387df4a17c8fe14e02ceb232439e71131b2 | Java | tonyg-performio/tg-java | /src/test/java/com/tony/java/lambda/PersonalDetailsTest.java | UTF-8 | 392 | 3.125 | 3 | [] | no_license | package com.tony.java.lambda;
public class PersonalDetailsTest {
public static void main(String[] args) {
PersonalDetails personalDetails = ((FirstName, SecondName, Age) -> {
System.out.println("My name is " + FirstName + " " + SecondName);
System.out.println("Age " + Age);
... | true |