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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d92be9749efba7abea772b3c4049a8b9b87df475 | Java | minhdn7/dms | /app/src/main/java/vn/com/vsc/ptpm/VNPT_DMS/model/dao/BaseDao.java | UTF-8 | 1,502 | 2.21875 | 2 | [] | no_license | package vn.com.vsc.ptpm.VNPT_DMS.model.dao;
import android.util.Log;
import java.io.IOException;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
import vn.com.vsc.ptpm.VNPT_DMS.common.ErrorDef;
import vn.com.vsc.ptpm.VNPT_DMS.model.response.APIError;
import vn.com.vsc.ptpm.VNPT_DMS.model... | true |
b979ab338b6848581dfdffae29ccdac091e85f17 | Java | mczal/Messaging-Security | /src/main/java/com/test/dana/service/impl/RoleServiceImpl.java | UTF-8 | 1,581 | 2.171875 | 2 | [] | no_license | package com.test.dana.service.impl;
import com.test.dana.dao.RoleDAO;
import com.test.dana.dto.base.rest.HttpCode;
import com.test.dana.dto.base.rest.RestException;
import com.test.dana.model.Role;
import com.test.dana.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
76fbeb772c7730074b4f0429e65df03cc72b3543 | Java | Kite1717/LeetCode | /Algorithms/Problem66/Solution.java | UTF-8 | 904 | 3.375 | 3 | [] | no_license | class Solution {
/*
Runtime: 0 ms, faster than 100.00% of Java online submissions for Plus One.
Memory Usage: 35.1 MB, less than 98.58% of Java online submissions for Plus One.
*/
public int[] plusOne(int[] digits) {
boolean carry = false;
for(int i = digits.length -1; i >= 0; i-... | true |
06037937c86fdc88ac8aa22e000b4d78c3769863 | Java | liuhailin/rate-limiter | /src/main/java/com/github/bakerzhu/common/ratelimiter/lock/Lock.java | UTF-8 | 1,112 | 2.546875 | 3 | [] | no_license | package com.github.bakerzhu.common.ratelimiter.lock;
/**
* Created with IntelliJ IDEA.
*
* @author: zhubo
* @description:
* @time: 2018年06月11日
* @modifytime:
*/
public interface Lock {
/**
* 加锁
* @param uniqueKey 加锁唯一键标识
* @return 加锁/获取锁成功则返回true,否则返回false
*/
boolean lock(String ... | true |
00eefddf688b6ed647274bf88596b0ff14f4ac5d | Java | andreihaivas6/University | /Advanced Programming (Java)/Lab3-2020/src/knapsack/DirectedAcyclicGraphAlgorithm.java | UTF-8 | 653 | 2.984375 | 3 | [] | no_license | package knapsack;
import abstractions.Algorithm;
import graph.DirectedGraph;
public class DirectedAcyclicGraphAlgorithm implements Algorithm {
@Override
public String getName() {
return "DAG Shortest Path Algorithm";
}
@Override
public Solution solveKnapsackProblem(Problem problem) {
... | true |
e260410c18363805e64c80f3dd0e405d48c74797 | Java | piczmar/refactoring-demo | /src/test/java/com/consulner/demo/SimpleUsersManagerTest.java | UTF-8 | 2,832 | 2.40625 | 2 | [] | no_license | package com.consulner.demo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;
import java.time.LocalDate;
import java.util.Arrays;
import java.util.Collection;
import static com.consulner.demo.SimpleUsersManager.GREETING... | true |
04600bda9b6cb2da2ab1935a41efa923adf0979c | Java | stardustman/java-base | /src/reflect/MyInvocationHandler.java | UTF-8 | 297 | 2.1875 | 2 | [] | no_license | package reflect;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
public class MyInvocationHandler implements InvocationHandler{
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
return args;
//do something "dynamic"
}
} | true |
f7c3729ec9215081c4fb8301c95f8e47a2bc64c7 | Java | lfgaleota/ECE-Hopital | /src/main/java/ece/ing3/java/projet/interfaces/DialogListener.java | UTF-8 | 602 | 2.609375 | 3 | [] | no_license | package ece.ing3.java.projet.interfaces;
import javax.swing.*;
/**
* Interface d'objet qui écoute l'issue de sélection d'une fenêtre de dialogue.
*
* @author Virgile
* @author Nicolas
* @author Louis-Félix
*/
public interface DialogListener {
/**
* Méthode de retour appelée quand la boîte de dialogue est val... | true |
8a8070fac07523bd74a8b9586484f9bce1e1886f | Java | kankedong/offer | /src/main/java/com/offer/chapter5/Number33.java | UTF-8 | 2,210 | 3.625 | 4 | [] | no_license | package com.offer.chapter5;
import org.junit.Test;
import java.util.Arrays;
import java.util.Comparator;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by zhangcheng on 2018/5/14.
*/
public class Number33 {
@Test
public void test(){
printMinNumber(new int[]{3334,3,3333332});
}... | true |
e356bd356f4dc243cefea8d34b733d0bdbdff391 | Java | zhengqingya/java-workspace | /SpringBoot系列/23-自定义注解实现post请求接收单个参数值/demo/src/main/java/com/zhengqing/demo/api/TestController.java | UTF-8 | 874 | 2.0625 | 2 | [
"MIT"
] | permissive | package com.zhengqing.demo.api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zhengqing.demo.custom.RequestPostSingleParam;
import io.swagger.annotations.Api;
import ... | true |
8a2971c4d00968c8c6f18886e89ebd3f22db2d04 | Java | zebrunner/reporting-service | /src/main/java/com/zebrunner/reporting/web/NotificationController.java | UTF-8 | 2,136 | 2 | 2 | [
"Apache-2.0"
] | permissive | package com.zebrunner.reporting.web;
import com.zebrunner.reporting.service.integration.tool.impl.NotificationService;
import com.zebrunner.reporting.web.util.swagger.ApiResponseStatuses;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;... | true |
4b358e01f3d54dea421ef19e1ea7c120a0137cf8 | Java | 1819-2ahitm-sew/assignment08-exam01-PhilippEdlinger | /src/main/java/at/htl/exam01/document/Main.java | UTF-8 | 1,864 | 4.03125 | 4 | [] | no_license | package at.htl.exam01.document;
public class Main {
/**
*
* Führen Sie hier folgendes durch:
*
* 1. Erstellen Sie 2 Bücher und ein email
* Buch: "Rowlings", "Harry Potter und der Stein der Weisen"
* Email: "Susi", "Bewerbung", "CoolCompany"
* Buch: "Tolkien", "lordOfTh... | true |
89ddb63c42cb38f1e3a65ac983820e7ff148caf8 | Java | mindaugasbarc/RIPSimulatorr | /src/NetworkGraph.java | UTF-8 | 5,454 | 3.078125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
public class NetworkGraph {
private List<Router> routers = new ArrayList<Router>();
private List<Edge> edges = new ArrayList<Edge>();
public NetworkGraph(){
Timer timer = new Timer();
timer.schedule(new UpdateTimer(routers), 30 * ... | true |
a7be99d4a3b0e2c27eeeeb3e61f1dcef231e9015 | Java | Gitqyn/Graduation-Project | /src/Adminservers/NoticeServers.java | UTF-8 | 636 | 2.125 | 2 | [] | no_license | package Adminservers;
import java.util.List;
import AdminDao.NoticeDao;
import Admindmain.Notice;
public class NoticeServers {
public int addnotice(Notice n){
if(n!=null) {
if(n.getNoticemain()==null) {
return 2;
}else {
NoticeDao noticedao=new NoticeDao();
int rs= noticeda... | true |
a0954b47fdf6449fc76745a0a1f51728edc63cba | Java | wang4856304/property-web-api | /src/main/java/com/happy/entity/po/UserPo.java | UTF-8 | 557 | 1.507813 | 2 | [] | no_license | package com.happy.entity.po;
import com.happy.entity.bo.UserBo;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author wangjun
* @Title: UserPo
* @ProjectName newHappy
* @Description: TODO
* @date 2018/10/17 16:59
*/
@Data
@NoArgsConstructor
public class UserPo extends UserBo {
private String m... | true |
c53ac68be10248216efb4d5ef0b2fb4eacd529ba | Java | sukhsfu/cmpt276 | /newcmpt276a1/src/Model/Depth_of_field_calculatorTest.java | UTF-8 | 3,498 | 2.765625 | 3 | [] | no_license | package Model;
import org.junit.jupiter.api.Test;
import java.text.DecimalFormat;
import static org.junit.jupiter.api.Assertions.*;
class Depth_of_field_calculatorTest {
double coc=0.029;
Lens a1=new Lens("Canon",1.8,50);
Lens b1=new Lens("Sigma",2.8,200);
Lens c1=new Lens("Nikon",4,200);
@Tes... | true |
99d16610749032943760c3f7662bf47277b53e37 | Java | jovanajovanovic/upp_nc | /upp/naucna-centrala/src/main/java/com/upp/naucnacentrala/services/implementation/MagazineServiceImpl.java | UTF-8 | 3,494 | 2.15625 | 2 | [] | no_license | package com.upp.naucnacentrala.services.implementation;
import com.upp.naucnacentrala.dto.EditorReviewerDto;
import com.upp.naucnacentrala.dto.MagazineDto;
import com.upp.naucnacentrala.dto.MagazineRegisterDto;
import com.upp.naucnacentrala.exceptions.ObjectNotFound;
import com.upp.naucnacentrala.model.*;
import com.u... | true |
d60e0496e6578367e60c42b7466b1baef9c5e6ce | Java | andresrubiodelrio/ReservasAulas-v2 | /src/test/java/org/iesalandalus/programacion/reservasaulas/mvc/modelo/dominio/AulaTest.java | UTF-8 | 5,422 | 3.0625 | 3 | [] | no_license | package org.iesalandalus.programacion.reservasaulas.mvc.modelo.dominio;
/*
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.junit.Assert.*;
import org.junit.BeforeClass;
import org.junit.Test;
*/
public class AulaTest {
/*
private static final String E... | true |
2b516c02b046e1036234dfd08336d45d4b42dbde | Java | Lopa3599/code-test | /src/main/com/ge/exercise3/Bank.java | UTF-8 | 3,055 | 3.375 | 3 | [] | no_license | package com.ge.exercise3;
import java.util.HashMap;
import java.util.Map;
public class Bank {
private Map<String, Account> accountMap;
public Bank() {
accountMap = new HashMap<>();
}
public Account getAccount(String accountNumber) {
return accountMap.get(accountNumber);
}
public void ad... | true |
f80b4608d3b796b46be58f12fec4d17b63ffc404 | Java | byrlx/AllAboutJava | /src/main/java/com/lx/algorithm/leetcode/CheckBST.java | UTF-8 | 646 | 3.5 | 4 | [] | no_license | package com.lx.algorithm.leetcode;
/**
* 检查一个二叉树是不是二叉查找树
*/
public class CheckBST {
class Node {
int value;
Node left;
Node right;
}
public boolean check(Node root) {
return check(root, Integer.MIN_VALUE, Integer.MAX_VALUE);
}
public boolean check(Node node, int ... | true |
5105e900ab8a388e61c7802fbc75e0f1224181f0 | Java | romanchi12/oddsportal | /src/main/java/org/romanchi/DAO/LigaDAO.java | UTF-8 | 838 | 2.328125 | 2 | [] | no_license | package org.romanchi.DAO;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
/**
* Created by Роман on 14.08.2017.
*/
@Entity
@Table(name = "ligues_v4")
public class LigaDAO {
@Id()
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ligue_id")
... | true |
b55005d83bc88b3e0ce40be2233fa99bf95aac62 | Java | JeffWoo2019/aliyun-openapi-java-sdk | /aliyun-java-sdk-ecsops/src/main/java/com/aliyuncs/ecsops/model/v20160401/OpsQueryEcsApiMetaSettingAttributeKeyValueResponse.java | UTF-8 | 2,920 | 1.835938 | 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 |
82bc393e9c8af5ff8fb41918df2755ca433a1203 | Java | MdGolam-Kibria/SocialMediaChatApplication | /app/src/main/java/com/example/chatapplication/PostDetailActivity.java | UTF-8 | 25,919 | 1.6875 | 2 | [] | no_license | package com.example.chatapplication;
import androidx.annotation.NonNull;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.PopupMenu;
import androidx.core.content.FileProvider;
import androidx.recyclerview.widget.LinearLayoutManager;
import andro... | true |
ac8296d6e945eb0537eddf368df4d768c95e8373 | Java | sdiemert/jgt | /src/main/java/com/sdiemert/jgt/core/RuleApplication.java | UTF-8 | 936 | 3.09375 | 3 | [
"MIT"
] | permissive | package com.sdiemert.jgt.core;
public class RuleApplication {
private Rule rule;
private Morphism morph;
/**
* Creates a record of applying a rule to a graph for a given match.
*
* NOTE: this RuleApplication object will only make sense in the context of a Graph that
* matches the give... | true |
5f2516882901ed8f499a0e83aa805efe53b81caf | Java | abinash-biki/TY_CAPGEMINI_JavaCloud_10thFEB_abinash | /core_java/src/com/org/acpgimini/inheritance/MethodsInterface2.java | UTF-8 | 116 | 1.703125 | 2 | [] | no_license | package com.org.acpgimini.inheritance;
public interface MethodsInterface2 {
void messageDisplay();
}
| true |
e302b872805336517f337da659245c80652f701f | Java | TuSDK/TuSDK-ShortVideo-for-Android-demo | /Example/app/src/main/java/org/lasque/tusdkvideodemo/views/TuSeekBarPressure.java | UTF-8 | 1,852 | 2.140625 | 2 | [] | no_license | package org.lasque.tusdkvideodemo.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import org.lasque.tusdk.core.struct.ViewSize;
import org.lasque.tusdk.impl.view.widget.TuSeekBar;
/**
* TuSDK
* org.lasque.tusdkdemohelper.tusdk.newUI.CustomUi
* qiniu-PLDroidMediaS... | true |
34cd8f0aa7822c045052a2b4e965d346cc8f5b7a | Java | Psycadelik/apitest | /src/main/java/com/example/demo/Student.java | UTF-8 | 1,305 | 2.671875 | 3 | [] | no_license | package com.example.demo;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
@Entity
@Table(name = "students")
public class Student {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@Column(name = "studentName")
private String studentName;
... | true |
7696d734c5b995ae54aeb1786387eca882d27ac6 | Java | HongyiZhu/Blotto | /src/GUI/progressBarPanel.java | UTF-8 | 1,265 | 2.703125 | 3 | [] | no_license | package GUI;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
public class progressBarPanel extends JPanel
{
/**
*
*/
private static final long seria... | true |
109cafa42b4d49e21ea9c2b737716e04fe67348e | Java | hsgubert/bigdata_cloud_computing_assignment3 | /web_interface/src/helpers/SentimentHelper.java | UTF-8 | 921 | 2.390625 | 2 | [] | no_license | package helpers;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import com.amazonaws.util.json.JSONArray;
public class SentimentHelper {
public static JSONArray getSentimentDataArray() throws IOException {
... | true |
fb9edd8f12ebdca92a9ad9a0d3c7c4f1ccb25bad | Java | koalhou/Android | /clients/CLW_TQC_YGB_Client/bin/classes/com/yutong/clw/ygbclient/view/bean/command/commands/.svn/text-base/LogCommand.java.svn-base | UTF-8 | 5,363 | 2.71875 | 3 | [] | no_license | /**
* @公司名称:YUTONG
* @作者:zhouzc
* @版本号:1.0
* @生成日期:2014-2-14 上午11:13:55
* @功能描述:
*/
package com.yutong.clw.ygbclient.view.bean.command.commands;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import android.os.Environment;
impor... | true |
5ef5d858b49cf89869031aa41e2086be06bc8ca6 | Java | fragbaws/CWS_BOCO_PRODUCT_TOOL | /app/src/main/java/my/app/jasenko/cwsboco_product_tool/PDFActivity.java | UTF-8 | 9,157 | 1.914063 | 2 | [] | no_license | package my.app.jasenko.cwsboco_product_tool;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.view.MenuItemCompat;
import andr... | true |
69bbf8c802385045a38683a187bb23f5182b9aa2 | Java | jamesni189/wawaji_zs | /app/src/main/java/com/ydd/pockettoycatcherrwz/network/http/request/impl/RoomLogRequest2.java | UTF-8 | 1,236 | 1.984375 | 2 | [] | no_license | package com.ydd.pockettoycatcherrwz.network.http.request.impl;
import com.lidroid.xutils.http.client.HttpRequest;
import com.ydd.pockettoycatcherrwz.entity.RoomLogInfo;
import com.ydd.pockettoycatcherrwz.network.http.request.AbstractRequest;
import com.ydd.pockettoycatcherrwz.util.Constants;
import org.apache.http.He... | true |
86e79e13d4eeefa813ebd1662d2cb5a095769fed | Java | ethiel/Game-Project | /src/network/packets/ServerSaveMessage.java | UTF-8 | 424 | 2.34375 | 2 | [
"BSD-3-Clause"
] | permissive | package network.packets;
import com.jme3.network.serializing.Serializable;
import network.interfaces.PacketHandler;
/**
* Message for informing the server to save.
*
* @author Garming Sam 300198721
*
*/
@Serializable
public class ServerSaveMessage extends GameUpdateMessage{
public ServerSaveMessage() {
su... | true |
d12baf2ce9602ba7c0485414d24cc44cfff2e9d7 | Java | thibtd/MultiAgentSurveillance | /src/Agent/Routine.java | UTF-8 | 1,291 | 3.1875 | 3 | [] | no_license | package Agent;
import World.WorldMap;
/**
* super class for the routines/ behaviours
* to create new behaviour just extend this class
* @author Thibaut Donis
*/
public abstract class Routine {
public enum RoutineState {
Success,
Failure,
walking
}
protected RoutineState state;
... | true |
1b1dbf71e9bb5e1dd7635e1b71d8ceceeb366f0f | Java | hpugs/SpringMvcTest | /SpringMvc04/src/com/hpugs/spring/mvc/controller/FileController.java | UTF-8 | 3,522 | 2.78125 | 3 | [] | no_license | package com.hpugs.spring.mvc.controller;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Iterator;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotat... | true |
87b4073ed9a35bc46b9edb672f2cc7d5c1a093da | Java | fhabumugisha/spring-security-oauth2-authorization-server | /src/main/java/io/jzheaux/springsecurity/NimbusRequestResponseHandler.java | UTF-8 | 2,102 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package io.jzheaux.springsecurity;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.nimbusds.oauth2.sdk.http.HTTPRequest;
import com.nimbusds.oauth2.sdk.http.HTTPResponse;
import com.nimbusds.oauth2.sdk.http.ServletUtils;
import org.springframework.core.MethodPa... | true |
33cd6f42fe393949ff3dd290f5c6e54eeb8ede43 | Java | NNroc/SpringCloudFoundation | /Feign/src/main/java/com/eureka/feign/FeignProviderClient.java | UTF-8 | 675 | 2.109375 | 2 | [] | no_license | package com.eureka.feign;
import com.eureka.entity.Student;
import com.eureka.feign.impl.FeignErrorImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.Collection;
/**
* @author NNShadow
* @date 2019/9/7 19:22
*/
//表示本接口访问的服务,注册中... | true |
82c2ebec773916aa5015d5f2abc4ca7cae54762a | Java | wzp09tjlg/NewSpace | /app/src/main/java/com/wuzp/newspace/view/main/fragment/FragmentFactory.java | UTF-8 | 272 | 1.601563 | 2 | [] | no_license | package com.wuzp.newspace.view.main.fragment;
/**
* Created by wuzp on 2017/9/23.
*/
public class FragmentFactory {
//fragment 工厂模式
private Class[] clazzs = {FunFragment.class,FunFragment.class,FunFragment.class,FunFragment.class,FunFragment.class};
}
| true |
8a7f734544312eb783e0cbce202ceebb9e68e407 | Java | rafi-kamal/Messenger-Server | /Messenger - Server/src/messenger/server/ServerConnection.java | UTF-8 | 2,020 | 3.1875 | 3 | [] | no_license | package messenger.server;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import messenger.Constants;
/**
* Base class for server connection. Any class in the server project which will be connected to
* any clie... | true |
13384aed59f212cd98d298d09cd396dc4a88fd2b | Java | WithTheWindXu/dubbo-spring-boot-starter | /study-consume/src/main/java/com/xujie/StudyConsumeApplication.java | UTF-8 | 1,120 | 2.40625 | 2 | [] | no_license | package com.xujie;
import com.xujie.utils.redis.RedisUtils;
import com.xujie.utils.result.Result;
import com.xujie.utils.result.ResultUtitls;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplica... | true |
2ddede13fe7e93f2e81de507b25b50b82d6a633f | Java | Maxspigs/Quoizz | /app/src/main/java/com/quoizz/max/quoizz/CheatActivity.java | UTF-8 | 2,192 | 2.296875 | 2 | [] | no_license | package com.quoizz.max.quoizz;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class CheatActivity extends AppCompatActivity {
public static final String TAG = ... | true |
e1d370065e3f42ed2d364c96ff7d22dfc5ed6adc | Java | vietj/rxstreams-vertx-ext | /src/main/java/com/julienviet/streams/impl/BufferRxReadStream.java | UTF-8 | 1,390 | 2.34375 | 2 | [] | no_license | package com.julienviet.streams.impl;
import com.julienviet.streams.RxReadStream;
import io.vertx.core.Context;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.streams.ReadStream;
import java.util.List;
import java.util.concurrent.TimeUnit;
/**
* @author <a href="mailto:julien@julienvi... | true |
7212250040a1b7199919b9f75378596589c961ed | Java | samutamm/ohtu2015 | /viikko6/IntJoukkoSovellus/src/main/java/ohtu/intjoukkosovellus/JoukkoOperaatio.java | UTF-8 | 1,451 | 2.8125 | 3 | [] | no_license |
package ohtu.intjoukkosovellus;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.commons.lang3.ArrayUtils;
/**
*
* @author samutamm
*/
public class JoukkoOperaatio {
public static IntJoukko yhdiste(IntJoukko a, IntJoukko b) {
... | true |
cb373e4e03ac408e2728661281597fc700b83968 | Java | Damons-work/icodework_Java__back_end | /src/main/java/cn/js/icode/oAuth/weixin/data/AuthorizerGrant.java | UTF-8 | 3,361 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package cn.js.icode.oAuth.weixin.data;
import java.util.Date;
/**
* 公众号/小程序授权信息 - POJO
* 对应数据库表:weixin_authorizer_grant
*
* @author ICode Studio
* @version 1.0 2018-07-01
*/
public class AuthorizerGrant {
/* 授权编号(关键字) */
private String grantId = null;
/* 微信公众号/小程序AppId */
private String author... | true |
81519bf9fa16399383a6b953ad3a4f3833ce3028 | Java | MikeZid/TaskManager | /app/src/main/java/com/hfad/organaizer/MainActivity.java | UTF-8 | 4,480 | 2.34375 | 2 | [] | no_license | package com.hfad.organaizer;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import android.annotation.SuppressLint;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.... | true |
8c270ec8e72697e1ebd60c5f879a9a846c39c948 | Java | kevinlogan94/Graphics335 | /Evan/Lab 1/src/main/JoglEventListener.java | UTF-8 | 10,618 | 2.109375 | 2 | [] | no_license | package main;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import com.jogamp.opengl.GL;
import com.jogamp.opengl.GL2;
import com.jogamp.opengl.GLAutoDrawable;
import com... | true |
dde675b38e8a3e45501342d7f80b230a05d2cdb1 | Java | itsokbitch/SocialSDK | /src/eclipse/plugins/com.ibm.sbt.core/src/com/ibm/sbt/services/client/connections/profiles/Converter.java | UTF-8 | 2,031 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.ibm.sbt.services.client.connections.profiles;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import com.ibm.commons.xml.DOMUtil;
import com.ibm.commons.xml.XMLException;... | true |
d9a74b5ec99998aea57ea219bc1365613301c709 | Java | PM2PP/Suchbaum | /src/Driver.java | UTF-8 | 1,045 | 3.140625 | 3 | [] | no_license | /*
* @author J.P.Ritter & P.Aguilar Bremer
* @version Oktober 2018
*/
public class Driver
{
public static void main(String[] args)
{
ArrayListBaum<Integer> ab = new ArrayListBaum<Integer>();
ab.einfuegenKnoten(5);
ab.einfuegenKnoten(1);
ab.einfuegenKnoten(2);
ab.einfuegenKnoten(3);
ab.einfuegenKnoten... | true |
50f525c42d0cd572501cc5a581548b99933999ff | Java | Makamitsu/lpe | /src/lpe_soft/view/LivraisonController.java | UTF-8 | 2,717 | 2.09375 | 2 | [] | no_license | package lpe_soft.view;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.F... | true |
79cd12ea5f9bae37c7b465924483c41ebdd55581 | Java | lebadat1996/DemObjectDuplicate | /src/main/java/projecthome/demo/DemoObjectDuplicate.java | UTF-8 | 770 | 3.140625 | 3 | [] | no_license | package projecthome.demo;
import projecthome.demo.Entity.User;
import java.util.*;
import java.util.stream.Collectors;
public class DemoObjectDuplicate {
public static void main(String[] args) {
List<User> user = new ArrayList<>();
user.add(new User("Nguyen Nhat", "nguyennhat@gmail.com","A"));
... | true |
b8ae8f5f657e7ca9b03644b18f35d157051c5893 | Java | bunjik/asyncutil | /src/test/java/info/bunji/asyncutil/AsyncProcessTest.java | UTF-8 | 4,654 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016-2018 Fumiharu Kinoshita
*
* 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 applica... | true |
efe9f6391ec0f80199497f07cfd3be6254e33af7 | Java | tzbgithub/keqidao | /src/main/java/com/qidao/qidao/link/organizationSalesman/domain/ILinkOrganizationSalesmanExample.java | UTF-8 | 41,639 | 2 | 2 | [
"MIT"
] | permissive | package com.qidao.qidao.link.organizationSalesman.domain;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
public class ILinkOrganizationSalesmanExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
protected I... | true |
e062da19032ae200d5a5971ad1e045e476c82f20 | Java | dongfangmingjia/ecg | /app/src/main/java/com/ljfth/ecgviewlib/model/DevicesModel.java | UTF-8 | 1,212 | 2.09375 | 2 | [] | no_license | package com.ljfth.ecgviewlib.model;
public class DevicesModel {
private String macStr;
private String signalStr;
private String deviceType;
private String connectStr;
private byte[] devicesData;
private boolean isChecked = false;
public boolean isChecked() {
return isChecked;
... | true |
62608a1f7f1954354bc7dd7e73f2301080b4eece | Java | kenne12/Gestion_Stock_Circb | /GESTION_STOCK-war/src/java/controllers/personnel/PersonnelController.java | UTF-8 | 5,954 | 2.046875 | 2 | [] | no_license | package controllers.personnel;
import entities.Magasin;
import entities.Personnel;
import entities.Qualite;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import org... | true |
74decc567536b5c764709bc5706d926ad345645b | Java | sleepworld/zdjl | /zdjl/app/src/main/java/cn/dxs/zdjl/GlobalParams.java | UTF-8 | 759 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package cn.dxs.zdjl;
import android.content.Intent;
import cn.dxs.zdjl.domain.ScriptContent;
import cn.dxs.zdjl.domain.ScriptInfo;
/**
* 全局参数
*
* @author lijian
* @date 2020-03-28 21:59
*/
public class GlobalParams {
public static int widthPixels;// 手机屏幕宽度像素
public static int heightPixels;// 手机屏幕高度像素
... | true |
835de0ff0d18337b33ee118043503d6aef8eb292 | Java | xym100111100/suc | /suc-api/src/main/java/rebue/suc/jo/SucUserJo.java | UTF-8 | 2,892 | 2.21875 | 2 | [] | no_license | package rebue.suc.jo;
import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
* The persistent class for the SUC_... | true |
bc6d43fff8c020b78e5350563101e2fd31a4896c | Java | openanthem/nimbus-samples | /nimbus-sample-web/extension/src/src/main/java/com/atlas/client/extension/petclinic/core/home/CodeValueTypes.java | UTF-8 | 6,629 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.atlas.client.extension.petclinic.core.home;
import java.util.ArrayList;
import java.util.List;
import com.antheminc.oss.nimbus.domain.defn.Model.Param.Values.Source;
import com.antheminc.oss.nimbus.domain.model.config.ParamValue;
/**
* @author Andrew Jo
*
*/
public class CodeValueTypes {
public stat... | true |
f5858078f321e1a6e1ffb198301a9559224735e4 | Java | andreasgarvik/chat_project_practice | /src/andreas/Messages.java | UTF-8 | 756 | 2.421875 | 2 | [] | no_license | package andreas;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(schema = "public", name = "mes... | true |
18043bfa888de1467bdf2c1a5103f58d592d3ac8 | Java | GregorcDejan/Kulturnik | /ost_demo/src/main/java/si/feri/ost/ost/demo/DAO/DogodekDAO.java | UTF-8 | 5,931 | 2.359375 | 2 | [] | no_license | package si.feri.ost.ost.demo.DAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.stereotype.Component;
import si.feri... | true |
6a995d054b54ee7d269e62c9849eed98cc51fcb0 | Java | Ritikkumar992/UrlShortener | /url-shortener-rest/src/main/java/pt/go2/urlshortener/rest/ShortenerController.java | UTF-8 | 3,637 | 2.078125 | 2 | [
"MIT"
] | permissive | /*
* MIT License
*
* Copyright (c) 2019 João Vilaça
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | true |
7e6f3649ba701019aa0fcfb4f08bc42096f0aa21 | Java | domnikkk/papyrus | /sandbox/Alf/org.eclipse.papyrus.alf/src-gen/org/eclipse/papyrus/alf/alf/impl/SimpleAcceptStatementCompletionImpl.java | UTF-8 | 1,027 | 1.601563 | 2 | [] | no_license | /**
*/
package org.eclipse.papyrus.alf.alf.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
import org.eclipse.papyrus.alf.alf.AlfPackage;
import org.eclipse.papyrus.alf.alf.SimpleAcceptStatementCompletion;
/**
* <!-- begin-user-doc -->
* An implementa... | true |
c17ea1845b62abc06f251b7de5549fdc283d9593 | Java | AllNighters/Munchkin | /src/com/munchkin/core/game/RollFragment.java | UTF-8 | 1,852 | 2.234375 | 2 | [] | no_license | package com.munchkin.core.game;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.w... | true |
f95c6737d50c5808ef5e7e05842918395fec7b96 | Java | dechinopsis/Newsan | /src/main/java/com/newsan/spring/controller/NSignInController.java | UTF-8 | 1,657 | 2.109375 | 2 | [] | no_license | package com.newsan.spring.controller;
import java.io.UnsupportedEncodingException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework... | true |
eb0102b0f1991fbb0952f6db4db4cfc0e6631e57 | Java | mehmetkiziltas/androidStudioBist30App | /app/src/main/java/com/example/gradiotionproject/LoginProcesse/MainActivity.java | UTF-8 | 2,605 | 2.078125 | 2 | [] | no_license | package com.example.gradiotionproject.LoginProcesse;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import com.example.gradiotionprojec... | true |
9621506e016ced25b4543144b4b2f38d615fa8f4 | Java | valdetegjoni/library | /library1206/src/main/java/com/springboot/library/view/LibBookView.java | UTF-8 | 1,181 | 2.0625 | 2 | [] | no_license | package com.springboot.library.view;
import java.io.Serializable;
public class LibBookView implements Serializable{
/**
*
*/
private static final long serialVersionUID = 3091431348456117943L;
private long id;
private String author;
private String genre;
private String issbn;
private Long rentalPrice... | true |
96614313262b77a27b57ab1154c1c9079a090836 | Java | DubanPotosi/Casino-Apostemos | /src/LogicaNegocios/Maquina.java | UTF-8 | 2,687 | 2.578125 | 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 LogicaNegocios;
import java.util.ArrayList;
import LogicaAccesoDatos.GestorBD;
/**
*
* @author dcast
*/
public class Maquin... | true |
2cdf4bce9da7f4c3b610ade90009eb0fdc4e814e | Java | sanjay-p93/Assignment | /Assignments/Core Java/assignmnet2/DessertShop/DessertShop.java | UTF-8 | 1,643 | 3.453125 | 3 | [] | no_license | import java.io.*;
import java.util.Scanner;
import java.lang.Math;
public class DessertShop {
public static void listItem(){
}
public static void main(String[] args){
Candy candy1= new Candy(1f,10,10);
Cookie cookie1= new Cookie(1f,20,3);
IceCream iceCream1= new IceCream(50f,10,3);
int i=0;
do{
i... | true |
a89a22dd4013a7773d72ce50fd3884596c23e2f5 | Java | tls-attacker/TLS-Anvil | /TLS-Testsuite/src/main/java/de/rub/nds/tlstest/suite/tests/client/tls12/statemachine/StateMachine.java | UTF-8 | 8,400 | 1.8125 | 2 | [
"Apache-2.0"
] | permissive | /**
* TLS-Testsuite - A testsuite for the TLS protocol
*
* Copyright 2022 Ruhr University Bochum
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlstest.suite.tests.client.tls12.statemachine;
import de.rub.nds.modifiablevariable.util.Modifiable;
import de... | true |
6ccfa7e9e14f662ddcb499722ac00cccdfd81e18 | Java | Yangmxi/ymx | /YimiaoTree/src/com/statt/fragment/FragmentPersonal.java | UTF-8 | 3,348 | 2.0625 | 2 | [] | no_license |
package com.statt.fragment;
import android.app.Activity;
import android.app.Fragment;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import androi... | true |
eb9e41e130d8861e42e216cb52aa1ccec8b6a003 | Java | harisfi/Movie-App | /app/src/main/java/com/hryzx/movieapp/ui/tv_shows/TvShowFragment.java | UTF-8 | 1,900 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.hryzx.movieapp.ui.tv_shows;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
im... | true |
ad67422858df77cd3b481ee1a079e20dcf6df45c | Java | salmanlaskar/Attendence_Count | /app/src/main/java/com/laskar/hello/attendence_count/Student_class.java | UTF-8 | 3,084 | 2.265625 | 2 | [] | no_license | package com.laskar.hello.attendence_count;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import com.g... | true |
b2a4e12fb9bc0ef43745c61055aa4ecf6b736577 | Java | monpkz/Veterinaria | /src/Cliente.java | UTF-8 | 215 | 2.0625 | 2 | [] | no_license | //En este caso Cliente "hereda"(extends) de Persona
public class Cliente extends Persona {
//int maximo : 2147483647
public int codigoCliente;
public String formaPago; //tarjeta/contado/transferencia
}
| true |
36e663e49e73a017da39ed6a040407002d2639b4 | Java | StevenReiss/fait | /javasrc/edu/brown/cs/fait/query/QueryCritical.java | UTF-8 | 12,468 | 1.640625 | 2 | [] | no_license | /********************************************************************************/
/* */
/* QueryCritical.java */
/* */
/* description of class */
/* */
/********************************************************************************/
/* Copyright 2013 Brown University -- Steven ... | true |
aad22b2b0e619873705f2ea33e32a54f311fcb48 | Java | alxndrtarasov/build-up | /src/main/java/com/innteam/buildup/commons/model/PointProgressRequest.java | UTF-8 | 261 | 1.609375 | 2 | [] | no_license | package com.innteam.buildup.commons.model;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
@FieldDefaults(level = AccessLevel.PRIVATE)
@Data
public class PointProgressRequest {
String userId;
String pointId;
}
| true |
8d68d057b95dcaf93c38888b859512c4de90aab8 | Java | Hss533/mmall | /src/test/java/TEs.java | UTF-8 | 630 | 2.71875 | 3 | [] | no_license | import org.apache.commons.net.ftp.FTPClient;
import java.io.IOException;
public class TEs {
public static void main(String[] args) {
boolean isSuccess=false;
FTPClient ftpClient=new FTPClient();
try{
ftpClient.connect("39.105.84.39",21);
isSuccess=ftpCli... | true |
4ee875b3cd4e7313430dfeb1fa6ba6693a95af19 | Java | andonovag/-Java-Homeworks | /Homework6/src/com/company/Student.java | UTF-8 | 466 | 3.3125 | 3 | [] | no_license | package com.company;
public class Student extends Person {
double score;
Student(String name, int age, boolean isMan, double score) {
super(name, age, isMan);
this.name = name;
this.age = age;
this.isMan = isMan;
this.score = score;
}
void showStudentInfo() {... | true |
b4ec308ff92c902fda33d48d7663f5a29a9e3200 | Java | BaronVladziu/agh-java-classes | /src/lab5/AbstractTimetable.java | UTF-8 | 4,592 | 3.015625 | 3 | [] | no_license | package lab5;
import lab2.Action;
import lab2.Day;
import lab2.Term;
import lab3.Lesson;
import lab4.ITimetable;
import lab6.ActionFailedException;
import lab6.TimetableAnswer;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.TreeMap;
public abstract class AbstractTimetable implements ITi... | true |
06f2e38b7076fda69fd69ccec0d99b78853d3681 | Java | solitarysp/Example-Learn-Spring | /SpringConfigurations/src/main/java/com/lethanh98/EnvironmentAbstraction/Profiles/example_spring_boot/config/ConfigConnectSql.java | UTF-8 | 851 | 2.171875 | 2 | [] | no_license | package com.lethanh98.EnvironmentAbstraction.Profiles.example_spring_boot.config;
import com.lethanh98.EnvironmentAbstraction.Profiles.example_spring_boot.factory.SqlFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype... | true |
1e858bf5abdfcfa728db45819480e2c2bf4a1826 | Java | Abdul-Momen/autoCompeletTexView | /app/src/main/java/com/momen/ai/MainActivity.java | UTF-8 | 1,317 | 2.171875 | 2 | [] | no_license | package com.momen.ai;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Toast;
public class MainActivity extends AppCompatActivit... | true |
91ec49227789152423af6144cd5e46f4b4ac25a6 | Java | AmuseWorkingTeam/XXYP | /app/src/main/java/com/xxyp/xxyp/user/view/LocationActivity.java | UTF-8 | 3,536 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive |
package com.xxyp.xxyp.user.view;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import com.amap.api.maps.AMap;
import com.amap.api.maps.CameraUpdateFactory;
import com.amap.api.maps.MapView;
import com.amap.api.maps.model.LatLng;
import com.x... | true |
8268951e493f9c6b2bfb16f3953720a35211cfa3 | Java | mygithut/mytest2 | /src/com/dhcc/ftp/bo/QueryPageBO.java | GB18030 | 3,662 | 2.46875 | 2 | [] | no_license | package com.dhcc.ftp.bo;
import java.util.List;
import com.dhcc.ftp.util.PageUtil;
public class QueryPageBO extends BaseBo{
//hsqlҳѯ
public PageUtil queryPage(String hsql, int pageSize,
int currentPage, int rowsCount, String pageName) {
// TODO Auto-generated method stub
System.out.println("hsql"+hsql);
... | true |
1805b3b79ba403264407e49809899244251cfecd | Java | ackhare/DynamicProxies | /src/ProxyInPlainJava/frankel/NoOpAddInvocationHandler.java | UTF-8 | 639 | 2.703125 | 3 | [] | no_license | package ProxyInPlainJava.frankel;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.util.List;
/**
* Created by chetan on 19/11/16.
*/
public class NoOpAddInvocationHandler implements InvocationHandler {
private final List proxied;
public NoOpAddInvocationHandler(Lis... | true |
c276ce5171bfded328678d0df3988c20cbe1ee19 | Java | hopana/Test | /test_servlet/src/http_servlet/HttpServletTest.java | UTF-8 | 1,268 | 3.046875 | 3 | [] | no_license | package http_servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class HttpServletTest extends HttpServlet{
private static f... | true |
b87db03e5802e2278766259c2642267908b1f3c5 | Java | LDDDDDD/EpianoDemo | /app/src/main/java/com/epiano/eLearning/CTrGetFriend.java | UTF-8 | 6,389 | 1.78125 | 2 | [
"MIT"
] | permissive | package com.epiano.eLearning;
import android.util.Log;
import com.epiano.commutil.epdeamon;
import java.io.UnsupportedEncodingException;
public class CTrGetFriend extends CTr {
private static String TAG = "Video";
public CTrGetFriend()
{
}
// (teacher, student,date,before/after,tuples), student可通配
public ... | true |
a12ddafbee378959d200d8de1bf2913ba24e2891 | Java | IQQcode/Code-Java | /d-JavaTopic/Topic Problems/回文串/src/Class/Learning/Huiwen.java | UTF-8 | 1,410 | 4.40625 | 4 | [] | no_license | package Class.Learning;
import java.util.Scanner;
/**
* 利用StringBuilder中的 rever()字符串反转来判断是否为回文串
*/
public class Huiwen {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.print("请输入字符串: ");
String str = input.nextLine();
System.out.print... | true |
eb634506f45c4f03e7269408d452f0ddb2978dfd | Java | baijy/javadesignpattern | /src/main/java/com/jianyu/dp/template/WoodenHouse.java | UTF-8 | 426 | 2.859375 | 3 | [] | no_license | package com.jianyu.dp.template;
public class WoodenHouse extends HouseTemplate {
@Override
public void buildPillars() {
System.out.println("建木头房,打柱子咯!用木头打柱子");
}
@Override
public void buildWalls() {
System.out.println("建木头房,砌墙咯!用木头做墙壁");
}
@Override
public void buildWindows(){
System.out.println("木... | true |
42a2a63ef883898cc74e39a4e8e23f036cfa3e66 | Java | twsoul/PDA_Android | /Android_Source/app/src/main/java/com/example/android_pda_system/Activity/Act_Screen/Act_nav_BCR/Frg_nav_BCR_UPDATE.java | UTF-8 | 2,949 | 1.992188 | 2 | [] | no_license | package com.example.android_pda_system.Activity.Act_Screen.Act_nav_BCR;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import c... | true |
98821ee91e0f7dec3b7efd5d11579059c6a2d1c9 | Java | bumooo/mokomoko | /backend/webcuration/src/main/java/com/web/webcuration/Entity/Provide.java | UTF-8 | 76 | 1.554688 | 2 | [] | no_license | package com.web.webcuration.Entity;
public enum Provide {
SNS, LOCAL
}
| true |
6b09c6308cde2a7f6aac481ba8540d4253029f56 | Java | SimoCnt/Restaurant-Simulator | /src/restaurant_simulator/GenericValidation.java | UTF-8 | 1,954 | 3.359375 | 3 | [
"MIT"
] | permissive | package restaurant_simulator;
import java.util.function.Predicate;
/**
* Classe GenericValidation, la classe generica che gestisce la validazione di
* un dato tipo
*
* @author Danilo Dolce e Simone Contini
* @version 1.0
*/
public class GenericValidation<K> implements IValidator<K> {
/*... | true |
5eacbeabba01c7d2e8bf3932651628735359646e | Java | Derrickntemi/JavaPractice | /src/DesignPatterns/BehaviouralPatterns/StrategyPattern/StrategyConcreteClassOperationMultiply.java | UTF-8 | 251 | 3.265625 | 3 | [] | no_license | package DesignPatterns.BehaviouralPatterns.StrategyPattern;
public class StrategyConcreteClassOperationMultiply implements Strategy {
@Override
public int strategyOperation(int amount1, int amount2) {
return amount1*amount2;
}
}
| true |
e93740360bba0cf562c4443a4fb5e6e830b8db8e | Java | tatianadzn/learning | /src/com/tatianadzn/multithreading/ChickenVoice.java | UTF-8 | 638 | 3.46875 | 3 | [] | no_license | package com.tatianadzn.multithreading;
public class ChickenVoice {
public static void main(String[] args) throws InterruptedException {
EggVoice eggVoice = new EggVoice();
System.out.println("Let the battle begin");
eggVoice.start();
for (int i = 0; i < 5; i++){
... | true |
87ff4820808cdfdcf1714504372fc6c3b56f9a66 | Java | raphaelframos/irc | /app/src/main/java/com/powellapps/irc/ChatActivity.java | UTF-8 | 6,359 | 1.984375 | 2 | [] | no_license | package com.powellapps.irc;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recycler... | true |
409bb87a48f376a8e51dd6b3233853645eb52a6c | Java | studentqa2021/AutomationZooplaRezwanSep4 | /src/test/java/com/httpMethods/cucumber/StepDefGetMethod.java | UTF-8 | 1,285 | 2.65625 | 3 | [] | no_license | package com.httpMethods.cucumber;
import org.testng.Assert;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.restassured.RestAssured;
import io.restassured.response.Response;
public class StepDefGetMethod {
Response response;
@Given("pass the URL")
public void pass_the_url() {
respon... | true |
27b1717df5c915475cf442dc437cc4b625e4ce0c | Java | kyo88/impala-jdbc-client | /src/main/java/com/cloudera/example/Flag.java | UTF-8 | 84 | 1.695313 | 2 | [] | no_license | package com.cloudera.example;
public enum Flag {
CONNECTED,
NOTCONNECT,
DROP,
}
| true |
bce473495b10079073a77eab2378c9f07e955de6 | Java | Omnia1993/JavaFinal2 | /src/Question_7.java | UTF-8 | 436 | 3.015625 | 3 | [] | no_license | import java.util.Scanner;
public class Question_7 {
static int n, m;
static String x = "";
static int a;
public static void main(String[] args) {
int s = Utils.getNumber("Enter num ");
IntToBin(s);
System.out.println(x);
}
static String IntToBin(int z) {
while... | true |
c265579178b095addf7a2f1e5f84814b3301a979 | Java | Joshuakoheey/Joshua_JavaMusicApp | /JoshuaKoh_P14MusicApp/app/src/main/java/com/example/p14_musicstream/CollectionsConstructor.java | UTF-8 | 807 | 2.34375 | 2 | [] | no_license | package com.example.p14_musicstream;
import android.view.View;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class CollectionsConstructor extends RecyclerView.ViewHolder
{
public TextView tTitle, tAr... | true |
248fdaa86c5ff62630470be25b67f378fded585f | Java | cha63506/CompSecurity | /Shopping/amazon_shopping_source/src/com/amazon/mShop/pushnotification/NotificationProvider.java | UTF-8 | 1,336 | 1.710938 | 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.amazon.mShop.pushnotification;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import co... | true |
d1e22d5d0b66b992b6c2047298e95e0c5cd86de1 | Java | alpamys-qanybet/uis-backend | /ui1/app/models/UserModel.java | UTF-8 | 1,502 | 2.234375 | 2 | [] | no_license | package models;
import play.data.validation.*;
import play.db.jpa.Blob;
import play.db.jpa.Model;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
@Entit... | true |
cf298fe860478256b35de4a3413fe4fd0acb2219 | Java | BardenDaSparden/Vector-Defender | /src/com/vecdef/ai/ChaserBehaviour.java | UTF-8 | 1,344 | 2.8125 | 3 | [] | no_license | package com.vecdef.ai;
import org.javatroid.core.Timer;
import org.javatroid.core.TimerCallback;
import org.javatroid.math.FastMath;
import org.javatroid.math.Vector2f;
import com.vecdef.objects.Enemy;
import com.vecdef.objects.Player;
import com.vecdef.objects.Scene;
public class ChaserBehaviour extends Behaviour{
... | true |
04ac18895c112090c4242aedb544f68aaf44dc4e | Java | zachary390/Test | /src/discord/BotInterface.java | UTF-8 | 3,121 | 2.265625 | 2 | [
"MIT"
] | permissive | package discord;
import javax.security.auth.login.LoginException;
import common.Version;
public class BotInterface extends javax.swing.JFrame{
public BotInterface(){
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:init... | true |