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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d61a77ab3a59b02b0d559747131311f3e2e05161 | Java | Lvbnhbq1917/BookShop_Report | /src/main/java/Model.java | UTF-8 | 4,323 | 2.921875 | 3 | [] | no_license | import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
public class Model {
private List<String> book_names_list, authors_list;
private List<Integer> year_of_publishing;
p... | true |
ee85399571680d8801b8ba815320b0e5df67c2c6 | Java | hasitha95/4CKnowledge | /src/net/code/kr/Resetpassword.java | UTF-8 | 732 | 2.609375 | 3 | [] | no_license | package net.code.kr;
import static net.code.kr.DB.getConnection;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class Resetpassword {
public static void Resetpwd(String pass,String email) throws SQLException {
Connection connection = getConnection();
... | true |
be16c58a0538a978127a3eefe425c9972217441c | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/qii_weiciyuan/libs/showcaseviewlibrary/src/com/espian/showcaseview/drawing/ClingDrawer.java | UTF-8 | 401 | 1.929688 | 2 | [] | no_license | // isComment
package com.espian.showcaseview.drawing;
import com.espian.showcaseview.utils.ShowcaseAreaCalculator;
import android.graphics.Canvas;
/**
* isComment
*/
public interface isClassOrIsInterface extends ShowcaseAreaCalculator {
void isMethod(Canvas isParameter, float isParameter, float isParameter, fl... | true |
2a27763dd82c7d75d3224201c84b57098711a39e | Java | Auch-Auch/avito_source | /sources/com/google/android/gms/internal/ads/zzdth.java | UTF-8 | 886 | 2.21875 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
import java.util.Iterator;
public abstract class zzdth<E> {
/* JADX DEBUG: Multi-variable search result rejected for r1v0, resolved type: com.google.android.gms.internal.ads.zzdth<E> */
/* JADX WARN: Multi-variable type inference failed */
public zzdth<E> zza(It... | true |
db2882c2990d1d0faf3cb19e13fdecdb0395d90d | Java | renjiejie/Mobile-lab | /demo1/app/src/main/java/com/example/demo1/ViewHolder.java | UTF-8 | 190 | 1.632813 | 2 | [] | no_license | package com.example.demo1;
import android.widget.CheckBox;
import android.widget.TextView;
public class ViewHolder {
public TextView fileName;
public CheckBox checkBox;
}
| true |
80e66f407bd4e28107a57523957b5168a6252701 | Java | javierorbe/readtoday | /server/src/main/java/dev/team/readtoday/server/user/domain/EmailAddress.java | UTF-8 | 538 | 2.40625 | 2 | [] | no_license | package dev.team.readtoday.server.user.domain;
import dev.team.readtoday.server.shared.domain.StringValueObject;
import org.apache.commons.validator.routines.EmailValidator;
public final class EmailAddress extends StringValueObject {
public EmailAddress(String value) {
super(value);
if (!isValidEmailAddres... | true |
de174f41f159773d422b6b24680227c2cd99b3bb | Java | NicoLiam/IPTV-Smarters---Billing-1 | /app/src/main/java/com/gehostingv2/gesostingv2iptvbilling/view/utility/epg/service/EPGService.java | UTF-8 | 26,243 | 1.804688 | 2 | [] | no_license | package com.gehostingv2.gesostingv2iptvbilling.view.utility.epg.service;
import android.content.Context;
import android.content.SharedPreferences;
//import com.android.volley.AuthFailureError;
//import com.android.volley.Request;
//import com.android.volley.RequestQueue;
//import com.android.volley.Response;
//import... | true |
0f1e213566c0eb3ad5268c7ec990b2e1b4bc8f36 | Java | choenji/firstProgram | /FirstProgramVersion1/src/firstprogramversion1/FirstProgramVersion1.java | UTF-8 | 1,217 | 2.890625 | 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 firstprogramversion1;
/**
*
* @author Choenji
*/
public class FirstProgramVersion1 {
/**
* @param a... | true |
1b461e9cb9aefa64dfd337237f38a22611472d1a | Java | MertaliKoprl/CucumberTest | /hellocucumber/src/test/java/hellocucumber/Pages/ShoppingCartPage.java | UTF-8 | 1,373 | 2.359375 | 2 | [] | no_license | package hellocucumber.Pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import java.util.List;
public class ShoppingCartPage {
... | true |
21fa69840c673fe5ac782cc78ff4fb07b5c10626 | Java | henrikerola/pro-tools-portlet | /src/main/java/org/vaadin/SpreadsheetView.java | UTF-8 | 7,691 | 2.28125 | 2 | [] | no_license | package org.vaadin;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.repository.model.FileEntry;
import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portle... | true |
2dd69c58efc5b50e4b5216fe483784986fc984d4 | Java | 403glitch/Java_Projects | /MethodChallenge/src/com/company/Main.java | UTF-8 | 1,034 | 3.453125 | 3 | [] | no_license | package com.company;
public class Main {
public static void main(String[] args) {
int Hscore = calculateHighScorePosition(1500);
displayHighScorePosition("John",Hscore );
Hscore = calculateHighScorePosition(900);
displayHighScorePosition("Sam", Hscore);
Hscore = calculat... | true |
0c9ded521bd0797eee93d269d0df629439f741a5 | Java | ManjunathMGowda92/data-structures | /matrix/src/test/java/org/manjunath/matrix/problems/TestMinElementOfRowInMatrix.java | UTF-8 | 2,480 | 2.90625 | 3 | [] | no_license | package org.manjunath.matrix.problems;
import org.manjunath.matrix.documentation.TestCase;
import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class TestMinElementOfRowInMatrix {
private ... | true |
b82a82c42d4ce6174c0967a69bbe6df7434796e5 | Java | benarjee21/BasicsProject | /src/com/java/basics/HackerRankPrograms/WarmUpProgrames/Task3JumpingClouds.java | UTF-8 | 801 | 3.390625 | 3 | [] | no_license | package com.java.basics.HackerRankPrograms.WarmUpProgrames;
import java.util.Scanner;
public class Task3JumpingClouds {
public int minimumSteps(int n,int ar[]) {
int steps=-1;
for(int i=0;i<n;i++,steps++) {
if(i+2<n && ar[i]==0) {
i++;
}
}
return steps;
}
public static void main(String[] args)... | true |
ceb3991bd68f76e9a4445ca3f87c614943750d96 | Java | mino5/JDict | /app/src/main/java/com/mino/jdict/interfaces/IAdapterFactory.java | UTF-8 | 257 | 1.851563 | 2 | [] | no_license | package com.mino.jdict.interfaces;
import android.content.Context;
import java.util.ArrayList;
/**
* Created by Mino on 2014-12-15.
*/
public interface IAdapterFactory<T> {
T factory(Context context, int textViewResourceId, ArrayList<?> objects);
} | true |
92eaf6ffa7f0027b17ab9d8f8a143d50b153b354 | Java | DylanFialho/PAS | /Android/Project/app/src/main/java/pt/ipbeja/estig/twdm/pdm1/project/DetailsActivity.java | UTF-8 | 6,916 | 2.28125 | 2 | [] | no_license | package pt.ipbeja.estig.twdm.pdm1.project;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.Im... | true |
b07e8f5dd13bbe71af6824a7dbdc598b083b3932 | Java | popo820216/projects | /EstateInfo/src/cn/com/example/domain/HouseDetail.java | UTF-8 | 495 | 2.578125 | 3 | [] | no_license | package cn.com.example.domain;
import com.google.gson.Gson;
public class HouseDetail {
int error;
House data;
public int getError() {
return error;
}
public void setError(int error) {
this.error = error;
}
public House getData() {
return data;
}
public void setData(House data) {
t... | true |
f706f6dcc210daef6652f98901d9446fafc82138 | Java | errordaiwa/GetShop | /src/cn/edu/ustc/command/CommandPool.java | UTF-8 | 814 | 2.703125 | 3 | [] | no_license | package cn.edu.ustc.command;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
public class CommandPool {
private static CommandPool instance = new CommandPool();
private ThreadPoolExecutor threadPool;
private CommandPool(){
}
public static CommandPool getI... | true |
10bfd1d30fe80b697fb6bc1253c7144d58f88c0f | Java | clientserver/lotserver | /src/main/java/com/ruyicai/lotserver/consts/Constants.java | UTF-8 | 10,540 | 1.59375 | 2 | [] | no_license | package com.ruyicai.lotserver.consts;
/**
* 常量类
* @author Administrator
*
*/
public class Constants {
//公共请求信息
public final static String command = "command"; //请求命令
public final static String imei = "imei"; //手机标识
public final static String imsi = "imsi"; //手机标识
public final static String soft... | true |
e17da5c4bcaa10e2bcdc82b614dee4f91a7f6433 | Java | MXLHR/spring-mvc-demo | /src/main/java/com/xianlei/spring/web/controller/AysncController.java | UTF-8 | 1,216 | 2.359375 | 2 | [] | no_license | package com.xianlei.spring.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.co... | true |
b5049447dba26a1203087c6fffe527cfdc4f291f | Java | fomalhaut888/FomalhautPattern | /src/tw/idv/cwchen/patterns/strategy/ConcreteStrategy.java | UTF-8 | 187 | 1.953125 | 2 | [] | no_license | package tw.idv.cwchen.patterns.strategy;
public class ConcreteStrategy extends Strategy {
@Override
public void doWithStrategy() {
//write your algorithm code here
}
}
| true |
0b6c7cec30582b75b01bd8aaa486e678378fee0a | Java | OrlandoR54/medishop--Web | /src/main/java/ec/edu/ups/medishop/services/ProductoService.java | UTF-8 | 1,141 | 2.21875 | 2 | [] | no_license | package ec.edu.ups.medishop.services;
import java.util.List;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import ec.edu.ups.medishop.business.G... | true |
0defbf1e43f0bdb660359ede67f42af2ae110348 | Java | lizhou828/ziguiw | /ziguiw-platform/src/main/java/com/zigui/service/impl/StudentArchiveServiceImpl.java | UTF-8 | 655 | 2.015625 | 2 | [] | no_license | package com.zigui.service.impl;
import com.zigui.dao.StudentDao;
import org.springframework.beans.factory.annotation.Autowired;
/**
* Created with IntelliJ IDEA.
* User: liz
* Date: 12-12-28
* Time: P.M.4:36
*/
public class StudentArchiveServiceImpl {
@Autowired
protected StudentDao studentDao;
publi... | true |
ba687bfe27cc1453bd274f4c509caf0c3b3720c9 | Java | hryou0922/project | /dictation/src/main/java/com/hry/project/dictation/controller/word/WordGroupCtl.java | UTF-8 | 3,662 | 2.1875 | 2 | [] | no_license | package com.hry.project.dictation.controller.word;
import com.hry.project.dictation.dto.page.CommonRsp;
import com.hry.project.dictation.dto.page.MyPage;
import com.hry.project.dictation.dto.req.word.WordGroupQry;
import com.hry.project.dictation.model.WordGroupModel;
import com.hry.project.dictation.model.WordModel;... | true |
8423657706d87be9ef33cfb4e636191ad011c7f7 | Java | xnorbal/GED | /GED/src/main/java/fenetre/GEDFrame.java | ISO-8859-1 | 9,885 | 2.75 | 3 | [] | no_license | package fenetre;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.security.NoSuchAlgorithmException;
import java.sql.Connection;
import java... | true |
8bf380f5744ae79f86760b55ee707d610fab91fa | Java | DaemonWX/lettcode | /lettcode/xserver-api-mobile2/src/main/java/xserver/api/module/channel/ChannelConstant.java | UTF-8 | 63,664 | 1.648438 | 2 | [] | no_license | package xserver.api.module.channel;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import xserver.api.constant.DataConstants;
import xserver.common.d... | true |
e8424a91233a45d93cbeb6a8b5c05c683750905c | Java | OakOnEll/LibriDroid | /LibriDroidTest/src/com/oakonell/libridroid/download/DownloadProviderTest.java | UTF-8 | 18,619 | 2.421875 | 2 | [] | no_license | package com.oakonell.libridroid.download;
import com.oakonell.libridroid.download.Download;
import com.oakonell.libridroid.download.DownloadContentProvider;
import com.oakonell.libridroid.download.Download.Downloads;
import android.content.ContentUris;
import android.content.ContentValues;
import android.database.Cur... | true |
ee0f0554cc0cfdcb8d88dd1e39d7a1e043d5bce2 | Java | a249853772/RR-Learn | /renren-admin/src/main/java/io/renren/modules/mytest/service/SysMsgService.java | UTF-8 | 430 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.mytest.service;
import com.baomidou.mybatisplus.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.mytest.entity.SysMsgEntity;
import java.util.Map;
/**
* 系统消息表
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2018-12-27 11:32:11
*/
public in... | true |
8882f7d04a282d3f6bdc13b81d967127f25bb701 | Java | dr0i/regal | /ellinet-sync/src/main/java/de/nrw/hbz/regal/sync/ingest/EllinetDigitalEntityBuilder.java | UTF-8 | 2,835 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012 hbz NRW (http://www.hbz-nrw.de/)
*
* 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 |
8d39b4d8dfc43b3e5dd44c4ef1e0fb5d6b7a3e71 | Java | grupoamigo/grupoamigo-backend | /src/main/java/com/grupoamigo/backend/repository/search/MembershipSearchRepository.java | UTF-8 | 363 | 1.75 | 2 | [] | no_license | package com.grupoamigo.backend.repository.search;
import com.grupoamigo.backend.domain.Membership;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the {@link Membership} entity.
*/
public interface MembershipSearchRepository extends Ela... | true |
5015384979f04f12c4d22b4ae68d3fc0d6eee71a | Java | tiankumiao/game-fiveinarow | /src/com/zhangyuan/javastudy/ChessPieces.java | UTF-8 | 783 | 3.84375 | 4 | [] | no_license | package com.zhangyuan.javastudy;
/**
* 棋子
* @author 300S
*
*/
public class ChessPieces {
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
public int getColor() {
return color;
}
public int getY() {
return y;
}
public void setY(int y) {
this.y = y;
}
//棋子属性 颜色 1黑色 2白色
... | true |
807b4de60ecabf61044720560bbe4b4fb2876a01 | Java | dipanshu21/HackerEarth | /src/com/ProjectEuler/Prob_26_50/$045_TriangularPentagonalAndHexagonal.java | UTF-8 | 4,055 | 3.40625 | 3 | [] | no_license | package com.ProjectEuler.Prob_26_50;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by deepanshu on 18/05/16, 6:09 AM.
*/
class $045_TriangularPentagonalAndHexagonal {
private static final String SPL... | true |
e3f101049be7960571ddee67b3f733b0e3394a7b | Java | SuzyWu2014/coprhd-controller | /apisvc/src/main/java/com/emc/storageos/api/service/impl/resource/AutoTieringService.java | UTF-8 | 8,577 | 1.765625 | 2 | [] | no_license | /*
* Copyright (c) 2008-2013 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.api.service.impl.resource;
import static com.emc.storageos.api.mapper.BlockMapper.map;
import static com.emc.storageos.api.mapper.DbObjectMapper.toNamedRelatedResource;
import java.net.URI;
import java.util.Iterator;
i... | true |
be2121f2cfdc6643a6dcf77d2b803895abb195b1 | Java | dengjiaping/babywatch | /src/com/mobao/watch/customview/CustomViewPager.java | UTF-8 | 1,318 | 2.046875 | 2 | [] | no_license | package com.mobao.watch.customview;
import com.mobao.watch.activity.BabyFragmentActivity;
import com.mobao.watch.fragment.ChatFragment;
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class C... | true |
0a48e4ccccf27b7ee7b4671084b76e5bd9b798ae | Java | alextheking1986/guesswhom | /src/com/sameer/gupshap/GetJSONFromUrl.java | UTF-8 | 1,456 | 2.15625 | 2 | [] | no_license | /**
*
*/
package com.sameer.gupshap;
import java.io.InputStream;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http... | true |
315122afe4dfb9a552860bd701806beb1e4e45de | Java | kintomiko/flink-playaround | /wiki-edits/src/main/java/wikiedits/MeetupAnalysis.java | UTF-8 | 2,676 | 2.28125 | 2 | [] | no_license | package wikiedits;
import indi.kin.flink.connector.MeetupConnectorSource;
import indi.kin.flink.connector.MeetupRsvpEvent;
import indi.kin.flink.connector.MeetupRsvpEventParser;
import indi.kin.flink.connector.MeetupStreamApiClient;
import org.apache.flink.api.common.functions.FoldFunction;
import org.apache.flink.api... | true |
c00b9587ce8259faeaaa7cd37afe630ad0dcdfe6 | Java | grmule018/FellowShip | /Fellowship/src/com/bridgelabz/datastructure/Calender.java | UTF-8 | 1,682 | 3.765625 | 4 | [] | no_license | /******************************************************************************
* Compilation: javac -d bin Calendar.java
* Execution: java -cp bin com.bridgelabz.datastructure.Calendar n
*
* Purpose: �> Takes the month and year as command�line arguments and
* prints the Calendar of the month.
*
*... | true |
f8da8a0da84e1b718fda9b78c353e05296e11519 | Java | rabia-akhtar/Hw | /classwork/Mode.java | UTF-8 | 1,998 | 3.390625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class Mode {
/*----------- Instance Variables --------*/
int[] a;
Random r;
/*----------- Constructors --------*/
public Mode() {
this(20,100);
}
public Mode(int n) {
this(n,100);
}
/*
n - size of the array
m - max va... | true |
e0fef165406c0f718d75f2a7948fd53635453cd1 | Java | ueyudiud/FLE | /src/main/java/farcore/lib/world/ICalendar.java | UTF-8 | 616 | 2.09375 | 2 | [] | no_license | /*
* copyright 2016-2018 ueyudiud
*/
package farcore.lib.world;
import net.minecraft.world.World;
/**
* Calendar for world.
*
* @author ueyudiud
*
*/
public interface ICalendar
{
default long year(World world)
{
return year(world.getWorldTime());
}
long year(long tick);
defaul... | true |
6ec6d68f50bf16c89653148e679efd26aaf14940 | Java | apache/hadoop | /hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Tool.java | UTF-8 | 3,313 | 2.5 | 2 | [
"CC-PDDC",
"CC0-1.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"CDDL-1.0",
"GCC-exception-3.1",
"MIT",
"EPL-1.0",
"Classpath-exception-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-pu... | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
d2295ac52cd7fb0e1fbadbebfc102b4fe25a8231 | Java | VuAnhtu95/Module2 | /doituonghinhhoc/ColorableTest.java | UTF-8 | 474 | 3.046875 | 3 | [] | no_license | package doituonghinhhoc;
public class ColorableTest {
public static void main(String[] args) {
Shape[] shapes = new Shape[3];
shapes[0] = new Circle(2);
shapes[1] = new Rectangle(2,2);
shapes[2] = new Square(2);
for (Shape shape:shapes){
if (shape instanceof Colo... | true |
b752a88d9fb8f468731fee48dbec223ff494894e | Java | BMFirman/code-references | /Java/Part 1/Chapter 14/BoundsDemo.java | UTF-8 | 1,154 | 3.90625 | 4 | [] | no_license | class Stats<T extends Number> {
T[] nums; // array of Number or subclass
// pass the constructos a reference
// to an array of type number or subclass
Stats(T[] o) {
nums = o;
}
double average() {
double sum = 0.0;
for(int i = 0; i < nums.length; i++) {
sum... | true |
55f603807948aff9c4e63a0228d7e67ee00ebf0a | Java | ethan10243/CrandallCraft-GUI | /src/WOW_Project/Mage.java | UTF-8 | 6,480 | 3.453125 | 3 | [] | no_license | package WOW_Project;
import java.util.Random;
public class Mage extends Player
{
private GameDisplay GUI = PlayGame.GUI;
private int kills;
private int heals;
private Random rand = new Random();
//CREATE NEW MAGE
public Mage(String mageName)
{
super(mageName);
setHealth(100);
setHPThreshhold(100);
... | true |
a6b8644b74a205cd73bbf76b0dafb52f369e4c03 | Java | anjaligeril/Android-Project | /ToDoList/app/src/main/java/com/example/todolist/ItemShopping.java | UTF-8 | 403 | 1.851563 | 2 | [] | no_license | package com.example.todolist;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
/*activity to show individual list element in shopping list*/
public class ItemShopping extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(sav... | true |
ee1bde9379f3c590f6d0d00ff278754128d1b82b | Java | radtek/AndroidSmartManager | /SmartManager/app/src/main/java/com/nw/fragments/OthersWantFragment.java | UTF-8 | 25,459 | 1.65625 | 2 | [] | no_license | package com.nw.fragments;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.Mot... | true |
641d0f7130b972b3c3e353c4c17751630ada52e0 | Java | AndrianiP/DesignPatterns | /decorator/EasyPassword.java | UTF-8 | 471 | 2.890625 | 3 | [] | no_license | package decorator;
import java.util.*;
public class EasyPassword extends Password{
public EasyPassword(String phrase) {
this.password = phrase;
this.password = this.password.replaceAll("\\s","");
Random r = new Random();
int temp = r.nextInt(99);
String randNum = Integ... | true |
562344afac8116eaa9ca094c85be1c4ccdf1a5c7 | Java | Iago98/AD | /AD/ad-p5-iago/src/main/java/esica/modelo/vo/ProductoVO.java | UTF-8 | 1,679 | 2.328125 | 2 | [] | no_license | package esica.modelo.vo;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlTransient;
public class ProductoVO implements Serializable{
@Override
public String toString() {
return " nombre=" + nombre + ", referencia=" + referencia + ", descripcion="
+ d... | true |
d6bd3dc9be73201e10cf3cd240259f8c9b80958a | Java | herharry/prv | /PRV-user/app/src/main/java/com/example/lionertic/main/AsyncTask/Register.java | UTF-8 | 3,158 | 2 | 2 | [
"MIT"
] | permissive | package com.example.lionertic.main.AsyncTask;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.widget.Toast;
import com.andro... | true |
f3033ebf6e1f67866fa80e3546a15f593a9c0c13 | Java | mattiaseco/child_care_tech | /client/src/client/SocketController/SocketIngredientiController.java | UTF-8 | 3,865 | 2.59375 | 3 | [] | no_license | package client.SocketController;
import common.Classes.Ingredienti;
import common.Interface.iIngredientiDAO;
import common.SocketRequest;
import common.SocketRequestType;
import common.SocketResponse;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Sock... | true |
d0e218edbb858c5ed95e6b974f61e7b8bdc27c04 | Java | dray92/Programming-Questions | /ctci/Bits5_2.java | UTF-8 | 1,034 | 4.0625 | 4 | [
"MIT"
] | permissive | package ctci;
/**
* Real number between 0 and 1 passed in as a double.
* Print binary representation, to 32 bits. If not
* possible, throw error.
* @author Debosmit
*
*/
public class Bits5_2 {
private final int MAX_BIT_LENGTH = 32;
public String getBinary(double value) {
if(value >= 1 || value <= 0)
... | true |
7f2a82d7a684f85abd6fe234728bc6205a46da0c | Java | estevandiedrich/GymStyleWeb | /src/br/com/rwtech/gymstyleweb/view/report/boleto/BoletoReportAction.java | UTF-8 | 7,467 | 2 | 2 | [] | no_license | package br.com.rwtech.gymstyleweb.view.report.boleto;
import br.com.rwtech.gymstylecore.model.ServiceLocator;
import br.com.rwtech.gymstylecore.model.pojo.ConfiguracaoBoleto;
import br.com.rwtech.gymstylecore.model.pojo.Usuario;
import br.com.rwtech.gymstylecore.model.util.Validador;
import java.math.BigDecimal;
impor... | true |
8d4e13ff5583b8391c548942452f3f96afe9aa2c | Java | MattUhlar/ProgrammingLanguage | /src/main/java/antlrgenerated/ClaciousListener.java | UTF-8 | 2,725 | 2.265625 | 2 | [] | no_license | // Generated from /Users/matt/ProgrammingLanguage/src/main/antlr4/Clacious.g4 by ANTLR 4.7
package antlrgenerated;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* This interface defines a complete listener for a parse tree produced by
* {@link ClaciousParser}.
*/
public interface ClaciousListener extends ... | true |
432cd5c96ac11fb1df731af1a4e9fb8a0d75ec46 | Java | nomine555/mdpnp | /interop-lab/demo-guis/src/main/java/org/mdpnp/guis/waveform/WaveformUpdateWaveformSource.java | UTF-8 | 3,599 | 1.804688 | 2 | [
"BSD-2-Clause"
] | permissive | /*******************************************************************************
* Copyright (c) 2014, MD PnP Program
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions o... | true |
2867ed169b7c99ef05f9cd9f212bbb6750bc4e66 | Java | kylepeterson/quizdroid5 | /app/src/main/java/quizdroid/kylep9/washington/edu/quizdroid/SimpleTopicRepo.java | UTF-8 | 764 | 2.71875 | 3 | [] | no_license | package quizdroid.kylep9.washington.edu.quizdroid;
import java.util.Map;
import java.util.Set;
/**
* Created by kylepeterson on 2/16/15.
*/
public class SimpleTopicRepo implements TopicRepository {
private Map<String, Topic> topics;
public SimpleTopicRepo(Map<String, Topic> topics) {
this.topics = ... | true |
c89c02d3ed02dbef4586246a10cc5c6d8533ae1d | Java | Nincraft/ModPackDownloader | /modpackdownloader-core/src/main/java/com/nincraft/modpackdownloader/container/Manifest.java | UTF-8 | 1,411 | 1.976563 | 2 | [
"MIT"
] | permissive | package com.nincraft.modpackdownloader.container;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
@Getter
@Setter
public class Manifest {
@SerializedName("minecraft")
@Expos... | true |
fd2acd475d4064775b5e5cfbabdffb3e1f18b5d9 | Java | artidev/oeildelynx | /oeildelynx/src/main/java/com/artidev/oeildelynx/service/jpa/PersonneImpl.java | UTF-8 | 2,223 | 2.03125 | 2 | [] | no_license | package com.artidev.oeildelynx.service.jpa;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
impor... | true |
e2295c87651db6660cbe0efff2bf5e39409c2b30 | Java | ericbbraga/PopularMovies | /app/src/main/java/br/com/ericbraga/popularmovies/domain/MovieReview.java | UTF-8 | 1,340 | 2.6875 | 3 | [
"MIT"
] | permissive | package br.com.ericbraga.popularmovies.domain;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by ericbraga on 10/07/17.
*/
public class MovieReview implements Parcelable {
private String mAuthor;
private String mContent;
private String mUrl;
public MovieReview(String author,... | true |
7d292ac695f1482a42a9d761e7c2b0401995708a | Java | pleiad/Ghosts | /eclipe-plugin/Ghosts/src/cl/pleiad/ghosts/core/GConstructor.java | UTF-8 | 490 | 2.515625 | 3 | [] | no_license | package cl.pleiad.ghosts.core;
import cl.pleiad.ghosts.dependencies.TypeRef;
public class GConstructor extends GMethod {
public GConstructor() {
super("<no-name>", false, false);
}
@Override
public int kind() {
return CONSTRUCTOR;
}
public String toSimpleString(){return this.toStringWithOutReturn();}
... | true |
46fb4d7edb411e7d28fb483b96e70244a86ba2ab | Java | Kebzzang/pilates-booking-project | /back/src/main/java/com/keb/club_pila/service/EmailService.java | UTF-8 | 3,713 | 2.359375 | 2 | [] | no_license | package com.keb.club_pila.service;
import com.keb.club_pila.repository.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;
import org.springframework.stereotype.Service;
import org.springframework.tra... | true |
734f3deba744bd5333d465017f168b52fbb9ee93 | Java | Lydzje/corruption-sack | /src/com/lydzje/corruptioSack/entities/mobs/Thunder.java | UTF-8 | 2,181 | 2.453125 | 2 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | package com.lydzje.corruptioSack.entities.mobs;
import com.lydzje.corruptioSack.Game;
import com.lydzje.corruptioSack.gameplay.Thunderbolt;
import com.lydzje.corruptioSack.gameplay.ai.ThunderAI;
import com.lydzje.corruptioSack.graphics.AnimatedSprite;
import com.lydzje.corruptioSack.graphics.Screen;
import com.lydzje.... | true |
e27c890c86820205a5d4b7e169b5c1ec5cdac157 | Java | rkskekabc/test | /SpringTest1/src/main/java/com/rkskekabc/myapp/SampleController2.java | UTF-8 | 856 | 2.203125 | 2 | [] | no_license | package com.rkskekabc.myapp;
import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
impor... | true |
830859f97b179a122d86a7b58e74d21b5b41e9fb | Java | Akshat365/DailyDiaryApp | /app/src/main/java/com/example/dailydiaryapp/MainActivity.java | UTF-8 | 4,080 | 2.3125 | 2 | [] | no_license | package com.example.dailydiaryapp;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.S... | true |
b1c4e858ef662be72de4cf630b5b460d7490187a | Java | luqiang111/Project-Management-System | /otppms/src/com/ft/otp/manager/report/action/ReportAction.java | UTF-8 | 23,420 | 1.773438 | 2 | [] | no_license | /**
*Administrator
*/
package com.ft.otp.manager.report.action;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import com.ft.otp.base.action.BaseAction;
import com.ft.otp.base.exception.BaseException;
import com.ft.otp.common.Constant;
import com.ft.otp.commo... | true |
fb0e242203b025bb9ccf3042c0a85c654bed8edc | Java | vrrs/alg | /src/main/java/com/vrrs/alg/problems/graph/BTMaxWidthFinder.java | UTF-8 | 744 | 3.28125 | 3 | [] | no_license | package com.vrrs.alg.problems.graph;
import java.util.ArrayDeque;
import java.util.Deque;
import com.vrrs.alg.cs.graphs.BTNode;
public class BTMaxWidthFinder {
public <E> int getMaxWidth(BTNode<E> root) {
int maxWidth = 0;
Deque<BTNode<E>> queue = new ArrayDeque<>();
queue.addLast(root);
while(!queue.isEm... | true |
6ff2a919cfedad58244db9107c78dd285a689e70 | Java | Haobo-Zhao/Rooms | /src/main/java/hello/WebSecurityConfig.java | UTF-8 | 2,279 | 2.234375 | 2 | [] | no_license | package hello;
import java.util.Properties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManage... | true |
0f5c001750aebc6806540f077c69e5576ee2a81b | Java | AhmedOsamaGomaa/seleniumFramework | /src/test/java/data/LoginTestWithDDTAndPropertiesFile.java | UTF-8 | 617 | 2.328125 | 2 | [] | no_license | package data;
import org.testng.Assert;
import org.testng.annotations.Test;
import pages.LoginPage;
import tests.TestBase;
public class LoginTestWithDDTAndPropertiesFile extends TestBase {
LoginPage loginObject;
String email = LoadProperties.userData.getProperty("email");
String password = LoadProperties.userData... | true |
ad22663bc8cd45e0c511d2adeb0dc1310bdbd7be | Java | felipedelpiccolo/docusign-webhooks-java | /src/main/java/com/example/WebHookController.java | UTF-8 | 1,802 | 2.21875 | 2 | [] | no_license | package com.example;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web... | true |
ce7c0dcbe36bf6002a9628ea71cd062bf343e9b9 | Java | stokay/LocationMapper2 | /app/src/main/java/com/shinetech/android/ShowStoredLocationActivity.java | UTF-8 | 2,998 | 1.898438 | 2 | [] | no_license | package com.shinetech.android;
import android.app.ListActivity;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import an... | true |
5e3d3eecd03b56a782b0d5cd29422b7a6afc2468 | Java | mandrews6975/Cytinerary | /Backend/cytinerary-backend/src/main/java/com/sb03/repository/LabelRepository.java | UTF-8 | 938 | 2.28125 | 2 | [] | no_license | package com.sb03.repository;
import org.springframework.stereotype.Repository;
import java.util.Collection;
import com.sb03.modal.Label;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
@Reposito... | true |
0f904504b2defe60ac52fc0371c0b69ccf7600ea | Java | groverinho/Java | /HackerRank/Staircase.java | UTF-8 | 401 | 3.015625 | 3 | [] | no_license | import java.util.Scanner;
public class Staircase {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
String a = "#";
String aux = "";
int n2=n;
for (int i = 1; i <=n; i++)
{
for (int j = 0; j < n2-1; j++)
{
aux +=" ";
}
... | true |
f05c927867f5838e575aab7be2b3746e5b9ff7cd | Java | dingdj/My_Android_LiteLauncher | /src/com/ddj/launcher2/ext/BackgroudWorkManager.java | UTF-8 | 673 | 2.421875 | 2 | [] | no_license | package com.ddj.launcher2.ext;
import android.os.Handler;
/**
* 后台工作管理
* @author dingdj
* Date:2013-12-31上午11:57:09
*
*/
public class BackgroudWorkManager {
private static BackgroudWorkManager instance;
private Handler workHandler;
private BackgroudWorkManager(){
BackgroudThread backgroudThread = new ... | true |
adab2656c4a54bbb139859c44d0833ab1c3a5acc | Java | suevip/tradecenter | /trade-client/src/main/java/com/mockuai/tradecenter/client/impl/OrderClientImpl.java | UTF-8 | 18,825 | 2.046875 | 2 | [] | no_license | package com.mockuai.tradecenter.client.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.mockuai.tradecenter.client.OrderClient;
import com.mockuai.tradecenter.common.api.BaseRequest;
import com.mockuai.tradecenter.common.api.Request;
import com.mockuai.tradecenter.common.api.R... | true |
3f95d1295679cbb43da9141540fcd76bf9629e4c | Java | YuvasekharReddy/Justone | /Hibernate/Lab24/src/com/jlcindia/hibernate/Lab24A.java | UTF-8 | 1,308 | 2.765625 | 3 | [] | no_license | package com.jlcindia.hibernate;
import java.util.*;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
public class Lab24A {
public static void main(String[] args) {
Transaction tx=null;
try{
SessionFactory sf=CHibernateUtil.getSessionFactory();
Session s... | true |
6f5d2daabe36b06479fc7f1df4ac9e7b4978e60e | Java | qiubing/HeadsUpWindowDemo | /app/src/main/java/com/example/headsupwindowdemo/FloatWindowService.java | UTF-8 | 3,898 | 2.34375 | 2 | [] | no_license | package com.example.headsupwindowdemo;
import android.app.ActivityManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Handler;
impor... | true |
e1c1b884cd4c53030f91cbe771acbdbc1df22474 | Java | zhanghaodong2017/study | /src/main/java/com/zhd/study/nio/znettyCustom/HeartBeatRespHandler.java | UTF-8 | 565 | 2.046875 | 2 | [] | no_license | package com.zhd.study.nio.znettyCustom;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
/**
* @author: zhanghaodong
* @description
* @date: 2020-03-30 14:57
*/
public class HeartBeatRespHandler extends SimpleChannelInboundHandler<NettyMessage> {
@Override
... | true |
c8f76c457bea2b0c5daf34f53f8ffaf6c7ff1587 | Java | LeeByungJun/boardPractice | /src/main/java/com/kh/fuck/board/model/service/BoardService2.java | UTF-8 | 206 | 1.5625 | 2 | [] | no_license | package com.kh.fuck.board.model.service;
import java.util.List;
import com.kh.fuck.board.model.vo.Board;
public interface BoardService2{
public abstract List<Board> selectAllcjsBoard();
}
| true |
1e1b0ab9131895adddf420d4803f53c8d34558d9 | Java | nenkamc11111/REST | /spring-spark-code/src/main/java/com/thbingenws920/springspark/springsparkcode/service/SparkCodeService.java | UTF-8 | 3,027 | 2.609375 | 3 | [] | no_license | package com.thbingenws920.springspark.springsparkcode.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.springframework.beans.factory.annotation.A... | true |
d23b48f87c52acc64cc6fd22edc06b7ea8be7e92 | Java | yeziwen/jdjava | /src/main/javasource/byb/kafka/run/KafkaHelper.java | UTF-8 | 1,966 | 2.1875 | 2 | [] | no_license | package byb.kafka.run;
import byb.kafka.KafkaProperties;
import kafka.consumer.Consumer;
import kafka.consumer.ConsumerConfig;
import kafka.consumer.KafkaStream;
import kafka.javaapi.consumer.ConsumerConnector;
import java.util.*;
/**
* Created by ye on 2017/3/10.
*/
public class KafkaHelper {
/**
* 配置文件
... | true |
1a3118c204c12e5edc446c0c49baf38f3919abad | Java | harjeet-me/JioTptApplication | /src/main/java/com/jio/tms/service/impl/TransactionsRecordServiceImpl.java | UTF-8 | 3,492 | 2.3125 | 2 | [] | no_license | package com.jio.tms.service.impl;
import com.jio.tms.service.TransactionsRecordService;
import com.jio.tms.domain.TransactionsRecord;
import com.jio.tms.repository.TransactionsRecordRepository;
import com.jio.tms.repository.search.TransactionsRecordSearchRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFact... | true |
ee126a05e2032b8773b201a76f7bd02cabda8778 | Java | JaviKx2/Klondike | /src/main/java/com/javikx2/klondike/model/BoardState.java | UTF-8 | 426 | 1.867188 | 2 | [] | no_license | package com.javikx2.klondike.model;
public enum BoardState {
WAITING_FOR_MOVE,
MOVING_FROM_STOCK_TO_WASTE,
MOVING_FROM_WASTE_TO_STOCK,
MOVING_FROM_WASTE_TO_FOUNDATION,
MOVING_FROM_WASTE_TO_TABLEAUPILE,
MOVING_FROM_TABLEAUPILE_TO_FOUNDATION,
MOVING_FROM_TABLEAUPILE_TO_TABLEAUPILE,
... | true |
85072b398a54e39f5a8bf25508b78435f2840b3c | Java | inception-project/inception | /inception/inception-api-annotation/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/paging/PagingStrategy_ImplBase.java | UTF-8 | 3,835 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | true |
ee13edf7e6b87d0358f1a019d75276db39f9e88a | Java | rl337/incubator | /main/math/src/test/java/org/rl337/math/types/MatrixTest.java | UTF-8 | 13,377 | 3 | 3 | [] | no_license | package org.rl337.math.types;
import java.util.Random;
import junit.framework.TestCase;
public class MatrixTest extends TestCase {
public void assertMatrix(Matrix m, double[][] values, double delta) {
int rows = values.length;
int cols = values[0].length;
assertEquals("rows sho... | true |
d39753d6f7eef66dab22fe4a5a8a692655c38a14 | Java | hpehl/domino-mvp | /domino-test/domino-client-test/src/main/java/org/dominokit/domino/test/api/client/TestClientRouter.java | UTF-8 | 1,642 | 2.171875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package org.dominokit.domino.test.api.client;
import org.dominokit.domino.api.client.ClientApp;
import org.dominokit.domino.api.client.events.ClientRequestEventFactory;
import org.dominokit.domino.api.client.request.PresenterCommand;
import org.dominokit.domino.rest.shared.Event;
import org.dominokit.domino.rest.share... | true |
2b339cd4929017a2b16c6b72d8e2cc946fa35151 | Java | agkozik/AQATrainee | /Java8Features/src/main/java/interfaces/Cooker.java | UTF-8 | 159 | 2.453125 | 2 | [] | no_license | package interfaces;
public class Cooker implements Coocable {
@Override
public void cook() {
System.out.println("Start cooking...");
}
}
| true |
deceae5e8f8389fd834f6d619bf4816cb663aa8c | Java | darwinvtomy/ChillerControl | /app/src/main/java/com/adhiratech/chillercontrol/Components/TimerComponent.java | UTF-8 | 1,701 | 2.4375 | 2 | [] | no_license | package com.adhiratech.chillercontrol.Components;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.adhiratech.chillercontrol.R;
/**
* Created by DARWIN V TOMY on 8/31/... | true |
7496a342c70d98200e0352b9e037a842ce0d81af | Java | Rishabh-98/onlinecoronaconsultationsystem | /src/main/java/com/coronaconsultation/repository/WardRepository.java | UTF-8 | 289 | 1.710938 | 2 | [] | no_license | package com.coronaconsultation.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.coronaconsultation.entities.Ward;
@Repository
public interface WardRepository extends JpaRepository<Ward, Integer> {
}
| true |
3578439d6ad544cb0ac8a5f67805a422c6dd1318 | Java | Minoreva/Projet_Proie_Chasseur | /paint.java | UTF-8 | 1,419 | 2.9375 | 3 | [] | no_license | import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
public class paint extends JPanel{
Master[][] tablo;
public paint(Master[][] tablo){
this.tablo = tablo;
}
public void paint(Graphics g){
// Choix de la couleu... | true |
dd178a380926473274308f1a455658e01be56632 | Java | InteractiveHealthSolutions/aahung-aagahi | /aahung-aagahi/src/main/java/com/ihsinformatics/aahung/aagahi/util/DataType.java | UTF-8 | 3,114 | 2.71875 | 3 | [
"MIT"
] | permissive | /* Copyright(C) 2018 Interactive Health Solutions, Pvt. Ltd.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of the License (GPLv3), or any later version.
This program is distrib... | true |
d6c6d56c83dfc090ba99ed410041c064ce81c83c | Java | PJM03/NeisApi4J | /src/main/java/com/github/pjm03/neis_api4j/exception/NeisAPIException.java | UTF-8 | 678 | 2.359375 | 2 | [
"MIT"
] | permissive | package com.github.pjm03.neis_api4j.exception;
/**
* Api 조회 결과에서 오류가 발생하면 발생하는 Exception <br>
* <a href="https://open.neis.go.kr/portal/data/service/selectServicePage.do?infId=OPEN17020190531110010104913&infSeq=1">학교기본정보 API</a>
* 하단의 메시지 설명란 참고
*/
public class NeisAPIException extends RuntimeException{
publi... | true |
8d5d5a78e604c25261f3dd28d2ef8a42d886a37b | Java | ouuxxxi/Java | /Practice2.java | UTF-8 | 372 | 2.984375 | 3 | [] | no_license | public class Practice2 {
//
public static void main(String[] args) {
int n=11 ;
for(int i = 2;i<=n;i++)
{
if(n%i==0)
{
System.out.println("该数不是素数");
}
else if(i==n)
{
System.out.println("该数是素数");
... | true |
b6269916c45c389ec953188048fb1b8a52694f94 | Java | tim-butterworth/spring_boot_getting_started | /src/main/java/com/collectionManager/entities/Publisher.java | UTF-8 | 602 | 2.5625 | 3 | [] | no_license | package com.collectionManager.entities;
import javax.persistence.*;
import java.util.List;
@Entity
public class Publisher {
@Id
@GeneratedValue
private Long id;
private String name;
@OneToMany(fetch = FetchType.EAGER)
private List<Title> title;
public String getName() {
return na... | true |
610a4527913cb5316e520921d5105e5cd5f31c4f | Java | jagginarendra/HackerRank | /TriesImplementation.java | UTF-8 | 1,922 | 3.78125 | 4 | [] | no_license | package com.demo;
import java.util.HashMap;
class TrieNode {
public boolean isWord;
public HashMap<Character, TrieNode> children;
public int count;
public TrieNode() {
isWord = false;
children = new HashMap<>(); // to avoid NPE
count = 0;
}
}
public class TriesImplementation {
private final TrieNode... | true |
4db74b4c882530aa6d5cecea0f87f29846fa4247 | Java | HakimB/tamago | /TamagoTest/src/tamagotest/report/TamagoTestGeneratorAST.java | UTF-8 | 6,101 | 1.835938 | 2 | [] | no_license | /**
*
*/
package tamagotest.report;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;
import tamagocc.ast.api.AEntity;
import tamagocc.ast.api.AIdent;
import tamagocc.ast.api.AType;
import tamagocc.ast.impl.AConstructor;
import tamagocc.ast.impl.AIAffectation;
import tamagocc.ast.... | true |
cec07ad168029bd19350ab095e81de592f11eaba | Java | yayihe/qnfast-web | /src/main/java/com/qn/web/entity/Role.java | UTF-8 | 383 | 1.601563 | 2 | [] | no_license | package com.qn.web.entity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Table;
@Data
@Table(name = "role")
public class Role {
@Column(name = "roleId")
private Integer roleId;
@Column(name = "roleName")
private String roleName;
//DelegatedAdministration 委托管理
... | true |
cfc82e0b2e77e257dfdf52a92dc21a90de0b2559 | Java | SteveBlance/jpastuff | /src/com/codaconsultancy/dao/AddressDAO.java | UTF-8 | 146 | 1.601563 | 2 | [] | no_license | package com.codaconsultancy.dao;
import com.codaconsultancy.entities.Address;
public interface AddressDAO extends GenericDAO<Address, Long> {
}
| true |
88df40519def3d714b77030a20547c96578b4665 | Java | myCodeCang/hspay | /src/com/pay/gopay/client/controller/Gopay.java | UTF-8 | 1,156 | 1.84375 | 2 | [] | no_license | package com.pay.gopay.client.controller;
import java.io.UnsupportedEncodingException;
import com.jfinal.core.Controller;
import com.pay.gopay.server.GopayUtils;
import com.pay.yeepay.client.service.YeepayService;
public class Gopay extends Controller {
public void payresult()throws UnsupportedEncodingException{
... | true |
a35e972d06f98f1abaf4391f1cf7f1a5ef44b69e | Java | weihanlu/ihome | /app/src/main/java/com/qhiehome/ihome/network/model/signin/SigninRequest.java | UTF-8 | 406 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.qhiehome.ihome.network.model.signin;
/**
* Created by xiang on 2017/7/18.
*/
public class SigninRequest {
/**
* phone : 123123131
*/
private String phone;
public SigninRequest(String phone) {
this.phone = phone;
}
public String getPhone() {
return phone... | true |
339bb174521fcc0e6b86ba8e277d92d7d0709dec | Java | pythonbug/scala-learn | /src/main/scala/day13/Test3.java | UTF-8 | 580 | 3.859375 | 4 | [] | no_license | package day13;
/**
* java中,属性是静态绑定的,
* 方法是动态绑定的
*/
public class Test3 {
public static void main(String[] args) {
SB sb = new Rb();
System.out.println(sb.name); // 属性是静态绑定,所以还是qy
sb.show(); // 方法是动态绑定,所以是Rb中的方法
}
}
class SB{
String name = "qy";
public void show(){
Sy... | true |
3532e05a981848b5f8c0a142579119d7b57d0d44 | Java | TheWandererr/TGBotTraveller | /bot-service/src/main/java/bot/service/messaging/impl/MessageReceiverThreadService.java | UTF-8 | 934 | 2.125 | 2 | [] | no_license | package bot.service.messaging.impl;
import bot.service.initializer.Bot;
import bot.service.messaging.IMessageReceiveHandler;
import bot.service.messaging.IMessageReceiverThreadService;
import bot.service.messaging.AbstractMessageThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | true |
3cce47b8cc481e2da4a691fbf740301af7e808c2 | Java | A360RN/SistemaGestionNegocio | /src/main/java/pe/com/sunshineandina/service/CarritoService.java | UTF-8 | 600 | 1.84375 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package pe.com.sunshineandina.service;
import pe.com.sunshineandina.dto.CarritoTO;
import pe.com.sunshineandina.dto.ClienteTO;
/**
*... | true |
fabd676d4671c21c7a48919a3084c87333c6e015 | Java | LucaKoval/Java-Space-Shooter | /Space Protocol - iD Tech 7:30:14/Java/Random Generating/src/RunRandomChance.java | UTF-8 | 598 | 2.953125 | 3 | [] | no_license | import java.util.Random;
public class RunRandomChance {
public static void main(String[] args) {
// TODO Auto-generated method stub
Random generator = new Random();
int var1 = generator.nextInt();
int var2 = generator.nextInt(11) + 1;
long var3 = generator.nextLong();
float v... | true |