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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ce0b4d1239e9a68e21a91e2f3a96dd6a146db39b | Java | wkqlovesclience/singleweb | /src/main/java/com/gome/stage/entity/KeyWord.java | UTF-8 | 2,098 | 2.109375 | 2 | [] | no_license | package com.gome.stage.entity;
import java.util.Date;
public class KeyWord {
private Integer id;
private String types;
private String names;
private String url;
private Date createTime;
private Date updateTime;
private String creator;
private String modifier;
private String... | true |
e83ce1273293b637363d75dab0c9a462af6bf80e | Java | clueless92/JavaEEFundamentals | /TestEclipseEE/TestEclipseEEWeb/src/bg/tilchev/web/beans/LoginBean.java | UTF-8 | 3,303 | 2.328125 | 2 | [] | no_license | package bg.tilchev.web.beans;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
i... | true |
358c361592b3ffa54a2d34192f09478574c67726 | Java | cmu-rl/malmo | /Minecraft/src/main/java/com/microsoft/Malmo/MissionHandlers/ObservationFromEquippedItemImplementation.java | UTF-8 | 2,668 | 2.390625 | 2 | [
"MIT",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"BSD-3-Clause"
] | permissive | package com.microsoft.Malmo.MissionHandlers;
import io.netty.buffer.ByteBuf;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage... | true |
6f3b878914562e9f90d2bedd01f8708874beb9b3 | Java | UbermenschDeveloper/Design-Patterns | /Observer/src/main/java/observer/subsribers/imp/ViberSubscriber.java | UTF-8 | 241 | 2.296875 | 2 | [] | no_license | package observer.subsribers.imp;
import observer.subsribers.Subsriber;
public class ViberSubscriber implements Subsriber {
public void update(String message) {
System.out.println("New Viber message '" + message + "'");
}
}
| true |
053de838cf59c1a9124e6551c36cf4b0f188cfce | Java | liujinguo1994/xdl-jjg | /jjg-member/src/main/java/com/xdl/jjg/web/service/Impl/EsSearchKeyWordServiceImpl.java | UTF-8 | 7,341 | 2.03125 | 2 | [] | no_license | package com.xdl.jjg.web.service.Impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjg.member.model.domain.EsSearchKeyWordDO;
import com.jjg.member.model.dto.EsSearchKeyWordDTO;
import com.xdl.jjg.constant.Membe... | true |
903c5049b837dce35868a47b44f0678252533de2 | Java | ChijieMa/mgame | /mfront/src/main/java/onight/mgame/autogens/IF_查询邮件模版内容.java | UTF-8 | 1,186 | 1.734375 | 2 | [] | no_license | package onight.mgame.autogens;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.List;
import java.math.BigDecimal;
import onight.mgame.utils.PBFields;
import lombok.NoArgsConstructor;
// 查询邮件模版内容,公共,EmailValidateCodeController,POST,JSON,/ife/emailValidateCode/queryEmailContent.html
@onight.mgame... | true |
e096d20275c6ef82bfbab2b09447893fe8d1d82b | Java | savra/JavaRushTasks | /1.JavaSyntax/src/com/javarush/task/task08/task0818/Solution.java | UTF-8 | 1,160 | 3.0625 | 3 | [] | no_license | package com.javarush.task.task08.task0818;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
/*
Только для богачей
*/
public class Solution {
public static Map<String, Integer> createMap() {
Map<String, Integer> map = new HashMap<>();
map.put("Трефилкин", 544);
m... | true |
a96ae9c3e3b960ddd6996ed3332a6753ff0aeda2 | Java | CloudSlang/score | /worker/worker-manager/score-worker-manager-api/src/main/java/io/cloudslang/worker/management/services/SynchronizationManager.java | UTF-8 | 1,251 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.P.)
*
* 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
*
* Unl... | true |
cccdf8d285fe99db2aca44cfe54919972a51c45b | Java | MIAeh/compiling-mate-server | /core/src/main/java/ecnu/compiling/compilingmate/lex/entity/token/Token.java | UTF-8 | 1,732 | 3.25 | 3 | [
"MIT"
] | permissive | package ecnu.compiling.compilingmate.lex.entity.token;
public class Token implements Cloneable{
private String name;
private String content;
private TokenKind tokenKind;
public Token(String content) {
this.content = content;
this.tokenKind = TokenKind.UNKNOWN;
}
public Toke... | true |
91f0ea9f90d6cdbe77e6a7e907c1c75b08d98bf7 | Java | hieutruong249/MiniProject-Calculator | /src/com/pojo/utilities/volume/CbMeter.java | UTF-8 | 419 | 2.859375 | 3 | [] | no_license | package com.pojo.utilities.volume;
public class CbMeter extends Volume {
public CbMeter() {
this.name = "cubic meter";
this.sign = "m3";
}
@Override
public double convertM3() {
return getValue();
}
@Override
public double convertCm3() {
return getValue()*10... | true |
58d29629fdf74aa023c14ab6882798daf15256e2 | Java | nheffelman/Pocky | /pineapple/src/pineapple/main/PineappleActivity.java | UTF-8 | 1,431 | 2.25 | 2 | [] | no_license | package pineapple.main;
import pineapple.libs.PineappleLib;
import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
public abstract class PineappleActivity extends Activity {
static {
System.loadLibrary("pineapple")... | true |
ea34bef3893071f4c5b8ac91870bbd1a7e5751e4 | Java | lzj1995822/GuSuCommunityApi | /leasing-identity-parent/leasing-identity-service/src/main/java/com/cloudkeeper/leasing/identity/repository/OrganizationRoleRepository.java | UTF-8 | 832 | 1.960938 | 2 | [] | no_license | package com.cloudkeeper.leasing.identity.repository;
import com.cloudkeeper.leasing.identity.domain.OrganizationRole;
import com.cloudkeeper.leasing.base.repository.BaseRepository;
import org.springframework.stereotype.Repository;
import javax.annotation.Nonnull;
import java.util.List;
/**
* 组织角色 repository
* @aut... | true |
d7fae7e8a232abb7e09b95a86ad9eb866e4d3066 | Java | Disseny-Software-2020-2021/practica3-b2 | /src/view/FormReproduccio.java | UTF-8 | 4,282 | 3 | 3 | [
"Apache-2.0"
] | permissive | package view;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
/**
* Finestra amb la barra de reproducció d'un episodi. Aquesta classe hereta de JDialog
*/
class FormReproduccio extends JDialog {
private JPanel j... | true |
4d090920d3a032ba1d1c630561fb612ac703f54f | Java | VTeixeiras/finance-control | /src/conexao/Conexao.java | UTF-8 | 2,042 | 2.953125 | 3 | [] | no_license | package conexao;
import control.Alerta;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import javax.swing.JOptionPane;
public class Conexao {
//Atributos da Classe
private static String url = "jdbc:mysql://localhost:3306/financecontrol";
private s... | true |
a48d1d6642f5d725edeb16dc7018f646a3339079 | Java | sqissuper/Practice_6.1 | /TextDemo6.java | UTF-8 | 2,558 | 3.109375 | 3 | [] | no_license | package text;
/**
* ClassName:TextDemo6
* Package:text
* Description:
*
* @Author:HP
* @date:2021/6/14 11:27
*/
public class TextDemo6 {
//kmp算法
// public static int kmp (String S, String T) {
// if(S == null || T == null) return 0;
// int n = S.length();
// int m = T.... | true |
5ac88b4031d1884055f92ec707863357fe340424 | Java | krmunna01234/CoreJavaPrac | /CoreJava/src/com/mk/JavaCompRef/LambdaExpressions15/ConstructorRefDemo16.java | UTF-8 | 907 | 4.375 | 4 | [] | no_license | package com.mk.JavaCompRef.LambdaExpressions15;
//listing 16
//Demonstrate a constructor reference with a generic class.
//MyFunc2 is now a generic functional interface.
interface MyFunc2<T> {
MyClass2<T> func(T n);
}
class MyClass2<T> {
private T val;
// A constructor that takes an argument.
My... | true |
5b7476bd451aa7145dc177f2a534a4cdcfa8e0c6 | Java | amsilva/acm_imcsystem | /Aluno.java | UTF-8 | 431 | 2.625 | 3 | [] | no_license | import java.util.ArrayList;
class Aluno {
private String nome;
//private Avaliacao avaliacao;
private ArrayList<Avaliacao> avaliacoes;
//construtor
public Aluno(String n) {
nome = n;
}
public String getNome() {
return this.nome;
}
public ArrayList<Avaliacao> getAvaliacoes() {
retu... | true |
9ce91dd49e2b5d563fe9576996324a308e917fc1 | Java | rsevil/api | /src/negocio/ReclamoZona.java | UTF-8 | 1,383 | 2.328125 | 2 | [] | no_license | package negocio;
import java.sql.Date;
import java.util.Calendar;
import enums.EstadosReclamo;
import persistencia.ReclamoZonaMapper;
import vista.ReclamoZonaView;
public class ReclamoZona extends Reclamo {
private String zonaAfectada;
private ReclamoZona(int nroReclamo, Date fecha, Date fechaCierre, String desc... | true |
55112e6a9d9cf5269aa2325aaaaca6a61b8f190a | Java | kseidl9/ExtraCreditWoodlandGame | /src/Entity.java | UTF-8 | 194 | 1.984375 | 2 | [] | no_license | import processing.core.PImage;
public interface Entity {
public String getId();
public PImage getCurrentImage();
public Point getPosition();
public void setPosition(Point p);
}
| true |
6bcb97bed61ff2998314e18f90df6039822f290a | Java | zhambylSamat/2017.4.samat.zhambyl.online_marketplace | /project.parent/project.server/src/main/java/beans/all/any_db/SendEmailServerFactory.java | UTF-8 | 3,016 | 2.25 | 2 | [] | no_license | package beans.all.any_db;
import com.sun.mail.smtp.SMTPTransport;
import kz.greetgo.depinject.core.Bean;
import kz.greetgo.email.Email;
import kz.greetgo.email.EmailSaver;
import kz.greetgo.email.EmailSender;
import kz.greetgo.email.EmailSenderController;
import util.CommonConstant;
import javax.mail.Message;
import ... | true |
c6fa4455e76ad87e03cc35c04cc20beb5216532a | Java | suprajasri99/Project1 | /Day1.java | UTF-8 | 729 | 2.359375 | 2 | [] | no_license | package test;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;
public class Day1 {
@AfterTest
public void LastExecution() {
System.out.println("I will execute this last");
}
@AfterSuite
... | true |
c2acd39d41bc50b40baf34428a8299e72bfbe75e | Java | aleksstan96/WebAppForBeekeepers | /backend/demo/src/main/java/com/example/demo/dao/PorudzbinaRepository.java | UTF-8 | 1,092 | 1.8125 | 2 | [] | no_license | package com.example.demo.dao;
import java.util.Date;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.web.b... | true |
eb406146c96b6fc2e37a8971484bea5dd79431fd | Java | richardszabo/jataka.hu | /speci/src/class9/peldak/JammyDodger/FullFeederPerception.java | UTF-8 | 3,884 | 2.5 | 2 | [] | no_license | /*****************************************************************************/
/* File: FullFeederPerception.java */
/* */
/* Language: Blackdown Java 1.2.2 RC4, native threads */
... | true |
e35126a8ab432cc0078d381d8e1c94d25cf049e9 | Java | gatoWololo/ProcessJCompiler | /src/AST/Invocation.java | UTF-8 | 774 | 2.5625 | 3 | [] | no_license | package AST;
import Utilities.Visitor;
import Utilities.SymbolTable;
public class Invocation extends Expression {
public ProcTypeDecl targetProc = null;
public SymbolTable candidateMethods = null; // TODO: needs to be filled recursively backwards .. I think? or perhaps not!
public Invocation(Expression target... | true |
6199e23eca33fdd70dcd926178e3ddb8df4536e6 | Java | iagoaraujo/PlayAngularJs | /app/models/Post.java | UTF-8 | 2,014 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | package models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
... | true |
e2d1fb646d24a484dcf3a05713a4bef407c7ba34 | Java | svsaikumar/lara | /lara/sep-4th batch/java/38.Threads/app1/src/M7.java | UTF-8 | 532 | 3.1875 | 3 | [] | no_license | class M7
{
public static void main(String[] args)
{
for(int i = 1; i <= 3; i++)
{
System.out.println(i + Thread.currentThread().getName());
new Thread()
{
public void run()
{
for(int i = 1; i < 5; i++)
{
System.out.println(i);
System.out.println(i + Thread.currentThread().... | true |
aae5aa65af3194475a210ad7cbbc965fdc8ccd9d | Java | STAMP-project/dspot-experiments | /benchmark/training/org/apache/hadoop/hdfs/TestDatanodeDeath.java | UTF-8 | 7,065 | 2.0625 | 2 | [] | no_license | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
6630465912123f871b8a5a1cfe232271720eb128 | Java | SF3/Java-and-Spring | /solutions/Language/src/main/java/videostore/procedural/Customer.java | UTF-8 | 1,726 | 3.59375 | 4 | [] | no_license | /*
* This example adapted from 'Refactoring' by Martin Fowler
*
*/
package videostore.procedural;
import java.util.ArrayList;
import java.util.List;
public class Customer {
private String name;
private List<Rental> rentals = new ArrayList<Rental>();
public Customer(String name) {
this.name = n... | true |
da7feaafb686bbc7e2967acd0710bc5aa0d1309c | Java | moumoukings/LearnForJavaEE | /day31/src/exercise/homework_4/A.java | UTF-8 | 166 | 1.953125 | 2 | [
"MIT"
] | permissive | package exercise.homework_4;
public class A {
public A() {
super();
}
public static void showString() {
System.out.println("你好明天!");
}
}
| true |
72ac4d119e0b59e49a28752c3f33e8c968513940 | Java | Shadowsith/java | /codeExamples/Generics-I/src/ArtikelUmsatz.java | UTF-8 | 1,833 | 3.296875 | 3 | [] | no_license |
public class ArtikelUmsatz implements Comparable<ArtikelUmsatz>{
private String artikel;
private double preis;
private int stueck;
public ArtikelUmsatz(String artikel, double preis, int stueck) {
this.artikel = artikel;
this.preis = preis;
this.stueck = stuec... | true |
dc578741eed25149036b8e8758f3cf171a3a0dd3 | Java | baozib/myWEbp | /webFinalWork/src/main/java/com/baozi/pojo/donor/Donor.java | UTF-8 | 317 | 1.710938 | 2 | [] | no_license | package com.baozi.pojo.donor;
import lombok.*;
@Builder(toBuilder = true)
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Donor{
private String id;
private String donorName;
private String donorSex;
private String donorTele;
private String donorBirth;
private Integer donorDepotid;
}
| true |
359e725952663cbba40b3e7bbcaf0d7631929d1f | Java | alanhumphris/TradeReportingEngine | /test/src/com/domain/reporting/service/TradeReportingServiceImplTest.java | UTF-8 | 1,227 | 2.15625 | 2 | [] | 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 com.domain.reporting.service;
import com.domain.reporting.TestDataHelper;
import com.domain.reporting.model.Instruction;
impor... | true |
b81a2b4eff2c9408c5523ae55937a00ecf361fb4 | Java | bhalla1993/condosolutions | /src/com/condosolutions/connection/DBConnection.java | UTF-8 | 1,279 | 2.9375 | 3 | [] | no_license | package com.condosolutions.connection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import com.condosolutions.utils.Constants;
/**
* @author Shiva Bhalla
*/
public class DBConnection
{
private static DBConnection instance;
private Connection connection;
priv... | true |
bd03ed7120ff2c9677b626ad906353247d64857a | Java | sammsiontir/InstagramClient | /app/src/main/java/com/codepath/instagramclient/InstagramPhoto.java | UTF-8 | 1,359 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.codepath.instagramclient;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by chengfu_lin on 2/5/16.
*/
public class InstagramPhoto implements Serializable {
private static final long serialVersionUID = 5177222050535318633L;
public class User implements Serializable {
... | true |
11be1f51b6cc8fa9bfee07e13feb83c829b064bd | Java | Tominous/LabyMod-1.9 | /bdk.java | UTF-8 | 1,375 | 2.265625 | 2 | [] | no_license | public class bdk
extends bcz
{
private boolean o = false;
public bdk(int ☃, int ☃, int ☃)
{
super(☃, ☃, ☃, 20, 20, "");
}
public boolean c()
{
return this.o;
}
public void b(boolean ☃)
{
this.o = ☃;
}
public void a(bcf ☃, int ☃, int ☃)
{
if (!this.m) {
return;... | true |
57f71d3b71a8b750d8f4f876dec3a43f216bb45f | Java | abrekka/protrans | /src/main/java/no/ugland/utransprod/dao/hibernate/ApplicationUserDAOHibernate.java | MacCentralEurope | 6,096 | 2.203125 | 2 | [] | no_license | package no.ugland.utransprod.dao.hibernate;
import java.util.ArrayList;
import java.util.List;
import no.ugland.utransprod.dao.ApplicationUserDAO;
import no.ugland.utransprod.model.ApplicationUser;
import no.ugland.utransprod.model.ProductAreaGroup;
import no.ugland.utransprod.util.ApplicationParamUtil;
import org.h... | true |
5c033abb15ba2462e2646b29f13d0c663bf68d4e | Java | kyra-tijhuis/BookcaseSpring | /src/database/dao/UserDAO.java | UTF-8 | 3,105 | 3 | 3 | [] | no_license | package database.dao;
import database.model.Bookcase;
import database.model.User;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.*;
import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.sec... | true |
4b296b36052bc0195fe13926a611b7c55a0fc359 | Java | First-Time/HeadFirstCodeJava | /src/chapter08/example8_35/TestDemo.java | UTF-8 | 463 | 3.328125 | 3 | [] | no_license | package chapter08.example8_35;
public class TestDemo {
public static void main(String[] args) {
Color c = Color.RED;
switch (c) {
case RED:
System.out.println("这是红色");
break;
case GREEN:
System.out.println("这是绿色");
... | true |
4e705b6b43a6d993195bb05cf040472492aee949 | Java | MakeBelievekek/formulativeBackend | /src/main/java/hu/formulative/demo/domain/CalculatedFeeModel.java | UTF-8 | 302 | 2.140625 | 2 | [] | no_license | package hu.formulative.demo.domain;
import lombok.ToString;
@ToString
public class CalculatedFeeModel {
private Integer yearlyFee;
public Integer getYearlyFee() {
return yearlyFee;
}
public void setYearlyFee(Integer yearlyFee) {
this.yearlyFee = yearlyFee;
}
}
| true |
f5d9cb46fab5007e46b2e9e1c450d9a7eb631218 | Java | Graagh/BetterWithMods | /src/main/java/betterwithmods/integration/MineTweaker.java | UTF-8 | 659 | 2.078125 | 2 | [
"MIT"
] | permissive | package betterwithmods.integration;
import betterwithmods.integration.minetweaker.*;
import minetweaker.MineTweakerAPI;
/**
* Created by tyler on 9/4/16.
*/
public class MineTweaker {
public static void init() {
MineTweakerAPI.registerClass(Saw.class);
MineTweakerAPI.registerClass(Kiln.class);
... | true |
38e466779a21c52f317c1193bc138fb614d2026e | Java | miso4204/Grupo06 | /proyecto/modulo-shoppingcart/src/main/java/grupo6/modulo/shoppingcart/dao/view/ICarritoComprasDAO.java | UTF-8 | 1,477 | 2.3125 | 2 | [] | no_license | package grupo6.modulo.shoppingcart.dao.view;
import java.util.List;
import grupo6.modulo.payment.dao.enums.TipoMoneda;
import grupo6.modulo.shoppingcart.dao.impl.CarritoProductoResponseDTO;
import grupo6.persistencia.entidades.FacturaCompra;
import grupo6.persistencia.entidades.Usuario;
import grupo6.persistencia.ent... | true |
8a0f4f31a6a63a88a6fb0e61dddc8659c29adf88 | Java | czy880816/Geek-Framework | /src/main/java/com/geekcattle/service/common/RedisService.java | UTF-8 | 410 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017 <l_iupeiyu@qq.com> All rights reserved.
*/
package com.geekcattle.service.common;
import org.springframework.stereotype.Service;
import redis.clients.jedis.Jedis;
/**
* author geekcattle
* date 2017/3/22 0022 下午 15:38
*/
@Service
public interface RedisService {
public Jedis getReso... | true |
03117df008f538fa9b08dfd0c2eb5cfe6a683107 | Java | linkedin/cruise-control | /cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/servlet/response/PartitionState.java | UTF-8 | 3,998 | 1.992188 | 2 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | /*
* Copyright 2019 LinkedIn Corp. Licensed under the BSD 2-Clause License (the "License"). See License in the project root for license information.
*/
package com.linkedin.kafka.cruisecontrol.servlet.response;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
impor... | true |
175fb4d0b068e47eeb58fc017b3edf8c2738bc65 | Java | jofrantoba/hub | /hub-backend/src/main/java/org/panda_lang/hub/organization/OrganizationUpdateDto.java | UTF-8 | 2,876 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2020 Hub Team of panda-lang organization
*
* 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 ... | true |
30d12d24908505d2d649eee64a4ebf3be1e457cb | Java | zerohoons/zerohoons | /src/com/ict03/class01/Ex06.java | UHC | 751 | 3.53125 | 4 | [] | no_license | package com.ict03.class01;
public class Ex06 {
private String name = "ȫ浿";
private int age = 24;
private double height = 180.3;
private char rank = 'A';
//private ϱ ؼ ҵ带 .
//̸ ֱ ( getter ҵ )
public String namae() {
return name;
}
public int tosi() {
return age;
}
public double sei() {
return ... | true |
7c579e6dbe18661f8c1517bd0f976fad9f723837 | Java | xuanthuypham/SpringBoot | /src/main/java/com/xuanthuy/springbootdemo/form/UserInfoForm.java | UTF-8 | 2,740 | 2.375 | 2 | [] | no_license | package com.xuanthuy.springbootdemo.form;
public class UserInfoForm {
private String userName;
private String firstName;
private Byte gender;
private String lastName;
private String password;
private String confirmPassword;
private String email;
private Integer enable;
private Integer countryCode;
public Use... | true |
bfcb4c6128298ae9f6596a66036bd2f6f5da8cb8 | Java | tik5213/myWorldBox | /app/src/main/java/com/MCWorld/module/account/d.java | UTF-8 | 878 | 1.898438 | 2 | [] | no_license | package com.MCWorld.module.account;
import android.os.Parcel;
import android.os.Parcelable;
import com.MCWorld.data.message.SysMsgItem;
import com.MCWorld.module.a;
import java.util.List;
/* compiled from: SysMsgs */
public class d extends a implements Parcelable {
public static final Creator<d> CREATOR = new 1(... | true |
ae3f0fe18dca5a05d204eb58042a089af9283114 | Java | MuminMushtaq/java-files | /AllSum.java | UTF-8 | 511 | 3.515625 | 4 | [] | no_license | import java.util.Scanner;
class AllSum
{
public static void main(String arg[])
{
Scanner sc= new Scanner(System.in);
int i, n, sum =0;
System.out.println("enter the numbers of elements you want to sum");
n = sc.nextInt();
int a[] = new int[n];
System.out.print("enter the numbers ");
for(i=0; i<n; i++)
... | true |
6a0358bb9579873983e4a3f28bb3384a89debd67 | Java | jeanfranc0/AppProyectoFarmacia | /AppProyectoFarmacia/src/java/data/cAlmacen.java | UTF-8 | 2,331 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | package data;
import com.mongodb.client.MongoCursor;
import org.bson.Document;
public class cAlmacen {
private cEntidad almacen;
public cAlmacen() throws Exception
{
try{
almacen=new cEntidad("Almacen");
}
catch (Exception e) {
throw new Excepti... | true |
f7c076293e5985b9534e3f8cda31c1bf9b18ddc2 | Java | ayrat162/Project_Euler | /15/src/Main.java | UTF-8 | 424 | 2.9375 | 3 | [] | no_license | public class Main {
public static int f(int N, int x, int y){
int right = 0, down = 0;
// System.out.println(x+" "+y);
if(x < N) down = f(N,x+1,y);
if(y < N) right = f(N,x,y+1);
if(x==N && y==N) return 1;
return right + down;
}
public static void main(String... | true |
beaee87bc8bcc602867ed6c192771b1d53c3b7e4 | Java | michalis-bachras/thesis | /diplomatiki/src/diplomatiki/DirectedGraph.java | UTF-8 | 7,489 | 3.21875 | 3 | [] | no_license | package diplomatiki;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.Set;
import aDG_metamodel.JoinNode;
import aDG_metamodel.Link;
import aDG_meta... | true |
4b86de9a0b1e2d0a3a0ff7074e2800d13e6398f4 | Java | treejames/1yd-platform-coach | /src/main/java/com/tjcloud/platform/service/impl/UserWeiXinServiceImpl.java | UTF-8 | 693 | 2.109375 | 2 | [] | no_license | package com.tjcloud.platform.service.impl;
import com.tjcloud.platform.model.UserWeiXinEntity;
import com.tjcloud.platform.repository.UserWeiXinRepository;
import com.tjcloud.platform.service.UserWeiXinService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
@Service
public class Us... | true |
e01e1417d8e29ebaca9f0987a343bc024c348df3 | Java | MitchDroid/RxAndroidSampleApp | /app/src/main/java/com/globant/samples/volley/ui/userDetails/UserDetailActivity.java | UTF-8 | 1,681 | 2.21875 | 2 | [] | no_license | package com.globant.samples.volley.ui.userDetails;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.globant.samples.volley.R;
import com.globant.samples.volley.data.model.item.Item;
import com.globant.samples.volley.ui.base.BaseActivity;
import com.squareup.picasso... | true |
afadc491fd698ab692c4669328e2cc79e8d67af6 | Java | xylocore/xylocore-copybook | /xylocore-copybook-generator/src/test/java/com/xylocore/copybook/generator/parser/CopybookLexerTestApp.java | UTF-8 | 1,911 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | //
// Copyright 2013 The Palantir Corporation
//
// 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 app... | true |
49395fedce03db03ce6064b74ebf0b80cbd59e4c | Java | luongvietvinh/MD2-java-Thuc-Hanh-1 | /src/Bien_Toantu_CaulenhDK_1/THUC_HANH/TH3_Toan_Tu.java | UTF-8 | 546 | 3.03125 | 3 | [] | no_license | package Bien_Toantu_CaulenhDK_1.THUC_HANH;
import java.util.Scanner;
public class TH3_Toan_Tu {
public static void main(String[] args) {
float wight;
float height;
Scanner baby = new Scanner(System.in);
System.out.println("ấn enter để nhập số");
wight = baby.nextFloat();
... | true |
f2f9aa7ad521ecbfeddc372be093731ce58b2447 | Java | lucky-dev/bee | /src/main/java/bee/lang/exceptions/UnexpectedTokenException.java | UTF-8 | 375 | 2.65625 | 3 | [] | no_license | package bee.lang.exceptions;
import bee.lang.lexer.Token;
public class UnexpectedTokenException extends BaseParserException {
public UnexpectedTokenException(Token token) {
super(token);
}
public String toString() {
return "[" + mToken.getFileName() + " : " + mToken.getLine() + "] Unexpe... | true |
3799f69b5fafabc105f36130a09bb1d365a2c199 | Java | ymjrchx/myProject | /how2j/paas_demo/src/test/java/PaasTestKafka.java | UTF-8 | 1,431 | 2.0625 | 2 | [] | no_license | import lombok.extern.slf4j.Slf4j;
import net.dgg.framework.tac.kafka.msg.model.PushReturnType;
import net.dgg.framework.tac.kafka.producer.DggKafkaProducer;
import net.tac.paas.test.Application;
import net.tac.paas.test.model.KafkaModel;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework... | true |
b168847106983cacbb864e698bfae502bcdc1f9e | Java | piotr-j/ld32 | /core/src/io/piotrjastrzebski/ld32/game/entities/Projectile.java | UTF-8 | 2,235 | 2.65625 | 3 | [] | no_license | package io.piotrjastrzebski.ld32.game.entities;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.Circle;
import com.badlogic.gdx.math.Rectangle;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Pool;
import io.piotrjastrzebs... | true |
c783947cf7770a8a173880e89bd0ec362b82e688 | Java | ochan173/Echec_mobile | /app/src/main/java/com/example/a1738253/echec_mobile/echec/pieces/Cavalier.java | UTF-8 | 3,626 | 3.109375 | 3 | [] | no_license | package com.example.a1738253.echec_mobile.echec.Pieces;
import com.example.a1738253.echec_mobile.echec.Position;
import com.example.a1738253.echec_mobile.echec.PositionInvalideException;
import java.util.ArrayList;
/**
* Classe de la pièce Cavalier.
*
* @author Olivier Chan
* @author David Goulet
*/
public cla... | true |
c7fab67f24c1932e3c7cdaefc7d7c6294fb4e6d6 | Java | functor-io/prizy-pricer | /jBilling/src/test/java/com/AppDirect/jBilling/store/StoreControllerUnitTest.java | UTF-8 | 2,411 | 2.140625 | 2 | [] | no_license | package com.AppDirect.jBilling.store;
import static org.junit.Assert.assertEquals;
import java.util.Date;
import java.util.UUID;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotatio... | true |
12e7c2313fb8043663335ff8d949c2494652fa17 | Java | Arquisoft/dashboard1a | /src/main/java/asw/Application.java | UTF-8 | 1,340 | 1.960938 | 2 | [
"Unlicense"
] | permissive | package asw;
import java.io.IOException;
import java.text.ParseException;
import org.apache.log4j.Logger;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autocon... | true |
4b528c06e226b2f62fc64b9a7f772b16784d2fb6 | Java | Eduardo-00092117/Evaluacion1_PDM_00092117 | /app/src/main/java/com/example/labo04_1/factura.java | UTF-8 | 2,686 | 2.09375 | 2 | [] | no_license | package com.example.labo04_1;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;
public class factura extends AppCompatActivity {
TextV... | true |
0ac684af376df4f68b4faa100e6a9777fed9dca4 | Java | Kuznetsov-DI/LanitHW | /HomeWork2/src/main/java/models/animals/Fish.java | UTF-8 | 450 | 3.25 | 3 | [] | no_license | package models.animals;
import animals.Carnivorous;
import animals.Swim;
public class Fish extends Carnivorous implements Swim{
public Fish(String name, String sound) {
super(name, sound);
}
protected Fish(String name, int levelHungry, String sound) {
super(name, levelHungry, sound);
... | true |
e8cb860fc7ff0dd24769f20dccb0c6d160c85383 | Java | lkoshale/Android-Projects | /AuditAppSrc/src/java/sqllite/ShortlistedInventoryDetailsTable.java | UTF-8 | 11,686 | 2.09375 | 2 | [] | no_license | package com.machadalo.audit.sqllite;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.machadalo.audit.Utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.uti... | true |
09f0220ec19407c8e1e4d9c4c6c0ade89b456bf5 | Java | shin-so-mi/YourMeals | /src/main/java/com/oijoa/web/MaterialServlet.java | UTF-8 | 1,753 | 2.53125 | 3 | [
"MIT"
] | permissive | package com.oijoa.web;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax... | true |
74bbf503af9a5c60b89612155f5835c1cd0e3e39 | Java | NationalSecurityAgency/ghidra | /Ghidra/Features/Base/ghidra_scripts/ImportProgramScript.java | UTF-8 | 1,768 | 2.359375 | 2 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LGPL-2.1-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... | true |
81d06b172cb13cb5158df2e5e4490d91f4db1db8 | Java | thoslin/ELF | /test/elf.acceptance.test/src/test/java/elf/acceptance/test/oms/util/TypeConvert.java | GB18030 | 9,902 | 2.3125 | 2 | [
"BSD-3-Clause"
] | permissive |
package elf.acceptance.test.oms.util;
import elf.api.consts.order.OrderStatusConsts;
import elf.api.consts.order.PriceModeConsts;
import elf.api.consts.order.SecurityTypeConsts;
import elf.api.consts.order.TargetTypeConsts;
import elf.api.consts.placement.PriceTypeConsts;
import elf.api.consts.placement.Trade... | true |
9a59167e16290274ee57de5517cc3194600f4f9c | Java | nlamblin/zeldiablo | /src/TestZeldiablo/TestsTalisman.java | MacCentralEurope | 833 | 2.28125 | 2 | [] | no_license | package TestZeldiablo;
import static org.junit.Assert.*;
import jdk.nashorn.internal.ir.annotations.Ignore;
import monJeu.Case;
import monJeu.CaseVide;
import monJeu.Entite;
import monJeu.MonJeu;
import monJeu.Mur;
import monJeu.Orc;
import monJeu.Personnage;
import monJeu.Talisman;
import moteurJeu.Commande;
import ... | true |
132bc8e44c2eb82854022f90328392d0cfd3e3ed | Java | k30medvedev/demo | /core/Box.java | UTF-8 | 904 | 3.140625 | 3 | [] | no_license | //package com.company;
//
//import java.util.Objects;
//
//public class Box extends Triangle{
// String name;
//
// public Box(String name) {
// this.name = name;
// }
//
// public String getName() {
// return name;
// }
//
// public void setName(String name) {
// this.name = name... | true |
6dc792125e590031469477a5073e300ffe2928cb | Java | karstenda/DaRT | /DaemenRayTracer/src/raytracer/distributed/PictureBuilder.java | UTF-8 | 7,564 | 2.640625 | 3 | [] | no_license | package raytracer.distributed;
import java.awt.BorderLayout;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Out... | true |
3b8a3e03d8e391e810e8fdadaecca1194f8f1daf | Java | stanymaina/android-donor-locator | /app/src/main/java/com/example/bloodbank/utilities/User.java | UTF-8 | 2,264 | 2.125 | 2 | [] | no_license | package com.example.bloodbank.utilities;
import com.google.gson.annotations.SerializedName;
public class User {
@SerializedName("$oid")
private String _id;
private String first_name;
private String other_names;
private String username;
private String phone_number;
private String email;
... | true |
93282d7498f4cf91bd0cf2d933b9b01936751295 | Java | Shengqi-Kong/JobHelper-master | /src/main/java/com/controller/BlogController.java | UTF-8 | 4,402 | 2.296875 | 2 | [] | no_license | package com.controller;
import com.entity.Blog;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.service.BlogService;
import com.util.Msg;
import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Control... | true |
ac44834b322b135db30f42e777e12f87d01b9e8d | Java | Relicum/libscommands | /src/main/java/com/relicum/libscommands/Commands/SetSpawn.java | UTF-8 | 1,295 | 2.75 | 3 | [] | no_license | package com.relicum.libscommands.Commands;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class SetSpawn implements CommandExecutor {
public Stri... | true |
9da91bdb6f13a87f7a241091bd37b132a66b7505 | Java | koxx4/FiszkiPlastkya | /src/main/java/com/fiszki/plastyka/SceneUtilities.java | UTF-8 | 519 | 2.28125 | 2 | [] | no_license | package com.fiszki.plastyka;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
import java.net.URL;
public class SceneUtilities
{
public static void loadScene(URL path, Scene currentScene) throws IOException
{
... | true |
79242cb765c4cd70fbf4fb5e7a5d9dd0f609d23e | Java | bither/bither-desktop-java | /src/main/java/net/bither/viewsystem/base/ButtonDecorator.java | UTF-8 | 2,262 | 2.625 | 3 | [
"Apache-2.0"
] | permissive | /*
*
* Copyright 2014 http://Bither.net
*
* 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... | true |
881ee221e38c4051a839b7b730919afc94ff7c34 | Java | sebluy/workout-android | /main/java/com/wonderguerrilla/android/workout/ui/workoutlist/StaticCoreExerciseFeedbackFragment.java | UTF-8 | 1,795 | 2.265625 | 2 | [] | no_license | package com.wonderguerrilla.android.workout.ui.workoutlist;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.wonderguerrilla.android.workout.ui.workoutlist.multipleexercise.exercises.StaticCoreExer... | true |
c29138bb34b7c57f00c44dac0fcf568c53b29e16 | Java | medes-imps/imogene | /gen-web/org.imogene.web.template/src/main/java/org/imogene/web/server/validation/DoubleMax.java | UTF-8 | 1,060 | 2.171875 | 2 | [] | no_license | package org.imogene.web.server.validation;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.ElementType.CONSTRUCTOR;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.Elem... | true |
2a91de9e0cea9a7f030f85260cc7df9669709d3c | Java | jins040/java-rdbms | /src/kr/re/kitri/northwind/NorthwindMain.java | UTF-8 | 1,636 | 2.9375 | 3 | [] | no_license | package kr.re.kitri.northwind;
import java.sql.*;
/**
* Created by danawacomputer on 2017-05-08.
*/
public class NorthwindMain {
public static void main(String[] args) {
// 1. postgreSQL 데이터베이스 JDBC 드라이버를 로딩한다.
try {
Class.forName("org.postgresql.Driver"); // 설치한 jar 파일 로딩(프로젝트... | true |
b319fc210b1a5f24cb360d82215fa99197d360ca | Java | udaypandu/Nata | /app/src/main/java/nata/com/activities/HomeActivity.java | UTF-8 | 2,660 | 2.0625 | 2 | [] | no_license | package nata.com.activities;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import nata.com.nata.R;
public class HomeActivity extends Activity imple... | true |
74f2b8eb984cb25728a42378aaeb0eaf35455eca | Java | Skullabs/kikaha | /kikaha-modules/kikaha-urouting/tests/kikaha/urouting/unit/WebSocketDataProviderTest.java | UTF-8 | 1,684 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package kikaha.urouting.unit;
import kikaha.core.modules.websocket.WebSocketSession;
import kikaha.core.test.KikahaRunner;
import kikaha.urouting.WebSocketDataProvider;
import lombok.SneakyThrows;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mocki... | true |
6cf52f00d594e033b45f109841e94c88409ddd79 | Java | rutuja-gadhave/Java-programs | /Array.java | UTF-8 | 455 | 3.15625 | 3 | [] | no_license | //Rutuja Gadhave 1606032
import java.util.Scanner;
public class Array
{
public static void main(String[] args)
{
int a[]=new int[5],p,i;
System.out.println("Enter any 5 elements : ");
Scanner s=new Scanner(System.in);
for(i=0;i<5;i++)
{
a[i]=s.nextInt();
}
System.out.println("\nEnter the... | true |
fca7beb07cb1f09b6d4e584f0624b5d492fc3806 | Java | ranjanidcosta/MainWork | /My Assignments/Java/MyBasic/src/com/ranjani/ExampleDataTypes.java | UTF-8 | 629 | 3.046875 | 3 | [] | no_license | package com.ranjani;
public class ExampleDataTypes {
// public static void main(String[] args) {
// int x;
// x = 10;
// if(x == 10){
// int y = 20;
// System.out.print("x and y: "+ x + " " + y);
// y = x*2;
// }
// //y = 100;
// // System.out.print("x... | true |
1fde563c3357f024761a6912785c355743942725 | Java | Crush-a/zbzl | /src/main/java/com/zbzl/entity/SysPower.java | UTF-8 | 1,143 | 2.15625 | 2 | [] | no_license | package com.zbzl.entity;
public class SysPower {
private String powerId;
private String powerName;
private String powerCode;
private String powerValid;
private String remark;
public String getPowerId() {
return powerId;
}
public void setPowerId(String powerId) {
th... | true |
21e739ef3ed044ed9fe1109414cb507847e739a5 | Java | brunosilvaJava/Animal | /src/animal/Leao.java | UTF-8 | 275 | 2.046875 | 2 | [] | no_license | package animal;
import interfaces.Predador;
import interfaces.PresaLeao;
public class Leao extends Felino implements Predador<PresaLeao> {
public Leao(Integer velocidade) {
super(velocidade);
}
@Override
public String emitirSom() {
return "RUUAAAAAUUUARR";
}
}
| true |
40922d1c3a2346ed49c3ff5bab390c6bfa8a3940 | Java | hatemsayed98/Bank-Transaction-System | /bankSystem/src/java/vaidateTransaction.java | UTF-8 | 7,432 | 2.5625 | 3 | [] | no_license |
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 java.sql.*;
import java.time.Loc... | true |
a5ca1e7f8ad1657efa29f6700abda9a45740db2b | Java | JulianeManarinVasconcelos/recursos-comuns-teste | /src/main/java/br/com/galgo/testes/recursos_comuns/pageObject/download/TelaDownloadFundo.java | UTF-8 | 418 | 2.078125 | 2 | [] | no_license | package br.com.galgo.testes.recursos_comuns.pageObject.download;
public class TelaDownloadFundo extends TelaDownload {
@Override
public void clicarBotaoConfirmar() {
submeterFormulario();
}
private void submeterFormulario() {
clicarItemPorClassName(classNameTeclaEnter());
}
private String classNameTeclaEn... | true |
9ead1f05f600355d8335d2bfafcecdc7c338de5b | Java | infochef/CoreJava | /CG_CoreJava/src/com/capgemini/oops/dev/MainClass.java | UTF-8 | 271 | 2.03125 | 2 | [] | no_license | package com.capgemini.oops.dev;
public class MainClass {
public static void main(String[] args) {
BankAccount bank;
bank = new LoanAcc();
bank.deposit();
bank.withdraw();
bank = new SavingAcc();
bank.withdraw();
bank.deposit();
}
}
| true |
e69ed63aec24a1f2975f20e3a30352c1f4def5ea | Java | miyakowork/noteblogv4 | /src/main/java/me/wuwenbin/noteblogv4/model/constant/TagType.java | UTF-8 | 257 | 2 | 2 | [
"Apache-2.0"
] | permissive | package me.wuwenbin.noteblogv4.model.constant;
/**
* 区分文章还是笔记
* created by Wuwenbin on 2018/7/17 at 10:51
* @author wuwenbin
*/
public enum TagType {
/**
* 文章
*/
article,
/**
* 笔记
*/
note
}
| true |
b18a2f8ce434569d33efce548602b6cd152eeb08 | Java | forilyam/PochtaTestTask | /src/test/java/SecondTest.java | UTF-8 | 3,740 | 2.546875 | 3 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.Assert;
import org.testng.annotat... | true |
2f4649fc13cca055ef30ac270694427876d8c193 | Java | lyongfly/MultiThreadDownload | /app/src/main/java/com/steven/download/download/DownloadRunnable.java | UTF-8 | 4,524 | 2.84375 | 3 | [] | no_license | package com.steven.download.download;
import com.steven.download.okhttp.OkHttpManager;
import java.io.Closeable;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.RandomAccessFile;
import okhttp3.Response;
/**
* 下载线程
*/
class DownloadRunn... | true |
ac6f461679bd75ef28298453b8ecde172374883e | Java | mantugit/LearningWorld | /CoreJava/src/collections/SetExample.java | UTF-8 | 368 | 3.015625 | 3 | [] | no_license | package collections;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
public class SetExample {
public static void main(String[] args) {
HashMap<Integer, Integer> h=new HashMap<Integer, Integer>();
h.put(1, 9);
ArrayList l=new ArrayList();
l.addAll(h.entrySet());
... | true |
b6e425c9c65633fb4db4f8bb04d93663ca75feec | Java | zhongxingyu/Seer | /Diff-Raw-Data/21/21_537d4678557fb0b610e02bbd3b0004897aaa2dcb/NameStore/21_537d4678557fb0b610e02bbd3b0004897aaa2dcb_NameStore_t.java | UTF-8 | 2,409 | 2.171875 | 2 | [] | no_license | /*
* Copyright (C) 2012 - 2012 NHN Corporation
* All rights reserved.
*
* This file is part of The nGrinder software distribution. Refer to
* the file LICENSE which is part of The nGrinder distribution for
* licensing details. The nGrinder distribution is available on the
* Internet at http://nhnopensour... | true |
096d0fe03ca7cada81a8e207171507f3a10c8a39 | Java | puz-ya/tinkoff.finteh.2017 | /app/src/main/java/tinkoff/androidcourse/ChatAdapter.java | UTF-8 | 3,862 | 2.515625 | 3 | [] | no_license | package tinkoff.androidcourse;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.Collections;
import java.util.List;
import java.util.Locale;
import tinkoff.androidcourse.model.d... | true |
2e09d6456fa9fc193571060ba571171fd54f594e | Java | venuslatte/unified-payments-api | /src/main/java/com/fun/driven/development/fun/unified/payments/api/service/PaymentMethodService.java | UTF-8 | 556 | 2 | 2 | [] | no_license | package com.fun.driven.development.fun.unified.payments.api.service;
import com.fun.driven.development.fun.unified.payments.api.service.dto.PaymentMethodDTO;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing {@link com.fun.driven.development.fun.unified.payments.api.domain.Payme... | true |
438a92e1eea93f01d960bbbff9e39af1e4bfc7f5 | Java | atroot-sudo/JavaStudy | /Day11/src/DesignTest/MainTest.java | UTF-8 | 1,372 | 4.03125 | 4 | [] | no_license | package DesignTest;
public class MainTest {
/**
* main方法是一个静态的方法
* main作为一个程序的入口
* main也可以作为我们与控制台交互的方式
* <p>
* 代码块儿:用来初始化类或者对象
* 如果要修饰代码块的话 只能用static
* <p>
* 构造器比静态代码快执行晚
* 非静态代码块比构造器早
* 顺序:静态代码块、非静态代码块、构造器 (由父及子 静态先行)
* 静态代码块 会随着类的加载而执行
* 静... | true |
d5370d6b624d726b0e6adddd33447b3a02a73351 | Java | MazingAn/mud-game-server | /src/main/java/com/mud/game/structs/BufferInfo.java | UTF-8 | 1,231 | 2.53125 | 3 | [] | no_license | package com.mud.game.structs;
import com.mud.game.object.supertypeclass.CommonCharacter;
import com.mud.game.statements.buffers.BufferManager;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class BufferInfo {
private Map<String, Map<String, Object>> buffers;
public BufferInfo(C... | true |
52e9fb0f2e6a9683fe3f1115f6e69e6a8438d2ac | Java | yakinasu/Book-Oline | /src/tool/PropertiesUtil.java | UTF-8 | 559 | 2.453125 | 2 | [] | no_license | package tool;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Properties;
public class PropertiesUtil {
private final String file = "delay.properties";
public Properties properties = new Properties();
public void createInstance() {
try {
InputStream inputStream = new FileInputS... | true |
f920616cbf451287ff5c23c50220b045a9ae943b | Java | anapaulabertho/RobertoLanches | /src/main/java/com/bertho/roberto/roberto_lanches/controller/OrderController.java | UTF-8 | 1,600 | 2.109375 | 2 | [] | no_license | package com.bertho.roberto.roberto_lanches.controller;
import com.bertho.roberto.roberto_lanches.dto.IngredientesDto;
import com.bertho.roberto.roberto_lanches.entity.Hamburguer;
import com.bertho.roberto.roberto_lanches.entity.Ingredient;
import com.bertho.roberto.roberto_lanches.service.OrderCustomService;
imp... | true |
efd3eb57d01cc3a81b9cc2a39a3b29b1e0e4f4a1 | Java | HastyFish/wutbiolab | /src/main/java/com/gooalgene/wutbiolab/controller/admin/ContactusController.java | UTF-8 | 2,357 | 2.203125 | 2 | [] | no_license | package com.gooalgene.wutbiolab.controller.admin;
import com.gooalgene.wutbiolab.constant.CommonConstants;
import com.gooalgene.wutbiolab.entity.contactus.ContactusDetail;
import com.gooalgene.wutbiolab.entity.lab.LabDetail;
import com.gooalgene.wutbiolab.response.common.CommonResponse;
import com.gooalgene.wutbiolab... | true |
c4aec14f8afd52fb817ebb34bf3fbb45aa87dc6f | Java | DevangJayswal/TechnocraftDebugger | /Technocraft_Debugger/src/vo/Image_Upload_vo.java | UTF-8 | 936 | 2.03125 | 2 | [] | no_license | package vo;
import java.io.Serializable;
public class Image_Upload_vo implements Serializable{
private int Image_ID;
private String Image_Name;
private String path;
private user_mst_vo user_mpg_id;
private String User_type;
public String getUser_type() {
return User_type;
}
public vo... | true |