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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f5376f3e4ad60ef469d22a3697b8ddebba633dd7 | Java | lakshithadilshan/OOD_Final_Project | /src/controller/LectureScreenController.java | UTF-8 | 6,145 | 2.1875 | 2 | [] | no_license |
package controller;
import com.jfoenix.controls.JFXButton;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Pa... | true |
1998cc81df4bc86fd83f6e37a2ffbcad934c678d | Java | didilmonteir/SistemaEscolar | /SistemaEscolar/test/br/edu/ifal/servico/RelatorioTest.java | UTF-8 | 6,399 | 2.703125 | 3 | [] | no_license | package br.edu.ifal.servico;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import br.edu.ifal.modelo.Aluno;
import br.edu.ifal.modelo.Disciplina;
import br.edu.ifal.modelo.Nota;
public class RelatorioTest {
private ... | true |
11ba958252f000489eab08824bd9b28850e20a93 | Java | MarkoVrljicak/Algocraft | /src/modelo/factory/unidadesProtoss/CreadorScout.java | UTF-8 | 447 | 2.3125 | 2 | [] | no_license | package modelo.factory.unidadesProtoss;
import modelo.factory.UnidadesAbstractFactory;
import modelo.stats.Recurso;
import modelo.unidades.Unidad;
import modelo.unidades.protos.Scout;
public class CreadorScout extends UnidadesAbstractFactory {
public CreadorScout(){
this.recursosNecesarios = new Recurso... | true |
2a0c90c014ae53acdd147ec3ab120f7966613412 | Java | viclovsky/swagger-coverage | /swagger-coverage-commandline/src/main/java/com/github/viclovsky/swagger/coverage/core/results/data/CoverageOperationMap.java | UTF-8 | 2,207 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.viclovsky.swagger.coverage.core.results.data;
import com.github.viclovsky.swagger.coverage.core.model.OperationKey;
import java.util.HashSet;
import java.util.Set;
public class CoverageOperationMap {
private Set<OperationKey> full = new HashSet<>();
private Set<OperationKey> party = new Ha... | true |
e2d1b4d0077876cbbf5851794ae9b55962771537 | Java | 0Karim/VirtualAssistent | /VirtualAssistent/app/src/main/java/com/example/manobahnasy/virtualassistent/Validation.java | UTF-8 | 1,068 | 2.421875 | 2 | [] | no_license | package com.example.manobahnasy.virtualassistent;
import android.text.TextUtils;
import java.util.regex.Pattern;
/**
* Created by Karim on 13/03/2018.
*/
public class Validation {
//regular expression
private static final String EMAIL_REGEX = "^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za... | true |
2a562f8246cc7dc7f5cc42cbc16bb8f20dd30bae | Java | FRC4077MASH/2018-MASH-Code | /src/org/usfirst/frc/team4077/robot/autonomous/automodes/AutoDoSwitch.java | UTF-8 | 9,127 | 2.1875 | 2 | [] | no_license | package org.usfirst.frc.team4077.robot.autonomous.automodes;
import org.usfirst.frc.team4077.robot.autonomous.NavigatePID;
import org.usfirst.frc.team4077.robot.components.Drive;
import org.usfirst.frc.team4077.robot.components.Lift;
import org.usfirst.frc.team4077.robot.components.Manipulator;
import org.usfirst.frc.... | true |
f75b430941bb15dd8f723575f1353e2f4bc88283 | Java | Sexisnull/demo03 | /Projects/uids-gateway/src/main/java/com/gsww/uids/gateway/util/UserUtil.java | UTF-8 | 2,694 | 2.515625 | 3 | [] | no_license | package com.gsww.uids.gateway.util;
import java.text.ParseException;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Hashtable;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class UserUtil {
public static boolean isIDnumberlegal... | true |
cfaf2b39385e55f1e496e75fc58d864e97f9d7c3 | Java | Gladiuzz/laundry_ujikom | /app/src/main/java/com/example/laundry_ujikom/Adapter/OutletAdapter.java | UTF-8 | 4,489 | 2.28125 | 2 | [] | no_license | package com.example.laundry_ujikom.Adapter;
import android.content.Context;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextVi... | true |
d758f5da75ad8ba3a1b91c977e09be5c69354a06 | Java | uPortal-Project/NotificationPortlet | /notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/jpa/JpaNotificationRESTService.java | UTF-8 | 8,142 | 1.859375 | 2 | [
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"EPL-1.0",
"BSD-3-Clause",
"Classpath-exception-2.0",
"CDDL-1.0",
"MIT",
"LicenseRef-scancode-free-unknown",
"MPL-1.1",
"JSON",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | /*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in c... | true |
829c147836e2d8b228032b38c49e6eb1f950af3c | Java | cherkavi/java-code-example | /open_office/src/open_office/OpenOffice_FirstConnection.java | WINDOWS-1252 | 3,971 | 2.3125 | 2 | [] | no_license | /*
* OpenOffice_FirstConnection.java
*
* Created on 7 2008, 9:18
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*
*To make the office listen whenever it is started, open the file <OfficePath>/share/registry/data/org/openoffice/Setup.xcu in an editor,... | true |
e3d24e2258d4dd5a97a1f5b4bc3bc783270a190d | Java | yexingyu/DDB-WEB | /src/main/java/com/dailydealsbox/web/database/model/ProductReview.java | UTF-8 | 2,580 | 2.140625 | 2 | [] | no_license | /**
*
*/
package com.dailydealsbox.web.database.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import or... | true |
c06d9cd9b0e4984c2ddae44c7121a3fd621ff552 | Java | raissamlima/Atp15 | /Dia29/CadastroPessoas.java | UTF-8 | 1,613 | 3.234375 | 3 | [] | no_license | package Dia29;
public class CadastroPessoas {
public static void main(String[] args) {
PessoaFisica p_f[] = new PessoaFisica[5];
PessoaFisica p1 = new PessoaFisica();
p1.setCodigo(26565);
p1.setNome("Raissa");
p1.setSobrenome("Lima");
p1.setIdade(28);
p1.set... | true |
0d9bf86fdf7bfbf43c12e4164108d98eabbbdbb1 | Java | RSMac/ConceptualModeling | /src/main/java/com/ritamachado/cursomc/resources/exceptions/SandardError.java | UTF-8 | 1,029 | 2.625 | 3 | [] | no_license | package com.ritamachado.cursomc.resources.exceptions;
import java.io.Serializable;
public class SandardError implements Serializable{
private static final long serialVersionUID = 1L;
private Integer status; //Http status of the error
private String msg; //Error message
private Long timeStamp; //Inst... | true |
625a007905b21bf0465753a8e14821a439a563f5 | Java | sarahzhou97/TowerDefense | /src/gameengine/actors/management/AbstractActorHandler.java | UTF-8 | 444 | 2.765625 | 3 | [
"MIT"
] | permissive | package gameengine.actors.management;
public abstract class AbstractActorHandler <I, O> implements IActorHandler<I>{
private Actor<O> actor;
private IDecision<I,O> decision;
public AbstractActorHandler(Actor<O> actor, IDecision<I,O> decision){
this.actor = actor;
this.decision = decision;
}
@Override
pu... | true |
ee016509f5e3d8b46080f611a6d862034d7439a3 | Java | RodrigoSarazu/Proyecto-Rustica | /ProyectoRustica/src/main/java/com/rustica/demo/InterfacesServicios/TicketInterfaceServicio.java | UTF-8 | 363 | 1.898438 | 2 | [] | no_license | package com.rustica.demo.InterfacesServicios;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.rustica.demo.modelo.Ticket;
@Repository
public interface TicketInterfaceServicio {
List<Ticket>buscarPorTicket(int idticket);
public List<Ticket>listar();
public int save (Ticket p... | true |
d63bc52d5b83ec2bfff77cb9c641df6fe51ba517 | Java | morank92/idcserver | /src/main/java/com/baoidc/idcserver/vo/query/RenewVO.java | UTF-8 | 870 | 1.78125 | 2 | [] | no_license | package com.baoidc.idcserver.vo.query;
import java.io.Serializable;
public class RenewVO implements Serializable {
private int userId;//用户
private int orderType;//订单类型
private String durationEncrypt;//时长的key
private String[] instanceEncrypt;//实例的key
public int getUserId() {
return userId;
}
public void... | true |
a413f89762099004df05c4df56d83c429ad8a3f9 | Java | thoced/manageRT | /src/GestionPackage/DateRappelTableCell.java | UTF-8 | 1,997 | 2.515625 | 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 GestionPackage;
import Models.ConnectionSQL;
import Models.TodoModel;
import java.sql.PreparedStatement;
import java... | true |
d05f8f8af7074b84e6822dcbed556cbe8afceee0 | Java | mathiasritter/DesignPatterns | /src/test/java/at/geyerritter/s06/ZaehlendeEntenFabrikTest.java | UTF-8 | 817 | 1.953125 | 2 | [] | no_license | package at.geyerritter.s06;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class ZaehlendeEntenFabrikTest {
ZaehlendeEntenFabrik z;
@Before
public void setUp() throws Exception {
z = new ZaehlendeEntenFabrik();
}
@Test
public void testErzeu... | true |
8d705a4253a092d1cc2be652778481e1dba251e3 | Java | plin005/LetterCombination- | /LetterCombination/src/main/java/com/paula/LetterCombination/LetterCombination.java | UTF-8 | 2,289 | 3.59375 | 4 | [] | no_license | package com.paula.LetterCombination;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class LetterCombination {
// List resultList to save the output strings.
public List<String> resultList = null;
// Map<Integer, String> mapping to save the ma... | true |
92b0f79f9e4087b517ecd153b50846a8408a8f54 | Java | maroofansari/library_management | /GuestBookEntries/src/java/dit/GuestBook.java | UTF-8 | 4,615 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package dit;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.DriverManag... | true |
04ecf996d673f3f1f4d27bcdd3f25a2fdb524177 | Java | ramsjenu/DBTool | /WEB-INF/classes/com/tcs/tools/business/compare/FileCompare.java | UTF-8 | 1,589 | 2.21875 | 2 | [] | no_license | package com.tcs.tools.business.compare;
import com.tcs.tools.business.compare.dao.FileCompareDAO;
public class FileCompare {
//String pDbMigrationType ="SYSBASE_TO_DB2";
//String pDbMigrationType="SYBASE_TO_SQL";
FileCompareDAO lFileCompareDAO = new FileCompareDAO();
/*public static void main(String[] args) {
... | true |
6d4bde6f272180d5ccaf700cb133e2485d45ca79 | Java | longcheng-wangxj/server | /server/src/main/java/easySec/oauth2/server/mapper/oauth2/Oauth2ClientMapper.java | UTF-8 | 434 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package easySec.oauth2.server.mapper.oauth2;
import java.util.List;
import org.springframework.stereotype.Service;
import easySec.oauth2.server.CustomMapper;
import easySec.oauth2.server.model.oauth2.Oauth2Client;
@Service
public interface Oauth2ClientMapper extends CustomMapper<Oauth2Client>{
List<Oauth2Client> l... | true |
a9ab3327589b6dc1353a2b2c4d8bdd28c3b16e47 | Java | jiangyu/ADFS-1 | /adfs-distributed-project/adfs-distributed/src/test/java/com/taobao/adfs/iosimulator/scenarios/BlockSynchronization.java | UTF-8 | 6,071 | 2.015625 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
801d52672b38186212b376c728135642446cc9ec | Java | fg1989/ProjetRES | /src/main/java/Logger/StandardLogger.java | UTF-8 | 777 | 3.28125 | 3 | [] | no_license | package Logger;
/**
* Ce logger logge uniquement les erreurs
*/
public class StandardLogger implements ILogger {
/**
* Indique que l'application souhoite logger un message qui a été envoyé au serveur
*
* @param message Le message
*/
@Override
public void LogSendMessage(String message)... | true |
1c1389e13f53ff1f7cff63663b7a4b5844148cfc | Java | wso2/integration-studio | /components/studio-platform/plugins/org.wso2.integrationstudio.artifact.security/src/org/wso2/integrationstudio/security/project/ui/dialog/RegistryKeyProperty.java | UTF-8 | 2,253 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* 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
*
* ... | true |
3859b7d5a7ef13ef414e06d6420c7735100e4e5a | Java | epr0/06AdvancedJava | /src/com/demo/io/example3/PersonWriter.java | UTF-8 | 733 | 3.265625 | 3 | [] | no_license | package com.demo.io.example3;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
public class PersonWriter {
public static void main(String[] args) {
Person person = new Person("Michael", 15, "Dudikoff");
File file = new File("/Use... | true |
e7d9f679ee1b8e9c4f6c1aab713e14ccc68c9767 | Java | seuxxd/LatestLiftApplication | /app/src/main/java/jsonmodel/LiftParams.java | UTF-8 | 3,670 | 2.34375 | 2 | [] | no_license | package jsonmodel;
/**
* Created by SEUXXD on 2017-09-13.
*/
public class LiftParams {
// 电梯参数
public double temperature;
public double humidity;
public double light;
public double distance;
public double voice;
public String[] voltage;
public String[] Amper;
public String[] dis;
... | true |
11582a2c57a3bfe51810853bb9f98e8243b5ae4c | Java | Weictor/myBase | /base/src/main/java/com/base/util/RegexUtils.java | UTF-8 | 4,653 | 3.109375 | 3 | [] | no_license | package com.base.util;
import android.text.Editable;
import android.widget.EditText;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by 俞智威
* on 2015-12-04.
* 13:27
* Procedure Explain:判断输入内容格式的工具类
*/
public class RegexUtils {
public static final String TAG = "RegexUtils";
... | true |
699882ddc35a288dc7e951a3b560e896b2e65c78 | Java | ZYX2018/LaborMarket | /labormarket/src/main/java/com/oracle/labormarket/service/impl/UserService.java | UTF-8 | 664 | 1.929688 | 2 | [] | no_license | package com.oracle.labormarket.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.oracle.labormarket.entity.LdlscUser;
import com.oracle.labormarket.mapper.UserMapper;
import com.oracle.la... | true |
6b704c27fb1516350c7e2547b2cf665d00b4d358 | Java | koola97620/JavaStudy | /JavaStudy/src/interview_builder/Pet.java | UTF-8 | 1,256 | 3.46875 | 3 | [] | no_license | package interview_builder;
import java.util.Date;
import org.junit.Test;
class Animal {
}
public class Pet {
public static class Builder {
private Animal animal;
private String petName;
private Date dateOfBirth;
public Builder withAnimal(final Animal animal) {
this.animal = animal;
return this... | true |
f407e24119c9f5877081c2c756e7add2400ca0c2 | Java | mc-suchecki/Battleships | /common/events/OpponentTurnAction.java | UTF-8 | 487 | 2.40625 | 2 | [] | no_license | package pl.mc.battleships.common.events;
import pl.mc.battleships.view.View;
/**
* @author mc
* Class representing setting opponent turn action.
*/
public class OpponentTurnAction extends ActionEvent {
private static final long serialVersionUID = 1L;
/* @see pl.mc.battleships.common.events.ActionEvent#execute... | true |
abf96c2aec1c1ca625d94108b8e32eceba242a37 | Java | blutorange/FormExpressionParser | /FormExpressionParser/src/de/xima/fc/form/expression/exception/parse/IllegalVariableSourceResolutionException.java | UTF-8 | 1,055 | 1.929688 | 2 | [
"WTFPL"
] | permissive | package de.xima.fc.form.expression.exception.parse;
import org.eclipse.jdt.annotation.NonNullByDefault;
import de.xima.fc.form.expression.grammar.Node;
import de.xima.fc.form.expression.iface.parse.IHeaderNode;
import de.xima.fc.form.expression.iface.parse.ISourceResolvable;
import de.xima.fc.form.expression.util.Cmn... | true |
3ae264ccb12c31d5f15b6ffac4766d5eb4ab80f6 | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/frf.java | UTF-8 | 7,059 | 1.578125 | 2 | [] | no_license | package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
import java.util.LinkedList;
public final class frf
extends com.tencent.mm.bx.a
{
public LinkedList<frd> YBg;
public String abQJ;
public String abQK;
public dhx abQL;
public int abQM;
public fre ab... | true |
97952fc89c32628ccf167cc85bcf44a1c48f7de7 | Java | IMFJJ/music | /src/main/java/com/study/io/FireWriterDemo.java | UTF-8 | 1,032 | 3.671875 | 4 | [] | no_license | package com.study.io;
import java.io.FileWriter;
import java.io.IOException;
public class FireWriterDemo {
public static void main(String[] args) throws IOException { //需要对IO异常进行处理
//创建一个FileWriter对象,该对象一被初始化就必须要明确被操作的文件。
//而且该文件会被创建到指定目录下。如果该目录有同名文件,那么该文件将被覆盖。
FileWriter fw ... | true |
386e9edf1824d6f2735098d65c0de6ba6cbe82a6 | Java | PickDream/Halo-RPC | /halo-spring-boot-starter/src/main/java/com/github/halo/spring/HaloConsumerPostProcessor.java | UTF-8 | 3,408 | 2.109375 | 2 | [] | no_license | package com.github.halo.spring;
import com.github.halo.annotation.HaloRpcReference;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanClassLoaderAware;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.config.BeanFactory... | true |
6f3efb9af76c98b9eb8bba0f19a8b29bd9ce7795 | Java | tmyzh13/FusionChargeNew | /app/src/main/java/com/huawei/fusionchargeapp/views/interfaces/ChargeCaptureView.java | UTF-8 | 378 | 1.664063 | 2 | [] | no_license | package com.huawei.fusionchargeapp.views.interfaces;
import com.corelibs.base.BaseView;
import com.huawei.fusionchargeapp.model.beans.ScanChargeInfo;
/**
* Created by zhangwei on 2018/4/30.
*/
public interface ChargeCaptureView extends BaseView{
public void onSuccess(ScanChargeInfo info);
public void onO... | true |
f57903b56a217844f39e8db5048eee02d9f22b54 | Java | creatubbles/ctb-api-android | /api/src/main/java/com/creatubbles/api/model/auth/UserAccessToken.java | UTF-8 | 210 | 1.78125 | 2 | [
"MIT"
] | permissive | package com.creatubbles.api.model.auth;
/**
* @author Pawel Szymanski
*/
public class UserAccessToken extends AccessToken {
public UserAccessToken(String token, String type) {
super(token, type);
}
}
| true |
42fc9d2db7da1422b0b3f1fb2b02f8088f817bbe | Java | LZ9/AgileDev | /app/src/main/java/com/lodz/android/agiledev/ui/photopicker/PhotoPickerTestActivity.java | UTF-8 | 23,910 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | package com.lodz.android.agiledev.ui.photopicker;
import android.Manifest;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
impo... | true |
898899ab55b7429eaf599389c44be5cf777a81e2 | Java | andriiblonskyi/print-photo-app | /src/main/java/com/ifedoroff/test/app/controller/MainController.java | UTF-8 | 1,996 | 2.34375 | 2 | [] | no_license | package com.ifedoroff.test.app.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.ifedoroff.test.app.model.MediaHandler;
import com.ifedoroff.test.app.social.instagram.Instagram;
import com.ifedoroff.test.app.social.instagram.model.Account;... | true |
67ed774b18e23fe462ba0fe015dfda0bc52b2cd3 | Java | SaberSola/LQian | /LQian-springboot-algorithm/src/main/java/com/zl/lqian/jianzhi/data/SelectSort.java | UTF-8 | 1,125 | 3.953125 | 4 | [] | no_license | package com.zl.lqian.jianzhi.data;
import java.util.Arrays;
/**
* @Author zl
* @Date 2020-04-08
* @Des 选择排序
*/
public class SelectSort {
/**
* 找到数组中最小的那个元素,其次,将它和数组的第一个元素交换位置(如果第一个元素就是最小元素那么它就和自己交换)。
* 其次,在剩下的元素中找到最小的元素,将它与数组的第二个元素交换位置。如此往复,直到将整个数组排序。这种方法我们称之为选择排序
*
* @param a
* @ret... | true |
5443980eb27afb7e6c1c603d387cfa182ab38182 | Java | Yona-Appletree/gwt.threejs | /src/main/java/com/google/code/gwt/threejs/client/extras/physics/PlaneCollider.java | UTF-8 | 322 | 2.21875 | 2 | [] | no_license | package com.google.code.gwt.threejs.client.extras.physics;
import com.google.code.gwt.threejs.client.core.Vector3;
public class PlaneCollider extends AbstractCollider {
public Vector3 point;
public Vector3 normal;
public PlaneCollider(Vector3 point, Vector3 normal){
this.point = point;
this.normal = normal;
}... | true |
f911653f37c0b14cc0d2114307028606a7509719 | Java | garryInWeb/spring_wheel | /litespring/src/test/java/org/litespring/text/v5/ReflectiveMethodInvocationTest.java | UTF-8 | 3,736 | 2.203125 | 2 | [] | no_license | package org.litespring.text.v5;
import org.aopalliance.intercept.MethodInterceptor;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.litespring.aop.aspectj.AspectJAfterReturningAdvice;
import org.litespring.aop.aspectj.AspectJAfterThrowingAdvice;
import org.litespring.aop.aspectj.Asp... | true |
9e8e2506f741233a795c759e3efe5f1df2b66189 | Java | claudio-teles/gerente-virtual-backend | /src/main/java/modelo/produto/Produto.java | UTF-8 | 2,237 | 2.140625 | 2 | [] | no_license | package main.java.modelo.produto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence... | true |
2a37fe7e5dd8bbcbe87878b8efaf2d7785b1d2d2 | Java | EgoGroup/Ego | /ego-common/src/main/java/com/yoke/ego/common/pojo/MemberExample.java | UTF-8 | 29,483 | 2.15625 | 2 | [] | no_license | package com.yoke.ego.common.pojo;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MemberExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public MemberExample() {
oredCriteria = n... | true |
f4ec188f5fc5d07f8e0f6e335bbe96588cc89af7 | Java | sfpuebla/MyBooks | /app/src/main/java/com/edu/uoc/mybooks/BookDetailFragment.java | UTF-8 | 4,647 | 2.359375 | 2 | [] | no_license | package com.edu.uoc.mybooks;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.design.widget.CollapsingToolbarLayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import a... | true |
d9d054562b98472b012180ce1cad1b2cd7df3eb6 | Java | cckmit/itss | /tags/09_Flame_AcegiModify_20110509/src/java/com/zsgj/info/framework/aop/interceptor/DBFilterDefinitionSource.java | GB18030 | 4,779 | 1.984375 | 2 | [] | no_license | package com.zsgj.info.framework.aop.interceptor;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import org.acegisecurity.ConfigAttributeDefinition;
import org.acegisecurity.ConfigAttributeEditor;
import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.intercep... | true |
0a1aa157ee70aeab314d714c0d22b1dc9882fb49 | Java | Astella8/CS310DB | /src/edu/jsu/mcis/TASDatabase.java | UTF-8 | 3,979 | 3.171875 | 3 | [] | no_license | package edu.jsu.mcis;
import java.sql.*;
/**
* The TASDatabase class connects to the mySQL database and gets necessary data
* from the specified table.
*
* @author Brandon
*/
public class TASDatabase {
Connection conn;
/**
* Creates connection to the database.
*/
public... | true |
89abb60d4d763bc8abd097e274d127f31ca2665a | Java | nanHaiBank/Bank | /SpringBoot_ClientLong2/src/main/java/com/lxit/ssdc/User.java | UTF-8 | 514 | 1.984375 | 2 | [] | no_license | package com.lxit.ssdc;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.whalin.MemCached.MemCachedClient;
@Controller
public class User {
@Resource
MemCachedClient memCachedClient;
@R... | true |
fd2b60dd487c6299876db2e9d0b8a37848a14cfa | Java | CloudSL/Digital-Pulz-for-Hospitals | /HIS_Latest_Project_29-07-2016/Backend/NewWorkspace_2016/HIS_API/src/main/java/lib/driver/clinic/driver_class/clinic_patient_queueDBDriver.java | UTF-8 | 4,346 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package lib.driver.clinic.driver_class;
import java.sql.Date;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collection;
import java.util.List;
import lib.SessionFactoryUtil;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hiberna... | true |
b373e06d7f13cdcaf9d777ab59a7b194dd37d88b | Java | sage417/kancolle-server | /src/main/java/com/kancolle/server/model/kcsapi/battle/enemy/EnemyInfo.java | UTF-8 | 1,137 | 2.015625 | 2 | [
"BSD-3-Clause"
] | permissive | package com.kancolle.server.model.kcsapi.battle.enemy;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Package: com.kancolle.server.model.kcsapi.battle.enemy
* Author: mac
* Date: 16/4/1
*/
@Js... | true |
c2d39cdf7d9288b467ce7a86c380a5161ad31f78 | Java | 627721565/flowable-engine | /modules/flowable-bpmn-model/src/main/java/org/flowable/bpmn/model/alfresco/AlfrescoScriptTask.java | UTF-8 | 652 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package org.flowable.bpmn.model.alfresco;
import org.flowable.bpmn.model.ServiceTask;
public class AlfrescoScriptTask extends ServiceTask {
public static final String ALFRESCO_SCRIPT_DELEGATE = "org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate";
public static final String ALFRESCO_SCRIPT_EXECUTI... | true |
adf44584e410b5fde50ae616eaa9dc3f6db34901 | Java | athulyaraj/covid-delivery-service | /src/main/java/com/covid/support/deliveryservice/service/StoreService.java | UTF-8 | 386 | 1.960938 | 2 | [] | no_license | package com.covid.support.deliveryservice.service;
import com.covid.support.deliveryservice.entities.Store;
import com.covid.support.deliveryservice.models.ResponseModel;
public interface StoreService {
public ResponseModel createStore(Store store);
public ResponseModel updateStoreDetails(Store store,Integer... | true |
a29d5e9edeb42a45085a43ef9fe9528a64713b83 | Java | Captain-HG/share | /src/main/java/com/qilinxx/shareAct/controller/admin/AdminProvideController.java | UTF-8 | 4,291 | 1.945313 | 2 | [] | no_license | package com.qilinxx.shareAct.controller.admin;
import com.qilinxx.shareAct.domain.model.Provide;
import com.qilinxx.shareAct.service.ProvideService;
import com.qilinxx.shareAct.util.Commons;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.spri... | true |
ff57484b423b92eac82ca9430a68843716b53b00 | Java | xinbinxuan1/demo1 | /user/src/main/java/com/jk/service/UserServiceImpl.java | UTF-8 | 2,229 | 2.078125 | 2 | [] | no_license | package com.jk.service;
import com.jk.entity.StaffBean;
import com.jk.entity.SysUser;
import com.jk.entity.Tree;
import com.jk.mapper.UserMapper;
import com.jk.pojo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Servic... | true |
ccb91d960de1c98e88dfeef9d2eb2af378f5e635 | Java | spring-cloud/spring-cloud-dataflow | /spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/batch/SearchableJobExecutionDao.java | UTF-8 | 6,534 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006-2007 the original author or authors.
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | true |
a2102c2fa5e64029f92b2fc13c1d7db32a977224 | Java | qiliangwang/Hadoop | /HOS-Service/HOS-Common/src/main/java/com/coderap/hos/common/BucketModel.java | UTF-8 | 708 | 2 | 2 | [
"MIT"
] | permissive | package com.coderap.hos.common;
import com.coderap.hos.core.usermanager.CoreUtil;
import lombok.Data;
import java.util.Date;
/**
* @program: HOS-Service
* @description:
* @author: Lennon Chin
* @create: 2018/05/21 21:47:46
*/
@Data
public class BucketModel {
private String bucketId;
private String buck... | true |
ecda9ae65ff1ab08500d9ef087e9ce949f624e03 | Java | League-Level0-Student/level-0-module-1-NhanLe92105 | /src/MyAges.java | UTF-8 | 142 | 2.09375 | 2 | [] | no_license |
public class MyAges {
public static void main(String[] args) {
for (int age=0;age<13; age++) {
System.out.println(age);
}
}
}
| true |
a57f5b96c9d68198ec4993f2ceaacfb6af902955 | Java | christerhamberg/1DV607 | /Workshop3/Grade3/src/model/rules/AmericanNewGameStrategy.java | UTF-8 | 696 | 2.609375 | 3 | [] | no_license | package model.rules;
import model.Dealer;
import model.Player;
import model.visitor.RuleElement;
import view.visitor.RuleElementVisitor;
public class AmericanNewGameStrategy implements INewGameStrategy,RuleElement {
@Override
public void accept(RuleElementVisitor visitor) {
visitor.visit(this);
}
public ... | true |
8bf777ab766a453801c7e1a18198bbe3f828f716 | Java | yagosupro/Library | /src/main/java/com/bob/repository/BookDAO.java | UTF-8 | 1,892 | 2.640625 | 3 | [] | no_license | package com.bob.repository;
import com.bob.DBWorker;
import com.bob.entity.Book;
import com.bob.entity.Client;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
/**
* Created by bob on 25.01.2017.
*/
public class BookDAO {
public void insert(... | true |
6a61f6dae278120d190bfd4e1045d63f097bd29d | Java | julianvilla26/pruebaOSP | /APP_PERSONAS/src/main/java/co/com/bancolombia/certificacion/app/questions/pagos/VerificarMensajePagoMayor.java | UTF-8 | 649 | 2 | 2 | [] | no_license | package co.com.bancolombia.certificacion.app.questions.pagos;
import co.com.bancolombia.certificacion.app.utilidades.administradores.Verificar;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import static co.com.bancolombia.certificacion.app.userinterface.pages.pagos.PagosPage.TX... | true |
0f440238f168c93239e6527af9bda164c8ceaee8 | Java | olegshegula/olo | /src/main/java/com/olo/propertyutil/DriverCapabilitiesProperties.java | UTF-8 | 794 | 2.3125 | 2 | [] | no_license | package com.olo.propertyutil;
import java.util.Properties;
import org.testng.log4testng.Logger;
public class DriverCapabilitiesProperties {
private static final Logger LOGGER = Logger.getLogger(DriverCapabilitiesProperties.class);
private static Properties capProp = new Properties();
static{
loadProperties(... | true |
2744523c67eafcfa88e5338446bc62f10b68e836 | Java | dliang123/framework | /framework-base/src/main/java/com/yuntu/base/CommonStatus.java | UTF-8 | 479 | 2.40625 | 2 | [] | no_license | package com.yuntu.base;
/**
* 2016/11/7.
*/
public enum CommonStatus implements Status{
normal("正常"),locking("锁定"),used("使用"),cancel("作废");
private String desc;
CommonStatus(String desc){
this.desc = desc;;
}
@Override
public String getDescription() {
return desc;
}
... | true |
7a2d808fba94d5f3e5d92844e79c9dce68545a88 | Java | qcbigbom/BIGBOM-FB | /src/main/actions/ObjectPageJson/Login.java | UTF-8 | 3,731 | 1.953125 | 2 | [] | no_license |
package ObjectPageJson;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Login {
@SerializedName("emailAndSdtorPasswordIncorrectMsg")
@Expose
private String emailAndSdtorPasswordIncorrectMsg;
@SerializedName("PhoneNumberIncorrectMsg")
@Ex... | true |
118812fad2368a60d376460af9e2196ab4667868 | Java | koala-project/koala-utils | /gateway/src/main/java/com/koala/utils/gateway/entity/ApiParameterInfo.java | UTF-8 | 1,248 | 2.03125 | 2 | [] | no_license | package com.koala.utils.gateway.entity;
public class ApiParameterInfo {
/**
* 参数类型
*/
public Class<?> type;
/**
* 用于定义String类型参数取值的枚举类型
*/
public Class<? extends Enum> verifyEnumType;
/**
* 当入参为Collection 或 数组时, 若actuallyGenericType有值, 则值为实际的泛型信息
*/
public Class<... | true |
95f41dc0cc58362e0cc5612507e431d58bc84e12 | Java | demetradrizis/Java | /Assignment 11/Exercise16_10/src/DuplicateElimination.java | UTF-8 | 1,338 | 3.890625 | 4 | [] | no_license | /* Demetra Drizis
* Assignment 11
*/
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Scanner;
public class DuplicateElimination
{
static ArrayList<String> removeDup(ArrayList<String> list)
{
ArrayList<String> answer = new ArrayList<>();
HashSet<String> set = new HashSet<>();
for (S... | true |
6644a629241b579e2db5453eb4308228814acbe3 | Java | JPRB/PlanetBound | /src/PlanetBound/GameLogic/Dados/Eventss/CrewRescueEvent.java | UTF-8 | 742 | 2.828125 | 3 | [] | no_license | package PlanetBound.GameLogic.Dados.Eventss;
import PlanetBound.GameLogic.Dados.GameData;
import PlanetBound.GameLogic.Dados.Nave.Nave;
import PlanetBound.GameLogic.Utils.Enums;
public class CrewRescueEvent extends Event {
public CrewRescueEvent (GameData data) {
super(data);
}
@Override
pub... | true |
dae0fe3d864d49e6321c4e8440acbc91bce1e7f7 | Java | caoyanglong/Video | /app/src/main/java/com/day/l/video/model/TokenEntity.java | UTF-8 | 672 | 1.835938 | 2 | [] | no_license | package com.day.l.video.model;
/**
* Created by cyl
* on 2016/9/18.
* email:670654904@qq.com
*/
public class TokenEntity {
/**
* state : success
* msg : 1474206271
* data : u5YkcHS2KAeTpWVhYp2F8EzF6fXfX+mXLgBLzprcj+9itoqzldqwdK7na7Bc766uuY8EC8eVjko29X9o0bUw10nCJADJTXICtS5g6+v6EGrf8it7khffhXbBD... | true |
856da744e20c6fd9a20a3f48fb19dd625f86f7d3 | Java | tsehelnyk/amazon-reviews-app | /src/main/java/com/dev/boot/amazonreviewsapp/service/impl/AuthenticationServiceImpl.java | UTF-8 | 944 | 2.328125 | 2 | [] | no_license | package com.dev.boot.amazonreviewsapp.service.impl;
import com.dev.boot.amazonreviewsapp.entity.model.User;
import com.dev.boot.amazonreviewsapp.service.AuthenticationService;
import com.dev.boot.amazonreviewsapp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframe... | true |
957726e1a9578cc9239ea550962472d69adac67c | Java | rpablos/FastInfoset | /FastInfoset/src/fastinfoset/sax/ObjectAlgorithmHandler.java | UTF-8 | 1,857 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Ronald Pablos.
*
* 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 |
b65d2938924c21c8ae10e2b8b546aea3090458a5 | Java | libit/lr_bst | /app/src/main/java/com/lrcall/appbst/services/NewsService.java | UTF-8 | 4,510 | 2.015625 | 2 | [] | no_license | /*
* Libit保留所有版权,如有疑问联系QQ:308062035
* Copyright (c) 2016.
*/
package com.lrcall.appbst.services;
import android.content.Context;
import com.androidquery.callback.AjaxStatus;
import com.google.gson.reflect.TypeToken;
import com.lrcall.appbst.models.NewsInfo;
import com.lrcall.appbst.models.TableData;
import com.lrc... | true |
b4b6b1562e73f0b7ef46b829536d6ad01273d715 | Java | kmhasan-seu-edu-bd/spring2020cse2015 | /12/Lecture3/src/main/java/bd/edu/seu/lecture3/Lab1.java | UTF-8 | 1,812 | 3.78125 | 4 | [] | 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 bd.edu.seu.lecture3;
class Point {
double x;
double y;
// constructor
Point(double nx, double ny) {
... | true |
ea1a65e4994367c94e2be9067364bd37ca17b695 | Java | wangzaidali/nz-rpc | /rpc-integration/src/main/java/com/nz/rpc/interceptor/impl/ClusterFaultToleranceInterceptor.java | UTF-8 | 2,408 | 2.75 | 3 | [] | no_license | package com.nz.rpc.interceptor.impl;
import com.nz.rpc.cluster.ClusterFaultHandler;
import com.nz.rpc.interceptor.Interceptor;
import com.nz.rpc.invocation.client.ClientInvocation;
import lombok.extern.slf4j.Slf4j;
/**
*功能描述
* @author lgj
* @Description 集群容错处理
*
* 出错原因:
* 1.服务端关闭channel,或者服务端宕机
* 2.服务端拒绝请求(请求... | true |
11e77ae47a19972a3ba74e50b0c9b3d67034b2a1 | Java | nguyenson2012/TabLayoutExample | /app/src/main/java/com/nguyenthanhson/tablayoutexample/PracticeSoundListenFragment.java | UTF-8 | 670 | 2.125 | 2 | [] | no_license | package com.nguyenthanhson.tablayoutexample;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
* Created by SON on 1/12/2016.
*/
public class PracticeSoundList... | true |
456efeb17bfc98d405f697b74f00a86d7445ff48 | Java | jlolling/talend-job-refactoring | /src/main/java/de/jlo/talend/tweak/model/job/PanelTaskSearchByComponentAttributes.java | UTF-8 | 9,857 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package de.jlo.talend.tweak.model.job;
import java.awt.Cursor;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import... | true |
4a82e798d31779b90d897224b878700d441759ca | Java | Crpaxton4/CSE201 | /.settings/src/GameController.java | UTF-8 | 5,211 | 3.46875 | 3 | [] | no_license | /**
* CSE 201, Section A
* Team 3
* Chris Anderson, Chris Paxton, Korey Smith
*/
public class GameController {
private static final int rows = 6;
private static final int columns = 7;
private static final char yellow = 'Y';
private static final char red = 'R';
private GameModel masterDataLog;
/*
* C... | true |
c026f479d862b505e40ffe21df24094d7cd1be58 | Java | mariobatres7/academik-tls1c2021 | /Demo-Proyecto/src/main/java/edu/telus/demo/proyecto/converter/ProfesionDTOConverter.java | UTF-8 | 782 | 2.453125 | 2 | [] | no_license | package edu.telus.demo.proyecto.converter;
import edu.telus.demo.proyecto.dominio.Profesion;
import edu.telus.demo.proyecto.dto.NameBasicsDTO;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
/**
*
* @author Mario Batres
*/
public class ProfesionDTOConverter implements Con... | true |
cb5e20b7a340100f8afbadaf552de185f0a1f402 | Java | VenkateshManohar27/Leetcode | /src/com/ven/leetcode/jan2021/challenge/MinimumSubsequenceNonIncreasingOrder.java | UTF-8 | 2,198 | 3.78125 | 4 | [] | no_license | package com.ven.leetcode.jan2021.challenge;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Given the array nums, obtain a subsequence of the array whose sum of elements
* is strictly greater than the sum of the non included elements in such
* subsequence.
*
* If the... | true |
3bf190681cdd696247bcfae61c02ac5fce1634be | Java | Distribuerede-Systemer-2017/STFU | /src/main/server/models/Event.java | UTF-8 | 1,786 | 2.46875 | 2 | [] | no_license | package main.server.models;
import java.sql.Timestamp;
public class Event {
private int idEvent, price, studentId;
private String eventName, location, description, pictures;
private Timestamp date;
public Event(int idEvent, int price, int studentId, String eventName, String location, String descript... | true |
9977f070f3ad46a77a5887ad79725c45ab1e2c5b | Java | tecanalise/vidracaria | /src/br/com/mjailton/vendasjsf/dao/SaidadinheiroDao.java | UTF-8 | 1,265 | 2.328125 | 2 | [] | no_license | package br.com.mjailton.vendasjsf.dao;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import br.com.mjailton.vendasjsf.modelo.Saidadinheir... | true |
cff1eea59f2c7d7330c80722b179fb9e598a01dc | Java | YifengWong/automobile | /src/main/java/automobile/business/entities/repositories/FavorablesSmallClassesMiddleDaoImpl.java | UTF-8 | 868 | 2.28125 | 2 | [] | no_license | package automobile.business.entities.repositories;
import java.util.List;
import org.springframework.stereotype.Repository;
import automobile.business.entities.FavorablesSmallClassesMiddle;
import automobile.business.entities.SmallClass;
@Repository
public class FavorablesSmallClassesMiddleDaoImpl extends Abstract... | true |
d917d2dee02969a2ae6c57eafaa76716769a2ae7 | Java | Jasig/SSP-Platform | /uportal-war/src/main/java/org/jasig/portal/portlet/container/PortletResourceResponseContextImpl.java | UTF-8 | 3,824 | 1.742188 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"EPL-1.0",
"Classpath-exception-2.0",
"CPL-1.0",
"CDDL-1.0",
"MIT",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-or-later",
"LGPL-2.1-only",
"MPL-1.1",
"JSON",
"GPL-2.0-only",
"xpp",
"Apache-2.0",
"Licen... | permissive | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | true |
acbfa42e17df09a909e60ee3282ca59b53e475e5 | Java | zsg-ad/RVLayoutManager | /RvSmartAdapter/src/main/java/com/android/app/smartadapter/cell/RvSmartBaseCell.java | UTF-8 | 334 | 2.5 | 2 | [] | no_license | package com.android.app.smartadapter.cell;
/**
* 一种model的默认实现
*/
public class RvSmartBaseCell implements IRvSmartCell {
protected String itemType;
public RvSmartBaseCell(String itemType) {
this.itemType = itemType;
}
@Override
public String getType() {
return itemType;
}
}
| true |
1805c4dd2f0e93d6ae26632e1a901a2c7b03e32e | Java | daspect/SpaceSim | /src/spaceSimStuff/Planet.java | UTF-8 | 6,175 | 3.28125 | 3 | [] | no_license | package spaceSimStuff;
import java.awt.Color;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
/**The planet class contains all of the properties of a body in a space system as well as methods for updating those properties.
* It is intended to be used with a simulator that upd... | true |
5e886592a10c3f870ccc40297b17be3718a36d37 | Java | Janlex2016/DataBase | /src/java/eg/converters/Converter.java | UTF-8 | 1,586 | 2.484375 | 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 eg.converters;
import eg.models.History;
import eg.models.User;
import eg.models.Voting;
import java.sql.ResultSet;
import jav... | true |
5863d87264ee348f8e28e31ecf0cc230e31f415f | Java | emersonluiz/documentation | /src/main/java/br/com/emersonluiz/service/DefaultErdService.java | UTF-8 | 2,399 | 2.25 | 2 | [] | no_license | package br.com.emersonluiz.service;
import java.io.InputStream;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.emersonluiz.model.Erd;
import br.com.emersonluiz.model.Entities;
import br.com.emersonluiz.repository.ErdR... | true |
cad4b0d44b7d9b0b29a85564b5bef887ff8f05c6 | Java | EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE/azeroth | /azeroth-emitter/src/main/java/cn/com/warlock/emitter/zk/SynchronizedGeneratorIdentity.java | UTF-8 | 3,628 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package cn.com.warlock.emitter.zk;
import java.io.IOException;
import java.time.Duration;
import java.util.function.Supplier;
import cn.com.warlock.emitter.GeneratorException;
import cn.com.warlock.emitter.GeneratorIdentityHolder;
import cn.com.warlock.emitter.bytes.Blueprint;
import cn.com.warlock.emitter.zk.connect... | true |
0bc70ee2de8dcd22f7a0f54474f618f461453c08 | Java | CarlosFeldmann/ExerciciosBootcamp | /Modulo5/src/main/java/dev/feldmann/bootcamp/aula4/savetheropa/GuardaRoupa.java | UTF-8 | 940 | 2.78125 | 3 | [] | no_license | package dev.feldmann.bootcamp.aula4.savetheropa;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GuardaRoupa {
private Integer currentId = 2555;
HashMap<Integer, List<Vestuario>> storage = new HashMap<>();
public Integer guardaVestuarios(Lis... | true |
ea487b7622180ea2e9b8e14909a7a8957e811f3e | Java | ChenjingEr/java-in-action | /java-io/src/main/java/pro/jing/io/net/fakeaio/TimeServerHandlerExecutePool.java | UTF-8 | 600 | 2.40625 | 2 | [] | no_license | package pro.jing.io.net.fakeaio;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TimeServerHandlerExecutePool {
private ExecutorService es;
public TimeServerHa... | true |
5165c3cc547bdf6128ead92937916ae0572c48cd | Java | w554823429/Demo | /src/com/example/demo/InjectActivity.java | GB18030 | 612 | 2.125 | 2 | [] | no_license | package com.example.demo;
import com.example.demo.annotation.InjectView;
import com.example.demo.annotation.InjectViewParser;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;
public class InjectActivity extends Activity {
@InjectView(id = ... | true |
0905d6af2b1e63a691c2e38f672cec1f86165493 | Java | unbeatablesites/glossary-project | /definition-service/src/main/java/com/trilogyed/definitionservice/controller/DefinitionController.java | UTF-8 | 1,286 | 2.390625 | 2 | [] | no_license | package com.trilogyed.definitionservice.controller;
import com.trilogyed.definitionservice.exception.NotFoundException;
import com.trilogyed.definitionservice.models.Definition;
import com.trilogyed.definitionservice.repository.DefinitionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import... | true |
d23f00409c338b46d74ae6e4bd106b583dda2902 | Java | azaharag/PrimeraYSegunda | /clases_objetos/src/herencia/Persona.java | ISO-8859-1 | 1,785 | 3.515625 | 4 | [] | no_license | package herencia;
public class Persona {
String nif;
String nombre;
int edad;
Persona(String nif, String nombre, int edad)
{
this.nif=nif;
this.nombre=nombre;
this.edad=edad;
}
Persona()
{
nif="2569-F";
nombre="Pedro";
edad=27;
}
// void mostrar()
// {
// System.out.pr... | true |
272857ecdcf9759793fdc2cc69ba7a0127e37159 | Java | romainglaudin/BRAH | /src/FenConstruction.java | ISO-8859-1 | 5,428 | 3.0625 | 3 | [] | no_license | import javax.swing.*;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class FenConstruction extends JPanel {
// choix du composant
private JPanel choixcompo; // conteneur images composant plus boutons d... | true |
ef69e825deafa825c29e66a3a19cff1f411ce384 | Java | PeterCsubak/uibuilder-components | /c3-charts/src/main/java/eu/redbean/uibuilder/components/charts/data/IndexedXAxisBuilder.java | UTF-8 | 629 | 2.53125 | 3 | [] | no_license | package eu.redbean.uibuilder.components.charts.data;
import java.util.Collection;
public class IndexedXAxisBuilder<ELEMENT> extends XAxisBuilder<ELEMENT, Double> {
IndexedXAxisBuilder(String name, AxisConverter<ELEMENT, Double> converter, DataFrameBuilder<ELEMENT> dataFrameBuilder) {
super(name, converte... | true |
c41cabbaa0b3f5ae10dda585f87679f7ce4ea509 | Java | hussaintalha/chillifrog | /src/main/java/com/wealthtax/chillifrog/config/countryconfig/Country.java | UTF-8 | 2,445 | 2.140625 | 2 | [] | no_license | package com.wealthtax.chillifrog.config.countryconfig;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "country")
public class Country ... | true |
0aade1fa00b2027db1569ee8fc02faa61893b3a0 | Java | SuperMarket-Team/supermarket | /domain/src/main/java/com/tonyzhai/shop/domain/portal/goods/Goods.java | UTF-8 | 3,834 | 2.0625 | 2 | [] | no_license | package com.tonyzhai.shop.domain.portal.goods;
import com.tonyzhai.shop.domain.base.BaseInfo;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.List;
/**
* Goods domain model
*
* @... | true |
910fefb2a403db997263a820acf31ac535eb61b4 | Java | jlunaoax/karate-wiremock | /karate-wiremock/src/test/java/examples/WireMockTest.java | UTF-8 | 2,134 | 2.203125 | 2 | [] | no_license | package examples;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.intuit.karate.KarateOptions;
import com.intuit.karate.junit4.Karate;
import static com.github.tomakehurst.wiremock.client.WireMock.*;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
impor... | true |
61d7ead1f1b1a28df310c59b0c1d875384004e93 | Java | BBK-PiJ-2015-10/Ongoing | /PIJReview/src/theappbusiness/bridgephase/InterviewPractice.java | UTF-8 | 2,202 | 3.21875 | 3 | [] | no_license | package theappbusiness.bridgephase;
import java.util.List;
import java.util.LinkedList;
import java.util.Map;
import java.util.HashMap;
import java.util.Collections;
import java.util.stream.Collectors;
public class InterviewPractice {
public static void main(String[] args) {
InterviewPractice ip = new Interv... | true |
3a8e38e6d1b949c387f5154d990f73abd6751361 | Java | ysuga/JAVROS | /src/net/ysuga/javros/node/service/ROSServiceConsumer.java | UTF-8 | 2,867 | 2.140625 | 2 | [] | no_license | /**
* TCPROSService.java
*
* @author Yuki Suga (ysuga.net)
* @date 2011/09/06
* @copyright 2011, ysuga.net allrights reserved.
*
*/
package net.ysuga.javros.node.service;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.net.UnknownHostException;
import java.util.ArrayLi... | true |
b8b170b0887e147449fcb983b5352cfe9e628d45 | Java | RatchapongT/SpiceMixerWebApp | /views/algorithm-practice/leetcode-java/java-pascals-triangle-ii_3.java | UTF-8 | 356 | 3.0625 | 3 | [] | no_license | public class Solution {
public List<Integer> getRow(int rowIndex) {
List<Integer> list = new ArrayList();
list.add(1);
for (int i = 1; i < rowIndex + 1; i++) {
double digit = list.get(i - 1) * ((double) (rowIndex - i + 1) / i);
list.add((int) (Math.round(digit)));
... | true |
c1938d4982f31d32c577cfc57ef967985c64c160 | Java | dsw418/MissionPlanningApp | /app/src/main/java/com/example/missionplanningapp/MissionPlanning.java | UTF-8 | 3,313 | 2.109375 | 2 | [] | no_license | package com.example.missionplanningapp;
import android.Manifest;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Build;
import android.support.v4.content.ContextCompat;
impo... | true |