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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
0c43d5826f6233e092b81ea08d64f02c022b0780 | Java | yangyongchaoGitHub/zhgd | /src/main/java/com/dataexpo/service/FaceSearchService.java | UTF-8 | 6,704 | 2.046875 | 2 | [] | no_license | package com.dataexpo.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map.Entry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationListener;
import org.spr... | true |
0237c0bb63444f153fcab4b49f98eb7bccfbb1b2 | Java | michkin32/FullStack.MicroWebApplication-Server | /src/main/java/com/groupfour/chatapp/chatapp/repositories/FileAttachmentRepository.java | UTF-8 | 326 | 1.828125 | 2 | [] | no_license | package com.groupfour.chatapp.chatapp.repositories;
import com.groupfour.chatapp.chatapp.models.FileAttachment;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface FileAttachmentRepository extends CrudRepository<FileAttachment, Long... | true |
bbe88a69695f53bd7079e72f6770f4d253f1fb31 | Java | tayfunyasar/instaton | /src/main/java/com/instaton/repository/TwitterUserProfileRepository.java | UTF-8 | 305 | 1.59375 | 2 | [] | no_license | package com.instaton.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.instaton.entity.social.twitter.UserProfile;
@Repository
public interface TwitterUserProfileRepository extends CrudRepository<UserProfile, String> {}
| true |
5f5031a810ea2c29f514b67a672ac04259d1ee19 | Java | ftahery/Shop8Best | /app/src/main/java/company/shop8best/adapters/ItemTypeAdapter.java | UTF-8 | 3,488 | 2.296875 | 2 | [] | no_license | package company.shop8best.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseExpandableListAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;... | true |
40c0c79090c7f7abdedcdcfd9708b52f031b913f | Java | whyoyyx/trade | /trade-api/src/main/java/com/hbc/api/trade/order/controller/opt/req/MISEditOrderParam.java | UTF-8 | 7,788 | 2.03125 | 2 | [] | no_license | /**
* @Author lukangle
* @2015年10月7日@下午5:13:41
*/
package com.hbc.api.trade.order.controller.opt.req;
import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.NotBlank;
public class MISEditOrderParam {
/* --------- 公用 ------------ */
@NotBlank
private String orderNo; // 目的地酒店或者区域电话号... | true |
70149fdf98ea40d4ae7f438352f5f4ea046e16bc | Java | AWKrol/iPhone-12-feedback | /src/test/java/ru/mvideo/WebDriverSettings.java | UTF-8 | 1,069 | 2.203125 | 2 | [] | no_license | package ru.mvideo;
import org.junit.After;
import org.junit.Before;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
public class WebDriverSettings {
public WebDriver driver;
@Before
public void setUp() {
System.setProper... | true |
783ba808563d37e28368bb19f061664c8385e014 | Java | mishrole/Android_Boleteria-Conciertos | /app/src/main/java/com/app/appentrada/PerfilActivity.java | UTF-8 | 4,254 | 2.078125 | 2 | [] | no_license | package com.app.appentrada;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.appcompa... | true |
d89f0a95978013184aa846850534be5daa56e363 | Java | ansariom/TFBSScanSuite | /src/osu/megraw/llscan/ComputeLoglikScoreROEROC.java | UTF-8 | 5,192 | 2.15625 | 2 | [] | no_license | package osu.megraw.llscan;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.Callable;
public class ComputeLoglikScoreROEROC implements Callable<LoglikScoreResult>{
private String sampleName;
private int BG_WIN;
private char[] se... | true |
e164423958eaca0cef6b8c19773d84ebf79648dd | Java | thangout/pal | /pal04/src/pal/Main.java | UTF-8 | 1,248 | 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 pal;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
i... | true |
607d3af02a7ca5751c59bbf3144330e21fdd716a | Java | bozimmerman/CoffeeMud | /com/planet_ink/coffee_mud/Libraries/mcppkgs/MCPNegotiatePackage.java | UTF-8 | 2,010 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.planet_ink.coffee_mud.Libraries.mcppkgs;
import java.util.Map;
import com.planet_ink.coffee_mud.Common.interfaces.Session;
import com.planet_ink.coffee_mud.Libraries.interfaces.ProtocolLibrary.MCPPackage;
import com.planet_ink.coffee_mud.core.CMath;
import com.planet_ink.coffee_mud.core.Log;
/*
... | true |
65dece3021b081963a64c0ac72e330fd25b474a3 | Java | userpvt/cs2018-06-19 | /src/by/it/prudnikau/lesson01/Main.java | UTF-8 | 958 | 3.625 | 4 | [] | no_license |
import java.util.Formatter;
/*
* Доработайте ее так, чтобы кроме этих двух представлений были еще 8-
* ричные и 16-ричные числа для типа данных byte, а вывод был от -128 до
* 127). Для этого найдите аналоги метода Integer.toBinaryString
*/
public class Main {
public static void main(String[] args) {
... | true |
5cda780cd7c0aa850df3d876d4ba4bed7c4ac338 | Java | tsvetelin-tsvetanov/Udemy_Java_Masterclass | /While/src/com/company/SharedDigit.java | UTF-8 | 646 | 3.171875 | 3 | [] | no_license | package com.company;
public class SharedDigit {
public static boolean hasSharedDigit(int firstNumber, int secondNumber){
if(firstNumber < 10 || firstNumber > 99 ||
secondNumber < 10 || secondNumber > 99){
return false;
}
int firstDigitA = firstNumber / 10;
... | true |
cca54193e3c5b00f67d888cf9bc2f1cc32a74ffb | Java | xianglvs/school-api | /src/main/java/org/spring/springboot/app/base/ApiIndex.java | UTF-8 | 1,231 | 1.554688 | 2 | [] | no_license | package org.spring.springboot.app.base;
/**
* api文档排序
* Created with IntelliJ IDEA.
* Description:
* UserSesson: eric
* Date: 2017-12-15
* Time: 13:45
*/
public class ApiIndex {
/*
* 用户管理接口
*/
public static final String USER = "用户管理接口";
/*
* 角色管理接口
*/
public static final Stri... | true |
7a365d135a80a0bcebea254c9b8020e81aad1c41 | Java | reachtokish/appsmith | /app/server/appsmith-plugins/mongoPlugin/src/main/java/com/external/plugins/utils/MongoPluginUtils.java | UTF-8 | 9,602 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.external.plugins.utils;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginError;
import com.appsmith.external.exceptions.pluginExceptions.AppsmithPluginException;
import com.appsmith.external.helpers.PluginUtils;
import com.appsmith.external.models.ActionConfiguration;
import com.appsm... | true |
c1b0c5955cd8a01779846b8300894f57a0ed6d89 | Java | cckmit/erp-4 | /Maven_Accounting/src/main/java/com/krawler/spring/accounting/account/accCusVenMapDAOImpl.java | UTF-8 | 13,518 | 1.710938 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.krawler.spring.accounting.account;
import com.krawler.common.dao.BaseDAO;
import com.krawler.common.service.ServiceException;
import com.krawler.common.util.StringUtil;
import com.krawler.hql.accounting.Cust... | true |
4f5d9f071beffbfdc12797a7d2adba08726d8f61 | Java | Thidox/GiantShop-2.0 | /src/main/java/nl/giantit/minecraft/giantshop/API/GSW/Commands/Console/Reload.java | UTF-8 | 840 | 1.921875 | 2 | [] | no_license | package nl.giantit.minecraft.giantshop.API.GSW.Commands.Console;
import nl.giantit.minecraft.giantcore.Misc.Heraut;
import nl.giantit.minecraft.giantcore.Misc.Messages;
import nl.giantit.minecraft.giantshop.API.GSW.GSWAPI;
import nl.giantit.minecraft.giantshop.API.GiantShopAPI;
import nl.giantit.minecraft.gian... | true |
3f6a43958bfe4639c4f8235962b92e89c217cd5c | Java | lin199231/WechatService | /src/main/java/win/demonlegion/wechatservice/module/message/ShortVideoMessage.java | UTF-8 | 952 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package win.demonlegion.wechatservice.module.message;
import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
/**
* 小视频消息
*/
public class ShortVideoMessage extends WechatMessage implements Serializable {
private static final long serialVersionUID = 2456728850219704094L;
private Stri... | true |
6773eef2b3ed391ae8f4f00d016403c8912235d5 | Java | cckmit/UPHMIS_dhis_2.30 | /dhis-2/dhis-web/dhis-web-excelimport/src/main/java/org/hisp/dhis/excelimport/util/ExcelImport_OUDeCode.java | UTF-8 | 1,854 | 2.484375 | 2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package org.hisp.dhis.excelimport.util;
public class ExcelImport_OUDeCode
{
/**
* Sheet number
*/
private int sheetno;
/**
* Row number
*/
private int rowno;
/**
* Column number
*/
private int colno;
/**
* Formula to calculate the values.
*/
pr... | true |
ff414eb9049f590d058df0d7d91e8c2fd687ed5c | Java | reactome-fi/CytoscapePlugIn | /src/main/java/org/reactome/cytoscape3/GeneSetFINetworkPopupMenuHandler.java | UTF-8 | 3,137 | 2.125 | 2 | [] | no_license | package org.reactome.cytoscape3;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import org.cytoscape.application.swing.CyMenuItem;
import org.cytoscape.application.swing.CyNetworkViewContextMenuFactory;
import org.cytoscape.view.... | true |
b9ed356602b563cfec3ff89a5c2a204dc1a18bc5 | Java | Jefidev/Reseau | /JavaLibraryCompta/src/library_compta/RecPayClass.java | UTF-8 | 330 | 2.015625 | 2 | [] | no_license | package library_compta;
import java.io.Serializable;
public class RecPayClass implements Serializable
{
public String idFacture;
public double montant;
public String compte;
public RecPayClass(String i, double m, String c)
{
idFacture = i;
montant = m;
compte = c;
... | true |
116b3c78969edf68abe1ae5f9cd5113980b62d38 | Java | firestar/EnchantingPlus | /src/main/java/com/aesireanempire/eplus/handlers/LanguageHandler.java | UTF-8 | 2,226 | 2.390625 | 2 | [] | no_license | package com.aesireanempire.eplus.handlers;
import com.aesireanempire.eplus.EnchantingPlus;
import cpw.mods.fml.common.registry.LanguageRegistry;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* @author Freyja Lesser GNU Public License v3
* ... | true |
1ccdc72ea5e75e1740e8f0fc06d9879059253bb4 | Java | exbotpro/XPlatform | /src/xplatform/platform/adaptation/ThreadCoordinator.java | UTF-8 | 3,097 | 2.53125 | 3 | [] | no_license | package xplatform.platform.adaptation;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Vector;
import java.util.concurrent.ConcurrentHashMap;
public class ThreadCoordinator {
private int n = 10;
private Hashtable<String, Long> initTime = new Hashtable<String, Long>();
private H... | true |
8b4969965341be4a882769ccb351820ae5b3144a | Java | Ivanovitch76/Labo-GWT2048 | /gwt-2048/src/be/steformations/it/client/ui/widget/Case.java | UTF-8 | 259 | 1.820313 | 2 | [] | no_license | package be.steformations.it.client.ui.widget;
import com.google.gwt.core.client.GWT;
import gwt.material.design.client.ui.MaterialButton;
public class Case extends MaterialButton{
public Case() {
super();
GWT.log("Case.Case()");
}
}
| true |
8903553a5be6c6f9611e34ddb24ffb06db9be12e | Java | alphagov/pay-java-commons | /model/src/test/java/uk/gov/service/payments/commons/api/json/ApiResponseDateTimeSerializerTest.java | UTF-8 | 1,255 | 2.265625 | 2 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | package uk.gov.service.payments.commons.api.json;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializerProvider;
import org.junit.jupiter.api.Test;
import java.io.IOException;... | true |
1942cbbdbf853a47fec0c1c56078224a87876405 | Java | Archer1A/report-service | /src/main/java/com/vic/report/model/Report.java | UTF-8 | 362 | 1.632813 | 2 | [] | no_license | package com.vic.report.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Report {
private String id;
private String userName;
private String idCard;... | true |
dfbc91f3b7273dc97be2dee428179837c80f5be3 | Java | tiwiz/WTT_FitApp | /app/src/main/java/net/orgiu/wttfitapp/session/SessionAdapter.java | UTF-8 | 1,227 | 2.1875 | 2 | [] | no_license | package net.orgiu.wttfitapp.session;
import android.support.v7.util.DiffUtil;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.google.android.gms.fitness.data.Session;
import com.google.android.gms.fitness.result.Ses... | true |
c0799f4421d288382115987bf4a519d173aa721a | Java | abardam/colonization-sea | /SoutheastAsia/src/southeastasia/loader/ActionsLoader.java | UTF-8 | 4,045 | 2.703125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package southeastasia.loader;
import java.util.ArrayList;
import southeastasia.game.SoutheastAsiaAction;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import java.io.*;
impor... | true |
3eb16b558293c35f22b89db8ac6177f419b937a5 | Java | Mickai55/Desk-Rent-Spring | /work/desk/src/main/java/com/renting/desk/repository/DeskRepository.java | UTF-8 | 313 | 1.90625 | 2 | [] | no_license | package com.renting.desk.repository;
import com.renting.desk.model.Desk;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface DeskRepository extends MongoRepository<Desk, Long> {
Desk findByName(String name);
}
| true |
387a4e4bc64caa142db8b49a8367048564f185b0 | Java | sahil-diwan/java-programming-2021 | /DeserializationUsingInheritance/src/Deserialization.java | UTF-8 | 974 | 3.203125 | 3 | [] | no_license | import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.ObjectInputStream;
import java.io.Serializable;
class Person implements Serializable{
String name = "Sahil Diwan";
long phone = 99999;
}
class Student extends Person implements Serializable{
int sid;
static int count = 3;
Student... | true |
b0d39679fe4f9301f7052bb74830ee370702acc2 | Java | parsaramesh/demo-cache | /src/main/java/org/demo/cache/movie/MovieDaoImpl.java | UTF-8 | 2,238 | 2.40625 | 2 | [] | no_license | package org.demo.cache.movie;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import javax.inject.Named;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cach... | true |
93c6f63f48c0ba7351b92ecd89f817c5b282fc7e | Java | 1700301020/TodayNews | /app/src/main/java/com/example/todaynews/main/shanghai/module/ShangHaiDetailHttpTask.java | UTF-8 | 724 | 1.8125 | 2 | [] | no_license | package com.example.todaynews.main.shanghai.module;
import com.example.http.LfHttpServer;
import com.example.http.result.IResult;
import java.util.HashMap;
import java.util.Map;
public class ShangHaiDetailHttpTask<T> extends LfHttpServer {
//负责封装参数
public IResult<T> getJokeList(String sort, String page, Str... | true |
dfe9c9ad8a3ad9364e432a1307611821a8acb0ac | Java | adsLFUP/dxj-base | /src/main/java/com/aic/ssm/entity/SidebarTree.java | UTF-8 | 3,002 | 2.140625 | 2 | [] | no_license | package com.aic.ssm.entity;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
public class SidebarTree {
private String text;
private String href;
private String guid;
private String level;
private String parent_guid; //父节点
private Stri... | true |
4c24bce919d97671bf083a4556d11df42378fcb9 | Java | Happydon/job4j_tracker | /src/main/java/ru/job4j/oop/College.java | UTF-8 | 189 | 2.046875 | 2 | [] | no_license | package ru.job4j.oop;
public class College {
public static void main(String[] args) {
Freshman joe = new Freshman();
Student stud = joe;
Object obj = joe;
}
}
| true |
e65fb6dccb2ca6a7be18cdae175686886ff1cc8f | Java | timmypes/config | /configTest/src/main/java/com/tim/configtest/starter/Starter.java | UTF-8 | 523 | 1.757813 | 2 | [
"MIT"
] | permissive | package com.tim.configtest.starter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
/**
* @description:
* @author: li si
*/
@SpringB... | true |
6deb31be7e71535f2080d00dfcd44e4a9520dbd8 | Java | FernandoAcTr/NASA | /src/services/apod/APODService.java | UTF-8 | 1,389 | 2.625 | 3 | [] | no_license | package services.apod;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import model.APODBean;
import services.RequestException;
import services.Service;
import java.io.IOException;
public class APODService {
private static final String endpoint =... | true |
f40e172e261d694b850daa6cefbb31065713f7f5 | Java | lochel/VANESA | /src/biologicalObjects/nodes/CompoundNode.java | UTF-8 | 576 | 2.359375 | 2 | [] | no_license | package biologicalObjects.nodes;
import biologicalElements.Elementdeclerations;
//import edu.uci.ics.jung.graph.Vertex;
import graph.jung.graphDrawing.VertexShapes;
public class CompoundNode extends BiologicalNodeAbstract {
public CompoundNode(String label, String name) {
super(label, name);
setBiolo... | true |
b02fdb0b8a58efb0217d3d50cdcab5d8c71c1275 | Java | CryceTruly/Nutritius | /app/src/main/java/com/happy/nutritius/fragments/FoodsToAvoidFragment.java | UTF-8 | 5,523 | 2.0625 | 2 | [] | no_license | package com.happy.nutritius.fragments;
import android.content.DialogInterface;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.LinearLayout;... | true |
5b6360d064a2f4dd0f6c98c68123e40dcee6c114 | Java | fansyL/nezha | /src/com/upload/ImageBean.java | UTF-8 | 841 | 2.59375 | 3 | [] | no_license | package com.upload;
import java.io.Serializable;
public class ImageBean implements Serializable {
private String thumb;
private String middle;
private String master;
public ImageBean(String thumb, String middle, String master) {
super();
this.thumb = thumb;
this.middle = middle;
this.master = master;
}
... | true |
afa60211cfb6ab4ab69daef1ebde5d2be7fff7ab | Java | arvalon/GPSLocation | /app/src/main/java/ru/scancode/gpslocation/MyFusedLocationProviderClient.java | UTF-8 | 11,644 | 2.015625 | 2 | [] | no_license | package ru.scancode.gpslocation;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.net.Uri;
import android.provider.Settings;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import and... | true |
01446bc239b012cc99eae07b69ba4656ac4d668c | Java | devRohitGangurde/demoShoppingCart | /app/src/main/java/com/android/shopingDemoTest/adapter/CartListAdapter.java | UTF-8 | 4,402 | 2.3125 | 2 | [] | no_license | package com.android.shopingDemoTest.adapter;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup... | true |
0aa705b6e3e42c7794a2b5e43a873f8565b46748 | Java | GraduationProject718/Tea | /Tea/src/entity/HuiFu.java | UTF-8 | 1,082 | 2.390625 | 2 | [] | no_license | package entity;
import java.util.Date;
public class HuiFu {
private String id;
private String uid;
private String lid;
private String content;
private Date date;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getUid() {
return uid;
... | true |
bf0d371c8a699ed331a4ef520f5e9dc5e9e9379a | Java | ssriha0/sl-b2b-platform | /MarketBusinessInterface/src/main/java/com/newco/marketplace/business/iBusiness/trans/ITransProcessor.java | UTF-8 | 127 | 1.625 | 2 | [] | no_license | package com.newco.marketplace.business.iBusiness.trans;
public interface ITransProcessor {
public void processData();
}
| true |
4360a4c93a9630b27599948d9a25d945e9ab0cea | Java | lukacupic/Java-Course | /hw15 - Simple Blog with Java Persistence API/src/main/java/hr/fer/zemris/java/hw15/dao/jpa/JPADAOImpl.java | UTF-8 | 3,070 | 2.796875 | 3 | [] | no_license | package hr.fer.zemris.java.hw15.dao.jpa;
import hr.fer.zemris.java.hw15.dao.DAO;
import hr.fer.zemris.java.hw15.dao.DAOException;
import hr.fer.zemris.java.hw15.model.BlogComment;
import hr.fer.zemris.java.hw15.model.BlogEntry;
import hr.fer.zemris.java.hw15.model.BlogUser;
import javax.persistence.Query;
import java... | true |
c1489ae8536a44838af9de691a8fe9040731e285 | Java | childnn/ssm-samples | /spring_day03_proxy/src/test/java/org/anonymous/test/Demo01.java | UTF-8 | 860 | 2.078125 | 2 | [] | no_license | package org.anonymous.test;
import org.anonymous.service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @author child
* 2019/4/16 21:47
*/
public class Demo01 {
@Test //前置,后置,最终,异常通知
... | true |
dcc8a4a88ab0d8704d49b53f96de7151ff052c70 | Java | novotnyr/consul-intellij-plugin | /src/main/java/com/github/novotnyr/idea/consul/tree/InProgressKeyAndValue.java | UTF-8 | 259 | 1.648438 | 2 | [] | no_license | package com.github.novotnyr.idea.consul.tree;
public class InProgressKeyAndValue extends KeyAndValue {
public InProgressKeyAndValue() {
super("", "Loading...");
}
@Override
public boolean isContainer() {
return true;
}
}
| true |
a262ac808593214aa9174357707370f2984243f8 | Java | blin-1/jhipster-sample-application | /src/main/java/io/github/jhipster/application/service/dto/CMFCodesValuesCriteria.java | UTF-8 | 9,774 | 2.109375 | 2 | [] | no_license | package io.github.jhipster.application.service.dto;
import java.io.Serializable;
import java.util.Objects;
import io.github.jhipster.service.Criteria;
import io.github.jhipster.service.filter.BooleanFilter;
import io.github.jhipster.service.filter.DoubleFilter;
import io.github.jhipster.service.filter.Filter;
import i... | true |
eec874d88587de27e2172bec8e7a3967d890b7a5 | Java | hpkarugendo/refactoring | /RefactoringSolution/src/refactored/MyStats.java | UTF-8 | 5,298 | 2.453125 | 2 | [] | no_license | package refactored;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.util.ArrayList;
import java.util.List;
import javax.swing.ButtonGroup;
import javax.swing.JB... | true |
fc99a19be1f314dad970a80abf80c5908733e03a | Java | chinawaz008/spw | /spw/src/main/java/com/spw/elife/mobile/schedule/controller/ScheduleController.java | UTF-8 | 7,874 | 2.21875 | 2 | [] | no_license | package com.spw.elife.mobile.schedule.controller;
import java.io.IOException;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.sf.json.JSONObject;
import org.apache.commons.lang3.StringUtils;
im... | true |
0db300d5417807483a222dda828a8d194f64d7e4 | Java | jeinbi/springsec | /sample-war/src/main/java/org/wsipersd/core/security/auth/JdbcFilterInvocationSecurityMetadataSource.java | UTF-8 | 1,123 | 2.171875 | 2 | [] | no_license | package org.wsipersd.core.security.auth;
import java.util.Collection;
import java.util.Collections;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.access.SecurityConfig;
import org.springframework.security.web.FilterInvoca... | true |
96c055a63028f29c3e0705d4e27a0b138bce72ef | Java | jimikby/spring_advanced | /src/main/java/com/epam/theatre/soap/client/EventServiceClient.java | UTF-8 | 4,381 | 2.0625 | 2 | [] | no_license | package com.epam.theatre.soap.client;
import java.time.LocalDate;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.ws.cli... | true |
e0eeedcbee19b3a4d1d4a9be589ebadc69b6f077 | Java | irina-borisevich/academy | /by.academy/src/by/academy/homework/homework3/Main.java | UTF-8 | 3,531 | 3.296875 | 3 | [] | no_license | package by.academy.homework.homework3;
import java.util.Scanner;
import by.academy.homework.homework3.Deal;
public class Main {
public static final int MAX_PRODUCTS = 3;
private static void Menu() {
System.out.println("Enter command: ");
System.out.println("-----------------");
System.out.println(... | true |
29c41978404235a168185e71e7565314bd6caf12 | Java | zhongshuiyuan/hyrtproject | /cei/ceiTerminal/src/com/hyrt/mwpm/vo/OaViewMailList.java | UTF-8 | 3,444 | 1.914063 | 2 | [] | no_license | package com.hyrt.mwpm.vo;
import java.util.Date;
/**
* OaViewMailListId entity.
*
* @author MyEclipse Persistence Tools
*/
public class OaViewMailList implements java.io.Serializable {
// Fields
private String id;
private String title;
private String message;
private String fileId;
pri... | true |
0cde6ee8ccb05688bdb5c916744258891aff01bc | Java | viniciusehonda/POOTrab1 | /src/fatec/poo/control/DaoProduto.java | UTF-8 | 3,017 | 2.765625 | 3 | [] | no_license | package fatec.poo.control;
import fatec.poo.model.Produto;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author honda
*/
public class DaoProduto {
private Connection conn;
public DaoProduto(Connection con... | true |
06a2aa29ec043d0633a2ef96f8af84e13f744759 | Java | chasseurcode/novassure | /src/main/java/ma/novassure/daoimpl/AffaireDAOImpl.java | UTF-8 | 2,645 | 2.5 | 2 | [] | no_license | package ma.novassure.daoimpl;
import ma.novassure.dao.AffaireDAO;
import ma.novassure.domaine.Affaire;
import ma.novassure.domaine.Client;
import ma.novassure.domaine.Document;
import ma.novassure.domaine.Paiement;
import ma.novassure.domaine.Quittance;
import org.hibernate.Session;
/**
* @author TARAM & BODIE
*/
... | true |
9a5e191a89e4e799d967daae3206a5e45bcb7a30 | Java | 52inc/android-Showcase | /app/src/main/java/com/ftinc/showcase/ui/lock/Lockscreen.java | UTF-8 | 11,559 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.ftinc.showcase.ui.lock;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.ftinc.showca... | true |
46f2ce8690532d6ab706d485822f91b16778dae0 | Java | lenisaputri/Ileen-Mobile | /app/src/main/java/com/example/ileen_mobile/practice/Model/Ranking.java | UTF-8 | 878 | 2.484375 | 2 | [] | no_license | package com.example.ileen_mobile.practice.Model;
import com.google.firebase.database.Exclude;
import java.util.HashMap;
import java.util.Map;
public class Ranking {
private String userName;
private long score;
public Ranking() {
}
public Ranking(String userName, long score) {
this.userN... | true |
a4bb6e48380cb0a696d629f0f5e1df341f384485 | Java | nickzhangf/algorithm | /project/src/zf/application/Gcd.java | UTF-8 | 389 | 2.984375 | 3 | [] | no_license | package zf.application;
/**
* Gcd 求两个数的最大公约数
*
* @author zf
* @date 2016/1/4 0004
*/
public class Gcd
{
/**
*
* @param m
* @param n
* @return
*/
public static long gcd(long m, long n)
{
while (n != 0)
{
long rem = m % n;
m = n;
... | true |
ed5f9b19c3d58a674fdcc160bf4ab2ebd7928641 | Java | MikeJones999/Rock-Paper-Scissors | /src/GameObjs/Pair.java | UTF-8 | 850 | 3.875 | 4 | [] | no_license | package GameObjs;
/**
* Generic Pair class to hold two items - specifically used to hold String and Integer
* This class holds the string name of a GameObject and its incremented value
* @author mike
*
* @param <X>
* @param <Y>
*/
public class Pair<X,Y> {
private final X obj;
private final Y value;
publi... | true |
56c9eb1a86d70e21ce677f5e0610a388e8453301 | Java | deks23/malarze | /malarze/model/Painter.java | UTF-8 | 1,595 | 2.953125 | 3 | [] | no_license | package malarze.model;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import java.util.Scanner;
public class Painter {
private final StringProperty name;
private final StringProperty ... | true |
0431755e84857bda5e838637595c797f33256004 | Java | yuxinling/int2 | /integrate-core/src/main/java/com/integrate/env/Env.java | UTF-8 | 418 | 2.34375 | 2 | [] | no_license | package com.integrate.env;
public abstract class Env {
private static String env = PropertiesHelper.getProp("env");
/**
* @return true 外网生产环境
*/
public static boolean isProd() {
//默认是生产环境,以免外网出错
return env == null || "prod".equals(env);
}
/**
* @return true 开发人员自己的环境
*/
public static boolean isD... | true |
e55137c8166436c3e00126e2b9e193e0733edda9 | Java | Alex3m/springboot-module | /exercises/week2/exercise9/src/test/java/academy/everyonecodes/app/IssuerTest.java | UTF-8 | 1,066 | 2.59375 | 3 | [] | no_license | package academy.everyonecodes.app;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
import java.util.Set;
import java.util.stream.Stream;
class IssuerTest {
... | true |
d8308b8df5d102dd649daf324f319567e6354038 | Java | neoabi1000/my-off-proj | /LabMgmt/src/main/java/com/jsapl/services/InvalidTestSampleException.java | UTF-8 | 254 | 1.75 | 2 | [] | no_license | package com.jsapl.services;
class InvalidTestSampleException extends Exception{
private static final long serialVersionUID = -8231971194841337941L;
public InvalidTestSampleException(){}
public InvalidTestSampleException(String msg){super(msg);}
}
| true |
388cb94fcdd15180f854f14977b9a627b0de87b9 | Java | iorlanov-lf/ballo-as | /app/src/androidTest/java/com/logiforge/balloapp/HttpAdapterTest.java | UTF-8 | 4,403 | 2.375 | 2 | [] | no_license | package com.logiforge.balloapp;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import com.logiforge.ballo.net.HttpAdapter;
import com.logiforge.ballo.net.HttpAdaptorBuilder;
import com.logiforge.ballo.net.PostRequest;
import com.logiforge.ballo.net.Response;
import org.junit.Tes... | true |
39cb44568751d7a67c15385b349b4c5ba9157ad9 | Java | Nayemuzzaman/Retrofit_Login_with_API | /Retrofitlog/app/src/main/java/com/waltonbd/retrofitpera/RetrofitClient.java | UTF-8 | 1,265 | 2.3125 | 2 | [] | no_license | package com.waltonbd.retrofitpera;
/*import org.json.JSONObject;*/
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
import retrofit2.converter.scalars.ScalarsConverterFactory;
import com.google.gson.JsonObject;
import org.json.JSONObje... | true |
abbb49b841342fca5d434f0b0abc3c478e46db83 | Java | israelPreciado/estrategia-integral-aes | /src/main/java/com/estrategia/avances/EliminarFile.java | UTF-8 | 3,373 | 2.40625 | 2 | [] | no_license | package com.estrategia.avances;
import java.io.IOException;
import java.io.PrintWriter;
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.jso... | true |
824171e0b50631e0d69e66358231c182d2c7deed | Java | tamada/tuchinoko | /src/test/java/com/github/tuchinoko/ProcessorServicePoolTest.java | UTF-8 | 1,540 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.tuchinoko;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class ProcessorServicePoolTest{
private ProcessorServicePool pool;
private Environment env;
@Before
public void setUp() throws Exception{
env = new Environment();
pool = new P... | true |
d464d719f237ac36f46ea08585163aabc6262d09 | Java | Gurochas/Estrutura-de-Dados | /Aulas e Atividades/src/ExercicioFixacao/Casa.java | UTF-8 | 201 | 2.15625 | 2 | [] | no_license | package ExercicioFixacao;
public class Casa {
String rua;
String cor;
int numero;
public Casa(String rua, String cor, int numero) {
this.rua=rua;
this.cor=cor;
this.numero=numero;
}
}
| true |
596a290bf71901a3bf784b90c5b70000af674632 | Java | swantescholz/jogl | /src/main/java/de/sscholz/util/IndexPool.java | UTF-8 | 648 | 3.09375 | 3 | [] | no_license | package de.sscholz.util;
import java.util.LinkedList;
import java.util.Queue;
public class IndexPool {
Queue<Integer> free = new LinkedList<Integer>();
Queue<Integer> used = new LinkedList<Integer>();
public void add(int value) {
free.add(value);
}
public int aquire() {
Integer ... | true |
9a0ac96801f0685ed09f7c81486bac0a682cb974 | Java | vtc197104101/210CT | /week4/q6Test.java | UTF-8 | 896 | 3.4375 | 3 | [] | no_license | package week4;
import java.util.Stack;
import java.util.Iterator;
public class q6Test {
public static void main(String args[]) {
Stack s = new Stack();
System.out.println(s);
System.out.println("Patrick is at " + s.search("Patrick"));
s.push('A');
System.out.println(s);
s.push('B');
System.out.print... | true |
8c1b9e699ba0a127b736e6e2fcb6ccd2f9f89cc4 | Java | bianapis/sd-branch-location-operations-v3 | /src/main/java/org/bian/dto/BQCashInventoryHandlingRetrieveInputModel.java | UTF-8 | 3,315 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQCashInventoryHandlingRetrieveInputModelCashInventoryHandlingInstanceAnalysis;
im... | true |
d8edf8cc562acfd028322ca2d6a2708ec8ce443d | Java | yakiramar/Tow-holes-sliding-puzzle | /Tow-holes-sliding-puzzle/src/Ex1.java | UTF-8 | 1,245 | 3.140625 | 3 | [] | no_license | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Ex1 {
// readFileText get String that contain path to txt file and return his content
public static String readFileTXT(String filePath) {
String fileContent="";
try {
File myObj = new File(fil... | true |
d04adcf99b66d608288dc5ce5b2f7d3f4bd0619c | Java | sanjay900/tangentPuzzleAPI | /src/main/java/com/sanjay900/puzzleapi/api/PlotType.java | UTF-8 | 304 | 2.0625 | 2 | [] | no_license | package com.sanjay900.puzzleapi.api;
import org.bukkit.material.MaterialData;
public interface PlotType {
public PlotGame getGame();
public String getName();
public MaterialData getInnerWall();
public MaterialData getOuterWall();
public MaterialData getRoof();
public MaterialData getFloor();
}
| true |
c337bf727b03ec5f93449f80a62a8a32fb84ef88 | Java | zjj412550708/information | /info/information/src/main/java/com/example/information/JsonUtil.java | UTF-8 | 1,343 | 2.40625 | 2 | [] | no_license | package com.example.information;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import java.util.HashMap;
import java.util.Map;
public class JsonUtil {
public JSONObject getMap(){
Map<String , Object> result = new HashMap<String , Object>();
result.put("reason","成功的返回");
// ... | true |
048464fa5ec988eda33eca74f7ebdf939d8e6969 | Java | wingsum93/RMS | /app/src/main/java/com/example/james/rms/Core/ServePath/QuantityServePath.java | UTF-8 | 1,380 | 1.898438 | 2 | [] | no_license | package com.example.james.rms.Core.ServePath;
import com.example.james.rms.NetWork.ServeProfile;
/**
* Created by jamie on 2017/4/23.
*/
public class QuantityServePath {
public static String serve_findAll(){
String serve = ServeProfile.getServe();
String path = ServeProfile.getQuantity_findAll... | true |
1735b111a21a46fcc8c96e84e96ebcb420d3d16c | Java | ctron/apt-repo | /src/main/java/de/dentrassi/build/apt/repo/Distribution.java | UTF-8 | 3,525 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Jens Reimann.
*
* 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 |
cd127512d7d7ac3df77c246112f46b35c0ab0f41 | Java | lixuesheng83829/JavaEE | /ItcastOA/src/cn/itcast/oa/util/FileUtils.java | UTF-8 | 2,283 | 2.859375 | 3 | [] | no_license | package cn.itcast.oa.util;
import java.io.File;
import java.util.Date;
import java.util.UUID;
import org.apache.struts2.ServletActionContext;
public class FileUtils {
/**
* 完成文件上传的同时,返回路径path
* @param savePath
* @param file:上传的文件
* @param string:上传的文件名
* @param model:模块名称,要加上"/"后缀,防止拼接路径出错
... | true |
2d44377153a9ed6a5442268e43c97fdf2bc2baf4 | Java | nromanen/Ch-039 | /src/main/java/com/hospitalsearch/controller/ManagerController.java | UTF-8 | 2,575 | 2.1875 | 2 | [] | no_license | package com.hospitalsearch.controller;
import com.hospitalsearch.entity.UserDetail;
import com.hospitalsearch.service.HospitalService;
import com.hospitalsearch.service.ManagerService;
import com.hospitalsearch.service.UserDetailService;
import com.hospitalsearch.service.UserService;
import org.springframework.beans.f... | true |
1b5b51df4c8d7094d5bfa113024cb837b7d66102 | Java | DFZYL/xichuanxunfang | /app/src/main/java/com/weisen/xcxf/receiver/MyReceiver.java | UTF-8 | 7,788 | 2.15625 | 2 | [] | no_license | package com.weisen.xcxf.receiver;
import android.annotation.SuppressLint;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import org.json.JSONObject;
import com.weisen.xcxf.Constant;
import com.weisen.xcxf.act... | true |
ee0b4a35d705f7bd14a6076b3f89dfd1b796f6d3 | Java | claudiacameliaa/lnt-mid-project | /src/main/Main.java | UTF-8 | 4,728 | 3.234375 | 3 | [] | no_license | package main;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Random;
import java.util.Scanner;
import data.Admin;
import data.Employee;
import data.Manager;
import data.Supervisor;
public class Main {
private Scanner scan = new Scanner(System.in);
private ArrayList<Employee> list = new ... | true |
5693fdcd4ad33e11365431f6288b05c745ae24df | Java | allworldall/rpc | /src/linekong-erating-api/src/main/java/com/linekong/erating/api/pojo/response/UserCashExchangeRespDTO.java | UTF-8 | 1,013 | 2.125 | 2 | [] | no_license | package com.linekong.erating.api.pojo.response;
import com.linekong.erating.api.pojo.resultmapper.UserCashExchangeDO;
import java.util.List;
/**
* 元宝流通,应答数据对象
* CMD_USER_CASH_EXCHANGE_EX4_RES 0x20003718
*本协议包是变长包,将依据balanceCount表示的个数决定subjectId,srcBalance,dstBalance重复的次数
*/
public class UserCashExchangeRespDTO ... | true |
9a9d7ae46f6a696b8b6b8a4cad3860c9daebbba6 | Java | patwit/advanced_compro_lecture_examples | /coe/java/demos/c6/events/MouseEventDemo.java | UTF-8 | 4,644 | 2.90625 | 3 | [] | no_license | package coe.java.demos.c6.events;
/*
* Copyright (c) 1995 - 2008 Sun Microsystems, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain ... | true |
27634860d417be82be726d1dca67b4eecb50e87b | Java | itsmasud/testFlagCountry | /projects/FieldNation/fieldnation/src/main/java/com/fieldnation/service/data/photo/PhotoClient.java | UTF-8 | 5,141 | 2.25 | 2 | [] | no_license | package com.fieldnation.service.data.photo;
import android.content.Context;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import android.os.Bundle;
import com.fieldnation.App;
import com.fieldnation.fnlog.Log;
import com.fieldnation.fnpigeon.Pigeon;
import com.fieldnation.fnpigeon.PigeonRoo... | true |
8bedf28795897d7557720838fa7c348ff36165d6 | Java | Haybu/demo-bootup-testing | /src/test/java/io/agilehandy/bootuptesting/RegistrationRepositoryTest.java | UTF-8 | 1,045 | 2.15625 | 2 | [] | no_license | package io.agilehandy.bootuptesting;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit4.SpringRunner;
import static org.assertj.cor... | true |
14da2e34a9244b878669271d9cf90d49065e2277 | Java | enjektor/enjektor-web | /src/main/java/com/github/enjektor/akasya/WebConstants.java | UTF-8 | 491 | 1.90625 | 2 | [] | no_license | package com.github.enjektor.akasya;
public class WebConstants {
private WebConstants() {
throw new AssertionError();
}
public static final byte HTTP_METHOD_GET = (byte) 0x0;
public static final byte HTTP_METHOD_POST = (byte) 0x1;
public static final byte HTTP_METHOD_DELETE = (byte) 0x2;
... | true |
ad5c258195179ac745a5f806a38349105f1a1aaa | Java | bongboy/Funda | /functionaldesign/src/chainofresponsibility/ChainOfRespGOF.java | UTF-8 | 2,752 | 3.515625 | 4 | [] | no_license | package chainofresponsibility;
public class ChainOfRespGOF {
public static void main(String[] args) {
FileParser textFileParser = new TextFileParser();
FileParser presentationFileParser = new PresentationFileParser();
FileParser audioFileParser = new AudioFileParser();
textFilePa... | true |
b04d7392162ac5ad677dd3043f1842b7b4921804 | Java | cuba-platform/cuba | /modules/web/src/com/haulmont/cuba/web/gui/components/JavaScriptComponent.java | UTF-8 | 6,904 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2018 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | true |
08379d574398a84d6ab72e2fdc20bd9ee7929779 | Java | Abhishek0395/ChessMasters | /ChessGame-master/src/chess/HomePageController.java | UTF-8 | 494 | 1.804688 | 2 | [] | no_license | package chess;
import javafx.event.ActionEvent;
import javafx.fxml.Initializable;
import java.net.URL;
import java.util.ResourceBundle;
/**
* Created by Rupak on 6/4/2016.
*/
import javafx.fxml.FXML;
import javafx.scene.image.ImageView;
public class HomePageController {
@FXML
private ImageView ExitBtn;
... | true |
a50fd0137b0f535c1afbb95df0f3473dc6a89f3e | Java | vvbulbule/WedDriverOffice | /WebDriver_Office/src/Sample3.java | UTF-8 | 279 | 2.59375 | 3 | [] | no_license |
public class Sample3 {
public static void rank(int marks){
if(marks<35){
System.out.println("Student is fail");
}else
System.out.println("Pass");
}
public static void main(String[] args) {
// TODO Auto-generated method stub
rank(60);
}
}
| true |
92feb82bd7d51fc531ca9ceae1c9bd95e9238a37 | Java | Micromoving/bcp | /代码bcp1.0/010_source/src/main/java/cn/micromoving/bcp/modules/hr/entity/SalaryInstancePerformance.java | UTF-8 | 739 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package cn.micromoving.bcp.modules.hr.entity;
import cn.micromoving.bcp.common.persistence.DataEntity;
import cn.micromoving.bcp.modules.sys.entity.Office;
/**
* 离职表Entity
* @author shihengji
*
*/
public class SalaryInstancePerformance extends DataEntity<SalaryInstancePerformance>{
private static final long ser... | true |
b3509bf973e4e71eb89292ac41aaefce3ddaa801 | Java | chzhxiang/tower | /src/main/java/com/cdhenren/fetch/entity/TmpSiteDavyPreview.java | UTF-8 | 3,424 | 1.921875 | 2 | [] | no_license | package com.cdhenren.fetch.entity;
/**
* @author Baopz
* @date 2018/05/24
*/
public class TmpSiteDavyPreview implements ResultSet{
private String 省;
private String 市;
private String 区;
private String 站址运维ID;
private String 资源系统站址编码;
private String 站址名称;
private String 合同编号;
private S... | true |
31e7160e7e4679ba574a035478e9d61ac2e4165e | Java | macedo-ca/util1 | /src/main/java/ca/macedo/util1/factory/QueryUtils.java | UTF-8 | 5,130 | 2.390625 | 2 | [] | no_license | /******************************************************************************
* Copyright (c) 2017 Johan Macedo
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available... | true |
c2cf00833b7f487d4e5819d448d8384d6ff30187 | Java | rachelee/Leetcode | /Leetcode/src/Solution5.java | UTF-8 | 4,494 | 3.3125 | 3 | [
"MIT"
] | permissive |
public class Solution5 {
//1. Naive solution
public static String longestPalindrome(String s) {
int start = 0;
int end = s.length()-1;
int max = 0;
String str = new String();
while(start <= end-max)
{
boolean found = false;
for(int st... | true |
109abf81d71f36484c6dad516b8080007546630a | Java | davidtadeovargas/era_views | /src/main/java/com/era/views/tables/headers/PedidosPartssTableHeader.java | UTF-8 | 5,763 | 1.953125 | 2 | [] | no_license | package com.era.views.tables.headers;
public class PedidosPartssTableHeader extends BaseTableHeader {
private final ColumnTable ROWNUMBER = new ColumnTable("No");
public ColumnTable getROWNUMBER() {
return this.ROWNUMBER;
}
private final ColumnTable ALMA = new ColumnTable("Almacén");
public Column... | true |
928e6bef1f0c0e8e15caec6c913699da7097edf4 | Java | Brijmohan-13/OJT-Java----Logical | /src/June04_Uppercase_Lowercase_ReverseString/ChangeCaseForOnlyForFirstLetter.java | UTF-8 | 631 | 3.5 | 4 | [] | no_license | package June04_Uppercase_Lowercase_ReverseString;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class ChangeCaseForOnlyForFirstLetter {
public static void main(String[] args) throws Exception {
System.out.println("Please enter text");
BufferedReader br=new BufferedReader(new InputS... | true |
29e7b3e92933d2acb8f09ae05de424c5d8d549d8 | Java | RalphTheWonderLlama/CardGames | /src/Cards/Poker/FiveCard.java | UTF-8 | 332 | 2.234375 | 2 | [] | no_license | package Cards.Poker;
import java.util.Scanner;
import java.util.Arrays;
import java.util.Random;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
public class FiveCard extends PokerRound{
public FiveCard(PokerPlayer[] p, int minRaise) {
super(p, minRaise);
}
public boolean playRound() {
return Round... | true |
702f4b666e25478915acb553203a321502122fe7 | Java | dnowak2/Quintrix | /Practice/src/Customer.java | UTF-8 | 284 | 2.984375 | 3 | [] | no_license |
public class Customer
{
private String name;
private double accountBalance;
public Customer(String name, double money)
{
this.name = name;
this.accountBalance = money;
}
public static double getAccountBalance(Customer customer)
{
return customer.accountBalance;
}
}
| true |
c74b46385c686c315d67ea90c388772031744ff9 | Java | Yuchengw/Lesbonne | /core/appserver/src/main/java/com/lesbonne/lib/platformService/PlatformPostService.java | UTF-8 | 682 | 2.109375 | 2 | [] | no_license | package com.lesbonne.lib.platformService;
import java.util.List;
import com.lesbonne.api.rest.AppRestPostClientImpl;
import com.lesbonne.api.rest.AppRestUserClientImpl;
import com.lesbonne.business.bean.Post;
import com.lesbonne.business.bean.User;
/**
* This is the service layer concatenate platform PostEntityObje... | true |
129eb2384f9866eb69e630c05222f78b175a5d01 | Java | AnchaSravani/Tauria-Assignment | /TestScenarios/src/main/java/Utils/LoadPropertiesFile.java | UTF-8 | 551 | 2.375 | 2 | [] | no_license | package Utils;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
public class LoadPropertiesFile {
public static Properties prop ;
public void Load() throws IOException
{
prop =new Properties();
... | true |
ad8467b28bf498de265530e9b6d5aef004f0a055 | Java | AMEYA4TECH/LoginAppDemo | /src/com/service/impl/PostServiceImpl.java | UTF-8 | 4,110 | 2.21875 | 2 | [] | no_license | package com.service.impl;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.log4j.Logger;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springfram... | true |
b3cdf85aacc84527744f22930551f7247aa64275 | Java | nyh9704/zzz | /src/java/com/wyzc/htgl/controller/ChannelHouseController.java | UTF-8 | 3,890 | 1.898438 | 2 | [] | no_license | package com.wyzc.htgl.controller;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;... | true |