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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ea95bd3f4f73cb6ff3c335c7e5b6fae9e4b0caa4 | Java | wishwa-gayan/SosialApp | /app/src/main/java/com/wixmat/sosialapp/setup.java | UTF-8 | 18,639 | 1.570313 | 2 | [] | no_license | package com.wixmat.sosialapp;
import android.app.DatePickerDialog;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import and... | true |
96f153fb10b220e108d857920a5f1133605806c3 | Java | hokhyk/sso_web | /WEB-INF/lib/shr_sso_client_820.jar.src/com/kingdee/shr/sso/client/util/BASE64Encoder.java | UTF-8 | 2,707 | 1.945313 | 2 | [] | no_license | /* */ package com.kingdee.shr.sso.client.util;
/* */
/* */ public class BASE64Encoder
/* */ {
/* */ public static String encodeBuffer(byte[] bytes) {
/* 6 */ char[] Base64Code = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
/* 7 */ '... | true |
dbef4d315da608d75b60485203c819a434ca7172 | Java | happy6eve/cap-other | /cap-metadata/src/main/java/com/comtop/cap/bm/metadata/base/model/SoaBaseType.java | UTF-8 | 1,210 | 2.34375 | 2 | [] | no_license | /******************************************************************************
* Copyright (C) 2014 ShenZhen ComTop Information Technology Co.,Ltd
* All Rights Reserved.
* 本软件为深圳康拓普开发研制。未经本公司正式书面同意,其他任何个人、团体不得使用、
* 复制、修改或发布本软件.
*****************************************************************************/
packag... | true |
254c3de1971722211331d2d186e15667f1e6ff2d | Java | ycycchre/SA_Kanban2020 | /SA1321/src/main/java/kanban/domain/adapter/repository/workflow/data/WorkflowData.java | UTF-8 | 687 | 2.1875 | 2 | [] | no_license | package kanban.domain.adapter.repository.workflow.data;
import java.util.List;
public class WorkflowData {
private String name;
private String workflowId;
private List<StageData> stageDatas;
public String getName() {
return name;
}
public void setName(String name) {
this.name... | true |
e04acc12eeecbbd1c079ab3250799379ed9d4a7b | Java | yapingzhang/framework | /framework-dao/src/main/java/cn/bidlink/framework/dao/ibatis/MybatisConfig.java | UTF-8 | 1,827 | 2.296875 | 2 | [] | no_license | package cn.bidlink.framework.dao.ibatis;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
public class MybatisConfig extends SqlSessionFactoryBean {
//加载所有module下的vo类为默认别名类
Resource[] aliasModuleClass ;
public void setAliasMo... | true |
070a3a1556f928e2d215258bba483b10756a5103 | Java | iuventaas/ImageProcessing | /src/Coder.java | UTF-8 | 6,914 | 2.984375 | 3 | [] | no_license | import javax.imageio.ImageIO;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.util.ArrayList;
public class Coder {
... | true |
610e0859f56370346000b2900e6f70bbf9e75afd | Java | jomaribenito/DetectMe | /app/src/main/java/com/fsgtech/detectme/listeners/MyLocationListener.java | UTF-8 | 8,724 | 1.867188 | 2 | [] | no_license | package com.fsgtech.detectme.listeners;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentSender;
import android.content.pm.PackageManager;
import android.location.Location;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.annotation.NonNu... | true |
fd5142199913f4a8d3590dcb9dc841239e3d2467 | Java | xujia233/FirstTest | /src/main/java/common/ClassLoadTest.java | UTF-8 | 1,132 | 2.96875 | 3 | [] | no_license | package common;
import org.junit.Test;
/**
* Created by xujia on 2019/11/22
*/
public class ClassLoadTest {
public static void main(String[] args) {
// 只会初始化定义该字段的类,不会初始化其子类
System.out.println(ChildClass.CONSTANTS);
}
@Test
public void test01() {
// 应用程序加载器,负责加载用户类路径上所指定的类库... | true |
825967593177ccf7d7dd2e2ab41bea65de6a43aa | Java | xhyrzldf/leetcodeJava | /src/main/java/string/ValidPalindrome_125.java | UTF-8 | 1,711 | 3.9375 | 4 | [] | no_license | package string;
/**
* Description : Given a string, determine if it is a palindrome, considering only alphanumeric
* characters and ignoring cases.
* <p>
* <p>For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a
* palindrome.
* <p>
* <p>Note: Have you consider that the string mig... | true |
cf32bd8696abdf026e19c8d44a2b8f32ffe4de54 | Java | zhanghaichaogit/spring-boot | /java-base-program/src/main/java/com/pro/base/controller/ErrorController.java | UTF-8 | 760 | 2 | 2 | [] | no_license | package com.pro.base.controller;
import com.pro.base.util.BaseUtil;
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.RequestMethod;
import java.util.M... | true |
49d1df0b6e529bd692f5c59bbd78a62731913149 | Java | psychobunnies/Psychobunnies | /Platformer/src/com/gravity/camera/PanningCamera.java | UTF-8 | 1,280 | 2.953125 | 3 | [
"MIT"
] | permissive | package com.gravity.camera;
import org.newdawn.slick.geom.Vector2f;
import com.gravity.geom.Rect;
import com.gravity.levels.UpdateCycling;
/** A camera that pans at a constant rate */
public class PanningCamera implements Camera, UpdateCycling {
private final float velX, velY;
private final float delay;
... | true |
973e87a57d2999109ba027c6d6c4b9083f9bf162 | Java | hreflee/mis_sw1 | /src/servlet/patientInfo.java | UTF-8 | 1,890 | 2.453125 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.net.URLDecoder;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.JSONException... | true |
500352f8a1044a2dd89cda7f2ed3857564f7a435 | Java | cuba-labs/kafka-sample | /modules/core/src/com/company/kafkasample/service/KafkaSenderServiceBean.java | UTF-8 | 1,435 | 2.375 | 2 | [] | no_license | package com.company.kafkasample.service;
import com.haulmont.cuba.core.app.UniqueNumbersService;
import org.slf4j.Logger;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.support.SendResult;
import org.springframework.stereotype.Service;
import org.springframework.util.concurrent.L... | true |
278867bee9f29e36cf76057f57aaa72c7db92c8c | Java | wangjingf/idea-database-navigator | /src/com/dci/intellij/dbn/execution/explain/result/ui/ExplainPlanTreeTableCellRenderer.java | UTF-8 | 1,633 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package com.dci.intellij.dbn.execution.explain.result.ui;
import javax.swing.JComponent;
import javax.swing.JTable;
import java.awt.Component;
import com.intellij.ui.treeStructure.treetable.TreeTable;
import com.intellij.ui.treeStructure.treetable.TreeTableCellRenderer;
import com.intellij.ui.treeStructure.tr... | true |
109474ecbe24f3471245f6e468b3efa61565982b | Java | a-ko0620/java_tst | /addressbook-web-tests/src/test/java/ru/spqr/addressbook/appmanager/ContactHelper.java | UTF-8 | 3,680 | 2.390625 | 2 | [] | no_license | package ru.spqr.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import ru.spqr.addressbook.model.ContactCreation;
import ru.spqr.addressbook.model.GroupData;
import java.util.ArrayList;
import java.util.List;
public class ContactHelp... | true |
618d46d3ba0831f7e2ae3373b2e1f5bd5b37c23b | Java | Romern/gms_decompiled | /sources/com/google/android/gms/wallet/intentoperation/p083ib/ReportFacilitatedTransactionChimeraIntentOperation.java | UTF-8 | 1,961 | 1.53125 | 2 | [] | no_license | package com.google.android.gms.wallet.intentoperation.p083ib;
import android.accounts.Account;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.google.android.chimera.IntentOperation;
import com.google.android.gms.wallet.shared.BuyFlowConfig;
/* renamed from: com.goog... | true |
2629b041dd408786058a871ea9ac6482fc7590ae | Java | OuadiBelmokhtar/ocp8-cert-code-training | /src/chap06/generics/AnimalHolder.java | UTF-8 | 1,631 | 3.875 | 4 | [] | no_license | package chap06.generics;
//public class AnimalHolder<T extends Animal>
public class AnimalHolder<T> {
// using T is correct. It wont mean the same T declared in the class
static <U> void staticMtd(U t) {
}
// Overloaded version
static <U> void staticMtd(U[] t) {
}
public static void main(String[] args) {
... | true |
955a063e262b14698db91d5bca2b941bc0159f4f | Java | sinokaba/OR3 | /main/java/HomeUI.java | UTF-8 | 3,266 | 2.71875 | 3 | [] | no_license | import javafx.beans.binding.Bindings;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pan... | true |
68a275ad27454fc05f61c3157d3bf64147374ebd | Java | svn2github/csjxing_corner | /code/biz/common/src/main/java/com/doucome/corner/biz/dal/dataobject/dcome/DcExchangeItemDO.java | GB18030 | 2,815 | 1.78125 | 2 | [] | no_license | package com.doucome.corner.biz.dal.dataobject.dcome;
import java.math.BigDecimal;
import java.util.Date;
import com.doucome.corner.biz.dal.model.AbstractModel;
/**
* ֶһƷDO
* @author ze2200
*
*/
public class DcExchangeItemDO extends AbstractModel {
private static final long serialVersionUID = 1L;... | true |
338e6e5e165487e61a08b2a3a3bdca692b4fddfc | Java | dleorb0816/project | /fun_mymodel4/src/main/java/com/exam/controller/admin/notice/AdminNoticeModifyFormController.java | UHC | 1,719 | 2.1875 | 2 | [] | no_license | package com.exam.controller.admin.notice;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.exam.controller.Controller;
import com.exam.dao.NoticeAttachMyBatisDao;
import com.exam.dao.NoticeMyBatisDao;
i... | true |
114c74a0cb562e3b8ed50ae7a6475e91609615f3 | Java | poshjosh/bcuiappbase | /src/main/java/com/bc/appbase/xls/SheetProcessorContext.java | UTF-8 | 1,601 | 1.875 | 2 | [] | no_license | /*
* Copyright 2017 NUROX Ltd.
*
* Licensed under the NUROX Ltd Software License (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.looseboxes.com/legal/licenses/software.html
*
* Unless required by applicable law or... | true |
12526ebb3e74779a3c4577a9e012893be1b261b5 | Java | lisunshine1234/furniture | /src/main/java/com/lzy/furniture/service/impl/NavigationServiceImpl.java | UTF-8 | 4,116 | 2.140625 | 2 | [] | no_license | package com.lzy.furniture.service.impl;
import com.lzy.furniture.config.redis.RedisService;
import com.lzy.furniture.entity.NavigationChild;
import com.lzy.furniture.entity.NavigationFather;
import com.lzy.furniture.repository.NavigationChildRepository;
import com.lzy.furniture.repository.NavigationFatherRepository;
i... | true |
66b893186ea2c699090cc44559af5254dcda6e91 | Java | Alex-Fenris/Magi-World | /src/com/Fenris/MagiWorld/Game/MagiWorld.java | UTF-8 | 2,984 | 3.515625 | 4 | [] | no_license | package com.Fenris.MagiWorld.Game;
import com.Fenris.MagiWorld.Personnages.Guerrier;
import com.Fenris.MagiWorld.Personnages.Mage;
import com.Fenris.MagiWorld.Personnages.Personage;
import com.Fenris.MagiWorld.Personnages.Rodeur;
import com.Fenris.MagiWorld.Tools.Tools;
import java.util.Scanner;
/**
* @author AlexFe... | true |
945d7172525959d87079b3b8448bd46fd4e231f9 | Java | BarberaRyan/intro-to-compsci | /lab4/src/problem5/Main.java | UTF-8 | 1,648 | 3.453125 | 3 | [] | no_license | package problem5;
public class Main {
public static void main(String[] args){
Ant TomBrady = new Thrower();
Ant SillyPeasant = new Harvester();
Bee UnstoppableJuggernaut = new Bee();
//Getting a place for the ants to be, the bee has a starting place already at 1,1, also giving silly peasant a food use
int... | true |
ca0df6782716a45cbde2d3a1a538198379b1ea63 | Java | prbqb/springboot | /prb-spring-all/prb-mybatis-plus/src/main/java/com/prb/service/UserLockService.java | UTF-8 | 466 | 1.546875 | 2 | [] | no_license | package com.prb.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.prb.entity.User;
public interface UserLockService extends IService<User> {
Integer upUserByTx(User user);
Integer upUserForOptimistic(Long userId);
Integer upUserForPessimistic(Long userId);
... | true |
6adf4b07562f5d8bd8f98488ef7b8007f19b1b9c | Java | herozhi0821/Activiti7Boot | /src/main/java/com/example/activiti7boot/security/hander/MyAuthenctiationInvalidSessionStrategy.java | UTF-8 | 1,272 | 2.0625 | 2 | [] | no_license | package com.example.activiti7boot.security.hander;
import com.example.activiti7boot.common.msgreturn.ResultCode;
import com.example.activiti7boot.common.msgreturn.ResultGenerator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | true |
1969a77c2c3627231050ed44af661c584c1ca702 | Java | AY1920S1-CS2113T-W13-3/main | /src/test/java/sgtravel/model/planning/RecommendationTest.java | UTF-8 | 710 | 2.3125 | 2 | [
"MIT"
] | permissive | package sgtravel.model.planning;
import org.junit.jupiter.api.Test;
import sgtravel.ModelStub;
import sgtravel.commons.exceptions.FileLoadFailException;
import sgtravel.commons.exceptions.RecommendationFailException;
import sgtravel.model.Model;
import static org.junit.jupiter.api.Assertions.assertThrows;
class Reco... | true |
d2f04f6445dd3df9eed9e53ba5d3d98c7a172035 | Java | gmstrbytes/geode | /geode-apis-compatible-with-redis/src/integrationTest/java/org/apache/geode/redis/internal/executor/set/AbstractSPopIntegrationTest.java | UTF-8 | 7,898 | 2.21875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | true |
9b6cf506f27d82a33b9b9769aae425a38826dc29 | Java | xuzh01/shopping | /src/main/java/cn/edu/jxufe/shopping/entity/AdvertisementExample.java | UTF-8 | 23,401 | 2.3125 | 2 | [] | no_license | package cn.edu.jxufe.shopping.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class AdvertisementExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
private Integer limit;
private Long offset;
... | true |
4fbd7c399407e7bcaf8fe4d98f6a83ccd1464e47 | Java | spectuu/rpgquest-2d-version | /src/main/java/com/spectu/game/scenes/Statistics.java | UTF-8 | 5,225 | 2.578125 | 3 | [] | no_license | package com.spectu.game.scenes;
import com.spectu.game.Main;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import java... | true |
578df0c866af782abd347e2d25105ec7fe5048fa | Java | GVK927/First-repository | /src/figures/quadrilaterals/Quadrilateral.java | UTF-8 | 312 | 1.867188 | 2 | [] | no_license | package figures.quadrilaterals;
public class Quadrilateral{}
class ConvexQuadrilateral extends Quadrilateral{}
class Trapezoid extends ConvexQuadrilateral{}
class Parallelogram extends Trapezoid{}
class Rectangle extends Parallelogram{}
class Rhombus extends Parallelogram{}
class Square extends Rhombus{} | true |
0a31796e01411b792041c789e37fce4cba11a9b3 | Java | Kennywest3/vahan | /newreg/src/java/nic/vahan/form/bean/reports/VehicleParticularRePrintBean.java | UTF-8 | 4,160 | 1.796875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package nic.vahan.form.bean.reports;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import ... | true |
23e572fda2c45cf1636d2b4f82e2da2b1b1a0a13 | Java | jfreax/IsleGenerator | /Main/src/de/jdsoft/stranded/map/planet/generator/World.java | UTF-8 | 9,763 | 2.90625 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Beerware"
] | permissive | package de.jdsoft.stranded.map.planet.generator;
import com.marcrh.graph.Point;
import de.jdsoft.stranded.map.planet.entity.Tile;
import java.util.*;
public class World extends Generator {
private float absoluteMaxHeight = 0;
private int noOfTiles;
private ArrayList<Tile> landTiles;
private Rando... | true |
680e3a780c2fab49e2b21c2ad036b2d91f609d85 | Java | zhangchengku/CinemaLetter | /app/src/main/java/com/myp/cinema/ui/Prizesreading/Prizesreading.java | UTF-8 | 4,733 | 1.976563 | 2 | [] | no_license | package com.myp.cinema.ui.Prizesreading;
import com.myp.cinema.R;
import com.myp.cinema.base.MyApplication;
import com.myp.cinema.entity.ShopBO;
import com.myp.cinema.mvp.MVPBaseActivity;
import com.myp.cinema.ui.WebViewActivity;
import com.myp.cinema.util.LogUtils;
import com.myp.cinema.util.StringUtils;
import com.m... | true |
eaf22d0bb073bd3f75ec03bda1ca6c0edaef9c70 | Java | nsl1065539573/mechanicsmanagementsystem | /src/main/java/com/example/mechanicsmanagementsystem/utils/JavaWebToken.java | UTF-8 | 1,323 | 2.4375 | 2 | [] | no_license | package com.example.mechanicsmanagementsystem.utils;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
import java.security.Key;
import java.util.Map;
public... | true |
3b3420de22c099e81f2fdd503f778374aecb7d4f | Java | kalyanihandal/FileToSonali | /src/test/java/com/TestCases/TC_Login_001.java | UTF-8 | 541 | 2.171875 | 2 | [] | no_license | package com.TestCases;
import org.testng.annotations.Test;
import com.PageObject.LoginPage;
public class TC_Login_001 extends BaseClass {
@Test(priority=1)
public void verifyLogin() throws Exception {
LoginPage lp=new LoginPage(driver);
lp.clickLoginText();
logger.info("Clicked on Login text");
lp.enterEma... | true |
c3527ecad1ba86541c67cc767405a687633d0500 | Java | jorge-luque/hb | /sources/com/applovin/impl/sdk/p052d/C1867ab.java | UTF-8 | 2,761 | 1.664063 | 2 | [] | no_license | package com.applovin.impl.sdk.p052d;
import com.applovin.impl.p033a.C1482c;
import com.applovin.impl.p033a.C1483d;
import com.applovin.impl.p033a.C1489i;
import com.applovin.impl.sdk.C1941j;
import com.applovin.impl.sdk.network.C1960b;
import com.applovin.impl.sdk.p050b.C1841c;
import com.applovin.impl.sdk.utils.C2025... | true |
fd370c0decdb1f7c56eccea74ea25597c17a657c | Java | SecureSmartHome/SecureSmartHome | /core/src/main/java/de/unipassau/isl/evs/ssh/core/container/AccessLogger.java | UTF-8 | 5,873 | 2.03125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2016.
* Bucher Andreas, Fink Simon Dominik, Fraedrich Christoph, Popp Wolfgang,
* Sell Leon, Werli Philemon
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in th... | true |
fe27338bdc13e58c0d2d8327d45b8bfb388bce4d | Java | ilscipio/scipio-erp | /applications/product/src/com/ilscipio/scipio/product/seo/SeoUrlUtil.java | UTF-8 | 2,210 | 2.046875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-jdom",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"MPL-1.1",
"CPL-1.0",
"GFDL-1.1-or-later",
"MPL-2.0",
"CC-BY-2.5",
"SPL-1.0",
"LicenseRef-scancode-proprietary-license",
"C... | permissive | /*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... | true |
5317b71fb4dd18c893d3d58adc9c57d6d4854c0d | Java | ryanpepe2000/cmpt220pepe | /labs/2/Problem5.java | UTF-8 | 850 | 4.3125 | 4 | [] | no_license | import java.util.Scanner;
public class Problem5 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("This program will compare two strings lexiocographically and sort them in ascending order.");
// Asks the user for two strings
System.out.print("Enter a st... | true |
ae4aaa333f0ffabd16b99625d1e491afc3db3203 | Java | ColinYu25/yhpc | /src/main/java/com/safetys/cas/web/action/RoleSetAction.java | UTF-8 | 1,414 | 1.890625 | 2 | [] | no_license | package com.safetys.cas.web.action;
import java.util.List;
import com.safetys.cas.web.action.base.BaseAction;
import com.safetys.framework.domain.model.FkRole;
import com.safetys.framework.facade.iface.RoleFacadeIface;
/**
* 设置角色
*
* 配置子系统用户先设置默认角色
*
* @author maomj
*
*/
public class RoleSetAction extends ... | true |
5a286235cf20ac54d42bba1bf9688cdc6d291f4e | Java | andriol1979/p12soapclient | /src/main/java/nedu/edsn/data/p4collecteddatabatchresultresponse/_2/standard/P4CollectedDataBatchResultResponseEnvelope.java | UTF-8 | 3,174 | 2.09375 | 2 | [] | no_license |
package nedu.edsn.data.p4collecteddatabatchresultresponse._2.standard;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for P4CollectedDataBatchResultResponseE... | true |
12a8ee22f21cebf46e98442277275b22e27c99eb | Java | nicmarti/lunatech-timekeeper | /src/main/java/fr/lunatech/timekeeper/services/responses/OrganizationResponse.java | UTF-8 | 5,921 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2020 Lunatech S.A.S
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
ba7eada9a3a9b8a3b8e0e038f173147ae0dc5543 | Java | kieuminhduc01/ClientFinalAndroidThayKien | /app/src/main/java/com/example/prmfinal/Client/model/Exercise.java | UTF-8 | 2,463 | 2.46875 | 2 | [] | no_license | package com.example.prmfinal.Client.model;
public class Exercise {
private String id;
private String name;
private float caloriesPerRep;
private String muscleFocus;
private String mucDichTap;
private String equipment;
private String level;
private String typeOfExercise;
private Stri... | true |
7f352c535bee863988efbd9000253a406cc43294 | Java | khamyl/eDoklad | /Android/android/app/src/main/java/sk/tuke/edoklad/classes/Data.java | UTF-8 | 531 | 2.375 | 2 | [] | no_license | package sk.tuke.edoklad.classes;
public class Data {
String prevadzka, adresa, datum;
public void setPrevadzka(String prevadzka) {
this.prevadzka = prevadzka;
}
public void setAdresa(String adresa) {
this.adresa = adresa;
}
public void setDatum(String datum) {
this.da... | true |
55f8c5e42d80e736e40993e45511402b4fbb1623 | Java | AppSecAI-TEST/hospital | /project/hs-engine-entity/src/main/java/com/neusoft/hs/domain/treatment/ListTreatmentItemValue.java | UTF-8 | 1,749 | 2.21875 | 2 | [] | no_license | //Source file: F:\\my_workspace\\201611������ҽ�������\\DesignModel\\DesignElement\\SimpleTreatmentItemValue.java
package com.neusoft.hs.domain.treatment;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.persistence.CollectionTable;
import javax.persistence.Column;
import javax.persistence.... | true |
dd42cb5a90b7eed94c5dcc80b6e65d3f5fdb232d | Java | abdulhadiniamati/batchOne | /Training/src/OOPS/Apple.java | UTF-8 | 584 | 3.359375 | 3 | [] | no_license | package OOPS;
public class Apple implements Fruit {
private String name;
public Apple(String name){
setName(name);
//this.name=name;
}
public void setName(String name){
this.name = name;
}
public String getName(){
return this.name;
}
public void color () {
System.out.println("The color for ... | true |
a8a8a915f15668ab89c62af43d3cfe868080dbe0 | Java | svilenvul/Java | /oop/src/school/Disciplines.java | UTF-8 | 83 | 1.71875 | 2 | [] | no_license | package school;
public enum Disciplines {
BG,EN,MATH,CHEM,PHYS,BIOL,SPORT,ART;
}
| true |
d79846bc99fba7f807c23b98e059798801def1e2 | Java | ZoranYaoYao/LeetCode | /src/com/zoran/leetcode/simple2/Test31.java | GB18030 | 651 | 3.078125 | 3 | [] | no_license | package com.zoran.leetcode.simple2;
/**
* ֤Ĵ
* https://leetcode-cn.com/submissions/detail/2909345/
*
* ʲôǻַ
* https://blog.csdn.net/vvnnnn/article/details/80066085
*/
public class Test31 {
public boolean Nice_isPalindrome(String s) {
char[] cha = s.toCharArray();
int i = 0, j = cha.length -1;
while (i < ... | true |
71f75c6382b0f98b69c80265b506c68b9eb5d2a7 | Java | zlcjfalsvk/algorithm | /PROGRAMMERS/java/Level1/P_level1_2.java | UTF-8 | 413 | 2.765625 | 3 | [] | no_license | package PROGRAMMERS.Level1;
/**
* 약수의 합
* https://programmers.co.kr/learn/courses/30/lessons/12928
*/
public class P_level1_2 {
class Solution {
public int solution(int n) {
if(n <= 1) return n;
int answer = 1 + n;
for(int i = 2 ; i <= n/2 ; i ++) {
i... | true |
4c7a725c9e4c2551799138e8dde2e3a896eebc6e | Java | svetthesaiyan/softuni-projects-pb-with-java | /2021.04.17 Advanced Conditional Statements (Lab)/src/advanced_conditional_statements_lab/g_work_hours.java | UTF-8 | 887 | 4.03125 | 4 | [] | no_license | package advanced_conditional_statements_lab;
import java.util.Scanner;
public class g_work_hours
{
public static void main(String[] args)
{
Scanner scanner = new Scanner(System.in);
System.out.print("Enter an hour of the day and we'll tell you whether we're open at said time: ");
int hours=Integer.parseInt(s... | true |
db29c24436a23db0e15d10024a676ae5827cc124 | Java | superknight/depot | /dsy/src/main/java/dsy/service/member/impl/AddressServiceImpl.java | UTF-8 | 1,450 | 2.203125 | 2 | [] | no_license | package dsy.service.member.impl;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import dsy.dao.BaseJdbcDao;
import dsy.module.Dsy... | true |
43a63daf28c298c3ef3af32910d041b68b27147e | Java | qiaohhgz/workspaces | /1000/src/com/common/PropertyManager.java | UTF-8 | 5,443 | 2.59375 | 3 | [] | no_license | package com.common;
import java.lang.annotation.Annotation;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by IntelliJ IDEA.
* User: petrop01
* Date: Oct 2... | true |
3bb352730e665e85ebcaf48e669118fff8ad9cd7 | Java | MirMiao/Miaoheng20191221 | /app/src/main/java/com/bw/miaoheng20191221/width/FlowLayout.java | UTF-8 | 3,061 | 2.3125 | 2 | [] | no_license | package com.bw.miaoheng20191221.width;
import android.content.Context;
import android.graphics.Color;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.bw.miaoheng20191221.R;
import com.bw.miaoheng20191221.app.App;
import java.util.L... | true |
fc8b911dbd6fc2b7f3da3c75202c2bc0fb04ec97 | Java | xrobert35/soundlink | /SoundLink_Server/soundlink_dao/src/main/java/soundlink/dao/repositories/PlaylistRepository.java | UTF-8 | 644 | 1.96875 | 2 | [] | no_license | package soundlink.dao.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import soundlink.model.entities.Playlist;
public interface PlaylistReposito... | true |
31de2583ec06adbc29fdfd06e081f0bfca96449b | Java | s4kibs4mi/minio-play-rest-api | /app/security/DataValidation.java | UTF-8 | 1,293 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package security;
import com.fasterxml.jackson.databind.JsonNode;
import play.data.validation.Constraints;
public class DataValidation {
private static Constraints.EmailValidator emailValidator = new Constraints.EmailValidator();
public static String filterForSqlInjection(String value) {
return value... | true |
d38e3a5bd16a0234a05c19b620370ea5d6cc06a2 | Java | viggyuvce/AuSpring2018 | /DesignPrincipleAssignment/src/com/accolite/au/java/design/abstractFactory/HockeyStickFactory.java | UTF-8 | 452 | 3 | 3 | [] | no_license | package com.accolite.au.java.design.abstractFactory;
public class HockeyStickFactory extends Product implements SportsAbstractFactory {
String type;
public String getType() {
return type;
}
public HockeyStickFactory(String brand2, float price2, String type) {
super(brand2, price2);
this.type = type;
}
@... | true |
46885c2cf9524f949e035ab15675412ff4cdf197 | Java | Long0408Rin/A0720I1_LeHuuLong | /Module4/Sample/casestudy4/src/main/java/modul4/casestudy/model/CT_AttachService.java | UTF-8 | 637 | 2.109375 | 2 | [] | no_license | package modul4.casestudy.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.*;
import javax.persistence.*;
import java.util.Set;
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CT_AttachService {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private In... | true |
0431c2ebd1cca59e0f14a344028f4de64adf7016 | Java | liaozuliang/liaozl-app | /liaozl-utils/src/main/java/com/liaozl/utils/http/HttpClientUtil.java | UTF-8 | 6,373 | 2.578125 | 3 | [] | no_license | package com.liaozl.utils.http;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpGet;
import org.a... | true |
202dcd6e9fd7601b0267cbeaa1840b7535f4c51f | Java | arifkarabayir/Cryptology | /src/arifkarabayir/general/Message.java | UTF-8 | 455 | 2.84375 | 3 | [] | no_license | package arifkarabayir.general;
import java.math.BigInteger;
public class Message {
String binary;
public Message(String str) {
String result = "";
char[] messChar = str.toCharArray();
for (int i = 0; i < messChar.length; i++) {
result += Integer.toBinaryString(messChar[i]) + "";
... | true |
731edf603a8738463d74a126810bdf1625008848 | Java | wukw/lcncopy | /lcn-copy-client/src/main/java/com/lcn/copy/util/ConditionUtils.java | UTF-8 | 1,100 | 2.5625 | 3 | [] | no_license | package com.lcn.copy.util;
import com.lcn.copy.task.Task;
import com.lcn.copy.task.TxTask;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class ConditionUtils {
private static ConditionUtils instance = null;
private Map<String, Task> taskMap = new ConcurrentHashMap<String, Task>... | true |
6b263bf3432591ed955a441f6f6cbe61d1ba2287 | Java | zilvinasj/FxApi | /src/test/java/com/demo/TestUtils.java | UTF-8 | 1,099 | 2.28125 | 2 | [] | no_license | package com.demo;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.apache.commons.io.IOUtils;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.f... | true |
448bff92b75d2c687e210972ef6f7a64475ad10d | Java | zhouxiang-710/test | /src/main/java/digit/algorithm/AlgorithmTest.java | UTF-8 | 534 | 2.328125 | 2 | [] | no_license | package digit.algorithm;
import org.junit.Test;
/**
* @ Author :zhouxiang.
* @ Date :Created in 15:42 2020/12/9
* @ Description:${description}
* @ Modified By:
* @Version: $version$
*/
public class AlgorithmTest {
/**
* 功能描述: <br>
* @Param: 二分法查找
* @Return: void
* @Author: zhou... | true |
333d5d6fc226b0b134ef5c52f485c121cfc9cbb2 | Java | syampillai/SODevelopment | /src/main/java/com/storedobject/telegram/Bot.java | UTF-8 | 1,218 | 2.453125 | 2 | [] | no_license | package com.storedobject.telegram;
import com.storedobject.core.*;
import com.storedobject.core.annotation.*;
public final class Bot extends StoredObject {
private String name;
private String key;
public Bot() {
}
public static void columns(Columns columns) {
columns.add("Name", "text")... | true |
69c64f2b944f0aec473ee8d1f308dd024df5628f | Java | jsimjava/j-sim | /dev/script/drcl/inet/socket/HelloClient4.java | UTF-8 | 2,158 | 2.609375 | 3 | [
"BSD-3-Clause"
] | permissive |
import java.net.*;
import java.io.*;
import drcl.comp.*;
import drcl.inet.socket.SocketMaster;
import drcl.inet.socket.InetSocket;
// same as HelloClient3 except now is RestartableComponent
public class HelloClient4 extends drcl.inet.socket.SocketApplication
implements RestartableComponent
{
int remote... | true |
08769d9b19dce3f3931e6b7e2947a51c561b3a95 | Java | MiyaJ/wxWork | /src/main/java/com/miya/wx/controller/TestController.java | UTF-8 | 1,212 | 1.976563 | 2 | [] | no_license | package com.miya.wx.controller;
import com.alibaba.fastjson.JSONObject;
import com.miya.wx.model.Result;
import com.miya.wx.service.IApprovalService;
import com.miya.wx.service.IMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import jav... | true |
adb02b3077cff0144198fab8e771547a9af166a2 | Java | chenxiaoyu11/robolectric_androidunittest_demo | /app/src/main/java/com/changxiying/myapplication/activity/NextActivity.java | UTF-8 | 422 | 1.953125 | 2 | [] | no_license | package com.changxiying.myapplication.activity;
import android.app.Activity;
import android.os.Bundle;
import com.example.changxiying.myapplication.R;
public class NextActivity extends Activity{
private static final String TAG="NextActivity";
@Override
protected void onCreate(Bundle savedInstanceState){
... | true |
322c8af597928f90353c9c1d5ed3f34fb505c733 | Java | aioc/phais | /src/com/ausinformatics/phais/server/commands/SchedulePause.java | UTF-8 | 843 | 2.40625 | 2 | [] | no_license | package com.ausinformatics.phais.server.commands;
import java.io.PrintStream;
import com.ausinformatics.phais.common.Config;
import com.ausinformatics.phais.common.Config.Mode;
import com.ausinformatics.phais.common.commander.Command;
import com.ausinformatics.phais.server.Director;
public class SchedulePause implem... | true |
79feca2b2944b08393e9515f1022bd73f871eb90 | Java | Ametisss/HomeWork2 | /HomeWork2.java | UTF-8 | 1,077 | 3.3125 | 3 | [] | no_license | import java.sql.SQLOutput;
public class HomeWork2 {
public static void main(String[] args) {
within10and20(125, 2);
isPositiveOrNegative(-1);
isNegative(5);
printLine(5, "java");
}
public static void within10and20(int a, int b) {
int sum = a + b;
... | true |
f48eb2574bc37aa69638e20e2a0ba00eeabc1c9e | Java | Joy-byte/DA101G1 | /TeamAceMVC_0801/src/com/game_detail/model/Game_detailDAO.java | UTF-8 | 6,438 | 2.6875 | 3 | [] | no_license | package com.game_detail.model;
import java.util.*;
import java.sql.*;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.sql.DataSource;
public class Game_detailDAO implements Game_detailDAO_interface {
private static DataSource ds = null;
static {... | true |
aab083e31a60776c2d92533ea90a775747285e68 | Java | KPI-Testing/Testing2017-18 | /OleksandrChyslov Lab5/src/vtoroe.java | UTF-8 | 1,326 | 3.140625 | 3 | [] | no_license | import java.io.FileWriter;
import java.io.IOException;
import java.lang.Math;
import java.util.*;
public class vtoroe {
public static void main(String[] args) {
List<Integer> Alpha = new ArrayList<>(150);
List<Integer> Beta = new ArrayList<>(15);
for (int i = 0; i < 150; i++) {
... | true |
57ecdd20067bcad95ae9a5dcf6f6f234a46e856f | Java | leonardogolfeto/apirestfotos | /src/main/java/com/info2b/api/apirest/controllers/ImagensController.java | UTF-8 | 1,269 | 2.15625 | 2 | [] | no_license | package com.info2b.api.apirest.controllers;
import com.info2b.api.apirest.models.Imagens;
import com.info2b.api.apirest.repository.ImagensRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@RequestMappin... | true |
ea12b4c9f47b1a07957cd5c5811e5e2e325c3cb5 | Java | nickbobo/sshe | /src/main/java/sy/action/base/ActivityuserAction.java | UTF-8 | 1,583 | 1.851563 | 2 | [] | no_license | package sy.action.base;
import java.util.List;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;
import sy.action.BaseAction;
import sy.model.base.ActivityUser;
import sy.model.ba... | true |
4ebc2e2e19d7a4f3f39e4c3ff345808a402dec2f | Java | Sudhanshu127/FakeJsonServer | /src/main/java/research/MyHttpHandler.java | UTF-8 | 4,607 | 2.703125 | 3 | [] | no_license | package research;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.io.IOException;
import jav... | true |
fb2f6fbc8e5bd0224dbec802fa7962392a684f8b | Java | Chrispol/projectJEE | /src/main/java/pl/dmcs/zai/service/UsufructuaryService.java | UTF-8 | 2,458 | 2.25 | 2 | [] | no_license | package pl.dmcs.zai.service;
import java.util.Collections;
import javax.annotation.PostConstruct;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.... | true |
e5c955c2d545b388d074b950fb581739990df66b | Java | inventionzhang/myeclipse | /src/org/lmars/network/neuralNetwork/ANNInputVector.java | UTF-8 | 1,178 | 2.609375 | 3 | [] | no_license | package org.lmars.network.neuralNetwork;
public class ANNInputVector {
private int linkID;//路段编号
private int direction;//GPS行驶方向与路段方向关心
private int hour;//时
private int preHalfHour;//是否前半小时:1表示前半小时
private int workDay;//是否工作日:1表示工作日
private double travelTime;//路段通行时间
public void setLinkID(int linkID... | true |
01dc6b9633bb1a97879028258ca233e78e43d418 | Java | Anjitha-M/eWallet | /src/entities/CustomerWallet.java | UTF-8 | 1,175 | 2.796875 | 3 | [] | no_license | package entities;
import java.util.Objects;
public class CustomerWallet {
private String phoneNo;
private String name;
private double balance;
public CustomerWallet() {
}
public CustomerWallet(String phoneNo, String name, double balance) {
this.phoneNo = phoneNo;
this.name = ... | true |
63efcbddfd3e5282fae6e69d08a889f3860c978e | Java | SirCodes-A-Lot/quizManager | /src/main/java/com/quiz/services/QuizService.java | UTF-8 | 3,741 | 2.609375 | 3 | [] | no_license | package com.quiz.services;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;
import com.quiz.quizObjects.Question;
imp... | true |
e2dae7b66720f619f163503e609c6e4139a7e59a | Java | adamLangsti/Photo-Gallery | /app/src/main/java/com/example/photogallery/ImageItem.java | UTF-8 | 1,055 | 2.328125 | 2 | [] | no_license | package com.example.photogallery;
import android.net.Uri;
import org.json.JSONException;
import org.json.JSONObject;
public class ImageItem {
private String mTitle;
private Uri mImg;
public void setmTitle(String mTitle) {
this.mTitle = mTitle;
}
private static final String JSON_TITLE = ... | true |
b5c5be17e7333935a2203e0498651fd4c14a3c6c | Java | Areya-y/graduation_IDEA | /.idea/src/main/java/com/xmut/project/service/userService.java | UTF-8 | 631 | 2.09375 | 2 | [] | no_license | package com.xmut.project.service;
import com.xmut.project.entity.user;
import java.util.List;
public interface userService {
/**
* 列出用户列表
*
* @return userList
*/
List<user> queryUser();
/**
* 根据openid列出用户具体信息
*
* @return user
*/
user queryUser... | true |
df9c4c6c5cee9a613ea33791989b6dd3b4dc3641 | Java | felipesere/tic-tac-toe | /src/test/java/de/fesere/tictactoe/players/UnbeatableAITest.java | UTF-8 | 2,362 | 2.6875 | 3 | [
"MIT"
] | permissive | package de.fesere.tictactoe.players;
import de.fesere.tictactoe.Board;
import de.fesere.tictactoe.BoardBuilder;
import de.fesere.tictactoe.Player;
import org.junit.Test;
import static de.fesere.tictactoe.Marker.O;
import static de.fesere.tictactoe.Marker.X;
import static org.hamcrest.MatcherAssert.assertThat;
import ... | true |
2d27942b473a7acfac11c520c16bc0d108353ae7 | Java | yp19991017/BookManager | /src/service/BookService.java | UTF-8 | 232 | 1.96875 | 2 | [] | no_license | package service;
import java.util.List;
import pojo.Book;
public interface BookService {
boolean saveBook(Book b);
boolean updateBook(Book b);
boolean deleteBookById(int id);
List<Book> getbookList();
}
| true |
2ed307d8d2448cb46771726fc65ba96fc0f46770 | Java | Hoolligan/GitHubTest | /src/Main.java | UTF-8 | 360 | 2.8125 | 3 | [] | no_license | /**
* Created by Администратор on 23.11.2016.
*/
public class Main {
//Простой класс, чисто для проверки
public static void main(String[] args) {
System.out.println("Hello World!!!");
//Теперь внесём чуть изменений.
System.out.println("Some changes");
}
}
| true |
2af6ae0cb8a1f21acb2680ed2b0ae20cc58e70e0 | Java | linxin1126/Master-Hotel | /hotel/src/main/java/cn/linxin/hotel/service/WorkerService.java | UTF-8 | 497 | 1.929688 | 2 | [] | no_license | package cn.linxin.hotel.service;
import cn.linxin.hotel.entity.Worker;
import java.util.List;
public interface WorkerService {
int insert(Worker worker);
int delete(int workerId);
int updateById(Worker worker);
Worker selectById(int workerId);
Worker selectByUsername(String username);
List<Wo... | true |
ecd295d0fe14e0bc6ff9bd00a7418cb0c84c5e1f | Java | LeonMonster/student-educational-management-system | /src/com/scy/bean/Stu.java | UTF-8 | 1,407 | 2.53125 | 3 | [] | no_license | package com.scy.bean;
//一开始数据库没有设计好,stu类对应数据库的学生表,student类对应数据库的一张由学生-班级-专业连接起来的视图
public class Stu {
private String sno;
private String sname;
private String spassword;
private String ssex;
private int sage;
private int syear;
private String saddress;
private double scredit;
private String clno;
public Stri... | true |
b91fb26aa454c5d5ab2188f5a6174d81ccbd6bd9 | Java | kuali-student/cm-contribution | /ks-lum/ks-lum-rice/src/main/java/org/kuali/rice/student/lookup/keyvalues/AllOrgsValuesFinder.java | UTF-8 | 2,740 | 2.03125 | 2 | [] | no_license | /**
* Copyright 2010 The Kuali Foundation Licensed under the
* Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable law ... | true |
c68e738cccc1aa4cdb19267095e0e74b212c5ba6 | Java | Kappa-Web/KappaCRM | /src/KappaCRM/Model/CModelIncident.java | UTF-8 | 1,913 | 2.15625 | 2 | [] | no_license | package KappaCRM.Model;
import java.util.Date;
public class CModelIncident {
private long id;
private String libelle;
private String description;
private Date dateAjout;
private Date dateModification;
private Date dateFin;
private String lieu;
private String statut;
private long fkIdEntiteSuperviseur;
priv... | true |
3bd0af2c82cbbd74f30caf989c35f35ea8a60be9 | Java | icpmoviles/icp_commons | /core/src/main/java/es/icp/icp_commons/Utils/Utils.java | UTF-8 | 4,512 | 2.25 | 2 | [] | no_license | package es.icp.icp_commons.Utils;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.Point;
import android.media.ExifInterface;
i... | true |
6f85add078b6e4177110f7224d8a36264d2c5e8b | Java | shuklasan78/spring-boot-microservice-2020 | /src/main/java/com/opleiding/dms2/headers/RestHeaders.java | UTF-8 | 2,173 | 2.734375 | 3 | [] | no_license | package com.opleiding.dms2.headers;
import java.net.InetSocketAddress;
import java.util.Map;
import java.util.stream.Collectors;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;
impor... | true |
5c6ad2f2bcb5edd8e2c2947815afc19c26db76f4 | Java | hmcts/unspec-service | /src/main/java/uk/gov/hmcts/reform/unspec/service/Time.java | UTF-8 | 130 | 1.78125 | 2 | [
"MIT"
] | permissive | package uk.gov.hmcts.reform.unspec.service;
import java.time.LocalDateTime;
public interface Time {
LocalDateTime now();
}
| true |
177eaee666c3835d9f004e5ee226d9b38cf92b1a | Java | julioizidoro/systm-eclipse | /src/br/com/travelmate/model/Pacotesfornecedor.java | UTF-8 | 4,407 | 2.078125 | 2 | [] | no_license | package br.com.travelmate.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.... | true |
284ade786b33cd5bcb788ec18f01f6239b78f78a | Java | jmmorillocolz/direct_printing_service | /src/DirectPrintingService.java | UTF-8 | 14,693 | 3.015625 | 3 | [] | no_license |
/**
* Alternative to an applet to print tickets on any printer available on the client.
* Run as Java Web Start application. Prints directly without displaying dialog box.
*
* In this version pass parameters like: printer name, print values, scale, and text to be printed.
* In future versions will be added other ... | true |
ec9014cd77314dceb2d908c328d05f3fafab90f4 | Java | wdEffort/java8-study | /ex14/LoopSample04.java | UHC | 713 | 3.921875 | 4 | [] | no_license | package com.ezen.example;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* ݺ
* for - 01
*
* @author yoman
*
* 2019. 09. 25
*
* Է ڸŭ '*' ϴ
*/
public class LoopSample04 {
public static void main(String[] args) throws IOException {
System.out.println(... | true |
f2a83334cf26920bed4369f8a673d389ad4dd458 | Java | deane163/springmvc-apiframework | /src/main/java/com/xiaoshu/exception/BussinessExceptionHandler.java | UTF-8 | 1,568 | 2.34375 | 2 | [] | no_license | package com.xiaoshu.exception;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
/**
*
* code is far away from bug with the animal protecting
* ┏┓ ┏┓
* ┏┛┻━━━┛... | true |
99b520ba261d6bbb8c0e62d778f888028a47146e | Java | BhavnaBhamare/Foodee | /com/model/BLmanger.java | UTF-8 | 13,145 | 1.851563 | 2 | [] | no_license | package com.model;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.criterion.Restrictions;
import com.pojo.Addhotel;
import com.pojo.Nveg... | true |
3f51bf17c645479fc51ce42bc9fea5e2d930a210 | Java | rubendarioramirez/PlotGenerator | /app/src/main/java/com/plotgen/rramirez/plotgenerator/Guides/GuideRoleFragment.java | UTF-8 | 2,191 | 1.898438 | 2 | [] | no_license | package com.plotgen.rramirez.plotgenerator.Guides;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.android.gms.ads.AdRequest;
impo... | true |
6c273b91061bee1e141701de0e16bc6e46ecb84c | Java | bhuvan080682/org-uhc-pharma | /src/test/java/org/uhc/ws/service/test/AbstractControllerTest.java | UTF-8 | 1,087 | 1.648438 | 2 | [] | no_license | package org.uhc.ws.service.test;
import java.io.IOException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.MockMvcBuilder;
import org.sprin... | true |
32a3fc126e315a7f73c14c8cedb03da546b2c4fa | Java | danja/2001 | /citnames/backup/iou/src/com/isacat/iou/database/DBCPTest.java | UTF-8 | 2,405 | 2.671875 | 3 | [] | no_license | /*
* DBCPTest.java
*
* Created on 08 January 2001, 11:25
*/
package com.isacat.iou.database;
import java.util.*;
import java.sql.*;
import javax.sql.*;
/**
* @author Danny Ayers
* @created 26 March 2001
* @version
*/
public class DBCPTest {
DBConnectionPool pool = null;
/**
... | true |
e7e397c5f697d6d571b2628fe9f5739aec1b383d | Java | zeeegeee/projectBark | /src/classes/animal.java | UTF-8 | 2,574 | 2.953125 | 3 | [
"MIT"
] | permissive | /*
Authors: Moe, Sakshi, Olivia, Yui, and Caity
Date: 6/26/2018
Purpose: This is the Animal class
*/
package classes;
import java.util.ArrayList;
public class animal {
public String aID;
public String aSpecies;
public String aName;
public String aAge;
public String aGender;
... | true |
a1bed43e24a3354f2a4c47fbb3a40bd23c95b1e4 | Java | Ryze-Zhao/JavaSeStudy | /java8_new_features/src/main/java/com/zhaolearn/lambda/deep/study2/ConstructorRefTest.java | UTF-8 | 2,416 | 3.828125 | 4 | [] | no_license | package com.zhaolearn.lambda.deep.study2;
import org.junit.Test;
import java.util.Arrays;
import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;
/**
* 一、构造器引用
* 和方法引用类似,函数式接口的抽象方法的形参列表和构造器的形参列表一致。
* 抽象方法的返回值类型即为构造器所属的类的类型
*
* 二、数组引用
* 大家可以把数组... | true |