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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
83524a377d46f2360fd1f2da00a48b4eaefd28e9 | Java | Jaejeong98/java | /수학p2/src/수학p2/n_2506.java | ISO-8859-7 | 443 | 2.640625 | 3 | [] | no_license | package p2;
import java.io.*;
public class n_2506 {
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine()),count=0, sum=0;
String[]st=br.readLine().split(" ");
for(int i=0; i<n; i++) {
if(Integ... | true |
cf9f26072aba073ca76c4983cb22046b20ae45ea | Java | praj1812/android-photo-finder | /app/src/main/java/com/example/android/finalproject/VisualRecognitionClassification/TaggedImages.java | UTF-8 | 525 | 2.015625 | 2 | [] | no_license | package com.example.android.finalproject.VisualRecognitionClassification;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
/**
* Created by prajakti on 4/24/2017.
*/
public class TaggedImages {
@SerializedName("images")
private ArrayList<TaggedImage> taggedImagesList;
pri... | true |
9afd6a57a37dd10d85b45d8c27010f098bdf0146 | Java | achavesgs/microservices-exercicio-1 | /src/main/java/br/com/fiap/exercicio1/repository/OrderRepositoryImpl.java | UTF-8 | 1,609 | 2.515625 | 3 | [] | no_license | package br.com.fiap.exercicio1.repository;
import br.com.fiap.exercicio1.dto.OrderDTO;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Repository;
import java.util.ArrayList;
import java.util.List;
@Repository
public class OrderReposit... | true |
2ff31f0a3b6d4f9bbb6b1abb19340012de65be7a | Java | JegonDeGitHub/qyzp | /src/main/java/com/qyzp/service/impl/ResumeServicelmpl.java | UTF-8 | 1,273 | 1.921875 | 2 | [] | no_license | package com.qyzp.service.impl;
import com.qyzp.bean.Resume;
import com.qyzp.dao.ResumeDao;
import com.qyzp.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class ResumeServicelmpl implements Res... | true |
5d2168777c8d94281cf371114071d7122df3c8b4 | Java | JasonKing0329/JJGallery | /app/src/main/java/com/jing/app/jjgallery/gdb/view/game/adapter/IPlayerImageProvider.java | UTF-8 | 192 | 1.640625 | 2 | [] | no_license | package com.jing.app.jjgallery.gdb.view.game.adapter;
/**
* Created by Administrator on 2017/2/1 0001.
*/
public interface IPlayerImageProvider {
String getPlayerImage(String name);
}
| true |
0066e7a2ddd746d4a90d0987171bed56cbc4a4dc | Java | qiao365/healthcareup | /app/src/main/java/com/semioe/healthcareup/activity/ChangePwsActivity.java | UTF-8 | 4,775 | 2.078125 | 2 | [] | no_license | package com.semioe.healthcareup.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget... | true |
de8e0ee9973254c167c69ce959436ca56e7a474a | Java | l50/redrun | /src/redrun/model/gameobject/trap/piece/ExplosiveBox.java | UTF-8 | 4,217 | 2.578125 | 3 | [
"MIT"
] | permissive | package redrun.model.gameobject.trap.piece;
import static org.lwjgl.opengl.GL11.*;
import javax.vecmath.Quat4f;
import org.lwjgl.util.vector.Vector3f;
import com.bulletphysics.collision.dispatch.CollisionObject;
import redrun.model.constants.CollisionTypes;
import redrun.model.constants.Direction;
import redrun.mo... | true |
1559271e809b9391c2eff11437ed25b35e273de8 | Java | capcelsoricardo/AUT-TESTEQA-INM | /src/main/java/br/com/inmetrics/pages/desafioqa/ServicosOpcionaisPage.java | UTF-8 | 1,650 | 1.898438 | 2 | [] | no_license | package br.com.inmetrics.pages.desafioqa;
import static com.br.inmetrics.frm.base.DefaultBaseController.getPage_;
import static com.br.inmetrics.frm.helpers.QueryHelper.getElementById;
import static com.br.inmetrics.frm.helpers.QueryHelper.getElementByText;
import static com.br.inmetrics.frm.utils.ScreenshotUtils.take... | true |
088564778e7ee7f83dcf11b6d6435adf6d0f89b6 | Java | sagarPakhrin/CollegeProject | /src/com/sagarlama/AdmissionForm.java | UTF-8 | 488 | 2.078125 | 2 | [] | no_license | package com.sagarlama;
import javax.swing.*;
import java.awt.*;
public class AdmissionForm extends JFrame {
private FormPanel formPanel;
public AdmissionForm(){
super("Admission Form");
formPanel = new FormPanel();
add(new JScrollPane(formPanel));
setDefaultClose... | true |
3d2ebcc39d0da284fd12ff3e2387f9450b7860f8 | Java | frc5024/RecycleRush | /src/org/raiderrobotics/AutoProgram.java | UTF-8 | 5,146 | 2.734375 | 3 | [] | no_license | package org.raiderrobotics;
import edu.wpi.first.wpilibj.*;
import static org.raiderrobotics.RobotMap.*;
public class AutoProgram {
Talon talon1, talon2;
Encoder distEncoder;
Gyro gyro;
ArmControl armControl;
int programUsed = AUTO_TOTE; //default
boolean inAutoZone = false;
double startingAngle = 0.0;
long... | true |
8d8525c9b3cf9de781c60087b3aed3f6c728fb86 | Java | Kong-JC/JiKeMyApplication | /sqlitedeom/src/main/java/com/example/sqlitedeom/cursoradapter/CursorAdapterActivity.java | UTF-8 | 1,103 | 2.296875 | 2 | [] | no_license | package com.example.sqlitedeom.cursoradapter;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import com.example.sqlitedeom.R;
import com.example.sqlitedeom.manager.DBManager;
public class CursorAdapterActivity extends AppComp... | true |
0f9c7eff903787aaa0a39e967e2f3eb3ddc76cc4 | Java | hassaanabid/bookstore-database-app | /ha104_p4_partb/YRBQueries.java | UTF-8 | 2,245 | 2.8125 | 3 | [] | no_license | /**
* Name: Hassaan Abid
* ID: 214243935
* EECS Account: ha104
* Part B - Database Application
* File: YRBQueries.java
*
* Class YRBQueries - contains all the queries that YRB app may need to execute.
*/
public final class YRBQueries {
public static final String GET_CUSTOMER_INFO = "SELECT cid, name,... | true |
b8011f3040d11fc74b8f85c24d584cdcb146a38a | Java | philipposgate/SpringBootExamples | /example3/src/main/java/com/sbexamples/example3/jpa/ShipmentRepository.java | UTF-8 | 282 | 1.640625 | 2 | [] | no_license | package com.sbexamples.example3.jpa;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
@RepositoryRestResource
public interface ShipmentRepository extends CrudRepository<Shipment, Integer> {
}
| true |
0cb80a5b05f53beb10c752286a56f884b047b795 | Java | AnaYaneva/Databases-Frameworks---Hibernate-Spring-Data | /T13_DB-Advanced-Spring-Data-Intro-Lab/src/main/java/application/repositories/UserRepository.java | UTF-8 | 353 | 1.960938 | 2 | [] | no_license | package application.repositories;
import application.models.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface UserRepository extends CrudRepository<User, Long> {
public List<User> find... | true |
359891b0853f3ed8b5b6c3a108140eb14a83e63a | Java | gurubabujampala/management | /database-service/src/main/java/com/guru/management/data/dao/AssetsRepository.java | UTF-8 | 1,750 | 1.875 | 2 | [] | no_license | package com.telstra.tdm.data.dao;
import com.telstra.tdm.common.Enum.StatusEnum;
import com.telstra.tdm.data.entity.asset.AssetsEntity;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.sp... | true |
c06afacfffb950aa879c99fd2085430f90d9792b | Java | Watchmans/IPCdemo | /app/src/main/java/com/quan/administrator/myapp1/MainActivity.java | UTF-8 | 8,399 | 2.046875 | 2 | [] | no_license | package com.quan.administrator.myapp1;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.... | true |
0fe932d93ed84094f73a636bf2627e286ecb6126 | Java | raphaeladams/CS2 | /Module 5/Bibliography Manager/Solution01/Issue.java | UTF-8 | 1,400 | 3.46875 | 3 | [] | no_license | //package data;
import java.util.ArrayList;
public class Issue
{
private int yearPublished;
private int volNum;
private int issueNum;
private ArrayList<Article> articles;
private Journal journal;
public Issue(int newYearPublished, int newVolNum, int newIssueNum, Journal newJournal)
{
... | true |
27a6c9ef1c64eeb94827e6ab65632493f538632a | Java | professorik/Minesweeper | /src/UI/ControllerOfGameTable.java | UTF-8 | 27,553 | 2.28125 | 2 | [] | no_license | package UI;
import javafx.event.Event;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.sc... | true |
cf17b2640a96bfbb50d3e2d48d0fa6bb06b1345c | Java | feteING/Common-master | /app/src/main/java/com/fete/common/okhttp/callback/BaseCallBack.java | UTF-8 | 508 | 2.09375 | 2 | [] | no_license | package com.fete.common.okhttp.callback;
import java.text.ParseException;
/**
* Created by haier on 2016/7/18.
*/
public abstract class BaseCallBack extends BaseAllCallBack {
/**
* 错误连接
*
* @param e
* @param id
*/
public abstract void onError(Exception e, int id);
/**
* 返... | true |
7128cf545c559974ddce38a5eb4ac323a61a409f | Java | tejanaveenkumar/OnlineHospitalMangementSystem | /src/main/java/com/app/service/IDoctorService.java | UTF-8 | 343 | 1.976563 | 2 | [] | no_license | package com.app.service;
import java.util.List;
import com.app.model.Doctor;
public interface IDoctorService {
public Integer saveDoctor(Doctor doctor);
public void updateDoctor(Doctor doctor);
public void deleteDoctor(Integer doc_Id);
public Doctor getOneByDoctorId(Integer doc_Id);
public List<Docto... | true |
48ba7d39fb1fa31dc0e123d1b9a535212a63786b | Java | Teodora997/ISA_Pharmacy_Team68 | /PharmacyProjectBack/src/main/java/com/example/demo/service/MedicineService.java | UTF-8 | 874 | 2.078125 | 2 | [] | no_license | package com.example.demo.service;
import java.util.ArrayList;
import java.util.List;
import com.example.demo.dto.MedicineDTO;
import com.example.demo.dto.MedicineReservationDTO;
import com.example.demo.model.Medicine;
import com.example.demo.model.MedicineReservation;
public interface MedicineService {
List<Me... | true |
c8dbc31e23e09f492a68b0d1814d3a2b80e7d6c4 | Java | mevensson/optimal-particle-simulation | /src/main/java/eu/evensson/optpartsim/physics/Vector.java | UTF-8 | 1,954 | 3.421875 | 3 | [] | no_license | package eu.evensson.optpartsim.physics;
import static java.lang.Math.cos;
import static java.lang.Math.sin;
public class Vector {
public static Vector vector(final double x, final double y) {
return new Vector(x, y);
}
public static Vector polar(final double distance, final double angle) {
return vector(dist... | true |
49a1db533b01d44b234821aa9b22d68888604069 | Java | Qiyuanc/MyBatis-Study | /MyBatis-02/src/main/java/com/qiyuan/dao/UserMapper.java | UTF-8 | 429 | 2.0625 | 2 | [] | no_license | package com.qiyuan.dao;
import com.qiyuan.entity.User;
import java.util.List;
public interface UserMapper {
// 查询全部用户
public List<User> getUserList();
// 根须ID查询用户
public User getUserById(int id);
// 新增用户
public int addUser(User user);
// 删除用户,根据id删
public int deleteUser(int id);
/... | true |
36f63a3c456d30483b4242a040dbd4f9850159ad | Java | debugspy/BravuraBrowser | /BravuraBrowser/src/main/java/com/sublimeslime/android/bravurabrowser/activities/SearchResultsActivity.java | UTF-8 | 3,752 | 2.359375 | 2 | [] | no_license | package com.sublimeslime.android.bravurabrowser.activities;
import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.A... | true |
46d9027ca5dd6d31ebaf5fa49e9c382b4f337837 | Java | alokmi/uniprot-rest-api | /proteome-rest/src/main/java/org/uniprot/api/proteome/repository/GeneCentricQueryRepository.java | UTF-8 | 933 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package org.uniprot.api.proteome.repository;
import org.apache.solr.client.solrj.SolrClient;
import org.springframework.stereotype.Repository;
import org.uniprot.api.common.repository.search.SolrQueryRepository;
import org.uniprot.api.common.repository.search.SolrRequestConverter;
import org.uniprot.store.search.SolrC... | true |
c9bef20ee5b94a03ce35c744a0deca321f65e0c4 | Java | HaroldEnrique/LRVApp | /app/src/main/java/upeu/harold/com/lrvapp/Main_ListView.java | UTF-8 | 7,943 | 2.203125 | 2 | [] | no_license | package upeu.harold.com.lrvapp;
import android.Manifest;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.sqlite.SQLiteOpenHelper;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.net.Uri;
import... | true |
bd35cb36626530b9731a088b8d8c75a9aa2a00d3 | Java | ecabrerar/springboot-learning-examples | /springbootwebapp/src/main/java/com/eudriscabrera/examples/gs/web/services/CRUDService.java | UTF-8 | 452 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.eudriscabrera.examples.gs.web.services;
import java.util.List;
/**
*
* @author ecabrerar
*/
public interface CRUDServi... | true |
7ee06fc38d9684cbd3f30e1fb5db5a0f0b7802ee | Java | mindimoses/Jesus | /src/main/java/mav/metro/pom/elements/AlertsNot.java | UTF-8 | 1,649 | 1.585938 | 2 | [] | no_license | package mav.metro.pom.elements;
import mav.metro.library.functions.CommonDef;
import mav.metro.utilities.enums.Locators;
import org.openqa.selenium.By;
public class AlertsNot extends BasePage {
public static By Link_AlertBell() {
return CommonDef.locatorValue(Locators.XPATH, "//span/i[@class='fa fa-bell']");
}
... | true |
e9af5ee2095121af6c18f4038c577bb8553b4c37 | Java | alejandrogalvezbaena/DivisasPaco | /app/src/main/java/com/example/usuario/divisaspaco/MainActivity.java | UTF-8 | 1,851 | 2.578125 | 3 | [] | no_license | package com.example.usuario.divisaspaco;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
public class MainActivity extends AppCompatActivity implements View.OnClickList... | true |
49aecccad0facda9fc6d13680077d543e323d0bc | Java | zhou6989/itcast-recon | /itcast-recon-dao/src/main/java/cn/com/itcast/recon/dao/model/entity/InnerBillDo.java | UTF-8 | 2,147 | 1.914063 | 2 | [] | no_license | package cn.com.itcast.recon.dao.model.entity;
import java.math.BigDecimal;
import java.util.Date;
public class InnerBillDo {
private Long id;
private Date reconDate;
private String reconStatus;
private BigDecimal amount;
private String tradeStatus;
private String innerBillNo;
private... | true |
282d3180d05fb3bc44534e83278c0715571169b7 | Java | yanex/uast-lint-common | /tools/base/sdk-common/src/main/java/com/android/ide/common/internal/WaitableExecutor.java | UTF-8 | 7,024 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
1813d6e00d5da5df0f1a6b101a7b6d7c20344795 | Java | szlwin/doc-eq-code-Dgremlin | /src/main/java/com/orm/common/xml/parse/datasource/DataSourceParser.java | UTF-8 | 8,313 | 2.0625 | 2 | [] | no_license | package com.orm.common.xml.parse.datasource;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dom4j.Element;
import redis.clients.jedis.JedisPool;
imp... | true |
6701eb1b37b140a78ab3f3a9ddab10599a351a89 | Java | zhenqinrui/architecture | /architect_principle/src/main/java/architect/rui/com/architect_principle/simple3/ocp/cache/MemoryImageCache.java | UTF-8 | 670 | 2.515625 | 3 | [] | no_license | package architect.rui.com.architect_principle.simple3.ocp.cache;
import android.graphics.Bitmap;
import java.util.HashMap;
/**
* 作者: zengqinrui on 18/1/21 22:15
* 邮箱:zengqinrui@szy.cn
* 功能描述: 内存缓存
* 备注:
*/
public class MemoryImageCache implements ImageCache {
private HashMap<String, Bitmap> memoryCacheMap... | true |
1865aec13cb7eead389cc8359982ec2a01dfee8d | Java | andregraciano16/prodAcademica | /src/main/java/br/ucb/dao/StatusProjetoDao.java | UTF-8 | 267 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | package br.ucb.dao;
import java.util.List;
import br.ucb.entity.StatusProjeto;
public interface StatusProjetoDao extends DaoGenerico<StatusProjeto, Integer>{
List<StatusProjeto> findByDescricao(String descricao);
StatusProjeto findById(Integer integer);
} | true |
f0b42f8665cc210d1045797fd641e2f5cb39f9a0 | Java | flparaujo/InvestigacaoDePlantasApp | /app/src/main/java/jordean/profbio/ufpb/mestrado/investigacaodeplantas/fragments/atividade1/pteridofitas/EtapaPteridofitasAFragment.java | UTF-8 | 3,250 | 2 | 2 | [] | no_license | package jordean.profbio.ufpb.mestrado.investigacaodeplantas.fragments.atividade1.pteridofitas;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProviders;
import... | true |
f7457d50b600a1e2ded194049d4314307529686d | Java | jerome74/myg30 | /MyGeo/src/it/wlp/android/proxy/event/MarkerFileEvent.java | UTF-8 | 2,023 | 1.796875 | 2 | [] | no_license | package it.wlp.android.proxy.event;
import it.mygeo.project.R;
import it.mygeo.project.activities.MyGeoActivity;
import it.mygeo.project.constants.UTIL_GEO;
import it.mygeo.project.service.NotifyBean;
import it.wlp.android.proxy.domain.ProxyView;
import it.wlp.android.system.bean.ContainerG30Bean;
import it.wlp.androi... | true |
f704dd5a839f0c537402c832279f42c4fc7ffc37 | Java | Shun40/Composer-Support-System | /src/gui/component/base/TextFieldBase.java | UTF-8 | 407 | 2.453125 | 2 | [] | no_license | package gui.component.base;
import javafx.scene.control.TextField;
/**
* テキストフィールドの基底クラス
* @author Shun Yamashita
*/
public class TextFieldBase extends TextField {
public TextFieldBase() {
super();
}
public void setPoint(int x, int y) {
setLayoutX(x);
setLayoutY(y);
}
public void setSize(int width, in... | true |
814484c2494ebe4050030679e6adfd819e36a059 | Java | radu-catrangiu/event-report-spring | /backend/src/main/java/com/dai/eventreport/imagesHandler/Image.java | UTF-8 | 1,703 | 2.203125 | 2 | [] | no_license | package com.dai.eventreport.imagesHandler;
import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Do... | true |
42de060714c2804104e1eda142b6def2c4dff043 | Java | mengziyi/moban | /src/main/java/com/mzy/moban/util/RedisCache.java | UTF-8 | 20,611 | 2.40625 | 2 | [] | no_license | package com.mzy.moban.util;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import java.util.List;
import java.util.Map;
import java.util.Set;
public class RedisCache {
private static Log log = LogFactory.g... | true |
c481d8bf778c2d56a27c05fe71ea7582a3f2a1fb | Java | ippontech/CompanyFight | /src/main/java/fr/ippon/companyfight/model/Organization.java | UTF-8 | 3,165 | 2.234375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package fr.ippon.companyfight.model;
import org.codehaus.jackson.annotate.JsonIgnore;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
@Entity
@NamedQueries({
@NamedQuery(
name = "findAllOrganizations",
query ... | true |
4906c0bb83626d91aa44242f1e2b8a507e24f549 | Java | yzlin499/CQRobot | /src/top/yzlin/weibo/WeiBoInfo.java | UTF-8 | 2,531 | 2.59375 | 3 | [] | no_license | package top.yzlin.weibo;
import java.util.Arrays;
import java.util.Date;
import java.util.Objects;
public class WeiBoInfo {
public static final String[] EMPTY_IMG = new String[0];
private long id;
private String text;
private String repostText = "";
private String url;
private String[] img = E... | true |
85ee652cec6bdfacb48a50a6898cf94c0599815f | Java | Tropical-MC/test2 | /src/main/java/timeless/mob/drops/MobDrops.java | UTF-8 | 3,265 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2019. This owned by DigitalBeehive LLC,
* Any use of this is prohibited outside of DigitalBeehive owned
* sites/servers.
*/
package timeless.mob.drops;
import com.vk2gpz.tokenenchant.api.EnchantInfo;
import com.vk2gpz.tokenenchant.api.PotionHandler;
import com.vk2gpz.tokenenchant.api.TokenEncha... | true |
25b016b14d03a6357c619ab59419d26cb5f455d0 | Java | DND91/BioCristals | /src/main/java/hok/chompzki/hivetera/client/book/BookParseTree.java | UTF-8 | 2,300 | 2.0625 | 2 | [] | no_license | package hok.chompzki.hivetera.client.book;
import hok.chompzki.hivetera.client.book.parseNodes.BodyParseNode;
import hok.chompzki.hivetera.client.book.parseNodes.BoldParseNode;
import hok.chompzki.hivetera.client.book.parseNodes.BreedingParseNode;
import hok.chompzki.hivetera.client.book.parseNodes.CoreParseNode;... | true |
1f2df2f0b9f9e473c53c865357452151cbac0553 | Java | ValentineResearch/AndroidESPLibrary2 | /ESPLibrary2.0/ESPLib/src/main/java/com/esplibrary/bluetooth/BTScanListener.java | UTF-8 | 1,035 | 2.453125 | 2 | [
"MIT"
] | permissive | /*
* Copyright(c) 2016 Valentine Research, Inc
* This file is part of the ESP Library, which is licensed under the MIT license.
* You should have received a copy of the MIT license along with this file. If not, see http://opensource.org/licenses/MIT
*/
package com.esplibrary.bluetooth;
import android.bluetooth.Blu... | true |
583db30d8a95b3e5bfa6185f6b57562a577c46e5 | Java | xiaoluan1/javaHK2Nam2 | /javaCoVanAnh/TH3_VDA/TH3_VDA/src/IO/MaTran.java | UTF-8 | 1,741 | 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 IO;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileNotFoundException;
import java.io.IOException;... | true |
d8179ae0739ea4bd1a80b140ced32248a835ae1d | Java | varshabataniya/SpringRepo | /BeanLifeCycle/src/main/java/com/zensar/spring/App.java | UTF-8 | 593 | 2.109375 | 2 | [] | no_license | package com.zensar.spring;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class App {
public static void main(String[] args) {
ApplicationContext ctx = n... | true |
0e6a7334876a5d6f99bed9af057a48b9a4ec6002 | Java | issacyxw/alcor | /services/vpc_manager/src/main/java/com/futurewei/alcor/vpcmanager/exception/RangeNotFoundException.java | UTF-8 | 289 | 1.796875 | 2 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | package com.futurewei.alcor.vpcmanager.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code= HttpStatus.NOT_FOUND, reason="range is not found")
public class RangeNotFoundException extends Exception{
}
| true |
409fa7f3cb23c8f2397345dd5f2d86ef8d6ec65b | Java | xiaolazy/zdsub | /src/main/java/com/zdsub/controller/supportTibet/DemandManageControl.java | UTF-8 | 2,306 | 2.0625 | 2 | [] | no_license | package com.zdsub.controller.supportTibet;
import com.zdsub.common.ResultBean.ResponseBean;
import com.zdsub.component.annotion.ValidLog;
import com.zdsub.component.hibernate.Page;
import com.zdsub.entity.supportTibet.DemandManage;
import com.zdsub.entity.supportTibet.increase.DemandManageInc;
import com.zdsub.service... | true |
32438a0fd7ded20d0444df6a8a582ad8971afd12 | Java | ler1223/MyApplication | /app/src/main/java/com/example/myapplication/Apteka.java | UTF-8 | 162 | 1.671875 | 2 | [] | no_license | package com.example.myapplication;
public class Apteka {
String name_apteka = "";
String address = "";
String telefon = "";
String price = "";
}
| true |
5fff211954ae1c8d556f52074e0d105bbdcb5255 | Java | sjtudclab/community-server | /src/main/java/cn/edu/sjtu/se/dclab/server/mapper/CitizenMapper.java | UTF-8 | 258 | 1.804688 | 2 | [] | no_license | package cn.edu.sjtu.se.dclab.server.mapper;
import cn.edu.sjtu.se.dclab.server.entity.Citizen;
import java.util.Collection;
/**
* Created by Huiyi on 2015/3/13.
*/
public interface CitizenMapper {
public Collection<Citizen> findAll();
}
| true |
cf0d3b99d71ccb607039fc9172c8b0fa16ddaf6f | Java | tdf/odftoolkit | /generator/schema2template/src/test/resources/test-reference/odf/generation/odfdom-java/odf-schema-1.3/org/odftoolkit/odfdom/dom/element/draw/DrawHatchElement.java | UTF-8 | 8,568 | 1.742188 | 2 | [
"BSD-3-Clause",
"MIT",
"W3C",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] | permissive | /************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
*
* Copyright 2008, 2010 Oracle and/or its affiliates. All rights reserved.
*
* Use is subject to license terms.
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | true |
56ece9abb657daacb74bae30301f5ca37cea2df3 | Java | almirsouza/IMC_app | /IMC/src/com/example/imc/MainActivity.java | MacCentralEurope | 2,169 | 2.28125 | 2 | [] | no_license | package com.example.imc;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class MainActivity extends Activity {
EditText edt_altura;
... | true |
443ef72bee5cd6c31e28462df19b5da837c94cd6 | Java | WoXinfeiyang/JniAddDeom02 | /app/src/main/java/com/fxj/jniadddeom02/MathOperation.java | UTF-8 | 184 | 2.078125 | 2 | [] | no_license | package com.fxj.jniadddeom02;
public class MathOperation {
static {
System.loadLibrary("math_operation");
}
public static native int add(int a,int b);
}
| true |
30b18e21ea73f7ac574e04cda995e4ad32cffcb6 | Java | gabrielmelo00/TrabalhosMC | /ProjetoFinal/src/jogo/Quarto.java | UTF-8 | 5,075 | 2.609375 | 3 | [] | no_license | package jogo;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.KeyEvent;
import javax.swing.ImageIcon;
import agente.FabricaAgente;
import jogo.midia.Carregador;
public class Quarto extends Comodo {
private Image imgComodo;
private Image imgBackground;
public Quarto(){
fa... | true |
6a2f8bf8bb4c2f908620c3f9af6d442724ff8b49 | Java | Bhavya/WIG-2-C-Interpreter | /src/ca/uwaterloo/ece251/ast/CompoundStm.java | UTF-8 | 641 | 3.046875 | 3 | [] | no_license | package ca.uwaterloo.ece251.ast;
import java.util.List;
/** Represents a compound statement. */
public class CompoundStm extends Stm {
List<Variable> variables;
List<Stm> body;
public CompoundStm(List<Variable> variables, List<Stm> body) {
this.variables = variables;
this.body = body;
}
public... | true |
c7d879363c47c987b1f5320f368b5311011be48c | Java | liangzhouci/S-Java | /Net/UDP/ServerFileUdp.java | UTF-8 | 1,601 | 3.28125 | 3 | [] | no_license | package Net.UDP;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
/**发送端 文件
* 1、使用DatagramSocket 指定端口,创建接收端
* 2、准备容器,封装成DatagramPacket包裹
* 3、阻塞式接受包裹 receive(DatagramPacket p)
* 4、分析数据
* 5、释放资源
... | true |
42f0b608d4da78cea632268d92bbf33641a90fd1 | Java | sunyujia21/Project_Rock | /Linsnacks/src/lin/snacks/controller/SnacksAdmin.java | UTF-8 | 8,257 | 2.0625 | 2 | [] | no_license | package lin.snacks.controller;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
i... | true |
307068037895782619536a5ea615e158815bcb50 | Java | monicamillad/Game-To-Gain | /Code/src/main/java/com/main/services/ICourseNotification.java | UTF-8 | 149 | 1.8125 | 2 | [] | no_license | package com.main.services;
import com.main.model.Course;
public interface ICourseNotification {
public void notifyGame(Course c, String g) ;
}
| true |
332244913df7295e39f28bf2e97356e90b19828a | Java | wujiagan/PhoneBook | /src/util/test/EncryptionDecryptionTest.java | UTF-8 | 710 | 2.09375 | 2 | [] | no_license | package util.test;
import junit.framework.Assert;
import org.junit.Test;
import util.EncryptionDecryption;
public class EncryptionDecryptionTest {
@Test
public void testencrypt() throws Exception {
for(int i = 0;i < 10;i++){
Assert.assertEquals(new EncryptionDecryption().decrypt(new EncryptionDecryption().en... | true |
35067fc886a98d60263047f7233ca6eb5cfc5d16 | Java | LauraIatan/japanASE | /java/com/example/japanase/Classes/QuizOneContract.java | UTF-8 | 1,113 | 1.726563 | 2 | [] | no_license | package com.example.japanase.Classes;
import android.provider.BaseColumns;
public final class QuizOneContract {
private QuizOneContract() {
}
public static class QuestionTable implements BaseColumns {
public static final String TABLE_NAME = "questions_quiz_one";
public stati... | true |
ce21669335e2e1a9f43e37809fd8f242840ef1be | Java | tssaber3/--HyperLinkApp | /HyperLinkApp/src/main/java/com/us/demo/dao/TypeRepository.java | UTF-8 | 197 | 1.601563 | 2 | [] | no_license | package com.us.demo.dao;
import com.us.demo.entity.api.Type;
import org.springframework.data.jpa.repository.JpaRepository;
public interface TypeRepository extends JpaRepository<Type,Integer> {
}
| true |
9396dbb312457c0e21ed28fdea72ddfec84a8431 | Java | wehba-dotcom/hobbies | /src/main/java/dtos/PersonDTO.java | UTF-8 | 2,424 | 2.734375 | 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 dtos;
import entities.Person;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/**
*
* @auth... | true |
056d79c35bc444ed6c6ca9d2dc010a9f12768aa1 | Java | smaharjan99/coffee | /Wrap/src/com/cubic/training/wrap/Person.java | UTF-8 | 96 | 1.960938 | 2 | [] | no_license | package com.cubic.training.wrap;
public abstract class Person {
abstract void eat();
}
| true |
2a60151b20295e80464eae3453aaaa74a11c715a | Java | Muattar/VYTrackAutomation2 | /src/test/java/com/vytrack/utilities/TestBase.java | UTF-8 | 695 | 2.015625 | 2 | [] | no_license | package com.vytrack.utilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.interactions.Actions;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import javax.swing.*;
import java.util.concurrent.TimeUnit;
public class TestBase {
protected WebDriver dri... | true |
89ee70bb0c77e7353e33d5c0d58bdbd56650bda0 | Java | 783081406/basejava | /src/main/java/com/ccjjltx/io/nio2/package-info.java | UTF-8 | 412 | 2.109375 | 2 | [] | no_license | /**
* Created by ccjjltx on 2017/4/18.
* 改进:
* 1.提供了全面的文件IO和文件系统访问支持(Java7新增的java.nio.file包及各种子包)
* 2.基于异步Channel的IO(java.nio.channels包下新增加了多个以Asynchronous开头的Channel接口和类)
* <p>
* Path接口代表一个平台无关的平台路径。
*
* @author ccj
* @version 1.0
*/
package com.ccjjltx.io.nio2; | true |
0c790135af72c8789dbff4499d026e62a3706ee8 | Java | HarveyLuo91/KillBugTestCases | /test-case-src/src/main/java/java/RLETest.java | UTF-8 | 1,072 | 2.734375 | 3 | [] | no_license | package java;
public class RLETest {
public static class Box {
Object value;
public Object getValue() {
synchronized (this) {
return this.value;
}
}
public void setValue(Object value) {
synchronized (this) {
this.... | true |
0d9ee92854b78bda73019eea90d93eef490d9870 | Java | uestcljx/CLIC | /executable-operator/executable-graphchi/src/test/java/PageRankTest.java | UTF-8 | 2,132 | 2.46875 | 2 | [] | no_license | import fdu.daslab.executable.graphchi.operators.FileSourceOperator;
import fdu.daslab.executable.graphchi.operators.PageRankOperator;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
imp... | true |
6f42ee84534b5c9480aa6da0c5f52da25ff7cb36 | Java | scossin/IAMsystem | /example/src/main/java/fr/erias/IAMsystem/example/Ex1_Fuzzy_Levenshtein.java | UTF-8 | 1,492 | 2.921875 | 3 | [
"MIT"
] | permissive | package fr.erias.IAMsystem.example;
import java.io.IOException;
import fr.erias.IAMsystem.detect.DetectOutput;
import fr.erias.IAMsystem.detect.TermDetector;
import fr.erias.IAMsystem.lucene.IndexBigramLucene;
import fr.erias.IAMsystem.synonym.LevenshteinTypoLucene;
import fr.erias.IAMsystem.terminology.Terminology;
... | true |
01589d7d818f65a2679a55ef9368c9c4616c0bf9 | Java | butaloto/graphdb-lucene-fts-plugin | /src/main/java/com/ontotext/trree/plugin/lucene/ScoreIterator.java | UTF-8 | 1,081 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package com.ontotext.trree.plugin.lucene;
import org.eclipse.rdf4j.model.impl.LiteralImpl;
import com.ontotext.trree.sdk.Entities;
import com.ontotext.trree.sdk.Entities.Scope;
import com.ontotext.trree.sdk.RequestContext;
import com.ontotext.trree.sdk.StatementIterator;
public class ScoreIterator extends StatementI... | true |
938bc16e3513b51297392d60448673553849c5ba | Java | adambaysdet/javaPractice | /src/main/java/com/assetclfmd/inventory/repository/ProductRepository.java | UTF-8 | 334 | 1.992188 | 2 | [] | no_license | package com.assetclfmd.inventory.repository;
import com.assetclfmd.inventory.entity.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ProductRepository extends JpaRepository<Product,Integer> {
Product findByName(S... | true |
953a07b50de01d05d9410a184c78473b6a4fbf2c | Java | inorton/EDTrust | /src/test/java/space/edhits/edtrust/TestHelpers.java | UTF-8 | 604 | 1.835938 | 2 | [] | no_license | package space.edhits.edtrust;
import java.security.SecureRandom;
import java.math.BigInteger;
public class TestHelpers {
private static final SecureRandom random = new SecureRandom();
public static final String TEST_USER_EMAIL = "test@edhits.space";
public static final String TEST_USER_LIST = "space-badd... | true |
80f920117bb3cb82c0897df8d1571f898639c014 | Java | vijayajetti/SmartShop | /src/main/java/com/hexad/smartshop/utils/OrderStatus.java | UTF-8 | 106 | 1.585938 | 2 | [] | no_license | package com.hexad.smartshop.utils;
public enum OrderStatus {
NEW, HOLD, SHIPPED, DELIVERED, CLOSED;
}
| true |
6d4aa4e2055b49683f1cddc1cfd8ae9e49dfe6de | Java | moonjihyeon1994/cnc_bmt | /src/main/java/com/cnc/rating/mybatis/RatingMapper.java | UTF-8 | 479 | 1.765625 | 2 | [] | no_license | package com.cnc.rating.mybatis;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.context.annotation.Profile;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.cnc.rating.config.SpringProfile.SHARDING_SPHERE;
@Profile({SHARDING_SPHERE})
@Mapper
public int... | true |
078c4eeeaab084b90c656ea9458a47e8a4883c6b | Java | shahabhm/projectBank | /src/WithdrawReceipt.java | UTF-8 | 360 | 2.546875 | 3 | [] | no_license | public class WithdrawReceipt extends Receipt {
public WithdrawReceipt(Token token,int money, Account source, String description) throws Exception {
super(token,money, source, null, description , "withdraw");
}
public void execute () throws Exception {
Account.getAccById(sourceId).withdraw(m... | true |
bc56b8850a40ec86539ac130215dafb0e94ab6ed | Java | rickdynasty/TwsPluginFramework | /TwsPluginDemo/src/main/java/com/example/plugindemo/activity/PluginWebViewActivity.java | UTF-8 | 3,361 | 1.992188 | 2 | [] | no_license | package com.example.plugindemo.activity;
import android.app.Activity;
import android.content.ComponentName;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
i... | true |
47d18da42c63eca776fb90840baa1a39ebfa5a51 | Java | nileshgr/icemplc | /src/icemplc/servlet/student/Auth.java | UTF-8 | 2,256 | 2.546875 | 3 | [] | no_license | package icemplc.servlet.student;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/*... | true |
ca86ccda020d7b059d9cb8bdb72225ebac8a5384 | Java | navpun31/Sales-Manager-DBMS | /src/com/rk/model/ReturnEntry.java | UTF-8 | 1,129 | 2.140625 | 2 | [] | no_license | package com.rk.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;
import com.rk.bean.ReturnEntryKey;
@Entity
@Table(name="returnEntry")
@IdClass(ReturnEntryKey.class)
public class ReturnEntry {
@Id
... | true |
27533f409d3726d6e4c8301286e6c2ead14bb727 | Java | shashankduhan/Chexit | /app/src/main/java/in/intrface/chexit/FireBaseStation.java | UTF-8 | 2,706 | 2.078125 | 2 | [] | no_license | package in.intrface.chexit;
import android.support.annotation.NonNull;
import android.util.Log;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.common.api.ResultCallback;
import com.google.android.gms.common.api.Status;
import com.google.firebase.auth.FirebaseAuth;
import com.google.fireb... | true |
9d2f8dd74b081a2df436fede468bd65c0b94c5fa | Java | CundariNicolas/unqui-poo2-cundari | /test/tp3/unq/PersonaTestCase.java | UTF-8 | 420 | 2.390625 | 2 | [] | no_license | package tp3.unq;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class PersonaTestCase {
Persona person1;
Persona person2;
@BeforeEach
void setUp() throws Exception {
person1 = new Persona("Pepe", 1994, 5 , 3);
person2 = new Person... | true |
9bba2fd50ad48df9933bd2055c86e2788521046f | Java | avj-deus/gestion-cice | /src/main/java/com/cice/gestioncice/controller/dto/CursoDTO.java | UTF-8 | 675 | 1.84375 | 2 | [] | no_license | package com.cice.gestioncice.controller.dto;
import com.cice.gestioncice.repository.entity.AlumnosEntity;
import com.cice.gestioncice.repository.entity.AulasEntity;
import com.cice.gestioncice.repository.entity.ProfesoresEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
imp... | true |
3441ee9ed5667f4fab957901c77c3c0afaca1aa3 | Java | bch2138/InClassAssignment06BrianH | /app/src/main/java/com/example/uhylabr/inclassassignment06_brianh/SecondActivity.java | UTF-8 | 926 | 2.21875 | 2 | [] | no_license | package com.example.uhylabr.inclassassignment06_brianh;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
public class SecondActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState... | true |
09b7be66f3e29e48a5a846d2a7003124ca05f03a | Java | JTBooth/betterpress | /src/betterpress/game/ai/bots/Bot.java | UTF-8 | 1,913 | 3.03125 | 3 | [] | no_license | /*
* Copyright (c) 2013 Elder Research, Inc.
* All rights reserved.
*/
package betterpress.game.ai.bots;
import betterpress.game.ai.Player;
import betterpress.game.letterpress.Board;
import betterpress.game.letterpress.GameContext;
/**
* This class implements a bot that can play Letterpress.
*
* @author Willi... | true |
4a395742488e3d4fe689bc58abf091749e83ec3f | Java | borngineers/leetcode-study | /week18/dhparkhub/p101/Solution.java | UTF-8 | 2,707 | 3.65625 | 4 | [] | no_license | package p101;
class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode left, TreeNode right) {
this.val = val;
this.left = left;
this.right = right;
}
}
class Solution... | true |
3de53f9e469a424420de02a51bce79699b3841c9 | Java | ecenllen/ZSSX_V2.0 | /app/src/main/java/com/gta/zssx/patrolclass/view/PatrolClassSelView.java | UTF-8 | 628 | 1.617188 | 2 | [] | no_license | package com.gta.zssx.patrolclass.view;
import com.gta.utils.mvp.BaseView;
import com.gta.zssx.patrolclass.model.entity.PatrolClassSelEntity;
import java.util.List;
/**
* Created by liang.lu1 on 2016/7/13.
*/
public interface PatrolClassSelView extends BaseView {
void showResult (List<PatrolClassSelEntity> mode... | true |
51ad3acfc3524bc535d808820045d028a7f22da5 | Java | im-imran-shaikh/email | /email/src/main/java/com/imran/email/service/EmailService.java | UTF-8 | 118 | 1.765625 | 2 | [] | no_license | package com.imran.email.service;
@FunctionalInterface
public interface EmailService
{
String sendEmail();
}
| true |
20a26ab73358a55af03c8fcb5115467924e0cabe | Java | kounvonglasy/parcours_plus | /src/servlets/utilisateur/SelectionResponsableParcours.java | UTF-8 | 3,553 | 2.375 | 2 | [] | no_license | package servlets.utilisateur;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import javax.servlet.ServletException;
import javax.serv... | true |
e0e5d4f8228f11ce0c68d48aa00264063f41f826 | Java | zcc888/Java9Source | /java.xml.bind/com/sun/xml/internal/bind/v2/runtime/output/XMLStreamWriterOutput.java | UTF-8 | 9,955 | 1.984375 | 2 | [] | no_license | /*
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.xml.internal.bind.v2.runtime.output;
import java.io.IOException;
import java.io.Writer... | true |
71b43009227d03dd923b509791096cfe097762db | Java | ZafarQuaere/MyOptions | /app/src/main/java/com/optiontown/app/model/login/PasswordErrorList.java | UTF-8 | 543 | 1.960938 | 2 | [] | no_license | package com.optiontown.app.model.login;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by amit on 09-03-2017.
*/
public class PasswordErrorList implements Serializable
{
private ArrayList<PasswordValidationData> PasswordValidationData;
public ArrayList<PasswordValidationData> getPas... | true |
7fb35adcd34fe5c1cf5ac977b96059a9c5a2deca | Java | amanps/HiyaCallLog | /app/src/main/java/aman/com/hiyacalllog/ui/main/MainMvpPresenter.java | UTF-8 | 352 | 1.695313 | 2 | [] | no_license | package aman.com.hiyacalllog.ui.main;
import aman.com.hiyacalllog.ui.base.Presenter;
/**
* Created by amanpreetsingh on 3/16/18.
*/
public interface MainMvpPresenter<V extends MainView> extends Presenter<V> {
void loadCallLog();
boolean arePermissionsGranted();
void requestPermissionsWithRationale();
... | true |
9913b5a44a176625cd4511f9331009256f73bc7f | Java | Conalter/Model_Library_Hibernate- | /src/test/java/AuthorTest.java | UTF-8 | 1,166 | 2.984375 | 3 | [] | no_license | import models.Author;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class AuthorTest {
public Author author;
@Before
public void before(){
author = new Author("Cormac", "McCarthy", "The Orchard Keeper", "Outer Dark", "Child of God", "Suttree"... | true |
b2c0939d92a30191aa4bf36e1f675f4484940bca | Java | gabastil/machine-learning | /src/Factory.java | UTF-8 | 5,312 | 3.375 | 3 | [] | no_license | /**
* @author Glenn Abastillas
* @version 1.0.1
* @since February 16, 2016
*
* @update February 20, 2016 <Version to 1.0.1 from 1.0.0> added methods: makeExample(), makeAttributeSet() x 2, makeExampleSet() x 2
*
* Factory() is an abstract class that creates Attribute.class objects from textual input ... | true |
4827ab305b5354559190b51c6c34668c8e00d37a | Java | Tzelalis/ToyEShop | /app/src/main/java/com/example/toyshishop/data/EshopDatabase.java | UTF-8 | 1,839 | 2.203125 | 2 | [] | no_license | package com.example.toyshishop.data;
import com.example.toyshishop.data.dao.AddressDao;
import com.example.toyshishop.data.dao.CartAndProductDao;
import com.example.toyshishop.data.dao.CartDao;
import com.example.toyshishop.data.dao.CustomersDao;
import com.example.toyshishop.data.dao.OrderItemAndProductDao;
import co... | true |
c2f50dc37663180202280781cddf79237c69d9c0 | Java | thamayanthik/codingpractice | /src/codingpractice/KaprekarNumbers.java | UTF-8 | 1,031 | 3.1875 | 3 | [] | no_license | package codingpractice;
public class KaprekarNumbers {
public static void main(String[] args) {
String kapreKarNumb = "";
int p = 1; int q = 99999;
for (long i=p; i<=q; i++) {
//convert to string
String strSquare = String.valueOf(i * i);
int len = strSq... | true |
f09718355a7cf1534880c582fb111a0d7e15e494 | Java | Miley1018/Algorithms | /Algorithms0504Chpt3/src/com/company/BST2.java | UTF-8 | 6,499 | 3.1875 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
import java.util.List;
/**
* Created by mileygao on 5/10/17.
*/
public class BST2 <Key extends Comparable, Value>{
private Node root;
private class Node{
int N;
Key key;
Value value;
Node left;
Node right;
Node(... | true |
e03fa3effa3ccf599dc2d4d352dfc60c9cada713 | Java | andrewesquivel/reuse-repo | /Reuse/app/src/main/java/s198/project2/reuse/ReuseApplication.java | UTF-8 | 459 | 2.1875 | 2 | [] | no_license | package s198.project2.reuse;
import android.app.Application;
import com.firebase.client.Firebase;
/**
* Initialize Firebase with the application context. This must happen before the client is used.
*/
public class ReuseApplication extends Application {
public static final String FIREBASE_URL = "https://reuse-a... | true |
20dade39f94ca50e777da61a1f56b35f28ec538f | Java | Abbalon/Programacion_Concurrente | /PC Ejercicios Enunciado 4. Semaforos (II)/src/pc/ejercicios4ii/Aplicacion.java | UTF-8 | 663 | 2.6875 | 3 | [] | no_license | package pc.ejercicios4ii;
class Aplicacion {
public static void main(String[] args) {
final int NUM_MAQUINAS = 10;
final int NUM_ROBOTS = 10;
final int MAX_PIEZAS_ALMACEN = 10;
Almacen almacen = new Almacen(MAX_PIEZAS_ALMACEN);
Maquina[] maquinas = new Maquina[NUM_MAQUINAS... | true |
acbe799105c37263b604b0b382157a570b34cf78 | Java | donkunny/mig-api-android | /main/java/com/johnjhkoo/mig_android/MapListActivity.java | UTF-8 | 7,847 | 1.59375 | 2 | [] | no_license | package com.johnjhkoo.mig_android;
import android.Manifest;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.location.Location;
import android.os.AsyncTask;
import android.support.design.widget.FloatingAc... | true |
523227cd05f76848db635dac3b6d477481455da7 | Java | GeorgianaLoba/SSVV | /src/test/java/ssvv/geo/deea/IntegralIntegrationTest.java | UTF-8 | 3,724 | 2.296875 | 2 | [] | no_license | package ssvv.geo.deea;
import domain.Nota;
import domain.Student;
import domain.Tema;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import repository.NotaXMLRepo;
import repository.StudentXMLRepo;
import repository.TemaXMLRepo;
import service.Service;
import validation.NotaValidator;
import v... | true |
0255415b8a24d5ffe53c19cf72b8391bf09332d5 | Java | caidonglun/workspace | /spring-cloud-file-upload/src/main/java/com/caidonglun/controller/FileUpLoadController.java | UTF-8 | 812 | 2.390625 | 2 | [] | no_license | package com.caidonglun.controller;
import java.io.File;
import java.io.IOException;
import org.springframework.stereotype.Controller;
import org.springframework.util.FileCopyUtils;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.sprin... | true |
47873b81888a0fb8cc439e32070131d01dc66e65 | Java | lv0323/wuya | /src/cn/xdl/tol/dao/UserMapper.java | UTF-8 | 1,916 | 2.5 | 2 | [] | no_license | package cn.xdl.tol.dao;
import java.util.List;
import java.util.Map;
import cn.xdl.tol.bean.User;
public interface UserMapper {
/**
* 注册用户
* @param u 用户
* @return
*/
public boolean addUser(User u);
/**
* 更改数据库中 某用户的密码 password
*
* @param userName 准备更改的用户帐号
* @param newsPass 新的密码
* @return 修改的... | true |