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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3992b7364ee9f1efbf0ca34c4b19ba5af0b3be39 | Java | lpath78/allarchiJava | /src/main/java/com/allarchi/allarchi/model/enities/Projet.java | UTF-8 | 831 | 1.8125 | 2 | [] | no_license | package com.allarchi.allarchi.model.enities;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.Entity;
import java.util.Date;
@Entity
@NoArgsConstructor
public class Projet extends AbstractEntities {
@Getter
@Setter
private int numDossier;
@Getter
... | true |
a4ab7b90fc9f78971dc19ee53a73966f1d24a6f2 | Java | mustang2247/cmswechatpublic | /src/main/java/com/open/coinnews/web/controller/web/PublicController.java | UTF-8 | 3,880 | 2.125 | 2 | [] | no_license | package com.open.coinnews.web.controller.web;
import com.open.coinnews.app.dto.CateDto;
import com.open.coinnews.app.model.Article;
import com.open.coinnews.app.model.Comment;
import com.open.coinnews.app.model.Notice;
import com.open.coinnews.app.model.Tag;
import com.open.coinnews.app.service.*;
import com.open.coin... | true |
8248d8aab126aa0037051d25c11ea00da44e0535 | Java | sowmiyaSattanathan/DataComparison_UI | /src/com/data/comparison/controller/DataComparisonController.java | UTF-8 | 4,200 | 2.0625 | 2 | [] | no_license | package com.data.comparison.controller;
import javax.servlet.ServletContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.struts2.util.ServletContextAware;
import com.data.comparison.constants.DataComparisonConst... | true |
22e6cf7eb292ef97f15d93f4b39cbe62aed8c931 | Java | abchip/mimo | /org.abchip.mimo.audio/src/org/abchip/mimo/audio/impl/AudioPackageImpl.java | UTF-8 | 11,259 | 1.710938 | 2 | [] | no_license | /**
* Copyright (c) 2017, 2021 ABChip and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.abchip.... | true |
56356feec3861a09d84e0f2deac6949b20a46e47 | Java | 024N/veripark | /app/src/main/java/oz/veriparkapp/Utils/ProgressDialogEvent.java | UTF-8 | 771 | 2.546875 | 3 | [] | no_license | package oz.veriparkapp.Utils;
public class ProgressDialogEvent {
public enum EventType { START, STOP }
private EventType eventType;
private String eventMessage;
public ProgressDialogEvent(EventType eventType) {
this.eventType = eventType;
}
public ProgressDialogEvent(EventType event... | true |
b3817af3a196b7879a80e4d3fab2d9545ef0ac64 | Java | Wizzercn/NutzWk | /src/main/java/com/budwk/app/web/commons/slog/annotation/SLog.java | UTF-8 | 732 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.budwk.app.web.commons.slog.annotation;
import java.lang.annotation.*;
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface SLog {
String type() default "platform";
/**
* 标签
*
* @return
*/
String tag();
... | true |
045785645a671f20b981b01e8ce8cadb6ec6489a | Java | fabiocapi/cost-management-be2 | /src/main/java/cost/management/entities/DatiContrattuali.java | UTF-8 | 1,371 | 2.28125 | 2 | [] | no_license | package cost.management.entities;
import java.util.ArrayList;
import java.util.List;
public class DatiContrattuali {
private String codiceFiscale;
private String azienda;
private String nome;
private String cognome;
private List<TipologiaContratto> tipologiecontratto;
public DatiContrattuali() {
}
... | true |
51fbbfcb4f831715b5677c8786ab7b82cf4bfe43 | Java | gongcheng2022/RobotGo-Game | /RobotGo/src/model/Words.java | UTF-8 | 1,411 | 3.421875 | 3 | [
"MIT"
] | permissive | package model;
import java.util.*;
public class Words {
private static Map<String,String> wordDictionary;
/**
* @constructor
**/
public Words(){
wordDictionary = new HashMap<String,String>();
}
/**
* @pre nothing
* @post nothing
* @return the word dictionary
**/
public stat... | true |
988e9146d55250a56fea845abfff3a962a5de87f | Java | NickolaiKinkolykh/home | /src/main/java/desktop/fragments/SearchResultFragment.java | UTF-8 | 1,350 | 2.484375 | 2 | [] | no_license | package desktop.fragments;
import abstractClasses.fragment.AbstractFragment;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.util.List;
import java.util.stream.Collectors;
import static desktop.pages.WebComponentFactory.createFragments;
pu... | true |
04d6a1f88e3dcd69a1aefc7f82097f55343e5b32 | Java | flywind2/joeis | /src/irvine/oeis/a123/A123958.java | UTF-8 | 319 | 2.40625 | 2 | [] | no_license | package irvine.oeis.a123;
import irvine.oeis.LinearRecurrence;
/**
* A123958 Expansion of <code>x^3 / ( 1+2*x^2+2*x^3 )</code>.
* @author Sean A. Irvine
*/
public class A123958 extends LinearRecurrence {
/** Construct the sequence. */
public A123958() {
super(new long[] {-2, -2, 0}, new long[] {0, 0, 1});... | true |
a6af73ff92c66ccb8a1d4be4ec62c9dffe9be1e9 | Java | panxiufeng/panxftest | /common-project/src/main/java/com/pxf/project/common/util/HtmlStringUtil.java | UTF-8 | 12,041 | 2.96875 | 3 | [] | no_license | package com.pxf.project.common.util;
import com.google.common.base.Strings;
import com.pxf.project.common.util.date.DateUtil;
import com.pxf.project.common.util.date.TimeUtil;
import org.apache.commons.lang.StringUtils;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
im... | true |
2e54bd62cf74f808e1701b6c8670a4ff40d9012d | Java | linux86/AndoirdSecurity | /AndroidApplications/com.zeptolab.ctr.ads-912244/src/com/google/android/gms/location/ActivityRecognitionResult.java | UTF-8 | 2,764 | 2.0625 | 2 | [] | no_license | package com.google.android.gms.location;
import android.content.Intent;
import android.os.Parcel;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.internal.er;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
public class ActivityRec... | true |
656c2cd46221666373cd48702c242c10d4fa358b | Java | IronTomato/site-clone | /src/main/java/com/irontomato/siteclone/common/CommonUtils.java | UTF-8 | 219 | 1.96875 | 2 | [] | no_license | package com.irontomato.siteclone.common;
import org.apache.commons.codec.digest.DigestUtils;
public class CommonUtils {
public static String digest(String data) {
return DigestUtils.md5Hex(data);
}
}
| true |
b5a2e8b76e7d0e53dd65fcc2b055b8178f88d5f2 | Java | vinfai/hy_project | /rainbowcenter/rainbow-core/src/main/java/com/mockuai/rainbowcenter/core/service/action/erp/HsCancelOrderAction.java | UTF-8 | 1,564 | 2.03125 | 2 | [] | no_license | package com.mockuai.rainbowcenter.core.service.action.erp;
import com.mockuai.rainbowcenter.common.api.RainbowResponse;
import com.mockuai.rainbowcenter.common.constant.ActionEnum;
import com.mockuai.rainbowcenter.common.constant.ResponseCode;
import com.mockuai.rainbowcenter.core.exception.RainbowException;
import co... | true |
a97cdf20b9e6cc5ffdde2eb9a0ca5916cc130332 | Java | cckmit/DataShop | /source/edu/cmu/pslc/datashop/oli/dao/LogSessionDao.java | UTF-8 | 1,334 | 2.25 | 2 | [] | no_license | /*
* Carnegie Mellon University, Human Computer InterLogSession Institute
* Copyright 2005
* All Rights Reserved
*/
package edu.cmu.pslc.datashop.oli.dao;
import java.util.List;
import edu.cmu.pslc.datashop.oli.item.LogSessionItem;
/**
* LogSession Data Access Object Interface.
*
* @author Benjamin K. Billing... | true |
f85c5d3a0471037ac96824fe386d1cbcca1a345e | Java | XHxin/certmap | /src/main/java/com/cvc/certmap/entity/WalletUnit.java | UTF-8 | 626 | 1.796875 | 2 | [] | no_license | package com.cvc.certmap.entity;
import lombok.Data;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* @auther xiehuaxin
* @create 2018-12-14 11:10
* @todo
*/
@Data
@Entity
@Table(name = "cm_wallet_unit")
public class WalletUnit {
@Id
@GeneratedValue(strategy = Generat... | true |
baa34f66b114178dde343e98f284891be3d76f2b | Java | abhishekonline/lytmus | /src/Experiment/Sankalp.java | UTF-8 | 1,030 | 3.671875 | 4 | [] | no_license | package Experiment;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
public class Sankalp {
public static void main(String args[]){
int[][] input={{1,2,3,4}};
// System.out.println(input.length+","+input[0].length);
int[][] ans= moveColumn(input, 1, 3);
// System.out.println(an... | true |
45d26f59058a0cc235fa86a50820d1ec8effa3a3 | Java | jcmartin2889/Repo | /EquationFunctionStubs/src/com/misys/equation/function/test/api/.svn/text-base/TestEquationServiceHandlerInterface.java.svn-base | UTF-8 | 6,013 | 2 | 2 | [] | no_license | package com.misys.equation.function.test.api;
import bf.com.misys.eqf.types.header.Orig;
import bf.com.misys.eqf.types.header.Overrides;
import bf.com.misys.eqf.types.header.RqHeader;
import bf.com.misys.eqf.types.header.ServiceRqHeader;
import bf.com.misys.eqf.types.header.ServiceRsHeader;
import com.misys.equation.... | true |
00d5b7c81c7faa7d4e261f0d12445a0d76a3e122 | Java | deepaks26/project | /DSAlgo/demo-int-designpattern/src/main/java/com/inter/design/adapterpract2/SquarePeg.java | UTF-8 | 134 | 2.390625 | 2 | [] | no_license | package com.inter.design.adapterpract2;
public class SquarePeg {
int width;
SquarePeg(int width){
this.width = width;
}
}
| true |
55175b5b22d64723be798c88cd77703eb389f0b0 | Java | maordahan/swapp | /SwappDBLogic/src/clientItem/NotMyItem.java | UTF-8 | 405 | 2.328125 | 2 | [] | no_license | package clientItem;
import item.Item;
import user.ItemOwner;
public class NotMyItem extends Item {
private String location;
private ItemOwner owner;
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public ItemOwner getOwner() {
re... | true |
e978c2daefad1ab2c91b9dec4c4f13fff693a31e | Java | AlternativePayments/ap-java-sdk | /ap-java-sdk/src/main/java/com/alternativepayments/http/error/PaymentException.java | UTF-8 | 411 | 2.21875 | 2 | [
"MIT"
] | permissive | package com.alternativepayments.http.error;
import com.alternativepayments.models.ErrorModel;
/**
* Payment exception.
*/
public class PaymentException extends AlternativePaymentException {
/**
* Create Payment exception out of error model.
*
* @param errorModel error model from response.
*... | true |
9180325e480f153e718b356ea2cd1482be792b05 | Java | yuuya-hasegawa/webjava_2 | /src/main/java/jp/co/systena/tigerscave/SpringHelloSystena/application/model/monster/CommonMonster.java | UTF-8 | 534 | 2.421875 | 2 | [] | no_license | package jp.co.systena.tigerscave.SpringHelloSystena.application.model.monster;
import jp.co.systena.tigerscave.SpringHelloSystena.application.lib.Art;
public abstract class CommonMonster {
protected String monsterName;
protected int hitPoint = 100;
protected int attackPoint;
protected int agilityPoint... | true |
e123b50431f2473cba1299af1ec832473e2fe4c4 | Java | Noelf96/repo1 | /Helpster/Backend/HelpsterWebApp/src/main/java/com/app/controller/TestController.java | UTF-8 | 611 | 2.296875 | 2 | [] | no_license | package com.app.controller;
import java.util.Arrays;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/dummy")
pub... | true |
0c7e8256988bf555ab56d47396b7097145655cf8 | Java | Eudes-batista/Etiquetas-de-Gondola | /src/etiquetas/controle/ImpressaoControle.java | UTF-8 | 1,913 | 2.53125 | 3 | [] | no_license | package etiquetas.controle;
import java.io.ByteArrayInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.print.Doc;
import javax.print.DocFlavor;
import javax.print.DocPrintJob;
import javax.print.PrintException;
import... | true |
288bd9b6c9da55eea271b294b7047e5dea3f7338 | Java | PolkinAleksandr/Patterns | /Decorator/src/main/java/alexpolkin/ru/ComponenOne.java | UTF-8 | 171 | 2.265625 | 2 | [] | no_license | package alexpolkin.ru;
public class ComponenOne implements Component{
@Override
public void doSomething() {
System.out.println("something one");
}
}
| true |
7b313b0f0fdb4dc41bb6190b456d13f2231de46c | Java | LyonDon/Spring | /test/src/Algorithm/BinarySearchTest.java | UTF-8 | 830 | 3.3125 | 3 | [
"MIT"
] | permissive | package Algorithm;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
public class BinarySearchTest {
public static void main(String[] args) throws IOException {
Scanner scanner=new Scanner(System.in);
int key=scanner.ne... | true |
a9739b29191c1a8bc862bbe8f77d77d6da1b2398 | Java | deadpassive/smartwps | /smartwps-webapp/src/main/java/uk/ac/glam/smartwps/client/processresults/ProcessResultsActivity.java | UTF-8 | 1,266 | 1.976563 | 2 | [] | no_license | package uk.ac.glam.smartwps.client.processresults;
import uk.ac.glam.smartwps.client.ClientFactory;
import uk.ac.glam.smartwps.client.place.SmartWPSPlace;
import uk.ac.glam.smartwps.wps.client.event.ProcessResultsReceivedEvent;
import uk.ac.glam.smartwps.wps.client.event.ProcessResultsReceivedHandler;
import com.goog... | true |
b78f63df57847aaf732aeef99e895fe1fcb0c2d1 | Java | OpenUniversity/AOP-Awesome | /cjpf/src/main/java/cjp/o_18.java | UTF-8 | 1,451 | 2.015625 | 2 | [] | no_license | package cjp;
import org.strategoxt.stratego_lib.*;
import org.strategoxt.java_front.*;
import org.strategoxt.stratego_gpp.*;
import org.strategoxt.stratego_sglr.*;
import org.strategoxt.lang.*;
import org.spoofax.interpreter.terms.*;
import static org.strategoxt.lang.Term.*;
import org.spoofax.interpreter.library.Abst... | true |
0e5264ca69fb30958793d3a939124281855db887 | Java | Afroholic78/RefactoringExercise | /src/cmput301/refactoring/exercise2/NewRelease.java | UTF-8 | 269 | 2.4375 | 2 | [] | no_license | package cmput301.refactoring.exercise2;
/**
* @see cmput301.refactoring.exercise2.Movie#NEW_RELEASE
*/
public class NewRelease extends PriceCode {
public double getCharge(double result, Rental rental) {
result += rental.getDaysRented() * 3;
return result;
}
} | true |
be5b51cfa4b8204adbaf082fae579d85c07b059a | Java | cpswarm/modelio-cpswarm-modeler | /src/main/java/org/modelio/module/cpswarm/ui/window/CPDTWizard.java | UTF-8 | 7,322 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package org.modelio.module.cpswarm.ui.window;
import com.modeliosoft.modelio.javadesigner.annotations.objid;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.ecl... | true |
6f9a8df29e4b5c47e1dbf0115b0a7a605dfbee88 | Java | Mattlk13/container | /org.opentosca.bus.management.api.resthttp/src/org/opentosca/bus/management/api/resthttp/processor/GetResultRequestProcessor.java | UTF-8 | 1,022 | 2.28125 | 2 | [
"Apache-2.0",
"CDDL-1.1",
"EPL-1.0",
"MIT",
"LicenseRef-scancode-generic-export-compliance"
] | permissive | package org.opentosca.bus.management.api.resthttp.processor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.opentosca.bus.management.api.resthttp.route.InvocationRoute;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* GetResultRequestProcessor of the Management... | true |
a27ad8aba1738cc4cb350127e87968153a606d77 | Java | ResurrectionRemix/android_frameworks_base | /packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationSwipeHelper.java | UTF-8 | 16,318 | 1.773438 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unicode"
] | permissive | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 |
cf6f5c951eee2e9687cc99d1b60e285450504126 | Java | guoyu07/dubbox-demo | /shop-facade/src/main/java/com/cyf/shop/goods/service/GoodsService.java | UTF-8 | 577 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | package com.cyf.shop.goods.service;
import com.cyf.base.common.bean.BaseResponse;
import com.cyf.shop.goods.bean.Goods;
import java.util.List;
/**
* Created by chenyf on 2017/3/12.
*/
public interface GoodsService {
public List<Goods> listAllGoods();
public Goods getGoodsById(Long goodsId);
public B... | true |
012dadb1224b46f9c0230f848450b43b6b2877c4 | Java | deib-polimi/Corretto | /org.correttouml.uml/src/org/correttouml/uml/helpers/PropertyParser.java | UTF-8 | 13,972 | 2.078125 | 2 | [] | no_license | package org.correttouml.uml.helpers;
import java.io.ByteArrayInputStream;
import org.correttouml.uml.MadesModel;
import org.correttouml.uml.diagrams.expressions.PrimitiveType;
import org.correttouml.uml2zot.semantics.expressions.SConstant;
import org.correttouml.uml2zot.semantics.util.bool.*;
import org.correttouml.u... | true |
c601e2b0e90b43adc427c6324ac2c868c3389daa | Java | lucasbarrossantos/PedidoVenda | /src/main/java/controller/CadastroGrupoBean.java | UTF-8 | 1,386 | 2.3125 | 2 | [] | no_license | package controller;
import modelo.Grupo;
import org.primefaces.context.RequestContext;
import service.CadastroGrupoService;
import service.NegocioException;
import util.jsf.FacesUtil;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
impo... | true |
944b4d52864cc68238e11b5b6f3a06bfdbef0916 | Java | ethanhu/CTCServer | /src/ctc/transport/MinaServer.java | UTF-8 | 6,039 | 2.390625 | 2 | [] | no_license | package ctc.transport;
/*
MINA(非阻塞通讯模式)的基础架构
(1) IoService 便是应用程序的入口,相当于下面代码中的 NioSocketAcceptor,他是 IoService 的一个扩展接口。
IoService 接口可以用来添加多个 IoFilter,这些 IoFilter 符合责任链模式并由 IoProcessor 线程负责调用。
(2) IoFilter 是作为 IoService 和 IoHandler 之间的桥梁.IoHandler 接口中最重要的一个方法是 messageReceived,
这个方法的第二个参数是一个 Object 型的消息,到底谁... | true |
26f0ed83a8dd8d4831210d256a2001941539c9aa | Java | viabcde/mycoding.github.io | /动态代理/src/proxy/Client.java | UTF-8 | 993 | 2.90625 | 3 | [] | no_license | package proxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
public class Client {
/**
* @param args
*/
public static void main(String[] args) {
final IActor actor =new Actor();
IActor proxyActor = (IActor)Proxy.newProxyInstance(actor.get... | true |
37de794f6b15c47199132b8cedb31042ff3c8cd1 | Java | ddt-jissyusei1/meikai_java_2017_02_shida | /jissyu/src/ensyuu9/En9_5.java | UTF-8 | 8,888 | 3.703125 | 4 | [] | no_license | package ensyuu9;
import java.util.Scanner;
/*
* 開始日と終了日から構成される《期間》を表すクラスPeriodを作成せよ。フィールドは以下のようになる。
* class Period {
* private Day from;
* private Day to;
* }
* コンストラクタやメソッドを自由に定義すること
*/
public class En9_5 {
//プログラムの説明文のための定数
private static final String PROGRAM_EXPLANATION_STRING = "<<期間>>を表示するプログラムです。";
... | true |
daa98a224193d75f37097d01168c42c7b1a8d596 | Java | shenqidekobe/eba-manager | /src/main/java/com/microBusiness/manage/controller/shop/member/AdminManageController.java | UTF-8 | 2,282 | 2.125 | 2 | [] | no_license | package com.microBusiness.manage.controller.shop.member;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;... | true |
2f50a7ccd4bb9f30d50250c288c8daeaff97f759 | Java | sofiamador/TaskAllocation | /src/Jennings/JennigsTaskAbstract.java | UTF-8 | 1,332 | 2.6875 | 3 | [] | no_license | package Jennings;
import policeAllocation.Event;
import policeAllocation.PoliceUnit;
public class JennigsTaskAbstract implements Comparable<JennigsTaskAbstract>{
@Override
public String toString() {
return "JennigsTaskAbstract [id=" + id + ", bestAgent=" + bestAgent
+ ", evluation=" + evluation + "]";
}
... | true |
b0f67742215c30c30fa14d4fa11869894c498775 | Java | risyadul/belajarJava | /src/com/belajar/TryException.java | UTF-8 | 380 | 3.234375 | 3 | [] | no_license | package com.belajar;
public class TryException {
public static void main(String[] args) {
testTryCatch();
System.out.println("Selesai");
}
private static void testTryCatch() {
int[] arrInt = {1, 2, 3};
try{
System.out.println(arrInt[4]);
}catch (RuntimeException e){
System.out.println("error :"... | true |
bba024178252c2a66386f3d7b32871c280f0eeb2 | Java | andleayf/joker | /src/main/java/com/xcy/joker/utils/HttpUtil.java | UTF-8 | 1,826 | 2.90625 | 3 | [] | no_license | package com.xcy.joker.utils;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
/**
* @program: joker
* @author: YeMao
* @create: 2019-08-07 11:08
*/
public class HttpUtil {
public static String getStr(Strin... | true |
4492fdab1d76c3dba0dfab1e41e2da3d0b8e8097 | Java | GarciaGP/AulaAtendimento | /Calculadora/App.java | UTF-8 | 1,037 | 3.875 | 4 | [] | no_license | package calculadora;
import java.util.Scanner;
class App {
public static void main(String[] args){
//Instãncia de classe em java
Calculadora calculadora = new Calculadora();
//Classe de entrada no java
Scanner entrada = new Scanner(System.in);
//... | true |
f9578f301116d5cee1097222b9ead0ffad60f707 | Java | tangyingty/ecc88 | /ecc/patchSrc/src/com/siteview/ecc/alert/dao/type/HboxWithSortValue.java | UTF-8 | 355 | 1.671875 | 2 | [] | no_license | package com.siteview.ecc.alert.dao.type;
import org.zkoss.zul.Hbox;
public class HboxWithSortValue extends Hbox {
private static final long serialVersionUID = 8000956769716781169L;
private String sortvalue = null;
public String getSortValue() {
return sortvalue;
}
public void setSortValue(String sortvalue) {
... | true |
125344905991c29c8a72c688278b2ad4fb35c6eb | Java | Wfeiteng/learning | /algorithm/src/main/java/com/train/leetcode/editor/cn/InvertBinaryTree226.java | UTF-8 | 2,329 | 3.546875 | 4 | [] | no_license | //翻转一棵二叉树。
//
// 示例:
//
// 输入:
//
// 4
// / \
// 2 7
// / \ / \
//1 3 6 9
//
// 输出:
//
// 4
// / \
// 7 2
// / \ / \
//9 6 3 1
//
// 备注:
//这个问题是受到 Max Howell 的 原问题 启发的 :
//
// 谷歌:我们90%的工程师使用您编写的软件(Homebrew),但是您却无法在面试时在白板上写出翻转二叉树这道题,这太糟糕了。
// Related Topics 树
package com... | true |
00488dfbbeb7f01c5d8dec2403beabd5ae4d17f2 | Java | ayberkcansever/lemp | /lemp-server/src/test/java/com/lemp/server/akka/actor/MessageProcessorActorTest.java | UTF-8 | 3,549 | 1.984375 | 2 | [] | no_license | package com.lemp.server.akka.actor;
import akka.actor.ActorRef;
import akka.testkit.TestKit;
import com.google.gson.Gson;
import com.lemp.builder.MessageBuilder;
import com.lemp.packet.Datum;
import com.lemp.packet.Message;
import com.lemp.server.BaseTest;
import com.lemp.server.akka.object.ClientMessage;
import com.l... | true |
c9fca74a64dfa05103f443d3c617aee486793896 | Java | xkrdudrlf/Resume | /Projects/DungeonExplorer/src/unsw/dungeon/OrGoal.java | UTF-8 | 842 | 3.09375 | 3 | [] | no_license | package unsw.dungeon;
import unsw.dungeon.Dungeon;
public class OrGoal extends CompositeGoal {
/**
* Instantiate an Orgoal class with a dungeon
* @param dungeon A dungeon for playing
*/
public OrGoal(Dungeon dungeon) {
super(dungeon);
}
/**
* override the isEnd in the Composite... | true |
12415f7d483d8aba774da2d1ecb941842cae4f34 | Java | sunil-sunny/Explore-Canada-Tourism-Rest-APIs | /ExploreCanada/src/main/java/com/ExploreCanada/packages/userclasses/UserRepository.java | UTF-8 | 309 | 1.789063 | 2 | [] | no_license | package com.ExploreCanada.packages.userclasses;
import org.springframework.data.jpa.repository.JpaRepository;
import com.ExploreCanada.packages.entities.CustomerDetails;;
public interface UserRepository extends JpaRepository<CustomerDetails,String> {
CustomerDetails findByUsername(String username);
}
| true |
767983f3c587f5df50bead566cf30e96c99c4b02 | Java | mojohaus/idlj-maven-plugin | /src/main/java/org/codehaus/mojo/idlj/BuiltInTranslator.java | UTF-8 | 4,637 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.codehaus.mojo.idlj;
/*
* 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, Ver... | true |
94a10a8fa975652f105ea362b2388aaf087a07c8 | Java | pulumi/pulumi-alicloud | /sdk/java/src/main/java/com/pulumi/alicloud/eds/outputs/GetDesktopsResult.java | UTF-8 | 6,326 | 1.632813 | 2 | [
"Apache-2.0",
"MPL-2.0",
"BSD-3-Clause"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.eds.outputs;
import com.pulumi.alicloud.eds.outputs.GetDesktopsDesktop;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
... | true |
782a7e64d38055bfde391797b017da0db4ece1d6 | Java | yaguzmang/CourseWork | /Formal Languages and Compilers/clases/clase16/automata/src/main/java/co/edu/eafit/dis/st0270/automata/AutoNumPunFloM.java | UTF-8 | 4,165 | 2.765625 | 3 | [] | no_license | package co.edu.eafit.dis.st0270.automata;
/**
* AutoNumPunFloM
* Una implementación manual de la autómata que reconoce números decimales
* utilizando un mapa(M).
*
* Creación: 25/08/2011.
* Autor: fcardona
* email: fcardona@eafit.edu.co
*
* re = (0|[1..9][0..9]*).[0..9]+
*
* Registro de modificación:
... | true |
2810e6f08386b86470601ff4111d24c144493d61 | Java | sinsharat/DataStructures | /src/main/java/com/sharat/datastructures/tree/HeightOfBinaryTree.java | UTF-8 | 1,156 | 3.796875 | 4 | [] | no_license | package com.sharat.datastructures.tree;
public class HeightOfBinaryTree {
public static class Node {
int data;
Node left, right = null;
public Node(int data) {
this.data = data;
}
}
public int findMaximumHeight(Node node) {
if (no... | true |
e6eae179e38c17e776917c34fef1289008883777 | Java | Lakshay-Dhingra/Java-Concepts | /08 Inheritance/Demo5.java | UTF-8 | 1,150 | 4.0625 | 4 | [] | no_license | //Upcasting
class Car
{
void drivingExp()
{
System.out.println("Some Ordinary Car...");
}
}
class SUV extends Car
{
void drivingExp()
{
System.out.println("Powerful Car...");
}
}
class Hatchback extends Car
{
void drivingExp()
{
System.out.println("Economic Car...");
}
}
class Sedan extends Car
{
voi... | true |
3cb51d52c6ab9c9655cad47da3a3d66a4f70725f | Java | loveyeah/BQMIS | /bqerpweb/src/power/web/run/securityproduction/action/safesuperviseaction/SpFireControlAction.java | UTF-8 | 2,835 | 2.125 | 2 | [] | no_license | package power.web.run.securityproduction.action.safesuperviseaction;
import com.googlecode.jsonplugin.JSONException;
import com.googlecode.jsonplugin.JSONUtil;
import power.ear.comm.ejb.PageObject;
import power.ejb.run.securityproduction.safesupervise.SpCFireControl;
import power.ejb.run.securityproduction.saf... | true |
85d861bea5420715142f45340d8fc4202dece8c2 | Java | Thleruth/kraken | /src/main/java/co/codingnomads/kraken/model/account/response/GetLedgersInfoOutput.java | UTF-8 | 545 | 1.734375 | 2 | [
"MIT"
] | permissive | package co.codingnomads.kraken.model.account.response;
import co.codingnomads.kraken.model.OutputWrapper;
import co.codingnomads.kraken.model.account.pojo.KrakenLedgersInfoResult;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* @author Kevin Neag
*/
public class GetLedgersInfoOutput extends OutputWrapp... | true |
e4526e665a5e978b9df5cf689e2c80d9d16f36a3 | Java | McJtyMods/XNet | /src/main/java/mcjty/xnet/multiblock/VersionNumber.java | UTF-8 | 360 | 2.484375 | 2 | [
"MIT"
] | permissive | package mcjty.xnet.multiblock;
public class VersionNumber {
private int version;
public VersionNumber(int version) {
this.version = version;
}
public int getVersion() {
return version;
}
public void setVersion(int version) {
this.version = version;
}
public ... | true |
25a0eb485e95aaf0a581dd54490bbaa48a14fd52 | Java | hubby1981/StarCitySim | /app/src/main/java/games/biitworx/starcitysim/MenuRects.java | UTF-8 | 581 | 1.820313 | 2 | [] | no_license | package games.biitworx.starcitysim;
import android.graphics.Rect;
/**
* Created by marcel.weissgerber on 20.04.2016.
*/
public class MenuRects {
public static RectContainer menu;
public static RectContainer icon;
public static RectContainer info;
public static RectContainer content;
public st... | true |
c5f87fdef4e6f76af8fca422217edfa03eefadf3 | Java | mcanikhilprajapati/AccordianDemo | /app/src/main/java/canvas/com/accordiandemo/MainActivity.java | UTF-8 | 2,668 | 2.25 | 2 | [] | no_license | package canvas.com.accordiandemo;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import java.util.ArrayList;
im... | true |
8eb548c76db1efc45ae890f4e84f10f1d61193b4 | Java | Lomamazzi99/programmazioneII | /esame_2_1_2021/Contenuto.java | UTF-8 | 280 | 2.4375 | 2 | [] | no_license | /**
* Overview:
* Le istanze di questa interfaccia rappresentano un Contenuto di una cella del foglio di calcolo.
*/
public interface Contenuto {
/**
* Post condizioni: restituisce il valore del contenuto come un intero
*/
public int getContenuto();
}
| true |
6bfb6eec17fb13420ae56ecfea894ae9ffc7abad | Java | Tzkk25/dongyimai-parent | /dongyimai-service-api/dongyimai-sellergoods-service-api/src/main/java/com/offcn/sellergoods/feign/GoodsFeign.java | UTF-8 | 629 | 1.90625 | 2 | [] | no_license | package com.offcn.sellergoods.feign;
import com.offcn.entity.Result;
import com.offcn.sellergoods.entity.GoodsEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframewor... | true |
cf43eaf6b4c9dd057576f3bd01d15583eaeffd63 | Java | JeonEunmi/javaSE | /javaSE_20180726/src/com/test091/Outer.java | UHC | 1,137 | 3.65625 | 4 | [] | no_license | package com.test091;
public class Outer {
// ø Ŭ(Inner Class)
// Ŭ ȿ Ǵٸ Ŭ ִ ¸ ø Ŭ Ѵ.
// νϽ (ʵ, ҵ ) ϵ ø Ŭ
// ʵ
private int a;
//
public Outer() {
}
// ҵ
public void method() {
// Inner Class ü
Inner inner = new Inner();
// Inner Class ü νϽ
inner.method();... | true |
940f28ef32ce42265e9e313809043d1cd0564737 | Java | yamini-1414/YoungMeToOld | /src/LinkedList/FlattenList.java | UTF-8 | 837 | 3.359375 | 3 | [] | no_license | package LinkedList;
public class FlattenList {
static class Node{
int data;
Node next;
Node bottom;
Node(int data){
this.data = data;
this.next = this.bottom = null;
}
}
public Node insert(Node head,int key) {
Node newNode = new Node(key);
if(head==null || key<=head.data) {
newNode.bottom ... | true |
4fc8811c57606fec6ba5929f4d7585a7a7d9bb93 | Java | WhemanLimon/melicoupon | /src/test/java/net/wheman/melicoupon/strategy/StrategyTests.java | UTF-8 | 1,424 | 2.484375 | 2 | [] | no_license | package net.wheman.melicoupon.strategy;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.HashMap;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
public class Str... | true |
48fa42eca2edab8a626047463b016e82f6a1c6ca | Java | Rainysponge/ToDoListHarmony | /ToDoListApplication/entry/src/main/java/com/example/todolistapplication/ClockGameAbility.java | UTF-8 | 389 | 1.828125 | 2 | [] | no_license | package com.example.todolistapplication;
import com.example.todolistapplication.slice.ClockGameAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
public class ClockGameAbility extends Ability {
@Override
public void onStart(Intent intent) {
super.onStart(intent);
... | true |
5d244d5b84aba196575d47c57d8a946a8db2d343 | Java | mrasif/DigiAds | /app/src/main/java/in/mrasif/app/digiads/models/Template.java | UTF-8 | 1,592 | 2.515625 | 3 | [] | no_license | package in.mrasif.app.digiads.models;
import java.util.ArrayList;
import java.util.List;
public class Template {
private int id;
private String name;
private String path;
private String css_path;
private List<Position> positions;
public Template() {
this.positions=new ArrayList<>();
... | true |
ba998dec371a1e74d1abf09702c9afe36af31343 | Java | Seachal/Shop | /app/src/main/java/com/lnkj/privateshop/entity/ShowCommentBean.java | UTF-8 | 3,414 | 2.328125 | 2 | [] | no_license | package com.lnkj.privateshop.entity;
/**
* Created by Administrator on 2017/8/22 0022.
*/
public class ShowCommentBean {
/**
* status : 1
* info : 评论统计
* data : {"goods_rank":"3.7","express_rank":"3.7","service_rank":"4.3","favorableRate":67,"commentCount":"3","likeCount":"2","medCount":"1","low... | true |
3fbffe6a6203e76e067c31f8bcc5cddb5e2d5a21 | Java | YADET/apache-beam-getting-started | /src/main/java/com/davideanastasia/beam/gs/fn/KeyValueInverter.java | UTF-8 | 365 | 1.890625 | 2 | [] | no_license | package com.davideanastasia.beam.gs.fn;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.values.KV;
public class KeyValueInverter <K, V> extends DoFn<KV<K, V>, KV<V, K>> {
@ProcessElement
public void processElement(ProcessContext c) {
KV<K, V> kv = c.element();
c.output(... | true |
f393ada308c1655c56b5154986967a8eb4bd1c7b | Java | chengxinwei/chengxinweiProject | /dubboserver/src/main/java/com.howbuy/server/dubbo/filter/HttpControlInterceptor.java | UTF-8 | 562 | 2.109375 | 2 | [] | no_license | package com.howbuy.server.dubbo.filter;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.ext.WriterInterceptor;
import javax.ws.rs.ext.WriterInterceptorContext;
import java.io.IOException;
/**
* Created by xinwei.cheng on 2015/5/27.
*/
public class HttpControlInterceptor implements WriterInterceptor {... | true |
28dcc0c42b8996d09bbd843922770d18ecc6339a | Java | Joker2333/dlsmonastery | /ws-future/src/main/java/net/myspring/future/modules/basic/client/TownClient.java | UTF-8 | 562 | 1.867188 | 2 | [] | no_license | package net.myspring.future.modules.basic.client;
import net.myspring.general.modules.sys.dto.TownFeignDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework... | true |
8d81dfbdab80d27772a8ab75afe1cadb9d1d6dde | Java | rake93/SCJP | /src/ch9/SynchronizedThreads.java | UTF-8 | 3,622 | 3.84375 | 4 | [] | no_license | package ch9;
/**
* yield()
* Causes the currently executing thread object to temporarily pause
* and allow other threads to execute.
*
* sleep()
* podobny do wait(), ale nie zwalnia blokady
*
*
* join()
* watek na ktorym jest wykonywana metoda (A) blokuje biezacy watek (B)
* az do momentu ja... | true |
c35c0d7dc2582a4754164c6f3b482c192c765967 | Java | forward-uiuc/Entity-Search-Annotation-Indexing | /src/main/java/org/forward/entitysearch/ner/annotation/extraction/HuaweiDictionaryExtractor.java | UTF-8 | 2,788 | 2.390625 | 2 | [] | no_license | package org.forward.entitysearch.ner.annotation.extraction;
import org.forward.entitysearch.ner.annotation.extraction.huawei_tagging.ChineseQuestionTagging;
import org.forward.entitysearch.ner.annotation.EntityAnnotation;
import org.forward.entitysearch.ner.annotation.EntityCatalog;
import java.io.BufferedReader;
imp... | true |
3c38dd14db785a2ceb11fe036b58ca2c02a4c5ae | Java | juliolm96/robotica_backend | /Robotica/src/main/java/com/robotica/DAO/ArticuloDAO.java | UTF-8 | 349 | 2.1875 | 2 | [] | no_license | package com.robotica.DAO;
import java.util.List;
import com.robotica.models.Articulo;
public interface ArticuloDAO {
public int insertar(Articulo articulo);
public void actualizar(Articulo articulo);
public Articulo buscar(int id);
public List<Articulo> consultar();
public String getUltimoProducto();
public S... | true |
211b32c5ffab0d48df539cc09bdd91affd6a5700 | Java | youzan-isv/minigame-java-isv | /dy-biz/src/main/java/com/youzan/cloud/dy/biz/component/model/amap/AMapDistrictInfo.java | UTF-8 | 644 | 1.734375 | 2 | [] | no_license | package com.youzan.cloud.dy.biz.component.model.amap;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.util.List;
/**
* @author chenlinghong
* @date 2021-04-26 16:48
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsC... | true |
b836d28fd292884c390df71b205a567c68860f10 | Java | radovanbauer/eulerJava | /src/main/java/euler/Problem268.java | UTF-8 | 1,713 | 3.1875 | 3 | [] | no_license | package euler;
import static com.google.common.base.Preconditions.checkArgument;
import java.util.stream.IntStream;
import com.google.common.math.LongMath;
public class Problem268 {
public static void main(String[] args) {
System.out.println(new Problem268().solve());
}
public long solve() {
long ma... | true |
ea7a21ad543d9042cb4608dfc70721d60a2a84d9 | Java | GypsyBud/pegasus_spyware | /pegasus-spyware-decompiled/sample4/recompiled_java/sources/com/lenovo/safecenter/aidl/killvirus/ScanVirusResult.java | UTF-8 | 1,363 | 1.914063 | 2 | [
"MIT"
] | permissive | package com.lenovo.safecenter.aidl.killvirus;
public class ScanVirusResult {
public int advice;
public int apkType;
public String certMd5;
public String discription;
public String label;
public int malwareid;
public String name;
public String packageName;
public String path;
pub... | true |
1c727d9c98a410b53fd4434fe60647814acff83c | Java | bellmit/wd-workflow | /src/java/receive/com/wonders/receive/workflow/process/recv/dao/RecvMainDao.java | UTF-8 | 401 | 1.671875 | 2 | [] | no_license | /**
*
*/
package com.wonders.receive.workflow.process.recv.dao;
import com.wonders.receive.workflow.process.recv.model.bo.RecvMainBo;
/**
* @ClassName: RecvMainDao
* @Description: TODO(这里用一句话描述这个类的作用)
* @author zhoushun
* @date 2013-7-21 下午7:38:14
*
*/
public interface RecvMainDao {
public RecvMainBo... | true |
72240e570c72f7139fac215b86124c930059532c | Java | bellmit/EMPPlatform | /JFrameworkSDK/src/jframework/resource/classes/JMulLangF1Object.java | UTF-8 | 10,408 | 2.296875 | 2 | [] | no_license | package jframework.resource.classes;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.core.xml.JBOFClass;
import com.pub.util.StringFunction;
import jframework.resource.classes.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
... | true |
530622116cc40de8c2724875c056a089035b36aa | Java | JIeIIIa/microservice_development | /order/src/main/java/it/discovery/order/domain/OrderItem.java | UTF-8 | 711 | 2.390625 | 2 | [] | no_license | package it.discovery.order.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.List;
@Getter
@Setter
@NoArgsConstructor
@Entity
@Table
public class OrderItem {
@Id
@... | true |
27e25f39c8bd698bd2782120cf3856a931943d34 | Java | dipeshmanandhar/The_Labyrinth | /MainMenuPanel.java | UTF-8 | 2,326 | 2.9375 | 3 | [] | no_license | import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Color;
import java.awt.Font;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class MainM... | true |
be9ad95af8ddd49ce0faf0ad24900578345aa676 | Java | hancswww/springwebmvc | /src/main/java/controller/board/dao/jdbcConnection.java | UTF-8 | 944 | 2.453125 | 2 | [] | no_license | package controller.board.dao;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import org.springframework.stereotype.Repository;
@Repository
public class jdbcConnection {
Connection conn;
//static 사용시 autowired 사용하지 않아도 됨
public Connection getConn() {
r... | true |
4bd8968976414dc7e445e4fca0b174cd8acb0428 | Java | priyankasahu50/E_commerce | /src/test/java/com/qa/Test/HomePageTest.java | UTF-8 | 2,529 | 2.234375 | 2 | [] | no_license | package com.qa.Test;
import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
import org.testng.ITestResult;
import org.testng.Reporter;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Af... | true |
05ef4607e53cfb063957896b2be230df3784623a | Java | zhaoyong421127/redis-cache-sync-starter | /src/main/java/com/ctrip/db/cache/http/HttpCacheManager.java | UTF-8 | 2,510 | 2.4375 | 2 | [] | no_license | package com.ctrip.db.cache.http;
import com.alibaba.fastjson.JSON;
import com.ctrip.db.cache.CacheConfiguration;
import com.ctrip.db.cache.redis.CacheManager;
import com.ctrip.db.cache.util.RedisUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
import org.sprin... | true |
8a947fbb71527d4dfd64d3c55123b636992513d8 | Java | anandpanwar8435/ORSProject_4 | /src/main/java/in/co/rays/project_4/util/EmailBuilder.java | UTF-8 | 2,899 | 2.734375 | 3 | [] | no_license | package in.co.rays.project_4.util;
import java.util.HashMap;
/**
* @author anand
*
*/
public class EmailBuilder {
/**
* @param map
* @return
*/
public static String getUserRegistrationMessage(HashMap<String,String>Map){
System.out.println("33333333333333333333333333333333 in emailbuilder");
Strin... | true |
ebe223a2c832d90d0c86ccc863bae922fe8db18a | Java | fmyasar/java | /assignments5/Question_9.java | UTF-8 | 761 | 3.984375 | 4 | [] | no_license | package assignments5;
import java.util.Scanner;
public class Question_9 {
public static void main(String[] args) {
/* Write a program for the following logic:
Print all the odd numbers in comma-separated form from 1 till the end (you may change it):
if end = 10, OUTPUT = 1, 3, 5, 7, 9
if end ... | true |
fbace01ae6a002d6e81f8c35f51c3c276824a9bf | Java | WhizOne/SeleniumTest | /src/TestLoginapp1.java | UTF-8 | 1,507 | 2.328125 | 2 | [] | no_license |
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.Assert;
import org.testng.annotations.Test;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.A... | true |
47af7125eaff6a1218573e349f7ef758bfe1ce26 | Java | MahdiurRahman/OnTimeApplication | /app/src/main/java/com/example/ontime/MainActivity.java | UTF-8 | 2,088 | 2.5 | 2 | [] | no_license | package com.example.ontime;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import android.view.View;
import android.widget.Button;
public class Ma... | true |
2f26ae6f9bd7260d9aa369c5756d00682f2f76ac | Java | alekoko/BitwareExam | /src/com/bitware/exam/models/Person.java | UTF-8 | 2,646 | 3.0625 | 3 | [] | no_license | package com.bitware.exam.models;
import java.util.Random;
public class Person {
public static final char GENDER_MAN = 'H';
public static final char GENDER_WOMAN = 'M';
static final int OVERWEIGHT = 1;
static final int NORMALWEIGHT = 0;
static final int UNDERWEIGHT = -1;
private String name = "";
private int ... | true |
6aeea7bc82780335b5b0eb9ae6d1313af5115d37 | Java | rogerio121/pjcase | /src/test/java/TesteConexao.java | UTF-8 | 292 | 1.875 | 2 | [] | no_license | import br.com.pjcase.conexao.ConexaoBanco;
import org.junit.Assert;
import org.junit.Test;
public class TesteConexao {
@Test
public void cenexao(){
ConexaoBanco.getConexao();
Assert.assertEquals("STATUS--->Conectado com sucesso!", ConexaoBanco.statusBanco);
}
}
| true |
8eca56c24c20fa672e78c9112ff753869eeea5b3 | Java | Aozhi/counterpoint-service | /src/main/java/com/culturedear/counterpoint/XmlRestController.java | UTF-8 | 2,524 | 1.960938 | 2 | [] | no_license | /*
* Copyright 2015 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
4909a8f62414a3536e1904012aefeabc4b42e470 | Java | OteleaFelix98/NetContract | /src/Controller/UpdateRecordController.java | UTF-8 | 4,204 | 2.53125 | 3 | [] | no_license | package Controller;
import Model.Contract;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Alert;
import javaf... | true |
dc7edf401b6a324d1313c3bb6f0944013cceba2c | Java | VincenzoArceri/clam | /src/main/java/it/univr/main/MuJsBaseVisitor.java | UTF-8 | 8,138 | 2.59375 | 3 | [
"MIT"
] | permissive | // Generated from /home/vincenzo/Scrivania/ictac/mu-js/src/main/java/it/univr/main/MuJs.g4 by ANTLR 4.7.2
package it.univr.main;
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
/**
* This class provides an empty implementation of {@link MuJsVisitor},
* which can be extended to create a visitor which... | true |
fc79ef084ae7be0a88e5b5af48e2e00cbdf56e39 | Java | andreban/GLESTests | /app/src/main/java/com/mobplug/android/glestests/Md3LoaderActivity.java | UTF-8 | 2,683 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 André Cipriani Bandarra
*
* 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 o... | true |
16b17b14ade2fc58b400758986eff8dd538f6f79 | Java | a329336057/qfxdemo | /app/src/main/java/com/qifeixianapp/qfxdemo/tool/MonthOfDayUnit.java | UTF-8 | 654 | 2.828125 | 3 | [] | no_license | package com.qifeixianapp.qfxdemo.tool;
public class MonthOfDayUnit {
public static int getMonthOfDays(int year,int month){
int day = 0;
if(year%4==0&&year%100!=0||year%400==0){
day = 29;
}else{
day = 28;
}
switch (month){
case 1:
... | true |
94e72a59fdb9bd12457a6bbc9a7132a041ff9a0e | Java | ilyeselb/Bd_Tube | /src/main/java/com/bdtube/bdtube/Service/UserServicelmpl.java | UTF-8 | 1,037 | 2.203125 | 2 | [] | no_license | package com.bdtube.bdtube.Service;
import com.bdtube.bdtube.Model.User;
import com.bdtube.bdtube.Repository.UserRepository;
import com.bdtube.bdtube.Repository.VideoDemanderRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
... | true |
e9672efe75a5decc60c5cd1c2aac2cfda9891cf9 | Java | mangoyum/finaldel1 | /src/InverseNumbers.java | UTF-8 | 1,940 | 4.25 | 4 | [] | no_license | import java.util.Scanner; //import scanner to read user input
//create the class
public class InverseNumbers {
//create main method
public static void main(String[] args) {
//create variable for reader input
int readerInput = readDataFromUser();
// create variable for converted data value of reader inpu... | true |
6222cf40cc1ceb831948364e9a74817265674360 | Java | shoxrux-javaDev/app-expired-invoices | /src/main/java/com/javadev/appexpiredinvoices/service/DetailService.java | UTF-8 | 4,613 | 2.5 | 2 | [] | no_license | package com.javadev.appexpiredinvoices.service;
import com.javadev.appexpiredinvoices.entity.Detail;
import com.javadev.appexpiredinvoices.entity.Orders;
import com.javadev.appexpiredinvoices.entity.Product;
import com.javadev.appexpiredinvoices.payload.DetailDto;
import com.javadev.appexpiredinvoices.payload.Respons... | true |
8cdff745a90efc7953725931e6580e6a5150a285 | Java | mattu79/xnifi-bundle | /xnifi-processors/src/main/java/io/activedata/xnifi/utils/Validators.java | UTF-8 | 415 | 1.84375 | 2 | [] | no_license | package io.activedata.xnifi.utils;
import org.apache.nifi.components.ValidationContext;
import org.apache.nifi.components.ValidationResult;
import org.apache.nifi.components.Validator;
public class Validators {
Validator SCRIPTS_VALIDATOR = new Validator() {
@Override
public ValidationResult valid... | true |
e62399a69f0dfed18dc18d8591f349b1316fb8dc | Java | MdEliasKhan/Fifa2018 | /app/src/main/java/com/bespokesoftbd/eliaskhan/fifa2018/CustomAdapder.java | UTF-8 | 1,396 | 2.234375 | 2 | [] | no_license | package com.bespokesoftbd.eliaskhan.fifa2018;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class CustomAdapder extends BaseAdapter{... | true |
991dfca98639485c133f1344cd0b38ec42807984 | Java | BartekNosowski/hibernate-example | /src/main/java/com/example/hibernateexample/DepartmentRepository.java | UTF-8 | 193 | 1.59375 | 2 | [] | no_license | package com.example.hibernateexample;
import org.springframework.data.repository.CrudRepository;
public interface DepartmentRepository extends
CrudRepository <Department, Integer> {
}
| true |
e6fc54d5eb4c7e5f5cfb9e2840202678fa05a2dd | Java | pradhp1999/dhruva | /server/src/main/java/com/cisco/dhruva/sip/stack/DsLibs/DsSipObject/DsSipDateHeader.java | UTF-8 | 2,690 | 2.65625 | 3 | [] | no_license | // Copyright (c) 2005 by Cisco Systems, Inc.
// All rights reserved.
package com.cisco.dhruva.sip.stack.DsLibs.DsSipObject;
import com.cisco.dhruva.sip.stack.DsLibs.DsSipParser.DsSipParserException;
import com.cisco.dhruva.sip.stack.DsLibs.DsUtil.DsDate;
/**
* This class represents a Date header as specified in RFC... | true |