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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
697347b301c3349c5c884757ae03ac6c270abc2b | Java | luoximin1990/Country-Love-Api | /src/main/java/com/marykay/country/love/repository/CountryRepository.java | UTF-8 | 365 | 1.867188 | 2 | [] | no_license | package com.marykay.country.love.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.marykay.country.love.model.Country;
@Repository
public interface CountryRepository extends JpaRepository<Country, Integer> {
... | true |
c70caffdb313c59d812104d0d6e1b4acb6ce885a | Java | nogovitsyndmitriy/BookingService | /src/dao/CreditCardDao.java | UTF-8 | 205 | 1.984375 | 2 | [] | no_license | package dao;
import entity.CreditCard;
import java.sql.SQLException;
import java.util.List;
public interface CreditCardDao extends DAO<CreditCard> {
List<CreditCard> getAll() throws SQLException;
}
| true |
6633bde2fb47b3c0e6c991ddc968701f7fbb8a53 | Java | unisung/java1 | /ch07/src/verify/ch06/Child.java | UHC | 348 | 3.0625 | 3 | [] | no_license | package verify.ch06;
public class Child extends Parent{
private String name;
public Child(){
this("ȫ浿");//Child(name) ȣ//
System.out.println("Child() call");//4
}
public Child(String name){//3
//super();//
this.name=name;
System.out.println("Child(String name) call");
}
} | true |
7e5e525bd258315d208298fbd9ecd19ee5ed45bf | Java | 1914116/Level-1 | /src/Graphics/Calculator.java | UTF-8 | 1,615 | 3.328125 | 3 | [] | no_license | package Graphics;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class Calculator implements ActionListener {
JFrame... | true |
fd182c3a5f5183792a4d72850eb1341a75245536 | Java | OMMEENA/DataStructure-Algo | /src/main/java/annotation/CustomAnnotation.java | UTF-8 | 1,969 | 3.484375 | 3 | [] | no_license | package annotation;
// The annotations they don't have any variables called Marker Annotations
import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
//We need 2 predefine ... | true |
bdf2e7786185913e61b44474b1e4118323fc3398 | Java | rexlManu/Schickhardschule | /src/de/rexlmanu/vplanapi/misc/Days.java | UTF-8 | 1,022 | 2.71875 | 3 | [
"MIT"
] | permissive | package de.rexlmanu.vplanapi.misc;
import java.net.MalformedURLException;
import java.net.URL;
public enum Days {
MONDAY("Montag", toUrl("https://www.schickhardtschule.de/susvertretung/montag.html")),
TUESDAY("Dienstag", toUrl("https://www.schickhardtschule.de/susvertretung/dienstag.html")),
WEDNESSDAY("... | true |
980f7fc321dd3482a53a2d2580c8bbc43428b43b | Java | MorningSage/Mekanism-Fabric | /src/main/java/mekanism/client/jei/BaseRecipeCategory.java | UTF-8 | 5,678 | 1.984375 | 2 | [
"MIT"
] | permissive | package mekanism.client.jei;
import net.minecraft.client.util.math.MatrixStack;
import it.unimi.dsi.fastutil.longs.Long2ObjectFunction;
import it.unimi.dsi.fastutil.objects.ObjectOpenHashSet;
import java.util.List;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import mekanism... | true |
6d4b566f7fc419351b57692a4beafcd4c7090c42 | Java | linksunshine/baseline | /baseline-server/src/main/java/com/linksunshine/baseline/server/web/service/impl/PermissionServiceImpl.java | UTF-8 | 3,876 | 2.046875 | 2 | [] | no_license | package com.linksunshine.baseline.server.web.service.impl;
import com.github.pagehelper.PageHelper;
import com.linksunshine.baseline.server.web.core.orika.OrikaBeanMapper;
import com.linksunshine.baseline.server.web.dao.PermissionMapper;
import com.linksunshine.baseline.server.web.dto.PermissionDTO;
import com.linksun... | true |
75105212a037481123a9bad2852c0fe81085ef9e | Java | hwedwin/spring-boot-starters-project | /spring-boot-monitor/monitor-spring-boot-autoconfigure/src/main/java/in/hocg/boot/monitor/autoconfiguration/MonitorAutoConfiguration.java | UTF-8 | 1,402 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package in.hocg.boot.monitor.autoconfiguration;
import in.hocg.boot.monitor.autoconfiguration.properties.MonitorProperties;
import io.micrometer.core.instrument.MeterRegistry;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.actuate.autoc... | true |
8917987c1cb8db81765562954c71046804c1507b | Java | NPEX-Ltd/NPlib | /src/np/library/testing/tests/NodeListIterator.java | UTF-8 | 715 | 2.609375 | 3 | [] | no_license | package np.library.testing.tests;
import java.util.Iterator;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
public class NodeListIterator implements Iterable<Node> {
private NodeIterator iterator;
public NodeListIterator(NodeList list) {
super();
this.iterator = new NodeIterator(list);
}
@Over... | true |
714040c1986d53ae34151a11cb5f02c1815eb0a4 | Java | iamVaibhavPatil/GetMyRoomie | /src/com/roomie/web/dao/entity/RoomMateList.java | UTF-8 | 4,547 | 2 | 2 | [] | no_license | package com.roomie.web.dao.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.commons.lang3.StringUtils;
@Entity
@Table(name = "ROOM_... | true |
34c6c713f7e394c626255020cd96b9056d21538e | Java | LosDeSiempre420/mypocketeamMongo | /src/test/java/com/losdesiempre/mypocketeam/AbstractMovementControllerTest.java | UTF-8 | 3,041 | 2.15625 | 2 | [] | no_license | package com.losdesiempre.mypocketeam;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.losdesiempre.mypocketeam.controller.MovimientoController;
import com.losdesiempre.mypocketeam.domain.Movement;
import com.losdesiempre.mypocketeam.service.MovementService;
import org.junit.jupiter.api.BeforeEach;
impor... | true |
2e890837ccba74f81eca61c667251a230424eae9 | Java | bopzjy/Tetris | /src/tetris/common/TheMagicBegin.java | UTF-8 | 736 | 2.296875 | 2 | [] | no_license | package tetris.common;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import tetris.net.Server_test;
import tetris.ui.activity.LoadActivity;
public class TheMagicBegin {
public static void main(String[] args) {
if(!isPortUsing("127.0.0.1", 9999)){
Server_test.main(... | true |
bf1228846bddfbff7aab1e224144045b13824041 | Java | danyfel80/icy-bigimage | /BigImageTools/src/main/java/plugins/danyfel80/bigimage/io/SaveBigImage.java | UTF-8 | 3,661 | 2.140625 | 2 | [
"MIT"
] | permissive | package plugins.danyfel80.bigimage.io;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.PathMatcher;
import algorithms.danyfel80.io.sequence.large.LargeSequenceExporter;
import algorithms.danyfel80.io.sequence.large.LargeSequenceExporterException;
import algorithms.danyfel80.io.sequen... | true |
6772cc05c4aa99e699dbf90d427892b5e529406d | Java | Mernoa/Obligatorio1 | /src/Obligatorio/Ficha.java | UTF-8 | 958 | 2.59375 | 3 | [] | no_license | package Obligatorio;
public class Ficha {
private String id;
private String color;
private int valor;
private int posicionFila;
private int posicionColumna;
public Ficha(String id, int valor, int jugador) {
this.id = id;
this.valor = valor;
this.color = color;
}
public String getId() {
return id;... | true |
09e88fd1d4771e34569fec42c0a516d3b3bc1e2b | Java | MarkNBroadhead/MinecraftModManager | /src/main/java/app/ModUpdater.java | UTF-8 | 1,343 | 2.890625 | 3 | [
"MIT"
] | permissive | package app;
import java.io.IOException;
public class ModUpdater {
public static void updateMods() throws RuntimeException {
updateGitRepo();
try {
if (!Utils.isMinecraftRunning()) {
Utils.deleteOldMods();
Utils.addNewMods();
} else {
... | true |
512571d017bb0e8756dcded7384d85ea6a599456 | Java | gailo22/myproject | /src/main/java/myproject/clientserver/FileServer.java | UTF-8 | 2,100 | 2.921875 | 3 | [] | no_license | package myproject.clientserver;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.file.Files;
import... | true |
d1d3f66f245ef07ce2add114031ecd93a6add738 | Java | yue-wen/doc2graph | /couchbase-neo4j-connector/src/main/java/com/couchbase/client/neo4j/conf/Neo4jSyncConfManager.java | UTF-8 | 1,288 | 1.773438 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /**
* Copyright (c) 2017 LARUS Business Automation [http://www.larus-ba.it]
* <p>
* This file is part of the "LARUS Integration Framework for Neo4j".
* <p>
* The "LARUS Integration Framework for Neo4j" is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use this file except in comp... | true |
5be8c5a1c38762ee91187ffc33a3d9499d9a7811 | Java | vanillasky/dsma | /src/main/java/kr/co/datastreams/dsma/model/CharType.java | UTF-8 | 373 | 2.359375 | 2 | [] | no_license | package kr.co.datastreams.dsma.model;
/**
*
* User: shkim
* Date: 13. 7. 22
* Time: 오후 12:57
*
*/
public enum CharType {
SPACE(0),
HANGUL(1),
HANJA(2),
ALPHABET(3),
NUMBER(4),
SYMBOL(5),
COMBINED(6),
EMOTICON(7),
ETC(8),
FILTERED(100)
;
private int value;
priv... | true |
a23ad3f70fa953c7650f554a573e174f827b0eab | Java | yks095/SolvingProb | /src/chapter/ch1/Q27.java | UTF-8 | 942 | 3.28125 | 3 | [] | no_license | package chapter.ch1;
import java.util.Arrays;
import java.util.Random;
public class Q27 {
public static void main(String[] args) {
int[] N = new int[9];
int[] score = new int[9];
Random random = new Random();
for(int i = 0; i < N.length; i++) {
N[i] = random.nextIn... | true |
3c22007684843a9f9e5db8ef8a454eb045aad5f9 | Java | MRROOX/TheUltimateMicroServicesTemplate | /Stegeriluminacion/micro-auth/src/main/java/micro/auth/services/interfaces/ACrud.java | UTF-8 | 2,792 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package micro.auth.services.interfaces;
import java.io.Serializable;
import java.lang.reflect.ParameterizedType;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.transaction.Transactional;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;... | true |
cfcac93c501fc668cba12743efc02b6547cc1311 | Java | safayat/MyTemplate | /src/main/java/com/dtr/oas/config/WebAppConfig.java | UTF-8 | 1,942 | 1.96875 | 2 | [] | no_license | package com.dtr.oas.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageS... | true |
6849d58fc8da9786880757c8ee231a732a702b19 | Java | ntmanh2112/sem2-112011 | /Users/Nguyen Thanh Huy/Distributed Computing in Java/Assingment1/src/view/_14UpdatePharmacy.java | UTF-8 | 3,606 | 2.75 | 3 | [] | no_license | package view;
import java.awt.Container;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
public class _14UpdatePharmacy extends JFrame {
public JLabel lblName, lblCountry, lblManufacturer, lblFormula, lblUsing,... | true |
741c022fa94d225fb9eedff9ad8dcb1490b704c1 | Java | KashaRavi/leetcode | /hackerrank/src/main/java/twoRobots/solution.java | UTF-8 | 2,317 | 3.0625 | 3 | [] | no_license | package twoRobots;
import java.util.Scanner;
/**
* @author rkasha
*/
public class solution {
public static class Path{
int a;
int b;
Path(int a, int b)
{
this.a = a;
this.b = b;
}
}
public static void main(String[] args) {
... | true |
d528fa175ce5d6fb82f42147105b59c43faf0c43 | Java | iafboy/WeiXin | /src/com/popolongStudio/app/util/MessageConvertHandler.java | UTF-8 | 5,298 | 2.3125 | 2 | [] | no_license | package com.popolongStudio.app.util;
import java.lang.reflect.Field;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Iterator;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
import com.popolongStudio.app.common.Retur... | true |
75ff96c2b91fe13290ea14a32c71db778aaacc84 | Java | wpqepoep/Queenbee | /app/src/main/java/com/top/queenbee/qbdetail.java | UTF-8 | 7,839 | 2.109375 | 2 | [] | no_license | package com.top.queenbee;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Text... | true |
965139d5c0676a26d759cb055159f5bce60c39f4 | Java | micobery/Calendar4Test | /src/main/java/com/uniqmaster/calendar4test/dto/EmailNotifyEvent.java | UTF-8 | 530 | 2.015625 | 2 | [] | no_license | package com.uniqmaster.calendar4test.dto;
import com.uniqmaster.calendar4test.entity.Course;
import com.uniqmaster.calendar4test.entity.Event;
import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;
@Setter
@Getter
public class EmailNotifyEvent extends ApplicationEvent {
p... | true |
231dd8663af29bccea6543eb289c9e9ea03a30e8 | Java | walterll/Algorithm | /src/com/leetcode/Question4.java | UTF-8 | 2,222 | 3.734375 | 4 | [] | no_license | package com.leetcode;
import java.util.Arrays;
/******************************
* There are two sorted arrays nums1 and nums2 of size m and n respectively.
* Find the median of the two sorted arrays. The overall run time complexity
* should be O(log (m+n)).
*
* Example 1:
* nums1 = [1, 3]
* nums2 ... | true |
4a949d01802840e90b945080087550d7b088ec71 | Java | DOMINATORS2021/KidZoneB | /src/main/java/tn/esprit/kidzone/repository/ReclamationRepository.java | UTF-8 | 299 | 1.53125 | 2 | [] | no_license | package tn.esprit.kidzone.repository;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import tn.esprit.kidzone.entity.Reclamation;
@Repository
public interface ReclamationRepository extends CrudRepository<Reclamation, Integer> {
}
| true |
48175da2ea19c3619d39f063e62afec1741c691c | Java | rockdam/dogdog | /app/src/main/java/com/makeus/dogdog/src/HomeDogDog/MypageFragment/interfaces/MypageView.java | UTF-8 | 304 | 1.8125 | 2 | [] | no_license | package com.makeus.dogdog.src.HomeDogDog.MypageFragment.interfaces;
import com.makeus.dogdog.src.HomeDogDog.MypageFragment.models.MyPageRanking;
import com.makeus.dogdog.src.HomeDogDog.MypageFragment.models.MyPageResponse;
public interface MypageView {
void refresh(MyPageRanking myPageRanking);
}
| true |
3baf249978f747e3463cc812fa40d3a6d82e282b | Java | MatthieuDJ/api_training | /src/main/java/fr/esiea/ex4A/FakeTinder/MatchResponse.java | UTF-8 | 383 | 2.4375 | 2 | [] | no_license | package fr.esiea.ex4A.FakeTinder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class MatchResponse extends ArrayList<Match> {
public MatchResponse(List<Match> matches){
super();
this.addAll(matches);
}
public MatchResponse(Match... matches){
... | true |
35eb3b344dc9b31ad50e066e1e9546b5d5d63cbe | Java | LufanZhang/Leetcode | /src/google/IntegerToRoman.java | UTF-8 | 709 | 3.640625 | 4 | [] | no_license | package google;
public class IntegerToRoman {
public String intToRoman(int num) {
int[] values = {1,4,5,9,10,40,50,90,100,400,500,900,1000};
String[] romans = {"I","IV","V","IX","X","XL","L","XC","C","CD","D","CM","M"};
StringBuilder sb = new StringBuilder();
if(num <= 0){
... | true |
9e0ea71f5975932cd6c077341719229e49ff9b4d | Java | saphyron/randomstuff | /Java/Semester 1 usorteret/Lektion14/src/opgave1dobbelArray/Opgave1DobbelArray.java | UTF-8 | 2,072 | 3.609375 | 4 | [] | no_license | package opgave1dobbelArray;
public class Opgave1DobbelArray {
public static void main(String[] args) {
final int ROW = 8;
final int COL = 8;
int[][] values = new int[ROW][COL];
DobbelArray da = new DobbelArray();
//Udskriv values på tabel form
da.udskrivArray(value... | true |
e903b1e0ca96e0befd64e5740cf06ec83fcd0777 | Java | TeamBiscochito/proyectofinal | /app/src/main/java/teambiscochito/toptrumpsgame/model/room/dao/CardDao.java | UTF-8 | 2,152 | 2.453125 | 2 | [] | no_license | /*
* Copyright (c) 2021. Team Biscochito.
*
* Licensed under the GNU General Public License v3.0
*
* https://www.gnu.org/licenses/gpl-3.0.html
*
* Permissions of this strong copyleft license are conditioned on making available complete
* source code of licensed works and modifications, which include larger work... | true |
245e9c76f41f9f49d0d7530747698e84809a5738 | Java | gracet9182/Revamping-GreenLab | /app/src/main/java/com/example/green/RecylableItem.java | UTF-8 | 764 | 2.78125 | 3 | [] | no_license | package com.example.green;
public class RecylableItem {
private String name;
private String type;
private boolean recylable;
public RecylableItem(String name, String type, boolean recylable) {
this.name = name;
this.type = type;
this.recylable = recylable;
}
public Rec... | true |
fb6dbb6a3f3e4bf0f144c9b8b4c7ba429cefb2cf | Java | abhishek09091/competitive-programming | /Company Wise Practice/Goldman Sachs/ugly-numbers-not-optimized.java | UTF-8 | 1,047 | 3.8125 | 4 | [] | no_license | /*package whatever //do not write package name here */
/*********
https://www.geeksforgeeks.org/ugly-numbers/
*********/
import java.util.*;
import java.lang.*;
import java.io.*;
class GFG {
public static int maxDivide(Integer a,Integer b){
while(a%b == 0){
a /=b;
}
... | true |
5a057717946f8243efecaade307bc54e2e12f119 | Java | karl-liang/person | /cnicg-code-gui/src/main/java/com/sciov/cnicg/code/gui/view/CnicgProducer.java | UTF-8 | 20,312 | 2.046875 | 2 | [] | no_license | package com.sciov.cnicg.code.gui.view;
import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.GridLayout;
import javax.swing.JPanel;
import java.awt.GridBagLayout;
import javax.swing.JTree;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Toolkit;
import java.util.Date;
impo... | true |
6384a0bd38700cc85785af2b0f0cfd35d6b9cdf9 | Java | piraga/Datacopy | /Datacopy/src/com/datacopy/application/Props.java | UTF-8 | 839 | 2.1875 | 2 | [] | no_license | package com.datacopy.application;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class Props {
private static final String PropertiesPath = "/datacopy.properties";
public Properties getProperti... | true |
0ea215eb14b914351f19f01d7f2470f12c95abe8 | Java | Dynatrace-Reinhard-Pilz/Dynatrace-MoM | /dt-utils/src/main/java/com/dynatrace/utils/DomUtil.java | UTF-8 | 2,593 | 2.359375 | 2 | [] | no_license | package com.dynatrace.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
impo... | true |
dacbe19738de569d93d1c810a36c0842ec228811 | Java | doroha/Basic---Java-projects | /ProjectsManagment/src/Decorator/AdvancedDesignDecorator.java | UTF-8 | 278 | 3.046875 | 3 | [] | no_license | package Decorator;
public class AdvancedDesignDecorator implements Design{
private Design design;
public AdvancedDesignDecorator(Design design){
this.design = design;
}
public void displayDesign(){
design.displayDesign();
}
}
| true |
cd330015c5b6713545f84ba1f1036e0a8028ae95 | Java | mkaouer/MetaModelsRulesGenerator | /src/AccountDemo.java | UTF-8 | 1,749 | 3.671875 | 4 | [] | no_license | import java.text.*;
import java.util.Date;
public class AccountDemo {
class Account
{
private int id;
private double balance;
private double annualInterestRate;
private Date dateCreated;
Account()
{
id = 0 ;
balance = 0 ;
annualInterestRate = 0 ;
dateCreated= new Date(... | true |
44b63fa1ccb8f7b7fed6a9aa875f9e94831dcfbf | Java | aartisoft/SnacksReady | /app/src/main/java/com/w3engineers/core/util/helper/ViewUtils.java | UTF-8 | 24,506 | 1.734375 | 2 | [] | no_license | /*
* Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
* 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
*
* https://mindorks.com/license/apache-v2
*
* Unless required by applicable... | true |
fbd8c94b2b4e81f0d3390c825a87e0e24a2f9024 | Java | jabbott13153/CS372 | /HW2 update/src/myJButton.java | UTF-8 | 2,151 | 2.96875 | 3 | [] | no_license |
import java.util.ArrayList;
import java.awt.Image;
import javax.swing.Icon;
import javax.swing.JButton;
public class myJButton extends JButton {
Image icon;
Building myBuilding;
Police myPolice;
Teacher myTeacher;
Kid myKid;
/**
* Setters for all variables
* @param i
... | true |
982f2a95b56e311d241beb4504b26c34ad038bc9 | Java | avrisilman/TN | /app/src/main/java/un/app1/appDeps/AppModule.java | UTF-8 | 2,861 | 1.992188 | 2 | [] | no_license | package un.app1.appDeps;
import android.content.Context;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
import un.app1.appConfig.AppData;
import un.app1.appNetwork.internet.ConnectivityReceiver;
import un.app1.pageModule.appHome.HomePresenter;
import un.app1.pageModule.pageForgot.Forgot... | true |
cf15d5d0e320ed2212c57952c8103e89fefc5eed | Java | onrtekinn/my_spring_workshop | /spring-datajpa-postgres/src/main/java/com/otekin/entitiy/Adress.java | UTF-8 | 844 | 2.265625 | 2 | [] | no_license | package com.otekin.entitiy;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name="Person_Adresses")
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode(of = {"id"})
@ToString
public class Adress implements Serializable {
@Id
... | true |
f7b4ea04c8c16d499a4e227d12f61cb87e1ff1f8 | Java | lilong9898/Test | /Algorithm/src/main/java/com/lilong/algorithm/sort/HeapSort.java | UTF-8 | 282 | 2.453125 | 2 | [] | no_license | package com.lilong.algorithm.sort;
/**
* 堆排序
*/
public class HeapSort extends BaseSort {
public static void main(String[] args) {
Integer numbers[] = new Integer[]{1, 2, 3, 4, 5, null, 6, 7, 8, 9, 10};
//TODO
displayAsTree(numbers, 2);
}
}
| true |
af522a32bc9f8d4e37f3362e2b187594f7542fab | Java | willowtreeapps/Hyperion-Android | /hyperion-attr/src/main/java/com/willowtreeapps/hyperion/attr/collectors/PorterDuffModeValue.java | UTF-8 | 580 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.willowtreeapps.hyperion.attr.collectors;
import android.graphics.PorterDuff;
import androidx.annotation.Nullable;
import com.willowtreeapps.hyperion.attr.AttributeValue;
public class PorterDuffModeValue implements AttributeValue {
@Nullable
private final PorterDuff.Mode mode;
public PorterD... | true |
5fb605982a7122282bc8e5e842370e43442807f7 | Java | gch12345/Sword-finger-offer | /java/src/operatingSystem/Lock/Banker.java | UTF-8 | 2,420 | 3.015625 | 3 | [] | no_license | package operatingSystem.Lock;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Banker {
private List<Integer> Request;
private Integer index;
public Banker(){
Request = new ArrayList<>();
}
public Integer getIndex() {
return index;
}
... | true |
326b25f3359be7bfa4f0350a0d71cb3c5ddb1d4d | Java | PanShengTao/ywgk | /ca/src/main/java/cc/lecent/ywgk/ca/model/LoginModel.java | UTF-8 | 4,255 | 2.265625 | 2 | [] | no_license | package cc.lecent.ywgk.ca.model;
import android.databinding.ObservableBoolean;
import android.databinding.ObservableField;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.PopupWindow;
import android.widget.TextView;
imp... | true |
31077b80e31bc17614693e214ad5413235dd3c92 | Java | SKBost/Degree-Planner | /app/src/main/java/com/example/degreeplanner/ui/home/SharedHomeViewModel.java | UTF-8 | 6,586 | 2.75 | 3 | [] | no_license | package com.example.degreeplanner.ui.home;
import androidx.lifecycle.ViewModel;
import com.example.degreeplanner.classes.Checklist;
import com.example.degreeplanner.classes.Course;
import com.example.degreeplanner.classes.Quarter;
import com.example.degreeplanner.classes.RequirementCategory;
import com.example.degre... | true |
efca12c527d6fc2642fe25bc9368e09d33cfae39 | Java | tymoorej/Chess | /src/Exceptions/TooManyPlayersWithTheSameColourException.java | UTF-8 | 104 | 1.703125 | 2 | [] | no_license | package Exceptions;
public class TooManyPlayersWithTheSameColourException extends RuntimeException {
}
| true |
5455acd3028eb10dde656e94c63f8453ad6a30f4 | Java | MaxRomaschenko/JavaLessons | /src/main/java/behavioralPatterns/visitor/test/ProjectElement.java | UTF-8 | 120 | 1.851563 | 2 | [] | no_license | package behavioralPatterns.visitor.test;
public interface ProjectElement {
void beWritten(Developer developer);
}
| true |
536014ca93d9936aa843f0b2d1635f917a578f03 | Java | alinke/PIXEL | /pixelcade-pipeserver/src/main/java/org/onebeartoe/pipe/server/pixelcade/PixelcadePipeServer.java | UTF-8 | 4,532 | 2.890625 | 3 | [] | no_license |
package org.onebeartoe.pipe.server.pixelcade;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
public class PixelcadePipeServer
{
static final int ERROR_PIPE_CONNECTED = 535;
static final int ERROR_BROKEN_PIPE = 109... | true |
8149024e935070c3651e69418217c51da1f76da1 | Java | blackducksoftware/bdns | /src/main/java/com/blackducksoftware/bdns/VersionRange.java | UTF-8 | 1,120 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Synopsys, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | true |
3cb212dd0d1a15cf016248137c42077d31cac2e5 | Java | taoyufan/automanx-api | /src/test/java/com/taobao/itest/junit/CalculatorTest.java | UTF-8 | 1,699 | 3.359375 | 3 | [] | no_license | package com.taobao.itest.junit;
import junit.framework.Assert;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
public class CalculatorTest {
long time;
static int index = 0;
Calculator calculator;
@BeforeClass
pu... | true |
3fb2d1295ef52032fe6c6683224246e82bd62771 | Java | solorzanojf/Reto2Ciclo2 | /src/main/java/reto2ciclo2/logica/MedicamentosNatural.java | UTF-8 | 1,027 | 2.9375 | 3 | [] | no_license | package reto2ciclo2.logica;
public class MedicamentosNatural extends Medicamentos{
private final static int NUMERO_UNIDADES= 8;
private int numero_unidades;
public MedicamentosNatural(String marca, String tipo, double precioBase, int numero_unidades){
super(marca, tipo, precioBase);
t... | true |
ea21ceed1bad95084b815705ce0ddec70e94a19a | Java | espre05/starter-sboot-camel | /src/main/java/sb/app/camel/process/LoggingProcessor.java | UTF-8 | 302 | 2.09375 | 2 | [] | no_license | package sb.app.camel.process;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
public class LoggingProcessor implements Processor{
@Override
public void process(Exchange ex) throws Exception {
System.out.println("Now processing : " + ex.getIn().getBody(String.class));
}
}
| true |
e427386c1e500ba96470332578726918ae5d82c9 | Java | 154336119/obd-Android | /app/src/main/java/com/slb/ttdandroidframework/ui/contract/HistoryContract.java | UTF-8 | 750 | 1.914063 | 2 | [] | no_license | package com.slb.ttdandroidframework.ui.contract;
import com.slb.frame.ui.presenter.IBaseFragmentPresenter;
import com.slb.frame.ui.view.IBaseLoadingDialogView;
import com.slb.ttdandroidframework.http.bean.HistoryErrorCodeEntity;
import com.slb.ttdandroidframework.http.bean.ObdEntity;
import com.slb.ttdandroidframework... | true |
778b67a8941a3a70a52b8456a697f9d969c216af | Java | lgf-Allen/spring-boot-demo | /spring-boot-security/src/main/java/com/allen/spring/boot/config/filter/CustomerFilter.java | UTF-8 | 1,676 | 2.453125 | 2 | [] | no_license | /**
*
*/
package com.allen.spring.boot.config.filter;
import java.io.IOException;
import java.security.Principal;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.s... | true |
bccda9dacf080739257e5028e96515fe9ee1099a | Java | cdfq152313/AndroidBackup | /MyBlueTooth/app/src/main/java/com/example/denny/mybluetooth/ClientActivity.java | UTF-8 | 5,439 | 2.125 | 2 | [] | no_license | package com.example.denny.mybluetooth;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.Handler;
... | true |
3e0b727da3d6083892ac1efa77ec3bdf34e57518 | Java | hamdan-codes/java-programs-till-now | /JAVA @ Hamdan Class 12/Mixer.java | UTF-8 | 820 | 3.484375 | 3 | [] | no_license | import java.io.*;
class Mixer
{
String x="",y="";
void input()throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter First");
x=br.readLine();
System.out.println("Enter Second");
y=br.readLine()... | true |
7cf0e59de0ed119958f4aa586e9f774652ad035e | Java | DoubleDa/AndroidCodeFragment | /AndroidCodeFragment/app/src/main/java/com/dyx/acf/receiver/MsgReceiver.java | UTF-8 | 1,412 | 2.1875 | 2 | [] | no_license | package com.dyx.acf.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.telephony.SmsMessage;
import android.widget.Toast;
/**
* Created by dayongxin on 2016/8/11.
*/
public class MsgReceiver extends BroadcastRec... | true |
285910ecdb5ace798546cd6fb0482dbd13c495c4 | Java | huangchenyao/Design-Pattern-Learn | /src/main/java/hcy/command/TVController.java | UTF-8 | 273 | 2.734375 | 3 | [] | no_license | package hcy.command;
public class TVController {
private TV tv;
public TVController(TV tv) {
this.tv = tv;
}
public void on() {
new TVOnCommand(tv).execute();
}
public void off() {
new TVOffCommand(tv).execute();
}
}
| true |
5bb46bad2c4b770e8695811681e2b5b9c740c885 | Java | 13141498695/jzkj-master | /jzkj-biz-admin/src/main/java/com/jzkj/modules/product/controller/ModelController.java | UTF-8 | 2,993 | 2.109375 | 2 | [] | no_license | package com.jzkj.modules.product.controller;
import com.jzkj.common.annotation.SysLog;
import com.jzkj.common.utils.PageUtils;
import com.jzkj.common.utils.ReturnResult;
import com.jzkj.miservice.entity.product.ModelEntity;
import com.jzkj.modules.product.service.ModelService;
import org.apache.shiro.authz.annotation.... | true |
bb48896176d0d4c8ef2b64603f2765c2a4394231 | Java | f4r0fA/AgendaBeautifulProfisional | /app/src/main/java/com/digtech/agendaprofisional/SalonListActivity.java | UTF-8 | 5,011 | 1.929688 | 2 | [] | no_license | package com.digtech.agendaprofisional;
import android.app.AlertDialog;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;... | true |
91a981f71119b5c39660916bc4bf48ff9891ee1b | Java | vidushi1991/mypoc | /Bookfariautomation/src/test/java/PDFEmail/BaseClass.java | UTF-8 | 1,258 | 2.34375 | 2 | [] | no_license | /**
*
*/
package PDFEmail;
import java.io.File;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOption... | true |
4cb6f2a549eb389a8e0dbd31254df88914fe63b4 | Java | haoy1220/Coding-Interviews | /src/main/java/面试题35_复杂链表的复制/Solution.java | UTF-8 | 1,971 | 3.453125 | 3 | [] | no_license | package 面试题35_复杂链表的复制;
import 数据结构.RandomListNode;
/**
* 题目描述
* 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点),返回结果为复制后复杂链表的head。
* (注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空)
*/
public class Solution {
public RandomListNode Clone(RandomListNode pHead) {
CloneNodes(pHead);
ConnectRandomNode(pHe... | true |
efc656a0856a7252ae715c5cc748f730201bee35 | Java | relish-wang/WhatEat | /app/src/main/java/com/xhxkj/zhcs/temp/UserInfoBeanDe.java | UTF-8 | 626 | 1.914063 | 2 | [] | no_license | package com.xhxkj.zhcs.temp;
/**
* @author 王鑫
* Created by 王鑫 on 2015/10/5.
* @deprecated
*/
public class UserInfoBeanDe {
private String username;
private String pwd;
private String tel;
public String getUsername() {
return username;
}
public void setUsername(String usern... | true |
7f26534a49f50db4d54f3208fc0a5db861a956d3 | Java | vcshukla73/SeleniumSecession | /DropDownConcepts.java | UTF-8 | 2,004 | 2.453125 | 2 | [] | no_license | package seleniumPractice;
import java.util.ArrayList;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
import io.github.bonigarcia.wdm.WebDri... | true |
350d57f0b994cd7366e9d260569d42d37b05775f | Java | akihiro117/DesignPattern | /src/factorymethod/concrete/Study.java | UTF-8 | 213 | 2.375 | 2 | [] | no_license | package factorymethod.concrete;
import factorymethod.template.Product;
public class Study extends Product {
Study() {
}
public void start() {
System.out.println("勉強を開始します。");
}
} | true |
89476e6b35e8e054badf291826d66cf725ddbc3a | Java | JeffWoo2019/aliyun-openapi-java-sdk | /aliyun-java-sdk-ecsops/src/main/java/com/aliyuncs/ecsops/model/v20160401/OpsModifyDiskAttributeRequest.java | UTF-8 | 3,436 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /*
* 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 to in writing, software
* distributed u... | true |
0f6938a881ce9bbdd5da6c624905497beab2a5d5 | Java | serkan1496/rental-portal | /src/main/java/com/kafein/rental/controller/CompanyController.java | UTF-8 | 2,696 | 2.140625 | 2 | [] | no_license | package com.kafein.rental.controller;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
imp... | true |
014be92d2af5368c17e42b4f9d5c42582711a1fc | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/mportuesisf_ScreenInfo/app/src/main/java/com/jotabout/screeninfo/ScreenInfo.java | UTF-8 | 8,633 | 1.734375 | 2 | [] | no_license | // isComment
package com.jotabout.screeninfo;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
i... | true |
35c40f7a19a264ed54116ca778a556158c07a979 | Java | timipaul/shijin3_android-dev | /app/src/main/java/com/shijinsz/shijin/ui/store/GoodsSpecificationActivity.java | UTF-8 | 10,759 | 1.632813 | 2 | [] | no_license | package com.shijinsz.shijin.ui.store;
import android.app.Activity;
import android.app.ActivityOptions;
import android.app.admin.SystemUpdatePolicy;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bun... | true |
f3d19f71e70ef747cb36af53c1ac1e9eb1918739 | Java | kwsantiago/Hackerrank-Solutions | /Data-Structures/Linked-Lists/insertPositionSinglyLinkedList.java | UTF-8 | 671 | 3.078125 | 3 | [] | no_license | static SinglyLinkedListNode insertNodeAtPosition(SinglyLinkedListNode head, int data,int position){
SinglyLinkedListNode newNode = new SinglyLinkedListNode(data);
int i = 0;
if(position == 0){
newNode.next = head;
return newNode;
}
else{
Singly... | true |
948fac8c937574c8c6ecaee2f6b4808accce4f4c | Java | fanshen2010/P2P_lending | /p2p_all/p2p_corebiz/target/classes/cn/com/p2p/customer/service/dto/CustomerDto.java | UTF-8 | 1,281 | 2.203125 | 2 | [] | no_license | package cn.com.p2p.customer.service.dto;
import cn.com.p2p.domain.customer.entity.CustEnterpriseInfo;
import cn.com.p2p.domain.customer.entity.CustPersonalInfo;
import cn.com.p2p.loan.service.dto.LoanEnterpriseInfoDto;
import cn.com.p2p.loan.service.dto.LoanPersonalBasicDto;
/**
* 融资客户个人/企业信息数据传输对象
* 主要用于后台个人/企业客户管... | true |
869aa938d1f1be58a221ddc4452000b353b62e30 | Java | ozkandemir/XText | /com.ykb.umap.dsl.ui/src-gen/com/ykb/umap/dsl/ui/contentassist/AbstractProductProposalProvider.java | UTF-8 | 9,084 | 1.84375 | 2 | [] | no_license | /*
* generated by Xtext
*/
package com.ykb.umap.dsl.ui.contentassist;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.xtext.*;
import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor;
import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext;
/**
* Represents a generated, de... | true |
a19552bc3b51994eba5be4b2f7136a81cbccdbb3 | Java | adilson-utiama/casadocodigo-javaee7 | /src/main/java/br/com/casadocodigo/conf/ConfigureJMSDestination.java | UTF-8 | 287 | 1.671875 | 2 | [] | no_license | package br.com.casadocodigo.conf;
import javax.ejb.Singleton;
import javax.jms.JMSDestinationDefinition;
@JMSDestinationDefinition(
name="java:/jms/topics/CarrinhoComprasTopico",
interfaceName = "javax.jms.Topic"
)
@Singleton
public class ConfigureJMSDestination {
}
| true |
d58698bb6d19536b6880ad3cf640b8d8214d7f84 | Java | aronbsz/automatalearning | /automatalearning/src/main/java/hu/bme/mit/automatalearning/algorithm/dhc/DirectHypothesisConstructionMealy.java | UTF-8 | 8,346 | 2.25 | 2 | [] | no_license | package hu.bme.mit.automatalearning.algorithm.dhc;
import java.io.Serializable;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import ... | true |
cb64f44b6d69208fb7af62e90efdc268a1d86249 | Java | asynkronos/android-sensor-display | /src/com/asynkronos/android/sensordisplay/RotationVectorData.java | UTF-8 | 779 | 1.898438 | 2 | [] | no_license | package com.asynkronos.android.sensordisplay;
import com.asynkronos.android.sensordisplay.R;
import android.os.Bundle;
/**
*
* @author Michael Bruno
*
*/
public class RotationVectorData extends SensorDashActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(save... | true |
48e2ec1c0566f7231a8786c5b49f21bdee28cb7a | Java | sqxz/renren-fast | /src/main/java/io/renren/modules/test/utils/WriteJsonFileThread.java | UTF-8 | 598 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.test.utils;
/**
* @author CT
* @date 2019/6/2914:05
* @describe WriteFileThread用于
*/
public class WriteJsonFileThread extends Thread{
String toWriteString = "";//定义线程内变量
String filePath = "";
public WriteJsonFileThread(String stringJson, String filePath){
//定义带参数的构造函... | true |
81c829d1723fac8e38aad41c816325f6a9709ff3 | Java | yashjhamnani7/Assignments1 | /CoreJavaProj2/src/com/strinbuffer/Banner.java | UTF-8 | 404 | 3.046875 | 3 | [] | no_license | package com.strinbuffer;
class Banner
{
public static void main(String args[]) throws Exception
{
StringBuilder s1=new StringBuilder("Welcome to Java");
int len=s1.length();
char s;
for(int i=0;i<len;i++)
{
s=s1.charAt(s1.length()-1);
s1 = new StringBuilder(s+s1.substring(0,s1.lengt... | true |
e4ca0b9202ef6151f49c883de5b81dd54d7c3bde | Java | jgofman/Interpreter-for-a-Toy-Programming-Language | /Interpreter.java | UTF-8 | 4,326 | 3.96875 | 4 | [] | no_license | // Jacob Gofman
// Professor Ernest Davis
// Data Structures, Honors Section
// Programming Assignment 4
import java.util.Scanner;
public class Interpreter {
static boolean defining = false;
public static void main(String[] args)
{
boolean notDone = true;
String funcName = "";
Scanner value = new Scanner... | true |
12ada74faa6da83bccee326cd9e08c426a5ceb78 | Java | weichun97/screen | /src/main/resources/template/SwaggerConfig.java | UTF-8 | 2,165 | 2.03125 | 2 | [] | no_license | package com.github.weichun97.common.swagger.config;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import spr... | true |
f09492585cc0df380e737a3adc90b19e77b686ba | Java | jambestwick/HackWechat | /app/src/main/java/com/tencent/mm/ui/h$6.java | UTF-8 | 555 | 1.523438 | 2 | [] | no_license | package com.tencent.mm.ui;
import android.content.ComponentName;
import android.content.Intent;
class h$6 implements Runnable {
final /* synthetic */ h xFs;
h$6(h hVar) {
this.xFs = hVar;
}
public final void run() {
Intent intent = new Intent();
intent.setComponent(new Compon... | true |
c84ccb51b7791b63d9464696594f1c0d9909e7f9 | Java | arthurxiaohz/ic-card | /j-hi-20110703/src/org/hi/base/menu/action/MenuLinkPageInfo.java | UTF-8 | 3,709 | 1.851563 | 2 | [] | no_license | package org.hi.base.menu.action;
import java.sql.Timestamp;
import java.util.Date;
import org.hi.framework.web.PageInfoView;
import org.hi.framework.security.action.AuthorityPageInfo;
import org.hi.base.menu.action.MenuPageInfo;
import org.hi.base.organization.action.HiUserPageInfo;
public class MenuLinkPa... | true |
f91df0dd86a223ff7883b8e1c54bf9ed15e3a384 | Java | IDragonfire/downlords-faf-client | /src/main/java/com/faforever/client/map/MapVaultController.java | UTF-8 | 8,131 | 1.757813 | 2 | [
"MIT"
] | permissive | package com.faforever.client.map;
import com.faforever.client.fx.JavaFxUtil;
import com.faforever.client.fx.WindowController;
import com.faforever.client.i18n.I18n;
import com.faforever.client.map.event.MapUploadedEvent;
import com.faforever.client.preferences.PreferencesService;
import com.google.common.eventbus.Even... | true |
67536c1c24f2c73561ce57d93d59aa632d7f6a3e | Java | togetherworks/training | /src/com/togetherworks/designpattern/decorator/StarbuzzCofe.java | UTF-8 | 656 | 3.140625 | 3 | [] | no_license | package com.togetherworks.designpattern.decorator;
public class StarbuzzCofe {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Beverage beverage=new Espresso();
System.out.println(beverage.getDescrpition()+" $:"+beverage.cost());
Beverage bev... | true |
1b0acf95e9183c1ac453bdee9bcfee263d80e091 | Java | muhammedsedef/Kodlama.io_Java-React_BootCamp | /registerAndLoginDemo/src/dataAccess/abstracts/UserDao.java | UTF-8 | 281 | 2.234375 | 2 | [] | no_license | package dataAccess.abstracts;
import java.util.List;
import entities.concretes.User;
public interface UserDao {
void add(User user);
User getUserById(int id);
User getUserByEmail(String email);
void update(User user);
void delete(User user);
List <User> getAllUser();
}
| true |
bbfd276ec88ac2eed177e56eebc126e94d0e0755 | Java | R0DR1G0VEL0SA/Automatizacion3 | /src/main/java/com/qvision/pagefactory/LoginPage.java | UTF-8 | 752 | 2.515625 | 3 | [] | no_license | package com.qvision.pagefactory;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class LoginPage {
@FindBy(name = "user")
WebElement txtUsuario;
@FindBy(name = "password")
WebElement txtPasword;
@FindBy(xpath = "//input[@class='button']")
WebElement btnLogin;
public... | true |
56bb436a519f7db17b65c07f8276a87b46715ec9 | Java | omererdogmus/Selenium_Methods | /src/main/java/Methods/Sel_013_XPath.java | UTF-8 | 1,519 | 2.703125 | 3 | [] | no_license | package Methods;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class Sel_013_XPath {
public static void main(String[] args) throws InterruptedExcept... | true |
ac46520a3d58135c1a7373840477b25417fd5e84 | Java | nkorzh/JavaStudy | /CSC_Java_Intro_Stepik/6/4_mail_task/src/MailMessage.java | UTF-8 | 225 | 2.3125 | 2 | [] | no_license | import java.util.function.*;
// TODO: make static and copy
public class MailMessage extends AbstractSendable<String> {
public MailMessage(String from, String to, String content) {
super(from, to, content);
}
} | true |
1f45b4f6cf37ae79a7854a47dfca6479c799417b | Java | iain-davis/Mumue | /src/main/java/org/mumue/mumue/connection/states/PlayerMenuHandler.java | UTF-8 | 2,597 | 2.453125 | 2 | [] | no_license | package org.mumue.mumue.connection.states;
import javax.inject.Inject;
import com.google.inject.Singleton;
import org.mumue.mumue.components.character.CharacterDao;
import org.mumue.mumue.configuration.ApplicationConfiguration;
import org.mumue.mumue.connection.Connection;
import org.mumue.mumue.text.TextMaker;
impor... | true |
482971388440356d53e7b265b0dc805fd56ceda5 | Java | Emmagitlab/game | /game/src/game/RepeatTaskWithCooldown.java | UTF-8 | 1,540 | 3.34375 | 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 game;
import java.util.*;
/**
*
* @author T440
*/
public class RepeatTaskWithCooldown {
public String repeatTaskWithCool... | true |
904f3f411f059371d4a9856a198df27dcc0f1e7c | Java | nicekuo/nice_library | /src/main/java/nice/com/nice_library/bean/VersionListBean.java | UTF-8 | 1,373 | 2.140625 | 2 | [] | no_license | package nice.com.nice_library.bean;
public class VersionListBean extends BaseBean{
private static final long serialVersionUID = 7100465559042745268L;
private VersionBean data;
private int version=1;//版本 相当于是version_code
private String versionName=""; //版本名称 相当于是version_name
private String url="";//更新地址
... | true |
8d586163c69b47d307a4a658a8f0adb004ce1b34 | Java | lifan120/springboot-freemarker | /src/test/java/com/lf/freemarker/DemoApplicationTests.java | UTF-8 | 2,166 | 2.453125 | 2 | [] | no_license | package com.lf.freemarker;
import com.lf.freemarker.bean.TableInfo;
import com.lf.freemarker.dao.TableDao;
import freemarker.template.Configuration;
import freemarker.template.Template;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.... | true |
bc5e334c1410e8d07576fc8168ab23f5921d63b8 | Java | cjchao0/pinyougou | /pinyougou/pinyougou_sellergoods/pinyougou_sellergoods_service/src/main/java/com/chao/sellergoods/service/impl/SellerServiceImpl.java | UTF-8 | 1,634 | 2.078125 | 2 | [] | no_license | package com.chao.sellergoods.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.chao.mapper.SellerMapper;
import com.chao.pojo.TbSeller;
import com.chao.sellergoods.service.SellerService;
import com.chao.service.impl.BaseServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.... | true |
982e0619118c640d2672b788bf19ae85769e37e9 | Java | PrabhuBala678/JLProject | /Johnlewis-Selenium-Cucumber-master/src/main/java/pages/ContactusPage.java | UTF-8 | 978 | 1.882813 | 2 | [
"MIT"
] | permissive | package pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Select;
public class ContactusPage extends BasePage{
@FindBy(how=How.CSS, using=".selecto... | true |
2de2933d7d9c37a572655ca4371ec4fa6277158c | Java | OmarGarza1/Generation_Bootcamp | /CRUD_MVC/src/com/crud/model/Producto.java | UTF-8 | 829 | 2.21875 | 2 | [] | no_license | package com.crud.model;
public class Producto {
private String idProducto;
private String nombreProducto;
private double precioProducto;
private int existencias;
public double getPrecioProducto() {
return precioProducto;
}
public void setPrecioProducto(double precioProducto) {
this.precioPr... | true |
b5530072854f64a4d7e34c785b8112b8ba65c1b8 | Java | dam240/androidjava | /goods/src/com/cd/use/action/admin_book.java | UTF-8 | 5,615 | 1.71875 | 2 | [] | no_license | package com.cd.use.action;
import java.util.List;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component... | true |