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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
8263ddaac24f80d4480e43919c2c556c66f1244d | Java | Alaincruzc90/Automata | /src/application/assignment/math/Div.java | UTF-8 | 351 | 2.390625 | 2 | [] | no_license | package application.assignment.math;
import application.assignment.Assignment;
public class Div extends MathOperation {
public Div() {
}
public Div(Assignment leftAssignment, Assignment rightAssignment) {
super(leftAssignment, rightAssignment);
}
@Override
public <K> K operation() {... | true |
6f86e7bc8ed58e8c091d3fc7ce39e1e0f823a43a | Java | martinwang0226/algorithmTraining | /HNU/lib/src/main/java/com/example/lib/treeGraph/invertTree.java | UTF-8 | 1,334 | 3.453125 | 3 | [] | no_license | package com.example.lib.treeGraph;
import com.example.lib.StackQueue.Queue;
import java.util.LinkedList;
import java.util.Stack;
/**
* Create by chenlong.wang
* 翻转一棵二叉树。
* on 2020/9/7
*/
public class invertTree {
public TreeNode invertTree(TreeNode root) {
if(root==null){
return null;
... | true |
febe26c42d0484545652a67d8fb57e1ab749e761 | Java | AhmedAboughosen/Travel_Network_App | /app/src/main/java/com/example/socialnetworkfortravellers/ApplicationLayer/Services/UserManagementServices/saveUserInfoServices/SaveUserInfoService.java | UTF-8 | 5,696 | 2.25 | 2 | [] | no_license | package com.example.socialnetworkfortravellers.ApplicationLayer.Services.UserManagementServices.saveUserInfoServices;
import com.example.socialnetworkfortravellers.ApplicationLayer.DomainModels.userModels.UserModel;
import com.example.socialnetworkfortravellers.ApplicationLayer.Services.BaseServices.saveRawDataService... | true |
8be97a6501fe137291e1bcdef20c11594fe35a35 | Java | Shkoda/PelicanSpring | /src/main/java/com/kpi/planner/controller/TreeController.java | UTF-8 | 1,780 | 2.296875 | 2 | [] | no_license | package com.kpi.planner.controller;
import com.kpi.planner.entity.response.Response;
import com.kpi.planner.twitter.TwitterUtils;
import com.kpi.planner.utils.JsonTwitterUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.we... | true |
9f164a204c040b62ca2daf60aa92c977cda54472 | Java | growme/hyyApp | /hyyShareCore/src/main/java/com/ccnet/cps/dao/SbSadvertInfoDao.java | UTF-8 | 9,486 | 2.0625 | 2 | [] | no_license | package com.ccnet.cps.dao;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Repository;
import cn.ffcs.memory.BeanHandler;
import cn.ffcs.memory.BeanLis... | true |
0609f2c7f3af119afb0a88d26a958987b5305606 | Java | wangzhibinjunhua/wearLauncher | /src/com/sczn/wearlauncher/view/menu/MenuTextView.java | UTF-8 | 3,083 | 2.25 | 2 | [] | no_license | package com.sczn.wearlauncher.view.menu;
import com.sczn.wearlauncher.util.MxyLog;
import com.sczn.wearlauncher.view.ScrollerTextView;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.ut... | true |
9f27b78b5f6ada330410d3957192420091feee17 | Java | jungan21/Leetcode_Lintcode_Jun | /src/twopoints/SortColors.java | UTF-8 | 4,231 | 4.25 | 4 | [] | no_license | package twopoints;
/**
* Given an array with n objects colored red, white or blue, sort them so that
* objects of the same color are adjacent, with the colors in the order red,
* white and blue.
*
* Here, we will use the integers 0, 1, and 2 to represent the color red, white,
* and blue respectively.
*
* Not... | true |
261584c0a5daa47062a431c20d978ed392b583a3 | Java | hejunling/boss-dts | /ancun-boss/src/main/java/com/ancun/boss/business/service/bizcanceluser/IBizCanlelUserService.java | UTF-8 | 805 | 1.929688 | 2 | [] | no_license | package com.ancun.boss.business.service.bizcanceluser;
import com.ancun.boss.business.pojo.bizcanceluser.BizBatchCancelUserInput;
import com.ancun.boss.business.pojo.bizcanceluser.BizCancelUserInput;
import com.ancun.core.exception.EduException;
/**
* 退订业务接口
*
* @Created on 2016年3月10日
* @author lwk
* ... | true |
8b2649b9e705ac8090b32c108f66e496441d7fae | Java | zyzd/SimpleMvp | /app/src/main/java/com/weknowall/cn/wuwei/ui/activity/MainActivity.java | UTF-8 | 810 | 1.6875 | 2 | [] | no_license | package com.weknowall.cn.wuwei.ui.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.Button;
import com.weknowall.cn.wuwei.R;
import com.weknowall.cn.wuwei.ui.BaseActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
/**... | true |
413f3bc5f1b38b24f27f58f7dce11d9f2f722445 | Java | YTLogos/gatk | /src/test/java/org/broadinstitute/hellbender/tools/walkers/contamination/CalculateContaminationIntegrationTest.java | UTF-8 | 2,454 | 2.53125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | package org.broadinstitute.hellbender.tools.walkers.contamination;
import org.broadinstitute.hellbender.CommandLineProgramTest;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* Created by David Benjamin on 2/16/17.
*/
public... | true |
c52ab2bcea972c8b5877e08041d20b5e2300a8cf | Java | dianamascarenhas/Distributed-Systems | /clocks2/src/clocks2/Server.java | UTF-8 | 953 | 2.796875 | 3 | [] | no_license | package clocks2;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.PriorityQueue;
public class Server implements Runnable {
ServerSocket incoming;
int id;
boolean isUp;
private PriorityQueue<Packet> fila;
Server(int _id, PriorityQueue<Packet> _fila){
... | true |
7b469f2a2627b9c8b8c09c226bba84053ef78751 | Java | Lenx777/entregas_daw1 | /U4/Entregable/Pizeria.java | ISO-8859-10 | 687 | 3.140625 | 3 | [] | no_license | package Entregable;
public class Pizeria {
//atributos
private Tamao tam;
private Ingredientes[] ingredientes;
final int maxIngredientes =3;
//constructor
Pizeria(Tamao tam) {
this.tam=tam;
}
//metodos
public void aadirIngrediente(String nombre, int calorias) {
for (int i = 0; i < maxIn... | true |
fc3156ffecd7853e6b0e4ab141dddbf38f00150d | Java | LimHyeongJun/Portfolio | /3학년_2학기/프로그래밍언어론/1st_Homework/observer/ex2/Talent.java | UTF-8 | 143 | 2.125 | 2 | [] | no_license | package observer.ex2;
public interface Talent {
public void addFan(Fan o);
public void deleteFan(Fan o);
public void speak(String talk);
}
| true |
1ab6238cd7726957c5c532080ae6e6dbd2aafbc2 | Java | flinn-foundation/mimqip-treatment-service | /src/test/java/org/flinnfoundation/rules/generalmessage/R607bTest.java | UTF-8 | 1,590 | 1.914063 | 2 | [] | no_license | package org.flinnfoundation.rules.generalmessage;
import org.flinnfoundation.model.enums.DiagnosisType;
import org.junit.Before;
import org.junit.Test;
import java.time.OffsetDateTime;
import static junit.framework.TestCase.assertFalse;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.asse... | true |
6aa0c9ad8f7e57922d88d82cf2ed1e10f9514b97 | Java | bahadir-g/educationalERP | /okul/okul/src/main/java/com/example/okul/base/service/impl/BaseServiceImpl.java | UTF-8 | 823 | 2.09375 | 2 | [] | no_license | package com.example.okul.base.service.impl;
import com.example.okul.base.repository.BaseRepository;
import com.example.okul.base.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import javax.persistence.EntityNotFoundException;
import java.io.Serializable;
import java.util.List;
imp... | true |
4f3e58800bf6287e73cb70a2149e717f70647de4 | Java | VijayEluri/JIW | /src/main/lv/jake/jiw/application/validation/IssueValidatorRepositoryImpl.java | UTF-8 | 1,174 | 2.296875 | 2 | [] | no_license | package lv.jake.jiw.application.validation;
import com.google.inject.Inject;
import lv.jake.jiw.application.TimeService;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
/**
* Author: Konstantin Zmanovsky
* Date: Apr 19, 2010
* Time: 1:21:10 PM
*/
pub... | true |
6f8fc02ee41bb874119f7e66f0e53e3b3b5e6e9c | Java | AananthV/Assignments | /mobile_applications_lab/Lab 8/app/src/main/java/com/example/lab8/AddProductActivity.java | UTF-8 | 1,838 | 2.515625 | 3 | [] | no_license | package com.example.lab8;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
public class AddProductActivity extends AppCompatActivity {
Edi... | true |
b3a8a757894595cedf6cdfa0ab1f36a63fd8ad7a | Java | Tasswon/Introduction-to-Java-Two | /Java Set 2/7_File Count Chars Word Lines/CountFile.java | UTF-8 | 2,545 | 4.0625 | 4 | [] | no_license | /**Name: Joseph Tassone
* Description: Count the number of characters, words, and lines in a file or URL
*/
import java.util.Scanner;
import java.io.File;
import java.net.URL;
public class CountFile {
public static void main(String[]args) throws Exception {
Scanner input1 = new Scanner(System.in);
//Allows ... | true |
e91bdd205589df71b350f00572a164d5a8655969 | Java | dev-sandeep-pal/Hibernate-ORM | /OneToManyWithAnnotation/src/com/connect2java/Publisher.java | UTF-8 | 1,168 | 2.6875 | 3 | [] | no_license | package com.connect2java;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Tabl... | true |
2ea38da53a74bed96d576f35be57bce5a93a6533 | Java | leon9reat/rxjava-2-real | /app/src/main/java/com/medialink/rxjava2/MainActivity.java | UTF-8 | 7,350 | 1.820313 | 2 | [] | no_license | package com.medialink.rxjava2;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import a... | true |
75cbb1d8fa3bd38a93b60f5e71dbdc8bfc0d1829 | Java | voltavidTony/FlipKnowledge | /app/src/main/java/com/gmail/anthonyplugins/flipknowledge/EditActivity.java | UTF-8 | 5,108 | 2.171875 | 2 | [] | no_license | package com.gmail.anthonyplugins.flipknowledge;
import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;... | true |
f5ec78891aeb8c36e913986ba71b75ec92c28d0c | Java | wangpengpeng/OpenDiary | /BaseOperation/src/main/java/com/sjf/open/mvel/Fruit.java | UTF-8 | 247 | 2.171875 | 2 | [] | no_license | package com.sjf.open.mvel;
/**
* Created by xiaosi on 17-7-17.
*/
public class Fruit {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| true |
2871d45a88964704585a219a64e2b5642a5f5a09 | Java | Divyacts/PerfectChannel | /src/test/java/com/mop/qa/pageobject/BiztalkPage.java | UTF-8 | 3,799 | 1.859375 | 2 | [] | no_license | package com.mop.qa.pageobject;
import java.io.IOException;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote.server.handler.SendKeys;
import ... | true |
4fdb947ff3e399603c1ca3dd137558c6eb9bc4c5 | Java | Karl-Sikorsky/hat-check-room | /src/main/java/com/example/garderob/MainActivity.java | UTF-8 | 7,411 | 2.234375 | 2 | [] | no_license | package com.example.garderob;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.graphics.Color;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
impor... | true |
177a9005729de05a5f039790af700592963f322e | Java | LRKT-adlister/java-adlister | /src/main/java/com/codeup/adlister/dao/MySQLAdsCategoriesDao.java | UTF-8 | 2,339 | 2.796875 | 3 | [] | no_license | package com.codeup.adlister.dao;
import com.codeup.adlister.models.AdCategory;
import com.codeup.adlister.models.Category;
import models.Config;
import java.sql.*;
import com.mysql.cj.jdbc.Driver;
import java.util.ArrayList;
import java.util.List;
public class MySQLAdsCategoriesDao implements AdsCategories {
p... | true |
cb0e02751fa8d96544e64bd6bb125cc4e505b79c | Java | rishabh644/JAVA_PROGRAMS | /Herbert/string/EqualsNotEqualTo.java | UTF-8 | 446 | 3.640625 | 4 | [] | no_license | // equlas() vs ==, == compare to object have same reference or not, whereas equlas
//compare characters of two string object
class EqualsNotEqualTo{
public static void main(String args[])
{
String s1="Hello";
String s2=new String(s1);
System.out.println(s1+" equals "+ s2+ " -> "+s1.equals(s2));
Syste... | true |
e82090f141d14063ceca718ac7fbd154929db02a | Java | akwolf/project-collection | /project-encrypt/src/main/java/com/justsy/https/PostReadHttps.java | UTF-8 | 1,222 | 2.78125 | 3 | [] | no_license | package com.justsy.https;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLContext;
import javax.net.ssl.X509TrustManager;
public class PostReadHttps {
/**
* @param args
* @throws E... | true |
3c87ef91c66877da9e291fd21466ead314541db8 | Java | shenhong74ww/album-backend | /src/main/java/com/hshen/album/controller/UserController.java | UTF-8 | 4,821 | 2.265625 | 2 | [] | no_license | package com.hshen.album.controller;
import com.hshen.album.model.Heat;
import com.hshen.album.model.Like;
import com.hshen.album.model.Photo;
import com.hshen.album.model.User;
import com.hshen.album.service.HeatService;
import com.hshen.album.service.PhotoService;
import com.hshen.album.service.UserService;
import co... | true |
e39c70aa112c7cbdac5ca9a05627f9caa4193c97 | Java | abarral-clgx/Proteus_DataFlow | /src/main/java/com/cloudmgtxclctclctpipeline/proteusdataflow/ProteusDataFlowMain.java | UTF-8 | 810 | 1.890625 | 2 | [] | no_license | package com.cloudmgtxclctclctpipeline.proteusdataflow;
import org.apache.beam.sdk.options.PipelineOptionsFactory;
import com.cloudmgtxclctclctpipeline.proteusdataflow.services.*;
import java.io.IOException;
public class ProteusDataFlowMain {
public static void main(String[] args) throws IOException {
co... | true |
ddf762a339f82f0ef83e005977810d4bcb9337d6 | Java | fil512/stratinit | /stratinit-master/stratinit-core/src/main/java/com/kenstevens/stratinit/client/server/rest/rank/ELOCalculator.java | UTF-8 | 1,177 | 2.875 | 3 | [] | no_license | package com.kenstevens.stratinit.client.server.rest.rank;
// E = 1/(1+10^(-(R-Rother)/C2))
// R = own ELO
// Rother = ELO of your opponent
// C2 = Constant (currently 400)
//
// Your ELO after the game is then:
// Rnew = R + C1 * ( W - E )
// C1 = Constant (currently 50)
// W = percentage of win ... | true |
2a6843436291018c6c6320caf256ae74ccc0cda8 | Java | Gabrielrms25/registro-de-ponto | /ponto-web/src/main/java/com/teste/pontoweb/model/Usuario.java | UTF-8 | 694 | 2.015625 | 2 | [] | no_license | package com.teste.pontoweb.model;
import java.io.Serializable;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import lombok.AllArgsConstructor;
import lombok.Get... | true |
078b1aa800c0a98c6902d7dce7338a62351fab2a | Java | lishiliang-new/elastic-job-proj | /commons-dubbo-proj/commons-core/src/main/java/com/lishiliang/core/utils/Enums.java | UTF-8 | 553 | 2.5625 | 3 | [] | no_license | package com.lishiliang.core.utils;
public class Enums {
/**
* @desc: 状态枚举
* @author: lisl
*/
public static enum STATUS {
INVALID(0, "无效"),
VALID(1, "有效");
int code;
String desc;
private STATUS(int code, String desc) {
th... | true |
ef8a8536d57b637bef50308ae431c345576afff4 | Java | ShuXuan1207/A202SGI.Assignment-Tan.Shu.Xuan | /app/src/main/java/com/inti/student/androidassignment/NewsRecyclerAdapter.java | UTF-8 | 5,009 | 2.5625 | 3 | [] | no_license | package com.inti.student.androidassignment;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
imp... | true |
210e5e9e5a8979cde1bb9d77f36394f922786f4d | Java | faultaddr/GrowingUp | /MyApplication/app/src/main/java/com/example/panyunyi/growingup/ui/custom/PicWordView.java | UTF-8 | 7,744 | 2.03125 | 2 | [] | no_license | package com.example.panyunyi.growingup.ui.custom;
import android.content.Context;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Pa... | true |
c150aef10e2803ac36bb03e88cb75deac561699a | Java | Preity16/Reversi | /Reversi.java | UTF-8 | 10,787 | 3.140625 | 3 | [] | no_license | package Reversi;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
/**
* Created by Kowshika Sarker on 12/8/2017.
*/
/*
System.out.println("\033[0m BLACK");
System.out.println("\033[31m RED");
System.out.println("\033[32m GREEN");
System.out.println("\033[33m Y... | true |
f72547f33af42891ed853ef05fdd7f4eddf61844 | Java | dnd2/CQZTDMS | /src/com/infodms/dms/actions/help/questionSolve/Setting.java | UTF-8 | 8,678 | 1.828125 | 2 | [] | no_license | package com.infodms.dms.actions.help.questionSolve;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;
import com.infodms.dms.actions.common.FileUploadManager;
import com.infodms.dms.bean.AclUserBean;
import com.infodms.dms.common.... | true |
0cfd6d1d2f1bae63594641547f234d3d440b1678 | Java | Liliia1502/SeleniunQA2020 | /src/main/java/org/itstep/lesson4/home_work4.java | UTF-8 | 1,928 | 2.609375 | 3 | [] | no_license | package org.itstep.lesson4;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
// Запустить браузер
// Открыть http://google.com
// В поисковую строку ввести текст для поиска (текст может быть любым)
// Протестиру... | true |
d9cba01df4dba6f486339d13cd0ac6ce30aa04c3 | Java | Schkrabi/HindleyMiller | /src/syntax/Op.java | UTF-8 | 1,558 | 2.46875 | 2 | [] | no_license | /**
*
*/
package syntax;
import java.util.Set;
import inference.Inference;
import inference.Subst;
import inference.Tuple;
import types.TArr;
import types.TVar;
import types.Type;
import types.TypeEnv;
import types.VarName;
/**
* @author schkrabi
*
*/
public class Op extends Expr {
public final Binop binop;
... | true |
139662482d2d574d77cf39ebe943bd194e11313e | Java | moutainhigh/dodopal | /Dodopal/oss/trunk/oss-parent/oss-business/src/main/java/com/dodopal/oss/business/service/impl/ClearingDetailServiceImpl.java | UTF-8 | 4,418 | 2.140625 | 2 | [] | no_license | package com.dodopal.oss.business.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.dodopal.common.model.DodopalDataPage;
import com.dodopal.comm... | true |
772fb1e3826e0f168c8c40dec4ef044c086a47d7 | Java | ayumilong/Algorithm | /yz/leetcode/tools/ArrayToCBT.java | UTF-8 | 903 | 3.375 | 3 | [] | no_license | /**
* File Name: ArrayToCBT.java
* Package Name: yz.leetcode.tools
* Project Name: LeetCode
* Purpose:
* Created Time: 8:28:48 PM Oct 29, 2015
* Author: Yaolin Zhang
*/
package yz.leetcode.tools;
import java.util.*;
/**
* @author Yaolin Zhang
* @time 8:28:48 PM Oct 29, 2015
*/
public class ArrayToCBT {
pub... | true |
defe338e937b9b95193630d6f30ce891126158ca | Java | rehno-lindeque/bimserver | /Store/generated/org/bimserver/models/log/impl/DownloadImpl.java | UTF-8 | 794 | 1.710938 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.bimserver.models.log.impl;
import org.bimserver.models.log.Download;
import org.bimserver.models.log.LogPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Download</b>... | true |
4d60d958bfc31be7feef69dd315f3d54cf355e82 | Java | LumiaJ/Snack | /src/com/lumiaj/frame/GamePanel.java | GB18030 | 1,365 | 2.84375 | 3 | [] | no_license | package com.lumiaj.frame;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JPanel;
import com.lumiaj.items.Food;
import com.lumiaj.items.Snake;
import com.lumiaj.utils.Constant;
@SuppressWarnings("all")
public class GamePanel extend... | true |
40171c94e4dd263dae676417856f76ff60571c74 | Java | Zhanarystan/task_manager | /src/main/java/reactspring/task_manager/services/impl/UserServiceImpl.java | UTF-8 | 2,156 | 2.296875 | 2 | [] | no_license | package reactspring.task_manager.services.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.security.crypto.bcrypt.BCrypt;
impo... | true |
ae29999fd0eddf6496d1f004c9d8d907d103b5d7 | Java | Mercateo/rest-demo-feature | /src/test/java/com/mercateo/demo/resources/orders/OrdersResource0Test.java | UTF-8 | 3,154 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | package com.mercateo.demo.resources.orders;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoMoreInteractions;
import static org.mockito.Mockito.when;
import java.util.Arrays;
import org.junit.Test;
import org.junit.runner.RunWith;
import ... | true |
b2dcbf823edc94992012a7a78a1e17fd1ac86d01 | Java | marcgs/HackerRank | /src/test/java/AnagramTest.java | UTF-8 | 863 | 2.828125 | 3 | [] | no_license | import org.assertj.core.api.Assertions;
import org.junit.Test;
import static org.assertj.core.api.Assertions.*;
import static org.junit.Assert.*;
public class AnagramTest {
@Test
public void anagram_simple() {
assertThat(Anagram.makeAnagram("a", "a")).isEqualTo(0);
}
@Test
public void an... | true |
86e6efadef03132ecb21fcd14e1d12652b7790aa | Java | deoliveiraromain/sudoku | /src/fr/eisti/ing1/java/sudoku/Generateur.java | UTF-8 | 9,803 | 3.375 | 3 | [] | no_license | package fr.eisti.ing1.java.sudoku;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;
/**
* Classe Generateur, permettant la création de grilles de Sudoku de manière
* aléatoire
*
* @author De Oliveira, Méric, Zullo
*/
public class Generateur {
/**
* Foncti... | true |
4be263250aba2f839d5a9400b44c85ef28f23682 | Java | crawley/CMM-data-grabber | /eccles/src/main/java/au/edu/uq/cmm/eccles/UserDetailsManager.java | UTF-8 | 1,421 | 1.828125 | 2 | [] | no_license | /*
* Copyright 2013-2013, CMM, University of Queensland.
*
* This file is part of Eccles.
*
* Eccles is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any l... | true |
177eee52b3bee4676424d02c08c0eb1b8773763b | Java | runningRookie/matrix-parent | /app/springBoot/src/main/java/com/zhangyuyao/springBoot/mq/RabbitConfig.java | UTF-8 | 491 | 2.140625 | 2 | [] | no_license | package com.zhangyuyao.springBoot.mq;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Rabbit MQ配置
*
* @author 张玉尧(matrix.zhang@ximalaya.com)
* @version $Id: RabbitConfig.java, v 0.1 2018年9月3日 下午3:40:... | true |
ddfe8a7e0cc89e5fcdc13b2ba859b7ef97885b1d | Java | interventure-growingtogether/clean-code-workshop | /src/main/java/com/github/masterslave/imperative/cleancode/Double.java | UTF-8 | 1,346 | 3.734375 | 4 | [] | no_license | package com.github.masterslave.imperative.cleancode;
// Violation 1: Intention Revealing Names => Double to Multiplier
// Violation 2: Use proper language constructs, classname should be a noun
public class Double {
// Violation 3: Avoid encodings = int is not a necessary prefix
// Violation 4: Express comments i... | true |
9ad4f0a3d4f2a0eec9b74623876c2f6cd15eb97a | Java | mayank0271/Twitter_URL_Dashboard | /Twitter_URL_Dashboard/app/src/main/java/com/example/user/twitter_url_dashboard/Homepage.java | UTF-8 | 1,277 | 1.734375 | 2 | [] | no_license | package com.example.user.twitter_url_dashboard;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.ArrayAdapter;
public class ... | true |
753b1377a008f2780a75e5ba89aa8c83b273216c | Java | tasyjean/AdSapient-Adserver-Java | /src/main/com/adsapient/shared/mappable/TimeFilter.java | UTF-8 | 5,824 | 1.75 | 2 | [] | no_license | /*
* AdSapient - Open Source Ad Server
* http://www.sourceforge.net/projects/adsapient
* http://www.adsapient.com
*
* Copyright (C) 2001-06 Vitaly Sazanovich
* Vitaly.Sazanovich@gmail.com
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Library G... | true |
1718c8ccc3782935f660bce168acca56450afb6b | Java | moutainhigh/cetc_parent | /cetc_qc/cetc_hpalm/src/main/java/com.cetc.alm/service/impl/AuthencateServiceImpl.java | UTF-8 | 5,389 | 2.21875 | 2 | [] | no_license | package com.cetc.alm.service.impl;
import com.cetc.alm.service.AuthencateService;
import com.cetc.model.hpalm.AlmConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpEntity;
import org.springframework.http.Ht... | true |
cf629c5adca78ded252c37278bb02b838294a5f1 | Java | ftodoric/fer-nenr | /src/hr/fer/nenr/lab/hw3/WhFuzzySystemMin.java | UTF-8 | 3,711 | 2.828125 | 3 | [] | no_license | package hr.fer.nenr.lab.hw3;
import hr.fer.nenr.lab.hw1.*;
public class WhFuzzySystemMin implements FuzzySystem {
private Defuzzifier def;
private Rule[] rules;
public WhFuzzySystemMin(Defuzzifier def) {
this.def = def;
// INITIALIZE RULES & BASE
// constraints & domains:
... | true |
57441b0ce4c7c9cbf53942c99aa3709831fc8294 | Java | dheerajdlalwani/java-examples | /PrimeCheck.java | UTF-8 | 1,902 | 3.859375 | 4 | [
"MIT"
] | permissive | import java.util.Scanner;
class Prime
{
private int num,i;
public Prime()
{
}
public Prime(int n)
{
num = n;
System.out.println("I got here, printed num: " + num);
}
public int primeCheck()
{
if(num == 1)
{
System.out.println("Nope");
... | true |
fdb7353764e8b323a9d3ab97d3b6250e0eafe3f3 | Java | HeLpPLeaSe1/CaptureTheFlag | /src/com/random/captureTheFlag/listeners/GameStartListener.java | UTF-8 | 19,507 | 2.03125 | 2 | [] | no_license | package com.random.captureTheFlag.listeners;
import com.random.captureTheFlag.Capture;
import com.random.captureTheFlag.player.*;
import com.random.captureTheFlag.util.ItemBuilder;
import com.random.captureTheFlag.util.Scoreboard;
import net.minecraft.server.v1_8_R3.IChatBaseComponent;
import net.minecraft.server.v1_8... | true |
724e0937ff638863b9af75c37382a9037b583da7 | Java | MadhukaraRS/MadhuJava | /src/Assignments/GreaterNoArray.java | UTF-8 | 563 | 3.34375 | 3 | [] | no_license | package Assignments;
public class GreaterNoArray {
public static void main(String[] args) {
// TODO Auto-generated method stub
int [] arr = {2, 14, 16, 45, 32, 43};
System.out.println("Array Entered:");
for (int i = 0; i < arr.length; i++) {
System.out.print(arr[i] + " ");
}
... | true |
7ca3c699d7e670b768628c659538ab20b050e906 | Java | clayx/ChaySizeManager | /app/src/main/java/com/chay/test/chaysizemanager/pop/CommButtonDlg.java | UTF-8 | 6,259 | 1.992188 | 2 | [] | no_license | package com.chay.test.chaysizemanager.pop;
import android.app.ActionBar.LayoutParams;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.LayoutInflat... | true |
94a2c79edf4c3cdd0ac6e51a5fbc3f4fba8660d4 | Java | MiSheep/RuiDaoExam | /src/main/java/com/neuedu/ruidaoexam/test/MyBatisSessionFactory.java | UTF-8 | 1,989 | 2.65625 | 3 | [] | no_license | package com.neuedu.ruidaoexam.test;
import java.io.Reader;
import org.apache.ibatis.io.Resources;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
/**
* hibernate框架会话Session类 ,mybatis 会话类 sqlSe... | true |
425d98c7f6d58e5bb45d2e1b90543042213087a4 | Java | majidhajric/spring-boot-graphql | /src/main/java/dev/demo/graphql/resolver/BookResolver.java | UTF-8 | 851 | 2.265625 | 2 | [] | no_license | package dev.demo.graphql.resolver;
import dev.demo.graphql.model.Author;
import dev.demo.graphql.model.Book;
import dev.demo.graphql.repository.AuthorRepository;
import graphql.kickstart.tools.GraphQLResolver;
import graphql.schema.DataFetchingEnvironment;
import lombok.RequiredArgsConstructor;
import org.springframew... | true |
0a2963e907b1322be0483682c0e8b0628a84ece0 | Java | yhcting/baselib | /src/main/java/free/yhc/baselib/adapter/android/AHandlerAdapter.java | UTF-8 | 664 | 2.375 | 2 | [] | no_license | package free.yhc.baselib.adapter.android;
import android.os.Handler;
import org.jetbrains.annotations.NotNull;
import free.yhc.baselib.adapter.HandlerAdapter;
/**
* MsgHandler for Android.
*/
public class AHandlerAdapter implements HandlerAdapter {
private final Handler mHandler;
public AHandlerAdapter(@N... | true |
121e0c4b69c3818858eee780086e7524ce0da09c | Java | w1514139296/gmall-0108 | /gmall-cart/src/main/java/com/atguigu/gmall/cart/controller/CartController.java | UTF-8 | 799 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package com.atguigu.gmall.cart.controller;
import com.atguigu.gmall.cart.interceptor.LoginInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotati... | true |
d0936aef1c77ae4855e49960af20281d357fe86b | Java | serujin/HBDay | /HappyBirthday/core/src/com/seruji/hb/scenes/Quarantine.java | UTF-8 | 6,689 | 2.375 | 2 | [] | no_license | package com.seruji.hb.scenes;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.math.Vector3;
import com.seruji.hb.main.HappyBirthdayMain;
import com.seruji.hb.model.Scene;
import com.seruji.hb.objects.halloween.Home;
import com.seruji.hb.objects.quarantine.Blanket;
import co... | true |
eb03b5d831bd761db9b4f7bc94952e171fb11156 | Java | nerellasairam/kafka-spool | /kafka-connect-spooldir-master/src/main/java/io/confluent/kafka/connect/source/SpoolDirectoryConnector.java | UTF-8 | 1,719 | 1.84375 | 2 | [] | no_license | /**
* Copyright © 2016 Jeremy Custenborder (jcustenborder@gmail.com)
*
* 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 req... | true |
dc6ad696efb462973370eca72e2973b8e80076c0 | Java | cha63506/CompSecurity | /Shopping/offerup_source/src/com/offerup/android/utils/m.java | UTF-8 | 2,616 | 2.25 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.offerup.android.utils;
import b.a.a;
import java.util.TimeZone;
public final class m
{
public static final TimeZone a = TimeZo... | true |
628df2edf9d444fbe5af268d95090d0ccc20154a | Java | MatheusAlvesA/Encurtador_JavaRMI | /src/main/java/matheus/Encurtador/ServerException.java | UTF-8 | 661 | 2.90625 | 3 | [] | no_license | package matheus.Encurtador;
public class ServerException extends Exception {
private static final long serialVersionUID = 1L;
private String mensagem;
private Exception causadora;
public ServerException(Exception e, String mensagem) {
super(e);
this.causadora = e;
this.mensagem = mensagem;
}
... | true |
553271fcfa86e46e3a02fd31d760298441c025f2 | Java | The-Software-Guild/superhero-sightings-assessment-b97m | /SuperheroesSightings/src/main/java/com/bm/superheroessightings/controller/PrimaryController.java | UTF-8 | 21,841 | 2.34375 | 2 | [] | no_license | package com.bm.superheroessightings.controller;
import com.bm.superheroessightings.controller.dto.Super;
import com.bm.superheroessightings.service.Service;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowir... | true |
00b2dd0fc40d3183626df03a8b00b689d39df745 | Java | phillipgs/emulador | /BeaNES/src/beanes/sound/SquareChannel.java | UTF-8 | 2,613 | 2.21875 | 2 | [] | no_license | package beanes.sound;
import beanes.*;
public class SquareChannel extends SoundChannel {
private int dutyMode;
private boolean lengthCounterEnable;
private boolean envDisable;
private int envDecayRate;
private int lengthCounterHalt;
private int envelope;
private boolean sweepEnabl... | true |
d3fae3f5093514ac9753c38058d29eb6617b1ba6 | Java | ShuangXue12/day02 | /src/main/java/com/example/zy1/contract/HomeContract.java | UTF-8 | 486 | 2.078125 | 2 | [] | no_license | package com.example.zy1.contract;
import com.example.zy1.base.BaseView;
import com.example.zy1.bean.HomeBean;
import com.example.zy1.utils.InetCallBack;
public class HomeContract {
public interface HomeView extends BaseView {
void getHome(HomeBean homeBean);
void onFail(String error);
}
... | true |
154b32112e015ed3dcd978c0286baa351ec81f64 | Java | adatapost/krunal | /Practice/src/in/date/Test.java | UTF-8 | 1,195 | 3.078125 | 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 in.date;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
*
* @author admin
*/
public class Test {
publi... | true |
587197e44eb5f82574b31a55af4eef6104bc92bf | Java | rrodini/workspace-cardgames | /cardgame/src/main/java/com/cardtech/game/CardGame.java | UTF-8 | 3,075 | 3.96875 | 4 | [] | no_license | package com.cardtech.game;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.cardtech.core.Deck;
/**
* CardGame is the superclass for WarGame and PokerGame. And Blackjack. <br/>
* The class implements the GOF Template Pattern as follows: <br/>
* 1. Construct the game subclass<b... | true |
7d989265616027a1b198e7e592886d3944898f1a | Java | MinaSeddik/CompleteApp | /rest-api/src/main/java/com/mina/mapper/converter/UserMapper.java | UTF-8 | 2,171 | 2.203125 | 2 | [] | no_license | package com.mina.mapper.converter;
import com.mina.domain.UserEntity;
import com.mina.model.Location;
import com.mina.model.User;
import com.mina.service.LocationService;
import ma.glasnost.orika.CustomMapper;
import ma.glasnost.orika.MappingContext;
import org.apache.commons.lang3.StringUtils;
import org.springframew... | true |
14609e17c30cc88cb3c4bd303216ed934dc02cfd | Java | aahaselgrove/TrollHell | /src/me/dimpl/TrollHell/TrollHell.java | UTF-8 | 5,604 | 2.453125 | 2 | [] | no_license | package me.dimpl.TrollHell;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import me.dimpl.TrollHell.HellListener;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.Comma... | true |
b76bfd6f3e50a449bf848fcf9db8732bb5d9ec1d | Java | MyAuntIsPost90s/FitnessRoom | /FitnessRoomBase/src/main/java/fitnessroom/base/model/Teacherevaluates.java | UTF-8 | 1,313 | 2.125 | 2 | [] | no_license | package fitnessroom.base.model;
import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;
public class Teacherevaluates {
private String teacherevaluateid;
private String teacherid;
private String userid;
private Integer teacherscore;
@JSONField(format = "yyyy-MM... | true |
675eb10c8e1a95249fbd39199581e2798a9a0802 | Java | JairoBm13/crunchywomod | /crunchyroll/crunchyroll2-0-3/com/google/android/gms/analytics/ecommerce/Product.java | UTF-8 | 787 | 1.976563 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.30
//
package com.google.android.gms.analytics.ecommerce;
import java.util.Iterator;
import com.google.android.gms.internal.zznq;
import java.util.HashMap;
import java.util.Map;
public class Product
{
Map<String, String> zzJj;
public Product() {
this.zzJj = new... | true |
966d18dada697fb1be06ba9be41df4d4c9d5f9b5 | Java | windspeeding/SensorDataStreamer | /JavaServer/src/com/socket/server/Server.java | UTF-8 | 3,888 | 3.0625 | 3 | [] | no_license | package com.socket.server;
import java.net.*;
import java.io.*;
public class Server extends Thread
{
private ServerSocket serverSocket;
private static int counter = 1;
private static long size;
// subject to change
static final private String type = ".txt";
static final private String folder = "... | true |
71a525ae7f5911728f514e898f01dfa370bfe408 | Java | fatcatxh/leetcode | /src/easy_0001_two_sum.java | UTF-8 | 1,117 | 3.46875 | 3 | [] | no_license | import java.util.HashMap;
public class easy_0001_two_sum {
public int[] twoSum(int nums[], int target) {
HashMap<Integer, Integer> m1 = new HashMap();
m1.put(nums[0], 0);
for (int i = 1; i < nums.length; i++) {
int diff = target - nums[i];
if (m1.containsKey(diff)) ... | true |
b24bbc803ad150753b4b1847fce510dc38800fa3 | Java | sadmanfatin/CostingReports | /Model/src/mnj/mfg/model/views/client/MnjMfgPrecostingHViewClient.java | UTF-8 | 1,367 | 1.710938 | 2 | [] | no_license | package mnj.mfg.model.views.client;
import mnj.mfg.model.views.common.MnjMfgPrecostingHView;
import oracle.jbo.client.remote.ViewUsageImpl;
// ---------------------------------------------------------------------
// --- File generated by Oracle ADF Business Components Design Time.
// --- Mon Sep 14 19:43:56 BDT... | true |
f3dabe51e7e0a98c03a992f1b57bc35cd2117a6e | Java | payalforjain/leetcode | /leetcode/src/main/java/leetcode/easy/arrays/PrintTwoMaxNumber.java | UTF-8 | 394 | 3.6875 | 4 | [] | no_license | package leetcode.easy.arrays;
public class PrintTwoMaxNumber {
public void printTwoMaxNumbers(int[] nums) {
int maxOne = 0;
int maxTwo = 0;
for (int n : nums) {
if (maxOne < n) {
maxTwo = maxOne;
maxOne = n;
} else if (maxTwo < n) {
maxTwo = n;
}
}
System.out.println("First Max Number:... | true |
625c787bab6db95377952d89ebb9842ca49be0ba | Java | stoneson/anno.thrift-parent | /thrift/src/main/java/anno/thrift/client/Request.java | UTF-8 | 1,021 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package anno.thrift.client;
import anno.thrift.rpc.BrokerService;
import anno.thrift.server.ServerInfo;
import org.apache.thrift.TException;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TTransportException;
import java.util.Map;
pub... | true |
800cc969b2ba7e35add593794a6537dbcb594c2a | Java | thinksee/ts-jzoffer | /src/main/java/com/thinksee/jzoffer/J45NumberInCircle.java | UTF-8 | 322 | 3.046875 | 3 | [] | no_license | package com.thinksee.jzoffer;
/**
* 0,1,...,n-1这n个数字排成一个圆圈,从数字0开始
* 每次从这个圆圈中删除第m个数字。求出这个圆圈里剩下
* 的最后一个数字。
*/
public class J45NumberInCircle {
public static int getLastRemaining(int n, int m){
return 0;
}
}
| true |
9025b5801bb9033dbc20f6f88f50b3f060c03023 | Java | gaw3rty/Tolding-Activities-1stSem-2019-2020 | /Midterm Activities/Activity 2/VariablesAndDataTypes.java | UTF-8 | 839 | 3.578125 | 4 | [] | no_license | public class VariablesAndDataTypes {
public static void main (String [] args) {
char Letter = 'A';
float Temperature = 16;
double Temperature2 = 23.5;
byte Hours = 24;
short Days = 7;
int Weeks = 4;
long Months = 12;
boolean b = false;
if(b) {
System.out.println(... | true |
24538b717edad5283881b697d0502274c3972cc5 | Java | haoxiaolonga/springBoot | /src/main/java/com/spring/demo/springbootexample/sso/sysrolefun/service/impl/SysRoleFunServiceImpl.java | UTF-8 | 5,030 | 2.078125 | 2 | [] | no_license | package com.spring.demo.springbootexample.sso.sysrolefun.service.impl;
import com.spring.demo.springbootexample.base.BaseServiceImpl;
import com.spring.demo.springbootexample.common.DataUtils;
import com.spring.demo.springbootexample.common.IdWorker;
import com.spring.demo.springbootexample.protocol.InsertInto;
import... | true |
3098855f1b73064d3863e86af7025d439cf28323 | Java | Manish5109/HRMS_NEW | /Employee_Records/src/main/java/com/study/services/EmployeeServices.java | UTF-8 | 250 | 1.898438 | 2 | [] | no_license | package com.study.services;
import java.util.List;
import com.study.hibernate.bean.Employee;
public interface EmployeeServices {
public void saveEmployee(Employee emp);
public void updateEmployee(Employee emp);
public List listEmployee();
}
| true |
8dab91009b345664179fc0b9a4bc1836299ac6ea | Java | rsun07/Java_NoteBook | /java/src/test/java/pers/xiaoming/notebook/concurrent/synchronized_and_lock/exception_release/ExcpetionLockReleaseTest.java | UTF-8 | 2,589 | 3.0625 | 3 | [] | no_license | package pers.xiaoming.notebook.concurrent.synchronized_and_lock.exception_release;
import org.junit.Ignore;
import org.junit.Test;
@Ignore("demo tests")
public class ExcpetionLockReleaseTest {
/*
Exception in thread "Thread-0" java.lang.ArithmeticException: / by zero
at pers.xiaoming.notebook... | true |
915e13fb3faff40863a5bb49048d67b89af1294c | Java | josemanu/jtodo | /gyt-api-todo-dao/src/main/java/gt/com/gyt/api/todo/dao/TodoDaoImpl.java | UTF-8 | 1,287 | 2.171875 | 2 | [] | no_license | package gt.com.gyt.api.todo.dao;
import gt.com.gyt.api.model.todo.db.Task;
import java.util.List;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
/**
*
* @author jcano
... | true |
cc7e967ba98adad318c9890d2c4717f5a02f5eb9 | Java | StarLightTeams/Game | /src/entity/player/Player.java | GB18030 | 2,600 | 2.6875 | 3 | [] | no_license | package entity.player;
import java.util.HashMap;
import java.util.Map;
/*
*
*/
public class Player {
//ҵip+:+port
public String clientId;
//
public int playerNo;
//
public String playerName;
//ҵ½(οĬΪ1)
public String password = "1";
//ҷ
public int playerCard;
//ҵ
public Map<String,In... | true |
12154a329746319abf2772aacdb0113daa602f80 | Java | cheriduk/spring-boot-toturial | /tutorial-01-design-patterns/src/main/java/com/duke/tutorial/designpatterns/proxy/SgHouseProxyTest.java | UTF-8 | 205 | 2.03125 | 2 | [] | no_license | package com.duke.tutorial.designpatterns.proxy;
public class SgHouseProxyTest {
public static void main(String[] args) {
HouseProxy proxy = new HouseProxy();
proxy.display2();
}
}
| true |
b9395138c7ee3261539800f17fbeac74bbfca6a0 | Java | 18850981235/gdznoa | /src/main/java/com/service/bd/BdClientService.java | UTF-8 | 665 | 1.773438 | 2 | [] | no_license | package com.service.bd;
import com.beans.BdClient;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* @author 李鹏熠
* @create 2019/3/4 14:30
*/
public interface BdClientService {
public Map<String,Object> getList(String name, String address,
... | true |
1cd560303dde6d0c0f6d48062324765e12681220 | Java | leesoyun950425/bigdatajava | /apple08/src/main/java/com/itbank/mvc08/CookTest.java | UTF-8 | 566 | 2.359375 | 2 | [] | no_license | package com.itbank.mvc08;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.GenericXmlApplicationContext;
public class CookTest {
public static void main(String[] args) {
ApplicationContext cook = new GenericXmlApplicationContext("context.xml");
ICook co1 =... | true |
f31eb5985d9d675a8e7951a4ca3bc5a276ad80cd | Java | StefanSpecht/eatsmart-api | /eatsmart/src/main/java/dom/company/eatsmart/resources/LoginResource.java | UTF-8 | 1,373 | 2.359375 | 2 | [] | no_license | package dom.company.eatsmart.resources;
import java.net.URI;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.r... | true |
7d307760fa8e1019c04b18fedafa4c5fe820a508 | Java | dvobro18/javafundamentals | /project/src/com/designpatterns/base/MountianBike.java | UTF-8 | 281 | 2.765625 | 3 | [] | no_license | package com.designpatterns.base;
public abstract class MountianBike extends AbstractBike {
public MountianBike(WheelInterface wheel) {
this(wheel, BikeInterface.Color.UNPAINTED);
}
public MountianBike(WheelInterface wheel, BikeInterface.Color color) {
super(wheel,color);
}
}
| true |
30550a05d64c7d8004bcb7cdf00e6ad4b50b184b | Java | GunThan/Syntax | /src/basic/dev/MainApp.java | UTF-8 | 192 | 1.609375 | 2 | [] | no_license | package basic.dev;
public class MainApp {
public static void main (String[] args) {
System.out.println ("HelloWorld");
int number;
String nameSchool;
}
public void show() {
}
}
| true |
9d8b0e668f6a9203acfb49c99f0e920bfeefa948 | Java | BackupTheBerlios/rapid-svn | /trunk/src/java/org/syracus/rapid/watches/AbstractWatch.java | UTF-8 | 477 | 2.140625 | 2 | [] | no_license | package org.syracus.rapid.watches;
import org.syracus.rapid.realm.User;
public class AbstractWatch {
private Long id;
private User user;
/**
*
* @return
* @hibernate.many-to-one not-null="true"
*/
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
/**
... | true |
4b23b248c17a520cedce988cd71cd9d4ea02eb56 | Java | tlwzzy/RubberTranslator | /src/main/java/com/rubbertranslator/modules/textinput/ocr/OCRTokenEntity.java | UTF-8 | 836 | 2.15625 | 2 | [] | no_license | package com.rubbertranslator.modules.textinput.ocr;
import com.google.gson.annotations.SerializedName;
public class OCRTokenEntity{
@SerializedName("access_token")
private String accessToken;
@SerializedName("refresh_token")
private String refreshToken;
@SerializedName("scope")
private String scope;
@Seria... | true |
cacc9edf3e58f24d57b9d6a5fbeb963f06b022e3 | Java | HanChangHun/MobilePlus-Prototype | /aosp/javalib/android/telephony/data/IDataServiceCallback.java | UTF-8 | 14,704 | 1.976563 | 2 | [] | no_license | package android.telephony.data;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.List;
public interface IDataServiceCallback extends IInterface {
void onDataCallListChanged(List<DataCallResponse> paramLis... | true |
db3ab82280ac5dc6a39a7534672ce006243f14e1 | Java | qyxghcl/HotFixDemo | /HotFix/app/src/main/java/com/a50647/hotfixdemo/MainActivity.java | UTF-8 | 2,284 | 2.25 | 2 | [] | no_license | package com.a50647.hotfixdemo;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.a50647.wpermission.PermissionManager;
import com.a50647.wpermission.Permissions;
import java.io.File;
/**
* 测... | true |
5629491649b5b7b1ec5ae35930bbffaa7727ee3a | Java | xueyi178/SpringBootRedis | /server/src/main/java/com/jbg/redis/server/utils/RedPacketUtil.java | UTF-8 | 1,874 | 3.1875 | 3 | [] | no_license | package com.jbg.redis.server.utils;
import com.google.common.collect.Lists;
import java.util.List;
import java.util.Random;
/**
* <p>
* 抢红包系统中的 二倍均值法
* </p>
*
* @author xueyi
* @since 2020/5/31 15:34
*/
public class RedPacketUtil {
/**
* 1. 描述: 二倍均值法的算法实现 - 算法里面的金额以 分 为单位
* 作者: xueyi
... | true |
38b2877d09b0fcf3d27a50771fe639bba1f6150c | Java | sroibu/jsr354-ri | /moneta-core/src/test/java/org/javamoney/moneta/spi/format/LiteralTokenTest.java | UTF-8 | 2,323 | 2.28125 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2012, 2020, Anatole Tresch, Werner Keil and others by the @author tag.
*
* 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.... | true |
88f6a85cb550b33e0c2c09ada6638b76a4da59c3 | Java | dewa1993/Barcode-Scanner-Firebase-ML | /app/src/main/java/com/upadhyde/android/base/fragmnet/AbstractBaseDataBindingFragment.java | UTF-8 | 1,326 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.upadhyde.android.base.fragmnet;
import android.databinding.DataBindingUtil;
import android.databinding.ViewDataBinding;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import andro... | true |
56eccd20dbaf0127780a3b58b9679d71e9e62b54 | Java | paulovictorce/pizzaria_uds | /pedidos-pizzaria/src/main/java/com/pizzaria/gerenciador/services/PizzaServices.java | UTF-8 | 899 | 2.25 | 2 | [] | no_license | package com.pizzaria.gerenciador.services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pizzaria.gerenciador.dtos.PizzaDto;
import com.pizzaria.gerenciador.entities.Pizza;
import com.pizzaria.gerenciador.repos... | true |