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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a0b576dc0a553f90df341185cf151612573bb51c | Java | eldetulado/VersosApp | /app/src/main/java/com/example/oso/versosbiblicos/MContract.java | UTF-8 | 444 | 2.03125 | 2 | [] | no_license | package com.example.oso.versosbiblicos;
import android.provider.BaseColumns;
public class MContract{
public class MColumn implements BaseColumns{
public static final String TABLE_NAME = "verso";
public static final String CONTENT = "verseContent";
public static final String ADDRESS = "vers... | true |
38b34e71024dd81df74e1a1948bf76984517de6e | Java | jukabarros/denguezone-api | /src/main/java/api/dao/BairroResidenciaDAO.java | UTF-8 | 1,748 | 2.734375 | 3 | [] | no_license | package api.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Repository;
import api.model.BairroResidencia;
@Repository("bairroDAO")
public class BairroResidenciaDAO extends AbstractDAO {
/**
* Consulta um b... | true |
c3c41296ce6d282043fa3d53526d59aaaad4d69f | Java | wanghai1507/com-mall | /mall-manager/mall-manager-dao/src/main/java/com/mall/service/impl/UserDaoImpl.java | UTF-8 | 695 | 2.171875 | 2 | [] | no_license | package com.mall.service.impl;
import com.mall.service.IUserDao;
import com.mall.service.User;
import com.mall.service.utils.JdbcUtils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import java.sql.SQLException;
public class UserDaoImpl implements IUserDao {
... | true |
407b77bd8336e9f0c68d62e1a3c92d9d12d24e59 | Java | javisth/CP | /Codechef/FCTRL2.java | UTF-8 | 2,325 | 3.546875 | 4 | [] | no_license | import java.io.*;
class FCTRL2
{
public static void main(String args[]) throws IOException
{
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
int dig[] = new int[200]; // array for storing each digit of the number
int temp = 0... | true |
abd22d1dcecd62cb181865aa3378fa6979148517 | Java | Kukine/headhunting | /src/main/java/hr/fer/ris/headhunting/hh/controller/EmployeeController.java | UTF-8 | 1,034 | 2.28125 | 2 | [] | no_license | package hr.fer.ris.headhunting.hh.controller;
import hr.fer.ris.headhunting.hh.data.entity.Employee;
import hr.fer.ris.headhunting.hh.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@Reque... | true |
c9c6acff07c6728ef5328fd61ac23d69d5e4111c | Java | yankj12/zhihu-selenium | /src/main/java/com/yan/common/PropertiesIOUtil.java | UTF-8 | 469 | 2.375 | 2 | [
"MIT"
] | permissive | package com.yan.common;
import java.io.FileInputStream;
import java.util.Properties;
public class PropertiesIOUtil {
public static Properties loadProperties(String fileName){
Properties pro = new Properties();
try {
FileInputStream in = new FileInputStream(PropertiesIOUtil.class.getResource(fileName).getPat... | true |
0c8a5fb7c8b06a65e86844c062b9d7cc5d52dff2 | Java | oconeluciano84/Dot2Metric | /src/main/java/costanti/Costanti.java | UTF-8 | 2,576 | 2.03125 | 2 | [] | no_license | package costanti;
public abstract class Costanti {
//PATH DIRECTORY
public static String DIRECTORY_INPUT_MODIFICATI ="input_mod";
//PATH FILE
public static String FILE_TESTO="testo.txt"; // file contenente i testi utilizzati
public static String FILE_OUTPUT="global_tree.metric"; // file contenente al... | true |
b0e677a00d98b7b08d870b676fc32af385efdaa7 | Java | korinneramcharitar/Ramcharitar-cop3330-assignment4 | /src/main/java/ucf/assignments/TaskModel.java | UTF-8 | 2,145 | 3.03125 | 3 | [] | no_license | package ucf.assignments;
import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.control.CheckBox;
import java.time.LocalDate;
public class TaskModel {
public TaskModel(String text, String text1, LocalDate converter, CheckBox complete) {
//set... | true |
e454778ce63b18a7541544dd9eaf1f19d6535493 | Java | moweipeng32577/xdarchives | /珠海数字文件中心/智能库房系统/project-lot/src/main/java/com/xdtech/project/lot/speed/entity/Sensors.java | UTF-8 | 1,107 | 2.21875 | 2 | [] | no_license | package com.xdtech.project.lot.speed.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* 斯必得设备终端
* Created by Rong on 2019-11-15.
*/
@Entity
public class Sensors {
@Id
@Column(name = "No")
private Integer no; //设备编号
@Column(nam... | true |
20b7fa876b1fa06a5ac3d7b116a245aad4603ce2 | Java | wayshall/onetwo | /core/modules/boot/src/main/java/org/onetwo/boot/limiter/InvokeLimiter.java | UTF-8 | 2,814 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package org.onetwo.boot.limiter;
import org.onetwo.boot.limiter.InvokeContext.InvokeType;
import org.onetwo.common.log.JFishLoggerFactory;
import org.slf4j.Logger;
import org.springframework.util.Assert;
/**
* @author wayshall
* <br/>
*/
public interface InvokeLimiter {
String getKey();
InvokeType getInvokeT... | true |
2970408c84f6f2b787f9dbe58eb108144fa1940d | Java | psNobre/MOrpHEuS-Web | /src/main/java/br/com/morpheus/service/CustomService.java | UTF-8 | 4,218 | 2.375 | 2 | [] | no_license | package br.com.morpheus.service;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.morpheus.config.StaticVariablesConfig;
i... | true |
e9739edd2d03eb884d139ce68cd152161007840f | Java | myxiao7/xiche | /app/src/main/java/com/zh/xiche/entity/BillYearEntity.java | UTF-8 | 575 | 2.03125 | 2 | [] | no_license | package com.zh.xiche.entity;
/**
* 年份类型账单
* Created by zhanghao on 2016/10/12.
*/
public class BillYearEntity {
/**
* yeardate : 2016
* yearincome : 300
*/
private String yeardate;
private String yearincome;
public String getYeardate() {
return yeardate;
}
public v... | true |
75115b64f27871e179b30f8ac34e75d614670a87 | Java | Zane-XY/compressor | /src/main/java/w/xy/config/CompressionScheme.java | UTF-8 | 124 | 1.585938 | 2 | [] | no_license | package w.xy.config;
/**
* @author xiaoye.wxy
* @date 2019/07/20
*/
public enum CompressionScheme {
ZIP,
GZIP
}
| true |
d55bf56be8527c61275215113e452e5237971b5e | Java | AWolfsdorf/PopularMovies | /app/src/main/java/com/example/alexis/popularmovies/Fragment_Main.java | UTF-8 | 9,403 | 2.3125 | 2 | [] | no_license | package com.example.alexis.popularmovies;
import android.content.SharedPreferences;
import android.icu.text.SimpleDateFormat;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.annotation.Nullable;... | true |
fb6c0cf55835319fee208cc189c3a161ba8ce9d6 | Java | NyleVII/SkiHillHCI | /app/src/main/java/nylecpsc481/skihillhci/LiftTicketActivity.java | UTF-8 | 907 | 2.28125 | 2 | [] | no_license | package nylecpsc481.skihillhci;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import static nylecpsc481.skihillhci.R.id.liftTicketSpinner;
import static nylecpsc481.skihillhci.R.id.skiSpinner;
public class LiftTicketActiv... | true |
7a166edb7b43e8242b7db24ae0492967765648a0 | Java | akshunive/My-code | /web-customer-tracker/src/com/nive/springdemo/service/CustomerSerivceImpl.java | UTF-8 | 1,396 | 2.453125 | 2 | [] | no_license | package com.nive.springdemo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.nive.springdemo.dao.CustomerDAO;
import com.nive.springdemo.entity.Cust... | true |
58e17a202d53dfeba0cab913611bfc08713e0a0c | Java | lmvdz/DeliriumMod | /src/main/java/net/lmvdz/delirium/portal/PortalManipulation.java | UTF-8 | 11,629 | 2.296875 | 2 | [
"CC0-1.0"
] | permissive | package net.lmvdz.delirium.portal;
//import com.qouteall.immersive_portals.Helper;
//import com.qouteall.immersive_portals.McHelper;
//import com.qouteall.immersive_portals.portal.GeometryPortalShape;
//import com.qouteall.immersive_portals.portal.GeometryPortalShape.TriangleInPlane;
//import com.qouteall.immersive_po... | true |
9ad2dbe888aaebf774efe839b6355930197e2c84 | Java | zhongxingyu/Seer | /Diff-Raw-Data/21/21_2bac3bb729c7183e8fa640ad66fcd5d7bc43f9a1/SOAPEnvelopeTestBase/21_2bac3bb729c7183e8fa640ad66fcd5d7bc43f9a1_SOAPEnvelopeTestBase_t.java | UTF-8 | 4,299 | 2.1875 | 2 | [] | no_license | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License");... | true |
ad181cb3a66a0b113e56a0f6be45ec4734b6d1c2 | Java | Jaroslaw-Protasiewicz/Phytia | /src/main/java/pl/phytia/prediction/crossValidation/MLPArchitectureTask.java | UTF-8 | 9,845 | 1.976563 | 2 | [] | no_license | package pl.phytia.prediction.crossValidation;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import pl.phytia.ann.networks.MLPNetwork;
import pl.phytia.ann.networks.Network;
import pl.phytia.api.SignalAPI;
import pl.phytia.... | true |
0c9ca25639290254972095521aa4e37cfb4d76ce | Java | LynnHuang93/Leetcode | /282ExpressionAddOperators.java | UTF-8 | 2,305 | 3.859375 | 4 | [] | no_license | /*
282. Expression Add Operators
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so they evaluate to the target value.
Examples:
"123", 6 -> ["1+2+3", "1*2*3"]
"232", 8 -> ["2*3+2", "2+3*2"]
"105", 5 -> ["1*0... | true |
5fd46b8f91e9905ae3abc2c85ed3221bf2d4dcc9 | Java | Saikiran328/OTrim | /src/test/java/com/otrim/qa/testcases/LandingPageTest.java | UTF-8 | 1,136 | 2.203125 | 2 | [] | no_license | package com.otrim.qa.testcases;
import java.awt.AWTException;
import java.io.IOException;
import org.openqa.selenium.By;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import com.otrim.qa.pages.LandingPage;
public class LandingPag... | true |
e7c5615b34c4655be23c90ce02cd6336cb5975fd | Java | dani10mv/KingSecureHub | /app/src/main/java/com/example/kingsecurehub/exceptions/DispositivoExistenteException.java | UTF-8 | 179 | 1.960938 | 2 | [] | no_license | package com.example.kingsecurehub.exceptions;
public class DispositivoExistenteException extends Exception{
public DispositivoExistenteException(){
super();
}
}
| true |
c62f371e93c13caa5daf2380ee9f85fb3ad7151a | Java | IPlytics-GmbH/codingchallenge-backend-webapp | /src/main/java/de/iplytics/codingchallenge_backend_webapp/standards/Standard.java | UTF-8 | 304 | 2.078125 | 2 | [] | no_license | package de.iplytics.codingchallenge_backend_webapp.standards;
import lombok.Data;
import javax.persistence.Entity;
import javax.persistence.Id;
@Data
@Entity(name = "standard")
public class Standard {
@Id
private String standardId;
private String name;
private String description;
}
| true |
6f29e0c95efa82f2d60b31fcf6654d40a394299c | Java | ayubali/jms | /jms_mom_glassfish/src/main/java/com/ayub/sarker/core/jms/topic/JMSTopicReceiver.java | UTF-8 | 3,309 | 2.375 | 2 | [] | no_license | /**
*
*/
package com.ayub.sarker.core.jms.topic;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Properties;
import javax.jms.JMSException;
import javax.jms.Session;
import javax.jms.Topic;
import javax.jms.TopicConnection;
import javax.jms.TopicConnectionFactory;
import javax.jms... | true |
514f2007c27d2d6724ded4e54b3ffcb90c3e84f9 | Java | gtjemwa/ka2-proyect | /Prototipo/wordomination/test/BDWorDomination/LetraTest.java | UTF-8 | 3,675 | 2.625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package BDWorDomination;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @author Andrés
*... | true |
4cd06f0b5776c24207ef965b632d63fd218708e3 | Java | li9503/carrots | /carrots/backstage-service/src/com/jnshu/carrots/backstageservice/model/CompanyTwo.java | UTF-8 | 3,053 | 2.140625 | 2 | [] | no_license | package com.jnshu.carrots.backstageservice.model;
public class CompanyTwo {
private Long companyId;
private Long companyOneId;
private String companyArea;
private String companySlogan;
private Integer companySize;
private String companyProductName;
private String companyProductLogo;
... | true |
4fb43fbae1981cc705bbd23350f1110a5b6f4418 | Java | fojomars/EjercicioExtras | /src/extrordenador/Teclado.java | UTF-8 | 771 | 3.015625 | 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 extrordenador;
/**
*
* @author fojomars
*/
public class Teclado {
// Variables
private int numTeclas;
// C... | true |
e56855b9cedb05e4ad0c6461ce9be7ff856f0118 | Java | QaisFazal/JAVA-RMI | /JAVA-RMI/ProjectServer/src/stress/rmiserver/RunServer.java | UTF-8 | 1,503 | 2.5625 | 3 | [] | no_license | package stress.rmiserver;
import java.net.MalformedURLException;
import java.rmi.*;
import stress.data.loginServer;
import stress.data.questionServer;
import stress.data.submitAndSolutionsServer;
import stress.rmiiinterface.loginInterface;
import stress.rmiiinterface.questionInterface;
import stress.rmiiinter... | true |
6ce916b2572df60989aed2c98425dca7d7f37e30 | Java | maverstr/Projet-Dungeon | /src/model/CP.java | UTF-8 | 1,721 | 2.8125 | 3 | [] | no_license | package model;
import java.io.File;
import java.util.ArrayList;
public class CP extends Player {
private static final long serialVersionUID = 42L;
private static final File spriteFileCPU = new File(GameObject.class.getResource("/resources/sprites/CP_U.png").getFile());
private static final File spriteFileCPR =... | true |
92405fa67fa286e9dadbe650da547b1690842bdf | Java | catalinstrimbei/sia-openerp | /OpenERP/OpenERP_PRODUCTIE/src/org/open/erp/services/productie/Reteta.java | UTF-8 | 1,809 | 2.25 | 2 | [] | no_license | package org.open.erp.services.productie;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import org.open.erp.services.nommat.Material;
@Entity
public class Reteta {
@Id @GeneratedValue
private Integer IdReteta;
... | true |
6e0b0d5cd6e5991b5493dd1c5f2bf3f4431d38a3 | Java | PrometheusComing/bestjava | /src/main/java/com/best/java/pattern/singleton/LazySingleton.java | UTF-8 | 415 | 3.171875 | 3 | [] | no_license | package com.best.java.pattern.singleton;
// 懒汉模式,会有多线程问题,加锁解决
public class LazySingleton {
private LazySingleton() {
System.out.println("LazySingleton is create ");
}
private static LazySingleton lazySingleton = null;
public static LazySingleton getLazySingleton () {
if (lazySingleton == null) {
return new L... | true |
e09b57b5415602096b282100814518aeb5ccc45e | Java | prodigyK/ElectionsApp | /src/main/java/com/prodigy/fondbase/controller/rest/commission/ElectionCandidateRestController.java | UTF-8 | 4,938 | 2.09375 | 2 | [] | no_license | package com.prodigy.fondbase.controller.rest.commission;
import com.prodigy.fondbase.model.commission.ElectionCandidate;
import com.prodigy.fondbase.model.upload.UploadCandidate;
import com.prodigy.fondbase.service.commission.ElectionCandidateService;
import com.prodigy.fondbase.to.ElectionCandidateTo;
import org.spri... | true |
2287593293be10c01d93a63b16be058c560f4403 | Java | shuaiwang-java/lzxny | /src/main/java/com/dao/WXUserMapper.java | UTF-8 | 1,082 | 1.851563 | 2 | [] | no_license | package com.dao;
import com.bean.WXUser;
import com.bean.WXUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface WXUserMapper {
long countByExample(WXUserExample example);
int deleteByExample(WXUserExample example);
int deleteByPrimaryKey(Integer id... | true |
b4cf4692b8c73863635bdef7842cf40132450929 | Java | newSue/platform-parent | /platform-api/src/main/java/com/cpone/platform/api/service/UpdateEmailAndPasswordService.java | UTF-8 | 263 | 1.664063 | 2 | [] | no_license | package com.cpone.platform.api.service;
import java.math.BigInteger;
/**
* Created by pramoth on 5/8/2015 AD.
*/
public interface UpdateEmailAndPasswordService {
public void updateEmailAndPassword(String email, String password, BigInteger customerId);
}
| true |
d6b779b2b697c28b741f85221a1d5d73909302e1 | Java | vinspier/vinspier-demo | /spring-boot/zookeeper-demo/src/main/java/com/vinspier/seckill/common/ResultCode.java | UTF-8 | 1,794 | 2.453125 | 2 | [] | no_license | package com.vinspier.seckill.common;
import lombok.ToString;
@ToString
public enum ResultCode {
/** 秒杀过程的状态 */
ENQUEUE_PRE_SECKILL(6, "排队中..."),
/** 释放分布式锁失败,秒杀被淘汰*/
DISTLOCK_RELEASE_FAILED(5, "很遗憾没抢到"),
/** 获取分布式锁失败,秒杀被淘汰 */
DISTLOCK_ACQUIRE_FAILED(4, "很遗憾没抢到"),
/** Redis秒杀没抢到 */
RED... | true |
a47854ccebf903fc2167dab4ed4ac9a6ecf823f0 | Java | DorkinsTheOwl/owl-learning-java | /Deadlock - SayHello/src/com/company/Main.java | UTF-8 | 1,226 | 3.78125 | 4 | [
"MIT"
] | permissive | package com.company;
public class Main {
public static void main(String[] args) {
final PolitePerson tom = new PolitePerson("Tom");
final PolitePerson alexander = new PolitePerson("Alexander");
new Thread(new Runnable() {
@Override
public void run() {
... | true |
bf016f4b22120b6c6eb22d507b2b81a5cadd9fbb | Java | SYYP/Electricityproject | /app/src/main/java/xiangmu/bawai/com/electricityproject/Module/IhomeFragmentmodle.java | UTF-8 | 445 | 1.796875 | 2 | [] | no_license | package xiangmu.bawai.com.electricityproject.Module;
import java.util.List;
import xiangmu.bawai.com.electricityproject.bean.Titlebean;
/**
* date : ${Date}
* author:衣鹏宇(ypu)
*/
public interface IhomeFragmentmodle {
void getdata(int index,IndexFragmentModelListener listener);
interface IndexFragmentMod... | true |
0be7029db8b4eb977d4e5227720b75cfa28aab06 | Java | ceshannon/hooaha | /app/src/main/java/com/hooaha/andr/im/zuzhii/MainActivity.java | UTF-8 | 15,289 | 1.664063 | 2 | [] | no_license | package com.hooaha.andr.im.zuzhii;
import android.annotation.TargetApi;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Build;
import android.support.design.widget.NavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import androi... | true |
09170a2de1ef937b8803115377d157103963bda2 | Java | zhengchengrong/bjajnow | /app/src/main/java/com/threehmis/bjaj/api/bean/request/ProjectInfoProgressReq.java | UTF-8 | 611 | 1.726563 | 2 | [] | no_license | package com.threehmis.bjaj.api.bean.request;
public class ProjectInfoProgressReq {
private String projectId="";
private String branchName="";
private String projectXxjd="";
public String getBranchName() {
return branchName;
}
public void setBranchName(String branchName) {
this.branchName = branchName... | true |
a0222c9ffd0635bc8775ec2f49f9c013b3564062 | Java | R3dstrik3/Scharfswiese | /src/StammfunktionsRechner.java | UTF-8 | 350 | 2.78125 | 3 | [] | no_license |
public class StammfunktionsRechner implements IntegralRechner{
public double Integral(HalbKreis k, double von, double bis) {
return Fx(k,bis)- Fx(k,von);
}
public double Fx(HalbKreis k, double x){
double r = k.getRadius();
double v = k.getVerschiebungX();
return (r*r*Math.asin((x-v)/r)+(x-v)*Math.sqrt(... | true |
cda027c62245aa2f745b25006f2390e4a9dc9240 | Java | williamhdavis/University-Galactic-Defense | /src/Data/CharacterMap.java | UTF-8 | 6,753 | 3.75 | 4 | [] | no_license | /**
* Created by William Davis on 10/02/2016.
*/
package Data;
import java.lang.Character;
public class CharacterMap
{
/**
* The character instance variable is used to store the character.
*/
private char character;
/**
* The struct instance variable is used to store the dat... | true |
333411a126220ad7bb31f61f99eb53cc08129640 | Java | ricks92/DummyCAT-with-security-3May | /DummyCAT/src/main/java/com/hsc/cat/repository/SkillRepository.java | UTF-8 | 352 | 1.960938 | 2 | [] | no_license | package com.hsc.cat.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.hsc.cat.entity.EmployeeDetails;
import com.hsc.cat.entity.Skill;
@Repository
public interface SkillRepository extends JpaRepository<Skill, Integer>{
Skill findB... | true |
99b6070b65bae84e7460fc47fe97b9bfd328e082 | Java | mhdfadli/pemograman-berorientasi-object | /2Dimensi/src/Main.java | UTF-8 | 5,337 | 2.859375 | 3 | [] | no_license |
import java.util.*;
import bangundatar.*;
import bangunruang.*;
public class Main {
public static void main(String[] args) {
int pil;
char kembali;
double tinggi;
Scanner input = new Scanner (System.in);
do
{
//Scanner input=n... | true |
c9bf8b260ca748bdd588ee2d814a5dc2aeb4933c | Java | ralphortiz/rampage | /app/src/main/java/com/example/rampagegg/ui/home/HomeViewModel.java | UTF-8 | 893 | 2.203125 | 2 | [] | no_license | package com.example.rampagegg.ui.home;
import android.app.Application;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import com.example.rampagegg.model.useraccount.Account;
import com.example.rampagegg.network.DotaRepository;
import com.example.rampagegg.util.Status;
public class H... | true |
ae7b7238c26f0e6f0355ebf91e681378f87bdf12 | Java | jeff-busiui/DataStructuresAndAlgorithms | /DataStructures/src/main/java/com/atguigu/datastructures/search/ErfenSearch.java | UTF-8 | 1,972 | 4.34375 | 4 | [] | no_license | package com.atguigu.datastructures.search;
/**
*
* 1.数值必须有序的
* 2.先找数值下标为中间的值,和要查找的值进行比较
* 3.查找的值 》 中间的值,那就向右递归查找
* 4.查找的值 < 中间的值,那就向左递归查找
* 5.查找的值 == 中间的值,那就直接返回
* @author sunbaojinq
* @date 2020/5/18 8:51
*/
public class ErfenSearch {
public static void main(String[] args) {
int[] arry = {1,2,9,... | true |
f5d64aaef2e5ad05d37374274b26bc57f2198f9f | Java | nicosiaFrancescoCN/4AInf1920 | /003puntoGeometrico/src/PuntoGeometrico.java | UTF-8 | 816 | 3.015625 | 3 | [] | no_license | public class PuntoGeometrico
{
int x;
int y;
}
public int getX()
{
return x;
}
public void setX(int x)
{
this.x = x;
}
public int getY()
{
return y;
}
public setY(int y)
{
this.y = y;
}
public int nQuadrante()
{
int quadrante;
if(this.x>0 && this.y>0)
... | true |
8fc345753719683b69ce8b75c7b10e4bb1706f5e | Java | thermatk/TUI-ConsoleLauncher | /app/src/main/java/ohi/andre/consolelauncher/commands/main/raw/shellcommands.java | UTF-8 | 2,131 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package ohi.andre.consolelauncher.commands.main.raw;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import ohi.andre.consolelauncher... | true |
6accb65b0fa636a7d386e27af364fa9921c395c5 | Java | huaweicloud/huaweicloud-sdk-java-v3 | /services/ges/src/main/java/com/huaweicloud/sdk/ges/v2/model/ListGraphsRespVertexIdType.java | UTF-8 | 3,088 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package com.huaweicloud.sdk.ges.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* 点的id类型,仅持久化图需要填写。 > 点ID类型确定后,将无法更改,请用户谨慎选择!
*/
public class ListGraphsRespVertexIdType {
@JsonInclude(JsonInclude.Include.NON... | true |
15ed37d877b92e0aa8c3ae76641355eff95b1daf | Java | guochan007/JavaStudy | /src/com/imooc/javaSocket/day2/Client2.java | UTF-8 | 1,528 | 3.453125 | 3 | [] | no_license | package com.imooc.javaSocket.day2;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.net.Socket;
import java.net.UnknownHostException;
/*
* 客户端
*/
public class Client2 {
publi... | true |
6586fe003e3d31bb14e9e49990f329fca3e12533 | Java | JustTrust/test_app | /Admin/AdminApp/src/main/java/com/admin/di/AppComponent.java | UTF-8 | 509 | 1.523438 | 2 | [] | no_license | package com.admin.di;
import com.admin.ui.MainListActivity;
import com.admin.ui.PlayerSettingActivity;
import com.admin.ui.dialog.NotificationDialog;
import javax.inject.Singleton;
import dagger.Component;
/**
* Created by Anton
* mail to a.belichenko@gmail.com
*/
@Component(modules = {AppModule.class})
@Single... | true |
e89eeca4182884809c8e727c679f8d18197c83bf | Java | typebi/Nawa | /src/community/control/CommuController.java | UHC | 14,468 | 1.96875 | 2 | [] | no_license | package community.control;
import java.io.*;
//import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest... | true |
98910f1e4c83a0e70254d4e8e9440392e176f42e | Java | cdmunoz/CurrencyConverter | /app/src/main/java/co/cdmunoz/currencyconverter/MainActivity.java | UTF-8 | 16,053 | 1.960938 | 2 | [] | no_license | package co.cdmunoz.currencyconverter;
import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.Ac... | true |
7e9a710418a36b269fa975f99f494ca2ec5a3c3a | Java | SoullessStone/ch.bfh.bti7081.s2016.yellow | /src/main/java/ch/bfh/bti7081/s2016/yellow/SwissMD/model/dto/DangerStateHarmless.java | UTF-8 | 1,168 | 2.875 | 3 | [] | no_license | package ch.bfh.bti7081.s2016.yellow.SwissMD.model.dto;
import ch.bfh.bti7081.s2016.yellow.SwissMD.model.exception.DangerStateException;
import ch.bfh.bti7081.s2016.yellow.SwissMD.model.util.DangerStateType;
/**
*
* Represents the danger state harmless . which is not really a danger state, but is needed - for a pat... | true |
904a8d7d8f6e8fe635d6fe6c65c915478a2a8d9f | Java | janesferr/WADD-Courses | /WA140 - Object Oriented Programming with Java/WA140_instructor/WA140_solutions/Solutions/Chapter15/StudentFiles/CodeInFigures/JDemoCardLayout.java | UTF-8 | 945 | 3.234375 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class JDemoCardLayout extends JFrame implements ActionListener
{
private CardLayout cards = new CardLayout();
private JButton b1 = new JButton("Ace of Hearts");
private JButton b2 = new JButton("Three of Spades");
private JButt... | true |
69fd40c63f531f905a782a3a257a6650b805df07 | Java | panda-zhong/webfavorite2.0 | /src/main/java/panda/nono/WebFavorite/daoImpl/UserDaoImpl.java | UTF-8 | 7,955 | 2.46875 | 2 | [] | no_license | package panda.nono.WebFavorite.daoImpl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import panda.nono.WebFavorite.comm... | true |
94263605481aab439a3c68c8a0f042952da233bd | Java | NoraCore/rail-passenger-freight-transport-system | /train-domen-system/src/main/java/by/issoft/krivonos/train/domens/users/Ticket.java | UTF-8 | 1,977 | 2.46875 | 2 | [] | no_license | package by.issoft.krivonos.train.domens.users;
import by.issoft.krivonos.train.domens.wagons.carriages.Seat;
import java.util.Date;
import java.util.UUID;
public class Ticket {
private final UUID id;
private Seat seat;
private int coach;
private int price;
private int status;
private Date dat... | true |
297c306daf4c35f0d91edfd45bc3caff1d163603 | Java | dcoli/plt4115 | /src/compiler/settings/Printer.java | UTF-8 | 659 | 2.96875 | 3 | [] | no_license | package compiler.settings;
import java.io.*;
public class Printer {
FileWriter fw;
public Printer(String name){
try {
fw = new FileWriter(name);
}
catch (IOException ioe) {
System.out.println("Could not open file to hold generated code.");
}
};
public boolean print (String text) {
try {
fw.... | true |
f4bd74852eeae7be2917b7174c6fc5a5d8db3c3f | Java | ktj1997/SpringSlackWebhook | /src/main/java/template/slack/webhook/app/errorbot/util/JsonUtil.java | UTF-8 | 1,880 | 2.40625 | 2 | [] | no_license | package template.slack.webhook.app.errorbot.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.type.CollectionTyp... | true |
54e5a60fbc13f93c9ca7cfcb4a9ad3c24b4baa8f | Java | mariouriarte/SimUDuck | /src/main/java/models/MallarDuck.java | UTF-8 | 394 | 2.375 | 2 | [] | no_license | package models;
import behaviors.battery.DontNeedBattery;
import behaviors.fly.FlyNoWay;
import behaviors.fly.FlyWithWings;
import behaviors.quack.Quack;
public class MallarDuck extends Duck {
public MallarDuck() {
this.typeDuck = "Mallard Duck";
quackBehavior = new Quack();
flyBehavior =... | true |
3f2bd6766f856c4918d78fe8d58cdebb4148bd55 | Java | darkstorm01/EcommerceWebApp | /src/main/java/com/dbmsproject/EcommerceWebApp/WalletRepo.java | UTF-8 | 937 | 2.59375 | 3 | [] | no_license | package com.dbmsproject.EcommerceWebApp;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class WalletRepo {
Connection con;
public WalletRepo() {
try{
con=MyConnectionProvider.getCon();
//con.close();
}
catch(Exception e){
System.out.println(e);
}... | true |
9d2d47f6fda7cf8ddc6782a5a37ec4a0ceaccd62 | Java | vitecde/cluecumber-report-plugin | /plugin-code/src/main/java/com/trivago/cluecumber/properties/PropertyManager.java | UTF-8 | 5,396 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 trivago N.V.
*
* 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 ... | true |
b6420888bee3d9da55505d6b5571164688030a68 | Java | HyveMynd/cs4540 | /javaee_workspace/ps10-monroy/src/beans/Product.java | UTF-8 | 152 | 2.0625 | 2 | [] | no_license | package beans;
public class Product {
public int Id;
public String Brand;
public String Name;
public int Quantity;
public String Specification;
}
| true |
d865a7a02290844f5625fa10f864b5844c66cdfc | Java | juandavidr/myaccounting-back | /src/main/java/com/example/demo/controller/PaymentTypeServiceController.java | UTF-8 | 2,045 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.example.demo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ... | true |
89ca4da3d8c955350899bfe1cc7c3dfa8206d30b | Java | xpw-osr/blog-examples | /Spring Boot/security-acl/src/main/java/com/simplejourney/securityacl/entities/ShareSetting.java | UTF-8 | 274 | 1.765625 | 2 | [] | no_license | package com.simplejourney.securityacl.entities;
import lombok.Data;
import org.springframework.security.acls.model.Permission;
import org.springframework.security.acls.model.Sid;
@Data
public class ShareSetting {
private Sid sid;
private Permission permissions;
}
| true |
4b2cb0577972ae4de4eef973d7d5cd157cc8a409 | Java | nlight10/learning-spring | /hazelcast/hazelcast-locks/src/main/java/kz/gm/hazelcastlocks/HazelcastLocksApplication.java | UTF-8 | 722 | 2.078125 | 2 | [] | no_license | package kz.gm.hazelcastlocks;
import kz.gm.hazelcastlocks.methods.HazelcastMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@... | true |
140121b0ab6142ecee3594b42fd749553a3901b2 | Java | taixiang/dsw | /app/src/main/java/com/dingshuwang/NovelActivity.java | UTF-8 | 711 | 2.109375 | 2 | [] | no_license | package com.dingshuwang;
import android.content.Intent;
import com.dingshuwang.base.BaseActivity;
import com.dingshuwang.base.BaseFragment;
import com.dingshuwang.base.BaseTitleActivity;
import com.dingshuwang.fragment.NovelFragment;
/**
* Created by tx on 2017/6/15.
*/
public class NovelActivity extends BaseTitl... | true |
589fb858e63eb9a6c6283285ca191f82c8f0f0fc | Java | serhiibastrykin/Java-Selenide-tests | /src/main/java/com/seleniumeasy/enums/statics/FileTypes.java | UTF-8 | 666 | 2.46875 | 2 | [] | no_license | package com.seleniumeasy.enums.statics;
public enum FileTypes {
TXT("text/plain"),
PDF("application/pdf"),
CSV("application/csv" + ", text/csv"),
XML("application/xml" + ", text/xml"),
JSON("application/json" + ", text/json"),
JPEG("image/jpeg"),
PNG("image/png"),
BINARY("application/bi... | true |
7ad30716dfcec541cfdb1e98b4c7c88298faadf4 | Java | prajyotgit/pms | /src/main/java/com/axisrooms/pms/PmsApplication.java | UTF-8 | 1,361 | 2.015625 | 2 | [] | no_license | package com.axisrooms.pms;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annot... | true |
d556be0552cf2251eab0b64072b7d448f74979d2 | Java | ChandsiGupta/JAVA-Interview-Programs | /PrimeNumbers2.java | UTF-8 | 312 | 3.09375 | 3 | [] | no_license | import java.util.Scanner;
class PrimeNumbers2
{
public static void main(String[] s)
{Scanner sc = new Scanner (System.in);
int n,j;
System.out.println("Enter the numbers to be print");
n = sc.nextInt();
for(int i=2;i<=n;i++)
{
for(j=2;j<=i;j++)
{
if(i==j)
{
System.out.println(i);
}
if(i%j==0)
{break;
}
}
}}}
| true |
1f2acea79b7a44eb2599b96b2396cae9766584f9 | Java | junseokchae/JavaPrograms | /A3_PvPGame/src/UserSetting.java | UTF-8 | 664 | 2.796875 | 3 | [] | no_license |
public abstract class UserSetting {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static boolean validateName(String name) {
boolean result = false;
boolean ifNameIncludeNumbers=false;//validate if the name in... | true |
cb6d424b1e2be9e2353c3f13d536afa809ed5806 | Java | Julangar/Metodos_de_ordenamiento | /QuickSort.java | UTF-8 | 1,895 | 3.703125 | 4 | [] | no_license | public class QuickSort {
int particion(int arreglo[], int menor, int mayor)
{
int pivote = arreglo[mayor];
int i = (menor-1); // indice del menor elemento
for (int j=menor; j<mayor; j++)
{
// Si el elemento actual es menor que el pivote
if (arreglo[j... | true |
53af96af69f1f0016ab3452bd0ccf8859892f8ad | Java | rahulreddy69/ShoppingCart | /MyShoppingCart2/src/main/java/com/capg/msc/myshoppingcart/service/ProductService.java | UTF-8 | 585 | 1.953125 | 2 | [] | no_license | package com.capg.msc.myshoppingcart.service;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import com.capg.msc.myshoppingcart.bean.Product;
public interface ProductService{
List<Product> getAllProducts();
Product saveProduct(Product p);
boolean deleteProduc... | true |
8e590af84ba9764c533f374498606157f63c374f | Java | sumit-kul/cera | /src/com/era/community/wiki/ui/action/AllWikisAction.java | UTF-8 | 13,482 | 1.734375 | 2 | [] | no_license | package com.era.community.wiki.ui.action;
import java.io.Writer;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import java.util.StringTokenizer;
import javax.servlet.http.HttpServletResponse;
im... | true |
a451035f0d5fdde3b8d6c613dfc01a35ebebaf3a | Java | dleo555/JavaProgramming | /src/day16_memory_string_while_loop_intro/smsMessage.java | UTF-8 | 736 | 3.234375 | 3 | [] | no_license | package day16_memory_string_while_loop_intro;
public class smsMessage {
public static void main(String[] args) {
String message = "Sender: [John Doe] From Number<2024331234>, Message:{Hey, whats up! Let's code some java!}";
System.out.println("Sender: " + message.substring(message.indexOf('[') + 1... | true |
2f7add26f30623f4421fd28dd69f7986548b3ab7 | Java | aadigariya/car | /src/java/retrv.java | UTF-8 | 2,946 | 2.328125 | 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.
*/
import static com.sun.corba.se.spi.presentation.rmi.StubAdapter.request;
import java.io.IOException;
import java.io.InputStream;
impor... | true |
9e931b639230fd23020d7465090abf9e2ab0c309 | Java | Cemiska/Tests | /test_Selenium/Testing.java | WINDOWS-1250 | 8,917 | 2.546875 | 3 | [] | no_license | package test_Selenium;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.testng.Assert;
i... | true |
19a8c0b73ba9bb66263ac86ce61e176d3af26938 | Java | DDihanov/Java-Advanced-2017 | /Java_OOP_Basics/src/P01_Need_for_Speed/models/CarManager.java | UTF-8 | 4,450 | 2.828125 | 3 | [] | no_license | package P01_Need_for_Speed.models;
import P01_Need_for_Speed.models.cars.Car;
import P01_Need_for_Speed.models.cars.PerformanceCar;
import P01_Need_for_Speed.models.cars.ShowCar;
import P01_Need_for_Speed.models.garage.Garage;
import P01_Need_for_Speed.models.races.CasualRace;
import P01_Need_for_Speed.models.r... | true |
4b91052627d70ca2103e70686982f0ca0fff0ebf | Java | breakining/egeo | /user/branches/branches1.3.0/basics-user/basics-user-service/src/main/java/com/egeo/basics/user/converter/PlatformRoleConverter.java | UTF-8 | 1,538 | 2.40625 | 2 | [] | no_license | package com.egeo.basics.user.converter;
import java.util.ArrayList;
import java.util.List;
import com.egeo.basics.user.model.dto.PlatformRoleDTO;
import com.egeo.basics.user.po.PlatformRolePO;
/**
* DTO和PO相互转换工具类
*
* @author xiaping
* @date 2017-08-12 19:17:06
*/
public class PlatformRoleConverter {
public ... | true |
7de91df35e819e22e6a3901a8b89faa187e0f95a | Java | AndreyKazakov/aplana-study-tasks | /src/main/java/lesson_7/Calculator.java | UTF-8 | 1,165 | 3.96875 | 4 | [] | no_license | package lesson_7;
public class Calculator implements IShow {
private double result;
public Double getResult() {
return Double.valueOf(result);
}
public void performCalculation(double operand1, double operand2, String operation) throws ArithmeticException, CustomMathOperationException { //thr... | true |
ef10e7939a78eaba1bba30013efb17651cd84ea5 | Java | rasaford/CS3235 | /masterlock/app_decompiled/sources/com/akta/android/util/typeface/TypefaceSpan.java | UTF-8 | 735 | 2.453125 | 2 | [] | no_license | package com.akta.android.util.typeface;
import android.content.Context;
import android.graphics.Typeface;
import android.text.TextPaint;
import android.text.style.MetricAffectingSpan;
public class TypefaceSpan extends MetricAffectingSpan {
private Typeface mTypeface;
public TypefaceSpan(Context context, Stri... | true |
f15c924719b45738d00436e5b5a8682dbff0b7bd | Java | tibdewaln/CurrencyConverter | /CurrencyConverter/src/com/spring/app/CurrencyConverter.java | UTF-8 | 690 | 2.953125 | 3 | [] | no_license | package com.spring.app;
import java.util.Map;
public class CurrencyConverter {
private Map<String, Integer> currency;
public Map<String, Integer> getCurrency() {
return currency;
}
public void setCurrency(Map<String, Integer> currency) {
this.currency = currency;
}
public int get... | true |
8f5533ca6a9280bd437357d02272856deb1a8c3e | Java | DongVagrant/LeetCode | /src/main/java/list/AddTwoListReverse.java | UTF-8 | 1,595 | 3.828125 | 4 | [] | no_license | package list;
import util.GeneratorUtil;
import util.ListNode;
import util.PrinterUtil;
import java.util.Stack;
/**
* 反向相加两个链表 限制:不可反转链表
* 思路:链表数据入栈 + 头插入法
*/
public class AddTwoListReverse {
public static void main(String[] args) {
ListNode head1 = GeneratorUtil.newList();
ListNode head2 =... | true |
b67fef889b6c93130616b1334d0e83873feaf0cf | Java | sugkumar87/master-repo | /registration-api/src/main/java/com/service/UserService.java | UTF-8 | 521 | 2.03125 | 2 | [] | no_license | package com.service;
import java.util.List;
import javax.validation.Valid;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import com.customExceptions.MovieAppException;
import com.models.User;
public interface UserService {
public String ... | true |
702f7d2bebdc16f0292967dcaadd8b7cb8dd39de | Java | maruvuina/automation-training | /Framework/GitHubAutomation/src/test/java/com/epam/ta/service/BookingCarCreator.java | UTF-8 | 2,430 | 2.484375 | 2 | [] | no_license | package com.epam.ta.service;
import com.epam.ta.model.BookingCar;
import java.time.LocalTime;
import static com.epam.ta.service.TestData.*;
import static com.epam.ta.util.FormatterPattern.TIME_FORMATTER;
public class BookingCarCreator {
public static BookingCar withPickUpLocation() {
return new BookingC... | true |
c3a6f4294cc6410bdc3d6501257a04069862899c | Java | zagsuccess/rl-app-messageSent | /rl-app-ancha/src/main/java/com/uhope/ancha/service/impl/AnzhaSchemeServiceImpl.java | UTF-8 | 1,765 | 2.078125 | 2 | [] | no_license | package com.uhope.ancha.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.uhope.ancha.domain.AnzhaBulletin;
import com.uhope.ancha.domain.AnzhaScheme;
import com.uhope.ancha.dto.AnzhaSchemeDTO;
import com.uhope.ancha.mapper.AnzhaSchemeMapper;
import com.uhope.anch... | true |
9245ffcce5a81f32bd19c78ac8aca67a55e8246d | Java | zhaochuanxing/MyApiDemo | /app/src/main/java/com/xing/apidemo/emoji/EmojiActivity.java | UTF-8 | 1,374 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.xing.apidemo.emoji;
import android.graphics.Typeface;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.google.gson.TypeAdapterFactory;
import com.xing.apidemo.R;
public class EmojiActivity extends AppCompatActivity {
private TextVi... | true |
216acd50d025932c34bf990666cce0738dd9da55 | Java | njgurav/YokuServer | /Users/Users.Common/Users.Common.DTO/src/main/java/com/yoku/server/sms/dto/OTPRequestDTO.java | UTF-8 | 1,017 | 2.359375 | 2 | [] | no_license | package com.yoku.server.sms.dto;
import com.yoku.server.framework.dto.BaseRequestDTO;
/**
* SMS OTP Request DTO
*/
public class OTPRequestDTO extends BaseRequestDTO {
/**
* Mobile number to send OTP to.
*/
private String mobileNo;
/**
* The device Id to send additional validation information i... | true |
7c44e192df253166a689532a7c434a138d5d83b6 | Java | abramovpav/ppvis.calculator | /by.bsuir.iit.abramov.ppvis.calculator/src/by/bsuir/iit/abramov/ppvis/calculator/model/Model.java | WINDOWS-1251 | 2,742 | 2.546875 | 3 | [] | no_license | package by.bsuir.iit.abramov.ppvis.calculator.model;
import java.util.List;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import by.bsuir.iit.abramov.ppvis.calculator.controller.CalculateButtonListener;
import by.bsuir.iit.abramov.ppvis.calculator.controller.NextButtonListener;
import by.bsuir.iit.abra... | true |
a71cc32345c5f5acf858bb29efb592f723a80ee6 | Java | Ehbraheem/Baking-Time | /app/src/main/java/com/example/profbola/bakingtime/services/RecipeService.java | UTF-8 | 6,875 | 1.882813 | 2 | [
"MIT"
] | permissive | package com.example.profbola.bakingtime.services;
import android.app.IntentService;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.N... | true |
2c1d030fd81b19d377844f6134068f3062d34d66 | Java | marcosantoniofilho16/hack-backend | /src/main/java/api/controller/CategoriaController.java | UTF-8 | 386 | 1.601563 | 2 | [] | no_license | package api.controller;
import java.util.UUID;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import api.model.Categoria;
import api.service.CategoriaService;
@RestController
@RequestMapping("/categorias")
public class CategoriaControlle... | true |
ff2678cc346f4adb92d413c19ccd940e4c98d149 | Java | fatemehSalem/oauth2_user_getToken | /src/main/java/com/university/javaeeproject/dto/UserDto.java | UTF-8 | 512 | 1.851563 | 2 | [] | no_license | package com.university.javaeeproject.dto;
import com.university.javaeeproject.entity.Role;
import lombok.*;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
public class UserDto {
private Long id;
private Long courseId;
... | true |
e93925b67e7da649eaf8d1108c382930b777f7c2 | Java | Flying9001/springBootDemo | /cloud-alibaba-gateway-filter/src/main/java/com/ljq/demo/springboot/alibaba/gateway/filter/common/util/RouteConvert.java | UTF-8 | 2,370 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.ljq.demo.springboot.alibaba.gateway.filter.common.util;
import cn.hutool.json.JSONArray;
import cn.hutool.json.JSONUtil;
import com.ljq.demo.springboot.alibaba.gateway.filter.model.RouteEntity;
import org.springframework.cloud.gateway.filter.FilterDefinition;
import org.springframework.cloud.gateway.handle... | true |
6df2054f17e7338b04391ac807d59eceb25ca54a | Java | MadeleineHarbom/DAOS | /Aflevering 2/src/opgave1/ClerkThread.java | UTF-8 | 623 | 2.71875 | 3 | [] | no_license | package opgave1;
public class ClerkThread extends Thread{
//jeg er consumer, tager fra koe
//skal afklare customerThreads med random interval
//busy waiting
private Common c;
public ClerkThread(Common c) {
this.c = c;
c.serving = 1;
}
public void run() {
while... | true |
93e867f00a170fe92001c7038aa3cbceb43bda1a | Java | kiranshrestha/Battleship | /Battleship/task/src/battleship/exception/BattleShipException.java | UTF-8 | 594 | 2.515625 | 3 | [] | no_license | package battleship.exception;
public class BattleShipException extends RuntimeException{
public BattleShipException() {
}
public BattleShipException(String message) {
super(message);
}
public BattleShipException(String message, Throwable cause) {
super(message, cause);
}
... | true |
cf1bf8d372c8c5247caad2b44701afe950c7cf5b | Java | CXY-YSL/MGZDTS | /Java/java基础/第3章 面向对象(上)/chapter03/src/cn/itcast/chapter03/example14/Example14.java | GB18030 | 460 | 3.515625 | 4 | [
"MIT"
] | permissive | package cn.itcast.chapter03.example14;
/**
* ̬
*/
class Example14 {
// ̬
static {
System.out.println("ľִ̬");
}
public static void main(String[] args) {
// Ĵ봴Person
Person p1 = new Person();
Person p2 = new Person();
}
}
class Person {
// һ̬
static {
System.out.println("Personеľִ̬");
}
}
| true |
4000fe5fb1ac65adb9e2458bb94dbacefad33a8a | Java | ocularminds/expad-spring | /expad-app/src/main/java/com/ocularminds/expad/app/Module.java | UTF-8 | 2,582 | 2.640625 | 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 com.ocularminds.expad.app;
import com.ocularminds.expad.model.Function;
import java.io.Serializable;
import java.util.HashSet;... | true |
aaf51dea5f5f59c624db328a73552527da244834 | Java | patriquejarry/microprofile-jakartaEE | /items-service/src/main/java/com/jakartamp/intro/itemsservice/services/StockService.java | UTF-8 | 1,789 | 2.375 | 2 | [] | no_license | package com.jakartamp.intro.itemsservice.services;
import java.net.URI;
import java.net.URISyntaxException;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.microprofile.faulttolerance.CircuitBreaker;
import or... | true |
c8b0d1cd1419eb598f69aad1754fe1b3aa663778 | Java | pesho1983/BeerShopAutomation | /src/test/java/BeerShop/pages/ChangeProfilePage.java | UTF-8 | 3,408 | 2.125 | 2 | [] | no_license | package BeerShop.pages;
import net.serenitybdd.core.annotations.findby.FindBy;
import net.serenitybdd.core.pages.WebElementFacade;
import net.thucydides.core.annotations.DefaultUrl;
import net.thucydides.core.pages.PageObject;
import static BeerShop.Utils.Utils.WEBSITE_URL;
@DefaultUrl(WEBSITE_URL + "changeProfile.... | true |
60a45ec3078b7a9182df6ea7e072bf5f44bb0581 | Java | chenminghao/pattern | /arithmetic/datastructure/string/Rotation.java | UTF-8 | 745 | 3.78125 | 4 | [] | no_license | /**
*
*/
package datastructure.string;
/**
* 如果一个字符串str,把字符串str前面任意的部分挪到后面形成的字符串叫做str的旋转词。
* 判断两个字符串是否互为旋转词。
* @author cmh
* 2017 下午9:48:52
*/
public class Rotation {
public static boolean isRotation(String A, int lena, String B, int lenb) {
if (A == null || B == null || lena != lenb ) {
return false;
... | true |
19fae10a07d586850ff51ec470dae6416077700d | Java | MartinevskiDenis/Java_EPAM_Tasks | /BookSpace/src/by/epam/BookSpace/services/file/AuthorFileService.java | UTF-8 | 406 | 1.921875 | 2 | [] | no_license | package by.epam.BookSpace.services.file;
import by.epam.BookSpace.dao.file.AuthorFileDAO;
import by.epam.BookSpace.model.Author;
import by.epam.BookSpace.services.Service;
import by.epam.BookSpace.utils.Constants;
import java.util.UUID;
public class AuthorFileService extends Service<Author, UUID> {
public Autho... | true |