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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4d7eb6ba73c861a7c29bcdad598bd732d05f89c4 | Java | GokceSengun/JavaProjects | /Mini Facebook via GUI/ProfilePage.java | UTF-8 | 8,043 | 2.515625 | 3 | [] | no_license | import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.event.AncestorListener;
import javax.swing.event.AncestorEvent;
import javax.swing.JList;
import javax.swing.JOptionPane;
import... | true |
33a55b53515bdf5364d9282beeb32646bec11653 | Java | coocol/Glory-Android | /app/src/main/java/cc/coocol/jinxiujob/fragments/ResumeFragment.java | UTF-8 | 16,801 | 1.695313 | 2 | [] | no_license | package cc.coocol.jinxiujob.fragments;
import android.app.DatePickerDialog;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Mess... | true |
ffcdba857e4d8a0fcac92b0a23d35d6bfcdbe8a2 | Java | AndreyAleshin/JavaProjects | /src/main/java/com/brainacad/andreyaa/lms/java_fundamentals/lab1_5_control_flow_statements/lab1_5_5.java | UTF-8 | 1,351 | 3.640625 | 4 | [] | no_license | package com.brainacad.andreyaa.lms.java_fundamentals.lab1_5_control_flow_statements;
public class lab1_5_5 {
public static void main(String[] args) {
int sum = 0;
double average;
int initialValue = 1;
double upperBound = 19;
for (int number = initialValue; number <= upperB... | true |
3486e645960dc4a01b3fa9f00778327045683ff1 | Java | is3212/hoon | /web1/src/com/test/servlet/test/FormServlet.java | UTF-8 | 968 | 2.296875 | 2 | [] | no_license | package com.test.servlet.test;
import java.io.IOException;
import java.util.HashMap;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class FormServlet extends CommonServlet{
public void doGet(HttpServletRequest requ... | true |
a066fdd50add6e7bbfab4beebe4db1b2ecb3cd3b | Java | atptro/aliyun-openapi-java-sdk | /aliyun-java-sdk-linkedmall/src/main/java/com/aliyuncs/linkedmall/transform/v20180116/QueryOrderInfoAfterSaleResponseUnmarshaller.java | UTF-8 | 3,983 | 1.609375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | true |
eba16363cfeb44d2dac396fb60993dcbe476b7dc | Java | pengli4coding/learning | /learning-jersey/src/main/java/com/pl/demo5/ExceptionCode.java | UTF-8 | 363 | 2.25 | 2 | [] | no_license | package com.pl.demo5;
public enum ExceptionCode {
DEFAULT_ERROR(0), // 定义的一些错误码
PERMISSION_EXCEPTION(1), // 定义的一些错误码
MONEY_CHECK_EXCEPTION(2), // 定义的一些错误码
ACCOUNT_STATUS_ERROR(3);// 定义的一些错误码
private ExceptionCode(int code) {
this.code = code;
}
private int code;
}
| true |
7eaac5c0264498c8fbaa7d5a27a46d90411d471f | Java | sid779/JDI_6_Flipkart | /CRS-Flipkart-DropWizard/src/main/java/com/flipkart/bean/Professor.java | UTF-8 | 1,948 | 2.578125 | 3 | [] | no_license | package com.flipkart.bean;
import com.flipkart.constants.UserType;
import java.util.List;
import javax.validation.constraints.Pattern;
/**
* @author pooja
*/
public class Professor extends User {
String department;
@Pattern(message = "Enter valid Gender, Valid genders are M & F!",regexp = "^[MF]$")
... | true |
fa8172ab058ec8df4e669e1831ddf1a7ec0f1d21 | Java | durmusdeniz/activitystreams | /typext/src/main/java/com/ibm/common/activitystreams/registry/ClasspathPreloader.java | UTF-8 | 3,309 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.ibm.common.activitystreams.registry;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.net.URL;
import java.util.Enumeration;
import com.google.common.base.Charsets;
import com.google.common.base.Function;
import com.google.common.base.Supplier;
import com.google.common.base.Throwa... | true |
1d007d82cbbfebac240e919573983fee0cf09d75 | Java | a764838165/Power-management-system | /elec/src/cn/fly/elec/container/ServiceProvide.java | UTF-8 | 750 | 2.171875 | 2 | [] | no_license | package cn.fly.elec.container;
import org.apache.commons.lang.xwork.StringUtils;
public class ServiceProvide {
public static ServiceProvideCrod spc = new ServiceProvideCrod();
static{
ServiceProvideCrod.load("beans.xml");
}
public static Object getServiceName(String serviceName)
{
if (StringUtils.isBlank(s... | true |
3739d1942d98f232c6f38e97ddf1dd62d4879c0d | Java | ShwetaVerdia/Core-Java | /GreetingPrinter84224.java | UTF-8 | 340 | 2.890625 | 3 | [] | no_license | package classworkitujava;
/** @author Shweta Verdia */
public class GreetingPrinter84224 {
/*
* Homework 1 This program will print the string in two different line using
* statement println
*/
public static void main(String[] args) {
System.out.println("Hello professor,");
System.out.println("My n... | true |
ab216dc690cec926d69af89ca85d804278af5a9c | Java | lingxiaoti/tta_system | /saaf-base-5.0/1006_saaf-base-services/src/main/java/com/sie/saaf/base/shiro/services/BaseRoleResourceService.java | UTF-8 | 2,190 | 2.03125 | 2 | [] | no_license | package com.sie.saaf.base.shiro.services;
import com.sie.saaf.base.shiro.model.inter.IBaseRoleResource;
import com.sie.saaf.common.model.inter.IBaseCommon;
import com.sie.saaf.common.services.CommonAbstractService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annota... | true |
1643e539a033a7355de742e96fb2f3f0e6caefc2 | Java | Anushree-Gawali/CORE-JAVA | /Assignment4/CircleDemo.java | UTF-8 | 664 | 3.9375 | 4 | [] | no_license | import java.util.Scanner;
class Circle
{
private double radius;
private double area;
void Init(double radius)
{
this.radius=radius;
}
double calculateArea(double radius)
{
return (3.14 * radius * radius);
}
void display()
{
double area=calculateArea(this.radius);
Syst... | true |
cc27e98a4b9ee95d7792ba4fd0cde19d4542522a | Java | revolsys/com.revolsys.open | /revolsys-core/src/main/java/com/revolsys/geometry/model/prep/PreparedLinearRing.java | UTF-8 | 1,153 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.revolsys.geometry.model.prep;
import com.revolsys.geometry.algorithm.locate.IndexedPointInAreaLocator;
import com.revolsys.geometry.algorithm.locate.PointOnGeometryLocator;
import com.revolsys.geometry.model.LinearRing;
import com.revolsys.geometry.model.Location;
public class PreparedLinearRing extends P... | true |
2bc203f72758f1c0c71a129238567f8a15ae01b3 | Java | wanghao1022/wang | /src/com/bjpowernode/controller/TeacherController.java | UTF-8 | 2,295 | 2.265625 | 2 | [] | no_license | package com.bjpowernode.controller;
import com.bjpowernode.entity.Teacher;
import com.bjpowernode.model.service.ITeacherService;
import com.bjpowernode.util.Pager;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller... | true |
465ace88deea4b895a47bb3522f9ba13137402f2 | Java | DP-Team2018/ARKA | /Arka-web/src/main/java/restWs/CartonRessource.java | UTF-8 | 5,204 | 2.140625 | 2 | [] | no_license | package restWs;
import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.SessionScoped;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import ... | true |
6e79ce0072c58bbdab6cad006cfa7f6091f695df | Java | moutainhigh/flagship | /flagship-admin/src/main/java/com/hzcf/flagship/job/UpdateMoneymgrDataJob.java | UTF-8 | 2,732 | 2.359375 | 2 | [] | no_license | package com.hzcf.flagship.job;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.s... | true |
d64e674f72c441449515ce40ec7eb5e5d70db245 | Java | cyw2015/MobileOffice | /app/src/main/java/com/cyw/mobileoffice/activity/ApproveActivity.java | UTF-8 | 9,482 | 2.078125 | 2 | [] | no_license | package com.cyw.mobileoffice.activity;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.ContextMenu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.v... | true |
e9e85927c59a9ed57a5e1842762ad3c5504076d7 | Java | oliverluotom/group13-iteration3 | /src/com/iteration3/model/tile/Terrain.java | UTF-8 | 352 | 2.34375 | 2 | [] | no_license | package com.iteration3.model.tile;
import com.iteration3.utilities.Visitable;
import com.iteration3.utilities.Visitor;
public abstract class Terrain implements Visitable {
public abstract String getTerrainType(iTerrainVisitor visitor);
@Override
public void acceptVisitor(Visitor visitor) {
Syste... | true |
f141a3a21b49d8e5181af74dd92a0f1227eaa749 | Java | pavel2210057/MEngine | /org/MEngine/Graphics/Shader/MShaderCompiler.java | UTF-8 | 1,665 | 2.328125 | 2 | [] | no_license | package org.MEngine.Graphics.Shader;
import org.MEngine.System.Exception.MException;
import static android.opengl.GLES20.GL_FRAGMENT_SHADER;
import static android.opengl.GLES20.GL_VERTEX_SHADER;
import static android.opengl.GLES20.glAttachShader;
import static android.opengl.GLES20.glCompileShader;
import static andro... | true |
9bae1c9d992cdd9d3a8c6ac3b3bc33fb034158ea | Java | ronny164/Algorithms | /src/test/java/algs4/tries/ArrayTrieTest.java | UTF-8 | 1,265 | 2.875 | 3 | [] | no_license | package algs4.tries;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import algs4.datastructures.ArrayTrieSet;
import org.junit.Test;
public class ArrayTrieTest {
@Test
public void testBasic() {
ArrayTrieSet set = new ArrayT... | true |
48a3fb5d8772fcba5eb2d2a3750881bbc4ed5671 | Java | bagrusss/dbAPI | /src/main/java/ru/bagrusss/servlets/post/Update.java | UTF-8 | 1,677 | 2.15625 | 2 | [] | no_license | package ru.bagrusss.servlets.post;
import com.google.gson.JsonObject;
import ru.bagrusss.helpers.Errors;
import ru.bagrusss.servlets.BaseServlet;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.... | true |
2794590f3c4beb87dc4d8dc28204f88294e50dd0 | Java | brendanofallon/ACG | /src/document/ACGDocumentBuilder.java | UTF-8 | 7,286 | 2.078125 | 2 | [] | no_license | /********************************************************************
*
* Copyright 2011 Brendan O'Fallon
*
* 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.or... | true |
d59d13f850202ee1d380979dfa781840ad17a1ee | Java | 18357697090/metooxinli | /metoo-rpc/service-user/src/main/java/com/metoo/user/tj/api/TjReportApiImpl.java | UTF-8 | 1,171 | 1.859375 | 2 | [] | no_license | package com.metoo.user.tj.api;
import com.loongya.core.util.RE;
import com.metoo.api.tj.TjReportApi;
import com.metoo.pojo.tj.vo.TjReportVo;
import com.metoo.user.tj.dao.entity.TjReport;
import com.metoo.user.tj.dao.repository.TjReportRepository;
import com.metoo.user.tj.service.TjReportService;
import org.apache.dubb... | true |
87b47339fd32896f494180d43cf3011940e71b0a | Java | RunInto/Java- | /Java核心技术/src/代理/动态代理/DynamicProxyDemo.java | UTF-8 | 829 | 3.046875 | 3 | [] | no_license | package 代理.动态代理;
import 代理.Subject;
import 代理.SubjectImpl;
import java.lang.reflect.Proxy;
public class DynamicProxyDemo {
public static void main(String[] args) {
//1、创建目标对象
SubjectImpl subject = new SubjectImpl();
//2、创建调用处理器对象
ProxyHandler handler = new ProxyHandler(subject);
... | true |
73f6bcf3c01032dfaea5015472cfac8838655caf | Java | pablotr/pro | /JFicheros/src/prueba/AppWriter.java | UTF-8 | 877 | 3.359375 | 3 | [] | no_license | package prueba;
import java.io.*;
public class AppWriter {
public static void main(String[] args) {
System.out.println("RUNNING: JFicheros.prueba.AppWriter\n");
String nombreFichero = "nuevo.txt";
FileWriter fw = null;
try {
fw = new FileWriter(no... | true |
3a091800afc23e1261a10fc6adfd563c5c66c3d4 | Java | WebDataScience/RiskometerAndroidApp | /Riskometer/src/cwds/ror/BloodPressure.java | UTF-8 | 3,851 | 1.960938 | 2 | [] | no_license | package cwds.ror;
import com.example.riskometer.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.RadioButton;
import android.widget.R... | true |
a05ea24bb4f645fb00d6488e9989349e1f3362a4 | Java | nicowagnerisep/algoprogtp4 | /src/Node.java | UTF-8 | 1,413 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
public class Node {
public int getNodeNumber() {
return nodeNumber;
}
public void setNodeNumber(int nodeNumber) {
this.nodeNumber = nodeNumber;
}
public List<Edge> getListEdges() {
return listEdges;
}
public void... | true |
28af9651c7a7cd06da94e7678999d27cb86693c5 | Java | Andrey-V-Georgiev/Java_OOP_Basics | /pawInc2/animals/Animal.java | UTF-8 | 719 | 3.578125 | 4 | [] | no_license | package pawInc2.animals;
public abstract class Animal {
private String name;
private int age;
private boolean cleansingStatus;
protected Animal(String name, int age) {
this.setName(name);
this.setAge(age);
}
public String getName() {
return this.name;
}
prote... | true |
a0e4618f43d8df4279d97f75d820848d7a940464 | Java | moutainhigh/goddess-java | /modules/contractware/contractware-api/src/main/java/com/bjike/goddess/contractware/bo/InvoiceManagementCollectBO.java | UTF-8 | 1,929 | 2.078125 | 2 | [] | no_license | package com.bjike.goddess.contractware.bo;
import com.bjike.goddess.common.api.bo.BaseBO;
import com.bjike.goddess.contractware.enums.InvoiceType;
import javax.persistence.Column;
/**
* 发票管理汇总业务传输对象
* @Author: [ jiangzaixuan ]
* @Date: [ 2017-11-02 09:12 ]
* @Description: [ 发票管理汇总业务传输对象 ]
* @Version: [ v1.0.0 ]... | true |
b3cc671b0ff52b1fe08b5f2b5c67f694d4bd59ba | Java | kiranpreet-kaur/CAR_TAILOR | /CAR_TAILOR_V2/src/part/PartColorImpl.java | UTF-8 | 1,186 | 2.859375 | 3 | [] | no_license | package part;
import java.util.List;
/**
* PartColorImpl is a specific PartType (can choose a color) for the moment it's only for exterior
* @author Axel, Kiran and Abdullah
* @version 2.0
*/
public class PartColorImpl extends PartTypeImpl implements PartColor{
public List<Color> possibleColors;
public C... | true |
75e9f0dbb943807f43666cc9fefabe22faaf1b9a | Java | proteus1121/graph_app | /src/main/test/TestUtils.java | UTF-8 | 248 | 1.625 | 2 | [] | no_license | import com.google.common.collect.Lists;
import junit.framework.Assert;
import org.junit.Test;
public class TestUtils
{
@Test
public void testParallel() {
Assert.assertEquals(8d, MainFrame.calcParallel(Lists.newArrayList(16d, 16d)));;
}
}
| true |
e073ecd21403d44e21e3d43a0371001e3e286c51 | Java | atpt34/hellojava | /new_play/src/clazz/init/LazyInit.java | UTF-8 | 5,874 | 3.359375 | 3 | [] | no_license | package clazz.init;
import java.util.HashMap;
import java.util.Map;
class User {
private String name;
private int age;
public User(String name, int age) { this.name = name; this.age = age; }
public String getName() { return name; }
public int getAge() { return age; }
}
class Resource {
static... | true |
c16d398f192f64e5165b959a727b404cce6d603a | Java | khantilchoksi/Simulation-of-Operating-Systems-Scheduling-Algorithms | /TestReader.java | UTF-8 | 1,153 | 2.984375 | 3 | [] | no_license | package scheduler;
import java.io.*;
import java.util.*;
public class TestReader{
//Vector allProcs = new Vector(10);
String filename = "jobQueue.txt";
String s="";
long b=0,a=0,p=0;
public void printProcesses(){
try{
BufferedReader input = new BufferedReader( new FileReader(filename));
... | true |
98cbb6d58d6f4313f74e0f2e67cee7738d99fce2 | Java | SharingWoo/elastic-log | /src/main/java/com/wsn/elasticlog/ElasticLogApplication.java | UTF-8 | 1,438 | 2.265625 | 2 | [] | no_license | package com.wsn.elasticlog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
imp... | true |
611ecb8c55febd1d41fe3f9f3ad8c530bbe3e589 | Java | theSnowBoy/learn_java | /src/algorithmTest/basic/medium/medium_2_dynamic/MinimumPathSum.java | UTF-8 | 662 | 3.171875 | 3 | [] | no_license | package algorithmTest.basic.medium.medium_2_dynamic;
public class MinimumPathSum {
public int minPathSum(int[][] grid) {
if (grid == null) {
return 0;
}
int rows = grid.length;
int cols = grid[0].length;
int fromUp = 0,fromLeft = 0;
for (int i = 0; i <= rows-1; i++) {
for (int j = 0; j <= cols-1;... | true |
aba00665bce2c39ce76f85a03f618433f79aeb35 | Java | saradj411/MPharmacy | /isa/src/main/java/com/isaProject/isa/Repositories/DrugPricelistRepository.java | UTF-8 | 1,026 | 2.203125 | 2 | [] | no_license | package com.isaProject.isa.Repositories;
import com.isaProject.isa.Model.Drugs.Drug;
import com.isaProject.isa.Model.Drugs.DrugPricelist;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface DrugPricelistRepositor... | true |
7e3eedac00b7b2249ae5e5ed6e9dd934e220ef15 | Java | visionarywind/infra | /codes/src/main/java/com/wind/designpattern/chained/Interceptor.java | UTF-8 | 141 | 2.03125 | 2 | [] | no_license | package com.wind.designpattern.chained;
public interface Interceptor<Req, Rep> {
Object round(Invocation<Req, Rep> inv, Chain chain);
}
| true |
6dec3eb2389b7d390364868e6785a85324440973 | Java | scottraymond/NLPSoftwareTest | /src/dataModels/Sentence.java | UTF-8 | 1,939 | 2.828125 | 3 | [] | no_license | package dataModels;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import javax.xml.bind.annotation.XmlElement;
public class Sentence {
private String _text;
private int _beginPos;
private int _endPos;
private ArrayList<Token> _words;
private Set<String> _foundNers;
... | true |
e44232f9ebb4861a4805f2cf1120df40478c8bfa | Java | jonathan6661/e-learning-platform | /Backend/src/main/java/com/devglan/model/Answer.java | UTF-8 | 1,097 | 2.296875 | 2 | [] | no_license | package com.devglan.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import com.fasterxml.jackson.annotation.JsonIgnore;
@Entity
public class Answer {
@Id
@GeneratedValue
private Long idAnswer;
private String text;
... | true |
1f30b1cf38dd6b0be6f06bbe288491d334680046 | Java | ddcm6/zhys | /zhys-rbac/src/main/java/com/zhys/rbac/admin/service/impl/SysMenuServiceImpl.java | UTF-8 | 1,572 | 2 | 2 | [] | no_license | package com.zhys.rbac.admin.service.impl;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zhys.common.constants.CommonConstant;
import com.zhys.common.vo.MenuVo;
import com.zhys.rbac.admin.dao.SysMenuDao;
import com.zhys.rbac.admin.po.SysMenu;
... | true |
a767ce998ea07695d5d9f48dee8d0eaf276b931c | Java | namuuu/H.Games | /H. Games/src/fr/namu/hg/utils/LobbyUtils.java | ISO-8859-1 | 1,649 | 2.515625 | 3 | [] | no_license | package fr.namu.hg.utils;
import java.util.Arrays;
import java.util.List;
import org.bukkit.World;
import org.bukkit.entity.Player;
import fr.namu.hg.MainHG;
import fr.namu.hg.enumhg.ConfigurationHG;
public class LobbyUtils {
private MainHG main;
private final int RequiredPlayersToStart = 4;
... | true |
6e849f5be5211b202a92dd41753a8b2e11b798f1 | Java | nwpu043814/wifimaster4.2.02 | /WiFi万能钥匙dex1-dex2jar.jar.src/bluefay/R.java | UTF-8 | 2,043 | 1.703125 | 2 | [] | no_license | package bluefay;
public final class R
{
public static final class anim
{
public static int framework_activity_close_enter = com.bluefay.framework.R.anim.framework_activity_close_enter;
public static int framework_activity_close_exit = com.bluefay.framework.R.anim.framework_activity_close_exit;
public s... | true |
f3dd3189266d0a452f62575fd5a7b15a2b2eab93 | Java | rahulvit2010/LoveToCodeInJava | /DESIGN-PATTERN/Design-Pattern/src/com/javaTraining/designPattern/Factory/FactoryofObjects.java | UTF-8 | 368 | 3.28125 | 3 | [] | no_license | package com.javaTraining.designPattern.Factory;
public class FactoryofObjects {
public static Computer getComputer(String type,String HDD,String RAM,String Processor)
{
Computer Instance=null;
switch(type)
{
case "PC" :
Instance= new PC(HDD,RAM,Processor);
case "Server" :
Instance= new Server(HDD,R... | true |
af3e3977b625df725878c81d1e11ffb76268dadd | Java | ShenQingchuan/Software-Engineering-Project | /community-management-system-be/src/main/java/com/example/csgs/controller/GridManageController.java | UTF-8 | 10,654 | 2.078125 | 2 | [] | no_license | package com.example.csgs.controller;
import com.alibaba.fastjson.JSONObject;
import com.example.csgs.entity.AreaList;
import com.example.csgs.entity.PageQuery;
import com.example.csgs.entity.Announcement;
import com.example.csgs.entity.Journal;
import com.example.csgs.mapper.AnnouncementMapper;
import com.example.csgs... | true |
deaf708a59989a742b9b8eb2eab5d05eedcfdf5d | Java | tiagovelloso/ifood-backend-connection-test | /chronos-monitor/src/main/java/br/com/ifood/chronos/monitor/exception/HttpClientErrorException.java | UTF-8 | 1,643 | 2.734375 | 3 | [] | no_license | package br.com.ifood.chronos.monitor.exception;
import akka.http.javadsl.model.StatusCode;
public final class HttpClientErrorException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final StatusCode status;
private final String responseBody;
public HttpClientErrorExcept... | true |
7d0488e992199bbe5797f78ae86a6ef5163c0f0a | Java | zootella/learning-bittorrent | /core/com/limegroup/gnutella/uploader/UpdateFileState.java | UTF-8 | 2,153 | 2.59375 | 3 | [] | no_license | package com.limegroup.gnutella.uploader;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.RandomAccessFile;
import com.limegroup.gnutella.Constants;
import com.limegroup.gnutella.http.ConstantHTTPHeaderValue;
import com.limegroup.gnutella.http.HTTPHeaderName;
import com.lim... | true |
b1b627dfa8571a5abdf979e563dbb9f10d5755dd | Java | orlevi18/Search_Engine_from_Scratch | /Search/AvgP_W_D.java | UTF-8 | 811 | 2.5 | 2 | [] | no_license | package Search;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class AvgP_W_D extends TermFeature
{
protected DocLanguageModel[] dinit;
Map<String,Double> means = new HashMap<String,Double>();
public AvgP_W_D(DocLanguageModel[] dinit)
{
this.d... | true |
3830d9b2c1a409584ea32f0ecfc8d2f180a98c96 | Java | Jussepen/fakeInstagram | /app/src/main/java/com/example/fakeinstagram/model/User.java | UTF-8 | 713 | 2.234375 | 2 | [] | no_license | package com.example.fakeinstagram.model;
import com.parse.ParseClassName;
import com.parse.ParseFile;
import com.parse.ParseObject;
import com.parse.ParseUser;
@ParseClassName("User")
public class User extends ParseObject {
public static final String KEY_USER = "objectId";
public static final String KEY_PROF... | true |
1b478b9115748c08ff3278a26d9f4e475e703c0c | Java | VincentC7/M1_GL_Restaurant | /src/test/java/fr/ul/miage/groupe7/projetrestaurant/database_model/MatierePremiereTest.java | UTF-8 | 3,973 | 2.84375 | 3 | [] | no_license | package fr.ul.miage.groupe7.projetrestaurant.database_model;
import fr.ul.miage.groupe7.projetrestaurant.Database.MatierePremiere;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.j... | true |
71f5f272c60d333e5babde5d8767359b08e0a669 | Java | michiOO/janasen08 | /src/chap4/PrintfTester.java | UTF-8 | 814 | 3.15625 | 3 | [] | no_license | package chap4;
class PrintfTester {
public static void main(String[] args) {
System.out.printf("%d\n",12345);
System.out.printf("%3d\n",12345);
System.out.printf("%7d\n",12345);
System.out.println();
System.out.printf("%5d\n",123);
System.out.printf("%05d\n",123);
System.out.println();
Sy... | true |
53e26978f2f1f5e9a73f9bdbc01d56a1a8f19388 | Java | yzcayzc/station_oil | /RuoYi/ruoyi-member/src/main/java/com/ruoyi/member/service/ICarVehicleSystemService.java | UTF-8 | 1,372 | 1.84375 | 2 | [
"MIT"
] | permissive | package com.ruoyi.member.service;
import com.ruoyi.member.domain.CarVehicleSystem;
import java.util.List;
/**
* 车系表Service接口
*
* @author ruoyi
* @date 2020-03-09
*/
public interface ICarVehicleSystemService
{
/**
* 查询车系表
*
* @param vehicleSystemId 车系表ID
* @return 车系表
*/
public... | true |
113a2a335438911914fef95ba88ad807ab201484 | Java | theHari08/webview_example | /app/src/main/java/example/hari/webview/MainActivity.java | UTF-8 | 4,984 | 2.234375 | 2 | [] | no_license | package example.hari.webview;
import android.Manifest;
import android.app.DownloadManager;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
import android.os.Environment;
imp... | true |
fb571f725dc1f9d62a3bfdead973788d03fc8b73 | Java | zuiko21/minimOS | /forge/durangoImg/src/net/emiliollbb/durango/RLEEncoder.java | UTF-8 | 3,332 | 3.078125 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package net.emiliollbb.durango;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.nio.file.Files;
public class RLEEncoder {
/* global variables, WTF */
int i; // i = source index
long siz;
int unc;
int count;
int output;
i... | true |
5c05c7a90913e1ae6f8c000061600283e92d2d39 | Java | mdogan/hazelcast | /hazelcast/src/main/java/com/hazelcast/config/ReplicatedMapConfig.java | UTF-8 | 11,432 | 1.867188 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | true |
fcb2d22ed460f7959062e6073f6aa3361a16e620 | Java | mtgallant/cishell-plugins | /modeling/edu.iu.iv.modeling.tarl/src/edu/iu/iv/modeling/tarl/TarlAlgorithm.java | UTF-8 | 3,543 | 2.09375 | 2 | [] | no_license | package edu.iu.iv.modeling.tarl;
import java.io.File;
import java.util.Dictionary;
import org.cishell.framework.CIShellContext;
import org.cishell.framework.algorithm.Algorithm;
import org.cishell.framework.algorithm.AlgorithmExecutionException;
import org.cishell.framework.data.BasicData;
import org.cishell.framewor... | true |
b63789b12699f339aeeb9e44970a31ee229cd157 | Java | zhang1998/browser | /second/quark/src/main/java/com/a/a/a/bo.java | UTF-8 | 345 | 1.703125 | 2 | [] | no_license | package com.a.a.a;
import org.json.JSONArray;
/* compiled from: ProGuard */
public final class bo {
public static JSONArray a(String str) {
String[] split = str.split("!");
JSONArray jSONArray = new JSONArray();
for (Object put : split) {
jSONArray.put(put);
}
r... | true |
c3910ced1ecb79ebd56b907c35840d62a1f61aa0 | Java | bhavinshah82/GPTest | /notes/unotes/src/main/java/org/bshah/gp/utils/Authorizer.java | UTF-8 | 1,199 | 2.625 | 3 | [] | no_license | package org.bshah.gp.utils;
import java.util.StringTokenizer;
import org.bshah.gp.entity.User;
import org.bshah.gp.hibernate.UserBO;
import org.glassfish.jersey.internal.util.Base64;
public class Authorizer
{
private static final String AUTH_PREFIX = "Basic ";
private static final int INVALID_USER = ... | true |
bea31447b27be7751b6bf00616134cb0a19717b6 | Java | Notoh/elobot | /src/main/java/io/notoh/elobot/Database.java | UTF-8 | 6,516 | 2.640625 | 3 | [] | no_license | package io.notoh.elobot;
import com.mysql.cj.jdbc.MysqlDataSource;
import io.notoh.elobot.rank.PlayerWrapper;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.User;
import java.sql.*;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executors;
import ja... | true |
a54cdba22285fd3e0df35f686112071ef3948836 | Java | bellmit/zycami-ded | /src/main/java/com/tencent/ijk/media/player/ISurfaceTextureHolder.java | UTF-8 | 469 | 1.546875 | 2 | [] | no_license | /*
* Decompiled with CFR 0.151.
*
* Could not load the following classes:
* android.graphics.SurfaceTexture
*/
package com.tencent.ijk.media.player;
import android.graphics.SurfaceTexture;
import com.tencent.ijk.media.player.ISurfaceTextureHost;
public interface ISurfaceTextureHolder {
public SurfaceTextur... | true |
5bbc090ee8ac51f4989a6206a758b83201c8fdc7 | Java | mjsalerno/UnoBot | /src/main/java/com/mjsalerno/unobot/score/ScoreBoard2Test.java | UTF-8 | 1,709 | 2.8125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mjsalerno.unobot.score;
import java.io.FileNotFoundException;
import java.io.IOException;
import com.mjsalerno.unobot.Deck;
import com.mjsalerno.unobot.Player;
import com.mjsalerno.unobot.PlayerList;
/**
... | true |
e40530308fc636eeef3c9363b32c0ce74f07f871 | Java | ccatari/SFDC-Team3 | /src/test/java/Scripts/CreateLead.java | UTF-8 | 1,533 | 2.328125 | 2 | [] | no_license | package Scripts;
/**
* Created by Ronald on 23/06/2015.
*/
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import Framework.JSONMapper;
import Framework.Objects.Lead;
import Pages.Leads.LeadAbstractPagePage;
import Pa... | true |
a03ee7dbd466dc33cda8984da6e82a94e20f43e1 | Java | ekgus419/WebShoppingMall | /src/main/java/com/dh/webservice/web/WebController.java | UTF-8 | 4,296 | 2.046875 | 2 | [] | no_license | /**
* @author cdh
* @since 2019-07-01
* @copyright Copyright dh-0419(https://github.com/ekgus419/WebShoppingmall)
*
*/
package com.dh.webservice.web;
import com.dh.webservice.domain.*;
import com.dh.webservice.repository.GoodsCategoryRepository;
import com.dh.webservice.repository.GoodsRepository;
import com.dh.... | true |
3a512738863bbfd802cbdb45a3f2a8bd3c7c0641 | Java | f0restOwO/Personal-Blog | /java/com/yang/controller/CommentController.java | UTF-8 | 1,792 | 2.203125 | 2 | [] | no_license | package com.yang.controller;
import com.yang.entity.Comment;
import com.yang.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | true |
c7733e6d877265025ffcf109d89da39d4d7146c0 | Java | Eunbi117/Java | /1201/src/Client.java | UHC | 7,361 | 2.6875 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
import java.util.HashMap;
import java.util.Iterator;
class ChatView extends Frame{
TextArea ta = new TextArea();
TextField tf = new TextField();
Button []btn = new Button[2];
String btnName[] ={"Imoticon", "Whisper"};
Pane... | true |
0c1f77bfcc4a941b99302f99f2fea45cf97729f9 | Java | jackiesteed/leetcodeSolution | /src/main/java/com/jackiesteed/leetcode/SubstringWithConcatenationOfAllWords.java | UTF-8 | 257 | 2.0625 | 2 | [] | no_license | package com.jackiesteed.leetcode;
import java.util.List;
/**
* Created by fangxue on 15/11/29.
*/
public class SubstringWithConcatenationOfAllWords {
public List<Integer> findSubstring(String s, String[] words) {
return null;
}
}
| true |
7fb04fe3a51fa6f258b8a45386b5cc38792df4ce | Java | jorgeRambla/BackEnd | /src/main/java/es/unizar/murcy/controllers/utilities/AuthUtilities.java | UTF-8 | 3,588 | 2.28125 | 2 | [
"MIT"
] | permissive | package es.unizar.murcy.controllers.utilities;
import es.unizar.murcy.components.JsonWebTokenUtil;
import es.unizar.murcy.exceptions.user.UserNotFoundException;
import es.unizar.murcy.exceptions.user.UserUnauthorizedException;
import es.unizar.murcy.model.User;
import es.unizar.murcy.service.UserService;
import org.sp... | true |
efe110c067c41a98a5a8dec0c9be2b6cac3cc634 | Java | nowonbun/Public_Portal_System | /PPS.UnitTest/src/model/MstCard.java | UTF-8 | 2,053 | 2.078125 | 2 | [] | no_license | package model;
import java.io.Serializable;
import javax.persistence.*;
import java.util.List;
/**
* The persistent class for the MST_CARD database table.
*
*/
@Entity
@Table(name="MST_CARD")
@NamedQuery(name="MstCard.findAll", query="SELECT m FROM MstCard m")
public class MstCard implements Serializable {
priv... | true |
b1497139e5423fd1fb47cbff19cd8a6114c7368d | Java | suicuney/Java-GoF | /behaviorpattern/src/main/java/com/xiaofeng/state/StateDemo.java | UTF-8 | 350 | 2.875 | 3 | [] | no_license | package com.xiaofeng.state;
public class StateDemo {
public static void main(String[] args) {//状态模式
Context context = new Context();//环境类持有状态信息
context.handle();//根据调用,运行时改变具体状态,初始为1,改为2
context.handle();//再次调用,显示2,更改为1。
}
}
| true |
c16b6da3ab9da9a26a8cd0fe0f416078e936deb8 | Java | WALDOISCOMING/Java_Study | /Java_BP/src/Chap18/kr/co/bsw/Numbers.java | UHC | 309 | 2.78125 | 3 | [
"Unlicense"
] | permissive | package Chap18.kr.co.bsw;
/*
* ۼ:2017_03_19
* ۼ:
* Ư Ű ϴ numbers Ŭ
* 18-7
*/
public class Numbers {
protected void list(int start,int end) {
for(int cnt=start;cnt<end;start++)
System.out.printf("(%d)",cnt);
}
}
| true |
0bc2f124de128c8f35e6043a8e85fc780d2a6d3c | Java | michaelmosmann/wicket-in-3-days | /src/main/java/de/mosmann/topics/forms/FormValidationBorder.java | UTF-8 | 1,818 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package de.mosmann.topics.forms;
import java.util.List;
import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.feedback.ContainerFeedbackMessageFilter;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.border.Border;
im... | true |
1b4dfbf45957aff40dc121fed1da009dbcdb898a | Java | VolhaBarysava/AdvancedTA | /src/main/java/com/epam/rp/com/epam/rp/core/controls/WebEdit.java | UTF-8 | 1,108 | 2.765625 | 3 | [] | no_license | package com.epam.rp.com.epam.rp.core.controls;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebElement;
public class WebEdit extends BaseWebElement {
private WebElement wrappedElement;
/**
* Send specified keys to the element
* @param keys text to type in
*/
public void type(S... | true |
51962fcdcc3ab4a7b56935826cb6d8a705599139 | Java | MrChrisBee/UnterichtsmaterialOCA | /oca/src/wbs/interfaces/FunctionUtilDemo.java | UTF-8 | 2,285 | 3.78125 | 4 | [] | no_license | package wbs.interfaces;
import java.util.List;
import java.util.ArrayList;
public class FunctionUtilDemo {
public static void main(String[] args) {
// wir deklarieren eine Variable vom Typ des Interfaces IFunction
IFunction function;
/*
* Wir berechnen zwischen 0 und 1 den Flächeninhalt unter ... | true |
a011cfb1e9a2c890374fc75e305503dace3bddf5 | Java | Gongcu/CloneSNS | /app/src/main/java/com/example/healthtagram/adapter/RecyclerViewAdapter_alarm.java | UTF-8 | 9,437 | 1.726563 | 2 | [] | no_license | package com.example.healthtagram.adapter;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.Te... | true |
41d192a26048ecc611091668725634238d15e2a6 | Java | Spinarak1/FirstJavaAWTProgram | /src/main/java/MyFrame.java | UTF-8 | 1,772 | 3.171875 | 3 | [] | no_license | import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class MyFrame extends JFrame implements ActionListener {
public static final int HEIGHT = 100;
public static final int WIDTH = 300;
private JButton greenButton;
private JButton blue... | true |
c5ddea2dbf16a55c24f32603a506c1d64ec385af | Java | HuthifaAlmnasrah/My-Books | /app/src/main/java/com/example/mybooks/User.java | UTF-8 | 2,151 | 2.625 | 3 | [] | no_license | package com.example.mybooks;
import java.util.ArrayList;
public class User {
private String id;
private String name;
private String email;
private String password;
private ArrayList<Book> currentlyReading;
private ArrayList<Book> alreadyRead;
private ArrayList<Book> favorite;
private A... | true |
f5776081fd42d6ad7966c5b707ad580a27ce7a2c | Java | spetseffect/dr_2021-04-06_junit | /src/main/java/com/hw/task1/Triangle.java | UTF-8 | 947 | 3.453125 | 3 | [] | no_license | package com.hw.task1;
import java.util.Objects;
public class Triangle implements IFigure{
private final double a;
private final double b;
private final double c;
public Triangle(double a, double b, double c) {
this.a = a;
this.b = b;
this.c = c;
}
@Override
public... | true |
407e1a00d9c31ebde8892b645728155622aaa2d9 | Java | amitkvmz/JavaSE | /Jdbc_PreparedStatement.java | UTF-8 | 1,037 | 2.828125 | 3 | [] | no_license | import java.sql.*;
class Jdbc_PreparedStatement
{
public static void main(String args[])
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","amit","amit");
// Statement st=... | true |
c7a51cb8ea5af7c42783f8a63bb140efbacebca4 | Java | Masoudas/FourPolarImaging | /fourPolar-core/src/main/java/fr/fresnel/fourPolar/core/image/generic/ImageFactory.java | UTF-8 | 609 | 2.703125 | 3 | [] | no_license | package fr.fresnel.fourPolar.core.image.generic;
import fr.fresnel.fourPolar.core.image.generic.pixel.types.PixelType;
/**
* Interface for factories of Image implementations.
*/
public interface ImageFactory {
/**
* Create an image based on its metadata.
*
* @param metadata is the metadata of th... | true |
5a0ecdac64b2d029d5f30da757ee8a809981e4c6 | Java | cloud9527/MiEc | /mi_core/src/main/java/com/example/cloud/mi_core/util/timer/ITimerListener.java | UTF-8 | 144 | 1.835938 | 2 | [] | no_license | package com.example.cloud.mi_core.util.timer;
/**
* Created by cloud on 2018/1/6.
*/
public interface ITimerListener {
void onTime();
}
| true |
d09b3246da25104be0a8f62d856ec3449ffc06eb | Java | junhuac/StormProcessor | /src/main/java/storm/bolts/ParserBolt.java | UTF-8 | 2,408 | 2.59375 | 3 | [
"MIT"
] | permissive | package storm;
import org.apache.storm.topology.base.BaseBasicBolt;
import org.apache.storm.topology.BasicOutputCollector;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.tuple.Tuple;
import org.apache.storm.tuple.Fields;
import org.apache.storm.tuple.Values;
import org.json.JSONObject;... | true |
b096ddd255283183717dc6b7f0129371cf3655b9 | Java | marwa87/Create-API-for-travel-agency-to-book-flights-for-customers-and-to-check-which-flights-are-available | /TravelAgentBookingService.java | UTF-8 | 2,882 | 2.515625 | 3 | [] | no_license | package com.smoothstack.agentAPI.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.http.HttpStatus;
import org.springf... | true |
c71659395833eb26293725dec60b4dc9904642eb | Java | taowuhua/Laomao | /app/src/main/java/com/laomao/LaomaoApplication.java | UTF-8 | 553 | 1.890625 | 2 | [] | no_license | package com.laomao;
import android.app.Application;
import android.content.Context;
import com.antfortune.freeline.FreelineCore;
import com.laomao.utils.SpUtil;
/**
* Created by laomao on 16/9/23.
*/
public class LaomaoApplication extends Application {
private static LaomaoApplication laomaoApplication;
@... | true |
d279af764f8f8fee4ecd41121917d10a66d20a59 | Java | splitio/android-client | /src/main/java/io/split/android/client/localhost/LocalhostSynchronizer.java | UTF-8 | 1,751 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package io.split.android.client.localhost;
import static com.google.common.base.Preconditions.checkNotNull;
import androidx.annotation.NonNull;
import javax.security.auth.Destroyable;
import io.split.android.client.SplitClientConfig;
import io.split.android.client.events.SplitEventsManager;
import io.split.android.... | true |
87d39e9bda645192118dc200b41948eb84e82ad1 | Java | Choonster-Minecraft-Mods/TestMod2 | /src/main/java/com/choonster/testmod2/init/ModBlocks.java | UTF-8 | 5,804 | 1.921875 | 2 | [
"MIT",
"CC-BY-3.0"
] | permissive | package com.choonster.testmod2.init;
import com.choonster.testmod2.References;
import com.choonster.testmod2.block.*;
import com.choonster.testmod2.item.block.ItemCandyButton;
import com.choonster.testmod2.item.block.ItemColoredMod;
import com.choonster.testmod2.tileentity.TileEntityDisplayNameTest;
import com.choonst... | true |
e173dc59e47c096421b44faae9e249f6f72a147b | Java | Enough-Software/glaze | /src/core/de/enough/glaze/style/property/border/ZeroBorder.java | UTF-8 | 1,142 | 2.140625 | 2 | [
"Classpath-exception-2.0",
"MIT",
"Apache-2.0",
"GPL-3.0-only"
] | permissive | /*
*
* Copyright: (c) 2012 Enough Software GmbH & Co. KG
*
* Licensed under:
* 1. MIT: http://www.opensource.org/licenses/mit-license.php
* 2. Apache 2.0: http://opensource.org/licenses/apache2.0
* 3. GPL with classpath exception: http://www.gnu.org/software/classpath/license.html
*
* You may not use this file... | true |
969e8489ed12cd18a2d004e67d5788459341fe6b | Java | emrebsgn/MyDictionary | /app/src/main/java/com/emrebisgun/mydictionary/EducationActivity.java | UTF-8 | 1,525 | 2.109375 | 2 | [] | no_license | package com.emrebisgun.mydictionary;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
public class EducationActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onC... | true |
3962edc7dc3457c8dca6853ad179b06c006c9d7b | Java | imran1066/MoneyGaming_Imran | /src/test/java/com/moneyGaming/tests/ImranTest_270921_1142.java | UTF-8 | 293 | 1.695313 | 2 | [] | no_license | package com.moneyGaming.tests;
import org.testng.annotations.Test;
public class ImranTest_270921_1142 {
@Test
public void testImran(){
System.out.println("My beautiful test on 270921 1144");
System.out.println("My another beatiful commit on 270921 1212");
}
}
| true |
f6881431868d3f2d1f94501922add950c57fd4c3 | Java | kekawce/Darkbot-1 | /src/main/java/eu/darkbot/logic/modules/CollectorModule.java | UTF-8 | 8,835 | 1.898438 | 2 | [] | no_license | package eu.darkbot.logic.modules;
import eu.darkbot.api.PluginAPI;
import eu.darkbot.api.entities.Box;
import eu.darkbot.api.entities.Entity;
import eu.darkbot.api.entities.Portal;
import eu.darkbot.api.entities.Ship;
import eu.darkbot.api.entities.other.Effect;
import eu.darkbot.api.managers.BotAPI;
import eu.darkbot... | true |
909d31d92b00a0eb7d82db6da36ee0cd4515c3c6 | Java | dwifdji/real-project | /value-map/cloud-web-case-matching/rest-web-api/src/main/java/com/tzCloud/web/controller/legalEngine/CaseController.java | UTF-8 | 5,358 | 2.125 | 2 | [] | no_license | package com.tzCloud.web.controller.legalEngine;
import com.alibaba.dubbo.config.annotation.Reference;
import com.tzCloud.arch.common.ResponseModel;
import com.tzCloud.arch.common.utils.WordProcessingUtils;
import com.tzCloud.core.facade.account.AccountFacade;
import com.tzCloud.core.facade.legalEngine.CaseFacade;
impo... | true |
689baeea23df2ab38aed3bcf2d9653872ac1061e | Java | codergithut/FuLanProduct | /src/main/java/fulan/tianjian/demo/model/client/insure/notice/NoticeMessage.java | UTF-8 | 3,607 | 1.867188 | 2 | [] | no_license | package fulan.tianjian.demo.model.client.insure.notice;
import java.util.Date;
import org.springframework.beans.BeanUtils;
import fulan.tianjian.demo.model.client.sms.SynchroRequestModel;
public class NoticeMessage {
/**
*
*/
private static final long serialVersionUID = 1L;
/**
* 订单id
*/
private St... | true |
1d6e49aa426ea3ca08fb5252d15eeba91b70eddb | Java | mroloux/cegekahtml5cc | /eventualizr-domain/src/main/java/be/cegeka/eventualizr/domain/MeetingRepository.java | UTF-8 | 322 | 1.9375 | 2 | [] | no_license | package be.cegeka.eventualizr.domain;
import java.util.List;
import org.springframework.data.repository.Repository;
public interface MeetingRepository extends Repository<Meeting, Long> {
List<Meeting> findAll();
Meeting findOne(Long id);
Meeting save(Meeting entity);
void delete(Long id);
}... | true |
00f742b544321f3c397b8541462991aa9f3847fc | Java | DebasishDas1/CTS_MiniProject_851481_intern | /src/com_java_methods/Screenshot.java | UTF-8 | 702 | 2.84375 | 3 | [] | no_license | package com_java_methods;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
public class Screenshot {
static int c = 0 ;
public static void takeScree... | true |
74e9921d61aac2e2b262d80212b9fd5a155fd005 | Java | aosm/JBoss | /jboss-all/testsuite/src/main/org/jboss/test/jmx/xmbean/User.java | UTF-8 | 6,105 | 2.515625 | 3 | [] | no_license |
package org.jboss.test.jmx.xmbean;
import java.util.ArrayList;
import java.util.Collection;
/**
* for some reason this doesn't work:
* descriptor="name=\"testdescriptor\" value=\"testvalue\""
*
* @jmx.mbean description="sample for jboss xmbean.dtd"
* persistPolicy="Never"
* per... | true |
f77576d0da451741c291d3326a2d4ebac599c87e | Java | yaaminu/live-rates | /app/src/main/java/com/zealous/expense/BudgetAdapterDelegateImpl.java | UTF-8 | 2,668 | 2.09375 | 2 | [] | no_license | package com.zealous.expense;
import android.content.Context;
import android.content.DialogInterface;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.view.View;
import com.zealous.R;
import com.zealous.adapter.BaseAdapter;
import com.zealous.utils.GenericUtils;
imp... | true |
636bf6c613fbbf96ecdd553443a6e89f2dcc52a0 | Java | spring-projects/spring-data-examples | /jpa/deferred/src/main/java/example/service/Customer1568Service.java | UTF-8 | 225 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package example.service;
import example.repo.Customer1568Repository;
import org.springframework.stereotype.Service;
@Service
public class Customer1568Service {
public Customer1568Service(Customer1568Repository repo) {}
}
| true |
c9772b64dcd4300281558d87a889981a4d5a1ab8 | Java | companieshouse/document-generator | /document-generator-company-report/src/test/java/uk/gov/companieshouse/document/generator/company/report/mapping/mappers/statements/ApiToPscStatementMapperTest.java | UTF-8 | 3,845 | 2.3125 | 2 | [
"MIT"
] | permissive | package uk.gov.companieshouse.document.generator.company.report.mapping.mappers.statements;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
im... | true |
012468b668eaa1f34f3157d99cf4b29b696da2a0 | Java | Th8mas/IRABazar | /src/main/java/com/droow/irabazar/model/dao/BaseDAO.java | UTF-8 | 1,674 | 2.625 | 3 | [] | no_license | package com.droow.irabazar.model.dao;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/**
* Base DAO
*
* Created by droow on 17.7.16.
*/
public cl... | true |
2d86d9531f916c00ab7af386df9032d789880caa | Java | dublin1234rk/qaworks | /src/test/java/com/qaworks/acceptancetests/features/steps/HomeSteps.java | UTF-8 | 732 | 2.0625 | 2 | [] | no_license | package com.qaworks.acceptancetests.features.steps;
import com.qaworks.acceptancetests.features.steps.serenity.UserHomeSteps;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import net.thucydides.core.annotations.Steps;
public class HomeSteps {
@Steps
UserHo... | true |
1bac869ed9a810b4f76c60892549e50cc14df1bb | Java | skyxk/essplatform | /platform-core/src/main/java/com/chen/core/util/Base64Utils.java | UTF-8 | 5,123 | 2.84375 | 3 | [] | no_license | package com.chen.core.util;
import sun.misc.BASE64Decoder;
import sun.misc.BASE64Encoder;
import java.io.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by clt_abc on 2017/5/31.
*/
public class Base64Utils {
public static void main(String[] args) throws UnsupportedEncodingExcep... | true |
dce3d53099b52741eb40490d24e42b9b71ae466e | Java | zypzs/JavaTest | /src/test/BaiduTest1.java | UTF-8 | 752 | 2.890625 | 3 | [] | no_license | package test;
import java.util.Scanner;
public class BaiduTest1 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
while(input.hasNext()){
int n = input.nextInt();
char []start = new char[n];
char []end = new char[n];
for(int i=0;i<n;i++){
Str... | true |